From e0549f6b5588f302096254f1b2c528e065d03ba0 Mon Sep 17 00:00:00 2001 From: arcturusZhang Date: Wed, 16 Dec 2020 13:23:01 +0800 Subject: [PATCH 01/12] bump autorest.go version --- generate_options.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate_options.json b/generate_options.json index 8b459be91308..3026662971bc 100644 --- a/generate_options.json +++ b/generate_options.json @@ -1,6 +1,6 @@ { "autorestArguments": [ - "--use=@microsoft.azure/autorest.go@~2.1.162", + "--use=@microsoft.azure/autorest.go@~2.1.165", "--go", "--verbose", "--go-sdk-folder=.", From a7d40ead040dcce40fffe4a9c37fd30c35bca8e9 Mon Sep 17 00:00:00 2001 From: arcturusZhang Date: Thu, 17 Dec 2020 12:06:56 +0800 Subject: [PATCH 02/12] Fix issue https://github.com/Azure/azure-sdk-for-go/issues/13882 --- .../mgmt/2017-04-01/aad/diagnosticsettings.go | 4 + .../aad/diagnosticsettingscategory.go | 1 + .../aad/mgmt/2017-04-01/aad/operations.go | 1 + .../addomainservicemembers.go | 2 + .../adhybridhealthservice/addsservice.go | 1 + .../addsservicemembers.go | 5 + .../adhybridhealthservice/addsservices.go | 21 + .../addsservicesreplicationstatus.go | 1 + .../addsservicesservicemembers.go | 3 + .../addsservicesuserpreference.go | 3 + .../adhybridhealthservice/alerts.go | 2 + .../adhybridhealthservice/configuration.go | 5 + .../adhybridhealthservice/dimensions.go | 2 + .../2014-01-01/adhybridhealthservice/list.go | 3 + .../adhybridhealthservice/operations.go | 2 + .../adhybridhealthservice/reports.go | 1 + .../adhybridhealthservice/service.go | 1 + .../adhybridhealthservice/servicemembers.go | 17 + .../adhybridhealthservice/services.go | 31 ++ .../adhybridhealthservice/update.go | 1 + .../mgmt/2017-03-31/advisor/operations.go | 2 + .../2017-03-31/advisor/recommendations.go | 5 + .../mgmt/2017-03-31/advisor/suppressions.go | 4 + .../mgmt/2017-04-19/advisor/configurations.go | 5 + .../mgmt/2017-04-19/advisor/operations.go | 2 + .../advisor/recommendationmetadata.go | 3 + .../2017-04-19/advisor/recommendations.go | 5 + .../mgmt/2017-04-19/advisor/suppressions.go | 5 + .../mgmt/2020-01-01/advisor/configurations.go | 5 + .../mgmt/2020-01-01/advisor/operations.go | 2 + .../advisor/recommendationmetadata.go | 3 + .../2020-01-01/advisor/recommendations.go | 5 + .../mgmt/2020-01-01/advisor/suppressions.go | 5 + .../2018-05-05/alertsmanagement/alerts.go | 6 + .../2018-05-05/alertsmanagement/operations.go | 2 + .../alertsmanagement/smartgroups.go | 5 + .../2019-03-01/alertsmanagement/alerts.go | 7 + .../2019-03-01/alertsmanagement/operations.go | 2 + .../smartdetectoralertrules.go | 7 + .../2016-05-16/analysisservices/servers.go | 8 + .../2017-07-14/analysisservices/servers.go | 10 + .../2017-08-01/analysisservices/operations.go | 2 + .../2017-08-01/analysisservices/servers.go | 10 + .../2016-07-07/apimanagement/apioperations.go | 6 + .../2016-07-07/apimanagement/apiproducts.go | 2 + .../mgmt/2016-07-07/apimanagement/apis.go | 7 + .../apimanagement/authorizationservers.go | 6 + .../mgmt/2016-07-07/apimanagement/backends.go | 6 + .../2016-07-07/apimanagement/certificates.go | 5 + .../mgmt/2016-07-07/apimanagement/groups.go | 6 + .../2016-07-07/apimanagement/groupusers.go | 4 + .../apimanagement/identityproviders.go | 5 + .../mgmt/2016-07-07/apimanagement/loggers.go | 6 + .../apimanagement/openidconnectproviders.go | 6 + .../apimanagement/policysnippets.go | 1 + .../2016-07-07/apimanagement/productapis.go | 4 + .../2016-07-07/apimanagement/productgroups.go | 4 + .../mgmt/2016-07-07/apimanagement/products.go | 6 + .../apimanagement/productsubscriptions.go | 2 + .../mgmt/2016-07-07/apimanagement/property.go | 6 + .../apimanagement/quotabycounterkeys.go | 2 + .../apimanagement/quotabyperiodkeys.go | 2 + .../mgmt/2016-07-07/apimanagement/regions.go | 1 + .../mgmt/2016-07-07/apimanagement/reports.go | 2 + .../mgmt/2016-07-07/apimanagement/services.go | 10 + .../2016-07-07/apimanagement/subscriptions.go | 8 + .../2016-07-07/apimanagement/tenantaccess.go | 4 + .../apimanagement/tenantaccessgit.go | 3 + .../tenantconfigurationsyncstate.go | 1 + .../2016-07-07/apimanagement/usergroups.go | 2 + .../apimanagement/useridentities.go | 1 + .../mgmt/2016-07-07/apimanagement/users.go | 7 + .../apimanagement/usersubscriptions.go | 2 + .../2016-10-10/apimanagement/apiexport.go | 1 + .../2016-10-10/apimanagement/apioperations.go | 6 + .../apimanagement/apioperationspolicy.go | 3 + .../2016-10-10/apimanagement/apipolicy.go | 3 + .../2016-10-10/apimanagement/apiproducts.go | 2 + .../mgmt/2016-10-10/apimanagement/apis.go | 6 + .../apimanagement/authorizationservers.go | 6 + .../mgmt/2016-10-10/apimanagement/backends.go | 6 + .../2016-10-10/apimanagement/certificates.go | 5 + .../mgmt/2016-10-10/apimanagement/groups.go | 6 + .../2016-10-10/apimanagement/groupusers.go | 4 + .../apimanagement/identityproviders.go | 5 + .../mgmt/2016-10-10/apimanagement/loggers.go | 6 + .../2016-10-10/apimanagement/networkstatus.go | 1 + .../apimanagement/openidconnectproviders.go | 6 + .../2016-10-10/apimanagement/operations.go | 2 + .../apimanagement/policysnippets.go | 1 + .../2016-10-10/apimanagement/productapis.go | 4 + .../2016-10-10/apimanagement/productgroups.go | 4 + .../2016-10-10/apimanagement/productpolicy.go | 3 + .../mgmt/2016-10-10/apimanagement/products.go | 6 + .../apimanagement/productsubscriptions.go | 2 + .../2016-10-10/apimanagement/properties.go | 2 + .../mgmt/2016-10-10/apimanagement/property.go | 4 + .../apimanagement/quotabycounterkeys.go | 2 + .../apimanagement/quotabyperiodkeys.go | 2 + .../mgmt/2016-10-10/apimanagement/regions.go | 1 + .../mgmt/2016-10-10/apimanagement/reports.go | 2 + .../mgmt/2016-10-10/apimanagement/services.go | 10 + .../2016-10-10/apimanagement/subscriptions.go | 8 + .../2016-10-10/apimanagement/tenantaccess.go | 4 + .../apimanagement/tenantaccessgit.go | 3 + .../tenantconfigurationsyncstate.go | 1 + .../2016-10-10/apimanagement/tenantpolicy.go | 3 + .../2016-10-10/apimanagement/usergroups.go | 2 + .../apimanagement/useridentities.go | 1 + .../mgmt/2016-10-10/apimanagement/users.go | 8 + .../apimanagement/usersubscriptions.go | 2 + .../mgmt/2017-03-01/apimanagement/api.go | 9 + .../2017-03-01/apimanagement/apidiagnostic.go | 7 + .../apimanagement/apidiagnosticlogger.go | 5 + .../2017-03-01/apimanagement/apiexport.go | 1 + .../apimanagement/apiissuattachment.go | 1 + .../apimanagement/apiissucomment.go | 1 + .../mgmt/2017-03-01/apimanagement/apiissue.go | 4 + .../apimanagement/apiissueattachment.go | 3 + .../apimanagement/apiissueattachments.go | 2 + .../apimanagement/apiissuecomment.go | 3 + .../apimanagement/apiissuecomments.go | 2 + .../2017-03-01/apimanagement/apiissues.go | 2 + .../2017-03-01/apimanagement/apioperation.go | 7 + .../apimanagement/apioperationpolicy.go | 5 + .../2017-03-01/apimanagement/apipolicy.go | 5 + .../2017-03-01/apimanagement/apiproduct.go | 2 + .../2017-03-01/apimanagement/apirelease.go | 6 + .../2017-03-01/apimanagement/apirevisions.go | 2 + .../2017-03-01/apimanagement/apischema.go | 6 + .../2017-03-01/apimanagement/apiversionset.go | 7 + .../apimanagement/authorizationserver.go | 7 + .../mgmt/2017-03-01/apimanagement/backend.go | 8 + .../2017-03-01/apimanagement/certificate.go | 6 + .../apimanagement/delegationsettings.go | 4 + .../2017-03-01/apimanagement/diagnostic.go | 7 + .../apimanagement/diagnosticlogger.go | 5 + .../2017-03-01/apimanagement/emailtemplate.go | 7 + .../mgmt/2017-03-01/apimanagement/group.go | 7 + .../2017-03-01/apimanagement/groupuser.go | 5 + .../apimanagement/identityprovider.go | 6 + .../mgmt/2017-03-01/apimanagement/logger.go | 7 + .../2017-03-01/apimanagement/networkstatus.go | 2 + .../2017-03-01/apimanagement/notification.go | 4 + .../notificationrecipientemail.go | 4 + .../notificationrecipientuser.go | 4 + .../apimanagement/openidconnectprovider.go | 7 + .../2017-03-01/apimanagement/operation.go | 2 + .../2017-03-01/apimanagement/operations.go | 2 + .../mgmt/2017-03-01/apimanagement/policy.go | 4 + .../apimanagement/policysnippets.go | 1 + .../mgmt/2017-03-01/apimanagement/product.go | 7 + .../2017-03-01/apimanagement/productapi.go | 5 + .../2017-03-01/apimanagement/productgroup.go | 5 + .../2017-03-01/apimanagement/productpolicy.go | 4 + .../apimanagement/productsubscriptions.go | 2 + .../mgmt/2017-03-01/apimanagement/property.go | 7 + .../apimanagement/quotabycounterkeys.go | 2 + .../apimanagement/quotabyperiodkeys.go | 2 + .../mgmt/2017-03-01/apimanagement/regions.go | 1 + .../mgmt/2017-03-01/apimanagement/reports.go | 15 + .../mgmt/2017-03-01/apimanagement/service.go | 9 + .../apimanagement/signinsettings.go | 4 + .../apimanagement/signupsettings.go | 4 + .../2017-03-01/apimanagement/subscription.go | 9 + .../mgmt/2017-03-01/apimanagement/tag.go | 25 ++ .../apimanagement/tagdescription.go | 6 + .../2017-03-01/apimanagement/tagresource.go | 2 + .../2017-03-01/apimanagement/tenantaccess.go | 4 + .../apimanagement/tenantaccessgit.go | 3 + .../apimanagement/tenantconfiguration.go | 1 + .../mgmt/2017-03-01/apimanagement/user.go | 9 + .../2017-03-01/apimanagement/usergroup.go | 2 + .../apimanagement/useridentities.go | 1 + .../apimanagement/usersubscription.go | 2 + .../mgmt/2018-01-01/apimanagement/api.go | 9 + .../2018-01-01/apimanagement/apidiagnostic.go | 7 + .../apimanagement/apidiagnosticlogger.go | 5 + .../2018-01-01/apimanagement/apiexport.go | 1 + .../mgmt/2018-01-01/apimanagement/apiissue.go | 7 + .../apimanagement/apiissueattachment.go | 6 + .../apimanagement/apiissuecomment.go | 6 + .../2018-01-01/apimanagement/apioperation.go | 7 + .../apimanagement/apioperationpolicy.go | 5 + .../2018-01-01/apimanagement/apipolicy.go | 5 + .../2018-01-01/apimanagement/apiproduct.go | 2 + .../2018-01-01/apimanagement/apirelease.go | 7 + .../2018-01-01/apimanagement/apirevisions.go | 2 + .../2018-01-01/apimanagement/apischema.go | 6 + .../2018-01-01/apimanagement/apiversionset.go | 7 + .../apimanagement/authorizationserver.go | 7 + .../mgmt/2018-01-01/apimanagement/backend.go | 8 + .../2018-01-01/apimanagement/certificate.go | 6 + .../apimanagement/delegationsettings.go | 4 + .../2018-01-01/apimanagement/diagnostic.go | 7 + .../apimanagement/diagnosticlogger.go | 5 + .../2018-01-01/apimanagement/emailtemplate.go | 7 + .../mgmt/2018-01-01/apimanagement/group.go | 7 + .../2018-01-01/apimanagement/groupuser.go | 5 + .../apimanagement/identityprovider.go | 7 + .../mgmt/2018-01-01/apimanagement/logger.go | 7 + .../2018-01-01/apimanagement/networkstatus.go | 2 + .../2018-01-01/apimanagement/notification.go | 4 + .../notificationrecipientemail.go | 4 + .../notificationrecipientuser.go | 4 + .../apimanagement/openidconnectprovider.go | 7 + .../2018-01-01/apimanagement/operation.go | 2 + .../2018-01-01/apimanagement/operations.go | 2 + .../mgmt/2018-01-01/apimanagement/policy.go | 5 + .../apimanagement/policysnippets.go | 1 + .../mgmt/2018-01-01/apimanagement/product.go | 7 + .../2018-01-01/apimanagement/productapi.go | 5 + .../2018-01-01/apimanagement/productgroup.go | 5 + .../2018-01-01/apimanagement/productpolicy.go | 5 + .../apimanagement/productsubscriptions.go | 2 + .../mgmt/2018-01-01/apimanagement/property.go | 7 + .../apimanagement/quotabycounterkeys.go | 2 + .../apimanagement/quotabyperiodkeys.go | 2 + .../mgmt/2018-01-01/apimanagement/regions.go | 2 + .../mgmt/2018-01-01/apimanagement/reports.go | 15 + .../mgmt/2018-01-01/apimanagement/service.go | 9 + .../2018-01-01/apimanagement/serviceskus.go | 2 + .../apimanagement/signinsettings.go | 4 + .../apimanagement/signupsettings.go | 4 + .../2018-01-01/apimanagement/subscription.go | 9 + .../mgmt/2018-01-01/apimanagement/tag.go | 25 ++ .../apimanagement/tagdescription.go | 6 + .../2018-01-01/apimanagement/tagresource.go | 2 + .../2018-01-01/apimanagement/tenantaccess.go | 4 + .../apimanagement/tenantaccessgit.go | 3 + .../apimanagement/tenantconfiguration.go | 1 + .../mgmt/2018-01-01/apimanagement/user.go | 10 + .../2018-01-01/apimanagement/usergroup.go | 2 + .../apimanagement/useridentities.go | 2 + .../apimanagement/usersubscription.go | 2 + .../mgmt/2019-01-01/apimanagement/api.go | 8 + .../2019-01-01/apimanagement/apidiagnostic.go | 7 + .../2019-01-01/apimanagement/apiexport.go | 1 + .../mgmt/2019-01-01/apimanagement/apiissue.go | 7 + .../apimanagement/apiissueattachment.go | 6 + .../apimanagement/apiissuecomment.go | 6 + .../2019-01-01/apimanagement/apioperation.go | 7 + .../apimanagement/apioperationpolicy.go | 5 + .../2019-01-01/apimanagement/apipolicy.go | 5 + .../2019-01-01/apimanagement/apiproduct.go | 2 + .../2019-01-01/apimanagement/apirelease.go | 7 + .../2019-01-01/apimanagement/apirevision.go | 2 + .../2019-01-01/apimanagement/apischema.go | 6 + .../apimanagement/apitagdescription.go | 6 + .../2019-01-01/apimanagement/apiversionset.go | 7 + .../apimanagement/authorizationserver.go | 7 + .../mgmt/2019-01-01/apimanagement/backend.go | 8 + .../mgmt/2019-01-01/apimanagement/cache.go | 7 + .../2019-01-01/apimanagement/certificate.go | 6 + .../apimanagement/delegationsettings.go | 4 + .../2019-01-01/apimanagement/diagnostic.go | 7 + .../2019-01-01/apimanagement/emailtemplate.go | 7 + .../mgmt/2019-01-01/apimanagement/group.go | 7 + .../2019-01-01/apimanagement/groupuser.go | 5 + .../apimanagement/identityprovider.go | 7 + .../mgmt/2019-01-01/apimanagement/issue.go | 3 + .../mgmt/2019-01-01/apimanagement/logger.go | 7 + .../2019-01-01/apimanagement/networkstatus.go | 2 + .../2019-01-01/apimanagement/notification.go | 4 + .../notificationrecipientemail.go | 4 + .../notificationrecipientuser.go | 4 + .../apimanagement/openidconnectprovider.go | 7 + .../2019-01-01/apimanagement/operation.go | 2 + .../2019-01-01/apimanagement/operations.go | 2 + .../mgmt/2019-01-01/apimanagement/policy.go | 5 + .../2019-01-01/apimanagement/policysnippet.go | 1 + .../mgmt/2019-01-01/apimanagement/product.go | 9 + .../2019-01-01/apimanagement/productapi.go | 5 + .../2019-01-01/apimanagement/productgroup.go | 5 + .../2019-01-01/apimanagement/productpolicy.go | 5 + .../apimanagement/productsubscriptions.go | 2 + .../mgmt/2019-01-01/apimanagement/property.go | 7 + .../apimanagement/quotabycounterkeys.go | 2 + .../apimanagement/quotabyperiodkeys.go | 2 + .../mgmt/2019-01-01/apimanagement/region.go | 2 + .../mgmt/2019-01-01/apimanagement/reports.go | 15 + .../mgmt/2019-01-01/apimanagement/service.go | 7 + .../2019-01-01/apimanagement/serviceskus.go | 2 + .../apimanagement/signinsettings.go | 4 + .../apimanagement/signupsettings.go | 4 + .../2019-01-01/apimanagement/subscription.go | 9 + .../mgmt/2019-01-01/apimanagement/tag.go | 25 ++ .../2019-01-01/apimanagement/tagresource.go | 2 + .../2019-01-01/apimanagement/tenantaccess.go | 5 + .../apimanagement/tenantaccessgit.go | 3 + .../apimanagement/tenantconfiguration.go | 1 + .../mgmt/2019-01-01/apimanagement/user.go | 9 + .../apimanagement/userconfirmationpassword.go | 1 + .../2019-01-01/apimanagement/usergroup.go | 2 + .../apimanagement/useridentities.go | 2 + .../apimanagement/usersubscription.go | 2 + .../mgmt/2019-12-01/apimanagement/api.go | 8 + .../2019-12-01/apimanagement/apidiagnostic.go | 7 + .../2019-12-01/apimanagement/apiexport.go | 1 + .../mgmt/2019-12-01/apimanagement/apiissue.go | 7 + .../apimanagement/apiissueattachment.go | 6 + .../apimanagement/apiissuecomment.go | 6 + .../2019-12-01/apimanagement/apioperation.go | 7 + .../apimanagement/apioperationpolicy.go | 5 + .../2019-12-01/apimanagement/apipolicy.go | 5 + .../2019-12-01/apimanagement/apiproduct.go | 2 + .../2019-12-01/apimanagement/apirelease.go | 7 + .../2019-12-01/apimanagement/apirevision.go | 2 + .../2019-12-01/apimanagement/apischema.go | 5 + .../apimanagement/apitagdescription.go | 6 + .../2019-12-01/apimanagement/apiversionset.go | 7 + .../apimanagement/authorizationserver.go | 8 + .../mgmt/2019-12-01/apimanagement/backend.go | 8 + .../mgmt/2019-12-01/apimanagement/cache.go | 7 + .../2019-12-01/apimanagement/certificate.go | 6 + .../2019-12-01/apimanagement/contentitem.go | 6 + .../2019-12-01/apimanagement/contenttype.go | 5 + .../2019-12-01/apimanagement/contenttypes.go | 1 + .../apimanagement/delegationsettings.go | 5 + .../2019-12-01/apimanagement/diagnostic.go | 7 + .../2019-12-01/apimanagement/emailtemplate.go | 7 + .../mgmt/2019-12-01/apimanagement/gateway.go | 10 + .../2019-12-01/apimanagement/gatewayapi.go | 5 + .../gatewayhostnameconfiguration.go | 6 + .../mgmt/2019-12-01/apimanagement/group.go | 7 + .../2019-12-01/apimanagement/groupuser.go | 5 + .../apimanagement/identityprovider.go | 8 + .../mgmt/2019-12-01/apimanagement/issue.go | 3 + .../mgmt/2019-12-01/apimanagement/logger.go | 7 + .../2019-12-01/apimanagement/namedvalue.go | 6 + .../2019-12-01/apimanagement/networkstatus.go | 2 + .../2019-12-01/apimanagement/notification.go | 4 + .../notificationrecipientemail.go | 4 + .../notificationrecipientuser.go | 4 + .../apimanagement/openidconnectprovider.go | 8 + .../2019-12-01/apimanagement/operation.go | 2 + .../2019-12-01/apimanagement/operations.go | 2 + .../mgmt/2019-12-01/apimanagement/policy.go | 5 + .../apimanagement/policydescription.go | 1 + .../mgmt/2019-12-01/apimanagement/product.go | 9 + .../2019-12-01/apimanagement/productapi.go | 5 + .../2019-12-01/apimanagement/productgroup.go | 5 + .../2019-12-01/apimanagement/productpolicy.go | 5 + .../apimanagement/productsubscriptions.go | 2 + .../apimanagement/quotabycounterkeys.go | 2 + .../apimanagement/quotabyperiodkeys.go | 2 + .../mgmt/2019-12-01/apimanagement/region.go | 2 + .../mgmt/2019-12-01/apimanagement/reports.go | 15 + .../mgmt/2019-12-01/apimanagement/service.go | 7 + .../2019-12-01/apimanagement/serviceskus.go | 2 + .../apimanagement/signinsettings.go | 4 + .../apimanagement/signupsettings.go | 4 + .../2019-12-01/apimanagement/subscription.go | 10 + .../mgmt/2019-12-01/apimanagement/tag.go | 25 ++ .../2019-12-01/apimanagement/tagresource.go | 2 + .../2019-12-01/apimanagement/tenantaccess.go | 6 + .../apimanagement/tenantaccessgit.go | 4 + .../apimanagement/tenantconfiguration.go | 1 + .../mgmt/2019-12-01/apimanagement/user.go | 9 + .../apimanagement/userconfirmationpassword.go | 1 + .../2019-12-01/apimanagement/usergroup.go | 2 + .../apimanagement/useridentities.go | 2 + .../apimanagement/usersubscription.go | 2 + .../appconfiguration/configurationstores.go | 9 + .../2019-10-01/appconfiguration/operations.go | 3 + .../appconfiguration/configurationstores.go | 9 + .../2020-06-01/appconfiguration/operations.go | 3 + .../privateendpointconnections.go | 3 + .../appconfiguration/privatelinkresources.go | 3 + .../2015-05-01/insights/analyticsitems.go | 4 + .../mgmt/2015-05-01/insights/annotations.go | 4 + .../mgmt/2015-05-01/insights/apikeys.go | 4 + .../insights/componentavailablefeatures.go | 1 + .../componentcurrentbillingfeatures.go | 2 + .../insights/componentfeaturecapabilities.go | 1 + .../insights/componentquotastatus.go | 1 + .../mgmt/2015-05-01/insights/components.go | 10 + .../insights/exportconfigurations.go | 5 + .../mgmt/2015-05-01/insights/favorites.go | 5 + .../mgmt/2015-05-01/insights/myworkbooks.go | 6 + .../mgmt/2015-05-01/insights/operations.go | 2 + .../proactivedetectionconfigurations.go | 3 + .../2015-05-01/insights/webtestlocations.go | 1 + .../mgmt/2015-05-01/insights/webtests.go | 10 + .../mgmt/2015-05-01/insights/workbooks.go | 5 + .../insights/workitemconfigurations.go | 6 + .../mgmt/2020-07-01/appplatform/apps.go | 5 + .../mgmt/2020-07-01/appplatform/bindings.go | 3 + .../2020-07-01/appplatform/certificates.go | 3 + .../2020-07-01/appplatform/configservers.go | 1 + .../2020-07-01/appplatform/customdomains.go | 3 + .../2020-07-01/appplatform/deployments.go | 6 + .../appplatform/monitoringsettings.go | 1 + .../mgmt/2020-07-01/appplatform/operations.go | 2 + .../2020-07-01/appplatform/runtimeversions.go | 1 + .../mgmt/2020-07-01/appplatform/services.go | 10 + .../mgmt/2020-07-01/appplatform/skus.go | 2 + .../attestation/metadataconfiguration.go | 1 + .../2018-09-01/attestation/policy.go | 4 + .../attestation/policycertificates.go | 3 + .../attestation/signingcertificates.go | 1 + .../2020-10-01/attestation/attestation.go | 3 + .../attestation/metadataconfiguration.go | 1 + .../2020-10-01/attestation/policy.go | 3 + .../attestation/policycertificates.go | 3 + .../attestation/signingcertificates.go | 1 + .../mgmt/2018-09-01/attestation/operations.go | 1 + .../mgmt/2018-09-01/attestation/providers.go | 8 + .../mgmt/2020-10-01/attestation/operations.go | 1 + .../mgmt/2020-10-01/attestation/providers.go | 8 + .../authorization/classicadministrators.go | 2 + .../authorization/globaladministrator.go | 1 + .../2015-07-01/authorization/permissions.go | 4 + .../provideroperationsmetadata.go | 3 + .../authorization/roleassignments.go | 14 + .../authorization/roledefinitions.go | 6 + .../mgmt/2015-10-31/automation/account.go | 8 + .../mgmt/2015-10-31/automation/activity.go | 3 + .../agentregistrationinformation.go | 2 + .../mgmt/2015-10-31/automation/certificate.go | 6 + .../mgmt/2015-10-31/automation/connection.go | 6 + .../2015-10-31/automation/connectiontype.go | 5 + .../mgmt/2015-10-31/automation/credential.go | 6 + .../automation/dsccompilationjob.go | 5 + .../automation/dsccompilationjobstream.go | 1 + .../2015-10-31/automation/dscconfiguration.go | 7 + .../mgmt/2015-10-31/automation/dscnode.go | 5 + .../automation/dscnodeconfiguration.go | 5 + .../mgmt/2015-10-31/automation/fields.go | 1 + .../automation/hybridrunbookworkergroup.go | 5 + .../mgmt/2015-10-31/automation/job.go | 9 + .../mgmt/2015-10-31/automation/jobschedule.go | 5 + .../mgmt/2015-10-31/automation/jobstream.go | 3 + .../mgmt/2015-10-31/automation/keys.go | 1 + .../2015-10-31/automation/linkedworkspace.go | 1 + .../mgmt/2015-10-31/automation/module.go | 6 + .../mgmt/2015-10-31/automation/nodereports.go | 4 + .../2015-10-31/automation/objectdatatypes.go | 2 + .../mgmt/2015-10-31/automation/operations.go | 1 + .../mgmt/2015-10-31/automation/runbook.go | 7 + .../2015-10-31/automation/runbookdraft.go | 3 + .../mgmt/2015-10-31/automation/schedule.go | 6 + .../mgmt/2015-10-31/automation/statistics.go | 1 + .../mgmt/2015-10-31/automation/testjob.go | 5 + .../2015-10-31/automation/testjobstreams.go | 3 + .../mgmt/2015-10-31/automation/usages.go | 1 + .../mgmt/2015-10-31/automation/variable.go | 6 + .../mgmt/2015-10-31/automation/webhook.go | 7 + .../avs/mgmt/2020-03-20/avs/authorizations.go | 3 + services/avs/mgmt/2020-03-20/avs/clusters.go | 3 + .../mgmt/2020-03-20/avs/hcxenterprisesites.go | 5 + services/avs/mgmt/2020-03-20/avs/locations.go | 2 + .../avs/mgmt/2020-03-20/avs/operations.go | 2 + .../avs/mgmt/2020-03-20/avs/privateclouds.go | 6 + .../azurestack/cloudmanifestfile.go | 2 + .../azurestack/customersubscriptions.go | 5 + .../mgmt/2017-06-01/azurestack/operations.go | 2 + .../mgmt/2017-06-01/azurestack/products.go | 7 + .../2017-06-01/azurestack/registrations.go | 7 + .../mgmt/2020-10-01/azurestackhci/clusters.go | 8 + .../2020-10-01/azurestackhci/operations.go | 1 + .../batch/2017-05-01.5.0/batch/account.go | 2 + .../batch/2017-05-01.5.0/batch/application.go | 3 + .../batch/2017-05-01.5.0/batch/certificate.go | 6 + .../batch/2017-05-01.5.0/batch/computenode.go | 12 + services/batch/2017-05-01.5.0/batch/file.go | 10 + services/batch/2017-05-01.5.0/batch/job.go | 15 + .../batch/2017-05-01.5.0/batch/jobschedule.go | 11 + services/batch/2017-05-01.5.0/batch/pool.go | 18 + services/batch/2017-05-01.5.0/batch/task.go | 10 + .../batch/2018-03-01.6.1/batch/account.go | 4 + .../batch/2018-03-01.6.1/batch/application.go | 3 + .../batch/2018-03-01.6.1/batch/certificate.go | 6 + .../batch/2018-03-01.6.1/batch/computenode.go | 13 + services/batch/2018-03-01.6.1/batch/file.go | 10 + services/batch/2018-03-01.6.1/batch/job.go | 16 + .../batch/2018-03-01.6.1/batch/jobschedule.go | 11 + services/batch/2018-03-01.6.1/batch/pool.go | 18 + services/batch/2018-03-01.6.1/batch/task.go | 10 + .../batch/2018-08-01.7.0/batch/account.go | 4 + .../batch/2018-08-01.7.0/batch/application.go | 3 + .../batch/2018-08-01.7.0/batch/certificate.go | 6 + .../batch/2018-08-01.7.0/batch/computenode.go | 13 + services/batch/2018-08-01.7.0/batch/file.go | 10 + services/batch/2018-08-01.7.0/batch/job.go | 16 + .../batch/2018-08-01.7.0/batch/jobschedule.go | 11 + services/batch/2018-08-01.7.0/batch/pool.go | 18 + services/batch/2018-08-01.7.0/batch/task.go | 10 + .../batch/2018-12-01.8.0/batch/account.go | 4 + .../batch/2018-12-01.8.0/batch/application.go | 3 + .../batch/2018-12-01.8.0/batch/certificate.go | 6 + .../batch/2018-12-01.8.0/batch/computenode.go | 13 + services/batch/2018-12-01.8.0/batch/file.go | 10 + services/batch/2018-12-01.8.0/batch/job.go | 16 + .../batch/2018-12-01.8.0/batch/jobschedule.go | 11 + services/batch/2018-12-01.8.0/batch/pool.go | 17 + services/batch/2018-12-01.8.0/batch/task.go | 10 + .../batch/2019-06-01.9.0/batch/account.go | 4 + .../batch/2019-06-01.9.0/batch/application.go | 3 + .../batch/2019-06-01.9.0/batch/certificate.go | 6 + .../batch/2019-06-01.9.0/batch/computenode.go | 13 + services/batch/2019-06-01.9.0/batch/file.go | 10 + services/batch/2019-06-01.9.0/batch/job.go | 16 + .../batch/2019-06-01.9.0/batch/jobschedule.go | 11 + services/batch/2019-06-01.9.0/batch/pool.go | 17 + services/batch/2019-06-01.9.0/batch/task.go | 10 + .../batch/2019-08-01.10.0/batch/account.go | 4 + .../2019-08-01.10.0/batch/application.go | 3 + .../2019-08-01.10.0/batch/certificate.go | 6 + .../2019-08-01.10.0/batch/computenode.go | 13 + services/batch/2019-08-01.10.0/batch/file.go | 10 + services/batch/2019-08-01.10.0/batch/job.go | 16 + .../2019-08-01.10.0/batch/jobschedule.go | 11 + services/batch/2019-08-01.10.0/batch/pool.go | 17 + services/batch/2019-08-01.10.0/batch/task.go | 10 + .../batch/2020-03-01.11.0/batch/account.go | 4 + .../2020-03-01.11.0/batch/application.go | 3 + .../2020-03-01.11.0/batch/certificate.go | 6 + .../2020-03-01.11.0/batch/computenode.go | 13 + services/batch/2020-03-01.11.0/batch/file.go | 10 + services/batch/2020-03-01.11.0/batch/job.go | 16 + .../2020-03-01.11.0/batch/jobschedule.go | 11 + services/batch/2020-03-01.11.0/batch/pool.go | 17 + services/batch/2020-03-01.11.0/batch/task.go | 10 + .../batch/2020-09-01.12.0/batch/account.go | 4 + .../2020-09-01.12.0/batch/application.go | 3 + .../2020-09-01.12.0/batch/certificate.go | 6 + .../2020-09-01.12.0/batch/computenode.go | 13 + services/batch/2020-09-01.12.0/batch/file.go | 10 + services/batch/2020-09-01.12.0/batch/job.go | 16 + .../2020-09-01.12.0/batch/jobschedule.go | 11 + services/batch/2020-09-01.12.0/batch/pool.go | 17 + services/batch/2020-09-01.12.0/batch/task.go | 10 + .../batch/mgmt/2015-12-01/batch/account.go | 9 + .../mgmt/2015-12-01/batch/application.go | 6 + .../2015-12-01/batch/applicationpackage.go | 4 + .../batch/mgmt/2015-12-01/batch/location.go | 1 + .../batch/mgmt/2017-01-01/batch/account.go | 9 + .../mgmt/2017-01-01/batch/application.go | 6 + .../2017-01-01/batch/applicationpackage.go | 4 + .../batch/mgmt/2017-01-01/batch/location.go | 1 + .../batch/mgmt/2017-05-01/batch/account.go | 9 + .../mgmt/2017-05-01/batch/application.go | 6 + .../2017-05-01/batch/applicationpackage.go | 4 + .../batch/mgmt/2017-05-01/batch/location.go | 2 + .../batch/mgmt/2017-05-01/batch/operations.go | 2 + .../batch/mgmt/2017-09-01/batch/account.go | 9 + .../mgmt/2017-09-01/batch/application.go | 6 + .../2017-09-01/batch/applicationpackage.go | 4 + .../mgmt/2017-09-01/batch/certificate.go | 5 + .../batch/mgmt/2017-09-01/batch/location.go | 2 + .../batch/mgmt/2017-09-01/batch/operations.go | 2 + services/batch/mgmt/2017-09-01/batch/pool.go | 6 + .../batch/mgmt/2018-12-01/batch/account.go | 9 + .../mgmt/2018-12-01/batch/application.go | 6 + .../2018-12-01/batch/applicationpackage.go | 6 + .../mgmt/2018-12-01/batch/certificate.go | 5 + .../batch/mgmt/2018-12-01/batch/location.go | 2 + .../batch/mgmt/2018-12-01/batch/operations.go | 2 + services/batch/mgmt/2018-12-01/batch/pool.go | 6 + .../batch/mgmt/2019-04-01/batch/account.go | 9 + .../mgmt/2019-04-01/batch/application.go | 6 + .../2019-04-01/batch/applicationpackage.go | 6 + .../mgmt/2019-04-01/batch/certificate.go | 5 + .../batch/mgmt/2019-04-01/batch/location.go | 2 + .../batch/mgmt/2019-04-01/batch/operations.go | 2 + services/batch/mgmt/2019-04-01/batch/pool.go | 6 + .../batch/mgmt/2019-08-01/batch/account.go | 9 + .../mgmt/2019-08-01/batch/application.go | 6 + .../2019-08-01/batch/applicationpackage.go | 6 + .../mgmt/2019-08-01/batch/certificate.go | 5 + .../batch/mgmt/2019-08-01/batch/location.go | 2 + .../batch/mgmt/2019-08-01/batch/operations.go | 2 + services/batch/mgmt/2019-08-01/batch/pool.go | 6 + .../batch/mgmt/2020-03-01/batch/account.go | 9 + .../mgmt/2020-03-01/batch/application.go | 6 + .../2020-03-01/batch/applicationpackage.go | 6 + .../mgmt/2020-03-01/batch/certificate.go | 5 + .../batch/mgmt/2020-03-01/batch/location.go | 2 + .../batch/mgmt/2020-03-01/batch/operations.go | 2 + services/batch/mgmt/2020-03-01/batch/pool.go | 6 + .../batch/privateendpointconnection.go | 4 + .../2020-03-01/batch/privatelinkresource.go | 3 + .../batch/mgmt/2020-05-01/batch/account.go | 9 + .../mgmt/2020-05-01/batch/application.go | 6 + .../2020-05-01/batch/applicationpackage.go | 6 + .../mgmt/2020-05-01/batch/certificate.go | 5 + .../batch/mgmt/2020-05-01/batch/location.go | 2 + .../batch/mgmt/2020-05-01/batch/operations.go | 2 + services/batch/mgmt/2020-05-01/batch/pool.go | 6 + .../batch/privateendpointconnection.go | 3 + .../2020-05-01/batch/privatelinkresource.go | 3 + .../batch/mgmt/2020-09-01/batch/account.go | 9 + .../mgmt/2020-09-01/batch/application.go | 6 + .../2020-09-01/batch/applicationpackage.go | 6 + .../mgmt/2020-09-01/batch/certificate.go | 5 + .../batch/mgmt/2020-09-01/batch/location.go | 2 + .../batch/mgmt/2020-09-01/batch/operations.go | 2 + services/batch/mgmt/2020-09-01/batch/pool.go | 6 + .../batch/privateendpointconnection.go | 3 + .../2020-09-01/batch/privatelinkresource.go | 3 + .../mgmt/2018-03-01/batchai/clusters.go | 8 + .../mgmt/2018-03-01/batchai/fileservers.go | 5 + .../batchai/mgmt/2018-03-01/batchai/jobs.go | 9 + .../mgmt/2018-03-01/batchai/operations.go | 2 + .../batchai/mgmt/2018-03-01/batchai/usage.go | 2 + .../mgmt/2018-05-01/batchai/clusters.go | 6 + .../mgmt/2018-05-01/batchai/experiments.go | 3 + .../mgmt/2018-05-01/batchai/fileservers.go | 3 + .../batchai/mgmt/2018-05-01/batchai/jobs.go | 7 + .../mgmt/2018-05-01/batchai/operations.go | 2 + .../batchai/mgmt/2018-05-01/batchai/usages.go | 2 + .../mgmt/2018-05-01/batchai/workspaces.go | 6 + .../cdn/mgmt/2015-06-01/cdn/customdomains.go | 3 + services/cdn/mgmt/2015-06-01/cdn/endpoints.go | 3 + .../mgmt/2015-06-01/cdn/nameavailability.go | 1 + .../cdn/mgmt/2015-06-01/cdn/operations.go | 1 + services/cdn/mgmt/2015-06-01/cdn/origins.go | 2 + services/cdn/mgmt/2015-06-01/cdn/profiles.go | 4 + .../cdn/mgmt/2016-04-02/cdn/customdomains.go | 3 + services/cdn/mgmt/2016-04-02/cdn/endpoints.go | 3 + .../mgmt/2016-04-02/cdn/nameavailability.go | 1 + .../cdn/mgmt/2016-04-02/cdn/operations.go | 1 + services/cdn/mgmt/2016-04-02/cdn/origins.go | 2 + services/cdn/mgmt/2016-04-02/cdn/profiles.go | 4 + services/cdn/mgmt/2016-10-02/cdn/client.go | 5 + .../cdn/mgmt/2016-10-02/cdn/customdomains.go | 5 + services/cdn/mgmt/2016-10-02/cdn/edgenodes.go | 2 + services/cdn/mgmt/2016-10-02/cdn/endpoints.go | 6 + services/cdn/mgmt/2016-10-02/cdn/origins.go | 3 + services/cdn/mgmt/2016-10-02/cdn/profiles.go | 9 + services/cdn/mgmt/2017-04-02/cdn/client.go | 2 + .../cdn/mgmt/2017-04-02/cdn/customdomains.go | 5 + services/cdn/mgmt/2017-04-02/cdn/edgenodes.go | 2 + services/cdn/mgmt/2017-04-02/cdn/endpoints.go | 6 + .../cdn/mgmt/2017-04-02/cdn/operations.go | 2 + services/cdn/mgmt/2017-04-02/cdn/origins.go | 3 + services/cdn/mgmt/2017-04-02/cdn/profiles.go | 9 + .../cdn/mgmt/2017-04-02/cdn/resourceusage.go | 2 + services/cdn/mgmt/2017-10-12/cdn/client.go | 3 + .../cdn/mgmt/2017-10-12/cdn/customdomains.go | 5 + services/cdn/mgmt/2017-10-12/cdn/edgenodes.go | 2 + services/cdn/mgmt/2017-10-12/cdn/endpoints.go | 6 + .../cdn/mgmt/2017-10-12/cdn/operations.go | 2 + services/cdn/mgmt/2017-10-12/cdn/origins.go | 3 + services/cdn/mgmt/2017-10-12/cdn/profiles.go | 9 + .../cdn/mgmt/2017-10-12/cdn/resourceusage.go | 2 + services/cdn/mgmt/2019-04-15/cdn/client.go | 3 + .../cdn/mgmt/2019-04-15/cdn/customdomains.go | 5 + services/cdn/mgmt/2019-04-15/cdn/edgenodes.go | 2 + services/cdn/mgmt/2019-04-15/cdn/endpoints.go | 6 + .../cdn/mgmt/2019-04-15/cdn/operations.go | 2 + services/cdn/mgmt/2019-04-15/cdn/origins.go | 3 + services/cdn/mgmt/2019-04-15/cdn/profiles.go | 9 + .../cdn/mgmt/2019-04-15/cdn/resourceusage.go | 2 + services/cdn/mgmt/2019-06-15/cdn/client.go | 3 + .../cdn/mgmt/2019-06-15/cdn/customdomains.go | 5 + services/cdn/mgmt/2019-06-15/cdn/edgenodes.go | 2 + services/cdn/mgmt/2019-06-15/cdn/endpoints.go | 6 + .../mgmt/2019-06-15/cdn/managedrulesets.go | 2 + .../cdn/mgmt/2019-06-15/cdn/operations.go | 2 + services/cdn/mgmt/2019-06-15/cdn/origins.go | 3 + services/cdn/mgmt/2019-06-15/cdn/policies.go | 4 + services/cdn/mgmt/2019-06-15/cdn/profiles.go | 9 + .../cdn/mgmt/2019-06-15/cdn/resourceusage.go | 2 + services/cdn/mgmt/2020-04-15/cdn/client.go | 3 + .../cdn/mgmt/2020-04-15/cdn/customdomains.go | 5 + services/cdn/mgmt/2020-04-15/cdn/edgenodes.go | 2 + services/cdn/mgmt/2020-04-15/cdn/endpoints.go | 6 + .../mgmt/2020-04-15/cdn/managedrulesets.go | 2 + .../cdn/mgmt/2020-04-15/cdn/operations.go | 2 + .../cdn/mgmt/2020-04-15/cdn/origingroups.go | 3 + services/cdn/mgmt/2020-04-15/cdn/origins.go | 3 + services/cdn/mgmt/2020-04-15/cdn/policies.go | 4 + services/cdn/mgmt/2020-04-15/cdn/profiles.go | 9 + .../cdn/mgmt/2020-04-15/cdn/resourceusage.go | 2 + .../2017-04-18/cognitiveservices/accounts.go | 12 + .../2017-04-18/cognitiveservices/client.go | 2 + .../cognitiveservices/operations.go | 2 + .../privateendpointconnections.go | 4 + .../cognitiveservices/privatelinkresources.go | 1 + .../cognitiveservices/resourceskus.go | 2 + .../v1.0/autosuggest/client.go | 1 + .../v1.0/contentmoderator/imagemoderation.go | 12 + .../contentmoderator/listmanagementimage.go | 6 + .../listmanagementimagelists.go | 6 + .../contentmoderator/listmanagementterm.go | 4 + .../listmanagementtermlists.go | 6 + .../v1.0/contentmoderator/reviews.go | 12 + .../v1.0/contentmoderator/textmoderation.go | 2 + .../v1.0/customimagesearch/custominstance.go | 1 + .../v1.0/customsearch/custominstance.go | 1 + .../v1.0/entitysearch/entities.go | 1 + services/cognitiveservices/v1.0/face/face.go | 7 + .../v1.0/face/largefacelist.go | 13 + .../v1.0/face/largepersongroup.go | 7 + .../v1.0/face/largepersongroupperson.go | 10 + services/cognitiveservices/v1.0/face/list.go | 8 + .../v1.0/face/persongroup.go | 7 + .../v1.0/face/persongroupperson.go | 10 + .../cognitiveservices/v1.0/face/snapshot.go | 7 + .../v1.0/imagesearch/images.go | 3 + .../v1.0/localsearch/local.go | 1 + .../cognitiveservices/v1.0/newssearch/news.go | 3 + .../v1.0/spellcheck/client.go | 1 + .../v1.0/videosearch/videos.go | 3 + .../cognitiveservices/v1.0/websearch/web.go | 1 + .../v1.1/customvision/prediction/client.go | 4 + .../v1.2/customvision/training/client.go | 41 ++ .../v2.0/computervision/client.go | 23 + .../v2.0/luis/authoring/apps.go | 22 + .../v2.0/luis/authoring/azureaccounts.go | 4 + .../v2.0/luis/authoring/examples.go | 4 + .../v2.0/luis/authoring/features.go | 7 + .../v2.0/luis/authoring/model.go | 106 +++++ .../v2.0/luis/authoring/pattern.go | 8 + .../v2.0/luis/authoring/permissions.go | 4 + .../v2.0/luis/authoring/settings.go | 2 + .../v2.0/luis/authoring/train.go | 2 + .../v2.0/luis/authoring/versions.go | 8 + .../v2.0/luis/programmatic/apps.go | 18 + .../v2.0/luis/programmatic/examples.go | 4 + .../v2.0/luis/programmatic/features.go | 6 + .../v2.0/luis/programmatic/model.go | 105 +++++ .../v2.0/luis/programmatic/pattern.go | 8 + .../v2.0/luis/programmatic/permissions.go | 4 + .../v2.0/luis/programmatic/train.go | 2 + .../v2.0/luis/programmatic/versions.go | 8 + .../v2.0/luis/runtime/prediction.go | 1 + .../v2.0/textanalytics/client.go | 4 + .../v2.1/computervision/client.go | 23 + .../v2.1/customvision/training/client.go | 41 ++ .../v2.1/textanalytics/client.go | 4 + .../v2.2/customvision/training/client.go | 41 ++ .../v3.0/computervision/client.go | 20 + .../v3.0/customvision/prediction/client.go | 8 + .../v3.0/customvision/training/client.go | 43 ++ .../v3.0/luis/runtime/prediction.go | 2 + .../v3.0/translatortext/translator.go | 7 + .../v3.1/computervision/client.go | 20 + .../v3.1/customvision/prediction/client.go | 8 + .../v3.1/customvision/training/client.go | 46 ++ .../v3.2/customvision/training/client.go | 48 +++ .../v3.3/customvision/training/client.go | 52 +++ .../v4.0/qnamaker/alterations.go | 2 + .../v4.0/qnamaker/endpointkeys.go | 2 + .../v4.0/qnamaker/endpointsettings.go | 2 + .../v4.0/qnamaker/knowledgebase.go | 8 + .../v4.0/qnamaker/operations.go | 1 + .../v4.0/qnamakerruntime/runtime.go | 2 + .../2015-06-15/compute/availabilitysets.go | 6 + .../compute/mgmt/2015-06-15/compute/usage.go | 2 + .../compute/virtualmachineextensionimages.go | 3 + .../compute/virtualmachineextensions.go | 1 + .../compute/virtualmachineimages.go | 5 + .../2015-06-15/compute/virtualmachines.go | 7 + .../compute/virtualmachinescalesets.go | 8 + .../compute/virtualmachinescalesetvms.go | 4 + .../2015-06-15/compute/virtualmachinesizes.go | 1 + .../2016-03-30/compute/availabilitysets.go | 8 + .../compute/mgmt/2016-03-30/compute/usage.go | 2 + .../compute/virtualmachineextensionimages.go | 3 + .../compute/virtualmachineextensions.go | 1 + .../compute/virtualmachineimages.go | 5 + .../2016-03-30/compute/virtualmachines.go | 8 + .../compute/virtualmachinescalesets.go | 8 + .../compute/virtualmachinescalesetvms.go | 4 + .../2016-03-30/compute/virtualmachinesizes.go | 1 + .../2017-03-30/compute/availabilitysets.go | 8 + .../compute/mgmt/2017-03-30/compute/disks.go | 5 + .../compute/mgmt/2017-03-30/compute/images.go | 5 + .../mgmt/2017-03-30/compute/resourceskus.go | 2 + .../mgmt/2017-03-30/compute/snapshots.go | 5 + .../compute/mgmt/2017-03-30/compute/usage.go | 2 + .../compute/virtualmachineextensionimages.go | 3 + .../compute/virtualmachineextensions.go | 1 + .../compute/virtualmachineimages.go | 5 + .../compute/virtualmachineruncommands.go | 3 + .../2017-03-30/compute/virtualmachines.go | 11 + .../virtualmachinescalesetextensions.go | 3 + .../virtualmachinescalesetrollingupgrades.go | 1 + .../compute/virtualmachinescalesets.go | 8 + .../compute/virtualmachinescalesetvms.go | 4 + .../2017-03-30/compute/virtualmachinesizes.go | 1 + .../mgmt/2017-09-01/skus/resourceskus.go | 2 + .../2017-12-01/compute/availabilitysets.go | 9 + .../compute/mgmt/2017-12-01/compute/disks.go | 5 + .../compute/mgmt/2017-12-01/compute/images.go | 5 + .../mgmt/2017-12-01/compute/operations.go | 1 + .../mgmt/2017-12-01/compute/resourceskus.go | 2 + .../mgmt/2017-12-01/compute/snapshots.go | 5 + .../compute/mgmt/2017-12-01/compute/usage.go | 2 + .../compute/virtualmachineextensionimages.go | 3 + .../compute/virtualmachineextensions.go | 1 + .../compute/virtualmachineimages.go | 5 + .../compute/virtualmachineruncommands.go | 3 + .../2017-12-01/compute/virtualmachines.go | 11 + .../virtualmachinescalesetextensions.go | 3 + .../virtualmachinescalesetrollingupgrades.go | 1 + .../compute/virtualmachinescalesets.go | 11 + .../compute/virtualmachinescalesetvms.go | 4 + .../2017-12-01/compute/virtualmachinesizes.go | 1 + .../2018-04-01/compute/availabilitysets.go | 9 + .../compute/mgmt/2018-04-01/compute/disks.go | 5 + .../compute/mgmt/2018-04-01/compute/images.go | 5 + .../mgmt/2018-04-01/compute/operations.go | 1 + .../compute/proximityplacementgroups.go | 8 + .../mgmt/2018-04-01/compute/snapshots.go | 5 + .../compute/mgmt/2018-04-01/compute/usage.go | 2 + .../compute/virtualmachineextensionimages.go | 3 + .../compute/virtualmachineextensions.go | 2 + .../compute/virtualmachineimages.go | 5 + .../compute/virtualmachineruncommands.go | 3 + .../2018-04-01/compute/virtualmachines.go | 10 + .../virtualmachinescalesetextensions.go | 3 + .../virtualmachinescalesetrollingupgrades.go | 1 + .../compute/virtualmachinescalesets.go | 11 + .../compute/virtualmachinescalesetvms.go | 4 + .../2018-04-01/compute/virtualmachinesizes.go | 1 + .../2018-06-01/compute/availabilitysets.go | 9 + .../2018-06-01/compute/containerservices.go | 5 + .../compute/mgmt/2018-06-01/compute/disks.go | 5 + .../mgmt/2018-06-01/compute/galleries.go | 5 + .../mgmt/2018-06-01/compute/galleryimages.go | 3 + .../compute/galleryimageversions.go | 3 + .../compute/mgmt/2018-06-01/compute/images.go | 5 + .../mgmt/2018-06-01/compute/operations.go | 1 + .../compute/proximityplacementgroups.go | 8 + .../mgmt/2018-06-01/compute/resourceskus.go | 2 + .../mgmt/2018-06-01/compute/snapshots.go | 5 + .../compute/mgmt/2018-06-01/compute/usage.go | 2 + .../compute/virtualmachineextensionimages.go | 3 + .../compute/virtualmachineextensions.go | 2 + .../compute/virtualmachineimages.go | 5 + .../compute/virtualmachineruncommands.go | 3 + .../2018-06-01/compute/virtualmachines.go | 10 + .../virtualmachinescalesetextensions.go | 3 + .../virtualmachinescalesetrollingupgrades.go | 1 + .../compute/virtualmachinescalesets.go | 11 + .../compute/virtualmachinescalesetvms.go | 4 + .../2018-06-01/compute/virtualmachinesizes.go | 1 + .../2018-10-01/compute/availabilitysets.go | 9 + .../2018-10-01/compute/containerservices.go | 5 + .../compute/mgmt/2018-10-01/compute/disks.go | 5 + .../mgmt/2018-10-01/compute/galleries.go | 5 + .../mgmt/2018-10-01/compute/galleryimages.go | 3 + .../compute/galleryimageversions.go | 3 + .../compute/mgmt/2018-10-01/compute/images.go | 5 + .../mgmt/2018-10-01/compute/operations.go | 1 + .../compute/proximityplacementgroups.go | 8 + .../mgmt/2018-10-01/compute/resourceskus.go | 2 + .../mgmt/2018-10-01/compute/snapshots.go | 5 + .../compute/mgmt/2018-10-01/compute/usage.go | 2 + .../compute/virtualmachineextensionimages.go | 3 + .../compute/virtualmachineextensions.go | 2 + .../compute/virtualmachineimages.go | 5 + .../compute/virtualmachineruncommands.go | 3 + .../2018-10-01/compute/virtualmachines.go | 10 + .../virtualmachinescalesetextensions.go | 3 + .../virtualmachinescalesetrollingupgrades.go | 1 + .../compute/virtualmachinescalesets.go | 11 + .../compute/virtualmachinescalesetvms.go | 4 + .../2018-10-01/compute/virtualmachinesizes.go | 1 + .../2019-03-01/compute/availabilitysets.go | 9 + .../2019-03-01/compute/containerservices.go | 5 + .../2019-03-01/compute/dedicatedhostgroups.go | 8 + .../mgmt/2019-03-01/compute/dedicatedhosts.go | 3 + .../compute/mgmt/2019-03-01/compute/disks.go | 5 + .../mgmt/2019-03-01/compute/galleries.go | 5 + .../2019-03-01/compute/galleryapplications.go | 3 + .../compute/galleryapplicationversions.go | 3 + .../mgmt/2019-03-01/compute/galleryimages.go | 3 + .../compute/galleryimageversions.go | 3 + .../compute/mgmt/2019-03-01/compute/images.go | 5 + .../mgmt/2019-03-01/compute/operations.go | 1 + .../compute/proximityplacementgroups.go | 8 + .../mgmt/2019-03-01/compute/resourceskus.go | 2 + .../mgmt/2019-03-01/compute/snapshots.go | 5 + .../compute/mgmt/2019-03-01/compute/usage.go | 2 + .../compute/virtualmachineextensionimages.go | 3 + .../compute/virtualmachineextensions.go | 2 + .../compute/virtualmachineimages.go | 5 + .../compute/virtualmachineruncommands.go | 3 + .../2019-03-01/compute/virtualmachines.go | 10 + .../virtualmachinescalesetextensions.go | 3 + .../virtualmachinescalesetrollingupgrades.go | 1 + .../compute/virtualmachinescalesets.go | 12 + .../compute/virtualmachinescalesetvms.go | 4 + .../2019-03-01/compute/virtualmachinesizes.go | 1 + .../2019-07-01/compute/availabilitysets.go | 9 + .../2019-07-01/compute/containerservices.go | 5 + .../2019-07-01/compute/dedicatedhostgroups.go | 8 + .../mgmt/2019-07-01/compute/dedicatedhosts.go | 3 + .../2019-07-01/compute/diskencryptionsets.go | 5 + .../compute/mgmt/2019-07-01/compute/disks.go | 5 + .../mgmt/2019-07-01/compute/galleries.go | 5 + .../2019-07-01/compute/galleryapplications.go | 3 + .../compute/galleryapplicationversions.go | 3 + .../mgmt/2019-07-01/compute/galleryimages.go | 3 + .../compute/galleryimageversions.go | 3 + .../compute/mgmt/2019-07-01/compute/images.go | 5 + .../mgmt/2019-07-01/compute/operations.go | 1 + .../compute/proximityplacementgroups.go | 8 + .../mgmt/2019-07-01/compute/resourceskus.go | 2 + .../mgmt/2019-07-01/compute/snapshots.go | 5 + .../compute/mgmt/2019-07-01/compute/usage.go | 2 + .../compute/virtualmachineextensionimages.go | 3 + .../compute/virtualmachineextensions.go | 2 + .../compute/virtualmachineimages.go | 5 + .../compute/virtualmachineruncommands.go | 3 + .../2019-07-01/compute/virtualmachines.go | 10 + .../virtualmachinescalesetextensions.go | 3 + .../virtualmachinescalesetrollingupgrades.go | 1 + .../compute/virtualmachinescalesets.go | 12 + .../virtualmachinescalesetvmextensions.go | 2 + .../compute/virtualmachinescalesetvms.go | 4 + .../2019-07-01/compute/virtualmachinesizes.go | 1 + .../2019-12-01/compute/availabilitysets.go | 9 + .../2019-12-01/compute/containerservices.go | 5 + .../2019-12-01/compute/dedicatedhostgroups.go | 8 + .../mgmt/2019-12-01/compute/dedicatedhosts.go | 3 + .../2019-12-01/compute/diskencryptionsets.go | 5 + .../compute/mgmt/2019-12-01/compute/disks.go | 5 + .../mgmt/2019-12-01/compute/galleries.go | 5 + .../2019-12-01/compute/galleryapplications.go | 3 + .../compute/galleryapplicationversions.go | 3 + .../mgmt/2019-12-01/compute/galleryimages.go | 3 + .../compute/galleryimageversions.go | 3 + .../compute/mgmt/2019-12-01/compute/images.go | 5 + .../mgmt/2019-12-01/compute/operations.go | 1 + .../compute/proximityplacementgroups.go | 8 + .../mgmt/2019-12-01/compute/resourceskus.go | 2 + .../mgmt/2019-12-01/compute/snapshots.go | 5 + .../mgmt/2019-12-01/compute/sshpublickeys.go | 9 + .../compute/mgmt/2019-12-01/compute/usage.go | 2 + .../compute/virtualmachineextensionimages.go | 3 + .../compute/virtualmachineextensions.go | 2 + .../compute/virtualmachineimages.go | 5 + .../compute/virtualmachineruncommands.go | 3 + .../2019-12-01/compute/virtualmachines.go | 11 + .../virtualmachinescalesetextensions.go | 3 + .../virtualmachinescalesetrollingupgrades.go | 1 + .../compute/virtualmachinescalesets.go | 12 + .../virtualmachinescalesetvmextensions.go | 2 + .../compute/virtualmachinescalesetvms.go | 5 + .../2019-12-01/compute/virtualmachinesizes.go | 1 + .../2020-06-01/compute/availabilitysets.go | 9 + .../2020-06-01/compute/containerservices.go | 5 + .../2020-06-01/compute/dedicatedhostgroups.go | 8 + .../mgmt/2020-06-01/compute/dedicatedhosts.go | 3 + .../mgmt/2020-06-01/compute/diskaccesses.go | 6 + .../2020-06-01/compute/diskencryptionsets.go | 5 + .../compute/mgmt/2020-06-01/compute/disks.go | 5 + .../mgmt/2020-06-01/compute/galleries.go | 5 + .../2020-06-01/compute/galleryapplications.go | 3 + .../compute/galleryapplicationversions.go | 3 + .../mgmt/2020-06-01/compute/galleryimages.go | 3 + .../compute/galleryimageversions.go | 3 + .../compute/mgmt/2020-06-01/compute/images.go | 5 + .../mgmt/2020-06-01/compute/operations.go | 1 + .../compute/proximityplacementgroups.go | 8 + .../mgmt/2020-06-01/compute/resourceskus.go | 2 + .../mgmt/2020-06-01/compute/snapshots.go | 5 + .../mgmt/2020-06-01/compute/sshpublickeys.go | 9 + .../compute/mgmt/2020-06-01/compute/usage.go | 2 + .../compute/virtualmachineextensionimages.go | 3 + .../compute/virtualmachineextensions.go | 2 + .../compute/virtualmachineimages.go | 5 + .../compute/virtualmachineruncommands.go | 6 + .../2020-06-01/compute/virtualmachines.go | 12 + .../virtualmachinescalesetextensions.go | 3 + .../virtualmachinescalesetrollingupgrades.go | 1 + .../compute/virtualmachinescalesets.go | 12 + .../virtualmachinescalesetvmextensions.go | 2 + .../virtualmachinescalesetvmruncommands.go | 3 + .../compute/virtualmachinescalesetvms.go | 6 + .../2020-06-01/compute/virtualmachinesizes.go | 1 + .../2020-06-30/compute/availabilitysets.go | 9 + .../2020-06-30/compute/containerservices.go | 5 + .../2020-06-30/compute/dedicatedhostgroups.go | 8 + .../mgmt/2020-06-30/compute/dedicatedhosts.go | 3 + .../mgmt/2020-06-30/compute/diskaccesses.go | 6 + .../2020-06-30/compute/diskencryptionsets.go | 7 + .../compute/mgmt/2020-06-30/compute/disks.go | 5 + .../mgmt/2020-06-30/compute/galleries.go | 5 + .../2020-06-30/compute/galleryapplications.go | 3 + .../compute/galleryapplicationversions.go | 3 + .../mgmt/2020-06-30/compute/galleryimages.go | 3 + .../compute/galleryimageversions.go | 3 + .../compute/mgmt/2020-06-30/compute/images.go | 5 + .../mgmt/2020-06-30/compute/operations.go | 1 + .../compute/proximityplacementgroups.go | 8 + .../mgmt/2020-06-30/compute/resourceskus.go | 2 + .../mgmt/2020-06-30/compute/snapshots.go | 5 + .../mgmt/2020-06-30/compute/sshpublickeys.go | 9 + .../compute/mgmt/2020-06-30/compute/usage.go | 2 + .../compute/virtualmachineextensionimages.go | 3 + .../compute/virtualmachineextensions.go | 2 + .../compute/virtualmachineimages.go | 5 + .../compute/virtualmachineruncommands.go | 6 + .../2020-06-30/compute/virtualmachines.go | 12 + .../virtualmachinescalesetextensions.go | 3 + .../virtualmachinescalesetrollingupgrades.go | 1 + .../compute/virtualmachinescalesets.go | 12 + .../virtualmachinescalesetvmextensions.go | 2 + .../virtualmachinescalesetvmruncommands.go | 3 + .../compute/virtualmachinescalesetvms.go | 6 + .../2020-06-30/compute/virtualmachinesizes.go | 1 + .../mgmt/2017-11-30/consumption/operations.go | 2 + .../consumption/reservationsdetails.go | 1 + .../consumption/reservationssummaries.go | 1 + .../2017-11-30/consumption/usagedetails.go | 2 + .../mgmt/2018-01-31/consumption/budgets.go | 10 + .../2018-01-31/consumption/marketplaces.go | 4 + .../mgmt/2018-01-31/consumption/operations.go | 2 + .../mgmt/2018-01-31/consumption/pricesheet.go | 2 + .../consumption/reservationsdetails.go | 4 + .../consumption/reservationssummaries.go | 4 + .../2018-01-31/consumption/usagedetails.go | 4 + .../mgmt/2018-03-31/consumption/budgets.go | 10 + .../mgmt/2018-03-31/consumption/client.go | 1 + .../mgmt/2018-03-31/consumption/costtags.go | 2 + .../getbalancesbybillingaccount.go | 1 + .../2018-03-31/consumption/marketplaces.go | 4 + .../marketplacesbybillingaccount.go | 4 + .../consumption/marketplacesbydepartment.go | 4 + .../marketplacesbyenrollmentaccounts.go | 4 + .../mgmt/2018-03-31/consumption/operations.go | 2 + .../mgmt/2018-03-31/consumption/pricesheet.go | 2 + .../consumption/reservationrecommendations.go | 2 + .../consumption/reservationsdetails.go | 4 + .../consumption/reservationssummaries.go | 4 + .../mgmt/2018-03-31/consumption/tags.go | 1 + .../2018-03-31/consumption/usagedetails.go | 4 + .../usagedetailsbybillingaccount.go | 4 + .../consumption/usagedetailsbydepartment.go | 4 + .../usagedetailsbyenrollmentaccount.go | 4 + .../mgmt/2018-05-31/consumption/forecasts.go | 1 + .../mgmt/2018-05-31/consumption/operations.go | 2 + .../mgmt/2018-05-31/consumption/pricesheet.go | 2 + .../2018-05-31/consumption/usagedetails.go | 16 + .../2018-06-30/consumption/aggregatedcost.go | 2 + .../mgmt/2018-06-30/consumption/balances.go | 2 + .../mgmt/2018-06-30/consumption/budgets.go | 10 + .../mgmt/2018-06-30/consumption/costtags.go | 2 + .../mgmt/2018-06-30/consumption/forecasts.go | 1 + .../2018-06-30/consumption/marketplaces.go | 16 + .../mgmt/2018-06-30/consumption/operations.go | 2 + .../mgmt/2018-06-30/consumption/pricesheet.go | 2 + .../consumption/reservationrecommendations.go | 2 + .../consumption/reservationsdetails.go | 4 + .../consumption/reservationssummaries.go | 4 + .../mgmt/2018-06-30/consumption/tags.go | 1 + .../2018-06-30/consumption/usagedetails.go | 20 + .../2018-08-31/consumption/aggregatedcost.go | 2 + .../mgmt/2018-08-31/consumption/balances.go | 2 + .../mgmt/2018-08-31/consumption/budgets.go | 10 + .../mgmt/2018-08-31/consumption/charges.go | 4 + .../mgmt/2018-08-31/consumption/forecasts.go | 1 + .../2018-08-31/consumption/marketplaces.go | 16 + .../mgmt/2018-08-31/consumption/operations.go | 2 + .../mgmt/2018-08-31/consumption/pricesheet.go | 2 + .../consumption/reservationrecommendations.go | 2 + .../consumption/reservationsdetails.go | 4 + .../consumption/reservationssummaries.go | 4 + .../mgmt/2018-08-31/consumption/tags.go | 1 + .../2018-08-31/consumption/usagedetails.go | 20 + .../2018-10-01/consumption/aggregatedcost.go | 2 + .../mgmt/2018-10-01/consumption/balances.go | 2 + .../mgmt/2018-10-01/consumption/budgets.go | 10 + .../mgmt/2018-10-01/consumption/charges.go | 4 + .../mgmt/2018-10-01/consumption/forecasts.go | 1 + .../2018-10-01/consumption/marketplaces.go | 20 + .../mgmt/2018-10-01/consumption/operations.go | 2 + .../mgmt/2018-10-01/consumption/pricesheet.go | 2 + .../consumption/reservationrecommendations.go | 2 + .../consumption/reservationsdetails.go | 4 + .../consumption/reservationssummaries.go | 4 + .../mgmt/2018-10-01/consumption/tags.go | 1 + .../mgmt/2018-10-01/consumption/tenants.go | 1 + .../2018-10-01/consumption/usagedetails.go | 20 + .../2019-01-01/consumption/aggregatedcost.go | 2 + .../mgmt/2019-01-01/consumption/balances.go | 2 + .../mgmt/2019-01-01/consumption/budgets.go | 5 + .../mgmt/2019-01-01/consumption/charges.go | 1 + .../mgmt/2019-01-01/consumption/forecasts.go | 1 + .../2019-01-01/consumption/marketplaces.go | 2 + .../mgmt/2019-01-01/consumption/operations.go | 2 + .../mgmt/2019-01-01/consumption/pricesheet.go | 2 + .../consumption/reservationrecommendations.go | 2 + .../consumption/reservationsdetails.go | 4 + .../consumption/reservationssummaries.go | 4 + .../mgmt/2019-01-01/consumption/tags.go | 1 + .../2019-01-01/consumption/usagedetails.go | 2 + .../2019-10-01/consumption/aggregatedcost.go | 2 + .../mgmt/2019-10-01/consumption/balances.go | 2 + .../mgmt/2019-10-01/consumption/budgets.go | 5 + .../mgmt/2019-10-01/consumption/charges.go | 1 + .../mgmt/2019-10-01/consumption/credits.go | 1 + .../mgmt/2019-10-01/consumption/events.go | 2 + .../mgmt/2019-10-01/consumption/forecasts.go | 1 + .../mgmt/2019-10-01/consumption/lots.go | 2 + .../2019-10-01/consumption/marketplaces.go | 2 + .../mgmt/2019-10-01/consumption/operations.go | 2 + .../mgmt/2019-10-01/consumption/pricesheet.go | 2 + .../reservationrecommendationdetails.go | 1 + .../consumption/reservationrecommendations.go | 2 + .../consumption/reservationsdetails.go | 6 + .../consumption/reservationssummaries.go | 6 + .../consumption/reservationtransactions.go | 4 + .../mgmt/2019-10-01/consumption/tags.go | 1 + .../2019-10-01/consumption/usagedetails.go | 2 + .../containerinstance/containergroups.go | 7 + .../containerinstance/containergroupusage.go | 1 + .../containerinstance/containerlogs.go | 1 + .../containerinstance/operations.go | 1 + .../containerinstance/startcontainer.go | 1 + .../2018-06-01/containerinstance/container.go | 2 + .../containerinstance/containergroups.go | 8 + .../containerinstance/containergroupusage.go | 1 + .../containerinstance/operations.go | 1 + .../2018-09-01/containerinstance/container.go | 2 + .../containerinstance/containergroups.go | 8 + .../containerinstance/containergroupusage.go | 1 + .../containerinstance/operations.go | 1 + .../2018-10-01/containerinstance/client.go | 2 + .../2018-10-01/containerinstance/container.go | 2 + .../containerinstance/containergroups.go | 8 + .../containerinstance/containergroupusage.go | 1 + .../containerinstance/operations.go | 1 + .../serviceassociationlink.go | 1 + .../containerinstance/containergroups.go | 7 + .../containerinstance/containers.go | 2 + .../2019-12-01/containerinstance/location.go | 5 + .../containerinstance/operations.go | 2 + .../containerregistry/operations.go | 2 + .../containerregistry/registries.go | 10 + .../containerregistry/operations.go | 2 + .../containerregistry/registries.go | 10 + .../containerregistry/replications.go | 3 + .../2017-10-01/containerregistry/webhooks.go | 7 + .../containerregistry/operations.go | 2 + .../containerregistry/registries.go | 11 + .../containerregistry/replications.go | 3 + .../mgmt/2018-09-01/containerregistry/runs.go | 4 + .../2018-09-01/containerregistry/tasks.go | 4 + .../2018-09-01/containerregistry/webhooks.go | 7 + .../containerregistry/operations.go | 2 + .../containerregistry/registries.go | 11 + .../containerregistry/replications.go | 3 + .../mgmt/2019-04-01/containerregistry/runs.go | 4 + .../2019-04-01/containerregistry/tasks.go | 4 + .../2019-04-01/containerregistry/webhooks.go | 7 + .../containerregistry/operations.go | 2 + .../containerregistry/registries.go | 10 + .../containerregistry/replications.go | 3 + .../mgmt/2019-05-01/containerregistry/runs.go | 4 + .../2019-05-01/containerregistry/tasks.go | 4 + .../2019-05-01/containerregistry/webhooks.go | 7 + .../containerservice/containerservices.go | 3 + .../containerservice/containerservices.go | 5 + .../containerservice/containerservices.go | 5 + .../containerservice/containerservices.go | 5 + .../containerservice/containerservices.go | 5 + .../containerservice/managedclusters.go | 8 + .../containerservice/containerservices.go | 6 + .../containerservice/managedclusters.go | 8 + .../containerservice/containerservices.go | 6 + .../containerservice/managedclusters.go | 9 + .../2018-03-31/containerservice/operations.go | 1 + .../2019-04-30/containerservice/agentpools.go | 3 + .../containerservice/containerservices.go | 6 + .../containerservice/managedclusters.go | 9 + .../openshiftmanagedclusters.go | 5 + .../2019-04-30/containerservice/operations.go | 1 + .../2019-06-01/containerservice/agentpools.go | 5 + .../containerservice/containerservices.go | 6 + .../containerservice/managedclusters.go | 9 + .../openshiftmanagedclusters.go | 5 + .../2019-06-01/containerservice/operations.go | 1 + .../2019-08-01/containerservice/agentpools.go | 5 + .../containerservice/containerservices.go | 6 + .../containerservice/managedclusters.go | 9 + .../openshiftmanagedclusters.go | 5 + .../2019-08-01/containerservice/operations.go | 1 + .../2019-10-01/containerservice/agentpools.go | 5 + .../containerservice/containerservices.go | 6 + .../containerservice/managedclusters.go | 10 + .../openshiftmanagedclusters.go | 5 + .../2019-10-01/containerservice/operations.go | 1 + .../2019-11-01/containerservice/agentpools.go | 5 + .../containerservice/containerservices.go | 6 + .../containerservice/managedclusters.go | 10 + .../openshiftmanagedclusters.go | 5 + .../2019-11-01/containerservice/operations.go | 1 + .../2020-01-01/containerservice/agentpools.go | 5 + .../containerservice/containerservices.go | 6 + .../containerservice/managedclusters.go | 10 + .../openshiftmanagedclusters.go | 5 + .../2020-01-01/containerservice/operations.go | 1 + .../2020-02-01/containerservice/agentpools.go | 5 + .../containerservice/containerservices.go | 6 + .../containerservice/managedclusters.go | 10 + .../openshiftmanagedclusters.go | 5 + .../2020-02-01/containerservice/operations.go | 1 + .../2020-03-01/containerservice/agentpools.go | 5 + .../containerservice/containerservices.go | 6 + .../containerservice/managedclusters.go | 10 + .../openshiftmanagedclusters.go | 5 + .../2020-03-01/containerservice/operations.go | 1 + .../2020-04-01/containerservice/agentpools.go | 5 + .../containerservice/containerservices.go | 6 + .../containerservice/managedclusters.go | 10 + .../openshiftmanagedclusters.go | 5 + .../2020-04-01/containerservice/operations.go | 1 + .../2020-06-01/containerservice/agentpools.go | 5 + .../containerservice/containerservices.go | 6 + .../containerservice/managedclusters.go | 10 + .../openshiftmanagedclusters.go | 5 + .../2020-06-01/containerservice/operations.go | 1 + .../privateendpointconnections.go | 3 + .../2020-07-01/containerservice/agentpools.go | 5 + .../containerservice/containerservices.go | 6 + .../containerservice/managedclusters.go | 10 + .../openshiftmanagedclusters.go | 5 + .../2020-07-01/containerservice/operations.go | 1 + .../privateendpointconnections.go | 3 + .../2020-09-01/containerservice/agentpools.go | 5 + .../containerservice/containerservices.go | 6 + .../containerservice/managedclusters.go | 10 + .../openshiftmanagedclusters.go | 5 + .../2020-09-01/containerservice/operations.go | 1 + .../privateendpointconnections.go | 3 + .../containerservice/privatelinkresources.go | 1 + .../resolveprivatelinkserviceid.go | 1 + .../2020-11-01/containerservice/agentpools.go | 5 + .../containerservice/managedclusters.go | 10 + .../2020-11-01/containerservice/operations.go | 1 + .../privateendpointconnections.go | 3 + .../containerservice/privatelinkresources.go | 1 + .../resolveprivatelinkserviceid.go | 1 + .../mgmt/2015-04-08/documentdb/collection.go | 3 + .../documentdb/collectionpartition.go | 2 + .../documentdb/collectionpartitionregion.go | 1 + .../2015-04-08/documentdb/collectionregion.go | 1 + .../mgmt/2015-04-08/documentdb/database.go | 3 + .../documentdb/databaseaccountregion.go | 1 + .../2015-04-08/documentdb/databaseaccounts.go | 38 ++ .../mgmt/2015-04-08/documentdb/operations.go | 2 + .../documentdb/partitionkeyrangeid.go | 1 + .../documentdb/partitionkeyrangeidregion.go | 1 + .../mgmt/2015-04-08/documentdb/percentile.go | 1 + .../documentdb/percentilesourcetarget.go | 1 + .../2015-04-08/documentdb/percentiletarget.go | 1 + .../documentdb/cassandraresources.go | 6 + .../mgmt/2019-08-01/documentdb/collection.go | 3 + .../documentdb/collectionpartition.go | 2 + .../documentdb/collectionpartitionregion.go | 1 + .../2019-08-01/documentdb/collectionregion.go | 1 + .../mgmt/2019-08-01/documentdb/database.go | 3 + .../documentdb/databaseaccountregion.go | 1 + .../2019-08-01/documentdb/databaseaccounts.go | 11 + .../2019-08-01/documentdb/gremlinresources.go | 6 + .../2019-08-01/documentdb/mongodbresources.go | 6 + .../documentdb/notebookworkspaces.go | 3 + .../mgmt/2019-08-01/documentdb/operations.go | 2 + .../documentdb/partitionkeyrangeid.go | 1 + .../documentdb/partitionkeyrangeidregion.go | 1 + .../mgmt/2019-08-01/documentdb/percentile.go | 1 + .../documentdb/percentilesourcetarget.go | 1 + .../2019-08-01/documentdb/percentiletarget.go | 1 + .../2019-08-01/documentdb/sqlresources.go | 12 + .../2019-08-01/documentdb/tableresources.go | 3 + .../billingaccountdimensions.go | 1 + .../mgmt/2018-05-31/costmanagement/client.go | 3 + .../2018-05-31/costmanagement/operations.go | 2 + .../2018-05-31/costmanagement/reportconfig.go | 8 + .../costmanagement/resourcegroupdimensions.go | 1 + .../costmanagement/subscriptiondimensions.go | 1 + .../2019-01-01/costmanagement/dimensions.go | 1 + .../mgmt/2019-01-01/costmanagement/exports.go | 6 + .../2019-01-01/costmanagement/operations.go | 2 + .../mgmt/2019-01-01/costmanagement/query.go | 1 + .../2019-10-01/costmanagement/dimensions.go | 1 + .../mgmt/2019-10-01/costmanagement/exports.go | 6 + .../2019-10-01/costmanagement/operations.go | 2 + .../mgmt/2019-10-01/costmanagement/query.go | 1 + .../customerinsights/authorizationpolicies.go | 6 + .../customerinsights/connectormappings.go | 5 + .../2017-01-01/customerinsights/connectors.go | 3 + .../mgmt/2017-01-01/customerinsights/hubs.go | 7 + .../2017-01-01/customerinsights/images.go | 2 + .../customerinsights/interactions.go | 4 + .../mgmt/2017-01-01/customerinsights/kpi.go | 4 + .../mgmt/2017-01-01/customerinsights/links.go | 4 + .../2017-01-01/customerinsights/operations.go | 2 + .../2017-01-01/customerinsights/profiles.go | 4 + .../customerinsights/relationshiplinks.go | 3 + .../customerinsights/relationships.go | 3 + .../customerinsights/roleassignments.go | 4 + .../mgmt/2017-01-01/customerinsights/roles.go | 2 + .../mgmt/2017-01-01/customerinsights/views.go | 5 + .../customerinsights/widgettypes.go | 3 + .../customerinsights/authorizationpolicies.go | 6 + .../customerinsights/connectormappings.go | 5 + .../2017-04-26/customerinsights/connectors.go | 3 + .../mgmt/2017-04-26/customerinsights/hubs.go | 7 + .../2017-04-26/customerinsights/images.go | 2 + .../customerinsights/interactions.go | 4 + .../mgmt/2017-04-26/customerinsights/kpi.go | 4 + .../mgmt/2017-04-26/customerinsights/links.go | 4 + .../2017-04-26/customerinsights/operations.go | 2 + .../customerinsights/predictions.go | 6 + .../2017-04-26/customerinsights/profiles.go | 4 + .../customerinsights/relationshiplinks.go | 3 + .../customerinsights/relationships.go | 3 + .../customerinsights/roleassignments.go | 4 + .../mgmt/2017-04-26/customerinsights/roles.go | 2 + .../mgmt/2017-04-26/customerinsights/views.go | 5 + .../customerinsights/widgettypes.go | 3 + .../databox/mgmt/2018-01-01/databox/jobs.go | 8 + .../mgmt/2018-01-01/databox/operations.go | 2 + .../mgmt/2018-01-01/databox/service.go | 3 + .../databox/mgmt/2019-09-01/databox/jobs.go | 8 + .../mgmt/2019-09-01/databox/operations.go | 2 + .../mgmt/2019-09-01/databox/service.go | 8 + .../databox/mgmt/2020-04-01/databox/jobs.go | 8 + .../mgmt/2020-04-01/databox/operations.go | 2 + .../mgmt/2020-04-01/databox/service.go | 7 + .../databox/mgmt/2020-11-01/databox/jobs.go | 8 + .../mgmt/2020-11-01/databox/operations.go | 2 + .../mgmt/2020-11-01/databox/service.go | 7 + .../mgmt/2019-03-01/databoxedge/alerts.go | 3 + .../databoxedge/bandwidthschedules.go | 3 + .../mgmt/2019-03-01/databoxedge/devices.go | 10 + .../mgmt/2019-03-01/databoxedge/jobs.go | 1 + .../mgmt/2019-03-01/databoxedge/operations.go | 2 + .../databoxedge/operationsstatus.go | 1 + .../mgmt/2019-03-01/databoxedge/orders.go | 3 + .../mgmt/2019-03-01/databoxedge/roles.go | 3 + .../mgmt/2019-03-01/databoxedge/shares.go | 3 + .../databoxedge/storageaccountcredentials.go | 3 + .../mgmt/2019-03-01/databoxedge/triggers.go | 3 + .../mgmt/2019-03-01/databoxedge/users.go | 3 + .../mgmt/2019-07-01/databoxedge/alerts.go | 3 + .../databoxedge/bandwidthschedules.go | 3 + .../mgmt/2019-07-01/databoxedge/devices.go | 10 + .../mgmt/2019-07-01/databoxedge/jobs.go | 1 + .../mgmt/2019-07-01/databoxedge/nodes.go | 1 + .../mgmt/2019-07-01/databoxedge/operations.go | 2 + .../databoxedge/operationsstatus.go | 1 + .../mgmt/2019-07-01/databoxedge/orders.go | 3 + .../mgmt/2019-07-01/databoxedge/roles.go | 3 + .../mgmt/2019-07-01/databoxedge/shares.go | 3 + .../databoxedge/storageaccountcredentials.go | 3 + .../mgmt/2019-07-01/databoxedge/triggers.go | 3 + .../mgmt/2019-07-01/databoxedge/users.go | 3 + .../mgmt/2019-08-01/databoxedge/alerts.go | 3 + .../databoxedge/bandwidthschedules.go | 3 + .../mgmt/2019-08-01/databoxedge/containers.go | 3 + .../mgmt/2019-08-01/databoxedge/devices.go | 10 + .../mgmt/2019-08-01/databoxedge/jobs.go | 1 + .../mgmt/2019-08-01/databoxedge/nodes.go | 1 + .../mgmt/2019-08-01/databoxedge/operations.go | 2 + .../databoxedge/operationsstatus.go | 1 + .../mgmt/2019-08-01/databoxedge/orders.go | 3 + .../mgmt/2019-08-01/databoxedge/roles.go | 3 + .../mgmt/2019-08-01/databoxedge/shares.go | 3 + .../mgmt/2019-08-01/databoxedge/skus.go | 1 + .../databoxedge/storageaccountcredentials.go | 3 + .../2019-08-01/databoxedge/storageaccounts.go | 3 + .../mgmt/2019-08-01/databoxedge/triggers.go | 3 + .../mgmt/2019-08-01/databoxedge/users.go | 3 + .../mgmt/2018-04-01/databricks/operations.go | 2 + .../mgmt/2018-04-01/databricks/vnetpeering.go | 3 + .../mgmt/2018-04-01/databricks/workspaces.go | 5 + .../2016-03-30/datacatalog/adccatalogs.go | 4 + .../2016-03-30/datacatalog/adcoperations.go | 1 + .../2018-06-01/datafactory/activityruns.go | 1 + .../datafactory/dataflowdebugsession.go | 4 + .../mgmt/2018-06-01/datafactory/dataflows.go | 5 + .../mgmt/2018-06-01/datafactory/datasets.go | 5 + .../2018-06-01/datafactory/exposurecontrol.go | 3 + .../mgmt/2018-06-01/datafactory/factories.go | 11 + .../datafactory/integrationruntimenodes.go | 4 + .../integrationruntimeobjectmetadata.go | 1 + .../datafactory/integrationruntimes.go | 15 + .../2018-06-01/datafactory/linkedservices.go | 5 + .../datafactory/managedprivateendpoints.go | 5 + .../datafactory/managedvirtualnetworks.go | 4 + .../mgmt/2018-06-01/datafactory/operations.go | 2 + .../2018-06-01/datafactory/pipelineruns.go | 3 + .../mgmt/2018-06-01/datafactory/pipelines.go | 6 + .../2018-06-01/datafactory/triggerruns.go | 3 + .../mgmt/2018-06-01/datafactory/triggers.go | 7 + .../2016-11-01-preview/catalog/catalog.go | 71 ++++ .../datalake/analytics/2016-11-01/job/job.go | 8 + .../analytics/2016-11-01/job/pipeline.go | 3 + .../analytics/2016-11-01/job/recurrence.go | 3 + .../mgmt/2016-11-01/account/accounts.go | 6 + .../2016-11-01/account/computepolicies.go | 6 + .../account/datalakestoreaccounts.go | 5 + .../mgmt/2016-11-01/account/firewallrules.go | 6 + .../mgmt/2016-11-01/account/locations.go | 1 + .../mgmt/2016-11-01/account/operations.go | 1 + .../2016-11-01/account/storageaccounts.go | 11 + .../store/2016-11-01/filesystem/filesystem.go | 22 + .../store/mgmt/2016-11-01/account/accounts.go | 7 + .../mgmt/2016-11-01/account/firewallrules.go | 6 + .../mgmt/2016-11-01/account/locations.go | 2 + .../mgmt/2016-11-01/account/operations.go | 1 + .../2016-11-01/account/trustedidproviders.go | 6 + .../2016-11-01/account/virtualnetworkrules.go | 6 + .../2018-04-19/datamigration/operations.go | 2 + .../mgmt/2018-04-19/datamigration/projects.go | 6 + .../2018-04-19/datamigration/resourceskus.go | 2 + .../mgmt/2018-04-19/datamigration/services.go | 10 + .../mgmt/2018-04-19/datamigration/tasks.go | 7 + .../mgmt/2018-04-19/datamigration/usages.go | 2 + .../mgmt/2019-11-01/datashare/accounts.go | 6 + .../datashare/consumerinvitations.go | 4 + .../datashare/consumersourcedatasets.go | 2 + .../2019-11-01/datashare/datasetmappings.go | 5 + .../mgmt/2019-11-01/datashare/datasets.go | 4 + .../mgmt/2019-11-01/datashare/invitations.go | 5 + .../mgmt/2019-11-01/datashare/operations.go | 2 + .../datashare/providersharesubscriptions.go | 4 + .../mgmt/2019-11-01/datashare/shares.go | 8 + .../datashare/sharesubscriptions.go | 10 + .../datashare/synchronizationsettings.go | 4 + .../mgmt/2019-11-01/datashare/triggers.go | 3 + .../devspaces/containerhostmappings.go | 1 + .../mgmt/2019-04-01/devspaces/controllers.go | 7 + .../mgmt/2019-04-01/devspaces/operations.go | 2 + .../mgmt/2016-05-15/dtl/armtemplates.go | 3 + .../mgmt/2016-05-15/dtl/artifacts.go | 4 + .../mgmt/2016-05-15/dtl/artifactsources.go | 6 + .../devtestlabs/mgmt/2016-05-15/dtl/costs.go | 2 + .../mgmt/2016-05-15/dtl/customimages.go | 3 + .../devtestlabs/mgmt/2016-05-15/dtl/disks.go | 3 + .../mgmt/2016-05-15/dtl/environments.go | 3 + .../mgmt/2016-05-15/dtl/formulas.go | 4 + .../mgmt/2016-05-15/dtl/galleryimages.go | 2 + .../mgmt/2016-05-15/dtl/globalschedules.go | 8 + .../devtestlabs/mgmt/2016-05-15/dtl/labs.go | 9 + .../2016-05-15/dtl/notificationchannels.go | 7 + .../mgmt/2016-05-15/dtl/operations.go | 1 + .../mgmt/2016-05-15/dtl/policies.go | 6 + .../mgmt/2016-05-15/dtl/policysets.go | 1 + .../mgmt/2016-05-15/dtl/provideroperations.go | 2 + .../mgmt/2016-05-15/dtl/schedules.go | 8 + .../mgmt/2016-05-15/dtl/secrets.go | 5 + .../mgmt/2016-05-15/dtl/servicerunners.go | 5 + .../devtestlabs/mgmt/2016-05-15/dtl/users.go | 5 + .../mgmt/2016-05-15/dtl/virtualmachines.go | 5 + .../2016-05-15/dtl/virtualmachineschedules.go | 6 + .../mgmt/2016-05-15/dtl/virtualnetworks.go | 4 + .../mgmt/2018-09-15/dtl/armtemplates.go | 3 + .../mgmt/2018-09-15/dtl/artifacts.go | 4 + .../mgmt/2018-09-15/dtl/artifactsources.go | 6 + .../devtestlabs/mgmt/2018-09-15/dtl/costs.go | 2 + .../mgmt/2018-09-15/dtl/customimages.go | 4 + .../devtestlabs/mgmt/2018-09-15/dtl/disks.go | 4 + .../mgmt/2018-09-15/dtl/environments.go | 4 + .../mgmt/2018-09-15/dtl/formulas.go | 5 + .../mgmt/2018-09-15/dtl/galleryimages.go | 2 + .../mgmt/2018-09-15/dtl/globalschedules.go | 8 + .../devtestlabs/mgmt/2018-09-15/dtl/labs.go | 9 + .../2018-09-15/dtl/notificationchannels.go | 7 + .../mgmt/2018-09-15/dtl/operations.go | 1 + .../mgmt/2018-09-15/dtl/policies.go | 6 + .../mgmt/2018-09-15/dtl/policysets.go | 1 + .../mgmt/2018-09-15/dtl/provideroperations.go | 2 + .../mgmt/2018-09-15/dtl/schedules.go | 8 + .../mgmt/2018-09-15/dtl/secrets.go | 5 + .../mgmt/2018-09-15/dtl/servicefabrics.go | 5 + .../2018-09-15/dtl/servicefabricschedules.go | 6 + .../mgmt/2018-09-15/dtl/servicerunners.go | 3 + .../devtestlabs/mgmt/2018-09-15/dtl/users.go | 4 + .../mgmt/2018-09-15/dtl/virtualmachines.go | 6 + .../2018-09-15/dtl/virtualmachineschedules.go | 6 + .../mgmt/2018-09-15/dtl/virtualnetworks.go | 4 + .../2020-10-31/digitaltwins/digitaltwins.go | 7 + .../mgmt/2020-10-31/digitaltwins/endpoint.go | 3 + .../2020-10-31/digitaltwins/operations.go | 2 + .../dns/mgmt/2016-04-01/dns/recordsets.go | 8 + services/dns/mgmt/2016-04-01/dns/zones.go | 6 + .../dns/mgmt/2017-09-01/dns/recordsets.go | 8 + services/dns/mgmt/2017-09-01/dns/zones.go | 6 + .../dns/mgmt/2017-10-01/dns/recordsets.go | 10 + services/dns/mgmt/2017-10-01/dns/zones.go | 7 + .../dns/mgmt/2018-05-01/dns/recordsets.go | 10 + .../mgmt/2018-05-01/dns/resourcereference.go | 1 + services/dns/mgmt/2018-05-01/dns/zones.go | 7 + .../2017-01-01/aad/domainserviceoperations.go | 2 + .../mgmt/2017-01-01/aad/domainservices.go | 5 + .../2017-06-01/aad/domainserviceoperations.go | 2 + .../mgmt/2017-06-01/aad/domainservices.go | 5 + .../mgmt/2017-06-01/aad/oucontainer.go | 3 + .../2017-06-01/aad/oucontaineroperations.go | 2 + .../2020-01-01/aad/domainserviceoperations.go | 2 + .../mgmt/2020-01-01/aad/domainservices.go | 5 + .../mgmt/2020-01-01/aad/oucontainer.go | 3 + .../2020-01-01/aad/oucontaineroperations.go | 2 + .../eventgrid/2018-01-01/eventgrid/client.go | 3 + .../eventgrid/eventsubscriptions.go | 11 + .../mgmt/2018-01-01/eventgrid/operations.go | 1 + .../mgmt/2018-01-01/eventgrid/topics.go | 6 + .../mgmt/2018-01-01/eventgrid/topictypes.go | 3 + .../eventgrid/eventsubscriptions.go | 11 + .../mgmt/2019-01-01/eventgrid/operations.go | 1 + .../mgmt/2019-01-01/eventgrid/topics.go | 6 + .../mgmt/2019-01-01/eventgrid/topictypes.go | 3 + .../mgmt/2019-06-01/eventgrid/domains.go | 7 + .../mgmt/2019-06-01/eventgrid/domaintopics.go | 3 + .../eventgrid/eventsubscriptions.go | 22 + .../mgmt/2019-06-01/eventgrid/operations.go | 1 + .../mgmt/2019-06-01/eventgrid/topics.go | 8 + .../mgmt/2019-06-01/eventgrid/topictypes.go | 3 + .../mgmt/2020-06-01/eventgrid/domains.go | 7 + .../mgmt/2020-06-01/eventgrid/domaintopics.go | 3 + .../eventgrid/eventsubscriptions.go | 22 + .../mgmt/2020-06-01/eventgrid/operations.go | 1 + .../eventgrid/privateendpointconnections.go | 3 + .../eventgrid/privatelinkresources.go | 3 + .../mgmt/2020-06-01/eventgrid/topics.go | 8 + .../mgmt/2020-06-01/eventgrid/topictypes.go | 3 + .../2015-08-01/eventhub/consumergroups.go | 5 + .../mgmt/2015-08-01/eventhub/eventhubs.go | 13 + .../mgmt/2015-08-01/eventhub/namespaces.go | 14 + .../mgmt/2015-08-01/eventhub/operations.go | 2 + .../2017-04-01/eventhub/consumergroups.go | 5 + .../eventhub/disasterrecoveryconfigs.go | 12 + .../mgmt/2017-04-01/eventhub/eventhubs.go | 12 + .../mgmt/2017-04-01/eventhub/namespaces.go | 19 + .../mgmt/2017-04-01/eventhub/operations.go | 2 + .../mgmt/2017-04-01/eventhub/regions.go | 2 + .../mgmt/2019-04-01/frontdoor/client.go | 2 + .../mgmt/2019-04-01/frontdoor/frontdoors.go | 6 + .../2019-04-01/frontdoor/frontendendpoints.go | 3 + .../2019-04-01/frontdoor/managedrulesets.go | 2 + .../mgmt/2019-04-01/frontdoor/policies.go | 3 + .../mgmt/2019-05-01/frontdoor/client.go | 2 + .../mgmt/2019-05-01/frontdoor/frontdoors.go | 6 + .../2019-05-01/frontdoor/frontendendpoints.go | 3 + .../2019-05-01/frontdoor/managedrulesets.go | 2 + .../mgmt/2019-05-01/frontdoor/policies.go | 3 + .../mgmt/2019-10-01/frontdoor/client.go | 2 + .../mgmt/2019-10-01/frontdoor/frontdoors.go | 6 + .../2019-10-01/frontdoor/frontendendpoints.go | 3 + .../2019-10-01/frontdoor/managedrulesets.go | 2 + .../mgmt/2019-10-01/frontdoor/policies.go | 3 + .../mgmt/2019-11-01/frontdoor/client.go | 2 + .../mgmt/2019-11-01/frontdoor/experiments.go | 3 + .../mgmt/2019-11-01/frontdoor/frontdoors.go | 6 + .../2019-11-01/frontdoor/frontendendpoints.go | 3 + .../2019-11-01/frontdoor/managedrulesets.go | 2 + .../frontdoor/networkexperimentprofiles.go | 5 + .../mgmt/2019-11-01/frontdoor/policies.go | 3 + .../frontdoor/preconfiguredendpoints.go | 2 + .../mgmt/2019-11-01/frontdoor/reports.go | 2 + .../mgmt/2020-01-01/frontdoor/client.go | 2 + .../mgmt/2020-01-01/frontdoor/experiments.go | 3 + .../mgmt/2020-01-01/frontdoor/frontdoors.go | 6 + .../2020-01-01/frontdoor/frontendendpoints.go | 3 + .../2020-01-01/frontdoor/managedrulesets.go | 2 + .../frontdoor/networkexperimentprofiles.go | 5 + .../mgmt/2020-01-01/frontdoor/policies.go | 3 + .../frontdoor/preconfiguredendpoints.go | 2 + .../mgmt/2020-01-01/frontdoor/reports.go | 2 + .../mgmt/2020-01-01/frontdoor/rulesengines.go | 3 + .../mgmt/2020-04-01/frontdoor/client.go | 2 + .../mgmt/2020-04-01/frontdoor/experiments.go | 3 + .../mgmt/2020-04-01/frontdoor/frontdoors.go | 6 + .../2020-04-01/frontdoor/frontendendpoints.go | 3 + .../2020-04-01/frontdoor/managedrulesets.go | 2 + .../frontdoor/networkexperimentprofiles.go | 5 + .../mgmt/2020-04-01/frontdoor/policies.go | 3 + .../frontdoor/preconfiguredendpoints.go | 2 + .../mgmt/2020-04-01/frontdoor/reports.go | 2 + .../mgmt/2020-04-01/frontdoor/rulesengines.go | 3 + .../mgmt/2020-05-01/frontdoor/experiments.go | 3 + .../mgmt/2020-05-01/frontdoor/frontdoors.go | 6 + .../2020-05-01/frontdoor/frontendendpoints.go | 3 + .../2020-05-01/frontdoor/managedrulesets.go | 2 + .../2020-05-01/frontdoor/nameavailability.go | 1 + .../nameavailabilitywithsubscription.go | 1 + .../frontdoor/networkexperimentprofiles.go | 5 + .../mgmt/2020-05-01/frontdoor/policies.go | 3 + .../frontdoor/preconfiguredendpoints.go | 2 + .../mgmt/2020-05-01/frontdoor/reports.go | 2 + .../mgmt/2020-05-01/frontdoor/rulesengines.go | 3 + .../graphrbac/1.6/graphrbac/applications.go | 15 + .../1.6/graphrbac/deletedapplications.go | 4 + services/graphrbac/1.6/graphrbac/domains.go | 2 + services/graphrbac/1.6/graphrbac/groups.go | 15 + .../1.6/graphrbac/oauth2permissiongrant.go | 4 + services/graphrbac/1.6/graphrbac/objects.go | 2 + .../1.6/graphrbac/serviceprincipals.go | 12 + .../graphrbac/1.6/graphrbac/signedinuser.go | 3 + services/graphrbac/1.6/graphrbac/users.go | 7 + .../mgmt/2018-06-01/hdinsight/applications.go | 3 + .../mgmt/2018-06-01/hdinsight/clusters.go | 7 + .../2018-06-01/hdinsight/configurations.go | 2 + .../mgmt/2018-06-01/hdinsight/extensions.go | 2 + .../mgmt/2018-06-01/hdinsight/locations.go | 3 + .../mgmt/2018-06-01/hdinsight/operations.go | 2 + .../2018-06-01/hdinsight/scriptactions.go | 4 + .../hdinsight/scriptexecutionhistory.go | 3 + .../2018-06-01/hdinsight/virtualmachines.go | 1 + .../healthcareapis/operationresults.go | 1 + .../2019-09-16/healthcareapis/operations.go | 2 + .../2019-09-16/healthcareapis/services.go | 6 + .../healthcareapis/operationresults.go | 1 + .../2020-03-15/healthcareapis/operations.go | 2 + .../2020-03-15/healthcareapis/services.go | 6 + .../healthcareapis/operationresults.go | 1 + .../2020-03-30/healthcareapis/operations.go | 2 + .../privateendpointconnections.go | 2 + .../healthcareapis/privatelinkresources.go | 2 + .../2020-03-30/healthcareapis/services.go | 6 + .../hybridcompute/machineextensions.go | 3 + .../mgmt/2019-12-12/hybridcompute/machines.go | 9 + .../2019-12-12/hybridcompute/operations.go | 1 + .../hybridcompute/machineextensions.go | 3 + .../mgmt/2020-08-02/hybridcompute/machines.go | 8 + .../2020-08-02/hybridcompute/operations.go | 1 + .../2016-06-01/hybriddata/datamanagers.go | 3 + .../2016-06-01/hybriddata/dataservices.go | 3 + .../mgmt/2016-06-01/hybriddata/datastores.go | 3 + .../2016-06-01/hybriddata/datastoretypes.go | 3 + .../2016-06-01/hybriddata/jobdefinitions.go | 5 + .../mgmt/2016-06-01/hybriddata/jobs.go | 7 + .../mgmt/2016-06-01/hybriddata/operations.go | 2 + .../mgmt/2016-06-01/hybriddata/publickeys.go | 3 + .../2019-06-01/hybriddata/datamanagers.go | 3 + .../2019-06-01/hybriddata/dataservices.go | 3 + .../mgmt/2019-06-01/hybriddata/datastores.go | 3 + .../2019-06-01/hybriddata/datastoretypes.go | 3 + .../2019-06-01/hybriddata/jobdefinitions.go | 5 + .../mgmt/2019-06-01/hybriddata/jobs.go | 7 + .../mgmt/2019-06-01/hybriddata/operations.go | 2 + .../mgmt/2019-06-01/hybriddata/publickeys.go | 3 + .../mgmt/2018-09-01/iotcentral/apps.go | 9 + .../mgmt/2018-09-01/iotcentral/operations.go | 2 + .../mgmt/2016-02-03/devices/iothubresource.go | 24 ++ .../mgmt/2017-01-19/devices/iothubresource.go | 24 ++ .../mgmt/2017-07-01/devices/certificates.go | 6 + .../mgmt/2017-07-01/devices/iothubresource.go | 24 ++ .../mgmt/2017-07-01/devices/operations.go | 2 + .../mgmt/2018-01-22/devices/certificates.go | 6 + .../mgmt/2018-01-22/devices/iothubresource.go | 24 ++ .../mgmt/2018-01-22/devices/operations.go | 2 + .../mgmt/2018-04-01/devices/certificates.go | 6 + .../mgmt/2018-04-01/devices/iothubresource.go | 28 ++ .../mgmt/2018-04-01/devices/operations.go | 2 + .../devices/resourceprovidercommon.go | 1 + .../mgmt/2020-03-01/devices/certificates.go | 6 + .../mgmt/2020-03-01/devices/iothubresource.go | 28 ++ .../mgmt/2020-03-01/devices/operations.go | 2 + .../devices/privateendpointconnections.go | 2 + .../devices/privatelinkresources.go | 2 + .../devices/resourceprovidercommon.go | 1 + .../keyvault/2015-06-01/keyvault/client.go | 49 +++ .../keyvault/2016-10-01/keyvault/client.go | 79 ++++ .../mgmt/2015-06-01/keyvault/vaults.go | 7 + .../mgmt/2016-10-01/keyvault/operations.go | 2 + .../mgmt/2016-10-01/keyvault/vaults.go | 15 + .../mgmt/2018-02-14/keyvault/operations.go | 2 + .../keyvault/privateendpointconnections.go | 2 + .../keyvault/privatelinkresources.go | 1 + .../mgmt/2018-02-14/keyvault/vaults.go | 14 + .../keyvault/mgmt/2019-09-01/keyvault/keys.go | 7 + .../mgmt/2019-09-01/keyvault/operations.go | 2 + .../keyvault/privateendpointconnections.go | 2 + .../keyvault/privatelinkresources.go | 1 + .../mgmt/2019-09-01/keyvault/vaults.go | 14 + services/keyvault/v7.0/keyvault/client.go | 92 ++++ services/keyvault/v7.1/keyvault/client.go | 92 ++++ .../kusto/mgmt/2019-01-21/kusto/clusters.go | 6 + .../kusto/mgmt/2019-01-21/kusto/databases.go | 6 + .../mgmt/2019-01-21/kusto/dataconnections.go | 4 + .../kusto/mgmt/2019-01-21/kusto/operations.go | 2 + .../kusto/mgmt/2019-05-15/kusto/clusters.go | 6 + .../kusto/mgmt/2019-05-15/kusto/databases.go | 6 + .../mgmt/2019-05-15/kusto/dataconnections.go | 4 + .../kusto/mgmt/2019-05-15/kusto/operations.go | 2 + .../kusto/attacheddatabaseconfigurations.go | 2 + .../kusto/mgmt/2019-09-07/kusto/clusters.go | 7 + .../kusto/mgmt/2019-09-07/kusto/databases.go | 6 + .../mgmt/2019-09-07/kusto/dataconnections.go | 4 + .../kusto/mgmt/2019-09-07/kusto/operations.go | 2 + .../kusto/attacheddatabaseconfigurations.go | 2 + .../kusto/clusterprincipalassignments.go | 3 + .../kusto/mgmt/2019-11-09/kusto/clusters.go | 7 + .../kusto/databaseprincipalassignments.go | 3 + .../kusto/mgmt/2019-11-09/kusto/databases.go | 6 + .../mgmt/2019-11-09/kusto/dataconnections.go | 4 + .../kusto/mgmt/2019-11-09/kusto/operations.go | 2 + .../kusto/attacheddatabaseconfigurations.go | 2 + .../kusto/clusterprincipalassignments.go | 3 + .../kusto/mgmt/2020-02-15/kusto/clusters.go | 8 + .../kusto/databaseprincipalassignments.go | 3 + .../kusto/mgmt/2020-02-15/kusto/databases.go | 6 + .../mgmt/2020-02-15/kusto/dataconnections.go | 4 + .../kusto/mgmt/2020-02-15/kusto/operations.go | 2 + .../kusto/attacheddatabaseconfigurations.go | 2 + .../kusto/clusterprincipalassignments.go | 3 + .../kusto/mgmt/2020-06-14/kusto/clusters.go | 8 + .../kusto/databaseprincipalassignments.go | 3 + .../kusto/mgmt/2020-06-14/kusto/databases.go | 6 + .../mgmt/2020-06-14/kusto/dataconnections.go | 3 + .../kusto/mgmt/2020-06-14/kusto/operations.go | 2 + .../kusto/attacheddatabaseconfigurations.go | 2 + .../kusto/clusterprincipalassignments.go | 3 + .../kusto/mgmt/2020-09-18/kusto/clusters.go | 8 + .../kusto/databaseprincipalassignments.go | 3 + .../kusto/mgmt/2020-09-18/kusto/databases.go | 6 + .../mgmt/2020-09-18/kusto/dataconnections.go | 3 + .../kusto/mgmt/2020-09-18/kusto/operations.go | 2 + .../2018-10-15/labservices/environments.go | 6 + .../labservices/environmentsettings.go | 6 + .../2018-10-15/labservices/galleryimages.go | 6 + .../2018-10-15/labservices/globalusers.go | 7 + .../2018-10-15/labservices/labaccounts.go | 9 + .../mgmt/2018-10-15/labservices/labs.go | 7 + .../mgmt/2018-10-15/labservices/operations.go | 1 + .../labservices/provideroperations.go | 2 + .../mgmt/2018-10-15/labservices/users.go | 5 + .../logic/mgmt/2016-06-01/logic/agreements.go | 6 + .../mgmt/2016-06-01/logic/certificates.go | 5 + .../logic/mgmt/2016-06-01/logic/client.go | 2 + .../logic/integrationaccountassemblies.go | 5 + .../integrationaccountbatchconfigurations.go | 4 + .../2016-06-01/logic/integrationaccounts.go | 12 + services/logic/mgmt/2016-06-01/logic/maps.go | 6 + .../logic/mgmt/2016-06-01/logic/partners.go | 6 + .../logic/rosettanetprocessconfigurations.go | 5 + .../logic/mgmt/2016-06-01/logic/schemas.go | 6 + .../logic/mgmt/2016-06-01/logic/sessions.go | 5 + .../logic/workflowrunactionrepetitions.go | 3 + ...lowrunactionrepetitionsrequesthistories.go | 3 + .../workflowrunactionrequesthistories.go | 3 + .../2016-06-01/logic/workflowrunactions.go | 4 + .../workflowrunactionscopedrepetitions.go | 2 + .../2016-06-01/logic/workflowrunoperations.go | 1 + .../mgmt/2016-06-01/logic/workflowruns.go | 5 + .../logic/mgmt/2016-06-01/logic/workflows.go | 17 + .../logic/workflowtriggerhistories.go | 4 + .../mgmt/2016-06-01/logic/workflowtriggers.go | 8 + .../mgmt/2016-06-01/logic/workflowversions.go | 4 + .../logic/integrationaccountagreements.go | 6 + .../logic/integrationaccountassemblies.go | 5 + .../integrationaccountbatchconfigurations.go | 4 + .../logic/integrationaccountcertificates.go | 5 + .../logic/integrationaccountmaps.go | 6 + .../logic/integrationaccountpartners.go | 6 + .../2019-05-01/logic/integrationaccounts.go | 12 + .../logic/integrationaccountschemas.go | 6 + .../logic/integrationaccountsessions.go | 5 + ...nserviceenvironmentmanagedapioperations.go | 2 + ...ntegrationserviceenvironmentmanagedapis.go | 3 + ...egrationserviceenvironmentnetworkhealth.go | 1 + .../logic/integrationserviceenvironments.go | 7 + .../integrationserviceenvironmentskus.go | 2 + .../logic/mgmt/2019-05-01/logic/operations.go | 2 + .../logic/workflowrunactionrepetitions.go | 3 + ...lowrunactionrepetitionsrequesthistories.go | 3 + .../workflowrunactionrequesthistories.go | 3 + .../2019-05-01/logic/workflowrunactions.go | 4 + .../workflowrunactionscoperepetitions.go | 2 + .../2019-05-01/logic/workflowrunoperations.go | 1 + .../mgmt/2019-05-01/logic/workflowruns.go | 4 + .../logic/mgmt/2019-05-01/logic/workflows.go | 16 + .../logic/workflowtriggerhistories.go | 4 + .../mgmt/2019-05-01/logic/workflowtriggers.go | 8 + .../mgmt/2019-05-01/logic/workflowversions.go | 3 + .../logic/workflowversiontriggers.go | 1 + .../mgmt/2016-04-01/workspaces/operations.go | 1 + .../mgmt/2016-04-01/workspaces/workspaces.go | 10 + .../mgmt/2017-01-01/webservices/operations.go | 1 + .../2017-01-01/webservices/webservices.go | 6 + .../mgmt/2019-10-01/workspaces/operations.go | 1 + .../mgmt/2019-10-01/workspaces/workspaces.go | 10 + .../machinelearningcompute.go | 6 + .../machinelearningservices/operations.go | 1 + .../machinelearningservices/usages.go | 2 + .../virtualmachinesizes.go | 1 + .../machinelearningservices/workspaces.go | 8 + .../machinelearningcompute.go | 5 + .../machinelearningservices/operations.go | 1 + .../machinelearningservices/usages.go | 2 + .../virtualmachinesizes.go | 1 + .../machinelearningservices/workspaces.go | 8 + .../machinelearningcompute.go | 5 + .../machinelearningservices/operations.go | 1 + .../machinelearningservices/quotas.go | 3 + .../machinelearningservices/usages.go | 2 + .../virtualmachinesizes.go | 1 + .../machinelearningservices/workspaces.go | 8 + .../machinelearningservices/client.go | 2 + .../machinelearningcompute.go | 5 + .../machinelearningservices/operations.go | 1 + .../machinelearningservices/quotas.go | 3 + .../machinelearningservices/usages.go | 2 + .../virtualmachinesizes.go | 1 + .../workspacefeatures.go | 2 + .../machinelearningservices/workspaces.go | 8 + .../machinelearningservices/client.go | 2 + .../machinelearningcompute.go | 5 + .../machinelearningservices/operations.go | 1 + .../privateendpointconnections.go | 3 + .../privatelinkresources.go | 1 + .../machinelearningservices/quotas.go | 3 + .../machinelearningservices/usages.go | 2 + .../virtualmachinesizes.go | 1 + .../workspacefeatures.go | 2 + .../machinelearningservices/workspaces.go | 8 + .../machinelearningservices/client.go | 2 + .../machinelearningcompute.go | 5 + .../machinelearningservices/operations.go | 1 + .../privateendpointconnections.go | 3 + .../privatelinkresources.go | 1 + .../machinelearningservices/quotas.go | 3 + .../machinelearningservices/usages.go | 2 + .../virtualmachinesizes.go | 1 + .../workspacefeatures.go | 2 + .../machinelearningservices/workspaces.go | 8 + .../machinelearningservices/client.go | 2 + .../machinelearningcompute.go | 5 + .../machinelearningservices/operations.go | 1 + .../privateendpointconnections.go | 3 + .../privatelinkresources.go | 1 + .../machinelearningservices/quotas.go | 3 + .../machinelearningservices/usages.go | 2 + .../virtualmachinesizes.go | 1 + .../workspacefeatures.go | 2 + .../machinelearningservices/workspaces.go | 8 + .../2020-04-01/maintenance/applyupdates.go | 4 + .../maintenance/configurationassignments.go | 6 + .../2020-04-01/maintenance/configurations.go | 5 + .../mgmt/2020-04-01/maintenance/operations.go | 1 + .../mgmt/2020-04-01/maintenance/updates.go | 2 + .../2019-06-01/managedservices/operations.go | 1 + .../registrationassignments.go | 3 + .../registrationdefinitions.go | 4 + .../mgmt/2017-01-01-preview/maps/accounts.go | 10 + .../maps/mgmt/2018-05-01/maps/accounts.go | 10 + .../mgmt/2018-06-01/mariadb/advisors.go | 3 + .../mariadb/checknameavailability.go | 1 + .../mgmt/2018-06-01/mariadb/configurations.go | 2 + .../mgmt/2018-06-01/mariadb/databases.go | 2 + .../mgmt/2018-06-01/mariadb/firewallrules.go | 2 + .../mariadb/locationbasedperformancetier.go | 1 + ...ecommendedactionsessionsoperationstatus.go | 1 + ...ionbasedrecommendedactionsessionsresult.go | 2 + .../mgmt/2018-06-01/mariadb/logfiles.go | 1 + .../mgmt/2018-06-01/mariadb/operations.go | 1 + .../mariadb/privateendpointconnections.go | 3 + .../mariadb/privatelinkresources.go | 3 + .../mgmt/2018-06-01/mariadb/querytexts.go | 3 + .../2018-06-01/mariadb/recommendedactions.go | 3 + .../mgmt/2018-06-01/mariadb/replicas.go | 1 + .../mgmt/2018-06-01/mariadb/servers.go | 3 + .../mariadb/serversecurityalertpolicies.go | 1 + .../2018-06-01/mariadb/topquerystatistics.go | 3 + .../2018-06-01/mariadb/virtualnetworkrules.go | 3 + .../mgmt/2018-06-01/mariadb/waitstatistics.go | 3 + .../mgmt/2020-01-01/mariadb/advisors.go | 3 + .../mariadb/checknameavailability.go | 1 + .../mgmt/2020-01-01/mariadb/configurations.go | 2 + .../mgmt/2020-01-01/mariadb/databases.go | 2 + .../mgmt/2020-01-01/mariadb/firewallrules.go | 2 + .../mariadb/locationbasedperformancetier.go | 1 + ...ecommendedactionsessionsoperationstatus.go | 1 + ...ionbasedrecommendedactionsessionsresult.go | 2 + .../mgmt/2020-01-01/mariadb/logfiles.go | 1 + .../mgmt/2020-01-01/mariadb/operations.go | 1 + .../mariadb/privateendpointconnections.go | 3 + .../mariadb/privatelinkresources.go | 3 + .../mgmt/2020-01-01/mariadb/querytexts.go | 3 + .../2020-01-01/mariadb/recommendedactions.go | 3 + .../mgmt/2020-01-01/mariadb/replicas.go | 1 + .../mgmt/2020-01-01/mariadb/servers.go | 3 + .../mariadb/serversecurityalertpolicies.go | 1 + .../2020-01-01/mariadb/topquerystatistics.go | 3 + .../2020-01-01/mariadb/virtualnetworkrules.go | 3 + .../mgmt/2020-01-01/mariadb/waitstatistics.go | 3 + .../marketplaceagreements.go | 6 + .../marketplaceordering/operations.go | 2 + .../mgmt/2015-10-01/media/operations.go | 1 + .../mgmt/2015-10-01/media/service.go | 9 + .../mgmt/2018-07-01/media/accountfilters.go | 6 + .../mgmt/2018-07-01/media/assetfilters.go | 6 + .../mgmt/2018-07-01/media/assets.go | 9 + .../2018-07-01/media/contentkeypolicies.go | 7 + .../mgmt/2018-07-01/media/jobs.go | 7 + .../mgmt/2018-07-01/media/liveevents.go | 3 + .../mgmt/2018-07-01/media/liveoutputs.go | 3 + .../mgmt/2018-07-01/media/locations.go | 1 + .../mgmt/2018-07-01/media/mediaservices.go | 11 + .../mgmt/2018-07-01/media/operations.go | 2 + .../2018-07-01/media/streamingendpoints.go | 3 + .../2018-07-01/media/streaminglocators.go | 7 + .../2018-07-01/media/streamingpolicies.go | 5 + .../mgmt/2018-07-01/media/transforms.go | 6 + .../mgmt/2020-05-01/media/accountfilters.go | 6 + .../mgmt/2020-05-01/media/assetfilters.go | 6 + .../mgmt/2020-05-01/media/assets.go | 9 + .../2020-05-01/media/contentkeypolicies.go | 7 + .../mgmt/2020-05-01/media/jobs.go | 7 + .../mgmt/2020-05-01/media/liveevents.go | 3 + .../mgmt/2020-05-01/media/liveoutputs.go | 3 + .../mgmt/2020-05-01/media/locations.go | 1 + .../mgmt/2020-05-01/media/mediaservices.go | 11 + .../mgmt/2020-05-01/media/operations.go | 2 + .../media/privateendpointconnections.go | 4 + .../2020-05-01/media/privatelinkresources.go | 2 + .../2020-05-01/media/streamingendpoints.go | 3 + .../2020-05-01/media/streaminglocators.go | 7 + .../2020-05-01/media/streamingpolicies.go | 5 + .../mgmt/2020-05-01/media/transforms.go | 6 + .../2018-02-02/migrate/assessedmachines.go | 2 + .../2018-02-02/migrate/assessmentoptions.go | 1 + .../mgmt/2018-02-02/migrate/assessments.go | 6 + .../migrate/mgmt/2018-02-02/migrate/groups.go | 4 + .../mgmt/2018-02-02/migrate/location.go | 1 + .../mgmt/2018-02-02/migrate/machines.go | 2 + .../mgmt/2018-02-02/migrate/operations.go | 1 + .../mgmt/2018-02-02/migrate/projects.go | 7 + .../mgmt/2020-01-01/migrate/hypervcluster.go | 4 + .../mgmt/2020-01-01/migrate/hypervhost.go | 4 + .../mgmt/2020-01-01/migrate/hypervjobs.go | 3 + .../mgmt/2020-01-01/migrate/hypervmachines.go | 3 + .../migrate/hypervoperationsstatus.go | 1 + .../2020-01-01/migrate/hypervrunasaccounts.go | 3 + .../mgmt/2020-01-01/migrate/hypervsites.go | 8 + .../migrate/mgmt/2020-01-01/migrate/jobs.go | 3 + .../mgmt/2020-01-01/migrate/machines.go | 5 + .../mgmt/2020-01-01/migrate/operations.go | 2 + .../mgmt/2020-01-01/migrate/runasaccounts.go | 3 + .../migrate/mgmt/2020-01-01/migrate/sites.go | 8 + .../mgmt/2020-01-01/migrate/vcenter.go | 5 + .../migrate/vmwareoperationsstatus.go | 1 + .../msi/mgmt/2018-11-30/msi/operations.go | 2 + .../msi/systemassignedidentities.go | 1 + .../2018-11-30/msi/userassignedidentities.go | 8 + .../2017-12-01/mysql/checknameavailability.go | 1 + .../mgmt/2017-12-01/mysql/configurations.go | 2 + .../mysql/mgmt/2017-12-01/mysql/databases.go | 2 + .../mgmt/2017-12-01/mysql/firewallrules.go | 2 + .../mysql/locationbasedperformancetier.go | 1 + .../mysql/mgmt/2017-12-01/mysql/logfiles.go | 1 + .../mysql/mgmt/2017-12-01/mysql/operations.go | 1 + .../mysql/mgmt/2017-12-01/mysql/replicas.go | 1 + .../2017-12-01/mysql/serveradministrators.go | 2 + .../mysql/mgmt/2017-12-01/mysql/servers.go | 3 + .../mysql/serversecurityalertpolicies.go | 1 + .../2017-12-01/mysql/virtualnetworkrules.go | 3 + .../mysql/mgmt/2020-01-01/mysql/advisors.go | 3 + .../2020-01-01/mysql/checknameavailability.go | 1 + .../mgmt/2020-01-01/mysql/configurations.go | 2 + .../mysql/mgmt/2020-01-01/mysql/databases.go | 2 + .../mgmt/2020-01-01/mysql/firewallrules.go | 2 + .../mysql/locationbasedperformancetier.go | 1 + ...ecommendedactionsessionsoperationstatus.go | 1 + ...ionbasedrecommendedactionsessionsresult.go | 2 + .../mysql/mgmt/2020-01-01/mysql/logfiles.go | 1 + .../mysql/mgmt/2020-01-01/mysql/operations.go | 1 + .../mysql/privateendpointconnections.go | 3 + .../2020-01-01/mysql/privatelinkresources.go | 3 + .../mysql/mgmt/2020-01-01/mysql/querytexts.go | 3 + .../2020-01-01/mysql/recommendedactions.go | 3 + .../mysql/mgmt/2020-01-01/mysql/replicas.go | 1 + .../2020-01-01/mysql/serveradministrators.go | 2 + .../mysql/mgmt/2020-01-01/mysql/serverkeys.go | 3 + .../mysql/mgmt/2020-01-01/mysql/servers.go | 3 + .../mysql/serversecurityalertpolicies.go | 1 + .../2020-01-01/mysql/topquerystatistics.go | 3 + .../2020-01-01/mysql/virtualnetworkrules.go | 3 + .../mgmt/2020-01-01/mysql/waitstatistics.go | 3 + .../netapp/mgmt/2019-05-01/netapp/accounts.go | 3 + .../netapp/mgmt/2019-05-01/netapp/client.go | 2 + .../mgmt/2019-05-01/netapp/mounttargets.go | 1 + .../mgmt/2019-05-01/netapp/operations.go | 1 + .../netapp/mgmt/2019-05-01/netapp/pools.go | 3 + .../mgmt/2019-05-01/netapp/snapshots.go | 3 + .../netapp/mgmt/2019-05-01/netapp/volumes.go | 3 + .../netapp/mgmt/2019-06-01/netapp/accounts.go | 3 + .../netapp/mgmt/2019-06-01/netapp/client.go | 2 + .../mgmt/2019-06-01/netapp/mounttargets.go | 1 + .../mgmt/2019-06-01/netapp/operations.go | 1 + .../netapp/mgmt/2019-06-01/netapp/pools.go | 3 + .../mgmt/2019-06-01/netapp/snapshots.go | 3 + .../netapp/mgmt/2019-06-01/netapp/volumes.go | 3 + .../netapp/mgmt/2019-07-01/netapp/accounts.go | 3 + .../netapp/mgmt/2019-07-01/netapp/client.go | 2 + .../mgmt/2019-07-01/netapp/mounttargets.go | 1 + .../mgmt/2019-07-01/netapp/operations.go | 1 + .../netapp/mgmt/2019-07-01/netapp/pools.go | 3 + .../mgmt/2019-07-01/netapp/snapshots.go | 3 + .../netapp/mgmt/2019-07-01/netapp/volumes.go | 3 + .../netapp/mgmt/2019-08-01/netapp/accounts.go | 3 + .../mgmt/2019-08-01/netapp/mounttargets.go | 1 + .../mgmt/2019-08-01/netapp/operations.go | 1 + .../netapp/mgmt/2019-08-01/netapp/pools.go | 3 + .../netapp/mgmt/2019-08-01/netapp/resource.go | 2 + .../mgmt/2019-08-01/netapp/snapshots.go | 3 + .../netapp/mgmt/2019-08-01/netapp/volumes.go | 3 + .../netapp/mgmt/2019-10-01/netapp/accounts.go | 3 + .../mgmt/2019-10-01/netapp/mounttargets.go | 1 + .../mgmt/2019-10-01/netapp/operations.go | 1 + .../netapp/mgmt/2019-10-01/netapp/pools.go | 3 + .../netapp/mgmt/2019-10-01/netapp/resource.go | 2 + .../mgmt/2019-10-01/netapp/snapshots.go | 3 + .../netapp/mgmt/2019-10-01/netapp/volumes.go | 8 + .../netapp/mgmt/2019-11-01/netapp/accounts.go | 3 + .../mgmt/2019-11-01/netapp/operations.go | 1 + .../netapp/mgmt/2019-11-01/netapp/pools.go | 2 + .../netapp/mgmt/2019-11-01/netapp/resource.go | 2 + .../mgmt/2019-11-01/netapp/snapshots.go | 2 + .../netapp/mgmt/2019-11-01/netapp/volumes.go | 3 + .../netapp/mgmt/2020-02-01/netapp/accounts.go | 2 + .../mgmt/2020-02-01/netapp/operations.go | 1 + .../netapp/mgmt/2020-02-01/netapp/pools.go | 2 + .../netapp/mgmt/2020-02-01/netapp/resource.go | 2 + .../mgmt/2020-02-01/netapp/snapshots.go | 2 + .../netapp/mgmt/2020-02-01/netapp/volumes.go | 3 + .../netapp/mgmt/2020-03-01/netapp/accounts.go | 2 + .../mgmt/2020-03-01/netapp/operations.go | 1 + .../netapp/mgmt/2020-03-01/netapp/pools.go | 2 + .../netapp/mgmt/2020-03-01/netapp/resource.go | 2 + .../mgmt/2020-03-01/netapp/snapshots.go | 2 + .../netapp/mgmt/2020-03-01/netapp/volumes.go | 3 + .../mgmt/2020-05-01/netapp/accountbackups.go | 2 + .../netapp/mgmt/2020-05-01/netapp/accounts.go | 2 + .../mgmt/2020-05-01/netapp/backuppolicies.go | 3 + .../netapp/mgmt/2020-05-01/netapp/backups.go | 3 + .../mgmt/2020-05-01/netapp/operations.go | 1 + .../netapp/mgmt/2020-05-01/netapp/pools.go | 2 + .../netapp/mgmt/2020-05-01/netapp/resource.go | 3 + .../2020-05-01/netapp/snapshotpolicies.go | 5 + .../mgmt/2020-05-01/netapp/snapshots.go | 2 + .../netapp/mgmt/2020-05-01/netapp/vaults.go | 1 + .../netapp/mgmt/2020-05-01/netapp/volumes.go | 3 + .../mgmt/2020-06-01/netapp/accountbackups.go | 2 + .../netapp/mgmt/2020-06-01/netapp/accounts.go | 2 + .../mgmt/2020-06-01/netapp/backuppolicies.go | 3 + .../netapp/mgmt/2020-06-01/netapp/backups.go | 3 + .../mgmt/2020-06-01/netapp/operations.go | 1 + .../netapp/mgmt/2020-06-01/netapp/pools.go | 2 + .../netapp/mgmt/2020-06-01/netapp/resource.go | 3 + .../2020-06-01/netapp/snapshotpolicies.go | 5 + .../mgmt/2020-06-01/netapp/snapshots.go | 2 + .../netapp/mgmt/2020-06-01/netapp/vaults.go | 1 + .../netapp/mgmt/2020-06-01/netapp/volumes.go | 3 + .../mgmt/2020-07-01/netapp/accountbackups.go | 2 + .../netapp/mgmt/2020-07-01/netapp/accounts.go | 2 + .../mgmt/2020-07-01/netapp/backuppolicies.go | 3 + .../netapp/mgmt/2020-07-01/netapp/backups.go | 3 + .../mgmt/2020-07-01/netapp/operations.go | 1 + .../netapp/mgmt/2020-07-01/netapp/pools.go | 2 + .../netapp/mgmt/2020-07-01/netapp/resource.go | 3 + .../2020-07-01/netapp/snapshotpolicies.go | 5 + .../mgmt/2020-07-01/netapp/snapshots.go | 2 + .../netapp/mgmt/2020-07-01/netapp/vaults.go | 1 + .../netapp/mgmt/2020-07-01/netapp/volumes.go | 3 + .../mgmt/2020-08-01/netapp/accountbackups.go | 2 + .../netapp/mgmt/2020-08-01/netapp/accounts.go | 2 + .../mgmt/2020-08-01/netapp/backuppolicies.go | 3 + .../netapp/mgmt/2020-08-01/netapp/backups.go | 3 + .../mgmt/2020-08-01/netapp/operations.go | 1 + .../netapp/mgmt/2020-08-01/netapp/pools.go | 2 + .../netapp/mgmt/2020-08-01/netapp/resource.go | 3 + .../2020-08-01/netapp/snapshotpolicies.go | 5 + .../mgmt/2020-08-01/netapp/snapshots.go | 2 + .../netapp/mgmt/2020-08-01/netapp/vaults.go | 1 + .../netapp/mgmt/2020-08-01/netapp/volumes.go | 3 + .../2015-06-15/network/applicationgateways.go | 5 + .../network/mgmt/2015-06-15/network/client.go | 1 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 11 + .../network/expressrouteserviceproviders.go | 2 + .../2015-06-15/network/interfacesgroup.go | 10 + .../mgmt/2015-06-15/network/loadbalancers.go | 5 + .../network/localnetworkgateways.go | 3 + .../2015-06-15/network/publicipaddresses.go | 5 + .../network/mgmt/2015-06-15/network/routes.go | 3 + .../mgmt/2015-06-15/network/routetables.go | 5 + .../mgmt/2015-06-15/network/securitygroups.go | 5 + .../mgmt/2015-06-15/network/securityrules.go | 3 + .../mgmt/2015-06-15/network/subnets.go | 3 + .../network/mgmt/2015-06-15/network/usages.go | 2 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 3 + .../2015-06-15/network/virtualnetworks.go | 5 + .../2016-03-30/network/applicationgateways.go | 5 + .../network/mgmt/2016-03-30/network/client.go | 1 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 7 + .../network/expressrouteserviceproviders.go | 2 + .../2016-03-30/network/interfacesgroup.go | 10 + .../mgmt/2016-03-30/network/loadbalancers.go | 5 + .../network/localnetworkgateways.go | 3 + .../2016-03-30/network/publicipaddresses.go | 5 + .../network/mgmt/2016-03-30/network/routes.go | 3 + .../mgmt/2016-03-30/network/routetables.go | 5 + .../mgmt/2016-03-30/network/securitygroups.go | 5 + .../mgmt/2016-03-30/network/securityrules.go | 3 + .../mgmt/2016-03-30/network/subnets.go | 3 + .../network/mgmt/2016-03-30/network/usages.go | 1 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 4 + .../2016-03-30/network/virtualnetworks.go | 5 + .../2016-06-01/network/applicationgateways.go | 5 + .../network/mgmt/2016-06-01/network/client.go | 1 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 7 + .../network/expressrouteserviceproviders.go | 2 + .../2016-06-01/network/interfacesgroup.go | 10 + .../mgmt/2016-06-01/network/loadbalancers.go | 5 + .../network/localnetworkgateways.go | 3 + .../2016-06-01/network/publicipaddresses.go | 5 + .../network/mgmt/2016-06-01/network/routes.go | 3 + .../mgmt/2016-06-01/network/routetables.go | 5 + .../mgmt/2016-06-01/network/securitygroups.go | 5 + .../mgmt/2016-06-01/network/securityrules.go | 3 + .../mgmt/2016-06-01/network/subnets.go | 3 + .../network/mgmt/2016-06-01/network/usages.go | 2 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 4 + .../network/virtualnetworkpeerings.go | 3 + .../2016-06-01/network/virtualnetworks.go | 6 + .../2016-09-01/network/applicationgateways.go | 5 + .../network/mgmt/2016-09-01/network/client.go | 1 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 7 + .../network/expressrouteserviceproviders.go | 2 + .../2016-09-01/network/interfacesgroup.go | 10 + .../mgmt/2016-09-01/network/loadbalancers.go | 5 + .../network/localnetworkgateways.go | 3 + .../mgmt/2016-09-01/network/packetcaptures.go | 2 + .../2016-09-01/network/publicipaddresses.go | 5 + .../network/mgmt/2016-09-01/network/routes.go | 3 + .../mgmt/2016-09-01/network/routetables.go | 5 + .../mgmt/2016-09-01/network/securitygroups.go | 5 + .../mgmt/2016-09-01/network/securityrules.go | 3 + .../mgmt/2016-09-01/network/subnets.go | 3 + .../network/mgmt/2016-09-01/network/usages.go | 2 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 3 + .../network/virtualnetworkpeerings.go | 3 + .../2016-09-01/network/virtualnetworks.go | 6 + .../mgmt/2016-09-01/network/watchers.go | 5 + .../2016-12-01/network/applicationgateways.go | 5 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2016-12-01/network/client.go | 1 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 7 + .../network/expressrouteserviceproviders.go | 2 + .../2016-12-01/network/interfacesgroup.go | 10 + .../mgmt/2016-12-01/network/loadbalancers.go | 5 + .../network/localnetworkgateways.go | 3 + .../mgmt/2016-12-01/network/packetcaptures.go | 2 + .../2016-12-01/network/publicipaddresses.go | 5 + .../2016-12-01/network/routefilterrules.go | 3 + .../mgmt/2016-12-01/network/routefilters.go | 5 + .../network/mgmt/2016-12-01/network/routes.go | 3 + .../mgmt/2016-12-01/network/routetables.go | 5 + .../mgmt/2016-12-01/network/securitygroups.go | 5 + .../mgmt/2016-12-01/network/securityrules.go | 3 + .../mgmt/2016-12-01/network/subnets.go | 3 + .../network/mgmt/2016-12-01/network/usages.go | 2 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 3 + .../network/virtualnetworkpeerings.go | 3 + .../2016-12-01/network/virtualnetworks.go | 6 + .../mgmt/2016-12-01/network/watchers.go | 5 + .../2017-03-01/network/applicationgateways.go | 6 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2017-03-01/network/client.go | 1 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 7 + .../network/expressrouteserviceproviders.go | 2 + .../2017-03-01/network/interfacesgroup.go | 10 + .../mgmt/2017-03-01/network/loadbalancers.go | 5 + .../network/localnetworkgateways.go | 3 + .../mgmt/2017-03-01/network/packetcaptures.go | 2 + .../2017-03-01/network/publicipaddresses.go | 10 + .../2017-03-01/network/routefilterrules.go | 3 + .../mgmt/2017-03-01/network/routefilters.go | 5 + .../network/mgmt/2017-03-01/network/routes.go | 3 + .../mgmt/2017-03-01/network/routetables.go | 5 + .../mgmt/2017-03-01/network/securitygroups.go | 5 + .../mgmt/2017-03-01/network/securityrules.go | 3 + .../mgmt/2017-03-01/network/subnets.go | 3 + .../network/mgmt/2017-03-01/network/usages.go | 2 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 3 + .../network/virtualnetworkpeerings.go | 3 + .../2017-03-01/network/virtualnetworks.go | 8 + .../mgmt/2017-03-01/network/watchers.go | 5 + .../2017-06-01/network/applicationgateways.go | 10 + .../network/availableendpointservices.go | 2 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2017-06-01/network/client.go | 1 + .../network/defaultsecurityrules.go | 3 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 7 + .../network/expressrouteserviceproviders.go | 2 + .../2017-06-01/network/inboundnatrules.go | 3 + .../network/interfaceipconfigurations.go | 3 + .../network/interfaceloadbalancers.go | 2 + .../2017-06-01/network/interfacesgroup.go | 10 + .../loadbalancerbackendaddresspools.go | 3 + .../loadbalancerfrontendipconfigurations.go | 3 + .../network/loadbalancerloadbalancingrules.go | 3 + .../network/loadbalancernetworkinterfaces.go | 2 + .../2017-06-01/network/loadbalancerprobes.go | 3 + .../mgmt/2017-06-01/network/loadbalancers.go | 5 + .../network/localnetworkgateways.go | 3 + .../mgmt/2017-06-01/network/packetcaptures.go | 2 + .../2017-06-01/network/publicipaddresses.go | 10 + .../2017-06-01/network/routefilterrules.go | 3 + .../mgmt/2017-06-01/network/routefilters.go | 5 + .../network/mgmt/2017-06-01/network/routes.go | 3 + .../mgmt/2017-06-01/network/routetables.go | 5 + .../mgmt/2017-06-01/network/securitygroups.go | 5 + .../mgmt/2017-06-01/network/securityrules.go | 3 + .../mgmt/2017-06-01/network/subnets.go | 3 + .../network/mgmt/2017-06-01/network/usages.go | 2 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 5 + .../network/virtualnetworkpeerings.go | 3 + .../2017-06-01/network/virtualnetworks.go | 8 + .../mgmt/2017-06-01/network/watchers.go | 5 + .../2017-08-01/network/applicationgateways.go | 10 + .../network/availableendpointservices.go | 2 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2017-08-01/network/client.go | 1 + .../network/defaultsecurityrules.go | 3 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 7 + .../network/expressrouteserviceproviders.go | 2 + .../2017-08-01/network/inboundnatrules.go | 3 + .../network/interfaceipconfigurations.go | 3 + .../network/interfaceloadbalancers.go | 2 + .../2017-08-01/network/interfacesgroup.go | 10 + .../loadbalancerbackendaddresspools.go | 3 + .../loadbalancerfrontendipconfigurations.go | 3 + .../network/loadbalancerloadbalancingrules.go | 3 + .../network/loadbalancernetworkinterfaces.go | 2 + .../2017-08-01/network/loadbalancerprobes.go | 3 + .../mgmt/2017-08-01/network/loadbalancers.go | 5 + .../network/localnetworkgateways.go | 3 + .../mgmt/2017-08-01/network/packetcaptures.go | 2 + .../2017-08-01/network/publicipaddresses.go | 10 + .../2017-08-01/network/routefilterrules.go | 3 + .../mgmt/2017-08-01/network/routefilters.go | 5 + .../network/mgmt/2017-08-01/network/routes.go | 3 + .../mgmt/2017-08-01/network/routetables.go | 5 + .../mgmt/2017-08-01/network/securitygroups.go | 5 + .../mgmt/2017-08-01/network/securityrules.go | 3 + .../mgmt/2017-08-01/network/subnets.go | 3 + .../network/mgmt/2017-08-01/network/usages.go | 2 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 5 + .../network/virtualnetworkpeerings.go | 3 + .../2017-08-01/network/virtualnetworks.go | 8 + .../mgmt/2017-08-01/network/watchers.go | 5 + .../2017-09-01/network/applicationgateways.go | 10 + .../network/applicationsecuritygroups.go | 5 + .../network/availableendpointservices.go | 2 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2017-09-01/network/client.go | 1 + .../network/defaultsecurityrules.go | 3 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 7 + .../network/expressrouteserviceproviders.go | 2 + .../2017-09-01/network/inboundnatrules.go | 3 + .../network/interfaceipconfigurations.go | 3 + .../network/interfaceloadbalancers.go | 2 + .../2017-09-01/network/interfacesgroup.go | 13 + .../loadbalancerbackendaddresspools.go | 3 + .../loadbalancerfrontendipconfigurations.go | 3 + .../network/loadbalancerloadbalancingrules.go | 3 + .../network/loadbalancernetworkinterfaces.go | 2 + .../2017-09-01/network/loadbalancerprobes.go | 3 + .../mgmt/2017-09-01/network/loadbalancers.go | 5 + .../network/localnetworkgateways.go | 3 + .../mgmt/2017-09-01/network/operations.go | 2 + .../mgmt/2017-09-01/network/packetcaptures.go | 2 + .../2017-09-01/network/publicipaddresses.go | 10 + .../2017-09-01/network/routefilterrules.go | 3 + .../mgmt/2017-09-01/network/routefilters.go | 5 + .../network/mgmt/2017-09-01/network/routes.go | 3 + .../mgmt/2017-09-01/network/routetables.go | 5 + .../mgmt/2017-09-01/network/securitygroups.go | 5 + .../mgmt/2017-09-01/network/securityrules.go | 3 + .../mgmt/2017-09-01/network/subnets.go | 3 + .../network/mgmt/2017-09-01/network/usages.go | 2 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 7 + .../network/virtualnetworkpeerings.go | 3 + .../2017-09-01/network/virtualnetworks.go | 8 + .../mgmt/2017-09-01/network/watchers.go | 6 + .../2017-10-01/network/applicationgateways.go | 10 + .../network/applicationsecuritygroups.go | 5 + .../network/availableendpointservices.go | 2 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2017-10-01/network/client.go | 1 + .../2017-10-01/network/connectionmonitors.go | 2 + .../network/defaultsecurityrules.go | 3 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 7 + .../network/expressrouteserviceproviders.go | 2 + .../2017-10-01/network/inboundnatrules.go | 3 + .../network/interfaceipconfigurations.go | 3 + .../network/interfaceloadbalancers.go | 2 + .../2017-10-01/network/interfacesgroup.go | 13 + .../loadbalancerbackendaddresspools.go | 3 + .../loadbalancerfrontendipconfigurations.go | 3 + .../network/loadbalancerloadbalancingrules.go | 3 + .../network/loadbalancernetworkinterfaces.go | 2 + .../2017-10-01/network/loadbalancerprobes.go | 3 + .../mgmt/2017-10-01/network/loadbalancers.go | 5 + .../network/localnetworkgateways.go | 3 + .../mgmt/2017-10-01/network/operations.go | 2 + .../mgmt/2017-10-01/network/packetcaptures.go | 2 + .../2017-10-01/network/publicipaddresses.go | 10 + .../2017-10-01/network/routefilterrules.go | 3 + .../mgmt/2017-10-01/network/routefilters.go | 5 + .../network/mgmt/2017-10-01/network/routes.go | 3 + .../mgmt/2017-10-01/network/routetables.go | 5 + .../mgmt/2017-10-01/network/securitygroups.go | 5 + .../mgmt/2017-10-01/network/securityrules.go | 3 + .../mgmt/2017-10-01/network/subnets.go | 3 + .../network/mgmt/2017-10-01/network/usages.go | 2 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 7 + .../network/virtualnetworkpeerings.go | 3 + .../2017-10-01/network/virtualnetworks.go | 8 + .../mgmt/2017-10-01/network/watchers.go | 6 + .../2017-11-01/network/applicationgateways.go | 10 + .../network/applicationsecuritygroups.go | 5 + .../network/availableendpointservices.go | 2 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2017-11-01/network/client.go | 1 + .../2017-11-01/network/connectionmonitors.go | 2 + .../network/defaultsecurityrules.go | 3 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 7 + .../network/expressrouteserviceproviders.go | 2 + .../2017-11-01/network/inboundnatrules.go | 3 + .../network/interfaceipconfigurations.go | 3 + .../network/interfaceloadbalancers.go | 2 + .../2017-11-01/network/interfacesgroup.go | 13 + .../loadbalancerbackendaddresspools.go | 3 + .../loadbalancerfrontendipconfigurations.go | 3 + .../network/loadbalancerloadbalancingrules.go | 3 + .../network/loadbalancernetworkinterfaces.go | 2 + .../2017-11-01/network/loadbalancerprobes.go | 3 + .../mgmt/2017-11-01/network/loadbalancers.go | 5 + .../network/localnetworkgateways.go | 3 + .../mgmt/2017-11-01/network/operations.go | 2 + .../mgmt/2017-11-01/network/packetcaptures.go | 2 + .../2017-11-01/network/publicipaddresses.go | 10 + .../2017-11-01/network/routefilterrules.go | 3 + .../mgmt/2017-11-01/network/routefilters.go | 5 + .../network/mgmt/2017-11-01/network/routes.go | 3 + .../mgmt/2017-11-01/network/routetables.go | 5 + .../mgmt/2017-11-01/network/securitygroups.go | 5 + .../mgmt/2017-11-01/network/securityrules.go | 3 + .../mgmt/2017-11-01/network/subnets.go | 3 + .../network/mgmt/2017-11-01/network/usages.go | 2 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 7 + .../network/virtualnetworkpeerings.go | 3 + .../2017-11-01/network/virtualnetworks.go | 8 + .../mgmt/2017-11-01/network/watchers.go | 6 + .../2018-01-01/network/applicationgateways.go | 10 + .../network/applicationsecuritygroups.go | 5 + .../network/availableendpointservices.go | 2 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2018-01-01/network/client.go | 1 + .../2018-01-01/network/connectionmonitors.go | 2 + .../network/defaultsecurityrules.go | 3 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 7 + .../network/expressrouteserviceproviders.go | 2 + .../2018-01-01/network/inboundnatrules.go | 3 + .../network/interfaceipconfigurations.go | 3 + .../network/interfaceloadbalancers.go | 2 + .../2018-01-01/network/interfacesgroup.go | 13 + .../loadbalancerbackendaddresspools.go | 3 + .../loadbalancerfrontendipconfigurations.go | 3 + .../network/loadbalancerloadbalancingrules.go | 3 + .../network/loadbalancernetworkinterfaces.go | 2 + .../2018-01-01/network/loadbalancerprobes.go | 3 + .../mgmt/2018-01-01/network/loadbalancers.go | 5 + .../network/localnetworkgateways.go | 3 + .../mgmt/2018-01-01/network/operations.go | 2 + .../mgmt/2018-01-01/network/packetcaptures.go | 2 + .../2018-01-01/network/publicipaddresses.go | 10 + .../2018-01-01/network/routefilterrules.go | 3 + .../mgmt/2018-01-01/network/routefilters.go | 5 + .../network/mgmt/2018-01-01/network/routes.go | 3 + .../mgmt/2018-01-01/network/routetables.go | 5 + .../mgmt/2018-01-01/network/securitygroups.go | 5 + .../mgmt/2018-01-01/network/securityrules.go | 3 + .../mgmt/2018-01-01/network/subnets.go | 3 + .../network/mgmt/2018-01-01/network/usages.go | 2 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 7 + .../network/virtualnetworkpeerings.go | 3 + .../2018-01-01/network/virtualnetworks.go | 8 + .../mgmt/2018-01-01/network/watchers.go | 6 + .../2018-02-01/network/applicationgateways.go | 10 + .../network/applicationsecuritygroups.go | 5 + .../network/availableendpointservices.go | 2 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2018-02-01/network/client.go | 1 + .../2018-02-01/network/connectionmonitors.go | 2 + .../2018-02-01/network/ddosprotectionplans.go | 5 + .../network/defaultsecurityrules.go | 3 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitconnections.go | 1 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 7 + .../expressroutecrossconnectionpeerings.go | 3 + .../network/expressroutecrossconnections.go | 5 + .../network/expressrouteserviceproviders.go | 2 + .../2018-02-01/network/inboundnatrules.go | 3 + .../network/interfaceipconfigurations.go | 3 + .../network/interfaceloadbalancers.go | 2 + .../2018-02-01/network/interfacesgroup.go | 13 + .../loadbalancerbackendaddresspools.go | 3 + .../loadbalancerfrontendipconfigurations.go | 3 + .../network/loadbalancerloadbalancingrules.go | 3 + .../network/loadbalancernetworkinterfaces.go | 2 + .../2018-02-01/network/loadbalancerprobes.go | 3 + .../mgmt/2018-02-01/network/loadbalancers.go | 5 + .../network/localnetworkgateways.go | 3 + .../mgmt/2018-02-01/network/operations.go | 2 + .../mgmt/2018-02-01/network/packetcaptures.go | 2 + .../2018-02-01/network/publicipaddresses.go | 10 + .../2018-02-01/network/routefilterrules.go | 3 + .../mgmt/2018-02-01/network/routefilters.go | 5 + .../network/mgmt/2018-02-01/network/routes.go | 3 + .../mgmt/2018-02-01/network/routetables.go | 5 + .../mgmt/2018-02-01/network/securitygroups.go | 5 + .../mgmt/2018-02-01/network/securityrules.go | 3 + .../mgmt/2018-02-01/network/subnets.go | 3 + .../network/mgmt/2018-02-01/network/usages.go | 2 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 7 + .../network/virtualnetworkpeerings.go | 3 + .../2018-02-01/network/virtualnetworks.go | 8 + .../mgmt/2018-02-01/network/watchers.go | 6 + .../2018-04-01/network/applicationgateways.go | 10 + .../network/applicationsecuritygroups.go | 5 + .../network/availableendpointservices.go | 2 + .../mgmt/2018-04-01/network/azurefirewalls.go | 5 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2018-04-01/network/client.go | 1 + .../2018-04-01/network/connectionmonitors.go | 2 + .../2018-04-01/network/ddosprotectionplans.go | 5 + .../network/defaultsecurityrules.go | 3 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitconnections.go | 1 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 7 + .../expressroutecrossconnectionpeerings.go | 3 + .../network/expressroutecrossconnections.go | 5 + .../network/expressrouteserviceproviders.go | 2 + .../network/hubvirtualnetworkconnections.go | 3 + .../2018-04-01/network/inboundnatrules.go | 3 + .../network/interfaceipconfigurations.go | 3 + .../network/interfaceloadbalancers.go | 2 + .../2018-04-01/network/interfacesgroup.go | 13 + .../loadbalancerbackendaddresspools.go | 3 + .../loadbalancerfrontendipconfigurations.go | 3 + .../network/loadbalancerloadbalancingrules.go | 3 + .../network/loadbalancernetworkinterfaces.go | 2 + .../2018-04-01/network/loadbalancerprobes.go | 3 + .../mgmt/2018-04-01/network/loadbalancers.go | 5 + .../network/localnetworkgateways.go | 3 + .../mgmt/2018-04-01/network/operations.go | 2 + .../mgmt/2018-04-01/network/packetcaptures.go | 2 + .../2018-04-01/network/publicipaddresses.go | 10 + .../2018-04-01/network/routefilterrules.go | 3 + .../mgmt/2018-04-01/network/routefilters.go | 5 + .../network/mgmt/2018-04-01/network/routes.go | 3 + .../mgmt/2018-04-01/network/routetables.go | 5 + .../mgmt/2018-04-01/network/securitygroups.go | 5 + .../mgmt/2018-04-01/network/securityrules.go | 3 + .../mgmt/2018-04-01/network/subnets.go | 3 + .../network/mgmt/2018-04-01/network/usages.go | 2 + .../mgmt/2018-04-01/network/virtualhubs.go | 5 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 7 + .../network/virtualnetworkpeerings.go | 3 + .../2018-04-01/network/virtualnetworks.go | 8 + .../mgmt/2018-04-01/network/virtualwans.go | 5 + .../mgmt/2018-04-01/network/vpnconnections.go | 3 + .../mgmt/2018-04-01/network/vpngateways.go | 5 + .../mgmt/2018-04-01/network/vpnsites.go | 5 + .../mgmt/2018-04-01/network/watchers.go | 6 + .../2018-06-01/network/applicationgateways.go | 10 + .../network/applicationsecuritygroups.go | 5 + .../network/availableendpointservices.go | 2 + .../mgmt/2018-06-01/network/azurefirewalls.go | 5 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2018-06-01/network/client.go | 1 + .../2018-06-01/network/connectionmonitors.go | 2 + .../2018-06-01/network/ddosprotectionplans.go | 5 + .../network/defaultsecurityrules.go | 3 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitconnections.go | 1 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 7 + .../expressroutecrossconnectionpeerings.go | 3 + .../network/expressroutecrossconnections.go | 5 + .../network/expressrouteserviceproviders.go | 2 + .../network/hubvirtualnetworkconnections.go | 3 + .../2018-06-01/network/inboundnatrules.go | 3 + .../network/interfaceipconfigurations.go | 3 + .../network/interfaceloadbalancers.go | 2 + .../2018-06-01/network/interfacesgroup.go | 13 + .../loadbalancerbackendaddresspools.go | 3 + .../loadbalancerfrontendipconfigurations.go | 3 + .../network/loadbalancerloadbalancingrules.go | 3 + .../network/loadbalancernetworkinterfaces.go | 2 + .../2018-06-01/network/loadbalancerprobes.go | 3 + .../mgmt/2018-06-01/network/loadbalancers.go | 5 + .../network/localnetworkgateways.go | 3 + .../mgmt/2018-06-01/network/operations.go | 2 + .../mgmt/2018-06-01/network/packetcaptures.go | 2 + .../2018-06-01/network/publicipaddresses.go | 10 + .../2018-06-01/network/routefilterrules.go | 3 + .../mgmt/2018-06-01/network/routefilters.go | 5 + .../network/mgmt/2018-06-01/network/routes.go | 3 + .../mgmt/2018-06-01/network/routetables.go | 5 + .../mgmt/2018-06-01/network/securitygroups.go | 5 + .../mgmt/2018-06-01/network/securityrules.go | 3 + .../mgmt/2018-06-01/network/subnets.go | 3 + .../network/mgmt/2018-06-01/network/usages.go | 2 + .../mgmt/2018-06-01/network/virtualhubs.go | 5 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 7 + .../network/virtualnetworkpeerings.go | 3 + .../2018-06-01/network/virtualnetworks.go | 8 + .../mgmt/2018-06-01/network/virtualwans.go | 5 + .../mgmt/2018-06-01/network/vpnconnections.go | 3 + .../mgmt/2018-06-01/network/vpngateways.go | 5 + .../mgmt/2018-06-01/network/vpnsites.go | 5 + .../mgmt/2018-06-01/network/watchers.go | 6 + .../2018-07-01/network/applicationgateways.go | 10 + .../network/applicationsecuritygroups.go | 5 + .../network/availableendpointservices.go | 2 + .../mgmt/2018-07-01/network/azurefirewalls.go | 5 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2018-07-01/network/client.go | 1 + .../2018-07-01/network/connectionmonitors.go | 2 + .../2018-07-01/network/ddosprotectionplans.go | 5 + .../network/defaultsecurityrules.go | 3 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitconnections.go | 1 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 7 + .../expressroutecrossconnectionpeerings.go | 3 + .../network/expressroutecrossconnections.go | 5 + .../network/expressrouteserviceproviders.go | 2 + .../network/hubvirtualnetworkconnections.go | 3 + .../2018-07-01/network/inboundnatrules.go | 3 + .../network/interfaceipconfigurations.go | 3 + .../network/interfaceloadbalancers.go | 2 + .../2018-07-01/network/interfacesgroup.go | 13 + .../loadbalancerbackendaddresspools.go | 3 + .../loadbalancerfrontendipconfigurations.go | 3 + .../network/loadbalancerloadbalancingrules.go | 3 + .../network/loadbalancernetworkinterfaces.go | 2 + .../2018-07-01/network/loadbalancerprobes.go | 3 + .../mgmt/2018-07-01/network/loadbalancers.go | 5 + .../network/localnetworkgateways.go | 3 + .../mgmt/2018-07-01/network/operations.go | 2 + .../mgmt/2018-07-01/network/packetcaptures.go | 2 + .../2018-07-01/network/publicipaddresses.go | 10 + .../2018-07-01/network/publicipprefixes.go | 5 + .../2018-07-01/network/routefilterrules.go | 3 + .../mgmt/2018-07-01/network/routefilters.go | 5 + .../network/mgmt/2018-07-01/network/routes.go | 3 + .../mgmt/2018-07-01/network/routetables.go | 5 + .../mgmt/2018-07-01/network/securitygroups.go | 5 + .../mgmt/2018-07-01/network/securityrules.go | 3 + .../network/serviceendpointpolicies.go | 5 + .../serviceendpointpolicydefinitions.go | 3 + .../mgmt/2018-07-01/network/subnets.go | 3 + .../network/mgmt/2018-07-01/network/usages.go | 2 + .../mgmt/2018-07-01/network/virtualhubs.go | 5 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 7 + .../network/virtualnetworkpeerings.go | 3 + .../2018-07-01/network/virtualnetworks.go | 8 + .../mgmt/2018-07-01/network/virtualwans.go | 5 + .../mgmt/2018-07-01/network/vpnconnections.go | 3 + .../mgmt/2018-07-01/network/vpngateways.go | 5 + .../mgmt/2018-07-01/network/vpnsites.go | 5 + .../mgmt/2018-07-01/network/watchers.go | 6 + .../2018-08-01/network/applicationgateways.go | 10 + .../network/applicationsecuritygroups.go | 5 + .../network/availabledelegations.go | 2 + .../network/availableendpointservices.go | 2 + .../availableresourcegroupdelegations.go | 2 + .../network/azurefirewallfqdntags.go | 2 + .../mgmt/2018-08-01/network/azurefirewalls.go | 5 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2018-08-01/network/client.go | 2 + .../2018-08-01/network/connectionmonitors.go | 2 + .../2018-08-01/network/ddosprotectionplans.go | 5 + .../network/defaultsecurityrules.go | 3 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitconnections.go | 1 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 7 + .../network/expressrouteconnections.go | 2 + .../expressroutecrossconnectionpeerings.go | 3 + .../network/expressroutecrossconnections.go | 5 + .../network/expressroutegateways.go | 3 + .../2018-08-01/network/expressroutelinks.go | 3 + .../2018-08-01/network/expressrouteports.go | 5 + .../network/expressrouteportslocations.go | 3 + .../network/expressrouteserviceproviders.go | 2 + .../network/hubvirtualnetworkconnections.go | 3 + .../2018-08-01/network/inboundnatrules.go | 3 + .../2018-08-01/network/interfaceendpoints.go | 5 + .../network/interfaceipconfigurations.go | 3 + .../network/interfaceloadbalancers.go | 2 + .../2018-08-01/network/interfacesgroup.go | 13 + .../network/interfacetapconfigurations.go | 3 + .../loadbalancerbackendaddresspools.go | 3 + .../loadbalancerfrontendipconfigurations.go | 3 + .../network/loadbalancerloadbalancingrules.go | 3 + .../network/loadbalancernetworkinterfaces.go | 2 + .../network/loadbalanceroutboundrules.go | 3 + .../2018-08-01/network/loadbalancerprobes.go | 3 + .../mgmt/2018-08-01/network/loadbalancers.go | 5 + .../network/localnetworkgateways.go | 3 + .../mgmt/2018-08-01/network/operations.go | 2 + .../mgmt/2018-08-01/network/p2svpngateways.go | 5 + .../network/p2svpnserverconfigurations.go | 3 + .../mgmt/2018-08-01/network/packetcaptures.go | 2 + .../mgmt/2018-08-01/network/profiles.go | 7 + .../2018-08-01/network/publicipaddresses.go | 10 + .../2018-08-01/network/publicipprefixes.go | 5 + .../2018-08-01/network/routefilterrules.go | 3 + .../mgmt/2018-08-01/network/routefilters.go | 5 + .../network/mgmt/2018-08-01/network/routes.go | 3 + .../mgmt/2018-08-01/network/routetables.go | 5 + .../mgmt/2018-08-01/network/securitygroups.go | 5 + .../mgmt/2018-08-01/network/securityrules.go | 3 + .../network/serviceendpointpolicies.go | 5 + .../serviceendpointpolicydefinitions.go | 3 + .../mgmt/2018-08-01/network/subnets.go | 3 + .../network/mgmt/2018-08-01/network/usages.go | 2 + .../mgmt/2018-08-01/network/virtualhubs.go | 5 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 7 + .../network/virtualnetworkpeerings.go | 3 + .../2018-08-01/network/virtualnetworks.go | 8 + .../2018-08-01/network/virtualnetworktaps.go | 5 + .../mgmt/2018-08-01/network/virtualwans.go | 5 + .../mgmt/2018-08-01/network/vpnconnections.go | 3 + .../mgmt/2018-08-01/network/vpngateways.go | 5 + .../mgmt/2018-08-01/network/vpnsites.go | 5 + .../mgmt/2018-08-01/network/watchers.go | 6 + .../2018-10-01/network/applicationgateways.go | 10 + .../network/applicationsecuritygroups.go | 5 + .../network/availabledelegations.go | 2 + .../network/availableendpointservices.go | 2 + .../availableresourcegroupdelegations.go | 2 + .../network/azurefirewallfqdntags.go | 2 + .../mgmt/2018-10-01/network/azurefirewalls.go | 5 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2018-10-01/network/client.go | 2 + .../2018-10-01/network/connectionmonitors.go | 2 + .../2018-10-01/network/ddosprotectionplans.go | 5 + .../network/defaultsecurityrules.go | 3 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitconnections.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 7 + .../network/expressrouteconnections.go | 2 + .../expressroutecrossconnectionpeerings.go | 3 + .../network/expressroutecrossconnections.go | 5 + .../network/expressroutegateways.go | 3 + .../2018-10-01/network/expressroutelinks.go | 3 + .../2018-10-01/network/expressrouteports.go | 5 + .../network/expressrouteportslocations.go | 3 + .../network/expressrouteserviceproviders.go | 2 + .../network/hubvirtualnetworkconnections.go | 3 + .../2018-10-01/network/inboundnatrules.go | 3 + .../2018-10-01/network/interfaceendpoints.go | 5 + .../network/interfaceipconfigurations.go | 3 + .../network/interfaceloadbalancers.go | 2 + .../2018-10-01/network/interfacesgroup.go | 13 + .../network/interfacetapconfigurations.go | 3 + .../loadbalancerbackendaddresspools.go | 3 + .../loadbalancerfrontendipconfigurations.go | 3 + .../network/loadbalancerloadbalancingrules.go | 3 + .../network/loadbalancernetworkinterfaces.go | 2 + .../network/loadbalanceroutboundrules.go | 3 + .../2018-10-01/network/loadbalancerprobes.go | 3 + .../mgmt/2018-10-01/network/loadbalancers.go | 5 + .../network/localnetworkgateways.go | 3 + .../mgmt/2018-10-01/network/operations.go | 2 + .../mgmt/2018-10-01/network/p2svpngateways.go | 5 + .../network/p2svpnserverconfigurations.go | 3 + .../mgmt/2018-10-01/network/packetcaptures.go | 2 + .../mgmt/2018-10-01/network/profiles.go | 7 + .../2018-10-01/network/publicipaddresses.go | 10 + .../2018-10-01/network/publicipprefixes.go | 5 + .../2018-10-01/network/routefilterrules.go | 3 + .../mgmt/2018-10-01/network/routefilters.go | 5 + .../network/mgmt/2018-10-01/network/routes.go | 3 + .../mgmt/2018-10-01/network/routetables.go | 5 + .../mgmt/2018-10-01/network/securitygroups.go | 5 + .../mgmt/2018-10-01/network/securityrules.go | 3 + .../network/serviceendpointpolicies.go | 5 + .../serviceendpointpolicydefinitions.go | 3 + .../mgmt/2018-10-01/network/subnets.go | 3 + .../network/mgmt/2018-10-01/network/usages.go | 2 + .../mgmt/2018-10-01/network/virtualhubs.go | 5 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 7 + .../network/virtualnetworkpeerings.go | 3 + .../2018-10-01/network/virtualnetworks.go | 8 + .../2018-10-01/network/virtualnetworktaps.go | 5 + .../mgmt/2018-10-01/network/virtualwans.go | 5 + .../mgmt/2018-10-01/network/vpnconnections.go | 3 + .../mgmt/2018-10-01/network/vpngateways.go | 5 + .../mgmt/2018-10-01/network/vpnsites.go | 5 + .../mgmt/2018-10-01/network/watchers.go | 6 + .../2018-11-01/network/applicationgateways.go | 13 + .../network/applicationsecuritygroups.go | 5 + .../network/availabledelegations.go | 2 + .../network/availableendpointservices.go | 2 + .../availableresourcegroupdelegations.go | 2 + .../network/azurefirewallfqdntags.go | 2 + .../mgmt/2018-11-01/network/azurefirewalls.go | 5 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2018-11-01/network/client.go | 2 + .../2018-11-01/network/connectionmonitors.go | 2 + .../2018-11-01/network/ddoscustompolicies.go | 1 + .../2018-11-01/network/ddosprotectionplans.go | 5 + .../network/defaultsecurityrules.go | 3 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitconnections.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 7 + .../network/expressrouteconnections.go | 2 + .../expressroutecrossconnectionpeerings.go | 3 + .../network/expressroutecrossconnections.go | 5 + .../network/expressroutegateways.go | 3 + .../2018-11-01/network/expressroutelinks.go | 3 + .../2018-11-01/network/expressrouteports.go | 5 + .../network/expressrouteportslocations.go | 3 + .../network/expressrouteserviceproviders.go | 2 + .../network/hubvirtualnetworkconnections.go | 3 + .../2018-11-01/network/inboundnatrules.go | 3 + .../2018-11-01/network/interfaceendpoints.go | 5 + .../network/interfaceipconfigurations.go | 3 + .../network/interfaceloadbalancers.go | 2 + .../2018-11-01/network/interfacesgroup.go | 13 + .../network/interfacetapconfigurations.go | 3 + .../loadbalancerbackendaddresspools.go | 3 + .../loadbalancerfrontendipconfigurations.go | 3 + .../network/loadbalancerloadbalancingrules.go | 3 + .../network/loadbalancernetworkinterfaces.go | 2 + .../network/loadbalanceroutboundrules.go | 3 + .../2018-11-01/network/loadbalancerprobes.go | 3 + .../mgmt/2018-11-01/network/loadbalancers.go | 5 + .../network/localnetworkgateways.go | 3 + .../mgmt/2018-11-01/network/operations.go | 2 + .../mgmt/2018-11-01/network/p2svpngateways.go | 5 + .../network/p2svpnserverconfigurations.go | 3 + .../mgmt/2018-11-01/network/packetcaptures.go | 2 + .../mgmt/2018-11-01/network/profiles.go | 7 + .../2018-11-01/network/publicipaddresses.go | 10 + .../2018-11-01/network/publicipprefixes.go | 5 + .../2018-11-01/network/routefilterrules.go | 3 + .../mgmt/2018-11-01/network/routefilters.go | 5 + .../network/mgmt/2018-11-01/network/routes.go | 3 + .../mgmt/2018-11-01/network/routetables.go | 5 + .../mgmt/2018-11-01/network/securitygroups.go | 5 + .../mgmt/2018-11-01/network/securityrules.go | 3 + .../network/serviceendpointpolicies.go | 5 + .../serviceendpointpolicydefinitions.go | 3 + .../mgmt/2018-11-01/network/subnets.go | 3 + .../network/mgmt/2018-11-01/network/usages.go | 2 + .../mgmt/2018-11-01/network/virtualhubs.go | 5 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 7 + .../network/virtualnetworkpeerings.go | 3 + .../2018-11-01/network/virtualnetworks.go | 8 + .../2018-11-01/network/virtualnetworktaps.go | 5 + .../mgmt/2018-11-01/network/virtualwans.go | 5 + .../mgmt/2018-11-01/network/vpnconnections.go | 3 + .../mgmt/2018-11-01/network/vpngateways.go | 5 + .../mgmt/2018-11-01/network/vpnsites.go | 5 + .../mgmt/2018-11-01/network/watchers.go | 6 + .../2018-12-01/network/applicationgateways.go | 13 + .../network/applicationsecuritygroups.go | 5 + .../network/availabledelegations.go | 2 + .../network/availableendpointservices.go | 2 + .../availableresourcegroupdelegations.go | 2 + .../network/azurefirewallfqdntags.go | 2 + .../mgmt/2018-12-01/network/azurefirewalls.go | 5 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2018-12-01/network/client.go | 2 + .../2018-12-01/network/connectionmonitors.go | 2 + .../2018-12-01/network/ddoscustompolicies.go | 1 + .../2018-12-01/network/ddosprotectionplans.go | 5 + .../network/defaultsecurityrules.go | 3 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitconnections.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 7 + .../network/expressrouteconnections.go | 2 + .../expressroutecrossconnectionpeerings.go | 3 + .../network/expressroutecrossconnections.go | 5 + .../network/expressroutegateways.go | 3 + .../2018-12-01/network/expressroutelinks.go | 3 + .../2018-12-01/network/expressrouteports.go | 5 + .../network/expressrouteportslocations.go | 3 + .../network/expressrouteserviceproviders.go | 2 + .../network/hubvirtualnetworkconnections.go | 3 + .../2018-12-01/network/inboundnatrules.go | 3 + .../2018-12-01/network/interfaceendpoints.go | 5 + .../network/interfaceipconfigurations.go | 3 + .../network/interfaceloadbalancers.go | 2 + .../2018-12-01/network/interfacesgroup.go | 13 + .../network/interfacetapconfigurations.go | 3 + .../loadbalancerbackendaddresspools.go | 3 + .../loadbalancerfrontendipconfigurations.go | 3 + .../network/loadbalancerloadbalancingrules.go | 3 + .../network/loadbalancernetworkinterfaces.go | 2 + .../network/loadbalanceroutboundrules.go | 3 + .../2018-12-01/network/loadbalancerprobes.go | 3 + .../mgmt/2018-12-01/network/loadbalancers.go | 5 + .../network/localnetworkgateways.go | 3 + .../mgmt/2018-12-01/network/operations.go | 2 + .../mgmt/2018-12-01/network/p2svpngateways.go | 5 + .../network/p2svpnserverconfigurations.go | 3 + .../mgmt/2018-12-01/network/packetcaptures.go | 2 + .../peerexpressroutecircuitconnections.go | 3 + .../mgmt/2018-12-01/network/profiles.go | 7 + .../2018-12-01/network/publicipaddresses.go | 10 + .../2018-12-01/network/publicipprefixes.go | 5 + .../2018-12-01/network/routefilterrules.go | 3 + .../mgmt/2018-12-01/network/routefilters.go | 5 + .../network/mgmt/2018-12-01/network/routes.go | 3 + .../mgmt/2018-12-01/network/routetables.go | 5 + .../mgmt/2018-12-01/network/securitygroups.go | 5 + .../mgmt/2018-12-01/network/securityrules.go | 3 + .../network/serviceendpointpolicies.go | 5 + .../serviceendpointpolicydefinitions.go | 3 + .../mgmt/2018-12-01/network/subnets.go | 3 + .../network/mgmt/2018-12-01/network/usages.go | 2 + .../mgmt/2018-12-01/network/virtualhubs.go | 5 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 7 + .../network/virtualnetworkpeerings.go | 3 + .../2018-12-01/network/virtualnetworks.go | 8 + .../2018-12-01/network/virtualnetworktaps.go | 5 + .../mgmt/2018-12-01/network/virtualwans.go | 5 + .../mgmt/2018-12-01/network/vpnconnections.go | 3 + .../mgmt/2018-12-01/network/vpngateways.go | 5 + .../mgmt/2018-12-01/network/vpnsites.go | 5 + .../mgmt/2018-12-01/network/watchers.go | 6 + .../network/webapplicationfirewallpolicies.go | 6 + .../2019-02-01/network/applicationgateways.go | 13 + .../network/applicationsecuritygroups.go | 5 + .../network/availabledelegations.go | 2 + .../network/availableendpointservices.go | 2 + .../availableresourcegroupdelegations.go | 2 + .../network/azurefirewallfqdntags.go | 2 + .../mgmt/2019-02-01/network/azurefirewalls.go | 5 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2019-02-01/network/client.go | 2 + .../2019-02-01/network/connectionmonitors.go | 2 + .../2019-02-01/network/ddoscustompolicies.go | 1 + .../2019-02-01/network/ddosprotectionplans.go | 5 + .../network/defaultsecurityrules.go | 3 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitconnections.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 7 + .../network/expressrouteconnections.go | 2 + .../expressroutecrossconnectionpeerings.go | 3 + .../network/expressroutecrossconnections.go | 5 + .../network/expressroutegateways.go | 3 + .../2019-02-01/network/expressroutelinks.go | 3 + .../2019-02-01/network/expressrouteports.go | 5 + .../network/expressrouteportslocations.go | 3 + .../network/expressrouteserviceproviders.go | 2 + .../network/hubvirtualnetworkconnections.go | 3 + .../2019-02-01/network/inboundnatrules.go | 3 + .../2019-02-01/network/interfaceendpoints.go | 5 + .../network/interfaceipconfigurations.go | 3 + .../network/interfaceloadbalancers.go | 2 + .../2019-02-01/network/interfacesgroup.go | 13 + .../network/interfacetapconfigurations.go | 3 + .../loadbalancerbackendaddresspools.go | 3 + .../loadbalancerfrontendipconfigurations.go | 3 + .../network/loadbalancerloadbalancingrules.go | 3 + .../network/loadbalancernetworkinterfaces.go | 2 + .../network/loadbalanceroutboundrules.go | 3 + .../2019-02-01/network/loadbalancerprobes.go | 3 + .../mgmt/2019-02-01/network/loadbalancers.go | 5 + .../network/localnetworkgateways.go | 3 + .../mgmt/2019-02-01/network/natgateways.go | 6 + .../mgmt/2019-02-01/network/operations.go | 2 + .../mgmt/2019-02-01/network/p2svpngateways.go | 5 + .../network/p2svpnserverconfigurations.go | 3 + .../mgmt/2019-02-01/network/packetcaptures.go | 2 + .../peerexpressroutecircuitconnections.go | 3 + .../mgmt/2019-02-01/network/profiles.go | 7 + .../2019-02-01/network/publicipaddresses.go | 10 + .../2019-02-01/network/publicipprefixes.go | 5 + .../network/resourcenavigationlinks.go | 1 + .../2019-02-01/network/routefilterrules.go | 3 + .../mgmt/2019-02-01/network/routefilters.go | 5 + .../network/mgmt/2019-02-01/network/routes.go | 3 + .../mgmt/2019-02-01/network/routetables.go | 5 + .../mgmt/2019-02-01/network/securitygroups.go | 5 + .../mgmt/2019-02-01/network/securityrules.go | 3 + .../network/serviceassociationlinks.go | 1 + .../network/serviceendpointpolicies.go | 5 + .../serviceendpointpolicydefinitions.go | 3 + .../mgmt/2019-02-01/network/subnets.go | 3 + .../network/mgmt/2019-02-01/network/usages.go | 2 + .../mgmt/2019-02-01/network/virtualhubs.go | 5 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 7 + .../network/virtualnetworkpeerings.go | 3 + .../2019-02-01/network/virtualnetworks.go | 8 + .../2019-02-01/network/virtualnetworktaps.go | 5 + .../mgmt/2019-02-01/network/virtualwans.go | 5 + .../mgmt/2019-02-01/network/vpnconnections.go | 3 + .../mgmt/2019-02-01/network/vpngateways.go | 5 + .../mgmt/2019-02-01/network/vpnsites.go | 5 + .../mgmt/2019-02-01/network/watchers.go | 6 + .../network/webapplicationfirewallpolicies.go | 6 + .../2019-04-01/network/applicationgateways.go | 13 + .../network/applicationsecuritygroups.go | 5 + .../network/availabledelegations.go | 2 + .../network/availableendpointservices.go | 2 + .../network/availableprivateendpointtypes.go | 4 + .../availableresourcegroupdelegations.go | 2 + .../network/azurefirewallfqdntags.go | 2 + .../mgmt/2019-04-01/network/azurefirewalls.go | 5 + .../mgmt/2019-04-01/network/bastionhosts.go | 5 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2019-04-01/network/client.go | 2 + .../2019-04-01/network/connectionmonitors.go | 2 + .../2019-04-01/network/ddoscustompolicies.go | 1 + .../2019-04-01/network/ddosprotectionplans.go | 5 + .../network/defaultsecurityrules.go | 3 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitconnections.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 7 + .../network/expressrouteconnections.go | 2 + .../expressroutecrossconnectionpeerings.go | 3 + .../network/expressroutecrossconnections.go | 5 + .../network/expressroutegateways.go | 3 + .../2019-04-01/network/expressroutelinks.go | 3 + .../2019-04-01/network/expressrouteports.go | 5 + .../network/expressrouteportslocations.go | 3 + .../network/expressrouteserviceproviders.go | 2 + .../network/hubvirtualnetworkconnections.go | 3 + .../2019-04-01/network/inboundnatrules.go | 3 + .../network/interfaceipconfigurations.go | 3 + .../network/interfaceloadbalancers.go | 2 + .../2019-04-01/network/interfacesgroup.go | 13 + .../network/interfacetapconfigurations.go | 3 + .../loadbalancerbackendaddresspools.go | 3 + .../loadbalancerfrontendipconfigurations.go | 3 + .../network/loadbalancerloadbalancingrules.go | 3 + .../network/loadbalancernetworkinterfaces.go | 2 + .../network/loadbalanceroutboundrules.go | 3 + .../2019-04-01/network/loadbalancerprobes.go | 3 + .../mgmt/2019-04-01/network/loadbalancers.go | 5 + .../network/localnetworkgateways.go | 3 + .../mgmt/2019-04-01/network/natgateways.go | 6 + .../mgmt/2019-04-01/network/operations.go | 2 + .../mgmt/2019-04-01/network/p2svpngateways.go | 5 + .../network/p2svpnserverconfigurations.go | 3 + .../mgmt/2019-04-01/network/packetcaptures.go | 2 + .../peerexpressroutecircuitconnections.go | 3 + .../2019-04-01/network/privateendpoints.go | 5 + .../2019-04-01/network/privatelinkservices.go | 10 + .../mgmt/2019-04-01/network/profiles.go | 7 + .../2019-04-01/network/publicipaddresses.go | 10 + .../2019-04-01/network/publicipprefixes.go | 5 + .../network/resourcenavigationlinks.go | 1 + .../2019-04-01/network/routefilterrules.go | 3 + .../mgmt/2019-04-01/network/routefilters.go | 5 + .../network/mgmt/2019-04-01/network/routes.go | 3 + .../mgmt/2019-04-01/network/routetables.go | 5 + .../mgmt/2019-04-01/network/securitygroups.go | 5 + .../mgmt/2019-04-01/network/securityrules.go | 3 + .../network/serviceassociationlinks.go | 1 + .../network/serviceendpointpolicies.go | 5 + .../serviceendpointpolicydefinitions.go | 3 + .../mgmt/2019-04-01/network/servicetags.go | 1 + .../mgmt/2019-04-01/network/subnets.go | 3 + .../network/mgmt/2019-04-01/network/usages.go | 2 + .../mgmt/2019-04-01/network/virtualhubs.go | 5 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 7 + .../network/virtualnetworkpeerings.go | 3 + .../2019-04-01/network/virtualnetworks.go | 8 + .../2019-04-01/network/virtualnetworktaps.go | 5 + .../mgmt/2019-04-01/network/virtualwans.go | 5 + .../mgmt/2019-04-01/network/vpnconnections.go | 3 + .../mgmt/2019-04-01/network/vpngateways.go | 5 + .../mgmt/2019-04-01/network/vpnsites.go | 5 + .../mgmt/2019-04-01/network/watchers.go | 6 + .../network/webapplicationfirewallpolicies.go | 6 + .../2019-06-01/network/applicationgateways.go | 13 + .../network/applicationsecuritygroups.go | 5 + .../network/availabledelegations.go | 2 + .../network/availableendpointservices.go | 2 + .../network/availableprivateendpointtypes.go | 4 + .../availableresourcegroupdelegations.go | 2 + .../network/azurefirewallfqdntags.go | 2 + .../mgmt/2019-06-01/network/azurefirewalls.go | 6 + .../mgmt/2019-06-01/network/bastionhosts.go | 5 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2019-06-01/network/client.go | 2 + .../2019-06-01/network/connectionmonitors.go | 3 + .../2019-06-01/network/ddoscustompolicies.go | 1 + .../2019-06-01/network/ddosprotectionplans.go | 5 + .../network/defaultsecurityrules.go | 3 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitconnections.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 7 + .../network/expressrouteconnections.go | 2 + .../expressroutecrossconnectionpeerings.go | 3 + .../network/expressroutecrossconnections.go | 5 + .../network/expressroutegateways.go | 3 + .../2019-06-01/network/expressroutelinks.go | 3 + .../2019-06-01/network/expressrouteports.go | 5 + .../network/expressrouteportslocations.go | 3 + .../network/expressrouteserviceproviders.go | 2 + .../2019-06-01/network/firewallpolicies.go | 6 + .../network/firewallpolicyrulegroups.go | 3 + .../network/hubvirtualnetworkconnections.go | 3 + .../2019-06-01/network/inboundnatrules.go | 3 + .../network/interfaceipconfigurations.go | 3 + .../network/interfaceloadbalancers.go | 2 + .../2019-06-01/network/interfacesgroup.go | 13 + .../network/interfacetapconfigurations.go | 3 + .../loadbalancerbackendaddresspools.go | 3 + .../loadbalancerfrontendipconfigurations.go | 3 + .../network/loadbalancerloadbalancingrules.go | 3 + .../network/loadbalancernetworkinterfaces.go | 2 + .../network/loadbalanceroutboundrules.go | 3 + .../2019-06-01/network/loadbalancerprobes.go | 3 + .../mgmt/2019-06-01/network/loadbalancers.go | 5 + .../network/localnetworkgateways.go | 3 + .../mgmt/2019-06-01/network/natgateways.go | 6 + .../mgmt/2019-06-01/network/operations.go | 2 + .../mgmt/2019-06-01/network/p2svpngateways.go | 5 + .../network/p2svpnserverconfigurations.go | 3 + .../mgmt/2019-06-01/network/packetcaptures.go | 2 + .../peerexpressroutecircuitconnections.go | 3 + .../2019-06-01/network/privateendpoints.go | 5 + .../2019-06-01/network/privatelinkservices.go | 10 + .../mgmt/2019-06-01/network/profiles.go | 7 + .../2019-06-01/network/publicipaddresses.go | 10 + .../2019-06-01/network/publicipprefixes.go | 5 + .../network/resourcenavigationlinks.go | 1 + .../2019-06-01/network/routefilterrules.go | 3 + .../mgmt/2019-06-01/network/routefilters.go | 5 + .../network/mgmt/2019-06-01/network/routes.go | 3 + .../mgmt/2019-06-01/network/routetables.go | 5 + .../mgmt/2019-06-01/network/securitygroups.go | 5 + .../mgmt/2019-06-01/network/securityrules.go | 3 + .../network/serviceassociationlinks.go | 1 + .../network/serviceendpointpolicies.go | 5 + .../serviceendpointpolicydefinitions.go | 3 + .../mgmt/2019-06-01/network/servicetags.go | 1 + .../mgmt/2019-06-01/network/subnets.go | 3 + .../network/mgmt/2019-06-01/network/usages.go | 2 + .../mgmt/2019-06-01/network/virtualhubs.go | 5 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 7 + .../network/virtualnetworkpeerings.go | 3 + .../2019-06-01/network/virtualnetworks.go | 8 + .../2019-06-01/network/virtualnetworktaps.go | 5 + .../mgmt/2019-06-01/network/virtualwans.go | 5 + .../mgmt/2019-06-01/network/vpnconnections.go | 3 + .../mgmt/2019-06-01/network/vpngateways.go | 5 + .../2019-06-01/network/vpnlinkconnections.go | 2 + .../network/vpnsitelinkconnections.go | 1 + .../mgmt/2019-06-01/network/vpnsitelinks.go | 3 + .../mgmt/2019-06-01/network/vpnsites.go | 5 + .../mgmt/2019-06-01/network/watchers.go | 6 + .../network/webapplicationfirewallpolicies.go | 6 + .../2019-07-01/network/applicationgateways.go | 13 + .../network/applicationsecuritygroups.go | 5 + .../network/availabledelegations.go | 2 + .../network/availableendpointservices.go | 2 + .../network/availableprivateendpointtypes.go | 4 + .../availableresourcegroupdelegations.go | 2 + .../network/azurefirewallfqdntags.go | 2 + .../mgmt/2019-07-01/network/azurefirewalls.go | 6 + .../mgmt/2019-07-01/network/bastionhosts.go | 5 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2019-07-01/network/client.go | 2 + .../2019-07-01/network/connectionmonitors.go | 3 + .../2019-07-01/network/ddoscustompolicies.go | 1 + .../2019-07-01/network/ddosprotectionplans.go | 5 + .../network/defaultsecurityrules.go | 3 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitconnections.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 7 + .../network/expressrouteconnections.go | 2 + .../expressroutecrossconnectionpeerings.go | 3 + .../network/expressroutecrossconnections.go | 5 + .../network/expressroutegateways.go | 3 + .../2019-07-01/network/expressroutelinks.go | 3 + .../2019-07-01/network/expressrouteports.go | 5 + .../network/expressrouteportslocations.go | 3 + .../network/expressrouteserviceproviders.go | 2 + .../2019-07-01/network/firewallpolicies.go | 6 + .../network/firewallpolicyrulegroups.go | 3 + .../network/hubvirtualnetworkconnections.go | 3 + .../2019-07-01/network/inboundnatrules.go | 3 + .../network/interfaceipconfigurations.go | 3 + .../network/interfaceloadbalancers.go | 2 + .../2019-07-01/network/interfacesgroup.go | 13 + .../network/interfacetapconfigurations.go | 3 + .../loadbalancerbackendaddresspools.go | 3 + .../loadbalancerfrontendipconfigurations.go | 3 + .../network/loadbalancerloadbalancingrules.go | 3 + .../network/loadbalancernetworkinterfaces.go | 2 + .../network/loadbalanceroutboundrules.go | 3 + .../2019-07-01/network/loadbalancerprobes.go | 3 + .../mgmt/2019-07-01/network/loadbalancers.go | 5 + .../network/localnetworkgateways.go | 3 + .../mgmt/2019-07-01/network/natgateways.go | 6 + .../mgmt/2019-07-01/network/operations.go | 2 + .../mgmt/2019-07-01/network/p2svpngateways.go | 5 + .../network/p2svpnserverconfigurations.go | 3 + .../mgmt/2019-07-01/network/packetcaptures.go | 2 + .../peerexpressroutecircuitconnections.go | 3 + .../2019-07-01/network/privateendpoints.go | 5 + .../2019-07-01/network/privatelinkservices.go | 10 + .../mgmt/2019-07-01/network/profiles.go | 7 + .../2019-07-01/network/publicipaddresses.go | 10 + .../2019-07-01/network/publicipprefixes.go | 5 + .../network/resourcenavigationlinks.go | 1 + .../2019-07-01/network/routefilterrules.go | 3 + .../mgmt/2019-07-01/network/routefilters.go | 5 + .../network/mgmt/2019-07-01/network/routes.go | 3 + .../mgmt/2019-07-01/network/routetables.go | 5 + .../mgmt/2019-07-01/network/securitygroups.go | 5 + .../mgmt/2019-07-01/network/securityrules.go | 3 + .../network/serviceassociationlinks.go | 1 + .../network/serviceendpointpolicies.go | 5 + .../serviceendpointpolicydefinitions.go | 3 + .../mgmt/2019-07-01/network/servicetags.go | 1 + .../mgmt/2019-07-01/network/subnets.go | 3 + .../network/mgmt/2019-07-01/network/usages.go | 2 + .../mgmt/2019-07-01/network/virtualhubs.go | 5 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 7 + .../network/virtualnetworkpeerings.go | 3 + .../2019-07-01/network/virtualnetworks.go | 8 + .../2019-07-01/network/virtualnetworktaps.go | 5 + .../network/virtualrouterpeerings.go | 4 + .../mgmt/2019-07-01/network/virtualrouters.go | 6 + .../mgmt/2019-07-01/network/virtualwans.go | 5 + .../mgmt/2019-07-01/network/vpnconnections.go | 3 + .../mgmt/2019-07-01/network/vpngateways.go | 5 + .../2019-07-01/network/vpnlinkconnections.go | 2 + .../network/vpnsitelinkconnections.go | 1 + .../mgmt/2019-07-01/network/vpnsitelinks.go | 3 + .../mgmt/2019-07-01/network/vpnsites.go | 5 + .../mgmt/2019-07-01/network/watchers.go | 6 + .../network/webapplicationfirewallpolicies.go | 6 + .../2019-08-01/network/applicationgateways.go | 13 + .../network/applicationsecuritygroups.go | 5 + .../network/availabledelegations.go | 2 + .../network/availableendpointservices.go | 2 + .../network/availableprivateendpointtypes.go | 4 + .../availableresourcegroupdelegations.go | 2 + .../network/availableservicealiases.go | 4 + .../network/azurefirewallfqdntags.go | 2 + .../mgmt/2019-08-01/network/azurefirewalls.go | 6 + .../mgmt/2019-08-01/network/bastionhosts.go | 5 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2019-08-01/network/client.go | 2 + .../2019-08-01/network/connectionmonitors.go | 3 + .../2019-08-01/network/ddoscustompolicies.go | 1 + .../2019-08-01/network/ddosprotectionplans.go | 5 + .../network/defaultsecurityrules.go | 3 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitconnections.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 7 + .../network/expressrouteconnections.go | 2 + .../expressroutecrossconnectionpeerings.go | 3 + .../network/expressroutecrossconnections.go | 5 + .../network/expressroutegateways.go | 3 + .../2019-08-01/network/expressroutelinks.go | 3 + .../2019-08-01/network/expressrouteports.go | 5 + .../network/expressrouteportslocations.go | 3 + .../network/expressrouteserviceproviders.go | 2 + .../2019-08-01/network/firewallpolicies.go | 6 + .../network/firewallpolicyrulegroups.go | 3 + .../network/hubvirtualnetworkconnections.go | 3 + .../2019-08-01/network/inboundnatrules.go | 3 + .../network/interfaceipconfigurations.go | 3 + .../network/interfaceloadbalancers.go | 2 + .../2019-08-01/network/interfacesgroup.go | 13 + .../network/interfacetapconfigurations.go | 3 + .../loadbalancerbackendaddresspools.go | 3 + .../loadbalancerfrontendipconfigurations.go | 3 + .../network/loadbalancerloadbalancingrules.go | 3 + .../network/loadbalancernetworkinterfaces.go | 2 + .../network/loadbalanceroutboundrules.go | 3 + .../2019-08-01/network/loadbalancerprobes.go | 3 + .../mgmt/2019-08-01/network/loadbalancers.go | 5 + .../network/localnetworkgateways.go | 3 + .../mgmt/2019-08-01/network/natgateways.go | 6 + .../mgmt/2019-08-01/network/operations.go | 2 + .../mgmt/2019-08-01/network/p2svpngateways.go | 5 + .../mgmt/2019-08-01/network/packetcaptures.go | 2 + .../peerexpressroutecircuitconnections.go | 3 + .../2019-08-01/network/privateendpoints.go | 5 + .../2019-08-01/network/privatelinkservices.go | 10 + .../mgmt/2019-08-01/network/profiles.go | 7 + .../2019-08-01/network/publicipaddresses.go | 10 + .../2019-08-01/network/publicipprefixes.go | 5 + .../network/resourcenavigationlinks.go | 1 + .../2019-08-01/network/routefilterrules.go | 3 + .../mgmt/2019-08-01/network/routefilters.go | 5 + .../network/mgmt/2019-08-01/network/routes.go | 3 + .../mgmt/2019-08-01/network/routetables.go | 5 + .../mgmt/2019-08-01/network/securitygroups.go | 5 + .../mgmt/2019-08-01/network/securityrules.go | 3 + .../network/serviceassociationlinks.go | 1 + .../network/serviceendpointpolicies.go | 5 + .../serviceendpointpolicydefinitions.go | 3 + .../mgmt/2019-08-01/network/servicetags.go | 1 + .../mgmt/2019-08-01/network/subnets.go | 3 + .../network/mgmt/2019-08-01/network/usages.go | 2 + .../mgmt/2019-08-01/network/virtualhubs.go | 5 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 7 + .../network/virtualnetworkpeerings.go | 3 + .../2019-08-01/network/virtualnetworks.go | 8 + .../2019-08-01/network/virtualnetworktaps.go | 5 + .../network/virtualrouterpeerings.go | 4 + .../mgmt/2019-08-01/network/virtualrouters.go | 6 + .../mgmt/2019-08-01/network/virtualwans.go | 5 + .../mgmt/2019-08-01/network/vpnconnections.go | 3 + .../mgmt/2019-08-01/network/vpngateways.go | 5 + .../2019-08-01/network/vpnlinkconnections.go | 2 + .../network/vpnserverconfigurations.go | 5 + .../network/vpnsitelinkconnections.go | 1 + .../mgmt/2019-08-01/network/vpnsitelinks.go | 3 + .../mgmt/2019-08-01/network/vpnsites.go | 5 + .../mgmt/2019-08-01/network/watchers.go | 6 + .../network/webapplicationfirewallpolicies.go | 6 + .../2019-09-01/network/applicationgateways.go | 14 + .../network/applicationsecuritygroups.go | 6 + .../network/availabledelegations.go | 2 + .../network/availableendpointservices.go | 2 + .../network/availableprivateendpointtypes.go | 4 + .../availableresourcegroupdelegations.go | 2 + .../network/availableservicealiases.go | 4 + .../network/azurefirewallfqdntags.go | 2 + .../mgmt/2019-09-01/network/azurefirewalls.go | 5 + .../mgmt/2019-09-01/network/bastionhosts.go | 5 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2019-09-01/network/client.go | 6 + .../2019-09-01/network/connectionmonitors.go | 3 + .../2019-09-01/network/ddoscustompolicies.go | 2 + .../2019-09-01/network/ddosprotectionplans.go | 6 + .../network/defaultsecurityrules.go | 3 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitconnections.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 8 + .../network/expressrouteconnections.go | 2 + .../expressroutecrossconnectionpeerings.go | 3 + .../network/expressroutecrossconnections.go | 6 + .../network/expressroutegateways.go | 3 + .../2019-09-01/network/expressroutelinks.go | 3 + .../2019-09-01/network/expressrouteports.go | 6 + .../network/expressrouteportslocations.go | 3 + .../network/expressrouteserviceproviders.go | 2 + .../2019-09-01/network/firewallpolicies.go | 5 + .../network/firewallpolicyrulegroups.go | 3 + .../network/hubvirtualnetworkconnections.go | 3 + .../2019-09-01/network/inboundnatrules.go | 3 + .../network/interfaceipconfigurations.go | 3 + .../network/interfaceloadbalancers.go | 2 + .../2019-09-01/network/interfacesgroup.go | 14 + .../network/interfacetapconfigurations.go | 3 + .../mgmt/2019-09-01/network/ipgroups.go | 6 + .../loadbalancerbackendaddresspools.go | 3 + .../loadbalancerfrontendipconfigurations.go | 3 + .../network/loadbalancerloadbalancingrules.go | 3 + .../network/loadbalancernetworkinterfaces.go | 2 + .../network/loadbalanceroutboundrules.go | 3 + .../2019-09-01/network/loadbalancerprobes.go | 3 + .../mgmt/2019-09-01/network/loadbalancers.go | 6 + .../network/localnetworkgateways.go | 4 + .../mgmt/2019-09-01/network/natgateways.go | 6 + .../mgmt/2019-09-01/network/operations.go | 2 + .../mgmt/2019-09-01/network/p2svpngateways.go | 6 + .../mgmt/2019-09-01/network/packetcaptures.go | 2 + .../peerexpressroutecircuitconnections.go | 3 + .../2019-09-01/network/privateendpoints.go | 5 + .../2019-09-01/network/privatelinkservices.go | 13 + .../mgmt/2019-09-01/network/profiles.go | 7 + .../2019-09-01/network/publicipaddresses.go | 11 + .../2019-09-01/network/publicipprefixes.go | 6 + .../network/resourcenavigationlinks.go | 1 + .../2019-09-01/network/routefilterrules.go | 3 + .../mgmt/2019-09-01/network/routefilters.go | 6 + .../network/mgmt/2019-09-01/network/routes.go | 3 + .../mgmt/2019-09-01/network/routetables.go | 6 + .../mgmt/2019-09-01/network/securitygroups.go | 6 + .../mgmt/2019-09-01/network/securityrules.go | 3 + .../network/serviceassociationlinks.go | 1 + .../network/serviceendpointpolicies.go | 6 + .../serviceendpointpolicydefinitions.go | 3 + .../mgmt/2019-09-01/network/servicetags.go | 1 + .../mgmt/2019-09-01/network/subnets.go | 3 + .../network/mgmt/2019-09-01/network/usages.go | 2 + .../network/virtualhubroutetablev2s.go | 3 + .../mgmt/2019-09-01/network/virtualhubs.go | 6 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 7 + .../network/virtualnetworkpeerings.go | 3 + .../2019-09-01/network/virtualnetworks.go | 9 + .../2019-09-01/network/virtualnetworktaps.go | 6 + .../network/virtualrouterpeerings.go | 3 + .../mgmt/2019-09-01/network/virtualrouters.go | 5 + .../mgmt/2019-09-01/network/virtualwans.go | 6 + .../mgmt/2019-09-01/network/vpnconnections.go | 3 + .../mgmt/2019-09-01/network/vpngateways.go | 6 + .../2019-09-01/network/vpnlinkconnections.go | 2 + .../network/vpnserverconfigurations.go | 6 + .../network/vpnsitelinkconnections.go | 1 + .../mgmt/2019-09-01/network/vpnsitelinks.go | 3 + .../mgmt/2019-09-01/network/vpnsites.go | 6 + .../mgmt/2019-09-01/network/watchers.go | 6 + .../network/webapplicationfirewallpolicies.go | 6 + .../2019-11-01/network/applicationgateways.go | 14 + .../network/applicationsecuritygroups.go | 6 + .../network/availabledelegations.go | 2 + .../network/availableendpointservices.go | 2 + .../network/availableprivateendpointtypes.go | 4 + .../availableresourcegroupdelegations.go | 2 + .../network/availableservicealiases.go | 4 + .../network/azurefirewallfqdntags.go | 2 + .../mgmt/2019-11-01/network/azurefirewalls.go | 6 + .../mgmt/2019-11-01/network/bastionhosts.go | 5 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2019-11-01/network/client.go | 6 + .../2019-11-01/network/connectionmonitors.go | 3 + .../2019-11-01/network/ddoscustompolicies.go | 2 + .../2019-11-01/network/ddosprotectionplans.go | 6 + .../network/defaultsecurityrules.go | 3 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitconnections.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 8 + .../network/expressrouteconnections.go | 2 + .../expressroutecrossconnectionpeerings.go | 3 + .../network/expressroutecrossconnections.go | 6 + .../network/expressroutegateways.go | 3 + .../2019-11-01/network/expressroutelinks.go | 3 + .../2019-11-01/network/expressrouteports.go | 6 + .../network/expressrouteportslocations.go | 3 + .../network/expressrouteserviceproviders.go | 2 + .../2019-11-01/network/firewallpolicies.go | 5 + .../network/firewallpolicyrulegroups.go | 3 + .../mgmt/2019-11-01/network/flowlogs.go | 3 + .../network/hubvirtualnetworkconnections.go | 3 + .../2019-11-01/network/inboundnatrules.go | 3 + .../network/interfaceipconfigurations.go | 3 + .../network/interfaceloadbalancers.go | 2 + .../2019-11-01/network/interfacesgroup.go | 14 + .../network/interfacetapconfigurations.go | 3 + .../mgmt/2019-11-01/network/ipgroups.go | 6 + .../loadbalancerbackendaddresspools.go | 3 + .../loadbalancerfrontendipconfigurations.go | 3 + .../network/loadbalancerloadbalancingrules.go | 3 + .../network/loadbalancernetworkinterfaces.go | 2 + .../network/loadbalanceroutboundrules.go | 3 + .../2019-11-01/network/loadbalancerprobes.go | 3 + .../mgmt/2019-11-01/network/loadbalancers.go | 6 + .../network/localnetworkgateways.go | 4 + .../mgmt/2019-11-01/network/natgateways.go | 6 + .../mgmt/2019-11-01/network/operations.go | 2 + .../mgmt/2019-11-01/network/p2svpngateways.go | 6 + .../mgmt/2019-11-01/network/packetcaptures.go | 2 + .../peerexpressroutecircuitconnections.go | 3 + .../2019-11-01/network/privateendpoints.go | 5 + .../2019-11-01/network/privatelinkservices.go | 13 + .../mgmt/2019-11-01/network/profiles.go | 7 + .../2019-11-01/network/publicipaddresses.go | 11 + .../2019-11-01/network/publicipprefixes.go | 6 + .../network/resourcenavigationlinks.go | 1 + .../2019-11-01/network/routefilterrules.go | 3 + .../mgmt/2019-11-01/network/routefilters.go | 6 + .../network/mgmt/2019-11-01/network/routes.go | 3 + .../mgmt/2019-11-01/network/routetables.go | 6 + .../mgmt/2019-11-01/network/securitygroups.go | 6 + .../mgmt/2019-11-01/network/securityrules.go | 3 + .../network/serviceassociationlinks.go | 1 + .../network/serviceendpointpolicies.go | 6 + .../serviceendpointpolicydefinitions.go | 3 + .../mgmt/2019-11-01/network/servicetags.go | 1 + .../mgmt/2019-11-01/network/subnets.go | 3 + .../network/mgmt/2019-11-01/network/usages.go | 2 + .../network/virtualhubroutetablev2s.go | 3 + .../mgmt/2019-11-01/network/virtualhubs.go | 6 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 7 + .../network/virtualnetworkpeerings.go | 3 + .../2019-11-01/network/virtualnetworks.go | 9 + .../2019-11-01/network/virtualnetworktaps.go | 6 + .../network/virtualrouterpeerings.go | 3 + .../mgmt/2019-11-01/network/virtualrouters.go | 5 + .../mgmt/2019-11-01/network/virtualwans.go | 6 + .../mgmt/2019-11-01/network/vpnconnections.go | 3 + .../mgmt/2019-11-01/network/vpngateways.go | 6 + .../2019-11-01/network/vpnlinkconnections.go | 2 + .../network/vpnserverconfigurations.go | 6 + .../network/vpnsitelinkconnections.go | 1 + .../mgmt/2019-11-01/network/vpnsitelinks.go | 3 + .../mgmt/2019-11-01/network/vpnsites.go | 6 + .../mgmt/2019-11-01/network/watchers.go | 6 + .../network/webapplicationfirewallpolicies.go | 6 + .../2019-12-01/network/applicationgateways.go | 14 + .../network/applicationsecuritygroups.go | 6 + .../network/availabledelegations.go | 2 + .../network/availableendpointservices.go | 2 + .../network/availableprivateendpointtypes.go | 4 + .../availableresourcegroupdelegations.go | 2 + .../network/availableservicealiases.go | 4 + .../network/azurefirewallfqdntags.go | 2 + .../mgmt/2019-12-01/network/azurefirewalls.go | 6 + .../mgmt/2019-12-01/network/bastionhosts.go | 5 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2019-12-01/network/client.go | 6 + .../2019-12-01/network/connectionmonitors.go | 3 + .../2019-12-01/network/ddoscustompolicies.go | 2 + .../2019-12-01/network/ddosprotectionplans.go | 6 + .../network/defaultsecurityrules.go | 3 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitconnections.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 8 + .../network/expressrouteconnections.go | 2 + .../expressroutecrossconnectionpeerings.go | 3 + .../network/expressroutecrossconnections.go | 6 + .../network/expressroutegateways.go | 3 + .../2019-12-01/network/expressroutelinks.go | 3 + .../2019-12-01/network/expressrouteports.go | 6 + .../network/expressrouteportslocations.go | 3 + .../network/expressrouteserviceproviders.go | 2 + .../2019-12-01/network/firewallpolicies.go | 5 + .../network/firewallpolicyrulegroups.go | 3 + .../mgmt/2019-12-01/network/flowlogs.go | 3 + .../network/hubvirtualnetworkconnections.go | 3 + .../2019-12-01/network/inboundnatrules.go | 3 + .../network/interfaceipconfigurations.go | 3 + .../network/interfaceloadbalancers.go | 2 + .../2019-12-01/network/interfacesgroup.go | 14 + .../network/interfacetapconfigurations.go | 3 + .../mgmt/2019-12-01/network/ipgroups.go | 6 + .../loadbalancerbackendaddresspools.go | 3 + .../loadbalancerfrontendipconfigurations.go | 3 + .../network/loadbalancerloadbalancingrules.go | 3 + .../network/loadbalancernetworkinterfaces.go | 2 + .../network/loadbalanceroutboundrules.go | 3 + .../2019-12-01/network/loadbalancerprobes.go | 3 + .../mgmt/2019-12-01/network/loadbalancers.go | 6 + .../network/localnetworkgateways.go | 4 + .../mgmt/2019-12-01/network/natgateways.go | 6 + .../mgmt/2019-12-01/network/operations.go | 2 + .../mgmt/2019-12-01/network/p2svpngateways.go | 6 + .../mgmt/2019-12-01/network/packetcaptures.go | 2 + .../peerexpressroutecircuitconnections.go | 3 + .../2019-12-01/network/privateendpoints.go | 5 + .../2019-12-01/network/privatelinkservices.go | 13 + .../mgmt/2019-12-01/network/profiles.go | 7 + .../2019-12-01/network/publicipaddresses.go | 11 + .../2019-12-01/network/publicipprefixes.go | 6 + .../network/resourcenavigationlinks.go | 1 + .../2019-12-01/network/routefilterrules.go | 3 + .../mgmt/2019-12-01/network/routefilters.go | 6 + .../network/mgmt/2019-12-01/network/routes.go | 3 + .../mgmt/2019-12-01/network/routetables.go | 6 + .../mgmt/2019-12-01/network/securitygroups.go | 6 + .../mgmt/2019-12-01/network/securityrules.go | 3 + .../network/serviceassociationlinks.go | 1 + .../network/serviceendpointpolicies.go | 6 + .../serviceendpointpolicydefinitions.go | 3 + .../mgmt/2019-12-01/network/servicetags.go | 1 + .../mgmt/2019-12-01/network/subnets.go | 3 + .../network/mgmt/2019-12-01/network/usages.go | 2 + .../2019-12-01/network/virtualappliances.go | 6 + .../network/virtualhubroutetablev2s.go | 3 + .../mgmt/2019-12-01/network/virtualhubs.go | 6 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 7 + .../network/virtualnetworkpeerings.go | 3 + .../2019-12-01/network/virtualnetworks.go | 9 + .../2019-12-01/network/virtualnetworktaps.go | 6 + .../network/virtualrouterpeerings.go | 3 + .../mgmt/2019-12-01/network/virtualrouters.go | 5 + .../mgmt/2019-12-01/network/virtualwans.go | 6 + .../mgmt/2019-12-01/network/vpnconnections.go | 3 + .../mgmt/2019-12-01/network/vpngateways.go | 6 + .../2019-12-01/network/vpnlinkconnections.go | 2 + .../network/vpnserverconfigurations.go | 6 + .../network/vpnsitelinkconnections.go | 1 + .../mgmt/2019-12-01/network/vpnsitelinks.go | 3 + .../mgmt/2019-12-01/network/vpnsites.go | 6 + .../mgmt/2019-12-01/network/watchers.go | 6 + .../network/webapplicationfirewallpolicies.go | 6 + .../2020-03-01/network/applicationgateways.go | 14 + .../network/applicationsecuritygroups.go | 6 + .../network/availabledelegations.go | 2 + .../network/availableendpointservices.go | 2 + .../network/availableprivateendpointtypes.go | 4 + .../availableresourcegroupdelegations.go | 2 + .../network/availableservicealiases.go | 4 + .../network/azurefirewallfqdntags.go | 2 + .../mgmt/2020-03-01/network/azurefirewalls.go | 5 + .../mgmt/2020-03-01/network/bastionhosts.go | 5 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2020-03-01/network/client.go | 6 + .../2020-03-01/network/connectionmonitors.go | 3 + .../2020-03-01/network/ddoscustompolicies.go | 2 + .../2020-03-01/network/ddosprotectionplans.go | 6 + .../network/defaultsecurityrules.go | 3 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitconnections.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 8 + .../network/expressrouteconnections.go | 2 + .../expressroutecrossconnectionpeerings.go | 3 + .../network/expressroutecrossconnections.go | 6 + .../network/expressroutegateways.go | 3 + .../2020-03-01/network/expressroutelinks.go | 3 + .../2020-03-01/network/expressrouteports.go | 6 + .../network/expressrouteportslocations.go | 3 + .../network/expressrouteserviceproviders.go | 2 + .../2020-03-01/network/firewallpolicies.go | 5 + .../network/firewallpolicyrulegroups.go | 3 + .../mgmt/2020-03-01/network/flowlogs.go | 3 + .../network/hubvirtualnetworkconnections.go | 3 + .../2020-03-01/network/inboundnatrules.go | 3 + .../network/interfaceipconfigurations.go | 3 + .../network/interfaceloadbalancers.go | 2 + .../2020-03-01/network/interfacesgroup.go | 14 + .../network/interfacetapconfigurations.go | 3 + .../mgmt/2020-03-01/network/ipallocations.go | 6 + .../mgmt/2020-03-01/network/ipgroups.go | 6 + .../loadbalancerbackendaddresspools.go | 3 + .../loadbalancerfrontendipconfigurations.go | 3 + .../network/loadbalancerloadbalancingrules.go | 3 + .../network/loadbalancernetworkinterfaces.go | 2 + .../network/loadbalanceroutboundrules.go | 3 + .../2020-03-01/network/loadbalancerprobes.go | 3 + .../mgmt/2020-03-01/network/loadbalancers.go | 6 + .../network/localnetworkgateways.go | 4 + .../mgmt/2020-03-01/network/natgateways.go | 6 + .../mgmt/2020-03-01/network/operations.go | 2 + .../mgmt/2020-03-01/network/p2svpngateways.go | 6 + .../mgmt/2020-03-01/network/packetcaptures.go | 2 + .../peerexpressroutecircuitconnections.go | 3 + .../network/privatednszonegroups.go | 3 + .../2020-03-01/network/privateendpoints.go | 5 + .../2020-03-01/network/privatelinkservices.go | 13 + .../mgmt/2020-03-01/network/profiles.go | 7 + .../2020-03-01/network/publicipaddresses.go | 11 + .../2020-03-01/network/publicipprefixes.go | 6 + .../network/resourcenavigationlinks.go | 1 + .../2020-03-01/network/routefilterrules.go | 3 + .../mgmt/2020-03-01/network/routefilters.go | 6 + .../network/mgmt/2020-03-01/network/routes.go | 3 + .../mgmt/2020-03-01/network/routetables.go | 6 + .../mgmt/2020-03-01/network/securitygroups.go | 6 + .../network/securitypartnerproviders.go | 6 + .../mgmt/2020-03-01/network/securityrules.go | 3 + .../network/serviceassociationlinks.go | 1 + .../network/serviceendpointpolicies.go | 6 + .../serviceendpointpolicydefinitions.go | 3 + .../mgmt/2020-03-01/network/servicetags.go | 1 + .../mgmt/2020-03-01/network/subnets.go | 3 + .../network/mgmt/2020-03-01/network/usages.go | 2 + .../2020-03-01/network/virtualappliances.go | 6 + .../network/virtualhubroutetablev2s.go | 3 + .../mgmt/2020-03-01/network/virtualhubs.go | 6 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 7 + .../network/virtualnetworkpeerings.go | 3 + .../2020-03-01/network/virtualnetworks.go | 9 + .../2020-03-01/network/virtualnetworktaps.go | 6 + .../network/virtualrouterpeerings.go | 3 + .../mgmt/2020-03-01/network/virtualrouters.go | 5 + .../mgmt/2020-03-01/network/virtualwans.go | 6 + .../mgmt/2020-03-01/network/vpnconnections.go | 3 + .../mgmt/2020-03-01/network/vpngateways.go | 6 + .../2020-03-01/network/vpnlinkconnections.go | 2 + .../network/vpnserverconfigurations.go | 6 + .../network/vpnsitelinkconnections.go | 1 + .../mgmt/2020-03-01/network/vpnsitelinks.go | 3 + .../mgmt/2020-03-01/network/vpnsites.go | 6 + .../mgmt/2020-03-01/network/watchers.go | 6 + .../network/webapplicationfirewallpolicies.go | 6 + .../2020-04-01/network/applicationgateways.go | 14 + .../network/applicationsecuritygroups.go | 6 + .../network/availabledelegations.go | 2 + .../network/availableendpointservices.go | 2 + .../network/availableprivateendpointtypes.go | 4 + .../availableresourcegroupdelegations.go | 2 + .../network/availableservicealiases.go | 4 + .../network/azurefirewallfqdntags.go | 2 + .../mgmt/2020-04-01/network/azurefirewalls.go | 5 + .../mgmt/2020-04-01/network/bastionhosts.go | 5 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2020-04-01/network/client.go | 6 + .../2020-04-01/network/connectionmonitors.go | 3 + .../2020-04-01/network/ddoscustompolicies.go | 2 + .../2020-04-01/network/ddosprotectionplans.go | 6 + .../network/defaultsecurityrules.go | 3 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitconnections.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 8 + .../network/expressrouteconnections.go | 2 + .../expressroutecrossconnectionpeerings.go | 3 + .../network/expressroutecrossconnections.go | 6 + .../network/expressroutegateways.go | 3 + .../2020-04-01/network/expressroutelinks.go | 3 + .../2020-04-01/network/expressrouteports.go | 6 + .../network/expressrouteportslocations.go | 3 + .../network/expressrouteserviceproviders.go | 2 + .../2020-04-01/network/firewallpolicies.go | 5 + .../network/firewallpolicyrulegroups.go | 3 + .../mgmt/2020-04-01/network/flowlogs.go | 3 + .../mgmt/2020-04-01/network/hubroutetables.go | 3 + .../network/hubvirtualnetworkconnections.go | 3 + .../2020-04-01/network/inboundnatrules.go | 3 + .../network/interfaceipconfigurations.go | 3 + .../network/interfaceloadbalancers.go | 2 + .../2020-04-01/network/interfacesgroup.go | 14 + .../network/interfacetapconfigurations.go | 3 + .../mgmt/2020-04-01/network/ipallocations.go | 6 + .../mgmt/2020-04-01/network/ipgroups.go | 6 + .../loadbalancerbackendaddresspools.go | 3 + .../loadbalancerfrontendipconfigurations.go | 3 + .../network/loadbalancerloadbalancingrules.go | 3 + .../network/loadbalancernetworkinterfaces.go | 2 + .../network/loadbalanceroutboundrules.go | 3 + .../2020-04-01/network/loadbalancerprobes.go | 3 + .../mgmt/2020-04-01/network/loadbalancers.go | 6 + .../network/localnetworkgateways.go | 4 + .../mgmt/2020-04-01/network/natgateways.go | 6 + .../mgmt/2020-04-01/network/operations.go | 2 + .../mgmt/2020-04-01/network/p2svpngateways.go | 6 + .../mgmt/2020-04-01/network/packetcaptures.go | 2 + .../peerexpressroutecircuitconnections.go | 3 + .../network/privatednszonegroups.go | 3 + .../2020-04-01/network/privateendpoints.go | 5 + .../2020-04-01/network/privatelinkservices.go | 13 + .../mgmt/2020-04-01/network/profiles.go | 7 + .../2020-04-01/network/publicipaddresses.go | 11 + .../2020-04-01/network/publicipprefixes.go | 6 + .../network/resourcenavigationlinks.go | 1 + .../2020-04-01/network/routefilterrules.go | 3 + .../mgmt/2020-04-01/network/routefilters.go | 6 + .../network/mgmt/2020-04-01/network/routes.go | 3 + .../mgmt/2020-04-01/network/routetables.go | 6 + .../mgmt/2020-04-01/network/securitygroups.go | 6 + .../network/securitypartnerproviders.go | 6 + .../mgmt/2020-04-01/network/securityrules.go | 3 + .../network/serviceassociationlinks.go | 1 + .../network/serviceendpointpolicies.go | 6 + .../serviceendpointpolicydefinitions.go | 3 + .../mgmt/2020-04-01/network/servicetags.go | 1 + .../mgmt/2020-04-01/network/subnets.go | 3 + .../network/mgmt/2020-04-01/network/usages.go | 2 + .../2020-04-01/network/virtualappliances.go | 6 + .../network/virtualhubroutetablev2s.go | 3 + .../mgmt/2020-04-01/network/virtualhubs.go | 6 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 7 + .../network/virtualnetworkpeerings.go | 3 + .../2020-04-01/network/virtualnetworks.go | 9 + .../2020-04-01/network/virtualnetworktaps.go | 6 + .../network/virtualrouterpeerings.go | 3 + .../mgmt/2020-04-01/network/virtualrouters.go | 5 + .../mgmt/2020-04-01/network/virtualwans.go | 6 + .../mgmt/2020-04-01/network/vpnconnections.go | 3 + .../mgmt/2020-04-01/network/vpngateways.go | 6 + .../2020-04-01/network/vpnlinkconnections.go | 2 + .../network/vpnserverconfigurations.go | 6 + .../network/vpnsitelinkconnections.go | 1 + .../mgmt/2020-04-01/network/vpnsitelinks.go | 3 + .../mgmt/2020-04-01/network/vpnsites.go | 6 + .../mgmt/2020-04-01/network/watchers.go | 6 + .../network/webapplicationfirewallpolicies.go | 6 + ...cationgatewayprivateendpointconnections.go | 3 + .../applicationgatewayprivatelinkresources.go | 2 + .../2020-05-01/network/applicationgateways.go | 14 + .../network/applicationsecuritygroups.go | 6 + .../network/availabledelegations.go | 2 + .../network/availableendpointservices.go | 2 + .../network/availableprivateendpointtypes.go | 4 + .../availableresourcegroupdelegations.go | 2 + .../network/availableservicealiases.go | 4 + .../network/azurefirewallfqdntags.go | 2 + .../mgmt/2020-05-01/network/azurefirewalls.go | 5 + .../mgmt/2020-05-01/network/bastionhosts.go | 5 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2020-05-01/network/client.go | 6 + .../2020-05-01/network/connectionmonitors.go | 3 + .../2020-05-01/network/ddoscustompolicies.go | 2 + .../2020-05-01/network/ddosprotectionplans.go | 6 + .../network/defaultsecurityrules.go | 3 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitconnections.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 8 + .../network/expressrouteconnections.go | 2 + .../expressroutecrossconnectionpeerings.go | 3 + .../network/expressroutecrossconnections.go | 6 + .../network/expressroutegateways.go | 3 + .../2020-05-01/network/expressroutelinks.go | 3 + .../2020-05-01/network/expressrouteports.go | 6 + .../network/expressrouteportslocations.go | 3 + .../network/expressrouteserviceproviders.go | 2 + .../2020-05-01/network/firewallpolicies.go | 5 + .../firewallpolicyrulecollectiongroups.go | 3 + .../mgmt/2020-05-01/network/flowlogs.go | 3 + .../mgmt/2020-05-01/network/hubroutetables.go | 3 + .../network/hubvirtualnetworkconnections.go | 3 + .../2020-05-01/network/inboundnatrules.go | 3 + .../network/interfaceipconfigurations.go | 3 + .../network/interfaceloadbalancers.go | 2 + .../2020-05-01/network/interfacesgroup.go | 14 + .../network/interfacetapconfigurations.go | 3 + .../mgmt/2020-05-01/network/ipallocations.go | 6 + .../mgmt/2020-05-01/network/ipgroups.go | 6 + .../loadbalancerbackendaddresspools.go | 3 + .../loadbalancerfrontendipconfigurations.go | 3 + .../network/loadbalancerloadbalancingrules.go | 3 + .../network/loadbalancernetworkinterfaces.go | 2 + .../network/loadbalanceroutboundrules.go | 3 + .../2020-05-01/network/loadbalancerprobes.go | 3 + .../mgmt/2020-05-01/network/loadbalancers.go | 6 + .../network/localnetworkgateways.go | 4 + .../mgmt/2020-05-01/network/natgateways.go | 6 + .../mgmt/2020-05-01/network/operations.go | 2 + .../mgmt/2020-05-01/network/p2svpngateways.go | 6 + .../mgmt/2020-05-01/network/packetcaptures.go | 2 + .../peerexpressroutecircuitconnections.go | 3 + .../network/privatednszonegroups.go | 3 + .../2020-05-01/network/privateendpoints.go | 5 + .../2020-05-01/network/privatelinkservices.go | 13 + .../mgmt/2020-05-01/network/profiles.go | 7 + .../2020-05-01/network/publicipaddresses.go | 11 + .../2020-05-01/network/publicipprefixes.go | 6 + .../network/resourcenavigationlinks.go | 1 + .../2020-05-01/network/routefilterrules.go | 3 + .../mgmt/2020-05-01/network/routefilters.go | 6 + .../network/mgmt/2020-05-01/network/routes.go | 3 + .../mgmt/2020-05-01/network/routetables.go | 6 + .../mgmt/2020-05-01/network/securitygroups.go | 6 + .../network/securitypartnerproviders.go | 6 + .../mgmt/2020-05-01/network/securityrules.go | 3 + .../network/serviceassociationlinks.go | 1 + .../network/serviceendpointpolicies.go | 6 + .../serviceendpointpolicydefinitions.go | 3 + .../mgmt/2020-05-01/network/servicetags.go | 1 + .../mgmt/2020-05-01/network/subnets.go | 3 + .../network/mgmt/2020-05-01/network/usages.go | 2 + .../2020-05-01/network/virtualappliances.go | 6 + .../network/virtualappliancesites.go | 3 + .../network/virtualapplianceskus.go | 3 + .../network/virtualhubbgpconnection.go | 1 + .../network/virtualhubbgpconnections.go | 2 + .../network/virtualhubipconfiguration.go | 3 + .../network/virtualhubroutetablev2s.go | 3 + .../mgmt/2020-05-01/network/virtualhubs.go | 6 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 7 + .../network/virtualnetworkpeerings.go | 3 + .../2020-05-01/network/virtualnetworks.go | 10 + .../2020-05-01/network/virtualnetworktaps.go | 6 + .../network/virtualrouterpeerings.go | 3 + .../mgmt/2020-05-01/network/virtualrouters.go | 5 + .../mgmt/2020-05-01/network/virtualwans.go | 6 + .../mgmt/2020-05-01/network/vpnconnections.go | 3 + .../mgmt/2020-05-01/network/vpngateways.go | 6 + .../2020-05-01/network/vpnlinkconnections.go | 2 + .../network/vpnserverconfigurations.go | 6 + .../network/vpnsitelinkconnections.go | 1 + .../mgmt/2020-05-01/network/vpnsitelinks.go | 3 + .../mgmt/2020-05-01/network/vpnsites.go | 6 + .../mgmt/2020-05-01/network/watchers.go | 6 + .../network/webapplicationfirewallpolicies.go | 6 + ...cationgatewayprivateendpointconnections.go | 3 + .../applicationgatewayprivatelinkresources.go | 2 + .../2020-06-01/network/applicationgateways.go | 14 + .../network/applicationsecuritygroups.go | 6 + .../network/availabledelegations.go | 2 + .../network/availableendpointservices.go | 2 + .../network/availableprivateendpointtypes.go | 4 + .../availableresourcegroupdelegations.go | 2 + .../network/availableservicealiases.go | 4 + .../network/azurefirewallfqdntags.go | 2 + .../mgmt/2020-06-01/network/azurefirewalls.go | 5 + .../mgmt/2020-06-01/network/bastionhosts.go | 5 + .../network/bgpservicecommunities.go | 2 + .../network/mgmt/2020-06-01/network/client.go | 6 + .../2020-06-01/network/connectionmonitors.go | 3 + .../2020-06-01/network/customipprefixes.go | 6 + .../2020-06-01/network/ddoscustompolicies.go | 2 + .../2020-06-01/network/ddosprotectionplans.go | 6 + .../network/defaultsecurityrules.go | 3 + .../2020-06-01/network/dscpconfiguration.go | 5 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitconnections.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 8 + .../network/expressrouteconnections.go | 2 + .../expressroutecrossconnectionpeerings.go | 3 + .../network/expressroutecrossconnections.go | 6 + .../network/expressroutegateways.go | 3 + .../2020-06-01/network/expressroutelinks.go | 3 + .../2020-06-01/network/expressrouteports.go | 7 + .../network/expressrouteportslocations.go | 3 + .../network/expressrouteserviceproviders.go | 2 + .../2020-06-01/network/firewallpolicies.go | 5 + .../firewallpolicyrulecollectiongroups.go | 3 + .../mgmt/2020-06-01/network/flowlogs.go | 4 + .../mgmt/2020-06-01/network/hubroutetables.go | 3 + .../network/hubvirtualnetworkconnections.go | 3 + .../2020-06-01/network/inboundnatrules.go | 3 + .../network/interfaceipconfigurations.go | 3 + .../network/interfaceloadbalancers.go | 2 + .../2020-06-01/network/interfacesgroup.go | 14 + .../network/interfacetapconfigurations.go | 3 + .../mgmt/2020-06-01/network/ipallocations.go | 6 + .../mgmt/2020-06-01/network/ipgroups.go | 6 + .../loadbalancerbackendaddresspools.go | 3 + .../loadbalancerfrontendipconfigurations.go | 3 + .../network/loadbalancerloadbalancingrules.go | 3 + .../network/loadbalancernetworkinterfaces.go | 2 + .../network/loadbalanceroutboundrules.go | 3 + .../2020-06-01/network/loadbalancerprobes.go | 3 + .../mgmt/2020-06-01/network/loadbalancers.go | 6 + .../network/localnetworkgateways.go | 4 + .../mgmt/2020-06-01/network/natgateways.go | 6 + .../mgmt/2020-06-01/network/operations.go | 2 + .../mgmt/2020-06-01/network/p2svpngateways.go | 5 + .../mgmt/2020-06-01/network/packetcaptures.go | 2 + .../peerexpressroutecircuitconnections.go | 3 + .../network/privatednszonegroups.go | 3 + .../2020-06-01/network/privateendpoints.go | 5 + .../2020-06-01/network/privatelinkservices.go | 13 + .../mgmt/2020-06-01/network/profiles.go | 7 + .../2020-06-01/network/publicipaddresses.go | 11 + .../2020-06-01/network/publicipprefixes.go | 6 + .../network/resourcenavigationlinks.go | 1 + .../2020-06-01/network/routefilterrules.go | 3 + .../mgmt/2020-06-01/network/routefilters.go | 6 + .../network/mgmt/2020-06-01/network/routes.go | 3 + .../mgmt/2020-06-01/network/routetables.go | 6 + .../mgmt/2020-06-01/network/securitygroups.go | 6 + .../network/securitypartnerproviders.go | 6 + .../mgmt/2020-06-01/network/securityrules.go | 3 + .../network/serviceassociationlinks.go | 1 + .../network/serviceendpointpolicies.go | 6 + .../serviceendpointpolicydefinitions.go | 3 + .../mgmt/2020-06-01/network/servicetags.go | 1 + .../mgmt/2020-06-01/network/subnets.go | 3 + .../network/mgmt/2020-06-01/network/usages.go | 2 + .../2020-06-01/network/virtualappliances.go | 6 + .../network/virtualappliancesites.go | 3 + .../network/virtualapplianceskus.go | 3 + .../network/virtualhubbgpconnection.go | 1 + .../network/virtualhubbgpconnections.go | 2 + .../network/virtualhubipconfiguration.go | 3 + .../network/virtualhubroutetablev2s.go | 3 + .../mgmt/2020-06-01/network/virtualhubs.go | 6 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 7 + .../network/virtualnetworkpeerings.go | 3 + .../2020-06-01/network/virtualnetworks.go | 9 + .../2020-06-01/network/virtualnetworktaps.go | 6 + .../network/virtualrouterpeerings.go | 3 + .../mgmt/2020-06-01/network/virtualrouters.go | 5 + .../mgmt/2020-06-01/network/virtualwans.go | 6 + .../mgmt/2020-06-01/network/vpnconnections.go | 3 + .../mgmt/2020-06-01/network/vpngateways.go | 5 + .../2020-06-01/network/vpnlinkconnections.go | 2 + .../network/vpnserverconfigurations.go | 6 + .../network/vpnsitelinkconnections.go | 1 + .../mgmt/2020-06-01/network/vpnsitelinks.go | 3 + .../mgmt/2020-06-01/network/vpnsites.go | 6 + .../mgmt/2020-06-01/network/watchers.go | 6 + .../network/webapplicationfirewallpolicies.go | 6 + .../2014-09-01/notificationhubs/namespaces.go | 14 + .../notificationhubs/notificationhubs.go | 13 + .../2016-03-01/notificationhubs/namespaces.go | 15 + .../notificationhubs/notificationhubs.go | 14 + .../2017-04-01/notificationhubs/namespaces.go | 15 + .../notificationhubs/notificationhubs.go | 16 + .../2017-04-01/notificationhubs/operations.go | 2 + .../operationalinsights/operations.go | 1 + .../operationalinsights/savedsearches.go | 4 + .../operationalinsights/storageinsights.go | 5 + .../operationalinsights/workspaces.go | 8 + .../availableservicetiers.go | 1 + .../operationalinsights/clusters.go | 6 + .../operationalinsights/dataexports.go | 4 + .../operationalinsights/datasources.go | 5 + .../operationalinsights/deletedworkspaces.go | 2 + .../operationalinsights/gateways.go | 1 + .../operationalinsights/intelligencepacks.go | 3 + .../operationalinsights/linkedservices.go | 2 + .../linkedstorageaccounts.go | 4 + .../operationalinsights/managementgroups.go | 1 + .../operationalinsights/operations.go | 2 + .../operationalinsights/operationstatuses.go | 1 + .../operationalinsights/savedsearches.go | 4 + .../2020-08-01/operationalinsights/schema.go | 1 + .../operationalinsights/sharedkeys.go | 2 + .../storageinsightconfigs.go | 5 + .../2020-08-01/operationalinsights/tables.go | 3 + .../2020-08-01/operationalinsights/usages.go | 1 + .../operationalinsights/workspacepurge.go | 2 + .../operationalinsights/workspaces.go | 4 + .../operationalinsights/clusters.go | 6 + .../operationalinsights/deletedworkspaces.go | 2 + .../operationalinsights/operations.go | 2 + .../operationalinsights/workspaces.go | 4 + .../v1/operationalinsights/metadata.go | 2 + .../v1/operationalinsights/query.go | 1 + .../peering/mgmt/2020-04-01/peering/client.go | 1 + .../mgmt/2020-04-01/peering/legacypeerings.go | 2 + .../mgmt/2020-04-01/peering/locations.go | 2 + .../mgmt/2020-04-01/peering/operations.go | 2 + .../mgmt/2020-04-01/peering/peerasns.go | 5 + .../mgmt/2020-04-01/peering/peerings.go | 8 + .../mgmt/2020-04-01/peering/prefixes.go | 5 + .../mgmt/2020-04-01/peering/receivedroutes.go | 2 + .../mgmt/2020-04-01/peering/registeredasns.go | 5 + .../2020-04-01/peering/registeredprefixes.go | 5 + .../2020-04-01/peering/servicecountries.go | 2 + .../2020-04-01/peering/servicelocations.go | 2 + .../2020-04-01/peering/serviceproviders.go | 2 + .../mgmt/2020-04-01/peering/services.go | 8 + .../2020-10-01/peering/cdnpeeringprefixes.go | 2 + .../peering/mgmt/2020-10-01/peering/client.go | 1 + .../mgmt/2020-10-01/peering/legacypeerings.go | 2 + .../mgmt/2020-10-01/peering/locations.go | 2 + .../mgmt/2020-10-01/peering/operations.go | 2 + .../mgmt/2020-10-01/peering/peerasns.go | 5 + .../mgmt/2020-10-01/peering/peerings.go | 8 + .../mgmt/2020-10-01/peering/prefixes.go | 5 + .../mgmt/2020-10-01/peering/receivedroutes.go | 2 + .../mgmt/2020-10-01/peering/registeredasns.go | 5 + .../2020-10-01/peering/registeredprefixes.go | 5 + .../2020-10-01/peering/servicecountries.go | 2 + .../2020-10-01/peering/servicelocations.go | 2 + .../2020-10-01/peering/serviceproviders.go | 2 + .../mgmt/2020-10-01/peering/services.go | 8 + .../personalizer/v1.0/personalizer/client.go | 1 + .../v1.0/personalizer/evaluations.go | 4 + .../personalizer/v1.0/personalizer/events.go | 2 + .../personalizer/v1.0/personalizer/log.go | 2 + .../personalizer/v1.0/personalizer/model.go | 3 + .../personalizer/v1.0/personalizer/policy.go | 3 + .../v1.0/personalizer/serviceconfiguration.go | 2 + .../2018-04-04/policyinsights/operations.go | 1 + .../2018-04-04/policyinsights/policyevents.go | 9 + .../2018-04-04/policyinsights/policystates.go | 17 + .../postgresql/checknameavailability.go | 1 + .../2017-12-01/postgresql/configurations.go | 2 + .../mgmt/2017-12-01/postgresql/databases.go | 2 + .../2017-12-01/postgresql/firewallrules.go | 2 + .../locationbasedperformancetier.go | 1 + .../mgmt/2017-12-01/postgresql/logfiles.go | 1 + .../mgmt/2017-12-01/postgresql/operations.go | 1 + .../mgmt/2017-12-01/postgresql/replicas.go | 1 + .../postgresql/serveradministrators.go | 2 + .../mgmt/2017-12-01/postgresql/servers.go | 3 + .../postgresql/serversecurityalertpolicies.go | 1 + .../postgresql/virtualnetworkrules.go | 3 + .../postgresql/checknameavailability.go | 1 + .../2020-01-01/postgresql/configurations.go | 2 + .../mgmt/2020-01-01/postgresql/databases.go | 2 + .../2020-01-01/postgresql/firewallrules.go | 2 + .../locationbasedperformancetier.go | 1 + .../mgmt/2020-01-01/postgresql/logfiles.go | 1 + .../mgmt/2020-01-01/postgresql/operations.go | 1 + .../postgresql/privateendpointconnections.go | 3 + .../postgresql/privatelinkresources.go | 3 + .../mgmt/2020-01-01/postgresql/replicas.go | 1 + .../postgresql/serveradministrators.go | 2 + .../mgmt/2020-01-01/postgresql/serverkeys.go | 3 + .../mgmt/2020-01-01/postgresql/servers.go | 3 + .../postgresql/serversecurityalertpolicies.go | 1 + .../postgresql/virtualnetworkrules.go | 3 + .../2017-10-01/powerbidedicated/capacities.go | 6 + .../2017-10-01/powerbidedicated/operations.go | 2 + .../mgmt/2016-01-29/powerbiembedded/client.go | 1 + .../powerbiembedded/workspacecollections.go | 9 + .../2016-01-29/powerbiembedded/workspaces.go | 1 + .../addons/canonicalsupportplantypes.go | 1 + .../mgmt/2017-05-15/addons/operations.go | 1 + .../2017-05-15/addons/supportplantypes.go | 1 + .../mgmt/2018-03-01/addons/operations.go | 1 + .../2018-03-01/addons/supportplantypes.go | 2 + .../2016-07-12-preview/advisor/operations.go | 2 + .../advisor/recommendations.go | 5 + .../advisor/suppressions.go | 4 + .../alertsmanagement/alerts.go | 6 + .../alertsmanagement/operations.go | 2 + .../alertsmanagement/smartgroups.go | 4 + .../alertsmanagement/actionrules.go | 8 + .../alertsmanagement/alerts.go | 7 + .../alertsmanagement/operations.go | 2 + .../alertsmanagement/smartgroups.go | 5 + .../alertsmanagement/actionrules.go | 8 + .../alertsmanagement/alerts.go | 7 + .../alertsmanagement/operations.go | 2 + .../smartdetectoralertrules.go | 8 + .../alertsmanagement/smartgroups.go | 5 + .../ctrl/2017-03-01/apimanagement/api.go | 6 + .../2017-03-01/apimanagement/apiexport.go | 1 + .../2017-03-01/apimanagement/apioperation.go | 6 + .../apimanagement/apioperationpolicy.go | 4 + .../2017-03-01/apimanagement/apipolicy.go | 4 + .../2017-03-01/apimanagement/apiproduct.go | 2 + .../2017-03-01/apimanagement/apischema.go | 5 + .../apimanagement/authorizationserver.go | 6 + .../ctrl/2017-03-01/apimanagement/backend.go | 6 + .../2017-03-01/apimanagement/certificate.go | 5 + .../apimanagement/delegationsettings.go | 3 + .../2017-03-01/apimanagement/emailtemplate.go | 6 + .../ctrl/2017-03-01/apimanagement/group.go | 6 + .../2017-03-01/apimanagement/groupuser.go | 4 + .../apimanagement/identityprovider.go | 5 + .../ctrl/2017-03-01/apimanagement/logger.go | 6 + .../apimanagement/openidconnectprovider.go | 6 + .../ctrl/2017-03-01/apimanagement/policy.go | 4 + .../apimanagement/policysnippets.go | 1 + .../ctrl/2017-03-01/apimanagement/product.go | 6 + .../2017-03-01/apimanagement/productapi.go | 4 + .../2017-03-01/apimanagement/productgroup.go | 4 + .../2017-03-01/apimanagement/productpolicy.go | 4 + .../apimanagement/productsubscriptions.go | 2 + .../ctrl/2017-03-01/apimanagement/property.go | 6 + .../apimanagement/quotabycounterkeys.go | 2 + .../apimanagement/quotabyperiodkeys.go | 2 + .../ctrl/2017-03-01/apimanagement/regions.go | 1 + .../ctrl/2017-03-01/apimanagement/reports.go | 15 + .../apimanagement/signinsettings.go | 3 + .../apimanagement/signupsettings.go | 3 + .../2017-03-01/apimanagement/subscription.go | 8 + .../2017-03-01/apimanagement/tenantaccess.go | 4 + .../apimanagement/tenantaccessgit.go | 3 + .../apimanagement/tenantconfiguration.go | 1 + .../ctrl/2017-03-01/apimanagement/user.go | 8 + .../2017-03-01/apimanagement/usergroup.go | 2 + .../apimanagement/useridentities.go | 1 + .../apimanagement/usersubscription.go | 2 + .../2018-06-01-preview/apimanagement/api.go | 8 + .../apimanagement/apidiagnostic.go | 7 + .../apimanagement/apiexport.go | 1 + .../apimanagement/apiissue.go | 7 + .../apimanagement/apiissueattachment.go | 6 + .../apimanagement/apiissuecomment.go | 6 + .../apimanagement/apioperation.go | 7 + .../apimanagement/apioperationpolicy.go | 5 + .../apimanagement/apipolicy.go | 5 + .../apimanagement/apiproduct.go | 2 + .../apimanagement/apirelease.go | 7 + .../apimanagement/apirevisions.go | 2 + .../apimanagement/apischema.go | 6 + .../apimanagement/apiversionset.go | 7 + .../apimanagement/authorizationserver.go | 7 + .../apimanagement/backend.go | 8 + .../2018-06-01-preview/apimanagement/cache.go | 7 + .../apimanagement/certificate.go | 6 + .../apimanagement/delegationsettings.go | 4 + .../apimanagement/diagnostic.go | 7 + .../apimanagement/emailtemplate.go | 7 + .../2018-06-01-preview/apimanagement/group.go | 7 + .../apimanagement/groupuser.go | 5 + .../apimanagement/identityprovider.go | 7 + .../2018-06-01-preview/apimanagement/issue.go | 3 + .../apimanagement/logger.go | 7 + .../apimanagement/networkstatus.go | 2 + .../apimanagement/notification.go | 4 + .../notificationrecipientemail.go | 4 + .../notificationrecipientuser.go | 4 + .../apimanagement/openidconnectprovider.go | 7 + .../apimanagement/operation.go | 2 + .../apimanagement/operations.go | 2 + .../apimanagement/policy.go | 5 + .../apimanagement/policysnippets.go | 1 + .../apimanagement/product.go | 9 + .../apimanagement/productapi.go | 5 + .../apimanagement/productgroup.go | 5 + .../apimanagement/productpolicy.go | 5 + .../apimanagement/productsubscriptions.go | 2 + .../apimanagement/property.go | 7 + .../apimanagement/quotabycounterkeys.go | 2 + .../apimanagement/quotabyperiodkeys.go | 2 + .../apimanagement/region.go | 2 + .../apimanagement/reports.go | 15 + .../apimanagement/service.go | 8 + .../apimanagement/serviceskus.go | 2 + .../apimanagement/signinsettings.go | 4 + .../apimanagement/signupsettings.go | 4 + .../apimanagement/subscription.go | 9 + .../2018-06-01-preview/apimanagement/tag.go | 25 ++ .../apimanagement/tagdescription.go | 6 + .../apimanagement/tagresource.go | 2 + .../apimanagement/tenantaccess.go | 5 + .../apimanagement/tenantaccessgit.go | 3 + .../apimanagement/tenantconfiguration.go | 1 + .../2018-06-01-preview/apimanagement/user.go | 9 + .../apimanagement/userconfirmationpassword.go | 1 + .../apimanagement/usergroup.go | 2 + .../apimanagement/useridentities.go | 2 + .../apimanagement/usersubscription.go | 2 + .../2019-12-01-preview/apimanagement/api.go | 8 + .../apimanagement/apidiagnostic.go | 7 + .../apimanagement/apiexport.go | 1 + .../apimanagement/apiissue.go | 7 + .../apimanagement/apiissueattachment.go | 6 + .../apimanagement/apiissuecomment.go | 6 + .../apimanagement/apioperation.go | 7 + .../apimanagement/apioperationpolicy.go | 5 + .../apimanagement/apipolicy.go | 5 + .../apimanagement/apiproduct.go | 2 + .../apimanagement/apirelease.go | 7 + .../apimanagement/apirevision.go | 2 + .../apimanagement/apischema.go | 5 + .../apimanagement/apitagdescription.go | 6 + .../apimanagement/apiversionset.go | 7 + .../apimanagement/authorizationserver.go | 8 + .../apimanagement/backend.go | 8 + .../2019-12-01-preview/apimanagement/cache.go | 7 + .../apimanagement/certificate.go | 6 + .../apimanagement/delegationsettings.go | 5 + .../apimanagement/diagnostic.go | 7 + .../apimanagement/emailtemplate.go | 7 + .../apimanagement/gateway.go | 10 + .../apimanagement/gatewayapi.go | 5 + .../gatewayhostnameconfiguration.go | 6 + .../2019-12-01-preview/apimanagement/group.go | 7 + .../apimanagement/groupuser.go | 5 + .../apimanagement/identityprovider.go | 8 + .../2019-12-01-preview/apimanagement/issue.go | 3 + .../apimanagement/logger.go | 7 + .../apimanagement/namedvalue.go | 6 + .../apimanagement/networkstatus.go | 2 + .../apimanagement/notification.go | 4 + .../notificationrecipientemail.go | 4 + .../notificationrecipientuser.go | 4 + .../apimanagement/openidconnectprovider.go | 8 + .../apimanagement/operation.go | 2 + .../apimanagement/operations.go | 2 + .../apimanagement/policy.go | 5 + .../apimanagement/policydescription.go | 1 + .../apimanagement/product.go | 9 + .../apimanagement/productapi.go | 5 + .../apimanagement/productgroup.go | 5 + .../apimanagement/productpolicy.go | 5 + .../apimanagement/productsubscriptions.go | 2 + .../apimanagement/quotabycounterkeys.go | 2 + .../apimanagement/quotabyperiodkeys.go | 2 + .../apimanagement/region.go | 2 + .../apimanagement/reports.go | 15 + .../apimanagement/service.go | 7 + .../apimanagement/serviceskus.go | 2 + .../apimanagement/signinsettings.go | 4 + .../apimanagement/signupsettings.go | 4 + .../apimanagement/subscription.go | 10 + .../2019-12-01-preview/apimanagement/tag.go | 25 ++ .../apimanagement/tagresource.go | 2 + .../apimanagement/tenantaccess.go | 6 + .../apimanagement/tenantaccessgit.go | 4 + .../apimanagement/tenantconfiguration.go | 1 + .../2019-12-01-preview/apimanagement/user.go | 9 + .../apimanagement/userconfirmationpassword.go | 1 + .../apimanagement/usergroup.go | 2 + .../apimanagement/useridentities.go | 2 + .../apimanagement/usersubscription.go | 2 + .../appconfiguration/configurationstores.go | 9 + .../appconfiguration/operations.go | 3 + .../appconfiguration/configurationstores.go | 9 + .../appconfiguration/operations.go | 3 + .../privateendpointconnections.go | 3 + .../appconfiguration/privatelinkresources.go | 3 + .../appconfiguration/configurationstores.go | 8 + .../appconfiguration/keyvalues.go | 4 + .../appconfiguration/operations.go | 3 + .../privateendpointconnections.go | 3 + .../appconfiguration/privatelinkresources.go | 3 + .../preview/appinsights/v1/insights/events.go | 3 + .../appinsights/v1/insights/metadata.go | 2 + .../appinsights/v1/insights/metrics.go | 3 + .../preview/appinsights/v1/insights/query.go | 1 + .../2019-05-01-preview/appplatform/apps.go | 5 + .../appplatform/bindings.go | 6 + .../appplatform/certificates.go | 5 + .../appplatform/customdomains.go | 7 + .../appplatform/deployments.go | 7 + .../appplatform/operations.go | 2 + .../appplatform/runtimeversions.go | 1 + .../appplatform/services.go | 10 + .../2019-05-01-preview/appplatform/sku.go | 2 + .../authorization/classicadministrators.go | 2 + .../authorization/globaladministrator.go | 1 + .../authorization/permissions.go | 4 + .../provideroperationsmetadata.go | 3 + .../authorization/roleassignments.go | 14 + .../authorization/roledefinitions.go | 6 + .../authorization/classicadministrators.go | 2 + .../authorization/globaladministrator.go | 1 + .../authorization/permissions.go | 4 + .../provideroperationsmetadata.go | 3 + .../authorization/roleassignments.go | 14 + .../authorization/roledefinitions.go | 6 + .../authorization/classicadministrators.go | 2 + .../authorization/denyassignments.go | 10 + .../authorization/globaladministrator.go | 1 + .../authorization/permissions.go | 4 + .../provideroperationsmetadata.go | 3 + .../authorization/roleassignments.go | 14 + .../authorization/roledefinitions.go | 6 + .../authorization/classicadministrators.go | 2 + .../authorization/denyassignments.go | 10 + .../authorization/globaladministrator.go | 1 + .../authorization/permissions.go | 4 + .../provideroperationsmetadata.go | 3 + .../authorization/roleassignments.go | 14 + .../authorization/roledefinitions.go | 6 + .../2020-06-30-preview/automanage/accounts.go | 6 + .../configurationprofileassignments.go | 4 + .../configurationprofilepreferences.go | 6 + .../automanage/operations.go | 1 + .../2017-05-15-preview/automation/account.go | 8 + .../2017-05-15-preview/automation/activity.go | 3 + .../agentregistrationinformation.go | 2 + .../automation/certificate.go | 6 + .../automation/connection.go | 6 + .../automation/connectiontype.go | 5 + .../automation/credential.go | 6 + .../automation/dsccompilationjob.go | 5 + .../automation/dsccompilationjobstream.go | 1 + .../automation/dscconfiguration.go | 7 + .../2017-05-15-preview/automation/dscnode.go | 5 + .../automation/dscnodeconfiguration.go | 5 + .../2017-05-15-preview/automation/fields.go | 1 + .../automation/hybridrunbookworkergroup.go | 5 + .../mgmt/2017-05-15-preview/automation/job.go | 9 + .../automation/jobschedule.go | 5 + .../automation/jobstream.go | 3 + .../2017-05-15-preview/automation/keys.go | 1 + .../automation/linkedworkspace.go | 1 + .../2017-05-15-preview/automation/module.go | 6 + .../automation/nodereports.go | 4 + .../automation/objectdatatypes.go | 2 + .../automation/operations.go | 1 + .../2017-05-15-preview/automation/runbook.go | 7 + .../automation/runbookdraft.go | 3 + .../2017-05-15-preview/automation/schedule.go | 6 + .../softwareupdateconfigurationmachineruns.go | 2 + .../softwareupdateconfigurationruns.go | 2 + .../softwareupdateconfigurations.go | 4 + .../automation/sourcecontrol.go | 6 + .../automation/sourcecontrolsyncjob.go | 4 + .../automation/sourcecontrolsyncjobstreams.go | 3 + .../automation/statistics.go | 1 + .../2017-05-15-preview/automation/testjob.go | 5 + .../automation/testjobstreams.go | 3 + .../2017-05-15-preview/automation/usages.go | 1 + .../2017-05-15-preview/automation/variable.go | 6 + .../2017-05-15-preview/automation/webhook.go | 7 + .../2018-01-15-preview/automation/account.go | 8 + .../2018-01-15-preview/automation/activity.go | 3 + .../agentregistrationinformation.go | 2 + .../automation/certificate.go | 6 + .../automation/connection.go | 6 + .../automation/connectiontype.go | 5 + .../automation/credential.go | 6 + .../automation/dsccompilationjob.go | 4 + .../automation/dsccompilationjobstream.go | 1 + .../automation/dscconfiguration.go | 7 + .../2018-01-15-preview/automation/dscnode.go | 5 + .../automation/dscnodeconfiguration.go | 4 + .../2018-01-15-preview/automation/fields.go | 1 + .../automation/hybridrunbookworkergroup.go | 5 + .../mgmt/2018-01-15-preview/automation/job.go | 9 + .../automation/jobschedule.go | 5 + .../automation/jobstream.go | 3 + .../2018-01-15-preview/automation/keys.go | 1 + .../automation/linkedworkspace.go | 1 + .../2018-01-15-preview/automation/module.go | 6 + .../automation/nodecountinformation.go | 1 + .../automation/nodereports.go | 4 + .../automation/objectdatatypes.go | 2 + .../automation/operations.go | 1 + .../2018-01-15-preview/automation/runbook.go | 7 + .../automation/runbookdraft.go | 3 + .../2018-01-15-preview/automation/schedule.go | 6 + .../softwareupdateconfigurationmachineruns.go | 2 + .../softwareupdateconfigurationruns.go | 2 + .../softwareupdateconfigurations.go | 4 + .../automation/sourcecontrol.go | 6 + .../automation/sourcecontrolsyncjob.go | 4 + .../automation/sourcecontrolsyncjobstreams.go | 3 + .../automation/statistics.go | 1 + .../2018-01-15-preview/automation/testjob.go | 5 + .../automation/testjobstreams.go | 3 + .../2018-01-15-preview/automation/usages.go | 1 + .../2018-01-15-preview/automation/variable.go | 6 + .../2018-01-15-preview/automation/watcher.go | 8 + .../2018-01-15-preview/automation/webhook.go | 7 + .../2018-06-30-preview/automation/account.go | 8 + .../2018-06-30-preview/automation/activity.go | 3 + .../agentregistrationinformation.go | 2 + .../automation/certificate.go | 6 + .../automation/connection.go | 6 + .../automation/connectiontype.go | 5 + .../automation/credential.go | 6 + .../automation/dsccompilationjob.go | 4 + .../automation/dsccompilationjobstream.go | 1 + .../automation/dscconfiguration.go | 7 + .../2018-06-30-preview/automation/dscnode.go | 5 + .../automation/dscnodeconfiguration.go | 4 + .../2018-06-30-preview/automation/fields.go | 1 + .../automation/hybridrunbookworkergroup.go | 5 + .../mgmt/2018-06-30-preview/automation/job.go | 9 + .../automation/jobschedule.go | 5 + .../automation/jobstream.go | 3 + .../2018-06-30-preview/automation/keys.go | 1 + .../automation/linkedworkspace.go | 1 + .../2018-06-30-preview/automation/module.go | 6 + .../automation/nodecountinformation.go | 1 + .../automation/nodereports.go | 4 + .../automation/objectdatatypes.go | 2 + .../automation/operations.go | 1 + .../automation/python2package.go | 6 + .../2018-06-30-preview/automation/runbook.go | 7 + .../automation/runbookdraft.go | 3 + .../2018-06-30-preview/automation/schedule.go | 6 + .../softwareupdateconfigurationmachineruns.go | 2 + .../softwareupdateconfigurationruns.go | 2 + .../softwareupdateconfigurations.go | 4 + .../automation/sourcecontrol.go | 6 + .../automation/sourcecontrolsyncjob.go | 4 + .../automation/sourcecontrolsyncjobstreams.go | 3 + .../automation/statistics.go | 1 + .../2018-06-30-preview/automation/testjob.go | 5 + .../automation/testjobstreams.go | 3 + .../2018-06-30-preview/automation/usages.go | 1 + .../2018-06-30-preview/automation/variable.go | 6 + .../2018-06-30-preview/automation/watcher.go | 8 + .../2018-06-30-preview/automation/webhook.go | 7 + .../mgmt/2019-08-09-preview/avs/clusters.go | 3 + .../mgmt/2019-08-09-preview/avs/locations.go | 2 + .../mgmt/2019-08-09-preview/avs/operations.go | 2 + .../2019-08-09-preview/avs/privateclouds.go | 6 + .../2020-07-17-preview/avs/authorizations.go | 3 + .../mgmt/2020-07-17-preview/avs/clusters.go | 3 + .../avs/globalreachconnections.go | 3 + .../avs/hcxenterprisesites.go | 5 + .../mgmt/2020-07-17-preview/avs/locations.go | 2 + .../mgmt/2020-07-17-preview/avs/operations.go | 2 + .../2020-07-17-preview/avs/privateclouds.go | 6 + .../avs/workloadnetworks.go | 18 + .../azuredata/datacontrollers.go | 8 + .../azuredata/operations.go | 2 + .../azuredata/postgresinstances.go | 8 + .../azuredata/sqlmanagedinstances.go | 8 + .../azuredata/sqlserverinstances.go | 8 + .../azuredata/sqlserverregistrations.go | 8 + .../azuredata/sqlservers.go | 5 + .../azuredata/datacontrollers.go | 8 + .../azuredata/operations.go | 2 + .../azuredata/postgresinstances.go | 8 + .../azuredata/sqlmanagedinstances.go | 8 + .../azuredata/sqlserverinstances.go | 8 + .../azuredata/sqlserverregistrations.go | 8 + .../azuredata/sqlservers.go | 5 + .../azurestackhci/clusters.go | 8 + .../azurestackhci/operations.go | 1 + .../azurebaremetalinstances.go | 6 + .../baremetalinfrastructure/operations.go | 1 + .../2017-09-01-preview/batchai/clusters.go | 8 + .../2017-09-01-preview/batchai/fileservers.go | 5 + .../mgmt/2017-09-01-preview/batchai/jobs.go | 9 + .../2017-09-01-preview/batchai/operations.go | 2 + .../2017-02-27-preview/billing/invoices.go | 4 + .../2017-02-27-preview/billing/operations.go | 2 + .../2017-04-24-preview/billing/invoices.go | 4 + .../2017-04-24-preview/billing/operations.go | 2 + .../2017-04-24-preview/billing/periods.go | 3 + .../billing/enrollmentaccounts.go | 3 + .../2018-03-01-preview/billing/invoices.go | 4 + .../2018-03-01-preview/billing/operations.go | 2 + .../2018-03-01-preview/billing/periods.go | 3 + .../2018-11-01-preview/billing/accounts.go | 3 + .../2018-11-01-preview/billing/addresses.go | 1 + .../2018-11-01-preview/billing/agreements.go | 3 + .../billing/availablebalances.go | 1 + .../2018-11-01-preview/billing/customers.go | 3 + .../2018-11-01-preview/billing/departments.go | 3 + .../billing/enrollmentaccounts.go | 3 + .../2018-11-01-preview/billing/invoices.go | 5 + .../billing/invoicesections.go | 7 + .../billing/lineofcredits.go | 1 + .../2018-11-01-preview/billing/operations.go | 2 + .../billing/paymentmethods.go | 4 + .../2018-11-01-preview/billing/permissions.go | 4 + .../2018-11-01-preview/billing/policies.go | 2 + .../2018-11-01-preview/billing/products.go | 9 + .../2018-11-01-preview/billing/profiles.go | 3 + .../2018-11-01-preview/billing/property.go | 1 + .../billing/recipienttransfers.go | 5 + .../billing/roleassignments.go | 12 + .../billing/roledefinitions.go | 6 + .../billing/subscriptions.go | 11 + .../billing/transactions.go | 8 + .../2018-11-01-preview/billing/transfers.go | 5 + .../2020-05-01-preview/billing/accounts.go | 5 + .../2020-05-01-preview/billing/address.go | 1 + .../2020-05-01-preview/billing/agreements.go | 3 + .../billing/availablebalances.go | 1 + .../2020-05-01-preview/billing/customers.go | 5 + .../billing/enrollmentaccounts.go | 3 + .../billing/instructions.go | 4 + .../2020-05-01-preview/billing/invoices.go | 9 + .../billing/invoicesections.go | 3 + .../2020-05-01-preview/billing/operations.go | 2 + .../2020-05-01-preview/billing/periods.go | 3 + .../2020-05-01-preview/billing/permissions.go | 8 + .../2020-05-01-preview/billing/policies.go | 4 + .../2020-05-01-preview/billing/products.go | 12 + .../2020-05-01-preview/billing/profiles.go | 3 + .../2020-05-01-preview/billing/property.go | 2 + .../billing/roleassignments.go | 12 + .../billing/roledefinitions.go | 9 + .../billing/subscriptions.go | 11 + .../billing/transactions.go | 2 + .../blockchain/locations.go | 2 + .../blockchain/memberoperationresults.go | 1 + .../2018-06-01-preview/blockchain/members.go | 10 + .../blockchain/operations.go | 2 + .../2018-06-01-preview/blockchain/skus.go | 1 + .../blockchain/transactionnodes.go | 6 + .../2018-11-01-preview/blueprint/artifacts.go | 5 + .../blueprint/assignmentoperations.go | 3 + .../blueprint/assignments.go | 6 + .../blueprint/blueprints.go | 5 + .../blueprint/publishedartifacts.go | 3 + .../blueprint/publishedblueprints.go | 5 + .../2017-12-01/botservice/botconnection.go | 8 + .../mgmt/2017-12-01/botservice/bots.go | 9 + .../mgmt/2017-12-01/botservice/channels.go | 7 + .../mgmt/2017-12-01/botservice/operations.go | 2 + .../2018-07-12/botservice/botconnection.go | 8 + .../mgmt/2018-07-12/botservice/bots.go | 9 + .../mgmt/2018-07-12/botservice/channels.go | 7 + .../botservice/enterprisechannels.go | 4 + .../mgmt/2018-07-12/botservice/operations.go | 2 + .../cognitiveservices/accounts.go | 9 + .../v1.0/anomalydetector/client.go | 3 + .../v1.0/formrecognizer/client.go | 9 + .../v1.0/inkrecognizer/inkrecognizer.go | 1 + .../v1.0/visualsearch/images.go | 1 + .../translatortext/translation.go | 9 + .../v3.0/luis/authoring/apps.go | 24 ++ .../v3.0/luis/authoring/azureaccounts.go | 4 + .../v3.0/luis/authoring/examples.go | 4 + .../v3.0/luis/authoring/features.go | 8 + .../v3.0/luis/authoring/model.go | 110 +++++ .../v3.0/luis/authoring/pattern.go | 8 + .../v3.0/luis/authoring/settings.go | 2 + .../v3.0/luis/authoring/train.go | 2 + .../v3.0/luis/authoring/versions.go | 11 + .../customvision/training/client.go | 52 +++ .../2015-06-01-preview/commerce/ratecard.go | 1 + .../commerce/usageaggregates.go | 2 + .../communication/operations.go | 2 + .../communication/operationstatuses.go | 1 + .../communication/service.go | 10 + .../compute/availabilitysets.go | 8 + .../mgmt/2016-04-30-preview/compute/disks.go | 5 + .../mgmt/2016-04-30-preview/compute/images.go | 5 + .../2016-04-30-preview/compute/snapshots.go | 5 + .../mgmt/2016-04-30-preview/compute/usage.go | 2 + .../compute/virtualmachineextensionimages.go | 3 + .../compute/virtualmachineextensions.go | 1 + .../compute/virtualmachineimages.go | 5 + .../compute/virtualmachines.go | 8 + .../compute/virtualmachinescalesets.go | 8 + .../compute/virtualmachinescalesetvms.go | 4 + .../compute/virtualmachinesizes.go | 1 + .../confluent/marketplaceagreements.go | 3 + .../confluent/organization.go | 6 + .../confluent/organizationoperations.go | 2 + .../consumption/operations.go | 2 + .../consumption/usagedetails.go | 2 + .../2017-12-30-preview/consumption/budgets.go | 4 + .../consumption/operations.go | 2 + .../containerinstance/containergroups.go | 7 + .../containerinstance/containerlogs.go | 1 + .../containerinstance/containergroups.go | 7 + .../containerinstance/containerlogs.go | 1 + .../containerinstance/operations.go | 1 + .../containerinstance/containergroups.go | 7 + .../containerinstance/containergroupusage.go | 1 + .../containerinstance/containerlogs.go | 1 + .../containerinstance/operations.go | 1 + .../containerinstance/containergroups.go | 7 + .../containerinstance/containergroupusage.go | 1 + .../containerinstance/containerlogs.go | 1 + .../containerinstance/operations.go | 1 + .../containerinstance/startcontainer.go | 1 + .../containerregistry/registries.go | 11 + .../containerregistry/operations.go | 2 + .../containerregistry/registries.go | 9 + .../containerregistry/replications.go | 3 + .../containerregistry/webhooks.go | 7 + .../2018-02-01/containerregistry/builds.go | 4 + .../containerregistry/buildsteps.go | 5 + .../containerregistry/buildtasks.go | 4 + .../containerregistry/operations.go | 2 + .../containerregistry/registries.go | 11 + .../containerregistry/replications.go | 3 + .../2018-02-01/containerregistry/webhooks.go | 7 + .../containerregistry/agentpools.go | 4 + .../containerregistry/operations.go | 2 + .../containerregistry/registries.go | 10 + .../containerregistry/replications.go | 3 + .../containerregistry/runs.go | 4 + .../containerregistry/scopemaps.go | 3 + .../containerregistry/taskruns.go | 4 + .../containerregistry/tasks.go | 4 + .../containerregistry/tokens.go | 3 + .../containerregistry/webhooks.go | 7 + .../containerregistry/agentpools.go | 4 + .../containerregistry/exportpipelines.go | 3 + .../containerregistry/importpipelines.go | 3 + .../containerregistry/operations.go | 2 + .../containerregistry/pipelineruns.go | 3 + .../privateendpointconnections.go | 3 + .../containerregistry/registries.go | 12 + .../containerregistry/replications.go | 3 + .../containerregistry/runs.go | 4 + .../containerregistry/scopemaps.go | 3 + .../containerregistry/taskruns.go | 4 + .../containerregistry/tasks.go | 4 + .../containerregistry/tokens.go | 3 + .../containerregistry/webhooks.go | 7 + .../containerregistry/agentpools.go | 4 + .../containerregistry/connectedregistries.go | 3 + .../containerregistry/exportpipelines.go | 3 + .../containerregistry/importpipelines.go | 3 + .../containerregistry/operations.go | 2 + .../containerregistry/pipelineruns.go | 3 + .../privateendpointconnections.go | 3 + .../containerregistry/registries.go | 12 + .../containerregistry/replications.go | 3 + .../containerregistry/runs.go | 4 + .../containerregistry/scopemaps.go | 3 + .../containerregistry/taskruns.go | 4 + .../containerregistry/tasks.go | 4 + .../containerregistry/tokens.go | 3 + .../containerregistry/webhooks.go | 7 + .../2019-07/containerregistry/client.go | 20 + .../containerregistry/accesstokens.go | 2 + .../containerregistry/blob.go | 11 + .../containerregistry/manifests.go | 6 + .../containerregistry/refreshtokens.go | 1 + .../containerregistry/repository.go | 4 + .../containerregistry/tag.go | 4 + .../containerregistry/v2support.go | 1 + .../containerservice/containerservice.go | 2 + .../containerservice/containerservices.go | 6 + .../containerservice/managedclusters.go | 9 + .../openshiftmanagedclusters.go | 5 + .../containerservice/operations.go | 1 + .../containerservice/containerservices.go | 6 + .../containerservice/managedclusters.go | 9 + .../openshiftmanagedclusters.go | 5 + .../containerservice/operations.go | 1 + .../containerservice/agentpools.go | 3 + .../containerservice/containerservices.go | 6 + .../containerservice/managedclusters.go | 9 + .../openshiftmanagedclusters.go | 5 + .../containerservice/operations.go | 1 + .../containerservice/agentpools.go | 5 + .../containerservice/containerservices.go | 6 + .../containerservice/managedclusters.go | 9 + .../openshiftmanagedclusters.go | 5 + .../containerservice/operations.go | 1 + .../containerservice/agentpools.go | 5 + .../containerservice/containerservices.go | 6 + .../containerservice/managedclusters.go | 10 + .../openshiftmanagedclusters.go | 5 + .../containerservice/operations.go | 1 + .../documentdb/cassandraresources.go | 6 + .../documentdb/collection.go | 3 + .../documentdb/collectionpartition.go | 2 + .../documentdb/collectionpartitionregion.go | 1 + .../documentdb/collectionregion.go | 1 + .../2019-08-01-preview/documentdb/database.go | 3 + .../documentdb/databaseaccountregion.go | 1 + .../documentdb/databaseaccounts.go | 11 + .../documentdb/gremlinresources.go | 6 + .../documentdb/mongodbresources.go | 6 + .../documentdb/notebookworkspaces.go | 3 + .../documentdb/operations.go | 2 + .../documentdb/partitionkeyrangeid.go | 1 + .../documentdb/partitionkeyrangeidregion.go | 1 + .../documentdb/percentile.go | 1 + .../documentdb/percentilesourcetarget.go | 1 + .../documentdb/percentiletarget.go | 1 + .../documentdb/privateendpointconnections.go | 2 + .../documentdb/privatelinkresources.go | 2 + .../documentdb/sqlresources.go | 12 + .../documentdb/tableresources.go | 3 + .../documentdb/cassandraresources.go | 6 + .../documentdb/collection.go | 3 + .../documentdb/collectionpartition.go | 2 + .../documentdb/collectionpartitionregion.go | 1 + .../documentdb/collectionregion.go | 1 + .../2019-12-12-preview/documentdb/database.go | 3 + .../documentdb/databaseaccountregion.go | 1 + .../documentdb/databaseaccounts.go | 11 + .../documentdb/gremlinresources.go | 6 + .../documentdb/mongodbresources.go | 6 + .../documentdb/notebookworkspaces.go | 3 + .../documentdb/operations.go | 2 + .../documentdb/partitionkeyrangeid.go | 1 + .../documentdb/partitionkeyrangeidregion.go | 1 + .../documentdb/percentile.go | 1 + .../documentdb/percentilesourcetarget.go | 1 + .../documentdb/percentiletarget.go | 1 + .../documentdb/privateendpointconnections.go | 2 + .../documentdb/privatelinkresources.go | 2 + .../documentdb/sqlresources.go | 12 + .../documentdb/tableresources.go | 3 + .../documentdb/cassandraresources.go | 6 + .../documentdb/collection.go | 3 + .../documentdb/collectionpartition.go | 2 + .../documentdb/collectionpartitionregion.go | 1 + .../documentdb/collectionregion.go | 1 + .../2020-03-01-preview/documentdb/database.go | 3 + .../documentdb/databaseaccountregion.go | 1 + .../documentdb/databaseaccounts.go | 11 + .../documentdb/gremlinresources.go | 6 + .../documentdb/mongodbresources.go | 6 + .../documentdb/notebookworkspaces.go | 3 + .../documentdb/operations.go | 2 + .../documentdb/partitionkeyrangeid.go | 1 + .../documentdb/partitionkeyrangeidregion.go | 1 + .../documentdb/percentile.go | 1 + .../documentdb/percentilesourcetarget.go | 1 + .../documentdb/percentiletarget.go | 1 + .../documentdb/privateendpointconnections.go | 2 + .../documentdb/privatelinkresources.go | 2 + .../documentdb/sqlresources.go | 12 + .../documentdb/tableresources.go | 3 + .../documentdb/cassandraresources.go | 6 + .../documentdb/collection.go | 3 + .../documentdb/collectionpartition.go | 2 + .../documentdb/collectionpartitionregion.go | 1 + .../documentdb/collectionregion.go | 1 + .../2020-04-01-preview/documentdb/database.go | 3 + .../documentdb/databaseaccountregion.go | 1 + .../documentdb/databaseaccounts.go | 11 + .../documentdb/gremlinresources.go | 6 + .../documentdb/mongodbresources.go | 6 + .../documentdb/notebookworkspaces.go | 3 + .../documentdb/operations.go | 2 + .../documentdb/partitionkeyrangeid.go | 1 + .../documentdb/partitionkeyrangeidregion.go | 1 + .../documentdb/percentile.go | 1 + .../documentdb/percentilesourcetarget.go | 1 + .../documentdb/percentiletarget.go | 1 + .../documentdb/privateendpointconnections.go | 2 + .../documentdb/privatelinkresources.go | 2 + .../documentdb/sqlresources.go | 12 + .../documentdb/tableresources.go | 3 + .../documentdb/cassandraresources.go | 6 + .../documentdb/collection.go | 3 + .../documentdb/collectionpartition.go | 2 + .../documentdb/collectionpartitionregion.go | 1 + .../documentdb/collectionregion.go | 1 + .../2020-06-01-preview/documentdb/database.go | 3 + .../documentdb/databaseaccountregion.go | 1 + .../documentdb/databaseaccounts.go | 11 + .../documentdb/gremlinresources.go | 6 + .../documentdb/mongodbresources.go | 6 + .../documentdb/notebookworkspaces.go | 3 + .../documentdb/operations.go | 2 + .../documentdb/partitionkeyrangeid.go | 1 + .../documentdb/partitionkeyrangeidregion.go | 1 + .../documentdb/percentile.go | 1 + .../documentdb/percentilesourcetarget.go | 1 + .../documentdb/percentiletarget.go | 1 + .../documentdb/privateendpointconnections.go | 2 + .../documentdb/privatelinkresources.go | 2 + .../documentdb/restorabledatabaseaccounts.go | 3 + .../documentdb/sqlresources.go | 16 + .../documentdb/tableresources.go | 3 + .../costmanagement/alerts.go | 24 ++ .../billingaccountdimensions.go | 1 + .../costmanagement/client.go | 3 + .../costmanagement/connector.go | 6 + .../costmanagement/operations.go | 2 + .../costmanagement/reports.go | 24 ++ .../costmanagement/resourcegroupdimensions.go | 1 + .../costmanagement/subscriptiondimensions.go | 1 + .../costmanagement/cloudconnector.go | 5 + .../2019-03-01/costmanagement/connector.go | 1 + .../2019-03-01/costmanagement/dimensions.go | 6 + .../costmanagement/externalbillingaccount.go | 2 + .../costmanagement/externalsubscription.go | 5 + .../2019-03-01/costmanagement/forecast.go | 7 + .../2019-03-01/costmanagement/operations.go | 2 + .../mgmt/2019-03-01/costmanagement/query.go | 6 + .../2019-03-01/costmanagement/showbackrule.go | 2 + .../costmanagement/showbackrules.go | 1 + .../customerlockbox/operations.go | 2 + .../customerlockbox/requests.go | 4 + .../customproviders/associations.go | 3 + .../customproviders/customresourceprovider.go | 6 + .../customproviders/operations.go | 2 + .../2020-05-01-preview/databoxedge/alerts.go | 3 + .../databoxedge/availableskus.go | 1 + .../databoxedge/bandwidthschedules.go | 3 + .../databoxedge/containers.go | 3 + .../2020-05-01-preview/databoxedge/devices.go | 10 + .../2020-05-01-preview/databoxedge/jobs.go | 1 + .../2020-05-01-preview/databoxedge/nodes.go | 1 + .../databoxedge/operations.go | 2 + .../databoxedge/operationsstatus.go | 1 + .../2020-05-01-preview/databoxedge/orders.go | 3 + .../2020-05-01-preview/databoxedge/roles.go | 3 + .../2020-05-01-preview/databoxedge/shares.go | 3 + .../2020-05-01-preview/databoxedge/skus.go | 1 + .../databoxedge/storageaccountcredentials.go | 3 + .../databoxedge/storageaccounts.go | 3 + .../databoxedge/triggers.go | 3 + .../2020-05-01-preview/databoxedge/users.go | 3 + .../2020-02-01-preview/datadog/apikeys.go | 4 + .../mgmt/2020-02-01-preview/datadog/hosts.go | 2 + .../datadog/linkedresources.go | 2 + .../datadog/marketplaceagreements.go | 3 + .../datadog/monitoredresources.go | 2 + .../2020-02-01-preview/datadog/monitors.go | 6 + .../2020-02-01-preview/datadog/operations.go | 2 + .../datadog/refreshsetpassword.go | 1 + .../datadog/singlesignonconfigurations.go | 3 + .../2020-02-01-preview/datadog/tagrules.go | 4 + .../datafactory/activityruns.go | 2 + .../datafactory/datasets.go | 5 + .../datafactory/factories.go | 10 + .../datafactory/integrationruntimenodes.go | 3 + .../datafactory/integrationruntimes.go | 14 + .../datafactory/linkedservices.go | 5 + .../datafactory/operations.go | 1 + .../datafactory/pipelineruns.go | 2 + .../datafactory/pipelines.go | 6 + .../datafactory/triggers.go | 7 + .../2015-10-01-preview/catalog/catalog.go | 43 ++ .../analytics/2015-11-01-preview/job/job.go | 8 + .../analytics/2016-03-20-preview/job/job.go | 8 + .../analytics/2017-09-01-preview/job/job.go | 7 + .../2017-09-01-preview/job/pipeline.go | 3 + .../2017-09-01-preview/job/recurrence.go | 3 + .../2015-10-01-preview/account/account.go | 21 + .../filesystem/filesystem.go | 23 + .../2015-10-01-preview/account/account.go | 11 + .../datamigration/operations.go | 2 + .../datamigration/projects.go | 6 + .../datamigration/resourceskus.go | 2 + .../datamigration/services.go | 10 + .../2017-11-15-preview/datamigration/tasks.go | 7 + .../datamigration/usages.go | 2 + .../datamigration/operations.go | 2 + .../datamigration/projects.go | 6 + .../datamigration/resourceskus.go | 2 + .../datamigration/services.go | 10 + .../2018-03-31-preview/datamigration/tasks.go | 7 + .../datamigration/usages.go | 2 + .../2018-07-15-preview/datamigration/files.go | 8 + .../datamigration/operations.go | 2 + .../datamigration/projects.go | 6 + .../datamigration/resourceskus.go | 2 + .../datamigration/services.go | 10 + .../datamigration/servicetasks.go | 7 + .../2018-07-15-preview/datamigration/tasks.go | 8 + .../datamigration/usages.go | 2 + .../2018-11-01-preview/datashare/accounts.go | 6 + .../datashare/consumerinvitations.go | 4 + .../datashare/consumersourcedatasets.go | 2 + .../datashare/datasetmappings.go | 5 + .../2018-11-01-preview/datashare/datasets.go | 4 + .../datashare/invitations.go | 5 + .../datashare/operations.go | 2 + .../datashare/providersharesubscriptions.go | 4 + .../2018-11-01-preview/datashare/shares.go | 8 + .../datashare/sharesubscriptions.go | 10 + .../datashare/synchronizationsettings.go | 4 + .../2018-11-01-preview/datashare/triggers.go | 3 + .../delegatednetwork/controller.go | 2 + .../delegatednetwork/delegatednetwork.go | 4 + .../delegatedsubnetservice.go | 5 + .../delegatednetwork/operations.go | 2 + .../orchestratorinstanceservice.go | 6 + .../deploymentmanager/artifactsources.go | 3 + .../deploymentmanager/operations.go | 1 + .../deploymentmanager/rollouts.go | 4 + .../deploymentmanager/services.go | 3 + .../deploymentmanager/servicetopologies.go | 3 + .../deploymentmanager/serviceunits.go | 2 + .../deploymentmanager/steps.go | 3 + .../deploymentmanager/artifactsources.go | 4 + .../deploymentmanager/operations.go | 1 + .../deploymentmanager/rollouts.go | 5 + .../deploymentmanager/services.go | 4 + .../deploymentmanager/servicetopologies.go | 4 + .../deploymentmanager/serviceunits.go | 3 + .../deploymentmanager/steps.go | 4 + .../applicationgroups.go | 8 + .../desktopvirtualization/applications.go | 6 + .../desktopvirtualization/desktops.go | 3 + .../desktopvirtualization/hostpools.go | 8 + .../desktopvirtualization/operations.go | 1 + .../desktopvirtualization/sessionhosts.go | 5 + .../desktopvirtualization/startmenuitems.go | 2 + .../desktopvirtualization/usersessions.go | 8 + .../desktopvirtualization/workspaces.go | 8 + .../applicationgroups.go | 8 + .../desktopvirtualization/applications.go | 6 + .../desktopvirtualization/desktops.go | 3 + .../desktopvirtualization/hostpools.go | 8 + .../desktopvirtualization/operations.go | 1 + .../desktopvirtualization/sessionhosts.go | 5 + .../desktopvirtualization/startmenuitems.go | 2 + .../desktopvirtualization/usersessions.go | 8 + .../desktopvirtualization/workspaces.go | 8 + .../applicationgroups.go | 8 + .../desktopvirtualization/applications.go | 6 + .../desktopvirtualization/desktops.go | 3 + .../desktopvirtualization/hostpools.go | 8 + .../desktopvirtualization/operations.go | 1 + .../desktopvirtualization/sessionhosts.go | 5 + .../desktopvirtualization/startmenuitems.go | 2 + .../desktopvirtualization/usersessions.go | 8 + .../desktopvirtualization/workspaces.go | 8 + .../applicationgroups.go | 8 + .../desktopvirtualization/applications.go | 6 + .../desktopvirtualization/desktops.go | 3 + .../desktopvirtualization/hostpools.go | 8 + .../desktopvirtualization/msiximages.go | 2 + .../desktopvirtualization/msixpackages.go | 6 + .../desktopvirtualization/operations.go | 1 + .../desktopvirtualization/sessionhosts.go | 5 + .../desktopvirtualization/startmenuitems.go | 2 + .../desktopvirtualization/usersessions.go | 8 + .../desktopvirtualization/workspaces.go | 8 + .../applicationgroups.go | 8 + .../desktopvirtualization/applications.go | 6 + .../desktopvirtualization/desktops.go | 3 + .../desktopvirtualization/hostpools.go | 8 + .../desktopvirtualization/msiximages.go | 2 + .../desktopvirtualization/msixpackages.go | 6 + .../desktopvirtualization/operations.go | 1 + .../desktopvirtualization/sessionhosts.go | 5 + .../desktopvirtualization/startmenuitems.go | 2 + .../desktopvirtualization/usersessions.go | 8 + .../desktopvirtualization/workspaces.go | 8 + .../applicationgroups.go | 8 + .../desktopvirtualization/applications.go | 6 + .../desktopvirtualization/desktops.go | 3 + .../desktopvirtualization/hostpools.go | 8 + .../desktopvirtualization/msiximages.go | 2 + .../desktopvirtualization/msixpackages.go | 6 + .../desktopvirtualization/operations.go | 1 + .../desktopvirtualization/sessionhosts.go | 5 + .../desktopvirtualization/startmenuitems.go | 2 + .../desktopvirtualization/usersessions.go | 8 + .../desktopvirtualization/workspaces.go | 8 + .../2019-07-01-preview/devops/operations.go | 2 + .../2019-07-01-preview/devops/pipelines.go | 7 + .../devops/pipelinetemplatedefinitions.go | 2 + .../mgmt/2015-05-21-preview/dtl/artifact.go | 4 + .../2015-05-21-preview/dtl/artifactsource.go | 6 + .../mgmt/2015-05-21-preview/dtl/cost.go | 3 + .../2015-05-21-preview/dtl/costinsight.go | 3 + .../2015-05-21-preview/dtl/customimage.go | 3 + .../mgmt/2015-05-21-preview/dtl/formula.go | 4 + .../2015-05-21-preview/dtl/galleryimage.go | 2 + .../mgmt/2015-05-21-preview/dtl/lab.go | 9 + .../mgmt/2015-05-21-preview/dtl/policy.go | 6 + .../mgmt/2015-05-21-preview/dtl/policyset.go | 1 + .../mgmt/2015-05-21-preview/dtl/schedule.go | 4 + .../2015-05-21-preview/dtl/virtualmachine.go | 4 + .../2015-05-21-preview/dtl/virtualnetwork.go | 4 + .../digitaltwins/digitaltwins.go | 16 + .../digitaltwins/eventroutes.go | 5 + .../digitaltwins/modelsgroup.go | 6 + .../2020-05-31-preview/digitaltwins/query.go | 1 + .../digitaltwins/digitaltwins.go | 6 + .../digitaltwins/endpoint.go | 3 + .../digitaltwins/operations.go | 2 + .../mgmt/2015-05-04-preview/dns/recordsets.go | 7 + .../dns/mgmt/2015-05-04-preview/dns/zones.go | 7 + .../mgmt/2018-03-01-preview/dns/recordsets.go | 10 + .../dns/mgmt/2018-03-01-preview/dns/zones.go | 7 + .../2018-09-01/engagementfabric/accounts.go | 9 + .../2018-09-01/engagementfabric/channels.go | 4 + .../2018-09-01/engagementfabric/client.go | 1 + .../2018-09-01/engagementfabric/operations.go | 1 + .../mgmt/2018-09-01/engagementfabric/skus.go | 1 + .../enterpriseknowledgegraph.go | 8 + .../operations.go | 2 + .../eventgrid/eventsubscriptions.go | 11 + .../eventgrid/operations.go | 1 + .../2017-06-15-preview/eventgrid/topics.go | 6 + .../eventgrid/topictypes.go | 3 + .../eventgrid/eventsubscriptions.go | 11 + .../eventgrid/operations.go | 1 + .../2017-09-15-preview/eventgrid/topics.go | 6 + .../eventgrid/topictypes.go | 3 + .../eventgrid/eventsubscriptions.go | 11 + .../eventgrid/operations.go | 1 + .../2018-05-01-preview/eventgrid/topics.go | 6 + .../eventgrid/topictypes.go | 3 + .../2018-09-15-preview/eventgrid/domains.go | 5 + .../eventgrid/domaintopics.go | 2 + .../eventgrid/eventsubscriptions.go | 12 + .../eventgrid/operations.go | 1 + .../2018-09-15-preview/eventgrid/topics.go | 6 + .../eventgrid/topictypes.go | 3 + .../2019-02-01-preview/eventgrid/domains.go | 7 + .../eventgrid/domaintopics.go | 3 + .../eventgrid/eventsubscriptions.go | 22 + .../eventgrid/operations.go | 1 + .../2019-02-01-preview/eventgrid/topics.go | 8 + .../eventgrid/topictypes.go | 3 + .../2020-01-01-preview/eventgrid/domains.go | 7 + .../eventgrid/domaintopics.go | 3 + .../eventgrid/eventsubscriptions.go | 22 + .../eventgrid/operations.go | 1 + .../2020-01-01-preview/eventgrid/topics.go | 8 + .../eventgrid/topictypes.go | 3 + .../2020-04-01-preview/eventgrid/domains.go | 7 + .../eventgrid/domaintopics.go | 3 + .../eventgrid/eventchannels.go | 4 + .../eventgrid/eventsubscriptions.go | 22 + .../eventgrid/extensiontopics.go | 1 + .../eventgrid/operations.go | 1 + .../eventgrid/partnernamespaces.go | 7 + .../eventgrid/partnerregistrations.go | 9 + .../partnertopiceventsubscriptions.go | 4 + .../eventgrid/partnertopics.go | 8 + .../eventgrid/privateendpointconnections.go | 3 + .../eventgrid/privatelinkresources.go | 3 + .../systemtopiceventsubscriptions.go | 4 + .../eventgrid/systemtopics.go | 5 + .../2020-04-01-preview/eventgrid/topics.go | 8 + .../eventgrid/topictypes.go | 3 + .../2018-01-01-preview/eventhub/clusters.go | 5 + .../eventhub/configuration.go | 2 + .../eventhub/consumergroups.go | 5 + .../eventhub/disasterrecoveryconfigs.go | 12 + .../2018-01-01-preview/eventhub/eventhubs.go | 12 + .../2018-01-01-preview/eventhub/namespaces.go | 26 ++ .../2018-01-01-preview/eventhub/operations.go | 2 + .../eventhub/privateendpointconnections.go | 4 + .../eventhub/privatelinkresources.go | 1 + .../2018-01-01-preview/eventhub/regions.go | 2 + .../2018-08-01-preview/frontdoor/client.go | 2 + .../frontdoor/frontdoors.go | 6 + .../frontdoor/frontendendpoints.go | 3 + .../2018-08-01-preview/frontdoor/policies.go | 4 + .../hanaonazure/hanainstances.go | 6 + .../hanaonazure/operations.go | 1 + .../hanaonazure/sapmonitors.go | 4 + .../hardwaresecuritymodules/dedicatedhsm.go | 5 + .../hardwaresecuritymodules/operations.go | 1 + .../2018-11-01-preview/hdinsight/job.go | 26 ++ .../hdinsight/applications.go | 3 + .../2015-03-01-preview/hdinsight/clusters.go | 7 + .../hdinsight/configurations.go | 2 + .../2015-03-01-preview/hdinsight/extension.go | 4 + .../2015-03-01-preview/hdinsight/locations.go | 3 + .../hdinsight/operations.go | 2 + .../hdinsight/scriptactions.go | 4 + .../hdinsight/scriptexecutionhistory.go | 3 + .../healthcareapis/operationresults.go | 1 + .../healthcareapis/operations.go | 2 + .../healthcareapis/services.go | 6 + .../hybridkubernetes/connectedcluster.go | 7 + .../hybridkubernetes/operations.go | 2 + .../hybridnetwork/devices.go | 7 + .../hybridnetwork/networkfunctions.go | 6 + .../hybridnetwork/networkfunctionvendors.go | 2 + .../networkfunctionvendorskus.go | 4 + .../hybridnetwork/operations.go | 2 + .../hybridnetwork/roleinstances.go | 3 + .../hybridnetwork/vendornetworkfunctions.go | 3 + .../hybridnetwork/vendors.go | 3 + .../hybridnetwork/vendorskupreview.go | 3 + .../hybridnetwork/vendorskus.go | 3 + .../devices/certificates.go | 6 + .../devices/iothubresource.go | 28 ++ .../2018-12-01-preview/devices/operations.go | 2 + .../devices/resourceprovidercommon.go | 1 + .../devices/certificates.go | 6 + .../devices/iothubresource.go | 28 ++ .../2019-03-22-preview/devices/operations.go | 2 + .../devices/resourceprovidercommon.go | 1 + .../devices/certificates.go | 6 + .../devices/iothubresource.go | 28 ++ .../2019-07-01-preview/devices/operations.go | 2 + .../devices/resourceprovidercommon.go | 1 + .../2017-10-01-preview/iotspaces/iotspaces.go | 6 + .../iotspaces/operations.go | 2 + .../keyvault/managedhsms.go | 5 + .../2020-04-01-preview/keyvault/operations.go | 2 + .../keyvault/privateendpointconnections.go | 2 + .../keyvault/privatelinkresources.go | 1 + .../2020-04-01-preview/keyvault/vaults.go | 14 + .../keyvault/v7.2-preview/keyvault/client.go | 95 +++++ .../keyvault/hsmsecuritydomain.go | 3 + .../v7.2-preview/keyvault/roleassignments.go | 5 + .../v7.2-preview/keyvault/roledefinitions.go | 2 + .../kubernetesconfiguration/operations.go | 2 + .../sourcecontrolconfigurations.go | 4 + .../mgmt/2018-09-07-preview/kusto/clusters.go | 6 + .../2018-09-07-preview/kusto/databases.go | 6 + .../kusto/eventhubconnections.go | 3 + .../2018-09-07-preview/kusto/operations.go | 2 + .../logic/workflowaccesskeys.go | 7 + .../logic/workflowrunactions.go | 3 + .../2015-02-01-preview/logic/workflowruns.go | 4 + .../2015-02-01-preview/logic/workflows.go | 11 + .../logic/workflowtriggerhistories.go | 3 + .../logic/workflowtriggers.go | 4 + .../logic/workflowversions.go | 1 + .../logic/integrationaccountagreements.go | 5 + .../logic/integrationaccountcertificates.go | 5 + .../logic/integrationaccountmaps.go | 5 + .../logic/integrationaccountpartners.go | 5 + .../logic/integrationaccounts.go | 9 + .../logic/integrationaccountschemas.go | 5 + .../logic/integrationaccountagreements.go | 6 + .../logic/integrationaccountassemblies.go | 5 + .../integrationaccountbatchconfigurations.go | 4 + .../logic/integrationaccountcertificates.go | 5 + .../logic/integrationaccountmaps.go | 6 + .../logic/integrationaccountpartners.go | 6 + .../logic/integrationaccounts.go | 12 + .../logic/integrationaccountschemas.go | 6 + .../logic/integrationaccountsessions.go | 5 + .../2018-07-01-preview/logic/operations.go | 2 + .../logic/workflowrunactionrepetitions.go | 3 + ...lowrunactionrepetitionsrequesthistories.go | 3 + .../workflowrunactionrequesthistories.go | 3 + .../logic/workflowrunactions.go | 4 + .../workflowrunactionscoperepetitions.go | 2 + .../logic/workflowrunoperations.go | 1 + .../2018-07-01-preview/logic/workflowruns.go | 5 + .../2018-07-01-preview/logic/workflows.go | 17 + .../logic/workflowtriggerhistories.go | 4 + .../logic/workflowtriggers.go | 8 + .../logic/workflowversions.go | 3 + .../logic/workflowversiontriggers.go | 1 + .../commitmentplans/commitmentassociations.go | 4 + .../commitmentplans/commitmentplans.go | 8 + .../commitmentplans/operations.go | 1 + .../commitmentplans/skus.go | 1 + .../commitmentplans/usagehistory.go | 2 + .../webservices/webservices.go | 6 + .../experimentation/accounts.go | 8 + .../experimentation/operations.go | 1 + .../experimentation/projects.go | 6 + .../experimentation/workspaces.go | 6 + .../compute/machinelearningcompute.go | 1 + .../compute/operationalizationclusters.go | 8 + .../machinelearningcompute.go | 4 + .../machinelearningservices/operations.go | 1 + .../machinelearningservices/workspaces.go | 9 + .../machinelearningservices/client.go | 2 + .../machinelearningcompute.go | 8 + .../machinelearningservices/operations.go | 1 + .../privateendpointconnections.go | 3 + .../privatelinkresources.go | 1 + .../machinelearningservices/quotas.go | 3 + .../machinelearningservices/usages.go | 2 + .../virtualmachinesizes.go | 1 + .../workspacefeatures.go | 2 + .../machinelearningservices/workspaces.go | 8 + .../maintenance/applyupdates.go | 4 + .../maintenance/configurationassignments.go | 6 + .../maintenance/configurations.go | 5 + .../maintenance/operations.go | 1 + .../2018-06-01-preview/maintenance/updates.go | 2 + .../managednetwork/groups.go | 3 + .../managednetwork/managednetworks.go | 6 + .../managednetwork/operations.go | 2 + .../managednetwork/peeringpolicies.go | 3 + .../managednetwork/scopeassignments.go | 5 + .../2018-06-01/managedservices/operations.go | 1 + .../registrationassignments.go | 5 + .../registrationdefinitions.go | 5 + .../2019-04-01/managedservices/operations.go | 1 + .../registrationassignments.go | 3 + .../registrationdefinitions.go | 4 + .../2018-02-01/managementpartner/operation.go | 2 + .../2018-02-01/managementpartner/partner.go | 4 + .../2018-02-01/managementpartner/partners.go | 1 + .../mgmt/2020-02-01-preview/maps/accounts.go | 8 + .../mgmt/2020-02-01-preview/maps/creators.go | 5 + .../maps/mgmt/2020-02-01-preview/maps/maps.go | 1 + .../2020-02-01-preview/maps/privateatlases.go | 5 + .../mgmt/2018-03-30-preview/media/assets.go | 8 + .../media/contentkeypolicies.go | 7 + .../mgmt/2018-03-30-preview/media/jobs.go | 6 + .../2018-03-30-preview/media/liveevents.go | 3 + .../2018-03-30-preview/media/liveoutputs.go | 3 + .../2018-03-30-preview/media/locations.go | 1 + .../2018-03-30-preview/media/mediaservices.go | 10 + .../2018-03-30-preview/media/operations.go | 2 + .../media/streamingendpoints.go | 3 + .../media/streaminglocators.go | 7 + .../media/streamingpolicies.go | 5 + .../2018-03-30-preview/media/transforms.go | 6 + .../mgmt/2018-06-01-preview/media/assets.go | 8 + .../media/contentkeypolicies.go | 7 + .../mgmt/2018-06-01-preview/media/jobs.go | 6 + .../2018-06-01-preview/media/liveevents.go | 3 + .../2018-06-01-preview/media/liveoutputs.go | 3 + .../2018-06-01-preview/media/locations.go | 1 + .../2018-06-01-preview/media/mediaservices.go | 10 + .../2018-06-01-preview/media/operations.go | 2 + .../media/streamingendpoints.go | 3 + .../media/streaminglocators.go | 7 + .../media/streamingpolicies.go | 5 + .../2018-06-01-preview/media/transforms.go | 6 + .../media/accountfilters.go | 6 + .../2019-05-01-preview/media/assetfilters.go | 6 + .../mgmt/2019-05-01-preview/media/assets.go | 9 + .../media/contentkeypolicies.go | 7 + .../mgmt/2019-05-01-preview/media/jobs.go | 7 + .../2019-05-01-preview/media/liveevents.go | 3 + .../2019-05-01-preview/media/liveoutputs.go | 3 + .../2019-05-01-preview/media/locations.go | 1 + .../2019-05-01-preview/media/mediaservices.go | 10 + .../2019-05-01-preview/media/operations.go | 2 + .../media/streamingendpoints.go | 3 + .../media/streaminglocators.go | 7 + .../media/streamingpolicies.go | 5 + .../2019-05-01-preview/media/transforms.go | 6 + .../migrate/databaseinstances.go | 2 + .../2018-09-01-preview/migrate/databases.go | 2 + .../mgmt/2018-09-01-preview/migrate/events.go | 3 + .../2018-09-01-preview/migrate/machines.go | 2 + .../2018-09-01-preview/migrate/operations.go | 1 + .../2018-09-01-preview/migrate/projects.go | 6 + .../2018-09-01-preview/migrate/solutions.go | 7 + .../mgmt/2019-02-28/mixedreality/client.go | 1 + .../2019-02-28/mixedreality/operations.go | 2 + .../mixedreality/spatialanchorsaccounts.go | 10 + .../2020-05-01-preview/mixedreality/client.go | 1 + .../mixedreality/operations.go | 2 + .../mixedreality/remoterenderingaccounts.go | 10 + .../mixedreality/spatialanchorsaccounts.go | 10 + .../2018-09-01-preview/monitor/metrics.go | 1 + .../insights/actiongroups.go | 7 + .../insights/activitylogalerts.go | 6 + .../insights/activitylogs.go | 2 + .../insights/alertruleincidents.go | 2 + .../2017-05-01-preview/insights/alertrules.go | 6 + .../insights/autoscalesettings.go | 8 + .../insights/diagnosticsettings.go | 4 + .../insights/diagnosticsettingscategory.go | 2 + .../insights/eventcategories.go | 1 + .../insights/logprofiles.go | 5 + .../insights/metricbaseline.go | 2 + .../insights/metricdefinitions.go | 1 + .../2017-05-01-preview/insights/metrics.go | 1 + .../2017-05-01-preview/insights/operations.go | 1 + .../insights/tenantactivitylogs.go | 2 + .../mgmt/2018-03-01/insights/actiongroups.go | 7 + .../2018-03-01/insights/activitylogalerts.go | 6 + .../mgmt/2018-03-01/insights/activitylogs.go | 2 + .../2018-03-01/insights/alertruleincidents.go | 2 + .../mgmt/2018-03-01/insights/alertrules.go | 6 + .../2018-03-01/insights/autoscalesettings.go | 8 + .../2018-03-01/insights/diagnosticsettings.go | 4 + .../insights/diagnosticsettingscategory.go | 2 + .../2018-03-01/insights/eventcategories.go | 1 + .../mgmt/2018-03-01/insights/logprofiles.go | 5 + .../mgmt/2018-03-01/insights/metricalerts.go | 6 + .../2018-03-01/insights/metricalertsstatus.go | 2 + .../2018-03-01/insights/metricbaseline.go | 2 + .../2018-03-01/insights/metricdefinitions.go | 1 + .../mgmt/2018-03-01/insights/metrics.go | 1 + .../mgmt/2018-03-01/insights/operations.go | 1 + .../insights/scheduledqueryrules.go | 6 + .../2018-03-01/insights/tenantactivitylogs.go | 2 + .../mgmt/2018-09-01/insights/actiongroups.go | 7 + .../2018-09-01/insights/activitylogalerts.go | 6 + .../mgmt/2018-09-01/insights/activitylogs.go | 2 + .../2018-09-01/insights/alertruleincidents.go | 2 + .../mgmt/2018-09-01/insights/alertrules.go | 6 + .../2018-09-01/insights/autoscalesettings.go | 8 + .../2018-09-01/insights/diagnosticsettings.go | 4 + .../insights/diagnosticsettingscategory.go | 2 + .../2018-09-01/insights/eventcategories.go | 1 + .../mgmt/2018-09-01/insights/logprofiles.go | 5 + .../mgmt/2018-09-01/insights/metricalerts.go | 6 + .../2018-09-01/insights/metricalertsstatus.go | 2 + .../2018-09-01/insights/metricbaseline.go | 2 + .../2018-09-01/insights/metricdefinitions.go | 1 + .../2018-09-01/insights/metricnamespaces.go | 1 + .../mgmt/2018-09-01/insights/metrics.go | 1 + .../mgmt/2018-09-01/insights/operations.go | 1 + .../insights/scheduledqueryrules.go | 6 + .../2018-09-01/insights/tenantactivitylogs.go | 2 + .../insights/actiongroups.go | 7 + .../insights/activitylogalerts.go | 6 + .../insights/activitylogs.go | 2 + .../insights/alertruleincidents.go | 2 + .../2018-11-01-preview/insights/alertrules.go | 6 + .../insights/autoscalesettings.go | 8 + .../insights/diagnosticsettings.go | 4 + .../insights/diagnosticsettingscategory.go | 2 + .../insights/eventcategories.go | 1 + .../insights/logprofiles.go | 5 + .../insights/metricalerts.go | 6 + .../insights/metricalertsstatus.go | 2 + .../insights/metricbaseline.go | 2 + .../insights/metricdefinitions.go | 1 + .../insights/metricnamespaces.go | 1 + .../2018-11-01-preview/insights/metrics.go | 1 + .../2018-11-01-preview/insights/operations.go | 1 + .../insights/scheduledqueryrules.go | 6 + .../insights/tenantactivitylogs.go | 2 + .../2018-11-01-preview/insights/vminsights.go | 1 + .../mgmt/2019-03-01/insights/actiongroups.go | 7 + .../2019-03-01/insights/activitylogalerts.go | 6 + .../mgmt/2019-03-01/insights/activitylogs.go | 2 + .../2019-03-01/insights/alertruleincidents.go | 2 + .../mgmt/2019-03-01/insights/alertrules.go | 6 + .../2019-03-01/insights/autoscalesettings.go | 8 + .../mgmt/2019-03-01/insights/baselines.go | 1 + .../2019-03-01/insights/diagnosticsettings.go | 4 + .../insights/diagnosticsettingscategory.go | 2 + .../2019-03-01/insights/eventcategories.go | 1 + .../mgmt/2019-03-01/insights/logprofiles.go | 5 + .../mgmt/2019-03-01/insights/metricalerts.go | 6 + .../2019-03-01/insights/metricalertsstatus.go | 2 + .../2019-03-01/insights/metricbaseline.go | 2 + .../2019-03-01/insights/metricdefinitions.go | 1 + .../2019-03-01/insights/metricnamespaces.go | 1 + .../mgmt/2019-03-01/insights/metrics.go | 1 + .../mgmt/2019-03-01/insights/operations.go | 1 + .../insights/scheduledqueryrules.go | 6 + .../2019-03-01/insights/tenantactivitylogs.go | 2 + .../mgmt/2019-03-01/insights/vminsights.go | 1 + .../mgmt/2019-06-01/insights/actiongroups.go | 7 + .../2019-06-01/insights/activitylogalerts.go | 6 + .../mgmt/2019-06-01/insights/activitylogs.go | 2 + .../2019-06-01/insights/alertruleincidents.go | 2 + .../mgmt/2019-06-01/insights/alertrules.go | 6 + .../2019-06-01/insights/autoscalesettings.go | 8 + .../mgmt/2019-06-01/insights/baselines.go | 1 + .../2019-06-01/insights/diagnosticsettings.go | 4 + .../insights/diagnosticsettingscategory.go | 2 + .../2019-06-01/insights/eventcategories.go | 1 + .../mgmt/2019-06-01/insights/logprofiles.go | 5 + .../mgmt/2019-06-01/insights/metricalerts.go | 6 + .../2019-06-01/insights/metricalertsstatus.go | 2 + .../2019-06-01/insights/metricbaseline.go | 2 + .../2019-06-01/insights/metricdefinitions.go | 1 + .../2019-06-01/insights/metricnamespaces.go | 1 + .../mgmt/2019-06-01/insights/metrics.go | 1 + .../mgmt/2019-06-01/insights/operations.go | 1 + .../insights/scheduledqueryrules.go | 6 + .../2019-06-01/insights/tenantactivitylogs.go | 2 + .../mgmt/2019-06-01/insights/vminsights.go | 1 + .../datacollectionruleassociations.go | 7 + .../insights/datacollectionrules.go | 8 + .../mgmt/2015-08-31-preview/msi/operations.go | 2 + .../msi/systemassignedidentities.go | 1 + .../msi/userassignedidentities.go | 8 + .../mysql/checknameavailability.go | 1 + .../mysql/configurations.go | 2 + .../2017-12-01-preview/mysql/databases.go | 2 + .../2017-12-01-preview/mysql/firewallrules.go | 2 + .../mysql/locationbasedperformancetier.go | 1 + .../mgmt/2017-12-01-preview/mysql/logfiles.go | 1 + .../2017-12-01-preview/mysql/operations.go | 1 + .../mgmt/2017-12-01-preview/mysql/replicas.go | 1 + .../mysql/serveradministrators.go | 2 + .../mgmt/2017-12-01-preview/mysql/servers.go | 3 + .../mysql/serversecurityalertpolicies.go | 1 + .../mysql/virtualnetworkrules.go | 3 + .../checknameavailability.go | 1 + .../checkvirtualnetworksubnetusage.go | 1 + .../mysqlflexibleservers/configurations.go | 3 + .../mysqlflexibleservers/databases.go | 3 + .../mysqlflexibleservers/firewallrules.go | 3 + .../locationbasedcapabilities.go | 2 + .../mysqlflexibleservers/operations.go | 1 + .../mysqlflexibleservers/replicas.go | 2 + .../mysqlflexibleservers/serverkeys.go | 3 + .../mysqlflexibleservers/servers.go | 5 + .../netapp/mgmt/2017-08-15/netapp/accounts.go | 3 + .../mgmt/2017-08-15/netapp/mounttargets.go | 1 + .../mgmt/2017-08-15/netapp/operations.go | 1 + .../netapp/mgmt/2017-08-15/netapp/pools.go | 3 + .../mgmt/2017-08-15/netapp/snapshots.go | 3 + .../netapp/mgmt/2017-08-15/netapp/volumes.go | 3 + .../network/applicationgateways.go | 5 + .../mgmt/2015-05-01-preview/network/client.go | 1 + .../expressroutecircuitauthorizations.go | 3 + .../network/expressroutecircuitpeerings.go | 3 + .../network/expressroutecircuits.go | 11 + .../network/expressrouteserviceproviders.go | 2 + .../network/interfacesgroup.go | 10 + .../network/loadbalancers.go | 5 + .../network/localnetworkgateways.go | 3 + .../network/publicipaddresses.go | 5 + .../mgmt/2015-05-01-preview/network/routes.go | 3 + .../2015-05-01-preview/network/routetables.go | 5 + .../network/securitygroups.go | 5 + .../network/securityrules.go | 3 + .../2015-05-01-preview/network/subnets.go | 3 + .../mgmt/2015-05-01-preview/network/usages.go | 2 + .../virtualnetworkgatewayconnections.go | 4 + .../network/virtualnetworkgateways.go | 3 + .../network/virtualnetworks.go | 5 + .../operationalinsights/client.go | 1 + .../operationalinsights/datasources.go | 5 + .../operationalinsights/linkedservices.go | 4 + .../operationalinsights/operations.go | 2 + .../operationalinsights/workspaces.go | 11 + .../servicemap/clientgroups.go | 4 + .../servicemap/machinegroups.go | 6 + .../2015-11-01-preview/servicemap/machines.go | 12 + .../2015-11-01-preview/servicemap/maps.go | 1 + .../2015-11-01-preview/servicemap/ports.go | 6 + .../servicemap/processes.go | 6 + .../servicemap/summaries.go | 1 + .../availableservicetiers.go | 1 + .../operationalinsights/clusters.go | 6 + .../operationalinsights/datacollectorlogs.go | 3 + .../operationalinsights/dataexports.go | 4 + .../operationalinsights/datasources.go | 5 + .../operationalinsights/deletedworkspaces.go | 2 + .../operationalinsights/gateways.go | 1 + .../operationalinsights/intelligencepacks.go | 3 + .../operationalinsights/linkedservices.go | 2 + .../linkedstorageaccounts.go | 4 + .../operationalinsights/managementgroups.go | 1 + .../operationalinsights/operations.go | 2 + .../operationalinsights/operationstatuses.go | 1 + .../operationalinsights/savedsearches.go | 4 + .../operationalinsights/schema.go | 1 + .../operationalinsights/sharedkeys.go | 2 + .../storageinsightconfigs.go | 5 + .../operationalinsights/tables.go | 3 + .../operationalinsights/usages.go | 1 + .../operationalinsights/workspacepurge.go | 2 + .../operationalinsights/workspaces.go | 4 + .../managementassociations.go | 4 + .../managementconfigurations.go | 4 + .../operationsmanagement/operations.go | 1 + .../operationsmanagement/solutions.go | 3 + .../mgmt/2019-08-01-preview/peering/client.go | 1 + .../peering/legacypeerings.go | 2 + .../2019-08-01-preview/peering/locations.go | 2 + .../2019-08-01-preview/peering/operations.go | 2 + .../2019-08-01-preview/peering/peerasns.go | 5 + .../2019-08-01-preview/peering/peerings.go | 8 + .../2019-08-01-preview/peering/prefixes.go | 2 + .../peering/servicelocations.go | 2 + .../peering/serviceprefixes.go | 3 + .../peering/serviceproviders.go | 2 + .../2019-08-01-preview/peering/services.go | 8 + .../mgmt/2019-09-01-preview/peering/client.go | 1 + .../peering/legacypeerings.go | 2 + .../2019-09-01-preview/peering/locations.go | 2 + .../2019-09-01-preview/peering/operations.go | 2 + .../2019-09-01-preview/peering/peerasns.go | 5 + .../2019-09-01-preview/peering/peerings.go | 8 + .../2019-09-01-preview/peering/prefixes.go | 5 + .../peering/servicelocations.go | 2 + .../peering/serviceproviders.go | 2 + .../2019-09-01-preview/peering/services.go | 8 + .../mgmt/2020-01-01-preview/peering/client.go | 1 + .../peering/legacypeerings.go | 2 + .../2020-01-01-preview/peering/locations.go | 2 + .../2020-01-01-preview/peering/operations.go | 2 + .../2020-01-01-preview/peering/peerasns.go | 5 + .../2020-01-01-preview/peering/peerings.go | 8 + .../2020-01-01-preview/peering/prefixes.go | 5 + .../peering/registeredasns.go | 5 + .../peering/registeredprefixes.go | 5 + .../peering/servicecountries.go | 2 + .../peering/servicelocations.go | 2 + .../peering/serviceproviders.go | 2 + .../2020-01-01-preview/peering/services.go | 8 + .../policyinsights/operations.go | 1 + .../policyinsights/policyevents.go | 16 + .../policyinsights/policystates.go | 25 ++ .../policyinsights/policytrackedresources.go | 8 + .../policyinsights/remediations.go | 32 ++ .../policyinsights/operations.go | 1 + .../policyinsights/policyevents.go | 16 + .../policyinsights/policymetadata.go | 3 + .../policyinsights/policystates.go | 24 ++ .../policyinsights/policytrackedresources.go | 8 + .../policyinsights/remediations.go | 32 ++ .../policyinsights/operations.go | 1 + .../policyinsights/policyevents.go | 16 + .../policyinsights/policymetadata.go | 3 + .../policyinsights/policyrestrictions.go | 2 + .../policyinsights/policystates.go | 24 ++ .../policyinsights/policytrackedresources.go | 8 + .../policyinsights/remediations.go | 32 ++ .../2015-08-01-preview/portal/dashboards.go | 8 + .../2015-08-01-preview/portal/operations.go | 2 + .../2018-10-01-preview/portal/dashboards.go | 8 + .../2018-10-01-preview/portal/operations.go | 2 + .../2019-01-01-preview/portal/dashboards.go | 8 + .../2019-01-01-preview/portal/operations.go | 2 + .../portal/tenantconfigurations.go | 4 + .../postgresql/checknameavailability.go | 1 + .../postgresql/configurations.go | 2 + .../postgresql/databases.go | 2 + .../postgresql/firewallrules.go | 2 + .../locationbasedperformancetier.go | 1 + .../2017-12-01-preview/postgresql/logfiles.go | 1 + .../postgresql/operations.go | 1 + .../2017-12-01-preview/postgresql/replicas.go | 1 + .../postgresql/serveradministrators.go | 2 + .../2017-12-01-preview/postgresql/servers.go | 3 + .../postgresql/serversecurityalertpolicies.go | 1 + .../postgresql/virtualnetworkrules.go | 3 + .../checknameavailability.go | 1 + .../configurations.go | 3 + .../firewallrules.go | 3 + .../locationbasedcapabilities.go | 2 + .../postgresqlflexibleservers/operations.go | 1 + .../postgresqlflexibleservers/servers.go | 5 + .../virtualnetworksubnetusage.go | 1 + .../checknameavailability.go | 1 + .../configurations.go | 3 + .../postgresqlflexibleservers/databases.go | 3 + .../firewallrules.go | 3 + .../locationbasedcapabilities.go | 2 + .../postgresqlflexibleservers/operations.go | 1 + .../postgresqlflexibleservers/servers.go | 5 + .../virtualnetworksubnetusage.go | 1 + .../powerplatform/enterprisepolicies.go | 6 + .../2020-10-30/powerplatform/operations.go | 1 + .../privateendpointconnections.go | 2 + .../powerplatform/privatelinkresources.go | 2 + .../mgmt/2020-10-30/powerplatform/subnets.go | 3 + .../iothub/dpscertificate.go | 5 + .../iothub/dpscertificates.go | 1 + .../iothub/iotdpsresource.go | 12 + .../2017-08-21-preview/iothub/operations.go | 2 + .../v5.0-preview.1/qnamaker/alterations.go | 4 + .../v5.0-preview.1/qnamaker/endpointkeys.go | 2 + .../qnamaker/endpointsettings.go | 2 + .../v5.0-preview.1/qnamaker/knowledgebase.go | 10 + .../v5.0-preview.1/qnamaker/operations.go | 1 + .../2019-07-01-preview/redis/firewallrules.go | 5 + .../2019-07-01-preview/redis/linkedserver.go | 4 + .../2019-07-01-preview/redis/operations.go | 2 + .../redis/patchschedules.go | 5 + .../mgmt/2019-07-01-preview/redis/redis.go | 11 + .../redisenterprise/databases.go | 4 + .../2020-10-01-preview/redisenterprise/get.go | 1 + .../redisenterprise/operations.go | 2 + .../privateendpointconnections.go | 3 + .../redisenterprise/privatelinkresources.go | 1 + .../redisenterprise/redisenterprise.go | 5 + .../mgmt/2018-06-01/reservations/client.go | 2 + .../mgmt/2018-06-01/reservations/operation.go | 2 + .../mgmt/2018-06-01/reservations/order.go | 3 + .../2018-06-01/reservations/reservation.go | 5 + .../mgmt/2019-04-01/reservations/client.go | 2 + .../mgmt/2019-04-01/reservations/operation.go | 2 + .../mgmt/2019-04-01/reservations/order.go | 4 + .../2019-04-01/reservations/reservation.go | 7 + .../reservations/autoquotaincrease.go | 2 + .../2019-07-19-preview/reservations/client.go | 2 + .../reservations/operation.go | 2 + .../2019-07-19-preview/reservations/order.go | 4 + .../2019-07-19-preview/reservations/quota.go | 3 + .../reservations/quotarequeststatus.go | 3 + .../reservations/reservation.go | 7 + .../mgmt/2018-09-01/resourcegraph/client.go | 3 + .../2018-09-01/resourcegraph/graphquery.go | 6 + .../2018-09-01/resourcegraph/operations.go | 2 + .../resourcemover/movecollections.go | 7 + .../resourcemover/moveresources.go | 3 + .../resourcemover/operationsdiscovery.go | 1 + .../resourcemover/unresolveddependencies.go | 1 + .../2015-10-01-preview/policy/assignments.go | 12 + .../2015-10-01-preview/policy/definitions.go | 5 + .../appliancedefinitions.go | 4 + .../managedapplications/appliances.go | 8 + .../managedapplications/client.go | 2 + .../2017-06-01-preview/policy/assignments.go | 12 + .../2017-06-01-preview/policy/definitions.go | 13 + .../policy/setdefinitions.go | 13 + .../managementgroups/managementgroups.go | 3 + .../managementgroups/operations.go | 2 + .../managementgroups/managementgroups.go | 6 + .../managementgroups/operations.go | 2 + .../managementgroups/subscriptions.go | 2 + .../managementgroups/client.go | 1 + .../managementgroups/entities.go | 2 + .../managementgroups/managementgroups.go | 4 + .../managementgroups/operations.go | 2 + .../managementgroups/subscriptions.go | 2 + .../managementgroups/client.go | 3 + .../managementgroups/entities.go | 2 + .../managementgroups/managementgroups.go | 6 + .../managementgroups/operations.go | 2 + .../managementgroups/subscriptions.go | 2 + .../2020-03-01-preview/policy/assignments.go | 14 + .../2020-03-01-preview/policy/definitions.go | 13 + .../2020-03-01-preview/policy/exemptions.go | 11 + .../policy/setdefinitions.go | 13 + .../scheduler/jobcollections.go | 10 + .../mgmt/2014-08-01-preview/scheduler/jobs.go | 9 + .../security/adaptiveapplicationcontrols.go | 4 + .../security/adaptivenetworkhardenings.go | 3 + .../v1.0/security/advancedthreatprotection.go | 2 + .../security/mgmt/v1.0/security/alerts.go | 14 + .../v1.0/security/alertssuppressionrules.go | 5 + .../mgmt/v1.0/security/allowedconnections.go | 5 + .../mgmt/v1.0/security/automations.go | 8 + .../v1.0/security/autoprovisioningsettings.go | 4 + .../mgmt/v1.0/security/compliances.go | 3 + .../security/mgmt/v1.0/security/connectors.go | 5 + .../security/mgmt/v1.0/security/contacts.go | 6 + .../v1.0/security/devicesecuritygroups.go | 5 + .../security/discoveredsecuritysolutions.go | 5 + .../security/externalsecuritysolutions.go | 5 + .../security/informationprotectionpolicies.go | 4 + .../v1.0/security/jitnetworkaccesspolicies.go | 12 + .../security/mgmt/v1.0/security/locations.go | 3 + .../security/mgmt/v1.0/security/operations.go | 2 + .../security/mgmt/v1.0/security/pricings.go | 8 + .../regulatorycomplianceassessments.go | 3 + .../security/regulatorycompliancecontrols.go | 3 + .../security/regulatorycompliancestandards.go | 3 + .../security/securescorecontroldefinitions.go | 4 + .../mgmt/v1.0/security/securescorecontrols.go | 4 + .../mgmt/v1.0/security/securescores.go | 3 + .../security/mgmt/v1.0/security/settings.go | 4 + ...sqlvulnerabilityassessmentbaselinerules.go | 5 + .../sqlvulnerabilityassessmentscanresults.go | 2 + .../sqlvulnerabilityassessmentscans.go | 2 + .../mgmt/v1.0/security/subassessments.go | 5 + .../security/mgmt/v1.0/security/tasks.go | 10 + .../security/mgmt/v1.0/security/topology.go | 5 + .../mgmt/v1.0/security/workspacesettings.go | 6 + .../security/adaptiveapplicationcontrols.go | 4 + .../security/adaptivenetworkhardenings.go | 3 + .../v2.0/security/advancedthreatprotection.go | 2 + .../security/mgmt/v2.0/security/alerts.go | 14 + .../v2.0/security/alertssuppressionrules.go | 5 + .../mgmt/v2.0/security/allowedconnections.go | 5 + .../mgmt/v2.0/security/automations.go | 8 + .../v2.0/security/autoprovisioningsettings.go | 4 + .../mgmt/v2.0/security/compliances.go | 3 + .../security/mgmt/v2.0/security/connectors.go | 5 + .../security/mgmt/v2.0/security/contacts.go | 6 + .../v2.0/security/devicesecuritygroups.go | 5 + .../security/discoveredsecuritysolutions.go | 5 + .../security/externalsecuritysolutions.go | 5 + .../security/informationprotectionpolicies.go | 4 + .../mgmt/v2.0/security/iotsecuritysolution.go | 4 + .../v2.0/security/iotsecuritysolutions.go | 2 + .../security/iotsecuritysolutionsanalytics.go | 2 + ...curitysolutionsanalyticsaggregatedalert.go | 2 + ...uritysolutionsanalyticsaggregatedalerts.go | 2 + ...ecuritysolutionsanalyticsrecommendation.go | 1 + ...curitysolutionsanalyticsrecommendations.go | 2 + .../iotsecuritysolutionsresourcegroup.go | 2 + .../v2.0/security/jitnetworkaccesspolicies.go | 12 + .../security/mgmt/v2.0/security/locations.go | 3 + .../security/mgmt/v2.0/security/operations.go | 2 + .../security/mgmt/v2.0/security/pricings.go | 3 + .../regulatorycomplianceassessments.go | 3 + .../security/regulatorycompliancecontrols.go | 3 + .../security/regulatorycompliancestandards.go | 3 + .../security/securescorecontroldefinitions.go | 4 + .../mgmt/v2.0/security/securescorecontrols.go | 4 + .../mgmt/v2.0/security/securescores.go | 3 + .../security/mgmt/v2.0/security/settings.go | 4 + ...sqlvulnerabilityassessmentbaselinerules.go | 5 + .../sqlvulnerabilityassessmentscanresults.go | 2 + .../sqlvulnerabilityassessmentscans.go | 2 + .../mgmt/v2.0/security/subassessments.go | 5 + .../security/mgmt/v2.0/security/tasks.go | 10 + .../security/mgmt/v2.0/security/topology.go | 5 + .../mgmt/v2.0/security/workspacesettings.go | 6 + .../security/adaptiveapplicationcontrols.go | 4 + .../security/adaptivenetworkhardenings.go | 3 + .../v3.0/security/advancedthreatprotection.go | 2 + .../security/mgmt/v3.0/security/alerts.go | 16 + .../v3.0/security/alertssuppressionrules.go | 5 + .../mgmt/v3.0/security/allowedconnections.go | 5 + .../mgmt/v3.0/security/assessments.go | 5 + .../mgmt/v3.0/security/assessmentsmetadata.go | 8 + .../mgmt/v3.0/security/automations.go | 8 + .../v3.0/security/autoprovisioningsettings.go | 4 + .../mgmt/v3.0/security/complianceresults.go | 3 + .../mgmt/v3.0/security/compliances.go | 3 + .../security/mgmt/v3.0/security/connectors.go | 5 + .../security/mgmt/v3.0/security/contacts.go | 6 + .../security/mgmt/v3.0/security/device.go | 1 + .../v3.0/security/devicesecuritygroups.go | 5 + .../mgmt/v3.0/security/devicesforhub.go | 2 + .../v3.0/security/devicesforsubscription.go | 2 + .../security/discoveredsecuritysolutions.go | 5 + .../security/externalsecuritysolutions.go | 5 + .../security/informationprotectionpolicies.go | 4 + .../security/mgmt/v3.0/security/iotalerts.go | 6 + .../mgmt/v3.0/security/iotalerttypes.go | 4 + .../mgmt/v3.0/security/iotdefendersettings.go | 6 + .../mgmt/v3.0/security/iotrecommendations.go | 6 + .../v3.0/security/iotrecommendationtypes.go | 4 + .../mgmt/v3.0/security/iotsecuritysolution.go | 8 + .../security/iotsecuritysolutionanalytics.go | 2 + ...curitysolutionsanalyticsaggregatedalert.go | 4 + ...ecuritysolutionsanalyticsrecommendation.go | 3 + .../security/mgmt/v3.0/security/iotsensors.go | 6 + .../v3.0/security/jitnetworkaccesspolicies.go | 12 + .../security/mgmt/v3.0/security/locations.go | 3 + .../mgmt/v3.0/security/onpremiseiotsensors.go | 6 + .../security/mgmt/v3.0/security/operations.go | 2 + .../security/mgmt/v3.0/security/pricings.go | 3 + .../regulatorycomplianceassessments.go | 3 + .../security/regulatorycompliancecontrols.go | 3 + .../security/regulatorycompliancestandards.go | 3 + .../security/securescorecontroldefinitions.go | 4 + .../mgmt/v3.0/security/securescorecontrols.go | 4 + .../mgmt/v3.0/security/securescores.go | 3 + .../security/servervulnerabilityassessment.go | 4 + .../security/mgmt/v3.0/security/settings.go | 4 + .../security/mgmt/v3.0/security/solutions.go | 3 + .../v3.0/security/solutionsreferencedata.go | 2 + ...sqlvulnerabilityassessmentbaselinerules.go | 5 + .../sqlvulnerabilityassessmentscanresults.go | 2 + .../sqlvulnerabilityassessmentscans.go | 2 + .../mgmt/v3.0/security/subassessments.go | 5 + .../security/mgmt/v3.0/security/tasks.go | 10 + .../security/mgmt/v3.0/security/topology.go | 5 + .../mgmt/v3.0/security/workspacesettings.go | 6 + .../securityinsight/actions.go | 2 + .../securityinsight/alertrules.go | 8 + .../securityinsight/alertruletemplates.go | 3 + .../securityinsight/bookmark.go | 1 + .../securityinsight/bookmarkrelations.go | 5 + .../securityinsight/bookmarks.go | 5 + .../securityinsight/casecomments.go | 1 + .../securityinsight/caserelations.go | 5 + .../securityinsight/cases.go | 6 + .../securityinsight/casesaggregations.go | 1 + .../securityinsight/comments.go | 2 + .../securityinsight/dataconnectors.go | 5 + .../dataconnectorscheckrequirements.go | 1 + .../securityinsight/entities.go | 4 + .../securityinsight/entitiesgettimeline.go | 1 + .../securityinsight/entitiesrelations.go | 2 + .../securityinsight/entityqueries.go | 3 + .../securityinsight/entityrelations.go | 1 + .../securityinsight/incidentcomments.go | 5 + .../securityinsight/incidentrelations.go | 5 + .../securityinsight/incidents.go | 8 + .../securityinsight/officeconsents.go | 4 + .../securityinsight/operations.go | 2 + .../securityinsight/productsettings.go | 4 + .../threatintelligenceindicator.go | 8 + .../threatintelligenceindicatormetrics.go | 1 + .../threatintelligenceindicators.go | 2 + .../securityinsight/watchlists.go | 5 + .../servicebus/disasterrecoveryconfigs.go | 12 + .../servicebus/eventhubs.go | 2 + .../servicebus/migrationconfigs.go | 6 + .../servicebus/namespaces.go | 27 ++ .../servicebus/operations.go | 2 + .../servicebus/premiummessagingregions.go | 2 + .../servicebus/privateendpointconnections.go | 4 + .../servicebus/privatelinkresources.go | 1 + .../2018-01-01-preview/servicebus/queues.go | 12 + .../2018-01-01-preview/servicebus/regions.go | 2 + .../2018-01-01-preview/servicebus/rules.go | 5 + .../servicebus/subscriptions.go | 5 + .../2018-01-01-preview/servicebus/topics.go | 12 + .../servicefabric/clusters.go | 4 + .../servicefabric/clusterversions.go | 4 + .../servicefabric/operations.go | 2 + .../servicefabric/applications.go | 2 + .../servicefabric/applicationtypes.go | 3 + .../servicefabric/applicationtypeversions.go | 2 + .../servicefabric/clusters.go | 4 + .../servicefabric/clusterversions.go | 4 + .../servicefabric/operations.go | 2 + .../servicefabric/services.go | 2 + .../servicefabric/applications.go | 2 + .../servicefabric/applicationtypes.go | 3 + .../servicefabric/applicationtypeversions.go | 2 + .../servicefabric/clusters.go | 4 + .../servicefabric/clusterversions.go | 4 + .../servicefabric/operations.go | 2 + .../servicefabric/services.go | 2 + .../servicefabricmesh/application.go | 7 + .../servicefabricmesh/codepackage.go | 1 + .../servicefabricmesh/network.go | 7 + .../servicefabricmesh/operations.go | 2 + .../servicefabricmesh/replica.go | 3 + .../servicefabricmesh/service.go | 3 + .../servicefabricmesh/volume.go | 7 + .../servicefabricmesh/application.go | 7 + .../servicefabricmesh/codepackage.go | 1 + .../servicefabricmesh/gateway.go | 7 + .../servicefabricmesh/network.go | 7 + .../servicefabricmesh/operations.go | 2 + .../servicefabricmesh/secret.go | 7 + .../servicefabricmesh/secretvalue.go | 6 + .../servicefabricmesh/service.go | 3 + .../servicefabricmesh/servicereplica.go | 3 + .../servicefabricmesh/volume.go | 7 + .../2018-03-01-preview/signalr/operations.go | 2 + .../2018-03-01-preview/signalr/signalr.go | 7 + .../mgmt/2018-03-01-preview/signalr/usages.go | 2 + .../2020-07-01-preview/signalr/operations.go | 2 + .../signalr/privateendpointconnections.go | 2 + .../signalr/privatelinkresources.go | 2 + .../2020-07-01-preview/signalr/signalr.go | 7 + .../mgmt/2020-07-01-preview/signalr/usages.go | 2 + .../softwareplan/hybridusebenefit.go | 6 + .../softwareplan/hybridusebenefitrevision.go | 2 + .../softwareplan/operations.go | 2 + .../softwareplan/softwareplan.go | 1 + .../2015-05-01-preview/sql/capabilities.go | 1 + .../sql/databaseblobauditingpolicies.go | 4 + .../mgmt/2015-05-01-preview/sql/databases.go | 9 + .../sql/databasethreatdetectionpolicies.go | 2 + .../2015-05-01-preview/sql/databaseusages.go | 1 + .../sql/datamaskingpolicies.go | 2 + .../sql/datamaskingrules.go | 2 + .../sql/elasticpoolactivities.go | 1 + .../sql/elasticpooldatabaseactivities.go | 1 + .../2015-05-01-preview/sql/elasticpools.go | 5 + .../sql/encryptionprotectors.go | 3 + .../2015-05-01-preview/sql/failovergroups.go | 3 + .../2015-05-01-preview/sql/firewallrules.go | 4 + .../sql/geobackuppolicies.go | 3 + .../sql/managedinstances.go | 5 + .../mgmt/2015-05-01-preview/sql/operations.go | 2 + .../sql/recoverabledatabases.go | 2 + .../sql/replicationlinks.go | 3 + .../sql/restorabledroppeddatabases.go | 2 + .../2015-05-01-preview/sql/restorepoints.go | 1 + .../sql/serverazureadadministrators.go | 2 + .../sql/servercommunicationlinks.go | 3 + .../sql/serverconnectionpolicies.go | 2 + .../mgmt/2015-05-01-preview/sql/serverkeys.go | 3 + .../mgmt/2015-05-01-preview/sql/servers.go | 6 + .../2015-05-01-preview/sql/serverusages.go | 1 + .../sql/serviceobjectives.go | 2 + .../sql/servicetieradvisors.go | 2 + .../sql/subscriptionusages.go | 3 + .../mgmt/2015-05-01-preview/sql/syncagents.go | 6 + .../mgmt/2015-05-01-preview/sql/syncgroups.go | 11 + .../2015-05-01-preview/sql/syncmembers.go | 5 + .../transparentdataencryptionactivities.go | 1 + .../sql/transparentdataencryptions.go | 2 + .../2015-05-01-preview/sql/virtualclusters.go | 5 + .../sql/virtualnetworkrules.go | 3 + .../2017-03-01-preview/sql/capabilities.go | 1 + .../sql/databaseautomatictuning.go | 2 + .../sql/databaseblobauditingpolicies.go | 4 + .../sql/databaseoperations.go | 3 + .../mgmt/2017-03-01-preview/sql/databases.go | 10 + .../sql/databasethreatdetectionpolicies.go | 2 + .../2017-03-01-preview/sql/databaseusages.go | 1 + ...asevulnerabilityassessmentrulebaselines.go | 3 + .../sql/databasevulnerabilityassessments.go | 5 + .../sql/datamaskingpolicies.go | 2 + .../sql/datamaskingrules.go | 2 + .../sql/datawarehouseuseractivities.go | 1 + .../sql/elasticpoolactivities.go | 1 + .../sql/elasticpooldatabaseactivities.go | 1 + .../2017-03-01-preview/sql/elasticpools.go | 5 + .../sql/encryptionprotectors.go | 3 + .../extendeddatabaseblobauditingpolicies.go | 4 + .../sql/extendedserverblobauditingpolicies.go | 3 + .../2017-03-01-preview/sql/failovergroups.go | 3 + .../2017-03-01-preview/sql/firewallrules.go | 4 + .../sql/geobackuppolicies.go | 3 + .../mgmt/2017-03-01-preview/sql/jobagents.go | 3 + .../2017-03-01-preview/sql/jobcredentials.go | 5 + .../2017-03-01-preview/sql/jobexecutions.go | 6 + .../sql/mgmt/2017-03-01-preview/sql/jobs.go | 5 + .../sql/jobstepexecutions.go | 3 + .../mgmt/2017-03-01-preview/sql/jobsteps.go | 8 + .../sql/jobtargetexecutions.go | 5 + .../2017-03-01-preview/sql/jobtargetgroups.go | 5 + .../2017-03-01-preview/sql/jobversions.go | 3 + ...managedbackupshorttermretentionpolicies.go | 3 + .../sql/manageddatabases.go | 3 + .../sql/managedinstanceadministrators.go | 3 + .../sql/managedinstances.go | 5 + .../mgmt/2017-03-01-preview/sql/operations.go | 2 + .../sql/recoverabledatabases.go | 2 + .../sql/replicationlinks.go | 3 + .../sql/restorabledroppeddatabases.go | 2 + .../sql/restorabledroppedmanageddatabases.go | 3 + .../2017-03-01-preview/sql/restorepoints.go | 3 + .../sql/sensitivitylabels.go | 9 + .../sql/serverautomatictuning.go | 2 + .../sql/serverazureadadministrators.go | 2 + .../sql/serverblobauditingpolicies.go | 3 + .../sql/servercommunicationlinks.go | 3 + .../sql/serverconnectionpolicies.go | 2 + .../sql/serverdnsaliases.go | 3 + .../mgmt/2017-03-01-preview/sql/serverkeys.go | 3 + .../mgmt/2017-03-01-preview/sql/servers.go | 6 + .../sql/serversecurityalertpolicies.go | 3 + .../2017-03-01-preview/sql/serverusages.go | 1 + .../sql/serviceobjectives.go | 2 + .../sql/servicetieradvisors.go | 2 + .../sql/subscriptionusages.go | 3 + .../mgmt/2017-03-01-preview/sql/syncagents.go | 6 + .../mgmt/2017-03-01-preview/sql/syncgroups.go | 11 + .../2017-03-01-preview/sql/syncmembers.go | 5 + .../transparentdataencryptionactivities.go | 1 + .../sql/transparentdataencryptions.go | 2 + .../2017-03-01-preview/sql/virtualclusters.go | 5 + .../sql/virtualnetworkrules.go | 3 + .../sql/backupshorttermretentionpolicies.go | 3 + .../2017-10-01-preview/sql/capabilities.go | 1 + .../sql/databaseoperations.go | 3 + .../mgmt/2017-10-01-preview/sql/databases.go | 6 + .../databasevulnerabilityassessmentscans.go | 4 + .../sql/elasticpooloperations.go | 3 + .../2017-10-01-preview/sql/elasticpools.go | 3 + .../sql/instancefailovergroups.go | 3 + ...asevulnerabilityassessmentrulebaselines.go | 3 + ...manageddatabasevulnerabilityassessments.go | 5 + ...geddatabasevulnerabilityassessmentscans.go | 4 + .../managedinstanceencryptionprotectors.go | 3 + .../sql/managedinstancekeys.go | 3 + .../sql/recoverablemanageddatabases.go | 3 + .../sql/databasesecurityalertpolicies.go | 4 + .../2018-06-01-preview/sql/instancepools.go | 5 + ...longtermretentionmanagedinstancebackups.go | 14 + .../sql/manageddatabaserestoredetails.go | 1 + .../sql/manageddatabases.go | 3 + .../sql/manageddatabasesensitivitylabels.go | 9 + ...anagedinstancelongtermretentionpolicies.go | 3 + .../sql/managedinstanceoperations.go | 3 + .../sql/managedinstances.go | 7 + ...managedinstancevulnerabilityassessments.go | 5 + .../sql/privateendpointconnections.go | 3 + .../sql/serverazureadadministrators.go | 3 + .../sql/servervulnerabilityassessments.go | 5 + .../sql/mgmt/2018-06-01-preview/sql/usages.go | 2 + .../sql/backuplongtermretentionpolicies.go | 2 + .../sql/backupshorttermretentionpolicies.go | 3 + .../preview/sql/mgmt/v3.0/sql/capabilities.go | 1 + .../mgmt/v3.0/sql/databaseautomatictuning.go | 2 + .../v3.0/sql/databaseblobauditingpolicies.go | 4 + .../sql/mgmt/v3.0/sql/databaseoperations.go | 3 + .../preview/sql/mgmt/v3.0/sql/databases.go | 10 + .../sql/databasethreatdetectionpolicies.go | 2 + .../sql/mgmt/v3.0/sql/databaseusages.go | 1 + ...asevulnerabilityassessmentrulebaselines.go | 3 + .../sql/databasevulnerabilityassessments.go | 5 + .../databasevulnerabilityassessmentscans.go | 4 + .../sql/mgmt/v3.0/sql/datamaskingpolicies.go | 2 + .../sql/mgmt/v3.0/sql/datamaskingrules.go | 2 + .../mgmt/v3.0/sql/elasticpoolactivities.go | 1 + .../v3.0/sql/elasticpooldatabaseactivities.go | 1 + .../mgmt/v3.0/sql/elasticpooloperations.go | 3 + .../preview/sql/mgmt/v3.0/sql/elasticpools.go | 5 + .../sql/mgmt/v3.0/sql/encryptionprotectors.go | 3 + .../extendeddatabaseblobauditingpolicies.go | 4 + .../sql/extendedserverblobauditingpolicies.go | 3 + .../sql/mgmt/v3.0/sql/failovergroups.go | 3 + .../sql/mgmt/v3.0/sql/firewallrules.go | 4 + .../sql/mgmt/v3.0/sql/geobackuppolicies.go | 3 + .../mgmt/v3.0/sql/instancefailovergroups.go | 3 + .../sql/mgmt/v3.0/sql/instancepools.go | 5 + .../preview/sql/mgmt/v3.0/sql/jobagents.go | 3 + .../sql/mgmt/v3.0/sql/jobcredentials.go | 5 + .../sql/mgmt/v3.0/sql/jobexecutions.go | 6 + services/preview/sql/mgmt/v3.0/sql/jobs.go | 5 + .../sql/mgmt/v3.0/sql/jobstepexecutions.go | 3 + .../preview/sql/mgmt/v3.0/sql/jobsteps.go | 8 + .../sql/mgmt/v3.0/sql/jobtargetexecutions.go | 5 + .../sql/mgmt/v3.0/sql/jobtargetgroups.go | 5 + .../preview/sql/mgmt/v3.0/sql/jobversions.go | 3 + .../mgmt/v3.0/sql/longtermretentionbackups.go | 14 + ...longtermretentionmanagedinstancebackups.go | 14 + ...managedbackupshorttermretentionpolicies.go | 3 + .../v3.0/sql/manageddatabaserestoredetails.go | 1 + .../sql/mgmt/v3.0/sql/manageddatabases.go | 5 + .../manageddatabasesecurityalertpolicies.go | 4 + .../sql/manageddatabasesensitivitylabels.go | 9 + ...asevulnerabilityassessmentrulebaselines.go | 3 + ...manageddatabasevulnerabilityassessments.go | 5 + ...geddatabasevulnerabilityassessmentscans.go | 4 + .../v3.0/sql/managedinstanceadministrators.go | 3 + ...nagedinstanceazureadonlyauthentications.go | 3 + .../managedinstanceencryptionprotectors.go | 3 + .../sql/mgmt/v3.0/sql/managedinstancekeys.go | 3 + ...anagedinstancelongtermretentionpolicies.go | 3 + .../v3.0/sql/managedinstanceoperations.go | 4 + .../sql/mgmt/v3.0/sql/managedinstances.go | 7 + ...managedinstancevulnerabilityassessments.go | 5 + ...atabasebackupshorttermretentionpolicies.go | 3 + .../sql/managedserversecurityalertpolicies.go | 3 + .../preview/sql/mgmt/v3.0/sql/operations.go | 2 + .../v3.0/sql/privateendpointconnections.go | 3 + .../sql/mgmt/v3.0/sql/privatelinkresources.go | 3 + .../mgmt/v3.0/sql/recommendedelasticpools.go | 3 + .../sql/mgmt/v3.0/sql/recoverabledatabases.go | 2 + .../v3.0/sql/recoverablemanageddatabases.go | 3 + .../sql/mgmt/v3.0/sql/replicationlinks.go | 3 + .../v3.0/sql/restorabledroppeddatabases.go | 2 + .../sql/restorabledroppedmanageddatabases.go | 3 + .../sql/mgmt/v3.0/sql/restorepoints.go | 3 + .../sql/mgmt/v3.0/sql/sensitivitylabels.go | 9 + .../mgmt/v3.0/sql/serverautomatictuning.go | 2 + .../v3.0/sql/serverazureadadministrators.go | 3 + .../sql/serverazureadonlyauthentications.go | 3 + .../v3.0/sql/serverblobauditingpolicies.go | 3 + .../mgmt/v3.0/sql/servercommunicationlinks.go | 3 + .../mgmt/v3.0/sql/serverconnectionpolicies.go | 2 + .../sql/mgmt/v3.0/sql/serverdnsaliases.go | 3 + .../preview/sql/mgmt/v3.0/sql/serverkeys.go | 3 + services/preview/sql/mgmt/v3.0/sql/servers.go | 6 + .../v3.0/sql/serversecurityalertpolicies.go | 3 + .../sql/mgmt/v3.0/sql/servertrustgroups.go | 5 + .../preview/sql/mgmt/v3.0/sql/serverusages.go | 1 + .../sql/servervulnerabilityassessments.go | 5 + .../sql/mgmt/v3.0/sql/serviceobjectives.go | 2 + .../sql/mgmt/v3.0/sql/servicetieradvisors.go | 2 + .../sql/mgmt/v3.0/sql/subscriptionusages.go | 3 + .../preview/sql/mgmt/v3.0/sql/syncagents.go | 6 + .../preview/sql/mgmt/v3.0/sql/syncgroups.go | 11 + .../preview/sql/mgmt/v3.0/sql/syncmembers.go | 5 + .../transparentdataencryptionactivities.go | 1 + .../v3.0/sql/transparentdataencryptions.go | 2 + services/preview/sql/mgmt/v3.0/sql/usages.go | 2 + .../sql/mgmt/v3.0/sql/virtualclusters.go | 5 + .../sql/mgmt/v3.0/sql/virtualnetworkrules.go | 3 + .../sql/mgmt/v3.0/sql/workloadclassifiers.go | 3 + .../sql/mgmt/v3.0/sql/workloadgroups.go | 3 + .../availabilitygrouplisteners.go | 3 + .../sqlvirtualmachine/groups.go | 5 + .../sqlvirtualmachine/operations.go | 2 + .../sqlvirtualmachine/sqlvirtualmachines.go | 7 + .../2018-06-17/storagedatalake/filesystem.go | 5 + .../2018-06-17/storagedatalake/path.go | 7 + .../2015-05-01-preview/storage/accounts.go | 10 + .../mgmt/2015-05-01-preview/storage/usage.go | 1 + .../2018-03-01-preview/storage/accounts.go | 13 + .../storage/blobcontainers.go | 13 + .../2018-03-01-preview/storage/operations.go | 1 + .../mgmt/2018-03-01-preview/storage/skus.go | 1 + .../mgmt/2018-03-01-preview/storage/usages.go | 2 + .../2018-07-01-preview/storage/accounts.go | 10 + .../storage/blobcontainers.go | 13 + .../storage/blobservices.go | 2 + .../storage/managementpolicies.go | 3 + .../2018-07-01-preview/storage/operations.go | 1 + .../mgmt/2018-07-01-preview/storage/skus.go | 1 + .../mgmt/2018-07-01-preview/storage/usages.go | 1 + .../2020-08-01-preview/storage/accounts.go | 12 + .../storage/blobcontainers.go | 14 + .../storage/blobinventorypolicies.go | 4 + .../storage/blobservices.go | 3 + .../storage/deletedaccounts.go | 3 + .../storage/encryptionscopes.go | 5 + .../storage/fileservices.go | 3 + .../2020-08-01-preview/storage/fileshares.go | 7 + .../storage/managementpolicies.go | 3 + .../storage/objectreplicationpolicies.go | 4 + .../2020-08-01-preview/storage/operations.go | 1 + .../storage/privateendpointconnections.go | 4 + .../storage/privatelinkresources.go | 1 + .../mgmt/2020-08-01-preview/storage/queue.go | 6 + .../storage/queueservices.go | 3 + .../mgmt/2020-08-01-preview/storage/skus.go | 1 + .../mgmt/2020-08-01-preview/storage/table.go | 6 + .../storage/tableservices.go | 3 + .../mgmt/2020-08-01-preview/storage/usages.go | 1 + .../storagetables/service.go | 3 + .../2019-02-02-preview/storagetables/table.go | 11 + .../2019-08-01-preview/storagecache/caches.go | 6 + .../storagecache/operations.go | 2 + .../2019-08-01-preview/storagecache/skus.go | 2 + .../storagecache/storagetargets.go | 4 + .../storagecache/usagemodels.go | 2 + .../storagepool/diskpools.go | 6 + .../storagepool/iscsitargets.go | 3 + .../storagepool/operations.go | 1 + .../streamanalytics/clusters.go | 7 + .../streamanalytics/functions.go | 7 + .../streamanalytics/inputs.go | 6 + .../streamanalytics/operations.go | 2 + .../streamanalytics/outputs.go | 6 + .../streamanalytics/privateendpoints.go | 4 + .../streamanalytics/streamingjobs.go | 6 + .../streamanalytics/subscriptions.go | 1 + .../streamanalytics/transformations.go | 3 + .../subscription/definitions.go | 4 + .../definitionsoperationmetadata.go | 2 + .../subscription/operations.go | 1 + .../subscription/subscriptions.go | 4 + .../subscription/tenants.go | 2 + .../subscription/operation.go | 1 + .../subscription/operations.go | 1 + .../subscription/subscription.go | 6 + .../subscription/subscriptions.go | 4 + .../subscription/tenants.go | 2 + .../support/communications.go | 4 + .../2019-05-01-preview/support/operations.go | 1 + .../support/problemclassifications.go | 2 + .../2019-05-01-preview/support/services.go | 2 + .../2019-05-01-preview/support/tickets.go | 5 + .../artifacts/bigdatapools.go | 2 + .../2019-06-01-preview/artifacts/dataflow.go | 3 + .../artifacts/dataflowdebugsession.go | 4 + .../2019-06-01-preview/artifacts/dataset.go | 3 + .../artifacts/integrationruntimes.go | 2 + .../artifacts/linkedservice.go | 3 + .../2019-06-01-preview/artifacts/notebook.go | 5 + .../2019-06-01-preview/artifacts/pipeline.go | 4 + .../artifacts/pipelinerun.go | 4 + .../artifacts/sparkjobdefinition.go | 5 + .../2019-06-01-preview/artifacts/sqlpools.go | 2 + .../2019-06-01-preview/artifacts/sqlscript.go | 5 + .../2019-06-01-preview/artifacts/trigger.go | 4 + .../artifacts/triggerrun.go | 3 + .../2019-06-01-preview/artifacts/workspace.go | 1 + .../artifacts/workspacegitrepomanagement.go | 1 + .../managedprivateendpoints.go | 5 + .../monitoring/monitoring.go | 2 + .../synapse/2019-11-01-preview/spark/batch.go | 4 + .../2019-11-01-preview/spark/session.go | 9 + .../accesscontrol/client.go | 8 + .../synapse/bigdatapools.go | 4 + .../synapse/datamaskingpolicies.go | 2 + .../synapse/datamaskingrules.go | 2 + .../extendedsqlpoolblobauditingpolicies.go | 4 + .../synapse/integrationruntimeauthkeys.go | 2 + .../integrationruntimeconnectioninfos.go | 1 + .../synapse/integrationruntimecredentials.go | 1 + .../integrationruntimemonitoringdata.go | 1 + .../integrationruntimenodeipaddress.go | 1 + .../synapse/integrationruntimenodes.go | 3 + .../integrationruntimeobjectmetadata.go | 1 + .../synapse/integrationruntimes.go | 5 + .../synapse/integrationruntimestatus.go | 1 + .../synapse/ipfirewallrules.go | 3 + .../mgmt/2019-06-01-preview/synapse/keys.go | 5 + .../2019-06-01-preview/synapse/operations.go | 4 + .../synapse/privateendpointconnections.go | 3 + ...rivateendpointconnectionsprivatelinkhub.go | 2 + .../synapse/privatelinkhubs.go | 7 + .../synapse/privatelinkresources.go | 3 + .../synapse/restorabledroppedsqlpools.go | 2 + .../synapse/sqlpoolblobauditingpolicies.go | 4 + .../synapse/sqlpoolcolumns.go | 1 + .../synapse/sqlpoolconnectionpolicies.go | 1 + .../sqlpooldatawarehouseuseractivities.go | 1 + .../synapse/sqlpoolgeobackuppolicies.go | 2 + .../synapse/sqlpoolmetadatasyncconfigs.go | 2 + .../synapse/sqlpooloperationresults.go | 1 + .../synapse/sqlpooloperations.go | 2 + .../synapse/sqlpoolreplicationlinks.go | 3 + .../synapse/sqlpoolrestorepoints.go | 4 + .../2019-06-01-preview/synapse/sqlpools.go | 4 + .../synapse/sqlpoolschemas.go | 3 + .../synapse/sqlpoolsecurityalertpolicies.go | 4 + .../synapse/sqlpoolsensitivitylabels.go | 9 + .../synapse/sqlpooltablecolumns.go | 2 + .../synapse/sqlpooltables.go | 3 + .../sqlpooltransparentdataencryptions.go | 4 + .../synapse/sqlpoolusages.go | 2 + ...oolvulnerabilityassessmentrulebaselines.go | 3 + .../sqlpoolvulnerabilityassessments.go | 5 + .../sqlpoolvulnerabilityassessmentscans.go | 4 + .../synapse/sqlpoolworkloadclassifier.go | 3 + .../synapse/sqlpoolworkloadgroup.go | 3 + .../synapse/workspaceaadadmins.go | 1 + ...kspacemanagedidentitysqlcontrolsettings.go | 2 + ...acemanagedsqlserverblobauditingpolicies.go | 3 + ...edsqlserverextendedblobauditingpolicies.go | 3 + ...pacemanagedsqlserverrecoverablesqlpools.go | 3 + ...pacemanagedsqlserversecurityalertpolicy.go | 3 + .../workspacemanagedsqlserverusages.go | 2 + ...anagedsqlservervulnerabilityassessments.go | 5 + .../2019-06-01-preview/synapse/workspaces.go | 5 + .../synapse/workspacesqlaadadmins.go | 1 + .../timeseriesinsights/accesspolicies.go | 5 + .../timeseriesinsights/environments.go | 4 + .../timeseriesinsights/eventsources.go | 5 + .../timeseriesinsights/operations.go | 2 + .../timeseriesinsights/referencedatasets.go | 5 + .../timeseriesinsights/accesspolicies.go | 5 + .../timeseriesinsights/environments.go | 4 + .../timeseriesinsights/eventsources.go | 5 + .../timeseriesinsights/operations.go | 2 + .../timeseriesinsights/referencedatasets.go | 5 + .../trafficmanager/endpoints.go | 4 + .../trafficmanager/geographichierarchies.go | 1 + .../trafficmanager/heatmap.go | 1 + .../trafficmanager/profiles.go | 7 + .../trafficmanager/usermetricskeys.go | 3 + .../trafficmanager/endpoints.go | 4 + .../trafficmanager/geographichierarchies.go | 1 + .../trafficmanager/heatmap.go | 1 + .../trafficmanager/profiles.go | 7 + .../trafficmanager/usermetricskeys.go | 3 + .../virtualmachineimagebuilder/operations.go | 2 + .../virtualmachineimagetemplate.go | 9 + .../virtualmachineimagebuilder/operations.go | 2 + .../virtualmachineimagetemplates.go | 9 + .../virtualmachineimagebuilder/operations.go | 2 + .../virtualmachineimagetemplates.go | 8 + .../visualstudio/accounts.go | 6 + .../visualstudio/extensions.go | 5 + .../visualstudio/operations.go | 1 + .../visualstudio/projects.go | 4 + .../web/certificateorders.go | 18 + .../2015-08-01-preview/web/certificates.go | 11 + .../web/classicmobileservices.go | 4 + .../2015-08-01-preview/web/connections.go | 8 + .../mgmt/2015-08-01-preview/web/domains.go | 7 + .../web/mgmt/2015-08-01-preview/web/global.go | 20 + .../web/globalcertificateorder.go | 3 + .../web/globaldomainregistration.go | 7 + .../web/globalresourcegroups.go | 1 + .../web/hostingenvironments.go | 48 +++ .../2015-08-01-preview/web/managedapis.go | 3 + .../web/managedhostingenvironments.go | 11 + .../mgmt/2015-08-01-preview/web/provider.go | 6 + .../2015-08-01-preview/web/recommendations.go | 4 + .../2015-08-01-preview/web/serverfarms.go | 22 + .../web/mgmt/2015-08-01-preview/web/sites.go | 172 ++++++++ .../2015-08-01-preview/web/topleveldomains.go | 5 + .../web/mgmt/2015-08-01-preview/web/usage.go | 1 + .../windowsesu/multipleactivationkeys.go | 7 + .../windowsesu/operations.go | 2 + .../workloadmonitor/components.go | 3 + .../workloadmonitor/componentssummary.go | 2 + .../workloadmonitor/monitorinstances.go | 3 + .../monitorinstancessummary.go | 2 + .../workloadmonitor/monitors.go | 4 + .../workloadmonitor/notificationsettings.go | 4 + .../workloadmonitor/operations.go | 2 + .../workloadmonitor/healthmonitors.go | 6 + .../workloadmonitor/operations.go | 2 + .../2018-09-01/privatedns/privatezones.go | 5 + .../mgmt/2018-09-01/privatedns/recordsets.go | 8 + .../privatedns/virtualnetworklinks.go | 3 + .../mgmt/2017-11-15/iothub/dpscertificate.go | 6 + .../mgmt/2017-11-15/iothub/iotdpsresource.go | 12 + .../mgmt/2017-11-15/iothub/operations.go | 2 + .../mgmt/2018-01-22/iothub/dpscertificate.go | 6 + .../mgmt/2018-01-22/iothub/iotdpsresource.go | 12 + .../mgmt/2018-01-22/iothub/operations.go | 2 + .../mgmt/2016-06-01/backup/backups.go | 1 + .../mgmt/2016-06-01/backup/engines.go | 2 + .../backup/exportjobsoperationresults.go | 1 + .../backup/itemlevelrecoveryconnections.go | 2 + .../2016-06-01/backup/jobcancellations.go | 1 + .../mgmt/2016-06-01/backup/jobdetails.go | 1 + .../2016-06-01/backup/joboperationresults.go | 1 + .../mgmt/2016-06-01/backup/jobs.go | 3 + .../2016-06-01/backup/operationresults.go | 1 + .../2016-06-01/backup/operationstatuses.go | 1 + .../2016-06-01/backup/protectableitems.go | 2 + .../backup/protecteditemoperationresults.go | 1 + .../backup/protecteditemoperationstatuses.go | 1 + .../mgmt/2016-06-01/backup/protecteditems.go | 5 + .../protectioncontaineroperationresults.go | 1 + ...tectioncontainerrefreshoperationresults.go | 1 + .../2016-06-01/backup/protectioncontainers.go | 4 + .../2016-06-01/backup/protectionpolicies.go | 4 + .../protectionpolicyoperationresults.go | 1 + .../protectionpolicyoperationstatuses.go | 1 + .../mgmt/2016-06-01/backup/recoverypoints.go | 2 + .../mgmt/2016-06-01/backup/restores.go | 1 + .../2016-06-01/recoveryservices/operations.go | 2 + .../recoveryservices/privatelinkresources.go | 3 + .../recoveryservices/recoveryservices.go | 1 + .../recoveryservices/registeredidentities.go | 1 + .../recoveryservices/replicationusages.go | 1 + .../2016-06-01/recoveryservices/usages.go | 1 + .../recoveryservices/vaultcertificates.go | 1 + .../recoveryservices/vaultextendedinfo.go | 3 + .../2016-06-01/recoveryservices/vaults.go | 8 + .../2016-08-10/siterecovery/operations.go | 2 + .../2016-08-10/siterecovery/recoverypoints.go | 3 + .../siterecovery/replicationalertsettings.go | 4 + .../siterecovery/replicationevents.go | 3 + .../siterecovery/replicationfabrics.go | 3 + .../siterecovery/replicationjobs.go | 3 + .../replicationlogicalnetworks.go | 3 + .../replicationnetworkmappings.go | 5 + .../siterecovery/replicationnetworks.go | 5 + .../siterecovery/replicationpolicies.go | 3 + .../replicationprotectableitems.go | 3 + .../siterecovery/replicationprotecteditems.go | 5 + .../replicationprotectioncontainermappings.go | 5 + .../replicationprotectioncontainers.go | 5 + .../siterecovery/replicationrecoveryplans.go | 3 + .../replicationrecoveryservicesproviders.go | 5 + ...eplicationstorageclassificationmappings.go | 5 + .../replicationstorageclassifications.go | 5 + .../siterecovery/replicationvaulthealth.go | 1 + .../siterecovery/replicationvcenters.go | 5 + .../mgmt/2016-12-01/backup/backups.go | 1 + .../mgmt/2016-12-01/backup/engines.go | 3 + .../backup/itemlevelrecoveryconnections.go | 2 + .../2016-12-01/backup/operationresults.go | 1 + .../2016-12-01/backup/operationstatuses.go | 1 + .../backup/protectablecontainers.go | 2 + .../2016-12-01/backup/protectableitems.go | 2 + .../backup/protecteditemoperationstatuses.go | 1 + .../protectioncontaineroperationresults.go | 1 + ...tectioncontainerrefreshoperationresults.go | 1 + .../2016-12-01/backup/protectioncontainers.go | 5 + .../backup/protectioncontainersgroup.go | 2 + .../2016-12-01/backup/protectionpolicies.go | 1 + .../protectionpolicyoperationstatuses.go | 1 + .../backup/resourcestorageconfigs.go | 3 + .../mgmt/2016-12-01/backup/securitypins.go | 1 + .../mgmt/2016-12-01/backup/workloaditems.go | 2 + .../siterecovery/migrationrecoverypoints.go | 3 + .../2018-01-10/siterecovery/operations.go | 2 + .../2018-01-10/siterecovery/recoverypoints.go | 3 + .../siterecovery/replicationalertsettings.go | 4 + .../siterecovery/replicationevents.go | 3 + .../siterecovery/replicationfabrics.go | 3 + .../siterecovery/replicationjobs.go | 3 + .../replicationlogicalnetworks.go | 3 + .../siterecovery/replicationmigrationitems.go | 5 + .../replicationnetworkmappings.go | 5 + .../siterecovery/replicationnetworks.go | 5 + .../siterecovery/replicationpolicies.go | 3 + .../replicationprotectableitems.go | 3 + .../siterecovery/replicationprotecteditems.go | 5 + .../replicationprotectioncontainermappings.go | 5 + .../replicationprotectioncontainers.go | 5 + .../siterecovery/replicationrecoveryplans.go | 3 + .../replicationrecoveryservicesproviders.go | 5 + ...eplicationstorageclassificationmappings.go | 5 + .../replicationstorageclassifications.go | 5 + .../siterecovery/replicationvaulthealth.go | 1 + .../siterecovery/replicationvcenters.go | 5 + .../siterecovery/targetcomputesizes.go | 2 + .../siterecovery/migrationrecoverypoints.go | 3 + .../2018-07-10/siterecovery/operations.go | 2 + .../2018-07-10/siterecovery/recoverypoints.go | 3 + .../siterecovery/replicationalertsettings.go | 4 + .../replicationeligibilityresults.go | 2 + .../siterecovery/replicationevents.go | 3 + .../siterecovery/replicationfabrics.go | 3 + .../siterecovery/replicationjobs.go | 3 + .../replicationlogicalnetworks.go | 3 + .../siterecovery/replicationmigrationitems.go | 5 + .../replicationnetworkmappings.go | 5 + .../siterecovery/replicationnetworks.go | 5 + .../siterecovery/replicationpolicies.go | 3 + .../replicationprotectableitems.go | 3 + .../siterecovery/replicationprotecteditems.go | 5 + .../replicationprotectioncontainermappings.go | 5 + .../replicationprotectioncontainers.go | 5 + .../replicationprotectionintents.go | 4 + .../siterecovery/replicationrecoveryplans.go | 3 + .../replicationrecoveryservicesproviders.go | 5 + ...eplicationstorageclassificationmappings.go | 5 + .../replicationstorageclassifications.go | 5 + .../siterecovery/replicationvaulthealth.go | 1 + .../siterecovery/replicationvaultsetting.go | 4 + .../siterecovery/replicationvcenters.go | 5 + .../siterecovery/supportedoperatingsystems.go | 1 + .../siterecovery/targetcomputesizes.go | 2 + .../mgmt/2019-05-13/backup/backups.go | 1 + .../mgmt/2019-05-13/backup/engines.go | 3 + .../backup/exportjobsoperationresults.go | 1 + .../mgmt/2019-05-13/backup/featuresupport.go | 1 + .../backup/itemlevelrecoveryconnections.go | 2 + .../2019-05-13/backup/jobcancellations.go | 1 + .../mgmt/2019-05-13/backup/jobdetails.go | 1 + .../2019-05-13/backup/joboperationresults.go | 1 + .../mgmt/2019-05-13/backup/jobs.go | 2 + .../mgmt/2019-05-13/backup/jobsgroup.go | 1 + .../mgmt/2019-05-13/backup/operation.go | 1 + .../2019-05-13/backup/operationresults.go | 1 + .../mgmt/2019-05-13/backup/operations.go | 2 + .../2019-05-13/backup/operationstatuses.go | 1 + .../mgmt/2019-05-13/backup/policies.go | 2 + .../backup/protectablecontainers.go | 2 + .../2019-05-13/backup/protectableitems.go | 2 + .../backup/protecteditemoperationresults.go | 1 + .../backup/protecteditemoperationstatuses.go | 1 + .../mgmt/2019-05-13/backup/protecteditems.go | 3 + .../2019-05-13/backup/protecteditemsgroup.go | 2 + .../protectioncontaineroperationresults.go | 1 + ...tectioncontainerrefreshoperationresults.go | 1 + .../2019-05-13/backup/protectioncontainers.go | 5 + .../backup/protectioncontainersgroup.go | 2 + .../2019-05-13/backup/protectionintent.go | 4 + .../backup/protectionintentgroup.go | 2 + .../2019-05-13/backup/protectionpolicies.go | 3 + .../protectionpolicyoperationresults.go | 1 + .../protectionpolicyoperationstatuses.go | 1 + .../mgmt/2019-05-13/backup/recoverypoints.go | 3 + .../backup/resourcestorageconfigs.go | 3 + .../2019-05-13/backup/resourcevaultconfigs.go | 2 + .../mgmt/2019-05-13/backup/restores.go | 1 + .../mgmt/2019-05-13/backup/securitypins.go | 1 + .../mgmt/2019-05-13/backup/status.go | 1 + .../mgmt/2019-05-13/backup/usagesummaries.go | 1 + .../mgmt/2019-05-13/backup/workloaditems.go | 2 + .../mgmt/2019-06-15/backup/backups.go | 1 + .../mgmt/2019-06-15/backup/engines.go | 3 + .../backup/exportjobsoperationresults.go | 1 + .../mgmt/2019-06-15/backup/featuresupport.go | 1 + .../backup/itemlevelrecoveryconnections.go | 2 + .../2019-06-15/backup/jobcancellations.go | 1 + .../mgmt/2019-06-15/backup/jobdetails.go | 1 + .../2019-06-15/backup/joboperationresults.go | 1 + .../mgmt/2019-06-15/backup/jobs.go | 2 + .../mgmt/2019-06-15/backup/jobsgroup.go | 1 + .../mgmt/2019-06-15/backup/operation.go | 1 + .../2019-06-15/backup/operationresults.go | 1 + .../mgmt/2019-06-15/backup/operations.go | 2 + .../2019-06-15/backup/operationstatuses.go | 1 + .../mgmt/2019-06-15/backup/policies.go | 2 + .../backup/protectablecontainers.go | 2 + .../2019-06-15/backup/protectableitems.go | 2 + .../backup/protecteditemoperationresults.go | 1 + .../backup/protecteditemoperationstatuses.go | 1 + .../mgmt/2019-06-15/backup/protecteditems.go | 3 + .../2019-06-15/backup/protecteditemsgroup.go | 2 + .../protectioncontaineroperationresults.go | 1 + ...tectioncontainerrefreshoperationresults.go | 1 + .../2019-06-15/backup/protectioncontainers.go | 5 + .../backup/protectioncontainersgroup.go | 2 + .../2019-06-15/backup/protectionintent.go | 4 + .../backup/protectionintentgroup.go | 2 + .../2019-06-15/backup/protectionpolicies.go | 3 + .../protectionpolicyoperationresults.go | 1 + .../protectionpolicyoperationstatuses.go | 1 + .../mgmt/2019-06-15/backup/recoverypoints.go | 3 + .../backup/resourcestorageconfigs.go | 3 + .../2019-06-15/backup/resourcevaultconfigs.go | 3 + .../mgmt/2019-06-15/backup/restores.go | 1 + .../mgmt/2019-06-15/backup/securitypins.go | 1 + .../mgmt/2019-06-15/backup/status.go | 1 + .../mgmt/2019-06-15/backup/usagesummaries.go | 1 + .../mgmt/2019-06-15/backup/workloaditems.go | 2 + .../mgmt/2020-02-02/backup/backups.go | 1 + .../mgmt/2020-02-02/backup/client.go | 1 + .../mgmt/2020-02-02/backup/engines.go | 3 + .../backup/exportjobsoperationresults.go | 1 + .../mgmt/2020-02-02/backup/featuresupport.go | 1 + .../backup/itemlevelrecoveryconnections.go | 2 + .../2020-02-02/backup/jobcancellations.go | 1 + .../mgmt/2020-02-02/backup/jobdetails.go | 1 + .../2020-02-02/backup/joboperationresults.go | 1 + .../mgmt/2020-02-02/backup/jobs.go | 2 + .../mgmt/2020-02-02/backup/jobsgroup.go | 1 + .../mgmt/2020-02-02/backup/operation.go | 1 + .../2020-02-02/backup/operationresults.go | 1 + .../mgmt/2020-02-02/backup/operations.go | 2 + .../2020-02-02/backup/operationstatuses.go | 1 + .../mgmt/2020-02-02/backup/policies.go | 2 + .../backup/privateendpointconnection.go | 1 + .../backup/protectablecontainers.go | 2 + .../2020-02-02/backup/protectableitems.go | 2 + .../backup/protecteditemoperationresults.go | 1 + .../backup/protecteditemoperationstatuses.go | 1 + .../mgmt/2020-02-02/backup/protecteditems.go | 3 + .../2020-02-02/backup/protecteditemsgroup.go | 2 + .../protectioncontaineroperationresults.go | 1 + ...tectioncontainerrefreshoperationresults.go | 1 + .../2020-02-02/backup/protectioncontainers.go | 5 + .../backup/protectioncontainersgroup.go | 2 + .../2020-02-02/backup/protectionintent.go | 4 + .../backup/protectionintentgroup.go | 2 + .../2020-02-02/backup/protectionpolicies.go | 3 + .../protectionpolicyoperationresults.go | 1 + .../protectionpolicyoperationstatuses.go | 1 + .../mgmt/2020-02-02/backup/recoverypoints.go | 3 + .../backup/resourcestorageconfigs.go | 3 + .../2020-02-02/backup/resourcevaultconfigs.go | 3 + .../mgmt/2020-02-02/backup/restores.go | 1 + .../mgmt/2020-02-02/backup/securitypins.go | 1 + .../mgmt/2020-02-02/backup/status.go | 1 + .../mgmt/2020-02-02/backup/usagesummaries.go | 1 + .../mgmt/2020-02-02/backup/workloaditems.go | 2 + .../redhatopenshift/openshiftclusters.go | 6 + .../2020-04-30/redhatopenshift/operations.go | 2 + services/redis/mgmt/2015-08-01/redis/redis.go | 10 + .../mgmt/2016-04-01/redis/firewallrule.go | 3 + .../mgmt/2016-04-01/redis/firewallrules.go | 2 + .../redis/mgmt/2016-04-01/redis/operations.go | 2 + .../mgmt/2016-04-01/redis/patchschedules.go | 3 + services/redis/mgmt/2016-04-01/redis/redis.go | 9 + .../mgmt/2017-02-01/redis/firewallrules.go | 5 + .../mgmt/2017-02-01/redis/linkedserver.go | 3 + .../redis/mgmt/2017-02-01/redis/operations.go | 2 + .../mgmt/2017-02-01/redis/patchschedules.go | 3 + services/redis/mgmt/2017-02-01/redis/redis.go | 9 + .../mgmt/2017-10-01/redis/firewallrules.go | 5 + .../mgmt/2017-10-01/redis/linkedserver.go | 4 + .../redis/mgmt/2017-10-01/redis/operations.go | 2 + .../mgmt/2017-10-01/redis/patchschedules.go | 5 + services/redis/mgmt/2017-10-01/redis/redis.go | 11 + .../mgmt/2018-03-01/redis/firewallrules.go | 5 + .../mgmt/2018-03-01/redis/linkedserver.go | 4 + .../redis/mgmt/2018-03-01/redis/operations.go | 2 + .../mgmt/2018-03-01/redis/patchschedules.go | 5 + services/redis/mgmt/2018-03-01/redis/redis.go | 11 + .../2016-07-01/relay/hybridconnections.go | 15 + .../relay/mgmt/2016-07-01/relay/namespaces.go | 17 + .../relay/mgmt/2016-07-01/relay/operations.go | 2 + .../relay/mgmt/2016-07-01/relay/wcfrelays.go | 15 + .../2017-04-01/relay/hybridconnections.go | 12 + .../relay/mgmt/2017-04-01/relay/namespaces.go | 14 + .../relay/mgmt/2017-04-01/relay/operations.go | 2 + .../relay/mgmt/2017-04-01/relay/wcfrelays.go | 12 + .../mgmt/2017-11-01/reservations/client.go | 2 + .../mgmt/2017-11-01/reservations/operation.go | 2 + .../mgmt/2017-11-01/reservations/order.go | 3 + .../2017-11-01/reservations/reservation.go | 5 + .../mgmt/2019-04-01/resourcegraph/client.go | 1 + .../2019-04-01/resourcegraph/operations.go | 1 + .../resourcehealth/availabilitystatuses.go | 7 + .../childavailabilitystatuses.go | 3 + .../resourcehealth/childresources.go | 2 + .../2015-01-01/resourcehealth/operations.go | 1 + .../resourcehealth/availabilitystatuses.go | 7 + .../childavailabilitystatuses.go | 3 + .../resourcehealth/childresources.go | 2 + .../resourcehealth/emergingissues.go | 3 + .../2017-07-01/resourcehealth/operations.go | 1 + .../mgmt/2015-01-01/locks/managementlocks.go | 14 + .../resources/deploymentoperations.go | 3 + .../mgmt/2015-11-01/resources/deployments.go | 7 + .../mgmt/2015-11-01/resources/groups.go | 8 + .../2015-11-01/resources/policyassignments.go | 14 + .../2015-11-01/resources/policydefinitions.go | 3 + .../resources/provideroperationdetails.go | 2 + .../mgmt/2015-11-01/resources/providers.go | 5 + .../mgmt/2015-11-01/resources/resources.go | 6 + .../mgmt/2015-11-01/resources/tags.go | 6 + .../mgmt/2015-11-01/subscriptions/client.go | 1 + .../2015-11-01/subscriptions/subscriptions.go | 4 + .../mgmt/2015-11-01/subscriptions/tenants.go | 2 + .../mgmt/2015-12-01/features/client.go | 2 + .../mgmt/2015-12-01/features/features.go | 7 + .../resources/deploymentoperations.go | 3 + .../mgmt/2016-02-01/resources/deployments.go | 8 + .../mgmt/2016-02-01/resources/groups.go | 9 + .../mgmt/2016-02-01/resources/providers.go | 5 + .../mgmt/2016-02-01/resources/resources.go | 6 + .../mgmt/2016-02-01/resources/tags.go | 6 + .../mgmt/2016-04-01/policy/assignments.go | 12 + .../mgmt/2016-04-01/policy/definitions.go | 5 + .../mgmt/2016-06-01/subscriptions/client.go | 1 + .../2016-06-01/subscriptions/operations.go | 2 + .../2016-06-01/subscriptions/subscriptions.go | 4 + .../mgmt/2016-06-01/subscriptions/tenants.go | 2 + .../resources/deploymentoperations.go | 3 + .../mgmt/2016-07-01/resources/deployments.go | 8 + .../mgmt/2016-07-01/resources/groups.go | 9 + .../mgmt/2016-07-01/resources/providers.go | 5 + .../mgmt/2016-07-01/resources/resources.go | 6 + .../mgmt/2016-07-01/resources/tags.go | 6 + .../mgmt/2016-09-01/links/operations.go | 2 + .../mgmt/2016-09-01/links/resourcelinks.go | 7 + .../locks/authorizationoperations.go | 2 + .../mgmt/2016-09-01/locks/managementlocks.go | 20 + .../resources/deploymentoperations.go | 3 + .../mgmt/2016-09-01/resources/deployments.go | 8 + .../mgmt/2016-09-01/resources/groups.go | 9 + .../mgmt/2016-09-01/resources/providers.go | 5 + .../mgmt/2016-09-01/resources/resources.go | 6 + .../mgmt/2016-09-01/resources/tags.go | 6 + .../mgmt/2016-12-01/policy/assignments.go | 12 + .../mgmt/2016-12-01/policy/definitions.go | 13 + .../resources/deploymentoperations.go | 3 + .../mgmt/2017-05-10/resources/deployments.go | 8 + .../mgmt/2017-05-10/resources/groups.go | 7 + .../mgmt/2017-05-10/resources/providers.go | 5 + .../mgmt/2017-05-10/resources/resources.go | 8 + .../mgmt/2017-05-10/resources/tags.go | 6 + .../applicationdefinitions.go | 4 + .../managedapplications/applications.go | 8 + .../resources/deploymentoperations.go | 3 + .../mgmt/2018-02-01/resources/deployments.go | 8 + .../mgmt/2018-02-01/resources/groups.go | 7 + .../mgmt/2018-02-01/resources/providers.go | 5 + .../mgmt/2018-02-01/resources/resources.go | 8 + .../mgmt/2018-02-01/resources/tags.go | 6 + .../mgmt/2018-03-01/policy/assignments.go | 12 + .../mgmt/2018-03-01/policy/definitions.go | 13 + .../mgmt/2018-03-01/policy/setdefinitions.go | 13 + .../mgmt/2018-05-01/policy/assignments.go | 12 + .../mgmt/2018-05-01/policy/definitions.go | 13 + .../mgmt/2018-05-01/policy/setdefinitions.go | 13 + .../resources/deploymentoperations.go | 6 + .../mgmt/2018-05-01/resources/deployments.go | 15 + .../mgmt/2018-05-01/resources/groups.go | 7 + .../mgmt/2018-05-01/resources/operations.go | 2 + .../mgmt/2018-05-01/resources/providers.go | 5 + .../mgmt/2018-05-01/resources/resources.go | 8 + .../mgmt/2018-05-01/resources/tags.go | 6 + .../applicationdefinitions.go | 4 + .../managedapplications/applications.go | 8 + .../2018-06-01/managedapplications/client.go | 2 + .../mgmt/2018-06-01/subscriptions/client.go | 1 + .../2018-06-01/subscriptions/operations.go | 2 + .../2018-06-01/subscriptions/subscriptions.go | 4 + .../mgmt/2018-06-01/subscriptions/tenants.go | 2 + .../mgmt/2019-01-01/policy/assignments.go | 12 + .../mgmt/2019-01-01/policy/definitions.go | 13 + .../mgmt/2019-01-01/policy/setdefinitions.go | 13 + .../resources/deploymentoperations.go | 6 + .../mgmt/2019-03-01/resources/deployments.go | 15 + .../mgmt/2019-03-01/resources/groups.go | 7 + .../mgmt/2019-03-01/resources/operations.go | 2 + .../mgmt/2019-03-01/resources/providers.go | 5 + .../mgmt/2019-03-01/resources/resources.go | 8 + .../mgmt/2019-03-01/resources/tags.go | 6 + .../resources/deploymentoperations.go | 9 + .../mgmt/2019-05-01/resources/deployments.go | 22 + .../mgmt/2019-05-01/resources/groups.go | 7 + .../mgmt/2019-05-01/resources/operations.go | 2 + .../mgmt/2019-05-01/resources/providers.go | 5 + .../mgmt/2019-05-01/resources/resources.go | 8 + .../mgmt/2019-05-01/resources/tags.go | 6 + .../mgmt/2019-06-01/policy/assignments.go | 12 + .../mgmt/2019-06-01/policy/definitions.go | 13 + .../mgmt/2019-06-01/policy/setdefinitions.go | 13 + .../mgmt/2019-06-01/subscriptions/client.go | 1 + .../2019-06-01/subscriptions/operations.go | 2 + .../2019-06-01/subscriptions/subscriptions.go | 4 + .../mgmt/2019-06-01/subscriptions/tenants.go | 2 + .../features/deploymentoperations.go | 15 + .../mgmt/2019-07-01/features/deployments.go | 36 ++ .../mgmt/2019-07-01/features/operations.go | 2 + .../mgmt/2019-07-01/features/providers.go | 8 + .../2019-07-01/features/resourcegroups.go | 7 + .../mgmt/2019-07-01/features/resources.go | 8 + .../mgmt/2019-07-01/features/tags.go | 6 + .../applicationdefinitions.go | 4 + .../managedapplications/applications.go | 8 + .../2019-07-01/managedapplications/client.go | 2 + .../managedapplications/jitrequests.go | 5 + .../mgmt/2019-09-01/policy/assignments.go | 14 + .../mgmt/2019-09-01/policy/definitions.go | 13 + .../mgmt/2019-09-01/policy/setdefinitions.go | 13 + .../resources/deploymentoperations.go | 15 + .../mgmt/2019-10-01/resources/deployments.go | 31 ++ .../mgmt/2019-10-01/resources/groups.go | 6 + .../mgmt/2019-10-01/resources/operations.go | 2 + .../mgmt/2019-10-01/resources/providers.go | 8 + .../mgmt/2019-10-01/resources/resources.go | 8 + .../mgmt/2019-10-01/resources/tags.go | 10 + .../2019-11-01/managementgroups/client.go | 3 + .../2019-11-01/managementgroups/entities.go | 2 + .../managementgroups/managementgroups.go | 6 + .../2019-11-01/managementgroups/operations.go | 2 + .../managementgroups/subscriptions.go | 2 + .../mgmt/2019-11-01/subscriptions/client.go | 1 + .../2019-11-01/subscriptions/operations.go | 2 + .../2019-11-01/subscriptions/subscriptions.go | 4 + .../mgmt/2019-11-01/subscriptions/tenants.go | 2 + .../2020-02-01/managementgroups/client.go | 3 + .../2020-02-01/managementgroups/entities.go | 2 + .../managementgroups/hierarchysettings.go | 5 + .../managementgroups/managementgroups.go | 6 + .../2020-02-01/managementgroups/operations.go | 2 + .../managementgroups/subscriptions.go | 2 + .../2020-05-01/managementgroups/client.go | 3 + .../2020-05-01/managementgroups/entities.go | 2 + .../managementgroups/hierarchysettings.go | 5 + .../managementgroups/managementgroups.go | 6 + .../2020-05-01/managementgroups/operations.go | 2 + .../managementgroups/subscriptions.go | 5 + .../resources/deploymentoperations.go | 15 + .../mgmt/2020-06-01/resources/deployments.go | 31 ++ .../mgmt/2020-06-01/resources/groups.go | 6 + .../mgmt/2020-06-01/resources/operations.go | 2 + .../mgmt/2020-06-01/resources/providers.go | 9 + .../mgmt/2020-06-01/resources/resources.go | 8 + .../mgmt/2020-06-01/resources/tags.go | 10 + .../2016-01-01/scheduler/jobcollections.go | 10 + .../mgmt/2016-01-01/scheduler/jobs.go | 9 + .../2016-03-01/scheduler/jobcollections.go | 7 + .../mgmt/2016-03-01/scheduler/jobs.go | 9 + .../mgmt/2015-02-28/search/adminkeys.go | 1 + .../mgmt/2015-02-28/search/querykeys.go | 1 + .../search/mgmt/2015-02-28/search/services.go | 3 + .../mgmt/2015-08-19/search/adminkeys.go | 2 + .../mgmt/2015-08-19/search/operations.go | 1 + .../mgmt/2015-08-19/search/querykeys.go | 4 + .../search/mgmt/2015-08-19/search/services.go | 6 + .../mgmt/2020-03-13/search/adminkeys.go | 2 + .../mgmt/2020-03-13/search/operations.go | 1 + .../search/privateendpointconnections.go | 5 + .../2020-03-13/search/privatelinkresources.go | 1 + .../mgmt/2020-03-13/search/querykeys.go | 4 + .../search/mgmt/2020-03-13/search/services.go | 8 + .../mgmt/2020-08-01/search/adminkeys.go | 2 + .../mgmt/2020-08-01/search/operations.go | 1 + .../search/privateendpointconnections.go | 5 + .../2020-08-01/search/privatelinkresources.go | 1 + .../mgmt/2020-08-01/search/querykeys.go | 4 + .../search/mgmt/2020-08-01/search/services.go | 8 + .../search/sharedprivatelinkresources.go | 3 + .../mgmt/v1.0/securityinsight/actions.go | 2 + .../mgmt/v1.0/securityinsight/alertrules.go | 8 + .../securityinsight/alertruletemplates.go | 3 + .../mgmt/v1.0/securityinsight/bookmarks.go | 5 + .../v1.0/securityinsight/dataconnectors.go | 5 + .../v1.0/securityinsight/incidentcomments.go | 4 + .../mgmt/v1.0/securityinsight/incidents.go | 5 + .../mgmt/v1.0/securityinsight/operations.go | 2 + .../mgmt/2018-05-01/serialconsole/client.go | 4 + .../mgmt/2015-08-01/servicebus/namespaces.go | 14 + .../mgmt/2015-08-01/servicebus/operations.go | 2 + .../mgmt/2015-08-01/servicebus/queues.go | 13 + .../2015-08-01/servicebus/subscriptions.go | 5 + .../mgmt/2015-08-01/servicebus/topics.go | 13 + .../servicebus/disasterrecoveryconfigs.go | 12 + .../mgmt/2017-04-01/servicebus/eventhubs.go | 2 + .../2017-04-01/servicebus/migrationconfigs.go | 6 + .../mgmt/2017-04-01/servicebus/namespaces.go | 19 + .../mgmt/2017-04-01/servicebus/operations.go | 2 + .../servicebus/premiummessagingregions.go | 2 + .../mgmt/2017-04-01/servicebus/queues.go | 12 + .../mgmt/2017-04-01/servicebus/regions.go | 2 + .../mgmt/2017-04-01/servicebus/rules.go | 5 + .../2017-04-01/servicebus/subscriptions.go | 5 + .../mgmt/2017-04-01/servicebus/topics.go | 12 + .../servicefabric/6.2/servicefabric/client.go | 195 +++++++++ .../servicefabric/6.3/servicefabric/client.go | 205 +++++++++ .../servicefabric/6.4/servicefabric/client.go | 197 +++++++++ .../6.4/servicefabric/meshapplication.go | 4 + .../6.4/servicefabric/meshcodepackage.go | 1 + .../6.4/servicefabric/meshgateway.go | 4 + .../6.4/servicefabric/meshnetwork.go | 4 + .../6.4/servicefabric/meshsecret.go | 4 + .../6.4/servicefabric/meshsecretvalue.go | 5 + .../6.4/servicefabric/meshservice.go | 2 + .../6.4/servicefabric/meshservicereplica.go | 2 + .../6.4/servicefabric/meshvolume.go | 4 + .../servicefabric/6.5/servicefabric/client.go | 204 +++++++++ .../6.5/servicefabric/meshapplication.go | 4 + .../6.5/servicefabric/meshcodepackage.go | 1 + .../6.5/servicefabric/meshgateway.go | 4 + .../6.5/servicefabric/meshnetwork.go | 4 + .../6.5/servicefabric/meshsecret.go | 4 + .../6.5/servicefabric/meshsecretvalue.go | 5 + .../6.5/servicefabric/meshservice.go | 2 + .../6.5/servicefabric/meshservicereplica.go | 2 + .../6.5/servicefabric/meshvolume.go | 4 + .../servicefabric/7.0/servicefabric/client.go | 208 +++++++++ .../7.0/servicefabric/meshapplication.go | 5 + .../7.0/servicefabric/meshcodepackage.go | 1 + .../7.0/servicefabric/meshgateway.go | 4 + .../7.0/servicefabric/meshnetwork.go | 4 + .../7.0/servicefabric/meshsecret.go | 4 + .../7.0/servicefabric/meshsecretvalue.go | 5 + .../7.0/servicefabric/meshservice.go | 2 + .../7.0/servicefabric/meshservicereplica.go | 2 + .../7.0/servicefabric/meshvolume.go | 4 + .../servicefabric/7.2/servicefabric/client.go | 209 +++++++++ .../7.2/servicefabric/meshapplication.go | 5 + .../7.2/servicefabric/meshcodepackage.go | 1 + .../7.2/servicefabric/meshgateway.go | 4 + .../7.2/servicefabric/meshnetwork.go | 4 + .../7.2/servicefabric/meshsecret.go | 4 + .../7.2/servicefabric/meshsecretvalue.go | 5 + .../7.2/servicefabric/meshservice.go | 2 + .../7.2/servicefabric/meshservicereplica.go | 2 + .../7.2/servicefabric/meshvolume.go | 4 + .../mgmt/2016-09-01/servicefabric/clusters.go | 6 + .../servicefabric/clusterversions.go | 7 + .../2016-09-01/servicefabric/operations.go | 2 + .../2019-03-01/servicefabric/applications.go | 2 + .../servicefabric/applicationtypes.go | 3 + .../servicefabric/applicationtypeversions.go | 2 + .../mgmt/2019-03-01/servicefabric/clusters.go | 4 + .../servicefabric/clusterversions.go | 4 + .../2019-03-01/servicefabric/operations.go | 2 + .../mgmt/2019-03-01/servicefabric/services.go | 2 + .../mgmt/2018-10-01/signalr/operations.go | 2 + .../mgmt/2018-10-01/signalr/signalr.go | 7 + .../signalr/mgmt/2018-10-01/signalr/usages.go | 2 + .../mgmt/2020-05-01/signalr/operations.go | 2 + .../signalr/privateendpointconnections.go | 2 + .../signalr/privatelinkresources.go | 2 + .../mgmt/2020-05-01/signalr/signalr.go | 7 + .../signalr/mgmt/2020-05-01/signalr/usages.go | 2 + .../sql/mgmt/2014-04-01/sql/capabilities.go | 1 + .../mgmt/2014-04-01/sql/databaseadvisors.go | 3 + .../sql/databaseconnectionpolicies.go | 2 + services/sql/mgmt/2014-04-01/sql/databases.go | 9 + .../sql/databasetableauditingpolicies.go | 3 + .../sql/databasethreatdetectionpolicies.go | 2 + .../sql/mgmt/2014-04-01/sql/databaseusages.go | 1 + .../2014-04-01/sql/datamaskingpolicies.go | 2 + .../mgmt/2014-04-01/sql/datamaskingrules.go | 2 + .../sql/disasterrecoveryconfigurations.go | 2 + .../2014-04-01/sql/elasticpoolactivities.go | 1 + .../sql/elasticpooldatabaseactivities.go | 1 + .../sql/mgmt/2014-04-01/sql/elasticpools.go | 5 + .../sql/mgmt/2014-04-01/sql/extensions.go | 2 + .../sql/mgmt/2014-04-01/sql/firewallrules.go | 4 + .../mgmt/2014-04-01/sql/geobackuppolicies.go | 3 + .../sql/mgmt/2014-04-01/sql/operations.go | 1 + services/sql/mgmt/2014-04-01/sql/queries.go | 1 + .../mgmt/2014-04-01/sql/querystatistics.go | 1 + .../sql/mgmt/2014-04-01/sql/querytexts.go | 1 + .../2014-04-01/sql/recommendedelasticpools.go | 3 + .../2014-04-01/sql/recoverabledatabases.go | 2 + .../mgmt/2014-04-01/sql/replicationlinks.go | 3 + .../sql/restorabledroppeddatabases.go | 2 + .../sql/mgmt/2014-04-01/sql/restorepoints.go | 1 + .../sql/mgmt/2014-04-01/sql/serveradvisors.go | 4 + .../sql/serverazureadadministrators.go | 2 + .../sql/servercommunicationlinks.go | 3 + .../sql/serverconnectionpolicies.go | 2 + services/sql/mgmt/2014-04-01/sql/servers.go | 7 + .../sql/servertableauditingpolicies.go | 3 + .../sql/mgmt/2014-04-01/sql/serverusages.go | 1 + .../mgmt/2014-04-01/sql/serviceobjectives.go | 2 + .../2014-04-01/sql/servicetieradvisors.go | 2 + .../transparentdataencryptionactivities.go | 1 + ...transparentdataencryptionconfigurations.go | 1 + .../sql/transparentdataencryptions.go | 2 + .../2018-11-09/storagedatalake/filesystem.go | 5 + .../2018-11-09/storagedatalake/path.go | 7 + .../2019-10-31/storagedatalake/filesystem.go | 5 + .../2019-10-31/storagedatalake/path.go | 7 + .../mgmt/2015-06-15/storage/accounts.go | 8 + .../storage/mgmt/2015-06-15/storage/usage.go | 1 + .../mgmt/2016-01-01/storage/accounts.go | 8 + .../storage/mgmt/2016-01-01/storage/usage.go | 1 + .../mgmt/2016-05-01/storage/accounts.go | 10 + .../storage/mgmt/2016-05-01/storage/usage.go | 1 + .../mgmt/2016-12-01/storage/accounts.go | 10 + .../storage/mgmt/2016-12-01/storage/usage.go | 1 + .../mgmt/2017-06-01/storage/accounts.go | 10 + .../mgmt/2017-06-01/storage/operations.go | 1 + .../storage/mgmt/2017-06-01/storage/skus.go | 1 + .../storage/mgmt/2017-06-01/storage/usage.go | 1 + .../mgmt/2017-10-01/storage/accounts.go | 10 + .../mgmt/2017-10-01/storage/operations.go | 1 + .../storage/mgmt/2017-10-01/storage/skus.go | 1 + .../storage/mgmt/2017-10-01/storage/usage.go | 1 + .../mgmt/2018-02-01/storage/accounts.go | 10 + .../mgmt/2018-02-01/storage/blobcontainers.go | 13 + .../mgmt/2018-02-01/storage/operations.go | 1 + .../storage/mgmt/2018-02-01/storage/skus.go | 1 + .../storage/mgmt/2018-02-01/storage/usage.go | 2 + .../mgmt/2018-11-01/storage/accounts.go | 11 + .../mgmt/2018-11-01/storage/blobcontainers.go | 13 + .../mgmt/2018-11-01/storage/blobservices.go | 2 + .../2018-11-01/storage/managementpolicies.go | 3 + .../mgmt/2018-11-01/storage/operations.go | 1 + .../storage/mgmt/2018-11-01/storage/skus.go | 1 + .../storage/mgmt/2018-11-01/storage/usages.go | 1 + .../mgmt/2019-04-01/storage/accounts.go | 12 + .../mgmt/2019-04-01/storage/blobcontainers.go | 14 + .../mgmt/2019-04-01/storage/blobservices.go | 3 + .../mgmt/2019-04-01/storage/fileservices.go | 3 + .../mgmt/2019-04-01/storage/fileshares.go | 6 + .../2019-04-01/storage/managementpolicies.go | 3 + .../mgmt/2019-04-01/storage/operations.go | 1 + .../storage/mgmt/2019-04-01/storage/skus.go | 1 + .../storage/mgmt/2019-04-01/storage/usages.go | 1 + .../mgmt/2019-06-01/storage/accounts.go | 12 + .../mgmt/2019-06-01/storage/blobcontainers.go | 14 + .../mgmt/2019-06-01/storage/blobservices.go | 3 + .../2019-06-01/storage/encryptionscopes.go | 5 + .../mgmt/2019-06-01/storage/fileservices.go | 3 + .../mgmt/2019-06-01/storage/fileshares.go | 7 + .../2019-06-01/storage/managementpolicies.go | 3 + .../storage/objectreplicationpolicies.go | 4 + .../mgmt/2019-06-01/storage/operations.go | 1 + .../storage/privateendpointconnections.go | 4 + .../storage/privatelinkresources.go | 1 + .../storage/mgmt/2019-06-01/storage/queue.go | 6 + .../mgmt/2019-06-01/storage/queueservices.go | 3 + .../storage/mgmt/2019-06-01/storage/skus.go | 1 + .../storage/mgmt/2019-06-01/storage/table.go | 6 + .../mgmt/2019-06-01/storage/tableservices.go | 3 + .../storage/mgmt/2019-06-01/storage/usages.go | 1 + .../mgmt/2019-11-01/storagecache/caches.go | 6 + .../2019-11-01/storagecache/operations.go | 2 + .../mgmt/2019-11-01/storagecache/skus.go | 2 + .../2019-11-01/storagecache/storagetargets.go | 3 + .../2019-11-01/storagecache/usagemodels.go | 2 + .../2020-03-01/storagecache/ascoperations.go | 1 + .../mgmt/2020-03-01/storagecache/caches.go | 6 + .../2020-03-01/storagecache/operations.go | 2 + .../mgmt/2020-03-01/storagecache/skus.go | 2 + .../2020-03-01/storagecache/storagetargets.go | 3 + .../2020-03-01/storagecache/usagemodels.go | 2 + .../storageimportexport/bitlockerkeys.go | 1 + .../2016-11-01/storageimportexport/jobs.go | 8 + .../storageimportexport/locations.go | 2 + .../storageimportexport/operations.go | 1 + .../storageimportexport/bitlockerkeys.go | 1 + .../2020-08-01/storageimportexport/jobs.go | 8 + .../storageimportexport/locations.go | 2 + .../storageimportexport/operations.go | 1 + .../2018-04-02/storagesync/cloudendpoints.go | 3 + .../mgmt/2018-04-02/storagesync/operations.go | 2 + .../storagesync/registeredservers.go | 2 + .../2018-04-02/storagesync/serverendpoints.go | 2 + .../mgmt/2018-04-02/storagesync/services.go | 7 + .../mgmt/2018-04-02/storagesync/syncgroups.go | 4 + .../mgmt/2018-04-02/storagesync/workflows.go | 2 + .../2018-07-01/storagesync/cloudendpoints.go | 3 + .../mgmt/2018-07-01/storagesync/operations.go | 2 + .../storagesync/registeredservers.go | 2 + .../2018-07-01/storagesync/serverendpoints.go | 2 + .../mgmt/2018-07-01/storagesync/services.go | 7 + .../mgmt/2018-07-01/storagesync/syncgroups.go | 4 + .../mgmt/2018-07-01/storagesync/workflows.go | 3 + .../2018-10-01/storagesync/cloudendpoints.go | 3 + .../mgmt/2018-10-01/storagesync/operations.go | 2 + .../storagesync/registeredservers.go | 2 + .../2018-10-01/storagesync/serverendpoints.go | 2 + .../mgmt/2018-10-01/storagesync/services.go | 7 + .../mgmt/2018-10-01/storagesync/syncgroups.go | 4 + .../mgmt/2018-10-01/storagesync/workflows.go | 3 + .../2019-02-01/storagesync/cloudendpoints.go | 3 + .../mgmt/2019-02-01/storagesync/operations.go | 2 + .../storagesync/registeredservers.go | 2 + .../2019-02-01/storagesync/serverendpoints.go | 2 + .../mgmt/2019-02-01/storagesync/services.go | 7 + .../mgmt/2019-02-01/storagesync/syncgroups.go | 4 + .../mgmt/2019-02-01/storagesync/workflows.go | 3 + .../2019-06-01/storagesync/cloudendpoints.go | 3 + .../mgmt/2019-06-01/storagesync/operations.go | 2 + .../2019-06-01/storagesync/operationstatus.go | 1 + .../storagesync/registeredservers.go | 2 + .../2019-06-01/storagesync/serverendpoints.go | 2 + .../mgmt/2019-06-01/storagesync/services.go | 7 + .../mgmt/2019-06-01/storagesync/syncgroups.go | 4 + .../mgmt/2019-06-01/storagesync/workflows.go | 3 + .../2019-10-01/storagesync/cloudendpoints.go | 3 + .../mgmt/2019-10-01/storagesync/operations.go | 2 + .../2019-10-01/storagesync/operationstatus.go | 1 + .../storagesync/registeredservers.go | 2 + .../2019-10-01/storagesync/serverendpoints.go | 2 + .../mgmt/2019-10-01/storagesync/services.go | 7 + .../mgmt/2019-10-01/storagesync/syncgroups.go | 4 + .../mgmt/2019-10-01/storagesync/workflows.go | 3 + .../2020-03-01/storagesync/cloudendpoints.go | 3 + .../mgmt/2020-03-01/storagesync/operations.go | 2 + .../2020-03-01/storagesync/operationstatus.go | 1 + .../storagesync/privateendpointconnections.go | 2 + .../storagesync/privatelinkresources.go | 1 + .../storagesync/registeredservers.go | 2 + .../2020-03-01/storagesync/serverendpoints.go | 2 + .../mgmt/2020-03-01/storagesync/services.go | 4 + .../mgmt/2020-03-01/storagesync/syncgroups.go | 4 + .../mgmt/2020-03-01/storagesync/workflows.go | 3 + .../storsimple/accesscontrolrecords.go | 2 + .../mgmt/2016-10-01/storsimple/alerts.go | 4 + .../storsimple/availableprovideroperations.go | 2 + .../mgmt/2016-10-01/storsimple/backups.go | 4 + .../storsimple/backupschedulegroups.go | 2 + .../2016-10-01/storsimple/chapsettings.go | 2 + .../mgmt/2016-10-01/storsimple/devices.go | 9 + .../mgmt/2016-10-01/storsimple/fileservers.go | 5 + .../mgmt/2016-10-01/storsimple/fileshares.go | 5 + .../mgmt/2016-10-01/storsimple/iscsidisks.go | 5 + .../2016-10-01/storsimple/iscsiservers.go | 5 + .../mgmt/2016-10-01/storsimple/jobs.go | 5 + .../mgmt/2016-10-01/storsimple/managers.go | 15 + .../storsimple/storageaccountcredentials.go | 2 + .../2016-10-01/storsimple/storagedomains.go | 2 + .../storsimple/accesscontrolrecords.go | 2 + .../mgmt/2017-06-01/storsimple/alerts.go | 4 + .../2017-06-01/storsimple/backuppolicies.go | 2 + .../mgmt/2017-06-01/storsimple/backups.go | 2 + .../2017-06-01/storsimple/backupschedules.go | 2 + .../storsimple/bandwidthsettings.go | 2 + .../2017-06-01/storsimple/cloudappliances.go | 1 + .../mgmt/2017-06-01/storsimple/devices.go | 9 + .../2017-06-01/storsimple/devicesettings.go | 4 + .../storsimple/hardwarecomponentgroups.go | 1 + .../mgmt/2017-06-01/storsimple/jobs.go | 5 + .../mgmt/2017-06-01/storsimple/managers.go | 18 + .../mgmt/2017-06-01/storsimple/operations.go | 2 + .../storsimple/storageaccountcredentials.go | 2 + .../2017-06-01/storsimple/volumecontainers.go | 4 + .../mgmt/2017-06-01/storsimple/volumes.go | 5 + .../2016-03-01/streamanalytics/functions.go | 7 + .../mgmt/2016-03-01/streamanalytics/inputs.go | 6 + .../2016-03-01/streamanalytics/operations.go | 2 + .../2016-03-01/streamanalytics/outputs.go | 6 + .../streamanalytics/streamingjobs.go | 6 + .../streamanalytics/subscriptions.go | 1 + .../streamanalytics/transformations.go | 3 + .../mgmt/2020-09-01/subscription/alias.go | 3 + .../2020-09-01/subscription/operations.go | 1 + .../2020-09-01/subscription/subscription.go | 3 + .../2020-09-01/subscription/subscriptions.go | 4 + .../mgmt/2020-09-01/subscription/tenants.go | 2 + .../mgmt/2020-04-01/support/communications.go | 4 + .../mgmt/2020-04-01/support/operations.go | 1 + .../support/problemclassifications.go | 2 + .../mgmt/2020-04-01/support/services.go | 2 + .../mgmt/2020-04-01/support/tickets.go | 5 + .../timeseriesinsights/accesspolicies.go | 5 + .../timeseriesinsights/environments.go | 4 + .../timeseriesinsights/eventsources.go | 5 + .../timeseriesinsights/operations.go | 2 + .../timeseriesinsights/referencedatasets.go | 5 + .../timeseriesinsights/accesspolicies.go | 5 + .../timeseriesinsights/environments.go | 4 + .../timeseriesinsights/eventsources.go | 5 + .../timeseriesinsights/operations.go | 2 + .../timeseriesinsights/referencedatasets.go | 5 + .../2015-11-01/trafficmanager/endpoints.go | 4 + .../2015-11-01/trafficmanager/profiles.go | 7 + .../2017-03-01/trafficmanager/endpoints.go | 4 + .../trafficmanager/geographichierarchies.go | 1 + .../2017-03-01/trafficmanager/profiles.go | 7 + .../2017-05-01/trafficmanager/endpoints.go | 4 + .../trafficmanager/geographichierarchies.go | 1 + .../2017-05-01/trafficmanager/profiles.go | 7 + .../2018-03-01/trafficmanager/endpoints.go | 4 + .../trafficmanager/geographichierarchies.go | 1 + .../mgmt/2018-03-01/trafficmanager/heatmap.go | 1 + .../2018-03-01/trafficmanager/profiles.go | 7 + .../2018-04-01/trafficmanager/endpoints.go | 4 + .../trafficmanager/geographichierarchies.go | 1 + .../mgmt/2018-04-01/trafficmanager/heatmap.go | 1 + .../2018-04-01/trafficmanager/profiles.go | 7 + .../trafficmanager/usermetricskeys.go | 3 + .../virtualmachineimagebuilder/operations.go | 2 + .../virtualmachineimagetemplates.go | 8 + .../customizationpolicies.go | 3 + .../vmwarecloudsimple/dedicatedcloudnodes.go | 7 + .../dedicatedcloudservices.go | 7 + .../vmwarecloudsimple/operations.go | 3 + .../vmwarecloudsimple/privateclouds.go | 3 + .../vmwarecloudsimple/resourcepools.go | 3 + .../vmwarecloudsimple/skusavailability.go | 2 + .../2019-04-01/vmwarecloudsimple/usages.go | 2 + .../vmwarecloudsimple/virtualmachines.go | 5 + .../virtualmachinetemplates.go | 3 + .../vmwarecloudsimple/virtualnetworks.go | 3 + services/web/mgmt/2016-09-01/web/apps.go | 344 +++++++++++++++ .../web/appservicecertificateorders.go | 21 + .../2016-09-01/web/appserviceenvironments.go | 54 +++ .../mgmt/2016-09-01/web/appserviceplans.go | 36 ++ .../web/mgmt/2016-09-01/web/billingmeters.go | 2 + .../web/certificateregistrationprovider.go | 2 + .../web/mgmt/2016-09-01/web/certificates.go | 8 + services/web/mgmt/2016-09-01/web/client.go | 19 + .../web/mgmt/2016-09-01/web/deletedwebapps.go | 2 + .../web/mgmt/2016-09-01/web/diagnostics.go | 33 ++ .../web/domainregistrationprovider.go | 2 + services/web/mgmt/2016-09-01/web/domains.go | 18 + services/web/mgmt/2016-09-01/web/provider.go | 6 + .../mgmt/2016-09-01/web/recommendations.go | 12 + .../2016-09-01/web/resourcehealthmetadata.go | 10 + .../mgmt/2016-09-01/web/topleveldomains.go | 5 + services/web/mgmt/2018-02-01/web/apps.go | 392 +++++++++++++++++ .../web/appservicecertificateorders.go | 21 + .../2018-02-01/web/appserviceenvironments.go | 58 +++ .../mgmt/2018-02-01/web/appserviceplans.go | 36 ++ .../web/certificateregistrationprovider.go | 2 + .../web/mgmt/2018-02-01/web/certificates.go | 8 + services/web/mgmt/2018-02-01/web/client.go | 22 + .../web/mgmt/2018-02-01/web/deletedwebapps.go | 5 + .../web/mgmt/2018-02-01/web/diagnostics.go | 33 ++ .../web/domainregistrationprovider.go | 2 + services/web/mgmt/2018-02-01/web/domains.go | 18 + services/web/mgmt/2018-02-01/web/provider.go | 6 + .../mgmt/2018-02-01/web/recommendations.go | 20 + .../2018-02-01/web/resourcehealthmetadata.go | 10 + .../mgmt/2018-02-01/web/topleveldomains.go | 5 + services/web/mgmt/2019-08-01/web/apps.go | 393 +++++++++++++++++ .../web/appservicecertificateorders.go | 21 + .../2019-08-01/web/appserviceenvironments.go | 47 +++ .../mgmt/2019-08-01/web/appserviceplans.go | 32 ++ .../web/certificateregistrationprovider.go | 2 + .../web/mgmt/2019-08-01/web/certificates.go | 8 + services/web/mgmt/2019-08-01/web/client.go | 21 + .../web/mgmt/2019-08-01/web/deletedwebapps.go | 5 + .../web/mgmt/2019-08-01/web/diagnostics.go | 31 ++ .../web/domainregistrationprovider.go | 2 + services/web/mgmt/2019-08-01/web/domains.go | 18 + services/web/mgmt/2019-08-01/web/provider.go | 6 + .../mgmt/2019-08-01/web/recommendations.go | 20 + .../2019-08-01/web/resourcehealthmetadata.go | 10 + .../web/mgmt/2019-08-01/web/staticsites.go | 33 ++ .../mgmt/2019-08-01/web/topleveldomains.go | 5 + services/web/mgmt/2020-06-01/web/apps.go | 395 ++++++++++++++++++ .../web/appservicecertificateorders.go | 21 + .../2020-06-01/web/appserviceenvironments.go | 47 +++ .../mgmt/2020-06-01/web/appserviceplans.go | 32 ++ .../web/certificateregistrationprovider.go | 2 + .../web/mgmt/2020-06-01/web/certificates.go | 8 + services/web/mgmt/2020-06-01/web/client.go | 21 + .../web/mgmt/2020-06-01/web/deletedwebapps.go | 5 + .../web/mgmt/2020-06-01/web/diagnostics.go | 31 ++ .../web/domainregistrationprovider.go | 2 + services/web/mgmt/2020-06-01/web/domains.go | 18 + services/web/mgmt/2020-06-01/web/provider.go | 6 + .../mgmt/2020-06-01/web/recommendations.go | 20 + .../2020-06-01/web/resourcehealthmetadata.go | 10 + .../web/mgmt/2020-06-01/web/staticsites.go | 34 ++ .../mgmt/2020-06-01/web/topleveldomains.go | 5 + .../mgmt/2019-06-01/windowsiot/operations.go | 2 + .../mgmt/2019-06-01/windowsiot/services.go | 9 + 7102 files changed, 35477 insertions(+) diff --git a/services/aad/mgmt/2017-04-01/aad/diagnosticsettings.go b/services/aad/mgmt/2017-04-01/aad/diagnosticsettings.go index 84b8bfcf55ae..f938bbba7afa 100644 --- a/services/aad/mgmt/2017-04-01/aad/diagnosticsettings.go +++ b/services/aad/mgmt/2017-04-01/aad/diagnosticsettings.go @@ -73,6 +73,7 @@ func (client DiagnosticSettingsClient) CreateOrUpdate(ctx context.Context, param result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.DiagnosticSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -147,6 +148,7 @@ func (client DiagnosticSettingsClient) Delete(ctx context.Context, name string) result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.DiagnosticSettingsClient", "Delete", resp, "Failure responding to request") + return } return @@ -218,6 +220,7 @@ func (client DiagnosticSettingsClient) Get(ctx context.Context, name string) (re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.DiagnosticSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -288,6 +291,7 @@ func (client DiagnosticSettingsClient) List(ctx context.Context) (result Diagnos result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.DiagnosticSettingsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/aad/mgmt/2017-04-01/aad/diagnosticsettingscategory.go b/services/aad/mgmt/2017-04-01/aad/diagnosticsettingscategory.go index 29ed26b82133..3b5f39fe4ecb 100644 --- a/services/aad/mgmt/2017-04-01/aad/diagnosticsettingscategory.go +++ b/services/aad/mgmt/2017-04-01/aad/diagnosticsettingscategory.go @@ -70,6 +70,7 @@ func (client DiagnosticSettingsCategoryClient) List(ctx context.Context) (result result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.DiagnosticSettingsCategoryClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/aad/mgmt/2017-04-01/aad/operations.go b/services/aad/mgmt/2017-04-01/aad/operations.go index 1aa4255dbc26..760903619ba3 100644 --- a/services/aad/mgmt/2017-04-01/aad/operations.go +++ b/services/aad/mgmt/2017-04-01/aad/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsDisco result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addomainservicemembers.go b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addomainservicemembers.go index 8cdaf2eb80a5..4f16a3f6da48 100644 --- a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addomainservicemembers.go +++ b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addomainservicemembers.go @@ -78,6 +78,7 @@ func (client AdDomainServiceMembersClient) List(ctx context.Context, serviceName result.asm, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AdDomainServiceMembersClient", "List", resp, "Failure responding to request") + return } if result.asm.hasNextLink() && result.asm.IsEmpty() { err = result.NextWithContext(ctx) @@ -152,6 +153,7 @@ func (client AdDomainServiceMembersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AdDomainServiceMembersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservice.go b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservice.go index 8ba557b7682d..e0de009ce091 100644 --- a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservice.go +++ b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservice.go @@ -77,6 +77,7 @@ func (client AddsServiceClient) GetMetrics(ctx context.Context, serviceName stri result, err = client.GetMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceClient", "GetMetrics", resp, "Failure responding to request") + return } return diff --git a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservicemembers.go b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservicemembers.go index c214f8cfa973..ecc23e645d0f 100644 --- a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservicemembers.go +++ b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservicemembers.go @@ -78,6 +78,7 @@ func (client AddsServiceMembersClient) Delete(ctx context.Context, serviceName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceMembersClient", "Delete", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client AddsServiceMembersClient) Get(ctx context.Context, serviceName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceMembersClient", "Get", resp, "Failure responding to request") + return } return @@ -231,6 +233,7 @@ func (client AddsServiceMembersClient) List(ctx context.Context, serviceName str result.asm, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceMembersClient", "List", resp, "Failure responding to request") + return } if result.asm.hasNextLink() && result.asm.IsEmpty() { err = result.NextWithContext(ctx) @@ -296,6 +299,7 @@ func (client AddsServiceMembersClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceMembersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -349,6 +353,7 @@ func (client AddsServiceMembersClient) ListCredentials(ctx context.Context, serv result, err = client.ListCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceMembersClient", "ListCredentials", resp, "Failure responding to request") + return } return diff --git a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservices.go b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservices.go index 4a06e3bc8319..ef4efb34cae0 100644 --- a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservices.go +++ b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservices.go @@ -73,6 +73,7 @@ func (client AddsServicesClient) Add(ctx context.Context, service ServicePropert result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "Add", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client AddsServicesClient) Delete(ctx context.Context, serviceName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -221,6 +223,7 @@ func (client AddsServicesClient) Get(ctx context.Context, serviceName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -294,6 +297,7 @@ func (client AddsServicesClient) GetForestSummary(ctx context.Context, serviceNa result, err = client.GetForestSummaryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "GetForestSummary", resp, "Failure responding to request") + return } return @@ -367,6 +371,7 @@ func (client AddsServicesClient) GetMetricMetadata(ctx context.Context, serviceN result, err = client.GetMetricMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "GetMetricMetadata", resp, "Failure responding to request") + return } return @@ -445,6 +450,7 @@ func (client AddsServicesClient) GetMetricMetadataForGroup(ctx context.Context, result, err = client.GetMetricMetadataForGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "GetMetricMetadataForGroup", resp, "Failure responding to request") + return } return @@ -536,6 +542,7 @@ func (client AddsServicesClient) List(ctx context.Context, filter string, servic result.s, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "List", resp, "Failure responding to request") + return } if result.s.hasNextLink() && result.s.IsEmpty() { err = result.NextWithContext(ctx) @@ -606,6 +613,7 @@ func (client AddsServicesClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -659,6 +667,7 @@ func (client AddsServicesClient) ListMetricMetadata(ctx context.Context, service result.mml, err = client.ListMetricMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "ListMetricMetadata", resp, "Failure responding to request") + return } if result.mml.hasNextLink() && result.mml.IsEmpty() { err = result.NextWithContext(ctx) @@ -727,6 +736,7 @@ func (client AddsServicesClient) listMetricMetadataNextResults(ctx context.Conte result, err = client.ListMetricMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "listMetricMetadataNextResults", resp, "Failure responding to next results request") + return } return } @@ -780,6 +790,7 @@ func (client AddsServicesClient) ListMetricsAverage(ctx context.Context, service result.mVar, err = client.ListMetricsAverageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "ListMetricsAverage", resp, "Failure responding to request") + return } if result.mVar.hasNextLink() && result.mVar.IsEmpty() { err = result.NextWithContext(ctx) @@ -844,6 +855,7 @@ func (client AddsServicesClient) listMetricsAverageNextResults(ctx context.Conte result, err = client.ListMetricsAverageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "listMetricsAverageNextResults", resp, "Failure responding to next results request") + return } return } @@ -897,6 +909,7 @@ func (client AddsServicesClient) ListMetricsSum(ctx context.Context, serviceName result.mVar, err = client.ListMetricsSumResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "ListMetricsSum", resp, "Failure responding to request") + return } if result.mVar.hasNextLink() && result.mVar.IsEmpty() { err = result.NextWithContext(ctx) @@ -961,6 +974,7 @@ func (client AddsServicesClient) listMetricsSumNextResults(ctx context.Context, result, err = client.ListMetricsSumResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "listMetricsSumNextResults", resp, "Failure responding to next results request") + return } return } @@ -1019,6 +1033,7 @@ func (client AddsServicesClient) ListPremiumServices(ctx context.Context, filter result.s, err = client.ListPremiumServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "ListPremiumServices", resp, "Failure responding to request") + return } if result.s.hasNextLink() && result.s.IsEmpty() { err = result.NextWithContext(ctx) @@ -1089,6 +1104,7 @@ func (client AddsServicesClient) listPremiumServicesNextResults(ctx context.Cont result, err = client.ListPremiumServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "listPremiumServicesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1142,6 +1158,7 @@ func (client AddsServicesClient) ListReplicationDetails(ctx context.Context, ser result, err = client.ListReplicationDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "ListReplicationDetails", resp, "Failure responding to request") + return } return @@ -1225,6 +1242,7 @@ func (client AddsServicesClient) ListReplicationSummary(ctx context.Context, ser result, err = client.ListReplicationSummaryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "ListReplicationSummary", resp, "Failure responding to request") + return } return @@ -1314,6 +1332,7 @@ func (client AddsServicesClient) ListServerAlerts(ctx context.Context, serviceMe result.a, err = client.ListServerAlertsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "ListServerAlerts", resp, "Failure responding to request") + return } if result.a.hasNextLink() && result.a.IsEmpty() { err = result.NextWithContext(ctx) @@ -1389,6 +1408,7 @@ func (client AddsServicesClient) listServerAlertsNextResults(ctx context.Context result, err = client.ListServerAlertsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "listServerAlertsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1440,6 +1460,7 @@ func (client AddsServicesClient) Update(ctx context.Context, serviceName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservicesreplicationstatus.go b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservicesreplicationstatus.go index 28d4c10531af..e19833ff2d87 100644 --- a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservicesreplicationstatus.go +++ b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservicesreplicationstatus.go @@ -73,6 +73,7 @@ func (client AddsServicesReplicationStatusClient) Get(ctx context.Context, servi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesReplicationStatusClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservicesservicemembers.go b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservicesservicemembers.go index e06e78aa5cbb..33d8503dd1ee 100644 --- a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservicesservicemembers.go +++ b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservicesservicemembers.go @@ -74,6 +74,7 @@ func (client AddsServicesServiceMembersClient) Add(ctx context.Context, serviceN result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesServiceMembersClient", "Add", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client AddsServicesServiceMembersClient) List(ctx context.Context, service result.sm, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesServiceMembersClient", "List", resp, "Failure responding to request") + return } if result.sm.hasNextLink() && result.sm.IsEmpty() { err = result.NextWithContext(ctx) @@ -224,6 +226,7 @@ func (client AddsServicesServiceMembersClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesServiceMembersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservicesuserpreference.go b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservicesuserpreference.go index 5d16138fd69b..98b57430fb63 100644 --- a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservicesuserpreference.go +++ b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservicesuserpreference.go @@ -74,6 +74,7 @@ func (client AddsServicesUserPreferenceClient) Add(ctx context.Context, serviceN result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesUserPreferenceClient", "Add", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client AddsServicesUserPreferenceClient) Delete(ctx context.Context, servi result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesUserPreferenceClient", "Delete", resp, "Failure responding to request") + return } return @@ -222,6 +224,7 @@ func (client AddsServicesUserPreferenceClient) Get(ctx context.Context, serviceN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesUserPreferenceClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/alerts.go b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/alerts.go index 221f968cc84b..e05a2b457d06 100644 --- a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/alerts.go +++ b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/alerts.go @@ -77,6 +77,7 @@ func (client AlertsClient) ListAddsAlerts(ctx context.Context, serviceName strin result.a, err = client.ListAddsAlertsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AlertsClient", "ListAddsAlerts", resp, "Failure responding to request") + return } if result.a.hasNextLink() && result.a.IsEmpty() { err = result.NextWithContext(ctx) @@ -151,6 +152,7 @@ func (client AlertsClient) listAddsAlertsNextResults(ctx context.Context, lastRe result, err = client.ListAddsAlertsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.AlertsClient", "listAddsAlertsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/configuration.go b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/configuration.go index 13caf2bc7b7e..fec8b5853c89 100644 --- a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/configuration.go +++ b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/configuration.go @@ -69,6 +69,7 @@ func (client ConfigurationClient) Add(ctx context.Context) (result Tenant, err e result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ConfigurationClient", "Add", resp, "Failure responding to request") + return } return @@ -135,6 +136,7 @@ func (client ConfigurationClient) Get(ctx context.Context) (result Tenant, err e result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ConfigurationClient", "Get", resp, "Failure responding to request") + return } return @@ -205,6 +207,7 @@ func (client ConfigurationClient) ListAddsConfigurations(ctx context.Context, se result.ac, err = client.ListAddsConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ConfigurationClient", "ListAddsConfigurations", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -267,6 +270,7 @@ func (client ConfigurationClient) listAddsConfigurationsNextResults(ctx context. result, err = client.ListAddsConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ConfigurationClient", "listAddsConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -317,6 +321,7 @@ func (client ConfigurationClient) Update(ctx context.Context, tenant Tenant) (re result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ConfigurationClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/dimensions.go b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/dimensions.go index 1c8d5bbce862..ba59ddbeed8c 100644 --- a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/dimensions.go +++ b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/dimensions.go @@ -73,6 +73,7 @@ func (client DimensionsClient) ListAddsDimensions(ctx context.Context, serviceNa result.d, err = client.ListAddsDimensionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.DimensionsClient", "ListAddsDimensions", resp, "Failure responding to request") + return } if result.d.hasNextLink() && result.d.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client DimensionsClient) listAddsDimensionsNextResults(ctx context.Context result, err = client.ListAddsDimensionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.DimensionsClient", "listAddsDimensionsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/list.go b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/list.go index c089820cfccc..1c0336865023 100644 --- a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/list.go +++ b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/list.go @@ -73,6 +73,7 @@ func (client ListClient) IPAddressAggregatesByService(ctx context.Context, servi result.iaa, err = client.IPAddressAggregatesByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ListClient", "IPAddressAggregatesByService", resp, "Failure responding to request") + return } if result.iaa.hasNextLink() && result.iaa.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client ListClient) iPAddressAggregatesByServiceNextResults(ctx context.Con result, err = client.IPAddressAggregatesByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ListClient", "iPAddressAggregatesByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -188,6 +190,7 @@ func (client ListClient) IPAddressAggregateSettings(ctx context.Context, service result, err = client.IPAddressAggregateSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ListClient", "IPAddressAggregateSettings", resp, "Failure responding to request") + return } return diff --git a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/operations.go b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/operations.go index 3e88b391eb12..0888dc2ea400 100644 --- a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/operations.go +++ b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/reports.go b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/reports.go index 3fc99475f4f1..10cdf116084c 100644 --- a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/reports.go +++ b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/reports.go @@ -69,6 +69,7 @@ func (client ReportsClient) GetDevOps(ctx context.Context) (result Result, err e result, err = client.GetDevOpsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ReportsClient", "GetDevOps", resp, "Failure responding to request") + return } return diff --git a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/service.go b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/service.go index 605a155bcab8..095533d3f922 100644 --- a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/service.go +++ b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/service.go @@ -77,6 +77,7 @@ func (client ServiceClient) GetMetrics(ctx context.Context, serviceName string, result, err = client.GetMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceClient", "GetMetrics", resp, "Failure responding to request") + return } return diff --git a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/servicemembers.go b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/servicemembers.go index b682b84e9054..085c9897d466 100644 --- a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/servicemembers.go +++ b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/servicemembers.go @@ -74,6 +74,7 @@ func (client ServiceMembersClient) Add(ctx context.Context, serviceName string, result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "Add", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client ServiceMembersClient) Delete(ctx context.Context, serviceName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "Delete", resp, "Failure responding to request") + return } return @@ -228,6 +230,7 @@ func (client ServiceMembersClient) DeleteData(ctx context.Context, serviceName s result, err = client.DeleteDataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "DeleteData", resp, "Failure responding to request") + return } return @@ -302,6 +305,7 @@ func (client ServiceMembersClient) Get(ctx context.Context, serviceName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "Get", resp, "Failure responding to request") + return } return @@ -377,6 +381,7 @@ func (client ServiceMembersClient) GetConnectorMetadata(ctx context.Context, ser result, err = client.GetConnectorMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "GetConnectorMetadata", resp, "Failure responding to request") + return } return @@ -457,6 +462,7 @@ func (client ServiceMembersClient) GetMetrics(ctx context.Context, serviceName s result, err = client.GetMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "GetMetrics", resp, "Failure responding to request") + return } return @@ -542,6 +548,7 @@ func (client ServiceMembersClient) GetServiceConfiguration(ctx context.Context, result, err = client.GetServiceConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "GetServiceConfiguration", resp, "Failure responding to request") + return } return @@ -620,6 +627,7 @@ func (client ServiceMembersClient) List(ctx context.Context, serviceName string, result.sm, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "List", resp, "Failure responding to request") + return } if result.sm.hasNextLink() && result.sm.IsEmpty() { err = result.NextWithContext(ctx) @@ -691,6 +699,7 @@ func (client ServiceMembersClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -747,6 +756,7 @@ func (client ServiceMembersClient) ListAlerts(ctx context.Context, serviceMember result.a, err = client.ListAlertsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "ListAlerts", resp, "Failure responding to request") + return } if result.a.hasNextLink() && result.a.IsEmpty() { err = result.NextWithContext(ctx) @@ -822,6 +832,7 @@ func (client ServiceMembersClient) listAlertsNextResults(ctx context.Context, la result, err = client.ListAlertsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "listAlertsNextResults", resp, "Failure responding to next results request") + return } return } @@ -873,6 +884,7 @@ func (client ServiceMembersClient) ListConnectors(ctx context.Context, serviceNa result, err = client.ListConnectorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "ListConnectors", resp, "Failure responding to request") + return } return @@ -949,6 +961,7 @@ func (client ServiceMembersClient) ListCredentials(ctx context.Context, serviceN result, err = client.ListCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "ListCredentials", resp, "Failure responding to request") + return } return @@ -1026,6 +1039,7 @@ func (client ServiceMembersClient) ListDataFreshness(ctx context.Context, servic result, err = client.ListDataFreshnessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "ListDataFreshness", resp, "Failure responding to request") + return } return @@ -1101,6 +1115,7 @@ func (client ServiceMembersClient) ListExportStatus(ctx context.Context, service result.es, err = client.ListExportStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "ListExportStatus", resp, "Failure responding to request") + return } if result.es.hasNextLink() && result.es.IsEmpty() { err = result.NextWithContext(ctx) @@ -1164,6 +1179,7 @@ func (client ServiceMembersClient) listExportStatusNextResults(ctx context.Conte result, err = client.ListExportStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "listExportStatusNextResults", resp, "Failure responding to next results request") + return } return } @@ -1215,6 +1231,7 @@ func (client ServiceMembersClient) ListGlobalConfiguration(ctx context.Context, result, err = client.ListGlobalConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "ListGlobalConfiguration", resp, "Failure responding to request") + return } return diff --git a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/services.go b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/services.go index a533e33b012b..90d6df882730 100644 --- a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/services.go +++ b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/services.go @@ -72,6 +72,7 @@ func (client ServicesClient) Add(ctx context.Context, service ServiceProperties) result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "Add", resp, "Failure responding to request") + return } return @@ -143,6 +144,7 @@ func (client ServicesClient) AddAlertFeedback(ctx context.Context, serviceName s result, err = client.AddAlertFeedbackResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "AddAlertFeedback", resp, "Failure responding to request") + return } return @@ -220,6 +222,7 @@ func (client ServicesClient) Delete(ctx context.Context, serviceName string, con result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -295,6 +298,7 @@ func (client ServicesClient) Get(ctx context.Context, serviceName string) (resul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -368,6 +372,7 @@ func (client ServicesClient) GetFeatureAvailibility(ctx context.Context, service result, err = client.GetFeatureAvailibilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "GetFeatureAvailibility", resp, "Failure responding to request") + return } return @@ -442,6 +447,7 @@ func (client ServicesClient) GetMetricMetadata(ctx context.Context, serviceName result, err = client.GetMetricMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "GetMetricMetadata", resp, "Failure responding to request") + return } return @@ -520,6 +526,7 @@ func (client ServicesClient) GetMetricMetadataForGroup(ctx context.Context, serv result, err = client.GetMetricMetadataForGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "GetMetricMetadataForGroup", resp, "Failure responding to request") + return } return @@ -604,6 +611,7 @@ func (client ServicesClient) GetTenantWhitelisting(ctx context.Context, serviceN result, err = client.GetTenantWhitelistingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "GetTenantWhitelisting", resp, "Failure responding to request") + return } return @@ -684,6 +692,7 @@ func (client ServicesClient) List(ctx context.Context, filter string, serviceTyp result.s, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "List", resp, "Failure responding to request") + return } if result.s.hasNextLink() && result.s.IsEmpty() { err = result.NextWithContext(ctx) @@ -754,6 +763,7 @@ func (client ServicesClient) listNextResults(ctx context.Context, lastResults Se result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -805,6 +815,7 @@ func (client ServicesClient) ListAlertFeedback(ctx context.Context, serviceName result, err = client.ListAlertFeedbackResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "ListAlertFeedback", resp, "Failure responding to request") + return } return @@ -883,6 +894,7 @@ func (client ServicesClient) ListAlerts(ctx context.Context, serviceName string, result.a, err = client.ListAlertsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "ListAlerts", resp, "Failure responding to request") + return } if result.a.hasNextLink() && result.a.IsEmpty() { err = result.NextWithContext(ctx) @@ -957,6 +969,7 @@ func (client ServicesClient) listAlertsNextResults(ctx context.Context, lastResu result, err = client.ListAlertsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "listAlertsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1007,6 +1020,7 @@ func (client ServicesClient) ListAllRiskyIPDownloadReport(ctx context.Context, s result, err = client.ListAllRiskyIPDownloadReportResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "ListAllRiskyIPDownloadReport", resp, "Failure responding to request") + return } return @@ -1079,6 +1093,7 @@ func (client ServicesClient) ListCurrentRiskyIPDownloadReport(ctx context.Contex result, err = client.ListCurrentRiskyIPDownloadReportResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "ListCurrentRiskyIPDownloadReport", resp, "Failure responding to request") + return } return @@ -1151,6 +1166,7 @@ func (client ServicesClient) ListExportErrors(ctx context.Context, serviceName s result, err = client.ListExportErrorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "ListExportErrors", resp, "Failure responding to request") + return } return @@ -1224,6 +1240,7 @@ func (client ServicesClient) ListExportErrorsV2(ctx context.Context, serviceName result, err = client.ListExportErrorsV2Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "ListExportErrorsV2", resp, "Failure responding to request") + return } return @@ -1298,6 +1315,7 @@ func (client ServicesClient) ListExportStatus(ctx context.Context, serviceName s result.es, err = client.ListExportStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "ListExportStatus", resp, "Failure responding to request") + return } if result.es.hasNextLink() && result.es.IsEmpty() { err = result.NextWithContext(ctx) @@ -1360,6 +1378,7 @@ func (client ServicesClient) listExportStatusNextResults(ctx context.Context, la result, err = client.ListExportStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "listExportStatusNextResults", resp, "Failure responding to next results request") + return } return } @@ -1413,6 +1432,7 @@ func (client ServicesClient) ListMetricMetadata(ctx context.Context, serviceName result.mml, err = client.ListMetricMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "ListMetricMetadata", resp, "Failure responding to request") + return } if result.mml.hasNextLink() && result.mml.IsEmpty() { err = result.NextWithContext(ctx) @@ -1481,6 +1501,7 @@ func (client ServicesClient) listMetricMetadataNextResults(ctx context.Context, result, err = client.ListMetricMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "listMetricMetadataNextResults", resp, "Failure responding to next results request") + return } return } @@ -1534,6 +1555,7 @@ func (client ServicesClient) ListMetricsAverage(ctx context.Context, serviceName result.mVar, err = client.ListMetricsAverageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "ListMetricsAverage", resp, "Failure responding to request") + return } if result.mVar.hasNextLink() && result.mVar.IsEmpty() { err = result.NextWithContext(ctx) @@ -1598,6 +1620,7 @@ func (client ServicesClient) listMetricsAverageNextResults(ctx context.Context, result, err = client.ListMetricsAverageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "listMetricsAverageNextResults", resp, "Failure responding to next results request") + return } return } @@ -1651,6 +1674,7 @@ func (client ServicesClient) ListMetricsSum(ctx context.Context, serviceName str result.mVar, err = client.ListMetricsSumResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "ListMetricsSum", resp, "Failure responding to request") + return } if result.mVar.hasNextLink() && result.mVar.IsEmpty() { err = result.NextWithContext(ctx) @@ -1715,6 +1739,7 @@ func (client ServicesClient) listMetricsSumNextResults(ctx context.Context, last result, err = client.ListMetricsSumResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "listMetricsSumNextResults", resp, "Failure responding to next results request") + return } return } @@ -1765,6 +1790,7 @@ func (client ServicesClient) ListMonitoringConfigurations(ctx context.Context, s result, err = client.ListMonitoringConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "ListMonitoringConfigurations", resp, "Failure responding to request") + return } return @@ -1845,6 +1871,7 @@ func (client ServicesClient) ListPremium(ctx context.Context, filter string, ser result.s, err = client.ListPremiumResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "ListPremium", resp, "Failure responding to request") + return } if result.s.hasNextLink() && result.s.IsEmpty() { err = result.NextWithContext(ctx) @@ -1915,6 +1942,7 @@ func (client ServicesClient) listPremiumNextResults(ctx context.Context, lastRes result, err = client.ListPremiumResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "listPremiumNextResults", resp, "Failure responding to next results request") + return } return } @@ -1966,6 +1994,7 @@ func (client ServicesClient) ListUserBadPasswordReport(ctx context.Context, serv result, err = client.ListUserBadPasswordReportResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "ListUserBadPasswordReport", resp, "Failure responding to request") + return } return @@ -2042,6 +2071,7 @@ func (client ServicesClient) Update(ctx context.Context, serviceName string, ser result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "Update", resp, "Failure responding to request") + return } return @@ -2117,6 +2147,7 @@ func (client ServicesClient) UpdateMonitoringConfiguration(ctx context.Context, result, err = client.UpdateMonitoringConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServicesClient", "UpdateMonitoringConfiguration", resp, "Failure responding to request") + return } return diff --git a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/update.go b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/update.go index 102043fd9477..bb5fd49e9b27 100644 --- a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/update.go +++ b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/update.go @@ -72,6 +72,7 @@ func (client UpdateClient) IPAddressAggregateSettings(ctx context.Context, servi result, err = client.IPAddressAggregateSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "adhybridhealthservice.UpdateClient", "IPAddressAggregateSettings", resp, "Failure responding to request") + return } return diff --git a/services/advisor/mgmt/2017-03-31/advisor/operations.go b/services/advisor/mgmt/2017-03-31/advisor/operations.go index 06f9f82411e7..06bb2dbb45e1 100644 --- a/services/advisor/mgmt/2017-03-31/advisor/operations.go +++ b/services/advisor/mgmt/2017-03-31/advisor/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationEntity result.oelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.OperationsClient", "List", resp, "Failure responding to request") + return } if result.oelr.hasNextLink() && result.oelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/advisor/mgmt/2017-03-31/advisor/recommendations.go b/services/advisor/mgmt/2017-03-31/advisor/recommendations.go index 9f6c4e8792a4..d4d0a88b2313 100644 --- a/services/advisor/mgmt/2017-03-31/advisor/recommendations.go +++ b/services/advisor/mgmt/2017-03-31/advisor/recommendations.go @@ -71,6 +71,7 @@ func (client RecommendationsClient) Generate(ctx context.Context) (result autore result, err = client.GenerateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "Generate", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client RecommendationsClient) Get(ctx context.Context, resourceURI string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "Get", resp, "Failure responding to request") + return } return @@ -220,6 +222,7 @@ func (client RecommendationsClient) GetGenerateStatus(ctx context.Context, opera result, err = client.GetGenerateStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "GetGenerateStatus", resp, "Failure responding to request") + return } return @@ -296,6 +299,7 @@ func (client RecommendationsClient) List(ctx context.Context, filter string, top result.rrblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "List", resp, "Failure responding to request") + return } if result.rrblr.hasNextLink() && result.rrblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +371,7 @@ func (client RecommendationsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/advisor/mgmt/2017-03-31/advisor/suppressions.go b/services/advisor/mgmt/2017-03-31/advisor/suppressions.go index 301add75df64..b7e2ab8c483a 100644 --- a/services/advisor/mgmt/2017-03-31/advisor/suppressions.go +++ b/services/advisor/mgmt/2017-03-31/advisor/suppressions.go @@ -76,6 +76,7 @@ func (client SuppressionsClient) Create(ctx context.Context, resourceURI string, result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.SuppressionsClient", "Create", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client SuppressionsClient) Delete(ctx context.Context, resourceURI string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.SuppressionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client SuppressionsClient) Get(ctx context.Context, resourceURI string, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.SuppressionsClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +308,7 @@ func (client SuppressionsClient) List(ctx context.Context) (result ListSuppressi result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.SuppressionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/advisor/mgmt/2017-04-19/advisor/configurations.go b/services/advisor/mgmt/2017-04-19/advisor/configurations.go index 399ee4843de9..2c467396bdd0 100644 --- a/services/advisor/mgmt/2017-04-19/advisor/configurations.go +++ b/services/advisor/mgmt/2017-04-19/advisor/configurations.go @@ -72,6 +72,7 @@ func (client ConfigurationsClient) CreateInResourceGroup(ctx context.Context, co result, err = client.CreateInResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.ConfigurationsClient", "CreateInResourceGroup", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client ConfigurationsClient) CreateInSubscription(ctx context.Context, con result, err = client.CreateInSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.ConfigurationsClient", "CreateInSubscription", resp, "Failure responding to request") + return } return @@ -222,6 +224,7 @@ func (client ConfigurationsClient) ListByResourceGroup(ctx context.Context, reso result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.ConfigurationsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -295,6 +298,7 @@ func (client ConfigurationsClient) ListBySubscription(ctx context.Context) (resu result.clr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.ConfigurationsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -357,6 +361,7 @@ func (client ConfigurationsClient) listBySubscriptionNextResults(ctx context.Con result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.ConfigurationsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/advisor/mgmt/2017-04-19/advisor/operations.go b/services/advisor/mgmt/2017-04-19/advisor/operations.go index 350771ff03d7..d04a799c2c0a 100644 --- a/services/advisor/mgmt/2017-04-19/advisor/operations.go +++ b/services/advisor/mgmt/2017-04-19/advisor/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationEntity result.oelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.OperationsClient", "List", resp, "Failure responding to request") + return } if result.oelr.hasNextLink() && result.oelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/advisor/mgmt/2017-04-19/advisor/recommendationmetadata.go b/services/advisor/mgmt/2017-04-19/advisor/recommendationmetadata.go index 1db29b00f8ca..1180221affb8 100644 --- a/services/advisor/mgmt/2017-04-19/advisor/recommendationmetadata.go +++ b/services/advisor/mgmt/2017-04-19/advisor/recommendationmetadata.go @@ -72,6 +72,7 @@ func (client RecommendationMetadataClient) Get(ctx context.Context, name string) result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.RecommendationMetadataClient", "Get", resp, "Failure responding to request") + return } return @@ -143,6 +144,7 @@ func (client RecommendationMetadataClient) List(ctx context.Context) (result Met result.melr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.RecommendationMetadataClient", "List", resp, "Failure responding to request") + return } if result.melr.hasNextLink() && result.melr.IsEmpty() { err = result.NextWithContext(ctx) @@ -201,6 +203,7 @@ func (client RecommendationMetadataClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.RecommendationMetadataClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/advisor/mgmt/2017-04-19/advisor/recommendations.go b/services/advisor/mgmt/2017-04-19/advisor/recommendations.go index b893960e7d83..61b42098bde0 100644 --- a/services/advisor/mgmt/2017-04-19/advisor/recommendations.go +++ b/services/advisor/mgmt/2017-04-19/advisor/recommendations.go @@ -71,6 +71,7 @@ func (client RecommendationsClient) Generate(ctx context.Context) (result autore result, err = client.GenerateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "Generate", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client RecommendationsClient) Get(ctx context.Context, resourceURI string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "Get", resp, "Failure responding to request") + return } return @@ -220,6 +222,7 @@ func (client RecommendationsClient) GetGenerateStatus(ctx context.Context, opera result, err = client.GetGenerateStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "GetGenerateStatus", resp, "Failure responding to request") + return } return @@ -298,6 +301,7 @@ func (client RecommendationsClient) List(ctx context.Context, filter string, top result.rrblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "List", resp, "Failure responding to request") + return } if result.rrblr.hasNextLink() && result.rrblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -369,6 +373,7 @@ func (client RecommendationsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/advisor/mgmt/2017-04-19/advisor/suppressions.go b/services/advisor/mgmt/2017-04-19/advisor/suppressions.go index da41c03974d9..25cea1aea815 100644 --- a/services/advisor/mgmt/2017-04-19/advisor/suppressions.go +++ b/services/advisor/mgmt/2017-04-19/advisor/suppressions.go @@ -76,6 +76,7 @@ func (client SuppressionsClient) Create(ctx context.Context, resourceURI string, result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.SuppressionsClient", "Create", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client SuppressionsClient) Delete(ctx context.Context, resourceURI string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.SuppressionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client SuppressionsClient) Get(ctx context.Context, resourceURI string, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.SuppressionsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +312,7 @@ func (client SuppressionsClient) List(ctx context.Context, top *int32, skipToken result.sclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.SuppressionsClient", "List", resp, "Failure responding to request") + return } if result.sclr.hasNextLink() && result.sclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +381,7 @@ func (client SuppressionsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.SuppressionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/advisor/mgmt/2020-01-01/advisor/configurations.go b/services/advisor/mgmt/2020-01-01/advisor/configurations.go index 183bbb0297e0..c913f7f7d2c8 100644 --- a/services/advisor/mgmt/2020-01-01/advisor/configurations.go +++ b/services/advisor/mgmt/2020-01-01/advisor/configurations.go @@ -72,6 +72,7 @@ func (client ConfigurationsClient) CreateInResourceGroup(ctx context.Context, co result, err = client.CreateInResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.ConfigurationsClient", "CreateInResourceGroup", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client ConfigurationsClient) CreateInSubscription(ctx context.Context, con result, err = client.CreateInSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.ConfigurationsClient", "CreateInSubscription", resp, "Failure responding to request") + return } return @@ -224,6 +226,7 @@ func (client ConfigurationsClient) ListByResourceGroup(ctx context.Context, reso result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.ConfigurationsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -297,6 +300,7 @@ func (client ConfigurationsClient) ListBySubscription(ctx context.Context) (resu result.clr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.ConfigurationsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -359,6 +363,7 @@ func (client ConfigurationsClient) listBySubscriptionNextResults(ctx context.Con result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.ConfigurationsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/advisor/mgmt/2020-01-01/advisor/operations.go b/services/advisor/mgmt/2020-01-01/advisor/operations.go index 0c493e8293ac..f62e933156ee 100644 --- a/services/advisor/mgmt/2020-01-01/advisor/operations.go +++ b/services/advisor/mgmt/2020-01-01/advisor/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationEntity result.oelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.OperationsClient", "List", resp, "Failure responding to request") + return } if result.oelr.hasNextLink() && result.oelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/advisor/mgmt/2020-01-01/advisor/recommendationmetadata.go b/services/advisor/mgmt/2020-01-01/advisor/recommendationmetadata.go index 12f61342679a..5f5ee72839d2 100644 --- a/services/advisor/mgmt/2020-01-01/advisor/recommendationmetadata.go +++ b/services/advisor/mgmt/2020-01-01/advisor/recommendationmetadata.go @@ -72,6 +72,7 @@ func (client RecommendationMetadataClient) Get(ctx context.Context, name string) result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.RecommendationMetadataClient", "Get", resp, "Failure responding to request") + return } return @@ -143,6 +144,7 @@ func (client RecommendationMetadataClient) List(ctx context.Context) (result Met result.melr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.RecommendationMetadataClient", "List", resp, "Failure responding to request") + return } if result.melr.hasNextLink() && result.melr.IsEmpty() { err = result.NextWithContext(ctx) @@ -201,6 +203,7 @@ func (client RecommendationMetadataClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.RecommendationMetadataClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/advisor/mgmt/2020-01-01/advisor/recommendations.go b/services/advisor/mgmt/2020-01-01/advisor/recommendations.go index a084a495d967..291c68bd8687 100644 --- a/services/advisor/mgmt/2020-01-01/advisor/recommendations.go +++ b/services/advisor/mgmt/2020-01-01/advisor/recommendations.go @@ -71,6 +71,7 @@ func (client RecommendationsClient) Generate(ctx context.Context) (result autore result, err = client.GenerateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "Generate", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client RecommendationsClient) Get(ctx context.Context, resourceURI string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "Get", resp, "Failure responding to request") + return } return @@ -220,6 +222,7 @@ func (client RecommendationsClient) GetGenerateStatus(ctx context.Context, opera result, err = client.GetGenerateStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "GetGenerateStatus", resp, "Failure responding to request") + return } return @@ -298,6 +301,7 @@ func (client RecommendationsClient) List(ctx context.Context, filter string, top result.rrblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "List", resp, "Failure responding to request") + return } if result.rrblr.hasNextLink() && result.rrblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -369,6 +373,7 @@ func (client RecommendationsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/advisor/mgmt/2020-01-01/advisor/suppressions.go b/services/advisor/mgmt/2020-01-01/advisor/suppressions.go index f6630ab6d85d..8799ddf746fe 100644 --- a/services/advisor/mgmt/2020-01-01/advisor/suppressions.go +++ b/services/advisor/mgmt/2020-01-01/advisor/suppressions.go @@ -76,6 +76,7 @@ func (client SuppressionsClient) Create(ctx context.Context, resourceURI string, result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.SuppressionsClient", "Create", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client SuppressionsClient) Delete(ctx context.Context, resourceURI string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.SuppressionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client SuppressionsClient) Get(ctx context.Context, resourceURI string, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.SuppressionsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +312,7 @@ func (client SuppressionsClient) List(ctx context.Context, top *int32, skipToken result.sclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.SuppressionsClient", "List", resp, "Failure responding to request") + return } if result.sclr.hasNextLink() && result.sclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +381,7 @@ func (client SuppressionsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.SuppressionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/alerts.go b/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/alerts.go index 31e18eeaeab0..5e9a7de449ac 100644 --- a/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/alerts.go +++ b/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/alerts.go @@ -72,6 +72,7 @@ func (client AlertsClient) ChangeState(ctx context.Context, alertID string, newS result, err = client.ChangeStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "ChangeState", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client AlertsClient) GetAll(ctx context.Context, targetResource string, ta result.al, err = client.GetAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "GetAll", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -286,6 +288,7 @@ func (client AlertsClient) getAllNextResults(ctx context.Context, lastResults Al result, err = client.GetAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "getAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -336,6 +339,7 @@ func (client AlertsClient) GetByID(ctx context.Context, alertID string) (result result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -410,6 +414,7 @@ func (client AlertsClient) GetHistory(ctx context.Context, alertID string) (resu result, err = client.GetHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "GetHistory", resp, "Failure responding to request") + return } return @@ -499,6 +504,7 @@ func (client AlertsClient) GetSummary(ctx context.Context, groupby AlertsSummary result, err = client.GetSummaryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "GetSummary", resp, "Failure responding to request") + return } return diff --git a/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/operations.go b/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/operations.go index 057d95781b93..2a0ad52ccca1 100644 --- a/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/operations.go +++ b/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListP result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/smartgroups.go b/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/smartgroups.go index bee182cdf3eb..5f978606d32a 100644 --- a/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/smartgroups.go +++ b/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/smartgroups.go @@ -72,6 +72,7 @@ func (client SmartGroupsClient) ChangeState(ctx context.Context, smartGroupID st result, err = client.ChangeStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartGroupsClient", "ChangeState", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client SmartGroupsClient) GetAll(ctx context.Context, targetResource strin result.sgl, err = client.GetAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartGroupsClient", "GetAll", resp, "Failure responding to request") + return } if result.sgl.hasNextLink() && result.sgl.IsEmpty() { err = result.NextWithContext(ctx) @@ -255,6 +257,7 @@ func (client SmartGroupsClient) getAllNextResults(ctx context.Context, lastResul result, err = client.GetAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartGroupsClient", "getAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -305,6 +308,7 @@ func (client SmartGroupsClient) GetByID(ctx context.Context, smartGroupID string result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartGroupsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -378,6 +382,7 @@ func (client SmartGroupsClient) GetHistory(ctx context.Context, smartGroupID str result, err = client.GetHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartGroupsClient", "GetHistory", resp, "Failure responding to request") + return } return diff --git a/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/alerts.go b/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/alerts.go index 48141c17987c..252e88664c9b 100644 --- a/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/alerts.go +++ b/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/alerts.go @@ -77,6 +77,7 @@ func (client AlertsClient) ChangeState(ctx context.Context, alertID string, newS result, err = client.ChangeStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "ChangeState", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client AlertsClient) GetAll(ctx context.Context, targetResource string, ta result.al, err = client.GetAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "GetAll", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -291,6 +293,7 @@ func (client AlertsClient) getAllNextResults(ctx context.Context, lastResults Al result, err = client.GetAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "getAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -346,6 +349,7 @@ func (client AlertsClient) GetByID(ctx context.Context, alertID string) (result result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -425,6 +429,7 @@ func (client AlertsClient) GetHistory(ctx context.Context, alertID string) (resu result, err = client.GetHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "GetHistory", resp, "Failure responding to request") + return } return @@ -514,6 +519,7 @@ func (client AlertsClient) GetSummary(ctx context.Context, groupby AlertsSummary result, err = client.GetSummaryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "GetSummary", resp, "Failure responding to request") + return } return @@ -618,6 +624,7 @@ func (client AlertsClient) MetaData(ctx context.Context) (result AlertsMetaData, result, err = client.MetaDataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "MetaData", resp, "Failure responding to request") + return } return diff --git a/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/operations.go b/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/operations.go index 3f9689cefcf5..44b45ee1ccc4 100644 --- a/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/operations.go +++ b/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListP result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/smartdetectoralertrules.go b/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/smartdetectoralertrules.go index bfcaf4c41b4e..69b64a96657b 100644 --- a/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/smartdetectoralertrules.go +++ b/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/smartdetectoralertrules.go @@ -88,6 +88,7 @@ func (client SmartDetectorAlertRulesClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartDetectorAlertRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client SmartDetectorAlertRulesClient) Delete(ctx context.Context, resource result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartDetectorAlertRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client SmartDetectorAlertRulesClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartDetectorAlertRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client SmartDetectorAlertRulesClient) List(ctx context.Context) (result Al result.arl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartDetectorAlertRulesClient", "List", resp, "Failure responding to request") + return } if result.arl.hasNextLink() && result.arl.IsEmpty() { err = result.NextWithContext(ctx) @@ -378,6 +382,7 @@ func (client SmartDetectorAlertRulesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartDetectorAlertRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -429,6 +434,7 @@ func (client SmartDetectorAlertRulesClient) ListByResourceGroup(ctx context.Cont result.arl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartDetectorAlertRulesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.arl.hasNextLink() && result.arl.IsEmpty() { err = result.NextWithContext(ctx) @@ -492,6 +498,7 @@ func (client SmartDetectorAlertRulesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartDetectorAlertRulesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/analysisservices/mgmt/2016-05-16/analysisservices/servers.go b/services/analysisservices/mgmt/2016-05-16/analysisservices/servers.go index 8d9ba6d88984..fe54ad12fa37 100644 --- a/services/analysisservices/mgmt/2016-05-16/analysisservices/servers.go +++ b/services/analysisservices/mgmt/2016-05-16/analysisservices/servers.go @@ -84,6 +84,7 @@ func (client ServersClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -354,6 +355,7 @@ func (client ServersClient) GetDetails(ctx context.Context, resourceGroupName st result, err = client.GetDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "GetDetails", resp, "Failure responding to request") + return } return @@ -426,6 +428,7 @@ func (client ServersClient) List(ctx context.Context) (result Servers, err error result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "List", resp, "Failure responding to request") + return } return @@ -507,6 +510,7 @@ func (client ServersClient) ListByResourceGroup(ctx context.Context, resourceGro result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -581,6 +585,7 @@ func (client ServersClient) ListOperationResults(ctx context.Context, location s result, err = client.ListOperationResultsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "ListOperationResults", resp, "Failure responding to request") + return } return @@ -655,6 +660,7 @@ func (client ServersClient) ListOperationStatuses(ctx context.Context, location result, err = client.ListOperationStatusesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "ListOperationStatuses", resp, "Failure responding to request") + return } return @@ -744,6 +750,7 @@ func (client ServersClient) ListSkusForExisting(ctx context.Context, resourceGro result, err = client.ListSkusForExistingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "ListSkusForExisting", resp, "Failure responding to request") + return } return @@ -816,6 +823,7 @@ func (client ServersClient) ListSkusForNew(ctx context.Context) (result SkuEnume result, err = client.ListSkusForNewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "ListSkusForNew", resp, "Failure responding to request") + return } return diff --git a/services/analysisservices/mgmt/2017-07-14/analysisservices/servers.go b/services/analysisservices/mgmt/2017-07-14/analysisservices/servers.go index b15cd85b347b..5dd056678086 100644 --- a/services/analysisservices/mgmt/2017-07-14/analysisservices/servers.go +++ b/services/analysisservices/mgmt/2017-07-14/analysisservices/servers.go @@ -84,6 +84,7 @@ func (client ServersClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -354,6 +355,7 @@ func (client ServersClient) DissociateGateway(ctx context.Context, resourceGroup result, err = client.DissociateGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "DissociateGateway", resp, "Failure responding to request") + return } return @@ -442,6 +444,7 @@ func (client ServersClient) GetDetails(ctx context.Context, resourceGroupName st result, err = client.GetDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "GetDetails", resp, "Failure responding to request") + return } return @@ -514,6 +517,7 @@ func (client ServersClient) List(ctx context.Context) (result Servers, err error result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "List", resp, "Failure responding to request") + return } return @@ -595,6 +599,7 @@ func (client ServersClient) ListByResourceGroup(ctx context.Context, resourceGro result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -683,6 +688,7 @@ func (client ServersClient) ListGatewayStatus(ctx context.Context, resourceGroup result, err = client.ListGatewayStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "ListGatewayStatus", resp, "Failure responding to request") + return } return @@ -758,6 +764,7 @@ func (client ServersClient) ListOperationResults(ctx context.Context, location s result, err = client.ListOperationResultsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "ListOperationResults", resp, "Failure responding to request") + return } return @@ -832,6 +839,7 @@ func (client ServersClient) ListOperationStatuses(ctx context.Context, location result, err = client.ListOperationStatusesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "ListOperationStatuses", resp, "Failure responding to request") + return } return @@ -921,6 +929,7 @@ func (client ServersClient) ListSkusForExisting(ctx context.Context, resourceGro result, err = client.ListSkusForExistingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "ListSkusForExisting", resp, "Failure responding to request") + return } return @@ -993,6 +1002,7 @@ func (client ServersClient) ListSkusForNew(ctx context.Context) (result SkuEnume result, err = client.ListSkusForNewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "ListSkusForNew", resp, "Failure responding to request") + return } return diff --git a/services/analysisservices/mgmt/2017-08-01/analysisservices/operations.go b/services/analysisservices/mgmt/2017-08-01/analysisservices/operations.go index cb916ba52bc2..359483c4d82a 100644 --- a/services/analysisservices/mgmt/2017-08-01/analysisservices/operations.go +++ b/services/analysisservices/mgmt/2017-08-01/analysisservices/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/analysisservices/mgmt/2017-08-01/analysisservices/servers.go b/services/analysisservices/mgmt/2017-08-01/analysisservices/servers.go index 7d626599a7c2..0be602d8c52e 100644 --- a/services/analysisservices/mgmt/2017-08-01/analysisservices/servers.go +++ b/services/analysisservices/mgmt/2017-08-01/analysisservices/servers.go @@ -84,6 +84,7 @@ func (client ServersClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -354,6 +355,7 @@ func (client ServersClient) DissociateGateway(ctx context.Context, resourceGroup result, err = client.DissociateGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "DissociateGateway", resp, "Failure responding to request") + return } return @@ -442,6 +444,7 @@ func (client ServersClient) GetDetails(ctx context.Context, resourceGroupName st result, err = client.GetDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "GetDetails", resp, "Failure responding to request") + return } return @@ -514,6 +517,7 @@ func (client ServersClient) List(ctx context.Context) (result Servers, err error result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "List", resp, "Failure responding to request") + return } return @@ -595,6 +599,7 @@ func (client ServersClient) ListByResourceGroup(ctx context.Context, resourceGro result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -682,6 +687,7 @@ func (client ServersClient) ListGatewayStatus(ctx context.Context, resourceGroup result, err = client.ListGatewayStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "ListGatewayStatus", resp, "Failure responding to request") + return } return @@ -757,6 +763,7 @@ func (client ServersClient) ListOperationResults(ctx context.Context, location s result, err = client.ListOperationResultsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "ListOperationResults", resp, "Failure responding to request") + return } return @@ -831,6 +838,7 @@ func (client ServersClient) ListOperationStatuses(ctx context.Context, location result, err = client.ListOperationStatusesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "ListOperationStatuses", resp, "Failure responding to request") + return } return @@ -920,6 +928,7 @@ func (client ServersClient) ListSkusForExisting(ctx context.Context, resourceGro result, err = client.ListSkusForExistingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "ListSkusForExisting", resp, "Failure responding to request") + return } return @@ -992,6 +1001,7 @@ func (client ServersClient) ListSkusForNew(ctx context.Context) (result SkuEnume result, err = client.ListSkusForNewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "analysisservices.ServersClient", "ListSkusForNew", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/apioperations.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/apioperations.go index 4ab002472396..16dc00119bae 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/apioperations.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/apioperations.go @@ -105,6 +105,7 @@ func (client APIOperationsClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -205,6 +206,7 @@ func (client APIOperationsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -301,6 +303,7 @@ func (client APIOperationsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationsClient", "Get", resp, "Failure responding to request") + return } return @@ -406,6 +409,7 @@ func (client APIOperationsClient) ListByAPI(ctx context.Context, resourceGroupNa result.oc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationsClient", "ListByAPI", resp, "Failure responding to request") + return } if result.oc.hasNextLink() && result.oc.IsEmpty() { err = result.NextWithContext(ctx) @@ -480,6 +484,7 @@ func (client APIOperationsClient) listByAPINextResults(ctx context.Context, last result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationsClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } @@ -553,6 +558,7 @@ func (client APIOperationsClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/apiproducts.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/apiproducts.go index 3cede7864b40..8a2cfdd99316 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/apiproducts.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/apiproducts.go @@ -98,6 +98,7 @@ func (client APIProductsClient) ListByAPI(ctx context.Context, resourceGroupName result.pc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIProductsClient", "ListByAPI", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -172,6 +173,7 @@ func (client APIProductsClient) listByAPINextResults(ctx context.Context, lastRe result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIProductsClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/apis.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/apis.go index e5db83ef126f..0c35af2f96f2 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/apis.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/apis.go @@ -103,6 +103,7 @@ func (client ApisClient) CreateOrUpdate(ctx context.Context, resourceGroupName s result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ApisClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -200,6 +201,7 @@ func (client ApisClient) Delete(ctx context.Context, resourceGroupName string, s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ApisClient", "Delete", resp, "Failure responding to request") + return } return @@ -289,6 +291,7 @@ func (client ApisClient) Export(ctx context.Context, resourceGroupName string, s result, err = client.ExportResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ApisClient", "Export", resp, "Failure responding to request") + return } return @@ -378,6 +381,7 @@ func (client ApisClient) Get(ctx context.Context, resourceGroupName string, serv result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ApisClient", "Get", resp, "Failure responding to request") + return } return @@ -478,6 +482,7 @@ func (client ApisClient) ListByService(ctx context.Context, resourceGroupName st result.ac, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ApisClient", "ListByService", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -551,6 +556,7 @@ func (client ApisClient) listByServiceNextResults(ctx context.Context, lastResul result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ApisClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -618,6 +624,7 @@ func (client ApisClient) Update(ctx context.Context, resourceGroupName string, s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ApisClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/authorizationservers.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/authorizationservers.go index dd5203f1524e..9d23afc10ada 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/authorizationservers.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/authorizationservers.go @@ -96,6 +96,7 @@ func (client AuthorizationServersClient) CreateOrUpdate(ctx context.Context, res result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client AuthorizationServersClient) Delete(ctx context.Context, resourceGro result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServersClient", "Delete", resp, "Failure responding to request") + return } return @@ -273,6 +275,7 @@ func (client AuthorizationServersClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServersClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client AuthorizationServersClient) ListByService(ctx context.Context, reso result.asc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServersClient", "ListByService", resp, "Failure responding to request") + return } if result.asc.hasNextLink() && result.asc.IsEmpty() { err = result.NextWithContext(ctx) @@ -443,6 +447,7 @@ func (client AuthorizationServersClient) listByServiceNextResults(ctx context.Co result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServersClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -506,6 +511,7 @@ func (client AuthorizationServersClient) Update(ctx context.Context, resourceGro result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/backends.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/backends.go index 07e2cf122387..3cc0e6ce79c5 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/backends.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/backends.go @@ -92,6 +92,7 @@ func (client BackendsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -184,6 +185,7 @@ func (client BackendsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendsClient", "Delete", resp, "Failure responding to request") + return } return @@ -273,6 +275,7 @@ func (client BackendsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendsClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client BackendsClient) ListByService(ctx context.Context, resourceGroupNam result.bc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendsClient", "ListByService", resp, "Failure responding to request") + return } if result.bc.hasNextLink() && result.bc.IsEmpty() { err = result.NextWithContext(ctx) @@ -443,6 +447,7 @@ func (client BackendsClient) listByServiceNextResults(ctx context.Context, lastR result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendsClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -510,6 +515,7 @@ func (client BackendsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/certificates.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/certificates.go index a5bc1938221c..e2131de1255e 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/certificates.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/certificates.go @@ -93,6 +93,7 @@ func (client CertificatesClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificatesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client CertificatesClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificatesClient", "Delete", resp, "Failure responding to request") + return } return @@ -270,6 +272,7 @@ func (client CertificatesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificatesClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +372,7 @@ func (client CertificatesClient) ListByService(ctx context.Context, resourceGrou result.cc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificatesClient", "ListByService", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -442,6 +446,7 @@ func (client CertificatesClient) listByServiceNextResults(ctx context.Context, l result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificatesClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/groups.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/groups.go index 6eb2154c5ae0..a971e845a40b 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/groups.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/groups.go @@ -92,6 +92,7 @@ func (client GroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -184,6 +185,7 @@ func (client GroupsClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client GroupsClient) Get(ctx context.Context, resourceGroupName string, se result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -373,6 +376,7 @@ func (client GroupsClient) ListByService(ctx context.Context, resourceGroupName result.gc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupsClient", "ListByService", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -446,6 +450,7 @@ func (client GroupsClient) listByServiceNextResults(ctx context.Context, lastRes result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupsClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -513,6 +518,7 @@ func (client GroupsClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/groupusers.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/groupusers.go index b0d14eaddf36..7bffb9545d8c 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/groupusers.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/groupusers.go @@ -91,6 +91,7 @@ func (client GroupUsersClient) Add(ctx context.Context, resourceGroupName string result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUsersClient", "Add", resp, "Failure responding to request") + return } return @@ -199,6 +200,7 @@ func (client GroupUsersClient) ListByGroup(ctx context.Context, resourceGroupNam result.uc, err = client.ListByGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUsersClient", "ListByGroup", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -273,6 +275,7 @@ func (client GroupUsersClient) listByGroupNextResults(ctx context.Context, lastR result, err = client.ListByGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUsersClient", "listByGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -342,6 +345,7 @@ func (client GroupUsersClient) Remove(ctx context.Context, resourceGroupName str result, err = client.RemoveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUsersClient", "Remove", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/identityproviders.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/identityproviders.go index d02e32104482..ac06553e9cf4 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/identityproviders.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/identityproviders.go @@ -91,6 +91,7 @@ func (client IdentityProvidersClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProvidersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client IdentityProvidersClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProvidersClient", "Delete", resp, "Failure responding to request") + return } return @@ -264,6 +266,7 @@ func (client IdentityProvidersClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProvidersClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +351,7 @@ func (client IdentityProvidersClient) ListByService(ctx context.Context, resourc result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProvidersClient", "ListByService", resp, "Failure responding to request") + return } return @@ -435,6 +439,7 @@ func (client IdentityProvidersClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProvidersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/loggers.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/loggers.go index e58d5709eada..dc2bc1a898ec 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/loggers.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/loggers.go @@ -89,6 +89,7 @@ func (client LoggersClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client LoggersClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggersClient", "Delete", resp, "Failure responding to request") + return } return @@ -262,6 +264,7 @@ func (client LoggersClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggersClient", "Get", resp, "Failure responding to request") + return } return @@ -359,6 +362,7 @@ func (client LoggersClient) ListByService(ctx context.Context, resourceGroupName result.lc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggersClient", "ListByService", resp, "Failure responding to request") + return } if result.lc.hasNextLink() && result.lc.IsEmpty() { err = result.NextWithContext(ctx) @@ -432,6 +436,7 @@ func (client LoggersClient) listByServiceNextResults(ctx context.Context, lastRe result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggersClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -495,6 +500,7 @@ func (client LoggersClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/openidconnectproviders.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/openidconnectproviders.go index 180ca23ee803..c0627ab50be7 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/openidconnectproviders.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/openidconnectproviders.go @@ -92,6 +92,7 @@ func (client OpenIDConnectProvidersClient) CreateOrUpdate(ctx context.Context, r result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProvidersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client OpenIDConnectProvidersClient) Delete(ctx context.Context, resourceG result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProvidersClient", "Delete", resp, "Failure responding to request") + return } return @@ -266,6 +268,7 @@ func (client OpenIDConnectProvidersClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProvidersClient", "Get", resp, "Failure responding to request") + return } return @@ -363,6 +366,7 @@ func (client OpenIDConnectProvidersClient) ListByService(ctx context.Context, re result.oicpc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProvidersClient", "ListByService", resp, "Failure responding to request") + return } if result.oicpc.hasNextLink() && result.oicpc.IsEmpty() { err = result.NextWithContext(ctx) @@ -436,6 +440,7 @@ func (client OpenIDConnectProvidersClient) listByServiceNextResults(ctx context. result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProvidersClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -499,6 +504,7 @@ func (client OpenIDConnectProvidersClient) Update(ctx context.Context, resourceG result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProvidersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/policysnippets.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/policysnippets.go index 3c0a3c4c1293..8365fe08126d 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/policysnippets.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/policysnippets.go @@ -82,6 +82,7 @@ func (client PolicySnippetsClient) ListByService(ctx context.Context, resourceGr result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicySnippetsClient", "ListByService", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/productapis.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/productapis.go index 7bca90e1ba1e..47598faf6e3b 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/productapis.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/productapis.go @@ -91,6 +91,7 @@ func (client ProductApisClient) Add(ctx context.Context, resourceGroupName strin result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductApisClient", "Add", resp, "Failure responding to request") + return } return @@ -196,6 +197,7 @@ func (client ProductApisClient) ListByProduct(ctx context.Context, resourceGroup result.ac, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductApisClient", "ListByProduct", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -270,6 +272,7 @@ func (client ProductApisClient) listByProductNextResults(ctx context.Context, la result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductApisClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } @@ -339,6 +342,7 @@ func (client ProductApisClient) Remove(ctx context.Context, resourceGroupName st result, err = client.RemoveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductApisClient", "Remove", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/productgroups.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/productgroups.go index c072b6335f5f..b8128319b04d 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/productgroups.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/productgroups.go @@ -91,6 +91,7 @@ func (client ProductGroupsClient) Add(ctx context.Context, resourceGroupName str result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupsClient", "Add", resp, "Failure responding to request") + return } return @@ -195,6 +196,7 @@ func (client ProductGroupsClient) ListByProduct(ctx context.Context, resourceGro result.gc, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupsClient", "ListByProduct", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -269,6 +271,7 @@ func (client ProductGroupsClient) listByProductNextResults(ctx context.Context, result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupsClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } @@ -338,6 +341,7 @@ func (client ProductGroupsClient) Remove(ctx context.Context, resourceGroupName result, err = client.RemoveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupsClient", "Remove", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/products.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/products.go index 19c22da669b9..3677cb1dd005 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/products.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/products.go @@ -96,6 +96,7 @@ func (client ProductsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client ProductsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductsClient", "Delete", resp, "Failure responding to request") + return } return @@ -282,6 +284,7 @@ func (client ProductsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductsClient", "Get", resp, "Failure responding to request") + return } return @@ -384,6 +387,7 @@ func (client ProductsClient) ListByService(ctx context.Context, resourceGroupNam result.pc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductsClient", "ListByService", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -460,6 +464,7 @@ func (client ProductsClient) listByServiceNextResults(ctx context.Context, lastR result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductsClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -527,6 +532,7 @@ func (client ProductsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/productsubscriptions.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/productsubscriptions.go index da5497cde38d..af31585371e0 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/productsubscriptions.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/productsubscriptions.go @@ -104,6 +104,7 @@ func (client ProductSubscriptionsClient) ListByProduct(ctx context.Context, reso result.sc, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductSubscriptionsClient", "ListByProduct", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -178,6 +179,7 @@ func (client ProductSubscriptionsClient) listByProductNextResults(ctx context.Co result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductSubscriptionsClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/property.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/property.go index 65c7b111573e..f5cd382e7814 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/property.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/property.go @@ -98,6 +98,7 @@ func (client PropertyClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client PropertyClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Delete", resp, "Failure responding to request") + return } return @@ -272,6 +274,7 @@ func (client PropertyClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +372,7 @@ func (client PropertyClient) ListByService(ctx context.Context, resourceGroupNam result.pc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "ListByService", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -442,6 +446,7 @@ func (client PropertyClient) listByServiceNextResults(ctx context.Context, lastR result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -505,6 +510,7 @@ func (client PropertyClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/quotabycounterkeys.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/quotabycounterkeys.go index c2eddc1f66dc..87f04e7a32af 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/quotabycounterkeys.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/quotabycounterkeys.go @@ -84,6 +84,7 @@ func (client QuotaByCounterKeysClient) ListByService(ctx context.Context, resour result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByCounterKeysClient", "ListByService", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client QuotaByCounterKeysClient) Update(ctx context.Context, resourceGroup result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByCounterKeysClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/quotabyperiodkeys.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/quotabyperiodkeys.go index 7bd28ec76d7d..1c55ed9319be 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/quotabyperiodkeys.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/quotabyperiodkeys.go @@ -85,6 +85,7 @@ func (client QuotaByPeriodKeysClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByPeriodKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client QuotaByPeriodKeysClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByPeriodKeysClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/regions.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/regions.go index e0aa19061189..d944562261a7 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/regions.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/regions.go @@ -81,6 +81,7 @@ func (client RegionsClient) ListByService(ctx context.Context, resourceGroupName result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.RegionsClient", "ListByService", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/reports.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/reports.go index 488ea40b03d2..5f5f1bf369c6 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/reports.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/reports.go @@ -96,6 +96,7 @@ func (client ReportsClient) ListByService(ctx context.Context, resourceGroupName result.rc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByService", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -173,6 +174,7 @@ func (client ReportsClient) listByServiceNextResults(ctx context.Context, lastRe result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/services.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/services.go index 8acfd993aabe..96aaf05a6cc8 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/services.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/services.go @@ -170,6 +170,7 @@ func (client ServicesClient) CheckNameAvailability(ctx context.Context, paramete result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServicesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -257,6 +258,7 @@ func (client ServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServicesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -345,6 +347,7 @@ func (client ServicesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -428,6 +431,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -511,6 +515,7 @@ func (client ServicesClient) GetSsoToken(ctx context.Context, resourceGroupName result, err = client.GetSsoTokenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServicesClient", "GetSsoToken", resp, "Failure responding to request") + return } return @@ -584,6 +589,7 @@ func (client ServicesClient) List(ctx context.Context) (result ServiceListResult result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServicesClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -646,6 +652,7 @@ func (client ServicesClient) listNextResults(ctx context.Context, lastResults Se result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -697,6 +704,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGr result.slr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -760,6 +768,7 @@ func (client ServicesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1179,6 +1188,7 @@ func (client ServicesClient) UploadCertificate(ctx context.Context, resourceGrou result, err = client.UploadCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServicesClient", "UploadCertificate", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/subscriptions.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/subscriptions.go index 2d3794bbeac0..fa142ef02e70 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/subscriptions.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/subscriptions.go @@ -102,6 +102,7 @@ func (client SubscriptionsClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client SubscriptionsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -275,6 +277,7 @@ func (client SubscriptionsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -376,6 +379,7 @@ func (client SubscriptionsClient) ListByService(ctx context.Context, resourceGro result.sc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionsClient", "ListByService", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -449,6 +453,7 @@ func (client SubscriptionsClient) listByServiceNextResults(ctx context.Context, result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionsClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -509,6 +514,7 @@ func (client SubscriptionsClient) RegeneratePrimaryKey(ctx context.Context, reso result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionsClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -593,6 +599,7 @@ func (client SubscriptionsClient) RegenerateSecondaryKey(ctx context.Context, re result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionsClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return @@ -680,6 +687,7 @@ func (client SubscriptionsClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/tenantaccess.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/tenantaccess.go index 1ddf628ce981..69c96c04c1d1 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/tenantaccess.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/tenantaccess.go @@ -81,6 +81,7 @@ func (client TenantAccessClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "Get", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client TenantAccessClient) RegeneratePrimaryKey(ctx context.Context, resou result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client TenantAccessClient) RegenerateSecondaryKey(ctx context.Context, res result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return @@ -331,6 +334,7 @@ func (client TenantAccessClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/tenantaccessgit.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/tenantaccessgit.go index 762c48b377e6..88a53d5351f8 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/tenantaccessgit.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/tenantaccessgit.go @@ -81,6 +81,7 @@ func (client TenantAccessGitClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "Get", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client TenantAccessGitClient) RegeneratePrimaryKey(ctx context.Context, re result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client TenantAccessGitClient) RegenerateSecondaryKey(ctx context.Context, result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/tenantconfigurationsyncstate.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/tenantconfigurationsyncstate.go index 67fd6af2b6cd..d9c90895de05 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/tenantconfigurationsyncstate.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/tenantconfigurationsyncstate.go @@ -82,6 +82,7 @@ func (client TenantConfigurationSyncStateClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationSyncStateClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/usergroups.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/usergroups.go index d8836772fc0c..55a1c4d8521a 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/usergroups.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/usergroups.go @@ -100,6 +100,7 @@ func (client UserGroupsClient) ListByUser(ctx context.Context, resourceGroupName result.gc, err = client.ListByUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserGroupsClient", "ListByUser", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -174,6 +175,7 @@ func (client UserGroupsClient) listByUserNextResults(ctx context.Context, lastRe result, err = client.ListByUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserGroupsClient", "listByUserNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/useridentities.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/useridentities.go index f54f8be26983..5a4f5e964075 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/useridentities.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/useridentities.go @@ -86,6 +86,7 @@ func (client UserIdentitiesClient) ListByUser(ctx context.Context, resourceGroup result, err = client.ListByUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserIdentitiesClient", "ListByUser", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/users.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/users.go index 339901a84e39..498279c38564 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/users.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/users.go @@ -101,6 +101,7 @@ func (client UsersClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UsersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -194,6 +195,7 @@ func (client UsersClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UsersClient", "Delete", resp, "Failure responding to request") + return } return @@ -288,6 +290,7 @@ func (client UsersClient) GenerateSsoURL(ctx context.Context, resourceGroupName result, err = client.GenerateSsoURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UsersClient", "GenerateSsoURL", resp, "Failure responding to request") + return } return @@ -377,6 +380,7 @@ func (client UsersClient) Get(ctx context.Context, resourceGroupName string, ser result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UsersClient", "Get", resp, "Failure responding to request") + return } return @@ -479,6 +483,7 @@ func (client UsersClient) ListByService(ctx context.Context, resourceGroupName s result.uc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UsersClient", "ListByService", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -552,6 +557,7 @@ func (client UsersClient) listByServiceNextResults(ctx context.Context, lastResu result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UsersClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -619,6 +625,7 @@ func (client UsersClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UsersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/usersubscriptions.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/usersubscriptions.go index c2440706b89f..3a9108791a98 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/usersubscriptions.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/usersubscriptions.go @@ -104,6 +104,7 @@ func (client UserSubscriptionsClient) ListByUser(ctx context.Context, resourceGr result.sc, err = client.ListByUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserSubscriptionsClient", "ListByUser", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -178,6 +179,7 @@ func (client UserSubscriptionsClient) listByUserNextResults(ctx context.Context, result, err = client.ListByUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserSubscriptionsClient", "listByUserNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/apiexport.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/apiexport.go index 76d63a796590..28f1877fa528 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/apiexport.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/apiexport.go @@ -86,6 +86,7 @@ func (client APIExportClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIExportClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/apioperations.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/apioperations.go index fb63ca3bc117..d4acc4d3af5f 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/apioperations.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/apioperations.go @@ -103,6 +103,7 @@ func (client APIOperationsClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -203,6 +204,7 @@ func (client APIOperationsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -299,6 +301,7 @@ func (client APIOperationsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationsClient", "Get", resp, "Failure responding to request") + return } return @@ -404,6 +407,7 @@ func (client APIOperationsClient) ListByApis(ctx context.Context, resourceGroupN result.oc, err = client.ListByApisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationsClient", "ListByApis", resp, "Failure responding to request") + return } if result.oc.hasNextLink() && result.oc.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client APIOperationsClient) listByApisNextResults(ctx context.Context, las result, err = client.ListByApisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationsClient", "listByApisNextResults", resp, "Failure responding to next results request") + return } return } @@ -551,6 +556,7 @@ func (client APIOperationsClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/apioperationspolicy.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/apioperationspolicy.go index 6bc1f5ad3431..8627b0ad8e95 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/apioperationspolicy.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/apioperationspolicy.go @@ -97,6 +97,7 @@ func (client APIOperationsPolicyClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationsPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -197,6 +198,7 @@ func (client APIOperationsPolicyClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationsPolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -293,6 +295,7 @@ func (client APIOperationsPolicyClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationsPolicyClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/apipolicy.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/apipolicy.go index 648cebbdc565..112246f271ad 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/apipolicy.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/apipolicy.go @@ -90,6 +90,7 @@ func (client APIPolicyClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -183,6 +184,7 @@ func (client APIPolicyClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -272,6 +274,7 @@ func (client APIPolicyClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/apiproducts.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/apiproducts.go index 1572519a347c..e3c810e61c0b 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/apiproducts.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/apiproducts.go @@ -98,6 +98,7 @@ func (client APIProductsClient) ListByApis(ctx context.Context, resourceGroupNam result.pc, err = client.ListByApisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIProductsClient", "ListByApis", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -172,6 +173,7 @@ func (client APIProductsClient) listByApisNextResults(ctx context.Context, lastR result, err = client.ListByApisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIProductsClient", "listByApisNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/apis.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/apis.go index 4a5a381899ab..76f08bf917f8 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/apis.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/apis.go @@ -103,6 +103,7 @@ func (client ApisClient) CreateOrUpdate(ctx context.Context, resourceGroupName s result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ApisClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -200,6 +201,7 @@ func (client ApisClient) Delete(ctx context.Context, resourceGroupName string, s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ApisClient", "Delete", resp, "Failure responding to request") + return } return @@ -289,6 +291,7 @@ func (client ApisClient) Get(ctx context.Context, resourceGroupName string, serv result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ApisClient", "Get", resp, "Failure responding to request") + return } return @@ -389,6 +392,7 @@ func (client ApisClient) ListByService(ctx context.Context, resourceGroupName st result.ac, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ApisClient", "ListByService", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -462,6 +466,7 @@ func (client ApisClient) listByServiceNextResults(ctx context.Context, lastResul result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ApisClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -529,6 +534,7 @@ func (client ApisClient) Update(ctx context.Context, resourceGroupName string, s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ApisClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/authorizationservers.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/authorizationservers.go index 3a1f1dc5d753..3652623a2f24 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/authorizationservers.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/authorizationservers.go @@ -96,6 +96,7 @@ func (client AuthorizationServersClient) CreateOrUpdate(ctx context.Context, res result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client AuthorizationServersClient) Delete(ctx context.Context, resourceGro result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServersClient", "Delete", resp, "Failure responding to request") + return } return @@ -276,6 +278,7 @@ func (client AuthorizationServersClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServersClient", "Get", resp, "Failure responding to request") + return } return @@ -373,6 +376,7 @@ func (client AuthorizationServersClient) ListByService(ctx context.Context, reso result.asc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServersClient", "ListByService", resp, "Failure responding to request") + return } if result.asc.hasNextLink() && result.asc.IsEmpty() { err = result.NextWithContext(ctx) @@ -446,6 +450,7 @@ func (client AuthorizationServersClient) listByServiceNextResults(ctx context.Co result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServersClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -512,6 +517,7 @@ func (client AuthorizationServersClient) Update(ctx context.Context, resourceGro result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/backends.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/backends.go index a8f1a0e4d360..1cf81b4cf232 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/backends.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/backends.go @@ -87,6 +87,7 @@ func (client BackendsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client BackendsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendsClient", "Delete", resp, "Failure responding to request") + return } return @@ -269,6 +271,7 @@ func (client BackendsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendsClient", "Get", resp, "Failure responding to request") + return } return @@ -366,6 +369,7 @@ func (client BackendsClient) ListByService(ctx context.Context, resourceGroupNam result.bc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendsClient", "ListByService", resp, "Failure responding to request") + return } if result.bc.hasNextLink() && result.bc.IsEmpty() { err = result.NextWithContext(ctx) @@ -439,6 +443,7 @@ func (client BackendsClient) listByServiceNextResults(ctx context.Context, lastR result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendsClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -506,6 +511,7 @@ func (client BackendsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/certificates.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/certificates.go index 78de9f9f403c..91e3de3cc356 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/certificates.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/certificates.go @@ -93,6 +93,7 @@ func (client CertificatesClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificatesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client CertificatesClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificatesClient", "Delete", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client CertificatesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificatesClient", "Get", resp, "Failure responding to request") + return } return @@ -379,6 +382,7 @@ func (client CertificatesClient) ListByService(ctx context.Context, resourceGrou result.cc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificatesClient", "ListByService", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -452,6 +456,7 @@ func (client CertificatesClient) listByServiceNextResults(ctx context.Context, l result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificatesClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/groups.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/groups.go index 5ee71b67a80b..d5b63e089b92 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/groups.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/groups.go @@ -92,6 +92,7 @@ func (client GroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -184,6 +185,7 @@ func (client GroupsClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client GroupsClient) Get(ctx context.Context, resourceGroupName string, se result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -373,6 +376,7 @@ func (client GroupsClient) ListByService(ctx context.Context, resourceGroupName result.gc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupsClient", "ListByService", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -446,6 +450,7 @@ func (client GroupsClient) listByServiceNextResults(ctx context.Context, lastRes result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupsClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -513,6 +518,7 @@ func (client GroupsClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/groupusers.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/groupusers.go index bfb0365cfec3..0f45aaf15380 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/groupusers.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/groupusers.go @@ -91,6 +91,7 @@ func (client GroupUsersClient) Create(ctx context.Context, resourceGroupName str result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUsersClient", "Create", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client GroupUsersClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUsersClient", "Delete", resp, "Failure responding to request") + return } return @@ -294,6 +296,7 @@ func (client GroupUsersClient) ListByGroups(ctx context.Context, resourceGroupNa result.uc, err = client.ListByGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUsersClient", "ListByGroups", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +371,7 @@ func (client GroupUsersClient) listByGroupsNextResults(ctx context.Context, last result, err = client.ListByGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUsersClient", "listByGroupsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/identityproviders.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/identityproviders.go index 6f50c5a94b21..3277c3f680f6 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/identityproviders.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/identityproviders.go @@ -91,6 +91,7 @@ func (client IdentityProvidersClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProvidersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client IdentityProvidersClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProvidersClient", "Delete", resp, "Failure responding to request") + return } return @@ -264,6 +266,7 @@ func (client IdentityProvidersClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProvidersClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +351,7 @@ func (client IdentityProvidersClient) ListByService(ctx context.Context, resourc result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProvidersClient", "ListByService", resp, "Failure responding to request") + return } return @@ -435,6 +439,7 @@ func (client IdentityProvidersClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProvidersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/loggers.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/loggers.go index 7f93e92bc552..f6e4dec50f8c 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/loggers.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/loggers.go @@ -89,6 +89,7 @@ func (client LoggersClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client LoggersClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggersClient", "Delete", resp, "Failure responding to request") + return } return @@ -268,6 +270,7 @@ func (client LoggersClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggersClient", "Get", resp, "Failure responding to request") + return } return @@ -365,6 +368,7 @@ func (client LoggersClient) ListByService(ctx context.Context, resourceGroupName result.lc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggersClient", "ListByService", resp, "Failure responding to request") + return } if result.lc.hasNextLink() && result.lc.IsEmpty() { err = result.NextWithContext(ctx) @@ -438,6 +442,7 @@ func (client LoggersClient) listByServiceNextResults(ctx context.Context, lastRe result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggersClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -504,6 +509,7 @@ func (client LoggersClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/networkstatus.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/networkstatus.go index dfda77af9d44..21cd1c2257d4 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/networkstatus.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/networkstatus.go @@ -82,6 +82,7 @@ func (client NetworkStatusClient) GetByService(ctx context.Context, resourceGrou result, err = client.GetByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NetworkStatusClient", "GetByService", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/openidconnectproviders.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/openidconnectproviders.go index e7b883c5b637..8c6191db3282 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/openidconnectproviders.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/openidconnectproviders.go @@ -92,6 +92,7 @@ func (client OpenIDConnectProvidersClient) CreateOrUpdate(ctx context.Context, r result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProvidersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -183,6 +184,7 @@ func (client OpenIDConnectProvidersClient) Delete(ctx context.Context, resourceG result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProvidersClient", "Delete", resp, "Failure responding to request") + return } return @@ -272,6 +274,7 @@ func (client OpenIDConnectProvidersClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProvidersClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +372,7 @@ func (client OpenIDConnectProvidersClient) ListByService(ctx context.Context, re result.oicpc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProvidersClient", "ListByService", resp, "Failure responding to request") + return } if result.oicpc.hasNextLink() && result.oicpc.IsEmpty() { err = result.NextWithContext(ctx) @@ -442,6 +446,7 @@ func (client OpenIDConnectProvidersClient) listByServiceNextResults(ctx context. result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProvidersClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -508,6 +513,7 @@ func (client OpenIDConnectProvidersClient) Update(ctx context.Context, resourceG result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProvidersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/operations.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/operations.go index 223c9372bb04..dc1ff10e583f 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/operations.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/policysnippets.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/policysnippets.go index ec031580e349..553f845954a9 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/policysnippets.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/policysnippets.go @@ -82,6 +82,7 @@ func (client PolicySnippetsClient) ListByService(ctx context.Context, resourceGr result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicySnippetsClient", "ListByService", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/productapis.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/productapis.go index afb4b11d9789..3e2b2f10a71c 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/productapis.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/productapis.go @@ -91,6 +91,7 @@ func (client ProductApisClient) Create(ctx context.Context, resourceGroupName st result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductApisClient", "Create", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client ProductApisClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductApisClient", "Delete", resp, "Failure responding to request") + return } return @@ -290,6 +292,7 @@ func (client ProductApisClient) ListByProducts(ctx context.Context, resourceGrou result.ac, err = client.ListByProductsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductApisClient", "ListByProducts", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +367,7 @@ func (client ProductApisClient) listByProductsNextResults(ctx context.Context, l result, err = client.ListByProductsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductApisClient", "listByProductsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/productgroups.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/productgroups.go index 62d288523c25..542cd0194f09 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/productgroups.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/productgroups.go @@ -91,6 +91,7 @@ func (client ProductGroupsClient) Create(ctx context.Context, resourceGroupName result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupsClient", "Create", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client ProductGroupsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -290,6 +292,7 @@ func (client ProductGroupsClient) ListByProducts(ctx context.Context, resourceGr result.gc, err = client.ListByProductsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupsClient", "ListByProducts", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +367,7 @@ func (client ProductGroupsClient) listByProductsNextResults(ctx context.Context, result, err = client.ListByProductsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupsClient", "listByProductsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/productpolicy.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/productpolicy.go index 0d6549f7dc1d..dbb1f55eaf8f 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/productpolicy.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/productpolicy.go @@ -90,6 +90,7 @@ func (client ProductPolicyClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -183,6 +184,7 @@ func (client ProductPolicyClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -272,6 +274,7 @@ func (client ProductPolicyClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/products.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/products.go index 76b5825a9197..cff4a3fc9388 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/products.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/products.go @@ -96,6 +96,7 @@ func (client ProductsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client ProductsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductsClient", "Delete", resp, "Failure responding to request") + return } return @@ -282,6 +284,7 @@ func (client ProductsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductsClient", "Get", resp, "Failure responding to request") + return } return @@ -384,6 +387,7 @@ func (client ProductsClient) ListByService(ctx context.Context, resourceGroupNam result.pc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductsClient", "ListByService", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -460,6 +464,7 @@ func (client ProductsClient) listByServiceNextResults(ctx context.Context, lastR result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductsClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -527,6 +532,7 @@ func (client ProductsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/productsubscriptions.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/productsubscriptions.go index cad45c6cf33f..d79600d7909a 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/productsubscriptions.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/productsubscriptions.go @@ -104,6 +104,7 @@ func (client ProductSubscriptionsClient) ListByProducts(ctx context.Context, res result.sc, err = client.ListByProductsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductSubscriptionsClient", "ListByProducts", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -178,6 +179,7 @@ func (client ProductSubscriptionsClient) listByProductsNextResults(ctx context.C result, err = client.ListByProductsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductSubscriptionsClient", "listByProductsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/properties.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/properties.go index 65f505229f48..4e56e34d196b 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/properties.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/properties.go @@ -94,6 +94,7 @@ func (client PropertiesClient) ListByService(ctx context.Context, resourceGroupN result.pc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertiesClient", "ListByService", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -167,6 +168,7 @@ func (client PropertiesClient) listByServiceNextResults(ctx context.Context, las result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertiesClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/property.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/property.go index e715d06d5564..507fcb6045ab 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/property.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/property.go @@ -98,6 +98,7 @@ func (client PropertyClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -189,6 +190,7 @@ func (client PropertyClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Delete", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client PropertyClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +372,7 @@ func (client PropertyClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/quotabycounterkeys.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/quotabycounterkeys.go index b9b96aac839d..0b37a6ea4c28 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/quotabycounterkeys.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/quotabycounterkeys.go @@ -84,6 +84,7 @@ func (client QuotaByCounterKeysClient) ListByService(ctx context.Context, resour result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByCounterKeysClient", "ListByService", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client QuotaByCounterKeysClient) Update(ctx context.Context, resourceGroup result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByCounterKeysClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/quotabyperiodkeys.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/quotabyperiodkeys.go index 30e4b6779afd..075634051c7d 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/quotabyperiodkeys.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/quotabyperiodkeys.go @@ -85,6 +85,7 @@ func (client QuotaByPeriodKeysClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByPeriodKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client QuotaByPeriodKeysClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByPeriodKeysClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/regions.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/regions.go index e4df49f29edc..ac03c8d09741 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/regions.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/regions.go @@ -81,6 +81,7 @@ func (client RegionsClient) ListByService(ctx context.Context, resourceGroupName result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.RegionsClient", "ListByService", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/reports.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/reports.go index 55d6bfb396b9..76d0991161d2 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/reports.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/reports.go @@ -96,6 +96,7 @@ func (client ReportsClient) ListByService(ctx context.Context, resourceGroupName result.rc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByService", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -173,6 +174,7 @@ func (client ReportsClient) listByServiceNextResults(ctx context.Context, lastRe result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/services.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/services.go index 168076db1652..7ea37bd57990 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/services.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/services.go @@ -254,6 +254,7 @@ func (client ServicesClient) CheckNameAvailability(ctx context.Context, paramete result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServicesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -350,6 +351,7 @@ func (client ServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServicesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -436,6 +438,7 @@ func (client ServicesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -518,6 +521,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -601,6 +605,7 @@ func (client ServicesClient) GetSsoToken(ctx context.Context, resourceGroupName result, err = client.GetSsoTokenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServicesClient", "GetSsoToken", resp, "Failure responding to request") + return } return @@ -674,6 +679,7 @@ func (client ServicesClient) List(ctx context.Context) (result ServiceListResult result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServicesClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -736,6 +742,7 @@ func (client ServicesClient) listNextResults(ctx context.Context, lastResults Se result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -787,6 +794,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGr result.slr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -850,6 +858,7 @@ func (client ServicesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1273,6 +1282,7 @@ func (client ServicesClient) UploadCertificate(ctx context.Context, resourceGrou result, err = client.UploadCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServicesClient", "UploadCertificate", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/subscriptions.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/subscriptions.go index 9a9bc7f63913..517412893e28 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/subscriptions.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/subscriptions.go @@ -102,6 +102,7 @@ func (client SubscriptionsClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -194,6 +195,7 @@ func (client SubscriptionsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -283,6 +285,7 @@ func (client SubscriptionsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -384,6 +387,7 @@ func (client SubscriptionsClient) List(ctx context.Context, resourceGroupName st result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionsClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -457,6 +461,7 @@ func (client SubscriptionsClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -521,6 +526,7 @@ func (client SubscriptionsClient) RegeneratePrimaryKey(ctx context.Context, reso result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionsClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -609,6 +615,7 @@ func (client SubscriptionsClient) RegenerateSecondaryKey(ctx context.Context, re result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionsClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return @@ -700,6 +707,7 @@ func (client SubscriptionsClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/tenantaccess.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/tenantaccess.go index fc2720892dc2..3a8ca4466990 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/tenantaccess.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/tenantaccess.go @@ -81,6 +81,7 @@ func (client TenantAccessClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "Get", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client TenantAccessClient) RegeneratePrimaryKey(ctx context.Context, resou result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client TenantAccessClient) RegenerateSecondaryKey(ctx context.Context, res result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return @@ -331,6 +334,7 @@ func (client TenantAccessClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/tenantaccessgit.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/tenantaccessgit.go index 80aa781c9026..9a617f925431 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/tenantaccessgit.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/tenantaccessgit.go @@ -81,6 +81,7 @@ func (client TenantAccessGitClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "Get", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client TenantAccessGitClient) RegeneratePrimaryKey(ctx context.Context, re result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client TenantAccessGitClient) RegenerateSecondaryKey(ctx context.Context, result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/tenantconfigurationsyncstate.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/tenantconfigurationsyncstate.go index 527c9e4350cb..36dd221d91a9 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/tenantconfigurationsyncstate.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/tenantconfigurationsyncstate.go @@ -82,6 +82,7 @@ func (client TenantConfigurationSyncStateClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationSyncStateClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/tenantpolicy.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/tenantpolicy.go index cf3d424941f5..09c4650577f8 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/tenantpolicy.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/tenantpolicy.go @@ -85,6 +85,7 @@ func (client TenantPolicyClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client TenantPolicyClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantPolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -255,6 +257,7 @@ func (client TenantPolicyClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantPolicyClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/usergroups.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/usergroups.go index 5faa9da888de..dd8964e7e1b3 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/usergroups.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/usergroups.go @@ -100,6 +100,7 @@ func (client UserGroupsClient) ListByUsers(ctx context.Context, resourceGroupNam result.gc, err = client.ListByUsersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserGroupsClient", "ListByUsers", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -174,6 +175,7 @@ func (client UserGroupsClient) listByUsersNextResults(ctx context.Context, lastR result, err = client.ListByUsersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserGroupsClient", "listByUsersNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/useridentities.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/useridentities.go index 7bea20c6fd02..9ed98a484f39 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/useridentities.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/useridentities.go @@ -86,6 +86,7 @@ func (client UserIdentitiesClient) ListByUsers(ctx context.Context, resourceGrou result, err = client.ListByUsersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserIdentitiesClient", "ListByUsers", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/users.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/users.go index b0c1bc89fe13..54e97d25f0ad 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/users.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/users.go @@ -101,6 +101,7 @@ func (client UsersClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UsersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -194,6 +195,7 @@ func (client UsersClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UsersClient", "Delete", resp, "Failure responding to request") + return } return @@ -288,6 +290,7 @@ func (client UsersClient) GenerateSsoURL(ctx context.Context, resourceGroupName result, err = client.GenerateSsoURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UsersClient", "GenerateSsoURL", resp, "Failure responding to request") + return } return @@ -377,6 +380,7 @@ func (client UsersClient) Get(ctx context.Context, resourceGroupName string, ser result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UsersClient", "Get", resp, "Failure responding to request") + return } return @@ -469,6 +473,7 @@ func (client UsersClient) GetSharedAccessToken(ctx context.Context, resourceGrou result, err = client.GetSharedAccessTokenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UsersClient", "GetSharedAccessToken", resp, "Failure responding to request") + return } return @@ -573,6 +578,7 @@ func (client UsersClient) ListByService(ctx context.Context, resourceGroupName s result.uc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UsersClient", "ListByService", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -646,6 +652,7 @@ func (client UsersClient) listByServiceNextResults(ctx context.Context, lastResu result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UsersClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -713,6 +720,7 @@ func (client UsersClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UsersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/usersubscriptions.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/usersubscriptions.go index c0cf28535a42..2c7cd99cd770 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/usersubscriptions.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/usersubscriptions.go @@ -104,6 +104,7 @@ func (client UserSubscriptionsClient) ListByUsers(ctx context.Context, resourceG result.sc, err = client.ListByUsersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserSubscriptionsClient", "ListByUsers", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -178,6 +179,7 @@ func (client UserSubscriptionsClient) listByUsersNextResults(ctx context.Context result, err = client.ListByUsersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserSubscriptionsClient", "listByUsersNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/api.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/api.go index 76d480a2d9a0..603deb7834ce 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/api.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/api.go @@ -90,6 +90,7 @@ func (client APIClient) CreateOrUpdate(ctx context.Context, resourceGroupName st result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client APIClient) Delete(ctx context.Context, resourceGroupName string, se result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Delete", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client APIClient) Get(ctx context.Context, resourceGroupName string, servi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Get", resp, "Failure responding to request") + return } return @@ -367,6 +370,7 @@ func (client APIClient) GetEntityTag(ctx context.Context, resourceGroupName stri result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -467,6 +471,7 @@ func (client APIClient) ListByService(ctx context.Context, resourceGroupName str result.ac, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "ListByService", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -545,6 +550,7 @@ func (client APIClient) listByServiceNextResults(ctx context.Context, lastResult result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -623,6 +629,7 @@ func (client APIClient) ListByTags(ctx context.Context, resourceGroupName string result.trc, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "ListByTags", resp, "Failure responding to request") + return } if result.trc.hasNextLink() && result.trc.IsEmpty() { err = result.NextWithContext(ctx) @@ -696,6 +703,7 @@ func (client APIClient) listByTagsNextResults(ctx context.Context, lastResults T result, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "listByTagsNextResults", resp, "Failure responding to next results request") + return } return } @@ -764,6 +772,7 @@ func (client APIClient) Update(ctx context.Context, resourceGroupName string, se result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/apidiagnostic.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/apidiagnostic.go index f6008db9013f..9b03d4f670e0 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/apidiagnostic.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/apidiagnostic.go @@ -97,6 +97,7 @@ func (client APIDiagnosticClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -200,6 +201,7 @@ func (client APIDiagnosticClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Delete", resp, "Failure responding to request") + return } return @@ -295,6 +297,7 @@ func (client APIDiagnosticClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Get", resp, "Failure responding to request") + return } return @@ -390,6 +393,7 @@ func (client APIDiagnosticClient) Head(ctx context.Context, resourceGroupName st result, err = client.HeadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Head", resp, "Failure responding to request") + return } return @@ -491,6 +495,7 @@ func (client APIDiagnosticClient) ListByService(ctx context.Context, resourceGro result.dc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "ListByService", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -565,6 +570,7 @@ func (client APIDiagnosticClient) listByServiceNextResults(ctx context.Context, result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -637,6 +643,7 @@ func (client APIDiagnosticClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/apidiagnosticlogger.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/apidiagnosticlogger.go index 15c7e412a782..55f44383c5af 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/apidiagnosticlogger.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/apidiagnosticlogger.go @@ -96,6 +96,7 @@ func (client APIDiagnosticLoggerClient) CheckEntityExists(ctx context.Context, r result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticLoggerClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -195,6 +196,7 @@ func (client APIDiagnosticLoggerClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticLoggerClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -295,6 +297,7 @@ func (client APIDiagnosticLoggerClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticLoggerClient", "Delete", resp, "Failure responding to request") + return } return @@ -403,6 +406,7 @@ func (client APIDiagnosticLoggerClient) ListByService(ctx context.Context, resou result.lc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticLoggerClient", "ListByService", resp, "Failure responding to request") + return } if result.lc.hasNextLink() && result.lc.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client APIDiagnosticLoggerClient) listByServiceNextResults(ctx context.Con result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticLoggerClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/apiexport.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/apiexport.go index 08e17a1bd582..a97f6f6b89be 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/apiexport.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/apiexport.go @@ -87,6 +87,7 @@ func (client APIExportClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIExportClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissuattachment.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissuattachment.go index a039fa339ae4..8fbef9d24cc5 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissuattachment.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissuattachment.go @@ -97,6 +97,7 @@ func (client APIIssuAttachmentClient) Head(ctx context.Context, resourceGroupNam result, err = client.HeadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssuAttachmentClient", "Head", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissucomment.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissucomment.go index 3af9feadfbf6..a05b382d07e6 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissucomment.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissucomment.go @@ -96,6 +96,7 @@ func (client APIIssuCommentClient) Head(ctx context.Context, resourceGroupName s result, err = client.HeadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssuCommentClient", "Head", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissue.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissue.go index 35504f2db67f..223ad81611e0 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissue.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissue.go @@ -100,6 +100,7 @@ func (client APIIssueClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -203,6 +204,7 @@ func (client APIIssueClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Delete", resp, "Failure responding to request") + return } return @@ -298,6 +300,7 @@ func (client APIIssueClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Get", resp, "Failure responding to request") + return } return @@ -393,6 +396,7 @@ func (client APIIssueClient) Head(ctx context.Context, resourceGroupName string, result, err = client.HeadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Head", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissueattachment.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissueattachment.go index 171ca50131f3..86e3af2cbb92 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissueattachment.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissueattachment.go @@ -106,6 +106,7 @@ func (client APIIssueAttachmentClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -215,6 +216,7 @@ func (client APIIssueAttachmentClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "Delete", resp, "Failure responding to request") + return } return @@ -316,6 +318,7 @@ func (client APIIssueAttachmentClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissueattachments.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissueattachments.go index e61b18e1ef0a..da74e4dbb4d7 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissueattachments.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissueattachments.go @@ -105,6 +105,7 @@ func (client APIIssueAttachmentsClient) ListByService(ctx context.Context, resou result.iac, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentsClient", "ListByService", resp, "Failure responding to request") + return } if result.iac.hasNextLink() && result.iac.IsEmpty() { err = result.NextWithContext(ctx) @@ -180,6 +181,7 @@ func (client APIIssueAttachmentsClient) listByServiceNextResults(ctx context.Con result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentsClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissuecomment.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissuecomment.go index 16d6966fbcfd..2afa8cb5d63e 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissuecomment.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissuecomment.go @@ -104,6 +104,7 @@ func (client APIIssueCommentClient) CreateOrUpdate(ctx context.Context, resource result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -213,6 +214,7 @@ func (client APIIssueCommentClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "Delete", resp, "Failure responding to request") + return } return @@ -314,6 +316,7 @@ func (client APIIssueCommentClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissuecomments.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissuecomments.go index 1491a029ae3d..2bfd61ceb288 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissuecomments.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissuecomments.go @@ -105,6 +105,7 @@ func (client APIIssueCommentsClient) ListByService(ctx context.Context, resource result.icc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentsClient", "ListByService", resp, "Failure responding to request") + return } if result.icc.hasNextLink() && result.icc.IsEmpty() { err = result.NextWithContext(ctx) @@ -180,6 +181,7 @@ func (client APIIssueCommentsClient) listByServiceNextResults(ctx context.Contex result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentsClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissues.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissues.go index 68719d865769..8d00338f193c 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissues.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/apiissues.go @@ -100,6 +100,7 @@ func (client APIIssuesClient) ListByService(ctx context.Context, resourceGroupNa result.ic, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssuesClient", "ListByService", resp, "Failure responding to request") + return } if result.ic.hasNextLink() && result.ic.IsEmpty() { err = result.NextWithContext(ctx) @@ -174,6 +175,7 @@ func (client APIIssuesClient) listByServiceNextResults(ctx context.Context, last result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssuesClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/apioperation.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/apioperation.go index d84ee61b7972..195df997b0c4 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/apioperation.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/apioperation.go @@ -106,6 +106,7 @@ func (client APIOperationClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -207,6 +208,7 @@ func (client APIOperationClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Delete", resp, "Failure responding to request") + return } return @@ -304,6 +306,7 @@ func (client APIOperationClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Get", resp, "Failure responding to request") + return } return @@ -400,6 +403,7 @@ func (client APIOperationClient) GetEntityTag(ctx context.Context, resourceGroup result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -505,6 +509,7 @@ func (client APIOperationClient) ListByAPI(ctx context.Context, resourceGroupNam result.oc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "ListByAPI", resp, "Failure responding to request") + return } if result.oc.hasNextLink() && result.oc.IsEmpty() { err = result.NextWithContext(ctx) @@ -579,6 +584,7 @@ func (client APIOperationClient) listByAPINextResults(ctx context.Context, lastR result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } @@ -653,6 +659,7 @@ func (client APIOperationClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/apioperationpolicy.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/apioperationpolicy.go index 98a925844033..699d4039c0e9 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/apioperationpolicy.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/apioperationpolicy.go @@ -100,6 +100,7 @@ func (client APIOperationPolicyClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -202,6 +203,7 @@ func (client APIOperationPolicyClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -300,6 +302,7 @@ func (client APIOperationPolicyClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -397,6 +400,7 @@ func (client APIOperationPolicyClient) GetEntityTag(ctx context.Context, resourc result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -494,6 +498,7 @@ func (client APIOperationPolicyClient) ListByOperation(ctx context.Context, reso result, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "ListByOperation", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/apipolicy.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/apipolicy.go index 5fa5e5714cc7..a2937a7a12b7 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/apipolicy.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/apipolicy.go @@ -93,6 +93,7 @@ func (client APIPolicyClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -189,6 +190,7 @@ func (client APIPolicyClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client APIPolicyClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client APIPolicyClient) GetEntityTag(ctx context.Context, resourceGroupNam result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -459,6 +463,7 @@ func (client APIPolicyClient) ListByAPI(ctx context.Context, resourceGroupName s result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "ListByAPI", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/apiproduct.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/apiproduct.go index 40067f5651e3..c8d58ba94297 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/apiproduct.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/apiproduct.go @@ -98,6 +98,7 @@ func (client APIProductClient) ListByApis(ctx context.Context, resourceGroupName result.pc, err = client.ListByApisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIProductClient", "ListByApis", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -172,6 +173,7 @@ func (client APIProductClient) listByApisNextResults(ctx context.Context, lastRe result, err = client.ListByApisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIProductClient", "listByApisNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/apirelease.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/apirelease.go index ef704f8e8597..9c1054d8bef0 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/apirelease.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/apirelease.go @@ -92,6 +92,7 @@ func (client APIReleaseClient) Create(ctx context.Context, parameters APIRelease result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Create", resp, "Failure responding to request") + return } return @@ -191,6 +192,7 @@ func (client APIReleaseClient) Delete(ctx context.Context, ifMatch string, resou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Delete", resp, "Failure responding to request") + return } return @@ -286,6 +288,7 @@ func (client APIReleaseClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Get", resp, "Failure responding to request") + return } return @@ -391,6 +394,7 @@ func (client APIReleaseClient) List(ctx context.Context, resourceGroupName strin result.arc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "List", resp, "Failure responding to request") + return } if result.arc.hasNextLink() && result.arc.IsEmpty() { err = result.NextWithContext(ctx) @@ -465,6 +469,7 @@ func (client APIReleaseClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -537,6 +542,7 @@ func (client APIReleaseClient) Update(ctx context.Context, parameters APIRelease result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/apirevisions.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/apirevisions.go index 6e87ef210ad4..14ccd487bcfa 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/apirevisions.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/apirevisions.go @@ -99,6 +99,7 @@ func (client APIRevisionsClient) List(ctx context.Context, resourceGroupName str result.arc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIRevisionsClient", "List", resp, "Failure responding to request") + return } if result.arc.hasNextLink() && result.arc.IsEmpty() { err = result.NextWithContext(ctx) @@ -173,6 +174,7 @@ func (client APIRevisionsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIRevisionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/apischema.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/apischema.go index 11b148e38a82..ae38503e843f 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/apischema.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/apischema.go @@ -97,6 +97,7 @@ func (client APISchemaClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -200,6 +201,7 @@ func (client APISchemaClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "Delete", resp, "Failure responding to request") + return } return @@ -295,6 +297,7 @@ func (client APISchemaClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "Get", resp, "Failure responding to request") + return } return @@ -390,6 +393,7 @@ func (client APISchemaClient) GetEntityTag(ctx context.Context, resourceGroupNam result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -480,6 +484,7 @@ func (client APISchemaClient) ListByAPI(ctx context.Context, resourceGroupName s result.sc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "ListByAPI", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -545,6 +550,7 @@ func (client APISchemaClient) listByAPINextResults(ctx context.Context, lastResu result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/apiversionset.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/apiversionset.go index 1349eeb78154..ea51ff1a0a6a 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/apiversionset.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/apiversionset.go @@ -96,6 +96,7 @@ func (client APIVersionSetClient) CreateOrUpdate(ctx context.Context, parameters result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -193,6 +194,7 @@ func (client APIVersionSetClient) Delete(ctx context.Context, ifMatch string, re result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Delete", resp, "Failure responding to request") + return } return @@ -282,6 +284,7 @@ func (client APIVersionSetClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Get", resp, "Failure responding to request") + return } return @@ -371,6 +374,7 @@ func (client APIVersionSetClient) GetEntityTag(ctx context.Context, resourceGrou result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -472,6 +476,7 @@ func (client APIVersionSetClient) ListByService(ctx context.Context, resourceGro result.avsc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "ListByService", resp, "Failure responding to request") + return } if result.avsc.hasNextLink() && result.avsc.IsEmpty() { err = result.NextWithContext(ctx) @@ -545,6 +550,7 @@ func (client APIVersionSetClient) listByServiceNextResults(ctx context.Context, result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -612,6 +618,7 @@ func (client APIVersionSetClient) Update(ctx context.Context, parameters APIVers result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/authorizationserver.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/authorizationserver.go index dd94080a6d0c..fd816223a0ea 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/authorizationserver.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/authorizationserver.go @@ -98,6 +98,7 @@ func (client AuthorizationServerClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client AuthorizationServerClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Delete", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client AuthorizationServerClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Get", resp, "Failure responding to request") + return } return @@ -366,6 +369,7 @@ func (client AuthorizationServerClient) GetEntityTag(ctx context.Context, resour result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -462,6 +466,7 @@ func (client AuthorizationServerClient) ListByService(ctx context.Context, resou result.asc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "ListByService", resp, "Failure responding to request") + return } if result.asc.hasNextLink() && result.asc.IsEmpty() { err = result.NextWithContext(ctx) @@ -535,6 +540,7 @@ func (client AuthorizationServerClient) listByServiceNextResults(ctx context.Con result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -601,6 +607,7 @@ func (client AuthorizationServerClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/backend.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/backend.go index b00aca2cc02d..0572690cd239 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/backend.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/backend.go @@ -94,6 +94,7 @@ func (client BackendClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -187,6 +188,7 @@ func (client BackendClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Delete", resp, "Failure responding to request") + return } return @@ -276,6 +278,7 @@ func (client BackendClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Get", resp, "Failure responding to request") + return } return @@ -365,6 +368,7 @@ func (client BackendClient) GetEntityTag(ctx context.Context, resourceGroupName result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -461,6 +465,7 @@ func (client BackendClient) ListByService(ctx context.Context, resourceGroupName result.bc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "ListByService", resp, "Failure responding to request") + return } if result.bc.hasNextLink() && result.bc.IsEmpty() { err = result.NextWithContext(ctx) @@ -534,6 +539,7 @@ func (client BackendClient) listByServiceNextResults(ctx context.Context, lastRe result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -609,6 +615,7 @@ func (client BackendClient) Reconnect(ctx context.Context, resourceGroupName str result, err = client.ReconnectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Reconnect", resp, "Failure responding to request") + return } return @@ -705,6 +712,7 @@ func (client BackendClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/certificate.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/certificate.go index d70171b6505a..5dbf2a0cf6f0 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/certificate.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/certificate.go @@ -95,6 +95,7 @@ func (client CertificateClient) CreateOrUpdate(ctx context.Context, resourceGrou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -193,6 +194,7 @@ func (client CertificateClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "Delete", resp, "Failure responding to request") + return } return @@ -283,6 +285,7 @@ func (client CertificateClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -373,6 +376,7 @@ func (client CertificateClient) GetEntityTag(ctx context.Context, resourceGroupN result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -471,6 +475,7 @@ func (client CertificateClient) ListByService(ctx context.Context, resourceGroup result.cc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "ListByService", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -544,6 +549,7 @@ func (client CertificateClient) listByServiceNextResults(ctx context.Context, la result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/delegationsettings.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/delegationsettings.go index ce6a21fe2c5c..a9b90c5ec03e 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/delegationsettings.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/delegationsettings.go @@ -83,6 +83,7 @@ func (client DelegationSettingsClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client DelegationSettingsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -251,6 +253,7 @@ func (client DelegationSettingsClient) Head(ctx context.Context, resourceGroupNa result, err = client.HeadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "Head", resp, "Failure responding to request") + return } return @@ -336,6 +339,7 @@ func (client DelegationSettingsClient) Update(ctx context.Context, resourceGroup result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/diagnostic.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/diagnostic.go index fd2d8220f9e2..02137a57df85 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/diagnostic.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/diagnostic.go @@ -92,6 +92,7 @@ func (client DiagnosticClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -189,6 +190,7 @@ func (client DiagnosticClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Delete", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client DiagnosticClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Get", resp, "Failure responding to request") + return } return @@ -367,6 +370,7 @@ func (client DiagnosticClient) Head(ctx context.Context, resourceGroupName strin result, err = client.HeadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Head", resp, "Failure responding to request") + return } return @@ -462,6 +466,7 @@ func (client DiagnosticClient) ListByService(ctx context.Context, resourceGroupN result.dc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "ListByService", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -535,6 +540,7 @@ func (client DiagnosticClient) listByServiceNextResults(ctx context.Context, las result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -602,6 +608,7 @@ func (client DiagnosticClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/diagnosticlogger.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/diagnosticlogger.go index aaef2f08fabd..fe1fdad314d1 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/diagnosticlogger.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/diagnosticlogger.go @@ -91,6 +91,7 @@ func (client DiagnosticLoggerClient) CheckEntityExists(ctx context.Context, reso result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticLoggerClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -184,6 +185,7 @@ func (client DiagnosticLoggerClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticLoggerClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client DiagnosticLoggerClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticLoggerClient", "Delete", resp, "Failure responding to request") + return } return @@ -380,6 +383,7 @@ func (client DiagnosticLoggerClient) ListByService(ctx context.Context, resource result.lc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticLoggerClient", "ListByService", resp, "Failure responding to request") + return } if result.lc.hasNextLink() && result.lc.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +458,7 @@ func (client DiagnosticLoggerClient) listByServiceNextResults(ctx context.Contex result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticLoggerClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/emailtemplate.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/emailtemplate.go index 12666afe050d..71cb7d5bed51 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/emailtemplate.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/emailtemplate.go @@ -92,6 +92,7 @@ func (client EmailTemplateClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client EmailTemplateClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Delete", resp, "Failure responding to request") + return } return @@ -266,6 +268,7 @@ func (client EmailTemplateClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Get", resp, "Failure responding to request") + return } return @@ -351,6 +354,7 @@ func (client EmailTemplateClient) GetEntityTag(ctx context.Context, resourceGrou result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -443,6 +447,7 @@ func (client EmailTemplateClient) ListByService(ctx context.Context, resourceGro result.etc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "ListByService", resp, "Failure responding to request") + return } if result.etc.hasNextLink() && result.etc.IsEmpty() { err = result.NextWithContext(ctx) @@ -513,6 +518,7 @@ func (client EmailTemplateClient) listByServiceNextResults(ctx context.Context, result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -574,6 +580,7 @@ func (client EmailTemplateClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/group.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/group.go index c52225f66c13..4aa8556badc5 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/group.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/group.go @@ -94,6 +94,7 @@ func (client GroupClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -187,6 +188,7 @@ func (client GroupClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Delete", resp, "Failure responding to request") + return } return @@ -276,6 +278,7 @@ func (client GroupClient) Get(ctx context.Context, resourceGroupName string, ser result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Get", resp, "Failure responding to request") + return } return @@ -365,6 +368,7 @@ func (client GroupClient) GetEntityTag(ctx context.Context, resourceGroupName st result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -463,6 +467,7 @@ func (client GroupClient) ListByService(ctx context.Context, resourceGroupName s result.gc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "ListByService", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -536,6 +541,7 @@ func (client GroupClient) listByServiceNextResults(ctx context.Context, lastResu result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -603,6 +609,7 @@ func (client GroupClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/groupuser.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/groupuser.go index 5516c177d560..f469606764ac 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/groupuser.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/groupuser.go @@ -91,6 +91,7 @@ func (client GroupUserClient) CheckEntityExists(ctx context.Context, resourceGro result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client GroupUserClient) Create(ctx context.Context, resourceGroupName stri result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "Create", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client GroupUserClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "Delete", resp, "Failure responding to request") + return } return @@ -387,6 +390,7 @@ func (client GroupUserClient) List(ctx context.Context, resourceGroupName string result.uc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "List", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -461,6 +465,7 @@ func (client GroupUserClient) listNextResults(ctx context.Context, lastResults U result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/identityprovider.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/identityprovider.go index 13783c4e2085..951d4faf9fac 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/identityprovider.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/identityprovider.go @@ -91,6 +91,7 @@ func (client IdentityProviderClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client IdentityProviderClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Delete", resp, "Failure responding to request") + return } return @@ -265,6 +267,7 @@ func (client IdentityProviderClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Get", resp, "Failure responding to request") + return } return @@ -350,6 +353,7 @@ func (client IdentityProviderClient) GetEntityTag(ctx context.Context, resourceG result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -433,6 +437,7 @@ func (client IdentityProviderClient) ListByService(ctx context.Context, resource result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "ListByService", resp, "Failure responding to request") + return } return @@ -520,6 +525,7 @@ func (client IdentityProviderClient) Update(ctx context.Context, resourceGroupNa result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/logger.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/logger.go index bafb1a883b26..92fb90a03232 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/logger.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/logger.go @@ -108,6 +108,7 @@ func (client LoggerClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -200,6 +201,7 @@ func (client LoggerClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Delete", resp, "Failure responding to request") + return } return @@ -288,6 +290,7 @@ func (client LoggerClient) Get(ctx context.Context, resourceGroupName string, se result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Get", resp, "Failure responding to request") + return } return @@ -376,6 +379,7 @@ func (client LoggerClient) GetEntityTag(ctx context.Context, resourceGroupName s result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -472,6 +476,7 @@ func (client LoggerClient) ListByService(ctx context.Context, resourceGroupName result.lc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "ListByService", resp, "Failure responding to request") + return } if result.lc.hasNextLink() && result.lc.IsEmpty() { err = result.NextWithContext(ctx) @@ -545,6 +550,7 @@ func (client LoggerClient) listByServiceNextResults(ctx context.Context, lastRes result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -611,6 +617,7 @@ func (client LoggerClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/networkstatus.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/networkstatus.go index a6d8f129ad24..e2d669bf09cc 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/networkstatus.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/networkstatus.go @@ -86,6 +86,7 @@ func (client NetworkStatusClient) ListByLocation(ctx context.Context, resourceGr result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NetworkStatusClient", "ListByLocation", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client NetworkStatusClient) ListByService(ctx context.Context, resourceGro result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NetworkStatusClient", "ListByService", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/notification.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/notification.go index 1433bd957210..6a1ed27d256b 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/notification.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/notification.go @@ -82,6 +82,7 @@ func (client NotificationClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client NotificationClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "Get", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client NotificationClient) ListByService(ctx context.Context, resourceGrou result.nc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "ListByService", resp, "Failure responding to request") + return } if result.nc.hasNextLink() && result.nc.IsEmpty() { err = result.NextWithContext(ctx) @@ -330,6 +333,7 @@ func (client NotificationClient) listByServiceNextResults(ctx context.Context, l result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/notificationrecipientemail.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/notificationrecipientemail.go index db85a0a5b1e0..01c7255ffc98 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/notificationrecipientemail.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/notificationrecipientemail.go @@ -84,6 +84,7 @@ func (client NotificationRecipientEmailClient) CreateOrUpdate(ctx context.Contex result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client NotificationRecipientEmailClient) Delete(ctx context.Context, resou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "Delete", resp, "Failure responding to request") + return } return @@ -257,6 +259,7 @@ func (client NotificationRecipientEmailClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "Get", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client NotificationRecipientEmailClient) ListByNotification(ctx context.Co result, err = client.ListByNotificationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "ListByNotification", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/notificationrecipientuser.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/notificationrecipientuser.go index 5bac3cfc13d0..4cda2134ac8d 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/notificationrecipientuser.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/notificationrecipientuser.go @@ -88,6 +88,7 @@ func (client NotificationRecipientUserClient) CreateOrUpdate(ctx context.Context result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client NotificationRecipientUserClient) Delete(ctx context.Context, resour result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "Delete", resp, "Failure responding to request") + return } return @@ -269,6 +271,7 @@ func (client NotificationRecipientUserClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "Get", resp, "Failure responding to request") + return } return @@ -354,6 +357,7 @@ func (client NotificationRecipientUserClient) ListByNotification(ctx context.Con result, err = client.ListByNotificationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "ListByNotification", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/openidconnectprovider.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/openidconnectprovider.go index 04aed2f94e28..2cc6b162d743 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/openidconnectprovider.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/openidconnectprovider.go @@ -94,6 +94,7 @@ func (client OpenIDConnectProviderClient) CreateOrUpdate(ctx context.Context, re result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client OpenIDConnectProviderClient) Delete(ctx context.Context, resourceGr result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Delete", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client OpenIDConnectProviderClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Get", resp, "Failure responding to request") + return } return @@ -362,6 +365,7 @@ func (client OpenIDConnectProviderClient) GetEntityTag(ctx context.Context, reso result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -458,6 +462,7 @@ func (client OpenIDConnectProviderClient) ListByService(ctx context.Context, res result.oicpc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "ListByService", resp, "Failure responding to request") + return } if result.oicpc.hasNextLink() && result.oicpc.IsEmpty() { err = result.NextWithContext(ctx) @@ -531,6 +536,7 @@ func (client OpenIDConnectProviderClient) listByServiceNextResults(ctx context.C result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -597,6 +603,7 @@ func (client OpenIDConnectProviderClient) Update(ctx context.Context, resourceGr result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/operation.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/operation.go index 6123108764ff..1eff11cccc5a 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/operation.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/operation.go @@ -103,6 +103,7 @@ func (client OperationClient) ListByTags(ctx context.Context, resourceGroupName result.trc, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OperationClient", "ListByTags", resp, "Failure responding to request") + return } if result.trc.hasNextLink() && result.trc.IsEmpty() { err = result.NextWithContext(ctx) @@ -177,6 +178,7 @@ func (client OperationClient) listByTagsNextResults(ctx context.Context, lastRes result, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OperationClient", "listByTagsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/operations.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/operations.go index 84d834680f63..b8924ce5e709 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/operations.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/policy.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/policy.go index 7aa6eda44ffa..b95686a7a798 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/policy.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/policy.go @@ -85,6 +85,7 @@ func (client PolicyClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client PolicyClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -257,6 +259,7 @@ func (client PolicyClient) Get(ctx context.Context, resourceGroupName string, se result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client PolicyClient) ListByService(ctx context.Context, resourceGroupName result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "ListByService", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/policysnippets.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/policysnippets.go index c34d8a05652b..f8c868ea21fc 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/policysnippets.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/policysnippets.go @@ -82,6 +82,7 @@ func (client PolicySnippetsClient) ListByService(ctx context.Context, resourceGr result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicySnippetsClient", "ListByService", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/product.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/product.go index d28acf77d7f6..6d8eeb02fff3 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/product.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/product.go @@ -94,6 +94,7 @@ func (client ProductClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client ProductClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Delete", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client ProductClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +372,7 @@ func (client ProductClient) GetEntityTag(ctx context.Context, resourceGroupName result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -470,6 +474,7 @@ func (client ProductClient) ListByService(ctx context.Context, resourceGroupName result.pc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "ListByService", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -546,6 +551,7 @@ func (client ProductClient) listByServiceNextResults(ctx context.Context, lastRe result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -613,6 +619,7 @@ func (client ProductClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/productapi.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/productapi.go index 4a5de28fe8ba..4560f37b9f34 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/productapi.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/productapi.go @@ -91,6 +91,7 @@ func (client ProductAPIClient) CheckEntityExists(ctx context.Context, resourceGr result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client ProductAPIClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client ProductAPIClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "Delete", resp, "Failure responding to request") + return } return @@ -385,6 +388,7 @@ func (client ProductAPIClient) ListByProduct(ctx context.Context, resourceGroupN result.ac, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "ListByProduct", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -459,6 +463,7 @@ func (client ProductAPIClient) listByProductNextResults(ctx context.Context, las result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/productgroup.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/productgroup.go index 809ea0ad3d64..a2510ab3500f 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/productgroup.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/productgroup.go @@ -91,6 +91,7 @@ func (client ProductGroupClient) CheckEntityExists(ctx context.Context, resource result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client ProductGroupClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client ProductGroupClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "Delete", resp, "Failure responding to request") + return } return @@ -384,6 +387,7 @@ func (client ProductGroupClient) ListByProduct(ctx context.Context, resourceGrou result.gc, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "ListByProduct", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -458,6 +462,7 @@ func (client ProductGroupClient) listByProductNextResults(ctx context.Context, l result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/productpolicy.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/productpolicy.go index d02057f95e60..d970b23ac7ab 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/productpolicy.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/productpolicy.go @@ -90,6 +90,7 @@ func (client ProductPolicyClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -184,6 +185,7 @@ func (client ProductPolicyClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client ProductPolicyClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -364,6 +367,7 @@ func (client ProductPolicyClient) ListByProduct(ctx context.Context, resourceGro result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "ListByProduct", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/productsubscriptions.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/productsubscriptions.go index 237a56dfa539..1c1107777635 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/productsubscriptions.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/productsubscriptions.go @@ -104,6 +104,7 @@ func (client ProductSubscriptionsClient) List(ctx context.Context, resourceGroup result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductSubscriptionsClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -178,6 +179,7 @@ func (client ProductSubscriptionsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductSubscriptionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/property.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/property.go index bf63056db49e..2bca01c3f535 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/property.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/property.go @@ -98,6 +98,7 @@ func (client PropertyClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client PropertyClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Delete", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client PropertyClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Get", resp, "Failure responding to request") + return } return @@ -366,6 +369,7 @@ func (client PropertyClient) GetEntityTag(ctx context.Context, resourceGroupName result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -462,6 +466,7 @@ func (client PropertyClient) ListByService(ctx context.Context, resourceGroupNam result.pc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "ListByService", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -535,6 +540,7 @@ func (client PropertyClient) listByServiceNextResults(ctx context.Context, lastR result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -601,6 +607,7 @@ func (client PropertyClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/quotabycounterkeys.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/quotabycounterkeys.go index b2fad6427189..884c236cc407 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/quotabycounterkeys.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/quotabycounterkeys.go @@ -87,6 +87,7 @@ func (client QuotaByCounterKeysClient) ListByService(ctx context.Context, resour result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByCounterKeysClient", "ListByService", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client QuotaByCounterKeysClient) Update(ctx context.Context, resourceGroup result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByCounterKeysClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/quotabyperiodkeys.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/quotabyperiodkeys.go index 17d4c3cb6671..6c8853be5b21 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/quotabyperiodkeys.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/quotabyperiodkeys.go @@ -88,6 +88,7 @@ func (client QuotaByPeriodKeysClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByPeriodKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client QuotaByPeriodKeysClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByPeriodKeysClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/regions.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/regions.go index 6a74866dfd15..f5e98f3b0de6 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/regions.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/regions.go @@ -81,6 +81,7 @@ func (client RegionsClient) ListByService(ctx context.Context, resourceGroupName result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.RegionsClient", "ListByService", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/reports.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/reports.go index f6af24e0995b..15cb03d40f73 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/reports.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/reports.go @@ -91,6 +91,7 @@ func (client ReportsClient) ListByAPI(ctx context.Context, resourceGroupName str result.rc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByAPI", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -162,6 +163,7 @@ func (client ReportsClient) listByAPINextResults(ctx context.Context, lastResult result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } @@ -231,6 +233,7 @@ func (client ReportsClient) ListByGeo(ctx context.Context, resourceGroupName str result.rc, err = client.ListByGeoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByGeo", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -304,6 +307,7 @@ func (client ReportsClient) listByGeoNextResults(ctx context.Context, lastResult result, err = client.ListByGeoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByGeoNextResults", resp, "Failure responding to next results request") + return } return } @@ -373,6 +377,7 @@ func (client ReportsClient) ListByOperation(ctx context.Context, resourceGroupNa result.rc, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByOperation", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -444,6 +449,7 @@ func (client ReportsClient) listByOperationNextResults(ctx context.Context, last result, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByOperationNextResults", resp, "Failure responding to next results request") + return } return } @@ -513,6 +519,7 @@ func (client ReportsClient) ListByProduct(ctx context.Context, resourceGroupName result.rc, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByProduct", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -584,6 +591,7 @@ func (client ReportsClient) listByProductNextResults(ctx context.Context, lastRe result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } @@ -652,6 +660,7 @@ func (client ReportsClient) ListByRequest(ctx context.Context, resourceGroupName result, err = client.ListByRequestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByRequest", resp, "Failure responding to request") + return } return @@ -752,6 +761,7 @@ func (client ReportsClient) ListBySubscription(ctx context.Context, resourceGrou result.rc, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -825,6 +835,7 @@ func (client ReportsClient) listBySubscriptionNextResults(ctx context.Context, l result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -897,6 +908,7 @@ func (client ReportsClient) ListByTime(ctx context.Context, resourceGroupName st result.rc, err = client.ListByTimeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByTime", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -971,6 +983,7 @@ func (client ReportsClient) listByTimeNextResults(ctx context.Context, lastResul result, err = client.ListByTimeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByTimeNextResults", resp, "Failure responding to next results request") + return } return } @@ -1040,6 +1053,7 @@ func (client ReportsClient) ListByUser(ctx context.Context, resourceGroupName st result.rc, err = client.ListByUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByUser", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1111,6 +1125,7 @@ func (client ReportsClient) listByUserNextResults(ctx context.Context, lastResul result, err = client.ListByUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByUserNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/service.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/service.go index 5c44f0de3ac6..3fd516ff2109 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/service.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/service.go @@ -262,6 +262,7 @@ func (client ServiceClient) CheckNameAvailability(ctx context.Context, parameter result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -444,6 +445,7 @@ func (client ServiceClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "Delete", resp, "Failure responding to request") + return } return @@ -526,6 +528,7 @@ func (client ServiceClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "Get", resp, "Failure responding to request") + return } return @@ -609,6 +612,7 @@ func (client ServiceClient) GetSsoToken(ctx context.Context, resourceGroupName s result, err = client.GetSsoTokenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "GetSsoToken", resp, "Failure responding to request") + return } return @@ -682,6 +686,7 @@ func (client ServiceClient) List(ctx context.Context) (result ServiceListResultP result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -744,6 +749,7 @@ func (client ServiceClient) listNextResults(ctx context.Context, lastResults Ser result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -795,6 +801,7 @@ func (client ServiceClient) ListByResourceGroup(ctx context.Context, resourceGro result.slr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -858,6 +865,7 @@ func (client ServiceClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1189,6 +1197,7 @@ func (client ServiceClient) UploadCertificate(ctx context.Context, resourceGroup result, err = client.UploadCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "UploadCertificate", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/signinsettings.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/signinsettings.go index d3ebf99423c7..e31ec783dee0 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/signinsettings.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/signinsettings.go @@ -82,6 +82,7 @@ func (client SignInSettingsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client SignInSettingsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -250,6 +252,7 @@ func (client SignInSettingsClient) Head(ctx context.Context, resourceGroupName s result, err = client.HeadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "Head", resp, "Failure responding to request") + return } return @@ -335,6 +338,7 @@ func (client SignInSettingsClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/signupsettings.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/signupsettings.go index 1fcdcf6b26df..6d71fbf1e01e 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/signupsettings.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/signupsettings.go @@ -82,6 +82,7 @@ func (client SignUpSettingsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client SignUpSettingsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -250,6 +252,7 @@ func (client SignUpSettingsClient) Head(ctx context.Context, resourceGroupName s result, err = client.HeadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Head", resp, "Failure responding to request") + return } return @@ -335,6 +338,7 @@ func (client SignUpSettingsClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/subscription.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/subscription.go index 791b46a61936..846adfdfc582 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/subscription.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/subscription.go @@ -104,6 +104,7 @@ func (client SubscriptionClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -197,6 +198,7 @@ func (client SubscriptionClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Delete", resp, "Failure responding to request") + return } return @@ -286,6 +288,7 @@ func (client SubscriptionClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Get", resp, "Failure responding to request") + return } return @@ -375,6 +378,7 @@ func (client SubscriptionClient) GetEntityTag(ctx context.Context, resourceGroup result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -475,6 +479,7 @@ func (client SubscriptionClient) List(ctx context.Context, resourceGroupName str result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -548,6 +553,7 @@ func (client SubscriptionClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -612,6 +618,7 @@ func (client SubscriptionClient) RegeneratePrimaryKey(ctx context.Context, resou result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -700,6 +707,7 @@ func (client SubscriptionClient) RegenerateSecondaryKey(ctx context.Context, res result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return @@ -791,6 +799,7 @@ func (client SubscriptionClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/tag.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/tag.go index fd06e20aaded..ac27d16c2cd7 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/tag.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/tag.go @@ -93,6 +93,7 @@ func (client TagClient) AssignToAPI(ctx context.Context, resourceGroupName strin result, err = client.AssignToAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToAPI", resp, "Failure responding to request") + return } return @@ -200,6 +201,7 @@ func (client TagClient) AssignToOperation(ctx context.Context, resourceGroupName result, err = client.AssignToOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToOperation", resp, "Failure responding to request") + return } return @@ -302,6 +304,7 @@ func (client TagClient) AssignToProduct(ctx context.Context, resourceGroupName s result, err = client.AssignToProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToProduct", resp, "Failure responding to request") + return } return @@ -404,6 +407,7 @@ func (client TagClient) CreateOrUpdate(ctx context.Context, resourceGroupName st result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -497,6 +501,7 @@ func (client TagClient) Delete(ctx context.Context, resourceGroupName string, se result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Delete", resp, "Failure responding to request") + return } return @@ -593,6 +598,7 @@ func (client TagClient) DetachFromAPI(ctx context.Context, resourceGroupName str result, err = client.DetachFromAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromAPI", resp, "Failure responding to request") + return } return @@ -696,6 +702,7 @@ func (client TagClient) DetachFromOperation(ctx context.Context, resourceGroupNa result, err = client.DetachFromOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromOperation", resp, "Failure responding to request") + return } return @@ -794,6 +801,7 @@ func (client TagClient) DetachFromProduct(ctx context.Context, resourceGroupName result, err = client.DetachFromProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromProduct", resp, "Failure responding to request") + return } return @@ -884,6 +892,7 @@ func (client TagClient) Get(ctx context.Context, resourceGroupName string, servi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Get", resp, "Failure responding to request") + return } return @@ -978,6 +987,7 @@ func (client TagClient) GetByAPI(ctx context.Context, resourceGroupName string, result, err = client.GetByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByAPI", resp, "Failure responding to request") + return } return @@ -1079,6 +1089,7 @@ func (client TagClient) GetByOperation(ctx context.Context, resourceGroupName st result, err = client.GetByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByOperation", resp, "Failure responding to request") + return } return @@ -1175,6 +1186,7 @@ func (client TagClient) GetByProduct(ctx context.Context, resourceGroupName stri result, err = client.GetByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByProduct", resp, "Failure responding to request") + return } return @@ -1265,6 +1277,7 @@ func (client TagClient) GetEntityState(ctx context.Context, resourceGroupName st result, err = client.GetEntityStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityState", resp, "Failure responding to request") + return } return @@ -1358,6 +1371,7 @@ func (client TagClient) GetEntityStateByAPI(ctx context.Context, resourceGroupNa result, err = client.GetEntityStateByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByAPI", resp, "Failure responding to request") + return } return @@ -1458,6 +1472,7 @@ func (client TagClient) GetEntityStateByOperation(ctx context.Context, resourceG result, err = client.GetEntityStateByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByOperation", resp, "Failure responding to request") + return } return @@ -1553,6 +1568,7 @@ func (client TagClient) GetEntityStateByProduct(ctx context.Context, resourceGro result, err = client.GetEntityStateByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByProduct", resp, "Failure responding to request") + return } return @@ -1655,6 +1671,7 @@ func (client TagClient) ListByAPI(ctx context.Context, resourceGroupName string, result.tc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByAPI", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1729,6 +1746,7 @@ func (client TagClient) listByAPINextResults(ctx context.Context, lastResults Ta result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } @@ -1815,6 +1833,7 @@ func (client TagClient) ListByOperation(ctx context.Context, resourceGroupName s result.tc, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByOperation", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1890,6 +1909,7 @@ func (client TagClient) listByOperationNextResults(ctx context.Context, lastResu result, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByOperationNextResults", resp, "Failure responding to next results request") + return } return } @@ -1967,6 +1987,7 @@ func (client TagClient) ListByProduct(ctx context.Context, resourceGroupName str result.tc, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByProduct", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2041,6 +2062,7 @@ func (client TagClient) listByProductNextResults(ctx context.Context, lastResult result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } @@ -2113,6 +2135,7 @@ func (client TagClient) ListByService(ctx context.Context, resourceGroupName str result.tc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByService", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2186,6 +2209,7 @@ func (client TagClient) listByServiceNextResults(ctx context.Context, lastResult result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -2253,6 +2277,7 @@ func (client TagClient) Update(ctx context.Context, resourceGroupName string, se result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/tagdescription.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/tagdescription.go index 29d192c7e8f9..2f8b51f5f3f3 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/tagdescription.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/tagdescription.go @@ -99,6 +99,7 @@ func (client TagDescriptionClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -202,6 +203,7 @@ func (client TagDescriptionClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "Delete", resp, "Failure responding to request") + return } return @@ -297,6 +299,7 @@ func (client TagDescriptionClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +395,7 @@ func (client TagDescriptionClient) GetEntityState(ctx context.Context, resourceG result, err = client.GetEntityStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "GetEntityState", resp, "Failure responding to request") + return } return @@ -495,6 +499,7 @@ func (client TagDescriptionClient) ListByAPI(ctx context.Context, resourceGroupN result.tdc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "ListByAPI", resp, "Failure responding to request") + return } if result.tdc.hasNextLink() && result.tdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -569,6 +574,7 @@ func (client TagDescriptionClient) listByAPINextResults(ctx context.Context, las result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/tagresource.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/tagresource.go index c01041255745..2977b02cbffa 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/tagresource.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/tagresource.go @@ -105,6 +105,7 @@ func (client TagResourceClient) ListByService(ctx context.Context, resourceGroup result.trc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagResourceClient", "ListByService", resp, "Failure responding to request") + return } if result.trc.hasNextLink() && result.trc.IsEmpty() { err = result.NextWithContext(ctx) @@ -178,6 +179,7 @@ func (client TagResourceClient) listByServiceNextResults(ctx context.Context, la result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagResourceClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/tenantaccess.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/tenantaccess.go index e7ab02268bb4..1efbc843342c 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/tenantaccess.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/tenantaccess.go @@ -81,6 +81,7 @@ func (client TenantAccessClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "Get", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client TenantAccessClient) RegeneratePrimaryKey(ctx context.Context, resou result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client TenantAccessClient) RegenerateSecondaryKey(ctx context.Context, res result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return @@ -334,6 +337,7 @@ func (client TenantAccessClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/tenantaccessgit.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/tenantaccessgit.go index 4bb63c81970e..32d7e6d81a84 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/tenantaccessgit.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/tenantaccessgit.go @@ -81,6 +81,7 @@ func (client TenantAccessGitClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "Get", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client TenantAccessGitClient) RegeneratePrimaryKey(ctx context.Context, re result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client TenantAccessGitClient) RegenerateSecondaryKey(ctx context.Context, result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/tenantconfiguration.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/tenantconfiguration.go index 6e95ff9b1b5b..3a98aa6dcff5 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/tenantconfiguration.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/tenantconfiguration.go @@ -173,6 +173,7 @@ func (client TenantConfigurationClient) GetSyncState(ctx context.Context, resour result, err = client.GetSyncStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationClient", "GetSyncState", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/user.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/user.go index bdaae7bd44ba..0e5539e5e571 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/user.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/user.go @@ -102,6 +102,7 @@ func (client UserClient) CreateOrUpdate(ctx context.Context, resourceGroupName s result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -196,6 +197,7 @@ func (client UserClient) Delete(ctx context.Context, resourceGroupName string, s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Delete", resp, "Failure responding to request") + return } return @@ -289,6 +291,7 @@ func (client UserClient) GenerateSsoURL(ctx context.Context, resourceGroupName s result, err = client.GenerateSsoURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GenerateSsoURL", resp, "Failure responding to request") + return } return @@ -378,6 +381,7 @@ func (client UserClient) Get(ctx context.Context, resourceGroupName string, serv result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Get", resp, "Failure responding to request") + return } return @@ -467,6 +471,7 @@ func (client UserClient) GetEntityTag(ctx context.Context, resourceGroupName str result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -558,6 +563,7 @@ func (client UserClient) GetSharedAccessToken(ctx context.Context, resourceGroup result, err = client.GetSharedAccessTokenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GetSharedAccessToken", resp, "Failure responding to request") + return } return @@ -662,6 +668,7 @@ func (client UserClient) ListByService(ctx context.Context, resourceGroupName st result.uc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "ListByService", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -735,6 +742,7 @@ func (client UserClient) listByServiceNextResults(ctx context.Context, lastResul result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -802,6 +810,7 @@ func (client UserClient) Update(ctx context.Context, resourceGroupName string, s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/usergroup.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/usergroup.go index 6ed9a9d80672..4dee9cfc76ef 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/usergroup.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/usergroup.go @@ -100,6 +100,7 @@ func (client UserGroupClient) List(ctx context.Context, resourceGroupName string result.gc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserGroupClient", "List", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -174,6 +175,7 @@ func (client UserGroupClient) listNextResults(ctx context.Context, lastResults G result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserGroupClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/useridentities.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/useridentities.go index b7300dc215f8..c48652bca89c 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/useridentities.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/useridentities.go @@ -86,6 +86,7 @@ func (client UserIdentitiesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserIdentitiesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/usersubscription.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/usersubscription.go index 26b585027c87..eb03d7d4d95a 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/usersubscription.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/usersubscription.go @@ -104,6 +104,7 @@ func (client UserSubscriptionClient) List(ctx context.Context, resourceGroupName result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserSubscriptionClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -178,6 +179,7 @@ func (client UserSubscriptionClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserSubscriptionClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/api.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/api.go index c846b2fe2039..2d9a8dab4988 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/api.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/api.go @@ -89,6 +89,7 @@ func (client APIClient) CreateOrUpdate(ctx context.Context, resourceGroupName st result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client APIClient) Delete(ctx context.Context, resourceGroupName string, se result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Delete", resp, "Failure responding to request") + return } return @@ -281,6 +283,7 @@ func (client APIClient) Get(ctx context.Context, resourceGroupName string, servi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Get", resp, "Failure responding to request") + return } return @@ -371,6 +374,7 @@ func (client APIClient) GetEntityTag(ctx context.Context, resourceGroupName stri result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -471,6 +475,7 @@ func (client APIClient) ListByService(ctx context.Context, resourceGroupName str result.ac, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "ListByService", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -549,6 +554,7 @@ func (client APIClient) listByServiceNextResults(ctx context.Context, lastResult result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -627,6 +633,7 @@ func (client APIClient) ListByTags(ctx context.Context, resourceGroupName string result.trc, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "ListByTags", resp, "Failure responding to request") + return } if result.trc.hasNextLink() && result.trc.IsEmpty() { err = result.NextWithContext(ctx) @@ -700,6 +707,7 @@ func (client APIClient) listByTagsNextResults(ctx context.Context, lastResults T result, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "listByTagsNextResults", resp, "Failure responding to next results request") + return } return } @@ -768,6 +776,7 @@ func (client APIClient) Update(ctx context.Context, resourceGroupName string, se result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/apidiagnostic.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/apidiagnostic.go index dcaed58b884b..a2fcaf4a9edf 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/apidiagnostic.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/apidiagnostic.go @@ -96,6 +96,7 @@ func (client APIDiagnosticClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -199,6 +200,7 @@ func (client APIDiagnosticClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Delete", resp, "Failure responding to request") + return } return @@ -294,6 +296,7 @@ func (client APIDiagnosticClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Get", resp, "Failure responding to request") + return } return @@ -389,6 +392,7 @@ func (client APIDiagnosticClient) GetEntityTag(ctx context.Context, resourceGrou result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -490,6 +494,7 @@ func (client APIDiagnosticClient) ListByService(ctx context.Context, resourceGro result.dc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "ListByService", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -564,6 +569,7 @@ func (client APIDiagnosticClient) listByServiceNextResults(ctx context.Context, result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -636,6 +642,7 @@ func (client APIDiagnosticClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/apidiagnosticlogger.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/apidiagnosticlogger.go index b9dda4113012..aae314d7b363 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/apidiagnosticlogger.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/apidiagnosticlogger.go @@ -96,6 +96,7 @@ func (client APIDiagnosticLoggerClient) CheckEntityExists(ctx context.Context, r result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticLoggerClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -195,6 +196,7 @@ func (client APIDiagnosticLoggerClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticLoggerClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -295,6 +297,7 @@ func (client APIDiagnosticLoggerClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticLoggerClient", "Delete", resp, "Failure responding to request") + return } return @@ -403,6 +406,7 @@ func (client APIDiagnosticLoggerClient) ListByService(ctx context.Context, resou result.lc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticLoggerClient", "ListByService", resp, "Failure responding to request") + return } if result.lc.hasNextLink() && result.lc.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client APIDiagnosticLoggerClient) listByServiceNextResults(ctx context.Con result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticLoggerClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/apiexport.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/apiexport.go index c5f71fbdaa77..fdcdcf7ff51a 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/apiexport.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/apiexport.go @@ -90,6 +90,7 @@ func (client APIExportClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIExportClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/apiissue.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/apiissue.go index 46fb99dedb11..b2f25f117a2f 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/apiissue.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/apiissue.go @@ -100,6 +100,7 @@ func (client APIIssueClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -203,6 +204,7 @@ func (client APIIssueClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Delete", resp, "Failure responding to request") + return } return @@ -298,6 +300,7 @@ func (client APIIssueClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Get", resp, "Failure responding to request") + return } return @@ -393,6 +396,7 @@ func (client APIIssueClient) GetEntityTag(ctx context.Context, resourceGroupName result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -496,6 +500,7 @@ func (client APIIssueClient) ListByService(ctx context.Context, resourceGroupNam result.ic, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "ListByService", resp, "Failure responding to request") + return } if result.ic.hasNextLink() && result.ic.IsEmpty() { err = result.NextWithContext(ctx) @@ -570,6 +575,7 @@ func (client APIIssueClient) listByServiceNextResults(ctx context.Context, lastR result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -642,6 +648,7 @@ func (client APIIssueClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/apiissueattachment.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/apiissueattachment.go index 851507f58ecf..e3b8344f175d 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/apiissueattachment.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/apiissueattachment.go @@ -106,6 +106,7 @@ func (client APIIssueAttachmentClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -215,6 +216,7 @@ func (client APIIssueAttachmentClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "Delete", resp, "Failure responding to request") + return } return @@ -316,6 +318,7 @@ func (client APIIssueAttachmentClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "Get", resp, "Failure responding to request") + return } return @@ -417,6 +420,7 @@ func (client APIIssueAttachmentClient) GetEntityTag(ctx context.Context, resourc result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -525,6 +529,7 @@ func (client APIIssueAttachmentClient) ListByService(ctx context.Context, resour result.iac, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "ListByService", resp, "Failure responding to request") + return } if result.iac.hasNextLink() && result.iac.IsEmpty() { err = result.NextWithContext(ctx) @@ -600,6 +605,7 @@ func (client APIIssueAttachmentClient) listByServiceNextResults(ctx context.Cont result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/apiissuecomment.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/apiissuecomment.go index 0e06f6f98d46..5fdcba893bbb 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/apiissuecomment.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/apiissuecomment.go @@ -104,6 +104,7 @@ func (client APIIssueCommentClient) CreateOrUpdate(ctx context.Context, resource result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -213,6 +214,7 @@ func (client APIIssueCommentClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "Delete", resp, "Failure responding to request") + return } return @@ -314,6 +316,7 @@ func (client APIIssueCommentClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "Get", resp, "Failure responding to request") + return } return @@ -415,6 +418,7 @@ func (client APIIssueCommentClient) GetEntityTag(ctx context.Context, resourceGr result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -523,6 +527,7 @@ func (client APIIssueCommentClient) ListByService(ctx context.Context, resourceG result.icc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "ListByService", resp, "Failure responding to request") + return } if result.icc.hasNextLink() && result.icc.IsEmpty() { err = result.NextWithContext(ctx) @@ -598,6 +603,7 @@ func (client APIIssueCommentClient) listByServiceNextResults(ctx context.Context result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/apioperation.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/apioperation.go index a55a72b3eedf..8f3a43859539 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/apioperation.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/apioperation.go @@ -107,6 +107,7 @@ func (client APIOperationClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -212,6 +213,7 @@ func (client APIOperationClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Delete", resp, "Failure responding to request") + return } return @@ -309,6 +311,7 @@ func (client APIOperationClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Get", resp, "Failure responding to request") + return } return @@ -406,6 +409,7 @@ func (client APIOperationClient) GetEntityTag(ctx context.Context, resourceGroup result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -511,6 +515,7 @@ func (client APIOperationClient) ListByAPI(ctx context.Context, resourceGroupNam result.oc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "ListByAPI", resp, "Failure responding to request") + return } if result.oc.hasNextLink() && result.oc.IsEmpty() { err = result.NextWithContext(ctx) @@ -585,6 +590,7 @@ func (client APIOperationClient) listByAPINextResults(ctx context.Context, lastR result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } @@ -659,6 +665,7 @@ func (client APIOperationClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/apioperationpolicy.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/apioperationpolicy.go index fadd1eb1c1b5..0a942b2a55ff 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/apioperationpolicy.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/apioperationpolicy.go @@ -99,6 +99,7 @@ func (client APIOperationPolicyClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -205,6 +206,7 @@ func (client APIOperationPolicyClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -303,6 +305,7 @@ func (client APIOperationPolicyClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -401,6 +404,7 @@ func (client APIOperationPolicyClient) GetEntityTag(ctx context.Context, resourc result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -498,6 +502,7 @@ func (client APIOperationPolicyClient) ListByOperation(ctx context.Context, reso result, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "ListByOperation", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/apipolicy.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/apipolicy.go index e0724ba3dbac..eee466e07887 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/apipolicy.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/apipolicy.go @@ -92,6 +92,7 @@ func (client APIPolicyClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -191,6 +192,7 @@ func (client APIPolicyClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -282,6 +284,7 @@ func (client APIPolicyClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -373,6 +376,7 @@ func (client APIPolicyClient) GetEntityTag(ctx context.Context, resourceGroupNam result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -463,6 +467,7 @@ func (client APIPolicyClient) ListByAPI(ctx context.Context, resourceGroupName s result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "ListByAPI", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/apiproduct.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/apiproduct.go index 49f77cdc1f45..b61eebd038cb 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/apiproduct.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/apiproduct.go @@ -98,6 +98,7 @@ func (client APIProductClient) ListByApis(ctx context.Context, resourceGroupName result.pc, err = client.ListByApisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIProductClient", "ListByApis", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -172,6 +173,7 @@ func (client APIProductClient) listByApisNextResults(ctx context.Context, lastRe result, err = client.ListByApisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIProductClient", "listByApisNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/apirelease.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/apirelease.go index aada8ff283b2..f548bb00290a 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/apirelease.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/apirelease.go @@ -92,6 +92,7 @@ func (client APIReleaseClient) Create(ctx context.Context, resourceGroupName str result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Create", resp, "Failure responding to request") + return } return @@ -191,6 +192,7 @@ func (client APIReleaseClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Delete", resp, "Failure responding to request") + return } return @@ -286,6 +288,7 @@ func (client APIReleaseClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Get", resp, "Failure responding to request") + return } return @@ -381,6 +384,7 @@ func (client APIReleaseClient) GetEntityTag(ctx context.Context, resourceGroupNa result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -485,6 +489,7 @@ func (client APIReleaseClient) List(ctx context.Context, resourceGroupName strin result.arc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "List", resp, "Failure responding to request") + return } if result.arc.hasNextLink() && result.arc.IsEmpty() { err = result.NextWithContext(ctx) @@ -559,6 +564,7 @@ func (client APIReleaseClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -631,6 +637,7 @@ func (client APIReleaseClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/apirevisions.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/apirevisions.go index 5a5435884827..a0db57c707d3 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/apirevisions.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/apirevisions.go @@ -99,6 +99,7 @@ func (client APIRevisionsClient) List(ctx context.Context, resourceGroupName str result.arc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIRevisionsClient", "List", resp, "Failure responding to request") + return } if result.arc.hasNextLink() && result.arc.IsEmpty() { err = result.NextWithContext(ctx) @@ -173,6 +174,7 @@ func (client APIRevisionsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIRevisionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/apischema.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/apischema.go index 82fdd7d4a3dd..7084895f1f47 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/apischema.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/apischema.go @@ -97,6 +97,7 @@ func (client APISchemaClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -201,6 +202,7 @@ func (client APISchemaClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "Delete", resp, "Failure responding to request") + return } return @@ -297,6 +299,7 @@ func (client APISchemaClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "Get", resp, "Failure responding to request") + return } return @@ -393,6 +396,7 @@ func (client APISchemaClient) GetEntityTag(ctx context.Context, resourceGroupNam result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -484,6 +488,7 @@ func (client APISchemaClient) ListByAPI(ctx context.Context, resourceGroupName s result.sc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "ListByAPI", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -549,6 +554,7 @@ func (client APISchemaClient) listByAPINextResults(ctx context.Context, lastResu result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/apiversionset.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/apiversionset.go index 0f08a084fff1..e5f544b26666 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/apiversionset.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/apiversionset.go @@ -95,6 +95,7 @@ func (client APIVersionSetClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client APIVersionSetClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Delete", resp, "Failure responding to request") + return } return @@ -281,6 +283,7 @@ func (client APIVersionSetClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client APIVersionSetClient) GetEntityTag(ctx context.Context, resourceGrou result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -471,6 +475,7 @@ func (client APIVersionSetClient) ListByService(ctx context.Context, resourceGro result.avsc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "ListByService", resp, "Failure responding to request") + return } if result.avsc.hasNextLink() && result.avsc.IsEmpty() { err = result.NextWithContext(ctx) @@ -544,6 +549,7 @@ func (client APIVersionSetClient) listByServiceNextResults(ctx context.Context, result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -611,6 +617,7 @@ func (client APIVersionSetClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/authorizationserver.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/authorizationserver.go index 59ddd01ce8e3..fb36acb3282d 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/authorizationserver.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/authorizationserver.go @@ -100,6 +100,7 @@ func (client AuthorizationServerClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -197,6 +198,7 @@ func (client AuthorizationServerClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Delete", resp, "Failure responding to request") + return } return @@ -286,6 +288,7 @@ func (client AuthorizationServerClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Get", resp, "Failure responding to request") + return } return @@ -375,6 +378,7 @@ func (client AuthorizationServerClient) GetEntityTag(ctx context.Context, resour result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -471,6 +475,7 @@ func (client AuthorizationServerClient) ListByService(ctx context.Context, resou result.asc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "ListByService", resp, "Failure responding to request") + return } if result.asc.hasNextLink() && result.asc.IsEmpty() { err = result.NextWithContext(ctx) @@ -544,6 +549,7 @@ func (client AuthorizationServerClient) listByServiceNextResults(ctx context.Con result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -611,6 +617,7 @@ func (client AuthorizationServerClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/backend.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/backend.go index 4eb768812172..3003139ddc8a 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/backend.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/backend.go @@ -95,6 +95,7 @@ func (client BackendClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client BackendClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Delete", resp, "Failure responding to request") + return } return @@ -281,6 +283,7 @@ func (client BackendClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client BackendClient) GetEntityTag(ctx context.Context, resourceGroupName result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -466,6 +470,7 @@ func (client BackendClient) ListByService(ctx context.Context, resourceGroupName result.bc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "ListByService", resp, "Failure responding to request") + return } if result.bc.hasNextLink() && result.bc.IsEmpty() { err = result.NextWithContext(ctx) @@ -539,6 +544,7 @@ func (client BackendClient) listByServiceNextResults(ctx context.Context, lastRe result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -605,6 +611,7 @@ func (client BackendClient) Reconnect(ctx context.Context, resourceGroupName str result, err = client.ReconnectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Reconnect", resp, "Failure responding to request") + return } return @@ -701,6 +708,7 @@ func (client BackendClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/certificate.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/certificate.go index 230967658814..f0498b4ce2b9 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/certificate.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/certificate.go @@ -94,6 +94,7 @@ func (client CertificateClient) CreateOrUpdate(ctx context.Context, resourceGrou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client CertificateClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "Delete", resp, "Failure responding to request") + return } return @@ -282,6 +284,7 @@ func (client CertificateClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -372,6 +375,7 @@ func (client CertificateClient) GetEntityTag(ctx context.Context, resourceGroupN result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -470,6 +474,7 @@ func (client CertificateClient) ListByService(ctx context.Context, resourceGroup result.cc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "ListByService", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -543,6 +548,7 @@ func (client CertificateClient) listByServiceNextResults(ctx context.Context, la result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/delegationsettings.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/delegationsettings.go index 6cfd56916486..dde9edf941bc 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/delegationsettings.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/delegationsettings.go @@ -83,6 +83,7 @@ func (client DelegationSettingsClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client DelegationSettingsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -251,6 +253,7 @@ func (client DelegationSettingsClient) GetEntityTag(ctx context.Context, resourc result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -336,6 +339,7 @@ func (client DelegationSettingsClient) Update(ctx context.Context, resourceGroup result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/diagnostic.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/diagnostic.go index 44b85aaebfb6..4f134167493b 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/diagnostic.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/diagnostic.go @@ -91,6 +91,7 @@ func (client DiagnosticClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client DiagnosticClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Delete", resp, "Failure responding to request") + return } return @@ -277,6 +279,7 @@ func (client DiagnosticClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Get", resp, "Failure responding to request") + return } return @@ -366,6 +369,7 @@ func (client DiagnosticClient) GetEntityTag(ctx context.Context, resourceGroupNa result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -461,6 +465,7 @@ func (client DiagnosticClient) ListByService(ctx context.Context, resourceGroupN result.dc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "ListByService", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -534,6 +539,7 @@ func (client DiagnosticClient) listByServiceNextResults(ctx context.Context, las result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -601,6 +607,7 @@ func (client DiagnosticClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/diagnosticlogger.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/diagnosticlogger.go index 65b64eefb5d2..6dfc2796275c 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/diagnosticlogger.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/diagnosticlogger.go @@ -91,6 +91,7 @@ func (client DiagnosticLoggerClient) CheckEntityExists(ctx context.Context, reso result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticLoggerClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -184,6 +185,7 @@ func (client DiagnosticLoggerClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticLoggerClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client DiagnosticLoggerClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticLoggerClient", "Delete", resp, "Failure responding to request") + return } return @@ -380,6 +383,7 @@ func (client DiagnosticLoggerClient) ListByService(ctx context.Context, resource result.lc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticLoggerClient", "ListByService", resp, "Failure responding to request") + return } if result.lc.hasNextLink() && result.lc.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +458,7 @@ func (client DiagnosticLoggerClient) listByServiceNextResults(ctx context.Contex result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticLoggerClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/emailtemplate.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/emailtemplate.go index 19f6d9be1087..c5d9c287369f 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/emailtemplate.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/emailtemplate.go @@ -93,6 +93,7 @@ func (client EmailTemplateClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client EmailTemplateClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Delete", resp, "Failure responding to request") + return } return @@ -271,6 +273,7 @@ func (client EmailTemplateClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Get", resp, "Failure responding to request") + return } return @@ -356,6 +359,7 @@ func (client EmailTemplateClient) GetEntityTag(ctx context.Context, resourceGrou result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -448,6 +452,7 @@ func (client EmailTemplateClient) ListByService(ctx context.Context, resourceGro result.etc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "ListByService", resp, "Failure responding to request") + return } if result.etc.hasNextLink() && result.etc.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +523,7 @@ func (client EmailTemplateClient) listByServiceNextResults(ctx context.Context, result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -579,6 +585,7 @@ func (client EmailTemplateClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/group.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/group.go index bf485c320c58..026042f82f76 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/group.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/group.go @@ -95,6 +95,7 @@ func (client GroupClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client GroupClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Delete", resp, "Failure responding to request") + return } return @@ -281,6 +283,7 @@ func (client GroupClient) Get(ctx context.Context, resourceGroupName string, ser result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client GroupClient) GetEntityTag(ctx context.Context, resourceGroupName st result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -468,6 +472,7 @@ func (client GroupClient) ListByService(ctx context.Context, resourceGroupName s result.gc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "ListByService", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -541,6 +546,7 @@ func (client GroupClient) listByServiceNextResults(ctx context.Context, lastResu result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -608,6 +614,7 @@ func (client GroupClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/groupuser.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/groupuser.go index d8a47d7f44e3..6a366c9ca39d 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/groupuser.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/groupuser.go @@ -91,6 +91,7 @@ func (client GroupUserClient) CheckEntityExists(ctx context.Context, resourceGro result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client GroupUserClient) Create(ctx context.Context, resourceGroupName stri result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "Create", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client GroupUserClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "Delete", resp, "Failure responding to request") + return } return @@ -387,6 +390,7 @@ func (client GroupUserClient) List(ctx context.Context, resourceGroupName string result.uc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "List", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -461,6 +465,7 @@ func (client GroupUserClient) listNextResults(ctx context.Context, lastResults U result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/identityprovider.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/identityprovider.go index b429a9aa9c69..2717f4ab357a 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/identityprovider.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/identityprovider.go @@ -92,6 +92,7 @@ func (client IdentityProviderClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client IdentityProviderClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Delete", resp, "Failure responding to request") + return } return @@ -270,6 +272,7 @@ func (client IdentityProviderClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +358,7 @@ func (client IdentityProviderClient) GetEntityTag(ctx context.Context, resourceG result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -439,6 +443,7 @@ func (client IdentityProviderClient) ListByService(ctx context.Context, resource result.ipl, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "ListByService", resp, "Failure responding to request") + return } if result.ipl.hasNextLink() && result.ipl.IsEmpty() { err = result.NextWithContext(ctx) @@ -503,6 +508,7 @@ func (client IdentityProviderClient) listByServiceNextResults(ctx context.Contex result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -566,6 +572,7 @@ func (client IdentityProviderClient) Update(ctx context.Context, resourceGroupNa result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/logger.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/logger.go index b3feed6c7d67..fbaeb74761a0 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/logger.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/logger.go @@ -93,6 +93,7 @@ func (client LoggerClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -189,6 +190,7 @@ func (client LoggerClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Delete", resp, "Failure responding to request") + return } return @@ -277,6 +279,7 @@ func (client LoggerClient) Get(ctx context.Context, resourceGroupName string, se result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Get", resp, "Failure responding to request") + return } return @@ -365,6 +368,7 @@ func (client LoggerClient) GetEntityTag(ctx context.Context, resourceGroupName s result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -461,6 +465,7 @@ func (client LoggerClient) ListByService(ctx context.Context, resourceGroupName result.lc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "ListByService", resp, "Failure responding to request") + return } if result.lc.hasNextLink() && result.lc.IsEmpty() { err = result.NextWithContext(ctx) @@ -534,6 +539,7 @@ func (client LoggerClient) listByServiceNextResults(ctx context.Context, lastRes result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -600,6 +606,7 @@ func (client LoggerClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/networkstatus.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/networkstatus.go index 06b904c57feb..223ea2910439 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/networkstatus.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/networkstatus.go @@ -86,6 +86,7 @@ func (client NetworkStatusClient) ListByLocation(ctx context.Context, resourceGr result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NetworkStatusClient", "ListByLocation", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client NetworkStatusClient) ListByService(ctx context.Context, resourceGro result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NetworkStatusClient", "ListByService", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/notification.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/notification.go index 9e566a040d46..b9c794c3cf80 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/notification.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/notification.go @@ -83,6 +83,7 @@ func (client NotificationClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client NotificationClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "Get", resp, "Failure responding to request") + return } return @@ -265,6 +267,7 @@ func (client NotificationClient) ListByService(ctx context.Context, resourceGrou result.nc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "ListByService", resp, "Failure responding to request") + return } if result.nc.hasNextLink() && result.nc.IsEmpty() { err = result.NextWithContext(ctx) @@ -335,6 +338,7 @@ func (client NotificationClient) listByServiceNextResults(ctx context.Context, l result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/notificationrecipientemail.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/notificationrecipientemail.go index 540ec21305bf..bb922593bcd9 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/notificationrecipientemail.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/notificationrecipientemail.go @@ -84,6 +84,7 @@ func (client NotificationRecipientEmailClient) CheckEntityExists(ctx context.Con result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client NotificationRecipientEmailClient) CreateOrUpdate(ctx context.Contex result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -257,6 +259,7 @@ func (client NotificationRecipientEmailClient) Delete(ctx context.Context, resou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "Delete", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client NotificationRecipientEmailClient) ListByNotification(ctx context.Co result, err = client.ListByNotificationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "ListByNotification", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/notificationrecipientuser.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/notificationrecipientuser.go index 9aec83592722..4ba24fd55f4e 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/notificationrecipientuser.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/notificationrecipientuser.go @@ -88,6 +88,7 @@ func (client NotificationRecipientUserClient) CheckEntityExists(ctx context.Cont result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client NotificationRecipientUserClient) CreateOrUpdate(ctx context.Context result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -269,6 +271,7 @@ func (client NotificationRecipientUserClient) Delete(ctx context.Context, resour result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "Delete", resp, "Failure responding to request") + return } return @@ -354,6 +357,7 @@ func (client NotificationRecipientUserClient) ListByNotification(ctx context.Con result, err = client.ListByNotificationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "ListByNotification", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/openidconnectprovider.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/openidconnectprovider.go index 2a550f4cc14f..19ed1744e9e6 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/openidconnectprovider.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/openidconnectprovider.go @@ -95,6 +95,7 @@ func (client OpenIDConnectProviderClient) CreateOrUpdate(ctx context.Context, re result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -191,6 +192,7 @@ func (client OpenIDConnectProviderClient) Delete(ctx context.Context, resourceGr result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Delete", resp, "Failure responding to request") + return } return @@ -279,6 +281,7 @@ func (client OpenIDConnectProviderClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Get", resp, "Failure responding to request") + return } return @@ -367,6 +370,7 @@ func (client OpenIDConnectProviderClient) GetEntityTag(ctx context.Context, reso result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -463,6 +467,7 @@ func (client OpenIDConnectProviderClient) ListByService(ctx context.Context, res result.oicpc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "ListByService", resp, "Failure responding to request") + return } if result.oicpc.hasNextLink() && result.oicpc.IsEmpty() { err = result.NextWithContext(ctx) @@ -536,6 +541,7 @@ func (client OpenIDConnectProviderClient) listByServiceNextResults(ctx context.C result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -602,6 +608,7 @@ func (client OpenIDConnectProviderClient) Update(ctx context.Context, resourceGr result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/operation.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/operation.go index 2bd06d4a4cd5..650cbced93c6 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/operation.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/operation.go @@ -104,6 +104,7 @@ func (client OperationClient) ListByTags(ctx context.Context, resourceGroupName result.trc, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OperationClient", "ListByTags", resp, "Failure responding to request") + return } if result.trc.hasNextLink() && result.trc.IsEmpty() { err = result.NextWithContext(ctx) @@ -178,6 +179,7 @@ func (client OperationClient) listByTagsNextResults(ctx context.Context, lastRes result, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OperationClient", "listByTagsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/operations.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/operations.go index 2195756b5415..f42777d048b3 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/operations.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/policy.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/policy.go index ddf378062b52..a76adccd5a2a 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/policy.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/policy.go @@ -85,6 +85,7 @@ func (client PolicyClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client PolicyClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -257,6 +259,7 @@ func (client PolicyClient) Get(ctx context.Context, resourceGroupName string, se result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -341,6 +344,7 @@ func (client PolicyClient) GetEntityTag(ctx context.Context, resourceGroupName s result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -425,6 +429,7 @@ func (client PolicyClient) ListByService(ctx context.Context, resourceGroupName result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "ListByService", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/policysnippets.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/policysnippets.go index 6c4da7558447..e430398eb617 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/policysnippets.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/policysnippets.go @@ -82,6 +82,7 @@ func (client PolicySnippetsClient) ListByService(ctx context.Context, resourceGr result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicySnippetsClient", "ListByService", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/product.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/product.go index c53517d73c16..238fe97f4195 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/product.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/product.go @@ -95,6 +95,7 @@ func (client ProductClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -193,6 +194,7 @@ func (client ProductClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Delete", resp, "Failure responding to request") + return } return @@ -285,6 +287,7 @@ func (client ProductClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Get", resp, "Failure responding to request") + return } return @@ -374,6 +377,7 @@ func (client ProductClient) GetEntityTag(ctx context.Context, resourceGroupName result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -475,6 +479,7 @@ func (client ProductClient) ListByService(ctx context.Context, resourceGroupName result.pc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "ListByService", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -551,6 +556,7 @@ func (client ProductClient) listByServiceNextResults(ctx context.Context, lastRe result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -618,6 +624,7 @@ func (client ProductClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/productapi.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/productapi.go index 3d6b8aa0e675..69ea07360daa 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/productapi.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/productapi.go @@ -92,6 +92,7 @@ func (client ProductAPIClient) CheckEntityExists(ctx context.Context, resourceGr result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -187,6 +188,7 @@ func (client ProductAPIClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -283,6 +285,7 @@ func (client ProductAPIClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "Delete", resp, "Failure responding to request") + return } return @@ -388,6 +391,7 @@ func (client ProductAPIClient) ListByProduct(ctx context.Context, resourceGroupN result.ac, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "ListByProduct", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -462,6 +466,7 @@ func (client ProductAPIClient) listByProductNextResults(ctx context.Context, las result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/productgroup.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/productgroup.go index 6e58eeafd42f..6921c2a08387 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/productgroup.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/productgroup.go @@ -91,6 +91,7 @@ func (client ProductGroupClient) CheckEntityExists(ctx context.Context, resource result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client ProductGroupClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client ProductGroupClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "Delete", resp, "Failure responding to request") + return } return @@ -384,6 +387,7 @@ func (client ProductGroupClient) ListByProduct(ctx context.Context, resourceGrou result.gc, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "ListByProduct", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -458,6 +462,7 @@ func (client ProductGroupClient) listByProductNextResults(ctx context.Context, l result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/productpolicy.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/productpolicy.go index 44240f1556f1..f9ec571a6e83 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/productpolicy.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/productpolicy.go @@ -91,6 +91,7 @@ func (client ProductPolicyClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -189,6 +190,7 @@ func (client ProductPolicyClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -279,6 +281,7 @@ func (client ProductPolicyClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +372,7 @@ func (client ProductPolicyClient) GetEntityTag(ctx context.Context, resourceGrou result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -458,6 +462,7 @@ func (client ProductPolicyClient) ListByProduct(ctx context.Context, resourceGro result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "ListByProduct", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/productsubscriptions.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/productsubscriptions.go index a00a9c7881ff..a1f0be198f44 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/productsubscriptions.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/productsubscriptions.go @@ -104,6 +104,7 @@ func (client ProductSubscriptionsClient) List(ctx context.Context, resourceGroup result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductSubscriptionsClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -178,6 +179,7 @@ func (client ProductSubscriptionsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductSubscriptionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/property.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/property.go index 68d335051f62..68d8e3d7d728 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/property.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/property.go @@ -99,6 +99,7 @@ func (client PropertyClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -195,6 +196,7 @@ func (client PropertyClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Delete", resp, "Failure responding to request") + return } return @@ -283,6 +285,7 @@ func (client PropertyClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Get", resp, "Failure responding to request") + return } return @@ -371,6 +374,7 @@ func (client PropertyClient) GetEntityTag(ctx context.Context, resourceGroupName result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -467,6 +471,7 @@ func (client PropertyClient) ListByService(ctx context.Context, resourceGroupNam result.pc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "ListByService", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -540,6 +545,7 @@ func (client PropertyClient) listByServiceNextResults(ctx context.Context, lastR result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -606,6 +612,7 @@ func (client PropertyClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/quotabycounterkeys.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/quotabycounterkeys.go index 6c96d82c9805..1953fe88ea16 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/quotabycounterkeys.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/quotabycounterkeys.go @@ -87,6 +87,7 @@ func (client QuotaByCounterKeysClient) ListByService(ctx context.Context, resour result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByCounterKeysClient", "ListByService", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client QuotaByCounterKeysClient) Update(ctx context.Context, resourceGroup result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByCounterKeysClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/quotabyperiodkeys.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/quotabyperiodkeys.go index 551eee0328c2..851f0d9f6d74 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/quotabyperiodkeys.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/quotabyperiodkeys.go @@ -88,6 +88,7 @@ func (client QuotaByPeriodKeysClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByPeriodKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client QuotaByPeriodKeysClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByPeriodKeysClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/regions.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/regions.go index 3c8f4312e986..f6b37a12d8c4 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/regions.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/regions.go @@ -82,6 +82,7 @@ func (client RegionsClient) ListByService(ctx context.Context, resourceGroupName result.rlr, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.RegionsClient", "ListByService", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client RegionsClient) listByServiceNextResults(ctx context.Context, lastRe result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.RegionsClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/reports.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/reports.go index 17eaf0a141ed..7544ffdb4aef 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/reports.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/reports.go @@ -91,6 +91,7 @@ func (client ReportsClient) ListByAPI(ctx context.Context, resourceGroupName str result.rc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByAPI", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -162,6 +163,7 @@ func (client ReportsClient) listByAPINextResults(ctx context.Context, lastResult result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } @@ -231,6 +233,7 @@ func (client ReportsClient) ListByGeo(ctx context.Context, resourceGroupName str result.rc, err = client.ListByGeoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByGeo", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -304,6 +307,7 @@ func (client ReportsClient) listByGeoNextResults(ctx context.Context, lastResult result, err = client.ListByGeoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByGeoNextResults", resp, "Failure responding to next results request") + return } return } @@ -373,6 +377,7 @@ func (client ReportsClient) ListByOperation(ctx context.Context, resourceGroupNa result.rc, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByOperation", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -444,6 +449,7 @@ func (client ReportsClient) listByOperationNextResults(ctx context.Context, last result, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByOperationNextResults", resp, "Failure responding to next results request") + return } return } @@ -513,6 +519,7 @@ func (client ReportsClient) ListByProduct(ctx context.Context, resourceGroupName result.rc, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByProduct", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -584,6 +591,7 @@ func (client ReportsClient) listByProductNextResults(ctx context.Context, lastRe result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } @@ -652,6 +660,7 @@ func (client ReportsClient) ListByRequest(ctx context.Context, resourceGroupName result, err = client.ListByRequestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByRequest", resp, "Failure responding to request") + return } return @@ -752,6 +761,7 @@ func (client ReportsClient) ListBySubscription(ctx context.Context, resourceGrou result.rc, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -825,6 +835,7 @@ func (client ReportsClient) listBySubscriptionNextResults(ctx context.Context, l result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -897,6 +908,7 @@ func (client ReportsClient) ListByTime(ctx context.Context, resourceGroupName st result.rc, err = client.ListByTimeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByTime", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -971,6 +983,7 @@ func (client ReportsClient) listByTimeNextResults(ctx context.Context, lastResul result, err = client.ListByTimeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByTimeNextResults", resp, "Failure responding to next results request") + return } return } @@ -1040,6 +1053,7 @@ func (client ReportsClient) ListByUser(ctx context.Context, resourceGroupName st result.rc, err = client.ListByUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByUser", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1111,6 +1125,7 @@ func (client ReportsClient) listByUserNextResults(ctx context.Context, lastResul result, err = client.ListByUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByUserNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/service.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/service.go index cd7921ccd7a2..8e5cfa0d97a5 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/service.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/service.go @@ -262,6 +262,7 @@ func (client ServiceClient) CheckNameAvailability(ctx context.Context, parameter result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -444,6 +445,7 @@ func (client ServiceClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "Delete", resp, "Failure responding to request") + return } return @@ -526,6 +528,7 @@ func (client ServiceClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "Get", resp, "Failure responding to request") + return } return @@ -609,6 +612,7 @@ func (client ServiceClient) GetSsoToken(ctx context.Context, resourceGroupName s result, err = client.GetSsoTokenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "GetSsoToken", resp, "Failure responding to request") + return } return @@ -682,6 +686,7 @@ func (client ServiceClient) List(ctx context.Context) (result ServiceListResultP result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -744,6 +749,7 @@ func (client ServiceClient) listNextResults(ctx context.Context, lastResults Ser result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -795,6 +801,7 @@ func (client ServiceClient) ListByResourceGroup(ctx context.Context, resourceGro result.slr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -858,6 +865,7 @@ func (client ServiceClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1189,6 +1197,7 @@ func (client ServiceClient) UploadCertificate(ctx context.Context, resourceGroup result, err = client.UploadCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "UploadCertificate", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/serviceskus.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/serviceskus.go index e7c6ce67f8ac..f34c0384d86f 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/serviceskus.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/serviceskus.go @@ -82,6 +82,7 @@ func (client ServiceSkusClient) ListAvailableServiceSkus(ctx context.Context, re result.rsr, err = client.ListAvailableServiceSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceSkusClient", "ListAvailableServiceSkus", resp, "Failure responding to request") + return } if result.rsr.hasNextLink() && result.rsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client ServiceSkusClient) listAvailableServiceSkusNextResults(ctx context. result, err = client.ListAvailableServiceSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceSkusClient", "listAvailableServiceSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/signinsettings.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/signinsettings.go index b813fcddda78..32a2049f89dc 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/signinsettings.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/signinsettings.go @@ -82,6 +82,7 @@ func (client SignInSettingsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client SignInSettingsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -250,6 +252,7 @@ func (client SignInSettingsClient) GetEntityTag(ctx context.Context, resourceGro result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -335,6 +338,7 @@ func (client SignInSettingsClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/signupsettings.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/signupsettings.go index 8d931a6bd53a..7e766b0f444d 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/signupsettings.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/signupsettings.go @@ -82,6 +82,7 @@ func (client SignUpSettingsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client SignUpSettingsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -250,6 +252,7 @@ func (client SignUpSettingsClient) GetEntityTag(ctx context.Context, resourceGro result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -335,6 +338,7 @@ func (client SignUpSettingsClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/subscription.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/subscription.go index 8deec518ddb5..4b465c53f317 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/subscription.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/subscription.go @@ -108,6 +108,7 @@ func (client SubscriptionClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -208,6 +209,7 @@ func (client SubscriptionClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Delete", resp, "Failure responding to request") + return } return @@ -297,6 +299,7 @@ func (client SubscriptionClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Get", resp, "Failure responding to request") + return } return @@ -386,6 +389,7 @@ func (client SubscriptionClient) GetEntityTag(ctx context.Context, resourceGroup result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -486,6 +490,7 @@ func (client SubscriptionClient) List(ctx context.Context, resourceGroupName str result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -559,6 +564,7 @@ func (client SubscriptionClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -623,6 +629,7 @@ func (client SubscriptionClient) RegeneratePrimaryKey(ctx context.Context, resou result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -711,6 +718,7 @@ func (client SubscriptionClient) RegenerateSecondaryKey(ctx context.Context, res result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return @@ -805,6 +813,7 @@ func (client SubscriptionClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/tag.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/tag.go index 63b4824f0c92..d36dcd1e9a6c 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/tag.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/tag.go @@ -93,6 +93,7 @@ func (client TagClient) AssignToAPI(ctx context.Context, resourceGroupName strin result, err = client.AssignToAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToAPI", resp, "Failure responding to request") + return } return @@ -200,6 +201,7 @@ func (client TagClient) AssignToOperation(ctx context.Context, resourceGroupName result, err = client.AssignToOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToOperation", resp, "Failure responding to request") + return } return @@ -301,6 +303,7 @@ func (client TagClient) AssignToProduct(ctx context.Context, resourceGroupName s result, err = client.AssignToProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToProduct", resp, "Failure responding to request") + return } return @@ -403,6 +406,7 @@ func (client TagClient) CreateOrUpdate(ctx context.Context, resourceGroupName st result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -496,6 +500,7 @@ func (client TagClient) Delete(ctx context.Context, resourceGroupName string, se result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Delete", resp, "Failure responding to request") + return } return @@ -593,6 +598,7 @@ func (client TagClient) DetachFromAPI(ctx context.Context, resourceGroupName str result, err = client.DetachFromAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromAPI", resp, "Failure responding to request") + return } return @@ -697,6 +703,7 @@ func (client TagClient) DetachFromOperation(ctx context.Context, resourceGroupNa result, err = client.DetachFromOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromOperation", resp, "Failure responding to request") + return } return @@ -795,6 +802,7 @@ func (client TagClient) DetachFromProduct(ctx context.Context, resourceGroupName result, err = client.DetachFromProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromProduct", resp, "Failure responding to request") + return } return @@ -885,6 +893,7 @@ func (client TagClient) Get(ctx context.Context, resourceGroupName string, servi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Get", resp, "Failure responding to request") + return } return @@ -980,6 +989,7 @@ func (client TagClient) GetByAPI(ctx context.Context, resourceGroupName string, result, err = client.GetByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByAPI", resp, "Failure responding to request") + return } return @@ -1082,6 +1092,7 @@ func (client TagClient) GetByOperation(ctx context.Context, resourceGroupName st result, err = client.GetByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByOperation", resp, "Failure responding to request") + return } return @@ -1178,6 +1189,7 @@ func (client TagClient) GetByProduct(ctx context.Context, resourceGroupName stri result, err = client.GetByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByProduct", resp, "Failure responding to request") + return } return @@ -1268,6 +1280,7 @@ func (client TagClient) GetEntityState(ctx context.Context, resourceGroupName st result, err = client.GetEntityStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityState", resp, "Failure responding to request") + return } return @@ -1362,6 +1375,7 @@ func (client TagClient) GetEntityStateByAPI(ctx context.Context, resourceGroupNa result, err = client.GetEntityStateByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByAPI", resp, "Failure responding to request") + return } return @@ -1463,6 +1477,7 @@ func (client TagClient) GetEntityStateByOperation(ctx context.Context, resourceG result, err = client.GetEntityStateByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByOperation", resp, "Failure responding to request") + return } return @@ -1558,6 +1573,7 @@ func (client TagClient) GetEntityStateByProduct(ctx context.Context, resourceGro result, err = client.GetEntityStateByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByProduct", resp, "Failure responding to request") + return } return @@ -1661,6 +1677,7 @@ func (client TagClient) ListByAPI(ctx context.Context, resourceGroupName string, result.tc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByAPI", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1735,6 +1752,7 @@ func (client TagClient) listByAPINextResults(ctx context.Context, lastResults Ta result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } @@ -1822,6 +1840,7 @@ func (client TagClient) ListByOperation(ctx context.Context, resourceGroupName s result.tc, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByOperation", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1897,6 +1916,7 @@ func (client TagClient) listByOperationNextResults(ctx context.Context, lastResu result, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByOperationNextResults", resp, "Failure responding to next results request") + return } return } @@ -1974,6 +1994,7 @@ func (client TagClient) ListByProduct(ctx context.Context, resourceGroupName str result.tc, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByProduct", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2048,6 +2069,7 @@ func (client TagClient) listByProductNextResults(ctx context.Context, lastResult result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } @@ -2120,6 +2142,7 @@ func (client TagClient) ListByService(ctx context.Context, resourceGroupName str result.tc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByService", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2193,6 +2216,7 @@ func (client TagClient) listByServiceNextResults(ctx context.Context, lastResult result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -2260,6 +2284,7 @@ func (client TagClient) Update(ctx context.Context, resourceGroupName string, se result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/tagdescription.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/tagdescription.go index 8017ebd5f304..7933af74f770 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/tagdescription.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/tagdescription.go @@ -99,6 +99,7 @@ func (client TagDescriptionClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -203,6 +204,7 @@ func (client TagDescriptionClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "Delete", resp, "Failure responding to request") + return } return @@ -299,6 +301,7 @@ func (client TagDescriptionClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "Get", resp, "Failure responding to request") + return } return @@ -395,6 +398,7 @@ func (client TagDescriptionClient) GetEntityState(ctx context.Context, resourceG result, err = client.GetEntityStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "GetEntityState", resp, "Failure responding to request") + return } return @@ -499,6 +503,7 @@ func (client TagDescriptionClient) ListByAPI(ctx context.Context, resourceGroupN result.tdc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "ListByAPI", resp, "Failure responding to request") + return } if result.tdc.hasNextLink() && result.tdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -573,6 +578,7 @@ func (client TagDescriptionClient) listByAPINextResults(ctx context.Context, las result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/tagresource.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/tagresource.go index 100ae927d24f..9990cad874c3 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/tagresource.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/tagresource.go @@ -105,6 +105,7 @@ func (client TagResourceClient) ListByService(ctx context.Context, resourceGroup result.trc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagResourceClient", "ListByService", resp, "Failure responding to request") + return } if result.trc.hasNextLink() && result.trc.IsEmpty() { err = result.NextWithContext(ctx) @@ -178,6 +179,7 @@ func (client TagResourceClient) listByServiceNextResults(ctx context.Context, la result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagResourceClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/tenantaccess.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/tenantaccess.go index eac1b96d5ae4..14f2619c9626 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/tenantaccess.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/tenantaccess.go @@ -81,6 +81,7 @@ func (client TenantAccessClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "Get", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client TenantAccessClient) RegeneratePrimaryKey(ctx context.Context, resou result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client TenantAccessClient) RegenerateSecondaryKey(ctx context.Context, res result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return @@ -334,6 +337,7 @@ func (client TenantAccessClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/tenantaccessgit.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/tenantaccessgit.go index 2be996d199ae..fb9e5c522fc9 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/tenantaccessgit.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/tenantaccessgit.go @@ -81,6 +81,7 @@ func (client TenantAccessGitClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "Get", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client TenantAccessGitClient) RegeneratePrimaryKey(ctx context.Context, re result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client TenantAccessGitClient) RegenerateSecondaryKey(ctx context.Context, result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/tenantconfiguration.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/tenantconfiguration.go index 633d8ef116fb..5c61532a82a8 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/tenantconfiguration.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/tenantconfiguration.go @@ -173,6 +173,7 @@ func (client TenantConfigurationClient) GetSyncState(ctx context.Context, resour result, err = client.GetSyncStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationClient", "GetSyncState", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/user.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/user.go index 2dbcf59657e6..8df18814a297 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/user.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/user.go @@ -103,6 +103,7 @@ func (client UserClient) CreateOrUpdate(ctx context.Context, resourceGroupName s result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -202,6 +203,7 @@ func (client UserClient) Delete(ctx context.Context, resourceGroupName string, s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Delete", resp, "Failure responding to request") + return } return @@ -298,6 +300,7 @@ func (client UserClient) GenerateSsoURL(ctx context.Context, resourceGroupName s result, err = client.GenerateSsoURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GenerateSsoURL", resp, "Failure responding to request") + return } return @@ -387,6 +390,7 @@ func (client UserClient) Get(ctx context.Context, resourceGroupName string, serv result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Get", resp, "Failure responding to request") + return } return @@ -476,6 +480,7 @@ func (client UserClient) GetEntityTag(ctx context.Context, resourceGroupName str result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -559,6 +564,7 @@ func (client UserClient) GetIdentity(ctx context.Context, resourceGroupName stri result, err = client.GetIdentityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GetIdentity", resp, "Failure responding to request") + return } return @@ -650,6 +656,7 @@ func (client UserClient) GetSharedAccessToken(ctx context.Context, resourceGroup result, err = client.GetSharedAccessTokenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GetSharedAccessToken", resp, "Failure responding to request") + return } return @@ -754,6 +761,7 @@ func (client UserClient) ListByService(ctx context.Context, resourceGroupName st result.uc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "ListByService", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -827,6 +835,7 @@ func (client UserClient) listByServiceNextResults(ctx context.Context, lastResul result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -894,6 +903,7 @@ func (client UserClient) Update(ctx context.Context, resourceGroupName string, s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/usergroup.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/usergroup.go index 2a441a34c049..8b57a004bfb2 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/usergroup.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/usergroup.go @@ -100,6 +100,7 @@ func (client UserGroupClient) List(ctx context.Context, resourceGroupName string result.gc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserGroupClient", "List", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -174,6 +175,7 @@ func (client UserGroupClient) listNextResults(ctx context.Context, lastResults G result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserGroupClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/useridentities.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/useridentities.go index 93ae07c5a493..973ef5fe7848 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/useridentities.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/useridentities.go @@ -87,6 +87,7 @@ func (client UserIdentitiesClient) List(ctx context.Context, resourceGroupName s result.uic, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserIdentitiesClient", "List", resp, "Failure responding to request") + return } if result.uic.hasNextLink() && result.uic.IsEmpty() { err = result.NextWithContext(ctx) @@ -152,6 +153,7 @@ func (client UserIdentitiesClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserIdentitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/usersubscription.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/usersubscription.go index 47e57942f0d9..7fea704e9097 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/usersubscription.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/usersubscription.go @@ -104,6 +104,7 @@ func (client UserSubscriptionClient) List(ctx context.Context, resourceGroupName result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserSubscriptionClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -178,6 +179,7 @@ func (client UserSubscriptionClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserSubscriptionClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/api.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/api.go index 81773bc6ba1b..36cc9dba454f 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/api.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/api.go @@ -188,6 +188,7 @@ func (client APIClient) Delete(ctx context.Context, resourceGroupName string, se result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Delete", resp, "Failure responding to request") + return } return @@ -281,6 +282,7 @@ func (client APIClient) Get(ctx context.Context, resourceGroupName string, servi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Get", resp, "Failure responding to request") + return } return @@ -371,6 +373,7 @@ func (client APIClient) GetEntityTag(ctx context.Context, resourceGroupName stri result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -472,6 +475,7 @@ func (client APIClient) ListByService(ctx context.Context, resourceGroupName str result.ac, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "ListByService", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -551,6 +555,7 @@ func (client APIClient) listByServiceNextResults(ctx context.Context, lastResult result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +635,7 @@ func (client APIClient) ListByTags(ctx context.Context, resourceGroupName string result.trc, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "ListByTags", resp, "Failure responding to request") + return } if result.trc.hasNextLink() && result.trc.IsEmpty() { err = result.NextWithContext(ctx) @@ -706,6 +712,7 @@ func (client APIClient) listByTagsNextResults(ctx context.Context, lastResults T result, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "listByTagsNextResults", resp, "Failure responding to next results request") + return } return } @@ -774,6 +781,7 @@ func (client APIClient) Update(ctx context.Context, resourceGroupName string, se result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/apidiagnostic.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/apidiagnostic.go index 1d39023c4816..d6f7fd7ce367 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/apidiagnostic.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/apidiagnostic.go @@ -130,6 +130,7 @@ func (client APIDiagnosticClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -232,6 +233,7 @@ func (client APIDiagnosticClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Delete", resp, "Failure responding to request") + return } return @@ -326,6 +328,7 @@ func (client APIDiagnosticClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Get", resp, "Failure responding to request") + return } return @@ -420,6 +423,7 @@ func (client APIDiagnosticClient) GetEntityTag(ctx context.Context, resourceGrou result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -520,6 +524,7 @@ func (client APIDiagnosticClient) ListByService(ctx context.Context, resourceGro result.dc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "ListByService", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -594,6 +599,7 @@ func (client APIDiagnosticClient) listByServiceNextResults(ctx context.Context, result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -665,6 +671,7 @@ func (client APIDiagnosticClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/apiexport.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/apiexport.go index af9a03996ceb..e1c8aec059a4 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/apiexport.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/apiexport.go @@ -90,6 +90,7 @@ func (client APIExportClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIExportClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/apiissue.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/apiissue.go index a117436909c9..0274b687ee84 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/apiissue.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/apiissue.go @@ -98,6 +98,7 @@ func (client APIIssueClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -200,6 +201,7 @@ func (client APIIssueClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Delete", resp, "Failure responding to request") + return } return @@ -295,6 +297,7 @@ func (client APIIssueClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +395,7 @@ func (client APIIssueClient) GetEntityTag(ctx context.Context, resourceGroupName result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -494,6 +498,7 @@ func (client APIIssueClient) ListByService(ctx context.Context, resourceGroupNam result.ic, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "ListByService", resp, "Failure responding to request") + return } if result.ic.hasNextLink() && result.ic.IsEmpty() { err = result.NextWithContext(ctx) @@ -571,6 +576,7 @@ func (client APIIssueClient) listByServiceNextResults(ctx context.Context, lastR result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -642,6 +648,7 @@ func (client APIIssueClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/apiissueattachment.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/apiissueattachment.go index 5762f552b308..5ea2d5587aa4 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/apiissueattachment.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/apiissueattachment.go @@ -104,6 +104,7 @@ func (client APIIssueAttachmentClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -212,6 +213,7 @@ func (client APIIssueAttachmentClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "Delete", resp, "Failure responding to request") + return } return @@ -312,6 +314,7 @@ func (client APIIssueAttachmentClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "Get", resp, "Failure responding to request") + return } return @@ -412,6 +415,7 @@ func (client APIIssueAttachmentClient) GetEntityTag(ctx context.Context, resourc result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -519,6 +523,7 @@ func (client APIIssueAttachmentClient) ListByService(ctx context.Context, resour result.iac, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "ListByService", resp, "Failure responding to request") + return } if result.iac.hasNextLink() && result.iac.IsEmpty() { err = result.NextWithContext(ctx) @@ -594,6 +599,7 @@ func (client APIIssueAttachmentClient) listByServiceNextResults(ctx context.Cont result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/apiissuecomment.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/apiissuecomment.go index 69980226fae5..03d1a74f5af7 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/apiissuecomment.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/apiissuecomment.go @@ -102,6 +102,7 @@ func (client APIIssueCommentClient) CreateOrUpdate(ctx context.Context, resource result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -210,6 +211,7 @@ func (client APIIssueCommentClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "Delete", resp, "Failure responding to request") + return } return @@ -310,6 +312,7 @@ func (client APIIssueCommentClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "Get", resp, "Failure responding to request") + return } return @@ -410,6 +413,7 @@ func (client APIIssueCommentClient) GetEntityTag(ctx context.Context, resourceGr result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -517,6 +521,7 @@ func (client APIIssueCommentClient) ListByService(ctx context.Context, resourceG result.icc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "ListByService", resp, "Failure responding to request") + return } if result.icc.hasNextLink() && result.icc.IsEmpty() { err = result.NextWithContext(ctx) @@ -592,6 +597,7 @@ func (client APIIssueCommentClient) listByServiceNextResults(ctx context.Context result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/apioperation.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/apioperation.go index cd1125eb8bfa..28ceda212115 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/apioperation.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/apioperation.go @@ -106,6 +106,7 @@ func (client APIOperationClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -210,6 +211,7 @@ func (client APIOperationClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Delete", resp, "Failure responding to request") + return } return @@ -306,6 +308,7 @@ func (client APIOperationClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Get", resp, "Failure responding to request") + return } return @@ -402,6 +405,7 @@ func (client APIOperationClient) GetEntityTag(ctx context.Context, resourceGroup result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -509,6 +513,7 @@ func (client APIOperationClient) ListByAPI(ctx context.Context, resourceGroupNam result.oc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "ListByAPI", resp, "Failure responding to request") + return } if result.oc.hasNextLink() && result.oc.IsEmpty() { err = result.NextWithContext(ctx) @@ -586,6 +591,7 @@ func (client APIOperationClient) listByAPINextResults(ctx context.Context, lastR result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } @@ -659,6 +665,7 @@ func (client APIOperationClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/apioperationpolicy.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/apioperationpolicy.go index 55e752c067e1..06a4497ddc59 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/apioperationpolicy.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/apioperationpolicy.go @@ -98,6 +98,7 @@ func (client APIOperationPolicyClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -203,6 +204,7 @@ func (client APIOperationPolicyClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -301,6 +303,7 @@ func (client APIOperationPolicyClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -403,6 +406,7 @@ func (client APIOperationPolicyClient) GetEntityTag(ctx context.Context, resourc result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -499,6 +503,7 @@ func (client APIOperationPolicyClient) ListByOperation(ctx context.Context, reso result, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "ListByOperation", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/apipolicy.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/apipolicy.go index 2b3407c317fb..0b7e1702060c 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/apipolicy.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/apipolicy.go @@ -92,6 +92,7 @@ func (client APIPolicyClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -191,6 +192,7 @@ func (client APIPolicyClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -283,6 +285,7 @@ func (client APIPolicyClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -379,6 +382,7 @@ func (client APIPolicyClient) GetEntityTag(ctx context.Context, resourceGroupNam result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -469,6 +473,7 @@ func (client APIPolicyClient) ListByAPI(ctx context.Context, resourceGroupName s result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "ListByAPI", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/apiproduct.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/apiproduct.go index 7f5f4626b68c..3c3424f750c1 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/apiproduct.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/apiproduct.go @@ -97,6 +97,7 @@ func (client APIProductClient) ListByApis(ctx context.Context, resourceGroupName result.pc, err = client.ListByApisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIProductClient", "ListByApis", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -171,6 +172,7 @@ func (client APIProductClient) listByApisNextResults(ctx context.Context, lastRe result, err = client.ListByApisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIProductClient", "listByApisNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/apirelease.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/apirelease.go index e9f0474b90de..7e8570fd5fed 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/apirelease.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/apirelease.go @@ -92,6 +92,7 @@ func (client APIReleaseClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -194,6 +195,7 @@ func (client APIReleaseClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Delete", resp, "Failure responding to request") + return } return @@ -288,6 +290,7 @@ func (client APIReleaseClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Get", resp, "Failure responding to request") + return } return @@ -382,6 +385,7 @@ func (client APIReleaseClient) GetEntityTag(ctx context.Context, resourceGroupNa result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -484,6 +488,7 @@ func (client APIReleaseClient) ListByService(ctx context.Context, resourceGroupN result.arc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "ListByService", resp, "Failure responding to request") + return } if result.arc.hasNextLink() && result.arc.IsEmpty() { err = result.NextWithContext(ctx) @@ -558,6 +563,7 @@ func (client APIReleaseClient) listByServiceNextResults(ctx context.Context, las result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -629,6 +635,7 @@ func (client APIReleaseClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/apirevision.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/apirevision.go index 711938743a75..7cee2879da3b 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/apirevision.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/apirevision.go @@ -97,6 +97,7 @@ func (client APIRevisionClient) ListByService(ctx context.Context, resourceGroup result.arc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIRevisionClient", "ListByService", resp, "Failure responding to request") + return } if result.arc.hasNextLink() && result.arc.IsEmpty() { err = result.NextWithContext(ctx) @@ -171,6 +172,7 @@ func (client APIRevisionClient) listByServiceNextResults(ctx context.Context, la result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIRevisionClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/apischema.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/apischema.go index edd5f3b8d9f8..0fc33b352f79 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/apischema.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/apischema.go @@ -97,6 +97,7 @@ func (client APISchemaClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -202,6 +203,7 @@ func (client APISchemaClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "Delete", resp, "Failure responding to request") + return } return @@ -301,6 +303,7 @@ func (client APISchemaClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "Get", resp, "Failure responding to request") + return } return @@ -397,6 +400,7 @@ func (client APISchemaClient) GetEntityTag(ctx context.Context, resourceGroupNam result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -499,6 +503,7 @@ func (client APISchemaClient) ListByAPI(ctx context.Context, resourceGroupName s result.sc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "ListByAPI", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -573,6 +578,7 @@ func (client APISchemaClient) listByAPINextResults(ctx context.Context, lastResu result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/apitagdescription.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/apitagdescription.go index b0db339b4ce8..27215fa23528 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/apitagdescription.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/apitagdescription.go @@ -100,6 +100,7 @@ func (client APITagDescriptionClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APITagDescriptionClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -204,6 +205,7 @@ func (client APITagDescriptionClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APITagDescriptionClient", "Delete", resp, "Failure responding to request") + return } return @@ -300,6 +302,7 @@ func (client APITagDescriptionClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APITagDescriptionClient", "Get", resp, "Failure responding to request") + return } return @@ -396,6 +399,7 @@ func (client APITagDescriptionClient) GetEntityTag(ctx context.Context, resource result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APITagDescriptionClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -500,6 +504,7 @@ func (client APITagDescriptionClient) ListByService(ctx context.Context, resourc result.tdc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APITagDescriptionClient", "ListByService", resp, "Failure responding to request") + return } if result.tdc.hasNextLink() && result.tdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -574,6 +579,7 @@ func (client APITagDescriptionClient) listByServiceNextResults(ctx context.Conte result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APITagDescriptionClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/apiversionset.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/apiversionset.go index 31df648571b8..85cec6518862 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/apiversionset.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/apiversionset.go @@ -95,6 +95,7 @@ func (client APIVersionSetClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client APIVersionSetClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Delete", resp, "Failure responding to request") + return } return @@ -281,6 +283,7 @@ func (client APIVersionSetClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client APIVersionSetClient) GetEntityTag(ctx context.Context, resourceGrou result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -464,6 +468,7 @@ func (client APIVersionSetClient) ListByService(ctx context.Context, resourceGro result.avsc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "ListByService", resp, "Failure responding to request") + return } if result.avsc.hasNextLink() && result.avsc.IsEmpty() { err = result.NextWithContext(ctx) @@ -537,6 +542,7 @@ func (client APIVersionSetClient) listByServiceNextResults(ctx context.Context, result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -604,6 +610,7 @@ func (client APIVersionSetClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/authorizationserver.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/authorizationserver.go index 3942a0ce8764..c83ca77dd6fe 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/authorizationserver.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/authorizationserver.go @@ -100,6 +100,7 @@ func (client AuthorizationServerClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -197,6 +198,7 @@ func (client AuthorizationServerClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Delete", resp, "Failure responding to request") + return } return @@ -286,6 +288,7 @@ func (client AuthorizationServerClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Get", resp, "Failure responding to request") + return } return @@ -375,6 +378,7 @@ func (client AuthorizationServerClient) GetEntityTag(ctx context.Context, resour result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -471,6 +475,7 @@ func (client AuthorizationServerClient) ListByService(ctx context.Context, resou result.asc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "ListByService", resp, "Failure responding to request") + return } if result.asc.hasNextLink() && result.asc.IsEmpty() { err = result.NextWithContext(ctx) @@ -544,6 +549,7 @@ func (client AuthorizationServerClient) listByServiceNextResults(ctx context.Con result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -611,6 +617,7 @@ func (client AuthorizationServerClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/backend.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/backend.go index 1d313eae4300..838b45a1d778 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/backend.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/backend.go @@ -94,6 +94,7 @@ func (client BackendClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client BackendClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Delete", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client BackendClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Get", resp, "Failure responding to request") + return } return @@ -366,6 +369,7 @@ func (client BackendClient) GetEntityTag(ctx context.Context, resourceGroupName result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -463,6 +467,7 @@ func (client BackendClient) ListByService(ctx context.Context, resourceGroupName result.bc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "ListByService", resp, "Failure responding to request") + return } if result.bc.hasNextLink() && result.bc.IsEmpty() { err = result.NextWithContext(ctx) @@ -536,6 +541,7 @@ func (client BackendClient) listByServiceNextResults(ctx context.Context, lastRe result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -601,6 +607,7 @@ func (client BackendClient) Reconnect(ctx context.Context, resourceGroupName str result, err = client.ReconnectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Reconnect", resp, "Failure responding to request") + return } return @@ -696,6 +703,7 @@ func (client BackendClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/cache.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/cache.go index d3df7cab1291..496c1490b832 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/cache.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/cache.go @@ -98,6 +98,7 @@ func (client CacheClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -196,6 +197,7 @@ func (client CacheClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "Delete", resp, "Failure responding to request") + return } return @@ -286,6 +288,7 @@ func (client CacheClient) Get(ctx context.Context, resourceGroupName string, ser result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "Get", resp, "Failure responding to request") + return } return @@ -376,6 +379,7 @@ func (client CacheClient) GetEntityTag(ctx context.Context, resourceGroupName st result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -468,6 +472,7 @@ func (client CacheClient) ListByService(ctx context.Context, resourceGroupName s result.cc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "ListByService", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -538,6 +543,7 @@ func (client CacheClient) listByServiceNextResults(ctx context.Context, lastResu result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -606,6 +612,7 @@ func (client CacheClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/certificate.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/certificate.go index dd0f4264bb0a..88c33941ec87 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/certificate.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/certificate.go @@ -94,6 +94,7 @@ func (client CertificateClient) CreateOrUpdate(ctx context.Context, resourceGrou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client CertificateClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "Delete", resp, "Failure responding to request") + return } return @@ -282,6 +284,7 @@ func (client CertificateClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -372,6 +375,7 @@ func (client CertificateClient) GetEntityTag(ctx context.Context, resourceGroupN result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -470,6 +474,7 @@ func (client CertificateClient) ListByService(ctx context.Context, resourceGroup result.cc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "ListByService", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -543,6 +548,7 @@ func (client CertificateClient) listByServiceNextResults(ctx context.Context, la result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/delegationsettings.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/delegationsettings.go index 2fc29d48c90a..d68cf9aec54a 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/delegationsettings.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/delegationsettings.go @@ -84,6 +84,7 @@ func (client DelegationSettingsClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client DelegationSettingsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -256,6 +258,7 @@ func (client DelegationSettingsClient) GetEntityTag(ctx context.Context, resourc result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -341,6 +344,7 @@ func (client DelegationSettingsClient) Update(ctx context.Context, resourceGroup result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/diagnostic.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/diagnostic.go index 66c5436ff141..5adda25872c2 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/diagnostic.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/diagnostic.go @@ -126,6 +126,7 @@ func (client DiagnosticClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -223,6 +224,7 @@ func (client DiagnosticClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Delete", resp, "Failure responding to request") + return } return @@ -312,6 +314,7 @@ func (client DiagnosticClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Get", resp, "Failure responding to request") + return } return @@ -401,6 +404,7 @@ func (client DiagnosticClient) GetEntityTag(ctx context.Context, resourceGroupNa result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -496,6 +500,7 @@ func (client DiagnosticClient) ListByService(ctx context.Context, resourceGroupN result.dc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "ListByService", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -569,6 +574,7 @@ func (client DiagnosticClient) listByServiceNextResults(ctx context.Context, las result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -636,6 +642,7 @@ func (client DiagnosticClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/emailtemplate.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/emailtemplate.go index d7b13f69ccda..269abfdfe701 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/emailtemplate.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/emailtemplate.go @@ -93,6 +93,7 @@ func (client EmailTemplateClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client EmailTemplateClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Delete", resp, "Failure responding to request") + return } return @@ -271,6 +273,7 @@ func (client EmailTemplateClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Get", resp, "Failure responding to request") + return } return @@ -356,6 +359,7 @@ func (client EmailTemplateClient) GetEntityTag(ctx context.Context, resourceGrou result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -451,6 +455,7 @@ func (client EmailTemplateClient) ListByService(ctx context.Context, resourceGro result.etc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "ListByService", resp, "Failure responding to request") + return } if result.etc.hasNextLink() && result.etc.IsEmpty() { err = result.NextWithContext(ctx) @@ -524,6 +529,7 @@ func (client EmailTemplateClient) listByServiceNextResults(ctx context.Context, result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -587,6 +593,7 @@ func (client EmailTemplateClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/group.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/group.go index fc2c92a17de4..bfbee5dfca69 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/group.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/group.go @@ -94,6 +94,7 @@ func (client GroupClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client GroupClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Delete", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client GroupClient) Get(ctx context.Context, resourceGroupName string, ser result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Get", resp, "Failure responding to request") + return } return @@ -366,6 +369,7 @@ func (client GroupClient) GetEntityTag(ctx context.Context, resourceGroupName st result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -463,6 +467,7 @@ func (client GroupClient) ListByService(ctx context.Context, resourceGroupName s result.gc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "ListByService", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -536,6 +541,7 @@ func (client GroupClient) listByServiceNextResults(ctx context.Context, lastResu result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -602,6 +608,7 @@ func (client GroupClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/groupuser.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/groupuser.go index 86d27b352402..d331ce675ca6 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/groupuser.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/groupuser.go @@ -89,6 +89,7 @@ func (client GroupUserClient) CheckEntityExists(ctx context.Context, resourceGro result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client GroupUserClient) Create(ctx context.Context, resourceGroupName stri result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "Create", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client GroupUserClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "Delete", resp, "Failure responding to request") + return } return @@ -378,6 +381,7 @@ func (client GroupUserClient) List(ctx context.Context, resourceGroupName string result.uc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "List", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -452,6 +456,7 @@ func (client GroupUserClient) listNextResults(ctx context.Context, lastResults U result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/identityprovider.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/identityprovider.go index b56d846057e9..32577d7e4862 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/identityprovider.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/identityprovider.go @@ -92,6 +92,7 @@ func (client IdentityProviderClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client IdentityProviderClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Delete", resp, "Failure responding to request") + return } return @@ -270,6 +272,7 @@ func (client IdentityProviderClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +358,7 @@ func (client IdentityProviderClient) GetEntityTag(ctx context.Context, resourceG result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -439,6 +443,7 @@ func (client IdentityProviderClient) ListByService(ctx context.Context, resource result.ipl, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "ListByService", resp, "Failure responding to request") + return } if result.ipl.hasNextLink() && result.ipl.IsEmpty() { err = result.NextWithContext(ctx) @@ -503,6 +508,7 @@ func (client IdentityProviderClient) listByServiceNextResults(ctx context.Contex result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -566,6 +572,7 @@ func (client IdentityProviderClient) Update(ctx context.Context, resourceGroupNa result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/issue.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/issue.go index 0af09d7b7474..f5850552222f 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/issue.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/issue.go @@ -86,6 +86,7 @@ func (client IssueClient) Get(ctx context.Context, resourceGroupName string, ser result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IssueClient", "Get", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client IssueClient) ListByService(ctx context.Context, resourceGroupName s result.ic, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IssueClient", "ListByService", resp, "Failure responding to request") + return } if result.ic.hasNextLink() && result.ic.IsEmpty() { err = result.NextWithContext(ctx) @@ -259,6 +261,7 @@ func (client IssueClient) listByServiceNextResults(ctx context.Context, lastResu result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IssueClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/logger.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/logger.go index 917aedee1c7d..f434d65b7c97 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/logger.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/logger.go @@ -93,6 +93,7 @@ func (client LoggerClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client LoggerClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Delete", resp, "Failure responding to request") + return } return @@ -281,6 +283,7 @@ func (client LoggerClient) Get(ctx context.Context, resourceGroupName string, se result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +372,7 @@ func (client LoggerClient) GetEntityTag(ctx context.Context, resourceGroupName s result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -466,6 +470,7 @@ func (client LoggerClient) ListByService(ctx context.Context, resourceGroupName result.lc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "ListByService", resp, "Failure responding to request") + return } if result.lc.hasNextLink() && result.lc.IsEmpty() { err = result.NextWithContext(ctx) @@ -539,6 +544,7 @@ func (client LoggerClient) listByServiceNextResults(ctx context.Context, lastRes result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -605,6 +611,7 @@ func (client LoggerClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/networkstatus.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/networkstatus.go index a12e3d2bc49d..f442b51db09a 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/networkstatus.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/networkstatus.go @@ -86,6 +86,7 @@ func (client NetworkStatusClient) ListByLocation(ctx context.Context, resourceGr result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NetworkStatusClient", "ListByLocation", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client NetworkStatusClient) ListByService(ctx context.Context, resourceGro result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NetworkStatusClient", "ListByService", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/notification.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/notification.go index 162a57ee54a5..46ee231ac0bf 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/notification.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/notification.go @@ -83,6 +83,7 @@ func (client NotificationClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client NotificationClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "Get", resp, "Failure responding to request") + return } return @@ -265,6 +267,7 @@ func (client NotificationClient) ListByService(ctx context.Context, resourceGrou result.nc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "ListByService", resp, "Failure responding to request") + return } if result.nc.hasNextLink() && result.nc.IsEmpty() { err = result.NextWithContext(ctx) @@ -335,6 +338,7 @@ func (client NotificationClient) listByServiceNextResults(ctx context.Context, l result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/notificationrecipientemail.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/notificationrecipientemail.go index f96af07dcfa7..7aee27f0bdf6 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/notificationrecipientemail.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/notificationrecipientemail.go @@ -84,6 +84,7 @@ func (client NotificationRecipientEmailClient) CheckEntityExists(ctx context.Con result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client NotificationRecipientEmailClient) CreateOrUpdate(ctx context.Contex result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -257,6 +259,7 @@ func (client NotificationRecipientEmailClient) Delete(ctx context.Context, resou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "Delete", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client NotificationRecipientEmailClient) ListByNotification(ctx context.Co result, err = client.ListByNotificationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "ListByNotification", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/notificationrecipientuser.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/notificationrecipientuser.go index 51b2a87d0cd0..fb1d4b87b433 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/notificationrecipientuser.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/notificationrecipientuser.go @@ -87,6 +87,7 @@ func (client NotificationRecipientUserClient) CheckEntityExists(ctx context.Cont result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client NotificationRecipientUserClient) CreateOrUpdate(ctx context.Context result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -266,6 +268,7 @@ func (client NotificationRecipientUserClient) Delete(ctx context.Context, resour result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "Delete", resp, "Failure responding to request") + return } return @@ -351,6 +354,7 @@ func (client NotificationRecipientUserClient) ListByNotification(ctx context.Con result, err = client.ListByNotificationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "ListByNotification", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/openidconnectprovider.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/openidconnectprovider.go index 50aaf7b0bdba..0eae69a3d7a4 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/openidconnectprovider.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/openidconnectprovider.go @@ -95,6 +95,7 @@ func (client OpenIDConnectProviderClient) CreateOrUpdate(ctx context.Context, re result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -191,6 +192,7 @@ func (client OpenIDConnectProviderClient) Delete(ctx context.Context, resourceGr result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Delete", resp, "Failure responding to request") + return } return @@ -279,6 +281,7 @@ func (client OpenIDConnectProviderClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Get", resp, "Failure responding to request") + return } return @@ -367,6 +370,7 @@ func (client OpenIDConnectProviderClient) GetEntityTag(ctx context.Context, reso result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -463,6 +467,7 @@ func (client OpenIDConnectProviderClient) ListByService(ctx context.Context, res result.oicpc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "ListByService", resp, "Failure responding to request") + return } if result.oicpc.hasNextLink() && result.oicpc.IsEmpty() { err = result.NextWithContext(ctx) @@ -536,6 +541,7 @@ func (client OpenIDConnectProviderClient) listByServiceNextResults(ctx context.C result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -602,6 +608,7 @@ func (client OpenIDConnectProviderClient) Update(ctx context.Context, resourceGr result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/operation.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/operation.go index 08f0b0952caf..de76c0641c58 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/operation.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/operation.go @@ -105,6 +105,7 @@ func (client OperationClient) ListByTags(ctx context.Context, resourceGroupName result.trc, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OperationClient", "ListByTags", resp, "Failure responding to request") + return } if result.trc.hasNextLink() && result.trc.IsEmpty() { err = result.NextWithContext(ctx) @@ -182,6 +183,7 @@ func (client OperationClient) listByTagsNextResults(ctx context.Context, lastRes result, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OperationClient", "listByTagsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/operations.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/operations.go index 61c8f44eab41..9e4ab525af71 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/operations.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/policy.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/policy.go index 6c3e57f54895..1ceb57fcb0f0 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/policy.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/policy.go @@ -86,6 +86,7 @@ func (client PolicyClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client PolicyClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -263,6 +265,7 @@ func (client PolicyClient) Get(ctx context.Context, resourceGroupName string, se result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -352,6 +355,7 @@ func (client PolicyClient) GetEntityTag(ctx context.Context, resourceGroupName s result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -435,6 +439,7 @@ func (client PolicyClient) ListByService(ctx context.Context, resourceGroupName result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "ListByService", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/policysnippet.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/policysnippet.go index 171802aa50c9..d7529b4ee43c 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/policysnippet.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/policysnippet.go @@ -82,6 +82,7 @@ func (client PolicySnippetClient) ListByService(ctx context.Context, resourceGro result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicySnippetClient", "ListByService", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/product.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/product.go index 2b6f7c281eb6..bf262c4b0c7f 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/product.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/product.go @@ -94,6 +94,7 @@ func (client ProductClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -191,6 +192,7 @@ func (client ProductClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Delete", resp, "Failure responding to request") + return } return @@ -282,6 +284,7 @@ func (client ProductClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client ProductClient) GetEntityTag(ctx context.Context, resourceGroupName result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -472,6 +476,7 @@ func (client ProductClient) ListByService(ctx context.Context, resourceGroupName result.pc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "ListByService", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -551,6 +556,7 @@ func (client ProductClient) listByServiceNextResults(ctx context.Context, lastRe result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -627,6 +633,7 @@ func (client ProductClient) ListByTags(ctx context.Context, resourceGroupName st result.trc, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "ListByTags", resp, "Failure responding to request") + return } if result.trc.hasNextLink() && result.trc.IsEmpty() { err = result.NextWithContext(ctx) @@ -703,6 +710,7 @@ func (client ProductClient) listByTagsNextResults(ctx context.Context, lastResul result, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "listByTagsNextResults", resp, "Failure responding to next results request") + return } return } @@ -769,6 +777,7 @@ func (client ProductClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/productapi.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/productapi.go index 5071ad7562c7..444ba52496ec 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/productapi.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/productapi.go @@ -91,6 +91,7 @@ func (client ProductAPIClient) CheckEntityExists(ctx context.Context, resourceGr result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client ProductAPIClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client ProductAPIClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "Delete", resp, "Failure responding to request") + return } return @@ -384,6 +387,7 @@ func (client ProductAPIClient) ListByProduct(ctx context.Context, resourceGroupN result.ac, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "ListByProduct", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -458,6 +462,7 @@ func (client ProductAPIClient) listByProductNextResults(ctx context.Context, las result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/productgroup.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/productgroup.go index ba008360df47..6cfaf94a560f 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/productgroup.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/productgroup.go @@ -89,6 +89,7 @@ func (client ProductGroupClient) CheckEntityExists(ctx context.Context, resource result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client ProductGroupClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client ProductGroupClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "Delete", resp, "Failure responding to request") + return } return @@ -374,6 +377,7 @@ func (client ProductGroupClient) ListByProduct(ctx context.Context, resourceGrou result.gc, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "ListByProduct", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -448,6 +452,7 @@ func (client ProductGroupClient) listByProductNextResults(ctx context.Context, l result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/productpolicy.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/productpolicy.go index 9358f9f2a2dd..42ccd92edd33 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/productpolicy.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/productpolicy.go @@ -90,6 +90,7 @@ func (client ProductPolicyClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -187,6 +188,7 @@ func (client ProductPolicyClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -277,6 +279,7 @@ func (client ProductPolicyClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -371,6 +374,7 @@ func (client ProductPolicyClient) GetEntityTag(ctx context.Context, resourceGrou result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -459,6 +463,7 @@ func (client ProductPolicyClient) ListByProduct(ctx context.Context, resourceGro result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "ListByProduct", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/productsubscriptions.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/productsubscriptions.go index 366fe2c0d58d..bd4e65ac3b4a 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/productsubscriptions.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/productsubscriptions.go @@ -104,6 +104,7 @@ func (client ProductSubscriptionsClient) List(ctx context.Context, resourceGroup result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductSubscriptionsClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -178,6 +179,7 @@ func (client ProductSubscriptionsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductSubscriptionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/property.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/property.go index 9da3645ea136..d1847be8b9b3 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/property.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/property.go @@ -99,6 +99,7 @@ func (client PropertyClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -195,6 +196,7 @@ func (client PropertyClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Delete", resp, "Failure responding to request") + return } return @@ -283,6 +285,7 @@ func (client PropertyClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Get", resp, "Failure responding to request") + return } return @@ -371,6 +374,7 @@ func (client PropertyClient) GetEntityTag(ctx context.Context, resourceGroupName result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -467,6 +471,7 @@ func (client PropertyClient) ListByService(ctx context.Context, resourceGroupNam result.pc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "ListByService", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -540,6 +545,7 @@ func (client PropertyClient) listByServiceNextResults(ctx context.Context, lastR result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -606,6 +612,7 @@ func (client PropertyClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/quotabycounterkeys.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/quotabycounterkeys.go index 2ecd892163c9..2f0669f1a286 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/quotabycounterkeys.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/quotabycounterkeys.go @@ -87,6 +87,7 @@ func (client QuotaByCounterKeysClient) ListByService(ctx context.Context, resour result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByCounterKeysClient", "ListByService", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client QuotaByCounterKeysClient) Update(ctx context.Context, resourceGroup result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByCounterKeysClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/quotabyperiodkeys.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/quotabyperiodkeys.go index 6e9d75d9be9e..23909b41361b 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/quotabyperiodkeys.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/quotabyperiodkeys.go @@ -88,6 +88,7 @@ func (client QuotaByPeriodKeysClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByPeriodKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client QuotaByPeriodKeysClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByPeriodKeysClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/region.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/region.go index 5aea81d661f8..5ccf136c1c7b 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/region.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/region.go @@ -82,6 +82,7 @@ func (client RegionClient) ListByService(ctx context.Context, resourceGroupName result.rlr, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.RegionClient", "ListByService", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client RegionClient) listByServiceNextResults(ctx context.Context, lastRes result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.RegionClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/reports.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/reports.go index 54725ad69808..aee3c134f703 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/reports.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/reports.go @@ -92,6 +92,7 @@ func (client ReportsClient) ListByAPI(ctx context.Context, resourceGroupName str result.rc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByAPI", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -166,6 +167,7 @@ func (client ReportsClient) listByAPINextResults(ctx context.Context, lastResult result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } @@ -245,6 +247,7 @@ func (client ReportsClient) ListByGeo(ctx context.Context, resourceGroupName str result.rc, err = client.ListByGeoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByGeo", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -316,6 +319,7 @@ func (client ReportsClient) listByGeoNextResults(ctx context.Context, lastResult result, err = client.ListByGeoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByGeoNextResults", resp, "Failure responding to next results request") + return } return } @@ -397,6 +401,7 @@ func (client ReportsClient) ListByOperation(ctx context.Context, resourceGroupNa result.rc, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByOperation", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -471,6 +476,7 @@ func (client ReportsClient) listByOperationNextResults(ctx context.Context, last result, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByOperationNextResults", resp, "Failure responding to next results request") + return } return } @@ -551,6 +557,7 @@ func (client ReportsClient) ListByProduct(ctx context.Context, resourceGroupName result.rc, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByProduct", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -625,6 +632,7 @@ func (client ReportsClient) listByProductNextResults(ctx context.Context, lastRe result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } @@ -697,6 +705,7 @@ func (client ReportsClient) ListByRequest(ctx context.Context, resourceGroupName result, err = client.ListByRequestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByRequest", resp, "Failure responding to request") + return } return @@ -808,6 +817,7 @@ func (client ReportsClient) ListBySubscription(ctx context.Context, resourceGrou result.rc, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -882,6 +892,7 @@ func (client ReportsClient) listBySubscriptionNextResults(ctx context.Context, l result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -965,6 +976,7 @@ func (client ReportsClient) ListByTime(ctx context.Context, resourceGroupName st result.rc, err = client.ListByTimeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByTime", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1040,6 +1052,7 @@ func (client ReportsClient) listByTimeNextResults(ctx context.Context, lastResul result, err = client.ListByTimeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByTimeNextResults", resp, "Failure responding to next results request") + return } return } @@ -1121,6 +1134,7 @@ func (client ReportsClient) ListByUser(ctx context.Context, resourceGroupName st result.rc, err = client.ListByUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByUser", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1195,6 +1209,7 @@ func (client ReportsClient) listByUserNextResults(ctx context.Context, lastResul result, err = client.ListByUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByUserNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/service.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/service.go index 06d1cbdc96d6..904313399bd0 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/service.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/service.go @@ -262,6 +262,7 @@ func (client ServiceClient) CheckNameAvailability(ctx context.Context, parameter result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -527,6 +528,7 @@ func (client ServiceClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "Get", resp, "Failure responding to request") + return } return @@ -610,6 +612,7 @@ func (client ServiceClient) GetSsoToken(ctx context.Context, resourceGroupName s result, err = client.GetSsoTokenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "GetSsoToken", resp, "Failure responding to request") + return } return @@ -683,6 +686,7 @@ func (client ServiceClient) List(ctx context.Context) (result ServiceListResultP result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -745,6 +749,7 @@ func (client ServiceClient) listNextResults(ctx context.Context, lastResults Ser result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -796,6 +801,7 @@ func (client ServiceClient) ListByResourceGroup(ctx context.Context, resourceGro result.slr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -859,6 +865,7 @@ func (client ServiceClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/serviceskus.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/serviceskus.go index 8cd7618be627..8af94178914a 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/serviceskus.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/serviceskus.go @@ -82,6 +82,7 @@ func (client ServiceSkusClient) ListAvailableServiceSkus(ctx context.Context, re result.rsr, err = client.ListAvailableServiceSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceSkusClient", "ListAvailableServiceSkus", resp, "Failure responding to request") + return } if result.rsr.hasNextLink() && result.rsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client ServiceSkusClient) listAvailableServiceSkusNextResults(ctx context. result, err = client.ListAvailableServiceSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceSkusClient", "listAvailableServiceSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/signinsettings.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/signinsettings.go index 25af9088255d..d142d03582e0 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/signinsettings.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/signinsettings.go @@ -83,6 +83,7 @@ func (client SignInSettingsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client SignInSettingsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -255,6 +257,7 @@ func (client SignInSettingsClient) GetEntityTag(ctx context.Context, resourceGro result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -340,6 +343,7 @@ func (client SignInSettingsClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/signupsettings.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/signupsettings.go index 9a239a51f965..0a2a1ca3a51d 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/signupsettings.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/signupsettings.go @@ -83,6 +83,7 @@ func (client SignUpSettingsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client SignUpSettingsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -255,6 +257,7 @@ func (client SignUpSettingsClient) GetEntityTag(ctx context.Context, resourceGro result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -340,6 +343,7 @@ func (client SignUpSettingsClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/subscription.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/subscription.go index 9995a7f839c1..020b6eb54f31 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/subscription.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/subscription.go @@ -109,6 +109,7 @@ func (client SubscriptionClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -214,6 +215,7 @@ func (client SubscriptionClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Delete", resp, "Failure responding to request") + return } return @@ -303,6 +305,7 @@ func (client SubscriptionClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +395,7 @@ func (client SubscriptionClient) GetEntityTag(ctx context.Context, resourceGroup result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -493,6 +497,7 @@ func (client SubscriptionClient) List(ctx context.Context, resourceGroupName str result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -566,6 +571,7 @@ func (client SubscriptionClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +636,7 @@ func (client SubscriptionClient) RegeneratePrimaryKey(ctx context.Context, resou result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -718,6 +725,7 @@ func (client SubscriptionClient) RegenerateSecondaryKey(ctx context.Context, res result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return @@ -814,6 +822,7 @@ func (client SubscriptionClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/tag.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/tag.go index 31029126f828..c158daf69c33 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/tag.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/tag.go @@ -92,6 +92,7 @@ func (client TagClient) AssignToAPI(ctx context.Context, resourceGroupName strin result, err = client.AssignToAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToAPI", resp, "Failure responding to request") + return } return @@ -193,6 +194,7 @@ func (client TagClient) AssignToOperation(ctx context.Context, resourceGroupName result, err = client.AssignToOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToOperation", resp, "Failure responding to request") + return } return @@ -288,6 +290,7 @@ func (client TagClient) AssignToProduct(ctx context.Context, resourceGroupName s result, err = client.AssignToProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToProduct", resp, "Failure responding to request") + return } return @@ -387,6 +390,7 @@ func (client TagClient) CreateOrUpdate(ctx context.Context, resourceGroupName st result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -484,6 +488,7 @@ func (client TagClient) Delete(ctx context.Context, resourceGroupName string, se result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Delete", resp, "Failure responding to request") + return } return @@ -579,6 +584,7 @@ func (client TagClient) DetachFromAPI(ctx context.Context, resourceGroupName str result, err = client.DetachFromAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromAPI", resp, "Failure responding to request") + return } return @@ -679,6 +685,7 @@ func (client TagClient) DetachFromOperation(ctx context.Context, resourceGroupNa result, err = client.DetachFromOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromOperation", resp, "Failure responding to request") + return } return @@ -773,6 +780,7 @@ func (client TagClient) DetachFromProduct(ctx context.Context, resourceGroupName result, err = client.DetachFromProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromProduct", resp, "Failure responding to request") + return } return @@ -862,6 +870,7 @@ func (client TagClient) Get(ctx context.Context, resourceGroupName string, servi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Get", resp, "Failure responding to request") + return } return @@ -957,6 +966,7 @@ func (client TagClient) GetByAPI(ctx context.Context, resourceGroupName string, result, err = client.GetByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByAPI", resp, "Failure responding to request") + return } return @@ -1058,6 +1068,7 @@ func (client TagClient) GetByOperation(ctx context.Context, resourceGroupName st result, err = client.GetByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByOperation", resp, "Failure responding to request") + return } return @@ -1153,6 +1164,7 @@ func (client TagClient) GetByProduct(ctx context.Context, resourceGroupName stri result, err = client.GetByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByProduct", resp, "Failure responding to request") + return } return @@ -1243,6 +1255,7 @@ func (client TagClient) GetEntityState(ctx context.Context, resourceGroupName st result, err = client.GetEntityStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityState", resp, "Failure responding to request") + return } return @@ -1337,6 +1350,7 @@ func (client TagClient) GetEntityStateByAPI(ctx context.Context, resourceGroupNa result, err = client.GetEntityStateByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByAPI", resp, "Failure responding to request") + return } return @@ -1437,6 +1451,7 @@ func (client TagClient) GetEntityStateByOperation(ctx context.Context, resourceG result, err = client.GetEntityStateByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByOperation", resp, "Failure responding to request") + return } return @@ -1531,6 +1546,7 @@ func (client TagClient) GetEntityStateByProduct(ctx context.Context, resourceGro result, err = client.GetEntityStateByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByProduct", resp, "Failure responding to request") + return } return @@ -1634,6 +1650,7 @@ func (client TagClient) ListByAPI(ctx context.Context, resourceGroupName string, result.tc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByAPI", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1708,6 +1725,7 @@ func (client TagClient) listByAPINextResults(ctx context.Context, lastResults Ta result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } @@ -1791,6 +1809,7 @@ func (client TagClient) ListByOperation(ctx context.Context, resourceGroupName s result.tc, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByOperation", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1866,6 +1885,7 @@ func (client TagClient) listByOperationNextResults(ctx context.Context, lastResu result, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByOperationNextResults", resp, "Failure responding to next results request") + return } return } @@ -1942,6 +1962,7 @@ func (client TagClient) ListByProduct(ctx context.Context, resourceGroupName str result.tc, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByProduct", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2016,6 +2037,7 @@ func (client TagClient) listByProductNextResults(ctx context.Context, lastResult result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } @@ -2089,6 +2111,7 @@ func (client TagClient) ListByService(ctx context.Context, resourceGroupName str result.tc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByService", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2165,6 +2188,7 @@ func (client TagClient) listByServiceNextResults(ctx context.Context, lastResult result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -2232,6 +2256,7 @@ func (client TagClient) Update(ctx context.Context, resourceGroupName string, se result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/tagresource.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/tagresource.go index 32c9f982aa12..ead92ae04b89 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/tagresource.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/tagresource.go @@ -103,6 +103,7 @@ func (client TagResourceClient) ListByService(ctx context.Context, resourceGroup result.trc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagResourceClient", "ListByService", resp, "Failure responding to request") + return } if result.trc.hasNextLink() && result.trc.IsEmpty() { err = result.NextWithContext(ctx) @@ -176,6 +177,7 @@ func (client TagResourceClient) listByServiceNextResults(ctx context.Context, la result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagResourceClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/tenantaccess.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/tenantaccess.go index 2abfa847fe71..178daa19b295 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/tenantaccess.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/tenantaccess.go @@ -81,6 +81,7 @@ func (client TenantAccessClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "Get", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client TenantAccessClient) GetEntityTag(ctx context.Context, resourceGroup result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client TenantAccessClient) RegeneratePrimaryKey(ctx context.Context, resou result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -331,6 +334,7 @@ func (client TenantAccessClient) RegenerateSecondaryKey(ctx context.Context, res result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return @@ -417,6 +421,7 @@ func (client TenantAccessClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/tenantaccessgit.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/tenantaccessgit.go index 9062487af1b6..922efa4b0647 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/tenantaccessgit.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/tenantaccessgit.go @@ -81,6 +81,7 @@ func (client TenantAccessGitClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "Get", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client TenantAccessGitClient) RegeneratePrimaryKey(ctx context.Context, re result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client TenantAccessGitClient) RegenerateSecondaryKey(ctx context.Context, result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/tenantconfiguration.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/tenantconfiguration.go index e14cb21ac316..2fb583448e2f 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/tenantconfiguration.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/tenantconfiguration.go @@ -174,6 +174,7 @@ func (client TenantConfigurationClient) GetSyncState(ctx context.Context, resour result, err = client.GetSyncStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationClient", "GetSyncState", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/user.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/user.go index d6ca87f4d2db..5c9b3df219a3 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/user.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/user.go @@ -103,6 +103,7 @@ func (client UserClient) CreateOrUpdate(ctx context.Context, resourceGroupName s result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -206,6 +207,7 @@ func (client UserClient) Delete(ctx context.Context, resourceGroupName string, s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Delete", resp, "Failure responding to request") + return } return @@ -306,6 +308,7 @@ func (client UserClient) GenerateSsoURL(ctx context.Context, resourceGroupName s result, err = client.GenerateSsoURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GenerateSsoURL", resp, "Failure responding to request") + return } return @@ -394,6 +397,7 @@ func (client UserClient) Get(ctx context.Context, resourceGroupName string, serv result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Get", resp, "Failure responding to request") + return } return @@ -482,6 +486,7 @@ func (client UserClient) GetEntityTag(ctx context.Context, resourceGroupName str result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -573,6 +578,7 @@ func (client UserClient) GetSharedAccessToken(ctx context.Context, resourceGroup result, err = client.GetSharedAccessTokenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GetSharedAccessToken", resp, "Failure responding to request") + return } return @@ -677,6 +683,7 @@ func (client UserClient) ListByService(ctx context.Context, resourceGroupName st result.uc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "ListByService", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -753,6 +760,7 @@ func (client UserClient) listByServiceNextResults(ctx context.Context, lastResul result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -819,6 +827,7 @@ func (client UserClient) Update(ctx context.Context, resourceGroupName string, s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/userconfirmationpassword.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/userconfirmationpassword.go index 101849f7b4dc..8406e204718a 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/userconfirmationpassword.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/userconfirmationpassword.go @@ -88,6 +88,7 @@ func (client UserConfirmationPasswordClient) SendMethod(ctx context.Context, res result, err = client.SendMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserConfirmationPasswordClient", "SendMethod", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/usergroup.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/usergroup.go index 4aa3efdd569b..0cc79e951b9d 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/usergroup.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/usergroup.go @@ -99,6 +99,7 @@ func (client UserGroupClient) List(ctx context.Context, resourceGroupName string result.gc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserGroupClient", "List", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -173,6 +174,7 @@ func (client UserGroupClient) listNextResults(ctx context.Context, lastResults G result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserGroupClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/useridentities.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/useridentities.go index 23416f7a0fda..1b955f03ffe0 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/useridentities.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/useridentities.go @@ -86,6 +86,7 @@ func (client UserIdentitiesClient) List(ctx context.Context, resourceGroupName s result.uic, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserIdentitiesClient", "List", resp, "Failure responding to request") + return } if result.uic.hasNextLink() && result.uic.IsEmpty() { err = result.NextWithContext(ctx) @@ -151,6 +152,7 @@ func (client UserIdentitiesClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserIdentitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/usersubscription.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/usersubscription.go index dcb680588a61..8d1e459dbdf0 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/usersubscription.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/usersubscription.go @@ -104,6 +104,7 @@ func (client UserSubscriptionClient) List(ctx context.Context, resourceGroupName result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserSubscriptionClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -178,6 +179,7 @@ func (client UserSubscriptionClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserSubscriptionClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/api.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/api.go index 8b3c723c2e09..f7ffa289cb9b 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/api.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/api.go @@ -188,6 +188,7 @@ func (client APIClient) Delete(ctx context.Context, resourceGroupName string, se result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Delete", resp, "Failure responding to request") + return } return @@ -281,6 +282,7 @@ func (client APIClient) Get(ctx context.Context, resourceGroupName string, servi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Get", resp, "Failure responding to request") + return } return @@ -371,6 +373,7 @@ func (client APIClient) GetEntityTag(ctx context.Context, resourceGroupName stri result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -472,6 +475,7 @@ func (client APIClient) ListByService(ctx context.Context, resourceGroupName str result.ac, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "ListByService", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -551,6 +555,7 @@ func (client APIClient) listByServiceNextResults(ctx context.Context, lastResult result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +635,7 @@ func (client APIClient) ListByTags(ctx context.Context, resourceGroupName string result.trc, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "ListByTags", resp, "Failure responding to request") + return } if result.trc.hasNextLink() && result.trc.IsEmpty() { err = result.NextWithContext(ctx) @@ -706,6 +712,7 @@ func (client APIClient) listByTagsNextResults(ctx context.Context, lastResults T result, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "listByTagsNextResults", resp, "Failure responding to next results request") + return } return } @@ -774,6 +781,7 @@ func (client APIClient) Update(ctx context.Context, resourceGroupName string, se result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/apidiagnostic.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/apidiagnostic.go index 2dd4eea2a27d..029b9410b4c7 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/apidiagnostic.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/apidiagnostic.go @@ -130,6 +130,7 @@ func (client APIDiagnosticClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -232,6 +233,7 @@ func (client APIDiagnosticClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Delete", resp, "Failure responding to request") + return } return @@ -326,6 +328,7 @@ func (client APIDiagnosticClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Get", resp, "Failure responding to request") + return } return @@ -420,6 +423,7 @@ func (client APIDiagnosticClient) GetEntityTag(ctx context.Context, resourceGrou result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -520,6 +524,7 @@ func (client APIDiagnosticClient) ListByService(ctx context.Context, resourceGro result.dc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "ListByService", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -594,6 +599,7 @@ func (client APIDiagnosticClient) listByServiceNextResults(ctx context.Context, result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -665,6 +671,7 @@ func (client APIDiagnosticClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/apiexport.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/apiexport.go index c45d5ff8daf9..21bce31ad44a 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/apiexport.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/apiexport.go @@ -90,6 +90,7 @@ func (client APIExportClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIExportClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/apiissue.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/apiissue.go index c2547c714784..158384e1b3cc 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/apiissue.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/apiissue.go @@ -98,6 +98,7 @@ func (client APIIssueClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -200,6 +201,7 @@ func (client APIIssueClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Delete", resp, "Failure responding to request") + return } return @@ -295,6 +297,7 @@ func (client APIIssueClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +395,7 @@ func (client APIIssueClient) GetEntityTag(ctx context.Context, resourceGroupName result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -494,6 +498,7 @@ func (client APIIssueClient) ListByService(ctx context.Context, resourceGroupNam result.ic, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "ListByService", resp, "Failure responding to request") + return } if result.ic.hasNextLink() && result.ic.IsEmpty() { err = result.NextWithContext(ctx) @@ -571,6 +576,7 @@ func (client APIIssueClient) listByServiceNextResults(ctx context.Context, lastR result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -642,6 +648,7 @@ func (client APIIssueClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/apiissueattachment.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/apiissueattachment.go index 9e617e8dae21..eeddcca6de21 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/apiissueattachment.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/apiissueattachment.go @@ -104,6 +104,7 @@ func (client APIIssueAttachmentClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -212,6 +213,7 @@ func (client APIIssueAttachmentClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "Delete", resp, "Failure responding to request") + return } return @@ -312,6 +314,7 @@ func (client APIIssueAttachmentClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "Get", resp, "Failure responding to request") + return } return @@ -412,6 +415,7 @@ func (client APIIssueAttachmentClient) GetEntityTag(ctx context.Context, resourc result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -519,6 +523,7 @@ func (client APIIssueAttachmentClient) ListByService(ctx context.Context, resour result.iac, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "ListByService", resp, "Failure responding to request") + return } if result.iac.hasNextLink() && result.iac.IsEmpty() { err = result.NextWithContext(ctx) @@ -594,6 +599,7 @@ func (client APIIssueAttachmentClient) listByServiceNextResults(ctx context.Cont result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/apiissuecomment.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/apiissuecomment.go index 5b7b1e8e681b..47429f163e23 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/apiissuecomment.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/apiissuecomment.go @@ -102,6 +102,7 @@ func (client APIIssueCommentClient) CreateOrUpdate(ctx context.Context, resource result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -210,6 +211,7 @@ func (client APIIssueCommentClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "Delete", resp, "Failure responding to request") + return } return @@ -310,6 +312,7 @@ func (client APIIssueCommentClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "Get", resp, "Failure responding to request") + return } return @@ -410,6 +413,7 @@ func (client APIIssueCommentClient) GetEntityTag(ctx context.Context, resourceGr result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -517,6 +521,7 @@ func (client APIIssueCommentClient) ListByService(ctx context.Context, resourceG result.icc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "ListByService", resp, "Failure responding to request") + return } if result.icc.hasNextLink() && result.icc.IsEmpty() { err = result.NextWithContext(ctx) @@ -592,6 +597,7 @@ func (client APIIssueCommentClient) listByServiceNextResults(ctx context.Context result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/apioperation.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/apioperation.go index f037c68db724..ad3e5307fc49 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/apioperation.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/apioperation.go @@ -106,6 +106,7 @@ func (client APIOperationClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -210,6 +211,7 @@ func (client APIOperationClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Delete", resp, "Failure responding to request") + return } return @@ -306,6 +308,7 @@ func (client APIOperationClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Get", resp, "Failure responding to request") + return } return @@ -402,6 +405,7 @@ func (client APIOperationClient) GetEntityTag(ctx context.Context, resourceGroup result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -509,6 +513,7 @@ func (client APIOperationClient) ListByAPI(ctx context.Context, resourceGroupNam result.oc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "ListByAPI", resp, "Failure responding to request") + return } if result.oc.hasNextLink() && result.oc.IsEmpty() { err = result.NextWithContext(ctx) @@ -586,6 +591,7 @@ func (client APIOperationClient) listByAPINextResults(ctx context.Context, lastR result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } @@ -659,6 +665,7 @@ func (client APIOperationClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/apioperationpolicy.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/apioperationpolicy.go index 01a79c9960a2..3012e41cd2f4 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/apioperationpolicy.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/apioperationpolicy.go @@ -98,6 +98,7 @@ func (client APIOperationPolicyClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -203,6 +204,7 @@ func (client APIOperationPolicyClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -301,6 +303,7 @@ func (client APIOperationPolicyClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -403,6 +406,7 @@ func (client APIOperationPolicyClient) GetEntityTag(ctx context.Context, resourc result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -499,6 +503,7 @@ func (client APIOperationPolicyClient) ListByOperation(ctx context.Context, reso result, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "ListByOperation", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/apipolicy.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/apipolicy.go index c20eeecca9c8..edac3132d5b7 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/apipolicy.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/apipolicy.go @@ -92,6 +92,7 @@ func (client APIPolicyClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -191,6 +192,7 @@ func (client APIPolicyClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -283,6 +285,7 @@ func (client APIPolicyClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -379,6 +382,7 @@ func (client APIPolicyClient) GetEntityTag(ctx context.Context, resourceGroupNam result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -469,6 +473,7 @@ func (client APIPolicyClient) ListByAPI(ctx context.Context, resourceGroupName s result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "ListByAPI", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/apiproduct.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/apiproduct.go index 037bc05f6609..9146b4c979b0 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/apiproduct.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/apiproduct.go @@ -97,6 +97,7 @@ func (client APIProductClient) ListByApis(ctx context.Context, resourceGroupName result.pc, err = client.ListByApisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIProductClient", "ListByApis", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -171,6 +172,7 @@ func (client APIProductClient) listByApisNextResults(ctx context.Context, lastRe result, err = client.ListByApisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIProductClient", "listByApisNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/apirelease.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/apirelease.go index f0d797931d67..23ef906a1697 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/apirelease.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/apirelease.go @@ -92,6 +92,7 @@ func (client APIReleaseClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -194,6 +195,7 @@ func (client APIReleaseClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Delete", resp, "Failure responding to request") + return } return @@ -288,6 +290,7 @@ func (client APIReleaseClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Get", resp, "Failure responding to request") + return } return @@ -382,6 +385,7 @@ func (client APIReleaseClient) GetEntityTag(ctx context.Context, resourceGroupNa result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -484,6 +488,7 @@ func (client APIReleaseClient) ListByService(ctx context.Context, resourceGroupN result.arc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "ListByService", resp, "Failure responding to request") + return } if result.arc.hasNextLink() && result.arc.IsEmpty() { err = result.NextWithContext(ctx) @@ -558,6 +563,7 @@ func (client APIReleaseClient) listByServiceNextResults(ctx context.Context, las result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -629,6 +635,7 @@ func (client APIReleaseClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/apirevision.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/apirevision.go index 9ab764487da7..1fefe5d723fc 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/apirevision.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/apirevision.go @@ -97,6 +97,7 @@ func (client APIRevisionClient) ListByService(ctx context.Context, resourceGroup result.arc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIRevisionClient", "ListByService", resp, "Failure responding to request") + return } if result.arc.hasNextLink() && result.arc.IsEmpty() { err = result.NextWithContext(ctx) @@ -171,6 +172,7 @@ func (client APIRevisionClient) listByServiceNextResults(ctx context.Context, la result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIRevisionClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/apischema.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/apischema.go index ab7fe5d74683..aae33660b10e 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/apischema.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/apischema.go @@ -202,6 +202,7 @@ func (client APISchemaClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "Delete", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client APISchemaClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "Get", resp, "Failure responding to request") + return } return @@ -397,6 +399,7 @@ func (client APISchemaClient) GetEntityTag(ctx context.Context, resourceGroupNam result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -499,6 +502,7 @@ func (client APISchemaClient) ListByAPI(ctx context.Context, resourceGroupName s result.sc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "ListByAPI", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -573,6 +577,7 @@ func (client APISchemaClient) listByAPINextResults(ctx context.Context, lastResu result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/apitagdescription.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/apitagdescription.go index 8fa5172fbe4a..8fbc212bdca3 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/apitagdescription.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/apitagdescription.go @@ -101,6 +101,7 @@ func (client APITagDescriptionClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APITagDescriptionClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -206,6 +207,7 @@ func (client APITagDescriptionClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APITagDescriptionClient", "Delete", resp, "Failure responding to request") + return } return @@ -303,6 +305,7 @@ func (client APITagDescriptionClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APITagDescriptionClient", "Get", resp, "Failure responding to request") + return } return @@ -400,6 +403,7 @@ func (client APITagDescriptionClient) GetEntityTag(ctx context.Context, resource result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APITagDescriptionClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -504,6 +508,7 @@ func (client APITagDescriptionClient) ListByService(ctx context.Context, resourc result.tdc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APITagDescriptionClient", "ListByService", resp, "Failure responding to request") + return } if result.tdc.hasNextLink() && result.tdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -578,6 +583,7 @@ func (client APITagDescriptionClient) listByServiceNextResults(ctx context.Conte result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APITagDescriptionClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/apiversionset.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/apiversionset.go index 61cbcf8607ce..5718d6f9e481 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/apiversionset.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/apiversionset.go @@ -95,6 +95,7 @@ func (client APIVersionSetClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client APIVersionSetClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Delete", resp, "Failure responding to request") + return } return @@ -281,6 +283,7 @@ func (client APIVersionSetClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client APIVersionSetClient) GetEntityTag(ctx context.Context, resourceGrou result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -464,6 +468,7 @@ func (client APIVersionSetClient) ListByService(ctx context.Context, resourceGro result.avsc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "ListByService", resp, "Failure responding to request") + return } if result.avsc.hasNextLink() && result.avsc.IsEmpty() { err = result.NextWithContext(ctx) @@ -537,6 +542,7 @@ func (client APIVersionSetClient) listByServiceNextResults(ctx context.Context, result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -604,6 +610,7 @@ func (client APIVersionSetClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/authorizationserver.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/authorizationserver.go index 73040a37b6fb..af8fcbfbaa71 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/authorizationserver.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/authorizationserver.go @@ -100,6 +100,7 @@ func (client AuthorizationServerClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -197,6 +198,7 @@ func (client AuthorizationServerClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Delete", resp, "Failure responding to request") + return } return @@ -286,6 +288,7 @@ func (client AuthorizationServerClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Get", resp, "Failure responding to request") + return } return @@ -375,6 +378,7 @@ func (client AuthorizationServerClient) GetEntityTag(ctx context.Context, resour result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -471,6 +475,7 @@ func (client AuthorizationServerClient) ListByService(ctx context.Context, resou result.asc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "ListByService", resp, "Failure responding to request") + return } if result.asc.hasNextLink() && result.asc.IsEmpty() { err = result.NextWithContext(ctx) @@ -544,6 +549,7 @@ func (client AuthorizationServerClient) listByServiceNextResults(ctx context.Con result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -608,6 +614,7 @@ func (client AuthorizationServerClient) ListSecrets(ctx context.Context, resourc result, err = client.ListSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "ListSecrets", resp, "Failure responding to request") + return } return @@ -700,6 +707,7 @@ func (client AuthorizationServerClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/backend.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/backend.go index a250f0740446..46cf82eeecc4 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/backend.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/backend.go @@ -94,6 +94,7 @@ func (client BackendClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client BackendClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Delete", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client BackendClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Get", resp, "Failure responding to request") + return } return @@ -366,6 +369,7 @@ func (client BackendClient) GetEntityTag(ctx context.Context, resourceGroupName result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -463,6 +467,7 @@ func (client BackendClient) ListByService(ctx context.Context, resourceGroupName result.bc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "ListByService", resp, "Failure responding to request") + return } if result.bc.hasNextLink() && result.bc.IsEmpty() { err = result.NextWithContext(ctx) @@ -536,6 +541,7 @@ func (client BackendClient) listByServiceNextResults(ctx context.Context, lastRe result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -601,6 +607,7 @@ func (client BackendClient) Reconnect(ctx context.Context, resourceGroupName str result, err = client.ReconnectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Reconnect", resp, "Failure responding to request") + return } return @@ -696,6 +703,7 @@ func (client BackendClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/cache.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/cache.go index 3630d7cc83e1..2dd5218041c3 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/cache.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/cache.go @@ -98,6 +98,7 @@ func (client CacheClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -196,6 +197,7 @@ func (client CacheClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "Delete", resp, "Failure responding to request") + return } return @@ -286,6 +288,7 @@ func (client CacheClient) Get(ctx context.Context, resourceGroupName string, ser result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "Get", resp, "Failure responding to request") + return } return @@ -376,6 +379,7 @@ func (client CacheClient) GetEntityTag(ctx context.Context, resourceGroupName st result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -468,6 +472,7 @@ func (client CacheClient) ListByService(ctx context.Context, resourceGroupName s result.cc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "ListByService", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -538,6 +543,7 @@ func (client CacheClient) listByServiceNextResults(ctx context.Context, lastResu result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -606,6 +612,7 @@ func (client CacheClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/certificate.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/certificate.go index 0c420f2b2ca0..263e52845aae 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/certificate.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/certificate.go @@ -94,6 +94,7 @@ func (client CertificateClient) CreateOrUpdate(ctx context.Context, resourceGrou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client CertificateClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "Delete", resp, "Failure responding to request") + return } return @@ -282,6 +284,7 @@ func (client CertificateClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -372,6 +375,7 @@ func (client CertificateClient) GetEntityTag(ctx context.Context, resourceGroupN result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -470,6 +474,7 @@ func (client CertificateClient) ListByService(ctx context.Context, resourceGroup result.cc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "ListByService", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -543,6 +548,7 @@ func (client CertificateClient) listByServiceNextResults(ctx context.Context, la result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/contentitem.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/contentitem.go index a99768648b2e..9eeb9d3c1489 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/contentitem.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/contentitem.go @@ -89,6 +89,7 @@ func (client ContentItemClient) CreateOrUpdate(ctx context.Context, resourceGrou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ContentItemClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -182,6 +183,7 @@ func (client ContentItemClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ContentItemClient", "Delete", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client ContentItemClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ContentItemClient", "Get", resp, "Failure responding to request") + return } return @@ -367,6 +370,7 @@ func (client ContentItemClient) GetEntityTag(ctx context.Context, resourceGroupN result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ContentItemClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -456,6 +460,7 @@ func (client ContentItemClient) ListByService(ctx context.Context, resourceGroup result.cic, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ContentItemClient", "ListByService", resp, "Failure responding to request") + return } if result.cic.hasNextLink() && result.cic.IsEmpty() { err = result.NextWithContext(ctx) @@ -521,6 +526,7 @@ func (client ContentItemClient) listByServiceNextResults(ctx context.Context, la result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ContentItemClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/contenttype.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/contenttype.go index 32b02d23e29f..3b24cada50ba 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/contenttype.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/contenttype.go @@ -85,6 +85,7 @@ func (client ContentTypeClient) CreateOrUpdate(ctx context.Context, resourceGrou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ContentTypeClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client ContentTypeClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ContentTypeClient", "Delete", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client ContentTypeClient) GetEntityTag(ctx context.Context, resourceGroupN result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ContentTypeClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -344,6 +347,7 @@ func (client ContentTypeClient) ListByService(ctx context.Context, resourceGroup result.ctc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ContentTypeClient", "ListByService", resp, "Failure responding to request") + return } if result.ctc.hasNextLink() && result.ctc.IsEmpty() { err = result.NextWithContext(ctx) @@ -408,6 +412,7 @@ func (client ContentTypeClient) listByServiceNextResults(ctx context.Context, la result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ContentTypeClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/contenttypes.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/contenttypes.go index 3f200a572036..45d2fb9c428c 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/contenttypes.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/contenttypes.go @@ -85,6 +85,7 @@ func (client ContentTypesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ContentTypesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/delegationsettings.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/delegationsettings.go index 8cab9b6614a7..88dbd118b8ee 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/delegationsettings.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/delegationsettings.go @@ -84,6 +84,7 @@ func (client DelegationSettingsClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client DelegationSettingsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -256,6 +258,7 @@ func (client DelegationSettingsClient) GetEntityTag(ctx context.Context, resourc result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -338,6 +341,7 @@ func (client DelegationSettingsClient) ListSecrets(ctx context.Context, resource result, err = client.ListSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "ListSecrets", resp, "Failure responding to request") + return } return @@ -424,6 +428,7 @@ func (client DelegationSettingsClient) Update(ctx context.Context, resourceGroup result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/diagnostic.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/diagnostic.go index 8c22ae23e135..9d3c452743f3 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/diagnostic.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/diagnostic.go @@ -126,6 +126,7 @@ func (client DiagnosticClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -223,6 +224,7 @@ func (client DiagnosticClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Delete", resp, "Failure responding to request") + return } return @@ -312,6 +314,7 @@ func (client DiagnosticClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Get", resp, "Failure responding to request") + return } return @@ -401,6 +404,7 @@ func (client DiagnosticClient) GetEntityTag(ctx context.Context, resourceGroupNa result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -496,6 +500,7 @@ func (client DiagnosticClient) ListByService(ctx context.Context, resourceGroupN result.dc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "ListByService", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -569,6 +574,7 @@ func (client DiagnosticClient) listByServiceNextResults(ctx context.Context, las result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -636,6 +642,7 @@ func (client DiagnosticClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/emailtemplate.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/emailtemplate.go index a59e2905e771..2cd0e658e225 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/emailtemplate.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/emailtemplate.go @@ -93,6 +93,7 @@ func (client EmailTemplateClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client EmailTemplateClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Delete", resp, "Failure responding to request") + return } return @@ -271,6 +273,7 @@ func (client EmailTemplateClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Get", resp, "Failure responding to request") + return } return @@ -356,6 +359,7 @@ func (client EmailTemplateClient) GetEntityTag(ctx context.Context, resourceGrou result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -451,6 +455,7 @@ func (client EmailTemplateClient) ListByService(ctx context.Context, resourceGro result.etc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "ListByService", resp, "Failure responding to request") + return } if result.etc.hasNextLink() && result.etc.IsEmpty() { err = result.NextWithContext(ctx) @@ -524,6 +529,7 @@ func (client EmailTemplateClient) listByServiceNextResults(ctx context.Context, result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -587,6 +593,7 @@ func (client EmailTemplateClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/gateway.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/gateway.go index 41689b80e6c3..48f89fa608e7 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/gateway.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/gateway.go @@ -102,6 +102,7 @@ func (client GatewayClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -199,6 +200,7 @@ func (client GatewayClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayClient", "Delete", resp, "Failure responding to request") + return } return @@ -290,6 +292,7 @@ func (client GatewayClient) GenerateToken(ctx context.Context, resourceGroupName result, err = client.GenerateTokenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayClient", "GenerateToken", resp, "Failure responding to request") + return } return @@ -381,6 +384,7 @@ func (client GatewayClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayClient", "Get", resp, "Failure responding to request") + return } return @@ -470,6 +474,7 @@ func (client GatewayClient) GetEntityTag(ctx context.Context, resourceGroupName result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -562,6 +567,7 @@ func (client GatewayClient) ListByService(ctx context.Context, resourceGroupName result.gc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayClient", "ListByService", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -632,6 +638,7 @@ func (client GatewayClient) listByServiceNextResults(ctx context.Context, lastRe result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -696,6 +703,7 @@ func (client GatewayClient) ListKeys(ctx context.Context, resourceGroupName stri result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -785,6 +793,7 @@ func (client GatewayClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -877,6 +886,7 @@ func (client GatewayClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/gatewayapi.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/gatewayapi.go index 925998d0cd77..05246bf1f87b 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/gatewayapi.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/gatewayapi.go @@ -90,6 +90,7 @@ func (client GatewayAPIClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayAPIClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -189,6 +190,7 @@ func (client GatewayAPIClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayAPIClient", "Delete", resp, "Failure responding to request") + return } return @@ -282,6 +284,7 @@ func (client GatewayAPIClient) GetEntityTag(ctx context.Context, resourceGroupNa result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayAPIClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -380,6 +383,7 @@ func (client GatewayAPIClient) ListByService(ctx context.Context, resourceGroupN result.ac, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayAPIClient", "ListByService", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -451,6 +455,7 @@ func (client GatewayAPIClient) listByServiceNextResults(ctx context.Context, las result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayAPIClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/gatewayhostnameconfiguration.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/gatewayhostnameconfiguration.go index d4ee075aca6c..e593c9ffe424 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/gatewayhostnameconfiguration.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/gatewayhostnameconfiguration.go @@ -91,6 +91,7 @@ func (client GatewayHostnameConfigurationClient) CreateOrUpdate(ctx context.Cont result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayHostnameConfigurationClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -187,6 +188,7 @@ func (client GatewayHostnameConfigurationClient) Delete(ctx context.Context, res result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayHostnameConfigurationClient", "Delete", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client GatewayHostnameConfigurationClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayHostnameConfigurationClient", "Get", resp, "Failure responding to request") + return } return @@ -374,6 +377,7 @@ func (client GatewayHostnameConfigurationClient) GetEntityTag(ctx context.Contex result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayHostnameConfigurationClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -472,6 +476,7 @@ func (client GatewayHostnameConfigurationClient) ListByService(ctx context.Conte result.ghcc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayHostnameConfigurationClient", "ListByService", resp, "Failure responding to request") + return } if result.ghcc.hasNextLink() && result.ghcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -543,6 +548,7 @@ func (client GatewayHostnameConfigurationClient) listByServiceNextResults(ctx co result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayHostnameConfigurationClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/group.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/group.go index 507cb2cc0362..450db713c28e 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/group.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/group.go @@ -94,6 +94,7 @@ func (client GroupClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client GroupClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Delete", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client GroupClient) Get(ctx context.Context, resourceGroupName string, ser result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Get", resp, "Failure responding to request") + return } return @@ -366,6 +369,7 @@ func (client GroupClient) GetEntityTag(ctx context.Context, resourceGroupName st result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -463,6 +467,7 @@ func (client GroupClient) ListByService(ctx context.Context, resourceGroupName s result.gc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "ListByService", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -536,6 +541,7 @@ func (client GroupClient) listByServiceNextResults(ctx context.Context, lastResu result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -602,6 +608,7 @@ func (client GroupClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/groupuser.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/groupuser.go index 0cba393335de..c66061d29be5 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/groupuser.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/groupuser.go @@ -89,6 +89,7 @@ func (client GroupUserClient) CheckEntityExists(ctx context.Context, resourceGro result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client GroupUserClient) Create(ctx context.Context, resourceGroupName stri result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "Create", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client GroupUserClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "Delete", resp, "Failure responding to request") + return } return @@ -378,6 +381,7 @@ func (client GroupUserClient) List(ctx context.Context, resourceGroupName string result.uc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "List", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -452,6 +456,7 @@ func (client GroupUserClient) listNextResults(ctx context.Context, lastResults U result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/identityprovider.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/identityprovider.go index 8fd901bf68cc..1ff6c1f896b0 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/identityprovider.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/identityprovider.go @@ -92,6 +92,7 @@ func (client IdentityProviderClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client IdentityProviderClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Delete", resp, "Failure responding to request") + return } return @@ -270,6 +272,7 @@ func (client IdentityProviderClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +358,7 @@ func (client IdentityProviderClient) GetEntityTag(ctx context.Context, resourceG result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -439,6 +443,7 @@ func (client IdentityProviderClient) ListByService(ctx context.Context, resource result.ipl, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "ListByService", resp, "Failure responding to request") + return } if result.ipl.hasNextLink() && result.ipl.IsEmpty() { err = result.NextWithContext(ctx) @@ -503,6 +508,7 @@ func (client IdentityProviderClient) listByServiceNextResults(ctx context.Contex result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -563,6 +569,7 @@ func (client IdentityProviderClient) ListSecrets(ctx context.Context, resourceGr result, err = client.ListSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "ListSecrets", resp, "Failure responding to request") + return } return @@ -651,6 +658,7 @@ func (client IdentityProviderClient) Update(ctx context.Context, resourceGroupNa result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/issue.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/issue.go index d2d1047d64fe..c059026fa47f 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/issue.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/issue.go @@ -86,6 +86,7 @@ func (client IssueClient) Get(ctx context.Context, resourceGroupName string, ser result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IssueClient", "Get", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client IssueClient) ListByService(ctx context.Context, resourceGroupName s result.ic, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IssueClient", "ListByService", resp, "Failure responding to request") + return } if result.ic.hasNextLink() && result.ic.IsEmpty() { err = result.NextWithContext(ctx) @@ -259,6 +261,7 @@ func (client IssueClient) listByServiceNextResults(ctx context.Context, lastResu result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IssueClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/logger.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/logger.go index 7256eeb2865c..26fb13853693 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/logger.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/logger.go @@ -93,6 +93,7 @@ func (client LoggerClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client LoggerClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Delete", resp, "Failure responding to request") + return } return @@ -281,6 +283,7 @@ func (client LoggerClient) Get(ctx context.Context, resourceGroupName string, se result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +372,7 @@ func (client LoggerClient) GetEntityTag(ctx context.Context, resourceGroupName s result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -466,6 +470,7 @@ func (client LoggerClient) ListByService(ctx context.Context, resourceGroupName result.lc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "ListByService", resp, "Failure responding to request") + return } if result.lc.hasNextLink() && result.lc.IsEmpty() { err = result.NextWithContext(ctx) @@ -539,6 +544,7 @@ func (client LoggerClient) listByServiceNextResults(ctx context.Context, lastRes result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -605,6 +611,7 @@ func (client LoggerClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/namedvalue.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/namedvalue.go index 1ba6f3b1fcf6..1b684b5323e7 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/namedvalue.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/namedvalue.go @@ -195,6 +195,7 @@ func (client NamedValueClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NamedValueClient", "Delete", resp, "Failure responding to request") + return } return @@ -283,6 +284,7 @@ func (client NamedValueClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NamedValueClient", "Get", resp, "Failure responding to request") + return } return @@ -371,6 +373,7 @@ func (client NamedValueClient) GetEntityTag(ctx context.Context, resourceGroupNa result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NamedValueClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -467,6 +470,7 @@ func (client NamedValueClient) ListByService(ctx context.Context, resourceGroupN result.nvc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NamedValueClient", "ListByService", resp, "Failure responding to request") + return } if result.nvc.hasNextLink() && result.nvc.IsEmpty() { err = result.NextWithContext(ctx) @@ -540,6 +544,7 @@ func (client NamedValueClient) listByServiceNextResults(ctx context.Context, las result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NamedValueClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -603,6 +608,7 @@ func (client NamedValueClient) ListValue(ctx context.Context, resourceGroupName result, err = client.ListValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NamedValueClient", "ListValue", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/networkstatus.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/networkstatus.go index eea58b6e9a72..3252a4c6e12c 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/networkstatus.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/networkstatus.go @@ -86,6 +86,7 @@ func (client NetworkStatusClient) ListByLocation(ctx context.Context, resourceGr result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NetworkStatusClient", "ListByLocation", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client NetworkStatusClient) ListByService(ctx context.Context, resourceGro result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NetworkStatusClient", "ListByService", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/notification.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/notification.go index 2efab4638376..d1413fff2815 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/notification.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/notification.go @@ -83,6 +83,7 @@ func (client NotificationClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client NotificationClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "Get", resp, "Failure responding to request") + return } return @@ -265,6 +267,7 @@ func (client NotificationClient) ListByService(ctx context.Context, resourceGrou result.nc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "ListByService", resp, "Failure responding to request") + return } if result.nc.hasNextLink() && result.nc.IsEmpty() { err = result.NextWithContext(ctx) @@ -335,6 +338,7 @@ func (client NotificationClient) listByServiceNextResults(ctx context.Context, l result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/notificationrecipientemail.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/notificationrecipientemail.go index 2b97ece40c97..1515c75df81b 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/notificationrecipientemail.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/notificationrecipientemail.go @@ -84,6 +84,7 @@ func (client NotificationRecipientEmailClient) CheckEntityExists(ctx context.Con result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client NotificationRecipientEmailClient) CreateOrUpdate(ctx context.Contex result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -257,6 +259,7 @@ func (client NotificationRecipientEmailClient) Delete(ctx context.Context, resou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "Delete", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client NotificationRecipientEmailClient) ListByNotification(ctx context.Co result, err = client.ListByNotificationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "ListByNotification", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/notificationrecipientuser.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/notificationrecipientuser.go index dea2a81f1994..7d6c67eca981 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/notificationrecipientuser.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/notificationrecipientuser.go @@ -87,6 +87,7 @@ func (client NotificationRecipientUserClient) CheckEntityExists(ctx context.Cont result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client NotificationRecipientUserClient) CreateOrUpdate(ctx context.Context result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -266,6 +268,7 @@ func (client NotificationRecipientUserClient) Delete(ctx context.Context, resour result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "Delete", resp, "Failure responding to request") + return } return @@ -351,6 +354,7 @@ func (client NotificationRecipientUserClient) ListByNotification(ctx context.Con result, err = client.ListByNotificationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "ListByNotification", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/openidconnectprovider.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/openidconnectprovider.go index 45c6a9f4818d..7a7fc791c571 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/openidconnectprovider.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/openidconnectprovider.go @@ -95,6 +95,7 @@ func (client OpenIDConnectProviderClient) CreateOrUpdate(ctx context.Context, re result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -191,6 +192,7 @@ func (client OpenIDConnectProviderClient) Delete(ctx context.Context, resourceGr result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Delete", resp, "Failure responding to request") + return } return @@ -279,6 +281,7 @@ func (client OpenIDConnectProviderClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Get", resp, "Failure responding to request") + return } return @@ -367,6 +370,7 @@ func (client OpenIDConnectProviderClient) GetEntityTag(ctx context.Context, reso result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -463,6 +467,7 @@ func (client OpenIDConnectProviderClient) ListByService(ctx context.Context, res result.oicpc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "ListByService", resp, "Failure responding to request") + return } if result.oicpc.hasNextLink() && result.oicpc.IsEmpty() { err = result.NextWithContext(ctx) @@ -536,6 +541,7 @@ func (client OpenIDConnectProviderClient) listByServiceNextResults(ctx context.C result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -599,6 +605,7 @@ func (client OpenIDConnectProviderClient) ListSecrets(ctx context.Context, resou result, err = client.ListSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "ListSecrets", resp, "Failure responding to request") + return } return @@ -690,6 +697,7 @@ func (client OpenIDConnectProviderClient) Update(ctx context.Context, resourceGr result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/operation.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/operation.go index 6fca5a937148..89fba12772cd 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/operation.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/operation.go @@ -105,6 +105,7 @@ func (client OperationClient) ListByTags(ctx context.Context, resourceGroupName result.trc, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OperationClient", "ListByTags", resp, "Failure responding to request") + return } if result.trc.hasNextLink() && result.trc.IsEmpty() { err = result.NextWithContext(ctx) @@ -182,6 +183,7 @@ func (client OperationClient) listByTagsNextResults(ctx context.Context, lastRes result, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OperationClient", "listByTagsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/operations.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/operations.go index 76411741bd62..2368cf564ec2 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/operations.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/policy.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/policy.go index fa00dc28a50b..d8034bf0566a 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/policy.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/policy.go @@ -86,6 +86,7 @@ func (client PolicyClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client PolicyClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -263,6 +265,7 @@ func (client PolicyClient) Get(ctx context.Context, resourceGroupName string, se result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -352,6 +355,7 @@ func (client PolicyClient) GetEntityTag(ctx context.Context, resourceGroupName s result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -435,6 +439,7 @@ func (client PolicyClient) ListByService(ctx context.Context, resourceGroupName result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "ListByService", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/policydescription.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/policydescription.go index 73f727a4a1bf..2dc80ef8ca91 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/policydescription.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/policydescription.go @@ -83,6 +83,7 @@ func (client PolicyDescriptionClient) ListByService(ctx context.Context, resourc result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyDescriptionClient", "ListByService", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/product.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/product.go index 11f4dba381d1..526164483097 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/product.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/product.go @@ -94,6 +94,7 @@ func (client ProductClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -191,6 +192,7 @@ func (client ProductClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Delete", resp, "Failure responding to request") + return } return @@ -282,6 +284,7 @@ func (client ProductClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client ProductClient) GetEntityTag(ctx context.Context, resourceGroupName result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -472,6 +476,7 @@ func (client ProductClient) ListByService(ctx context.Context, resourceGroupName result.pc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "ListByService", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -551,6 +556,7 @@ func (client ProductClient) listByServiceNextResults(ctx context.Context, lastRe result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -627,6 +633,7 @@ func (client ProductClient) ListByTags(ctx context.Context, resourceGroupName st result.trc, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "ListByTags", resp, "Failure responding to request") + return } if result.trc.hasNextLink() && result.trc.IsEmpty() { err = result.NextWithContext(ctx) @@ -703,6 +710,7 @@ func (client ProductClient) listByTagsNextResults(ctx context.Context, lastResul result, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "listByTagsNextResults", resp, "Failure responding to next results request") + return } return } @@ -769,6 +777,7 @@ func (client ProductClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/productapi.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/productapi.go index d27140129e66..6bdac06536ba 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/productapi.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/productapi.go @@ -91,6 +91,7 @@ func (client ProductAPIClient) CheckEntityExists(ctx context.Context, resourceGr result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client ProductAPIClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client ProductAPIClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "Delete", resp, "Failure responding to request") + return } return @@ -384,6 +387,7 @@ func (client ProductAPIClient) ListByProduct(ctx context.Context, resourceGroupN result.ac, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "ListByProduct", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -458,6 +462,7 @@ func (client ProductAPIClient) listByProductNextResults(ctx context.Context, las result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/productgroup.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/productgroup.go index b9b62323d1a1..e679fd862809 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/productgroup.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/productgroup.go @@ -89,6 +89,7 @@ func (client ProductGroupClient) CheckEntityExists(ctx context.Context, resource result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client ProductGroupClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client ProductGroupClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "Delete", resp, "Failure responding to request") + return } return @@ -374,6 +377,7 @@ func (client ProductGroupClient) ListByProduct(ctx context.Context, resourceGrou result.gc, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "ListByProduct", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -448,6 +452,7 @@ func (client ProductGroupClient) listByProductNextResults(ctx context.Context, l result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/productpolicy.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/productpolicy.go index 8237bc6c9282..6abc854cbe94 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/productpolicy.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/productpolicy.go @@ -90,6 +90,7 @@ func (client ProductPolicyClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -187,6 +188,7 @@ func (client ProductPolicyClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -277,6 +279,7 @@ func (client ProductPolicyClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -371,6 +374,7 @@ func (client ProductPolicyClient) GetEntityTag(ctx context.Context, resourceGrou result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -459,6 +463,7 @@ func (client ProductPolicyClient) ListByProduct(ctx context.Context, resourceGro result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "ListByProduct", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/productsubscriptions.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/productsubscriptions.go index 162ae813643d..decbee0314eb 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/productsubscriptions.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/productsubscriptions.go @@ -104,6 +104,7 @@ func (client ProductSubscriptionsClient) List(ctx context.Context, resourceGroup result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductSubscriptionsClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -178,6 +179,7 @@ func (client ProductSubscriptionsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductSubscriptionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/quotabycounterkeys.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/quotabycounterkeys.go index 390102da1449..8f01aaf048f0 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/quotabycounterkeys.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/quotabycounterkeys.go @@ -87,6 +87,7 @@ func (client QuotaByCounterKeysClient) ListByService(ctx context.Context, resour result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByCounterKeysClient", "ListByService", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client QuotaByCounterKeysClient) Update(ctx context.Context, resourceGroup result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByCounterKeysClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/quotabyperiodkeys.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/quotabyperiodkeys.go index 4afbbd28bdd5..7ac0a4cef906 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/quotabyperiodkeys.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/quotabyperiodkeys.go @@ -88,6 +88,7 @@ func (client QuotaByPeriodKeysClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByPeriodKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client QuotaByPeriodKeysClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByPeriodKeysClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/region.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/region.go index ef0723157bfa..52c2b2cc47ac 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/region.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/region.go @@ -82,6 +82,7 @@ func (client RegionClient) ListByService(ctx context.Context, resourceGroupName result.rlr, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.RegionClient", "ListByService", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client RegionClient) listByServiceNextResults(ctx context.Context, lastRes result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.RegionClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/reports.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/reports.go index 6ff58f54ce88..fe88c19b8820 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/reports.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/reports.go @@ -92,6 +92,7 @@ func (client ReportsClient) ListByAPI(ctx context.Context, resourceGroupName str result.rc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByAPI", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -166,6 +167,7 @@ func (client ReportsClient) listByAPINextResults(ctx context.Context, lastResult result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } @@ -245,6 +247,7 @@ func (client ReportsClient) ListByGeo(ctx context.Context, resourceGroupName str result.rc, err = client.ListByGeoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByGeo", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -316,6 +319,7 @@ func (client ReportsClient) listByGeoNextResults(ctx context.Context, lastResult result, err = client.ListByGeoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByGeoNextResults", resp, "Failure responding to next results request") + return } return } @@ -397,6 +401,7 @@ func (client ReportsClient) ListByOperation(ctx context.Context, resourceGroupNa result.rc, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByOperation", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -471,6 +476,7 @@ func (client ReportsClient) listByOperationNextResults(ctx context.Context, last result, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByOperationNextResults", resp, "Failure responding to next results request") + return } return } @@ -551,6 +557,7 @@ func (client ReportsClient) ListByProduct(ctx context.Context, resourceGroupName result.rc, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByProduct", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -625,6 +632,7 @@ func (client ReportsClient) listByProductNextResults(ctx context.Context, lastRe result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } @@ -697,6 +705,7 @@ func (client ReportsClient) ListByRequest(ctx context.Context, resourceGroupName result, err = client.ListByRequestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByRequest", resp, "Failure responding to request") + return } return @@ -808,6 +817,7 @@ func (client ReportsClient) ListBySubscription(ctx context.Context, resourceGrou result.rc, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -882,6 +892,7 @@ func (client ReportsClient) listBySubscriptionNextResults(ctx context.Context, l result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -965,6 +976,7 @@ func (client ReportsClient) ListByTime(ctx context.Context, resourceGroupName st result.rc, err = client.ListByTimeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByTime", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1040,6 +1052,7 @@ func (client ReportsClient) listByTimeNextResults(ctx context.Context, lastResul result, err = client.ListByTimeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByTimeNextResults", resp, "Failure responding to next results request") + return } return } @@ -1121,6 +1134,7 @@ func (client ReportsClient) ListByUser(ctx context.Context, resourceGroupName st result.rc, err = client.ListByUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByUser", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1195,6 +1209,7 @@ func (client ReportsClient) listByUserNextResults(ctx context.Context, lastResul result, err = client.ListByUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByUserNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/service.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/service.go index db08fafa5a52..52c5484dc2ff 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/service.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/service.go @@ -262,6 +262,7 @@ func (client ServiceClient) CheckNameAvailability(ctx context.Context, parameter result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -526,6 +527,7 @@ func (client ServiceClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "Get", resp, "Failure responding to request") + return } return @@ -609,6 +611,7 @@ func (client ServiceClient) GetSsoToken(ctx context.Context, resourceGroupName s result, err = client.GetSsoTokenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "GetSsoToken", resp, "Failure responding to request") + return } return @@ -682,6 +685,7 @@ func (client ServiceClient) List(ctx context.Context) (result ServiceListResultP result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -744,6 +748,7 @@ func (client ServiceClient) listNextResults(ctx context.Context, lastResults Ser result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -795,6 +800,7 @@ func (client ServiceClient) ListByResourceGroup(ctx context.Context, resourceGro result.slr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -858,6 +864,7 @@ func (client ServiceClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/serviceskus.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/serviceskus.go index 685813876e5b..10df9c1fc7b4 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/serviceskus.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/serviceskus.go @@ -82,6 +82,7 @@ func (client ServiceSkusClient) ListAvailableServiceSkus(ctx context.Context, re result.rsr, err = client.ListAvailableServiceSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceSkusClient", "ListAvailableServiceSkus", resp, "Failure responding to request") + return } if result.rsr.hasNextLink() && result.rsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client ServiceSkusClient) listAvailableServiceSkusNextResults(ctx context. result, err = client.ListAvailableServiceSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceSkusClient", "listAvailableServiceSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/signinsettings.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/signinsettings.go index 215c7a09f74e..6c6fcb691f57 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/signinsettings.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/signinsettings.go @@ -83,6 +83,7 @@ func (client SignInSettingsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client SignInSettingsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -255,6 +257,7 @@ func (client SignInSettingsClient) GetEntityTag(ctx context.Context, resourceGro result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -340,6 +343,7 @@ func (client SignInSettingsClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/signupsettings.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/signupsettings.go index 4ceae49f67fe..7abd65751c79 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/signupsettings.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/signupsettings.go @@ -83,6 +83,7 @@ func (client SignUpSettingsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client SignUpSettingsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -255,6 +257,7 @@ func (client SignUpSettingsClient) GetEntityTag(ctx context.Context, resourceGro result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -340,6 +343,7 @@ func (client SignUpSettingsClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/subscription.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/subscription.go index f2b3ec852df5..6b82af897efb 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/subscription.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/subscription.go @@ -109,6 +109,7 @@ func (client SubscriptionClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -214,6 +215,7 @@ func (client SubscriptionClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Delete", resp, "Failure responding to request") + return } return @@ -303,6 +305,7 @@ func (client SubscriptionClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +395,7 @@ func (client SubscriptionClient) GetEntityTag(ctx context.Context, resourceGroup result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -493,6 +497,7 @@ func (client SubscriptionClient) List(ctx context.Context, resourceGroupName str result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -566,6 +571,7 @@ func (client SubscriptionClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +636,7 @@ func (client SubscriptionClient) ListSecrets(ctx context.Context, resourceGroupN result, err = client.ListSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "ListSecrets", resp, "Failure responding to request") + return } return @@ -719,6 +726,7 @@ func (client SubscriptionClient) RegeneratePrimaryKey(ctx context.Context, resou result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -807,6 +815,7 @@ func (client SubscriptionClient) RegenerateSecondaryKey(ctx context.Context, res result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return @@ -903,6 +912,7 @@ func (client SubscriptionClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/tag.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/tag.go index e668c91cc937..60a657509d83 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/tag.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/tag.go @@ -92,6 +92,7 @@ func (client TagClient) AssignToAPI(ctx context.Context, resourceGroupName strin result, err = client.AssignToAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToAPI", resp, "Failure responding to request") + return } return @@ -193,6 +194,7 @@ func (client TagClient) AssignToOperation(ctx context.Context, resourceGroupName result, err = client.AssignToOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToOperation", resp, "Failure responding to request") + return } return @@ -288,6 +290,7 @@ func (client TagClient) AssignToProduct(ctx context.Context, resourceGroupName s result, err = client.AssignToProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToProduct", resp, "Failure responding to request") + return } return @@ -387,6 +390,7 @@ func (client TagClient) CreateOrUpdate(ctx context.Context, resourceGroupName st result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -484,6 +488,7 @@ func (client TagClient) Delete(ctx context.Context, resourceGroupName string, se result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Delete", resp, "Failure responding to request") + return } return @@ -579,6 +584,7 @@ func (client TagClient) DetachFromAPI(ctx context.Context, resourceGroupName str result, err = client.DetachFromAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromAPI", resp, "Failure responding to request") + return } return @@ -679,6 +685,7 @@ func (client TagClient) DetachFromOperation(ctx context.Context, resourceGroupNa result, err = client.DetachFromOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromOperation", resp, "Failure responding to request") + return } return @@ -773,6 +780,7 @@ func (client TagClient) DetachFromProduct(ctx context.Context, resourceGroupName result, err = client.DetachFromProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromProduct", resp, "Failure responding to request") + return } return @@ -862,6 +870,7 @@ func (client TagClient) Get(ctx context.Context, resourceGroupName string, servi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Get", resp, "Failure responding to request") + return } return @@ -957,6 +966,7 @@ func (client TagClient) GetByAPI(ctx context.Context, resourceGroupName string, result, err = client.GetByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByAPI", resp, "Failure responding to request") + return } return @@ -1058,6 +1068,7 @@ func (client TagClient) GetByOperation(ctx context.Context, resourceGroupName st result, err = client.GetByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByOperation", resp, "Failure responding to request") + return } return @@ -1153,6 +1164,7 @@ func (client TagClient) GetByProduct(ctx context.Context, resourceGroupName stri result, err = client.GetByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByProduct", resp, "Failure responding to request") + return } return @@ -1243,6 +1255,7 @@ func (client TagClient) GetEntityState(ctx context.Context, resourceGroupName st result, err = client.GetEntityStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityState", resp, "Failure responding to request") + return } return @@ -1337,6 +1350,7 @@ func (client TagClient) GetEntityStateByAPI(ctx context.Context, resourceGroupNa result, err = client.GetEntityStateByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByAPI", resp, "Failure responding to request") + return } return @@ -1437,6 +1451,7 @@ func (client TagClient) GetEntityStateByOperation(ctx context.Context, resourceG result, err = client.GetEntityStateByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByOperation", resp, "Failure responding to request") + return } return @@ -1531,6 +1546,7 @@ func (client TagClient) GetEntityStateByProduct(ctx context.Context, resourceGro result, err = client.GetEntityStateByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByProduct", resp, "Failure responding to request") + return } return @@ -1634,6 +1650,7 @@ func (client TagClient) ListByAPI(ctx context.Context, resourceGroupName string, result.tc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByAPI", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1708,6 +1725,7 @@ func (client TagClient) listByAPINextResults(ctx context.Context, lastResults Ta result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } @@ -1791,6 +1809,7 @@ func (client TagClient) ListByOperation(ctx context.Context, resourceGroupName s result.tc, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByOperation", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1866,6 +1885,7 @@ func (client TagClient) listByOperationNextResults(ctx context.Context, lastResu result, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByOperationNextResults", resp, "Failure responding to next results request") + return } return } @@ -1942,6 +1962,7 @@ func (client TagClient) ListByProduct(ctx context.Context, resourceGroupName str result.tc, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByProduct", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2016,6 +2037,7 @@ func (client TagClient) listByProductNextResults(ctx context.Context, lastResult result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } @@ -2089,6 +2111,7 @@ func (client TagClient) ListByService(ctx context.Context, resourceGroupName str result.tc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByService", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2165,6 +2188,7 @@ func (client TagClient) listByServiceNextResults(ctx context.Context, lastResult result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -2232,6 +2256,7 @@ func (client TagClient) Update(ctx context.Context, resourceGroupName string, se result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/tagresource.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/tagresource.go index 2cbff4ff345a..41caf1b3936b 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/tagresource.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/tagresource.go @@ -103,6 +103,7 @@ func (client TagResourceClient) ListByService(ctx context.Context, resourceGroup result.trc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagResourceClient", "ListByService", resp, "Failure responding to request") + return } if result.trc.hasNextLink() && result.trc.IsEmpty() { err = result.NextWithContext(ctx) @@ -176,6 +177,7 @@ func (client TagResourceClient) listByServiceNextResults(ctx context.Context, la result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagResourceClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/tenantaccess.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/tenantaccess.go index e2119e0d132d..6a41c32caa10 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/tenantaccess.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/tenantaccess.go @@ -81,6 +81,7 @@ func (client TenantAccessClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "Get", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client TenantAccessClient) GetEntityTag(ctx context.Context, resourceGroup result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client TenantAccessClient) ListSecrets(ctx context.Context, resourceGroupN result, err = client.ListSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "ListSecrets", resp, "Failure responding to request") + return } return @@ -332,6 +335,7 @@ func (client TenantAccessClient) RegeneratePrimaryKey(ctx context.Context, resou result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -415,6 +419,7 @@ func (client TenantAccessClient) RegenerateSecondaryKey(ctx context.Context, res result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return @@ -501,6 +506,7 @@ func (client TenantAccessClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/tenantaccessgit.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/tenantaccessgit.go index 5d1627c233a0..62335813cd4e 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/tenantaccessgit.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/tenantaccessgit.go @@ -81,6 +81,7 @@ func (client TenantAccessGitClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "Get", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client TenantAccessGitClient) ListSecrets(ctx context.Context, resourceGro result, err = client.ListSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "ListSecrets", resp, "Failure responding to request") + return } return @@ -249,6 +251,7 @@ func (client TenantAccessGitClient) RegeneratePrimaryKey(ctx context.Context, re result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -332,6 +335,7 @@ func (client TenantAccessGitClient) RegenerateSecondaryKey(ctx context.Context, result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/tenantconfiguration.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/tenantconfiguration.go index 85331505ca6f..cbf0f6475b9e 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/tenantconfiguration.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/tenantconfiguration.go @@ -174,6 +174,7 @@ func (client TenantConfigurationClient) GetSyncState(ctx context.Context, resour result, err = client.GetSyncStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationClient", "GetSyncState", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/user.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/user.go index 1d973e49ee31..23ee1453a431 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/user.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/user.go @@ -103,6 +103,7 @@ func (client UserClient) CreateOrUpdate(ctx context.Context, resourceGroupName s result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -206,6 +207,7 @@ func (client UserClient) Delete(ctx context.Context, resourceGroupName string, s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Delete", resp, "Failure responding to request") + return } return @@ -306,6 +308,7 @@ func (client UserClient) GenerateSsoURL(ctx context.Context, resourceGroupName s result, err = client.GenerateSsoURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GenerateSsoURL", resp, "Failure responding to request") + return } return @@ -394,6 +397,7 @@ func (client UserClient) Get(ctx context.Context, resourceGroupName string, serv result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Get", resp, "Failure responding to request") + return } return @@ -482,6 +486,7 @@ func (client UserClient) GetEntityTag(ctx context.Context, resourceGroupName str result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -573,6 +578,7 @@ func (client UserClient) GetSharedAccessToken(ctx context.Context, resourceGroup result, err = client.GetSharedAccessTokenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GetSharedAccessToken", resp, "Failure responding to request") + return } return @@ -677,6 +683,7 @@ func (client UserClient) ListByService(ctx context.Context, resourceGroupName st result.uc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "ListByService", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -753,6 +760,7 @@ func (client UserClient) listByServiceNextResults(ctx context.Context, lastResul result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -819,6 +827,7 @@ func (client UserClient) Update(ctx context.Context, resourceGroupName string, s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/userconfirmationpassword.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/userconfirmationpassword.go index 1a0e3423aad6..cf8598b0aaf5 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/userconfirmationpassword.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/userconfirmationpassword.go @@ -88,6 +88,7 @@ func (client UserConfirmationPasswordClient) SendMethod(ctx context.Context, res result, err = client.SendMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserConfirmationPasswordClient", "SendMethod", resp, "Failure responding to request") + return } return diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/usergroup.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/usergroup.go index d3704b93cb36..9d13df086980 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/usergroup.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/usergroup.go @@ -99,6 +99,7 @@ func (client UserGroupClient) List(ctx context.Context, resourceGroupName string result.gc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserGroupClient", "List", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -173,6 +174,7 @@ func (client UserGroupClient) listNextResults(ctx context.Context, lastResults G result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserGroupClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/useridentities.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/useridentities.go index de8d1f060049..5dd9ae44043e 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/useridentities.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/useridentities.go @@ -86,6 +86,7 @@ func (client UserIdentitiesClient) List(ctx context.Context, resourceGroupName s result.uic, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserIdentitiesClient", "List", resp, "Failure responding to request") + return } if result.uic.hasNextLink() && result.uic.IsEmpty() { err = result.NextWithContext(ctx) @@ -151,6 +152,7 @@ func (client UserIdentitiesClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserIdentitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/usersubscription.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/usersubscription.go index 91b729bb7c1a..ac3475a61e21 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/usersubscription.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/usersubscription.go @@ -104,6 +104,7 @@ func (client UserSubscriptionClient) List(ctx context.Context, resourceGroupName result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserSubscriptionClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -178,6 +179,7 @@ func (client UserSubscriptionClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserSubscriptionClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/appconfiguration/mgmt/2019-10-01/appconfiguration/configurationstores.go b/services/appconfiguration/mgmt/2019-10-01/appconfiguration/configurationstores.go index ce7d073763d7..63554b634947 100644 --- a/services/appconfiguration/mgmt/2019-10-01/appconfiguration/configurationstores.go +++ b/services/appconfiguration/mgmt/2019-10-01/appconfiguration/configurationstores.go @@ -253,6 +253,7 @@ func (client ConfigurationStoresClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client ConfigurationStoresClient) List(ctx context.Context, skipToken stri result.cslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "List", resp, "Failure responding to request") + return } if result.cslr.hasNextLink() && result.cslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -395,6 +397,7 @@ func (client ConfigurationStoresClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -449,6 +452,7 @@ func (client ConfigurationStoresClient) ListByResourceGroup(ctx context.Context, result.cslr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cslr.hasNextLink() && result.cslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -515,6 +519,7 @@ func (client ConfigurationStoresClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -578,6 +583,7 @@ func (client ConfigurationStoresClient) ListKeys(ctx context.Context, resourceGr result.aklr, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "ListKeys", resp, "Failure responding to request") + return } if result.aklr.hasNextLink() && result.aklr.IsEmpty() { err = result.NextWithContext(ctx) @@ -645,6 +651,7 @@ func (client ConfigurationStoresClient) listKeysNextResults(ctx context.Context, result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "listKeysNextResults", resp, "Failure responding to next results request") + return } return } @@ -707,6 +714,7 @@ func (client ConfigurationStoresClient) ListKeyValue(ctx context.Context, resour result, err = client.ListKeyValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "ListKeyValue", resp, "Failure responding to request") + return } return @@ -793,6 +801,7 @@ func (client ConfigurationStoresClient) RegenerateKey(ctx context.Context, resou result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/appconfiguration/mgmt/2019-10-01/appconfiguration/operations.go b/services/appconfiguration/mgmt/2019-10-01/appconfiguration/operations.go index a2e3bcaf7b9e..99bd47a69260 100644 --- a/services/appconfiguration/mgmt/2019-10-01/appconfiguration/operations.go +++ b/services/appconfiguration/mgmt/2019-10-01/appconfiguration/operations.go @@ -79,6 +79,7 @@ func (client OperationsClient) CheckNameAvailability(ctx context.Context, checkN result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.OperationsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client OperationsClient) List(ctx context.Context, skipToken string) (resu result.odlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.OperationsClient", "List", resp, "Failure responding to request") + return } if result.odlr.hasNextLink() && result.odlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -217,6 +219,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/appconfiguration/mgmt/2020-06-01/appconfiguration/configurationstores.go b/services/appconfiguration/mgmt/2020-06-01/appconfiguration/configurationstores.go index 97061ccd24f1..27a371cfc3a9 100644 --- a/services/appconfiguration/mgmt/2020-06-01/appconfiguration/configurationstores.go +++ b/services/appconfiguration/mgmt/2020-06-01/appconfiguration/configurationstores.go @@ -253,6 +253,7 @@ func (client ConfigurationStoresClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client ConfigurationStoresClient) List(ctx context.Context, skipToken stri result.cslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "List", resp, "Failure responding to request") + return } if result.cslr.hasNextLink() && result.cslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -395,6 +397,7 @@ func (client ConfigurationStoresClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -449,6 +452,7 @@ func (client ConfigurationStoresClient) ListByResourceGroup(ctx context.Context, result.cslr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cslr.hasNextLink() && result.cslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -515,6 +519,7 @@ func (client ConfigurationStoresClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -578,6 +583,7 @@ func (client ConfigurationStoresClient) ListKeys(ctx context.Context, resourceGr result.aklr, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "ListKeys", resp, "Failure responding to request") + return } if result.aklr.hasNextLink() && result.aklr.IsEmpty() { err = result.NextWithContext(ctx) @@ -645,6 +651,7 @@ func (client ConfigurationStoresClient) listKeysNextResults(ctx context.Context, result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "listKeysNextResults", resp, "Failure responding to next results request") + return } return } @@ -707,6 +714,7 @@ func (client ConfigurationStoresClient) ListKeyValue(ctx context.Context, resour result, err = client.ListKeyValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "ListKeyValue", resp, "Failure responding to request") + return } return @@ -793,6 +801,7 @@ func (client ConfigurationStoresClient) RegenerateKey(ctx context.Context, resou result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/appconfiguration/mgmt/2020-06-01/appconfiguration/operations.go b/services/appconfiguration/mgmt/2020-06-01/appconfiguration/operations.go index 77a6846c584e..ba90e7b3a90b 100644 --- a/services/appconfiguration/mgmt/2020-06-01/appconfiguration/operations.go +++ b/services/appconfiguration/mgmt/2020-06-01/appconfiguration/operations.go @@ -79,6 +79,7 @@ func (client OperationsClient) CheckNameAvailability(ctx context.Context, checkN result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.OperationsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client OperationsClient) List(ctx context.Context, skipToken string) (resu result.odlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.OperationsClient", "List", resp, "Failure responding to request") + return } if result.odlr.hasNextLink() && result.odlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -217,6 +219,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/appconfiguration/mgmt/2020-06-01/appconfiguration/privateendpointconnections.go b/services/appconfiguration/mgmt/2020-06-01/appconfiguration/privateendpointconnections.go index 33bca8956a26..3105ffb5125b 100644 --- a/services/appconfiguration/mgmt/2020-06-01/appconfiguration/privateendpointconnections.go +++ b/services/appconfiguration/mgmt/2020-06-01/appconfiguration/privateendpointconnections.go @@ -263,6 +263,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +349,7 @@ func (client PrivateEndpointConnectionsClient) ListByConfigurationStore(ctx cont result.peclr, err = client.ListByConfigurationStoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.PrivateEndpointConnectionsClient", "ListByConfigurationStore", resp, "Failure responding to request") + return } if result.peclr.hasNextLink() && result.peclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -412,6 +414,7 @@ func (client PrivateEndpointConnectionsClient) listByConfigurationStoreNextResul result, err = client.ListByConfigurationStoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.PrivateEndpointConnectionsClient", "listByConfigurationStoreNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/appconfiguration/mgmt/2020-06-01/appconfiguration/privatelinkresources.go b/services/appconfiguration/mgmt/2020-06-01/appconfiguration/privatelinkresources.go index ddf115ba41e5..a400d84f7d59 100644 --- a/services/appconfiguration/mgmt/2020-06-01/appconfiguration/privatelinkresources.go +++ b/services/appconfiguration/mgmt/2020-06-01/appconfiguration/privatelinkresources.go @@ -83,6 +83,7 @@ func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.PrivateLinkResourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client PrivateLinkResourcesClient) ListByConfigurationStore(ctx context.Co result.plrlr, err = client.ListByConfigurationStoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.PrivateLinkResourcesClient", "ListByConfigurationStore", resp, "Failure responding to request") + return } if result.plrlr.hasNextLink() && result.plrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -232,6 +234,7 @@ func (client PrivateLinkResourcesClient) listByConfigurationStoreNextResults(ctx result, err = client.ListByConfigurationStoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.PrivateLinkResourcesClient", "listByConfigurationStoreNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/appinsights/mgmt/2015-05-01/insights/analyticsitems.go b/services/appinsights/mgmt/2015-05-01/insights/analyticsitems.go index ed94c08da32b..308877084259 100644 --- a/services/appinsights/mgmt/2015-05-01/insights/analyticsitems.go +++ b/services/appinsights/mgmt/2015-05-01/insights/analyticsitems.go @@ -87,6 +87,7 @@ func (client AnalyticsItemsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "Delete", resp, "Failure responding to request") + return } return @@ -182,6 +183,7 @@ func (client AnalyticsItemsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "Get", resp, "Failure responding to request") + return } return @@ -281,6 +283,7 @@ func (client AnalyticsItemsClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "List", resp, "Failure responding to request") + return } return @@ -386,6 +389,7 @@ func (client AnalyticsItemsClient) Put(ctx context.Context, resourceGroupName st result, err = client.PutResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "Put", resp, "Failure responding to request") + return } return diff --git a/services/appinsights/mgmt/2015-05-01/insights/annotations.go b/services/appinsights/mgmt/2015-05-01/insights/annotations.go index 96298f830641..92764cce276f 100644 --- a/services/appinsights/mgmt/2015-05-01/insights/annotations.go +++ b/services/appinsights/mgmt/2015-05-01/insights/annotations.go @@ -85,6 +85,7 @@ func (client AnnotationsClient) Create(ctx context.Context, resourceGroupName st result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AnnotationsClient", "Create", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client AnnotationsClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AnnotationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -259,6 +261,7 @@ func (client AnnotationsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AnnotationsClient", "Get", resp, "Failure responding to request") + return } return @@ -347,6 +350,7 @@ func (client AnnotationsClient) List(ctx context.Context, resourceGroupName stri result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AnnotationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/appinsights/mgmt/2015-05-01/insights/apikeys.go b/services/appinsights/mgmt/2015-05-01/insights/apikeys.go index e960adb541a4..bbb9dde9f0c8 100644 --- a/services/appinsights/mgmt/2015-05-01/insights/apikeys.go +++ b/services/appinsights/mgmt/2015-05-01/insights/apikeys.go @@ -85,6 +85,7 @@ func (client APIKeysClient) Create(ctx context.Context, resourceGroupName string result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.APIKeysClient", "Create", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client APIKeysClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.APIKeysClient", "Delete", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client APIKeysClient) Get(ctx context.Context, resourceGroupName string, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.APIKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +349,7 @@ func (client APIKeysClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.APIKeysClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/appinsights/mgmt/2015-05-01/insights/componentavailablefeatures.go b/services/appinsights/mgmt/2015-05-01/insights/componentavailablefeatures.go index c2210fdf64c3..e972854757ae 100644 --- a/services/appinsights/mgmt/2015-05-01/insights/componentavailablefeatures.go +++ b/services/appinsights/mgmt/2015-05-01/insights/componentavailablefeatures.go @@ -84,6 +84,7 @@ func (client ComponentAvailableFeaturesClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ComponentAvailableFeaturesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/appinsights/mgmt/2015-05-01/insights/componentcurrentbillingfeatures.go b/services/appinsights/mgmt/2015-05-01/insights/componentcurrentbillingfeatures.go index af6b7efdaa01..bf184be0baac 100644 --- a/services/appinsights/mgmt/2015-05-01/insights/componentcurrentbillingfeatures.go +++ b/services/appinsights/mgmt/2015-05-01/insights/componentcurrentbillingfeatures.go @@ -84,6 +84,7 @@ func (client ComponentCurrentBillingFeaturesClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ComponentCurrentBillingFeaturesClient", "Get", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client ComponentCurrentBillingFeaturesClient) Update(ctx context.Context, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ComponentCurrentBillingFeaturesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/appinsights/mgmt/2015-05-01/insights/componentfeaturecapabilities.go b/services/appinsights/mgmt/2015-05-01/insights/componentfeaturecapabilities.go index ce650ef2ccab..a2e748ef01ee 100644 --- a/services/appinsights/mgmt/2015-05-01/insights/componentfeaturecapabilities.go +++ b/services/appinsights/mgmt/2015-05-01/insights/componentfeaturecapabilities.go @@ -84,6 +84,7 @@ func (client ComponentFeatureCapabilitiesClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ComponentFeatureCapabilitiesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/appinsights/mgmt/2015-05-01/insights/componentquotastatus.go b/services/appinsights/mgmt/2015-05-01/insights/componentquotastatus.go index f8797f7dab4c..9da787acb486 100644 --- a/services/appinsights/mgmt/2015-05-01/insights/componentquotastatus.go +++ b/services/appinsights/mgmt/2015-05-01/insights/componentquotastatus.go @@ -84,6 +84,7 @@ func (client ComponentQuotaStatusClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ComponentQuotaStatusClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/appinsights/mgmt/2015-05-01/insights/components.go b/services/appinsights/mgmt/2015-05-01/insights/components.go index c7acba669bfd..a0cd502df6e1 100644 --- a/services/appinsights/mgmt/2015-05-01/insights/components.go +++ b/services/appinsights/mgmt/2015-05-01/insights/components.go @@ -87,6 +87,7 @@ func (client ComponentsClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client ComponentsClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client ComponentsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +347,7 @@ func (client ComponentsClient) GetPurgeStatus(ctx context.Context, resourceGroup result, err = client.GetPurgeStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "GetPurgeStatus", resp, "Failure responding to request") + return } return @@ -424,6 +428,7 @@ func (client ComponentsClient) List(ctx context.Context) (result ApplicationInsi result.aiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "List", resp, "Failure responding to request") + return } if result.aiclr.hasNextLink() && result.aiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -486,6 +491,7 @@ func (client ComponentsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -547,6 +553,7 @@ func (client ComponentsClient) ListByResourceGroup(ctx context.Context, resource result.aiclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.aiclr.hasNextLink() && result.aiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -610,6 +617,7 @@ func (client ComponentsClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -680,6 +688,7 @@ func (client ComponentsClient) Purge(ctx context.Context, resourceGroupName stri result, err = client.PurgeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "Purge", resp, "Failure responding to request") + return } return @@ -768,6 +777,7 @@ func (client ComponentsClient) UpdateTags(ctx context.Context, resourceGroupName result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/appinsights/mgmt/2015-05-01/insights/exportconfigurations.go b/services/appinsights/mgmt/2015-05-01/insights/exportconfigurations.go index 24032cb6972a..585b93f4afa3 100644 --- a/services/appinsights/mgmt/2015-05-01/insights/exportconfigurations.go +++ b/services/appinsights/mgmt/2015-05-01/insights/exportconfigurations.go @@ -86,6 +86,7 @@ func (client ExportConfigurationsClient) Create(ctx context.Context, resourceGro result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ExportConfigurationsClient", "Create", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client ExportConfigurationsClient) Delete(ctx context.Context, resourceGro result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ExportConfigurationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -261,6 +263,7 @@ func (client ExportConfigurationsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ExportConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -347,6 +350,7 @@ func (client ExportConfigurationsClient) List(ctx context.Context, resourceGroup result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ExportConfigurationsClient", "List", resp, "Failure responding to request") + return } return @@ -434,6 +438,7 @@ func (client ExportConfigurationsClient) Update(ctx context.Context, resourceGro result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ExportConfigurationsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/appinsights/mgmt/2015-05-01/insights/favorites.go b/services/appinsights/mgmt/2015-05-01/insights/favorites.go index 1182ebfab24b..0dfe818541e9 100644 --- a/services/appinsights/mgmt/2015-05-01/insights/favorites.go +++ b/services/appinsights/mgmt/2015-05-01/insights/favorites.go @@ -86,6 +86,7 @@ func (client FavoritesClient) Add(ctx context.Context, resourceGroupName string, result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Add", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client FavoritesClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Delete", resp, "Failure responding to request") + return } return @@ -264,6 +266,7 @@ func (client FavoritesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Get", resp, "Failure responding to request") + return } return @@ -356,6 +359,7 @@ func (client FavoritesClient) List(ctx context.Context, resourceGroupName string result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "List", resp, "Failure responding to request") + return } return @@ -457,6 +461,7 @@ func (client FavoritesClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/appinsights/mgmt/2015-05-01/insights/myworkbooks.go b/services/appinsights/mgmt/2015-05-01/insights/myworkbooks.go index c6c257a9b080..b22bea6c1661 100644 --- a/services/appinsights/mgmt/2015-05-01/insights/myworkbooks.go +++ b/services/appinsights/mgmt/2015-05-01/insights/myworkbooks.go @@ -90,6 +90,7 @@ func (client MyWorkbooksClient) CreateOrUpdate(ctx context.Context, resourceGrou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MyWorkbooksClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client MyWorkbooksClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MyWorkbooksClient", "Delete", resp, "Failure responding to request") + return } return @@ -261,6 +263,7 @@ func (client MyWorkbooksClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MyWorkbooksClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client MyWorkbooksClient) ListByResourceGroup(ctx context.Context, resourc result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MyWorkbooksClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -438,6 +442,7 @@ func (client MyWorkbooksClient) ListBySubscription(ctx context.Context, category result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MyWorkbooksClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -529,6 +534,7 @@ func (client MyWorkbooksClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MyWorkbooksClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/appinsights/mgmt/2015-05-01/insights/operations.go b/services/appinsights/mgmt/2015-05-01/insights/operations.go index 52c5eb44c99f..0feaf3b95818 100644 --- a/services/appinsights/mgmt/2015-05-01/insights/operations.go +++ b/services/appinsights/mgmt/2015-05-01/insights/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/appinsights/mgmt/2015-05-01/insights/proactivedetectionconfigurations.go b/services/appinsights/mgmt/2015-05-01/insights/proactivedetectionconfigurations.go index e3cfcdeb694d..79eb595ce25e 100644 --- a/services/appinsights/mgmt/2015-05-01/insights/proactivedetectionconfigurations.go +++ b/services/appinsights/mgmt/2015-05-01/insights/proactivedetectionconfigurations.go @@ -86,6 +86,7 @@ func (client ProactiveDetectionConfigurationsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ProactiveDetectionConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client ProactiveDetectionConfigurationsClient) List(ctx context.Context, r result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ProactiveDetectionConfigurationsClient", "List", resp, "Failure responding to request") + return } return @@ -261,6 +263,7 @@ func (client ProactiveDetectionConfigurationsClient) Update(ctx context.Context, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ProactiveDetectionConfigurationsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/appinsights/mgmt/2015-05-01/insights/webtestlocations.go b/services/appinsights/mgmt/2015-05-01/insights/webtestlocations.go index c988754aa32c..265cbb3d8e15 100644 --- a/services/appinsights/mgmt/2015-05-01/insights/webtestlocations.go +++ b/services/appinsights/mgmt/2015-05-01/insights/webtestlocations.go @@ -84,6 +84,7 @@ func (client WebTestLocationsClient) List(ctx context.Context, resourceGroupName result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.WebTestLocationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/appinsights/mgmt/2015-05-01/insights/webtests.go b/services/appinsights/mgmt/2015-05-01/insights/webtests.go index 2e6acce41c73..e84df37337ba 100644 --- a/services/appinsights/mgmt/2015-05-01/insights/webtests.go +++ b/services/appinsights/mgmt/2015-05-01/insights/webtests.go @@ -91,6 +91,7 @@ func (client WebTestsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.WebTestsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client WebTestsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.WebTestsClient", "Delete", resp, "Failure responding to request") + return } return @@ -262,6 +264,7 @@ func (client WebTestsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.WebTestsClient", "Get", resp, "Failure responding to request") + return } return @@ -341,6 +344,7 @@ func (client WebTestsClient) List(ctx context.Context) (result WebTestListResult result.wtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.WebTestsClient", "List", resp, "Failure responding to request") + return } if result.wtlr.hasNextLink() && result.wtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -403,6 +407,7 @@ func (client WebTestsClient) listNextResults(ctx context.Context, lastResults We result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.WebTestsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -465,6 +470,7 @@ func (client WebTestsClient) ListByComponent(ctx context.Context, componentName result.wtlr, err = client.ListByComponentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.WebTestsClient", "ListByComponent", resp, "Failure responding to request") + return } if result.wtlr.hasNextLink() && result.wtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -529,6 +535,7 @@ func (client WebTestsClient) listByComponentNextResults(ctx context.Context, las result, err = client.ListByComponentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.WebTestsClient", "listByComponentNextResults", resp, "Failure responding to next results request") + return } return } @@ -590,6 +597,7 @@ func (client WebTestsClient) ListByResourceGroup(ctx context.Context, resourceGr result.wtlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.WebTestsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.wtlr.hasNextLink() && result.wtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -653,6 +661,7 @@ func (client WebTestsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.WebTestsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -715,6 +724,7 @@ func (client WebTestsClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.WebTestsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/appinsights/mgmt/2015-05-01/insights/workbooks.go b/services/appinsights/mgmt/2015-05-01/insights/workbooks.go index 2a767697297b..e174c12d4462 100644 --- a/services/appinsights/mgmt/2015-05-01/insights/workbooks.go +++ b/services/appinsights/mgmt/2015-05-01/insights/workbooks.go @@ -92,6 +92,7 @@ func (client WorkbooksClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client WorkbooksClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "Delete", resp, "Failure responding to request") + return } return @@ -263,6 +265,7 @@ func (client WorkbooksClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "Get", resp, "Failure responding to request") + return } return @@ -351,6 +354,7 @@ func (client WorkbooksClient) ListByResourceGroup(ctx context.Context, resourceG result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -443,6 +447,7 @@ func (client WorkbooksClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/appinsights/mgmt/2015-05-01/insights/workitemconfigurations.go b/services/appinsights/mgmt/2015-05-01/insights/workitemconfigurations.go index 984ea635ac1e..217e54d7233f 100644 --- a/services/appinsights/mgmt/2015-05-01/insights/workitemconfigurations.go +++ b/services/appinsights/mgmt/2015-05-01/insights/workitemconfigurations.go @@ -86,6 +86,7 @@ func (client WorkItemConfigurationsClient) Create(ctx context.Context, resourceG result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.WorkItemConfigurationsClient", "Create", resp, "Failure responding to request") + return } return @@ -175,6 +176,7 @@ func (client WorkItemConfigurationsClient) Delete(ctx context.Context, resourceG result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.WorkItemConfigurationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client WorkItemConfigurationsClient) GetDefault(ctx context.Context, resou result, err = client.GetDefaultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.WorkItemConfigurationsClient", "GetDefault", resp, "Failure responding to request") + return } return @@ -347,6 +350,7 @@ func (client WorkItemConfigurationsClient) GetItem(ctx context.Context, resource result, err = client.GetItemResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.WorkItemConfigurationsClient", "GetItem", resp, "Failure responding to request") + return } return @@ -433,6 +437,7 @@ func (client WorkItemConfigurationsClient) List(ctx context.Context, resourceGro result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.WorkItemConfigurationsClient", "List", resp, "Failure responding to request") + return } return @@ -522,6 +527,7 @@ func (client WorkItemConfigurationsClient) UpdateItem(ctx context.Context, resou result, err = client.UpdateItemResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.WorkItemConfigurationsClient", "UpdateItem", resp, "Failure responding to request") + return } return diff --git a/services/appplatform/mgmt/2020-07-01/appplatform/apps.go b/services/appplatform/mgmt/2020-07-01/appplatform/apps.go index 880ccafef5c4..ba469e20b49d 100644 --- a/services/appplatform/mgmt/2020-07-01/appplatform/apps.go +++ b/services/appplatform/mgmt/2020-07-01/appplatform/apps.go @@ -257,6 +257,7 @@ func (client AppsClient) Get(ctx context.Context, resourceGroupName string, serv result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.AppsClient", "Get", resp, "Failure responding to request") + return } return @@ -338,6 +339,7 @@ func (client AppsClient) GetResourceUploadURL(ctx context.Context, resourceGroup result, err = client.GetResourceUploadURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.AppsClient", "GetResourceUploadURL", resp, "Failure responding to request") + return } return @@ -416,6 +418,7 @@ func (client AppsClient) List(ctx context.Context, resourceGroupName string, ser result.arc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.AppsClient", "List", resp, "Failure responding to request") + return } if result.arc.hasNextLink() && result.arc.IsEmpty() { err = result.NextWithContext(ctx) @@ -480,6 +483,7 @@ func (client AppsClient) listNextResults(ctx context.Context, lastResults AppRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.AppsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -621,6 +625,7 @@ func (client AppsClient) ValidateDomain(ctx context.Context, resourceGroupName s result, err = client.ValidateDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.AppsClient", "ValidateDomain", resp, "Failure responding to request") + return } return diff --git a/services/appplatform/mgmt/2020-07-01/appplatform/bindings.go b/services/appplatform/mgmt/2020-07-01/appplatform/bindings.go index 1b565fe68486..9651dd2f00e9 100644 --- a/services/appplatform/mgmt/2020-07-01/appplatform/bindings.go +++ b/services/appplatform/mgmt/2020-07-01/appplatform/bindings.go @@ -237,6 +237,7 @@ func (client BindingsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.BindingsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client BindingsClient) List(ctx context.Context, resourceGroupName string, result.brc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.BindingsClient", "List", resp, "Failure responding to request") + return } if result.brc.hasNextLink() && result.brc.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client BindingsClient) listNextResults(ctx context.Context, lastResults Bi result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.BindingsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/appplatform/mgmt/2020-07-01/appplatform/certificates.go b/services/appplatform/mgmt/2020-07-01/appplatform/certificates.go index 41c16353d906..b48b4a9503a3 100644 --- a/services/appplatform/mgmt/2020-07-01/appplatform/certificates.go +++ b/services/appplatform/mgmt/2020-07-01/appplatform/certificates.go @@ -242,6 +242,7 @@ func (client CertificatesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.CertificatesClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +321,7 @@ func (client CertificatesClient) List(ctx context.Context, resourceGroupName str result.crc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.CertificatesClient", "List", resp, "Failure responding to request") + return } if result.crc.hasNextLink() && result.crc.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client CertificatesClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.CertificatesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/appplatform/mgmt/2020-07-01/appplatform/configservers.go b/services/appplatform/mgmt/2020-07-01/appplatform/configservers.go index 94c4daf58232..b367649e3508 100644 --- a/services/appplatform/mgmt/2020-07-01/appplatform/configservers.go +++ b/services/appplatform/mgmt/2020-07-01/appplatform/configservers.go @@ -74,6 +74,7 @@ func (client ConfigServersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.ConfigServersClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/appplatform/mgmt/2020-07-01/appplatform/customdomains.go b/services/appplatform/mgmt/2020-07-01/appplatform/customdomains.go index 9c9248b8fe3c..627746d348a8 100644 --- a/services/appplatform/mgmt/2020-07-01/appplatform/customdomains.go +++ b/services/appplatform/mgmt/2020-07-01/appplatform/customdomains.go @@ -237,6 +237,7 @@ func (client CustomDomainsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.CustomDomainsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client CustomDomainsClient) List(ctx context.Context, resourceGroupName st result.cdrc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.CustomDomainsClient", "List", resp, "Failure responding to request") + return } if result.cdrc.hasNextLink() && result.cdrc.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client CustomDomainsClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.CustomDomainsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/appplatform/mgmt/2020-07-01/appplatform/deployments.go b/services/appplatform/mgmt/2020-07-01/appplatform/deployments.go index 13bc6ce8b250..b7ad44a2d022 100644 --- a/services/appplatform/mgmt/2020-07-01/appplatform/deployments.go +++ b/services/appplatform/mgmt/2020-07-01/appplatform/deployments.go @@ -237,6 +237,7 @@ func (client DeploymentsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.DeploymentsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client DeploymentsClient) GetLogFileURL(ctx context.Context, resourceGroup result, err = client.GetLogFileURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.DeploymentsClient", "GetLogFileURL", resp, "Failure responding to request") + return } return @@ -398,6 +400,7 @@ func (client DeploymentsClient) List(ctx context.Context, resourceGroupName stri result.drc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.DeploymentsClient", "List", resp, "Failure responding to request") + return } if result.drc.hasNextLink() && result.drc.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +469,7 @@ func (client DeploymentsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.DeploymentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -520,6 +524,7 @@ func (client DeploymentsClient) ListForCluster(ctx context.Context, resourceGrou result.drc, err = client.ListForClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.DeploymentsClient", "ListForCluster", resp, "Failure responding to request") + return } if result.drc.hasNextLink() && result.drc.IsEmpty() { err = result.NextWithContext(ctx) @@ -587,6 +592,7 @@ func (client DeploymentsClient) listForClusterNextResults(ctx context.Context, l result, err = client.ListForClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.DeploymentsClient", "listForClusterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/appplatform/mgmt/2020-07-01/appplatform/monitoringsettings.go b/services/appplatform/mgmt/2020-07-01/appplatform/monitoringsettings.go index b1d373f6bc2e..2ece22b742b8 100644 --- a/services/appplatform/mgmt/2020-07-01/appplatform/monitoringsettings.go +++ b/services/appplatform/mgmt/2020-07-01/appplatform/monitoringsettings.go @@ -74,6 +74,7 @@ func (client MonitoringSettingsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.MonitoringSettingsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/appplatform/mgmt/2020-07-01/appplatform/operations.go b/services/appplatform/mgmt/2020-07-01/appplatform/operations.go index ab949d5c4b68..348122bdc7e0 100644 --- a/services/appplatform/mgmt/2020-07-01/appplatform/operations.go +++ b/services/appplatform/mgmt/2020-07-01/appplatform/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result AvailableOperat result.ao, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ao.hasNextLink() && result.ao.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/appplatform/mgmt/2020-07-01/appplatform/runtimeversions.go b/services/appplatform/mgmt/2020-07-01/appplatform/runtimeversions.go index 7e0fc2e2e294..94614bfda27f 100644 --- a/services/appplatform/mgmt/2020-07-01/appplatform/runtimeversions.go +++ b/services/appplatform/mgmt/2020-07-01/appplatform/runtimeversions.go @@ -69,6 +69,7 @@ func (client RuntimeVersionsClient) ListRuntimeVersions(ctx context.Context) (re result, err = client.ListRuntimeVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.RuntimeVersionsClient", "ListRuntimeVersions", resp, "Failure responding to request") + return } return diff --git a/services/appplatform/mgmt/2020-07-01/appplatform/services.go b/services/appplatform/mgmt/2020-07-01/appplatform/services.go index 36e1fb7be58a..9e15354032d0 100644 --- a/services/appplatform/mgmt/2020-07-01/appplatform/services.go +++ b/services/appplatform/mgmt/2020-07-01/appplatform/services.go @@ -80,6 +80,7 @@ func (client ServicesClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.ServicesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client ServicesClient) DisableTestEndpoint(ctx context.Context, resourceGr result, err = client.DisableTestEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.ServicesClient", "DisableTestEndpoint", resp, "Failure responding to request") + return } return @@ -386,6 +388,7 @@ func (client ServicesClient) EnableTestEndpoint(ctx context.Context, resourceGro result, err = client.EnableTestEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.ServicesClient", "EnableTestEndpoint", resp, "Failure responding to request") + return } return @@ -462,6 +465,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -538,6 +542,7 @@ func (client ServicesClient) List(ctx context.Context, resourceGroupName string) result.srl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.ServicesClient", "List", resp, "Failure responding to request") + return } if result.srl.hasNextLink() && result.srl.IsEmpty() { err = result.NextWithContext(ctx) @@ -601,6 +606,7 @@ func (client ServicesClient) listNextResults(ctx context.Context, lastResults Se result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.ServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -650,6 +656,7 @@ func (client ServicesClient) ListBySubscription(ctx context.Context) (result Ser result.srl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.ServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.srl.hasNextLink() && result.srl.IsEmpty() { err = result.NextWithContext(ctx) @@ -712,6 +719,7 @@ func (client ServicesClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.ServicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -764,6 +772,7 @@ func (client ServicesClient) ListTestKeys(ctx context.Context, resourceGroupName result, err = client.ListTestKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.ServicesClient", "ListTestKeys", resp, "Failure responding to request") + return } return @@ -841,6 +850,7 @@ func (client ServicesClient) RegenerateTestKey(ctx context.Context, resourceGrou result, err = client.RegenerateTestKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.ServicesClient", "RegenerateTestKey", resp, "Failure responding to request") + return } return diff --git a/services/appplatform/mgmt/2020-07-01/appplatform/skus.go b/services/appplatform/mgmt/2020-07-01/appplatform/skus.go index 74fcba2c4757..6f7a0c029f89 100644 --- a/services/appplatform/mgmt/2020-07-01/appplatform/skus.go +++ b/services/appplatform/mgmt/2020-07-01/appplatform/skus.go @@ -70,6 +70,7 @@ func (client SkusClient) List(ctx context.Context) (result ResourceSkuCollection result.rsc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.SkusClient", "List", resp, "Failure responding to request") + return } if result.rsc.hasNextLink() && result.rsc.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client SkusClient) listNextResults(ctx context.Context, lastResults Resour result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.SkusClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/attestation/2018-09-01/attestation/metadataconfiguration.go b/services/attestation/2018-09-01/attestation/metadataconfiguration.go index e442791aeb06..4ba2ffed0b44 100644 --- a/services/attestation/2018-09-01/attestation/metadataconfiguration.go +++ b/services/attestation/2018-09-01/attestation/metadataconfiguration.go @@ -65,6 +65,7 @@ func (client MetadataConfigurationClient) Get(ctx context.Context, tenantBaseURL result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.MetadataConfigurationClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/attestation/2018-09-01/attestation/policy.go b/services/attestation/2018-09-01/attestation/policy.go index af2ec228c4d5..d7f8f1d0527b 100644 --- a/services/attestation/2018-09-01/attestation/policy.go +++ b/services/attestation/2018-09-01/attestation/policy.go @@ -66,6 +66,7 @@ func (client PolicyClient) Get(ctx context.Context, tenantBaseURL string, tee Te result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.PolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -141,6 +142,7 @@ func (client PolicyClient) PrepareToSet(ctx context.Context, tenantBaseURL strin result, err = client.PrepareToSetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.PolicyClient", "PrepareToSet", resp, "Failure responding to request") + return } return @@ -218,6 +220,7 @@ func (client PolicyClient) Reset(ctx context.Context, tenantBaseURL string, tee result, err = client.ResetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.PolicyClient", "Reset", resp, "Failure responding to request") + return } return @@ -295,6 +298,7 @@ func (client PolicyClient) Set(ctx context.Context, tenantBaseURL string, tee Te result, err = client.SetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.PolicyClient", "Set", resp, "Failure responding to request") + return } return diff --git a/services/attestation/2018-09-01/attestation/policycertificates.go b/services/attestation/2018-09-01/attestation/policycertificates.go index 1dd56a8e57eb..95eb90a31fc0 100644 --- a/services/attestation/2018-09-01/attestation/policycertificates.go +++ b/services/attestation/2018-09-01/attestation/policycertificates.go @@ -68,6 +68,7 @@ func (client PolicyCertificatesClient) Add(ctx context.Context, tenantBaseURL st result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.PolicyCertificatesClient", "Add", resp, "Failure responding to request") + return } return @@ -142,6 +143,7 @@ func (client PolicyCertificatesClient) Get(ctx context.Context, tenantBaseURL st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.PolicyCertificatesClient", "Get", resp, "Failure responding to request") + return } return @@ -217,6 +219,7 @@ func (client PolicyCertificatesClient) Remove(ctx context.Context, tenantBaseURL result, err = client.RemoveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.PolicyCertificatesClient", "Remove", resp, "Failure responding to request") + return } return diff --git a/services/attestation/2018-09-01/attestation/signingcertificates.go b/services/attestation/2018-09-01/attestation/signingcertificates.go index 24b130165795..a886ec825ee0 100644 --- a/services/attestation/2018-09-01/attestation/signingcertificates.go +++ b/services/attestation/2018-09-01/attestation/signingcertificates.go @@ -65,6 +65,7 @@ func (client SigningCertificatesClient) Get(ctx context.Context, tenantBaseURL s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.SigningCertificatesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/attestation/2020-10-01/attestation/attestation.go b/services/attestation/2020-10-01/attestation/attestation.go index 1f16079782a3..9e683ef804a1 100644 --- a/services/attestation/2020-10-01/attestation/attestation.go +++ b/services/attestation/2020-10-01/attestation/attestation.go @@ -67,6 +67,7 @@ func (client Client) AttestOpenEnclave(ctx context.Context, instanceURL string, result, err = client.AttestOpenEnclaveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.Client", "AttestOpenEnclave", resp, "Failure responding to request") + return } return @@ -143,6 +144,7 @@ func (client Client) AttestSgxEnclave(ctx context.Context, instanceURL string, r result, err = client.AttestSgxEnclaveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.Client", "AttestSgxEnclave", resp, "Failure responding to request") + return } return @@ -219,6 +221,7 @@ func (client Client) AttestTpm(ctx context.Context, instanceURL string, request result, err = client.AttestTpmResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.Client", "AttestTpm", resp, "Failure responding to request") + return } return diff --git a/services/attestation/2020-10-01/attestation/metadataconfiguration.go b/services/attestation/2020-10-01/attestation/metadataconfiguration.go index f6eaf6785973..6b31570e2e9b 100644 --- a/services/attestation/2020-10-01/attestation/metadataconfiguration.go +++ b/services/attestation/2020-10-01/attestation/metadataconfiguration.go @@ -65,6 +65,7 @@ func (client MetadataConfigurationClient) Get(ctx context.Context, instanceURL s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.MetadataConfigurationClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/attestation/2020-10-01/attestation/policy.go b/services/attestation/2020-10-01/attestation/policy.go index c98ef738d9d8..022eae5c5fb7 100644 --- a/services/attestation/2020-10-01/attestation/policy.go +++ b/services/attestation/2020-10-01/attestation/policy.go @@ -67,6 +67,7 @@ func (client PolicyClient) Get(ctx context.Context, instanceURL string, attestat result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.PolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client PolicyClient) Reset(ctx context.Context, instanceURL string, attest result, err = client.ResetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.PolicyClient", "Reset", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client PolicyClient) Set(ctx context.Context, instanceURL string, attestat result, err = client.SetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.PolicyClient", "Set", resp, "Failure responding to request") + return } return diff --git a/services/attestation/2020-10-01/attestation/policycertificates.go b/services/attestation/2020-10-01/attestation/policycertificates.go index ed679307d4ff..83d4838ffa52 100644 --- a/services/attestation/2020-10-01/attestation/policycertificates.go +++ b/services/attestation/2020-10-01/attestation/policycertificates.go @@ -74,6 +74,7 @@ func (client PolicyCertificatesClient) Add(ctx context.Context, instanceURL stri result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.PolicyCertificatesClient", "Add", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client PolicyCertificatesClient) Get(ctx context.Context, instanceURL stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.PolicyCertificatesClient", "Get", resp, "Failure responding to request") + return } return @@ -228,6 +230,7 @@ func (client PolicyCertificatesClient) Remove(ctx context.Context, instanceURL s result, err = client.RemoveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.PolicyCertificatesClient", "Remove", resp, "Failure responding to request") + return } return diff --git a/services/attestation/2020-10-01/attestation/signingcertificates.go b/services/attestation/2020-10-01/attestation/signingcertificates.go index 49e93639707f..82078ed4d080 100644 --- a/services/attestation/2020-10-01/attestation/signingcertificates.go +++ b/services/attestation/2020-10-01/attestation/signingcertificates.go @@ -65,6 +65,7 @@ func (client SigningCertificatesClient) Get(ctx context.Context, instanceURL str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.SigningCertificatesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/attestation/mgmt/2018-09-01/attestation/operations.go b/services/attestation/mgmt/2018-09-01/attestation/operations.go index cb5fa926d9a3..58549bcb8c3c 100644 --- a/services/attestation/mgmt/2018-09-01/attestation/operations.go +++ b/services/attestation/mgmt/2018-09-01/attestation/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationList, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/attestation/mgmt/2018-09-01/attestation/providers.go b/services/attestation/mgmt/2018-09-01/attestation/providers.go index 1325d28530eb..5ed8d2688c95 100644 --- a/services/attestation/mgmt/2018-09-01/attestation/providers.go +++ b/services/attestation/mgmt/2018-09-01/attestation/providers.go @@ -88,6 +88,7 @@ func (client ProvidersClient) Create(ctx context.Context, resourceGroupName stri result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.ProvidersClient", "Create", resp, "Failure responding to request") + return } return @@ -175,6 +176,7 @@ func (client ProvidersClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.ProvidersClient", "Delete", resp, "Failure responding to request") + return } return @@ -259,6 +261,7 @@ func (client ProvidersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.ProvidersClient", "Get", resp, "Failure responding to request") + return } return @@ -341,6 +344,7 @@ func (client ProvidersClient) GetDefaultByLocation(ctx context.Context, location result, err = client.GetDefaultByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.ProvidersClient", "GetDefaultByLocation", resp, "Failure responding to request") + return } return @@ -418,6 +422,7 @@ func (client ProvidersClient) List(ctx context.Context) (result ProviderListResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.ProvidersClient", "List", resp, "Failure responding to request") + return } return @@ -500,6 +505,7 @@ func (client ProvidersClient) ListByResourceGroup(ctx context.Context, resourceG result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.ProvidersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -577,6 +583,7 @@ func (client ProvidersClient) ListDefault(ctx context.Context) (result ProviderL result, err = client.ListDefaultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.ProvidersClient", "ListDefault", resp, "Failure responding to request") + return } return @@ -661,6 +668,7 @@ func (client ProvidersClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.ProvidersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/attestation/mgmt/2020-10-01/attestation/operations.go b/services/attestation/mgmt/2020-10-01/attestation/operations.go index 3b018a01574c..52c599ff6db3 100644 --- a/services/attestation/mgmt/2020-10-01/attestation/operations.go +++ b/services/attestation/mgmt/2020-10-01/attestation/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationList, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/attestation/mgmt/2020-10-01/attestation/providers.go b/services/attestation/mgmt/2020-10-01/attestation/providers.go index e3fa227602db..99538e3e2e0d 100644 --- a/services/attestation/mgmt/2020-10-01/attestation/providers.go +++ b/services/attestation/mgmt/2020-10-01/attestation/providers.go @@ -88,6 +88,7 @@ func (client ProvidersClient) Create(ctx context.Context, resourceGroupName stri result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.ProvidersClient", "Create", resp, "Failure responding to request") + return } return @@ -175,6 +176,7 @@ func (client ProvidersClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.ProvidersClient", "Delete", resp, "Failure responding to request") + return } return @@ -259,6 +261,7 @@ func (client ProvidersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.ProvidersClient", "Get", resp, "Failure responding to request") + return } return @@ -341,6 +344,7 @@ func (client ProvidersClient) GetDefaultByLocation(ctx context.Context, location result, err = client.GetDefaultByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.ProvidersClient", "GetDefaultByLocation", resp, "Failure responding to request") + return } return @@ -418,6 +422,7 @@ func (client ProvidersClient) List(ctx context.Context) (result ProviderListResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.ProvidersClient", "List", resp, "Failure responding to request") + return } return @@ -500,6 +505,7 @@ func (client ProvidersClient) ListByResourceGroup(ctx context.Context, resourceG result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.ProvidersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -577,6 +583,7 @@ func (client ProvidersClient) ListDefault(ctx context.Context) (result ProviderL result, err = client.ListDefaultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.ProvidersClient", "ListDefault", resp, "Failure responding to request") + return } return @@ -661,6 +668,7 @@ func (client ProvidersClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "attestation.ProvidersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/authorization/mgmt/2015-07-01/authorization/classicadministrators.go b/services/authorization/mgmt/2015-07-01/authorization/classicadministrators.go index 332b5f86f9bc..e266f9bd4e00 100644 --- a/services/authorization/mgmt/2015-07-01/authorization/classicadministrators.go +++ b/services/authorization/mgmt/2015-07-01/authorization/classicadministrators.go @@ -74,6 +74,7 @@ func (client ClassicAdministratorsClient) List(ctx context.Context) (result Clas result.calr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.ClassicAdministratorsClient", "List", resp, "Failure responding to request") + return } if result.calr.hasNextLink() && result.calr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client ClassicAdministratorsClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.ClassicAdministratorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/authorization/mgmt/2015-07-01/authorization/globaladministrator.go b/services/authorization/mgmt/2015-07-01/authorization/globaladministrator.go index 4b4a3ce3f6ca..726be1622b35 100644 --- a/services/authorization/mgmt/2015-07-01/authorization/globaladministrator.go +++ b/services/authorization/mgmt/2015-07-01/authorization/globaladministrator.go @@ -73,6 +73,7 @@ func (client GlobalAdministratorClient) ElevateAccess(ctx context.Context) (resu result, err = client.ElevateAccessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.GlobalAdministratorClient", "ElevateAccess", resp, "Failure responding to request") + return } return diff --git a/services/authorization/mgmt/2015-07-01/authorization/permissions.go b/services/authorization/mgmt/2015-07-01/authorization/permissions.go index 65606f5b86de..e7b7e8b3cbb4 100644 --- a/services/authorization/mgmt/2015-07-01/authorization/permissions.go +++ b/services/authorization/mgmt/2015-07-01/authorization/permissions.go @@ -79,6 +79,7 @@ func (client PermissionsClient) ListForResource(ctx context.Context, resourceGro result.pgr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.PermissionsClient", "ListForResource", resp, "Failure responding to request") + return } if result.pgr.hasNextLink() && result.pgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client PermissionsClient) listForResourceNextResults(ctx context.Context, result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.PermissionsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -197,6 +199,7 @@ func (client PermissionsClient) ListForResourceGroup(ctx context.Context, resour result.pgr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.PermissionsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.pgr.hasNextLink() && result.pgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -260,6 +263,7 @@ func (client PermissionsClient) listForResourceGroupNextResults(ctx context.Cont result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.PermissionsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/authorization/mgmt/2015-07-01/authorization/provideroperationsmetadata.go b/services/authorization/mgmt/2015-07-01/authorization/provideroperationsmetadata.go index ab8f51455a1f..48fcc45c287c 100644 --- a/services/authorization/mgmt/2015-07-01/authorization/provideroperationsmetadata.go +++ b/services/authorization/mgmt/2015-07-01/authorization/provideroperationsmetadata.go @@ -77,6 +77,7 @@ func (client ProviderOperationsMetadataClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.ProviderOperationsMetadataClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client ProviderOperationsMetadataClient) List(ctx context.Context, APIVers result.pomlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.ProviderOperationsMetadataClient", "List", resp, "Failure responding to request") + return } if result.pomlr.hasNextLink() && result.pomlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -217,6 +219,7 @@ func (client ProviderOperationsMetadataClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.ProviderOperationsMetadataClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/authorization/mgmt/2015-07-01/authorization/roleassignments.go b/services/authorization/mgmt/2015-07-01/authorization/roleassignments.go index 0e53f7f10f05..96296b8cc626 100644 --- a/services/authorization/mgmt/2015-07-01/authorization/roleassignments.go +++ b/services/authorization/mgmt/2015-07-01/authorization/roleassignments.go @@ -90,6 +90,7 @@ func (client RoleAssignmentsClient) Create(ctx context.Context, scope string, ro result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "Create", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client RoleAssignmentsClient) CreateByID(ctx context.Context, roleAssignme result, err = client.CreateByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "CreateByID", resp, "Failure responding to request") + return } return @@ -253,6 +255,7 @@ func (client RoleAssignmentsClient) Delete(ctx context.Context, scope string, ro result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -329,6 +332,7 @@ func (client RoleAssignmentsClient) DeleteByID(ctx context.Context, roleAssignme result, err = client.DeleteByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "DeleteByID", resp, "Failure responding to request") + return } return @@ -402,6 +406,7 @@ func (client RoleAssignmentsClient) Get(ctx context.Context, scope string, roleA result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -478,6 +483,7 @@ func (client RoleAssignmentsClient) GetByID(ctx context.Context, roleAssignmentI result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -553,6 +559,7 @@ func (client RoleAssignmentsClient) List(ctx context.Context, filter string) (re result.ralr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "List", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -618,6 +625,7 @@ func (client RoleAssignmentsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -676,6 +684,7 @@ func (client RoleAssignmentsClient) ListForResource(ctx context.Context, resourc result.ralr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "ListForResource", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -746,6 +755,7 @@ func (client RoleAssignmentsClient) listForResourceNextResults(ctx context.Conte result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -800,6 +810,7 @@ func (client RoleAssignmentsClient) ListForResourceGroup(ctx context.Context, re result.ralr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -866,6 +877,7 @@ func (client RoleAssignmentsClient) listForResourceGroupNextResults(ctx context. result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -920,6 +932,7 @@ func (client RoleAssignmentsClient) ListForScope(ctx context.Context, scope stri result.ralr, err = client.ListForScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "ListForScope", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -985,6 +998,7 @@ func (client RoleAssignmentsClient) listForScopeNextResults(ctx context.Context, result, err = client.ListForScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "listForScopeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/authorization/mgmt/2015-07-01/authorization/roledefinitions.go b/services/authorization/mgmt/2015-07-01/authorization/roledefinitions.go index 61222d2873c4..d4437daa6956 100644 --- a/services/authorization/mgmt/2015-07-01/authorization/roledefinitions.go +++ b/services/authorization/mgmt/2015-07-01/authorization/roledefinitions.go @@ -76,6 +76,7 @@ func (client RoleDefinitionsClient) CreateOrUpdate(ctx context.Context, scope st result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client RoleDefinitionsClient) Delete(ctx context.Context, scope string, ro result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client RoleDefinitionsClient) Get(ctx context.Context, scope string, roleD result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +308,7 @@ func (client RoleDefinitionsClient) GetByID(ctx context.Context, roleDefinitionI result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -380,6 +384,7 @@ func (client RoleDefinitionsClient) List(ctx context.Context, scope string, filt result.rdlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "List", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -445,6 +450,7 @@ func (client RoleDefinitionsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/automation/mgmt/2015-10-31/automation/account.go b/services/automation/mgmt/2015-10-31/automation/account.go index 32de550ac883..143b5fccaa32 100644 --- a/services/automation/mgmt/2015-10-31/automation/account.go +++ b/services/automation/mgmt/2015-10-31/automation/account.go @@ -82,6 +82,7 @@ func (client AccountClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client AccountClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "Delete", resp, "Failure responding to request") + return } return @@ -249,6 +251,7 @@ func (client AccountClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +325,7 @@ func (client AccountClient) List(ctx context.Context) (result AccountListResultP result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +388,7 @@ func (client AccountClient) listNextResults(ctx context.Context, lastResults Acc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +448,7 @@ func (client AccountClient) ListByResourceGroup(ctx context.Context, resourceGro result.alr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -506,6 +512,7 @@ func (client AccountClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -566,6 +573,7 @@ func (client AccountClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/automation/mgmt/2015-10-31/automation/activity.go b/services/automation/mgmt/2015-10-31/automation/activity.go index 5b9fe1af4b40..818c8ec6adfe 100644 --- a/services/automation/mgmt/2015-10-31/automation/activity.go +++ b/services/automation/mgmt/2015-10-31/automation/activity.go @@ -83,6 +83,7 @@ func (client ActivityClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ActivityClient", "Get", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client ActivityClient) ListByModule(ctx context.Context, resourceGroupName result.alr, err = client.ListByModuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ActivityClient", "ListByModule", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -235,6 +237,7 @@ func (client ActivityClient) listByModuleNextResults(ctx context.Context, lastRe result, err = client.ListByModuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ActivityClient", "listByModuleNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/automation/mgmt/2015-10-31/automation/agentregistrationinformation.go b/services/automation/mgmt/2015-10-31/automation/agentregistrationinformation.go index f1cf5d37fc1c..fd0956fe9f22 100644 --- a/services/automation/mgmt/2015-10-31/automation/agentregistrationinformation.go +++ b/services/automation/mgmt/2015-10-31/automation/agentregistrationinformation.go @@ -82,6 +82,7 @@ func (client AgentRegistrationInformationClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AgentRegistrationInformationClient", "Get", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client AgentRegistrationInformationClient) RegenerateKey(ctx context.Conte result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AgentRegistrationInformationClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/automation/mgmt/2015-10-31/automation/certificate.go b/services/automation/mgmt/2015-10-31/automation/certificate.go index a3c4b779ded0..6c02e1644a96 100644 --- a/services/automation/mgmt/2015-10-31/automation/certificate.go +++ b/services/automation/mgmt/2015-10-31/automation/certificate.go @@ -87,6 +87,7 @@ func (client CertificateClient) CreateOrUpdate(ctx context.Context, resourceGrou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CertificateClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client CertificateClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CertificateClient", "Delete", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client CertificateClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -343,6 +346,7 @@ func (client CertificateClient) ListByAutomationAccount(ctx context.Context, res result.clr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CertificateClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -407,6 +411,7 @@ func (client CertificateClient) listByAutomationAccountNextResults(ctx context.C result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CertificateClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -468,6 +473,7 @@ func (client CertificateClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CertificateClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/automation/mgmt/2015-10-31/automation/connection.go b/services/automation/mgmt/2015-10-31/automation/connection.go index 1ccc630162e7..67248853885b 100644 --- a/services/automation/mgmt/2015-10-31/automation/connection.go +++ b/services/automation/mgmt/2015-10-31/automation/connection.go @@ -87,6 +87,7 @@ func (client ConnectionClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client ConnectionClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionClient", "Delete", resp, "Failure responding to request") + return } return @@ -259,6 +261,7 @@ func (client ConnectionClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +347,7 @@ func (client ConnectionClient) ListByAutomationAccount(ctx context.Context, reso result.clr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -408,6 +412,7 @@ func (client ConnectionClient) listByAutomationAccountNextResults(ctx context.Co result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -469,6 +474,7 @@ func (client ConnectionClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/automation/mgmt/2015-10-31/automation/connectiontype.go b/services/automation/mgmt/2015-10-31/automation/connectiontype.go index 0a219262864f..8288c20681f9 100644 --- a/services/automation/mgmt/2015-10-31/automation/connectiontype.go +++ b/services/automation/mgmt/2015-10-31/automation/connectiontype.go @@ -87,6 +87,7 @@ func (client ConnectionTypeClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionTypeClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client ConnectionTypeClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionTypeClient", "Delete", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client ConnectionTypeClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionTypeClient", "Get", resp, "Failure responding to request") + return } return @@ -343,6 +346,7 @@ func (client ConnectionTypeClient) ListByAutomationAccount(ctx context.Context, result.ctlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionTypeClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.ctlr.hasNextLink() && result.ctlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -407,6 +411,7 @@ func (client ConnectionTypeClient) listByAutomationAccountNextResults(ctx contex result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionTypeClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/automation/mgmt/2015-10-31/automation/credential.go b/services/automation/mgmt/2015-10-31/automation/credential.go index 8351a1a68c53..15dcf4db1980 100644 --- a/services/automation/mgmt/2015-10-31/automation/credential.go +++ b/services/automation/mgmt/2015-10-31/automation/credential.go @@ -89,6 +89,7 @@ func (client CredentialClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CredentialClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client CredentialClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CredentialClient", "Delete", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client CredentialClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CredentialClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +348,7 @@ func (client CredentialClient) ListByAutomationAccount(ctx context.Context, reso result.clr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CredentialClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -409,6 +413,7 @@ func (client CredentialClient) listByAutomationAccountNextResults(ctx context.Co result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CredentialClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -470,6 +475,7 @@ func (client CredentialClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CredentialClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/automation/mgmt/2015-10-31/automation/dsccompilationjob.go b/services/automation/mgmt/2015-10-31/automation/dsccompilationjob.go index df0409480d0d..3e30f01d5e84 100644 --- a/services/automation/mgmt/2015-10-31/automation/dsccompilationjob.go +++ b/services/automation/mgmt/2015-10-31/automation/dsccompilationjob.go @@ -88,6 +88,7 @@ func (client DscCompilationJobClient) Create(ctx context.Context, resourceGroupN result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscCompilationJobClient", "Create", resp, "Failure responding to request") + return } return @@ -175,6 +176,7 @@ func (client DscCompilationJobClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscCompilationJobClient", "Get", resp, "Failure responding to request") + return } return @@ -261,6 +263,7 @@ func (client DscCompilationJobClient) GetStream(ctx context.Context, resourceGro result, err = client.GetStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscCompilationJobClient", "GetStream", resp, "Failure responding to request") + return } return @@ -348,6 +351,7 @@ func (client DscCompilationJobClient) ListByAutomationAccount(ctx context.Contex result.dcjlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscCompilationJobClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.dcjlr.hasNextLink() && result.dcjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -415,6 +419,7 @@ func (client DscCompilationJobClient) listByAutomationAccountNextResults(ctx con result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscCompilationJobClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/automation/mgmt/2015-10-31/automation/dsccompilationjobstream.go b/services/automation/mgmt/2015-10-31/automation/dsccompilationjobstream.go index 177aa5db0eb8..beedd9a64783 100644 --- a/services/automation/mgmt/2015-10-31/automation/dsccompilationjobstream.go +++ b/services/automation/mgmt/2015-10-31/automation/dsccompilationjobstream.go @@ -84,6 +84,7 @@ func (client DscCompilationJobStreamClient) ListByJob(ctx context.Context, resou result, err = client.ListByJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscCompilationJobStreamClient", "ListByJob", resp, "Failure responding to request") + return } return diff --git a/services/automation/mgmt/2015-10-31/automation/dscconfiguration.go b/services/automation/mgmt/2015-10-31/automation/dscconfiguration.go index 9a1de0fe9239..195bb36fb42a 100644 --- a/services/automation/mgmt/2015-10-31/automation/dscconfiguration.go +++ b/services/automation/mgmt/2015-10-31/automation/dscconfiguration.go @@ -93,6 +93,7 @@ func (client DscConfigurationClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client DscConfigurationClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "Delete", resp, "Failure responding to request") + return } return @@ -264,6 +266,7 @@ func (client DscConfigurationClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client DscConfigurationClient) GetContent(ctx context.Context, resourceGro result, err = client.GetContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "GetContent", resp, "Failure responding to request") + return } return @@ -437,6 +441,7 @@ func (client DscConfigurationClient) ListByAutomationAccount(ctx context.Context result.dclr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.dclr.hasNextLink() && result.dclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -513,6 +518,7 @@ func (client DscConfigurationClient) listByAutomationAccountNextResults(ctx cont result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -574,6 +580,7 @@ func (client DscConfigurationClient) Update(ctx context.Context, resourceGroupNa result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/automation/mgmt/2015-10-31/automation/dscnode.go b/services/automation/mgmt/2015-10-31/automation/dscnode.go index 23f2dfa0b845..bb2bbbf8cfe0 100644 --- a/services/automation/mgmt/2015-10-31/automation/dscnode.go +++ b/services/automation/mgmt/2015-10-31/automation/dscnode.go @@ -82,6 +82,7 @@ func (client DscNodeClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeClient", "Delete", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client DscNodeClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeClient", "Get", resp, "Failure responding to request") + return } return @@ -253,6 +255,7 @@ func (client DscNodeClient) ListByAutomationAccount(ctx context.Context, resourc result.dnlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.dnlr.hasNextLink() && result.dnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -320,6 +323,7 @@ func (client DscNodeClient) listByAutomationAccountNextResults(ctx context.Conte result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -381,6 +385,7 @@ func (client DscNodeClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/automation/mgmt/2015-10-31/automation/dscnodeconfiguration.go b/services/automation/mgmt/2015-10-31/automation/dscnodeconfiguration.go index 0e4d61ee0d78..78c97ff40b4a 100644 --- a/services/automation/mgmt/2015-10-31/automation/dscnodeconfiguration.go +++ b/services/automation/mgmt/2015-10-31/automation/dscnodeconfiguration.go @@ -93,6 +93,7 @@ func (client DscNodeConfigurationClient) CreateOrUpdate(ctx context.Context, res result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeConfigurationClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client DscNodeConfigurationClient) Delete(ctx context.Context, resourceGro result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeConfigurationClient", "Delete", resp, "Failure responding to request") + return } return @@ -264,6 +266,7 @@ func (client DscNodeConfigurationClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeConfigurationClient", "Get", resp, "Failure responding to request") + return } return @@ -350,6 +353,7 @@ func (client DscNodeConfigurationClient) ListByAutomationAccount(ctx context.Con result.dnclr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeConfigurationClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.dnclr.hasNextLink() && result.dnclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -417,6 +421,7 @@ func (client DscNodeConfigurationClient) listByAutomationAccountNextResults(ctx result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeConfigurationClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/automation/mgmt/2015-10-31/automation/fields.go b/services/automation/mgmt/2015-10-31/automation/fields.go index 703c3d807746..94c02fbee8c7 100644 --- a/services/automation/mgmt/2015-10-31/automation/fields.go +++ b/services/automation/mgmt/2015-10-31/automation/fields.go @@ -83,6 +83,7 @@ func (client FieldsClient) ListByType(ctx context.Context, resourceGroupName str result, err = client.ListByTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.FieldsClient", "ListByType", resp, "Failure responding to request") + return } return diff --git a/services/automation/mgmt/2015-10-31/automation/hybridrunbookworkergroup.go b/services/automation/mgmt/2015-10-31/automation/hybridrunbookworkergroup.go index 660479997c98..ff43cb221b99 100644 --- a/services/automation/mgmt/2015-10-31/automation/hybridrunbookworkergroup.go +++ b/services/automation/mgmt/2015-10-31/automation/hybridrunbookworkergroup.go @@ -83,6 +83,7 @@ func (client HybridRunbookWorkerGroupClient) Delete(ctx context.Context, resourc result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.HybridRunbookWorkerGroupClient", "Delete", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client HybridRunbookWorkerGroupClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.HybridRunbookWorkerGroupClient", "Get", resp, "Failure responding to request") + return } return @@ -253,6 +255,7 @@ func (client HybridRunbookWorkerGroupClient) ListByAutomationAccount(ctx context result.hrwglr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.HybridRunbookWorkerGroupClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.hrwglr.hasNextLink() && result.hrwglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -320,6 +323,7 @@ func (client HybridRunbookWorkerGroupClient) listByAutomationAccountNextResults( result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.HybridRunbookWorkerGroupClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -381,6 +385,7 @@ func (client HybridRunbookWorkerGroupClient) Update(ctx context.Context, resourc result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.HybridRunbookWorkerGroupClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/automation/mgmt/2015-10-31/automation/job.go b/services/automation/mgmt/2015-10-31/automation/job.go index 688897c92dd1..df8a28d66e80 100644 --- a/services/automation/mgmt/2015-10-31/automation/job.go +++ b/services/automation/mgmt/2015-10-31/automation/job.go @@ -87,6 +87,7 @@ func (client JobClient) Create(ctx context.Context, resourceGroupName string, au result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "Create", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client JobClient) Get(ctx context.Context, resourceGroupName string, autom result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "Get", resp, "Failure responding to request") + return } return @@ -259,6 +261,7 @@ func (client JobClient) GetOutput(ctx context.Context, resourceGroupName string, result, err = client.GetOutputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "GetOutput", resp, "Failure responding to request") + return } return @@ -343,6 +346,7 @@ func (client JobClient) GetRunbookContent(ctx context.Context, resourceGroupName result, err = client.GetRunbookContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "GetRunbookContent", resp, "Failure responding to request") + return } return @@ -428,6 +432,7 @@ func (client JobClient) ListByAutomationAccount(ctx context.Context, resourceGro result.jlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.jlr.hasNextLink() && result.jlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -495,6 +500,7 @@ func (client JobClient) listByAutomationAccountNextResults(ctx context.Context, result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -555,6 +561,7 @@ func (client JobClient) Resume(ctx context.Context, resourceGroupName string, au result, err = client.ResumeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "Resume", resp, "Failure responding to request") + return } return @@ -639,6 +646,7 @@ func (client JobClient) Stop(ctx context.Context, resourceGroupName string, auto result, err = client.StopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "Stop", resp, "Failure responding to request") + return } return @@ -723,6 +731,7 @@ func (client JobClient) Suspend(ctx context.Context, resourceGroupName string, a result, err = client.SuspendResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "Suspend", resp, "Failure responding to request") + return } return diff --git a/services/automation/mgmt/2015-10-31/automation/jobschedule.go b/services/automation/mgmt/2015-10-31/automation/jobschedule.go index 76e9521941ee..8fd0ba1700e2 100644 --- a/services/automation/mgmt/2015-10-31/automation/jobschedule.go +++ b/services/automation/mgmt/2015-10-31/automation/jobschedule.go @@ -89,6 +89,7 @@ func (client JobScheduleClient) Create(ctx context.Context, resourceGroupName st result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobScheduleClient", "Create", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client JobScheduleClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobScheduleClient", "Delete", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client JobScheduleClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobScheduleClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +349,7 @@ func (client JobScheduleClient) ListByAutomationAccount(ctx context.Context, res result.jslr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobScheduleClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.jslr.hasNextLink() && result.jslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -413,6 +417,7 @@ func (client JobScheduleClient) listByAutomationAccountNextResults(ctx context.C result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobScheduleClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/automation/mgmt/2015-10-31/automation/jobstream.go b/services/automation/mgmt/2015-10-31/automation/jobstream.go index c1ebddd1ed28..2e46459cb6e8 100644 --- a/services/automation/mgmt/2015-10-31/automation/jobstream.go +++ b/services/automation/mgmt/2015-10-31/automation/jobstream.go @@ -83,6 +83,7 @@ func (client JobStreamClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobStreamClient", "Get", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client JobStreamClient) ListByJob(ctx context.Context, resourceGroupName s result.jslr, err = client.ListByJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobStreamClient", "ListByJob", resp, "Failure responding to request") + return } if result.jslr.hasNextLink() && result.jslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -239,6 +241,7 @@ func (client JobStreamClient) listByJobNextResults(ctx context.Context, lastResu result, err = client.ListByJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobStreamClient", "listByJobNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/automation/mgmt/2015-10-31/automation/keys.go b/services/automation/mgmt/2015-10-31/automation/keys.go index e5ebfaa4f41f..5648416b80f2 100644 --- a/services/automation/mgmt/2015-10-31/automation/keys.go +++ b/services/automation/mgmt/2015-10-31/automation/keys.go @@ -81,6 +81,7 @@ func (client KeysClient) ListByAutomationAccount(ctx context.Context, resourceGr result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.KeysClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } return diff --git a/services/automation/mgmt/2015-10-31/automation/linkedworkspace.go b/services/automation/mgmt/2015-10-31/automation/linkedworkspace.go index 07b98aa047cf..f8ac9fe291f0 100644 --- a/services/automation/mgmt/2015-10-31/automation/linkedworkspace.go +++ b/services/automation/mgmt/2015-10-31/automation/linkedworkspace.go @@ -81,6 +81,7 @@ func (client LinkedWorkspaceClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.LinkedWorkspaceClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/automation/mgmt/2015-10-31/automation/module.go b/services/automation/mgmt/2015-10-31/automation/module.go index 79f9841428a9..cb4fa5a041b2 100644 --- a/services/automation/mgmt/2015-10-31/automation/module.go +++ b/services/automation/mgmt/2015-10-31/automation/module.go @@ -92,6 +92,7 @@ func (client ModuleClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ModuleClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client ModuleClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ModuleClient", "Delete", resp, "Failure responding to request") + return } return @@ -263,6 +265,7 @@ func (client ModuleClient) Get(ctx context.Context, resourceGroupName string, au result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ModuleClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +351,7 @@ func (client ModuleClient) ListByAutomationAccount(ctx context.Context, resource result.mlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ModuleClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -412,6 +416,7 @@ func (client ModuleClient) listByAutomationAccountNextResults(ctx context.Contex result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ModuleClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -473,6 +478,7 @@ func (client ModuleClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ModuleClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/automation/mgmt/2015-10-31/automation/nodereports.go b/services/automation/mgmt/2015-10-31/automation/nodereports.go index 4df1ed5fb246..fa6faee89d46 100644 --- a/services/automation/mgmt/2015-10-31/automation/nodereports.go +++ b/services/automation/mgmt/2015-10-31/automation/nodereports.go @@ -83,6 +83,7 @@ func (client NodeReportsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.NodeReportsClient", "Get", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client NodeReportsClient) GetContent(ctx context.Context, resourceGroupNam result, err = client.GetContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.NodeReportsClient", "GetContent", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client NodeReportsClient) ListByNode(ctx context.Context, resourceGroupNam result.dnrlr, err = client.ListByNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.NodeReportsClient", "ListByNode", resp, "Failure responding to request") + return } if result.dnrlr.hasNextLink() && result.dnrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -326,6 +329,7 @@ func (client NodeReportsClient) listByNodeNextResults(ctx context.Context, lastR result, err = client.ListByNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.NodeReportsClient", "listByNodeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/automation/mgmt/2015-10-31/automation/objectdatatypes.go b/services/automation/mgmt/2015-10-31/automation/objectdatatypes.go index 5f9aae09d099..f7035e2ab922 100644 --- a/services/automation/mgmt/2015-10-31/automation/objectdatatypes.go +++ b/services/automation/mgmt/2015-10-31/automation/objectdatatypes.go @@ -83,6 +83,7 @@ func (client ObjectDataTypesClient) ListFieldsByModuleAndType(ctx context.Contex result, err = client.ListFieldsByModuleAndTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ObjectDataTypesClient", "ListFieldsByModuleAndType", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client ObjectDataTypesClient) ListFieldsByType(ctx context.Context, resour result, err = client.ListFieldsByTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ObjectDataTypesClient", "ListFieldsByType", resp, "Failure responding to request") + return } return diff --git a/services/automation/mgmt/2015-10-31/automation/operations.go b/services/automation/mgmt/2015-10-31/automation/operations.go index 38eea3485734..2451478f7f61 100644 --- a/services/automation/mgmt/2015-10-31/automation/operations.go +++ b/services/automation/mgmt/2015-10-31/automation/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/automation/mgmt/2015-10-31/automation/runbook.go b/services/automation/mgmt/2015-10-31/automation/runbook.go index 727b52477aec..49e0c7ede06c 100644 --- a/services/automation/mgmt/2015-10-31/automation/runbook.go +++ b/services/automation/mgmt/2015-10-31/automation/runbook.go @@ -101,6 +101,7 @@ func (client RunbookClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client RunbookClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "Delete", resp, "Failure responding to request") + return } return @@ -272,6 +274,7 @@ func (client RunbookClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "Get", resp, "Failure responding to request") + return } return @@ -357,6 +360,7 @@ func (client RunbookClient) GetContent(ctx context.Context, resourceGroupName st result, err = client.GetContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "GetContent", resp, "Failure responding to request") + return } return @@ -441,6 +445,7 @@ func (client RunbookClient) ListByAutomationAccount(ctx context.Context, resourc result.rlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -505,6 +510,7 @@ func (client RunbookClient) listByAutomationAccountNextResults(ctx context.Conte result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -566,6 +572,7 @@ func (client RunbookClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/automation/mgmt/2015-10-31/automation/runbookdraft.go b/services/automation/mgmt/2015-10-31/automation/runbookdraft.go index a16805227a88..fe262de4ed16 100644 --- a/services/automation/mgmt/2015-10-31/automation/runbookdraft.go +++ b/services/automation/mgmt/2015-10-31/automation/runbookdraft.go @@ -83,6 +83,7 @@ func (client RunbookDraftClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookDraftClient", "Get", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client RunbookDraftClient) GetContent(ctx context.Context, resourceGroupNa result, err = client.GetContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookDraftClient", "GetContent", resp, "Failure responding to request") + return } return @@ -424,6 +426,7 @@ func (client RunbookDraftClient) UndoEdit(ctx context.Context, resourceGroupName result, err = client.UndoEditResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookDraftClient", "UndoEdit", resp, "Failure responding to request") + return } return diff --git a/services/automation/mgmt/2015-10-31/automation/schedule.go b/services/automation/mgmt/2015-10-31/automation/schedule.go index 0eb871fb7bab..0c8c76a75eaf 100644 --- a/services/automation/mgmt/2015-10-31/automation/schedule.go +++ b/services/automation/mgmt/2015-10-31/automation/schedule.go @@ -87,6 +87,7 @@ func (client ScheduleClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ScheduleClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client ScheduleClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ScheduleClient", "Delete", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client ScheduleClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ScheduleClient", "Get", resp, "Failure responding to request") + return } return @@ -343,6 +346,7 @@ func (client ScheduleClient) ListByAutomationAccount(ctx context.Context, resour result.slr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ScheduleClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -407,6 +411,7 @@ func (client ScheduleClient) listByAutomationAccountNextResults(ctx context.Cont result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ScheduleClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -468,6 +473,7 @@ func (client ScheduleClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ScheduleClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/automation/mgmt/2015-10-31/automation/statistics.go b/services/automation/mgmt/2015-10-31/automation/statistics.go index 3f01b08e60c1..5a22635b66d9 100644 --- a/services/automation/mgmt/2015-10-31/automation/statistics.go +++ b/services/automation/mgmt/2015-10-31/automation/statistics.go @@ -82,6 +82,7 @@ func (client StatisticsClient) ListByAutomationAccount(ctx context.Context, reso result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.StatisticsClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } return diff --git a/services/automation/mgmt/2015-10-31/automation/testjob.go b/services/automation/mgmt/2015-10-31/automation/testjob.go index 4fda29c35b00..69ce5d220b39 100644 --- a/services/automation/mgmt/2015-10-31/automation/testjob.go +++ b/services/automation/mgmt/2015-10-31/automation/testjob.go @@ -83,6 +83,7 @@ func (client TestJobClient) Create(ctx context.Context, resourceGroupName string result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobClient", "Create", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client TestJobClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobClient", "Get", resp, "Failure responding to request") + return } return @@ -255,6 +257,7 @@ func (client TestJobClient) Resume(ctx context.Context, resourceGroupName string result, err = client.ResumeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobClient", "Resume", resp, "Failure responding to request") + return } return @@ -339,6 +342,7 @@ func (client TestJobClient) Stop(ctx context.Context, resourceGroupName string, result, err = client.StopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobClient", "Stop", resp, "Failure responding to request") + return } return @@ -423,6 +427,7 @@ func (client TestJobClient) Suspend(ctx context.Context, resourceGroupName strin result, err = client.SuspendResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobClient", "Suspend", resp, "Failure responding to request") + return } return diff --git a/services/automation/mgmt/2015-10-31/automation/testjobstreams.go b/services/automation/mgmt/2015-10-31/automation/testjobstreams.go index 4f2291f6f6f6..e5b08473570b 100644 --- a/services/automation/mgmt/2015-10-31/automation/testjobstreams.go +++ b/services/automation/mgmt/2015-10-31/automation/testjobstreams.go @@ -83,6 +83,7 @@ func (client TestJobStreamsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobStreamsClient", "Get", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client TestJobStreamsClient) ListByTestJob(ctx context.Context, resourceGr result.jslr, err = client.ListByTestJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobStreamsClient", "ListByTestJob", resp, "Failure responding to request") + return } if result.jslr.hasNextLink() && result.jslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -239,6 +241,7 @@ func (client TestJobStreamsClient) listByTestJobNextResults(ctx context.Context, result, err = client.ListByTestJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobStreamsClient", "listByTestJobNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/automation/mgmt/2015-10-31/automation/usages.go b/services/automation/mgmt/2015-10-31/automation/usages.go index 35c5b16c5c44..735616a2a66a 100644 --- a/services/automation/mgmt/2015-10-31/automation/usages.go +++ b/services/automation/mgmt/2015-10-31/automation/usages.go @@ -81,6 +81,7 @@ func (client UsagesClient) ListByAutomationAccount(ctx context.Context, resource result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.UsagesClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } return diff --git a/services/automation/mgmt/2015-10-31/automation/variable.go b/services/automation/mgmt/2015-10-31/automation/variable.go index 15da745866e6..1de88df00569 100644 --- a/services/automation/mgmt/2015-10-31/automation/variable.go +++ b/services/automation/mgmt/2015-10-31/automation/variable.go @@ -86,6 +86,7 @@ func (client VariableClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.VariableClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client VariableClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.VariableClient", "Delete", resp, "Failure responding to request") + return } return @@ -257,6 +259,7 @@ func (client VariableClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.VariableClient", "Get", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client VariableClient) ListByAutomationAccount(ctx context.Context, resour result.vlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.VariableClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.vlr.hasNextLink() && result.vlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -406,6 +410,7 @@ func (client VariableClient) listByAutomationAccountNextResults(ctx context.Cont result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.VariableClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -467,6 +472,7 @@ func (client VariableClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.VariableClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/automation/mgmt/2015-10-31/automation/webhook.go b/services/automation/mgmt/2015-10-31/automation/webhook.go index e9b060a54150..bc74900a412d 100644 --- a/services/automation/mgmt/2015-10-31/automation/webhook.go +++ b/services/automation/mgmt/2015-10-31/automation/webhook.go @@ -86,6 +86,7 @@ func (client WebhookClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client WebhookClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "Delete", resp, "Failure responding to request") + return } return @@ -256,6 +258,7 @@ func (client WebhookClient) GenerateURI(ctx context.Context, resourceGroupName s result, err = client.GenerateURIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "GenerateURI", resp, "Failure responding to request") + return } return @@ -340,6 +343,7 @@ func (client WebhookClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "Get", resp, "Failure responding to request") + return } return @@ -426,6 +430,7 @@ func (client WebhookClient) ListByAutomationAccount(ctx context.Context, resourc result.wlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -493,6 +498,7 @@ func (client WebhookClient) listByAutomationAccountNextResults(ctx context.Conte result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -554,6 +560,7 @@ func (client WebhookClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/avs/mgmt/2020-03-20/avs/authorizations.go b/services/avs/mgmt/2020-03-20/avs/authorizations.go index e2f414dd7450..67781ca9fbef 100644 --- a/services/avs/mgmt/2020-03-20/avs/authorizations.go +++ b/services/avs/mgmt/2020-03-20/avs/authorizations.go @@ -261,6 +261,7 @@ func (client AuthorizationsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.AuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +349,7 @@ func (client AuthorizationsClient) List(ctx context.Context, resourceGroupName s result.eral, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.AuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.eral.hasNextLink() && result.eral.IsEmpty() { err = result.NextWithContext(ctx) @@ -412,6 +414,7 @@ func (client AuthorizationsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.AuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/avs/mgmt/2020-03-20/avs/clusters.go b/services/avs/mgmt/2020-03-20/avs/clusters.go index 0aac872a7074..c5af1ded036d 100644 --- a/services/avs/mgmt/2020-03-20/avs/clusters.go +++ b/services/avs/mgmt/2020-03-20/avs/clusters.go @@ -264,6 +264,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -351,6 +352,7 @@ func (client ClustersClient) List(ctx context.Context, resourceGroupName string, result.cl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.ClustersClient", "List", resp, "Failure responding to request") + return } if result.cl.hasNextLink() && result.cl.IsEmpty() { err = result.NextWithContext(ctx) @@ -415,6 +417,7 @@ func (client ClustersClient) listNextResults(ctx context.Context, lastResults Cl result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.ClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/avs/mgmt/2020-03-20/avs/hcxenterprisesites.go b/services/avs/mgmt/2020-03-20/avs/hcxenterprisesites.go index 51e67a43883b..d9a5c4ead864 100644 --- a/services/avs/mgmt/2020-03-20/avs/hcxenterprisesites.go +++ b/services/avs/mgmt/2020-03-20/avs/hcxenterprisesites.go @@ -86,6 +86,7 @@ func (client HcxEnterpriseSitesClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.HcxEnterpriseSitesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client HcxEnterpriseSitesClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.HcxEnterpriseSitesClient", "Delete", resp, "Failure responding to request") + return } return @@ -262,6 +264,7 @@ func (client HcxEnterpriseSitesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.HcxEnterpriseSitesClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client HcxEnterpriseSitesClient) List(ctx context.Context, resourceGroupNa result.hesl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.HcxEnterpriseSitesClient", "List", resp, "Failure responding to request") + return } if result.hesl.hasNextLink() && result.hesl.IsEmpty() { err = result.NextWithContext(ctx) @@ -413,6 +417,7 @@ func (client HcxEnterpriseSitesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.HcxEnterpriseSitesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/avs/mgmt/2020-03-20/avs/locations.go b/services/avs/mgmt/2020-03-20/avs/locations.go index 27fa5caec5ff..17c3a5bdfb91 100644 --- a/services/avs/mgmt/2020-03-20/avs/locations.go +++ b/services/avs/mgmt/2020-03-20/avs/locations.go @@ -78,6 +78,7 @@ func (client LocationsClient) CheckQuotaAvailability(ctx context.Context, locati result, err = client.CheckQuotaAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.LocationsClient", "CheckQuotaAvailability", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client LocationsClient) CheckTrialAvailability(ctx context.Context, locati result, err = client.CheckTrialAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.LocationsClient", "CheckTrialAvailability", resp, "Failure responding to request") + return } return diff --git a/services/avs/mgmt/2020-03-20/avs/operations.go b/services/avs/mgmt/2020-03-20/avs/operations.go index 92a6e49d4552..17102ecd8ad0 100644 --- a/services/avs/mgmt/2020-03-20/avs/operations.go +++ b/services/avs/mgmt/2020-03-20/avs/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListPa result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/avs/mgmt/2020-03-20/avs/privateclouds.go b/services/avs/mgmt/2020-03-20/avs/privateclouds.go index 30fab1aa481e..68aa4b7ce6fb 100644 --- a/services/avs/mgmt/2020-03-20/avs/privateclouds.go +++ b/services/avs/mgmt/2020-03-20/avs/privateclouds.go @@ -260,6 +260,7 @@ func (client PrivateCloudsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.PrivateCloudsClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +346,7 @@ func (client PrivateCloudsClient) List(ctx context.Context, resourceGroupName st result.pcl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.PrivateCloudsClient", "List", resp, "Failure responding to request") + return } if result.pcl.hasNextLink() && result.pcl.IsEmpty() { err = result.NextWithContext(ctx) @@ -408,6 +410,7 @@ func (client PrivateCloudsClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.PrivateCloudsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -469,6 +472,7 @@ func (client PrivateCloudsClient) ListAdminCredentials(ctx context.Context, reso result, err = client.ListAdminCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.PrivateCloudsClient", "ListAdminCredentials", resp, "Failure responding to request") + return } return @@ -548,6 +552,7 @@ func (client PrivateCloudsClient) ListInSubscription(ctx context.Context) (resul result.pcl, err = client.ListInSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.PrivateCloudsClient", "ListInSubscription", resp, "Failure responding to request") + return } if result.pcl.hasNextLink() && result.pcl.IsEmpty() { err = result.NextWithContext(ctx) @@ -610,6 +615,7 @@ func (client PrivateCloudsClient) listInSubscriptionNextResults(ctx context.Cont result, err = client.ListInSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.PrivateCloudsClient", "listInSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/azurestack/mgmt/2017-06-01/azurestack/cloudmanifestfile.go b/services/azurestack/mgmt/2017-06-01/azurestack/cloudmanifestfile.go index c35cd17a1c18..f1202396ea58 100644 --- a/services/azurestack/mgmt/2017-06-01/azurestack/cloudmanifestfile.go +++ b/services/azurestack/mgmt/2017-06-01/azurestack/cloudmanifestfile.go @@ -73,6 +73,7 @@ func (client CloudManifestFileClient) Get(ctx context.Context, verificationVersi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestack.CloudManifestFileClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client CloudManifestFileClient) List(ctx context.Context) (result CloudMan result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestack.CloudManifestFileClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/azurestack/mgmt/2017-06-01/azurestack/customersubscriptions.go b/services/azurestack/mgmt/2017-06-01/azurestack/customersubscriptions.go index ee2b986e992f..0e86042ac212 100644 --- a/services/azurestack/mgmt/2017-06-01/azurestack/customersubscriptions.go +++ b/services/azurestack/mgmt/2017-06-01/azurestack/customersubscriptions.go @@ -75,6 +75,7 @@ func (client CustomerSubscriptionsClient) Create(ctx context.Context, resourceGr result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestack.CustomerSubscriptionsClient", "Create", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client CustomerSubscriptionsClient) Delete(ctx context.Context, resourceGr result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestack.CustomerSubscriptionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -230,6 +232,7 @@ func (client CustomerSubscriptionsClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestack.CustomerSubscriptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +310,7 @@ func (client CustomerSubscriptionsClient) List(ctx context.Context, resourceGrou result.csl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestack.CustomerSubscriptionsClient", "List", resp, "Failure responding to request") + return } if result.csl.hasNextLink() && result.csl.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +375,7 @@ func (client CustomerSubscriptionsClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestack.CustomerSubscriptionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/azurestack/mgmt/2017-06-01/azurestack/operations.go b/services/azurestack/mgmt/2017-06-01/azurestack/operations.go index 31b29166eaa0..16d72b548c98 100644 --- a/services/azurestack/mgmt/2017-06-01/azurestack/operations.go +++ b/services/azurestack/mgmt/2017-06-01/azurestack/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListPa result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestack.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestack.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/azurestack/mgmt/2017-06-01/azurestack/products.go b/services/azurestack/mgmt/2017-06-01/azurestack/products.go index e07470358854..df598788a4fa 100644 --- a/services/azurestack/mgmt/2017-06-01/azurestack/products.go +++ b/services/azurestack/mgmt/2017-06-01/azurestack/products.go @@ -73,6 +73,7 @@ func (client ProductsClient) Get(ctx context.Context, resourceGroup string, regi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestack.ProductsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ProductsClient) GetProduct(ctx context.Context, resourceGroup strin result, err = client.GetProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestack.ProductsClient", "GetProduct", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client ProductsClient) GetProducts(ctx context.Context, resourceGroup stri result, err = client.GetProductsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestack.ProductsClient", "GetProducts", resp, "Failure responding to request") + return } return @@ -318,6 +321,7 @@ func (client ProductsClient) List(ctx context.Context, resourceGroup string, reg result.pl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestack.ProductsClient", "List", resp, "Failure responding to request") + return } if result.pl.hasNextLink() && result.pl.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +386,7 @@ func (client ProductsClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestack.ProductsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -434,6 +439,7 @@ func (client ProductsClient) ListDetails(ctx context.Context, resourceGroup stri result, err = client.ListDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestack.ProductsClient", "ListDetails", resp, "Failure responding to request") + return } return @@ -512,6 +518,7 @@ func (client ProductsClient) UploadLog(ctx context.Context, resourceGroup string result, err = client.UploadLogResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestack.ProductsClient", "UploadLog", resp, "Failure responding to request") + return } return diff --git a/services/azurestack/mgmt/2017-06-01/azurestack/registrations.go b/services/azurestack/mgmt/2017-06-01/azurestack/registrations.go index c406b48ffc2b..dc3071ec6745 100644 --- a/services/azurestack/mgmt/2017-06-01/azurestack/registrations.go +++ b/services/azurestack/mgmt/2017-06-01/azurestack/registrations.go @@ -82,6 +82,7 @@ func (client RegistrationsClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestack.RegistrationsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client RegistrationsClient) Delete(ctx context.Context, resourceGroup stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestack.RegistrationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client RegistrationsClient) Get(ctx context.Context, resourceGroup string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestack.RegistrationsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +311,7 @@ func (client RegistrationsClient) GetActivationKey(ctx context.Context, resource result, err = client.GetActivationKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestack.RegistrationsClient", "GetActivationKey", resp, "Failure responding to request") + return } return @@ -383,6 +387,7 @@ func (client RegistrationsClient) List(ctx context.Context, resourceGroup string result.rl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestack.RegistrationsClient", "List", resp, "Failure responding to request") + return } if result.rl.hasNextLink() && result.rl.IsEmpty() { err = result.NextWithContext(ctx) @@ -446,6 +451,7 @@ func (client RegistrationsClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestack.RegistrationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -498,6 +504,7 @@ func (client RegistrationsClient) Update(ctx context.Context, resourceGroup stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestack.RegistrationsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/azurestackhci/mgmt/2020-10-01/azurestackhci/clusters.go b/services/azurestackhci/mgmt/2020-10-01/azurestackhci/clusters.go index 7a3e092548cc..230e97a33269 100644 --- a/services/azurestackhci/mgmt/2020-10-01/azurestackhci/clusters.go +++ b/services/azurestackhci/mgmt/2020-10-01/azurestackhci/clusters.go @@ -89,6 +89,7 @@ func (client ClustersClient) Create(ctx context.Context, resourceGroupName strin result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestackhci.ClustersClient", "Create", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client ClustersClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestackhci.ClustersClient", "Delete", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestackhci.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +348,7 @@ func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGr result.cl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestackhci.ClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cl.hasNextLink() && result.cl.IsEmpty() { err = result.NextWithContext(ctx) @@ -408,6 +412,7 @@ func (client ClustersClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestackhci.ClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -463,6 +468,7 @@ func (client ClustersClient) ListBySubscription(ctx context.Context) (result Clu result.cl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestackhci.ClustersClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.cl.hasNextLink() && result.cl.IsEmpty() { err = result.NextWithContext(ctx) @@ -525,6 +531,7 @@ func (client ClustersClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestackhci.ClustersClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -587,6 +594,7 @@ func (client ClustersClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestackhci.ClustersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/azurestackhci/mgmt/2020-10-01/azurestackhci/operations.go b/services/azurestackhci/mgmt/2020-10-01/azurestackhci/operations.go index cc26f80e7ea9..a43b208cebba 100644 --- a/services/azurestackhci/mgmt/2020-10-01/azurestackhci/operations.go +++ b/services/azurestackhci/mgmt/2020-10-01/azurestackhci/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result AvailableOperat result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestackhci.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/batch/2017-05-01.5.0/batch/account.go b/services/batch/2017-05-01.5.0/batch/account.go index 8a54f4321f72..9a2fb168a2c0 100644 --- a/services/batch/2017-05-01.5.0/batch/account.go +++ b/services/batch/2017-05-01.5.0/batch/account.go @@ -93,6 +93,7 @@ func (client AccountClient) ListNodeAgentSkus(ctx context.Context, filter string result.alnasr, err = client.ListNodeAgentSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "ListNodeAgentSkus", resp, "Failure responding to request") + return } if result.alnasr.hasNextLink() && result.alnasr.IsEmpty() { err = result.NextWithContext(ctx) @@ -179,6 +180,7 @@ func (client AccountClient) listNodeAgentSkusNextResults(ctx context.Context, la result, err = client.ListNodeAgentSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listNodeAgentSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2017-05-01.5.0/batch/application.go b/services/batch/2017-05-01.5.0/batch/application.go index 0605acc9ce1c..075f570fed0a 100644 --- a/services/batch/2017-05-01.5.0/batch/application.go +++ b/services/batch/2017-05-01.5.0/batch/application.go @@ -81,6 +81,7 @@ func (client ApplicationClient) Get(ctx context.Context, applicationID string, t result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Get", resp, "Failure responding to request") + return } return @@ -193,6 +194,7 @@ func (client ApplicationClient) List(ctx context.Context, maxResults *int32, tim result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -276,6 +278,7 @@ func (client ApplicationClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2017-05-01.5.0/batch/certificate.go b/services/batch/2017-05-01.5.0/batch/certificate.go index 873df3219934..348f5454f8aa 100644 --- a/services/batch/2017-05-01.5.0/batch/certificate.go +++ b/services/batch/2017-05-01.5.0/batch/certificate.go @@ -89,6 +89,7 @@ func (client CertificateClient) Add(ctx context.Context, certificate Certificate result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Add", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client CertificateClient) CancelDeletion(ctx context.Context, thumbprintAl result, err = client.CancelDeletionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "CancelDeletion", resp, "Failure responding to request") + return } return @@ -296,6 +298,7 @@ func (client CertificateClient) Delete(ctx context.Context, thumbprintAlgorithm result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Delete", resp, "Failure responding to request") + return } return @@ -397,6 +400,7 @@ func (client CertificateClient) Get(ctx context.Context, thumbprintAlgorithm str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -513,6 +517,7 @@ func (client CertificateClient) List(ctx context.Context, filter string, selectP result.clr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "List", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -602,6 +607,7 @@ func (client CertificateClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2017-05-01.5.0/batch/computenode.go b/services/batch/2017-05-01.5.0/batch/computenode.go index 67c9eb0101ed..bc793c923ec3 100644 --- a/services/batch/2017-05-01.5.0/batch/computenode.go +++ b/services/batch/2017-05-01.5.0/batch/computenode.go @@ -89,6 +89,7 @@ func (client ComputeNodeClient) AddUser(ctx context.Context, poolID string, node result, err = client.AddUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "AddUser", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client ComputeNodeClient) DeleteUser(ctx context.Context, poolID string, n result, err = client.DeleteUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "DeleteUser", resp, "Failure responding to request") + return } return @@ -294,6 +296,7 @@ func (client ComputeNodeClient) DisableScheduling(ctx context.Context, poolID st result, err = client.DisableSchedulingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "DisableScheduling", resp, "Failure responding to request") + return } return @@ -399,6 +402,7 @@ func (client ComputeNodeClient) EnableScheduling(ctx context.Context, poolID str result, err = client.EnableSchedulingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "EnableScheduling", resp, "Failure responding to request") + return } return @@ -500,6 +504,7 @@ func (client ComputeNodeClient) Get(ctx context.Context, poolID string, nodeID s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "Get", resp, "Failure responding to request") + return } return @@ -605,6 +610,7 @@ func (client ComputeNodeClient) GetRemoteDesktop(ctx context.Context, poolID str result, err = client.GetRemoteDesktopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "GetRemoteDesktop", resp, "Failure responding to request") + return } return @@ -707,6 +713,7 @@ func (client ComputeNodeClient) GetRemoteLoginSettings(ctx context.Context, pool result, err = client.GetRemoteLoginSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "GetRemoteLoginSettings", resp, "Failure responding to request") + return } return @@ -820,6 +827,7 @@ func (client ComputeNodeClient) List(ctx context.Context, poolID string, filter result.cnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "List", resp, "Failure responding to request") + return } if result.cnlr.hasNextLink() && result.cnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -913,6 +921,7 @@ func (client ComputeNodeClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -972,6 +981,7 @@ func (client ComputeNodeClient) Reboot(ctx context.Context, poolID string, nodeI result, err = client.RebootResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "Reboot", resp, "Failure responding to request") + return } return @@ -1079,6 +1089,7 @@ func (client ComputeNodeClient) Reimage(ctx context.Context, poolID string, node result, err = client.ReimageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "Reimage", resp, "Failure responding to request") + return } return @@ -1188,6 +1199,7 @@ func (client ComputeNodeClient) UpdateUser(ctx context.Context, poolID string, n result, err = client.UpdateUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "UpdateUser", resp, "Failure responding to request") + return } return diff --git a/services/batch/2017-05-01.5.0/batch/file.go b/services/batch/2017-05-01.5.0/batch/file.go index 344879f6c7b3..3778729c0e5e 100644 --- a/services/batch/2017-05-01.5.0/batch/file.go +++ b/services/batch/2017-05-01.5.0/batch/file.go @@ -86,6 +86,7 @@ func (client FileClient) DeleteFromComputeNode(ctx context.Context, poolID strin result, err = client.DeleteFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "DeleteFromComputeNode", resp, "Failure responding to request") + return } return @@ -194,6 +195,7 @@ func (client FileClient) DeleteFromTask(ctx context.Context, jobID string, taskI result, err = client.DeleteFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "DeleteFromTask", resp, "Failure responding to request") + return } return @@ -306,6 +308,7 @@ func (client FileClient) GetFromComputeNode(ctx context.Context, poolID string, result, err = client.GetFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetFromComputeNode", resp, "Failure responding to request") + return } return @@ -427,6 +430,7 @@ func (client FileClient) GetFromTask(ctx context.Context, jobID string, taskID s result, err = client.GetFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetFromTask", resp, "Failure responding to request") + return } return @@ -546,6 +550,7 @@ func (client FileClient) GetPropertiesFromComputeNode(ctx context.Context, poolI result, err = client.GetPropertiesFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetPropertiesFromComputeNode", resp, "Failure responding to request") + return } return @@ -661,6 +666,7 @@ func (client FileClient) GetPropertiesFromTask(ctx context.Context, jobID string result, err = client.GetPropertiesFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetPropertiesFromTask", resp, "Failure responding to request") + return } return @@ -783,6 +789,7 @@ func (client FileClient) ListFromComputeNode(ctx context.Context, poolID string, result.nflr, err = client.ListFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "ListFromComputeNode", resp, "Failure responding to request") + return } if result.nflr.hasNextLink() && result.nflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -877,6 +884,7 @@ func (client FileClient) listFromComputeNodeNextResults(ctx context.Context, las result, err = client.ListFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "listFromComputeNodeNextResults", resp, "Failure responding to next results request") + return } return } @@ -949,6 +957,7 @@ func (client FileClient) ListFromTask(ctx context.Context, jobID string, taskID result.nflr, err = client.ListFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "ListFromTask", resp, "Failure responding to request") + return } if result.nflr.hasNextLink() && result.nflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1043,6 +1052,7 @@ func (client FileClient) listFromTaskNextResults(ctx context.Context, lastResult result, err = client.ListFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "listFromTaskNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2017-05-01.5.0/batch/job.go b/services/batch/2017-05-01.5.0/batch/job.go index 9400607e4b18..29cdc0c4b6b7 100644 --- a/services/batch/2017-05-01.5.0/batch/job.go +++ b/services/batch/2017-05-01.5.0/batch/job.go @@ -121,6 +121,7 @@ func (client JobClient) Add(ctx context.Context, job JobAddParameter, timeout *i result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Add", resp, "Failure responding to request") + return } return @@ -230,6 +231,7 @@ func (client JobClient) Delete(ctx context.Context, jobID string, timeout *int32 result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Delete", resp, "Failure responding to request") + return } return @@ -361,6 +363,7 @@ func (client JobClient) Disable(ctx context.Context, jobID string, jobDisablePar result, err = client.DisableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Disable", resp, "Failure responding to request") + return } return @@ -491,6 +494,7 @@ func (client JobClient) Enable(ctx context.Context, jobID string, timeout *int32 result, err = client.EnableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Enable", resp, "Failure responding to request") + return } return @@ -618,6 +622,7 @@ func (client JobClient) Get(ctx context.Context, jobID string, selectParameter s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Get", resp, "Failure responding to request") + return } return @@ -739,6 +744,7 @@ func (client JobClient) GetAllLifetimeStatistics(ctx context.Context, timeout *i result, err = client.GetAllLifetimeStatisticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "GetAllLifetimeStatistics", resp, "Failure responding to request") + return } return @@ -847,6 +853,7 @@ func (client JobClient) List(ctx context.Context, filter string, selectParameter result.cjlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "List", resp, "Failure responding to request") + return } if result.cjlr.hasNextLink() && result.cjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -939,6 +946,7 @@ func (client JobClient) listNextResults(ctx context.Context, lastResults CloudJo result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1010,6 +1018,7 @@ func (client JobClient) ListFromJobSchedule(ctx context.Context, jobScheduleID s result.cjlr, err = client.ListFromJobScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "ListFromJobSchedule", resp, "Failure responding to request") + return } if result.cjlr.hasNextLink() && result.cjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1106,6 +1115,7 @@ func (client JobClient) listFromJobScheduleNextResults(ctx context.Context, last result, err = client.ListFromJobScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "listFromJobScheduleNextResults", resp, "Failure responding to next results request") + return } return } @@ -1178,6 +1188,7 @@ func (client JobClient) ListPreparationAndReleaseTaskStatus(ctx context.Context, result.cjlpartsr, err = client.ListPreparationAndReleaseTaskStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "ListPreparationAndReleaseTaskStatus", resp, "Failure responding to request") + return } if result.cjlpartsr.hasNextLink() && result.cjlpartsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1271,6 +1282,7 @@ func (client JobClient) listPreparationAndReleaseTaskStatusNextResults(ctx conte result, err = client.ListPreparationAndReleaseTaskStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "listPreparationAndReleaseTaskStatusNextResults", resp, "Failure responding to next results request") + return } return } @@ -1341,6 +1353,7 @@ func (client JobClient) Patch(ctx context.Context, jobID string, jobPatchParamet result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Patch", resp, "Failure responding to request") + return } return @@ -1471,6 +1484,7 @@ func (client JobClient) Terminate(ctx context.Context, jobID string, jobTerminat result, err = client.TerminateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Terminate", resp, "Failure responding to request") + return } return @@ -1630,6 +1644,7 @@ func (client JobClient) Update(ctx context.Context, jobID string, jobUpdateParam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/2017-05-01.5.0/batch/jobschedule.go b/services/batch/2017-05-01.5.0/batch/jobschedule.go index f3182f077c35..3a1d15cf31c5 100644 --- a/services/batch/2017-05-01.5.0/batch/jobschedule.go +++ b/services/batch/2017-05-01.5.0/batch/jobschedule.go @@ -119,6 +119,7 @@ func (client JobScheduleClient) Add(ctx context.Context, cloudJobSchedule JobSch result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Add", resp, "Failure responding to request") + return } return @@ -229,6 +230,7 @@ func (client JobScheduleClient) Delete(ctx context.Context, jobScheduleID string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Delete", resp, "Failure responding to request") + return } return @@ -354,6 +356,7 @@ func (client JobScheduleClient) Disable(ctx context.Context, jobScheduleID strin result, err = client.DisableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Disable", resp, "Failure responding to request") + return } return @@ -479,6 +482,7 @@ func (client JobScheduleClient) Enable(ctx context.Context, jobScheduleID string result, err = client.EnableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Enable", resp, "Failure responding to request") + return } return @@ -604,6 +608,7 @@ func (client JobScheduleClient) Exists(ctx context.Context, jobScheduleID string result, err = client.ExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Exists", resp, "Failure responding to request") + return } return @@ -731,6 +736,7 @@ func (client JobScheduleClient) Get(ctx context.Context, jobScheduleID string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Get", resp, "Failure responding to request") + return } return @@ -866,6 +872,7 @@ func (client JobScheduleClient) List(ctx context.Context, filter string, selectP result.cjslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "List", resp, "Failure responding to request") + return } if result.cjslr.hasNextLink() && result.cjslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -958,6 +965,7 @@ func (client JobScheduleClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1030,6 +1038,7 @@ func (client JobScheduleClient) Patch(ctx context.Context, jobScheduleID string, result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Patch", resp, "Failure responding to request") + return } return @@ -1157,6 +1166,7 @@ func (client JobScheduleClient) Terminate(ctx context.Context, jobScheduleID str result, err = client.TerminateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Terminate", resp, "Failure responding to request") + return } return @@ -1323,6 +1333,7 @@ func (client JobScheduleClient) Update(ctx context.Context, jobScheduleID string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/2017-05-01.5.0/batch/pool.go b/services/batch/2017-05-01.5.0/batch/pool.go index 7298a8d201b8..5039c1972af0 100644 --- a/services/batch/2017-05-01.5.0/batch/pool.go +++ b/services/batch/2017-05-01.5.0/batch/pool.go @@ -103,6 +103,7 @@ func (client PoolClient) Add(ctx context.Context, pool PoolAddParameter, timeout result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Add", resp, "Failure responding to request") + return } return @@ -217,6 +218,7 @@ func (client PoolClient) Delete(ctx context.Context, poolID string, timeout *int result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Delete", resp, "Failure responding to request") + return } return @@ -331,6 +333,7 @@ func (client PoolClient) DisableAutoScale(ctx context.Context, poolID string, ti result, err = client.DisableAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "DisableAutoScale", resp, "Failure responding to request") + return } return @@ -444,6 +447,7 @@ func (client PoolClient) EnableAutoScale(ctx context.Context, poolID string, poo result, err = client.EnableAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "EnableAutoScale", resp, "Failure responding to request") + return } return @@ -568,6 +572,7 @@ func (client PoolClient) EvaluateAutoScale(ctx context.Context, poolID string, p result, err = client.EvaluateAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "EvaluateAutoScale", resp, "Failure responding to request") + return } return @@ -680,6 +685,7 @@ func (client PoolClient) Exists(ctx context.Context, poolID string, timeout *int result, err = client.ExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Exists", resp, "Failure responding to request") + return } return @@ -807,6 +813,7 @@ func (client PoolClient) Get(ctx context.Context, poolID string, selectParameter result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Get", resp, "Failure responding to request") + return } return @@ -928,6 +935,7 @@ func (client PoolClient) GetAllLifetimeStatistics(ctx context.Context, timeout * result, err = client.GetAllLifetimeStatisticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "GetAllLifetimeStatistics", resp, "Failure responding to request") + return } return @@ -1036,6 +1044,7 @@ func (client PoolClient) List(ctx context.Context, filter string, selectParamete result.cplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "List", resp, "Failure responding to request") + return } if result.cplr.hasNextLink() && result.cplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1128,6 +1137,7 @@ func (client PoolClient) listNextResults(ctx context.Context, lastResults CloudP result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1204,6 +1214,7 @@ func (client PoolClient) ListUsageMetrics(ctx context.Context, startTime *date.T result.plumr, err = client.ListUsageMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "ListUsageMetrics", resp, "Failure responding to request") + return } if result.plumr.hasNextLink() && result.plumr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1296,6 +1307,7 @@ func (client PoolClient) listUsageMetricsNextResults(ctx context.Context, lastRe result, err = client.ListUsageMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "listUsageMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1367,6 +1379,7 @@ func (client PoolClient) Patch(ctx context.Context, poolID string, poolPatchPara result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Patch", resp, "Failure responding to request") + return } return @@ -1503,6 +1516,7 @@ func (client PoolClient) RemoveNodes(ctx context.Context, poolID string, nodeRem result, err = client.RemoveNodesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "RemoveNodes", resp, "Failure responding to request") + return } return @@ -1635,6 +1649,7 @@ func (client PoolClient) Resize(ctx context.Context, poolID string, poolResizePa result, err = client.ResizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Resize", resp, "Failure responding to request") + return } return @@ -1764,6 +1779,7 @@ func (client PoolClient) StopResize(ctx context.Context, poolID string, timeout result, err = client.StopResizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "StopResize", resp, "Failure responding to request") + return } return @@ -1891,6 +1907,7 @@ func (client PoolClient) UpdateProperties(ctx context.Context, poolID string, po result, err = client.UpdatePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "UpdateProperties", resp, "Failure responding to request") + return } return @@ -2015,6 +2032,7 @@ func (client PoolClient) UpgradeOS(ctx context.Context, poolID string, poolUpgra result, err = client.UpgradeOSResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "UpgradeOS", resp, "Failure responding to request") + return } return diff --git a/services/batch/2017-05-01.5.0/batch/task.go b/services/batch/2017-05-01.5.0/batch/task.go index 741d4accf017..13f7d52f6a4c 100644 --- a/services/batch/2017-05-01.5.0/batch/task.go +++ b/services/batch/2017-05-01.5.0/batch/task.go @@ -93,6 +93,7 @@ func (client TaskClient) Add(ctx context.Context, jobID string, task TaskAddPara result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Add", resp, "Failure responding to request") + return } return @@ -206,6 +207,7 @@ func (client TaskClient) AddCollection(ctx context.Context, jobID string, taskCo result, err = client.AddCollectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "AddCollection", resp, "Failure responding to request") + return } return @@ -321,6 +323,7 @@ func (client TaskClient) Delete(ctx context.Context, jobID string, taskID string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Delete", resp, "Failure responding to request") + return } return @@ -451,6 +454,7 @@ func (client TaskClient) Get(ctx context.Context, jobID string, taskID string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Get", resp, "Failure responding to request") + return } return @@ -588,6 +592,7 @@ func (client TaskClient) List(ctx context.Context, jobID string, filter string, result.ctlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "List", resp, "Failure responding to request") + return } if result.ctlr.hasNextLink() && result.ctlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -684,6 +689,7 @@ func (client TaskClient) listNextResults(ctx context.Context, lastResults CloudT result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -743,6 +749,7 @@ func (client TaskClient) ListSubtasks(ctx context.Context, jobID string, taskID result, err = client.ListSubtasksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "ListSubtasks", resp, "Failure responding to request") + return } return @@ -862,6 +869,7 @@ func (client TaskClient) Reactivate(ctx context.Context, jobID string, taskID st result, err = client.ReactivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Reactivate", resp, "Failure responding to request") + return } return @@ -991,6 +999,7 @@ func (client TaskClient) Terminate(ctx context.Context, jobID string, taskID str result, err = client.TerminateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Terminate", resp, "Failure responding to request") + return } return @@ -1119,6 +1128,7 @@ func (client TaskClient) Update(ctx context.Context, jobID string, taskID string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/2018-03-01.6.1/batch/account.go b/services/batch/2018-03-01.6.1/batch/account.go index 8fac9f4303d7..15aa3104108f 100644 --- a/services/batch/2018-03-01.6.1/batch/account.go +++ b/services/batch/2018-03-01.6.1/batch/account.go @@ -94,6 +94,7 @@ func (client AccountClient) ListNodeAgentSkus(ctx context.Context, filter string result.alnasr, err = client.ListNodeAgentSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "ListNodeAgentSkus", resp, "Failure responding to request") + return } if result.alnasr.hasNextLink() && result.alnasr.IsEmpty() { err = result.NextWithContext(ctx) @@ -180,6 +181,7 @@ func (client AccountClient) listNodeAgentSkusNextResults(ctx context.Context, la result, err = client.ListNodeAgentSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listNodeAgentSkusNextResults", resp, "Failure responding to next results request") + return } return } @@ -248,6 +250,7 @@ func (client AccountClient) ListPoolNodeCounts(ctx context.Context, filter strin result.pnclr, err = client.ListPoolNodeCountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "ListPoolNodeCounts", resp, "Failure responding to request") + return } if result.pnclr.hasNextLink() && result.pnclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -334,6 +337,7 @@ func (client AccountClient) listPoolNodeCountsNextResults(ctx context.Context, l result, err = client.ListPoolNodeCountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listPoolNodeCountsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2018-03-01.6.1/batch/application.go b/services/batch/2018-03-01.6.1/batch/application.go index f83c9b08e129..f9d424087643 100644 --- a/services/batch/2018-03-01.6.1/batch/application.go +++ b/services/batch/2018-03-01.6.1/batch/application.go @@ -83,6 +83,7 @@ func (client ApplicationClient) Get(ctx context.Context, applicationID string, t result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Get", resp, "Failure responding to request") + return } return @@ -195,6 +196,7 @@ func (client ApplicationClient) List(ctx context.Context, maxResults *int32, tim result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -278,6 +280,7 @@ func (client ApplicationClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2018-03-01.6.1/batch/certificate.go b/services/batch/2018-03-01.6.1/batch/certificate.go index af340ec809d3..ff34a0b63391 100644 --- a/services/batch/2018-03-01.6.1/batch/certificate.go +++ b/services/batch/2018-03-01.6.1/batch/certificate.go @@ -89,6 +89,7 @@ func (client CertificateClient) Add(ctx context.Context, certificate Certificate result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Add", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client CertificateClient) CancelDeletion(ctx context.Context, thumbprintAl result, err = client.CancelDeletionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "CancelDeletion", resp, "Failure responding to request") + return } return @@ -296,6 +298,7 @@ func (client CertificateClient) Delete(ctx context.Context, thumbprintAlgorithm result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Delete", resp, "Failure responding to request") + return } return @@ -397,6 +400,7 @@ func (client CertificateClient) Get(ctx context.Context, thumbprintAlgorithm str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -514,6 +518,7 @@ func (client CertificateClient) List(ctx context.Context, filter string, selectP result.clr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "List", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -603,6 +608,7 @@ func (client CertificateClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2018-03-01.6.1/batch/computenode.go b/services/batch/2018-03-01.6.1/batch/computenode.go index 8912682e58a2..e2d64fc7fa62 100644 --- a/services/batch/2018-03-01.6.1/batch/computenode.go +++ b/services/batch/2018-03-01.6.1/batch/computenode.go @@ -89,6 +89,7 @@ func (client ComputeNodeClient) AddUser(ctx context.Context, poolID string, node result, err = client.AddUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "AddUser", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client ComputeNodeClient) DeleteUser(ctx context.Context, poolID string, n result, err = client.DeleteUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "DeleteUser", resp, "Failure responding to request") + return } return @@ -294,6 +296,7 @@ func (client ComputeNodeClient) DisableScheduling(ctx context.Context, poolID st result, err = client.DisableSchedulingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "DisableScheduling", resp, "Failure responding to request") + return } return @@ -399,6 +402,7 @@ func (client ComputeNodeClient) EnableScheduling(ctx context.Context, poolID str result, err = client.EnableSchedulingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "EnableScheduling", resp, "Failure responding to request") + return } return @@ -500,6 +504,7 @@ func (client ComputeNodeClient) Get(ctx context.Context, poolID string, nodeID s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "Get", resp, "Failure responding to request") + return } return @@ -606,6 +611,7 @@ func (client ComputeNodeClient) GetRemoteDesktop(ctx context.Context, poolID str result, err = client.GetRemoteDesktopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "GetRemoteDesktop", resp, "Failure responding to request") + return } return @@ -708,6 +714,7 @@ func (client ComputeNodeClient) GetRemoteLoginSettings(ctx context.Context, pool result, err = client.GetRemoteLoginSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "GetRemoteLoginSettings", resp, "Failure responding to request") + return } return @@ -822,6 +829,7 @@ func (client ComputeNodeClient) List(ctx context.Context, poolID string, filter result.cnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "List", resp, "Failure responding to request") + return } if result.cnlr.hasNextLink() && result.cnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -915,6 +923,7 @@ func (client ComputeNodeClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -974,6 +983,7 @@ func (client ComputeNodeClient) Reboot(ctx context.Context, poolID string, nodeI result, err = client.RebootResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "Reboot", resp, "Failure responding to request") + return } return @@ -1081,6 +1091,7 @@ func (client ComputeNodeClient) Reimage(ctx context.Context, poolID string, node result, err = client.ReimageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "Reimage", resp, "Failure responding to request") + return } return @@ -1190,6 +1201,7 @@ func (client ComputeNodeClient) UpdateUser(ctx context.Context, poolID string, n result, err = client.UpdateUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "UpdateUser", resp, "Failure responding to request") + return } return @@ -1303,6 +1315,7 @@ func (client ComputeNodeClient) UploadBatchServiceLogs(ctx context.Context, pool result, err = client.UploadBatchServiceLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "UploadBatchServiceLogs", resp, "Failure responding to request") + return } return diff --git a/services/batch/2018-03-01.6.1/batch/file.go b/services/batch/2018-03-01.6.1/batch/file.go index d3502a6ad19e..755681b94aa5 100644 --- a/services/batch/2018-03-01.6.1/batch/file.go +++ b/services/batch/2018-03-01.6.1/batch/file.go @@ -86,6 +86,7 @@ func (client FileClient) DeleteFromComputeNode(ctx context.Context, poolID strin result, err = client.DeleteFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "DeleteFromComputeNode", resp, "Failure responding to request") + return } return @@ -194,6 +195,7 @@ func (client FileClient) DeleteFromTask(ctx context.Context, jobID string, taskI result, err = client.DeleteFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "DeleteFromTask", resp, "Failure responding to request") + return } return @@ -306,6 +308,7 @@ func (client FileClient) GetFromComputeNode(ctx context.Context, poolID string, result, err = client.GetFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetFromComputeNode", resp, "Failure responding to request") + return } return @@ -427,6 +430,7 @@ func (client FileClient) GetFromTask(ctx context.Context, jobID string, taskID s result, err = client.GetFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetFromTask", resp, "Failure responding to request") + return } return @@ -546,6 +550,7 @@ func (client FileClient) GetPropertiesFromComputeNode(ctx context.Context, poolI result, err = client.GetPropertiesFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetPropertiesFromComputeNode", resp, "Failure responding to request") + return } return @@ -661,6 +666,7 @@ func (client FileClient) GetPropertiesFromTask(ctx context.Context, jobID string result, err = client.GetPropertiesFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetPropertiesFromTask", resp, "Failure responding to request") + return } return @@ -784,6 +790,7 @@ func (client FileClient) ListFromComputeNode(ctx context.Context, poolID string, result.nflr, err = client.ListFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "ListFromComputeNode", resp, "Failure responding to request") + return } if result.nflr.hasNextLink() && result.nflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -878,6 +885,7 @@ func (client FileClient) listFromComputeNodeNextResults(ctx context.Context, las result, err = client.ListFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "listFromComputeNodeNextResults", resp, "Failure responding to next results request") + return } return } @@ -951,6 +959,7 @@ func (client FileClient) ListFromTask(ctx context.Context, jobID string, taskID result.nflr, err = client.ListFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "ListFromTask", resp, "Failure responding to request") + return } if result.nflr.hasNextLink() && result.nflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1045,6 +1054,7 @@ func (client FileClient) listFromTaskNextResults(ctx context.Context, lastResult result, err = client.ListFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "listFromTaskNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2018-03-01.6.1/batch/job.go b/services/batch/2018-03-01.6.1/batch/job.go index e7e9aa730dc7..a4e1032a8dd5 100644 --- a/services/batch/2018-03-01.6.1/batch/job.go +++ b/services/batch/2018-03-01.6.1/batch/job.go @@ -152,6 +152,7 @@ func (client JobClient) Add(ctx context.Context, job JobAddParameter, timeout *i result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Add", resp, "Failure responding to request") + return } return @@ -264,6 +265,7 @@ func (client JobClient) Delete(ctx context.Context, jobID string, timeout *int32 result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Delete", resp, "Failure responding to request") + return } return @@ -395,6 +397,7 @@ func (client JobClient) Disable(ctx context.Context, jobID string, jobDisablePar result, err = client.DisableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Disable", resp, "Failure responding to request") + return } return @@ -525,6 +528,7 @@ func (client JobClient) Enable(ctx context.Context, jobID string, timeout *int32 result, err = client.EnableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Enable", resp, "Failure responding to request") + return } return @@ -652,6 +656,7 @@ func (client JobClient) Get(ctx context.Context, jobID string, selectParameter s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Get", resp, "Failure responding to request") + return } return @@ -774,6 +779,7 @@ func (client JobClient) GetAllLifetimeStatistics(ctx context.Context, timeout *i result, err = client.GetAllLifetimeStatisticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "GetAllLifetimeStatistics", resp, "Failure responding to request") + return } return @@ -872,6 +878,7 @@ func (client JobClient) GetTaskCounts(ctx context.Context, jobID string, timeout result, err = client.GetTaskCountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "GetTaskCounts", resp, "Failure responding to request") + return } return @@ -985,6 +992,7 @@ func (client JobClient) List(ctx context.Context, filter string, selectParameter result.cjlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "List", resp, "Failure responding to request") + return } if result.cjlr.hasNextLink() && result.cjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1077,6 +1085,7 @@ func (client JobClient) listNextResults(ctx context.Context, lastResults CloudJo result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1149,6 +1158,7 @@ func (client JobClient) ListFromJobSchedule(ctx context.Context, jobScheduleID s result.cjlr, err = client.ListFromJobScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "ListFromJobSchedule", resp, "Failure responding to request") + return } if result.cjlr.hasNextLink() && result.cjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1245,6 +1255,7 @@ func (client JobClient) listFromJobScheduleNextResults(ctx context.Context, last result, err = client.ListFromJobScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "listFromJobScheduleNextResults", resp, "Failure responding to next results request") + return } return } @@ -1319,6 +1330,7 @@ func (client JobClient) ListPreparationAndReleaseTaskStatus(ctx context.Context, result.cjlpartsr, err = client.ListPreparationAndReleaseTaskStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "ListPreparationAndReleaseTaskStatus", resp, "Failure responding to request") + return } if result.cjlpartsr.hasNextLink() && result.cjlpartsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1412,6 +1424,7 @@ func (client JobClient) listPreparationAndReleaseTaskStatusNextResults(ctx conte result, err = client.ListPreparationAndReleaseTaskStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "listPreparationAndReleaseTaskStatusNextResults", resp, "Failure responding to next results request") + return } return } @@ -1482,6 +1495,7 @@ func (client JobClient) Patch(ctx context.Context, jobID string, jobPatchParamet result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Patch", resp, "Failure responding to request") + return } return @@ -1614,6 +1628,7 @@ func (client JobClient) Terminate(ctx context.Context, jobID string, jobTerminat result, err = client.TerminateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Terminate", resp, "Failure responding to request") + return } return @@ -1781,6 +1796,7 @@ func (client JobClient) Update(ctx context.Context, jobID string, jobUpdateParam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/2018-03-01.6.1/batch/jobschedule.go b/services/batch/2018-03-01.6.1/batch/jobschedule.go index 1a150b9b5859..b8004cfc1d5c 100644 --- a/services/batch/2018-03-01.6.1/batch/jobschedule.go +++ b/services/batch/2018-03-01.6.1/batch/jobschedule.go @@ -150,6 +150,7 @@ func (client JobScheduleClient) Add(ctx context.Context, cloudJobSchedule JobSch result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Add", resp, "Failure responding to request") + return } return @@ -260,6 +261,7 @@ func (client JobScheduleClient) Delete(ctx context.Context, jobScheduleID string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Delete", resp, "Failure responding to request") + return } return @@ -385,6 +387,7 @@ func (client JobScheduleClient) Disable(ctx context.Context, jobScheduleID strin result, err = client.DisableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Disable", resp, "Failure responding to request") + return } return @@ -510,6 +513,7 @@ func (client JobScheduleClient) Enable(ctx context.Context, jobScheduleID string result, err = client.EnableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Enable", resp, "Failure responding to request") + return } return @@ -635,6 +639,7 @@ func (client JobScheduleClient) Exists(ctx context.Context, jobScheduleID string result, err = client.ExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Exists", resp, "Failure responding to request") + return } return @@ -762,6 +767,7 @@ func (client JobScheduleClient) Get(ctx context.Context, jobScheduleID string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Get", resp, "Failure responding to request") + return } return @@ -898,6 +904,7 @@ func (client JobScheduleClient) List(ctx context.Context, filter string, selectP result.cjslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "List", resp, "Failure responding to request") + return } if result.cjslr.hasNextLink() && result.cjslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -990,6 +997,7 @@ func (client JobScheduleClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1062,6 +1070,7 @@ func (client JobScheduleClient) Patch(ctx context.Context, jobScheduleID string, result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Patch", resp, "Failure responding to request") + return } return @@ -1189,6 +1198,7 @@ func (client JobScheduleClient) Terminate(ctx context.Context, jobScheduleID str result, err = client.TerminateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Terminate", resp, "Failure responding to request") + return } return @@ -1386,6 +1396,7 @@ func (client JobScheduleClient) Update(ctx context.Context, jobScheduleID string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/2018-03-01.6.1/batch/pool.go b/services/batch/2018-03-01.6.1/batch/pool.go index 9d8885c06e69..b7c32ca75362 100644 --- a/services/batch/2018-03-01.6.1/batch/pool.go +++ b/services/batch/2018-03-01.6.1/batch/pool.go @@ -111,6 +111,7 @@ func (client PoolClient) Add(ctx context.Context, pool PoolAddParameter, timeout result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Add", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client PoolClient) Delete(ctx context.Context, poolID string, timeout *int result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Delete", resp, "Failure responding to request") + return } return @@ -339,6 +341,7 @@ func (client PoolClient) DisableAutoScale(ctx context.Context, poolID string, ti result, err = client.DisableAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "DisableAutoScale", resp, "Failure responding to request") + return } return @@ -452,6 +455,7 @@ func (client PoolClient) EnableAutoScale(ctx context.Context, poolID string, poo result, err = client.EnableAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "EnableAutoScale", resp, "Failure responding to request") + return } return @@ -576,6 +580,7 @@ func (client PoolClient) EvaluateAutoScale(ctx context.Context, poolID string, p result, err = client.EvaluateAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "EvaluateAutoScale", resp, "Failure responding to request") + return } return @@ -688,6 +693,7 @@ func (client PoolClient) Exists(ctx context.Context, poolID string, timeout *int result, err = client.ExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Exists", resp, "Failure responding to request") + return } return @@ -815,6 +821,7 @@ func (client PoolClient) Get(ctx context.Context, poolID string, selectParameter result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Get", resp, "Failure responding to request") + return } return @@ -937,6 +944,7 @@ func (client PoolClient) GetAllLifetimeStatistics(ctx context.Context, timeout * result, err = client.GetAllLifetimeStatisticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "GetAllLifetimeStatistics", resp, "Failure responding to request") + return } return @@ -1046,6 +1054,7 @@ func (client PoolClient) List(ctx context.Context, filter string, selectParamete result.cplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "List", resp, "Failure responding to request") + return } if result.cplr.hasNextLink() && result.cplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1138,6 +1147,7 @@ func (client PoolClient) listNextResults(ctx context.Context, lastResults CloudP result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1216,6 +1226,7 @@ func (client PoolClient) ListUsageMetrics(ctx context.Context, startTime *date.T result.plumr, err = client.ListUsageMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "ListUsageMetrics", resp, "Failure responding to request") + return } if result.plumr.hasNextLink() && result.plumr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1308,6 +1319,7 @@ func (client PoolClient) listUsageMetricsNextResults(ctx context.Context, lastRe result, err = client.ListUsageMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "listUsageMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1379,6 +1391,7 @@ func (client PoolClient) Patch(ctx context.Context, poolID string, poolPatchPara result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Patch", resp, "Failure responding to request") + return } return @@ -1515,6 +1528,7 @@ func (client PoolClient) RemoveNodes(ctx context.Context, poolID string, nodeRem result, err = client.RemoveNodesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "RemoveNodes", resp, "Failure responding to request") + return } return @@ -1647,6 +1661,7 @@ func (client PoolClient) Resize(ctx context.Context, poolID string, poolResizePa result, err = client.ResizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Resize", resp, "Failure responding to request") + return } return @@ -1778,6 +1793,7 @@ func (client PoolClient) StopResize(ctx context.Context, poolID string, timeout result, err = client.StopResizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "StopResize", resp, "Failure responding to request") + return } return @@ -1913,6 +1929,7 @@ func (client PoolClient) UpdateProperties(ctx context.Context, poolID string, po result, err = client.UpdatePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "UpdateProperties", resp, "Failure responding to request") + return } return @@ -2041,6 +2058,7 @@ func (client PoolClient) UpgradeOS(ctx context.Context, poolID string, poolUpgra result, err = client.UpgradeOSResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "UpgradeOS", resp, "Failure responding to request") + return } return diff --git a/services/batch/2018-03-01.6.1/batch/task.go b/services/batch/2018-03-01.6.1/batch/task.go index 51da9e2e6639..f336a99dcfa5 100644 --- a/services/batch/2018-03-01.6.1/batch/task.go +++ b/services/batch/2018-03-01.6.1/batch/task.go @@ -101,6 +101,7 @@ func (client TaskClient) Add(ctx context.Context, jobID string, task TaskAddPara result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Add", resp, "Failure responding to request") + return } return @@ -218,6 +219,7 @@ func (client TaskClient) AddCollection(ctx context.Context, jobID string, taskCo result, err = client.AddCollectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "AddCollection", resp, "Failure responding to request") + return } return @@ -333,6 +335,7 @@ func (client TaskClient) Delete(ctx context.Context, jobID string, taskID string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Delete", resp, "Failure responding to request") + return } return @@ -463,6 +466,7 @@ func (client TaskClient) Get(ctx context.Context, jobID string, taskID string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Get", resp, "Failure responding to request") + return } return @@ -601,6 +605,7 @@ func (client TaskClient) List(ctx context.Context, jobID string, filter string, result.ctlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "List", resp, "Failure responding to request") + return } if result.ctlr.hasNextLink() && result.ctlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -697,6 +702,7 @@ func (client TaskClient) listNextResults(ctx context.Context, lastResults CloudT result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -756,6 +762,7 @@ func (client TaskClient) ListSubtasks(ctx context.Context, jobID string, taskID result, err = client.ListSubtasksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "ListSubtasks", resp, "Failure responding to request") + return } return @@ -875,6 +882,7 @@ func (client TaskClient) Reactivate(ctx context.Context, jobID string, taskID st result, err = client.ReactivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Reactivate", resp, "Failure responding to request") + return } return @@ -1004,6 +1012,7 @@ func (client TaskClient) Terminate(ctx context.Context, jobID string, taskID str result, err = client.TerminateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Terminate", resp, "Failure responding to request") + return } return @@ -1132,6 +1141,7 @@ func (client TaskClient) Update(ctx context.Context, jobID string, taskID string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/2018-08-01.7.0/batch/account.go b/services/batch/2018-08-01.7.0/batch/account.go index 3dbaed5ba8b4..f2f77ffc2066 100644 --- a/services/batch/2018-08-01.7.0/batch/account.go +++ b/services/batch/2018-08-01.7.0/batch/account.go @@ -94,6 +94,7 @@ func (client AccountClient) ListNodeAgentSkus(ctx context.Context, filter string result.alnasr, err = client.ListNodeAgentSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "ListNodeAgentSkus", resp, "Failure responding to request") + return } if result.alnasr.hasNextLink() && result.alnasr.IsEmpty() { err = result.NextWithContext(ctx) @@ -180,6 +181,7 @@ func (client AccountClient) listNodeAgentSkusNextResults(ctx context.Context, la result, err = client.ListNodeAgentSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listNodeAgentSkusNextResults", resp, "Failure responding to next results request") + return } return } @@ -249,6 +251,7 @@ func (client AccountClient) ListPoolNodeCounts(ctx context.Context, filter strin result.pnclr, err = client.ListPoolNodeCountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "ListPoolNodeCounts", resp, "Failure responding to request") + return } if result.pnclr.hasNextLink() && result.pnclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -335,6 +338,7 @@ func (client AccountClient) listPoolNodeCountsNextResults(ctx context.Context, l result, err = client.ListPoolNodeCountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listPoolNodeCountsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2018-08-01.7.0/batch/application.go b/services/batch/2018-08-01.7.0/batch/application.go index a3b3ea17f609..5ac9fd85b445 100644 --- a/services/batch/2018-08-01.7.0/batch/application.go +++ b/services/batch/2018-08-01.7.0/batch/application.go @@ -83,6 +83,7 @@ func (client ApplicationClient) Get(ctx context.Context, applicationID string, t result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Get", resp, "Failure responding to request") + return } return @@ -195,6 +196,7 @@ func (client ApplicationClient) List(ctx context.Context, maxResults *int32, tim result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -278,6 +280,7 @@ func (client ApplicationClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2018-08-01.7.0/batch/certificate.go b/services/batch/2018-08-01.7.0/batch/certificate.go index aa8dd976cdc0..c3b880e30472 100644 --- a/services/batch/2018-08-01.7.0/batch/certificate.go +++ b/services/batch/2018-08-01.7.0/batch/certificate.go @@ -89,6 +89,7 @@ func (client CertificateClient) Add(ctx context.Context, certificate Certificate result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Add", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client CertificateClient) CancelDeletion(ctx context.Context, thumbprintAl result, err = client.CancelDeletionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "CancelDeletion", resp, "Failure responding to request") + return } return @@ -296,6 +298,7 @@ func (client CertificateClient) Delete(ctx context.Context, thumbprintAlgorithm result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Delete", resp, "Failure responding to request") + return } return @@ -397,6 +400,7 @@ func (client CertificateClient) Get(ctx context.Context, thumbprintAlgorithm str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -514,6 +518,7 @@ func (client CertificateClient) List(ctx context.Context, filter string, selectP result.clr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "List", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -603,6 +608,7 @@ func (client CertificateClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2018-08-01.7.0/batch/computenode.go b/services/batch/2018-08-01.7.0/batch/computenode.go index 9d1a2d2bf9ef..224427827759 100644 --- a/services/batch/2018-08-01.7.0/batch/computenode.go +++ b/services/batch/2018-08-01.7.0/batch/computenode.go @@ -89,6 +89,7 @@ func (client ComputeNodeClient) AddUser(ctx context.Context, poolID string, node result, err = client.AddUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "AddUser", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client ComputeNodeClient) DeleteUser(ctx context.Context, poolID string, n result, err = client.DeleteUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "DeleteUser", resp, "Failure responding to request") + return } return @@ -294,6 +296,7 @@ func (client ComputeNodeClient) DisableScheduling(ctx context.Context, poolID st result, err = client.DisableSchedulingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "DisableScheduling", resp, "Failure responding to request") + return } return @@ -399,6 +402,7 @@ func (client ComputeNodeClient) EnableScheduling(ctx context.Context, poolID str result, err = client.EnableSchedulingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "EnableScheduling", resp, "Failure responding to request") + return } return @@ -500,6 +504,7 @@ func (client ComputeNodeClient) Get(ctx context.Context, poolID string, nodeID s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "Get", resp, "Failure responding to request") + return } return @@ -606,6 +611,7 @@ func (client ComputeNodeClient) GetRemoteDesktop(ctx context.Context, poolID str result, err = client.GetRemoteDesktopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "GetRemoteDesktop", resp, "Failure responding to request") + return } return @@ -708,6 +714,7 @@ func (client ComputeNodeClient) GetRemoteLoginSettings(ctx context.Context, pool result, err = client.GetRemoteLoginSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "GetRemoteLoginSettings", resp, "Failure responding to request") + return } return @@ -822,6 +829,7 @@ func (client ComputeNodeClient) List(ctx context.Context, poolID string, filter result.cnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "List", resp, "Failure responding to request") + return } if result.cnlr.hasNextLink() && result.cnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -915,6 +923,7 @@ func (client ComputeNodeClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -974,6 +983,7 @@ func (client ComputeNodeClient) Reboot(ctx context.Context, poolID string, nodeI result, err = client.RebootResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "Reboot", resp, "Failure responding to request") + return } return @@ -1081,6 +1091,7 @@ func (client ComputeNodeClient) Reimage(ctx context.Context, poolID string, node result, err = client.ReimageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "Reimage", resp, "Failure responding to request") + return } return @@ -1190,6 +1201,7 @@ func (client ComputeNodeClient) UpdateUser(ctx context.Context, poolID string, n result, err = client.UpdateUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "UpdateUser", resp, "Failure responding to request") + return } return @@ -1303,6 +1315,7 @@ func (client ComputeNodeClient) UploadBatchServiceLogs(ctx context.Context, pool result, err = client.UploadBatchServiceLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "UploadBatchServiceLogs", resp, "Failure responding to request") + return } return diff --git a/services/batch/2018-08-01.7.0/batch/file.go b/services/batch/2018-08-01.7.0/batch/file.go index 8900dc5631b3..2038f636ae9a 100644 --- a/services/batch/2018-08-01.7.0/batch/file.go +++ b/services/batch/2018-08-01.7.0/batch/file.go @@ -86,6 +86,7 @@ func (client FileClient) DeleteFromComputeNode(ctx context.Context, poolID strin result, err = client.DeleteFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "DeleteFromComputeNode", resp, "Failure responding to request") + return } return @@ -194,6 +195,7 @@ func (client FileClient) DeleteFromTask(ctx context.Context, jobID string, taskI result, err = client.DeleteFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "DeleteFromTask", resp, "Failure responding to request") + return } return @@ -306,6 +308,7 @@ func (client FileClient) GetFromComputeNode(ctx context.Context, poolID string, result, err = client.GetFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetFromComputeNode", resp, "Failure responding to request") + return } return @@ -427,6 +430,7 @@ func (client FileClient) GetFromTask(ctx context.Context, jobID string, taskID s result, err = client.GetFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetFromTask", resp, "Failure responding to request") + return } return @@ -546,6 +550,7 @@ func (client FileClient) GetPropertiesFromComputeNode(ctx context.Context, poolI result, err = client.GetPropertiesFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetPropertiesFromComputeNode", resp, "Failure responding to request") + return } return @@ -661,6 +666,7 @@ func (client FileClient) GetPropertiesFromTask(ctx context.Context, jobID string result, err = client.GetPropertiesFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetPropertiesFromTask", resp, "Failure responding to request") + return } return @@ -784,6 +790,7 @@ func (client FileClient) ListFromComputeNode(ctx context.Context, poolID string, result.nflr, err = client.ListFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "ListFromComputeNode", resp, "Failure responding to request") + return } if result.nflr.hasNextLink() && result.nflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -878,6 +885,7 @@ func (client FileClient) listFromComputeNodeNextResults(ctx context.Context, las result, err = client.ListFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "listFromComputeNodeNextResults", resp, "Failure responding to next results request") + return } return } @@ -951,6 +959,7 @@ func (client FileClient) ListFromTask(ctx context.Context, jobID string, taskID result.nflr, err = client.ListFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "ListFromTask", resp, "Failure responding to request") + return } if result.nflr.hasNextLink() && result.nflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1045,6 +1054,7 @@ func (client FileClient) listFromTaskNextResults(ctx context.Context, lastResult result, err = client.ListFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "listFromTaskNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2018-08-01.7.0/batch/job.go b/services/batch/2018-08-01.7.0/batch/job.go index 96aef4378dba..90486a4627ac 100644 --- a/services/batch/2018-08-01.7.0/batch/job.go +++ b/services/batch/2018-08-01.7.0/batch/job.go @@ -152,6 +152,7 @@ func (client JobClient) Add(ctx context.Context, job JobAddParameter, timeout *i result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Add", resp, "Failure responding to request") + return } return @@ -264,6 +265,7 @@ func (client JobClient) Delete(ctx context.Context, jobID string, timeout *int32 result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Delete", resp, "Failure responding to request") + return } return @@ -395,6 +397,7 @@ func (client JobClient) Disable(ctx context.Context, jobID string, jobDisablePar result, err = client.DisableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Disable", resp, "Failure responding to request") + return } return @@ -525,6 +528,7 @@ func (client JobClient) Enable(ctx context.Context, jobID string, timeout *int32 result, err = client.EnableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Enable", resp, "Failure responding to request") + return } return @@ -652,6 +656,7 @@ func (client JobClient) Get(ctx context.Context, jobID string, selectParameter s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Get", resp, "Failure responding to request") + return } return @@ -774,6 +779,7 @@ func (client JobClient) GetAllLifetimeStatistics(ctx context.Context, timeout *i result, err = client.GetAllLifetimeStatisticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "GetAllLifetimeStatistics", resp, "Failure responding to request") + return } return @@ -870,6 +876,7 @@ func (client JobClient) GetTaskCounts(ctx context.Context, jobID string, timeout result, err = client.GetTaskCountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "GetTaskCounts", resp, "Failure responding to request") + return } return @@ -983,6 +990,7 @@ func (client JobClient) List(ctx context.Context, filter string, selectParameter result.cjlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "List", resp, "Failure responding to request") + return } if result.cjlr.hasNextLink() && result.cjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1075,6 +1083,7 @@ func (client JobClient) listNextResults(ctx context.Context, lastResults CloudJo result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1147,6 +1156,7 @@ func (client JobClient) ListFromJobSchedule(ctx context.Context, jobScheduleID s result.cjlr, err = client.ListFromJobScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "ListFromJobSchedule", resp, "Failure responding to request") + return } if result.cjlr.hasNextLink() && result.cjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1243,6 +1253,7 @@ func (client JobClient) listFromJobScheduleNextResults(ctx context.Context, last result, err = client.ListFromJobScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "listFromJobScheduleNextResults", resp, "Failure responding to next results request") + return } return } @@ -1317,6 +1328,7 @@ func (client JobClient) ListPreparationAndReleaseTaskStatus(ctx context.Context, result.cjlpartsr, err = client.ListPreparationAndReleaseTaskStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "ListPreparationAndReleaseTaskStatus", resp, "Failure responding to request") + return } if result.cjlpartsr.hasNextLink() && result.cjlpartsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1410,6 +1422,7 @@ func (client JobClient) listPreparationAndReleaseTaskStatusNextResults(ctx conte result, err = client.ListPreparationAndReleaseTaskStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "listPreparationAndReleaseTaskStatusNextResults", resp, "Failure responding to next results request") + return } return } @@ -1480,6 +1493,7 @@ func (client JobClient) Patch(ctx context.Context, jobID string, jobPatchParamet result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Patch", resp, "Failure responding to request") + return } return @@ -1612,6 +1626,7 @@ func (client JobClient) Terminate(ctx context.Context, jobID string, jobTerminat result, err = client.TerminateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Terminate", resp, "Failure responding to request") + return } return @@ -1779,6 +1794,7 @@ func (client JobClient) Update(ctx context.Context, jobID string, jobUpdateParam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/2018-08-01.7.0/batch/jobschedule.go b/services/batch/2018-08-01.7.0/batch/jobschedule.go index 43f82a308482..e60d245750c0 100644 --- a/services/batch/2018-08-01.7.0/batch/jobschedule.go +++ b/services/batch/2018-08-01.7.0/batch/jobschedule.go @@ -150,6 +150,7 @@ func (client JobScheduleClient) Add(ctx context.Context, cloudJobSchedule JobSch result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Add", resp, "Failure responding to request") + return } return @@ -260,6 +261,7 @@ func (client JobScheduleClient) Delete(ctx context.Context, jobScheduleID string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Delete", resp, "Failure responding to request") + return } return @@ -385,6 +387,7 @@ func (client JobScheduleClient) Disable(ctx context.Context, jobScheduleID strin result, err = client.DisableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Disable", resp, "Failure responding to request") + return } return @@ -510,6 +513,7 @@ func (client JobScheduleClient) Enable(ctx context.Context, jobScheduleID string result, err = client.EnableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Enable", resp, "Failure responding to request") + return } return @@ -635,6 +639,7 @@ func (client JobScheduleClient) Exists(ctx context.Context, jobScheduleID string result, err = client.ExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Exists", resp, "Failure responding to request") + return } return @@ -762,6 +767,7 @@ func (client JobScheduleClient) Get(ctx context.Context, jobScheduleID string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Get", resp, "Failure responding to request") + return } return @@ -898,6 +904,7 @@ func (client JobScheduleClient) List(ctx context.Context, filter string, selectP result.cjslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "List", resp, "Failure responding to request") + return } if result.cjslr.hasNextLink() && result.cjslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -990,6 +997,7 @@ func (client JobScheduleClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1062,6 +1070,7 @@ func (client JobScheduleClient) Patch(ctx context.Context, jobScheduleID string, result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Patch", resp, "Failure responding to request") + return } return @@ -1189,6 +1198,7 @@ func (client JobScheduleClient) Terminate(ctx context.Context, jobScheduleID str result, err = client.TerminateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Terminate", resp, "Failure responding to request") + return } return @@ -1386,6 +1396,7 @@ func (client JobScheduleClient) Update(ctx context.Context, jobScheduleID string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/2018-08-01.7.0/batch/pool.go b/services/batch/2018-08-01.7.0/batch/pool.go index 385aa8e36c99..92e01c760d4f 100644 --- a/services/batch/2018-08-01.7.0/batch/pool.go +++ b/services/batch/2018-08-01.7.0/batch/pool.go @@ -111,6 +111,7 @@ func (client PoolClient) Add(ctx context.Context, pool PoolAddParameter, timeout result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Add", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client PoolClient) Delete(ctx context.Context, poolID string, timeout *int result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Delete", resp, "Failure responding to request") + return } return @@ -339,6 +341,7 @@ func (client PoolClient) DisableAutoScale(ctx context.Context, poolID string, ti result, err = client.DisableAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "DisableAutoScale", resp, "Failure responding to request") + return } return @@ -452,6 +455,7 @@ func (client PoolClient) EnableAutoScale(ctx context.Context, poolID string, poo result, err = client.EnableAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "EnableAutoScale", resp, "Failure responding to request") + return } return @@ -576,6 +580,7 @@ func (client PoolClient) EvaluateAutoScale(ctx context.Context, poolID string, p result, err = client.EvaluateAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "EvaluateAutoScale", resp, "Failure responding to request") + return } return @@ -688,6 +693,7 @@ func (client PoolClient) Exists(ctx context.Context, poolID string, timeout *int result, err = client.ExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Exists", resp, "Failure responding to request") + return } return @@ -815,6 +821,7 @@ func (client PoolClient) Get(ctx context.Context, poolID string, selectParameter result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Get", resp, "Failure responding to request") + return } return @@ -937,6 +944,7 @@ func (client PoolClient) GetAllLifetimeStatistics(ctx context.Context, timeout * result, err = client.GetAllLifetimeStatisticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "GetAllLifetimeStatistics", resp, "Failure responding to request") + return } return @@ -1046,6 +1054,7 @@ func (client PoolClient) List(ctx context.Context, filter string, selectParamete result.cplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "List", resp, "Failure responding to request") + return } if result.cplr.hasNextLink() && result.cplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1138,6 +1147,7 @@ func (client PoolClient) listNextResults(ctx context.Context, lastResults CloudP result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1216,6 +1226,7 @@ func (client PoolClient) ListUsageMetrics(ctx context.Context, startTime *date.T result.plumr, err = client.ListUsageMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "ListUsageMetrics", resp, "Failure responding to request") + return } if result.plumr.hasNextLink() && result.plumr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1308,6 +1319,7 @@ func (client PoolClient) listUsageMetricsNextResults(ctx context.Context, lastRe result, err = client.ListUsageMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "listUsageMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1379,6 +1391,7 @@ func (client PoolClient) Patch(ctx context.Context, poolID string, poolPatchPara result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Patch", resp, "Failure responding to request") + return } return @@ -1515,6 +1528,7 @@ func (client PoolClient) RemoveNodes(ctx context.Context, poolID string, nodeRem result, err = client.RemoveNodesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "RemoveNodes", resp, "Failure responding to request") + return } return @@ -1647,6 +1661,7 @@ func (client PoolClient) Resize(ctx context.Context, poolID string, poolResizePa result, err = client.ResizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Resize", resp, "Failure responding to request") + return } return @@ -1778,6 +1793,7 @@ func (client PoolClient) StopResize(ctx context.Context, poolID string, timeout result, err = client.StopResizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "StopResize", resp, "Failure responding to request") + return } return @@ -1913,6 +1929,7 @@ func (client PoolClient) UpdateProperties(ctx context.Context, poolID string, po result, err = client.UpdatePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "UpdateProperties", resp, "Failure responding to request") + return } return @@ -2041,6 +2058,7 @@ func (client PoolClient) UpgradeOS(ctx context.Context, poolID string, poolUpgra result, err = client.UpgradeOSResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "UpgradeOS", resp, "Failure responding to request") + return } return diff --git a/services/batch/2018-08-01.7.0/batch/task.go b/services/batch/2018-08-01.7.0/batch/task.go index 44a7fb817f73..2be071b94416 100644 --- a/services/batch/2018-08-01.7.0/batch/task.go +++ b/services/batch/2018-08-01.7.0/batch/task.go @@ -101,6 +101,7 @@ func (client TaskClient) Add(ctx context.Context, jobID string, task TaskAddPara result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Add", resp, "Failure responding to request") + return } return @@ -218,6 +219,7 @@ func (client TaskClient) AddCollection(ctx context.Context, jobID string, taskCo result, err = client.AddCollectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "AddCollection", resp, "Failure responding to request") + return } return @@ -333,6 +335,7 @@ func (client TaskClient) Delete(ctx context.Context, jobID string, taskID string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Delete", resp, "Failure responding to request") + return } return @@ -463,6 +466,7 @@ func (client TaskClient) Get(ctx context.Context, jobID string, taskID string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Get", resp, "Failure responding to request") + return } return @@ -601,6 +605,7 @@ func (client TaskClient) List(ctx context.Context, jobID string, filter string, result.ctlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "List", resp, "Failure responding to request") + return } if result.ctlr.hasNextLink() && result.ctlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -697,6 +702,7 @@ func (client TaskClient) listNextResults(ctx context.Context, lastResults CloudT result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -756,6 +762,7 @@ func (client TaskClient) ListSubtasks(ctx context.Context, jobID string, taskID result, err = client.ListSubtasksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "ListSubtasks", resp, "Failure responding to request") + return } return @@ -875,6 +882,7 @@ func (client TaskClient) Reactivate(ctx context.Context, jobID string, taskID st result, err = client.ReactivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Reactivate", resp, "Failure responding to request") + return } return @@ -1004,6 +1012,7 @@ func (client TaskClient) Terminate(ctx context.Context, jobID string, taskID str result, err = client.TerminateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Terminate", resp, "Failure responding to request") + return } return @@ -1132,6 +1141,7 @@ func (client TaskClient) Update(ctx context.Context, jobID string, taskID string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/2018-12-01.8.0/batch/account.go b/services/batch/2018-12-01.8.0/batch/account.go index 926df52e90ab..1a789c5d1134 100644 --- a/services/batch/2018-12-01.8.0/batch/account.go +++ b/services/batch/2018-12-01.8.0/batch/account.go @@ -88,6 +88,7 @@ func (client AccountClient) ListNodeAgentSkus(ctx context.Context, filter string result.alnasr, err = client.ListNodeAgentSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "ListNodeAgentSkus", resp, "Failure responding to request") + return } if result.alnasr.hasNextLink() && result.alnasr.IsEmpty() { err = result.NextWithContext(ctx) @@ -178,6 +179,7 @@ func (client AccountClient) listNodeAgentSkusNextResults(ctx context.Context, la result, err = client.ListNodeAgentSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listNodeAgentSkusNextResults", resp, "Failure responding to next results request") + return } return } @@ -247,6 +249,7 @@ func (client AccountClient) ListPoolNodeCounts(ctx context.Context, filter strin result.pnclr, err = client.ListPoolNodeCountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "ListPoolNodeCounts", resp, "Failure responding to request") + return } if result.pnclr.hasNextLink() && result.pnclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -337,6 +340,7 @@ func (client AccountClient) listPoolNodeCountsNextResults(ctx context.Context, l result, err = client.ListPoolNodeCountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listPoolNodeCountsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2018-12-01.8.0/batch/application.go b/services/batch/2018-12-01.8.0/batch/application.go index 56079f107d12..9a5353a00d97 100644 --- a/services/batch/2018-12-01.8.0/batch/application.go +++ b/services/batch/2018-12-01.8.0/batch/application.go @@ -77,6 +77,7 @@ func (client ApplicationClient) Get(ctx context.Context, applicationID string, t result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Get", resp, "Failure responding to request") + return } return @@ -193,6 +194,7 @@ func (client ApplicationClient) List(ctx context.Context, maxResults *int32, tim result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -280,6 +282,7 @@ func (client ApplicationClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2018-12-01.8.0/batch/certificate.go b/services/batch/2018-12-01.8.0/batch/certificate.go index 3e0f886fa77c..d7dfbf23ec4c 100644 --- a/services/batch/2018-12-01.8.0/batch/certificate.go +++ b/services/batch/2018-12-01.8.0/batch/certificate.go @@ -83,6 +83,7 @@ func (client CertificateClient) Add(ctx context.Context, certificate Certificate result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Add", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client CertificateClient) CancelDeletion(ctx context.Context, thumbprintAl result, err = client.CancelDeletionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "CancelDeletion", resp, "Failure responding to request") + return } return @@ -298,6 +300,7 @@ func (client CertificateClient) Delete(ctx context.Context, thumbprintAlgorithm result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Delete", resp, "Failure responding to request") + return } return @@ -403,6 +406,7 @@ func (client CertificateClient) Get(ctx context.Context, thumbprintAlgorithm str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -524,6 +528,7 @@ func (client CertificateClient) List(ctx context.Context, filter string, selectP result.clr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "List", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -617,6 +622,7 @@ func (client CertificateClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2018-12-01.8.0/batch/computenode.go b/services/batch/2018-12-01.8.0/batch/computenode.go index e027fa50e709..97219b3ebad3 100644 --- a/services/batch/2018-12-01.8.0/batch/computenode.go +++ b/services/batch/2018-12-01.8.0/batch/computenode.go @@ -83,6 +83,7 @@ func (client ComputeNodeClient) AddUser(ctx context.Context, poolID string, node result, err = client.AddUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "AddUser", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client ComputeNodeClient) DeleteUser(ctx context.Context, poolID string, n result, err = client.DeleteUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "DeleteUser", resp, "Failure responding to request") + return } return @@ -296,6 +298,7 @@ func (client ComputeNodeClient) DisableScheduling(ctx context.Context, poolID st result, err = client.DisableSchedulingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "DisableScheduling", resp, "Failure responding to request") + return } return @@ -405,6 +408,7 @@ func (client ComputeNodeClient) EnableScheduling(ctx context.Context, poolID str result, err = client.EnableSchedulingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "EnableScheduling", resp, "Failure responding to request") + return } return @@ -510,6 +514,7 @@ func (client ComputeNodeClient) Get(ctx context.Context, poolID string, nodeID s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "Get", resp, "Failure responding to request") + return } return @@ -620,6 +625,7 @@ func (client ComputeNodeClient) GetRemoteDesktop(ctx context.Context, poolID str result, err = client.GetRemoteDesktopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "GetRemoteDesktop", resp, "Failure responding to request") + return } return @@ -726,6 +732,7 @@ func (client ComputeNodeClient) GetRemoteLoginSettings(ctx context.Context, pool result, err = client.GetRemoteLoginSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "GetRemoteLoginSettings", resp, "Failure responding to request") + return } return @@ -844,6 +851,7 @@ func (client ComputeNodeClient) List(ctx context.Context, poolID string, filter result.cnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "List", resp, "Failure responding to request") + return } if result.cnlr.hasNextLink() && result.cnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -941,6 +949,7 @@ func (client ComputeNodeClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1000,6 +1009,7 @@ func (client ComputeNodeClient) Reboot(ctx context.Context, poolID string, nodeI result, err = client.RebootResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "Reboot", resp, "Failure responding to request") + return } return @@ -1111,6 +1121,7 @@ func (client ComputeNodeClient) Reimage(ctx context.Context, poolID string, node result, err = client.ReimageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "Reimage", resp, "Failure responding to request") + return } return @@ -1224,6 +1235,7 @@ func (client ComputeNodeClient) UpdateUser(ctx context.Context, poolID string, n result, err = client.UpdateUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "UpdateUser", resp, "Failure responding to request") + return } return @@ -1341,6 +1353,7 @@ func (client ComputeNodeClient) UploadBatchServiceLogs(ctx context.Context, pool result, err = client.UploadBatchServiceLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "UploadBatchServiceLogs", resp, "Failure responding to request") + return } return diff --git a/services/batch/2018-12-01.8.0/batch/file.go b/services/batch/2018-12-01.8.0/batch/file.go index 0403c17ed5e1..e4ae4cb1581e 100644 --- a/services/batch/2018-12-01.8.0/batch/file.go +++ b/services/batch/2018-12-01.8.0/batch/file.go @@ -80,6 +80,7 @@ func (client FileClient) DeleteFromComputeNode(ctx context.Context, poolID strin result, err = client.DeleteFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "DeleteFromComputeNode", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client FileClient) DeleteFromTask(ctx context.Context, jobID string, taskI result, err = client.DeleteFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "DeleteFromTask", resp, "Failure responding to request") + return } return @@ -308,6 +310,7 @@ func (client FileClient) GetFromComputeNode(ctx context.Context, poolID string, result, err = client.GetFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetFromComputeNode", resp, "Failure responding to request") + return } return @@ -433,6 +436,7 @@ func (client FileClient) GetFromTask(ctx context.Context, jobID string, taskID s result, err = client.GetFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetFromTask", resp, "Failure responding to request") + return } return @@ -556,6 +560,7 @@ func (client FileClient) GetPropertiesFromComputeNode(ctx context.Context, poolI result, err = client.GetPropertiesFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetPropertiesFromComputeNode", resp, "Failure responding to request") + return } return @@ -675,6 +680,7 @@ func (client FileClient) GetPropertiesFromTask(ctx context.Context, jobID string result, err = client.GetPropertiesFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetPropertiesFromTask", resp, "Failure responding to request") + return } return @@ -802,6 +808,7 @@ func (client FileClient) ListFromComputeNode(ctx context.Context, poolID string, result.nflr, err = client.ListFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "ListFromComputeNode", resp, "Failure responding to request") + return } if result.nflr.hasNextLink() && result.nflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -900,6 +907,7 @@ func (client FileClient) listFromComputeNodeNextResults(ctx context.Context, las result, err = client.ListFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "listFromComputeNodeNextResults", resp, "Failure responding to next results request") + return } return } @@ -973,6 +981,7 @@ func (client FileClient) ListFromTask(ctx context.Context, jobID string, taskID result.nflr, err = client.ListFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "ListFromTask", resp, "Failure responding to request") + return } if result.nflr.hasNextLink() && result.nflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1071,6 +1080,7 @@ func (client FileClient) listFromTaskNextResults(ctx context.Context, lastResult result, err = client.ListFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "listFromTaskNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2018-12-01.8.0/batch/job.go b/services/batch/2018-12-01.8.0/batch/job.go index 376af5033f96..e14367e80760 100644 --- a/services/batch/2018-12-01.8.0/batch/job.go +++ b/services/batch/2018-12-01.8.0/batch/job.go @@ -148,6 +148,7 @@ func (client JobClient) Add(ctx context.Context, job JobAddParameter, timeout *i result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Add", resp, "Failure responding to request") + return } return @@ -264,6 +265,7 @@ func (client JobClient) Delete(ctx context.Context, jobID string, timeout *int32 result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Delete", resp, "Failure responding to request") + return } return @@ -399,6 +401,7 @@ func (client JobClient) Disable(ctx context.Context, jobID string, jobDisablePar result, err = client.DisableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Disable", resp, "Failure responding to request") + return } return @@ -533,6 +536,7 @@ func (client JobClient) Enable(ctx context.Context, jobID string, timeout *int32 result, err = client.EnableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Enable", resp, "Failure responding to request") + return } return @@ -664,6 +668,7 @@ func (client JobClient) Get(ctx context.Context, jobID string, selectParameter s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Get", resp, "Failure responding to request") + return } return @@ -790,6 +795,7 @@ func (client JobClient) GetAllLifetimeStatistics(ctx context.Context, timeout *i result, err = client.GetAllLifetimeStatisticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "GetAllLifetimeStatistics", resp, "Failure responding to request") + return } return @@ -890,6 +896,7 @@ func (client JobClient) GetTaskCounts(ctx context.Context, jobID string, timeout result, err = client.GetTaskCountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "GetTaskCounts", resp, "Failure responding to request") + return } return @@ -1007,6 +1014,7 @@ func (client JobClient) List(ctx context.Context, filter string, selectParameter result.cjlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "List", resp, "Failure responding to request") + return } if result.cjlr.hasNextLink() && result.cjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1103,6 +1111,7 @@ func (client JobClient) listNextResults(ctx context.Context, lastResults CloudJo result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1175,6 +1184,7 @@ func (client JobClient) ListFromJobSchedule(ctx context.Context, jobScheduleID s result.cjlr, err = client.ListFromJobScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "ListFromJobSchedule", resp, "Failure responding to request") + return } if result.cjlr.hasNextLink() && result.cjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1275,6 +1285,7 @@ func (client JobClient) listFromJobScheduleNextResults(ctx context.Context, last result, err = client.ListFromJobScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "listFromJobScheduleNextResults", resp, "Failure responding to next results request") + return } return } @@ -1349,6 +1360,7 @@ func (client JobClient) ListPreparationAndReleaseTaskStatus(ctx context.Context, result.cjlpartsr, err = client.ListPreparationAndReleaseTaskStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "ListPreparationAndReleaseTaskStatus", resp, "Failure responding to request") + return } if result.cjlpartsr.hasNextLink() && result.cjlpartsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1446,6 +1458,7 @@ func (client JobClient) listPreparationAndReleaseTaskStatusNextResults(ctx conte result, err = client.ListPreparationAndReleaseTaskStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "listPreparationAndReleaseTaskStatusNextResults", resp, "Failure responding to next results request") + return } return } @@ -1516,6 +1529,7 @@ func (client JobClient) Patch(ctx context.Context, jobID string, jobPatchParamet result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Patch", resp, "Failure responding to request") + return } return @@ -1652,6 +1666,7 @@ func (client JobClient) Terminate(ctx context.Context, jobID string, jobTerminat result, err = client.TerminateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Terminate", resp, "Failure responding to request") + return } return @@ -1823,6 +1838,7 @@ func (client JobClient) Update(ctx context.Context, jobID string, jobUpdateParam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/2018-12-01.8.0/batch/jobschedule.go b/services/batch/2018-12-01.8.0/batch/jobschedule.go index 0c4eadc3f311..b9b2ee937a14 100644 --- a/services/batch/2018-12-01.8.0/batch/jobschedule.go +++ b/services/batch/2018-12-01.8.0/batch/jobschedule.go @@ -146,6 +146,7 @@ func (client JobScheduleClient) Add(ctx context.Context, cloudJobSchedule JobSch result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Add", resp, "Failure responding to request") + return } return @@ -260,6 +261,7 @@ func (client JobScheduleClient) Delete(ctx context.Context, jobScheduleID string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Delete", resp, "Failure responding to request") + return } return @@ -389,6 +391,7 @@ func (client JobScheduleClient) Disable(ctx context.Context, jobScheduleID strin result, err = client.DisableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Disable", resp, "Failure responding to request") + return } return @@ -518,6 +521,7 @@ func (client JobScheduleClient) Enable(ctx context.Context, jobScheduleID string result, err = client.EnableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Enable", resp, "Failure responding to request") + return } return @@ -647,6 +651,7 @@ func (client JobScheduleClient) Exists(ctx context.Context, jobScheduleID string result, err = client.ExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Exists", resp, "Failure responding to request") + return } return @@ -778,6 +783,7 @@ func (client JobScheduleClient) Get(ctx context.Context, jobScheduleID string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Get", resp, "Failure responding to request") + return } return @@ -918,6 +924,7 @@ func (client JobScheduleClient) List(ctx context.Context, filter string, selectP result.cjslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "List", resp, "Failure responding to request") + return } if result.cjslr.hasNextLink() && result.cjslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1014,6 +1021,7 @@ func (client JobScheduleClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1086,6 +1094,7 @@ func (client JobScheduleClient) Patch(ctx context.Context, jobScheduleID string, result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Patch", resp, "Failure responding to request") + return } return @@ -1217,6 +1226,7 @@ func (client JobScheduleClient) Terminate(ctx context.Context, jobScheduleID str result, err = client.TerminateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Terminate", resp, "Failure responding to request") + return } return @@ -1420,6 +1430,7 @@ func (client JobScheduleClient) Update(ctx context.Context, jobScheduleID string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/2018-12-01.8.0/batch/pool.go b/services/batch/2018-12-01.8.0/batch/pool.go index 2b8d9fd2b732..3c36fef9237c 100644 --- a/services/batch/2018-12-01.8.0/batch/pool.go +++ b/services/batch/2018-12-01.8.0/batch/pool.go @@ -105,6 +105,7 @@ func (client PoolClient) Add(ctx context.Context, pool PoolAddParameter, timeout result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Add", resp, "Failure responding to request") + return } return @@ -223,6 +224,7 @@ func (client PoolClient) Delete(ctx context.Context, poolID string, timeout *int result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Delete", resp, "Failure responding to request") + return } return @@ -341,6 +343,7 @@ func (client PoolClient) DisableAutoScale(ctx context.Context, poolID string, ti result, err = client.DisableAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "DisableAutoScale", resp, "Failure responding to request") + return } return @@ -458,6 +461,7 @@ func (client PoolClient) EnableAutoScale(ctx context.Context, poolID string, poo result, err = client.EnableAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "EnableAutoScale", resp, "Failure responding to request") + return } return @@ -586,6 +590,7 @@ func (client PoolClient) EvaluateAutoScale(ctx context.Context, poolID string, p result, err = client.EvaluateAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "EvaluateAutoScale", resp, "Failure responding to request") + return } return @@ -702,6 +707,7 @@ func (client PoolClient) Exists(ctx context.Context, poolID string, timeout *int result, err = client.ExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Exists", resp, "Failure responding to request") + return } return @@ -833,6 +839,7 @@ func (client PoolClient) Get(ctx context.Context, poolID string, selectParameter result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Get", resp, "Failure responding to request") + return } return @@ -959,6 +966,7 @@ func (client PoolClient) GetAllLifetimeStatistics(ctx context.Context, timeout * result, err = client.GetAllLifetimeStatisticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "GetAllLifetimeStatistics", resp, "Failure responding to request") + return } return @@ -1072,6 +1080,7 @@ func (client PoolClient) List(ctx context.Context, filter string, selectParamete result.cplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "List", resp, "Failure responding to request") + return } if result.cplr.hasNextLink() && result.cplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1168,6 +1177,7 @@ func (client PoolClient) listNextResults(ctx context.Context, lastResults CloudP result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1246,6 +1256,7 @@ func (client PoolClient) ListUsageMetrics(ctx context.Context, startTime *date.T result.plumr, err = client.ListUsageMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "ListUsageMetrics", resp, "Failure responding to request") + return } if result.plumr.hasNextLink() && result.plumr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1342,6 +1353,7 @@ func (client PoolClient) listUsageMetricsNextResults(ctx context.Context, lastRe result, err = client.ListUsageMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "listUsageMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1413,6 +1425,7 @@ func (client PoolClient) Patch(ctx context.Context, poolID string, poolPatchPara result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Patch", resp, "Failure responding to request") + return } return @@ -1553,6 +1566,7 @@ func (client PoolClient) RemoveNodes(ctx context.Context, poolID string, nodeRem result, err = client.RemoveNodesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "RemoveNodes", resp, "Failure responding to request") + return } return @@ -1689,6 +1703,7 @@ func (client PoolClient) Resize(ctx context.Context, poolID string, poolResizePa result, err = client.ResizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Resize", resp, "Failure responding to request") + return } return @@ -1824,6 +1839,7 @@ func (client PoolClient) StopResize(ctx context.Context, poolID string, timeout result, err = client.StopResizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "StopResize", resp, "Failure responding to request") + return } return @@ -1963,6 +1979,7 @@ func (client PoolClient) UpdateProperties(ctx context.Context, poolID string, po result, err = client.UpdatePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "UpdateProperties", resp, "Failure responding to request") + return } return diff --git a/services/batch/2018-12-01.8.0/batch/task.go b/services/batch/2018-12-01.8.0/batch/task.go index 55536a9159fe..2cc276bfe01b 100644 --- a/services/batch/2018-12-01.8.0/batch/task.go +++ b/services/batch/2018-12-01.8.0/batch/task.go @@ -95,6 +95,7 @@ func (client TaskClient) Add(ctx context.Context, jobID string, task TaskAddPara result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Add", resp, "Failure responding to request") + return } return @@ -216,6 +217,7 @@ func (client TaskClient) AddCollection(ctx context.Context, jobID string, taskCo result, err = client.AddCollectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "AddCollection", resp, "Failure responding to request") + return } return @@ -335,6 +337,7 @@ func (client TaskClient) Delete(ctx context.Context, jobID string, taskID string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Delete", resp, "Failure responding to request") + return } return @@ -469,6 +472,7 @@ func (client TaskClient) Get(ctx context.Context, jobID string, taskID string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Get", resp, "Failure responding to request") + return } return @@ -611,6 +615,7 @@ func (client TaskClient) List(ctx context.Context, jobID string, filter string, result.ctlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "List", resp, "Failure responding to request") + return } if result.ctlr.hasNextLink() && result.ctlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -711,6 +716,7 @@ func (client TaskClient) listNextResults(ctx context.Context, lastResults CloudT result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -770,6 +776,7 @@ func (client TaskClient) ListSubtasks(ctx context.Context, jobID string, taskID result, err = client.ListSubtasksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "ListSubtasks", resp, "Failure responding to request") + return } return @@ -893,6 +900,7 @@ func (client TaskClient) Reactivate(ctx context.Context, jobID string, taskID st result, err = client.ReactivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Reactivate", resp, "Failure responding to request") + return } return @@ -1026,6 +1034,7 @@ func (client TaskClient) Terminate(ctx context.Context, jobID string, taskID str result, err = client.TerminateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Terminate", resp, "Failure responding to request") + return } return @@ -1158,6 +1167,7 @@ func (client TaskClient) Update(ctx context.Context, jobID string, taskID string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/2019-06-01.9.0/batch/account.go b/services/batch/2019-06-01.9.0/batch/account.go index 4bbb52c71ecb..613cce0b2c59 100644 --- a/services/batch/2019-06-01.9.0/batch/account.go +++ b/services/batch/2019-06-01.9.0/batch/account.go @@ -87,6 +87,7 @@ func (client AccountClient) ListPoolNodeCounts(ctx context.Context, filter strin result.pnclr, err = client.ListPoolNodeCountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "ListPoolNodeCounts", resp, "Failure responding to request") + return } if result.pnclr.hasNextLink() && result.pnclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -177,6 +178,7 @@ func (client AccountClient) listPoolNodeCountsNextResults(ctx context.Context, l result, err = client.ListPoolNodeCountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listPoolNodeCountsNextResults", resp, "Failure responding to next results request") + return } return } @@ -247,6 +249,7 @@ func (client AccountClient) ListSupportedImages(ctx context.Context, filter stri result.alsir, err = client.ListSupportedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "ListSupportedImages", resp, "Failure responding to request") + return } if result.alsir.hasNextLink() && result.alsir.IsEmpty() { err = result.NextWithContext(ctx) @@ -337,6 +340,7 @@ func (client AccountClient) listSupportedImagesNextResults(ctx context.Context, result, err = client.ListSupportedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listSupportedImagesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2019-06-01.9.0/batch/application.go b/services/batch/2019-06-01.9.0/batch/application.go index 810306106e76..219b31445c22 100644 --- a/services/batch/2019-06-01.9.0/batch/application.go +++ b/services/batch/2019-06-01.9.0/batch/application.go @@ -77,6 +77,7 @@ func (client ApplicationClient) Get(ctx context.Context, applicationID string, t result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Get", resp, "Failure responding to request") + return } return @@ -193,6 +194,7 @@ func (client ApplicationClient) List(ctx context.Context, maxResults *int32, tim result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -280,6 +282,7 @@ func (client ApplicationClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2019-06-01.9.0/batch/certificate.go b/services/batch/2019-06-01.9.0/batch/certificate.go index 75b48d77cb85..2f0f7d5731ec 100644 --- a/services/batch/2019-06-01.9.0/batch/certificate.go +++ b/services/batch/2019-06-01.9.0/batch/certificate.go @@ -83,6 +83,7 @@ func (client CertificateClient) Add(ctx context.Context, certificate Certificate result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Add", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client CertificateClient) CancelDeletion(ctx context.Context, thumbprintAl result, err = client.CancelDeletionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "CancelDeletion", resp, "Failure responding to request") + return } return @@ -298,6 +300,7 @@ func (client CertificateClient) Delete(ctx context.Context, thumbprintAlgorithm result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Delete", resp, "Failure responding to request") + return } return @@ -403,6 +406,7 @@ func (client CertificateClient) Get(ctx context.Context, thumbprintAlgorithm str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -524,6 +528,7 @@ func (client CertificateClient) List(ctx context.Context, filter string, selectP result.clr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "List", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -617,6 +622,7 @@ func (client CertificateClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2019-06-01.9.0/batch/computenode.go b/services/batch/2019-06-01.9.0/batch/computenode.go index 7da57a5ca089..963be1e6924c 100644 --- a/services/batch/2019-06-01.9.0/batch/computenode.go +++ b/services/batch/2019-06-01.9.0/batch/computenode.go @@ -83,6 +83,7 @@ func (client ComputeNodeClient) AddUser(ctx context.Context, poolID string, node result, err = client.AddUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "AddUser", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client ComputeNodeClient) DeleteUser(ctx context.Context, poolID string, n result, err = client.DeleteUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "DeleteUser", resp, "Failure responding to request") + return } return @@ -296,6 +298,7 @@ func (client ComputeNodeClient) DisableScheduling(ctx context.Context, poolID st result, err = client.DisableSchedulingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "DisableScheduling", resp, "Failure responding to request") + return } return @@ -405,6 +408,7 @@ func (client ComputeNodeClient) EnableScheduling(ctx context.Context, poolID str result, err = client.EnableSchedulingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "EnableScheduling", resp, "Failure responding to request") + return } return @@ -510,6 +514,7 @@ func (client ComputeNodeClient) Get(ctx context.Context, poolID string, nodeID s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "Get", resp, "Failure responding to request") + return } return @@ -620,6 +625,7 @@ func (client ComputeNodeClient) GetRemoteDesktop(ctx context.Context, poolID str result, err = client.GetRemoteDesktopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "GetRemoteDesktop", resp, "Failure responding to request") + return } return @@ -726,6 +732,7 @@ func (client ComputeNodeClient) GetRemoteLoginSettings(ctx context.Context, pool result, err = client.GetRemoteLoginSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "GetRemoteLoginSettings", resp, "Failure responding to request") + return } return @@ -845,6 +852,7 @@ func (client ComputeNodeClient) List(ctx context.Context, poolID string, filter result.cnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "List", resp, "Failure responding to request") + return } if result.cnlr.hasNextLink() && result.cnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -942,6 +950,7 @@ func (client ComputeNodeClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1001,6 +1010,7 @@ func (client ComputeNodeClient) Reboot(ctx context.Context, poolID string, nodeI result, err = client.RebootResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "Reboot", resp, "Failure responding to request") + return } return @@ -1112,6 +1122,7 @@ func (client ComputeNodeClient) Reimage(ctx context.Context, poolID string, node result, err = client.ReimageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "Reimage", resp, "Failure responding to request") + return } return @@ -1225,6 +1236,7 @@ func (client ComputeNodeClient) UpdateUser(ctx context.Context, poolID string, n result, err = client.UpdateUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "UpdateUser", resp, "Failure responding to request") + return } return @@ -1342,6 +1354,7 @@ func (client ComputeNodeClient) UploadBatchServiceLogs(ctx context.Context, pool result, err = client.UploadBatchServiceLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "UploadBatchServiceLogs", resp, "Failure responding to request") + return } return diff --git a/services/batch/2019-06-01.9.0/batch/file.go b/services/batch/2019-06-01.9.0/batch/file.go index e223990d63b4..aa082c711b6e 100644 --- a/services/batch/2019-06-01.9.0/batch/file.go +++ b/services/batch/2019-06-01.9.0/batch/file.go @@ -80,6 +80,7 @@ func (client FileClient) DeleteFromComputeNode(ctx context.Context, poolID strin result, err = client.DeleteFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "DeleteFromComputeNode", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client FileClient) DeleteFromTask(ctx context.Context, jobID string, taskI result, err = client.DeleteFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "DeleteFromTask", resp, "Failure responding to request") + return } return @@ -308,6 +310,7 @@ func (client FileClient) GetFromComputeNode(ctx context.Context, poolID string, result, err = client.GetFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetFromComputeNode", resp, "Failure responding to request") + return } return @@ -433,6 +436,7 @@ func (client FileClient) GetFromTask(ctx context.Context, jobID string, taskID s result, err = client.GetFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetFromTask", resp, "Failure responding to request") + return } return @@ -556,6 +560,7 @@ func (client FileClient) GetPropertiesFromComputeNode(ctx context.Context, poolI result, err = client.GetPropertiesFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetPropertiesFromComputeNode", resp, "Failure responding to request") + return } return @@ -675,6 +680,7 @@ func (client FileClient) GetPropertiesFromTask(ctx context.Context, jobID string result, err = client.GetPropertiesFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetPropertiesFromTask", resp, "Failure responding to request") + return } return @@ -802,6 +808,7 @@ func (client FileClient) ListFromComputeNode(ctx context.Context, poolID string, result.nflr, err = client.ListFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "ListFromComputeNode", resp, "Failure responding to request") + return } if result.nflr.hasNextLink() && result.nflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -900,6 +907,7 @@ func (client FileClient) listFromComputeNodeNextResults(ctx context.Context, las result, err = client.ListFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "listFromComputeNodeNextResults", resp, "Failure responding to next results request") + return } return } @@ -973,6 +981,7 @@ func (client FileClient) ListFromTask(ctx context.Context, jobID string, taskID result.nflr, err = client.ListFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "ListFromTask", resp, "Failure responding to request") + return } if result.nflr.hasNextLink() && result.nflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1071,6 +1080,7 @@ func (client FileClient) listFromTaskNextResults(ctx context.Context, lastResult result, err = client.ListFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "listFromTaskNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2019-06-01.9.0/batch/job.go b/services/batch/2019-06-01.9.0/batch/job.go index 2702766b8e59..6defafa772d0 100644 --- a/services/batch/2019-06-01.9.0/batch/job.go +++ b/services/batch/2019-06-01.9.0/batch/job.go @@ -148,6 +148,7 @@ func (client JobClient) Add(ctx context.Context, job JobAddParameter, timeout *i result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Add", resp, "Failure responding to request") + return } return @@ -264,6 +265,7 @@ func (client JobClient) Delete(ctx context.Context, jobID string, timeout *int32 result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Delete", resp, "Failure responding to request") + return } return @@ -399,6 +401,7 @@ func (client JobClient) Disable(ctx context.Context, jobID string, jobDisablePar result, err = client.DisableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Disable", resp, "Failure responding to request") + return } return @@ -533,6 +536,7 @@ func (client JobClient) Enable(ctx context.Context, jobID string, timeout *int32 result, err = client.EnableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Enable", resp, "Failure responding to request") + return } return @@ -664,6 +668,7 @@ func (client JobClient) Get(ctx context.Context, jobID string, selectParameter s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Get", resp, "Failure responding to request") + return } return @@ -790,6 +795,7 @@ func (client JobClient) GetAllLifetimeStatistics(ctx context.Context, timeout *i result, err = client.GetAllLifetimeStatisticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "GetAllLifetimeStatistics", resp, "Failure responding to request") + return } return @@ -890,6 +896,7 @@ func (client JobClient) GetTaskCounts(ctx context.Context, jobID string, timeout result, err = client.GetTaskCountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "GetTaskCounts", resp, "Failure responding to request") + return } return @@ -1007,6 +1014,7 @@ func (client JobClient) List(ctx context.Context, filter string, selectParameter result.cjlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "List", resp, "Failure responding to request") + return } if result.cjlr.hasNextLink() && result.cjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1103,6 +1111,7 @@ func (client JobClient) listNextResults(ctx context.Context, lastResults CloudJo result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1175,6 +1184,7 @@ func (client JobClient) ListFromJobSchedule(ctx context.Context, jobScheduleID s result.cjlr, err = client.ListFromJobScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "ListFromJobSchedule", resp, "Failure responding to request") + return } if result.cjlr.hasNextLink() && result.cjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1275,6 +1285,7 @@ func (client JobClient) listFromJobScheduleNextResults(ctx context.Context, last result, err = client.ListFromJobScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "listFromJobScheduleNextResults", resp, "Failure responding to next results request") + return } return } @@ -1349,6 +1360,7 @@ func (client JobClient) ListPreparationAndReleaseTaskStatus(ctx context.Context, result.cjlpartsr, err = client.ListPreparationAndReleaseTaskStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "ListPreparationAndReleaseTaskStatus", resp, "Failure responding to request") + return } if result.cjlpartsr.hasNextLink() && result.cjlpartsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1446,6 +1458,7 @@ func (client JobClient) listPreparationAndReleaseTaskStatusNextResults(ctx conte result, err = client.ListPreparationAndReleaseTaskStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "listPreparationAndReleaseTaskStatusNextResults", resp, "Failure responding to next results request") + return } return } @@ -1516,6 +1529,7 @@ func (client JobClient) Patch(ctx context.Context, jobID string, jobPatchParamet result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Patch", resp, "Failure responding to request") + return } return @@ -1652,6 +1666,7 @@ func (client JobClient) Terminate(ctx context.Context, jobID string, jobTerminat result, err = client.TerminateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Terminate", resp, "Failure responding to request") + return } return @@ -1823,6 +1838,7 @@ func (client JobClient) Update(ctx context.Context, jobID string, jobUpdateParam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/2019-06-01.9.0/batch/jobschedule.go b/services/batch/2019-06-01.9.0/batch/jobschedule.go index 9d44a5fab6e8..0c293c534eee 100644 --- a/services/batch/2019-06-01.9.0/batch/jobschedule.go +++ b/services/batch/2019-06-01.9.0/batch/jobschedule.go @@ -146,6 +146,7 @@ func (client JobScheduleClient) Add(ctx context.Context, cloudJobSchedule JobSch result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Add", resp, "Failure responding to request") + return } return @@ -260,6 +261,7 @@ func (client JobScheduleClient) Delete(ctx context.Context, jobScheduleID string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Delete", resp, "Failure responding to request") + return } return @@ -389,6 +391,7 @@ func (client JobScheduleClient) Disable(ctx context.Context, jobScheduleID strin result, err = client.DisableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Disable", resp, "Failure responding to request") + return } return @@ -518,6 +521,7 @@ func (client JobScheduleClient) Enable(ctx context.Context, jobScheduleID string result, err = client.EnableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Enable", resp, "Failure responding to request") + return } return @@ -647,6 +651,7 @@ func (client JobScheduleClient) Exists(ctx context.Context, jobScheduleID string result, err = client.ExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Exists", resp, "Failure responding to request") + return } return @@ -778,6 +783,7 @@ func (client JobScheduleClient) Get(ctx context.Context, jobScheduleID string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Get", resp, "Failure responding to request") + return } return @@ -918,6 +924,7 @@ func (client JobScheduleClient) List(ctx context.Context, filter string, selectP result.cjslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "List", resp, "Failure responding to request") + return } if result.cjslr.hasNextLink() && result.cjslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1014,6 +1021,7 @@ func (client JobScheduleClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1086,6 +1094,7 @@ func (client JobScheduleClient) Patch(ctx context.Context, jobScheduleID string, result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Patch", resp, "Failure responding to request") + return } return @@ -1217,6 +1226,7 @@ func (client JobScheduleClient) Terminate(ctx context.Context, jobScheduleID str result, err = client.TerminateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Terminate", resp, "Failure responding to request") + return } return @@ -1420,6 +1430,7 @@ func (client JobScheduleClient) Update(ctx context.Context, jobScheduleID string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/2019-06-01.9.0/batch/pool.go b/services/batch/2019-06-01.9.0/batch/pool.go index 7cc31747d89a..6167974b0451 100644 --- a/services/batch/2019-06-01.9.0/batch/pool.go +++ b/services/batch/2019-06-01.9.0/batch/pool.go @@ -105,6 +105,7 @@ func (client PoolClient) Add(ctx context.Context, pool PoolAddParameter, timeout result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Add", resp, "Failure responding to request") + return } return @@ -223,6 +224,7 @@ func (client PoolClient) Delete(ctx context.Context, poolID string, timeout *int result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Delete", resp, "Failure responding to request") + return } return @@ -341,6 +343,7 @@ func (client PoolClient) DisableAutoScale(ctx context.Context, poolID string, ti result, err = client.DisableAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "DisableAutoScale", resp, "Failure responding to request") + return } return @@ -458,6 +461,7 @@ func (client PoolClient) EnableAutoScale(ctx context.Context, poolID string, poo result, err = client.EnableAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "EnableAutoScale", resp, "Failure responding to request") + return } return @@ -586,6 +590,7 @@ func (client PoolClient) EvaluateAutoScale(ctx context.Context, poolID string, p result, err = client.EvaluateAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "EvaluateAutoScale", resp, "Failure responding to request") + return } return @@ -702,6 +707,7 @@ func (client PoolClient) Exists(ctx context.Context, poolID string, timeout *int result, err = client.ExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Exists", resp, "Failure responding to request") + return } return @@ -833,6 +839,7 @@ func (client PoolClient) Get(ctx context.Context, poolID string, selectParameter result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Get", resp, "Failure responding to request") + return } return @@ -959,6 +966,7 @@ func (client PoolClient) GetAllLifetimeStatistics(ctx context.Context, timeout * result, err = client.GetAllLifetimeStatisticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "GetAllLifetimeStatistics", resp, "Failure responding to request") + return } return @@ -1072,6 +1080,7 @@ func (client PoolClient) List(ctx context.Context, filter string, selectParamete result.cplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "List", resp, "Failure responding to request") + return } if result.cplr.hasNextLink() && result.cplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1168,6 +1177,7 @@ func (client PoolClient) listNextResults(ctx context.Context, lastResults CloudP result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1246,6 +1256,7 @@ func (client PoolClient) ListUsageMetrics(ctx context.Context, startTime *date.T result.plumr, err = client.ListUsageMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "ListUsageMetrics", resp, "Failure responding to request") + return } if result.plumr.hasNextLink() && result.plumr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1342,6 +1353,7 @@ func (client PoolClient) listUsageMetricsNextResults(ctx context.Context, lastRe result, err = client.ListUsageMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "listUsageMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1413,6 +1425,7 @@ func (client PoolClient) Patch(ctx context.Context, poolID string, poolPatchPara result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Patch", resp, "Failure responding to request") + return } return @@ -1553,6 +1566,7 @@ func (client PoolClient) RemoveNodes(ctx context.Context, poolID string, nodeRem result, err = client.RemoveNodesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "RemoveNodes", resp, "Failure responding to request") + return } return @@ -1689,6 +1703,7 @@ func (client PoolClient) Resize(ctx context.Context, poolID string, poolResizePa result, err = client.ResizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Resize", resp, "Failure responding to request") + return } return @@ -1824,6 +1839,7 @@ func (client PoolClient) StopResize(ctx context.Context, poolID string, timeout result, err = client.StopResizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "StopResize", resp, "Failure responding to request") + return } return @@ -1963,6 +1979,7 @@ func (client PoolClient) UpdateProperties(ctx context.Context, poolID string, po result, err = client.UpdatePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "UpdateProperties", resp, "Failure responding to request") + return } return diff --git a/services/batch/2019-06-01.9.0/batch/task.go b/services/batch/2019-06-01.9.0/batch/task.go index 3136aeaa0fdc..0df15e2f3440 100644 --- a/services/batch/2019-06-01.9.0/batch/task.go +++ b/services/batch/2019-06-01.9.0/batch/task.go @@ -95,6 +95,7 @@ func (client TaskClient) Add(ctx context.Context, jobID string, task TaskAddPara result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Add", resp, "Failure responding to request") + return } return @@ -216,6 +217,7 @@ func (client TaskClient) AddCollection(ctx context.Context, jobID string, taskCo result, err = client.AddCollectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "AddCollection", resp, "Failure responding to request") + return } return @@ -335,6 +337,7 @@ func (client TaskClient) Delete(ctx context.Context, jobID string, taskID string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Delete", resp, "Failure responding to request") + return } return @@ -469,6 +472,7 @@ func (client TaskClient) Get(ctx context.Context, jobID string, taskID string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Get", resp, "Failure responding to request") + return } return @@ -611,6 +615,7 @@ func (client TaskClient) List(ctx context.Context, jobID string, filter string, result.ctlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "List", resp, "Failure responding to request") + return } if result.ctlr.hasNextLink() && result.ctlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -711,6 +716,7 @@ func (client TaskClient) listNextResults(ctx context.Context, lastResults CloudT result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -770,6 +776,7 @@ func (client TaskClient) ListSubtasks(ctx context.Context, jobID string, taskID result, err = client.ListSubtasksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "ListSubtasks", resp, "Failure responding to request") + return } return @@ -893,6 +900,7 @@ func (client TaskClient) Reactivate(ctx context.Context, jobID string, taskID st result, err = client.ReactivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Reactivate", resp, "Failure responding to request") + return } return @@ -1026,6 +1034,7 @@ func (client TaskClient) Terminate(ctx context.Context, jobID string, taskID str result, err = client.TerminateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Terminate", resp, "Failure responding to request") + return } return @@ -1158,6 +1167,7 @@ func (client TaskClient) Update(ctx context.Context, jobID string, taskID string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/2019-08-01.10.0/batch/account.go b/services/batch/2019-08-01.10.0/batch/account.go index b0ad561e649e..f47a71a802e1 100644 --- a/services/batch/2019-08-01.10.0/batch/account.go +++ b/services/batch/2019-08-01.10.0/batch/account.go @@ -87,6 +87,7 @@ func (client AccountClient) ListPoolNodeCounts(ctx context.Context, filter strin result.pnclr, err = client.ListPoolNodeCountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "ListPoolNodeCounts", resp, "Failure responding to request") + return } if result.pnclr.hasNextLink() && result.pnclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -177,6 +178,7 @@ func (client AccountClient) listPoolNodeCountsNextResults(ctx context.Context, l result, err = client.ListPoolNodeCountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listPoolNodeCountsNextResults", resp, "Failure responding to next results request") + return } return } @@ -247,6 +249,7 @@ func (client AccountClient) ListSupportedImages(ctx context.Context, filter stri result.alsir, err = client.ListSupportedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "ListSupportedImages", resp, "Failure responding to request") + return } if result.alsir.hasNextLink() && result.alsir.IsEmpty() { err = result.NextWithContext(ctx) @@ -337,6 +340,7 @@ func (client AccountClient) listSupportedImagesNextResults(ctx context.Context, result, err = client.ListSupportedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listSupportedImagesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2019-08-01.10.0/batch/application.go b/services/batch/2019-08-01.10.0/batch/application.go index 5510c468c37f..7579e1b83765 100644 --- a/services/batch/2019-08-01.10.0/batch/application.go +++ b/services/batch/2019-08-01.10.0/batch/application.go @@ -77,6 +77,7 @@ func (client ApplicationClient) Get(ctx context.Context, applicationID string, t result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Get", resp, "Failure responding to request") + return } return @@ -193,6 +194,7 @@ func (client ApplicationClient) List(ctx context.Context, maxResults *int32, tim result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -280,6 +282,7 @@ func (client ApplicationClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2019-08-01.10.0/batch/certificate.go b/services/batch/2019-08-01.10.0/batch/certificate.go index 69ffca6fc7d8..5f687418bdc2 100644 --- a/services/batch/2019-08-01.10.0/batch/certificate.go +++ b/services/batch/2019-08-01.10.0/batch/certificate.go @@ -83,6 +83,7 @@ func (client CertificateClient) Add(ctx context.Context, certificate Certificate result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Add", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client CertificateClient) CancelDeletion(ctx context.Context, thumbprintAl result, err = client.CancelDeletionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "CancelDeletion", resp, "Failure responding to request") + return } return @@ -298,6 +300,7 @@ func (client CertificateClient) Delete(ctx context.Context, thumbprintAlgorithm result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Delete", resp, "Failure responding to request") + return } return @@ -403,6 +406,7 @@ func (client CertificateClient) Get(ctx context.Context, thumbprintAlgorithm str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -524,6 +528,7 @@ func (client CertificateClient) List(ctx context.Context, filter string, selectP result.clr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "List", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -617,6 +622,7 @@ func (client CertificateClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2019-08-01.10.0/batch/computenode.go b/services/batch/2019-08-01.10.0/batch/computenode.go index eaaae72ae6a4..5a6244cb6ba6 100644 --- a/services/batch/2019-08-01.10.0/batch/computenode.go +++ b/services/batch/2019-08-01.10.0/batch/computenode.go @@ -83,6 +83,7 @@ func (client ComputeNodeClient) AddUser(ctx context.Context, poolID string, node result, err = client.AddUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "AddUser", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client ComputeNodeClient) DeleteUser(ctx context.Context, poolID string, n result, err = client.DeleteUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "DeleteUser", resp, "Failure responding to request") + return } return @@ -296,6 +298,7 @@ func (client ComputeNodeClient) DisableScheduling(ctx context.Context, poolID st result, err = client.DisableSchedulingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "DisableScheduling", resp, "Failure responding to request") + return } return @@ -405,6 +408,7 @@ func (client ComputeNodeClient) EnableScheduling(ctx context.Context, poolID str result, err = client.EnableSchedulingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "EnableScheduling", resp, "Failure responding to request") + return } return @@ -510,6 +514,7 @@ func (client ComputeNodeClient) Get(ctx context.Context, poolID string, nodeID s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "Get", resp, "Failure responding to request") + return } return @@ -620,6 +625,7 @@ func (client ComputeNodeClient) GetRemoteDesktop(ctx context.Context, poolID str result, err = client.GetRemoteDesktopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "GetRemoteDesktop", resp, "Failure responding to request") + return } return @@ -726,6 +732,7 @@ func (client ComputeNodeClient) GetRemoteLoginSettings(ctx context.Context, pool result, err = client.GetRemoteLoginSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "GetRemoteLoginSettings", resp, "Failure responding to request") + return } return @@ -845,6 +852,7 @@ func (client ComputeNodeClient) List(ctx context.Context, poolID string, filter result.cnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "List", resp, "Failure responding to request") + return } if result.cnlr.hasNextLink() && result.cnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -942,6 +950,7 @@ func (client ComputeNodeClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1001,6 +1010,7 @@ func (client ComputeNodeClient) Reboot(ctx context.Context, poolID string, nodeI result, err = client.RebootResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "Reboot", resp, "Failure responding to request") + return } return @@ -1112,6 +1122,7 @@ func (client ComputeNodeClient) Reimage(ctx context.Context, poolID string, node result, err = client.ReimageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "Reimage", resp, "Failure responding to request") + return } return @@ -1225,6 +1236,7 @@ func (client ComputeNodeClient) UpdateUser(ctx context.Context, poolID string, n result, err = client.UpdateUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "UpdateUser", resp, "Failure responding to request") + return } return @@ -1342,6 +1354,7 @@ func (client ComputeNodeClient) UploadBatchServiceLogs(ctx context.Context, pool result, err = client.UploadBatchServiceLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "UploadBatchServiceLogs", resp, "Failure responding to request") + return } return diff --git a/services/batch/2019-08-01.10.0/batch/file.go b/services/batch/2019-08-01.10.0/batch/file.go index 0fe559b96321..aade9f0e1250 100644 --- a/services/batch/2019-08-01.10.0/batch/file.go +++ b/services/batch/2019-08-01.10.0/batch/file.go @@ -80,6 +80,7 @@ func (client FileClient) DeleteFromComputeNode(ctx context.Context, poolID strin result, err = client.DeleteFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "DeleteFromComputeNode", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client FileClient) DeleteFromTask(ctx context.Context, jobID string, taskI result, err = client.DeleteFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "DeleteFromTask", resp, "Failure responding to request") + return } return @@ -308,6 +310,7 @@ func (client FileClient) GetFromComputeNode(ctx context.Context, poolID string, result, err = client.GetFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetFromComputeNode", resp, "Failure responding to request") + return } return @@ -433,6 +436,7 @@ func (client FileClient) GetFromTask(ctx context.Context, jobID string, taskID s result, err = client.GetFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetFromTask", resp, "Failure responding to request") + return } return @@ -556,6 +560,7 @@ func (client FileClient) GetPropertiesFromComputeNode(ctx context.Context, poolI result, err = client.GetPropertiesFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetPropertiesFromComputeNode", resp, "Failure responding to request") + return } return @@ -675,6 +680,7 @@ func (client FileClient) GetPropertiesFromTask(ctx context.Context, jobID string result, err = client.GetPropertiesFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetPropertiesFromTask", resp, "Failure responding to request") + return } return @@ -802,6 +808,7 @@ func (client FileClient) ListFromComputeNode(ctx context.Context, poolID string, result.nflr, err = client.ListFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "ListFromComputeNode", resp, "Failure responding to request") + return } if result.nflr.hasNextLink() && result.nflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -900,6 +907,7 @@ func (client FileClient) listFromComputeNodeNextResults(ctx context.Context, las result, err = client.ListFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "listFromComputeNodeNextResults", resp, "Failure responding to next results request") + return } return } @@ -973,6 +981,7 @@ func (client FileClient) ListFromTask(ctx context.Context, jobID string, taskID result.nflr, err = client.ListFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "ListFromTask", resp, "Failure responding to request") + return } if result.nflr.hasNextLink() && result.nflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1071,6 +1080,7 @@ func (client FileClient) listFromTaskNextResults(ctx context.Context, lastResult result, err = client.ListFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "listFromTaskNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2019-08-01.10.0/batch/job.go b/services/batch/2019-08-01.10.0/batch/job.go index 4676fd45e4ee..040ad2cda729 100644 --- a/services/batch/2019-08-01.10.0/batch/job.go +++ b/services/batch/2019-08-01.10.0/batch/job.go @@ -148,6 +148,7 @@ func (client JobClient) Add(ctx context.Context, job JobAddParameter, timeout *i result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Add", resp, "Failure responding to request") + return } return @@ -264,6 +265,7 @@ func (client JobClient) Delete(ctx context.Context, jobID string, timeout *int32 result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Delete", resp, "Failure responding to request") + return } return @@ -399,6 +401,7 @@ func (client JobClient) Disable(ctx context.Context, jobID string, jobDisablePar result, err = client.DisableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Disable", resp, "Failure responding to request") + return } return @@ -533,6 +536,7 @@ func (client JobClient) Enable(ctx context.Context, jobID string, timeout *int32 result, err = client.EnableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Enable", resp, "Failure responding to request") + return } return @@ -664,6 +668,7 @@ func (client JobClient) Get(ctx context.Context, jobID string, selectParameter s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Get", resp, "Failure responding to request") + return } return @@ -790,6 +795,7 @@ func (client JobClient) GetAllLifetimeStatistics(ctx context.Context, timeout *i result, err = client.GetAllLifetimeStatisticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "GetAllLifetimeStatistics", resp, "Failure responding to request") + return } return @@ -890,6 +896,7 @@ func (client JobClient) GetTaskCounts(ctx context.Context, jobID string, timeout result, err = client.GetTaskCountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "GetTaskCounts", resp, "Failure responding to request") + return } return @@ -1007,6 +1014,7 @@ func (client JobClient) List(ctx context.Context, filter string, selectParameter result.cjlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "List", resp, "Failure responding to request") + return } if result.cjlr.hasNextLink() && result.cjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1103,6 +1111,7 @@ func (client JobClient) listNextResults(ctx context.Context, lastResults CloudJo result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1175,6 +1184,7 @@ func (client JobClient) ListFromJobSchedule(ctx context.Context, jobScheduleID s result.cjlr, err = client.ListFromJobScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "ListFromJobSchedule", resp, "Failure responding to request") + return } if result.cjlr.hasNextLink() && result.cjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1275,6 +1285,7 @@ func (client JobClient) listFromJobScheduleNextResults(ctx context.Context, last result, err = client.ListFromJobScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "listFromJobScheduleNextResults", resp, "Failure responding to next results request") + return } return } @@ -1349,6 +1360,7 @@ func (client JobClient) ListPreparationAndReleaseTaskStatus(ctx context.Context, result.cjlpartsr, err = client.ListPreparationAndReleaseTaskStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "ListPreparationAndReleaseTaskStatus", resp, "Failure responding to request") + return } if result.cjlpartsr.hasNextLink() && result.cjlpartsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1446,6 +1458,7 @@ func (client JobClient) listPreparationAndReleaseTaskStatusNextResults(ctx conte result, err = client.ListPreparationAndReleaseTaskStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "listPreparationAndReleaseTaskStatusNextResults", resp, "Failure responding to next results request") + return } return } @@ -1516,6 +1529,7 @@ func (client JobClient) Patch(ctx context.Context, jobID string, jobPatchParamet result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Patch", resp, "Failure responding to request") + return } return @@ -1652,6 +1666,7 @@ func (client JobClient) Terminate(ctx context.Context, jobID string, jobTerminat result, err = client.TerminateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Terminate", resp, "Failure responding to request") + return } return @@ -1823,6 +1838,7 @@ func (client JobClient) Update(ctx context.Context, jobID string, jobUpdateParam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/2019-08-01.10.0/batch/jobschedule.go b/services/batch/2019-08-01.10.0/batch/jobschedule.go index 991a766e58b6..6cc50048ccdf 100644 --- a/services/batch/2019-08-01.10.0/batch/jobschedule.go +++ b/services/batch/2019-08-01.10.0/batch/jobschedule.go @@ -146,6 +146,7 @@ func (client JobScheduleClient) Add(ctx context.Context, cloudJobSchedule JobSch result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Add", resp, "Failure responding to request") + return } return @@ -260,6 +261,7 @@ func (client JobScheduleClient) Delete(ctx context.Context, jobScheduleID string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Delete", resp, "Failure responding to request") + return } return @@ -389,6 +391,7 @@ func (client JobScheduleClient) Disable(ctx context.Context, jobScheduleID strin result, err = client.DisableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Disable", resp, "Failure responding to request") + return } return @@ -518,6 +521,7 @@ func (client JobScheduleClient) Enable(ctx context.Context, jobScheduleID string result, err = client.EnableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Enable", resp, "Failure responding to request") + return } return @@ -647,6 +651,7 @@ func (client JobScheduleClient) Exists(ctx context.Context, jobScheduleID string result, err = client.ExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Exists", resp, "Failure responding to request") + return } return @@ -778,6 +783,7 @@ func (client JobScheduleClient) Get(ctx context.Context, jobScheduleID string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Get", resp, "Failure responding to request") + return } return @@ -918,6 +924,7 @@ func (client JobScheduleClient) List(ctx context.Context, filter string, selectP result.cjslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "List", resp, "Failure responding to request") + return } if result.cjslr.hasNextLink() && result.cjslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1014,6 +1021,7 @@ func (client JobScheduleClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1086,6 +1094,7 @@ func (client JobScheduleClient) Patch(ctx context.Context, jobScheduleID string, result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Patch", resp, "Failure responding to request") + return } return @@ -1217,6 +1226,7 @@ func (client JobScheduleClient) Terminate(ctx context.Context, jobScheduleID str result, err = client.TerminateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Terminate", resp, "Failure responding to request") + return } return @@ -1420,6 +1430,7 @@ func (client JobScheduleClient) Update(ctx context.Context, jobScheduleID string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/2019-08-01.10.0/batch/pool.go b/services/batch/2019-08-01.10.0/batch/pool.go index 2ca0f4532dcf..5ab39ea83c7f 100644 --- a/services/batch/2019-08-01.10.0/batch/pool.go +++ b/services/batch/2019-08-01.10.0/batch/pool.go @@ -105,6 +105,7 @@ func (client PoolClient) Add(ctx context.Context, pool PoolAddParameter, timeout result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Add", resp, "Failure responding to request") + return } return @@ -223,6 +224,7 @@ func (client PoolClient) Delete(ctx context.Context, poolID string, timeout *int result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Delete", resp, "Failure responding to request") + return } return @@ -341,6 +343,7 @@ func (client PoolClient) DisableAutoScale(ctx context.Context, poolID string, ti result, err = client.DisableAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "DisableAutoScale", resp, "Failure responding to request") + return } return @@ -458,6 +461,7 @@ func (client PoolClient) EnableAutoScale(ctx context.Context, poolID string, poo result, err = client.EnableAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "EnableAutoScale", resp, "Failure responding to request") + return } return @@ -586,6 +590,7 @@ func (client PoolClient) EvaluateAutoScale(ctx context.Context, poolID string, p result, err = client.EvaluateAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "EvaluateAutoScale", resp, "Failure responding to request") + return } return @@ -702,6 +707,7 @@ func (client PoolClient) Exists(ctx context.Context, poolID string, timeout *int result, err = client.ExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Exists", resp, "Failure responding to request") + return } return @@ -833,6 +839,7 @@ func (client PoolClient) Get(ctx context.Context, poolID string, selectParameter result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Get", resp, "Failure responding to request") + return } return @@ -959,6 +966,7 @@ func (client PoolClient) GetAllLifetimeStatistics(ctx context.Context, timeout * result, err = client.GetAllLifetimeStatisticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "GetAllLifetimeStatistics", resp, "Failure responding to request") + return } return @@ -1072,6 +1080,7 @@ func (client PoolClient) List(ctx context.Context, filter string, selectParamete result.cplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "List", resp, "Failure responding to request") + return } if result.cplr.hasNextLink() && result.cplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1168,6 +1177,7 @@ func (client PoolClient) listNextResults(ctx context.Context, lastResults CloudP result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1246,6 +1256,7 @@ func (client PoolClient) ListUsageMetrics(ctx context.Context, startTime *date.T result.plumr, err = client.ListUsageMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "ListUsageMetrics", resp, "Failure responding to request") + return } if result.plumr.hasNextLink() && result.plumr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1342,6 +1353,7 @@ func (client PoolClient) listUsageMetricsNextResults(ctx context.Context, lastRe result, err = client.ListUsageMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "listUsageMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1412,6 +1424,7 @@ func (client PoolClient) Patch(ctx context.Context, poolID string, poolPatchPara result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Patch", resp, "Failure responding to request") + return } return @@ -1552,6 +1565,7 @@ func (client PoolClient) RemoveNodes(ctx context.Context, poolID string, nodeRem result, err = client.RemoveNodesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "RemoveNodes", resp, "Failure responding to request") + return } return @@ -1688,6 +1702,7 @@ func (client PoolClient) Resize(ctx context.Context, poolID string, poolResizePa result, err = client.ResizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Resize", resp, "Failure responding to request") + return } return @@ -1823,6 +1838,7 @@ func (client PoolClient) StopResize(ctx context.Context, poolID string, timeout result, err = client.StopResizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "StopResize", resp, "Failure responding to request") + return } return @@ -1962,6 +1978,7 @@ func (client PoolClient) UpdateProperties(ctx context.Context, poolID string, po result, err = client.UpdatePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "UpdateProperties", resp, "Failure responding to request") + return } return diff --git a/services/batch/2019-08-01.10.0/batch/task.go b/services/batch/2019-08-01.10.0/batch/task.go index ce7c45cfee9c..cd296cc27bf8 100644 --- a/services/batch/2019-08-01.10.0/batch/task.go +++ b/services/batch/2019-08-01.10.0/batch/task.go @@ -95,6 +95,7 @@ func (client TaskClient) Add(ctx context.Context, jobID string, task TaskAddPara result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Add", resp, "Failure responding to request") + return } return @@ -216,6 +217,7 @@ func (client TaskClient) AddCollection(ctx context.Context, jobID string, taskCo result, err = client.AddCollectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "AddCollection", resp, "Failure responding to request") + return } return @@ -335,6 +337,7 @@ func (client TaskClient) Delete(ctx context.Context, jobID string, taskID string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Delete", resp, "Failure responding to request") + return } return @@ -469,6 +472,7 @@ func (client TaskClient) Get(ctx context.Context, jobID string, taskID string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Get", resp, "Failure responding to request") + return } return @@ -611,6 +615,7 @@ func (client TaskClient) List(ctx context.Context, jobID string, filter string, result.ctlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "List", resp, "Failure responding to request") + return } if result.ctlr.hasNextLink() && result.ctlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -711,6 +716,7 @@ func (client TaskClient) listNextResults(ctx context.Context, lastResults CloudT result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -770,6 +776,7 @@ func (client TaskClient) ListSubtasks(ctx context.Context, jobID string, taskID result, err = client.ListSubtasksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "ListSubtasks", resp, "Failure responding to request") + return } return @@ -893,6 +900,7 @@ func (client TaskClient) Reactivate(ctx context.Context, jobID string, taskID st result, err = client.ReactivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Reactivate", resp, "Failure responding to request") + return } return @@ -1026,6 +1034,7 @@ func (client TaskClient) Terminate(ctx context.Context, jobID string, taskID str result, err = client.TerminateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Terminate", resp, "Failure responding to request") + return } return @@ -1158,6 +1167,7 @@ func (client TaskClient) Update(ctx context.Context, jobID string, taskID string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/2020-03-01.11.0/batch/account.go b/services/batch/2020-03-01.11.0/batch/account.go index b675dc8f00f5..29c32ff5b1a5 100644 --- a/services/batch/2020-03-01.11.0/batch/account.go +++ b/services/batch/2020-03-01.11.0/batch/account.go @@ -88,6 +88,7 @@ func (client AccountClient) ListPoolNodeCounts(ctx context.Context, filter strin result.pnclr, err = client.ListPoolNodeCountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "ListPoolNodeCounts", resp, "Failure responding to request") + return } if result.pnclr.hasNextLink() && result.pnclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -178,6 +179,7 @@ func (client AccountClient) listPoolNodeCountsNextResults(ctx context.Context, l result, err = client.ListPoolNodeCountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listPoolNodeCountsNextResults", resp, "Failure responding to next results request") + return } return } @@ -248,6 +250,7 @@ func (client AccountClient) ListSupportedImages(ctx context.Context, filter stri result.alsir, err = client.ListSupportedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "ListSupportedImages", resp, "Failure responding to request") + return } if result.alsir.hasNextLink() && result.alsir.IsEmpty() { err = result.NextWithContext(ctx) @@ -338,6 +341,7 @@ func (client AccountClient) listSupportedImagesNextResults(ctx context.Context, result, err = client.ListSupportedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listSupportedImagesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2020-03-01.11.0/batch/application.go b/services/batch/2020-03-01.11.0/batch/application.go index cde45a88c185..66cf22e21414 100644 --- a/services/batch/2020-03-01.11.0/batch/application.go +++ b/services/batch/2020-03-01.11.0/batch/application.go @@ -77,6 +77,7 @@ func (client ApplicationClient) Get(ctx context.Context, applicationID string, t result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Get", resp, "Failure responding to request") + return } return @@ -193,6 +194,7 @@ func (client ApplicationClient) List(ctx context.Context, maxResults *int32, tim result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -280,6 +282,7 @@ func (client ApplicationClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2020-03-01.11.0/batch/certificate.go b/services/batch/2020-03-01.11.0/batch/certificate.go index ac543accd932..e60a873a3789 100644 --- a/services/batch/2020-03-01.11.0/batch/certificate.go +++ b/services/batch/2020-03-01.11.0/batch/certificate.go @@ -83,6 +83,7 @@ func (client CertificateClient) Add(ctx context.Context, certificate Certificate result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Add", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client CertificateClient) CancelDeletion(ctx context.Context, thumbprintAl result, err = client.CancelDeletionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "CancelDeletion", resp, "Failure responding to request") + return } return @@ -298,6 +300,7 @@ func (client CertificateClient) Delete(ctx context.Context, thumbprintAlgorithm result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Delete", resp, "Failure responding to request") + return } return @@ -403,6 +406,7 @@ func (client CertificateClient) Get(ctx context.Context, thumbprintAlgorithm str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -524,6 +528,7 @@ func (client CertificateClient) List(ctx context.Context, filter string, selectP result.clr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "List", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -617,6 +622,7 @@ func (client CertificateClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2020-03-01.11.0/batch/computenode.go b/services/batch/2020-03-01.11.0/batch/computenode.go index 36240d9df3e4..6b5c197429b1 100644 --- a/services/batch/2020-03-01.11.0/batch/computenode.go +++ b/services/batch/2020-03-01.11.0/batch/computenode.go @@ -83,6 +83,7 @@ func (client ComputeNodeClient) AddUser(ctx context.Context, poolID string, node result, err = client.AddUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "AddUser", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client ComputeNodeClient) DeleteUser(ctx context.Context, poolID string, n result, err = client.DeleteUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "DeleteUser", resp, "Failure responding to request") + return } return @@ -296,6 +298,7 @@ func (client ComputeNodeClient) DisableScheduling(ctx context.Context, poolID st result, err = client.DisableSchedulingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "DisableScheduling", resp, "Failure responding to request") + return } return @@ -405,6 +408,7 @@ func (client ComputeNodeClient) EnableScheduling(ctx context.Context, poolID str result, err = client.EnableSchedulingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "EnableScheduling", resp, "Failure responding to request") + return } return @@ -510,6 +514,7 @@ func (client ComputeNodeClient) Get(ctx context.Context, poolID string, nodeID s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "Get", resp, "Failure responding to request") + return } return @@ -620,6 +625,7 @@ func (client ComputeNodeClient) GetRemoteDesktop(ctx context.Context, poolID str result, err = client.GetRemoteDesktopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "GetRemoteDesktop", resp, "Failure responding to request") + return } return @@ -726,6 +732,7 @@ func (client ComputeNodeClient) GetRemoteLoginSettings(ctx context.Context, pool result, err = client.GetRemoteLoginSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "GetRemoteLoginSettings", resp, "Failure responding to request") + return } return @@ -845,6 +852,7 @@ func (client ComputeNodeClient) List(ctx context.Context, poolID string, filter result.cnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "List", resp, "Failure responding to request") + return } if result.cnlr.hasNextLink() && result.cnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -942,6 +950,7 @@ func (client ComputeNodeClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1001,6 +1010,7 @@ func (client ComputeNodeClient) Reboot(ctx context.Context, poolID string, nodeI result, err = client.RebootResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "Reboot", resp, "Failure responding to request") + return } return @@ -1112,6 +1122,7 @@ func (client ComputeNodeClient) Reimage(ctx context.Context, poolID string, node result, err = client.ReimageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "Reimage", resp, "Failure responding to request") + return } return @@ -1225,6 +1236,7 @@ func (client ComputeNodeClient) UpdateUser(ctx context.Context, poolID string, n result, err = client.UpdateUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "UpdateUser", resp, "Failure responding to request") + return } return @@ -1342,6 +1354,7 @@ func (client ComputeNodeClient) UploadBatchServiceLogs(ctx context.Context, pool result, err = client.UploadBatchServiceLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "UploadBatchServiceLogs", resp, "Failure responding to request") + return } return diff --git a/services/batch/2020-03-01.11.0/batch/file.go b/services/batch/2020-03-01.11.0/batch/file.go index b2a83476918f..bd2fc879f317 100644 --- a/services/batch/2020-03-01.11.0/batch/file.go +++ b/services/batch/2020-03-01.11.0/batch/file.go @@ -80,6 +80,7 @@ func (client FileClient) DeleteFromComputeNode(ctx context.Context, poolID strin result, err = client.DeleteFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "DeleteFromComputeNode", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client FileClient) DeleteFromTask(ctx context.Context, jobID string, taskI result, err = client.DeleteFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "DeleteFromTask", resp, "Failure responding to request") + return } return @@ -308,6 +310,7 @@ func (client FileClient) GetFromComputeNode(ctx context.Context, poolID string, result, err = client.GetFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetFromComputeNode", resp, "Failure responding to request") + return } return @@ -433,6 +436,7 @@ func (client FileClient) GetFromTask(ctx context.Context, jobID string, taskID s result, err = client.GetFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetFromTask", resp, "Failure responding to request") + return } return @@ -556,6 +560,7 @@ func (client FileClient) GetPropertiesFromComputeNode(ctx context.Context, poolI result, err = client.GetPropertiesFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetPropertiesFromComputeNode", resp, "Failure responding to request") + return } return @@ -675,6 +680,7 @@ func (client FileClient) GetPropertiesFromTask(ctx context.Context, jobID string result, err = client.GetPropertiesFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetPropertiesFromTask", resp, "Failure responding to request") + return } return @@ -802,6 +808,7 @@ func (client FileClient) ListFromComputeNode(ctx context.Context, poolID string, result.nflr, err = client.ListFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "ListFromComputeNode", resp, "Failure responding to request") + return } if result.nflr.hasNextLink() && result.nflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -900,6 +907,7 @@ func (client FileClient) listFromComputeNodeNextResults(ctx context.Context, las result, err = client.ListFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "listFromComputeNodeNextResults", resp, "Failure responding to next results request") + return } return } @@ -973,6 +981,7 @@ func (client FileClient) ListFromTask(ctx context.Context, jobID string, taskID result.nflr, err = client.ListFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "ListFromTask", resp, "Failure responding to request") + return } if result.nflr.hasNextLink() && result.nflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1071,6 +1080,7 @@ func (client FileClient) listFromTaskNextResults(ctx context.Context, lastResult result, err = client.ListFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "listFromTaskNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2020-03-01.11.0/batch/job.go b/services/batch/2020-03-01.11.0/batch/job.go index 5f9ba0d8f02d..a50090fca9f7 100644 --- a/services/batch/2020-03-01.11.0/batch/job.go +++ b/services/batch/2020-03-01.11.0/batch/job.go @@ -148,6 +148,7 @@ func (client JobClient) Add(ctx context.Context, job JobAddParameter, timeout *i result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Add", resp, "Failure responding to request") + return } return @@ -264,6 +265,7 @@ func (client JobClient) Delete(ctx context.Context, jobID string, timeout *int32 result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Delete", resp, "Failure responding to request") + return } return @@ -399,6 +401,7 @@ func (client JobClient) Disable(ctx context.Context, jobID string, jobDisablePar result, err = client.DisableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Disable", resp, "Failure responding to request") + return } return @@ -533,6 +536,7 @@ func (client JobClient) Enable(ctx context.Context, jobID string, timeout *int32 result, err = client.EnableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Enable", resp, "Failure responding to request") + return } return @@ -664,6 +668,7 @@ func (client JobClient) Get(ctx context.Context, jobID string, selectParameter s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Get", resp, "Failure responding to request") + return } return @@ -790,6 +795,7 @@ func (client JobClient) GetAllLifetimeStatistics(ctx context.Context, timeout *i result, err = client.GetAllLifetimeStatisticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "GetAllLifetimeStatistics", resp, "Failure responding to request") + return } return @@ -891,6 +897,7 @@ func (client JobClient) GetTaskCounts(ctx context.Context, jobID string, timeout result, err = client.GetTaskCountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "GetTaskCounts", resp, "Failure responding to request") + return } return @@ -1008,6 +1015,7 @@ func (client JobClient) List(ctx context.Context, filter string, selectParameter result.cjlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "List", resp, "Failure responding to request") + return } if result.cjlr.hasNextLink() && result.cjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1104,6 +1112,7 @@ func (client JobClient) listNextResults(ctx context.Context, lastResults CloudJo result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1176,6 +1185,7 @@ func (client JobClient) ListFromJobSchedule(ctx context.Context, jobScheduleID s result.cjlr, err = client.ListFromJobScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "ListFromJobSchedule", resp, "Failure responding to request") + return } if result.cjlr.hasNextLink() && result.cjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1276,6 +1286,7 @@ func (client JobClient) listFromJobScheduleNextResults(ctx context.Context, last result, err = client.ListFromJobScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "listFromJobScheduleNextResults", resp, "Failure responding to next results request") + return } return } @@ -1350,6 +1361,7 @@ func (client JobClient) ListPreparationAndReleaseTaskStatus(ctx context.Context, result.cjlpartsr, err = client.ListPreparationAndReleaseTaskStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "ListPreparationAndReleaseTaskStatus", resp, "Failure responding to request") + return } if result.cjlpartsr.hasNextLink() && result.cjlpartsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1447,6 +1459,7 @@ func (client JobClient) listPreparationAndReleaseTaskStatusNextResults(ctx conte result, err = client.ListPreparationAndReleaseTaskStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "listPreparationAndReleaseTaskStatusNextResults", resp, "Failure responding to next results request") + return } return } @@ -1517,6 +1530,7 @@ func (client JobClient) Patch(ctx context.Context, jobID string, jobPatchParamet result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Patch", resp, "Failure responding to request") + return } return @@ -1653,6 +1667,7 @@ func (client JobClient) Terminate(ctx context.Context, jobID string, jobTerminat result, err = client.TerminateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Terminate", resp, "Failure responding to request") + return } return @@ -1824,6 +1839,7 @@ func (client JobClient) Update(ctx context.Context, jobID string, jobUpdateParam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/2020-03-01.11.0/batch/jobschedule.go b/services/batch/2020-03-01.11.0/batch/jobschedule.go index d6a1a1c7f348..f5e156a3fc1f 100644 --- a/services/batch/2020-03-01.11.0/batch/jobschedule.go +++ b/services/batch/2020-03-01.11.0/batch/jobschedule.go @@ -146,6 +146,7 @@ func (client JobScheduleClient) Add(ctx context.Context, cloudJobSchedule JobSch result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Add", resp, "Failure responding to request") + return } return @@ -260,6 +261,7 @@ func (client JobScheduleClient) Delete(ctx context.Context, jobScheduleID string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Delete", resp, "Failure responding to request") + return } return @@ -389,6 +391,7 @@ func (client JobScheduleClient) Disable(ctx context.Context, jobScheduleID strin result, err = client.DisableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Disable", resp, "Failure responding to request") + return } return @@ -518,6 +521,7 @@ func (client JobScheduleClient) Enable(ctx context.Context, jobScheduleID string result, err = client.EnableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Enable", resp, "Failure responding to request") + return } return @@ -647,6 +651,7 @@ func (client JobScheduleClient) Exists(ctx context.Context, jobScheduleID string result, err = client.ExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Exists", resp, "Failure responding to request") + return } return @@ -778,6 +783,7 @@ func (client JobScheduleClient) Get(ctx context.Context, jobScheduleID string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Get", resp, "Failure responding to request") + return } return @@ -918,6 +924,7 @@ func (client JobScheduleClient) List(ctx context.Context, filter string, selectP result.cjslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "List", resp, "Failure responding to request") + return } if result.cjslr.hasNextLink() && result.cjslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1014,6 +1021,7 @@ func (client JobScheduleClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1086,6 +1094,7 @@ func (client JobScheduleClient) Patch(ctx context.Context, jobScheduleID string, result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Patch", resp, "Failure responding to request") + return } return @@ -1217,6 +1226,7 @@ func (client JobScheduleClient) Terminate(ctx context.Context, jobScheduleID str result, err = client.TerminateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Terminate", resp, "Failure responding to request") + return } return @@ -1420,6 +1430,7 @@ func (client JobScheduleClient) Update(ctx context.Context, jobScheduleID string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/2020-03-01.11.0/batch/pool.go b/services/batch/2020-03-01.11.0/batch/pool.go index 2f7df9d5f9c8..ca6c37338cfc 100644 --- a/services/batch/2020-03-01.11.0/batch/pool.go +++ b/services/batch/2020-03-01.11.0/batch/pool.go @@ -105,6 +105,7 @@ func (client PoolClient) Add(ctx context.Context, pool PoolAddParameter, timeout result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Add", resp, "Failure responding to request") + return } return @@ -223,6 +224,7 @@ func (client PoolClient) Delete(ctx context.Context, poolID string, timeout *int result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Delete", resp, "Failure responding to request") + return } return @@ -341,6 +343,7 @@ func (client PoolClient) DisableAutoScale(ctx context.Context, poolID string, ti result, err = client.DisableAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "DisableAutoScale", resp, "Failure responding to request") + return } return @@ -458,6 +461,7 @@ func (client PoolClient) EnableAutoScale(ctx context.Context, poolID string, poo result, err = client.EnableAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "EnableAutoScale", resp, "Failure responding to request") + return } return @@ -586,6 +590,7 @@ func (client PoolClient) EvaluateAutoScale(ctx context.Context, poolID string, p result, err = client.EvaluateAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "EvaluateAutoScale", resp, "Failure responding to request") + return } return @@ -702,6 +707,7 @@ func (client PoolClient) Exists(ctx context.Context, poolID string, timeout *int result, err = client.ExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Exists", resp, "Failure responding to request") + return } return @@ -833,6 +839,7 @@ func (client PoolClient) Get(ctx context.Context, poolID string, selectParameter result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Get", resp, "Failure responding to request") + return } return @@ -959,6 +966,7 @@ func (client PoolClient) GetAllLifetimeStatistics(ctx context.Context, timeout * result, err = client.GetAllLifetimeStatisticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "GetAllLifetimeStatistics", resp, "Failure responding to request") + return } return @@ -1072,6 +1080,7 @@ func (client PoolClient) List(ctx context.Context, filter string, selectParamete result.cplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "List", resp, "Failure responding to request") + return } if result.cplr.hasNextLink() && result.cplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1168,6 +1177,7 @@ func (client PoolClient) listNextResults(ctx context.Context, lastResults CloudP result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1246,6 +1256,7 @@ func (client PoolClient) ListUsageMetrics(ctx context.Context, startTime *date.T result.plumr, err = client.ListUsageMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "ListUsageMetrics", resp, "Failure responding to request") + return } if result.plumr.hasNextLink() && result.plumr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1342,6 +1353,7 @@ func (client PoolClient) listUsageMetricsNextResults(ctx context.Context, lastRe result, err = client.ListUsageMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "listUsageMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1412,6 +1424,7 @@ func (client PoolClient) Patch(ctx context.Context, poolID string, poolPatchPara result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Patch", resp, "Failure responding to request") + return } return @@ -1552,6 +1565,7 @@ func (client PoolClient) RemoveNodes(ctx context.Context, poolID string, nodeRem result, err = client.RemoveNodesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "RemoveNodes", resp, "Failure responding to request") + return } return @@ -1688,6 +1702,7 @@ func (client PoolClient) Resize(ctx context.Context, poolID string, poolResizePa result, err = client.ResizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Resize", resp, "Failure responding to request") + return } return @@ -1823,6 +1838,7 @@ func (client PoolClient) StopResize(ctx context.Context, poolID string, timeout result, err = client.StopResizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "StopResize", resp, "Failure responding to request") + return } return @@ -1962,6 +1978,7 @@ func (client PoolClient) UpdateProperties(ctx context.Context, poolID string, po result, err = client.UpdatePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "UpdateProperties", resp, "Failure responding to request") + return } return diff --git a/services/batch/2020-03-01.11.0/batch/task.go b/services/batch/2020-03-01.11.0/batch/task.go index e8709555415a..5d0e67873a3e 100644 --- a/services/batch/2020-03-01.11.0/batch/task.go +++ b/services/batch/2020-03-01.11.0/batch/task.go @@ -95,6 +95,7 @@ func (client TaskClient) Add(ctx context.Context, jobID string, task TaskAddPara result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Add", resp, "Failure responding to request") + return } return @@ -216,6 +217,7 @@ func (client TaskClient) AddCollection(ctx context.Context, jobID string, taskCo result, err = client.AddCollectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "AddCollection", resp, "Failure responding to request") + return } return @@ -335,6 +337,7 @@ func (client TaskClient) Delete(ctx context.Context, jobID string, taskID string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Delete", resp, "Failure responding to request") + return } return @@ -469,6 +472,7 @@ func (client TaskClient) Get(ctx context.Context, jobID string, taskID string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Get", resp, "Failure responding to request") + return } return @@ -611,6 +615,7 @@ func (client TaskClient) List(ctx context.Context, jobID string, filter string, result.ctlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "List", resp, "Failure responding to request") + return } if result.ctlr.hasNextLink() && result.ctlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -711,6 +716,7 @@ func (client TaskClient) listNextResults(ctx context.Context, lastResults CloudT result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -770,6 +776,7 @@ func (client TaskClient) ListSubtasks(ctx context.Context, jobID string, taskID result, err = client.ListSubtasksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "ListSubtasks", resp, "Failure responding to request") + return } return @@ -893,6 +900,7 @@ func (client TaskClient) Reactivate(ctx context.Context, jobID string, taskID st result, err = client.ReactivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Reactivate", resp, "Failure responding to request") + return } return @@ -1026,6 +1034,7 @@ func (client TaskClient) Terminate(ctx context.Context, jobID string, taskID str result, err = client.TerminateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Terminate", resp, "Failure responding to request") + return } return @@ -1158,6 +1167,7 @@ func (client TaskClient) Update(ctx context.Context, jobID string, taskID string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/2020-09-01.12.0/batch/account.go b/services/batch/2020-09-01.12.0/batch/account.go index 8a85f7ff97d6..d986f4da8c6c 100644 --- a/services/batch/2020-09-01.12.0/batch/account.go +++ b/services/batch/2020-09-01.12.0/batch/account.go @@ -88,6 +88,7 @@ func (client AccountClient) ListPoolNodeCounts(ctx context.Context, filter strin result.pnclr, err = client.ListPoolNodeCountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "ListPoolNodeCounts", resp, "Failure responding to request") + return } if result.pnclr.hasNextLink() && result.pnclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -178,6 +179,7 @@ func (client AccountClient) listPoolNodeCountsNextResults(ctx context.Context, l result, err = client.ListPoolNodeCountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listPoolNodeCountsNextResults", resp, "Failure responding to next results request") + return } return } @@ -248,6 +250,7 @@ func (client AccountClient) ListSupportedImages(ctx context.Context, filter stri result.alsir, err = client.ListSupportedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "ListSupportedImages", resp, "Failure responding to request") + return } if result.alsir.hasNextLink() && result.alsir.IsEmpty() { err = result.NextWithContext(ctx) @@ -338,6 +341,7 @@ func (client AccountClient) listSupportedImagesNextResults(ctx context.Context, result, err = client.ListSupportedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listSupportedImagesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2020-09-01.12.0/batch/application.go b/services/batch/2020-09-01.12.0/batch/application.go index 2507992be025..ae9d0a139e7a 100644 --- a/services/batch/2020-09-01.12.0/batch/application.go +++ b/services/batch/2020-09-01.12.0/batch/application.go @@ -77,6 +77,7 @@ func (client ApplicationClient) Get(ctx context.Context, applicationID string, t result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Get", resp, "Failure responding to request") + return } return @@ -193,6 +194,7 @@ func (client ApplicationClient) List(ctx context.Context, maxResults *int32, tim result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -280,6 +282,7 @@ func (client ApplicationClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2020-09-01.12.0/batch/certificate.go b/services/batch/2020-09-01.12.0/batch/certificate.go index 259c095d38b7..05cf0f5a8c4d 100644 --- a/services/batch/2020-09-01.12.0/batch/certificate.go +++ b/services/batch/2020-09-01.12.0/batch/certificate.go @@ -83,6 +83,7 @@ func (client CertificateClient) Add(ctx context.Context, certificate Certificate result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Add", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client CertificateClient) CancelDeletion(ctx context.Context, thumbprintAl result, err = client.CancelDeletionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "CancelDeletion", resp, "Failure responding to request") + return } return @@ -298,6 +300,7 @@ func (client CertificateClient) Delete(ctx context.Context, thumbprintAlgorithm result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Delete", resp, "Failure responding to request") + return } return @@ -403,6 +406,7 @@ func (client CertificateClient) Get(ctx context.Context, thumbprintAlgorithm str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -524,6 +528,7 @@ func (client CertificateClient) List(ctx context.Context, filter string, selectP result.clr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "List", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -617,6 +622,7 @@ func (client CertificateClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2020-09-01.12.0/batch/computenode.go b/services/batch/2020-09-01.12.0/batch/computenode.go index d6ebd7462369..a8917fcce058 100644 --- a/services/batch/2020-09-01.12.0/batch/computenode.go +++ b/services/batch/2020-09-01.12.0/batch/computenode.go @@ -83,6 +83,7 @@ func (client ComputeNodeClient) AddUser(ctx context.Context, poolID string, node result, err = client.AddUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "AddUser", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client ComputeNodeClient) DeleteUser(ctx context.Context, poolID string, n result, err = client.DeleteUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "DeleteUser", resp, "Failure responding to request") + return } return @@ -296,6 +298,7 @@ func (client ComputeNodeClient) DisableScheduling(ctx context.Context, poolID st result, err = client.DisableSchedulingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "DisableScheduling", resp, "Failure responding to request") + return } return @@ -405,6 +408,7 @@ func (client ComputeNodeClient) EnableScheduling(ctx context.Context, poolID str result, err = client.EnableSchedulingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "EnableScheduling", resp, "Failure responding to request") + return } return @@ -510,6 +514,7 @@ func (client ComputeNodeClient) Get(ctx context.Context, poolID string, nodeID s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "Get", resp, "Failure responding to request") + return } return @@ -620,6 +625,7 @@ func (client ComputeNodeClient) GetRemoteDesktop(ctx context.Context, poolID str result, err = client.GetRemoteDesktopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "GetRemoteDesktop", resp, "Failure responding to request") + return } return @@ -726,6 +732,7 @@ func (client ComputeNodeClient) GetRemoteLoginSettings(ctx context.Context, pool result, err = client.GetRemoteLoginSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "GetRemoteLoginSettings", resp, "Failure responding to request") + return } return @@ -845,6 +852,7 @@ func (client ComputeNodeClient) List(ctx context.Context, poolID string, filter result.cnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "List", resp, "Failure responding to request") + return } if result.cnlr.hasNextLink() && result.cnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -942,6 +950,7 @@ func (client ComputeNodeClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1001,6 +1010,7 @@ func (client ComputeNodeClient) Reboot(ctx context.Context, poolID string, nodeI result, err = client.RebootResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "Reboot", resp, "Failure responding to request") + return } return @@ -1112,6 +1122,7 @@ func (client ComputeNodeClient) Reimage(ctx context.Context, poolID string, node result, err = client.ReimageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "Reimage", resp, "Failure responding to request") + return } return @@ -1225,6 +1236,7 @@ func (client ComputeNodeClient) UpdateUser(ctx context.Context, poolID string, n result, err = client.UpdateUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "UpdateUser", resp, "Failure responding to request") + return } return @@ -1342,6 +1354,7 @@ func (client ComputeNodeClient) UploadBatchServiceLogs(ctx context.Context, pool result, err = client.UploadBatchServiceLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ComputeNodeClient", "UploadBatchServiceLogs", resp, "Failure responding to request") + return } return diff --git a/services/batch/2020-09-01.12.0/batch/file.go b/services/batch/2020-09-01.12.0/batch/file.go index fd46dffde30c..3d685c3b2d3c 100644 --- a/services/batch/2020-09-01.12.0/batch/file.go +++ b/services/batch/2020-09-01.12.0/batch/file.go @@ -80,6 +80,7 @@ func (client FileClient) DeleteFromComputeNode(ctx context.Context, poolID strin result, err = client.DeleteFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "DeleteFromComputeNode", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client FileClient) DeleteFromTask(ctx context.Context, jobID string, taskI result, err = client.DeleteFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "DeleteFromTask", resp, "Failure responding to request") + return } return @@ -308,6 +310,7 @@ func (client FileClient) GetFromComputeNode(ctx context.Context, poolID string, result, err = client.GetFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetFromComputeNode", resp, "Failure responding to request") + return } return @@ -433,6 +436,7 @@ func (client FileClient) GetFromTask(ctx context.Context, jobID string, taskID s result, err = client.GetFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetFromTask", resp, "Failure responding to request") + return } return @@ -556,6 +560,7 @@ func (client FileClient) GetPropertiesFromComputeNode(ctx context.Context, poolI result, err = client.GetPropertiesFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetPropertiesFromComputeNode", resp, "Failure responding to request") + return } return @@ -675,6 +680,7 @@ func (client FileClient) GetPropertiesFromTask(ctx context.Context, jobID string result, err = client.GetPropertiesFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "GetPropertiesFromTask", resp, "Failure responding to request") + return } return @@ -802,6 +808,7 @@ func (client FileClient) ListFromComputeNode(ctx context.Context, poolID string, result.nflr, err = client.ListFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "ListFromComputeNode", resp, "Failure responding to request") + return } if result.nflr.hasNextLink() && result.nflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -900,6 +907,7 @@ func (client FileClient) listFromComputeNodeNextResults(ctx context.Context, las result, err = client.ListFromComputeNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "listFromComputeNodeNextResults", resp, "Failure responding to next results request") + return } return } @@ -973,6 +981,7 @@ func (client FileClient) ListFromTask(ctx context.Context, jobID string, taskID result.nflr, err = client.ListFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "ListFromTask", resp, "Failure responding to request") + return } if result.nflr.hasNextLink() && result.nflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1071,6 +1080,7 @@ func (client FileClient) listFromTaskNextResults(ctx context.Context, lastResult result, err = client.ListFromTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.FileClient", "listFromTaskNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/2020-09-01.12.0/batch/job.go b/services/batch/2020-09-01.12.0/batch/job.go index 53ae7680ccf3..01608c078f0a 100644 --- a/services/batch/2020-09-01.12.0/batch/job.go +++ b/services/batch/2020-09-01.12.0/batch/job.go @@ -148,6 +148,7 @@ func (client JobClient) Add(ctx context.Context, job JobAddParameter, timeout *i result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Add", resp, "Failure responding to request") + return } return @@ -264,6 +265,7 @@ func (client JobClient) Delete(ctx context.Context, jobID string, timeout *int32 result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Delete", resp, "Failure responding to request") + return } return @@ -399,6 +401,7 @@ func (client JobClient) Disable(ctx context.Context, jobID string, jobDisablePar result, err = client.DisableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Disable", resp, "Failure responding to request") + return } return @@ -533,6 +536,7 @@ func (client JobClient) Enable(ctx context.Context, jobID string, timeout *int32 result, err = client.EnableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Enable", resp, "Failure responding to request") + return } return @@ -664,6 +668,7 @@ func (client JobClient) Get(ctx context.Context, jobID string, selectParameter s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Get", resp, "Failure responding to request") + return } return @@ -790,6 +795,7 @@ func (client JobClient) GetAllLifetimeStatistics(ctx context.Context, timeout *i result, err = client.GetAllLifetimeStatisticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "GetAllLifetimeStatistics", resp, "Failure responding to request") + return } return @@ -891,6 +897,7 @@ func (client JobClient) GetTaskCounts(ctx context.Context, jobID string, timeout result, err = client.GetTaskCountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "GetTaskCounts", resp, "Failure responding to request") + return } return @@ -1008,6 +1015,7 @@ func (client JobClient) List(ctx context.Context, filter string, selectParameter result.cjlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "List", resp, "Failure responding to request") + return } if result.cjlr.hasNextLink() && result.cjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1104,6 +1112,7 @@ func (client JobClient) listNextResults(ctx context.Context, lastResults CloudJo result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1176,6 +1185,7 @@ func (client JobClient) ListFromJobSchedule(ctx context.Context, jobScheduleID s result.cjlr, err = client.ListFromJobScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "ListFromJobSchedule", resp, "Failure responding to request") + return } if result.cjlr.hasNextLink() && result.cjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1276,6 +1286,7 @@ func (client JobClient) listFromJobScheduleNextResults(ctx context.Context, last result, err = client.ListFromJobScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "listFromJobScheduleNextResults", resp, "Failure responding to next results request") + return } return } @@ -1350,6 +1361,7 @@ func (client JobClient) ListPreparationAndReleaseTaskStatus(ctx context.Context, result.cjlpartsr, err = client.ListPreparationAndReleaseTaskStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "ListPreparationAndReleaseTaskStatus", resp, "Failure responding to request") + return } if result.cjlpartsr.hasNextLink() && result.cjlpartsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1447,6 +1459,7 @@ func (client JobClient) listPreparationAndReleaseTaskStatusNextResults(ctx conte result, err = client.ListPreparationAndReleaseTaskStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "listPreparationAndReleaseTaskStatusNextResults", resp, "Failure responding to next results request") + return } return } @@ -1517,6 +1530,7 @@ func (client JobClient) Patch(ctx context.Context, jobID string, jobPatchParamet result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Patch", resp, "Failure responding to request") + return } return @@ -1653,6 +1667,7 @@ func (client JobClient) Terminate(ctx context.Context, jobID string, jobTerminat result, err = client.TerminateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Terminate", resp, "Failure responding to request") + return } return @@ -1824,6 +1839,7 @@ func (client JobClient) Update(ctx context.Context, jobID string, jobUpdateParam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/2020-09-01.12.0/batch/jobschedule.go b/services/batch/2020-09-01.12.0/batch/jobschedule.go index 36bb06ab8f98..692a2c0bbdac 100644 --- a/services/batch/2020-09-01.12.0/batch/jobschedule.go +++ b/services/batch/2020-09-01.12.0/batch/jobschedule.go @@ -146,6 +146,7 @@ func (client JobScheduleClient) Add(ctx context.Context, cloudJobSchedule JobSch result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Add", resp, "Failure responding to request") + return } return @@ -260,6 +261,7 @@ func (client JobScheduleClient) Delete(ctx context.Context, jobScheduleID string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Delete", resp, "Failure responding to request") + return } return @@ -389,6 +391,7 @@ func (client JobScheduleClient) Disable(ctx context.Context, jobScheduleID strin result, err = client.DisableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Disable", resp, "Failure responding to request") + return } return @@ -518,6 +521,7 @@ func (client JobScheduleClient) Enable(ctx context.Context, jobScheduleID string result, err = client.EnableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Enable", resp, "Failure responding to request") + return } return @@ -647,6 +651,7 @@ func (client JobScheduleClient) Exists(ctx context.Context, jobScheduleID string result, err = client.ExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Exists", resp, "Failure responding to request") + return } return @@ -778,6 +783,7 @@ func (client JobScheduleClient) Get(ctx context.Context, jobScheduleID string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Get", resp, "Failure responding to request") + return } return @@ -918,6 +924,7 @@ func (client JobScheduleClient) List(ctx context.Context, filter string, selectP result.cjslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "List", resp, "Failure responding to request") + return } if result.cjslr.hasNextLink() && result.cjslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1014,6 +1021,7 @@ func (client JobScheduleClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1086,6 +1094,7 @@ func (client JobScheduleClient) Patch(ctx context.Context, jobScheduleID string, result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Patch", resp, "Failure responding to request") + return } return @@ -1217,6 +1226,7 @@ func (client JobScheduleClient) Terminate(ctx context.Context, jobScheduleID str result, err = client.TerminateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Terminate", resp, "Failure responding to request") + return } return @@ -1420,6 +1430,7 @@ func (client JobScheduleClient) Update(ctx context.Context, jobScheduleID string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.JobScheduleClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/2020-09-01.12.0/batch/pool.go b/services/batch/2020-09-01.12.0/batch/pool.go index 7b2c8d1d2982..888f1f5f2144 100644 --- a/services/batch/2020-09-01.12.0/batch/pool.go +++ b/services/batch/2020-09-01.12.0/batch/pool.go @@ -105,6 +105,7 @@ func (client PoolClient) Add(ctx context.Context, pool PoolAddParameter, timeout result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Add", resp, "Failure responding to request") + return } return @@ -223,6 +224,7 @@ func (client PoolClient) Delete(ctx context.Context, poolID string, timeout *int result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Delete", resp, "Failure responding to request") + return } return @@ -341,6 +343,7 @@ func (client PoolClient) DisableAutoScale(ctx context.Context, poolID string, ti result, err = client.DisableAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "DisableAutoScale", resp, "Failure responding to request") + return } return @@ -458,6 +461,7 @@ func (client PoolClient) EnableAutoScale(ctx context.Context, poolID string, poo result, err = client.EnableAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "EnableAutoScale", resp, "Failure responding to request") + return } return @@ -586,6 +590,7 @@ func (client PoolClient) EvaluateAutoScale(ctx context.Context, poolID string, p result, err = client.EvaluateAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "EvaluateAutoScale", resp, "Failure responding to request") + return } return @@ -702,6 +707,7 @@ func (client PoolClient) Exists(ctx context.Context, poolID string, timeout *int result, err = client.ExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Exists", resp, "Failure responding to request") + return } return @@ -833,6 +839,7 @@ func (client PoolClient) Get(ctx context.Context, poolID string, selectParameter result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Get", resp, "Failure responding to request") + return } return @@ -959,6 +966,7 @@ func (client PoolClient) GetAllLifetimeStatistics(ctx context.Context, timeout * result, err = client.GetAllLifetimeStatisticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "GetAllLifetimeStatistics", resp, "Failure responding to request") + return } return @@ -1072,6 +1080,7 @@ func (client PoolClient) List(ctx context.Context, filter string, selectParamete result.cplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "List", resp, "Failure responding to request") + return } if result.cplr.hasNextLink() && result.cplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1168,6 +1177,7 @@ func (client PoolClient) listNextResults(ctx context.Context, lastResults CloudP result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1246,6 +1256,7 @@ func (client PoolClient) ListUsageMetrics(ctx context.Context, startTime *date.T result.plumr, err = client.ListUsageMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "ListUsageMetrics", resp, "Failure responding to request") + return } if result.plumr.hasNextLink() && result.plumr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1342,6 +1353,7 @@ func (client PoolClient) listUsageMetricsNextResults(ctx context.Context, lastRe result, err = client.ListUsageMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "listUsageMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1412,6 +1424,7 @@ func (client PoolClient) Patch(ctx context.Context, poolID string, poolPatchPara result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Patch", resp, "Failure responding to request") + return } return @@ -1552,6 +1565,7 @@ func (client PoolClient) RemoveNodes(ctx context.Context, poolID string, nodeRem result, err = client.RemoveNodesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "RemoveNodes", resp, "Failure responding to request") + return } return @@ -1688,6 +1702,7 @@ func (client PoolClient) Resize(ctx context.Context, poolID string, poolResizePa result, err = client.ResizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Resize", resp, "Failure responding to request") + return } return @@ -1823,6 +1838,7 @@ func (client PoolClient) StopResize(ctx context.Context, poolID string, timeout result, err = client.StopResizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "StopResize", resp, "Failure responding to request") + return } return @@ -1962,6 +1978,7 @@ func (client PoolClient) UpdateProperties(ctx context.Context, poolID string, po result, err = client.UpdatePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "UpdateProperties", resp, "Failure responding to request") + return } return diff --git a/services/batch/2020-09-01.12.0/batch/task.go b/services/batch/2020-09-01.12.0/batch/task.go index e8416d3989ca..21a60d25d981 100644 --- a/services/batch/2020-09-01.12.0/batch/task.go +++ b/services/batch/2020-09-01.12.0/batch/task.go @@ -95,6 +95,7 @@ func (client TaskClient) Add(ctx context.Context, jobID string, task TaskAddPara result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Add", resp, "Failure responding to request") + return } return @@ -216,6 +217,7 @@ func (client TaskClient) AddCollection(ctx context.Context, jobID string, taskCo result, err = client.AddCollectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "AddCollection", resp, "Failure responding to request") + return } return @@ -335,6 +337,7 @@ func (client TaskClient) Delete(ctx context.Context, jobID string, taskID string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Delete", resp, "Failure responding to request") + return } return @@ -469,6 +472,7 @@ func (client TaskClient) Get(ctx context.Context, jobID string, taskID string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Get", resp, "Failure responding to request") + return } return @@ -611,6 +615,7 @@ func (client TaskClient) List(ctx context.Context, jobID string, filter string, result.ctlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "List", resp, "Failure responding to request") + return } if result.ctlr.hasNextLink() && result.ctlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -711,6 +716,7 @@ func (client TaskClient) listNextResults(ctx context.Context, lastResults CloudT result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -770,6 +776,7 @@ func (client TaskClient) ListSubtasks(ctx context.Context, jobID string, taskID result, err = client.ListSubtasksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "ListSubtasks", resp, "Failure responding to request") + return } return @@ -893,6 +900,7 @@ func (client TaskClient) Reactivate(ctx context.Context, jobID string, taskID st result, err = client.ReactivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Reactivate", resp, "Failure responding to request") + return } return @@ -1026,6 +1034,7 @@ func (client TaskClient) Terminate(ctx context.Context, jobID string, taskID str result, err = client.TerminateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Terminate", resp, "Failure responding to request") + return } return @@ -1158,6 +1167,7 @@ func (client TaskClient) Update(ctx context.Context, jobID string, taskID string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.TaskClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2015-12-01/batch/account.go b/services/batch/mgmt/2015-12-01/batch/account.go index 7e6cf59fadf1..e1fc346d9944 100644 --- a/services/batch/mgmt/2015-12-01/batch/account.go +++ b/services/batch/mgmt/2015-12-01/batch/account.go @@ -265,6 +265,7 @@ func (client AccountClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "Get", resp, "Failure responding to request") + return } return @@ -350,6 +351,7 @@ func (client AccountClient) GetKeys(ctx context.Context, resourceGroupName strin result, err = client.GetKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "GetKeys", resp, "Failure responding to request") + return } return @@ -423,6 +425,7 @@ func (client AccountClient) List(ctx context.Context) (result AccountListResultP result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -485,6 +488,7 @@ func (client AccountClient) listNextResults(ctx context.Context, lastResults Acc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -542,6 +546,7 @@ func (client AccountClient) ListByResourceGroup(ctx context.Context, resourceGro result.alr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -605,6 +610,7 @@ func (client AccountClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -667,6 +673,7 @@ func (client AccountClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -755,6 +762,7 @@ func (client AccountClient) SynchronizeAutoStorageKeys(ctx context.Context, reso result, err = client.SynchronizeAutoStorageKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "SynchronizeAutoStorageKeys", resp, "Failure responding to request") + return } return @@ -840,6 +848,7 @@ func (client AccountClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2015-12-01/batch/application.go b/services/batch/mgmt/2015-12-01/batch/application.go index 15403379f20f..6c8020f2cc97 100644 --- a/services/batch/mgmt/2015-12-01/batch/application.go +++ b/services/batch/mgmt/2015-12-01/batch/application.go @@ -85,6 +85,7 @@ func (client ApplicationClient) Create(ctx context.Context, resourceGroupName st result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Create", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client ApplicationClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Delete", resp, "Failure responding to request") + return } return @@ -263,6 +265,7 @@ func (client ApplicationClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Get", resp, "Failure responding to request") + return } return @@ -351,6 +354,7 @@ func (client ApplicationClient) List(ctx context.Context, resourceGroupName stri result.lar, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "List", resp, "Failure responding to request") + return } if result.lar.hasNextLink() && result.lar.IsEmpty() { err = result.NextWithContext(ctx) @@ -418,6 +422,7 @@ func (client ApplicationClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -481,6 +486,7 @@ func (client ApplicationClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2015-12-01/batch/applicationpackage.go b/services/batch/mgmt/2015-12-01/batch/applicationpackage.go index c4800961db0e..b1d631e47664 100644 --- a/services/batch/mgmt/2015-12-01/batch/applicationpackage.go +++ b/services/batch/mgmt/2015-12-01/batch/applicationpackage.go @@ -89,6 +89,7 @@ func (client ApplicationPackageClient) Activate(ctx context.Context, resourceGro result, err = client.ActivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Activate", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client ApplicationPackageClient) Create(ctx context.Context, resourceGroup result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Create", resp, "Failure responding to request") + return } return @@ -268,6 +270,7 @@ func (client ApplicationPackageClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Delete", resp, "Failure responding to request") + return } return @@ -356,6 +359,7 @@ func (client ApplicationPackageClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2015-12-01/batch/location.go b/services/batch/mgmt/2015-12-01/batch/location.go index 2115a5b7ddcb..040888449424 100644 --- a/services/batch/mgmt/2015-12-01/batch/location.go +++ b/services/batch/mgmt/2015-12-01/batch/location.go @@ -71,6 +71,7 @@ func (client LocationClient) GetQuotas(ctx context.Context, locationName string) result, err = client.GetQuotasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.LocationClient", "GetQuotas", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2017-01-01/batch/account.go b/services/batch/mgmt/2017-01-01/batch/account.go index 96199b3c9727..27cdd49f6e84 100644 --- a/services/batch/mgmt/2017-01-01/batch/account.go +++ b/services/batch/mgmt/2017-01-01/batch/account.go @@ -269,6 +269,7 @@ func (client AccountClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "Get", resp, "Failure responding to request") + return } return @@ -356,6 +357,7 @@ func (client AccountClient) GetKeys(ctx context.Context, resourceGroupName strin result, err = client.GetKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "GetKeys", resp, "Failure responding to request") + return } return @@ -429,6 +431,7 @@ func (client AccountClient) List(ctx context.Context) (result AccountListResultP result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -491,6 +494,7 @@ func (client AccountClient) listNextResults(ctx context.Context, lastResults Acc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -548,6 +552,7 @@ func (client AccountClient) ListByResourceGroup(ctx context.Context, resourceGro result.alr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -611,6 +616,7 @@ func (client AccountClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -673,6 +679,7 @@ func (client AccountClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -761,6 +768,7 @@ func (client AccountClient) SynchronizeAutoStorageKeys(ctx context.Context, reso result, err = client.SynchronizeAutoStorageKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "SynchronizeAutoStorageKeys", resp, "Failure responding to request") + return } return @@ -846,6 +854,7 @@ func (client AccountClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2017-01-01/batch/application.go b/services/batch/mgmt/2017-01-01/batch/application.go index c68d030314bf..9f515f73ea86 100644 --- a/services/batch/mgmt/2017-01-01/batch/application.go +++ b/services/batch/mgmt/2017-01-01/batch/application.go @@ -85,6 +85,7 @@ func (client ApplicationClient) Create(ctx context.Context, resourceGroupName st result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Create", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client ApplicationClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Delete", resp, "Failure responding to request") + return } return @@ -263,6 +265,7 @@ func (client ApplicationClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Get", resp, "Failure responding to request") + return } return @@ -351,6 +354,7 @@ func (client ApplicationClient) List(ctx context.Context, resourceGroupName stri result.lar, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "List", resp, "Failure responding to request") + return } if result.lar.hasNextLink() && result.lar.IsEmpty() { err = result.NextWithContext(ctx) @@ -418,6 +422,7 @@ func (client ApplicationClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -481,6 +486,7 @@ func (client ApplicationClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2017-01-01/batch/applicationpackage.go b/services/batch/mgmt/2017-01-01/batch/applicationpackage.go index f7798f8c4d23..36f596a3947c 100644 --- a/services/batch/mgmt/2017-01-01/batch/applicationpackage.go +++ b/services/batch/mgmt/2017-01-01/batch/applicationpackage.go @@ -89,6 +89,7 @@ func (client ApplicationPackageClient) Activate(ctx context.Context, resourceGro result, err = client.ActivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Activate", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client ApplicationPackageClient) Create(ctx context.Context, resourceGroup result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Create", resp, "Failure responding to request") + return } return @@ -268,6 +270,7 @@ func (client ApplicationPackageClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Delete", resp, "Failure responding to request") + return } return @@ -356,6 +359,7 @@ func (client ApplicationPackageClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2017-01-01/batch/location.go b/services/batch/mgmt/2017-01-01/batch/location.go index f43067b94415..c88806adfbca 100644 --- a/services/batch/mgmt/2017-01-01/batch/location.go +++ b/services/batch/mgmt/2017-01-01/batch/location.go @@ -71,6 +71,7 @@ func (client LocationClient) GetQuotas(ctx context.Context, locationName string) result, err = client.GetQuotasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.LocationClient", "GetQuotas", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2017-05-01/batch/account.go b/services/batch/mgmt/2017-05-01/batch/account.go index 56e29de73893..d1115c70df6f 100644 --- a/services/batch/mgmt/2017-05-01/batch/account.go +++ b/services/batch/mgmt/2017-05-01/batch/account.go @@ -269,6 +269,7 @@ func (client AccountClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "Get", resp, "Failure responding to request") + return } return @@ -356,6 +357,7 @@ func (client AccountClient) GetKeys(ctx context.Context, resourceGroupName strin result, err = client.GetKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "GetKeys", resp, "Failure responding to request") + return } return @@ -429,6 +431,7 @@ func (client AccountClient) List(ctx context.Context) (result AccountListResultP result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -491,6 +494,7 @@ func (client AccountClient) listNextResults(ctx context.Context, lastResults Acc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -548,6 +552,7 @@ func (client AccountClient) ListByResourceGroup(ctx context.Context, resourceGro result.alr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -611,6 +616,7 @@ func (client AccountClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -673,6 +679,7 @@ func (client AccountClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -761,6 +768,7 @@ func (client AccountClient) SynchronizeAutoStorageKeys(ctx context.Context, reso result, err = client.SynchronizeAutoStorageKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "SynchronizeAutoStorageKeys", resp, "Failure responding to request") + return } return @@ -846,6 +854,7 @@ func (client AccountClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2017-05-01/batch/application.go b/services/batch/mgmt/2017-05-01/batch/application.go index 583694bd10c1..02be2bf31182 100644 --- a/services/batch/mgmt/2017-05-01/batch/application.go +++ b/services/batch/mgmt/2017-05-01/batch/application.go @@ -85,6 +85,7 @@ func (client ApplicationClient) Create(ctx context.Context, resourceGroupName st result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Create", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client ApplicationClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Delete", resp, "Failure responding to request") + return } return @@ -263,6 +265,7 @@ func (client ApplicationClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Get", resp, "Failure responding to request") + return } return @@ -351,6 +354,7 @@ func (client ApplicationClient) List(ctx context.Context, resourceGroupName stri result.lar, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "List", resp, "Failure responding to request") + return } if result.lar.hasNextLink() && result.lar.IsEmpty() { err = result.NextWithContext(ctx) @@ -418,6 +422,7 @@ func (client ApplicationClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -481,6 +486,7 @@ func (client ApplicationClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2017-05-01/batch/applicationpackage.go b/services/batch/mgmt/2017-05-01/batch/applicationpackage.go index fefe584880eb..b9d35aa6dc8a 100644 --- a/services/batch/mgmt/2017-05-01/batch/applicationpackage.go +++ b/services/batch/mgmt/2017-05-01/batch/applicationpackage.go @@ -89,6 +89,7 @@ func (client ApplicationPackageClient) Activate(ctx context.Context, resourceGro result, err = client.ActivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Activate", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client ApplicationPackageClient) Create(ctx context.Context, resourceGroup result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Create", resp, "Failure responding to request") + return } return @@ -268,6 +270,7 @@ func (client ApplicationPackageClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Delete", resp, "Failure responding to request") + return } return @@ -356,6 +359,7 @@ func (client ApplicationPackageClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2017-05-01/batch/location.go b/services/batch/mgmt/2017-05-01/batch/location.go index f17ae654515f..4432feb30463 100644 --- a/services/batch/mgmt/2017-05-01/batch/location.go +++ b/services/batch/mgmt/2017-05-01/batch/location.go @@ -80,6 +80,7 @@ func (client LocationClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.LocationClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client LocationClient) GetQuotas(ctx context.Context, locationName string) result, err = client.GetQuotasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.LocationClient", "GetQuotas", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2017-05-01/batch/operations.go b/services/batch/mgmt/2017-05-01/batch/operations.go index 2ffcd35f6aea..2f61a140b001 100644 --- a/services/batch/mgmt/2017-05-01/batch/operations.go +++ b/services/batch/mgmt/2017-05-01/batch/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/mgmt/2017-09-01/batch/account.go b/services/batch/mgmt/2017-09-01/batch/account.go index 0ca75c6b7bf2..59b0ea88cb56 100644 --- a/services/batch/mgmt/2017-09-01/batch/account.go +++ b/services/batch/mgmt/2017-09-01/batch/account.go @@ -263,6 +263,7 @@ func (client AccountClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +349,7 @@ func (client AccountClient) GetKeys(ctx context.Context, resourceGroupName strin result, err = client.GetKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "GetKeys", resp, "Failure responding to request") + return } return @@ -421,6 +423,7 @@ func (client AccountClient) List(ctx context.Context) (result AccountListResultP result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -483,6 +486,7 @@ func (client AccountClient) listNextResults(ctx context.Context, lastResults Acc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -534,6 +538,7 @@ func (client AccountClient) ListByResourceGroup(ctx context.Context, resourceGro result.alr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -597,6 +602,7 @@ func (client AccountClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -657,6 +663,7 @@ func (client AccountClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -743,6 +750,7 @@ func (client AccountClient) SynchronizeAutoStorageKeys(ctx context.Context, reso result, err = client.SynchronizeAutoStorageKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "SynchronizeAutoStorageKeys", resp, "Failure responding to request") + return } return @@ -826,6 +834,7 @@ func (client AccountClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2017-09-01/batch/application.go b/services/batch/mgmt/2017-09-01/batch/application.go index a910251e1b83..4a6a095c2a8d 100644 --- a/services/batch/mgmt/2017-09-01/batch/application.go +++ b/services/batch/mgmt/2017-09-01/batch/application.go @@ -83,6 +83,7 @@ func (client ApplicationClient) Create(ctx context.Context, resourceGroupName st result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Create", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client ApplicationClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Delete", resp, "Failure responding to request") + return } return @@ -257,6 +259,7 @@ func (client ApplicationClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Get", resp, "Failure responding to request") + return } return @@ -343,6 +346,7 @@ func (client ApplicationClient) List(ctx context.Context, resourceGroupName stri result.lar, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "List", resp, "Failure responding to request") + return } if result.lar.hasNextLink() && result.lar.IsEmpty() { err = result.NextWithContext(ctx) @@ -410,6 +414,7 @@ func (client ApplicationClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -471,6 +476,7 @@ func (client ApplicationClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2017-09-01/batch/applicationpackage.go b/services/batch/mgmt/2017-09-01/batch/applicationpackage.go index ea0ef66326f5..58f1f0f6a8f1 100644 --- a/services/batch/mgmt/2017-09-01/batch/applicationpackage.go +++ b/services/batch/mgmt/2017-09-01/batch/applicationpackage.go @@ -87,6 +87,7 @@ func (client ApplicationPackageClient) Activate(ctx context.Context, resourceGro result, err = client.ActivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Activate", resp, "Failure responding to request") + return } return @@ -175,6 +176,7 @@ func (client ApplicationPackageClient) Create(ctx context.Context, resourceGroup result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Create", resp, "Failure responding to request") + return } return @@ -262,6 +264,7 @@ func (client ApplicationPackageClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Delete", resp, "Failure responding to request") + return } return @@ -348,6 +351,7 @@ func (client ApplicationPackageClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2017-09-01/batch/certificate.go b/services/batch/mgmt/2017-09-01/batch/certificate.go index 07792d6755ae..48b7e053ab94 100644 --- a/services/batch/mgmt/2017-09-01/batch/certificate.go +++ b/services/batch/mgmt/2017-09-01/batch/certificate.go @@ -91,6 +91,7 @@ func (client CertificateClient) CancelDeletion(ctx context.Context, resourceGrou result, err = client.CancelDeletionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "CancelDeletion", resp, "Failure responding to request") + return } return @@ -378,6 +379,7 @@ func (client CertificateClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -468,6 +470,7 @@ func (client CertificateClient) ListByBatchAccount(ctx context.Context, resource result.lcr, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "ListByBatchAccount", resp, "Failure responding to request") + return } if result.lcr.hasNextLink() && result.lcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -541,6 +544,7 @@ func (client CertificateClient) listByBatchAccountNextResults(ctx context.Contex result, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "listByBatchAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -609,6 +613,7 @@ func (client CertificateClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2017-09-01/batch/location.go b/services/batch/mgmt/2017-09-01/batch/location.go index 5ffee12d725f..973eb18b19fb 100644 --- a/services/batch/mgmt/2017-09-01/batch/location.go +++ b/services/batch/mgmt/2017-09-01/batch/location.go @@ -80,6 +80,7 @@ func (client LocationClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.LocationClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client LocationClient) GetQuotas(ctx context.Context, locationName string) result, err = client.GetQuotasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.LocationClient", "GetQuotas", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2017-09-01/batch/operations.go b/services/batch/mgmt/2017-09-01/batch/operations.go index 47080d33da38..5a35e38698a3 100644 --- a/services/batch/mgmt/2017-09-01/batch/operations.go +++ b/services/batch/mgmt/2017-09-01/batch/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/mgmt/2017-09-01/batch/pool.go b/services/batch/mgmt/2017-09-01/batch/pool.go index ee27b991e759..7fd15e06bd44 100644 --- a/services/batch/mgmt/2017-09-01/batch/pool.go +++ b/services/batch/mgmt/2017-09-01/batch/pool.go @@ -304,6 +304,7 @@ func (client PoolClient) DisableAutoScale(ctx context.Context, resourceGroupName result, err = client.DisableAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "DisableAutoScale", resp, "Failure responding to request") + return } return @@ -393,6 +394,7 @@ func (client PoolClient) Get(ctx context.Context, resourceGroupName string, acco result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Get", resp, "Failure responding to request") + return } return @@ -494,6 +496,7 @@ func (client PoolClient) ListByBatchAccount(ctx context.Context, resourceGroupNa result.lpr, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "ListByBatchAccount", resp, "Failure responding to request") + return } if result.lpr.hasNextLink() && result.lpr.IsEmpty() { err = result.NextWithContext(ctx) @@ -567,6 +570,7 @@ func (client PoolClient) listByBatchAccountNextResults(ctx context.Context, last result, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "listByBatchAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -635,6 +639,7 @@ func (client PoolClient) StopResize(ctx context.Context, resourceGroupName strin result, err = client.StopResizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "StopResize", resp, "Failure responding to request") + return } return @@ -728,6 +733,7 @@ func (client PoolClient) Update(ctx context.Context, resourceGroupName string, a result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2018-12-01/batch/account.go b/services/batch/mgmt/2018-12-01/batch/account.go index 052474a79fab..e6f9eed41519 100644 --- a/services/batch/mgmt/2018-12-01/batch/account.go +++ b/services/batch/mgmt/2018-12-01/batch/account.go @@ -263,6 +263,7 @@ func (client AccountClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +349,7 @@ func (client AccountClient) GetKeys(ctx context.Context, resourceGroupName strin result, err = client.GetKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "GetKeys", resp, "Failure responding to request") + return } return @@ -421,6 +423,7 @@ func (client AccountClient) List(ctx context.Context) (result AccountListResultP result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -483,6 +486,7 @@ func (client AccountClient) listNextResults(ctx context.Context, lastResults Acc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -534,6 +538,7 @@ func (client AccountClient) ListByResourceGroup(ctx context.Context, resourceGro result.alr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -597,6 +602,7 @@ func (client AccountClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -657,6 +663,7 @@ func (client AccountClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -743,6 +750,7 @@ func (client AccountClient) SynchronizeAutoStorageKeys(ctx context.Context, reso result, err = client.SynchronizeAutoStorageKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "SynchronizeAutoStorageKeys", resp, "Failure responding to request") + return } return @@ -826,6 +834,7 @@ func (client AccountClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2018-12-01/batch/application.go b/services/batch/mgmt/2018-12-01/batch/application.go index e236c3fa88e8..1bf5b30fec69 100644 --- a/services/batch/mgmt/2018-12-01/batch/application.go +++ b/services/batch/mgmt/2018-12-01/batch/application.go @@ -87,6 +87,7 @@ func (client ApplicationClient) Create(ctx context.Context, resourceGroupName st result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Create", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client ApplicationClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Delete", resp, "Failure responding to request") + return } return @@ -269,6 +271,7 @@ func (client ApplicationClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +358,7 @@ func (client ApplicationClient) List(ctx context.Context, resourceGroupName stri result.lar, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "List", resp, "Failure responding to request") + return } if result.lar.hasNextLink() && result.lar.IsEmpty() { err = result.NextWithContext(ctx) @@ -422,6 +426,7 @@ func (client ApplicationClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -487,6 +492,7 @@ func (client ApplicationClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2018-12-01/batch/applicationpackage.go b/services/batch/mgmt/2018-12-01/batch/applicationpackage.go index 46e5f34fcb82..74c91037c5fc 100644 --- a/services/batch/mgmt/2018-12-01/batch/applicationpackage.go +++ b/services/batch/mgmt/2018-12-01/batch/applicationpackage.go @@ -95,6 +95,7 @@ func (client ApplicationPackageClient) Activate(ctx context.Context, resourceGro result, err = client.ActivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Activate", resp, "Failure responding to request") + return } return @@ -193,6 +194,7 @@ func (client ApplicationPackageClient) Create(ctx context.Context, resourceGroup result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Create", resp, "Failure responding to request") + return } return @@ -293,6 +295,7 @@ func (client ApplicationPackageClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Delete", resp, "Failure responding to request") + return } return @@ -387,6 +390,7 @@ func (client ApplicationPackageClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Get", resp, "Failure responding to request") + return } return @@ -479,6 +483,7 @@ func (client ApplicationPackageClient) List(ctx context.Context, resourceGroupNa result.lapr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "List", resp, "Failure responding to request") + return } if result.lapr.hasNextLink() && result.lapr.IsEmpty() { err = result.NextWithContext(ctx) @@ -547,6 +552,7 @@ func (client ApplicationPackageClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/mgmt/2018-12-01/batch/certificate.go b/services/batch/mgmt/2018-12-01/batch/certificate.go index 0a38bc6e9ff7..fbbf831e905b 100644 --- a/services/batch/mgmt/2018-12-01/batch/certificate.go +++ b/services/batch/mgmt/2018-12-01/batch/certificate.go @@ -91,6 +91,7 @@ func (client CertificateClient) CancelDeletion(ctx context.Context, resourceGrou result, err = client.CancelDeletionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "CancelDeletion", resp, "Failure responding to request") + return } return @@ -378,6 +379,7 @@ func (client CertificateClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -468,6 +470,7 @@ func (client CertificateClient) ListByBatchAccount(ctx context.Context, resource result.lcr, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "ListByBatchAccount", resp, "Failure responding to request") + return } if result.lcr.hasNextLink() && result.lcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -541,6 +544,7 @@ func (client CertificateClient) listByBatchAccountNextResults(ctx context.Contex result, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "listByBatchAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -609,6 +613,7 @@ func (client CertificateClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2018-12-01/batch/location.go b/services/batch/mgmt/2018-12-01/batch/location.go index b9c19494e0e2..7634b628aee1 100644 --- a/services/batch/mgmt/2018-12-01/batch/location.go +++ b/services/batch/mgmt/2018-12-01/batch/location.go @@ -80,6 +80,7 @@ func (client LocationClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.LocationClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client LocationClient) GetQuotas(ctx context.Context, locationName string) result, err = client.GetQuotasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.LocationClient", "GetQuotas", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2018-12-01/batch/operations.go b/services/batch/mgmt/2018-12-01/batch/operations.go index f79b7a16c841..9855324f7218 100644 --- a/services/batch/mgmt/2018-12-01/batch/operations.go +++ b/services/batch/mgmt/2018-12-01/batch/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/mgmt/2018-12-01/batch/pool.go b/services/batch/mgmt/2018-12-01/batch/pool.go index c035ebf94405..828b51493030 100644 --- a/services/batch/mgmt/2018-12-01/batch/pool.go +++ b/services/batch/mgmt/2018-12-01/batch/pool.go @@ -315,6 +315,7 @@ func (client PoolClient) DisableAutoScale(ctx context.Context, resourceGroupName result, err = client.DisableAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "DisableAutoScale", resp, "Failure responding to request") + return } return @@ -404,6 +405,7 @@ func (client PoolClient) Get(ctx context.Context, resourceGroupName string, acco result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Get", resp, "Failure responding to request") + return } return @@ -505,6 +507,7 @@ func (client PoolClient) ListByBatchAccount(ctx context.Context, resourceGroupNa result.lpr, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "ListByBatchAccount", resp, "Failure responding to request") + return } if result.lpr.hasNextLink() && result.lpr.IsEmpty() { err = result.NextWithContext(ctx) @@ -578,6 +581,7 @@ func (client PoolClient) listByBatchAccountNextResults(ctx context.Context, last result, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "listByBatchAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -646,6 +650,7 @@ func (client PoolClient) StopResize(ctx context.Context, resourceGroupName strin result, err = client.StopResizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "StopResize", resp, "Failure responding to request") + return } return @@ -739,6 +744,7 @@ func (client PoolClient) Update(ctx context.Context, resourceGroupName string, a result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2019-04-01/batch/account.go b/services/batch/mgmt/2019-04-01/batch/account.go index 122fca8a41d8..ac0e458950d8 100644 --- a/services/batch/mgmt/2019-04-01/batch/account.go +++ b/services/batch/mgmt/2019-04-01/batch/account.go @@ -263,6 +263,7 @@ func (client AccountClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +349,7 @@ func (client AccountClient) GetKeys(ctx context.Context, resourceGroupName strin result, err = client.GetKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "GetKeys", resp, "Failure responding to request") + return } return @@ -421,6 +423,7 @@ func (client AccountClient) List(ctx context.Context) (result AccountListResultP result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -483,6 +486,7 @@ func (client AccountClient) listNextResults(ctx context.Context, lastResults Acc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -534,6 +538,7 @@ func (client AccountClient) ListByResourceGroup(ctx context.Context, resourceGro result.alr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -597,6 +602,7 @@ func (client AccountClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -657,6 +663,7 @@ func (client AccountClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -743,6 +750,7 @@ func (client AccountClient) SynchronizeAutoStorageKeys(ctx context.Context, reso result, err = client.SynchronizeAutoStorageKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "SynchronizeAutoStorageKeys", resp, "Failure responding to request") + return } return @@ -826,6 +834,7 @@ func (client AccountClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2019-04-01/batch/application.go b/services/batch/mgmt/2019-04-01/batch/application.go index 333271e0c4b6..e201f047ecec 100644 --- a/services/batch/mgmt/2019-04-01/batch/application.go +++ b/services/batch/mgmt/2019-04-01/batch/application.go @@ -87,6 +87,7 @@ func (client ApplicationClient) Create(ctx context.Context, resourceGroupName st result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Create", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client ApplicationClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Delete", resp, "Failure responding to request") + return } return @@ -269,6 +271,7 @@ func (client ApplicationClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +358,7 @@ func (client ApplicationClient) List(ctx context.Context, resourceGroupName stri result.lar, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "List", resp, "Failure responding to request") + return } if result.lar.hasNextLink() && result.lar.IsEmpty() { err = result.NextWithContext(ctx) @@ -422,6 +426,7 @@ func (client ApplicationClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -487,6 +492,7 @@ func (client ApplicationClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2019-04-01/batch/applicationpackage.go b/services/batch/mgmt/2019-04-01/batch/applicationpackage.go index 6f4c0be92833..dbabd188b97c 100644 --- a/services/batch/mgmt/2019-04-01/batch/applicationpackage.go +++ b/services/batch/mgmt/2019-04-01/batch/applicationpackage.go @@ -95,6 +95,7 @@ func (client ApplicationPackageClient) Activate(ctx context.Context, resourceGro result, err = client.ActivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Activate", resp, "Failure responding to request") + return } return @@ -193,6 +194,7 @@ func (client ApplicationPackageClient) Create(ctx context.Context, resourceGroup result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Create", resp, "Failure responding to request") + return } return @@ -293,6 +295,7 @@ func (client ApplicationPackageClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Delete", resp, "Failure responding to request") + return } return @@ -387,6 +390,7 @@ func (client ApplicationPackageClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Get", resp, "Failure responding to request") + return } return @@ -479,6 +483,7 @@ func (client ApplicationPackageClient) List(ctx context.Context, resourceGroupNa result.lapr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "List", resp, "Failure responding to request") + return } if result.lapr.hasNextLink() && result.lapr.IsEmpty() { err = result.NextWithContext(ctx) @@ -547,6 +552,7 @@ func (client ApplicationPackageClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/mgmt/2019-04-01/batch/certificate.go b/services/batch/mgmt/2019-04-01/batch/certificate.go index c4261e71289c..518b51724e55 100644 --- a/services/batch/mgmt/2019-04-01/batch/certificate.go +++ b/services/batch/mgmt/2019-04-01/batch/certificate.go @@ -91,6 +91,7 @@ func (client CertificateClient) CancelDeletion(ctx context.Context, resourceGrou result, err = client.CancelDeletionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "CancelDeletion", resp, "Failure responding to request") + return } return @@ -378,6 +379,7 @@ func (client CertificateClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -468,6 +470,7 @@ func (client CertificateClient) ListByBatchAccount(ctx context.Context, resource result.lcr, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "ListByBatchAccount", resp, "Failure responding to request") + return } if result.lcr.hasNextLink() && result.lcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -541,6 +544,7 @@ func (client CertificateClient) listByBatchAccountNextResults(ctx context.Contex result, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "listByBatchAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -609,6 +613,7 @@ func (client CertificateClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2019-04-01/batch/location.go b/services/batch/mgmt/2019-04-01/batch/location.go index 82fc4d9a9e83..5467d21c13ab 100644 --- a/services/batch/mgmt/2019-04-01/batch/location.go +++ b/services/batch/mgmt/2019-04-01/batch/location.go @@ -80,6 +80,7 @@ func (client LocationClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.LocationClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client LocationClient) GetQuotas(ctx context.Context, locationName string) result, err = client.GetQuotasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.LocationClient", "GetQuotas", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2019-04-01/batch/operations.go b/services/batch/mgmt/2019-04-01/batch/operations.go index 0574beb042a4..b81f579fa964 100644 --- a/services/batch/mgmt/2019-04-01/batch/operations.go +++ b/services/batch/mgmt/2019-04-01/batch/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/mgmt/2019-04-01/batch/pool.go b/services/batch/mgmt/2019-04-01/batch/pool.go index 7d9c8ec79c5c..99cb35066fef 100644 --- a/services/batch/mgmt/2019-04-01/batch/pool.go +++ b/services/batch/mgmt/2019-04-01/batch/pool.go @@ -315,6 +315,7 @@ func (client PoolClient) DisableAutoScale(ctx context.Context, resourceGroupName result, err = client.DisableAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "DisableAutoScale", resp, "Failure responding to request") + return } return @@ -404,6 +405,7 @@ func (client PoolClient) Get(ctx context.Context, resourceGroupName string, acco result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Get", resp, "Failure responding to request") + return } return @@ -505,6 +507,7 @@ func (client PoolClient) ListByBatchAccount(ctx context.Context, resourceGroupNa result.lpr, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "ListByBatchAccount", resp, "Failure responding to request") + return } if result.lpr.hasNextLink() && result.lpr.IsEmpty() { err = result.NextWithContext(ctx) @@ -578,6 +581,7 @@ func (client PoolClient) listByBatchAccountNextResults(ctx context.Context, last result, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "listByBatchAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -646,6 +650,7 @@ func (client PoolClient) StopResize(ctx context.Context, resourceGroupName strin result, err = client.StopResizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "StopResize", resp, "Failure responding to request") + return } return @@ -739,6 +744,7 @@ func (client PoolClient) Update(ctx context.Context, resourceGroupName string, a result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2019-08-01/batch/account.go b/services/batch/mgmt/2019-08-01/batch/account.go index b966180f642c..5ab73073adbe 100644 --- a/services/batch/mgmt/2019-08-01/batch/account.go +++ b/services/batch/mgmt/2019-08-01/batch/account.go @@ -263,6 +263,7 @@ func (client AccountClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +349,7 @@ func (client AccountClient) GetKeys(ctx context.Context, resourceGroupName strin result, err = client.GetKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "GetKeys", resp, "Failure responding to request") + return } return @@ -421,6 +423,7 @@ func (client AccountClient) List(ctx context.Context) (result AccountListResultP result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -483,6 +486,7 @@ func (client AccountClient) listNextResults(ctx context.Context, lastResults Acc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -534,6 +538,7 @@ func (client AccountClient) ListByResourceGroup(ctx context.Context, resourceGro result.alr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -597,6 +602,7 @@ func (client AccountClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -657,6 +663,7 @@ func (client AccountClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -743,6 +750,7 @@ func (client AccountClient) SynchronizeAutoStorageKeys(ctx context.Context, reso result, err = client.SynchronizeAutoStorageKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "SynchronizeAutoStorageKeys", resp, "Failure responding to request") + return } return @@ -826,6 +834,7 @@ func (client AccountClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2019-08-01/batch/application.go b/services/batch/mgmt/2019-08-01/batch/application.go index 3c9e3e01cd4d..13807b39bf1f 100644 --- a/services/batch/mgmt/2019-08-01/batch/application.go +++ b/services/batch/mgmt/2019-08-01/batch/application.go @@ -87,6 +87,7 @@ func (client ApplicationClient) Create(ctx context.Context, resourceGroupName st result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Create", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client ApplicationClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Delete", resp, "Failure responding to request") + return } return @@ -269,6 +271,7 @@ func (client ApplicationClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +358,7 @@ func (client ApplicationClient) List(ctx context.Context, resourceGroupName stri result.lar, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "List", resp, "Failure responding to request") + return } if result.lar.hasNextLink() && result.lar.IsEmpty() { err = result.NextWithContext(ctx) @@ -422,6 +426,7 @@ func (client ApplicationClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -487,6 +492,7 @@ func (client ApplicationClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2019-08-01/batch/applicationpackage.go b/services/batch/mgmt/2019-08-01/batch/applicationpackage.go index e2e5dd52cedd..48b8ad792438 100644 --- a/services/batch/mgmt/2019-08-01/batch/applicationpackage.go +++ b/services/batch/mgmt/2019-08-01/batch/applicationpackage.go @@ -96,6 +96,7 @@ func (client ApplicationPackageClient) Activate(ctx context.Context, resourceGro result, err = client.ActivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Activate", resp, "Failure responding to request") + return } return @@ -196,6 +197,7 @@ func (client ApplicationPackageClient) Create(ctx context.Context, resourceGroup result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Create", resp, "Failure responding to request") + return } return @@ -296,6 +298,7 @@ func (client ApplicationPackageClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Delete", resp, "Failure responding to request") + return } return @@ -390,6 +393,7 @@ func (client ApplicationPackageClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Get", resp, "Failure responding to request") + return } return @@ -482,6 +486,7 @@ func (client ApplicationPackageClient) List(ctx context.Context, resourceGroupNa result.lapr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "List", resp, "Failure responding to request") + return } if result.lapr.hasNextLink() && result.lapr.IsEmpty() { err = result.NextWithContext(ctx) @@ -550,6 +555,7 @@ func (client ApplicationPackageClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/mgmt/2019-08-01/batch/certificate.go b/services/batch/mgmt/2019-08-01/batch/certificate.go index c2a932c9789b..6d5300cb5639 100644 --- a/services/batch/mgmt/2019-08-01/batch/certificate.go +++ b/services/batch/mgmt/2019-08-01/batch/certificate.go @@ -91,6 +91,7 @@ func (client CertificateClient) CancelDeletion(ctx context.Context, resourceGrou result, err = client.CancelDeletionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "CancelDeletion", resp, "Failure responding to request") + return } return @@ -378,6 +379,7 @@ func (client CertificateClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -468,6 +470,7 @@ func (client CertificateClient) ListByBatchAccount(ctx context.Context, resource result.lcr, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "ListByBatchAccount", resp, "Failure responding to request") + return } if result.lcr.hasNextLink() && result.lcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -541,6 +544,7 @@ func (client CertificateClient) listByBatchAccountNextResults(ctx context.Contex result, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "listByBatchAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -609,6 +613,7 @@ func (client CertificateClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2019-08-01/batch/location.go b/services/batch/mgmt/2019-08-01/batch/location.go index 1fc5a5907f69..ee17d3ceaf8d 100644 --- a/services/batch/mgmt/2019-08-01/batch/location.go +++ b/services/batch/mgmt/2019-08-01/batch/location.go @@ -80,6 +80,7 @@ func (client LocationClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.LocationClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client LocationClient) GetQuotas(ctx context.Context, locationName string) result, err = client.GetQuotasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.LocationClient", "GetQuotas", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2019-08-01/batch/operations.go b/services/batch/mgmt/2019-08-01/batch/operations.go index 774431f7a114..263a5ae26e61 100644 --- a/services/batch/mgmt/2019-08-01/batch/operations.go +++ b/services/batch/mgmt/2019-08-01/batch/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/mgmt/2019-08-01/batch/pool.go b/services/batch/mgmt/2019-08-01/batch/pool.go index e49b1d61c748..c8cf941aa303 100644 --- a/services/batch/mgmt/2019-08-01/batch/pool.go +++ b/services/batch/mgmt/2019-08-01/batch/pool.go @@ -315,6 +315,7 @@ func (client PoolClient) DisableAutoScale(ctx context.Context, resourceGroupName result, err = client.DisableAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "DisableAutoScale", resp, "Failure responding to request") + return } return @@ -404,6 +405,7 @@ func (client PoolClient) Get(ctx context.Context, resourceGroupName string, acco result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Get", resp, "Failure responding to request") + return } return @@ -505,6 +507,7 @@ func (client PoolClient) ListByBatchAccount(ctx context.Context, resourceGroupNa result.lpr, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "ListByBatchAccount", resp, "Failure responding to request") + return } if result.lpr.hasNextLink() && result.lpr.IsEmpty() { err = result.NextWithContext(ctx) @@ -578,6 +581,7 @@ func (client PoolClient) listByBatchAccountNextResults(ctx context.Context, last result, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "listByBatchAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -646,6 +650,7 @@ func (client PoolClient) StopResize(ctx context.Context, resourceGroupName strin result, err = client.StopResizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "StopResize", resp, "Failure responding to request") + return } return @@ -739,6 +744,7 @@ func (client PoolClient) Update(ctx context.Context, resourceGroupName string, a result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2020-03-01/batch/account.go b/services/batch/mgmt/2020-03-01/batch/account.go index e5285544ba41..490c2c0c5761 100644 --- a/services/batch/mgmt/2020-03-01/batch/account.go +++ b/services/batch/mgmt/2020-03-01/batch/account.go @@ -263,6 +263,7 @@ func (client AccountClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +349,7 @@ func (client AccountClient) GetKeys(ctx context.Context, resourceGroupName strin result, err = client.GetKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "GetKeys", resp, "Failure responding to request") + return } return @@ -421,6 +423,7 @@ func (client AccountClient) List(ctx context.Context) (result AccountListResultP result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -483,6 +486,7 @@ func (client AccountClient) listNextResults(ctx context.Context, lastResults Acc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -534,6 +538,7 @@ func (client AccountClient) ListByResourceGroup(ctx context.Context, resourceGro result.alr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -597,6 +602,7 @@ func (client AccountClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -657,6 +663,7 @@ func (client AccountClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -743,6 +750,7 @@ func (client AccountClient) SynchronizeAutoStorageKeys(ctx context.Context, reso result, err = client.SynchronizeAutoStorageKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "SynchronizeAutoStorageKeys", resp, "Failure responding to request") + return } return @@ -826,6 +834,7 @@ func (client AccountClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2020-03-01/batch/application.go b/services/batch/mgmt/2020-03-01/batch/application.go index a89991a5c9a0..673f4cf701e2 100644 --- a/services/batch/mgmt/2020-03-01/batch/application.go +++ b/services/batch/mgmt/2020-03-01/batch/application.go @@ -87,6 +87,7 @@ func (client ApplicationClient) Create(ctx context.Context, resourceGroupName st result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Create", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client ApplicationClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Delete", resp, "Failure responding to request") + return } return @@ -269,6 +271,7 @@ func (client ApplicationClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +358,7 @@ func (client ApplicationClient) List(ctx context.Context, resourceGroupName stri result.lar, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "List", resp, "Failure responding to request") + return } if result.lar.hasNextLink() && result.lar.IsEmpty() { err = result.NextWithContext(ctx) @@ -422,6 +426,7 @@ func (client ApplicationClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -487,6 +492,7 @@ func (client ApplicationClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2020-03-01/batch/applicationpackage.go b/services/batch/mgmt/2020-03-01/batch/applicationpackage.go index e68f6fdbd95b..f44ced0f131b 100644 --- a/services/batch/mgmt/2020-03-01/batch/applicationpackage.go +++ b/services/batch/mgmt/2020-03-01/batch/applicationpackage.go @@ -96,6 +96,7 @@ func (client ApplicationPackageClient) Activate(ctx context.Context, resourceGro result, err = client.ActivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Activate", resp, "Failure responding to request") + return } return @@ -196,6 +197,7 @@ func (client ApplicationPackageClient) Create(ctx context.Context, resourceGroup result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Create", resp, "Failure responding to request") + return } return @@ -296,6 +298,7 @@ func (client ApplicationPackageClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Delete", resp, "Failure responding to request") + return } return @@ -390,6 +393,7 @@ func (client ApplicationPackageClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Get", resp, "Failure responding to request") + return } return @@ -482,6 +486,7 @@ func (client ApplicationPackageClient) List(ctx context.Context, resourceGroupNa result.lapr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "List", resp, "Failure responding to request") + return } if result.lapr.hasNextLink() && result.lapr.IsEmpty() { err = result.NextWithContext(ctx) @@ -550,6 +555,7 @@ func (client ApplicationPackageClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/mgmt/2020-03-01/batch/certificate.go b/services/batch/mgmt/2020-03-01/batch/certificate.go index 0b455c521ee6..f9f9c0dfdbf6 100644 --- a/services/batch/mgmt/2020-03-01/batch/certificate.go +++ b/services/batch/mgmt/2020-03-01/batch/certificate.go @@ -91,6 +91,7 @@ func (client CertificateClient) CancelDeletion(ctx context.Context, resourceGrou result, err = client.CancelDeletionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "CancelDeletion", resp, "Failure responding to request") + return } return @@ -378,6 +379,7 @@ func (client CertificateClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -468,6 +470,7 @@ func (client CertificateClient) ListByBatchAccount(ctx context.Context, resource result.lcr, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "ListByBatchAccount", resp, "Failure responding to request") + return } if result.lcr.hasNextLink() && result.lcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -541,6 +544,7 @@ func (client CertificateClient) listByBatchAccountNextResults(ctx context.Contex result, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "listByBatchAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -609,6 +613,7 @@ func (client CertificateClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2020-03-01/batch/location.go b/services/batch/mgmt/2020-03-01/batch/location.go index 3e4ea3f65ee6..61cc71d02e5e 100644 --- a/services/batch/mgmt/2020-03-01/batch/location.go +++ b/services/batch/mgmt/2020-03-01/batch/location.go @@ -80,6 +80,7 @@ func (client LocationClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.LocationClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client LocationClient) GetQuotas(ctx context.Context, locationName string) result, err = client.GetQuotasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.LocationClient", "GetQuotas", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2020-03-01/batch/operations.go b/services/batch/mgmt/2020-03-01/batch/operations.go index 17ed52e82a6e..ee385cd74840 100644 --- a/services/batch/mgmt/2020-03-01/batch/operations.go +++ b/services/batch/mgmt/2020-03-01/batch/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/mgmt/2020-03-01/batch/pool.go b/services/batch/mgmt/2020-03-01/batch/pool.go index 1cd52c6dbcfc..aaccb3ab181b 100644 --- a/services/batch/mgmt/2020-03-01/batch/pool.go +++ b/services/batch/mgmt/2020-03-01/batch/pool.go @@ -315,6 +315,7 @@ func (client PoolClient) DisableAutoScale(ctx context.Context, resourceGroupName result, err = client.DisableAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "DisableAutoScale", resp, "Failure responding to request") + return } return @@ -404,6 +405,7 @@ func (client PoolClient) Get(ctx context.Context, resourceGroupName string, acco result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Get", resp, "Failure responding to request") + return } return @@ -505,6 +507,7 @@ func (client PoolClient) ListByBatchAccount(ctx context.Context, resourceGroupNa result.lpr, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "ListByBatchAccount", resp, "Failure responding to request") + return } if result.lpr.hasNextLink() && result.lpr.IsEmpty() { err = result.NextWithContext(ctx) @@ -578,6 +581,7 @@ func (client PoolClient) listByBatchAccountNextResults(ctx context.Context, last result, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "listByBatchAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -646,6 +650,7 @@ func (client PoolClient) StopResize(ctx context.Context, resourceGroupName strin result, err = client.StopResizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "StopResize", resp, "Failure responding to request") + return } return @@ -739,6 +744,7 @@ func (client PoolClient) Update(ctx context.Context, resourceGroupName string, a result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2020-03-01/batch/privateendpointconnection.go b/services/batch/mgmt/2020-03-01/batch/privateendpointconnection.go index 18332afff988..b2ef15081963 100644 --- a/services/batch/mgmt/2020-03-01/batch/privateendpointconnection.go +++ b/services/batch/mgmt/2020-03-01/batch/privateendpointconnection.go @@ -88,6 +88,7 @@ func (client PrivateEndpointConnectionClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PrivateEndpointConnectionClient", "Get", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client PrivateEndpointConnectionClient) ListByBatchAccount(ctx context.Con result.lpecr, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PrivateEndpointConnectionClient", "ListByBatchAccount", resp, "Failure responding to request") + return } if result.lpecr.hasNextLink() && result.lpecr.IsEmpty() { err = result.NextWithContext(ctx) @@ -241,6 +243,7 @@ func (client PrivateEndpointConnectionClient) listByBatchAccountNextResults(ctx result, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PrivateEndpointConnectionClient", "listByBatchAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -310,6 +313,7 @@ func (client PrivateEndpointConnectionClient) Update(ctx context.Context, resour result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PrivateEndpointConnectionClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2020-03-01/batch/privatelinkresource.go b/services/batch/mgmt/2020-03-01/batch/privatelinkresource.go index 09d277adac33..5b4fb3ace3d5 100644 --- a/services/batch/mgmt/2020-03-01/batch/privatelinkresource.go +++ b/services/batch/mgmt/2020-03-01/batch/privatelinkresource.go @@ -87,6 +87,7 @@ func (client PrivateLinkResourceClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PrivateLinkResourceClient", "Get", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client PrivateLinkResourceClient) ListByBatchAccount(ctx context.Context, result.lplrr, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PrivateLinkResourceClient", "ListByBatchAccount", resp, "Failure responding to request") + return } if result.lplrr.hasNextLink() && result.lplrr.IsEmpty() { err = result.NextWithContext(ctx) @@ -240,6 +242,7 @@ func (client PrivateLinkResourceClient) listByBatchAccountNextResults(ctx contex result, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PrivateLinkResourceClient", "listByBatchAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/mgmt/2020-05-01/batch/account.go b/services/batch/mgmt/2020-05-01/batch/account.go index b53464dbd16d..64a398663d40 100644 --- a/services/batch/mgmt/2020-05-01/batch/account.go +++ b/services/batch/mgmt/2020-05-01/batch/account.go @@ -263,6 +263,7 @@ func (client AccountClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +349,7 @@ func (client AccountClient) GetKeys(ctx context.Context, resourceGroupName strin result, err = client.GetKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "GetKeys", resp, "Failure responding to request") + return } return @@ -421,6 +423,7 @@ func (client AccountClient) List(ctx context.Context) (result AccountListResultP result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -483,6 +486,7 @@ func (client AccountClient) listNextResults(ctx context.Context, lastResults Acc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -534,6 +538,7 @@ func (client AccountClient) ListByResourceGroup(ctx context.Context, resourceGro result.alr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -597,6 +602,7 @@ func (client AccountClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -657,6 +663,7 @@ func (client AccountClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -743,6 +750,7 @@ func (client AccountClient) SynchronizeAutoStorageKeys(ctx context.Context, reso result, err = client.SynchronizeAutoStorageKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "SynchronizeAutoStorageKeys", resp, "Failure responding to request") + return } return @@ -826,6 +834,7 @@ func (client AccountClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2020-05-01/batch/application.go b/services/batch/mgmt/2020-05-01/batch/application.go index 423771af5033..8e914f1ed99e 100644 --- a/services/batch/mgmt/2020-05-01/batch/application.go +++ b/services/batch/mgmt/2020-05-01/batch/application.go @@ -87,6 +87,7 @@ func (client ApplicationClient) Create(ctx context.Context, resourceGroupName st result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Create", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client ApplicationClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Delete", resp, "Failure responding to request") + return } return @@ -269,6 +271,7 @@ func (client ApplicationClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +358,7 @@ func (client ApplicationClient) List(ctx context.Context, resourceGroupName stri result.lar, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "List", resp, "Failure responding to request") + return } if result.lar.hasNextLink() && result.lar.IsEmpty() { err = result.NextWithContext(ctx) @@ -422,6 +426,7 @@ func (client ApplicationClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -487,6 +492,7 @@ func (client ApplicationClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2020-05-01/batch/applicationpackage.go b/services/batch/mgmt/2020-05-01/batch/applicationpackage.go index 4258526b9129..e31e2fb1941f 100644 --- a/services/batch/mgmt/2020-05-01/batch/applicationpackage.go +++ b/services/batch/mgmt/2020-05-01/batch/applicationpackage.go @@ -96,6 +96,7 @@ func (client ApplicationPackageClient) Activate(ctx context.Context, resourceGro result, err = client.ActivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Activate", resp, "Failure responding to request") + return } return @@ -196,6 +197,7 @@ func (client ApplicationPackageClient) Create(ctx context.Context, resourceGroup result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Create", resp, "Failure responding to request") + return } return @@ -296,6 +298,7 @@ func (client ApplicationPackageClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Delete", resp, "Failure responding to request") + return } return @@ -390,6 +393,7 @@ func (client ApplicationPackageClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Get", resp, "Failure responding to request") + return } return @@ -482,6 +486,7 @@ func (client ApplicationPackageClient) List(ctx context.Context, resourceGroupNa result.lapr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "List", resp, "Failure responding to request") + return } if result.lapr.hasNextLink() && result.lapr.IsEmpty() { err = result.NextWithContext(ctx) @@ -550,6 +555,7 @@ func (client ApplicationPackageClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/mgmt/2020-05-01/batch/certificate.go b/services/batch/mgmt/2020-05-01/batch/certificate.go index a99b3fd2ab62..57c74da7c80b 100644 --- a/services/batch/mgmt/2020-05-01/batch/certificate.go +++ b/services/batch/mgmt/2020-05-01/batch/certificate.go @@ -91,6 +91,7 @@ func (client CertificateClient) CancelDeletion(ctx context.Context, resourceGrou result, err = client.CancelDeletionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "CancelDeletion", resp, "Failure responding to request") + return } return @@ -378,6 +379,7 @@ func (client CertificateClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -468,6 +470,7 @@ func (client CertificateClient) ListByBatchAccount(ctx context.Context, resource result.lcr, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "ListByBatchAccount", resp, "Failure responding to request") + return } if result.lcr.hasNextLink() && result.lcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -541,6 +544,7 @@ func (client CertificateClient) listByBatchAccountNextResults(ctx context.Contex result, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "listByBatchAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -609,6 +613,7 @@ func (client CertificateClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2020-05-01/batch/location.go b/services/batch/mgmt/2020-05-01/batch/location.go index 3e871f7e4d66..9fc891e2b002 100644 --- a/services/batch/mgmt/2020-05-01/batch/location.go +++ b/services/batch/mgmt/2020-05-01/batch/location.go @@ -80,6 +80,7 @@ func (client LocationClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.LocationClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client LocationClient) GetQuotas(ctx context.Context, locationName string) result, err = client.GetQuotasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.LocationClient", "GetQuotas", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2020-05-01/batch/operations.go b/services/batch/mgmt/2020-05-01/batch/operations.go index 978e69f88924..e6896c759cd0 100644 --- a/services/batch/mgmt/2020-05-01/batch/operations.go +++ b/services/batch/mgmt/2020-05-01/batch/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/mgmt/2020-05-01/batch/pool.go b/services/batch/mgmt/2020-05-01/batch/pool.go index e6f528754f0c..0fc5b552c734 100644 --- a/services/batch/mgmt/2020-05-01/batch/pool.go +++ b/services/batch/mgmt/2020-05-01/batch/pool.go @@ -315,6 +315,7 @@ func (client PoolClient) DisableAutoScale(ctx context.Context, resourceGroupName result, err = client.DisableAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "DisableAutoScale", resp, "Failure responding to request") + return } return @@ -404,6 +405,7 @@ func (client PoolClient) Get(ctx context.Context, resourceGroupName string, acco result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Get", resp, "Failure responding to request") + return } return @@ -505,6 +507,7 @@ func (client PoolClient) ListByBatchAccount(ctx context.Context, resourceGroupNa result.lpr, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "ListByBatchAccount", resp, "Failure responding to request") + return } if result.lpr.hasNextLink() && result.lpr.IsEmpty() { err = result.NextWithContext(ctx) @@ -578,6 +581,7 @@ func (client PoolClient) listByBatchAccountNextResults(ctx context.Context, last result, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "listByBatchAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -646,6 +650,7 @@ func (client PoolClient) StopResize(ctx context.Context, resourceGroupName strin result, err = client.StopResizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "StopResize", resp, "Failure responding to request") + return } return @@ -739,6 +744,7 @@ func (client PoolClient) Update(ctx context.Context, resourceGroupName string, a result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2020-05-01/batch/privateendpointconnection.go b/services/batch/mgmt/2020-05-01/batch/privateendpointconnection.go index 9e483750a1a5..4994849445d9 100644 --- a/services/batch/mgmt/2020-05-01/batch/privateendpointconnection.go +++ b/services/batch/mgmt/2020-05-01/batch/privateendpointconnection.go @@ -88,6 +88,7 @@ func (client PrivateEndpointConnectionClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PrivateEndpointConnectionClient", "Get", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client PrivateEndpointConnectionClient) ListByBatchAccount(ctx context.Con result.lpecr, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PrivateEndpointConnectionClient", "ListByBatchAccount", resp, "Failure responding to request") + return } if result.lpecr.hasNextLink() && result.lpecr.IsEmpty() { err = result.NextWithContext(ctx) @@ -241,6 +243,7 @@ func (client PrivateEndpointConnectionClient) listByBatchAccountNextResults(ctx result, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PrivateEndpointConnectionClient", "listByBatchAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/mgmt/2020-05-01/batch/privatelinkresource.go b/services/batch/mgmt/2020-05-01/batch/privatelinkresource.go index 1910903ba9e2..14d4c93234a6 100644 --- a/services/batch/mgmt/2020-05-01/batch/privatelinkresource.go +++ b/services/batch/mgmt/2020-05-01/batch/privatelinkresource.go @@ -87,6 +87,7 @@ func (client PrivateLinkResourceClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PrivateLinkResourceClient", "Get", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client PrivateLinkResourceClient) ListByBatchAccount(ctx context.Context, result.lplrr, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PrivateLinkResourceClient", "ListByBatchAccount", resp, "Failure responding to request") + return } if result.lplrr.hasNextLink() && result.lplrr.IsEmpty() { err = result.NextWithContext(ctx) @@ -240,6 +242,7 @@ func (client PrivateLinkResourceClient) listByBatchAccountNextResults(ctx contex result, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PrivateLinkResourceClient", "listByBatchAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/mgmt/2020-09-01/batch/account.go b/services/batch/mgmt/2020-09-01/batch/account.go index fd26166ef0b8..6bc6b6bf73bc 100644 --- a/services/batch/mgmt/2020-09-01/batch/account.go +++ b/services/batch/mgmt/2020-09-01/batch/account.go @@ -263,6 +263,7 @@ func (client AccountClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +349,7 @@ func (client AccountClient) GetKeys(ctx context.Context, resourceGroupName strin result, err = client.GetKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "GetKeys", resp, "Failure responding to request") + return } return @@ -421,6 +423,7 @@ func (client AccountClient) List(ctx context.Context) (result AccountListResultP result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -483,6 +486,7 @@ func (client AccountClient) listNextResults(ctx context.Context, lastResults Acc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -534,6 +538,7 @@ func (client AccountClient) ListByResourceGroup(ctx context.Context, resourceGro result.alr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -597,6 +602,7 @@ func (client AccountClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -657,6 +663,7 @@ func (client AccountClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -743,6 +750,7 @@ func (client AccountClient) SynchronizeAutoStorageKeys(ctx context.Context, reso result, err = client.SynchronizeAutoStorageKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "SynchronizeAutoStorageKeys", resp, "Failure responding to request") + return } return @@ -826,6 +834,7 @@ func (client AccountClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2020-09-01/batch/application.go b/services/batch/mgmt/2020-09-01/batch/application.go index dc4adf686f88..c24ae5541d1f 100644 --- a/services/batch/mgmt/2020-09-01/batch/application.go +++ b/services/batch/mgmt/2020-09-01/batch/application.go @@ -87,6 +87,7 @@ func (client ApplicationClient) Create(ctx context.Context, resourceGroupName st result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Create", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client ApplicationClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Delete", resp, "Failure responding to request") + return } return @@ -269,6 +271,7 @@ func (client ApplicationClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +358,7 @@ func (client ApplicationClient) List(ctx context.Context, resourceGroupName stri result.lar, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "List", resp, "Failure responding to request") + return } if result.lar.hasNextLink() && result.lar.IsEmpty() { err = result.NextWithContext(ctx) @@ -422,6 +426,7 @@ func (client ApplicationClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -487,6 +492,7 @@ func (client ApplicationClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2020-09-01/batch/applicationpackage.go b/services/batch/mgmt/2020-09-01/batch/applicationpackage.go index c29e615cd441..48c92805d5ef 100644 --- a/services/batch/mgmt/2020-09-01/batch/applicationpackage.go +++ b/services/batch/mgmt/2020-09-01/batch/applicationpackage.go @@ -96,6 +96,7 @@ func (client ApplicationPackageClient) Activate(ctx context.Context, resourceGro result, err = client.ActivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Activate", resp, "Failure responding to request") + return } return @@ -196,6 +197,7 @@ func (client ApplicationPackageClient) Create(ctx context.Context, resourceGroup result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Create", resp, "Failure responding to request") + return } return @@ -296,6 +298,7 @@ func (client ApplicationPackageClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Delete", resp, "Failure responding to request") + return } return @@ -390,6 +393,7 @@ func (client ApplicationPackageClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "Get", resp, "Failure responding to request") + return } return @@ -482,6 +486,7 @@ func (client ApplicationPackageClient) List(ctx context.Context, resourceGroupNa result.lapr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "List", resp, "Failure responding to request") + return } if result.lapr.hasNextLink() && result.lapr.IsEmpty() { err = result.NextWithContext(ctx) @@ -550,6 +555,7 @@ func (client ApplicationPackageClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.ApplicationPackageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/mgmt/2020-09-01/batch/certificate.go b/services/batch/mgmt/2020-09-01/batch/certificate.go index 90fd6de83ca3..ad96aa06d48f 100644 --- a/services/batch/mgmt/2020-09-01/batch/certificate.go +++ b/services/batch/mgmt/2020-09-01/batch/certificate.go @@ -91,6 +91,7 @@ func (client CertificateClient) CancelDeletion(ctx context.Context, resourceGrou result, err = client.CancelDeletionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "CancelDeletion", resp, "Failure responding to request") + return } return @@ -378,6 +379,7 @@ func (client CertificateClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -468,6 +470,7 @@ func (client CertificateClient) ListByBatchAccount(ctx context.Context, resource result.lcr, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "ListByBatchAccount", resp, "Failure responding to request") + return } if result.lcr.hasNextLink() && result.lcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -541,6 +544,7 @@ func (client CertificateClient) listByBatchAccountNextResults(ctx context.Contex result, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "listByBatchAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -609,6 +613,7 @@ func (client CertificateClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2020-09-01/batch/location.go b/services/batch/mgmt/2020-09-01/batch/location.go index cc8bf471578b..a613c408cdd8 100644 --- a/services/batch/mgmt/2020-09-01/batch/location.go +++ b/services/batch/mgmt/2020-09-01/batch/location.go @@ -80,6 +80,7 @@ func (client LocationClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.LocationClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client LocationClient) GetQuotas(ctx context.Context, locationName string) result, err = client.GetQuotasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.LocationClient", "GetQuotas", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2020-09-01/batch/operations.go b/services/batch/mgmt/2020-09-01/batch/operations.go index f53538640a54..2f60ba61edc6 100644 --- a/services/batch/mgmt/2020-09-01/batch/operations.go +++ b/services/batch/mgmt/2020-09-01/batch/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/mgmt/2020-09-01/batch/pool.go b/services/batch/mgmt/2020-09-01/batch/pool.go index 7d2139f16434..9d1f955675c0 100644 --- a/services/batch/mgmt/2020-09-01/batch/pool.go +++ b/services/batch/mgmt/2020-09-01/batch/pool.go @@ -315,6 +315,7 @@ func (client PoolClient) DisableAutoScale(ctx context.Context, resourceGroupName result, err = client.DisableAutoScaleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "DisableAutoScale", resp, "Failure responding to request") + return } return @@ -404,6 +405,7 @@ func (client PoolClient) Get(ctx context.Context, resourceGroupName string, acco result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Get", resp, "Failure responding to request") + return } return @@ -505,6 +507,7 @@ func (client PoolClient) ListByBatchAccount(ctx context.Context, resourceGroupNa result.lpr, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "ListByBatchAccount", resp, "Failure responding to request") + return } if result.lpr.hasNextLink() && result.lpr.IsEmpty() { err = result.NextWithContext(ctx) @@ -578,6 +581,7 @@ func (client PoolClient) listByBatchAccountNextResults(ctx context.Context, last result, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "listByBatchAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -646,6 +650,7 @@ func (client PoolClient) StopResize(ctx context.Context, resourceGroupName strin result, err = client.StopResizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "StopResize", resp, "Failure responding to request") + return } return @@ -739,6 +744,7 @@ func (client PoolClient) Update(ctx context.Context, resourceGroupName string, a result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batch/mgmt/2020-09-01/batch/privateendpointconnection.go b/services/batch/mgmt/2020-09-01/batch/privateendpointconnection.go index 530c51e0701c..283310791580 100644 --- a/services/batch/mgmt/2020-09-01/batch/privateendpointconnection.go +++ b/services/batch/mgmt/2020-09-01/batch/privateendpointconnection.go @@ -88,6 +88,7 @@ func (client PrivateEndpointConnectionClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PrivateEndpointConnectionClient", "Get", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client PrivateEndpointConnectionClient) ListByBatchAccount(ctx context.Con result.lpecr, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PrivateEndpointConnectionClient", "ListByBatchAccount", resp, "Failure responding to request") + return } if result.lpecr.hasNextLink() && result.lpecr.IsEmpty() { err = result.NextWithContext(ctx) @@ -241,6 +243,7 @@ func (client PrivateEndpointConnectionClient) listByBatchAccountNextResults(ctx result, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PrivateEndpointConnectionClient", "listByBatchAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batch/mgmt/2020-09-01/batch/privatelinkresource.go b/services/batch/mgmt/2020-09-01/batch/privatelinkresource.go index 9cacf804be9e..01367d1827ad 100644 --- a/services/batch/mgmt/2020-09-01/batch/privatelinkresource.go +++ b/services/batch/mgmt/2020-09-01/batch/privatelinkresource.go @@ -87,6 +87,7 @@ func (client PrivateLinkResourceClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PrivateLinkResourceClient", "Get", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client PrivateLinkResourceClient) ListByBatchAccount(ctx context.Context, result.lplrr, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PrivateLinkResourceClient", "ListByBatchAccount", resp, "Failure responding to request") + return } if result.lplrr.hasNextLink() && result.lplrr.IsEmpty() { err = result.NextWithContext(ctx) @@ -240,6 +242,7 @@ func (client PrivateLinkResourceClient) listByBatchAccountNextResults(ctx contex result, err = client.ListByBatchAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batch.PrivateLinkResourceClient", "listByBatchAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batchai/mgmt/2018-03-01/batchai/clusters.go b/services/batchai/mgmt/2018-03-01/batchai/clusters.go index 616d80933ddb..fa6bf7f1932f 100644 --- a/services/batchai/mgmt/2018-03-01/batchai/clusters.go +++ b/services/batchai/mgmt/2018-03-01/batchai/clusters.go @@ -302,6 +302,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -388,6 +389,7 @@ func (client ClustersClient) List(ctx context.Context, filter string, selectPara result.clr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.ClustersClient", "List", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -461,6 +463,7 @@ func (client ClustersClient) listNextResults(ctx context.Context, lastResults Cl result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.ClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +529,7 @@ func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGr result.clr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.ClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -600,6 +604,7 @@ func (client ClustersClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.ClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -664,6 +669,7 @@ func (client ClustersClient) ListRemoteLoginInformation(ctx context.Context, res result.rlilr, err = client.ListRemoteLoginInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.ClustersClient", "ListRemoteLoginInformation", resp, "Failure responding to request") + return } if result.rlilr.hasNextLink() && result.rlilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -728,6 +734,7 @@ func (client ClustersClient) listRemoteLoginInformationNextResults(ctx context.C result, err = client.ListRemoteLoginInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.ClustersClient", "listRemoteLoginInformationNextResults", resp, "Failure responding to next results request") + return } return } @@ -792,6 +799,7 @@ func (client ClustersClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.ClustersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batchai/mgmt/2018-03-01/batchai/fileservers.go b/services/batchai/mgmt/2018-03-01/batchai/fileservers.go index f00d19dfbc89..af2b076ceafa 100644 --- a/services/batchai/mgmt/2018-03-01/batchai/fileservers.go +++ b/services/batchai/mgmt/2018-03-01/batchai/fileservers.go @@ -276,6 +276,7 @@ func (client FileServersClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.FileServersClient", "Get", resp, "Failure responding to request") + return } return @@ -363,6 +364,7 @@ func (client FileServersClient) List(ctx context.Context, filter string, selectP result.fslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.FileServersClient", "List", resp, "Failure responding to request") + return } if result.fslr.hasNextLink() && result.fslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -436,6 +438,7 @@ func (client FileServersClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.FileServersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -502,6 +505,7 @@ func (client FileServersClient) ListByResourceGroup(ctx context.Context, resourc result.fslr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.FileServersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.fslr.hasNextLink() && result.fslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -576,6 +580,7 @@ func (client FileServersClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.FileServersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batchai/mgmt/2018-03-01/batchai/jobs.go b/services/batchai/mgmt/2018-03-01/batchai/jobs.go index 6391a4d3b43b..a69069a1f7f5 100644 --- a/services/batchai/mgmt/2018-03-01/batchai/jobs.go +++ b/services/batchai/mgmt/2018-03-01/batchai/jobs.go @@ -292,6 +292,7 @@ func (client JobsClient) Get(ctx context.Context, resourceGroupName string, jobN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.JobsClient", "Get", resp, "Failure responding to request") + return } return @@ -378,6 +379,7 @@ func (client JobsClient) List(ctx context.Context, filter string, selectParamete result.jlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.JobsClient", "List", resp, "Failure responding to request") + return } if result.jlr.hasNextLink() && result.jlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -451,6 +453,7 @@ func (client JobsClient) listNextResults(ctx context.Context, lastResults JobLis result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.JobsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -516,6 +519,7 @@ func (client JobsClient) ListByResourceGroup(ctx context.Context, resourceGroupN result.jlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.JobsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.jlr.hasNextLink() && result.jlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -590,6 +594,7 @@ func (client JobsClient) listByResourceGroupNextResults(ctx context.Context, las result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.JobsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -670,6 +675,7 @@ func (client JobsClient) ListOutputFiles(ctx context.Context, resourceGroupName result.flr, err = client.ListOutputFilesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.JobsClient", "ListOutputFiles", resp, "Failure responding to request") + return } if result.flr.hasNextLink() && result.flr.IsEmpty() { err = result.NextWithContext(ctx) @@ -750,6 +756,7 @@ func (client JobsClient) listOutputFilesNextResults(ctx context.Context, lastRes result, err = client.ListOutputFilesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.JobsClient", "listOutputFilesNextResults", resp, "Failure responding to next results request") + return } return } @@ -815,6 +822,7 @@ func (client JobsClient) ListRemoteLoginInformation(ctx context.Context, resourc result.rlilr, err = client.ListRemoteLoginInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.JobsClient", "ListRemoteLoginInformation", resp, "Failure responding to request") + return } if result.rlilr.hasNextLink() && result.rlilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -879,6 +887,7 @@ func (client JobsClient) listRemoteLoginInformationNextResults(ctx context.Conte result, err = client.ListRemoteLoginInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.JobsClient", "listRemoteLoginInformationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batchai/mgmt/2018-03-01/batchai/operations.go b/services/batchai/mgmt/2018-03-01/batchai/operations.go index 26dd1f7349b3..8e8d1eb846a1 100644 --- a/services/batchai/mgmt/2018-03-01/batchai/operations.go +++ b/services/batchai/mgmt/2018-03-01/batchai/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batchai/mgmt/2018-03-01/batchai/usage.go b/services/batchai/mgmt/2018-03-01/batchai/usage.go index 2955d669f9f3..aa62ba416ed1 100644 --- a/services/batchai/mgmt/2018-03-01/batchai/usage.go +++ b/services/batchai/mgmt/2018-03-01/batchai/usage.go @@ -79,6 +79,7 @@ func (client UsageClient) List(ctx context.Context, location string) (result Lis result.lur, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.UsageClient", "List", resp, "Failure responding to request") + return } if result.lur.hasNextLink() && result.lur.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsageClient) listNextResults(ctx context.Context, lastResults ListU result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.UsageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batchai/mgmt/2018-05-01/batchai/clusters.go b/services/batchai/mgmt/2018-05-01/batchai/clusters.go index 6681a5d3fa50..3b423fd19348 100644 --- a/services/batchai/mgmt/2018-05-01/batchai/clusters.go +++ b/services/batchai/mgmt/2018-05-01/batchai/clusters.go @@ -321,6 +321,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -415,6 +416,7 @@ func (client ClustersClient) ListByWorkspace(ctx context.Context, resourceGroupN result.clr, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.ClustersClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -484,6 +486,7 @@ func (client ClustersClient) listByWorkspaceNextResults(ctx context.Context, las result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.ClustersClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -554,6 +557,7 @@ func (client ClustersClient) ListRemoteLoginInformation(ctx context.Context, res result.rlilr, err = client.ListRemoteLoginInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.ClustersClient", "ListRemoteLoginInformation", resp, "Failure responding to request") + return } if result.rlilr.hasNextLink() && result.rlilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -619,6 +623,7 @@ func (client ClustersClient) listRemoteLoginInformationNextResults(ctx context.C result, err = client.ListRemoteLoginInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.ClustersClient", "listRemoteLoginInformationNextResults", resp, "Failure responding to next results request") + return } return } @@ -689,6 +694,7 @@ func (client ClustersClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.ClustersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/batchai/mgmt/2018-05-01/batchai/experiments.go b/services/batchai/mgmt/2018-05-01/batchai/experiments.go index be4b2e22e6c1..cd4a7f0ab3cf 100644 --- a/services/batchai/mgmt/2018-05-01/batchai/experiments.go +++ b/services/batchai/mgmt/2018-05-01/batchai/experiments.go @@ -275,6 +275,7 @@ func (client ExperimentsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.ExperimentsClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +370,7 @@ func (client ExperimentsClient) ListByWorkspace(ctx context.Context, resourceGro result.elr, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.ExperimentsClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.elr.hasNextLink() && result.elr.IsEmpty() { err = result.NextWithContext(ctx) @@ -438,6 +440,7 @@ func (client ExperimentsClient) listByWorkspaceNextResults(ctx context.Context, result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.ExperimentsClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batchai/mgmt/2018-05-01/batchai/fileservers.go b/services/batchai/mgmt/2018-05-01/batchai/fileservers.go index abd2129737b3..ae74c78401f3 100644 --- a/services/batchai/mgmt/2018-05-01/batchai/fileservers.go +++ b/services/batchai/mgmt/2018-05-01/batchai/fileservers.go @@ -295,6 +295,7 @@ func (client FileServersClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.FileServersClient", "Get", resp, "Failure responding to request") + return } return @@ -389,6 +390,7 @@ func (client FileServersClient) ListByWorkspace(ctx context.Context, resourceGro result.fslr, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.FileServersClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.fslr.hasNextLink() && result.fslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -458,6 +460,7 @@ func (client FileServersClient) listByWorkspaceNextResults(ctx context.Context, result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.FileServersClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batchai/mgmt/2018-05-01/batchai/jobs.go b/services/batchai/mgmt/2018-05-01/batchai/jobs.go index 0a4d677e8efd..f2ad06c505d8 100644 --- a/services/batchai/mgmt/2018-05-01/batchai/jobs.go +++ b/services/batchai/mgmt/2018-05-01/batchai/jobs.go @@ -335,6 +335,7 @@ func (client JobsClient) Get(ctx context.Context, resourceGroupName string, work result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.JobsClient", "Get", resp, "Failure responding to request") + return } return @@ -436,6 +437,7 @@ func (client JobsClient) ListByExperiment(ctx context.Context, resourceGroupName result.jlr, err = client.ListByExperimentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.JobsClient", "ListByExperiment", resp, "Failure responding to request") + return } if result.jlr.hasNextLink() && result.jlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -506,6 +508,7 @@ func (client JobsClient) listByExperimentNextResults(ctx context.Context, lastRe result, err = client.ListByExperimentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.JobsClient", "listByExperimentNextResults", resp, "Failure responding to next results request") + return } return } @@ -598,6 +601,7 @@ func (client JobsClient) ListOutputFiles(ctx context.Context, resourceGroupName result.flr, err = client.ListOutputFilesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.JobsClient", "ListOutputFiles", resp, "Failure responding to request") + return } if result.flr.hasNextLink() && result.flr.IsEmpty() { err = result.NextWithContext(ctx) @@ -680,6 +684,7 @@ func (client JobsClient) listOutputFilesNextResults(ctx context.Context, lastRes result, err = client.ListOutputFilesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.JobsClient", "listOutputFilesNextResults", resp, "Failure responding to next results request") + return } return } @@ -757,6 +762,7 @@ func (client JobsClient) ListRemoteLoginInformation(ctx context.Context, resourc result.rlilr, err = client.ListRemoteLoginInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.JobsClient", "ListRemoteLoginInformation", resp, "Failure responding to request") + return } if result.rlilr.hasNextLink() && result.rlilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -823,6 +829,7 @@ func (client JobsClient) listRemoteLoginInformationNextResults(ctx context.Conte result, err = client.ListRemoteLoginInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.JobsClient", "listRemoteLoginInformationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batchai/mgmt/2018-05-01/batchai/operations.go b/services/batchai/mgmt/2018-05-01/batchai/operations.go index e90e94ef8c65..7743d6e9f07a 100644 --- a/services/batchai/mgmt/2018-05-01/batchai/operations.go +++ b/services/batchai/mgmt/2018-05-01/batchai/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batchai/mgmt/2018-05-01/batchai/usages.go b/services/batchai/mgmt/2018-05-01/batchai/usages.go index 585c162d4903..88b68faccdf8 100644 --- a/services/batchai/mgmt/2018-05-01/batchai/usages.go +++ b/services/batchai/mgmt/2018-05-01/batchai/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Li result.lur, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.UsagesClient", "List", resp, "Failure responding to request") + return } if result.lur.hasNextLink() && result.lur.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults List result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/batchai/mgmt/2018-05-01/batchai/workspaces.go b/services/batchai/mgmt/2018-05-01/batchai/workspaces.go index 9d078194244b..2d82a2d1ad2d 100644 --- a/services/batchai/mgmt/2018-05-01/batchai/workspaces.go +++ b/services/batchai/mgmt/2018-05-01/batchai/workspaces.go @@ -260,6 +260,7 @@ func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.WorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +345,7 @@ func (client WorkspacesClient) List(ctx context.Context, maxResults *int32) (res result.wlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.WorkspacesClient", "List", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -411,6 +413,7 @@ func (client WorkspacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.WorkspacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -474,6 +477,7 @@ func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resource result.wlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.WorkspacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -542,6 +546,7 @@ func (client WorkspacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.WorkspacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -605,6 +610,7 @@ func (client WorkspacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.WorkspacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2015-06-01/cdn/customdomains.go b/services/cdn/mgmt/2015-06-01/cdn/customdomains.go index 1364f3a9fff5..6300026b1161 100644 --- a/services/cdn/mgmt/2015-06-01/cdn/customdomains.go +++ b/services/cdn/mgmt/2015-06-01/cdn/customdomains.go @@ -243,6 +243,7 @@ func (client CustomDomainsClient) Get(ctx context.Context, customDomainName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client CustomDomainsClient) ListByEndpoint(ctx context.Context, endpointNa result, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "ListByEndpoint", resp, "Failure responding to request") + return } return @@ -400,6 +402,7 @@ func (client CustomDomainsClient) Update(ctx context.Context, customDomainName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2015-06-01/cdn/endpoints.go b/services/cdn/mgmt/2015-06-01/cdn/endpoints.go index 470baf339026..bf5e76e3b5a8 100644 --- a/services/cdn/mgmt/2015-06-01/cdn/endpoints.go +++ b/services/cdn/mgmt/2015-06-01/cdn/endpoints.go @@ -238,6 +238,7 @@ func (client EndpointsClient) Get(ctx context.Context, endpointName string, prof result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client EndpointsClient) ListByProfile(ctx context.Context, profileName str result, err = client.ListByProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ListByProfile", resp, "Failure responding to request") + return } return @@ -801,6 +803,7 @@ func (client EndpointsClient) ValidateCustomDomain(ctx context.Context, endpoint result, err = client.ValidateCustomDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ValidateCustomDomain", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2015-06-01/cdn/nameavailability.go b/services/cdn/mgmt/2015-06-01/cdn/nameavailability.go index 046fe581d461..df00835b4018 100644 --- a/services/cdn/mgmt/2015-06-01/cdn/nameavailability.go +++ b/services/cdn/mgmt/2015-06-01/cdn/nameavailability.go @@ -80,6 +80,7 @@ func (client NameAvailabilityClient) CheckNameAvailability(ctx context.Context, result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.NameAvailabilityClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2015-06-01/cdn/operations.go b/services/cdn/mgmt/2015-06-01/cdn/operations.go index 87d503ee737f..d2fe3350cd13 100644 --- a/services/cdn/mgmt/2015-06-01/cdn/operations.go +++ b/services/cdn/mgmt/2015-06-01/cdn/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2015-06-01/cdn/origins.go b/services/cdn/mgmt/2015-06-01/cdn/origins.go index 11500334daa2..9433cd37a0be 100644 --- a/services/cdn/mgmt/2015-06-01/cdn/origins.go +++ b/services/cdn/mgmt/2015-06-01/cdn/origins.go @@ -243,6 +243,7 @@ func (client OriginsClient) Get(ctx context.Context, originName string, endpoint result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client OriginsClient) ListByEndpoint(ctx context.Context, endpointName str result, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "ListByEndpoint", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2015-06-01/cdn/profiles.go b/services/cdn/mgmt/2015-06-01/cdn/profiles.go index cf572bda8011..b056b5343b25 100644 --- a/services/cdn/mgmt/2015-06-01/cdn/profiles.go +++ b/services/cdn/mgmt/2015-06-01/cdn/profiles.go @@ -233,6 +233,7 @@ func (client ProfilesClient) GenerateSsoURI(ctx context.Context, profileName str result, err = client.GenerateSsoURIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "GenerateSsoURI", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client ProfilesClient) Get(ctx context.Context, profileName string, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -382,6 +384,7 @@ func (client ProfilesClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ProfilesClient) ListBySubscriptionID(ctx context.Context) (result P result, err = client.ListBySubscriptionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListBySubscriptionID", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2016-04-02/cdn/customdomains.go b/services/cdn/mgmt/2016-04-02/cdn/customdomains.go index 8ab8f829e112..b300adec8c4a 100644 --- a/services/cdn/mgmt/2016-04-02/cdn/customdomains.go +++ b/services/cdn/mgmt/2016-04-02/cdn/customdomains.go @@ -243,6 +243,7 @@ func (client CustomDomainsClient) Get(ctx context.Context, customDomainName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client CustomDomainsClient) ListByEndpoint(ctx context.Context, endpointNa result, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "ListByEndpoint", resp, "Failure responding to request") + return } return @@ -400,6 +402,7 @@ func (client CustomDomainsClient) Update(ctx context.Context, customDomainName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2016-04-02/cdn/endpoints.go b/services/cdn/mgmt/2016-04-02/cdn/endpoints.go index b3ea9ccbfabe..b3d9e0a16eb1 100644 --- a/services/cdn/mgmt/2016-04-02/cdn/endpoints.go +++ b/services/cdn/mgmt/2016-04-02/cdn/endpoints.go @@ -238,6 +238,7 @@ func (client EndpointsClient) Get(ctx context.Context, endpointName string, prof result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client EndpointsClient) ListByProfile(ctx context.Context, profileName str result, err = client.ListByProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ListByProfile", resp, "Failure responding to request") + return } return @@ -801,6 +803,7 @@ func (client EndpointsClient) ValidateCustomDomain(ctx context.Context, endpoint result, err = client.ValidateCustomDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ValidateCustomDomain", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2016-04-02/cdn/nameavailability.go b/services/cdn/mgmt/2016-04-02/cdn/nameavailability.go index 6965b5a7e3c7..930d089e9cf2 100644 --- a/services/cdn/mgmt/2016-04-02/cdn/nameavailability.go +++ b/services/cdn/mgmt/2016-04-02/cdn/nameavailability.go @@ -80,6 +80,7 @@ func (client NameAvailabilityClient) CheckNameAvailability(ctx context.Context, result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.NameAvailabilityClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2016-04-02/cdn/operations.go b/services/cdn/mgmt/2016-04-02/cdn/operations.go index 7ab45a727203..10a7705e518a 100644 --- a/services/cdn/mgmt/2016-04-02/cdn/operations.go +++ b/services/cdn/mgmt/2016-04-02/cdn/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2016-04-02/cdn/origins.go b/services/cdn/mgmt/2016-04-02/cdn/origins.go index 4ac74747e5fb..1b0b3fe50e0c 100644 --- a/services/cdn/mgmt/2016-04-02/cdn/origins.go +++ b/services/cdn/mgmt/2016-04-02/cdn/origins.go @@ -243,6 +243,7 @@ func (client OriginsClient) Get(ctx context.Context, originName string, endpoint result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client OriginsClient) ListByEndpoint(ctx context.Context, endpointName str result, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "ListByEndpoint", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2016-04-02/cdn/profiles.go b/services/cdn/mgmt/2016-04-02/cdn/profiles.go index b96cc3055155..cd0c0cac1b07 100644 --- a/services/cdn/mgmt/2016-04-02/cdn/profiles.go +++ b/services/cdn/mgmt/2016-04-02/cdn/profiles.go @@ -232,6 +232,7 @@ func (client ProfilesClient) GenerateSsoURI(ctx context.Context, profileName str result, err = client.GenerateSsoURIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "GenerateSsoURI", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client ProfilesClient) Get(ctx context.Context, profileName string, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -381,6 +383,7 @@ func (client ProfilesClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -452,6 +455,7 @@ func (client ProfilesClient) ListBySubscriptionID(ctx context.Context) (result P result, err = client.ListBySubscriptionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListBySubscriptionID", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2016-10-02/cdn/client.go b/services/cdn/mgmt/2016-10-02/cdn/client.go index 14f7738a2722..6a3f9bc03576 100644 --- a/services/cdn/mgmt/2016-10-02/cdn/client.go +++ b/services/cdn/mgmt/2016-10-02/cdn/client.go @@ -94,6 +94,7 @@ func (client BaseClient) CheckNameAvailability(ctx context.Context, checkNameAva result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.BaseClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client BaseClient) ListOperations(ctx context.Context) (result OperationLi result.olr, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.BaseClient", "ListOperations", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -221,6 +223,7 @@ func (client BaseClient) listOperationsNextResults(ctx context.Context, lastResu result, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.BaseClient", "listOperationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -270,6 +273,7 @@ func (client BaseClient) ListResourceUsage(ctx context.Context) (result Resource result.rulr, err = client.ListResourceUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.BaseClient", "ListResourceUsage", resp, "Failure responding to request") + return } if result.rulr.hasNextLink() && result.rulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -332,6 +336,7 @@ func (client BaseClient) listResourceUsageNextResults(ctx context.Context, lastR result, err = client.ListResourceUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.BaseClient", "listResourceUsageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2016-10-02/cdn/customdomains.go b/services/cdn/mgmt/2016-10-02/cdn/customdomains.go index 84f8812172ea..35a2fc1c03ff 100644 --- a/services/cdn/mgmt/2016-10-02/cdn/customdomains.go +++ b/services/cdn/mgmt/2016-10-02/cdn/customdomains.go @@ -263,6 +263,7 @@ func (client CustomDomainsClient) DisableCustomHTTPS(ctx context.Context, resour result, err = client.DisableCustomHTTPSResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "DisableCustomHTTPS", resp, "Failure responding to request") + return } return @@ -350,6 +351,7 @@ func (client CustomDomainsClient) EnableCustomHTTPS(ctx context.Context, resourc result, err = client.EnableCustomHTTPSResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "EnableCustomHTTPS", resp, "Failure responding to request") + return } return @@ -437,6 +439,7 @@ func (client CustomDomainsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "Get", resp, "Failure responding to request") + return } return @@ -524,6 +527,7 @@ func (client CustomDomainsClient) ListByEndpoint(ctx context.Context, resourceGr result.cdlr, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "ListByEndpoint", resp, "Failure responding to request") + return } if result.cdlr.hasNextLink() && result.cdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -589,6 +593,7 @@ func (client CustomDomainsClient) listByEndpointNextResults(ctx context.Context, result, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "listByEndpointNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2016-10-02/cdn/edgenodes.go b/services/cdn/mgmt/2016-10-02/cdn/edgenodes.go index e5ddebd3ec9d..cb9f1690eefb 100644 --- a/services/cdn/mgmt/2016-10-02/cdn/edgenodes.go +++ b/services/cdn/mgmt/2016-10-02/cdn/edgenodes.go @@ -70,6 +70,7 @@ func (client EdgeNodesClient) List(ctx context.Context) (result EdgenodeResultPa result.er, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EdgeNodesClient", "List", resp, "Failure responding to request") + return } if result.er.hasNextLink() && result.er.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client EdgeNodesClient) listNextResults(ctx context.Context, lastResults E result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EdgeNodesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2016-10-02/cdn/endpoints.go b/services/cdn/mgmt/2016-10-02/cdn/endpoints.go index fea0362ea17b..74bd84536006 100644 --- a/services/cdn/mgmt/2016-10-02/cdn/endpoints.go +++ b/services/cdn/mgmt/2016-10-02/cdn/endpoints.go @@ -260,6 +260,7 @@ func (client EndpointsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +346,7 @@ func (client EndpointsClient) ListByProfile(ctx context.Context, resourceGroupNa result.elr, err = client.ListByProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ListByProfile", resp, "Failure responding to request") + return } if result.elr.hasNextLink() && result.elr.IsEmpty() { err = result.NextWithContext(ctx) @@ -409,6 +411,7 @@ func (client EndpointsClient) listByProfileNextResults(ctx context.Context, last result, err = client.ListByProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "listByProfileNextResults", resp, "Failure responding to next results request") + return } return } @@ -470,6 +473,7 @@ func (client EndpointsClient) ListResourceUsage(ctx context.Context, resourceGro result.rulr, err = client.ListResourceUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ListResourceUsage", resp, "Failure responding to request") + return } if result.rulr.hasNextLink() && result.rulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -535,6 +539,7 @@ func (client EndpointsClient) listResourceUsageNextResults(ctx context.Context, result, err = client.ListResourceUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "listResourceUsageNextResults", resp, "Failure responding to next results request") + return } return } @@ -1039,6 +1044,7 @@ func (client EndpointsClient) ValidateCustomDomain(ctx context.Context, resource result, err = client.ValidateCustomDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ValidateCustomDomain", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2016-10-02/cdn/origins.go b/services/cdn/mgmt/2016-10-02/cdn/origins.go index 1a3cd35341db..cf14c0664e47 100644 --- a/services/cdn/mgmt/2016-10-02/cdn/origins.go +++ b/services/cdn/mgmt/2016-10-02/cdn/origins.go @@ -83,6 +83,7 @@ func (client OriginsClient) Get(ctx context.Context, resourceGroupName string, p result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "Get", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client OriginsClient) ListByEndpoint(ctx context.Context, resourceGroupNam result.olr, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "ListByEndpoint", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -235,6 +237,7 @@ func (client OriginsClient) listByEndpointNextResults(ctx context.Context, lastR result, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "listByEndpointNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2016-10-02/cdn/profiles.go b/services/cdn/mgmt/2016-10-02/cdn/profiles.go index 2480913dd058..b2d1b26beb4d 100644 --- a/services/cdn/mgmt/2016-10-02/cdn/profiles.go +++ b/services/cdn/mgmt/2016-10-02/cdn/profiles.go @@ -255,6 +255,7 @@ func (client ProfilesClient) GenerateSsoURI(ctx context.Context, resourceGroupNa result, err = client.GenerateSsoURIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "GenerateSsoURI", resp, "Failure responding to request") + return } return @@ -338,6 +339,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -422,6 +424,7 @@ func (client ProfilesClient) GetSupportedOptimizationTypes(ctx context.Context, result, err = client.GetSupportedOptimizationTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "GetSupportedOptimizationTypes", resp, "Failure responding to request") + return } return @@ -495,6 +498,7 @@ func (client ProfilesClient) List(ctx context.Context) (result ProfileListResult result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -557,6 +561,7 @@ func (client ProfilesClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -616,6 +621,7 @@ func (client ProfilesClient) ListByResourceGroup(ctx context.Context, resourceGr result.plr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -679,6 +685,7 @@ func (client ProfilesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -739,6 +746,7 @@ func (client ProfilesClient) ListResourceUsage(ctx context.Context, resourceGrou result.rulr, err = client.ListResourceUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListResourceUsage", resp, "Failure responding to request") + return } if result.rulr.hasNextLink() && result.rulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -803,6 +811,7 @@ func (client ProfilesClient) listResourceUsageNextResults(ctx context.Context, l result, err = client.ListResourceUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listResourceUsageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2017-04-02/cdn/client.go b/services/cdn/mgmt/2017-04-02/cdn/client.go index e21a3d95a143..2f4f3532a5d8 100644 --- a/services/cdn/mgmt/2017-04-02/cdn/client.go +++ b/services/cdn/mgmt/2017-04-02/cdn/client.go @@ -94,6 +94,7 @@ func (client BaseClient) CheckNameAvailability(ctx context.Context, checkNameAva result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.BaseClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client BaseClient) ValidateProbe(ctx context.Context, validateProbeInput V result, err = client.ValidateProbeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.BaseClient", "ValidateProbe", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2017-04-02/cdn/customdomains.go b/services/cdn/mgmt/2017-04-02/cdn/customdomains.go index 9fb6a825efaa..9b662a80c1ca 100644 --- a/services/cdn/mgmt/2017-04-02/cdn/customdomains.go +++ b/services/cdn/mgmt/2017-04-02/cdn/customdomains.go @@ -263,6 +263,7 @@ func (client CustomDomainsClient) DisableCustomHTTPS(ctx context.Context, resour result, err = client.DisableCustomHTTPSResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "DisableCustomHTTPS", resp, "Failure responding to request") + return } return @@ -350,6 +351,7 @@ func (client CustomDomainsClient) EnableCustomHTTPS(ctx context.Context, resourc result, err = client.EnableCustomHTTPSResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "EnableCustomHTTPS", resp, "Failure responding to request") + return } return @@ -437,6 +439,7 @@ func (client CustomDomainsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "Get", resp, "Failure responding to request") + return } return @@ -524,6 +527,7 @@ func (client CustomDomainsClient) ListByEndpoint(ctx context.Context, resourceGr result.cdlr, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "ListByEndpoint", resp, "Failure responding to request") + return } if result.cdlr.hasNextLink() && result.cdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -589,6 +593,7 @@ func (client CustomDomainsClient) listByEndpointNextResults(ctx context.Context, result, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "listByEndpointNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2017-04-02/cdn/edgenodes.go b/services/cdn/mgmt/2017-04-02/cdn/edgenodes.go index 5e5988bc5d87..5583051c4891 100644 --- a/services/cdn/mgmt/2017-04-02/cdn/edgenodes.go +++ b/services/cdn/mgmt/2017-04-02/cdn/edgenodes.go @@ -70,6 +70,7 @@ func (client EdgeNodesClient) List(ctx context.Context) (result EdgenodeResultPa result.er, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EdgeNodesClient", "List", resp, "Failure responding to request") + return } if result.er.hasNextLink() && result.er.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client EdgeNodesClient) listNextResults(ctx context.Context, lastResults E result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EdgeNodesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2017-04-02/cdn/endpoints.go b/services/cdn/mgmt/2017-04-02/cdn/endpoints.go index 0801fdfb88df..603b8ade9fc0 100644 --- a/services/cdn/mgmt/2017-04-02/cdn/endpoints.go +++ b/services/cdn/mgmt/2017-04-02/cdn/endpoints.go @@ -260,6 +260,7 @@ func (client EndpointsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +346,7 @@ func (client EndpointsClient) ListByProfile(ctx context.Context, resourceGroupNa result.elr, err = client.ListByProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ListByProfile", resp, "Failure responding to request") + return } if result.elr.hasNextLink() && result.elr.IsEmpty() { err = result.NextWithContext(ctx) @@ -409,6 +411,7 @@ func (client EndpointsClient) listByProfileNextResults(ctx context.Context, last result, err = client.ListByProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "listByProfileNextResults", resp, "Failure responding to next results request") + return } return } @@ -470,6 +473,7 @@ func (client EndpointsClient) ListResourceUsage(ctx context.Context, resourceGro result.rulr, err = client.ListResourceUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ListResourceUsage", resp, "Failure responding to request") + return } if result.rulr.hasNextLink() && result.rulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -535,6 +539,7 @@ func (client EndpointsClient) listResourceUsageNextResults(ctx context.Context, result, err = client.ListResourceUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "listResourceUsageNextResults", resp, "Failure responding to next results request") + return } return } @@ -1039,6 +1044,7 @@ func (client EndpointsClient) ValidateCustomDomain(ctx context.Context, resource result, err = client.ValidateCustomDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ValidateCustomDomain", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2017-04-02/cdn/operations.go b/services/cdn/mgmt/2017-04-02/cdn/operations.go index 851a7ccb32d4..7c6acc91aa2a 100644 --- a/services/cdn/mgmt/2017-04-02/cdn/operations.go +++ b/services/cdn/mgmt/2017-04-02/cdn/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListR result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2017-04-02/cdn/origins.go b/services/cdn/mgmt/2017-04-02/cdn/origins.go index 1c7dffc371b0..c76293b3373a 100644 --- a/services/cdn/mgmt/2017-04-02/cdn/origins.go +++ b/services/cdn/mgmt/2017-04-02/cdn/origins.go @@ -83,6 +83,7 @@ func (client OriginsClient) Get(ctx context.Context, resourceGroupName string, p result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "Get", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client OriginsClient) ListByEndpoint(ctx context.Context, resourceGroupNam result.olr, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "ListByEndpoint", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -235,6 +237,7 @@ func (client OriginsClient) listByEndpointNextResults(ctx context.Context, lastR result, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "listByEndpointNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2017-04-02/cdn/profiles.go b/services/cdn/mgmt/2017-04-02/cdn/profiles.go index fcd50028ec9f..6ae730840398 100644 --- a/services/cdn/mgmt/2017-04-02/cdn/profiles.go +++ b/services/cdn/mgmt/2017-04-02/cdn/profiles.go @@ -255,6 +255,7 @@ func (client ProfilesClient) GenerateSsoURI(ctx context.Context, resourceGroupNa result, err = client.GenerateSsoURIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "GenerateSsoURI", resp, "Failure responding to request") + return } return @@ -338,6 +339,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -411,6 +413,7 @@ func (client ProfilesClient) List(ctx context.Context) (result ProfileListResult result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -473,6 +476,7 @@ func (client ProfilesClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -532,6 +536,7 @@ func (client ProfilesClient) ListByResourceGroup(ctx context.Context, resourceGr result.plr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -595,6 +600,7 @@ func (client ProfilesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -655,6 +661,7 @@ func (client ProfilesClient) ListResourceUsage(ctx context.Context, resourceGrou result.rulr, err = client.ListResourceUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListResourceUsage", resp, "Failure responding to request") + return } if result.rulr.hasNextLink() && result.rulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -719,6 +726,7 @@ func (client ProfilesClient) listResourceUsageNextResults(ctx context.Context, l result, err = client.ListResourceUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listResourceUsageNextResults", resp, "Failure responding to next results request") + return } return } @@ -779,6 +787,7 @@ func (client ProfilesClient) ListSupportedOptimizationTypes(ctx context.Context, result, err = client.ListSupportedOptimizationTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListSupportedOptimizationTypes", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2017-04-02/cdn/resourceusage.go b/services/cdn/mgmt/2017-04-02/cdn/resourceusage.go index 252e08879f17..4f7bf494f17c 100644 --- a/services/cdn/mgmt/2017-04-02/cdn/resourceusage.go +++ b/services/cdn/mgmt/2017-04-02/cdn/resourceusage.go @@ -70,6 +70,7 @@ func (client ResourceUsageClient) List(ctx context.Context) (result ResourceUsag result.rulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ResourceUsageClient", "List", resp, "Failure responding to request") + return } if result.rulr.hasNextLink() && result.rulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client ResourceUsageClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ResourceUsageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2017-10-12/cdn/client.go b/services/cdn/mgmt/2017-10-12/cdn/client.go index 86fa34a32c00..d89e8c946125 100644 --- a/services/cdn/mgmt/2017-10-12/cdn/client.go +++ b/services/cdn/mgmt/2017-10-12/cdn/client.go @@ -94,6 +94,7 @@ func (client BaseClient) CheckNameAvailability(ctx context.Context, checkNameAva result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.BaseClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client BaseClient) CheckNameAvailabilityWithSubscription(ctx context.Conte result, err = client.CheckNameAvailabilityWithSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.BaseClient", "CheckNameAvailabilityWithSubscription", resp, "Failure responding to request") + return } return @@ -254,6 +256,7 @@ func (client BaseClient) ValidateProbe(ctx context.Context, validateProbeInput V result, err = client.ValidateProbeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.BaseClient", "ValidateProbe", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2017-10-12/cdn/customdomains.go b/services/cdn/mgmt/2017-10-12/cdn/customdomains.go index 7bf07161c7e6..daa1d5551556 100644 --- a/services/cdn/mgmt/2017-10-12/cdn/customdomains.go +++ b/services/cdn/mgmt/2017-10-12/cdn/customdomains.go @@ -263,6 +263,7 @@ func (client CustomDomainsClient) DisableCustomHTTPS(ctx context.Context, resour result, err = client.DisableCustomHTTPSResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "DisableCustomHTTPS", resp, "Failure responding to request") + return } return @@ -353,6 +354,7 @@ func (client CustomDomainsClient) EnableCustomHTTPS(ctx context.Context, resourc result, err = client.EnableCustomHTTPSResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "EnableCustomHTTPS", resp, "Failure responding to request") + return } return @@ -445,6 +447,7 @@ func (client CustomDomainsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "Get", resp, "Failure responding to request") + return } return @@ -532,6 +535,7 @@ func (client CustomDomainsClient) ListByEndpoint(ctx context.Context, resourceGr result.cdlr, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "ListByEndpoint", resp, "Failure responding to request") + return } if result.cdlr.hasNextLink() && result.cdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -597,6 +601,7 @@ func (client CustomDomainsClient) listByEndpointNextResults(ctx context.Context, result, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "listByEndpointNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2017-10-12/cdn/edgenodes.go b/services/cdn/mgmt/2017-10-12/cdn/edgenodes.go index 1b554ef1027f..573348b4a560 100644 --- a/services/cdn/mgmt/2017-10-12/cdn/edgenodes.go +++ b/services/cdn/mgmt/2017-10-12/cdn/edgenodes.go @@ -70,6 +70,7 @@ func (client EdgeNodesClient) List(ctx context.Context) (result EdgenodeResultPa result.er, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EdgeNodesClient", "List", resp, "Failure responding to request") + return } if result.er.hasNextLink() && result.er.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client EdgeNodesClient) listNextResults(ctx context.Context, lastResults E result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EdgeNodesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2017-10-12/cdn/endpoints.go b/services/cdn/mgmt/2017-10-12/cdn/endpoints.go index 18d7fdf9efd4..c772fe5ae0ff 100644 --- a/services/cdn/mgmt/2017-10-12/cdn/endpoints.go +++ b/services/cdn/mgmt/2017-10-12/cdn/endpoints.go @@ -260,6 +260,7 @@ func (client EndpointsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +346,7 @@ func (client EndpointsClient) ListByProfile(ctx context.Context, resourceGroupNa result.elr, err = client.ListByProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ListByProfile", resp, "Failure responding to request") + return } if result.elr.hasNextLink() && result.elr.IsEmpty() { err = result.NextWithContext(ctx) @@ -409,6 +411,7 @@ func (client EndpointsClient) listByProfileNextResults(ctx context.Context, last result, err = client.ListByProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "listByProfileNextResults", resp, "Failure responding to next results request") + return } return } @@ -470,6 +473,7 @@ func (client EndpointsClient) ListResourceUsage(ctx context.Context, resourceGro result.rulr, err = client.ListResourceUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ListResourceUsage", resp, "Failure responding to request") + return } if result.rulr.hasNextLink() && result.rulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -535,6 +539,7 @@ func (client EndpointsClient) listResourceUsageNextResults(ctx context.Context, result, err = client.ListResourceUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "listResourceUsageNextResults", resp, "Failure responding to next results request") + return } return } @@ -1039,6 +1044,7 @@ func (client EndpointsClient) ValidateCustomDomain(ctx context.Context, resource result, err = client.ValidateCustomDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ValidateCustomDomain", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2017-10-12/cdn/operations.go b/services/cdn/mgmt/2017-10-12/cdn/operations.go index bbf8bb083055..ac81eb607d96 100644 --- a/services/cdn/mgmt/2017-10-12/cdn/operations.go +++ b/services/cdn/mgmt/2017-10-12/cdn/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListR result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2017-10-12/cdn/origins.go b/services/cdn/mgmt/2017-10-12/cdn/origins.go index b01bc72f79c6..9262dc04f5ec 100644 --- a/services/cdn/mgmt/2017-10-12/cdn/origins.go +++ b/services/cdn/mgmt/2017-10-12/cdn/origins.go @@ -83,6 +83,7 @@ func (client OriginsClient) Get(ctx context.Context, resourceGroupName string, p result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "Get", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client OriginsClient) ListByEndpoint(ctx context.Context, resourceGroupNam result.olr, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "ListByEndpoint", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -235,6 +237,7 @@ func (client OriginsClient) listByEndpointNextResults(ctx context.Context, lastR result, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "listByEndpointNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2017-10-12/cdn/profiles.go b/services/cdn/mgmt/2017-10-12/cdn/profiles.go index de718de8621a..e2dd8d07b126 100644 --- a/services/cdn/mgmt/2017-10-12/cdn/profiles.go +++ b/services/cdn/mgmt/2017-10-12/cdn/profiles.go @@ -255,6 +255,7 @@ func (client ProfilesClient) GenerateSsoURI(ctx context.Context, resourceGroupNa result, err = client.GenerateSsoURIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "GenerateSsoURI", resp, "Failure responding to request") + return } return @@ -338,6 +339,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -411,6 +413,7 @@ func (client ProfilesClient) List(ctx context.Context) (result ProfileListResult result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -473,6 +476,7 @@ func (client ProfilesClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -532,6 +536,7 @@ func (client ProfilesClient) ListByResourceGroup(ctx context.Context, resourceGr result.plr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -595,6 +600,7 @@ func (client ProfilesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -655,6 +661,7 @@ func (client ProfilesClient) ListResourceUsage(ctx context.Context, resourceGrou result.rulr, err = client.ListResourceUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListResourceUsage", resp, "Failure responding to request") + return } if result.rulr.hasNextLink() && result.rulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -719,6 +726,7 @@ func (client ProfilesClient) listResourceUsageNextResults(ctx context.Context, l result, err = client.ListResourceUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listResourceUsageNextResults", resp, "Failure responding to next results request") + return } return } @@ -779,6 +787,7 @@ func (client ProfilesClient) ListSupportedOptimizationTypes(ctx context.Context, result, err = client.ListSupportedOptimizationTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListSupportedOptimizationTypes", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2017-10-12/cdn/resourceusage.go b/services/cdn/mgmt/2017-10-12/cdn/resourceusage.go index 3af752e71298..ac4dc203895a 100644 --- a/services/cdn/mgmt/2017-10-12/cdn/resourceusage.go +++ b/services/cdn/mgmt/2017-10-12/cdn/resourceusage.go @@ -70,6 +70,7 @@ func (client ResourceUsageClient) List(ctx context.Context) (result ResourceUsag result.rulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ResourceUsageClient", "List", resp, "Failure responding to request") + return } if result.rulr.hasNextLink() && result.rulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client ResourceUsageClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ResourceUsageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2019-04-15/cdn/client.go b/services/cdn/mgmt/2019-04-15/cdn/client.go index 8836947591ef..59be38e88ff9 100644 --- a/services/cdn/mgmt/2019-04-15/cdn/client.go +++ b/services/cdn/mgmt/2019-04-15/cdn/client.go @@ -94,6 +94,7 @@ func (client BaseClient) CheckNameAvailability(ctx context.Context, checkNameAva result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.BaseClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client BaseClient) CheckNameAvailabilityWithSubscription(ctx context.Conte result, err = client.CheckNameAvailabilityWithSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.BaseClient", "CheckNameAvailabilityWithSubscription", resp, "Failure responding to request") + return } return @@ -254,6 +256,7 @@ func (client BaseClient) ValidateProbe(ctx context.Context, validateProbeInput V result, err = client.ValidateProbeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.BaseClient", "ValidateProbe", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2019-04-15/cdn/customdomains.go b/services/cdn/mgmt/2019-04-15/cdn/customdomains.go index 694ee07d8f63..a27d8661747b 100644 --- a/services/cdn/mgmt/2019-04-15/cdn/customdomains.go +++ b/services/cdn/mgmt/2019-04-15/cdn/customdomains.go @@ -263,6 +263,7 @@ func (client CustomDomainsClient) DisableCustomHTTPS(ctx context.Context, resour result, err = client.DisableCustomHTTPSResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "DisableCustomHTTPS", resp, "Failure responding to request") + return } return @@ -353,6 +354,7 @@ func (client CustomDomainsClient) EnableCustomHTTPS(ctx context.Context, resourc result, err = client.EnableCustomHTTPSResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "EnableCustomHTTPS", resp, "Failure responding to request") + return } return @@ -445,6 +447,7 @@ func (client CustomDomainsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "Get", resp, "Failure responding to request") + return } return @@ -532,6 +535,7 @@ func (client CustomDomainsClient) ListByEndpoint(ctx context.Context, resourceGr result.cdlr, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "ListByEndpoint", resp, "Failure responding to request") + return } if result.cdlr.hasNextLink() && result.cdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -597,6 +601,7 @@ func (client CustomDomainsClient) listByEndpointNextResults(ctx context.Context, result, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "listByEndpointNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2019-04-15/cdn/edgenodes.go b/services/cdn/mgmt/2019-04-15/cdn/edgenodes.go index 8696962279d7..1650a3d78e5b 100644 --- a/services/cdn/mgmt/2019-04-15/cdn/edgenodes.go +++ b/services/cdn/mgmt/2019-04-15/cdn/edgenodes.go @@ -70,6 +70,7 @@ func (client EdgeNodesClient) List(ctx context.Context) (result EdgenodeResultPa result.er, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EdgeNodesClient", "List", resp, "Failure responding to request") + return } if result.er.hasNextLink() && result.er.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client EdgeNodesClient) listNextResults(ctx context.Context, lastResults E result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EdgeNodesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2019-04-15/cdn/endpoints.go b/services/cdn/mgmt/2019-04-15/cdn/endpoints.go index f160031a21f2..235ac86c8166 100644 --- a/services/cdn/mgmt/2019-04-15/cdn/endpoints.go +++ b/services/cdn/mgmt/2019-04-15/cdn/endpoints.go @@ -260,6 +260,7 @@ func (client EndpointsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +346,7 @@ func (client EndpointsClient) ListByProfile(ctx context.Context, resourceGroupNa result.elr, err = client.ListByProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ListByProfile", resp, "Failure responding to request") + return } if result.elr.hasNextLink() && result.elr.IsEmpty() { err = result.NextWithContext(ctx) @@ -409,6 +411,7 @@ func (client EndpointsClient) listByProfileNextResults(ctx context.Context, last result, err = client.ListByProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "listByProfileNextResults", resp, "Failure responding to next results request") + return } return } @@ -470,6 +473,7 @@ func (client EndpointsClient) ListResourceUsage(ctx context.Context, resourceGro result.rulr, err = client.ListResourceUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ListResourceUsage", resp, "Failure responding to request") + return } if result.rulr.hasNextLink() && result.rulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -535,6 +539,7 @@ func (client EndpointsClient) listResourceUsageNextResults(ctx context.Context, result, err = client.ListResourceUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "listResourceUsageNextResults", resp, "Failure responding to next results request") + return } return } @@ -1039,6 +1044,7 @@ func (client EndpointsClient) ValidateCustomDomain(ctx context.Context, resource result, err = client.ValidateCustomDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ValidateCustomDomain", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2019-04-15/cdn/operations.go b/services/cdn/mgmt/2019-04-15/cdn/operations.go index 2c029179988b..7d793150d373 100644 --- a/services/cdn/mgmt/2019-04-15/cdn/operations.go +++ b/services/cdn/mgmt/2019-04-15/cdn/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListR result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2019-04-15/cdn/origins.go b/services/cdn/mgmt/2019-04-15/cdn/origins.go index bb95de87eca4..f6482437660c 100644 --- a/services/cdn/mgmt/2019-04-15/cdn/origins.go +++ b/services/cdn/mgmt/2019-04-15/cdn/origins.go @@ -83,6 +83,7 @@ func (client OriginsClient) Get(ctx context.Context, resourceGroupName string, p result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "Get", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client OriginsClient) ListByEndpoint(ctx context.Context, resourceGroupNam result.olr, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "ListByEndpoint", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -235,6 +237,7 @@ func (client OriginsClient) listByEndpointNextResults(ctx context.Context, lastR result, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "listByEndpointNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2019-04-15/cdn/profiles.go b/services/cdn/mgmt/2019-04-15/cdn/profiles.go index e988847041f1..0765d9b29adb 100644 --- a/services/cdn/mgmt/2019-04-15/cdn/profiles.go +++ b/services/cdn/mgmt/2019-04-15/cdn/profiles.go @@ -255,6 +255,7 @@ func (client ProfilesClient) GenerateSsoURI(ctx context.Context, resourceGroupNa result, err = client.GenerateSsoURIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "GenerateSsoURI", resp, "Failure responding to request") + return } return @@ -338,6 +339,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -411,6 +413,7 @@ func (client ProfilesClient) List(ctx context.Context) (result ProfileListResult result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -473,6 +476,7 @@ func (client ProfilesClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -532,6 +536,7 @@ func (client ProfilesClient) ListByResourceGroup(ctx context.Context, resourceGr result.plr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -595,6 +600,7 @@ func (client ProfilesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -655,6 +661,7 @@ func (client ProfilesClient) ListResourceUsage(ctx context.Context, resourceGrou result.rulr, err = client.ListResourceUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListResourceUsage", resp, "Failure responding to request") + return } if result.rulr.hasNextLink() && result.rulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -719,6 +726,7 @@ func (client ProfilesClient) listResourceUsageNextResults(ctx context.Context, l result, err = client.ListResourceUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listResourceUsageNextResults", resp, "Failure responding to next results request") + return } return } @@ -779,6 +787,7 @@ func (client ProfilesClient) ListSupportedOptimizationTypes(ctx context.Context, result, err = client.ListSupportedOptimizationTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListSupportedOptimizationTypes", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2019-04-15/cdn/resourceusage.go b/services/cdn/mgmt/2019-04-15/cdn/resourceusage.go index ce6b3debab4e..e319a4868716 100644 --- a/services/cdn/mgmt/2019-04-15/cdn/resourceusage.go +++ b/services/cdn/mgmt/2019-04-15/cdn/resourceusage.go @@ -70,6 +70,7 @@ func (client ResourceUsageClient) List(ctx context.Context) (result ResourceUsag result.rulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ResourceUsageClient", "List", resp, "Failure responding to request") + return } if result.rulr.hasNextLink() && result.rulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client ResourceUsageClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ResourceUsageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2019-06-15/cdn/client.go b/services/cdn/mgmt/2019-06-15/cdn/client.go index c04debe439b7..c233c37024a0 100644 --- a/services/cdn/mgmt/2019-06-15/cdn/client.go +++ b/services/cdn/mgmt/2019-06-15/cdn/client.go @@ -94,6 +94,7 @@ func (client BaseClient) CheckNameAvailability(ctx context.Context, checkNameAva result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.BaseClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client BaseClient) CheckNameAvailabilityWithSubscription(ctx context.Conte result, err = client.CheckNameAvailabilityWithSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.BaseClient", "CheckNameAvailabilityWithSubscription", resp, "Failure responding to request") + return } return @@ -254,6 +256,7 @@ func (client BaseClient) ValidateProbe(ctx context.Context, validateProbeInput V result, err = client.ValidateProbeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.BaseClient", "ValidateProbe", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2019-06-15/cdn/customdomains.go b/services/cdn/mgmt/2019-06-15/cdn/customdomains.go index 6184154161d1..e6fc62596e66 100644 --- a/services/cdn/mgmt/2019-06-15/cdn/customdomains.go +++ b/services/cdn/mgmt/2019-06-15/cdn/customdomains.go @@ -263,6 +263,7 @@ func (client CustomDomainsClient) DisableCustomHTTPS(ctx context.Context, resour result, err = client.DisableCustomHTTPSResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "DisableCustomHTTPS", resp, "Failure responding to request") + return } return @@ -353,6 +354,7 @@ func (client CustomDomainsClient) EnableCustomHTTPS(ctx context.Context, resourc result, err = client.EnableCustomHTTPSResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "EnableCustomHTTPS", resp, "Failure responding to request") + return } return @@ -445,6 +447,7 @@ func (client CustomDomainsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "Get", resp, "Failure responding to request") + return } return @@ -532,6 +535,7 @@ func (client CustomDomainsClient) ListByEndpoint(ctx context.Context, resourceGr result.cdlr, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "ListByEndpoint", resp, "Failure responding to request") + return } if result.cdlr.hasNextLink() && result.cdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -597,6 +601,7 @@ func (client CustomDomainsClient) listByEndpointNextResults(ctx context.Context, result, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "listByEndpointNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2019-06-15/cdn/edgenodes.go b/services/cdn/mgmt/2019-06-15/cdn/edgenodes.go index 4501575a6def..e6f23e360452 100644 --- a/services/cdn/mgmt/2019-06-15/cdn/edgenodes.go +++ b/services/cdn/mgmt/2019-06-15/cdn/edgenodes.go @@ -70,6 +70,7 @@ func (client EdgeNodesClient) List(ctx context.Context) (result EdgenodeResultPa result.er, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EdgeNodesClient", "List", resp, "Failure responding to request") + return } if result.er.hasNextLink() && result.er.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client EdgeNodesClient) listNextResults(ctx context.Context, lastResults E result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EdgeNodesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2019-06-15/cdn/endpoints.go b/services/cdn/mgmt/2019-06-15/cdn/endpoints.go index 769a8e8fe8ba..fe1ed180a62c 100644 --- a/services/cdn/mgmt/2019-06-15/cdn/endpoints.go +++ b/services/cdn/mgmt/2019-06-15/cdn/endpoints.go @@ -260,6 +260,7 @@ func (client EndpointsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +346,7 @@ func (client EndpointsClient) ListByProfile(ctx context.Context, resourceGroupNa result.elr, err = client.ListByProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ListByProfile", resp, "Failure responding to request") + return } if result.elr.hasNextLink() && result.elr.IsEmpty() { err = result.NextWithContext(ctx) @@ -409,6 +411,7 @@ func (client EndpointsClient) listByProfileNextResults(ctx context.Context, last result, err = client.ListByProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "listByProfileNextResults", resp, "Failure responding to next results request") + return } return } @@ -470,6 +473,7 @@ func (client EndpointsClient) ListResourceUsage(ctx context.Context, resourceGro result.rulr, err = client.ListResourceUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ListResourceUsage", resp, "Failure responding to request") + return } if result.rulr.hasNextLink() && result.rulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -535,6 +539,7 @@ func (client EndpointsClient) listResourceUsageNextResults(ctx context.Context, result, err = client.ListResourceUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "listResourceUsageNextResults", resp, "Failure responding to next results request") + return } return } @@ -1039,6 +1044,7 @@ func (client EndpointsClient) ValidateCustomDomain(ctx context.Context, resource result, err = client.ValidateCustomDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ValidateCustomDomain", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2019-06-15/cdn/managedrulesets.go b/services/cdn/mgmt/2019-06-15/cdn/managedrulesets.go index 63e12dfc39cc..3f09372c6101 100644 --- a/services/cdn/mgmt/2019-06-15/cdn/managedrulesets.go +++ b/services/cdn/mgmt/2019-06-15/cdn/managedrulesets.go @@ -70,6 +70,7 @@ func (client ManagedRuleSetsClient) List(ctx context.Context) (result ManagedRul result.mrsdl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ManagedRuleSetsClient", "List", resp, "Failure responding to request") + return } if result.mrsdl.hasNextLink() && result.mrsdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client ManagedRuleSetsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ManagedRuleSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2019-06-15/cdn/operations.go b/services/cdn/mgmt/2019-06-15/cdn/operations.go index c0575ccbbff0..018a1b24d939 100644 --- a/services/cdn/mgmt/2019-06-15/cdn/operations.go +++ b/services/cdn/mgmt/2019-06-15/cdn/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListR result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2019-06-15/cdn/origins.go b/services/cdn/mgmt/2019-06-15/cdn/origins.go index 908b43940995..27011022fd3d 100644 --- a/services/cdn/mgmt/2019-06-15/cdn/origins.go +++ b/services/cdn/mgmt/2019-06-15/cdn/origins.go @@ -83,6 +83,7 @@ func (client OriginsClient) Get(ctx context.Context, resourceGroupName string, p result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "Get", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client OriginsClient) ListByEndpoint(ctx context.Context, resourceGroupNam result.olr, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "ListByEndpoint", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -235,6 +237,7 @@ func (client OriginsClient) listByEndpointNextResults(ctx context.Context, lastR result, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "listByEndpointNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2019-06-15/cdn/policies.go b/services/cdn/mgmt/2019-06-15/cdn/policies.go index eb81a026e0e7..fc0593b4be6c 100644 --- a/services/cdn/mgmt/2019-06-15/cdn/policies.go +++ b/services/cdn/mgmt/2019-06-15/cdn/policies.go @@ -179,6 +179,7 @@ func (client PoliciesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.PoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -263,6 +264,7 @@ func (client PoliciesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.PoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +348,7 @@ func (client PoliciesClient) List(ctx context.Context, resourceGroupName string) result.wafpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.PoliciesClient", "List", resp, "Failure responding to request") + return } if result.wafpl.hasNextLink() && result.wafpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -409,6 +412,7 @@ func (client PoliciesClient) listNextResults(ctx context.Context, lastResults We result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.PoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2019-06-15/cdn/profiles.go b/services/cdn/mgmt/2019-06-15/cdn/profiles.go index 25265157bd1e..6de795dcee6b 100644 --- a/services/cdn/mgmt/2019-06-15/cdn/profiles.go +++ b/services/cdn/mgmt/2019-06-15/cdn/profiles.go @@ -255,6 +255,7 @@ func (client ProfilesClient) GenerateSsoURI(ctx context.Context, resourceGroupNa result, err = client.GenerateSsoURIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "GenerateSsoURI", resp, "Failure responding to request") + return } return @@ -338,6 +339,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -411,6 +413,7 @@ func (client ProfilesClient) List(ctx context.Context) (result ProfileListResult result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -473,6 +476,7 @@ func (client ProfilesClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -532,6 +536,7 @@ func (client ProfilesClient) ListByResourceGroup(ctx context.Context, resourceGr result.plr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -595,6 +600,7 @@ func (client ProfilesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -655,6 +661,7 @@ func (client ProfilesClient) ListResourceUsage(ctx context.Context, resourceGrou result.rulr, err = client.ListResourceUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListResourceUsage", resp, "Failure responding to request") + return } if result.rulr.hasNextLink() && result.rulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -719,6 +726,7 @@ func (client ProfilesClient) listResourceUsageNextResults(ctx context.Context, l result, err = client.ListResourceUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listResourceUsageNextResults", resp, "Failure responding to next results request") + return } return } @@ -779,6 +787,7 @@ func (client ProfilesClient) ListSupportedOptimizationTypes(ctx context.Context, result, err = client.ListSupportedOptimizationTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListSupportedOptimizationTypes", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2019-06-15/cdn/resourceusage.go b/services/cdn/mgmt/2019-06-15/cdn/resourceusage.go index f89611ebaef7..b782957f92d6 100644 --- a/services/cdn/mgmt/2019-06-15/cdn/resourceusage.go +++ b/services/cdn/mgmt/2019-06-15/cdn/resourceusage.go @@ -70,6 +70,7 @@ func (client ResourceUsageClient) List(ctx context.Context) (result ResourceUsag result.rulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ResourceUsageClient", "List", resp, "Failure responding to request") + return } if result.rulr.hasNextLink() && result.rulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client ResourceUsageClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ResourceUsageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2020-04-15/cdn/client.go b/services/cdn/mgmt/2020-04-15/cdn/client.go index 85d0e84a1329..d38662d81e5a 100644 --- a/services/cdn/mgmt/2020-04-15/cdn/client.go +++ b/services/cdn/mgmt/2020-04-15/cdn/client.go @@ -94,6 +94,7 @@ func (client BaseClient) CheckNameAvailability(ctx context.Context, checkNameAva result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.BaseClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client BaseClient) CheckNameAvailabilityWithSubscription(ctx context.Conte result, err = client.CheckNameAvailabilityWithSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.BaseClient", "CheckNameAvailabilityWithSubscription", resp, "Failure responding to request") + return } return @@ -254,6 +256,7 @@ func (client BaseClient) ValidateProbe(ctx context.Context, validateProbeInput V result, err = client.ValidateProbeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.BaseClient", "ValidateProbe", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2020-04-15/cdn/customdomains.go b/services/cdn/mgmt/2020-04-15/cdn/customdomains.go index a8b558dbc74a..d6ff83d344a5 100644 --- a/services/cdn/mgmt/2020-04-15/cdn/customdomains.go +++ b/services/cdn/mgmt/2020-04-15/cdn/customdomains.go @@ -263,6 +263,7 @@ func (client CustomDomainsClient) DisableCustomHTTPS(ctx context.Context, resour result, err = client.DisableCustomHTTPSResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "DisableCustomHTTPS", resp, "Failure responding to request") + return } return @@ -353,6 +354,7 @@ func (client CustomDomainsClient) EnableCustomHTTPS(ctx context.Context, resourc result, err = client.EnableCustomHTTPSResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "EnableCustomHTTPS", resp, "Failure responding to request") + return } return @@ -445,6 +447,7 @@ func (client CustomDomainsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "Get", resp, "Failure responding to request") + return } return @@ -532,6 +535,7 @@ func (client CustomDomainsClient) ListByEndpoint(ctx context.Context, resourceGr result.cdlr, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "ListByEndpoint", resp, "Failure responding to request") + return } if result.cdlr.hasNextLink() && result.cdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -597,6 +601,7 @@ func (client CustomDomainsClient) listByEndpointNextResults(ctx context.Context, result, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "listByEndpointNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2020-04-15/cdn/edgenodes.go b/services/cdn/mgmt/2020-04-15/cdn/edgenodes.go index 297f8b48da66..ac8af5ed986a 100644 --- a/services/cdn/mgmt/2020-04-15/cdn/edgenodes.go +++ b/services/cdn/mgmt/2020-04-15/cdn/edgenodes.go @@ -70,6 +70,7 @@ func (client EdgeNodesClient) List(ctx context.Context) (result EdgenodeResultPa result.er, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EdgeNodesClient", "List", resp, "Failure responding to request") + return } if result.er.hasNextLink() && result.er.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client EdgeNodesClient) listNextResults(ctx context.Context, lastResults E result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EdgeNodesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2020-04-15/cdn/endpoints.go b/services/cdn/mgmt/2020-04-15/cdn/endpoints.go index 5c592d395263..ccaa70c5d217 100644 --- a/services/cdn/mgmt/2020-04-15/cdn/endpoints.go +++ b/services/cdn/mgmt/2020-04-15/cdn/endpoints.go @@ -260,6 +260,7 @@ func (client EndpointsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +346,7 @@ func (client EndpointsClient) ListByProfile(ctx context.Context, resourceGroupNa result.elr, err = client.ListByProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ListByProfile", resp, "Failure responding to request") + return } if result.elr.hasNextLink() && result.elr.IsEmpty() { err = result.NextWithContext(ctx) @@ -409,6 +411,7 @@ func (client EndpointsClient) listByProfileNextResults(ctx context.Context, last result, err = client.ListByProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "listByProfileNextResults", resp, "Failure responding to next results request") + return } return } @@ -470,6 +473,7 @@ func (client EndpointsClient) ListResourceUsage(ctx context.Context, resourceGro result.rulr, err = client.ListResourceUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ListResourceUsage", resp, "Failure responding to request") + return } if result.rulr.hasNextLink() && result.rulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -535,6 +539,7 @@ func (client EndpointsClient) listResourceUsageNextResults(ctx context.Context, result, err = client.ListResourceUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "listResourceUsageNextResults", resp, "Failure responding to next results request") + return } return } @@ -1040,6 +1045,7 @@ func (client EndpointsClient) ValidateCustomDomain(ctx context.Context, resource result, err = client.ValidateCustomDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ValidateCustomDomain", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2020-04-15/cdn/managedrulesets.go b/services/cdn/mgmt/2020-04-15/cdn/managedrulesets.go index ad6ea43484d6..4c2fb1e3a4f7 100644 --- a/services/cdn/mgmt/2020-04-15/cdn/managedrulesets.go +++ b/services/cdn/mgmt/2020-04-15/cdn/managedrulesets.go @@ -70,6 +70,7 @@ func (client ManagedRuleSetsClient) List(ctx context.Context) (result ManagedRul result.mrsdl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ManagedRuleSetsClient", "List", resp, "Failure responding to request") + return } if result.mrsdl.hasNextLink() && result.mrsdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client ManagedRuleSetsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ManagedRuleSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2020-04-15/cdn/operations.go b/services/cdn/mgmt/2020-04-15/cdn/operations.go index 7d1bf5edc17b..e8e48e2ebe48 100644 --- a/services/cdn/mgmt/2020-04-15/cdn/operations.go +++ b/services/cdn/mgmt/2020-04-15/cdn/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListR result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2020-04-15/cdn/origingroups.go b/services/cdn/mgmt/2020-04-15/cdn/origingroups.go index 11f7ff07baee..2b5098b9637c 100644 --- a/services/cdn/mgmt/2020-04-15/cdn/origingroups.go +++ b/services/cdn/mgmt/2020-04-15/cdn/origingroups.go @@ -259,6 +259,7 @@ func (client OriginGroupsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OriginGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +347,7 @@ func (client OriginGroupsClient) ListByEndpoint(ctx context.Context, resourceGro result.oglr, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OriginGroupsClient", "ListByEndpoint", resp, "Failure responding to request") + return } if result.oglr.hasNextLink() && result.oglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -411,6 +413,7 @@ func (client OriginGroupsClient) listByEndpointNextResults(ctx context.Context, result, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OriginGroupsClient", "listByEndpointNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2020-04-15/cdn/origins.go b/services/cdn/mgmt/2020-04-15/cdn/origins.go index 2ec04b5dce0b..c83e0d3fbd37 100644 --- a/services/cdn/mgmt/2020-04-15/cdn/origins.go +++ b/services/cdn/mgmt/2020-04-15/cdn/origins.go @@ -259,6 +259,7 @@ func (client OriginsClient) Get(ctx context.Context, resourceGroupName string, p result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +347,7 @@ func (client OriginsClient) ListByEndpoint(ctx context.Context, resourceGroupNam result.olr, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "ListByEndpoint", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -411,6 +413,7 @@ func (client OriginsClient) listByEndpointNextResults(ctx context.Context, lastR result, err = client.ListByEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "listByEndpointNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2020-04-15/cdn/policies.go b/services/cdn/mgmt/2020-04-15/cdn/policies.go index 19d0fb6a656c..936760745653 100644 --- a/services/cdn/mgmt/2020-04-15/cdn/policies.go +++ b/services/cdn/mgmt/2020-04-15/cdn/policies.go @@ -179,6 +179,7 @@ func (client PoliciesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.PoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -263,6 +264,7 @@ func (client PoliciesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.PoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +348,7 @@ func (client PoliciesClient) List(ctx context.Context, resourceGroupName string) result.wafpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.PoliciesClient", "List", resp, "Failure responding to request") + return } if result.wafpl.hasNextLink() && result.wafpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -409,6 +412,7 @@ func (client PoliciesClient) listNextResults(ctx context.Context, lastResults We result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.PoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cdn/mgmt/2020-04-15/cdn/profiles.go b/services/cdn/mgmt/2020-04-15/cdn/profiles.go index a48c74c0bfe4..4a5b40aec641 100644 --- a/services/cdn/mgmt/2020-04-15/cdn/profiles.go +++ b/services/cdn/mgmt/2020-04-15/cdn/profiles.go @@ -255,6 +255,7 @@ func (client ProfilesClient) GenerateSsoURI(ctx context.Context, resourceGroupNa result, err = client.GenerateSsoURIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "GenerateSsoURI", resp, "Failure responding to request") + return } return @@ -338,6 +339,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -411,6 +413,7 @@ func (client ProfilesClient) List(ctx context.Context) (result ProfileListResult result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -473,6 +476,7 @@ func (client ProfilesClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -532,6 +536,7 @@ func (client ProfilesClient) ListByResourceGroup(ctx context.Context, resourceGr result.plr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -595,6 +600,7 @@ func (client ProfilesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -655,6 +661,7 @@ func (client ProfilesClient) ListResourceUsage(ctx context.Context, resourceGrou result.rulr, err = client.ListResourceUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListResourceUsage", resp, "Failure responding to request") + return } if result.rulr.hasNextLink() && result.rulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -719,6 +726,7 @@ func (client ProfilesClient) listResourceUsageNextResults(ctx context.Context, l result, err = client.ListResourceUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listResourceUsageNextResults", resp, "Failure responding to next results request") + return } return } @@ -779,6 +787,7 @@ func (client ProfilesClient) ListSupportedOptimizationTypes(ctx context.Context, result, err = client.ListSupportedOptimizationTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListSupportedOptimizationTypes", resp, "Failure responding to request") + return } return diff --git a/services/cdn/mgmt/2020-04-15/cdn/resourceusage.go b/services/cdn/mgmt/2020-04-15/cdn/resourceusage.go index 6ea0fd450850..9b8e7817bd21 100644 --- a/services/cdn/mgmt/2020-04-15/cdn/resourceusage.go +++ b/services/cdn/mgmt/2020-04-15/cdn/resourceusage.go @@ -70,6 +70,7 @@ func (client ResourceUsageClient) List(ctx context.Context) (result ResourceUsag result.rulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ResourceUsageClient", "List", resp, "Failure responding to request") + return } if result.rulr.hasNextLink() && result.rulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client ResourceUsageClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ResourceUsageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/accounts.go b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/accounts.go index fe7f5556a909..8b894709cf66 100644 --- a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/accounts.go +++ b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/accounts.go @@ -112,6 +112,7 @@ func (client AccountsClient) Create(ctx context.Context, resourceGroupName strin result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "Create", resp, "Failure responding to request") + return } return @@ -207,6 +208,7 @@ func (client AccountsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -295,6 +297,7 @@ func (client AccountsClient) GetProperties(ctx context.Context, resourceGroupNam result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "GetProperties", resp, "Failure responding to request") + return } return @@ -386,6 +389,7 @@ func (client AccountsClient) GetUsages(ctx context.Context, resourceGroupName st result, err = client.GetUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "GetUsages", resp, "Failure responding to request") + return } return @@ -468,6 +472,7 @@ func (client AccountsClient) List(ctx context.Context) (result AccountListResult result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -530,6 +535,7 @@ func (client AccountsClient) listNextResults(ctx context.Context, lastResults Ac result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -591,6 +597,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result.alr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -654,6 +661,7 @@ func (client AccountsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -719,6 +727,7 @@ func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName str result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -808,6 +817,7 @@ func (client AccountsClient) ListSkus(ctx context.Context, resourceGroupName str result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "ListSkus", resp, "Failure responding to request") + return } return @@ -898,6 +908,7 @@ func (client AccountsClient) RegenerateKey(ctx context.Context, resourceGroupNam result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -990,6 +1001,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/client.go b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/client.go index 07eb7164f1d6..f0e082955708 100644 --- a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/client.go +++ b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/client.go @@ -95,6 +95,7 @@ func (client BaseClient) CheckDomainAvailability(ctx context.Context, parameters result, err = client.CheckDomainAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.BaseClient", "CheckDomainAvailability", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client BaseClient) CheckSkuAvailability(ctx context.Context, location stri result, err = client.CheckSkuAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.BaseClient", "CheckSkuAvailability", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/operations.go b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/operations.go index 4a1856ff37cb..26d624968d81 100644 --- a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/operations.go +++ b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationEntity result.oelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.OperationsClient", "List", resp, "Failure responding to request") + return } if result.oelr.hasNextLink() && result.oelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/privateendpointconnections.go b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/privateendpointconnections.go index e85732a55573..a1363531ffd7 100644 --- a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/privateendpointconnections.go +++ b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/privateendpointconnections.go @@ -95,6 +95,7 @@ func (client PrivateEndpointConnectionsClient) CreateOrUpdate(ctx context.Contex result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.PrivateEndpointConnectionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -189,6 +190,7 @@ func (client PrivateEndpointConnectionsClient) Delete(ctx context.Context, resou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.PrivateEndpointConnectionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client PrivateEndpointConnectionsClient) List(ctx context.Context, resourc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.PrivateEndpointConnectionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/privatelinkresources.go b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/privatelinkresources.go index ea6a7ca54dac..1f0789987b7c 100644 --- a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/privatelinkresources.go +++ b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/privatelinkresources.go @@ -88,6 +88,7 @@ func (client PrivateLinkResourcesClient) List(ctx context.Context, resourceGroup result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.PrivateLinkResourcesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/resourceskus.go b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/resourceskus.go index a3dbc1a8a93f..dc279d8d3ab9 100644 --- a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/resourceskus.go +++ b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/resourceskus.go @@ -77,6 +77,7 @@ func (client ResourceSkusClient) List(ctx context.Context) (result ResourceSkusR result.rsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.ResourceSkusClient", "List", resp, "Failure responding to request") + return } if result.rsr.hasNextLink() && result.rsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client ResourceSkusClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.ResourceSkusClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cognitiveservices/v1.0/autosuggest/client.go b/services/cognitiveservices/v1.0/autosuggest/client.go index 45a53d97b7b4..50f66ecfac62 100644 --- a/services/cognitiveservices/v1.0/autosuggest/client.go +++ b/services/cognitiveservices/v1.0/autosuggest/client.go @@ -192,6 +192,7 @@ func (client BaseClient) AutoSuggest(ctx context.Context, query string, acceptLa result, err = client.AutoSuggestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "autosuggest.BaseClient", "AutoSuggest", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v1.0/contentmoderator/imagemoderation.go b/services/cognitiveservices/v1.0/contentmoderator/imagemoderation.go index 422d1253a701..20dc0ca4aa67 100644 --- a/services/cognitiveservices/v1.0/contentmoderator/imagemoderation.go +++ b/services/cognitiveservices/v1.0/contentmoderator/imagemoderation.go @@ -74,6 +74,7 @@ func (client ImageModerationClient) EvaluateFileInput(ctx context.Context, image result, err = client.EvaluateFileInputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ImageModerationClient", "EvaluateFileInput", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client ImageModerationClient) EvaluateMethod(ctx context.Context, cacheIma result, err = client.EvaluateMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ImageModerationClient", "EvaluateMethod", resp, "Failure responding to request") + return } return @@ -222,6 +224,7 @@ func (client ImageModerationClient) EvaluateURLInput(ctx context.Context, conten result, err = client.EvaluateURLInputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ImageModerationClient", "EvaluateURLInput", resp, "Failure responding to request") + return } return @@ -297,6 +300,7 @@ func (client ImageModerationClient) FindFaces(ctx context.Context, cacheImage *b result, err = client.FindFacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ImageModerationClient", "FindFaces", resp, "Failure responding to request") + return } return @@ -370,6 +374,7 @@ func (client ImageModerationClient) FindFacesFileInput(ctx context.Context, imag result, err = client.FindFacesFileInputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ImageModerationClient", "FindFacesFileInput", resp, "Failure responding to request") + return } return @@ -446,6 +451,7 @@ func (client ImageModerationClient) FindFacesURLInput(ctx context.Context, conte result, err = client.FindFacesURLInputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ImageModerationClient", "FindFacesURLInput", resp, "Failure responding to request") + return } return @@ -530,6 +536,7 @@ func (client ImageModerationClient) MatchFileInput(ctx context.Context, imageStr result, err = client.MatchFileInputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ImageModerationClient", "MatchFileInput", resp, "Failure responding to request") + return } return @@ -615,6 +622,7 @@ func (client ImageModerationClient) MatchMethod(ctx context.Context, listID stri result, err = client.MatchMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ImageModerationClient", "MatchMethod", resp, "Failure responding to request") + return } return @@ -700,6 +708,7 @@ func (client ImageModerationClient) MatchURLInput(ctx context.Context, contentTy result, err = client.MatchURLInputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ImageModerationClient", "MatchURLInput", resp, "Failure responding to request") + return } return @@ -787,6 +796,7 @@ func (client ImageModerationClient) OCRFileInput(ctx context.Context, language s result, err = client.OCRFileInputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ImageModerationClient", "OCRFileInput", resp, "Failure responding to request") + return } return @@ -876,6 +886,7 @@ func (client ImageModerationClient) OCRMethod(ctx context.Context, language stri result, err = client.OCRMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ImageModerationClient", "OCRMethod", resp, "Failure responding to request") + return } return @@ -965,6 +976,7 @@ func (client ImageModerationClient) OCRURLInput(ctx context.Context, language st result, err = client.OCRURLInputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ImageModerationClient", "OCRURLInput", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v1.0/contentmoderator/listmanagementimage.go b/services/cognitiveservices/v1.0/contentmoderator/listmanagementimage.go index 2664426e98bd..3ce2c7cfd3f9 100644 --- a/services/cognitiveservices/v1.0/contentmoderator/listmanagementimage.go +++ b/services/cognitiveservices/v1.0/contentmoderator/listmanagementimage.go @@ -75,6 +75,7 @@ func (client ListManagementImageClient) AddImage(ctx context.Context, listID str result, err = client.AddImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ListManagementImageClient", "AddImage", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client ListManagementImageClient) AddImageFileInput(ctx context.Context, l result, err = client.AddImageFileInputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ListManagementImageClient", "AddImageFileInput", resp, "Failure responding to request") + return } return @@ -242,6 +244,7 @@ func (client ListManagementImageClient) AddImageURLInput(ctx context.Context, li result, err = client.AddImageURLInputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ListManagementImageClient", "AddImageURLInput", resp, "Failure responding to request") + return } return @@ -324,6 +327,7 @@ func (client ListManagementImageClient) DeleteAllImages(ctx context.Context, lis result, err = client.DeleteAllImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ListManagementImageClient", "DeleteAllImages", resp, "Failure responding to request") + return } return @@ -395,6 +399,7 @@ func (client ListManagementImageClient) DeleteImage(ctx context.Context, listID result, err = client.DeleteImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ListManagementImageClient", "DeleteImage", resp, "Failure responding to request") + return } return @@ -466,6 +471,7 @@ func (client ListManagementImageClient) GetAllImageIds(ctx context.Context, list result, err = client.GetAllImageIdsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ListManagementImageClient", "GetAllImageIds", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v1.0/contentmoderator/listmanagementimagelists.go b/services/cognitiveservices/v1.0/contentmoderator/listmanagementimagelists.go index 36ed4762ed55..9c57c8d59afd 100644 --- a/services/cognitiveservices/v1.0/contentmoderator/listmanagementimagelists.go +++ b/services/cognitiveservices/v1.0/contentmoderator/listmanagementimagelists.go @@ -74,6 +74,7 @@ func (client ListManagementImageListsClient) Create(ctx context.Context, content result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ListManagementImageListsClient", "Create", resp, "Failure responding to request") + return } return @@ -143,6 +144,7 @@ func (client ListManagementImageListsClient) Delete(ctx context.Context, listID result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ListManagementImageListsClient", "Delete", resp, "Failure responding to request") + return } return @@ -211,6 +213,7 @@ func (client ListManagementImageListsClient) GetAllImageLists(ctx context.Contex result, err = client.GetAllImageListsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ListManagementImageListsClient", "GetAllImageLists", resp, "Failure responding to request") + return } return @@ -277,6 +280,7 @@ func (client ListManagementImageListsClient) GetDetails(ctx context.Context, lis result, err = client.GetDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ListManagementImageListsClient", "GetDetails", resp, "Failure responding to request") + return } return @@ -347,6 +351,7 @@ func (client ListManagementImageListsClient) RefreshIndexMethod(ctx context.Cont result, err = client.RefreshIndexMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ListManagementImageListsClient", "RefreshIndexMethod", resp, "Failure responding to request") + return } return @@ -419,6 +424,7 @@ func (client ListManagementImageListsClient) Update(ctx context.Context, listID result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ListManagementImageListsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v1.0/contentmoderator/listmanagementterm.go b/services/cognitiveservices/v1.0/contentmoderator/listmanagementterm.go index 1d3b6305a8b7..580876829143 100644 --- a/services/cognitiveservices/v1.0/contentmoderator/listmanagementterm.go +++ b/services/cognitiveservices/v1.0/contentmoderator/listmanagementterm.go @@ -74,6 +74,7 @@ func (client ListManagementTermClient) AddTerm(ctx context.Context, listID strin result, err = client.AddTermResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ListManagementTermClient", "AddTerm", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client ListManagementTermClient) DeleteAllTerms(ctx context.Context, listI result, err = client.DeleteAllTermsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ListManagementTermClient", "DeleteAllTerms", resp, "Failure responding to request") + return } return @@ -227,6 +229,7 @@ func (client ListManagementTermClient) DeleteTerm(ctx context.Context, listID st result, err = client.DeleteTermResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ListManagementTermClient", "DeleteTerm", resp, "Failure responding to request") + return } return @@ -306,6 +309,7 @@ func (client ListManagementTermClient) GetAllTerms(ctx context.Context, listID s result, err = client.GetAllTermsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ListManagementTermClient", "GetAllTerms", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v1.0/contentmoderator/listmanagementtermlists.go b/services/cognitiveservices/v1.0/contentmoderator/listmanagementtermlists.go index 80139d2a3384..26c1a2a78004 100644 --- a/services/cognitiveservices/v1.0/contentmoderator/listmanagementtermlists.go +++ b/services/cognitiveservices/v1.0/contentmoderator/listmanagementtermlists.go @@ -73,6 +73,7 @@ func (client ListManagementTermListsClient) Create(ctx context.Context, contentT result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ListManagementTermListsClient", "Create", resp, "Failure responding to request") + return } return @@ -142,6 +143,7 @@ func (client ListManagementTermListsClient) Delete(ctx context.Context, listID s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ListManagementTermListsClient", "Delete", resp, "Failure responding to request") + return } return @@ -210,6 +212,7 @@ func (client ListManagementTermListsClient) GetAllTermLists(ctx context.Context) result, err = client.GetAllTermListsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ListManagementTermListsClient", "GetAllTermLists", resp, "Failure responding to request") + return } return @@ -276,6 +279,7 @@ func (client ListManagementTermListsClient) GetDetails(ctx context.Context, list result, err = client.GetDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ListManagementTermListsClient", "GetDetails", resp, "Failure responding to request") + return } return @@ -347,6 +351,7 @@ func (client ListManagementTermListsClient) RefreshIndexMethod(ctx context.Conte result, err = client.RefreshIndexMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ListManagementTermListsClient", "RefreshIndexMethod", resp, "Failure responding to request") + return } return @@ -424,6 +429,7 @@ func (client ListManagementTermListsClient) Update(ctx context.Context, listID s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ListManagementTermListsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v1.0/contentmoderator/reviews.go b/services/cognitiveservices/v1.0/contentmoderator/reviews.go index 34641f693ffb..b4649a65835a 100644 --- a/services/cognitiveservices/v1.0/contentmoderator/reviews.go +++ b/services/cognitiveservices/v1.0/contentmoderator/reviews.go @@ -100,6 +100,7 @@ func (client ReviewsClient) AddVideoFrame(ctx context.Context, teamName string, result, err = client.AddVideoFrameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ReviewsClient", "AddVideoFrame", resp, "Failure responding to request") + return } return @@ -184,6 +185,7 @@ func (client ReviewsClient) AddVideoFrameStream(ctx context.Context, contentType result, err = client.AddVideoFrameStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ReviewsClient", "AddVideoFrameStream", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client ReviewsClient) AddVideoFrameURL(ctx context.Context, contentType st result, err = client.AddVideoFrameURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ReviewsClient", "AddVideoFrameURL", resp, "Failure responding to request") + return } return @@ -362,6 +365,7 @@ func (client ReviewsClient) AddVideoTranscript(ctx context.Context, teamName str result, err = client.AddVideoTranscriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ReviewsClient", "AddVideoTranscript", resp, "Failure responding to request") + return } return @@ -446,6 +450,7 @@ func (client ReviewsClient) AddVideoTranscriptModerationResult(ctx context.Conte result, err = client.AddVideoTranscriptModerationResultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ReviewsClient", "AddVideoTranscriptModerationResult", resp, "Failure responding to request") + return } return @@ -579,6 +584,7 @@ func (client ReviewsClient) CreateJob(ctx context.Context, teamName string, cont result, err = client.CreateJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ReviewsClient", "CreateJob", resp, "Failure responding to request") + return } return @@ -695,6 +701,7 @@ func (client ReviewsClient) CreateReviews(ctx context.Context, URLContentType st result, err = client.CreateReviewsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ReviewsClient", "CreateReviews", resp, "Failure responding to request") + return } return @@ -807,6 +814,7 @@ func (client ReviewsClient) CreateVideoReviews(ctx context.Context, contentType result, err = client.CreateVideoReviewsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ReviewsClient", "CreateVideoReviews", resp, "Failure responding to request") + return } return @@ -887,6 +895,7 @@ func (client ReviewsClient) GetJobDetails(ctx context.Context, teamName string, result, err = client.GetJobDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ReviewsClient", "GetJobDetails", resp, "Failure responding to request") + return } return @@ -959,6 +968,7 @@ func (client ReviewsClient) GetReview(ctx context.Context, teamName string, revi result, err = client.GetReviewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ReviewsClient", "GetReview", resp, "Failure responding to request") + return } return @@ -1058,6 +1068,7 @@ func (client ReviewsClient) GetVideoFrames(ctx context.Context, teamName string, result, err = client.GetVideoFramesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ReviewsClient", "GetVideoFrames", resp, "Failure responding to request") + return } return @@ -1142,6 +1153,7 @@ func (client ReviewsClient) PublishVideoReview(ctx context.Context, teamName str result, err = client.PublishVideoReviewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.ReviewsClient", "PublishVideoReview", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v1.0/contentmoderator/textmoderation.go b/services/cognitiveservices/v1.0/contentmoderator/textmoderation.go index 954d3c4cd555..b271bb9b702d 100644 --- a/services/cognitiveservices/v1.0/contentmoderator/textmoderation.go +++ b/services/cognitiveservices/v1.0/contentmoderator/textmoderation.go @@ -76,6 +76,7 @@ func (client TextModerationClient) DetectLanguage(ctx context.Context, textConte result, err = client.DetectLanguageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.TextModerationClient", "DetectLanguage", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client TextModerationClient) ScreenText(ctx context.Context, textContentTy result, err = client.ScreenTextResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "contentmoderator.TextModerationClient", "ScreenText", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v1.0/customimagesearch/custominstance.go b/services/cognitiveservices/v1.0/customimagesearch/custominstance.go index 76e0e0375018..3572ff7d76ae 100644 --- a/services/cognitiveservices/v1.0/customimagesearch/custominstance.go +++ b/services/cognitiveservices/v1.0/customimagesearch/custominstance.go @@ -274,6 +274,7 @@ func (client CustomInstanceClient) ImageSearch(ctx context.Context, customConfig result, err = client.ImageSearchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customimagesearch.CustomInstanceClient", "ImageSearch", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v1.0/customsearch/custominstance.go b/services/cognitiveservices/v1.0/customsearch/custominstance.go index b4e29d9c8500..ea604c303e24 100644 --- a/services/cognitiveservices/v1.0/customsearch/custominstance.go +++ b/services/cognitiveservices/v1.0/customsearch/custominstance.go @@ -184,6 +184,7 @@ func (client CustomInstanceClient) Search(ctx context.Context, customConfig stri result, err = client.SearchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customsearch.CustomInstanceClient", "Search", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v1.0/entitysearch/entities.go b/services/cognitiveservices/v1.0/entitysearch/entities.go index b59b677a115a..a0a784158c81 100644 --- a/services/cognitiveservices/v1.0/entitysearch/entities.go +++ b/services/cognitiveservices/v1.0/entitysearch/entities.go @@ -167,6 +167,7 @@ func (client EntitiesClient) Search(ctx context.Context, query string, acceptLan result, err = client.SearchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "entitysearch.EntitiesClient", "Search", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v1.0/face/face.go b/services/cognitiveservices/v1.0/face/face.go index 172a0193a8db..4cd618f14f2c 100644 --- a/services/cognitiveservices/v1.0/face/face.go +++ b/services/cognitiveservices/v1.0/face/face.go @@ -129,6 +129,7 @@ func (client Client) DetectWithStream(ctx context.Context, imageParameter io.Rea result, err = client.DetectWithStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.Client", "DetectWithStream", resp, "Failure responding to request") + return } return @@ -296,6 +297,7 @@ func (client Client) DetectWithURL(ctx context.Context, imageURL ImageURL, retur result, err = client.DetectWithURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.Client", "DetectWithURL", resp, "Failure responding to request") + return } return @@ -430,6 +432,7 @@ func (client Client) FindSimilar(ctx context.Context, body FindSimilarRequest) ( result, err = client.FindSimilarResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.Client", "FindSimilar", resp, "Failure responding to request") + return } return @@ -514,6 +517,7 @@ func (client Client) Group(ctx context.Context, body GroupRequest) (result Group result, err = client.GroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.Client", "Group", resp, "Failure responding to request") + return } return @@ -622,6 +626,7 @@ func (client Client) Identify(ctx context.Context, body IdentifyRequest) (result result, err = client.IdentifyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.Client", "Identify", resp, "Failure responding to request") + return } return @@ -704,6 +709,7 @@ func (client Client) VerifyFaceToFace(ctx context.Context, body VerifyFaceToFace result, err = client.VerifyFaceToFaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.Client", "VerifyFaceToFace", resp, "Failure responding to request") + return } return @@ -787,6 +793,7 @@ func (client Client) VerifyFaceToPerson(ctx context.Context, body VerifyFaceToPe result, err = client.VerifyFaceToPersonResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.Client", "VerifyFaceToPerson", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v1.0/face/largefacelist.go b/services/cognitiveservices/v1.0/face/largefacelist.go index 331723567250..eee9f590b9de 100644 --- a/services/cognitiveservices/v1.0/face/largefacelist.go +++ b/services/cognitiveservices/v1.0/face/largefacelist.go @@ -122,6 +122,7 @@ func (client LargeFaceListClient) AddFaceFromStream(ctx context.Context, largeFa result, err = client.AddFaceFromStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargeFaceListClient", "AddFaceFromStream", resp, "Failure responding to request") + return } return @@ -264,6 +265,7 @@ func (client LargeFaceListClient) AddFaceFromURL(ctx context.Context, largeFaceL result, err = client.AddFaceFromURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargeFaceListClient", "AddFaceFromURL", resp, "Failure responding to request") + return } return @@ -387,6 +389,7 @@ func (client LargeFaceListClient) Create(ctx context.Context, largeFaceListID st result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargeFaceListClient", "Create", resp, "Failure responding to request") + return } return @@ -465,6 +468,7 @@ func (client LargeFaceListClient) Delete(ctx context.Context, largeFaceListID st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargeFaceListClient", "Delete", resp, "Failure responding to request") + return } return @@ -544,6 +548,7 @@ func (client LargeFaceListClient) DeleteFace(ctx context.Context, largeFaceListI result, err = client.DeleteFaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargeFaceListClient", "DeleteFace", resp, "Failure responding to request") + return } return @@ -623,6 +628,7 @@ func (client LargeFaceListClient) Get(ctx context.Context, largeFaceListID strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargeFaceListClient", "Get", resp, "Failure responding to request") + return } return @@ -710,6 +716,7 @@ func (client LargeFaceListClient) GetFace(ctx context.Context, largeFaceListID s result, err = client.GetFaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargeFaceListClient", "GetFace", resp, "Failure responding to request") + return } return @@ -788,6 +795,7 @@ func (client LargeFaceListClient) GetTrainingStatus(ctx context.Context, largeFa result, err = client.GetTrainingStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargeFaceListClient", "GetTrainingStatus", resp, "Failure responding to request") + return } return @@ -871,6 +879,7 @@ func (client LargeFaceListClient) List(ctx context.Context, returnRecognitionMod result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargeFaceListClient", "List", resp, "Failure responding to request") + return } return @@ -960,6 +969,7 @@ func (client LargeFaceListClient) ListFaces(ctx context.Context, largeFaceListID result, err = client.ListFacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargeFaceListClient", "ListFaces", resp, "Failure responding to request") + return } return @@ -1046,6 +1056,7 @@ func (client LargeFaceListClient) Train(ctx context.Context, largeFaceListID str result, err = client.TrainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargeFaceListClient", "Train", resp, "Failure responding to request") + return } return @@ -1123,6 +1134,7 @@ func (client LargeFaceListClient) Update(ctx context.Context, largeFaceListID st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargeFaceListClient", "Update", resp, "Failure responding to request") + return } return @@ -1203,6 +1215,7 @@ func (client LargeFaceListClient) UpdateFace(ctx context.Context, largeFaceListI result, err = client.UpdateFaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargeFaceListClient", "UpdateFace", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v1.0/face/largepersongroup.go b/services/cognitiveservices/v1.0/face/largepersongroup.go index c56cd1038e34..6e74334324fc 100644 --- a/services/cognitiveservices/v1.0/face/largepersongroup.go +++ b/services/cognitiveservices/v1.0/face/largepersongroup.go @@ -103,6 +103,7 @@ func (client LargePersonGroupClient) Create(ctx context.Context, largePersonGrou result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargePersonGroupClient", "Create", resp, "Failure responding to request") + return } return @@ -182,6 +183,7 @@ func (client LargePersonGroupClient) Delete(ctx context.Context, largePersonGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargePersonGroupClient", "Delete", resp, "Failure responding to request") + return } return @@ -263,6 +265,7 @@ func (client LargePersonGroupClient) Get(ctx context.Context, largePersonGroupID result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargePersonGroupClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +351,7 @@ func (client LargePersonGroupClient) GetTrainingStatus(ctx context.Context, larg result, err = client.GetTrainingStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargePersonGroupClient", "GetTrainingStatus", resp, "Failure responding to request") + return } return @@ -443,6 +447,7 @@ func (client LargePersonGroupClient) List(ctx context.Context, start string, top result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargePersonGroupClient", "List", resp, "Failure responding to request") + return } return @@ -532,6 +537,7 @@ func (client LargePersonGroupClient) Train(ctx context.Context, largePersonGroup result, err = client.TrainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargePersonGroupClient", "Train", resp, "Failure responding to request") + return } return @@ -610,6 +616,7 @@ func (client LargePersonGroupClient) Update(ctx context.Context, largePersonGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargePersonGroupClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v1.0/face/largepersongroupperson.go b/services/cognitiveservices/v1.0/face/largepersongroupperson.go index b1d596ca662b..ab7f07574c00 100644 --- a/services/cognitiveservices/v1.0/face/largepersongroupperson.go +++ b/services/cognitiveservices/v1.0/face/largepersongroupperson.go @@ -123,6 +123,7 @@ func (client LargePersonGroupPersonClient) AddFaceFromStream(ctx context.Context result, err = client.AddFaceFromStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargePersonGroupPersonClient", "AddFaceFromStream", resp, "Failure responding to request") + return } return @@ -267,6 +268,7 @@ func (client LargePersonGroupPersonClient) AddFaceFromURL(ctx context.Context, l result, err = client.AddFaceFromURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargePersonGroupPersonClient", "AddFaceFromURL", resp, "Failure responding to request") + return } return @@ -367,6 +369,7 @@ func (client LargePersonGroupPersonClient) Create(ctx context.Context, largePers result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargePersonGroupPersonClient", "Create", resp, "Failure responding to request") + return } return @@ -448,6 +451,7 @@ func (client LargePersonGroupPersonClient) Delete(ctx context.Context, largePers result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargePersonGroupPersonClient", "Delete", resp, "Failure responding to request") + return } return @@ -530,6 +534,7 @@ func (client LargePersonGroupPersonClient) DeleteFace(ctx context.Context, large result, err = client.DeleteFaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargePersonGroupPersonClient", "DeleteFace", resp, "Failure responding to request") + return } return @@ -610,6 +615,7 @@ func (client LargePersonGroupPersonClient) Get(ctx context.Context, largePersonG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargePersonGroupPersonClient", "Get", resp, "Failure responding to request") + return } return @@ -691,6 +697,7 @@ func (client LargePersonGroupPersonClient) GetFace(ctx context.Context, largePer result, err = client.GetFaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargePersonGroupPersonClient", "GetFace", resp, "Failure responding to request") + return } return @@ -778,6 +785,7 @@ func (client LargePersonGroupPersonClient) List(ctx context.Context, largePerson result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargePersonGroupPersonClient", "List", resp, "Failure responding to request") + return } return @@ -866,6 +874,7 @@ func (client LargePersonGroupPersonClient) Update(ctx context.Context, largePers result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargePersonGroupPersonClient", "Update", resp, "Failure responding to request") + return } return @@ -948,6 +957,7 @@ func (client LargePersonGroupPersonClient) UpdateFace(ctx context.Context, large result, err = client.UpdateFaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.LargePersonGroupPersonClient", "UpdateFace", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v1.0/face/list.go b/services/cognitiveservices/v1.0/face/list.go index d613c3ce47eb..7b5ebb3253d1 100644 --- a/services/cognitiveservices/v1.0/face/list.go +++ b/services/cognitiveservices/v1.0/face/list.go @@ -118,6 +118,7 @@ func (client ListClient) AddFaceFromStream(ctx context.Context, faceListID strin result, err = client.AddFaceFromStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.ListClient", "AddFaceFromStream", resp, "Failure responding to request") + return } return @@ -256,6 +257,7 @@ func (client ListClient) AddFaceFromURL(ctx context.Context, faceListID string, result, err = client.AddFaceFromURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.ListClient", "AddFaceFromURL", resp, "Failure responding to request") + return } return @@ -375,6 +377,7 @@ func (client ListClient) Create(ctx context.Context, faceListID string, body Met result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.ListClient", "Create", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ListClient) Delete(ctx context.Context, faceListID string) (result result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.ListClient", "Delete", resp, "Failure responding to request") + return } return @@ -532,6 +536,7 @@ func (client ListClient) DeleteFace(ctx context.Context, faceListID string, pers result, err = client.DeleteFaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.ListClient", "DeleteFace", resp, "Failure responding to request") + return } return @@ -611,6 +616,7 @@ func (client ListClient) Get(ctx context.Context, faceListID string, returnRecog result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.ListClient", "Get", resp, "Failure responding to request") + return } return @@ -692,6 +698,7 @@ func (client ListClient) List(ctx context.Context, returnRecognitionModel *bool) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.ListClient", "List", resp, "Failure responding to request") + return } return @@ -774,6 +781,7 @@ func (client ListClient) Update(ctx context.Context, faceListID string, body Nam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.ListClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v1.0/face/persongroup.go b/services/cognitiveservices/v1.0/face/persongroup.go index 220377f4d60a..ad57a4a8636d 100644 --- a/services/cognitiveservices/v1.0/face/persongroup.go +++ b/services/cognitiveservices/v1.0/face/persongroup.go @@ -101,6 +101,7 @@ func (client PersonGroupClient) Create(ctx context.Context, personGroupID string result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.PersonGroupClient", "Create", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client PersonGroupClient) Delete(ctx context.Context, personGroupID string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.PersonGroupClient", "Delete", resp, "Failure responding to request") + return } return @@ -259,6 +261,7 @@ func (client PersonGroupClient) Get(ctx context.Context, personGroupID string, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.PersonGroupClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +347,7 @@ func (client PersonGroupClient) GetTrainingStatus(ctx context.Context, personGro result, err = client.GetTrainingStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.PersonGroupClient", "GetTrainingStatus", resp, "Failure responding to request") + return } return @@ -439,6 +443,7 @@ func (client PersonGroupClient) List(ctx context.Context, start string, top *int result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.PersonGroupClient", "List", resp, "Failure responding to request") + return } return @@ -528,6 +533,7 @@ func (client PersonGroupClient) Train(ctx context.Context, personGroupID string) result, err = client.TrainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.PersonGroupClient", "Train", resp, "Failure responding to request") + return } return @@ -606,6 +612,7 @@ func (client PersonGroupClient) Update(ctx context.Context, personGroupID string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.PersonGroupClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v1.0/face/persongroupperson.go b/services/cognitiveservices/v1.0/face/persongroupperson.go index dc1cb09fc0a8..422c591eb10f 100644 --- a/services/cognitiveservices/v1.0/face/persongroupperson.go +++ b/services/cognitiveservices/v1.0/face/persongroupperson.go @@ -122,6 +122,7 @@ func (client PersonGroupPersonClient) AddFaceFromStream(ctx context.Context, per result, err = client.AddFaceFromStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.PersonGroupPersonClient", "AddFaceFromStream", resp, "Failure responding to request") + return } return @@ -265,6 +266,7 @@ func (client PersonGroupPersonClient) AddFaceFromURL(ctx context.Context, person result, err = client.AddFaceFromURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.PersonGroupPersonClient", "AddFaceFromURL", resp, "Failure responding to request") + return } return @@ -365,6 +367,7 @@ func (client PersonGroupPersonClient) Create(ctx context.Context, personGroupID result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.PersonGroupPersonClient", "Create", resp, "Failure responding to request") + return } return @@ -446,6 +449,7 @@ func (client PersonGroupPersonClient) Delete(ctx context.Context, personGroupID result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.PersonGroupPersonClient", "Delete", resp, "Failure responding to request") + return } return @@ -527,6 +531,7 @@ func (client PersonGroupPersonClient) DeleteFace(ctx context.Context, personGrou result, err = client.DeleteFaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.PersonGroupPersonClient", "DeleteFace", resp, "Failure responding to request") + return } return @@ -606,6 +611,7 @@ func (client PersonGroupPersonClient) Get(ctx context.Context, personGroupID str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.PersonGroupPersonClient", "Get", resp, "Failure responding to request") + return } return @@ -687,6 +693,7 @@ func (client PersonGroupPersonClient) GetFace(ctx context.Context, personGroupID result, err = client.GetFaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.PersonGroupPersonClient", "GetFace", resp, "Failure responding to request") + return } return @@ -774,6 +781,7 @@ func (client PersonGroupPersonClient) List(ctx context.Context, personGroupID st result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.PersonGroupPersonClient", "List", resp, "Failure responding to request") + return } return @@ -862,6 +870,7 @@ func (client PersonGroupPersonClient) Update(ctx context.Context, personGroupID result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.PersonGroupPersonClient", "Update", resp, "Failure responding to request") + return } return @@ -963,6 +972,7 @@ func (client PersonGroupPersonClient) UpdateFace(ctx context.Context, personGrou result, err = client.UpdateFaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.PersonGroupPersonClient", "UpdateFace", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v1.0/face/snapshot.go b/services/cognitiveservices/v1.0/face/snapshot.go index 2996eec683e9..22fa1130f262 100644 --- a/services/cognitiveservices/v1.0/face/snapshot.go +++ b/services/cognitiveservices/v1.0/face/snapshot.go @@ -101,6 +101,7 @@ func (client SnapshotClient) Apply(ctx context.Context, snapshotID uuid.UUID, bo result, err = client.ApplyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.SnapshotClient", "Apply", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client SnapshotClient) Delete(ctx context.Context, snapshotID uuid.UUID) ( result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.SnapshotClient", "Delete", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client SnapshotClient) Get(ctx context.Context, snapshotID uuid.UUID) (res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.SnapshotClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +317,7 @@ func (client SnapshotClient) GetOperationStatus(ctx context.Context, operationID result, err = client.GetOperationStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.SnapshotClient", "GetOperationStatus", resp, "Failure responding to request") + return } return @@ -387,6 +391,7 @@ func (client SnapshotClient) List(ctx context.Context, typeParameter SnapshotObj result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.SnapshotClient", "List", resp, "Failure responding to request") + return } return @@ -497,6 +502,7 @@ func (client SnapshotClient) Take(ctx context.Context, body TakeSnapshotRequest) result, err = client.TakeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.SnapshotClient", "Take", resp, "Failure responding to request") + return } return @@ -566,6 +572,7 @@ func (client SnapshotClient) Update(ctx context.Context, snapshotID uuid.UUID, b result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "face.SnapshotClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v1.0/imagesearch/images.go b/services/cognitiveservices/v1.0/imagesearch/images.go index c9fbcf728cac..a5034dcadd81 100644 --- a/services/cognitiveservices/v1.0/imagesearch/images.go +++ b/services/cognitiveservices/v1.0/imagesearch/images.go @@ -259,6 +259,7 @@ func (client ImagesClient) Details(ctx context.Context, query string, acceptLang result, err = client.DetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "imagesearch.ImagesClient", "Details", resp, "Failure responding to request") + return } return @@ -601,6 +602,7 @@ func (client ImagesClient) Search(ctx context.Context, query string, acceptLangu result, err = client.SearchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "imagesearch.ImagesClient", "Search", resp, "Failure responding to request") + return } return @@ -877,6 +879,7 @@ func (client ImagesClient) Trending(ctx context.Context, acceptLanguage string, result, err = client.TrendingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "imagesearch.ImagesClient", "Trending", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v1.0/localsearch/local.go b/services/cognitiveservices/v1.0/localsearch/local.go index 8d0a576a15cd..5ed4024c7635 100644 --- a/services/cognitiveservices/v1.0/localsearch/local.go +++ b/services/cognitiveservices/v1.0/localsearch/local.go @@ -181,6 +181,7 @@ func (client LocalClient) Search(ctx context.Context, query string, acceptLangua result, err = client.SearchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "localsearch.LocalClient", "Search", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v1.0/newssearch/news.go b/services/cognitiveservices/v1.0/newssearch/news.go index a5ad8d8527d9..7edfba71908d 100644 --- a/services/cognitiveservices/v1.0/newssearch/news.go +++ b/services/cognitiveservices/v1.0/newssearch/news.go @@ -232,6 +232,7 @@ func (client NewsClient) Category(ctx context.Context, acceptLanguage string, us result, err = client.CategoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "newssearch.NewsClient", "Category", resp, "Failure responding to request") + return } return @@ -513,6 +514,7 @@ func (client NewsClient) Search(ctx context.Context, query string, acceptLanguag result, err = client.SearchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "newssearch.NewsClient", "Search", resp, "Failure responding to request") + return } return @@ -785,6 +787,7 @@ func (client NewsClient) Trending(ctx context.Context, acceptLanguage string, us result, err = client.TrendingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "newssearch.NewsClient", "Trending", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v1.0/spellcheck/client.go b/services/cognitiveservices/v1.0/spellcheck/client.go index 05da99855668..6ec30201ae95 100644 --- a/services/cognitiveservices/v1.0/spellcheck/client.go +++ b/services/cognitiveservices/v1.0/spellcheck/client.go @@ -205,6 +205,7 @@ func (client BaseClient) SpellCheckerMethod(ctx context.Context, textParameter s result, err = client.SpellCheckerMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "spellcheck.BaseClient", "SpellCheckerMethod", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v1.0/videosearch/videos.go b/services/cognitiveservices/v1.0/videosearch/videos.go index 8d68a98e0a68..2287281f4862 100644 --- a/services/cognitiveservices/v1.0/videosearch/videos.go +++ b/services/cognitiveservices/v1.0/videosearch/videos.go @@ -221,6 +221,7 @@ func (client VideosClient) Details(ctx context.Context, query string, acceptLang result, err = client.DetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "videosearch.VideosClient", "Details", resp, "Failure responding to request") + return } return @@ -509,6 +510,7 @@ func (client VideosClient) Search(ctx context.Context, query string, acceptLangu result, err = client.SearchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "videosearch.VideosClient", "Search", resp, "Failure responding to request") + return } return @@ -771,6 +773,7 @@ func (client VideosClient) Trending(ctx context.Context, acceptLanguage string, result, err = client.TrendingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "videosearch.VideosClient", "Trending", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v1.0/websearch/web.go b/services/cognitiveservices/v1.0/websearch/web.go index 61b46b7df77a..f5507ce540b6 100644 --- a/services/cognitiveservices/v1.0/websearch/web.go +++ b/services/cognitiveservices/v1.0/websearch/web.go @@ -212,6 +212,7 @@ func (client WebClient) Search(ctx context.Context, query string, acceptLanguage result, err = client.SearchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "websearch.WebClient", "Search", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v1.1/customvision/prediction/client.go b/services/cognitiveservices/v1.1/customvision/prediction/client.go index 0d1557b2d48a..eb8859b93ad6 100644 --- a/services/cognitiveservices/v1.1/customvision/prediction/client.go +++ b/services/cognitiveservices/v1.1/customvision/prediction/client.go @@ -84,6 +84,7 @@ func (client BaseClient) PredictImage(ctx context.Context, projectID uuid.UUID, result, err = client.PredictImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "prediction.BaseClient", "PredictImage", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client BaseClient) PredictImageURL(ctx context.Context, projectID uuid.UUI result, err = client.PredictImageURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "prediction.BaseClient", "PredictImageURL", resp, "Failure responding to request") + return } return @@ -259,6 +261,7 @@ func (client BaseClient) PredictImageURLWithNoStore(ctx context.Context, project result, err = client.PredictImageURLWithNoStoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "prediction.BaseClient", "PredictImageURLWithNoStore", resp, "Failure responding to request") + return } return @@ -344,6 +347,7 @@ func (client BaseClient) PredictImageWithNoStore(ctx context.Context, projectID result, err = client.PredictImageWithNoStoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "prediction.BaseClient", "PredictImageWithNoStore", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v1.2/customvision/training/client.go b/services/cognitiveservices/v1.2/customvision/training/client.go index 2d81767ad2ca..1d16a02cb336 100644 --- a/services/cognitiveservices/v1.2/customvision/training/client.go +++ b/services/cognitiveservices/v1.2/customvision/training/client.go @@ -91,6 +91,7 @@ func (client BaseClient) CreateImageRegions(ctx context.Context, projectID uuid. result, err = client.CreateImageRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImageRegions", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client BaseClient) CreateImagesFromData(ctx context.Context, projectID uui result, err = client.CreateImagesFromDataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromData", resp, "Failure responding to request") + return } return @@ -243,6 +245,7 @@ func (client BaseClient) CreateImagesFromFiles(ctx context.Context, projectID uu result, err = client.CreateImagesFromFilesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromFiles", resp, "Failure responding to request") + return } return @@ -314,6 +317,7 @@ func (client BaseClient) CreateImagesFromPredictions(ctx context.Context, projec result, err = client.CreateImagesFromPredictionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromPredictions", resp, "Failure responding to request") + return } return @@ -385,6 +389,7 @@ func (client BaseClient) CreateImagesFromUrls(ctx context.Context, projectID uui result, err = client.CreateImagesFromUrlsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromUrls", resp, "Failure responding to request") + return } return @@ -455,6 +460,7 @@ func (client BaseClient) CreateImageTags(ctx context.Context, projectID uuid.UUI result, err = client.CreateImageTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImageTags", resp, "Failure responding to request") + return } return @@ -526,6 +532,7 @@ func (client BaseClient) CreateProject(ctx context.Context, name string, descrip result, err = client.CreateProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateProject", resp, "Failure responding to request") + return } return @@ -602,6 +609,7 @@ func (client BaseClient) CreateTag(ctx context.Context, projectID uuid.UUID, nam result, err = client.CreateTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateTag", resp, "Failure responding to request") + return } return @@ -684,6 +692,7 @@ func (client BaseClient) DeleteImageRegions(ctx context.Context, projectID uuid. result, err = client.DeleteImageRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImageRegions", resp, "Failure responding to request") + return } return @@ -762,6 +771,7 @@ func (client BaseClient) DeleteImages(ctx context.Context, projectID uuid.UUID, result, err = client.DeleteImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImages", resp, "Failure responding to request") + return } return @@ -843,6 +853,7 @@ func (client BaseClient) DeleteImageTags(ctx context.Context, projectID uuid.UUI result, err = client.DeleteImageTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImageTags", resp, "Failure responding to request") + return } return @@ -916,6 +927,7 @@ func (client BaseClient) DeleteIteration(ctx context.Context, projectID uuid.UUI result, err = client.DeleteIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteIteration", resp, "Failure responding to request") + return } return @@ -990,6 +1002,7 @@ func (client BaseClient) DeletePrediction(ctx context.Context, projectID uuid.UU result, err = client.DeletePredictionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeletePrediction", resp, "Failure responding to request") + return } return @@ -1061,6 +1074,7 @@ func (client BaseClient) DeleteProject(ctx context.Context, projectID uuid.UUID) result, err = client.DeleteProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteProject", resp, "Failure responding to request") + return } return @@ -1128,6 +1142,7 @@ func (client BaseClient) DeleteTag(ctx context.Context, projectID uuid.UUID, tag result, err = client.DeleteTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteTag", resp, "Failure responding to request") + return } return @@ -1198,6 +1213,7 @@ func (client BaseClient) ExportIteration(ctx context.Context, projectID uuid.UUI result, err = client.ExportIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "ExportIteration", resp, "Failure responding to request") + return } return @@ -1274,6 +1290,7 @@ func (client BaseClient) GetDomain(ctx context.Context, domainID uuid.UUID) (res result, err = client.GetDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetDomain", resp, "Failure responding to request") + return } return @@ -1339,6 +1356,7 @@ func (client BaseClient) GetDomains(ctx context.Context) (result ListDomain, err result, err = client.GetDomainsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetDomains", resp, "Failure responding to request") + return } return @@ -1403,6 +1421,7 @@ func (client BaseClient) GetExports(ctx context.Context, projectID uuid.UUID, it result, err = client.GetExportsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetExports", resp, "Failure responding to request") + return } return @@ -1475,6 +1494,7 @@ func (client BaseClient) GetImagePerformanceCount(ctx context.Context, projectID result, err = client.GetImagePerformanceCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagePerformanceCount", resp, "Failure responding to request") + return } return @@ -1558,6 +1578,7 @@ func (client BaseClient) GetImagePerformances(ctx context.Context, projectID uui result, err = client.GetImagePerformancesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagePerformances", resp, "Failure responding to request") + return } return @@ -1647,6 +1668,7 @@ func (client BaseClient) GetImageRegionProposals(ctx context.Context, projectID result, err = client.GetImageRegionProposalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImageRegionProposals", resp, "Failure responding to request") + return } return @@ -1719,6 +1741,7 @@ func (client BaseClient) GetImagesByIds(ctx context.Context, projectID uuid.UUID result, err = client.GetImagesByIdsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagesByIds", resp, "Failure responding to request") + return } return @@ -1796,6 +1819,7 @@ func (client BaseClient) GetIteration(ctx context.Context, projectID uuid.UUID, result, err = client.GetIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIteration", resp, "Failure responding to request") + return } return @@ -1867,6 +1891,7 @@ func (client BaseClient) GetIterationPerformance(ctx context.Context, projectID result, err = client.GetIterationPerformanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIterationPerformance", resp, "Failure responding to request") + return } return @@ -1944,6 +1969,7 @@ func (client BaseClient) GetIterations(ctx context.Context, projectID uuid.UUID) result, err = client.GetIterationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIterations", resp, "Failure responding to request") + return } return @@ -2011,6 +2037,7 @@ func (client BaseClient) GetProject(ctx context.Context, projectID uuid.UUID) (r result, err = client.GetProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetProject", resp, "Failure responding to request") + return } return @@ -2076,6 +2103,7 @@ func (client BaseClient) GetProjects(ctx context.Context) (result ListProject, e result, err = client.GetProjectsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetProjects", resp, "Failure responding to request") + return } return @@ -2141,6 +2169,7 @@ func (client BaseClient) GetTag(ctx context.Context, projectID uuid.UUID, tagID result, err = client.GetTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTag", resp, "Failure responding to request") + return } return @@ -2219,6 +2248,7 @@ func (client BaseClient) GetTaggedImageCount(ctx context.Context, projectID uuid result, err = client.GetTaggedImageCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTaggedImageCount", resp, "Failure responding to request") + return } return @@ -2304,6 +2334,7 @@ func (client BaseClient) GetTaggedImages(ctx context.Context, projectID uuid.UUI result, err = client.GetTaggedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTaggedImages", resp, "Failure responding to request") + return } return @@ -2394,6 +2425,7 @@ func (client BaseClient) GetTags(ctx context.Context, projectID uuid.UUID, itera result, err = client.GetTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTags", resp, "Failure responding to request") + return } return @@ -2470,6 +2502,7 @@ func (client BaseClient) GetUntaggedImageCount(ctx context.Context, projectID uu result, err = client.GetUntaggedImageCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetUntaggedImageCount", resp, "Failure responding to request") + return } return @@ -2549,6 +2582,7 @@ func (client BaseClient) GetUntaggedImages(ctx context.Context, projectID uuid.U result, err = client.GetUntaggedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetUntaggedImages", resp, "Failure responding to request") + return } return @@ -2636,6 +2670,7 @@ func (client BaseClient) QueryPredictions(ctx context.Context, projectID uuid.UU result, err = client.QueryPredictionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QueryPredictions", resp, "Failure responding to request") + return } return @@ -2707,6 +2742,7 @@ func (client BaseClient) QuickTestImage(ctx context.Context, projectID uuid.UUID result, err = client.QuickTestImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QuickTestImage", resp, "Failure responding to request") + return } return @@ -2788,6 +2824,7 @@ func (client BaseClient) QuickTestImageURL(ctx context.Context, projectID uuid.U result, err = client.QuickTestImageURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QuickTestImageURL", resp, "Failure responding to request") + return } return @@ -2863,6 +2900,7 @@ func (client BaseClient) TrainProject(ctx context.Context, projectID uuid.UUID) result, err = client.TrainProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "TrainProject", resp, "Failure responding to request") + return } return @@ -2932,6 +2970,7 @@ func (client BaseClient) UpdateIteration(ctx context.Context, projectID uuid.UUI result, err = client.UpdateIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateIteration", resp, "Failure responding to request") + return } return @@ -3011,6 +3050,7 @@ func (client BaseClient) UpdateProject(ctx context.Context, projectID uuid.UUID, result, err = client.UpdateProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateProject", resp, "Failure responding to request") + return } return @@ -3086,6 +3126,7 @@ func (client BaseClient) UpdateTag(ctx context.Context, projectID uuid.UUID, tag result, err = client.UpdateTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateTag", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v2.0/computervision/client.go b/services/cognitiveservices/v2.0/computervision/client.go index 1898d48859cd..0719cde647ef 100644 --- a/services/cognitiveservices/v2.0/computervision/client.go +++ b/services/cognitiveservices/v2.0/computervision/client.go @@ -110,6 +110,7 @@ func (client BaseClient) AnalyzeImage(ctx context.Context, imageURL ImageURL, vi result, err = client.AnalyzeImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "AnalyzeImage", resp, "Failure responding to request") + return } return @@ -207,6 +208,7 @@ func (client BaseClient) AnalyzeImageByDomain(ctx context.Context, model string, result, err = client.AnalyzeImageByDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "AnalyzeImageByDomain", resp, "Failure responding to request") + return } return @@ -296,6 +298,7 @@ func (client BaseClient) AnalyzeImageByDomainInStream(ctx context.Context, model result, err = client.AnalyzeImageByDomainInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "AnalyzeImageByDomainInStream", resp, "Failure responding to request") + return } return @@ -397,6 +400,7 @@ func (client BaseClient) AnalyzeImageInStream(ctx context.Context, imageParamete result, err = client.AnalyzeImageInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "AnalyzeImageInStream", resp, "Failure responding to request") + return } return @@ -488,6 +492,7 @@ func (client BaseClient) BatchReadFile(ctx context.Context, imageURL ImageURL) ( result, err = client.BatchReadFileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "BatchReadFile", resp, "Failure responding to request") + return } return @@ -558,6 +563,7 @@ func (client BaseClient) BatchReadFileInStream(ctx context.Context, imageParamet result, err = client.BatchReadFileInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "BatchReadFileInStream", resp, "Failure responding to request") + return } return @@ -641,6 +647,7 @@ func (client BaseClient) DescribeImage(ctx context.Context, imageURL ImageURL, m result, err = client.DescribeImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "DescribeImage", resp, "Failure responding to request") + return } return @@ -732,6 +739,7 @@ func (client BaseClient) DescribeImageInStream(ctx context.Context, imageParamet result, err = client.DescribeImageInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "DescribeImageInStream", resp, "Failure responding to request") + return } return @@ -822,6 +830,7 @@ func (client BaseClient) DetectObjects(ctx context.Context, imageURL ImageURL) ( result, err = client.DetectObjectsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "DetectObjects", resp, "Failure responding to request") + return } return @@ -893,6 +902,7 @@ func (client BaseClient) DetectObjectsInStream(ctx context.Context, imageParamet result, err = client.DetectObjectsInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "DetectObjectsInStream", resp, "Failure responding to request") + return } return @@ -983,6 +993,7 @@ func (client BaseClient) GenerateThumbnail(ctx context.Context, width int32, hei result, err = client.GenerateThumbnailResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "GenerateThumbnail", resp, "Failure responding to request") + return } return @@ -1082,6 +1093,7 @@ func (client BaseClient) GenerateThumbnailInStream(ctx context.Context, width in result, err = client.GenerateThumbnailInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "GenerateThumbnailInStream", resp, "Failure responding to request") + return } return @@ -1170,6 +1182,7 @@ func (client BaseClient) GetAreaOfInterest(ctx context.Context, imageURL ImageUR result, err = client.GetAreaOfInterestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "GetAreaOfInterest", resp, "Failure responding to request") + return } return @@ -1242,6 +1255,7 @@ func (client BaseClient) GetAreaOfInterestInStream(ctx context.Context, imagePar result, err = client.GetAreaOfInterestInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "GetAreaOfInterestInStream", resp, "Failure responding to request") + return } return @@ -1311,6 +1325,7 @@ func (client BaseClient) GetReadOperationResult(ctx context.Context, operationID result, err = client.GetReadOperationResultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "GetReadOperationResult", resp, "Failure responding to request") + return } return @@ -1382,6 +1397,7 @@ func (client BaseClient) GetTextOperationResult(ctx context.Context, operationID result, err = client.GetTextOperationResultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "GetTextOperationResult", resp, "Failure responding to request") + return } return @@ -1453,6 +1469,7 @@ func (client BaseClient) ListModels(ctx context.Context) (result ListModelsResul result, err = client.ListModelsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "ListModels", resp, "Failure responding to request") + return } return @@ -1534,6 +1551,7 @@ func (client BaseClient) RecognizePrintedText(ctx context.Context, detectOrienta result, err = client.RecognizePrintedTextResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "RecognizePrintedText", resp, "Failure responding to request") + return } return @@ -1621,6 +1639,7 @@ func (client BaseClient) RecognizePrintedTextInStream(ctx context.Context, detec result, err = client.RecognizePrintedTextInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "RecognizePrintedTextInStream", resp, "Failure responding to request") + return } return @@ -1708,6 +1727,7 @@ func (client BaseClient) RecognizeText(ctx context.Context, imageURL ImageURL, m result, err = client.RecognizeTextResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "RecognizeText", resp, "Failure responding to request") + return } return @@ -1783,6 +1803,7 @@ func (client BaseClient) RecognizeTextInStream(ctx context.Context, imageParamet result, err = client.RecognizeTextInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "RecognizeTextInStream", resp, "Failure responding to request") + return } return @@ -1871,6 +1892,7 @@ func (client BaseClient) TagImage(ctx context.Context, imageURL ImageURL, langua result, err = client.TagImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "TagImage", resp, "Failure responding to request") + return } return @@ -1957,6 +1979,7 @@ func (client BaseClient) TagImageInStream(ctx context.Context, imageParameter io result, err = client.TagImageInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "TagImageInStream", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v2.0/luis/authoring/apps.go b/services/cognitiveservices/v2.0/luis/authoring/apps.go index b573e888ed38..11d68ae00ffd 100644 --- a/services/cognitiveservices/v2.0/luis/authoring/apps.go +++ b/services/cognitiveservices/v2.0/luis/authoring/apps.go @@ -76,6 +76,7 @@ func (client AppsClient) Add(ctx context.Context, applicationCreateObject Applic result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Add", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client AppsClient) AddCustomPrebuiltDomain(ctx context.Context, prebuiltDo result, err = client.AddCustomPrebuiltDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "AddCustomPrebuiltDomain", resp, "Failure responding to request") + return } return @@ -213,6 +215,7 @@ func (client AppsClient) Delete(ctx context.Context, appID uuid.UUID, force *boo result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Delete", resp, "Failure responding to request") + return } return @@ -291,6 +294,7 @@ func (client AppsClient) DownloadQueryLogs(ctx context.Context, appID uuid.UUID) result, err = client.DownloadQueryLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "DownloadQueryLogs", resp, "Failure responding to request") + return } return @@ -360,6 +364,7 @@ func (client AppsClient) Get(ctx context.Context, appID uuid.UUID) (result Appli result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Get", resp, "Failure responding to request") + return } return @@ -430,6 +435,7 @@ func (client AppsClient) GetPublishSettings(ctx context.Context, appID uuid.UUID result, err = client.GetPublishSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "GetPublishSettings", resp, "Failure responding to request") + return } return @@ -500,6 +506,7 @@ func (client AppsClient) GetSettings(ctx context.Context, appID uuid.UUID) (resu result, err = client.GetSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "GetSettings", resp, "Failure responding to request") + return } return @@ -572,6 +579,7 @@ func (client AppsClient) Import(ctx context.Context, luisApp LuisApp, appName st result, err = client.ImportResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Import", resp, "Failure responding to request") + return } return @@ -659,6 +667,7 @@ func (client AppsClient) List(ctx context.Context, skip *int32, take *int32) (re result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "List", resp, "Failure responding to request") + return } return @@ -736,6 +745,7 @@ func (client AppsClient) ListAvailableCustomPrebuiltDomains(ctx context.Context) result, err = client.ListAvailableCustomPrebuiltDomainsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListAvailableCustomPrebuiltDomains", resp, "Failure responding to request") + return } return @@ -802,6 +812,7 @@ func (client AppsClient) ListAvailableCustomPrebuiltDomainsForCulture(ctx contex result, err = client.ListAvailableCustomPrebuiltDomainsForCultureResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListAvailableCustomPrebuiltDomainsForCulture", resp, "Failure responding to request") + return } return @@ -870,6 +881,7 @@ func (client AppsClient) ListCortanaEndpoints(ctx context.Context) (result Perso result, err = client.ListCortanaEndpointsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListCortanaEndpoints", resp, "Failure responding to request") + return } return @@ -934,6 +946,7 @@ func (client AppsClient) ListDomains(ctx context.Context) (result ListString, er result, err = client.ListDomainsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListDomains", resp, "Failure responding to request") + return } return @@ -1000,6 +1013,7 @@ func (client AppsClient) ListEndpoints(ctx context.Context, appID uuid.UUID) (re result, err = client.ListEndpointsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListEndpoints", resp, "Failure responding to request") + return } return @@ -1069,6 +1083,7 @@ func (client AppsClient) ListSupportedCultures(ctx context.Context) (result List result, err = client.ListSupportedCulturesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListSupportedCultures", resp, "Failure responding to request") + return } return @@ -1133,6 +1148,7 @@ func (client AppsClient) ListUsageScenarios(ctx context.Context) (result ListStr result, err = client.ListUsageScenariosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListUsageScenarios", resp, "Failure responding to request") + return } return @@ -1201,6 +1217,7 @@ func (client AppsClient) PackagePublishedApplicationAsGzip(ctx context.Context, result, err = client.PackagePublishedApplicationAsGzipResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "PackagePublishedApplicationAsGzip", resp, "Failure responding to request") + return } return @@ -1272,6 +1289,7 @@ func (client AppsClient) PackageTrainedApplicationAsGzip(ctx context.Context, ap result, err = client.PackageTrainedApplicationAsGzipResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "PackageTrainedApplicationAsGzip", resp, "Failure responding to request") + return } return @@ -1344,6 +1362,7 @@ func (client AppsClient) Publish(ctx context.Context, appID uuid.UUID, applicati result, err = client.PublishResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Publish", resp, "Failure responding to request") + return } return @@ -1417,6 +1436,7 @@ func (client AppsClient) Update(ctx context.Context, appID uuid.UUID, applicatio result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Update", resp, "Failure responding to request") + return } return @@ -1490,6 +1510,7 @@ func (client AppsClient) UpdatePublishSettings(ctx context.Context, appID uuid.U result, err = client.UpdatePublishSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "UpdatePublishSettings", resp, "Failure responding to request") + return } return @@ -1563,6 +1584,7 @@ func (client AppsClient) UpdateSettings(ctx context.Context, appID uuid.UUID, ap result, err = client.UpdateSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "UpdateSettings", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v2.0/luis/authoring/azureaccounts.go b/services/cognitiveservices/v2.0/luis/authoring/azureaccounts.go index 93b43b193508..c5bf7b8ddaeb 100644 --- a/services/cognitiveservices/v2.0/luis/authoring/azureaccounts.go +++ b/services/cognitiveservices/v2.0/luis/authoring/azureaccounts.go @@ -78,6 +78,7 @@ func (client AzureAccountsClient) AssignToApp(ctx context.Context, appID uuid.UU result, err = client.AssignToAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AzureAccountsClient", "AssignToApp", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client AzureAccountsClient) GetAssigned(ctx context.Context, appID uuid.UU result, err = client.GetAssignedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AzureAccountsClient", "GetAssigned", resp, "Failure responding to request") + return } return @@ -221,6 +223,7 @@ func (client AzureAccountsClient) ListUserLUISAccounts(ctx context.Context) (res result, err = client.ListUserLUISAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AzureAccountsClient", "ListUserLUISAccounts", resp, "Failure responding to request") + return } return @@ -298,6 +301,7 @@ func (client AzureAccountsClient) RemoveFromApp(ctx context.Context, appID uuid. result, err = client.RemoveFromAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AzureAccountsClient", "RemoveFromApp", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v2.0/luis/authoring/examples.go b/services/cognitiveservices/v2.0/luis/authoring/examples.go index 49c46cd39344..0ee72dbbdbc5 100644 --- a/services/cognitiveservices/v2.0/luis/authoring/examples.go +++ b/services/cognitiveservices/v2.0/luis/authoring/examples.go @@ -69,6 +69,7 @@ func (client ExamplesClient) Add(ctx context.Context, appID uuid.UUID, versionID result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ExamplesClient", "Add", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client ExamplesClient) Batch(ctx context.Context, appID uuid.UUID, version result, err = client.BatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ExamplesClient", "Batch", resp, "Failure responding to request") + return } return @@ -225,6 +227,7 @@ func (client ExamplesClient) Delete(ctx context.Context, appID uuid.UUID, versio result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ExamplesClient", "Delete", resp, "Failure responding to request") + return } return @@ -312,6 +315,7 @@ func (client ExamplesClient) List(ctx context.Context, appID uuid.UUID, versionI result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ExamplesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v2.0/luis/authoring/features.go b/services/cognitiveservices/v2.0/luis/authoring/features.go index 4b130e9b131c..8ae29f627b2d 100644 --- a/services/cognitiveservices/v2.0/luis/authoring/features.go +++ b/services/cognitiveservices/v2.0/luis/authoring/features.go @@ -70,6 +70,7 @@ func (client FeaturesClient) AddPhraseList(ctx context.Context, appID uuid.UUID, result, err = client.AddPhraseListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "AddPhraseList", resp, "Failure responding to request") + return } return @@ -145,6 +146,7 @@ func (client FeaturesClient) DeletePhraseList(ctx context.Context, appID uuid.UU result, err = client.DeletePhraseListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "DeletePhraseList", resp, "Failure responding to request") + return } return @@ -219,6 +221,7 @@ func (client FeaturesClient) GetPhraseList(ctx context.Context, appID uuid.UUID, result, err = client.GetPhraseListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "GetPhraseList", resp, "Failure responding to request") + return } return @@ -306,6 +309,7 @@ func (client FeaturesClient) List(ctx context.Context, appID uuid.UUID, versionI result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "List", resp, "Failure responding to request") + return } return @@ -406,6 +410,7 @@ func (client FeaturesClient) ListApplicationVersionPatternFeatures(ctx context.C result, err = client.ListApplicationVersionPatternFeaturesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "ListApplicationVersionPatternFeatures", resp, "Failure responding to request") + return } return @@ -505,6 +510,7 @@ func (client FeaturesClient) ListPhraseLists(ctx context.Context, appID uuid.UUI result, err = client.ListPhraseListsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "ListPhraseLists", resp, "Failure responding to request") + return } return @@ -594,6 +600,7 @@ func (client FeaturesClient) UpdatePhraseList(ctx context.Context, appID uuid.UU result, err = client.UpdatePhraseListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "UpdatePhraseList", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v2.0/luis/authoring/model.go b/services/cognitiveservices/v2.0/luis/authoring/model.go index d707d4ac7f13..93b5f0a58eb3 100644 --- a/services/cognitiveservices/v2.0/luis/authoring/model.go +++ b/services/cognitiveservices/v2.0/luis/authoring/model.go @@ -69,6 +69,7 @@ func (client ModelClient) AddClosedList(ctx context.Context, appID uuid.UUID, ve result, err = client.AddClosedListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddClosedList", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client ModelClient) AddCompositeEntity(ctx context.Context, appID uuid.UUI result, err = client.AddCompositeEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddCompositeEntity", resp, "Failure responding to request") + return } return @@ -221,6 +223,7 @@ func (client ModelClient) AddCompositeEntityChild(ctx context.Context, appID uui result, err = client.AddCompositeEntityChildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddCompositeEntityChild", resp, "Failure responding to request") + return } return @@ -298,6 +301,7 @@ func (client ModelClient) AddCustomPrebuiltDomain(ctx context.Context, appID uui result, err = client.AddCustomPrebuiltDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddCustomPrebuiltDomain", resp, "Failure responding to request") + return } return @@ -374,6 +378,7 @@ func (client ModelClient) AddCustomPrebuiltEntity(ctx context.Context, appID uui result, err = client.AddCustomPrebuiltEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddCustomPrebuiltEntity", resp, "Failure responding to request") + return } return @@ -450,6 +455,7 @@ func (client ModelClient) AddCustomPrebuiltIntent(ctx context.Context, appID uui result, err = client.AddCustomPrebuiltIntentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddCustomPrebuiltIntent", resp, "Failure responding to request") + return } return @@ -525,6 +531,7 @@ func (client ModelClient) AddEntity(ctx context.Context, appID uuid.UUID, versio result, err = client.AddEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddEntity", resp, "Failure responding to request") + return } return @@ -601,6 +608,7 @@ func (client ModelClient) AddExplicitListItem(ctx context.Context, appID uuid.UU result, err = client.AddExplicitListItemResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddExplicitListItem", resp, "Failure responding to request") + return } return @@ -677,6 +685,7 @@ func (client ModelClient) AddHierarchicalEntity(ctx context.Context, appID uuid. result, err = client.AddHierarchicalEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddHierarchicalEntity", resp, "Failure responding to request") + return } return @@ -754,6 +763,7 @@ func (client ModelClient) AddHierarchicalEntityChild(ctx context.Context, appID result, err = client.AddHierarchicalEntityChildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddHierarchicalEntityChild", resp, "Failure responding to request") + return } return @@ -830,6 +840,7 @@ func (client ModelClient) AddIntent(ctx context.Context, appID uuid.UUID, versio result, err = client.AddIntentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddIntent", resp, "Failure responding to request") + return } return @@ -911,6 +922,7 @@ func (client ModelClient) AddPrebuilt(ctx context.Context, appID uuid.UUID, vers result, err = client.AddPrebuiltResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddPrebuilt", resp, "Failure responding to request") + return } return @@ -987,6 +999,7 @@ func (client ModelClient) AddSubList(ctx context.Context, appID uuid.UUID, versi result, err = client.AddSubListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddSubList", resp, "Failure responding to request") + return } return @@ -1064,6 +1077,7 @@ func (client ModelClient) CreateClosedListEntityRole(ctx context.Context, appID result, err = client.CreateClosedListEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateClosedListEntityRole", resp, "Failure responding to request") + return } return @@ -1141,6 +1155,7 @@ func (client ModelClient) CreateCompositeEntityRole(ctx context.Context, appID u result, err = client.CreateCompositeEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateCompositeEntityRole", resp, "Failure responding to request") + return } return @@ -1218,6 +1233,7 @@ func (client ModelClient) CreateCustomPrebuiltEntityRole(ctx context.Context, ap result, err = client.CreateCustomPrebuiltEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateCustomPrebuiltEntityRole", resp, "Failure responding to request") + return } return @@ -1295,6 +1311,7 @@ func (client ModelClient) CreateEntityRole(ctx context.Context, appID uuid.UUID, result, err = client.CreateEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateEntityRole", resp, "Failure responding to request") + return } return @@ -1372,6 +1389,7 @@ func (client ModelClient) CreateHierarchicalEntityRole(ctx context.Context, appI result, err = client.CreateHierarchicalEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateHierarchicalEntityRole", resp, "Failure responding to request") + return } return @@ -1449,6 +1467,7 @@ func (client ModelClient) CreatePatternAnyEntityModel(ctx context.Context, appID result, err = client.CreatePatternAnyEntityModelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreatePatternAnyEntityModel", resp, "Failure responding to request") + return } return @@ -1525,6 +1544,7 @@ func (client ModelClient) CreatePatternAnyEntityRole(ctx context.Context, appID result, err = client.CreatePatternAnyEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreatePatternAnyEntityRole", resp, "Failure responding to request") + return } return @@ -1602,6 +1622,7 @@ func (client ModelClient) CreatePrebuiltEntityRole(ctx context.Context, appID uu result, err = client.CreatePrebuiltEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreatePrebuiltEntityRole", resp, "Failure responding to request") + return } return @@ -1679,6 +1700,7 @@ func (client ModelClient) CreateRegexEntityModel(ctx context.Context, appID uuid result, err = client.CreateRegexEntityModelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateRegexEntityModel", resp, "Failure responding to request") + return } return @@ -1755,6 +1777,7 @@ func (client ModelClient) CreateRegexEntityRole(ctx context.Context, appID uuid. result, err = client.CreateRegexEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateRegexEntityRole", resp, "Failure responding to request") + return } return @@ -1831,6 +1854,7 @@ func (client ModelClient) DeleteClosedList(ctx context.Context, appID uuid.UUID, result, err = client.DeleteClosedListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteClosedList", resp, "Failure responding to request") + return } return @@ -1906,6 +1930,7 @@ func (client ModelClient) DeleteClosedListEntityRole(ctx context.Context, appID result, err = client.DeleteClosedListEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteClosedListEntityRole", resp, "Failure responding to request") + return } return @@ -1981,6 +2006,7 @@ func (client ModelClient) DeleteCompositeEntity(ctx context.Context, appID uuid. result, err = client.DeleteCompositeEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteCompositeEntity", resp, "Failure responding to request") + return } return @@ -2056,6 +2082,7 @@ func (client ModelClient) DeleteCompositeEntityChild(ctx context.Context, appID result, err = client.DeleteCompositeEntityChildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteCompositeEntityChild", resp, "Failure responding to request") + return } return @@ -2132,6 +2159,7 @@ func (client ModelClient) DeleteCompositeEntityRole(ctx context.Context, appID u result, err = client.DeleteCompositeEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteCompositeEntityRole", resp, "Failure responding to request") + return } return @@ -2208,6 +2236,7 @@ func (client ModelClient) DeleteCustomEntityRole(ctx context.Context, appID uuid result, err = client.DeleteCustomEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteCustomEntityRole", resp, "Failure responding to request") + return } return @@ -2283,6 +2312,7 @@ func (client ModelClient) DeleteCustomPrebuiltDomain(ctx context.Context, appID result, err = client.DeleteCustomPrebuiltDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteCustomPrebuiltDomain", resp, "Failure responding to request") + return } return @@ -2357,6 +2387,7 @@ func (client ModelClient) DeleteEntity(ctx context.Context, appID uuid.UUID, ver result, err = client.DeleteEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteEntity", resp, "Failure responding to request") + return } return @@ -2432,6 +2463,7 @@ func (client ModelClient) DeleteEntityRole(ctx context.Context, appID uuid.UUID, result, err = client.DeleteEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteEntityRole", resp, "Failure responding to request") + return } return @@ -2508,6 +2540,7 @@ func (client ModelClient) DeleteExplicitListItem(ctx context.Context, appID uuid result, err = client.DeleteExplicitListItemResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteExplicitListItem", resp, "Failure responding to request") + return } return @@ -2583,6 +2616,7 @@ func (client ModelClient) DeleteHierarchicalEntity(ctx context.Context, appID uu result, err = client.DeleteHierarchicalEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteHierarchicalEntity", resp, "Failure responding to request") + return } return @@ -2658,6 +2692,7 @@ func (client ModelClient) DeleteHierarchicalEntityChild(ctx context.Context, app result, err = client.DeleteHierarchicalEntityChildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteHierarchicalEntityChild", resp, "Failure responding to request") + return } return @@ -2734,6 +2769,7 @@ func (client ModelClient) DeleteHierarchicalEntityRole(ctx context.Context, appI result, err = client.DeleteHierarchicalEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteHierarchicalEntityRole", resp, "Failure responding to request") + return } return @@ -2811,6 +2847,7 @@ func (client ModelClient) DeleteIntent(ctx context.Context, appID uuid.UUID, ver result, err = client.DeleteIntentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteIntent", resp, "Failure responding to request") + return } return @@ -2893,6 +2930,7 @@ func (client ModelClient) DeletePatternAnyEntityModel(ctx context.Context, appID result, err = client.DeletePatternAnyEntityModelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeletePatternAnyEntityModel", resp, "Failure responding to request") + return } return @@ -2968,6 +3006,7 @@ func (client ModelClient) DeletePatternAnyEntityRole(ctx context.Context, appID result, err = client.DeletePatternAnyEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeletePatternAnyEntityRole", resp, "Failure responding to request") + return } return @@ -3043,6 +3082,7 @@ func (client ModelClient) DeletePrebuilt(ctx context.Context, appID uuid.UUID, v result, err = client.DeletePrebuiltResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeletePrebuilt", resp, "Failure responding to request") + return } return @@ -3118,6 +3158,7 @@ func (client ModelClient) DeletePrebuiltEntityRole(ctx context.Context, appID uu result, err = client.DeletePrebuiltEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeletePrebuiltEntityRole", resp, "Failure responding to request") + return } return @@ -3193,6 +3234,7 @@ func (client ModelClient) DeleteRegexEntityModel(ctx context.Context, appID uuid result, err = client.DeleteRegexEntityModelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteRegexEntityModel", resp, "Failure responding to request") + return } return @@ -3268,6 +3310,7 @@ func (client ModelClient) DeleteRegexEntityRole(ctx context.Context, appID uuid. result, err = client.DeleteRegexEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteRegexEntityRole", resp, "Failure responding to request") + return } return @@ -3344,6 +3387,7 @@ func (client ModelClient) DeleteSubList(ctx context.Context, appID uuid.UUID, ve result, err = client.DeleteSubListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteSubList", resp, "Failure responding to request") + return } return @@ -3433,6 +3477,7 @@ func (client ModelClient) ExamplesMethod(ctx context.Context, appID uuid.UUID, v result, err = client.ExamplesMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ExamplesMethod", resp, "Failure responding to request") + return } return @@ -3520,6 +3565,7 @@ func (client ModelClient) GetClosedList(ctx context.Context, appID uuid.UUID, ve result, err = client.GetClosedListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetClosedList", resp, "Failure responding to request") + return } return @@ -3595,6 +3641,7 @@ func (client ModelClient) GetClosedListEntityRole(ctx context.Context, appID uui result, err = client.GetClosedListEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetClosedListEntityRole", resp, "Failure responding to request") + return } return @@ -3670,6 +3717,7 @@ func (client ModelClient) GetCompositeEntity(ctx context.Context, appID uuid.UUI result, err = client.GetCompositeEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetCompositeEntity", resp, "Failure responding to request") + return } return @@ -3745,6 +3793,7 @@ func (client ModelClient) GetCompositeEntityRole(ctx context.Context, appID uuid result, err = client.GetCompositeEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetCompositeEntityRole", resp, "Failure responding to request") + return } return @@ -3821,6 +3870,7 @@ func (client ModelClient) GetCustomEntityRole(ctx context.Context, appID uuid.UU result, err = client.GetCustomEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetCustomEntityRole", resp, "Failure responding to request") + return } return @@ -3896,6 +3946,7 @@ func (client ModelClient) GetEntity(ctx context.Context, appID uuid.UUID, versio result, err = client.GetEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetEntity", resp, "Failure responding to request") + return } return @@ -3971,6 +4022,7 @@ func (client ModelClient) GetEntityRole(ctx context.Context, appID uuid.UUID, ve result, err = client.GetEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetEntityRole", resp, "Failure responding to request") + return } return @@ -4046,6 +4098,7 @@ func (client ModelClient) GetExplicitList(ctx context.Context, appID uuid.UUID, result, err = client.GetExplicitListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetExplicitList", resp, "Failure responding to request") + return } return @@ -4121,6 +4174,7 @@ func (client ModelClient) GetExplicitListItem(ctx context.Context, appID uuid.UU result, err = client.GetExplicitListItemResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetExplicitListItem", resp, "Failure responding to request") + return } return @@ -4196,6 +4250,7 @@ func (client ModelClient) GetHierarchicalEntity(ctx context.Context, appID uuid. result, err = client.GetHierarchicalEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetHierarchicalEntity", resp, "Failure responding to request") + return } return @@ -4272,6 +4327,7 @@ func (client ModelClient) GetHierarchicalEntityChild(ctx context.Context, appID result, err = client.GetHierarchicalEntityChildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetHierarchicalEntityChild", resp, "Failure responding to request") + return } return @@ -4348,6 +4404,7 @@ func (client ModelClient) GetHierarchicalEntityRole(ctx context.Context, appID u result, err = client.GetHierarchicalEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetHierarchicalEntityRole", resp, "Failure responding to request") + return } return @@ -4423,6 +4480,7 @@ func (client ModelClient) GetIntent(ctx context.Context, appID uuid.UUID, versio result, err = client.GetIntentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetIntent", resp, "Failure responding to request") + return } return @@ -4497,6 +4555,7 @@ func (client ModelClient) GetPatternAnyEntityInfo(ctx context.Context, appID uui result, err = client.GetPatternAnyEntityInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetPatternAnyEntityInfo", resp, "Failure responding to request") + return } return @@ -4572,6 +4631,7 @@ func (client ModelClient) GetPatternAnyEntityRole(ctx context.Context, appID uui result, err = client.GetPatternAnyEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetPatternAnyEntityRole", resp, "Failure responding to request") + return } return @@ -4647,6 +4707,7 @@ func (client ModelClient) GetPrebuilt(ctx context.Context, appID uuid.UUID, vers result, err = client.GetPrebuiltResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetPrebuilt", resp, "Failure responding to request") + return } return @@ -4722,6 +4783,7 @@ func (client ModelClient) GetPrebuiltEntityRole(ctx context.Context, appID uuid. result, err = client.GetPrebuiltEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetPrebuiltEntityRole", resp, "Failure responding to request") + return } return @@ -4797,6 +4859,7 @@ func (client ModelClient) GetRegexEntityEntityInfo(ctx context.Context, appID uu result, err = client.GetRegexEntityEntityInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetRegexEntityEntityInfo", resp, "Failure responding to request") + return } return @@ -4872,6 +4935,7 @@ func (client ModelClient) GetRegexEntityRole(ctx context.Context, appID uuid.UUI result, err = client.GetRegexEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetRegexEntityRole", resp, "Failure responding to request") + return } return @@ -4947,6 +5011,7 @@ func (client ModelClient) ListClosedListEntityRoles(ctx context.Context, appID u result, err = client.ListClosedListEntityRolesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListClosedListEntityRoles", resp, "Failure responding to request") + return } return @@ -5034,6 +5099,7 @@ func (client ModelClient) ListClosedLists(ctx context.Context, appID uuid.UUID, result, err = client.ListClosedListsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListClosedLists", resp, "Failure responding to request") + return } return @@ -5133,6 +5199,7 @@ func (client ModelClient) ListCompositeEntities(ctx context.Context, appID uuid. result, err = client.ListCompositeEntitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCompositeEntities", resp, "Failure responding to request") + return } return @@ -5219,6 +5286,7 @@ func (client ModelClient) ListCompositeEntityRoles(ctx context.Context, appID uu result, err = client.ListCompositeEntityRolesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCompositeEntityRoles", resp, "Failure responding to request") + return } return @@ -5292,6 +5360,7 @@ func (client ModelClient) ListCustomPrebuiltEntities(ctx context.Context, appID result, err = client.ListCustomPrebuiltEntitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCustomPrebuiltEntities", resp, "Failure responding to request") + return } return @@ -5365,6 +5434,7 @@ func (client ModelClient) ListCustomPrebuiltEntityRoles(ctx context.Context, app result, err = client.ListCustomPrebuiltEntityRolesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCustomPrebuiltEntityRoles", resp, "Failure responding to request") + return } return @@ -5439,6 +5509,7 @@ func (client ModelClient) ListCustomPrebuiltIntents(ctx context.Context, appID u result, err = client.ListCustomPrebuiltIntentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCustomPrebuiltIntents", resp, "Failure responding to request") + return } return @@ -5512,6 +5583,7 @@ func (client ModelClient) ListCustomPrebuiltModels(ctx context.Context, appID uu result, err = client.ListCustomPrebuiltModelsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCustomPrebuiltModels", resp, "Failure responding to request") + return } return @@ -5598,6 +5670,7 @@ func (client ModelClient) ListEntities(ctx context.Context, appID uuid.UUID, ver result, err = client.ListEntitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListEntities", resp, "Failure responding to request") + return } return @@ -5684,6 +5757,7 @@ func (client ModelClient) ListEntityRoles(ctx context.Context, appID uuid.UUID, result, err = client.ListEntityRolesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListEntityRoles", resp, "Failure responding to request") + return } return @@ -5769,6 +5843,7 @@ func (client ModelClient) ListEntitySuggestions(ctx context.Context, appID uuid. result, err = client.ListEntitySuggestionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListEntitySuggestions", resp, "Failure responding to request") + return } return @@ -5864,6 +5939,7 @@ func (client ModelClient) ListHierarchicalEntities(ctx context.Context, appID uu result, err = client.ListHierarchicalEntitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListHierarchicalEntities", resp, "Failure responding to request") + return } return @@ -5950,6 +6026,7 @@ func (client ModelClient) ListHierarchicalEntityRoles(ctx context.Context, appID result, err = client.ListHierarchicalEntityRolesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListHierarchicalEntityRoles", resp, "Failure responding to request") + return } return @@ -6037,6 +6114,7 @@ func (client ModelClient) ListIntents(ctx context.Context, appID uuid.UUID, vers result, err = client.ListIntentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListIntents", resp, "Failure responding to request") + return } return @@ -6134,6 +6212,7 @@ func (client ModelClient) ListIntentSuggestions(ctx context.Context, appID uuid. result, err = client.ListIntentSuggestionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListIntentSuggestions", resp, "Failure responding to request") + return } return @@ -6229,6 +6308,7 @@ func (client ModelClient) ListModels(ctx context.Context, appID uuid.UUID, versi result, err = client.ListModelsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListModels", resp, "Failure responding to request") + return } return @@ -6328,6 +6408,7 @@ func (client ModelClient) ListPatternAnyEntityInfos(ctx context.Context, appID u result, err = client.ListPatternAnyEntityInfosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListPatternAnyEntityInfos", resp, "Failure responding to request") + return } return @@ -6414,6 +6495,7 @@ func (client ModelClient) ListPatternAnyEntityRoles(ctx context.Context, appID u result, err = client.ListPatternAnyEntityRolesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListPatternAnyEntityRoles", resp, "Failure responding to request") + return } return @@ -6487,6 +6569,7 @@ func (client ModelClient) ListPrebuiltEntities(ctx context.Context, appID uuid.U result, err = client.ListPrebuiltEntitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListPrebuiltEntities", resp, "Failure responding to request") + return } return @@ -6560,6 +6643,7 @@ func (client ModelClient) ListPrebuiltEntityRoles(ctx context.Context, appID uui result, err = client.ListPrebuiltEntityRolesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListPrebuiltEntityRoles", resp, "Failure responding to request") + return } return @@ -6647,6 +6731,7 @@ func (client ModelClient) ListPrebuilts(ctx context.Context, appID uuid.UUID, ve result, err = client.ListPrebuiltsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListPrebuilts", resp, "Failure responding to request") + return } return @@ -6746,6 +6831,7 @@ func (client ModelClient) ListRegexEntityInfos(ctx context.Context, appID uuid.U result, err = client.ListRegexEntityInfosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListRegexEntityInfos", resp, "Failure responding to request") + return } return @@ -6832,6 +6918,7 @@ func (client ModelClient) ListRegexEntityRoles(ctx context.Context, appID uuid.U result, err = client.ListRegexEntityRolesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListRegexEntityRoles", resp, "Failure responding to request") + return } return @@ -6907,6 +6994,7 @@ func (client ModelClient) PatchClosedList(ctx context.Context, appID uuid.UUID, result, err = client.PatchClosedListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "PatchClosedList", resp, "Failure responding to request") + return } return @@ -6984,6 +7072,7 @@ func (client ModelClient) UpdateClosedList(ctx context.Context, appID uuid.UUID, result, err = client.UpdateClosedListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateClosedList", resp, "Failure responding to request") + return } return @@ -7062,6 +7151,7 @@ func (client ModelClient) UpdateClosedListEntityRole(ctx context.Context, appID result, err = client.UpdateClosedListEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateClosedListEntityRole", resp, "Failure responding to request") + return } return @@ -7140,6 +7230,7 @@ func (client ModelClient) UpdateCompositeEntity(ctx context.Context, appID uuid. result, err = client.UpdateCompositeEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateCompositeEntity", resp, "Failure responding to request") + return } return @@ -7218,6 +7309,7 @@ func (client ModelClient) UpdateCompositeEntityRole(ctx context.Context, appID u result, err = client.UpdateCompositeEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateCompositeEntityRole", resp, "Failure responding to request") + return } return @@ -7297,6 +7389,7 @@ func (client ModelClient) UpdateCustomPrebuiltEntityRole(ctx context.Context, ap result, err = client.UpdateCustomPrebuiltEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateCustomPrebuiltEntityRole", resp, "Failure responding to request") + return } return @@ -7375,6 +7468,7 @@ func (client ModelClient) UpdateEntity(ctx context.Context, appID uuid.UUID, ver result, err = client.UpdateEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateEntity", resp, "Failure responding to request") + return } return @@ -7453,6 +7547,7 @@ func (client ModelClient) UpdateEntityRole(ctx context.Context, appID uuid.UUID, result, err = client.UpdateEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateEntityRole", resp, "Failure responding to request") + return } return @@ -7532,6 +7627,7 @@ func (client ModelClient) UpdateExplicitListItem(ctx context.Context, appID uuid result, err = client.UpdateExplicitListItemResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateExplicitListItem", resp, "Failure responding to request") + return } return @@ -7611,6 +7707,7 @@ func (client ModelClient) UpdateHierarchicalEntity(ctx context.Context, appID uu result, err = client.UpdateHierarchicalEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateHierarchicalEntity", resp, "Failure responding to request") + return } return @@ -7690,6 +7787,7 @@ func (client ModelClient) UpdateHierarchicalEntityChild(ctx context.Context, app result, err = client.UpdateHierarchicalEntityChildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateHierarchicalEntityChild", resp, "Failure responding to request") + return } return @@ -7769,6 +7867,7 @@ func (client ModelClient) UpdateHierarchicalEntityRole(ctx context.Context, appI result, err = client.UpdateHierarchicalEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateHierarchicalEntityRole", resp, "Failure responding to request") + return } return @@ -7847,6 +7946,7 @@ func (client ModelClient) UpdateIntent(ctx context.Context, appID uuid.UUID, ver result, err = client.UpdateIntentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateIntent", resp, "Failure responding to request") + return } return @@ -7924,6 +8024,7 @@ func (client ModelClient) UpdatePatternAnyEntityModel(ctx context.Context, appID result, err = client.UpdatePatternAnyEntityModelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdatePatternAnyEntityModel", resp, "Failure responding to request") + return } return @@ -8002,6 +8103,7 @@ func (client ModelClient) UpdatePatternAnyEntityRole(ctx context.Context, appID result, err = client.UpdatePatternAnyEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdatePatternAnyEntityRole", resp, "Failure responding to request") + return } return @@ -8081,6 +8183,7 @@ func (client ModelClient) UpdatePrebuiltEntityRole(ctx context.Context, appID uu result, err = client.UpdatePrebuiltEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdatePrebuiltEntityRole", resp, "Failure responding to request") + return } return @@ -8159,6 +8262,7 @@ func (client ModelClient) UpdateRegexEntityModel(ctx context.Context, appID uuid result, err = client.UpdateRegexEntityModelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateRegexEntityModel", resp, "Failure responding to request") + return } return @@ -8237,6 +8341,7 @@ func (client ModelClient) UpdateRegexEntityRole(ctx context.Context, appID uuid. result, err = client.UpdateRegexEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateRegexEntityRole", resp, "Failure responding to request") + return } return @@ -8316,6 +8421,7 @@ func (client ModelClient) UpdateSubList(ctx context.Context, appID uuid.UUID, ve result, err = client.UpdateSubListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateSubList", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v2.0/luis/authoring/pattern.go b/services/cognitiveservices/v2.0/luis/authoring/pattern.go index 7d2ce9b4299c..e10ed11b3f7f 100644 --- a/services/cognitiveservices/v2.0/luis/authoring/pattern.go +++ b/services/cognitiveservices/v2.0/luis/authoring/pattern.go @@ -69,6 +69,7 @@ func (client PatternClient) AddPattern(ctx context.Context, appID uuid.UUID, ver result, err = client.AddPatternResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.PatternClient", "AddPattern", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client PatternClient) BatchAddPatterns(ctx context.Context, appID uuid.UUI result, err = client.BatchAddPatternsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.PatternClient", "BatchAddPatterns", resp, "Failure responding to request") + return } return @@ -225,6 +227,7 @@ func (client PatternClient) DeletePattern(ctx context.Context, appID uuid.UUID, result, err = client.DeletePatternResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.PatternClient", "DeletePattern", resp, "Failure responding to request") + return } return @@ -305,6 +308,7 @@ func (client PatternClient) DeletePatterns(ctx context.Context, appID uuid.UUID, result, err = client.DeletePatternsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.PatternClient", "DeletePatterns", resp, "Failure responding to request") + return } return @@ -394,6 +398,7 @@ func (client PatternClient) ListIntentPatterns(ctx context.Context, appID uuid.U result, err = client.ListIntentPatternsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.PatternClient", "ListIntentPatterns", resp, "Failure responding to request") + return } return @@ -494,6 +499,7 @@ func (client PatternClient) ListPatterns(ctx context.Context, appID uuid.UUID, v result, err = client.ListPatternsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.PatternClient", "ListPatterns", resp, "Failure responding to request") + return } return @@ -581,6 +587,7 @@ func (client PatternClient) UpdatePattern(ctx context.Context, appID uuid.UUID, result, err = client.UpdatePatternResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.PatternClient", "UpdatePattern", resp, "Failure responding to request") + return } return @@ -663,6 +670,7 @@ func (client PatternClient) UpdatePatterns(ctx context.Context, appID uuid.UUID, result, err = client.UpdatePatternsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.PatternClient", "UpdatePatterns", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v2.0/luis/authoring/permissions.go b/services/cognitiveservices/v2.0/luis/authoring/permissions.go index a265fd22b5ef..5ba5cc5e3ddc 100644 --- a/services/cognitiveservices/v2.0/luis/authoring/permissions.go +++ b/services/cognitiveservices/v2.0/luis/authoring/permissions.go @@ -68,6 +68,7 @@ func (client PermissionsClient) Add(ctx context.Context, appID uuid.UUID, userTo result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.PermissionsClient", "Add", resp, "Failure responding to request") + return } return @@ -142,6 +143,7 @@ func (client PermissionsClient) Delete(ctx context.Context, appID uuid.UUID, use result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.PermissionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -214,6 +216,7 @@ func (client PermissionsClient) List(ctx context.Context, appID uuid.UUID) (resu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.PermissionsClient", "List", resp, "Failure responding to request") + return } return @@ -286,6 +289,7 @@ func (client PermissionsClient) Update(ctx context.Context, appID uuid.UUID, col result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.PermissionsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v2.0/luis/authoring/settings.go b/services/cognitiveservices/v2.0/luis/authoring/settings.go index 0be35003fcd6..c2658b10074d 100644 --- a/services/cognitiveservices/v2.0/luis/authoring/settings.go +++ b/services/cognitiveservices/v2.0/luis/authoring/settings.go @@ -68,6 +68,7 @@ func (client SettingsClient) List(ctx context.Context, appID uuid.UUID, versionI result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.SettingsClient", "List", resp, "Failure responding to request") + return } return @@ -147,6 +148,7 @@ func (client SettingsClient) Update(ctx context.Context, appID uuid.UUID, versio result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.SettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v2.0/luis/authoring/train.go b/services/cognitiveservices/v2.0/luis/authoring/train.go index d74d41e7a689..d7bbfbd32e5a 100644 --- a/services/cognitiveservices/v2.0/luis/authoring/train.go +++ b/services/cognitiveservices/v2.0/luis/authoring/train.go @@ -69,6 +69,7 @@ func (client TrainClient) GetStatus(ctx context.Context, appID uuid.UUID, versio result, err = client.GetStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.TrainClient", "GetStatus", resp, "Failure responding to request") + return } return @@ -145,6 +146,7 @@ func (client TrainClient) TrainVersion(ctx context.Context, appID uuid.UUID, ver result, err = client.TrainVersionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.TrainClient", "TrainVersion", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v2.0/luis/authoring/versions.go b/services/cognitiveservices/v2.0/luis/authoring/versions.go index 25500c84eb83..35fd8dac4e64 100644 --- a/services/cognitiveservices/v2.0/luis/authoring/versions.go +++ b/services/cognitiveservices/v2.0/luis/authoring/versions.go @@ -69,6 +69,7 @@ func (client VersionsClient) Clone(ctx context.Context, appID uuid.UUID, version result, err = client.CloneResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Clone", resp, "Failure responding to request") + return } return @@ -143,6 +144,7 @@ func (client VersionsClient) Delete(ctx context.Context, appID uuid.UUID, versio result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -216,6 +218,7 @@ func (client VersionsClient) DeleteUnlabelledUtterance(ctx context.Context, appI result, err = client.DeleteUnlabelledUtteranceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "DeleteUnlabelledUtterance", resp, "Failure responding to request") + return } return @@ -290,6 +293,7 @@ func (client VersionsClient) Export(ctx context.Context, appID uuid.UUID, versio result, err = client.ExportResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Export", resp, "Failure responding to request") + return } return @@ -363,6 +367,7 @@ func (client VersionsClient) Get(ctx context.Context, appID uuid.UUID, versionID result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -437,6 +442,7 @@ func (client VersionsClient) Import(ctx context.Context, appID uuid.UUID, luisAp result, err = client.ImportResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Import", resp, "Failure responding to request") + return } return @@ -529,6 +535,7 @@ func (client VersionsClient) List(ctx context.Context, appID uuid.UUID, skip *in result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "List", resp, "Failure responding to request") + return } return @@ -614,6 +621,7 @@ func (client VersionsClient) Update(ctx context.Context, appID uuid.UUID, versio result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v2.0/luis/programmatic/apps.go b/services/cognitiveservices/v2.0/luis/programmatic/apps.go index 335c8200384e..b57378c8a1bb 100644 --- a/services/cognitiveservices/v2.0/luis/programmatic/apps.go +++ b/services/cognitiveservices/v2.0/luis/programmatic/apps.go @@ -65,6 +65,7 @@ func (client AppsClient) Add(ctx context.Context, applicationCreateObject Applic result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.AppsClient", "Add", resp, "Failure responding to request") + return } return @@ -125,6 +126,7 @@ func (client AppsClient) AddCustomPrebuiltDomain(ctx context.Context, prebuiltDo result, err = client.AddCustomPrebuiltDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.AppsClient", "AddCustomPrebuiltDomain", resp, "Failure responding to request") + return } return @@ -185,6 +187,7 @@ func (client AppsClient) Delete(ctx context.Context, appID uuid.UUID) (result Op result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.AppsClient", "Delete", resp, "Failure responding to request") + return } return @@ -247,6 +250,7 @@ func (client AppsClient) DownloadQueryLogs(ctx context.Context, appID uuid.UUID) result, err = client.DownloadQueryLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.AppsClient", "DownloadQueryLogs", resp, "Failure responding to request") + return } return @@ -308,6 +312,7 @@ func (client AppsClient) Get(ctx context.Context, appID uuid.UUID) (result Appli result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.AppsClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +375,7 @@ func (client AppsClient) GetSettings(ctx context.Context, appID uuid.UUID) (resu result, err = client.GetSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.AppsClient", "GetSettings", resp, "Failure responding to request") + return } return @@ -434,6 +440,7 @@ func (client AppsClient) Import(ctx context.Context, luisApp LuisApp, appName st result, err = client.ImportResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.AppsClient", "Import", resp, "Failure responding to request") + return } return @@ -513,6 +520,7 @@ func (client AppsClient) List(ctx context.Context, skip *int32, take *int32) (re result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.AppsClient", "List", resp, "Failure responding to request") + return } return @@ -582,6 +590,7 @@ func (client AppsClient) ListAvailableCustomPrebuiltDomains(ctx context.Context) result, err = client.ListAvailableCustomPrebuiltDomainsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.AppsClient", "ListAvailableCustomPrebuiltDomains", resp, "Failure responding to request") + return } return @@ -640,6 +649,7 @@ func (client AppsClient) ListAvailableCustomPrebuiltDomainsForCulture(ctx contex result, err = client.ListAvailableCustomPrebuiltDomainsForCultureResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.AppsClient", "ListAvailableCustomPrebuiltDomainsForCulture", resp, "Failure responding to request") + return } return @@ -700,6 +710,7 @@ func (client AppsClient) ListCortanaEndpoints(ctx context.Context) (result Perso result, err = client.ListCortanaEndpointsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.AppsClient", "ListCortanaEndpoints", resp, "Failure responding to request") + return } return @@ -756,6 +767,7 @@ func (client AppsClient) ListDomains(ctx context.Context) (result ListString, er result, err = client.ListDomainsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.AppsClient", "ListDomains", resp, "Failure responding to request") + return } return @@ -814,6 +826,7 @@ func (client AppsClient) ListEndpoints(ctx context.Context, appID uuid.UUID) (re result, err = client.ListEndpointsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.AppsClient", "ListEndpoints", resp, "Failure responding to request") + return } return @@ -874,6 +887,7 @@ func (client AppsClient) ListSupportedCultures(ctx context.Context) (result List result, err = client.ListSupportedCulturesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.AppsClient", "ListSupportedCultures", resp, "Failure responding to request") + return } return @@ -930,6 +944,7 @@ func (client AppsClient) ListUsageScenarios(ctx context.Context) (result ListStr result, err = client.ListUsageScenariosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.AppsClient", "ListUsageScenarios", resp, "Failure responding to request") + return } return @@ -990,6 +1005,7 @@ func (client AppsClient) Publish(ctx context.Context, appID uuid.UUID, applicati result, err = client.PublishResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.AppsClient", "Publish", resp, "Failure responding to request") + return } return @@ -1055,6 +1071,7 @@ func (client AppsClient) Update(ctx context.Context, appID uuid.UUID, applicatio result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.AppsClient", "Update", resp, "Failure responding to request") + return } return @@ -1120,6 +1137,7 @@ func (client AppsClient) UpdateSettings(ctx context.Context, appID uuid.UUID, ap result, err = client.UpdateSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.AppsClient", "UpdateSettings", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v2.0/luis/programmatic/examples.go b/services/cognitiveservices/v2.0/luis/programmatic/examples.go index acd013b03457..8613248c528a 100644 --- a/services/cognitiveservices/v2.0/luis/programmatic/examples.go +++ b/services/cognitiveservices/v2.0/luis/programmatic/examples.go @@ -58,6 +58,7 @@ func (client ExamplesClient) Add(ctx context.Context, appID uuid.UUID, versionID result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ExamplesClient", "Add", resp, "Failure responding to request") + return } return @@ -131,6 +132,7 @@ func (client ExamplesClient) Batch(ctx context.Context, appID uuid.UUID, version result, err = client.BatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ExamplesClient", "Batch", resp, "Failure responding to request") + return } return @@ -198,6 +200,7 @@ func (client ExamplesClient) Delete(ctx context.Context, appID uuid.UUID, versio result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ExamplesClient", "Delete", resp, "Failure responding to request") + return } return @@ -277,6 +280,7 @@ func (client ExamplesClient) List(ctx context.Context, appID uuid.UUID, versionI result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ExamplesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v2.0/luis/programmatic/features.go b/services/cognitiveservices/v2.0/luis/programmatic/features.go index 794806e2c662..a4767d2507b0 100644 --- a/services/cognitiveservices/v2.0/luis/programmatic/features.go +++ b/services/cognitiveservices/v2.0/luis/programmatic/features.go @@ -59,6 +59,7 @@ func (client FeaturesClient) AddPhraseList(ctx context.Context, appID uuid.UUID, result, err = client.AddPhraseListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.FeaturesClient", "AddPhraseList", resp, "Failure responding to request") + return } return @@ -126,6 +127,7 @@ func (client FeaturesClient) DeletePhraseList(ctx context.Context, appID uuid.UU result, err = client.DeletePhraseListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.FeaturesClient", "DeletePhraseList", resp, "Failure responding to request") + return } return @@ -192,6 +194,7 @@ func (client FeaturesClient) GetPhraseList(ctx context.Context, appID uuid.UUID, result, err = client.GetPhraseListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.FeaturesClient", "GetPhraseList", resp, "Failure responding to request") + return } return @@ -271,6 +274,7 @@ func (client FeaturesClient) List(ctx context.Context, appID uuid.UUID, versionI result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.FeaturesClient", "List", resp, "Failure responding to request") + return } return @@ -362,6 +366,7 @@ func (client FeaturesClient) ListPhraseLists(ctx context.Context, appID uuid.UUI result, err = client.ListPhraseListsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.FeaturesClient", "ListPhraseLists", resp, "Failure responding to request") + return } return @@ -442,6 +447,7 @@ func (client FeaturesClient) UpdatePhraseList(ctx context.Context, appID uuid.UU result, err = client.UpdatePhraseListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.FeaturesClient", "UpdatePhraseList", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v2.0/luis/programmatic/model.go b/services/cognitiveservices/v2.0/luis/programmatic/model.go index 46e9587d519e..46a00f09a6ae 100644 --- a/services/cognitiveservices/v2.0/luis/programmatic/model.go +++ b/services/cognitiveservices/v2.0/luis/programmatic/model.go @@ -59,6 +59,7 @@ func (client ModelClient) AddClosedList(ctx context.Context, appID uuid.UUID, ve result, err = client.AddClosedListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "AddClosedList", resp, "Failure responding to request") + return } return @@ -126,6 +127,7 @@ func (client ModelClient) AddCompositeEntity(ctx context.Context, appID uuid.UUI result, err = client.AddCompositeEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "AddCompositeEntity", resp, "Failure responding to request") + return } return @@ -194,6 +196,7 @@ func (client ModelClient) AddCompositeEntityChild(ctx context.Context, appID uui result, err = client.AddCompositeEntityChildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "AddCompositeEntityChild", resp, "Failure responding to request") + return } return @@ -262,6 +265,7 @@ func (client ModelClient) AddCustomPrebuiltDomain(ctx context.Context, appID uui result, err = client.AddCustomPrebuiltDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "AddCustomPrebuiltDomain", resp, "Failure responding to request") + return } return @@ -330,6 +334,7 @@ func (client ModelClient) AddCustomPrebuiltEntity(ctx context.Context, appID uui result, err = client.AddCustomPrebuiltEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "AddCustomPrebuiltEntity", resp, "Failure responding to request") + return } return @@ -398,6 +403,7 @@ func (client ModelClient) AddCustomPrebuiltIntent(ctx context.Context, appID uui result, err = client.AddCustomPrebuiltIntentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "AddCustomPrebuiltIntent", resp, "Failure responding to request") + return } return @@ -465,6 +471,7 @@ func (client ModelClient) AddEntity(ctx context.Context, appID uuid.UUID, versio result, err = client.AddEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "AddEntity", resp, "Failure responding to request") + return } return @@ -533,6 +540,7 @@ func (client ModelClient) AddExplicitListItem(ctx context.Context, appID uuid.UU result, err = client.AddExplicitListItemResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "AddExplicitListItem", resp, "Failure responding to request") + return } return @@ -601,6 +609,7 @@ func (client ModelClient) AddHierarchicalEntity(ctx context.Context, appID uuid. result, err = client.AddHierarchicalEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "AddHierarchicalEntity", resp, "Failure responding to request") + return } return @@ -669,6 +678,7 @@ func (client ModelClient) AddHierarchicalEntityChild(ctx context.Context, appID result, err = client.AddHierarchicalEntityChildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "AddHierarchicalEntityChild", resp, "Failure responding to request") + return } return @@ -737,6 +747,7 @@ func (client ModelClient) AddIntent(ctx context.Context, appID uuid.UUID, versio result, err = client.AddIntentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "AddIntent", resp, "Failure responding to request") + return } return @@ -810,6 +821,7 @@ func (client ModelClient) AddPrebuilt(ctx context.Context, appID uuid.UUID, vers result, err = client.AddPrebuiltResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "AddPrebuilt", resp, "Failure responding to request") + return } return @@ -878,6 +890,7 @@ func (client ModelClient) AddSubList(ctx context.Context, appID uuid.UUID, versi result, err = client.AddSubListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "AddSubList", resp, "Failure responding to request") + return } return @@ -947,6 +960,7 @@ func (client ModelClient) CreateClosedListEntityRole(ctx context.Context, appID result, err = client.CreateClosedListEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "CreateClosedListEntityRole", resp, "Failure responding to request") + return } return @@ -1016,6 +1030,7 @@ func (client ModelClient) CreateCompositeEntityRole(ctx context.Context, appID u result, err = client.CreateCompositeEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "CreateCompositeEntityRole", resp, "Failure responding to request") + return } return @@ -1085,6 +1100,7 @@ func (client ModelClient) CreateCustomPrebuiltEntityRole(ctx context.Context, ap result, err = client.CreateCustomPrebuiltEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "CreateCustomPrebuiltEntityRole", resp, "Failure responding to request") + return } return @@ -1154,6 +1170,7 @@ func (client ModelClient) CreateEntityRole(ctx context.Context, appID uuid.UUID, result, err = client.CreateEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "CreateEntityRole", resp, "Failure responding to request") + return } return @@ -1223,6 +1240,7 @@ func (client ModelClient) CreateHierarchicalEntityRole(ctx context.Context, appI result, err = client.CreateHierarchicalEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "CreateHierarchicalEntityRole", resp, "Failure responding to request") + return } return @@ -1292,6 +1310,7 @@ func (client ModelClient) CreatePatternAnyEntityModel(ctx context.Context, appID result, err = client.CreatePatternAnyEntityModelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "CreatePatternAnyEntityModel", resp, "Failure responding to request") + return } return @@ -1360,6 +1379,7 @@ func (client ModelClient) CreatePatternAnyEntityRole(ctx context.Context, appID result, err = client.CreatePatternAnyEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "CreatePatternAnyEntityRole", resp, "Failure responding to request") + return } return @@ -1429,6 +1449,7 @@ func (client ModelClient) CreatePrebuiltEntityRole(ctx context.Context, appID uu result, err = client.CreatePrebuiltEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "CreatePrebuiltEntityRole", resp, "Failure responding to request") + return } return @@ -1498,6 +1519,7 @@ func (client ModelClient) CreateRegexEntityModel(ctx context.Context, appID uuid result, err = client.CreateRegexEntityModelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "CreateRegexEntityModel", resp, "Failure responding to request") + return } return @@ -1566,6 +1588,7 @@ func (client ModelClient) CreateRegexEntityRole(ctx context.Context, appID uuid. result, err = client.CreateRegexEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "CreateRegexEntityRole", resp, "Failure responding to request") + return } return @@ -1634,6 +1657,7 @@ func (client ModelClient) DeleteClosedList(ctx context.Context, appID uuid.UUID, result, err = client.DeleteClosedListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "DeleteClosedList", resp, "Failure responding to request") + return } return @@ -1701,6 +1725,7 @@ func (client ModelClient) DeleteClosedListEntityRole(ctx context.Context, appID result, err = client.DeleteClosedListEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "DeleteClosedListEntityRole", resp, "Failure responding to request") + return } return @@ -1768,6 +1793,7 @@ func (client ModelClient) DeleteCompositeEntity(ctx context.Context, appID uuid. result, err = client.DeleteCompositeEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "DeleteCompositeEntity", resp, "Failure responding to request") + return } return @@ -1835,6 +1861,7 @@ func (client ModelClient) DeleteCompositeEntityChild(ctx context.Context, appID result, err = client.DeleteCompositeEntityChildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "DeleteCompositeEntityChild", resp, "Failure responding to request") + return } return @@ -1903,6 +1930,7 @@ func (client ModelClient) DeleteCompositeEntityRole(ctx context.Context, appID u result, err = client.DeleteCompositeEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "DeleteCompositeEntityRole", resp, "Failure responding to request") + return } return @@ -1971,6 +1999,7 @@ func (client ModelClient) DeleteCustomEntityRole(ctx context.Context, appID uuid result, err = client.DeleteCustomEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "DeleteCustomEntityRole", resp, "Failure responding to request") + return } return @@ -2038,6 +2067,7 @@ func (client ModelClient) DeleteCustomPrebuiltDomain(ctx context.Context, appID result, err = client.DeleteCustomPrebuiltDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "DeleteCustomPrebuiltDomain", resp, "Failure responding to request") + return } return @@ -2104,6 +2134,7 @@ func (client ModelClient) DeleteEntity(ctx context.Context, appID uuid.UUID, ver result, err = client.DeleteEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "DeleteEntity", resp, "Failure responding to request") + return } return @@ -2171,6 +2202,7 @@ func (client ModelClient) DeleteEntityRole(ctx context.Context, appID uuid.UUID, result, err = client.DeleteEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "DeleteEntityRole", resp, "Failure responding to request") + return } return @@ -2239,6 +2271,7 @@ func (client ModelClient) DeleteExplicitListItem(ctx context.Context, appID uuid result, err = client.DeleteExplicitListItemResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "DeleteExplicitListItem", resp, "Failure responding to request") + return } return @@ -2306,6 +2339,7 @@ func (client ModelClient) DeleteHierarchicalEntity(ctx context.Context, appID uu result, err = client.DeleteHierarchicalEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "DeleteHierarchicalEntity", resp, "Failure responding to request") + return } return @@ -2373,6 +2407,7 @@ func (client ModelClient) DeleteHierarchicalEntityChild(ctx context.Context, app result, err = client.DeleteHierarchicalEntityChildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "DeleteHierarchicalEntityChild", resp, "Failure responding to request") + return } return @@ -2441,6 +2476,7 @@ func (client ModelClient) DeleteHierarchicalEntityRole(ctx context.Context, appI result, err = client.DeleteHierarchicalEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "DeleteHierarchicalEntityRole", resp, "Failure responding to request") + return } return @@ -2510,6 +2546,7 @@ func (client ModelClient) DeleteIntent(ctx context.Context, appID uuid.UUID, ver result, err = client.DeleteIntentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "DeleteIntent", resp, "Failure responding to request") + return } return @@ -2584,6 +2621,7 @@ func (client ModelClient) DeletePatternAnyEntityModel(ctx context.Context, appID result, err = client.DeletePatternAnyEntityModelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "DeletePatternAnyEntityModel", resp, "Failure responding to request") + return } return @@ -2651,6 +2689,7 @@ func (client ModelClient) DeletePatternAnyEntityRole(ctx context.Context, appID result, err = client.DeletePatternAnyEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "DeletePatternAnyEntityRole", resp, "Failure responding to request") + return } return @@ -2718,6 +2757,7 @@ func (client ModelClient) DeletePrebuilt(ctx context.Context, appID uuid.UUID, v result, err = client.DeletePrebuiltResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "DeletePrebuilt", resp, "Failure responding to request") + return } return @@ -2785,6 +2825,7 @@ func (client ModelClient) DeletePrebuiltEntityRole(ctx context.Context, appID uu result, err = client.DeletePrebuiltEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "DeletePrebuiltEntityRole", resp, "Failure responding to request") + return } return @@ -2852,6 +2893,7 @@ func (client ModelClient) DeleteRegexEntityModel(ctx context.Context, appID uuid result, err = client.DeleteRegexEntityModelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "DeleteRegexEntityModel", resp, "Failure responding to request") + return } return @@ -2919,6 +2961,7 @@ func (client ModelClient) DeleteRegexEntityRole(ctx context.Context, appID uuid. result, err = client.DeleteRegexEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "DeleteRegexEntityRole", resp, "Failure responding to request") + return } return @@ -2987,6 +3030,7 @@ func (client ModelClient) DeleteSubList(ctx context.Context, appID uuid.UUID, ve result, err = client.DeleteSubListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "DeleteSubList", resp, "Failure responding to request") + return } return @@ -3054,6 +3098,7 @@ func (client ModelClient) GetClosedList(ctx context.Context, appID uuid.UUID, ve result, err = client.GetClosedListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetClosedList", resp, "Failure responding to request") + return } return @@ -3121,6 +3166,7 @@ func (client ModelClient) GetClosedListEntityRole(ctx context.Context, appID uui result, err = client.GetClosedListEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetClosedListEntityRole", resp, "Failure responding to request") + return } return @@ -3188,6 +3234,7 @@ func (client ModelClient) GetClosedListEntityRoles(ctx context.Context, appID uu result, err = client.GetClosedListEntityRolesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetClosedListEntityRoles", resp, "Failure responding to request") + return } return @@ -3254,6 +3301,7 @@ func (client ModelClient) GetCompositeEntity(ctx context.Context, appID uuid.UUI result, err = client.GetCompositeEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetCompositeEntity", resp, "Failure responding to request") + return } return @@ -3321,6 +3369,7 @@ func (client ModelClient) GetCompositeEntityRole(ctx context.Context, appID uuid result, err = client.GetCompositeEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetCompositeEntityRole", resp, "Failure responding to request") + return } return @@ -3388,6 +3437,7 @@ func (client ModelClient) GetCompositeEntityRoles(ctx context.Context, appID uui result, err = client.GetCompositeEntityRolesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetCompositeEntityRoles", resp, "Failure responding to request") + return } return @@ -3455,6 +3505,7 @@ func (client ModelClient) GetCustomEntityRole(ctx context.Context, appID uuid.UU result, err = client.GetCustomEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetCustomEntityRole", resp, "Failure responding to request") + return } return @@ -3522,6 +3573,7 @@ func (client ModelClient) GetCustomPrebuiltEntityRoles(ctx context.Context, appI result, err = client.GetCustomPrebuiltEntityRolesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetCustomPrebuiltEntityRoles", resp, "Failure responding to request") + return } return @@ -3588,6 +3640,7 @@ func (client ModelClient) GetEntity(ctx context.Context, appID uuid.UUID, versio result, err = client.GetEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetEntity", resp, "Failure responding to request") + return } return @@ -3655,6 +3708,7 @@ func (client ModelClient) GetEntityRole(ctx context.Context, appID uuid.UUID, ve result, err = client.GetEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetEntityRole", resp, "Failure responding to request") + return } return @@ -3722,6 +3776,7 @@ func (client ModelClient) GetEntityRoles(ctx context.Context, appID uuid.UUID, v result, err = client.GetEntityRolesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetEntityRoles", resp, "Failure responding to request") + return } return @@ -3798,6 +3853,7 @@ func (client ModelClient) GetEntitySuggestions(ctx context.Context, appID uuid.U result, err = client.GetEntitySuggestionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetEntitySuggestions", resp, "Failure responding to request") + return } return @@ -3872,6 +3928,7 @@ func (client ModelClient) GetExplicitList(ctx context.Context, appID uuid.UUID, result, err = client.GetExplicitListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetExplicitList", resp, "Failure responding to request") + return } return @@ -3939,6 +3996,7 @@ func (client ModelClient) GetExplicitListItem(ctx context.Context, appID uuid.UU result, err = client.GetExplicitListItemResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetExplicitListItem", resp, "Failure responding to request") + return } return @@ -4006,6 +4064,7 @@ func (client ModelClient) GetHierarchicalEntity(ctx context.Context, appID uuid. result, err = client.GetHierarchicalEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetHierarchicalEntity", resp, "Failure responding to request") + return } return @@ -4073,6 +4132,7 @@ func (client ModelClient) GetHierarchicalEntityChild(ctx context.Context, appID result, err = client.GetHierarchicalEntityChildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetHierarchicalEntityChild", resp, "Failure responding to request") + return } return @@ -4141,6 +4201,7 @@ func (client ModelClient) GetHierarchicalEntityRole(ctx context.Context, appID u result, err = client.GetHierarchicalEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetHierarchicalEntityRole", resp, "Failure responding to request") + return } return @@ -4208,6 +4269,7 @@ func (client ModelClient) GetHierarchicalEntityRoles(ctx context.Context, appID result, err = client.GetHierarchicalEntityRolesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetHierarchicalEntityRoles", resp, "Failure responding to request") + return } return @@ -4274,6 +4336,7 @@ func (client ModelClient) GetIntent(ctx context.Context, appID uuid.UUID, versio result, err = client.GetIntentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetIntent", resp, "Failure responding to request") + return } return @@ -4350,6 +4413,7 @@ func (client ModelClient) GetIntentSuggestions(ctx context.Context, appID uuid.U result, err = client.GetIntentSuggestionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetIntentSuggestions", resp, "Failure responding to request") + return } return @@ -4424,6 +4488,7 @@ func (client ModelClient) GetPatternAnyEntityInfo(ctx context.Context, appID uui result, err = client.GetPatternAnyEntityInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetPatternAnyEntityInfo", resp, "Failure responding to request") + return } return @@ -4503,6 +4568,7 @@ func (client ModelClient) GetPatternAnyEntityInfos(ctx context.Context, appID uu result, err = client.GetPatternAnyEntityInfosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetPatternAnyEntityInfos", resp, "Failure responding to request") + return } return @@ -4582,6 +4648,7 @@ func (client ModelClient) GetPatternAnyEntityRole(ctx context.Context, appID uui result, err = client.GetPatternAnyEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetPatternAnyEntityRole", resp, "Failure responding to request") + return } return @@ -4649,6 +4716,7 @@ func (client ModelClient) GetPatternAnyEntityRoles(ctx context.Context, appID uu result, err = client.GetPatternAnyEntityRolesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetPatternAnyEntityRoles", resp, "Failure responding to request") + return } return @@ -4715,6 +4783,7 @@ func (client ModelClient) GetPrebuilt(ctx context.Context, appID uuid.UUID, vers result, err = client.GetPrebuiltResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetPrebuilt", resp, "Failure responding to request") + return } return @@ -4782,6 +4851,7 @@ func (client ModelClient) GetPrebuiltEntityRole(ctx context.Context, appID uuid. result, err = client.GetPrebuiltEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetPrebuiltEntityRole", resp, "Failure responding to request") + return } return @@ -4849,6 +4919,7 @@ func (client ModelClient) GetPrebuiltEntityRoles(ctx context.Context, appID uuid result, err = client.GetPrebuiltEntityRolesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetPrebuiltEntityRoles", resp, "Failure responding to request") + return } return @@ -4915,6 +4986,7 @@ func (client ModelClient) GetRegexEntityEntityInfo(ctx context.Context, appID uu result, err = client.GetRegexEntityEntityInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetRegexEntityEntityInfo", resp, "Failure responding to request") + return } return @@ -4994,6 +5066,7 @@ func (client ModelClient) GetRegexEntityInfos(ctx context.Context, appID uuid.UU result, err = client.GetRegexEntityInfosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetRegexEntityInfos", resp, "Failure responding to request") + return } return @@ -5073,6 +5146,7 @@ func (client ModelClient) GetRegexEntityRole(ctx context.Context, appID uuid.UUI result, err = client.GetRegexEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetRegexEntityRole", resp, "Failure responding to request") + return } return @@ -5140,6 +5214,7 @@ func (client ModelClient) GetRegexEntityRoles(ctx context.Context, appID uuid.UU result, err = client.GetRegexEntityRolesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "GetRegexEntityRoles", resp, "Failure responding to request") + return } return @@ -5219,6 +5294,7 @@ func (client ModelClient) ListClosedLists(ctx context.Context, appID uuid.UUID, result, err = client.ListClosedListsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "ListClosedLists", resp, "Failure responding to request") + return } return @@ -5310,6 +5386,7 @@ func (client ModelClient) ListCompositeEntities(ctx context.Context, appID uuid. result, err = client.ListCompositeEntitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "ListCompositeEntities", resp, "Failure responding to request") + return } return @@ -5387,6 +5464,7 @@ func (client ModelClient) ListCustomPrebuiltEntities(ctx context.Context, appID result, err = client.ListCustomPrebuiltEntitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "ListCustomPrebuiltEntities", resp, "Failure responding to request") + return } return @@ -5451,6 +5529,7 @@ func (client ModelClient) ListCustomPrebuiltIntents(ctx context.Context, appID u result, err = client.ListCustomPrebuiltIntentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "ListCustomPrebuiltIntents", resp, "Failure responding to request") + return } return @@ -5515,6 +5594,7 @@ func (client ModelClient) ListCustomPrebuiltModels(ctx context.Context, appID uu result, err = client.ListCustomPrebuiltModelsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "ListCustomPrebuiltModels", resp, "Failure responding to request") + return } return @@ -5593,6 +5673,7 @@ func (client ModelClient) ListEntities(ctx context.Context, appID uuid.UUID, ver result, err = client.ListEntitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "ListEntities", resp, "Failure responding to request") + return } return @@ -5684,6 +5765,7 @@ func (client ModelClient) ListHierarchicalEntities(ctx context.Context, appID uu result, err = client.ListHierarchicalEntitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "ListHierarchicalEntities", resp, "Failure responding to request") + return } return @@ -5775,6 +5857,7 @@ func (client ModelClient) ListIntents(ctx context.Context, appID uuid.UUID, vers result, err = client.ListIntentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "ListIntents", resp, "Failure responding to request") + return } return @@ -5866,6 +5949,7 @@ func (client ModelClient) ListModels(ctx context.Context, appID uuid.UUID, versi result, err = client.ListModelsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "ListModels", resp, "Failure responding to request") + return } return @@ -5943,6 +6027,7 @@ func (client ModelClient) ListPrebuiltEntities(ctx context.Context, appID uuid.U result, err = client.ListPrebuiltEntitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "ListPrebuiltEntities", resp, "Failure responding to request") + return } return @@ -6021,6 +6106,7 @@ func (client ModelClient) ListPrebuilts(ctx context.Context, appID uuid.UUID, ve result, err = client.ListPrebuiltsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "ListPrebuilts", resp, "Failure responding to request") + return } return @@ -6100,6 +6186,7 @@ func (client ModelClient) PatchClosedList(ctx context.Context, appID uuid.UUID, result, err = client.PatchClosedListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "PatchClosedList", resp, "Failure responding to request") + return } return @@ -6169,6 +6256,7 @@ func (client ModelClient) UpdateClosedList(ctx context.Context, appID uuid.UUID, result, err = client.UpdateClosedListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "UpdateClosedList", resp, "Failure responding to request") + return } return @@ -6239,6 +6327,7 @@ func (client ModelClient) UpdateClosedListEntityRole(ctx context.Context, appID result, err = client.UpdateClosedListEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "UpdateClosedListEntityRole", resp, "Failure responding to request") + return } return @@ -6309,6 +6398,7 @@ func (client ModelClient) UpdateCompositeEntity(ctx context.Context, appID uuid. result, err = client.UpdateCompositeEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "UpdateCompositeEntity", resp, "Failure responding to request") + return } return @@ -6379,6 +6469,7 @@ func (client ModelClient) UpdateCompositeEntityRole(ctx context.Context, appID u result, err = client.UpdateCompositeEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "UpdateCompositeEntityRole", resp, "Failure responding to request") + return } return @@ -6450,6 +6541,7 @@ func (client ModelClient) UpdateCustomPrebuiltEntityRole(ctx context.Context, ap result, err = client.UpdateCustomPrebuiltEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "UpdateCustomPrebuiltEntityRole", resp, "Failure responding to request") + return } return @@ -6520,6 +6612,7 @@ func (client ModelClient) UpdateEntity(ctx context.Context, appID uuid.UUID, ver result, err = client.UpdateEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "UpdateEntity", resp, "Failure responding to request") + return } return @@ -6590,6 +6683,7 @@ func (client ModelClient) UpdateEntityRole(ctx context.Context, appID uuid.UUID, result, err = client.UpdateEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "UpdateEntityRole", resp, "Failure responding to request") + return } return @@ -6661,6 +6755,7 @@ func (client ModelClient) UpdateExplicitListItem(ctx context.Context, appID uuid result, err = client.UpdateExplicitListItemResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "UpdateExplicitListItem", resp, "Failure responding to request") + return } return @@ -6731,6 +6826,7 @@ func (client ModelClient) UpdateHierarchicalEntity(ctx context.Context, appID uu result, err = client.UpdateHierarchicalEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "UpdateHierarchicalEntity", resp, "Failure responding to request") + return } return @@ -6801,6 +6897,7 @@ func (client ModelClient) UpdateHierarchicalEntityChild(ctx context.Context, app result, err = client.UpdateHierarchicalEntityChildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "UpdateHierarchicalEntityChild", resp, "Failure responding to request") + return } return @@ -6872,6 +6969,7 @@ func (client ModelClient) UpdateHierarchicalEntityRole(ctx context.Context, appI result, err = client.UpdateHierarchicalEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "UpdateHierarchicalEntityRole", resp, "Failure responding to request") + return } return @@ -6942,6 +7040,7 @@ func (client ModelClient) UpdateIntent(ctx context.Context, appID uuid.UUID, ver result, err = client.UpdateIntentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "UpdateIntent", resp, "Failure responding to request") + return } return @@ -7011,6 +7110,7 @@ func (client ModelClient) UpdatePatternAnyEntityModel(ctx context.Context, appID result, err = client.UpdatePatternAnyEntityModelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "UpdatePatternAnyEntityModel", resp, "Failure responding to request") + return } return @@ -7081,6 +7181,7 @@ func (client ModelClient) UpdatePatternAnyEntityRole(ctx context.Context, appID result, err = client.UpdatePatternAnyEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "UpdatePatternAnyEntityRole", resp, "Failure responding to request") + return } return @@ -7152,6 +7253,7 @@ func (client ModelClient) UpdatePrebuiltEntityRole(ctx context.Context, appID uu result, err = client.UpdatePrebuiltEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "UpdatePrebuiltEntityRole", resp, "Failure responding to request") + return } return @@ -7222,6 +7324,7 @@ func (client ModelClient) UpdateRegexEntityModel(ctx context.Context, appID uuid result, err = client.UpdateRegexEntityModelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "UpdateRegexEntityModel", resp, "Failure responding to request") + return } return @@ -7292,6 +7395,7 @@ func (client ModelClient) UpdateRegexEntityRole(ctx context.Context, appID uuid. result, err = client.UpdateRegexEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "UpdateRegexEntityRole", resp, "Failure responding to request") + return } return @@ -7363,6 +7467,7 @@ func (client ModelClient) UpdateSubList(ctx context.Context, appID uuid.UUID, ve result, err = client.UpdateSubListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.ModelClient", "UpdateSubList", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v2.0/luis/programmatic/pattern.go b/services/cognitiveservices/v2.0/luis/programmatic/pattern.go index fc6e4a7d934c..b8fb3c387e51 100644 --- a/services/cognitiveservices/v2.0/luis/programmatic/pattern.go +++ b/services/cognitiveservices/v2.0/luis/programmatic/pattern.go @@ -58,6 +58,7 @@ func (client PatternClient) AddPattern(ctx context.Context, appID uuid.UUID, ver result, err = client.AddPatternResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.PatternClient", "AddPattern", resp, "Failure responding to request") + return } return @@ -131,6 +132,7 @@ func (client PatternClient) BatchAddPatterns(ctx context.Context, appID uuid.UUI result, err = client.BatchAddPatternsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.PatternClient", "BatchAddPatterns", resp, "Failure responding to request") + return } return @@ -198,6 +200,7 @@ func (client PatternClient) DeletePattern(ctx context.Context, appID uuid.UUID, result, err = client.DeletePatternResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.PatternClient", "DeletePattern", resp, "Failure responding to request") + return } return @@ -270,6 +273,7 @@ func (client PatternClient) DeletePatterns(ctx context.Context, appID uuid.UUID, result, err = client.DeletePatternsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.PatternClient", "DeletePatterns", resp, "Failure responding to request") + return } return @@ -351,6 +355,7 @@ func (client PatternClient) GetIntentPatterns(ctx context.Context, appID uuid.UU result, err = client.GetIntentPatternsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.PatternClient", "GetIntentPatterns", resp, "Failure responding to request") + return } return @@ -443,6 +448,7 @@ func (client PatternClient) GetPatterns(ctx context.Context, appID uuid.UUID, ve result, err = client.GetPatternsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.PatternClient", "GetPatterns", resp, "Failure responding to request") + return } return @@ -522,6 +528,7 @@ func (client PatternClient) UpdatePattern(ctx context.Context, appID uuid.UUID, result, err = client.UpdatePatternResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.PatternClient", "UpdatePattern", resp, "Failure responding to request") + return } return @@ -596,6 +603,7 @@ func (client PatternClient) UpdatePatterns(ctx context.Context, appID uuid.UUID, result, err = client.UpdatePatternsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.PatternClient", "UpdatePatterns", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v2.0/luis/programmatic/permissions.go b/services/cognitiveservices/v2.0/luis/programmatic/permissions.go index 75c658467f4a..e119f072d88a 100644 --- a/services/cognitiveservices/v2.0/luis/programmatic/permissions.go +++ b/services/cognitiveservices/v2.0/luis/programmatic/permissions.go @@ -57,6 +57,7 @@ func (client PermissionsClient) Add(ctx context.Context, appID uuid.UUID, userTo result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.PermissionsClient", "Add", resp, "Failure responding to request") + return } return @@ -123,6 +124,7 @@ func (client PermissionsClient) Delete(ctx context.Context, appID uuid.UUID, use result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.PermissionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -187,6 +189,7 @@ func (client PermissionsClient) List(ctx context.Context, appID uuid.UUID) (resu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.PermissionsClient", "List", resp, "Failure responding to request") + return } return @@ -251,6 +254,7 @@ func (client PermissionsClient) Update(ctx context.Context, appID uuid.UUID, col result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.PermissionsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v2.0/luis/programmatic/train.go b/services/cognitiveservices/v2.0/luis/programmatic/train.go index 4ae82bd0d9c5..1ba9230b9e08 100644 --- a/services/cognitiveservices/v2.0/luis/programmatic/train.go +++ b/services/cognitiveservices/v2.0/luis/programmatic/train.go @@ -58,6 +58,7 @@ func (client TrainClient) GetStatus(ctx context.Context, appID uuid.UUID, versio result, err = client.GetStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.TrainClient", "GetStatus", resp, "Failure responding to request") + return } return @@ -126,6 +127,7 @@ func (client TrainClient) TrainVersion(ctx context.Context, appID uuid.UUID, ver result, err = client.TrainVersionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.TrainClient", "TrainVersion", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v2.0/luis/programmatic/versions.go b/services/cognitiveservices/v2.0/luis/programmatic/versions.go index c6c67c093977..292c988265b1 100644 --- a/services/cognitiveservices/v2.0/luis/programmatic/versions.go +++ b/services/cognitiveservices/v2.0/luis/programmatic/versions.go @@ -58,6 +58,7 @@ func (client VersionsClient) Clone(ctx context.Context, appID uuid.UUID, version result, err = client.CloneResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.VersionsClient", "Clone", resp, "Failure responding to request") + return } return @@ -127,6 +128,7 @@ func (client VersionsClient) Delete(ctx context.Context, appID uuid.UUID, versio result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.VersionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -192,6 +194,7 @@ func (client VersionsClient) DeleteUnlabelledUtterance(ctx context.Context, appI result, err = client.DeleteUnlabelledUtteranceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.VersionsClient", "DeleteUnlabelledUtterance", resp, "Failure responding to request") + return } return @@ -258,6 +261,7 @@ func (client VersionsClient) Export(ctx context.Context, appID uuid.UUID, versio result, err = client.ExportResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.VersionsClient", "Export", resp, "Failure responding to request") + return } return @@ -322,6 +326,7 @@ func (client VersionsClient) Get(ctx context.Context, appID uuid.UUID, versionID result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.VersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -388,6 +393,7 @@ func (client VersionsClient) Import(ctx context.Context, appID uuid.UUID, luisAp result, err = client.ImportResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.VersionsClient", "Import", resp, "Failure responding to request") + return } return @@ -472,6 +478,7 @@ func (client VersionsClient) List(ctx context.Context, appID uuid.UUID, skip *in result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.VersionsClient", "List", resp, "Failure responding to request") + return } return @@ -549,6 +556,7 @@ func (client VersionsClient) Update(ctx context.Context, appID uuid.UUID, versio result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "programmatic.VersionsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v2.0/luis/runtime/prediction.go b/services/cognitiveservices/v2.0/luis/runtime/prediction.go index 9afd58611aa4..c2290d2578d7 100644 --- a/services/cognitiveservices/v2.0/luis/runtime/prediction.go +++ b/services/cognitiveservices/v2.0/luis/runtime/prediction.go @@ -81,6 +81,7 @@ func (client PredictionClient) Resolve(ctx context.Context, appID uuid.UUID, que result, err = client.ResolveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "runtime.PredictionClient", "Resolve", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v2.0/textanalytics/client.go b/services/cognitiveservices/v2.0/textanalytics/client.go index b4a4838016fe..e6b053133a7c 100644 --- a/services/cognitiveservices/v2.0/textanalytics/client.go +++ b/services/cognitiveservices/v2.0/textanalytics/client.go @@ -82,6 +82,7 @@ func (client BaseClient) DetectLanguage(ctx context.Context, input BatchInput) ( result, err = client.DetectLanguageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "textanalytics.BaseClient", "DetectLanguage", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client BaseClient) Entities(ctx context.Context, input MultiLanguageBatchI result, err = client.EntitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "textanalytics.BaseClient", "Entities", resp, "Failure responding to request") + return } return @@ -224,6 +226,7 @@ func (client BaseClient) KeyPhrases(ctx context.Context, input MultiLanguageBatc result, err = client.KeyPhrasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "textanalytics.BaseClient", "KeyPhrases", resp, "Failure responding to request") + return } return @@ -295,6 +298,7 @@ func (client BaseClient) Sentiment(ctx context.Context, input MultiLanguageBatch result, err = client.SentimentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "textanalytics.BaseClient", "Sentiment", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v2.1/computervision/client.go b/services/cognitiveservices/v2.1/computervision/client.go index 92212a95cdbe..23e30e51d288 100644 --- a/services/cognitiveservices/v2.1/computervision/client.go +++ b/services/cognitiveservices/v2.1/computervision/client.go @@ -112,6 +112,7 @@ func (client BaseClient) AnalyzeImage(ctx context.Context, imageURL ImageURL, vi result, err = client.AnalyzeImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "AnalyzeImage", resp, "Failure responding to request") + return } return @@ -212,6 +213,7 @@ func (client BaseClient) AnalyzeImageByDomain(ctx context.Context, model string, result, err = client.AnalyzeImageByDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "AnalyzeImageByDomain", resp, "Failure responding to request") + return } return @@ -301,6 +303,7 @@ func (client BaseClient) AnalyzeImageByDomainInStream(ctx context.Context, model result, err = client.AnalyzeImageByDomainInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "AnalyzeImageByDomainInStream", resp, "Failure responding to request") + return } return @@ -404,6 +407,7 @@ func (client BaseClient) AnalyzeImageInStream(ctx context.Context, imageParamete result, err = client.AnalyzeImageInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "AnalyzeImageInStream", resp, "Failure responding to request") + return } return @@ -498,6 +502,7 @@ func (client BaseClient) BatchReadFile(ctx context.Context, imageURL ImageURL) ( result, err = client.BatchReadFileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "BatchReadFile", resp, "Failure responding to request") + return } return @@ -568,6 +573,7 @@ func (client BaseClient) BatchReadFileInStream(ctx context.Context, imageParamet result, err = client.BatchReadFileInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "BatchReadFileInStream", resp, "Failure responding to request") + return } return @@ -652,6 +658,7 @@ func (client BaseClient) DescribeImage(ctx context.Context, imageURL ImageURL, m result, err = client.DescribeImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "DescribeImage", resp, "Failure responding to request") + return } return @@ -747,6 +754,7 @@ func (client BaseClient) DescribeImageInStream(ctx context.Context, imageParamet result, err = client.DescribeImageInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "DescribeImageInStream", resp, "Failure responding to request") + return } return @@ -840,6 +848,7 @@ func (client BaseClient) DetectObjects(ctx context.Context, imageURL ImageURL) ( result, err = client.DetectObjectsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "DetectObjects", resp, "Failure responding to request") + return } return @@ -911,6 +920,7 @@ func (client BaseClient) DetectObjectsInStream(ctx context.Context, imageParamet result, err = client.DetectObjectsInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "DetectObjectsInStream", resp, "Failure responding to request") + return } return @@ -1001,6 +1011,7 @@ func (client BaseClient) GenerateThumbnail(ctx context.Context, width int32, hei result, err = client.GenerateThumbnailResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "GenerateThumbnail", resp, "Failure responding to request") + return } return @@ -1100,6 +1111,7 @@ func (client BaseClient) GenerateThumbnailInStream(ctx context.Context, width in result, err = client.GenerateThumbnailInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "GenerateThumbnailInStream", resp, "Failure responding to request") + return } return @@ -1188,6 +1200,7 @@ func (client BaseClient) GetAreaOfInterest(ctx context.Context, imageURL ImageUR result, err = client.GetAreaOfInterestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "GetAreaOfInterest", resp, "Failure responding to request") + return } return @@ -1260,6 +1273,7 @@ func (client BaseClient) GetAreaOfInterestInStream(ctx context.Context, imagePar result, err = client.GetAreaOfInterestInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "GetAreaOfInterestInStream", resp, "Failure responding to request") + return } return @@ -1329,6 +1343,7 @@ func (client BaseClient) GetReadOperationResult(ctx context.Context, operationID result, err = client.GetReadOperationResultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "GetReadOperationResult", resp, "Failure responding to request") + return } return @@ -1400,6 +1415,7 @@ func (client BaseClient) GetTextOperationResult(ctx context.Context, operationID result, err = client.GetTextOperationResultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "GetTextOperationResult", resp, "Failure responding to request") + return } return @@ -1471,6 +1487,7 @@ func (client BaseClient) ListModels(ctx context.Context) (result ListModelsResul result, err = client.ListModelsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "ListModels", resp, "Failure responding to request") + return } return @@ -1552,6 +1569,7 @@ func (client BaseClient) RecognizePrintedText(ctx context.Context, detectOrienta result, err = client.RecognizePrintedTextResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "RecognizePrintedText", resp, "Failure responding to request") + return } return @@ -1639,6 +1657,7 @@ func (client BaseClient) RecognizePrintedTextInStream(ctx context.Context, detec result, err = client.RecognizePrintedTextInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "RecognizePrintedTextInStream", resp, "Failure responding to request") + return } return @@ -1726,6 +1745,7 @@ func (client BaseClient) RecognizeText(ctx context.Context, imageURL ImageURL, m result, err = client.RecognizeTextResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "RecognizeText", resp, "Failure responding to request") + return } return @@ -1801,6 +1821,7 @@ func (client BaseClient) RecognizeTextInStream(ctx context.Context, imageParamet result, err = client.RecognizeTextInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "RecognizeTextInStream", resp, "Failure responding to request") + return } return @@ -1889,6 +1910,7 @@ func (client BaseClient) TagImage(ctx context.Context, imageURL ImageURL, langua result, err = client.TagImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "TagImage", resp, "Failure responding to request") + return } return @@ -1975,6 +1997,7 @@ func (client BaseClient) TagImageInStream(ctx context.Context, imageParameter io result, err = client.TagImageInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "TagImageInStream", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v2.1/customvision/training/client.go b/services/cognitiveservices/v2.1/customvision/training/client.go index 9a4f83bd3f51..a96aef774ea1 100644 --- a/services/cognitiveservices/v2.1/customvision/training/client.go +++ b/services/cognitiveservices/v2.1/customvision/training/client.go @@ -91,6 +91,7 @@ func (client BaseClient) CreateImageRegions(ctx context.Context, projectID uuid. result, err = client.CreateImageRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImageRegions", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client BaseClient) CreateImagesFromData(ctx context.Context, projectID uui result, err = client.CreateImagesFromDataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromData", resp, "Failure responding to request") + return } return @@ -243,6 +245,7 @@ func (client BaseClient) CreateImagesFromFiles(ctx context.Context, projectID uu result, err = client.CreateImagesFromFilesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromFiles", resp, "Failure responding to request") + return } return @@ -314,6 +317,7 @@ func (client BaseClient) CreateImagesFromPredictions(ctx context.Context, projec result, err = client.CreateImagesFromPredictionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromPredictions", resp, "Failure responding to request") + return } return @@ -385,6 +389,7 @@ func (client BaseClient) CreateImagesFromUrls(ctx context.Context, projectID uui result, err = client.CreateImagesFromUrlsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromUrls", resp, "Failure responding to request") + return } return @@ -455,6 +460,7 @@ func (client BaseClient) CreateImageTags(ctx context.Context, projectID uuid.UUI result, err = client.CreateImageTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImageTags", resp, "Failure responding to request") + return } return @@ -527,6 +533,7 @@ func (client BaseClient) CreateProject(ctx context.Context, name string, descrip result, err = client.CreateProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateProject", resp, "Failure responding to request") + return } return @@ -606,6 +613,7 @@ func (client BaseClient) CreateTag(ctx context.Context, projectID uuid.UUID, nam result, err = client.CreateTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateTag", resp, "Failure responding to request") + return } return @@ -688,6 +696,7 @@ func (client BaseClient) DeleteImageRegions(ctx context.Context, projectID uuid. result, err = client.DeleteImageRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImageRegions", resp, "Failure responding to request") + return } return @@ -766,6 +775,7 @@ func (client BaseClient) DeleteImages(ctx context.Context, projectID uuid.UUID, result, err = client.DeleteImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImages", resp, "Failure responding to request") + return } return @@ -847,6 +857,7 @@ func (client BaseClient) DeleteImageTags(ctx context.Context, projectID uuid.UUI result, err = client.DeleteImageTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImageTags", resp, "Failure responding to request") + return } return @@ -920,6 +931,7 @@ func (client BaseClient) DeleteIteration(ctx context.Context, projectID uuid.UUI result, err = client.DeleteIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteIteration", resp, "Failure responding to request") + return } return @@ -994,6 +1006,7 @@ func (client BaseClient) DeletePrediction(ctx context.Context, projectID uuid.UU result, err = client.DeletePredictionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeletePrediction", resp, "Failure responding to request") + return } return @@ -1065,6 +1078,7 @@ func (client BaseClient) DeleteProject(ctx context.Context, projectID uuid.UUID) result, err = client.DeleteProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteProject", resp, "Failure responding to request") + return } return @@ -1132,6 +1146,7 @@ func (client BaseClient) DeleteTag(ctx context.Context, projectID uuid.UUID, tag result, err = client.DeleteTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteTag", resp, "Failure responding to request") + return } return @@ -1202,6 +1217,7 @@ func (client BaseClient) ExportIteration(ctx context.Context, projectID uuid.UUI result, err = client.ExportIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "ExportIteration", resp, "Failure responding to request") + return } return @@ -1278,6 +1294,7 @@ func (client BaseClient) GetDomain(ctx context.Context, domainID uuid.UUID) (res result, err = client.GetDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetDomain", resp, "Failure responding to request") + return } return @@ -1343,6 +1360,7 @@ func (client BaseClient) GetDomains(ctx context.Context) (result ListDomain, err result, err = client.GetDomainsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetDomains", resp, "Failure responding to request") + return } return @@ -1407,6 +1425,7 @@ func (client BaseClient) GetExports(ctx context.Context, projectID uuid.UUID, it result, err = client.GetExportsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetExports", resp, "Failure responding to request") + return } return @@ -1479,6 +1498,7 @@ func (client BaseClient) GetImagePerformanceCount(ctx context.Context, projectID result, err = client.GetImagePerformanceCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagePerformanceCount", resp, "Failure responding to request") + return } return @@ -1562,6 +1582,7 @@ func (client BaseClient) GetImagePerformances(ctx context.Context, projectID uui result, err = client.GetImagePerformancesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagePerformances", resp, "Failure responding to request") + return } return @@ -1651,6 +1672,7 @@ func (client BaseClient) GetImageRegionProposals(ctx context.Context, projectID result, err = client.GetImageRegionProposalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImageRegionProposals", resp, "Failure responding to request") + return } return @@ -1723,6 +1745,7 @@ func (client BaseClient) GetImagesByIds(ctx context.Context, projectID uuid.UUID result, err = client.GetImagesByIdsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagesByIds", resp, "Failure responding to request") + return } return @@ -1800,6 +1823,7 @@ func (client BaseClient) GetIteration(ctx context.Context, projectID uuid.UUID, result, err = client.GetIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIteration", resp, "Failure responding to request") + return } return @@ -1871,6 +1895,7 @@ func (client BaseClient) GetIterationPerformance(ctx context.Context, projectID result, err = client.GetIterationPerformanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIterationPerformance", resp, "Failure responding to request") + return } return @@ -1948,6 +1973,7 @@ func (client BaseClient) GetIterations(ctx context.Context, projectID uuid.UUID) result, err = client.GetIterationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIterations", resp, "Failure responding to request") + return } return @@ -2015,6 +2041,7 @@ func (client BaseClient) GetProject(ctx context.Context, projectID uuid.UUID) (r result, err = client.GetProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetProject", resp, "Failure responding to request") + return } return @@ -2080,6 +2107,7 @@ func (client BaseClient) GetProjects(ctx context.Context) (result ListProject, e result, err = client.GetProjectsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetProjects", resp, "Failure responding to request") + return } return @@ -2145,6 +2173,7 @@ func (client BaseClient) GetTag(ctx context.Context, projectID uuid.UUID, tagID result, err = client.GetTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTag", resp, "Failure responding to request") + return } return @@ -2223,6 +2252,7 @@ func (client BaseClient) GetTaggedImageCount(ctx context.Context, projectID uuid result, err = client.GetTaggedImageCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTaggedImageCount", resp, "Failure responding to request") + return } return @@ -2308,6 +2338,7 @@ func (client BaseClient) GetTaggedImages(ctx context.Context, projectID uuid.UUI result, err = client.GetTaggedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTaggedImages", resp, "Failure responding to request") + return } return @@ -2398,6 +2429,7 @@ func (client BaseClient) GetTags(ctx context.Context, projectID uuid.UUID, itera result, err = client.GetTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTags", resp, "Failure responding to request") + return } return @@ -2474,6 +2506,7 @@ func (client BaseClient) GetUntaggedImageCount(ctx context.Context, projectID uu result, err = client.GetUntaggedImageCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetUntaggedImageCount", resp, "Failure responding to request") + return } return @@ -2553,6 +2586,7 @@ func (client BaseClient) GetUntaggedImages(ctx context.Context, projectID uuid.U result, err = client.GetUntaggedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetUntaggedImages", resp, "Failure responding to request") + return } return @@ -2640,6 +2674,7 @@ func (client BaseClient) QueryPredictions(ctx context.Context, projectID uuid.UU result, err = client.QueryPredictionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QueryPredictions", resp, "Failure responding to request") + return } return @@ -2711,6 +2746,7 @@ func (client BaseClient) QuickTestImage(ctx context.Context, projectID uuid.UUID result, err = client.QuickTestImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QuickTestImage", resp, "Failure responding to request") + return } return @@ -2792,6 +2828,7 @@ func (client BaseClient) QuickTestImageURL(ctx context.Context, projectID uuid.U result, err = client.QuickTestImageURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QuickTestImageURL", resp, "Failure responding to request") + return } return @@ -2867,6 +2904,7 @@ func (client BaseClient) TrainProject(ctx context.Context, projectID uuid.UUID) result, err = client.TrainProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "TrainProject", resp, "Failure responding to request") + return } return @@ -2936,6 +2974,7 @@ func (client BaseClient) UpdateIteration(ctx context.Context, projectID uuid.UUI result, err = client.UpdateIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateIteration", resp, "Failure responding to request") + return } return @@ -3016,6 +3055,7 @@ func (client BaseClient) UpdateProject(ctx context.Context, projectID uuid.UUID, result, err = client.UpdateProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateProject", resp, "Failure responding to request") + return } return @@ -3091,6 +3131,7 @@ func (client BaseClient) UpdateTag(ctx context.Context, projectID uuid.UUID, tag result, err = client.UpdateTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateTag", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v2.1/textanalytics/client.go b/services/cognitiveservices/v2.1/textanalytics/client.go index 3aac12c437e1..b2210758ed67 100644 --- a/services/cognitiveservices/v2.1/textanalytics/client.go +++ b/services/cognitiveservices/v2.1/textanalytics/client.go @@ -83,6 +83,7 @@ func (client BaseClient) DetectLanguage(ctx context.Context, showStats *bool, la result, err = client.DetectLanguageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "textanalytics.BaseClient", "DetectLanguage", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client BaseClient) Entities(ctx context.Context, showStats *bool, multiLan result, err = client.EntitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "textanalytics.BaseClient", "Entities", resp, "Failure responding to request") + return } return @@ -245,6 +247,7 @@ func (client BaseClient) KeyPhrases(ctx context.Context, showStats *bool, multiL result, err = client.KeyPhrasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "textanalytics.BaseClient", "KeyPhrases", resp, "Failure responding to request") + return } return @@ -326,6 +329,7 @@ func (client BaseClient) Sentiment(ctx context.Context, showStats *bool, multiLa result, err = client.SentimentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "textanalytics.BaseClient", "Sentiment", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v2.2/customvision/training/client.go b/services/cognitiveservices/v2.2/customvision/training/client.go index 8e158ff05fac..8dacc0a14df5 100644 --- a/services/cognitiveservices/v2.2/customvision/training/client.go +++ b/services/cognitiveservices/v2.2/customvision/training/client.go @@ -85,6 +85,7 @@ func (client BaseClient) CreateImageRegions(ctx context.Context, projectID uuid. result, err = client.CreateImageRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImageRegions", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client BaseClient) CreateImagesFromData(ctx context.Context, projectID uui result, err = client.CreateImagesFromDataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromData", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client BaseClient) CreateImagesFromFiles(ctx context.Context, projectID uu result, err = client.CreateImagesFromFilesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromFiles", resp, "Failure responding to request") + return } return @@ -321,6 +324,7 @@ func (client BaseClient) CreateImagesFromPredictions(ctx context.Context, projec result, err = client.CreateImagesFromPredictionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromPredictions", resp, "Failure responding to request") + return } return @@ -396,6 +400,7 @@ func (client BaseClient) CreateImagesFromUrls(ctx context.Context, projectID uui result, err = client.CreateImagesFromUrlsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromUrls", resp, "Failure responding to request") + return } return @@ -470,6 +475,7 @@ func (client BaseClient) CreateImageTags(ctx context.Context, projectID uuid.UUI result, err = client.CreateImageTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImageTags", resp, "Failure responding to request") + return } return @@ -546,6 +552,7 @@ func (client BaseClient) CreateProject(ctx context.Context, name string, descrip result, err = client.CreateProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateProject", resp, "Failure responding to request") + return } return @@ -630,6 +637,7 @@ func (client BaseClient) CreateTag(ctx context.Context, projectID uuid.UUID, nam result, err = client.CreateTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateTag", resp, "Failure responding to request") + return } return @@ -719,6 +727,7 @@ func (client BaseClient) DeleteImageRegions(ctx context.Context, projectID uuid. result, err = client.DeleteImageRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImageRegions", resp, "Failure responding to request") + return } return @@ -801,6 +810,7 @@ func (client BaseClient) DeleteImages(ctx context.Context, projectID uuid.UUID, result, err = client.DeleteImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImages", resp, "Failure responding to request") + return } return @@ -886,6 +896,7 @@ func (client BaseClient) DeleteImageTags(ctx context.Context, projectID uuid.UUI result, err = client.DeleteImageTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImageTags", resp, "Failure responding to request") + return } return @@ -963,6 +974,7 @@ func (client BaseClient) DeleteIteration(ctx context.Context, projectID uuid.UUI result, err = client.DeleteIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteIteration", resp, "Failure responding to request") + return } return @@ -1041,6 +1053,7 @@ func (client BaseClient) DeletePrediction(ctx context.Context, projectID uuid.UU result, err = client.DeletePredictionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeletePrediction", resp, "Failure responding to request") + return } return @@ -1116,6 +1129,7 @@ func (client BaseClient) DeleteProject(ctx context.Context, projectID uuid.UUID) result, err = client.DeleteProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteProject", resp, "Failure responding to request") + return } return @@ -1187,6 +1201,7 @@ func (client BaseClient) DeleteTag(ctx context.Context, projectID uuid.UUID, tag result, err = client.DeleteTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteTag", resp, "Failure responding to request") + return } return @@ -1261,6 +1276,7 @@ func (client BaseClient) ExportIteration(ctx context.Context, projectID uuid.UUI result, err = client.ExportIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "ExportIteration", resp, "Failure responding to request") + return } return @@ -1341,6 +1357,7 @@ func (client BaseClient) GetDomain(ctx context.Context, domainID uuid.UUID) (res result, err = client.GetDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetDomain", resp, "Failure responding to request") + return } return @@ -1410,6 +1427,7 @@ func (client BaseClient) GetDomains(ctx context.Context) (result ListDomain, err result, err = client.GetDomainsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetDomains", resp, "Failure responding to request") + return } return @@ -1478,6 +1496,7 @@ func (client BaseClient) GetExports(ctx context.Context, projectID uuid.UUID, it result, err = client.GetExportsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetExports", resp, "Failure responding to request") + return } return @@ -1554,6 +1573,7 @@ func (client BaseClient) GetImagePerformanceCount(ctx context.Context, projectID result, err = client.GetImagePerformanceCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagePerformanceCount", resp, "Failure responding to request") + return } return @@ -1641,6 +1661,7 @@ func (client BaseClient) GetImagePerformances(ctx context.Context, projectID uui result, err = client.GetImagePerformancesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagePerformances", resp, "Failure responding to request") + return } return @@ -1734,6 +1755,7 @@ func (client BaseClient) GetImageRegionProposals(ctx context.Context, projectID result, err = client.GetImageRegionProposalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImageRegionProposals", resp, "Failure responding to request") + return } return @@ -1810,6 +1832,7 @@ func (client BaseClient) GetImagesByIds(ctx context.Context, projectID uuid.UUID result, err = client.GetImagesByIdsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagesByIds", resp, "Failure responding to request") + return } return @@ -1891,6 +1914,7 @@ func (client BaseClient) GetIteration(ctx context.Context, projectID uuid.UUID, result, err = client.GetIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIteration", resp, "Failure responding to request") + return } return @@ -1966,6 +1990,7 @@ func (client BaseClient) GetIterationPerformance(ctx context.Context, projectID result, err = client.GetIterationPerformanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIterationPerformance", resp, "Failure responding to request") + return } return @@ -2047,6 +2072,7 @@ func (client BaseClient) GetIterations(ctx context.Context, projectID uuid.UUID) result, err = client.GetIterationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIterations", resp, "Failure responding to request") + return } return @@ -2118,6 +2144,7 @@ func (client BaseClient) GetProject(ctx context.Context, projectID uuid.UUID) (r result, err = client.GetProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetProject", resp, "Failure responding to request") + return } return @@ -2187,6 +2214,7 @@ func (client BaseClient) GetProjects(ctx context.Context) (result ListProject, e result, err = client.GetProjectsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetProjects", resp, "Failure responding to request") + return } return @@ -2256,6 +2284,7 @@ func (client BaseClient) GetTag(ctx context.Context, projectID uuid.UUID, tagID result, err = client.GetTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTag", resp, "Failure responding to request") + return } return @@ -2338,6 +2367,7 @@ func (client BaseClient) GetTaggedImageCount(ctx context.Context, projectID uuid result, err = client.GetTaggedImageCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTaggedImageCount", resp, "Failure responding to request") + return } return @@ -2427,6 +2457,7 @@ func (client BaseClient) GetTaggedImages(ctx context.Context, projectID uuid.UUI result, err = client.GetTaggedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTaggedImages", resp, "Failure responding to request") + return } return @@ -2521,6 +2552,7 @@ func (client BaseClient) GetTags(ctx context.Context, projectID uuid.UUID, itera result, err = client.GetTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTags", resp, "Failure responding to request") + return } return @@ -2601,6 +2633,7 @@ func (client BaseClient) GetUntaggedImageCount(ctx context.Context, projectID uu result, err = client.GetUntaggedImageCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetUntaggedImageCount", resp, "Failure responding to request") + return } return @@ -2684,6 +2717,7 @@ func (client BaseClient) GetUntaggedImages(ctx context.Context, projectID uuid.U result, err = client.GetUntaggedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetUntaggedImages", resp, "Failure responding to request") + return } return @@ -2775,6 +2809,7 @@ func (client BaseClient) QueryPredictions(ctx context.Context, projectID uuid.UU result, err = client.QueryPredictionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QueryPredictions", resp, "Failure responding to request") + return } return @@ -2851,6 +2886,7 @@ func (client BaseClient) QuickTestImage(ctx context.Context, projectID uuid.UUID result, err = client.QuickTestImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QuickTestImage", resp, "Failure responding to request") + return } return @@ -2936,6 +2972,7 @@ func (client BaseClient) QuickTestImageURL(ctx context.Context, projectID uuid.U result, err = client.QuickTestImageURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QuickTestImageURL", resp, "Failure responding to request") + return } return @@ -3015,6 +3052,7 @@ func (client BaseClient) TrainProject(ctx context.Context, projectID uuid.UUID) result, err = client.TrainProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "TrainProject", resp, "Failure responding to request") + return } return @@ -3088,6 +3126,7 @@ func (client BaseClient) UpdateIteration(ctx context.Context, projectID uuid.UUI result, err = client.UpdateIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateIteration", resp, "Failure responding to request") + return } return @@ -3172,6 +3211,7 @@ func (client BaseClient) UpdateProject(ctx context.Context, projectID uuid.UUID, result, err = client.UpdateProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateProject", resp, "Failure responding to request") + return } return @@ -3251,6 +3291,7 @@ func (client BaseClient) UpdateTag(ctx context.Context, projectID uuid.UUID, tag result, err = client.UpdateTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateTag", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v3.0/computervision/client.go b/services/cognitiveservices/v3.0/computervision/client.go index 8a3a09a0a985..f9fbc29fb400 100644 --- a/services/cognitiveservices/v3.0/computervision/client.go +++ b/services/cognitiveservices/v3.0/computervision/client.go @@ -113,6 +113,7 @@ func (client BaseClient) AnalyzeImage(ctx context.Context, imageURL ImageURL, vi result, err = client.AnalyzeImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "AnalyzeImage", resp, "Failure responding to request") + return } return @@ -213,6 +214,7 @@ func (client BaseClient) AnalyzeImageByDomain(ctx context.Context, model string, result, err = client.AnalyzeImageByDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "AnalyzeImageByDomain", resp, "Failure responding to request") + return } return @@ -302,6 +304,7 @@ func (client BaseClient) AnalyzeImageByDomainInStream(ctx context.Context, model result, err = client.AnalyzeImageByDomainInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "AnalyzeImageByDomainInStream", resp, "Failure responding to request") + return } return @@ -405,6 +408,7 @@ func (client BaseClient) AnalyzeImageInStream(ctx context.Context, imageParamete result, err = client.AnalyzeImageInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "AnalyzeImageInStream", resp, "Failure responding to request") + return } return @@ -507,6 +511,7 @@ func (client BaseClient) DescribeImage(ctx context.Context, imageURL ImageURL, m result, err = client.DescribeImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "DescribeImage", resp, "Failure responding to request") + return } return @@ -602,6 +607,7 @@ func (client BaseClient) DescribeImageInStream(ctx context.Context, imageParamet result, err = client.DescribeImageInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "DescribeImageInStream", resp, "Failure responding to request") + return } return @@ -695,6 +701,7 @@ func (client BaseClient) DetectObjects(ctx context.Context, imageURL ImageURL) ( result, err = client.DetectObjectsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "DetectObjects", resp, "Failure responding to request") + return } return @@ -766,6 +773,7 @@ func (client BaseClient) DetectObjectsInStream(ctx context.Context, imageParamet result, err = client.DetectObjectsInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "DetectObjectsInStream", resp, "Failure responding to request") + return } return @@ -856,6 +864,7 @@ func (client BaseClient) GenerateThumbnail(ctx context.Context, width int32, hei result, err = client.GenerateThumbnailResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "GenerateThumbnail", resp, "Failure responding to request") + return } return @@ -955,6 +964,7 @@ func (client BaseClient) GenerateThumbnailInStream(ctx context.Context, width in result, err = client.GenerateThumbnailInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "GenerateThumbnailInStream", resp, "Failure responding to request") + return } return @@ -1043,6 +1053,7 @@ func (client BaseClient) GetAreaOfInterest(ctx context.Context, imageURL ImageUR result, err = client.GetAreaOfInterestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "GetAreaOfInterest", resp, "Failure responding to request") + return } return @@ -1115,6 +1126,7 @@ func (client BaseClient) GetAreaOfInterestInStream(ctx context.Context, imagePar result, err = client.GetAreaOfInterestInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "GetAreaOfInterestInStream", resp, "Failure responding to request") + return } return @@ -1184,6 +1196,7 @@ func (client BaseClient) GetReadResult(ctx context.Context, operationID uuid.UUI result, err = client.GetReadResultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "GetReadResult", resp, "Failure responding to request") + return } return @@ -1255,6 +1268,7 @@ func (client BaseClient) ListModels(ctx context.Context) (result ListModelsResul result, err = client.ListModelsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "ListModels", resp, "Failure responding to request") + return } return @@ -1334,6 +1348,7 @@ func (client BaseClient) Read(ctx context.Context, imageURL ImageURL, language O result, err = client.ReadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "Read", resp, "Failure responding to request") + return } return @@ -1416,6 +1431,7 @@ func (client BaseClient) ReadInStream(ctx context.Context, imageParameter io.Rea result, err = client.ReadInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "ReadInStream", resp, "Failure responding to request") + return } return @@ -1506,6 +1522,7 @@ func (client BaseClient) RecognizePrintedText(ctx context.Context, detectOrienta result, err = client.RecognizePrintedTextResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "RecognizePrintedText", resp, "Failure responding to request") + return } return @@ -1593,6 +1610,7 @@ func (client BaseClient) RecognizePrintedTextInStream(ctx context.Context, detec result, err = client.RecognizePrintedTextInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "RecognizePrintedTextInStream", resp, "Failure responding to request") + return } return @@ -1687,6 +1705,7 @@ func (client BaseClient) TagImage(ctx context.Context, imageURL ImageURL, langua result, err = client.TagImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "TagImage", resp, "Failure responding to request") + return } return @@ -1773,6 +1792,7 @@ func (client BaseClient) TagImageInStream(ctx context.Context, imageParameter io result, err = client.TagImageInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "TagImageInStream", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v3.0/customvision/prediction/client.go b/services/cognitiveservices/v3.0/customvision/prediction/client.go index 343565008183..91cbb39c4100 100644 --- a/services/cognitiveservices/v3.0/customvision/prediction/client.go +++ b/services/cognitiveservices/v3.0/customvision/prediction/client.go @@ -83,6 +83,7 @@ func (client BaseClient) ClassifyImage(ctx context.Context, projectID uuid.UUID, result, err = client.ClassifyImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "prediction.BaseClient", "ClassifyImage", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client BaseClient) ClassifyImageURL(ctx context.Context, projectID uuid.UU result, err = client.ClassifyImageURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "prediction.BaseClient", "ClassifyImageURL", resp, "Failure responding to request") + return } return @@ -262,6 +264,7 @@ func (client BaseClient) ClassifyImageURLWithNoStore(ctx context.Context, projec result, err = client.ClassifyImageURLWithNoStoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "prediction.BaseClient", "ClassifyImageURLWithNoStore", resp, "Failure responding to request") + return } return @@ -344,6 +347,7 @@ func (client BaseClient) ClassifyImageWithNoStore(ctx context.Context, projectID result, err = client.ClassifyImageWithNoStoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "prediction.BaseClient", "ClassifyImageWithNoStore", resp, "Failure responding to request") + return } return @@ -429,6 +433,7 @@ func (client BaseClient) DetectImage(ctx context.Context, projectID uuid.UUID, p result, err = client.DetectImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "prediction.BaseClient", "DetectImage", resp, "Failure responding to request") + return } return @@ -520,6 +525,7 @@ func (client BaseClient) DetectImageURL(ctx context.Context, projectID uuid.UUID result, err = client.DetectImageURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "prediction.BaseClient", "DetectImageURL", resp, "Failure responding to request") + return } return @@ -608,6 +614,7 @@ func (client BaseClient) DetectImageURLWithNoStore(ctx context.Context, projectI result, err = client.DetectImageURLWithNoStoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "prediction.BaseClient", "DetectImageURLWithNoStore", resp, "Failure responding to request") + return } return @@ -690,6 +697,7 @@ func (client BaseClient) DetectImageWithNoStore(ctx context.Context, projectID u result, err = client.DetectImageWithNoStoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "prediction.BaseClient", "DetectImageWithNoStore", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v3.0/customvision/training/client.go b/services/cognitiveservices/v3.0/customvision/training/client.go index 7564940bb225..d3d93ff4cfbd 100644 --- a/services/cognitiveservices/v3.0/customvision/training/client.go +++ b/services/cognitiveservices/v3.0/customvision/training/client.go @@ -85,6 +85,7 @@ func (client BaseClient) CreateImageRegions(ctx context.Context, projectID uuid. result, err = client.CreateImageRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImageRegions", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client BaseClient) CreateImagesFromData(ctx context.Context, projectID uui result, err = client.CreateImagesFromDataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromData", resp, "Failure responding to request") + return } return @@ -255,6 +257,7 @@ func (client BaseClient) CreateImagesFromFiles(ctx context.Context, projectID uu result, err = client.CreateImagesFromFilesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromFiles", resp, "Failure responding to request") + return } return @@ -330,6 +333,7 @@ func (client BaseClient) CreateImagesFromPredictions(ctx context.Context, projec result, err = client.CreateImagesFromPredictionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromPredictions", resp, "Failure responding to request") + return } return @@ -405,6 +409,7 @@ func (client BaseClient) CreateImagesFromUrls(ctx context.Context, projectID uui result, err = client.CreateImagesFromUrlsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromUrls", resp, "Failure responding to request") + return } return @@ -479,6 +484,7 @@ func (client BaseClient) CreateImageTags(ctx context.Context, projectID uuid.UUI result, err = client.CreateImageTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImageTags", resp, "Failure responding to request") + return } return @@ -556,6 +562,7 @@ func (client BaseClient) CreateProject(ctx context.Context, name string, descrip result, err = client.CreateProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateProject", resp, "Failure responding to request") + return } return @@ -643,6 +650,7 @@ func (client BaseClient) CreateTag(ctx context.Context, projectID uuid.UUID, nam result, err = client.CreateTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateTag", resp, "Failure responding to request") + return } return @@ -735,6 +743,7 @@ func (client BaseClient) DeleteImageRegions(ctx context.Context, projectID uuid. result, err = client.DeleteImageRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImageRegions", resp, "Failure responding to request") + return } return @@ -820,6 +829,7 @@ func (client BaseClient) DeleteImages(ctx context.Context, projectID uuid.UUID, result, err = client.DeleteImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImages", resp, "Failure responding to request") + return } return @@ -911,6 +921,7 @@ func (client BaseClient) DeleteImageTags(ctx context.Context, projectID uuid.UUI result, err = client.DeleteImageTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImageTags", resp, "Failure responding to request") + return } return @@ -988,6 +999,7 @@ func (client BaseClient) DeleteIteration(ctx context.Context, projectID uuid.UUI result, err = client.DeleteIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteIteration", resp, "Failure responding to request") + return } return @@ -1069,6 +1081,7 @@ func (client BaseClient) DeletePrediction(ctx context.Context, projectID uuid.UU result, err = client.DeletePredictionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeletePrediction", resp, "Failure responding to request") + return } return @@ -1144,6 +1157,7 @@ func (client BaseClient) DeleteProject(ctx context.Context, projectID uuid.UUID) result, err = client.DeleteProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteProject", resp, "Failure responding to request") + return } return @@ -1215,6 +1229,7 @@ func (client BaseClient) DeleteTag(ctx context.Context, projectID uuid.UUID, tag result, err = client.DeleteTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteTag", resp, "Failure responding to request") + return } return @@ -1289,6 +1304,7 @@ func (client BaseClient) ExportIteration(ctx context.Context, projectID uuid.UUI result, err = client.ExportIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "ExportIteration", resp, "Failure responding to request") + return } return @@ -1369,6 +1385,7 @@ func (client BaseClient) GetDomain(ctx context.Context, domainID uuid.UUID) (res result, err = client.GetDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetDomain", resp, "Failure responding to request") + return } return @@ -1438,6 +1455,7 @@ func (client BaseClient) GetDomains(ctx context.Context) (result ListDomain, err result, err = client.GetDomainsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetDomains", resp, "Failure responding to request") + return } return @@ -1506,6 +1524,7 @@ func (client BaseClient) GetExports(ctx context.Context, projectID uuid.UUID, it result, err = client.GetExportsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetExports", resp, "Failure responding to request") + return } return @@ -1582,6 +1601,7 @@ func (client BaseClient) GetImagePerformanceCount(ctx context.Context, projectID result, err = client.GetImagePerformanceCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagePerformanceCount", resp, "Failure responding to request") + return } return @@ -1683,6 +1703,7 @@ func (client BaseClient) GetImagePerformances(ctx context.Context, projectID uui result, err = client.GetImagePerformancesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagePerformances", resp, "Failure responding to request") + return } return @@ -1776,6 +1797,7 @@ func (client BaseClient) GetImageRegionProposals(ctx context.Context, projectID result, err = client.GetImageRegionProposalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImageRegionProposals", resp, "Failure responding to request") + return } return @@ -1861,6 +1883,7 @@ func (client BaseClient) GetImagesByIds(ctx context.Context, projectID uuid.UUID result, err = client.GetImagesByIdsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagesByIds", resp, "Failure responding to request") + return } return @@ -1942,6 +1965,7 @@ func (client BaseClient) GetIteration(ctx context.Context, projectID uuid.UUID, result, err = client.GetIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIteration", resp, "Failure responding to request") + return } return @@ -2017,6 +2041,7 @@ func (client BaseClient) GetIterationPerformance(ctx context.Context, projectID result, err = client.GetIterationPerformanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIterationPerformance", resp, "Failure responding to request") + return } return @@ -2098,6 +2123,7 @@ func (client BaseClient) GetIterations(ctx context.Context, projectID uuid.UUID) result, err = client.GetIterationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIterations", resp, "Failure responding to request") + return } return @@ -2169,6 +2195,7 @@ func (client BaseClient) GetProject(ctx context.Context, projectID uuid.UUID) (r result, err = client.GetProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetProject", resp, "Failure responding to request") + return } return @@ -2238,6 +2265,7 @@ func (client BaseClient) GetProjects(ctx context.Context) (result ListProject, e result, err = client.GetProjectsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetProjects", resp, "Failure responding to request") + return } return @@ -2307,6 +2335,7 @@ func (client BaseClient) GetTag(ctx context.Context, projectID uuid.UUID, tagID result, err = client.GetTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTag", resp, "Failure responding to request") + return } return @@ -2389,6 +2418,7 @@ func (client BaseClient) GetTaggedImageCount(ctx context.Context, projectID uuid result, err = client.GetTaggedImageCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTaggedImageCount", resp, "Failure responding to request") + return } return @@ -2492,6 +2522,7 @@ func (client BaseClient) GetTaggedImages(ctx context.Context, projectID uuid.UUI result, err = client.GetTaggedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTaggedImages", resp, "Failure responding to request") + return } return @@ -2586,6 +2617,7 @@ func (client BaseClient) GetTags(ctx context.Context, projectID uuid.UUID, itera result, err = client.GetTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTags", resp, "Failure responding to request") + return } return @@ -2666,6 +2698,7 @@ func (client BaseClient) GetUntaggedImageCount(ctx context.Context, projectID uu result, err = client.GetUntaggedImageCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetUntaggedImageCount", resp, "Failure responding to request") + return } return @@ -2758,6 +2791,7 @@ func (client BaseClient) GetUntaggedImages(ctx context.Context, projectID uuid.U result, err = client.GetUntaggedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetUntaggedImages", resp, "Failure responding to request") + return } return @@ -2851,6 +2885,7 @@ func (client BaseClient) PublishIteration(ctx context.Context, projectID uuid.UU result, err = client.PublishIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "PublishIteration", resp, "Failure responding to request") + return } return @@ -2930,6 +2965,7 @@ func (client BaseClient) QueryPredictions(ctx context.Context, projectID uuid.UU result, err = client.QueryPredictionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QueryPredictions", resp, "Failure responding to request") + return } return @@ -3006,6 +3042,7 @@ func (client BaseClient) QuickTestImage(ctx context.Context, projectID uuid.UUID result, err = client.QuickTestImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QuickTestImage", resp, "Failure responding to request") + return } return @@ -3097,6 +3134,7 @@ func (client BaseClient) QuickTestImageURL(ctx context.Context, projectID uuid.U result, err = client.QuickTestImageURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QuickTestImageURL", resp, "Failure responding to request") + return } return @@ -3180,6 +3218,7 @@ func (client BaseClient) TrainProject(ctx context.Context, projectID uuid.UUID, result, err = client.TrainProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "TrainProject", resp, "Failure responding to request") + return } return @@ -3271,6 +3310,7 @@ func (client BaseClient) UnpublishIteration(ctx context.Context, projectID uuid. result, err = client.UnpublishIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UnpublishIteration", resp, "Failure responding to request") + return } return @@ -3344,6 +3384,7 @@ func (client BaseClient) UpdateIteration(ctx context.Context, projectID uuid.UUI result, err = client.UpdateIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateIteration", resp, "Failure responding to request") + return } return @@ -3433,6 +3474,7 @@ func (client BaseClient) UpdateProject(ctx context.Context, projectID uuid.UUID, result, err = client.UpdateProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateProject", resp, "Failure responding to request") + return } return @@ -3513,6 +3555,7 @@ func (client BaseClient) UpdateTag(ctx context.Context, projectID uuid.UUID, tag result, err = client.UpdateTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateTag", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v3.0/luis/runtime/prediction.go b/services/cognitiveservices/v3.0/luis/runtime/prediction.go index fa8b916b6bb1..65f23b23d770 100644 --- a/services/cognitiveservices/v3.0/luis/runtime/prediction.go +++ b/services/cognitiveservices/v3.0/luis/runtime/prediction.go @@ -78,6 +78,7 @@ func (client PredictionClient) GetSlotPrediction(ctx context.Context, appID uuid result, err = client.GetSlotPredictionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "runtime.PredictionClient", "GetSlotPrediction", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client PredictionClient) GetVersionPrediction(ctx context.Context, appID u result, err = client.GetVersionPredictionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "runtime.PredictionClient", "GetVersionPrediction", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v3.0/translatortext/translator.go b/services/cognitiveservices/v3.0/translatortext/translator.go index 483d01eb988b..1b2155559dc5 100644 --- a/services/cognitiveservices/v3.0/translatortext/translator.go +++ b/services/cognitiveservices/v3.0/translatortext/translator.go @@ -216,6 +216,7 @@ func (client TranslatorClient) BreakSentence(ctx context.Context, textParameter result, err = client.BreakSentenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "translatortext.TranslatorClient", "BreakSentence", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client TranslatorClient) Detect(ctx context.Context, textParameter []Detec result, err = client.DetectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "translatortext.TranslatorClient", "Detect", resp, "Failure responding to request") + return } return @@ -458,6 +460,7 @@ func (client TranslatorClient) DictionaryExamples(ctx context.Context, from stri result, err = client.DictionaryExamplesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "translatortext.TranslatorClient", "DictionaryExamples", resp, "Failure responding to request") + return } return @@ -624,6 +627,7 @@ func (client TranslatorClient) DictionaryLookup(ctx context.Context, from string result, err = client.DictionaryLookupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "translatortext.TranslatorClient", "DictionaryLookup", resp, "Failure responding to request") + return } return @@ -864,6 +868,7 @@ func (client TranslatorClient) Languages(ctx context.Context, scope []string, ac result, err = client.LanguagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "translatortext.TranslatorClient", "Languages", resp, "Failure responding to request") + return } return @@ -1054,6 +1059,7 @@ func (client TranslatorClient) Translate(ctx context.Context, toParameter []stri result, err = client.TranslateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "translatortext.TranslatorClient", "Translate", resp, "Failure responding to request") + return } return @@ -1191,6 +1197,7 @@ func (client TranslatorClient) Transliterate(ctx context.Context, language strin result, err = client.TransliterateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "translatortext.TranslatorClient", "Transliterate", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v3.1/computervision/client.go b/services/cognitiveservices/v3.1/computervision/client.go index 519af04821a4..4671c8e9bc91 100644 --- a/services/cognitiveservices/v3.1/computervision/client.go +++ b/services/cognitiveservices/v3.1/computervision/client.go @@ -113,6 +113,7 @@ func (client BaseClient) AnalyzeImage(ctx context.Context, imageURL ImageURL, vi result, err = client.AnalyzeImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "AnalyzeImage", resp, "Failure responding to request") + return } return @@ -213,6 +214,7 @@ func (client BaseClient) AnalyzeImageByDomain(ctx context.Context, model string, result, err = client.AnalyzeImageByDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "AnalyzeImageByDomain", resp, "Failure responding to request") + return } return @@ -302,6 +304,7 @@ func (client BaseClient) AnalyzeImageByDomainInStream(ctx context.Context, model result, err = client.AnalyzeImageByDomainInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "AnalyzeImageByDomainInStream", resp, "Failure responding to request") + return } return @@ -405,6 +408,7 @@ func (client BaseClient) AnalyzeImageInStream(ctx context.Context, imageParamete result, err = client.AnalyzeImageInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "AnalyzeImageInStream", resp, "Failure responding to request") + return } return @@ -507,6 +511,7 @@ func (client BaseClient) DescribeImage(ctx context.Context, imageURL ImageURL, m result, err = client.DescribeImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "DescribeImage", resp, "Failure responding to request") + return } return @@ -602,6 +607,7 @@ func (client BaseClient) DescribeImageInStream(ctx context.Context, imageParamet result, err = client.DescribeImageInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "DescribeImageInStream", resp, "Failure responding to request") + return } return @@ -695,6 +701,7 @@ func (client BaseClient) DetectObjects(ctx context.Context, imageURL ImageURL) ( result, err = client.DetectObjectsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "DetectObjects", resp, "Failure responding to request") + return } return @@ -766,6 +773,7 @@ func (client BaseClient) DetectObjectsInStream(ctx context.Context, imageParamet result, err = client.DetectObjectsInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "DetectObjectsInStream", resp, "Failure responding to request") + return } return @@ -856,6 +864,7 @@ func (client BaseClient) GenerateThumbnail(ctx context.Context, width int32, hei result, err = client.GenerateThumbnailResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "GenerateThumbnail", resp, "Failure responding to request") + return } return @@ -955,6 +964,7 @@ func (client BaseClient) GenerateThumbnailInStream(ctx context.Context, width in result, err = client.GenerateThumbnailInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "GenerateThumbnailInStream", resp, "Failure responding to request") + return } return @@ -1043,6 +1053,7 @@ func (client BaseClient) GetAreaOfInterest(ctx context.Context, imageURL ImageUR result, err = client.GetAreaOfInterestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "GetAreaOfInterest", resp, "Failure responding to request") + return } return @@ -1115,6 +1126,7 @@ func (client BaseClient) GetAreaOfInterestInStream(ctx context.Context, imagePar result, err = client.GetAreaOfInterestInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "GetAreaOfInterestInStream", resp, "Failure responding to request") + return } return @@ -1184,6 +1196,7 @@ func (client BaseClient) GetReadResult(ctx context.Context, operationID uuid.UUI result, err = client.GetReadResultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "GetReadResult", resp, "Failure responding to request") + return } return @@ -1255,6 +1268,7 @@ func (client BaseClient) ListModels(ctx context.Context) (result ListModelsResul result, err = client.ListModelsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "ListModels", resp, "Failure responding to request") + return } return @@ -1334,6 +1348,7 @@ func (client BaseClient) Read(ctx context.Context, imageURL ImageURL, language O result, err = client.ReadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "Read", resp, "Failure responding to request") + return } return @@ -1416,6 +1431,7 @@ func (client BaseClient) ReadInStream(ctx context.Context, imageParameter io.Rea result, err = client.ReadInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "ReadInStream", resp, "Failure responding to request") + return } return @@ -1506,6 +1522,7 @@ func (client BaseClient) RecognizePrintedText(ctx context.Context, detectOrienta result, err = client.RecognizePrintedTextResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "RecognizePrintedText", resp, "Failure responding to request") + return } return @@ -1593,6 +1610,7 @@ func (client BaseClient) RecognizePrintedTextInStream(ctx context.Context, detec result, err = client.RecognizePrintedTextInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "RecognizePrintedTextInStream", resp, "Failure responding to request") + return } return @@ -1687,6 +1705,7 @@ func (client BaseClient) TagImage(ctx context.Context, imageURL ImageURL, langua result, err = client.TagImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "TagImage", resp, "Failure responding to request") + return } return @@ -1773,6 +1792,7 @@ func (client BaseClient) TagImageInStream(ctx context.Context, imageParameter io result, err = client.TagImageInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "computervision.BaseClient", "TagImageInStream", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v3.1/customvision/prediction/client.go b/services/cognitiveservices/v3.1/customvision/prediction/client.go index 470288fd6811..7ee9692e0c1b 100644 --- a/services/cognitiveservices/v3.1/customvision/prediction/client.go +++ b/services/cognitiveservices/v3.1/customvision/prediction/client.go @@ -83,6 +83,7 @@ func (client BaseClient) ClassifyImage(ctx context.Context, projectID uuid.UUID, result, err = client.ClassifyImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "prediction.BaseClient", "ClassifyImage", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client BaseClient) ClassifyImageURL(ctx context.Context, projectID uuid.UU result, err = client.ClassifyImageURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "prediction.BaseClient", "ClassifyImageURL", resp, "Failure responding to request") + return } return @@ -262,6 +264,7 @@ func (client BaseClient) ClassifyImageURLWithNoStore(ctx context.Context, projec result, err = client.ClassifyImageURLWithNoStoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "prediction.BaseClient", "ClassifyImageURLWithNoStore", resp, "Failure responding to request") + return } return @@ -344,6 +347,7 @@ func (client BaseClient) ClassifyImageWithNoStore(ctx context.Context, projectID result, err = client.ClassifyImageWithNoStoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "prediction.BaseClient", "ClassifyImageWithNoStore", resp, "Failure responding to request") + return } return @@ -429,6 +433,7 @@ func (client BaseClient) DetectImage(ctx context.Context, projectID uuid.UUID, p result, err = client.DetectImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "prediction.BaseClient", "DetectImage", resp, "Failure responding to request") + return } return @@ -520,6 +525,7 @@ func (client BaseClient) DetectImageURL(ctx context.Context, projectID uuid.UUID result, err = client.DetectImageURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "prediction.BaseClient", "DetectImageURL", resp, "Failure responding to request") + return } return @@ -608,6 +614,7 @@ func (client BaseClient) DetectImageURLWithNoStore(ctx context.Context, projectI result, err = client.DetectImageURLWithNoStoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "prediction.BaseClient", "DetectImageURLWithNoStore", resp, "Failure responding to request") + return } return @@ -690,6 +697,7 @@ func (client BaseClient) DetectImageWithNoStore(ctx context.Context, projectID u result, err = client.DetectImageWithNoStoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "prediction.BaseClient", "DetectImageWithNoStore", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v3.1/customvision/training/client.go b/services/cognitiveservices/v3.1/customvision/training/client.go index 8dc055306139..c22f9e23621d 100644 --- a/services/cognitiveservices/v3.1/customvision/training/client.go +++ b/services/cognitiveservices/v3.1/customvision/training/client.go @@ -85,6 +85,7 @@ func (client BaseClient) CreateImageRegions(ctx context.Context, projectID uuid. result, err = client.CreateImageRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImageRegions", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client BaseClient) CreateImagesFromData(ctx context.Context, projectID uui result, err = client.CreateImagesFromDataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromData", resp, "Failure responding to request") + return } return @@ -255,6 +257,7 @@ func (client BaseClient) CreateImagesFromFiles(ctx context.Context, projectID uu result, err = client.CreateImagesFromFilesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromFiles", resp, "Failure responding to request") + return } return @@ -330,6 +333,7 @@ func (client BaseClient) CreateImagesFromPredictions(ctx context.Context, projec result, err = client.CreateImagesFromPredictionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromPredictions", resp, "Failure responding to request") + return } return @@ -405,6 +409,7 @@ func (client BaseClient) CreateImagesFromUrls(ctx context.Context, projectID uui result, err = client.CreateImagesFromUrlsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromUrls", resp, "Failure responding to request") + return } return @@ -479,6 +484,7 @@ func (client BaseClient) CreateImageTags(ctx context.Context, projectID uuid.UUI result, err = client.CreateImageTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImageTags", resp, "Failure responding to request") + return } return @@ -556,6 +562,7 @@ func (client BaseClient) CreateProject(ctx context.Context, name string, descrip result, err = client.CreateProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateProject", resp, "Failure responding to request") + return } return @@ -643,6 +650,7 @@ func (client BaseClient) CreateTag(ctx context.Context, projectID uuid.UUID, nam result, err = client.CreateTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateTag", resp, "Failure responding to request") + return } return @@ -735,6 +743,7 @@ func (client BaseClient) DeleteImageRegions(ctx context.Context, projectID uuid. result, err = client.DeleteImageRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImageRegions", resp, "Failure responding to request") + return } return @@ -824,6 +833,7 @@ func (client BaseClient) DeleteImages(ctx context.Context, projectID uuid.UUID, result, err = client.DeleteImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImages", resp, "Failure responding to request") + return } return @@ -922,6 +932,7 @@ func (client BaseClient) DeleteImageTags(ctx context.Context, projectID uuid.UUI result, err = client.DeleteImageTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImageTags", resp, "Failure responding to request") + return } return @@ -999,6 +1010,7 @@ func (client BaseClient) DeleteIteration(ctx context.Context, projectID uuid.UUI result, err = client.DeleteIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteIteration", resp, "Failure responding to request") + return } return @@ -1080,6 +1092,7 @@ func (client BaseClient) DeletePrediction(ctx context.Context, projectID uuid.UU result, err = client.DeletePredictionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeletePrediction", resp, "Failure responding to request") + return } return @@ -1155,6 +1168,7 @@ func (client BaseClient) DeleteProject(ctx context.Context, projectID uuid.UUID) result, err = client.DeleteProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteProject", resp, "Failure responding to request") + return } return @@ -1226,6 +1240,7 @@ func (client BaseClient) DeleteTag(ctx context.Context, projectID uuid.UUID, tag result, err = client.DeleteTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteTag", resp, "Failure responding to request") + return } return @@ -1300,6 +1315,7 @@ func (client BaseClient) ExportIteration(ctx context.Context, projectID uuid.UUI result, err = client.ExportIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "ExportIteration", resp, "Failure responding to request") + return } return @@ -1380,6 +1396,7 @@ func (client BaseClient) GetDomain(ctx context.Context, domainID uuid.UUID) (res result, err = client.GetDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetDomain", resp, "Failure responding to request") + return } return @@ -1449,6 +1466,7 @@ func (client BaseClient) GetDomains(ctx context.Context) (result ListDomain, err result, err = client.GetDomainsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetDomains", resp, "Failure responding to request") + return } return @@ -1517,6 +1535,7 @@ func (client BaseClient) GetExports(ctx context.Context, projectID uuid.UUID, it result, err = client.GetExportsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetExports", resp, "Failure responding to request") + return } return @@ -1593,6 +1612,7 @@ func (client BaseClient) GetImagePerformanceCount(ctx context.Context, projectID result, err = client.GetImagePerformanceCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagePerformanceCount", resp, "Failure responding to request") + return } return @@ -1694,6 +1714,7 @@ func (client BaseClient) GetImagePerformances(ctx context.Context, projectID uui result, err = client.GetImagePerformancesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagePerformances", resp, "Failure responding to request") + return } return @@ -1787,6 +1808,7 @@ func (client BaseClient) GetImageRegionProposals(ctx context.Context, projectID result, err = client.GetImageRegionProposalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImageRegionProposals", resp, "Failure responding to request") + return } return @@ -1872,6 +1894,7 @@ func (client BaseClient) GetImagesByIds(ctx context.Context, projectID uuid.UUID result, err = client.GetImagesByIdsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagesByIds", resp, "Failure responding to request") + return } return @@ -1953,6 +1976,7 @@ func (client BaseClient) GetIteration(ctx context.Context, projectID uuid.UUID, result, err = client.GetIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIteration", resp, "Failure responding to request") + return } return @@ -2028,6 +2052,7 @@ func (client BaseClient) GetIterationPerformance(ctx context.Context, projectID result, err = client.GetIterationPerformanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIterationPerformance", resp, "Failure responding to request") + return } return @@ -2109,6 +2134,7 @@ func (client BaseClient) GetIterations(ctx context.Context, projectID uuid.UUID) result, err = client.GetIterationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIterations", resp, "Failure responding to request") + return } return @@ -2180,6 +2206,7 @@ func (client BaseClient) GetProject(ctx context.Context, projectID uuid.UUID) (r result, err = client.GetProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetProject", resp, "Failure responding to request") + return } return @@ -2249,6 +2276,7 @@ func (client BaseClient) GetProjects(ctx context.Context) (result ListProject, e result, err = client.GetProjectsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetProjects", resp, "Failure responding to request") + return } return @@ -2318,6 +2346,7 @@ func (client BaseClient) GetTag(ctx context.Context, projectID uuid.UUID, tagID result, err = client.GetTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTag", resp, "Failure responding to request") + return } return @@ -2400,6 +2429,7 @@ func (client BaseClient) GetTaggedImageCount(ctx context.Context, projectID uuid result, err = client.GetTaggedImageCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTaggedImageCount", resp, "Failure responding to request") + return } return @@ -2503,6 +2533,7 @@ func (client BaseClient) GetTaggedImages(ctx context.Context, projectID uuid.UUI result, err = client.GetTaggedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTaggedImages", resp, "Failure responding to request") + return } return @@ -2597,6 +2628,7 @@ func (client BaseClient) GetTags(ctx context.Context, projectID uuid.UUID, itera result, err = client.GetTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTags", resp, "Failure responding to request") + return } return @@ -2677,6 +2709,7 @@ func (client BaseClient) GetUntaggedImageCount(ctx context.Context, projectID uu result, err = client.GetUntaggedImageCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetUntaggedImageCount", resp, "Failure responding to request") + return } return @@ -2769,6 +2802,7 @@ func (client BaseClient) GetUntaggedImages(ctx context.Context, projectID uuid.U result, err = client.GetUntaggedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetUntaggedImages", resp, "Failure responding to request") + return } return @@ -2862,6 +2896,7 @@ func (client BaseClient) PublishIteration(ctx context.Context, projectID uuid.UU result, err = client.PublishIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "PublishIteration", resp, "Failure responding to request") + return } return @@ -2941,6 +2976,7 @@ func (client BaseClient) QueryPredictions(ctx context.Context, projectID uuid.UU result, err = client.QueryPredictionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QueryPredictions", resp, "Failure responding to request") + return } return @@ -3017,6 +3053,7 @@ func (client BaseClient) QuerySuggestedImageCount(ctx context.Context, projectID result, err = client.QuerySuggestedImageCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QuerySuggestedImageCount", resp, "Failure responding to request") + return } return @@ -3098,6 +3135,7 @@ func (client BaseClient) QuerySuggestedImages(ctx context.Context, projectID uui result, err = client.QuerySuggestedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QuerySuggestedImages", resp, "Failure responding to request") + return } return @@ -3181,6 +3219,7 @@ func (client BaseClient) QuickTestImage(ctx context.Context, projectID uuid.UUID result, err = client.QuickTestImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QuickTestImage", resp, "Failure responding to request") + return } return @@ -3279,6 +3318,7 @@ func (client BaseClient) QuickTestImageURL(ctx context.Context, projectID uuid.U result, err = client.QuickTestImageURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QuickTestImageURL", resp, "Failure responding to request") + return } return @@ -3376,6 +3416,7 @@ func (client BaseClient) SuggestTagsAndRegions(ctx context.Context, projectID uu result, err = client.SuggestTagsAndRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "SuggestTagsAndRegions", resp, "Failure responding to request") + return } return @@ -3457,6 +3498,7 @@ func (client BaseClient) TrainProject(ctx context.Context, projectID uuid.UUID, result, err = client.TrainProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "TrainProject", resp, "Failure responding to request") + return } return @@ -3548,6 +3590,7 @@ func (client BaseClient) UnpublishIteration(ctx context.Context, projectID uuid. result, err = client.UnpublishIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UnpublishIteration", resp, "Failure responding to request") + return } return @@ -3621,6 +3664,7 @@ func (client BaseClient) UpdateIteration(ctx context.Context, projectID uuid.UUI result, err = client.UpdateIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateIteration", resp, "Failure responding to request") + return } return @@ -3711,6 +3755,7 @@ func (client BaseClient) UpdateProject(ctx context.Context, projectID uuid.UUID, result, err = client.UpdateProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateProject", resp, "Failure responding to request") + return } return @@ -3791,6 +3836,7 @@ func (client BaseClient) UpdateTag(ctx context.Context, projectID uuid.UUID, tag result, err = client.UpdateTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateTag", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v3.2/customvision/training/client.go b/services/cognitiveservices/v3.2/customvision/training/client.go index fab3ed013862..4bfe1272e86a 100644 --- a/services/cognitiveservices/v3.2/customvision/training/client.go +++ b/services/cognitiveservices/v3.2/customvision/training/client.go @@ -83,6 +83,7 @@ func (client BaseClient) CreateImageRegions(ctx context.Context, projectID uuid. result, err = client.CreateImageRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImageRegions", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client BaseClient) CreateImagesFromData(ctx context.Context, projectID uui result, err = client.CreateImagesFromDataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromData", resp, "Failure responding to request") + return } return @@ -251,6 +253,7 @@ func (client BaseClient) CreateImagesFromFiles(ctx context.Context, projectID uu result, err = client.CreateImagesFromFilesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromFiles", resp, "Failure responding to request") + return } return @@ -325,6 +328,7 @@ func (client BaseClient) CreateImagesFromPredictions(ctx context.Context, projec result, err = client.CreateImagesFromPredictionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromPredictions", resp, "Failure responding to request") + return } return @@ -399,6 +403,7 @@ func (client BaseClient) CreateImagesFromUrls(ctx context.Context, projectID uui result, err = client.CreateImagesFromUrlsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromUrls", resp, "Failure responding to request") + return } return @@ -472,6 +477,7 @@ func (client BaseClient) CreateImageTags(ctx context.Context, projectID uuid.UUI result, err = client.CreateImageTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImageTags", resp, "Failure responding to request") + return } return @@ -548,6 +554,7 @@ func (client BaseClient) CreateProject(ctx context.Context, name string, descrip result, err = client.CreateProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateProject", resp, "Failure responding to request") + return } return @@ -634,6 +641,7 @@ func (client BaseClient) CreateTag(ctx context.Context, projectID uuid.UUID, nam result, err = client.CreateTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateTag", resp, "Failure responding to request") + return } return @@ -725,6 +733,7 @@ func (client BaseClient) DeleteImageRegions(ctx context.Context, projectID uuid. result, err = client.DeleteImageRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImageRegions", resp, "Failure responding to request") + return } return @@ -813,6 +822,7 @@ func (client BaseClient) DeleteImages(ctx context.Context, projectID uuid.UUID, result, err = client.DeleteImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImages", resp, "Failure responding to request") + return } return @@ -910,6 +920,7 @@ func (client BaseClient) DeleteImageTags(ctx context.Context, projectID uuid.UUI result, err = client.DeleteImageTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImageTags", resp, "Failure responding to request") + return } return @@ -986,6 +997,7 @@ func (client BaseClient) DeleteIteration(ctx context.Context, projectID uuid.UUI result, err = client.DeleteIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteIteration", resp, "Failure responding to request") + return } return @@ -1066,6 +1078,7 @@ func (client BaseClient) DeletePrediction(ctx context.Context, projectID uuid.UU result, err = client.DeletePredictionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeletePrediction", resp, "Failure responding to request") + return } return @@ -1140,6 +1153,7 @@ func (client BaseClient) DeleteProject(ctx context.Context, projectID uuid.UUID) result, err = client.DeleteProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteProject", resp, "Failure responding to request") + return } return @@ -1210,6 +1224,7 @@ func (client BaseClient) DeleteTag(ctx context.Context, projectID uuid.UUID, tag result, err = client.DeleteTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteTag", resp, "Failure responding to request") + return } return @@ -1283,6 +1298,7 @@ func (client BaseClient) ExportIteration(ctx context.Context, projectID uuid.UUI result, err = client.ExportIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "ExportIteration", resp, "Failure responding to request") + return } return @@ -1362,6 +1378,7 @@ func (client BaseClient) ExportProject(ctx context.Context, projectID uuid.UUID) result, err = client.ExportProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "ExportProject", resp, "Failure responding to request") + return } return @@ -1432,6 +1449,7 @@ func (client BaseClient) GetDomain(ctx context.Context, domainID uuid.UUID) (res result, err = client.GetDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetDomain", resp, "Failure responding to request") + return } return @@ -1500,6 +1518,7 @@ func (client BaseClient) GetDomains(ctx context.Context) (result ListDomain, err result, err = client.GetDomainsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetDomains", resp, "Failure responding to request") + return } return @@ -1567,6 +1586,7 @@ func (client BaseClient) GetExports(ctx context.Context, projectID uuid.UUID, it result, err = client.GetExportsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetExports", resp, "Failure responding to request") + return } return @@ -1642,6 +1662,7 @@ func (client BaseClient) GetImagePerformanceCount(ctx context.Context, projectID result, err = client.GetImagePerformanceCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagePerformanceCount", resp, "Failure responding to request") + return } return @@ -1742,6 +1763,7 @@ func (client BaseClient) GetImagePerformances(ctx context.Context, projectID uui result, err = client.GetImagePerformancesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagePerformances", resp, "Failure responding to request") + return } return @@ -1834,6 +1856,7 @@ func (client BaseClient) GetImageRegionProposals(ctx context.Context, projectID result, err = client.GetImageRegionProposalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImageRegionProposals", resp, "Failure responding to request") + return } return @@ -1918,6 +1941,7 @@ func (client BaseClient) GetImagesByIds(ctx context.Context, projectID uuid.UUID result, err = client.GetImagesByIdsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagesByIds", resp, "Failure responding to request") + return } return @@ -1998,6 +2022,7 @@ func (client BaseClient) GetIteration(ctx context.Context, projectID uuid.UUID, result, err = client.GetIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIteration", resp, "Failure responding to request") + return } return @@ -2072,6 +2097,7 @@ func (client BaseClient) GetIterationPerformance(ctx context.Context, projectID result, err = client.GetIterationPerformanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIterationPerformance", resp, "Failure responding to request") + return } return @@ -2152,6 +2178,7 @@ func (client BaseClient) GetIterations(ctx context.Context, projectID uuid.UUID) result, err = client.GetIterationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIterations", resp, "Failure responding to request") + return } return @@ -2222,6 +2249,7 @@ func (client BaseClient) GetProject(ctx context.Context, projectID uuid.UUID) (r result, err = client.GetProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetProject", resp, "Failure responding to request") + return } return @@ -2290,6 +2318,7 @@ func (client BaseClient) GetProjects(ctx context.Context) (result ListProject, e result, err = client.GetProjectsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetProjects", resp, "Failure responding to request") + return } return @@ -2358,6 +2387,7 @@ func (client BaseClient) GetTag(ctx context.Context, projectID uuid.UUID, tagID result, err = client.GetTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTag", resp, "Failure responding to request") + return } return @@ -2439,6 +2469,7 @@ func (client BaseClient) GetTaggedImageCount(ctx context.Context, projectID uuid result, err = client.GetTaggedImageCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTaggedImageCount", resp, "Failure responding to request") + return } return @@ -2541,6 +2572,7 @@ func (client BaseClient) GetTaggedImages(ctx context.Context, projectID uuid.UUI result, err = client.GetTaggedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTaggedImages", resp, "Failure responding to request") + return } return @@ -2634,6 +2666,7 @@ func (client BaseClient) GetTags(ctx context.Context, projectID uuid.UUID, itera result, err = client.GetTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTags", resp, "Failure responding to request") + return } return @@ -2713,6 +2746,7 @@ func (client BaseClient) GetUntaggedImageCount(ctx context.Context, projectID uu result, err = client.GetUntaggedImageCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetUntaggedImageCount", resp, "Failure responding to request") + return } return @@ -2804,6 +2838,7 @@ func (client BaseClient) GetUntaggedImages(ctx context.Context, projectID uuid.U result, err = client.GetUntaggedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetUntaggedImages", resp, "Failure responding to request") + return } return @@ -2893,6 +2928,7 @@ func (client BaseClient) ImportProject(ctx context.Context, tokenParameter strin result, err = client.ImportProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "ImportProject", resp, "Failure responding to request") + return } return @@ -2967,6 +3003,7 @@ func (client BaseClient) PublishIteration(ctx context.Context, projectID uuid.UU result, err = client.PublishIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "PublishIteration", resp, "Failure responding to request") + return } return @@ -3045,6 +3082,7 @@ func (client BaseClient) QueryPredictions(ctx context.Context, projectID uuid.UU result, err = client.QueryPredictionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QueryPredictions", resp, "Failure responding to request") + return } return @@ -3120,6 +3158,7 @@ func (client BaseClient) QuerySuggestedImageCount(ctx context.Context, projectID result, err = client.QuerySuggestedImageCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QuerySuggestedImageCount", resp, "Failure responding to request") + return } return @@ -3200,6 +3239,7 @@ func (client BaseClient) QuerySuggestedImages(ctx context.Context, projectID uui result, err = client.QuerySuggestedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QuerySuggestedImages", resp, "Failure responding to request") + return } return @@ -3282,6 +3322,7 @@ func (client BaseClient) QuickTestImage(ctx context.Context, projectID uuid.UUID result, err = client.QuickTestImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QuickTestImage", resp, "Failure responding to request") + return } return @@ -3379,6 +3420,7 @@ func (client BaseClient) QuickTestImageURL(ctx context.Context, projectID uuid.U result, err = client.QuickTestImageURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QuickTestImageURL", resp, "Failure responding to request") + return } return @@ -3475,6 +3517,7 @@ func (client BaseClient) SuggestTagsAndRegions(ctx context.Context, projectID uu result, err = client.SuggestTagsAndRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "SuggestTagsAndRegions", resp, "Failure responding to request") + return } return @@ -3556,6 +3599,7 @@ func (client BaseClient) TrainProject(ctx context.Context, projectID uuid.UUID, result, err = client.TrainProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "TrainProject", resp, "Failure responding to request") + return } return @@ -3651,6 +3695,7 @@ func (client BaseClient) UnpublishIteration(ctx context.Context, projectID uuid. result, err = client.UnpublishIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UnpublishIteration", resp, "Failure responding to request") + return } return @@ -3723,6 +3768,7 @@ func (client BaseClient) UpdateIteration(ctx context.Context, projectID uuid.UUI result, err = client.UpdateIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateIteration", resp, "Failure responding to request") + return } return @@ -3812,6 +3858,7 @@ func (client BaseClient) UpdateProject(ctx context.Context, projectID uuid.UUID, result, err = client.UpdateProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateProject", resp, "Failure responding to request") + return } return @@ -3891,6 +3938,7 @@ func (client BaseClient) UpdateTag(ctx context.Context, projectID uuid.UUID, tag result, err = client.UpdateTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateTag", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v3.3/customvision/training/client.go b/services/cognitiveservices/v3.3/customvision/training/client.go index 60140a1d2f87..e0d20740d7df 100644 --- a/services/cognitiveservices/v3.3/customvision/training/client.go +++ b/services/cognitiveservices/v3.3/customvision/training/client.go @@ -86,6 +86,7 @@ func (client BaseClient) CreateImageRegions(ctx context.Context, projectID uuid. result, err = client.CreateImageRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImageRegions", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client BaseClient) CreateImagesFromData(ctx context.Context, projectID uui result, err = client.CreateImagesFromDataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromData", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client BaseClient) CreateImagesFromFiles(ctx context.Context, projectID uu result, err = client.CreateImagesFromFilesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromFiles", resp, "Failure responding to request") + return } return @@ -337,6 +340,7 @@ func (client BaseClient) CreateImagesFromPredictions(ctx context.Context, projec result, err = client.CreateImagesFromPredictionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromPredictions", resp, "Failure responding to request") + return } return @@ -414,6 +418,7 @@ func (client BaseClient) CreateImagesFromUrls(ctx context.Context, projectID uui result, err = client.CreateImagesFromUrlsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromUrls", resp, "Failure responding to request") + return } return @@ -487,6 +492,7 @@ func (client BaseClient) CreateImageTags(ctx context.Context, projectID uuid.UUI result, err = client.CreateImageTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImageTags", resp, "Failure responding to request") + return } return @@ -563,6 +569,7 @@ func (client BaseClient) CreateProject(ctx context.Context, name string, descrip result, err = client.CreateProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateProject", resp, "Failure responding to request") + return } return @@ -649,6 +656,7 @@ func (client BaseClient) CreateTag(ctx context.Context, projectID uuid.UUID, nam result, err = client.CreateTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateTag", resp, "Failure responding to request") + return } return @@ -740,6 +748,7 @@ func (client BaseClient) DeleteImageRegions(ctx context.Context, projectID uuid. result, err = client.DeleteImageRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImageRegions", resp, "Failure responding to request") + return } return @@ -828,6 +837,7 @@ func (client BaseClient) DeleteImages(ctx context.Context, projectID uuid.UUID, result, err = client.DeleteImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImages", resp, "Failure responding to request") + return } return @@ -925,6 +935,7 @@ func (client BaseClient) DeleteImageTags(ctx context.Context, projectID uuid.UUI result, err = client.DeleteImageTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImageTags", resp, "Failure responding to request") + return } return @@ -1001,6 +1012,7 @@ func (client BaseClient) DeleteIteration(ctx context.Context, projectID uuid.UUI result, err = client.DeleteIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteIteration", resp, "Failure responding to request") + return } return @@ -1081,6 +1093,7 @@ func (client BaseClient) DeletePrediction(ctx context.Context, projectID uuid.UU result, err = client.DeletePredictionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeletePrediction", resp, "Failure responding to request") + return } return @@ -1155,6 +1168,7 @@ func (client BaseClient) DeleteProject(ctx context.Context, projectID uuid.UUID) result, err = client.DeleteProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteProject", resp, "Failure responding to request") + return } return @@ -1225,6 +1239,7 @@ func (client BaseClient) DeleteTag(ctx context.Context, projectID uuid.UUID, tag result, err = client.DeleteTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteTag", resp, "Failure responding to request") + return } return @@ -1298,6 +1313,7 @@ func (client BaseClient) ExportIteration(ctx context.Context, projectID uuid.UUI result, err = client.ExportIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "ExportIteration", resp, "Failure responding to request") + return } return @@ -1377,6 +1393,7 @@ func (client BaseClient) ExportProject(ctx context.Context, projectID uuid.UUID) result, err = client.ExportProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "ExportProject", resp, "Failure responding to request") + return } return @@ -1448,6 +1465,7 @@ func (client BaseClient) GetArtifact(ctx context.Context, projectID uuid.UUID, p result, err = client.GetArtifactResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetArtifact", resp, "Failure responding to request") + return } return @@ -1522,6 +1540,7 @@ func (client BaseClient) GetDomain(ctx context.Context, domainID uuid.UUID) (res result, err = client.GetDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetDomain", resp, "Failure responding to request") + return } return @@ -1590,6 +1609,7 @@ func (client BaseClient) GetDomains(ctx context.Context) (result ListDomain, err result, err = client.GetDomainsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetDomains", resp, "Failure responding to request") + return } return @@ -1657,6 +1677,7 @@ func (client BaseClient) GetExports(ctx context.Context, projectID uuid.UUID, it result, err = client.GetExportsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetExports", resp, "Failure responding to request") + return } return @@ -1736,6 +1757,7 @@ func (client BaseClient) GetImageCount(ctx context.Context, projectID uuid.UUID, result, err = client.GetImageCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImageCount", resp, "Failure responding to request") + return } return @@ -1825,6 +1847,7 @@ func (client BaseClient) GetImagePerformanceCount(ctx context.Context, projectID result, err = client.GetImagePerformanceCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagePerformanceCount", resp, "Failure responding to request") + return } return @@ -1925,6 +1948,7 @@ func (client BaseClient) GetImagePerformances(ctx context.Context, projectID uui result, err = client.GetImagePerformancesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagePerformances", resp, "Failure responding to request") + return } return @@ -2017,6 +2041,7 @@ func (client BaseClient) GetImageRegionProposals(ctx context.Context, projectID result, err = client.GetImageRegionProposalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImageRegionProposals", resp, "Failure responding to request") + return } return @@ -2116,6 +2141,7 @@ func (client BaseClient) GetImages(ctx context.Context, projectID uuid.UUID, ite result, err = client.GetImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImages", resp, "Failure responding to request") + return } return @@ -2227,6 +2253,7 @@ func (client BaseClient) GetImagesByIds(ctx context.Context, projectID uuid.UUID result, err = client.GetImagesByIdsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagesByIds", resp, "Failure responding to request") + return } return @@ -2307,6 +2334,7 @@ func (client BaseClient) GetIteration(ctx context.Context, projectID uuid.UUID, result, err = client.GetIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIteration", resp, "Failure responding to request") + return } return @@ -2381,6 +2409,7 @@ func (client BaseClient) GetIterationPerformance(ctx context.Context, projectID result, err = client.GetIterationPerformanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIterationPerformance", resp, "Failure responding to request") + return } return @@ -2461,6 +2490,7 @@ func (client BaseClient) GetIterations(ctx context.Context, projectID uuid.UUID) result, err = client.GetIterationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIterations", resp, "Failure responding to request") + return } return @@ -2531,6 +2561,7 @@ func (client BaseClient) GetProject(ctx context.Context, projectID uuid.UUID) (r result, err = client.GetProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetProject", resp, "Failure responding to request") + return } return @@ -2599,6 +2630,7 @@ func (client BaseClient) GetProjects(ctx context.Context) (result ListProject, e result, err = client.GetProjectsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetProjects", resp, "Failure responding to request") + return } return @@ -2667,6 +2699,7 @@ func (client BaseClient) GetTag(ctx context.Context, projectID uuid.UUID, tagID result, err = client.GetTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTag", resp, "Failure responding to request") + return } return @@ -2748,6 +2781,7 @@ func (client BaseClient) GetTaggedImageCount(ctx context.Context, projectID uuid result, err = client.GetTaggedImageCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTaggedImageCount", resp, "Failure responding to request") + return } return @@ -2850,6 +2884,7 @@ func (client BaseClient) GetTaggedImages(ctx context.Context, projectID uuid.UUI result, err = client.GetTaggedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTaggedImages", resp, "Failure responding to request") + return } return @@ -2943,6 +2978,7 @@ func (client BaseClient) GetTags(ctx context.Context, projectID uuid.UUID, itera result, err = client.GetTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTags", resp, "Failure responding to request") + return } return @@ -3022,6 +3058,7 @@ func (client BaseClient) GetUntaggedImageCount(ctx context.Context, projectID uu result, err = client.GetUntaggedImageCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetUntaggedImageCount", resp, "Failure responding to request") + return } return @@ -3113,6 +3150,7 @@ func (client BaseClient) GetUntaggedImages(ctx context.Context, projectID uuid.U result, err = client.GetUntaggedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetUntaggedImages", resp, "Failure responding to request") + return } return @@ -3203,6 +3241,7 @@ func (client BaseClient) ImportProject(ctx context.Context, tokenParameter strin result, err = client.ImportProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "ImportProject", resp, "Failure responding to request") + return } return @@ -3281,6 +3320,7 @@ func (client BaseClient) PublishIteration(ctx context.Context, projectID uuid.UU result, err = client.PublishIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "PublishIteration", resp, "Failure responding to request") + return } return @@ -3362,6 +3402,7 @@ func (client BaseClient) QueryPredictions(ctx context.Context, projectID uuid.UU result, err = client.QueryPredictionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QueryPredictions", resp, "Failure responding to request") + return } return @@ -3437,6 +3478,7 @@ func (client BaseClient) QuerySuggestedImageCount(ctx context.Context, projectID result, err = client.QuerySuggestedImageCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QuerySuggestedImageCount", resp, "Failure responding to request") + return } return @@ -3517,6 +3559,7 @@ func (client BaseClient) QuerySuggestedImages(ctx context.Context, projectID uui result, err = client.QuerySuggestedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QuerySuggestedImages", resp, "Failure responding to request") + return } return @@ -3599,6 +3642,7 @@ func (client BaseClient) QuickTestImage(ctx context.Context, projectID uuid.UUID result, err = client.QuickTestImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QuickTestImage", resp, "Failure responding to request") + return } return @@ -3696,6 +3740,7 @@ func (client BaseClient) QuickTestImageURL(ctx context.Context, projectID uuid.U result, err = client.QuickTestImageURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QuickTestImageURL", resp, "Failure responding to request") + return } return @@ -3792,6 +3837,7 @@ func (client BaseClient) SuggestTagsAndRegions(ctx context.Context, projectID uu result, err = client.SuggestTagsAndRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "SuggestTagsAndRegions", resp, "Failure responding to request") + return } return @@ -3873,6 +3919,7 @@ func (client BaseClient) TrainProject(ctx context.Context, projectID uuid.UUID, result, err = client.TrainProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "TrainProject", resp, "Failure responding to request") + return } return @@ -3968,6 +4015,7 @@ func (client BaseClient) UnpublishIteration(ctx context.Context, projectID uuid. result, err = client.UnpublishIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UnpublishIteration", resp, "Failure responding to request") + return } return @@ -4053,6 +4101,7 @@ func (client BaseClient) UpdateImageMetadata(ctx context.Context, projectID uuid result, err = client.UpdateImageMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateImageMetadata", resp, "Failure responding to request") + return } return @@ -4132,6 +4181,7 @@ func (client BaseClient) UpdateIteration(ctx context.Context, projectID uuid.UUI result, err = client.UpdateIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateIteration", resp, "Failure responding to request") + return } return @@ -4221,6 +4271,7 @@ func (client BaseClient) UpdateProject(ctx context.Context, projectID uuid.UUID, result, err = client.UpdateProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateProject", resp, "Failure responding to request") + return } return @@ -4300,6 +4351,7 @@ func (client BaseClient) UpdateTag(ctx context.Context, projectID uuid.UUID, tag result, err = client.UpdateTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateTag", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v4.0/qnamaker/alterations.go b/services/cognitiveservices/v4.0/qnamaker/alterations.go index ef36c4626f54..3a6eaf285aba 100644 --- a/services/cognitiveservices/v4.0/qnamaker/alterations.go +++ b/services/cognitiveservices/v4.0/qnamaker/alterations.go @@ -64,6 +64,7 @@ func (client AlterationsClient) Get(ctx context.Context) (result WordAlterations result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.AlterationsClient", "Get", resp, "Failure responding to request") + return } return @@ -136,6 +137,7 @@ func (client AlterationsClient) Replace(ctx context.Context, wordAlterations Wor result, err = client.ReplaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.AlterationsClient", "Replace", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v4.0/qnamaker/endpointkeys.go b/services/cognitiveservices/v4.0/qnamaker/endpointkeys.go index da6494b0e2a6..b2e266173230 100644 --- a/services/cognitiveservices/v4.0/qnamaker/endpointkeys.go +++ b/services/cognitiveservices/v4.0/qnamaker/endpointkeys.go @@ -63,6 +63,7 @@ func (client EndpointKeysClient) GetKeys(ctx context.Context) (result EndpointKe result, err = client.GetKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.EndpointKeysClient", "GetKeys", resp, "Failure responding to request") + return } return @@ -129,6 +130,7 @@ func (client EndpointKeysClient) RefreshKeys(ctx context.Context, keyType string result, err = client.RefreshKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.EndpointKeysClient", "RefreshKeys", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v4.0/qnamaker/endpointsettings.go b/services/cognitiveservices/v4.0/qnamaker/endpointsettings.go index 61a0dc5f49ff..27c2ace70740 100644 --- a/services/cognitiveservices/v4.0/qnamaker/endpointsettings.go +++ b/services/cognitiveservices/v4.0/qnamaker/endpointsettings.go @@ -63,6 +63,7 @@ func (client EndpointSettingsClient) GetSettings(ctx context.Context) (result En result, err = client.GetSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.EndpointSettingsClient", "GetSettings", resp, "Failure responding to request") + return } return @@ -129,6 +130,7 @@ func (client EndpointSettingsClient) UpdateSettings(ctx context.Context, endpoin result, err = client.UpdateSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.EndpointSettingsClient", "UpdateSettings", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v4.0/qnamaker/knowledgebase.go b/services/cognitiveservices/v4.0/qnamaker/knowledgebase.go index 1407c67b460e..e6caa0cd61c1 100644 --- a/services/cognitiveservices/v4.0/qnamaker/knowledgebase.go +++ b/services/cognitiveservices/v4.0/qnamaker/knowledgebase.go @@ -83,6 +83,7 @@ func (client KnowledgebaseClient) Create(ctx context.Context, createKbPayload Cr result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.KnowledgebaseClient", "Create", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client KnowledgebaseClient) Delete(ctx context.Context, kbID string) (resu result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.KnowledgebaseClient", "Delete", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client KnowledgebaseClient) Download(ctx context.Context, kbID string, env result, err = client.DownloadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.KnowledgebaseClient", "Download", resp, "Failure responding to request") + return } return @@ -306,6 +309,7 @@ func (client KnowledgebaseClient) GetDetails(ctx context.Context, kbID string) ( result, err = client.GetDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.KnowledgebaseClient", "GetDetails", resp, "Failure responding to request") + return } return @@ -374,6 +378,7 @@ func (client KnowledgebaseClient) ListAll(ctx context.Context) (result Knowledge result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.KnowledgebaseClient", "ListAll", resp, "Failure responding to request") + return } return @@ -440,6 +445,7 @@ func (client KnowledgebaseClient) Publish(ctx context.Context, kbID string) (res result, err = client.PublishResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.KnowledgebaseClient", "Publish", resp, "Failure responding to request") + return } return @@ -516,6 +522,7 @@ func (client KnowledgebaseClient) Replace(ctx context.Context, kbID string, repl result, err = client.ReplaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.KnowledgebaseClient", "Replace", resp, "Failure responding to request") + return } return @@ -588,6 +595,7 @@ func (client KnowledgebaseClient) Update(ctx context.Context, kbID string, updat result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.KnowledgebaseClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v4.0/qnamaker/operations.go b/services/cognitiveservices/v4.0/qnamaker/operations.go index b361811900b6..14f1cbf27795 100644 --- a/services/cognitiveservices/v4.0/qnamaker/operations.go +++ b/services/cognitiveservices/v4.0/qnamaker/operations.go @@ -65,6 +65,7 @@ func (client OperationsClient) GetDetails(ctx context.Context, operationID strin result, err = client.GetDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.OperationsClient", "GetDetails", resp, "Failure responding to request") + return } return diff --git a/services/cognitiveservices/v4.0/qnamakerruntime/runtime.go b/services/cognitiveservices/v4.0/qnamakerruntime/runtime.go index 5e613c2091e2..6ebc6baced51 100644 --- a/services/cognitiveservices/v4.0/qnamakerruntime/runtime.go +++ b/services/cognitiveservices/v4.0/qnamakerruntime/runtime.go @@ -66,6 +66,7 @@ func (client RuntimeClient) GenerateAnswer(ctx context.Context, kbID string, gen result, err = client.GenerateAnswerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamakerruntime.RuntimeClient", "GenerateAnswer", resp, "Failure responding to request") + return } return @@ -139,6 +140,7 @@ func (client RuntimeClient) Train(ctx context.Context, kbID string, trainPayload result, err = client.TrainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamakerruntime.RuntimeClient", "Train", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2015-06-15/compute/availabilitysets.go b/services/compute/mgmt/2015-06-15/compute/availabilitysets.go index 277f7b3398a6..4003cc6bdb96 100644 --- a/services/compute/mgmt/2015-06-15/compute/availabilitysets.go +++ b/services/compute/mgmt/2015-06-15/compute/availabilitysets.go @@ -74,6 +74,7 @@ func (client AvailabilitySetsClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client AvailabilitySetsClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client AvailabilitySetsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +304,7 @@ func (client AvailabilitySetsClient) List(ctx context.Context, resourceGroupName result.aslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "List", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +368,7 @@ func (client AvailabilitySetsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +421,7 @@ func (client AvailabilitySetsClient) ListAvailableSizes(ctx context.Context, res result, err = client.ListAvailableSizesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListAvailableSizes", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2015-06-15/compute/usage.go b/services/compute/mgmt/2015-06-15/compute/usage.go index b554b0c06bd4..7318ac59a9a6 100644 --- a/services/compute/mgmt/2015-06-15/compute/usage.go +++ b/services/compute/mgmt/2015-06-15/compute/usage.go @@ -80,6 +80,7 @@ func (client UsageClient) List(ctx context.Context, location string) (result Lis result.lur, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.UsageClient", "List", resp, "Failure responding to request") + return } if result.lur.hasNextLink() && result.lur.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client UsageClient) listNextResults(ctx context.Context, lastResults ListU result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.UsageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2015-06-15/compute/virtualmachineextensionimages.go b/services/compute/mgmt/2015-06-15/compute/virtualmachineextensionimages.go index 4f19be26524c..266706712e2d 100644 --- a/services/compute/mgmt/2015-06-15/compute/virtualmachineextensionimages.go +++ b/services/compute/mgmt/2015-06-15/compute/virtualmachineextensionimages.go @@ -72,6 +72,7 @@ func (client VirtualMachineExtensionImagesClient) Get(ctx context.Context, locat result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client VirtualMachineExtensionImagesClient) ListTypes(ctx context.Context, result, err = client.ListTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListTypes", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client VirtualMachineExtensionImagesClient) ListVersions(ctx context.Conte result, err = client.ListVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListVersions", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2015-06-15/compute/virtualmachineextensions.go b/services/compute/mgmt/2015-06-15/compute/virtualmachineextensions.go index 8fbd925a69c5..9f92a2a1ce5c 100644 --- a/services/compute/mgmt/2015-06-15/compute/virtualmachineextensions.go +++ b/services/compute/mgmt/2015-06-15/compute/virtualmachineextensions.go @@ -232,6 +232,7 @@ func (client VirtualMachineExtensionsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2015-06-15/compute/virtualmachineimages.go b/services/compute/mgmt/2015-06-15/compute/virtualmachineimages.go index 5f5aa8b2d2f7..13061aef4322 100644 --- a/services/compute/mgmt/2015-06-15/compute/virtualmachineimages.go +++ b/services/compute/mgmt/2015-06-15/compute/virtualmachineimages.go @@ -76,6 +76,7 @@ func (client VirtualMachineImagesClient) Get(ctx context.Context, location strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client VirtualMachineImagesClient) List(ctx context.Context, location stri result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "List", resp, "Failure responding to request") + return } return @@ -243,6 +245,7 @@ func (client VirtualMachineImagesClient) ListOffers(ctx context.Context, locatio result, err = client.ListOffersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListOffers", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client VirtualMachineImagesClient) ListPublishers(ctx context.Context, loc result, err = client.ListPublishersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListPublishers", resp, "Failure responding to request") + return } return @@ -392,6 +396,7 @@ func (client VirtualMachineImagesClient) ListSkus(ctx context.Context, location result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListSkus", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2015-06-15/compute/virtualmachines.go b/services/compute/mgmt/2015-06-15/compute/virtualmachines.go index 2fee87cd7634..bb53cd9fb797 100644 --- a/services/compute/mgmt/2015-06-15/compute/virtualmachines.go +++ b/services/compute/mgmt/2015-06-15/compute/virtualmachines.go @@ -413,6 +413,7 @@ func (client VirtualMachinesClient) Generalize(ctx context.Context, resourceGrou result, err = client.GeneralizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Generalize", resp, "Failure responding to request") + return } return @@ -489,6 +490,7 @@ func (client VirtualMachinesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Get", resp, "Failure responding to request") + return } return @@ -568,6 +570,7 @@ func (client VirtualMachinesClient) List(ctx context.Context, resourceGroupName result.vmlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "List", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -631,6 +634,7 @@ func (client VirtualMachinesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -681,6 +685,7 @@ func (client VirtualMachinesClient) ListAll(ctx context.Context) (result Virtual result.vmlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAll", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -743,6 +748,7 @@ func (client VirtualMachinesClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -794,6 +800,7 @@ func (client VirtualMachinesClient) ListAvailableSizes(ctx context.Context, reso result, err = client.ListAvailableSizesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAvailableSizes", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2015-06-15/compute/virtualmachinescalesets.go b/services/compute/mgmt/2015-06-15/compute/virtualmachinescalesets.go index a969355aefa0..d106d84e0205 100644 --- a/services/compute/mgmt/2015-06-15/compute/virtualmachinescalesets.go +++ b/services/compute/mgmt/2015-06-15/compute/virtualmachinescalesets.go @@ -406,6 +406,7 @@ func (client VirtualMachineScaleSetsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -481,6 +482,7 @@ func (client VirtualMachineScaleSetsClient) GetInstanceView(ctx context.Context, result, err = client.GetInstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "GetInstanceView", resp, "Failure responding to request") + return } return @@ -556,6 +558,7 @@ func (client VirtualMachineScaleSetsClient) List(ctx context.Context, resourceGr result.vmsslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "List", resp, "Failure responding to request") + return } if result.vmsslr.hasNextLink() && result.vmsslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -619,6 +622,7 @@ func (client VirtualMachineScaleSetsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -670,6 +674,7 @@ func (client VirtualMachineScaleSetsClient) ListAll(ctx context.Context) (result result.vmsslwlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListAll", resp, "Failure responding to request") + return } if result.vmsslwlr.hasNextLink() && result.vmsslwlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -732,6 +737,7 @@ func (client VirtualMachineScaleSetsClient) listAllNextResults(ctx context.Conte result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -785,6 +791,7 @@ func (client VirtualMachineScaleSetsClient) ListSkus(ctx context.Context, resour result.vmsslsr, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListSkus", resp, "Failure responding to request") + return } if result.vmsslsr.hasNextLink() && result.vmsslsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -849,6 +856,7 @@ func (client VirtualMachineScaleSetsClient) listSkusNextResults(ctx context.Cont result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2015-06-15/compute/virtualmachinescalesetvms.go b/services/compute/mgmt/2015-06-15/compute/virtualmachinescalesetvms.go index 5770c69d76d0..fd45872f5862 100644 --- a/services/compute/mgmt/2015-06-15/compute/virtualmachinescalesetvms.go +++ b/services/compute/mgmt/2015-06-15/compute/virtualmachinescalesetvms.go @@ -230,6 +230,7 @@ func (client VirtualMachineScaleSetVMsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client VirtualMachineScaleSetVMsClient) GetInstanceView(ctx context.Contex result, err = client.GetInstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "GetInstanceView", resp, "Failure responding to request") + return } return @@ -388,6 +390,7 @@ func (client VirtualMachineScaleSetVMsClient) List(ctx context.Context, resource result.vmssvlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "List", resp, "Failure responding to request") + return } if result.vmssvlr.hasNextLink() && result.vmssvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -461,6 +464,7 @@ func (client VirtualMachineScaleSetVMsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2015-06-15/compute/virtualmachinesizes.go b/services/compute/mgmt/2015-06-15/compute/virtualmachinesizes.go index db5b7af4ca05..332e64cd112b 100644 --- a/services/compute/mgmt/2015-06-15/compute/virtualmachinesizes.go +++ b/services/compute/mgmt/2015-06-15/compute/virtualmachinesizes.go @@ -79,6 +79,7 @@ func (client VirtualMachineSizesClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineSizesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2016-03-30/compute/availabilitysets.go b/services/compute/mgmt/2016-03-30/compute/availabilitysets.go index 0ea4a605645f..c2d44222f8db 100644 --- a/services/compute/mgmt/2016-03-30/compute/availabilitysets.go +++ b/services/compute/mgmt/2016-03-30/compute/availabilitysets.go @@ -74,6 +74,7 @@ func (client AvailabilitySetsClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client AvailabilitySetsClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client AvailabilitySetsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +304,7 @@ func (client AvailabilitySetsClient) List(ctx context.Context, resourceGroupName result.aslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "List", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +368,7 @@ func (client AvailabilitySetsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +421,7 @@ func (client AvailabilitySetsClient) ListAvailableSizes(ctx context.Context, res result, err = client.ListAvailableSizesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListAvailableSizes", resp, "Failure responding to request") + return } return @@ -491,6 +497,7 @@ func (client AvailabilitySetsClient) ListBySubscription(ctx context.Context, exp result.aslr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -556,6 +563,7 @@ func (client AvailabilitySetsClient) listBySubscriptionNextResults(ctx context.C result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2016-03-30/compute/usage.go b/services/compute/mgmt/2016-03-30/compute/usage.go index 0c97babadd0a..61e8f1031d6f 100644 --- a/services/compute/mgmt/2016-03-30/compute/usage.go +++ b/services/compute/mgmt/2016-03-30/compute/usage.go @@ -80,6 +80,7 @@ func (client UsageClient) List(ctx context.Context, location string) (result Lis result.lur, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.UsageClient", "List", resp, "Failure responding to request") + return } if result.lur.hasNextLink() && result.lur.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client UsageClient) listNextResults(ctx context.Context, lastResults ListU result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.UsageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2016-03-30/compute/virtualmachineextensionimages.go b/services/compute/mgmt/2016-03-30/compute/virtualmachineextensionimages.go index b5eb6124047c..055bf282873d 100644 --- a/services/compute/mgmt/2016-03-30/compute/virtualmachineextensionimages.go +++ b/services/compute/mgmt/2016-03-30/compute/virtualmachineextensionimages.go @@ -72,6 +72,7 @@ func (client VirtualMachineExtensionImagesClient) Get(ctx context.Context, locat result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client VirtualMachineExtensionImagesClient) ListTypes(ctx context.Context, result, err = client.ListTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListTypes", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client VirtualMachineExtensionImagesClient) ListVersions(ctx context.Conte result, err = client.ListVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListVersions", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2016-03-30/compute/virtualmachineextensions.go b/services/compute/mgmt/2016-03-30/compute/virtualmachineextensions.go index 98057efb561e..a2a05080a5d8 100644 --- a/services/compute/mgmt/2016-03-30/compute/virtualmachineextensions.go +++ b/services/compute/mgmt/2016-03-30/compute/virtualmachineextensions.go @@ -232,6 +232,7 @@ func (client VirtualMachineExtensionsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2016-03-30/compute/virtualmachineimages.go b/services/compute/mgmt/2016-03-30/compute/virtualmachineimages.go index 4468de8cc1bc..d1412b8ad812 100644 --- a/services/compute/mgmt/2016-03-30/compute/virtualmachineimages.go +++ b/services/compute/mgmt/2016-03-30/compute/virtualmachineimages.go @@ -76,6 +76,7 @@ func (client VirtualMachineImagesClient) Get(ctx context.Context, location strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client VirtualMachineImagesClient) List(ctx context.Context, location stri result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "List", resp, "Failure responding to request") + return } return @@ -243,6 +245,7 @@ func (client VirtualMachineImagesClient) ListOffers(ctx context.Context, locatio result, err = client.ListOffersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListOffers", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client VirtualMachineImagesClient) ListPublishers(ctx context.Context, loc result, err = client.ListPublishersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListPublishers", resp, "Failure responding to request") + return } return @@ -392,6 +396,7 @@ func (client VirtualMachineImagesClient) ListSkus(ctx context.Context, location result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListSkus", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2016-03-30/compute/virtualmachines.go b/services/compute/mgmt/2016-03-30/compute/virtualmachines.go index f7e8687c0143..1701d3939b9b 100644 --- a/services/compute/mgmt/2016-03-30/compute/virtualmachines.go +++ b/services/compute/mgmt/2016-03-30/compute/virtualmachines.go @@ -413,6 +413,7 @@ func (client VirtualMachinesClient) Generalize(ctx context.Context, resourceGrou result, err = client.GeneralizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Generalize", resp, "Failure responding to request") + return } return @@ -489,6 +490,7 @@ func (client VirtualMachinesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Get", resp, "Failure responding to request") + return } return @@ -568,6 +570,7 @@ func (client VirtualMachinesClient) GetExtensions(ctx context.Context, resourceG result, err = client.GetExtensionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "GetExtensions", resp, "Failure responding to request") + return } return @@ -647,6 +650,7 @@ func (client VirtualMachinesClient) List(ctx context.Context, resourceGroupName result.vmlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "List", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -710,6 +714,7 @@ func (client VirtualMachinesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -760,6 +765,7 @@ func (client VirtualMachinesClient) ListAll(ctx context.Context) (result Virtual result.vmlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAll", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -822,6 +828,7 @@ func (client VirtualMachinesClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -873,6 +880,7 @@ func (client VirtualMachinesClient) ListAvailableSizes(ctx context.Context, reso result, err = client.ListAvailableSizesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAvailableSizes", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2016-03-30/compute/virtualmachinescalesets.go b/services/compute/mgmt/2016-03-30/compute/virtualmachinescalesets.go index faedd9f9fbc4..7c903c33eb68 100644 --- a/services/compute/mgmt/2016-03-30/compute/virtualmachinescalesets.go +++ b/services/compute/mgmt/2016-03-30/compute/virtualmachinescalesets.go @@ -406,6 +406,7 @@ func (client VirtualMachineScaleSetsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -481,6 +482,7 @@ func (client VirtualMachineScaleSetsClient) GetInstanceView(ctx context.Context, result, err = client.GetInstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "GetInstanceView", resp, "Failure responding to request") + return } return @@ -556,6 +558,7 @@ func (client VirtualMachineScaleSetsClient) List(ctx context.Context, resourceGr result.vmsslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "List", resp, "Failure responding to request") + return } if result.vmsslr.hasNextLink() && result.vmsslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -619,6 +622,7 @@ func (client VirtualMachineScaleSetsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -670,6 +674,7 @@ func (client VirtualMachineScaleSetsClient) ListAll(ctx context.Context) (result result.vmsslwlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListAll", resp, "Failure responding to request") + return } if result.vmsslwlr.hasNextLink() && result.vmsslwlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -732,6 +737,7 @@ func (client VirtualMachineScaleSetsClient) listAllNextResults(ctx context.Conte result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -785,6 +791,7 @@ func (client VirtualMachineScaleSetsClient) ListSkus(ctx context.Context, resour result.vmsslsr, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListSkus", resp, "Failure responding to request") + return } if result.vmsslsr.hasNextLink() && result.vmsslsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -849,6 +856,7 @@ func (client VirtualMachineScaleSetsClient) listSkusNextResults(ctx context.Cont result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2016-03-30/compute/virtualmachinescalesetvms.go b/services/compute/mgmt/2016-03-30/compute/virtualmachinescalesetvms.go index 504a0260e160..df7bacb1e2c4 100644 --- a/services/compute/mgmt/2016-03-30/compute/virtualmachinescalesetvms.go +++ b/services/compute/mgmt/2016-03-30/compute/virtualmachinescalesetvms.go @@ -230,6 +230,7 @@ func (client VirtualMachineScaleSetVMsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client VirtualMachineScaleSetVMsClient) GetInstanceView(ctx context.Contex result, err = client.GetInstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "GetInstanceView", resp, "Failure responding to request") + return } return @@ -388,6 +390,7 @@ func (client VirtualMachineScaleSetVMsClient) List(ctx context.Context, resource result.vmssvlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "List", resp, "Failure responding to request") + return } if result.vmssvlr.hasNextLink() && result.vmssvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -461,6 +464,7 @@ func (client VirtualMachineScaleSetVMsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2016-03-30/compute/virtualmachinesizes.go b/services/compute/mgmt/2016-03-30/compute/virtualmachinesizes.go index 48df4ec561a6..6b0f46a63775 100644 --- a/services/compute/mgmt/2016-03-30/compute/virtualmachinesizes.go +++ b/services/compute/mgmt/2016-03-30/compute/virtualmachinesizes.go @@ -79,6 +79,7 @@ func (client VirtualMachineSizesClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineSizesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2017-03-30/compute/availabilitysets.go b/services/compute/mgmt/2017-03-30/compute/availabilitysets.go index 5a7484d975fa..c1d7bd09e875 100644 --- a/services/compute/mgmt/2017-03-30/compute/availabilitysets.go +++ b/services/compute/mgmt/2017-03-30/compute/availabilitysets.go @@ -74,6 +74,7 @@ func (client AvailabilitySetsClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client AvailabilitySetsClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client AvailabilitySetsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +304,7 @@ func (client AvailabilitySetsClient) List(ctx context.Context, resourceGroupName result.aslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "List", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +368,7 @@ func (client AvailabilitySetsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +421,7 @@ func (client AvailabilitySetsClient) ListAvailableSizes(ctx context.Context, res result, err = client.ListAvailableSizesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListAvailableSizes", resp, "Failure responding to request") + return } return @@ -491,6 +497,7 @@ func (client AvailabilitySetsClient) ListBySubscription(ctx context.Context, exp result.aslr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -556,6 +563,7 @@ func (client AvailabilitySetsClient) listBySubscriptionNextResults(ctx context.C result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2017-03-30/compute/disks.go b/services/compute/mgmt/2017-03-30/compute/disks.go index f2ea22b78a36..86cb1660b32d 100644 --- a/services/compute/mgmt/2017-03-30/compute/disks.go +++ b/services/compute/mgmt/2017-03-30/compute/disks.go @@ -254,6 +254,7 @@ func (client DisksClient) Get(ctx context.Context, resourceGroupName string, dis result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "Get", resp, "Failure responding to request") + return } return @@ -413,6 +414,7 @@ func (client DisksClient) List(ctx context.Context) (result DiskListPage, err er result.dl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "List", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +477,7 @@ func (client DisksClient) listNextResults(ctx context.Context, lastResults DiskL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +529,7 @@ func (client DisksClient) ListByResourceGroup(ctx context.Context, resourceGroup result.dl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -589,6 +593,7 @@ func (client DisksClient) listByResourceGroupNextResults(ctx context.Context, la result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2017-03-30/compute/images.go b/services/compute/mgmt/2017-03-30/compute/images.go index ceae7ebc3b8a..1ca2677a977c 100644 --- a/services/compute/mgmt/2017-03-30/compute/images.go +++ b/services/compute/mgmt/2017-03-30/compute/images.go @@ -236,6 +236,7 @@ func (client ImagesClient) Get(ctx context.Context, resourceGroupName string, im result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -313,6 +314,7 @@ func (client ImagesClient) List(ctx context.Context) (result ImageListResultPage result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client ImagesClient) listNextResults(ctx context.Context, lastResults Imag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -426,6 +429,7 @@ func (client ImagesClient) ListByResourceGroup(ctx context.Context, resourceGrou result.ilr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -489,6 +493,7 @@ func (client ImagesClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2017-03-30/compute/resourceskus.go b/services/compute/mgmt/2017-03-30/compute/resourceskus.go index d702af06d493..5143abf5383a 100644 --- a/services/compute/mgmt/2017-03-30/compute/resourceskus.go +++ b/services/compute/mgmt/2017-03-30/compute/resourceskus.go @@ -70,6 +70,7 @@ func (client ResourceSkusClient) List(ctx context.Context) (result ResourceSkusR result.rsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ResourceSkusClient", "List", resp, "Failure responding to request") + return } if result.rsr.hasNextLink() && result.rsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client ResourceSkusClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ResourceSkusClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2017-03-30/compute/snapshots.go b/services/compute/mgmt/2017-03-30/compute/snapshots.go index 9639ffec1a5c..2fcf6dbe0ce2 100644 --- a/services/compute/mgmt/2017-03-30/compute/snapshots.go +++ b/services/compute/mgmt/2017-03-30/compute/snapshots.go @@ -251,6 +251,7 @@ func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "Get", resp, "Failure responding to request") + return } return @@ -409,6 +410,7 @@ func (client SnapshotsClient) List(ctx context.Context) (result SnapshotListPage result.sl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "List", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -471,6 +473,7 @@ func (client SnapshotsClient) listNextResults(ctx context.Context, lastResults S result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -522,6 +525,7 @@ func (client SnapshotsClient) ListByResourceGroup(ctx context.Context, resourceG result.sl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -585,6 +589,7 @@ func (client SnapshotsClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2017-03-30/compute/usage.go b/services/compute/mgmt/2017-03-30/compute/usage.go index 159c2b2d84c7..78788d890799 100644 --- a/services/compute/mgmt/2017-03-30/compute/usage.go +++ b/services/compute/mgmt/2017-03-30/compute/usage.go @@ -80,6 +80,7 @@ func (client UsageClient) List(ctx context.Context, location string) (result Lis result.lur, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.UsageClient", "List", resp, "Failure responding to request") + return } if result.lur.hasNextLink() && result.lur.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client UsageClient) listNextResults(ctx context.Context, lastResults ListU result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.UsageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2017-03-30/compute/virtualmachineextensionimages.go b/services/compute/mgmt/2017-03-30/compute/virtualmachineextensionimages.go index 0d4397f19855..f1098e4f0caf 100644 --- a/services/compute/mgmt/2017-03-30/compute/virtualmachineextensionimages.go +++ b/services/compute/mgmt/2017-03-30/compute/virtualmachineextensionimages.go @@ -72,6 +72,7 @@ func (client VirtualMachineExtensionImagesClient) Get(ctx context.Context, locat result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client VirtualMachineExtensionImagesClient) ListTypes(ctx context.Context, result, err = client.ListTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListTypes", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client VirtualMachineExtensionImagesClient) ListVersions(ctx context.Conte result, err = client.ListVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListVersions", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2017-03-30/compute/virtualmachineextensions.go b/services/compute/mgmt/2017-03-30/compute/virtualmachineextensions.go index a7b7285c216b..b0bbf0caa7ff 100644 --- a/services/compute/mgmt/2017-03-30/compute/virtualmachineextensions.go +++ b/services/compute/mgmt/2017-03-30/compute/virtualmachineextensions.go @@ -232,6 +232,7 @@ func (client VirtualMachineExtensionsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2017-03-30/compute/virtualmachineimages.go b/services/compute/mgmt/2017-03-30/compute/virtualmachineimages.go index 835c02c05da6..e55f93dc3ab8 100644 --- a/services/compute/mgmt/2017-03-30/compute/virtualmachineimages.go +++ b/services/compute/mgmt/2017-03-30/compute/virtualmachineimages.go @@ -76,6 +76,7 @@ func (client VirtualMachineImagesClient) Get(ctx context.Context, location strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client VirtualMachineImagesClient) List(ctx context.Context, location stri result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "List", resp, "Failure responding to request") + return } return @@ -243,6 +245,7 @@ func (client VirtualMachineImagesClient) ListOffers(ctx context.Context, locatio result, err = client.ListOffersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListOffers", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client VirtualMachineImagesClient) ListPublishers(ctx context.Context, loc result, err = client.ListPublishersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListPublishers", resp, "Failure responding to request") + return } return @@ -392,6 +396,7 @@ func (client VirtualMachineImagesClient) ListSkus(ctx context.Context, location result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListSkus", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2017-03-30/compute/virtualmachineruncommands.go b/services/compute/mgmt/2017-03-30/compute/virtualmachineruncommands.go index 91c2a4a2e3d0..742aaa19d6ef 100644 --- a/services/compute/mgmt/2017-03-30/compute/virtualmachineruncommands.go +++ b/services/compute/mgmt/2017-03-30/compute/virtualmachineruncommands.go @@ -80,6 +80,7 @@ func (client VirtualMachineRunCommandsClient) Get(ctx context.Context, location result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "Get", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client VirtualMachineRunCommandsClient) List(ctx context.Context, location result.rclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "List", resp, "Failure responding to request") + return } if result.rclr.hasNextLink() && result.rclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -224,6 +226,7 @@ func (client VirtualMachineRunCommandsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2017-03-30/compute/virtualmachines.go b/services/compute/mgmt/2017-03-30/compute/virtualmachines.go index a5358c947aa1..9d3cc88cbdd9 100644 --- a/services/compute/mgmt/2017-03-30/compute/virtualmachines.go +++ b/services/compute/mgmt/2017-03-30/compute/virtualmachines.go @@ -487,6 +487,7 @@ func (client VirtualMachinesClient) Generalize(ctx context.Context, resourceGrou result, err = client.GeneralizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Generalize", resp, "Failure responding to request") + return } return @@ -563,6 +564,7 @@ func (client VirtualMachinesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Get", resp, "Failure responding to request") + return } return @@ -642,6 +644,7 @@ func (client VirtualMachinesClient) GetExtensions(ctx context.Context, resourceG result, err = client.GetExtensionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "GetExtensions", resp, "Failure responding to request") + return } return @@ -720,6 +723,7 @@ func (client VirtualMachinesClient) InstanceView(ctx context.Context, resourceGr result, err = client.InstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "InstanceView", resp, "Failure responding to request") + return } return @@ -796,6 +800,7 @@ func (client VirtualMachinesClient) List(ctx context.Context, resourceGroupName result.vmlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "List", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -859,6 +864,7 @@ func (client VirtualMachinesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -909,6 +915,7 @@ func (client VirtualMachinesClient) ListAll(ctx context.Context) (result Virtual result.vmlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAll", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -971,6 +978,7 @@ func (client VirtualMachinesClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -1022,6 +1030,7 @@ func (client VirtualMachinesClient) ListAvailableSizes(ctx context.Context, reso result, err = client.ListAvailableSizesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAvailableSizes", resp, "Failure responding to request") + return } return @@ -1103,6 +1112,7 @@ func (client VirtualMachinesClient) ListByLocation(ctx context.Context, location result.vmlr, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListByLocation", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1166,6 +1176,7 @@ func (client VirtualMachinesClient) listByLocationNextResults(ctx context.Contex result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listByLocationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2017-03-30/compute/virtualmachinescalesetextensions.go b/services/compute/mgmt/2017-03-30/compute/virtualmachinescalesetextensions.go index 8067f5ceb9be..85e4dff89b0b 100644 --- a/services/compute/mgmt/2017-03-30/compute/virtualmachinescalesetextensions.go +++ b/services/compute/mgmt/2017-03-30/compute/virtualmachinescalesetextensions.go @@ -232,6 +232,7 @@ func (client VirtualMachineScaleSetExtensionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client VirtualMachineScaleSetExtensionsClient) List(ctx context.Context, r result.vmsselr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "List", resp, "Failure responding to request") + return } if result.vmsselr.hasNextLink() && result.vmsselr.IsEmpty() { err = result.NextWithContext(ctx) @@ -376,6 +378,7 @@ func (client VirtualMachineScaleSetExtensionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2017-03-30/compute/virtualmachinescalesetrollingupgrades.go b/services/compute/mgmt/2017-03-30/compute/virtualmachinescalesetrollingupgrades.go index 10606fca955a..57a9cfdef723 100644 --- a/services/compute/mgmt/2017-03-30/compute/virtualmachinescalesetrollingupgrades.go +++ b/services/compute/mgmt/2017-03-30/compute/virtualmachinescalesetrollingupgrades.go @@ -149,6 +149,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) GetLatest(ctx context. result, err = client.GetLatestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetRollingUpgradesClient", "GetLatest", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2017-03-30/compute/virtualmachinescalesets.go b/services/compute/mgmt/2017-03-30/compute/virtualmachinescalesets.go index bf69c7c85065..29bb8d218793 100644 --- a/services/compute/mgmt/2017-03-30/compute/virtualmachinescalesets.go +++ b/services/compute/mgmt/2017-03-30/compute/virtualmachinescalesets.go @@ -416,6 +416,7 @@ func (client VirtualMachineScaleSetsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -491,6 +492,7 @@ func (client VirtualMachineScaleSetsClient) GetInstanceView(ctx context.Context, result, err = client.GetInstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "GetInstanceView", resp, "Failure responding to request") + return } return @@ -566,6 +568,7 @@ func (client VirtualMachineScaleSetsClient) List(ctx context.Context, resourceGr result.vmsslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "List", resp, "Failure responding to request") + return } if result.vmsslr.hasNextLink() && result.vmsslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -629,6 +632,7 @@ func (client VirtualMachineScaleSetsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -680,6 +684,7 @@ func (client VirtualMachineScaleSetsClient) ListAll(ctx context.Context) (result result.vmsslwlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListAll", resp, "Failure responding to request") + return } if result.vmsslwlr.hasNextLink() && result.vmsslwlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -742,6 +747,7 @@ func (client VirtualMachineScaleSetsClient) listAllNextResults(ctx context.Conte result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -795,6 +801,7 @@ func (client VirtualMachineScaleSetsClient) ListSkus(ctx context.Context, resour result.vmsslsr, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListSkus", resp, "Failure responding to request") + return } if result.vmsslsr.hasNextLink() && result.vmsslsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -859,6 +866,7 @@ func (client VirtualMachineScaleSetsClient) listSkusNextResults(ctx context.Cont result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2017-03-30/compute/virtualmachinescalesetvms.go b/services/compute/mgmt/2017-03-30/compute/virtualmachinescalesetvms.go index 308fa4567e3f..b66944520d82 100644 --- a/services/compute/mgmt/2017-03-30/compute/virtualmachinescalesetvms.go +++ b/services/compute/mgmt/2017-03-30/compute/virtualmachinescalesetvms.go @@ -230,6 +230,7 @@ func (client VirtualMachineScaleSetVMsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client VirtualMachineScaleSetVMsClient) GetInstanceView(ctx context.Contex result, err = client.GetInstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "GetInstanceView", resp, "Failure responding to request") + return } return @@ -388,6 +390,7 @@ func (client VirtualMachineScaleSetVMsClient) List(ctx context.Context, resource result.vmssvlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "List", resp, "Failure responding to request") + return } if result.vmssvlr.hasNextLink() && result.vmssvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -461,6 +464,7 @@ func (client VirtualMachineScaleSetVMsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2017-03-30/compute/virtualmachinesizes.go b/services/compute/mgmt/2017-03-30/compute/virtualmachinesizes.go index 1702066c6ccf..cb7d73ddb577 100644 --- a/services/compute/mgmt/2017-03-30/compute/virtualmachinesizes.go +++ b/services/compute/mgmt/2017-03-30/compute/virtualmachinesizes.go @@ -79,6 +79,7 @@ func (client VirtualMachineSizesClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineSizesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2017-09-01/skus/resourceskus.go b/services/compute/mgmt/2017-09-01/skus/resourceskus.go index 9b3ed21b3dee..e52c98bc672e 100644 --- a/services/compute/mgmt/2017-09-01/skus/resourceskus.go +++ b/services/compute/mgmt/2017-09-01/skus/resourceskus.go @@ -70,6 +70,7 @@ func (client ResourceSkusClient) List(ctx context.Context) (result ResourceSkusR result.rsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "skus.ResourceSkusClient", "List", resp, "Failure responding to request") + return } if result.rsr.hasNextLink() && result.rsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client ResourceSkusClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "skus.ResourceSkusClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2017-12-01/compute/availabilitysets.go b/services/compute/mgmt/2017-12-01/compute/availabilitysets.go index caa20e26e73d..04e3b62c0131 100644 --- a/services/compute/mgmt/2017-12-01/compute/availabilitysets.go +++ b/services/compute/mgmt/2017-12-01/compute/availabilitysets.go @@ -74,6 +74,7 @@ func (client AvailabilitySetsClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client AvailabilitySetsClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client AvailabilitySetsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +304,7 @@ func (client AvailabilitySetsClient) List(ctx context.Context, resourceGroupName result.aslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "List", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +368,7 @@ func (client AvailabilitySetsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +421,7 @@ func (client AvailabilitySetsClient) ListAvailableSizes(ctx context.Context, res result, err = client.ListAvailableSizesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListAvailableSizes", resp, "Failure responding to request") + return } return @@ -491,6 +497,7 @@ func (client AvailabilitySetsClient) ListBySubscription(ctx context.Context, exp result.aslr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -556,6 +563,7 @@ func (client AvailabilitySetsClient) listBySubscriptionNextResults(ctx context.C result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -608,6 +616,7 @@ func (client AvailabilitySetsClient) Update(ctx context.Context, resourceGroupNa result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2017-12-01/compute/disks.go b/services/compute/mgmt/2017-12-01/compute/disks.go index f2ea22b78a36..86cb1660b32d 100644 --- a/services/compute/mgmt/2017-12-01/compute/disks.go +++ b/services/compute/mgmt/2017-12-01/compute/disks.go @@ -254,6 +254,7 @@ func (client DisksClient) Get(ctx context.Context, resourceGroupName string, dis result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "Get", resp, "Failure responding to request") + return } return @@ -413,6 +414,7 @@ func (client DisksClient) List(ctx context.Context) (result DiskListPage, err er result.dl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "List", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +477,7 @@ func (client DisksClient) listNextResults(ctx context.Context, lastResults DiskL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +529,7 @@ func (client DisksClient) ListByResourceGroup(ctx context.Context, resourceGroup result.dl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -589,6 +593,7 @@ func (client DisksClient) listByResourceGroupNextResults(ctx context.Context, la result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2017-12-01/compute/images.go b/services/compute/mgmt/2017-12-01/compute/images.go index b95a71439662..ec94e13ad5d2 100644 --- a/services/compute/mgmt/2017-12-01/compute/images.go +++ b/services/compute/mgmt/2017-12-01/compute/images.go @@ -226,6 +226,7 @@ func (client ImagesClient) Get(ctx context.Context, resourceGroupName string, im result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client ImagesClient) List(ctx context.Context) (result ImageListResultPage result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -365,6 +367,7 @@ func (client ImagesClient) listNextResults(ctx context.Context, lastResults Imag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client ImagesClient) ListByResourceGroup(ctx context.Context, resourceGrou result.ilr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client ImagesClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2017-12-01/compute/operations.go b/services/compute/mgmt/2017-12-01/compute/operations.go index 0e60985d73fd..077d30616099 100644 --- a/services/compute/mgmt/2017-12-01/compute/operations.go +++ b/services/compute/mgmt/2017-12-01/compute/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2017-12-01/compute/resourceskus.go b/services/compute/mgmt/2017-12-01/compute/resourceskus.go index 61027f6ccdea..5194809c5d94 100644 --- a/services/compute/mgmt/2017-12-01/compute/resourceskus.go +++ b/services/compute/mgmt/2017-12-01/compute/resourceskus.go @@ -70,6 +70,7 @@ func (client ResourceSkusClient) List(ctx context.Context) (result ResourceSkusR result.rsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ResourceSkusClient", "List", resp, "Failure responding to request") + return } if result.rsr.hasNextLink() && result.rsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client ResourceSkusClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ResourceSkusClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2017-12-01/compute/snapshots.go b/services/compute/mgmt/2017-12-01/compute/snapshots.go index 9639ffec1a5c..2fcf6dbe0ce2 100644 --- a/services/compute/mgmt/2017-12-01/compute/snapshots.go +++ b/services/compute/mgmt/2017-12-01/compute/snapshots.go @@ -251,6 +251,7 @@ func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "Get", resp, "Failure responding to request") + return } return @@ -409,6 +410,7 @@ func (client SnapshotsClient) List(ctx context.Context) (result SnapshotListPage result.sl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "List", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -471,6 +473,7 @@ func (client SnapshotsClient) listNextResults(ctx context.Context, lastResults S result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -522,6 +525,7 @@ func (client SnapshotsClient) ListByResourceGroup(ctx context.Context, resourceG result.sl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -585,6 +589,7 @@ func (client SnapshotsClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2017-12-01/compute/usage.go b/services/compute/mgmt/2017-12-01/compute/usage.go index f3691bfe2e91..cec97c51694c 100644 --- a/services/compute/mgmt/2017-12-01/compute/usage.go +++ b/services/compute/mgmt/2017-12-01/compute/usage.go @@ -80,6 +80,7 @@ func (client UsageClient) List(ctx context.Context, location string) (result Lis result.lur, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.UsageClient", "List", resp, "Failure responding to request") + return } if result.lur.hasNextLink() && result.lur.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client UsageClient) listNextResults(ctx context.Context, lastResults ListU result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.UsageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2017-12-01/compute/virtualmachineextensionimages.go b/services/compute/mgmt/2017-12-01/compute/virtualmachineextensionimages.go index 232a6bd87a90..1a72cb9e09ec 100644 --- a/services/compute/mgmt/2017-12-01/compute/virtualmachineextensionimages.go +++ b/services/compute/mgmt/2017-12-01/compute/virtualmachineextensionimages.go @@ -72,6 +72,7 @@ func (client VirtualMachineExtensionImagesClient) Get(ctx context.Context, locat result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client VirtualMachineExtensionImagesClient) ListTypes(ctx context.Context, result, err = client.ListTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListTypes", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client VirtualMachineExtensionImagesClient) ListVersions(ctx context.Conte result, err = client.ListVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListVersions", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2017-12-01/compute/virtualmachineextensions.go b/services/compute/mgmt/2017-12-01/compute/virtualmachineextensions.go index 929f47abe07f..802b4c57884e 100644 --- a/services/compute/mgmt/2017-12-01/compute/virtualmachineextensions.go +++ b/services/compute/mgmt/2017-12-01/compute/virtualmachineextensions.go @@ -232,6 +232,7 @@ func (client VirtualMachineExtensionsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2017-12-01/compute/virtualmachineimages.go b/services/compute/mgmt/2017-12-01/compute/virtualmachineimages.go index b62bc1ed09c1..73d3ff6df947 100644 --- a/services/compute/mgmt/2017-12-01/compute/virtualmachineimages.go +++ b/services/compute/mgmt/2017-12-01/compute/virtualmachineimages.go @@ -76,6 +76,7 @@ func (client VirtualMachineImagesClient) Get(ctx context.Context, location strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client VirtualMachineImagesClient) List(ctx context.Context, location stri result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "List", resp, "Failure responding to request") + return } return @@ -243,6 +245,7 @@ func (client VirtualMachineImagesClient) ListOffers(ctx context.Context, locatio result, err = client.ListOffersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListOffers", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client VirtualMachineImagesClient) ListPublishers(ctx context.Context, loc result, err = client.ListPublishersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListPublishers", resp, "Failure responding to request") + return } return @@ -392,6 +396,7 @@ func (client VirtualMachineImagesClient) ListSkus(ctx context.Context, location result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListSkus", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2017-12-01/compute/virtualmachineruncommands.go b/services/compute/mgmt/2017-12-01/compute/virtualmachineruncommands.go index 7c2efb249101..1217565bec6e 100644 --- a/services/compute/mgmt/2017-12-01/compute/virtualmachineruncommands.go +++ b/services/compute/mgmt/2017-12-01/compute/virtualmachineruncommands.go @@ -80,6 +80,7 @@ func (client VirtualMachineRunCommandsClient) Get(ctx context.Context, location result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "Get", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client VirtualMachineRunCommandsClient) List(ctx context.Context, location result.rclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "List", resp, "Failure responding to request") + return } if result.rclr.hasNextLink() && result.rclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -224,6 +226,7 @@ func (client VirtualMachineRunCommandsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2017-12-01/compute/virtualmachines.go b/services/compute/mgmt/2017-12-01/compute/virtualmachines.go index 0bd2dd28901d..35d8d6de893d 100644 --- a/services/compute/mgmt/2017-12-01/compute/virtualmachines.go +++ b/services/compute/mgmt/2017-12-01/compute/virtualmachines.go @@ -487,6 +487,7 @@ func (client VirtualMachinesClient) Generalize(ctx context.Context, resourceGrou result, err = client.GeneralizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Generalize", resp, "Failure responding to request") + return } return @@ -563,6 +564,7 @@ func (client VirtualMachinesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Get", resp, "Failure responding to request") + return } return @@ -642,6 +644,7 @@ func (client VirtualMachinesClient) GetExtensions(ctx context.Context, resourceG result, err = client.GetExtensionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "GetExtensions", resp, "Failure responding to request") + return } return @@ -720,6 +723,7 @@ func (client VirtualMachinesClient) InstanceView(ctx context.Context, resourceGr result, err = client.InstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "InstanceView", resp, "Failure responding to request") + return } return @@ -796,6 +800,7 @@ func (client VirtualMachinesClient) List(ctx context.Context, resourceGroupName result.vmlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "List", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -859,6 +864,7 @@ func (client VirtualMachinesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -909,6 +915,7 @@ func (client VirtualMachinesClient) ListAll(ctx context.Context) (result Virtual result.vmlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAll", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -971,6 +978,7 @@ func (client VirtualMachinesClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -1022,6 +1030,7 @@ func (client VirtualMachinesClient) ListAvailableSizes(ctx context.Context, reso result, err = client.ListAvailableSizesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAvailableSizes", resp, "Failure responding to request") + return } return @@ -1103,6 +1112,7 @@ func (client VirtualMachinesClient) ListByLocation(ctx context.Context, location result.vmlr, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListByLocation", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1166,6 +1176,7 @@ func (client VirtualMachinesClient) listByLocationNextResults(ctx context.Contex result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listByLocationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2017-12-01/compute/virtualmachinescalesetextensions.go b/services/compute/mgmt/2017-12-01/compute/virtualmachinescalesetextensions.go index 01168e2a77ce..f576e36f5ebc 100644 --- a/services/compute/mgmt/2017-12-01/compute/virtualmachinescalesetextensions.go +++ b/services/compute/mgmt/2017-12-01/compute/virtualmachinescalesetextensions.go @@ -232,6 +232,7 @@ func (client VirtualMachineScaleSetExtensionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client VirtualMachineScaleSetExtensionsClient) List(ctx context.Context, r result.vmsselr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "List", resp, "Failure responding to request") + return } if result.vmsselr.hasNextLink() && result.vmsselr.IsEmpty() { err = result.NextWithContext(ctx) @@ -376,6 +378,7 @@ func (client VirtualMachineScaleSetExtensionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2017-12-01/compute/virtualmachinescalesetrollingupgrades.go b/services/compute/mgmt/2017-12-01/compute/virtualmachinescalesetrollingupgrades.go index 7121cb98d9c8..387cb77c946e 100644 --- a/services/compute/mgmt/2017-12-01/compute/virtualmachinescalesetrollingupgrades.go +++ b/services/compute/mgmt/2017-12-01/compute/virtualmachinescalesetrollingupgrades.go @@ -149,6 +149,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) GetLatest(ctx context. result, err = client.GetLatestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetRollingUpgradesClient", "GetLatest", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2017-12-01/compute/virtualmachinescalesets.go b/services/compute/mgmt/2017-12-01/compute/virtualmachinescalesets.go index 0982fa860d1e..f0aa11676f74 100644 --- a/services/compute/mgmt/2017-12-01/compute/virtualmachinescalesets.go +++ b/services/compute/mgmt/2017-12-01/compute/virtualmachinescalesets.go @@ -418,6 +418,7 @@ func (client VirtualMachineScaleSetsClient) ForceRecoveryServiceFabricPlatformUp result, err = client.ForceRecoveryServiceFabricPlatformUpdateDomainWalkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ForceRecoveryServiceFabricPlatformUpdateDomainWalk", resp, "Failure responding to request") + return } return @@ -494,6 +495,7 @@ func (client VirtualMachineScaleSetsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -569,6 +571,7 @@ func (client VirtualMachineScaleSetsClient) GetInstanceView(ctx context.Context, result, err = client.GetInstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "GetInstanceView", resp, "Failure responding to request") + return } return @@ -645,6 +648,7 @@ func (client VirtualMachineScaleSetsClient) GetOSUpgradeHistory(ctx context.Cont result.vmsslouh, err = client.GetOSUpgradeHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "GetOSUpgradeHistory", resp, "Failure responding to request") + return } if result.vmsslouh.hasNextLink() && result.vmsslouh.IsEmpty() { err = result.NextWithContext(ctx) @@ -709,6 +713,7 @@ func (client VirtualMachineScaleSetsClient) getOSUpgradeHistoryNextResults(ctx c result, err = client.GetOSUpgradeHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "getOSUpgradeHistoryNextResults", resp, "Failure responding to next results request") + return } return } @@ -760,6 +765,7 @@ func (client VirtualMachineScaleSetsClient) List(ctx context.Context, resourceGr result.vmsslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "List", resp, "Failure responding to request") + return } if result.vmsslr.hasNextLink() && result.vmsslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -823,6 +829,7 @@ func (client VirtualMachineScaleSetsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -874,6 +881,7 @@ func (client VirtualMachineScaleSetsClient) ListAll(ctx context.Context) (result result.vmsslwlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListAll", resp, "Failure responding to request") + return } if result.vmsslwlr.hasNextLink() && result.vmsslwlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -936,6 +944,7 @@ func (client VirtualMachineScaleSetsClient) listAllNextResults(ctx context.Conte result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -989,6 +998,7 @@ func (client VirtualMachineScaleSetsClient) ListSkus(ctx context.Context, resour result.vmsslsr, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListSkus", resp, "Failure responding to request") + return } if result.vmsslsr.hasNextLink() && result.vmsslsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1053,6 +1063,7 @@ func (client VirtualMachineScaleSetsClient) listSkusNextResults(ctx context.Cont result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2017-12-01/compute/virtualmachinescalesetvms.go b/services/compute/mgmt/2017-12-01/compute/virtualmachinescalesetvms.go index 9a5a66747a8d..0d5509957c96 100644 --- a/services/compute/mgmt/2017-12-01/compute/virtualmachinescalesetvms.go +++ b/services/compute/mgmt/2017-12-01/compute/virtualmachinescalesetvms.go @@ -231,6 +231,7 @@ func (client VirtualMachineScaleSetVMsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VirtualMachineScaleSetVMsClient) GetInstanceView(ctx context.Contex result, err = client.GetInstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "GetInstanceView", resp, "Failure responding to request") + return } return @@ -389,6 +391,7 @@ func (client VirtualMachineScaleSetVMsClient) List(ctx context.Context, resource result.vmssvlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "List", resp, "Failure responding to request") + return } if result.vmssvlr.hasNextLink() && result.vmssvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -462,6 +465,7 @@ func (client VirtualMachineScaleSetVMsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2017-12-01/compute/virtualmachinesizes.go b/services/compute/mgmt/2017-12-01/compute/virtualmachinesizes.go index a7f2f6e7fdab..75d530d3c01f 100644 --- a/services/compute/mgmt/2017-12-01/compute/virtualmachinesizes.go +++ b/services/compute/mgmt/2017-12-01/compute/virtualmachinesizes.go @@ -79,6 +79,7 @@ func (client VirtualMachineSizesClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineSizesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2018-04-01/compute/availabilitysets.go b/services/compute/mgmt/2018-04-01/compute/availabilitysets.go index 648ff5709cbd..3da7fe12996b 100644 --- a/services/compute/mgmt/2018-04-01/compute/availabilitysets.go +++ b/services/compute/mgmt/2018-04-01/compute/availabilitysets.go @@ -74,6 +74,7 @@ func (client AvailabilitySetsClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client AvailabilitySetsClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -225,6 +227,7 @@ func (client AvailabilitySetsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client AvailabilitySetsClient) List(ctx context.Context, resourceGroupName result.aslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "List", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +367,7 @@ func (client AvailabilitySetsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +420,7 @@ func (client AvailabilitySetsClient) ListAvailableSizes(ctx context.Context, res result, err = client.ListAvailableSizesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListAvailableSizes", resp, "Failure responding to request") + return } return @@ -490,6 +496,7 @@ func (client AvailabilitySetsClient) ListBySubscription(ctx context.Context, exp result.aslr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -555,6 +562,7 @@ func (client AvailabilitySetsClient) listBySubscriptionNextResults(ctx context.C result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -607,6 +615,7 @@ func (client AvailabilitySetsClient) Update(ctx context.Context, resourceGroupNa result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2018-04-01/compute/disks.go b/services/compute/mgmt/2018-04-01/compute/disks.go index c882ce2a0156..8fe0404812f2 100644 --- a/services/compute/mgmt/2018-04-01/compute/disks.go +++ b/services/compute/mgmt/2018-04-01/compute/disks.go @@ -253,6 +253,7 @@ func (client DisksClient) Get(ctx context.Context, resourceGroupName string, dis result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "Get", resp, "Failure responding to request") + return } return @@ -412,6 +413,7 @@ func (client DisksClient) List(ctx context.Context) (result DiskListPage, err er result.dl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "List", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +476,7 @@ func (client DisksClient) listNextResults(ctx context.Context, lastResults DiskL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -525,6 +528,7 @@ func (client DisksClient) ListByResourceGroup(ctx context.Context, resourceGroup result.dl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -588,6 +592,7 @@ func (client DisksClient) listByResourceGroupNextResults(ctx context.Context, la result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-04-01/compute/images.go b/services/compute/mgmt/2018-04-01/compute/images.go index f77f2d7eaa44..86c5a805a5e6 100644 --- a/services/compute/mgmt/2018-04-01/compute/images.go +++ b/services/compute/mgmt/2018-04-01/compute/images.go @@ -225,6 +225,7 @@ func (client ImagesClient) Get(ctx context.Context, resourceGroupName string, im result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ImagesClient) List(ctx context.Context) (result ImageListResultPage result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ImagesClient) listNextResults(ctx context.Context, lastResults Imag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client ImagesClient) ListByResourceGroup(ctx context.Context, resourceGrou result.ilr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client ImagesClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-04-01/compute/operations.go b/services/compute/mgmt/2018-04-01/compute/operations.go index be98a4e78307..df0245889c6a 100644 --- a/services/compute/mgmt/2018-04-01/compute/operations.go +++ b/services/compute/mgmt/2018-04-01/compute/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2018-04-01/compute/proximityplacementgroups.go b/services/compute/mgmt/2018-04-01/compute/proximityplacementgroups.go index 5b2c964f1a5d..41ceba518774 100644 --- a/services/compute/mgmt/2018-04-01/compute/proximityplacementgroups.go +++ b/services/compute/mgmt/2018-04-01/compute/proximityplacementgroups.go @@ -74,6 +74,7 @@ func (client ProximityPlacementGroupsClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ProximityPlacementGroupsClient) Delete(ctx context.Context, resourc result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -225,6 +227,7 @@ func (client ProximityPlacementGroupsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client ProximityPlacementGroupsClient) ListByResourceGroup(ctx context.Con result.ppglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ppglr.hasNextLink() && result.ppglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +367,7 @@ func (client ProximityPlacementGroupsClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +417,7 @@ func (client ProximityPlacementGroupsClient) ListBySubscription(ctx context.Cont result.ppglr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ppglr.hasNextLink() && result.ppglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +480,7 @@ func (client ProximityPlacementGroupsClient) listBySubscriptionNextResults(ctx c result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +533,7 @@ func (client ProximityPlacementGroupsClient) Update(ctx context.Context, resourc result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2018-04-01/compute/snapshots.go b/services/compute/mgmt/2018-04-01/compute/snapshots.go index 63ea351523c2..91a8da604512 100644 --- a/services/compute/mgmt/2018-04-01/compute/snapshots.go +++ b/services/compute/mgmt/2018-04-01/compute/snapshots.go @@ -250,6 +250,7 @@ func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "Get", resp, "Failure responding to request") + return } return @@ -408,6 +409,7 @@ func (client SnapshotsClient) List(ctx context.Context) (result SnapshotListPage result.sl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "List", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -470,6 +472,7 @@ func (client SnapshotsClient) listNextResults(ctx context.Context, lastResults S result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -521,6 +524,7 @@ func (client SnapshotsClient) ListByResourceGroup(ctx context.Context, resourceG result.sl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -584,6 +588,7 @@ func (client SnapshotsClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-04-01/compute/usage.go b/services/compute/mgmt/2018-04-01/compute/usage.go index eac97215a749..0b6329a0a510 100644 --- a/services/compute/mgmt/2018-04-01/compute/usage.go +++ b/services/compute/mgmt/2018-04-01/compute/usage.go @@ -80,6 +80,7 @@ func (client UsageClient) List(ctx context.Context, location string) (result Lis result.lur, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.UsageClient", "List", resp, "Failure responding to request") + return } if result.lur.hasNextLink() && result.lur.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client UsageClient) listNextResults(ctx context.Context, lastResults ListU result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.UsageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-04-01/compute/virtualmachineextensionimages.go b/services/compute/mgmt/2018-04-01/compute/virtualmachineextensionimages.go index 69eff660dd9f..108994384fa4 100644 --- a/services/compute/mgmt/2018-04-01/compute/virtualmachineextensionimages.go +++ b/services/compute/mgmt/2018-04-01/compute/virtualmachineextensionimages.go @@ -72,6 +72,7 @@ func (client VirtualMachineExtensionImagesClient) Get(ctx context.Context, locat result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client VirtualMachineExtensionImagesClient) ListTypes(ctx context.Context, result, err = client.ListTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListTypes", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client VirtualMachineExtensionImagesClient) ListVersions(ctx context.Conte result, err = client.ListVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListVersions", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2018-04-01/compute/virtualmachineextensions.go b/services/compute/mgmt/2018-04-01/compute/virtualmachineextensions.go index 7f508cd5d5df..72c2adfbd515 100644 --- a/services/compute/mgmt/2018-04-01/compute/virtualmachineextensions.go +++ b/services/compute/mgmt/2018-04-01/compute/virtualmachineextensions.go @@ -231,6 +231,7 @@ func (client VirtualMachineExtensionsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client VirtualMachineExtensionsClient) List(ctx context.Context, resourceG result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2018-04-01/compute/virtualmachineimages.go b/services/compute/mgmt/2018-04-01/compute/virtualmachineimages.go index 9bb2ac202ac7..f9710732690c 100644 --- a/services/compute/mgmt/2018-04-01/compute/virtualmachineimages.go +++ b/services/compute/mgmt/2018-04-01/compute/virtualmachineimages.go @@ -76,6 +76,7 @@ func (client VirtualMachineImagesClient) Get(ctx context.Context, location strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client VirtualMachineImagesClient) List(ctx context.Context, location stri result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "List", resp, "Failure responding to request") + return } return @@ -243,6 +245,7 @@ func (client VirtualMachineImagesClient) ListOffers(ctx context.Context, locatio result, err = client.ListOffersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListOffers", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client VirtualMachineImagesClient) ListPublishers(ctx context.Context, loc result, err = client.ListPublishersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListPublishers", resp, "Failure responding to request") + return } return @@ -392,6 +396,7 @@ func (client VirtualMachineImagesClient) ListSkus(ctx context.Context, location result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListSkus", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2018-04-01/compute/virtualmachineruncommands.go b/services/compute/mgmt/2018-04-01/compute/virtualmachineruncommands.go index 18a7e212fe7f..9550a0c730d4 100644 --- a/services/compute/mgmt/2018-04-01/compute/virtualmachineruncommands.go +++ b/services/compute/mgmt/2018-04-01/compute/virtualmachineruncommands.go @@ -80,6 +80,7 @@ func (client VirtualMachineRunCommandsClient) Get(ctx context.Context, location result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "Get", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client VirtualMachineRunCommandsClient) List(ctx context.Context, location result.rclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "List", resp, "Failure responding to request") + return } if result.rclr.hasNextLink() && result.rclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -224,6 +226,7 @@ func (client VirtualMachineRunCommandsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-04-01/compute/virtualmachines.go b/services/compute/mgmt/2018-04-01/compute/virtualmachines.go index 290ddfaabebf..6f328a9bafe5 100644 --- a/services/compute/mgmt/2018-04-01/compute/virtualmachines.go +++ b/services/compute/mgmt/2018-04-01/compute/virtualmachines.go @@ -484,6 +484,7 @@ func (client VirtualMachinesClient) Generalize(ctx context.Context, resourceGrou result, err = client.GeneralizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Generalize", resp, "Failure responding to request") + return } return @@ -559,6 +560,7 @@ func (client VirtualMachinesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Get", resp, "Failure responding to request") + return } return @@ -637,6 +639,7 @@ func (client VirtualMachinesClient) InstanceView(ctx context.Context, resourceGr result, err = client.InstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "InstanceView", resp, "Failure responding to request") + return } return @@ -713,6 +716,7 @@ func (client VirtualMachinesClient) List(ctx context.Context, resourceGroupName result.vmlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "List", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -776,6 +780,7 @@ func (client VirtualMachinesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -826,6 +831,7 @@ func (client VirtualMachinesClient) ListAll(ctx context.Context) (result Virtual result.vmlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAll", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -888,6 +894,7 @@ func (client VirtualMachinesClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -939,6 +946,7 @@ func (client VirtualMachinesClient) ListAvailableSizes(ctx context.Context, reso result, err = client.ListAvailableSizesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAvailableSizes", resp, "Failure responding to request") + return } return @@ -1020,6 +1028,7 @@ func (client VirtualMachinesClient) ListByLocation(ctx context.Context, location result.vmlr, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListByLocation", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1083,6 +1092,7 @@ func (client VirtualMachinesClient) listByLocationNextResults(ctx context.Contex result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listByLocationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-04-01/compute/virtualmachinescalesetextensions.go b/services/compute/mgmt/2018-04-01/compute/virtualmachinescalesetextensions.go index e40919421e00..3330f0f917fb 100644 --- a/services/compute/mgmt/2018-04-01/compute/virtualmachinescalesetextensions.go +++ b/services/compute/mgmt/2018-04-01/compute/virtualmachinescalesetextensions.go @@ -231,6 +231,7 @@ func (client VirtualMachineScaleSetExtensionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client VirtualMachineScaleSetExtensionsClient) List(ctx context.Context, r result.vmsselr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "List", resp, "Failure responding to request") + return } if result.vmsselr.hasNextLink() && result.vmsselr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client VirtualMachineScaleSetExtensionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-04-01/compute/virtualmachinescalesetrollingupgrades.go b/services/compute/mgmt/2018-04-01/compute/virtualmachinescalesetrollingupgrades.go index eb3910216f1e..2e40c300f5f5 100644 --- a/services/compute/mgmt/2018-04-01/compute/virtualmachinescalesetrollingupgrades.go +++ b/services/compute/mgmt/2018-04-01/compute/virtualmachinescalesetrollingupgrades.go @@ -148,6 +148,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) GetLatest(ctx context. result, err = client.GetLatestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetRollingUpgradesClient", "GetLatest", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2018-04-01/compute/virtualmachinescalesets.go b/services/compute/mgmt/2018-04-01/compute/virtualmachinescalesets.go index 28615f5dfd88..f7962295ee48 100644 --- a/services/compute/mgmt/2018-04-01/compute/virtualmachinescalesets.go +++ b/services/compute/mgmt/2018-04-01/compute/virtualmachinescalesets.go @@ -415,6 +415,7 @@ func (client VirtualMachineScaleSetsClient) ForceRecoveryServiceFabricPlatformUp result, err = client.ForceRecoveryServiceFabricPlatformUpdateDomainWalkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ForceRecoveryServiceFabricPlatformUpdateDomainWalk", resp, "Failure responding to request") + return } return @@ -491,6 +492,7 @@ func (client VirtualMachineScaleSetsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -566,6 +568,7 @@ func (client VirtualMachineScaleSetsClient) GetInstanceView(ctx context.Context, result, err = client.GetInstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "GetInstanceView", resp, "Failure responding to request") + return } return @@ -642,6 +645,7 @@ func (client VirtualMachineScaleSetsClient) GetOSUpgradeHistory(ctx context.Cont result.vmsslouh, err = client.GetOSUpgradeHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "GetOSUpgradeHistory", resp, "Failure responding to request") + return } if result.vmsslouh.hasNextLink() && result.vmsslouh.IsEmpty() { err = result.NextWithContext(ctx) @@ -706,6 +710,7 @@ func (client VirtualMachineScaleSetsClient) getOSUpgradeHistoryNextResults(ctx c result, err = client.GetOSUpgradeHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "getOSUpgradeHistoryNextResults", resp, "Failure responding to next results request") + return } return } @@ -757,6 +762,7 @@ func (client VirtualMachineScaleSetsClient) List(ctx context.Context, resourceGr result.vmsslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "List", resp, "Failure responding to request") + return } if result.vmsslr.hasNextLink() && result.vmsslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -820,6 +826,7 @@ func (client VirtualMachineScaleSetsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -871,6 +878,7 @@ func (client VirtualMachineScaleSetsClient) ListAll(ctx context.Context) (result result.vmsslwlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListAll", resp, "Failure responding to request") + return } if result.vmsslwlr.hasNextLink() && result.vmsslwlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -933,6 +941,7 @@ func (client VirtualMachineScaleSetsClient) listAllNextResults(ctx context.Conte result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -986,6 +995,7 @@ func (client VirtualMachineScaleSetsClient) ListSkus(ctx context.Context, resour result.vmsslsr, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListSkus", resp, "Failure responding to request") + return } if result.vmsslsr.hasNextLink() && result.vmsslsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1050,6 +1060,7 @@ func (client VirtualMachineScaleSetsClient) listSkusNextResults(ctx context.Cont result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-04-01/compute/virtualmachinescalesetvms.go b/services/compute/mgmt/2018-04-01/compute/virtualmachinescalesetvms.go index 1441fc73ce21..1d72bcf46c65 100644 --- a/services/compute/mgmt/2018-04-01/compute/virtualmachinescalesetvms.go +++ b/services/compute/mgmt/2018-04-01/compute/virtualmachinescalesetvms.go @@ -229,6 +229,7 @@ func (client VirtualMachineScaleSetVMsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client VirtualMachineScaleSetVMsClient) GetInstanceView(ctx context.Contex result, err = client.GetInstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "GetInstanceView", resp, "Failure responding to request") + return } return @@ -387,6 +389,7 @@ func (client VirtualMachineScaleSetVMsClient) List(ctx context.Context, resource result.vmssvlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "List", resp, "Failure responding to request") + return } if result.vmssvlr.hasNextLink() && result.vmssvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -460,6 +463,7 @@ func (client VirtualMachineScaleSetVMsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-04-01/compute/virtualmachinesizes.go b/services/compute/mgmt/2018-04-01/compute/virtualmachinesizes.go index 339d356f8ea6..7bbfaebc0d0f 100644 --- a/services/compute/mgmt/2018-04-01/compute/virtualmachinesizes.go +++ b/services/compute/mgmt/2018-04-01/compute/virtualmachinesizes.go @@ -79,6 +79,7 @@ func (client VirtualMachineSizesClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineSizesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2018-06-01/compute/availabilitysets.go b/services/compute/mgmt/2018-06-01/compute/availabilitysets.go index d9c58993bda2..f38cb42184f4 100644 --- a/services/compute/mgmt/2018-06-01/compute/availabilitysets.go +++ b/services/compute/mgmt/2018-06-01/compute/availabilitysets.go @@ -74,6 +74,7 @@ func (client AvailabilitySetsClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client AvailabilitySetsClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -225,6 +227,7 @@ func (client AvailabilitySetsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client AvailabilitySetsClient) List(ctx context.Context, resourceGroupName result.aslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "List", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +367,7 @@ func (client AvailabilitySetsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +420,7 @@ func (client AvailabilitySetsClient) ListAvailableSizes(ctx context.Context, res result, err = client.ListAvailableSizesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListAvailableSizes", resp, "Failure responding to request") + return } return @@ -490,6 +496,7 @@ func (client AvailabilitySetsClient) ListBySubscription(ctx context.Context, exp result.aslr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -555,6 +562,7 @@ func (client AvailabilitySetsClient) listBySubscriptionNextResults(ctx context.C result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -607,6 +615,7 @@ func (client AvailabilitySetsClient) Update(ctx context.Context, resourceGroupNa result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2018-06-01/compute/containerservices.go b/services/compute/mgmt/2018-06-01/compute/containerservices.go index 92208281f44e..f369af4938df 100644 --- a/services/compute/mgmt/2018-06-01/compute/containerservices.go +++ b/services/compute/mgmt/2018-06-01/compute/containerservices.go @@ -263,6 +263,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -337,6 +338,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result Containe result.cslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.cslr.hasNextLink() && result.cslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -399,6 +401,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -452,6 +455,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.cslr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cslr.hasNextLink() && result.cslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -515,6 +519,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-06-01/compute/disks.go b/services/compute/mgmt/2018-06-01/compute/disks.go index 9a38365c577b..d8bbe279b313 100644 --- a/services/compute/mgmt/2018-06-01/compute/disks.go +++ b/services/compute/mgmt/2018-06-01/compute/disks.go @@ -253,6 +253,7 @@ func (client DisksClient) Get(ctx context.Context, resourceGroupName string, dis result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "Get", resp, "Failure responding to request") + return } return @@ -412,6 +413,7 @@ func (client DisksClient) List(ctx context.Context) (result DiskListPage, err er result.dl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "List", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +476,7 @@ func (client DisksClient) listNextResults(ctx context.Context, lastResults DiskL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -525,6 +528,7 @@ func (client DisksClient) ListByResourceGroup(ctx context.Context, resourceGroup result.dl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -588,6 +592,7 @@ func (client DisksClient) listByResourceGroupNextResults(ctx context.Context, la result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-06-01/compute/galleries.go b/services/compute/mgmt/2018-06-01/compute/galleries.go index 52fb83882cba..5e505fe671c2 100644 --- a/services/compute/mgmt/2018-06-01/compute/galleries.go +++ b/services/compute/mgmt/2018-06-01/compute/galleries.go @@ -225,6 +225,7 @@ func (client GalleriesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client GalleriesClient) List(ctx context.Context) (result GalleryListPage, result.gl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "List", resp, "Failure responding to request") + return } if result.gl.hasNextLink() && result.gl.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client GalleriesClient) listNextResults(ctx context.Context, lastResults G result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client GalleriesClient) ListByResourceGroup(ctx context.Context, resourceG result.gl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.gl.hasNextLink() && result.gl.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client GalleriesClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-06-01/compute/galleryimages.go b/services/compute/mgmt/2018-06-01/compute/galleryimages.go index f3b5c266048a..86f92a8c9017 100644 --- a/services/compute/mgmt/2018-06-01/compute/galleryimages.go +++ b/services/compute/mgmt/2018-06-01/compute/galleryimages.go @@ -244,6 +244,7 @@ func (client GalleryImagesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client GalleryImagesClient) ListByGallery(ctx context.Context, resourceGro result.gil, err = client.ListByGalleryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "ListByGallery", resp, "Failure responding to request") + return } if result.gil.hasNextLink() && result.gil.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client GalleryImagesClient) listByGalleryNextResults(ctx context.Context, result, err = client.ListByGalleryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "listByGalleryNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-06-01/compute/galleryimageversions.go b/services/compute/mgmt/2018-06-01/compute/galleryimageversions.go index c9179e2ad0a4..716896ac2c5c 100644 --- a/services/compute/mgmt/2018-06-01/compute/galleryimageversions.go +++ b/services/compute/mgmt/2018-06-01/compute/galleryimageversions.go @@ -246,6 +246,7 @@ func (client GalleryImageVersionsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -329,6 +330,7 @@ func (client GalleryImageVersionsClient) ListByGalleryImage(ctx context.Context, result.givl, err = client.ListByGalleryImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "ListByGalleryImage", resp, "Failure responding to request") + return } if result.givl.hasNextLink() && result.givl.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +396,7 @@ func (client GalleryImageVersionsClient) listByGalleryImageNextResults(ctx conte result, err = client.ListByGalleryImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "listByGalleryImageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-06-01/compute/images.go b/services/compute/mgmt/2018-06-01/compute/images.go index d8dc8018e4dc..58f9730a415d 100644 --- a/services/compute/mgmt/2018-06-01/compute/images.go +++ b/services/compute/mgmt/2018-06-01/compute/images.go @@ -225,6 +225,7 @@ func (client ImagesClient) Get(ctx context.Context, resourceGroupName string, im result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ImagesClient) List(ctx context.Context) (result ImageListResultPage result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ImagesClient) listNextResults(ctx context.Context, lastResults Imag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client ImagesClient) ListByResourceGroup(ctx context.Context, resourceGrou result.ilr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client ImagesClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-06-01/compute/operations.go b/services/compute/mgmt/2018-06-01/compute/operations.go index 9358b77ee209..4a37d1ee01bf 100644 --- a/services/compute/mgmt/2018-06-01/compute/operations.go +++ b/services/compute/mgmt/2018-06-01/compute/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2018-06-01/compute/proximityplacementgroups.go b/services/compute/mgmt/2018-06-01/compute/proximityplacementgroups.go index 320f07b8bd51..1e99c10be10c 100644 --- a/services/compute/mgmt/2018-06-01/compute/proximityplacementgroups.go +++ b/services/compute/mgmt/2018-06-01/compute/proximityplacementgroups.go @@ -74,6 +74,7 @@ func (client ProximityPlacementGroupsClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ProximityPlacementGroupsClient) Delete(ctx context.Context, resourc result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -225,6 +227,7 @@ func (client ProximityPlacementGroupsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client ProximityPlacementGroupsClient) ListByResourceGroup(ctx context.Con result.ppglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ppglr.hasNextLink() && result.ppglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +367,7 @@ func (client ProximityPlacementGroupsClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +417,7 @@ func (client ProximityPlacementGroupsClient) ListBySubscription(ctx context.Cont result.ppglr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ppglr.hasNextLink() && result.ppglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +480,7 @@ func (client ProximityPlacementGroupsClient) listBySubscriptionNextResults(ctx c result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +533,7 @@ func (client ProximityPlacementGroupsClient) Update(ctx context.Context, resourc result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2018-06-01/compute/resourceskus.go b/services/compute/mgmt/2018-06-01/compute/resourceskus.go index 61027f6ccdea..5194809c5d94 100644 --- a/services/compute/mgmt/2018-06-01/compute/resourceskus.go +++ b/services/compute/mgmt/2018-06-01/compute/resourceskus.go @@ -70,6 +70,7 @@ func (client ResourceSkusClient) List(ctx context.Context) (result ResourceSkusR result.rsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ResourceSkusClient", "List", resp, "Failure responding to request") + return } if result.rsr.hasNextLink() && result.rsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client ResourceSkusClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ResourceSkusClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-06-01/compute/snapshots.go b/services/compute/mgmt/2018-06-01/compute/snapshots.go index c11e93745bd7..5a71addb77ce 100644 --- a/services/compute/mgmt/2018-06-01/compute/snapshots.go +++ b/services/compute/mgmt/2018-06-01/compute/snapshots.go @@ -250,6 +250,7 @@ func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "Get", resp, "Failure responding to request") + return } return @@ -408,6 +409,7 @@ func (client SnapshotsClient) List(ctx context.Context) (result SnapshotListPage result.sl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "List", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -470,6 +472,7 @@ func (client SnapshotsClient) listNextResults(ctx context.Context, lastResults S result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -521,6 +524,7 @@ func (client SnapshotsClient) ListByResourceGroup(ctx context.Context, resourceG result.sl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -584,6 +588,7 @@ func (client SnapshotsClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-06-01/compute/usage.go b/services/compute/mgmt/2018-06-01/compute/usage.go index 6334a2e04188..51fe5e6ba48a 100644 --- a/services/compute/mgmt/2018-06-01/compute/usage.go +++ b/services/compute/mgmt/2018-06-01/compute/usage.go @@ -80,6 +80,7 @@ func (client UsageClient) List(ctx context.Context, location string) (result Lis result.lur, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.UsageClient", "List", resp, "Failure responding to request") + return } if result.lur.hasNextLink() && result.lur.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client UsageClient) listNextResults(ctx context.Context, lastResults ListU result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.UsageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-06-01/compute/virtualmachineextensionimages.go b/services/compute/mgmt/2018-06-01/compute/virtualmachineextensionimages.go index 561d08664762..28614b3d42e7 100644 --- a/services/compute/mgmt/2018-06-01/compute/virtualmachineextensionimages.go +++ b/services/compute/mgmt/2018-06-01/compute/virtualmachineextensionimages.go @@ -72,6 +72,7 @@ func (client VirtualMachineExtensionImagesClient) Get(ctx context.Context, locat result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client VirtualMachineExtensionImagesClient) ListTypes(ctx context.Context, result, err = client.ListTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListTypes", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client VirtualMachineExtensionImagesClient) ListVersions(ctx context.Conte result, err = client.ListVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListVersions", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2018-06-01/compute/virtualmachineextensions.go b/services/compute/mgmt/2018-06-01/compute/virtualmachineextensions.go index 069fc23100e8..00a04922bba2 100644 --- a/services/compute/mgmt/2018-06-01/compute/virtualmachineextensions.go +++ b/services/compute/mgmt/2018-06-01/compute/virtualmachineextensions.go @@ -231,6 +231,7 @@ func (client VirtualMachineExtensionsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client VirtualMachineExtensionsClient) List(ctx context.Context, resourceG result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2018-06-01/compute/virtualmachineimages.go b/services/compute/mgmt/2018-06-01/compute/virtualmachineimages.go index c1671514dadd..5a6a22f70ffd 100644 --- a/services/compute/mgmt/2018-06-01/compute/virtualmachineimages.go +++ b/services/compute/mgmt/2018-06-01/compute/virtualmachineimages.go @@ -76,6 +76,7 @@ func (client VirtualMachineImagesClient) Get(ctx context.Context, location strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client VirtualMachineImagesClient) List(ctx context.Context, location stri result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "List", resp, "Failure responding to request") + return } return @@ -243,6 +245,7 @@ func (client VirtualMachineImagesClient) ListOffers(ctx context.Context, locatio result, err = client.ListOffersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListOffers", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client VirtualMachineImagesClient) ListPublishers(ctx context.Context, loc result, err = client.ListPublishersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListPublishers", resp, "Failure responding to request") + return } return @@ -392,6 +396,7 @@ func (client VirtualMachineImagesClient) ListSkus(ctx context.Context, location result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListSkus", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2018-06-01/compute/virtualmachineruncommands.go b/services/compute/mgmt/2018-06-01/compute/virtualmachineruncommands.go index bb3090ee2ae8..4f5f7fee2fae 100644 --- a/services/compute/mgmt/2018-06-01/compute/virtualmachineruncommands.go +++ b/services/compute/mgmt/2018-06-01/compute/virtualmachineruncommands.go @@ -80,6 +80,7 @@ func (client VirtualMachineRunCommandsClient) Get(ctx context.Context, location result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "Get", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client VirtualMachineRunCommandsClient) List(ctx context.Context, location result.rclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "List", resp, "Failure responding to request") + return } if result.rclr.hasNextLink() && result.rclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -224,6 +226,7 @@ func (client VirtualMachineRunCommandsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-06-01/compute/virtualmachines.go b/services/compute/mgmt/2018-06-01/compute/virtualmachines.go index 4e1d34fcdc15..14274df21752 100644 --- a/services/compute/mgmt/2018-06-01/compute/virtualmachines.go +++ b/services/compute/mgmt/2018-06-01/compute/virtualmachines.go @@ -484,6 +484,7 @@ func (client VirtualMachinesClient) Generalize(ctx context.Context, resourceGrou result, err = client.GeneralizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Generalize", resp, "Failure responding to request") + return } return @@ -559,6 +560,7 @@ func (client VirtualMachinesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Get", resp, "Failure responding to request") + return } return @@ -637,6 +639,7 @@ func (client VirtualMachinesClient) InstanceView(ctx context.Context, resourceGr result, err = client.InstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "InstanceView", resp, "Failure responding to request") + return } return @@ -713,6 +716,7 @@ func (client VirtualMachinesClient) List(ctx context.Context, resourceGroupName result.vmlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "List", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -776,6 +780,7 @@ func (client VirtualMachinesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -826,6 +831,7 @@ func (client VirtualMachinesClient) ListAll(ctx context.Context) (result Virtual result.vmlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAll", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -888,6 +894,7 @@ func (client VirtualMachinesClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -939,6 +946,7 @@ func (client VirtualMachinesClient) ListAvailableSizes(ctx context.Context, reso result, err = client.ListAvailableSizesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAvailableSizes", resp, "Failure responding to request") + return } return @@ -1020,6 +1028,7 @@ func (client VirtualMachinesClient) ListByLocation(ctx context.Context, location result.vmlr, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListByLocation", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1083,6 +1092,7 @@ func (client VirtualMachinesClient) listByLocationNextResults(ctx context.Contex result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listByLocationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-06-01/compute/virtualmachinescalesetextensions.go b/services/compute/mgmt/2018-06-01/compute/virtualmachinescalesetextensions.go index 774bd5270b63..018ffbec08fc 100644 --- a/services/compute/mgmt/2018-06-01/compute/virtualmachinescalesetextensions.go +++ b/services/compute/mgmt/2018-06-01/compute/virtualmachinescalesetextensions.go @@ -231,6 +231,7 @@ func (client VirtualMachineScaleSetExtensionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client VirtualMachineScaleSetExtensionsClient) List(ctx context.Context, r result.vmsselr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "List", resp, "Failure responding to request") + return } if result.vmsselr.hasNextLink() && result.vmsselr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client VirtualMachineScaleSetExtensionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-06-01/compute/virtualmachinescalesetrollingupgrades.go b/services/compute/mgmt/2018-06-01/compute/virtualmachinescalesetrollingupgrades.go index cfa93a955039..7609902f1f76 100644 --- a/services/compute/mgmt/2018-06-01/compute/virtualmachinescalesetrollingupgrades.go +++ b/services/compute/mgmt/2018-06-01/compute/virtualmachinescalesetrollingupgrades.go @@ -148,6 +148,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) GetLatest(ctx context. result, err = client.GetLatestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetRollingUpgradesClient", "GetLatest", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2018-06-01/compute/virtualmachinescalesets.go b/services/compute/mgmt/2018-06-01/compute/virtualmachinescalesets.go index f3fccdd3836e..619c4327d4d6 100644 --- a/services/compute/mgmt/2018-06-01/compute/virtualmachinescalesets.go +++ b/services/compute/mgmt/2018-06-01/compute/virtualmachinescalesets.go @@ -415,6 +415,7 @@ func (client VirtualMachineScaleSetsClient) ForceRecoveryServiceFabricPlatformUp result, err = client.ForceRecoveryServiceFabricPlatformUpdateDomainWalkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ForceRecoveryServiceFabricPlatformUpdateDomainWalk", resp, "Failure responding to request") + return } return @@ -491,6 +492,7 @@ func (client VirtualMachineScaleSetsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -566,6 +568,7 @@ func (client VirtualMachineScaleSetsClient) GetInstanceView(ctx context.Context, result, err = client.GetInstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "GetInstanceView", resp, "Failure responding to request") + return } return @@ -642,6 +645,7 @@ func (client VirtualMachineScaleSetsClient) GetOSUpgradeHistory(ctx context.Cont result.vmsslouh, err = client.GetOSUpgradeHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "GetOSUpgradeHistory", resp, "Failure responding to request") + return } if result.vmsslouh.hasNextLink() && result.vmsslouh.IsEmpty() { err = result.NextWithContext(ctx) @@ -706,6 +710,7 @@ func (client VirtualMachineScaleSetsClient) getOSUpgradeHistoryNextResults(ctx c result, err = client.GetOSUpgradeHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "getOSUpgradeHistoryNextResults", resp, "Failure responding to next results request") + return } return } @@ -757,6 +762,7 @@ func (client VirtualMachineScaleSetsClient) List(ctx context.Context, resourceGr result.vmsslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "List", resp, "Failure responding to request") + return } if result.vmsslr.hasNextLink() && result.vmsslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -820,6 +826,7 @@ func (client VirtualMachineScaleSetsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -871,6 +878,7 @@ func (client VirtualMachineScaleSetsClient) ListAll(ctx context.Context) (result result.vmsslwlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListAll", resp, "Failure responding to request") + return } if result.vmsslwlr.hasNextLink() && result.vmsslwlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -933,6 +941,7 @@ func (client VirtualMachineScaleSetsClient) listAllNextResults(ctx context.Conte result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -986,6 +995,7 @@ func (client VirtualMachineScaleSetsClient) ListSkus(ctx context.Context, resour result.vmsslsr, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListSkus", resp, "Failure responding to request") + return } if result.vmsslsr.hasNextLink() && result.vmsslsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1050,6 +1060,7 @@ func (client VirtualMachineScaleSetsClient) listSkusNextResults(ctx context.Cont result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-06-01/compute/virtualmachinescalesetvms.go b/services/compute/mgmt/2018-06-01/compute/virtualmachinescalesetvms.go index 3a506b1c3554..4a2f524fbc02 100644 --- a/services/compute/mgmt/2018-06-01/compute/virtualmachinescalesetvms.go +++ b/services/compute/mgmt/2018-06-01/compute/virtualmachinescalesetvms.go @@ -229,6 +229,7 @@ func (client VirtualMachineScaleSetVMsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client VirtualMachineScaleSetVMsClient) GetInstanceView(ctx context.Contex result, err = client.GetInstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "GetInstanceView", resp, "Failure responding to request") + return } return @@ -387,6 +389,7 @@ func (client VirtualMachineScaleSetVMsClient) List(ctx context.Context, resource result.vmssvlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "List", resp, "Failure responding to request") + return } if result.vmssvlr.hasNextLink() && result.vmssvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -460,6 +463,7 @@ func (client VirtualMachineScaleSetVMsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-06-01/compute/virtualmachinesizes.go b/services/compute/mgmt/2018-06-01/compute/virtualmachinesizes.go index 78451f6735b0..bd29a6fe7fd4 100644 --- a/services/compute/mgmt/2018-06-01/compute/virtualmachinesizes.go +++ b/services/compute/mgmt/2018-06-01/compute/virtualmachinesizes.go @@ -80,6 +80,7 @@ func (client VirtualMachineSizesClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineSizesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2018-10-01/compute/availabilitysets.go b/services/compute/mgmt/2018-10-01/compute/availabilitysets.go index 196610acdd93..49bbbf4fe65d 100644 --- a/services/compute/mgmt/2018-10-01/compute/availabilitysets.go +++ b/services/compute/mgmt/2018-10-01/compute/availabilitysets.go @@ -74,6 +74,7 @@ func (client AvailabilitySetsClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client AvailabilitySetsClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -225,6 +227,7 @@ func (client AvailabilitySetsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client AvailabilitySetsClient) List(ctx context.Context, resourceGroupName result.aslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "List", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +367,7 @@ func (client AvailabilitySetsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +420,7 @@ func (client AvailabilitySetsClient) ListAvailableSizes(ctx context.Context, res result, err = client.ListAvailableSizesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListAvailableSizes", resp, "Failure responding to request") + return } return @@ -490,6 +496,7 @@ func (client AvailabilitySetsClient) ListBySubscription(ctx context.Context, exp result.aslr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -555,6 +562,7 @@ func (client AvailabilitySetsClient) listBySubscriptionNextResults(ctx context.C result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -607,6 +615,7 @@ func (client AvailabilitySetsClient) Update(ctx context.Context, resourceGroupNa result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2018-10-01/compute/containerservices.go b/services/compute/mgmt/2018-10-01/compute/containerservices.go index 92208281f44e..f369af4938df 100644 --- a/services/compute/mgmt/2018-10-01/compute/containerservices.go +++ b/services/compute/mgmt/2018-10-01/compute/containerservices.go @@ -263,6 +263,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -337,6 +338,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result Containe result.cslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.cslr.hasNextLink() && result.cslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -399,6 +401,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -452,6 +455,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.cslr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cslr.hasNextLink() && result.cslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -515,6 +519,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-10-01/compute/disks.go b/services/compute/mgmt/2018-10-01/compute/disks.go index 9a38365c577b..d8bbe279b313 100644 --- a/services/compute/mgmt/2018-10-01/compute/disks.go +++ b/services/compute/mgmt/2018-10-01/compute/disks.go @@ -253,6 +253,7 @@ func (client DisksClient) Get(ctx context.Context, resourceGroupName string, dis result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "Get", resp, "Failure responding to request") + return } return @@ -412,6 +413,7 @@ func (client DisksClient) List(ctx context.Context) (result DiskListPage, err er result.dl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "List", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +476,7 @@ func (client DisksClient) listNextResults(ctx context.Context, lastResults DiskL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -525,6 +528,7 @@ func (client DisksClient) ListByResourceGroup(ctx context.Context, resourceGroup result.dl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -588,6 +592,7 @@ func (client DisksClient) listByResourceGroupNextResults(ctx context.Context, la result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-10-01/compute/galleries.go b/services/compute/mgmt/2018-10-01/compute/galleries.go index 52fb83882cba..5e505fe671c2 100644 --- a/services/compute/mgmt/2018-10-01/compute/galleries.go +++ b/services/compute/mgmt/2018-10-01/compute/galleries.go @@ -225,6 +225,7 @@ func (client GalleriesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client GalleriesClient) List(ctx context.Context) (result GalleryListPage, result.gl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "List", resp, "Failure responding to request") + return } if result.gl.hasNextLink() && result.gl.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client GalleriesClient) listNextResults(ctx context.Context, lastResults G result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client GalleriesClient) ListByResourceGroup(ctx context.Context, resourceG result.gl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.gl.hasNextLink() && result.gl.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client GalleriesClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-10-01/compute/galleryimages.go b/services/compute/mgmt/2018-10-01/compute/galleryimages.go index f3b5c266048a..86f92a8c9017 100644 --- a/services/compute/mgmt/2018-10-01/compute/galleryimages.go +++ b/services/compute/mgmt/2018-10-01/compute/galleryimages.go @@ -244,6 +244,7 @@ func (client GalleryImagesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client GalleryImagesClient) ListByGallery(ctx context.Context, resourceGro result.gil, err = client.ListByGalleryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "ListByGallery", resp, "Failure responding to request") + return } if result.gil.hasNextLink() && result.gil.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client GalleryImagesClient) listByGalleryNextResults(ctx context.Context, result, err = client.ListByGalleryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "listByGalleryNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-10-01/compute/galleryimageversions.go b/services/compute/mgmt/2018-10-01/compute/galleryimageversions.go index c9179e2ad0a4..716896ac2c5c 100644 --- a/services/compute/mgmt/2018-10-01/compute/galleryimageversions.go +++ b/services/compute/mgmt/2018-10-01/compute/galleryimageversions.go @@ -246,6 +246,7 @@ func (client GalleryImageVersionsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -329,6 +330,7 @@ func (client GalleryImageVersionsClient) ListByGalleryImage(ctx context.Context, result.givl, err = client.ListByGalleryImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "ListByGalleryImage", resp, "Failure responding to request") + return } if result.givl.hasNextLink() && result.givl.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +396,7 @@ func (client GalleryImageVersionsClient) listByGalleryImageNextResults(ctx conte result, err = client.ListByGalleryImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "listByGalleryImageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-10-01/compute/images.go b/services/compute/mgmt/2018-10-01/compute/images.go index 6262e21c10ed..d6161d84ed46 100644 --- a/services/compute/mgmt/2018-10-01/compute/images.go +++ b/services/compute/mgmt/2018-10-01/compute/images.go @@ -225,6 +225,7 @@ func (client ImagesClient) Get(ctx context.Context, resourceGroupName string, im result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ImagesClient) List(ctx context.Context) (result ImageListResultPage result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ImagesClient) listNextResults(ctx context.Context, lastResults Imag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client ImagesClient) ListByResourceGroup(ctx context.Context, resourceGrou result.ilr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client ImagesClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-10-01/compute/operations.go b/services/compute/mgmt/2018-10-01/compute/operations.go index 12d1ed0b165f..ecd3c13f4f80 100644 --- a/services/compute/mgmt/2018-10-01/compute/operations.go +++ b/services/compute/mgmt/2018-10-01/compute/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2018-10-01/compute/proximityplacementgroups.go b/services/compute/mgmt/2018-10-01/compute/proximityplacementgroups.go index 2396bda59b6b..8cf0a675e9c6 100644 --- a/services/compute/mgmt/2018-10-01/compute/proximityplacementgroups.go +++ b/services/compute/mgmt/2018-10-01/compute/proximityplacementgroups.go @@ -74,6 +74,7 @@ func (client ProximityPlacementGroupsClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ProximityPlacementGroupsClient) Delete(ctx context.Context, resourc result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -225,6 +227,7 @@ func (client ProximityPlacementGroupsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client ProximityPlacementGroupsClient) ListByResourceGroup(ctx context.Con result.ppglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ppglr.hasNextLink() && result.ppglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +367,7 @@ func (client ProximityPlacementGroupsClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +417,7 @@ func (client ProximityPlacementGroupsClient) ListBySubscription(ctx context.Cont result.ppglr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ppglr.hasNextLink() && result.ppglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +480,7 @@ func (client ProximityPlacementGroupsClient) listBySubscriptionNextResults(ctx c result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +533,7 @@ func (client ProximityPlacementGroupsClient) Update(ctx context.Context, resourc result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2018-10-01/compute/resourceskus.go b/services/compute/mgmt/2018-10-01/compute/resourceskus.go index 61027f6ccdea..5194809c5d94 100644 --- a/services/compute/mgmt/2018-10-01/compute/resourceskus.go +++ b/services/compute/mgmt/2018-10-01/compute/resourceskus.go @@ -70,6 +70,7 @@ func (client ResourceSkusClient) List(ctx context.Context) (result ResourceSkusR result.rsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ResourceSkusClient", "List", resp, "Failure responding to request") + return } if result.rsr.hasNextLink() && result.rsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client ResourceSkusClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ResourceSkusClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-10-01/compute/snapshots.go b/services/compute/mgmt/2018-10-01/compute/snapshots.go index c11e93745bd7..5a71addb77ce 100644 --- a/services/compute/mgmt/2018-10-01/compute/snapshots.go +++ b/services/compute/mgmt/2018-10-01/compute/snapshots.go @@ -250,6 +250,7 @@ func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "Get", resp, "Failure responding to request") + return } return @@ -408,6 +409,7 @@ func (client SnapshotsClient) List(ctx context.Context) (result SnapshotListPage result.sl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "List", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -470,6 +472,7 @@ func (client SnapshotsClient) listNextResults(ctx context.Context, lastResults S result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -521,6 +524,7 @@ func (client SnapshotsClient) ListByResourceGroup(ctx context.Context, resourceG result.sl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -584,6 +588,7 @@ func (client SnapshotsClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-10-01/compute/usage.go b/services/compute/mgmt/2018-10-01/compute/usage.go index 2658d2e0dc49..33ac90ac1a88 100644 --- a/services/compute/mgmt/2018-10-01/compute/usage.go +++ b/services/compute/mgmt/2018-10-01/compute/usage.go @@ -80,6 +80,7 @@ func (client UsageClient) List(ctx context.Context, location string) (result Lis result.lur, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.UsageClient", "List", resp, "Failure responding to request") + return } if result.lur.hasNextLink() && result.lur.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client UsageClient) listNextResults(ctx context.Context, lastResults ListU result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.UsageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-10-01/compute/virtualmachineextensionimages.go b/services/compute/mgmt/2018-10-01/compute/virtualmachineextensionimages.go index d1e24cac24fb..f0f0d0776072 100644 --- a/services/compute/mgmt/2018-10-01/compute/virtualmachineextensionimages.go +++ b/services/compute/mgmt/2018-10-01/compute/virtualmachineextensionimages.go @@ -72,6 +72,7 @@ func (client VirtualMachineExtensionImagesClient) Get(ctx context.Context, locat result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client VirtualMachineExtensionImagesClient) ListTypes(ctx context.Context, result, err = client.ListTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListTypes", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client VirtualMachineExtensionImagesClient) ListVersions(ctx context.Conte result, err = client.ListVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListVersions", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2018-10-01/compute/virtualmachineextensions.go b/services/compute/mgmt/2018-10-01/compute/virtualmachineextensions.go index 58814d0c3bc4..ec9497cb80a7 100644 --- a/services/compute/mgmt/2018-10-01/compute/virtualmachineextensions.go +++ b/services/compute/mgmt/2018-10-01/compute/virtualmachineextensions.go @@ -231,6 +231,7 @@ func (client VirtualMachineExtensionsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client VirtualMachineExtensionsClient) List(ctx context.Context, resourceG result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2018-10-01/compute/virtualmachineimages.go b/services/compute/mgmt/2018-10-01/compute/virtualmachineimages.go index 07a28904a26f..6e027eb368ad 100644 --- a/services/compute/mgmt/2018-10-01/compute/virtualmachineimages.go +++ b/services/compute/mgmt/2018-10-01/compute/virtualmachineimages.go @@ -76,6 +76,7 @@ func (client VirtualMachineImagesClient) Get(ctx context.Context, location strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client VirtualMachineImagesClient) List(ctx context.Context, location stri result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "List", resp, "Failure responding to request") + return } return @@ -243,6 +245,7 @@ func (client VirtualMachineImagesClient) ListOffers(ctx context.Context, locatio result, err = client.ListOffersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListOffers", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client VirtualMachineImagesClient) ListPublishers(ctx context.Context, loc result, err = client.ListPublishersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListPublishers", resp, "Failure responding to request") + return } return @@ -392,6 +396,7 @@ func (client VirtualMachineImagesClient) ListSkus(ctx context.Context, location result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListSkus", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2018-10-01/compute/virtualmachineruncommands.go b/services/compute/mgmt/2018-10-01/compute/virtualmachineruncommands.go index f919701d77df..e7a36595b9e0 100644 --- a/services/compute/mgmt/2018-10-01/compute/virtualmachineruncommands.go +++ b/services/compute/mgmt/2018-10-01/compute/virtualmachineruncommands.go @@ -80,6 +80,7 @@ func (client VirtualMachineRunCommandsClient) Get(ctx context.Context, location result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "Get", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client VirtualMachineRunCommandsClient) List(ctx context.Context, location result.rclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "List", resp, "Failure responding to request") + return } if result.rclr.hasNextLink() && result.rclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -224,6 +226,7 @@ func (client VirtualMachineRunCommandsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-10-01/compute/virtualmachines.go b/services/compute/mgmt/2018-10-01/compute/virtualmachines.go index 83be0841d67e..906f573bd1d9 100644 --- a/services/compute/mgmt/2018-10-01/compute/virtualmachines.go +++ b/services/compute/mgmt/2018-10-01/compute/virtualmachines.go @@ -484,6 +484,7 @@ func (client VirtualMachinesClient) Generalize(ctx context.Context, resourceGrou result, err = client.GeneralizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Generalize", resp, "Failure responding to request") + return } return @@ -559,6 +560,7 @@ func (client VirtualMachinesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Get", resp, "Failure responding to request") + return } return @@ -637,6 +639,7 @@ func (client VirtualMachinesClient) InstanceView(ctx context.Context, resourceGr result, err = client.InstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "InstanceView", resp, "Failure responding to request") + return } return @@ -713,6 +716,7 @@ func (client VirtualMachinesClient) List(ctx context.Context, resourceGroupName result.vmlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "List", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -776,6 +780,7 @@ func (client VirtualMachinesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -826,6 +831,7 @@ func (client VirtualMachinesClient) ListAll(ctx context.Context) (result Virtual result.vmlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAll", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -888,6 +894,7 @@ func (client VirtualMachinesClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -939,6 +946,7 @@ func (client VirtualMachinesClient) ListAvailableSizes(ctx context.Context, reso result, err = client.ListAvailableSizesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAvailableSizes", resp, "Failure responding to request") + return } return @@ -1020,6 +1028,7 @@ func (client VirtualMachinesClient) ListByLocation(ctx context.Context, location result.vmlr, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListByLocation", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1083,6 +1092,7 @@ func (client VirtualMachinesClient) listByLocationNextResults(ctx context.Contex result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listByLocationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-10-01/compute/virtualmachinescalesetextensions.go b/services/compute/mgmt/2018-10-01/compute/virtualmachinescalesetextensions.go index 5e35c286599e..8c70884d39e9 100644 --- a/services/compute/mgmt/2018-10-01/compute/virtualmachinescalesetextensions.go +++ b/services/compute/mgmt/2018-10-01/compute/virtualmachinescalesetextensions.go @@ -231,6 +231,7 @@ func (client VirtualMachineScaleSetExtensionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client VirtualMachineScaleSetExtensionsClient) List(ctx context.Context, r result.vmsselr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "List", resp, "Failure responding to request") + return } if result.vmsselr.hasNextLink() && result.vmsselr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client VirtualMachineScaleSetExtensionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-10-01/compute/virtualmachinescalesetrollingupgrades.go b/services/compute/mgmt/2018-10-01/compute/virtualmachinescalesetrollingupgrades.go index d41790d19c41..01de8c75c056 100644 --- a/services/compute/mgmt/2018-10-01/compute/virtualmachinescalesetrollingupgrades.go +++ b/services/compute/mgmt/2018-10-01/compute/virtualmachinescalesetrollingupgrades.go @@ -148,6 +148,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) GetLatest(ctx context. result, err = client.GetLatestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetRollingUpgradesClient", "GetLatest", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2018-10-01/compute/virtualmachinescalesets.go b/services/compute/mgmt/2018-10-01/compute/virtualmachinescalesets.go index 8ce53cbffc75..f7b5fd3bc795 100644 --- a/services/compute/mgmt/2018-10-01/compute/virtualmachinescalesets.go +++ b/services/compute/mgmt/2018-10-01/compute/virtualmachinescalesets.go @@ -415,6 +415,7 @@ func (client VirtualMachineScaleSetsClient) ForceRecoveryServiceFabricPlatformUp result, err = client.ForceRecoveryServiceFabricPlatformUpdateDomainWalkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ForceRecoveryServiceFabricPlatformUpdateDomainWalk", resp, "Failure responding to request") + return } return @@ -491,6 +492,7 @@ func (client VirtualMachineScaleSetsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -566,6 +568,7 @@ func (client VirtualMachineScaleSetsClient) GetInstanceView(ctx context.Context, result, err = client.GetInstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "GetInstanceView", resp, "Failure responding to request") + return } return @@ -642,6 +645,7 @@ func (client VirtualMachineScaleSetsClient) GetOSUpgradeHistory(ctx context.Cont result.vmsslouh, err = client.GetOSUpgradeHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "GetOSUpgradeHistory", resp, "Failure responding to request") + return } if result.vmsslouh.hasNextLink() && result.vmsslouh.IsEmpty() { err = result.NextWithContext(ctx) @@ -706,6 +710,7 @@ func (client VirtualMachineScaleSetsClient) getOSUpgradeHistoryNextResults(ctx c result, err = client.GetOSUpgradeHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "getOSUpgradeHistoryNextResults", resp, "Failure responding to next results request") + return } return } @@ -757,6 +762,7 @@ func (client VirtualMachineScaleSetsClient) List(ctx context.Context, resourceGr result.vmsslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "List", resp, "Failure responding to request") + return } if result.vmsslr.hasNextLink() && result.vmsslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -820,6 +826,7 @@ func (client VirtualMachineScaleSetsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -871,6 +878,7 @@ func (client VirtualMachineScaleSetsClient) ListAll(ctx context.Context) (result result.vmsslwlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListAll", resp, "Failure responding to request") + return } if result.vmsslwlr.hasNextLink() && result.vmsslwlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -933,6 +941,7 @@ func (client VirtualMachineScaleSetsClient) listAllNextResults(ctx context.Conte result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -986,6 +995,7 @@ func (client VirtualMachineScaleSetsClient) ListSkus(ctx context.Context, resour result.vmsslsr, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListSkus", resp, "Failure responding to request") + return } if result.vmsslsr.hasNextLink() && result.vmsslsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1050,6 +1060,7 @@ func (client VirtualMachineScaleSetsClient) listSkusNextResults(ctx context.Cont result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-10-01/compute/virtualmachinescalesetvms.go b/services/compute/mgmt/2018-10-01/compute/virtualmachinescalesetvms.go index 05f327f7309e..81c38c58bd01 100644 --- a/services/compute/mgmt/2018-10-01/compute/virtualmachinescalesetvms.go +++ b/services/compute/mgmt/2018-10-01/compute/virtualmachinescalesetvms.go @@ -229,6 +229,7 @@ func (client VirtualMachineScaleSetVMsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client VirtualMachineScaleSetVMsClient) GetInstanceView(ctx context.Contex result, err = client.GetInstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "GetInstanceView", resp, "Failure responding to request") + return } return @@ -387,6 +389,7 @@ func (client VirtualMachineScaleSetVMsClient) List(ctx context.Context, resource result.vmssvlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "List", resp, "Failure responding to request") + return } if result.vmssvlr.hasNextLink() && result.vmssvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -460,6 +463,7 @@ func (client VirtualMachineScaleSetVMsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2018-10-01/compute/virtualmachinesizes.go b/services/compute/mgmt/2018-10-01/compute/virtualmachinesizes.go index cc5424e324e7..c06436e05eb4 100644 --- a/services/compute/mgmt/2018-10-01/compute/virtualmachinesizes.go +++ b/services/compute/mgmt/2018-10-01/compute/virtualmachinesizes.go @@ -80,6 +80,7 @@ func (client VirtualMachineSizesClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineSizesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-03-01/compute/availabilitysets.go b/services/compute/mgmt/2019-03-01/compute/availabilitysets.go index ae3ac74200b7..e1f116cdf635 100644 --- a/services/compute/mgmt/2019-03-01/compute/availabilitysets.go +++ b/services/compute/mgmt/2019-03-01/compute/availabilitysets.go @@ -74,6 +74,7 @@ func (client AvailabilitySetsClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client AvailabilitySetsClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -225,6 +227,7 @@ func (client AvailabilitySetsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client AvailabilitySetsClient) List(ctx context.Context, resourceGroupName result.aslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "List", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +367,7 @@ func (client AvailabilitySetsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +420,7 @@ func (client AvailabilitySetsClient) ListAvailableSizes(ctx context.Context, res result, err = client.ListAvailableSizesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListAvailableSizes", resp, "Failure responding to request") + return } return @@ -490,6 +496,7 @@ func (client AvailabilitySetsClient) ListBySubscription(ctx context.Context, exp result.aslr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -555,6 +562,7 @@ func (client AvailabilitySetsClient) listBySubscriptionNextResults(ctx context.C result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -607,6 +615,7 @@ func (client AvailabilitySetsClient) Update(ctx context.Context, resourceGroupNa result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-03-01/compute/containerservices.go b/services/compute/mgmt/2019-03-01/compute/containerservices.go index 92208281f44e..f369af4938df 100644 --- a/services/compute/mgmt/2019-03-01/compute/containerservices.go +++ b/services/compute/mgmt/2019-03-01/compute/containerservices.go @@ -263,6 +263,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -337,6 +338,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result Containe result.cslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.cslr.hasNextLink() && result.cslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -399,6 +401,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -452,6 +455,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.cslr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cslr.hasNextLink() && result.cslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -515,6 +519,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-03-01/compute/dedicatedhostgroups.go b/services/compute/mgmt/2019-03-01/compute/dedicatedhostgroups.go index febb8572712a..cdc5ede6ccb8 100644 --- a/services/compute/mgmt/2019-03-01/compute/dedicatedhostgroups.go +++ b/services/compute/mgmt/2019-03-01/compute/dedicatedhostgroups.go @@ -87,6 +87,7 @@ func (client DedicatedHostGroupsClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client DedicatedHostGroupsClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client DedicatedHostGroupsClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +317,7 @@ func (client DedicatedHostGroupsClient) ListByResourceGroup(ctx context.Context, result.dhglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dhglr.hasNextLink() && result.dhglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +381,7 @@ func (client DedicatedHostGroupsClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -427,6 +432,7 @@ func (client DedicatedHostGroupsClient) ListBySubscription(ctx context.Context) result.dhglr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.dhglr.hasNextLink() && result.dhglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -489,6 +495,7 @@ func (client DedicatedHostGroupsClient) listBySubscriptionNextResults(ctx contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -541,6 +548,7 @@ func (client DedicatedHostGroupsClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-03-01/compute/dedicatedhosts.go b/services/compute/mgmt/2019-03-01/compute/dedicatedhosts.go index b43b53310935..e08a5da3445d 100644 --- a/services/compute/mgmt/2019-03-01/compute/dedicatedhosts.go +++ b/services/compute/mgmt/2019-03-01/compute/dedicatedhosts.go @@ -243,6 +243,7 @@ func (client DedicatedHostsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "Get", resp, "Failure responding to request") + return } return @@ -324,6 +325,7 @@ func (client DedicatedHostsClient) ListByHostGroup(ctx context.Context, resource result.dhlr, err = client.ListByHostGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "ListByHostGroup", resp, "Failure responding to request") + return } if result.dhlr.hasNextLink() && result.dhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -388,6 +390,7 @@ func (client DedicatedHostsClient) listByHostGroupNextResults(ctx context.Contex result, err = client.ListByHostGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "listByHostGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-03-01/compute/disks.go b/services/compute/mgmt/2019-03-01/compute/disks.go index b5f2a1f40e75..5eba270cc299 100644 --- a/services/compute/mgmt/2019-03-01/compute/disks.go +++ b/services/compute/mgmt/2019-03-01/compute/disks.go @@ -245,6 +245,7 @@ func (client DisksClient) Get(ctx context.Context, resourceGroupName string, dis result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "Get", resp, "Failure responding to request") + return } return @@ -404,6 +405,7 @@ func (client DisksClient) List(ctx context.Context) (result DiskListPage, err er result.dl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "List", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +468,7 @@ func (client DisksClient) listNextResults(ctx context.Context, lastResults DiskL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -517,6 +520,7 @@ func (client DisksClient) ListByResourceGroup(ctx context.Context, resourceGroup result.dl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -580,6 +584,7 @@ func (client DisksClient) listByResourceGroupNextResults(ctx context.Context, la result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-03-01/compute/galleries.go b/services/compute/mgmt/2019-03-01/compute/galleries.go index a43ae8d9a516..d6b014da01ae 100644 --- a/services/compute/mgmt/2019-03-01/compute/galleries.go +++ b/services/compute/mgmt/2019-03-01/compute/galleries.go @@ -225,6 +225,7 @@ func (client GalleriesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client GalleriesClient) List(ctx context.Context) (result GalleryListPage, result.gl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "List", resp, "Failure responding to request") + return } if result.gl.hasNextLink() && result.gl.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client GalleriesClient) listNextResults(ctx context.Context, lastResults G result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client GalleriesClient) ListByResourceGroup(ctx context.Context, resourceG result.gl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.gl.hasNextLink() && result.gl.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client GalleriesClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-03-01/compute/galleryapplications.go b/services/compute/mgmt/2019-03-01/compute/galleryapplications.go index f1f2763312e3..3a7461ce9299 100644 --- a/services/compute/mgmt/2019-03-01/compute/galleryapplications.go +++ b/services/compute/mgmt/2019-03-01/compute/galleryapplications.go @@ -235,6 +235,7 @@ func (client GalleryApplicationsClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -313,6 +314,7 @@ func (client GalleryApplicationsClient) ListByGallery(ctx context.Context, resou result.gal, err = client.ListByGalleryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationsClient", "ListByGallery", resp, "Failure responding to request") + return } if result.gal.hasNextLink() && result.gal.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +379,7 @@ func (client GalleryApplicationsClient) listByGalleryNextResults(ctx context.Con result, err = client.ListByGalleryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationsClient", "listByGalleryNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-03-01/compute/galleryapplicationversions.go b/services/compute/mgmt/2019-03-01/compute/galleryapplicationversions.go index cbd08e73f91d..ef2f7dacf98a 100644 --- a/services/compute/mgmt/2019-03-01/compute/galleryapplicationversions.go +++ b/services/compute/mgmt/2019-03-01/compute/galleryapplicationversions.go @@ -256,6 +256,7 @@ func (client GalleryApplicationVersionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationVersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -339,6 +340,7 @@ func (client GalleryApplicationVersionsClient) ListByGalleryApplication(ctx cont result.gavl, err = client.ListByGalleryApplicationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationVersionsClient", "ListByGalleryApplication", resp, "Failure responding to request") + return } if result.gavl.hasNextLink() && result.gavl.IsEmpty() { err = result.NextWithContext(ctx) @@ -404,6 +406,7 @@ func (client GalleryApplicationVersionsClient) listByGalleryApplicationNextResul result, err = client.ListByGalleryApplicationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationVersionsClient", "listByGalleryApplicationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-03-01/compute/galleryimages.go b/services/compute/mgmt/2019-03-01/compute/galleryimages.go index 982782700b0f..b24053b87b10 100644 --- a/services/compute/mgmt/2019-03-01/compute/galleryimages.go +++ b/services/compute/mgmt/2019-03-01/compute/galleryimages.go @@ -244,6 +244,7 @@ func (client GalleryImagesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client GalleryImagesClient) ListByGallery(ctx context.Context, resourceGro result.gil, err = client.ListByGalleryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "ListByGallery", resp, "Failure responding to request") + return } if result.gil.hasNextLink() && result.gil.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client GalleryImagesClient) listByGalleryNextResults(ctx context.Context, result, err = client.ListByGalleryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "listByGalleryNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-03-01/compute/galleryimageversions.go b/services/compute/mgmt/2019-03-01/compute/galleryimageversions.go index 4d1377a5b422..e397ce1d84ae 100644 --- a/services/compute/mgmt/2019-03-01/compute/galleryimageversions.go +++ b/services/compute/mgmt/2019-03-01/compute/galleryimageversions.go @@ -252,6 +252,7 @@ func (client GalleryImageVersionsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -335,6 +336,7 @@ func (client GalleryImageVersionsClient) ListByGalleryImage(ctx context.Context, result.givl, err = client.ListByGalleryImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "ListByGalleryImage", resp, "Failure responding to request") + return } if result.givl.hasNextLink() && result.givl.IsEmpty() { err = result.NextWithContext(ctx) @@ -400,6 +402,7 @@ func (client GalleryImageVersionsClient) listByGalleryImageNextResults(ctx conte result, err = client.ListByGalleryImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "listByGalleryImageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-03-01/compute/images.go b/services/compute/mgmt/2019-03-01/compute/images.go index 43ef79f8e3a5..7c2990580b44 100644 --- a/services/compute/mgmt/2019-03-01/compute/images.go +++ b/services/compute/mgmt/2019-03-01/compute/images.go @@ -225,6 +225,7 @@ func (client ImagesClient) Get(ctx context.Context, resourceGroupName string, im result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ImagesClient) List(ctx context.Context) (result ImageListResultPage result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ImagesClient) listNextResults(ctx context.Context, lastResults Imag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client ImagesClient) ListByResourceGroup(ctx context.Context, resourceGrou result.ilr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client ImagesClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-03-01/compute/operations.go b/services/compute/mgmt/2019-03-01/compute/operations.go index 3099a922fc55..b991498ade82 100644 --- a/services/compute/mgmt/2019-03-01/compute/operations.go +++ b/services/compute/mgmt/2019-03-01/compute/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-03-01/compute/proximityplacementgroups.go b/services/compute/mgmt/2019-03-01/compute/proximityplacementgroups.go index 14bdf65cb469..5d7098684a8a 100644 --- a/services/compute/mgmt/2019-03-01/compute/proximityplacementgroups.go +++ b/services/compute/mgmt/2019-03-01/compute/proximityplacementgroups.go @@ -74,6 +74,7 @@ func (client ProximityPlacementGroupsClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ProximityPlacementGroupsClient) Delete(ctx context.Context, resourc result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -225,6 +227,7 @@ func (client ProximityPlacementGroupsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client ProximityPlacementGroupsClient) ListByResourceGroup(ctx context.Con result.ppglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ppglr.hasNextLink() && result.ppglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +367,7 @@ func (client ProximityPlacementGroupsClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +417,7 @@ func (client ProximityPlacementGroupsClient) ListBySubscription(ctx context.Cont result.ppglr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ppglr.hasNextLink() && result.ppglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +480,7 @@ func (client ProximityPlacementGroupsClient) listBySubscriptionNextResults(ctx c result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +533,7 @@ func (client ProximityPlacementGroupsClient) Update(ctx context.Context, resourc result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-03-01/compute/resourceskus.go b/services/compute/mgmt/2019-03-01/compute/resourceskus.go index d389561d3c73..ec1fc3fd7063 100644 --- a/services/compute/mgmt/2019-03-01/compute/resourceskus.go +++ b/services/compute/mgmt/2019-03-01/compute/resourceskus.go @@ -72,6 +72,7 @@ func (client ResourceSkusClient) List(ctx context.Context, filter string) (resul result.rsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ResourceSkusClient", "List", resp, "Failure responding to request") + return } if result.rsr.hasNextLink() && result.rsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -137,6 +138,7 @@ func (client ResourceSkusClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ResourceSkusClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-03-01/compute/snapshots.go b/services/compute/mgmt/2019-03-01/compute/snapshots.go index 9964075b5ea6..43812a484ca4 100644 --- a/services/compute/mgmt/2019-03-01/compute/snapshots.go +++ b/services/compute/mgmt/2019-03-01/compute/snapshots.go @@ -242,6 +242,7 @@ func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "Get", resp, "Failure responding to request") + return } return @@ -400,6 +401,7 @@ func (client SnapshotsClient) List(ctx context.Context) (result SnapshotListPage result.sl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "List", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -462,6 +464,7 @@ func (client SnapshotsClient) listNextResults(ctx context.Context, lastResults S result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -513,6 +516,7 @@ func (client SnapshotsClient) ListByResourceGroup(ctx context.Context, resourceG result.sl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -576,6 +580,7 @@ func (client SnapshotsClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-03-01/compute/usage.go b/services/compute/mgmt/2019-03-01/compute/usage.go index abca4f7bbcbd..3ef037a59476 100644 --- a/services/compute/mgmt/2019-03-01/compute/usage.go +++ b/services/compute/mgmt/2019-03-01/compute/usage.go @@ -80,6 +80,7 @@ func (client UsageClient) List(ctx context.Context, location string) (result Lis result.lur, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.UsageClient", "List", resp, "Failure responding to request") + return } if result.lur.hasNextLink() && result.lur.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client UsageClient) listNextResults(ctx context.Context, lastResults ListU result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.UsageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-03-01/compute/virtualmachineextensionimages.go b/services/compute/mgmt/2019-03-01/compute/virtualmachineextensionimages.go index 1bdf37539348..b4a045f46f3c 100644 --- a/services/compute/mgmt/2019-03-01/compute/virtualmachineextensionimages.go +++ b/services/compute/mgmt/2019-03-01/compute/virtualmachineextensionimages.go @@ -72,6 +72,7 @@ func (client VirtualMachineExtensionImagesClient) Get(ctx context.Context, locat result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client VirtualMachineExtensionImagesClient) ListTypes(ctx context.Context, result, err = client.ListTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListTypes", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client VirtualMachineExtensionImagesClient) ListVersions(ctx context.Conte result, err = client.ListVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListVersions", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-03-01/compute/virtualmachineextensions.go b/services/compute/mgmt/2019-03-01/compute/virtualmachineextensions.go index 9f1b2502069c..33071b992265 100644 --- a/services/compute/mgmt/2019-03-01/compute/virtualmachineextensions.go +++ b/services/compute/mgmt/2019-03-01/compute/virtualmachineextensions.go @@ -231,6 +231,7 @@ func (client VirtualMachineExtensionsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client VirtualMachineExtensionsClient) List(ctx context.Context, resourceG result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-03-01/compute/virtualmachineimages.go b/services/compute/mgmt/2019-03-01/compute/virtualmachineimages.go index 5a747ec684e4..6fccf479253e 100644 --- a/services/compute/mgmt/2019-03-01/compute/virtualmachineimages.go +++ b/services/compute/mgmt/2019-03-01/compute/virtualmachineimages.go @@ -76,6 +76,7 @@ func (client VirtualMachineImagesClient) Get(ctx context.Context, location strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client VirtualMachineImagesClient) List(ctx context.Context, location stri result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "List", resp, "Failure responding to request") + return } return @@ -243,6 +245,7 @@ func (client VirtualMachineImagesClient) ListOffers(ctx context.Context, locatio result, err = client.ListOffersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListOffers", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client VirtualMachineImagesClient) ListPublishers(ctx context.Context, loc result, err = client.ListPublishersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListPublishers", resp, "Failure responding to request") + return } return @@ -392,6 +396,7 @@ func (client VirtualMachineImagesClient) ListSkus(ctx context.Context, location result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListSkus", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-03-01/compute/virtualmachineruncommands.go b/services/compute/mgmt/2019-03-01/compute/virtualmachineruncommands.go index 0d57254f5cb6..02cc549e3b25 100644 --- a/services/compute/mgmt/2019-03-01/compute/virtualmachineruncommands.go +++ b/services/compute/mgmt/2019-03-01/compute/virtualmachineruncommands.go @@ -80,6 +80,7 @@ func (client VirtualMachineRunCommandsClient) Get(ctx context.Context, location result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "Get", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client VirtualMachineRunCommandsClient) List(ctx context.Context, location result.rclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "List", resp, "Failure responding to request") + return } if result.rclr.hasNextLink() && result.rclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -224,6 +226,7 @@ func (client VirtualMachineRunCommandsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-03-01/compute/virtualmachines.go b/services/compute/mgmt/2019-03-01/compute/virtualmachines.go index 011374bfa41f..aff2f9014f08 100644 --- a/services/compute/mgmt/2019-03-01/compute/virtualmachines.go +++ b/services/compute/mgmt/2019-03-01/compute/virtualmachines.go @@ -484,6 +484,7 @@ func (client VirtualMachinesClient) Generalize(ctx context.Context, resourceGrou result, err = client.GeneralizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Generalize", resp, "Failure responding to request") + return } return @@ -559,6 +560,7 @@ func (client VirtualMachinesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Get", resp, "Failure responding to request") + return } return @@ -637,6 +639,7 @@ func (client VirtualMachinesClient) InstanceView(ctx context.Context, resourceGr result, err = client.InstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "InstanceView", resp, "Failure responding to request") + return } return @@ -713,6 +716,7 @@ func (client VirtualMachinesClient) List(ctx context.Context, resourceGroupName result.vmlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "List", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -776,6 +780,7 @@ func (client VirtualMachinesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -826,6 +831,7 @@ func (client VirtualMachinesClient) ListAll(ctx context.Context) (result Virtual result.vmlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAll", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -888,6 +894,7 @@ func (client VirtualMachinesClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -939,6 +946,7 @@ func (client VirtualMachinesClient) ListAvailableSizes(ctx context.Context, reso result, err = client.ListAvailableSizesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAvailableSizes", resp, "Failure responding to request") + return } return @@ -1020,6 +1028,7 @@ func (client VirtualMachinesClient) ListByLocation(ctx context.Context, location result.vmlr, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListByLocation", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1083,6 +1092,7 @@ func (client VirtualMachinesClient) listByLocationNextResults(ctx context.Contex result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listByLocationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-03-01/compute/virtualmachinescalesetextensions.go b/services/compute/mgmt/2019-03-01/compute/virtualmachinescalesetextensions.go index d59d4e710ef0..dbf6c2759308 100644 --- a/services/compute/mgmt/2019-03-01/compute/virtualmachinescalesetextensions.go +++ b/services/compute/mgmt/2019-03-01/compute/virtualmachinescalesetextensions.go @@ -231,6 +231,7 @@ func (client VirtualMachineScaleSetExtensionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client VirtualMachineScaleSetExtensionsClient) List(ctx context.Context, r result.vmsselr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "List", resp, "Failure responding to request") + return } if result.vmsselr.hasNextLink() && result.vmsselr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client VirtualMachineScaleSetExtensionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-03-01/compute/virtualmachinescalesetrollingupgrades.go b/services/compute/mgmt/2019-03-01/compute/virtualmachinescalesetrollingupgrades.go index 43d98962cd27..4365801426d1 100644 --- a/services/compute/mgmt/2019-03-01/compute/virtualmachinescalesetrollingupgrades.go +++ b/services/compute/mgmt/2019-03-01/compute/virtualmachinescalesetrollingupgrades.go @@ -148,6 +148,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) GetLatest(ctx context. result, err = client.GetLatestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetRollingUpgradesClient", "GetLatest", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-03-01/compute/virtualmachinescalesets.go b/services/compute/mgmt/2019-03-01/compute/virtualmachinescalesets.go index f3ef6adb7a43..c05b71d86985 100644 --- a/services/compute/mgmt/2019-03-01/compute/virtualmachinescalesets.go +++ b/services/compute/mgmt/2019-03-01/compute/virtualmachinescalesets.go @@ -76,6 +76,7 @@ func (client VirtualMachineScaleSetsClient) ConvertToSinglePlacementGroup(ctx co result, err = client.ConvertToSinglePlacementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ConvertToSinglePlacementGroup", resp, "Failure responding to request") + return } return @@ -493,6 +494,7 @@ func (client VirtualMachineScaleSetsClient) ForceRecoveryServiceFabricPlatformUp result, err = client.ForceRecoveryServiceFabricPlatformUpdateDomainWalkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ForceRecoveryServiceFabricPlatformUpdateDomainWalk", resp, "Failure responding to request") + return } return @@ -569,6 +571,7 @@ func (client VirtualMachineScaleSetsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -644,6 +647,7 @@ func (client VirtualMachineScaleSetsClient) GetInstanceView(ctx context.Context, result, err = client.GetInstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "GetInstanceView", resp, "Failure responding to request") + return } return @@ -720,6 +724,7 @@ func (client VirtualMachineScaleSetsClient) GetOSUpgradeHistory(ctx context.Cont result.vmsslouh, err = client.GetOSUpgradeHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "GetOSUpgradeHistory", resp, "Failure responding to request") + return } if result.vmsslouh.hasNextLink() && result.vmsslouh.IsEmpty() { err = result.NextWithContext(ctx) @@ -784,6 +789,7 @@ func (client VirtualMachineScaleSetsClient) getOSUpgradeHistoryNextResults(ctx c result, err = client.GetOSUpgradeHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "getOSUpgradeHistoryNextResults", resp, "Failure responding to next results request") + return } return } @@ -835,6 +841,7 @@ func (client VirtualMachineScaleSetsClient) List(ctx context.Context, resourceGr result.vmsslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "List", resp, "Failure responding to request") + return } if result.vmsslr.hasNextLink() && result.vmsslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -898,6 +905,7 @@ func (client VirtualMachineScaleSetsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -949,6 +957,7 @@ func (client VirtualMachineScaleSetsClient) ListAll(ctx context.Context) (result result.vmsslwlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListAll", resp, "Failure responding to request") + return } if result.vmsslwlr.hasNextLink() && result.vmsslwlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1011,6 +1020,7 @@ func (client VirtualMachineScaleSetsClient) listAllNextResults(ctx context.Conte result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -1064,6 +1074,7 @@ func (client VirtualMachineScaleSetsClient) ListSkus(ctx context.Context, resour result.vmsslsr, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListSkus", resp, "Failure responding to request") + return } if result.vmsslsr.hasNextLink() && result.vmsslsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1128,6 +1139,7 @@ func (client VirtualMachineScaleSetsClient) listSkusNextResults(ctx context.Cont result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-03-01/compute/virtualmachinescalesetvms.go b/services/compute/mgmt/2019-03-01/compute/virtualmachinescalesetvms.go index c484b4a4d7ec..98a0b6e00fdb 100644 --- a/services/compute/mgmt/2019-03-01/compute/virtualmachinescalesetvms.go +++ b/services/compute/mgmt/2019-03-01/compute/virtualmachinescalesetvms.go @@ -230,6 +230,7 @@ func (client VirtualMachineScaleSetVMsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client VirtualMachineScaleSetVMsClient) GetInstanceView(ctx context.Contex result, err = client.GetInstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "GetInstanceView", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualMachineScaleSetVMsClient) List(ctx context.Context, resource result.vmssvlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "List", resp, "Failure responding to request") + return } if result.vmssvlr.hasNextLink() && result.vmssvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -464,6 +467,7 @@ func (client VirtualMachineScaleSetVMsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-03-01/compute/virtualmachinesizes.go b/services/compute/mgmt/2019-03-01/compute/virtualmachinesizes.go index 5716b3b87697..ed35eb8827be 100644 --- a/services/compute/mgmt/2019-03-01/compute/virtualmachinesizes.go +++ b/services/compute/mgmt/2019-03-01/compute/virtualmachinesizes.go @@ -80,6 +80,7 @@ func (client VirtualMachineSizesClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineSizesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-07-01/compute/availabilitysets.go b/services/compute/mgmt/2019-07-01/compute/availabilitysets.go index a54ade6b3ee6..37d943a85a10 100644 --- a/services/compute/mgmt/2019-07-01/compute/availabilitysets.go +++ b/services/compute/mgmt/2019-07-01/compute/availabilitysets.go @@ -74,6 +74,7 @@ func (client AvailabilitySetsClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client AvailabilitySetsClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -225,6 +227,7 @@ func (client AvailabilitySetsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client AvailabilitySetsClient) List(ctx context.Context, resourceGroupName result.aslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "List", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +367,7 @@ func (client AvailabilitySetsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +420,7 @@ func (client AvailabilitySetsClient) ListAvailableSizes(ctx context.Context, res result, err = client.ListAvailableSizesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListAvailableSizes", resp, "Failure responding to request") + return } return @@ -490,6 +496,7 @@ func (client AvailabilitySetsClient) ListBySubscription(ctx context.Context, exp result.aslr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -555,6 +562,7 @@ func (client AvailabilitySetsClient) listBySubscriptionNextResults(ctx context.C result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -607,6 +615,7 @@ func (client AvailabilitySetsClient) Update(ctx context.Context, resourceGroupNa result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-07-01/compute/containerservices.go b/services/compute/mgmt/2019-07-01/compute/containerservices.go index 92208281f44e..f369af4938df 100644 --- a/services/compute/mgmt/2019-07-01/compute/containerservices.go +++ b/services/compute/mgmt/2019-07-01/compute/containerservices.go @@ -263,6 +263,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -337,6 +338,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result Containe result.cslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.cslr.hasNextLink() && result.cslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -399,6 +401,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -452,6 +455,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.cslr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cslr.hasNextLink() && result.cslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -515,6 +519,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-07-01/compute/dedicatedhostgroups.go b/services/compute/mgmt/2019-07-01/compute/dedicatedhostgroups.go index 711b547a1021..8a994bfbf472 100644 --- a/services/compute/mgmt/2019-07-01/compute/dedicatedhostgroups.go +++ b/services/compute/mgmt/2019-07-01/compute/dedicatedhostgroups.go @@ -87,6 +87,7 @@ func (client DedicatedHostGroupsClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client DedicatedHostGroupsClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client DedicatedHostGroupsClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +317,7 @@ func (client DedicatedHostGroupsClient) ListByResourceGroup(ctx context.Context, result.dhglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dhglr.hasNextLink() && result.dhglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +381,7 @@ func (client DedicatedHostGroupsClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -427,6 +432,7 @@ func (client DedicatedHostGroupsClient) ListBySubscription(ctx context.Context) result.dhglr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.dhglr.hasNextLink() && result.dhglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -489,6 +495,7 @@ func (client DedicatedHostGroupsClient) listBySubscriptionNextResults(ctx contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -541,6 +548,7 @@ func (client DedicatedHostGroupsClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-07-01/compute/dedicatedhosts.go b/services/compute/mgmt/2019-07-01/compute/dedicatedhosts.go index 253f2cd7259e..aa3819fb221f 100644 --- a/services/compute/mgmt/2019-07-01/compute/dedicatedhosts.go +++ b/services/compute/mgmt/2019-07-01/compute/dedicatedhosts.go @@ -243,6 +243,7 @@ func (client DedicatedHostsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "Get", resp, "Failure responding to request") + return } return @@ -324,6 +325,7 @@ func (client DedicatedHostsClient) ListByHostGroup(ctx context.Context, resource result.dhlr, err = client.ListByHostGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "ListByHostGroup", resp, "Failure responding to request") + return } if result.dhlr.hasNextLink() && result.dhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -388,6 +390,7 @@ func (client DedicatedHostsClient) listByHostGroupNextResults(ctx context.Contex result, err = client.ListByHostGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "listByHostGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-07-01/compute/diskencryptionsets.go b/services/compute/mgmt/2019-07-01/compute/diskencryptionsets.go index db9f95f1497a..c453ce6f75c7 100644 --- a/services/compute/mgmt/2019-07-01/compute/diskencryptionsets.go +++ b/services/compute/mgmt/2019-07-01/compute/diskencryptionsets.go @@ -244,6 +244,7 @@ func (client DiskEncryptionSetsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client DiskEncryptionSetsClient) List(ctx context.Context) (result DiskEnc result.desl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "List", resp, "Failure responding to request") + return } if result.desl.hasNextLink() && result.desl.IsEmpty() { err = result.NextWithContext(ctx) @@ -379,6 +381,7 @@ func (client DiskEncryptionSetsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -430,6 +433,7 @@ func (client DiskEncryptionSetsClient) ListByResourceGroup(ctx context.Context, result.desl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.desl.hasNextLink() && result.desl.IsEmpty() { err = result.NextWithContext(ctx) @@ -493,6 +497,7 @@ func (client DiskEncryptionSetsClient) listByResourceGroupNextResults(ctx contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-07-01/compute/disks.go b/services/compute/mgmt/2019-07-01/compute/disks.go index ac4fc819d0da..ee542bfcbf00 100644 --- a/services/compute/mgmt/2019-07-01/compute/disks.go +++ b/services/compute/mgmt/2019-07-01/compute/disks.go @@ -245,6 +245,7 @@ func (client DisksClient) Get(ctx context.Context, resourceGroupName string, dis result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "Get", resp, "Failure responding to request") + return } return @@ -404,6 +405,7 @@ func (client DisksClient) List(ctx context.Context) (result DiskListPage, err er result.dl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "List", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +468,7 @@ func (client DisksClient) listNextResults(ctx context.Context, lastResults DiskL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -517,6 +520,7 @@ func (client DisksClient) ListByResourceGroup(ctx context.Context, resourceGroup result.dl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -580,6 +584,7 @@ func (client DisksClient) listByResourceGroupNextResults(ctx context.Context, la result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-07-01/compute/galleries.go b/services/compute/mgmt/2019-07-01/compute/galleries.go index 840b7deab65b..5d269a235e08 100644 --- a/services/compute/mgmt/2019-07-01/compute/galleries.go +++ b/services/compute/mgmt/2019-07-01/compute/galleries.go @@ -225,6 +225,7 @@ func (client GalleriesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client GalleriesClient) List(ctx context.Context) (result GalleryListPage, result.gl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "List", resp, "Failure responding to request") + return } if result.gl.hasNextLink() && result.gl.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client GalleriesClient) listNextResults(ctx context.Context, lastResults G result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client GalleriesClient) ListByResourceGroup(ctx context.Context, resourceG result.gl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.gl.hasNextLink() && result.gl.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client GalleriesClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-07-01/compute/galleryapplications.go b/services/compute/mgmt/2019-07-01/compute/galleryapplications.go index 64b59c26d7da..0f125d57c734 100644 --- a/services/compute/mgmt/2019-07-01/compute/galleryapplications.go +++ b/services/compute/mgmt/2019-07-01/compute/galleryapplications.go @@ -235,6 +235,7 @@ func (client GalleryApplicationsClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -313,6 +314,7 @@ func (client GalleryApplicationsClient) ListByGallery(ctx context.Context, resou result.gal, err = client.ListByGalleryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationsClient", "ListByGallery", resp, "Failure responding to request") + return } if result.gal.hasNextLink() && result.gal.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +379,7 @@ func (client GalleryApplicationsClient) listByGalleryNextResults(ctx context.Con result, err = client.ListByGalleryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationsClient", "listByGalleryNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-07-01/compute/galleryapplicationversions.go b/services/compute/mgmt/2019-07-01/compute/galleryapplicationversions.go index a49663d96150..a816ddfdfdca 100644 --- a/services/compute/mgmt/2019-07-01/compute/galleryapplicationversions.go +++ b/services/compute/mgmt/2019-07-01/compute/galleryapplicationversions.go @@ -256,6 +256,7 @@ func (client GalleryApplicationVersionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationVersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -339,6 +340,7 @@ func (client GalleryApplicationVersionsClient) ListByGalleryApplication(ctx cont result.gavl, err = client.ListByGalleryApplicationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationVersionsClient", "ListByGalleryApplication", resp, "Failure responding to request") + return } if result.gavl.hasNextLink() && result.gavl.IsEmpty() { err = result.NextWithContext(ctx) @@ -404,6 +406,7 @@ func (client GalleryApplicationVersionsClient) listByGalleryApplicationNextResul result, err = client.ListByGalleryApplicationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationVersionsClient", "listByGalleryApplicationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-07-01/compute/galleryimages.go b/services/compute/mgmt/2019-07-01/compute/galleryimages.go index f9f931d89e93..751f839f5045 100644 --- a/services/compute/mgmt/2019-07-01/compute/galleryimages.go +++ b/services/compute/mgmt/2019-07-01/compute/galleryimages.go @@ -244,6 +244,7 @@ func (client GalleryImagesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client GalleryImagesClient) ListByGallery(ctx context.Context, resourceGro result.gil, err = client.ListByGalleryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "ListByGallery", resp, "Failure responding to request") + return } if result.gil.hasNextLink() && result.gil.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client GalleryImagesClient) listByGalleryNextResults(ctx context.Context, result, err = client.ListByGalleryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "listByGalleryNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-07-01/compute/galleryimageversions.go b/services/compute/mgmt/2019-07-01/compute/galleryimageversions.go index 28e98a3c329f..6e657d85e426 100644 --- a/services/compute/mgmt/2019-07-01/compute/galleryimageversions.go +++ b/services/compute/mgmt/2019-07-01/compute/galleryimageversions.go @@ -246,6 +246,7 @@ func (client GalleryImageVersionsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -329,6 +330,7 @@ func (client GalleryImageVersionsClient) ListByGalleryImage(ctx context.Context, result.givl, err = client.ListByGalleryImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "ListByGalleryImage", resp, "Failure responding to request") + return } if result.givl.hasNextLink() && result.givl.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +396,7 @@ func (client GalleryImageVersionsClient) listByGalleryImageNextResults(ctx conte result, err = client.ListByGalleryImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "listByGalleryImageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-07-01/compute/images.go b/services/compute/mgmt/2019-07-01/compute/images.go index cb4199de8ddb..aeea89866a28 100644 --- a/services/compute/mgmt/2019-07-01/compute/images.go +++ b/services/compute/mgmt/2019-07-01/compute/images.go @@ -225,6 +225,7 @@ func (client ImagesClient) Get(ctx context.Context, resourceGroupName string, im result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ImagesClient) List(ctx context.Context) (result ImageListResultPage result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ImagesClient) listNextResults(ctx context.Context, lastResults Imag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client ImagesClient) ListByResourceGroup(ctx context.Context, resourceGrou result.ilr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client ImagesClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-07-01/compute/operations.go b/services/compute/mgmt/2019-07-01/compute/operations.go index 27ed7fb64407..7e272af4bafc 100644 --- a/services/compute/mgmt/2019-07-01/compute/operations.go +++ b/services/compute/mgmt/2019-07-01/compute/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-07-01/compute/proximityplacementgroups.go b/services/compute/mgmt/2019-07-01/compute/proximityplacementgroups.go index da6db1bfe0f6..5d18ac9a8779 100644 --- a/services/compute/mgmt/2019-07-01/compute/proximityplacementgroups.go +++ b/services/compute/mgmt/2019-07-01/compute/proximityplacementgroups.go @@ -74,6 +74,7 @@ func (client ProximityPlacementGroupsClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ProximityPlacementGroupsClient) Delete(ctx context.Context, resourc result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -227,6 +229,7 @@ func (client ProximityPlacementGroupsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +308,7 @@ func (client ProximityPlacementGroupsClient) ListByResourceGroup(ctx context.Con result.ppglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ppglr.hasNextLink() && result.ppglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +372,7 @@ func (client ProximityPlacementGroupsClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +422,7 @@ func (client ProximityPlacementGroupsClient) ListBySubscription(ctx context.Cont result.ppglr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ppglr.hasNextLink() && result.ppglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +485,7 @@ func (client ProximityPlacementGroupsClient) listBySubscriptionNextResults(ctx c result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +538,7 @@ func (client ProximityPlacementGroupsClient) Update(ctx context.Context, resourc result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-07-01/compute/resourceskus.go b/services/compute/mgmt/2019-07-01/compute/resourceskus.go index d389561d3c73..ec1fc3fd7063 100644 --- a/services/compute/mgmt/2019-07-01/compute/resourceskus.go +++ b/services/compute/mgmt/2019-07-01/compute/resourceskus.go @@ -72,6 +72,7 @@ func (client ResourceSkusClient) List(ctx context.Context, filter string) (resul result.rsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ResourceSkusClient", "List", resp, "Failure responding to request") + return } if result.rsr.hasNextLink() && result.rsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -137,6 +138,7 @@ func (client ResourceSkusClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ResourceSkusClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-07-01/compute/snapshots.go b/services/compute/mgmt/2019-07-01/compute/snapshots.go index 4eeca3b9d103..e7ce1731b270 100644 --- a/services/compute/mgmt/2019-07-01/compute/snapshots.go +++ b/services/compute/mgmt/2019-07-01/compute/snapshots.go @@ -242,6 +242,7 @@ func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "Get", resp, "Failure responding to request") + return } return @@ -400,6 +401,7 @@ func (client SnapshotsClient) List(ctx context.Context) (result SnapshotListPage result.sl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "List", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -462,6 +464,7 @@ func (client SnapshotsClient) listNextResults(ctx context.Context, lastResults S result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -513,6 +516,7 @@ func (client SnapshotsClient) ListByResourceGroup(ctx context.Context, resourceG result.sl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -576,6 +580,7 @@ func (client SnapshotsClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-07-01/compute/usage.go b/services/compute/mgmt/2019-07-01/compute/usage.go index 3f16205dbcae..acf69aeed728 100644 --- a/services/compute/mgmt/2019-07-01/compute/usage.go +++ b/services/compute/mgmt/2019-07-01/compute/usage.go @@ -80,6 +80,7 @@ func (client UsageClient) List(ctx context.Context, location string) (result Lis result.lur, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.UsageClient", "List", resp, "Failure responding to request") + return } if result.lur.hasNextLink() && result.lur.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client UsageClient) listNextResults(ctx context.Context, lastResults ListU result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.UsageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-07-01/compute/virtualmachineextensionimages.go b/services/compute/mgmt/2019-07-01/compute/virtualmachineextensionimages.go index ccc4fcd6a3d0..98d440bc86de 100644 --- a/services/compute/mgmt/2019-07-01/compute/virtualmachineextensionimages.go +++ b/services/compute/mgmt/2019-07-01/compute/virtualmachineextensionimages.go @@ -72,6 +72,7 @@ func (client VirtualMachineExtensionImagesClient) Get(ctx context.Context, locat result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client VirtualMachineExtensionImagesClient) ListTypes(ctx context.Context, result, err = client.ListTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListTypes", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client VirtualMachineExtensionImagesClient) ListVersions(ctx context.Conte result, err = client.ListVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListVersions", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-07-01/compute/virtualmachineextensions.go b/services/compute/mgmt/2019-07-01/compute/virtualmachineextensions.go index e321691bd098..30e35bc8018c 100644 --- a/services/compute/mgmt/2019-07-01/compute/virtualmachineextensions.go +++ b/services/compute/mgmt/2019-07-01/compute/virtualmachineextensions.go @@ -231,6 +231,7 @@ func (client VirtualMachineExtensionsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client VirtualMachineExtensionsClient) List(ctx context.Context, resourceG result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-07-01/compute/virtualmachineimages.go b/services/compute/mgmt/2019-07-01/compute/virtualmachineimages.go index c924945fcd98..ffaece0107b4 100644 --- a/services/compute/mgmt/2019-07-01/compute/virtualmachineimages.go +++ b/services/compute/mgmt/2019-07-01/compute/virtualmachineimages.go @@ -76,6 +76,7 @@ func (client VirtualMachineImagesClient) Get(ctx context.Context, location strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client VirtualMachineImagesClient) List(ctx context.Context, location stri result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "List", resp, "Failure responding to request") + return } return @@ -243,6 +245,7 @@ func (client VirtualMachineImagesClient) ListOffers(ctx context.Context, locatio result, err = client.ListOffersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListOffers", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client VirtualMachineImagesClient) ListPublishers(ctx context.Context, loc result, err = client.ListPublishersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListPublishers", resp, "Failure responding to request") + return } return @@ -392,6 +396,7 @@ func (client VirtualMachineImagesClient) ListSkus(ctx context.Context, location result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListSkus", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-07-01/compute/virtualmachineruncommands.go b/services/compute/mgmt/2019-07-01/compute/virtualmachineruncommands.go index ea02563c6761..91440449c62f 100644 --- a/services/compute/mgmt/2019-07-01/compute/virtualmachineruncommands.go +++ b/services/compute/mgmt/2019-07-01/compute/virtualmachineruncommands.go @@ -80,6 +80,7 @@ func (client VirtualMachineRunCommandsClient) Get(ctx context.Context, location result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "Get", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client VirtualMachineRunCommandsClient) List(ctx context.Context, location result.rclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "List", resp, "Failure responding to request") + return } if result.rclr.hasNextLink() && result.rclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -224,6 +226,7 @@ func (client VirtualMachineRunCommandsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-07-01/compute/virtualmachines.go b/services/compute/mgmt/2019-07-01/compute/virtualmachines.go index 6535b0d31881..286d4fc48c96 100644 --- a/services/compute/mgmt/2019-07-01/compute/virtualmachines.go +++ b/services/compute/mgmt/2019-07-01/compute/virtualmachines.go @@ -493,6 +493,7 @@ func (client VirtualMachinesClient) Generalize(ctx context.Context, resourceGrou result, err = client.GeneralizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Generalize", resp, "Failure responding to request") + return } return @@ -568,6 +569,7 @@ func (client VirtualMachinesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Get", resp, "Failure responding to request") + return } return @@ -646,6 +648,7 @@ func (client VirtualMachinesClient) InstanceView(ctx context.Context, resourceGr result, err = client.InstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "InstanceView", resp, "Failure responding to request") + return } return @@ -722,6 +725,7 @@ func (client VirtualMachinesClient) List(ctx context.Context, resourceGroupName result.vmlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "List", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -785,6 +789,7 @@ func (client VirtualMachinesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -837,6 +842,7 @@ func (client VirtualMachinesClient) ListAll(ctx context.Context, statusOnly stri result.vmlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAll", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -902,6 +908,7 @@ func (client VirtualMachinesClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -953,6 +960,7 @@ func (client VirtualMachinesClient) ListAvailableSizes(ctx context.Context, reso result, err = client.ListAvailableSizesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAvailableSizes", resp, "Failure responding to request") + return } return @@ -1034,6 +1042,7 @@ func (client VirtualMachinesClient) ListByLocation(ctx context.Context, location result.vmlr, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListByLocation", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1097,6 +1106,7 @@ func (client VirtualMachinesClient) listByLocationNextResults(ctx context.Contex result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listByLocationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetextensions.go b/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetextensions.go index d1b9752833e1..4c4c003b3e13 100644 --- a/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetextensions.go +++ b/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetextensions.go @@ -232,6 +232,7 @@ func (client VirtualMachineScaleSetExtensionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client VirtualMachineScaleSetExtensionsClient) List(ctx context.Context, r result.vmsselr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "List", resp, "Failure responding to request") + return } if result.vmsselr.hasNextLink() && result.vmsselr.IsEmpty() { err = result.NextWithContext(ctx) @@ -376,6 +378,7 @@ func (client VirtualMachineScaleSetExtensionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetrollingupgrades.go b/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetrollingupgrades.go index f94b61212d4e..aed9c1f6dad1 100644 --- a/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetrollingupgrades.go +++ b/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetrollingupgrades.go @@ -148,6 +148,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) GetLatest(ctx context. result, err = client.GetLatestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetRollingUpgradesClient", "GetLatest", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesets.go b/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesets.go index d0c1b3b38cae..caa36e9cbc3f 100644 --- a/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesets.go +++ b/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesets.go @@ -76,6 +76,7 @@ func (client VirtualMachineScaleSetsClient) ConvertToSinglePlacementGroup(ctx co result, err = client.ConvertToSinglePlacementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ConvertToSinglePlacementGroup", resp, "Failure responding to request") + return } return @@ -493,6 +494,7 @@ func (client VirtualMachineScaleSetsClient) ForceRecoveryServiceFabricPlatformUp result, err = client.ForceRecoveryServiceFabricPlatformUpdateDomainWalkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ForceRecoveryServiceFabricPlatformUpdateDomainWalk", resp, "Failure responding to request") + return } return @@ -569,6 +571,7 @@ func (client VirtualMachineScaleSetsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -644,6 +647,7 @@ func (client VirtualMachineScaleSetsClient) GetInstanceView(ctx context.Context, result, err = client.GetInstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "GetInstanceView", resp, "Failure responding to request") + return } return @@ -720,6 +724,7 @@ func (client VirtualMachineScaleSetsClient) GetOSUpgradeHistory(ctx context.Cont result.vmsslouh, err = client.GetOSUpgradeHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "GetOSUpgradeHistory", resp, "Failure responding to request") + return } if result.vmsslouh.hasNextLink() && result.vmsslouh.IsEmpty() { err = result.NextWithContext(ctx) @@ -784,6 +789,7 @@ func (client VirtualMachineScaleSetsClient) getOSUpgradeHistoryNextResults(ctx c result, err = client.GetOSUpgradeHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "getOSUpgradeHistoryNextResults", resp, "Failure responding to next results request") + return } return } @@ -835,6 +841,7 @@ func (client VirtualMachineScaleSetsClient) List(ctx context.Context, resourceGr result.vmsslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "List", resp, "Failure responding to request") + return } if result.vmsslr.hasNextLink() && result.vmsslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -898,6 +905,7 @@ func (client VirtualMachineScaleSetsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -949,6 +957,7 @@ func (client VirtualMachineScaleSetsClient) ListAll(ctx context.Context) (result result.vmsslwlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListAll", resp, "Failure responding to request") + return } if result.vmsslwlr.hasNextLink() && result.vmsslwlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1011,6 +1020,7 @@ func (client VirtualMachineScaleSetsClient) listAllNextResults(ctx context.Conte result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -1064,6 +1074,7 @@ func (client VirtualMachineScaleSetsClient) ListSkus(ctx context.Context, resour result.vmsslsr, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListSkus", resp, "Failure responding to request") + return } if result.vmsslsr.hasNextLink() && result.vmsslsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1128,6 +1139,7 @@ func (client VirtualMachineScaleSetsClient) listSkusNextResults(ctx context.Cont result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetvmextensions.go b/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetvmextensions.go index 7b50a4704b19..42acd08eeac3 100644 --- a/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetvmextensions.go +++ b/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetvmextensions.go @@ -237,6 +237,7 @@ func (client VirtualMachineScaleSetVMExtensionsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +320,7 @@ func (client VirtualMachineScaleSetVMExtensionsClient) List(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetvms.go b/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetvms.go index fc88ec98c877..294e17a16992 100644 --- a/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetvms.go +++ b/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetvms.go @@ -230,6 +230,7 @@ func (client VirtualMachineScaleSetVMsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client VirtualMachineScaleSetVMsClient) GetInstanceView(ctx context.Contex result, err = client.GetInstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "GetInstanceView", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualMachineScaleSetVMsClient) List(ctx context.Context, resource result.vmssvlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "List", resp, "Failure responding to request") + return } if result.vmssvlr.hasNextLink() && result.vmssvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -464,6 +467,7 @@ func (client VirtualMachineScaleSetVMsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-07-01/compute/virtualmachinesizes.go b/services/compute/mgmt/2019-07-01/compute/virtualmachinesizes.go index 98abd86abd40..a7925e7d070e 100644 --- a/services/compute/mgmt/2019-07-01/compute/virtualmachinesizes.go +++ b/services/compute/mgmt/2019-07-01/compute/virtualmachinesizes.go @@ -80,6 +80,7 @@ func (client VirtualMachineSizesClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineSizesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-12-01/compute/availabilitysets.go b/services/compute/mgmt/2019-12-01/compute/availabilitysets.go index def48314528d..1ba5909ca998 100644 --- a/services/compute/mgmt/2019-12-01/compute/availabilitysets.go +++ b/services/compute/mgmt/2019-12-01/compute/availabilitysets.go @@ -74,6 +74,7 @@ func (client AvailabilitySetsClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client AvailabilitySetsClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -225,6 +227,7 @@ func (client AvailabilitySetsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client AvailabilitySetsClient) List(ctx context.Context, resourceGroupName result.aslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "List", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +367,7 @@ func (client AvailabilitySetsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +420,7 @@ func (client AvailabilitySetsClient) ListAvailableSizes(ctx context.Context, res result, err = client.ListAvailableSizesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListAvailableSizes", resp, "Failure responding to request") + return } return @@ -490,6 +496,7 @@ func (client AvailabilitySetsClient) ListBySubscription(ctx context.Context, exp result.aslr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -555,6 +562,7 @@ func (client AvailabilitySetsClient) listBySubscriptionNextResults(ctx context.C result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -607,6 +615,7 @@ func (client AvailabilitySetsClient) Update(ctx context.Context, resourceGroupNa result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-12-01/compute/containerservices.go b/services/compute/mgmt/2019-12-01/compute/containerservices.go index 92208281f44e..f369af4938df 100644 --- a/services/compute/mgmt/2019-12-01/compute/containerservices.go +++ b/services/compute/mgmt/2019-12-01/compute/containerservices.go @@ -263,6 +263,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -337,6 +338,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result Containe result.cslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.cslr.hasNextLink() && result.cslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -399,6 +401,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -452,6 +455,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.cslr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cslr.hasNextLink() && result.cslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -515,6 +519,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-12-01/compute/dedicatedhostgroups.go b/services/compute/mgmt/2019-12-01/compute/dedicatedhostgroups.go index a4dbcd355a67..c584b0109947 100644 --- a/services/compute/mgmt/2019-12-01/compute/dedicatedhostgroups.go +++ b/services/compute/mgmt/2019-12-01/compute/dedicatedhostgroups.go @@ -87,6 +87,7 @@ func (client DedicatedHostGroupsClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client DedicatedHostGroupsClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client DedicatedHostGroupsClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +317,7 @@ func (client DedicatedHostGroupsClient) ListByResourceGroup(ctx context.Context, result.dhglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dhglr.hasNextLink() && result.dhglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +381,7 @@ func (client DedicatedHostGroupsClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -427,6 +432,7 @@ func (client DedicatedHostGroupsClient) ListBySubscription(ctx context.Context) result.dhglr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.dhglr.hasNextLink() && result.dhglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -489,6 +495,7 @@ func (client DedicatedHostGroupsClient) listBySubscriptionNextResults(ctx contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -541,6 +548,7 @@ func (client DedicatedHostGroupsClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-12-01/compute/dedicatedhosts.go b/services/compute/mgmt/2019-12-01/compute/dedicatedhosts.go index 104ac3cfe038..cb39827a55ed 100644 --- a/services/compute/mgmt/2019-12-01/compute/dedicatedhosts.go +++ b/services/compute/mgmt/2019-12-01/compute/dedicatedhosts.go @@ -243,6 +243,7 @@ func (client DedicatedHostsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "Get", resp, "Failure responding to request") + return } return @@ -324,6 +325,7 @@ func (client DedicatedHostsClient) ListByHostGroup(ctx context.Context, resource result.dhlr, err = client.ListByHostGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "ListByHostGroup", resp, "Failure responding to request") + return } if result.dhlr.hasNextLink() && result.dhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -388,6 +390,7 @@ func (client DedicatedHostsClient) listByHostGroupNextResults(ctx context.Contex result, err = client.ListByHostGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "listByHostGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-12-01/compute/diskencryptionsets.go b/services/compute/mgmt/2019-12-01/compute/diskencryptionsets.go index cd9fea1050f6..698cb1d486c9 100644 --- a/services/compute/mgmt/2019-12-01/compute/diskencryptionsets.go +++ b/services/compute/mgmt/2019-12-01/compute/diskencryptionsets.go @@ -244,6 +244,7 @@ func (client DiskEncryptionSetsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client DiskEncryptionSetsClient) List(ctx context.Context) (result DiskEnc result.desl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "List", resp, "Failure responding to request") + return } if result.desl.hasNextLink() && result.desl.IsEmpty() { err = result.NextWithContext(ctx) @@ -379,6 +381,7 @@ func (client DiskEncryptionSetsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -430,6 +433,7 @@ func (client DiskEncryptionSetsClient) ListByResourceGroup(ctx context.Context, result.desl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.desl.hasNextLink() && result.desl.IsEmpty() { err = result.NextWithContext(ctx) @@ -493,6 +497,7 @@ func (client DiskEncryptionSetsClient) listByResourceGroupNextResults(ctx contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-12-01/compute/disks.go b/services/compute/mgmt/2019-12-01/compute/disks.go index b214d7827767..de13833f9087 100644 --- a/services/compute/mgmt/2019-12-01/compute/disks.go +++ b/services/compute/mgmt/2019-12-01/compute/disks.go @@ -248,6 +248,7 @@ func (client DisksClient) Get(ctx context.Context, resourceGroupName string, dis result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "Get", resp, "Failure responding to request") + return } return @@ -407,6 +408,7 @@ func (client DisksClient) List(ctx context.Context) (result DiskListPage, err er result.dl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "List", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -469,6 +471,7 @@ func (client DisksClient) listNextResults(ctx context.Context, lastResults DiskL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -520,6 +523,7 @@ func (client DisksClient) ListByResourceGroup(ctx context.Context, resourceGroup result.dl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -583,6 +587,7 @@ func (client DisksClient) listByResourceGroupNextResults(ctx context.Context, la result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-12-01/compute/galleries.go b/services/compute/mgmt/2019-12-01/compute/galleries.go index 8ff8463708a2..560b4bf50c36 100644 --- a/services/compute/mgmt/2019-12-01/compute/galleries.go +++ b/services/compute/mgmt/2019-12-01/compute/galleries.go @@ -225,6 +225,7 @@ func (client GalleriesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client GalleriesClient) List(ctx context.Context) (result GalleryListPage, result.gl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "List", resp, "Failure responding to request") + return } if result.gl.hasNextLink() && result.gl.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client GalleriesClient) listNextResults(ctx context.Context, lastResults G result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client GalleriesClient) ListByResourceGroup(ctx context.Context, resourceG result.gl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.gl.hasNextLink() && result.gl.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client GalleriesClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-12-01/compute/galleryapplications.go b/services/compute/mgmt/2019-12-01/compute/galleryapplications.go index 92f75e58c6b5..71ed2d14cc5e 100644 --- a/services/compute/mgmt/2019-12-01/compute/galleryapplications.go +++ b/services/compute/mgmt/2019-12-01/compute/galleryapplications.go @@ -235,6 +235,7 @@ func (client GalleryApplicationsClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -313,6 +314,7 @@ func (client GalleryApplicationsClient) ListByGallery(ctx context.Context, resou result.gal, err = client.ListByGalleryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationsClient", "ListByGallery", resp, "Failure responding to request") + return } if result.gal.hasNextLink() && result.gal.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +379,7 @@ func (client GalleryApplicationsClient) listByGalleryNextResults(ctx context.Con result, err = client.ListByGalleryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationsClient", "listByGalleryNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-12-01/compute/galleryapplicationversions.go b/services/compute/mgmt/2019-12-01/compute/galleryapplicationversions.go index 34c359c696f9..79b808ac5f92 100644 --- a/services/compute/mgmt/2019-12-01/compute/galleryapplicationversions.go +++ b/services/compute/mgmt/2019-12-01/compute/galleryapplicationversions.go @@ -256,6 +256,7 @@ func (client GalleryApplicationVersionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationVersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -339,6 +340,7 @@ func (client GalleryApplicationVersionsClient) ListByGalleryApplication(ctx cont result.gavl, err = client.ListByGalleryApplicationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationVersionsClient", "ListByGalleryApplication", resp, "Failure responding to request") + return } if result.gavl.hasNextLink() && result.gavl.IsEmpty() { err = result.NextWithContext(ctx) @@ -404,6 +406,7 @@ func (client GalleryApplicationVersionsClient) listByGalleryApplicationNextResul result, err = client.ListByGalleryApplicationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationVersionsClient", "listByGalleryApplicationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-12-01/compute/galleryimages.go b/services/compute/mgmt/2019-12-01/compute/galleryimages.go index cee5e9bbee8c..f3045dfc00dd 100644 --- a/services/compute/mgmt/2019-12-01/compute/galleryimages.go +++ b/services/compute/mgmt/2019-12-01/compute/galleryimages.go @@ -244,6 +244,7 @@ func (client GalleryImagesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client GalleryImagesClient) ListByGallery(ctx context.Context, resourceGro result.gil, err = client.ListByGalleryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "ListByGallery", resp, "Failure responding to request") + return } if result.gil.hasNextLink() && result.gil.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client GalleryImagesClient) listByGalleryNextResults(ctx context.Context, result, err = client.ListByGalleryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "listByGalleryNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-12-01/compute/galleryimageversions.go b/services/compute/mgmt/2019-12-01/compute/galleryimageversions.go index 7d105a7475d1..a39a137b8977 100644 --- a/services/compute/mgmt/2019-12-01/compute/galleryimageversions.go +++ b/services/compute/mgmt/2019-12-01/compute/galleryimageversions.go @@ -246,6 +246,7 @@ func (client GalleryImageVersionsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -329,6 +330,7 @@ func (client GalleryImageVersionsClient) ListByGalleryImage(ctx context.Context, result.givl, err = client.ListByGalleryImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "ListByGalleryImage", resp, "Failure responding to request") + return } if result.givl.hasNextLink() && result.givl.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +396,7 @@ func (client GalleryImageVersionsClient) listByGalleryImageNextResults(ctx conte result, err = client.ListByGalleryImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "listByGalleryImageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-12-01/compute/images.go b/services/compute/mgmt/2019-12-01/compute/images.go index 040c86ec2e72..609b15082dc5 100644 --- a/services/compute/mgmt/2019-12-01/compute/images.go +++ b/services/compute/mgmt/2019-12-01/compute/images.go @@ -225,6 +225,7 @@ func (client ImagesClient) Get(ctx context.Context, resourceGroupName string, im result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ImagesClient) List(ctx context.Context) (result ImageListResultPage result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ImagesClient) listNextResults(ctx context.Context, lastResults Imag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client ImagesClient) ListByResourceGroup(ctx context.Context, resourceGrou result.ilr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client ImagesClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-12-01/compute/operations.go b/services/compute/mgmt/2019-12-01/compute/operations.go index fb3c693230d5..2e864c3b94a6 100644 --- a/services/compute/mgmt/2019-12-01/compute/operations.go +++ b/services/compute/mgmt/2019-12-01/compute/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-12-01/compute/proximityplacementgroups.go b/services/compute/mgmt/2019-12-01/compute/proximityplacementgroups.go index 56e136a1257c..7d4b7772bf8f 100644 --- a/services/compute/mgmt/2019-12-01/compute/proximityplacementgroups.go +++ b/services/compute/mgmt/2019-12-01/compute/proximityplacementgroups.go @@ -74,6 +74,7 @@ func (client ProximityPlacementGroupsClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ProximityPlacementGroupsClient) Delete(ctx context.Context, resourc result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -227,6 +229,7 @@ func (client ProximityPlacementGroupsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +308,7 @@ func (client ProximityPlacementGroupsClient) ListByResourceGroup(ctx context.Con result.ppglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ppglr.hasNextLink() && result.ppglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +372,7 @@ func (client ProximityPlacementGroupsClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +422,7 @@ func (client ProximityPlacementGroupsClient) ListBySubscription(ctx context.Cont result.ppglr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ppglr.hasNextLink() && result.ppglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +485,7 @@ func (client ProximityPlacementGroupsClient) listBySubscriptionNextResults(ctx c result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +538,7 @@ func (client ProximityPlacementGroupsClient) Update(ctx context.Context, resourc result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-12-01/compute/resourceskus.go b/services/compute/mgmt/2019-12-01/compute/resourceskus.go index d389561d3c73..ec1fc3fd7063 100644 --- a/services/compute/mgmt/2019-12-01/compute/resourceskus.go +++ b/services/compute/mgmt/2019-12-01/compute/resourceskus.go @@ -72,6 +72,7 @@ func (client ResourceSkusClient) List(ctx context.Context, filter string) (resul result.rsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ResourceSkusClient", "List", resp, "Failure responding to request") + return } if result.rsr.hasNextLink() && result.rsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -137,6 +138,7 @@ func (client ResourceSkusClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ResourceSkusClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-12-01/compute/snapshots.go b/services/compute/mgmt/2019-12-01/compute/snapshots.go index c96a8a290965..c717acb122cd 100644 --- a/services/compute/mgmt/2019-12-01/compute/snapshots.go +++ b/services/compute/mgmt/2019-12-01/compute/snapshots.go @@ -244,6 +244,7 @@ func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "Get", resp, "Failure responding to request") + return } return @@ -402,6 +403,7 @@ func (client SnapshotsClient) List(ctx context.Context) (result SnapshotListPage result.sl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "List", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -464,6 +466,7 @@ func (client SnapshotsClient) listNextResults(ctx context.Context, lastResults S result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +518,7 @@ func (client SnapshotsClient) ListByResourceGroup(ctx context.Context, resourceG result.sl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -578,6 +582,7 @@ func (client SnapshotsClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-12-01/compute/sshpublickeys.go b/services/compute/mgmt/2019-12-01/compute/sshpublickeys.go index 284e5d6c838a..552a7a4bfe4e 100644 --- a/services/compute/mgmt/2019-12-01/compute/sshpublickeys.go +++ b/services/compute/mgmt/2019-12-01/compute/sshpublickeys.go @@ -73,6 +73,7 @@ func (client SSHPublicKeysClient) Create(ctx context.Context, resourceGroupName result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "Create", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client SSHPublicKeysClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "Delete", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client SSHPublicKeysClient) GenerateKeyPair(ctx context.Context, resourceG result, err = client.GenerateKeyPairResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "GenerateKeyPair", resp, "Failure responding to request") + return } return @@ -301,6 +304,7 @@ func (client SSHPublicKeysClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -377,6 +381,7 @@ func (client SSHPublicKeysClient) ListByResourceGroup(ctx context.Context, resou result.spkglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.spkglr.hasNextLink() && result.spkglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -440,6 +445,7 @@ func (client SSHPublicKeysClient) listByResourceGroupNextResults(ctx context.Con result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -490,6 +496,7 @@ func (client SSHPublicKeysClient) ListBySubscription(ctx context.Context) (resul result.spkglr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.spkglr.hasNextLink() && result.spkglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -552,6 +559,7 @@ func (client SSHPublicKeysClient) listBySubscriptionNextResults(ctx context.Cont result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -604,6 +612,7 @@ func (client SSHPublicKeysClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-12-01/compute/usage.go b/services/compute/mgmt/2019-12-01/compute/usage.go index d0b7b4b6c833..ed5e38100a05 100644 --- a/services/compute/mgmt/2019-12-01/compute/usage.go +++ b/services/compute/mgmt/2019-12-01/compute/usage.go @@ -80,6 +80,7 @@ func (client UsageClient) List(ctx context.Context, location string) (result Lis result.lur, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.UsageClient", "List", resp, "Failure responding to request") + return } if result.lur.hasNextLink() && result.lur.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client UsageClient) listNextResults(ctx context.Context, lastResults ListU result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.UsageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-12-01/compute/virtualmachineextensionimages.go b/services/compute/mgmt/2019-12-01/compute/virtualmachineextensionimages.go index 2eb81718a5d6..b652343a2004 100644 --- a/services/compute/mgmt/2019-12-01/compute/virtualmachineextensionimages.go +++ b/services/compute/mgmt/2019-12-01/compute/virtualmachineextensionimages.go @@ -72,6 +72,7 @@ func (client VirtualMachineExtensionImagesClient) Get(ctx context.Context, locat result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client VirtualMachineExtensionImagesClient) ListTypes(ctx context.Context, result, err = client.ListTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListTypes", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client VirtualMachineExtensionImagesClient) ListVersions(ctx context.Conte result, err = client.ListVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListVersions", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-12-01/compute/virtualmachineextensions.go b/services/compute/mgmt/2019-12-01/compute/virtualmachineextensions.go index 78fdde3cff13..c8ffa15decbd 100644 --- a/services/compute/mgmt/2019-12-01/compute/virtualmachineextensions.go +++ b/services/compute/mgmt/2019-12-01/compute/virtualmachineextensions.go @@ -231,6 +231,7 @@ func (client VirtualMachineExtensionsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client VirtualMachineExtensionsClient) List(ctx context.Context, resourceG result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-12-01/compute/virtualmachineimages.go b/services/compute/mgmt/2019-12-01/compute/virtualmachineimages.go index 2b894fda4cf9..1dc4b0137285 100644 --- a/services/compute/mgmt/2019-12-01/compute/virtualmachineimages.go +++ b/services/compute/mgmt/2019-12-01/compute/virtualmachineimages.go @@ -76,6 +76,7 @@ func (client VirtualMachineImagesClient) Get(ctx context.Context, location strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client VirtualMachineImagesClient) List(ctx context.Context, location stri result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "List", resp, "Failure responding to request") + return } return @@ -243,6 +245,7 @@ func (client VirtualMachineImagesClient) ListOffers(ctx context.Context, locatio result, err = client.ListOffersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListOffers", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client VirtualMachineImagesClient) ListPublishers(ctx context.Context, loc result, err = client.ListPublishersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListPublishers", resp, "Failure responding to request") + return } return @@ -392,6 +396,7 @@ func (client VirtualMachineImagesClient) ListSkus(ctx context.Context, location result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListSkus", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-12-01/compute/virtualmachineruncommands.go b/services/compute/mgmt/2019-12-01/compute/virtualmachineruncommands.go index e0754a0655bb..eb42b84c057f 100644 --- a/services/compute/mgmt/2019-12-01/compute/virtualmachineruncommands.go +++ b/services/compute/mgmt/2019-12-01/compute/virtualmachineruncommands.go @@ -80,6 +80,7 @@ func (client VirtualMachineRunCommandsClient) Get(ctx context.Context, location result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "Get", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client VirtualMachineRunCommandsClient) List(ctx context.Context, location result.rclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "List", resp, "Failure responding to request") + return } if result.rclr.hasNextLink() && result.rclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -224,6 +226,7 @@ func (client VirtualMachineRunCommandsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-12-01/compute/virtualmachines.go b/services/compute/mgmt/2019-12-01/compute/virtualmachines.go index e107f8b3f509..c721fbb105c5 100644 --- a/services/compute/mgmt/2019-12-01/compute/virtualmachines.go +++ b/services/compute/mgmt/2019-12-01/compute/virtualmachines.go @@ -493,6 +493,7 @@ func (client VirtualMachinesClient) Generalize(ctx context.Context, resourceGrou result, err = client.GeneralizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Generalize", resp, "Failure responding to request") + return } return @@ -568,6 +569,7 @@ func (client VirtualMachinesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Get", resp, "Failure responding to request") + return } return @@ -646,6 +648,7 @@ func (client VirtualMachinesClient) InstanceView(ctx context.Context, resourceGr result, err = client.InstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "InstanceView", resp, "Failure responding to request") + return } return @@ -722,6 +725,7 @@ func (client VirtualMachinesClient) List(ctx context.Context, resourceGroupName result.vmlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "List", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -785,6 +789,7 @@ func (client VirtualMachinesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -837,6 +842,7 @@ func (client VirtualMachinesClient) ListAll(ctx context.Context, statusOnly stri result.vmlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAll", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -902,6 +908,7 @@ func (client VirtualMachinesClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -953,6 +960,7 @@ func (client VirtualMachinesClient) ListAvailableSizes(ctx context.Context, reso result, err = client.ListAvailableSizesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAvailableSizes", resp, "Failure responding to request") + return } return @@ -1034,6 +1042,7 @@ func (client VirtualMachinesClient) ListByLocation(ctx context.Context, location result.vmlr, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListByLocation", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1097,6 +1106,7 @@ func (client VirtualMachinesClient) listByLocationNextResults(ctx context.Contex result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listByLocationNextResults", resp, "Failure responding to next results request") + return } return } @@ -1693,6 +1703,7 @@ func (client VirtualMachinesClient) SimulateEviction(ctx context.Context, resour result, err = client.SimulateEvictionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "SimulateEviction", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-12-01/compute/virtualmachinescalesetextensions.go b/services/compute/mgmt/2019-12-01/compute/virtualmachinescalesetextensions.go index 4ed8a6fd4e67..0b7f625a511a 100644 --- a/services/compute/mgmt/2019-12-01/compute/virtualmachinescalesetextensions.go +++ b/services/compute/mgmt/2019-12-01/compute/virtualmachinescalesetextensions.go @@ -232,6 +232,7 @@ func (client VirtualMachineScaleSetExtensionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client VirtualMachineScaleSetExtensionsClient) List(ctx context.Context, r result.vmsselr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "List", resp, "Failure responding to request") + return } if result.vmsselr.hasNextLink() && result.vmsselr.IsEmpty() { err = result.NextWithContext(ctx) @@ -376,6 +378,7 @@ func (client VirtualMachineScaleSetExtensionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-12-01/compute/virtualmachinescalesetrollingupgrades.go b/services/compute/mgmt/2019-12-01/compute/virtualmachinescalesetrollingupgrades.go index 66187cd5829c..6c220085a4f5 100644 --- a/services/compute/mgmt/2019-12-01/compute/virtualmachinescalesetrollingupgrades.go +++ b/services/compute/mgmt/2019-12-01/compute/virtualmachinescalesetrollingupgrades.go @@ -148,6 +148,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) GetLatest(ctx context. result, err = client.GetLatestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetRollingUpgradesClient", "GetLatest", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-12-01/compute/virtualmachinescalesets.go b/services/compute/mgmt/2019-12-01/compute/virtualmachinescalesets.go index 655b7e9b4402..6832b76ffd7f 100644 --- a/services/compute/mgmt/2019-12-01/compute/virtualmachinescalesets.go +++ b/services/compute/mgmt/2019-12-01/compute/virtualmachinescalesets.go @@ -76,6 +76,7 @@ func (client VirtualMachineScaleSetsClient) ConvertToSinglePlacementGroup(ctx co result, err = client.ConvertToSinglePlacementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ConvertToSinglePlacementGroup", resp, "Failure responding to request") + return } return @@ -493,6 +494,7 @@ func (client VirtualMachineScaleSetsClient) ForceRecoveryServiceFabricPlatformUp result, err = client.ForceRecoveryServiceFabricPlatformUpdateDomainWalkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ForceRecoveryServiceFabricPlatformUpdateDomainWalk", resp, "Failure responding to request") + return } return @@ -569,6 +571,7 @@ func (client VirtualMachineScaleSetsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -644,6 +647,7 @@ func (client VirtualMachineScaleSetsClient) GetInstanceView(ctx context.Context, result, err = client.GetInstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "GetInstanceView", resp, "Failure responding to request") + return } return @@ -720,6 +724,7 @@ func (client VirtualMachineScaleSetsClient) GetOSUpgradeHistory(ctx context.Cont result.vmsslouh, err = client.GetOSUpgradeHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "GetOSUpgradeHistory", resp, "Failure responding to request") + return } if result.vmsslouh.hasNextLink() && result.vmsslouh.IsEmpty() { err = result.NextWithContext(ctx) @@ -784,6 +789,7 @@ func (client VirtualMachineScaleSetsClient) getOSUpgradeHistoryNextResults(ctx c result, err = client.GetOSUpgradeHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "getOSUpgradeHistoryNextResults", resp, "Failure responding to next results request") + return } return } @@ -835,6 +841,7 @@ func (client VirtualMachineScaleSetsClient) List(ctx context.Context, resourceGr result.vmsslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "List", resp, "Failure responding to request") + return } if result.vmsslr.hasNextLink() && result.vmsslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -898,6 +905,7 @@ func (client VirtualMachineScaleSetsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -949,6 +957,7 @@ func (client VirtualMachineScaleSetsClient) ListAll(ctx context.Context) (result result.vmsslwlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListAll", resp, "Failure responding to request") + return } if result.vmsslwlr.hasNextLink() && result.vmsslwlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1011,6 +1020,7 @@ func (client VirtualMachineScaleSetsClient) listAllNextResults(ctx context.Conte result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -1064,6 +1074,7 @@ func (client VirtualMachineScaleSetsClient) ListSkus(ctx context.Context, resour result.vmsslsr, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListSkus", resp, "Failure responding to request") + return } if result.vmsslsr.hasNextLink() && result.vmsslsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1128,6 +1139,7 @@ func (client VirtualMachineScaleSetsClient) listSkusNextResults(ctx context.Cont result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2019-12-01/compute/virtualmachinescalesetvmextensions.go b/services/compute/mgmt/2019-12-01/compute/virtualmachinescalesetvmextensions.go index f877eb6cd0f2..62d5dd27412a 100644 --- a/services/compute/mgmt/2019-12-01/compute/virtualmachinescalesetvmextensions.go +++ b/services/compute/mgmt/2019-12-01/compute/virtualmachinescalesetvmextensions.go @@ -237,6 +237,7 @@ func (client VirtualMachineScaleSetVMExtensionsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +320,7 @@ func (client VirtualMachineScaleSetVMExtensionsClient) List(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-12-01/compute/virtualmachinescalesetvms.go b/services/compute/mgmt/2019-12-01/compute/virtualmachinescalesetvms.go index 8ffb0e27cf2f..65409523b8b7 100644 --- a/services/compute/mgmt/2019-12-01/compute/virtualmachinescalesetvms.go +++ b/services/compute/mgmt/2019-12-01/compute/virtualmachinescalesetvms.go @@ -230,6 +230,7 @@ func (client VirtualMachineScaleSetVMsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client VirtualMachineScaleSetVMsClient) GetInstanceView(ctx context.Contex result, err = client.GetInstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "GetInstanceView", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualMachineScaleSetVMsClient) List(ctx context.Context, resource result.vmssvlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "List", resp, "Failure responding to request") + return } if result.vmssvlr.hasNextLink() && result.vmssvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -464,6 +467,7 @@ func (client VirtualMachineScaleSetVMsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1077,6 +1081,7 @@ func (client VirtualMachineScaleSetVMsClient) SimulateEviction(ctx context.Conte result, err = client.SimulateEvictionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "SimulateEviction", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2019-12-01/compute/virtualmachinesizes.go b/services/compute/mgmt/2019-12-01/compute/virtualmachinesizes.go index 4ec90e055a98..c8a7a3cd2f39 100644 --- a/services/compute/mgmt/2019-12-01/compute/virtualmachinesizes.go +++ b/services/compute/mgmt/2019-12-01/compute/virtualmachinesizes.go @@ -80,6 +80,7 @@ func (client VirtualMachineSizesClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineSizesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2020-06-01/compute/availabilitysets.go b/services/compute/mgmt/2020-06-01/compute/availabilitysets.go index 77cd159586c7..29ea802802af 100644 --- a/services/compute/mgmt/2020-06-01/compute/availabilitysets.go +++ b/services/compute/mgmt/2020-06-01/compute/availabilitysets.go @@ -74,6 +74,7 @@ func (client AvailabilitySetsClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client AvailabilitySetsClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -225,6 +227,7 @@ func (client AvailabilitySetsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client AvailabilitySetsClient) List(ctx context.Context, resourceGroupName result.aslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "List", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +367,7 @@ func (client AvailabilitySetsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +420,7 @@ func (client AvailabilitySetsClient) ListAvailableSizes(ctx context.Context, res result, err = client.ListAvailableSizesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListAvailableSizes", resp, "Failure responding to request") + return } return @@ -490,6 +496,7 @@ func (client AvailabilitySetsClient) ListBySubscription(ctx context.Context, exp result.aslr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -555,6 +562,7 @@ func (client AvailabilitySetsClient) listBySubscriptionNextResults(ctx context.C result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -607,6 +615,7 @@ func (client AvailabilitySetsClient) Update(ctx context.Context, resourceGroupNa result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2020-06-01/compute/containerservices.go b/services/compute/mgmt/2020-06-01/compute/containerservices.go index 92208281f44e..f369af4938df 100644 --- a/services/compute/mgmt/2020-06-01/compute/containerservices.go +++ b/services/compute/mgmt/2020-06-01/compute/containerservices.go @@ -263,6 +263,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -337,6 +338,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result Containe result.cslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.cslr.hasNextLink() && result.cslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -399,6 +401,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -452,6 +455,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.cslr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cslr.hasNextLink() && result.cslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -515,6 +519,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-01/compute/dedicatedhostgroups.go b/services/compute/mgmt/2020-06-01/compute/dedicatedhostgroups.go index a0a205bcdee5..f03236b3a01c 100644 --- a/services/compute/mgmt/2020-06-01/compute/dedicatedhostgroups.go +++ b/services/compute/mgmt/2020-06-01/compute/dedicatedhostgroups.go @@ -85,6 +85,7 @@ func (client DedicatedHostGroupsClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client DedicatedHostGroupsClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client DedicatedHostGroupsClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client DedicatedHostGroupsClient) ListByResourceGroup(ctx context.Context, result.dhglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dhglr.hasNextLink() && result.dhglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +384,7 @@ func (client DedicatedHostGroupsClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -430,6 +435,7 @@ func (client DedicatedHostGroupsClient) ListBySubscription(ctx context.Context) result.dhglr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.dhglr.hasNextLink() && result.dhglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -492,6 +498,7 @@ func (client DedicatedHostGroupsClient) listBySubscriptionNextResults(ctx contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -544,6 +551,7 @@ func (client DedicatedHostGroupsClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2020-06-01/compute/dedicatedhosts.go b/services/compute/mgmt/2020-06-01/compute/dedicatedhosts.go index 6a2146a7b8bc..09ab490f0b88 100644 --- a/services/compute/mgmt/2020-06-01/compute/dedicatedhosts.go +++ b/services/compute/mgmt/2020-06-01/compute/dedicatedhosts.go @@ -241,6 +241,7 @@ func (client DedicatedHostsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client DedicatedHostsClient) ListByHostGroup(ctx context.Context, resource result.dhlr, err = client.ListByHostGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "ListByHostGroup", resp, "Failure responding to request") + return } if result.dhlr.hasNextLink() && result.dhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client DedicatedHostsClient) listByHostGroupNextResults(ctx context.Contex result, err = client.ListByHostGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "listByHostGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-01/compute/diskaccesses.go b/services/compute/mgmt/2020-06-01/compute/diskaccesses.go index 684832feec05..6b1c7ba1ca7e 100644 --- a/services/compute/mgmt/2020-06-01/compute/diskaccesses.go +++ b/services/compute/mgmt/2020-06-01/compute/diskaccesses.go @@ -230,6 +230,7 @@ func (client DiskAccessesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskAccessesClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client DiskAccessesClient) GetPrivateLinkResources(ctx context.Context, re result, err = client.GetPrivateLinkResourcesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskAccessesClient", "GetPrivateLinkResources", resp, "Failure responding to request") + return } return @@ -380,6 +382,7 @@ func (client DiskAccessesClient) List(ctx context.Context) (result DiskAccessLis result.dal, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskAccessesClient", "List", resp, "Failure responding to request") + return } if result.dal.hasNextLink() && result.dal.IsEmpty() { err = result.NextWithContext(ctx) @@ -442,6 +445,7 @@ func (client DiskAccessesClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskAccessesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -493,6 +497,7 @@ func (client DiskAccessesClient) ListByResourceGroup(ctx context.Context, resour result.dal, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskAccessesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dal.hasNextLink() && result.dal.IsEmpty() { err = result.NextWithContext(ctx) @@ -556,6 +561,7 @@ func (client DiskAccessesClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskAccessesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-01/compute/diskencryptionsets.go b/services/compute/mgmt/2020-06-01/compute/diskencryptionsets.go index 749945318956..f90332e1e960 100644 --- a/services/compute/mgmt/2020-06-01/compute/diskencryptionsets.go +++ b/services/compute/mgmt/2020-06-01/compute/diskencryptionsets.go @@ -244,6 +244,7 @@ func (client DiskEncryptionSetsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client DiskEncryptionSetsClient) List(ctx context.Context) (result DiskEnc result.desl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "List", resp, "Failure responding to request") + return } if result.desl.hasNextLink() && result.desl.IsEmpty() { err = result.NextWithContext(ctx) @@ -379,6 +381,7 @@ func (client DiskEncryptionSetsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -430,6 +433,7 @@ func (client DiskEncryptionSetsClient) ListByResourceGroup(ctx context.Context, result.desl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.desl.hasNextLink() && result.desl.IsEmpty() { err = result.NextWithContext(ctx) @@ -493,6 +497,7 @@ func (client DiskEncryptionSetsClient) listByResourceGroupNextResults(ctx contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-01/compute/disks.go b/services/compute/mgmt/2020-06-01/compute/disks.go index 384df8063b15..929bea90b369 100644 --- a/services/compute/mgmt/2020-06-01/compute/disks.go +++ b/services/compute/mgmt/2020-06-01/compute/disks.go @@ -248,6 +248,7 @@ func (client DisksClient) Get(ctx context.Context, resourceGroupName string, dis result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "Get", resp, "Failure responding to request") + return } return @@ -407,6 +408,7 @@ func (client DisksClient) List(ctx context.Context) (result DiskListPage, err er result.dl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "List", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -469,6 +471,7 @@ func (client DisksClient) listNextResults(ctx context.Context, lastResults DiskL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -520,6 +523,7 @@ func (client DisksClient) ListByResourceGroup(ctx context.Context, resourceGroup result.dl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -583,6 +587,7 @@ func (client DisksClient) listByResourceGroupNextResults(ctx context.Context, la result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-01/compute/galleries.go b/services/compute/mgmt/2020-06-01/compute/galleries.go index 8ff8463708a2..560b4bf50c36 100644 --- a/services/compute/mgmt/2020-06-01/compute/galleries.go +++ b/services/compute/mgmt/2020-06-01/compute/galleries.go @@ -225,6 +225,7 @@ func (client GalleriesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client GalleriesClient) List(ctx context.Context) (result GalleryListPage, result.gl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "List", resp, "Failure responding to request") + return } if result.gl.hasNextLink() && result.gl.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client GalleriesClient) listNextResults(ctx context.Context, lastResults G result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client GalleriesClient) ListByResourceGroup(ctx context.Context, resourceG result.gl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.gl.hasNextLink() && result.gl.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client GalleriesClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-01/compute/galleryapplications.go b/services/compute/mgmt/2020-06-01/compute/galleryapplications.go index 92f75e58c6b5..71ed2d14cc5e 100644 --- a/services/compute/mgmt/2020-06-01/compute/galleryapplications.go +++ b/services/compute/mgmt/2020-06-01/compute/galleryapplications.go @@ -235,6 +235,7 @@ func (client GalleryApplicationsClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -313,6 +314,7 @@ func (client GalleryApplicationsClient) ListByGallery(ctx context.Context, resou result.gal, err = client.ListByGalleryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationsClient", "ListByGallery", resp, "Failure responding to request") + return } if result.gal.hasNextLink() && result.gal.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +379,7 @@ func (client GalleryApplicationsClient) listByGalleryNextResults(ctx context.Con result, err = client.ListByGalleryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationsClient", "listByGalleryNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-01/compute/galleryapplicationversions.go b/services/compute/mgmt/2020-06-01/compute/galleryapplicationversions.go index 34c359c696f9..79b808ac5f92 100644 --- a/services/compute/mgmt/2020-06-01/compute/galleryapplicationversions.go +++ b/services/compute/mgmt/2020-06-01/compute/galleryapplicationversions.go @@ -256,6 +256,7 @@ func (client GalleryApplicationVersionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationVersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -339,6 +340,7 @@ func (client GalleryApplicationVersionsClient) ListByGalleryApplication(ctx cont result.gavl, err = client.ListByGalleryApplicationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationVersionsClient", "ListByGalleryApplication", resp, "Failure responding to request") + return } if result.gavl.hasNextLink() && result.gavl.IsEmpty() { err = result.NextWithContext(ctx) @@ -404,6 +406,7 @@ func (client GalleryApplicationVersionsClient) listByGalleryApplicationNextResul result, err = client.ListByGalleryApplicationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationVersionsClient", "listByGalleryApplicationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-01/compute/galleryimages.go b/services/compute/mgmt/2020-06-01/compute/galleryimages.go index cee5e9bbee8c..f3045dfc00dd 100644 --- a/services/compute/mgmt/2020-06-01/compute/galleryimages.go +++ b/services/compute/mgmt/2020-06-01/compute/galleryimages.go @@ -244,6 +244,7 @@ func (client GalleryImagesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client GalleryImagesClient) ListByGallery(ctx context.Context, resourceGro result.gil, err = client.ListByGalleryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "ListByGallery", resp, "Failure responding to request") + return } if result.gil.hasNextLink() && result.gil.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client GalleryImagesClient) listByGalleryNextResults(ctx context.Context, result, err = client.ListByGalleryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "listByGalleryNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-01/compute/galleryimageversions.go b/services/compute/mgmt/2020-06-01/compute/galleryimageversions.go index 7d105a7475d1..a39a137b8977 100644 --- a/services/compute/mgmt/2020-06-01/compute/galleryimageversions.go +++ b/services/compute/mgmt/2020-06-01/compute/galleryimageversions.go @@ -246,6 +246,7 @@ func (client GalleryImageVersionsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -329,6 +330,7 @@ func (client GalleryImageVersionsClient) ListByGalleryImage(ctx context.Context, result.givl, err = client.ListByGalleryImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "ListByGalleryImage", resp, "Failure responding to request") + return } if result.givl.hasNextLink() && result.givl.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +396,7 @@ func (client GalleryImageVersionsClient) listByGalleryImageNextResults(ctx conte result, err = client.ListByGalleryImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "listByGalleryImageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-01/compute/images.go b/services/compute/mgmt/2020-06-01/compute/images.go index bb12c7493713..621788189ad5 100644 --- a/services/compute/mgmt/2020-06-01/compute/images.go +++ b/services/compute/mgmt/2020-06-01/compute/images.go @@ -225,6 +225,7 @@ func (client ImagesClient) Get(ctx context.Context, resourceGroupName string, im result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ImagesClient) List(ctx context.Context) (result ImageListResultPage result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ImagesClient) listNextResults(ctx context.Context, lastResults Imag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client ImagesClient) ListByResourceGroup(ctx context.Context, resourceGrou result.ilr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client ImagesClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-01/compute/operations.go b/services/compute/mgmt/2020-06-01/compute/operations.go index ff38444a66be..a34d64f80acc 100644 --- a/services/compute/mgmt/2020-06-01/compute/operations.go +++ b/services/compute/mgmt/2020-06-01/compute/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2020-06-01/compute/proximityplacementgroups.go b/services/compute/mgmt/2020-06-01/compute/proximityplacementgroups.go index 262ec4f7408a..9acff3149d22 100644 --- a/services/compute/mgmt/2020-06-01/compute/proximityplacementgroups.go +++ b/services/compute/mgmt/2020-06-01/compute/proximityplacementgroups.go @@ -74,6 +74,7 @@ func (client ProximityPlacementGroupsClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ProximityPlacementGroupsClient) Delete(ctx context.Context, resourc result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -227,6 +229,7 @@ func (client ProximityPlacementGroupsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +308,7 @@ func (client ProximityPlacementGroupsClient) ListByResourceGroup(ctx context.Con result.ppglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ppglr.hasNextLink() && result.ppglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +372,7 @@ func (client ProximityPlacementGroupsClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +422,7 @@ func (client ProximityPlacementGroupsClient) ListBySubscription(ctx context.Cont result.ppglr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ppglr.hasNextLink() && result.ppglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +485,7 @@ func (client ProximityPlacementGroupsClient) listBySubscriptionNextResults(ctx c result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +538,7 @@ func (client ProximityPlacementGroupsClient) Update(ctx context.Context, resourc result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2020-06-01/compute/resourceskus.go b/services/compute/mgmt/2020-06-01/compute/resourceskus.go index d389561d3c73..ec1fc3fd7063 100644 --- a/services/compute/mgmt/2020-06-01/compute/resourceskus.go +++ b/services/compute/mgmt/2020-06-01/compute/resourceskus.go @@ -72,6 +72,7 @@ func (client ResourceSkusClient) List(ctx context.Context, filter string) (resul result.rsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ResourceSkusClient", "List", resp, "Failure responding to request") + return } if result.rsr.hasNextLink() && result.rsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -137,6 +138,7 @@ func (client ResourceSkusClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ResourceSkusClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-01/compute/snapshots.go b/services/compute/mgmt/2020-06-01/compute/snapshots.go index a2babec40c9a..0c8b2096db20 100644 --- a/services/compute/mgmt/2020-06-01/compute/snapshots.go +++ b/services/compute/mgmt/2020-06-01/compute/snapshots.go @@ -244,6 +244,7 @@ func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "Get", resp, "Failure responding to request") + return } return @@ -402,6 +403,7 @@ func (client SnapshotsClient) List(ctx context.Context) (result SnapshotListPage result.sl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "List", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -464,6 +466,7 @@ func (client SnapshotsClient) listNextResults(ctx context.Context, lastResults S result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +518,7 @@ func (client SnapshotsClient) ListByResourceGroup(ctx context.Context, resourceG result.sl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -578,6 +582,7 @@ func (client SnapshotsClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-01/compute/sshpublickeys.go b/services/compute/mgmt/2020-06-01/compute/sshpublickeys.go index fc036e3d6f78..c96ea4a3d317 100644 --- a/services/compute/mgmt/2020-06-01/compute/sshpublickeys.go +++ b/services/compute/mgmt/2020-06-01/compute/sshpublickeys.go @@ -73,6 +73,7 @@ func (client SSHPublicKeysClient) Create(ctx context.Context, resourceGroupName result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "Create", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client SSHPublicKeysClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "Delete", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client SSHPublicKeysClient) GenerateKeyPair(ctx context.Context, resourceG result, err = client.GenerateKeyPairResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "GenerateKeyPair", resp, "Failure responding to request") + return } return @@ -301,6 +304,7 @@ func (client SSHPublicKeysClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -377,6 +381,7 @@ func (client SSHPublicKeysClient) ListByResourceGroup(ctx context.Context, resou result.spkglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.spkglr.hasNextLink() && result.spkglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -440,6 +445,7 @@ func (client SSHPublicKeysClient) listByResourceGroupNextResults(ctx context.Con result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -490,6 +496,7 @@ func (client SSHPublicKeysClient) ListBySubscription(ctx context.Context) (resul result.spkglr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.spkglr.hasNextLink() && result.spkglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -552,6 +559,7 @@ func (client SSHPublicKeysClient) listBySubscriptionNextResults(ctx context.Cont result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -604,6 +612,7 @@ func (client SSHPublicKeysClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2020-06-01/compute/usage.go b/services/compute/mgmt/2020-06-01/compute/usage.go index 4fc828838f50..709c331400f4 100644 --- a/services/compute/mgmt/2020-06-01/compute/usage.go +++ b/services/compute/mgmt/2020-06-01/compute/usage.go @@ -80,6 +80,7 @@ func (client UsageClient) List(ctx context.Context, location string) (result Lis result.lur, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.UsageClient", "List", resp, "Failure responding to request") + return } if result.lur.hasNextLink() && result.lur.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client UsageClient) listNextResults(ctx context.Context, lastResults ListU result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.UsageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-01/compute/virtualmachineextensionimages.go b/services/compute/mgmt/2020-06-01/compute/virtualmachineextensionimages.go index 620132d8f78f..2659d48cfcb5 100644 --- a/services/compute/mgmt/2020-06-01/compute/virtualmachineextensionimages.go +++ b/services/compute/mgmt/2020-06-01/compute/virtualmachineextensionimages.go @@ -72,6 +72,7 @@ func (client VirtualMachineExtensionImagesClient) Get(ctx context.Context, locat result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client VirtualMachineExtensionImagesClient) ListTypes(ctx context.Context, result, err = client.ListTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListTypes", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client VirtualMachineExtensionImagesClient) ListVersions(ctx context.Conte result, err = client.ListVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListVersions", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2020-06-01/compute/virtualmachineextensions.go b/services/compute/mgmt/2020-06-01/compute/virtualmachineextensions.go index 8f251ec91312..c1ad33862f50 100644 --- a/services/compute/mgmt/2020-06-01/compute/virtualmachineextensions.go +++ b/services/compute/mgmt/2020-06-01/compute/virtualmachineextensions.go @@ -231,6 +231,7 @@ func (client VirtualMachineExtensionsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client VirtualMachineExtensionsClient) List(ctx context.Context, resourceG result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2020-06-01/compute/virtualmachineimages.go b/services/compute/mgmt/2020-06-01/compute/virtualmachineimages.go index 912e5ec62821..f9a6f4aa45c0 100644 --- a/services/compute/mgmt/2020-06-01/compute/virtualmachineimages.go +++ b/services/compute/mgmt/2020-06-01/compute/virtualmachineimages.go @@ -76,6 +76,7 @@ func (client VirtualMachineImagesClient) Get(ctx context.Context, location strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client VirtualMachineImagesClient) List(ctx context.Context, location stri result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "List", resp, "Failure responding to request") + return } return @@ -243,6 +245,7 @@ func (client VirtualMachineImagesClient) ListOffers(ctx context.Context, locatio result, err = client.ListOffersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListOffers", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client VirtualMachineImagesClient) ListPublishers(ctx context.Context, loc result, err = client.ListPublishersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListPublishers", resp, "Failure responding to request") + return } return @@ -392,6 +396,7 @@ func (client VirtualMachineImagesClient) ListSkus(ctx context.Context, location result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListSkus", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2020-06-01/compute/virtualmachineruncommands.go b/services/compute/mgmt/2020-06-01/compute/virtualmachineruncommands.go index 84ccbe6cb5c8..4325de756408 100644 --- a/services/compute/mgmt/2020-06-01/compute/virtualmachineruncommands.go +++ b/services/compute/mgmt/2020-06-01/compute/virtualmachineruncommands.go @@ -236,6 +236,7 @@ func (client VirtualMachineRunCommandsClient) Get(ctx context.Context, location result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "Get", resp, "Failure responding to request") + return } return @@ -313,6 +314,7 @@ func (client VirtualMachineRunCommandsClient) GetByVirtualMachine(ctx context.Co result, err = client.GetByVirtualMachineResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "GetByVirtualMachine", resp, "Failure responding to request") + return } return @@ -398,6 +400,7 @@ func (client VirtualMachineRunCommandsClient) List(ctx context.Context, location result.rclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "List", resp, "Failure responding to request") + return } if result.rclr.hasNextLink() && result.rclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -461,6 +464,7 @@ func (client VirtualMachineRunCommandsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -514,6 +518,7 @@ func (client VirtualMachineRunCommandsClient) ListByVirtualMachine(ctx context.C result.vmrclr, err = client.ListByVirtualMachineResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "ListByVirtualMachine", resp, "Failure responding to request") + return } if result.vmrclr.hasNextLink() && result.vmrclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -581,6 +586,7 @@ func (client VirtualMachineRunCommandsClient) listByVirtualMachineNextResults(ct result, err = client.ListByVirtualMachineResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "listByVirtualMachineNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-01/compute/virtualmachines.go b/services/compute/mgmt/2020-06-01/compute/virtualmachines.go index 773e11514288..0a092ea77052 100644 --- a/services/compute/mgmt/2020-06-01/compute/virtualmachines.go +++ b/services/compute/mgmt/2020-06-01/compute/virtualmachines.go @@ -568,6 +568,7 @@ func (client VirtualMachinesClient) Generalize(ctx context.Context, resourceGrou result, err = client.GeneralizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Generalize", resp, "Failure responding to request") + return } return @@ -643,6 +644,7 @@ func (client VirtualMachinesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Get", resp, "Failure responding to request") + return } return @@ -721,6 +723,7 @@ func (client VirtualMachinesClient) InstanceView(ctx context.Context, resourceGr result, err = client.InstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "InstanceView", resp, "Failure responding to request") + return } return @@ -797,6 +800,7 @@ func (client VirtualMachinesClient) List(ctx context.Context, resourceGroupName result.vmlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "List", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -860,6 +864,7 @@ func (client VirtualMachinesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -912,6 +917,7 @@ func (client VirtualMachinesClient) ListAll(ctx context.Context, statusOnly stri result.vmlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAll", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -977,6 +983,7 @@ func (client VirtualMachinesClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -1028,6 +1035,7 @@ func (client VirtualMachinesClient) ListAvailableSizes(ctx context.Context, reso result, err = client.ListAvailableSizesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAvailableSizes", resp, "Failure responding to request") + return } return @@ -1109,6 +1117,7 @@ func (client VirtualMachinesClient) ListByLocation(ctx context.Context, location result.vmlr, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListByLocation", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1172,6 +1181,7 @@ func (client VirtualMachinesClient) listByLocationNextResults(ctx context.Contex result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listByLocationNextResults", resp, "Failure responding to next results request") + return } return } @@ -1685,6 +1695,7 @@ func (client VirtualMachinesClient) RetrieveBootDiagnosticsData(ctx context.Cont result, err = client.RetrieveBootDiagnosticsDataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "RetrieveBootDiagnosticsData", resp, "Failure responding to request") + return } return @@ -1847,6 +1858,7 @@ func (client VirtualMachinesClient) SimulateEviction(ctx context.Context, resour result, err = client.SimulateEvictionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "SimulateEviction", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesetextensions.go b/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesetextensions.go index cc88b0de7c89..27a5711315fa 100644 --- a/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesetextensions.go +++ b/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesetextensions.go @@ -232,6 +232,7 @@ func (client VirtualMachineScaleSetExtensionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client VirtualMachineScaleSetExtensionsClient) List(ctx context.Context, r result.vmsselr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "List", resp, "Failure responding to request") + return } if result.vmsselr.hasNextLink() && result.vmsselr.IsEmpty() { err = result.NextWithContext(ctx) @@ -376,6 +378,7 @@ func (client VirtualMachineScaleSetExtensionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesetrollingupgrades.go b/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesetrollingupgrades.go index 7ed5b3c261ec..4987245e0c9e 100644 --- a/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesetrollingupgrades.go +++ b/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesetrollingupgrades.go @@ -148,6 +148,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) GetLatest(ctx context. result, err = client.GetLatestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetRollingUpgradesClient", "GetLatest", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesets.go b/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesets.go index 7ed972955ead..27eaf3701d60 100644 --- a/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesets.go +++ b/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesets.go @@ -76,6 +76,7 @@ func (client VirtualMachineScaleSetsClient) ConvertToSinglePlacementGroup(ctx co result, err = client.ConvertToSinglePlacementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ConvertToSinglePlacementGroup", resp, "Failure responding to request") + return } return @@ -493,6 +494,7 @@ func (client VirtualMachineScaleSetsClient) ForceRecoveryServiceFabricPlatformUp result, err = client.ForceRecoveryServiceFabricPlatformUpdateDomainWalkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ForceRecoveryServiceFabricPlatformUpdateDomainWalk", resp, "Failure responding to request") + return } return @@ -569,6 +571,7 @@ func (client VirtualMachineScaleSetsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -644,6 +647,7 @@ func (client VirtualMachineScaleSetsClient) GetInstanceView(ctx context.Context, result, err = client.GetInstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "GetInstanceView", resp, "Failure responding to request") + return } return @@ -720,6 +724,7 @@ func (client VirtualMachineScaleSetsClient) GetOSUpgradeHistory(ctx context.Cont result.vmsslouh, err = client.GetOSUpgradeHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "GetOSUpgradeHistory", resp, "Failure responding to request") + return } if result.vmsslouh.hasNextLink() && result.vmsslouh.IsEmpty() { err = result.NextWithContext(ctx) @@ -784,6 +789,7 @@ func (client VirtualMachineScaleSetsClient) getOSUpgradeHistoryNextResults(ctx c result, err = client.GetOSUpgradeHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "getOSUpgradeHistoryNextResults", resp, "Failure responding to next results request") + return } return } @@ -835,6 +841,7 @@ func (client VirtualMachineScaleSetsClient) List(ctx context.Context, resourceGr result.vmsslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "List", resp, "Failure responding to request") + return } if result.vmsslr.hasNextLink() && result.vmsslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -898,6 +905,7 @@ func (client VirtualMachineScaleSetsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -949,6 +957,7 @@ func (client VirtualMachineScaleSetsClient) ListAll(ctx context.Context) (result result.vmsslwlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListAll", resp, "Failure responding to request") + return } if result.vmsslwlr.hasNextLink() && result.vmsslwlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1011,6 +1020,7 @@ func (client VirtualMachineScaleSetsClient) listAllNextResults(ctx context.Conte result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -1064,6 +1074,7 @@ func (client VirtualMachineScaleSetsClient) ListSkus(ctx context.Context, resour result.vmsslsr, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListSkus", resp, "Failure responding to request") + return } if result.vmsslsr.hasNextLink() && result.vmsslsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1128,6 +1139,7 @@ func (client VirtualMachineScaleSetsClient) listSkusNextResults(ctx context.Cont result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesetvmextensions.go b/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesetvmextensions.go index 6e22e236d11a..c07fe5f2914f 100644 --- a/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesetvmextensions.go +++ b/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesetvmextensions.go @@ -239,6 +239,7 @@ func (client VirtualMachineScaleSetVMExtensionsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client VirtualMachineScaleSetVMExtensionsClient) List(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesetvmruncommands.go b/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesetvmruncommands.go index 5d4ac113b773..0917b8a55dd8 100644 --- a/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesetvmruncommands.go +++ b/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesetvmruncommands.go @@ -237,6 +237,7 @@ func (client VirtualMachineScaleSetVMRunCommandsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMRunCommandsClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +321,7 @@ func (client VirtualMachineScaleSetVMRunCommandsClient) List(ctx context.Context result.vmrclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMRunCommandsClient", "List", resp, "Failure responding to request") + return } if result.vmrclr.hasNextLink() && result.vmrclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -388,6 +390,7 @@ func (client VirtualMachineScaleSetVMRunCommandsClient) listNextResults(ctx cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMRunCommandsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesetvms.go b/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesetvms.go index 8a39ff8f6638..c03573de35ef 100644 --- a/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesetvms.go +++ b/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesetvms.go @@ -230,6 +230,7 @@ func (client VirtualMachineScaleSetVMsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client VirtualMachineScaleSetVMsClient) GetInstanceView(ctx context.Contex result, err = client.GetInstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "GetInstanceView", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualMachineScaleSetVMsClient) List(ctx context.Context, resource result.vmssvlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "List", resp, "Failure responding to request") + return } if result.vmssvlr.hasNextLink() && result.vmssvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -464,6 +467,7 @@ func (client VirtualMachineScaleSetVMsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -993,6 +997,7 @@ func (client VirtualMachineScaleSetVMsClient) RetrieveBootDiagnosticsData(ctx co result, err = client.RetrieveBootDiagnosticsDataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "RetrieveBootDiagnosticsData", resp, "Failure responding to request") + return } return @@ -1159,6 +1164,7 @@ func (client VirtualMachineScaleSetVMsClient) SimulateEviction(ctx context.Conte result, err = client.SimulateEvictionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "SimulateEviction", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2020-06-01/compute/virtualmachinesizes.go b/services/compute/mgmt/2020-06-01/compute/virtualmachinesizes.go index a325400eeee8..1e5ac2c66382 100644 --- a/services/compute/mgmt/2020-06-01/compute/virtualmachinesizes.go +++ b/services/compute/mgmt/2020-06-01/compute/virtualmachinesizes.go @@ -80,6 +80,7 @@ func (client VirtualMachineSizesClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineSizesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2020-06-30/compute/availabilitysets.go b/services/compute/mgmt/2020-06-30/compute/availabilitysets.go index 77cd159586c7..29ea802802af 100644 --- a/services/compute/mgmt/2020-06-30/compute/availabilitysets.go +++ b/services/compute/mgmt/2020-06-30/compute/availabilitysets.go @@ -74,6 +74,7 @@ func (client AvailabilitySetsClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client AvailabilitySetsClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -225,6 +227,7 @@ func (client AvailabilitySetsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client AvailabilitySetsClient) List(ctx context.Context, resourceGroupName result.aslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "List", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +367,7 @@ func (client AvailabilitySetsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +420,7 @@ func (client AvailabilitySetsClient) ListAvailableSizes(ctx context.Context, res result, err = client.ListAvailableSizesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListAvailableSizes", resp, "Failure responding to request") + return } return @@ -490,6 +496,7 @@ func (client AvailabilitySetsClient) ListBySubscription(ctx context.Context, exp result.aslr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -555,6 +562,7 @@ func (client AvailabilitySetsClient) listBySubscriptionNextResults(ctx context.C result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -607,6 +615,7 @@ func (client AvailabilitySetsClient) Update(ctx context.Context, resourceGroupNa result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2020-06-30/compute/containerservices.go b/services/compute/mgmt/2020-06-30/compute/containerservices.go index 92208281f44e..f369af4938df 100644 --- a/services/compute/mgmt/2020-06-30/compute/containerservices.go +++ b/services/compute/mgmt/2020-06-30/compute/containerservices.go @@ -263,6 +263,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -337,6 +338,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result Containe result.cslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.cslr.hasNextLink() && result.cslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -399,6 +401,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -452,6 +455,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.cslr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cslr.hasNextLink() && result.cslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -515,6 +519,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-30/compute/dedicatedhostgroups.go b/services/compute/mgmt/2020-06-30/compute/dedicatedhostgroups.go index a0a205bcdee5..f03236b3a01c 100644 --- a/services/compute/mgmt/2020-06-30/compute/dedicatedhostgroups.go +++ b/services/compute/mgmt/2020-06-30/compute/dedicatedhostgroups.go @@ -85,6 +85,7 @@ func (client DedicatedHostGroupsClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client DedicatedHostGroupsClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client DedicatedHostGroupsClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client DedicatedHostGroupsClient) ListByResourceGroup(ctx context.Context, result.dhglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dhglr.hasNextLink() && result.dhglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +384,7 @@ func (client DedicatedHostGroupsClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -430,6 +435,7 @@ func (client DedicatedHostGroupsClient) ListBySubscription(ctx context.Context) result.dhglr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.dhglr.hasNextLink() && result.dhglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -492,6 +498,7 @@ func (client DedicatedHostGroupsClient) listBySubscriptionNextResults(ctx contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -544,6 +551,7 @@ func (client DedicatedHostGroupsClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2020-06-30/compute/dedicatedhosts.go b/services/compute/mgmt/2020-06-30/compute/dedicatedhosts.go index 6a2146a7b8bc..09ab490f0b88 100644 --- a/services/compute/mgmt/2020-06-30/compute/dedicatedhosts.go +++ b/services/compute/mgmt/2020-06-30/compute/dedicatedhosts.go @@ -241,6 +241,7 @@ func (client DedicatedHostsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client DedicatedHostsClient) ListByHostGroup(ctx context.Context, resource result.dhlr, err = client.ListByHostGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "ListByHostGroup", resp, "Failure responding to request") + return } if result.dhlr.hasNextLink() && result.dhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client DedicatedHostsClient) listByHostGroupNextResults(ctx context.Contex result, err = client.ListByHostGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "listByHostGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-30/compute/diskaccesses.go b/services/compute/mgmt/2020-06-30/compute/diskaccesses.go index 2687bc8be217..35cca76eb64c 100644 --- a/services/compute/mgmt/2020-06-30/compute/diskaccesses.go +++ b/services/compute/mgmt/2020-06-30/compute/diskaccesses.go @@ -230,6 +230,7 @@ func (client DiskAccessesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskAccessesClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client DiskAccessesClient) GetPrivateLinkResources(ctx context.Context, re result, err = client.GetPrivateLinkResourcesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskAccessesClient", "GetPrivateLinkResources", resp, "Failure responding to request") + return } return @@ -380,6 +382,7 @@ func (client DiskAccessesClient) List(ctx context.Context) (result DiskAccessLis result.dal, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskAccessesClient", "List", resp, "Failure responding to request") + return } if result.dal.hasNextLink() && result.dal.IsEmpty() { err = result.NextWithContext(ctx) @@ -442,6 +445,7 @@ func (client DiskAccessesClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskAccessesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -493,6 +497,7 @@ func (client DiskAccessesClient) ListByResourceGroup(ctx context.Context, resour result.dal, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskAccessesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dal.hasNextLink() && result.dal.IsEmpty() { err = result.NextWithContext(ctx) @@ -556,6 +561,7 @@ func (client DiskAccessesClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskAccessesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-30/compute/diskencryptionsets.go b/services/compute/mgmt/2020-06-30/compute/diskencryptionsets.go index a1b848b9e043..f447e931dda6 100644 --- a/services/compute/mgmt/2020-06-30/compute/diskencryptionsets.go +++ b/services/compute/mgmt/2020-06-30/compute/diskencryptionsets.go @@ -244,6 +244,7 @@ func (client DiskEncryptionSetsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client DiskEncryptionSetsClient) List(ctx context.Context) (result DiskEnc result.desl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "List", resp, "Failure responding to request") + return } if result.desl.hasNextLink() && result.desl.IsEmpty() { err = result.NextWithContext(ctx) @@ -379,6 +381,7 @@ func (client DiskEncryptionSetsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -433,6 +436,7 @@ func (client DiskEncryptionSetsClient) ListAssociatedResources(ctx context.Conte result.rul, err = client.ListAssociatedResourcesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "ListAssociatedResources", resp, "Failure responding to request") + return } if result.rul.hasNextLink() && result.rul.IsEmpty() { err = result.NextWithContext(ctx) @@ -497,6 +501,7 @@ func (client DiskEncryptionSetsClient) listAssociatedResourcesNextResults(ctx co result, err = client.ListAssociatedResourcesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "listAssociatedResourcesNextResults", resp, "Failure responding to next results request") + return } return } @@ -548,6 +553,7 @@ func (client DiskEncryptionSetsClient) ListByResourceGroup(ctx context.Context, result.desl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.desl.hasNextLink() && result.desl.IsEmpty() { err = result.NextWithContext(ctx) @@ -611,6 +617,7 @@ func (client DiskEncryptionSetsClient) listByResourceGroupNextResults(ctx contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-30/compute/disks.go b/services/compute/mgmt/2020-06-30/compute/disks.go index 7e7b65c9f4f3..f699cca424da 100644 --- a/services/compute/mgmt/2020-06-30/compute/disks.go +++ b/services/compute/mgmt/2020-06-30/compute/disks.go @@ -248,6 +248,7 @@ func (client DisksClient) Get(ctx context.Context, resourceGroupName string, dis result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "Get", resp, "Failure responding to request") + return } return @@ -407,6 +408,7 @@ func (client DisksClient) List(ctx context.Context) (result DiskListPage, err er result.dl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "List", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -469,6 +471,7 @@ func (client DisksClient) listNextResults(ctx context.Context, lastResults DiskL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -520,6 +523,7 @@ func (client DisksClient) ListByResourceGroup(ctx context.Context, resourceGroup result.dl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -583,6 +587,7 @@ func (client DisksClient) listByResourceGroupNextResults(ctx context.Context, la result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-30/compute/galleries.go b/services/compute/mgmt/2020-06-30/compute/galleries.go index 8ff8463708a2..560b4bf50c36 100644 --- a/services/compute/mgmt/2020-06-30/compute/galleries.go +++ b/services/compute/mgmt/2020-06-30/compute/galleries.go @@ -225,6 +225,7 @@ func (client GalleriesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client GalleriesClient) List(ctx context.Context) (result GalleryListPage, result.gl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "List", resp, "Failure responding to request") + return } if result.gl.hasNextLink() && result.gl.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client GalleriesClient) listNextResults(ctx context.Context, lastResults G result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client GalleriesClient) ListByResourceGroup(ctx context.Context, resourceG result.gl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.gl.hasNextLink() && result.gl.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client GalleriesClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-30/compute/galleryapplications.go b/services/compute/mgmt/2020-06-30/compute/galleryapplications.go index 92f75e58c6b5..71ed2d14cc5e 100644 --- a/services/compute/mgmt/2020-06-30/compute/galleryapplications.go +++ b/services/compute/mgmt/2020-06-30/compute/galleryapplications.go @@ -235,6 +235,7 @@ func (client GalleryApplicationsClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -313,6 +314,7 @@ func (client GalleryApplicationsClient) ListByGallery(ctx context.Context, resou result.gal, err = client.ListByGalleryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationsClient", "ListByGallery", resp, "Failure responding to request") + return } if result.gal.hasNextLink() && result.gal.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +379,7 @@ func (client GalleryApplicationsClient) listByGalleryNextResults(ctx context.Con result, err = client.ListByGalleryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationsClient", "listByGalleryNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-30/compute/galleryapplicationversions.go b/services/compute/mgmt/2020-06-30/compute/galleryapplicationversions.go index 34c359c696f9..79b808ac5f92 100644 --- a/services/compute/mgmt/2020-06-30/compute/galleryapplicationversions.go +++ b/services/compute/mgmt/2020-06-30/compute/galleryapplicationversions.go @@ -256,6 +256,7 @@ func (client GalleryApplicationVersionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationVersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -339,6 +340,7 @@ func (client GalleryApplicationVersionsClient) ListByGalleryApplication(ctx cont result.gavl, err = client.ListByGalleryApplicationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationVersionsClient", "ListByGalleryApplication", resp, "Failure responding to request") + return } if result.gavl.hasNextLink() && result.gavl.IsEmpty() { err = result.NextWithContext(ctx) @@ -404,6 +406,7 @@ func (client GalleryApplicationVersionsClient) listByGalleryApplicationNextResul result, err = client.ListByGalleryApplicationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryApplicationVersionsClient", "listByGalleryApplicationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-30/compute/galleryimages.go b/services/compute/mgmt/2020-06-30/compute/galleryimages.go index cee5e9bbee8c..f3045dfc00dd 100644 --- a/services/compute/mgmt/2020-06-30/compute/galleryimages.go +++ b/services/compute/mgmt/2020-06-30/compute/galleryimages.go @@ -244,6 +244,7 @@ func (client GalleryImagesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client GalleryImagesClient) ListByGallery(ctx context.Context, resourceGro result.gil, err = client.ListByGalleryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "ListByGallery", resp, "Failure responding to request") + return } if result.gil.hasNextLink() && result.gil.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client GalleryImagesClient) listByGalleryNextResults(ctx context.Context, result, err = client.ListByGalleryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "listByGalleryNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-30/compute/galleryimageversions.go b/services/compute/mgmt/2020-06-30/compute/galleryimageversions.go index 7d105a7475d1..a39a137b8977 100644 --- a/services/compute/mgmt/2020-06-30/compute/galleryimageversions.go +++ b/services/compute/mgmt/2020-06-30/compute/galleryimageversions.go @@ -246,6 +246,7 @@ func (client GalleryImageVersionsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -329,6 +330,7 @@ func (client GalleryImageVersionsClient) ListByGalleryImage(ctx context.Context, result.givl, err = client.ListByGalleryImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "ListByGalleryImage", resp, "Failure responding to request") + return } if result.givl.hasNextLink() && result.givl.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +396,7 @@ func (client GalleryImageVersionsClient) listByGalleryImageNextResults(ctx conte result, err = client.ListByGalleryImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "listByGalleryImageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-30/compute/images.go b/services/compute/mgmt/2020-06-30/compute/images.go index bb12c7493713..621788189ad5 100644 --- a/services/compute/mgmt/2020-06-30/compute/images.go +++ b/services/compute/mgmt/2020-06-30/compute/images.go @@ -225,6 +225,7 @@ func (client ImagesClient) Get(ctx context.Context, resourceGroupName string, im result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ImagesClient) List(ctx context.Context) (result ImageListResultPage result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ImagesClient) listNextResults(ctx context.Context, lastResults Imag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client ImagesClient) ListByResourceGroup(ctx context.Context, resourceGrou result.ilr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client ImagesClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-30/compute/operations.go b/services/compute/mgmt/2020-06-30/compute/operations.go index ff38444a66be..a34d64f80acc 100644 --- a/services/compute/mgmt/2020-06-30/compute/operations.go +++ b/services/compute/mgmt/2020-06-30/compute/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2020-06-30/compute/proximityplacementgroups.go b/services/compute/mgmt/2020-06-30/compute/proximityplacementgroups.go index 262ec4f7408a..9acff3149d22 100644 --- a/services/compute/mgmt/2020-06-30/compute/proximityplacementgroups.go +++ b/services/compute/mgmt/2020-06-30/compute/proximityplacementgroups.go @@ -74,6 +74,7 @@ func (client ProximityPlacementGroupsClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ProximityPlacementGroupsClient) Delete(ctx context.Context, resourc result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -227,6 +229,7 @@ func (client ProximityPlacementGroupsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +308,7 @@ func (client ProximityPlacementGroupsClient) ListByResourceGroup(ctx context.Con result.ppglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ppglr.hasNextLink() && result.ppglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +372,7 @@ func (client ProximityPlacementGroupsClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +422,7 @@ func (client ProximityPlacementGroupsClient) ListBySubscription(ctx context.Cont result.ppglr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ppglr.hasNextLink() && result.ppglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +485,7 @@ func (client ProximityPlacementGroupsClient) listBySubscriptionNextResults(ctx c result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +538,7 @@ func (client ProximityPlacementGroupsClient) Update(ctx context.Context, resourc result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2020-06-30/compute/resourceskus.go b/services/compute/mgmt/2020-06-30/compute/resourceskus.go index d389561d3c73..ec1fc3fd7063 100644 --- a/services/compute/mgmt/2020-06-30/compute/resourceskus.go +++ b/services/compute/mgmt/2020-06-30/compute/resourceskus.go @@ -72,6 +72,7 @@ func (client ResourceSkusClient) List(ctx context.Context, filter string) (resul result.rsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ResourceSkusClient", "List", resp, "Failure responding to request") + return } if result.rsr.hasNextLink() && result.rsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -137,6 +138,7 @@ func (client ResourceSkusClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ResourceSkusClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-30/compute/snapshots.go b/services/compute/mgmt/2020-06-30/compute/snapshots.go index f73ba8b63c7b..82bc587ba0b6 100644 --- a/services/compute/mgmt/2020-06-30/compute/snapshots.go +++ b/services/compute/mgmt/2020-06-30/compute/snapshots.go @@ -244,6 +244,7 @@ func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "Get", resp, "Failure responding to request") + return } return @@ -402,6 +403,7 @@ func (client SnapshotsClient) List(ctx context.Context) (result SnapshotListPage result.sl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "List", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -464,6 +466,7 @@ func (client SnapshotsClient) listNextResults(ctx context.Context, lastResults S result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +518,7 @@ func (client SnapshotsClient) ListByResourceGroup(ctx context.Context, resourceG result.sl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -578,6 +582,7 @@ func (client SnapshotsClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-30/compute/sshpublickeys.go b/services/compute/mgmt/2020-06-30/compute/sshpublickeys.go index fc036e3d6f78..c96ea4a3d317 100644 --- a/services/compute/mgmt/2020-06-30/compute/sshpublickeys.go +++ b/services/compute/mgmt/2020-06-30/compute/sshpublickeys.go @@ -73,6 +73,7 @@ func (client SSHPublicKeysClient) Create(ctx context.Context, resourceGroupName result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "Create", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client SSHPublicKeysClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "Delete", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client SSHPublicKeysClient) GenerateKeyPair(ctx context.Context, resourceG result, err = client.GenerateKeyPairResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "GenerateKeyPair", resp, "Failure responding to request") + return } return @@ -301,6 +304,7 @@ func (client SSHPublicKeysClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -377,6 +381,7 @@ func (client SSHPublicKeysClient) ListByResourceGroup(ctx context.Context, resou result.spkglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.spkglr.hasNextLink() && result.spkglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -440,6 +445,7 @@ func (client SSHPublicKeysClient) listByResourceGroupNextResults(ctx context.Con result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -490,6 +496,7 @@ func (client SSHPublicKeysClient) ListBySubscription(ctx context.Context) (resul result.spkglr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.spkglr.hasNextLink() && result.spkglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -552,6 +559,7 @@ func (client SSHPublicKeysClient) listBySubscriptionNextResults(ctx context.Cont result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -604,6 +612,7 @@ func (client SSHPublicKeysClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2020-06-30/compute/usage.go b/services/compute/mgmt/2020-06-30/compute/usage.go index 4fc828838f50..709c331400f4 100644 --- a/services/compute/mgmt/2020-06-30/compute/usage.go +++ b/services/compute/mgmt/2020-06-30/compute/usage.go @@ -80,6 +80,7 @@ func (client UsageClient) List(ctx context.Context, location string) (result Lis result.lur, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.UsageClient", "List", resp, "Failure responding to request") + return } if result.lur.hasNextLink() && result.lur.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client UsageClient) listNextResults(ctx context.Context, lastResults ListU result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.UsageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-30/compute/virtualmachineextensionimages.go b/services/compute/mgmt/2020-06-30/compute/virtualmachineextensionimages.go index 620132d8f78f..2659d48cfcb5 100644 --- a/services/compute/mgmt/2020-06-30/compute/virtualmachineextensionimages.go +++ b/services/compute/mgmt/2020-06-30/compute/virtualmachineextensionimages.go @@ -72,6 +72,7 @@ func (client VirtualMachineExtensionImagesClient) Get(ctx context.Context, locat result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client VirtualMachineExtensionImagesClient) ListTypes(ctx context.Context, result, err = client.ListTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListTypes", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client VirtualMachineExtensionImagesClient) ListVersions(ctx context.Conte result, err = client.ListVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListVersions", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2020-06-30/compute/virtualmachineextensions.go b/services/compute/mgmt/2020-06-30/compute/virtualmachineextensions.go index 8f251ec91312..c1ad33862f50 100644 --- a/services/compute/mgmt/2020-06-30/compute/virtualmachineextensions.go +++ b/services/compute/mgmt/2020-06-30/compute/virtualmachineextensions.go @@ -231,6 +231,7 @@ func (client VirtualMachineExtensionsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client VirtualMachineExtensionsClient) List(ctx context.Context, resourceG result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2020-06-30/compute/virtualmachineimages.go b/services/compute/mgmt/2020-06-30/compute/virtualmachineimages.go index 912e5ec62821..f9a6f4aa45c0 100644 --- a/services/compute/mgmt/2020-06-30/compute/virtualmachineimages.go +++ b/services/compute/mgmt/2020-06-30/compute/virtualmachineimages.go @@ -76,6 +76,7 @@ func (client VirtualMachineImagesClient) Get(ctx context.Context, location strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client VirtualMachineImagesClient) List(ctx context.Context, location stri result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "List", resp, "Failure responding to request") + return } return @@ -243,6 +245,7 @@ func (client VirtualMachineImagesClient) ListOffers(ctx context.Context, locatio result, err = client.ListOffersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListOffers", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client VirtualMachineImagesClient) ListPublishers(ctx context.Context, loc result, err = client.ListPublishersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListPublishers", resp, "Failure responding to request") + return } return @@ -392,6 +396,7 @@ func (client VirtualMachineImagesClient) ListSkus(ctx context.Context, location result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListSkus", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2020-06-30/compute/virtualmachineruncommands.go b/services/compute/mgmt/2020-06-30/compute/virtualmachineruncommands.go index 84ccbe6cb5c8..4325de756408 100644 --- a/services/compute/mgmt/2020-06-30/compute/virtualmachineruncommands.go +++ b/services/compute/mgmt/2020-06-30/compute/virtualmachineruncommands.go @@ -236,6 +236,7 @@ func (client VirtualMachineRunCommandsClient) Get(ctx context.Context, location result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "Get", resp, "Failure responding to request") + return } return @@ -313,6 +314,7 @@ func (client VirtualMachineRunCommandsClient) GetByVirtualMachine(ctx context.Co result, err = client.GetByVirtualMachineResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "GetByVirtualMachine", resp, "Failure responding to request") + return } return @@ -398,6 +400,7 @@ func (client VirtualMachineRunCommandsClient) List(ctx context.Context, location result.rclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "List", resp, "Failure responding to request") + return } if result.rclr.hasNextLink() && result.rclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -461,6 +464,7 @@ func (client VirtualMachineRunCommandsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -514,6 +518,7 @@ func (client VirtualMachineRunCommandsClient) ListByVirtualMachine(ctx context.C result.vmrclr, err = client.ListByVirtualMachineResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "ListByVirtualMachine", resp, "Failure responding to request") + return } if result.vmrclr.hasNextLink() && result.vmrclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -581,6 +586,7 @@ func (client VirtualMachineRunCommandsClient) listByVirtualMachineNextResults(ct result, err = client.ListByVirtualMachineResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "listByVirtualMachineNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-30/compute/virtualmachines.go b/services/compute/mgmt/2020-06-30/compute/virtualmachines.go index 773e11514288..0a092ea77052 100644 --- a/services/compute/mgmt/2020-06-30/compute/virtualmachines.go +++ b/services/compute/mgmt/2020-06-30/compute/virtualmachines.go @@ -568,6 +568,7 @@ func (client VirtualMachinesClient) Generalize(ctx context.Context, resourceGrou result, err = client.GeneralizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Generalize", resp, "Failure responding to request") + return } return @@ -643,6 +644,7 @@ func (client VirtualMachinesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Get", resp, "Failure responding to request") + return } return @@ -721,6 +723,7 @@ func (client VirtualMachinesClient) InstanceView(ctx context.Context, resourceGr result, err = client.InstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "InstanceView", resp, "Failure responding to request") + return } return @@ -797,6 +800,7 @@ func (client VirtualMachinesClient) List(ctx context.Context, resourceGroupName result.vmlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "List", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -860,6 +864,7 @@ func (client VirtualMachinesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -912,6 +917,7 @@ func (client VirtualMachinesClient) ListAll(ctx context.Context, statusOnly stri result.vmlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAll", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -977,6 +983,7 @@ func (client VirtualMachinesClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -1028,6 +1035,7 @@ func (client VirtualMachinesClient) ListAvailableSizes(ctx context.Context, reso result, err = client.ListAvailableSizesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAvailableSizes", resp, "Failure responding to request") + return } return @@ -1109,6 +1117,7 @@ func (client VirtualMachinesClient) ListByLocation(ctx context.Context, location result.vmlr, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListByLocation", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1172,6 +1181,7 @@ func (client VirtualMachinesClient) listByLocationNextResults(ctx context.Contex result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listByLocationNextResults", resp, "Failure responding to next results request") + return } return } @@ -1685,6 +1695,7 @@ func (client VirtualMachinesClient) RetrieveBootDiagnosticsData(ctx context.Cont result, err = client.RetrieveBootDiagnosticsDataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "RetrieveBootDiagnosticsData", resp, "Failure responding to request") + return } return @@ -1847,6 +1858,7 @@ func (client VirtualMachinesClient) SimulateEviction(ctx context.Context, resour result, err = client.SimulateEvictionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "SimulateEviction", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesetextensions.go b/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesetextensions.go index cc88b0de7c89..27a5711315fa 100644 --- a/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesetextensions.go +++ b/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesetextensions.go @@ -232,6 +232,7 @@ func (client VirtualMachineScaleSetExtensionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client VirtualMachineScaleSetExtensionsClient) List(ctx context.Context, r result.vmsselr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "List", resp, "Failure responding to request") + return } if result.vmsselr.hasNextLink() && result.vmsselr.IsEmpty() { err = result.NextWithContext(ctx) @@ -376,6 +378,7 @@ func (client VirtualMachineScaleSetExtensionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesetrollingupgrades.go b/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesetrollingupgrades.go index 7ed5b3c261ec..4987245e0c9e 100644 --- a/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesetrollingupgrades.go +++ b/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesetrollingupgrades.go @@ -148,6 +148,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) GetLatest(ctx context. result, err = client.GetLatestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetRollingUpgradesClient", "GetLatest", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesets.go b/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesets.go index 7ed972955ead..27eaf3701d60 100644 --- a/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesets.go +++ b/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesets.go @@ -76,6 +76,7 @@ func (client VirtualMachineScaleSetsClient) ConvertToSinglePlacementGroup(ctx co result, err = client.ConvertToSinglePlacementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ConvertToSinglePlacementGroup", resp, "Failure responding to request") + return } return @@ -493,6 +494,7 @@ func (client VirtualMachineScaleSetsClient) ForceRecoveryServiceFabricPlatformUp result, err = client.ForceRecoveryServiceFabricPlatformUpdateDomainWalkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ForceRecoveryServiceFabricPlatformUpdateDomainWalk", resp, "Failure responding to request") + return } return @@ -569,6 +571,7 @@ func (client VirtualMachineScaleSetsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -644,6 +647,7 @@ func (client VirtualMachineScaleSetsClient) GetInstanceView(ctx context.Context, result, err = client.GetInstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "GetInstanceView", resp, "Failure responding to request") + return } return @@ -720,6 +724,7 @@ func (client VirtualMachineScaleSetsClient) GetOSUpgradeHistory(ctx context.Cont result.vmsslouh, err = client.GetOSUpgradeHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "GetOSUpgradeHistory", resp, "Failure responding to request") + return } if result.vmsslouh.hasNextLink() && result.vmsslouh.IsEmpty() { err = result.NextWithContext(ctx) @@ -784,6 +789,7 @@ func (client VirtualMachineScaleSetsClient) getOSUpgradeHistoryNextResults(ctx c result, err = client.GetOSUpgradeHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "getOSUpgradeHistoryNextResults", resp, "Failure responding to next results request") + return } return } @@ -835,6 +841,7 @@ func (client VirtualMachineScaleSetsClient) List(ctx context.Context, resourceGr result.vmsslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "List", resp, "Failure responding to request") + return } if result.vmsslr.hasNextLink() && result.vmsslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -898,6 +905,7 @@ func (client VirtualMachineScaleSetsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -949,6 +957,7 @@ func (client VirtualMachineScaleSetsClient) ListAll(ctx context.Context) (result result.vmsslwlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListAll", resp, "Failure responding to request") + return } if result.vmsslwlr.hasNextLink() && result.vmsslwlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1011,6 +1020,7 @@ func (client VirtualMachineScaleSetsClient) listAllNextResults(ctx context.Conte result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -1064,6 +1074,7 @@ func (client VirtualMachineScaleSetsClient) ListSkus(ctx context.Context, resour result.vmsslsr, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListSkus", resp, "Failure responding to request") + return } if result.vmsslsr.hasNextLink() && result.vmsslsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1128,6 +1139,7 @@ func (client VirtualMachineScaleSetsClient) listSkusNextResults(ctx context.Cont result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesetvmextensions.go b/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesetvmextensions.go index 6e22e236d11a..c07fe5f2914f 100644 --- a/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesetvmextensions.go +++ b/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesetvmextensions.go @@ -239,6 +239,7 @@ func (client VirtualMachineScaleSetVMExtensionsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client VirtualMachineScaleSetVMExtensionsClient) List(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesetvmruncommands.go b/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesetvmruncommands.go index 5d4ac113b773..0917b8a55dd8 100644 --- a/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesetvmruncommands.go +++ b/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesetvmruncommands.go @@ -237,6 +237,7 @@ func (client VirtualMachineScaleSetVMRunCommandsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMRunCommandsClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +321,7 @@ func (client VirtualMachineScaleSetVMRunCommandsClient) List(ctx context.Context result.vmrclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMRunCommandsClient", "List", resp, "Failure responding to request") + return } if result.vmrclr.hasNextLink() && result.vmrclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -388,6 +390,7 @@ func (client VirtualMachineScaleSetVMRunCommandsClient) listNextResults(ctx cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMRunCommandsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesetvms.go b/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesetvms.go index 8a39ff8f6638..c03573de35ef 100644 --- a/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesetvms.go +++ b/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesetvms.go @@ -230,6 +230,7 @@ func (client VirtualMachineScaleSetVMsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client VirtualMachineScaleSetVMsClient) GetInstanceView(ctx context.Contex result, err = client.GetInstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "GetInstanceView", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualMachineScaleSetVMsClient) List(ctx context.Context, resource result.vmssvlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "List", resp, "Failure responding to request") + return } if result.vmssvlr.hasNextLink() && result.vmssvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -464,6 +467,7 @@ func (client VirtualMachineScaleSetVMsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -993,6 +997,7 @@ func (client VirtualMachineScaleSetVMsClient) RetrieveBootDiagnosticsData(ctx co result, err = client.RetrieveBootDiagnosticsDataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "RetrieveBootDiagnosticsData", resp, "Failure responding to request") + return } return @@ -1159,6 +1164,7 @@ func (client VirtualMachineScaleSetVMsClient) SimulateEviction(ctx context.Conte result, err = client.SimulateEvictionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "SimulateEviction", resp, "Failure responding to request") + return } return diff --git a/services/compute/mgmt/2020-06-30/compute/virtualmachinesizes.go b/services/compute/mgmt/2020-06-30/compute/virtualmachinesizes.go index a325400eeee8..1e5ac2c66382 100644 --- a/services/compute/mgmt/2020-06-30/compute/virtualmachinesizes.go +++ b/services/compute/mgmt/2020-06-30/compute/virtualmachinesizes.go @@ -80,6 +80,7 @@ func (client VirtualMachineSizesClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineSizesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2017-11-30/consumption/operations.go b/services/consumption/mgmt/2017-11-30/consumption/operations.go index 6755a4dd14e3..c30860c22011 100644 --- a/services/consumption/mgmt/2017-11-30/consumption/operations.go +++ b/services/consumption/mgmt/2017-11-30/consumption/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2017-11-30/consumption/reservationsdetails.go b/services/consumption/mgmt/2017-11-30/consumption/reservationsdetails.go index d1b8d5a8ea24..50e3d605446d 100644 --- a/services/consumption/mgmt/2017-11-30/consumption/reservationsdetails.go +++ b/services/consumption/mgmt/2017-11-30/consumption/reservationsdetails.go @@ -77,6 +77,7 @@ func (client ReservationsDetailsClient) List(ctx context.Context, scope string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2017-11-30/consumption/reservationssummaries.go b/services/consumption/mgmt/2017-11-30/consumption/reservationssummaries.go index 40aa77b4e7f6..4c0297e26faa 100644 --- a/services/consumption/mgmt/2017-11-30/consumption/reservationssummaries.go +++ b/services/consumption/mgmt/2017-11-30/consumption/reservationssummaries.go @@ -78,6 +78,7 @@ func (client ReservationsSummariesClient) List(ctx context.Context, scope string result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2017-11-30/consumption/usagedetails.go b/services/consumption/mgmt/2017-11-30/consumption/usagedetails.go index a13318595e50..bad9dfce661c 100644 --- a/services/consumption/mgmt/2017-11-30/consumption/usagedetails.go +++ b/services/consumption/mgmt/2017-11-30/consumption/usagedetails.go @@ -96,6 +96,7 @@ func (client UsageDetailsClient) List(ctx context.Context, scope string, expand result.udlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "List", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -170,6 +171,7 @@ func (client UsageDetailsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-01-31/consumption/budgets.go b/services/consumption/mgmt/2018-01-31/consumption/budgets.go index 4317b9e8363d..bb720532ba2c 100644 --- a/services/consumption/mgmt/2018-01-31/consumption/budgets.go +++ b/services/consumption/mgmt/2018-01-31/consumption/budgets.go @@ -100,6 +100,7 @@ func (client BudgetsClient) CreateOrUpdate(ctx context.Context, budgetName strin result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -203,6 +204,7 @@ func (client BudgetsClient) CreateOrUpdateByResourceGroupName(ctx context.Contex result, err = client.CreateOrUpdateByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "CreateOrUpdateByResourceGroupName", resp, "Failure responding to request") + return } return @@ -279,6 +281,7 @@ func (client BudgetsClient) Delete(ctx context.Context, budgetName string) (resu result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -352,6 +355,7 @@ func (client BudgetsClient) DeleteByResourceGroupName(ctx context.Context, resou result, err = client.DeleteByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "DeleteByResourceGroupName", resp, "Failure responding to request") + return } return @@ -425,6 +429,7 @@ func (client BudgetsClient) Get(ctx context.Context, budgetName string) (result result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "Get", resp, "Failure responding to request") + return } return @@ -499,6 +504,7 @@ func (client BudgetsClient) GetByResourceGroupName(ctx context.Context, resource result, err = client.GetByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "GetByResourceGroupName", resp, "Failure responding to request") + return } return @@ -572,6 +578,7 @@ func (client BudgetsClient) List(ctx context.Context) (result BudgetsListResultP result.blr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "List", resp, "Failure responding to request") + return } if result.blr.hasNextLink() && result.blr.IsEmpty() { err = result.NextWithContext(ctx) @@ -634,6 +641,7 @@ func (client BudgetsClient) listNextResults(ctx context.Context, lastResults Bud result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -685,6 +693,7 @@ func (client BudgetsClient) ListByResourceGroupName(ctx context.Context, resourc result.blr, err = client.ListByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "ListByResourceGroupName", resp, "Failure responding to request") + return } if result.blr.hasNextLink() && result.blr.IsEmpty() { err = result.NextWithContext(ctx) @@ -748,6 +757,7 @@ func (client BudgetsClient) listByResourceGroupNameNextResults(ctx context.Conte result, err = client.ListByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "listByResourceGroupNameNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-01-31/consumption/marketplaces.go b/services/consumption/mgmt/2018-01-31/consumption/marketplaces.go index 31e3017f2fc1..63aa0fb78dcb 100644 --- a/services/consumption/mgmt/2018-01-31/consumption/marketplaces.go +++ b/services/consumption/mgmt/2018-01-31/consumption/marketplaces.go @@ -90,6 +90,7 @@ func (client MarketplacesClient) List(ctx context.Context, filter string, top *i result.mlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "List", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -161,6 +162,7 @@ func (client MarketplacesClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -229,6 +231,7 @@ func (client MarketplacesClient) ListByBillingPeriod(ctx context.Context, billin result.mlr, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "ListByBillingPeriod", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -301,6 +304,7 @@ func (client MarketplacesClient) listByBillingPeriodNextResults(ctx context.Cont result, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listByBillingPeriodNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-01-31/consumption/operations.go b/services/consumption/mgmt/2018-01-31/consumption/operations.go index eeaafb60b18f..431643f39add 100644 --- a/services/consumption/mgmt/2018-01-31/consumption/operations.go +++ b/services/consumption/mgmt/2018-01-31/consumption/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-01-31/consumption/pricesheet.go b/services/consumption/mgmt/2018-01-31/consumption/pricesheet.go index 8012730be69c..90258e0f9a63 100644 --- a/services/consumption/mgmt/2018-01-31/consumption/pricesheet.go +++ b/services/consumption/mgmt/2018-01-31/consumption/pricesheet.go @@ -88,6 +88,7 @@ func (client PriceSheetClient) Get(ctx context.Context, expand string, skiptoken result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.PriceSheetClient", "Get", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client PriceSheetClient) GetByBillingPeriod(ctx context.Context, billingPe result, err = client.GetByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.PriceSheetClient", "GetByBillingPeriod", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-01-31/consumption/reservationsdetails.go b/services/consumption/mgmt/2018-01-31/consumption/reservationsdetails.go index ea0f135d8387..0042a7ec2a2f 100644 --- a/services/consumption/mgmt/2018-01-31/consumption/reservationsdetails.go +++ b/services/consumption/mgmt/2018-01-31/consumption/reservationsdetails.go @@ -76,6 +76,7 @@ func (client ReservationsDetailsClient) ListByReservationOrder(ctx context.Conte result.rdlr, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "ListByReservationOrder", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client ReservationsDetailsClient) listByReservationOrderNextResults(ctx co result, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "listByReservationOrderNextResults", resp, "Failure responding to next results request") + return } return } @@ -193,6 +195,7 @@ func (client ReservationsDetailsClient) ListByReservationOrderAndReservation(ctx result.rdlr, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "ListByReservationOrderAndReservation", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -257,6 +260,7 @@ func (client ReservationsDetailsClient) listByReservationOrderAndReservationNext result, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "listByReservationOrderAndReservationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-01-31/consumption/reservationssummaries.go b/services/consumption/mgmt/2018-01-31/consumption/reservationssummaries.go index db70a1963440..f96abf284d87 100644 --- a/services/consumption/mgmt/2018-01-31/consumption/reservationssummaries.go +++ b/services/consumption/mgmt/2018-01-31/consumption/reservationssummaries.go @@ -77,6 +77,7 @@ func (client ReservationsSummariesClient) ListByReservationOrder(ctx context.Con result.rslr, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "ListByReservationOrder", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client ReservationsSummariesClient) listByReservationOrderNextResults(ctx result, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "listByReservationOrderNextResults", resp, "Failure responding to next results request") + return } return } @@ -198,6 +200,7 @@ func (client ReservationsSummariesClient) ListByReservationOrderAndReservation(c result.rslr, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "ListByReservationOrderAndReservation", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -265,6 +268,7 @@ func (client ReservationsSummariesClient) listByReservationOrderAndReservationNe result, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "listByReservationOrderAndReservationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-01-31/consumption/usagedetails.go b/services/consumption/mgmt/2018-01-31/consumption/usagedetails.go index e18367306fcc..79fe123ee95f 100644 --- a/services/consumption/mgmt/2018-01-31/consumption/usagedetails.go +++ b/services/consumption/mgmt/2018-01-31/consumption/usagedetails.go @@ -92,6 +92,7 @@ func (client UsageDetailsClient) List(ctx context.Context, expand string, filter result.udlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "List", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -166,6 +167,7 @@ func (client UsageDetailsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -236,6 +238,7 @@ func (client UsageDetailsClient) ListByBillingPeriod(ctx context.Context, billin result.udlr, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListByBillingPeriod", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -311,6 +314,7 @@ func (client UsageDetailsClient) listByBillingPeriodNextResults(ctx context.Cont result, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listByBillingPeriodNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-03-31/consumption/budgets.go b/services/consumption/mgmt/2018-03-31/consumption/budgets.go index 67845e99ee36..61430252f117 100644 --- a/services/consumption/mgmt/2018-03-31/consumption/budgets.go +++ b/services/consumption/mgmt/2018-03-31/consumption/budgets.go @@ -100,6 +100,7 @@ func (client BudgetsClient) CreateOrUpdate(ctx context.Context, budgetName strin result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -203,6 +204,7 @@ func (client BudgetsClient) CreateOrUpdateByResourceGroupName(ctx context.Contex result, err = client.CreateOrUpdateByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "CreateOrUpdateByResourceGroupName", resp, "Failure responding to request") + return } return @@ -279,6 +281,7 @@ func (client BudgetsClient) Delete(ctx context.Context, budgetName string) (resu result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -352,6 +355,7 @@ func (client BudgetsClient) DeleteByResourceGroupName(ctx context.Context, resou result, err = client.DeleteByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "DeleteByResourceGroupName", resp, "Failure responding to request") + return } return @@ -425,6 +429,7 @@ func (client BudgetsClient) Get(ctx context.Context, budgetName string) (result result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "Get", resp, "Failure responding to request") + return } return @@ -499,6 +504,7 @@ func (client BudgetsClient) GetByResourceGroupName(ctx context.Context, resource result, err = client.GetByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "GetByResourceGroupName", resp, "Failure responding to request") + return } return @@ -572,6 +578,7 @@ func (client BudgetsClient) List(ctx context.Context) (result BudgetsListResultP result.blr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "List", resp, "Failure responding to request") + return } if result.blr.hasNextLink() && result.blr.IsEmpty() { err = result.NextWithContext(ctx) @@ -634,6 +641,7 @@ func (client BudgetsClient) listNextResults(ctx context.Context, lastResults Bud result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -685,6 +693,7 @@ func (client BudgetsClient) ListByResourceGroupName(ctx context.Context, resourc result.blr, err = client.ListByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "ListByResourceGroupName", resp, "Failure responding to request") + return } if result.blr.hasNextLink() && result.blr.IsEmpty() { err = result.NextWithContext(ctx) @@ -748,6 +757,7 @@ func (client BudgetsClient) listByResourceGroupNameNextResults(ctx context.Conte result, err = client.ListByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "listByResourceGroupNameNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-03-31/consumption/client.go b/services/consumption/mgmt/2018-03-31/consumption/client.go index 79862f4760ec..afe9901ebbe5 100644 --- a/services/consumption/mgmt/2018-03-31/consumption/client.go +++ b/services/consumption/mgmt/2018-03-31/consumption/client.go @@ -86,6 +86,7 @@ func (client BaseClient) GetBalancesByBillingAccount(ctx context.Context, billin result, err = client.GetBalancesByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BaseClient", "GetBalancesByBillingAccount", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-03-31/consumption/costtags.go b/services/consumption/mgmt/2018-03-31/consumption/costtags.go index 6e811326a3f4..161b31e084c7 100644 --- a/services/consumption/mgmt/2018-03-31/consumption/costtags.go +++ b/services/consumption/mgmt/2018-03-31/consumption/costtags.go @@ -75,6 +75,7 @@ func (client CostTagsClient) CreateOrUpdate(ctx context.Context, billingAccountI result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.CostTagsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client CostTagsClient) Get(ctx context.Context, billingAccountID string) ( result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.CostTagsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-03-31/consumption/getbalancesbybillingaccount.go b/services/consumption/mgmt/2018-03-31/consumption/getbalancesbybillingaccount.go index 9f144706f926..84cb531ae8cd 100644 --- a/services/consumption/mgmt/2018-03-31/consumption/getbalancesbybillingaccount.go +++ b/services/consumption/mgmt/2018-03-31/consumption/getbalancesbybillingaccount.go @@ -75,6 +75,7 @@ func (client GetBalancesByBillingAccountClient) ByBillingPeriod(ctx context.Cont result, err = client.ByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.GetBalancesByBillingAccountClient", "ByBillingPeriod", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-03-31/consumption/marketplaces.go b/services/consumption/mgmt/2018-03-31/consumption/marketplaces.go index 7e4197e4ec0e..7ef0d1e8679d 100644 --- a/services/consumption/mgmt/2018-03-31/consumption/marketplaces.go +++ b/services/consumption/mgmt/2018-03-31/consumption/marketplaces.go @@ -90,6 +90,7 @@ func (client MarketplacesClient) List(ctx context.Context, filter string, top *i result.mlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "List", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -161,6 +162,7 @@ func (client MarketplacesClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -229,6 +231,7 @@ func (client MarketplacesClient) ListByBillingPeriod(ctx context.Context, billin result.mlr, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "ListByBillingPeriod", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -301,6 +304,7 @@ func (client MarketplacesClient) listByBillingPeriodNextResults(ctx context.Cont result, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listByBillingPeriodNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-03-31/consumption/marketplacesbybillingaccount.go b/services/consumption/mgmt/2018-03-31/consumption/marketplacesbybillingaccount.go index ca410e60dc1e..d72703df2e00 100644 --- a/services/consumption/mgmt/2018-03-31/consumption/marketplacesbybillingaccount.go +++ b/services/consumption/mgmt/2018-03-31/consumption/marketplacesbybillingaccount.go @@ -92,6 +92,7 @@ func (client MarketplacesByBillingAccountClient) List(ctx context.Context, billi result.mlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesByBillingAccountClient", "List", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -163,6 +164,7 @@ func (client MarketplacesByBillingAccountClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesByBillingAccountClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -232,6 +234,7 @@ func (client MarketplacesByBillingAccountClient) ListByBillingPeriod(ctx context result.mlr, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesByBillingAccountClient", "ListByBillingPeriod", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -304,6 +307,7 @@ func (client MarketplacesByBillingAccountClient) listByBillingPeriodNextResults( result, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesByBillingAccountClient", "listByBillingPeriodNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-03-31/consumption/marketplacesbydepartment.go b/services/consumption/mgmt/2018-03-31/consumption/marketplacesbydepartment.go index 6ebaa283683d..90360779a3ff 100644 --- a/services/consumption/mgmt/2018-03-31/consumption/marketplacesbydepartment.go +++ b/services/consumption/mgmt/2018-03-31/consumption/marketplacesbydepartment.go @@ -92,6 +92,7 @@ func (client MarketplacesByDepartmentClient) List(ctx context.Context, departmen result.mlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesByDepartmentClient", "List", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -163,6 +164,7 @@ func (client MarketplacesByDepartmentClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesByDepartmentClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -232,6 +234,7 @@ func (client MarketplacesByDepartmentClient) ListByBillingPeriod(ctx context.Con result.mlr, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesByDepartmentClient", "ListByBillingPeriod", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -304,6 +307,7 @@ func (client MarketplacesByDepartmentClient) listByBillingPeriodNextResults(ctx result, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesByDepartmentClient", "listByBillingPeriodNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-03-31/consumption/marketplacesbyenrollmentaccounts.go b/services/consumption/mgmt/2018-03-31/consumption/marketplacesbyenrollmentaccounts.go index cbc4bc4dad99..609edd0aff7b 100644 --- a/services/consumption/mgmt/2018-03-31/consumption/marketplacesbyenrollmentaccounts.go +++ b/services/consumption/mgmt/2018-03-31/consumption/marketplacesbyenrollmentaccounts.go @@ -92,6 +92,7 @@ func (client MarketplacesByEnrollmentAccountsClient) List(ctx context.Context, e result.mlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesByEnrollmentAccountsClient", "List", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -163,6 +164,7 @@ func (client MarketplacesByEnrollmentAccountsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesByEnrollmentAccountsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -232,6 +234,7 @@ func (client MarketplacesByEnrollmentAccountsClient) ListByBillingPeriod(ctx con result.mlr, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesByEnrollmentAccountsClient", "ListByBillingPeriod", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -304,6 +307,7 @@ func (client MarketplacesByEnrollmentAccountsClient) listByBillingPeriodNextResu result, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesByEnrollmentAccountsClient", "listByBillingPeriodNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-03-31/consumption/operations.go b/services/consumption/mgmt/2018-03-31/consumption/operations.go index 3f4f9d820efa..bac46fe2c98a 100644 --- a/services/consumption/mgmt/2018-03-31/consumption/operations.go +++ b/services/consumption/mgmt/2018-03-31/consumption/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-03-31/consumption/pricesheet.go b/services/consumption/mgmt/2018-03-31/consumption/pricesheet.go index 316d0819b7be..4b73c476679c 100644 --- a/services/consumption/mgmt/2018-03-31/consumption/pricesheet.go +++ b/services/consumption/mgmt/2018-03-31/consumption/pricesheet.go @@ -88,6 +88,7 @@ func (client PriceSheetClient) Get(ctx context.Context, expand string, skiptoken result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.PriceSheetClient", "Get", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client PriceSheetClient) GetByBillingPeriod(ctx context.Context, billingPe result, err = client.GetByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.PriceSheetClient", "GetByBillingPeriod", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-03-31/consumption/reservationrecommendations.go b/services/consumption/mgmt/2018-03-31/consumption/reservationrecommendations.go index a13bc8bf948c..6d227338f510 100644 --- a/services/consumption/mgmt/2018-03-31/consumption/reservationrecommendations.go +++ b/services/consumption/mgmt/2018-03-31/consumption/reservationrecommendations.go @@ -74,6 +74,7 @@ func (client ReservationRecommendationsClient) List(ctx context.Context, filter result.rrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationRecommendationsClient", "List", resp, "Failure responding to request") + return } if result.rrlr.hasNextLink() && result.rrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client ReservationRecommendationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationRecommendationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-03-31/consumption/reservationsdetails.go b/services/consumption/mgmt/2018-03-31/consumption/reservationsdetails.go index f57eb4207f04..222febaa2c5f 100644 --- a/services/consumption/mgmt/2018-03-31/consumption/reservationsdetails.go +++ b/services/consumption/mgmt/2018-03-31/consumption/reservationsdetails.go @@ -76,6 +76,7 @@ func (client ReservationsDetailsClient) ListByReservationOrder(ctx context.Conte result.rdlr, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "ListByReservationOrder", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client ReservationsDetailsClient) listByReservationOrderNextResults(ctx co result, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "listByReservationOrderNextResults", resp, "Failure responding to next results request") + return } return } @@ -193,6 +195,7 @@ func (client ReservationsDetailsClient) ListByReservationOrderAndReservation(ctx result.rdlr, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "ListByReservationOrderAndReservation", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -257,6 +260,7 @@ func (client ReservationsDetailsClient) listByReservationOrderAndReservationNext result, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "listByReservationOrderAndReservationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-03-31/consumption/reservationssummaries.go b/services/consumption/mgmt/2018-03-31/consumption/reservationssummaries.go index 10791a9ab893..7cef548b425f 100644 --- a/services/consumption/mgmt/2018-03-31/consumption/reservationssummaries.go +++ b/services/consumption/mgmt/2018-03-31/consumption/reservationssummaries.go @@ -77,6 +77,7 @@ func (client ReservationsSummariesClient) ListByReservationOrder(ctx context.Con result.rslr, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "ListByReservationOrder", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client ReservationsSummariesClient) listByReservationOrderNextResults(ctx result, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "listByReservationOrderNextResults", resp, "Failure responding to next results request") + return } return } @@ -198,6 +200,7 @@ func (client ReservationsSummariesClient) ListByReservationOrderAndReservation(c result.rslr, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "ListByReservationOrderAndReservation", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -265,6 +268,7 @@ func (client ReservationsSummariesClient) listByReservationOrderAndReservationNe result, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "listByReservationOrderAndReservationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-03-31/consumption/tags.go b/services/consumption/mgmt/2018-03-31/consumption/tags.go index 01cba92a71fc..cbda45d6a74b 100644 --- a/services/consumption/mgmt/2018-03-31/consumption/tags.go +++ b/services/consumption/mgmt/2018-03-31/consumption/tags.go @@ -72,6 +72,7 @@ func (client TagsClient) Get(ctx context.Context, billingAccountID string) (resu result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.TagsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-03-31/consumption/usagedetails.go b/services/consumption/mgmt/2018-03-31/consumption/usagedetails.go index ac81ca4655b1..a91ffa83de62 100644 --- a/services/consumption/mgmt/2018-03-31/consumption/usagedetails.go +++ b/services/consumption/mgmt/2018-03-31/consumption/usagedetails.go @@ -94,6 +94,7 @@ func (client UsageDetailsClient) List(ctx context.Context, expand string, filter result.udlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "List", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -171,6 +172,7 @@ func (client UsageDetailsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -244,6 +246,7 @@ func (client UsageDetailsClient) ListByBillingPeriod(ctx context.Context, billin result.udlr, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListByBillingPeriod", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -322,6 +325,7 @@ func (client UsageDetailsClient) listByBillingPeriodNextResults(ctx context.Cont result, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listByBillingPeriodNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-03-31/consumption/usagedetailsbybillingaccount.go b/services/consumption/mgmt/2018-03-31/consumption/usagedetailsbybillingaccount.go index 807bcff25f32..7295f10b4589 100644 --- a/services/consumption/mgmt/2018-03-31/consumption/usagedetailsbybillingaccount.go +++ b/services/consumption/mgmt/2018-03-31/consumption/usagedetailsbybillingaccount.go @@ -96,6 +96,7 @@ func (client UsageDetailsByBillingAccountClient) List(ctx context.Context, billi result.udlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsByBillingAccountClient", "List", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -173,6 +174,7 @@ func (client UsageDetailsByBillingAccountClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsByBillingAccountClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -247,6 +249,7 @@ func (client UsageDetailsByBillingAccountClient) ListByBillingPeriod(ctx context result.udlr, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsByBillingAccountClient", "ListByBillingPeriod", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -325,6 +328,7 @@ func (client UsageDetailsByBillingAccountClient) listByBillingPeriodNextResults( result, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsByBillingAccountClient", "listByBillingPeriodNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-03-31/consumption/usagedetailsbydepartment.go b/services/consumption/mgmt/2018-03-31/consumption/usagedetailsbydepartment.go index a5d1dac1d619..01dd86b94487 100644 --- a/services/consumption/mgmt/2018-03-31/consumption/usagedetailsbydepartment.go +++ b/services/consumption/mgmt/2018-03-31/consumption/usagedetailsbydepartment.go @@ -96,6 +96,7 @@ func (client UsageDetailsByDepartmentClient) List(ctx context.Context, departmen result.udlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsByDepartmentClient", "List", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -173,6 +174,7 @@ func (client UsageDetailsByDepartmentClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsByDepartmentClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -247,6 +249,7 @@ func (client UsageDetailsByDepartmentClient) ListByBillingPeriod(ctx context.Con result.udlr, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsByDepartmentClient", "ListByBillingPeriod", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -325,6 +328,7 @@ func (client UsageDetailsByDepartmentClient) listByBillingPeriodNextResults(ctx result, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsByDepartmentClient", "listByBillingPeriodNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-03-31/consumption/usagedetailsbyenrollmentaccount.go b/services/consumption/mgmt/2018-03-31/consumption/usagedetailsbyenrollmentaccount.go index f034b107cf9c..da1672335abd 100644 --- a/services/consumption/mgmt/2018-03-31/consumption/usagedetailsbyenrollmentaccount.go +++ b/services/consumption/mgmt/2018-03-31/consumption/usagedetailsbyenrollmentaccount.go @@ -96,6 +96,7 @@ func (client UsageDetailsByEnrollmentAccountClient) List(ctx context.Context, en result.udlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsByEnrollmentAccountClient", "List", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -173,6 +174,7 @@ func (client UsageDetailsByEnrollmentAccountClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsByEnrollmentAccountClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -247,6 +249,7 @@ func (client UsageDetailsByEnrollmentAccountClient) ListByBillingPeriod(ctx cont result.udlr, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsByEnrollmentAccountClient", "ListByBillingPeriod", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -325,6 +328,7 @@ func (client UsageDetailsByEnrollmentAccountClient) listByBillingPeriodNextResul result, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsByEnrollmentAccountClient", "listByBillingPeriodNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-05-31/consumption/forecasts.go b/services/consumption/mgmt/2018-05-31/consumption/forecasts.go index 44a46ff7f572..34c8993549ff 100644 --- a/services/consumption/mgmt/2018-05-31/consumption/forecasts.go +++ b/services/consumption/mgmt/2018-05-31/consumption/forecasts.go @@ -74,6 +74,7 @@ func (client ForecastsClient) List(ctx context.Context, filter string) (result F result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ForecastsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-05-31/consumption/operations.go b/services/consumption/mgmt/2018-05-31/consumption/operations.go index 417490dc3f00..6fa6fc88b39c 100644 --- a/services/consumption/mgmt/2018-05-31/consumption/operations.go +++ b/services/consumption/mgmt/2018-05-31/consumption/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-05-31/consumption/pricesheet.go b/services/consumption/mgmt/2018-05-31/consumption/pricesheet.go index 99b1c32cbdec..35f90ac3dd61 100644 --- a/services/consumption/mgmt/2018-05-31/consumption/pricesheet.go +++ b/services/consumption/mgmt/2018-05-31/consumption/pricesheet.go @@ -88,6 +88,7 @@ func (client PriceSheetClient) Get(ctx context.Context, expand string, skiptoken result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.PriceSheetClient", "Get", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client PriceSheetClient) GetByBillingPeriod(ctx context.Context, billingPe result, err = client.GetByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.PriceSheetClient", "GetByBillingPeriod", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-05-31/consumption/usagedetails.go b/services/consumption/mgmt/2018-05-31/consumption/usagedetails.go index 902f3f890564..0c3ebdd73b6b 100644 --- a/services/consumption/mgmt/2018-05-31/consumption/usagedetails.go +++ b/services/consumption/mgmt/2018-05-31/consumption/usagedetails.go @@ -94,6 +94,7 @@ func (client UsageDetailsClient) List(ctx context.Context, expand string, filter result.udlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "List", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -171,6 +172,7 @@ func (client UsageDetailsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -243,6 +245,7 @@ func (client UsageDetailsClient) ListByBillingAccount(ctx context.Context, billi result.udlr, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListByBillingAccount", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -320,6 +323,7 @@ func (client UsageDetailsClient) listByBillingAccountNextResults(ctx context.Con result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listByBillingAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -393,6 +397,7 @@ func (client UsageDetailsClient) ListByBillingPeriod(ctx context.Context, billin result.udlr, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListByBillingPeriod", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -471,6 +476,7 @@ func (client UsageDetailsClient) listByBillingPeriodNextResults(ctx context.Cont result, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listByBillingPeriodNextResults", resp, "Failure responding to next results request") + return } return } @@ -543,6 +549,7 @@ func (client UsageDetailsClient) ListByDepartment(ctx context.Context, departmen result.udlr, err = client.ListByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListByDepartment", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -620,6 +627,7 @@ func (client UsageDetailsClient) listByDepartmentNextResults(ctx context.Context result, err = client.ListByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listByDepartmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -692,6 +700,7 @@ func (client UsageDetailsClient) ListByEnrollmentAccount(ctx context.Context, en result.udlr, err = client.ListByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListByEnrollmentAccount", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -769,6 +778,7 @@ func (client UsageDetailsClient) listByEnrollmentAccountNextResults(ctx context. result, err = client.ListByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listByEnrollmentAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -843,6 +853,7 @@ func (client UsageDetailsClient) ListForBillingPeriodByBillingAccount(ctx contex result.udlr, err = client.ListForBillingPeriodByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListForBillingPeriodByBillingAccount", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -921,6 +932,7 @@ func (client UsageDetailsClient) listForBillingPeriodByBillingAccountNextResults result, err = client.ListForBillingPeriodByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listForBillingPeriodByBillingAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -995,6 +1007,7 @@ func (client UsageDetailsClient) ListForBillingPeriodByDepartment(ctx context.Co result.udlr, err = client.ListForBillingPeriodByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListForBillingPeriodByDepartment", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1073,6 +1086,7 @@ func (client UsageDetailsClient) listForBillingPeriodByDepartmentNextResults(ctx result, err = client.ListForBillingPeriodByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listForBillingPeriodByDepartmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -1147,6 +1161,7 @@ func (client UsageDetailsClient) ListForBillingPeriodByEnrollmentAccount(ctx con result.udlr, err = client.ListForBillingPeriodByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListForBillingPeriodByEnrollmentAccount", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1225,6 +1240,7 @@ func (client UsageDetailsClient) listForBillingPeriodByEnrollmentAccountNextResu result, err = client.ListForBillingPeriodByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listForBillingPeriodByEnrollmentAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-06-30/consumption/aggregatedcost.go b/services/consumption/mgmt/2018-06-30/consumption/aggregatedcost.go index dfc122d4435a..c7baab6f4567 100644 --- a/services/consumption/mgmt/2018-06-30/consumption/aggregatedcost.go +++ b/services/consumption/mgmt/2018-06-30/consumption/aggregatedcost.go @@ -73,6 +73,7 @@ func (client AggregatedCostClient) GetByManagementGroup(ctx context.Context, man result, err = client.GetByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.AggregatedCostClient", "GetByManagementGroup", resp, "Failure responding to request") + return } return @@ -147,6 +148,7 @@ func (client AggregatedCostClient) GetForBillingPeriodByManagementGroup(ctx cont result, err = client.GetForBillingPeriodByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.AggregatedCostClient", "GetForBillingPeriodByManagementGroup", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-06-30/consumption/balances.go b/services/consumption/mgmt/2018-06-30/consumption/balances.go index f713198f22c0..5a3909956090 100644 --- a/services/consumption/mgmt/2018-06-30/consumption/balances.go +++ b/services/consumption/mgmt/2018-06-30/consumption/balances.go @@ -73,6 +73,7 @@ func (client BalancesClient) GetByBillingAccount(ctx context.Context, billingAcc result, err = client.GetByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BalancesClient", "GetByBillingAccount", resp, "Failure responding to request") + return } return @@ -147,6 +148,7 @@ func (client BalancesClient) GetForBillingPeriodByBillingAccount(ctx context.Con result, err = client.GetForBillingPeriodByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BalancesClient", "GetForBillingPeriodByBillingAccount", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-06-30/consumption/budgets.go b/services/consumption/mgmt/2018-06-30/consumption/budgets.go index 24936955f351..d8a321c1507b 100644 --- a/services/consumption/mgmt/2018-06-30/consumption/budgets.go +++ b/services/consumption/mgmt/2018-06-30/consumption/budgets.go @@ -100,6 +100,7 @@ func (client BudgetsClient) CreateOrUpdate(ctx context.Context, budgetName strin result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -203,6 +204,7 @@ func (client BudgetsClient) CreateOrUpdateByResourceGroupName(ctx context.Contex result, err = client.CreateOrUpdateByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "CreateOrUpdateByResourceGroupName", resp, "Failure responding to request") + return } return @@ -279,6 +281,7 @@ func (client BudgetsClient) Delete(ctx context.Context, budgetName string) (resu result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -352,6 +355,7 @@ func (client BudgetsClient) DeleteByResourceGroupName(ctx context.Context, resou result, err = client.DeleteByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "DeleteByResourceGroupName", resp, "Failure responding to request") + return } return @@ -425,6 +429,7 @@ func (client BudgetsClient) Get(ctx context.Context, budgetName string) (result result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "Get", resp, "Failure responding to request") + return } return @@ -499,6 +504,7 @@ func (client BudgetsClient) GetByResourceGroupName(ctx context.Context, resource result, err = client.GetByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "GetByResourceGroupName", resp, "Failure responding to request") + return } return @@ -572,6 +578,7 @@ func (client BudgetsClient) List(ctx context.Context) (result BudgetsListResultP result.blr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "List", resp, "Failure responding to request") + return } if result.blr.hasNextLink() && result.blr.IsEmpty() { err = result.NextWithContext(ctx) @@ -634,6 +641,7 @@ func (client BudgetsClient) listNextResults(ctx context.Context, lastResults Bud result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -685,6 +693,7 @@ func (client BudgetsClient) ListByResourceGroupName(ctx context.Context, resourc result.blr, err = client.ListByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "ListByResourceGroupName", resp, "Failure responding to request") + return } if result.blr.hasNextLink() && result.blr.IsEmpty() { err = result.NextWithContext(ctx) @@ -748,6 +757,7 @@ func (client BudgetsClient) listByResourceGroupNameNextResults(ctx context.Conte result, err = client.ListByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "listByResourceGroupNameNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-06-30/consumption/costtags.go b/services/consumption/mgmt/2018-06-30/consumption/costtags.go index 03355c809637..d83f437bfd48 100644 --- a/services/consumption/mgmt/2018-06-30/consumption/costtags.go +++ b/services/consumption/mgmt/2018-06-30/consumption/costtags.go @@ -75,6 +75,7 @@ func (client CostTagsClient) CreateOrUpdate(ctx context.Context, billingAccountI result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.CostTagsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client CostTagsClient) Get(ctx context.Context, billingAccountID string) ( result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.CostTagsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-06-30/consumption/forecasts.go b/services/consumption/mgmt/2018-06-30/consumption/forecasts.go index 76be61db2eb7..b5500a23b15d 100644 --- a/services/consumption/mgmt/2018-06-30/consumption/forecasts.go +++ b/services/consumption/mgmt/2018-06-30/consumption/forecasts.go @@ -74,6 +74,7 @@ func (client ForecastsClient) List(ctx context.Context, filter string) (result F result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ForecastsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-06-30/consumption/marketplaces.go b/services/consumption/mgmt/2018-06-30/consumption/marketplaces.go index dfa6511eb74e..22038450c4f8 100644 --- a/services/consumption/mgmt/2018-06-30/consumption/marketplaces.go +++ b/services/consumption/mgmt/2018-06-30/consumption/marketplaces.go @@ -90,6 +90,7 @@ func (client MarketplacesClient) List(ctx context.Context, filter string, top *i result.mlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "List", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -161,6 +162,7 @@ func (client MarketplacesClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -229,6 +231,7 @@ func (client MarketplacesClient) ListByBillingAccount(ctx context.Context, billi result.mlr, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "ListByBillingAccount", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -300,6 +303,7 @@ func (client MarketplacesClient) listByBillingAccountNextResults(ctx context.Con result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listByBillingAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -368,6 +372,7 @@ func (client MarketplacesClient) ListByBillingPeriod(ctx context.Context, billin result.mlr, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "ListByBillingPeriod", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -440,6 +445,7 @@ func (client MarketplacesClient) listByBillingPeriodNextResults(ctx context.Cont result, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listByBillingPeriodNextResults", resp, "Failure responding to next results request") + return } return } @@ -508,6 +514,7 @@ func (client MarketplacesClient) ListByDepartment(ctx context.Context, departmen result.mlr, err = client.ListByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "ListByDepartment", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -579,6 +586,7 @@ func (client MarketplacesClient) listByDepartmentNextResults(ctx context.Context result, err = client.ListByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listByDepartmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -647,6 +655,7 @@ func (client MarketplacesClient) ListByEnrollmentAccount(ctx context.Context, en result.mlr, err = client.ListByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "ListByEnrollmentAccount", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -718,6 +727,7 @@ func (client MarketplacesClient) listByEnrollmentAccountNextResults(ctx context. result, err = client.ListByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listByEnrollmentAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -787,6 +797,7 @@ func (client MarketplacesClient) ListForBillingPeriodByBillingAccount(ctx contex result.mlr, err = client.ListForBillingPeriodByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "ListForBillingPeriodByBillingAccount", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -859,6 +870,7 @@ func (client MarketplacesClient) listForBillingPeriodByBillingAccountNextResults result, err = client.ListForBillingPeriodByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listForBillingPeriodByBillingAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -928,6 +940,7 @@ func (client MarketplacesClient) ListForBillingPeriodByDepartment(ctx context.Co result.mlr, err = client.ListForBillingPeriodByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "ListForBillingPeriodByDepartment", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1000,6 +1013,7 @@ func (client MarketplacesClient) listForBillingPeriodByDepartmentNextResults(ctx result, err = client.ListForBillingPeriodByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listForBillingPeriodByDepartmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -1069,6 +1083,7 @@ func (client MarketplacesClient) ListForBillingPeriodByEnrollmentAccount(ctx con result.mlr, err = client.ListForBillingPeriodByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "ListForBillingPeriodByEnrollmentAccount", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1141,6 +1156,7 @@ func (client MarketplacesClient) listForBillingPeriodByEnrollmentAccountNextResu result, err = client.ListForBillingPeriodByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listForBillingPeriodByEnrollmentAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-06-30/consumption/operations.go b/services/consumption/mgmt/2018-06-30/consumption/operations.go index 5c64c8fcf60f..a4163f8e3efa 100644 --- a/services/consumption/mgmt/2018-06-30/consumption/operations.go +++ b/services/consumption/mgmt/2018-06-30/consumption/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-06-30/consumption/pricesheet.go b/services/consumption/mgmt/2018-06-30/consumption/pricesheet.go index c1d5530b5728..793149d9110a 100644 --- a/services/consumption/mgmt/2018-06-30/consumption/pricesheet.go +++ b/services/consumption/mgmt/2018-06-30/consumption/pricesheet.go @@ -88,6 +88,7 @@ func (client PriceSheetClient) Get(ctx context.Context, expand string, skiptoken result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.PriceSheetClient", "Get", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client PriceSheetClient) GetByBillingPeriod(ctx context.Context, billingPe result, err = client.GetByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.PriceSheetClient", "GetByBillingPeriod", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-06-30/consumption/reservationrecommendations.go b/services/consumption/mgmt/2018-06-30/consumption/reservationrecommendations.go index 8c5caccad4bc..e14c39e33efc 100644 --- a/services/consumption/mgmt/2018-06-30/consumption/reservationrecommendations.go +++ b/services/consumption/mgmt/2018-06-30/consumption/reservationrecommendations.go @@ -74,6 +74,7 @@ func (client ReservationRecommendationsClient) List(ctx context.Context, filter result.rrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationRecommendationsClient", "List", resp, "Failure responding to request") + return } if result.rrlr.hasNextLink() && result.rrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client ReservationRecommendationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationRecommendationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-06-30/consumption/reservationsdetails.go b/services/consumption/mgmt/2018-06-30/consumption/reservationsdetails.go index 8b10b14abd25..d165e40c3493 100644 --- a/services/consumption/mgmt/2018-06-30/consumption/reservationsdetails.go +++ b/services/consumption/mgmt/2018-06-30/consumption/reservationsdetails.go @@ -76,6 +76,7 @@ func (client ReservationsDetailsClient) ListByReservationOrder(ctx context.Conte result.rdlr, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "ListByReservationOrder", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client ReservationsDetailsClient) listByReservationOrderNextResults(ctx co result, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "listByReservationOrderNextResults", resp, "Failure responding to next results request") + return } return } @@ -193,6 +195,7 @@ func (client ReservationsDetailsClient) ListByReservationOrderAndReservation(ctx result.rdlr, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "ListByReservationOrderAndReservation", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -257,6 +260,7 @@ func (client ReservationsDetailsClient) listByReservationOrderAndReservationNext result, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "listByReservationOrderAndReservationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-06-30/consumption/reservationssummaries.go b/services/consumption/mgmt/2018-06-30/consumption/reservationssummaries.go index 277f9e74c2ed..26ba8849b75e 100644 --- a/services/consumption/mgmt/2018-06-30/consumption/reservationssummaries.go +++ b/services/consumption/mgmt/2018-06-30/consumption/reservationssummaries.go @@ -77,6 +77,7 @@ func (client ReservationsSummariesClient) ListByReservationOrder(ctx context.Con result.rslr, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "ListByReservationOrder", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client ReservationsSummariesClient) listByReservationOrderNextResults(ctx result, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "listByReservationOrderNextResults", resp, "Failure responding to next results request") + return } return } @@ -198,6 +200,7 @@ func (client ReservationsSummariesClient) ListByReservationOrderAndReservation(c result.rslr, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "ListByReservationOrderAndReservation", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -265,6 +268,7 @@ func (client ReservationsSummariesClient) listByReservationOrderAndReservationNe result, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "listByReservationOrderAndReservationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-06-30/consumption/tags.go b/services/consumption/mgmt/2018-06-30/consumption/tags.go index ab789aa4af84..9450d99fc227 100644 --- a/services/consumption/mgmt/2018-06-30/consumption/tags.go +++ b/services/consumption/mgmt/2018-06-30/consumption/tags.go @@ -72,6 +72,7 @@ func (client TagsClient) Get(ctx context.Context, billingAccountID string) (resu result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.TagsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-06-30/consumption/usagedetails.go b/services/consumption/mgmt/2018-06-30/consumption/usagedetails.go index adef0c1da7ab..b5d2f3aefe31 100644 --- a/services/consumption/mgmt/2018-06-30/consumption/usagedetails.go +++ b/services/consumption/mgmt/2018-06-30/consumption/usagedetails.go @@ -94,6 +94,7 @@ func (client UsageDetailsClient) List(ctx context.Context, expand string, filter result.udlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "List", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -171,6 +172,7 @@ func (client UsageDetailsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -243,6 +245,7 @@ func (client UsageDetailsClient) ListByBillingAccount(ctx context.Context, billi result.udlr, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListByBillingAccount", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -320,6 +323,7 @@ func (client UsageDetailsClient) listByBillingAccountNextResults(ctx context.Con result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listByBillingAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -393,6 +397,7 @@ func (client UsageDetailsClient) ListByBillingPeriod(ctx context.Context, billin result.udlr, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListByBillingPeriod", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -471,6 +476,7 @@ func (client UsageDetailsClient) listByBillingPeriodNextResults(ctx context.Cont result, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listByBillingPeriodNextResults", resp, "Failure responding to next results request") + return } return } @@ -543,6 +549,7 @@ func (client UsageDetailsClient) ListByDepartment(ctx context.Context, departmen result.udlr, err = client.ListByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListByDepartment", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -620,6 +627,7 @@ func (client UsageDetailsClient) listByDepartmentNextResults(ctx context.Context result, err = client.ListByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listByDepartmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -692,6 +700,7 @@ func (client UsageDetailsClient) ListByEnrollmentAccount(ctx context.Context, en result.udlr, err = client.ListByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListByEnrollmentAccount", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -769,6 +778,7 @@ func (client UsageDetailsClient) listByEnrollmentAccountNextResults(ctx context. result, err = client.ListByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listByEnrollmentAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -841,6 +851,7 @@ func (client UsageDetailsClient) ListByManagementGroup(ctx context.Context, mana result.udlr, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListByManagementGroup", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -918,6 +929,7 @@ func (client UsageDetailsClient) listByManagementGroupNextResults(ctx context.Co result, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listByManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -992,6 +1004,7 @@ func (client UsageDetailsClient) ListForBillingPeriodByBillingAccount(ctx contex result.udlr, err = client.ListForBillingPeriodByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListForBillingPeriodByBillingAccount", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1070,6 +1083,7 @@ func (client UsageDetailsClient) listForBillingPeriodByBillingAccountNextResults result, err = client.ListForBillingPeriodByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listForBillingPeriodByBillingAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -1144,6 +1158,7 @@ func (client UsageDetailsClient) ListForBillingPeriodByDepartment(ctx context.Co result.udlr, err = client.ListForBillingPeriodByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListForBillingPeriodByDepartment", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1222,6 +1237,7 @@ func (client UsageDetailsClient) listForBillingPeriodByDepartmentNextResults(ctx result, err = client.ListForBillingPeriodByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listForBillingPeriodByDepartmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -1296,6 +1312,7 @@ func (client UsageDetailsClient) ListForBillingPeriodByEnrollmentAccount(ctx con result.udlr, err = client.ListForBillingPeriodByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListForBillingPeriodByEnrollmentAccount", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1374,6 +1391,7 @@ func (client UsageDetailsClient) listForBillingPeriodByEnrollmentAccountNextResu result, err = client.ListForBillingPeriodByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listForBillingPeriodByEnrollmentAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -1448,6 +1466,7 @@ func (client UsageDetailsClient) ListForBillingPeriodByManagementGroup(ctx conte result.udlr, err = client.ListForBillingPeriodByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListForBillingPeriodByManagementGroup", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1526,6 +1545,7 @@ func (client UsageDetailsClient) listForBillingPeriodByManagementGroupNextResult result, err = client.ListForBillingPeriodByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listForBillingPeriodByManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-08-31/consumption/aggregatedcost.go b/services/consumption/mgmt/2018-08-31/consumption/aggregatedcost.go index 3c5297ae374f..bcd56855fde7 100644 --- a/services/consumption/mgmt/2018-08-31/consumption/aggregatedcost.go +++ b/services/consumption/mgmt/2018-08-31/consumption/aggregatedcost.go @@ -76,6 +76,7 @@ func (client AggregatedCostClient) GetByManagementGroup(ctx context.Context, man result, err = client.GetByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.AggregatedCostClient", "GetByManagementGroup", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client AggregatedCostClient) GetForBillingPeriodByManagementGroup(ctx cont result, err = client.GetForBillingPeriodByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.AggregatedCostClient", "GetForBillingPeriodByManagementGroup", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-08-31/consumption/balances.go b/services/consumption/mgmt/2018-08-31/consumption/balances.go index 8095bbee5192..5b9e46c2efbd 100644 --- a/services/consumption/mgmt/2018-08-31/consumption/balances.go +++ b/services/consumption/mgmt/2018-08-31/consumption/balances.go @@ -73,6 +73,7 @@ func (client BalancesClient) GetByBillingAccount(ctx context.Context, billingAcc result, err = client.GetByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BalancesClient", "GetByBillingAccount", resp, "Failure responding to request") + return } return @@ -147,6 +148,7 @@ func (client BalancesClient) GetForBillingPeriodByBillingAccount(ctx context.Con result, err = client.GetForBillingPeriodByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BalancesClient", "GetForBillingPeriodByBillingAccount", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-08-31/consumption/budgets.go b/services/consumption/mgmt/2018-08-31/consumption/budgets.go index 62cefda41d77..dbae4510f173 100644 --- a/services/consumption/mgmt/2018-08-31/consumption/budgets.go +++ b/services/consumption/mgmt/2018-08-31/consumption/budgets.go @@ -100,6 +100,7 @@ func (client BudgetsClient) CreateOrUpdate(ctx context.Context, budgetName strin result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -203,6 +204,7 @@ func (client BudgetsClient) CreateOrUpdateByResourceGroupName(ctx context.Contex result, err = client.CreateOrUpdateByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "CreateOrUpdateByResourceGroupName", resp, "Failure responding to request") + return } return @@ -279,6 +281,7 @@ func (client BudgetsClient) Delete(ctx context.Context, budgetName string) (resu result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -352,6 +355,7 @@ func (client BudgetsClient) DeleteByResourceGroupName(ctx context.Context, resou result, err = client.DeleteByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "DeleteByResourceGroupName", resp, "Failure responding to request") + return } return @@ -425,6 +429,7 @@ func (client BudgetsClient) Get(ctx context.Context, budgetName string) (result result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "Get", resp, "Failure responding to request") + return } return @@ -499,6 +504,7 @@ func (client BudgetsClient) GetByResourceGroupName(ctx context.Context, resource result, err = client.GetByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "GetByResourceGroupName", resp, "Failure responding to request") + return } return @@ -572,6 +578,7 @@ func (client BudgetsClient) List(ctx context.Context) (result BudgetsListResultP result.blr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "List", resp, "Failure responding to request") + return } if result.blr.hasNextLink() && result.blr.IsEmpty() { err = result.NextWithContext(ctx) @@ -634,6 +641,7 @@ func (client BudgetsClient) listNextResults(ctx context.Context, lastResults Bud result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -685,6 +693,7 @@ func (client BudgetsClient) ListByResourceGroupName(ctx context.Context, resourc result.blr, err = client.ListByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "ListByResourceGroupName", resp, "Failure responding to request") + return } if result.blr.hasNextLink() && result.blr.IsEmpty() { err = result.NextWithContext(ctx) @@ -748,6 +757,7 @@ func (client BudgetsClient) listByResourceGroupNameNextResults(ctx context.Conte result, err = client.ListByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "listByResourceGroupNameNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-08-31/consumption/charges.go b/services/consumption/mgmt/2018-08-31/consumption/charges.go index 0a15b2d4b930..9c25978a2a9d 100644 --- a/services/consumption/mgmt/2018-08-31/consumption/charges.go +++ b/services/consumption/mgmt/2018-08-31/consumption/charges.go @@ -76,6 +76,7 @@ func (client ChargesClient) ListByDepartment(ctx context.Context, billingAccount result, err = client.ListByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ChargesClient", "ListByDepartment", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client ChargesClient) ListByEnrollmentAccount(ctx context.Context, billing result, err = client.ListByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ChargesClient", "ListByEnrollmentAccount", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client ChargesClient) ListForBillingPeriodByDepartment(ctx context.Context result, err = client.ListForBillingPeriodByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ChargesClient", "ListForBillingPeriodByDepartment", resp, "Failure responding to request") + return } return @@ -319,6 +322,7 @@ func (client ChargesClient) ListForBillingPeriodByEnrollmentAccount(ctx context. result, err = client.ListForBillingPeriodByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ChargesClient", "ListForBillingPeriodByEnrollmentAccount", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-08-31/consumption/forecasts.go b/services/consumption/mgmt/2018-08-31/consumption/forecasts.go index 72e0c20cf5b7..6c3543e805db 100644 --- a/services/consumption/mgmt/2018-08-31/consumption/forecasts.go +++ b/services/consumption/mgmt/2018-08-31/consumption/forecasts.go @@ -74,6 +74,7 @@ func (client ForecastsClient) List(ctx context.Context, filter string) (result F result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ForecastsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-08-31/consumption/marketplaces.go b/services/consumption/mgmt/2018-08-31/consumption/marketplaces.go index 67fc9fb30855..114c4fc5521e 100644 --- a/services/consumption/mgmt/2018-08-31/consumption/marketplaces.go +++ b/services/consumption/mgmt/2018-08-31/consumption/marketplaces.go @@ -90,6 +90,7 @@ func (client MarketplacesClient) List(ctx context.Context, filter string, top *i result.mlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "List", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -161,6 +162,7 @@ func (client MarketplacesClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -229,6 +231,7 @@ func (client MarketplacesClient) ListByBillingAccount(ctx context.Context, billi result.mlr, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "ListByBillingAccount", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -300,6 +303,7 @@ func (client MarketplacesClient) listByBillingAccountNextResults(ctx context.Con result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listByBillingAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -368,6 +372,7 @@ func (client MarketplacesClient) ListByBillingPeriod(ctx context.Context, billin result.mlr, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "ListByBillingPeriod", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -440,6 +445,7 @@ func (client MarketplacesClient) listByBillingPeriodNextResults(ctx context.Cont result, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listByBillingPeriodNextResults", resp, "Failure responding to next results request") + return } return } @@ -508,6 +514,7 @@ func (client MarketplacesClient) ListByDepartment(ctx context.Context, departmen result.mlr, err = client.ListByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "ListByDepartment", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -579,6 +586,7 @@ func (client MarketplacesClient) listByDepartmentNextResults(ctx context.Context result, err = client.ListByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listByDepartmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -647,6 +655,7 @@ func (client MarketplacesClient) ListByEnrollmentAccount(ctx context.Context, en result.mlr, err = client.ListByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "ListByEnrollmentAccount", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -718,6 +727,7 @@ func (client MarketplacesClient) listByEnrollmentAccountNextResults(ctx context. result, err = client.ListByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listByEnrollmentAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -787,6 +797,7 @@ func (client MarketplacesClient) ListForBillingPeriodByBillingAccount(ctx contex result.mlr, err = client.ListForBillingPeriodByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "ListForBillingPeriodByBillingAccount", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -859,6 +870,7 @@ func (client MarketplacesClient) listForBillingPeriodByBillingAccountNextResults result, err = client.ListForBillingPeriodByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listForBillingPeriodByBillingAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -928,6 +940,7 @@ func (client MarketplacesClient) ListForBillingPeriodByDepartment(ctx context.Co result.mlr, err = client.ListForBillingPeriodByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "ListForBillingPeriodByDepartment", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1000,6 +1013,7 @@ func (client MarketplacesClient) listForBillingPeriodByDepartmentNextResults(ctx result, err = client.ListForBillingPeriodByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listForBillingPeriodByDepartmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -1069,6 +1083,7 @@ func (client MarketplacesClient) ListForBillingPeriodByEnrollmentAccount(ctx con result.mlr, err = client.ListForBillingPeriodByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "ListForBillingPeriodByEnrollmentAccount", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1141,6 +1156,7 @@ func (client MarketplacesClient) listForBillingPeriodByEnrollmentAccountNextResu result, err = client.ListForBillingPeriodByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listForBillingPeriodByEnrollmentAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-08-31/consumption/operations.go b/services/consumption/mgmt/2018-08-31/consumption/operations.go index 7f603a8bce82..8f9db27d43dc 100644 --- a/services/consumption/mgmt/2018-08-31/consumption/operations.go +++ b/services/consumption/mgmt/2018-08-31/consumption/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-08-31/consumption/pricesheet.go b/services/consumption/mgmt/2018-08-31/consumption/pricesheet.go index 7aa259be674d..fdc0a7f3b41b 100644 --- a/services/consumption/mgmt/2018-08-31/consumption/pricesheet.go +++ b/services/consumption/mgmt/2018-08-31/consumption/pricesheet.go @@ -88,6 +88,7 @@ func (client PriceSheetClient) Get(ctx context.Context, expand string, skiptoken result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.PriceSheetClient", "Get", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client PriceSheetClient) GetByBillingPeriod(ctx context.Context, billingPe result, err = client.GetByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.PriceSheetClient", "GetByBillingPeriod", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-08-31/consumption/reservationrecommendations.go b/services/consumption/mgmt/2018-08-31/consumption/reservationrecommendations.go index 8e1e7d355748..53bbbebee45c 100644 --- a/services/consumption/mgmt/2018-08-31/consumption/reservationrecommendations.go +++ b/services/consumption/mgmt/2018-08-31/consumption/reservationrecommendations.go @@ -74,6 +74,7 @@ func (client ReservationRecommendationsClient) List(ctx context.Context, filter result.rrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationRecommendationsClient", "List", resp, "Failure responding to request") + return } if result.rrlr.hasNextLink() && result.rrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client ReservationRecommendationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationRecommendationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-08-31/consumption/reservationsdetails.go b/services/consumption/mgmt/2018-08-31/consumption/reservationsdetails.go index 59d01cf3b4aa..b868f97637be 100644 --- a/services/consumption/mgmt/2018-08-31/consumption/reservationsdetails.go +++ b/services/consumption/mgmt/2018-08-31/consumption/reservationsdetails.go @@ -76,6 +76,7 @@ func (client ReservationsDetailsClient) ListByReservationOrder(ctx context.Conte result.rdlr, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "ListByReservationOrder", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client ReservationsDetailsClient) listByReservationOrderNextResults(ctx co result, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "listByReservationOrderNextResults", resp, "Failure responding to next results request") + return } return } @@ -193,6 +195,7 @@ func (client ReservationsDetailsClient) ListByReservationOrderAndReservation(ctx result.rdlr, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "ListByReservationOrderAndReservation", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -257,6 +260,7 @@ func (client ReservationsDetailsClient) listByReservationOrderAndReservationNext result, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "listByReservationOrderAndReservationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-08-31/consumption/reservationssummaries.go b/services/consumption/mgmt/2018-08-31/consumption/reservationssummaries.go index 86d8934b83be..cec1c549c281 100644 --- a/services/consumption/mgmt/2018-08-31/consumption/reservationssummaries.go +++ b/services/consumption/mgmt/2018-08-31/consumption/reservationssummaries.go @@ -77,6 +77,7 @@ func (client ReservationsSummariesClient) ListByReservationOrder(ctx context.Con result.rslr, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "ListByReservationOrder", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client ReservationsSummariesClient) listByReservationOrderNextResults(ctx result, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "listByReservationOrderNextResults", resp, "Failure responding to next results request") + return } return } @@ -198,6 +200,7 @@ func (client ReservationsSummariesClient) ListByReservationOrderAndReservation(c result.rslr, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "ListByReservationOrderAndReservation", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -265,6 +268,7 @@ func (client ReservationsSummariesClient) listByReservationOrderAndReservationNe result, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "listByReservationOrderAndReservationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-08-31/consumption/tags.go b/services/consumption/mgmt/2018-08-31/consumption/tags.go index d615c7aadda6..a41d5654c40d 100644 --- a/services/consumption/mgmt/2018-08-31/consumption/tags.go +++ b/services/consumption/mgmt/2018-08-31/consumption/tags.go @@ -72,6 +72,7 @@ func (client TagsClient) Get(ctx context.Context, billingAccountID string) (resu result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.TagsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-08-31/consumption/usagedetails.go b/services/consumption/mgmt/2018-08-31/consumption/usagedetails.go index 10687ee362db..c3bc46579875 100644 --- a/services/consumption/mgmt/2018-08-31/consumption/usagedetails.go +++ b/services/consumption/mgmt/2018-08-31/consumption/usagedetails.go @@ -94,6 +94,7 @@ func (client UsageDetailsClient) List(ctx context.Context, expand string, filter result.udlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "List", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -171,6 +172,7 @@ func (client UsageDetailsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -243,6 +245,7 @@ func (client UsageDetailsClient) ListByBillingAccount(ctx context.Context, billi result.udlr, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListByBillingAccount", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -320,6 +323,7 @@ func (client UsageDetailsClient) listByBillingAccountNextResults(ctx context.Con result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listByBillingAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -393,6 +397,7 @@ func (client UsageDetailsClient) ListByBillingPeriod(ctx context.Context, billin result.udlr, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListByBillingPeriod", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -471,6 +476,7 @@ func (client UsageDetailsClient) listByBillingPeriodNextResults(ctx context.Cont result, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listByBillingPeriodNextResults", resp, "Failure responding to next results request") + return } return } @@ -543,6 +549,7 @@ func (client UsageDetailsClient) ListByDepartment(ctx context.Context, departmen result.udlr, err = client.ListByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListByDepartment", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -620,6 +627,7 @@ func (client UsageDetailsClient) listByDepartmentNextResults(ctx context.Context result, err = client.ListByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listByDepartmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -692,6 +700,7 @@ func (client UsageDetailsClient) ListByEnrollmentAccount(ctx context.Context, en result.udlr, err = client.ListByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListByEnrollmentAccount", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -769,6 +778,7 @@ func (client UsageDetailsClient) listByEnrollmentAccountNextResults(ctx context. result, err = client.ListByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listByEnrollmentAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -841,6 +851,7 @@ func (client UsageDetailsClient) ListByManagementGroup(ctx context.Context, mana result.udlr, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListByManagementGroup", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -918,6 +929,7 @@ func (client UsageDetailsClient) listByManagementGroupNextResults(ctx context.Co result, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listByManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -992,6 +1004,7 @@ func (client UsageDetailsClient) ListForBillingPeriodByBillingAccount(ctx contex result.udlr, err = client.ListForBillingPeriodByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListForBillingPeriodByBillingAccount", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1070,6 +1083,7 @@ func (client UsageDetailsClient) listForBillingPeriodByBillingAccountNextResults result, err = client.ListForBillingPeriodByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listForBillingPeriodByBillingAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -1144,6 +1158,7 @@ func (client UsageDetailsClient) ListForBillingPeriodByDepartment(ctx context.Co result.udlr, err = client.ListForBillingPeriodByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListForBillingPeriodByDepartment", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1222,6 +1237,7 @@ func (client UsageDetailsClient) listForBillingPeriodByDepartmentNextResults(ctx result, err = client.ListForBillingPeriodByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listForBillingPeriodByDepartmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -1296,6 +1312,7 @@ func (client UsageDetailsClient) ListForBillingPeriodByEnrollmentAccount(ctx con result.udlr, err = client.ListForBillingPeriodByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListForBillingPeriodByEnrollmentAccount", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1374,6 +1391,7 @@ func (client UsageDetailsClient) listForBillingPeriodByEnrollmentAccountNextResu result, err = client.ListForBillingPeriodByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listForBillingPeriodByEnrollmentAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -1448,6 +1466,7 @@ func (client UsageDetailsClient) ListForBillingPeriodByManagementGroup(ctx conte result.udlr, err = client.ListForBillingPeriodByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListForBillingPeriodByManagementGroup", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1526,6 +1545,7 @@ func (client UsageDetailsClient) listForBillingPeriodByManagementGroupNextResult result, err = client.ListForBillingPeriodByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listForBillingPeriodByManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-10-01/consumption/aggregatedcost.go b/services/consumption/mgmt/2018-10-01/consumption/aggregatedcost.go index 3f3d8047922f..d2f7a6a8eb38 100644 --- a/services/consumption/mgmt/2018-10-01/consumption/aggregatedcost.go +++ b/services/consumption/mgmt/2018-10-01/consumption/aggregatedcost.go @@ -76,6 +76,7 @@ func (client AggregatedCostClient) GetByManagementGroup(ctx context.Context, man result, err = client.GetByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.AggregatedCostClient", "GetByManagementGroup", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client AggregatedCostClient) GetForBillingPeriodByManagementGroup(ctx cont result, err = client.GetForBillingPeriodByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.AggregatedCostClient", "GetForBillingPeriodByManagementGroup", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-10-01/consumption/balances.go b/services/consumption/mgmt/2018-10-01/consumption/balances.go index 2a1f0316ad90..bf5806bb7d3c 100644 --- a/services/consumption/mgmt/2018-10-01/consumption/balances.go +++ b/services/consumption/mgmt/2018-10-01/consumption/balances.go @@ -73,6 +73,7 @@ func (client BalancesClient) GetByBillingAccount(ctx context.Context, billingAcc result, err = client.GetByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BalancesClient", "GetByBillingAccount", resp, "Failure responding to request") + return } return @@ -147,6 +148,7 @@ func (client BalancesClient) GetForBillingPeriodByBillingAccount(ctx context.Con result, err = client.GetForBillingPeriodByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BalancesClient", "GetForBillingPeriodByBillingAccount", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-10-01/consumption/budgets.go b/services/consumption/mgmt/2018-10-01/consumption/budgets.go index cacfae3ce9dc..3d29564d3746 100644 --- a/services/consumption/mgmt/2018-10-01/consumption/budgets.go +++ b/services/consumption/mgmt/2018-10-01/consumption/budgets.go @@ -100,6 +100,7 @@ func (client BudgetsClient) CreateOrUpdate(ctx context.Context, budgetName strin result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -203,6 +204,7 @@ func (client BudgetsClient) CreateOrUpdateByResourceGroupName(ctx context.Contex result, err = client.CreateOrUpdateByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "CreateOrUpdateByResourceGroupName", resp, "Failure responding to request") + return } return @@ -279,6 +281,7 @@ func (client BudgetsClient) Delete(ctx context.Context, budgetName string) (resu result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -352,6 +355,7 @@ func (client BudgetsClient) DeleteByResourceGroupName(ctx context.Context, resou result, err = client.DeleteByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "DeleteByResourceGroupName", resp, "Failure responding to request") + return } return @@ -425,6 +429,7 @@ func (client BudgetsClient) Get(ctx context.Context, budgetName string) (result result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "Get", resp, "Failure responding to request") + return } return @@ -499,6 +504,7 @@ func (client BudgetsClient) GetByResourceGroupName(ctx context.Context, resource result, err = client.GetByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "GetByResourceGroupName", resp, "Failure responding to request") + return } return @@ -572,6 +578,7 @@ func (client BudgetsClient) List(ctx context.Context) (result BudgetsListResultP result.blr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "List", resp, "Failure responding to request") + return } if result.blr.hasNextLink() && result.blr.IsEmpty() { err = result.NextWithContext(ctx) @@ -634,6 +641,7 @@ func (client BudgetsClient) listNextResults(ctx context.Context, lastResults Bud result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -685,6 +693,7 @@ func (client BudgetsClient) ListByResourceGroupName(ctx context.Context, resourc result.blr, err = client.ListByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "ListByResourceGroupName", resp, "Failure responding to request") + return } if result.blr.hasNextLink() && result.blr.IsEmpty() { err = result.NextWithContext(ctx) @@ -748,6 +757,7 @@ func (client BudgetsClient) listByResourceGroupNameNextResults(ctx context.Conte result, err = client.ListByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "listByResourceGroupNameNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-10-01/consumption/charges.go b/services/consumption/mgmt/2018-10-01/consumption/charges.go index 0b531921df64..67678c5c6d27 100644 --- a/services/consumption/mgmt/2018-10-01/consumption/charges.go +++ b/services/consumption/mgmt/2018-10-01/consumption/charges.go @@ -76,6 +76,7 @@ func (client ChargesClient) ListByDepartment(ctx context.Context, billingAccount result, err = client.ListByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ChargesClient", "ListByDepartment", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client ChargesClient) ListByEnrollmentAccount(ctx context.Context, billing result, err = client.ListByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ChargesClient", "ListByEnrollmentAccount", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client ChargesClient) ListForBillingPeriodByDepartment(ctx context.Context result, err = client.ListForBillingPeriodByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ChargesClient", "ListForBillingPeriodByDepartment", resp, "Failure responding to request") + return } return @@ -319,6 +322,7 @@ func (client ChargesClient) ListForBillingPeriodByEnrollmentAccount(ctx context. result, err = client.ListForBillingPeriodByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ChargesClient", "ListForBillingPeriodByEnrollmentAccount", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-10-01/consumption/forecasts.go b/services/consumption/mgmt/2018-10-01/consumption/forecasts.go index a09c1e4ea974..f03691cfb914 100644 --- a/services/consumption/mgmt/2018-10-01/consumption/forecasts.go +++ b/services/consumption/mgmt/2018-10-01/consumption/forecasts.go @@ -74,6 +74,7 @@ func (client ForecastsClient) List(ctx context.Context, filter string) (result F result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ForecastsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-10-01/consumption/marketplaces.go b/services/consumption/mgmt/2018-10-01/consumption/marketplaces.go index faa0d97597b7..fbadf524944f 100644 --- a/services/consumption/mgmt/2018-10-01/consumption/marketplaces.go +++ b/services/consumption/mgmt/2018-10-01/consumption/marketplaces.go @@ -90,6 +90,7 @@ func (client MarketplacesClient) List(ctx context.Context, filter string, top *i result.mlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "List", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -161,6 +162,7 @@ func (client MarketplacesClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -229,6 +231,7 @@ func (client MarketplacesClient) ListByBillingAccount(ctx context.Context, billi result.mlr, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "ListByBillingAccount", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -300,6 +303,7 @@ func (client MarketplacesClient) listByBillingAccountNextResults(ctx context.Con result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listByBillingAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -368,6 +372,7 @@ func (client MarketplacesClient) ListByBillingPeriod(ctx context.Context, billin result.mlr, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "ListByBillingPeriod", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -440,6 +445,7 @@ func (client MarketplacesClient) listByBillingPeriodNextResults(ctx context.Cont result, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listByBillingPeriodNextResults", resp, "Failure responding to next results request") + return } return } @@ -508,6 +514,7 @@ func (client MarketplacesClient) ListByDepartment(ctx context.Context, departmen result.mlr, err = client.ListByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "ListByDepartment", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -579,6 +586,7 @@ func (client MarketplacesClient) listByDepartmentNextResults(ctx context.Context result, err = client.ListByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listByDepartmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -647,6 +655,7 @@ func (client MarketplacesClient) ListByEnrollmentAccount(ctx context.Context, en result.mlr, err = client.ListByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "ListByEnrollmentAccount", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -718,6 +727,7 @@ func (client MarketplacesClient) listByEnrollmentAccountNextResults(ctx context. result, err = client.ListByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listByEnrollmentAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -786,6 +796,7 @@ func (client MarketplacesClient) ListByManagementGroup(ctx context.Context, mana result.mlr, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "ListByManagementGroup", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -857,6 +868,7 @@ func (client MarketplacesClient) listByManagementGroupNextResults(ctx context.Co result, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listByManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -926,6 +938,7 @@ func (client MarketplacesClient) ListForBillingPeriodByBillingAccount(ctx contex result.mlr, err = client.ListForBillingPeriodByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "ListForBillingPeriodByBillingAccount", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -998,6 +1011,7 @@ func (client MarketplacesClient) listForBillingPeriodByBillingAccountNextResults result, err = client.ListForBillingPeriodByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listForBillingPeriodByBillingAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -1067,6 +1081,7 @@ func (client MarketplacesClient) ListForBillingPeriodByDepartment(ctx context.Co result.mlr, err = client.ListForBillingPeriodByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "ListForBillingPeriodByDepartment", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1139,6 +1154,7 @@ func (client MarketplacesClient) listForBillingPeriodByDepartmentNextResults(ctx result, err = client.ListForBillingPeriodByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listForBillingPeriodByDepartmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -1208,6 +1224,7 @@ func (client MarketplacesClient) ListForBillingPeriodByEnrollmentAccount(ctx con result.mlr, err = client.ListForBillingPeriodByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "ListForBillingPeriodByEnrollmentAccount", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1280,6 +1297,7 @@ func (client MarketplacesClient) listForBillingPeriodByEnrollmentAccountNextResu result, err = client.ListForBillingPeriodByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listForBillingPeriodByEnrollmentAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -1349,6 +1367,7 @@ func (client MarketplacesClient) ListForBillingPeriodByManagementGroup(ctx conte result.mlr, err = client.ListForBillingPeriodByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "ListForBillingPeriodByManagementGroup", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1421,6 +1440,7 @@ func (client MarketplacesClient) listForBillingPeriodByManagementGroupNextResult result, err = client.ListForBillingPeriodByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listForBillingPeriodByManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-10-01/consumption/operations.go b/services/consumption/mgmt/2018-10-01/consumption/operations.go index f5b8b95f20d9..c1031b66b516 100644 --- a/services/consumption/mgmt/2018-10-01/consumption/operations.go +++ b/services/consumption/mgmt/2018-10-01/consumption/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-10-01/consumption/pricesheet.go b/services/consumption/mgmt/2018-10-01/consumption/pricesheet.go index a9c81d563ab6..ddec1597add7 100644 --- a/services/consumption/mgmt/2018-10-01/consumption/pricesheet.go +++ b/services/consumption/mgmt/2018-10-01/consumption/pricesheet.go @@ -88,6 +88,7 @@ func (client PriceSheetClient) Get(ctx context.Context, expand string, skiptoken result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.PriceSheetClient", "Get", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client PriceSheetClient) GetByBillingPeriod(ctx context.Context, billingPe result, err = client.GetByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.PriceSheetClient", "GetByBillingPeriod", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-10-01/consumption/reservationrecommendations.go b/services/consumption/mgmt/2018-10-01/consumption/reservationrecommendations.go index 9bd7cca35728..6a4342773ea3 100644 --- a/services/consumption/mgmt/2018-10-01/consumption/reservationrecommendations.go +++ b/services/consumption/mgmt/2018-10-01/consumption/reservationrecommendations.go @@ -74,6 +74,7 @@ func (client ReservationRecommendationsClient) List(ctx context.Context, filter result.rrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationRecommendationsClient", "List", resp, "Failure responding to request") + return } if result.rrlr.hasNextLink() && result.rrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client ReservationRecommendationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationRecommendationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-10-01/consumption/reservationsdetails.go b/services/consumption/mgmt/2018-10-01/consumption/reservationsdetails.go index ec7d05bad106..142723f43de9 100644 --- a/services/consumption/mgmt/2018-10-01/consumption/reservationsdetails.go +++ b/services/consumption/mgmt/2018-10-01/consumption/reservationsdetails.go @@ -76,6 +76,7 @@ func (client ReservationsDetailsClient) ListByReservationOrder(ctx context.Conte result.rdlr, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "ListByReservationOrder", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client ReservationsDetailsClient) listByReservationOrderNextResults(ctx co result, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "listByReservationOrderNextResults", resp, "Failure responding to next results request") + return } return } @@ -193,6 +195,7 @@ func (client ReservationsDetailsClient) ListByReservationOrderAndReservation(ctx result.rdlr, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "ListByReservationOrderAndReservation", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -257,6 +260,7 @@ func (client ReservationsDetailsClient) listByReservationOrderAndReservationNext result, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "listByReservationOrderAndReservationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-10-01/consumption/reservationssummaries.go b/services/consumption/mgmt/2018-10-01/consumption/reservationssummaries.go index ea2d310d8977..171b756a9c90 100644 --- a/services/consumption/mgmt/2018-10-01/consumption/reservationssummaries.go +++ b/services/consumption/mgmt/2018-10-01/consumption/reservationssummaries.go @@ -77,6 +77,7 @@ func (client ReservationsSummariesClient) ListByReservationOrder(ctx context.Con result.rslr, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "ListByReservationOrder", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client ReservationsSummariesClient) listByReservationOrderNextResults(ctx result, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "listByReservationOrderNextResults", resp, "Failure responding to next results request") + return } return } @@ -198,6 +200,7 @@ func (client ReservationsSummariesClient) ListByReservationOrderAndReservation(c result.rslr, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "ListByReservationOrderAndReservation", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -265,6 +268,7 @@ func (client ReservationsSummariesClient) listByReservationOrderAndReservationNe result, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "listByReservationOrderAndReservationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2018-10-01/consumption/tags.go b/services/consumption/mgmt/2018-10-01/consumption/tags.go index cce42560be8d..8e7b7d936b01 100644 --- a/services/consumption/mgmt/2018-10-01/consumption/tags.go +++ b/services/consumption/mgmt/2018-10-01/consumption/tags.go @@ -72,6 +72,7 @@ func (client TagsClient) Get(ctx context.Context, billingAccountID string) (resu result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.TagsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-10-01/consumption/tenants.go b/services/consumption/mgmt/2018-10-01/consumption/tenants.go index 2dd37e384d73..9837f35696db 100644 --- a/services/consumption/mgmt/2018-10-01/consumption/tenants.go +++ b/services/consumption/mgmt/2018-10-01/consumption/tenants.go @@ -73,6 +73,7 @@ func (client TenantsClient) Get(ctx context.Context, billingAccountID string, bi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.TenantsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2018-10-01/consumption/usagedetails.go b/services/consumption/mgmt/2018-10-01/consumption/usagedetails.go index 0bced1c823db..aa7bcb124c0d 100644 --- a/services/consumption/mgmt/2018-10-01/consumption/usagedetails.go +++ b/services/consumption/mgmt/2018-10-01/consumption/usagedetails.go @@ -94,6 +94,7 @@ func (client UsageDetailsClient) List(ctx context.Context, expand string, filter result.udlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "List", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -171,6 +172,7 @@ func (client UsageDetailsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -243,6 +245,7 @@ func (client UsageDetailsClient) ListByBillingAccount(ctx context.Context, billi result.udlr, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListByBillingAccount", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -320,6 +323,7 @@ func (client UsageDetailsClient) listByBillingAccountNextResults(ctx context.Con result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listByBillingAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -393,6 +397,7 @@ func (client UsageDetailsClient) ListByBillingPeriod(ctx context.Context, billin result.udlr, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListByBillingPeriod", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -471,6 +476,7 @@ func (client UsageDetailsClient) listByBillingPeriodNextResults(ctx context.Cont result, err = client.ListByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listByBillingPeriodNextResults", resp, "Failure responding to next results request") + return } return } @@ -543,6 +549,7 @@ func (client UsageDetailsClient) ListByDepartment(ctx context.Context, departmen result.udlr, err = client.ListByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListByDepartment", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -620,6 +627,7 @@ func (client UsageDetailsClient) listByDepartmentNextResults(ctx context.Context result, err = client.ListByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listByDepartmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -692,6 +700,7 @@ func (client UsageDetailsClient) ListByEnrollmentAccount(ctx context.Context, en result.udlr, err = client.ListByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListByEnrollmentAccount", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -769,6 +778,7 @@ func (client UsageDetailsClient) listByEnrollmentAccountNextResults(ctx context. result, err = client.ListByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listByEnrollmentAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -841,6 +851,7 @@ func (client UsageDetailsClient) ListByManagementGroup(ctx context.Context, mana result.udlr, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListByManagementGroup", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -918,6 +929,7 @@ func (client UsageDetailsClient) listByManagementGroupNextResults(ctx context.Co result, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listByManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -992,6 +1004,7 @@ func (client UsageDetailsClient) ListForBillingPeriodByBillingAccount(ctx contex result.udlr, err = client.ListForBillingPeriodByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListForBillingPeriodByBillingAccount", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1070,6 +1083,7 @@ func (client UsageDetailsClient) listForBillingPeriodByBillingAccountNextResults result, err = client.ListForBillingPeriodByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listForBillingPeriodByBillingAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -1144,6 +1158,7 @@ func (client UsageDetailsClient) ListForBillingPeriodByDepartment(ctx context.Co result.udlr, err = client.ListForBillingPeriodByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListForBillingPeriodByDepartment", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1222,6 +1237,7 @@ func (client UsageDetailsClient) listForBillingPeriodByDepartmentNextResults(ctx result, err = client.ListForBillingPeriodByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listForBillingPeriodByDepartmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -1296,6 +1312,7 @@ func (client UsageDetailsClient) ListForBillingPeriodByEnrollmentAccount(ctx con result.udlr, err = client.ListForBillingPeriodByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListForBillingPeriodByEnrollmentAccount", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1374,6 +1391,7 @@ func (client UsageDetailsClient) listForBillingPeriodByEnrollmentAccountNextResu result, err = client.ListForBillingPeriodByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listForBillingPeriodByEnrollmentAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -1448,6 +1466,7 @@ func (client UsageDetailsClient) ListForBillingPeriodByManagementGroup(ctx conte result.udlr, err = client.ListForBillingPeriodByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "ListForBillingPeriodByManagementGroup", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1526,6 +1545,7 @@ func (client UsageDetailsClient) listForBillingPeriodByManagementGroupNextResult result, err = client.ListForBillingPeriodByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listForBillingPeriodByManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2019-01-01/consumption/aggregatedcost.go b/services/consumption/mgmt/2019-01-01/consumption/aggregatedcost.go index bbca1b0cb326..d4680cc18fb5 100644 --- a/services/consumption/mgmt/2019-01-01/consumption/aggregatedcost.go +++ b/services/consumption/mgmt/2019-01-01/consumption/aggregatedcost.go @@ -76,6 +76,7 @@ func (client AggregatedCostClient) GetByManagementGroup(ctx context.Context, man result, err = client.GetByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.AggregatedCostClient", "GetByManagementGroup", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client AggregatedCostClient) GetForBillingPeriodByManagementGroup(ctx cont result, err = client.GetForBillingPeriodByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.AggregatedCostClient", "GetForBillingPeriodByManagementGroup", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2019-01-01/consumption/balances.go b/services/consumption/mgmt/2019-01-01/consumption/balances.go index 4ce58aae0d65..94810b508e63 100644 --- a/services/consumption/mgmt/2019-01-01/consumption/balances.go +++ b/services/consumption/mgmt/2019-01-01/consumption/balances.go @@ -73,6 +73,7 @@ func (client BalancesClient) GetByBillingAccount(ctx context.Context, billingAcc result, err = client.GetByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BalancesClient", "GetByBillingAccount", resp, "Failure responding to request") + return } return @@ -147,6 +148,7 @@ func (client BalancesClient) GetForBillingPeriodByBillingAccount(ctx context.Con result, err = client.GetForBillingPeriodByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BalancesClient", "GetForBillingPeriodByBillingAccount", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2019-01-01/consumption/budgets.go b/services/consumption/mgmt/2019-01-01/consumption/budgets.go index b96a0a37e211..52c3fe663315 100644 --- a/services/consumption/mgmt/2019-01-01/consumption/budgets.go +++ b/services/consumption/mgmt/2019-01-01/consumption/budgets.go @@ -112,6 +112,7 @@ func (client BudgetsClient) CreateOrUpdate(ctx context.Context, scope string, bu result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -199,6 +200,7 @@ func (client BudgetsClient) Delete(ctx context.Context, scope string, budgetName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -283,6 +285,7 @@ func (client BudgetsClient) Get(ctx context.Context, scope string, budgetName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "Get", resp, "Failure responding to request") + return } return @@ -368,6 +371,7 @@ func (client BudgetsClient) List(ctx context.Context, scope string) (result Budg result.blr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "List", resp, "Failure responding to request") + return } if result.blr.hasNextLink() && result.blr.IsEmpty() { err = result.NextWithContext(ctx) @@ -430,6 +434,7 @@ func (client BudgetsClient) listNextResults(ctx context.Context, lastResults Bud result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2019-01-01/consumption/charges.go b/services/consumption/mgmt/2019-01-01/consumption/charges.go index aeee8749e219..7eb0bac7b2ed 100644 --- a/services/consumption/mgmt/2019-01-01/consumption/charges.go +++ b/services/consumption/mgmt/2019-01-01/consumption/charges.go @@ -82,6 +82,7 @@ func (client ChargesClient) ListByScope(ctx context.Context, scope string, filte result, err = client.ListByScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ChargesClient", "ListByScope", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2019-01-01/consumption/forecasts.go b/services/consumption/mgmt/2019-01-01/consumption/forecasts.go index d0787dc19c00..cb5f7d7c0b7d 100644 --- a/services/consumption/mgmt/2019-01-01/consumption/forecasts.go +++ b/services/consumption/mgmt/2019-01-01/consumption/forecasts.go @@ -74,6 +74,7 @@ func (client ForecastsClient) List(ctx context.Context, filter string) (result F result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ForecastsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2019-01-01/consumption/marketplaces.go b/services/consumption/mgmt/2019-01-01/consumption/marketplaces.go index bfab068eac52..e83fabaa25a3 100644 --- a/services/consumption/mgmt/2019-01-01/consumption/marketplaces.go +++ b/services/consumption/mgmt/2019-01-01/consumption/marketplaces.go @@ -99,6 +99,7 @@ func (client MarketplacesClient) List(ctx context.Context, scope string, filter result.mlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "List", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -170,6 +171,7 @@ func (client MarketplacesClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2019-01-01/consumption/operations.go b/services/consumption/mgmt/2019-01-01/consumption/operations.go index 2d0f7d15913f..c56730d5cdc2 100644 --- a/services/consumption/mgmt/2019-01-01/consumption/operations.go +++ b/services/consumption/mgmt/2019-01-01/consumption/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2019-01-01/consumption/pricesheet.go b/services/consumption/mgmt/2019-01-01/consumption/pricesheet.go index a086bc2e9b4a..92659b21846b 100644 --- a/services/consumption/mgmt/2019-01-01/consumption/pricesheet.go +++ b/services/consumption/mgmt/2019-01-01/consumption/pricesheet.go @@ -88,6 +88,7 @@ func (client PriceSheetClient) Get(ctx context.Context, expand string, skiptoken result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.PriceSheetClient", "Get", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client PriceSheetClient) GetByBillingPeriod(ctx context.Context, billingPe result, err = client.GetByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.PriceSheetClient", "GetByBillingPeriod", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2019-01-01/consumption/reservationrecommendations.go b/services/consumption/mgmt/2019-01-01/consumption/reservationrecommendations.go index ec8221026238..e3cb08d8d8a8 100644 --- a/services/consumption/mgmt/2019-01-01/consumption/reservationrecommendations.go +++ b/services/consumption/mgmt/2019-01-01/consumption/reservationrecommendations.go @@ -74,6 +74,7 @@ func (client ReservationRecommendationsClient) List(ctx context.Context, filter result.rrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationRecommendationsClient", "List", resp, "Failure responding to request") + return } if result.rrlr.hasNextLink() && result.rrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client ReservationRecommendationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationRecommendationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2019-01-01/consumption/reservationsdetails.go b/services/consumption/mgmt/2019-01-01/consumption/reservationsdetails.go index 913ebf2f1b94..1b2c4059cd09 100644 --- a/services/consumption/mgmt/2019-01-01/consumption/reservationsdetails.go +++ b/services/consumption/mgmt/2019-01-01/consumption/reservationsdetails.go @@ -76,6 +76,7 @@ func (client ReservationsDetailsClient) ListByReservationOrder(ctx context.Conte result.rdlr, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "ListByReservationOrder", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client ReservationsDetailsClient) listByReservationOrderNextResults(ctx co result, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "listByReservationOrderNextResults", resp, "Failure responding to next results request") + return } return } @@ -193,6 +195,7 @@ func (client ReservationsDetailsClient) ListByReservationOrderAndReservation(ctx result.rdlr, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "ListByReservationOrderAndReservation", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -257,6 +260,7 @@ func (client ReservationsDetailsClient) listByReservationOrderAndReservationNext result, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "listByReservationOrderAndReservationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2019-01-01/consumption/reservationssummaries.go b/services/consumption/mgmt/2019-01-01/consumption/reservationssummaries.go index c6368e91538e..96fcc325fccc 100644 --- a/services/consumption/mgmt/2019-01-01/consumption/reservationssummaries.go +++ b/services/consumption/mgmt/2019-01-01/consumption/reservationssummaries.go @@ -77,6 +77,7 @@ func (client ReservationsSummariesClient) ListByReservationOrder(ctx context.Con result.rslr, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "ListByReservationOrder", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client ReservationsSummariesClient) listByReservationOrderNextResults(ctx result, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "listByReservationOrderNextResults", resp, "Failure responding to next results request") + return } return } @@ -198,6 +200,7 @@ func (client ReservationsSummariesClient) ListByReservationOrderAndReservation(c result.rslr, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "ListByReservationOrderAndReservation", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -265,6 +268,7 @@ func (client ReservationsSummariesClient) listByReservationOrderAndReservationNe result, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "listByReservationOrderAndReservationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2019-01-01/consumption/tags.go b/services/consumption/mgmt/2019-01-01/consumption/tags.go index 5d530c660786..9d53aa5ae51a 100644 --- a/services/consumption/mgmt/2019-01-01/consumption/tags.go +++ b/services/consumption/mgmt/2019-01-01/consumption/tags.go @@ -79,6 +79,7 @@ func (client TagsClient) Get(ctx context.Context, scope string) (result TagsResu result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.TagsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2019-01-01/consumption/usagedetails.go b/services/consumption/mgmt/2019-01-01/consumption/usagedetails.go index d06c5e1bb2ce..a36f8a21ee8f 100644 --- a/services/consumption/mgmt/2019-01-01/consumption/usagedetails.go +++ b/services/consumption/mgmt/2019-01-01/consumption/usagedetails.go @@ -103,6 +103,7 @@ func (client UsageDetailsClient) List(ctx context.Context, scope string, expand result.udlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "List", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -180,6 +181,7 @@ func (client UsageDetailsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2019-10-01/consumption/aggregatedcost.go b/services/consumption/mgmt/2019-10-01/consumption/aggregatedcost.go index a7e87608381e..a2850fc77fb1 100644 --- a/services/consumption/mgmt/2019-10-01/consumption/aggregatedcost.go +++ b/services/consumption/mgmt/2019-10-01/consumption/aggregatedcost.go @@ -76,6 +76,7 @@ func (client AggregatedCostClient) GetByManagementGroup(ctx context.Context, man result, err = client.GetByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.AggregatedCostClient", "GetByManagementGroup", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client AggregatedCostClient) GetForBillingPeriodByManagementGroup(ctx cont result, err = client.GetForBillingPeriodByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.AggregatedCostClient", "GetForBillingPeriodByManagementGroup", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2019-10-01/consumption/balances.go b/services/consumption/mgmt/2019-10-01/consumption/balances.go index 293a18af8fc7..430dba5cf7a2 100644 --- a/services/consumption/mgmt/2019-10-01/consumption/balances.go +++ b/services/consumption/mgmt/2019-10-01/consumption/balances.go @@ -73,6 +73,7 @@ func (client BalancesClient) GetByBillingAccount(ctx context.Context, billingAcc result, err = client.GetByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BalancesClient", "GetByBillingAccount", resp, "Failure responding to request") + return } return @@ -147,6 +148,7 @@ func (client BalancesClient) GetForBillingPeriodByBillingAccount(ctx context.Con result, err = client.GetForBillingPeriodByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BalancesClient", "GetForBillingPeriodByBillingAccount", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2019-10-01/consumption/budgets.go b/services/consumption/mgmt/2019-10-01/consumption/budgets.go index f4966b22f593..d365b4688af2 100644 --- a/services/consumption/mgmt/2019-10-01/consumption/budgets.go +++ b/services/consumption/mgmt/2019-10-01/consumption/budgets.go @@ -129,6 +129,7 @@ func (client BudgetsClient) CreateOrUpdate(ctx context.Context, scope string, bu result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -216,6 +217,7 @@ func (client BudgetsClient) Delete(ctx context.Context, scope string, budgetName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -300,6 +302,7 @@ func (client BudgetsClient) Get(ctx context.Context, scope string, budgetName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "Get", resp, "Failure responding to request") + return } return @@ -385,6 +388,7 @@ func (client BudgetsClient) List(ctx context.Context, scope string) (result Budg result.blr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "List", resp, "Failure responding to request") + return } if result.blr.hasNextLink() && result.blr.IsEmpty() { err = result.NextWithContext(ctx) @@ -447,6 +451,7 @@ func (client BudgetsClient) listNextResults(ctx context.Context, lastResults Bud result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2019-10-01/consumption/charges.go b/services/consumption/mgmt/2019-10-01/consumption/charges.go index 8cdc1b12dffa..379a533fa69c 100644 --- a/services/consumption/mgmt/2019-10-01/consumption/charges.go +++ b/services/consumption/mgmt/2019-10-01/consumption/charges.go @@ -95,6 +95,7 @@ func (client ChargesClient) List(ctx context.Context, scope string, startDate st result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ChargesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2019-10-01/consumption/credits.go b/services/consumption/mgmt/2019-10-01/consumption/credits.go index d55556b19c4f..0567d6db2302 100644 --- a/services/consumption/mgmt/2019-10-01/consumption/credits.go +++ b/services/consumption/mgmt/2019-10-01/consumption/credits.go @@ -73,6 +73,7 @@ func (client CreditsClient) Get(ctx context.Context, billingAccountID string, bi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.CreditsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2019-10-01/consumption/events.go b/services/consumption/mgmt/2019-10-01/consumption/events.go index 828814ed859b..b779e639097e 100644 --- a/services/consumption/mgmt/2019-10-01/consumption/events.go +++ b/services/consumption/mgmt/2019-10-01/consumption/events.go @@ -76,6 +76,7 @@ func (client EventsClient) List(ctx context.Context, billingAccountID string, bi result.e, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.EventsClient", "List", resp, "Failure responding to request") + return } if result.e.hasNextLink() && result.e.IsEmpty() { err = result.NextWithContext(ctx) @@ -141,6 +142,7 @@ func (client EventsClient) listNextResults(ctx context.Context, lastResults Even result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.EventsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2019-10-01/consumption/forecasts.go b/services/consumption/mgmt/2019-10-01/consumption/forecasts.go index 293920885208..90ddcd9cd601 100644 --- a/services/consumption/mgmt/2019-10-01/consumption/forecasts.go +++ b/services/consumption/mgmt/2019-10-01/consumption/forecasts.go @@ -74,6 +74,7 @@ func (client ForecastsClient) List(ctx context.Context, filter string) (result F result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ForecastsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2019-10-01/consumption/lots.go b/services/consumption/mgmt/2019-10-01/consumption/lots.go index 7f4bb1725bef..63d3f87cb471 100644 --- a/services/consumption/mgmt/2019-10-01/consumption/lots.go +++ b/services/consumption/mgmt/2019-10-01/consumption/lots.go @@ -74,6 +74,7 @@ func (client LotsClient) List(ctx context.Context, billingAccountID string, bill result.l, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.LotsClient", "List", resp, "Failure responding to request") + return } if result.l.hasNextLink() && result.l.IsEmpty() { err = result.NextWithContext(ctx) @@ -137,6 +138,7 @@ func (client LotsClient) listNextResults(ctx context.Context, lastResults Lots) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.LotsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2019-10-01/consumption/marketplaces.go b/services/consumption/mgmt/2019-10-01/consumption/marketplaces.go index 98a86f59db2d..7fdb956391e7 100644 --- a/services/consumption/mgmt/2019-10-01/consumption/marketplaces.go +++ b/services/consumption/mgmt/2019-10-01/consumption/marketplaces.go @@ -99,6 +99,7 @@ func (client MarketplacesClient) List(ctx context.Context, scope string, filter result.mlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "List", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -170,6 +171,7 @@ func (client MarketplacesClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.MarketplacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2019-10-01/consumption/operations.go b/services/consumption/mgmt/2019-10-01/consumption/operations.go index 79c2ba577ce1..865bc1d3ce17 100644 --- a/services/consumption/mgmt/2019-10-01/consumption/operations.go +++ b/services/consumption/mgmt/2019-10-01/consumption/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2019-10-01/consumption/pricesheet.go b/services/consumption/mgmt/2019-10-01/consumption/pricesheet.go index b01b40c48772..20eef33da7ab 100644 --- a/services/consumption/mgmt/2019-10-01/consumption/pricesheet.go +++ b/services/consumption/mgmt/2019-10-01/consumption/pricesheet.go @@ -88,6 +88,7 @@ func (client PriceSheetClient) Get(ctx context.Context, expand string, skiptoken result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.PriceSheetClient", "Get", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client PriceSheetClient) GetByBillingPeriod(ctx context.Context, billingPe result, err = client.GetByBillingPeriodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.PriceSheetClient", "GetByBillingPeriod", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2019-10-01/consumption/reservationrecommendationdetails.go b/services/consumption/mgmt/2019-10-01/consumption/reservationrecommendationdetails.go index 7f8e9a5b3318..5a1d296f3b61 100644 --- a/services/consumption/mgmt/2019-10-01/consumption/reservationrecommendationdetails.go +++ b/services/consumption/mgmt/2019-10-01/consumption/reservationrecommendationdetails.go @@ -84,6 +84,7 @@ func (client ReservationRecommendationDetailsClient) Get(ctx context.Context, bi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationRecommendationDetailsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2019-10-01/consumption/reservationrecommendations.go b/services/consumption/mgmt/2019-10-01/consumption/reservationrecommendations.go index 8819741078e9..268342b47b8c 100644 --- a/services/consumption/mgmt/2019-10-01/consumption/reservationrecommendations.go +++ b/services/consumption/mgmt/2019-10-01/consumption/reservationrecommendations.go @@ -85,6 +85,7 @@ func (client ReservationRecommendationsClient) List(ctx context.Context, scope s result.rrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationRecommendationsClient", "List", resp, "Failure responding to request") + return } if result.rrlr.hasNextLink() && result.rrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -150,6 +151,7 @@ func (client ReservationRecommendationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationRecommendationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2019-10-01/consumption/reservationsdetails.go b/services/consumption/mgmt/2019-10-01/consumption/reservationsdetails.go index 833f4d7d5205..ec243d088d4b 100644 --- a/services/consumption/mgmt/2019-10-01/consumption/reservationsdetails.go +++ b/services/consumption/mgmt/2019-10-01/consumption/reservationsdetails.go @@ -85,6 +85,7 @@ func (client ReservationsDetailsClient) List(ctx context.Context, scope string, result.rdlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "List", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -162,6 +163,7 @@ func (client ReservationsDetailsClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -215,6 +217,7 @@ func (client ReservationsDetailsClient) ListByReservationOrder(ctx context.Conte result.rdlr, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "ListByReservationOrder", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -278,6 +281,7 @@ func (client ReservationsDetailsClient) listByReservationOrderNextResults(ctx co result, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "listByReservationOrderNextResults", resp, "Failure responding to next results request") + return } return } @@ -332,6 +336,7 @@ func (client ReservationsDetailsClient) ListByReservationOrderAndReservation(ctx result.rdlr, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "ListByReservationOrderAndReservation", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -396,6 +401,7 @@ func (client ReservationsDetailsClient) listByReservationOrderAndReservationNext result, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsDetailsClient", "listByReservationOrderAndReservationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2019-10-01/consumption/reservationssummaries.go b/services/consumption/mgmt/2019-10-01/consumption/reservationssummaries.go index cecf6569dc7d..fdc7208587c1 100644 --- a/services/consumption/mgmt/2019-10-01/consumption/reservationssummaries.go +++ b/services/consumption/mgmt/2019-10-01/consumption/reservationssummaries.go @@ -86,6 +86,7 @@ func (client ReservationsSummariesClient) List(ctx context.Context, scope string result.rslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "List", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -164,6 +165,7 @@ func (client ReservationsSummariesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -218,6 +220,7 @@ func (client ReservationsSummariesClient) ListByReservationOrder(ctx context.Con result.rslr, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "ListByReservationOrder", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -284,6 +287,7 @@ func (client ReservationsSummariesClient) listByReservationOrderNextResults(ctx result, err = client.ListByReservationOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "listByReservationOrderNextResults", resp, "Failure responding to next results request") + return } return } @@ -339,6 +343,7 @@ func (client ReservationsSummariesClient) ListByReservationOrderAndReservation(c result.rslr, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "ListByReservationOrderAndReservation", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -406,6 +411,7 @@ func (client ReservationsSummariesClient) listByReservationOrderAndReservationNe result, err = client.ListByReservationOrderAndReservationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationsSummariesClient", "listByReservationOrderAndReservationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2019-10-01/consumption/reservationtransactions.go b/services/consumption/mgmt/2019-10-01/consumption/reservationtransactions.go index ed850b2aa995..cda90bec3275 100644 --- a/services/consumption/mgmt/2019-10-01/consumption/reservationtransactions.go +++ b/services/consumption/mgmt/2019-10-01/consumption/reservationtransactions.go @@ -76,6 +76,7 @@ func (client ReservationTransactionsClient) List(ctx context.Context, billingAcc result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationTransactionsClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -141,6 +142,7 @@ func (client ReservationTransactionsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationTransactionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -195,6 +197,7 @@ func (client ReservationTransactionsClient) ListByBillingProfile(ctx context.Con result.mrtlr, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationTransactionsClient", "ListByBillingProfile", resp, "Failure responding to request") + return } if result.mrtlr.hasNextLink() && result.mrtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -261,6 +264,7 @@ func (client ReservationTransactionsClient) listByBillingProfileNextResults(ctx result, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.ReservationTransactionsClient", "listByBillingProfileNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/consumption/mgmt/2019-10-01/consumption/tags.go b/services/consumption/mgmt/2019-10-01/consumption/tags.go index 029236c3ba64..14b8e61d8401 100644 --- a/services/consumption/mgmt/2019-10-01/consumption/tags.go +++ b/services/consumption/mgmt/2019-10-01/consumption/tags.go @@ -79,6 +79,7 @@ func (client TagsClient) Get(ctx context.Context, scope string) (result TagsResu result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.TagsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/consumption/mgmt/2019-10-01/consumption/usagedetails.go b/services/consumption/mgmt/2019-10-01/consumption/usagedetails.go index 9938f630908e..9a31855727da 100644 --- a/services/consumption/mgmt/2019-10-01/consumption/usagedetails.go +++ b/services/consumption/mgmt/2019-10-01/consumption/usagedetails.go @@ -112,6 +112,7 @@ func (client UsageDetailsClient) List(ctx context.Context, scope string, expand result.udlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "List", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -189,6 +190,7 @@ func (client UsageDetailsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerinstance/mgmt/2018-04-01/containerinstance/containergroups.go b/services/containerinstance/mgmt/2018-04-01/containerinstance/containergroups.go index 8490b2410659..247979c2cfa6 100644 --- a/services/containerinstance/mgmt/2018-04-01/containerinstance/containergroups.go +++ b/services/containerinstance/mgmt/2018-04-01/containerinstance/containergroups.go @@ -164,6 +164,7 @@ func (client ContainerGroupsClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -241,6 +242,7 @@ func (client ContainerGroupsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +318,7 @@ func (client ContainerGroupsClient) List(ctx context.Context) (result ContainerG result.cglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "List", resp, "Failure responding to request") + return } if result.cglr.hasNextLink() && result.cglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -378,6 +381,7 @@ func (client ContainerGroupsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -431,6 +435,7 @@ func (client ContainerGroupsClient) ListByResourceGroup(ctx context.Context, res result.cglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cglr.hasNextLink() && result.cglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -494,6 +499,7 @@ func (client ContainerGroupsClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -546,6 +552,7 @@ func (client ContainerGroupsClient) Update(ctx context.Context, resourceGroupNam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/containerinstance/mgmt/2018-04-01/containerinstance/containergroupusage.go b/services/containerinstance/mgmt/2018-04-01/containerinstance/containergroupusage.go index 9b472c5e0ec3..a00a7b7c4fa5 100644 --- a/services/containerinstance/mgmt/2018-04-01/containerinstance/containergroupusage.go +++ b/services/containerinstance/mgmt/2018-04-01/containerinstance/containergroupusage.go @@ -72,6 +72,7 @@ func (client ContainerGroupUsageClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupUsageClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/containerinstance/mgmt/2018-04-01/containerinstance/containerlogs.go b/services/containerinstance/mgmt/2018-04-01/containerinstance/containerlogs.go index 27a41918133c..68799037abb5 100644 --- a/services/containerinstance/mgmt/2018-04-01/containerinstance/containerlogs.go +++ b/services/containerinstance/mgmt/2018-04-01/containerinstance/containerlogs.go @@ -75,6 +75,7 @@ func (client ContainerLogsClient) List(ctx context.Context, resourceGroupName st result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerLogsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/containerinstance/mgmt/2018-04-01/containerinstance/operations.go b/services/containerinstance/mgmt/2018-04-01/containerinstance/operations.go index 2197fd48cd9e..bcb7b8e2a2fb 100644 --- a/services/containerinstance/mgmt/2018-04-01/containerinstance/operations.go +++ b/services/containerinstance/mgmt/2018-04-01/containerinstance/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/containerinstance/mgmt/2018-04-01/containerinstance/startcontainer.go b/services/containerinstance/mgmt/2018-04-01/containerinstance/startcontainer.go index 3d569e6103f8..cb70c8fa3407 100644 --- a/services/containerinstance/mgmt/2018-04-01/containerinstance/startcontainer.go +++ b/services/containerinstance/mgmt/2018-04-01/containerinstance/startcontainer.go @@ -75,6 +75,7 @@ func (client StartContainerClient) LaunchExec(ctx context.Context, resourceGroup result, err = client.LaunchExecResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.StartContainerClient", "LaunchExec", resp, "Failure responding to request") + return } return diff --git a/services/containerinstance/mgmt/2018-06-01/containerinstance/container.go b/services/containerinstance/mgmt/2018-06-01/containerinstance/container.go index b720d5747bfc..e17103141fd9 100644 --- a/services/containerinstance/mgmt/2018-06-01/containerinstance/container.go +++ b/services/containerinstance/mgmt/2018-06-01/containerinstance/container.go @@ -75,6 +75,7 @@ func (client ContainerClient) ExecuteCommand(ctx context.Context, resourceGroupN result, err = client.ExecuteCommandResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerClient", "ExecuteCommand", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client ContainerClient) ListLogs(ctx context.Context, resourceGroupName st result, err = client.ListLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerClient", "ListLogs", resp, "Failure responding to request") + return } return diff --git a/services/containerinstance/mgmt/2018-06-01/containerinstance/containergroups.go b/services/containerinstance/mgmt/2018-06-01/containerinstance/containergroups.go index 6c32fc1b99f5..fc8bd11c2420 100644 --- a/services/containerinstance/mgmt/2018-06-01/containerinstance/containergroups.go +++ b/services/containerinstance/mgmt/2018-06-01/containerinstance/containergroups.go @@ -170,6 +170,7 @@ func (client ContainerGroupsClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -247,6 +248,7 @@ func (client ContainerGroupsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +324,7 @@ func (client ContainerGroupsClient) List(ctx context.Context) (result ContainerG result.cglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "List", resp, "Failure responding to request") + return } if result.cglr.hasNextLink() && result.cglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +387,7 @@ func (client ContainerGroupsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -437,6 +441,7 @@ func (client ContainerGroupsClient) ListByResourceGroup(ctx context.Context, res result.cglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cglr.hasNextLink() && result.cglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -500,6 +505,7 @@ func (client ContainerGroupsClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -626,6 +632,7 @@ func (client ContainerGroupsClient) Stop(ctx context.Context, resourceGroupName result, err = client.StopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Stop", resp, "Failure responding to request") + return } return @@ -701,6 +708,7 @@ func (client ContainerGroupsClient) Update(ctx context.Context, resourceGroupNam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/containerinstance/mgmt/2018-06-01/containerinstance/containergroupusage.go b/services/containerinstance/mgmt/2018-06-01/containerinstance/containergroupusage.go index 474a754e95a3..729a68a2c5c1 100644 --- a/services/containerinstance/mgmt/2018-06-01/containerinstance/containergroupusage.go +++ b/services/containerinstance/mgmt/2018-06-01/containerinstance/containergroupusage.go @@ -72,6 +72,7 @@ func (client ContainerGroupUsageClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupUsageClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/containerinstance/mgmt/2018-06-01/containerinstance/operations.go b/services/containerinstance/mgmt/2018-06-01/containerinstance/operations.go index f144616d0247..b6c81e69b49f 100644 --- a/services/containerinstance/mgmt/2018-06-01/containerinstance/operations.go +++ b/services/containerinstance/mgmt/2018-06-01/containerinstance/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/containerinstance/mgmt/2018-09-01/containerinstance/container.go b/services/containerinstance/mgmt/2018-09-01/containerinstance/container.go index cec7226f6ffd..ee5df37806dc 100644 --- a/services/containerinstance/mgmt/2018-09-01/containerinstance/container.go +++ b/services/containerinstance/mgmt/2018-09-01/containerinstance/container.go @@ -75,6 +75,7 @@ func (client ContainerClient) ExecuteCommand(ctx context.Context, resourceGroupN result, err = client.ExecuteCommandResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerClient", "ExecuteCommand", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client ContainerClient) ListLogs(ctx context.Context, resourceGroupName st result, err = client.ListLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerClient", "ListLogs", resp, "Failure responding to request") + return } return diff --git a/services/containerinstance/mgmt/2018-09-01/containerinstance/containergroups.go b/services/containerinstance/mgmt/2018-09-01/containerinstance/containergroups.go index d3895c2599c5..f2abc2406e2c 100644 --- a/services/containerinstance/mgmt/2018-09-01/containerinstance/containergroups.go +++ b/services/containerinstance/mgmt/2018-09-01/containerinstance/containergroups.go @@ -170,6 +170,7 @@ func (client ContainerGroupsClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -247,6 +248,7 @@ func (client ContainerGroupsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +324,7 @@ func (client ContainerGroupsClient) List(ctx context.Context) (result ContainerG result.cglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "List", resp, "Failure responding to request") + return } if result.cglr.hasNextLink() && result.cglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +387,7 @@ func (client ContainerGroupsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -437,6 +441,7 @@ func (client ContainerGroupsClient) ListByResourceGroup(ctx context.Context, res result.cglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cglr.hasNextLink() && result.cglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -500,6 +505,7 @@ func (client ContainerGroupsClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -626,6 +632,7 @@ func (client ContainerGroupsClient) Stop(ctx context.Context, resourceGroupName result, err = client.StopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Stop", resp, "Failure responding to request") + return } return @@ -701,6 +708,7 @@ func (client ContainerGroupsClient) Update(ctx context.Context, resourceGroupNam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/containerinstance/mgmt/2018-09-01/containerinstance/containergroupusage.go b/services/containerinstance/mgmt/2018-09-01/containerinstance/containergroupusage.go index 6ed4c4f90e2a..01860d771007 100644 --- a/services/containerinstance/mgmt/2018-09-01/containerinstance/containergroupusage.go +++ b/services/containerinstance/mgmt/2018-09-01/containerinstance/containergroupusage.go @@ -72,6 +72,7 @@ func (client ContainerGroupUsageClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupUsageClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/containerinstance/mgmt/2018-09-01/containerinstance/operations.go b/services/containerinstance/mgmt/2018-09-01/containerinstance/operations.go index 950199353fdf..8e1d2188d0ae 100644 --- a/services/containerinstance/mgmt/2018-09-01/containerinstance/operations.go +++ b/services/containerinstance/mgmt/2018-09-01/containerinstance/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/containerinstance/mgmt/2018-10-01/containerinstance/client.go b/services/containerinstance/mgmt/2018-10-01/containerinstance/client.go index 80189635adae..2741a2a2f4ba 100644 --- a/services/containerinstance/mgmt/2018-10-01/containerinstance/client.go +++ b/services/containerinstance/mgmt/2018-10-01/containerinstance/client.go @@ -85,6 +85,7 @@ func (client BaseClient) ListCachedImages(ctx context.Context, location string) result, err = client.ListCachedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.BaseClient", "ListCachedImages", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client BaseClient) ListCapabilities(ctx context.Context, location string) result, err = client.ListCapabilitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.BaseClient", "ListCapabilities", resp, "Failure responding to request") + return } return diff --git a/services/containerinstance/mgmt/2018-10-01/containerinstance/container.go b/services/containerinstance/mgmt/2018-10-01/containerinstance/container.go index 8bf2b696188a..62a2ffae3ca2 100644 --- a/services/containerinstance/mgmt/2018-10-01/containerinstance/container.go +++ b/services/containerinstance/mgmt/2018-10-01/containerinstance/container.go @@ -75,6 +75,7 @@ func (client ContainerClient) ExecuteCommand(ctx context.Context, resourceGroupN result, err = client.ExecuteCommandResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerClient", "ExecuteCommand", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client ContainerClient) ListLogs(ctx context.Context, resourceGroupName st result, err = client.ListLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerClient", "ListLogs", resp, "Failure responding to request") + return } return diff --git a/services/containerinstance/mgmt/2018-10-01/containerinstance/containergroups.go b/services/containerinstance/mgmt/2018-10-01/containerinstance/containergroups.go index 41852c79320a..68632b52337a 100644 --- a/services/containerinstance/mgmt/2018-10-01/containerinstance/containergroups.go +++ b/services/containerinstance/mgmt/2018-10-01/containerinstance/containergroups.go @@ -172,6 +172,7 @@ func (client ContainerGroupsClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -249,6 +250,7 @@ func (client ContainerGroupsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -324,6 +326,7 @@ func (client ContainerGroupsClient) List(ctx context.Context) (result ContainerG result.cglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "List", resp, "Failure responding to request") + return } if result.cglr.hasNextLink() && result.cglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +389,7 @@ func (client ContainerGroupsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -439,6 +443,7 @@ func (client ContainerGroupsClient) ListByResourceGroup(ctx context.Context, res result.cglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cglr.hasNextLink() && result.cglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -502,6 +507,7 @@ func (client ContainerGroupsClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -702,6 +708,7 @@ func (client ContainerGroupsClient) Stop(ctx context.Context, resourceGroupName result, err = client.StopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Stop", resp, "Failure responding to request") + return } return @@ -777,6 +784,7 @@ func (client ContainerGroupsClient) Update(ctx context.Context, resourceGroupNam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/containerinstance/mgmt/2018-10-01/containerinstance/containergroupusage.go b/services/containerinstance/mgmt/2018-10-01/containerinstance/containergroupusage.go index 8b8ffcb31c5b..13f45ec2a86b 100644 --- a/services/containerinstance/mgmt/2018-10-01/containerinstance/containergroupusage.go +++ b/services/containerinstance/mgmt/2018-10-01/containerinstance/containergroupusage.go @@ -72,6 +72,7 @@ func (client ContainerGroupUsageClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupUsageClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/containerinstance/mgmt/2018-10-01/containerinstance/operations.go b/services/containerinstance/mgmt/2018-10-01/containerinstance/operations.go index bf77d6557908..549ea79f9165 100644 --- a/services/containerinstance/mgmt/2018-10-01/containerinstance/operations.go +++ b/services/containerinstance/mgmt/2018-10-01/containerinstance/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/containerinstance/mgmt/2018-10-01/containerinstance/serviceassociationlink.go b/services/containerinstance/mgmt/2018-10-01/containerinstance/serviceassociationlink.go index c7f5870ae39e..440f53320764 100644 --- a/services/containerinstance/mgmt/2018-10-01/containerinstance/serviceassociationlink.go +++ b/services/containerinstance/mgmt/2018-10-01/containerinstance/serviceassociationlink.go @@ -75,6 +75,7 @@ func (client ServiceAssociationLinkClient) Delete(ctx context.Context, resourceG result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ServiceAssociationLinkClient", "Delete", resp, "Failure responding to request") + return } return diff --git a/services/containerinstance/mgmt/2019-12-01/containerinstance/containergroups.go b/services/containerinstance/mgmt/2019-12-01/containerinstance/containergroups.go index de59dced190f..9da3ec8bc491 100644 --- a/services/containerinstance/mgmt/2019-12-01/containerinstance/containergroups.go +++ b/services/containerinstance/mgmt/2019-12-01/containerinstance/containergroups.go @@ -254,6 +254,7 @@ func (client ContainerGroupsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -329,6 +330,7 @@ func (client ContainerGroupsClient) List(ctx context.Context) (result ContainerG result.cglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "List", resp, "Failure responding to request") + return } if result.cglr.hasNextLink() && result.cglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -391,6 +393,7 @@ func (client ContainerGroupsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -444,6 +447,7 @@ func (client ContainerGroupsClient) ListByResourceGroup(ctx context.Context, res result.cglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cglr.hasNextLink() && result.cglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -507,6 +511,7 @@ func (client ContainerGroupsClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -707,6 +712,7 @@ func (client ContainerGroupsClient) Stop(ctx context.Context, resourceGroupName result, err = client.StopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Stop", resp, "Failure responding to request") + return } return @@ -782,6 +788,7 @@ func (client ContainerGroupsClient) Update(ctx context.Context, resourceGroupNam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/containerinstance/mgmt/2019-12-01/containerinstance/containers.go b/services/containerinstance/mgmt/2019-12-01/containerinstance/containers.go index d123c72a001b..a9cef29b7034 100644 --- a/services/containerinstance/mgmt/2019-12-01/containerinstance/containers.go +++ b/services/containerinstance/mgmt/2019-12-01/containerinstance/containers.go @@ -75,6 +75,7 @@ func (client ContainersClient) ExecuteCommand(ctx context.Context, resourceGroup result, err = client.ExecuteCommandResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainersClient", "ExecuteCommand", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client ContainersClient) ListLogs(ctx context.Context, resourceGroupName s result, err = client.ListLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainersClient", "ListLogs", resp, "Failure responding to request") + return } return diff --git a/services/containerinstance/mgmt/2019-12-01/containerinstance/location.go b/services/containerinstance/mgmt/2019-12-01/containerinstance/location.go index eef978ba672e..1eedaa3de4c8 100644 --- a/services/containerinstance/mgmt/2019-12-01/containerinstance/location.go +++ b/services/containerinstance/mgmt/2019-12-01/containerinstance/location.go @@ -72,6 +72,7 @@ func (client LocationClient) ListCachedImages(ctx context.Context, location stri result.cilr, err = client.ListCachedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.LocationClient", "ListCachedImages", resp, "Failure responding to request") + return } if result.cilr.hasNextLink() && result.cilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -135,6 +136,7 @@ func (client LocationClient) listCachedImagesNextResults(ctx context.Context, la result, err = client.ListCachedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.LocationClient", "listCachedImagesNextResults", resp, "Failure responding to next results request") + return } return } @@ -186,6 +188,7 @@ func (client LocationClient) ListCapabilities(ctx context.Context, location stri result.clr, err = client.ListCapabilitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.LocationClient", "ListCapabilities", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -249,6 +252,7 @@ func (client LocationClient) listCapabilitiesNextResults(ctx context.Context, la result, err = client.ListCapabilitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.LocationClient", "listCapabilitiesNextResults", resp, "Failure responding to next results request") + return } return } @@ -299,6 +303,7 @@ func (client LocationClient) ListUsage(ctx context.Context, location string) (re result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.LocationClient", "ListUsage", resp, "Failure responding to request") + return } return diff --git a/services/containerinstance/mgmt/2019-12-01/containerinstance/operations.go b/services/containerinstance/mgmt/2019-12-01/containerinstance/operations.go index 4cb71ed36d38..b27a5bb15da3 100644 --- a/services/containerinstance/mgmt/2019-12-01/containerinstance/operations.go +++ b/services/containerinstance/mgmt/2019-12-01/containerinstance/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerregistry/mgmt/2017-03-01/containerregistry/operations.go b/services/containerregistry/mgmt/2017-03-01/containerregistry/operations.go index e3feb9baecb3..9119cd024cf8 100644 --- a/services/containerregistry/mgmt/2017-03-01/containerregistry/operations.go +++ b/services/containerregistry/mgmt/2017-03-01/containerregistry/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerregistry/mgmt/2017-03-01/containerregistry/registries.go b/services/containerregistry/mgmt/2017-03-01/containerregistry/registries.go index 64ff0b7d3f98..40bae3c2974b 100644 --- a/services/containerregistry/mgmt/2017-03-01/containerregistry/registries.go +++ b/services/containerregistry/mgmt/2017-03-01/containerregistry/registries.go @@ -84,6 +84,7 @@ func (client RegistriesClient) CheckNameAvailability(ctx context.Context, regist result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -267,6 +268,7 @@ func (client RegistriesClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "Delete", resp, "Failure responding to request") + return } return @@ -351,6 +353,7 @@ func (client RegistriesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "Get", resp, "Failure responding to request") + return } return @@ -424,6 +427,7 @@ func (client RegistriesClient) List(ctx context.Context) (result RegistryListRes result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -486,6 +490,7 @@ func (client RegistriesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -543,6 +548,7 @@ func (client RegistriesClient) ListByResourceGroup(ctx context.Context, resource result.rlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -606,6 +612,7 @@ func (client RegistriesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -667,6 +674,7 @@ func (client RegistriesClient) ListCredentials(ctx context.Context, resourceGrou result, err = client.ListCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListCredentials", resp, "Failure responding to request") + return } return @@ -754,6 +762,7 @@ func (client RegistriesClient) RegenerateCredential(ctx context.Context, resourc result, err = client.RegenerateCredentialResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "RegenerateCredential", resp, "Failure responding to request") + return } return @@ -842,6 +851,7 @@ func (client RegistriesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/containerregistry/mgmt/2017-10-01/containerregistry/operations.go b/services/containerregistry/mgmt/2017-10-01/containerregistry/operations.go index 36d74d8ced3b..43519447788d 100644 --- a/services/containerregistry/mgmt/2017-10-01/containerregistry/operations.go +++ b/services/containerregistry/mgmt/2017-10-01/containerregistry/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerregistry/mgmt/2017-10-01/containerregistry/registries.go b/services/containerregistry/mgmt/2017-10-01/containerregistry/registries.go index dc8ef180800d..9cd7a7342790 100644 --- a/services/containerregistry/mgmt/2017-10-01/containerregistry/registries.go +++ b/services/containerregistry/mgmt/2017-10-01/containerregistry/registries.go @@ -84,6 +84,7 @@ func (client RegistriesClient) CheckNameAvailability(ctx context.Context, regist result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -347,6 +348,7 @@ func (client RegistriesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "Get", resp, "Failure responding to request") + return } return @@ -513,6 +515,7 @@ func (client RegistriesClient) List(ctx context.Context) (result RegistryListRes result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -575,6 +578,7 @@ func (client RegistriesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -632,6 +636,7 @@ func (client RegistriesClient) ListByResourceGroup(ctx context.Context, resource result.rlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -695,6 +700,7 @@ func (client RegistriesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -756,6 +762,7 @@ func (client RegistriesClient) ListCredentials(ctx context.Context, resourceGrou result, err = client.ListCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListCredentials", resp, "Failure responding to request") + return } return @@ -841,6 +848,7 @@ func (client RegistriesClient) ListPolicies(ctx context.Context, resourceGroupNa result, err = client.ListPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListPolicies", resp, "Failure responding to request") + return } return @@ -926,6 +934,7 @@ func (client RegistriesClient) ListUsages(ctx context.Context, resourceGroupName result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListUsages", resp, "Failure responding to request") + return } return @@ -1013,6 +1022,7 @@ func (client RegistriesClient) RegenerateCredential(ctx context.Context, resourc result, err = client.RegenerateCredentialResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "RegenerateCredential", resp, "Failure responding to request") + return } return diff --git a/services/containerregistry/mgmt/2017-10-01/containerregistry/replications.go b/services/containerregistry/mgmt/2017-10-01/containerregistry/replications.go index 8826bcc8e0c0..9cd452922b86 100644 --- a/services/containerregistry/mgmt/2017-10-01/containerregistry/replications.go +++ b/services/containerregistry/mgmt/2017-10-01/containerregistry/replications.go @@ -272,6 +272,7 @@ func (client ReplicationsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -359,6 +360,7 @@ func (client ReplicationsClient) List(ctx context.Context, resourceGroupName str result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -423,6 +425,7 @@ func (client ReplicationsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerregistry/mgmt/2017-10-01/containerregistry/webhooks.go b/services/containerregistry/mgmt/2017-10-01/containerregistry/webhooks.go index 64c6048cb6af..ba6ccd44c11b 100644 --- a/services/containerregistry/mgmt/2017-10-01/containerregistry/webhooks.go +++ b/services/containerregistry/mgmt/2017-10-01/containerregistry/webhooks.go @@ -278,6 +278,7 @@ func (client WebhooksClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +370,7 @@ func (client WebhooksClient) GetCallbackConfig(ctx context.Context, resourceGrou result, err = client.GetCallbackConfigResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "GetCallbackConfig", resp, "Failure responding to request") + return } return @@ -456,6 +458,7 @@ func (client WebhooksClient) List(ctx context.Context, resourceGroupName string, result.wlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "List", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -520,6 +523,7 @@ func (client WebhooksClient) listNextResults(ctx context.Context, lastResults We result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -587,6 +591,7 @@ func (client WebhooksClient) ListEvents(ctx context.Context, resourceGroupName s result.elr, err = client.ListEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "ListEvents", resp, "Failure responding to request") + return } if result.elr.hasNextLink() && result.elr.IsEmpty() { err = result.NextWithContext(ctx) @@ -652,6 +657,7 @@ func (client WebhooksClient) listEventsNextResults(ctx context.Context, lastResu result, err = client.ListEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "listEventsNextResults", resp, "Failure responding to next results request") + return } return } @@ -718,6 +724,7 @@ func (client WebhooksClient) Ping(ctx context.Context, resourceGroupName string, result, err = client.PingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "Ping", resp, "Failure responding to request") + return } return diff --git a/services/containerregistry/mgmt/2018-09-01/containerregistry/operations.go b/services/containerregistry/mgmt/2018-09-01/containerregistry/operations.go index 36d74d8ced3b..43519447788d 100644 --- a/services/containerregistry/mgmt/2018-09-01/containerregistry/operations.go +++ b/services/containerregistry/mgmt/2018-09-01/containerregistry/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerregistry/mgmt/2018-09-01/containerregistry/registries.go b/services/containerregistry/mgmt/2018-09-01/containerregistry/registries.go index ba4667df8cb3..6cc91293c3c2 100644 --- a/services/containerregistry/mgmt/2018-09-01/containerregistry/registries.go +++ b/services/containerregistry/mgmt/2018-09-01/containerregistry/registries.go @@ -84,6 +84,7 @@ func (client RegistriesClient) CheckNameAvailability(ctx context.Context, regist result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -347,6 +348,7 @@ func (client RegistriesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "Get", resp, "Failure responding to request") + return } return @@ -432,6 +434,7 @@ func (client RegistriesClient) GetBuildSourceUploadURL(ctx context.Context, reso result, err = client.GetBuildSourceUploadURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "GetBuildSourceUploadURL", resp, "Failure responding to request") + return } return @@ -598,6 +601,7 @@ func (client RegistriesClient) List(ctx context.Context) (result RegistryListRes result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -660,6 +664,7 @@ func (client RegistriesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -717,6 +722,7 @@ func (client RegistriesClient) ListByResourceGroup(ctx context.Context, resource result.rlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -780,6 +786,7 @@ func (client RegistriesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -841,6 +848,7 @@ func (client RegistriesClient) ListCredentials(ctx context.Context, resourceGrou result, err = client.ListCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListCredentials", resp, "Failure responding to request") + return } return @@ -926,6 +934,7 @@ func (client RegistriesClient) ListPolicies(ctx context.Context, resourceGroupNa result, err = client.ListPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListPolicies", resp, "Failure responding to request") + return } return @@ -1011,6 +1020,7 @@ func (client RegistriesClient) ListUsages(ctx context.Context, resourceGroupName result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListUsages", resp, "Failure responding to request") + return } return @@ -1098,6 +1108,7 @@ func (client RegistriesClient) RegenerateCredential(ctx context.Context, resourc result, err = client.RegenerateCredentialResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "RegenerateCredential", resp, "Failure responding to request") + return } return diff --git a/services/containerregistry/mgmt/2018-09-01/containerregistry/replications.go b/services/containerregistry/mgmt/2018-09-01/containerregistry/replications.go index 8826bcc8e0c0..9cd452922b86 100644 --- a/services/containerregistry/mgmt/2018-09-01/containerregistry/replications.go +++ b/services/containerregistry/mgmt/2018-09-01/containerregistry/replications.go @@ -272,6 +272,7 @@ func (client ReplicationsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -359,6 +360,7 @@ func (client ReplicationsClient) List(ctx context.Context, resourceGroupName str result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -423,6 +425,7 @@ func (client ReplicationsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerregistry/mgmt/2018-09-01/containerregistry/runs.go b/services/containerregistry/mgmt/2018-09-01/containerregistry/runs.go index 729e323aeaec..9190d85bba17 100644 --- a/services/containerregistry/mgmt/2018-09-01/containerregistry/runs.go +++ b/services/containerregistry/mgmt/2018-09-01/containerregistry/runs.go @@ -170,6 +170,7 @@ func (client RunsClient) Get(ctx context.Context, resourceGroupName string, regi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "Get", resp, "Failure responding to request") + return } return @@ -257,6 +258,7 @@ func (client RunsClient) GetLogSasURL(ctx context.Context, resourceGroupName str result, err = client.GetLogSasURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "GetLogSasURL", resp, "Failure responding to request") + return } return @@ -347,6 +349,7 @@ func (client RunsClient) List(ctx context.Context, resourceGroupName string, reg result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -417,6 +420,7 @@ func (client RunsClient) listNextResults(ctx context.Context, lastResults RunLis result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerregistry/mgmt/2018-09-01/containerregistry/tasks.go b/services/containerregistry/mgmt/2018-09-01/containerregistry/tasks.go index e331e2006977..a9a1ae769251 100644 --- a/services/containerregistry/mgmt/2018-09-01/containerregistry/tasks.go +++ b/services/containerregistry/mgmt/2018-09-01/containerregistry/tasks.go @@ -285,6 +285,7 @@ func (client TasksClient) Get(ctx context.Context, resourceGroupName string, reg result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "Get", resp, "Failure responding to request") + return } return @@ -376,6 +377,7 @@ func (client TasksClient) GetDetails(ctx context.Context, resourceGroupName stri result, err = client.GetDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "GetDetails", resp, "Failure responding to request") + return } return @@ -463,6 +465,7 @@ func (client TasksClient) List(ctx context.Context, resourceGroupName string, re result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -527,6 +530,7 @@ func (client TasksClient) listNextResults(ctx context.Context, lastResults TaskL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerregistry/mgmt/2018-09-01/containerregistry/webhooks.go b/services/containerregistry/mgmt/2018-09-01/containerregistry/webhooks.go index 64c6048cb6af..ba6ccd44c11b 100644 --- a/services/containerregistry/mgmt/2018-09-01/containerregistry/webhooks.go +++ b/services/containerregistry/mgmt/2018-09-01/containerregistry/webhooks.go @@ -278,6 +278,7 @@ func (client WebhooksClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +370,7 @@ func (client WebhooksClient) GetCallbackConfig(ctx context.Context, resourceGrou result, err = client.GetCallbackConfigResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "GetCallbackConfig", resp, "Failure responding to request") + return } return @@ -456,6 +458,7 @@ func (client WebhooksClient) List(ctx context.Context, resourceGroupName string, result.wlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "List", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -520,6 +523,7 @@ func (client WebhooksClient) listNextResults(ctx context.Context, lastResults We result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -587,6 +591,7 @@ func (client WebhooksClient) ListEvents(ctx context.Context, resourceGroupName s result.elr, err = client.ListEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "ListEvents", resp, "Failure responding to request") + return } if result.elr.hasNextLink() && result.elr.IsEmpty() { err = result.NextWithContext(ctx) @@ -652,6 +657,7 @@ func (client WebhooksClient) listEventsNextResults(ctx context.Context, lastResu result, err = client.ListEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "listEventsNextResults", resp, "Failure responding to next results request") + return } return } @@ -718,6 +724,7 @@ func (client WebhooksClient) Ping(ctx context.Context, resourceGroupName string, result, err = client.PingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "Ping", resp, "Failure responding to request") + return } return diff --git a/services/containerregistry/mgmt/2019-04-01/containerregistry/operations.go b/services/containerregistry/mgmt/2019-04-01/containerregistry/operations.go index 36d74d8ced3b..43519447788d 100644 --- a/services/containerregistry/mgmt/2019-04-01/containerregistry/operations.go +++ b/services/containerregistry/mgmt/2019-04-01/containerregistry/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerregistry/mgmt/2019-04-01/containerregistry/registries.go b/services/containerregistry/mgmt/2019-04-01/containerregistry/registries.go index 15b773e10c61..9a495fd11c87 100644 --- a/services/containerregistry/mgmt/2019-04-01/containerregistry/registries.go +++ b/services/containerregistry/mgmt/2019-04-01/containerregistry/registries.go @@ -84,6 +84,7 @@ func (client RegistriesClient) CheckNameAvailability(ctx context.Context, regist result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -347,6 +348,7 @@ func (client RegistriesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "Get", resp, "Failure responding to request") + return } return @@ -432,6 +434,7 @@ func (client RegistriesClient) GetBuildSourceUploadURL(ctx context.Context, reso result, err = client.GetBuildSourceUploadURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "GetBuildSourceUploadURL", resp, "Failure responding to request") + return } return @@ -598,6 +601,7 @@ func (client RegistriesClient) List(ctx context.Context) (result RegistryListRes result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -660,6 +664,7 @@ func (client RegistriesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -717,6 +722,7 @@ func (client RegistriesClient) ListByResourceGroup(ctx context.Context, resource result.rlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -780,6 +786,7 @@ func (client RegistriesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -841,6 +848,7 @@ func (client RegistriesClient) ListCredentials(ctx context.Context, resourceGrou result, err = client.ListCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListCredentials", resp, "Failure responding to request") + return } return @@ -926,6 +934,7 @@ func (client RegistriesClient) ListPolicies(ctx context.Context, resourceGroupNa result, err = client.ListPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListPolicies", resp, "Failure responding to request") + return } return @@ -1011,6 +1020,7 @@ func (client RegistriesClient) ListUsages(ctx context.Context, resourceGroupName result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListUsages", resp, "Failure responding to request") + return } return @@ -1098,6 +1108,7 @@ func (client RegistriesClient) RegenerateCredential(ctx context.Context, resourc result, err = client.RegenerateCredentialResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "RegenerateCredential", resp, "Failure responding to request") + return } return diff --git a/services/containerregistry/mgmt/2019-04-01/containerregistry/replications.go b/services/containerregistry/mgmt/2019-04-01/containerregistry/replications.go index 8826bcc8e0c0..9cd452922b86 100644 --- a/services/containerregistry/mgmt/2019-04-01/containerregistry/replications.go +++ b/services/containerregistry/mgmt/2019-04-01/containerregistry/replications.go @@ -272,6 +272,7 @@ func (client ReplicationsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -359,6 +360,7 @@ func (client ReplicationsClient) List(ctx context.Context, resourceGroupName str result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -423,6 +425,7 @@ func (client ReplicationsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerregistry/mgmt/2019-04-01/containerregistry/runs.go b/services/containerregistry/mgmt/2019-04-01/containerregistry/runs.go index f5bda691a3cc..1ead641269fe 100644 --- a/services/containerregistry/mgmt/2019-04-01/containerregistry/runs.go +++ b/services/containerregistry/mgmt/2019-04-01/containerregistry/runs.go @@ -170,6 +170,7 @@ func (client RunsClient) Get(ctx context.Context, resourceGroupName string, regi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "Get", resp, "Failure responding to request") + return } return @@ -257,6 +258,7 @@ func (client RunsClient) GetLogSasURL(ctx context.Context, resourceGroupName str result, err = client.GetLogSasURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "GetLogSasURL", resp, "Failure responding to request") + return } return @@ -347,6 +349,7 @@ func (client RunsClient) List(ctx context.Context, resourceGroupName string, reg result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -417,6 +420,7 @@ func (client RunsClient) listNextResults(ctx context.Context, lastResults RunLis result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerregistry/mgmt/2019-04-01/containerregistry/tasks.go b/services/containerregistry/mgmt/2019-04-01/containerregistry/tasks.go index 3504e124289f..2530202c9b83 100644 --- a/services/containerregistry/mgmt/2019-04-01/containerregistry/tasks.go +++ b/services/containerregistry/mgmt/2019-04-01/containerregistry/tasks.go @@ -285,6 +285,7 @@ func (client TasksClient) Get(ctx context.Context, resourceGroupName string, reg result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "Get", resp, "Failure responding to request") + return } return @@ -376,6 +377,7 @@ func (client TasksClient) GetDetails(ctx context.Context, resourceGroupName stri result, err = client.GetDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "GetDetails", resp, "Failure responding to request") + return } return @@ -463,6 +465,7 @@ func (client TasksClient) List(ctx context.Context, resourceGroupName string, re result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -527,6 +530,7 @@ func (client TasksClient) listNextResults(ctx context.Context, lastResults TaskL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerregistry/mgmt/2019-04-01/containerregistry/webhooks.go b/services/containerregistry/mgmt/2019-04-01/containerregistry/webhooks.go index 64c6048cb6af..ba6ccd44c11b 100644 --- a/services/containerregistry/mgmt/2019-04-01/containerregistry/webhooks.go +++ b/services/containerregistry/mgmt/2019-04-01/containerregistry/webhooks.go @@ -278,6 +278,7 @@ func (client WebhooksClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +370,7 @@ func (client WebhooksClient) GetCallbackConfig(ctx context.Context, resourceGrou result, err = client.GetCallbackConfigResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "GetCallbackConfig", resp, "Failure responding to request") + return } return @@ -456,6 +458,7 @@ func (client WebhooksClient) List(ctx context.Context, resourceGroupName string, result.wlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "List", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -520,6 +523,7 @@ func (client WebhooksClient) listNextResults(ctx context.Context, lastResults We result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -587,6 +591,7 @@ func (client WebhooksClient) ListEvents(ctx context.Context, resourceGroupName s result.elr, err = client.ListEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "ListEvents", resp, "Failure responding to request") + return } if result.elr.hasNextLink() && result.elr.IsEmpty() { err = result.NextWithContext(ctx) @@ -652,6 +657,7 @@ func (client WebhooksClient) listEventsNextResults(ctx context.Context, lastResu result, err = client.ListEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "listEventsNextResults", resp, "Failure responding to next results request") + return } return } @@ -718,6 +724,7 @@ func (client WebhooksClient) Ping(ctx context.Context, resourceGroupName string, result, err = client.PingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "Ping", resp, "Failure responding to request") + return } return diff --git a/services/containerregistry/mgmt/2019-05-01/containerregistry/operations.go b/services/containerregistry/mgmt/2019-05-01/containerregistry/operations.go index ce7e696cc0e7..c6c1b71d0912 100644 --- a/services/containerregistry/mgmt/2019-05-01/containerregistry/operations.go +++ b/services/containerregistry/mgmt/2019-05-01/containerregistry/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerregistry/mgmt/2019-05-01/containerregistry/registries.go b/services/containerregistry/mgmt/2019-05-01/containerregistry/registries.go index d0f1d3453239..17c1a31a031f 100644 --- a/services/containerregistry/mgmt/2019-05-01/containerregistry/registries.go +++ b/services/containerregistry/mgmt/2019-05-01/containerregistry/registries.go @@ -84,6 +84,7 @@ func (client RegistriesClient) CheckNameAvailability(ctx context.Context, regist result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -347,6 +348,7 @@ func (client RegistriesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "Get", resp, "Failure responding to request") + return } return @@ -432,6 +434,7 @@ func (client RegistriesClient) GetBuildSourceUploadURL(ctx context.Context, reso result, err = client.GetBuildSourceUploadURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "GetBuildSourceUploadURL", resp, "Failure responding to request") + return } return @@ -598,6 +601,7 @@ func (client RegistriesClient) List(ctx context.Context) (result RegistryListRes result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -660,6 +664,7 @@ func (client RegistriesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -717,6 +722,7 @@ func (client RegistriesClient) ListByResourceGroup(ctx context.Context, resource result.rlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -780,6 +786,7 @@ func (client RegistriesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -841,6 +848,7 @@ func (client RegistriesClient) ListCredentials(ctx context.Context, resourceGrou result, err = client.ListCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListCredentials", resp, "Failure responding to request") + return } return @@ -926,6 +934,7 @@ func (client RegistriesClient) ListUsages(ctx context.Context, resourceGroupName result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListUsages", resp, "Failure responding to request") + return } return @@ -1013,6 +1022,7 @@ func (client RegistriesClient) RegenerateCredential(ctx context.Context, resourc result, err = client.RegenerateCredentialResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "RegenerateCredential", resp, "Failure responding to request") + return } return diff --git a/services/containerregistry/mgmt/2019-05-01/containerregistry/replications.go b/services/containerregistry/mgmt/2019-05-01/containerregistry/replications.go index d6ccfc5a1d84..981543d161f7 100644 --- a/services/containerregistry/mgmt/2019-05-01/containerregistry/replications.go +++ b/services/containerregistry/mgmt/2019-05-01/containerregistry/replications.go @@ -272,6 +272,7 @@ func (client ReplicationsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -359,6 +360,7 @@ func (client ReplicationsClient) List(ctx context.Context, resourceGroupName str result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -423,6 +425,7 @@ func (client ReplicationsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerregistry/mgmt/2019-05-01/containerregistry/runs.go b/services/containerregistry/mgmt/2019-05-01/containerregistry/runs.go index f5bda691a3cc..1ead641269fe 100644 --- a/services/containerregistry/mgmt/2019-05-01/containerregistry/runs.go +++ b/services/containerregistry/mgmt/2019-05-01/containerregistry/runs.go @@ -170,6 +170,7 @@ func (client RunsClient) Get(ctx context.Context, resourceGroupName string, regi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "Get", resp, "Failure responding to request") + return } return @@ -257,6 +258,7 @@ func (client RunsClient) GetLogSasURL(ctx context.Context, resourceGroupName str result, err = client.GetLogSasURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "GetLogSasURL", resp, "Failure responding to request") + return } return @@ -347,6 +349,7 @@ func (client RunsClient) List(ctx context.Context, resourceGroupName string, reg result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -417,6 +420,7 @@ func (client RunsClient) listNextResults(ctx context.Context, lastResults RunLis result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerregistry/mgmt/2019-05-01/containerregistry/tasks.go b/services/containerregistry/mgmt/2019-05-01/containerregistry/tasks.go index 3504e124289f..2530202c9b83 100644 --- a/services/containerregistry/mgmt/2019-05-01/containerregistry/tasks.go +++ b/services/containerregistry/mgmt/2019-05-01/containerregistry/tasks.go @@ -285,6 +285,7 @@ func (client TasksClient) Get(ctx context.Context, resourceGroupName string, reg result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "Get", resp, "Failure responding to request") + return } return @@ -376,6 +377,7 @@ func (client TasksClient) GetDetails(ctx context.Context, resourceGroupName stri result, err = client.GetDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "GetDetails", resp, "Failure responding to request") + return } return @@ -463,6 +465,7 @@ func (client TasksClient) List(ctx context.Context, resourceGroupName string, re result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -527,6 +530,7 @@ func (client TasksClient) listNextResults(ctx context.Context, lastResults TaskL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerregistry/mgmt/2019-05-01/containerregistry/webhooks.go b/services/containerregistry/mgmt/2019-05-01/containerregistry/webhooks.go index 882744bca627..0c5e0e9b96d6 100644 --- a/services/containerregistry/mgmt/2019-05-01/containerregistry/webhooks.go +++ b/services/containerregistry/mgmt/2019-05-01/containerregistry/webhooks.go @@ -278,6 +278,7 @@ func (client WebhooksClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +370,7 @@ func (client WebhooksClient) GetCallbackConfig(ctx context.Context, resourceGrou result, err = client.GetCallbackConfigResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "GetCallbackConfig", resp, "Failure responding to request") + return } return @@ -456,6 +458,7 @@ func (client WebhooksClient) List(ctx context.Context, resourceGroupName string, result.wlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "List", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -520,6 +523,7 @@ func (client WebhooksClient) listNextResults(ctx context.Context, lastResults We result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -587,6 +591,7 @@ func (client WebhooksClient) ListEvents(ctx context.Context, resourceGroupName s result.elr, err = client.ListEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "ListEvents", resp, "Failure responding to request") + return } if result.elr.hasNextLink() && result.elr.IsEmpty() { err = result.NextWithContext(ctx) @@ -652,6 +657,7 @@ func (client WebhooksClient) listEventsNextResults(ctx context.Context, lastResu result, err = client.ListEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "listEventsNextResults", resp, "Failure responding to next results request") + return } return } @@ -718,6 +724,7 @@ func (client WebhooksClient) Ping(ctx context.Context, resourceGroupName string, result, err = client.PingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "Ping", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2016-03-30/containerservice/containerservices.go b/services/containerservice/mgmt/2016-03-30/containerservice/containerservices.go index 526519e5feae..dfdf647af629 100644 --- a/services/containerservice/mgmt/2016-03-30/containerservice/containerservices.go +++ b/services/containerservice/mgmt/2016-03-30/containerservice/containerservices.go @@ -255,6 +255,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -328,6 +329,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result ListResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request") + return } return @@ -402,6 +404,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2016-09-30/containerservice/containerservices.go b/services/containerservice/mgmt/2016-09-30/containerservice/containerservices.go index b4762b3c4d10..523251aa1c07 100644 --- a/services/containerservice/mgmt/2016-09-30/containerservice/containerservices.go +++ b/services/containerservice/mgmt/2016-09-30/containerservice/containerservices.go @@ -263,6 +263,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -337,6 +338,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result ListResu result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -399,6 +401,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -452,6 +455,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -515,6 +519,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2017-01-31/containerservice/containerservices.go b/services/containerservice/mgmt/2017-01-31/containerservice/containerservices.go index a133f122cd6a..84e14007e917 100644 --- a/services/containerservice/mgmt/2017-01-31/containerservice/containerservices.go +++ b/services/containerservice/mgmt/2017-01-31/containerservice/containerservices.go @@ -263,6 +263,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -337,6 +338,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result ListResu result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -399,6 +401,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -452,6 +455,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -515,6 +519,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2017-07-01/containerservice/containerservices.go b/services/containerservice/mgmt/2017-07-01/containerservice/containerservices.go index 5804cefa1170..159b91717425 100644 --- a/services/containerservice/mgmt/2017-07-01/containerservice/containerservices.go +++ b/services/containerservice/mgmt/2017-07-01/containerservice/containerservices.go @@ -266,6 +266,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result ListResu result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +404,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2017-08-31/containerservice/containerservices.go b/services/containerservice/mgmt/2017-08-31/containerservice/containerservices.go index 5804cefa1170..159b91717425 100644 --- a/services/containerservice/mgmt/2017-08-31/containerservice/containerservices.go +++ b/services/containerservice/mgmt/2017-08-31/containerservice/containerservices.go @@ -266,6 +266,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result ListResu result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +404,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2017-08-31/containerservice/managedclusters.go b/services/containerservice/mgmt/2017-08-31/containerservice/managedclusters.go index ec7d3cc30219..a1fa1fd4f36a 100644 --- a/services/containerservice/mgmt/2017-08-31/containerservice/managedclusters.go +++ b/services/containerservice/mgmt/2017-08-31/containerservice/managedclusters.go @@ -246,6 +246,7 @@ func (client ManagedClustersClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +324,7 @@ func (client ManagedClustersClient) GetAccessProfile(ctx context.Context, resour result, err = client.GetAccessProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure responding to request") + return } return @@ -400,6 +402,7 @@ func (client ManagedClustersClient) GetAccessProfiles(ctx context.Context, resou result, err = client.GetAccessProfilesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfiles", resp, "Failure responding to request") + return } return @@ -477,6 +480,7 @@ func (client ManagedClustersClient) GetUpgradeProfile(ctx context.Context, resou result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -551,6 +555,7 @@ func (client ManagedClustersClient) List(ctx context.Context) (result ManagedClu result.mclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -613,6 +618,7 @@ func (client ManagedClustersClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -665,6 +671,7 @@ func (client ManagedClustersClient) ListByResourceGroup(ctx context.Context, res result.mclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -728,6 +735,7 @@ func (client ManagedClustersClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2017-09-30/containerservice/containerservices.go b/services/containerservice/mgmt/2017-09-30/containerservice/containerservices.go index 7206a407f692..4fc0b123423c 100644 --- a/services/containerservice/mgmt/2017-09-30/containerservice/containerservices.go +++ b/services/containerservice/mgmt/2017-09-30/containerservice/containerservices.go @@ -266,6 +266,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result ListResu result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +404,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -570,6 +575,7 @@ func (client ContainerServicesClient) ListOrchestrators(ctx context.Context, loc result, err = client.ListOrchestratorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2017-09-30/containerservice/managedclusters.go b/services/containerservice/mgmt/2017-09-30/containerservice/managedclusters.go index ec7d3cc30219..a1fa1fd4f36a 100644 --- a/services/containerservice/mgmt/2017-09-30/containerservice/managedclusters.go +++ b/services/containerservice/mgmt/2017-09-30/containerservice/managedclusters.go @@ -246,6 +246,7 @@ func (client ManagedClustersClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +324,7 @@ func (client ManagedClustersClient) GetAccessProfile(ctx context.Context, resour result, err = client.GetAccessProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure responding to request") + return } return @@ -400,6 +402,7 @@ func (client ManagedClustersClient) GetAccessProfiles(ctx context.Context, resou result, err = client.GetAccessProfilesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfiles", resp, "Failure responding to request") + return } return @@ -477,6 +480,7 @@ func (client ManagedClustersClient) GetUpgradeProfile(ctx context.Context, resou result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -551,6 +555,7 @@ func (client ManagedClustersClient) List(ctx context.Context) (result ManagedClu result.mclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -613,6 +618,7 @@ func (client ManagedClustersClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -665,6 +671,7 @@ func (client ManagedClustersClient) ListByResourceGroup(ctx context.Context, res result.mclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -728,6 +735,7 @@ func (client ManagedClustersClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2018-03-31/containerservice/containerservices.go b/services/containerservice/mgmt/2018-03-31/containerservice/containerservices.go index 7206a407f692..4fc0b123423c 100644 --- a/services/containerservice/mgmt/2018-03-31/containerservice/containerservices.go +++ b/services/containerservice/mgmt/2018-03-31/containerservice/containerservices.go @@ -266,6 +266,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result ListResu result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +404,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -570,6 +575,7 @@ func (client ContainerServicesClient) ListOrchestrators(ctx context.Context, loc result, err = client.ListOrchestratorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2018-03-31/containerservice/managedclusters.go b/services/containerservice/mgmt/2018-03-31/containerservice/managedclusters.go index cf3d7caa42a5..a2758e6621cc 100644 --- a/services/containerservice/mgmt/2018-03-31/containerservice/managedclusters.go +++ b/services/containerservice/mgmt/2018-03-31/containerservice/managedclusters.go @@ -269,6 +269,7 @@ func (client ManagedClustersClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -352,6 +353,7 @@ func (client ManagedClustersClient) GetAccessProfile(ctx context.Context, resour result, err = client.GetAccessProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure responding to request") + return } return @@ -435,6 +437,7 @@ func (client ManagedClustersClient) GetUpgradeProfile(ctx context.Context, resou result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -509,6 +512,7 @@ func (client ManagedClustersClient) List(ctx context.Context) (result ManagedClu result.mclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -571,6 +575,7 @@ func (client ManagedClustersClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -629,6 +634,7 @@ func (client ManagedClustersClient) ListByResourceGroup(ctx context.Context, res result.mclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -692,6 +698,7 @@ func (client ManagedClustersClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +757,7 @@ func (client ManagedClustersClient) ListClusterAdminCredentials(ctx context.Cont result, err = client.ListClusterAdminCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", resp, "Failure responding to request") + return } return @@ -832,6 +840,7 @@ func (client ManagedClustersClient) ListClusterUserCredentials(ctx context.Conte result, err = client.ListClusterUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2018-03-31/containerservice/operations.go b/services/containerservice/mgmt/2018-03-31/containerservice/operations.go index 31db60857bb6..887c13b77834 100644 --- a/services/containerservice/mgmt/2018-03-31/containerservice/operations.go +++ b/services/containerservice/mgmt/2018-03-31/containerservice/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2019-04-30/containerservice/agentpools.go b/services/containerservice/mgmt/2019-04-30/containerservice/agentpools.go index d47398398c54..bc3cfb2d5c15 100644 --- a/services/containerservice/mgmt/2019-04-30/containerservice/agentpools.go +++ b/services/containerservice/mgmt/2019-04-30/containerservice/agentpools.go @@ -267,6 +267,7 @@ func (client AgentPoolsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +356,7 @@ func (client AgentPoolsClient) List(ctx context.Context, resourceGroupName strin result.aplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "List", resp, "Failure responding to request") + return } if result.aplr.hasNextLink() && result.aplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -419,6 +421,7 @@ func (client AgentPoolsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2019-04-30/containerservice/containerservices.go b/services/containerservice/mgmt/2019-04-30/containerservice/containerservices.go index 7d22f945221c..da69894dc43f 100644 --- a/services/containerservice/mgmt/2019-04-30/containerservice/containerservices.go +++ b/services/containerservice/mgmt/2019-04-30/containerservice/containerservices.go @@ -266,6 +266,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result ListResu result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +404,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -571,6 +576,7 @@ func (client ContainerServicesClient) ListOrchestrators(ctx context.Context, loc result, err = client.ListOrchestratorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2019-04-30/containerservice/managedclusters.go b/services/containerservice/mgmt/2019-04-30/containerservice/managedclusters.go index 108352014672..32c112ba5849 100644 --- a/services/containerservice/mgmt/2019-04-30/containerservice/managedclusters.go +++ b/services/containerservice/mgmt/2019-04-30/containerservice/managedclusters.go @@ -283,6 +283,7 @@ func (client ManagedClustersClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +371,7 @@ func (client ManagedClustersClient) GetAccessProfile(ctx context.Context, resour result, err = client.GetAccessProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure responding to request") + return } return @@ -457,6 +459,7 @@ func (client ManagedClustersClient) GetUpgradeProfile(ctx context.Context, resou result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -531,6 +534,7 @@ func (client ManagedClustersClient) List(ctx context.Context) (result ManagedClu result.mclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -593,6 +597,7 @@ func (client ManagedClustersClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -651,6 +656,7 @@ func (client ManagedClustersClient) ListByResourceGroup(ctx context.Context, res result.mclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -714,6 +720,7 @@ func (client ManagedClustersClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -776,6 +783,7 @@ func (client ManagedClustersClient) ListClusterAdminCredentials(ctx context.Cont result, err = client.ListClusterAdminCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", resp, "Failure responding to request") + return } return @@ -862,6 +870,7 @@ func (client ManagedClustersClient) ListClusterUserCredentials(ctx context.Conte result, err = client.ListClusterUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2019-04-30/containerservice/openshiftmanagedclusters.go b/services/containerservice/mgmt/2019-04-30/containerservice/openshiftmanagedclusters.go index 6d4a33c0016d..d1e88f926c7b 100644 --- a/services/containerservice/mgmt/2019-04-30/containerservice/openshiftmanagedclusters.go +++ b/services/containerservice/mgmt/2019-04-30/containerservice/openshiftmanagedclusters.go @@ -251,6 +251,7 @@ func (client OpenShiftManagedClustersClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client OpenShiftManagedClustersClient) List(ctx context.Context) (result O result.osmclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +389,7 @@ func (client OpenShiftManagedClustersClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +448,7 @@ func (client OpenShiftManagedClustersClient) ListByResourceGroup(ctx context.Con result.osmclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -508,6 +512,7 @@ func (client OpenShiftManagedClustersClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2019-04-30/containerservice/operations.go b/services/containerservice/mgmt/2019-04-30/containerservice/operations.go index 8695a5ee7a5a..bc5466d0a639 100644 --- a/services/containerservice/mgmt/2019-04-30/containerservice/operations.go +++ b/services/containerservice/mgmt/2019-04-30/containerservice/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2019-06-01/containerservice/agentpools.go b/services/containerservice/mgmt/2019-06-01/containerservice/agentpools.go index 58ed7fd2f897..a4b901ca46f9 100644 --- a/services/containerservice/mgmt/2019-06-01/containerservice/agentpools.go +++ b/services/containerservice/mgmt/2019-06-01/containerservice/agentpools.go @@ -260,6 +260,7 @@ func (client AgentPoolsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +347,7 @@ func (client AgentPoolsClient) GetAvailableAgentPoolVersions(ctx context.Context result, err = client.GetAvailableAgentPoolVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetAvailableAgentPoolVersions", resp, "Failure responding to request") + return } return @@ -433,6 +435,7 @@ func (client AgentPoolsClient) GetUpgradeProfile(ctx context.Context, resourceGr result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -521,6 +524,7 @@ func (client AgentPoolsClient) List(ctx context.Context, resourceGroupName strin result.aplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "List", resp, "Failure responding to request") + return } if result.aplr.hasNextLink() && result.aplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -585,6 +589,7 @@ func (client AgentPoolsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2019-06-01/containerservice/containerservices.go b/services/containerservice/mgmt/2019-06-01/containerservice/containerservices.go index c018c3137e3b..642ec75239b1 100644 --- a/services/containerservice/mgmt/2019-06-01/containerservice/containerservices.go +++ b/services/containerservice/mgmt/2019-06-01/containerservice/containerservices.go @@ -266,6 +266,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result ListResu result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +404,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -571,6 +576,7 @@ func (client ContainerServicesClient) ListOrchestrators(ctx context.Context, loc result, err = client.ListOrchestratorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2019-06-01/containerservice/managedclusters.go b/services/containerservice/mgmt/2019-06-01/containerservice/managedclusters.go index 99cba74f9e43..39cbeccb095f 100644 --- a/services/containerservice/mgmt/2019-06-01/containerservice/managedclusters.go +++ b/services/containerservice/mgmt/2019-06-01/containerservice/managedclusters.go @@ -283,6 +283,7 @@ func (client ManagedClustersClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +371,7 @@ func (client ManagedClustersClient) GetAccessProfile(ctx context.Context, resour result, err = client.GetAccessProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure responding to request") + return } return @@ -457,6 +459,7 @@ func (client ManagedClustersClient) GetUpgradeProfile(ctx context.Context, resou result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -531,6 +534,7 @@ func (client ManagedClustersClient) List(ctx context.Context) (result ManagedClu result.mclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -593,6 +597,7 @@ func (client ManagedClustersClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -651,6 +656,7 @@ func (client ManagedClustersClient) ListByResourceGroup(ctx context.Context, res result.mclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -714,6 +720,7 @@ func (client ManagedClustersClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -776,6 +783,7 @@ func (client ManagedClustersClient) ListClusterAdminCredentials(ctx context.Cont result, err = client.ListClusterAdminCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", resp, "Failure responding to request") + return } return @@ -862,6 +870,7 @@ func (client ManagedClustersClient) ListClusterUserCredentials(ctx context.Conte result, err = client.ListClusterUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2019-06-01/containerservice/openshiftmanagedclusters.go b/services/containerservice/mgmt/2019-06-01/containerservice/openshiftmanagedclusters.go index 6d4a33c0016d..d1e88f926c7b 100644 --- a/services/containerservice/mgmt/2019-06-01/containerservice/openshiftmanagedclusters.go +++ b/services/containerservice/mgmt/2019-06-01/containerservice/openshiftmanagedclusters.go @@ -251,6 +251,7 @@ func (client OpenShiftManagedClustersClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client OpenShiftManagedClustersClient) List(ctx context.Context) (result O result.osmclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +389,7 @@ func (client OpenShiftManagedClustersClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +448,7 @@ func (client OpenShiftManagedClustersClient) ListByResourceGroup(ctx context.Con result.osmclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -508,6 +512,7 @@ func (client OpenShiftManagedClustersClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2019-06-01/containerservice/operations.go b/services/containerservice/mgmt/2019-06-01/containerservice/operations.go index ec5161ea5ff3..557e86ccfd45 100644 --- a/services/containerservice/mgmt/2019-06-01/containerservice/operations.go +++ b/services/containerservice/mgmt/2019-06-01/containerservice/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2019-08-01/containerservice/agentpools.go b/services/containerservice/mgmt/2019-08-01/containerservice/agentpools.go index 9c2009586c40..4b539bf3d6b5 100644 --- a/services/containerservice/mgmt/2019-08-01/containerservice/agentpools.go +++ b/services/containerservice/mgmt/2019-08-01/containerservice/agentpools.go @@ -260,6 +260,7 @@ func (client AgentPoolsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +347,7 @@ func (client AgentPoolsClient) GetAvailableAgentPoolVersions(ctx context.Context result, err = client.GetAvailableAgentPoolVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetAvailableAgentPoolVersions", resp, "Failure responding to request") + return } return @@ -433,6 +435,7 @@ func (client AgentPoolsClient) GetUpgradeProfile(ctx context.Context, resourceGr result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -521,6 +524,7 @@ func (client AgentPoolsClient) List(ctx context.Context, resourceGroupName strin result.aplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "List", resp, "Failure responding to request") + return } if result.aplr.hasNextLink() && result.aplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -585,6 +589,7 @@ func (client AgentPoolsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2019-08-01/containerservice/containerservices.go b/services/containerservice/mgmt/2019-08-01/containerservice/containerservices.go index 72dc381b4e58..5fe24241da70 100644 --- a/services/containerservice/mgmt/2019-08-01/containerservice/containerservices.go +++ b/services/containerservice/mgmt/2019-08-01/containerservice/containerservices.go @@ -266,6 +266,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result ListResu result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +404,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -571,6 +576,7 @@ func (client ContainerServicesClient) ListOrchestrators(ctx context.Context, loc result, err = client.ListOrchestratorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2019-08-01/containerservice/managedclusters.go b/services/containerservice/mgmt/2019-08-01/containerservice/managedclusters.go index 94f549fa1ae5..e546de20f74f 100644 --- a/services/containerservice/mgmt/2019-08-01/containerservice/managedclusters.go +++ b/services/containerservice/mgmt/2019-08-01/containerservice/managedclusters.go @@ -291,6 +291,7 @@ func (client ManagedClustersClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -378,6 +379,7 @@ func (client ManagedClustersClient) GetAccessProfile(ctx context.Context, resour result, err = client.GetAccessProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure responding to request") + return } return @@ -465,6 +467,7 @@ func (client ManagedClustersClient) GetUpgradeProfile(ctx context.Context, resou result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -539,6 +542,7 @@ func (client ManagedClustersClient) List(ctx context.Context) (result ManagedClu result.mclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -601,6 +605,7 @@ func (client ManagedClustersClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -659,6 +664,7 @@ func (client ManagedClustersClient) ListByResourceGroup(ctx context.Context, res result.mclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -722,6 +728,7 @@ func (client ManagedClustersClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -784,6 +791,7 @@ func (client ManagedClustersClient) ListClusterAdminCredentials(ctx context.Cont result, err = client.ListClusterAdminCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", resp, "Failure responding to request") + return } return @@ -870,6 +878,7 @@ func (client ManagedClustersClient) ListClusterUserCredentials(ctx context.Conte result, err = client.ListClusterUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2019-08-01/containerservice/openshiftmanagedclusters.go b/services/containerservice/mgmt/2019-08-01/containerservice/openshiftmanagedclusters.go index 6d4a33c0016d..d1e88f926c7b 100644 --- a/services/containerservice/mgmt/2019-08-01/containerservice/openshiftmanagedclusters.go +++ b/services/containerservice/mgmt/2019-08-01/containerservice/openshiftmanagedclusters.go @@ -251,6 +251,7 @@ func (client OpenShiftManagedClustersClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client OpenShiftManagedClustersClient) List(ctx context.Context) (result O result.osmclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +389,7 @@ func (client OpenShiftManagedClustersClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +448,7 @@ func (client OpenShiftManagedClustersClient) ListByResourceGroup(ctx context.Con result.osmclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -508,6 +512,7 @@ func (client OpenShiftManagedClustersClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2019-08-01/containerservice/operations.go b/services/containerservice/mgmt/2019-08-01/containerservice/operations.go index 7b7e588ded7c..f46f10e97031 100644 --- a/services/containerservice/mgmt/2019-08-01/containerservice/operations.go +++ b/services/containerservice/mgmt/2019-08-01/containerservice/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2019-10-01/containerservice/agentpools.go b/services/containerservice/mgmt/2019-10-01/containerservice/agentpools.go index f4f51fff702f..e72f5d987f38 100644 --- a/services/containerservice/mgmt/2019-10-01/containerservice/agentpools.go +++ b/services/containerservice/mgmt/2019-10-01/containerservice/agentpools.go @@ -260,6 +260,7 @@ func (client AgentPoolsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +347,7 @@ func (client AgentPoolsClient) GetAvailableAgentPoolVersions(ctx context.Context result, err = client.GetAvailableAgentPoolVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetAvailableAgentPoolVersions", resp, "Failure responding to request") + return } return @@ -433,6 +435,7 @@ func (client AgentPoolsClient) GetUpgradeProfile(ctx context.Context, resourceGr result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -521,6 +524,7 @@ func (client AgentPoolsClient) List(ctx context.Context, resourceGroupName strin result.aplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "List", resp, "Failure responding to request") + return } if result.aplr.hasNextLink() && result.aplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -585,6 +589,7 @@ func (client AgentPoolsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2019-10-01/containerservice/containerservices.go b/services/containerservice/mgmt/2019-10-01/containerservice/containerservices.go index 72dc381b4e58..5fe24241da70 100644 --- a/services/containerservice/mgmt/2019-10-01/containerservice/containerservices.go +++ b/services/containerservice/mgmt/2019-10-01/containerservice/containerservices.go @@ -266,6 +266,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result ListResu result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +404,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -571,6 +576,7 @@ func (client ContainerServicesClient) ListOrchestrators(ctx context.Context, loc result, err = client.ListOrchestratorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2019-10-01/containerservice/managedclusters.go b/services/containerservice/mgmt/2019-10-01/containerservice/managedclusters.go index fb8962cf5ebf..9791d6168792 100644 --- a/services/containerservice/mgmt/2019-10-01/containerservice/managedclusters.go +++ b/services/containerservice/mgmt/2019-10-01/containerservice/managedclusters.go @@ -291,6 +291,7 @@ func (client ManagedClustersClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -378,6 +379,7 @@ func (client ManagedClustersClient) GetAccessProfile(ctx context.Context, resour result, err = client.GetAccessProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure responding to request") + return } return @@ -465,6 +467,7 @@ func (client ManagedClustersClient) GetUpgradeProfile(ctx context.Context, resou result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -539,6 +542,7 @@ func (client ManagedClustersClient) List(ctx context.Context) (result ManagedClu result.mclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -601,6 +605,7 @@ func (client ManagedClustersClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -659,6 +664,7 @@ func (client ManagedClustersClient) ListByResourceGroup(ctx context.Context, res result.mclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -722,6 +728,7 @@ func (client ManagedClustersClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -784,6 +791,7 @@ func (client ManagedClustersClient) ListClusterAdminCredentials(ctx context.Cont result, err = client.ListClusterAdminCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", resp, "Failure responding to request") + return } return @@ -870,6 +878,7 @@ func (client ManagedClustersClient) ListClusterMonitoringUserCredentials(ctx con result, err = client.ListClusterMonitoringUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterMonitoringUserCredentials", resp, "Failure responding to request") + return } return @@ -956,6 +965,7 @@ func (client ManagedClustersClient) ListClusterUserCredentials(ctx context.Conte result, err = client.ListClusterUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2019-10-01/containerservice/openshiftmanagedclusters.go b/services/containerservice/mgmt/2019-10-01/containerservice/openshiftmanagedclusters.go index 6d4a33c0016d..d1e88f926c7b 100644 --- a/services/containerservice/mgmt/2019-10-01/containerservice/openshiftmanagedclusters.go +++ b/services/containerservice/mgmt/2019-10-01/containerservice/openshiftmanagedclusters.go @@ -251,6 +251,7 @@ func (client OpenShiftManagedClustersClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client OpenShiftManagedClustersClient) List(ctx context.Context) (result O result.osmclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +389,7 @@ func (client OpenShiftManagedClustersClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +448,7 @@ func (client OpenShiftManagedClustersClient) ListByResourceGroup(ctx context.Con result.osmclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -508,6 +512,7 @@ func (client OpenShiftManagedClustersClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2019-10-01/containerservice/operations.go b/services/containerservice/mgmt/2019-10-01/containerservice/operations.go index eb1e36bd050e..0e46dd9d030c 100644 --- a/services/containerservice/mgmt/2019-10-01/containerservice/operations.go +++ b/services/containerservice/mgmt/2019-10-01/containerservice/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2019-11-01/containerservice/agentpools.go b/services/containerservice/mgmt/2019-11-01/containerservice/agentpools.go index a79522b205f2..17b0800b9669 100644 --- a/services/containerservice/mgmt/2019-11-01/containerservice/agentpools.go +++ b/services/containerservice/mgmt/2019-11-01/containerservice/agentpools.go @@ -260,6 +260,7 @@ func (client AgentPoolsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +347,7 @@ func (client AgentPoolsClient) GetAvailableAgentPoolVersions(ctx context.Context result, err = client.GetAvailableAgentPoolVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetAvailableAgentPoolVersions", resp, "Failure responding to request") + return } return @@ -433,6 +435,7 @@ func (client AgentPoolsClient) GetUpgradeProfile(ctx context.Context, resourceGr result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -521,6 +524,7 @@ func (client AgentPoolsClient) List(ctx context.Context, resourceGroupName strin result.aplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "List", resp, "Failure responding to request") + return } if result.aplr.hasNextLink() && result.aplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -585,6 +589,7 @@ func (client AgentPoolsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2019-11-01/containerservice/containerservices.go b/services/containerservice/mgmt/2019-11-01/containerservice/containerservices.go index 72dc381b4e58..5fe24241da70 100644 --- a/services/containerservice/mgmt/2019-11-01/containerservice/containerservices.go +++ b/services/containerservice/mgmt/2019-11-01/containerservice/containerservices.go @@ -266,6 +266,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result ListResu result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +404,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -571,6 +576,7 @@ func (client ContainerServicesClient) ListOrchestrators(ctx context.Context, loc result, err = client.ListOrchestratorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2019-11-01/containerservice/managedclusters.go b/services/containerservice/mgmt/2019-11-01/containerservice/managedclusters.go index 4a5b66065a59..8340a77733d0 100644 --- a/services/containerservice/mgmt/2019-11-01/containerservice/managedclusters.go +++ b/services/containerservice/mgmt/2019-11-01/containerservice/managedclusters.go @@ -299,6 +299,7 @@ func (client ManagedClustersClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -386,6 +387,7 @@ func (client ManagedClustersClient) GetAccessProfile(ctx context.Context, resour result, err = client.GetAccessProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure responding to request") + return } return @@ -473,6 +475,7 @@ func (client ManagedClustersClient) GetUpgradeProfile(ctx context.Context, resou result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -547,6 +550,7 @@ func (client ManagedClustersClient) List(ctx context.Context) (result ManagedClu result.mclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -609,6 +613,7 @@ func (client ManagedClustersClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -667,6 +672,7 @@ func (client ManagedClustersClient) ListByResourceGroup(ctx context.Context, res result.mclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -730,6 +736,7 @@ func (client ManagedClustersClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -792,6 +799,7 @@ func (client ManagedClustersClient) ListClusterAdminCredentials(ctx context.Cont result, err = client.ListClusterAdminCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", resp, "Failure responding to request") + return } return @@ -878,6 +886,7 @@ func (client ManagedClustersClient) ListClusterMonitoringUserCredentials(ctx con result, err = client.ListClusterMonitoringUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterMonitoringUserCredentials", resp, "Failure responding to request") + return } return @@ -964,6 +973,7 @@ func (client ManagedClustersClient) ListClusterUserCredentials(ctx context.Conte result, err = client.ListClusterUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2019-11-01/containerservice/openshiftmanagedclusters.go b/services/containerservice/mgmt/2019-11-01/containerservice/openshiftmanagedclusters.go index 6d4a33c0016d..d1e88f926c7b 100644 --- a/services/containerservice/mgmt/2019-11-01/containerservice/openshiftmanagedclusters.go +++ b/services/containerservice/mgmt/2019-11-01/containerservice/openshiftmanagedclusters.go @@ -251,6 +251,7 @@ func (client OpenShiftManagedClustersClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client OpenShiftManagedClustersClient) List(ctx context.Context) (result O result.osmclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +389,7 @@ func (client OpenShiftManagedClustersClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +448,7 @@ func (client OpenShiftManagedClustersClient) ListByResourceGroup(ctx context.Con result.osmclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -508,6 +512,7 @@ func (client OpenShiftManagedClustersClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2019-11-01/containerservice/operations.go b/services/containerservice/mgmt/2019-11-01/containerservice/operations.go index 0767517f5b30..e17a841dfbd1 100644 --- a/services/containerservice/mgmt/2019-11-01/containerservice/operations.go +++ b/services/containerservice/mgmt/2019-11-01/containerservice/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-01-01/containerservice/agentpools.go b/services/containerservice/mgmt/2020-01-01/containerservice/agentpools.go index b13e276146f4..a5d9414d83e6 100644 --- a/services/containerservice/mgmt/2020-01-01/containerservice/agentpools.go +++ b/services/containerservice/mgmt/2020-01-01/containerservice/agentpools.go @@ -260,6 +260,7 @@ func (client AgentPoolsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +347,7 @@ func (client AgentPoolsClient) GetAvailableAgentPoolVersions(ctx context.Context result, err = client.GetAvailableAgentPoolVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetAvailableAgentPoolVersions", resp, "Failure responding to request") + return } return @@ -433,6 +435,7 @@ func (client AgentPoolsClient) GetUpgradeProfile(ctx context.Context, resourceGr result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -521,6 +524,7 @@ func (client AgentPoolsClient) List(ctx context.Context, resourceGroupName strin result.aplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "List", resp, "Failure responding to request") + return } if result.aplr.hasNextLink() && result.aplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -585,6 +589,7 @@ func (client AgentPoolsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2020-01-01/containerservice/containerservices.go b/services/containerservice/mgmt/2020-01-01/containerservice/containerservices.go index 72dc381b4e58..5fe24241da70 100644 --- a/services/containerservice/mgmt/2020-01-01/containerservice/containerservices.go +++ b/services/containerservice/mgmt/2020-01-01/containerservice/containerservices.go @@ -266,6 +266,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result ListResu result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +404,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -571,6 +576,7 @@ func (client ContainerServicesClient) ListOrchestrators(ctx context.Context, loc result, err = client.ListOrchestratorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-01-01/containerservice/managedclusters.go b/services/containerservice/mgmt/2020-01-01/containerservice/managedclusters.go index 22bf0306a0e3..1ebb5ae7238f 100644 --- a/services/containerservice/mgmt/2020-01-01/containerservice/managedclusters.go +++ b/services/containerservice/mgmt/2020-01-01/containerservice/managedclusters.go @@ -299,6 +299,7 @@ func (client ManagedClustersClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -386,6 +387,7 @@ func (client ManagedClustersClient) GetAccessProfile(ctx context.Context, resour result, err = client.GetAccessProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure responding to request") + return } return @@ -473,6 +475,7 @@ func (client ManagedClustersClient) GetUpgradeProfile(ctx context.Context, resou result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -547,6 +550,7 @@ func (client ManagedClustersClient) List(ctx context.Context) (result ManagedClu result.mclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -609,6 +613,7 @@ func (client ManagedClustersClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -667,6 +672,7 @@ func (client ManagedClustersClient) ListByResourceGroup(ctx context.Context, res result.mclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -730,6 +736,7 @@ func (client ManagedClustersClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -792,6 +799,7 @@ func (client ManagedClustersClient) ListClusterAdminCredentials(ctx context.Cont result, err = client.ListClusterAdminCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", resp, "Failure responding to request") + return } return @@ -878,6 +886,7 @@ func (client ManagedClustersClient) ListClusterMonitoringUserCredentials(ctx con result, err = client.ListClusterMonitoringUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterMonitoringUserCredentials", resp, "Failure responding to request") + return } return @@ -964,6 +973,7 @@ func (client ManagedClustersClient) ListClusterUserCredentials(ctx context.Conte result, err = client.ListClusterUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-01-01/containerservice/openshiftmanagedclusters.go b/services/containerservice/mgmt/2020-01-01/containerservice/openshiftmanagedclusters.go index 6d4a33c0016d..d1e88f926c7b 100644 --- a/services/containerservice/mgmt/2020-01-01/containerservice/openshiftmanagedclusters.go +++ b/services/containerservice/mgmt/2020-01-01/containerservice/openshiftmanagedclusters.go @@ -251,6 +251,7 @@ func (client OpenShiftManagedClustersClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client OpenShiftManagedClustersClient) List(ctx context.Context) (result O result.osmclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +389,7 @@ func (client OpenShiftManagedClustersClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +448,7 @@ func (client OpenShiftManagedClustersClient) ListByResourceGroup(ctx context.Con result.osmclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -508,6 +512,7 @@ func (client OpenShiftManagedClustersClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2020-01-01/containerservice/operations.go b/services/containerservice/mgmt/2020-01-01/containerservice/operations.go index fecbcfae955b..4dc7e8273353 100644 --- a/services/containerservice/mgmt/2020-01-01/containerservice/operations.go +++ b/services/containerservice/mgmt/2020-01-01/containerservice/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-02-01/containerservice/agentpools.go b/services/containerservice/mgmt/2020-02-01/containerservice/agentpools.go index b1ed59d49c28..af631880bb5d 100644 --- a/services/containerservice/mgmt/2020-02-01/containerservice/agentpools.go +++ b/services/containerservice/mgmt/2020-02-01/containerservice/agentpools.go @@ -260,6 +260,7 @@ func (client AgentPoolsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +347,7 @@ func (client AgentPoolsClient) GetAvailableAgentPoolVersions(ctx context.Context result, err = client.GetAvailableAgentPoolVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetAvailableAgentPoolVersions", resp, "Failure responding to request") + return } return @@ -433,6 +435,7 @@ func (client AgentPoolsClient) GetUpgradeProfile(ctx context.Context, resourceGr result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -521,6 +524,7 @@ func (client AgentPoolsClient) List(ctx context.Context, resourceGroupName strin result.aplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "List", resp, "Failure responding to request") + return } if result.aplr.hasNextLink() && result.aplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -585,6 +589,7 @@ func (client AgentPoolsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2020-02-01/containerservice/containerservices.go b/services/containerservice/mgmt/2020-02-01/containerservice/containerservices.go index 72dc381b4e58..5fe24241da70 100644 --- a/services/containerservice/mgmt/2020-02-01/containerservice/containerservices.go +++ b/services/containerservice/mgmt/2020-02-01/containerservice/containerservices.go @@ -266,6 +266,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result ListResu result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +404,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -571,6 +576,7 @@ func (client ContainerServicesClient) ListOrchestrators(ctx context.Context, loc result, err = client.ListOrchestratorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-02-01/containerservice/managedclusters.go b/services/containerservice/mgmt/2020-02-01/containerservice/managedclusters.go index c61d8f5e3418..78221380b919 100644 --- a/services/containerservice/mgmt/2020-02-01/containerservice/managedclusters.go +++ b/services/containerservice/mgmt/2020-02-01/containerservice/managedclusters.go @@ -299,6 +299,7 @@ func (client ManagedClustersClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -386,6 +387,7 @@ func (client ManagedClustersClient) GetAccessProfile(ctx context.Context, resour result, err = client.GetAccessProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure responding to request") + return } return @@ -473,6 +475,7 @@ func (client ManagedClustersClient) GetUpgradeProfile(ctx context.Context, resou result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -547,6 +550,7 @@ func (client ManagedClustersClient) List(ctx context.Context) (result ManagedClu result.mclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -609,6 +613,7 @@ func (client ManagedClustersClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -667,6 +672,7 @@ func (client ManagedClustersClient) ListByResourceGroup(ctx context.Context, res result.mclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -730,6 +736,7 @@ func (client ManagedClustersClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -792,6 +799,7 @@ func (client ManagedClustersClient) ListClusterAdminCredentials(ctx context.Cont result, err = client.ListClusterAdminCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", resp, "Failure responding to request") + return } return @@ -878,6 +886,7 @@ func (client ManagedClustersClient) ListClusterMonitoringUserCredentials(ctx con result, err = client.ListClusterMonitoringUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterMonitoringUserCredentials", resp, "Failure responding to request") + return } return @@ -964,6 +973,7 @@ func (client ManagedClustersClient) ListClusterUserCredentials(ctx context.Conte result, err = client.ListClusterUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-02-01/containerservice/openshiftmanagedclusters.go b/services/containerservice/mgmt/2020-02-01/containerservice/openshiftmanagedclusters.go index 6d4a33c0016d..d1e88f926c7b 100644 --- a/services/containerservice/mgmt/2020-02-01/containerservice/openshiftmanagedclusters.go +++ b/services/containerservice/mgmt/2020-02-01/containerservice/openshiftmanagedclusters.go @@ -251,6 +251,7 @@ func (client OpenShiftManagedClustersClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client OpenShiftManagedClustersClient) List(ctx context.Context) (result O result.osmclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +389,7 @@ func (client OpenShiftManagedClustersClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +448,7 @@ func (client OpenShiftManagedClustersClient) ListByResourceGroup(ctx context.Con result.osmclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -508,6 +512,7 @@ func (client OpenShiftManagedClustersClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2020-02-01/containerservice/operations.go b/services/containerservice/mgmt/2020-02-01/containerservice/operations.go index 7ab421715ae9..b9a697875cee 100644 --- a/services/containerservice/mgmt/2020-02-01/containerservice/operations.go +++ b/services/containerservice/mgmt/2020-02-01/containerservice/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-03-01/containerservice/agentpools.go b/services/containerservice/mgmt/2020-03-01/containerservice/agentpools.go index 44e9133a4720..4cbadb88b971 100644 --- a/services/containerservice/mgmt/2020-03-01/containerservice/agentpools.go +++ b/services/containerservice/mgmt/2020-03-01/containerservice/agentpools.go @@ -260,6 +260,7 @@ func (client AgentPoolsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +347,7 @@ func (client AgentPoolsClient) GetAvailableAgentPoolVersions(ctx context.Context result, err = client.GetAvailableAgentPoolVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetAvailableAgentPoolVersions", resp, "Failure responding to request") + return } return @@ -433,6 +435,7 @@ func (client AgentPoolsClient) GetUpgradeProfile(ctx context.Context, resourceGr result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -521,6 +524,7 @@ func (client AgentPoolsClient) List(ctx context.Context, resourceGroupName strin result.aplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "List", resp, "Failure responding to request") + return } if result.aplr.hasNextLink() && result.aplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -585,6 +589,7 @@ func (client AgentPoolsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2020-03-01/containerservice/containerservices.go b/services/containerservice/mgmt/2020-03-01/containerservice/containerservices.go index 72dc381b4e58..5fe24241da70 100644 --- a/services/containerservice/mgmt/2020-03-01/containerservice/containerservices.go +++ b/services/containerservice/mgmt/2020-03-01/containerservice/containerservices.go @@ -266,6 +266,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result ListResu result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +404,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -571,6 +576,7 @@ func (client ContainerServicesClient) ListOrchestrators(ctx context.Context, loc result, err = client.ListOrchestratorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-03-01/containerservice/managedclusters.go b/services/containerservice/mgmt/2020-03-01/containerservice/managedclusters.go index d2b7373abf8b..8ece31232117 100644 --- a/services/containerservice/mgmt/2020-03-01/containerservice/managedclusters.go +++ b/services/containerservice/mgmt/2020-03-01/containerservice/managedclusters.go @@ -295,6 +295,7 @@ func (client ManagedClustersClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -382,6 +383,7 @@ func (client ManagedClustersClient) GetAccessProfile(ctx context.Context, resour result, err = client.GetAccessProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure responding to request") + return } return @@ -469,6 +471,7 @@ func (client ManagedClustersClient) GetUpgradeProfile(ctx context.Context, resou result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -543,6 +546,7 @@ func (client ManagedClustersClient) List(ctx context.Context) (result ManagedClu result.mclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -605,6 +609,7 @@ func (client ManagedClustersClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -663,6 +668,7 @@ func (client ManagedClustersClient) ListByResourceGroup(ctx context.Context, res result.mclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -726,6 +732,7 @@ func (client ManagedClustersClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -788,6 +795,7 @@ func (client ManagedClustersClient) ListClusterAdminCredentials(ctx context.Cont result, err = client.ListClusterAdminCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", resp, "Failure responding to request") + return } return @@ -874,6 +882,7 @@ func (client ManagedClustersClient) ListClusterMonitoringUserCredentials(ctx con result, err = client.ListClusterMonitoringUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterMonitoringUserCredentials", resp, "Failure responding to request") + return } return @@ -960,6 +969,7 @@ func (client ManagedClustersClient) ListClusterUserCredentials(ctx context.Conte result, err = client.ListClusterUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-03-01/containerservice/openshiftmanagedclusters.go b/services/containerservice/mgmt/2020-03-01/containerservice/openshiftmanagedclusters.go index 6d4a33c0016d..d1e88f926c7b 100644 --- a/services/containerservice/mgmt/2020-03-01/containerservice/openshiftmanagedclusters.go +++ b/services/containerservice/mgmt/2020-03-01/containerservice/openshiftmanagedclusters.go @@ -251,6 +251,7 @@ func (client OpenShiftManagedClustersClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client OpenShiftManagedClustersClient) List(ctx context.Context) (result O result.osmclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +389,7 @@ func (client OpenShiftManagedClustersClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +448,7 @@ func (client OpenShiftManagedClustersClient) ListByResourceGroup(ctx context.Con result.osmclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -508,6 +512,7 @@ func (client OpenShiftManagedClustersClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2020-03-01/containerservice/operations.go b/services/containerservice/mgmt/2020-03-01/containerservice/operations.go index b98eb6a33eb3..bfa5188bfde7 100644 --- a/services/containerservice/mgmt/2020-03-01/containerservice/operations.go +++ b/services/containerservice/mgmt/2020-03-01/containerservice/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-04-01/containerservice/agentpools.go b/services/containerservice/mgmt/2020-04-01/containerservice/agentpools.go index fe3eef19a859..be772061dfcd 100644 --- a/services/containerservice/mgmt/2020-04-01/containerservice/agentpools.go +++ b/services/containerservice/mgmt/2020-04-01/containerservice/agentpools.go @@ -260,6 +260,7 @@ func (client AgentPoolsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +347,7 @@ func (client AgentPoolsClient) GetAvailableAgentPoolVersions(ctx context.Context result, err = client.GetAvailableAgentPoolVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetAvailableAgentPoolVersions", resp, "Failure responding to request") + return } return @@ -433,6 +435,7 @@ func (client AgentPoolsClient) GetUpgradeProfile(ctx context.Context, resourceGr result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -521,6 +524,7 @@ func (client AgentPoolsClient) List(ctx context.Context, resourceGroupName strin result.aplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "List", resp, "Failure responding to request") + return } if result.aplr.hasNextLink() && result.aplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -585,6 +589,7 @@ func (client AgentPoolsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2020-04-01/containerservice/containerservices.go b/services/containerservice/mgmt/2020-04-01/containerservice/containerservices.go index 72dc381b4e58..5fe24241da70 100644 --- a/services/containerservice/mgmt/2020-04-01/containerservice/containerservices.go +++ b/services/containerservice/mgmt/2020-04-01/containerservice/containerservices.go @@ -266,6 +266,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result ListResu result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +404,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -571,6 +576,7 @@ func (client ContainerServicesClient) ListOrchestrators(ctx context.Context, loc result, err = client.ListOrchestratorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-04-01/containerservice/managedclusters.go b/services/containerservice/mgmt/2020-04-01/containerservice/managedclusters.go index 3eee8ddc3380..a3f0061ea027 100644 --- a/services/containerservice/mgmt/2020-04-01/containerservice/managedclusters.go +++ b/services/containerservice/mgmt/2020-04-01/containerservice/managedclusters.go @@ -295,6 +295,7 @@ func (client ManagedClustersClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -386,6 +387,7 @@ func (client ManagedClustersClient) GetAccessProfile(ctx context.Context, resour result, err = client.GetAccessProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure responding to request") + return } return @@ -473,6 +475,7 @@ func (client ManagedClustersClient) GetUpgradeProfile(ctx context.Context, resou result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -547,6 +550,7 @@ func (client ManagedClustersClient) List(ctx context.Context) (result ManagedClu result.mclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -609,6 +613,7 @@ func (client ManagedClustersClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -667,6 +672,7 @@ func (client ManagedClustersClient) ListByResourceGroup(ctx context.Context, res result.mclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -730,6 +736,7 @@ func (client ManagedClustersClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -792,6 +799,7 @@ func (client ManagedClustersClient) ListClusterAdminCredentials(ctx context.Cont result, err = client.ListClusterAdminCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", resp, "Failure responding to request") + return } return @@ -878,6 +886,7 @@ func (client ManagedClustersClient) ListClusterMonitoringUserCredentials(ctx con result, err = client.ListClusterMonitoringUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterMonitoringUserCredentials", resp, "Failure responding to request") + return } return @@ -964,6 +973,7 @@ func (client ManagedClustersClient) ListClusterUserCredentials(ctx context.Conte result, err = client.ListClusterUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-04-01/containerservice/openshiftmanagedclusters.go b/services/containerservice/mgmt/2020-04-01/containerservice/openshiftmanagedclusters.go index 6d4a33c0016d..d1e88f926c7b 100644 --- a/services/containerservice/mgmt/2020-04-01/containerservice/openshiftmanagedclusters.go +++ b/services/containerservice/mgmt/2020-04-01/containerservice/openshiftmanagedclusters.go @@ -251,6 +251,7 @@ func (client OpenShiftManagedClustersClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client OpenShiftManagedClustersClient) List(ctx context.Context) (result O result.osmclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +389,7 @@ func (client OpenShiftManagedClustersClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +448,7 @@ func (client OpenShiftManagedClustersClient) ListByResourceGroup(ctx context.Con result.osmclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -508,6 +512,7 @@ func (client OpenShiftManagedClustersClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2020-04-01/containerservice/operations.go b/services/containerservice/mgmt/2020-04-01/containerservice/operations.go index 7bf838c1deb0..5ca08ff161a5 100644 --- a/services/containerservice/mgmt/2020-04-01/containerservice/operations.go +++ b/services/containerservice/mgmt/2020-04-01/containerservice/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-06-01/containerservice/agentpools.go b/services/containerservice/mgmt/2020-06-01/containerservice/agentpools.go index 20d3ecfa3838..7d25e287e3f1 100644 --- a/services/containerservice/mgmt/2020-06-01/containerservice/agentpools.go +++ b/services/containerservice/mgmt/2020-06-01/containerservice/agentpools.go @@ -260,6 +260,7 @@ func (client AgentPoolsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +347,7 @@ func (client AgentPoolsClient) GetAvailableAgentPoolVersions(ctx context.Context result, err = client.GetAvailableAgentPoolVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetAvailableAgentPoolVersions", resp, "Failure responding to request") + return } return @@ -433,6 +435,7 @@ func (client AgentPoolsClient) GetUpgradeProfile(ctx context.Context, resourceGr result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -521,6 +524,7 @@ func (client AgentPoolsClient) List(ctx context.Context, resourceGroupName strin result.aplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "List", resp, "Failure responding to request") + return } if result.aplr.hasNextLink() && result.aplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -585,6 +589,7 @@ func (client AgentPoolsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2020-06-01/containerservice/containerservices.go b/services/containerservice/mgmt/2020-06-01/containerservice/containerservices.go index 72dc381b4e58..5fe24241da70 100644 --- a/services/containerservice/mgmt/2020-06-01/containerservice/containerservices.go +++ b/services/containerservice/mgmt/2020-06-01/containerservice/containerservices.go @@ -266,6 +266,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result ListResu result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +404,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -571,6 +576,7 @@ func (client ContainerServicesClient) ListOrchestrators(ctx context.Context, loc result, err = client.ListOrchestratorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-06-01/containerservice/managedclusters.go b/services/containerservice/mgmt/2020-06-01/containerservice/managedclusters.go index 023a155c9bc8..eff6b0e2cdd1 100644 --- a/services/containerservice/mgmt/2020-06-01/containerservice/managedclusters.go +++ b/services/containerservice/mgmt/2020-06-01/containerservice/managedclusters.go @@ -295,6 +295,7 @@ func (client ManagedClustersClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -386,6 +387,7 @@ func (client ManagedClustersClient) GetAccessProfile(ctx context.Context, resour result, err = client.GetAccessProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure responding to request") + return } return @@ -473,6 +475,7 @@ func (client ManagedClustersClient) GetUpgradeProfile(ctx context.Context, resou result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -547,6 +550,7 @@ func (client ManagedClustersClient) List(ctx context.Context) (result ManagedClu result.mclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -609,6 +613,7 @@ func (client ManagedClustersClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -667,6 +672,7 @@ func (client ManagedClustersClient) ListByResourceGroup(ctx context.Context, res result.mclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -730,6 +736,7 @@ func (client ManagedClustersClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -792,6 +799,7 @@ func (client ManagedClustersClient) ListClusterAdminCredentials(ctx context.Cont result, err = client.ListClusterAdminCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", resp, "Failure responding to request") + return } return @@ -878,6 +886,7 @@ func (client ManagedClustersClient) ListClusterMonitoringUserCredentials(ctx con result, err = client.ListClusterMonitoringUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterMonitoringUserCredentials", resp, "Failure responding to request") + return } return @@ -964,6 +973,7 @@ func (client ManagedClustersClient) ListClusterUserCredentials(ctx context.Conte result, err = client.ListClusterUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-06-01/containerservice/openshiftmanagedclusters.go b/services/containerservice/mgmt/2020-06-01/containerservice/openshiftmanagedclusters.go index 6d4a33c0016d..d1e88f926c7b 100644 --- a/services/containerservice/mgmt/2020-06-01/containerservice/openshiftmanagedclusters.go +++ b/services/containerservice/mgmt/2020-06-01/containerservice/openshiftmanagedclusters.go @@ -251,6 +251,7 @@ func (client OpenShiftManagedClustersClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client OpenShiftManagedClustersClient) List(ctx context.Context) (result O result.osmclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +389,7 @@ func (client OpenShiftManagedClustersClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +448,7 @@ func (client OpenShiftManagedClustersClient) ListByResourceGroup(ctx context.Con result.osmclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -508,6 +512,7 @@ func (client OpenShiftManagedClustersClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2020-06-01/containerservice/operations.go b/services/containerservice/mgmt/2020-06-01/containerservice/operations.go index 37193e891584..dbf88f487673 100644 --- a/services/containerservice/mgmt/2020-06-01/containerservice/operations.go +++ b/services/containerservice/mgmt/2020-06-01/containerservice/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-06-01/containerservice/privateendpointconnections.go b/services/containerservice/mgmt/2020-06-01/containerservice/privateendpointconnections.go index acab04da48bc..22e60ed4adbb 100644 --- a/services/containerservice/mgmt/2020-06-01/containerservice/privateendpointconnections.go +++ b/services/containerservice/mgmt/2020-06-01/containerservice/privateendpointconnections.go @@ -171,6 +171,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -258,6 +259,7 @@ func (client PrivateEndpointConnectionsClient) List(ctx context.Context, resourc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.PrivateEndpointConnectionsClient", "List", resp, "Failure responding to request") + return } return @@ -348,6 +350,7 @@ func (client PrivateEndpointConnectionsClient) Update(ctx context.Context, resou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.PrivateEndpointConnectionsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-07-01/containerservice/agentpools.go b/services/containerservice/mgmt/2020-07-01/containerservice/agentpools.go index 8b918fc21e78..d04997ab3aad 100644 --- a/services/containerservice/mgmt/2020-07-01/containerservice/agentpools.go +++ b/services/containerservice/mgmt/2020-07-01/containerservice/agentpools.go @@ -260,6 +260,7 @@ func (client AgentPoolsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +347,7 @@ func (client AgentPoolsClient) GetAvailableAgentPoolVersions(ctx context.Context result, err = client.GetAvailableAgentPoolVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetAvailableAgentPoolVersions", resp, "Failure responding to request") + return } return @@ -433,6 +435,7 @@ func (client AgentPoolsClient) GetUpgradeProfile(ctx context.Context, resourceGr result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -521,6 +524,7 @@ func (client AgentPoolsClient) List(ctx context.Context, resourceGroupName strin result.aplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "List", resp, "Failure responding to request") + return } if result.aplr.hasNextLink() && result.aplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -585,6 +589,7 @@ func (client AgentPoolsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2020-07-01/containerservice/containerservices.go b/services/containerservice/mgmt/2020-07-01/containerservice/containerservices.go index 72dc381b4e58..5fe24241da70 100644 --- a/services/containerservice/mgmt/2020-07-01/containerservice/containerservices.go +++ b/services/containerservice/mgmt/2020-07-01/containerservice/containerservices.go @@ -266,6 +266,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result ListResu result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +404,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -571,6 +576,7 @@ func (client ContainerServicesClient) ListOrchestrators(ctx context.Context, loc result, err = client.ListOrchestratorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-07-01/containerservice/managedclusters.go b/services/containerservice/mgmt/2020-07-01/containerservice/managedclusters.go index 862d4aa0a2bb..e8404bd276d8 100644 --- a/services/containerservice/mgmt/2020-07-01/containerservice/managedclusters.go +++ b/services/containerservice/mgmt/2020-07-01/containerservice/managedclusters.go @@ -295,6 +295,7 @@ func (client ManagedClustersClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -386,6 +387,7 @@ func (client ManagedClustersClient) GetAccessProfile(ctx context.Context, resour result, err = client.GetAccessProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure responding to request") + return } return @@ -473,6 +475,7 @@ func (client ManagedClustersClient) GetUpgradeProfile(ctx context.Context, resou result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -547,6 +550,7 @@ func (client ManagedClustersClient) List(ctx context.Context) (result ManagedClu result.mclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -609,6 +613,7 @@ func (client ManagedClustersClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -667,6 +672,7 @@ func (client ManagedClustersClient) ListByResourceGroup(ctx context.Context, res result.mclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -730,6 +736,7 @@ func (client ManagedClustersClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -792,6 +799,7 @@ func (client ManagedClustersClient) ListClusterAdminCredentials(ctx context.Cont result, err = client.ListClusterAdminCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", resp, "Failure responding to request") + return } return @@ -878,6 +886,7 @@ func (client ManagedClustersClient) ListClusterMonitoringUserCredentials(ctx con result, err = client.ListClusterMonitoringUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterMonitoringUserCredentials", resp, "Failure responding to request") + return } return @@ -964,6 +973,7 @@ func (client ManagedClustersClient) ListClusterUserCredentials(ctx context.Conte result, err = client.ListClusterUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-07-01/containerservice/openshiftmanagedclusters.go b/services/containerservice/mgmt/2020-07-01/containerservice/openshiftmanagedclusters.go index 6d4a33c0016d..d1e88f926c7b 100644 --- a/services/containerservice/mgmt/2020-07-01/containerservice/openshiftmanagedclusters.go +++ b/services/containerservice/mgmt/2020-07-01/containerservice/openshiftmanagedclusters.go @@ -251,6 +251,7 @@ func (client OpenShiftManagedClustersClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client OpenShiftManagedClustersClient) List(ctx context.Context) (result O result.osmclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +389,7 @@ func (client OpenShiftManagedClustersClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +448,7 @@ func (client OpenShiftManagedClustersClient) ListByResourceGroup(ctx context.Con result.osmclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -508,6 +512,7 @@ func (client OpenShiftManagedClustersClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2020-07-01/containerservice/operations.go b/services/containerservice/mgmt/2020-07-01/containerservice/operations.go index 04b87c824787..ad7bb3e31ce4 100644 --- a/services/containerservice/mgmt/2020-07-01/containerservice/operations.go +++ b/services/containerservice/mgmt/2020-07-01/containerservice/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-07-01/containerservice/privateendpointconnections.go b/services/containerservice/mgmt/2020-07-01/containerservice/privateendpointconnections.go index 8259f068dee6..51f056f1ada4 100644 --- a/services/containerservice/mgmt/2020-07-01/containerservice/privateendpointconnections.go +++ b/services/containerservice/mgmt/2020-07-01/containerservice/privateendpointconnections.go @@ -171,6 +171,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -258,6 +259,7 @@ func (client PrivateEndpointConnectionsClient) List(ctx context.Context, resourc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.PrivateEndpointConnectionsClient", "List", resp, "Failure responding to request") + return } return @@ -348,6 +350,7 @@ func (client PrivateEndpointConnectionsClient) Update(ctx context.Context, resou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.PrivateEndpointConnectionsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-09-01/containerservice/agentpools.go b/services/containerservice/mgmt/2020-09-01/containerservice/agentpools.go index 04e741f2592b..ded28f6b65ab 100644 --- a/services/containerservice/mgmt/2020-09-01/containerservice/agentpools.go +++ b/services/containerservice/mgmt/2020-09-01/containerservice/agentpools.go @@ -260,6 +260,7 @@ func (client AgentPoolsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +347,7 @@ func (client AgentPoolsClient) GetAvailableAgentPoolVersions(ctx context.Context result, err = client.GetAvailableAgentPoolVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetAvailableAgentPoolVersions", resp, "Failure responding to request") + return } return @@ -433,6 +435,7 @@ func (client AgentPoolsClient) GetUpgradeProfile(ctx context.Context, resourceGr result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -521,6 +524,7 @@ func (client AgentPoolsClient) List(ctx context.Context, resourceGroupName strin result.aplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "List", resp, "Failure responding to request") + return } if result.aplr.hasNextLink() && result.aplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -585,6 +589,7 @@ func (client AgentPoolsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2020-09-01/containerservice/containerservices.go b/services/containerservice/mgmt/2020-09-01/containerservice/containerservices.go index 72dc381b4e58..5fe24241da70 100644 --- a/services/containerservice/mgmt/2020-09-01/containerservice/containerservices.go +++ b/services/containerservice/mgmt/2020-09-01/containerservice/containerservices.go @@ -266,6 +266,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result ListResu result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +404,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -571,6 +576,7 @@ func (client ContainerServicesClient) ListOrchestrators(ctx context.Context, loc result, err = client.ListOrchestratorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-09-01/containerservice/managedclusters.go b/services/containerservice/mgmt/2020-09-01/containerservice/managedclusters.go index b727e07c16d0..e71fa924fe85 100644 --- a/services/containerservice/mgmt/2020-09-01/containerservice/managedclusters.go +++ b/services/containerservice/mgmt/2020-09-01/containerservice/managedclusters.go @@ -295,6 +295,7 @@ func (client ManagedClustersClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -386,6 +387,7 @@ func (client ManagedClustersClient) GetAccessProfile(ctx context.Context, resour result, err = client.GetAccessProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure responding to request") + return } return @@ -473,6 +475,7 @@ func (client ManagedClustersClient) GetUpgradeProfile(ctx context.Context, resou result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -547,6 +550,7 @@ func (client ManagedClustersClient) List(ctx context.Context) (result ManagedClu result.mclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -609,6 +613,7 @@ func (client ManagedClustersClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -667,6 +672,7 @@ func (client ManagedClustersClient) ListByResourceGroup(ctx context.Context, res result.mclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -730,6 +736,7 @@ func (client ManagedClustersClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -792,6 +799,7 @@ func (client ManagedClustersClient) ListClusterAdminCredentials(ctx context.Cont result, err = client.ListClusterAdminCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", resp, "Failure responding to request") + return } return @@ -878,6 +886,7 @@ func (client ManagedClustersClient) ListClusterMonitoringUserCredentials(ctx con result, err = client.ListClusterMonitoringUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterMonitoringUserCredentials", resp, "Failure responding to request") + return } return @@ -964,6 +973,7 @@ func (client ManagedClustersClient) ListClusterUserCredentials(ctx context.Conte result, err = client.ListClusterUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-09-01/containerservice/openshiftmanagedclusters.go b/services/containerservice/mgmt/2020-09-01/containerservice/openshiftmanagedclusters.go index 6d4a33c0016d..d1e88f926c7b 100644 --- a/services/containerservice/mgmt/2020-09-01/containerservice/openshiftmanagedclusters.go +++ b/services/containerservice/mgmt/2020-09-01/containerservice/openshiftmanagedclusters.go @@ -251,6 +251,7 @@ func (client OpenShiftManagedClustersClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client OpenShiftManagedClustersClient) List(ctx context.Context) (result O result.osmclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +389,7 @@ func (client OpenShiftManagedClustersClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +448,7 @@ func (client OpenShiftManagedClustersClient) ListByResourceGroup(ctx context.Con result.osmclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -508,6 +512,7 @@ func (client OpenShiftManagedClustersClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2020-09-01/containerservice/operations.go b/services/containerservice/mgmt/2020-09-01/containerservice/operations.go index f2e67bd44640..1e114a1fef1c 100644 --- a/services/containerservice/mgmt/2020-09-01/containerservice/operations.go +++ b/services/containerservice/mgmt/2020-09-01/containerservice/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-09-01/containerservice/privateendpointconnections.go b/services/containerservice/mgmt/2020-09-01/containerservice/privateendpointconnections.go index bb443b91c4c5..f9d43f5246d5 100644 --- a/services/containerservice/mgmt/2020-09-01/containerservice/privateendpointconnections.go +++ b/services/containerservice/mgmt/2020-09-01/containerservice/privateendpointconnections.go @@ -171,6 +171,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -258,6 +259,7 @@ func (client PrivateEndpointConnectionsClient) List(ctx context.Context, resourc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.PrivateEndpointConnectionsClient", "List", resp, "Failure responding to request") + return } return @@ -348,6 +350,7 @@ func (client PrivateEndpointConnectionsClient) Update(ctx context.Context, resou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.PrivateEndpointConnectionsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-09-01/containerservice/privatelinkresources.go b/services/containerservice/mgmt/2020-09-01/containerservice/privatelinkresources.go index fbe4e7eda123..9646963e987b 100644 --- a/services/containerservice/mgmt/2020-09-01/containerservice/privatelinkresources.go +++ b/services/containerservice/mgmt/2020-09-01/containerservice/privatelinkresources.go @@ -85,6 +85,7 @@ func (client PrivateLinkResourcesClient) List(ctx context.Context, resourceGroup result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.PrivateLinkResourcesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-09-01/containerservice/resolveprivatelinkserviceid.go b/services/containerservice/mgmt/2020-09-01/containerservice/resolveprivatelinkserviceid.go index c7d2171abb30..32bf0c0c120b 100644 --- a/services/containerservice/mgmt/2020-09-01/containerservice/resolveprivatelinkserviceid.go +++ b/services/containerservice/mgmt/2020-09-01/containerservice/resolveprivatelinkserviceid.go @@ -85,6 +85,7 @@ func (client ResolvePrivateLinkServiceIDClient) POST(ctx context.Context, resour result, err = client.POSTResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ResolvePrivateLinkServiceIDClient", "POST", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-11-01/containerservice/agentpools.go b/services/containerservice/mgmt/2020-11-01/containerservice/agentpools.go index 986567d4be50..a519a721fffc 100644 --- a/services/containerservice/mgmt/2020-11-01/containerservice/agentpools.go +++ b/services/containerservice/mgmt/2020-11-01/containerservice/agentpools.go @@ -260,6 +260,7 @@ func (client AgentPoolsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +347,7 @@ func (client AgentPoolsClient) GetAvailableAgentPoolVersions(ctx context.Context result, err = client.GetAvailableAgentPoolVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetAvailableAgentPoolVersions", resp, "Failure responding to request") + return } return @@ -433,6 +435,7 @@ func (client AgentPoolsClient) GetUpgradeProfile(ctx context.Context, resourceGr result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -521,6 +524,7 @@ func (client AgentPoolsClient) List(ctx context.Context, resourceGroupName strin result.aplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "List", resp, "Failure responding to request") + return } if result.aplr.hasNextLink() && result.aplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -585,6 +589,7 @@ func (client AgentPoolsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/containerservice/mgmt/2020-11-01/containerservice/managedclusters.go b/services/containerservice/mgmt/2020-11-01/containerservice/managedclusters.go index cd99401b34b3..05c040e3ea28 100644 --- a/services/containerservice/mgmt/2020-11-01/containerservice/managedclusters.go +++ b/services/containerservice/mgmt/2020-11-01/containerservice/managedclusters.go @@ -295,6 +295,7 @@ func (client ManagedClustersClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -386,6 +387,7 @@ func (client ManagedClustersClient) GetAccessProfile(ctx context.Context, resour result, err = client.GetAccessProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure responding to request") + return } return @@ -473,6 +475,7 @@ func (client ManagedClustersClient) GetUpgradeProfile(ctx context.Context, resou result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -547,6 +550,7 @@ func (client ManagedClustersClient) List(ctx context.Context) (result ManagedClu result.mclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -609,6 +613,7 @@ func (client ManagedClustersClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -667,6 +672,7 @@ func (client ManagedClustersClient) ListByResourceGroup(ctx context.Context, res result.mclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -730,6 +736,7 @@ func (client ManagedClustersClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -792,6 +799,7 @@ func (client ManagedClustersClient) ListClusterAdminCredentials(ctx context.Cont result, err = client.ListClusterAdminCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", resp, "Failure responding to request") + return } return @@ -878,6 +886,7 @@ func (client ManagedClustersClient) ListClusterMonitoringUserCredentials(ctx con result, err = client.ListClusterMonitoringUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterMonitoringUserCredentials", resp, "Failure responding to request") + return } return @@ -964,6 +973,7 @@ func (client ManagedClustersClient) ListClusterUserCredentials(ctx context.Conte result, err = client.ListClusterUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-11-01/containerservice/operations.go b/services/containerservice/mgmt/2020-11-01/containerservice/operations.go index ebe6d2e20f1e..7919d43379a0 100644 --- a/services/containerservice/mgmt/2020-11-01/containerservice/operations.go +++ b/services/containerservice/mgmt/2020-11-01/containerservice/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-11-01/containerservice/privateendpointconnections.go b/services/containerservice/mgmt/2020-11-01/containerservice/privateendpointconnections.go index 05fa2bf04ddc..5f07d153cbaf 100644 --- a/services/containerservice/mgmt/2020-11-01/containerservice/privateendpointconnections.go +++ b/services/containerservice/mgmt/2020-11-01/containerservice/privateendpointconnections.go @@ -171,6 +171,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -258,6 +259,7 @@ func (client PrivateEndpointConnectionsClient) List(ctx context.Context, resourc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.PrivateEndpointConnectionsClient", "List", resp, "Failure responding to request") + return } return @@ -348,6 +350,7 @@ func (client PrivateEndpointConnectionsClient) Update(ctx context.Context, resou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.PrivateEndpointConnectionsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-11-01/containerservice/privatelinkresources.go b/services/containerservice/mgmt/2020-11-01/containerservice/privatelinkresources.go index 5767a92f9bcf..f99290dd09d3 100644 --- a/services/containerservice/mgmt/2020-11-01/containerservice/privatelinkresources.go +++ b/services/containerservice/mgmt/2020-11-01/containerservice/privatelinkresources.go @@ -85,6 +85,7 @@ func (client PrivateLinkResourcesClient) List(ctx context.Context, resourceGroup result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.PrivateLinkResourcesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/containerservice/mgmt/2020-11-01/containerservice/resolveprivatelinkserviceid.go b/services/containerservice/mgmt/2020-11-01/containerservice/resolveprivatelinkserviceid.go index 355642a89bc4..ee2c23e4ac09 100644 --- a/services/containerservice/mgmt/2020-11-01/containerservice/resolveprivatelinkserviceid.go +++ b/services/containerservice/mgmt/2020-11-01/containerservice/resolveprivatelinkserviceid.go @@ -85,6 +85,7 @@ func (client ResolvePrivateLinkServiceIDClient) POST(ctx context.Context, resour result, err = client.POSTResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ResolvePrivateLinkServiceIDClient", "POST", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2015-04-08/documentdb/collection.go b/services/cosmos-db/mgmt/2015-04-08/documentdb/collection.go index 4f08d9a32e7e..7ddd7476e345 100644 --- a/services/cosmos-db/mgmt/2015-04-08/documentdb/collection.go +++ b/services/cosmos-db/mgmt/2015-04-08/documentdb/collection.go @@ -87,6 +87,7 @@ func (client CollectionClient) ListMetricDefinitions(ctx context.Context, resour result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client CollectionClient) ListMetrics(ctx context.Context, resourceGroupNam result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -275,6 +277,7 @@ func (client CollectionClient) ListUsages(ctx context.Context, resourceGroupName result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2015-04-08/documentdb/collectionpartition.go b/services/cosmos-db/mgmt/2015-04-08/documentdb/collectionpartition.go index 2ddb441640ac..44a2f279e97a 100644 --- a/services/cosmos-db/mgmt/2015-04-08/documentdb/collectionpartition.go +++ b/services/cosmos-db/mgmt/2015-04-08/documentdb/collectionpartition.go @@ -91,6 +91,7 @@ func (client CollectionPartitionClient) ListMetrics(ctx context.Context, resourc result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionPartitionClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client CollectionPartitionClient) ListUsages(ctx context.Context, resource result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionPartitionClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2015-04-08/documentdb/collectionpartitionregion.go b/services/cosmos-db/mgmt/2015-04-08/documentdb/collectionpartitionregion.go index 9af8bdc250d2..65d64b3bba0d 100644 --- a/services/cosmos-db/mgmt/2015-04-08/documentdb/collectionpartitionregion.go +++ b/services/cosmos-db/mgmt/2015-04-08/documentdb/collectionpartitionregion.go @@ -93,6 +93,7 @@ func (client CollectionPartitionRegionClient) ListMetrics(ctx context.Context, r result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionPartitionRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2015-04-08/documentdb/collectionregion.go b/services/cosmos-db/mgmt/2015-04-08/documentdb/collectionregion.go index 23b9ce067fc2..f8def06d6e27 100644 --- a/services/cosmos-db/mgmt/2015-04-08/documentdb/collectionregion.go +++ b/services/cosmos-db/mgmt/2015-04-08/documentdb/collectionregion.go @@ -93,6 +93,7 @@ func (client CollectionRegionClient) ListMetrics(ctx context.Context, resourceGr result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2015-04-08/documentdb/database.go b/services/cosmos-db/mgmt/2015-04-08/documentdb/database.go index 1c13d9726e8e..251121408990 100644 --- a/services/cosmos-db/mgmt/2015-04-08/documentdb/database.go +++ b/services/cosmos-db/mgmt/2015-04-08/documentdb/database.go @@ -86,6 +86,7 @@ func (client DatabaseClient) ListMetricDefinitions(ctx context.Context, resource result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client DatabaseClient) ListMetrics(ctx context.Context, resourceGroupName result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -270,6 +272,7 @@ func (client DatabaseClient) ListUsages(ctx context.Context, resourceGroupName s result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2015-04-08/documentdb/databaseaccountregion.go b/services/cosmos-db/mgmt/2015-04-08/documentdb/databaseaccountregion.go index e4f89751d70c..68722328e4f4 100644 --- a/services/cosmos-db/mgmt/2015-04-08/documentdb/databaseaccountregion.go +++ b/services/cosmos-db/mgmt/2015-04-08/documentdb/databaseaccountregion.go @@ -90,6 +90,7 @@ func (client DatabaseAccountRegionClient) ListMetrics(ctx context.Context, resou result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2015-04-08/documentdb/databaseaccounts.go b/services/cosmos-db/mgmt/2015-04-08/documentdb/databaseaccounts.go index cf1d031b070e..7e118af11033 100644 --- a/services/cosmos-db/mgmt/2015-04-08/documentdb/databaseaccounts.go +++ b/services/cosmos-db/mgmt/2015-04-08/documentdb/databaseaccounts.go @@ -82,6 +82,7 @@ func (client DatabaseAccountsClient) CheckNameExists(ctx context.Context, accoun result, err = client.CheckNameExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "CheckNameExists", resp, "Failure responding to request") + return } return @@ -2140,6 +2141,7 @@ func (client DatabaseAccountsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -2229,6 +2231,7 @@ func (client DatabaseAccountsClient) GetCassandraKeyspace(ctx context.Context, r result, err = client.GetCassandraKeyspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetCassandraKeyspace", resp, "Failure responding to request") + return } return @@ -2319,6 +2322,7 @@ func (client DatabaseAccountsClient) GetCassandraKeyspaceThroughput(ctx context. result, err = client.GetCassandraKeyspaceThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetCassandraKeyspaceThroughput", resp, "Failure responding to request") + return } return @@ -2409,6 +2413,7 @@ func (client DatabaseAccountsClient) GetCassandraTable(ctx context.Context, reso result, err = client.GetCassandraTableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetCassandraTable", resp, "Failure responding to request") + return } return @@ -2501,6 +2506,7 @@ func (client DatabaseAccountsClient) GetCassandraTableThroughput(ctx context.Con result, err = client.GetCassandraTableThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetCassandraTableThroughput", resp, "Failure responding to request") + return } return @@ -2592,6 +2598,7 @@ func (client DatabaseAccountsClient) GetGremlinDatabase(ctx context.Context, res result, err = client.GetGremlinDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetGremlinDatabase", resp, "Failure responding to request") + return } return @@ -2682,6 +2689,7 @@ func (client DatabaseAccountsClient) GetGremlinDatabaseThroughput(ctx context.Co result, err = client.GetGremlinDatabaseThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetGremlinDatabaseThroughput", resp, "Failure responding to request") + return } return @@ -2772,6 +2780,7 @@ func (client DatabaseAccountsClient) GetGremlinGraph(ctx context.Context, resour result, err = client.GetGremlinGraphResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetGremlinGraph", resp, "Failure responding to request") + return } return @@ -2864,6 +2873,7 @@ func (client DatabaseAccountsClient) GetGremlinGraphThroughput(ctx context.Conte result, err = client.GetGremlinGraphThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetGremlinGraphThroughput", resp, "Failure responding to request") + return } return @@ -2955,6 +2965,7 @@ func (client DatabaseAccountsClient) GetMongoDBCollection(ctx context.Context, r result, err = client.GetMongoDBCollectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetMongoDBCollection", resp, "Failure responding to request") + return } return @@ -3047,6 +3058,7 @@ func (client DatabaseAccountsClient) GetMongoDBCollectionThroughput(ctx context. result, err = client.GetMongoDBCollectionThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetMongoDBCollectionThroughput", resp, "Failure responding to request") + return } return @@ -3138,6 +3150,7 @@ func (client DatabaseAccountsClient) GetMongoDBDatabase(ctx context.Context, res result, err = client.GetMongoDBDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetMongoDBDatabase", resp, "Failure responding to request") + return } return @@ -3228,6 +3241,7 @@ func (client DatabaseAccountsClient) GetMongoDBDatabaseThroughput(ctx context.Co result, err = client.GetMongoDBDatabaseThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetMongoDBDatabaseThroughput", resp, "Failure responding to request") + return } return @@ -3316,6 +3330,7 @@ func (client DatabaseAccountsClient) GetReadOnlyKeys(ctx context.Context, resour result, err = client.GetReadOnlyKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetReadOnlyKeys", resp, "Failure responding to request") + return } return @@ -3405,6 +3420,7 @@ func (client DatabaseAccountsClient) GetSQLContainer(ctx context.Context, resour result, err = client.GetSQLContainerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetSQLContainer", resp, "Failure responding to request") + return } return @@ -3497,6 +3513,7 @@ func (client DatabaseAccountsClient) GetSQLContainerThroughput(ctx context.Conte result, err = client.GetSQLContainerThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetSQLContainerThroughput", resp, "Failure responding to request") + return } return @@ -3587,6 +3604,7 @@ func (client DatabaseAccountsClient) GetSQLDatabase(ctx context.Context, resourc result, err = client.GetSQLDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetSQLDatabase", resp, "Failure responding to request") + return } return @@ -3677,6 +3695,7 @@ func (client DatabaseAccountsClient) GetSQLDatabaseThroughput(ctx context.Contex result, err = client.GetSQLDatabaseThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetSQLDatabaseThroughput", resp, "Failure responding to request") + return } return @@ -3766,6 +3785,7 @@ func (client DatabaseAccountsClient) GetTable(ctx context.Context, resourceGroup result, err = client.GetTableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetTable", resp, "Failure responding to request") + return } return @@ -3856,6 +3876,7 @@ func (client DatabaseAccountsClient) GetTableThroughput(ctx context.Context, res result, err = client.GetTableThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetTableThroughput", resp, "Failure responding to request") + return } return @@ -3929,6 +3950,7 @@ func (client DatabaseAccountsClient) List(ctx context.Context) (result DatabaseA result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "List", resp, "Failure responding to request") + return } return @@ -4009,6 +4031,7 @@ func (client DatabaseAccountsClient) ListByResourceGroup(ctx context.Context, re result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -4095,6 +4118,7 @@ func (client DatabaseAccountsClient) ListCassandraKeyspaces(ctx context.Context, result, err = client.ListCassandraKeyspacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListCassandraKeyspaces", resp, "Failure responding to request") + return } return @@ -4183,6 +4207,7 @@ func (client DatabaseAccountsClient) ListCassandraTables(ctx context.Context, re result, err = client.ListCassandraTablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListCassandraTables", resp, "Failure responding to request") + return } return @@ -4271,6 +4296,7 @@ func (client DatabaseAccountsClient) ListConnectionStrings(ctx context.Context, result, err = client.ListConnectionStringsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListConnectionStrings", resp, "Failure responding to request") + return } return @@ -4358,6 +4384,7 @@ func (client DatabaseAccountsClient) ListGremlinDatabases(ctx context.Context, r result, err = client.ListGremlinDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListGremlinDatabases", resp, "Failure responding to request") + return } return @@ -4446,6 +4473,7 @@ func (client DatabaseAccountsClient) ListGremlinGraphs(ctx context.Context, reso result, err = client.ListGremlinGraphsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListGremlinGraphs", resp, "Failure responding to request") + return } return @@ -4534,6 +4562,7 @@ func (client DatabaseAccountsClient) ListKeys(ctx context.Context, resourceGroup result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -4621,6 +4650,7 @@ func (client DatabaseAccountsClient) ListMetricDefinitions(ctx context.Context, result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -4711,6 +4741,7 @@ func (client DatabaseAccountsClient) ListMetrics(ctx context.Context, resourceGr result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -4800,6 +4831,7 @@ func (client DatabaseAccountsClient) ListMongoDBCollections(ctx context.Context, result, err = client.ListMongoDBCollectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMongoDBCollections", resp, "Failure responding to request") + return } return @@ -4888,6 +4920,7 @@ func (client DatabaseAccountsClient) ListMongoDBDatabases(ctx context.Context, r result, err = client.ListMongoDBDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMongoDBDatabases", resp, "Failure responding to request") + return } return @@ -4975,6 +5008,7 @@ func (client DatabaseAccountsClient) ListReadOnlyKeys(ctx context.Context, resou result, err = client.ListReadOnlyKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListReadOnlyKeys", resp, "Failure responding to request") + return } return @@ -5063,6 +5097,7 @@ func (client DatabaseAccountsClient) ListSQLContainers(ctx context.Context, reso result, err = client.ListSQLContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListSQLContainers", resp, "Failure responding to request") + return } return @@ -5151,6 +5186,7 @@ func (client DatabaseAccountsClient) ListSQLDatabases(ctx context.Context, resou result, err = client.ListSQLDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListSQLDatabases", resp, "Failure responding to request") + return } return @@ -5238,6 +5274,7 @@ func (client DatabaseAccountsClient) ListTables(ctx context.Context, resourceGro result, err = client.ListTablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListTables", resp, "Failure responding to request") + return } return @@ -5327,6 +5364,7 @@ func (client DatabaseAccountsClient) ListUsages(ctx context.Context, resourceGro result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2015-04-08/documentdb/operations.go b/services/cosmos-db/mgmt/2015-04-08/documentdb/operations.go index 100ac3ac63f2..aaff976c13a1 100644 --- a/services/cosmos-db/mgmt/2015-04-08/documentdb/operations.go +++ b/services/cosmos-db/mgmt/2015-04-08/documentdb/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cosmos-db/mgmt/2015-04-08/documentdb/partitionkeyrangeid.go b/services/cosmos-db/mgmt/2015-04-08/documentdb/partitionkeyrangeid.go index 9ec50bc1e9cd..71b24e2d691a 100644 --- a/services/cosmos-db/mgmt/2015-04-08/documentdb/partitionkeyrangeid.go +++ b/services/cosmos-db/mgmt/2015-04-08/documentdb/partitionkeyrangeid.go @@ -92,6 +92,7 @@ func (client PartitionKeyRangeIDClient) ListMetrics(ctx context.Context, resourc result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PartitionKeyRangeIDClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2015-04-08/documentdb/partitionkeyrangeidregion.go b/services/cosmos-db/mgmt/2015-04-08/documentdb/partitionkeyrangeidregion.go index c8513d6fc029..df5dea5c9fd6 100644 --- a/services/cosmos-db/mgmt/2015-04-08/documentdb/partitionkeyrangeidregion.go +++ b/services/cosmos-db/mgmt/2015-04-08/documentdb/partitionkeyrangeidregion.go @@ -93,6 +93,7 @@ func (client PartitionKeyRangeIDRegionClient) ListMetrics(ctx context.Context, r result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PartitionKeyRangeIDRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2015-04-08/documentdb/percentile.go b/services/cosmos-db/mgmt/2015-04-08/documentdb/percentile.go index bcb69da25baa..d9f1702151a0 100644 --- a/services/cosmos-db/mgmt/2015-04-08/documentdb/percentile.go +++ b/services/cosmos-db/mgmt/2015-04-08/documentdb/percentile.go @@ -89,6 +89,7 @@ func (client PercentileClient) ListMetrics(ctx context.Context, resourceGroupNam result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PercentileClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2015-04-08/documentdb/percentilesourcetarget.go b/services/cosmos-db/mgmt/2015-04-08/documentdb/percentilesourcetarget.go index 00a9038df32e..0456ee73792c 100644 --- a/services/cosmos-db/mgmt/2015-04-08/documentdb/percentilesourcetarget.go +++ b/services/cosmos-db/mgmt/2015-04-08/documentdb/percentilesourcetarget.go @@ -94,6 +94,7 @@ func (client PercentileSourceTargetClient) ListMetrics(ctx context.Context, reso result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PercentileSourceTargetClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2015-04-08/documentdb/percentiletarget.go b/services/cosmos-db/mgmt/2015-04-08/documentdb/percentiletarget.go index 066d3b5c061a..ce55f1e4c272 100644 --- a/services/cosmos-db/mgmt/2015-04-08/documentdb/percentiletarget.go +++ b/services/cosmos-db/mgmt/2015-04-08/documentdb/percentiletarget.go @@ -92,6 +92,7 @@ func (client PercentileTargetClient) ListMetrics(ctx context.Context, resourceGr result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PercentileTargetClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/cassandraresources.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/cassandraresources.go index bc522e7355ed..84fe93dbc170 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/cassandraresources.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/cassandraresources.go @@ -474,6 +474,7 @@ func (client CassandraResourcesClient) GetCassandraKeyspace(ctx context.Context, result, err = client.GetCassandraKeyspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "GetCassandraKeyspace", resp, "Failure responding to request") + return } return @@ -566,6 +567,7 @@ func (client CassandraResourcesClient) GetCassandraKeyspaceThroughput(ctx contex result, err = client.GetCassandraKeyspaceThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "GetCassandraKeyspaceThroughput", resp, "Failure responding to request") + return } return @@ -658,6 +660,7 @@ func (client CassandraResourcesClient) GetCassandraTable(ctx context.Context, re result, err = client.GetCassandraTableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "GetCassandraTable", resp, "Failure responding to request") + return } return @@ -752,6 +755,7 @@ func (client CassandraResourcesClient) GetCassandraTableThroughput(ctx context.C result, err = client.GetCassandraTableThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "GetCassandraTableThroughput", resp, "Failure responding to request") + return } return @@ -843,6 +847,7 @@ func (client CassandraResourcesClient) ListCassandraKeyspaces(ctx context.Contex result, err = client.ListCassandraKeyspacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "ListCassandraKeyspaces", resp, "Failure responding to request") + return } return @@ -933,6 +938,7 @@ func (client CassandraResourcesClient) ListCassandraTables(ctx context.Context, result, err = client.ListCassandraTablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "ListCassandraTables", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/collection.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/collection.go index 784dc017a275..92c08a984770 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/collection.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/collection.go @@ -89,6 +89,7 @@ func (client CollectionClient) ListMetricDefinitions(ctx context.Context, resour result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client CollectionClient) ListMetrics(ctx context.Context, resourceGroupNam result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -281,6 +283,7 @@ func (client CollectionClient) ListUsages(ctx context.Context, resourceGroupName result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/collectionpartition.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/collectionpartition.go index 4a7d4313903b..77d80fd3fd5b 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/collectionpartition.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/collectionpartition.go @@ -93,6 +93,7 @@ func (client CollectionPartitionClient) ListMetrics(ctx context.Context, resourc result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionPartitionClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -189,6 +190,7 @@ func (client CollectionPartitionClient) ListUsages(ctx context.Context, resource result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionPartitionClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/collectionpartitionregion.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/collectionpartitionregion.go index 96663c17340e..e59c95b0e96d 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/collectionpartitionregion.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/collectionpartitionregion.go @@ -95,6 +95,7 @@ func (client CollectionPartitionRegionClient) ListMetrics(ctx context.Context, r result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionPartitionRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/collectionregion.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/collectionregion.go index 03f6279b2df6..fa7cb14ef92d 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/collectionregion.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/collectionregion.go @@ -95,6 +95,7 @@ func (client CollectionRegionClient) ListMetrics(ctx context.Context, resourceGr result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/database.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/database.go index d871842d0838..6ffaccb93ff0 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/database.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/database.go @@ -88,6 +88,7 @@ func (client DatabaseClient) ListMetricDefinitions(ctx context.Context, resource result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -182,6 +183,7 @@ func (client DatabaseClient) ListMetrics(ctx context.Context, resourceGroupName result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -276,6 +278,7 @@ func (client DatabaseClient) ListUsages(ctx context.Context, resourceGroupName s result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/databaseaccountregion.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/databaseaccountregion.go index 652444ef5c64..4b9c211ca3f8 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/databaseaccountregion.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/databaseaccountregion.go @@ -92,6 +92,7 @@ func (client DatabaseAccountRegionClient) ListMetrics(ctx context.Context, resou result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/databaseaccounts.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/databaseaccounts.go index 2d825209a9b2..cbacea5e0407 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/databaseaccounts.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/databaseaccounts.go @@ -82,6 +82,7 @@ func (client DatabaseAccountsClient) CheckNameExists(ctx context.Context, accoun result, err = client.CheckNameExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "CheckNameExists", resp, "Failure responding to request") + return } return @@ -459,6 +460,7 @@ func (client DatabaseAccountsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -548,6 +550,7 @@ func (client DatabaseAccountsClient) GetReadOnlyKeys(ctx context.Context, resour result, err = client.GetReadOnlyKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetReadOnlyKeys", resp, "Failure responding to request") + return } return @@ -626,6 +629,7 @@ func (client DatabaseAccountsClient) List(ctx context.Context) (result DatabaseA result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "List", resp, "Failure responding to request") + return } return @@ -708,6 +712,7 @@ func (client DatabaseAccountsClient) ListByResourceGroup(ctx context.Context, re result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -796,6 +801,7 @@ func (client DatabaseAccountsClient) ListConnectionStrings(ctx context.Context, result, err = client.ListConnectionStringsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListConnectionStrings", resp, "Failure responding to request") + return } return @@ -885,6 +891,7 @@ func (client DatabaseAccountsClient) ListKeys(ctx context.Context, resourceGroup result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -974,6 +981,7 @@ func (client DatabaseAccountsClient) ListMetricDefinitions(ctx context.Context, result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -1066,6 +1074,7 @@ func (client DatabaseAccountsClient) ListMetrics(ctx context.Context, resourceGr result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -1156,6 +1165,7 @@ func (client DatabaseAccountsClient) ListReadOnlyKeys(ctx context.Context, resou result, err = client.ListReadOnlyKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListReadOnlyKeys", resp, "Failure responding to request") + return } return @@ -1247,6 +1257,7 @@ func (client DatabaseAccountsClient) ListUsages(ctx context.Context, resourceGro result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/gremlinresources.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/gremlinresources.go index 266b7dbe9c60..9b81f4d20735 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/gremlinresources.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/gremlinresources.go @@ -481,6 +481,7 @@ func (client GremlinResourcesClient) GetGremlinDatabase(ctx context.Context, res result, err = client.GetGremlinDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "GetGremlinDatabase", resp, "Failure responding to request") + return } return @@ -573,6 +574,7 @@ func (client GremlinResourcesClient) GetGremlinDatabaseThroughput(ctx context.Co result, err = client.GetGremlinDatabaseThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "GetGremlinDatabaseThroughput", resp, "Failure responding to request") + return } return @@ -665,6 +667,7 @@ func (client GremlinResourcesClient) GetGremlinGraph(ctx context.Context, resour result, err = client.GetGremlinGraphResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "GetGremlinGraph", resp, "Failure responding to request") + return } return @@ -759,6 +762,7 @@ func (client GremlinResourcesClient) GetGremlinGraphThroughput(ctx context.Conte result, err = client.GetGremlinGraphThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "GetGremlinGraphThroughput", resp, "Failure responding to request") + return } return @@ -850,6 +854,7 @@ func (client GremlinResourcesClient) ListGremlinDatabases(ctx context.Context, r result, err = client.ListGremlinDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "ListGremlinDatabases", resp, "Failure responding to request") + return } return @@ -940,6 +945,7 @@ func (client GremlinResourcesClient) ListGremlinGraphs(ctx context.Context, reso result, err = client.ListGremlinGraphsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "ListGremlinGraphs", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/mongodbresources.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/mongodbresources.go index d17ddce53214..d7c7e0bf7606 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/mongodbresources.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/mongodbresources.go @@ -474,6 +474,7 @@ func (client MongoDBResourcesClient) GetMongoDBCollection(ctx context.Context, r result, err = client.GetMongoDBCollectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "GetMongoDBCollection", resp, "Failure responding to request") + return } return @@ -568,6 +569,7 @@ func (client MongoDBResourcesClient) GetMongoDBCollectionThroughput(ctx context. result, err = client.GetMongoDBCollectionThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "GetMongoDBCollectionThroughput", resp, "Failure responding to request") + return } return @@ -661,6 +663,7 @@ func (client MongoDBResourcesClient) GetMongoDBDatabase(ctx context.Context, res result, err = client.GetMongoDBDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "GetMongoDBDatabase", resp, "Failure responding to request") + return } return @@ -753,6 +756,7 @@ func (client MongoDBResourcesClient) GetMongoDBDatabaseThroughput(ctx context.Co result, err = client.GetMongoDBDatabaseThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "GetMongoDBDatabaseThroughput", resp, "Failure responding to request") + return } return @@ -844,6 +848,7 @@ func (client MongoDBResourcesClient) ListMongoDBCollections(ctx context.Context, result, err = client.ListMongoDBCollectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "ListMongoDBCollections", resp, "Failure responding to request") + return } return @@ -934,6 +939,7 @@ func (client MongoDBResourcesClient) ListMongoDBDatabases(ctx context.Context, r result, err = client.ListMongoDBDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "ListMongoDBDatabases", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/notebookworkspaces.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/notebookworkspaces.go index 77b81888f6b4..1068ca8eff4a 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/notebookworkspaces.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/notebookworkspaces.go @@ -270,6 +270,7 @@ func (client NotebookWorkspacesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.NotebookWorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -360,6 +361,7 @@ func (client NotebookWorkspacesClient) ListByDatabaseAccount(ctx context.Context result, err = client.ListByDatabaseAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.NotebookWorkspacesClient", "ListByDatabaseAccount", resp, "Failure responding to request") + return } return @@ -449,6 +451,7 @@ func (client NotebookWorkspacesClient) ListConnectionInfo(ctx context.Context, r result, err = client.ListConnectionInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.NotebookWorkspacesClient", "ListConnectionInfo", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/operations.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/operations.go index bad067835c73..126b29ce46b4 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/operations.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/partitionkeyrangeid.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/partitionkeyrangeid.go index 41ffcdf50248..85207bbf6deb 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/partitionkeyrangeid.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/partitionkeyrangeid.go @@ -94,6 +94,7 @@ func (client PartitionKeyRangeIDClient) ListMetrics(ctx context.Context, resourc result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PartitionKeyRangeIDClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/partitionkeyrangeidregion.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/partitionkeyrangeidregion.go index 52c940ca63a3..7001f91d8b87 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/partitionkeyrangeidregion.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/partitionkeyrangeidregion.go @@ -95,6 +95,7 @@ func (client PartitionKeyRangeIDRegionClient) ListMetrics(ctx context.Context, r result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PartitionKeyRangeIDRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/percentile.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/percentile.go index e8a988242de8..0e0408262652 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/percentile.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/percentile.go @@ -91,6 +91,7 @@ func (client PercentileClient) ListMetrics(ctx context.Context, resourceGroupNam result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PercentileClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/percentilesourcetarget.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/percentilesourcetarget.go index 228fd5c66df9..279eb033f89b 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/percentilesourcetarget.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/percentilesourcetarget.go @@ -96,6 +96,7 @@ func (client PercentileSourceTargetClient) ListMetrics(ctx context.Context, reso result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PercentileSourceTargetClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/percentiletarget.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/percentiletarget.go index afd332858fc3..0853bf8fb670 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/percentiletarget.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/percentiletarget.go @@ -94,6 +94,7 @@ func (client PercentileTargetClient) ListMetrics(ctx context.Context, resourceGr result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PercentileTargetClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/sqlresources.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/sqlresources.go index d083496b6c0c..a1104aa84f7f 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/sqlresources.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/sqlresources.go @@ -1075,6 +1075,7 @@ func (client SQLResourcesClient) GetSQLContainer(ctx context.Context, resourceGr result, err = client.GetSQLContainerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLContainer", resp, "Failure responding to request") + return } return @@ -1169,6 +1170,7 @@ func (client SQLResourcesClient) GetSQLContainerThroughput(ctx context.Context, result, err = client.GetSQLContainerThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLContainerThroughput", resp, "Failure responding to request") + return } return @@ -1261,6 +1263,7 @@ func (client SQLResourcesClient) GetSQLDatabase(ctx context.Context, resourceGro result, err = client.GetSQLDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLDatabase", resp, "Failure responding to request") + return } return @@ -1353,6 +1356,7 @@ func (client SQLResourcesClient) GetSQLDatabaseThroughput(ctx context.Context, r result, err = client.GetSQLDatabaseThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLDatabaseThroughput", resp, "Failure responding to request") + return } return @@ -1446,6 +1450,7 @@ func (client SQLResourcesClient) GetSQLStoredProcedure(ctx context.Context, reso result, err = client.GetSQLStoredProcedureResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLStoredProcedure", resp, "Failure responding to request") + return } return @@ -1541,6 +1546,7 @@ func (client SQLResourcesClient) GetSQLTrigger(ctx context.Context, resourceGrou result, err = client.GetSQLTriggerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLTrigger", resp, "Failure responding to request") + return } return @@ -1636,6 +1642,7 @@ func (client SQLResourcesClient) GetSQLUserDefinedFunction(ctx context.Context, result, err = client.GetSQLUserDefinedFunctionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLUserDefinedFunction", resp, "Failure responding to request") + return } return @@ -1729,6 +1736,7 @@ func (client SQLResourcesClient) ListSQLContainers(ctx context.Context, resource result, err = client.ListSQLContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLContainers", resp, "Failure responding to request") + return } return @@ -1819,6 +1827,7 @@ func (client SQLResourcesClient) ListSQLDatabases(ctx context.Context, resourceG result, err = client.ListSQLDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLDatabases", resp, "Failure responding to request") + return } return @@ -1910,6 +1919,7 @@ func (client SQLResourcesClient) ListSQLStoredProcedures(ctx context.Context, re result, err = client.ListSQLStoredProceduresResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLStoredProcedures", resp, "Failure responding to request") + return } return @@ -2003,6 +2013,7 @@ func (client SQLResourcesClient) ListSQLTriggers(ctx context.Context, resourceGr result, err = client.ListSQLTriggersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLTriggers", resp, "Failure responding to request") + return } return @@ -2096,6 +2107,7 @@ func (client SQLResourcesClient) ListSQLUserDefinedFunctions(ctx context.Context result, err = client.ListSQLUserDefinedFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLUserDefinedFunctions", resp, "Failure responding to request") + return } return diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/tableresources.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/tableresources.go index 80589863eddb..7a9adf9c1caa 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/tableresources.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/tableresources.go @@ -278,6 +278,7 @@ func (client TableResourcesClient) GetTable(ctx context.Context, resourceGroupNa result, err = client.GetTableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.TableResourcesClient", "GetTable", resp, "Failure responding to request") + return } return @@ -370,6 +371,7 @@ func (client TableResourcesClient) GetTableThroughput(ctx context.Context, resou result, err = client.GetTableThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.TableResourcesClient", "GetTableThroughput", resp, "Failure responding to request") + return } return @@ -460,6 +462,7 @@ func (client TableResourcesClient) ListTables(ctx context.Context, resourceGroup result, err = client.ListTablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.TableResourcesClient", "ListTables", resp, "Failure responding to request") + return } return diff --git a/services/costmanagement/mgmt/2018-05-31/costmanagement/billingaccountdimensions.go b/services/costmanagement/mgmt/2018-05-31/costmanagement/billingaccountdimensions.go index bd78aa2987a7..4d2667074a50 100644 --- a/services/costmanagement/mgmt/2018-05-31/costmanagement/billingaccountdimensions.go +++ b/services/costmanagement/mgmt/2018-05-31/costmanagement/billingaccountdimensions.go @@ -90,6 +90,7 @@ func (client BillingAccountDimensionsClient) List(ctx context.Context, billingAc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.BillingAccountDimensionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/costmanagement/mgmt/2018-05-31/costmanagement/client.go b/services/costmanagement/mgmt/2018-05-31/costmanagement/client.go index 43dcb49210e1..eb8287452962 100644 --- a/services/costmanagement/mgmt/2018-05-31/costmanagement/client.go +++ b/services/costmanagement/mgmt/2018-05-31/costmanagement/client.go @@ -120,6 +120,7 @@ func (client BaseClient) QueryBillingAccount(ctx context.Context, billingAccount result, err = client.QueryBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.BaseClient", "QueryBillingAccount", resp, "Failure responding to request") + return } return @@ -228,6 +229,7 @@ func (client BaseClient) QueryResourceGroup(ctx context.Context, resourceGroupNa result, err = client.QueryResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.BaseClient", "QueryResourceGroup", resp, "Failure responding to request") + return } return @@ -336,6 +338,7 @@ func (client BaseClient) QuerySubscription(ctx context.Context, parameters Repor result, err = client.QuerySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.BaseClient", "QuerySubscription", resp, "Failure responding to request") + return } return diff --git a/services/costmanagement/mgmt/2018-05-31/costmanagement/operations.go b/services/costmanagement/mgmt/2018-05-31/costmanagement/operations.go index 079b2ea3700f..23f05ec3956b 100644 --- a/services/costmanagement/mgmt/2018-05-31/costmanagement/operations.go +++ b/services/costmanagement/mgmt/2018-05-31/costmanagement/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/costmanagement/mgmt/2018-05-31/costmanagement/reportconfig.go b/services/costmanagement/mgmt/2018-05-31/costmanagement/reportconfig.go index f3c211adc31d..af9fa1759913 100644 --- a/services/costmanagement/mgmt/2018-05-31/costmanagement/reportconfig.go +++ b/services/costmanagement/mgmt/2018-05-31/costmanagement/reportconfig.go @@ -122,6 +122,7 @@ func (client ReportConfigClient) CreateOrUpdate(ctx context.Context, reportConfi result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportConfigClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -248,6 +249,7 @@ func (client ReportConfigClient) CreateOrUpdateByResourceGroupName(ctx context.C result, err = client.CreateOrUpdateByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportConfigClient", "CreateOrUpdateByResourceGroupName", resp, "Failure responding to request") + return } return @@ -324,6 +326,7 @@ func (client ReportConfigClient) Delete(ctx context.Context, reportConfigName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportConfigClient", "Delete", resp, "Failure responding to request") + return } return @@ -397,6 +400,7 @@ func (client ReportConfigClient) DeleteByResourceGroupName(ctx context.Context, result, err = client.DeleteByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportConfigClient", "DeleteByResourceGroupName", resp, "Failure responding to request") + return } return @@ -470,6 +474,7 @@ func (client ReportConfigClient) Get(ctx context.Context, reportConfigName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportConfigClient", "Get", resp, "Failure responding to request") + return } return @@ -544,6 +549,7 @@ func (client ReportConfigClient) GetByResourceGroupName(ctx context.Context, res result, err = client.GetByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportConfigClient", "GetByResourceGroupName", resp, "Failure responding to request") + return } return @@ -616,6 +622,7 @@ func (client ReportConfigClient) List(ctx context.Context) (result ReportConfigL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportConfigClient", "List", resp, "Failure responding to request") + return } return @@ -688,6 +695,7 @@ func (client ReportConfigClient) ListByResourceGroupName(ctx context.Context, re result, err = client.ListByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportConfigClient", "ListByResourceGroupName", resp, "Failure responding to request") + return } return diff --git a/services/costmanagement/mgmt/2018-05-31/costmanagement/resourcegroupdimensions.go b/services/costmanagement/mgmt/2018-05-31/costmanagement/resourcegroupdimensions.go index 5373604ffbfc..7821aaae86a3 100644 --- a/services/costmanagement/mgmt/2018-05-31/costmanagement/resourcegroupdimensions.go +++ b/services/costmanagement/mgmt/2018-05-31/costmanagement/resourcegroupdimensions.go @@ -90,6 +90,7 @@ func (client ResourceGroupDimensionsClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ResourceGroupDimensionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/costmanagement/mgmt/2018-05-31/costmanagement/subscriptiondimensions.go b/services/costmanagement/mgmt/2018-05-31/costmanagement/subscriptiondimensions.go index 781d90a4e388..fc54d98e5b18 100644 --- a/services/costmanagement/mgmt/2018-05-31/costmanagement/subscriptiondimensions.go +++ b/services/costmanagement/mgmt/2018-05-31/costmanagement/subscriptiondimensions.go @@ -89,6 +89,7 @@ func (client SubscriptionDimensionsClient) List(ctx context.Context, filter stri result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.SubscriptionDimensionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/costmanagement/mgmt/2019-01-01/costmanagement/dimensions.go b/services/costmanagement/mgmt/2019-01-01/costmanagement/dimensions.go index dee9643fbb86..d130422eca3e 100644 --- a/services/costmanagement/mgmt/2019-01-01/costmanagement/dimensions.go +++ b/services/costmanagement/mgmt/2019-01-01/costmanagement/dimensions.go @@ -96,6 +96,7 @@ func (client DimensionsClient) ListBySubscription(ctx context.Context, scope str result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.DimensionsClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/costmanagement/mgmt/2019-01-01/costmanagement/exports.go b/services/costmanagement/mgmt/2019-01-01/costmanagement/exports.go index 08da02afd8db..6a1ae1062e57 100644 --- a/services/costmanagement/mgmt/2019-01-01/costmanagement/exports.go +++ b/services/costmanagement/mgmt/2019-01-01/costmanagement/exports.go @@ -92,6 +92,7 @@ func (client ExportsClient) CreateOrUpdate(ctx context.Context, scope string, ex result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client ExportsClient) Delete(ctx context.Context, scope string, exportName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "Delete", resp, "Failure responding to request") + return } return @@ -253,6 +255,7 @@ func (client ExportsClient) Execute(ctx context.Context, scope string, exportNam result, err = client.ExecuteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "Execute", resp, "Failure responding to request") + return } return @@ -332,6 +335,7 @@ func (client ExportsClient) Get(ctx context.Context, scope string, exportName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "Get", resp, "Failure responding to request") + return } return @@ -412,6 +416,7 @@ func (client ExportsClient) GetExecutionHistory(ctx context.Context, scope strin result, err = client.GetExecutionHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "GetExecutionHistory", resp, "Failure responding to request") + return } return @@ -491,6 +496,7 @@ func (client ExportsClient) List(ctx context.Context, scope string) (result Expo result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/costmanagement/mgmt/2019-01-01/costmanagement/operations.go b/services/costmanagement/mgmt/2019-01-01/costmanagement/operations.go index f2d0480dcd1f..b8cfa0a3ba49 100644 --- a/services/costmanagement/mgmt/2019-01-01/costmanagement/operations.go +++ b/services/costmanagement/mgmt/2019-01-01/costmanagement/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/costmanagement/mgmt/2019-01-01/costmanagement/query.go b/services/costmanagement/mgmt/2019-01-01/costmanagement/query.go index 78ed1e5768c4..bbdcc37ad180 100644 --- a/services/costmanagement/mgmt/2019-01-01/costmanagement/query.go +++ b/services/costmanagement/mgmt/2019-01-01/costmanagement/query.go @@ -113,6 +113,7 @@ func (client QueryClient) UsageByScope(ctx context.Context, scope string, parame result, err = client.UsageByScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.QueryClient", "UsageByScope", resp, "Failure responding to request") + return } return diff --git a/services/costmanagement/mgmt/2019-10-01/costmanagement/dimensions.go b/services/costmanagement/mgmt/2019-10-01/costmanagement/dimensions.go index e5d408f71ea4..ba85d6914f00 100644 --- a/services/costmanagement/mgmt/2019-10-01/costmanagement/dimensions.go +++ b/services/costmanagement/mgmt/2019-10-01/costmanagement/dimensions.go @@ -104,6 +104,7 @@ func (client DimensionsClient) List(ctx context.Context, scope string, filter st result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.DimensionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/costmanagement/mgmt/2019-10-01/costmanagement/exports.go b/services/costmanagement/mgmt/2019-10-01/costmanagement/exports.go index 780b3a1a4430..8e8fc36bda8b 100644 --- a/services/costmanagement/mgmt/2019-10-01/costmanagement/exports.go +++ b/services/costmanagement/mgmt/2019-10-01/costmanagement/exports.go @@ -102,6 +102,7 @@ func (client ExportsClient) CreateOrUpdate(ctx context.Context, scope string, ex result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -194,6 +195,7 @@ func (client ExportsClient) Delete(ctx context.Context, scope string, exportName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "Delete", resp, "Failure responding to request") + return } return @@ -283,6 +285,7 @@ func (client ExportsClient) Execute(ctx context.Context, scope string, exportNam result, err = client.ExecuteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "Execute", resp, "Failure responding to request") + return } return @@ -372,6 +375,7 @@ func (client ExportsClient) Get(ctx context.Context, scope string, exportName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "Get", resp, "Failure responding to request") + return } return @@ -462,6 +466,7 @@ func (client ExportsClient) GetExecutionHistory(ctx context.Context, scope strin result, err = client.GetExecutionHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "GetExecutionHistory", resp, "Failure responding to request") + return } return @@ -551,6 +556,7 @@ func (client ExportsClient) List(ctx context.Context, scope string) (result Expo result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/costmanagement/mgmt/2019-10-01/costmanagement/operations.go b/services/costmanagement/mgmt/2019-10-01/costmanagement/operations.go index d6d2bab13d1c..9219875ca919 100644 --- a/services/costmanagement/mgmt/2019-10-01/costmanagement/operations.go +++ b/services/costmanagement/mgmt/2019-10-01/costmanagement/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/costmanagement/mgmt/2019-10-01/costmanagement/query.go b/services/costmanagement/mgmt/2019-10-01/costmanagement/query.go index 1a5d78e3b9e4..d9401103928e 100644 --- a/services/costmanagement/mgmt/2019-10-01/costmanagement/query.go +++ b/services/costmanagement/mgmt/2019-10-01/costmanagement/query.go @@ -122,6 +122,7 @@ func (client QueryClient) Usage(ctx context.Context, scope string, parameters Qu result, err = client.UsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.QueryClient", "Usage", resp, "Failure responding to request") + return } return diff --git a/services/customerinsights/mgmt/2017-01-01/customerinsights/authorizationpolicies.go b/services/customerinsights/mgmt/2017-01-01/customerinsights/authorizationpolicies.go index 68d759e3d916..2ea6ccda39c5 100644 --- a/services/customerinsights/mgmt/2017-01-01/customerinsights/authorizationpolicies.go +++ b/services/customerinsights/mgmt/2017-01-01/customerinsights/authorizationpolicies.go @@ -91,6 +91,7 @@ func (client AuthorizationPoliciesClient) CreateOrUpdate(ctx context.Context, re result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.AuthorizationPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client AuthorizationPoliciesClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.AuthorizationPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -247,6 +249,7 @@ func (client AuthorizationPoliciesClient) ListByHub(ctx context.Context, resourc result.aplr, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.AuthorizationPoliciesClient", "ListByHub", resp, "Failure responding to request") + return } if result.aplr.hasNextLink() && result.aplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -311,6 +314,7 @@ func (client AuthorizationPoliciesClient) listByHubNextResults(ctx context.Conte result, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.AuthorizationPoliciesClient", "listByHubNextResults", resp, "Failure responding to next results request") + return } return } @@ -363,6 +367,7 @@ func (client AuthorizationPoliciesClient) RegeneratePrimaryKey(ctx context.Conte result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.AuthorizationPoliciesClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -440,6 +445,7 @@ func (client AuthorizationPoliciesClient) RegenerateSecondaryKey(ctx context.Con result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.AuthorizationPoliciesClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return diff --git a/services/customerinsights/mgmt/2017-01-01/customerinsights/connectormappings.go b/services/customerinsights/mgmt/2017-01-01/customerinsights/connectormappings.go index 4f3a8b9e754e..7ba4290b37b0 100644 --- a/services/customerinsights/mgmt/2017-01-01/customerinsights/connectormappings.go +++ b/services/customerinsights/mgmt/2017-01-01/customerinsights/connectormappings.go @@ -100,6 +100,7 @@ func (client ConnectorMappingsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ConnectorMappingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client ConnectorMappingsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ConnectorMappingsClient", "Delete", resp, "Failure responding to request") + return } return @@ -259,6 +261,7 @@ func (client ConnectorMappingsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ConnectorMappingsClient", "Get", resp, "Failure responding to request") + return } return @@ -338,6 +341,7 @@ func (client ConnectorMappingsClient) ListByConnector(ctx context.Context, resou result.cmlr, err = client.ListByConnectorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ConnectorMappingsClient", "ListByConnector", resp, "Failure responding to request") + return } if result.cmlr.hasNextLink() && result.cmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -403,6 +407,7 @@ func (client ConnectorMappingsClient) listByConnectorNextResults(ctx context.Con result, err = client.ListByConnectorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ConnectorMappingsClient", "listByConnectorNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/customerinsights/mgmt/2017-01-01/customerinsights/connectors.go b/services/customerinsights/mgmt/2017-01-01/customerinsights/connectors.go index 1ad759813fa7..391976da2cd2 100644 --- a/services/customerinsights/mgmt/2017-01-01/customerinsights/connectors.go +++ b/services/customerinsights/mgmt/2017-01-01/customerinsights/connectors.go @@ -243,6 +243,7 @@ func (client ConnectorsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ConnectorsClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +321,7 @@ func (client ConnectorsClient) ListByHub(ctx context.Context, resourceGroupName result.clr, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ConnectorsClient", "ListByHub", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client ConnectorsClient) listByHubNextResults(ctx context.Context, lastRes result, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ConnectorsClient", "listByHubNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/customerinsights/mgmt/2017-01-01/customerinsights/hubs.go b/services/customerinsights/mgmt/2017-01-01/customerinsights/hubs.go index a8f608a57202..8fd2443f8d58 100644 --- a/services/customerinsights/mgmt/2017-01-01/customerinsights/hubs.go +++ b/services/customerinsights/mgmt/2017-01-01/customerinsights/hubs.go @@ -97,6 +97,7 @@ func (client HubsClient) CreateOrUpdate(ctx context.Context, resourceGroupName s result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.HubsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -248,6 +249,7 @@ func (client HubsClient) Get(ctx context.Context, resourceGroupName string, hubN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.HubsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +323,7 @@ func (client HubsClient) List(ctx context.Context) (result HubListResultPage, er result.hlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.HubsClient", "List", resp, "Failure responding to request") + return } if result.hlr.hasNextLink() && result.hlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -383,6 +386,7 @@ func (client HubsClient) listNextResults(ctx context.Context, lastResults HubLis result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.HubsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -434,6 +438,7 @@ func (client HubsClient) ListByResourceGroup(ctx context.Context, resourceGroupN result.hlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.HubsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.hlr.hasNextLink() && result.hlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -497,6 +502,7 @@ func (client HubsClient) listByResourceGroupNextResults(ctx context.Context, las result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.HubsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -549,6 +555,7 @@ func (client HubsClient) Update(ctx context.Context, resourceGroupName string, h result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.HubsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/customerinsights/mgmt/2017-01-01/customerinsights/images.go b/services/customerinsights/mgmt/2017-01-01/customerinsights/images.go index 7a332d739d06..a62b758a8dfd 100644 --- a/services/customerinsights/mgmt/2017-01-01/customerinsights/images.go +++ b/services/customerinsights/mgmt/2017-01-01/customerinsights/images.go @@ -75,6 +75,7 @@ func (client ImagesClient) GetUploadURLForData(ctx context.Context, resourceGrou result, err = client.GetUploadURLForDataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ImagesClient", "GetUploadURLForData", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client ImagesClient) GetUploadURLForEntityType(ctx context.Context, resour result, err = client.GetUploadURLForEntityTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ImagesClient", "GetUploadURLForEntityType", resp, "Failure responding to request") + return } return diff --git a/services/customerinsights/mgmt/2017-01-01/customerinsights/interactions.go b/services/customerinsights/mgmt/2017-01-01/customerinsights/interactions.go index e848e7524ec6..2bdffd67347b 100644 --- a/services/customerinsights/mgmt/2017-01-01/customerinsights/interactions.go +++ b/services/customerinsights/mgmt/2017-01-01/customerinsights/interactions.go @@ -165,6 +165,7 @@ func (client InteractionsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.InteractionsClient", "Get", resp, "Failure responding to request") + return } return @@ -248,6 +249,7 @@ func (client InteractionsClient) ListByHub(ctx context.Context, resourceGroupNam result.ilr, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.InteractionsClient", "ListByHub", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -317,6 +319,7 @@ func (client InteractionsClient) listByHubNextResults(ctx context.Context, lastR result, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.InteractionsClient", "listByHubNextResults", resp, "Failure responding to next results request") + return } return } @@ -369,6 +372,7 @@ func (client InteractionsClient) SuggestRelationshipLinks(ctx context.Context, r result, err = client.SuggestRelationshipLinksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.InteractionsClient", "SuggestRelationshipLinks", resp, "Failure responding to request") + return } return diff --git a/services/customerinsights/mgmt/2017-01-01/customerinsights/kpi.go b/services/customerinsights/mgmt/2017-01-01/customerinsights/kpi.go index 5f512a535cc0..0dde377346f6 100644 --- a/services/customerinsights/mgmt/2017-01-01/customerinsights/kpi.go +++ b/services/customerinsights/mgmt/2017-01-01/customerinsights/kpi.go @@ -250,6 +250,7 @@ func (client KpiClient) Get(ctx context.Context, resourceGroupName string, hubNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.KpiClient", "Get", resp, "Failure responding to request") + return } return @@ -327,6 +328,7 @@ func (client KpiClient) ListByHub(ctx context.Context, resourceGroupName string, result.klr, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.KpiClient", "ListByHub", resp, "Failure responding to request") + return } if result.klr.hasNextLink() && result.klr.IsEmpty() { err = result.NextWithContext(ctx) @@ -391,6 +393,7 @@ func (client KpiClient) listByHubNextResults(ctx context.Context, lastResults Kp result, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.KpiClient", "listByHubNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +446,7 @@ func (client KpiClient) Reprocess(ctx context.Context, resourceGroupName string, result, err = client.ReprocessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.KpiClient", "Reprocess", resp, "Failure responding to request") + return } return diff --git a/services/customerinsights/mgmt/2017-01-01/customerinsights/links.go b/services/customerinsights/mgmt/2017-01-01/customerinsights/links.go index a2f7d54fae99..9644336dd0e7 100644 --- a/services/customerinsights/mgmt/2017-01-01/customerinsights/links.go +++ b/services/customerinsights/mgmt/2017-01-01/customerinsights/links.go @@ -170,6 +170,7 @@ func (client LinksClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.LinksClient", "Delete", resp, "Failure responding to request") + return } return @@ -246,6 +247,7 @@ func (client LinksClient) Get(ctx context.Context, resourceGroupName string, hub result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.LinksClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +325,7 @@ func (client LinksClient) ListByHub(ctx context.Context, resourceGroupName strin result.llr, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.LinksClient", "ListByHub", resp, "Failure responding to request") + return } if result.llr.hasNextLink() && result.llr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +390,7 @@ func (client LinksClient) listByHubNextResults(ctx context.Context, lastResults result, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.LinksClient", "listByHubNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/customerinsights/mgmt/2017-01-01/customerinsights/operations.go b/services/customerinsights/mgmt/2017-01-01/customerinsights/operations.go index c7b10d7bd49e..a8ddb49bbbfb 100644 --- a/services/customerinsights/mgmt/2017-01-01/customerinsights/operations.go +++ b/services/customerinsights/mgmt/2017-01-01/customerinsights/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/customerinsights/mgmt/2017-01-01/customerinsights/profiles.go b/services/customerinsights/mgmt/2017-01-01/customerinsights/profiles.go index 8a068ebe92ce..e6147404d559 100644 --- a/services/customerinsights/mgmt/2017-01-01/customerinsights/profiles.go +++ b/services/customerinsights/mgmt/2017-01-01/customerinsights/profiles.go @@ -247,6 +247,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client ProfilesClient) GetEnrichingKpis(ctx context.Context, resourceGroup result, err = client.GetEnrichingKpisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ProfilesClient", "GetEnrichingKpis", resp, "Failure responding to request") + return } return @@ -408,6 +410,7 @@ func (client ProfilesClient) ListByHub(ctx context.Context, resourceGroupName st result.plr, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ProfilesClient", "ListByHub", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +480,7 @@ func (client ProfilesClient) listByHubNextResults(ctx context.Context, lastResul result, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ProfilesClient", "listByHubNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/customerinsights/mgmt/2017-01-01/customerinsights/relationshiplinks.go b/services/customerinsights/mgmt/2017-01-01/customerinsights/relationshiplinks.go index a343a18a611b..a7cb28dd4979 100644 --- a/services/customerinsights/mgmt/2017-01-01/customerinsights/relationshiplinks.go +++ b/services/customerinsights/mgmt/2017-01-01/customerinsights/relationshiplinks.go @@ -248,6 +248,7 @@ func (client RelationshipLinksClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.RelationshipLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client RelationshipLinksClient) ListByHub(ctx context.Context, resourceGro result.rllr, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.RelationshipLinksClient", "ListByHub", resp, "Failure responding to request") + return } if result.rllr.hasNextLink() && result.rllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -389,6 +391,7 @@ func (client RelationshipLinksClient) listByHubNextResults(ctx context.Context, result, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.RelationshipLinksClient", "listByHubNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/customerinsights/mgmt/2017-01-01/customerinsights/relationships.go b/services/customerinsights/mgmt/2017-01-01/customerinsights/relationships.go index d6b0589c1b87..bb2e25d4f3a2 100644 --- a/services/customerinsights/mgmt/2017-01-01/customerinsights/relationships.go +++ b/services/customerinsights/mgmt/2017-01-01/customerinsights/relationships.go @@ -245,6 +245,7 @@ func (client RelationshipsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.RelationshipsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client RelationshipsClient) ListByHub(ctx context.Context, resourceGroupNa result.rlr, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.RelationshipsClient", "ListByHub", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client RelationshipsClient) listByHubNextResults(ctx context.Context, last result, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.RelationshipsClient", "listByHubNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/customerinsights/mgmt/2017-01-01/customerinsights/roleassignments.go b/services/customerinsights/mgmt/2017-01-01/customerinsights/roleassignments.go index a499f952c35b..96df77e7ae90 100644 --- a/services/customerinsights/mgmt/2017-01-01/customerinsights/roleassignments.go +++ b/services/customerinsights/mgmt/2017-01-01/customerinsights/roleassignments.go @@ -167,6 +167,7 @@ func (client RoleAssignmentsClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.RoleAssignmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -243,6 +244,7 @@ func (client RoleAssignmentsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.RoleAssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +322,7 @@ func (client RoleAssignmentsClient) ListByHub(ctx context.Context, resourceGroup result.ralr, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.RoleAssignmentsClient", "ListByHub", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +387,7 @@ func (client RoleAssignmentsClient) listByHubNextResults(ctx context.Context, la result, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.RoleAssignmentsClient", "listByHubNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/customerinsights/mgmt/2017-01-01/customerinsights/roles.go b/services/customerinsights/mgmt/2017-01-01/customerinsights/roles.go index 83400940cba8..cd31eb820c47 100644 --- a/services/customerinsights/mgmt/2017-01-01/customerinsights/roles.go +++ b/services/customerinsights/mgmt/2017-01-01/customerinsights/roles.go @@ -75,6 +75,7 @@ func (client RolesClient) ListByHub(ctx context.Context, resourceGroupName strin result.rlr, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.RolesClient", "ListByHub", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client RolesClient) listByHubNextResults(ctx context.Context, lastResults result, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.RolesClient", "listByHubNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/customerinsights/mgmt/2017-01-01/customerinsights/views.go b/services/customerinsights/mgmt/2017-01-01/customerinsights/views.go index 8647e77ce695..f7202842c8ab 100644 --- a/services/customerinsights/mgmt/2017-01-01/customerinsights/views.go +++ b/services/customerinsights/mgmt/2017-01-01/customerinsights/views.go @@ -87,6 +87,7 @@ func (client ViewsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ViewsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client ViewsClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ViewsClient", "Delete", resp, "Failure responding to request") + return } return @@ -245,6 +247,7 @@ func (client ViewsClient) Get(ctx context.Context, resourceGroupName string, hub result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ViewsClient", "Get", resp, "Failure responding to request") + return } return @@ -324,6 +327,7 @@ func (client ViewsClient) ListByHub(ctx context.Context, resourceGroupName strin result.vlr, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ViewsClient", "ListByHub", resp, "Failure responding to request") + return } if result.vlr.hasNextLink() && result.vlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -389,6 +393,7 @@ func (client ViewsClient) listByHubNextResults(ctx context.Context, lastResults result, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ViewsClient", "listByHubNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/customerinsights/mgmt/2017-01-01/customerinsights/widgettypes.go b/services/customerinsights/mgmt/2017-01-01/customerinsights/widgettypes.go index 6475ec34617f..aa9a4da2de77 100644 --- a/services/customerinsights/mgmt/2017-01-01/customerinsights/widgettypes.go +++ b/services/customerinsights/mgmt/2017-01-01/customerinsights/widgettypes.go @@ -75,6 +75,7 @@ func (client WidgetTypesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.WidgetTypesClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client WidgetTypesClient) ListByHub(ctx context.Context, resourceGroupName result.wtlr, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.WidgetTypesClient", "ListByHub", resp, "Failure responding to request") + return } if result.wtlr.hasNextLink() && result.wtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client WidgetTypesClient) listByHubNextResults(ctx context.Context, lastRe result, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.WidgetTypesClient", "listByHubNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/customerinsights/mgmt/2017-04-26/customerinsights/authorizationpolicies.go b/services/customerinsights/mgmt/2017-04-26/customerinsights/authorizationpolicies.go index 79048be1d742..b0f46388172f 100644 --- a/services/customerinsights/mgmt/2017-04-26/customerinsights/authorizationpolicies.go +++ b/services/customerinsights/mgmt/2017-04-26/customerinsights/authorizationpolicies.go @@ -91,6 +91,7 @@ func (client AuthorizationPoliciesClient) CreateOrUpdate(ctx context.Context, re result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.AuthorizationPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client AuthorizationPoliciesClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.AuthorizationPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -247,6 +249,7 @@ func (client AuthorizationPoliciesClient) ListByHub(ctx context.Context, resourc result.aplr, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.AuthorizationPoliciesClient", "ListByHub", resp, "Failure responding to request") + return } if result.aplr.hasNextLink() && result.aplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -311,6 +314,7 @@ func (client AuthorizationPoliciesClient) listByHubNextResults(ctx context.Conte result, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.AuthorizationPoliciesClient", "listByHubNextResults", resp, "Failure responding to next results request") + return } return } @@ -363,6 +367,7 @@ func (client AuthorizationPoliciesClient) RegeneratePrimaryKey(ctx context.Conte result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.AuthorizationPoliciesClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -440,6 +445,7 @@ func (client AuthorizationPoliciesClient) RegenerateSecondaryKey(ctx context.Con result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.AuthorizationPoliciesClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return diff --git a/services/customerinsights/mgmt/2017-04-26/customerinsights/connectormappings.go b/services/customerinsights/mgmt/2017-04-26/customerinsights/connectormappings.go index f4b08569937e..716bbc484f42 100644 --- a/services/customerinsights/mgmt/2017-04-26/customerinsights/connectormappings.go +++ b/services/customerinsights/mgmt/2017-04-26/customerinsights/connectormappings.go @@ -100,6 +100,7 @@ func (client ConnectorMappingsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ConnectorMappingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client ConnectorMappingsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ConnectorMappingsClient", "Delete", resp, "Failure responding to request") + return } return @@ -259,6 +261,7 @@ func (client ConnectorMappingsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ConnectorMappingsClient", "Get", resp, "Failure responding to request") + return } return @@ -338,6 +341,7 @@ func (client ConnectorMappingsClient) ListByConnector(ctx context.Context, resou result.cmlr, err = client.ListByConnectorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ConnectorMappingsClient", "ListByConnector", resp, "Failure responding to request") + return } if result.cmlr.hasNextLink() && result.cmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -403,6 +407,7 @@ func (client ConnectorMappingsClient) listByConnectorNextResults(ctx context.Con result, err = client.ListByConnectorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ConnectorMappingsClient", "listByConnectorNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/customerinsights/mgmt/2017-04-26/customerinsights/connectors.go b/services/customerinsights/mgmt/2017-04-26/customerinsights/connectors.go index 215799e7b1fd..3287f5ed0e11 100644 --- a/services/customerinsights/mgmt/2017-04-26/customerinsights/connectors.go +++ b/services/customerinsights/mgmt/2017-04-26/customerinsights/connectors.go @@ -243,6 +243,7 @@ func (client ConnectorsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ConnectorsClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +321,7 @@ func (client ConnectorsClient) ListByHub(ctx context.Context, resourceGroupName result.clr, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ConnectorsClient", "ListByHub", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client ConnectorsClient) listByHubNextResults(ctx context.Context, lastRes result, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ConnectorsClient", "listByHubNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/customerinsights/mgmt/2017-04-26/customerinsights/hubs.go b/services/customerinsights/mgmt/2017-04-26/customerinsights/hubs.go index efcf4e80bdfa..4a01151b06cf 100644 --- a/services/customerinsights/mgmt/2017-04-26/customerinsights/hubs.go +++ b/services/customerinsights/mgmt/2017-04-26/customerinsights/hubs.go @@ -97,6 +97,7 @@ func (client HubsClient) CreateOrUpdate(ctx context.Context, resourceGroupName s result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.HubsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -248,6 +249,7 @@ func (client HubsClient) Get(ctx context.Context, resourceGroupName string, hubN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.HubsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +323,7 @@ func (client HubsClient) List(ctx context.Context) (result HubListResultPage, er result.hlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.HubsClient", "List", resp, "Failure responding to request") + return } if result.hlr.hasNextLink() && result.hlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -383,6 +386,7 @@ func (client HubsClient) listNextResults(ctx context.Context, lastResults HubLis result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.HubsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -434,6 +438,7 @@ func (client HubsClient) ListByResourceGroup(ctx context.Context, resourceGroupN result.hlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.HubsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.hlr.hasNextLink() && result.hlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -497,6 +502,7 @@ func (client HubsClient) listByResourceGroupNextResults(ctx context.Context, las result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.HubsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -549,6 +555,7 @@ func (client HubsClient) Update(ctx context.Context, resourceGroupName string, h result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.HubsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/customerinsights/mgmt/2017-04-26/customerinsights/images.go b/services/customerinsights/mgmt/2017-04-26/customerinsights/images.go index 4912ac5b87ce..52ad720fd50e 100644 --- a/services/customerinsights/mgmt/2017-04-26/customerinsights/images.go +++ b/services/customerinsights/mgmt/2017-04-26/customerinsights/images.go @@ -75,6 +75,7 @@ func (client ImagesClient) GetUploadURLForData(ctx context.Context, resourceGrou result, err = client.GetUploadURLForDataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ImagesClient", "GetUploadURLForData", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client ImagesClient) GetUploadURLForEntityType(ctx context.Context, resour result, err = client.GetUploadURLForEntityTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ImagesClient", "GetUploadURLForEntityType", resp, "Failure responding to request") + return } return diff --git a/services/customerinsights/mgmt/2017-04-26/customerinsights/interactions.go b/services/customerinsights/mgmt/2017-04-26/customerinsights/interactions.go index 4602f5e74bec..739d8ff0fab5 100644 --- a/services/customerinsights/mgmt/2017-04-26/customerinsights/interactions.go +++ b/services/customerinsights/mgmt/2017-04-26/customerinsights/interactions.go @@ -165,6 +165,7 @@ func (client InteractionsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.InteractionsClient", "Get", resp, "Failure responding to request") + return } return @@ -248,6 +249,7 @@ func (client InteractionsClient) ListByHub(ctx context.Context, resourceGroupNam result.ilr, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.InteractionsClient", "ListByHub", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -317,6 +319,7 @@ func (client InteractionsClient) listByHubNextResults(ctx context.Context, lastR result, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.InteractionsClient", "listByHubNextResults", resp, "Failure responding to next results request") + return } return } @@ -369,6 +372,7 @@ func (client InteractionsClient) SuggestRelationshipLinks(ctx context.Context, r result, err = client.SuggestRelationshipLinksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.InteractionsClient", "SuggestRelationshipLinks", resp, "Failure responding to request") + return } return diff --git a/services/customerinsights/mgmt/2017-04-26/customerinsights/kpi.go b/services/customerinsights/mgmt/2017-04-26/customerinsights/kpi.go index f3e6c29224d2..c8cf909db8b6 100644 --- a/services/customerinsights/mgmt/2017-04-26/customerinsights/kpi.go +++ b/services/customerinsights/mgmt/2017-04-26/customerinsights/kpi.go @@ -250,6 +250,7 @@ func (client KpiClient) Get(ctx context.Context, resourceGroupName string, hubNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.KpiClient", "Get", resp, "Failure responding to request") + return } return @@ -327,6 +328,7 @@ func (client KpiClient) ListByHub(ctx context.Context, resourceGroupName string, result.klr, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.KpiClient", "ListByHub", resp, "Failure responding to request") + return } if result.klr.hasNextLink() && result.klr.IsEmpty() { err = result.NextWithContext(ctx) @@ -391,6 +393,7 @@ func (client KpiClient) listByHubNextResults(ctx context.Context, lastResults Kp result, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.KpiClient", "listByHubNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +446,7 @@ func (client KpiClient) Reprocess(ctx context.Context, resourceGroupName string, result, err = client.ReprocessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.KpiClient", "Reprocess", resp, "Failure responding to request") + return } return diff --git a/services/customerinsights/mgmt/2017-04-26/customerinsights/links.go b/services/customerinsights/mgmt/2017-04-26/customerinsights/links.go index 2270870c2c77..76acdfece40c 100644 --- a/services/customerinsights/mgmt/2017-04-26/customerinsights/links.go +++ b/services/customerinsights/mgmt/2017-04-26/customerinsights/links.go @@ -170,6 +170,7 @@ func (client LinksClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.LinksClient", "Delete", resp, "Failure responding to request") + return } return @@ -246,6 +247,7 @@ func (client LinksClient) Get(ctx context.Context, resourceGroupName string, hub result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.LinksClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +325,7 @@ func (client LinksClient) ListByHub(ctx context.Context, resourceGroupName strin result.llr, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.LinksClient", "ListByHub", resp, "Failure responding to request") + return } if result.llr.hasNextLink() && result.llr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +390,7 @@ func (client LinksClient) listByHubNextResults(ctx context.Context, lastResults result, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.LinksClient", "listByHubNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/customerinsights/mgmt/2017-04-26/customerinsights/operations.go b/services/customerinsights/mgmt/2017-04-26/customerinsights/operations.go index 16c503104705..6ec1d5abd06b 100644 --- a/services/customerinsights/mgmt/2017-04-26/customerinsights/operations.go +++ b/services/customerinsights/mgmt/2017-04-26/customerinsights/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/customerinsights/mgmt/2017-04-26/customerinsights/predictions.go b/services/customerinsights/mgmt/2017-04-26/customerinsights/predictions.go index c847c0d2ed5d..d57602bf4515 100644 --- a/services/customerinsights/mgmt/2017-04-26/customerinsights/predictions.go +++ b/services/customerinsights/mgmt/2017-04-26/customerinsights/predictions.go @@ -253,6 +253,7 @@ func (client PredictionsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.PredictionsClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client PredictionsClient) GetModelStatus(ctx context.Context, resourceGrou result, err = client.GetModelStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.PredictionsClient", "GetModelStatus", resp, "Failure responding to request") + return } return @@ -407,6 +409,7 @@ func (client PredictionsClient) GetTrainingResults(ctx context.Context, resource result, err = client.GetTrainingResultsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.PredictionsClient", "GetTrainingResults", resp, "Failure responding to request") + return } return @@ -484,6 +487,7 @@ func (client PredictionsClient) ListByHub(ctx context.Context, resourceGroupName result.plr, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.PredictionsClient", "ListByHub", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -548,6 +552,7 @@ func (client PredictionsClient) listByHubNextResults(ctx context.Context, lastRe result, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.PredictionsClient", "listByHubNextResults", resp, "Failure responding to next results request") + return } return } @@ -601,6 +606,7 @@ func (client PredictionsClient) ModelStatus(ctx context.Context, resourceGroupNa result, err = client.ModelStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.PredictionsClient", "ModelStatus", resp, "Failure responding to request") + return } return diff --git a/services/customerinsights/mgmt/2017-04-26/customerinsights/profiles.go b/services/customerinsights/mgmt/2017-04-26/customerinsights/profiles.go index 741c69462912..ba408fb4877c 100644 --- a/services/customerinsights/mgmt/2017-04-26/customerinsights/profiles.go +++ b/services/customerinsights/mgmt/2017-04-26/customerinsights/profiles.go @@ -247,6 +247,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client ProfilesClient) GetEnrichingKpis(ctx context.Context, resourceGroup result, err = client.GetEnrichingKpisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ProfilesClient", "GetEnrichingKpis", resp, "Failure responding to request") + return } return @@ -408,6 +410,7 @@ func (client ProfilesClient) ListByHub(ctx context.Context, resourceGroupName st result.plr, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ProfilesClient", "ListByHub", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +480,7 @@ func (client ProfilesClient) listByHubNextResults(ctx context.Context, lastResul result, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ProfilesClient", "listByHubNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/customerinsights/mgmt/2017-04-26/customerinsights/relationshiplinks.go b/services/customerinsights/mgmt/2017-04-26/customerinsights/relationshiplinks.go index ec0b3579f87e..fd15c5590d61 100644 --- a/services/customerinsights/mgmt/2017-04-26/customerinsights/relationshiplinks.go +++ b/services/customerinsights/mgmt/2017-04-26/customerinsights/relationshiplinks.go @@ -248,6 +248,7 @@ func (client RelationshipLinksClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.RelationshipLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client RelationshipLinksClient) ListByHub(ctx context.Context, resourceGro result.rllr, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.RelationshipLinksClient", "ListByHub", resp, "Failure responding to request") + return } if result.rllr.hasNextLink() && result.rllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -389,6 +391,7 @@ func (client RelationshipLinksClient) listByHubNextResults(ctx context.Context, result, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.RelationshipLinksClient", "listByHubNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/customerinsights/mgmt/2017-04-26/customerinsights/relationships.go b/services/customerinsights/mgmt/2017-04-26/customerinsights/relationships.go index 6c2b6412d87b..2fbcd1ac6e00 100644 --- a/services/customerinsights/mgmt/2017-04-26/customerinsights/relationships.go +++ b/services/customerinsights/mgmt/2017-04-26/customerinsights/relationships.go @@ -245,6 +245,7 @@ func (client RelationshipsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.RelationshipsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client RelationshipsClient) ListByHub(ctx context.Context, resourceGroupNa result.rlr, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.RelationshipsClient", "ListByHub", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client RelationshipsClient) listByHubNextResults(ctx context.Context, last result, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.RelationshipsClient", "listByHubNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/customerinsights/mgmt/2017-04-26/customerinsights/roleassignments.go b/services/customerinsights/mgmt/2017-04-26/customerinsights/roleassignments.go index af0b7c5a51ee..d67a88cd839e 100644 --- a/services/customerinsights/mgmt/2017-04-26/customerinsights/roleassignments.go +++ b/services/customerinsights/mgmt/2017-04-26/customerinsights/roleassignments.go @@ -167,6 +167,7 @@ func (client RoleAssignmentsClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.RoleAssignmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -243,6 +244,7 @@ func (client RoleAssignmentsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.RoleAssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +322,7 @@ func (client RoleAssignmentsClient) ListByHub(ctx context.Context, resourceGroup result.ralr, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.RoleAssignmentsClient", "ListByHub", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +387,7 @@ func (client RoleAssignmentsClient) listByHubNextResults(ctx context.Context, la result, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.RoleAssignmentsClient", "listByHubNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/customerinsights/mgmt/2017-04-26/customerinsights/roles.go b/services/customerinsights/mgmt/2017-04-26/customerinsights/roles.go index fd54e8ba5e3b..b55e18331d5b 100644 --- a/services/customerinsights/mgmt/2017-04-26/customerinsights/roles.go +++ b/services/customerinsights/mgmt/2017-04-26/customerinsights/roles.go @@ -75,6 +75,7 @@ func (client RolesClient) ListByHub(ctx context.Context, resourceGroupName strin result.rlr, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.RolesClient", "ListByHub", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client RolesClient) listByHubNextResults(ctx context.Context, lastResults result, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.RolesClient", "listByHubNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/customerinsights/mgmt/2017-04-26/customerinsights/views.go b/services/customerinsights/mgmt/2017-04-26/customerinsights/views.go index 537f3ac85fa3..f587f59eebb2 100644 --- a/services/customerinsights/mgmt/2017-04-26/customerinsights/views.go +++ b/services/customerinsights/mgmt/2017-04-26/customerinsights/views.go @@ -87,6 +87,7 @@ func (client ViewsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ViewsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client ViewsClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ViewsClient", "Delete", resp, "Failure responding to request") + return } return @@ -245,6 +247,7 @@ func (client ViewsClient) Get(ctx context.Context, resourceGroupName string, hub result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ViewsClient", "Get", resp, "Failure responding to request") + return } return @@ -324,6 +327,7 @@ func (client ViewsClient) ListByHub(ctx context.Context, resourceGroupName strin result.vlr, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ViewsClient", "ListByHub", resp, "Failure responding to request") + return } if result.vlr.hasNextLink() && result.vlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -389,6 +393,7 @@ func (client ViewsClient) listByHubNextResults(ctx context.Context, lastResults result, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.ViewsClient", "listByHubNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/customerinsights/mgmt/2017-04-26/customerinsights/widgettypes.go b/services/customerinsights/mgmt/2017-04-26/customerinsights/widgettypes.go index a6d7f710e0e1..8bffd7f393ed 100644 --- a/services/customerinsights/mgmt/2017-04-26/customerinsights/widgettypes.go +++ b/services/customerinsights/mgmt/2017-04-26/customerinsights/widgettypes.go @@ -75,6 +75,7 @@ func (client WidgetTypesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.WidgetTypesClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client WidgetTypesClient) ListByHub(ctx context.Context, resourceGroupName result.wtlr, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.WidgetTypesClient", "ListByHub", resp, "Failure responding to request") + return } if result.wtlr.hasNextLink() && result.wtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client WidgetTypesClient) listByHubNextResults(ctx context.Context, lastRe result, err = client.ListByHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerinsights.WidgetTypesClient", "listByHubNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databox/mgmt/2018-01-01/databox/jobs.go b/services/databox/mgmt/2018-01-01/databox/jobs.go index 3dfc33433def..6255891ad68c 100644 --- a/services/databox/mgmt/2018-01-01/databox/jobs.go +++ b/services/databox/mgmt/2018-01-01/databox/jobs.go @@ -87,6 +87,7 @@ func (client JobsClient) BookShipmentPickUp(ctx context.Context, resourceGroupNa result, err = client.BookShipmentPickUpResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "BookShipmentPickUp", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client JobsClient) Cancel(ctx context.Context, resourceGroupName string, j result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -452,6 +454,7 @@ func (client JobsClient) Get(ctx context.Context, resourceGroupName string, jobN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "Get", resp, "Failure responding to request") + return } return @@ -530,6 +533,7 @@ func (client JobsClient) List(ctx context.Context, skipToken string) (result Job result.jrl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "List", resp, "Failure responding to request") + return } if result.jrl.hasNextLink() && result.jrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -595,6 +599,7 @@ func (client JobsClient) listNextResults(ctx context.Context, lastResults JobRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -647,6 +652,7 @@ func (client JobsClient) ListByResourceGroup(ctx context.Context, resourceGroupN result.jrl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.jrl.hasNextLink() && result.jrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -713,6 +719,7 @@ func (client JobsClient) listByResourceGroupNextResults(ctx context.Context, las result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -773,6 +780,7 @@ func (client JobsClient) ListCredentials(ctx context.Context, resourceGroupName result, err = client.ListCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "ListCredentials", resp, "Failure responding to request") + return } return diff --git a/services/databox/mgmt/2018-01-01/databox/operations.go b/services/databox/mgmt/2018-01-01/databox/operations.go index de8fead9b8af..9a865a42bf1c 100644 --- a/services/databox/mgmt/2018-01-01/databox/operations.go +++ b/services/databox/mgmt/2018-01-01/databox/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListPa result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databox/mgmt/2018-01-01/databox/service.go b/services/databox/mgmt/2018-01-01/databox/service.go index 243443cd4244..b40ad749a1af 100644 --- a/services/databox/mgmt/2018-01-01/databox/service.go +++ b/services/databox/mgmt/2018-01-01/databox/service.go @@ -82,6 +82,7 @@ func (client ServiceClient) ListAvailableSkus(ctx context.Context, location stri result.asr, err = client.ListAvailableSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.ServiceClient", "ListAvailableSkus", resp, "Failure responding to request") + return } if result.asr.hasNextLink() && result.asr.IsEmpty() { err = result.NextWithContext(ctx) @@ -147,6 +148,7 @@ func (client ServiceClient) listAvailableSkusNextResults(ctx context.Context, la result, err = client.ListAvailableSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.ServiceClient", "listAvailableSkusNextResults", resp, "Failure responding to next results request") + return } return } @@ -208,6 +210,7 @@ func (client ServiceClient) ValidateAddressMethod(ctx context.Context, location result, err = client.ValidateAddressMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.ServiceClient", "ValidateAddressMethod", resp, "Failure responding to request") + return } return diff --git a/services/databox/mgmt/2019-09-01/databox/jobs.go b/services/databox/mgmt/2019-09-01/databox/jobs.go index dfb63799c13c..ae0201859f38 100644 --- a/services/databox/mgmt/2019-09-01/databox/jobs.go +++ b/services/databox/mgmt/2019-09-01/databox/jobs.go @@ -87,6 +87,7 @@ func (client JobsClient) BookShipmentPickUp(ctx context.Context, resourceGroupNa result, err = client.BookShipmentPickUpResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "BookShipmentPickUp", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client JobsClient) Cancel(ctx context.Context, resourceGroupName string, j result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -452,6 +454,7 @@ func (client JobsClient) Get(ctx context.Context, resourceGroupName string, jobN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "Get", resp, "Failure responding to request") + return } return @@ -530,6 +533,7 @@ func (client JobsClient) List(ctx context.Context, skipToken string) (result Job result.jrl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "List", resp, "Failure responding to request") + return } if result.jrl.hasNextLink() && result.jrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -595,6 +599,7 @@ func (client JobsClient) listNextResults(ctx context.Context, lastResults JobRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -647,6 +652,7 @@ func (client JobsClient) ListByResourceGroup(ctx context.Context, resourceGroupN result.jrl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.jrl.hasNextLink() && result.jrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -713,6 +719,7 @@ func (client JobsClient) listByResourceGroupNextResults(ctx context.Context, las result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -773,6 +780,7 @@ func (client JobsClient) ListCredentials(ctx context.Context, resourceGroupName result, err = client.ListCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "ListCredentials", resp, "Failure responding to request") + return } return diff --git a/services/databox/mgmt/2019-09-01/databox/operations.go b/services/databox/mgmt/2019-09-01/databox/operations.go index afe3d679c9eb..1ca0cc7f1c8b 100644 --- a/services/databox/mgmt/2019-09-01/databox/operations.go +++ b/services/databox/mgmt/2019-09-01/databox/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListPa result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databox/mgmt/2019-09-01/databox/service.go b/services/databox/mgmt/2019-09-01/databox/service.go index 3e0b0cbe0004..9a413f0f1bac 100644 --- a/services/databox/mgmt/2019-09-01/databox/service.go +++ b/services/databox/mgmt/2019-09-01/databox/service.go @@ -82,6 +82,7 @@ func (client ServiceClient) ListAvailableSkus(ctx context.Context, location stri result.asr, err = client.ListAvailableSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.ServiceClient", "ListAvailableSkus", resp, "Failure responding to request") + return } if result.asr.hasNextLink() && result.asr.IsEmpty() { err = result.NextWithContext(ctx) @@ -147,6 +148,7 @@ func (client ServiceClient) listAvailableSkusNextResults(ctx context.Context, la result, err = client.ListAvailableSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.ServiceClient", "listAvailableSkusNextResults", resp, "Failure responding to next results request") + return } return } @@ -209,6 +211,7 @@ func (client ServiceClient) ListAvailableSkusByResourceGroup(ctx context.Context result.asr, err = client.ListAvailableSkusByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.ServiceClient", "ListAvailableSkusByResourceGroup", resp, "Failure responding to request") + return } if result.asr.hasNextLink() && result.asr.IsEmpty() { err = result.NextWithContext(ctx) @@ -275,6 +278,7 @@ func (client ServiceClient) listAvailableSkusByResourceGroupNextResults(ctx cont result, err = client.ListAvailableSkusByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.ServiceClient", "listAvailableSkusByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -333,6 +337,7 @@ func (client ServiceClient) RegionConfiguration(ctx context.Context, location st result, err = client.RegionConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.ServiceClient", "RegionConfiguration", resp, "Failure responding to request") + return } return @@ -420,6 +425,7 @@ func (client ServiceClient) ValidateAddressMethod(ctx context.Context, location result, err = client.ValidateAddressMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.ServiceClient", "ValidateAddressMethod", resp, "Failure responding to request") + return } return @@ -502,6 +508,7 @@ func (client ServiceClient) ValidateInputs(ctx context.Context, location string, result, err = client.ValidateInputsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.ServiceClient", "ValidateInputs", resp, "Failure responding to request") + return } return @@ -585,6 +592,7 @@ func (client ServiceClient) ValidateInputsByResourceGroup(ctx context.Context, r result, err = client.ValidateInputsByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.ServiceClient", "ValidateInputsByResourceGroup", resp, "Failure responding to request") + return } return diff --git a/services/databox/mgmt/2020-04-01/databox/jobs.go b/services/databox/mgmt/2020-04-01/databox/jobs.go index e0652e9c376a..c10727dbb463 100644 --- a/services/databox/mgmt/2020-04-01/databox/jobs.go +++ b/services/databox/mgmt/2020-04-01/databox/jobs.go @@ -87,6 +87,7 @@ func (client JobsClient) BookShipmentPickUp(ctx context.Context, resourceGroupNa result, err = client.BookShipmentPickUpResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "BookShipmentPickUp", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client JobsClient) Cancel(ctx context.Context, resourceGroupName string, j result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -451,6 +453,7 @@ func (client JobsClient) Get(ctx context.Context, resourceGroupName string, jobN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "Get", resp, "Failure responding to request") + return } return @@ -529,6 +532,7 @@ func (client JobsClient) List(ctx context.Context, skipToken string) (result Job result.jrl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "List", resp, "Failure responding to request") + return } if result.jrl.hasNextLink() && result.jrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -594,6 +598,7 @@ func (client JobsClient) listNextResults(ctx context.Context, lastResults JobRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -646,6 +651,7 @@ func (client JobsClient) ListByResourceGroup(ctx context.Context, resourceGroupN result.jrl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.jrl.hasNextLink() && result.jrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -712,6 +718,7 @@ func (client JobsClient) listByResourceGroupNextResults(ctx context.Context, las result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -772,6 +779,7 @@ func (client JobsClient) ListCredentials(ctx context.Context, resourceGroupName result, err = client.ListCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "ListCredentials", resp, "Failure responding to request") + return } return diff --git a/services/databox/mgmt/2020-04-01/databox/operations.go b/services/databox/mgmt/2020-04-01/databox/operations.go index 05d401ccc0ac..8e238460938c 100644 --- a/services/databox/mgmt/2020-04-01/databox/operations.go +++ b/services/databox/mgmt/2020-04-01/databox/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListPa result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databox/mgmt/2020-04-01/databox/service.go b/services/databox/mgmt/2020-04-01/databox/service.go index cd2843e992ab..276a81a50215 100644 --- a/services/databox/mgmt/2020-04-01/databox/service.go +++ b/services/databox/mgmt/2020-04-01/databox/service.go @@ -83,6 +83,7 @@ func (client ServiceClient) ListAvailableSkusByResourceGroup(ctx context.Context result.asr, err = client.ListAvailableSkusByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.ServiceClient", "ListAvailableSkusByResourceGroup", resp, "Failure responding to request") + return } if result.asr.hasNextLink() && result.asr.IsEmpty() { err = result.NextWithContext(ctx) @@ -149,6 +150,7 @@ func (client ServiceClient) listAvailableSkusByResourceGroupNextResults(ctx cont result, err = client.ListAvailableSkusByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.ServiceClient", "listAvailableSkusByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -207,6 +209,7 @@ func (client ServiceClient) RegionConfiguration(ctx context.Context, location st result, err = client.RegionConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.ServiceClient", "RegionConfiguration", resp, "Failure responding to request") + return } return @@ -292,6 +295,7 @@ func (client ServiceClient) RegionConfigurationByResourceGroup(ctx context.Conte result, err = client.RegionConfigurationByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.ServiceClient", "RegionConfigurationByResourceGroup", resp, "Failure responding to request") + return } return @@ -380,6 +384,7 @@ func (client ServiceClient) ValidateAddressMethod(ctx context.Context, location result, err = client.ValidateAddressMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.ServiceClient", "ValidateAddressMethod", resp, "Failure responding to request") + return } return @@ -462,6 +467,7 @@ func (client ServiceClient) ValidateInputs(ctx context.Context, location string, result, err = client.ValidateInputsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.ServiceClient", "ValidateInputs", resp, "Failure responding to request") + return } return @@ -545,6 +551,7 @@ func (client ServiceClient) ValidateInputsByResourceGroup(ctx context.Context, r result, err = client.ValidateInputsByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.ServiceClient", "ValidateInputsByResourceGroup", resp, "Failure responding to request") + return } return diff --git a/services/databox/mgmt/2020-11-01/databox/jobs.go b/services/databox/mgmt/2020-11-01/databox/jobs.go index f9c9fa3b2eb1..620c726bc476 100644 --- a/services/databox/mgmt/2020-11-01/databox/jobs.go +++ b/services/databox/mgmt/2020-11-01/databox/jobs.go @@ -87,6 +87,7 @@ func (client JobsClient) BookShipmentPickUp(ctx context.Context, resourceGroupNa result, err = client.BookShipmentPickUpResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "BookShipmentPickUp", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client JobsClient) Cancel(ctx context.Context, resourceGroupName string, j result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -450,6 +452,7 @@ func (client JobsClient) Get(ctx context.Context, resourceGroupName string, jobN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "Get", resp, "Failure responding to request") + return } return @@ -528,6 +531,7 @@ func (client JobsClient) List(ctx context.Context, skipToken string) (result Job result.jrl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "List", resp, "Failure responding to request") + return } if result.jrl.hasNextLink() && result.jrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -593,6 +597,7 @@ func (client JobsClient) listNextResults(ctx context.Context, lastResults JobRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -645,6 +650,7 @@ func (client JobsClient) ListByResourceGroup(ctx context.Context, resourceGroupN result.jrl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.jrl.hasNextLink() && result.jrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -711,6 +717,7 @@ func (client JobsClient) listByResourceGroupNextResults(ctx context.Context, las result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -771,6 +778,7 @@ func (client JobsClient) ListCredentials(ctx context.Context, resourceGroupName result, err = client.ListCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.JobsClient", "ListCredentials", resp, "Failure responding to request") + return } return diff --git a/services/databox/mgmt/2020-11-01/databox/operations.go b/services/databox/mgmt/2020-11-01/databox/operations.go index 79f770d582fb..64fe65684bf6 100644 --- a/services/databox/mgmt/2020-11-01/databox/operations.go +++ b/services/databox/mgmt/2020-11-01/databox/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListPa result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databox/mgmt/2020-11-01/databox/service.go b/services/databox/mgmt/2020-11-01/databox/service.go index 1c075a9a4485..61c4109cc44c 100644 --- a/services/databox/mgmt/2020-11-01/databox/service.go +++ b/services/databox/mgmt/2020-11-01/databox/service.go @@ -83,6 +83,7 @@ func (client ServiceClient) ListAvailableSkusByResourceGroup(ctx context.Context result.asr, err = client.ListAvailableSkusByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.ServiceClient", "ListAvailableSkusByResourceGroup", resp, "Failure responding to request") + return } if result.asr.hasNextLink() && result.asr.IsEmpty() { err = result.NextWithContext(ctx) @@ -149,6 +150,7 @@ func (client ServiceClient) listAvailableSkusByResourceGroupNextResults(ctx cont result, err = client.ListAvailableSkusByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.ServiceClient", "listAvailableSkusByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -207,6 +209,7 @@ func (client ServiceClient) RegionConfiguration(ctx context.Context, location st result, err = client.RegionConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.ServiceClient", "RegionConfiguration", resp, "Failure responding to request") + return } return @@ -292,6 +295,7 @@ func (client ServiceClient) RegionConfigurationByResourceGroup(ctx context.Conte result, err = client.RegionConfigurationByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.ServiceClient", "RegionConfigurationByResourceGroup", resp, "Failure responding to request") + return } return @@ -379,6 +383,7 @@ func (client ServiceClient) ValidateAddressMethod(ctx context.Context, location result, err = client.ValidateAddressMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.ServiceClient", "ValidateAddressMethod", resp, "Failure responding to request") + return } return @@ -461,6 +466,7 @@ func (client ServiceClient) ValidateInputs(ctx context.Context, location string, result, err = client.ValidateInputsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.ServiceClient", "ValidateInputs", resp, "Failure responding to request") + return } return @@ -544,6 +550,7 @@ func (client ServiceClient) ValidateInputsByResourceGroup(ctx context.Context, r result, err = client.ValidateInputsByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databox.ServiceClient", "ValidateInputsByResourceGroup", resp, "Failure responding to request") + return } return diff --git a/services/databoxedge/mgmt/2019-03-01/databoxedge/alerts.go b/services/databoxedge/mgmt/2019-03-01/databoxedge/alerts.go index 58a3105509a2..236c25852c10 100644 --- a/services/databoxedge/mgmt/2019-03-01/databoxedge/alerts.go +++ b/services/databoxedge/mgmt/2019-03-01/databoxedge/alerts.go @@ -73,6 +73,7 @@ func (client AlertsClient) Get(ctx context.Context, deviceName string, name stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.AlertsClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client AlertsClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceNa result.al, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.AlertsClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -214,6 +216,7 @@ func (client AlertsClient) listByDataBoxEdgeDeviceNextResults(ctx context.Contex result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.AlertsClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-03-01/databoxedge/bandwidthschedules.go b/services/databoxedge/mgmt/2019-03-01/databoxedge/bandwidthschedules.go index 21ff0d47304a..49703de44ba3 100644 --- a/services/databoxedge/mgmt/2019-03-01/databoxedge/bandwidthschedules.go +++ b/services/databoxedge/mgmt/2019-03-01/databoxedge/bandwidthschedules.go @@ -242,6 +242,7 @@ func (client BandwidthSchedulesClient) Get(ctx context.Context, deviceName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.BandwidthSchedulesClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +320,7 @@ func (client BandwidthSchedulesClient) ListByDataBoxEdgeDevice(ctx context.Conte result.bsl, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.BandwidthSchedulesClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.bsl.hasNextLink() && result.bsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -383,6 +385,7 @@ func (client BandwidthSchedulesClient) listByDataBoxEdgeDeviceNextResults(ctx co result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.BandwidthSchedulesClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-03-01/databoxedge/devices.go b/services/databoxedge/mgmt/2019-03-01/databoxedge/devices.go index 093ba5b17e9a..6f648eb45d64 100644 --- a/services/databoxedge/mgmt/2019-03-01/databoxedge/devices.go +++ b/services/databoxedge/mgmt/2019-03-01/databoxedge/devices.go @@ -391,6 +391,7 @@ func (client DevicesClient) Get(ctx context.Context, deviceName string, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "Get", resp, "Failure responding to request") + return } return @@ -466,6 +467,7 @@ func (client DevicesClient) GetExtendedInformation(ctx context.Context, deviceNa result, err = client.GetExtendedInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "GetExtendedInformation", resp, "Failure responding to request") + return } return @@ -541,6 +543,7 @@ func (client DevicesClient) GetNetworkSettings(ctx context.Context, deviceName s result, err = client.GetNetworkSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "GetNetworkSettings", resp, "Failure responding to request") + return } return @@ -616,6 +619,7 @@ func (client DevicesClient) GetUpdateSummary(ctx context.Context, deviceName str result, err = client.GetUpdateSummaryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "GetUpdateSummary", resp, "Failure responding to request") + return } return @@ -767,6 +771,7 @@ func (client DevicesClient) ListByResourceGroup(ctx context.Context, resourceGro result.dl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -833,6 +838,7 @@ func (client DevicesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -885,6 +891,7 @@ func (client DevicesClient) ListBySubscription(ctx context.Context, expand strin result.dl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -950,6 +957,7 @@ func (client DevicesClient) listBySubscriptionNextResults(ctx context.Context, l result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1076,6 +1084,7 @@ func (client DevicesClient) Update(ctx context.Context, deviceName string, param result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "Update", resp, "Failure responding to request") + return } return @@ -1161,6 +1170,7 @@ func (client DevicesClient) UploadCertificate(ctx context.Context, deviceName st result, err = client.UploadCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "UploadCertificate", resp, "Failure responding to request") + return } return diff --git a/services/databoxedge/mgmt/2019-03-01/databoxedge/jobs.go b/services/databoxedge/mgmt/2019-03-01/databoxedge/jobs.go index 22edd8151777..241a6eb1548c 100644 --- a/services/databoxedge/mgmt/2019-03-01/databoxedge/jobs.go +++ b/services/databoxedge/mgmt/2019-03-01/databoxedge/jobs.go @@ -73,6 +73,7 @@ func (client JobsClient) Get(ctx context.Context, deviceName string, name string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.JobsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/databoxedge/mgmt/2019-03-01/databoxedge/operations.go b/services/databoxedge/mgmt/2019-03-01/databoxedge/operations.go index 16cc10b218a3..2534985ddad7 100644 --- a/services/databoxedge/mgmt/2019-03-01/databoxedge/operations.go +++ b/services/databoxedge/mgmt/2019-03-01/databoxedge/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListP result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-03-01/databoxedge/operationsstatus.go b/services/databoxedge/mgmt/2019-03-01/databoxedge/operationsstatus.go index 73173ee47cc5..68881b527f6d 100644 --- a/services/databoxedge/mgmt/2019-03-01/databoxedge/operationsstatus.go +++ b/services/databoxedge/mgmt/2019-03-01/databoxedge/operationsstatus.go @@ -74,6 +74,7 @@ func (client OperationsStatusClient) Get(ctx context.Context, deviceName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.OperationsStatusClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/databoxedge/mgmt/2019-03-01/databoxedge/orders.go b/services/databoxedge/mgmt/2019-03-01/databoxedge/orders.go index 7da627c223c6..4b5095d8610d 100644 --- a/services/databoxedge/mgmt/2019-03-01/databoxedge/orders.go +++ b/services/databoxedge/mgmt/2019-03-01/databoxedge/orders.go @@ -245,6 +245,7 @@ func (client OrdersClient) Get(ctx context.Context, deviceName string, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.OrdersClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client OrdersClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceNa result.ol, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.OrdersClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client OrdersClient) listByDataBoxEdgeDeviceNextResults(ctx context.Contex result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.OrdersClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-03-01/databoxedge/roles.go b/services/databoxedge/mgmt/2019-03-01/databoxedge/roles.go index 2d0a66f3b261..42db0d2d772b 100644 --- a/services/databoxedge/mgmt/2019-03-01/databoxedge/roles.go +++ b/services/databoxedge/mgmt/2019-03-01/databoxedge/roles.go @@ -229,6 +229,7 @@ func (client RolesClient) Get(ctx context.Context, deviceName string, name strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.RolesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RolesClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceNam result.rl, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.RolesClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.rl.hasNextLink() && result.rl.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RolesClient) listByDataBoxEdgeDeviceNextResults(ctx context.Context result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.RolesClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-03-01/databoxedge/shares.go b/services/databoxedge/mgmt/2019-03-01/databoxedge/shares.go index b86c1436808e..c4bc0e05f8df 100644 --- a/services/databoxedge/mgmt/2019-03-01/databoxedge/shares.go +++ b/services/databoxedge/mgmt/2019-03-01/databoxedge/shares.go @@ -241,6 +241,7 @@ func (client SharesClient) Get(ctx context.Context, deviceName string, name stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.SharesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client SharesClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceNa result.sl, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.SharesClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client SharesClient) listByDataBoxEdgeDeviceNextResults(ctx context.Contex result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.SharesClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-03-01/databoxedge/storageaccountcredentials.go b/services/databoxedge/mgmt/2019-03-01/databoxedge/storageaccountcredentials.go index e33dbd726281..9fe1d0f5f242 100644 --- a/services/databoxedge/mgmt/2019-03-01/databoxedge/storageaccountcredentials.go +++ b/services/databoxedge/mgmt/2019-03-01/databoxedge/storageaccountcredentials.go @@ -241,6 +241,7 @@ func (client StorageAccountCredentialsClient) Get(ctx context.Context, deviceNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.StorageAccountCredentialsClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client StorageAccountCredentialsClient) ListByDataBoxEdgeDevice(ctx contex result.sacl, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.StorageAccountCredentialsClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.sacl.hasNextLink() && result.sacl.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client StorageAccountCredentialsClient) listByDataBoxEdgeDeviceNextResults result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.StorageAccountCredentialsClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-03-01/databoxedge/triggers.go b/services/databoxedge/mgmt/2019-03-01/databoxedge/triggers.go index fa431a55f32b..fca7aabf4353 100644 --- a/services/databoxedge/mgmt/2019-03-01/databoxedge/triggers.go +++ b/services/databoxedge/mgmt/2019-03-01/databoxedge/triggers.go @@ -229,6 +229,7 @@ func (client TriggersClient) Get(ctx context.Context, deviceName string, name st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.TriggersClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client TriggersClient) ListByDataBoxEdgeDevice(ctx context.Context, device result.tl, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.TriggersClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client TriggersClient) listByDataBoxEdgeDeviceNextResults(ctx context.Cont result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.TriggersClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-03-01/databoxedge/users.go b/services/databoxedge/mgmt/2019-03-01/databoxedge/users.go index 434fd3f022bc..0b56571547c6 100644 --- a/services/databoxedge/mgmt/2019-03-01/databoxedge/users.go +++ b/services/databoxedge/mgmt/2019-03-01/databoxedge/users.go @@ -239,6 +239,7 @@ func (client UsersClient) Get(ctx context.Context, deviceName string, name strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.UsersClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client UsersClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceNam result.ul, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.UsersClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.ul.hasNextLink() && result.ul.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +382,7 @@ func (client UsersClient) listByDataBoxEdgeDeviceNextResults(ctx context.Context result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.UsersClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-07-01/databoxedge/alerts.go b/services/databoxedge/mgmt/2019-07-01/databoxedge/alerts.go index 5209562279d7..2cf9e3202837 100644 --- a/services/databoxedge/mgmt/2019-07-01/databoxedge/alerts.go +++ b/services/databoxedge/mgmt/2019-07-01/databoxedge/alerts.go @@ -73,6 +73,7 @@ func (client AlertsClient) Get(ctx context.Context, deviceName string, name stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.AlertsClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client AlertsClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceNa result.al, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.AlertsClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -214,6 +216,7 @@ func (client AlertsClient) listByDataBoxEdgeDeviceNextResults(ctx context.Contex result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.AlertsClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-07-01/databoxedge/bandwidthschedules.go b/services/databoxedge/mgmt/2019-07-01/databoxedge/bandwidthschedules.go index 7922bb137cab..c12edb9c35af 100644 --- a/services/databoxedge/mgmt/2019-07-01/databoxedge/bandwidthschedules.go +++ b/services/databoxedge/mgmt/2019-07-01/databoxedge/bandwidthschedules.go @@ -242,6 +242,7 @@ func (client BandwidthSchedulesClient) Get(ctx context.Context, deviceName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.BandwidthSchedulesClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +320,7 @@ func (client BandwidthSchedulesClient) ListByDataBoxEdgeDevice(ctx context.Conte result.bsl, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.BandwidthSchedulesClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.bsl.hasNextLink() && result.bsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -383,6 +385,7 @@ func (client BandwidthSchedulesClient) listByDataBoxEdgeDeviceNextResults(ctx co result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.BandwidthSchedulesClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-07-01/databoxedge/devices.go b/services/databoxedge/mgmt/2019-07-01/databoxedge/devices.go index 05efd9a63768..471176bd5802 100644 --- a/services/databoxedge/mgmt/2019-07-01/databoxedge/devices.go +++ b/services/databoxedge/mgmt/2019-07-01/databoxedge/devices.go @@ -391,6 +391,7 @@ func (client DevicesClient) Get(ctx context.Context, deviceName string, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "Get", resp, "Failure responding to request") + return } return @@ -466,6 +467,7 @@ func (client DevicesClient) GetExtendedInformation(ctx context.Context, deviceNa result, err = client.GetExtendedInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "GetExtendedInformation", resp, "Failure responding to request") + return } return @@ -541,6 +543,7 @@ func (client DevicesClient) GetNetworkSettings(ctx context.Context, deviceName s result, err = client.GetNetworkSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "GetNetworkSettings", resp, "Failure responding to request") + return } return @@ -616,6 +619,7 @@ func (client DevicesClient) GetUpdateSummary(ctx context.Context, deviceName str result, err = client.GetUpdateSummaryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "GetUpdateSummary", resp, "Failure responding to request") + return } return @@ -767,6 +771,7 @@ func (client DevicesClient) ListByResourceGroup(ctx context.Context, resourceGro result.dl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -833,6 +838,7 @@ func (client DevicesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -885,6 +891,7 @@ func (client DevicesClient) ListBySubscription(ctx context.Context, expand strin result.dl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -950,6 +957,7 @@ func (client DevicesClient) listBySubscriptionNextResults(ctx context.Context, l result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1076,6 +1084,7 @@ func (client DevicesClient) Update(ctx context.Context, deviceName string, param result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "Update", resp, "Failure responding to request") + return } return @@ -1161,6 +1170,7 @@ func (client DevicesClient) UploadCertificate(ctx context.Context, deviceName st result, err = client.UploadCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "UploadCertificate", resp, "Failure responding to request") + return } return diff --git a/services/databoxedge/mgmt/2019-07-01/databoxedge/jobs.go b/services/databoxedge/mgmt/2019-07-01/databoxedge/jobs.go index 5364a646d730..8bbcd844c3ca 100644 --- a/services/databoxedge/mgmt/2019-07-01/databoxedge/jobs.go +++ b/services/databoxedge/mgmt/2019-07-01/databoxedge/jobs.go @@ -73,6 +73,7 @@ func (client JobsClient) Get(ctx context.Context, deviceName string, name string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.JobsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/databoxedge/mgmt/2019-07-01/databoxedge/nodes.go b/services/databoxedge/mgmt/2019-07-01/databoxedge/nodes.go index 5bd04611ff2e..9c85ee6d6f1b 100644 --- a/services/databoxedge/mgmt/2019-07-01/databoxedge/nodes.go +++ b/services/databoxedge/mgmt/2019-07-01/databoxedge/nodes.go @@ -72,6 +72,7 @@ func (client NodesClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceNam result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.NodesClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } return diff --git a/services/databoxedge/mgmt/2019-07-01/databoxedge/operations.go b/services/databoxedge/mgmt/2019-07-01/databoxedge/operations.go index 36a2ddff4762..37a51a92b368 100644 --- a/services/databoxedge/mgmt/2019-07-01/databoxedge/operations.go +++ b/services/databoxedge/mgmt/2019-07-01/databoxedge/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListP result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-07-01/databoxedge/operationsstatus.go b/services/databoxedge/mgmt/2019-07-01/databoxedge/operationsstatus.go index 139dcfeffe8c..28d681f64d7a 100644 --- a/services/databoxedge/mgmt/2019-07-01/databoxedge/operationsstatus.go +++ b/services/databoxedge/mgmt/2019-07-01/databoxedge/operationsstatus.go @@ -74,6 +74,7 @@ func (client OperationsStatusClient) Get(ctx context.Context, deviceName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.OperationsStatusClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/databoxedge/mgmt/2019-07-01/databoxedge/orders.go b/services/databoxedge/mgmt/2019-07-01/databoxedge/orders.go index b518e55912a1..4c4733ce01fd 100644 --- a/services/databoxedge/mgmt/2019-07-01/databoxedge/orders.go +++ b/services/databoxedge/mgmt/2019-07-01/databoxedge/orders.go @@ -245,6 +245,7 @@ func (client OrdersClient) Get(ctx context.Context, deviceName string, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.OrdersClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client OrdersClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceNa result.ol, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.OrdersClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client OrdersClient) listByDataBoxEdgeDeviceNextResults(ctx context.Contex result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.OrdersClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-07-01/databoxedge/roles.go b/services/databoxedge/mgmt/2019-07-01/databoxedge/roles.go index 179c20af80c9..b900b435f999 100644 --- a/services/databoxedge/mgmt/2019-07-01/databoxedge/roles.go +++ b/services/databoxedge/mgmt/2019-07-01/databoxedge/roles.go @@ -229,6 +229,7 @@ func (client RolesClient) Get(ctx context.Context, deviceName string, name strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.RolesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RolesClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceNam result.rl, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.RolesClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.rl.hasNextLink() && result.rl.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RolesClient) listByDataBoxEdgeDeviceNextResults(ctx context.Context result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.RolesClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-07-01/databoxedge/shares.go b/services/databoxedge/mgmt/2019-07-01/databoxedge/shares.go index 69ee904c6c9f..6b8b8b5fdb63 100644 --- a/services/databoxedge/mgmt/2019-07-01/databoxedge/shares.go +++ b/services/databoxedge/mgmt/2019-07-01/databoxedge/shares.go @@ -241,6 +241,7 @@ func (client SharesClient) Get(ctx context.Context, deviceName string, name stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.SharesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client SharesClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceNa result.sl, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.SharesClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client SharesClient) listByDataBoxEdgeDeviceNextResults(ctx context.Contex result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.SharesClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-07-01/databoxedge/storageaccountcredentials.go b/services/databoxedge/mgmt/2019-07-01/databoxedge/storageaccountcredentials.go index c905a288d8ec..8478c77287d1 100644 --- a/services/databoxedge/mgmt/2019-07-01/databoxedge/storageaccountcredentials.go +++ b/services/databoxedge/mgmt/2019-07-01/databoxedge/storageaccountcredentials.go @@ -241,6 +241,7 @@ func (client StorageAccountCredentialsClient) Get(ctx context.Context, deviceNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.StorageAccountCredentialsClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client StorageAccountCredentialsClient) ListByDataBoxEdgeDevice(ctx contex result.sacl, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.StorageAccountCredentialsClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.sacl.hasNextLink() && result.sacl.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client StorageAccountCredentialsClient) listByDataBoxEdgeDeviceNextResults result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.StorageAccountCredentialsClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-07-01/databoxedge/triggers.go b/services/databoxedge/mgmt/2019-07-01/databoxedge/triggers.go index 18b8ec99a562..b54799b27e23 100644 --- a/services/databoxedge/mgmt/2019-07-01/databoxedge/triggers.go +++ b/services/databoxedge/mgmt/2019-07-01/databoxedge/triggers.go @@ -229,6 +229,7 @@ func (client TriggersClient) Get(ctx context.Context, deviceName string, name st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.TriggersClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client TriggersClient) ListByDataBoxEdgeDevice(ctx context.Context, device result.tl, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.TriggersClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client TriggersClient) listByDataBoxEdgeDeviceNextResults(ctx context.Cont result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.TriggersClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-07-01/databoxedge/users.go b/services/databoxedge/mgmt/2019-07-01/databoxedge/users.go index 0cae1a163649..4569912fdc8f 100644 --- a/services/databoxedge/mgmt/2019-07-01/databoxedge/users.go +++ b/services/databoxedge/mgmt/2019-07-01/databoxedge/users.go @@ -240,6 +240,7 @@ func (client UsersClient) Get(ctx context.Context, deviceName string, name strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.UsersClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client UsersClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceNam result.ul, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.UsersClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.ul.hasNextLink() && result.ul.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client UsersClient) listByDataBoxEdgeDeviceNextResults(ctx context.Context result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.UsersClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-08-01/databoxedge/alerts.go b/services/databoxedge/mgmt/2019-08-01/databoxedge/alerts.go index 7189b2837dc5..2ae9f5ad8e57 100644 --- a/services/databoxedge/mgmt/2019-08-01/databoxedge/alerts.go +++ b/services/databoxedge/mgmt/2019-08-01/databoxedge/alerts.go @@ -73,6 +73,7 @@ func (client AlertsClient) Get(ctx context.Context, deviceName string, name stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.AlertsClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client AlertsClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceNa result.al, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.AlertsClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -214,6 +216,7 @@ func (client AlertsClient) listByDataBoxEdgeDeviceNextResults(ctx context.Contex result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.AlertsClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-08-01/databoxedge/bandwidthschedules.go b/services/databoxedge/mgmt/2019-08-01/databoxedge/bandwidthschedules.go index b92763e4cfb6..823d80627d8d 100644 --- a/services/databoxedge/mgmt/2019-08-01/databoxedge/bandwidthschedules.go +++ b/services/databoxedge/mgmt/2019-08-01/databoxedge/bandwidthschedules.go @@ -242,6 +242,7 @@ func (client BandwidthSchedulesClient) Get(ctx context.Context, deviceName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.BandwidthSchedulesClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +320,7 @@ func (client BandwidthSchedulesClient) ListByDataBoxEdgeDevice(ctx context.Conte result.bsl, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.BandwidthSchedulesClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.bsl.hasNextLink() && result.bsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -383,6 +385,7 @@ func (client BandwidthSchedulesClient) listByDataBoxEdgeDeviceNextResults(ctx co result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.BandwidthSchedulesClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-08-01/databoxedge/containers.go b/services/databoxedge/mgmt/2019-08-01/databoxedge/containers.go index 5b5e4f1b0a84..0b663d3905c0 100644 --- a/services/databoxedge/mgmt/2019-08-01/databoxedge/containers.go +++ b/services/databoxedge/mgmt/2019-08-01/databoxedge/containers.go @@ -241,6 +241,7 @@ func (client ContainersClient) Get(ctx context.Context, deviceName string, stora result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.ContainersClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +321,7 @@ func (client ContainersClient) ListByStorageAccount(ctx context.Context, deviceN result.cl, err = client.ListByStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.ContainersClient", "ListByStorageAccount", resp, "Failure responding to request") + return } if result.cl.hasNextLink() && result.cl.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client ContainersClient) listByStorageAccountNextResults(ctx context.Conte result, err = client.ListByStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.ContainersClient", "listByStorageAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-08-01/databoxedge/devices.go b/services/databoxedge/mgmt/2019-08-01/databoxedge/devices.go index 584559d725be..a2fef431299f 100644 --- a/services/databoxedge/mgmt/2019-08-01/databoxedge/devices.go +++ b/services/databoxedge/mgmt/2019-08-01/databoxedge/devices.go @@ -391,6 +391,7 @@ func (client DevicesClient) Get(ctx context.Context, deviceName string, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "Get", resp, "Failure responding to request") + return } return @@ -466,6 +467,7 @@ func (client DevicesClient) GetExtendedInformation(ctx context.Context, deviceNa result, err = client.GetExtendedInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "GetExtendedInformation", resp, "Failure responding to request") + return } return @@ -541,6 +543,7 @@ func (client DevicesClient) GetNetworkSettings(ctx context.Context, deviceName s result, err = client.GetNetworkSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "GetNetworkSettings", resp, "Failure responding to request") + return } return @@ -616,6 +619,7 @@ func (client DevicesClient) GetUpdateSummary(ctx context.Context, deviceName str result, err = client.GetUpdateSummaryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "GetUpdateSummary", resp, "Failure responding to request") + return } return @@ -767,6 +771,7 @@ func (client DevicesClient) ListByResourceGroup(ctx context.Context, resourceGro result.dl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -833,6 +838,7 @@ func (client DevicesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -885,6 +891,7 @@ func (client DevicesClient) ListBySubscription(ctx context.Context, expand strin result.dl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -950,6 +957,7 @@ func (client DevicesClient) listBySubscriptionNextResults(ctx context.Context, l result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1076,6 +1084,7 @@ func (client DevicesClient) Update(ctx context.Context, deviceName string, param result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "Update", resp, "Failure responding to request") + return } return @@ -1161,6 +1170,7 @@ func (client DevicesClient) UploadCertificate(ctx context.Context, deviceName st result, err = client.UploadCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "UploadCertificate", resp, "Failure responding to request") + return } return diff --git a/services/databoxedge/mgmt/2019-08-01/databoxedge/jobs.go b/services/databoxedge/mgmt/2019-08-01/databoxedge/jobs.go index 524ce6e527a3..37a31d398ca8 100644 --- a/services/databoxedge/mgmt/2019-08-01/databoxedge/jobs.go +++ b/services/databoxedge/mgmt/2019-08-01/databoxedge/jobs.go @@ -73,6 +73,7 @@ func (client JobsClient) Get(ctx context.Context, deviceName string, name string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.JobsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/databoxedge/mgmt/2019-08-01/databoxedge/nodes.go b/services/databoxedge/mgmt/2019-08-01/databoxedge/nodes.go index 825d15ee2659..cacf5e003c9d 100644 --- a/services/databoxedge/mgmt/2019-08-01/databoxedge/nodes.go +++ b/services/databoxedge/mgmt/2019-08-01/databoxedge/nodes.go @@ -72,6 +72,7 @@ func (client NodesClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceNam result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.NodesClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } return diff --git a/services/databoxedge/mgmt/2019-08-01/databoxedge/operations.go b/services/databoxedge/mgmt/2019-08-01/databoxedge/operations.go index 7902efa143e8..b3ce2dd4e629 100644 --- a/services/databoxedge/mgmt/2019-08-01/databoxedge/operations.go +++ b/services/databoxedge/mgmt/2019-08-01/databoxedge/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListP result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-08-01/databoxedge/operationsstatus.go b/services/databoxedge/mgmt/2019-08-01/databoxedge/operationsstatus.go index 33e94497a9f9..d9aaf71bcecc 100644 --- a/services/databoxedge/mgmt/2019-08-01/databoxedge/operationsstatus.go +++ b/services/databoxedge/mgmt/2019-08-01/databoxedge/operationsstatus.go @@ -74,6 +74,7 @@ func (client OperationsStatusClient) Get(ctx context.Context, deviceName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.OperationsStatusClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/databoxedge/mgmt/2019-08-01/databoxedge/orders.go b/services/databoxedge/mgmt/2019-08-01/databoxedge/orders.go index 865db70b718c..9fcfe2a33cfa 100644 --- a/services/databoxedge/mgmt/2019-08-01/databoxedge/orders.go +++ b/services/databoxedge/mgmt/2019-08-01/databoxedge/orders.go @@ -245,6 +245,7 @@ func (client OrdersClient) Get(ctx context.Context, deviceName string, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.OrdersClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client OrdersClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceNa result.ol, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.OrdersClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client OrdersClient) listByDataBoxEdgeDeviceNextResults(ctx context.Contex result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.OrdersClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-08-01/databoxedge/roles.go b/services/databoxedge/mgmt/2019-08-01/databoxedge/roles.go index 572756266d2d..e146558955c5 100644 --- a/services/databoxedge/mgmt/2019-08-01/databoxedge/roles.go +++ b/services/databoxedge/mgmt/2019-08-01/databoxedge/roles.go @@ -229,6 +229,7 @@ func (client RolesClient) Get(ctx context.Context, deviceName string, name strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.RolesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RolesClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceNam result.rl, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.RolesClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.rl.hasNextLink() && result.rl.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RolesClient) listByDataBoxEdgeDeviceNextResults(ctx context.Context result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.RolesClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-08-01/databoxedge/shares.go b/services/databoxedge/mgmt/2019-08-01/databoxedge/shares.go index 7eecb3183807..515f762190bb 100644 --- a/services/databoxedge/mgmt/2019-08-01/databoxedge/shares.go +++ b/services/databoxedge/mgmt/2019-08-01/databoxedge/shares.go @@ -241,6 +241,7 @@ func (client SharesClient) Get(ctx context.Context, deviceName string, name stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.SharesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client SharesClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceNa result.sl, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.SharesClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client SharesClient) listByDataBoxEdgeDeviceNextResults(ctx context.Contex result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.SharesClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-08-01/databoxedge/skus.go b/services/databoxedge/mgmt/2019-08-01/databoxedge/skus.go index 42e866cbfe59..aba5ad8a62a7 100644 --- a/services/databoxedge/mgmt/2019-08-01/databoxedge/skus.go +++ b/services/databoxedge/mgmt/2019-08-01/databoxedge/skus.go @@ -71,6 +71,7 @@ func (client SkusClient) List(ctx context.Context, filter string) (result SkuInf result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.SkusClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/databoxedge/mgmt/2019-08-01/databoxedge/storageaccountcredentials.go b/services/databoxedge/mgmt/2019-08-01/databoxedge/storageaccountcredentials.go index 815c96de6089..2b8f4ed88bab 100644 --- a/services/databoxedge/mgmt/2019-08-01/databoxedge/storageaccountcredentials.go +++ b/services/databoxedge/mgmt/2019-08-01/databoxedge/storageaccountcredentials.go @@ -241,6 +241,7 @@ func (client StorageAccountCredentialsClient) Get(ctx context.Context, deviceNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.StorageAccountCredentialsClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client StorageAccountCredentialsClient) ListByDataBoxEdgeDevice(ctx contex result.sacl, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.StorageAccountCredentialsClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.sacl.hasNextLink() && result.sacl.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client StorageAccountCredentialsClient) listByDataBoxEdgeDeviceNextResults result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.StorageAccountCredentialsClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-08-01/databoxedge/storageaccounts.go b/services/databoxedge/mgmt/2019-08-01/databoxedge/storageaccounts.go index 9ed070beaba1..558b44db527d 100644 --- a/services/databoxedge/mgmt/2019-08-01/databoxedge/storageaccounts.go +++ b/services/databoxedge/mgmt/2019-08-01/databoxedge/storageaccounts.go @@ -236,6 +236,7 @@ func (client StorageAccountsClient) Get(ctx context.Context, deviceName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.StorageAccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -313,6 +314,7 @@ func (client StorageAccountsClient) ListByDataBoxEdgeDevice(ctx context.Context, result.sal, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.StorageAccountsClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.sal.hasNextLink() && result.sal.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +379,7 @@ func (client StorageAccountsClient) listByDataBoxEdgeDeviceNextResults(ctx conte result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.StorageAccountsClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-08-01/databoxedge/triggers.go b/services/databoxedge/mgmt/2019-08-01/databoxedge/triggers.go index bae04851838b..b6ebdb67d056 100644 --- a/services/databoxedge/mgmt/2019-08-01/databoxedge/triggers.go +++ b/services/databoxedge/mgmt/2019-08-01/databoxedge/triggers.go @@ -229,6 +229,7 @@ func (client TriggersClient) Get(ctx context.Context, deviceName string, name st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.TriggersClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client TriggersClient) ListByDataBoxEdgeDevice(ctx context.Context, device result.tl, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.TriggersClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client TriggersClient) listByDataBoxEdgeDeviceNextResults(ctx context.Cont result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.TriggersClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databoxedge/mgmt/2019-08-01/databoxedge/users.go b/services/databoxedge/mgmt/2019-08-01/databoxedge/users.go index 55fe9616af9d..eca86f1f19c3 100644 --- a/services/databoxedge/mgmt/2019-08-01/databoxedge/users.go +++ b/services/databoxedge/mgmt/2019-08-01/databoxedge/users.go @@ -240,6 +240,7 @@ func (client UsersClient) Get(ctx context.Context, deviceName string, name strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.UsersClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client UsersClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceNam result.ul, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.UsersClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.ul.hasNextLink() && result.ul.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client UsersClient) listByDataBoxEdgeDeviceNextResults(ctx context.Context result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.UsersClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databricks/mgmt/2018-04-01/databricks/operations.go b/services/databricks/mgmt/2018-04-01/databricks/operations.go index abb4c820af9d..586de444ea56 100644 --- a/services/databricks/mgmt/2018-04-01/databricks/operations.go +++ b/services/databricks/mgmt/2018-04-01/databricks/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databricks.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databricks.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databricks/mgmt/2018-04-01/databricks/vnetpeering.go b/services/databricks/mgmt/2018-04-01/databricks/vnetpeering.go index 1bc25b319e0e..e893338d0647 100644 --- a/services/databricks/mgmt/2018-04-01/databricks/vnetpeering.go +++ b/services/databricks/mgmt/2018-04-01/databricks/vnetpeering.go @@ -269,6 +269,7 @@ func (client VNetPeeringClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databricks.VNetPeeringClient", "Get", resp, "Failure responding to request") + return } return @@ -357,6 +358,7 @@ func (client VNetPeeringClient) ListByWorkspace(ctx context.Context, resourceGro result.vnpl, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databricks.VNetPeeringClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.vnpl.hasNextLink() && result.vnpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -421,6 +423,7 @@ func (client VNetPeeringClient) listByWorkspaceNextResults(ctx context.Context, result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databricks.VNetPeeringClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/databricks/mgmt/2018-04-01/databricks/workspaces.go b/services/databricks/mgmt/2018-04-01/databricks/workspaces.go index 3cf6d6a35d08..ef33ebcb605d 100644 --- a/services/databricks/mgmt/2018-04-01/databricks/workspaces.go +++ b/services/databricks/mgmt/2018-04-01/databricks/workspaces.go @@ -280,6 +280,7 @@ func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databricks.WorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -363,6 +364,7 @@ func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resource result.wlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databricks.WorkspacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -426,6 +428,7 @@ func (client WorkspacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databricks.WorkspacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -475,6 +478,7 @@ func (client WorkspacesClient) ListBySubscription(ctx context.Context) (result W result.wlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databricks.WorkspacesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -537,6 +541,7 @@ func (client WorkspacesClient) listBySubscriptionNextResults(ctx context.Context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databricks.WorkspacesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/datacatalog/mgmt/2016-03-30/datacatalog/adccatalogs.go b/services/datacatalog/mgmt/2016-03-30/datacatalog/adccatalogs.go index a683d2113cf8..ac85d0119b78 100644 --- a/services/datacatalog/mgmt/2016-03-30/datacatalog/adccatalogs.go +++ b/services/datacatalog/mgmt/2016-03-30/datacatalog/adccatalogs.go @@ -85,6 +85,7 @@ func (client ADCCatalogsClient) CreateOrUpdate(ctx context.Context, resourceGrou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datacatalog.ADCCatalogsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -252,6 +253,7 @@ func (client ADCCatalogsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datacatalog.ADCCatalogsClient", "Get", resp, "Failure responding to request") + return } return @@ -336,6 +338,7 @@ func (client ADCCatalogsClient) ListtByResourceGroup(ctx context.Context, resour result, err = client.ListtByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datacatalog.ADCCatalogsClient", "ListtByResourceGroup", resp, "Failure responding to request") + return } return @@ -420,6 +423,7 @@ func (client ADCCatalogsClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datacatalog.ADCCatalogsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/datacatalog/mgmt/2016-03-30/datacatalog/adcoperations.go b/services/datacatalog/mgmt/2016-03-30/datacatalog/adcoperations.go index 7a57745eeebb..9572690b306b 100644 --- a/services/datacatalog/mgmt/2016-03-30/datacatalog/adcoperations.go +++ b/services/datacatalog/mgmt/2016-03-30/datacatalog/adcoperations.go @@ -70,6 +70,7 @@ func (client ADCOperationsClient) List(ctx context.Context) (result OperationEnt result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datacatalog.ADCOperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/activityruns.go b/services/datafactory/mgmt/2018-06-01/datafactory/activityruns.go index 9a43f07ad039..9475d48629c4 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/activityruns.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/activityruns.go @@ -91,6 +91,7 @@ func (client ActivityRunsClient) QueryByPipelineRun(ctx context.Context, resourc result, err = client.QueryByPipelineRunResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.ActivityRunsClient", "QueryByPipelineRun", resp, "Failure responding to request") + return } return diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/dataflowdebugsession.go b/services/datafactory/mgmt/2018-06-01/datafactory/dataflowdebugsession.go index eefe87276d45..1cc9f3ef594c 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/dataflowdebugsession.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/dataflowdebugsession.go @@ -97,6 +97,7 @@ func (client DataFlowDebugSessionClient) AddDataFlow(ctx context.Context, resour result, err = client.AddDataFlowResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.DataFlowDebugSessionClient", "AddDataFlow", resp, "Failure responding to request") + return } return @@ -280,6 +281,7 @@ func (client DataFlowDebugSessionClient) Delete(ctx context.Context, resourceGro result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.DataFlowDebugSessionClient", "Delete", resp, "Failure responding to request") + return } return @@ -462,6 +464,7 @@ func (client DataFlowDebugSessionClient) QueryByFactory(ctx context.Context, res result.qdfdsr, err = client.QueryByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.DataFlowDebugSessionClient", "QueryByFactory", resp, "Failure responding to request") + return } if result.qdfdsr.hasNextLink() && result.qdfdsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -526,6 +529,7 @@ func (client DataFlowDebugSessionClient) queryByFactoryNextResults(ctx context.C result, err = client.QueryByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.DataFlowDebugSessionClient", "queryByFactoryNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/dataflows.go b/services/datafactory/mgmt/2018-06-01/datafactory/dataflows.go index 21276dbf3e13..3c3cc4a63935 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/dataflows.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/dataflows.go @@ -96,6 +96,7 @@ func (client DataFlowsClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.DataFlowsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -195,6 +196,7 @@ func (client DataFlowsClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.DataFlowsClient", "Delete", resp, "Failure responding to request") + return } return @@ -289,6 +291,7 @@ func (client DataFlowsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.DataFlowsClient", "Get", resp, "Failure responding to request") + return } return @@ -382,6 +385,7 @@ func (client DataFlowsClient) ListByFactory(ctx context.Context, resourceGroupNa result.dflr, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.DataFlowsClient", "ListByFactory", resp, "Failure responding to request") + return } if result.dflr.hasNextLink() && result.dflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -446,6 +450,7 @@ func (client DataFlowsClient) listByFactoryNextResults(ctx context.Context, last result, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.DataFlowsClient", "listByFactoryNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/datasets.go b/services/datafactory/mgmt/2018-06-01/datafactory/datasets.go index 2e17dfc627b1..bd2378259f66 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/datasets.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/datasets.go @@ -101,6 +101,7 @@ func (client DatasetsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.DatasetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -200,6 +201,7 @@ func (client DatasetsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.DatasetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -294,6 +296,7 @@ func (client DatasetsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.DatasetsClient", "Get", resp, "Failure responding to request") + return } return @@ -387,6 +390,7 @@ func (client DatasetsClient) ListByFactory(ctx context.Context, resourceGroupNam result.dlr, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.DatasetsClient", "ListByFactory", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -451,6 +455,7 @@ func (client DatasetsClient) listByFactoryNextResults(ctx context.Context, lastR result, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.DatasetsClient", "listByFactoryNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/exposurecontrol.go b/services/datafactory/mgmt/2018-06-01/datafactory/exposurecontrol.go index c5b52c8e8682..e253dbfa09ed 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/exposurecontrol.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/exposurecontrol.go @@ -74,6 +74,7 @@ func (client ExposureControlClient) GetFeatureValue(ctx context.Context, locatio result, err = client.GetFeatureValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.ExposureControlClient", "GetFeatureValue", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ExposureControlClient) GetFeatureValueByFactory(ctx context.Context result, err = client.GetFeatureValueByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.ExposureControlClient", "GetFeatureValueByFactory", resp, "Failure responding to request") + return } return @@ -255,6 +257,7 @@ func (client ExposureControlClient) QueryFeatureValuesByFactory(ctx context.Cont result, err = client.QueryFeatureValuesByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.ExposureControlClient", "QueryFeatureValuesByFactory", resp, "Failure responding to request") + return } return diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/factories.go b/services/datafactory/mgmt/2018-06-01/datafactory/factories.go index 64202c3ef9c1..24f959133801 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/factories.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/factories.go @@ -85,6 +85,7 @@ func (client FactoriesClient) ConfigureFactoryRepo(ctx context.Context, location result, err = client.ConfigureFactoryRepoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "ConfigureFactoryRepo", resp, "Failure responding to request") + return } return @@ -187,6 +188,7 @@ func (client FactoriesClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client FactoriesClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "Delete", resp, "Failure responding to request") + return } return @@ -368,6 +371,7 @@ func (client FactoriesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "Get", resp, "Failure responding to request") + return } return @@ -460,6 +464,7 @@ func (client FactoriesClient) GetDataPlaneAccess(ctx context.Context, resourceGr result, err = client.GetDataPlaneAccessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "GetDataPlaneAccess", resp, "Failure responding to request") + return } return @@ -553,6 +558,7 @@ func (client FactoriesClient) GetGitHubAccessToken(ctx context.Context, resource result, err = client.GetGitHubAccessTokenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "GetGitHubAccessToken", resp, "Failure responding to request") + return } return @@ -628,6 +634,7 @@ func (client FactoriesClient) List(ctx context.Context) (result FactoryListRespo result.flr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "List", resp, "Failure responding to request") + return } if result.flr.hasNextLink() && result.flr.IsEmpty() { err = result.NextWithContext(ctx) @@ -690,6 +697,7 @@ func (client FactoriesClient) listNextResults(ctx context.Context, lastResults F result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -749,6 +757,7 @@ func (client FactoriesClient) ListByResourceGroup(ctx context.Context, resourceG result.flr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.flr.hasNextLink() && result.flr.IsEmpty() { err = result.NextWithContext(ctx) @@ -812,6 +821,7 @@ func (client FactoriesClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -876,6 +886,7 @@ func (client FactoriesClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/integrationruntimenodes.go b/services/datafactory/mgmt/2018-06-01/datafactory/integrationruntimenodes.go index e33770d87475..9b8893277ce4 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/integrationruntimenodes.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/integrationruntimenodes.go @@ -97,6 +97,7 @@ func (client IntegrationRuntimeNodesClient) Delete(ctx context.Context, resource result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimeNodesClient", "Delete", resp, "Failure responding to request") + return } return @@ -195,6 +196,7 @@ func (client IntegrationRuntimeNodesClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimeNodesClient", "Get", resp, "Failure responding to request") + return } return @@ -294,6 +296,7 @@ func (client IntegrationRuntimeNodesClient) GetIPAddress(ctx context.Context, re result, err = client.GetIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimeNodesClient", "GetIPAddress", resp, "Failure responding to request") + return } return @@ -394,6 +397,7 @@ func (client IntegrationRuntimeNodesClient) Update(ctx context.Context, resource result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimeNodesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/integrationruntimeobjectmetadata.go b/services/datafactory/mgmt/2018-06-01/datafactory/integrationruntimeobjectmetadata.go index 91eb4879fe36..34d5293e45cf 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/integrationruntimeobjectmetadata.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/integrationruntimeobjectmetadata.go @@ -93,6 +93,7 @@ func (client IntegrationRuntimeObjectMetadataClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimeObjectMetadataClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/integrationruntimes.go b/services/datafactory/mgmt/2018-06-01/datafactory/integrationruntimes.go index 5b8e2f695d5a..ffe500a1d3db 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/integrationruntimes.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/integrationruntimes.go @@ -93,6 +93,7 @@ func (client IntegrationRuntimesClient) CreateLinkedIntegrationRuntime(ctx conte result, err = client.CreateLinkedIntegrationRuntimeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "CreateLinkedIntegrationRuntime", resp, "Failure responding to request") + return } return @@ -193,6 +194,7 @@ func (client IntegrationRuntimesClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -292,6 +294,7 @@ func (client IntegrationRuntimesClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "Delete", resp, "Failure responding to request") + return } return @@ -386,6 +389,7 @@ func (client IntegrationRuntimesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "Get", resp, "Failure responding to request") + return } return @@ -484,6 +488,7 @@ func (client IntegrationRuntimesClient) GetConnectionInfo(ctx context.Context, r result, err = client.GetConnectionInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "GetConnectionInfo", resp, "Failure responding to request") + return } return @@ -578,6 +583,7 @@ func (client IntegrationRuntimesClient) GetMonitoringData(ctx context.Context, r result, err = client.GetMonitoringDataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "GetMonitoringData", resp, "Failure responding to request") + return } return @@ -671,6 +677,7 @@ func (client IntegrationRuntimesClient) GetStatus(ctx context.Context, resourceG result, err = client.GetStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "GetStatus", resp, "Failure responding to request") + return } return @@ -764,6 +771,7 @@ func (client IntegrationRuntimesClient) ListAuthKeys(ctx context.Context, resour result, err = client.ListAuthKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "ListAuthKeys", resp, "Failure responding to request") + return } return @@ -853,6 +861,7 @@ func (client IntegrationRuntimesClient) ListByFactory(ctx context.Context, resou result.irlr, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "ListByFactory", resp, "Failure responding to request") + return } if result.irlr.hasNextLink() && result.irlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -917,6 +926,7 @@ func (client IntegrationRuntimesClient) listByFactoryNextResults(ctx context.Con result, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "listByFactoryNextResults", resp, "Failure responding to next results request") + return } return } @@ -986,6 +996,7 @@ func (client IntegrationRuntimesClient) RegenerateAuthKey(ctx context.Context, r result, err = client.RegenerateAuthKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "RegenerateAuthKey", resp, "Failure responding to request") + return } return @@ -1084,6 +1095,7 @@ func (client IntegrationRuntimesClient) RemoveLinks(ctx context.Context, resourc result, err = client.RemoveLinksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "RemoveLinks", resp, "Failure responding to request") + return } return @@ -1366,6 +1378,7 @@ func (client IntegrationRuntimesClient) SyncCredentials(ctx context.Context, res result, err = client.SyncCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "SyncCredentials", resp, "Failure responding to request") + return } return @@ -1459,6 +1472,7 @@ func (client IntegrationRuntimesClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "Update", resp, "Failure responding to request") + return } return @@ -1554,6 +1568,7 @@ func (client IntegrationRuntimesClient) Upgrade(ctx context.Context, resourceGro result, err = client.UpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "Upgrade", resp, "Failure responding to request") + return } return diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/linkedservices.go b/services/datafactory/mgmt/2018-06-01/datafactory/linkedservices.go index e638c0334a7d..f093a1ff144c 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/linkedservices.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/linkedservices.go @@ -101,6 +101,7 @@ func (client LinkedServicesClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.LinkedServicesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -200,6 +201,7 @@ func (client LinkedServicesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.LinkedServicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -294,6 +296,7 @@ func (client LinkedServicesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.LinkedServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -387,6 +390,7 @@ func (client LinkedServicesClient) ListByFactory(ctx context.Context, resourceGr result.lslr, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.LinkedServicesClient", "ListByFactory", resp, "Failure responding to request") + return } if result.lslr.hasNextLink() && result.lslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -451,6 +455,7 @@ func (client LinkedServicesClient) listByFactoryNextResults(ctx context.Context, result, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.LinkedServicesClient", "listByFactoryNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/managedprivateendpoints.go b/services/datafactory/mgmt/2018-06-01/datafactory/managedprivateendpoints.go index e517991e1cb0..ded336867cc9 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/managedprivateendpoints.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/managedprivateendpoints.go @@ -102,6 +102,7 @@ func (client ManagedPrivateEndpointsClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.ManagedPrivateEndpointsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -207,6 +208,7 @@ func (client ManagedPrivateEndpointsClient) Delete(ctx context.Context, resource result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.ManagedPrivateEndpointsClient", "Delete", resp, "Failure responding to request") + return } return @@ -307,6 +309,7 @@ func (client ManagedPrivateEndpointsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.ManagedPrivateEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -406,6 +409,7 @@ func (client ManagedPrivateEndpointsClient) ListByFactory(ctx context.Context, r result.mpelr, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.ManagedPrivateEndpointsClient", "ListByFactory", resp, "Failure responding to request") + return } if result.mpelr.hasNextLink() && result.mpelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -471,6 +475,7 @@ func (client ManagedPrivateEndpointsClient) listByFactoryNextResults(ctx context result, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.ManagedPrivateEndpointsClient", "listByFactoryNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/managedvirtualnetworks.go b/services/datafactory/mgmt/2018-06-01/datafactory/managedvirtualnetworks.go index 509133bbee35..7dd2042f54a0 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/managedvirtualnetworks.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/managedvirtualnetworks.go @@ -97,6 +97,7 @@ func (client ManagedVirtualNetworksClient) CreateOrUpdate(ctx context.Context, r result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.ManagedVirtualNetworksClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -198,6 +199,7 @@ func (client ManagedVirtualNetworksClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.ManagedVirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -291,6 +293,7 @@ func (client ManagedVirtualNetworksClient) ListByFactory(ctx context.Context, re result.mvnlr, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.ManagedVirtualNetworksClient", "ListByFactory", resp, "Failure responding to request") + return } if result.mvnlr.hasNextLink() && result.mvnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -355,6 +358,7 @@ func (client ManagedVirtualNetworksClient) listByFactoryNextResults(ctx context. result, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.ManagedVirtualNetworksClient", "listByFactoryNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/operations.go b/services/datafactory/mgmt/2018-06-01/datafactory/operations.go index c9f76c10df7a..389f786c718f 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/operations.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/pipelineruns.go b/services/datafactory/mgmt/2018-06-01/datafactory/pipelineruns.go index 2682dc9225a3..c5f5b1107214 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/pipelineruns.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/pipelineruns.go @@ -88,6 +88,7 @@ func (client PipelineRunsClient) Cancel(ctx context.Context, resourceGroupName s result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.PipelineRunsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client PipelineRunsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.PipelineRunsClient", "Get", resp, "Failure responding to request") + return } return @@ -271,6 +273,7 @@ func (client PipelineRunsClient) QueryByFactory(ctx context.Context, resourceGro result, err = client.QueryByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.PipelineRunsClient", "QueryByFactory", resp, "Failure responding to request") + return } return diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/pipelines.go b/services/datafactory/mgmt/2018-06-01/datafactory/pipelines.go index 6d3da837a94c..1c0d920190f1 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/pipelines.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/pipelines.go @@ -99,6 +99,7 @@ func (client PipelinesClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -208,6 +209,7 @@ func (client PipelinesClient) CreateRun(ctx context.Context, resourceGroupName s result, err = client.CreateRunResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "CreateRun", resp, "Failure responding to request") + return } return @@ -318,6 +320,7 @@ func (client PipelinesClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "Delete", resp, "Failure responding to request") + return } return @@ -412,6 +415,7 @@ func (client PipelinesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "Get", resp, "Failure responding to request") + return } return @@ -505,6 +509,7 @@ func (client PipelinesClient) ListByFactory(ctx context.Context, resourceGroupNa result.plr, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "ListByFactory", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -569,6 +574,7 @@ func (client PipelinesClient) listByFactoryNextResults(ctx context.Context, last result, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "listByFactoryNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/triggerruns.go b/services/datafactory/mgmt/2018-06-01/datafactory/triggerruns.go index 234ca92bcf5f..3fb2ca329315 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/triggerruns.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/triggerruns.go @@ -92,6 +92,7 @@ func (client TriggerRunsClient) Cancel(ctx context.Context, resourceGroupName st result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.TriggerRunsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -184,6 +185,7 @@ func (client TriggerRunsClient) QueryByFactory(ctx context.Context, resourceGrou result, err = client.QueryByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.TriggerRunsClient", "QueryByFactory", resp, "Failure responding to request") + return } return @@ -279,6 +281,7 @@ func (client TriggerRunsClient) Rerun(ctx context.Context, resourceGroupName str result, err = client.RerunResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.TriggerRunsClient", "Rerun", resp, "Failure responding to request") + return } return diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/triggers.go b/services/datafactory/mgmt/2018-06-01/datafactory/triggers.go index 4742e9567dd4..d02cc2ab46fc 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/triggers.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/triggers.go @@ -96,6 +96,7 @@ func (client TriggersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -195,6 +196,7 @@ func (client TriggersClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "Delete", resp, "Failure responding to request") + return } return @@ -289,6 +291,7 @@ func (client TriggersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "Get", resp, "Failure responding to request") + return } return @@ -386,6 +389,7 @@ func (client TriggersClient) GetEventSubscriptionStatus(ctx context.Context, res result, err = client.GetEventSubscriptionStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "GetEventSubscriptionStatus", resp, "Failure responding to request") + return } return @@ -475,6 +479,7 @@ func (client TriggersClient) ListByFactory(ctx context.Context, resourceGroupNam result.tlr, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "ListByFactory", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -539,6 +544,7 @@ func (client TriggersClient) listByFactoryNextResults(ctx context.Context, lastR result, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "listByFactoryNextResults", resp, "Failure responding to next results request") + return } return } @@ -603,6 +609,7 @@ func (client TriggersClient) QueryByFactory(ctx context.Context, resourceGroupNa result, err = client.QueryByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "QueryByFactory", resp, "Failure responding to request") + return } return diff --git a/services/datalake/analytics/2016-11-01-preview/catalog/catalog.go b/services/datalake/analytics/2016-11-01-preview/catalog/catalog.go index 734491eaaa18..17c036e22468 100644 --- a/services/datalake/analytics/2016-11-01-preview/catalog/catalog.go +++ b/services/datalake/analytics/2016-11-01-preview/catalog/catalog.go @@ -78,6 +78,7 @@ func (client Client) CreateCredential(ctx context.Context, accountName string, d result, err = client.CreateCredentialResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "CreateCredential", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client Client) CreateSecret(ctx context.Context, accountName string, datab result, err = client.CreateSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "CreateSecret", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client Client) DeleteAllSecrets(ctx context.Context, accountName string, d result, err = client.DeleteAllSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "DeleteAllSecrets", resp, "Failure responding to request") + return } return @@ -330,6 +333,7 @@ func (client Client) DeleteCredential(ctx context.Context, accountName string, d result, err = client.DeleteCredentialResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "DeleteCredential", resp, "Failure responding to request") + return } return @@ -420,6 +424,7 @@ func (client Client) DeleteSecret(ctx context.Context, accountName string, datab result, err = client.DeleteSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "DeleteSecret", resp, "Failure responding to request") + return } return @@ -499,6 +504,7 @@ func (client Client) GetAssembly(ctx context.Context, accountName string, databa result, err = client.GetAssemblyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetAssembly", resp, "Failure responding to request") + return } return @@ -579,6 +585,7 @@ func (client Client) GetCredential(ctx context.Context, accountName string, data result, err = client.GetCredentialResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetCredential", resp, "Failure responding to request") + return } return @@ -658,6 +665,7 @@ func (client Client) GetDatabase(ctx context.Context, accountName string, databa result, err = client.GetDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetDatabase", resp, "Failure responding to request") + return } return @@ -737,6 +745,7 @@ func (client Client) GetExternalDataSource(ctx context.Context, accountName stri result, err = client.GetExternalDataSourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetExternalDataSource", resp, "Failure responding to request") + return } return @@ -818,6 +827,7 @@ func (client Client) GetPackage(ctx context.Context, accountName string, databas result, err = client.GetPackageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetPackage", resp, "Failure responding to request") + return } return @@ -900,6 +910,7 @@ func (client Client) GetProcedure(ctx context.Context, accountName string, datab result, err = client.GetProcedureResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetProcedure", resp, "Failure responding to request") + return } return @@ -981,6 +992,7 @@ func (client Client) GetSchema(ctx context.Context, accountName string, database result, err = client.GetSchemaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetSchema", resp, "Failure responding to request") + return } return @@ -1062,6 +1074,7 @@ func (client Client) GetSecret(ctx context.Context, accountName string, database result, err = client.GetSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetSecret", resp, "Failure responding to request") + return } return @@ -1143,6 +1156,7 @@ func (client Client) GetTable(ctx context.Context, accountName string, databaseN result, err = client.GetTableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetTable", resp, "Failure responding to request") + return } return @@ -1226,6 +1240,7 @@ func (client Client) GetTablePartition(ctx context.Context, accountName string, result, err = client.GetTablePartitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetTablePartition", resp, "Failure responding to request") + return } return @@ -1310,6 +1325,7 @@ func (client Client) GetTableStatistic(ctx context.Context, accountName string, result, err = client.GetTableStatisticResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetTableStatistic", resp, "Failure responding to request") + return } return @@ -1393,6 +1409,7 @@ func (client Client) GetTableType(ctx context.Context, accountName string, datab result, err = client.GetTableTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetTableType", resp, "Failure responding to request") + return } return @@ -1475,6 +1492,7 @@ func (client Client) GetTableValuedFunction(ctx context.Context, accountName str result, err = client.GetTableValuedFunctionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetTableValuedFunction", resp, "Failure responding to request") + return } return @@ -1557,6 +1575,7 @@ func (client Client) GetView(ctx context.Context, accountName string, databaseNa result, err = client.GetViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetView", resp, "Failure responding to request") + return } return @@ -1644,6 +1663,7 @@ func (client Client) GrantACL(ctx context.Context, accountName string, parameter result, err = client.GrantACLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GrantACL", resp, "Failure responding to request") + return } return @@ -1727,6 +1747,7 @@ func (client Client) GrantACLToDatabase(ctx context.Context, accountName string, result, err = client.GrantACLToDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GrantACLToDatabase", resp, "Failure responding to request") + return } return @@ -1827,6 +1848,7 @@ func (client Client) ListAcls(ctx context.Context, accountName string, filter st result.al, err = client.ListAclsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListAcls", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -1908,6 +1930,7 @@ func (client Client) listAclsNextResults(ctx context.Context, lastResults ACLLis result, err = client.ListAclsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listAclsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1981,6 +2004,7 @@ func (client Client) ListAclsByDatabase(ctx context.Context, accountName string, result.al, err = client.ListAclsByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListAclsByDatabase", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -2066,6 +2090,7 @@ func (client Client) listAclsByDatabaseNextResults(ctx context.Context, lastResu result, err = client.ListAclsByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listAclsByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } @@ -2138,6 +2163,7 @@ func (client Client) ListAssemblies(ctx context.Context, accountName string, dat result.ual, err = client.ListAssembliesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListAssemblies", resp, "Failure responding to request") + return } if result.ual.hasNextLink() && result.ual.IsEmpty() { err = result.NextWithContext(ctx) @@ -2223,6 +2249,7 @@ func (client Client) listAssembliesNextResults(ctx context.Context, lastResults result, err = client.ListAssembliesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listAssembliesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2295,6 +2322,7 @@ func (client Client) ListCredentials(ctx context.Context, accountName string, da result.ucl, err = client.ListCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListCredentials", resp, "Failure responding to request") + return } if result.ucl.hasNextLink() && result.ucl.IsEmpty() { err = result.NextWithContext(ctx) @@ -2380,6 +2408,7 @@ func (client Client) listCredentialsNextResults(ctx context.Context, lastResults result, err = client.ListCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listCredentialsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2451,6 +2480,7 @@ func (client Client) ListDatabases(ctx context.Context, accountName string, filt result.udl, err = client.ListDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListDatabases", resp, "Failure responding to request") + return } if result.udl.hasNextLink() && result.udl.IsEmpty() { err = result.NextWithContext(ctx) @@ -2532,6 +2562,7 @@ func (client Client) listDatabasesNextResults(ctx context.Context, lastResults U result, err = client.ListDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listDatabasesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2604,6 +2635,7 @@ func (client Client) ListExternalDataSources(ctx context.Context, accountName st result.uedsl, err = client.ListExternalDataSourcesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListExternalDataSources", resp, "Failure responding to request") + return } if result.uedsl.hasNextLink() && result.uedsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -2689,6 +2721,7 @@ func (client Client) listExternalDataSourcesNextResults(ctx context.Context, las result, err = client.ListExternalDataSourcesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listExternalDataSourcesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2762,6 +2795,7 @@ func (client Client) ListPackages(ctx context.Context, accountName string, datab result.upl, err = client.ListPackagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListPackages", resp, "Failure responding to request") + return } if result.upl.hasNextLink() && result.upl.IsEmpty() { err = result.NextWithContext(ctx) @@ -2848,6 +2882,7 @@ func (client Client) listPackagesNextResults(ctx context.Context, lastResults US result, err = client.ListPackagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listPackagesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2921,6 +2956,7 @@ func (client Client) ListProcedures(ctx context.Context, accountName string, dat result.upl, err = client.ListProceduresResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListProcedures", resp, "Failure responding to request") + return } if result.upl.hasNextLink() && result.upl.IsEmpty() { err = result.NextWithContext(ctx) @@ -3007,6 +3043,7 @@ func (client Client) listProceduresNextResults(ctx context.Context, lastResults result, err = client.ListProceduresResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listProceduresNextResults", resp, "Failure responding to next results request") + return } return } @@ -3079,6 +3116,7 @@ func (client Client) ListSchemas(ctx context.Context, accountName string, databa result.usl, err = client.ListSchemasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListSchemas", resp, "Failure responding to request") + return } if result.usl.hasNextLink() && result.usl.IsEmpty() { err = result.NextWithContext(ctx) @@ -3164,6 +3202,7 @@ func (client Client) listSchemasNextResults(ctx context.Context, lastResults USQ result, err = client.ListSchemasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listSchemasNextResults", resp, "Failure responding to next results request") + return } return } @@ -3238,6 +3277,7 @@ func (client Client) ListTableFragments(ctx context.Context, accountName string, result.utfl, err = client.ListTableFragmentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListTableFragments", resp, "Failure responding to request") + return } if result.utfl.hasNextLink() && result.utfl.IsEmpty() { err = result.NextWithContext(ctx) @@ -3325,6 +3365,7 @@ func (client Client) listTableFragmentsNextResults(ctx context.Context, lastResu result, err = client.ListTableFragmentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listTableFragmentsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3399,6 +3440,7 @@ func (client Client) ListTablePartitions(ctx context.Context, accountName string result.utpl, err = client.ListTablePartitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListTablePartitions", resp, "Failure responding to request") + return } if result.utpl.hasNextLink() && result.utpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -3486,6 +3528,7 @@ func (client Client) listTablePartitionsNextResults(ctx context.Context, lastRes result, err = client.ListTablePartitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listTablePartitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3562,6 +3605,7 @@ func (client Client) ListTables(ctx context.Context, accountName string, databas result.utl, err = client.ListTablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListTables", resp, "Failure responding to request") + return } if result.utl.hasNextLink() && result.utl.IsEmpty() { err = result.NextWithContext(ctx) @@ -3653,6 +3697,7 @@ func (client Client) listTablesNextResults(ctx context.Context, lastResults USQL result, err = client.ListTablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listTablesNextResults", resp, "Failure responding to next results request") + return } return } @@ -3728,6 +3773,7 @@ func (client Client) ListTablesByDatabase(ctx context.Context, accountName strin result.utl, err = client.ListTablesByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListTablesByDatabase", resp, "Failure responding to request") + return } if result.utl.hasNextLink() && result.utl.IsEmpty() { err = result.NextWithContext(ctx) @@ -3818,6 +3864,7 @@ func (client Client) listTablesByDatabaseNextResults(ctx context.Context, lastRe result, err = client.ListTablesByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listTablesByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } @@ -3892,6 +3939,7 @@ func (client Client) ListTableStatistics(ctx context.Context, accountName string result.utsl, err = client.ListTableStatisticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListTableStatistics", resp, "Failure responding to request") + return } if result.utsl.hasNextLink() && result.utsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -3979,6 +4027,7 @@ func (client Client) listTableStatisticsNextResults(ctx context.Context, lastRes result, err = client.ListTableStatisticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listTableStatisticsNextResults", resp, "Failure responding to next results request") + return } return } @@ -4052,6 +4101,7 @@ func (client Client) ListTableStatisticsByDatabase(ctx context.Context, accountN result.utsl, err = client.ListTableStatisticsByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListTableStatisticsByDatabase", resp, "Failure responding to request") + return } if result.utsl.hasNextLink() && result.utsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -4137,6 +4187,7 @@ func (client Client) listTableStatisticsByDatabaseNextResults(ctx context.Contex result, err = client.ListTableStatisticsByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listTableStatisticsByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } @@ -4211,6 +4262,7 @@ func (client Client) ListTableStatisticsByDatabaseAndSchema(ctx context.Context, result.utsl, err = client.ListTableStatisticsByDatabaseAndSchemaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListTableStatisticsByDatabaseAndSchema", resp, "Failure responding to request") + return } if result.utsl.hasNextLink() && result.utsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -4297,6 +4349,7 @@ func (client Client) listTableStatisticsByDatabaseAndSchemaNextResults(ctx conte result, err = client.ListTableStatisticsByDatabaseAndSchemaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listTableStatisticsByDatabaseAndSchemaNextResults", resp, "Failure responding to next results request") + return } return } @@ -4370,6 +4423,7 @@ func (client Client) ListTableTypes(ctx context.Context, accountName string, dat result.uttl, err = client.ListTableTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListTableTypes", resp, "Failure responding to request") + return } if result.uttl.hasNextLink() && result.uttl.IsEmpty() { err = result.NextWithContext(ctx) @@ -4456,6 +4510,7 @@ func (client Client) listTableTypesNextResults(ctx context.Context, lastResults result, err = client.ListTableTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listTableTypesNextResults", resp, "Failure responding to next results request") + return } return } @@ -4529,6 +4584,7 @@ func (client Client) ListTableValuedFunctions(ctx context.Context, accountName s result.utvfl, err = client.ListTableValuedFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListTableValuedFunctions", resp, "Failure responding to request") + return } if result.utvfl.hasNextLink() && result.utvfl.IsEmpty() { err = result.NextWithContext(ctx) @@ -4615,6 +4671,7 @@ func (client Client) listTableValuedFunctionsNextResults(ctx context.Context, la result, err = client.ListTableValuedFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listTableValuedFunctionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -4688,6 +4745,7 @@ func (client Client) ListTableValuedFunctionsByDatabase(ctx context.Context, acc result.utvfl, err = client.ListTableValuedFunctionsByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListTableValuedFunctionsByDatabase", resp, "Failure responding to request") + return } if result.utvfl.hasNextLink() && result.utvfl.IsEmpty() { err = result.NextWithContext(ctx) @@ -4773,6 +4831,7 @@ func (client Client) listTableValuedFunctionsByDatabaseNextResults(ctx context.C result, err = client.ListTableValuedFunctionsByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listTableValuedFunctionsByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } @@ -4846,6 +4905,7 @@ func (client Client) ListTypes(ctx context.Context, accountName string, database result.utl, err = client.ListTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListTypes", resp, "Failure responding to request") + return } if result.utl.hasNextLink() && result.utl.IsEmpty() { err = result.NextWithContext(ctx) @@ -4932,6 +4992,7 @@ func (client Client) listTypesNextResults(ctx context.Context, lastResults USQLT result, err = client.ListTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listTypesNextResults", resp, "Failure responding to next results request") + return } return } @@ -5005,6 +5066,7 @@ func (client Client) ListViews(ctx context.Context, accountName string, database result.uvl, err = client.ListViewsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListViews", resp, "Failure responding to request") + return } if result.uvl.hasNextLink() && result.uvl.IsEmpty() { err = result.NextWithContext(ctx) @@ -5091,6 +5153,7 @@ func (client Client) listViewsNextResults(ctx context.Context, lastResults USQLV result, err = client.ListViewsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listViewsNextResults", resp, "Failure responding to next results request") + return } return } @@ -5163,6 +5226,7 @@ func (client Client) ListViewsByDatabase(ctx context.Context, accountName string result.uvl, err = client.ListViewsByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListViewsByDatabase", resp, "Failure responding to request") + return } if result.uvl.hasNextLink() && result.uvl.IsEmpty() { err = result.NextWithContext(ctx) @@ -5248,6 +5312,7 @@ func (client Client) listViewsByDatabaseNextResults(ctx context.Context, lastRes result, err = client.ListViewsByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listViewsByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } @@ -5304,6 +5369,7 @@ func (client Client) PreviewTable(ctx context.Context, accountName string, datab result, err = client.PreviewTableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "PreviewTable", resp, "Failure responding to request") + return } return @@ -5396,6 +5462,7 @@ func (client Client) PreviewTablePartition(ctx context.Context, accountName stri result, err = client.PreviewTablePartitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "PreviewTablePartition", resp, "Failure responding to request") + return } return @@ -5490,6 +5557,7 @@ func (client Client) RevokeACL(ctx context.Context, accountName string, paramete result, err = client.RevokeACLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "RevokeACL", resp, "Failure responding to request") + return } return @@ -5574,6 +5642,7 @@ func (client Client) RevokeACLFromDatabase(ctx context.Context, accountName stri result, err = client.RevokeACLFromDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "RevokeACLFromDatabase", resp, "Failure responding to request") + return } return @@ -5656,6 +5725,7 @@ func (client Client) UpdateCredential(ctx context.Context, accountName string, d result, err = client.UpdateCredentialResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "UpdateCredential", resp, "Failure responding to request") + return } return @@ -5739,6 +5809,7 @@ func (client Client) UpdateSecret(ctx context.Context, accountName string, datab result, err = client.UpdateSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "UpdateSecret", resp, "Failure responding to request") + return } return diff --git a/services/datalake/analytics/2016-11-01/job/job.go b/services/datalake/analytics/2016-11-01/job/job.go index 046d65d2ae09..d38afaa19a3a 100644 --- a/services/datalake/analytics/2016-11-01/job/job.go +++ b/services/datalake/analytics/2016-11-01/job/job.go @@ -69,6 +69,7 @@ func (client Client) Build(ctx context.Context, accountName string, parameters B result, err = client.BuildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "Build", resp, "Failure responding to request") + return } return @@ -145,6 +146,7 @@ func (client Client) Cancel(ctx context.Context, accountName string, jobIdentity result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "Cancel", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client Client) Create(ctx context.Context, accountName string, jobIdentity result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "Create", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client Client) Get(ctx context.Context, accountName string, jobIdentity uu result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "Get", resp, "Failure responding to request") + return } return @@ -394,6 +398,7 @@ func (client Client) GetDebugDataPath(ctx context.Context, accountName string, j result, err = client.GetDebugDataPathResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "GetDebugDataPath", resp, "Failure responding to request") + return } return @@ -472,6 +477,7 @@ func (client Client) GetStatistics(ctx context.Context, accountName string, jobI result, err = client.GetStatisticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "GetStatistics", resp, "Failure responding to request") + return } return @@ -571,6 +577,7 @@ func (client Client) List(ctx context.Context, accountName string, filter string result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -652,6 +659,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults InfoListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/datalake/analytics/2016-11-01/job/pipeline.go b/services/datalake/analytics/2016-11-01/job/pipeline.go index 01f335561aae..a1e0ac4401e2 100644 --- a/services/datalake/analytics/2016-11-01/job/pipeline.go +++ b/services/datalake/analytics/2016-11-01/job/pipeline.go @@ -72,6 +72,7 @@ func (client PipelineClient) Get(ctx context.Context, accountName string, pipeli result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.PipelineClient", "Get", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client PipelineClient) List(ctx context.Context, accountName string, start result.pilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.PipelineClient", "List", resp, "Failure responding to request") + return } if result.pilr.hasNextLink() && result.pilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -229,6 +231,7 @@ func (client PipelineClient) listNextResults(ctx context.Context, lastResults Pi result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.PipelineClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/datalake/analytics/2016-11-01/job/recurrence.go b/services/datalake/analytics/2016-11-01/job/recurrence.go index c2d0a38942fc..f19c705bba48 100644 --- a/services/datalake/analytics/2016-11-01/job/recurrence.go +++ b/services/datalake/analytics/2016-11-01/job/recurrence.go @@ -72,6 +72,7 @@ func (client RecurrenceClient) Get(ctx context.Context, accountName string, recu result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.RecurrenceClient", "Get", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client RecurrenceClient) List(ctx context.Context, accountName string, sta result.rilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.RecurrenceClient", "List", resp, "Failure responding to request") + return } if result.rilr.hasNextLink() && result.rilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -229,6 +231,7 @@ func (client RecurrenceClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.RecurrenceClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/datalake/analytics/mgmt/2016-11-01/account/accounts.go b/services/datalake/analytics/mgmt/2016-11-01/account/accounts.go index 4741b0735a1c..d689792da231 100644 --- a/services/datalake/analytics/mgmt/2016-11-01/account/accounts.go +++ b/services/datalake/analytics/mgmt/2016-11-01/account/accounts.go @@ -80,6 +80,7 @@ func (client AccountsClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.AccountsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -331,6 +332,7 @@ func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.AccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -426,6 +428,7 @@ func (client AccountsClient) List(ctx context.Context, filter string, top *int32 result.dlaalr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.AccountsClient", "List", resp, "Failure responding to request") + return } if result.dlaalr.hasNextLink() && result.dlaalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -506,6 +509,7 @@ func (client AccountsClient) listNextResults(ctx context.Context, lastResults Da result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.AccountsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -578,6 +582,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result.dlaalr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dlaalr.hasNextLink() && result.dlaalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -659,6 +664,7 @@ func (client AccountsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.AccountsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/datalake/analytics/mgmt/2016-11-01/account/computepolicies.go b/services/datalake/analytics/mgmt/2016-11-01/account/computepolicies.go index 7754755b074a..cb588c8e5cb6 100644 --- a/services/datalake/analytics/mgmt/2016-11-01/account/computepolicies.go +++ b/services/datalake/analytics/mgmt/2016-11-01/account/computepolicies.go @@ -89,6 +89,7 @@ func (client ComputePoliciesClient) CreateOrUpdate(ctx context.Context, resource result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.ComputePoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client ComputePoliciesClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.ComputePoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client ComputePoliciesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.ComputePoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +325,7 @@ func (client ComputePoliciesClient) ListByAccount(ctx context.Context, resourceG result.cplr, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.ComputePoliciesClient", "ListByAccount", resp, "Failure responding to request") + return } if result.cplr.hasNextLink() && result.cplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +390,7 @@ func (client ComputePoliciesClient) listByAccountNextResults(ctx context.Context result, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.ComputePoliciesClient", "listByAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -439,6 +444,7 @@ func (client ComputePoliciesClient) Update(ctx context.Context, resourceGroupNam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.ComputePoliciesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/datalake/analytics/mgmt/2016-11-01/account/datalakestoreaccounts.go b/services/datalake/analytics/mgmt/2016-11-01/account/datalakestoreaccounts.go index e250655e0288..910e68786906 100644 --- a/services/datalake/analytics/mgmt/2016-11-01/account/datalakestoreaccounts.go +++ b/services/datalake/analytics/mgmt/2016-11-01/account/datalakestoreaccounts.go @@ -76,6 +76,7 @@ func (client DataLakeStoreAccountsClient) Add(ctx context.Context, resourceGroup result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.DataLakeStoreAccountsClient", "Add", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client DataLakeStoreAccountsClient) Delete(ctx context.Context, resourceGr result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.DataLakeStoreAccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client DataLakeStoreAccountsClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.DataLakeStoreAccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -331,6 +334,7 @@ func (client DataLakeStoreAccountsClient) ListByAccount(ctx context.Context, res result.dlsailr, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.DataLakeStoreAccountsClient", "ListByAccount", resp, "Failure responding to request") + return } if result.dlsailr.hasNextLink() && result.dlsailr.IsEmpty() { err = result.NextWithContext(ctx) @@ -413,6 +417,7 @@ func (client DataLakeStoreAccountsClient) listByAccountNextResults(ctx context.C result, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.DataLakeStoreAccountsClient", "listByAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/datalake/analytics/mgmt/2016-11-01/account/firewallrules.go b/services/datalake/analytics/mgmt/2016-11-01/account/firewallrules.go index d157ad25649f..5fa0a4a65f29 100644 --- a/services/datalake/analytics/mgmt/2016-11-01/account/firewallrules.go +++ b/services/datalake/analytics/mgmt/2016-11-01/account/firewallrules.go @@ -85,6 +85,7 @@ func (client FirewallRulesClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.FirewallRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client FirewallRulesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.FirewallRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.FirewallRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client FirewallRulesClient) ListByAccount(ctx context.Context, resourceGro result.frlr, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.FirewallRulesClient", "ListByAccount", resp, "Failure responding to request") + return } if result.frlr.hasNextLink() && result.frlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +385,7 @@ func (client FirewallRulesClient) listByAccountNextResults(ctx context.Context, result, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.FirewallRulesClient", "listByAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -434,6 +439,7 @@ func (client FirewallRulesClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.FirewallRulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/datalake/analytics/mgmt/2016-11-01/account/locations.go b/services/datalake/analytics/mgmt/2016-11-01/account/locations.go index 854de7b00565..138e726a8493 100644 --- a/services/datalake/analytics/mgmt/2016-11-01/account/locations.go +++ b/services/datalake/analytics/mgmt/2016-11-01/account/locations.go @@ -71,6 +71,7 @@ func (client LocationsClient) GetCapability(ctx context.Context, location string result, err = client.GetCapabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.LocationsClient", "GetCapability", resp, "Failure responding to request") + return } return diff --git a/services/datalake/analytics/mgmt/2016-11-01/account/operations.go b/services/datalake/analytics/mgmt/2016-11-01/account/operations.go index dd1a8af31cd4..8dcb4bde8485 100644 --- a/services/datalake/analytics/mgmt/2016-11-01/account/operations.go +++ b/services/datalake/analytics/mgmt/2016-11-01/account/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/datalake/analytics/mgmt/2016-11-01/account/storageaccounts.go b/services/datalake/analytics/mgmt/2016-11-01/account/storageaccounts.go index ca6c66396292..a0acea2ffb5b 100644 --- a/services/datalake/analytics/mgmt/2016-11-01/account/storageaccounts.go +++ b/services/datalake/analytics/mgmt/2016-11-01/account/storageaccounts.go @@ -82,6 +82,7 @@ func (client StorageAccountsClient) Add(ctx context.Context, resourceGroupName s result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.StorageAccountsClient", "Add", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client StorageAccountsClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.StorageAccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client StorageAccountsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.StorageAccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +318,7 @@ func (client StorageAccountsClient) GetStorageContainer(ctx context.Context, res result, err = client.GetStorageContainerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.StorageAccountsClient", "GetStorageContainer", resp, "Failure responding to request") + return } return @@ -414,6 +418,7 @@ func (client StorageAccountsClient) ListByAccount(ctx context.Context, resourceG result.sailr, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.StorageAccountsClient", "ListByAccount", resp, "Failure responding to request") + return } if result.sailr.hasNextLink() && result.sailr.IsEmpty() { err = result.NextWithContext(ctx) @@ -496,6 +501,7 @@ func (client StorageAccountsClient) listByAccountNextResults(ctx context.Context result, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.StorageAccountsClient", "listByAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -551,6 +557,7 @@ func (client StorageAccountsClient) ListSasTokens(ctx context.Context, resourceG result.stilr, err = client.ListSasTokensResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.StorageAccountsClient", "ListSasTokens", resp, "Failure responding to request") + return } if result.stilr.hasNextLink() && result.stilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -617,6 +624,7 @@ func (client StorageAccountsClient) listSasTokensNextResults(ctx context.Context result, err = client.ListSasTokensResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.StorageAccountsClient", "listSasTokensNextResults", resp, "Failure responding to next results request") + return } return } @@ -671,6 +679,7 @@ func (client StorageAccountsClient) ListStorageContainers(ctx context.Context, r result.sclr, err = client.ListStorageContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.StorageAccountsClient", "ListStorageContainers", resp, "Failure responding to request") + return } if result.sclr.hasNextLink() && result.sclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -736,6 +745,7 @@ func (client StorageAccountsClient) listStorageContainersNextResults(ctx context result, err = client.ListStorageContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.StorageAccountsClient", "listStorageContainersNextResults", resp, "Failure responding to next results request") + return } return } @@ -791,6 +801,7 @@ func (client StorageAccountsClient) Update(ctx context.Context, resourceGroupNam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.StorageAccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/datalake/store/2016-11-01/filesystem/filesystem.go b/services/datalake/store/2016-11-01/filesystem/filesystem.go index 9ede2fe8c452..ec1b0ef4b713 100644 --- a/services/datalake/store/2016-11-01/filesystem/filesystem.go +++ b/services/datalake/store/2016-11-01/filesystem/filesystem.go @@ -86,6 +86,7 @@ func (client Client) Append(ctx context.Context, accountName string, pathParamet result, err = client.AppendResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "Append", resp, "Failure responding to request") + return } return @@ -183,6 +184,7 @@ func (client Client) CheckAccess(ctx context.Context, accountName string, pathPa result, err = client.CheckAccessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "CheckAccess", resp, "Failure responding to request") + return } return @@ -271,6 +273,7 @@ func (client Client) Concat(ctx context.Context, accountName string, pathParamet result, err = client.ConcatResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "Concat", resp, "Failure responding to request") + return } return @@ -365,6 +368,7 @@ func (client Client) ConcurrentAppend(ctx context.Context, accountName string, p result, err = client.ConcurrentAppendResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "ConcurrentAppend", resp, "Failure responding to request") + return } return @@ -469,6 +473,7 @@ func (client Client) Create(ctx context.Context, accountName string, pathParamet result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "Create", resp, "Failure responding to request") + return } return @@ -568,6 +573,7 @@ func (client Client) Delete(ctx context.Context, accountName string, pathParamet result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "Delete", resp, "Failure responding to request") + return } return @@ -653,6 +659,7 @@ func (client Client) GetACLStatus(ctx context.Context, accountName string, pathP result, err = client.GetACLStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "GetACLStatus", resp, "Failure responding to request") + return } return @@ -735,6 +742,7 @@ func (client Client) GetContentSummary(ctx context.Context, accountName string, result, err = client.GetContentSummaryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "GetContentSummary", resp, "Failure responding to request") + return } return @@ -817,6 +825,7 @@ func (client Client) GetFileStatus(ctx context.Context, accountName string, path result, err = client.GetFileStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "GetFileStatus", resp, "Failure responding to request") + return } return @@ -908,6 +917,7 @@ func (client Client) ListFileStatus(ctx context.Context, accountName string, pat result, err = client.ListFileStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "ListFileStatus", resp, "Failure responding to request") + return } return @@ -1000,6 +1010,7 @@ func (client Client) Mkdirs(ctx context.Context, accountName string, pathParamet result, err = client.MkdirsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "Mkdirs", resp, "Failure responding to request") + return } return @@ -1085,6 +1096,7 @@ func (client Client) ModifyACLEntries(ctx context.Context, accountName string, p result, err = client.ModifyACLEntriesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "ModifyACLEntries", resp, "Failure responding to request") + return } return @@ -1174,6 +1186,7 @@ func (client Client) MsConcat(ctx context.Context, accountName string, pathParam result, err = client.MsConcatResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "MsConcat", resp, "Failure responding to request") + return } return @@ -1261,6 +1274,7 @@ func (client Client) Open(ctx context.Context, accountName string, pathParameter result, err = client.OpenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "Open", resp, "Failure responding to request") + return } return @@ -1350,6 +1364,7 @@ func (client Client) RemoveACL(ctx context.Context, accountName string, pathPara result, err = client.RemoveACLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "RemoveACL", resp, "Failure responding to request") + return } return @@ -1430,6 +1445,7 @@ func (client Client) RemoveACLEntries(ctx context.Context, accountName string, p result, err = client.RemoveACLEntriesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "RemoveACLEntries", resp, "Failure responding to request") + return } return @@ -1510,6 +1526,7 @@ func (client Client) RemoveDefaultACL(ctx context.Context, accountName string, p result, err = client.RemoveDefaultACLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "RemoveDefaultACL", resp, "Failure responding to request") + return } return @@ -1589,6 +1606,7 @@ func (client Client) Rename(ctx context.Context, accountName string, pathParamet result, err = client.RenameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "Rename", resp, "Failure responding to request") + return } return @@ -1672,6 +1690,7 @@ func (client Client) SetACL(ctx context.Context, accountName string, pathParamet result, err = client.SetACLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "SetACL", resp, "Failure responding to request") + return } return @@ -1759,6 +1778,7 @@ func (client Client) SetFileExpiry(ctx context.Context, accountName string, path result, err = client.SetFileExpiryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "SetFileExpiry", resp, "Failure responding to request") + return } return @@ -1846,6 +1866,7 @@ func (client Client) SetOwner(ctx context.Context, accountName string, pathParam result, err = client.SetOwnerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "SetOwner", resp, "Failure responding to request") + return } return @@ -1933,6 +1954,7 @@ func (client Client) SetPermission(ctx context.Context, accountName string, path result, err = client.SetPermissionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "SetPermission", resp, "Failure responding to request") + return } return diff --git a/services/datalake/store/mgmt/2016-11-01/account/accounts.go b/services/datalake/store/mgmt/2016-11-01/account/accounts.go index 2ad95ac89a96..8f59c49c6339 100644 --- a/services/datalake/store/mgmt/2016-11-01/account/accounts.go +++ b/services/datalake/store/mgmt/2016-11-01/account/accounts.go @@ -80,6 +80,7 @@ func (client AccountsClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.AccountsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client AccountsClient) EnableKeyVault(ctx context.Context, resourceGroupNa result, err = client.EnableKeyVaultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.AccountsClient", "EnableKeyVault", resp, "Failure responding to request") + return } return @@ -399,6 +401,7 @@ func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.AccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -494,6 +497,7 @@ func (client AccountsClient) List(ctx context.Context, filter string, top *int32 result.dlsalr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.AccountsClient", "List", resp, "Failure responding to request") + return } if result.dlsalr.hasNextLink() && result.dlsalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -574,6 +578,7 @@ func (client AccountsClient) listNextResults(ctx context.Context, lastResults Da result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.AccountsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -646,6 +651,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result.dlsalr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dlsalr.hasNextLink() && result.dlsalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -727,6 +733,7 @@ func (client AccountsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.AccountsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/datalake/store/mgmt/2016-11-01/account/firewallrules.go b/services/datalake/store/mgmt/2016-11-01/account/firewallrules.go index b279f9a909fa..da34e8a296be 100644 --- a/services/datalake/store/mgmt/2016-11-01/account/firewallrules.go +++ b/services/datalake/store/mgmt/2016-11-01/account/firewallrules.go @@ -85,6 +85,7 @@ func (client FirewallRulesClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.FirewallRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client FirewallRulesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.FirewallRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.FirewallRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client FirewallRulesClient) ListByAccount(ctx context.Context, resourceGro result.frlr, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.FirewallRulesClient", "ListByAccount", resp, "Failure responding to request") + return } if result.frlr.hasNextLink() && result.frlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +385,7 @@ func (client FirewallRulesClient) listByAccountNextResults(ctx context.Context, result, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.FirewallRulesClient", "listByAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -434,6 +439,7 @@ func (client FirewallRulesClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.FirewallRulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/datalake/store/mgmt/2016-11-01/account/locations.go b/services/datalake/store/mgmt/2016-11-01/account/locations.go index 426a71e6dea2..f942e79b8d6f 100644 --- a/services/datalake/store/mgmt/2016-11-01/account/locations.go +++ b/services/datalake/store/mgmt/2016-11-01/account/locations.go @@ -71,6 +71,7 @@ func (client LocationsClient) GetCapability(ctx context.Context, location string result, err = client.GetCapabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.LocationsClient", "GetCapability", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client LocationsClient) GetUsage(ctx context.Context, location string) (re result, err = client.GetUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.LocationsClient", "GetUsage", resp, "Failure responding to request") + return } return diff --git a/services/datalake/store/mgmt/2016-11-01/account/operations.go b/services/datalake/store/mgmt/2016-11-01/account/operations.go index 3507527a2841..00bf6c4c77df 100644 --- a/services/datalake/store/mgmt/2016-11-01/account/operations.go +++ b/services/datalake/store/mgmt/2016-11-01/account/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/datalake/store/mgmt/2016-11-01/account/trustedidproviders.go b/services/datalake/store/mgmt/2016-11-01/account/trustedidproviders.go index ecbba6533fa6..95f1a86afa4c 100644 --- a/services/datalake/store/mgmt/2016-11-01/account/trustedidproviders.go +++ b/services/datalake/store/mgmt/2016-11-01/account/trustedidproviders.go @@ -85,6 +85,7 @@ func (client TrustedIDProvidersClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.TrustedIDProvidersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client TrustedIDProvidersClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.TrustedIDProvidersClient", "Delete", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client TrustedIDProvidersClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.TrustedIDProvidersClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client TrustedIDProvidersClient) ListByAccount(ctx context.Context, resour result.tiplr, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.TrustedIDProvidersClient", "ListByAccount", resp, "Failure responding to request") + return } if result.tiplr.hasNextLink() && result.tiplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +385,7 @@ func (client TrustedIDProvidersClient) listByAccountNextResults(ctx context.Cont result, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.TrustedIDProvidersClient", "listByAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -435,6 +440,7 @@ func (client TrustedIDProvidersClient) Update(ctx context.Context, resourceGroup result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.TrustedIDProvidersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/datalake/store/mgmt/2016-11-01/account/virtualnetworkrules.go b/services/datalake/store/mgmt/2016-11-01/account/virtualnetworkrules.go index 9d473aee1260..822e97127ab2 100644 --- a/services/datalake/store/mgmt/2016-11-01/account/virtualnetworkrules.go +++ b/services/datalake/store/mgmt/2016-11-01/account/virtualnetworkrules.go @@ -84,6 +84,7 @@ func (client VirtualNetworkRulesClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.VirtualNetworkRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client VirtualNetworkRulesClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.VirtualNetworkRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client VirtualNetworkRulesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.VirtualNetworkRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client VirtualNetworkRulesClient) ListByAccount(ctx context.Context, resou result.vnrlr, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.VirtualNetworkRulesClient", "ListByAccount", resp, "Failure responding to request") + return } if result.vnrlr.hasNextLink() && result.vnrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +384,7 @@ func (client VirtualNetworkRulesClient) listByAccountNextResults(ctx context.Con result, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.VirtualNetworkRulesClient", "listByAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -433,6 +438,7 @@ func (client VirtualNetworkRulesClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.VirtualNetworkRulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/datamigration/mgmt/2018-04-19/datamigration/operations.go b/services/datamigration/mgmt/2018-04-19/datamigration/operations.go index 07cb4c2ac104..97d701eddcb5 100644 --- a/services/datamigration/mgmt/2018-04-19/datamigration/operations.go +++ b/services/datamigration/mgmt/2018-04-19/datamigration/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result ServiceOperatio result.sol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.OperationsClient", "List", resp, "Failure responding to request") + return } if result.sol.hasNextLink() && result.sol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/datamigration/mgmt/2018-04-19/datamigration/projects.go b/services/datamigration/mgmt/2018-04-19/datamigration/projects.go index 1ff32bc60eb0..013b04293a95 100644 --- a/services/datamigration/mgmt/2018-04-19/datamigration/projects.go +++ b/services/datamigration/mgmt/2018-04-19/datamigration/projects.go @@ -75,6 +75,7 @@ func (client ProjectsClient) CreateOrUpdate(ctx context.Context, parameters Proj result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ProjectsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client ProjectsClient) Delete(ctx context.Context, groupName string, servi result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ProjectsClient", "Delete", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client ProjectsClient) Get(ctx context.Context, groupName string, serviceN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ProjectsClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +317,7 @@ func (client ProjectsClient) ListByResourceGroup(ctx context.Context, groupName result.pl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ProjectsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.pl.hasNextLink() && result.pl.IsEmpty() { err = result.NextWithContext(ctx) @@ -378,6 +382,7 @@ func (client ProjectsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ProjectsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -432,6 +437,7 @@ func (client ProjectsClient) Update(ctx context.Context, parameters Project, gro result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ProjectsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/datamigration/mgmt/2018-04-19/datamigration/resourceskus.go b/services/datamigration/mgmt/2018-04-19/datamigration/resourceskus.go index 0c8402ba9016..475c22e057b6 100644 --- a/services/datamigration/mgmt/2018-04-19/datamigration/resourceskus.go +++ b/services/datamigration/mgmt/2018-04-19/datamigration/resourceskus.go @@ -70,6 +70,7 @@ func (client ResourceSkusClient) ListSkus(ctx context.Context) (result ResourceS result.rsr, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ResourceSkusClient", "ListSkus", resp, "Failure responding to request") + return } if result.rsr.hasNextLink() && result.rsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client ResourceSkusClient) listSkusNextResults(ctx context.Context, lastRe result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ResourceSkusClient", "listSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/datamigration/mgmt/2018-04-19/datamigration/services.go b/services/datamigration/mgmt/2018-04-19/datamigration/services.go index d5a5ef6ddd33..7d7d7d2b9fb7 100644 --- a/services/datamigration/mgmt/2018-04-19/datamigration/services.go +++ b/services/datamigration/mgmt/2018-04-19/datamigration/services.go @@ -73,6 +73,7 @@ func (client ServicesClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client ServicesClient) CheckStatus(ctx context.Context, groupName string, result, err = client.CheckStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "CheckStatus", resp, "Failure responding to request") + return } return @@ -396,6 +398,7 @@ func (client ServicesClient) Get(ctx context.Context, groupName string, serviceN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -470,6 +473,7 @@ func (client ServicesClient) List(ctx context.Context) (result ServiceListPage, result.sl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "List", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -532,6 +536,7 @@ func (client ServicesClient) listNextResults(ctx context.Context, lastResults Se result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -584,6 +589,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, groupName result.sl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -647,6 +653,7 @@ func (client ServicesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -700,6 +707,7 @@ func (client ServicesClient) ListSkus(ctx context.Context, groupName string, ser result.ssl, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "ListSkus", resp, "Failure responding to request") + return } if result.ssl.hasNextLink() && result.ssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -764,6 +772,7 @@ func (client ServicesClient) listSkusNextResults(ctx context.Context, lastResult result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "listSkusNextResults", resp, "Failure responding to next results request") + return } return } @@ -816,6 +825,7 @@ func (client ServicesClient) NestedCheckNameAvailability(ctx context.Context, gr result, err = client.NestedCheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "NestedCheckNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/datamigration/mgmt/2018-04-19/datamigration/tasks.go b/services/datamigration/mgmt/2018-04-19/datamigration/tasks.go index e383c5894bcf..84b20731874c 100644 --- a/services/datamigration/mgmt/2018-04-19/datamigration/tasks.go +++ b/services/datamigration/mgmt/2018-04-19/datamigration/tasks.go @@ -75,6 +75,7 @@ func (client TasksClient) Cancel(ctx context.Context, groupName string, serviceN result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "Cancel", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client TasksClient) CreateOrUpdate(ctx context.Context, parameters Project result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client TasksClient) Delete(ctx context.Context, groupName string, serviceN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "Delete", resp, "Failure responding to request") + return } return @@ -323,6 +326,7 @@ func (client TasksClient) Get(ctx context.Context, groupName string, serviceName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "Get", resp, "Failure responding to request") + return } return @@ -408,6 +412,7 @@ func (client TasksClient) List(ctx context.Context, groupName string, serviceNam result.tl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "List", resp, "Failure responding to request") + return } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) @@ -476,6 +481,7 @@ func (client TasksClient) listNextResults(ctx context.Context, lastResults TaskL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +537,7 @@ func (client TasksClient) Update(ctx context.Context, parameters ProjectTask, gr result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/datamigration/mgmt/2018-04-19/datamigration/usages.go b/services/datamigration/mgmt/2018-04-19/datamigration/usages.go index 4ee5ff4fbeff..afe1092753d7 100644 --- a/services/datamigration/mgmt/2018-04-19/datamigration/usages.go +++ b/services/datamigration/mgmt/2018-04-19/datamigration/usages.go @@ -72,6 +72,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Qu result.ql, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ql.hasNextLink() && result.ql.IsEmpty() { err = result.NextWithContext(ctx) @@ -135,6 +136,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Quot result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/datashare/mgmt/2019-11-01/datashare/accounts.go b/services/datashare/mgmt/2019-11-01/datashare/accounts.go index 8d84ef2ff862..bd6a5c9cd3a3 100644 --- a/services/datashare/mgmt/2019-11-01/datashare/accounts.go +++ b/services/datashare/mgmt/2019-11-01/datashare/accounts.go @@ -232,6 +232,7 @@ func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result.al, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client AccountsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -425,6 +428,7 @@ func (client AccountsClient) ListBySubscription(ctx context.Context, skipToken s result.al, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -490,6 +494,7 @@ func (client AccountsClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -542,6 +547,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/datashare/mgmt/2019-11-01/datashare/consumerinvitations.go b/services/datashare/mgmt/2019-11-01/datashare/consumerinvitations.go index 141fb9f888ab..338ecd76a9ce 100644 --- a/services/datashare/mgmt/2019-11-01/datashare/consumerinvitations.go +++ b/services/datashare/mgmt/2019-11-01/datashare/consumerinvitations.go @@ -74,6 +74,7 @@ func (client ConsumerInvitationsClient) Get(ctx context.Context, location string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ConsumerInvitationsClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client ConsumerInvitationsClient) ListInvitations(ctx context.Context, ski result.cil, err = client.ListInvitationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ConsumerInvitationsClient", "ListInvitations", resp, "Failure responding to request") + return } if result.cil.hasNextLink() && result.cil.IsEmpty() { err = result.NextWithContext(ctx) @@ -209,6 +211,7 @@ func (client ConsumerInvitationsClient) listInvitationsNextResults(ctx context.C result, err = client.ListInvitationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ConsumerInvitationsClient", "listInvitationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -267,6 +270,7 @@ func (client ConsumerInvitationsClient) RejectInvitation(ctx context.Context, lo result, err = client.RejectInvitationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ConsumerInvitationsClient", "RejectInvitation", resp, "Failure responding to request") + return } return diff --git a/services/datashare/mgmt/2019-11-01/datashare/consumersourcedatasets.go b/services/datashare/mgmt/2019-11-01/datashare/consumersourcedatasets.go index 9d5469d2889b..0c648dccb8e3 100644 --- a/services/datashare/mgmt/2019-11-01/datashare/consumersourcedatasets.go +++ b/services/datashare/mgmt/2019-11-01/datashare/consumersourcedatasets.go @@ -76,6 +76,7 @@ func (client ConsumerSourceDataSetsClient) ListByShareSubscription(ctx context.C result.csdsl, err = client.ListByShareSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ConsumerSourceDataSetsClient", "ListByShareSubscription", resp, "Failure responding to request") + return } if result.csdsl.hasNextLink() && result.csdsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -144,6 +145,7 @@ func (client ConsumerSourceDataSetsClient) listByShareSubscriptionNextResults(ct result, err = client.ListByShareSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ConsumerSourceDataSetsClient", "listByShareSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/datashare/mgmt/2019-11-01/datashare/datasetmappings.go b/services/datashare/mgmt/2019-11-01/datashare/datasetmappings.go index 5d168d2fec1d..6282c68771e9 100644 --- a/services/datashare/mgmt/2019-11-01/datashare/datasetmappings.go +++ b/services/datashare/mgmt/2019-11-01/datashare/datasetmappings.go @@ -75,6 +75,7 @@ func (client DataSetMappingsClient) Create(ctx context.Context, resourceGroupNam result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.DataSetMappingsClient", "Create", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client DataSetMappingsClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.DataSetMappingsClient", "Delete", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client DataSetMappingsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.DataSetMappingsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client DataSetMappingsClient) ListByShareSubscription(ctx context.Context, result.dsml, err = client.ListByShareSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.DataSetMappingsClient", "ListByShareSubscription", resp, "Failure responding to request") + return } if result.dsml.hasNextLink() && result.dsml.IsEmpty() { err = result.NextWithContext(ctx) @@ -390,6 +394,7 @@ func (client DataSetMappingsClient) listByShareSubscriptionNextResults(ctx conte result, err = client.ListByShareSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.DataSetMappingsClient", "listByShareSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/datashare/mgmt/2019-11-01/datashare/datasets.go b/services/datashare/mgmt/2019-11-01/datashare/datasets.go index 69c8fc59415e..2279bc5cb079 100644 --- a/services/datashare/mgmt/2019-11-01/datashare/datasets.go +++ b/services/datashare/mgmt/2019-11-01/datashare/datasets.go @@ -75,6 +75,7 @@ func (client DataSetsClient) Create(ctx context.Context, resourceGroupName strin result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.DataSetsClient", "Create", resp, "Failure responding to request") + return } return @@ -234,6 +235,7 @@ func (client DataSetsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.DataSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +318,7 @@ func (client DataSetsClient) ListByShare(ctx context.Context, resourceGroupName result.dsl, err = client.ListByShareResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.DataSetsClient", "ListByShare", resp, "Failure responding to request") + return } if result.dsl.hasNextLink() && result.dsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -390,6 +393,7 @@ func (client DataSetsClient) listByShareNextResults(ctx context.Context, lastRes result, err = client.ListByShareResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.DataSetsClient", "listByShareNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/datashare/mgmt/2019-11-01/datashare/invitations.go b/services/datashare/mgmt/2019-11-01/datashare/invitations.go index b7be37b7ac4b..83e679ee2802 100644 --- a/services/datashare/mgmt/2019-11-01/datashare/invitations.go +++ b/services/datashare/mgmt/2019-11-01/datashare/invitations.go @@ -75,6 +75,7 @@ func (client InvitationsClient) Create(ctx context.Context, resourceGroupName st result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.InvitationsClient", "Create", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client InvitationsClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.InvitationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client InvitationsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.InvitationsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client InvitationsClient) ListByShare(ctx context.Context, resourceGroupNa result.il, err = client.ListByShareResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.InvitationsClient", "ListByShare", resp, "Failure responding to request") + return } if result.il.hasNextLink() && result.il.IsEmpty() { err = result.NextWithContext(ctx) @@ -390,6 +394,7 @@ func (client InvitationsClient) listByShareNextResults(ctx context.Context, last result, err = client.ListByShareResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.InvitationsClient", "listByShareNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/datashare/mgmt/2019-11-01/datashare/operations.go b/services/datashare/mgmt/2019-11-01/datashare/operations.go index cb8afe02adce..156db5db3b12 100644 --- a/services/datashare/mgmt/2019-11-01/datashare/operations.go +++ b/services/datashare/mgmt/2019-11-01/datashare/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListPa result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/datashare/mgmt/2019-11-01/datashare/providersharesubscriptions.go b/services/datashare/mgmt/2019-11-01/datashare/providersharesubscriptions.go index 36913bb6e971..3ad6bba55c55 100644 --- a/services/datashare/mgmt/2019-11-01/datashare/providersharesubscriptions.go +++ b/services/datashare/mgmt/2019-11-01/datashare/providersharesubscriptions.go @@ -75,6 +75,7 @@ func (client ProviderShareSubscriptionsClient) GetByShare(ctx context.Context, r result, err = client.GetByShareResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ProviderShareSubscriptionsClient", "GetByShare", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client ProviderShareSubscriptionsClient) ListByShare(ctx context.Context, result.pssl, err = client.ListByShareResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ProviderShareSubscriptionsClient", "ListByShare", resp, "Failure responding to request") + return } if result.pssl.hasNextLink() && result.pssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -223,6 +225,7 @@ func (client ProviderShareSubscriptionsClient) listByShareNextResults(ctx contex result, err = client.ListByShareResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ProviderShareSubscriptionsClient", "listByShareNextResults", resp, "Failure responding to next results request") + return } return } @@ -276,6 +279,7 @@ func (client ProviderShareSubscriptionsClient) Reinstate(ctx context.Context, re result, err = client.ReinstateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ProviderShareSubscriptionsClient", "Reinstate", resp, "Failure responding to request") + return } return diff --git a/services/datashare/mgmt/2019-11-01/datashare/shares.go b/services/datashare/mgmt/2019-11-01/datashare/shares.go index 1d7d4b14c972..ca5733018b71 100644 --- a/services/datashare/mgmt/2019-11-01/datashare/shares.go +++ b/services/datashare/mgmt/2019-11-01/datashare/shares.go @@ -74,6 +74,7 @@ func (client SharesClient) Create(ctx context.Context, resourceGroupName string, result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.SharesClient", "Create", resp, "Failure responding to request") + return } return @@ -230,6 +231,7 @@ func (client SharesClient) Get(ctx context.Context, resourceGroupName string, ac result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.SharesClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +312,7 @@ func (client SharesClient) ListByAccount(ctx context.Context, resourceGroupName result.sl, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.SharesClient", "ListByAccount", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -383,6 +386,7 @@ func (client SharesClient) listByAccountNextResults(ctx context.Context, lastRes result, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.SharesClient", "listByAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -440,6 +444,7 @@ func (client SharesClient) ListSynchronizationDetails(ctx context.Context, resou result.sdl, err = client.ListSynchronizationDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.SharesClient", "ListSynchronizationDetails", resp, "Failure responding to request") + return } if result.sdl.hasNextLink() && result.sdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -517,6 +522,7 @@ func (client SharesClient) listSynchronizationDetailsNextResults(ctx context.Con result, err = client.ListSynchronizationDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.SharesClient", "listSynchronizationDetailsNextResults", resp, "Failure responding to next results request") + return } return } @@ -573,6 +579,7 @@ func (client SharesClient) ListSynchronizations(ctx context.Context, resourceGro result.ssl, err = client.ListSynchronizationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.SharesClient", "ListSynchronizations", resp, "Failure responding to request") + return } if result.ssl.hasNextLink() && result.ssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -647,6 +654,7 @@ func (client SharesClient) listSynchronizationsNextResults(ctx context.Context, result, err = client.ListSynchronizationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.SharesClient", "listSynchronizationsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/datashare/mgmt/2019-11-01/datashare/sharesubscriptions.go b/services/datashare/mgmt/2019-11-01/datashare/sharesubscriptions.go index c4047dd5e999..ed6407ccdc02 100644 --- a/services/datashare/mgmt/2019-11-01/datashare/sharesubscriptions.go +++ b/services/datashare/mgmt/2019-11-01/datashare/sharesubscriptions.go @@ -177,6 +177,7 @@ func (client ShareSubscriptionsClient) Create(ctx context.Context, resourceGroup result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "Create", resp, "Failure responding to request") + return } return @@ -333,6 +334,7 @@ func (client ShareSubscriptionsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -413,6 +415,7 @@ func (client ShareSubscriptionsClient) ListByAccount(ctx context.Context, resour result.ssl, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "ListByAccount", resp, "Failure responding to request") + return } if result.ssl.hasNextLink() && result.ssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -486,6 +489,7 @@ func (client ShareSubscriptionsClient) listByAccountNextResults(ctx context.Cont result, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "listByAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -540,6 +544,7 @@ func (client ShareSubscriptionsClient) ListSourceShareSynchronizationSettings(ct result.ssssl, err = client.ListSourceShareSynchronizationSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "ListSourceShareSynchronizationSettings", resp, "Failure responding to request") + return } if result.ssssl.hasNextLink() && result.ssssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -608,6 +613,7 @@ func (client ShareSubscriptionsClient) listSourceShareSynchronizationSettingsNex result, err = client.ListSourceShareSynchronizationSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "listSourceShareSynchronizationSettingsNextResults", resp, "Failure responding to next results request") + return } return } @@ -671,6 +677,7 @@ func (client ShareSubscriptionsClient) ListSynchronizationDetails(ctx context.Co result.sdl, err = client.ListSynchronizationDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "ListSynchronizationDetails", resp, "Failure responding to request") + return } if result.sdl.hasNextLink() && result.sdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -753,6 +760,7 @@ func (client ShareSubscriptionsClient) listSynchronizationDetailsNextResults(ctx result, err = client.ListSynchronizationDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "listSynchronizationDetailsNextResults", resp, "Failure responding to next results request") + return } return } @@ -809,6 +817,7 @@ func (client ShareSubscriptionsClient) ListSynchronizations(ctx context.Context, result.sssl, err = client.ListSynchronizationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "ListSynchronizations", resp, "Failure responding to request") + return } if result.sssl.hasNextLink() && result.sssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -883,6 +892,7 @@ func (client ShareSubscriptionsClient) listSynchronizationsNextResults(ctx conte result, err = client.ListSynchronizationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "listSynchronizationsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/datashare/mgmt/2019-11-01/datashare/synchronizationsettings.go b/services/datashare/mgmt/2019-11-01/datashare/synchronizationsettings.go index dc4248322b7a..4d38092f4e75 100644 --- a/services/datashare/mgmt/2019-11-01/datashare/synchronizationsettings.go +++ b/services/datashare/mgmt/2019-11-01/datashare/synchronizationsettings.go @@ -76,6 +76,7 @@ func (client SynchronizationSettingsClient) Create(ctx context.Context, resource result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.SynchronizationSettingsClient", "Create", resp, "Failure responding to request") + return } return @@ -236,6 +237,7 @@ func (client SynchronizationSettingsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.SynchronizationSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +318,7 @@ func (client SynchronizationSettingsClient) ListByShare(ctx context.Context, res result.ssl, err = client.ListByShareResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.SynchronizationSettingsClient", "ListByShare", resp, "Failure responding to request") + return } if result.ssl.hasNextLink() && result.ssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +387,7 @@ func (client SynchronizationSettingsClient) listByShareNextResults(ctx context.C result, err = client.ListByShareResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.SynchronizationSettingsClient", "listByShareNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/datashare/mgmt/2019-11-01/datashare/triggers.go b/services/datashare/mgmt/2019-11-01/datashare/triggers.go index da86a2828aa0..c809da8cfa08 100644 --- a/services/datashare/mgmt/2019-11-01/datashare/triggers.go +++ b/services/datashare/mgmt/2019-11-01/datashare/triggers.go @@ -235,6 +235,7 @@ func (client TriggersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.TriggersClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client TriggersClient) ListByShareSubscription(ctx context.Context, resour result.tl, err = client.ListByShareSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.TriggersClient", "ListByShareSubscription", resp, "Failure responding to request") + return } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) @@ -383,6 +385,7 @@ func (client TriggersClient) listByShareSubscriptionNextResults(ctx context.Cont result, err = client.ListByShareSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.TriggersClient", "listByShareSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/devspaces/mgmt/2019-04-01/devspaces/containerhostmappings.go b/services/devspaces/mgmt/2019-04-01/devspaces/containerhostmappings.go index 76598146101a..e7fec62b7b9d 100644 --- a/services/devspaces/mgmt/2019-04-01/devspaces/containerhostmappings.go +++ b/services/devspaces/mgmt/2019-04-01/devspaces/containerhostmappings.go @@ -81,6 +81,7 @@ func (client ContainerHostMappingsClient) GetContainerHostMapping(ctx context.Co result, err = client.GetContainerHostMappingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devspaces.ContainerHostMappingsClient", "GetContainerHostMapping", resp, "Failure responding to request") + return } return diff --git a/services/devspaces/mgmt/2019-04-01/devspaces/controllers.go b/services/devspaces/mgmt/2019-04-01/devspaces/controllers.go index c7dc83742b69..7b65ce384238 100644 --- a/services/devspaces/mgmt/2019-04-01/devspaces/controllers.go +++ b/services/devspaces/mgmt/2019-04-01/devspaces/controllers.go @@ -265,6 +265,7 @@ func (client ControllersClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devspaces.ControllersClient", "Get", resp, "Failure responding to request") + return } return @@ -338,6 +339,7 @@ func (client ControllersClient) List(ctx context.Context) (result ControllerList result.cl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devspaces.ControllersClient", "List", resp, "Failure responding to request") + return } if result.cl.hasNextLink() && result.cl.IsEmpty() { err = result.NextWithContext(ctx) @@ -400,6 +402,7 @@ func (client ControllersClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devspaces.ControllersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -459,6 +462,7 @@ func (client ControllersClient) ListByResourceGroup(ctx context.Context, resourc result.cl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devspaces.ControllersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cl.hasNextLink() && result.cl.IsEmpty() { err = result.NextWithContext(ctx) @@ -522,6 +526,7 @@ func (client ControllersClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devspaces.ControllersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -588,6 +593,7 @@ func (client ControllersClient) ListConnectionDetails(ctx context.Context, resou result, err = client.ListConnectionDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devspaces.ControllersClient", "ListConnectionDetails", resp, "Failure responding to request") + return } return @@ -677,6 +683,7 @@ func (client ControllersClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devspaces.ControllersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devspaces/mgmt/2019-04-01/devspaces/operations.go b/services/devspaces/mgmt/2019-04-01/devspaces/operations.go index 7c604febbe30..3a961fd9738a 100644 --- a/services/devspaces/mgmt/2019-04-01/devspaces/operations.go +++ b/services/devspaces/mgmt/2019-04-01/devspaces/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result ResourceProvide result.rpol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devspaces.OperationsClient", "List", resp, "Failure responding to request") + return } if result.rpol.hasNextLink() && result.rpol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devspaces.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/devtestlabs/mgmt/2016-05-15/dtl/armtemplates.go b/services/devtestlabs/mgmt/2016-05-15/dtl/armtemplates.go index 27b34fecca6b..f528962ae740 100644 --- a/services/devtestlabs/mgmt/2016-05-15/dtl/armtemplates.go +++ b/services/devtestlabs/mgmt/2016-05-15/dtl/armtemplates.go @@ -75,6 +75,7 @@ func (client ArmTemplatesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArmTemplatesClient", "Get", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client ArmTemplatesClient) List(ctx context.Context, resourceGroupName str result.rwcat, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArmTemplatesClient", "List", resp, "Failure responding to request") + return } if result.rwcat.hasNextLink() && result.rwcat.IsEmpty() { err = result.NextWithContext(ctx) @@ -238,6 +240,7 @@ func (client ArmTemplatesClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArmTemplatesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/devtestlabs/mgmt/2016-05-15/dtl/artifacts.go b/services/devtestlabs/mgmt/2016-05-15/dtl/artifacts.go index 5238c2a7c51f..e12c5f18cfdb 100644 --- a/services/devtestlabs/mgmt/2016-05-15/dtl/artifacts.go +++ b/services/devtestlabs/mgmt/2016-05-15/dtl/artifacts.go @@ -76,6 +76,7 @@ func (client ArtifactsClient) GenerateArmTemplate(ctx context.Context, resourceG result, err = client.GenerateArmTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactsClient", "GenerateArmTemplate", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client ArtifactsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactsClient", "Get", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client ArtifactsClient) List(ctx context.Context, resourceGroupName string result.rwca, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactsClient", "List", resp, "Failure responding to request") + return } if result.rwca.hasNextLink() && result.rwca.IsEmpty() { err = result.NextWithContext(ctx) @@ -321,6 +324,7 @@ func (client ArtifactsClient) listNextResults(ctx context.Context, lastResults R result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/devtestlabs/mgmt/2016-05-15/dtl/artifactsources.go b/services/devtestlabs/mgmt/2016-05-15/dtl/artifactsources.go index 0d014ec0ef36..862c6f7d4221 100644 --- a/services/devtestlabs/mgmt/2016-05-15/dtl/artifactsources.go +++ b/services/devtestlabs/mgmt/2016-05-15/dtl/artifactsources.go @@ -81,6 +81,7 @@ func (client ArtifactSourcesClient) CreateOrUpdate(ctx context.Context, resource result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactSourcesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client ArtifactSourcesClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactSourcesClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client ArtifactSourcesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactSourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +324,7 @@ func (client ArtifactSourcesClient) List(ctx context.Context, resourceGroupName result.rwcas, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactSourcesClient", "List", resp, "Failure responding to request") + return } if result.rwcas.hasNextLink() && result.rwcas.IsEmpty() { err = result.NextWithContext(ctx) @@ -397,6 +401,7 @@ func (client ArtifactSourcesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactSourcesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -450,6 +455,7 @@ func (client ArtifactSourcesClient) Update(ctx context.Context, resourceGroupNam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactSourcesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2016-05-15/dtl/costs.go b/services/devtestlabs/mgmt/2016-05-15/dtl/costs.go index ff027ec65ebd..aee870efec0a 100644 --- a/services/devtestlabs/mgmt/2016-05-15/dtl/costs.go +++ b/services/devtestlabs/mgmt/2016-05-15/dtl/costs.go @@ -81,6 +81,7 @@ func (client CostsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.CostsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client CostsClient) Get(ctx context.Context, resourceGroupName string, lab result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.CostsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2016-05-15/dtl/customimages.go b/services/devtestlabs/mgmt/2016-05-15/dtl/customimages.go index 4bec0fba0dd4..b7e60a8d15b9 100644 --- a/services/devtestlabs/mgmt/2016-05-15/dtl/customimages.go +++ b/services/devtestlabs/mgmt/2016-05-15/dtl/customimages.go @@ -237,6 +237,7 @@ func (client CustomImagesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.CustomImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client CustomImagesClient) List(ctx context.Context, resourceGroupName str result.rwcci, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.CustomImagesClient", "List", resp, "Failure responding to request") + return } if result.rwcci.hasNextLink() && result.rwcci.IsEmpty() { err = result.NextWithContext(ctx) @@ -397,6 +399,7 @@ func (client CustomImagesClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.CustomImagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/devtestlabs/mgmt/2016-05-15/dtl/disks.go b/services/devtestlabs/mgmt/2016-05-15/dtl/disks.go index d19e7ad157dc..1225827b6418 100644 --- a/services/devtestlabs/mgmt/2016-05-15/dtl/disks.go +++ b/services/devtestlabs/mgmt/2016-05-15/dtl/disks.go @@ -405,6 +405,7 @@ func (client DisksClient) Get(ctx context.Context, resourceGroupName string, lab result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.DisksClient", "Get", resp, "Failure responding to request") + return } return @@ -491,6 +492,7 @@ func (client DisksClient) List(ctx context.Context, resourceGroupName string, la result.rwcd, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.DisksClient", "List", resp, "Failure responding to request") + return } if result.rwcd.hasNextLink() && result.rwcd.IsEmpty() { err = result.NextWithContext(ctx) @@ -568,6 +570,7 @@ func (client DisksClient) listNextResults(ctx context.Context, lastResults Respo result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.DisksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/devtestlabs/mgmt/2016-05-15/dtl/environments.go b/services/devtestlabs/mgmt/2016-05-15/dtl/environments.go index 22befda65e0b..f793ecc0afaf 100644 --- a/services/devtestlabs/mgmt/2016-05-15/dtl/environments.go +++ b/services/devtestlabs/mgmt/2016-05-15/dtl/environments.go @@ -242,6 +242,7 @@ func (client EnvironmentsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.EnvironmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -328,6 +329,7 @@ func (client EnvironmentsClient) List(ctx context.Context, resourceGroupName str result.rwcde, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.EnvironmentsClient", "List", resp, "Failure responding to request") + return } if result.rwcde.hasNextLink() && result.rwcde.IsEmpty() { err = result.NextWithContext(ctx) @@ -405,6 +407,7 @@ func (client EnvironmentsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.EnvironmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/devtestlabs/mgmt/2016-05-15/dtl/formulas.go b/services/devtestlabs/mgmt/2016-05-15/dtl/formulas.go index ab1f06791ff9..3ce7444ce875 100644 --- a/services/devtestlabs/mgmt/2016-05-15/dtl/formulas.go +++ b/services/devtestlabs/mgmt/2016-05-15/dtl/formulas.go @@ -173,6 +173,7 @@ func (client FormulasClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.FormulasClient", "Delete", resp, "Failure responding to request") + return } return @@ -250,6 +251,7 @@ func (client FormulasClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.FormulasClient", "Get", resp, "Failure responding to request") + return } return @@ -334,6 +336,7 @@ func (client FormulasClient) List(ctx context.Context, resourceGroupName string, result.rwcf, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.FormulasClient", "List", resp, "Failure responding to request") + return } if result.rwcf.hasNextLink() && result.rwcf.IsEmpty() { err = result.NextWithContext(ctx) @@ -410,6 +413,7 @@ func (client FormulasClient) listNextResults(ctx context.Context, lastResults Re result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.FormulasClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/devtestlabs/mgmt/2016-05-15/dtl/galleryimages.go b/services/devtestlabs/mgmt/2016-05-15/dtl/galleryimages.go index 918c7d9bf8d1..20252cff3ac1 100644 --- a/services/devtestlabs/mgmt/2016-05-15/dtl/galleryimages.go +++ b/services/devtestlabs/mgmt/2016-05-15/dtl/galleryimages.go @@ -77,6 +77,7 @@ func (client GalleryImagesClient) List(ctx context.Context, resourceGroupName st result.rwcgi, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.GalleryImagesClient", "List", resp, "Failure responding to request") + return } if result.rwcgi.hasNextLink() && result.rwcgi.IsEmpty() { err = result.NextWithContext(ctx) @@ -153,6 +154,7 @@ func (client GalleryImagesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.GalleryImagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/devtestlabs/mgmt/2016-05-15/dtl/globalschedules.go b/services/devtestlabs/mgmt/2016-05-15/dtl/globalschedules.go index 15dc60d5046e..a6b29ef5eac4 100644 --- a/services/devtestlabs/mgmt/2016-05-15/dtl/globalschedules.go +++ b/services/devtestlabs/mgmt/2016-05-15/dtl/globalschedules.go @@ -80,6 +80,7 @@ func (client GlobalSchedulesClient) CreateOrUpdate(ctx context.Context, resource result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.GlobalSchedulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client GlobalSchedulesClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.GlobalSchedulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -306,6 +308,7 @@ func (client GlobalSchedulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.GlobalSchedulesClient", "Get", resp, "Failure responding to request") + return } return @@ -388,6 +391,7 @@ func (client GlobalSchedulesClient) ListByResourceGroup(ctx context.Context, res result.rwcs, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.GlobalSchedulesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rwcs.hasNextLink() && result.rwcs.IsEmpty() { err = result.NextWithContext(ctx) @@ -463,6 +467,7 @@ func (client GlobalSchedulesClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.GlobalSchedulesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -517,6 +522,7 @@ func (client GlobalSchedulesClient) ListBySubscription(ctx context.Context, expa result.rwcs, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.GlobalSchedulesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.rwcs.hasNextLink() && result.rwcs.IsEmpty() { err = result.NextWithContext(ctx) @@ -591,6 +597,7 @@ func (client GlobalSchedulesClient) listBySubscriptionNextResults(ctx context.Co result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.GlobalSchedulesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -720,6 +727,7 @@ func (client GlobalSchedulesClient) Update(ctx context.Context, resourceGroupNam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.GlobalSchedulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2016-05-15/dtl/labs.go b/services/devtestlabs/mgmt/2016-05-15/dtl/labs.go index d6f132c29de5..4e47b916170d 100644 --- a/services/devtestlabs/mgmt/2016-05-15/dtl/labs.go +++ b/services/devtestlabs/mgmt/2016-05-15/dtl/labs.go @@ -470,6 +470,7 @@ func (client LabsClient) GenerateUploadURI(ctx context.Context, resourceGroupNam result, err = client.GenerateUploadURIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabsClient", "GenerateUploadURI", resp, "Failure responding to request") + return } return @@ -548,6 +549,7 @@ func (client LabsClient) Get(ctx context.Context, resourceGroupName string, name result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabsClient", "Get", resp, "Failure responding to request") + return } return @@ -630,6 +632,7 @@ func (client LabsClient) ListByResourceGroup(ctx context.Context, resourceGroupN result.rwcl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rwcl.hasNextLink() && result.rwcl.IsEmpty() { err = result.NextWithContext(ctx) @@ -705,6 +708,7 @@ func (client LabsClient) listByResourceGroupNextResults(ctx context.Context, las result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -759,6 +763,7 @@ func (client LabsClient) ListBySubscription(ctx context.Context, expand string, result.rwcl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.rwcl.hasNextLink() && result.rwcl.IsEmpty() { err = result.NextWithContext(ctx) @@ -833,6 +838,7 @@ func (client LabsClient) listBySubscriptionNextResults(ctx context.Context, last result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -885,6 +891,7 @@ func (client LabsClient) ListVhds(ctx context.Context, resourceGroupName string, result.rwclv, err = client.ListVhdsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabsClient", "ListVhds", resp, "Failure responding to request") + return } if result.rwclv.hasNextLink() && result.rwclv.IsEmpty() { err = result.NextWithContext(ctx) @@ -949,6 +956,7 @@ func (client LabsClient) listVhdsNextResults(ctx context.Context, lastResults Re result, err = client.ListVhdsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabsClient", "listVhdsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1001,6 +1009,7 @@ func (client LabsClient) Update(ctx context.Context, resourceGroupName string, n result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2016-05-15/dtl/notificationchannels.go b/services/devtestlabs/mgmt/2016-05-15/dtl/notificationchannels.go index dbc5888ec545..71d2e6e5610b 100644 --- a/services/devtestlabs/mgmt/2016-05-15/dtl/notificationchannels.go +++ b/services/devtestlabs/mgmt/2016-05-15/dtl/notificationchannels.go @@ -82,6 +82,7 @@ func (client NotificationChannelsClient) CreateOrUpdate(ctx context.Context, res result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.NotificationChannelsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client NotificationChannelsClient) Delete(ctx context.Context, resourceGro result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.NotificationChannelsClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client NotificationChannelsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.NotificationChannelsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +325,7 @@ func (client NotificationChannelsClient) List(ctx context.Context, resourceGroup result.rwcnc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.NotificationChannelsClient", "List", resp, "Failure responding to request") + return } if result.rwcnc.hasNextLink() && result.rwcnc.IsEmpty() { err = result.NextWithContext(ctx) @@ -398,6 +402,7 @@ func (client NotificationChannelsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.NotificationChannelsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -451,6 +456,7 @@ func (client NotificationChannelsClient) Notify(ctx context.Context, resourceGro result, err = client.NotifyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.NotificationChannelsClient", "Notify", resp, "Failure responding to request") + return } return @@ -530,6 +536,7 @@ func (client NotificationChannelsClient) Update(ctx context.Context, resourceGro result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.NotificationChannelsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2016-05-15/dtl/operations.go b/services/devtestlabs/mgmt/2016-05-15/dtl/operations.go index a03e8084ff1a..2af703b9631d 100644 --- a/services/devtestlabs/mgmt/2016-05-15/dtl/operations.go +++ b/services/devtestlabs/mgmt/2016-05-15/dtl/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) Get(ctx context.Context, locationName string, nam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.OperationsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2016-05-15/dtl/policies.go b/services/devtestlabs/mgmt/2016-05-15/dtl/policies.go index 329f1cf0679e..d3b5127d4fe9 100644 --- a/services/devtestlabs/mgmt/2016-05-15/dtl/policies.go +++ b/services/devtestlabs/mgmt/2016-05-15/dtl/policies.go @@ -82,6 +82,7 @@ func (client PoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.PoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client PoliciesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.PoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -242,6 +244,7 @@ func (client PoliciesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.PoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -328,6 +331,7 @@ func (client PoliciesClient) List(ctx context.Context, resourceGroupName string, result.rwcp, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.PoliciesClient", "List", resp, "Failure responding to request") + return } if result.rwcp.hasNextLink() && result.rwcp.IsEmpty() { err = result.NextWithContext(ctx) @@ -405,6 +409,7 @@ func (client PoliciesClient) listNextResults(ctx context.Context, lastResults Re result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.PoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -459,6 +464,7 @@ func (client PoliciesClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.PoliciesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2016-05-15/dtl/policysets.go b/services/devtestlabs/mgmt/2016-05-15/dtl/policysets.go index 1e7cb82c18ed..7b59fdbc844e 100644 --- a/services/devtestlabs/mgmt/2016-05-15/dtl/policysets.go +++ b/services/devtestlabs/mgmt/2016-05-15/dtl/policysets.go @@ -74,6 +74,7 @@ func (client PolicySetsClient) EvaluatePolicies(ctx context.Context, resourceGro result, err = client.EvaluatePoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.PolicySetsClient", "EvaluatePolicies", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2016-05-15/dtl/provideroperations.go b/services/devtestlabs/mgmt/2016-05-15/dtl/provideroperations.go index b7c6696d00ee..ccbb45ccda3d 100644 --- a/services/devtestlabs/mgmt/2016-05-15/dtl/provideroperations.go +++ b/services/devtestlabs/mgmt/2016-05-15/dtl/provideroperations.go @@ -71,6 +71,7 @@ func (client ProviderOperationsClient) List(ctx context.Context) (result Provide result.por, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ProviderOperationsClient", "List", resp, "Failure responding to request") + return } if result.por.hasNextLink() && result.por.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client ProviderOperationsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ProviderOperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/devtestlabs/mgmt/2016-05-15/dtl/schedules.go b/services/devtestlabs/mgmt/2016-05-15/dtl/schedules.go index 9c85b4a41c8d..95f4e621340f 100644 --- a/services/devtestlabs/mgmt/2016-05-15/dtl/schedules.go +++ b/services/devtestlabs/mgmt/2016-05-15/dtl/schedules.go @@ -81,6 +81,7 @@ func (client SchedulesClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SchedulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client SchedulesClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SchedulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -313,6 +315,7 @@ func (client SchedulesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SchedulesClient", "Get", resp, "Failure responding to request") + return } return @@ -397,6 +400,7 @@ func (client SchedulesClient) List(ctx context.Context, resourceGroupName string result.rwcs, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SchedulesClient", "List", resp, "Failure responding to request") + return } if result.rwcs.hasNextLink() && result.rwcs.IsEmpty() { err = result.NextWithContext(ctx) @@ -473,6 +477,7 @@ func (client SchedulesClient) listNextResults(ctx context.Context, lastResults R result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SchedulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +531,7 @@ func (client SchedulesClient) ListApplicable(ctx context.Context, resourceGroupN result.rwcs, err = client.ListApplicableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SchedulesClient", "ListApplicable", resp, "Failure responding to request") + return } if result.rwcs.hasNextLink() && result.rwcs.IsEmpty() { err = result.NextWithContext(ctx) @@ -591,6 +597,7 @@ func (client SchedulesClient) listApplicableNextResults(ctx context.Context, las result, err = client.ListApplicableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SchedulesClient", "listApplicableNextResults", resp, "Failure responding to next results request") + return } return } @@ -644,6 +651,7 @@ func (client SchedulesClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SchedulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2016-05-15/dtl/secrets.go b/services/devtestlabs/mgmt/2016-05-15/dtl/secrets.go index c428fea0bcf3..cb20b701e425 100644 --- a/services/devtestlabs/mgmt/2016-05-15/dtl/secrets.go +++ b/services/devtestlabs/mgmt/2016-05-15/dtl/secrets.go @@ -82,6 +82,7 @@ func (client SecretsClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SecretsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client SecretsClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SecretsClient", "Delete", resp, "Failure responding to request") + return } return @@ -242,6 +244,7 @@ func (client SecretsClient) Get(ctx context.Context, resourceGroupName string, l result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SecretsClient", "Get", resp, "Failure responding to request") + return } return @@ -328,6 +331,7 @@ func (client SecretsClient) List(ctx context.Context, resourceGroupName string, result.rwcs, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SecretsClient", "List", resp, "Failure responding to request") + return } if result.rwcs.hasNextLink() && result.rwcs.IsEmpty() { err = result.NextWithContext(ctx) @@ -405,6 +409,7 @@ func (client SecretsClient) listNextResults(ctx context.Context, lastResults Res result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SecretsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/devtestlabs/mgmt/2016-05-15/dtl/servicerunners.go b/services/devtestlabs/mgmt/2016-05-15/dtl/servicerunners.go index 0dbf6f1977b6..64a27e5e7bef 100644 --- a/services/devtestlabs/mgmt/2016-05-15/dtl/servicerunners.go +++ b/services/devtestlabs/mgmt/2016-05-15/dtl/servicerunners.go @@ -74,6 +74,7 @@ func (client ServiceRunnersClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ServiceRunnersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client ServiceRunnersClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ServiceRunnersClient", "Delete", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client ServiceRunnersClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ServiceRunnersClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +312,7 @@ func (client ServiceRunnersClient) List(ctx context.Context, resourceGroupName s result.rwcsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ServiceRunnersClient", "List", resp, "Failure responding to request") + return } if result.rwcsr.hasNextLink() && result.rwcsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +386,7 @@ func (client ServiceRunnersClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ServiceRunnersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/devtestlabs/mgmt/2016-05-15/dtl/users.go b/services/devtestlabs/mgmt/2016-05-15/dtl/users.go index f01274a62743..f1997675a07f 100644 --- a/services/devtestlabs/mgmt/2016-05-15/dtl/users.go +++ b/services/devtestlabs/mgmt/2016-05-15/dtl/users.go @@ -74,6 +74,7 @@ func (client UsersClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.UsersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -230,6 +231,7 @@ func (client UsersClient) Get(ctx context.Context, resourceGroupName string, lab result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.UsersClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +316,7 @@ func (client UsersClient) List(ctx context.Context, resourceGroupName string, la result.rwcu, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.UsersClient", "List", resp, "Failure responding to request") + return } if result.rwcu.hasNextLink() && result.rwcu.IsEmpty() { err = result.NextWithContext(ctx) @@ -390,6 +393,7 @@ func (client UsersClient) listNextResults(ctx context.Context, lastResults Respo result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.UsersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +447,7 @@ func (client UsersClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.UsersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2016-05-15/dtl/virtualmachines.go b/services/devtestlabs/mgmt/2016-05-15/dtl/virtualmachines.go index b64a510fc417..6345a8dd7920 100644 --- a/services/devtestlabs/mgmt/2016-05-15/dtl/virtualmachines.go +++ b/services/devtestlabs/mgmt/2016-05-15/dtl/virtualmachines.go @@ -560,6 +560,7 @@ func (client VirtualMachinesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachinesClient", "Get", resp, "Failure responding to request") + return } return @@ -645,6 +646,7 @@ func (client VirtualMachinesClient) List(ctx context.Context, resourceGroupName result.rwclvm, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachinesClient", "List", resp, "Failure responding to request") + return } if result.rwclvm.hasNextLink() && result.rwclvm.IsEmpty() { err = result.NextWithContext(ctx) @@ -721,6 +723,7 @@ func (client VirtualMachinesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachinesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -773,6 +776,7 @@ func (client VirtualMachinesClient) ListApplicableSchedules(ctx context.Context, result, err = client.ListApplicableSchedulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachinesClient", "ListApplicableSchedules", resp, "Failure responding to request") + return } return @@ -1003,6 +1007,7 @@ func (client VirtualMachinesClient) Update(ctx context.Context, resourceGroupNam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachinesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2016-05-15/dtl/virtualmachineschedules.go b/services/devtestlabs/mgmt/2016-05-15/dtl/virtualmachineschedules.go index 54f949241b7b..6e0d865b9ee9 100644 --- a/services/devtestlabs/mgmt/2016-05-15/dtl/virtualmachineschedules.go +++ b/services/devtestlabs/mgmt/2016-05-15/dtl/virtualmachineschedules.go @@ -83,6 +83,7 @@ func (client VirtualMachineSchedulesClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachineSchedulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client VirtualMachineSchedulesClient) Delete(ctx context.Context, resource result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachineSchedulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -321,6 +323,7 @@ func (client VirtualMachineSchedulesClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachineSchedulesClient", "Get", resp, "Failure responding to request") + return } return @@ -407,6 +410,7 @@ func (client VirtualMachineSchedulesClient) List(ctx context.Context, resourceGr result.rwcs, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachineSchedulesClient", "List", resp, "Failure responding to request") + return } if result.rwcs.hasNextLink() && result.rwcs.IsEmpty() { err = result.NextWithContext(ctx) @@ -484,6 +488,7 @@ func (client VirtualMachineSchedulesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachineSchedulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -538,6 +543,7 @@ func (client VirtualMachineSchedulesClient) Update(ctx context.Context, resource result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachineSchedulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2016-05-15/dtl/virtualnetworks.go b/services/devtestlabs/mgmt/2016-05-15/dtl/virtualnetworks.go index 1c4349fb430b..37a09874d36f 100644 --- a/services/devtestlabs/mgmt/2016-05-15/dtl/virtualnetworks.go +++ b/services/devtestlabs/mgmt/2016-05-15/dtl/virtualnetworks.go @@ -230,6 +230,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.rwcvn, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.rwcvn.hasNextLink() && result.rwcvn.IsEmpty() { err = result.NextWithContext(ctx) @@ -390,6 +392,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +446,7 @@ func (client VirtualNetworksClient) Update(ctx context.Context, resourceGroupNam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualNetworksClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/armtemplates.go b/services/devtestlabs/mgmt/2018-09-15/dtl/armtemplates.go index d1749849b11d..665946789594 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/armtemplates.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/armtemplates.go @@ -75,6 +75,7 @@ func (client ArmTemplatesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArmTemplatesClient", "Get", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client ArmTemplatesClient) List(ctx context.Context, resourceGroupName str result.atl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArmTemplatesClient", "List", resp, "Failure responding to request") + return } if result.atl.hasNextLink() && result.atl.IsEmpty() { err = result.NextWithContext(ctx) @@ -238,6 +240,7 @@ func (client ArmTemplatesClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArmTemplatesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/artifacts.go b/services/devtestlabs/mgmt/2018-09-15/dtl/artifacts.go index c29373954b06..6fbe9aa1947a 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/artifacts.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/artifacts.go @@ -76,6 +76,7 @@ func (client ArtifactsClient) GenerateArmTemplate(ctx context.Context, resourceG result, err = client.GenerateArmTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactsClient", "GenerateArmTemplate", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client ArtifactsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactsClient", "Get", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client ArtifactsClient) List(ctx context.Context, resourceGroupName string result.al, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactsClient", "List", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -321,6 +324,7 @@ func (client ArtifactsClient) listNextResults(ctx context.Context, lastResults A result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/artifactsources.go b/services/devtestlabs/mgmt/2018-09-15/dtl/artifactsources.go index 8c4c45f1169f..9600b3d6313c 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/artifactsources.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/artifactsources.go @@ -81,6 +81,7 @@ func (client ArtifactSourcesClient) CreateOrUpdate(ctx context.Context, resource result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactSourcesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client ArtifactSourcesClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactSourcesClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client ArtifactSourcesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactSourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +324,7 @@ func (client ArtifactSourcesClient) List(ctx context.Context, resourceGroupName result.asl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactSourcesClient", "List", resp, "Failure responding to request") + return } if result.asl.hasNextLink() && result.asl.IsEmpty() { err = result.NextWithContext(ctx) @@ -397,6 +401,7 @@ func (client ArtifactSourcesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactSourcesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -450,6 +455,7 @@ func (client ArtifactSourcesClient) Update(ctx context.Context, resourceGroupNam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactSourcesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/costs.go b/services/devtestlabs/mgmt/2018-09-15/dtl/costs.go index f17d66cedf92..98b68ab3bda8 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/costs.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/costs.go @@ -81,6 +81,7 @@ func (client CostsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.CostsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client CostsClient) Get(ctx context.Context, resourceGroupName string, lab result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.CostsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/customimages.go b/services/devtestlabs/mgmt/2018-09-15/dtl/customimages.go index cb2c68b5a9fe..97fc9114bb6d 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/customimages.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/customimages.go @@ -237,6 +237,7 @@ func (client CustomImagesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.CustomImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client CustomImagesClient) List(ctx context.Context, resourceGroupName str result.cil, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.CustomImagesClient", "List", resp, "Failure responding to request") + return } if result.cil.hasNextLink() && result.cil.IsEmpty() { err = result.NextWithContext(ctx) @@ -397,6 +399,7 @@ func (client CustomImagesClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.CustomImagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -450,6 +453,7 @@ func (client CustomImagesClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.CustomImagesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/disks.go b/services/devtestlabs/mgmt/2018-09-15/dtl/disks.go index c96bbfc4e2f3..874a870f6566 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/disks.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/disks.go @@ -405,6 +405,7 @@ func (client DisksClient) Get(ctx context.Context, resourceGroupName string, lab result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.DisksClient", "Get", resp, "Failure responding to request") + return } return @@ -491,6 +492,7 @@ func (client DisksClient) List(ctx context.Context, resourceGroupName string, la result.dl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.DisksClient", "List", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -568,6 +570,7 @@ func (client DisksClient) listNextResults(ctx context.Context, lastResults DiskL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.DisksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -622,6 +625,7 @@ func (client DisksClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.DisksClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/environments.go b/services/devtestlabs/mgmt/2018-09-15/dtl/environments.go index 4375be02b3e8..d01f39df554b 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/environments.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/environments.go @@ -242,6 +242,7 @@ func (client EnvironmentsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.EnvironmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -328,6 +329,7 @@ func (client EnvironmentsClient) List(ctx context.Context, resourceGroupName str result.el, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.EnvironmentsClient", "List", resp, "Failure responding to request") + return } if result.el.hasNextLink() && result.el.IsEmpty() { err = result.NextWithContext(ctx) @@ -405,6 +407,7 @@ func (client EnvironmentsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.EnvironmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -459,6 +462,7 @@ func (client EnvironmentsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.EnvironmentsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/formulas.go b/services/devtestlabs/mgmt/2018-09-15/dtl/formulas.go index 9509b968c3dc..71c6196a28e2 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/formulas.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/formulas.go @@ -160,6 +160,7 @@ func (client FormulasClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.FormulasClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +238,7 @@ func (client FormulasClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.FormulasClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +323,7 @@ func (client FormulasClient) List(ctx context.Context, resourceGroupName string, result.fl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.FormulasClient", "List", resp, "Failure responding to request") + return } if result.fl.hasNextLink() && result.fl.IsEmpty() { err = result.NextWithContext(ctx) @@ -397,6 +400,7 @@ func (client FormulasClient) listNextResults(ctx context.Context, lastResults Fo result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.FormulasClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -450,6 +454,7 @@ func (client FormulasClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.FormulasClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/galleryimages.go b/services/devtestlabs/mgmt/2018-09-15/dtl/galleryimages.go index bae39afd3dc9..715d9bc64828 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/galleryimages.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/galleryimages.go @@ -77,6 +77,7 @@ func (client GalleryImagesClient) List(ctx context.Context, resourceGroupName st result.gil, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.GalleryImagesClient", "List", resp, "Failure responding to request") + return } if result.gil.hasNextLink() && result.gil.IsEmpty() { err = result.NextWithContext(ctx) @@ -153,6 +154,7 @@ func (client GalleryImagesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.GalleryImagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/globalschedules.go b/services/devtestlabs/mgmt/2018-09-15/dtl/globalschedules.go index 50e6de4737d3..e9dbe0ba0f08 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/globalschedules.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/globalschedules.go @@ -80,6 +80,7 @@ func (client GlobalSchedulesClient) CreateOrUpdate(ctx context.Context, resource result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.GlobalSchedulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client GlobalSchedulesClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.GlobalSchedulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -306,6 +308,7 @@ func (client GlobalSchedulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.GlobalSchedulesClient", "Get", resp, "Failure responding to request") + return } return @@ -388,6 +391,7 @@ func (client GlobalSchedulesClient) ListByResourceGroup(ctx context.Context, res result.sl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.GlobalSchedulesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -463,6 +467,7 @@ func (client GlobalSchedulesClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.GlobalSchedulesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -517,6 +522,7 @@ func (client GlobalSchedulesClient) ListBySubscription(ctx context.Context, expa result.sl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.GlobalSchedulesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -591,6 +597,7 @@ func (client GlobalSchedulesClient) listBySubscriptionNextResults(ctx context.Co result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.GlobalSchedulesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -720,6 +727,7 @@ func (client GlobalSchedulesClient) Update(ctx context.Context, resourceGroupNam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.GlobalSchedulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/labs.go b/services/devtestlabs/mgmt/2018-09-15/dtl/labs.go index 15075bcfc511..c29c5da0003c 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/labs.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/labs.go @@ -454,6 +454,7 @@ func (client LabsClient) GenerateUploadURI(ctx context.Context, resourceGroupNam result, err = client.GenerateUploadURIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabsClient", "GenerateUploadURI", resp, "Failure responding to request") + return } return @@ -532,6 +533,7 @@ func (client LabsClient) Get(ctx context.Context, resourceGroupName string, name result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabsClient", "Get", resp, "Failure responding to request") + return } return @@ -692,6 +694,7 @@ func (client LabsClient) ListByResourceGroup(ctx context.Context, resourceGroupN result.ll, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ll.hasNextLink() && result.ll.IsEmpty() { err = result.NextWithContext(ctx) @@ -767,6 +770,7 @@ func (client LabsClient) listByResourceGroupNextResults(ctx context.Context, las result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -821,6 +825,7 @@ func (client LabsClient) ListBySubscription(ctx context.Context, expand string, result.ll, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ll.hasNextLink() && result.ll.IsEmpty() { err = result.NextWithContext(ctx) @@ -895,6 +900,7 @@ func (client LabsClient) listBySubscriptionNextResults(ctx context.Context, last result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -947,6 +953,7 @@ func (client LabsClient) ListVhds(ctx context.Context, resourceGroupName string, result.lvl, err = client.ListVhdsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabsClient", "ListVhds", resp, "Failure responding to request") + return } if result.lvl.hasNextLink() && result.lvl.IsEmpty() { err = result.NextWithContext(ctx) @@ -1011,6 +1018,7 @@ func (client LabsClient) listVhdsNextResults(ctx context.Context, lastResults La result, err = client.ListVhdsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabsClient", "listVhdsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1063,6 +1071,7 @@ func (client LabsClient) Update(ctx context.Context, resourceGroupName string, n result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/notificationchannels.go b/services/devtestlabs/mgmt/2018-09-15/dtl/notificationchannels.go index 468ec476aebb..5813d41bea96 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/notificationchannels.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/notificationchannels.go @@ -82,6 +82,7 @@ func (client NotificationChannelsClient) CreateOrUpdate(ctx context.Context, res result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.NotificationChannelsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client NotificationChannelsClient) Delete(ctx context.Context, resourceGro result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.NotificationChannelsClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client NotificationChannelsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.NotificationChannelsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +325,7 @@ func (client NotificationChannelsClient) List(ctx context.Context, resourceGroup result.ncl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.NotificationChannelsClient", "List", resp, "Failure responding to request") + return } if result.ncl.hasNextLink() && result.ncl.IsEmpty() { err = result.NextWithContext(ctx) @@ -398,6 +402,7 @@ func (client NotificationChannelsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.NotificationChannelsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -451,6 +456,7 @@ func (client NotificationChannelsClient) Notify(ctx context.Context, resourceGro result, err = client.NotifyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.NotificationChannelsClient", "Notify", resp, "Failure responding to request") + return } return @@ -530,6 +536,7 @@ func (client NotificationChannelsClient) Update(ctx context.Context, resourceGro result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.NotificationChannelsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/operations.go b/services/devtestlabs/mgmt/2018-09-15/dtl/operations.go index e08d8651ab17..f1add5ac9eeb 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/operations.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) Get(ctx context.Context, locationName string, nam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.OperationsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/policies.go b/services/devtestlabs/mgmt/2018-09-15/dtl/policies.go index 07e94c7d1b44..bade2b16579f 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/policies.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/policies.go @@ -82,6 +82,7 @@ func (client PoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.PoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client PoliciesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.PoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -242,6 +244,7 @@ func (client PoliciesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.PoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -328,6 +331,7 @@ func (client PoliciesClient) List(ctx context.Context, resourceGroupName string, result.pl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.PoliciesClient", "List", resp, "Failure responding to request") + return } if result.pl.hasNextLink() && result.pl.IsEmpty() { err = result.NextWithContext(ctx) @@ -405,6 +409,7 @@ func (client PoliciesClient) listNextResults(ctx context.Context, lastResults Po result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.PoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -459,6 +464,7 @@ func (client PoliciesClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.PoliciesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/policysets.go b/services/devtestlabs/mgmt/2018-09-15/dtl/policysets.go index 4a8f67c2334d..a1294429dfda 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/policysets.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/policysets.go @@ -74,6 +74,7 @@ func (client PolicySetsClient) EvaluatePolicies(ctx context.Context, resourceGro result, err = client.EvaluatePoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.PolicySetsClient", "EvaluatePolicies", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/provideroperations.go b/services/devtestlabs/mgmt/2018-09-15/dtl/provideroperations.go index e648452964c0..76c630fbcffe 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/provideroperations.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/provideroperations.go @@ -71,6 +71,7 @@ func (client ProviderOperationsClient) List(ctx context.Context) (result Provide result.por, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ProviderOperationsClient", "List", resp, "Failure responding to request") + return } if result.por.hasNextLink() && result.por.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client ProviderOperationsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ProviderOperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/schedules.go b/services/devtestlabs/mgmt/2018-09-15/dtl/schedules.go index b75b8f7ba9ae..c3ecb7f8f725 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/schedules.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/schedules.go @@ -81,6 +81,7 @@ func (client SchedulesClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SchedulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client SchedulesClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SchedulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -313,6 +315,7 @@ func (client SchedulesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SchedulesClient", "Get", resp, "Failure responding to request") + return } return @@ -397,6 +400,7 @@ func (client SchedulesClient) List(ctx context.Context, resourceGroupName string result.sl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SchedulesClient", "List", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -473,6 +477,7 @@ func (client SchedulesClient) listNextResults(ctx context.Context, lastResults S result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SchedulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +531,7 @@ func (client SchedulesClient) ListApplicable(ctx context.Context, resourceGroupN result.sl, err = client.ListApplicableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SchedulesClient", "ListApplicable", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -591,6 +597,7 @@ func (client SchedulesClient) listApplicableNextResults(ctx context.Context, las result, err = client.ListApplicableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SchedulesClient", "listApplicableNextResults", resp, "Failure responding to next results request") + return } return } @@ -644,6 +651,7 @@ func (client SchedulesClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SchedulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/secrets.go b/services/devtestlabs/mgmt/2018-09-15/dtl/secrets.go index 47c7fee4759b..e70a4908f95e 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/secrets.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/secrets.go @@ -163,6 +163,7 @@ func (client SecretsClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SecretsClient", "Delete", resp, "Failure responding to request") + return } return @@ -242,6 +243,7 @@ func (client SecretsClient) Get(ctx context.Context, resourceGroupName string, l result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SecretsClient", "Get", resp, "Failure responding to request") + return } return @@ -328,6 +330,7 @@ func (client SecretsClient) List(ctx context.Context, resourceGroupName string, result.sl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SecretsClient", "List", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -405,6 +408,7 @@ func (client SecretsClient) listNextResults(ctx context.Context, lastResults Sec result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SecretsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -459,6 +463,7 @@ func (client SecretsClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SecretsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/servicefabrics.go b/services/devtestlabs/mgmt/2018-09-15/dtl/servicefabrics.go index 80e2e9da97ec..385b004b0162 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/servicefabrics.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/servicefabrics.go @@ -251,6 +251,7 @@ func (client ServiceFabricsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ServiceFabricsClient", "Get", resp, "Failure responding to request") + return } return @@ -337,6 +338,7 @@ func (client ServiceFabricsClient) List(ctx context.Context, resourceGroupName s result.sfl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ServiceFabricsClient", "List", resp, "Failure responding to request") + return } if result.sfl.hasNextLink() && result.sfl.IsEmpty() { err = result.NextWithContext(ctx) @@ -414,6 +416,7 @@ func (client ServiceFabricsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ServiceFabricsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -467,6 +470,7 @@ func (client ServiceFabricsClient) ListApplicableSchedules(ctx context.Context, result, err = client.ListApplicableSchedulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ServiceFabricsClient", "ListApplicableSchedules", resp, "Failure responding to request") + return } return @@ -703,6 +707,7 @@ func (client ServiceFabricsClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ServiceFabricsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/servicefabricschedules.go b/services/devtestlabs/mgmt/2018-09-15/dtl/servicefabricschedules.go index 85da67e86ec3..f5517642a4db 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/servicefabricschedules.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/servicefabricschedules.go @@ -84,6 +84,7 @@ func (client ServiceFabricSchedulesClient) CreateOrUpdate(ctx context.Context, r result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ServiceFabricSchedulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client ServiceFabricSchedulesClient) Delete(ctx context.Context, resourceG result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ServiceFabricSchedulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -328,6 +330,7 @@ func (client ServiceFabricSchedulesClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ServiceFabricSchedulesClient", "Get", resp, "Failure responding to request") + return } return @@ -416,6 +419,7 @@ func (client ServiceFabricSchedulesClient) List(ctx context.Context, resourceGro result.sl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ServiceFabricSchedulesClient", "List", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -494,6 +498,7 @@ func (client ServiceFabricSchedulesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ServiceFabricSchedulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -549,6 +554,7 @@ func (client ServiceFabricSchedulesClient) Update(ctx context.Context, resourceG result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ServiceFabricSchedulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/servicerunners.go b/services/devtestlabs/mgmt/2018-09-15/dtl/servicerunners.go index ff53b5e74922..f6151056e8ff 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/servicerunners.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/servicerunners.go @@ -74,6 +74,7 @@ func (client ServiceRunnersClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ServiceRunnersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client ServiceRunnersClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ServiceRunnersClient", "Delete", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client ServiceRunnersClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ServiceRunnersClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/users.go b/services/devtestlabs/mgmt/2018-09-15/dtl/users.go index 18d73f807ee6..9d605ef3b467 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/users.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/users.go @@ -230,6 +230,7 @@ func (client UsersClient) Get(ctx context.Context, resourceGroupName string, lab result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.UsersClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client UsersClient) List(ctx context.Context, resourceGroupName string, la result.ul, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.UsersClient", "List", resp, "Failure responding to request") + return } if result.ul.hasNextLink() && result.ul.IsEmpty() { err = result.NextWithContext(ctx) @@ -390,6 +392,7 @@ func (client UsersClient) listNextResults(ctx context.Context, lastResults UserL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.UsersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +446,7 @@ func (client UsersClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.UsersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/virtualmachines.go b/services/devtestlabs/mgmt/2018-09-15/dtl/virtualmachines.go index 4cb44e8971ad..dc92aead0e66 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/virtualmachines.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/virtualmachines.go @@ -560,6 +560,7 @@ func (client VirtualMachinesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachinesClient", "Get", resp, "Failure responding to request") + return } return @@ -640,6 +641,7 @@ func (client VirtualMachinesClient) GetRdpFileContents(ctx context.Context, reso result, err = client.GetRdpFileContentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachinesClient", "GetRdpFileContents", resp, "Failure responding to request") + return } return @@ -722,6 +724,7 @@ func (client VirtualMachinesClient) List(ctx context.Context, resourceGroupName result.lvml, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachinesClient", "List", resp, "Failure responding to request") + return } if result.lvml.hasNextLink() && result.lvml.IsEmpty() { err = result.NextWithContext(ctx) @@ -798,6 +801,7 @@ func (client VirtualMachinesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachinesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -850,6 +854,7 @@ func (client VirtualMachinesClient) ListApplicableSchedules(ctx context.Context, result, err = client.ListApplicableSchedulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachinesClient", "ListApplicableSchedules", resp, "Failure responding to request") + return } return @@ -1464,6 +1469,7 @@ func (client VirtualMachinesClient) Update(ctx context.Context, resourceGroupNam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachinesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/virtualmachineschedules.go b/services/devtestlabs/mgmt/2018-09-15/dtl/virtualmachineschedules.go index ea43d184780e..87af6f91a157 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/virtualmachineschedules.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/virtualmachineschedules.go @@ -83,6 +83,7 @@ func (client VirtualMachineSchedulesClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachineSchedulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client VirtualMachineSchedulesClient) Delete(ctx context.Context, resource result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachineSchedulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -321,6 +323,7 @@ func (client VirtualMachineSchedulesClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachineSchedulesClient", "Get", resp, "Failure responding to request") + return } return @@ -407,6 +410,7 @@ func (client VirtualMachineSchedulesClient) List(ctx context.Context, resourceGr result.sl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachineSchedulesClient", "List", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -484,6 +488,7 @@ func (client VirtualMachineSchedulesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachineSchedulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -538,6 +543,7 @@ func (client VirtualMachineSchedulesClient) Update(ctx context.Context, resource result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachineSchedulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/virtualnetworks.go b/services/devtestlabs/mgmt/2018-09-15/dtl/virtualnetworks.go index 1e8e48043ecc..c787a9676c08 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/virtualnetworks.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/virtualnetworks.go @@ -230,6 +230,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnl.hasNextLink() && result.vnl.IsEmpty() { err = result.NextWithContext(ctx) @@ -390,6 +392,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +446,7 @@ func (client VirtualNetworksClient) Update(ctx context.Context, resourceGroupNam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualNetworksClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/digitaltwins/mgmt/2020-10-31/digitaltwins/digitaltwins.go b/services/digitaltwins/mgmt/2020-10-31/digitaltwins/digitaltwins.go index e41d402e8249..cc2b6a6fd240 100644 --- a/services/digitaltwins/mgmt/2020-10-31/digitaltwins/digitaltwins.go +++ b/services/digitaltwins/mgmt/2020-10-31/digitaltwins/digitaltwins.go @@ -83,6 +83,7 @@ func (client Client) CheckNameAvailability(ctx context.Context, location string, result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -344,6 +345,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "Get", resp, "Failure responding to request") + return } return @@ -417,6 +419,7 @@ func (client Client) List(ctx context.Context) (result DescriptionListResultPage result.dlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "List", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +482,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults Descriptio result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -537,6 +541,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.dlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -600,6 +605,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -662,6 +668,7 @@ func (client Client) Update(ctx context.Context, resourceGroupName string, resou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "Update", resp, "Failure responding to request") + return } return diff --git a/services/digitaltwins/mgmt/2020-10-31/digitaltwins/endpoint.go b/services/digitaltwins/mgmt/2020-10-31/digitaltwins/endpoint.go index 0a1070bb9bea..4e537028557d 100644 --- a/services/digitaltwins/mgmt/2020-10-31/digitaltwins/endpoint.go +++ b/services/digitaltwins/mgmt/2020-10-31/digitaltwins/endpoint.go @@ -272,6 +272,7 @@ func (client EndpointClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.EndpointClient", "Get", resp, "Failure responding to request") + return } return @@ -359,6 +360,7 @@ func (client EndpointClient) List(ctx context.Context, resourceGroupName string, result.erlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.EndpointClient", "List", resp, "Failure responding to request") + return } if result.erlr.hasNextLink() && result.erlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -423,6 +425,7 @@ func (client EndpointClient) listNextResults(ctx context.Context, lastResults En result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.EndpointClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/digitaltwins/mgmt/2020-10-31/digitaltwins/operations.go b/services/digitaltwins/mgmt/2020-10-31/digitaltwins/operations.go index c52ea4e04c48..0ec054ecdc16 100644 --- a/services/digitaltwins/mgmt/2020-10-31/digitaltwins/operations.go +++ b/services/digitaltwins/mgmt/2020-10-31/digitaltwins/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/dns/mgmt/2016-04-01/dns/recordsets.go b/services/dns/mgmt/2016-04-01/dns/recordsets.go index 739db5b4b1f6..cad59b92f881 100644 --- a/services/dns/mgmt/2016-04-01/dns/recordsets.go +++ b/services/dns/mgmt/2016-04-01/dns/recordsets.go @@ -91,6 +91,7 @@ func (client RecordSetsClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -193,6 +194,7 @@ func (client RecordSetsClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -285,6 +287,7 @@ func (client RecordSetsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -377,6 +380,7 @@ func (client RecordSetsClient) ListByDNSZone(ctx context.Context, resourceGroupN result.rslr, err = client.ListByDNSZoneResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "ListByDNSZone", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -447,6 +451,7 @@ func (client RecordSetsClient) listByDNSZoneNextResults(ctx context.Context, las result, err = client.ListByDNSZoneResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "listByDNSZoneNextResults", resp, "Failure responding to next results request") + return } return } @@ -514,6 +519,7 @@ func (client RecordSetsClient) ListByType(ctx context.Context, resourceGroupName result.rslr, err = client.ListByTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "ListByType", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -585,6 +591,7 @@ func (client RecordSetsClient) listByTypeNextResults(ctx context.Context, lastRe result, err = client.ListByTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "listByTypeNextResults", resp, "Failure responding to next results request") + return } return } @@ -651,6 +658,7 @@ func (client RecordSetsClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/dns/mgmt/2016-04-01/dns/zones.go b/services/dns/mgmt/2016-04-01/dns/zones.go index d3af805c1ed6..897912aafa73 100644 --- a/services/dns/mgmt/2016-04-01/dns/zones.go +++ b/services/dns/mgmt/2016-04-01/dns/zones.go @@ -88,6 +88,7 @@ func (client ZonesClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -275,6 +276,7 @@ func (client ZonesClient) Get(ctx context.Context, resourceGroupName string, zon result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "Get", resp, "Failure responding to request") + return } return @@ -356,6 +358,7 @@ func (client ZonesClient) List(ctx context.Context, top *int32) (result ZoneList result.zlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "List", resp, "Failure responding to request") + return } if result.zlr.hasNextLink() && result.zlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -421,6 +424,7 @@ func (client ZonesClient) listNextResults(ctx context.Context, lastResults ZoneL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -483,6 +487,7 @@ func (client ZonesClient) ListByResourceGroup(ctx context.Context, resourceGroup result.zlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.zlr.hasNextLink() && result.zlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -549,6 +554,7 @@ func (client ZonesClient) listByResourceGroupNextResults(ctx context.Context, la result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/dns/mgmt/2017-09-01/dns/recordsets.go b/services/dns/mgmt/2017-09-01/dns/recordsets.go index 65a197ab6e1a..bbf4cd735d9c 100644 --- a/services/dns/mgmt/2017-09-01/dns/recordsets.go +++ b/services/dns/mgmt/2017-09-01/dns/recordsets.go @@ -91,6 +91,7 @@ func (client RecordSetsClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -196,6 +197,7 @@ func (client RecordSetsClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -288,6 +290,7 @@ func (client RecordSetsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -380,6 +383,7 @@ func (client RecordSetsClient) ListByDNSZone(ctx context.Context, resourceGroupN result.rslr, err = client.ListByDNSZoneResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "ListByDNSZone", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -450,6 +454,7 @@ func (client RecordSetsClient) listByDNSZoneNextResults(ctx context.Context, las result, err = client.ListByDNSZoneResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "listByDNSZoneNextResults", resp, "Failure responding to next results request") + return } return } @@ -517,6 +522,7 @@ func (client RecordSetsClient) ListByType(ctx context.Context, resourceGroupName result.rslr, err = client.ListByTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "ListByType", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -588,6 +594,7 @@ func (client RecordSetsClient) listByTypeNextResults(ctx context.Context, lastRe result, err = client.ListByTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "listByTypeNextResults", resp, "Failure responding to next results request") + return } return } @@ -654,6 +661,7 @@ func (client RecordSetsClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/dns/mgmt/2017-09-01/dns/zones.go b/services/dns/mgmt/2017-09-01/dns/zones.go index a301648949fe..49f53f770f61 100644 --- a/services/dns/mgmt/2017-09-01/dns/zones.go +++ b/services/dns/mgmt/2017-09-01/dns/zones.go @@ -88,6 +88,7 @@ func (client ZonesClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -274,6 +275,7 @@ func (client ZonesClient) Get(ctx context.Context, resourceGroupName string, zon result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +357,7 @@ func (client ZonesClient) List(ctx context.Context, top *int32) (result ZoneList result.zlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "List", resp, "Failure responding to request") + return } if result.zlr.hasNextLink() && result.zlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -420,6 +423,7 @@ func (client ZonesClient) listNextResults(ctx context.Context, lastResults ZoneL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -482,6 +486,7 @@ func (client ZonesClient) ListByResourceGroup(ctx context.Context, resourceGroup result.zlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.zlr.hasNextLink() && result.zlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -548,6 +553,7 @@ func (client ZonesClient) listByResourceGroupNextResults(ctx context.Context, la result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/dns/mgmt/2017-10-01/dns/recordsets.go b/services/dns/mgmt/2017-10-01/dns/recordsets.go index 3c06dc498172..09f1e63aed1b 100644 --- a/services/dns/mgmt/2017-10-01/dns/recordsets.go +++ b/services/dns/mgmt/2017-10-01/dns/recordsets.go @@ -91,6 +91,7 @@ func (client RecordSetsClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -196,6 +197,7 @@ func (client RecordSetsClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -288,6 +290,7 @@ func (client RecordSetsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -380,6 +383,7 @@ func (client RecordSetsClient) ListAllByDNSZone(ctx context.Context, resourceGro result.rslr, err = client.ListAllByDNSZoneResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "ListAllByDNSZone", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -450,6 +454,7 @@ func (client RecordSetsClient) listAllByDNSZoneNextResults(ctx context.Context, result, err = client.ListAllByDNSZoneResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "listAllByDNSZoneNextResults", resp, "Failure responding to next results request") + return } return } @@ -516,6 +521,7 @@ func (client RecordSetsClient) ListByDNSZone(ctx context.Context, resourceGroupN result.rslr, err = client.ListByDNSZoneResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "ListByDNSZone", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -586,6 +592,7 @@ func (client RecordSetsClient) listByDNSZoneNextResults(ctx context.Context, las result, err = client.ListByDNSZoneResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "listByDNSZoneNextResults", resp, "Failure responding to next results request") + return } return } @@ -653,6 +660,7 @@ func (client RecordSetsClient) ListByType(ctx context.Context, resourceGroupName result.rslr, err = client.ListByTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "ListByType", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -724,6 +732,7 @@ func (client RecordSetsClient) listByTypeNextResults(ctx context.Context, lastRe result, err = client.ListByTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "listByTypeNextResults", resp, "Failure responding to next results request") + return } return } @@ -790,6 +799,7 @@ func (client RecordSetsClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/dns/mgmt/2017-10-01/dns/zones.go b/services/dns/mgmt/2017-10-01/dns/zones.go index e2aabf7698ac..65302a0c2973 100644 --- a/services/dns/mgmt/2017-10-01/dns/zones.go +++ b/services/dns/mgmt/2017-10-01/dns/zones.go @@ -88,6 +88,7 @@ func (client ZonesClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -274,6 +275,7 @@ func (client ZonesClient) Get(ctx context.Context, resourceGroupName string, zon result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +357,7 @@ func (client ZonesClient) List(ctx context.Context, top *int32) (result ZoneList result.zlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "List", resp, "Failure responding to request") + return } if result.zlr.hasNextLink() && result.zlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -420,6 +423,7 @@ func (client ZonesClient) listNextResults(ctx context.Context, lastResults ZoneL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -482,6 +486,7 @@ func (client ZonesClient) ListByResourceGroup(ctx context.Context, resourceGroup result.zlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.zlr.hasNextLink() && result.zlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -548,6 +553,7 @@ func (client ZonesClient) listByResourceGroupNextResults(ctx context.Context, la result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -612,6 +618,7 @@ func (client ZonesClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/dns/mgmt/2018-05-01/dns/recordsets.go b/services/dns/mgmt/2018-05-01/dns/recordsets.go index 7a77cf6d51f0..2874f5f313a5 100644 --- a/services/dns/mgmt/2018-05-01/dns/recordsets.go +++ b/services/dns/mgmt/2018-05-01/dns/recordsets.go @@ -80,6 +80,7 @@ func (client RecordSetsClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -175,6 +176,7 @@ func (client RecordSetsClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -257,6 +259,7 @@ func (client RecordSetsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -339,6 +342,7 @@ func (client RecordSetsClient) ListAllByDNSZone(ctx context.Context, resourceGro result.rslr, err = client.ListAllByDNSZoneResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "ListAllByDNSZone", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -409,6 +413,7 @@ func (client RecordSetsClient) listAllByDNSZoneNextResults(ctx context.Context, result, err = client.ListAllByDNSZoneResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "listAllByDNSZoneNextResults", resp, "Failure responding to next results request") + return } return } @@ -465,6 +470,7 @@ func (client RecordSetsClient) ListByDNSZone(ctx context.Context, resourceGroupN result.rslr, err = client.ListByDNSZoneResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "ListByDNSZone", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -535,6 +541,7 @@ func (client RecordSetsClient) listByDNSZoneNextResults(ctx context.Context, las result, err = client.ListByDNSZoneResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "listByDNSZoneNextResults", resp, "Failure responding to next results request") + return } return } @@ -592,6 +599,7 @@ func (client RecordSetsClient) ListByType(ctx context.Context, resourceGroupName result.rslr, err = client.ListByTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "ListByType", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -663,6 +671,7 @@ func (client RecordSetsClient) listByTypeNextResults(ctx context.Context, lastRe result, err = client.ListByTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "listByTypeNextResults", resp, "Failure responding to next results request") + return } return } @@ -719,6 +728,7 @@ func (client RecordSetsClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/dns/mgmt/2018-05-01/dns/resourcereference.go b/services/dns/mgmt/2018-05-01/dns/resourcereference.go index 9f0ded44e975..2523d4376ddd 100644 --- a/services/dns/mgmt/2018-05-01/dns/resourcereference.go +++ b/services/dns/mgmt/2018-05-01/dns/resourcereference.go @@ -72,6 +72,7 @@ func (client ResourceReferenceClient) GetByTargetResources(ctx context.Context, result, err = client.GetByTargetResourcesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ResourceReferenceClient", "GetByTargetResources", resp, "Failure responding to request") + return } return diff --git a/services/dns/mgmt/2018-05-01/dns/zones.go b/services/dns/mgmt/2018-05-01/dns/zones.go index 17a65d23c72b..0e055da97071 100644 --- a/services/dns/mgmt/2018-05-01/dns/zones.go +++ b/services/dns/mgmt/2018-05-01/dns/zones.go @@ -77,6 +77,7 @@ func (client ZonesClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -243,6 +244,7 @@ func (client ZonesClient) Get(ctx context.Context, resourceGroupName string, zon result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +320,7 @@ func (client ZonesClient) List(ctx context.Context, top *int32) (result ZoneList result.zlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "List", resp, "Failure responding to request") + return } if result.zlr.hasNextLink() && result.zlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -383,6 +386,7 @@ func (client ZonesClient) listNextResults(ctx context.Context, lastResults ZoneL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -435,6 +439,7 @@ func (client ZonesClient) ListByResourceGroup(ctx context.Context, resourceGroup result.zlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.zlr.hasNextLink() && result.zlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -501,6 +506,7 @@ func (client ZonesClient) listByResourceGroupNextResults(ctx context.Context, la result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -555,6 +561,7 @@ func (client ZonesClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/domainservices/mgmt/2017-01-01/aad/domainserviceoperations.go b/services/domainservices/mgmt/2017-01-01/aad/domainserviceoperations.go index 5f13582b1fa3..fc8939c9f058 100644 --- a/services/domainservices/mgmt/2017-01-01/aad/domainserviceoperations.go +++ b/services/domainservices/mgmt/2017-01-01/aad/domainserviceoperations.go @@ -71,6 +71,7 @@ func (client DomainServiceOperationsClient) List(ctx context.Context) (result Op result.oelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.DomainServiceOperationsClient", "List", resp, "Failure responding to request") + return } if result.oelr.hasNextLink() && result.oelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client DomainServiceOperationsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.DomainServiceOperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/domainservices/mgmt/2017-01-01/aad/domainservices.go b/services/domainservices/mgmt/2017-01-01/aad/domainservices.go index d974374d2579..c508273ef623 100644 --- a/services/domainservices/mgmt/2017-01-01/aad/domainservices.go +++ b/services/domainservices/mgmt/2017-01-01/aad/domainservices.go @@ -254,6 +254,7 @@ func (client DomainServicesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.DomainServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -328,6 +329,7 @@ func (client DomainServicesClient) List(ctx context.Context) (result DomainServi result.dslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.DomainServicesClient", "List", resp, "Failure responding to request") + return } if result.dslr.hasNextLink() && result.dslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -390,6 +392,7 @@ func (client DomainServicesClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.DomainServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -451,6 +454,7 @@ func (client DomainServicesClient) ListByResourceGroup(ctx context.Context, reso result.dslr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.DomainServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dslr.hasNextLink() && result.dslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -514,6 +518,7 @@ func (client DomainServicesClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.DomainServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/domainservices/mgmt/2017-06-01/aad/domainserviceoperations.go b/services/domainservices/mgmt/2017-06-01/aad/domainserviceoperations.go index 0c34f912335d..80ef922fae8d 100644 --- a/services/domainservices/mgmt/2017-06-01/aad/domainserviceoperations.go +++ b/services/domainservices/mgmt/2017-06-01/aad/domainserviceoperations.go @@ -71,6 +71,7 @@ func (client DomainServiceOperationsClient) List(ctx context.Context) (result Op result.oelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.DomainServiceOperationsClient", "List", resp, "Failure responding to request") + return } if result.oelr.hasNextLink() && result.oelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client DomainServiceOperationsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.DomainServiceOperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/domainservices/mgmt/2017-06-01/aad/domainservices.go b/services/domainservices/mgmt/2017-06-01/aad/domainservices.go index f77b4ea14355..d85294272d12 100644 --- a/services/domainservices/mgmt/2017-06-01/aad/domainservices.go +++ b/services/domainservices/mgmt/2017-06-01/aad/domainservices.go @@ -254,6 +254,7 @@ func (client DomainServicesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.DomainServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -328,6 +329,7 @@ func (client DomainServicesClient) List(ctx context.Context) (result DomainServi result.dslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.DomainServicesClient", "List", resp, "Failure responding to request") + return } if result.dslr.hasNextLink() && result.dslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -390,6 +392,7 @@ func (client DomainServicesClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.DomainServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -451,6 +454,7 @@ func (client DomainServicesClient) ListByResourceGroup(ctx context.Context, reso result.dslr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.DomainServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dslr.hasNextLink() && result.dslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -514,6 +518,7 @@ func (client DomainServicesClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.DomainServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/domainservices/mgmt/2017-06-01/aad/oucontainer.go b/services/domainservices/mgmt/2017-06-01/aad/oucontainer.go index 45c8a3547306..61c9962bf316 100644 --- a/services/domainservices/mgmt/2017-06-01/aad/oucontainer.go +++ b/services/domainservices/mgmt/2017-06-01/aad/oucontainer.go @@ -257,6 +257,7 @@ func (client OuContainerClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.OuContainerClient", "Get", resp, "Failure responding to request") + return } return @@ -343,6 +344,7 @@ func (client OuContainerClient) List(ctx context.Context, resourceGroupName stri result.oclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.OuContainerClient", "List", resp, "Failure responding to request") + return } if result.oclr.hasNextLink() && result.oclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -407,6 +409,7 @@ func (client OuContainerClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.OuContainerClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/domainservices/mgmt/2017-06-01/aad/oucontaineroperations.go b/services/domainservices/mgmt/2017-06-01/aad/oucontaineroperations.go index d3a975dea95f..e69ed1f5c2e1 100644 --- a/services/domainservices/mgmt/2017-06-01/aad/oucontaineroperations.go +++ b/services/domainservices/mgmt/2017-06-01/aad/oucontaineroperations.go @@ -71,6 +71,7 @@ func (client OuContainerOperationsClient) List(ctx context.Context) (result Oper result.oelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.OuContainerOperationsClient", "List", resp, "Failure responding to request") + return } if result.oelr.hasNextLink() && result.oelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OuContainerOperationsClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.OuContainerOperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/domainservices/mgmt/2020-01-01/aad/domainserviceoperations.go b/services/domainservices/mgmt/2020-01-01/aad/domainserviceoperations.go index e49a6363737e..2db7da9822d2 100644 --- a/services/domainservices/mgmt/2020-01-01/aad/domainserviceoperations.go +++ b/services/domainservices/mgmt/2020-01-01/aad/domainserviceoperations.go @@ -71,6 +71,7 @@ func (client DomainServiceOperationsClient) List(ctx context.Context) (result Op result.oelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.DomainServiceOperationsClient", "List", resp, "Failure responding to request") + return } if result.oelr.hasNextLink() && result.oelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client DomainServiceOperationsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.DomainServiceOperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/domainservices/mgmt/2020-01-01/aad/domainservices.go b/services/domainservices/mgmt/2020-01-01/aad/domainservices.go index 37eeb6092f5d..49af06fde9a7 100644 --- a/services/domainservices/mgmt/2020-01-01/aad/domainservices.go +++ b/services/domainservices/mgmt/2020-01-01/aad/domainservices.go @@ -254,6 +254,7 @@ func (client DomainServicesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.DomainServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -328,6 +329,7 @@ func (client DomainServicesClient) List(ctx context.Context) (result DomainServi result.dslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.DomainServicesClient", "List", resp, "Failure responding to request") + return } if result.dslr.hasNextLink() && result.dslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -390,6 +392,7 @@ func (client DomainServicesClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.DomainServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -451,6 +454,7 @@ func (client DomainServicesClient) ListByResourceGroup(ctx context.Context, reso result.dslr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.DomainServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dslr.hasNextLink() && result.dslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -514,6 +518,7 @@ func (client DomainServicesClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.DomainServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/domainservices/mgmt/2020-01-01/aad/oucontainer.go b/services/domainservices/mgmt/2020-01-01/aad/oucontainer.go index 340681690891..b512ae9f3737 100644 --- a/services/domainservices/mgmt/2020-01-01/aad/oucontainer.go +++ b/services/domainservices/mgmt/2020-01-01/aad/oucontainer.go @@ -257,6 +257,7 @@ func (client OuContainerClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.OuContainerClient", "Get", resp, "Failure responding to request") + return } return @@ -343,6 +344,7 @@ func (client OuContainerClient) List(ctx context.Context, resourceGroupName stri result.oclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.OuContainerClient", "List", resp, "Failure responding to request") + return } if result.oclr.hasNextLink() && result.oclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -407,6 +409,7 @@ func (client OuContainerClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.OuContainerClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/domainservices/mgmt/2020-01-01/aad/oucontaineroperations.go b/services/domainservices/mgmt/2020-01-01/aad/oucontaineroperations.go index 6d63db8ee0bc..5254c0e0b662 100644 --- a/services/domainservices/mgmt/2020-01-01/aad/oucontaineroperations.go +++ b/services/domainservices/mgmt/2020-01-01/aad/oucontaineroperations.go @@ -71,6 +71,7 @@ func (client OuContainerOperationsClient) List(ctx context.Context) (result Oper result.oelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.OuContainerOperationsClient", "List", resp, "Failure responding to request") + return } if result.oelr.hasNextLink() && result.oelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OuContainerOperationsClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "aad.OuContainerOperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/eventgrid/2018-01-01/eventgrid/client.go b/services/eventgrid/2018-01-01/eventgrid/client.go index 7b1e6790d714..a9f4402999f3 100644 --- a/services/eventgrid/2018-01-01/eventgrid/client.go +++ b/services/eventgrid/2018-01-01/eventgrid/client.go @@ -83,6 +83,7 @@ func (client BaseClient) PublishCloudEventEvents(ctx context.Context, topicHostn result, err = client.PublishCloudEventEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.BaseClient", "PublishCloudEventEvents", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client BaseClient) PublishCustomEventEvents(ctx context.Context, topicHost result, err = client.PublishCustomEventEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.BaseClient", "PublishCustomEventEvents", resp, "Failure responding to request") + return } return @@ -243,6 +245,7 @@ func (client BaseClient) PublishEvents(ctx context.Context, topicHostname string result, err = client.PublishEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.BaseClient", "PublishEvents", resp, "Failure responding to request") + return } return diff --git a/services/eventgrid/mgmt/2018-01-01/eventgrid/eventsubscriptions.go b/services/eventgrid/mgmt/2018-01-01/eventgrid/eventsubscriptions.go index d5185f009570..49d59bc8293e 100644 --- a/services/eventgrid/mgmt/2018-01-01/eventgrid/eventsubscriptions.go +++ b/services/eventgrid/mgmt/2018-01-01/eventgrid/eventsubscriptions.go @@ -246,6 +246,7 @@ func (client EventSubscriptionsClient) Get(ctx context.Context, scope string, ev result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -327,6 +328,7 @@ func (client EventSubscriptionsClient) GetFullURL(ctx context.Context, scope str result, err = client.GetFullURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "GetFullURL", resp, "Failure responding to request") + return } return @@ -403,6 +405,7 @@ func (client EventSubscriptionsClient) ListByResource(ctx context.Context, resou result, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListByResource", resp, "Failure responding to request") + return } return @@ -479,6 +482,7 @@ func (client EventSubscriptionsClient) ListGlobalByResourceGroup(ctx context.Con result, err = client.ListGlobalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalByResourceGroup", resp, "Failure responding to request") + return } return @@ -554,6 +558,7 @@ func (client EventSubscriptionsClient) ListGlobalByResourceGroupForTopicType(ctx result, err = client.ListGlobalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalByResourceGroupForTopicType", resp, "Failure responding to request") + return } return @@ -626,6 +631,7 @@ func (client EventSubscriptionsClient) ListGlobalBySubscription(ctx context.Cont result, err = client.ListGlobalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalBySubscription", resp, "Failure responding to request") + return } return @@ -699,6 +705,7 @@ func (client EventSubscriptionsClient) ListGlobalBySubscriptionForTopicType(ctx result, err = client.ListGlobalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalBySubscriptionForTopicType", resp, "Failure responding to request") + return } return @@ -774,6 +781,7 @@ func (client EventSubscriptionsClient) ListRegionalByResourceGroup(ctx context.C result, err = client.ListRegionalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalByResourceGroup", resp, "Failure responding to request") + return } return @@ -851,6 +859,7 @@ func (client EventSubscriptionsClient) ListRegionalByResourceGroupForTopicType(c result, err = client.ListRegionalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalByResourceGroupForTopicType", resp, "Failure responding to request") + return } return @@ -926,6 +935,7 @@ func (client EventSubscriptionsClient) ListRegionalBySubscription(ctx context.Co result, err = client.ListRegionalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalBySubscription", resp, "Failure responding to request") + return } return @@ -1001,6 +1011,7 @@ func (client EventSubscriptionsClient) ListRegionalBySubscriptionForTopicType(ct result, err = client.ListRegionalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalBySubscriptionForTopicType", resp, "Failure responding to request") + return } return diff --git a/services/eventgrid/mgmt/2018-01-01/eventgrid/operations.go b/services/eventgrid/mgmt/2018-01-01/eventgrid/operations.go index 9c92c0be9e5f..b3593f6a0a85 100644 --- a/services/eventgrid/mgmt/2018-01-01/eventgrid/operations.go +++ b/services/eventgrid/mgmt/2018-01-01/eventgrid/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/eventgrid/mgmt/2018-01-01/eventgrid/topics.go b/services/eventgrid/mgmt/2018-01-01/eventgrid/topics.go index 76c5708778be..74a122dcb9e8 100644 --- a/services/eventgrid/mgmt/2018-01-01/eventgrid/topics.go +++ b/services/eventgrid/mgmt/2018-01-01/eventgrid/topics.go @@ -225,6 +225,7 @@ func (client TopicsClient) Get(ctx context.Context, resourceGroupName string, to result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client TopicsClient) ListByResourceGroup(ctx context.Context, resourceGrou result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -370,6 +372,7 @@ func (client TopicsClient) ListBySubscription(ctx context.Context) (result Topic result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -445,6 +448,7 @@ func (client TopicsClient) ListEventTypes(ctx context.Context, resourceGroupName result, err = client.ListEventTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListEventTypes", resp, "Failure responding to request") + return } return @@ -522,6 +526,7 @@ func (client TopicsClient) ListSharedAccessKeys(ctx context.Context, resourceGro result, err = client.ListSharedAccessKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListSharedAccessKeys", resp, "Failure responding to request") + return } return @@ -604,6 +609,7 @@ func (client TopicsClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/eventgrid/mgmt/2018-01-01/eventgrid/topictypes.go b/services/eventgrid/mgmt/2018-01-01/eventgrid/topictypes.go index c0712d9ab13a..98835fe418be 100644 --- a/services/eventgrid/mgmt/2018-01-01/eventgrid/topictypes.go +++ b/services/eventgrid/mgmt/2018-01-01/eventgrid/topictypes.go @@ -71,6 +71,7 @@ func (client TopicTypesClient) Get(ctx context.Context, topicTypeName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "Get", resp, "Failure responding to request") + return } return @@ -141,6 +142,7 @@ func (client TopicTypesClient) List(ctx context.Context) (result TopicTypesListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "List", resp, "Failure responding to request") + return } return @@ -209,6 +211,7 @@ func (client TopicTypesClient) ListEventTypes(ctx context.Context, topicTypeName result, err = client.ListEventTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "ListEventTypes", resp, "Failure responding to request") + return } return diff --git a/services/eventgrid/mgmt/2019-01-01/eventgrid/eventsubscriptions.go b/services/eventgrid/mgmt/2019-01-01/eventgrid/eventsubscriptions.go index d6e4ec76559c..cdaf89a572f3 100644 --- a/services/eventgrid/mgmt/2019-01-01/eventgrid/eventsubscriptions.go +++ b/services/eventgrid/mgmt/2019-01-01/eventgrid/eventsubscriptions.go @@ -246,6 +246,7 @@ func (client EventSubscriptionsClient) Get(ctx context.Context, scope string, ev result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -327,6 +328,7 @@ func (client EventSubscriptionsClient) GetFullURL(ctx context.Context, scope str result, err = client.GetFullURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "GetFullURL", resp, "Failure responding to request") + return } return @@ -403,6 +405,7 @@ func (client EventSubscriptionsClient) ListByResource(ctx context.Context, resou result, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListByResource", resp, "Failure responding to request") + return } return @@ -479,6 +482,7 @@ func (client EventSubscriptionsClient) ListGlobalByResourceGroup(ctx context.Con result, err = client.ListGlobalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalByResourceGroup", resp, "Failure responding to request") + return } return @@ -554,6 +558,7 @@ func (client EventSubscriptionsClient) ListGlobalByResourceGroupForTopicType(ctx result, err = client.ListGlobalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalByResourceGroupForTopicType", resp, "Failure responding to request") + return } return @@ -626,6 +631,7 @@ func (client EventSubscriptionsClient) ListGlobalBySubscription(ctx context.Cont result, err = client.ListGlobalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalBySubscription", resp, "Failure responding to request") + return } return @@ -699,6 +705,7 @@ func (client EventSubscriptionsClient) ListGlobalBySubscriptionForTopicType(ctx result, err = client.ListGlobalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalBySubscriptionForTopicType", resp, "Failure responding to request") + return } return @@ -774,6 +781,7 @@ func (client EventSubscriptionsClient) ListRegionalByResourceGroup(ctx context.C result, err = client.ListRegionalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalByResourceGroup", resp, "Failure responding to request") + return } return @@ -851,6 +859,7 @@ func (client EventSubscriptionsClient) ListRegionalByResourceGroupForTopicType(c result, err = client.ListRegionalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalByResourceGroupForTopicType", resp, "Failure responding to request") + return } return @@ -926,6 +935,7 @@ func (client EventSubscriptionsClient) ListRegionalBySubscription(ctx context.Co result, err = client.ListRegionalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalBySubscription", resp, "Failure responding to request") + return } return @@ -1001,6 +1011,7 @@ func (client EventSubscriptionsClient) ListRegionalBySubscriptionForTopicType(ct result, err = client.ListRegionalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalBySubscriptionForTopicType", resp, "Failure responding to request") + return } return diff --git a/services/eventgrid/mgmt/2019-01-01/eventgrid/operations.go b/services/eventgrid/mgmt/2019-01-01/eventgrid/operations.go index 9ecde051635c..925cdba6f3ab 100644 --- a/services/eventgrid/mgmt/2019-01-01/eventgrid/operations.go +++ b/services/eventgrid/mgmt/2019-01-01/eventgrid/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/eventgrid/mgmt/2019-01-01/eventgrid/topics.go b/services/eventgrid/mgmt/2019-01-01/eventgrid/topics.go index 16ed3258f8f6..7d8ceba15ae3 100644 --- a/services/eventgrid/mgmt/2019-01-01/eventgrid/topics.go +++ b/services/eventgrid/mgmt/2019-01-01/eventgrid/topics.go @@ -225,6 +225,7 @@ func (client TopicsClient) Get(ctx context.Context, resourceGroupName string, to result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client TopicsClient) ListByResourceGroup(ctx context.Context, resourceGrou result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -370,6 +372,7 @@ func (client TopicsClient) ListBySubscription(ctx context.Context) (result Topic result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -445,6 +448,7 @@ func (client TopicsClient) ListEventTypes(ctx context.Context, resourceGroupName result, err = client.ListEventTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListEventTypes", resp, "Failure responding to request") + return } return @@ -522,6 +526,7 @@ func (client TopicsClient) ListSharedAccessKeys(ctx context.Context, resourceGro result, err = client.ListSharedAccessKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListSharedAccessKeys", resp, "Failure responding to request") + return } return @@ -604,6 +609,7 @@ func (client TopicsClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/eventgrid/mgmt/2019-01-01/eventgrid/topictypes.go b/services/eventgrid/mgmt/2019-01-01/eventgrid/topictypes.go index a48d5dcfd5e6..3636667cf6e0 100644 --- a/services/eventgrid/mgmt/2019-01-01/eventgrid/topictypes.go +++ b/services/eventgrid/mgmt/2019-01-01/eventgrid/topictypes.go @@ -71,6 +71,7 @@ func (client TopicTypesClient) Get(ctx context.Context, topicTypeName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "Get", resp, "Failure responding to request") + return } return @@ -141,6 +142,7 @@ func (client TopicTypesClient) List(ctx context.Context) (result TopicTypesListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "List", resp, "Failure responding to request") + return } return @@ -209,6 +211,7 @@ func (client TopicTypesClient) ListEventTypes(ctx context.Context, topicTypeName result, err = client.ListEventTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "ListEventTypes", resp, "Failure responding to request") + return } return diff --git a/services/eventgrid/mgmt/2019-06-01/eventgrid/domains.go b/services/eventgrid/mgmt/2019-06-01/eventgrid/domains.go index 1222dbcc1cc7..65d56264039e 100644 --- a/services/eventgrid/mgmt/2019-06-01/eventgrid/domains.go +++ b/services/eventgrid/mgmt/2019-06-01/eventgrid/domains.go @@ -225,6 +225,7 @@ func (client DomainsClient) Get(ctx context.Context, resourceGroupName string, d result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client DomainsClient) ListByResourceGroup(ctx context.Context, resourceGro result.dlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +379,7 @@ func (client DomainsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -435,6 +438,7 @@ func (client DomainsClient) ListBySubscription(ctx context.Context, filter strin result.dlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -503,6 +507,7 @@ func (client DomainsClient) listBySubscriptionNextResults(ctx context.Context, l result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -554,6 +559,7 @@ func (client DomainsClient) ListSharedAccessKeys(ctx context.Context, resourceGr result, err = client.ListSharedAccessKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "ListSharedAccessKeys", resp, "Failure responding to request") + return } return @@ -636,6 +642,7 @@ func (client DomainsClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/eventgrid/mgmt/2019-06-01/eventgrid/domaintopics.go b/services/eventgrid/mgmt/2019-06-01/eventgrid/domaintopics.go index 9ef7e3ed442c..497cfc3654d0 100644 --- a/services/eventgrid/mgmt/2019-06-01/eventgrid/domaintopics.go +++ b/services/eventgrid/mgmt/2019-06-01/eventgrid/domaintopics.go @@ -226,6 +226,7 @@ func (client DomainTopicsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainTopicsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client DomainTopicsClient) ListByDomain(ctx context.Context, resourceGroup result.dtlr, err = client.ListByDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainTopicsClient", "ListByDomain", resp, "Failure responding to request") + return } if result.dtlr.hasNextLink() && result.dtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client DomainTopicsClient) listByDomainNextResults(ctx context.Context, la result, err = client.ListByDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainTopicsClient", "listByDomainNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/eventgrid/mgmt/2019-06-01/eventgrid/eventsubscriptions.go b/services/eventgrid/mgmt/2019-06-01/eventgrid/eventsubscriptions.go index ecc1c39db11d..96efe590a44b 100644 --- a/services/eventgrid/mgmt/2019-06-01/eventgrid/eventsubscriptions.go +++ b/services/eventgrid/mgmt/2019-06-01/eventgrid/eventsubscriptions.go @@ -246,6 +246,7 @@ func (client EventSubscriptionsClient) Get(ctx context.Context, scope string, ev result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -327,6 +328,7 @@ func (client EventSubscriptionsClient) GetFullURL(ctx context.Context, scope str result, err = client.GetFullURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "GetFullURL", resp, "Failure responding to request") + return } return @@ -411,6 +413,7 @@ func (client EventSubscriptionsClient) ListByDomainTopic(ctx context.Context, re result.eslr, err = client.ListByDomainTopicResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListByDomainTopic", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -482,6 +485,7 @@ func (client EventSubscriptionsClient) listByDomainTopicNextResults(ctx context. result, err = client.ListByDomainTopicResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listByDomainTopicNextResults", resp, "Failure responding to next results request") + return } return } @@ -544,6 +548,7 @@ func (client EventSubscriptionsClient) ListByResource(ctx context.Context, resou result.eslr, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListByResource", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -616,6 +621,7 @@ func (client EventSubscriptionsClient) listByResourceNextResults(ctx context.Con result, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listByResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -676,6 +682,7 @@ func (client EventSubscriptionsClient) ListGlobalByResourceGroup(ctx context.Con result.eslr, err = client.ListGlobalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalByResourceGroup", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -745,6 +752,7 @@ func (client EventSubscriptionsClient) listGlobalByResourceGroupNextResults(ctx result, err = client.ListGlobalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listGlobalByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -806,6 +814,7 @@ func (client EventSubscriptionsClient) ListGlobalByResourceGroupForTopicType(ctx result.eslr, err = client.ListGlobalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalByResourceGroupForTopicType", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -876,6 +885,7 @@ func (client EventSubscriptionsClient) listGlobalByResourceGroupForTopicTypeNext result, err = client.ListGlobalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listGlobalByResourceGroupForTopicTypeNextResults", resp, "Failure responding to next results request") + return } return } @@ -934,6 +944,7 @@ func (client EventSubscriptionsClient) ListGlobalBySubscription(ctx context.Cont result.eslr, err = client.ListGlobalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalBySubscription", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1002,6 +1013,7 @@ func (client EventSubscriptionsClient) listGlobalBySubscriptionNextResults(ctx c result, err = client.ListGlobalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listGlobalBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1062,6 +1074,7 @@ func (client EventSubscriptionsClient) ListGlobalBySubscriptionForTopicType(ctx result.eslr, err = client.ListGlobalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalBySubscriptionForTopicType", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1131,6 +1144,7 @@ func (client EventSubscriptionsClient) listGlobalBySubscriptionForTopicTypeNextR result, err = client.ListGlobalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listGlobalBySubscriptionForTopicTypeNextResults", resp, "Failure responding to next results request") + return } return } @@ -1192,6 +1206,7 @@ func (client EventSubscriptionsClient) ListRegionalByResourceGroup(ctx context.C result.eslr, err = client.ListRegionalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalByResourceGroup", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1262,6 +1277,7 @@ func (client EventSubscriptionsClient) listRegionalByResourceGroupNextResults(ct result, err = client.ListRegionalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listRegionalByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1324,6 +1340,7 @@ func (client EventSubscriptionsClient) ListRegionalByResourceGroupForTopicType(c result.eslr, err = client.ListRegionalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalByResourceGroupForTopicType", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1395,6 +1412,7 @@ func (client EventSubscriptionsClient) listRegionalByResourceGroupForTopicTypeNe result, err = client.ListRegionalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listRegionalByResourceGroupForTopicTypeNextResults", resp, "Failure responding to next results request") + return } return } @@ -1454,6 +1472,7 @@ func (client EventSubscriptionsClient) ListRegionalBySubscription(ctx context.Co result.eslr, err = client.ListRegionalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalBySubscription", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1523,6 +1542,7 @@ func (client EventSubscriptionsClient) listRegionalBySubscriptionNextResults(ctx result, err = client.ListRegionalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listRegionalBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1584,6 +1604,7 @@ func (client EventSubscriptionsClient) ListRegionalBySubscriptionForTopicType(ct result.eslr, err = client.ListRegionalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalBySubscriptionForTopicType", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1654,6 +1675,7 @@ func (client EventSubscriptionsClient) listRegionalBySubscriptionForTopicTypeNex result, err = client.ListRegionalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listRegionalBySubscriptionForTopicTypeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/eventgrid/mgmt/2019-06-01/eventgrid/operations.go b/services/eventgrid/mgmt/2019-06-01/eventgrid/operations.go index 0613b8ce2286..52f92904a066 100644 --- a/services/eventgrid/mgmt/2019-06-01/eventgrid/operations.go +++ b/services/eventgrid/mgmt/2019-06-01/eventgrid/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/eventgrid/mgmt/2019-06-01/eventgrid/topics.go b/services/eventgrid/mgmt/2019-06-01/eventgrid/topics.go index 8e1ae415aea0..cdb3fe59527a 100644 --- a/services/eventgrid/mgmt/2019-06-01/eventgrid/topics.go +++ b/services/eventgrid/mgmt/2019-06-01/eventgrid/topics.go @@ -225,6 +225,7 @@ func (client TopicsClient) Get(ctx context.Context, resourceGroupName string, to result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client TopicsClient) ListByResourceGroup(ctx context.Context, resourceGrou result.tlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +379,7 @@ func (client TopicsClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -435,6 +438,7 @@ func (client TopicsClient) ListBySubscription(ctx context.Context, filter string result.tlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -503,6 +507,7 @@ func (client TopicsClient) listBySubscriptionNextResults(ctx context.Context, la result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -556,6 +561,7 @@ func (client TopicsClient) ListEventTypes(ctx context.Context, resourceGroupName result, err = client.ListEventTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListEventTypes", resp, "Failure responding to request") + return } return @@ -633,6 +639,7 @@ func (client TopicsClient) ListSharedAccessKeys(ctx context.Context, resourceGro result, err = client.ListSharedAccessKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListSharedAccessKeys", resp, "Failure responding to request") + return } return @@ -715,6 +722,7 @@ func (client TopicsClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/eventgrid/mgmt/2019-06-01/eventgrid/topictypes.go b/services/eventgrid/mgmt/2019-06-01/eventgrid/topictypes.go index 90ec9988a103..2e542d7f2a5f 100644 --- a/services/eventgrid/mgmt/2019-06-01/eventgrid/topictypes.go +++ b/services/eventgrid/mgmt/2019-06-01/eventgrid/topictypes.go @@ -71,6 +71,7 @@ func (client TopicTypesClient) Get(ctx context.Context, topicTypeName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "Get", resp, "Failure responding to request") + return } return @@ -141,6 +142,7 @@ func (client TopicTypesClient) List(ctx context.Context) (result TopicTypesListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "List", resp, "Failure responding to request") + return } return @@ -209,6 +211,7 @@ func (client TopicTypesClient) ListEventTypes(ctx context.Context, topicTypeName result, err = client.ListEventTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "ListEventTypes", resp, "Failure responding to request") + return } return diff --git a/services/eventgrid/mgmt/2020-06-01/eventgrid/domains.go b/services/eventgrid/mgmt/2020-06-01/eventgrid/domains.go index 4775de1c0bf1..8432607be0db 100644 --- a/services/eventgrid/mgmt/2020-06-01/eventgrid/domains.go +++ b/services/eventgrid/mgmt/2020-06-01/eventgrid/domains.go @@ -225,6 +225,7 @@ func (client DomainsClient) Get(ctx context.Context, resourceGroupName string, d result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client DomainsClient) ListByResourceGroup(ctx context.Context, resourceGro result.dlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +379,7 @@ func (client DomainsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -435,6 +438,7 @@ func (client DomainsClient) ListBySubscription(ctx context.Context, filter strin result.dlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -503,6 +507,7 @@ func (client DomainsClient) listBySubscriptionNextResults(ctx context.Context, l result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -554,6 +559,7 @@ func (client DomainsClient) ListSharedAccessKeys(ctx context.Context, resourceGr result, err = client.ListSharedAccessKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "ListSharedAccessKeys", resp, "Failure responding to request") + return } return @@ -636,6 +642,7 @@ func (client DomainsClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/eventgrid/mgmt/2020-06-01/eventgrid/domaintopics.go b/services/eventgrid/mgmt/2020-06-01/eventgrid/domaintopics.go index 34a648d47a8e..7b73786f3d75 100644 --- a/services/eventgrid/mgmt/2020-06-01/eventgrid/domaintopics.go +++ b/services/eventgrid/mgmt/2020-06-01/eventgrid/domaintopics.go @@ -226,6 +226,7 @@ func (client DomainTopicsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainTopicsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client DomainTopicsClient) ListByDomain(ctx context.Context, resourceGroup result.dtlr, err = client.ListByDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainTopicsClient", "ListByDomain", resp, "Failure responding to request") + return } if result.dtlr.hasNextLink() && result.dtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client DomainTopicsClient) listByDomainNextResults(ctx context.Context, la result, err = client.ListByDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainTopicsClient", "listByDomainNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/eventgrid/mgmt/2020-06-01/eventgrid/eventsubscriptions.go b/services/eventgrid/mgmt/2020-06-01/eventgrid/eventsubscriptions.go index c48b360fb0bb..f7b0996245be 100644 --- a/services/eventgrid/mgmt/2020-06-01/eventgrid/eventsubscriptions.go +++ b/services/eventgrid/mgmt/2020-06-01/eventgrid/eventsubscriptions.go @@ -246,6 +246,7 @@ func (client EventSubscriptionsClient) Get(ctx context.Context, scope string, ev result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -327,6 +328,7 @@ func (client EventSubscriptionsClient) GetFullURL(ctx context.Context, scope str result, err = client.GetFullURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "GetFullURL", resp, "Failure responding to request") + return } return @@ -411,6 +413,7 @@ func (client EventSubscriptionsClient) ListByDomainTopic(ctx context.Context, re result.eslr, err = client.ListByDomainTopicResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListByDomainTopic", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -482,6 +485,7 @@ func (client EventSubscriptionsClient) listByDomainTopicNextResults(ctx context. result, err = client.ListByDomainTopicResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listByDomainTopicNextResults", resp, "Failure responding to next results request") + return } return } @@ -544,6 +548,7 @@ func (client EventSubscriptionsClient) ListByResource(ctx context.Context, resou result.eslr, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListByResource", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -616,6 +621,7 @@ func (client EventSubscriptionsClient) listByResourceNextResults(ctx context.Con result, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listByResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -676,6 +682,7 @@ func (client EventSubscriptionsClient) ListGlobalByResourceGroup(ctx context.Con result.eslr, err = client.ListGlobalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalByResourceGroup", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -745,6 +752,7 @@ func (client EventSubscriptionsClient) listGlobalByResourceGroupNextResults(ctx result, err = client.ListGlobalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listGlobalByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -806,6 +814,7 @@ func (client EventSubscriptionsClient) ListGlobalByResourceGroupForTopicType(ctx result.eslr, err = client.ListGlobalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalByResourceGroupForTopicType", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -876,6 +885,7 @@ func (client EventSubscriptionsClient) listGlobalByResourceGroupForTopicTypeNext result, err = client.ListGlobalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listGlobalByResourceGroupForTopicTypeNextResults", resp, "Failure responding to next results request") + return } return } @@ -934,6 +944,7 @@ func (client EventSubscriptionsClient) ListGlobalBySubscription(ctx context.Cont result.eslr, err = client.ListGlobalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalBySubscription", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1002,6 +1013,7 @@ func (client EventSubscriptionsClient) listGlobalBySubscriptionNextResults(ctx c result, err = client.ListGlobalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listGlobalBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1062,6 +1074,7 @@ func (client EventSubscriptionsClient) ListGlobalBySubscriptionForTopicType(ctx result.eslr, err = client.ListGlobalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalBySubscriptionForTopicType", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1131,6 +1144,7 @@ func (client EventSubscriptionsClient) listGlobalBySubscriptionForTopicTypeNextR result, err = client.ListGlobalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listGlobalBySubscriptionForTopicTypeNextResults", resp, "Failure responding to next results request") + return } return } @@ -1192,6 +1206,7 @@ func (client EventSubscriptionsClient) ListRegionalByResourceGroup(ctx context.C result.eslr, err = client.ListRegionalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalByResourceGroup", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1262,6 +1277,7 @@ func (client EventSubscriptionsClient) listRegionalByResourceGroupNextResults(ct result, err = client.ListRegionalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listRegionalByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1324,6 +1340,7 @@ func (client EventSubscriptionsClient) ListRegionalByResourceGroupForTopicType(c result.eslr, err = client.ListRegionalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalByResourceGroupForTopicType", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1395,6 +1412,7 @@ func (client EventSubscriptionsClient) listRegionalByResourceGroupForTopicTypeNe result, err = client.ListRegionalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listRegionalByResourceGroupForTopicTypeNextResults", resp, "Failure responding to next results request") + return } return } @@ -1454,6 +1472,7 @@ func (client EventSubscriptionsClient) ListRegionalBySubscription(ctx context.Co result.eslr, err = client.ListRegionalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalBySubscription", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1523,6 +1542,7 @@ func (client EventSubscriptionsClient) listRegionalBySubscriptionNextResults(ctx result, err = client.ListRegionalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listRegionalBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1584,6 +1604,7 @@ func (client EventSubscriptionsClient) ListRegionalBySubscriptionForTopicType(ct result.eslr, err = client.ListRegionalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalBySubscriptionForTopicType", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1654,6 +1675,7 @@ func (client EventSubscriptionsClient) listRegionalBySubscriptionForTopicTypeNex result, err = client.ListRegionalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listRegionalBySubscriptionForTopicTypeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/eventgrid/mgmt/2020-06-01/eventgrid/operations.go b/services/eventgrid/mgmt/2020-06-01/eventgrid/operations.go index 7aec75620bba..ebd338df754b 100644 --- a/services/eventgrid/mgmt/2020-06-01/eventgrid/operations.go +++ b/services/eventgrid/mgmt/2020-06-01/eventgrid/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/eventgrid/mgmt/2020-06-01/eventgrid/privateendpointconnections.go b/services/eventgrid/mgmt/2020-06-01/eventgrid/privateendpointconnections.go index b316ec59baca..30332f2f2aa9 100644 --- a/services/eventgrid/mgmt/2020-06-01/eventgrid/privateendpointconnections.go +++ b/services/eventgrid/mgmt/2020-06-01/eventgrid/privateendpointconnections.go @@ -153,6 +153,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -240,6 +241,7 @@ func (client PrivateEndpointConnectionsClient) ListByResource(ctx context.Contex result.peclr, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PrivateEndpointConnectionsClient", "ListByResource", resp, "Failure responding to request") + return } if result.peclr.hasNextLink() && result.peclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -311,6 +313,7 @@ func (client PrivateEndpointConnectionsClient) listByResourceNextResults(ctx con result, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PrivateEndpointConnectionsClient", "listByResourceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/eventgrid/mgmt/2020-06-01/eventgrid/privatelinkresources.go b/services/eventgrid/mgmt/2020-06-01/eventgrid/privatelinkresources.go index 0d7b4452ad45..dcdc21728ca3 100644 --- a/services/eventgrid/mgmt/2020-06-01/eventgrid/privatelinkresources.go +++ b/services/eventgrid/mgmt/2020-06-01/eventgrid/privatelinkresources.go @@ -75,6 +75,7 @@ func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PrivateLinkResourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client PrivateLinkResourcesClient) ListByResource(ctx context.Context, res result.plrlr, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PrivateLinkResourcesClient", "ListByResource", resp, "Failure responding to request") + return } if result.plrlr.hasNextLink() && result.plrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -233,6 +235,7 @@ func (client PrivateLinkResourcesClient) listByResourceNextResults(ctx context.C result, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PrivateLinkResourcesClient", "listByResourceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/eventgrid/mgmt/2020-06-01/eventgrid/topics.go b/services/eventgrid/mgmt/2020-06-01/eventgrid/topics.go index 8568123e1376..d0e6f80891c1 100644 --- a/services/eventgrid/mgmt/2020-06-01/eventgrid/topics.go +++ b/services/eventgrid/mgmt/2020-06-01/eventgrid/topics.go @@ -225,6 +225,7 @@ func (client TopicsClient) Get(ctx context.Context, resourceGroupName string, to result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client TopicsClient) ListByResourceGroup(ctx context.Context, resourceGrou result.tlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +379,7 @@ func (client TopicsClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -435,6 +438,7 @@ func (client TopicsClient) ListBySubscription(ctx context.Context, filter string result.tlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -503,6 +507,7 @@ func (client TopicsClient) listBySubscriptionNextResults(ctx context.Context, la result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -556,6 +561,7 @@ func (client TopicsClient) ListEventTypes(ctx context.Context, resourceGroupName result, err = client.ListEventTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListEventTypes", resp, "Failure responding to request") + return } return @@ -633,6 +639,7 @@ func (client TopicsClient) ListSharedAccessKeys(ctx context.Context, resourceGro result, err = client.ListSharedAccessKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListSharedAccessKeys", resp, "Failure responding to request") + return } return @@ -715,6 +722,7 @@ func (client TopicsClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/eventgrid/mgmt/2020-06-01/eventgrid/topictypes.go b/services/eventgrid/mgmt/2020-06-01/eventgrid/topictypes.go index c61510f94aec..2662e9bfa7ee 100644 --- a/services/eventgrid/mgmt/2020-06-01/eventgrid/topictypes.go +++ b/services/eventgrid/mgmt/2020-06-01/eventgrid/topictypes.go @@ -71,6 +71,7 @@ func (client TopicTypesClient) Get(ctx context.Context, topicTypeName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "Get", resp, "Failure responding to request") + return } return @@ -141,6 +142,7 @@ func (client TopicTypesClient) List(ctx context.Context) (result TopicTypesListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "List", resp, "Failure responding to request") + return } return @@ -209,6 +211,7 @@ func (client TopicTypesClient) ListEventTypes(ctx context.Context, topicTypeName result, err = client.ListEventTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "ListEventTypes", resp, "Failure responding to request") + return } return diff --git a/services/eventhub/mgmt/2015-08-01/eventhub/consumergroups.go b/services/eventhub/mgmt/2015-08-01/eventhub/consumergroups.go index b5679c4e2dda..dc4362b94dc3 100644 --- a/services/eventhub/mgmt/2015-08-01/eventhub/consumergroups.go +++ b/services/eventhub/mgmt/2015-08-01/eventhub/consumergroups.go @@ -94,6 +94,7 @@ func (client ConsumerGroupsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.ConsumerGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -191,6 +192,7 @@ func (client ConsumerGroupsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.ConsumerGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -285,6 +287,7 @@ func (client ConsumerGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.ConsumerGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -378,6 +381,7 @@ func (client ConsumerGroupsClient) ListAll(ctx context.Context, resourceGroupNam result.cglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.ConsumerGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.cglr.hasNextLink() && result.cglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -443,6 +447,7 @@ func (client ConsumerGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.ConsumerGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/eventhub/mgmt/2015-08-01/eventhub/eventhubs.go b/services/eventhub/mgmt/2015-08-01/eventhub/eventhubs.go index e6157037d686..85243461c980 100644 --- a/services/eventhub/mgmt/2015-08-01/eventhub/eventhubs.go +++ b/services/eventhub/mgmt/2015-08-01/eventhub/eventhubs.go @@ -90,6 +90,7 @@ func (client EventHubsClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client EventHubsClient) CreateOrUpdateAuthorizationRule(ctx context.Contex result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -283,6 +285,7 @@ func (client EventHubsClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "Delete", resp, "Failure responding to request") + return } return @@ -376,6 +379,7 @@ func (client EventHubsClient) DeleteAuthorizationRule(ctx context.Context, resou result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -466,6 +470,7 @@ func (client EventHubsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "Get", resp, "Failure responding to request") + return } return @@ -560,6 +565,7 @@ func (client EventHubsClient) GetAuthorizationRule(ctx context.Context, resource result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -648,6 +654,7 @@ func (client EventHubsClient) ListAll(ctx context.Context, resourceGroupName str result.lr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "ListAll", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -712,6 +719,7 @@ func (client EventHubsClient) listAllNextResults(ctx context.Context, lastResult result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -778,6 +786,7 @@ func (client EventHubsClient) ListAuthorizationRules(ctx context.Context, resour result.saarlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.saarlr.hasNextLink() && result.saarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -843,6 +852,7 @@ func (client EventHubsClient) listAuthorizationRulesNextResults(ctx context.Cont result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -912,6 +922,7 @@ func (client EventHubsClient) ListKeys(ctx context.Context, resourceGroupName st result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -1007,6 +1018,7 @@ func (client EventHubsClient) PostAuthorizationRule(ctx context.Context, resourc result, err = client.PostAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "PostAuthorizationRule", resp, "Failure responding to request") + return } return @@ -1103,6 +1115,7 @@ func (client EventHubsClient) RegenerateKeys(ctx context.Context, resourceGroupN result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "RegenerateKeys", resp, "Failure responding to request") + return } return diff --git a/services/eventhub/mgmt/2015-08-01/eventhub/namespaces.go b/services/eventhub/mgmt/2015-08-01/eventhub/namespaces.go index e11670480fa2..622cc4d0baf5 100644 --- a/services/eventhub/mgmt/2015-08-01/eventhub/namespaces.go +++ b/services/eventhub/mgmt/2015-08-01/eventhub/namespaces.go @@ -78,6 +78,7 @@ func (client NamespacesClient) CheckNameAvailability(ctx context.Context, parame result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -262,6 +263,7 @@ func (client NamespacesClient) CreateOrUpdateAuthorizationRule(ctx context.Conte result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -438,6 +440,7 @@ func (client NamespacesClient) DeleteAuthorizationRule(ctx context.Context, reso result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -523,6 +526,7 @@ func (client NamespacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "Get", resp, "Failure responding to request") + return } return @@ -612,6 +616,7 @@ func (client NamespacesClient) GetAuthorizationRule(ctx context.Context, resourc result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -699,6 +704,7 @@ func (client NamespacesClient) ListAuthorizationRules(ctx context.Context, resou result.saarlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.saarlr.hasNextLink() && result.saarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -763,6 +769,7 @@ func (client NamespacesClient) listAuthorizationRulesNextResults(ctx context.Con result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -821,6 +828,7 @@ func (client NamespacesClient) ListByResourceGroup(ctx context.Context, resource result.nlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.nlr.hasNextLink() && result.nlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -884,6 +892,7 @@ func (client NamespacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -933,6 +942,7 @@ func (client NamespacesClient) ListBySubscription(ctx context.Context) (result N result.nlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.nlr.hasNextLink() && result.nlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -995,6 +1005,7 @@ func (client NamespacesClient) listBySubscriptionNextResults(ctx context.Context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1060,6 +1071,7 @@ func (client NamespacesClient) ListKeys(ctx context.Context, resourceGroupName s result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -1151,6 +1163,7 @@ func (client NamespacesClient) RegenerateKeys(ctx context.Context, resourceGroup result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "RegenerateKeys", resp, "Failure responding to request") + return } return @@ -1241,6 +1254,7 @@ func (client NamespacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/eventhub/mgmt/2015-08-01/eventhub/operations.go b/services/eventhub/mgmt/2015-08-01/eventhub/operations.go index f3e9b7720eba..0c96ea2dd5f0 100644 --- a/services/eventhub/mgmt/2015-08-01/eventhub/operations.go +++ b/services/eventhub/mgmt/2015-08-01/eventhub/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/eventhub/mgmt/2017-04-01/eventhub/consumergroups.go b/services/eventhub/mgmt/2017-04-01/eventhub/consumergroups.go index 73b65e7d91ea..124e7e57c850 100644 --- a/services/eventhub/mgmt/2017-04-01/eventhub/consumergroups.go +++ b/services/eventhub/mgmt/2017-04-01/eventhub/consumergroups.go @@ -92,6 +92,7 @@ func (client ConsumerGroupsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.ConsumerGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -189,6 +190,7 @@ func (client ConsumerGroupsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.ConsumerGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -283,6 +285,7 @@ func (client ConsumerGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.ConsumerGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -390,6 +393,7 @@ func (client ConsumerGroupsClient) ListByEventHub(ctx context.Context, resourceG result.cglr, err = client.ListByEventHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.ConsumerGroupsClient", "ListByEventHub", resp, "Failure responding to request") + return } if result.cglr.hasNextLink() && result.cglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -461,6 +465,7 @@ func (client ConsumerGroupsClient) listByEventHubNextResults(ctx context.Context result, err = client.ListByEventHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.ConsumerGroupsClient", "listByEventHubNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/eventhub/mgmt/2017-04-01/eventhub/disasterrecoveryconfigs.go b/services/eventhub/mgmt/2017-04-01/eventhub/disasterrecoveryconfigs.go index 0349403ddf39..0e8966fe005c 100644 --- a/services/eventhub/mgmt/2017-04-01/eventhub/disasterrecoveryconfigs.go +++ b/services/eventhub/mgmt/2017-04-01/eventhub/disasterrecoveryconfigs.go @@ -89,6 +89,7 @@ func (client DisasterRecoveryConfigsClient) BreakPairing(ctx context.Context, re result, err = client.BreakPairingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.DisasterRecoveryConfigsClient", "BreakPairing", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client DisasterRecoveryConfigsClient) CheckNameAvailability(ctx context.Co result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.DisasterRecoveryConfigsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -269,6 +271,7 @@ func (client DisasterRecoveryConfigsClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.DisasterRecoveryConfigsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -361,6 +364,7 @@ func (client DisasterRecoveryConfigsClient) Delete(ctx context.Context, resource result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.DisasterRecoveryConfigsClient", "Delete", resp, "Failure responding to request") + return } return @@ -450,6 +454,7 @@ func (client DisasterRecoveryConfigsClient) FailOver(ctx context.Context, resour result, err = client.FailOverResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.DisasterRecoveryConfigsClient", "FailOver", resp, "Failure responding to request") + return } return @@ -539,6 +544,7 @@ func (client DisasterRecoveryConfigsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.DisasterRecoveryConfigsClient", "Get", resp, "Failure responding to request") + return } return @@ -632,6 +638,7 @@ func (client DisasterRecoveryConfigsClient) GetAuthorizationRule(ctx context.Con result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.DisasterRecoveryConfigsClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -720,6 +727,7 @@ func (client DisasterRecoveryConfigsClient) List(ctx context.Context, resourceGr result.adrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.DisasterRecoveryConfigsClient", "List", resp, "Failure responding to request") + return } if result.adrlr.hasNextLink() && result.adrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -784,6 +792,7 @@ func (client DisasterRecoveryConfigsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.DisasterRecoveryConfigsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -850,6 +859,7 @@ func (client DisasterRecoveryConfigsClient) ListAuthorizationRules(ctx context.C result.arlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.DisasterRecoveryConfigsClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.arlr.hasNextLink() && result.arlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -915,6 +925,7 @@ func (client DisasterRecoveryConfigsClient) listAuthorizationRulesNextResults(ct result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.DisasterRecoveryConfigsClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -983,6 +994,7 @@ func (client DisasterRecoveryConfigsClient) ListKeys(ctx context.Context, resour result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.DisasterRecoveryConfigsClient", "ListKeys", resp, "Failure responding to request") + return } return diff --git a/services/eventhub/mgmt/2017-04-01/eventhub/eventhubs.go b/services/eventhub/mgmt/2017-04-01/eventhub/eventhubs.go index 9ac79cd5a90e..6597ac505a0c 100644 --- a/services/eventhub/mgmt/2017-04-01/eventhub/eventhubs.go +++ b/services/eventhub/mgmt/2017-04-01/eventhub/eventhubs.go @@ -105,6 +105,7 @@ func (client EventHubsClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -205,6 +206,7 @@ func (client EventHubsClient) CreateOrUpdateAuthorizationRule(ctx context.Contex result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -298,6 +300,7 @@ func (client EventHubsClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "Delete", resp, "Failure responding to request") + return } return @@ -390,6 +393,7 @@ func (client EventHubsClient) DeleteAuthorizationRule(ctx context.Context, resou result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -480,6 +484,7 @@ func (client EventHubsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "Get", resp, "Failure responding to request") + return } return @@ -573,6 +578,7 @@ func (client EventHubsClient) GetAuthorizationRule(ctx context.Context, resource result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -665,6 +671,7 @@ func (client EventHubsClient) ListAuthorizationRules(ctx context.Context, resour result.arlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.arlr.hasNextLink() && result.arlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -730,6 +737,7 @@ func (client EventHubsClient) listAuthorizationRulesNextResults(ctx context.Cont result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -806,6 +814,7 @@ func (client EventHubsClient) ListByNamespace(ctx context.Context, resourceGroup result.lr, err = client.ListByNamespaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "ListByNamespace", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -876,6 +885,7 @@ func (client EventHubsClient) listByNamespaceNextResults(ctx context.Context, la result, err = client.ListByNamespaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "listByNamespaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -944,6 +954,7 @@ func (client EventHubsClient) ListKeys(ctx context.Context, resourceGroupName st result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -1039,6 +1050,7 @@ func (client EventHubsClient) RegenerateKeys(ctx context.Context, resourceGroupN result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "RegenerateKeys", resp, "Failure responding to request") + return } return diff --git a/services/eventhub/mgmt/2017-04-01/eventhub/namespaces.go b/services/eventhub/mgmt/2017-04-01/eventhub/namespaces.go index 0f6764c03227..8a50a9d05567 100644 --- a/services/eventhub/mgmt/2017-04-01/eventhub/namespaces.go +++ b/services/eventhub/mgmt/2017-04-01/eventhub/namespaces.go @@ -78,6 +78,7 @@ func (client NamespacesClient) CheckNameAvailability(ctx context.Context, parame result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -272,6 +273,7 @@ func (client NamespacesClient) CreateOrUpdateAuthorizationRule(ctx context.Conte result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -361,6 +363,7 @@ func (client NamespacesClient) CreateOrUpdateNetworkRuleSet(ctx context.Context, result, err = client.CreateOrUpdateNetworkRuleSetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "CreateOrUpdateNetworkRuleSet", resp, "Failure responding to request") + return } return @@ -535,6 +538,7 @@ func (client NamespacesClient) DeleteAuthorizationRule(ctx context.Context, reso result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -620,6 +624,7 @@ func (client NamespacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "Get", resp, "Failure responding to request") + return } return @@ -708,6 +713,7 @@ func (client NamespacesClient) GetAuthorizationRule(ctx context.Context, resourc result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -794,6 +800,7 @@ func (client NamespacesClient) GetMessagingPlan(ctx context.Context, resourceGro result, err = client.GetMessagingPlanResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "GetMessagingPlan", resp, "Failure responding to request") + return } return @@ -879,6 +886,7 @@ func (client NamespacesClient) GetNetworkRuleSet(ctx context.Context, resourceGr result, err = client.GetNetworkRuleSetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "GetNetworkRuleSet", resp, "Failure responding to request") + return } return @@ -952,6 +960,7 @@ func (client NamespacesClient) List(ctx context.Context) (result EHNamespaceList result.enlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "List", resp, "Failure responding to request") + return } if result.enlr.hasNextLink() && result.enlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1014,6 +1023,7 @@ func (client NamespacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1076,6 +1086,7 @@ func (client NamespacesClient) ListAuthorizationRules(ctx context.Context, resou result.arlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.arlr.hasNextLink() && result.arlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1140,6 +1151,7 @@ func (client NamespacesClient) listAuthorizationRulesNextResults(ctx context.Con result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1198,6 +1210,7 @@ func (client NamespacesClient) ListByResourceGroup(ctx context.Context, resource result.enlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.enlr.hasNextLink() && result.enlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1261,6 +1274,7 @@ func (client NamespacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1325,6 +1339,7 @@ func (client NamespacesClient) ListKeys(ctx context.Context, resourceGroupName s result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -1412,6 +1427,7 @@ func (client NamespacesClient) ListNetworkRuleSets(ctx context.Context, resource result.nrslr, err = client.ListNetworkRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "ListNetworkRuleSets", resp, "Failure responding to request") + return } if result.nrslr.hasNextLink() && result.nrslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1476,6 +1492,7 @@ func (client NamespacesClient) listNetworkRuleSetsNextResults(ctx context.Contex result, err = client.ListNetworkRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "listNetworkRuleSetsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1541,6 +1558,7 @@ func (client NamespacesClient) RegenerateKeys(ctx context.Context, resourceGroup result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "RegenerateKeys", resp, "Failure responding to request") + return } return @@ -1631,6 +1649,7 @@ func (client NamespacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/eventhub/mgmt/2017-04-01/eventhub/operations.go b/services/eventhub/mgmt/2017-04-01/eventhub/operations.go index 2444774cd595..56b187b8cd3e 100644 --- a/services/eventhub/mgmt/2017-04-01/eventhub/operations.go +++ b/services/eventhub/mgmt/2017-04-01/eventhub/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/eventhub/mgmt/2017-04-01/eventhub/regions.go b/services/eventhub/mgmt/2017-04-01/eventhub/regions.go index bc0b6f4c77f6..7c6112ef9bce 100644 --- a/services/eventhub/mgmt/2017-04-01/eventhub/regions.go +++ b/services/eventhub/mgmt/2017-04-01/eventhub/regions.go @@ -80,6 +80,7 @@ func (client RegionsClient) ListBySku(ctx context.Context, sku string) (result M result.mrlr, err = client.ListBySkuResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.RegionsClient", "ListBySku", resp, "Failure responding to request") + return } if result.mrlr.hasNextLink() && result.mrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client RegionsClient) listBySkuNextResults(ctx context.Context, lastResult result, err = client.ListBySkuResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.RegionsClient", "listBySkuNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2019-04-01/frontdoor/client.go b/services/frontdoor/mgmt/2019-04-01/frontdoor/client.go index 741ed0d1ec9f..d4d32d6e37a4 100644 --- a/services/frontdoor/mgmt/2019-04-01/frontdoor/client.go +++ b/services/frontdoor/mgmt/2019-04-01/frontdoor/client.go @@ -92,6 +92,7 @@ func (client BaseClient) CheckFrontDoorNameAvailability(ctx context.Context, che result, err = client.CheckFrontDoorNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.BaseClient", "CheckFrontDoorNameAvailability", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client BaseClient) CheckFrontDoorNameAvailabilityWithSubscription(ctx cont result, err = client.CheckFrontDoorNameAvailabilityWithSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.BaseClient", "CheckFrontDoorNameAvailabilityWithSubscription", resp, "Failure responding to request") + return } return diff --git a/services/frontdoor/mgmt/2019-04-01/frontdoor/frontdoors.go b/services/frontdoor/mgmt/2019-04-01/frontdoor/frontdoors.go index d1670b809bbb..b42f3ff52999 100644 --- a/services/frontdoor/mgmt/2019-04-01/frontdoor/frontdoors.go +++ b/services/frontdoor/mgmt/2019-04-01/frontdoor/frontdoors.go @@ -261,6 +261,7 @@ func (client FrontDoorsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "Get", resp, "Failure responding to request") + return } return @@ -334,6 +335,7 @@ func (client FrontDoorsClient) List(ctx context.Context) (result ListResultPage, result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -396,6 +398,7 @@ func (client FrontDoorsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client FrontDoorsClient) ListByResourceGroup(ctx context.Context, resource result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client FrontDoorsClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -585,6 +590,7 @@ func (client FrontDoorsClient) ValidateCustomDomain(ctx context.Context, resourc result, err = client.ValidateCustomDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ValidateCustomDomain", resp, "Failure responding to request") + return } return diff --git a/services/frontdoor/mgmt/2019-04-01/frontdoor/frontendendpoints.go b/services/frontdoor/mgmt/2019-04-01/frontdoor/frontendendpoints.go index f265afb376f8..14ba57665486 100644 --- a/services/frontdoor/mgmt/2019-04-01/frontdoor/frontendendpoints.go +++ b/services/frontdoor/mgmt/2019-04-01/frontdoor/frontendendpoints.go @@ -278,6 +278,7 @@ func (client FrontendEndpointsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -367,6 +368,7 @@ func (client FrontendEndpointsClient) ListByFrontDoor(ctx context.Context, resou result.felr, err = client.ListByFrontDoorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "ListByFrontDoor", resp, "Failure responding to request") + return } if result.felr.hasNextLink() && result.felr.IsEmpty() { err = result.NextWithContext(ctx) @@ -431,6 +433,7 @@ func (client FrontendEndpointsClient) listByFrontDoorNextResults(ctx context.Con result, err = client.ListByFrontDoorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "listByFrontDoorNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2019-04-01/frontdoor/managedrulesets.go b/services/frontdoor/mgmt/2019-04-01/frontdoor/managedrulesets.go index 9172fdca90a1..ee608aa3dc98 100644 --- a/services/frontdoor/mgmt/2019-04-01/frontdoor/managedrulesets.go +++ b/services/frontdoor/mgmt/2019-04-01/frontdoor/managedrulesets.go @@ -70,6 +70,7 @@ func (client ManagedRuleSetsClient) List(ctx context.Context) (result ManagedRul result.mrsdl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ManagedRuleSetsClient", "List", resp, "Failure responding to request") + return } if result.mrsdl.hasNextLink() && result.mrsdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client ManagedRuleSetsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ManagedRuleSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2019-04-01/frontdoor/policies.go b/services/frontdoor/mgmt/2019-04-01/frontdoor/policies.go index 3c3bc8956489..c96b6215c7fc 100644 --- a/services/frontdoor/mgmt/2019-04-01/frontdoor/policies.go +++ b/services/frontdoor/mgmt/2019-04-01/frontdoor/policies.go @@ -262,6 +262,7 @@ func (client PoliciesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +346,7 @@ func (client PoliciesClient) List(ctx context.Context, resourceGroupName string) result.wafpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "List", resp, "Failure responding to request") + return } if result.wafpl.hasNextLink() && result.wafpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -408,6 +410,7 @@ func (client PoliciesClient) listNextResults(ctx context.Context, lastResults We result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2019-05-01/frontdoor/client.go b/services/frontdoor/mgmt/2019-05-01/frontdoor/client.go index e2fc988ac9f2..66b37db68ae4 100644 --- a/services/frontdoor/mgmt/2019-05-01/frontdoor/client.go +++ b/services/frontdoor/mgmt/2019-05-01/frontdoor/client.go @@ -92,6 +92,7 @@ func (client BaseClient) CheckFrontDoorNameAvailability(ctx context.Context, che result, err = client.CheckFrontDoorNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.BaseClient", "CheckFrontDoorNameAvailability", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client BaseClient) CheckFrontDoorNameAvailabilityWithSubscription(ctx cont result, err = client.CheckFrontDoorNameAvailabilityWithSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.BaseClient", "CheckFrontDoorNameAvailabilityWithSubscription", resp, "Failure responding to request") + return } return diff --git a/services/frontdoor/mgmt/2019-05-01/frontdoor/frontdoors.go b/services/frontdoor/mgmt/2019-05-01/frontdoor/frontdoors.go index a85a3004dfe1..01e2ecee5c89 100644 --- a/services/frontdoor/mgmt/2019-05-01/frontdoor/frontdoors.go +++ b/services/frontdoor/mgmt/2019-05-01/frontdoor/frontdoors.go @@ -261,6 +261,7 @@ func (client FrontDoorsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "Get", resp, "Failure responding to request") + return } return @@ -334,6 +335,7 @@ func (client FrontDoorsClient) List(ctx context.Context) (result ListResultPage, result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -396,6 +398,7 @@ func (client FrontDoorsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client FrontDoorsClient) ListByResourceGroup(ctx context.Context, resource result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client FrontDoorsClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -585,6 +590,7 @@ func (client FrontDoorsClient) ValidateCustomDomain(ctx context.Context, resourc result, err = client.ValidateCustomDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ValidateCustomDomain", resp, "Failure responding to request") + return } return diff --git a/services/frontdoor/mgmt/2019-05-01/frontdoor/frontendendpoints.go b/services/frontdoor/mgmt/2019-05-01/frontdoor/frontendendpoints.go index 53937a9e9f8a..51d3b19c559b 100644 --- a/services/frontdoor/mgmt/2019-05-01/frontdoor/frontendendpoints.go +++ b/services/frontdoor/mgmt/2019-05-01/frontdoor/frontendendpoints.go @@ -280,6 +280,7 @@ func (client FrontendEndpointsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +370,7 @@ func (client FrontendEndpointsClient) ListByFrontDoor(ctx context.Context, resou result.felr, err = client.ListByFrontDoorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "ListByFrontDoor", resp, "Failure responding to request") + return } if result.felr.hasNextLink() && result.felr.IsEmpty() { err = result.NextWithContext(ctx) @@ -433,6 +435,7 @@ func (client FrontendEndpointsClient) listByFrontDoorNextResults(ctx context.Con result, err = client.ListByFrontDoorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "listByFrontDoorNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2019-05-01/frontdoor/managedrulesets.go b/services/frontdoor/mgmt/2019-05-01/frontdoor/managedrulesets.go index 9172fdca90a1..ee608aa3dc98 100644 --- a/services/frontdoor/mgmt/2019-05-01/frontdoor/managedrulesets.go +++ b/services/frontdoor/mgmt/2019-05-01/frontdoor/managedrulesets.go @@ -70,6 +70,7 @@ func (client ManagedRuleSetsClient) List(ctx context.Context) (result ManagedRul result.mrsdl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ManagedRuleSetsClient", "List", resp, "Failure responding to request") + return } if result.mrsdl.hasNextLink() && result.mrsdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client ManagedRuleSetsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ManagedRuleSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2019-05-01/frontdoor/policies.go b/services/frontdoor/mgmt/2019-05-01/frontdoor/policies.go index 3c3bc8956489..c96b6215c7fc 100644 --- a/services/frontdoor/mgmt/2019-05-01/frontdoor/policies.go +++ b/services/frontdoor/mgmt/2019-05-01/frontdoor/policies.go @@ -262,6 +262,7 @@ func (client PoliciesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +346,7 @@ func (client PoliciesClient) List(ctx context.Context, resourceGroupName string) result.wafpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "List", resp, "Failure responding to request") + return } if result.wafpl.hasNextLink() && result.wafpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -408,6 +410,7 @@ func (client PoliciesClient) listNextResults(ctx context.Context, lastResults We result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2019-10-01/frontdoor/client.go b/services/frontdoor/mgmt/2019-10-01/frontdoor/client.go index e2fc988ac9f2..66b37db68ae4 100644 --- a/services/frontdoor/mgmt/2019-10-01/frontdoor/client.go +++ b/services/frontdoor/mgmt/2019-10-01/frontdoor/client.go @@ -92,6 +92,7 @@ func (client BaseClient) CheckFrontDoorNameAvailability(ctx context.Context, che result, err = client.CheckFrontDoorNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.BaseClient", "CheckFrontDoorNameAvailability", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client BaseClient) CheckFrontDoorNameAvailabilityWithSubscription(ctx cont result, err = client.CheckFrontDoorNameAvailabilityWithSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.BaseClient", "CheckFrontDoorNameAvailabilityWithSubscription", resp, "Failure responding to request") + return } return diff --git a/services/frontdoor/mgmt/2019-10-01/frontdoor/frontdoors.go b/services/frontdoor/mgmt/2019-10-01/frontdoor/frontdoors.go index a85a3004dfe1..01e2ecee5c89 100644 --- a/services/frontdoor/mgmt/2019-10-01/frontdoor/frontdoors.go +++ b/services/frontdoor/mgmt/2019-10-01/frontdoor/frontdoors.go @@ -261,6 +261,7 @@ func (client FrontDoorsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "Get", resp, "Failure responding to request") + return } return @@ -334,6 +335,7 @@ func (client FrontDoorsClient) List(ctx context.Context) (result ListResultPage, result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -396,6 +398,7 @@ func (client FrontDoorsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client FrontDoorsClient) ListByResourceGroup(ctx context.Context, resource result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client FrontDoorsClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -585,6 +590,7 @@ func (client FrontDoorsClient) ValidateCustomDomain(ctx context.Context, resourc result, err = client.ValidateCustomDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ValidateCustomDomain", resp, "Failure responding to request") + return } return diff --git a/services/frontdoor/mgmt/2019-10-01/frontdoor/frontendendpoints.go b/services/frontdoor/mgmt/2019-10-01/frontdoor/frontendendpoints.go index 53937a9e9f8a..51d3b19c559b 100644 --- a/services/frontdoor/mgmt/2019-10-01/frontdoor/frontendendpoints.go +++ b/services/frontdoor/mgmt/2019-10-01/frontdoor/frontendendpoints.go @@ -280,6 +280,7 @@ func (client FrontendEndpointsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +370,7 @@ func (client FrontendEndpointsClient) ListByFrontDoor(ctx context.Context, resou result.felr, err = client.ListByFrontDoorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "ListByFrontDoor", resp, "Failure responding to request") + return } if result.felr.hasNextLink() && result.felr.IsEmpty() { err = result.NextWithContext(ctx) @@ -433,6 +435,7 @@ func (client FrontendEndpointsClient) listByFrontDoorNextResults(ctx context.Con result, err = client.ListByFrontDoorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "listByFrontDoorNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2019-10-01/frontdoor/managedrulesets.go b/services/frontdoor/mgmt/2019-10-01/frontdoor/managedrulesets.go index 6f9d2cffd1b8..758f2ca29708 100644 --- a/services/frontdoor/mgmt/2019-10-01/frontdoor/managedrulesets.go +++ b/services/frontdoor/mgmt/2019-10-01/frontdoor/managedrulesets.go @@ -70,6 +70,7 @@ func (client ManagedRuleSetsClient) List(ctx context.Context) (result ManagedRul result.mrsdl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ManagedRuleSetsClient", "List", resp, "Failure responding to request") + return } if result.mrsdl.hasNextLink() && result.mrsdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client ManagedRuleSetsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ManagedRuleSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2019-10-01/frontdoor/policies.go b/services/frontdoor/mgmt/2019-10-01/frontdoor/policies.go index bc2b5c297798..5b0b4a618d3d 100644 --- a/services/frontdoor/mgmt/2019-10-01/frontdoor/policies.go +++ b/services/frontdoor/mgmt/2019-10-01/frontdoor/policies.go @@ -262,6 +262,7 @@ func (client PoliciesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +346,7 @@ func (client PoliciesClient) List(ctx context.Context, resourceGroupName string) result.wafpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "List", resp, "Failure responding to request") + return } if result.wafpl.hasNextLink() && result.wafpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -408,6 +410,7 @@ func (client PoliciesClient) listNextResults(ctx context.Context, lastResults We result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2019-11-01/frontdoor/client.go b/services/frontdoor/mgmt/2019-11-01/frontdoor/client.go index e2fc988ac9f2..66b37db68ae4 100644 --- a/services/frontdoor/mgmt/2019-11-01/frontdoor/client.go +++ b/services/frontdoor/mgmt/2019-11-01/frontdoor/client.go @@ -92,6 +92,7 @@ func (client BaseClient) CheckFrontDoorNameAvailability(ctx context.Context, che result, err = client.CheckFrontDoorNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.BaseClient", "CheckFrontDoorNameAvailability", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client BaseClient) CheckFrontDoorNameAvailabilityWithSubscription(ctx cont result, err = client.CheckFrontDoorNameAvailabilityWithSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.BaseClient", "CheckFrontDoorNameAvailabilityWithSubscription", resp, "Failure responding to request") + return } return diff --git a/services/frontdoor/mgmt/2019-11-01/frontdoor/experiments.go b/services/frontdoor/mgmt/2019-11-01/frontdoor/experiments.go index a0a33b91623f..581906adbf17 100644 --- a/services/frontdoor/mgmt/2019-11-01/frontdoor/experiments.go +++ b/services/frontdoor/mgmt/2019-11-01/frontdoor/experiments.go @@ -266,6 +266,7 @@ func (client ExperimentsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "Get", resp, "Failure responding to request") + return } return @@ -353,6 +354,7 @@ func (client ExperimentsClient) ListByProfile(ctx context.Context, resourceGroup result.el, err = client.ListByProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "ListByProfile", resp, "Failure responding to request") + return } if result.el.hasNextLink() && result.el.IsEmpty() { err = result.NextWithContext(ctx) @@ -417,6 +419,7 @@ func (client ExperimentsClient) listByProfileNextResults(ctx context.Context, la result, err = client.ListByProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "listByProfileNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2019-11-01/frontdoor/frontdoors.go b/services/frontdoor/mgmt/2019-11-01/frontdoor/frontdoors.go index a85a3004dfe1..01e2ecee5c89 100644 --- a/services/frontdoor/mgmt/2019-11-01/frontdoor/frontdoors.go +++ b/services/frontdoor/mgmt/2019-11-01/frontdoor/frontdoors.go @@ -261,6 +261,7 @@ func (client FrontDoorsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "Get", resp, "Failure responding to request") + return } return @@ -334,6 +335,7 @@ func (client FrontDoorsClient) List(ctx context.Context) (result ListResultPage, result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -396,6 +398,7 @@ func (client FrontDoorsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client FrontDoorsClient) ListByResourceGroup(ctx context.Context, resource result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client FrontDoorsClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -585,6 +590,7 @@ func (client FrontDoorsClient) ValidateCustomDomain(ctx context.Context, resourc result, err = client.ValidateCustomDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ValidateCustomDomain", resp, "Failure responding to request") + return } return diff --git a/services/frontdoor/mgmt/2019-11-01/frontdoor/frontendendpoints.go b/services/frontdoor/mgmt/2019-11-01/frontdoor/frontendendpoints.go index 53937a9e9f8a..51d3b19c559b 100644 --- a/services/frontdoor/mgmt/2019-11-01/frontdoor/frontendendpoints.go +++ b/services/frontdoor/mgmt/2019-11-01/frontdoor/frontendendpoints.go @@ -280,6 +280,7 @@ func (client FrontendEndpointsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +370,7 @@ func (client FrontendEndpointsClient) ListByFrontDoor(ctx context.Context, resou result.felr, err = client.ListByFrontDoorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "ListByFrontDoor", resp, "Failure responding to request") + return } if result.felr.hasNextLink() && result.felr.IsEmpty() { err = result.NextWithContext(ctx) @@ -433,6 +435,7 @@ func (client FrontendEndpointsClient) listByFrontDoorNextResults(ctx context.Con result, err = client.ListByFrontDoorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "listByFrontDoorNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2019-11-01/frontdoor/managedrulesets.go b/services/frontdoor/mgmt/2019-11-01/frontdoor/managedrulesets.go index 6f9d2cffd1b8..758f2ca29708 100644 --- a/services/frontdoor/mgmt/2019-11-01/frontdoor/managedrulesets.go +++ b/services/frontdoor/mgmt/2019-11-01/frontdoor/managedrulesets.go @@ -70,6 +70,7 @@ func (client ManagedRuleSetsClient) List(ctx context.Context) (result ManagedRul result.mrsdl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ManagedRuleSetsClient", "List", resp, "Failure responding to request") + return } if result.mrsdl.hasNextLink() && result.mrsdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client ManagedRuleSetsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ManagedRuleSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2019-11-01/frontdoor/networkexperimentprofiles.go b/services/frontdoor/mgmt/2019-11-01/frontdoor/networkexperimentprofiles.go index bd2d55577755..e880c0c8bba9 100644 --- a/services/frontdoor/mgmt/2019-11-01/frontdoor/networkexperimentprofiles.go +++ b/services/frontdoor/mgmt/2019-11-01/frontdoor/networkexperimentprofiles.go @@ -256,6 +256,7 @@ func (client NetworkExperimentProfilesClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -329,6 +330,7 @@ func (client NetworkExperimentProfilesClient) List(ctx context.Context) (result result.pl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "List", resp, "Failure responding to request") + return } if result.pl.hasNextLink() && result.pl.IsEmpty() { err = result.NextWithContext(ctx) @@ -391,6 +393,7 @@ func (client NetworkExperimentProfilesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -450,6 +453,7 @@ func (client NetworkExperimentProfilesClient) ListByResourceGroup(ctx context.Co result.pl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.pl.hasNextLink() && result.pl.IsEmpty() { err = result.NextWithContext(ctx) @@ -513,6 +517,7 @@ func (client NetworkExperimentProfilesClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2019-11-01/frontdoor/policies.go b/services/frontdoor/mgmt/2019-11-01/frontdoor/policies.go index bc2b5c297798..5b0b4a618d3d 100644 --- a/services/frontdoor/mgmt/2019-11-01/frontdoor/policies.go +++ b/services/frontdoor/mgmt/2019-11-01/frontdoor/policies.go @@ -262,6 +262,7 @@ func (client PoliciesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +346,7 @@ func (client PoliciesClient) List(ctx context.Context, resourceGroupName string) result.wafpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "List", resp, "Failure responding to request") + return } if result.wafpl.hasNextLink() && result.wafpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -408,6 +410,7 @@ func (client PoliciesClient) listNextResults(ctx context.Context, lastResults We result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2019-11-01/frontdoor/preconfiguredendpoints.go b/services/frontdoor/mgmt/2019-11-01/frontdoor/preconfiguredendpoints.go index ce9329958ae5..c853cf220b23 100644 --- a/services/frontdoor/mgmt/2019-11-01/frontdoor/preconfiguredendpoints.go +++ b/services/frontdoor/mgmt/2019-11-01/frontdoor/preconfiguredendpoints.go @@ -85,6 +85,7 @@ func (client PreconfiguredEndpointsClient) List(ctx context.Context, resourceGro result.pel, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PreconfiguredEndpointsClient", "List", resp, "Failure responding to request") + return } if result.pel.hasNextLink() && result.pel.IsEmpty() { err = result.NextWithContext(ctx) @@ -149,6 +150,7 @@ func (client PreconfiguredEndpointsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PreconfiguredEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2019-11-01/frontdoor/reports.go b/services/frontdoor/mgmt/2019-11-01/frontdoor/reports.go index 1ea023ecb610..a17a063a108b 100644 --- a/services/frontdoor/mgmt/2019-11-01/frontdoor/reports.go +++ b/services/frontdoor/mgmt/2019-11-01/frontdoor/reports.go @@ -91,6 +91,7 @@ func (client ReportsClient) GetLatencyScorecards(ctx context.Context, resourceGr result, err = client.GetLatencyScorecardsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ReportsClient", "GetLatencyScorecards", resp, "Failure responding to request") + return } return @@ -194,6 +195,7 @@ func (client ReportsClient) GetTimeseries(ctx context.Context, resourceGroupName result, err = client.GetTimeseriesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ReportsClient", "GetTimeseries", resp, "Failure responding to request") + return } return diff --git a/services/frontdoor/mgmt/2020-01-01/frontdoor/client.go b/services/frontdoor/mgmt/2020-01-01/frontdoor/client.go index e1cfab0cea3d..44cf7f5227b8 100644 --- a/services/frontdoor/mgmt/2020-01-01/frontdoor/client.go +++ b/services/frontdoor/mgmt/2020-01-01/frontdoor/client.go @@ -92,6 +92,7 @@ func (client BaseClient) CheckFrontDoorNameAvailability(ctx context.Context, che result, err = client.CheckFrontDoorNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.BaseClient", "CheckFrontDoorNameAvailability", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client BaseClient) CheckFrontDoorNameAvailabilityWithSubscription(ctx cont result, err = client.CheckFrontDoorNameAvailabilityWithSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.BaseClient", "CheckFrontDoorNameAvailabilityWithSubscription", resp, "Failure responding to request") + return } return diff --git a/services/frontdoor/mgmt/2020-01-01/frontdoor/experiments.go b/services/frontdoor/mgmt/2020-01-01/frontdoor/experiments.go index a0a33b91623f..581906adbf17 100644 --- a/services/frontdoor/mgmt/2020-01-01/frontdoor/experiments.go +++ b/services/frontdoor/mgmt/2020-01-01/frontdoor/experiments.go @@ -266,6 +266,7 @@ func (client ExperimentsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "Get", resp, "Failure responding to request") + return } return @@ -353,6 +354,7 @@ func (client ExperimentsClient) ListByProfile(ctx context.Context, resourceGroup result.el, err = client.ListByProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "ListByProfile", resp, "Failure responding to request") + return } if result.el.hasNextLink() && result.el.IsEmpty() { err = result.NextWithContext(ctx) @@ -417,6 +419,7 @@ func (client ExperimentsClient) listByProfileNextResults(ctx context.Context, la result, err = client.ListByProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "listByProfileNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2020-01-01/frontdoor/frontdoors.go b/services/frontdoor/mgmt/2020-01-01/frontdoor/frontdoors.go index 4fc7e087361f..e3d1ef436964 100644 --- a/services/frontdoor/mgmt/2020-01-01/frontdoor/frontdoors.go +++ b/services/frontdoor/mgmt/2020-01-01/frontdoor/frontdoors.go @@ -261,6 +261,7 @@ func (client FrontDoorsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "Get", resp, "Failure responding to request") + return } return @@ -334,6 +335,7 @@ func (client FrontDoorsClient) List(ctx context.Context) (result ListResultPage, result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -396,6 +398,7 @@ func (client FrontDoorsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client FrontDoorsClient) ListByResourceGroup(ctx context.Context, resource result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client FrontDoorsClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -585,6 +590,7 @@ func (client FrontDoorsClient) ValidateCustomDomain(ctx context.Context, resourc result, err = client.ValidateCustomDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ValidateCustomDomain", resp, "Failure responding to request") + return } return diff --git a/services/frontdoor/mgmt/2020-01-01/frontdoor/frontendendpoints.go b/services/frontdoor/mgmt/2020-01-01/frontdoor/frontendendpoints.go index add379471320..851f834245bb 100644 --- a/services/frontdoor/mgmt/2020-01-01/frontdoor/frontendendpoints.go +++ b/services/frontdoor/mgmt/2020-01-01/frontdoor/frontendendpoints.go @@ -280,6 +280,7 @@ func (client FrontendEndpointsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +370,7 @@ func (client FrontendEndpointsClient) ListByFrontDoor(ctx context.Context, resou result.felr, err = client.ListByFrontDoorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "ListByFrontDoor", resp, "Failure responding to request") + return } if result.felr.hasNextLink() && result.felr.IsEmpty() { err = result.NextWithContext(ctx) @@ -433,6 +435,7 @@ func (client FrontendEndpointsClient) listByFrontDoorNextResults(ctx context.Con result, err = client.ListByFrontDoorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "listByFrontDoorNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2020-01-01/frontdoor/managedrulesets.go b/services/frontdoor/mgmt/2020-01-01/frontdoor/managedrulesets.go index 6f9d2cffd1b8..758f2ca29708 100644 --- a/services/frontdoor/mgmt/2020-01-01/frontdoor/managedrulesets.go +++ b/services/frontdoor/mgmt/2020-01-01/frontdoor/managedrulesets.go @@ -70,6 +70,7 @@ func (client ManagedRuleSetsClient) List(ctx context.Context) (result ManagedRul result.mrsdl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ManagedRuleSetsClient", "List", resp, "Failure responding to request") + return } if result.mrsdl.hasNextLink() && result.mrsdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client ManagedRuleSetsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ManagedRuleSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2020-01-01/frontdoor/networkexperimentprofiles.go b/services/frontdoor/mgmt/2020-01-01/frontdoor/networkexperimentprofiles.go index bd2d55577755..e880c0c8bba9 100644 --- a/services/frontdoor/mgmt/2020-01-01/frontdoor/networkexperimentprofiles.go +++ b/services/frontdoor/mgmt/2020-01-01/frontdoor/networkexperimentprofiles.go @@ -256,6 +256,7 @@ func (client NetworkExperimentProfilesClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -329,6 +330,7 @@ func (client NetworkExperimentProfilesClient) List(ctx context.Context) (result result.pl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "List", resp, "Failure responding to request") + return } if result.pl.hasNextLink() && result.pl.IsEmpty() { err = result.NextWithContext(ctx) @@ -391,6 +393,7 @@ func (client NetworkExperimentProfilesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -450,6 +453,7 @@ func (client NetworkExperimentProfilesClient) ListByResourceGroup(ctx context.Co result.pl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.pl.hasNextLink() && result.pl.IsEmpty() { err = result.NextWithContext(ctx) @@ -513,6 +517,7 @@ func (client NetworkExperimentProfilesClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2020-01-01/frontdoor/policies.go b/services/frontdoor/mgmt/2020-01-01/frontdoor/policies.go index bc2b5c297798..5b0b4a618d3d 100644 --- a/services/frontdoor/mgmt/2020-01-01/frontdoor/policies.go +++ b/services/frontdoor/mgmt/2020-01-01/frontdoor/policies.go @@ -262,6 +262,7 @@ func (client PoliciesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +346,7 @@ func (client PoliciesClient) List(ctx context.Context, resourceGroupName string) result.wafpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "List", resp, "Failure responding to request") + return } if result.wafpl.hasNextLink() && result.wafpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -408,6 +410,7 @@ func (client PoliciesClient) listNextResults(ctx context.Context, lastResults We result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2020-01-01/frontdoor/preconfiguredendpoints.go b/services/frontdoor/mgmt/2020-01-01/frontdoor/preconfiguredendpoints.go index ce9329958ae5..c853cf220b23 100644 --- a/services/frontdoor/mgmt/2020-01-01/frontdoor/preconfiguredendpoints.go +++ b/services/frontdoor/mgmt/2020-01-01/frontdoor/preconfiguredendpoints.go @@ -85,6 +85,7 @@ func (client PreconfiguredEndpointsClient) List(ctx context.Context, resourceGro result.pel, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PreconfiguredEndpointsClient", "List", resp, "Failure responding to request") + return } if result.pel.hasNextLink() && result.pel.IsEmpty() { err = result.NextWithContext(ctx) @@ -149,6 +150,7 @@ func (client PreconfiguredEndpointsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PreconfiguredEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2020-01-01/frontdoor/reports.go b/services/frontdoor/mgmt/2020-01-01/frontdoor/reports.go index 1ea023ecb610..a17a063a108b 100644 --- a/services/frontdoor/mgmt/2020-01-01/frontdoor/reports.go +++ b/services/frontdoor/mgmt/2020-01-01/frontdoor/reports.go @@ -91,6 +91,7 @@ func (client ReportsClient) GetLatencyScorecards(ctx context.Context, resourceGr result, err = client.GetLatencyScorecardsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ReportsClient", "GetLatencyScorecards", resp, "Failure responding to request") + return } return @@ -194,6 +195,7 @@ func (client ReportsClient) GetTimeseries(ctx context.Context, resourceGroupName result, err = client.GetTimeseriesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ReportsClient", "GetTimeseries", resp, "Failure responding to request") + return } return diff --git a/services/frontdoor/mgmt/2020-01-01/frontdoor/rulesengines.go b/services/frontdoor/mgmt/2020-01-01/frontdoor/rulesengines.go index af6dec624300..0261c7e46c22 100644 --- a/services/frontdoor/mgmt/2020-01-01/frontdoor/rulesengines.go +++ b/services/frontdoor/mgmt/2020-01-01/frontdoor/rulesengines.go @@ -282,6 +282,7 @@ func (client RulesEnginesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.RulesEnginesClient", "Get", resp, "Failure responding to request") + return } return @@ -371,6 +372,7 @@ func (client RulesEnginesClient) ListByFrontDoor(ctx context.Context, resourceGr result.relr, err = client.ListByFrontDoorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.RulesEnginesClient", "ListByFrontDoor", resp, "Failure responding to request") + return } if result.relr.hasNextLink() && result.relr.IsEmpty() { err = result.NextWithContext(ctx) @@ -435,6 +437,7 @@ func (client RulesEnginesClient) listByFrontDoorNextResults(ctx context.Context, result, err = client.ListByFrontDoorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.RulesEnginesClient", "listByFrontDoorNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2020-04-01/frontdoor/client.go b/services/frontdoor/mgmt/2020-04-01/frontdoor/client.go index ec23181c31b0..d99d0c26d5fc 100644 --- a/services/frontdoor/mgmt/2020-04-01/frontdoor/client.go +++ b/services/frontdoor/mgmt/2020-04-01/frontdoor/client.go @@ -92,6 +92,7 @@ func (client BaseClient) CheckFrontDoorNameAvailability(ctx context.Context, che result, err = client.CheckFrontDoorNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.BaseClient", "CheckFrontDoorNameAvailability", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client BaseClient) CheckFrontDoorNameAvailabilityWithSubscription(ctx cont result, err = client.CheckFrontDoorNameAvailabilityWithSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.BaseClient", "CheckFrontDoorNameAvailabilityWithSubscription", resp, "Failure responding to request") + return } return diff --git a/services/frontdoor/mgmt/2020-04-01/frontdoor/experiments.go b/services/frontdoor/mgmt/2020-04-01/frontdoor/experiments.go index a0a33b91623f..581906adbf17 100644 --- a/services/frontdoor/mgmt/2020-04-01/frontdoor/experiments.go +++ b/services/frontdoor/mgmt/2020-04-01/frontdoor/experiments.go @@ -266,6 +266,7 @@ func (client ExperimentsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "Get", resp, "Failure responding to request") + return } return @@ -353,6 +354,7 @@ func (client ExperimentsClient) ListByProfile(ctx context.Context, resourceGroup result.el, err = client.ListByProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "ListByProfile", resp, "Failure responding to request") + return } if result.el.hasNextLink() && result.el.IsEmpty() { err = result.NextWithContext(ctx) @@ -417,6 +419,7 @@ func (client ExperimentsClient) listByProfileNextResults(ctx context.Context, la result, err = client.ListByProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "listByProfileNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2020-04-01/frontdoor/frontdoors.go b/services/frontdoor/mgmt/2020-04-01/frontdoor/frontdoors.go index 76a296d65c72..b3572094925d 100644 --- a/services/frontdoor/mgmt/2020-04-01/frontdoor/frontdoors.go +++ b/services/frontdoor/mgmt/2020-04-01/frontdoor/frontdoors.go @@ -261,6 +261,7 @@ func (client FrontDoorsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "Get", resp, "Failure responding to request") + return } return @@ -334,6 +335,7 @@ func (client FrontDoorsClient) List(ctx context.Context) (result ListResultPage, result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -396,6 +398,7 @@ func (client FrontDoorsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client FrontDoorsClient) ListByResourceGroup(ctx context.Context, resource result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client FrontDoorsClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -585,6 +590,7 @@ func (client FrontDoorsClient) ValidateCustomDomain(ctx context.Context, resourc result, err = client.ValidateCustomDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ValidateCustomDomain", resp, "Failure responding to request") + return } return diff --git a/services/frontdoor/mgmt/2020-04-01/frontdoor/frontendendpoints.go b/services/frontdoor/mgmt/2020-04-01/frontdoor/frontendendpoints.go index 817e537ac174..59ebbbe37178 100644 --- a/services/frontdoor/mgmt/2020-04-01/frontdoor/frontendendpoints.go +++ b/services/frontdoor/mgmt/2020-04-01/frontdoor/frontendendpoints.go @@ -280,6 +280,7 @@ func (client FrontendEndpointsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +370,7 @@ func (client FrontendEndpointsClient) ListByFrontDoor(ctx context.Context, resou result.felr, err = client.ListByFrontDoorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "ListByFrontDoor", resp, "Failure responding to request") + return } if result.felr.hasNextLink() && result.felr.IsEmpty() { err = result.NextWithContext(ctx) @@ -433,6 +435,7 @@ func (client FrontendEndpointsClient) listByFrontDoorNextResults(ctx context.Con result, err = client.ListByFrontDoorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "listByFrontDoorNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2020-04-01/frontdoor/managedrulesets.go b/services/frontdoor/mgmt/2020-04-01/frontdoor/managedrulesets.go index 6229c78fcd44..c9de325fa486 100644 --- a/services/frontdoor/mgmt/2020-04-01/frontdoor/managedrulesets.go +++ b/services/frontdoor/mgmt/2020-04-01/frontdoor/managedrulesets.go @@ -70,6 +70,7 @@ func (client ManagedRuleSetsClient) List(ctx context.Context) (result ManagedRul result.mrsdl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ManagedRuleSetsClient", "List", resp, "Failure responding to request") + return } if result.mrsdl.hasNextLink() && result.mrsdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client ManagedRuleSetsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ManagedRuleSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2020-04-01/frontdoor/networkexperimentprofiles.go b/services/frontdoor/mgmt/2020-04-01/frontdoor/networkexperimentprofiles.go index bd2d55577755..e880c0c8bba9 100644 --- a/services/frontdoor/mgmt/2020-04-01/frontdoor/networkexperimentprofiles.go +++ b/services/frontdoor/mgmt/2020-04-01/frontdoor/networkexperimentprofiles.go @@ -256,6 +256,7 @@ func (client NetworkExperimentProfilesClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -329,6 +330,7 @@ func (client NetworkExperimentProfilesClient) List(ctx context.Context) (result result.pl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "List", resp, "Failure responding to request") + return } if result.pl.hasNextLink() && result.pl.IsEmpty() { err = result.NextWithContext(ctx) @@ -391,6 +393,7 @@ func (client NetworkExperimentProfilesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -450,6 +453,7 @@ func (client NetworkExperimentProfilesClient) ListByResourceGroup(ctx context.Co result.pl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.pl.hasNextLink() && result.pl.IsEmpty() { err = result.NextWithContext(ctx) @@ -513,6 +517,7 @@ func (client NetworkExperimentProfilesClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2020-04-01/frontdoor/policies.go b/services/frontdoor/mgmt/2020-04-01/frontdoor/policies.go index 2898ae9a48e9..baf63794f244 100644 --- a/services/frontdoor/mgmt/2020-04-01/frontdoor/policies.go +++ b/services/frontdoor/mgmt/2020-04-01/frontdoor/policies.go @@ -262,6 +262,7 @@ func (client PoliciesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +346,7 @@ func (client PoliciesClient) List(ctx context.Context, resourceGroupName string) result.wafpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "List", resp, "Failure responding to request") + return } if result.wafpl.hasNextLink() && result.wafpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -408,6 +410,7 @@ func (client PoliciesClient) listNextResults(ctx context.Context, lastResults We result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2020-04-01/frontdoor/preconfiguredendpoints.go b/services/frontdoor/mgmt/2020-04-01/frontdoor/preconfiguredendpoints.go index ce9329958ae5..c853cf220b23 100644 --- a/services/frontdoor/mgmt/2020-04-01/frontdoor/preconfiguredendpoints.go +++ b/services/frontdoor/mgmt/2020-04-01/frontdoor/preconfiguredendpoints.go @@ -85,6 +85,7 @@ func (client PreconfiguredEndpointsClient) List(ctx context.Context, resourceGro result.pel, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PreconfiguredEndpointsClient", "List", resp, "Failure responding to request") + return } if result.pel.hasNextLink() && result.pel.IsEmpty() { err = result.NextWithContext(ctx) @@ -149,6 +150,7 @@ func (client PreconfiguredEndpointsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PreconfiguredEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2020-04-01/frontdoor/reports.go b/services/frontdoor/mgmt/2020-04-01/frontdoor/reports.go index 1ea023ecb610..a17a063a108b 100644 --- a/services/frontdoor/mgmt/2020-04-01/frontdoor/reports.go +++ b/services/frontdoor/mgmt/2020-04-01/frontdoor/reports.go @@ -91,6 +91,7 @@ func (client ReportsClient) GetLatencyScorecards(ctx context.Context, resourceGr result, err = client.GetLatencyScorecardsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ReportsClient", "GetLatencyScorecards", resp, "Failure responding to request") + return } return @@ -194,6 +195,7 @@ func (client ReportsClient) GetTimeseries(ctx context.Context, resourceGroupName result, err = client.GetTimeseriesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ReportsClient", "GetTimeseries", resp, "Failure responding to request") + return } return diff --git a/services/frontdoor/mgmt/2020-04-01/frontdoor/rulesengines.go b/services/frontdoor/mgmt/2020-04-01/frontdoor/rulesengines.go index bc095d89696d..70efb5c56538 100644 --- a/services/frontdoor/mgmt/2020-04-01/frontdoor/rulesengines.go +++ b/services/frontdoor/mgmt/2020-04-01/frontdoor/rulesengines.go @@ -282,6 +282,7 @@ func (client RulesEnginesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.RulesEnginesClient", "Get", resp, "Failure responding to request") + return } return @@ -371,6 +372,7 @@ func (client RulesEnginesClient) ListByFrontDoor(ctx context.Context, resourceGr result.relr, err = client.ListByFrontDoorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.RulesEnginesClient", "ListByFrontDoor", resp, "Failure responding to request") + return } if result.relr.hasNextLink() && result.relr.IsEmpty() { err = result.NextWithContext(ctx) @@ -435,6 +437,7 @@ func (client RulesEnginesClient) listByFrontDoorNextResults(ctx context.Context, result, err = client.ListByFrontDoorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.RulesEnginesClient", "listByFrontDoorNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2020-05-01/frontdoor/experiments.go b/services/frontdoor/mgmt/2020-05-01/frontdoor/experiments.go index a0a33b91623f..581906adbf17 100644 --- a/services/frontdoor/mgmt/2020-05-01/frontdoor/experiments.go +++ b/services/frontdoor/mgmt/2020-05-01/frontdoor/experiments.go @@ -266,6 +266,7 @@ func (client ExperimentsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "Get", resp, "Failure responding to request") + return } return @@ -353,6 +354,7 @@ func (client ExperimentsClient) ListByProfile(ctx context.Context, resourceGroup result.el, err = client.ListByProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "ListByProfile", resp, "Failure responding to request") + return } if result.el.hasNextLink() && result.el.IsEmpty() { err = result.NextWithContext(ctx) @@ -417,6 +419,7 @@ func (client ExperimentsClient) listByProfileNextResults(ctx context.Context, la result, err = client.ListByProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "listByProfileNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2020-05-01/frontdoor/frontdoors.go b/services/frontdoor/mgmt/2020-05-01/frontdoor/frontdoors.go index ab46b1602329..a0fbe55f172d 100644 --- a/services/frontdoor/mgmt/2020-05-01/frontdoor/frontdoors.go +++ b/services/frontdoor/mgmt/2020-05-01/frontdoor/frontdoors.go @@ -261,6 +261,7 @@ func (client FrontDoorsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "Get", resp, "Failure responding to request") + return } return @@ -334,6 +335,7 @@ func (client FrontDoorsClient) List(ctx context.Context) (result ListResultPage, result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -396,6 +398,7 @@ func (client FrontDoorsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client FrontDoorsClient) ListByResourceGroup(ctx context.Context, resource result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client FrontDoorsClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -585,6 +590,7 @@ func (client FrontDoorsClient) ValidateCustomDomain(ctx context.Context, resourc result, err = client.ValidateCustomDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ValidateCustomDomain", resp, "Failure responding to request") + return } return diff --git a/services/frontdoor/mgmt/2020-05-01/frontdoor/frontendendpoints.go b/services/frontdoor/mgmt/2020-05-01/frontdoor/frontendendpoints.go index 9caea905804f..3316dc9f1960 100644 --- a/services/frontdoor/mgmt/2020-05-01/frontdoor/frontendendpoints.go +++ b/services/frontdoor/mgmt/2020-05-01/frontdoor/frontendendpoints.go @@ -280,6 +280,7 @@ func (client FrontendEndpointsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +370,7 @@ func (client FrontendEndpointsClient) ListByFrontDoor(ctx context.Context, resou result.felr, err = client.ListByFrontDoorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "ListByFrontDoor", resp, "Failure responding to request") + return } if result.felr.hasNextLink() && result.felr.IsEmpty() { err = result.NextWithContext(ctx) @@ -433,6 +435,7 @@ func (client FrontendEndpointsClient) listByFrontDoorNextResults(ctx context.Con result, err = client.ListByFrontDoorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "listByFrontDoorNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2020-05-01/frontdoor/managedrulesets.go b/services/frontdoor/mgmt/2020-05-01/frontdoor/managedrulesets.go index 6229c78fcd44..c9de325fa486 100644 --- a/services/frontdoor/mgmt/2020-05-01/frontdoor/managedrulesets.go +++ b/services/frontdoor/mgmt/2020-05-01/frontdoor/managedrulesets.go @@ -70,6 +70,7 @@ func (client ManagedRuleSetsClient) List(ctx context.Context) (result ManagedRul result.mrsdl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ManagedRuleSetsClient", "List", resp, "Failure responding to request") + return } if result.mrsdl.hasNextLink() && result.mrsdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client ManagedRuleSetsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ManagedRuleSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2020-05-01/frontdoor/nameavailability.go b/services/frontdoor/mgmt/2020-05-01/frontdoor/nameavailability.go index 8eda4a64f9ca..2e3bb8b57a21 100644 --- a/services/frontdoor/mgmt/2020-05-01/frontdoor/nameavailability.go +++ b/services/frontdoor/mgmt/2020-05-01/frontdoor/nameavailability.go @@ -79,6 +79,7 @@ func (client NameAvailabilityClient) Check(ctx context.Context, checkFrontDoorNa result, err = client.CheckResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.NameAvailabilityClient", "Check", resp, "Failure responding to request") + return } return diff --git a/services/frontdoor/mgmt/2020-05-01/frontdoor/nameavailabilitywithsubscription.go b/services/frontdoor/mgmt/2020-05-01/frontdoor/nameavailabilitywithsubscription.go index aaadd4e64ed5..4cede8172cc2 100644 --- a/services/frontdoor/mgmt/2020-05-01/frontdoor/nameavailabilitywithsubscription.go +++ b/services/frontdoor/mgmt/2020-05-01/frontdoor/nameavailabilitywithsubscription.go @@ -79,6 +79,7 @@ func (client NameAvailabilityWithSubscriptionClient) Check(ctx context.Context, result, err = client.CheckResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.NameAvailabilityWithSubscriptionClient", "Check", resp, "Failure responding to request") + return } return diff --git a/services/frontdoor/mgmt/2020-05-01/frontdoor/networkexperimentprofiles.go b/services/frontdoor/mgmt/2020-05-01/frontdoor/networkexperimentprofiles.go index bd2d55577755..e880c0c8bba9 100644 --- a/services/frontdoor/mgmt/2020-05-01/frontdoor/networkexperimentprofiles.go +++ b/services/frontdoor/mgmt/2020-05-01/frontdoor/networkexperimentprofiles.go @@ -256,6 +256,7 @@ func (client NetworkExperimentProfilesClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -329,6 +330,7 @@ func (client NetworkExperimentProfilesClient) List(ctx context.Context) (result result.pl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "List", resp, "Failure responding to request") + return } if result.pl.hasNextLink() && result.pl.IsEmpty() { err = result.NextWithContext(ctx) @@ -391,6 +393,7 @@ func (client NetworkExperimentProfilesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -450,6 +453,7 @@ func (client NetworkExperimentProfilesClient) ListByResourceGroup(ctx context.Co result.pl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.pl.hasNextLink() && result.pl.IsEmpty() { err = result.NextWithContext(ctx) @@ -513,6 +517,7 @@ func (client NetworkExperimentProfilesClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2020-05-01/frontdoor/policies.go b/services/frontdoor/mgmt/2020-05-01/frontdoor/policies.go index 2898ae9a48e9..baf63794f244 100644 --- a/services/frontdoor/mgmt/2020-05-01/frontdoor/policies.go +++ b/services/frontdoor/mgmt/2020-05-01/frontdoor/policies.go @@ -262,6 +262,7 @@ func (client PoliciesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +346,7 @@ func (client PoliciesClient) List(ctx context.Context, resourceGroupName string) result.wafpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "List", resp, "Failure responding to request") + return } if result.wafpl.hasNextLink() && result.wafpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -408,6 +410,7 @@ func (client PoliciesClient) listNextResults(ctx context.Context, lastResults We result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2020-05-01/frontdoor/preconfiguredendpoints.go b/services/frontdoor/mgmt/2020-05-01/frontdoor/preconfiguredendpoints.go index ce9329958ae5..c853cf220b23 100644 --- a/services/frontdoor/mgmt/2020-05-01/frontdoor/preconfiguredendpoints.go +++ b/services/frontdoor/mgmt/2020-05-01/frontdoor/preconfiguredendpoints.go @@ -85,6 +85,7 @@ func (client PreconfiguredEndpointsClient) List(ctx context.Context, resourceGro result.pel, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PreconfiguredEndpointsClient", "List", resp, "Failure responding to request") + return } if result.pel.hasNextLink() && result.pel.IsEmpty() { err = result.NextWithContext(ctx) @@ -149,6 +150,7 @@ func (client PreconfiguredEndpointsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PreconfiguredEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/frontdoor/mgmt/2020-05-01/frontdoor/reports.go b/services/frontdoor/mgmt/2020-05-01/frontdoor/reports.go index 1ea023ecb610..a17a063a108b 100644 --- a/services/frontdoor/mgmt/2020-05-01/frontdoor/reports.go +++ b/services/frontdoor/mgmt/2020-05-01/frontdoor/reports.go @@ -91,6 +91,7 @@ func (client ReportsClient) GetLatencyScorecards(ctx context.Context, resourceGr result, err = client.GetLatencyScorecardsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ReportsClient", "GetLatencyScorecards", resp, "Failure responding to request") + return } return @@ -194,6 +195,7 @@ func (client ReportsClient) GetTimeseries(ctx context.Context, resourceGroupName result, err = client.GetTimeseriesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.ReportsClient", "GetTimeseries", resp, "Failure responding to request") + return } return diff --git a/services/frontdoor/mgmt/2020-05-01/frontdoor/rulesengines.go b/services/frontdoor/mgmt/2020-05-01/frontdoor/rulesengines.go index 5c724b19abe9..fb18671e3524 100644 --- a/services/frontdoor/mgmt/2020-05-01/frontdoor/rulesengines.go +++ b/services/frontdoor/mgmt/2020-05-01/frontdoor/rulesengines.go @@ -282,6 +282,7 @@ func (client RulesEnginesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.RulesEnginesClient", "Get", resp, "Failure responding to request") + return } return @@ -371,6 +372,7 @@ func (client RulesEnginesClient) ListByFrontDoor(ctx context.Context, resourceGr result.relr, err = client.ListByFrontDoorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.RulesEnginesClient", "ListByFrontDoor", resp, "Failure responding to request") + return } if result.relr.hasNextLink() && result.relr.IsEmpty() { err = result.NextWithContext(ctx) @@ -435,6 +437,7 @@ func (client RulesEnginesClient) listByFrontDoorNextResults(ctx context.Context, result, err = client.ListByFrontDoorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.RulesEnginesClient", "listByFrontDoorNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/graphrbac/1.6/graphrbac/applications.go b/services/graphrbac/1.6/graphrbac/applications.go index 1b0a3f42c799..57abb9c875dc 100644 --- a/services/graphrbac/1.6/graphrbac/applications.go +++ b/services/graphrbac/1.6/graphrbac/applications.go @@ -81,6 +81,7 @@ func (client ApplicationsClient) AddOwner(ctx context.Context, applicationObject result, err = client.AddOwnerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ApplicationsClient", "AddOwner", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client ApplicationsClient) Create(ctx context.Context, parameters Applicat result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ApplicationsClient", "Create", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client ApplicationsClient) Delete(ctx context.Context, applicationObjectID result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ApplicationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -307,6 +310,7 @@ func (client ApplicationsClient) Get(ctx context.Context, applicationObjectID st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ApplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -380,6 +384,7 @@ func (client ApplicationsClient) GetServicePrincipalsIDByAppID(ctx context.Conte result, err = client.GetServicePrincipalsIDByAppIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ApplicationsClient", "GetServicePrincipalsIDByAppID", resp, "Failure responding to request") + return } return @@ -459,6 +464,7 @@ func (client ApplicationsClient) List(ctx context.Context, filter string) (resul result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ApplicationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -553,6 +559,7 @@ func (client ApplicationsClient) ListKeyCredentials(ctx context.Context, applica result, err = client.ListKeyCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ApplicationsClient", "ListKeyCredentials", resp, "Failure responding to request") + return } return @@ -626,6 +633,7 @@ func (client ApplicationsClient) ListNext(ctx context.Context, nextLink string) result, err = client.ListNextResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ApplicationsClient", "ListNext", resp, "Failure responding to request") + return } return @@ -700,6 +708,7 @@ func (client ApplicationsClient) ListOwners(ctx context.Context, applicationObje result.dolr, err = client.ListOwnersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ApplicationsClient", "ListOwners", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -763,6 +772,7 @@ func (client ApplicationsClient) listOwnersNextResults(ctx context.Context, last result, err = client.ListOwnersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ApplicationsClient", "listOwnersNextResults", resp, "Failure responding to next results request") + return } return } @@ -813,6 +823,7 @@ func (client ApplicationsClient) ListPasswordCredentials(ctx context.Context, ap result, err = client.ListPasswordCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ApplicationsClient", "ListPasswordCredentials", resp, "Failure responding to request") + return } return @@ -887,6 +898,7 @@ func (client ApplicationsClient) Patch(ctx context.Context, applicationObjectID result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ApplicationsClient", "Patch", resp, "Failure responding to request") + return } return @@ -962,6 +974,7 @@ func (client ApplicationsClient) RemoveOwner(ctx context.Context, applicationObj result, err = client.RemoveOwnerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ApplicationsClient", "RemoveOwner", resp, "Failure responding to request") + return } return @@ -1036,6 +1049,7 @@ func (client ApplicationsClient) UpdateKeyCredentials(ctx context.Context, appli result, err = client.UpdateKeyCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ApplicationsClient", "UpdateKeyCredentials", resp, "Failure responding to request") + return } return @@ -1111,6 +1125,7 @@ func (client ApplicationsClient) UpdatePasswordCredentials(ctx context.Context, result, err = client.UpdatePasswordCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ApplicationsClient", "UpdatePasswordCredentials", resp, "Failure responding to request") + return } return diff --git a/services/graphrbac/1.6/graphrbac/deletedapplications.go b/services/graphrbac/1.6/graphrbac/deletedapplications.go index cb2dd07d73c9..fab1e010d0a7 100644 --- a/services/graphrbac/1.6/graphrbac/deletedapplications.go +++ b/services/graphrbac/1.6/graphrbac/deletedapplications.go @@ -73,6 +73,7 @@ func (client DeletedApplicationsClient) HardDelete(ctx context.Context, applicat result, err = client.HardDeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.DeletedApplicationsClient", "HardDelete", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DeletedApplicationsClient) List(ctx context.Context, filter string) result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.DeletedApplicationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -245,6 +247,7 @@ func (client DeletedApplicationsClient) ListNext(ctx context.Context, nextLink s result, err = client.ListNextResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.DeletedApplicationsClient", "ListNext", resp, "Failure responding to request") + return } return @@ -318,6 +321,7 @@ func (client DeletedApplicationsClient) Restore(ctx context.Context, objectID st result, err = client.RestoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.DeletedApplicationsClient", "Restore", resp, "Failure responding to request") + return } return diff --git a/services/graphrbac/1.6/graphrbac/domains.go b/services/graphrbac/1.6/graphrbac/domains.go index ace3959ac60f..55e97b20ee30 100644 --- a/services/graphrbac/1.6/graphrbac/domains.go +++ b/services/graphrbac/1.6/graphrbac/domains.go @@ -71,6 +71,7 @@ func (client DomainsClient) Get(ctx context.Context, domainName string) (result result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.DomainsClient", "Get", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client DomainsClient) List(ctx context.Context, filter string) (result Dom result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.DomainsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/graphrbac/1.6/graphrbac/groups.go b/services/graphrbac/1.6/graphrbac/groups.go index 02b021e4d212..8afd14a8bfee 100644 --- a/services/graphrbac/1.6/graphrbac/groups.go +++ b/services/graphrbac/1.6/graphrbac/groups.go @@ -81,6 +81,7 @@ func (client GroupsClient) AddMember(ctx context.Context, groupObjectID string, result, err = client.AddMemberResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.GroupsClient", "AddMember", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client GroupsClient) AddOwner(ctx context.Context, objectID string, parame result, err = client.AddOwnerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.GroupsClient", "AddOwner", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client GroupsClient) Create(ctx context.Context, parameters GroupCreatePar result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.GroupsClient", "Create", resp, "Failure responding to request") + return } return @@ -320,6 +323,7 @@ func (client GroupsClient) Delete(ctx context.Context, objectID string) (result result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.GroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -392,6 +396,7 @@ func (client GroupsClient) Get(ctx context.Context, objectID string) (result ADG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.GroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -471,6 +476,7 @@ func (client GroupsClient) GetGroupMembers(ctx context.Context, objectID string) result.dolr, err = client.GetGroupMembersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.GroupsClient", "GetGroupMembers", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -563,6 +569,7 @@ func (client GroupsClient) GetGroupMembersNext(ctx context.Context, nextLink str result, err = client.GetGroupMembersNextResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.GroupsClient", "GetGroupMembersNext", resp, "Failure responding to request") + return } return @@ -643,6 +650,7 @@ func (client GroupsClient) GetMemberGroups(ctx context.Context, objectID string, result, err = client.GetMemberGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.GroupsClient", "GetMemberGroups", resp, "Failure responding to request") + return } return @@ -726,6 +734,7 @@ func (client GroupsClient) IsMemberOf(ctx context.Context, parameters CheckGroup result, err = client.IsMemberOfResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.GroupsClient", "IsMemberOf", resp, "Failure responding to request") + return } return @@ -806,6 +815,7 @@ func (client GroupsClient) List(ctx context.Context, filter string) (result Grou result.glr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.GroupsClient", "List", resp, "Failure responding to request") + return } if result.glr.hasNextLink() && result.glr.IsEmpty() { err = result.NextWithContext(ctx) @@ -900,6 +910,7 @@ func (client GroupsClient) ListNext(ctx context.Context, nextLink string) (resul result, err = client.ListNextResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.GroupsClient", "ListNext", resp, "Failure responding to request") + return } return @@ -974,6 +985,7 @@ func (client GroupsClient) ListOwners(ctx context.Context, objectID string) (res result.dolr, err = client.ListOwnersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.GroupsClient", "ListOwners", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1037,6 +1049,7 @@ func (client GroupsClient) listOwnersNextResults(ctx context.Context, lastResult result, err = client.ListOwnersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.GroupsClient", "listOwnersNextResults", resp, "Failure responding to next results request") + return } return } @@ -1088,6 +1101,7 @@ func (client GroupsClient) RemoveMember(ctx context.Context, groupObjectID strin result, err = client.RemoveMemberResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.GroupsClient", "RemoveMember", resp, "Failure responding to request") + return } return @@ -1162,6 +1176,7 @@ func (client GroupsClient) RemoveOwner(ctx context.Context, objectID string, own result, err = client.RemoveOwnerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.GroupsClient", "RemoveOwner", resp, "Failure responding to request") + return } return diff --git a/services/graphrbac/1.6/graphrbac/oauth2permissiongrant.go b/services/graphrbac/1.6/graphrbac/oauth2permissiongrant.go index 963bb9a5a1f0..eaf32ad4cd3b 100644 --- a/services/graphrbac/1.6/graphrbac/oauth2permissiongrant.go +++ b/services/graphrbac/1.6/graphrbac/oauth2permissiongrant.go @@ -73,6 +73,7 @@ func (client OAuth2PermissionGrantClient) Create(ctx context.Context, body *OAut result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.OAuth2PermissionGrantClient", "Create", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client OAuth2PermissionGrantClient) Delete(ctx context.Context, objectID s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.OAuth2PermissionGrantClient", "Delete", resp, "Failure responding to request") + return } return @@ -228,6 +230,7 @@ func (client OAuth2PermissionGrantClient) List(ctx context.Context, filter strin result.oa2pglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.OAuth2PermissionGrantClient", "List", resp, "Failure responding to request") + return } if result.oa2pglr.hasNextLink() && result.oa2pglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -322,6 +325,7 @@ func (client OAuth2PermissionGrantClient) ListNext(ctx context.Context, nextLink result, err = client.ListNextResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.OAuth2PermissionGrantClient", "ListNext", resp, "Failure responding to request") + return } return diff --git a/services/graphrbac/1.6/graphrbac/objects.go b/services/graphrbac/1.6/graphrbac/objects.go index 62b103255d81..23988eedf324 100644 --- a/services/graphrbac/1.6/graphrbac/objects.go +++ b/services/graphrbac/1.6/graphrbac/objects.go @@ -79,6 +79,7 @@ func (client ObjectsClient) GetObjectsByObjectIds(ctx context.Context, parameter result.dolr, err = client.GetObjectsByObjectIdsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ObjectsClient", "GetObjectsByObjectIds", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -172,6 +173,7 @@ func (client ObjectsClient) GetObjectsByObjectIdsNext(ctx context.Context, nextL result, err = client.GetObjectsByObjectIdsNextResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ObjectsClient", "GetObjectsByObjectIdsNext", resp, "Failure responding to request") + return } return diff --git a/services/graphrbac/1.6/graphrbac/serviceprincipals.go b/services/graphrbac/1.6/graphrbac/serviceprincipals.go index 3bfdfe9d53d9..ee7ebf8c05be 100644 --- a/services/graphrbac/1.6/graphrbac/serviceprincipals.go +++ b/services/graphrbac/1.6/graphrbac/serviceprincipals.go @@ -80,6 +80,7 @@ func (client ServicePrincipalsClient) Create(ctx context.Context, parameters Ser result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ServicePrincipalsClient", "Create", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client ServicePrincipalsClient) Delete(ctx context.Context, objectID strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ServicePrincipalsClient", "Delete", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client ServicePrincipalsClient) Get(ctx context.Context, objectID string) result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ServicePrincipalsClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +308,7 @@ func (client ServicePrincipalsClient) List(ctx context.Context, filter string) ( result.splr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ServicePrincipalsClient", "List", resp, "Failure responding to request") + return } if result.splr.hasNextLink() && result.splr.IsEmpty() { err = result.NextWithContext(ctx) @@ -399,6 +403,7 @@ func (client ServicePrincipalsClient) ListKeyCredentials(ctx context.Context, ob result, err = client.ListKeyCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ServicePrincipalsClient", "ListKeyCredentials", resp, "Failure responding to request") + return } return @@ -472,6 +477,7 @@ func (client ServicePrincipalsClient) ListNext(ctx context.Context, nextLink str result, err = client.ListNextResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ServicePrincipalsClient", "ListNext", resp, "Failure responding to request") + return } return @@ -546,6 +552,7 @@ func (client ServicePrincipalsClient) ListOwners(ctx context.Context, objectID s result.dolr, err = client.ListOwnersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ServicePrincipalsClient", "ListOwners", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -609,6 +616,7 @@ func (client ServicePrincipalsClient) listOwnersNextResults(ctx context.Context, result, err = client.ListOwnersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ServicePrincipalsClient", "listOwnersNextResults", resp, "Failure responding to next results request") + return } return } @@ -659,6 +667,7 @@ func (client ServicePrincipalsClient) ListPasswordCredentials(ctx context.Contex result, err = client.ListPasswordCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ServicePrincipalsClient", "ListPasswordCredentials", resp, "Failure responding to request") + return } return @@ -733,6 +742,7 @@ func (client ServicePrincipalsClient) Update(ctx context.Context, objectID strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ServicePrincipalsClient", "Update", resp, "Failure responding to request") + return } return @@ -808,6 +818,7 @@ func (client ServicePrincipalsClient) UpdateKeyCredentials(ctx context.Context, result, err = client.UpdateKeyCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ServicePrincipalsClient", "UpdateKeyCredentials", resp, "Failure responding to request") + return } return @@ -883,6 +894,7 @@ func (client ServicePrincipalsClient) UpdatePasswordCredentials(ctx context.Cont result, err = client.UpdatePasswordCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.ServicePrincipalsClient", "UpdatePasswordCredentials", resp, "Failure responding to request") + return } return diff --git a/services/graphrbac/1.6/graphrbac/signedinuser.go b/services/graphrbac/1.6/graphrbac/signedinuser.go index e6004b3e0990..bf0788811c0d 100644 --- a/services/graphrbac/1.6/graphrbac/signedinuser.go +++ b/services/graphrbac/1.6/graphrbac/signedinuser.go @@ -70,6 +70,7 @@ func (client SignedInUserClient) Get(ctx context.Context) (result User, err erro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.SignedInUserClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client SignedInUserClient) ListOwnedObjects(ctx context.Context) (result D result.dolr, err = client.ListOwnedObjectsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.SignedInUserClient", "ListOwnedObjects", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -237,6 +239,7 @@ func (client SignedInUserClient) ListOwnedObjectsNext(ctx context.Context, nextL result, err = client.ListOwnedObjectsNextResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.SignedInUserClient", "ListOwnedObjectsNext", resp, "Failure responding to request") + return } return diff --git a/services/graphrbac/1.6/graphrbac/users.go b/services/graphrbac/1.6/graphrbac/users.go index 480295e248ac..f4c6a1e91c1e 100644 --- a/services/graphrbac/1.6/graphrbac/users.go +++ b/services/graphrbac/1.6/graphrbac/users.go @@ -84,6 +84,7 @@ func (client UsersClient) Create(ctx context.Context, parameters UserCreateParam result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.UsersClient", "Create", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client UsersClient) Delete(ctx context.Context, upnOrObjectID string) (res result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.UsersClient", "Delete", resp, "Failure responding to request") + return } return @@ -230,6 +232,7 @@ func (client UsersClient) Get(ctx context.Context, upnOrObjectID string) (result result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.UsersClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +313,7 @@ func (client UsersClient) GetMemberGroups(ctx context.Context, objectID string, result, err = client.GetMemberGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.UsersClient", "GetMemberGroups", resp, "Failure responding to request") + return } return @@ -392,6 +396,7 @@ func (client UsersClient) List(ctx context.Context, filter string, expand string result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.UsersClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -489,6 +494,7 @@ func (client UsersClient) ListNext(ctx context.Context, nextLink string) (result result, err = client.ListNextResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.UsersClient", "ListNext", resp, "Failure responding to request") + return } return @@ -563,6 +569,7 @@ func (client UsersClient) Update(ctx context.Context, upnOrObjectID string, para result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "graphrbac.UsersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/hdinsight/mgmt/2018-06-01/hdinsight/applications.go b/services/hdinsight/mgmt/2018-06-01/hdinsight/applications.go index 98b18407c799..fe5850701c89 100644 --- a/services/hdinsight/mgmt/2018-06-01/hdinsight/applications.go +++ b/services/hdinsight/mgmt/2018-06-01/hdinsight/applications.go @@ -229,6 +229,7 @@ func (client ApplicationsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ApplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client ApplicationsClient) ListByCluster(ctx context.Context, resourceGrou result.alr, err = client.ListByClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ApplicationsClient", "ListByCluster", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client ApplicationsClient) listByClusterNextResults(ctx context.Context, l result, err = client.ListByClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ApplicationsClient", "listByClusterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/hdinsight/mgmt/2018-06-01/hdinsight/clusters.go b/services/hdinsight/mgmt/2018-06-01/hdinsight/clusters.go index f95f040d76ab..379cd87b108e 100644 --- a/services/hdinsight/mgmt/2018-06-01/hdinsight/clusters.go +++ b/services/hdinsight/mgmt/2018-06-01/hdinsight/clusters.go @@ -308,6 +308,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -383,6 +384,7 @@ func (client ClustersClient) GetGatewaySettings(ctx context.Context, resourceGro result, err = client.GetGatewaySettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ClustersClient", "GetGatewaySettings", resp, "Failure responding to request") + return } return @@ -456,6 +458,7 @@ func (client ClustersClient) List(ctx context.Context) (result ClusterListResult result.clr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ClustersClient", "List", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +521,7 @@ func (client ClustersClient) listNextResults(ctx context.Context, lastResults Cl result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -569,6 +573,7 @@ func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGr result.clr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -632,6 +637,7 @@ func (client ClustersClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -839,6 +845,7 @@ func (client ClustersClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ClustersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/hdinsight/mgmt/2018-06-01/hdinsight/configurations.go b/services/hdinsight/mgmt/2018-06-01/hdinsight/configurations.go index ad9aba42bd03..d577726eaffb 100644 --- a/services/hdinsight/mgmt/2018-06-01/hdinsight/configurations.go +++ b/services/hdinsight/mgmt/2018-06-01/hdinsight/configurations.go @@ -75,6 +75,7 @@ func (client ConfigurationsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ConfigurationsClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ConfigurationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/hdinsight/mgmt/2018-06-01/hdinsight/extensions.go b/services/hdinsight/mgmt/2018-06-01/hdinsight/extensions.go index c1de5eb5b06a..12de3fa989f4 100644 --- a/services/hdinsight/mgmt/2018-06-01/hdinsight/extensions.go +++ b/services/hdinsight/mgmt/2018-06-01/hdinsight/extensions.go @@ -379,6 +379,7 @@ func (client ExtensionsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -455,6 +456,7 @@ func (client ExtensionsClient) GetMonitoringStatus(ctx context.Context, resource result, err = client.GetMonitoringStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ExtensionsClient", "GetMonitoringStatus", resp, "Failure responding to request") + return } return diff --git a/services/hdinsight/mgmt/2018-06-01/hdinsight/locations.go b/services/hdinsight/mgmt/2018-06-01/hdinsight/locations.go index e880a36525bb..d39ac313d834 100644 --- a/services/hdinsight/mgmt/2018-06-01/hdinsight/locations.go +++ b/services/hdinsight/mgmt/2018-06-01/hdinsight/locations.go @@ -71,6 +71,7 @@ func (client LocationsClient) GetCapabilities(ctx context.Context, location stri result, err = client.GetCapabilitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.LocationsClient", "GetCapabilities", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client LocationsClient) ListBillingSpecs(ctx context.Context, location str result, err = client.ListBillingSpecsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.LocationsClient", "ListBillingSpecs", resp, "Failure responding to request") + return } return @@ -217,6 +219,7 @@ func (client LocationsClient) ListUsages(ctx context.Context, location string) ( result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.LocationsClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/hdinsight/mgmt/2018-06-01/hdinsight/operations.go b/services/hdinsight/mgmt/2018-06-01/hdinsight/operations.go index 381d2904cff1..a057784d2866 100644 --- a/services/hdinsight/mgmt/2018-06-01/hdinsight/operations.go +++ b/services/hdinsight/mgmt/2018-06-01/hdinsight/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/hdinsight/mgmt/2018-06-01/hdinsight/scriptactions.go b/services/hdinsight/mgmt/2018-06-01/hdinsight/scriptactions.go index 5735b94d24c7..632713cfa36d 100644 --- a/services/hdinsight/mgmt/2018-06-01/hdinsight/scriptactions.go +++ b/services/hdinsight/mgmt/2018-06-01/hdinsight/scriptactions.go @@ -73,6 +73,7 @@ func (client ScriptActionsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ScriptActionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client ScriptActionsClient) GetExecutionDetail(ctx context.Context, resour result, err = client.GetExecutionDetailResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ScriptActionsClient", "GetExecutionDetail", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client ScriptActionsClient) ListByCluster(ctx context.Context, resourceGro result.sal, err = client.ListByClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ScriptActionsClient", "ListByCluster", resp, "Failure responding to request") + return } if result.sal.hasNextLink() && result.sal.IsEmpty() { err = result.NextWithContext(ctx) @@ -290,6 +293,7 @@ func (client ScriptActionsClient) listByClusterNextResults(ctx context.Context, result, err = client.ListByClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ScriptActionsClient", "listByClusterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/hdinsight/mgmt/2018-06-01/hdinsight/scriptexecutionhistory.go b/services/hdinsight/mgmt/2018-06-01/hdinsight/scriptexecutionhistory.go index 6d1d1373348a..d993fb178918 100644 --- a/services/hdinsight/mgmt/2018-06-01/hdinsight/scriptexecutionhistory.go +++ b/services/hdinsight/mgmt/2018-06-01/hdinsight/scriptexecutionhistory.go @@ -74,6 +74,7 @@ func (client ScriptExecutionHistoryClient) ListByCluster(ctx context.Context, re result.saehl, err = client.ListByClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ScriptExecutionHistoryClient", "ListByCluster", resp, "Failure responding to request") + return } if result.saehl.hasNextLink() && result.saehl.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client ScriptExecutionHistoryClient) listByClusterNextResults(ctx context. result, err = client.ListByClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ScriptExecutionHistoryClient", "listByClusterNextResults", resp, "Failure responding to next results request") + return } return } @@ -190,6 +192,7 @@ func (client ScriptExecutionHistoryClient) Promote(ctx context.Context, resource result, err = client.PromoteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ScriptExecutionHistoryClient", "Promote", resp, "Failure responding to request") + return } return diff --git a/services/hdinsight/mgmt/2018-06-01/hdinsight/virtualmachines.go b/services/hdinsight/mgmt/2018-06-01/hdinsight/virtualmachines.go index ec4548dd2be8..66e7662527b8 100644 --- a/services/hdinsight/mgmt/2018-06-01/hdinsight/virtualmachines.go +++ b/services/hdinsight/mgmt/2018-06-01/hdinsight/virtualmachines.go @@ -73,6 +73,7 @@ func (client VirtualMachinesClient) ListHosts(ctx context.Context, resourceGroup result, err = client.ListHostsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.VirtualMachinesClient", "ListHosts", resp, "Failure responding to request") + return } return diff --git a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/operationresults.go b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/operationresults.go index fbe73c32de6d..562591838305 100644 --- a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/operationresults.go +++ b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/operationresults.go @@ -73,6 +73,7 @@ func (client OperationResultsClient) Get(ctx context.Context, locationName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.OperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/operations.go b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/operations.go index 910fe01c9828..27c36689dd06 100644 --- a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/operations.go +++ b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/services.go b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/services.go index ee1a3c5ae39e..040fd983de15 100644 --- a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/services.go +++ b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/services.go @@ -80,6 +80,7 @@ func (client ServicesClient) CheckNameAvailability(ctx context.Context, checkNam result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.ServicesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -355,6 +356,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -428,6 +430,7 @@ func (client ServicesClient) List(ctx context.Context) (result ServicesDescripti result.sdlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.ServicesClient", "List", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -490,6 +493,7 @@ func (client ServicesClient) listNextResults(ctx context.Context, lastResults Se result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.ServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -549,6 +553,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGr result.sdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -612,6 +617,7 @@ func (client ServicesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.ServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/healthcareapis/mgmt/2020-03-15/healthcareapis/operationresults.go b/services/healthcareapis/mgmt/2020-03-15/healthcareapis/operationresults.go index 7a54aa6dbac4..93f40dde5b84 100644 --- a/services/healthcareapis/mgmt/2020-03-15/healthcareapis/operationresults.go +++ b/services/healthcareapis/mgmt/2020-03-15/healthcareapis/operationresults.go @@ -73,6 +73,7 @@ func (client OperationResultsClient) Get(ctx context.Context, locationName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.OperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/healthcareapis/mgmt/2020-03-15/healthcareapis/operations.go b/services/healthcareapis/mgmt/2020-03-15/healthcareapis/operations.go index bae6e1d5610d..0a6b11080ef7 100644 --- a/services/healthcareapis/mgmt/2020-03-15/healthcareapis/operations.go +++ b/services/healthcareapis/mgmt/2020-03-15/healthcareapis/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/healthcareapis/mgmt/2020-03-15/healthcareapis/services.go b/services/healthcareapis/mgmt/2020-03-15/healthcareapis/services.go index e0614eb897b4..0d87d5c15ee9 100644 --- a/services/healthcareapis/mgmt/2020-03-15/healthcareapis/services.go +++ b/services/healthcareapis/mgmt/2020-03-15/healthcareapis/services.go @@ -80,6 +80,7 @@ func (client ServicesClient) CheckNameAvailability(ctx context.Context, checkNam result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.ServicesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -355,6 +356,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -428,6 +430,7 @@ func (client ServicesClient) List(ctx context.Context) (result ServicesDescripti result.sdlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.ServicesClient", "List", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -490,6 +493,7 @@ func (client ServicesClient) listNextResults(ctx context.Context, lastResults Se result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.ServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -549,6 +553,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGr result.sdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -612,6 +617,7 @@ func (client ServicesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.ServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/healthcareapis/mgmt/2020-03-30/healthcareapis/operationresults.go b/services/healthcareapis/mgmt/2020-03-30/healthcareapis/operationresults.go index 8d3c07842657..ee37ea552e0a 100644 --- a/services/healthcareapis/mgmt/2020-03-30/healthcareapis/operationresults.go +++ b/services/healthcareapis/mgmt/2020-03-30/healthcareapis/operationresults.go @@ -73,6 +73,7 @@ func (client OperationResultsClient) Get(ctx context.Context, locationName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.OperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/healthcareapis/mgmt/2020-03-30/healthcareapis/operations.go b/services/healthcareapis/mgmt/2020-03-30/healthcareapis/operations.go index 6d5c2e6683a9..9e528bbd20fc 100644 --- a/services/healthcareapis/mgmt/2020-03-30/healthcareapis/operations.go +++ b/services/healthcareapis/mgmt/2020-03-30/healthcareapis/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/healthcareapis/mgmt/2020-03-30/healthcareapis/privateendpointconnections.go b/services/healthcareapis/mgmt/2020-03-30/healthcareapis/privateendpointconnections.go index 034eaee8855a..20d0c938a419 100644 --- a/services/healthcareapis/mgmt/2020-03-30/healthcareapis/privateendpointconnections.go +++ b/services/healthcareapis/mgmt/2020-03-30/healthcareapis/privateendpointconnections.go @@ -270,6 +270,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -357,6 +358,7 @@ func (client PrivateEndpointConnectionsClient) ListByService(ctx context.Context result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.PrivateEndpointConnectionsClient", "ListByService", resp, "Failure responding to request") + return } return diff --git a/services/healthcareapis/mgmt/2020-03-30/healthcareapis/privatelinkresources.go b/services/healthcareapis/mgmt/2020-03-30/healthcareapis/privatelinkresources.go index b49b35133920..9c6b661c5512 100644 --- a/services/healthcareapis/mgmt/2020-03-30/healthcareapis/privatelinkresources.go +++ b/services/healthcareapis/mgmt/2020-03-30/healthcareapis/privatelinkresources.go @@ -86,6 +86,7 @@ func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.PrivateLinkResourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client PrivateLinkResourcesClient) ListByService(ctx context.Context, reso result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.PrivateLinkResourcesClient", "ListByService", resp, "Failure responding to request") + return } return diff --git a/services/healthcareapis/mgmt/2020-03-30/healthcareapis/services.go b/services/healthcareapis/mgmt/2020-03-30/healthcareapis/services.go index 4e424e9a60a5..9877c8f622a6 100644 --- a/services/healthcareapis/mgmt/2020-03-30/healthcareapis/services.go +++ b/services/healthcareapis/mgmt/2020-03-30/healthcareapis/services.go @@ -80,6 +80,7 @@ func (client ServicesClient) CheckNameAvailability(ctx context.Context, checkNam result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.ServicesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -355,6 +356,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -428,6 +430,7 @@ func (client ServicesClient) List(ctx context.Context) (result ServicesDescripti result.sdlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.ServicesClient", "List", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -490,6 +493,7 @@ func (client ServicesClient) listNextResults(ctx context.Context, lastResults Se result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.ServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -549,6 +553,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGr result.sdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -612,6 +617,7 @@ func (client ServicesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.ServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/hybridcompute/mgmt/2019-12-12/hybridcompute/machineextensions.go b/services/hybridcompute/mgmt/2019-12-12/hybridcompute/machineextensions.go index 4f501875bece..fd0ba3140bf2 100644 --- a/services/hybridcompute/mgmt/2019-12-12/hybridcompute/machineextensions.go +++ b/services/hybridcompute/mgmt/2019-12-12/hybridcompute/machineextensions.go @@ -249,6 +249,7 @@ func (client MachineExtensionsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridcompute.MachineExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -333,6 +334,7 @@ func (client MachineExtensionsClient) List(ctx context.Context, resourceGroupNam result.melr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridcompute.MachineExtensionsClient", "List", resp, "Failure responding to request") + return } if result.melr.hasNextLink() && result.melr.IsEmpty() { err = result.NextWithContext(ctx) @@ -400,6 +402,7 @@ func (client MachineExtensionsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridcompute.MachineExtensionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/hybridcompute/mgmt/2019-12-12/hybridcompute/machines.go b/services/hybridcompute/mgmt/2019-12-12/hybridcompute/machines.go index dbb5634e035c..79478ad4d687 100644 --- a/services/hybridcompute/mgmt/2019-12-12/hybridcompute/machines.go +++ b/services/hybridcompute/mgmt/2019-12-12/hybridcompute/machines.go @@ -80,6 +80,7 @@ func (client MachinesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client MachinesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "Delete", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client MachinesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "Get", resp, "Failure responding to request") + return } return @@ -329,6 +332,7 @@ func (client MachinesClient) ListByResourceGroup(ctx context.Context, resourceGr result.mlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -392,6 +396,7 @@ func (client MachinesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -448,6 +453,7 @@ func (client MachinesClient) ListBySubscription(ctx context.Context) (result Mac result.mlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -510,6 +516,7 @@ func (client MachinesClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -568,6 +575,7 @@ func (client MachinesClient) Reconnect(ctx context.Context, resourceGroupName st result, err = client.ReconnectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "Reconnect", resp, "Failure responding to request") + return } return @@ -652,6 +660,7 @@ func (client MachinesClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/hybridcompute/mgmt/2019-12-12/hybridcompute/operations.go b/services/hybridcompute/mgmt/2019-12-12/hybridcompute/operations.go index 06c97acb5a5a..d466ed85631a 100644 --- a/services/hybridcompute/mgmt/2019-12-12/hybridcompute/operations.go +++ b/services/hybridcompute/mgmt/2019-12-12/hybridcompute/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridcompute.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/hybridcompute/mgmt/2020-08-02/hybridcompute/machineextensions.go b/services/hybridcompute/mgmt/2020-08-02/hybridcompute/machineextensions.go index 3651adef12ed..6bbad36ddc55 100644 --- a/services/hybridcompute/mgmt/2020-08-02/hybridcompute/machineextensions.go +++ b/services/hybridcompute/mgmt/2020-08-02/hybridcompute/machineextensions.go @@ -230,6 +230,7 @@ func (client MachineExtensionsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridcompute.MachineExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client MachineExtensionsClient) List(ctx context.Context, resourceGroupNam result.melr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridcompute.MachineExtensionsClient", "List", resp, "Failure responding to request") + return } if result.melr.hasNextLink() && result.melr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client MachineExtensionsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridcompute.MachineExtensionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/hybridcompute/mgmt/2020-08-02/hybridcompute/machines.go b/services/hybridcompute/mgmt/2020-08-02/hybridcompute/machines.go index b5ff1f2c32d2..a5867aef12ad 100644 --- a/services/hybridcompute/mgmt/2020-08-02/hybridcompute/machines.go +++ b/services/hybridcompute/mgmt/2020-08-02/hybridcompute/machines.go @@ -73,6 +73,7 @@ func (client MachinesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client MachinesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "Delete", resp, "Failure responding to request") + return } return @@ -225,6 +227,7 @@ func (client MachinesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +306,7 @@ func (client MachinesClient) ListByResourceGroup(ctx context.Context, resourceGr result.mlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +370,7 @@ func (client MachinesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +420,7 @@ func (client MachinesClient) ListBySubscription(ctx context.Context) (result Mac result.mlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +483,7 @@ func (client MachinesClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -529,6 +536,7 @@ func (client MachinesClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/hybridcompute/mgmt/2020-08-02/hybridcompute/operations.go b/services/hybridcompute/mgmt/2020-08-02/hybridcompute/operations.go index 1812cd476e6d..3d6cb46fbd80 100644 --- a/services/hybridcompute/mgmt/2020-08-02/hybridcompute/operations.go +++ b/services/hybridcompute/mgmt/2020-08-02/hybridcompute/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridcompute.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/datamanagers.go b/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/datamanagers.go index defe5c7ce21b..4405a5277142 100644 --- a/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/datamanagers.go +++ b/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/datamanagers.go @@ -254,6 +254,7 @@ func (client DataManagersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.DataManagersClient", "Get", resp, "Failure responding to request") + return } return @@ -326,6 +327,7 @@ func (client DataManagersClient) List(ctx context.Context) (result DataManagerLi result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.DataManagersClient", "List", resp, "Failure responding to request") + return } return @@ -398,6 +400,7 @@ func (client DataManagersClient) ListByResourceGroup(ctx context.Context, resour result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.DataManagersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return diff --git a/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/dataservices.go b/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/dataservices.go index 596b660de8c9..08bb1b4b2f85 100644 --- a/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/dataservices.go +++ b/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/dataservices.go @@ -83,6 +83,7 @@ func (client DataServicesClient) Get(ctx context.Context, dataServiceName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.DataServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client DataServicesClient) ListByDataManager(ctx context.Context, resource result.dsl, err = client.ListByDataManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.DataServicesClient", "ListByDataManager", resp, "Failure responding to request") + return } if result.dsl.hasNextLink() && result.dsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -233,6 +235,7 @@ func (client DataServicesClient) listByDataManagerNextResults(ctx context.Contex result, err = client.ListByDataManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.DataServicesClient", "listByDataManagerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/datastores.go b/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/datastores.go index 132859a6047f..b9afd98ae750 100644 --- a/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/datastores.go +++ b/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/datastores.go @@ -260,6 +260,7 @@ func (client DataStoresClient) Get(ctx context.Context, dataStoreName string, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.DataStoresClient", "Get", resp, "Failure responding to request") + return } return @@ -347,6 +348,7 @@ func (client DataStoresClient) ListByDataManager(ctx context.Context, resourceGr result.dsl, err = client.ListByDataManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.DataStoresClient", "ListByDataManager", resp, "Failure responding to request") + return } if result.dsl.hasNextLink() && result.dsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -414,6 +416,7 @@ func (client DataStoresClient) listByDataManagerNextResults(ctx context.Context, result, err = client.ListByDataManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.DataStoresClient", "listByDataManagerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/datastoretypes.go b/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/datastoretypes.go index edccf6bb4c92..70585037ebfb 100644 --- a/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/datastoretypes.go +++ b/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/datastoretypes.go @@ -83,6 +83,7 @@ func (client DataStoreTypesClient) Get(ctx context.Context, dataStoreTypeName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.DataStoreTypesClient", "Get", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client DataStoreTypesClient) ListByDataManager(ctx context.Context, resour result.dstl, err = client.ListByDataManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.DataStoreTypesClient", "ListByDataManager", resp, "Failure responding to request") + return } if result.dstl.hasNextLink() && result.dstl.IsEmpty() { err = result.NextWithContext(ctx) @@ -233,6 +235,7 @@ func (client DataStoreTypesClient) listByDataManagerNextResults(ctx context.Cont result, err = client.ListByDataManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.DataStoreTypesClient", "listByDataManagerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/jobdefinitions.go b/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/jobdefinitions.go index e907d71be35f..19b41a44e144 100644 --- a/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/jobdefinitions.go +++ b/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/jobdefinitions.go @@ -267,6 +267,7 @@ func (client JobDefinitionsClient) Get(ctx context.Context, dataServiceName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.JobDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +356,7 @@ func (client JobDefinitionsClient) ListByDataManager(ctx context.Context, resour result.jdl, err = client.ListByDataManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.JobDefinitionsClient", "ListByDataManager", resp, "Failure responding to request") + return } if result.jdl.hasNextLink() && result.jdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -422,6 +424,7 @@ func (client JobDefinitionsClient) listByDataManagerNextResults(ctx context.Cont result, err = client.ListByDataManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.JobDefinitionsClient", "listByDataManagerNextResults", resp, "Failure responding to next results request") + return } return } @@ -485,6 +488,7 @@ func (client JobDefinitionsClient) ListByDataService(ctx context.Context, dataSe result.jdl, err = client.ListByDataServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.JobDefinitionsClient", "ListByDataService", resp, "Failure responding to request") + return } if result.jdl.hasNextLink() && result.jdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -553,6 +557,7 @@ func (client JobDefinitionsClient) listByDataServiceNextResults(ctx context.Cont result, err = client.ListByDataServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.JobDefinitionsClient", "listByDataServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/jobs.go b/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/jobs.go index 47b2f5ae0a6a..ee45c0ca515b 100644 --- a/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/jobs.go +++ b/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/jobs.go @@ -175,6 +175,7 @@ func (client JobsClient) Get(ctx context.Context, dataServiceName string, jobDef result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.JobsClient", "Get", resp, "Failure responding to request") + return } return @@ -267,6 +268,7 @@ func (client JobsClient) ListByDataManager(ctx context.Context, resourceGroupNam result.jl, err = client.ListByDataManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.JobsClient", "ListByDataManager", resp, "Failure responding to request") + return } if result.jl.hasNextLink() && result.jl.IsEmpty() { err = result.NextWithContext(ctx) @@ -334,6 +336,7 @@ func (client JobsClient) listByDataManagerNextResults(ctx context.Context, lastR result, err = client.ListByDataManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.JobsClient", "listByDataManagerNextResults", resp, "Failure responding to next results request") + return } return } @@ -397,6 +400,7 @@ func (client JobsClient) ListByDataService(ctx context.Context, dataServiceName result.jl, err = client.ListByDataServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.JobsClient", "ListByDataService", resp, "Failure responding to request") + return } if result.jl.hasNextLink() && result.jl.IsEmpty() { err = result.NextWithContext(ctx) @@ -465,6 +469,7 @@ func (client JobsClient) listByDataServiceNextResults(ctx context.Context, lastR result, err = client.ListByDataServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.JobsClient", "listByDataServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -529,6 +534,7 @@ func (client JobsClient) ListByJobDefinition(ctx context.Context, dataServiceNam result.jl, err = client.ListByJobDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.JobsClient", "ListByJobDefinition", resp, "Failure responding to request") + return } if result.jl.hasNextLink() && result.jl.IsEmpty() { err = result.NextWithContext(ctx) @@ -598,6 +604,7 @@ func (client JobsClient) listByJobDefinitionNextResults(ctx context.Context, las result, err = client.ListByJobDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.JobsClient", "listByJobDefinitionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/operations.go b/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/operations.go index f7de0811ea7d..b11a668b327f 100644 --- a/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/operations.go +++ b/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result AvailableProvid result.apo, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.OperationsClient", "List", resp, "Failure responding to request") + return } if result.apo.hasNextLink() && result.apo.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/publickeys.go b/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/publickeys.go index 4f2313daf6f7..b070ecb8669c 100644 --- a/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/publickeys.go +++ b/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/publickeys.go @@ -83,6 +83,7 @@ func (client PublicKeysClient) Get(ctx context.Context, publicKeyName string, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.PublicKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client PublicKeysClient) ListByDataManager(ctx context.Context, resourceGr result.pkl, err = client.ListByDataManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.PublicKeysClient", "ListByDataManager", resp, "Failure responding to request") + return } if result.pkl.hasNextLink() && result.pkl.IsEmpty() { err = result.NextWithContext(ctx) @@ -233,6 +235,7 @@ func (client PublicKeysClient) listByDataManagerNextResults(ctx context.Context, result, err = client.ListByDataManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.PublicKeysClient", "listByDataManagerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/datamanagers.go b/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/datamanagers.go index b7c7650ba3f3..0abf3a7cc7b7 100644 --- a/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/datamanagers.go +++ b/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/datamanagers.go @@ -254,6 +254,7 @@ func (client DataManagersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.DataManagersClient", "Get", resp, "Failure responding to request") + return } return @@ -326,6 +327,7 @@ func (client DataManagersClient) List(ctx context.Context) (result DataManagerLi result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.DataManagersClient", "List", resp, "Failure responding to request") + return } return @@ -398,6 +400,7 @@ func (client DataManagersClient) ListByResourceGroup(ctx context.Context, resour result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.DataManagersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return diff --git a/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/dataservices.go b/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/dataservices.go index ec8ef7f62a76..1f898ace0bda 100644 --- a/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/dataservices.go +++ b/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/dataservices.go @@ -83,6 +83,7 @@ func (client DataServicesClient) Get(ctx context.Context, dataServiceName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.DataServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client DataServicesClient) ListByDataManager(ctx context.Context, resource result.dsl, err = client.ListByDataManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.DataServicesClient", "ListByDataManager", resp, "Failure responding to request") + return } if result.dsl.hasNextLink() && result.dsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -233,6 +235,7 @@ func (client DataServicesClient) listByDataManagerNextResults(ctx context.Contex result, err = client.ListByDataManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.DataServicesClient", "listByDataManagerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/datastores.go b/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/datastores.go index cfd23fadef53..b99dbef79593 100644 --- a/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/datastores.go +++ b/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/datastores.go @@ -260,6 +260,7 @@ func (client DataStoresClient) Get(ctx context.Context, dataStoreName string, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.DataStoresClient", "Get", resp, "Failure responding to request") + return } return @@ -347,6 +348,7 @@ func (client DataStoresClient) ListByDataManager(ctx context.Context, resourceGr result.dsl, err = client.ListByDataManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.DataStoresClient", "ListByDataManager", resp, "Failure responding to request") + return } if result.dsl.hasNextLink() && result.dsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -414,6 +416,7 @@ func (client DataStoresClient) listByDataManagerNextResults(ctx context.Context, result, err = client.ListByDataManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.DataStoresClient", "listByDataManagerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/datastoretypes.go b/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/datastoretypes.go index 0b01866b1c38..8407565976c2 100644 --- a/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/datastoretypes.go +++ b/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/datastoretypes.go @@ -83,6 +83,7 @@ func (client DataStoreTypesClient) Get(ctx context.Context, dataStoreTypeName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.DataStoreTypesClient", "Get", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client DataStoreTypesClient) ListByDataManager(ctx context.Context, resour result.dstl, err = client.ListByDataManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.DataStoreTypesClient", "ListByDataManager", resp, "Failure responding to request") + return } if result.dstl.hasNextLink() && result.dstl.IsEmpty() { err = result.NextWithContext(ctx) @@ -233,6 +235,7 @@ func (client DataStoreTypesClient) listByDataManagerNextResults(ctx context.Cont result, err = client.ListByDataManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.DataStoreTypesClient", "listByDataManagerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/jobdefinitions.go b/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/jobdefinitions.go index 2c8ea38e668e..e8ed6493ee99 100644 --- a/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/jobdefinitions.go +++ b/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/jobdefinitions.go @@ -267,6 +267,7 @@ func (client JobDefinitionsClient) Get(ctx context.Context, dataServiceName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.JobDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +356,7 @@ func (client JobDefinitionsClient) ListByDataManager(ctx context.Context, resour result.jdl, err = client.ListByDataManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.JobDefinitionsClient", "ListByDataManager", resp, "Failure responding to request") + return } if result.jdl.hasNextLink() && result.jdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -422,6 +424,7 @@ func (client JobDefinitionsClient) listByDataManagerNextResults(ctx context.Cont result, err = client.ListByDataManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.JobDefinitionsClient", "listByDataManagerNextResults", resp, "Failure responding to next results request") + return } return } @@ -485,6 +488,7 @@ func (client JobDefinitionsClient) ListByDataService(ctx context.Context, dataSe result.jdl, err = client.ListByDataServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.JobDefinitionsClient", "ListByDataService", resp, "Failure responding to request") + return } if result.jdl.hasNextLink() && result.jdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -553,6 +557,7 @@ func (client JobDefinitionsClient) listByDataServiceNextResults(ctx context.Cont result, err = client.ListByDataServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.JobDefinitionsClient", "listByDataServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/jobs.go b/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/jobs.go index 96783e174ace..238f162af0ba 100644 --- a/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/jobs.go +++ b/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/jobs.go @@ -175,6 +175,7 @@ func (client JobsClient) Get(ctx context.Context, dataServiceName string, jobDef result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.JobsClient", "Get", resp, "Failure responding to request") + return } return @@ -267,6 +268,7 @@ func (client JobsClient) ListByDataManager(ctx context.Context, resourceGroupNam result.jl, err = client.ListByDataManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.JobsClient", "ListByDataManager", resp, "Failure responding to request") + return } if result.jl.hasNextLink() && result.jl.IsEmpty() { err = result.NextWithContext(ctx) @@ -334,6 +336,7 @@ func (client JobsClient) listByDataManagerNextResults(ctx context.Context, lastR result, err = client.ListByDataManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.JobsClient", "listByDataManagerNextResults", resp, "Failure responding to next results request") + return } return } @@ -397,6 +400,7 @@ func (client JobsClient) ListByDataService(ctx context.Context, dataServiceName result.jl, err = client.ListByDataServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.JobsClient", "ListByDataService", resp, "Failure responding to request") + return } if result.jl.hasNextLink() && result.jl.IsEmpty() { err = result.NextWithContext(ctx) @@ -465,6 +469,7 @@ func (client JobsClient) listByDataServiceNextResults(ctx context.Context, lastR result, err = client.ListByDataServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.JobsClient", "listByDataServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -529,6 +534,7 @@ func (client JobsClient) ListByJobDefinition(ctx context.Context, dataServiceNam result.jl, err = client.ListByJobDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.JobsClient", "ListByJobDefinition", resp, "Failure responding to request") + return } if result.jl.hasNextLink() && result.jl.IsEmpty() { err = result.NextWithContext(ctx) @@ -598,6 +604,7 @@ func (client JobsClient) listByJobDefinitionNextResults(ctx context.Context, las result, err = client.ListByJobDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.JobsClient", "listByJobDefinitionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/operations.go b/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/operations.go index 047387e5eb16..33f7512330ca 100644 --- a/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/operations.go +++ b/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result AvailableProvid result.apo, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.OperationsClient", "List", resp, "Failure responding to request") + return } if result.apo.hasNextLink() && result.apo.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/publickeys.go b/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/publickeys.go index 179478010aa9..a095b476b7bb 100644 --- a/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/publickeys.go +++ b/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/publickeys.go @@ -83,6 +83,7 @@ func (client PublicKeysClient) Get(ctx context.Context, publicKeyName string, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.PublicKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client PublicKeysClient) ListByDataManager(ctx context.Context, resourceGr result.pkl, err = client.ListByDataManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.PublicKeysClient", "ListByDataManager", resp, "Failure responding to request") + return } if result.pkl.hasNextLink() && result.pkl.IsEmpty() { err = result.NextWithContext(ctx) @@ -233,6 +235,7 @@ func (client PublicKeysClient) listByDataManagerNextResults(ctx context.Context, result, err = client.ListByDataManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybriddata.PublicKeysClient", "listByDataManagerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/iotcentral/mgmt/2018-09-01/iotcentral/apps.go b/services/iotcentral/mgmt/2018-09-01/iotcentral/apps.go index 6149010fac8f..d6e7d8a73a71 100644 --- a/services/iotcentral/mgmt/2018-09-01/iotcentral/apps.go +++ b/services/iotcentral/mgmt/2018-09-01/iotcentral/apps.go @@ -79,6 +79,7 @@ func (client AppsClient) CheckNameAvailability(ctx context.Context, operationInp result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iotcentral.AppsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client AppsClient) CheckSubdomainAvailability(ctx context.Context, operati result, err = client.CheckSubdomainAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iotcentral.AppsClient", "CheckSubdomainAvailability", resp, "Failure responding to request") + return } return @@ -395,6 +397,7 @@ func (client AppsClient) Get(ctx context.Context, resourceGroupName string, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iotcentral.AppsClient", "Get", resp, "Failure responding to request") + return } return @@ -470,6 +473,7 @@ func (client AppsClient) ListByResourceGroup(ctx context.Context, resourceGroupN result.alr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iotcentral.AppsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -533,6 +537,7 @@ func (client AppsClient) listByResourceGroupNextResults(ctx context.Context, las result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iotcentral.AppsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -582,6 +587,7 @@ func (client AppsClient) ListBySubscription(ctx context.Context) (result AppList result.alr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iotcentral.AppsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -644,6 +650,7 @@ func (client AppsClient) listBySubscriptionNextResults(ctx context.Context, last result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iotcentral.AppsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -693,6 +700,7 @@ func (client AppsClient) ListTemplates(ctx context.Context) (result AppTemplates result.atr, err = client.ListTemplatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iotcentral.AppsClient", "ListTemplates", resp, "Failure responding to request") + return } if result.atr.hasNextLink() && result.atr.IsEmpty() { err = result.NextWithContext(ctx) @@ -755,6 +763,7 @@ func (client AppsClient) listTemplatesNextResults(ctx context.Context, lastResul result, err = client.ListTemplatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iotcentral.AppsClient", "listTemplatesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/iotcentral/mgmt/2018-09-01/iotcentral/operations.go b/services/iotcentral/mgmt/2018-09-01/iotcentral/operations.go index 6bb807a0fa45..ffee1c2956a0 100644 --- a/services/iotcentral/mgmt/2018-09-01/iotcentral/operations.go +++ b/services/iotcentral/mgmt/2018-09-01/iotcentral/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iotcentral.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iotcentral.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/iothub/mgmt/2016-02-03/devices/iothubresource.go b/services/iothub/mgmt/2016-02-03/devices/iothubresource.go index 38ee7652b45e..3841f5453633 100644 --- a/services/iothub/mgmt/2016-02-03/devices/iothubresource.go +++ b/services/iothub/mgmt/2016-02-03/devices/iothubresource.go @@ -79,6 +79,7 @@ func (client IotHubResourceClient) CheckNameAvailability(ctx context.Context, op result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client IotHubResourceClient) CreateEventHubConsumerGroup(ctx context.Conte result, err = client.CreateEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "CreateEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -413,6 +415,7 @@ func (client IotHubResourceClient) DeleteEventHubConsumerGroup(ctx context.Conte result, err = client.DeleteEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "DeleteEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -499,6 +502,7 @@ func (client IotHubResourceClient) ExportDevices(ctx context.Context, resourceGr result, err = client.ExportDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ExportDevices", resp, "Failure responding to request") + return } return @@ -576,6 +580,7 @@ func (client IotHubResourceClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "Get", resp, "Failure responding to request") + return } return @@ -653,6 +658,7 @@ func (client IotHubResourceClient) GetEventHubConsumerGroup(ctx context.Context, result, err = client.GetEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -732,6 +738,7 @@ func (client IotHubResourceClient) GetJob(ctx context.Context, resourceGroupName result, err = client.GetJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetJob", resp, "Failure responding to request") + return } return @@ -810,6 +817,7 @@ func (client IotHubResourceClient) GetKeysForKeyName(ctx context.Context, resour result, err = client.GetKeysForKeyNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetKeysForKeyName", resp, "Failure responding to request") + return } return @@ -887,6 +895,7 @@ func (client IotHubResourceClient) GetQuotaMetrics(ctx context.Context, resource result.ihqmilr, err = client.GetQuotaMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetQuotaMetrics", resp, "Failure responding to request") + return } if result.ihqmilr.hasNextLink() && result.ihqmilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -951,6 +960,7 @@ 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 } @@ -1002,6 +1012,7 @@ func (client IotHubResourceClient) GetStats(ctx context.Context, resourceGroupNa result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetStats", resp, "Failure responding to request") + return } return @@ -1078,6 +1089,7 @@ func (client IotHubResourceClient) GetValidSkus(ctx context.Context, resourceGro result.ihsdlr, err = client.GetValidSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetValidSkus", resp, "Failure responding to request") + return } if result.ihsdlr.hasNextLink() && result.ihsdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1142,6 +1154,7 @@ 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 } @@ -1203,6 +1216,7 @@ func (client IotHubResourceClient) ImportDevices(ctx context.Context, resourceGr result, err = client.ImportDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ImportDevices", resp, "Failure responding to request") + return } return @@ -1280,6 +1294,7 @@ func (client IotHubResourceClient) ListByResourceGroup(ctx context.Context, reso result.ihdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ihdlr.hasNextLink() && result.ihdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1343,6 +1358,7 @@ 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 } @@ -1392,6 +1408,7 @@ func (client IotHubResourceClient) ListBySubscription(ctx context.Context) (resu result.ihdlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ihdlr.hasNextLink() && result.ihdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1454,6 +1471,7 @@ 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 } @@ -1508,6 +1526,7 @@ func (client IotHubResourceClient) ListEventHubConsumerGroups(ctx context.Contex result.ehcglr, err = client.ListEventHubConsumerGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListEventHubConsumerGroups", resp, "Failure responding to request") + return } if result.ehcglr.hasNextLink() && result.ehcglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1573,6 +1592,7 @@ 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 } @@ -1626,6 +1646,7 @@ func (client IotHubResourceClient) ListJobs(ctx context.Context, resourceGroupNa result.jrlr, err = client.ListJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListJobs", resp, "Failure responding to request") + return } if result.jrlr.hasNextLink() && result.jrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1690,6 +1711,7 @@ 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 } @@ -1743,6 +1765,7 @@ func (client IotHubResourceClient) ListKeys(ctx context.Context, resourceGroupNa result.sasarlr, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListKeys", resp, "Failure responding to request") + return } if result.sasarlr.hasNextLink() && result.sasarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1807,6 +1830,7 @@ 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-01-19/devices/iothubresource.go b/services/iothub/mgmt/2017-01-19/devices/iothubresource.go index b541aba495a3..5d3c55ba9003 100644 --- a/services/iothub/mgmt/2017-01-19/devices/iothubresource.go +++ b/services/iothub/mgmt/2017-01-19/devices/iothubresource.go @@ -79,6 +79,7 @@ func (client IotHubResourceClient) CheckNameAvailability(ctx context.Context, op result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client IotHubResourceClient) CreateEventHubConsumerGroup(ctx context.Conte result, err = client.CreateEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "CreateEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -423,6 +425,7 @@ func (client IotHubResourceClient) DeleteEventHubConsumerGroup(ctx context.Conte result, err = client.DeleteEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "DeleteEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -509,6 +512,7 @@ func (client IotHubResourceClient) ExportDevices(ctx context.Context, resourceGr result, err = client.ExportDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ExportDevices", resp, "Failure responding to request") + return } return @@ -586,6 +590,7 @@ func (client IotHubResourceClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "Get", resp, "Failure responding to request") + return } return @@ -663,6 +668,7 @@ func (client IotHubResourceClient) GetEventHubConsumerGroup(ctx context.Context, result, err = client.GetEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -742,6 +748,7 @@ func (client IotHubResourceClient) GetJob(ctx context.Context, resourceGroupName result, err = client.GetJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetJob", resp, "Failure responding to request") + return } return @@ -820,6 +827,7 @@ func (client IotHubResourceClient) GetKeysForKeyName(ctx context.Context, resour result, err = client.GetKeysForKeyNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetKeysForKeyName", resp, "Failure responding to request") + return } return @@ -897,6 +905,7 @@ func (client IotHubResourceClient) GetQuotaMetrics(ctx context.Context, resource result.ihqmilr, err = client.GetQuotaMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetQuotaMetrics", resp, "Failure responding to request") + return } if result.ihqmilr.hasNextLink() && result.ihqmilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -961,6 +970,7 @@ 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 } @@ -1012,6 +1022,7 @@ func (client IotHubResourceClient) GetStats(ctx context.Context, resourceGroupNa result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetStats", resp, "Failure responding to request") + return } return @@ -1088,6 +1099,7 @@ func (client IotHubResourceClient) GetValidSkus(ctx context.Context, resourceGro result.ihsdlr, err = client.GetValidSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetValidSkus", resp, "Failure responding to request") + return } if result.ihsdlr.hasNextLink() && result.ihsdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1152,6 +1164,7 @@ 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 } @@ -1213,6 +1226,7 @@ func (client IotHubResourceClient) ImportDevices(ctx context.Context, resourceGr result, err = client.ImportDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ImportDevices", resp, "Failure responding to request") + return } return @@ -1290,6 +1304,7 @@ func (client IotHubResourceClient) ListByResourceGroup(ctx context.Context, reso result.ihdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ihdlr.hasNextLink() && result.ihdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1353,6 +1368,7 @@ 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 } @@ -1402,6 +1418,7 @@ func (client IotHubResourceClient) ListBySubscription(ctx context.Context) (resu result.ihdlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ihdlr.hasNextLink() && result.ihdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1464,6 +1481,7 @@ 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 } @@ -1518,6 +1536,7 @@ func (client IotHubResourceClient) ListEventHubConsumerGroups(ctx context.Contex result.ehcglr, err = client.ListEventHubConsumerGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListEventHubConsumerGroups", resp, "Failure responding to request") + return } if result.ehcglr.hasNextLink() && result.ehcglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1583,6 +1602,7 @@ 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 } @@ -1636,6 +1656,7 @@ func (client IotHubResourceClient) ListJobs(ctx context.Context, resourceGroupNa result.jrlr, err = client.ListJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListJobs", resp, "Failure responding to request") + return } if result.jrlr.hasNextLink() && result.jrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1700,6 +1721,7 @@ 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 } @@ -1753,6 +1775,7 @@ func (client IotHubResourceClient) ListKeys(ctx context.Context, resourceGroupNa result.sasarlr, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListKeys", resp, "Failure responding to request") + return } if result.sasarlr.hasNextLink() && result.sasarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1817,6 +1840,7 @@ 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/certificates.go b/services/iothub/mgmt/2017-07-01/devices/certificates.go index c47f62d851c8..1b9433e00d0e 100644 --- a/services/iothub/mgmt/2017-07-01/devices/certificates.go +++ b/services/iothub/mgmt/2017-07-01/devices/certificates.go @@ -83,6 +83,7 @@ func (client CertificatesClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client CertificatesClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "Delete", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client CertificatesClient) GenerateVerificationCode(ctx context.Context, r result, err = client.GenerateVerificationCodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "GenerateVerificationCode", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client CertificatesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "Get", resp, "Failure responding to request") + return } return @@ -418,6 +422,7 @@ func (client CertificatesClient) ListByIotHub(ctx context.Context, resourceGroup result, err = client.ListByIotHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "ListByIotHub", resp, "Failure responding to request") + return } return @@ -503,6 +508,7 @@ func (client CertificatesClient) Verify(ctx context.Context, resourceGroupName s result, err = client.VerifyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "Verify", resp, "Failure responding to request") + return } return diff --git a/services/iothub/mgmt/2017-07-01/devices/iothubresource.go b/services/iothub/mgmt/2017-07-01/devices/iothubresource.go index 73a4c11dcc88..f884a6894714 100644 --- a/services/iothub/mgmt/2017-07-01/devices/iothubresource.go +++ b/services/iothub/mgmt/2017-07-01/devices/iothubresource.go @@ -79,6 +79,7 @@ func (client IotHubResourceClient) CheckNameAvailability(ctx context.Context, op result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client IotHubResourceClient) CreateEventHubConsumerGroup(ctx context.Conte result, err = client.CreateEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "CreateEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -429,6 +431,7 @@ func (client IotHubResourceClient) DeleteEventHubConsumerGroup(ctx context.Conte result, err = client.DeleteEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "DeleteEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -515,6 +518,7 @@ func (client IotHubResourceClient) ExportDevices(ctx context.Context, resourceGr result, err = client.ExportDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ExportDevices", resp, "Failure responding to request") + return } return @@ -592,6 +596,7 @@ func (client IotHubResourceClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "Get", resp, "Failure responding to request") + return } return @@ -669,6 +674,7 @@ func (client IotHubResourceClient) GetEventHubConsumerGroup(ctx context.Context, result, err = client.GetEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -748,6 +754,7 @@ func (client IotHubResourceClient) GetJob(ctx context.Context, resourceGroupName result, err = client.GetJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetJob", resp, "Failure responding to request") + return } return @@ -826,6 +833,7 @@ func (client IotHubResourceClient) GetKeysForKeyName(ctx context.Context, resour result, err = client.GetKeysForKeyNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetKeysForKeyName", resp, "Failure responding to request") + return } return @@ -903,6 +911,7 @@ func (client IotHubResourceClient) GetQuotaMetrics(ctx context.Context, resource result.ihqmilr, err = client.GetQuotaMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetQuotaMetrics", resp, "Failure responding to request") + return } if result.ihqmilr.hasNextLink() && result.ihqmilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -967,6 +976,7 @@ 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 } @@ -1018,6 +1028,7 @@ func (client IotHubResourceClient) GetStats(ctx context.Context, resourceGroupNa result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetStats", resp, "Failure responding to request") + return } return @@ -1094,6 +1105,7 @@ func (client IotHubResourceClient) GetValidSkus(ctx context.Context, resourceGro result.ihsdlr, err = client.GetValidSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetValidSkus", resp, "Failure responding to request") + return } if result.ihsdlr.hasNextLink() && result.ihsdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1158,6 +1170,7 @@ 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 } @@ -1219,6 +1232,7 @@ func (client IotHubResourceClient) ImportDevices(ctx context.Context, resourceGr result, err = client.ImportDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ImportDevices", resp, "Failure responding to request") + return } return @@ -1296,6 +1310,7 @@ func (client IotHubResourceClient) ListByResourceGroup(ctx context.Context, reso result.ihdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ihdlr.hasNextLink() && result.ihdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1359,6 +1374,7 @@ 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 } @@ -1408,6 +1424,7 @@ func (client IotHubResourceClient) ListBySubscription(ctx context.Context) (resu result.ihdlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ihdlr.hasNextLink() && result.ihdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1470,6 +1487,7 @@ 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 } @@ -1524,6 +1542,7 @@ func (client IotHubResourceClient) ListEventHubConsumerGroups(ctx context.Contex result.ehcglr, err = client.ListEventHubConsumerGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListEventHubConsumerGroups", resp, "Failure responding to request") + return } if result.ehcglr.hasNextLink() && result.ehcglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1589,6 +1608,7 @@ 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 } @@ -1642,6 +1662,7 @@ func (client IotHubResourceClient) ListJobs(ctx context.Context, resourceGroupNa result.jrlr, err = client.ListJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListJobs", resp, "Failure responding to request") + return } if result.jrlr.hasNextLink() && result.jrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1706,6 +1727,7 @@ 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 } @@ -1759,6 +1781,7 @@ func (client IotHubResourceClient) ListKeys(ctx context.Context, resourceGroupNa result.sasarlr, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListKeys", resp, "Failure responding to request") + return } if result.sasarlr.hasNextLink() && result.sasarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1823,6 +1846,7 @@ 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 af215ddbeb78..e75c526da119 100644 --- a/services/iothub/mgmt/2017-07-01/devices/operations.go +++ b/services/iothub/mgmt/2017-07-01/devices/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ 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 } diff --git a/services/iothub/mgmt/2018-01-22/devices/certificates.go b/services/iothub/mgmt/2018-01-22/devices/certificates.go index b5402f653782..fc2216a0338a 100644 --- a/services/iothub/mgmt/2018-01-22/devices/certificates.go +++ b/services/iothub/mgmt/2018-01-22/devices/certificates.go @@ -83,6 +83,7 @@ func (client CertificatesClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client CertificatesClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "Delete", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client CertificatesClient) GenerateVerificationCode(ctx context.Context, r result, err = client.GenerateVerificationCodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "GenerateVerificationCode", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client CertificatesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "Get", resp, "Failure responding to request") + return } return @@ -418,6 +422,7 @@ func (client CertificatesClient) ListByIotHub(ctx context.Context, resourceGroup result, err = client.ListByIotHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "ListByIotHub", resp, "Failure responding to request") + return } return @@ -503,6 +508,7 @@ func (client CertificatesClient) Verify(ctx context.Context, resourceGroupName s result, err = client.VerifyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "Verify", resp, "Failure responding to request") + return } return diff --git a/services/iothub/mgmt/2018-01-22/devices/iothubresource.go b/services/iothub/mgmt/2018-01-22/devices/iothubresource.go index d25b13aa3259..8db3450e51ef 100644 --- a/services/iothub/mgmt/2018-01-22/devices/iothubresource.go +++ b/services/iothub/mgmt/2018-01-22/devices/iothubresource.go @@ -79,6 +79,7 @@ func (client IotHubResourceClient) CheckNameAvailability(ctx context.Context, op result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client IotHubResourceClient) CreateEventHubConsumerGroup(ctx context.Conte result, err = client.CreateEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "CreateEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -426,6 +428,7 @@ func (client IotHubResourceClient) DeleteEventHubConsumerGroup(ctx context.Conte result, err = client.DeleteEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "DeleteEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -512,6 +515,7 @@ func (client IotHubResourceClient) ExportDevices(ctx context.Context, resourceGr result, err = client.ExportDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ExportDevices", resp, "Failure responding to request") + return } return @@ -589,6 +593,7 @@ func (client IotHubResourceClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "Get", resp, "Failure responding to request") + return } return @@ -666,6 +671,7 @@ func (client IotHubResourceClient) GetEventHubConsumerGroup(ctx context.Context, result, err = client.GetEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -745,6 +751,7 @@ func (client IotHubResourceClient) GetJob(ctx context.Context, resourceGroupName result, err = client.GetJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetJob", resp, "Failure responding to request") + return } return @@ -823,6 +830,7 @@ func (client IotHubResourceClient) GetKeysForKeyName(ctx context.Context, resour result, err = client.GetKeysForKeyNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetKeysForKeyName", resp, "Failure responding to request") + return } return @@ -900,6 +908,7 @@ func (client IotHubResourceClient) GetQuotaMetrics(ctx context.Context, resource result.ihqmilr, err = client.GetQuotaMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetQuotaMetrics", resp, "Failure responding to request") + return } if result.ihqmilr.hasNextLink() && result.ihqmilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -964,6 +973,7 @@ 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 } @@ -1015,6 +1025,7 @@ func (client IotHubResourceClient) GetStats(ctx context.Context, resourceGroupNa result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetStats", resp, "Failure responding to request") + return } return @@ -1091,6 +1102,7 @@ func (client IotHubResourceClient) GetValidSkus(ctx context.Context, resourceGro result.ihsdlr, err = client.GetValidSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetValidSkus", resp, "Failure responding to request") + return } if result.ihsdlr.hasNextLink() && result.ihsdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1155,6 +1167,7 @@ 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 } @@ -1216,6 +1229,7 @@ func (client IotHubResourceClient) ImportDevices(ctx context.Context, resourceGr result, err = client.ImportDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ImportDevices", resp, "Failure responding to request") + return } return @@ -1293,6 +1307,7 @@ func (client IotHubResourceClient) ListByResourceGroup(ctx context.Context, reso result.ihdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ihdlr.hasNextLink() && result.ihdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1356,6 +1371,7 @@ 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 } @@ -1405,6 +1421,7 @@ func (client IotHubResourceClient) ListBySubscription(ctx context.Context) (resu result.ihdlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ihdlr.hasNextLink() && result.ihdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1467,6 +1484,7 @@ 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 } @@ -1521,6 +1539,7 @@ func (client IotHubResourceClient) ListEventHubConsumerGroups(ctx context.Contex result.ehcglr, err = client.ListEventHubConsumerGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListEventHubConsumerGroups", resp, "Failure responding to request") + return } if result.ehcglr.hasNextLink() && result.ehcglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1586,6 +1605,7 @@ 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 } @@ -1639,6 +1659,7 @@ func (client IotHubResourceClient) ListJobs(ctx context.Context, resourceGroupNa result.jrlr, err = client.ListJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListJobs", resp, "Failure responding to request") + return } if result.jrlr.hasNextLink() && result.jrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1703,6 +1724,7 @@ 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 } @@ -1756,6 +1778,7 @@ func (client IotHubResourceClient) ListKeys(ctx context.Context, resourceGroupNa result.sasarlr, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListKeys", resp, "Failure responding to request") + return } if result.sasarlr.hasNextLink() && result.sasarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1820,6 +1843,7 @@ 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 18f5f91bbc19..146a6cb50723 100644 --- a/services/iothub/mgmt/2018-01-22/devices/operations.go +++ b/services/iothub/mgmt/2018-01-22/devices/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ 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 } diff --git a/services/iothub/mgmt/2018-04-01/devices/certificates.go b/services/iothub/mgmt/2018-04-01/devices/certificates.go index 5eba436c9a71..1aef43b11392 100644 --- a/services/iothub/mgmt/2018-04-01/devices/certificates.go +++ b/services/iothub/mgmt/2018-04-01/devices/certificates.go @@ -83,6 +83,7 @@ func (client CertificatesClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client CertificatesClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "Delete", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client CertificatesClient) GenerateVerificationCode(ctx context.Context, r result, err = client.GenerateVerificationCodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "GenerateVerificationCode", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client CertificatesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "Get", resp, "Failure responding to request") + return } return @@ -418,6 +422,7 @@ func (client CertificatesClient) ListByIotHub(ctx context.Context, resourceGroup result, err = client.ListByIotHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "ListByIotHub", resp, "Failure responding to request") + return } return @@ -503,6 +508,7 @@ func (client CertificatesClient) Verify(ctx context.Context, resourceGroupName s result, err = client.VerifyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "Verify", resp, "Failure responding to request") + return } return diff --git a/services/iothub/mgmt/2018-04-01/devices/iothubresource.go b/services/iothub/mgmt/2018-04-01/devices/iothubresource.go index cfe8a7adab80..384402f977a2 100644 --- a/services/iothub/mgmt/2018-04-01/devices/iothubresource.go +++ b/services/iothub/mgmt/2018-04-01/devices/iothubresource.go @@ -79,6 +79,7 @@ func (client IotHubResourceClient) CheckNameAvailability(ctx context.Context, op result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client IotHubResourceClient) CreateEventHubConsumerGroup(ctx context.Conte result, err = client.CreateEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "CreateEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -426,6 +428,7 @@ func (client IotHubResourceClient) DeleteEventHubConsumerGroup(ctx context.Conte result, err = client.DeleteEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "DeleteEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -512,6 +515,7 @@ func (client IotHubResourceClient) ExportDevices(ctx context.Context, resourceGr result, err = client.ExportDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ExportDevices", resp, "Failure responding to request") + return } return @@ -589,6 +593,7 @@ func (client IotHubResourceClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "Get", resp, "Failure responding to request") + return } return @@ -662,6 +667,7 @@ func (client IotHubResourceClient) GetEndpointHealth(ctx context.Context, resour result.ehdlr, err = client.GetEndpointHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetEndpointHealth", resp, "Failure responding to request") + return } if result.ehdlr.hasNextLink() && result.ehdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -726,6 +732,7 @@ func (client IotHubResourceClient) getEndpointHealthNextResults(ctx context.Cont result, err = client.GetEndpointHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "getEndpointHealthNextResults", resp, "Failure responding to next results request") + return } return } @@ -779,6 +786,7 @@ func (client IotHubResourceClient) GetEventHubConsumerGroup(ctx context.Context, result, err = client.GetEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -858,6 +866,7 @@ func (client IotHubResourceClient) GetJob(ctx context.Context, resourceGroupName result, err = client.GetJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetJob", resp, "Failure responding to request") + return } return @@ -936,6 +945,7 @@ func (client IotHubResourceClient) GetKeysForKeyName(ctx context.Context, resour result, err = client.GetKeysForKeyNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetKeysForKeyName", resp, "Failure responding to request") + return } return @@ -1013,6 +1023,7 @@ func (client IotHubResourceClient) GetQuotaMetrics(ctx context.Context, resource result.ihqmilr, err = client.GetQuotaMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetQuotaMetrics", resp, "Failure responding to request") + return } if result.ihqmilr.hasNextLink() && result.ihqmilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1077,6 +1088,7 @@ 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 } @@ -1128,6 +1140,7 @@ func (client IotHubResourceClient) GetStats(ctx context.Context, resourceGroupNa result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetStats", resp, "Failure responding to request") + return } return @@ -1204,6 +1217,7 @@ func (client IotHubResourceClient) GetValidSkus(ctx context.Context, resourceGro result.ihsdlr, err = client.GetValidSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetValidSkus", resp, "Failure responding to request") + return } if result.ihsdlr.hasNextLink() && result.ihsdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1268,6 +1282,7 @@ 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 } @@ -1329,6 +1344,7 @@ func (client IotHubResourceClient) ImportDevices(ctx context.Context, resourceGr result, err = client.ImportDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ImportDevices", resp, "Failure responding to request") + return } return @@ -1406,6 +1422,7 @@ func (client IotHubResourceClient) ListByResourceGroup(ctx context.Context, reso result.ihdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ihdlr.hasNextLink() && result.ihdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1469,6 +1486,7 @@ 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 } @@ -1518,6 +1536,7 @@ func (client IotHubResourceClient) ListBySubscription(ctx context.Context) (resu result.ihdlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ihdlr.hasNextLink() && result.ihdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1580,6 +1599,7 @@ 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 } @@ -1634,6 +1654,7 @@ func (client IotHubResourceClient) ListEventHubConsumerGroups(ctx context.Contex result.ehcglr, err = client.ListEventHubConsumerGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListEventHubConsumerGroups", resp, "Failure responding to request") + return } if result.ehcglr.hasNextLink() && result.ehcglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1699,6 +1720,7 @@ 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 } @@ -1752,6 +1774,7 @@ func (client IotHubResourceClient) ListJobs(ctx context.Context, resourceGroupNa result.jrlr, err = client.ListJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListJobs", resp, "Failure responding to request") + return } if result.jrlr.hasNextLink() && result.jrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1816,6 +1839,7 @@ 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 } @@ -1869,6 +1893,7 @@ func (client IotHubResourceClient) ListKeys(ctx context.Context, resourceGroupNa result.sasarlr, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListKeys", resp, "Failure responding to request") + return } if result.sasarlr.hasNextLink() && result.sasarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1933,6 +1958,7 @@ 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 } @@ -1985,6 +2011,7 @@ func (client IotHubResourceClient) TestAllRoutes(ctx context.Context, input Test result, err = client.TestAllRoutesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "TestAllRoutes", resp, "Failure responding to request") + return } return @@ -2077,6 +2104,7 @@ func (client IotHubResourceClient) TestRoute(ctx context.Context, input TestRout result, err = client.TestRouteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "TestRoute", resp, "Failure responding to request") + return } return diff --git a/services/iothub/mgmt/2018-04-01/devices/operations.go b/services/iothub/mgmt/2018-04-01/devices/operations.go index 0f180647752a..e0fea7bc5102 100644 --- a/services/iothub/mgmt/2018-04-01/devices/operations.go +++ b/services/iothub/mgmt/2018-04-01/devices/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ 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 } diff --git a/services/iothub/mgmt/2018-04-01/devices/resourceprovidercommon.go b/services/iothub/mgmt/2018-04-01/devices/resourceprovidercommon.go index f418fd8562ad..c268e6092457 100644 --- a/services/iothub/mgmt/2018-04-01/devices/resourceprovidercommon.go +++ b/services/iothub/mgmt/2018-04-01/devices/resourceprovidercommon.go @@ -70,6 +70,7 @@ func (client ResourceProviderCommonClient) GetSubscriptionQuota(ctx context.Cont result, err = client.GetSubscriptionQuotaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.ResourceProviderCommonClient", "GetSubscriptionQuota", resp, "Failure responding to request") + return } return diff --git a/services/iothub/mgmt/2020-03-01/devices/certificates.go b/services/iothub/mgmt/2020-03-01/devices/certificates.go index 0e6b6e4c0988..03491296c586 100644 --- a/services/iothub/mgmt/2020-03-01/devices/certificates.go +++ b/services/iothub/mgmt/2020-03-01/devices/certificates.go @@ -83,6 +83,7 @@ func (client CertificatesClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client CertificatesClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "Delete", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client CertificatesClient) GenerateVerificationCode(ctx context.Context, r result, err = client.GenerateVerificationCodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "GenerateVerificationCode", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client CertificatesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "Get", resp, "Failure responding to request") + return } return @@ -418,6 +422,7 @@ func (client CertificatesClient) ListByIotHub(ctx context.Context, resourceGroup result, err = client.ListByIotHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "ListByIotHub", resp, "Failure responding to request") + return } return @@ -503,6 +508,7 @@ func (client CertificatesClient) Verify(ctx context.Context, resourceGroupName s result, err = client.VerifyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "Verify", resp, "Failure responding to request") + return } return diff --git a/services/iothub/mgmt/2020-03-01/devices/iothubresource.go b/services/iothub/mgmt/2020-03-01/devices/iothubresource.go index a4354f34ac2c..62c4de3c7edb 100644 --- a/services/iothub/mgmt/2020-03-01/devices/iothubresource.go +++ b/services/iothub/mgmt/2020-03-01/devices/iothubresource.go @@ -79,6 +79,7 @@ func (client IotHubResourceClient) CheckNameAvailability(ctx context.Context, op result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client IotHubResourceClient) CreateEventHubConsumerGroup(ctx context.Conte result, err = client.CreateEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "CreateEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -426,6 +428,7 @@ func (client IotHubResourceClient) DeleteEventHubConsumerGroup(ctx context.Conte result, err = client.DeleteEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "DeleteEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -512,6 +515,7 @@ func (client IotHubResourceClient) ExportDevices(ctx context.Context, resourceGr result, err = client.ExportDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ExportDevices", resp, "Failure responding to request") + return } return @@ -589,6 +593,7 @@ func (client IotHubResourceClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "Get", resp, "Failure responding to request") + return } return @@ -662,6 +667,7 @@ func (client IotHubResourceClient) GetEndpointHealth(ctx context.Context, resour result.ehdlr, err = client.GetEndpointHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetEndpointHealth", resp, "Failure responding to request") + return } if result.ehdlr.hasNextLink() && result.ehdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -726,6 +732,7 @@ func (client IotHubResourceClient) getEndpointHealthNextResults(ctx context.Cont result, err = client.GetEndpointHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "getEndpointHealthNextResults", resp, "Failure responding to next results request") + return } return } @@ -779,6 +786,7 @@ func (client IotHubResourceClient) GetEventHubConsumerGroup(ctx context.Context, result, err = client.GetEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -858,6 +866,7 @@ func (client IotHubResourceClient) GetJob(ctx context.Context, resourceGroupName result, err = client.GetJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetJob", resp, "Failure responding to request") + return } return @@ -936,6 +945,7 @@ func (client IotHubResourceClient) GetKeysForKeyName(ctx context.Context, resour result, err = client.GetKeysForKeyNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetKeysForKeyName", resp, "Failure responding to request") + return } return @@ -1013,6 +1023,7 @@ func (client IotHubResourceClient) GetQuotaMetrics(ctx context.Context, resource result.ihqmilr, err = client.GetQuotaMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetQuotaMetrics", resp, "Failure responding to request") + return } if result.ihqmilr.hasNextLink() && result.ihqmilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1077,6 +1088,7 @@ 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 } @@ -1128,6 +1140,7 @@ func (client IotHubResourceClient) GetStats(ctx context.Context, resourceGroupNa result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetStats", resp, "Failure responding to request") + return } return @@ -1204,6 +1217,7 @@ func (client IotHubResourceClient) GetValidSkus(ctx context.Context, resourceGro result.ihsdlr, err = client.GetValidSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetValidSkus", resp, "Failure responding to request") + return } if result.ihsdlr.hasNextLink() && result.ihsdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1268,6 +1282,7 @@ 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 } @@ -1329,6 +1344,7 @@ func (client IotHubResourceClient) ImportDevices(ctx context.Context, resourceGr result, err = client.ImportDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ImportDevices", resp, "Failure responding to request") + return } return @@ -1406,6 +1422,7 @@ func (client IotHubResourceClient) ListByResourceGroup(ctx context.Context, reso result.ihdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ihdlr.hasNextLink() && result.ihdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1469,6 +1486,7 @@ 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 } @@ -1518,6 +1536,7 @@ func (client IotHubResourceClient) ListBySubscription(ctx context.Context) (resu result.ihdlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ihdlr.hasNextLink() && result.ihdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1580,6 +1599,7 @@ 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 } @@ -1634,6 +1654,7 @@ func (client IotHubResourceClient) ListEventHubConsumerGroups(ctx context.Contex result.ehcglr, err = client.ListEventHubConsumerGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListEventHubConsumerGroups", resp, "Failure responding to request") + return } if result.ehcglr.hasNextLink() && result.ehcglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1699,6 +1720,7 @@ 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 } @@ -1752,6 +1774,7 @@ func (client IotHubResourceClient) ListJobs(ctx context.Context, resourceGroupNa result.jrlr, err = client.ListJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListJobs", resp, "Failure responding to request") + return } if result.jrlr.hasNextLink() && result.jrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1816,6 +1839,7 @@ 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 } @@ -1869,6 +1893,7 @@ func (client IotHubResourceClient) ListKeys(ctx context.Context, resourceGroupNa result.sasarlr, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListKeys", resp, "Failure responding to request") + return } if result.sasarlr.hasNextLink() && result.sasarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1933,6 +1958,7 @@ 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 } @@ -1985,6 +2011,7 @@ func (client IotHubResourceClient) TestAllRoutes(ctx context.Context, input Test result, err = client.TestAllRoutesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "TestAllRoutes", resp, "Failure responding to request") + return } return @@ -2077,6 +2104,7 @@ func (client IotHubResourceClient) TestRoute(ctx context.Context, input TestRout result, err = client.TestRouteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "TestRoute", resp, "Failure responding to request") + return } return diff --git a/services/iothub/mgmt/2020-03-01/devices/operations.go b/services/iothub/mgmt/2020-03-01/devices/operations.go index 681c5c6b77d4..d763523df9b9 100644 --- a/services/iothub/mgmt/2020-03-01/devices/operations.go +++ b/services/iothub/mgmt/2020-03-01/devices/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ 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 } diff --git a/services/iothub/mgmt/2020-03-01/devices/privateendpointconnections.go b/services/iothub/mgmt/2020-03-01/devices/privateendpointconnections.go index a97e30e4c3c6..518f8d7f553b 100644 --- a/services/iothub/mgmt/2020-03-01/devices/privateendpointconnections.go +++ b/services/iothub/mgmt/2020-03-01/devices/privateendpointconnections.go @@ -152,6 +152,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -228,6 +229,7 @@ func (client PrivateEndpointConnectionsClient) List(ctx context.Context, resourc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.PrivateEndpointConnectionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/iothub/mgmt/2020-03-01/devices/privatelinkresources.go b/services/iothub/mgmt/2020-03-01/devices/privatelinkresources.go index f6a65ce3784d..2df263b27657 100644 --- a/services/iothub/mgmt/2020-03-01/devices/privatelinkresources.go +++ b/services/iothub/mgmt/2020-03-01/devices/privatelinkresources.go @@ -74,6 +74,7 @@ func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.PrivateLinkResourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client PrivateLinkResourcesClient) List(ctx context.Context, resourceGroup result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.PrivateLinkResourcesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/iothub/mgmt/2020-03-01/devices/resourceprovidercommon.go b/services/iothub/mgmt/2020-03-01/devices/resourceprovidercommon.go index 3a1ef1fcc897..77ed35552bad 100644 --- a/services/iothub/mgmt/2020-03-01/devices/resourceprovidercommon.go +++ b/services/iothub/mgmt/2020-03-01/devices/resourceprovidercommon.go @@ -70,6 +70,7 @@ func (client ResourceProviderCommonClient) GetSubscriptionQuota(ctx context.Cont result, err = client.GetSubscriptionQuotaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.ResourceProviderCommonClient", "GetSubscriptionQuota", resp, "Failure responding to request") + return } return diff --git a/services/keyvault/2015-06-01/keyvault/client.go b/services/keyvault/2015-06-01/keyvault/client.go index 4b9f5c0940c6..afd7d2b87de9 100644 --- a/services/keyvault/2015-06-01/keyvault/client.go +++ b/services/keyvault/2015-06-01/keyvault/client.go @@ -77,6 +77,7 @@ func (client BaseClient) BackupKey(ctx context.Context, vaultBaseURL string, key result, err = client.BackupKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "BackupKey", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client BaseClient) CreateCertificate(ctx context.Context, vaultBaseURL str result, err = client.CreateCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "CreateCertificate", resp, "Failure responding to request") + return } return @@ -255,6 +257,7 @@ func (client BaseClient) CreateKey(ctx context.Context, vaultBaseURL string, key result, err = client.CreateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "CreateKey", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client BaseClient) Decrypt(ctx context.Context, vaultBaseURL string, keyNa result, err = client.DecryptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "Decrypt", resp, "Failure responding to request") + return } return @@ -422,6 +426,7 @@ func (client BaseClient) DeleteCertificate(ctx context.Context, vaultBaseURL str result, err = client.DeleteCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteCertificate", resp, "Failure responding to request") + return } return @@ -498,6 +503,7 @@ func (client BaseClient) DeleteCertificateContacts(ctx context.Context, vaultBas result, err = client.DeleteCertificateContactsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteCertificateContacts", resp, "Failure responding to request") + return } return @@ -571,6 +577,7 @@ func (client BaseClient) DeleteCertificateIssuer(ctx context.Context, vaultBaseU result, err = client.DeleteCertificateIssuerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteCertificateIssuer", resp, "Failure responding to request") + return } return @@ -648,6 +655,7 @@ func (client BaseClient) DeleteCertificateOperation(ctx context.Context, vaultBa result, err = client.DeleteCertificateOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteCertificateOperation", resp, "Failure responding to request") + return } return @@ -725,6 +733,7 @@ func (client BaseClient) DeleteKey(ctx context.Context, vaultBaseURL string, key result, err = client.DeleteKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteKey", resp, "Failure responding to request") + return } return @@ -802,6 +811,7 @@ func (client BaseClient) DeleteSecret(ctx context.Context, vaultBaseURL string, result, err = client.DeleteSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteSecret", resp, "Failure responding to request") + return } return @@ -887,6 +897,7 @@ func (client BaseClient) Encrypt(ctx context.Context, vaultBaseURL string, keyNa result, err = client.EncryptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "Encrypt", resp, "Failure responding to request") + return } return @@ -968,6 +979,7 @@ func (client BaseClient) GetCertificate(ctx context.Context, vaultBaseURL string result, err = client.GetCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificate", resp, "Failure responding to request") + return } return @@ -1045,6 +1057,7 @@ func (client BaseClient) GetCertificateContacts(ctx context.Context, vaultBaseUR result, err = client.GetCertificateContactsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificateContacts", resp, "Failure responding to request") + return } return @@ -1118,6 +1131,7 @@ func (client BaseClient) GetCertificateIssuer(ctx context.Context, vaultBaseURL result, err = client.GetCertificateIssuerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificateIssuer", resp, "Failure responding to request") + return } return @@ -1206,6 +1220,7 @@ func (client BaseClient) GetCertificateIssuers(ctx context.Context, vaultBaseURL result.cilr, err = client.GetCertificateIssuersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificateIssuers", resp, "Failure responding to request") + return } if result.cilr.hasNextLink() && result.cilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1271,6 +1286,7 @@ func (client BaseClient) getCertificateIssuersNextResults(ctx context.Context, l result, err = client.GetCertificateIssuersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getCertificateIssuersNextResults", resp, "Failure responding to next results request") + return } return } @@ -1322,6 +1338,7 @@ func (client BaseClient) GetCertificateOperation(ctx context.Context, vaultBaseU result, err = client.GetCertificateOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificateOperation", resp, "Failure responding to request") + return } return @@ -1399,6 +1416,7 @@ func (client BaseClient) GetCertificatePolicy(ctx context.Context, vaultBaseURL result, err = client.GetCertificatePolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificatePolicy", resp, "Failure responding to request") + return } return @@ -1487,6 +1505,7 @@ func (client BaseClient) GetCertificates(ctx context.Context, vaultBaseURL strin result.clr, err = client.GetCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificates", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1552,6 +1571,7 @@ func (client BaseClient) getCertificatesNextResults(ctx context.Context, lastRes result, err = client.GetCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getCertificatesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1615,6 +1635,7 @@ func (client BaseClient) GetCertificateVersions(ctx context.Context, vaultBaseUR result.clr, err = client.GetCertificateVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificateVersions", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1684,6 +1705,7 @@ func (client BaseClient) getCertificateVersionsNextResults(ctx context.Context, result, err = client.GetCertificateVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getCertificateVersionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1736,6 +1758,7 @@ func (client BaseClient) GetKey(ctx context.Context, vaultBaseURL string, keyNam result, err = client.GetKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetKey", resp, "Failure responding to request") + return } return @@ -1825,6 +1848,7 @@ func (client BaseClient) GetKeys(ctx context.Context, vaultBaseURL string, maxre result.klr, err = client.GetKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetKeys", resp, "Failure responding to request") + return } if result.klr.hasNextLink() && result.klr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1890,6 +1914,7 @@ func (client BaseClient) getKeysNextResults(ctx context.Context, lastResults Key result, err = client.GetKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getKeysNextResults", resp, "Failure responding to next results request") + return } return } @@ -1953,6 +1978,7 @@ func (client BaseClient) GetKeyVersions(ctx context.Context, vaultBaseURL string result.klr, err = client.GetKeyVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetKeyVersions", resp, "Failure responding to request") + return } if result.klr.hasNextLink() && result.klr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2022,6 +2048,7 @@ func (client BaseClient) getKeyVersionsNextResults(ctx context.Context, lastResu result, err = client.GetKeyVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getKeyVersionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2074,6 +2101,7 @@ func (client BaseClient) GetSecret(ctx context.Context, vaultBaseURL string, sec result, err = client.GetSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetSecret", resp, "Failure responding to request") + return } return @@ -2163,6 +2191,7 @@ func (client BaseClient) GetSecrets(ctx context.Context, vaultBaseURL string, ma result.slr, err = client.GetSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetSecrets", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2228,6 +2257,7 @@ func (client BaseClient) getSecretsNextResults(ctx context.Context, lastResults result, err = client.GetSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getSecretsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2291,6 +2321,7 @@ func (client BaseClient) GetSecretVersions(ctx context.Context, vaultBaseURL str result.slr, err = client.GetSecretVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetSecretVersions", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2360,6 +2391,7 @@ func (client BaseClient) getSecretVersionsNextResults(ctx context.Context, lastR result, err = client.GetSecretVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getSecretVersionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2426,6 +2458,7 @@ func (client BaseClient) ImportCertificate(ctx context.Context, vaultBaseURL str result, err = client.ImportCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "ImportCertificate", resp, "Failure responding to request") + return } return @@ -2514,6 +2547,7 @@ func (client BaseClient) ImportKey(ctx context.Context, vaultBaseURL string, key result, err = client.ImportKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "ImportKey", resp, "Failure responding to request") + return } return @@ -2600,6 +2634,7 @@ func (client BaseClient) MergeCertificate(ctx context.Context, vaultBaseURL stri result, err = client.MergeCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "MergeCertificate", resp, "Failure responding to request") + return } return @@ -2685,6 +2720,7 @@ func (client BaseClient) RestoreKey(ctx context.Context, vaultBaseURL string, pa result, err = client.RestoreKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RestoreKey", resp, "Failure responding to request") + return } return @@ -2760,6 +2796,7 @@ func (client BaseClient) SetCertificateContacts(ctx context.Context, vaultBaseUR result, err = client.SetCertificateContactsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "SetCertificateContacts", resp, "Failure responding to request") + return } return @@ -2843,6 +2880,7 @@ func (client BaseClient) SetCertificateIssuer(ctx context.Context, vaultBaseURL result, err = client.SetCertificateIssuerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "SetCertificateIssuer", resp, "Failure responding to request") + return } return @@ -2931,6 +2969,7 @@ func (client BaseClient) SetSecret(ctx context.Context, vaultBaseURL string, sec result, err = client.SetSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "SetSecret", resp, "Failure responding to request") + return } return @@ -3018,6 +3057,7 @@ func (client BaseClient) Sign(ctx context.Context, vaultBaseURL string, keyName result, err = client.SignResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "Sign", resp, "Failure responding to request") + return } return @@ -3107,6 +3147,7 @@ func (client BaseClient) UnwrapKey(ctx context.Context, vaultBaseURL string, key result, err = client.UnwrapKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UnwrapKey", resp, "Failure responding to request") + return } return @@ -3188,6 +3229,7 @@ func (client BaseClient) UpdateCertificate(ctx context.Context, vaultBaseURL str result, err = client.UpdateCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateCertificate", resp, "Failure responding to request") + return } return @@ -3269,6 +3311,7 @@ func (client BaseClient) UpdateCertificateIssuer(ctx context.Context, vaultBaseU result, err = client.UpdateCertificateIssuerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateCertificateIssuer", resp, "Failure responding to request") + return } return @@ -3349,6 +3392,7 @@ func (client BaseClient) UpdateCertificateOperation(ctx context.Context, vaultBa result, err = client.UpdateCertificateOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateCertificateOperation", resp, "Failure responding to request") + return } return @@ -3430,6 +3474,7 @@ func (client BaseClient) UpdateCertificatePolicy(ctx context.Context, vaultBaseU result, err = client.UpdateCertificatePolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateCertificatePolicy", resp, "Failure responding to request") + return } return @@ -3512,6 +3557,7 @@ func (client BaseClient) UpdateKey(ctx context.Context, vaultBaseURL string, key result, err = client.UpdateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateKey", resp, "Failure responding to request") + return } return @@ -3593,6 +3639,7 @@ func (client BaseClient) UpdateSecret(ctx context.Context, vaultBaseURL string, result, err = client.UpdateSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateSecret", resp, "Failure responding to request") + return } return @@ -3682,6 +3729,7 @@ func (client BaseClient) Verify(ctx context.Context, vaultBaseURL string, keyNam result, err = client.VerifyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "Verify", resp, "Failure responding to request") + return } return @@ -3770,6 +3818,7 @@ func (client BaseClient) WrapKey(ctx context.Context, vaultBaseURL string, keyNa result, err = client.WrapKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "WrapKey", resp, "Failure responding to request") + return } return diff --git a/services/keyvault/2016-10-01/keyvault/client.go b/services/keyvault/2016-10-01/keyvault/client.go index 6a14943e4322..3a0eddbf09e1 100644 --- a/services/keyvault/2016-10-01/keyvault/client.go +++ b/services/keyvault/2016-10-01/keyvault/client.go @@ -85,6 +85,7 @@ func (client BaseClient) BackupKey(ctx context.Context, vaultBaseURL string, key result, err = client.BackupKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "BackupKey", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client BaseClient) BackupSecret(ctx context.Context, vaultBaseURL string, result, err = client.BackupSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "BackupSecret", resp, "Failure responding to request") + return } return @@ -255,6 +257,7 @@ func (client BaseClient) CreateCertificate(ctx context.Context, vaultBaseURL str result, err = client.CreateCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "CreateCertificate", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client BaseClient) CreateKey(ctx context.Context, vaultBaseURL string, key result, err = client.CreateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "CreateKey", resp, "Failure responding to request") + return } return @@ -433,6 +437,7 @@ func (client BaseClient) Decrypt(ctx context.Context, vaultBaseURL string, keyNa result, err = client.DecryptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "Decrypt", resp, "Failure responding to request") + return } return @@ -515,6 +520,7 @@ func (client BaseClient) DeleteCertificate(ctx context.Context, vaultBaseURL str result, err = client.DeleteCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteCertificate", resp, "Failure responding to request") + return } return @@ -592,6 +598,7 @@ func (client BaseClient) DeleteCertificateContacts(ctx context.Context, vaultBas result, err = client.DeleteCertificateContactsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteCertificateContacts", resp, "Failure responding to request") + return } return @@ -666,6 +673,7 @@ func (client BaseClient) DeleteCertificateIssuer(ctx context.Context, vaultBaseU result, err = client.DeleteCertificateIssuerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteCertificateIssuer", resp, "Failure responding to request") + return } return @@ -744,6 +752,7 @@ func (client BaseClient) DeleteCertificateOperation(ctx context.Context, vaultBa result, err = client.DeleteCertificateOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteCertificateOperation", resp, "Failure responding to request") + return } return @@ -823,6 +832,7 @@ func (client BaseClient) DeleteKey(ctx context.Context, vaultBaseURL string, key result, err = client.DeleteKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteKey", resp, "Failure responding to request") + return } return @@ -910,6 +920,7 @@ func (client BaseClient) DeleteSasDefinition(ctx context.Context, vaultBaseURL s result, err = client.DeleteSasDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteSasDefinition", resp, "Failure responding to request") + return } return @@ -989,6 +1000,7 @@ func (client BaseClient) DeleteSecret(ctx context.Context, vaultBaseURL string, result, err = client.DeleteSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteSecret", resp, "Failure responding to request") + return } return @@ -1072,6 +1084,7 @@ func (client BaseClient) DeleteStorageAccount(ctx context.Context, vaultBaseURL result, err = client.DeleteStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteStorageAccount", resp, "Failure responding to request") + return } return @@ -1163,6 +1176,7 @@ func (client BaseClient) Encrypt(ctx context.Context, vaultBaseURL string, keyNa result, err = client.EncryptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "Encrypt", resp, "Failure responding to request") + return } return @@ -1245,6 +1259,7 @@ func (client BaseClient) GetCertificate(ctx context.Context, vaultBaseURL string result, err = client.GetCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificate", resp, "Failure responding to request") + return } return @@ -1323,6 +1338,7 @@ func (client BaseClient) GetCertificateContacts(ctx context.Context, vaultBaseUR result, err = client.GetCertificateContactsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificateContacts", resp, "Failure responding to request") + return } return @@ -1397,6 +1413,7 @@ func (client BaseClient) GetCertificateIssuer(ctx context.Context, vaultBaseURL result, err = client.GetCertificateIssuerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificateIssuer", resp, "Failure responding to request") + return } return @@ -1486,6 +1503,7 @@ func (client BaseClient) GetCertificateIssuers(ctx context.Context, vaultBaseURL result.cilr, err = client.GetCertificateIssuersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificateIssuers", resp, "Failure responding to request") + return } if result.cilr.hasNextLink() && result.cilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1551,6 +1569,7 @@ func (client BaseClient) getCertificateIssuersNextResults(ctx context.Context, l result, err = client.GetCertificateIssuersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getCertificateIssuersNextResults", resp, "Failure responding to next results request") + return } return } @@ -1603,6 +1622,7 @@ func (client BaseClient) GetCertificateOperation(ctx context.Context, vaultBaseU result, err = client.GetCertificateOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificateOperation", resp, "Failure responding to request") + return } return @@ -1681,6 +1701,7 @@ func (client BaseClient) GetCertificatePolicy(ctx context.Context, vaultBaseURL result, err = client.GetCertificatePolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificatePolicy", resp, "Failure responding to request") + return } return @@ -1770,6 +1791,7 @@ func (client BaseClient) GetCertificates(ctx context.Context, vaultBaseURL strin result.clr, err = client.GetCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificates", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1835,6 +1857,7 @@ func (client BaseClient) getCertificatesNextResults(ctx context.Context, lastRes result, err = client.GetCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getCertificatesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1899,6 +1922,7 @@ func (client BaseClient) GetCertificateVersions(ctx context.Context, vaultBaseUR result.clr, err = client.GetCertificateVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificateVersions", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1968,6 +1992,7 @@ func (client BaseClient) getCertificateVersionsNextResults(ctx context.Context, result, err = client.GetCertificateVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getCertificateVersionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2021,6 +2046,7 @@ func (client BaseClient) GetDeletedCertificate(ctx context.Context, vaultBaseURL result, err = client.GetDeletedCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedCertificate", resp, "Failure responding to request") + return } return @@ -2112,6 +2138,7 @@ func (client BaseClient) GetDeletedCertificates(ctx context.Context, vaultBaseUR result.dclr, err = client.GetDeletedCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedCertificates", resp, "Failure responding to request") + return } if result.dclr.hasNextLink() && result.dclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2177,6 +2204,7 @@ func (client BaseClient) getDeletedCertificatesNextResults(ctx context.Context, result, err = client.GetDeletedCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getDeletedCertificatesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2230,6 +2258,7 @@ func (client BaseClient) GetDeletedKey(ctx context.Context, vaultBaseURL string, result, err = client.GetDeletedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedKey", resp, "Failure responding to request") + return } return @@ -2321,6 +2350,7 @@ func (client BaseClient) GetDeletedKeys(ctx context.Context, vaultBaseURL string result.dklr, err = client.GetDeletedKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedKeys", resp, "Failure responding to request") + return } if result.dklr.hasNextLink() && result.dklr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2386,6 +2416,7 @@ func (client BaseClient) getDeletedKeysNextResults(ctx context.Context, lastResu result, err = client.GetDeletedKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getDeletedKeysNextResults", resp, "Failure responding to next results request") + return } return } @@ -2438,6 +2469,7 @@ func (client BaseClient) GetDeletedSecret(ctx context.Context, vaultBaseURL stri result, err = client.GetDeletedSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedSecret", resp, "Failure responding to request") + return } return @@ -2527,6 +2559,7 @@ func (client BaseClient) GetDeletedSecrets(ctx context.Context, vaultBaseURL str result.dslr, err = client.GetDeletedSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedSecrets", resp, "Failure responding to request") + return } if result.dslr.hasNextLink() && result.dslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2592,6 +2625,7 @@ func (client BaseClient) getDeletedSecretsNextResults(ctx context.Context, lastR result, err = client.GetDeletedSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getDeletedSecretsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2645,6 +2679,7 @@ func (client BaseClient) GetKey(ctx context.Context, vaultBaseURL string, keyNam result, err = client.GetKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetKey", resp, "Failure responding to request") + return } return @@ -2737,6 +2772,7 @@ func (client BaseClient) GetKeys(ctx context.Context, vaultBaseURL string, maxre result.klr, err = client.GetKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetKeys", resp, "Failure responding to request") + return } if result.klr.hasNextLink() && result.klr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2802,6 +2838,7 @@ func (client BaseClient) getKeysNextResults(ctx context.Context, lastResults Key result, err = client.GetKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getKeysNextResults", resp, "Failure responding to next results request") + return } return } @@ -2866,6 +2903,7 @@ func (client BaseClient) GetKeyVersions(ctx context.Context, vaultBaseURL string result.klr, err = client.GetKeyVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetKeyVersions", resp, "Failure responding to request") + return } if result.klr.hasNextLink() && result.klr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2935,6 +2973,7 @@ func (client BaseClient) getKeyVersionsNextResults(ctx context.Context, lastResu result, err = client.GetKeyVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getKeyVersionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2996,6 +3035,7 @@ func (client BaseClient) GetSasDefinition(ctx context.Context, vaultBaseURL stri result, err = client.GetSasDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetSasDefinition", resp, "Failure responding to request") + return } return @@ -3089,6 +3129,7 @@ func (client BaseClient) GetSasDefinitions(ctx context.Context, vaultBaseURL str result.sdlr, err = client.GetSasDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetSasDefinitions", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3158,6 +3199,7 @@ func (client BaseClient) getSasDefinitionsNextResults(ctx context.Context, lastR result, err = client.GetSasDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getSasDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3211,6 +3253,7 @@ func (client BaseClient) GetSecret(ctx context.Context, vaultBaseURL string, sec result, err = client.GetSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetSecret", resp, "Failure responding to request") + return } return @@ -3302,6 +3345,7 @@ func (client BaseClient) GetSecrets(ctx context.Context, vaultBaseURL string, ma result.slr, err = client.GetSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetSecrets", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3367,6 +3411,7 @@ func (client BaseClient) getSecretsNextResults(ctx context.Context, lastResults result, err = client.GetSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getSecretsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3431,6 +3476,7 @@ func (client BaseClient) GetSecretVersions(ctx context.Context, vaultBaseURL str result.slr, err = client.GetSecretVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetSecretVersions", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3500,6 +3546,7 @@ func (client BaseClient) getSecretVersionsNextResults(ctx context.Context, lastR result, err = client.GetSecretVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getSecretVersionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3558,6 +3605,7 @@ func (client BaseClient) GetStorageAccount(ctx context.Context, vaultBaseURL str result, err = client.GetStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetStorageAccount", resp, "Failure responding to request") + return } return @@ -3647,6 +3695,7 @@ func (client BaseClient) GetStorageAccounts(ctx context.Context, vaultBaseURL st result.slr, err = client.GetStorageAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetStorageAccounts", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3712,6 +3761,7 @@ func (client BaseClient) getStorageAccountsNextResults(ctx context.Context, last result, err = client.GetStorageAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getStorageAccountsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3780,6 +3830,7 @@ func (client BaseClient) ImportCertificate(ctx context.Context, vaultBaseURL str result, err = client.ImportCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "ImportCertificate", resp, "Failure responding to request") + return } return @@ -3870,6 +3921,7 @@ func (client BaseClient) ImportKey(ctx context.Context, vaultBaseURL string, key result, err = client.ImportKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "ImportKey", resp, "Failure responding to request") + return } return @@ -3957,6 +4009,7 @@ func (client BaseClient) MergeCertificate(ctx context.Context, vaultBaseURL stri result, err = client.MergeCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "MergeCertificate", resp, "Failure responding to request") + return } return @@ -4038,6 +4091,7 @@ func (client BaseClient) PurgeDeletedCertificate(ctx context.Context, vaultBaseU result, err = client.PurgeDeletedCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "PurgeDeletedCertificate", resp, "Failure responding to request") + return } return @@ -4116,6 +4170,7 @@ func (client BaseClient) PurgeDeletedKey(ctx context.Context, vaultBaseURL strin result, err = client.PurgeDeletedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "PurgeDeletedKey", resp, "Failure responding to request") + return } return @@ -4194,6 +4249,7 @@ func (client BaseClient) PurgeDeletedSecret(ctx context.Context, vaultBaseURL st result, err = client.PurgeDeletedSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "PurgeDeletedSecret", resp, "Failure responding to request") + return } return @@ -4272,6 +4328,7 @@ func (client BaseClient) RecoverDeletedCertificate(ctx context.Context, vaultBas result, err = client.RecoverDeletedCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RecoverDeletedCertificate", resp, "Failure responding to request") + return } return @@ -4352,6 +4409,7 @@ func (client BaseClient) RecoverDeletedKey(ctx context.Context, vaultBaseURL str result, err = client.RecoverDeletedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RecoverDeletedKey", resp, "Failure responding to request") + return } return @@ -4430,6 +4488,7 @@ func (client BaseClient) RecoverDeletedSecret(ctx context.Context, vaultBaseURL result, err = client.RecoverDeletedSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RecoverDeletedSecret", resp, "Failure responding to request") + return } return @@ -4517,6 +4576,7 @@ func (client BaseClient) RegenerateStorageAccountKey(ctx context.Context, vaultB result, err = client.RegenerateStorageAccountKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RegenerateStorageAccountKey", resp, "Failure responding to request") + return } return @@ -4610,6 +4670,7 @@ func (client BaseClient) RestoreKey(ctx context.Context, vaultBaseURL string, pa result, err = client.RestoreKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RestoreKey", resp, "Failure responding to request") + return } return @@ -4692,6 +4753,7 @@ func (client BaseClient) RestoreSecret(ctx context.Context, vaultBaseURL string, result, err = client.RestoreSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RestoreSecret", resp, "Failure responding to request") + return } return @@ -4768,6 +4830,7 @@ func (client BaseClient) SetCertificateContacts(ctx context.Context, vaultBaseUR result, err = client.SetCertificateContactsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "SetCertificateContacts", resp, "Failure responding to request") + return } return @@ -4852,6 +4915,7 @@ func (client BaseClient) SetCertificateIssuer(ctx context.Context, vaultBaseURL result, err = client.SetCertificateIssuerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "SetCertificateIssuer", resp, "Failure responding to request") + return } return @@ -4944,6 +5008,7 @@ func (client BaseClient) SetSasDefinition(ctx context.Context, vaultBaseURL stri result, err = client.SetSasDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "SetSasDefinition", resp, "Failure responding to request") + return } return @@ -5034,6 +5099,7 @@ func (client BaseClient) SetSecret(ctx context.Context, vaultBaseURL string, sec result, err = client.SetSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "SetSecret", resp, "Failure responding to request") + return } return @@ -5124,6 +5190,7 @@ func (client BaseClient) SetStorageAccount(ctx context.Context, vaultBaseURL str result, err = client.SetStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "SetStorageAccount", resp, "Failure responding to request") + return } return @@ -5212,6 +5279,7 @@ func (client BaseClient) Sign(ctx context.Context, vaultBaseURL string, keyName result, err = client.SignResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "Sign", resp, "Failure responding to request") + return } return @@ -5303,6 +5371,7 @@ func (client BaseClient) UnwrapKey(ctx context.Context, vaultBaseURL string, key result, err = client.UnwrapKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UnwrapKey", resp, "Failure responding to request") + return } return @@ -5386,6 +5455,7 @@ func (client BaseClient) UpdateCertificate(ctx context.Context, vaultBaseURL str result, err = client.UpdateCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateCertificate", resp, "Failure responding to request") + return } return @@ -5468,6 +5538,7 @@ func (client BaseClient) UpdateCertificateIssuer(ctx context.Context, vaultBaseU result, err = client.UpdateCertificateIssuerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateCertificateIssuer", resp, "Failure responding to request") + return } return @@ -5549,6 +5620,7 @@ func (client BaseClient) UpdateCertificateOperation(ctx context.Context, vaultBa result, err = client.UpdateCertificateOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateCertificateOperation", resp, "Failure responding to request") + return } return @@ -5630,6 +5702,7 @@ func (client BaseClient) UpdateCertificatePolicy(ctx context.Context, vaultBaseU result, err = client.UpdateCertificatePolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateCertificatePolicy", resp, "Failure responding to request") + return } return @@ -5713,6 +5786,7 @@ func (client BaseClient) UpdateKey(ctx context.Context, vaultBaseURL string, key result, err = client.UpdateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateKey", resp, "Failure responding to request") + return } return @@ -5804,6 +5878,7 @@ func (client BaseClient) UpdateSasDefinition(ctx context.Context, vaultBaseURL s result, err = client.UpdateSasDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateSasDefinition", resp, "Failure responding to request") + return } return @@ -5888,6 +5963,7 @@ func (client BaseClient) UpdateSecret(ctx context.Context, vaultBaseURL string, result, err = client.UpdateSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateSecret", resp, "Failure responding to request") + return } return @@ -5976,6 +6052,7 @@ func (client BaseClient) UpdateStorageAccount(ctx context.Context, vaultBaseURL result, err = client.UpdateStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateStorageAccount", resp, "Failure responding to request") + return } return @@ -6067,6 +6144,7 @@ func (client BaseClient) Verify(ctx context.Context, vaultBaseURL string, keyNam result, err = client.VerifyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "Verify", resp, "Failure responding to request") + return } return @@ -6159,6 +6237,7 @@ func (client BaseClient) WrapKey(ctx context.Context, vaultBaseURL string, keyNa result, err = client.WrapKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "WrapKey", resp, "Failure responding to request") + return } return diff --git a/services/keyvault/mgmt/2015-06-01/keyvault/vaults.go b/services/keyvault/mgmt/2015-06-01/keyvault/vaults.go index 0823bd0216d2..f84beeaf518a 100644 --- a/services/keyvault/mgmt/2015-06-01/keyvault/vaults.go +++ b/services/keyvault/mgmt/2015-06-01/keyvault/vaults.go @@ -90,6 +90,7 @@ func (client VaultsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client VaultsClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "Delete", resp, "Failure responding to request") + return } return @@ -241,6 +243,7 @@ func (client VaultsClient) Get(ctx context.Context, resourceGroupName string, va result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client VaultsClient) List(ctx context.Context, top *int32) (result Resourc result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +386,7 @@ func (client VaultsClient) listNextResults(ctx context.Context, lastResults Reso result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -435,6 +440,7 @@ func (client VaultsClient) ListByResourceGroup(ctx context.Context, resourceGrou result.vlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vlr.hasNextLink() && result.vlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -501,6 +507,7 @@ func (client VaultsClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/keyvault/mgmt/2016-10-01/keyvault/operations.go b/services/keyvault/mgmt/2016-10-01/keyvault/operations.go index 30b13a0d2ce9..75c7b9b74549 100644 --- a/services/keyvault/mgmt/2016-10-01/keyvault/operations.go +++ b/services/keyvault/mgmt/2016-10-01/keyvault/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/keyvault/mgmt/2016-10-01/keyvault/vaults.go b/services/keyvault/mgmt/2016-10-01/keyvault/vaults.go index 940e8de3ad13..927313beb266 100644 --- a/services/keyvault/mgmt/2016-10-01/keyvault/vaults.go +++ b/services/keyvault/mgmt/2016-10-01/keyvault/vaults.go @@ -80,6 +80,7 @@ func (client VaultsClient) CheckNameAvailability(ctx context.Context, vaultName result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client VaultsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client VaultsClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "Delete", resp, "Failure responding to request") + return } return @@ -320,6 +323,7 @@ func (client VaultsClient) Get(ctx context.Context, resourceGroupName string, va result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "Get", resp, "Failure responding to request") + return } return @@ -395,6 +399,7 @@ func (client VaultsClient) GetDeleted(ctx context.Context, vaultName string, loc result, err = client.GetDeletedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "GetDeleted", resp, "Failure responding to request") + return } return @@ -470,6 +475,7 @@ func (client VaultsClient) List(ctx context.Context, top *int32) (result Resourc result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -536,6 +542,7 @@ func (client VaultsClient) listNextResults(ctx context.Context, lastResults Reso result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -589,6 +596,7 @@ func (client VaultsClient) ListByResourceGroup(ctx context.Context, resourceGrou result.vlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vlr.hasNextLink() && result.vlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -655,6 +663,7 @@ func (client VaultsClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -706,6 +715,7 @@ func (client VaultsClient) ListBySubscription(ctx context.Context, top *int32) ( result.vlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.vlr.hasNextLink() && result.vlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -771,6 +781,7 @@ func (client VaultsClient) listBySubscriptionNextResults(ctx context.Context, la result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -820,6 +831,7 @@ func (client VaultsClient) ListDeleted(ctx context.Context) (result DeletedVault result.dvlr, err = client.ListDeletedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "ListDeleted", resp, "Failure responding to request") + return } if result.dvlr.hasNextLink() && result.dvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -882,6 +894,7 @@ func (client VaultsClient) listDeletedNextResults(ctx context.Context, lastResul result, err = client.ListDeletedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "listDeletedNextResults", resp, "Failure responding to next results request") + return } return } @@ -1014,6 +1027,7 @@ func (client VaultsClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "Update", resp, "Failure responding to request") + return } return @@ -1102,6 +1116,7 @@ func (client VaultsClient) UpdateAccessPolicy(ctx context.Context, resourceGroup result, err = client.UpdateAccessPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "UpdateAccessPolicy", resp, "Failure responding to request") + return } return diff --git a/services/keyvault/mgmt/2018-02-14/keyvault/operations.go b/services/keyvault/mgmt/2018-02-14/keyvault/operations.go index 3c01c5720b74..fc3f455f09b6 100644 --- a/services/keyvault/mgmt/2018-02-14/keyvault/operations.go +++ b/services/keyvault/mgmt/2018-02-14/keyvault/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/keyvault/mgmt/2018-02-14/keyvault/privateendpointconnections.go b/services/keyvault/mgmt/2018-02-14/keyvault/privateendpointconnections.go index 87cea9e862da..ca5be9faab72 100644 --- a/services/keyvault/mgmt/2018-02-14/keyvault/privateendpointconnections.go +++ b/services/keyvault/mgmt/2018-02-14/keyvault/privateendpointconnections.go @@ -165,6 +165,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -249,6 +250,7 @@ func (client PrivateEndpointConnectionsClient) Put(ctx context.Context, resource result, err = client.PutResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.PrivateEndpointConnectionsClient", "Put", resp, "Failure responding to request") + return } return diff --git a/services/keyvault/mgmt/2018-02-14/keyvault/privatelinkresources.go b/services/keyvault/mgmt/2018-02-14/keyvault/privatelinkresources.go index d77f1d2ae0d4..deae32f3080c 100644 --- a/services/keyvault/mgmt/2018-02-14/keyvault/privatelinkresources.go +++ b/services/keyvault/mgmt/2018-02-14/keyvault/privatelinkresources.go @@ -81,6 +81,7 @@ func (client PrivateLinkResourcesClient) ListByVault(ctx context.Context, resour result, err = client.ListByVaultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.PrivateLinkResourcesClient", "ListByVault", resp, "Failure responding to request") + return } return diff --git a/services/keyvault/mgmt/2018-02-14/keyvault/vaults.go b/services/keyvault/mgmt/2018-02-14/keyvault/vaults.go index 201e384a1b8c..15d0ec12f549 100644 --- a/services/keyvault/mgmt/2018-02-14/keyvault/vaults.go +++ b/services/keyvault/mgmt/2018-02-14/keyvault/vaults.go @@ -80,6 +80,7 @@ func (client VaultsClient) CheckNameAvailability(ctx context.Context, vaultName result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -246,6 +247,7 @@ func (client VaultsClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "Delete", resp, "Failure responding to request") + return } return @@ -320,6 +322,7 @@ func (client VaultsClient) Get(ctx context.Context, resourceGroupName string, va result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "Get", resp, "Failure responding to request") + return } return @@ -395,6 +398,7 @@ func (client VaultsClient) GetDeleted(ctx context.Context, vaultName string, loc result, err = client.GetDeletedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "GetDeleted", resp, "Failure responding to request") + return } return @@ -470,6 +474,7 @@ func (client VaultsClient) List(ctx context.Context, top *int32) (result Resourc result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -536,6 +541,7 @@ func (client VaultsClient) listNextResults(ctx context.Context, lastResults Reso result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -589,6 +595,7 @@ func (client VaultsClient) ListByResourceGroup(ctx context.Context, resourceGrou result.vlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vlr.hasNextLink() && result.vlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -655,6 +662,7 @@ func (client VaultsClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -706,6 +714,7 @@ func (client VaultsClient) ListBySubscription(ctx context.Context, top *int32) ( result.vlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.vlr.hasNextLink() && result.vlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -771,6 +780,7 @@ func (client VaultsClient) listBySubscriptionNextResults(ctx context.Context, la result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -820,6 +830,7 @@ func (client VaultsClient) ListDeleted(ctx context.Context) (result DeletedVault result.dvlr, err = client.ListDeletedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "ListDeleted", resp, "Failure responding to request") + return } if result.dvlr.hasNextLink() && result.dvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -882,6 +893,7 @@ func (client VaultsClient) listDeletedNextResults(ctx context.Context, lastResul result, err = client.ListDeletedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "listDeletedNextResults", resp, "Failure responding to next results request") + return } return } @@ -1014,6 +1026,7 @@ func (client VaultsClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "Update", resp, "Failure responding to request") + return } return @@ -1102,6 +1115,7 @@ func (client VaultsClient) UpdateAccessPolicy(ctx context.Context, resourceGroup result, err = client.UpdateAccessPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "UpdateAccessPolicy", resp, "Failure responding to request") + return } return diff --git a/services/keyvault/mgmt/2019-09-01/keyvault/keys.go b/services/keyvault/mgmt/2019-09-01/keyvault/keys.go index c4dd095577ef..20964c451ee3 100644 --- a/services/keyvault/mgmt/2019-09-01/keyvault/keys.go +++ b/services/keyvault/mgmt/2019-09-01/keyvault/keys.go @@ -88,6 +88,7 @@ func (client KeysClient) CreateIfNotExist(ctx context.Context, resourceGroupName result, err = client.CreateIfNotExistResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.KeysClient", "CreateIfNotExist", resp, "Failure responding to request") + return } return @@ -175,6 +176,7 @@ func (client KeysClient) Get(ctx context.Context, resourceGroupName string, vaul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.KeysClient", "Get", resp, "Failure responding to request") + return } return @@ -263,6 +265,7 @@ func (client KeysClient) GetVersion(ctx context.Context, resourceGroupName strin result, err = client.GetVersionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.KeysClient", "GetVersion", resp, "Failure responding to request") + return } return @@ -347,6 +350,7 @@ func (client KeysClient) List(ctx context.Context, resourceGroupName string, vau result.klr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.KeysClient", "List", resp, "Failure responding to request") + return } if result.klr.hasNextLink() && result.klr.IsEmpty() { err = result.NextWithContext(ctx) @@ -411,6 +415,7 @@ func (client KeysClient) listNextResults(ctx context.Context, lastResults KeyLis result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.KeysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -472,6 +477,7 @@ func (client KeysClient) ListVersions(ctx context.Context, resourceGroupName str result.klr, err = client.ListVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.KeysClient", "ListVersions", resp, "Failure responding to request") + return } if result.klr.hasNextLink() && result.klr.IsEmpty() { err = result.NextWithContext(ctx) @@ -537,6 +543,7 @@ func (client KeysClient) listVersionsNextResults(ctx context.Context, lastResult result, err = client.ListVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.KeysClient", "listVersionsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/keyvault/mgmt/2019-09-01/keyvault/operations.go b/services/keyvault/mgmt/2019-09-01/keyvault/operations.go index 1fdc72cba446..9efc875738b5 100644 --- a/services/keyvault/mgmt/2019-09-01/keyvault/operations.go +++ b/services/keyvault/mgmt/2019-09-01/keyvault/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/keyvault/mgmt/2019-09-01/keyvault/privateendpointconnections.go b/services/keyvault/mgmt/2019-09-01/keyvault/privateendpointconnections.go index 6c7ac235554c..f4b84d0e0aa5 100644 --- a/services/keyvault/mgmt/2019-09-01/keyvault/privateendpointconnections.go +++ b/services/keyvault/mgmt/2019-09-01/keyvault/privateendpointconnections.go @@ -165,6 +165,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -249,6 +250,7 @@ func (client PrivateEndpointConnectionsClient) Put(ctx context.Context, resource result, err = client.PutResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.PrivateEndpointConnectionsClient", "Put", resp, "Failure responding to request") + return } return diff --git a/services/keyvault/mgmt/2019-09-01/keyvault/privatelinkresources.go b/services/keyvault/mgmt/2019-09-01/keyvault/privatelinkresources.go index be1cc7a43adf..aaae97ad431e 100644 --- a/services/keyvault/mgmt/2019-09-01/keyvault/privatelinkresources.go +++ b/services/keyvault/mgmt/2019-09-01/keyvault/privatelinkresources.go @@ -81,6 +81,7 @@ func (client PrivateLinkResourcesClient) ListByVault(ctx context.Context, resour result, err = client.ListByVaultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.PrivateLinkResourcesClient", "ListByVault", resp, "Failure responding to request") + return } return diff --git a/services/keyvault/mgmt/2019-09-01/keyvault/vaults.go b/services/keyvault/mgmt/2019-09-01/keyvault/vaults.go index efdf9dd0ae27..16aac580ff4b 100644 --- a/services/keyvault/mgmt/2019-09-01/keyvault/vaults.go +++ b/services/keyvault/mgmt/2019-09-01/keyvault/vaults.go @@ -80,6 +80,7 @@ func (client VaultsClient) CheckNameAvailability(ctx context.Context, vaultName result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -246,6 +247,7 @@ func (client VaultsClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "Delete", resp, "Failure responding to request") + return } return @@ -320,6 +322,7 @@ func (client VaultsClient) Get(ctx context.Context, resourceGroupName string, va result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "Get", resp, "Failure responding to request") + return } return @@ -395,6 +398,7 @@ func (client VaultsClient) GetDeleted(ctx context.Context, vaultName string, loc result, err = client.GetDeletedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "GetDeleted", resp, "Failure responding to request") + return } return @@ -470,6 +474,7 @@ func (client VaultsClient) List(ctx context.Context, top *int32) (result Resourc result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -536,6 +541,7 @@ func (client VaultsClient) listNextResults(ctx context.Context, lastResults Reso result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -589,6 +595,7 @@ func (client VaultsClient) ListByResourceGroup(ctx context.Context, resourceGrou result.vlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vlr.hasNextLink() && result.vlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -655,6 +662,7 @@ func (client VaultsClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -706,6 +714,7 @@ func (client VaultsClient) ListBySubscription(ctx context.Context, top *int32) ( result.vlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.vlr.hasNextLink() && result.vlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -771,6 +780,7 @@ func (client VaultsClient) listBySubscriptionNextResults(ctx context.Context, la result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -820,6 +830,7 @@ func (client VaultsClient) ListDeleted(ctx context.Context) (result DeletedVault result.dvlr, err = client.ListDeletedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "ListDeleted", resp, "Failure responding to request") + return } if result.dvlr.hasNextLink() && result.dvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -882,6 +893,7 @@ func (client VaultsClient) listDeletedNextResults(ctx context.Context, lastResul result, err = client.ListDeletedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "listDeletedNextResults", resp, "Failure responding to next results request") + return } return } @@ -1014,6 +1026,7 @@ func (client VaultsClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "Update", resp, "Failure responding to request") + return } return @@ -1102,6 +1115,7 @@ func (client VaultsClient) UpdateAccessPolicy(ctx context.Context, resourceGroup result, err = client.UpdateAccessPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "UpdateAccessPolicy", resp, "Failure responding to request") + return } return diff --git a/services/keyvault/v7.0/keyvault/client.go b/services/keyvault/v7.0/keyvault/client.go index 2b2fc0865218..f8c002520f31 100644 --- a/services/keyvault/v7.0/keyvault/client.go +++ b/services/keyvault/v7.0/keyvault/client.go @@ -78,6 +78,7 @@ func (client BaseClient) BackupCertificate(ctx context.Context, vaultBaseURL str result, err = client.BackupCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "BackupCertificate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client BaseClient) BackupKey(ctx context.Context, vaultBaseURL string, key result, err = client.BackupKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "BackupKey", resp, "Failure responding to request") + return } return @@ -241,6 +243,7 @@ func (client BaseClient) BackupSecret(ctx context.Context, vaultBaseURL string, result, err = client.BackupSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "BackupSecret", resp, "Failure responding to request") + return } return @@ -319,6 +322,7 @@ func (client BaseClient) BackupStorageAccount(ctx context.Context, vaultBaseURL result, err = client.BackupStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "BackupStorageAccount", resp, "Failure responding to request") + return } return @@ -411,6 +415,7 @@ func (client BaseClient) CreateCertificate(ctx context.Context, vaultBaseURL str result, err = client.CreateCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "CreateCertificate", resp, "Failure responding to request") + return } return @@ -498,6 +503,7 @@ func (client BaseClient) CreateKey(ctx context.Context, vaultBaseURL string, key result, err = client.CreateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "CreateKey", resp, "Failure responding to request") + return } return @@ -589,6 +595,7 @@ func (client BaseClient) Decrypt(ctx context.Context, vaultBaseURL string, keyNa result, err = client.DecryptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "Decrypt", resp, "Failure responding to request") + return } return @@ -671,6 +678,7 @@ func (client BaseClient) DeleteCertificate(ctx context.Context, vaultBaseURL str result, err = client.DeleteCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteCertificate", resp, "Failure responding to request") + return } return @@ -748,6 +756,7 @@ func (client BaseClient) DeleteCertificateContacts(ctx context.Context, vaultBas result, err = client.DeleteCertificateContactsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteCertificateContacts", resp, "Failure responding to request") + return } return @@ -822,6 +831,7 @@ func (client BaseClient) DeleteCertificateIssuer(ctx context.Context, vaultBaseU result, err = client.DeleteCertificateIssuerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteCertificateIssuer", resp, "Failure responding to request") + return } return @@ -900,6 +910,7 @@ func (client BaseClient) DeleteCertificateOperation(ctx context.Context, vaultBa result, err = client.DeleteCertificateOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteCertificateOperation", resp, "Failure responding to request") + return } return @@ -979,6 +990,7 @@ func (client BaseClient) DeleteKey(ctx context.Context, vaultBaseURL string, key result, err = client.DeleteKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteKey", resp, "Failure responding to request") + return } return @@ -1066,6 +1078,7 @@ func (client BaseClient) DeleteSasDefinition(ctx context.Context, vaultBaseURL s result, err = client.DeleteSasDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteSasDefinition", resp, "Failure responding to request") + return } return @@ -1145,6 +1158,7 @@ func (client BaseClient) DeleteSecret(ctx context.Context, vaultBaseURL string, result, err = client.DeleteSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteSecret", resp, "Failure responding to request") + return } return @@ -1228,6 +1242,7 @@ func (client BaseClient) DeleteStorageAccount(ctx context.Context, vaultBaseURL result, err = client.DeleteStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteStorageAccount", resp, "Failure responding to request") + return } return @@ -1319,6 +1334,7 @@ func (client BaseClient) Encrypt(ctx context.Context, vaultBaseURL string, keyNa result, err = client.EncryptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "Encrypt", resp, "Failure responding to request") + return } return @@ -1402,6 +1418,7 @@ func (client BaseClient) GetCertificate(ctx context.Context, vaultBaseURL string result, err = client.GetCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificate", resp, "Failure responding to request") + return } return @@ -1480,6 +1497,7 @@ func (client BaseClient) GetCertificateContacts(ctx context.Context, vaultBaseUR result, err = client.GetCertificateContactsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificateContacts", resp, "Failure responding to request") + return } return @@ -1554,6 +1572,7 @@ func (client BaseClient) GetCertificateIssuer(ctx context.Context, vaultBaseURL result, err = client.GetCertificateIssuerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificateIssuer", resp, "Failure responding to request") + return } return @@ -1643,6 +1662,7 @@ func (client BaseClient) GetCertificateIssuers(ctx context.Context, vaultBaseURL result.cilr, err = client.GetCertificateIssuersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificateIssuers", resp, "Failure responding to request") + return } if result.cilr.hasNextLink() && result.cilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1708,6 +1728,7 @@ func (client BaseClient) getCertificateIssuersNextResults(ctx context.Context, l result, err = client.GetCertificateIssuersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getCertificateIssuersNextResults", resp, "Failure responding to next results request") + return } return } @@ -1760,6 +1781,7 @@ func (client BaseClient) GetCertificateOperation(ctx context.Context, vaultBaseU result, err = client.GetCertificateOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificateOperation", resp, "Failure responding to request") + return } return @@ -1838,6 +1860,7 @@ func (client BaseClient) GetCertificatePolicy(ctx context.Context, vaultBaseURL result, err = client.GetCertificatePolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificatePolicy", resp, "Failure responding to request") + return } return @@ -1928,6 +1951,7 @@ func (client BaseClient) GetCertificates(ctx context.Context, vaultBaseURL strin result.clr, err = client.GetCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificates", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1996,6 +2020,7 @@ func (client BaseClient) getCertificatesNextResults(ctx context.Context, lastRes result, err = client.GetCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getCertificatesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2060,6 +2085,7 @@ func (client BaseClient) GetCertificateVersions(ctx context.Context, vaultBaseUR result.clr, err = client.GetCertificateVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificateVersions", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2129,6 +2155,7 @@ func (client BaseClient) getCertificateVersionsNextResults(ctx context.Context, result, err = client.GetCertificateVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getCertificateVersionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2182,6 +2209,7 @@ func (client BaseClient) GetDeletedCertificate(ctx context.Context, vaultBaseURL result, err = client.GetDeletedCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedCertificate", resp, "Failure responding to request") + return } return @@ -2274,6 +2302,7 @@ func (client BaseClient) GetDeletedCertificates(ctx context.Context, vaultBaseUR result.dclr, err = client.GetDeletedCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedCertificates", resp, "Failure responding to request") + return } if result.dclr.hasNextLink() && result.dclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2342,6 +2371,7 @@ func (client BaseClient) getDeletedCertificatesNextResults(ctx context.Context, result, err = client.GetDeletedCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getDeletedCertificatesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2395,6 +2425,7 @@ func (client BaseClient) GetDeletedKey(ctx context.Context, vaultBaseURL string, result, err = client.GetDeletedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedKey", resp, "Failure responding to request") + return } return @@ -2486,6 +2517,7 @@ func (client BaseClient) GetDeletedKeys(ctx context.Context, vaultBaseURL string result.dklr, err = client.GetDeletedKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedKeys", resp, "Failure responding to request") + return } if result.dklr.hasNextLink() && result.dklr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2551,6 +2583,7 @@ func (client BaseClient) getDeletedKeysNextResults(ctx context.Context, lastResu result, err = client.GetDeletedKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getDeletedKeysNextResults", resp, "Failure responding to next results request") + return } return } @@ -2612,6 +2645,7 @@ func (client BaseClient) GetDeletedSasDefinition(ctx context.Context, vaultBaseU result, err = client.GetDeletedSasDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedSasDefinition", resp, "Failure responding to request") + return } return @@ -2705,6 +2739,7 @@ func (client BaseClient) GetDeletedSasDefinitions(ctx context.Context, vaultBase result.dsdlr, err = client.GetDeletedSasDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedSasDefinitions", resp, "Failure responding to request") + return } if result.dsdlr.hasNextLink() && result.dsdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2774,6 +2809,7 @@ func (client BaseClient) getDeletedSasDefinitionsNextResults(ctx context.Context result, err = client.GetDeletedSasDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getDeletedSasDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2826,6 +2862,7 @@ func (client BaseClient) GetDeletedSecret(ctx context.Context, vaultBaseURL stri result, err = client.GetDeletedSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedSecret", resp, "Failure responding to request") + return } return @@ -2915,6 +2952,7 @@ func (client BaseClient) GetDeletedSecrets(ctx context.Context, vaultBaseURL str result.dslr, err = client.GetDeletedSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedSecrets", resp, "Failure responding to request") + return } if result.dslr.hasNextLink() && result.dslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2980,6 +3018,7 @@ func (client BaseClient) getDeletedSecretsNextResults(ctx context.Context, lastR result, err = client.GetDeletedSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getDeletedSecretsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3038,6 +3077,7 @@ func (client BaseClient) GetDeletedStorageAccount(ctx context.Context, vaultBase result, err = client.GetDeletedStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedStorageAccount", resp, "Failure responding to request") + return } return @@ -3127,6 +3167,7 @@ func (client BaseClient) GetDeletedStorageAccounts(ctx context.Context, vaultBas result.dslr, err = client.GetDeletedStorageAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedStorageAccounts", resp, "Failure responding to request") + return } if result.dslr.hasNextLink() && result.dslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3192,6 +3233,7 @@ func (client BaseClient) getDeletedStorageAccountsNextResults(ctx context.Contex result, err = client.GetDeletedStorageAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getDeletedStorageAccountsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3246,6 +3288,7 @@ func (client BaseClient) GetKey(ctx context.Context, vaultBaseURL string, keyNam result, err = client.GetKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetKey", resp, "Failure responding to request") + return } return @@ -3338,6 +3381,7 @@ func (client BaseClient) GetKeys(ctx context.Context, vaultBaseURL string, maxre result.klr, err = client.GetKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetKeys", resp, "Failure responding to request") + return } if result.klr.hasNextLink() && result.klr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3403,6 +3447,7 @@ func (client BaseClient) getKeysNextResults(ctx context.Context, lastResults Key result, err = client.GetKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getKeysNextResults", resp, "Failure responding to next results request") + return } return } @@ -3467,6 +3512,7 @@ func (client BaseClient) GetKeyVersions(ctx context.Context, vaultBaseURL string result.klr, err = client.GetKeyVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetKeyVersions", resp, "Failure responding to request") + return } if result.klr.hasNextLink() && result.klr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3536,6 +3582,7 @@ func (client BaseClient) getKeyVersionsNextResults(ctx context.Context, lastResu result, err = client.GetKeyVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getKeyVersionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3597,6 +3644,7 @@ func (client BaseClient) GetSasDefinition(ctx context.Context, vaultBaseURL stri result, err = client.GetSasDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetSasDefinition", resp, "Failure responding to request") + return } return @@ -3690,6 +3738,7 @@ func (client BaseClient) GetSasDefinitions(ctx context.Context, vaultBaseURL str result.sdlr, err = client.GetSasDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetSasDefinitions", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3759,6 +3808,7 @@ func (client BaseClient) getSasDefinitionsNextResults(ctx context.Context, lastR result, err = client.GetSasDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getSasDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3813,6 +3863,7 @@ func (client BaseClient) GetSecret(ctx context.Context, vaultBaseURL string, sec result, err = client.GetSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetSecret", resp, "Failure responding to request") + return } return @@ -3904,6 +3955,7 @@ func (client BaseClient) GetSecrets(ctx context.Context, vaultBaseURL string, ma result.slr, err = client.GetSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetSecrets", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3969,6 +4021,7 @@ func (client BaseClient) getSecretsNextResults(ctx context.Context, lastResults result, err = client.GetSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getSecretsNextResults", resp, "Failure responding to next results request") + return } return } @@ -4033,6 +4086,7 @@ func (client BaseClient) GetSecretVersions(ctx context.Context, vaultBaseURL str result.slr, err = client.GetSecretVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetSecretVersions", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -4102,6 +4156,7 @@ func (client BaseClient) getSecretVersionsNextResults(ctx context.Context, lastR result, err = client.GetSecretVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getSecretVersionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -4160,6 +4215,7 @@ func (client BaseClient) GetStorageAccount(ctx context.Context, vaultBaseURL str result, err = client.GetStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetStorageAccount", resp, "Failure responding to request") + return } return @@ -4249,6 +4305,7 @@ func (client BaseClient) GetStorageAccounts(ctx context.Context, vaultBaseURL st result.slr, err = client.GetStorageAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetStorageAccounts", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -4314,6 +4371,7 @@ func (client BaseClient) getStorageAccountsNextResults(ctx context.Context, last result, err = client.GetStorageAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getStorageAccountsNextResults", resp, "Failure responding to next results request") + return } return } @@ -4382,6 +4440,7 @@ func (client BaseClient) ImportCertificate(ctx context.Context, vaultBaseURL str result, err = client.ImportCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "ImportCertificate", resp, "Failure responding to request") + return } return @@ -4472,6 +4531,7 @@ func (client BaseClient) ImportKey(ctx context.Context, vaultBaseURL string, key result, err = client.ImportKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "ImportKey", resp, "Failure responding to request") + return } return @@ -4559,6 +4619,7 @@ func (client BaseClient) MergeCertificate(ctx context.Context, vaultBaseURL stri result, err = client.MergeCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "MergeCertificate", resp, "Failure responding to request") + return } return @@ -4640,6 +4701,7 @@ func (client BaseClient) PurgeDeletedCertificate(ctx context.Context, vaultBaseU result, err = client.PurgeDeletedCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "PurgeDeletedCertificate", resp, "Failure responding to request") + return } return @@ -4718,6 +4780,7 @@ func (client BaseClient) PurgeDeletedKey(ctx context.Context, vaultBaseURL strin result, err = client.PurgeDeletedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "PurgeDeletedKey", resp, "Failure responding to request") + return } return @@ -4796,6 +4859,7 @@ func (client BaseClient) PurgeDeletedSecret(ctx context.Context, vaultBaseURL st result, err = client.PurgeDeletedSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "PurgeDeletedSecret", resp, "Failure responding to request") + return } return @@ -4880,6 +4944,7 @@ func (client BaseClient) PurgeDeletedStorageAccount(ctx context.Context, vaultBa result, err = client.PurgeDeletedStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "PurgeDeletedStorageAccount", resp, "Failure responding to request") + return } return @@ -4958,6 +5023,7 @@ func (client BaseClient) RecoverDeletedCertificate(ctx context.Context, vaultBas result, err = client.RecoverDeletedCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RecoverDeletedCertificate", resp, "Failure responding to request") + return } return @@ -5038,6 +5104,7 @@ func (client BaseClient) RecoverDeletedKey(ctx context.Context, vaultBaseURL str result, err = client.RecoverDeletedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RecoverDeletedKey", resp, "Failure responding to request") + return } return @@ -5125,6 +5192,7 @@ func (client BaseClient) RecoverDeletedSasDefinition(ctx context.Context, vaultB result, err = client.RecoverDeletedSasDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RecoverDeletedSasDefinition", resp, "Failure responding to request") + return } return @@ -5204,6 +5272,7 @@ func (client BaseClient) RecoverDeletedSecret(ctx context.Context, vaultBaseURL result, err = client.RecoverDeletedSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RecoverDeletedSecret", resp, "Failure responding to request") + return } return @@ -5288,6 +5357,7 @@ func (client BaseClient) RecoverDeletedStorageAccount(ctx context.Context, vault result, err = client.RecoverDeletedStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RecoverDeletedStorageAccount", resp, "Failure responding to request") + return } return @@ -5375,6 +5445,7 @@ func (client BaseClient) RegenerateStorageAccountKey(ctx context.Context, vaultB result, err = client.RegenerateStorageAccountKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RegenerateStorageAccountKey", resp, "Failure responding to request") + return } return @@ -5461,6 +5532,7 @@ func (client BaseClient) RestoreCertificate(ctx context.Context, vaultBaseURL st result, err = client.RestoreCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RestoreCertificate", resp, "Failure responding to request") + return } return @@ -5550,6 +5622,7 @@ func (client BaseClient) RestoreKey(ctx context.Context, vaultBaseURL string, pa result, err = client.RestoreKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RestoreKey", resp, "Failure responding to request") + return } return @@ -5632,6 +5705,7 @@ func (client BaseClient) RestoreSecret(ctx context.Context, vaultBaseURL string, result, err = client.RestoreSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RestoreSecret", resp, "Failure responding to request") + return } return @@ -5714,6 +5788,7 @@ func (client BaseClient) RestoreStorageAccount(ctx context.Context, vaultBaseURL result, err = client.RestoreStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RestoreStorageAccount", resp, "Failure responding to request") + return } return @@ -5790,6 +5865,7 @@ func (client BaseClient) SetCertificateContacts(ctx context.Context, vaultBaseUR result, err = client.SetCertificateContactsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "SetCertificateContacts", resp, "Failure responding to request") + return } return @@ -5874,6 +5950,7 @@ func (client BaseClient) SetCertificateIssuer(ctx context.Context, vaultBaseURL result, err = client.SetCertificateIssuerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "SetCertificateIssuer", resp, "Failure responding to request") + return } return @@ -5967,6 +6044,7 @@ func (client BaseClient) SetSasDefinition(ctx context.Context, vaultBaseURL stri result, err = client.SetSasDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "SetSasDefinition", resp, "Failure responding to request") + return } return @@ -6057,6 +6135,7 @@ func (client BaseClient) SetSecret(ctx context.Context, vaultBaseURL string, sec result, err = client.SetSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "SetSecret", resp, "Failure responding to request") + return } return @@ -6147,6 +6226,7 @@ func (client BaseClient) SetStorageAccount(ctx context.Context, vaultBaseURL str result, err = client.SetStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "SetStorageAccount", resp, "Failure responding to request") + return } return @@ -6235,6 +6315,7 @@ func (client BaseClient) Sign(ctx context.Context, vaultBaseURL string, keyName result, err = client.SignResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "Sign", resp, "Failure responding to request") + return } return @@ -6326,6 +6407,7 @@ func (client BaseClient) UnwrapKey(ctx context.Context, vaultBaseURL string, key result, err = client.UnwrapKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UnwrapKey", resp, "Failure responding to request") + return } return @@ -6409,6 +6491,7 @@ func (client BaseClient) UpdateCertificate(ctx context.Context, vaultBaseURL str result, err = client.UpdateCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateCertificate", resp, "Failure responding to request") + return } return @@ -6491,6 +6574,7 @@ func (client BaseClient) UpdateCertificateIssuer(ctx context.Context, vaultBaseU result, err = client.UpdateCertificateIssuerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateCertificateIssuer", resp, "Failure responding to request") + return } return @@ -6572,6 +6656,7 @@ func (client BaseClient) UpdateCertificateOperation(ctx context.Context, vaultBa result, err = client.UpdateCertificateOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateCertificateOperation", resp, "Failure responding to request") + return } return @@ -6653,6 +6738,7 @@ func (client BaseClient) UpdateCertificatePolicy(ctx context.Context, vaultBaseU result, err = client.UpdateCertificatePolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateCertificatePolicy", resp, "Failure responding to request") + return } return @@ -6736,6 +6822,7 @@ func (client BaseClient) UpdateKey(ctx context.Context, vaultBaseURL string, key result, err = client.UpdateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateKey", resp, "Failure responding to request") + return } return @@ -6827,6 +6914,7 @@ func (client BaseClient) UpdateSasDefinition(ctx context.Context, vaultBaseURL s result, err = client.UpdateSasDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateSasDefinition", resp, "Failure responding to request") + return } return @@ -6911,6 +6999,7 @@ func (client BaseClient) UpdateSecret(ctx context.Context, vaultBaseURL string, result, err = client.UpdateSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateSecret", resp, "Failure responding to request") + return } return @@ -6999,6 +7088,7 @@ func (client BaseClient) UpdateStorageAccount(ctx context.Context, vaultBaseURL result, err = client.UpdateStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateStorageAccount", resp, "Failure responding to request") + return } return @@ -7090,6 +7180,7 @@ func (client BaseClient) Verify(ctx context.Context, vaultBaseURL string, keyNam result, err = client.VerifyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "Verify", resp, "Failure responding to request") + return } return @@ -7182,6 +7273,7 @@ func (client BaseClient) WrapKey(ctx context.Context, vaultBaseURL string, keyNa result, err = client.WrapKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "WrapKey", resp, "Failure responding to request") + return } return diff --git a/services/keyvault/v7.1/keyvault/client.go b/services/keyvault/v7.1/keyvault/client.go index 73673741ba00..46eecbd9a5a9 100644 --- a/services/keyvault/v7.1/keyvault/client.go +++ b/services/keyvault/v7.1/keyvault/client.go @@ -78,6 +78,7 @@ func (client BaseClient) BackupCertificate(ctx context.Context, vaultBaseURL str result, err = client.BackupCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "BackupCertificate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client BaseClient) BackupKey(ctx context.Context, vaultBaseURL string, key result, err = client.BackupKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "BackupKey", resp, "Failure responding to request") + return } return @@ -241,6 +243,7 @@ func (client BaseClient) BackupSecret(ctx context.Context, vaultBaseURL string, result, err = client.BackupSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "BackupSecret", resp, "Failure responding to request") + return } return @@ -319,6 +322,7 @@ func (client BaseClient) BackupStorageAccount(ctx context.Context, vaultBaseURL result, err = client.BackupStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "BackupStorageAccount", resp, "Failure responding to request") + return } return @@ -411,6 +415,7 @@ func (client BaseClient) CreateCertificate(ctx context.Context, vaultBaseURL str result, err = client.CreateCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "CreateCertificate", resp, "Failure responding to request") + return } return @@ -498,6 +503,7 @@ func (client BaseClient) CreateKey(ctx context.Context, vaultBaseURL string, key result, err = client.CreateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "CreateKey", resp, "Failure responding to request") + return } return @@ -589,6 +595,7 @@ func (client BaseClient) Decrypt(ctx context.Context, vaultBaseURL string, keyNa result, err = client.DecryptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "Decrypt", resp, "Failure responding to request") + return } return @@ -671,6 +678,7 @@ func (client BaseClient) DeleteCertificate(ctx context.Context, vaultBaseURL str result, err = client.DeleteCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteCertificate", resp, "Failure responding to request") + return } return @@ -748,6 +756,7 @@ func (client BaseClient) DeleteCertificateContacts(ctx context.Context, vaultBas result, err = client.DeleteCertificateContactsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteCertificateContacts", resp, "Failure responding to request") + return } return @@ -822,6 +831,7 @@ func (client BaseClient) DeleteCertificateIssuer(ctx context.Context, vaultBaseU result, err = client.DeleteCertificateIssuerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteCertificateIssuer", resp, "Failure responding to request") + return } return @@ -900,6 +910,7 @@ func (client BaseClient) DeleteCertificateOperation(ctx context.Context, vaultBa result, err = client.DeleteCertificateOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteCertificateOperation", resp, "Failure responding to request") + return } return @@ -979,6 +990,7 @@ func (client BaseClient) DeleteKey(ctx context.Context, vaultBaseURL string, key result, err = client.DeleteKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteKey", resp, "Failure responding to request") + return } return @@ -1066,6 +1078,7 @@ func (client BaseClient) DeleteSasDefinition(ctx context.Context, vaultBaseURL s result, err = client.DeleteSasDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteSasDefinition", resp, "Failure responding to request") + return } return @@ -1145,6 +1158,7 @@ func (client BaseClient) DeleteSecret(ctx context.Context, vaultBaseURL string, result, err = client.DeleteSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteSecret", resp, "Failure responding to request") + return } return @@ -1228,6 +1242,7 @@ func (client BaseClient) DeleteStorageAccount(ctx context.Context, vaultBaseURL result, err = client.DeleteStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteStorageAccount", resp, "Failure responding to request") + return } return @@ -1319,6 +1334,7 @@ func (client BaseClient) Encrypt(ctx context.Context, vaultBaseURL string, keyNa result, err = client.EncryptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "Encrypt", resp, "Failure responding to request") + return } return @@ -1402,6 +1418,7 @@ func (client BaseClient) GetCertificate(ctx context.Context, vaultBaseURL string result, err = client.GetCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificate", resp, "Failure responding to request") + return } return @@ -1480,6 +1497,7 @@ func (client BaseClient) GetCertificateContacts(ctx context.Context, vaultBaseUR result, err = client.GetCertificateContactsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificateContacts", resp, "Failure responding to request") + return } return @@ -1554,6 +1572,7 @@ func (client BaseClient) GetCertificateIssuer(ctx context.Context, vaultBaseURL result, err = client.GetCertificateIssuerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificateIssuer", resp, "Failure responding to request") + return } return @@ -1643,6 +1662,7 @@ func (client BaseClient) GetCertificateIssuers(ctx context.Context, vaultBaseURL result.cilr, err = client.GetCertificateIssuersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificateIssuers", resp, "Failure responding to request") + return } if result.cilr.hasNextLink() && result.cilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1708,6 +1728,7 @@ func (client BaseClient) getCertificateIssuersNextResults(ctx context.Context, l result, err = client.GetCertificateIssuersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getCertificateIssuersNextResults", resp, "Failure responding to next results request") + return } return } @@ -1760,6 +1781,7 @@ func (client BaseClient) GetCertificateOperation(ctx context.Context, vaultBaseU result, err = client.GetCertificateOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificateOperation", resp, "Failure responding to request") + return } return @@ -1838,6 +1860,7 @@ func (client BaseClient) GetCertificatePolicy(ctx context.Context, vaultBaseURL result, err = client.GetCertificatePolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificatePolicy", resp, "Failure responding to request") + return } return @@ -1928,6 +1951,7 @@ func (client BaseClient) GetCertificates(ctx context.Context, vaultBaseURL strin result.clr, err = client.GetCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificates", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1996,6 +2020,7 @@ func (client BaseClient) getCertificatesNextResults(ctx context.Context, lastRes result, err = client.GetCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getCertificatesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2060,6 +2085,7 @@ func (client BaseClient) GetCertificateVersions(ctx context.Context, vaultBaseUR result.clr, err = client.GetCertificateVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificateVersions", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2129,6 +2155,7 @@ func (client BaseClient) getCertificateVersionsNextResults(ctx context.Context, result, err = client.GetCertificateVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getCertificateVersionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2182,6 +2209,7 @@ func (client BaseClient) GetDeletedCertificate(ctx context.Context, vaultBaseURL result, err = client.GetDeletedCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedCertificate", resp, "Failure responding to request") + return } return @@ -2274,6 +2302,7 @@ func (client BaseClient) GetDeletedCertificates(ctx context.Context, vaultBaseUR result.dclr, err = client.GetDeletedCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedCertificates", resp, "Failure responding to request") + return } if result.dclr.hasNextLink() && result.dclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2342,6 +2371,7 @@ func (client BaseClient) getDeletedCertificatesNextResults(ctx context.Context, result, err = client.GetDeletedCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getDeletedCertificatesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2395,6 +2425,7 @@ func (client BaseClient) GetDeletedKey(ctx context.Context, vaultBaseURL string, result, err = client.GetDeletedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedKey", resp, "Failure responding to request") + return } return @@ -2486,6 +2517,7 @@ func (client BaseClient) GetDeletedKeys(ctx context.Context, vaultBaseURL string result.dklr, err = client.GetDeletedKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedKeys", resp, "Failure responding to request") + return } if result.dklr.hasNextLink() && result.dklr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2551,6 +2583,7 @@ func (client BaseClient) getDeletedKeysNextResults(ctx context.Context, lastResu result, err = client.GetDeletedKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getDeletedKeysNextResults", resp, "Failure responding to next results request") + return } return } @@ -2612,6 +2645,7 @@ func (client BaseClient) GetDeletedSasDefinition(ctx context.Context, vaultBaseU result, err = client.GetDeletedSasDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedSasDefinition", resp, "Failure responding to request") + return } return @@ -2705,6 +2739,7 @@ func (client BaseClient) GetDeletedSasDefinitions(ctx context.Context, vaultBase result.dsdlr, err = client.GetDeletedSasDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedSasDefinitions", resp, "Failure responding to request") + return } if result.dsdlr.hasNextLink() && result.dsdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2774,6 +2809,7 @@ func (client BaseClient) getDeletedSasDefinitionsNextResults(ctx context.Context result, err = client.GetDeletedSasDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getDeletedSasDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2826,6 +2862,7 @@ func (client BaseClient) GetDeletedSecret(ctx context.Context, vaultBaseURL stri result, err = client.GetDeletedSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedSecret", resp, "Failure responding to request") + return } return @@ -2915,6 +2952,7 @@ func (client BaseClient) GetDeletedSecrets(ctx context.Context, vaultBaseURL str result.dslr, err = client.GetDeletedSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedSecrets", resp, "Failure responding to request") + return } if result.dslr.hasNextLink() && result.dslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2980,6 +3018,7 @@ func (client BaseClient) getDeletedSecretsNextResults(ctx context.Context, lastR result, err = client.GetDeletedSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getDeletedSecretsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3038,6 +3077,7 @@ func (client BaseClient) GetDeletedStorageAccount(ctx context.Context, vaultBase result, err = client.GetDeletedStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedStorageAccount", resp, "Failure responding to request") + return } return @@ -3127,6 +3167,7 @@ func (client BaseClient) GetDeletedStorageAccounts(ctx context.Context, vaultBas result.dslr, err = client.GetDeletedStorageAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedStorageAccounts", resp, "Failure responding to request") + return } if result.dslr.hasNextLink() && result.dslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3192,6 +3233,7 @@ func (client BaseClient) getDeletedStorageAccountsNextResults(ctx context.Contex result, err = client.GetDeletedStorageAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getDeletedStorageAccountsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3246,6 +3288,7 @@ func (client BaseClient) GetKey(ctx context.Context, vaultBaseURL string, keyNam result, err = client.GetKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetKey", resp, "Failure responding to request") + return } return @@ -3338,6 +3381,7 @@ func (client BaseClient) GetKeys(ctx context.Context, vaultBaseURL string, maxre result.klr, err = client.GetKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetKeys", resp, "Failure responding to request") + return } if result.klr.hasNextLink() && result.klr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3403,6 +3447,7 @@ func (client BaseClient) getKeysNextResults(ctx context.Context, lastResults Key result, err = client.GetKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getKeysNextResults", resp, "Failure responding to next results request") + return } return } @@ -3467,6 +3512,7 @@ func (client BaseClient) GetKeyVersions(ctx context.Context, vaultBaseURL string result.klr, err = client.GetKeyVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetKeyVersions", resp, "Failure responding to request") + return } if result.klr.hasNextLink() && result.klr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3536,6 +3582,7 @@ func (client BaseClient) getKeyVersionsNextResults(ctx context.Context, lastResu result, err = client.GetKeyVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getKeyVersionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3597,6 +3644,7 @@ func (client BaseClient) GetSasDefinition(ctx context.Context, vaultBaseURL stri result, err = client.GetSasDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetSasDefinition", resp, "Failure responding to request") + return } return @@ -3690,6 +3738,7 @@ func (client BaseClient) GetSasDefinitions(ctx context.Context, vaultBaseURL str result.sdlr, err = client.GetSasDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetSasDefinitions", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3759,6 +3808,7 @@ func (client BaseClient) getSasDefinitionsNextResults(ctx context.Context, lastR result, err = client.GetSasDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getSasDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3813,6 +3863,7 @@ func (client BaseClient) GetSecret(ctx context.Context, vaultBaseURL string, sec result, err = client.GetSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetSecret", resp, "Failure responding to request") + return } return @@ -3904,6 +3955,7 @@ func (client BaseClient) GetSecrets(ctx context.Context, vaultBaseURL string, ma result.slr, err = client.GetSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetSecrets", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3969,6 +4021,7 @@ func (client BaseClient) getSecretsNextResults(ctx context.Context, lastResults result, err = client.GetSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getSecretsNextResults", resp, "Failure responding to next results request") + return } return } @@ -4033,6 +4086,7 @@ func (client BaseClient) GetSecretVersions(ctx context.Context, vaultBaseURL str result.slr, err = client.GetSecretVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetSecretVersions", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -4102,6 +4156,7 @@ func (client BaseClient) getSecretVersionsNextResults(ctx context.Context, lastR result, err = client.GetSecretVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getSecretVersionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -4160,6 +4215,7 @@ func (client BaseClient) GetStorageAccount(ctx context.Context, vaultBaseURL str result, err = client.GetStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetStorageAccount", resp, "Failure responding to request") + return } return @@ -4249,6 +4305,7 @@ func (client BaseClient) GetStorageAccounts(ctx context.Context, vaultBaseURL st result.slr, err = client.GetStorageAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetStorageAccounts", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -4314,6 +4371,7 @@ func (client BaseClient) getStorageAccountsNextResults(ctx context.Context, last result, err = client.GetStorageAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getStorageAccountsNextResults", resp, "Failure responding to next results request") + return } return } @@ -4382,6 +4440,7 @@ func (client BaseClient) ImportCertificate(ctx context.Context, vaultBaseURL str result, err = client.ImportCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "ImportCertificate", resp, "Failure responding to request") + return } return @@ -4472,6 +4531,7 @@ func (client BaseClient) ImportKey(ctx context.Context, vaultBaseURL string, key result, err = client.ImportKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "ImportKey", resp, "Failure responding to request") + return } return @@ -4559,6 +4619,7 @@ func (client BaseClient) MergeCertificate(ctx context.Context, vaultBaseURL stri result, err = client.MergeCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "MergeCertificate", resp, "Failure responding to request") + return } return @@ -4640,6 +4701,7 @@ func (client BaseClient) PurgeDeletedCertificate(ctx context.Context, vaultBaseU result, err = client.PurgeDeletedCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "PurgeDeletedCertificate", resp, "Failure responding to request") + return } return @@ -4718,6 +4780,7 @@ func (client BaseClient) PurgeDeletedKey(ctx context.Context, vaultBaseURL strin result, err = client.PurgeDeletedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "PurgeDeletedKey", resp, "Failure responding to request") + return } return @@ -4796,6 +4859,7 @@ func (client BaseClient) PurgeDeletedSecret(ctx context.Context, vaultBaseURL st result, err = client.PurgeDeletedSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "PurgeDeletedSecret", resp, "Failure responding to request") + return } return @@ -4880,6 +4944,7 @@ func (client BaseClient) PurgeDeletedStorageAccount(ctx context.Context, vaultBa result, err = client.PurgeDeletedStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "PurgeDeletedStorageAccount", resp, "Failure responding to request") + return } return @@ -4958,6 +5023,7 @@ func (client BaseClient) RecoverDeletedCertificate(ctx context.Context, vaultBas result, err = client.RecoverDeletedCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RecoverDeletedCertificate", resp, "Failure responding to request") + return } return @@ -5038,6 +5104,7 @@ func (client BaseClient) RecoverDeletedKey(ctx context.Context, vaultBaseURL str result, err = client.RecoverDeletedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RecoverDeletedKey", resp, "Failure responding to request") + return } return @@ -5125,6 +5192,7 @@ func (client BaseClient) RecoverDeletedSasDefinition(ctx context.Context, vaultB result, err = client.RecoverDeletedSasDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RecoverDeletedSasDefinition", resp, "Failure responding to request") + return } return @@ -5204,6 +5272,7 @@ func (client BaseClient) RecoverDeletedSecret(ctx context.Context, vaultBaseURL result, err = client.RecoverDeletedSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RecoverDeletedSecret", resp, "Failure responding to request") + return } return @@ -5288,6 +5357,7 @@ func (client BaseClient) RecoverDeletedStorageAccount(ctx context.Context, vault result, err = client.RecoverDeletedStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RecoverDeletedStorageAccount", resp, "Failure responding to request") + return } return @@ -5375,6 +5445,7 @@ func (client BaseClient) RegenerateStorageAccountKey(ctx context.Context, vaultB result, err = client.RegenerateStorageAccountKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RegenerateStorageAccountKey", resp, "Failure responding to request") + return } return @@ -5461,6 +5532,7 @@ func (client BaseClient) RestoreCertificate(ctx context.Context, vaultBaseURL st result, err = client.RestoreCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RestoreCertificate", resp, "Failure responding to request") + return } return @@ -5550,6 +5622,7 @@ func (client BaseClient) RestoreKey(ctx context.Context, vaultBaseURL string, pa result, err = client.RestoreKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RestoreKey", resp, "Failure responding to request") + return } return @@ -5632,6 +5705,7 @@ func (client BaseClient) RestoreSecret(ctx context.Context, vaultBaseURL string, result, err = client.RestoreSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RestoreSecret", resp, "Failure responding to request") + return } return @@ -5714,6 +5788,7 @@ func (client BaseClient) RestoreStorageAccount(ctx context.Context, vaultBaseURL result, err = client.RestoreStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RestoreStorageAccount", resp, "Failure responding to request") + return } return @@ -5790,6 +5865,7 @@ func (client BaseClient) SetCertificateContacts(ctx context.Context, vaultBaseUR result, err = client.SetCertificateContactsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "SetCertificateContacts", resp, "Failure responding to request") + return } return @@ -5874,6 +5950,7 @@ func (client BaseClient) SetCertificateIssuer(ctx context.Context, vaultBaseURL result, err = client.SetCertificateIssuerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "SetCertificateIssuer", resp, "Failure responding to request") + return } return @@ -5967,6 +6044,7 @@ func (client BaseClient) SetSasDefinition(ctx context.Context, vaultBaseURL stri result, err = client.SetSasDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "SetSasDefinition", resp, "Failure responding to request") + return } return @@ -6057,6 +6135,7 @@ func (client BaseClient) SetSecret(ctx context.Context, vaultBaseURL string, sec result, err = client.SetSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "SetSecret", resp, "Failure responding to request") + return } return @@ -6147,6 +6226,7 @@ func (client BaseClient) SetStorageAccount(ctx context.Context, vaultBaseURL str result, err = client.SetStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "SetStorageAccount", resp, "Failure responding to request") + return } return @@ -6235,6 +6315,7 @@ func (client BaseClient) Sign(ctx context.Context, vaultBaseURL string, keyName result, err = client.SignResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "Sign", resp, "Failure responding to request") + return } return @@ -6326,6 +6407,7 @@ func (client BaseClient) UnwrapKey(ctx context.Context, vaultBaseURL string, key result, err = client.UnwrapKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UnwrapKey", resp, "Failure responding to request") + return } return @@ -6409,6 +6491,7 @@ func (client BaseClient) UpdateCertificate(ctx context.Context, vaultBaseURL str result, err = client.UpdateCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateCertificate", resp, "Failure responding to request") + return } return @@ -6491,6 +6574,7 @@ func (client BaseClient) UpdateCertificateIssuer(ctx context.Context, vaultBaseU result, err = client.UpdateCertificateIssuerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateCertificateIssuer", resp, "Failure responding to request") + return } return @@ -6572,6 +6656,7 @@ func (client BaseClient) UpdateCertificateOperation(ctx context.Context, vaultBa result, err = client.UpdateCertificateOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateCertificateOperation", resp, "Failure responding to request") + return } return @@ -6653,6 +6738,7 @@ func (client BaseClient) UpdateCertificatePolicy(ctx context.Context, vaultBaseU result, err = client.UpdateCertificatePolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateCertificatePolicy", resp, "Failure responding to request") + return } return @@ -6736,6 +6822,7 @@ func (client BaseClient) UpdateKey(ctx context.Context, vaultBaseURL string, key result, err = client.UpdateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateKey", resp, "Failure responding to request") + return } return @@ -6827,6 +6914,7 @@ func (client BaseClient) UpdateSasDefinition(ctx context.Context, vaultBaseURL s result, err = client.UpdateSasDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateSasDefinition", resp, "Failure responding to request") + return } return @@ -6911,6 +6999,7 @@ func (client BaseClient) UpdateSecret(ctx context.Context, vaultBaseURL string, result, err = client.UpdateSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateSecret", resp, "Failure responding to request") + return } return @@ -6999,6 +7088,7 @@ func (client BaseClient) UpdateStorageAccount(ctx context.Context, vaultBaseURL result, err = client.UpdateStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateStorageAccount", resp, "Failure responding to request") + return } return @@ -7090,6 +7180,7 @@ func (client BaseClient) Verify(ctx context.Context, vaultBaseURL string, keyNam result, err = client.VerifyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "Verify", resp, "Failure responding to request") + return } return @@ -7182,6 +7273,7 @@ func (client BaseClient) WrapKey(ctx context.Context, vaultBaseURL string, keyNa result, err = client.WrapKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "WrapKey", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2019-01-21/kusto/clusters.go b/services/kusto/mgmt/2019-01-21/kusto/clusters.go index cdbc06f37756..fd94053c8561 100644 --- a/services/kusto/mgmt/2019-01-21/kusto/clusters.go +++ b/services/kusto/mgmt/2019-01-21/kusto/clusters.go @@ -82,6 +82,7 @@ func (client ClustersClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -388,6 +390,7 @@ func (client ClustersClient) List(ctx context.Context) (result ClusterListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "List", resp, "Failure responding to request") + return } return @@ -460,6 +463,7 @@ func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -531,6 +535,7 @@ func (client ClustersClient) ListSkus(ctx context.Context) (result ListSkusResul result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListSkus", resp, "Failure responding to request") + return } return @@ -604,6 +609,7 @@ func (client ClustersClient) ListSkusByResource(ctx context.Context, resourceGro result, err = client.ListSkusByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListSkusByResource", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2019-01-21/kusto/databases.go b/services/kusto/mgmt/2019-01-21/kusto/databases.go index 22268527d570..da5f0fc6f8d0 100644 --- a/services/kusto/mgmt/2019-01-21/kusto/databases.go +++ b/services/kusto/mgmt/2019-01-21/kusto/databases.go @@ -77,6 +77,7 @@ func (client DatabasesClient) AddPrincipals(ctx context.Context, resourceGroupNa result, err = client.AddPrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "AddPrincipals", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client DatabasesClient) CheckNameAvailability(ctx context.Context, resourc result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -397,6 +399,7 @@ func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -473,6 +476,7 @@ func (client DatabasesClient) ListByCluster(ctx context.Context, resourceGroupNa result, err = client.ListByClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "ListByCluster", resp, "Failure responding to request") + return } return @@ -549,6 +553,7 @@ func (client DatabasesClient) ListPrincipals(ctx context.Context, resourceGroupN result, err = client.ListPrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "ListPrincipals", resp, "Failure responding to request") + return } return @@ -627,6 +632,7 @@ func (client DatabasesClient) RemovePrincipals(ctx context.Context, resourceGrou result, err = client.RemovePrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "RemovePrincipals", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2019-01-21/kusto/dataconnections.go b/services/kusto/mgmt/2019-01-21/kusto/dataconnections.go index b740f0211e0c..4d665d41da01 100644 --- a/services/kusto/mgmt/2019-01-21/kusto/dataconnections.go +++ b/services/kusto/mgmt/2019-01-21/kusto/dataconnections.go @@ -84,6 +84,7 @@ func (client DataConnectionsClient) CheckNameAvailability(ctx context.Context, r result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -246,6 +247,7 @@ func (client DataConnectionsClient) DataConnectionValidationMethod(ctx context.C result, err = client.DataConnectionValidationMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "DataConnectionValidationMethod", resp, "Failure responding to request") + return } return @@ -404,6 +406,7 @@ func (client DataConnectionsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -482,6 +485,7 @@ func (client DataConnectionsClient) ListByDatabase(ctx context.Context, resource result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2019-01-21/kusto/operations.go b/services/kusto/mgmt/2019-01-21/kusto/operations.go index 661a25d6e631..50f11f55867e 100644 --- a/services/kusto/mgmt/2019-01-21/kusto/operations.go +++ b/services/kusto/mgmt/2019-01-21/kusto/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/kusto/mgmt/2019-05-15/kusto/clusters.go b/services/kusto/mgmt/2019-05-15/kusto/clusters.go index 3154b70abfc3..29806f21de3b 100644 --- a/services/kusto/mgmt/2019-05-15/kusto/clusters.go +++ b/services/kusto/mgmt/2019-05-15/kusto/clusters.go @@ -82,6 +82,7 @@ func (client ClustersClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -329,6 +330,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -401,6 +403,7 @@ func (client ClustersClient) List(ctx context.Context) (result ClusterListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "List", resp, "Failure responding to request") + return } return @@ -473,6 +476,7 @@ func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -544,6 +548,7 @@ func (client ClustersClient) ListSkus(ctx context.Context) (result SkuDescriptio result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListSkus", resp, "Failure responding to request") + return } return @@ -617,6 +622,7 @@ func (client ClustersClient) ListSkusByResource(ctx context.Context, resourceGro result, err = client.ListSkusByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListSkusByResource", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2019-05-15/kusto/databases.go b/services/kusto/mgmt/2019-05-15/kusto/databases.go index 2afa9692cab4..b0518361e4fb 100644 --- a/services/kusto/mgmt/2019-05-15/kusto/databases.go +++ b/services/kusto/mgmt/2019-05-15/kusto/databases.go @@ -77,6 +77,7 @@ func (client DatabasesClient) AddPrincipals(ctx context.Context, resourceGroupNa result, err = client.AddPrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "AddPrincipals", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client DatabasesClient) CheckNameAvailability(ctx context.Context, resourc result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -397,6 +399,7 @@ func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -473,6 +476,7 @@ func (client DatabasesClient) ListByCluster(ctx context.Context, resourceGroupNa result, err = client.ListByClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "ListByCluster", resp, "Failure responding to request") + return } return @@ -549,6 +553,7 @@ func (client DatabasesClient) ListPrincipals(ctx context.Context, resourceGroupN result, err = client.ListPrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "ListPrincipals", resp, "Failure responding to request") + return } return @@ -627,6 +632,7 @@ func (client DatabasesClient) RemovePrincipals(ctx context.Context, resourceGrou result, err = client.RemovePrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "RemovePrincipals", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2019-05-15/kusto/dataconnections.go b/services/kusto/mgmt/2019-05-15/kusto/dataconnections.go index 1cd0b46b9500..257c3cc7543b 100644 --- a/services/kusto/mgmt/2019-05-15/kusto/dataconnections.go +++ b/services/kusto/mgmt/2019-05-15/kusto/dataconnections.go @@ -84,6 +84,7 @@ func (client DataConnectionsClient) CheckNameAvailability(ctx context.Context, r result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -246,6 +247,7 @@ func (client DataConnectionsClient) DataConnectionValidationMethod(ctx context.C result, err = client.DataConnectionValidationMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "DataConnectionValidationMethod", resp, "Failure responding to request") + return } return @@ -404,6 +406,7 @@ func (client DataConnectionsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -482,6 +485,7 @@ func (client DataConnectionsClient) ListByDatabase(ctx context.Context, resource result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2019-05-15/kusto/operations.go b/services/kusto/mgmt/2019-05-15/kusto/operations.go index 4a144e947b34..cbc4de999ecb 100644 --- a/services/kusto/mgmt/2019-05-15/kusto/operations.go +++ b/services/kusto/mgmt/2019-05-15/kusto/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/kusto/mgmt/2019-09-07/kusto/attacheddatabaseconfigurations.go b/services/kusto/mgmt/2019-09-07/kusto/attacheddatabaseconfigurations.go index 96683c0bf675..167095092346 100644 --- a/services/kusto/mgmt/2019-09-07/kusto/attacheddatabaseconfigurations.go +++ b/services/kusto/mgmt/2019-09-07/kusto/attacheddatabaseconfigurations.go @@ -242,6 +242,7 @@ func (client AttachedDatabaseConfigurationsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.AttachedDatabaseConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client AttachedDatabaseConfigurationsClient) ListByCluster(ctx context.Con result, err = client.ListByClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.AttachedDatabaseConfigurationsClient", "ListByCluster", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2019-09-07/kusto/clusters.go b/services/kusto/mgmt/2019-09-07/kusto/clusters.go index efea949c02c4..49e01ce9e609 100644 --- a/services/kusto/mgmt/2019-09-07/kusto/clusters.go +++ b/services/kusto/mgmt/2019-09-07/kusto/clusters.go @@ -82,6 +82,7 @@ func (client ClustersClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -419,6 +420,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -491,6 +493,7 @@ func (client ClustersClient) List(ctx context.Context) (result ClusterListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "List", resp, "Failure responding to request") + return } return @@ -563,6 +566,7 @@ func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -638,6 +642,7 @@ func (client ClustersClient) ListFollowerDatabases(ctx context.Context, resource result, err = client.ListFollowerDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListFollowerDatabases", resp, "Failure responding to request") + return } return @@ -710,6 +715,7 @@ func (client ClustersClient) ListSkus(ctx context.Context) (result SkuDescriptio result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListSkus", resp, "Failure responding to request") + return } return @@ -783,6 +789,7 @@ func (client ClustersClient) ListSkusByResource(ctx context.Context, resourceGro result, err = client.ListSkusByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListSkusByResource", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2019-09-07/kusto/databases.go b/services/kusto/mgmt/2019-09-07/kusto/databases.go index e5ec161ed1dc..6ecd6635901c 100644 --- a/services/kusto/mgmt/2019-09-07/kusto/databases.go +++ b/services/kusto/mgmt/2019-09-07/kusto/databases.go @@ -77,6 +77,7 @@ func (client DatabasesClient) AddPrincipals(ctx context.Context, resourceGroupNa result, err = client.AddPrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "AddPrincipals", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client DatabasesClient) CheckNameAvailability(ctx context.Context, resourc result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -396,6 +398,7 @@ func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -472,6 +475,7 @@ func (client DatabasesClient) ListByCluster(ctx context.Context, resourceGroupNa result, err = client.ListByClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "ListByCluster", resp, "Failure responding to request") + return } return @@ -548,6 +552,7 @@ func (client DatabasesClient) ListPrincipals(ctx context.Context, resourceGroupN result, err = client.ListPrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "ListPrincipals", resp, "Failure responding to request") + return } return @@ -626,6 +631,7 @@ func (client DatabasesClient) RemovePrincipals(ctx context.Context, resourceGrou result, err = client.RemovePrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "RemovePrincipals", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2019-09-07/kusto/dataconnections.go b/services/kusto/mgmt/2019-09-07/kusto/dataconnections.go index 5b9be15a2d03..fea57e48ee8d 100644 --- a/services/kusto/mgmt/2019-09-07/kusto/dataconnections.go +++ b/services/kusto/mgmt/2019-09-07/kusto/dataconnections.go @@ -84,6 +84,7 @@ func (client DataConnectionsClient) CheckNameAvailability(ctx context.Context, r result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -246,6 +247,7 @@ func (client DataConnectionsClient) DataConnectionValidationMethod(ctx context.C result, err = client.DataConnectionValidationMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "DataConnectionValidationMethod", resp, "Failure responding to request") + return } return @@ -404,6 +406,7 @@ func (client DataConnectionsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -482,6 +485,7 @@ func (client DataConnectionsClient) ListByDatabase(ctx context.Context, resource result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2019-09-07/kusto/operations.go b/services/kusto/mgmt/2019-09-07/kusto/operations.go index 6923b753da31..834f21d65695 100644 --- a/services/kusto/mgmt/2019-09-07/kusto/operations.go +++ b/services/kusto/mgmt/2019-09-07/kusto/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/kusto/mgmt/2019-11-09/kusto/attacheddatabaseconfigurations.go b/services/kusto/mgmt/2019-11-09/kusto/attacheddatabaseconfigurations.go index acbcf1a9a146..13dde4c63e62 100644 --- a/services/kusto/mgmt/2019-11-09/kusto/attacheddatabaseconfigurations.go +++ b/services/kusto/mgmt/2019-11-09/kusto/attacheddatabaseconfigurations.go @@ -242,6 +242,7 @@ func (client AttachedDatabaseConfigurationsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.AttachedDatabaseConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client AttachedDatabaseConfigurationsClient) ListByCluster(ctx context.Con result, err = client.ListByClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.AttachedDatabaseConfigurationsClient", "ListByCluster", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2019-11-09/kusto/clusterprincipalassignments.go b/services/kusto/mgmt/2019-11-09/kusto/clusterprincipalassignments.go index c0a1054b29e9..d56d726b2001 100644 --- a/services/kusto/mgmt/2019-11-09/kusto/clusterprincipalassignments.go +++ b/services/kusto/mgmt/2019-11-09/kusto/clusterprincipalassignments.go @@ -84,6 +84,7 @@ func (client ClusterPrincipalAssignmentsClient) CheckNameAvailability(ctx contex result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClusterPrincipalAssignmentsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client ClusterPrincipalAssignmentsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClusterPrincipalAssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -401,6 +403,7 @@ func (client ClusterPrincipalAssignmentsClient) List(ctx context.Context, resour result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClusterPrincipalAssignmentsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2019-11-09/kusto/clusters.go b/services/kusto/mgmt/2019-11-09/kusto/clusters.go index 8724ecfc4801..d46d6d75a0a5 100644 --- a/services/kusto/mgmt/2019-11-09/kusto/clusters.go +++ b/services/kusto/mgmt/2019-11-09/kusto/clusters.go @@ -82,6 +82,7 @@ func (client ClustersClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -495,6 +496,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -567,6 +569,7 @@ func (client ClustersClient) List(ctx context.Context) (result ClusterListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "List", resp, "Failure responding to request") + return } return @@ -639,6 +642,7 @@ func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -714,6 +718,7 @@ func (client ClustersClient) ListFollowerDatabases(ctx context.Context, resource result, err = client.ListFollowerDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListFollowerDatabases", resp, "Failure responding to request") + return } return @@ -786,6 +791,7 @@ func (client ClustersClient) ListSkus(ctx context.Context) (result SkuDescriptio result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListSkus", resp, "Failure responding to request") + return } return @@ -859,6 +865,7 @@ func (client ClustersClient) ListSkusByResource(ctx context.Context, resourceGro result, err = client.ListSkusByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListSkusByResource", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2019-11-09/kusto/databaseprincipalassignments.go b/services/kusto/mgmt/2019-11-09/kusto/databaseprincipalassignments.go index 6ef441414850..591ee0af2c3f 100644 --- a/services/kusto/mgmt/2019-11-09/kusto/databaseprincipalassignments.go +++ b/services/kusto/mgmt/2019-11-09/kusto/databaseprincipalassignments.go @@ -85,6 +85,7 @@ func (client DatabasePrincipalAssignmentsClient) CheckNameAvailability(ctx conte result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasePrincipalAssignmentsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -332,6 +333,7 @@ func (client DatabasePrincipalAssignmentsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasePrincipalAssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -410,6 +412,7 @@ func (client DatabasePrincipalAssignmentsClient) List(ctx context.Context, resou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasePrincipalAssignmentsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2019-11-09/kusto/databases.go b/services/kusto/mgmt/2019-11-09/kusto/databases.go index 3b5aa3b827b7..c2da78a76f2d 100644 --- a/services/kusto/mgmt/2019-11-09/kusto/databases.go +++ b/services/kusto/mgmt/2019-11-09/kusto/databases.go @@ -77,6 +77,7 @@ func (client DatabasesClient) AddPrincipals(ctx context.Context, resourceGroupNa result, err = client.AddPrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "AddPrincipals", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client DatabasesClient) CheckNameAvailability(ctx context.Context, resourc result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -396,6 +398,7 @@ func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -472,6 +475,7 @@ func (client DatabasesClient) ListByCluster(ctx context.Context, resourceGroupNa result, err = client.ListByClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "ListByCluster", resp, "Failure responding to request") + return } return @@ -548,6 +552,7 @@ func (client DatabasesClient) ListPrincipals(ctx context.Context, resourceGroupN result, err = client.ListPrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "ListPrincipals", resp, "Failure responding to request") + return } return @@ -626,6 +631,7 @@ func (client DatabasesClient) RemovePrincipals(ctx context.Context, resourceGrou result, err = client.RemovePrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "RemovePrincipals", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2019-11-09/kusto/dataconnections.go b/services/kusto/mgmt/2019-11-09/kusto/dataconnections.go index 91c063d20562..b7c6f45f73ee 100644 --- a/services/kusto/mgmt/2019-11-09/kusto/dataconnections.go +++ b/services/kusto/mgmt/2019-11-09/kusto/dataconnections.go @@ -84,6 +84,7 @@ func (client DataConnectionsClient) CheckNameAvailability(ctx context.Context, r result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -246,6 +247,7 @@ func (client DataConnectionsClient) DataConnectionValidationMethod(ctx context.C result, err = client.DataConnectionValidationMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "DataConnectionValidationMethod", resp, "Failure responding to request") + return } return @@ -404,6 +406,7 @@ func (client DataConnectionsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -482,6 +485,7 @@ func (client DataConnectionsClient) ListByDatabase(ctx context.Context, resource result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2019-11-09/kusto/operations.go b/services/kusto/mgmt/2019-11-09/kusto/operations.go index d16a9dedaa25..dd71077106ec 100644 --- a/services/kusto/mgmt/2019-11-09/kusto/operations.go +++ b/services/kusto/mgmt/2019-11-09/kusto/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/kusto/mgmt/2020-02-15/kusto/attacheddatabaseconfigurations.go b/services/kusto/mgmt/2020-02-15/kusto/attacheddatabaseconfigurations.go index e0bf9e5b90b6..80c1978ae9c2 100644 --- a/services/kusto/mgmt/2020-02-15/kusto/attacheddatabaseconfigurations.go +++ b/services/kusto/mgmt/2020-02-15/kusto/attacheddatabaseconfigurations.go @@ -242,6 +242,7 @@ func (client AttachedDatabaseConfigurationsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.AttachedDatabaseConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client AttachedDatabaseConfigurationsClient) ListByCluster(ctx context.Con result, err = client.ListByClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.AttachedDatabaseConfigurationsClient", "ListByCluster", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2020-02-15/kusto/clusterprincipalassignments.go b/services/kusto/mgmt/2020-02-15/kusto/clusterprincipalassignments.go index f37bd4cf76ec..64b3e6cfbace 100644 --- a/services/kusto/mgmt/2020-02-15/kusto/clusterprincipalassignments.go +++ b/services/kusto/mgmt/2020-02-15/kusto/clusterprincipalassignments.go @@ -84,6 +84,7 @@ func (client ClusterPrincipalAssignmentsClient) CheckNameAvailability(ctx contex result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClusterPrincipalAssignmentsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client ClusterPrincipalAssignmentsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClusterPrincipalAssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -401,6 +403,7 @@ func (client ClusterPrincipalAssignmentsClient) List(ctx context.Context, resour result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClusterPrincipalAssignmentsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2020-02-15/kusto/clusters.go b/services/kusto/mgmt/2020-02-15/kusto/clusters.go index f26e1053f9da..212990a0067c 100644 --- a/services/kusto/mgmt/2020-02-15/kusto/clusters.go +++ b/services/kusto/mgmt/2020-02-15/kusto/clusters.go @@ -159,6 +159,7 @@ func (client ClustersClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -572,6 +573,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -644,6 +646,7 @@ func (client ClustersClient) List(ctx context.Context) (result ClusterListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "List", resp, "Failure responding to request") + return } return @@ -716,6 +719,7 @@ func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -791,6 +795,7 @@ func (client ClustersClient) ListFollowerDatabases(ctx context.Context, resource result, err = client.ListFollowerDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListFollowerDatabases", resp, "Failure responding to request") + return } return @@ -866,6 +871,7 @@ func (client ClustersClient) ListLanguageExtensions(ctx context.Context, resourc result, err = client.ListLanguageExtensionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListLanguageExtensions", resp, "Failure responding to request") + return } return @@ -938,6 +944,7 @@ func (client ClustersClient) ListSkus(ctx context.Context) (result SkuDescriptio result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListSkus", resp, "Failure responding to request") + return } return @@ -1011,6 +1018,7 @@ func (client ClustersClient) ListSkusByResource(ctx context.Context, resourceGro result, err = client.ListSkusByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListSkusByResource", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2020-02-15/kusto/databaseprincipalassignments.go b/services/kusto/mgmt/2020-02-15/kusto/databaseprincipalassignments.go index c9390886d504..047c53d5e672 100644 --- a/services/kusto/mgmt/2020-02-15/kusto/databaseprincipalassignments.go +++ b/services/kusto/mgmt/2020-02-15/kusto/databaseprincipalassignments.go @@ -85,6 +85,7 @@ func (client DatabasePrincipalAssignmentsClient) CheckNameAvailability(ctx conte result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasePrincipalAssignmentsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -332,6 +333,7 @@ func (client DatabasePrincipalAssignmentsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasePrincipalAssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -410,6 +412,7 @@ func (client DatabasePrincipalAssignmentsClient) List(ctx context.Context, resou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasePrincipalAssignmentsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2020-02-15/kusto/databases.go b/services/kusto/mgmt/2020-02-15/kusto/databases.go index f519e4af56e3..4f8364ee0e99 100644 --- a/services/kusto/mgmt/2020-02-15/kusto/databases.go +++ b/services/kusto/mgmt/2020-02-15/kusto/databases.go @@ -77,6 +77,7 @@ func (client DatabasesClient) AddPrincipals(ctx context.Context, resourceGroupNa result, err = client.AddPrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "AddPrincipals", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client DatabasesClient) CheckNameAvailability(ctx context.Context, resourc result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -396,6 +398,7 @@ func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -472,6 +475,7 @@ func (client DatabasesClient) ListByCluster(ctx context.Context, resourceGroupNa result, err = client.ListByClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "ListByCluster", resp, "Failure responding to request") + return } return @@ -548,6 +552,7 @@ func (client DatabasesClient) ListPrincipals(ctx context.Context, resourceGroupN result, err = client.ListPrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "ListPrincipals", resp, "Failure responding to request") + return } return @@ -626,6 +631,7 @@ func (client DatabasesClient) RemovePrincipals(ctx context.Context, resourceGrou result, err = client.RemovePrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "RemovePrincipals", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2020-02-15/kusto/dataconnections.go b/services/kusto/mgmt/2020-02-15/kusto/dataconnections.go index b9b9871112e1..e3b1c588cdb2 100644 --- a/services/kusto/mgmt/2020-02-15/kusto/dataconnections.go +++ b/services/kusto/mgmt/2020-02-15/kusto/dataconnections.go @@ -84,6 +84,7 @@ func (client DataConnectionsClient) CheckNameAvailability(ctx context.Context, r result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -246,6 +247,7 @@ func (client DataConnectionsClient) DataConnectionValidationMethod(ctx context.C result, err = client.DataConnectionValidationMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "DataConnectionValidationMethod", resp, "Failure responding to request") + return } return @@ -404,6 +406,7 @@ func (client DataConnectionsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -482,6 +485,7 @@ func (client DataConnectionsClient) ListByDatabase(ctx context.Context, resource result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2020-02-15/kusto/operations.go b/services/kusto/mgmt/2020-02-15/kusto/operations.go index f47941ff244a..eadcb25e91e4 100644 --- a/services/kusto/mgmt/2020-02-15/kusto/operations.go +++ b/services/kusto/mgmt/2020-02-15/kusto/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/kusto/mgmt/2020-06-14/kusto/attacheddatabaseconfigurations.go b/services/kusto/mgmt/2020-06-14/kusto/attacheddatabaseconfigurations.go index 57ce4d385120..5ca890d0c3ee 100644 --- a/services/kusto/mgmt/2020-06-14/kusto/attacheddatabaseconfigurations.go +++ b/services/kusto/mgmt/2020-06-14/kusto/attacheddatabaseconfigurations.go @@ -242,6 +242,7 @@ func (client AttachedDatabaseConfigurationsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.AttachedDatabaseConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client AttachedDatabaseConfigurationsClient) ListByCluster(ctx context.Con result, err = client.ListByClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.AttachedDatabaseConfigurationsClient", "ListByCluster", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2020-06-14/kusto/clusterprincipalassignments.go b/services/kusto/mgmt/2020-06-14/kusto/clusterprincipalassignments.go index c06528f9d98d..64bbc1782627 100644 --- a/services/kusto/mgmt/2020-06-14/kusto/clusterprincipalassignments.go +++ b/services/kusto/mgmt/2020-06-14/kusto/clusterprincipalassignments.go @@ -84,6 +84,7 @@ func (client ClusterPrincipalAssignmentsClient) CheckNameAvailability(ctx contex result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClusterPrincipalAssignmentsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client ClusterPrincipalAssignmentsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClusterPrincipalAssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -401,6 +403,7 @@ func (client ClusterPrincipalAssignmentsClient) List(ctx context.Context, resour result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClusterPrincipalAssignmentsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2020-06-14/kusto/clusters.go b/services/kusto/mgmt/2020-06-14/kusto/clusters.go index 1ace711caca4..a45de49c1602 100644 --- a/services/kusto/mgmt/2020-06-14/kusto/clusters.go +++ b/services/kusto/mgmt/2020-06-14/kusto/clusters.go @@ -159,6 +159,7 @@ func (client ClustersClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -572,6 +573,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -644,6 +646,7 @@ func (client ClustersClient) List(ctx context.Context) (result ClusterListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "List", resp, "Failure responding to request") + return } return @@ -716,6 +719,7 @@ func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -791,6 +795,7 @@ func (client ClustersClient) ListFollowerDatabases(ctx context.Context, resource result, err = client.ListFollowerDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListFollowerDatabases", resp, "Failure responding to request") + return } return @@ -866,6 +871,7 @@ func (client ClustersClient) ListLanguageExtensions(ctx context.Context, resourc result, err = client.ListLanguageExtensionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListLanguageExtensions", resp, "Failure responding to request") + return } return @@ -938,6 +944,7 @@ func (client ClustersClient) ListSkus(ctx context.Context) (result SkuDescriptio result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListSkus", resp, "Failure responding to request") + return } return @@ -1011,6 +1018,7 @@ func (client ClustersClient) ListSkusByResource(ctx context.Context, resourceGro result, err = client.ListSkusByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListSkusByResource", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2020-06-14/kusto/databaseprincipalassignments.go b/services/kusto/mgmt/2020-06-14/kusto/databaseprincipalassignments.go index 714c6e90bee6..6bcca81ff9bc 100644 --- a/services/kusto/mgmt/2020-06-14/kusto/databaseprincipalassignments.go +++ b/services/kusto/mgmt/2020-06-14/kusto/databaseprincipalassignments.go @@ -85,6 +85,7 @@ func (client DatabasePrincipalAssignmentsClient) CheckNameAvailability(ctx conte result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasePrincipalAssignmentsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -332,6 +333,7 @@ func (client DatabasePrincipalAssignmentsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasePrincipalAssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -410,6 +412,7 @@ func (client DatabasePrincipalAssignmentsClient) List(ctx context.Context, resou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasePrincipalAssignmentsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2020-06-14/kusto/databases.go b/services/kusto/mgmt/2020-06-14/kusto/databases.go index d02073154123..d8d27927330b 100644 --- a/services/kusto/mgmt/2020-06-14/kusto/databases.go +++ b/services/kusto/mgmt/2020-06-14/kusto/databases.go @@ -77,6 +77,7 @@ func (client DatabasesClient) AddPrincipals(ctx context.Context, resourceGroupNa result, err = client.AddPrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "AddPrincipals", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client DatabasesClient) CheckNameAvailability(ctx context.Context, resourc result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -396,6 +398,7 @@ func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -472,6 +475,7 @@ func (client DatabasesClient) ListByCluster(ctx context.Context, resourceGroupNa result, err = client.ListByClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "ListByCluster", resp, "Failure responding to request") + return } return @@ -548,6 +552,7 @@ func (client DatabasesClient) ListPrincipals(ctx context.Context, resourceGroupN result, err = client.ListPrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "ListPrincipals", resp, "Failure responding to request") + return } return @@ -626,6 +631,7 @@ func (client DatabasesClient) RemovePrincipals(ctx context.Context, resourceGrou result, err = client.RemovePrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "RemovePrincipals", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2020-06-14/kusto/dataconnections.go b/services/kusto/mgmt/2020-06-14/kusto/dataconnections.go index b38d1e3495d0..c70bc99c2be5 100644 --- a/services/kusto/mgmt/2020-06-14/kusto/dataconnections.go +++ b/services/kusto/mgmt/2020-06-14/kusto/dataconnections.go @@ -84,6 +84,7 @@ func (client DataConnectionsClient) CheckNameAvailability(ctx context.Context, r result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -404,6 +405,7 @@ func (client DataConnectionsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -482,6 +484,7 @@ func (client DataConnectionsClient) ListByDatabase(ctx context.Context, resource result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2020-06-14/kusto/operations.go b/services/kusto/mgmt/2020-06-14/kusto/operations.go index e89bada8f82a..8e598611b8fe 100644 --- a/services/kusto/mgmt/2020-06-14/kusto/operations.go +++ b/services/kusto/mgmt/2020-06-14/kusto/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/kusto/mgmt/2020-09-18/kusto/attacheddatabaseconfigurations.go b/services/kusto/mgmt/2020-09-18/kusto/attacheddatabaseconfigurations.go index 11320dce086b..e8ef27d88384 100644 --- a/services/kusto/mgmt/2020-09-18/kusto/attacheddatabaseconfigurations.go +++ b/services/kusto/mgmt/2020-09-18/kusto/attacheddatabaseconfigurations.go @@ -242,6 +242,7 @@ func (client AttachedDatabaseConfigurationsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.AttachedDatabaseConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client AttachedDatabaseConfigurationsClient) ListByCluster(ctx context.Con result, err = client.ListByClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.AttachedDatabaseConfigurationsClient", "ListByCluster", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2020-09-18/kusto/clusterprincipalassignments.go b/services/kusto/mgmt/2020-09-18/kusto/clusterprincipalassignments.go index 55dbece96a75..de8fdcb1e51a 100644 --- a/services/kusto/mgmt/2020-09-18/kusto/clusterprincipalassignments.go +++ b/services/kusto/mgmt/2020-09-18/kusto/clusterprincipalassignments.go @@ -84,6 +84,7 @@ func (client ClusterPrincipalAssignmentsClient) CheckNameAvailability(ctx contex result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClusterPrincipalAssignmentsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client ClusterPrincipalAssignmentsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClusterPrincipalAssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -401,6 +403,7 @@ func (client ClusterPrincipalAssignmentsClient) List(ctx context.Context, resour result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClusterPrincipalAssignmentsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2020-09-18/kusto/clusters.go b/services/kusto/mgmt/2020-09-18/kusto/clusters.go index 5fb56a0572b3..130194ceb437 100644 --- a/services/kusto/mgmt/2020-09-18/kusto/clusters.go +++ b/services/kusto/mgmt/2020-09-18/kusto/clusters.go @@ -159,6 +159,7 @@ func (client ClustersClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -571,6 +572,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -643,6 +645,7 @@ func (client ClustersClient) List(ctx context.Context) (result ClusterListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "List", resp, "Failure responding to request") + return } return @@ -715,6 +718,7 @@ func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -790,6 +794,7 @@ func (client ClustersClient) ListFollowerDatabases(ctx context.Context, resource result, err = client.ListFollowerDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListFollowerDatabases", resp, "Failure responding to request") + return } return @@ -865,6 +870,7 @@ func (client ClustersClient) ListLanguageExtensions(ctx context.Context, resourc result, err = client.ListLanguageExtensionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListLanguageExtensions", resp, "Failure responding to request") + return } return @@ -937,6 +943,7 @@ func (client ClustersClient) ListSkus(ctx context.Context) (result SkuDescriptio result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListSkus", resp, "Failure responding to request") + return } return @@ -1010,6 +1017,7 @@ func (client ClustersClient) ListSkusByResource(ctx context.Context, resourceGro result, err = client.ListSkusByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListSkusByResource", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2020-09-18/kusto/databaseprincipalassignments.go b/services/kusto/mgmt/2020-09-18/kusto/databaseprincipalassignments.go index 0e54cb1fe4a9..20a6db062613 100644 --- a/services/kusto/mgmt/2020-09-18/kusto/databaseprincipalassignments.go +++ b/services/kusto/mgmt/2020-09-18/kusto/databaseprincipalassignments.go @@ -85,6 +85,7 @@ func (client DatabasePrincipalAssignmentsClient) CheckNameAvailability(ctx conte result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasePrincipalAssignmentsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -332,6 +333,7 @@ func (client DatabasePrincipalAssignmentsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasePrincipalAssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -410,6 +412,7 @@ func (client DatabasePrincipalAssignmentsClient) List(ctx context.Context, resou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasePrincipalAssignmentsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2020-09-18/kusto/databases.go b/services/kusto/mgmt/2020-09-18/kusto/databases.go index 58b1676c2de3..719500f9e745 100644 --- a/services/kusto/mgmt/2020-09-18/kusto/databases.go +++ b/services/kusto/mgmt/2020-09-18/kusto/databases.go @@ -77,6 +77,7 @@ func (client DatabasesClient) AddPrincipals(ctx context.Context, resourceGroupNa result, err = client.AddPrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "AddPrincipals", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client DatabasesClient) CheckNameAvailability(ctx context.Context, resourc result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -396,6 +398,7 @@ func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -472,6 +475,7 @@ func (client DatabasesClient) ListByCluster(ctx context.Context, resourceGroupNa result, err = client.ListByClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "ListByCluster", resp, "Failure responding to request") + return } return @@ -548,6 +552,7 @@ func (client DatabasesClient) ListPrincipals(ctx context.Context, resourceGroupN result, err = client.ListPrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "ListPrincipals", resp, "Failure responding to request") + return } return @@ -626,6 +631,7 @@ func (client DatabasesClient) RemovePrincipals(ctx context.Context, resourceGrou result, err = client.RemovePrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "RemovePrincipals", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2020-09-18/kusto/dataconnections.go b/services/kusto/mgmt/2020-09-18/kusto/dataconnections.go index 5e054b2f3057..5038a59db82d 100644 --- a/services/kusto/mgmt/2020-09-18/kusto/dataconnections.go +++ b/services/kusto/mgmt/2020-09-18/kusto/dataconnections.go @@ -84,6 +84,7 @@ func (client DataConnectionsClient) CheckNameAvailability(ctx context.Context, r result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -404,6 +405,7 @@ func (client DataConnectionsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -482,6 +484,7 @@ func (client DataConnectionsClient) ListByDatabase(ctx context.Context, resource result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2020-09-18/kusto/operations.go b/services/kusto/mgmt/2020-09-18/kusto/operations.go index 383e2a09e7fd..de090ef2874b 100644 --- a/services/kusto/mgmt/2020-09-18/kusto/operations.go +++ b/services/kusto/mgmt/2020-09-18/kusto/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/labservices/mgmt/2018-10-15/labservices/environments.go b/services/labservices/mgmt/2018-10-15/labservices/environments.go index 225e88751255..0f3e55ae6db6 100644 --- a/services/labservices/mgmt/2018-10-15/labservices/environments.go +++ b/services/labservices/mgmt/2018-10-15/labservices/environments.go @@ -76,6 +76,7 @@ func (client EnvironmentsClient) Claim(ctx context.Context, resourceGroupName st result, err = client.ClaimResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.EnvironmentsClient", "Claim", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client EnvironmentsClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.EnvironmentsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -321,6 +323,7 @@ func (client EnvironmentsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.EnvironmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -409,6 +412,7 @@ func (client EnvironmentsClient) List(ctx context.Context, resourceGroupName str result.rwce, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.EnvironmentsClient", "List", resp, "Failure responding to request") + return } if result.rwce.hasNextLink() && result.rwce.IsEmpty() { err = result.NextWithContext(ctx) @@ -487,6 +491,7 @@ func (client EnvironmentsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.EnvironmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -793,6 +798,7 @@ func (client EnvironmentsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.EnvironmentsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/labservices/mgmt/2018-10-15/labservices/environmentsettings.go b/services/labservices/mgmt/2018-10-15/labservices/environmentsettings.go index e0d33b3484ed..5d99d2d01a22 100644 --- a/services/labservices/mgmt/2018-10-15/labservices/environmentsettings.go +++ b/services/labservices/mgmt/2018-10-15/labservices/environmentsettings.go @@ -76,6 +76,7 @@ func (client EnvironmentSettingsClient) ClaimAny(ctx context.Context, resourceGr result, err = client.ClaimAnyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.EnvironmentSettingsClient", "ClaimAny", resp, "Failure responding to request") + return } return @@ -327,6 +328,7 @@ func (client EnvironmentSettingsClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.EnvironmentSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -413,6 +415,7 @@ func (client EnvironmentSettingsClient) List(ctx context.Context, resourceGroupN result.rwces, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.EnvironmentSettingsClient", "List", resp, "Failure responding to request") + return } if result.rwces.hasNextLink() && result.rwces.IsEmpty() { err = result.NextWithContext(ctx) @@ -490,6 +493,7 @@ func (client EnvironmentSettingsClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.EnvironmentSettingsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -545,6 +549,7 @@ func (client EnvironmentSettingsClient) Publish(ctx context.Context, resourceGro result, err = client.PublishResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.EnvironmentSettingsClient", "Publish", resp, "Failure responding to request") + return } return @@ -783,6 +788,7 @@ func (client EnvironmentSettingsClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.EnvironmentSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/labservices/mgmt/2018-10-15/labservices/galleryimages.go b/services/labservices/mgmt/2018-10-15/labservices/galleryimages.go index e0a7a1163bbd..cdaa066e662c 100644 --- a/services/labservices/mgmt/2018-10-15/labservices/galleryimages.go +++ b/services/labservices/mgmt/2018-10-15/labservices/galleryimages.go @@ -74,6 +74,7 @@ func (client GalleryImagesClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.GalleryImagesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client GalleryImagesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.GalleryImagesClient", "Delete", resp, "Failure responding to request") + return } return @@ -230,6 +232,7 @@ func (client GalleryImagesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.GalleryImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +317,7 @@ func (client GalleryImagesClient) List(ctx context.Context, resourceGroupName st result.rwcgi, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.GalleryImagesClient", "List", resp, "Failure responding to request") + return } if result.rwcgi.hasNextLink() && result.rwcgi.IsEmpty() { err = result.NextWithContext(ctx) @@ -390,6 +394,7 @@ func (client GalleryImagesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.GalleryImagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +448,7 @@ func (client GalleryImagesClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.GalleryImagesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/labservices/mgmt/2018-10-15/labservices/globalusers.go b/services/labservices/mgmt/2018-10-15/labservices/globalusers.go index f07e9757adb9..25f67bd531c4 100644 --- a/services/labservices/mgmt/2018-10-15/labservices/globalusers.go +++ b/services/labservices/mgmt/2018-10-15/labservices/globalusers.go @@ -81,6 +81,7 @@ func (client GlobalUsersClient) GetEnvironment(ctx context.Context, userName str result, err = client.GetEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.GlobalUsersClient", "GetEnvironment", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client GlobalUsersClient) GetOperationBatchStatus(ctx context.Context, use result, err = client.GetOperationBatchStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.GlobalUsersClient", "GetOperationBatchStatus", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client GlobalUsersClient) GetOperationStatus(ctx context.Context, userName result, err = client.GetOperationStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.GlobalUsersClient", "GetOperationStatus", resp, "Failure responding to request") + return } return @@ -322,6 +325,7 @@ func (client GlobalUsersClient) GetPersonalPreferences(ctx context.Context, user result, err = client.GetPersonalPreferencesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.GlobalUsersClient", "GetPersonalPreferences", resp, "Failure responding to request") + return } return @@ -397,6 +401,7 @@ func (client GlobalUsersClient) ListEnvironments(ctx context.Context, userName s result, err = client.ListEnvironmentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.GlobalUsersClient", "ListEnvironments", resp, "Failure responding to request") + return } return @@ -471,6 +476,7 @@ func (client GlobalUsersClient) ListLabs(ctx context.Context, userName string) ( result, err = client.ListLabsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.GlobalUsersClient", "ListLabs", resp, "Failure responding to request") + return } return @@ -544,6 +550,7 @@ func (client GlobalUsersClient) Register(ctx context.Context, userName string, r result, err = client.RegisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.GlobalUsersClient", "Register", resp, "Failure responding to request") + return } return diff --git a/services/labservices/mgmt/2018-10-15/labservices/labaccounts.go b/services/labservices/mgmt/2018-10-15/labservices/labaccounts.go index 1a7ba9e6a8c4..f19cfc6b35c0 100644 --- a/services/labservices/mgmt/2018-10-15/labservices/labaccounts.go +++ b/services/labservices/mgmt/2018-10-15/labservices/labaccounts.go @@ -90,6 +90,7 @@ func (client LabAccountsClient) CreateLab(ctx context.Context, resourceGroupName result, err = client.CreateLabResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.LabAccountsClient", "CreateLab", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client LabAccountsClient) CreateOrUpdate(ctx context.Context, resourceGrou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.LabAccountsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -319,6 +321,7 @@ func (client LabAccountsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.LabAccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -397,6 +400,7 @@ func (client LabAccountsClient) GetRegionalAvailability(ctx context.Context, res result, err = client.GetRegionalAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.LabAccountsClient", "GetRegionalAvailability", resp, "Failure responding to request") + return } return @@ -476,6 +480,7 @@ func (client LabAccountsClient) ListByResourceGroup(ctx context.Context, resourc result.rwcla, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.LabAccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rwcla.hasNextLink() && result.rwcla.IsEmpty() { err = result.NextWithContext(ctx) @@ -551,6 +556,7 @@ func (client LabAccountsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.LabAccountsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -605,6 +611,7 @@ func (client LabAccountsClient) ListBySubscription(ctx context.Context, expand s result.rwcla, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.LabAccountsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.rwcla.hasNextLink() && result.rwcla.IsEmpty() { err = result.NextWithContext(ctx) @@ -679,6 +686,7 @@ func (client LabAccountsClient) listBySubscriptionNextResults(ctx context.Contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.LabAccountsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -731,6 +739,7 @@ func (client LabAccountsClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.LabAccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/labservices/mgmt/2018-10-15/labservices/labs.go b/services/labservices/mgmt/2018-10-15/labservices/labs.go index c78eefd9a4c4..a1cccf2c824e 100644 --- a/services/labservices/mgmt/2018-10-15/labservices/labs.go +++ b/services/labservices/mgmt/2018-10-15/labservices/labs.go @@ -81,6 +81,7 @@ func (client LabsClient) AddUsers(ctx context.Context, resourceGroupName string, result, err = client.AddUsersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.LabsClient", "AddUsers", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client LabsClient) CreateOrUpdate(ctx context.Context, resourceGroupName s result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.LabsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -316,6 +318,7 @@ func (client LabsClient) Get(ctx context.Context, resourceGroupName string, labA result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.LabsClient", "Get", resp, "Failure responding to request") + return } return @@ -400,6 +403,7 @@ func (client LabsClient) List(ctx context.Context, resourceGroupName string, lab result.rwcl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.LabsClient", "List", resp, "Failure responding to request") + return } if result.rwcl.hasNextLink() && result.rwcl.IsEmpty() { err = result.NextWithContext(ctx) @@ -476,6 +480,7 @@ func (client LabsClient) listNextResults(ctx context.Context, lastResults Respon result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.LabsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -528,6 +533,7 @@ func (client LabsClient) Register(ctx context.Context, resourceGroupName string, result, err = client.RegisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.LabsClient", "Register", resp, "Failure responding to request") + return } return @@ -605,6 +611,7 @@ func (client LabsClient) Update(ctx context.Context, resourceGroupName string, l result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.LabsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/labservices/mgmt/2018-10-15/labservices/operations.go b/services/labservices/mgmt/2018-10-15/labservices/operations.go index 778f43f6a8d5..d2dfd8b51a28 100644 --- a/services/labservices/mgmt/2018-10-15/labservices/operations.go +++ b/services/labservices/mgmt/2018-10-15/labservices/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) Get(ctx context.Context, locationName string, ope result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.OperationsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/labservices/mgmt/2018-10-15/labservices/provideroperations.go b/services/labservices/mgmt/2018-10-15/labservices/provideroperations.go index cd72c068f03a..8ef2efdd8d4f 100644 --- a/services/labservices/mgmt/2018-10-15/labservices/provideroperations.go +++ b/services/labservices/mgmt/2018-10-15/labservices/provideroperations.go @@ -71,6 +71,7 @@ func (client ProviderOperationsClient) List(ctx context.Context) (result Provide result.por, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.ProviderOperationsClient", "List", resp, "Failure responding to request") + return } if result.por.hasNextLink() && result.por.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client ProviderOperationsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.ProviderOperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/labservices/mgmt/2018-10-15/labservices/users.go b/services/labservices/mgmt/2018-10-15/labservices/users.go index 41f355c846fd..f4001ecd526a 100644 --- a/services/labservices/mgmt/2018-10-15/labservices/users.go +++ b/services/labservices/mgmt/2018-10-15/labservices/users.go @@ -75,6 +75,7 @@ func (client UsersClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.UsersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -235,6 +236,7 @@ func (client UsersClient) Get(ctx context.Context, resourceGroupName string, lab result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.UsersClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +323,7 @@ func (client UsersClient) List(ctx context.Context, resourceGroupName string, la result.rwcu, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.UsersClient", "List", resp, "Failure responding to request") + return } if result.rwcu.hasNextLink() && result.rwcu.IsEmpty() { err = result.NextWithContext(ctx) @@ -398,6 +401,7 @@ func (client UsersClient) listNextResults(ctx context.Context, lastResults Respo result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.UsersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -452,6 +456,7 @@ func (client UsersClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "labservices.UsersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2016-06-01/logic/agreements.go b/services/logic/mgmt/2016-06-01/logic/agreements.go index 6d96d0f1dbd2..f31cdce79df6 100644 --- a/services/logic/mgmt/2016-06-01/logic/agreements.go +++ b/services/logic/mgmt/2016-06-01/logic/agreements.go @@ -510,6 +510,7 @@ func (client AgreementsClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.AgreementsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -589,6 +590,7 @@ func (client AgreementsClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.AgreementsClient", "Delete", resp, "Failure responding to request") + return } return @@ -665,6 +667,7 @@ func (client AgreementsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.AgreementsClient", "Get", resp, "Failure responding to request") + return } return @@ -744,6 +747,7 @@ func (client AgreementsClient) ListByIntegrationAccounts(ctx context.Context, re result.iaalr, err = client.ListByIntegrationAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.AgreementsClient", "ListByIntegrationAccounts", resp, "Failure responding to request") + return } if result.iaalr.hasNextLink() && result.iaalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -814,6 +818,7 @@ func (client AgreementsClient) listByIntegrationAccountsNextResults(ctx context. result, err = client.ListByIntegrationAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.AgreementsClient", "listByIntegrationAccountsNextResults", resp, "Failure responding to next results request") + return } return } @@ -866,6 +871,7 @@ func (client AgreementsClient) ListContentCallbackURL(ctx context.Context, resou result, err = client.ListContentCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.AgreementsClient", "ListContentCallbackURL", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2016-06-01/logic/certificates.go b/services/logic/mgmt/2016-06-01/logic/certificates.go index 91d854067a11..2e16d44d8824 100644 --- a/services/logic/mgmt/2016-06-01/logic/certificates.go +++ b/services/logic/mgmt/2016-06-01/logic/certificates.go @@ -86,6 +86,7 @@ func (client CertificatesClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.CertificatesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client CertificatesClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.CertificatesClient", "Delete", resp, "Failure responding to request") + return } return @@ -241,6 +243,7 @@ func (client CertificatesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.CertificatesClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +322,7 @@ func (client CertificatesClient) ListByIntegrationAccounts(ctx context.Context, result.iaclr, err = client.ListByIntegrationAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.CertificatesClient", "ListByIntegrationAccounts", resp, "Failure responding to request") + return } if result.iaclr.hasNextLink() && result.iaclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +390,7 @@ func (client CertificatesClient) listByIntegrationAccountsNextResults(ctx contex result, err = client.ListByIntegrationAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.CertificatesClient", "listByIntegrationAccountsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/logic/mgmt/2016-06-01/logic/client.go b/services/logic/mgmt/2016-06-01/logic/client.go index 841114a7133a..22903f44e25e 100644 --- a/services/logic/mgmt/2016-06-01/logic/client.go +++ b/services/logic/mgmt/2016-06-01/logic/client.go @@ -84,6 +84,7 @@ func (client BaseClient) ListOperations(ctx context.Context) (result OperationLi result.olr, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.BaseClient", "ListOperations", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client BaseClient) listOperationsNextResults(ctx context.Context, lastResu result, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.BaseClient", "listOperationsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/logic/mgmt/2016-06-01/logic/integrationaccountassemblies.go b/services/logic/mgmt/2016-06-01/logic/integrationaccountassemblies.go index f38f5fa17ace..cb25c5ef4b88 100644 --- a/services/logic/mgmt/2016-06-01/logic/integrationaccountassemblies.go +++ b/services/logic/mgmt/2016-06-01/logic/integrationaccountassemblies.go @@ -83,6 +83,7 @@ func (client IntegrationAccountAssembliesClient) CreateOrUpdate(ctx context.Cont result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAssembliesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client IntegrationAccountAssembliesClient) Delete(ctx context.Context, res result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAssembliesClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client IntegrationAccountAssembliesClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAssembliesClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +317,7 @@ func (client IntegrationAccountAssembliesClient) List(ctx context.Context, resou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAssembliesClient", "List", resp, "Failure responding to request") + return } return @@ -390,6 +394,7 @@ func (client IntegrationAccountAssembliesClient) ListContentCallbackURL(ctx cont result, err = client.ListContentCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAssembliesClient", "ListContentCallbackURL", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2016-06-01/logic/integrationaccountbatchconfigurations.go b/services/logic/mgmt/2016-06-01/logic/integrationaccountbatchconfigurations.go index da8cf1e4f07d..df7c8c0f7670 100644 --- a/services/logic/mgmt/2016-06-01/logic/integrationaccountbatchconfigurations.go +++ b/services/logic/mgmt/2016-06-01/logic/integrationaccountbatchconfigurations.go @@ -86,6 +86,7 @@ func (client IntegrationAccountBatchConfigurationsClient) CreateOrUpdate(ctx con result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountBatchConfigurationsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client IntegrationAccountBatchConfigurationsClient) Delete(ctx context.Con result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountBatchConfigurationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -241,6 +243,7 @@ func (client IntegrationAccountBatchConfigurationsClient) Get(ctx context.Contex result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountBatchConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client IntegrationAccountBatchConfigurationsClient) List(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountBatchConfigurationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2016-06-01/logic/integrationaccounts.go b/services/logic/mgmt/2016-06-01/logic/integrationaccounts.go index 2843a235f253..049051d08292 100644 --- a/services/logic/mgmt/2016-06-01/logic/integrationaccounts.go +++ b/services/logic/mgmt/2016-06-01/logic/integrationaccounts.go @@ -75,6 +75,7 @@ func (client IntegrationAccountsClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client IntegrationAccountsClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client IntegrationAccountsClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +305,7 @@ func (client IntegrationAccountsClient) GetCallbackURL(ctx context.Context, reso result, err = client.GetCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "GetCallbackURL", resp, "Failure responding to request") + return } return @@ -380,6 +384,7 @@ func (client IntegrationAccountsClient) ListByResourceGroup(ctx context.Context, result.ialr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ialr.hasNextLink() && result.ialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -446,6 +451,7 @@ func (client IntegrationAccountsClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -497,6 +503,7 @@ func (client IntegrationAccountsClient) ListBySubscription(ctx context.Context, result.ialr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ialr.hasNextLink() && result.ialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -562,6 +569,7 @@ func (client IntegrationAccountsClient) listBySubscriptionNextResults(ctx contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -620,6 +628,7 @@ func (client IntegrationAccountsClient) ListKeyVaultKeys(ctx context.Context, re result, err = client.ListKeyVaultKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "ListKeyVaultKeys", resp, "Failure responding to request") + return } return @@ -705,6 +714,7 @@ func (client IntegrationAccountsClient) LogTrackingEvents(ctx context.Context, r result, err = client.LogTrackingEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "LogTrackingEvents", resp, "Failure responding to request") + return } return @@ -782,6 +792,7 @@ func (client IntegrationAccountsClient) RegenerateAccessKey(ctx context.Context, result, err = client.RegenerateAccessKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "RegenerateAccessKey", resp, "Failure responding to request") + return } return @@ -860,6 +871,7 @@ func (client IntegrationAccountsClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2016-06-01/logic/maps.go b/services/logic/mgmt/2016-06-01/logic/maps.go index e9f4782e5d44..5599f4013615 100644 --- a/services/logic/mgmt/2016-06-01/logic/maps.go +++ b/services/logic/mgmt/2016-06-01/logic/maps.go @@ -81,6 +81,7 @@ func (client MapsClient) CreateOrUpdate(ctx context.Context, resourceGroupName s result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.MapsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client MapsClient) Delete(ctx context.Context, resourceGroupName string, i result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.MapsClient", "Delete", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client MapsClient) Get(ctx context.Context, resourceGroupName string, inte result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.MapsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +318,7 @@ func (client MapsClient) ListByIntegrationAccounts(ctx context.Context, resource result.iamlr, err = client.ListByIntegrationAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.MapsClient", "ListByIntegrationAccounts", resp, "Failure responding to request") + return } if result.iamlr.hasNextLink() && result.iamlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +389,7 @@ func (client MapsClient) listByIntegrationAccountsNextResults(ctx context.Contex result, err = client.ListByIntegrationAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.MapsClient", "listByIntegrationAccountsNextResults", resp, "Failure responding to next results request") + return } return } @@ -437,6 +442,7 @@ func (client MapsClient) ListContentCallbackURL(ctx context.Context, resourceGro result, err = client.ListContentCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.MapsClient", "ListContentCallbackURL", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2016-06-01/logic/partners.go b/services/logic/mgmt/2016-06-01/logic/partners.go index 827e92c60da9..6722205439a7 100644 --- a/services/logic/mgmt/2016-06-01/logic/partners.go +++ b/services/logic/mgmt/2016-06-01/logic/partners.go @@ -82,6 +82,7 @@ func (client PartnersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.PartnersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client PartnersClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.PartnersClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client PartnersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.PartnersClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client PartnersClient) ListByIntegrationAccounts(ctx context.Context, reso result.iaplr, err = client.ListByIntegrationAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.PartnersClient", "ListByIntegrationAccounts", resp, "Failure responding to request") + return } if result.iaplr.hasNextLink() && result.iaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +390,7 @@ func (client PartnersClient) listByIntegrationAccountsNextResults(ctx context.Co result, err = client.ListByIntegrationAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.PartnersClient", "listByIntegrationAccountsNextResults", resp, "Failure responding to next results request") + return } return } @@ -438,6 +443,7 @@ func (client PartnersClient) ListContentCallbackURL(ctx context.Context, resourc result, err = client.ListContentCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.PartnersClient", "ListContentCallbackURL", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2016-06-01/logic/rosettanetprocessconfigurations.go b/services/logic/mgmt/2016-06-01/logic/rosettanetprocessconfigurations.go index b28158b5e926..4bd4053b05fb 100644 --- a/services/logic/mgmt/2016-06-01/logic/rosettanetprocessconfigurations.go +++ b/services/logic/mgmt/2016-06-01/logic/rosettanetprocessconfigurations.go @@ -119,6 +119,7 @@ func (client RosettaNetProcessConfigurationsClient) CreateOrUpdate(ctx context.C result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.RosettaNetProcessConfigurationsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -198,6 +199,7 @@ func (client RosettaNetProcessConfigurationsClient) Delete(ctx context.Context, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.RosettaNetProcessConfigurationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client RosettaNetProcessConfigurationsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.RosettaNetProcessConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -353,6 +356,7 @@ func (client RosettaNetProcessConfigurationsClient) ListByIntegrationAccounts(ct result.iarnpclr, err = client.ListByIntegrationAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.RosettaNetProcessConfigurationsClient", "ListByIntegrationAccounts", resp, "Failure responding to request") + return } if result.iarnpclr.hasNextLink() && result.iarnpclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -423,6 +427,7 @@ func (client RosettaNetProcessConfigurationsClient) listByIntegrationAccountsNex result, err = client.ListByIntegrationAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.RosettaNetProcessConfigurationsClient", "listByIntegrationAccountsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/logic/mgmt/2016-06-01/logic/schemas.go b/services/logic/mgmt/2016-06-01/logic/schemas.go index b74a1cbe22b6..25f7973c106e 100644 --- a/services/logic/mgmt/2016-06-01/logic/schemas.go +++ b/services/logic/mgmt/2016-06-01/logic/schemas.go @@ -81,6 +81,7 @@ func (client SchemasClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.SchemasClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client SchemasClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.SchemasClient", "Delete", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client SchemasClient) Get(ctx context.Context, resourceGroupName string, i result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.SchemasClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +318,7 @@ func (client SchemasClient) ListByIntegrationAccounts(ctx context.Context, resou result.iaslr, err = client.ListByIntegrationAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.SchemasClient", "ListByIntegrationAccounts", resp, "Failure responding to request") + return } if result.iaslr.hasNextLink() && result.iaslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +389,7 @@ func (client SchemasClient) listByIntegrationAccountsNextResults(ctx context.Con result, err = client.ListByIntegrationAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.SchemasClient", "listByIntegrationAccountsNextResults", resp, "Failure responding to next results request") + return } return } @@ -437,6 +442,7 @@ func (client SchemasClient) ListContentCallbackURL(ctx context.Context, resource result, err = client.ListContentCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.SchemasClient", "ListContentCallbackURL", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2016-06-01/logic/sessions.go b/services/logic/mgmt/2016-06-01/logic/sessions.go index dfc9c74e9439..408491c9f161 100644 --- a/services/logic/mgmt/2016-06-01/logic/sessions.go +++ b/services/logic/mgmt/2016-06-01/logic/sessions.go @@ -81,6 +81,7 @@ func (client SessionsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.SessionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client SessionsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.SessionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client SessionsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.SessionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +318,7 @@ func (client SessionsClient) ListByIntegrationAccounts(ctx context.Context, reso result.iaslr, err = client.ListByIntegrationAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.SessionsClient", "ListByIntegrationAccounts", resp, "Failure responding to request") + return } if result.iaslr.hasNextLink() && result.iaslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +389,7 @@ func (client SessionsClient) listByIntegrationAccountsNextResults(ctx context.Co result, err = client.ListByIntegrationAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.SessionsClient", "listByIntegrationAccountsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/logic/mgmt/2016-06-01/logic/workflowrunactionrepetitions.go b/services/logic/mgmt/2016-06-01/logic/workflowrunactionrepetitions.go index 00367d4b93d6..eba971f04808 100644 --- a/services/logic/mgmt/2016-06-01/logic/workflowrunactionrepetitions.go +++ b/services/logic/mgmt/2016-06-01/logic/workflowrunactionrepetitions.go @@ -76,6 +76,7 @@ func (client WorkflowRunActionRepetitionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRepetitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client WorkflowRunActionRepetitionsClient) List(ctx context.Context, resou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRepetitionsClient", "List", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client WorkflowRunActionRepetitionsClient) ListExpressionTraces(ctx contex result, err = client.ListExpressionTracesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRepetitionsClient", "ListExpressionTraces", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2016-06-01/logic/workflowrunactionrepetitionsrequesthistories.go b/services/logic/mgmt/2016-06-01/logic/workflowrunactionrepetitionsrequesthistories.go index 85ae5fab2a06..836dda587a11 100644 --- a/services/logic/mgmt/2016-06-01/logic/workflowrunactionrepetitionsrequesthistories.go +++ b/services/logic/mgmt/2016-06-01/logic/workflowrunactionrepetitionsrequesthistories.go @@ -78,6 +78,7 @@ func (client WorkflowRunActionRepetitionsRequestHistoriesClient) Get(ctx context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRepetitionsRequestHistoriesClient", "Get", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client WorkflowRunActionRepetitionsRequestHistoriesClient) List(ctx contex result.rhlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRepetitionsRequestHistoriesClient", "List", resp, "Failure responding to request") + return } if result.rhlr.hasNextLink() && result.rhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -228,6 +230,7 @@ func (client WorkflowRunActionRepetitionsRequestHistoriesClient) listNextResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRepetitionsRequestHistoriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/logic/mgmt/2016-06-01/logic/workflowrunactionrequesthistories.go b/services/logic/mgmt/2016-06-01/logic/workflowrunactionrequesthistories.go index cec7ecd62aca..7c3c67a1d748 100644 --- a/services/logic/mgmt/2016-06-01/logic/workflowrunactionrequesthistories.go +++ b/services/logic/mgmt/2016-06-01/logic/workflowrunactionrequesthistories.go @@ -77,6 +77,7 @@ func (client WorkflowRunActionRequestHistoriesClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRequestHistoriesClient", "Get", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client WorkflowRunActionRequestHistoriesClient) List(ctx context.Context, result.rhlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRequestHistoriesClient", "List", resp, "Failure responding to request") + return } if result.rhlr.hasNextLink() && result.rhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -224,6 +226,7 @@ func (client WorkflowRunActionRequestHistoriesClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRequestHistoriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/logic/mgmt/2016-06-01/logic/workflowrunactions.go b/services/logic/mgmt/2016-06-01/logic/workflowrunactions.go index f0deffa8730c..334ec15e3bf5 100644 --- a/services/logic/mgmt/2016-06-01/logic/workflowrunactions.go +++ b/services/logic/mgmt/2016-06-01/logic/workflowrunactions.go @@ -75,6 +75,7 @@ func (client WorkflowRunActionsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionsClient", "Get", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client WorkflowRunActionsClient) List(ctx context.Context, resourceGroupNa result.wralr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionsClient", "List", resp, "Failure responding to request") + return } if result.wralr.hasNextLink() && result.wralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -227,6 +229,7 @@ func (client WorkflowRunActionsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -280,6 +283,7 @@ func (client WorkflowRunActionsClient) ListExpressionTraces(ctx context.Context, result, err = client.ListExpressionTracesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionsClient", "ListExpressionTraces", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2016-06-01/logic/workflowrunactionscopedrepetitions.go b/services/logic/mgmt/2016-06-01/logic/workflowrunactionscopedrepetitions.go index 4e1f2aecc4d1..c5ac26434596 100644 --- a/services/logic/mgmt/2016-06-01/logic/workflowrunactionscopedrepetitions.go +++ b/services/logic/mgmt/2016-06-01/logic/workflowrunactionscopedrepetitions.go @@ -77,6 +77,7 @@ func (client WorkflowRunActionScopedRepetitionsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionScopedRepetitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client WorkflowRunActionScopedRepetitionsClient) List(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionScopedRepetitionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2016-06-01/logic/workflowrunoperations.go b/services/logic/mgmt/2016-06-01/logic/workflowrunoperations.go index 49bc3db1e81d..fc052e0e2db7 100644 --- a/services/logic/mgmt/2016-06-01/logic/workflowrunoperations.go +++ b/services/logic/mgmt/2016-06-01/logic/workflowrunoperations.go @@ -75,6 +75,7 @@ func (client WorkflowRunOperationsClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunOperationsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2016-06-01/logic/workflowruns.go b/services/logic/mgmt/2016-06-01/logic/workflowruns.go index 6f4be09c8a1c..70c10c781573 100644 --- a/services/logic/mgmt/2016-06-01/logic/workflowruns.go +++ b/services/logic/mgmt/2016-06-01/logic/workflowruns.go @@ -73,6 +73,7 @@ func (client WorkflowRunsClient) Cancel(ctx context.Context, resourceGroupName s result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client WorkflowRunsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunsClient", "Delete", resp, "Failure responding to request") + return } return @@ -225,6 +227,7 @@ func (client WorkflowRunsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunsClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +308,7 @@ func (client WorkflowRunsClient) List(ctx context.Context, resourceGroupName str result.wrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunsClient", "List", resp, "Failure responding to request") + return } if result.wrlr.hasNextLink() && result.wrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +379,7 @@ func (client WorkflowRunsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/logic/mgmt/2016-06-01/logic/workflows.go b/services/logic/mgmt/2016-06-01/logic/workflows.go index 1057718ef617..afc79fe2eeb1 100644 --- a/services/logic/mgmt/2016-06-01/logic/workflows.go +++ b/services/logic/mgmt/2016-06-01/logic/workflows.go @@ -73,6 +73,7 @@ func (client WorkflowsClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client WorkflowsClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "Delete", resp, "Failure responding to request") + return } return @@ -224,6 +226,7 @@ func (client WorkflowsClient) Disable(ctx context.Context, resourceGroupName str result, err = client.DisableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "Disable", resp, "Failure responding to request") + return } return @@ -298,6 +301,7 @@ func (client WorkflowsClient) Enable(ctx context.Context, resourceGroupName stri result, err = client.EnableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "Enable", resp, "Failure responding to request") + return } return @@ -373,6 +377,7 @@ func (client WorkflowsClient) GenerateUpgradedDefinition(ctx context.Context, re result, err = client.GenerateUpgradedDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "GenerateUpgradedDefinition", resp, "Failure responding to request") + return } return @@ -450,6 +455,7 @@ func (client WorkflowsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "Get", resp, "Failure responding to request") + return } return @@ -528,6 +534,7 @@ func (client WorkflowsClient) ListByResourceGroup(ctx context.Context, resourceG result.wlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -597,6 +604,7 @@ func (client WorkflowsClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -650,6 +658,7 @@ func (client WorkflowsClient) ListBySubscription(ctx context.Context, top *int32 result.wlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -718,6 +727,7 @@ func (client WorkflowsClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -770,6 +780,7 @@ func (client WorkflowsClient) ListCallbackURL(ctx context.Context, resourceGroup result, err = client.ListCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "ListCallbackURL", resp, "Failure responding to request") + return } return @@ -847,6 +858,7 @@ func (client WorkflowsClient) ListSwagger(ctx context.Context, resourceGroupName result, err = client.ListSwaggerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "ListSwagger", resp, "Failure responding to request") + return } return @@ -923,6 +935,7 @@ func (client WorkflowsClient) Move(ctx context.Context, resourceGroupName string result, err = client.MoveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "Move", resp, "Failure responding to request") + return } return @@ -1000,6 +1013,7 @@ func (client WorkflowsClient) RegenerateAccessKey(ctx context.Context, resourceG result, err = client.RegenerateAccessKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "RegenerateAccessKey", resp, "Failure responding to request") + return } return @@ -1077,6 +1091,7 @@ func (client WorkflowsClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "Update", resp, "Failure responding to request") + return } return @@ -1156,6 +1171,7 @@ func (client WorkflowsClient) Validate(ctx context.Context, resourceGroupName st result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "Validate", resp, "Failure responding to request") + return } return @@ -1234,6 +1250,7 @@ func (client WorkflowsClient) ValidateWorkflow(ctx context.Context, resourceGrou result, err = client.ValidateWorkflowResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "ValidateWorkflow", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2016-06-01/logic/workflowtriggerhistories.go b/services/logic/mgmt/2016-06-01/logic/workflowtriggerhistories.go index b3888ea3f05b..56cf8e1f1046 100644 --- a/services/logic/mgmt/2016-06-01/logic/workflowtriggerhistories.go +++ b/services/logic/mgmt/2016-06-01/logic/workflowtriggerhistories.go @@ -76,6 +76,7 @@ func (client WorkflowTriggerHistoriesClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggerHistoriesClient", "Get", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client WorkflowTriggerHistoriesClient) List(ctx context.Context, resourceG result.wthlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggerHistoriesClient", "List", resp, "Failure responding to request") + return } if result.wthlr.hasNextLink() && result.wthlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -229,6 +231,7 @@ func (client WorkflowTriggerHistoriesClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggerHistoriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -283,6 +286,7 @@ func (client WorkflowTriggerHistoriesClient) Resubmit(ctx context.Context, resou result, err = client.ResubmitResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggerHistoriesClient", "Resubmit", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2016-06-01/logic/workflowtriggers.go b/services/logic/mgmt/2016-06-01/logic/workflowtriggers.go index 051549318958..31361454860b 100644 --- a/services/logic/mgmt/2016-06-01/logic/workflowtriggers.go +++ b/services/logic/mgmt/2016-06-01/logic/workflowtriggers.go @@ -75,6 +75,7 @@ func (client WorkflowTriggersClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client WorkflowTriggersClient) GetSchemaJSON(ctx context.Context, resource result, err = client.GetSchemaJSONResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "GetSchemaJSON", resp, "Failure responding to request") + return } return @@ -231,6 +233,7 @@ func (client WorkflowTriggersClient) List(ctx context.Context, resourceGroupName result.wtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "List", resp, "Failure responding to request") + return } if result.wtlr.hasNextLink() && result.wtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -301,6 +304,7 @@ func (client WorkflowTriggersClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -353,6 +357,7 @@ func (client WorkflowTriggersClient) ListCallbackURL(ctx context.Context, resour result, err = client.ListCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "ListCallbackURL", resp, "Failure responding to request") + return } return @@ -430,6 +435,7 @@ func (client WorkflowTriggersClient) Reset(ctx context.Context, resourceGroupNam result, err = client.ResetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "Reset", resp, "Failure responding to request") + return } return @@ -506,6 +512,7 @@ func (client WorkflowTriggersClient) Run(ctx context.Context, resourceGroupName result, err = client.RunResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "Run", resp, "Failure responding to request") + return } return @@ -590,6 +597,7 @@ func (client WorkflowTriggersClient) SetState(ctx context.Context, resourceGroup result, err = client.SetStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "SetState", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2016-06-01/logic/workflowversions.go b/services/logic/mgmt/2016-06-01/logic/workflowversions.go index 8afa83f5cd95..cf86c8628151 100644 --- a/services/logic/mgmt/2016-06-01/logic/workflowversions.go +++ b/services/logic/mgmt/2016-06-01/logic/workflowversions.go @@ -74,6 +74,7 @@ func (client WorkflowVersionsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowVersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client WorkflowVersionsClient) List(ctx context.Context, resourceGroupName result.wvlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowVersionsClient", "List", resp, "Failure responding to request") + return } if result.wvlr.hasNextLink() && result.wvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -219,6 +221,7 @@ func (client WorkflowVersionsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowVersionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -273,6 +276,7 @@ func (client WorkflowVersionsClient) ListCallbackURL(ctx context.Context, resour result, err = client.ListCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowVersionsClient", "ListCallbackURL", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2019-05-01/logic/integrationaccountagreements.go b/services/logic/mgmt/2019-05-01/logic/integrationaccountagreements.go index f91da472a058..98216fc51ac9 100644 --- a/services/logic/mgmt/2019-05-01/logic/integrationaccountagreements.go +++ b/services/logic/mgmt/2019-05-01/logic/integrationaccountagreements.go @@ -511,6 +511,7 @@ func (client IntegrationAccountAgreementsClient) CreateOrUpdate(ctx context.Cont result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAgreementsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -590,6 +591,7 @@ func (client IntegrationAccountAgreementsClient) Delete(ctx context.Context, res result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAgreementsClient", "Delete", resp, "Failure responding to request") + return } return @@ -666,6 +668,7 @@ func (client IntegrationAccountAgreementsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAgreementsClient", "Get", resp, "Failure responding to request") + return } return @@ -745,6 +748,7 @@ func (client IntegrationAccountAgreementsClient) List(ctx context.Context, resou result.iaalr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAgreementsClient", "List", resp, "Failure responding to request") + return } if result.iaalr.hasNextLink() && result.iaalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -815,6 +819,7 @@ func (client IntegrationAccountAgreementsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAgreementsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -867,6 +872,7 @@ func (client IntegrationAccountAgreementsClient) ListContentCallbackURL(ctx cont result, err = client.ListContentCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAgreementsClient", "ListContentCallbackURL", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2019-05-01/logic/integrationaccountassemblies.go b/services/logic/mgmt/2019-05-01/logic/integrationaccountassemblies.go index 985b6a30be98..3ac4ef3a04a0 100644 --- a/services/logic/mgmt/2019-05-01/logic/integrationaccountassemblies.go +++ b/services/logic/mgmt/2019-05-01/logic/integrationaccountassemblies.go @@ -83,6 +83,7 @@ func (client IntegrationAccountAssembliesClient) CreateOrUpdate(ctx context.Cont result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAssembliesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client IntegrationAccountAssembliesClient) Delete(ctx context.Context, res result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAssembliesClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client IntegrationAccountAssembliesClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAssembliesClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +317,7 @@ func (client IntegrationAccountAssembliesClient) List(ctx context.Context, resou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAssembliesClient", "List", resp, "Failure responding to request") + return } return @@ -390,6 +394,7 @@ func (client IntegrationAccountAssembliesClient) ListContentCallbackURL(ctx cont result, err = client.ListContentCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAssembliesClient", "ListContentCallbackURL", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2019-05-01/logic/integrationaccountbatchconfigurations.go b/services/logic/mgmt/2019-05-01/logic/integrationaccountbatchconfigurations.go index d63ab1afe0c9..1b8ae62b04db 100644 --- a/services/logic/mgmt/2019-05-01/logic/integrationaccountbatchconfigurations.go +++ b/services/logic/mgmt/2019-05-01/logic/integrationaccountbatchconfigurations.go @@ -86,6 +86,7 @@ func (client IntegrationAccountBatchConfigurationsClient) CreateOrUpdate(ctx con result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountBatchConfigurationsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client IntegrationAccountBatchConfigurationsClient) Delete(ctx context.Con result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountBatchConfigurationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -241,6 +243,7 @@ func (client IntegrationAccountBatchConfigurationsClient) Get(ctx context.Contex result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountBatchConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client IntegrationAccountBatchConfigurationsClient) List(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountBatchConfigurationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2019-05-01/logic/integrationaccountcertificates.go b/services/logic/mgmt/2019-05-01/logic/integrationaccountcertificates.go index 3386a7e372d8..ec2ec4c62a2b 100644 --- a/services/logic/mgmt/2019-05-01/logic/integrationaccountcertificates.go +++ b/services/logic/mgmt/2019-05-01/logic/integrationaccountcertificates.go @@ -87,6 +87,7 @@ func (client IntegrationAccountCertificatesClient) CreateOrUpdate(ctx context.Co result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountCertificatesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client IntegrationAccountCertificatesClient) Delete(ctx context.Context, r result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountCertificatesClient", "Delete", resp, "Failure responding to request") + return } return @@ -242,6 +244,7 @@ func (client IntegrationAccountCertificatesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountCertificatesClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +323,7 @@ func (client IntegrationAccountCertificatesClient) List(ctx context.Context, res result.iaclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountCertificatesClient", "List", resp, "Failure responding to request") + return } if result.iaclr.hasNextLink() && result.iaclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +391,7 @@ func (client IntegrationAccountCertificatesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountCertificatesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/logic/mgmt/2019-05-01/logic/integrationaccountmaps.go b/services/logic/mgmt/2019-05-01/logic/integrationaccountmaps.go index 05026713b5b6..a5e1972bc300 100644 --- a/services/logic/mgmt/2019-05-01/logic/integrationaccountmaps.go +++ b/services/logic/mgmt/2019-05-01/logic/integrationaccountmaps.go @@ -82,6 +82,7 @@ func (client IntegrationAccountMapsClient) CreateOrUpdate(ctx context.Context, r result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountMapsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client IntegrationAccountMapsClient) Delete(ctx context.Context, resourceG result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountMapsClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client IntegrationAccountMapsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountMapsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client IntegrationAccountMapsClient) List(ctx context.Context, resourceGro result.iamlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountMapsClient", "List", resp, "Failure responding to request") + return } if result.iamlr.hasNextLink() && result.iamlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +390,7 @@ func (client IntegrationAccountMapsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountMapsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -438,6 +443,7 @@ func (client IntegrationAccountMapsClient) ListContentCallbackURL(ctx context.Co result, err = client.ListContentCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountMapsClient", "ListContentCallbackURL", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2019-05-01/logic/integrationaccountpartners.go b/services/logic/mgmt/2019-05-01/logic/integrationaccountpartners.go index 03cf09cca939..361ddc93716e 100644 --- a/services/logic/mgmt/2019-05-01/logic/integrationaccountpartners.go +++ b/services/logic/mgmt/2019-05-01/logic/integrationaccountpartners.go @@ -83,6 +83,7 @@ func (client IntegrationAccountPartnersClient) CreateOrUpdate(ctx context.Contex result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountPartnersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client IntegrationAccountPartnersClient) Delete(ctx context.Context, resou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountPartnersClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client IntegrationAccountPartnersClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountPartnersClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client IntegrationAccountPartnersClient) List(ctx context.Context, resourc result.iaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountPartnersClient", "List", resp, "Failure responding to request") + return } if result.iaplr.hasNextLink() && result.iaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +391,7 @@ func (client IntegrationAccountPartnersClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountPartnersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -439,6 +444,7 @@ func (client IntegrationAccountPartnersClient) ListContentCallbackURL(ctx contex result, err = client.ListContentCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountPartnersClient", "ListContentCallbackURL", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2019-05-01/logic/integrationaccounts.go b/services/logic/mgmt/2019-05-01/logic/integrationaccounts.go index 0b0351c2f940..56cf8b97993c 100644 --- a/services/logic/mgmt/2019-05-01/logic/integrationaccounts.go +++ b/services/logic/mgmt/2019-05-01/logic/integrationaccounts.go @@ -75,6 +75,7 @@ func (client IntegrationAccountsClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client IntegrationAccountsClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client IntegrationAccountsClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +305,7 @@ func (client IntegrationAccountsClient) ListByResourceGroup(ctx context.Context, result.ialr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ialr.hasNextLink() && result.ialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +372,7 @@ func (client IntegrationAccountsClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -419,6 +424,7 @@ func (client IntegrationAccountsClient) ListBySubscription(ctx context.Context, result.ialr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ialr.hasNextLink() && result.ialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -484,6 +490,7 @@ func (client IntegrationAccountsClient) listBySubscriptionNextResults(ctx contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -536,6 +543,7 @@ func (client IntegrationAccountsClient) ListCallbackURL(ctx context.Context, res result, err = client.ListCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "ListCallbackURL", resp, "Failure responding to request") + return } return @@ -620,6 +628,7 @@ func (client IntegrationAccountsClient) ListKeyVaultKeys(ctx context.Context, re result, err = client.ListKeyVaultKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "ListKeyVaultKeys", resp, "Failure responding to request") + return } return @@ -705,6 +714,7 @@ func (client IntegrationAccountsClient) LogTrackingEvents(ctx context.Context, r result, err = client.LogTrackingEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "LogTrackingEvents", resp, "Failure responding to request") + return } return @@ -782,6 +792,7 @@ func (client IntegrationAccountsClient) RegenerateAccessKey(ctx context.Context, result, err = client.RegenerateAccessKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "RegenerateAccessKey", resp, "Failure responding to request") + return } return @@ -860,6 +871,7 @@ func (client IntegrationAccountsClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2019-05-01/logic/integrationaccountschemas.go b/services/logic/mgmt/2019-05-01/logic/integrationaccountschemas.go index 95c45160e393..f22115338de0 100644 --- a/services/logic/mgmt/2019-05-01/logic/integrationaccountschemas.go +++ b/services/logic/mgmt/2019-05-01/logic/integrationaccountschemas.go @@ -82,6 +82,7 @@ func (client IntegrationAccountSchemasClient) CreateOrUpdate(ctx context.Context result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSchemasClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client IntegrationAccountSchemasClient) Delete(ctx context.Context, resour result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSchemasClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client IntegrationAccountSchemasClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSchemasClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client IntegrationAccountSchemasClient) List(ctx context.Context, resource result.iaslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSchemasClient", "List", resp, "Failure responding to request") + return } if result.iaslr.hasNextLink() && result.iaslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +390,7 @@ func (client IntegrationAccountSchemasClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSchemasClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -438,6 +443,7 @@ func (client IntegrationAccountSchemasClient) ListContentCallbackURL(ctx context result, err = client.ListContentCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSchemasClient", "ListContentCallbackURL", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2019-05-01/logic/integrationaccountsessions.go b/services/logic/mgmt/2019-05-01/logic/integrationaccountsessions.go index e453d85ff20b..614e3c8b3e33 100644 --- a/services/logic/mgmt/2019-05-01/logic/integrationaccountsessions.go +++ b/services/logic/mgmt/2019-05-01/logic/integrationaccountsessions.go @@ -82,6 +82,7 @@ func (client IntegrationAccountSessionsClient) CreateOrUpdate(ctx context.Contex result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSessionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client IntegrationAccountSessionsClient) Delete(ctx context.Context, resou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSessionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client IntegrationAccountSessionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSessionsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client IntegrationAccountSessionsClient) List(ctx context.Context, resourc result.iaslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSessionsClient", "List", resp, "Failure responding to request") + return } if result.iaslr.hasNextLink() && result.iaslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +390,7 @@ func (client IntegrationAccountSessionsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSessionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/logic/mgmt/2019-05-01/logic/integrationserviceenvironmentmanagedapioperations.go b/services/logic/mgmt/2019-05-01/logic/integrationserviceenvironmentmanagedapioperations.go index 95f6df41d532..b360a9c19adb 100644 --- a/services/logic/mgmt/2019-05-01/logic/integrationserviceenvironmentmanagedapioperations.go +++ b/services/logic/mgmt/2019-05-01/logic/integrationserviceenvironmentmanagedapioperations.go @@ -76,6 +76,7 @@ func (client IntegrationServiceEnvironmentManagedAPIOperationsClient) List(ctx c result.aolr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationServiceEnvironmentManagedAPIOperationsClient", "List", resp, "Failure responding to request") + return } if result.aolr.hasNextLink() && result.aolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -141,6 +142,7 @@ func (client IntegrationServiceEnvironmentManagedAPIOperationsClient) listNextRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationServiceEnvironmentManagedAPIOperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/logic/mgmt/2019-05-01/logic/integrationserviceenvironmentmanagedapis.go b/services/logic/mgmt/2019-05-01/logic/integrationserviceenvironmentmanagedapis.go index e13e6aa25406..40143dcc9755 100644 --- a/services/logic/mgmt/2019-05-01/logic/integrationserviceenvironmentmanagedapis.go +++ b/services/logic/mgmt/2019-05-01/logic/integrationserviceenvironmentmanagedapis.go @@ -151,6 +151,7 @@ func (client IntegrationServiceEnvironmentManagedApisClient) Get(ctx context.Con result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationServiceEnvironmentManagedApisClient", "Get", resp, "Failure responding to request") + return } return @@ -228,6 +229,7 @@ func (client IntegrationServiceEnvironmentManagedApisClient) List(ctx context.Co result.malr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationServiceEnvironmentManagedApisClient", "List", resp, "Failure responding to request") + return } if result.malr.hasNextLink() && result.malr.IsEmpty() { err = result.NextWithContext(ctx) @@ -292,6 +294,7 @@ func (client IntegrationServiceEnvironmentManagedApisClient) listNextResults(ctx result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationServiceEnvironmentManagedApisClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/logic/mgmt/2019-05-01/logic/integrationserviceenvironmentnetworkhealth.go b/services/logic/mgmt/2019-05-01/logic/integrationserviceenvironmentnetworkhealth.go index 2d8facc8e2c1..3cecd7721cc0 100644 --- a/services/logic/mgmt/2019-05-01/logic/integrationserviceenvironmentnetworkhealth.go +++ b/services/logic/mgmt/2019-05-01/logic/integrationserviceenvironmentnetworkhealth.go @@ -74,6 +74,7 @@ func (client IntegrationServiceEnvironmentNetworkHealthClient) Get(ctx context.C result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationServiceEnvironmentNetworkHealthClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2019-05-01/logic/integrationserviceenvironments.go b/services/logic/mgmt/2019-05-01/logic/integrationserviceenvironments.go index 425ed0a1da19..fbec4ee28f9d 100644 --- a/services/logic/mgmt/2019-05-01/logic/integrationserviceenvironments.go +++ b/services/logic/mgmt/2019-05-01/logic/integrationserviceenvironments.go @@ -151,6 +151,7 @@ func (client IntegrationServiceEnvironmentsClient) Delete(ctx context.Context, r result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationServiceEnvironmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client IntegrationServiceEnvironmentsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationServiceEnvironmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +303,7 @@ func (client IntegrationServiceEnvironmentsClient) ListByResourceGroup(ctx conte result.iselr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationServiceEnvironmentsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.iselr.hasNextLink() && result.iselr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +370,7 @@ func (client IntegrationServiceEnvironmentsClient) listByResourceGroupNextResult result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationServiceEnvironmentsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -418,6 +422,7 @@ func (client IntegrationServiceEnvironmentsClient) ListBySubscription(ctx contex result.iselr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationServiceEnvironmentsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.iselr.hasNextLink() && result.iselr.IsEmpty() { err = result.NextWithContext(ctx) @@ -483,6 +488,7 @@ func (client IntegrationServiceEnvironmentsClient) listBySubscriptionNextResults result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationServiceEnvironmentsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -534,6 +540,7 @@ func (client IntegrationServiceEnvironmentsClient) Restart(ctx context.Context, result, err = client.RestartResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationServiceEnvironmentsClient", "Restart", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2019-05-01/logic/integrationserviceenvironmentskus.go b/services/logic/mgmt/2019-05-01/logic/integrationserviceenvironmentskus.go index f7ef76f1a554..80a65d344c26 100644 --- a/services/logic/mgmt/2019-05-01/logic/integrationserviceenvironmentskus.go +++ b/services/logic/mgmt/2019-05-01/logic/integrationserviceenvironmentskus.go @@ -75,6 +75,7 @@ func (client IntegrationServiceEnvironmentSkusClient) List(ctx context.Context, result.isesl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationServiceEnvironmentSkusClient", "List", resp, "Failure responding to request") + return } if result.isesl.hasNextLink() && result.isesl.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client IntegrationServiceEnvironmentSkusClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationServiceEnvironmentSkusClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/logic/mgmt/2019-05-01/logic/operations.go b/services/logic/mgmt/2019-05-01/logic/operations.go index c4e99d7dfe21..443d5c475218 100644 --- a/services/logic/mgmt/2019-05-01/logic/operations.go +++ b/services/logic/mgmt/2019-05-01/logic/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/logic/mgmt/2019-05-01/logic/workflowrunactionrepetitions.go b/services/logic/mgmt/2019-05-01/logic/workflowrunactionrepetitions.go index b04b27f05de3..22679098d6a9 100644 --- a/services/logic/mgmt/2019-05-01/logic/workflowrunactionrepetitions.go +++ b/services/logic/mgmt/2019-05-01/logic/workflowrunactionrepetitions.go @@ -76,6 +76,7 @@ func (client WorkflowRunActionRepetitionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRepetitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client WorkflowRunActionRepetitionsClient) List(ctx context.Context, resou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRepetitionsClient", "List", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client WorkflowRunActionRepetitionsClient) ListExpressionTraces(ctx contex result, err = client.ListExpressionTracesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRepetitionsClient", "ListExpressionTraces", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2019-05-01/logic/workflowrunactionrepetitionsrequesthistories.go b/services/logic/mgmt/2019-05-01/logic/workflowrunactionrepetitionsrequesthistories.go index 58d6e68055c4..8aeb5107849d 100644 --- a/services/logic/mgmt/2019-05-01/logic/workflowrunactionrepetitionsrequesthistories.go +++ b/services/logic/mgmt/2019-05-01/logic/workflowrunactionrepetitionsrequesthistories.go @@ -78,6 +78,7 @@ func (client WorkflowRunActionRepetitionsRequestHistoriesClient) Get(ctx context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRepetitionsRequestHistoriesClient", "Get", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client WorkflowRunActionRepetitionsRequestHistoriesClient) List(ctx contex result.rhlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRepetitionsRequestHistoriesClient", "List", resp, "Failure responding to request") + return } if result.rhlr.hasNextLink() && result.rhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -228,6 +230,7 @@ func (client WorkflowRunActionRepetitionsRequestHistoriesClient) listNextResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRepetitionsRequestHistoriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/logic/mgmt/2019-05-01/logic/workflowrunactionrequesthistories.go b/services/logic/mgmt/2019-05-01/logic/workflowrunactionrequesthistories.go index 164e3a2bd9c2..2c5c261d25f9 100644 --- a/services/logic/mgmt/2019-05-01/logic/workflowrunactionrequesthistories.go +++ b/services/logic/mgmt/2019-05-01/logic/workflowrunactionrequesthistories.go @@ -77,6 +77,7 @@ func (client WorkflowRunActionRequestHistoriesClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRequestHistoriesClient", "Get", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client WorkflowRunActionRequestHistoriesClient) List(ctx context.Context, result.rhlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRequestHistoriesClient", "List", resp, "Failure responding to request") + return } if result.rhlr.hasNextLink() && result.rhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -224,6 +226,7 @@ func (client WorkflowRunActionRequestHistoriesClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRequestHistoriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/logic/mgmt/2019-05-01/logic/workflowrunactions.go b/services/logic/mgmt/2019-05-01/logic/workflowrunactions.go index a789f2422241..46f483d1a20c 100644 --- a/services/logic/mgmt/2019-05-01/logic/workflowrunactions.go +++ b/services/logic/mgmt/2019-05-01/logic/workflowrunactions.go @@ -75,6 +75,7 @@ func (client WorkflowRunActionsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionsClient", "Get", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client WorkflowRunActionsClient) List(ctx context.Context, resourceGroupNa result.wralr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionsClient", "List", resp, "Failure responding to request") + return } if result.wralr.hasNextLink() && result.wralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -227,6 +229,7 @@ func (client WorkflowRunActionsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -280,6 +283,7 @@ func (client WorkflowRunActionsClient) ListExpressionTraces(ctx context.Context, result, err = client.ListExpressionTracesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionsClient", "ListExpressionTraces", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2019-05-01/logic/workflowrunactionscoperepetitions.go b/services/logic/mgmt/2019-05-01/logic/workflowrunactionscoperepetitions.go index 17aa7af65ad3..74ebd8ceb35c 100644 --- a/services/logic/mgmt/2019-05-01/logic/workflowrunactionscoperepetitions.go +++ b/services/logic/mgmt/2019-05-01/logic/workflowrunactionscoperepetitions.go @@ -77,6 +77,7 @@ func (client WorkflowRunActionScopeRepetitionsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionScopeRepetitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client WorkflowRunActionScopeRepetitionsClient) List(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionScopeRepetitionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2019-05-01/logic/workflowrunoperations.go b/services/logic/mgmt/2019-05-01/logic/workflowrunoperations.go index 19a132ea2eb8..839cc773977c 100644 --- a/services/logic/mgmt/2019-05-01/logic/workflowrunoperations.go +++ b/services/logic/mgmt/2019-05-01/logic/workflowrunoperations.go @@ -75,6 +75,7 @@ func (client WorkflowRunOperationsClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunOperationsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2019-05-01/logic/workflowruns.go b/services/logic/mgmt/2019-05-01/logic/workflowruns.go index 3dbc1b0eadb8..238664fa6dc8 100644 --- a/services/logic/mgmt/2019-05-01/logic/workflowruns.go +++ b/services/logic/mgmt/2019-05-01/logic/workflowruns.go @@ -73,6 +73,7 @@ func (client WorkflowRunsClient) Cancel(ctx context.Context, resourceGroupName s result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client WorkflowRunsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunsClient", "Get", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client WorkflowRunsClient) List(ctx context.Context, resourceGroupName str result.wrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunsClient", "List", resp, "Failure responding to request") + return } if result.wrlr.hasNextLink() && result.wrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -299,6 +302,7 @@ func (client WorkflowRunsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/logic/mgmt/2019-05-01/logic/workflows.go b/services/logic/mgmt/2019-05-01/logic/workflows.go index 02a65ff20b1b..9d78d4a88f95 100644 --- a/services/logic/mgmt/2019-05-01/logic/workflows.go +++ b/services/logic/mgmt/2019-05-01/logic/workflows.go @@ -73,6 +73,7 @@ func (client WorkflowsClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client WorkflowsClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "Delete", resp, "Failure responding to request") + return } return @@ -224,6 +226,7 @@ func (client WorkflowsClient) Disable(ctx context.Context, resourceGroupName str result, err = client.DisableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "Disable", resp, "Failure responding to request") + return } return @@ -298,6 +301,7 @@ func (client WorkflowsClient) Enable(ctx context.Context, resourceGroupName stri result, err = client.EnableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "Enable", resp, "Failure responding to request") + return } return @@ -373,6 +377,7 @@ func (client WorkflowsClient) GenerateUpgradedDefinition(ctx context.Context, re result, err = client.GenerateUpgradedDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "GenerateUpgradedDefinition", resp, "Failure responding to request") + return } return @@ -450,6 +455,7 @@ func (client WorkflowsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "Get", resp, "Failure responding to request") + return } return @@ -528,6 +534,7 @@ func (client WorkflowsClient) ListByResourceGroup(ctx context.Context, resourceG result.wlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -597,6 +604,7 @@ func (client WorkflowsClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -650,6 +658,7 @@ func (client WorkflowsClient) ListBySubscription(ctx context.Context, top *int32 result.wlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -718,6 +727,7 @@ func (client WorkflowsClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -770,6 +780,7 @@ func (client WorkflowsClient) ListCallbackURL(ctx context.Context, resourceGroup result, err = client.ListCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "ListCallbackURL", resp, "Failure responding to request") + return } return @@ -847,6 +858,7 @@ func (client WorkflowsClient) ListSwagger(ctx context.Context, resourceGroupName result, err = client.ListSwaggerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "ListSwagger", resp, "Failure responding to request") + return } return @@ -1000,6 +1012,7 @@ func (client WorkflowsClient) RegenerateAccessKey(ctx context.Context, resourceG result, err = client.RegenerateAccessKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "RegenerateAccessKey", resp, "Failure responding to request") + return } return @@ -1076,6 +1089,7 @@ func (client WorkflowsClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "Update", resp, "Failure responding to request") + return } return @@ -1153,6 +1167,7 @@ func (client WorkflowsClient) ValidateByLocation(ctx context.Context, resourceGr result, err = client.ValidateByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "ValidateByLocation", resp, "Failure responding to request") + return } return @@ -1231,6 +1246,7 @@ func (client WorkflowsClient) ValidateByResourceGroup(ctx context.Context, resou result, err = client.ValidateByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "ValidateByResourceGroup", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2019-05-01/logic/workflowtriggerhistories.go b/services/logic/mgmt/2019-05-01/logic/workflowtriggerhistories.go index 0e4b2e61c28a..f3070467bc9e 100644 --- a/services/logic/mgmt/2019-05-01/logic/workflowtriggerhistories.go +++ b/services/logic/mgmt/2019-05-01/logic/workflowtriggerhistories.go @@ -76,6 +76,7 @@ func (client WorkflowTriggerHistoriesClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggerHistoriesClient", "Get", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client WorkflowTriggerHistoriesClient) List(ctx context.Context, resourceG result.wthlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggerHistoriesClient", "List", resp, "Failure responding to request") + return } if result.wthlr.hasNextLink() && result.wthlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -229,6 +231,7 @@ func (client WorkflowTriggerHistoriesClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggerHistoriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -283,6 +286,7 @@ func (client WorkflowTriggerHistoriesClient) Resubmit(ctx context.Context, resou result, err = client.ResubmitResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggerHistoriesClient", "Resubmit", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2019-05-01/logic/workflowtriggers.go b/services/logic/mgmt/2019-05-01/logic/workflowtriggers.go index 908ea6f8e147..8f1a73abd4c2 100644 --- a/services/logic/mgmt/2019-05-01/logic/workflowtriggers.go +++ b/services/logic/mgmt/2019-05-01/logic/workflowtriggers.go @@ -75,6 +75,7 @@ func (client WorkflowTriggersClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client WorkflowTriggersClient) GetSchemaJSON(ctx context.Context, resource result, err = client.GetSchemaJSONResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "GetSchemaJSON", resp, "Failure responding to request") + return } return @@ -231,6 +233,7 @@ func (client WorkflowTriggersClient) List(ctx context.Context, resourceGroupName result.wtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "List", resp, "Failure responding to request") + return } if result.wtlr.hasNextLink() && result.wtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -301,6 +304,7 @@ func (client WorkflowTriggersClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -353,6 +357,7 @@ func (client WorkflowTriggersClient) ListCallbackURL(ctx context.Context, resour result, err = client.ListCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "ListCallbackURL", resp, "Failure responding to request") + return } return @@ -430,6 +435,7 @@ func (client WorkflowTriggersClient) Reset(ctx context.Context, resourceGroupNam result, err = client.ResetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "Reset", resp, "Failure responding to request") + return } return @@ -506,6 +512,7 @@ func (client WorkflowTriggersClient) Run(ctx context.Context, resourceGroupName result, err = client.RunResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "Run", resp, "Failure responding to request") + return } return @@ -589,6 +596,7 @@ func (client WorkflowTriggersClient) SetState(ctx context.Context, resourceGroup result, err = client.SetStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "SetState", resp, "Failure responding to request") + return } return diff --git a/services/logic/mgmt/2019-05-01/logic/workflowversions.go b/services/logic/mgmt/2019-05-01/logic/workflowversions.go index 93d0e56e476d..9635de62dfdc 100644 --- a/services/logic/mgmt/2019-05-01/logic/workflowversions.go +++ b/services/logic/mgmt/2019-05-01/logic/workflowversions.go @@ -74,6 +74,7 @@ func (client WorkflowVersionsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowVersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client WorkflowVersionsClient) List(ctx context.Context, resourceGroupName result.wvlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowVersionsClient", "List", resp, "Failure responding to request") + return } if result.wvlr.hasNextLink() && result.wvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -219,6 +221,7 @@ func (client WorkflowVersionsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowVersionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/logic/mgmt/2019-05-01/logic/workflowversiontriggers.go b/services/logic/mgmt/2019-05-01/logic/workflowversiontriggers.go index a632a27efc05..95dde5b0518e 100644 --- a/services/logic/mgmt/2019-05-01/logic/workflowversiontriggers.go +++ b/services/logic/mgmt/2019-05-01/logic/workflowversiontriggers.go @@ -76,6 +76,7 @@ func (client WorkflowVersionTriggersClient) ListCallbackURL(ctx context.Context, result, err = client.ListCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowVersionTriggersClient", "ListCallbackURL", resp, "Failure responding to request") + return } return diff --git a/services/machinelearning/mgmt/2016-04-01/workspaces/operations.go b/services/machinelearning/mgmt/2016-04-01/workspaces/operations.go index 08d7da2508ec..17458ba550bd 100644 --- a/services/machinelearning/mgmt/2016-04-01/workspaces/operations.go +++ b/services/machinelearning/mgmt/2016-04-01/workspaces/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workspaces.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/machinelearning/mgmt/2016-04-01/workspaces/workspaces.go b/services/machinelearning/mgmt/2016-04-01/workspaces/workspaces.go index dd3002f089df..c876ccf5b512 100644 --- a/services/machinelearning/mgmt/2016-04-01/workspaces/workspaces.go +++ b/services/machinelearning/mgmt/2016-04-01/workspaces/workspaces.go @@ -84,6 +84,7 @@ func (client Client) CreateOrUpdate(ctx context.Context, resourceGroupName strin result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workspaces.Client", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client Client) Delete(ctx context.Context, resourceGroupName string, works result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workspaces.Client", "Delete", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, workspac result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workspaces.Client", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +311,7 @@ func (client Client) List(ctx context.Context) (result ListResultPage, err error result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workspaces.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +374,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workspaces.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -421,6 +426,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workspaces.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -484,6 +490,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workspaces.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -535,6 +542,7 @@ func (client Client) ListWorkspaceKeys(ctx context.Context, workspaceName string result, err = client.ListWorkspaceKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workspaces.Client", "ListWorkspaceKeys", resp, "Failure responding to request") + return } return @@ -610,6 +618,7 @@ func (client Client) ResyncStorageKeys(ctx context.Context, workspaceName string result, err = client.ResyncStorageKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workspaces.Client", "ResyncStorageKeys", resp, "Failure responding to request") + return } return @@ -685,6 +694,7 @@ func (client Client) Update(ctx context.Context, resourceGroupName string, works result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workspaces.Client", "Update", resp, "Failure responding to request") + return } return diff --git a/services/machinelearning/mgmt/2017-01-01/webservices/operations.go b/services/machinelearning/mgmt/2017-01-01/webservices/operations.go index dca8c72817cb..f6ce1d4e2688 100644 --- a/services/machinelearning/mgmt/2017-01-01/webservices/operations.go +++ b/services/machinelearning/mgmt/2017-01-01/webservices/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationEntity result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "webservices.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/machinelearning/mgmt/2017-01-01/webservices/webservices.go b/services/machinelearning/mgmt/2017-01-01/webservices/webservices.go index 53ca3b1e03b8..974f48a43def 100644 --- a/services/machinelearning/mgmt/2017-01-01/webservices/webservices.go +++ b/services/machinelearning/mgmt/2017-01-01/webservices/webservices.go @@ -265,6 +265,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, webServi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "webservices.Client", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +345,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.pwsl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "webservices.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.pwsl.hasNextLink() && result.pwsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -410,6 +412,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "webservices.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -461,6 +464,7 @@ func (client Client) ListBySubscriptionID(ctx context.Context, skiptoken string) result.pwsl, err = client.ListBySubscriptionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "webservices.Client", "ListBySubscriptionID", resp, "Failure responding to request") + return } if result.pwsl.hasNextLink() && result.pwsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -526,6 +530,7 @@ func (client Client) listBySubscriptionIDNextResults(ctx context.Context, lastRe result, err = client.ListBySubscriptionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "webservices.Client", "listBySubscriptionIDNextResults", resp, "Failure responding to next results request") + return } return } @@ -577,6 +582,7 @@ func (client Client) ListKeys(ctx context.Context, resourceGroupName string, web result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "webservices.Client", "ListKeys", resp, "Failure responding to request") + return } return diff --git a/services/machinelearning/mgmt/2019-10-01/workspaces/operations.go b/services/machinelearning/mgmt/2019-10-01/workspaces/operations.go index 586f34a24c41..62a41a88493e 100644 --- a/services/machinelearning/mgmt/2019-10-01/workspaces/operations.go +++ b/services/machinelearning/mgmt/2019-10-01/workspaces/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workspaces.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/machinelearning/mgmt/2019-10-01/workspaces/workspaces.go b/services/machinelearning/mgmt/2019-10-01/workspaces/workspaces.go index 4c895a81690d..a9ffaa080bdb 100644 --- a/services/machinelearning/mgmt/2019-10-01/workspaces/workspaces.go +++ b/services/machinelearning/mgmt/2019-10-01/workspaces/workspaces.go @@ -84,6 +84,7 @@ func (client Client) CreateOrUpdate(ctx context.Context, resourceGroupName strin result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workspaces.Client", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client Client) Delete(ctx context.Context, resourceGroupName string, works result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workspaces.Client", "Delete", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, workspac result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workspaces.Client", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +311,7 @@ func (client Client) List(ctx context.Context) (result ListResultPage, err error result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workspaces.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +374,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workspaces.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -421,6 +426,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workspaces.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -484,6 +490,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workspaces.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -535,6 +542,7 @@ func (client Client) ListWorkspaceKeys(ctx context.Context, workspaceName string result, err = client.ListWorkspaceKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workspaces.Client", "ListWorkspaceKeys", resp, "Failure responding to request") + return } return @@ -610,6 +618,7 @@ func (client Client) ResyncStorageKeys(ctx context.Context, workspaceName string result, err = client.ResyncStorageKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workspaces.Client", "ResyncStorageKeys", resp, "Failure responding to request") + return } return @@ -685,6 +694,7 @@ func (client Client) Update(ctx context.Context, resourceGroupName string, works result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workspaces.Client", "Update", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/machinelearningcompute.go b/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/machinelearningcompute.go index 43b02f505c11..b7cde5b0adab 100644 --- a/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/machinelearningcompute.go +++ b/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/machinelearningcompute.go @@ -236,6 +236,7 @@ func (client MachineLearningComputeClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client MachineLearningComputeClient) ListByWorkspace(ctx context.Context, result.pcrl, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.pcrl.hasNextLink() && result.pcrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client MachineLearningComputeClient) listByWorkspaceNextResults(ctx contex result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -433,6 +436,7 @@ func (client MachineLearningComputeClient) ListKeys(ctx context.Context, resourc result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -511,6 +515,7 @@ func (client MachineLearningComputeClient) ListNodes(ctx context.Context, resour result.acni, err = client.ListNodesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "ListNodes", resp, "Failure responding to request") + return } if result.acni.hasNextLink() && result.acni.IsEmpty() { err = result.NextWithContext(ctx) @@ -576,6 +581,7 @@ func (client MachineLearningComputeClient) listNodesNextResults(ctx context.Cont result, err = client.ListNodesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "listNodesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/operations.go b/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/operations.go index 8d647a6e5813..8a3e0df2e99a 100644 --- a/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/operations.go +++ b/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/usages.go b/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/usages.go index e4430548bade..fb15f73017f9 100644 --- a/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/usages.go +++ b/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Li result.lur, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.UsagesClient", "List", resp, "Failure responding to request") + return } if result.lur.hasNextLink() && result.lur.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults List result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/virtualmachinesizes.go b/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/virtualmachinesizes.go index 9a7fbffb2187..86bafd75b3bb 100644 --- a/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/virtualmachinesizes.go +++ b/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/virtualmachinesizes.go @@ -80,6 +80,7 @@ func (client VirtualMachineSizesClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.VirtualMachineSizesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/workspaces.go b/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/workspaces.go index 7eb2e23a8c11..0b6a15ea93db 100644 --- a/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/workspaces.go +++ b/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/workspaces.go @@ -224,6 +224,7 @@ func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resource result.wlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client WorkspacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client WorkspacesClient) ListBySubscription(ctx context.Context, skiptoken result.wlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -482,6 +486,7 @@ func (client WorkspacesClient) listBySubscriptionNextResults(ctx context.Context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -534,6 +539,7 @@ func (client WorkspacesClient) ListKeys(ctx context.Context, resourceGroupName s result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -610,6 +616,7 @@ func (client WorkspacesClient) ResyncKeys(ctx context.Context, resourceGroupName result, err = client.ResyncKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ResyncKeys", resp, "Failure responding to request") + return } return @@ -685,6 +692,7 @@ func (client WorkspacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/machinelearningcompute.go b/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/machinelearningcompute.go index 6fecc256df5c..661e4dfcdf11 100644 --- a/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/machinelearningcompute.go +++ b/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/machinelearningcompute.go @@ -236,6 +236,7 @@ func (client MachineLearningComputeClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client MachineLearningComputeClient) ListByWorkspace(ctx context.Context, result.pcrl, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.pcrl.hasNextLink() && result.pcrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client MachineLearningComputeClient) listByWorkspaceNextResults(ctx contex result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -433,6 +436,7 @@ func (client MachineLearningComputeClient) ListKeys(ctx context.Context, resourc result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -510,6 +514,7 @@ func (client MachineLearningComputeClient) ListNodes(ctx context.Context, resour result, err = client.ListNodesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "ListNodes", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/operations.go b/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/operations.go index 7de20b2b9109..a3ec3140f6ef 100644 --- a/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/operations.go +++ b/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/usages.go b/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/usages.go index 607edec0ef34..c724a6b3c147 100644 --- a/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/usages.go +++ b/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/usages.go @@ -80,6 +80,7 @@ func (client UsagesClient) List(ctx context.Context, location string, expandChil result.lur, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.UsagesClient", "List", resp, "Failure responding to request") + return } if result.lur.hasNextLink() && result.lur.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults List result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/virtualmachinesizes.go b/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/virtualmachinesizes.go index 4f8921a131a5..2f145b453d20 100644 --- a/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/virtualmachinesizes.go +++ b/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/virtualmachinesizes.go @@ -80,6 +80,7 @@ func (client VirtualMachineSizesClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.VirtualMachineSizesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/workspaces.go b/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/workspaces.go index 729d507868db..2c7ce0230523 100644 --- a/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/workspaces.go +++ b/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/workspaces.go @@ -224,6 +224,7 @@ func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resource result.wlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client WorkspacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client WorkspacesClient) ListBySubscription(ctx context.Context, skiptoken result.wlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -482,6 +486,7 @@ func (client WorkspacesClient) listBySubscriptionNextResults(ctx context.Context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -534,6 +539,7 @@ func (client WorkspacesClient) ListKeys(ctx context.Context, resourceGroupName s result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -610,6 +616,7 @@ func (client WorkspacesClient) ResyncKeys(ctx context.Context, resourceGroupName result, err = client.ResyncKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ResyncKeys", resp, "Failure responding to request") + return } return @@ -685,6 +692,7 @@ func (client WorkspacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/machinelearningcompute.go b/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/machinelearningcompute.go index e4dad3e69966..0d0146332449 100644 --- a/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/machinelearningcompute.go +++ b/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/machinelearningcompute.go @@ -236,6 +236,7 @@ func (client MachineLearningComputeClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client MachineLearningComputeClient) ListByWorkspace(ctx context.Context, result.pcrl, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.pcrl.hasNextLink() && result.pcrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client MachineLearningComputeClient) listByWorkspaceNextResults(ctx contex result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -433,6 +436,7 @@ func (client MachineLearningComputeClient) ListKeys(ctx context.Context, resourc result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -510,6 +514,7 @@ func (client MachineLearningComputeClient) ListNodes(ctx context.Context, resour result, err = client.ListNodesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "ListNodes", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/operations.go b/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/operations.go index 646de73e285f..cf0539d8a438 100644 --- a/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/operations.go +++ b/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/quotas.go b/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/quotas.go index 0e83f2888794..3244a8415bac 100644 --- a/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/quotas.go +++ b/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/quotas.go @@ -79,6 +79,7 @@ func (client QuotasClient) List(ctx context.Context, location string) (result Li result.lwq, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.QuotasClient", "List", resp, "Failure responding to request") + return } if result.lwq.hasNextLink() && result.lwq.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client QuotasClient) listNextResults(ctx context.Context, lastResults List result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.QuotasClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -199,6 +201,7 @@ func (client QuotasClient) Update(ctx context.Context, location string, paramete result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.QuotasClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/usages.go b/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/usages.go index 5093ae4a3aa8..6bcbad305a1e 100644 --- a/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/usages.go +++ b/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/usages.go @@ -80,6 +80,7 @@ func (client UsagesClient) List(ctx context.Context, location string, expandChil result.lur, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.UsagesClient", "List", resp, "Failure responding to request") + return } if result.lur.hasNextLink() && result.lur.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults List result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/virtualmachinesizes.go b/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/virtualmachinesizes.go index 93ca44d80209..e1d3d1bb9830 100644 --- a/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/virtualmachinesizes.go +++ b/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/virtualmachinesizes.go @@ -80,6 +80,7 @@ func (client VirtualMachineSizesClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.VirtualMachineSizesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/workspaces.go b/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/workspaces.go index a1ec80806be4..9f30fdbcc3fa 100644 --- a/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/workspaces.go +++ b/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/workspaces.go @@ -224,6 +224,7 @@ func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resource result.wlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client WorkspacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client WorkspacesClient) ListBySubscription(ctx context.Context, skiptoken result.wlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -482,6 +486,7 @@ func (client WorkspacesClient) listBySubscriptionNextResults(ctx context.Context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -534,6 +539,7 @@ func (client WorkspacesClient) ListKeys(ctx context.Context, resourceGroupName s result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -610,6 +616,7 @@ func (client WorkspacesClient) ResyncKeys(ctx context.Context, resourceGroupName result, err = client.ResyncKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ResyncKeys", resp, "Failure responding to request") + return } return @@ -685,6 +692,7 @@ func (client WorkspacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/client.go b/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/client.go index 08c58d730cc8..fd3e0d30a61d 100644 --- a/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/client.go +++ b/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/client.go @@ -84,6 +84,7 @@ func (client BaseClient) ListSkus(ctx context.Context) (result SkuListResultPage result.slr, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.BaseClient", "ListSkus", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client BaseClient) listSkusNextResults(ctx context.Context, lastResults Sk result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.BaseClient", "listSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/machinelearningcompute.go b/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/machinelearningcompute.go index cbad19f441e4..c8234affc7b3 100644 --- a/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/machinelearningcompute.go +++ b/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/machinelearningcompute.go @@ -236,6 +236,7 @@ func (client MachineLearningComputeClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client MachineLearningComputeClient) ListByWorkspace(ctx context.Context, result.pcrl, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.pcrl.hasNextLink() && result.pcrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client MachineLearningComputeClient) listByWorkspaceNextResults(ctx contex result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -433,6 +436,7 @@ func (client MachineLearningComputeClient) ListKeys(ctx context.Context, resourc result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -510,6 +514,7 @@ func (client MachineLearningComputeClient) ListNodes(ctx context.Context, resour result, err = client.ListNodesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "ListNodes", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/operations.go b/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/operations.go index 2fb092413b5b..190197e49044 100644 --- a/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/operations.go +++ b/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/quotas.go b/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/quotas.go index 463a62cef517..4ed551b0ef3a 100644 --- a/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/quotas.go +++ b/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/quotas.go @@ -79,6 +79,7 @@ func (client QuotasClient) List(ctx context.Context, location string) (result Li result.lwq, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.QuotasClient", "List", resp, "Failure responding to request") + return } if result.lwq.hasNextLink() && result.lwq.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client QuotasClient) listNextResults(ctx context.Context, lastResults List result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.QuotasClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -199,6 +201,7 @@ func (client QuotasClient) Update(ctx context.Context, location string, paramete result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.QuotasClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/usages.go b/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/usages.go index 3f7df970f894..36606d764e79 100644 --- a/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/usages.go +++ b/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Li result.lur, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.UsagesClient", "List", resp, "Failure responding to request") + return } if result.lur.hasNextLink() && result.lur.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults List result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/virtualmachinesizes.go b/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/virtualmachinesizes.go index 932be05fa2d1..11f36102d6cc 100644 --- a/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/virtualmachinesizes.go +++ b/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/virtualmachinesizes.go @@ -80,6 +80,7 @@ func (client VirtualMachineSizesClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.VirtualMachineSizesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/workspacefeatures.go b/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/workspacefeatures.go index 95a0ede0d044..f0e71b5c7f55 100644 --- a/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/workspacefeatures.go +++ b/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/workspacefeatures.go @@ -74,6 +74,7 @@ func (client WorkspaceFeaturesClient) List(ctx context.Context, resourceGroupNam result.laufr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspaceFeaturesClient", "List", resp, "Failure responding to request") + return } if result.laufr.hasNextLink() && result.laufr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client WorkspaceFeaturesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspaceFeaturesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/workspaces.go b/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/workspaces.go index 2b62ee3fd247..b3c7de88e369 100644 --- a/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/workspaces.go +++ b/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/workspaces.go @@ -224,6 +224,7 @@ func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resource result.wlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client WorkspacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client WorkspacesClient) ListBySubscription(ctx context.Context, skiptoken result.wlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -482,6 +486,7 @@ func (client WorkspacesClient) listBySubscriptionNextResults(ctx context.Context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -534,6 +539,7 @@ func (client WorkspacesClient) ListKeys(ctx context.Context, resourceGroupName s result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -610,6 +616,7 @@ func (client WorkspacesClient) ResyncKeys(ctx context.Context, resourceGroupName result, err = client.ResyncKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ResyncKeys", resp, "Failure responding to request") + return } return @@ -685,6 +692,7 @@ func (client WorkspacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/client.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/client.go index 81541a655e6e..b5d352f86568 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/client.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/client.go @@ -84,6 +84,7 @@ func (client BaseClient) ListSkus(ctx context.Context) (result SkuListResultPage result.slr, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.BaseClient", "ListSkus", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client BaseClient) listSkusNextResults(ctx context.Context, lastResults Sk result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.BaseClient", "listSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/machinelearningcompute.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/machinelearningcompute.go index 16df087c29ba..f7006b6dff7c 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/machinelearningcompute.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/machinelearningcompute.go @@ -236,6 +236,7 @@ func (client MachineLearningComputeClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client MachineLearningComputeClient) ListByWorkspace(ctx context.Context, result.pcrl, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.pcrl.hasNextLink() && result.pcrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client MachineLearningComputeClient) listByWorkspaceNextResults(ctx contex result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -433,6 +436,7 @@ func (client MachineLearningComputeClient) ListKeys(ctx context.Context, resourc result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -510,6 +514,7 @@ func (client MachineLearningComputeClient) ListNodes(ctx context.Context, resour result, err = client.ListNodesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "ListNodes", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/operations.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/operations.go index 99acc6c57ca8..97b1774ec8e0 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/operations.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/privateendpointconnections.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/privateendpointconnections.go index 42d7bcdeb2b1..5829a07b6fd0 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/privateendpointconnections.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/privateendpointconnections.go @@ -76,6 +76,7 @@ func (client PrivateEndpointConnectionsClient) Delete(ctx context.Context, resou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.PrivateEndpointConnectionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client PrivateEndpointConnectionsClient) Put(ctx context.Context, resource result, err = client.PutResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.PrivateEndpointConnectionsClient", "Put", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/privatelinkresources.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/privatelinkresources.go index b952c47f8181..32ce9aa7ae3d 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/privatelinkresources.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/privatelinkresources.go @@ -74,6 +74,7 @@ func (client PrivateLinkResourcesClient) ListByWorkspace(ctx context.Context, re result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.PrivateLinkResourcesClient", "ListByWorkspace", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/quotas.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/quotas.go index 8e81e58ce4b0..6ed7663eecd5 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/quotas.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/quotas.go @@ -79,6 +79,7 @@ func (client QuotasClient) List(ctx context.Context, location string) (result Li result.lwq, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.QuotasClient", "List", resp, "Failure responding to request") + return } if result.lwq.hasNextLink() && result.lwq.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client QuotasClient) listNextResults(ctx context.Context, lastResults List result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.QuotasClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -199,6 +201,7 @@ func (client QuotasClient) Update(ctx context.Context, location string, paramete result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.QuotasClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/usages.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/usages.go index c20e40d3655a..eb98a9acf744 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/usages.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Li result.lur, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.UsagesClient", "List", resp, "Failure responding to request") + return } if result.lur.hasNextLink() && result.lur.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults List result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/virtualmachinesizes.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/virtualmachinesizes.go index d785d11a6b9b..7cd737f7b9d6 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/virtualmachinesizes.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/virtualmachinesizes.go @@ -80,6 +80,7 @@ func (client VirtualMachineSizesClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.VirtualMachineSizesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/workspacefeatures.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/workspacefeatures.go index 58825812df71..c1dba512de9f 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/workspacefeatures.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/workspacefeatures.go @@ -74,6 +74,7 @@ func (client WorkspaceFeaturesClient) List(ctx context.Context, resourceGroupNam result.laufr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspaceFeaturesClient", "List", resp, "Failure responding to request") + return } if result.laufr.hasNextLink() && result.laufr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client WorkspaceFeaturesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspaceFeaturesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/workspaces.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/workspaces.go index b12046e84ce8..d328feb78b93 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/workspaces.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/workspaces.go @@ -238,6 +238,7 @@ func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resource result.wlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +382,7 @@ func (client WorkspacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -431,6 +434,7 @@ func (client WorkspacesClient) ListBySubscription(ctx context.Context, skiptoken result.wlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -496,6 +500,7 @@ func (client WorkspacesClient) listBySubscriptionNextResults(ctx context.Context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -548,6 +553,7 @@ func (client WorkspacesClient) ListKeys(ctx context.Context, resourceGroupName s result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -624,6 +630,7 @@ func (client WorkspacesClient) ResyncKeys(ctx context.Context, resourceGroupName result, err = client.ResyncKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ResyncKeys", resp, "Failure responding to request") + return } return @@ -699,6 +706,7 @@ func (client WorkspacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/client.go b/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/client.go index 2981ee8a6e34..2a00944e76ff 100644 --- a/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/client.go +++ b/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/client.go @@ -84,6 +84,7 @@ func (client BaseClient) ListSkus(ctx context.Context) (result SkuListResultPage result.slr, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.BaseClient", "ListSkus", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client BaseClient) listSkusNextResults(ctx context.Context, lastResults Sk result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.BaseClient", "listSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/machinelearningcompute.go b/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/machinelearningcompute.go index c822ecb6ba71..108489d7507e 100644 --- a/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/machinelearningcompute.go +++ b/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/machinelearningcompute.go @@ -236,6 +236,7 @@ func (client MachineLearningComputeClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client MachineLearningComputeClient) ListByWorkspace(ctx context.Context, result.pcrl, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.pcrl.hasNextLink() && result.pcrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client MachineLearningComputeClient) listByWorkspaceNextResults(ctx contex result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -433,6 +436,7 @@ func (client MachineLearningComputeClient) ListKeys(ctx context.Context, resourc result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -510,6 +514,7 @@ func (client MachineLearningComputeClient) ListNodes(ctx context.Context, resour result, err = client.ListNodesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "ListNodes", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/operations.go b/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/operations.go index cd9858cae347..c0f546f2d79e 100644 --- a/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/operations.go +++ b/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/privateendpointconnections.go b/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/privateendpointconnections.go index 103134b140e6..edfa4e7f2303 100644 --- a/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/privateendpointconnections.go +++ b/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/privateendpointconnections.go @@ -76,6 +76,7 @@ func (client PrivateEndpointConnectionsClient) Delete(ctx context.Context, resou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.PrivateEndpointConnectionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client PrivateEndpointConnectionsClient) Put(ctx context.Context, resource result, err = client.PutResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.PrivateEndpointConnectionsClient", "Put", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/privatelinkresources.go b/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/privatelinkresources.go index 64d010f5cee7..00a1ee47c47c 100644 --- a/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/privatelinkresources.go +++ b/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/privatelinkresources.go @@ -74,6 +74,7 @@ func (client PrivateLinkResourcesClient) ListByWorkspace(ctx context.Context, re result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.PrivateLinkResourcesClient", "ListByWorkspace", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/quotas.go b/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/quotas.go index bb8874428d39..7865d8a800e6 100644 --- a/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/quotas.go +++ b/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/quotas.go @@ -79,6 +79,7 @@ func (client QuotasClient) List(ctx context.Context, location string) (result Li result.lwq, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.QuotasClient", "List", resp, "Failure responding to request") + return } if result.lwq.hasNextLink() && result.lwq.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client QuotasClient) listNextResults(ctx context.Context, lastResults List result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.QuotasClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -199,6 +201,7 @@ func (client QuotasClient) Update(ctx context.Context, location string, paramete result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.QuotasClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/usages.go b/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/usages.go index 706e871b9ed9..3215446804c7 100644 --- a/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/usages.go +++ b/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Li result.lur, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.UsagesClient", "List", resp, "Failure responding to request") + return } if result.lur.hasNextLink() && result.lur.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults List result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/virtualmachinesizes.go b/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/virtualmachinesizes.go index 5b0fc5b315f6..0935604a59f3 100644 --- a/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/virtualmachinesizes.go +++ b/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/virtualmachinesizes.go @@ -80,6 +80,7 @@ func (client VirtualMachineSizesClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.VirtualMachineSizesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/workspacefeatures.go b/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/workspacefeatures.go index 8e9f004a019b..3938f04585c4 100644 --- a/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/workspacefeatures.go +++ b/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/workspacefeatures.go @@ -74,6 +74,7 @@ func (client WorkspaceFeaturesClient) List(ctx context.Context, resourceGroupNam result.laufr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspaceFeaturesClient", "List", resp, "Failure responding to request") + return } if result.laufr.hasNextLink() && result.laufr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client WorkspaceFeaturesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspaceFeaturesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/workspaces.go b/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/workspaces.go index 2a6e21715a31..43d75e28b4fe 100644 --- a/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/workspaces.go +++ b/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/workspaces.go @@ -238,6 +238,7 @@ func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resource result.wlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +382,7 @@ func (client WorkspacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -431,6 +434,7 @@ func (client WorkspacesClient) ListBySubscription(ctx context.Context, skiptoken result.wlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -496,6 +500,7 @@ func (client WorkspacesClient) listBySubscriptionNextResults(ctx context.Context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -548,6 +553,7 @@ func (client WorkspacesClient) ListKeys(ctx context.Context, resourceGroupName s result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -624,6 +630,7 @@ func (client WorkspacesClient) ResyncKeys(ctx context.Context, resourceGroupName result, err = client.ResyncKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ResyncKeys", resp, "Failure responding to request") + return } return @@ -699,6 +706,7 @@ func (client WorkspacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/client.go b/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/client.go index 57f02d4055c6..0b6cc8c8719b 100644 --- a/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/client.go +++ b/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/client.go @@ -84,6 +84,7 @@ func (client BaseClient) ListSkus(ctx context.Context) (result SkuListResultPage result.slr, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.BaseClient", "ListSkus", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client BaseClient) listSkusNextResults(ctx context.Context, lastResults Sk result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.BaseClient", "listSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/machinelearningcompute.go b/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/machinelearningcompute.go index dbaadee814e1..bed0b8b5bd92 100644 --- a/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/machinelearningcompute.go +++ b/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/machinelearningcompute.go @@ -236,6 +236,7 @@ func (client MachineLearningComputeClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client MachineLearningComputeClient) ListByWorkspace(ctx context.Context, result.pcrl, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.pcrl.hasNextLink() && result.pcrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client MachineLearningComputeClient) listByWorkspaceNextResults(ctx contex result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -433,6 +436,7 @@ func (client MachineLearningComputeClient) ListKeys(ctx context.Context, resourc result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -510,6 +514,7 @@ func (client MachineLearningComputeClient) ListNodes(ctx context.Context, resour result, err = client.ListNodesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "ListNodes", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/operations.go b/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/operations.go index e8e58665c366..b8f07308b87b 100644 --- a/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/operations.go +++ b/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/privateendpointconnections.go b/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/privateendpointconnections.go index d743ca304544..44fbaa124dd7 100644 --- a/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/privateendpointconnections.go +++ b/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/privateendpointconnections.go @@ -76,6 +76,7 @@ func (client PrivateEndpointConnectionsClient) Delete(ctx context.Context, resou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.PrivateEndpointConnectionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client PrivateEndpointConnectionsClient) Put(ctx context.Context, resource result, err = client.PutResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.PrivateEndpointConnectionsClient", "Put", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/privatelinkresources.go b/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/privatelinkresources.go index d5e8bf8f3da7..2eb492edcb09 100644 --- a/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/privatelinkresources.go +++ b/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/privatelinkresources.go @@ -74,6 +74,7 @@ func (client PrivateLinkResourcesClient) ListByWorkspace(ctx context.Context, re result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.PrivateLinkResourcesClient", "ListByWorkspace", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/quotas.go b/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/quotas.go index d0fe2221ad8a..39f3114c4b67 100644 --- a/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/quotas.go +++ b/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/quotas.go @@ -79,6 +79,7 @@ func (client QuotasClient) List(ctx context.Context, location string) (result Li result.lwq, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.QuotasClient", "List", resp, "Failure responding to request") + return } if result.lwq.hasNextLink() && result.lwq.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client QuotasClient) listNextResults(ctx context.Context, lastResults List result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.QuotasClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -199,6 +201,7 @@ func (client QuotasClient) Update(ctx context.Context, location string, paramete result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.QuotasClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/usages.go b/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/usages.go index 2693f8cb62ed..f0de63b02df4 100644 --- a/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/usages.go +++ b/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Li result.lur, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.UsagesClient", "List", resp, "Failure responding to request") + return } if result.lur.hasNextLink() && result.lur.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults List result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/virtualmachinesizes.go b/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/virtualmachinesizes.go index 37b412b30597..1afcd2af1915 100644 --- a/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/virtualmachinesizes.go +++ b/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/virtualmachinesizes.go @@ -80,6 +80,7 @@ func (client VirtualMachineSizesClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.VirtualMachineSizesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/workspacefeatures.go b/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/workspacefeatures.go index c2218a098924..6e686f2ae502 100644 --- a/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/workspacefeatures.go +++ b/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/workspacefeatures.go @@ -74,6 +74,7 @@ func (client WorkspaceFeaturesClient) List(ctx context.Context, resourceGroupNam result.laufr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspaceFeaturesClient", "List", resp, "Failure responding to request") + return } if result.laufr.hasNextLink() && result.laufr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client WorkspaceFeaturesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspaceFeaturesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/workspaces.go b/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/workspaces.go index 97cb034fa7a8..9ae04f8f9043 100644 --- a/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/workspaces.go +++ b/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/workspaces.go @@ -238,6 +238,7 @@ func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resource result.wlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +382,7 @@ func (client WorkspacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -431,6 +434,7 @@ func (client WorkspacesClient) ListBySubscription(ctx context.Context, skiptoken result.wlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -496,6 +500,7 @@ func (client WorkspacesClient) listBySubscriptionNextResults(ctx context.Context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -548,6 +553,7 @@ func (client WorkspacesClient) ListKeys(ctx context.Context, resourceGroupName s result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -624,6 +630,7 @@ func (client WorkspacesClient) ResyncKeys(ctx context.Context, resourceGroupName result, err = client.ResyncKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ResyncKeys", resp, "Failure responding to request") + return } return @@ -699,6 +706,7 @@ func (client WorkspacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/maintenance/mgmt/2020-04-01/maintenance/applyupdates.go b/services/maintenance/mgmt/2020-04-01/maintenance/applyupdates.go index fd594d7f6eea..9173550bc1fd 100644 --- a/services/maintenance/mgmt/2020-04-01/maintenance/applyupdates.go +++ b/services/maintenance/mgmt/2020-04-01/maintenance/applyupdates.go @@ -74,6 +74,7 @@ func (client ApplyUpdatesClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ApplyUpdatesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client ApplyUpdatesClient) CreateOrUpdateParent(ctx context.Context, resou result, err = client.CreateOrUpdateParentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ApplyUpdatesClient", "CreateOrUpdateParent", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client ApplyUpdatesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ApplyUpdatesClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +323,7 @@ func (client ApplyUpdatesClient) GetParent(ctx context.Context, resourceGroupNam result, err = client.GetParentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ApplyUpdatesClient", "GetParent", resp, "Failure responding to request") + return } return diff --git a/services/maintenance/mgmt/2020-04-01/maintenance/configurationassignments.go b/services/maintenance/mgmt/2020-04-01/maintenance/configurationassignments.go index c03a653dfbd7..7dda2c2bfd55 100644 --- a/services/maintenance/mgmt/2020-04-01/maintenance/configurationassignments.go +++ b/services/maintenance/mgmt/2020-04-01/maintenance/configurationassignments.go @@ -77,6 +77,7 @@ func (client ConfigurationAssignmentsClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ConfigurationAssignmentsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ConfigurationAssignmentsClient) CreateOrUpdateParent(ctx context.Co result, err = client.CreateOrUpdateParentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ConfigurationAssignmentsClient", "CreateOrUpdateParent", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client ConfigurationAssignmentsClient) Delete(ctx context.Context, resourc result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ConfigurationAssignmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -331,6 +334,7 @@ func (client ConfigurationAssignmentsClient) DeleteParent(ctx context.Context, r result, err = client.DeleteParentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ConfigurationAssignmentsClient", "DeleteParent", resp, "Failure responding to request") + return } return @@ -413,6 +417,7 @@ func (client ConfigurationAssignmentsClient) List(ctx context.Context, resourceG result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ConfigurationAssignmentsClient", "List", resp, "Failure responding to request") + return } return @@ -494,6 +499,7 @@ func (client ConfigurationAssignmentsClient) ListParent(ctx context.Context, res result, err = client.ListParentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ConfigurationAssignmentsClient", "ListParent", resp, "Failure responding to request") + return } return diff --git a/services/maintenance/mgmt/2020-04-01/maintenance/configurations.go b/services/maintenance/mgmt/2020-04-01/maintenance/configurations.go index c7cfc1b3da5b..9925f4cc0e86 100644 --- a/services/maintenance/mgmt/2020-04-01/maintenance/configurations.go +++ b/services/maintenance/mgmt/2020-04-01/maintenance/configurations.go @@ -73,6 +73,7 @@ func (client ConfigurationsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ConfigurationsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client ConfigurationsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ConfigurationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -225,6 +227,7 @@ func (client ConfigurationsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -297,6 +300,7 @@ func (client ConfigurationsClient) List(ctx context.Context) (result ListMainten result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ConfigurationsClient", "List", resp, "Failure responding to request") + return } return @@ -371,6 +375,7 @@ func (client ConfigurationsClient) UpdateMethod(ctx context.Context, resourceGro result, err = client.UpdateMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ConfigurationsClient", "UpdateMethod", resp, "Failure responding to request") + return } return diff --git a/services/maintenance/mgmt/2020-04-01/maintenance/operations.go b/services/maintenance/mgmt/2020-04-01/maintenance/operations.go index 96431907d6e9..2a9021dc04c0 100644 --- a/services/maintenance/mgmt/2020-04-01/maintenance/operations.go +++ b/services/maintenance/mgmt/2020-04-01/maintenance/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/maintenance/mgmt/2020-04-01/maintenance/updates.go b/services/maintenance/mgmt/2020-04-01/maintenance/updates.go index 249f54353ccd..7ad8b8351382 100644 --- a/services/maintenance/mgmt/2020-04-01/maintenance/updates.go +++ b/services/maintenance/mgmt/2020-04-01/maintenance/updates.go @@ -74,6 +74,7 @@ func (client UpdatesClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.UpdatesClient", "List", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client UpdatesClient) ListParent(ctx context.Context, resourceGroupName st result, err = client.ListParentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.UpdatesClient", "ListParent", resp, "Failure responding to request") + return } return diff --git a/services/managedservices/mgmt/2019-06-01/managedservices/operations.go b/services/managedservices/mgmt/2019-06-01/managedservices/operations.go index 1e261956783b..dd72a700e7cf 100644 --- a/services/managedservices/mgmt/2019-06-01/managedservices/operations.go +++ b/services/managedservices/mgmt/2019-06-01/managedservices/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationList, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/managedservices/mgmt/2019-06-01/managedservices/registrationassignments.go b/services/managedservices/mgmt/2019-06-01/managedservices/registrationassignments.go index 907bb42d9752..aa570c338324 100644 --- a/services/managedservices/mgmt/2019-06-01/managedservices/registrationassignments.go +++ b/services/managedservices/mgmt/2019-06-01/managedservices/registrationassignments.go @@ -245,6 +245,7 @@ func (client RegistrationAssignmentsClient) Get(ctx context.Context, scope strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.RegistrationAssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -324,6 +325,7 @@ func (client RegistrationAssignmentsClient) List(ctx context.Context, scope stri result.ral, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.RegistrationAssignmentsClient", "List", resp, "Failure responding to request") + return } if result.ral.hasNextLink() && result.ral.IsEmpty() { err = result.NextWithContext(ctx) @@ -389,6 +391,7 @@ func (client RegistrationAssignmentsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.RegistrationAssignmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/managedservices/mgmt/2019-06-01/managedservices/registrationdefinitions.go b/services/managedservices/mgmt/2019-06-01/managedservices/registrationdefinitions.go index 03c925b41824..61af5d89805b 100644 --- a/services/managedservices/mgmt/2019-06-01/managedservices/registrationdefinitions.go +++ b/services/managedservices/mgmt/2019-06-01/managedservices/registrationdefinitions.go @@ -169,6 +169,7 @@ func (client RegistrationDefinitionsClient) Delete(ctx context.Context, registra result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.RegistrationDefinitionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -242,6 +243,7 @@ func (client RegistrationDefinitionsClient) Get(ctx context.Context, scope strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.RegistrationDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +318,7 @@ func (client RegistrationDefinitionsClient) List(ctx context.Context, scope stri result.rdl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.RegistrationDefinitionsClient", "List", resp, "Failure responding to request") + return } if result.rdl.hasNextLink() && result.rdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -378,6 +381,7 @@ func (client RegistrationDefinitionsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.RegistrationDefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/maps/mgmt/2017-01-01-preview/maps/accounts.go b/services/maps/mgmt/2017-01-01-preview/maps/accounts.go index cb2baf26fc8f..69a6a106ebce 100644 --- a/services/maps/mgmt/2017-01-01-preview/maps/accounts.go +++ b/services/maps/mgmt/2017-01-01-preview/maps/accounts.go @@ -83,6 +83,7 @@ func (client AccountsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client AccountsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +311,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -379,6 +383,7 @@ func (client AccountsClient) ListBySubscription(ctx context.Context) (result Acc result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -453,6 +458,7 @@ func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName str result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -525,6 +531,7 @@ func (client AccountsClient) ListOperations(ctx context.Context) (result Operati result, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "ListOperations", resp, "Failure responding to request") + return } return @@ -601,6 +608,7 @@ func (client AccountsClient) Move(ctx context.Context, resourceGroupName string, result, err = client.MoveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "Move", resp, "Failure responding to request") + return } return @@ -678,6 +686,7 @@ func (client AccountsClient) RegenerateKeys(ctx context.Context, resourceGroupNa result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "RegenerateKeys", resp, "Failure responding to request") + return } return @@ -756,6 +765,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/maps/mgmt/2018-05-01/maps/accounts.go b/services/maps/mgmt/2018-05-01/maps/accounts.go index 5bb209fe095a..f012ba452189 100644 --- a/services/maps/mgmt/2018-05-01/maps/accounts.go +++ b/services/maps/mgmt/2018-05-01/maps/accounts.go @@ -83,6 +83,7 @@ func (client AccountsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client AccountsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +311,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -379,6 +383,7 @@ func (client AccountsClient) ListBySubscription(ctx context.Context) (result Acc result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -453,6 +458,7 @@ func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName str result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -525,6 +531,7 @@ func (client AccountsClient) ListOperations(ctx context.Context) (result Operati result, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "ListOperations", resp, "Failure responding to request") + return } return @@ -601,6 +608,7 @@ func (client AccountsClient) Move(ctx context.Context, resourceGroupName string, result, err = client.MoveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "Move", resp, "Failure responding to request") + return } return @@ -678,6 +686,7 @@ func (client AccountsClient) RegenerateKeys(ctx context.Context, resourceGroupNa result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "RegenerateKeys", resp, "Failure responding to request") + return } return @@ -756,6 +765,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/mariadb/mgmt/2018-06-01/mariadb/advisors.go b/services/mariadb/mgmt/2018-06-01/mariadb/advisors.go index 6d67d8cb70b7..efcd3e8ce9dd 100644 --- a/services/mariadb/mgmt/2018-06-01/mariadb/advisors.go +++ b/services/mariadb/mgmt/2018-06-01/mariadb/advisors.go @@ -86,6 +86,7 @@ func (client AdvisorsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.AdvisorsClient", "Get", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client AdvisorsClient) ListByServer(ctx context.Context, resourceGroupName result.arl, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.AdvisorsClient", "ListByServer", resp, "Failure responding to request") + return } if result.arl.hasNextLink() && result.arl.IsEmpty() { err = result.NextWithContext(ctx) @@ -237,6 +239,7 @@ func (client AdvisorsClient) listByServerNextResults(ctx context.Context, lastRe result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.AdvisorsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mariadb/mgmt/2018-06-01/mariadb/checknameavailability.go b/services/mariadb/mgmt/2018-06-01/mariadb/checknameavailability.go index d8cccc3c4184..f353ade2200f 100644 --- a/services/mariadb/mgmt/2018-06-01/mariadb/checknameavailability.go +++ b/services/mariadb/mgmt/2018-06-01/mariadb/checknameavailability.go @@ -83,6 +83,7 @@ func (client CheckNameAvailabilityClient) Execute(ctx context.Context, nameAvail result, err = client.ExecuteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.CheckNameAvailabilityClient", "Execute", resp, "Failure responding to request") + return } return diff --git a/services/mariadb/mgmt/2018-06-01/mariadb/configurations.go b/services/mariadb/mgmt/2018-06-01/mariadb/configurations.go index d78c1ef34547..9427d6c16a6e 100644 --- a/services/mariadb/mgmt/2018-06-01/mariadb/configurations.go +++ b/services/mariadb/mgmt/2018-06-01/mariadb/configurations.go @@ -176,6 +176,7 @@ func (client ConfigurationsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.ConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -262,6 +263,7 @@ func (client ConfigurationsClient) ListByServer(ctx context.Context, resourceGro result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.ConfigurationsClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/mariadb/mgmt/2018-06-01/mariadb/databases.go b/services/mariadb/mgmt/2018-06-01/mariadb/databases.go index cdcb0ce478de..adb6a3bf13be 100644 --- a/services/mariadb/mgmt/2018-06-01/mariadb/databases.go +++ b/services/mariadb/mgmt/2018-06-01/mariadb/databases.go @@ -262,6 +262,7 @@ func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.DatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +349,7 @@ func (client DatabasesClient) ListByServer(ctx context.Context, resourceGroupNam result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.DatabasesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/mariadb/mgmt/2018-06-01/mariadb/firewallrules.go b/services/mariadb/mgmt/2018-06-01/mariadb/firewallrules.go index f3970482a7e4..b2c57718ed94 100644 --- a/services/mariadb/mgmt/2018-06-01/mariadb/firewallrules.go +++ b/services/mariadb/mgmt/2018-06-01/mariadb/firewallrules.go @@ -269,6 +269,7 @@ func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.FirewallRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +356,7 @@ func (client FirewallRulesClient) ListByServer(ctx context.Context, resourceGrou result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.FirewallRulesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/mariadb/mgmt/2018-06-01/mariadb/locationbasedperformancetier.go b/services/mariadb/mgmt/2018-06-01/mariadb/locationbasedperformancetier.go index e6a7c028b93d..a7a533f2d752 100644 --- a/services/mariadb/mgmt/2018-06-01/mariadb/locationbasedperformancetier.go +++ b/services/mariadb/mgmt/2018-06-01/mariadb/locationbasedperformancetier.go @@ -81,6 +81,7 @@ func (client LocationBasedPerformanceTierClient) List(ctx context.Context, locat result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.LocationBasedPerformanceTierClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/mariadb/mgmt/2018-06-01/mariadb/locationbasedrecommendedactionsessionsoperationstatus.go b/services/mariadb/mgmt/2018-06-01/mariadb/locationbasedrecommendedactionsessionsoperationstatus.go index 24df8dd7d96c..2240d5b8ffaf 100644 --- a/services/mariadb/mgmt/2018-06-01/mariadb/locationbasedrecommendedactionsessionsoperationstatus.go +++ b/services/mariadb/mgmt/2018-06-01/mariadb/locationbasedrecommendedactionsessionsoperationstatus.go @@ -83,6 +83,7 @@ func (client LocationBasedRecommendedActionSessionsOperationStatusClient) Get(ct result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.LocationBasedRecommendedActionSessionsOperationStatusClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/mariadb/mgmt/2018-06-01/mariadb/locationbasedrecommendedactionsessionsresult.go b/services/mariadb/mgmt/2018-06-01/mariadb/locationbasedrecommendedactionsessionsresult.go index 3f5c76c23ca8..bd073104753d 100644 --- a/services/mariadb/mgmt/2018-06-01/mariadb/locationbasedrecommendedactionsessionsresult.go +++ b/services/mariadb/mgmt/2018-06-01/mariadb/locationbasedrecommendedactionsessionsresult.go @@ -84,6 +84,7 @@ func (client LocationBasedRecommendedActionSessionsResultClient) List(ctx contex result.rarl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.LocationBasedRecommendedActionSessionsResultClient", "List", resp, "Failure responding to request") + return } if result.rarl.hasNextLink() && result.rarl.IsEmpty() { err = result.NextWithContext(ctx) @@ -148,6 +149,7 @@ func (client LocationBasedRecommendedActionSessionsResultClient) listNextResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.LocationBasedRecommendedActionSessionsResultClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mariadb/mgmt/2018-06-01/mariadb/logfiles.go b/services/mariadb/mgmt/2018-06-01/mariadb/logfiles.go index 884eb1f4f5b5..399c1d29b7b6 100644 --- a/services/mariadb/mgmt/2018-06-01/mariadb/logfiles.go +++ b/services/mariadb/mgmt/2018-06-01/mariadb/logfiles.go @@ -85,6 +85,7 @@ func (client LogFilesClient) ListByServer(ctx context.Context, resourceGroupName result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.LogFilesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/mariadb/mgmt/2018-06-01/mariadb/operations.go b/services/mariadb/mgmt/2018-06-01/mariadb/operations.go index 2ca63a8b59f7..16ed88f73ad4 100644 --- a/services/mariadb/mgmt/2018-06-01/mariadb/operations.go +++ b/services/mariadb/mgmt/2018-06-01/mariadb/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/mariadb/mgmt/2018-06-01/mariadb/privateendpointconnections.go b/services/mariadb/mgmt/2018-06-01/mariadb/privateendpointconnections.go index 36a2b3190e53..8dd2431e75f8 100644 --- a/services/mariadb/mgmt/2018-06-01/mariadb/privateendpointconnections.go +++ b/services/mariadb/mgmt/2018-06-01/mariadb/privateendpointconnections.go @@ -267,6 +267,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -354,6 +355,7 @@ func (client PrivateEndpointConnectionsClient) ListByServer(ctx context.Context, result.peclr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.PrivateEndpointConnectionsClient", "ListByServer", resp, "Failure responding to request") + return } if result.peclr.hasNextLink() && result.peclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -418,6 +420,7 @@ func (client PrivateEndpointConnectionsClient) listByServerNextResults(ctx conte result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.PrivateEndpointConnectionsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mariadb/mgmt/2018-06-01/mariadb/privatelinkresources.go b/services/mariadb/mgmt/2018-06-01/mariadb/privatelinkresources.go index cb414a07a4c2..61062b321c72 100644 --- a/services/mariadb/mgmt/2018-06-01/mariadb/privatelinkresources.go +++ b/services/mariadb/mgmt/2018-06-01/mariadb/privatelinkresources.go @@ -87,6 +87,7 @@ func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.PrivateLinkResourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client PrivateLinkResourcesClient) ListByServer(ctx context.Context, resou result.plrlr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.PrivateLinkResourcesClient", "ListByServer", resp, "Failure responding to request") + return } if result.plrlr.hasNextLink() && result.plrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -238,6 +240,7 @@ func (client PrivateLinkResourcesClient) listByServerNextResults(ctx context.Con result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.PrivateLinkResourcesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mariadb/mgmt/2018-06-01/mariadb/querytexts.go b/services/mariadb/mgmt/2018-06-01/mariadb/querytexts.go index 25deaa7070e1..21463f116802 100644 --- a/services/mariadb/mgmt/2018-06-01/mariadb/querytexts.go +++ b/services/mariadb/mgmt/2018-06-01/mariadb/querytexts.go @@ -86,6 +86,7 @@ func (client QueryTextsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.QueryTextsClient", "Get", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client QueryTextsClient) ListByServer(ctx context.Context, resourceGroupNa result.qtrl, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.QueryTextsClient", "ListByServer", resp, "Failure responding to request") + return } if result.qtrl.hasNextLink() && result.qtrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -241,6 +243,7 @@ func (client QueryTextsClient) listByServerNextResults(ctx context.Context, last result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.QueryTextsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mariadb/mgmt/2018-06-01/mariadb/recommendedactions.go b/services/mariadb/mgmt/2018-06-01/mariadb/recommendedactions.go index 3e914fd12e14..e5b4c464dd66 100644 --- a/services/mariadb/mgmt/2018-06-01/mariadb/recommendedactions.go +++ b/services/mariadb/mgmt/2018-06-01/mariadb/recommendedactions.go @@ -88,6 +88,7 @@ func (client RecommendedActionsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.RecommendedActionsClient", "Get", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client RecommendedActionsClient) ListByServer(ctx context.Context, resourc result.rarl, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.RecommendedActionsClient", "ListByServer", resp, "Failure responding to request") + return } if result.rarl.hasNextLink() && result.rarl.IsEmpty() { err = result.NextWithContext(ctx) @@ -246,6 +248,7 @@ func (client RecommendedActionsClient) listByServerNextResults(ctx context.Conte result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.RecommendedActionsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mariadb/mgmt/2018-06-01/mariadb/replicas.go b/services/mariadb/mgmt/2018-06-01/mariadb/replicas.go index a00784ca5cee..8195bfa44a1d 100644 --- a/services/mariadb/mgmt/2018-06-01/mariadb/replicas.go +++ b/services/mariadb/mgmt/2018-06-01/mariadb/replicas.go @@ -85,6 +85,7 @@ func (client ReplicasClient) ListByServer(ctx context.Context, resourceGroupName result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.ReplicasClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/mariadb/mgmt/2018-06-01/mariadb/servers.go b/services/mariadb/mgmt/2018-06-01/mariadb/servers.go index 1c9dce35bd94..ac836601afe0 100644 --- a/services/mariadb/mgmt/2018-06-01/mariadb/servers.go +++ b/services/mariadb/mgmt/2018-06-01/mariadb/servers.go @@ -265,6 +265,7 @@ func (client ServersClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.ServersClient", "Get", resp, "Failure responding to request") + return } return @@ -343,6 +344,7 @@ func (client ServersClient) List(ctx context.Context) (result ServerListResult, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.ServersClient", "List", resp, "Failure responding to request") + return } return @@ -425,6 +427,7 @@ func (client ServersClient) ListByResourceGroup(ctx context.Context, resourceGro result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.ServersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return diff --git a/services/mariadb/mgmt/2018-06-01/mariadb/serversecurityalertpolicies.go b/services/mariadb/mgmt/2018-06-01/mariadb/serversecurityalertpolicies.go index 5078a89ed0a5..efde2e5b59b8 100644 --- a/services/mariadb/mgmt/2018-06-01/mariadb/serversecurityalertpolicies.go +++ b/services/mariadb/mgmt/2018-06-01/mariadb/serversecurityalertpolicies.go @@ -175,6 +175,7 @@ func (client ServerSecurityAlertPoliciesClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.ServerSecurityAlertPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/mariadb/mgmt/2018-06-01/mariadb/topquerystatistics.go b/services/mariadb/mgmt/2018-06-01/mariadb/topquerystatistics.go index f06fa606e8f8..ea50e30c6c0b 100644 --- a/services/mariadb/mgmt/2018-06-01/mariadb/topquerystatistics.go +++ b/services/mariadb/mgmt/2018-06-01/mariadb/topquerystatistics.go @@ -87,6 +87,7 @@ func (client TopQueryStatisticsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.TopQueryStatisticsClient", "Get", resp, "Failure responding to request") + return } return @@ -184,6 +185,7 @@ func (client TopQueryStatisticsClient) ListByServer(ctx context.Context, resourc result.tqsrl, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.TopQueryStatisticsClient", "ListByServer", resp, "Failure responding to request") + return } if result.tqsrl.hasNextLink() && result.tqsrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -250,6 +252,7 @@ func (client TopQueryStatisticsClient) listByServerNextResults(ctx context.Conte result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.TopQueryStatisticsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mariadb/mgmt/2018-06-01/mariadb/virtualnetworkrules.go b/services/mariadb/mgmt/2018-06-01/mariadb/virtualnetworkrules.go index cf0e9b1c5e72..0953d285fb73 100644 --- a/services/mariadb/mgmt/2018-06-01/mariadb/virtualnetworkrules.go +++ b/services/mariadb/mgmt/2018-06-01/mariadb/virtualnetworkrules.go @@ -266,6 +266,7 @@ func (client VirtualNetworkRulesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.VirtualNetworkRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -353,6 +354,7 @@ func (client VirtualNetworkRulesClient) ListByServer(ctx context.Context, resour result.vnrlr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.VirtualNetworkRulesClient", "ListByServer", resp, "Failure responding to request") + return } if result.vnrlr.hasNextLink() && result.vnrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -417,6 +419,7 @@ func (client VirtualNetworkRulesClient) listByServerNextResults(ctx context.Cont result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.VirtualNetworkRulesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mariadb/mgmt/2018-06-01/mariadb/waitstatistics.go b/services/mariadb/mgmt/2018-06-01/mariadb/waitstatistics.go index 89e6a9ba49f8..ddfef8f9dea5 100644 --- a/services/mariadb/mgmt/2018-06-01/mariadb/waitstatistics.go +++ b/services/mariadb/mgmt/2018-06-01/mariadb/waitstatistics.go @@ -86,6 +86,7 @@ func (client WaitStatisticsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.WaitStatisticsClient", "Get", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client WaitStatisticsClient) ListByServer(ctx context.Context, resourceGro result.wsrl, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.WaitStatisticsClient", "ListByServer", resp, "Failure responding to request") + return } if result.wsrl.hasNextLink() && result.wsrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -246,6 +248,7 @@ func (client WaitStatisticsClient) listByServerNextResults(ctx context.Context, result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.WaitStatisticsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mariadb/mgmt/2020-01-01/mariadb/advisors.go b/services/mariadb/mgmt/2020-01-01/mariadb/advisors.go index 6d67d8cb70b7..efcd3e8ce9dd 100644 --- a/services/mariadb/mgmt/2020-01-01/mariadb/advisors.go +++ b/services/mariadb/mgmt/2020-01-01/mariadb/advisors.go @@ -86,6 +86,7 @@ func (client AdvisorsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.AdvisorsClient", "Get", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client AdvisorsClient) ListByServer(ctx context.Context, resourceGroupName result.arl, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.AdvisorsClient", "ListByServer", resp, "Failure responding to request") + return } if result.arl.hasNextLink() && result.arl.IsEmpty() { err = result.NextWithContext(ctx) @@ -237,6 +239,7 @@ func (client AdvisorsClient) listByServerNextResults(ctx context.Context, lastRe result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.AdvisorsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mariadb/mgmt/2020-01-01/mariadb/checknameavailability.go b/services/mariadb/mgmt/2020-01-01/mariadb/checknameavailability.go index d8cccc3c4184..f353ade2200f 100644 --- a/services/mariadb/mgmt/2020-01-01/mariadb/checknameavailability.go +++ b/services/mariadb/mgmt/2020-01-01/mariadb/checknameavailability.go @@ -83,6 +83,7 @@ func (client CheckNameAvailabilityClient) Execute(ctx context.Context, nameAvail result, err = client.ExecuteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.CheckNameAvailabilityClient", "Execute", resp, "Failure responding to request") + return } return diff --git a/services/mariadb/mgmt/2020-01-01/mariadb/configurations.go b/services/mariadb/mgmt/2020-01-01/mariadb/configurations.go index d78c1ef34547..9427d6c16a6e 100644 --- a/services/mariadb/mgmt/2020-01-01/mariadb/configurations.go +++ b/services/mariadb/mgmt/2020-01-01/mariadb/configurations.go @@ -176,6 +176,7 @@ func (client ConfigurationsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.ConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -262,6 +263,7 @@ func (client ConfigurationsClient) ListByServer(ctx context.Context, resourceGro result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.ConfigurationsClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/mariadb/mgmt/2020-01-01/mariadb/databases.go b/services/mariadb/mgmt/2020-01-01/mariadb/databases.go index cdcb0ce478de..adb6a3bf13be 100644 --- a/services/mariadb/mgmt/2020-01-01/mariadb/databases.go +++ b/services/mariadb/mgmt/2020-01-01/mariadb/databases.go @@ -262,6 +262,7 @@ func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.DatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +349,7 @@ func (client DatabasesClient) ListByServer(ctx context.Context, resourceGroupNam result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.DatabasesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/mariadb/mgmt/2020-01-01/mariadb/firewallrules.go b/services/mariadb/mgmt/2020-01-01/mariadb/firewallrules.go index f3970482a7e4..b2c57718ed94 100644 --- a/services/mariadb/mgmt/2020-01-01/mariadb/firewallrules.go +++ b/services/mariadb/mgmt/2020-01-01/mariadb/firewallrules.go @@ -269,6 +269,7 @@ func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.FirewallRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +356,7 @@ func (client FirewallRulesClient) ListByServer(ctx context.Context, resourceGrou result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.FirewallRulesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/mariadb/mgmt/2020-01-01/mariadb/locationbasedperformancetier.go b/services/mariadb/mgmt/2020-01-01/mariadb/locationbasedperformancetier.go index e6a7c028b93d..a7a533f2d752 100644 --- a/services/mariadb/mgmt/2020-01-01/mariadb/locationbasedperformancetier.go +++ b/services/mariadb/mgmt/2020-01-01/mariadb/locationbasedperformancetier.go @@ -81,6 +81,7 @@ func (client LocationBasedPerformanceTierClient) List(ctx context.Context, locat result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.LocationBasedPerformanceTierClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/mariadb/mgmt/2020-01-01/mariadb/locationbasedrecommendedactionsessionsoperationstatus.go b/services/mariadb/mgmt/2020-01-01/mariadb/locationbasedrecommendedactionsessionsoperationstatus.go index 24df8dd7d96c..2240d5b8ffaf 100644 --- a/services/mariadb/mgmt/2020-01-01/mariadb/locationbasedrecommendedactionsessionsoperationstatus.go +++ b/services/mariadb/mgmt/2020-01-01/mariadb/locationbasedrecommendedactionsessionsoperationstatus.go @@ -83,6 +83,7 @@ func (client LocationBasedRecommendedActionSessionsOperationStatusClient) Get(ct result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.LocationBasedRecommendedActionSessionsOperationStatusClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/mariadb/mgmt/2020-01-01/mariadb/locationbasedrecommendedactionsessionsresult.go b/services/mariadb/mgmt/2020-01-01/mariadb/locationbasedrecommendedactionsessionsresult.go index 3f5c76c23ca8..bd073104753d 100644 --- a/services/mariadb/mgmt/2020-01-01/mariadb/locationbasedrecommendedactionsessionsresult.go +++ b/services/mariadb/mgmt/2020-01-01/mariadb/locationbasedrecommendedactionsessionsresult.go @@ -84,6 +84,7 @@ func (client LocationBasedRecommendedActionSessionsResultClient) List(ctx contex result.rarl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.LocationBasedRecommendedActionSessionsResultClient", "List", resp, "Failure responding to request") + return } if result.rarl.hasNextLink() && result.rarl.IsEmpty() { err = result.NextWithContext(ctx) @@ -148,6 +149,7 @@ func (client LocationBasedRecommendedActionSessionsResultClient) listNextResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.LocationBasedRecommendedActionSessionsResultClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mariadb/mgmt/2020-01-01/mariadb/logfiles.go b/services/mariadb/mgmt/2020-01-01/mariadb/logfiles.go index 884eb1f4f5b5..399c1d29b7b6 100644 --- a/services/mariadb/mgmt/2020-01-01/mariadb/logfiles.go +++ b/services/mariadb/mgmt/2020-01-01/mariadb/logfiles.go @@ -85,6 +85,7 @@ func (client LogFilesClient) ListByServer(ctx context.Context, resourceGroupName result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.LogFilesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/mariadb/mgmt/2020-01-01/mariadb/operations.go b/services/mariadb/mgmt/2020-01-01/mariadb/operations.go index 2ca63a8b59f7..16ed88f73ad4 100644 --- a/services/mariadb/mgmt/2020-01-01/mariadb/operations.go +++ b/services/mariadb/mgmt/2020-01-01/mariadb/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/mariadb/mgmt/2020-01-01/mariadb/privateendpointconnections.go b/services/mariadb/mgmt/2020-01-01/mariadb/privateendpointconnections.go index 36a2b3190e53..8dd2431e75f8 100644 --- a/services/mariadb/mgmt/2020-01-01/mariadb/privateendpointconnections.go +++ b/services/mariadb/mgmt/2020-01-01/mariadb/privateendpointconnections.go @@ -267,6 +267,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -354,6 +355,7 @@ func (client PrivateEndpointConnectionsClient) ListByServer(ctx context.Context, result.peclr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.PrivateEndpointConnectionsClient", "ListByServer", resp, "Failure responding to request") + return } if result.peclr.hasNextLink() && result.peclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -418,6 +420,7 @@ func (client PrivateEndpointConnectionsClient) listByServerNextResults(ctx conte result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.PrivateEndpointConnectionsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mariadb/mgmt/2020-01-01/mariadb/privatelinkresources.go b/services/mariadb/mgmt/2020-01-01/mariadb/privatelinkresources.go index cb414a07a4c2..61062b321c72 100644 --- a/services/mariadb/mgmt/2020-01-01/mariadb/privatelinkresources.go +++ b/services/mariadb/mgmt/2020-01-01/mariadb/privatelinkresources.go @@ -87,6 +87,7 @@ func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.PrivateLinkResourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client PrivateLinkResourcesClient) ListByServer(ctx context.Context, resou result.plrlr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.PrivateLinkResourcesClient", "ListByServer", resp, "Failure responding to request") + return } if result.plrlr.hasNextLink() && result.plrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -238,6 +240,7 @@ func (client PrivateLinkResourcesClient) listByServerNextResults(ctx context.Con result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.PrivateLinkResourcesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mariadb/mgmt/2020-01-01/mariadb/querytexts.go b/services/mariadb/mgmt/2020-01-01/mariadb/querytexts.go index 25deaa7070e1..21463f116802 100644 --- a/services/mariadb/mgmt/2020-01-01/mariadb/querytexts.go +++ b/services/mariadb/mgmt/2020-01-01/mariadb/querytexts.go @@ -86,6 +86,7 @@ func (client QueryTextsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.QueryTextsClient", "Get", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client QueryTextsClient) ListByServer(ctx context.Context, resourceGroupNa result.qtrl, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.QueryTextsClient", "ListByServer", resp, "Failure responding to request") + return } if result.qtrl.hasNextLink() && result.qtrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -241,6 +243,7 @@ func (client QueryTextsClient) listByServerNextResults(ctx context.Context, last result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.QueryTextsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mariadb/mgmt/2020-01-01/mariadb/recommendedactions.go b/services/mariadb/mgmt/2020-01-01/mariadb/recommendedactions.go index 3e914fd12e14..e5b4c464dd66 100644 --- a/services/mariadb/mgmt/2020-01-01/mariadb/recommendedactions.go +++ b/services/mariadb/mgmt/2020-01-01/mariadb/recommendedactions.go @@ -88,6 +88,7 @@ func (client RecommendedActionsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.RecommendedActionsClient", "Get", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client RecommendedActionsClient) ListByServer(ctx context.Context, resourc result.rarl, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.RecommendedActionsClient", "ListByServer", resp, "Failure responding to request") + return } if result.rarl.hasNextLink() && result.rarl.IsEmpty() { err = result.NextWithContext(ctx) @@ -246,6 +248,7 @@ func (client RecommendedActionsClient) listByServerNextResults(ctx context.Conte result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.RecommendedActionsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mariadb/mgmt/2020-01-01/mariadb/replicas.go b/services/mariadb/mgmt/2020-01-01/mariadb/replicas.go index a00784ca5cee..8195bfa44a1d 100644 --- a/services/mariadb/mgmt/2020-01-01/mariadb/replicas.go +++ b/services/mariadb/mgmt/2020-01-01/mariadb/replicas.go @@ -85,6 +85,7 @@ func (client ReplicasClient) ListByServer(ctx context.Context, resourceGroupName result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.ReplicasClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/mariadb/mgmt/2020-01-01/mariadb/servers.go b/services/mariadb/mgmt/2020-01-01/mariadb/servers.go index 75667027fe26..28556c52fd30 100644 --- a/services/mariadb/mgmt/2020-01-01/mariadb/servers.go +++ b/services/mariadb/mgmt/2020-01-01/mariadb/servers.go @@ -265,6 +265,7 @@ func (client ServersClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.ServersClient", "Get", resp, "Failure responding to request") + return } return @@ -343,6 +344,7 @@ func (client ServersClient) List(ctx context.Context) (result ServerListResult, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.ServersClient", "List", resp, "Failure responding to request") + return } return @@ -425,6 +427,7 @@ func (client ServersClient) ListByResourceGroup(ctx context.Context, resourceGro result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.ServersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return diff --git a/services/mariadb/mgmt/2020-01-01/mariadb/serversecurityalertpolicies.go b/services/mariadb/mgmt/2020-01-01/mariadb/serversecurityalertpolicies.go index 5078a89ed0a5..efde2e5b59b8 100644 --- a/services/mariadb/mgmt/2020-01-01/mariadb/serversecurityalertpolicies.go +++ b/services/mariadb/mgmt/2020-01-01/mariadb/serversecurityalertpolicies.go @@ -175,6 +175,7 @@ func (client ServerSecurityAlertPoliciesClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.ServerSecurityAlertPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/mariadb/mgmt/2020-01-01/mariadb/topquerystatistics.go b/services/mariadb/mgmt/2020-01-01/mariadb/topquerystatistics.go index f06fa606e8f8..ea50e30c6c0b 100644 --- a/services/mariadb/mgmt/2020-01-01/mariadb/topquerystatistics.go +++ b/services/mariadb/mgmt/2020-01-01/mariadb/topquerystatistics.go @@ -87,6 +87,7 @@ func (client TopQueryStatisticsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.TopQueryStatisticsClient", "Get", resp, "Failure responding to request") + return } return @@ -184,6 +185,7 @@ func (client TopQueryStatisticsClient) ListByServer(ctx context.Context, resourc result.tqsrl, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.TopQueryStatisticsClient", "ListByServer", resp, "Failure responding to request") + return } if result.tqsrl.hasNextLink() && result.tqsrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -250,6 +252,7 @@ func (client TopQueryStatisticsClient) listByServerNextResults(ctx context.Conte result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.TopQueryStatisticsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mariadb/mgmt/2020-01-01/mariadb/virtualnetworkrules.go b/services/mariadb/mgmt/2020-01-01/mariadb/virtualnetworkrules.go index cf0e9b1c5e72..0953d285fb73 100644 --- a/services/mariadb/mgmt/2020-01-01/mariadb/virtualnetworkrules.go +++ b/services/mariadb/mgmt/2020-01-01/mariadb/virtualnetworkrules.go @@ -266,6 +266,7 @@ func (client VirtualNetworkRulesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.VirtualNetworkRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -353,6 +354,7 @@ func (client VirtualNetworkRulesClient) ListByServer(ctx context.Context, resour result.vnrlr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.VirtualNetworkRulesClient", "ListByServer", resp, "Failure responding to request") + return } if result.vnrlr.hasNextLink() && result.vnrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -417,6 +419,7 @@ func (client VirtualNetworkRulesClient) listByServerNextResults(ctx context.Cont result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.VirtualNetworkRulesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mariadb/mgmt/2020-01-01/mariadb/waitstatistics.go b/services/mariadb/mgmt/2020-01-01/mariadb/waitstatistics.go index 89e6a9ba49f8..ddfef8f9dea5 100644 --- a/services/mariadb/mgmt/2020-01-01/mariadb/waitstatistics.go +++ b/services/mariadb/mgmt/2020-01-01/mariadb/waitstatistics.go @@ -86,6 +86,7 @@ func (client WaitStatisticsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.WaitStatisticsClient", "Get", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client WaitStatisticsClient) ListByServer(ctx context.Context, resourceGro result.wsrl, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.WaitStatisticsClient", "ListByServer", resp, "Failure responding to request") + return } if result.wsrl.hasNextLink() && result.wsrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -246,6 +248,7 @@ func (client WaitStatisticsClient) listByServerNextResults(ctx context.Context, result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.WaitStatisticsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/marketplaceordering/mgmt/2015-06-01/marketplaceordering/marketplaceagreements.go b/services/marketplaceordering/mgmt/2015-06-01/marketplaceordering/marketplaceagreements.go index cb930c3062af..6063a1d6435a 100644 --- a/services/marketplaceordering/mgmt/2015-06-01/marketplaceordering/marketplaceagreements.go +++ b/services/marketplaceordering/mgmt/2015-06-01/marketplaceordering/marketplaceagreements.go @@ -74,6 +74,7 @@ func (client MarketplaceAgreementsClient) Cancel(ctx context.Context, publisherI result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "marketplaceordering.MarketplaceAgreementsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client MarketplaceAgreementsClient) Create(ctx context.Context, publisherI result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "marketplaceordering.MarketplaceAgreementsClient", "Create", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client MarketplaceAgreementsClient) Get(ctx context.Context, publisherID s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "marketplaceordering.MarketplaceAgreementsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +313,7 @@ func (client MarketplaceAgreementsClient) GetAgreement(ctx context.Context, publ result, err = client.GetAgreementResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "marketplaceordering.MarketplaceAgreementsClient", "GetAgreement", resp, "Failure responding to request") + return } return @@ -383,6 +387,7 @@ func (client MarketplaceAgreementsClient) List(ctx context.Context) (result List result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "marketplaceordering.MarketplaceAgreementsClient", "List", resp, "Failure responding to request") + return } return @@ -457,6 +462,7 @@ func (client MarketplaceAgreementsClient) Sign(ctx context.Context, publisherID result, err = client.SignResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "marketplaceordering.MarketplaceAgreementsClient", "Sign", resp, "Failure responding to request") + return } return diff --git a/services/marketplaceordering/mgmt/2015-06-01/marketplaceordering/operations.go b/services/marketplaceordering/mgmt/2015-06-01/marketplaceordering/operations.go index 0b8afc163ce3..b2614f6f4944 100644 --- a/services/marketplaceordering/mgmt/2015-06-01/marketplaceordering/operations.go +++ b/services/marketplaceordering/mgmt/2015-06-01/marketplaceordering/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "marketplaceordering.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "marketplaceordering.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mediaservices/mgmt/2015-10-01/media/operations.go b/services/mediaservices/mgmt/2015-10-01/media/operations.go index fb629d8cdd97..9304d0f8ea66 100644 --- a/services/mediaservices/mgmt/2015-10-01/media/operations.go +++ b/services/mediaservices/mgmt/2015-10-01/media/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/mediaservices/mgmt/2015-10-01/media/service.go b/services/mediaservices/mgmt/2015-10-01/media/service.go index 0b73f424a360..3eced76edf15 100644 --- a/services/mediaservices/mgmt/2015-10-01/media/service.go +++ b/services/mediaservices/mgmt/2015-10-01/media/service.go @@ -83,6 +83,7 @@ func (client ServiceClient) CheckNameAvailability(ctx context.Context, parameter result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ServiceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client ServiceClient) Create(ctx context.Context, resourceGroupName string result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ServiceClient", "Create", resp, "Failure responding to request") + return } return @@ -252,6 +254,7 @@ func (client ServiceClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ServiceClient", "Delete", resp, "Failure responding to request") + return } return @@ -334,6 +337,7 @@ func (client ServiceClient) Get(ctx context.Context, resourceGroupName string, m result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ServiceClient", "Get", resp, "Failure responding to request") + return } return @@ -408,6 +412,7 @@ func (client ServiceClient) ListByResourceGroup(ctx context.Context, resourceGro result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ServiceClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -490,6 +495,7 @@ func (client ServiceClient) ListKeys(ctx context.Context, resourceGroupName stri result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ServiceClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -574,6 +580,7 @@ func (client ServiceClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ServiceClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -662,6 +669,7 @@ func (client ServiceClient) SyncStorageKeys(ctx context.Context, resourceGroupNa result, err = client.SyncStorageKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ServiceClient", "SyncStorageKeys", resp, "Failure responding to request") + return } return @@ -747,6 +755,7 @@ func (client ServiceClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ServiceClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/mediaservices/mgmt/2018-07-01/media/accountfilters.go b/services/mediaservices/mgmt/2018-07-01/media/accountfilters.go index 9e95dc1fa2c7..e51eaf8028cf 100644 --- a/services/mediaservices/mgmt/2018-07-01/media/accountfilters.go +++ b/services/mediaservices/mgmt/2018-07-01/media/accountfilters.go @@ -84,6 +84,7 @@ func (client AccountFiltersClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AccountFiltersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client AccountFiltersClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AccountFiltersClient", "Delete", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client AccountFiltersClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AccountFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client AccountFiltersClient) List(ctx context.Context, resourceGroupName s result.afc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AccountFiltersClient", "List", resp, "Failure responding to request") + return } if result.afc.hasNextLink() && result.afc.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +384,7 @@ func (client AccountFiltersClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AccountFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -433,6 +438,7 @@ func (client AccountFiltersClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AccountFiltersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/mediaservices/mgmt/2018-07-01/media/assetfilters.go b/services/mediaservices/mgmt/2018-07-01/media/assetfilters.go index ca3cb9c56f34..15d032535fda 100644 --- a/services/mediaservices/mgmt/2018-07-01/media/assetfilters.go +++ b/services/mediaservices/mgmt/2018-07-01/media/assetfilters.go @@ -85,6 +85,7 @@ func (client AssetFiltersClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetFiltersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client AssetFiltersClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetFiltersClient", "Delete", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client AssetFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +326,7 @@ func (client AssetFiltersClient) List(ctx context.Context, resourceGroupName str result.afc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetFiltersClient", "List", resp, "Failure responding to request") + return } if result.afc.hasNextLink() && result.afc.IsEmpty() { err = result.NextWithContext(ctx) @@ -388,6 +392,7 @@ func (client AssetFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -442,6 +447,7 @@ func (client AssetFiltersClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetFiltersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/mediaservices/mgmt/2018-07-01/media/assets.go b/services/mediaservices/mgmt/2018-07-01/media/assets.go index f888ce7a3128..39c53fcca05a 100644 --- a/services/mediaservices/mgmt/2018-07-01/media/assets.go +++ b/services/mediaservices/mgmt/2018-07-01/media/assets.go @@ -74,6 +74,7 @@ func (client AssetsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client AssetsClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client AssetsClient) Get(ctx context.Context, resourceGroupName string, ac result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +310,7 @@ func (client AssetsClient) GetEncryptionKey(ctx context.Context, resourceGroupNa result, err = client.GetEncryptionKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "GetEncryptionKey", resp, "Failure responding to request") + return } return @@ -388,6 +392,7 @@ func (client AssetsClient) List(ctx context.Context, resourceGroupName string, a result.ac, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "List", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -461,6 +466,7 @@ func (client AssetsClient) listNextResults(ctx context.Context, lastResults Asse result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +521,7 @@ func (client AssetsClient) ListContainerSas(ctx context.Context, resourceGroupNa result, err = client.ListContainerSasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "ListContainerSas", resp, "Failure responding to request") + return } return @@ -594,6 +601,7 @@ func (client AssetsClient) ListStreamingLocators(ctx context.Context, resourceGr result, err = client.ListStreamingLocatorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "ListStreamingLocators", resp, "Failure responding to request") + return } return @@ -672,6 +680,7 @@ func (client AssetsClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/mediaservices/mgmt/2018-07-01/media/contentkeypolicies.go b/services/mediaservices/mgmt/2018-07-01/media/contentkeypolicies.go index 10ce2e28a6c0..5b80adaac4cc 100644 --- a/services/mediaservices/mgmt/2018-07-01/media/contentkeypolicies.go +++ b/services/mediaservices/mgmt/2018-07-01/media/contentkeypolicies.go @@ -83,6 +83,7 @@ func (client ContentKeyPoliciesClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client ContentKeyPoliciesClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client ContentKeyPoliciesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +318,7 @@ func (client ContentKeyPoliciesClient) GetPolicyPropertiesWithSecrets(ctx contex result, err = client.GetPolicyPropertiesWithSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "GetPolicyPropertiesWithSecrets", resp, "Failure responding to request") + return } return @@ -396,6 +400,7 @@ func (client ContentKeyPoliciesClient) List(ctx context.Context, resourceGroupNa result.ckpc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "List", resp, "Failure responding to request") + return } if result.ckpc.hasNextLink() && result.ckpc.IsEmpty() { err = result.NextWithContext(ctx) @@ -469,6 +474,7 @@ func (client ContentKeyPoliciesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -522,6 +528,7 @@ func (client ContentKeyPoliciesClient) Update(ctx context.Context, resourceGroup result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/mediaservices/mgmt/2018-07-01/media/jobs.go b/services/mediaservices/mgmt/2018-07-01/media/jobs.go index 4a935b6d8694..f3e04ce581b6 100644 --- a/services/mediaservices/mgmt/2018-07-01/media/jobs.go +++ b/services/mediaservices/mgmt/2018-07-01/media/jobs.go @@ -75,6 +75,7 @@ func (client JobsClient) CancelJob(ctx context.Context, resourceGroupName string result, err = client.CancelJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "CancelJob", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client JobsClient) Create(ctx context.Context, resourceGroupName string, a result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "Create", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client JobsClient) Delete(ctx context.Context, resourceGroupName string, a result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "Delete", resp, "Failure responding to request") + return } return @@ -322,6 +325,7 @@ func (client JobsClient) Get(ctx context.Context, resourceGroupName string, acco result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "Get", resp, "Failure responding to request") + return } return @@ -403,6 +407,7 @@ func (client JobsClient) List(ctx context.Context, resourceGroupName string, acc result.jc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "List", resp, "Failure responding to request") + return } if result.jc.hasNextLink() && result.jc.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +479,7 @@ func (client JobsClient) listNextResults(ctx context.Context, lastResults JobCol result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -529,6 +535,7 @@ func (client JobsClient) Update(ctx context.Context, resourceGroupName string, a result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/mediaservices/mgmt/2018-07-01/media/liveevents.go b/services/mediaservices/mgmt/2018-07-01/media/liveevents.go index fe59b7a4ce2f..70ea6bfa1fd9 100644 --- a/services/mediaservices/mgmt/2018-07-01/media/liveevents.go +++ b/services/mediaservices/mgmt/2018-07-01/media/liveevents.go @@ -261,6 +261,7 @@ func (client LiveEventsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveEventsClient", "Get", resp, "Failure responding to request") + return } return @@ -338,6 +339,7 @@ func (client LiveEventsClient) List(ctx context.Context, resourceGroupName strin result.lelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveEventsClient", "List", resp, "Failure responding to request") + return } if result.lelr.hasNextLink() && result.lelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +404,7 @@ func (client LiveEventsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveEventsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mediaservices/mgmt/2018-07-01/media/liveoutputs.go b/services/mediaservices/mgmt/2018-07-01/media/liveoutputs.go index c7d37f8c21ef..efd68c7d9f9a 100644 --- a/services/mediaservices/mgmt/2018-07-01/media/liveoutputs.go +++ b/services/mediaservices/mgmt/2018-07-01/media/liveoutputs.go @@ -276,6 +276,7 @@ func (client LiveOutputsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveOutputsClient", "Get", resp, "Failure responding to request") + return } return @@ -363,6 +364,7 @@ func (client LiveOutputsClient) List(ctx context.Context, resourceGroupName stri result.lolr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveOutputsClient", "List", resp, "Failure responding to request") + return } if result.lolr.hasNextLink() && result.lolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -428,6 +430,7 @@ func (client LiveOutputsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveOutputsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mediaservices/mgmt/2018-07-01/media/locations.go b/services/mediaservices/mgmt/2018-07-01/media/locations.go index d7a4abf06014..855e04005c3e 100644 --- a/services/mediaservices/mgmt/2018-07-01/media/locations.go +++ b/services/mediaservices/mgmt/2018-07-01/media/locations.go @@ -72,6 +72,7 @@ func (client LocationsClient) CheckNameAvailability(ctx context.Context, locatio result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LocationsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/mediaservices/mgmt/2018-07-01/media/mediaservices.go b/services/mediaservices/mgmt/2018-07-01/media/mediaservices.go index e632c1f19bec..6e75643b8c73 100644 --- a/services/mediaservices/mgmt/2018-07-01/media/mediaservices.go +++ b/services/mediaservices/mgmt/2018-07-01/media/mediaservices.go @@ -73,6 +73,7 @@ func (client MediaservicesClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client MediaservicesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -224,6 +226,7 @@ func (client MediaservicesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +301,7 @@ func (client MediaservicesClient) GetBySubscription(ctx context.Context, account result, err = client.GetBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "GetBySubscription", resp, "Failure responding to request") + return } return @@ -372,6 +376,7 @@ func (client MediaservicesClient) List(ctx context.Context, resourceGroupName st result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -435,6 +440,7 @@ func (client MediaservicesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -484,6 +490,7 @@ func (client MediaservicesClient) ListBySubscription(ctx context.Context) (resul result.smsc, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.smsc.hasNextLink() && result.smsc.IsEmpty() { err = result.NextWithContext(ctx) @@ -546,6 +553,7 @@ func (client MediaservicesClient) listBySubscriptionNextResults(ctx context.Cont result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -598,6 +606,7 @@ func (client MediaservicesClient) ListEdgePolicies(ctx context.Context, resource result, err = client.ListEdgePoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "ListEdgePolicies", resp, "Failure responding to request") + return } return @@ -676,6 +685,7 @@ func (client MediaservicesClient) SyncStorageKeys(ctx context.Context, resourceG result, err = client.SyncStorageKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "SyncStorageKeys", resp, "Failure responding to request") + return } return @@ -753,6 +763,7 @@ func (client MediaservicesClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/mediaservices/mgmt/2018-07-01/media/operations.go b/services/mediaservices/mgmt/2018-07-01/media/operations.go index ff903e2dc63e..a13a3c080562 100644 --- a/services/mediaservices/mgmt/2018-07-01/media/operations.go +++ b/services/mediaservices/mgmt/2018-07-01/media/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationCollec result.oc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.OperationsClient", "List", resp, "Failure responding to request") + return } if result.oc.hasNextLink() && result.oc.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mediaservices/mgmt/2018-07-01/media/streamingendpoints.go b/services/mediaservices/mgmt/2018-07-01/media/streamingendpoints.go index 01efc1e35b76..15ecd11ebe8c 100644 --- a/services/mediaservices/mgmt/2018-07-01/media/streamingendpoints.go +++ b/services/mediaservices/mgmt/2018-07-01/media/streamingendpoints.go @@ -262,6 +262,7 @@ func (client StreamingEndpointsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -339,6 +340,7 @@ func (client StreamingEndpointsClient) List(ctx context.Context, resourceGroupNa result.selr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingEndpointsClient", "List", resp, "Failure responding to request") + return } if result.selr.hasNextLink() && result.selr.IsEmpty() { err = result.NextWithContext(ctx) @@ -403,6 +405,7 @@ func (client StreamingEndpointsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mediaservices/mgmt/2018-07-01/media/streaminglocators.go b/services/mediaservices/mgmt/2018-07-01/media/streaminglocators.go index e90a5ac31760..708882252a0a 100644 --- a/services/mediaservices/mgmt/2018-07-01/media/streaminglocators.go +++ b/services/mediaservices/mgmt/2018-07-01/media/streaminglocators.go @@ -85,6 +85,7 @@ func (client StreamingLocatorsClient) Create(ctx context.Context, resourceGroupN result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "Create", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client StreamingLocatorsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "Delete", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client StreamingLocatorsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +324,7 @@ func (client StreamingLocatorsClient) List(ctx context.Context, resourceGroupNam result.slc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "List", resp, "Failure responding to request") + return } if result.slc.hasNextLink() && result.slc.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +398,7 @@ func (client StreamingLocatorsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -446,6 +451,7 @@ func (client StreamingLocatorsClient) ListContentKeys(ctx context.Context, resou result, err = client.ListContentKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "ListContentKeys", resp, "Failure responding to request") + return } return @@ -523,6 +529,7 @@ func (client StreamingLocatorsClient) ListPaths(ctx context.Context, resourceGro result, err = client.ListPathsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "ListPaths", resp, "Failure responding to request") + return } return diff --git a/services/mediaservices/mgmt/2018-07-01/media/streamingpolicies.go b/services/mediaservices/mgmt/2018-07-01/media/streamingpolicies.go index eb45354c5fd9..07dcee469c34 100644 --- a/services/mediaservices/mgmt/2018-07-01/media/streamingpolicies.go +++ b/services/mediaservices/mgmt/2018-07-01/media/streamingpolicies.go @@ -119,6 +119,7 @@ func (client StreamingPoliciesClient) Create(ctx context.Context, resourceGroupN result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingPoliciesClient", "Create", resp, "Failure responding to request") + return } return @@ -198,6 +199,7 @@ func (client StreamingPoliciesClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client StreamingPoliciesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +358,7 @@ func (client StreamingPoliciesClient) List(ctx context.Context, resourceGroupNam result.spc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingPoliciesClient", "List", resp, "Failure responding to request") + return } if result.spc.hasNextLink() && result.spc.IsEmpty() { err = result.NextWithContext(ctx) @@ -428,6 +432,7 @@ func (client StreamingPoliciesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mediaservices/mgmt/2018-07-01/media/transforms.go b/services/mediaservices/mgmt/2018-07-01/media/transforms.go index b79813eaa4cf..7a84393b6f7f 100644 --- a/services/mediaservices/mgmt/2018-07-01/media/transforms.go +++ b/services/mediaservices/mgmt/2018-07-01/media/transforms.go @@ -82,6 +82,7 @@ func (client TransformsClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client TransformsClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client TransformsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client TransformsClient) List(ctx context.Context, resourceGroupName strin result.tc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "List", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +390,7 @@ func (client TransformsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -439,6 +444,7 @@ func (client TransformsClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/mediaservices/mgmt/2020-05-01/media/accountfilters.go b/services/mediaservices/mgmt/2020-05-01/media/accountfilters.go index d2987303842c..55c7a5dd8794 100644 --- a/services/mediaservices/mgmt/2020-05-01/media/accountfilters.go +++ b/services/mediaservices/mgmt/2020-05-01/media/accountfilters.go @@ -84,6 +84,7 @@ func (client AccountFiltersClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AccountFiltersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client AccountFiltersClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AccountFiltersClient", "Delete", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client AccountFiltersClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AccountFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client AccountFiltersClient) List(ctx context.Context, resourceGroupName s result.afc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AccountFiltersClient", "List", resp, "Failure responding to request") + return } if result.afc.hasNextLink() && result.afc.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +384,7 @@ func (client AccountFiltersClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AccountFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -433,6 +438,7 @@ func (client AccountFiltersClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AccountFiltersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/mediaservices/mgmt/2020-05-01/media/assetfilters.go b/services/mediaservices/mgmt/2020-05-01/media/assetfilters.go index f6d5735d197b..22903aa81d8e 100644 --- a/services/mediaservices/mgmt/2020-05-01/media/assetfilters.go +++ b/services/mediaservices/mgmt/2020-05-01/media/assetfilters.go @@ -85,6 +85,7 @@ func (client AssetFiltersClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetFiltersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client AssetFiltersClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetFiltersClient", "Delete", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client AssetFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +326,7 @@ func (client AssetFiltersClient) List(ctx context.Context, resourceGroupName str result.afc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetFiltersClient", "List", resp, "Failure responding to request") + return } if result.afc.hasNextLink() && result.afc.IsEmpty() { err = result.NextWithContext(ctx) @@ -388,6 +392,7 @@ func (client AssetFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -442,6 +447,7 @@ func (client AssetFiltersClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetFiltersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/mediaservices/mgmt/2020-05-01/media/assets.go b/services/mediaservices/mgmt/2020-05-01/media/assets.go index a874c76698ad..87b2ace1f30a 100644 --- a/services/mediaservices/mgmt/2020-05-01/media/assets.go +++ b/services/mediaservices/mgmt/2020-05-01/media/assets.go @@ -74,6 +74,7 @@ func (client AssetsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client AssetsClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client AssetsClient) Get(ctx context.Context, resourceGroupName string, ac result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +310,7 @@ func (client AssetsClient) GetEncryptionKey(ctx context.Context, resourceGroupNa result, err = client.GetEncryptionKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "GetEncryptionKey", resp, "Failure responding to request") + return } return @@ -388,6 +392,7 @@ func (client AssetsClient) List(ctx context.Context, resourceGroupName string, a result.ac, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "List", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -461,6 +466,7 @@ func (client AssetsClient) listNextResults(ctx context.Context, lastResults Asse result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +521,7 @@ func (client AssetsClient) ListContainerSas(ctx context.Context, resourceGroupNa result, err = client.ListContainerSasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "ListContainerSas", resp, "Failure responding to request") + return } return @@ -594,6 +601,7 @@ func (client AssetsClient) ListStreamingLocators(ctx context.Context, resourceGr result, err = client.ListStreamingLocatorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "ListStreamingLocators", resp, "Failure responding to request") + return } return @@ -672,6 +680,7 @@ func (client AssetsClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/mediaservices/mgmt/2020-05-01/media/contentkeypolicies.go b/services/mediaservices/mgmt/2020-05-01/media/contentkeypolicies.go index 316359576f32..a2867fb30a0e 100644 --- a/services/mediaservices/mgmt/2020-05-01/media/contentkeypolicies.go +++ b/services/mediaservices/mgmt/2020-05-01/media/contentkeypolicies.go @@ -83,6 +83,7 @@ func (client ContentKeyPoliciesClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client ContentKeyPoliciesClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client ContentKeyPoliciesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +318,7 @@ func (client ContentKeyPoliciesClient) GetPolicyPropertiesWithSecrets(ctx contex result, err = client.GetPolicyPropertiesWithSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "GetPolicyPropertiesWithSecrets", resp, "Failure responding to request") + return } return @@ -396,6 +400,7 @@ func (client ContentKeyPoliciesClient) List(ctx context.Context, resourceGroupNa result.ckpc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "List", resp, "Failure responding to request") + return } if result.ckpc.hasNextLink() && result.ckpc.IsEmpty() { err = result.NextWithContext(ctx) @@ -469,6 +474,7 @@ func (client ContentKeyPoliciesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -522,6 +528,7 @@ func (client ContentKeyPoliciesClient) Update(ctx context.Context, resourceGroup result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/mediaservices/mgmt/2020-05-01/media/jobs.go b/services/mediaservices/mgmt/2020-05-01/media/jobs.go index 9a31eea87ffd..e4dafcb37348 100644 --- a/services/mediaservices/mgmt/2020-05-01/media/jobs.go +++ b/services/mediaservices/mgmt/2020-05-01/media/jobs.go @@ -75,6 +75,7 @@ func (client JobsClient) CancelJob(ctx context.Context, resourceGroupName string result, err = client.CancelJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "CancelJob", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client JobsClient) Create(ctx context.Context, resourceGroupName string, a result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "Create", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client JobsClient) Delete(ctx context.Context, resourceGroupName string, a result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "Delete", resp, "Failure responding to request") + return } return @@ -322,6 +325,7 @@ func (client JobsClient) Get(ctx context.Context, resourceGroupName string, acco result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "Get", resp, "Failure responding to request") + return } return @@ -403,6 +407,7 @@ func (client JobsClient) List(ctx context.Context, resourceGroupName string, acc result.jc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "List", resp, "Failure responding to request") + return } if result.jc.hasNextLink() && result.jc.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +479,7 @@ func (client JobsClient) listNextResults(ctx context.Context, lastResults JobCol result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -529,6 +535,7 @@ func (client JobsClient) Update(ctx context.Context, resourceGroupName string, a result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/mediaservices/mgmt/2020-05-01/media/liveevents.go b/services/mediaservices/mgmt/2020-05-01/media/liveevents.go index 0ac4d3abe31f..640c6399608e 100644 --- a/services/mediaservices/mgmt/2020-05-01/media/liveevents.go +++ b/services/mediaservices/mgmt/2020-05-01/media/liveevents.go @@ -345,6 +345,7 @@ func (client LiveEventsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveEventsClient", "Get", resp, "Failure responding to request") + return } return @@ -422,6 +423,7 @@ func (client LiveEventsClient) List(ctx context.Context, resourceGroupName strin result.lelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveEventsClient", "List", resp, "Failure responding to request") + return } if result.lelr.hasNextLink() && result.lelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -486,6 +488,7 @@ func (client LiveEventsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveEventsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mediaservices/mgmt/2020-05-01/media/liveoutputs.go b/services/mediaservices/mgmt/2020-05-01/media/liveoutputs.go index e61f43a30ab4..5eb2837777a5 100644 --- a/services/mediaservices/mgmt/2020-05-01/media/liveoutputs.go +++ b/services/mediaservices/mgmt/2020-05-01/media/liveoutputs.go @@ -276,6 +276,7 @@ func (client LiveOutputsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveOutputsClient", "Get", resp, "Failure responding to request") + return } return @@ -363,6 +364,7 @@ func (client LiveOutputsClient) List(ctx context.Context, resourceGroupName stri result.lolr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveOutputsClient", "List", resp, "Failure responding to request") + return } if result.lolr.hasNextLink() && result.lolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -428,6 +430,7 @@ func (client LiveOutputsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveOutputsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mediaservices/mgmt/2020-05-01/media/locations.go b/services/mediaservices/mgmt/2020-05-01/media/locations.go index b7034c4373b7..adf82b5c49bb 100644 --- a/services/mediaservices/mgmt/2020-05-01/media/locations.go +++ b/services/mediaservices/mgmt/2020-05-01/media/locations.go @@ -72,6 +72,7 @@ func (client LocationsClient) CheckNameAvailability(ctx context.Context, locatio result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LocationsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/mediaservices/mgmt/2020-05-01/media/mediaservices.go b/services/mediaservices/mgmt/2020-05-01/media/mediaservices.go index a7d21498708b..faca5fd0a3ff 100644 --- a/services/mediaservices/mgmt/2020-05-01/media/mediaservices.go +++ b/services/mediaservices/mgmt/2020-05-01/media/mediaservices.go @@ -73,6 +73,7 @@ func (client MediaservicesClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client MediaservicesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -224,6 +226,7 @@ func (client MediaservicesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +301,7 @@ func (client MediaservicesClient) GetBySubscription(ctx context.Context, account result, err = client.GetBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "GetBySubscription", resp, "Failure responding to request") + return } return @@ -372,6 +376,7 @@ func (client MediaservicesClient) List(ctx context.Context, resourceGroupName st result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -435,6 +440,7 @@ func (client MediaservicesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -484,6 +490,7 @@ func (client MediaservicesClient) ListBySubscription(ctx context.Context) (resul result.sc, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -546,6 +553,7 @@ func (client MediaservicesClient) listBySubscriptionNextResults(ctx context.Cont result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -598,6 +606,7 @@ func (client MediaservicesClient) ListEdgePolicies(ctx context.Context, resource result, err = client.ListEdgePoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "ListEdgePolicies", resp, "Failure responding to request") + return } return @@ -676,6 +685,7 @@ func (client MediaservicesClient) SyncStorageKeys(ctx context.Context, resourceG result, err = client.SyncStorageKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "SyncStorageKeys", resp, "Failure responding to request") + return } return @@ -753,6 +763,7 @@ func (client MediaservicesClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/mediaservices/mgmt/2020-05-01/media/operations.go b/services/mediaservices/mgmt/2020-05-01/media/operations.go index 314b58217e8d..3a0bcfdea6ef 100644 --- a/services/mediaservices/mgmt/2020-05-01/media/operations.go +++ b/services/mediaservices/mgmt/2020-05-01/media/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationCollec result.oc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.OperationsClient", "List", resp, "Failure responding to request") + return } if result.oc.hasNextLink() && result.oc.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mediaservices/mgmt/2020-05-01/media/privateendpointconnections.go b/services/mediaservices/mgmt/2020-05-01/media/privateendpointconnections.go index 9f77dd1c4af9..2e60e7f45f86 100644 --- a/services/mediaservices/mgmt/2020-05-01/media/privateendpointconnections.go +++ b/services/mediaservices/mgmt/2020-05-01/media/privateendpointconnections.go @@ -82,6 +82,7 @@ func (client PrivateEndpointConnectionsClient) CreateOrUpdate(ctx context.Contex result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.PrivateEndpointConnectionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client PrivateEndpointConnectionsClient) Delete(ctx context.Context, resou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.PrivateEndpointConnectionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +314,7 @@ func (client PrivateEndpointConnectionsClient) List(ctx context.Context, resourc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.PrivateEndpointConnectionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/mediaservices/mgmt/2020-05-01/media/privatelinkresources.go b/services/mediaservices/mgmt/2020-05-01/media/privatelinkresources.go index dda2a3599a7e..acfd6ddc86dc 100644 --- a/services/mediaservices/mgmt/2020-05-01/media/privatelinkresources.go +++ b/services/mediaservices/mgmt/2020-05-01/media/privatelinkresources.go @@ -73,6 +73,7 @@ func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.PrivateLinkResourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client PrivateLinkResourcesClient) List(ctx context.Context, resourceGroup result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.PrivateLinkResourcesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/mediaservices/mgmt/2020-05-01/media/streamingendpoints.go b/services/mediaservices/mgmt/2020-05-01/media/streamingendpoints.go index e7525a78de7c..499e3886133f 100644 --- a/services/mediaservices/mgmt/2020-05-01/media/streamingendpoints.go +++ b/services/mediaservices/mgmt/2020-05-01/media/streamingendpoints.go @@ -262,6 +262,7 @@ func (client StreamingEndpointsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -339,6 +340,7 @@ func (client StreamingEndpointsClient) List(ctx context.Context, resourceGroupNa result.selr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingEndpointsClient", "List", resp, "Failure responding to request") + return } if result.selr.hasNextLink() && result.selr.IsEmpty() { err = result.NextWithContext(ctx) @@ -403,6 +405,7 @@ func (client StreamingEndpointsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mediaservices/mgmt/2020-05-01/media/streaminglocators.go b/services/mediaservices/mgmt/2020-05-01/media/streaminglocators.go index 70f683cafc6b..53b72e4876ba 100644 --- a/services/mediaservices/mgmt/2020-05-01/media/streaminglocators.go +++ b/services/mediaservices/mgmt/2020-05-01/media/streaminglocators.go @@ -85,6 +85,7 @@ func (client StreamingLocatorsClient) Create(ctx context.Context, resourceGroupN result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "Create", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client StreamingLocatorsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "Delete", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client StreamingLocatorsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +324,7 @@ func (client StreamingLocatorsClient) List(ctx context.Context, resourceGroupNam result.slc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "List", resp, "Failure responding to request") + return } if result.slc.hasNextLink() && result.slc.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +398,7 @@ func (client StreamingLocatorsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -446,6 +451,7 @@ func (client StreamingLocatorsClient) ListContentKeys(ctx context.Context, resou result, err = client.ListContentKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "ListContentKeys", resp, "Failure responding to request") + return } return @@ -523,6 +529,7 @@ func (client StreamingLocatorsClient) ListPaths(ctx context.Context, resourceGro result, err = client.ListPathsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "ListPaths", resp, "Failure responding to request") + return } return diff --git a/services/mediaservices/mgmt/2020-05-01/media/streamingpolicies.go b/services/mediaservices/mgmt/2020-05-01/media/streamingpolicies.go index 06cc73a426d3..4f41b551255b 100644 --- a/services/mediaservices/mgmt/2020-05-01/media/streamingpolicies.go +++ b/services/mediaservices/mgmt/2020-05-01/media/streamingpolicies.go @@ -119,6 +119,7 @@ func (client StreamingPoliciesClient) Create(ctx context.Context, resourceGroupN result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingPoliciesClient", "Create", resp, "Failure responding to request") + return } return @@ -198,6 +199,7 @@ func (client StreamingPoliciesClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client StreamingPoliciesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +358,7 @@ func (client StreamingPoliciesClient) List(ctx context.Context, resourceGroupNam result.spc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingPoliciesClient", "List", resp, "Failure responding to request") + return } if result.spc.hasNextLink() && result.spc.IsEmpty() { err = result.NextWithContext(ctx) @@ -428,6 +432,7 @@ func (client StreamingPoliciesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mediaservices/mgmt/2020-05-01/media/transforms.go b/services/mediaservices/mgmt/2020-05-01/media/transforms.go index ca2d9a013306..7c8c76aa86e2 100644 --- a/services/mediaservices/mgmt/2020-05-01/media/transforms.go +++ b/services/mediaservices/mgmt/2020-05-01/media/transforms.go @@ -82,6 +82,7 @@ func (client TransformsClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client TransformsClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client TransformsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client TransformsClient) List(ctx context.Context, resourceGroupName strin result.tc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "List", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +390,7 @@ func (client TransformsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -439,6 +444,7 @@ func (client TransformsClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/migrate/mgmt/2018-02-02/migrate/assessedmachines.go b/services/migrate/mgmt/2018-02-02/migrate/assessedmachines.go index 80cf555d6a2a..4b6b3f9fe06e 100644 --- a/services/migrate/mgmt/2018-02-02/migrate/assessedmachines.go +++ b/services/migrate/mgmt/2018-02-02/migrate/assessedmachines.go @@ -76,6 +76,7 @@ func (client AssessedMachinesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.AssessedMachinesClient", "Get", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client AssessedMachinesClient) ListByAssessment(ctx context.Context, resou result, err = client.ListByAssessmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.AssessedMachinesClient", "ListByAssessment", resp, "Failure responding to request") + return } return diff --git a/services/migrate/mgmt/2018-02-02/migrate/assessmentoptions.go b/services/migrate/mgmt/2018-02-02/migrate/assessmentoptions.go index 1a036d00d2ad..e8d1fc397123 100644 --- a/services/migrate/mgmt/2018-02-02/migrate/assessmentoptions.go +++ b/services/migrate/mgmt/2018-02-02/migrate/assessmentoptions.go @@ -72,6 +72,7 @@ func (client AssessmentOptionsClient) Get(ctx context.Context, locationName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.AssessmentOptionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/migrate/mgmt/2018-02-02/migrate/assessments.go b/services/migrate/mgmt/2018-02-02/migrate/assessments.go index 01c5d8e7e3d6..64899c0091e9 100644 --- a/services/migrate/mgmt/2018-02-02/migrate/assessments.go +++ b/services/migrate/mgmt/2018-02-02/migrate/assessments.go @@ -97,6 +97,7 @@ func (client AssessmentsClient) Create(ctx context.Context, resourceGroupName st result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.AssessmentsClient", "Create", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client AssessmentsClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.AssessmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -275,6 +277,7 @@ func (client AssessmentsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.AssessmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -358,6 +361,7 @@ func (client AssessmentsClient) GetReportDownloadURL(ctx context.Context, resour result, err = client.GetReportDownloadURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.AssessmentsClient", "GetReportDownloadURL", resp, "Failure responding to request") + return } return @@ -442,6 +446,7 @@ func (client AssessmentsClient) ListByGroup(ctx context.Context, resourceGroupNa result, err = client.ListByGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.AssessmentsClient", "ListByGroup", resp, "Failure responding to request") + return } return @@ -524,6 +529,7 @@ func (client AssessmentsClient) ListByProject(ctx context.Context, resourceGroup result, err = client.ListByProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.AssessmentsClient", "ListByProject", resp, "Failure responding to request") + return } return diff --git a/services/migrate/mgmt/2018-02-02/migrate/groups.go b/services/migrate/mgmt/2018-02-02/migrate/groups.go index 7afe333e2129..9453f100b8cc 100644 --- a/services/migrate/mgmt/2018-02-02/migrate/groups.go +++ b/services/migrate/mgmt/2018-02-02/migrate/groups.go @@ -89,6 +89,7 @@ func (client GroupsClient) Create(ctx context.Context, resourceGroupName string, result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.GroupsClient", "Create", resp, "Failure responding to request") + return } return @@ -182,6 +183,7 @@ func (client GroupsClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.GroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -263,6 +265,7 @@ func (client GroupsClient) Get(ctx context.Context, resourceGroupName string, pr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.GroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +347,7 @@ func (client GroupsClient) ListByProject(ctx context.Context, resourceGroupName result, err = client.ListByProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.GroupsClient", "ListByProject", resp, "Failure responding to request") + return } return diff --git a/services/migrate/mgmt/2018-02-02/migrate/location.go b/services/migrate/mgmt/2018-02-02/migrate/location.go index e2ce4b276fd3..5a7895378414 100644 --- a/services/migrate/mgmt/2018-02-02/migrate/location.go +++ b/services/migrate/mgmt/2018-02-02/migrate/location.go @@ -80,6 +80,7 @@ func (client LocationClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.LocationClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/migrate/mgmt/2018-02-02/migrate/machines.go b/services/migrate/mgmt/2018-02-02/migrate/machines.go index a925fc39a08e..7e5452b099fd 100644 --- a/services/migrate/mgmt/2018-02-02/migrate/machines.go +++ b/services/migrate/mgmt/2018-02-02/migrate/machines.go @@ -73,6 +73,7 @@ func (client MachinesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.MachinesClient", "Get", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client MachinesClient) ListByProject(ctx context.Context, resourceGroupNam result, err = client.ListByProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.MachinesClient", "ListByProject", resp, "Failure responding to request") + return } return diff --git a/services/migrate/mgmt/2018-02-02/migrate/operations.go b/services/migrate/mgmt/2018-02-02/migrate/operations.go index 505f22ec77a4..cfcc94a4cb18 100644 --- a/services/migrate/mgmt/2018-02-02/migrate/operations.go +++ b/services/migrate/mgmt/2018-02-02/migrate/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/migrate/mgmt/2018-02-02/migrate/projects.go b/services/migrate/mgmt/2018-02-02/migrate/projects.go index dc1f16931e34..bfba4e5c6c9f 100644 --- a/services/migrate/mgmt/2018-02-02/migrate/projects.go +++ b/services/migrate/mgmt/2018-02-02/migrate/projects.go @@ -73,6 +73,7 @@ func (client ProjectsClient) Create(ctx context.Context, resourceGroupName strin result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.ProjectsClient", "Create", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client ProjectsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.ProjectsClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client ProjectsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.ProjectsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client ProjectsClient) GetKeys(ctx context.Context, resourceGroupName stri result, err = client.GetKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.ProjectsClient", "GetKeys", resp, "Failure responding to request") + return } return @@ -395,6 +399,7 @@ func (client ProjectsClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.ProjectsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -470,6 +475,7 @@ func (client ProjectsClient) ListBySubscription(ctx context.Context) (result Pro result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.ProjectsClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -548,6 +554,7 @@ func (client ProjectsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.ProjectsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/migrate/mgmt/2020-01-01/migrate/hypervcluster.go b/services/migrate/mgmt/2020-01-01/migrate/hypervcluster.go index 2b5c8a641f00..6277c75136fa 100644 --- a/services/migrate/mgmt/2020-01-01/migrate/hypervcluster.go +++ b/services/migrate/mgmt/2020-01-01/migrate/hypervcluster.go @@ -75,6 +75,7 @@ func (client HyperVClusterClient) GetAllClustersInSite(ctx context.Context, subs result.hvcc, err = client.GetAllClustersInSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.HyperVClusterClient", "GetAllClustersInSite", resp, "Failure responding to request") + return } if result.hvcc.hasNextLink() && result.hvcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -141,6 +142,7 @@ func (client HyperVClusterClient) getAllClustersInSiteNextResults(ctx context.Co result, err = client.GetAllClustersInSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.HyperVClusterClient", "getAllClustersInSiteNextResults", resp, "Failure responding to next results request") + return } return } @@ -195,6 +197,7 @@ func (client HyperVClusterClient) GetCluster(ctx context.Context, subscriptionID result, err = client.GetClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.HyperVClusterClient", "GetCluster", resp, "Failure responding to request") + return } return @@ -274,6 +277,7 @@ func (client HyperVClusterClient) PutCluster(ctx context.Context, subscriptionID result, err = client.PutClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.HyperVClusterClient", "PutCluster", resp, "Failure responding to request") + return } return diff --git a/services/migrate/mgmt/2020-01-01/migrate/hypervhost.go b/services/migrate/mgmt/2020-01-01/migrate/hypervhost.go index c3a463501068..6a7c8183cc81 100644 --- a/services/migrate/mgmt/2020-01-01/migrate/hypervhost.go +++ b/services/migrate/mgmt/2020-01-01/migrate/hypervhost.go @@ -75,6 +75,7 @@ func (client HyperVHostClient) GetAllHostsInSite(ctx context.Context, subscripti result.hvhc, err = client.GetAllHostsInSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.HyperVHostClient", "GetAllHostsInSite", resp, "Failure responding to request") + return } if result.hvhc.hasNextLink() && result.hvhc.IsEmpty() { err = result.NextWithContext(ctx) @@ -141,6 +142,7 @@ func (client HyperVHostClient) getAllHostsInSiteNextResults(ctx context.Context, result, err = client.GetAllHostsInSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.HyperVHostClient", "getAllHostsInSiteNextResults", resp, "Failure responding to next results request") + return } return } @@ -195,6 +197,7 @@ func (client HyperVHostClient) GetHost(ctx context.Context, subscriptionID strin result, err = client.GetHostResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.HyperVHostClient", "GetHost", resp, "Failure responding to request") + return } return @@ -274,6 +277,7 @@ func (client HyperVHostClient) PutHost(ctx context.Context, subscriptionID strin result, err = client.PutHostResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.HyperVHostClient", "PutHost", resp, "Failure responding to request") + return } return diff --git a/services/migrate/mgmt/2020-01-01/migrate/hypervjobs.go b/services/migrate/mgmt/2020-01-01/migrate/hypervjobs.go index 2df8cdfa4697..d17148f4fc7c 100644 --- a/services/migrate/mgmt/2020-01-01/migrate/hypervjobs.go +++ b/services/migrate/mgmt/2020-01-01/migrate/hypervjobs.go @@ -75,6 +75,7 @@ func (client HyperVJobsClient) GetAllJobsInSite(ctx context.Context, subscriptio result.hvjc, err = client.GetAllJobsInSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.HyperVJobsClient", "GetAllJobsInSite", resp, "Failure responding to request") + return } if result.hvjc.hasNextLink() && result.hvjc.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client HyperVJobsClient) getAllJobsInSiteNextResults(ctx context.Context, result, err = client.GetAllJobsInSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.HyperVJobsClient", "getAllJobsInSiteNextResults", resp, "Failure responding to next results request") + return } return } @@ -192,6 +194,7 @@ func (client HyperVJobsClient) GetJob(ctx context.Context, subscriptionID string result, err = client.GetJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.HyperVJobsClient", "GetJob", resp, "Failure responding to request") + return } return diff --git a/services/migrate/mgmt/2020-01-01/migrate/hypervmachines.go b/services/migrate/mgmt/2020-01-01/migrate/hypervmachines.go index 1533abb7dcee..5667f5cde290 100644 --- a/services/migrate/mgmt/2020-01-01/migrate/hypervmachines.go +++ b/services/migrate/mgmt/2020-01-01/migrate/hypervmachines.go @@ -77,6 +77,7 @@ func (client HyperVMachinesClient) GetAllMachinesInSite(ctx context.Context, sub result.hvmc, err = client.GetAllMachinesInSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.HyperVMachinesClient", "GetAllMachinesInSite", resp, "Failure responding to request") + return } if result.hvmc.hasNextLink() && result.hvmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -152,6 +153,7 @@ func (client HyperVMachinesClient) getAllMachinesInSiteNextResults(ctx context.C result, err = client.GetAllMachinesInSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.HyperVMachinesClient", "getAllMachinesInSiteNextResults", resp, "Failure responding to next results request") + return } return } @@ -206,6 +208,7 @@ func (client HyperVMachinesClient) GetMachine(ctx context.Context, subscriptionI result, err = client.GetMachineResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.HyperVMachinesClient", "GetMachine", resp, "Failure responding to request") + return } return diff --git a/services/migrate/mgmt/2020-01-01/migrate/hypervoperationsstatus.go b/services/migrate/mgmt/2020-01-01/migrate/hypervoperationsstatus.go index 671837f2a73f..149148458d09 100644 --- a/services/migrate/mgmt/2020-01-01/migrate/hypervoperationsstatus.go +++ b/services/migrate/mgmt/2020-01-01/migrate/hypervoperationsstatus.go @@ -76,6 +76,7 @@ func (client HyperVOperationsStatusClient) GetOperationStatus(ctx context.Contex result, err = client.GetOperationStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.HyperVOperationsStatusClient", "GetOperationStatus", resp, "Failure responding to request") + return } return diff --git a/services/migrate/mgmt/2020-01-01/migrate/hypervrunasaccounts.go b/services/migrate/mgmt/2020-01-01/migrate/hypervrunasaccounts.go index 2d49c4f7e03c..628f9448ca44 100644 --- a/services/migrate/mgmt/2020-01-01/migrate/hypervrunasaccounts.go +++ b/services/migrate/mgmt/2020-01-01/migrate/hypervrunasaccounts.go @@ -76,6 +76,7 @@ func (client HyperVRunAsAccountsClient) GetAllRunAsAccountsInSite(ctx context.Co result.hvraac, err = client.GetAllRunAsAccountsInSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.HyperVRunAsAccountsClient", "GetAllRunAsAccountsInSite", resp, "Failure responding to request") + return } if result.hvraac.hasNextLink() && result.hvraac.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client HyperVRunAsAccountsClient) getAllRunAsAccountsInSiteNextResults(ctx result, err = client.GetAllRunAsAccountsInSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.HyperVRunAsAccountsClient", "getAllRunAsAccountsInSiteNextResults", resp, "Failure responding to next results request") + return } return } @@ -193,6 +195,7 @@ func (client HyperVRunAsAccountsClient) GetRunAsAccount(ctx context.Context, sub result, err = client.GetRunAsAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.HyperVRunAsAccountsClient", "GetRunAsAccount", resp, "Failure responding to request") + return } return diff --git a/services/migrate/mgmt/2020-01-01/migrate/hypervsites.go b/services/migrate/mgmt/2020-01-01/migrate/hypervsites.go index 3bb997c91b84..a65225ef69ab 100644 --- a/services/migrate/mgmt/2020-01-01/migrate/hypervsites.go +++ b/services/migrate/mgmt/2020-01-01/migrate/hypervsites.go @@ -74,6 +74,7 @@ func (client HyperVSitesClient) DeleteSite(ctx context.Context, subscriptionID s result, err = client.DeleteSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.HyperVSitesClient", "DeleteSite", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client HyperVSitesClient) GetSite(ctx context.Context, subscriptionID stri result, err = client.GetSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.HyperVSitesClient", "GetSite", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client HyperVSitesClient) GetSiteHealthSummary(ctx context.Context, subscr result.shsc, err = client.GetSiteHealthSummaryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.HyperVSitesClient", "GetSiteHealthSummary", resp, "Failure responding to request") + return } if result.shsc.hasNextLink() && result.shsc.IsEmpty() { err = result.NextWithContext(ctx) @@ -289,6 +292,7 @@ func (client HyperVSitesClient) getSiteHealthSummaryNextResults(ctx context.Cont result, err = client.GetSiteHealthSummaryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.HyperVSitesClient", "getSiteHealthSummaryNextResults", resp, "Failure responding to next results request") + return } return } @@ -341,6 +345,7 @@ func (client HyperVSitesClient) GetSiteUsage(ctx context.Context, subscriptionID result, err = client.GetSiteUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.HyperVSitesClient", "GetSiteUsage", resp, "Failure responding to request") + return } return @@ -418,6 +423,7 @@ func (client HyperVSitesClient) PatchSite(ctx context.Context, subscriptionID st result, err = client.PatchSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.HyperVSitesClient", "PatchSite", resp, "Failure responding to request") + return } return @@ -499,6 +505,7 @@ func (client HyperVSitesClient) PutSite(ctx context.Context, subscriptionID stri result, err = client.PutSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.HyperVSitesClient", "PutSite", resp, "Failure responding to request") + return } return @@ -579,6 +586,7 @@ func (client HyperVSitesClient) RefreshSite(ctx context.Context, subscriptionID result, err = client.RefreshSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.HyperVSitesClient", "RefreshSite", resp, "Failure responding to request") + return } return diff --git a/services/migrate/mgmt/2020-01-01/migrate/jobs.go b/services/migrate/mgmt/2020-01-01/migrate/jobs.go index 8c6af5ef8442..fbf1ccfac60b 100644 --- a/services/migrate/mgmt/2020-01-01/migrate/jobs.go +++ b/services/migrate/mgmt/2020-01-01/migrate/jobs.go @@ -75,6 +75,7 @@ func (client JobsClient) GetAllJobsInSite(ctx context.Context, subscriptionID st result.vmjc, err = client.GetAllJobsInSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.JobsClient", "GetAllJobsInSite", resp, "Failure responding to request") + return } if result.vmjc.hasNextLink() && result.vmjc.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client JobsClient) getAllJobsInSiteNextResults(ctx context.Context, lastRe result, err = client.GetAllJobsInSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.JobsClient", "getAllJobsInSiteNextResults", resp, "Failure responding to next results request") + return } return } @@ -192,6 +194,7 @@ func (client JobsClient) GetJob(ctx context.Context, subscriptionID string, reso result, err = client.GetJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.JobsClient", "GetJob", resp, "Failure responding to request") + return } return diff --git a/services/migrate/mgmt/2020-01-01/migrate/machines.go b/services/migrate/mgmt/2020-01-01/migrate/machines.go index a23e9537aa6a..4c3da6defdfb 100644 --- a/services/migrate/mgmt/2020-01-01/migrate/machines.go +++ b/services/migrate/mgmt/2020-01-01/migrate/machines.go @@ -77,6 +77,7 @@ func (client MachinesClient) GetAllMachinesInSite(ctx context.Context, subscript result.vmmc, err = client.GetAllMachinesInSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.MachinesClient", "GetAllMachinesInSite", resp, "Failure responding to request") + return } if result.vmmc.hasNextLink() && result.vmmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -152,6 +153,7 @@ func (client MachinesClient) getAllMachinesInSiteNextResults(ctx context.Context result, err = client.GetAllMachinesInSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.MachinesClient", "getAllMachinesInSiteNextResults", resp, "Failure responding to next results request") + return } return } @@ -206,6 +208,7 @@ func (client MachinesClient) GetMachine(ctx context.Context, subscriptionID stri result, err = client.GetMachineResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.MachinesClient", "GetMachine", resp, "Failure responding to request") + return } return @@ -284,6 +287,7 @@ func (client MachinesClient) StartMachine(ctx context.Context, subscriptionID st result, err = client.StartMachineResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.MachinesClient", "StartMachine", resp, "Failure responding to request") + return } return @@ -361,6 +365,7 @@ func (client MachinesClient) StopMachine(ctx context.Context, subscriptionID str result, err = client.StopMachineResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.MachinesClient", "StopMachine", resp, "Failure responding to request") + return } return diff --git a/services/migrate/mgmt/2020-01-01/migrate/operations.go b/services/migrate/mgmt/2020-01-01/migrate/operations.go index ade2ca6d03ec..cebcff231ce4 100644 --- a/services/migrate/mgmt/2020-01-01/migrate/operations.go +++ b/services/migrate/mgmt/2020-01-01/migrate/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context, APIVersion string) (res result.orl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.OperationsClient", "List", resp, "Failure responding to request") + return } if result.orl.hasNextLink() && result.orl.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/migrate/mgmt/2020-01-01/migrate/runasaccounts.go b/services/migrate/mgmt/2020-01-01/migrate/runasaccounts.go index 00795fa2974a..7c1dd65cabf7 100644 --- a/services/migrate/mgmt/2020-01-01/migrate/runasaccounts.go +++ b/services/migrate/mgmt/2020-01-01/migrate/runasaccounts.go @@ -75,6 +75,7 @@ func (client RunAsAccountsClient) GetAllRunAsAccountsInSite(ctx context.Context, result.vmraac, err = client.GetAllRunAsAccountsInSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.RunAsAccountsClient", "GetAllRunAsAccountsInSite", resp, "Failure responding to request") + return } if result.vmraac.hasNextLink() && result.vmraac.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client RunAsAccountsClient) getAllRunAsAccountsInSiteNextResults(ctx conte result, err = client.GetAllRunAsAccountsInSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.RunAsAccountsClient", "getAllRunAsAccountsInSiteNextResults", resp, "Failure responding to next results request") + return } return } @@ -192,6 +194,7 @@ func (client RunAsAccountsClient) GetRunAsAccount(ctx context.Context, subscript result, err = client.GetRunAsAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.RunAsAccountsClient", "GetRunAsAccount", resp, "Failure responding to request") + return } return diff --git a/services/migrate/mgmt/2020-01-01/migrate/sites.go b/services/migrate/mgmt/2020-01-01/migrate/sites.go index eeceb97f4b39..106a3347e7ac 100644 --- a/services/migrate/mgmt/2020-01-01/migrate/sites.go +++ b/services/migrate/mgmt/2020-01-01/migrate/sites.go @@ -74,6 +74,7 @@ func (client SitesClient) DeleteSite(ctx context.Context, subscriptionID string, result, err = client.DeleteSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.SitesClient", "DeleteSite", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client SitesClient) GetSite(ctx context.Context, subscriptionID string, re result, err = client.GetSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.SitesClient", "GetSite", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client SitesClient) GetSiteHealthSummary(ctx context.Context, subscription result.shsc, err = client.GetSiteHealthSummaryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.SitesClient", "GetSiteHealthSummary", resp, "Failure responding to request") + return } if result.shsc.hasNextLink() && result.shsc.IsEmpty() { err = result.NextWithContext(ctx) @@ -289,6 +292,7 @@ func (client SitesClient) getSiteHealthSummaryNextResults(ctx context.Context, l result, err = client.GetSiteHealthSummaryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.SitesClient", "getSiteHealthSummaryNextResults", resp, "Failure responding to next results request") + return } return } @@ -341,6 +345,7 @@ func (client SitesClient) GetSiteUsage(ctx context.Context, subscriptionID strin result, err = client.GetSiteUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.SitesClient", "GetSiteUsage", resp, "Failure responding to request") + return } return @@ -418,6 +423,7 @@ func (client SitesClient) PatchSite(ctx context.Context, subscriptionID string, result, err = client.PatchSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.SitesClient", "PatchSite", resp, "Failure responding to request") + return } return @@ -499,6 +505,7 @@ func (client SitesClient) PutSite(ctx context.Context, subscriptionID string, re result, err = client.PutSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.SitesClient", "PutSite", resp, "Failure responding to request") + return } return @@ -579,6 +586,7 @@ func (client SitesClient) RefreshSite(ctx context.Context, subscriptionID string result, err = client.RefreshSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.SitesClient", "RefreshSite", resp, "Failure responding to request") + return } return diff --git a/services/migrate/mgmt/2020-01-01/migrate/vcenter.go b/services/migrate/mgmt/2020-01-01/migrate/vcenter.go index 7bb19ed453e1..f2ad5b171862 100644 --- a/services/migrate/mgmt/2020-01-01/migrate/vcenter.go +++ b/services/migrate/mgmt/2020-01-01/migrate/vcenter.go @@ -75,6 +75,7 @@ func (client VCenterClient) DeleteVCenter(ctx context.Context, subscriptionID st result, err = client.DeleteVCenterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.VCenterClient", "DeleteVCenter", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client VCenterClient) GetAllVCentersInSite(ctx context.Context, subscripti result.vcc, err = client.GetAllVCentersInSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.VCenterClient", "GetAllVCentersInSite", resp, "Failure responding to request") + return } if result.vcc.hasNextLink() && result.vcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -218,6 +220,7 @@ func (client VCenterClient) getAllVCentersInSiteNextResults(ctx context.Context, result, err = client.GetAllVCentersInSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.VCenterClient", "getAllVCentersInSiteNextResults", resp, "Failure responding to next results request") + return } return } @@ -272,6 +275,7 @@ func (client VCenterClient) GetVCenter(ctx context.Context, subscriptionID strin result, err = client.GetVCenterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.VCenterClient", "GetVCenter", resp, "Failure responding to request") + return } return @@ -351,6 +355,7 @@ func (client VCenterClient) PutVCenter(ctx context.Context, subscriptionID strin result, err = client.PutVCenterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.VCenterClient", "PutVCenter", resp, "Failure responding to request") + return } return diff --git a/services/migrate/mgmt/2020-01-01/migrate/vmwareoperationsstatus.go b/services/migrate/mgmt/2020-01-01/migrate/vmwareoperationsstatus.go index 113412089e8d..1b4eaba3e5ca 100644 --- a/services/migrate/mgmt/2020-01-01/migrate/vmwareoperationsstatus.go +++ b/services/migrate/mgmt/2020-01-01/migrate/vmwareoperationsstatus.go @@ -76,6 +76,7 @@ func (client VMwareOperationsStatusClient) GetOperationStatus(ctx context.Contex result, err = client.GetOperationStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.VMwareOperationsStatusClient", "GetOperationStatus", resp, "Failure responding to request") + return } return diff --git a/services/msi/mgmt/2018-11-30/msi/operations.go b/services/msi/mgmt/2018-11-30/msi/operations.go index 9d3d4eef468c..cc0325e1c5f2 100644 --- a/services/msi/mgmt/2018-11-30/msi/operations.go +++ b/services/msi/mgmt/2018-11-30/msi/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "msi.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "msi.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/msi/mgmt/2018-11-30/msi/systemassignedidentities.go b/services/msi/mgmt/2018-11-30/msi/systemassignedidentities.go index 77ebe3977fa9..10515ecd5937 100644 --- a/services/msi/mgmt/2018-11-30/msi/systemassignedidentities.go +++ b/services/msi/mgmt/2018-11-30/msi/systemassignedidentities.go @@ -72,6 +72,7 @@ func (client SystemAssignedIdentitiesClient) GetByScope(ctx context.Context, sco result, err = client.GetByScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "msi.SystemAssignedIdentitiesClient", "GetByScope", resp, "Failure responding to request") + return } return diff --git a/services/msi/mgmt/2018-11-30/msi/userassignedidentities.go b/services/msi/mgmt/2018-11-30/msi/userassignedidentities.go index 8361b5d399c5..331ccdfc5777 100644 --- a/services/msi/mgmt/2018-11-30/msi/userassignedidentities.go +++ b/services/msi/mgmt/2018-11-30/msi/userassignedidentities.go @@ -74,6 +74,7 @@ func (client UserAssignedIdentitiesClient) CreateOrUpdate(ctx context.Context, r result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "msi.UserAssignedIdentitiesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client UserAssignedIdentitiesClient) Delete(ctx context.Context, resourceG result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "msi.UserAssignedIdentitiesClient", "Delete", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client UserAssignedIdentitiesClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "msi.UserAssignedIdentitiesClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +304,7 @@ func (client UserAssignedIdentitiesClient) ListByResourceGroup(ctx context.Conte result.uailr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "msi.UserAssignedIdentitiesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.uailr.hasNextLink() && result.uailr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +368,7 @@ func (client UserAssignedIdentitiesClient) listByResourceGroupNextResults(ctx co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "msi.UserAssignedIdentitiesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +418,7 @@ func (client UserAssignedIdentitiesClient) ListBySubscription(ctx context.Contex result.uailr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "msi.UserAssignedIdentitiesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.uailr.hasNextLink() && result.uailr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +481,7 @@ func (client UserAssignedIdentitiesClient) listBySubscriptionNextResults(ctx con result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "msi.UserAssignedIdentitiesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -527,6 +534,7 @@ func (client UserAssignedIdentitiesClient) Update(ctx context.Context, resourceG result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "msi.UserAssignedIdentitiesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/mysql/mgmt/2017-12-01/mysql/checknameavailability.go b/services/mysql/mgmt/2017-12-01/mysql/checknameavailability.go index 9cc543d9367d..b8a85df5c4fe 100644 --- a/services/mysql/mgmt/2017-12-01/mysql/checknameavailability.go +++ b/services/mysql/mgmt/2017-12-01/mysql/checknameavailability.go @@ -83,6 +83,7 @@ func (client CheckNameAvailabilityClient) Execute(ctx context.Context, nameAvail result, err = client.ExecuteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.CheckNameAvailabilityClient", "Execute", resp, "Failure responding to request") + return } return diff --git a/services/mysql/mgmt/2017-12-01/mysql/configurations.go b/services/mysql/mgmt/2017-12-01/mysql/configurations.go index 2ae77b2d7099..b8329245d3ba 100644 --- a/services/mysql/mgmt/2017-12-01/mysql/configurations.go +++ b/services/mysql/mgmt/2017-12-01/mysql/configurations.go @@ -176,6 +176,7 @@ func (client ConfigurationsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -262,6 +263,7 @@ func (client ConfigurationsClient) ListByServer(ctx context.Context, resourceGro result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ConfigurationsClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/mysql/mgmt/2017-12-01/mysql/databases.go b/services/mysql/mgmt/2017-12-01/mysql/databases.go index 76ef475efe85..1651e13b9ec6 100644 --- a/services/mysql/mgmt/2017-12-01/mysql/databases.go +++ b/services/mysql/mgmt/2017-12-01/mysql/databases.go @@ -262,6 +262,7 @@ func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.DatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +349,7 @@ func (client DatabasesClient) ListByServer(ctx context.Context, resourceGroupNam result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.DatabasesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/mysql/mgmt/2017-12-01/mysql/firewallrules.go b/services/mysql/mgmt/2017-12-01/mysql/firewallrules.go index 17d15e52699e..ef0570a9b381 100644 --- a/services/mysql/mgmt/2017-12-01/mysql/firewallrules.go +++ b/services/mysql/mgmt/2017-12-01/mysql/firewallrules.go @@ -269,6 +269,7 @@ func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.FirewallRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +356,7 @@ func (client FirewallRulesClient) ListByServer(ctx context.Context, resourceGrou result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.FirewallRulesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/mysql/mgmt/2017-12-01/mysql/locationbasedperformancetier.go b/services/mysql/mgmt/2017-12-01/mysql/locationbasedperformancetier.go index 5a9c71745929..50c78f12db1e 100644 --- a/services/mysql/mgmt/2017-12-01/mysql/locationbasedperformancetier.go +++ b/services/mysql/mgmt/2017-12-01/mysql/locationbasedperformancetier.go @@ -81,6 +81,7 @@ func (client LocationBasedPerformanceTierClient) List(ctx context.Context, locat result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.LocationBasedPerformanceTierClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/mysql/mgmt/2017-12-01/mysql/logfiles.go b/services/mysql/mgmt/2017-12-01/mysql/logfiles.go index ff967f803f49..1700af2edf1e 100644 --- a/services/mysql/mgmt/2017-12-01/mysql/logfiles.go +++ b/services/mysql/mgmt/2017-12-01/mysql/logfiles.go @@ -85,6 +85,7 @@ func (client LogFilesClient) ListByServer(ctx context.Context, resourceGroupName result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.LogFilesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/mysql/mgmt/2017-12-01/mysql/operations.go b/services/mysql/mgmt/2017-12-01/mysql/operations.go index 2219e398d8c0..b22b87d4479c 100644 --- a/services/mysql/mgmt/2017-12-01/mysql/operations.go +++ b/services/mysql/mgmt/2017-12-01/mysql/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/mysql/mgmt/2017-12-01/mysql/replicas.go b/services/mysql/mgmt/2017-12-01/mysql/replicas.go index ac5589463b5d..36e7cb8f8306 100644 --- a/services/mysql/mgmt/2017-12-01/mysql/replicas.go +++ b/services/mysql/mgmt/2017-12-01/mysql/replicas.go @@ -85,6 +85,7 @@ func (client ReplicasClient) ListByServer(ctx context.Context, resourceGroupName result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ReplicasClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/mysql/mgmt/2017-12-01/mysql/serveradministrators.go b/services/mysql/mgmt/2017-12-01/mysql/serveradministrators.go index 25dbffc5afb3..b7858094e21f 100644 --- a/services/mysql/mgmt/2017-12-01/mysql/serveradministrators.go +++ b/services/mysql/mgmt/2017-12-01/mysql/serveradministrators.go @@ -266,6 +266,7 @@ func (client ServerAdministratorsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ServerAdministratorsClient", "Get", resp, "Failure responding to request") + return } return @@ -351,6 +352,7 @@ func (client ServerAdministratorsClient) List(ctx context.Context, resourceGroup result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ServerAdministratorsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/mysql/mgmt/2017-12-01/mysql/servers.go b/services/mysql/mgmt/2017-12-01/mysql/servers.go index 75d5008a4ab7..f12df54e95da 100644 --- a/services/mysql/mgmt/2017-12-01/mysql/servers.go +++ b/services/mysql/mgmt/2017-12-01/mysql/servers.go @@ -265,6 +265,7 @@ func (client ServersClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ServersClient", "Get", resp, "Failure responding to request") + return } return @@ -343,6 +344,7 @@ func (client ServersClient) List(ctx context.Context) (result ServerListResult, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ServersClient", "List", resp, "Failure responding to request") + return } return @@ -425,6 +427,7 @@ func (client ServersClient) ListByResourceGroup(ctx context.Context, resourceGro result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ServersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return diff --git a/services/mysql/mgmt/2017-12-01/mysql/serversecurityalertpolicies.go b/services/mysql/mgmt/2017-12-01/mysql/serversecurityalertpolicies.go index ec333890820a..11c29fd89c5f 100644 --- a/services/mysql/mgmt/2017-12-01/mysql/serversecurityalertpolicies.go +++ b/services/mysql/mgmt/2017-12-01/mysql/serversecurityalertpolicies.go @@ -175,6 +175,7 @@ func (client ServerSecurityAlertPoliciesClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ServerSecurityAlertPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/mysql/mgmt/2017-12-01/mysql/virtualnetworkrules.go b/services/mysql/mgmt/2017-12-01/mysql/virtualnetworkrules.go index 76e88302cdcd..933b584af82b 100644 --- a/services/mysql/mgmt/2017-12-01/mysql/virtualnetworkrules.go +++ b/services/mysql/mgmt/2017-12-01/mysql/virtualnetworkrules.go @@ -266,6 +266,7 @@ func (client VirtualNetworkRulesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.VirtualNetworkRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -353,6 +354,7 @@ func (client VirtualNetworkRulesClient) ListByServer(ctx context.Context, resour result.vnrlr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.VirtualNetworkRulesClient", "ListByServer", resp, "Failure responding to request") + return } if result.vnrlr.hasNextLink() && result.vnrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -417,6 +419,7 @@ func (client VirtualNetworkRulesClient) listByServerNextResults(ctx context.Cont result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.VirtualNetworkRulesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mysql/mgmt/2020-01-01/mysql/advisors.go b/services/mysql/mgmt/2020-01-01/mysql/advisors.go index 475b06769837..116582481c36 100644 --- a/services/mysql/mgmt/2020-01-01/mysql/advisors.go +++ b/services/mysql/mgmt/2020-01-01/mysql/advisors.go @@ -86,6 +86,7 @@ func (client AdvisorsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.AdvisorsClient", "Get", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client AdvisorsClient) ListByServer(ctx context.Context, resourceGroupName result.arl, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.AdvisorsClient", "ListByServer", resp, "Failure responding to request") + return } if result.arl.hasNextLink() && result.arl.IsEmpty() { err = result.NextWithContext(ctx) @@ -237,6 +239,7 @@ func (client AdvisorsClient) listByServerNextResults(ctx context.Context, lastRe result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.AdvisorsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mysql/mgmt/2020-01-01/mysql/checknameavailability.go b/services/mysql/mgmt/2020-01-01/mysql/checknameavailability.go index 9cc543d9367d..b8a85df5c4fe 100644 --- a/services/mysql/mgmt/2020-01-01/mysql/checknameavailability.go +++ b/services/mysql/mgmt/2020-01-01/mysql/checknameavailability.go @@ -83,6 +83,7 @@ func (client CheckNameAvailabilityClient) Execute(ctx context.Context, nameAvail result, err = client.ExecuteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.CheckNameAvailabilityClient", "Execute", resp, "Failure responding to request") + return } return diff --git a/services/mysql/mgmt/2020-01-01/mysql/configurations.go b/services/mysql/mgmt/2020-01-01/mysql/configurations.go index 2ae77b2d7099..b8329245d3ba 100644 --- a/services/mysql/mgmt/2020-01-01/mysql/configurations.go +++ b/services/mysql/mgmt/2020-01-01/mysql/configurations.go @@ -176,6 +176,7 @@ func (client ConfigurationsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -262,6 +263,7 @@ func (client ConfigurationsClient) ListByServer(ctx context.Context, resourceGro result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ConfigurationsClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/mysql/mgmt/2020-01-01/mysql/databases.go b/services/mysql/mgmt/2020-01-01/mysql/databases.go index 76ef475efe85..1651e13b9ec6 100644 --- a/services/mysql/mgmt/2020-01-01/mysql/databases.go +++ b/services/mysql/mgmt/2020-01-01/mysql/databases.go @@ -262,6 +262,7 @@ func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.DatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +349,7 @@ func (client DatabasesClient) ListByServer(ctx context.Context, resourceGroupNam result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.DatabasesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/mysql/mgmt/2020-01-01/mysql/firewallrules.go b/services/mysql/mgmt/2020-01-01/mysql/firewallrules.go index 17d15e52699e..ef0570a9b381 100644 --- a/services/mysql/mgmt/2020-01-01/mysql/firewallrules.go +++ b/services/mysql/mgmt/2020-01-01/mysql/firewallrules.go @@ -269,6 +269,7 @@ func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.FirewallRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +356,7 @@ func (client FirewallRulesClient) ListByServer(ctx context.Context, resourceGrou result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.FirewallRulesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/mysql/mgmt/2020-01-01/mysql/locationbasedperformancetier.go b/services/mysql/mgmt/2020-01-01/mysql/locationbasedperformancetier.go index 5a9c71745929..50c78f12db1e 100644 --- a/services/mysql/mgmt/2020-01-01/mysql/locationbasedperformancetier.go +++ b/services/mysql/mgmt/2020-01-01/mysql/locationbasedperformancetier.go @@ -81,6 +81,7 @@ func (client LocationBasedPerformanceTierClient) List(ctx context.Context, locat result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.LocationBasedPerformanceTierClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/mysql/mgmt/2020-01-01/mysql/locationbasedrecommendedactionsessionsoperationstatus.go b/services/mysql/mgmt/2020-01-01/mysql/locationbasedrecommendedactionsessionsoperationstatus.go index 870c623d1b08..1c4b70af12eb 100644 --- a/services/mysql/mgmt/2020-01-01/mysql/locationbasedrecommendedactionsessionsoperationstatus.go +++ b/services/mysql/mgmt/2020-01-01/mysql/locationbasedrecommendedactionsessionsoperationstatus.go @@ -83,6 +83,7 @@ func (client LocationBasedRecommendedActionSessionsOperationStatusClient) Get(ct result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.LocationBasedRecommendedActionSessionsOperationStatusClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/mysql/mgmt/2020-01-01/mysql/locationbasedrecommendedactionsessionsresult.go b/services/mysql/mgmt/2020-01-01/mysql/locationbasedrecommendedactionsessionsresult.go index 95d83de48081..74e38790e0ad 100644 --- a/services/mysql/mgmt/2020-01-01/mysql/locationbasedrecommendedactionsessionsresult.go +++ b/services/mysql/mgmt/2020-01-01/mysql/locationbasedrecommendedactionsessionsresult.go @@ -84,6 +84,7 @@ func (client LocationBasedRecommendedActionSessionsResultClient) List(ctx contex result.rarl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.LocationBasedRecommendedActionSessionsResultClient", "List", resp, "Failure responding to request") + return } if result.rarl.hasNextLink() && result.rarl.IsEmpty() { err = result.NextWithContext(ctx) @@ -148,6 +149,7 @@ func (client LocationBasedRecommendedActionSessionsResultClient) listNextResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.LocationBasedRecommendedActionSessionsResultClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mysql/mgmt/2020-01-01/mysql/logfiles.go b/services/mysql/mgmt/2020-01-01/mysql/logfiles.go index ff967f803f49..1700af2edf1e 100644 --- a/services/mysql/mgmt/2020-01-01/mysql/logfiles.go +++ b/services/mysql/mgmt/2020-01-01/mysql/logfiles.go @@ -85,6 +85,7 @@ func (client LogFilesClient) ListByServer(ctx context.Context, resourceGroupName result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.LogFilesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/mysql/mgmt/2020-01-01/mysql/operations.go b/services/mysql/mgmt/2020-01-01/mysql/operations.go index 2219e398d8c0..b22b87d4479c 100644 --- a/services/mysql/mgmt/2020-01-01/mysql/operations.go +++ b/services/mysql/mgmt/2020-01-01/mysql/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/mysql/mgmt/2020-01-01/mysql/privateendpointconnections.go b/services/mysql/mgmt/2020-01-01/mysql/privateendpointconnections.go index 09a666c9c210..617d088097df 100644 --- a/services/mysql/mgmt/2020-01-01/mysql/privateendpointconnections.go +++ b/services/mysql/mgmt/2020-01-01/mysql/privateendpointconnections.go @@ -267,6 +267,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -354,6 +355,7 @@ func (client PrivateEndpointConnectionsClient) ListByServer(ctx context.Context, result.peclr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.PrivateEndpointConnectionsClient", "ListByServer", resp, "Failure responding to request") + return } if result.peclr.hasNextLink() && result.peclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -418,6 +420,7 @@ func (client PrivateEndpointConnectionsClient) listByServerNextResults(ctx conte result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.PrivateEndpointConnectionsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mysql/mgmt/2020-01-01/mysql/privatelinkresources.go b/services/mysql/mgmt/2020-01-01/mysql/privatelinkresources.go index 9ba9c88e4346..72c4e73a26d6 100644 --- a/services/mysql/mgmt/2020-01-01/mysql/privatelinkresources.go +++ b/services/mysql/mgmt/2020-01-01/mysql/privatelinkresources.go @@ -87,6 +87,7 @@ func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.PrivateLinkResourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client PrivateLinkResourcesClient) ListByServer(ctx context.Context, resou result.plrlr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.PrivateLinkResourcesClient", "ListByServer", resp, "Failure responding to request") + return } if result.plrlr.hasNextLink() && result.plrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -238,6 +240,7 @@ func (client PrivateLinkResourcesClient) listByServerNextResults(ctx context.Con result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.PrivateLinkResourcesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mysql/mgmt/2020-01-01/mysql/querytexts.go b/services/mysql/mgmt/2020-01-01/mysql/querytexts.go index 4dec8a2265a8..ec39f309a8d1 100644 --- a/services/mysql/mgmt/2020-01-01/mysql/querytexts.go +++ b/services/mysql/mgmt/2020-01-01/mysql/querytexts.go @@ -86,6 +86,7 @@ func (client QueryTextsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.QueryTextsClient", "Get", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client QueryTextsClient) ListByServer(ctx context.Context, resourceGroupNa result.qtrl, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.QueryTextsClient", "ListByServer", resp, "Failure responding to request") + return } if result.qtrl.hasNextLink() && result.qtrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -241,6 +243,7 @@ func (client QueryTextsClient) listByServerNextResults(ctx context.Context, last result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.QueryTextsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mysql/mgmt/2020-01-01/mysql/recommendedactions.go b/services/mysql/mgmt/2020-01-01/mysql/recommendedactions.go index c25ba481c517..cc58fcbb7903 100644 --- a/services/mysql/mgmt/2020-01-01/mysql/recommendedactions.go +++ b/services/mysql/mgmt/2020-01-01/mysql/recommendedactions.go @@ -88,6 +88,7 @@ func (client RecommendedActionsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.RecommendedActionsClient", "Get", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client RecommendedActionsClient) ListByServer(ctx context.Context, resourc result.rarl, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.RecommendedActionsClient", "ListByServer", resp, "Failure responding to request") + return } if result.rarl.hasNextLink() && result.rarl.IsEmpty() { err = result.NextWithContext(ctx) @@ -246,6 +248,7 @@ func (client RecommendedActionsClient) listByServerNextResults(ctx context.Conte result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.RecommendedActionsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mysql/mgmt/2020-01-01/mysql/replicas.go b/services/mysql/mgmt/2020-01-01/mysql/replicas.go index ac5589463b5d..36e7cb8f8306 100644 --- a/services/mysql/mgmt/2020-01-01/mysql/replicas.go +++ b/services/mysql/mgmt/2020-01-01/mysql/replicas.go @@ -85,6 +85,7 @@ func (client ReplicasClient) ListByServer(ctx context.Context, resourceGroupName result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ReplicasClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/mysql/mgmt/2020-01-01/mysql/serveradministrators.go b/services/mysql/mgmt/2020-01-01/mysql/serveradministrators.go index 25dbffc5afb3..b7858094e21f 100644 --- a/services/mysql/mgmt/2020-01-01/mysql/serveradministrators.go +++ b/services/mysql/mgmt/2020-01-01/mysql/serveradministrators.go @@ -266,6 +266,7 @@ func (client ServerAdministratorsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ServerAdministratorsClient", "Get", resp, "Failure responding to request") + return } return @@ -351,6 +352,7 @@ func (client ServerAdministratorsClient) List(ctx context.Context, resourceGroup result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ServerAdministratorsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/mysql/mgmt/2020-01-01/mysql/serverkeys.go b/services/mysql/mgmt/2020-01-01/mysql/serverkeys.go index fb576c022a0c..5497b24d78bc 100644 --- a/services/mysql/mgmt/2020-01-01/mysql/serverkeys.go +++ b/services/mysql/mgmt/2020-01-01/mysql/serverkeys.go @@ -266,6 +266,7 @@ func (client ServerKeysClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ServerKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -353,6 +354,7 @@ func (client ServerKeysClient) List(ctx context.Context, resourceGroupName strin result.sklr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ServerKeysClient", "List", resp, "Failure responding to request") + return } if result.sklr.hasNextLink() && result.sklr.IsEmpty() { err = result.NextWithContext(ctx) @@ -417,6 +419,7 @@ func (client ServerKeysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ServerKeysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mysql/mgmt/2020-01-01/mysql/servers.go b/services/mysql/mgmt/2020-01-01/mysql/servers.go index a57dd484307a..225b21c8901e 100644 --- a/services/mysql/mgmt/2020-01-01/mysql/servers.go +++ b/services/mysql/mgmt/2020-01-01/mysql/servers.go @@ -265,6 +265,7 @@ func (client ServersClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ServersClient", "Get", resp, "Failure responding to request") + return } return @@ -343,6 +344,7 @@ func (client ServersClient) List(ctx context.Context) (result ServerListResult, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ServersClient", "List", resp, "Failure responding to request") + return } return @@ -425,6 +427,7 @@ func (client ServersClient) ListByResourceGroup(ctx context.Context, resourceGro result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ServersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return diff --git a/services/mysql/mgmt/2020-01-01/mysql/serversecurityalertpolicies.go b/services/mysql/mgmt/2020-01-01/mysql/serversecurityalertpolicies.go index ec333890820a..11c29fd89c5f 100644 --- a/services/mysql/mgmt/2020-01-01/mysql/serversecurityalertpolicies.go +++ b/services/mysql/mgmt/2020-01-01/mysql/serversecurityalertpolicies.go @@ -175,6 +175,7 @@ func (client ServerSecurityAlertPoliciesClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ServerSecurityAlertPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/mysql/mgmt/2020-01-01/mysql/topquerystatistics.go b/services/mysql/mgmt/2020-01-01/mysql/topquerystatistics.go index eda217630e80..47e5f83408a0 100644 --- a/services/mysql/mgmt/2020-01-01/mysql/topquerystatistics.go +++ b/services/mysql/mgmt/2020-01-01/mysql/topquerystatistics.go @@ -87,6 +87,7 @@ func (client TopQueryStatisticsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.TopQueryStatisticsClient", "Get", resp, "Failure responding to request") + return } return @@ -184,6 +185,7 @@ func (client TopQueryStatisticsClient) ListByServer(ctx context.Context, resourc result.tqsrl, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.TopQueryStatisticsClient", "ListByServer", resp, "Failure responding to request") + return } if result.tqsrl.hasNextLink() && result.tqsrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -250,6 +252,7 @@ func (client TopQueryStatisticsClient) listByServerNextResults(ctx context.Conte result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.TopQueryStatisticsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mysql/mgmt/2020-01-01/mysql/virtualnetworkrules.go b/services/mysql/mgmt/2020-01-01/mysql/virtualnetworkrules.go index 76e88302cdcd..933b584af82b 100644 --- a/services/mysql/mgmt/2020-01-01/mysql/virtualnetworkrules.go +++ b/services/mysql/mgmt/2020-01-01/mysql/virtualnetworkrules.go @@ -266,6 +266,7 @@ func (client VirtualNetworkRulesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.VirtualNetworkRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -353,6 +354,7 @@ func (client VirtualNetworkRulesClient) ListByServer(ctx context.Context, resour result.vnrlr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.VirtualNetworkRulesClient", "ListByServer", resp, "Failure responding to request") + return } if result.vnrlr.hasNextLink() && result.vnrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -417,6 +419,7 @@ func (client VirtualNetworkRulesClient) listByServerNextResults(ctx context.Cont result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.VirtualNetworkRulesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/mysql/mgmt/2020-01-01/mysql/waitstatistics.go b/services/mysql/mgmt/2020-01-01/mysql/waitstatistics.go index 8b281e4a3299..7b0215588a08 100644 --- a/services/mysql/mgmt/2020-01-01/mysql/waitstatistics.go +++ b/services/mysql/mgmt/2020-01-01/mysql/waitstatistics.go @@ -86,6 +86,7 @@ func (client WaitStatisticsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.WaitStatisticsClient", "Get", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client WaitStatisticsClient) ListByServer(ctx context.Context, resourceGro result.wsrl, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.WaitStatisticsClient", "ListByServer", resp, "Failure responding to request") + return } if result.wsrl.hasNextLink() && result.wsrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -246,6 +248,7 @@ func (client WaitStatisticsClient) listByServerNextResults(ctx context.Context, result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.WaitStatisticsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/netapp/mgmt/2019-05-01/netapp/accounts.go b/services/netapp/mgmt/2019-05-01/netapp/accounts.go index 63fe93a1fba6..6c42704e5951 100644 --- a/services/netapp/mgmt/2019-05-01/netapp/accounts.go +++ b/services/netapp/mgmt/2019-05-01/netapp/accounts.go @@ -254,6 +254,7 @@ func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -336,6 +337,7 @@ func (client AccountsClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "List", resp, "Failure responding to request") + return } return @@ -419,6 +421,7 @@ func (client AccountsClient) Update(ctx context.Context, body AccountPatch, reso result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-05-01/netapp/client.go b/services/netapp/mgmt/2019-05-01/netapp/client.go index da209f4064bf..75363b351eb8 100644 --- a/services/netapp/mgmt/2019-05-01/netapp/client.go +++ b/services/netapp/mgmt/2019-05-01/netapp/client.go @@ -86,6 +86,7 @@ func (client BaseClient) CheckFilePathAvailability(ctx context.Context, body int result, err = client.CheckFilePathAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BaseClient", "CheckFilePathAvailability", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client BaseClient) CheckNameAvailability(ctx context.Context, body interfa result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BaseClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-05-01/netapp/mounttargets.go b/services/netapp/mgmt/2019-05-01/netapp/mounttargets.go index 23681c440ada..67f0e0913d8f 100644 --- a/services/netapp/mgmt/2019-05-01/netapp/mounttargets.go +++ b/services/netapp/mgmt/2019-05-01/netapp/mounttargets.go @@ -83,6 +83,7 @@ func (client MountTargetsClient) List(ctx context.Context, resourceGroupName str result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.MountTargetsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-05-01/netapp/operations.go b/services/netapp/mgmt/2019-05-01/netapp/operations.go index ff0bc1b05fd9..bb53698f0542 100644 --- a/services/netapp/mgmt/2019-05-01/netapp/operations.go +++ b/services/netapp/mgmt/2019-05-01/netapp/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-05-01/netapp/pools.go b/services/netapp/mgmt/2019-05-01/netapp/pools.go index dc8a6c7e1876..1434ad420a47 100644 --- a/services/netapp/mgmt/2019-05-01/netapp/pools.go +++ b/services/netapp/mgmt/2019-05-01/netapp/pools.go @@ -270,6 +270,7 @@ func (client PoolsClient) Get(ctx context.Context, resourceGroupName string, acc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -354,6 +355,7 @@ func (client PoolsClient) List(ctx context.Context, resourceGroupName string, ac result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "List", resp, "Failure responding to request") + return } return @@ -439,6 +441,7 @@ func (client PoolsClient) Update(ctx context.Context, body CapacityPoolPatch, re result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-05-01/netapp/snapshots.go b/services/netapp/mgmt/2019-05-01/netapp/snapshots.go index f64e084ba35c..a1aea43ae124 100644 --- a/services/netapp/mgmt/2019-05-01/netapp/snapshots.go +++ b/services/netapp/mgmt/2019-05-01/netapp/snapshots.go @@ -281,6 +281,7 @@ func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +370,7 @@ func (client SnapshotsClient) List(ctx context.Context, resourceGroupName string result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "List", resp, "Failure responding to request") + return } return @@ -458,6 +460,7 @@ func (client SnapshotsClient) Update(ctx context.Context, body SnapshotPatch, re result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-05-01/netapp/volumes.go b/services/netapp/mgmt/2019-05-01/netapp/volumes.go index 347b7d3e2535..ff44df72f765 100644 --- a/services/netapp/mgmt/2019-05-01/netapp/volumes.go +++ b/services/netapp/mgmt/2019-05-01/netapp/volumes.go @@ -287,6 +287,7 @@ func (client VolumesClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Get", resp, "Failure responding to request") + return } return @@ -373,6 +374,7 @@ func (client VolumesClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "List", resp, "Failure responding to request") + return } return @@ -460,6 +462,7 @@ func (client VolumesClient) Update(ctx context.Context, body VolumePatch, resour result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-06-01/netapp/accounts.go b/services/netapp/mgmt/2019-06-01/netapp/accounts.go index 82b8d0271775..3be2ab569768 100644 --- a/services/netapp/mgmt/2019-06-01/netapp/accounts.go +++ b/services/netapp/mgmt/2019-06-01/netapp/accounts.go @@ -254,6 +254,7 @@ func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -336,6 +337,7 @@ func (client AccountsClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "List", resp, "Failure responding to request") + return } return @@ -419,6 +421,7 @@ func (client AccountsClient) Update(ctx context.Context, body AccountPatch, reso result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-06-01/netapp/client.go b/services/netapp/mgmt/2019-06-01/netapp/client.go index 8a02030e5e6c..7385c0f5e4f7 100644 --- a/services/netapp/mgmt/2019-06-01/netapp/client.go +++ b/services/netapp/mgmt/2019-06-01/netapp/client.go @@ -94,6 +94,7 @@ func (client BaseClient) CheckFilePathAvailability(ctx context.Context, body Res result, err = client.CheckFilePathAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BaseClient", "CheckFilePathAvailability", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client BaseClient) CheckNameAvailability(ctx context.Context, body Resourc result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BaseClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-06-01/netapp/mounttargets.go b/services/netapp/mgmt/2019-06-01/netapp/mounttargets.go index d29c821f5424..e25477b7af29 100644 --- a/services/netapp/mgmt/2019-06-01/netapp/mounttargets.go +++ b/services/netapp/mgmt/2019-06-01/netapp/mounttargets.go @@ -83,6 +83,7 @@ func (client MountTargetsClient) List(ctx context.Context, resourceGroupName str result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.MountTargetsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-06-01/netapp/operations.go b/services/netapp/mgmt/2019-06-01/netapp/operations.go index 2cf03d975579..f9ed0a55bb3f 100644 --- a/services/netapp/mgmt/2019-06-01/netapp/operations.go +++ b/services/netapp/mgmt/2019-06-01/netapp/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-06-01/netapp/pools.go b/services/netapp/mgmt/2019-06-01/netapp/pools.go index a6194a13c0de..efcbfb65b936 100644 --- a/services/netapp/mgmt/2019-06-01/netapp/pools.go +++ b/services/netapp/mgmt/2019-06-01/netapp/pools.go @@ -270,6 +270,7 @@ func (client PoolsClient) Get(ctx context.Context, resourceGroupName string, acc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -354,6 +355,7 @@ func (client PoolsClient) List(ctx context.Context, resourceGroupName string, ac result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "List", resp, "Failure responding to request") + return } return @@ -439,6 +441,7 @@ func (client PoolsClient) Update(ctx context.Context, body CapacityPoolPatch, re result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-06-01/netapp/snapshots.go b/services/netapp/mgmt/2019-06-01/netapp/snapshots.go index d8a668453f4d..c20b3e257d0c 100644 --- a/services/netapp/mgmt/2019-06-01/netapp/snapshots.go +++ b/services/netapp/mgmt/2019-06-01/netapp/snapshots.go @@ -281,6 +281,7 @@ func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +370,7 @@ func (client SnapshotsClient) List(ctx context.Context, resourceGroupName string result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "List", resp, "Failure responding to request") + return } return @@ -458,6 +460,7 @@ func (client SnapshotsClient) Update(ctx context.Context, body SnapshotPatch, re result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-06-01/netapp/volumes.go b/services/netapp/mgmt/2019-06-01/netapp/volumes.go index 0c42cb67f9d3..9267f5cd4e00 100644 --- a/services/netapp/mgmt/2019-06-01/netapp/volumes.go +++ b/services/netapp/mgmt/2019-06-01/netapp/volumes.go @@ -287,6 +287,7 @@ func (client VolumesClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Get", resp, "Failure responding to request") + return } return @@ -373,6 +374,7 @@ func (client VolumesClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "List", resp, "Failure responding to request") + return } return @@ -460,6 +462,7 @@ func (client VolumesClient) Update(ctx context.Context, body VolumePatch, resour result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-07-01/netapp/accounts.go b/services/netapp/mgmt/2019-07-01/netapp/accounts.go index c49983037df7..5e97ec87a56f 100644 --- a/services/netapp/mgmt/2019-07-01/netapp/accounts.go +++ b/services/netapp/mgmt/2019-07-01/netapp/accounts.go @@ -254,6 +254,7 @@ func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -336,6 +337,7 @@ func (client AccountsClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "List", resp, "Failure responding to request") + return } return @@ -419,6 +421,7 @@ func (client AccountsClient) Update(ctx context.Context, body AccountPatch, reso result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-07-01/netapp/client.go b/services/netapp/mgmt/2019-07-01/netapp/client.go index 549b0e0df888..b249d0751ac7 100644 --- a/services/netapp/mgmt/2019-07-01/netapp/client.go +++ b/services/netapp/mgmt/2019-07-01/netapp/client.go @@ -94,6 +94,7 @@ func (client BaseClient) CheckFilePathAvailability(ctx context.Context, body Res result, err = client.CheckFilePathAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BaseClient", "CheckFilePathAvailability", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client BaseClient) CheckNameAvailability(ctx context.Context, body Resourc result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BaseClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-07-01/netapp/mounttargets.go b/services/netapp/mgmt/2019-07-01/netapp/mounttargets.go index 1fbcfe746f87..1b5b86da267a 100644 --- a/services/netapp/mgmt/2019-07-01/netapp/mounttargets.go +++ b/services/netapp/mgmt/2019-07-01/netapp/mounttargets.go @@ -83,6 +83,7 @@ func (client MountTargetsClient) List(ctx context.Context, resourceGroupName str result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.MountTargetsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-07-01/netapp/operations.go b/services/netapp/mgmt/2019-07-01/netapp/operations.go index 36ada5c29ee4..c242d4ece1b2 100644 --- a/services/netapp/mgmt/2019-07-01/netapp/operations.go +++ b/services/netapp/mgmt/2019-07-01/netapp/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-07-01/netapp/pools.go b/services/netapp/mgmt/2019-07-01/netapp/pools.go index 12b754853d11..f3b4d35e1900 100644 --- a/services/netapp/mgmt/2019-07-01/netapp/pools.go +++ b/services/netapp/mgmt/2019-07-01/netapp/pools.go @@ -270,6 +270,7 @@ func (client PoolsClient) Get(ctx context.Context, resourceGroupName string, acc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -354,6 +355,7 @@ func (client PoolsClient) List(ctx context.Context, resourceGroupName string, ac result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "List", resp, "Failure responding to request") + return } return @@ -439,6 +441,7 @@ func (client PoolsClient) Update(ctx context.Context, body CapacityPoolPatch, re result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-07-01/netapp/snapshots.go b/services/netapp/mgmt/2019-07-01/netapp/snapshots.go index a3423993d6a3..a4a72b67e0ae 100644 --- a/services/netapp/mgmt/2019-07-01/netapp/snapshots.go +++ b/services/netapp/mgmt/2019-07-01/netapp/snapshots.go @@ -281,6 +281,7 @@ func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +370,7 @@ func (client SnapshotsClient) List(ctx context.Context, resourceGroupName string result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "List", resp, "Failure responding to request") + return } return @@ -458,6 +460,7 @@ func (client SnapshotsClient) Update(ctx context.Context, body SnapshotPatch, re result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-07-01/netapp/volumes.go b/services/netapp/mgmt/2019-07-01/netapp/volumes.go index 949142cdfb19..be2845fb71d5 100644 --- a/services/netapp/mgmt/2019-07-01/netapp/volumes.go +++ b/services/netapp/mgmt/2019-07-01/netapp/volumes.go @@ -287,6 +287,7 @@ func (client VolumesClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Get", resp, "Failure responding to request") + return } return @@ -373,6 +374,7 @@ func (client VolumesClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "List", resp, "Failure responding to request") + return } return @@ -460,6 +462,7 @@ func (client VolumesClient) Update(ctx context.Context, body VolumePatch, resour result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-08-01/netapp/accounts.go b/services/netapp/mgmt/2019-08-01/netapp/accounts.go index 056d5398d91a..a8d81a07d610 100644 --- a/services/netapp/mgmt/2019-08-01/netapp/accounts.go +++ b/services/netapp/mgmt/2019-08-01/netapp/accounts.go @@ -254,6 +254,7 @@ func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -336,6 +337,7 @@ func (client AccountsClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "List", resp, "Failure responding to request") + return } return @@ -419,6 +421,7 @@ func (client AccountsClient) Update(ctx context.Context, body AccountPatch, reso result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-08-01/netapp/mounttargets.go b/services/netapp/mgmt/2019-08-01/netapp/mounttargets.go index 1a110f6b838a..65471a3f43a9 100644 --- a/services/netapp/mgmt/2019-08-01/netapp/mounttargets.go +++ b/services/netapp/mgmt/2019-08-01/netapp/mounttargets.go @@ -83,6 +83,7 @@ func (client MountTargetsClient) List(ctx context.Context, resourceGroupName str result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.MountTargetsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-08-01/netapp/operations.go b/services/netapp/mgmt/2019-08-01/netapp/operations.go index e67bd97f29eb..c16f3042cc9a 100644 --- a/services/netapp/mgmt/2019-08-01/netapp/operations.go +++ b/services/netapp/mgmt/2019-08-01/netapp/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-08-01/netapp/pools.go b/services/netapp/mgmt/2019-08-01/netapp/pools.go index 28678ab430ec..ac12bd0534d2 100644 --- a/services/netapp/mgmt/2019-08-01/netapp/pools.go +++ b/services/netapp/mgmt/2019-08-01/netapp/pools.go @@ -270,6 +270,7 @@ func (client PoolsClient) Get(ctx context.Context, resourceGroupName string, acc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -354,6 +355,7 @@ func (client PoolsClient) List(ctx context.Context, resourceGroupName string, ac result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "List", resp, "Failure responding to request") + return } return @@ -439,6 +441,7 @@ func (client PoolsClient) Update(ctx context.Context, body CapacityPoolPatch, re result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-08-01/netapp/resource.go b/services/netapp/mgmt/2019-08-01/netapp/resource.go index 7900f44b9aae..9f8e4ca68c8e 100644 --- a/services/netapp/mgmt/2019-08-01/netapp/resource.go +++ b/services/netapp/mgmt/2019-08-01/netapp/resource.go @@ -80,6 +80,7 @@ func (client ResourceClient) CheckFilePathAvailability(ctx context.Context, body result, err = client.CheckFilePathAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckFilePathAvailability", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ResourceClient) CheckNameAvailability(ctx context.Context, body Res result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-08-01/netapp/snapshots.go b/services/netapp/mgmt/2019-08-01/netapp/snapshots.go index dbba6645da0b..07eba601fe15 100644 --- a/services/netapp/mgmt/2019-08-01/netapp/snapshots.go +++ b/services/netapp/mgmt/2019-08-01/netapp/snapshots.go @@ -281,6 +281,7 @@ func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +370,7 @@ func (client SnapshotsClient) List(ctx context.Context, resourceGroupName string result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "List", resp, "Failure responding to request") + return } return @@ -458,6 +460,7 @@ func (client SnapshotsClient) Update(ctx context.Context, body SnapshotPatch, re result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-08-01/netapp/volumes.go b/services/netapp/mgmt/2019-08-01/netapp/volumes.go index 71f386d06746..f1113355e673 100644 --- a/services/netapp/mgmt/2019-08-01/netapp/volumes.go +++ b/services/netapp/mgmt/2019-08-01/netapp/volumes.go @@ -294,6 +294,7 @@ func (client VolumesClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Get", resp, "Failure responding to request") + return } return @@ -380,6 +381,7 @@ func (client VolumesClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "List", resp, "Failure responding to request") + return } return @@ -467,6 +469,7 @@ func (client VolumesClient) Update(ctx context.Context, body VolumePatch, resour result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-10-01/netapp/accounts.go b/services/netapp/mgmt/2019-10-01/netapp/accounts.go index 3069f7a4c4db..813723b7c317 100644 --- a/services/netapp/mgmt/2019-10-01/netapp/accounts.go +++ b/services/netapp/mgmt/2019-10-01/netapp/accounts.go @@ -254,6 +254,7 @@ func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -336,6 +337,7 @@ func (client AccountsClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "List", resp, "Failure responding to request") + return } return @@ -419,6 +421,7 @@ func (client AccountsClient) Update(ctx context.Context, body AccountPatch, reso result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-10-01/netapp/mounttargets.go b/services/netapp/mgmt/2019-10-01/netapp/mounttargets.go index ce09428983b0..f9da6653491e 100644 --- a/services/netapp/mgmt/2019-10-01/netapp/mounttargets.go +++ b/services/netapp/mgmt/2019-10-01/netapp/mounttargets.go @@ -83,6 +83,7 @@ func (client MountTargetsClient) List(ctx context.Context, resourceGroupName str result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.MountTargetsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-10-01/netapp/operations.go b/services/netapp/mgmt/2019-10-01/netapp/operations.go index a88996d87e47..f38f39d36d66 100644 --- a/services/netapp/mgmt/2019-10-01/netapp/operations.go +++ b/services/netapp/mgmt/2019-10-01/netapp/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-10-01/netapp/pools.go b/services/netapp/mgmt/2019-10-01/netapp/pools.go index 23a606bf2187..297273036315 100644 --- a/services/netapp/mgmt/2019-10-01/netapp/pools.go +++ b/services/netapp/mgmt/2019-10-01/netapp/pools.go @@ -270,6 +270,7 @@ func (client PoolsClient) Get(ctx context.Context, resourceGroupName string, acc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -354,6 +355,7 @@ func (client PoolsClient) List(ctx context.Context, resourceGroupName string, ac result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "List", resp, "Failure responding to request") + return } return @@ -439,6 +441,7 @@ func (client PoolsClient) Update(ctx context.Context, body CapacityPoolPatch, re result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-10-01/netapp/resource.go b/services/netapp/mgmt/2019-10-01/netapp/resource.go index a6af5f8fa0f1..2a70d1b57168 100644 --- a/services/netapp/mgmt/2019-10-01/netapp/resource.go +++ b/services/netapp/mgmt/2019-10-01/netapp/resource.go @@ -80,6 +80,7 @@ func (client ResourceClient) CheckFilePathAvailability(ctx context.Context, body result, err = client.CheckFilePathAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckFilePathAvailability", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ResourceClient) CheckNameAvailability(ctx context.Context, body Res result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-10-01/netapp/snapshots.go b/services/netapp/mgmt/2019-10-01/netapp/snapshots.go index df4d7c01e527..95af4a0b1c9a 100644 --- a/services/netapp/mgmt/2019-10-01/netapp/snapshots.go +++ b/services/netapp/mgmt/2019-10-01/netapp/snapshots.go @@ -281,6 +281,7 @@ func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +370,7 @@ func (client SnapshotsClient) List(ctx context.Context, resourceGroupName string result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "List", resp, "Failure responding to request") + return } return @@ -458,6 +460,7 @@ func (client SnapshotsClient) Update(ctx context.Context, body SnapshotPatch, re result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-10-01/netapp/volumes.go b/services/netapp/mgmt/2019-10-01/netapp/volumes.go index d7472be48ad2..129496bb3b28 100644 --- a/services/netapp/mgmt/2019-10-01/netapp/volumes.go +++ b/services/netapp/mgmt/2019-10-01/netapp/volumes.go @@ -84,6 +84,7 @@ func (client VolumesClient) AuthorizeReplication(ctx context.Context, resourceGr result, err = client.AuthorizeReplicationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "AuthorizeReplication", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client VolumesClient) BreakReplication(ctx context.Context, resourceGroupN result, err = client.BreakReplicationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "BreakReplication", resp, "Failure responding to request") + return } return @@ -467,6 +469,7 @@ func (client VolumesClient) DeleteReplication(ctx context.Context, resourceGroup result, err = client.DeleteReplicationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "DeleteReplication", resp, "Failure responding to request") + return } return @@ -553,6 +556,7 @@ func (client VolumesClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Get", resp, "Failure responding to request") + return } return @@ -639,6 +643,7 @@ func (client VolumesClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "List", resp, "Failure responding to request") + return } return @@ -725,6 +730,7 @@ func (client VolumesClient) ReplicationStatusMethod(ctx context.Context, resourc result, err = client.ReplicationStatusMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "ReplicationStatusMethod", resp, "Failure responding to request") + return } return @@ -813,6 +819,7 @@ func (client VolumesClient) ResyncReplication(ctx context.Context, resourceGroup result, err = client.ResyncReplicationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "ResyncReplication", resp, "Failure responding to request") + return } return @@ -900,6 +907,7 @@ func (client VolumesClient) Update(ctx context.Context, body VolumePatch, resour result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-11-01/netapp/accounts.go b/services/netapp/mgmt/2019-11-01/netapp/accounts.go index d918dfbef49a..ff8850ba4677 100644 --- a/services/netapp/mgmt/2019-11-01/netapp/accounts.go +++ b/services/netapp/mgmt/2019-11-01/netapp/accounts.go @@ -254,6 +254,7 @@ func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -336,6 +337,7 @@ func (client AccountsClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "List", resp, "Failure responding to request") + return } return @@ -419,6 +421,7 @@ func (client AccountsClient) Update(ctx context.Context, body AccountPatch, reso result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-11-01/netapp/operations.go b/services/netapp/mgmt/2019-11-01/netapp/operations.go index 30e30ecf772d..e4d0fc933a17 100644 --- a/services/netapp/mgmt/2019-11-01/netapp/operations.go +++ b/services/netapp/mgmt/2019-11-01/netapp/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-11-01/netapp/pools.go b/services/netapp/mgmt/2019-11-01/netapp/pools.go index 64d037dbbdb7..cf9404175a90 100644 --- a/services/netapp/mgmt/2019-11-01/netapp/pools.go +++ b/services/netapp/mgmt/2019-11-01/netapp/pools.go @@ -282,6 +282,7 @@ func (client PoolsClient) Get(ctx context.Context, resourceGroupName string, acc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -366,6 +367,7 @@ func (client PoolsClient) List(ctx context.Context, resourceGroupName string, ac result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-11-01/netapp/resource.go b/services/netapp/mgmt/2019-11-01/netapp/resource.go index 6a8bdeeccf03..a2379469bc63 100644 --- a/services/netapp/mgmt/2019-11-01/netapp/resource.go +++ b/services/netapp/mgmt/2019-11-01/netapp/resource.go @@ -80,6 +80,7 @@ func (client ResourceClient) CheckFilePathAvailability(ctx context.Context, body result, err = client.CheckFilePathAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckFilePathAvailability", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ResourceClient) CheckNameAvailability(ctx context.Context, body Res result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-11-01/netapp/snapshots.go b/services/netapp/mgmt/2019-11-01/netapp/snapshots.go index b54a38098e24..8906f402bc7f 100644 --- a/services/netapp/mgmt/2019-11-01/netapp/snapshots.go +++ b/services/netapp/mgmt/2019-11-01/netapp/snapshots.go @@ -305,6 +305,7 @@ func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Get", resp, "Failure responding to request") + return } return @@ -401,6 +402,7 @@ func (client SnapshotsClient) List(ctx context.Context, resourceGroupName string result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2019-11-01/netapp/volumes.go b/services/netapp/mgmt/2019-11-01/netapp/volumes.go index 9323b9728a7a..84e19f3def43 100644 --- a/services/netapp/mgmt/2019-11-01/netapp/volumes.go +++ b/services/netapp/mgmt/2019-11-01/netapp/volumes.go @@ -605,6 +605,7 @@ func (client VolumesClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Get", resp, "Failure responding to request") + return } return @@ -695,6 +696,7 @@ func (client VolumesClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "List", resp, "Failure responding to request") + return } return @@ -789,6 +791,7 @@ func (client VolumesClient) ReplicationStatusMethod(ctx context.Context, resourc result, err = client.ReplicationStatusMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "ReplicationStatusMethod", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-02-01/netapp/accounts.go b/services/netapp/mgmt/2020-02-01/netapp/accounts.go index d693a954352a..996a317e864d 100644 --- a/services/netapp/mgmt/2020-02-01/netapp/accounts.go +++ b/services/netapp/mgmt/2020-02-01/netapp/accounts.go @@ -254,6 +254,7 @@ func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -336,6 +337,7 @@ func (client AccountsClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-02-01/netapp/operations.go b/services/netapp/mgmt/2020-02-01/netapp/operations.go index ffa52242622c..8e01608da01e 100644 --- a/services/netapp/mgmt/2020-02-01/netapp/operations.go +++ b/services/netapp/mgmt/2020-02-01/netapp/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-02-01/netapp/pools.go b/services/netapp/mgmt/2020-02-01/netapp/pools.go index 0aa1a35650c8..29819502ee28 100644 --- a/services/netapp/mgmt/2020-02-01/netapp/pools.go +++ b/services/netapp/mgmt/2020-02-01/netapp/pools.go @@ -282,6 +282,7 @@ func (client PoolsClient) Get(ctx context.Context, resourceGroupName string, acc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -366,6 +367,7 @@ func (client PoolsClient) List(ctx context.Context, resourceGroupName string, ac result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-02-01/netapp/resource.go b/services/netapp/mgmt/2020-02-01/netapp/resource.go index 9e67be643d22..014cf3e7a8ed 100644 --- a/services/netapp/mgmt/2020-02-01/netapp/resource.go +++ b/services/netapp/mgmt/2020-02-01/netapp/resource.go @@ -80,6 +80,7 @@ func (client ResourceClient) CheckFilePathAvailability(ctx context.Context, body result, err = client.CheckFilePathAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckFilePathAvailability", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ResourceClient) CheckNameAvailability(ctx context.Context, body Res result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-02-01/netapp/snapshots.go b/services/netapp/mgmt/2020-02-01/netapp/snapshots.go index 07737b1235fc..d8ab3d363cbb 100644 --- a/services/netapp/mgmt/2020-02-01/netapp/snapshots.go +++ b/services/netapp/mgmt/2020-02-01/netapp/snapshots.go @@ -300,6 +300,7 @@ func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Get", resp, "Failure responding to request") + return } return @@ -396,6 +397,7 @@ func (client SnapshotsClient) List(ctx context.Context, resourceGroupName string result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-02-01/netapp/volumes.go b/services/netapp/mgmt/2020-02-01/netapp/volumes.go index 3ca364d0375b..f82878722fef 100644 --- a/services/netapp/mgmt/2020-02-01/netapp/volumes.go +++ b/services/netapp/mgmt/2020-02-01/netapp/volumes.go @@ -605,6 +605,7 @@ func (client VolumesClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Get", resp, "Failure responding to request") + return } return @@ -695,6 +696,7 @@ func (client VolumesClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "List", resp, "Failure responding to request") + return } return @@ -789,6 +791,7 @@ func (client VolumesClient) ReplicationStatusMethod(ctx context.Context, resourc result, err = client.ReplicationStatusMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "ReplicationStatusMethod", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-03-01/netapp/accounts.go b/services/netapp/mgmt/2020-03-01/netapp/accounts.go index 419e029aad9d..5425d7cad257 100644 --- a/services/netapp/mgmt/2020-03-01/netapp/accounts.go +++ b/services/netapp/mgmt/2020-03-01/netapp/accounts.go @@ -254,6 +254,7 @@ func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -336,6 +337,7 @@ func (client AccountsClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-03-01/netapp/operations.go b/services/netapp/mgmt/2020-03-01/netapp/operations.go index e159de00114d..f05442ecc64b 100644 --- a/services/netapp/mgmt/2020-03-01/netapp/operations.go +++ b/services/netapp/mgmt/2020-03-01/netapp/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-03-01/netapp/pools.go b/services/netapp/mgmt/2020-03-01/netapp/pools.go index c87f4cf7aff1..000a107e1dc4 100644 --- a/services/netapp/mgmt/2020-03-01/netapp/pools.go +++ b/services/netapp/mgmt/2020-03-01/netapp/pools.go @@ -282,6 +282,7 @@ func (client PoolsClient) Get(ctx context.Context, resourceGroupName string, acc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -366,6 +367,7 @@ func (client PoolsClient) List(ctx context.Context, resourceGroupName string, ac result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-03-01/netapp/resource.go b/services/netapp/mgmt/2020-03-01/netapp/resource.go index 1abb098640bf..d3b4f7db98c4 100644 --- a/services/netapp/mgmt/2020-03-01/netapp/resource.go +++ b/services/netapp/mgmt/2020-03-01/netapp/resource.go @@ -80,6 +80,7 @@ func (client ResourceClient) CheckFilePathAvailability(ctx context.Context, body result, err = client.CheckFilePathAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckFilePathAvailability", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ResourceClient) CheckNameAvailability(ctx context.Context, body Res result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-03-01/netapp/snapshots.go b/services/netapp/mgmt/2020-03-01/netapp/snapshots.go index ee752389eaaf..9e38e352520e 100644 --- a/services/netapp/mgmt/2020-03-01/netapp/snapshots.go +++ b/services/netapp/mgmt/2020-03-01/netapp/snapshots.go @@ -300,6 +300,7 @@ func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Get", resp, "Failure responding to request") + return } return @@ -396,6 +397,7 @@ func (client SnapshotsClient) List(ctx context.Context, resourceGroupName string result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-03-01/netapp/volumes.go b/services/netapp/mgmt/2020-03-01/netapp/volumes.go index 36e68179d335..8d3fa3c46839 100644 --- a/services/netapp/mgmt/2020-03-01/netapp/volumes.go +++ b/services/netapp/mgmt/2020-03-01/netapp/volumes.go @@ -605,6 +605,7 @@ func (client VolumesClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Get", resp, "Failure responding to request") + return } return @@ -695,6 +696,7 @@ func (client VolumesClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "List", resp, "Failure responding to request") + return } return @@ -789,6 +791,7 @@ func (client VolumesClient) ReplicationStatusMethod(ctx context.Context, resourc result, err = client.ReplicationStatusMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "ReplicationStatusMethod", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-05-01/netapp/accountbackups.go b/services/netapp/mgmt/2020-05-01/netapp/accountbackups.go index c0185979fefd..014b69c32e8d 100644 --- a/services/netapp/mgmt/2020-05-01/netapp/accountbackups.go +++ b/services/netapp/mgmt/2020-05-01/netapp/accountbackups.go @@ -166,6 +166,7 @@ func (client AccountBackupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountBackupsClient", "Get", resp, "Failure responding to request") + return } return @@ -250,6 +251,7 @@ func (client AccountBackupsClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountBackupsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-05-01/netapp/accounts.go b/services/netapp/mgmt/2020-05-01/netapp/accounts.go index 56dc164f2d75..8fe0802e162f 100644 --- a/services/netapp/mgmt/2020-05-01/netapp/accounts.go +++ b/services/netapp/mgmt/2020-05-01/netapp/accounts.go @@ -254,6 +254,7 @@ func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -336,6 +337,7 @@ func (client AccountsClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-05-01/netapp/backuppolicies.go b/services/netapp/mgmt/2020-05-01/netapp/backuppolicies.go index 720f7a6755fe..c6e14404e79d 100644 --- a/services/netapp/mgmt/2020-05-01/netapp/backuppolicies.go +++ b/services/netapp/mgmt/2020-05-01/netapp/backuppolicies.go @@ -260,6 +260,7 @@ func (client BackupPoliciesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BackupPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +345,7 @@ func (client BackupPoliciesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BackupPoliciesClient", "List", resp, "Failure responding to request") + return } return @@ -429,6 +431,7 @@ func (client BackupPoliciesClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BackupPoliciesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-05-01/netapp/backups.go b/services/netapp/mgmt/2020-05-01/netapp/backups.go index c7945195281c..1c09d4d85d64 100644 --- a/services/netapp/mgmt/2020-05-01/netapp/backups.go +++ b/services/netapp/mgmt/2020-05-01/netapp/backups.go @@ -294,6 +294,7 @@ func (client BackupsClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BackupsClient", "Get", resp, "Failure responding to request") + return } return @@ -390,6 +391,7 @@ func (client BackupsClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BackupsClient", "List", resp, "Failure responding to request") + return } return @@ -487,6 +489,7 @@ func (client BackupsClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BackupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-05-01/netapp/operations.go b/services/netapp/mgmt/2020-05-01/netapp/operations.go index 85aa3f21e910..77b09221436f 100644 --- a/services/netapp/mgmt/2020-05-01/netapp/operations.go +++ b/services/netapp/mgmt/2020-05-01/netapp/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-05-01/netapp/pools.go b/services/netapp/mgmt/2020-05-01/netapp/pools.go index efd614a951a4..7e65bcd420f5 100644 --- a/services/netapp/mgmt/2020-05-01/netapp/pools.go +++ b/services/netapp/mgmt/2020-05-01/netapp/pools.go @@ -282,6 +282,7 @@ func (client PoolsClient) Get(ctx context.Context, resourceGroupName string, acc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -366,6 +367,7 @@ func (client PoolsClient) List(ctx context.Context, resourceGroupName string, ac result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-05-01/netapp/resource.go b/services/netapp/mgmt/2020-05-01/netapp/resource.go index c410e8f7b04b..57c9f02fd582 100644 --- a/services/netapp/mgmt/2020-05-01/netapp/resource.go +++ b/services/netapp/mgmt/2020-05-01/netapp/resource.go @@ -80,6 +80,7 @@ func (client ResourceClient) CheckFilePathAvailability(ctx context.Context, body result, err = client.CheckFilePathAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckFilePathAvailability", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ResourceClient) CheckNameAvailability(ctx context.Context, body Res result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client ResourceClient) CheckQuotaAvailability(ctx context.Context, body Qu result, err = client.CheckQuotaAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckQuotaAvailability", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-05-01/netapp/snapshotpolicies.go b/services/netapp/mgmt/2020-05-01/netapp/snapshotpolicies.go index 21a32ec65f74..4b496e1d42c6 100644 --- a/services/netapp/mgmt/2020-05-01/netapp/snapshotpolicies.go +++ b/services/netapp/mgmt/2020-05-01/netapp/snapshotpolicies.go @@ -87,6 +87,7 @@ func (client SnapshotPoliciesClient) Create(ctx context.Context, body SnapshotPo result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotPoliciesClient", "Create", resp, "Failure responding to request") + return } return @@ -261,6 +262,7 @@ func (client SnapshotPoliciesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +347,7 @@ func (client SnapshotPoliciesClient) List(ctx context.Context, resourceGroupName result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotPoliciesClient", "List", resp, "Failure responding to request") + return } return @@ -429,6 +432,7 @@ func (client SnapshotPoliciesClient) ListVolumes(ctx context.Context, resourceGr result, err = client.ListVolumesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotPoliciesClient", "ListVolumes", resp, "Failure responding to request") + return } return @@ -515,6 +519,7 @@ func (client SnapshotPoliciesClient) Update(ctx context.Context, body SnapshotPo result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotPoliciesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-05-01/netapp/snapshots.go b/services/netapp/mgmt/2020-05-01/netapp/snapshots.go index 5e69966ec750..ca195c540c1e 100644 --- a/services/netapp/mgmt/2020-05-01/netapp/snapshots.go +++ b/services/netapp/mgmt/2020-05-01/netapp/snapshots.go @@ -300,6 +300,7 @@ func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Get", resp, "Failure responding to request") + return } return @@ -396,6 +397,7 @@ func (client SnapshotsClient) List(ctx context.Context, resourceGroupName string result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-05-01/netapp/vaults.go b/services/netapp/mgmt/2020-05-01/netapp/vaults.go index 5c29038ac97c..a5fff25e4476 100644 --- a/services/netapp/mgmt/2020-05-01/netapp/vaults.go +++ b/services/netapp/mgmt/2020-05-01/netapp/vaults.go @@ -81,6 +81,7 @@ func (client VaultsClient) List(ctx context.Context, resourceGroupName string, a result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VaultsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-05-01/netapp/volumes.go b/services/netapp/mgmt/2020-05-01/netapp/volumes.go index 034ed98cc432..0e08e4215509 100644 --- a/services/netapp/mgmt/2020-05-01/netapp/volumes.go +++ b/services/netapp/mgmt/2020-05-01/netapp/volumes.go @@ -616,6 +616,7 @@ func (client VolumesClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Get", resp, "Failure responding to request") + return } return @@ -706,6 +707,7 @@ func (client VolumesClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "List", resp, "Failure responding to request") + return } return @@ -993,6 +995,7 @@ func (client VolumesClient) ReplicationStatusMethod(ctx context.Context, resourc result, err = client.ReplicationStatusMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "ReplicationStatusMethod", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-06-01/netapp/accountbackups.go b/services/netapp/mgmt/2020-06-01/netapp/accountbackups.go index 345ce195e8ff..db1178c97510 100644 --- a/services/netapp/mgmt/2020-06-01/netapp/accountbackups.go +++ b/services/netapp/mgmt/2020-06-01/netapp/accountbackups.go @@ -166,6 +166,7 @@ func (client AccountBackupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountBackupsClient", "Get", resp, "Failure responding to request") + return } return @@ -250,6 +251,7 @@ func (client AccountBackupsClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountBackupsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-06-01/netapp/accounts.go b/services/netapp/mgmt/2020-06-01/netapp/accounts.go index 346a1d5db1da..ebfa244eb145 100644 --- a/services/netapp/mgmt/2020-06-01/netapp/accounts.go +++ b/services/netapp/mgmt/2020-06-01/netapp/accounts.go @@ -254,6 +254,7 @@ func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -336,6 +337,7 @@ func (client AccountsClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-06-01/netapp/backuppolicies.go b/services/netapp/mgmt/2020-06-01/netapp/backuppolicies.go index be8816aa181d..d64f109e9cef 100644 --- a/services/netapp/mgmt/2020-06-01/netapp/backuppolicies.go +++ b/services/netapp/mgmt/2020-06-01/netapp/backuppolicies.go @@ -260,6 +260,7 @@ func (client BackupPoliciesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BackupPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +345,7 @@ func (client BackupPoliciesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BackupPoliciesClient", "List", resp, "Failure responding to request") + return } return @@ -429,6 +431,7 @@ func (client BackupPoliciesClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BackupPoliciesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-06-01/netapp/backups.go b/services/netapp/mgmt/2020-06-01/netapp/backups.go index 3a7459564b2e..ec058f8352c7 100644 --- a/services/netapp/mgmt/2020-06-01/netapp/backups.go +++ b/services/netapp/mgmt/2020-06-01/netapp/backups.go @@ -300,6 +300,7 @@ func (client BackupsClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BackupsClient", "Get", resp, "Failure responding to request") + return } return @@ -396,6 +397,7 @@ func (client BackupsClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BackupsClient", "List", resp, "Failure responding to request") + return } return @@ -493,6 +495,7 @@ func (client BackupsClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BackupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-06-01/netapp/operations.go b/services/netapp/mgmt/2020-06-01/netapp/operations.go index 773fedd35675..f1f3292571e3 100644 --- a/services/netapp/mgmt/2020-06-01/netapp/operations.go +++ b/services/netapp/mgmt/2020-06-01/netapp/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-06-01/netapp/pools.go b/services/netapp/mgmt/2020-06-01/netapp/pools.go index b98f8b77a8b7..6f8f612f5e7c 100644 --- a/services/netapp/mgmt/2020-06-01/netapp/pools.go +++ b/services/netapp/mgmt/2020-06-01/netapp/pools.go @@ -282,6 +282,7 @@ func (client PoolsClient) Get(ctx context.Context, resourceGroupName string, acc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -366,6 +367,7 @@ func (client PoolsClient) List(ctx context.Context, resourceGroupName string, ac result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-06-01/netapp/resource.go b/services/netapp/mgmt/2020-06-01/netapp/resource.go index 661d64cfb8dd..4271260874eb 100644 --- a/services/netapp/mgmt/2020-06-01/netapp/resource.go +++ b/services/netapp/mgmt/2020-06-01/netapp/resource.go @@ -80,6 +80,7 @@ func (client ResourceClient) CheckFilePathAvailability(ctx context.Context, body result, err = client.CheckFilePathAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckFilePathAvailability", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ResourceClient) CheckNameAvailability(ctx context.Context, body Res result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client ResourceClient) CheckQuotaAvailability(ctx context.Context, body Qu result, err = client.CheckQuotaAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckQuotaAvailability", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-06-01/netapp/snapshotpolicies.go b/services/netapp/mgmt/2020-06-01/netapp/snapshotpolicies.go index 4e3ec639ab6e..94da9c4a4641 100644 --- a/services/netapp/mgmt/2020-06-01/netapp/snapshotpolicies.go +++ b/services/netapp/mgmt/2020-06-01/netapp/snapshotpolicies.go @@ -87,6 +87,7 @@ func (client SnapshotPoliciesClient) Create(ctx context.Context, body SnapshotPo result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotPoliciesClient", "Create", resp, "Failure responding to request") + return } return @@ -261,6 +262,7 @@ func (client SnapshotPoliciesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +347,7 @@ func (client SnapshotPoliciesClient) List(ctx context.Context, resourceGroupName result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotPoliciesClient", "List", resp, "Failure responding to request") + return } return @@ -429,6 +432,7 @@ func (client SnapshotPoliciesClient) ListVolumes(ctx context.Context, resourceGr result, err = client.ListVolumesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotPoliciesClient", "ListVolumes", resp, "Failure responding to request") + return } return @@ -515,6 +519,7 @@ func (client SnapshotPoliciesClient) Update(ctx context.Context, body SnapshotPo result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotPoliciesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-06-01/netapp/snapshots.go b/services/netapp/mgmt/2020-06-01/netapp/snapshots.go index 4d604cee985d..d23c24198f7c 100644 --- a/services/netapp/mgmt/2020-06-01/netapp/snapshots.go +++ b/services/netapp/mgmt/2020-06-01/netapp/snapshots.go @@ -300,6 +300,7 @@ func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Get", resp, "Failure responding to request") + return } return @@ -396,6 +397,7 @@ func (client SnapshotsClient) List(ctx context.Context, resourceGroupName string result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-06-01/netapp/vaults.go b/services/netapp/mgmt/2020-06-01/netapp/vaults.go index a01604061592..f3607b24e9ad 100644 --- a/services/netapp/mgmt/2020-06-01/netapp/vaults.go +++ b/services/netapp/mgmt/2020-06-01/netapp/vaults.go @@ -81,6 +81,7 @@ func (client VaultsClient) List(ctx context.Context, resourceGroupName string, a result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VaultsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-06-01/netapp/volumes.go b/services/netapp/mgmt/2020-06-01/netapp/volumes.go index f73340c9ea35..803ba4f394e4 100644 --- a/services/netapp/mgmt/2020-06-01/netapp/volumes.go +++ b/services/netapp/mgmt/2020-06-01/netapp/volumes.go @@ -621,6 +621,7 @@ func (client VolumesClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Get", resp, "Failure responding to request") + return } return @@ -711,6 +712,7 @@ func (client VolumesClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "List", resp, "Failure responding to request") + return } return @@ -998,6 +1000,7 @@ func (client VolumesClient) ReplicationStatusMethod(ctx context.Context, resourc result, err = client.ReplicationStatusMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "ReplicationStatusMethod", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-07-01/netapp/accountbackups.go b/services/netapp/mgmt/2020-07-01/netapp/accountbackups.go index 9ff3fd158781..d3343c9c6cde 100644 --- a/services/netapp/mgmt/2020-07-01/netapp/accountbackups.go +++ b/services/netapp/mgmt/2020-07-01/netapp/accountbackups.go @@ -166,6 +166,7 @@ func (client AccountBackupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountBackupsClient", "Get", resp, "Failure responding to request") + return } return @@ -250,6 +251,7 @@ func (client AccountBackupsClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountBackupsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-07-01/netapp/accounts.go b/services/netapp/mgmt/2020-07-01/netapp/accounts.go index e58875ec25f3..a99bbddf67f9 100644 --- a/services/netapp/mgmt/2020-07-01/netapp/accounts.go +++ b/services/netapp/mgmt/2020-07-01/netapp/accounts.go @@ -254,6 +254,7 @@ func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -336,6 +337,7 @@ func (client AccountsClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-07-01/netapp/backuppolicies.go b/services/netapp/mgmt/2020-07-01/netapp/backuppolicies.go index 1c3a926d568d..c0c595e4afcd 100644 --- a/services/netapp/mgmt/2020-07-01/netapp/backuppolicies.go +++ b/services/netapp/mgmt/2020-07-01/netapp/backuppolicies.go @@ -260,6 +260,7 @@ func (client BackupPoliciesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BackupPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +345,7 @@ func (client BackupPoliciesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BackupPoliciesClient", "List", resp, "Failure responding to request") + return } return @@ -429,6 +431,7 @@ func (client BackupPoliciesClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BackupPoliciesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-07-01/netapp/backups.go b/services/netapp/mgmt/2020-07-01/netapp/backups.go index c139431596a8..1c27112748c9 100644 --- a/services/netapp/mgmt/2020-07-01/netapp/backups.go +++ b/services/netapp/mgmt/2020-07-01/netapp/backups.go @@ -300,6 +300,7 @@ func (client BackupsClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BackupsClient", "Get", resp, "Failure responding to request") + return } return @@ -396,6 +397,7 @@ func (client BackupsClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BackupsClient", "List", resp, "Failure responding to request") + return } return @@ -493,6 +495,7 @@ func (client BackupsClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BackupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-07-01/netapp/operations.go b/services/netapp/mgmt/2020-07-01/netapp/operations.go index a012fcfe44fb..6ad52b83348c 100644 --- a/services/netapp/mgmt/2020-07-01/netapp/operations.go +++ b/services/netapp/mgmt/2020-07-01/netapp/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-07-01/netapp/pools.go b/services/netapp/mgmt/2020-07-01/netapp/pools.go index bec9314ead4a..5d4eb6faf6a1 100644 --- a/services/netapp/mgmt/2020-07-01/netapp/pools.go +++ b/services/netapp/mgmt/2020-07-01/netapp/pools.go @@ -282,6 +282,7 @@ func (client PoolsClient) Get(ctx context.Context, resourceGroupName string, acc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -366,6 +367,7 @@ func (client PoolsClient) List(ctx context.Context, resourceGroupName string, ac result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-07-01/netapp/resource.go b/services/netapp/mgmt/2020-07-01/netapp/resource.go index bf5929b01dcb..ef2574b69ff8 100644 --- a/services/netapp/mgmt/2020-07-01/netapp/resource.go +++ b/services/netapp/mgmt/2020-07-01/netapp/resource.go @@ -80,6 +80,7 @@ func (client ResourceClient) CheckFilePathAvailability(ctx context.Context, body result, err = client.CheckFilePathAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckFilePathAvailability", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ResourceClient) CheckNameAvailability(ctx context.Context, body Res result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client ResourceClient) CheckQuotaAvailability(ctx context.Context, body Qu result, err = client.CheckQuotaAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckQuotaAvailability", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-07-01/netapp/snapshotpolicies.go b/services/netapp/mgmt/2020-07-01/netapp/snapshotpolicies.go index 0029363a57df..b4bc49792a30 100644 --- a/services/netapp/mgmt/2020-07-01/netapp/snapshotpolicies.go +++ b/services/netapp/mgmt/2020-07-01/netapp/snapshotpolicies.go @@ -87,6 +87,7 @@ func (client SnapshotPoliciesClient) Create(ctx context.Context, body SnapshotPo result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotPoliciesClient", "Create", resp, "Failure responding to request") + return } return @@ -261,6 +262,7 @@ func (client SnapshotPoliciesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +347,7 @@ func (client SnapshotPoliciesClient) List(ctx context.Context, resourceGroupName result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotPoliciesClient", "List", resp, "Failure responding to request") + return } return @@ -429,6 +432,7 @@ func (client SnapshotPoliciesClient) ListVolumes(ctx context.Context, resourceGr result, err = client.ListVolumesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotPoliciesClient", "ListVolumes", resp, "Failure responding to request") + return } return @@ -515,6 +519,7 @@ func (client SnapshotPoliciesClient) Update(ctx context.Context, body SnapshotPo result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotPoliciesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-07-01/netapp/snapshots.go b/services/netapp/mgmt/2020-07-01/netapp/snapshots.go index 7c8b6fa78a6c..163fa20188a7 100644 --- a/services/netapp/mgmt/2020-07-01/netapp/snapshots.go +++ b/services/netapp/mgmt/2020-07-01/netapp/snapshots.go @@ -300,6 +300,7 @@ func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Get", resp, "Failure responding to request") + return } return @@ -396,6 +397,7 @@ func (client SnapshotsClient) List(ctx context.Context, resourceGroupName string result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-07-01/netapp/vaults.go b/services/netapp/mgmt/2020-07-01/netapp/vaults.go index 098075fa7169..cd4fcfbbc971 100644 --- a/services/netapp/mgmt/2020-07-01/netapp/vaults.go +++ b/services/netapp/mgmt/2020-07-01/netapp/vaults.go @@ -81,6 +81,7 @@ func (client VaultsClient) List(ctx context.Context, resourceGroupName string, a result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VaultsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-07-01/netapp/volumes.go b/services/netapp/mgmt/2020-07-01/netapp/volumes.go index 547cc602d1bf..337123de4bbd 100644 --- a/services/netapp/mgmt/2020-07-01/netapp/volumes.go +++ b/services/netapp/mgmt/2020-07-01/netapp/volumes.go @@ -616,6 +616,7 @@ func (client VolumesClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Get", resp, "Failure responding to request") + return } return @@ -706,6 +707,7 @@ func (client VolumesClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "List", resp, "Failure responding to request") + return } return @@ -993,6 +995,7 @@ func (client VolumesClient) ReplicationStatusMethod(ctx context.Context, resourc result, err = client.ReplicationStatusMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "ReplicationStatusMethod", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-08-01/netapp/accountbackups.go b/services/netapp/mgmt/2020-08-01/netapp/accountbackups.go index af3c09f6f9cc..1c5afe11ac84 100644 --- a/services/netapp/mgmt/2020-08-01/netapp/accountbackups.go +++ b/services/netapp/mgmt/2020-08-01/netapp/accountbackups.go @@ -166,6 +166,7 @@ func (client AccountBackupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountBackupsClient", "Get", resp, "Failure responding to request") + return } return @@ -250,6 +251,7 @@ func (client AccountBackupsClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountBackupsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-08-01/netapp/accounts.go b/services/netapp/mgmt/2020-08-01/netapp/accounts.go index 96915112908a..c1fd5cabf10d 100644 --- a/services/netapp/mgmt/2020-08-01/netapp/accounts.go +++ b/services/netapp/mgmt/2020-08-01/netapp/accounts.go @@ -254,6 +254,7 @@ func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -336,6 +337,7 @@ func (client AccountsClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-08-01/netapp/backuppolicies.go b/services/netapp/mgmt/2020-08-01/netapp/backuppolicies.go index 229ca97c6834..a8aeacebb1e9 100644 --- a/services/netapp/mgmt/2020-08-01/netapp/backuppolicies.go +++ b/services/netapp/mgmt/2020-08-01/netapp/backuppolicies.go @@ -260,6 +260,7 @@ func (client BackupPoliciesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BackupPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +345,7 @@ func (client BackupPoliciesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BackupPoliciesClient", "List", resp, "Failure responding to request") + return } return @@ -429,6 +431,7 @@ func (client BackupPoliciesClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BackupPoliciesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-08-01/netapp/backups.go b/services/netapp/mgmt/2020-08-01/netapp/backups.go index 9ca2f6fcd860..f9a53cbcb039 100644 --- a/services/netapp/mgmt/2020-08-01/netapp/backups.go +++ b/services/netapp/mgmt/2020-08-01/netapp/backups.go @@ -300,6 +300,7 @@ func (client BackupsClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BackupsClient", "Get", resp, "Failure responding to request") + return } return @@ -396,6 +397,7 @@ func (client BackupsClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BackupsClient", "List", resp, "Failure responding to request") + return } return @@ -493,6 +495,7 @@ func (client BackupsClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.BackupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-08-01/netapp/operations.go b/services/netapp/mgmt/2020-08-01/netapp/operations.go index 6a87f16d8ace..715a9d193e9a 100644 --- a/services/netapp/mgmt/2020-08-01/netapp/operations.go +++ b/services/netapp/mgmt/2020-08-01/netapp/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-08-01/netapp/pools.go b/services/netapp/mgmt/2020-08-01/netapp/pools.go index ba9096ae4078..1eb2109efedc 100644 --- a/services/netapp/mgmt/2020-08-01/netapp/pools.go +++ b/services/netapp/mgmt/2020-08-01/netapp/pools.go @@ -282,6 +282,7 @@ func (client PoolsClient) Get(ctx context.Context, resourceGroupName string, acc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -366,6 +367,7 @@ func (client PoolsClient) List(ctx context.Context, resourceGroupName string, ac result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-08-01/netapp/resource.go b/services/netapp/mgmt/2020-08-01/netapp/resource.go index 5a863186209d..d660b08e520d 100644 --- a/services/netapp/mgmt/2020-08-01/netapp/resource.go +++ b/services/netapp/mgmt/2020-08-01/netapp/resource.go @@ -80,6 +80,7 @@ func (client ResourceClient) CheckFilePathAvailability(ctx context.Context, body result, err = client.CheckFilePathAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckFilePathAvailability", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ResourceClient) CheckNameAvailability(ctx context.Context, body Res result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client ResourceClient) CheckQuotaAvailability(ctx context.Context, body Qu result, err = client.CheckQuotaAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckQuotaAvailability", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-08-01/netapp/snapshotpolicies.go b/services/netapp/mgmt/2020-08-01/netapp/snapshotpolicies.go index 60933aef29d7..396003f188e7 100644 --- a/services/netapp/mgmt/2020-08-01/netapp/snapshotpolicies.go +++ b/services/netapp/mgmt/2020-08-01/netapp/snapshotpolicies.go @@ -87,6 +87,7 @@ func (client SnapshotPoliciesClient) Create(ctx context.Context, body SnapshotPo result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotPoliciesClient", "Create", resp, "Failure responding to request") + return } return @@ -261,6 +262,7 @@ func (client SnapshotPoliciesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +347,7 @@ func (client SnapshotPoliciesClient) List(ctx context.Context, resourceGroupName result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotPoliciesClient", "List", resp, "Failure responding to request") + return } return @@ -429,6 +432,7 @@ func (client SnapshotPoliciesClient) ListVolumes(ctx context.Context, resourceGr result, err = client.ListVolumesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotPoliciesClient", "ListVolumes", resp, "Failure responding to request") + return } return @@ -515,6 +519,7 @@ func (client SnapshotPoliciesClient) Update(ctx context.Context, body SnapshotPo result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotPoliciesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-08-01/netapp/snapshots.go b/services/netapp/mgmt/2020-08-01/netapp/snapshots.go index fa3d52a1de8d..1735fcbdee54 100644 --- a/services/netapp/mgmt/2020-08-01/netapp/snapshots.go +++ b/services/netapp/mgmt/2020-08-01/netapp/snapshots.go @@ -300,6 +300,7 @@ func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Get", resp, "Failure responding to request") + return } return @@ -396,6 +397,7 @@ func (client SnapshotsClient) List(ctx context.Context, resourceGroupName string result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-08-01/netapp/vaults.go b/services/netapp/mgmt/2020-08-01/netapp/vaults.go index 9c0c12500e71..1997b9ce81b5 100644 --- a/services/netapp/mgmt/2020-08-01/netapp/vaults.go +++ b/services/netapp/mgmt/2020-08-01/netapp/vaults.go @@ -81,6 +81,7 @@ func (client VaultsClient) List(ctx context.Context, resourceGroupName string, a result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VaultsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/netapp/mgmt/2020-08-01/netapp/volumes.go b/services/netapp/mgmt/2020-08-01/netapp/volumes.go index 8b07592288be..7e646a82f24d 100644 --- a/services/netapp/mgmt/2020-08-01/netapp/volumes.go +++ b/services/netapp/mgmt/2020-08-01/netapp/volumes.go @@ -616,6 +616,7 @@ func (client VolumesClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Get", resp, "Failure responding to request") + return } return @@ -706,6 +707,7 @@ func (client VolumesClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "List", resp, "Failure responding to request") + return } return @@ -993,6 +995,7 @@ func (client VolumesClient) ReplicationStatusMethod(ctx context.Context, resourc result, err = client.ReplicationStatusMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "ReplicationStatusMethod", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2015-06-15/network/applicationgateways.go b/services/network/mgmt/2015-06-15/network/applicationgateways.go index 859009ece1cc..fc94d02b044c 100644 --- a/services/network/mgmt/2015-06-15/network/applicationgateways.go +++ b/services/network/mgmt/2015-06-15/network/applicationgateways.go @@ -225,6 +225,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +365,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2015-06-15/network/client.go b/services/network/mgmt/2015-06-15/network/client.go index c301bdc13d2c..975becfb8081 100644 --- a/services/network/mgmt/2015-06-15/network/client.go +++ b/services/network/mgmt/2015-06-15/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2015-06-15/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2015-06-15/network/expressroutecircuitauthorizations.go index d291e7d6294c..57ecda2d7c44 100644 --- a/services/network/mgmt/2015-06-15/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2015-06-15/network/expressroutecircuitauthorizations.go @@ -232,6 +232,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2015-06-15/network/expressroutecircuitpeerings.go b/services/network/mgmt/2015-06-15/network/expressroutecircuitpeerings.go index 86f09609bcc3..89d778c82b7b 100644 --- a/services/network/mgmt/2015-06-15/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2015-06-15/network/expressroutecircuitpeerings.go @@ -230,6 +230,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2015-06-15/network/expressroutecircuits.go b/services/network/mgmt/2015-06-15/network/expressroutecircuits.go index 735a01bb8264..e11a4dc476ea 100644 --- a/services/network/mgmt/2015-06-15/network/expressroutecircuits.go +++ b/services/network/mgmt/2015-06-15/network/expressroutecircuits.go @@ -225,6 +225,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +365,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -527,6 +532,7 @@ func (client ExpressRouteCircuitsClient) ListArpTable(ctx context.Context, resou result.ercatlr, err = client.ListArpTableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListArpTable", resp, "Failure responding to request") + return } if result.ercatlr.hasNextLink() && result.ercatlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -591,6 +597,7 @@ func (client ExpressRouteCircuitsClient) listArpTableNextResults(ctx context.Con result, err = client.ListArpTableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listArpTableNextResults", resp, "Failure responding to next results request") + return } return } @@ -644,6 +651,7 @@ func (client ExpressRouteCircuitsClient) ListRoutesTable(ctx context.Context, re result.ercrtlr, err = client.ListRoutesTableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListRoutesTable", resp, "Failure responding to request") + return } if result.ercrtlr.hasNextLink() && result.ercrtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -708,6 +716,7 @@ func (client ExpressRouteCircuitsClient) listRoutesTableNextResults(ctx context. result, err = client.ListRoutesTableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listRoutesTableNextResults", resp, "Failure responding to next results request") + return } return } @@ -761,6 +770,7 @@ func (client ExpressRouteCircuitsClient) ListStats(ctx context.Context, resource result.ercslr, err = client.ListStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListStats", resp, "Failure responding to request") + return } if result.ercslr.hasNextLink() && result.ercslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -825,6 +835,7 @@ func (client ExpressRouteCircuitsClient) listStatsNextResults(ctx context.Contex result, err = client.ListStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listStatsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2015-06-15/network/expressrouteserviceproviders.go b/services/network/mgmt/2015-06-15/network/expressrouteserviceproviders.go index 8b45e4634cb9..9d2b143bf965 100644 --- a/services/network/mgmt/2015-06-15/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2015-06-15/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2015-06-15/network/interfacesgroup.go b/services/network/mgmt/2015-06-15/network/interfacesgroup.go index 8b2d6a818d39..603b93f070ea 100644 --- a/services/network/mgmt/2015-06-15/network/interfacesgroup.go +++ b/services/network/mgmt/2015-06-15/network/interfacesgroup.go @@ -225,6 +225,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -386,6 +388,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -449,6 +452,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -498,6 +502,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -560,6 +565,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -612,6 +618,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -676,6 +683,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -730,6 +738,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -795,6 +804,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2015-06-15/network/loadbalancers.go b/services/network/mgmt/2015-06-15/network/loadbalancers.go index 63fb976637a4..735ca4c4f74d 100644 --- a/services/network/mgmt/2015-06-15/network/loadbalancers.go +++ b/services/network/mgmt/2015-06-15/network/loadbalancers.go @@ -225,6 +225,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2015-06-15/network/localnetworkgateways.go b/services/network/mgmt/2015-06-15/network/localnetworkgateways.go index 7136e2d29891..cc96ce2e9cdb 100644 --- a/services/network/mgmt/2015-06-15/network/localnetworkgateways.go +++ b/services/network/mgmt/2015-06-15/network/localnetworkgateways.go @@ -225,6 +225,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +365,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2015-06-15/network/publicipaddresses.go b/services/network/mgmt/2015-06-15/network/publicipaddresses.go index 7b5dc0990448..7f000ec9c7ba 100644 --- a/services/network/mgmt/2015-06-15/network/publicipaddresses.go +++ b/services/network/mgmt/2015-06-15/network/publicipaddresses.go @@ -238,6 +238,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -379,6 +381,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -428,6 +431,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -490,6 +494,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2015-06-15/network/routes.go b/services/network/mgmt/2015-06-15/network/routes.go index 26332f1ecf2a..f6ce89f5f186 100644 --- a/services/network/mgmt/2015-06-15/network/routes.go +++ b/services/network/mgmt/2015-06-15/network/routes.go @@ -229,6 +229,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2015-06-15/network/routetables.go b/services/network/mgmt/2015-06-15/network/routetables.go index c0d1539a50a3..29263a64b6fb 100644 --- a/services/network/mgmt/2015-06-15/network/routetables.go +++ b/services/network/mgmt/2015-06-15/network/routetables.go @@ -225,6 +225,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2015-06-15/network/securitygroups.go b/services/network/mgmt/2015-06-15/network/securitygroups.go index c61d43a08649..2959e33fe87f 100644 --- a/services/network/mgmt/2015-06-15/network/securitygroups.go +++ b/services/network/mgmt/2015-06-15/network/securitygroups.go @@ -225,6 +225,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2015-06-15/network/securityrules.go b/services/network/mgmt/2015-06-15/network/securityrules.go index 78dfddc62b5c..7fa8576358dd 100644 --- a/services/network/mgmt/2015-06-15/network/securityrules.go +++ b/services/network/mgmt/2015-06-15/network/securityrules.go @@ -239,6 +239,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +382,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2015-06-15/network/subnets.go b/services/network/mgmt/2015-06-15/network/subnets.go index 53101d3c9acd..4a46541310e2 100644 --- a/services/network/mgmt/2015-06-15/network/subnets.go +++ b/services/network/mgmt/2015-06-15/network/subnets.go @@ -230,6 +230,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2015-06-15/network/usages.go b/services/network/mgmt/2015-06-15/network/usages.go index d1f38dfeb2f2..b0d3b1384077 100644 --- a/services/network/mgmt/2015-06-15/network/usages.go +++ b/services/network/mgmt/2015-06-15/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2015-06-15/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2015-06-15/network/virtualnetworkgatewayconnections.go index e0d2bb65d680..c88cbff591be 100644 --- a/services/network/mgmt/2015-06-15/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2015-06-15/network/virtualnetworkgatewayconnections.go @@ -225,6 +225,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -377,6 +379,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -440,6 +443,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2015-06-15/network/virtualnetworkgateways.go b/services/network/mgmt/2015-06-15/network/virtualnetworkgateways.go index a5c02d475b59..5ee095fcfcea 100644 --- a/services/network/mgmt/2015-06-15/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2015-06-15/network/virtualnetworkgateways.go @@ -304,6 +304,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -379,6 +380,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -442,6 +444,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2015-06-15/network/virtualnetworks.go b/services/network/mgmt/2015-06-15/network/virtualnetworks.go index 84f6704f6f33..e16667ace3ae 100644 --- a/services/network/mgmt/2015-06-15/network/virtualnetworks.go +++ b/services/network/mgmt/2015-06-15/network/virtualnetworks.go @@ -225,6 +225,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-03-30/network/applicationgateways.go b/services/network/mgmt/2016-03-30/network/applicationgateways.go index cc1c68bbb49d..293d0dec3dc8 100644 --- a/services/network/mgmt/2016-03-30/network/applicationgateways.go +++ b/services/network/mgmt/2016-03-30/network/applicationgateways.go @@ -225,6 +225,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +365,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-03-30/network/client.go b/services/network/mgmt/2016-03-30/network/client.go index 00d311d6a0b5..6b6a24c239cb 100644 --- a/services/network/mgmt/2016-03-30/network/client.go +++ b/services/network/mgmt/2016-03-30/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2016-03-30/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2016-03-30/network/expressroutecircuitauthorizations.go index 924482f6ecf8..b92b819ae623 100644 --- a/services/network/mgmt/2016-03-30/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2016-03-30/network/expressroutecircuitauthorizations.go @@ -234,6 +234,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-03-30/network/expressroutecircuitpeerings.go b/services/network/mgmt/2016-03-30/network/expressroutecircuitpeerings.go index 2d0712e460e6..f7cf5a39da63 100644 --- a/services/network/mgmt/2016-03-30/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2016-03-30/network/expressroutecircuitpeerings.go @@ -230,6 +230,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-03-30/network/expressroutecircuits.go b/services/network/mgmt/2016-03-30/network/expressroutecircuits.go index 05c90772747c..2e70872f15b5 100644 --- a/services/network/mgmt/2016-03-30/network/expressroutecircuits.go +++ b/services/network/mgmt/2016-03-30/network/expressroutecircuits.go @@ -225,6 +225,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -379,6 +381,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -454,6 +457,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -517,6 +521,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -566,6 +571,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -628,6 +634,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-03-30/network/expressrouteserviceproviders.go b/services/network/mgmt/2016-03-30/network/expressrouteserviceproviders.go index dfbd9551ac7a..0790bf926f78 100644 --- a/services/network/mgmt/2016-03-30/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2016-03-30/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-03-30/network/interfacesgroup.go b/services/network/mgmt/2016-03-30/network/interfacesgroup.go index 6ec310626fb9..fb63fab8695c 100644 --- a/services/network/mgmt/2016-03-30/network/interfacesgroup.go +++ b/services/network/mgmt/2016-03-30/network/interfacesgroup.go @@ -225,6 +225,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -387,6 +389,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -450,6 +453,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -499,6 +503,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -561,6 +566,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -614,6 +620,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -678,6 +685,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -732,6 +740,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -797,6 +806,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-03-30/network/loadbalancers.go b/services/network/mgmt/2016-03-30/network/loadbalancers.go index 5f09e98d920e..6479858957d2 100644 --- a/services/network/mgmt/2016-03-30/network/loadbalancers.go +++ b/services/network/mgmt/2016-03-30/network/loadbalancers.go @@ -225,6 +225,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-03-30/network/localnetworkgateways.go b/services/network/mgmt/2016-03-30/network/localnetworkgateways.go index 2a96accf5fcf..ebb0de583eb8 100644 --- a/services/network/mgmt/2016-03-30/network/localnetworkgateways.go +++ b/services/network/mgmt/2016-03-30/network/localnetworkgateways.go @@ -229,6 +229,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-03-30/network/publicipaddresses.go b/services/network/mgmt/2016-03-30/network/publicipaddresses.go index b6245614d08f..b87e14862bdb 100644 --- a/services/network/mgmt/2016-03-30/network/publicipaddresses.go +++ b/services/network/mgmt/2016-03-30/network/publicipaddresses.go @@ -238,6 +238,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -379,6 +381,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -428,6 +431,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -490,6 +494,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-03-30/network/routes.go b/services/network/mgmt/2016-03-30/network/routes.go index b8f33410fd76..941fe62a483a 100644 --- a/services/network/mgmt/2016-03-30/network/routes.go +++ b/services/network/mgmt/2016-03-30/network/routes.go @@ -229,6 +229,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-03-30/network/routetables.go b/services/network/mgmt/2016-03-30/network/routetables.go index 7477bdf136a6..a3007976097f 100644 --- a/services/network/mgmt/2016-03-30/network/routetables.go +++ b/services/network/mgmt/2016-03-30/network/routetables.go @@ -225,6 +225,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-03-30/network/securitygroups.go b/services/network/mgmt/2016-03-30/network/securitygroups.go index 20aedaa95b6e..b4429a00bfa1 100644 --- a/services/network/mgmt/2016-03-30/network/securitygroups.go +++ b/services/network/mgmt/2016-03-30/network/securitygroups.go @@ -226,6 +226,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-03-30/network/securityrules.go b/services/network/mgmt/2016-03-30/network/securityrules.go index 968cd6f2adad..301ea8eac2df 100644 --- a/services/network/mgmt/2016-03-30/network/securityrules.go +++ b/services/network/mgmt/2016-03-30/network/securityrules.go @@ -240,6 +240,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-03-30/network/subnets.go b/services/network/mgmt/2016-03-30/network/subnets.go index 41eb5fe6a9e4..3f0fe3108259 100644 --- a/services/network/mgmt/2016-03-30/network/subnets.go +++ b/services/network/mgmt/2016-03-30/network/subnets.go @@ -230,6 +230,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-03-30/network/usages.go b/services/network/mgmt/2016-03-30/network/usages.go index 90c87fdd2767..6753cc37d2ee 100644 --- a/services/network/mgmt/2016-03-30/network/usages.go +++ b/services/network/mgmt/2016-03-30/network/usages.go @@ -78,6 +78,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2016-03-30/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2016-03-30/network/virtualnetworkgatewayconnections.go index 53cdc317883a..b2e170359843 100644 --- a/services/network/mgmt/2016-03-30/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2016-03-30/network/virtualnetworkgatewayconnections.go @@ -229,6 +229,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -381,6 +383,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -444,6 +447,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-03-30/network/virtualnetworkgateways.go b/services/network/mgmt/2016-03-30/network/virtualnetworkgateways.go index f18dc8ca31e3..0f3c398945c8 100644 --- a/services/network/mgmt/2016-03-30/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2016-03-30/network/virtualnetworkgateways.go @@ -231,6 +231,7 @@ func (client VirtualNetworkGatewaysClient) Generatevpnclientpackage(ctx context. result, err = client.GeneratevpnclientpackageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Generatevpnclientpackage", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -384,6 +386,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -447,6 +450,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-03-30/network/virtualnetworks.go b/services/network/mgmt/2016-03-30/network/virtualnetworks.go index 693f348c6a78..abf0ee88c616 100644 --- a/services/network/mgmt/2016-03-30/network/virtualnetworks.go +++ b/services/network/mgmt/2016-03-30/network/virtualnetworks.go @@ -225,6 +225,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-06-01/network/applicationgateways.go b/services/network/mgmt/2016-06-01/network/applicationgateways.go index 9dc52af69d92..007d2456ef50 100644 --- a/services/network/mgmt/2016-06-01/network/applicationgateways.go +++ b/services/network/mgmt/2016-06-01/network/applicationgateways.go @@ -225,6 +225,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +365,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-06-01/network/client.go b/services/network/mgmt/2016-06-01/network/client.go index 5bb3e60b5229..e802ab75ba37 100644 --- a/services/network/mgmt/2016-06-01/network/client.go +++ b/services/network/mgmt/2016-06-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2016-06-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2016-06-01/network/expressroutecircuitauthorizations.go index 4140a407989a..00ed15239390 100644 --- a/services/network/mgmt/2016-06-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2016-06-01/network/expressroutecircuitauthorizations.go @@ -234,6 +234,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-06-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2016-06-01/network/expressroutecircuitpeerings.go index c535348ccc61..e3acd3270e53 100644 --- a/services/network/mgmt/2016-06-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2016-06-01/network/expressroutecircuitpeerings.go @@ -230,6 +230,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-06-01/network/expressroutecircuits.go b/services/network/mgmt/2016-06-01/network/expressroutecircuits.go index 67c798c30755..3f0f4caf2b77 100644 --- a/services/network/mgmt/2016-06-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2016-06-01/network/expressroutecircuits.go @@ -225,6 +225,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -379,6 +381,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -454,6 +457,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -517,6 +521,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -566,6 +571,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -628,6 +634,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-06-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2016-06-01/network/expressrouteserviceproviders.go index 7237186ec833..9d00e2504f8c 100644 --- a/services/network/mgmt/2016-06-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2016-06-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-06-01/network/interfacesgroup.go b/services/network/mgmt/2016-06-01/network/interfacesgroup.go index 2f960607ef47..877993312765 100644 --- a/services/network/mgmt/2016-06-01/network/interfacesgroup.go +++ b/services/network/mgmt/2016-06-01/network/interfacesgroup.go @@ -225,6 +225,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -382,6 +383,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -462,6 +464,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -525,6 +528,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -574,6 +578,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -636,6 +641,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -765,6 +771,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -829,6 +836,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -883,6 +891,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -948,6 +957,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-06-01/network/loadbalancers.go b/services/network/mgmt/2016-06-01/network/loadbalancers.go index d9b763d3ea98..421af6ff2f9d 100644 --- a/services/network/mgmt/2016-06-01/network/loadbalancers.go +++ b/services/network/mgmt/2016-06-01/network/loadbalancers.go @@ -225,6 +225,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-06-01/network/localnetworkgateways.go b/services/network/mgmt/2016-06-01/network/localnetworkgateways.go index e0f76ab112b0..f5555352db2a 100644 --- a/services/network/mgmt/2016-06-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2016-06-01/network/localnetworkgateways.go @@ -229,6 +229,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-06-01/network/publicipaddresses.go b/services/network/mgmt/2016-06-01/network/publicipaddresses.go index c724a6ff4680..6f89d64b595b 100644 --- a/services/network/mgmt/2016-06-01/network/publicipaddresses.go +++ b/services/network/mgmt/2016-06-01/network/publicipaddresses.go @@ -238,6 +238,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -379,6 +381,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -428,6 +431,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -490,6 +494,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-06-01/network/routes.go b/services/network/mgmt/2016-06-01/network/routes.go index 0bc97cb12502..402a87159c5f 100644 --- a/services/network/mgmt/2016-06-01/network/routes.go +++ b/services/network/mgmt/2016-06-01/network/routes.go @@ -229,6 +229,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-06-01/network/routetables.go b/services/network/mgmt/2016-06-01/network/routetables.go index eca5137c1820..e7f12acd590f 100644 --- a/services/network/mgmt/2016-06-01/network/routetables.go +++ b/services/network/mgmt/2016-06-01/network/routetables.go @@ -225,6 +225,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-06-01/network/securitygroups.go b/services/network/mgmt/2016-06-01/network/securitygroups.go index e60de8f2b872..5b22602ccea8 100644 --- a/services/network/mgmt/2016-06-01/network/securitygroups.go +++ b/services/network/mgmt/2016-06-01/network/securitygroups.go @@ -226,6 +226,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-06-01/network/securityrules.go b/services/network/mgmt/2016-06-01/network/securityrules.go index 3e87c74e65b9..87707e45eab6 100644 --- a/services/network/mgmt/2016-06-01/network/securityrules.go +++ b/services/network/mgmt/2016-06-01/network/securityrules.go @@ -240,6 +240,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-06-01/network/subnets.go b/services/network/mgmt/2016-06-01/network/subnets.go index 0934a76a375c..ecaedb407f7d 100644 --- a/services/network/mgmt/2016-06-01/network/subnets.go +++ b/services/network/mgmt/2016-06-01/network/subnets.go @@ -230,6 +230,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-06-01/network/usages.go b/services/network/mgmt/2016-06-01/network/usages.go index d3b626ee7a4c..68ba31d270ca 100644 --- a/services/network/mgmt/2016-06-01/network/usages.go +++ b/services/network/mgmt/2016-06-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-06-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2016-06-01/network/virtualnetworkgatewayconnections.go index ebb20de3e0b6..f1bd3da8a240 100644 --- a/services/network/mgmt/2016-06-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2016-06-01/network/virtualnetworkgatewayconnections.go @@ -229,6 +229,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -381,6 +383,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -444,6 +447,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-06-01/network/virtualnetworkgateways.go b/services/network/mgmt/2016-06-01/network/virtualnetworkgateways.go index 12211601ecb3..47e7d5b139f6 100644 --- a/services/network/mgmt/2016-06-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2016-06-01/network/virtualnetworkgateways.go @@ -231,6 +231,7 @@ func (client VirtualNetworkGatewaysClient) Generatevpnclientpackage(ctx context. result, err = client.GeneratevpnclientpackageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Generatevpnclientpackage", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -384,6 +386,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -447,6 +450,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-06-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2016-06-01/network/virtualnetworkpeerings.go index 0caa6e4befd6..a6fc4f5d2d99 100644 --- a/services/network/mgmt/2016-06-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2016-06-01/network/virtualnetworkpeerings.go @@ -230,6 +230,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-06-01/network/virtualnetworks.go b/services/network/mgmt/2016-06-01/network/virtualnetworks.go index 025c85a5c2da..6f75b761e4a7 100644 --- a/services/network/mgmt/2016-06-01/network/virtualnetworks.go +++ b/services/network/mgmt/2016-06-01/network/virtualnetworks.go @@ -73,6 +73,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -382,6 +384,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -445,6 +448,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -494,6 +498,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -556,6 +561,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-09-01/network/applicationgateways.go b/services/network/mgmt/2016-09-01/network/applicationgateways.go index b8be31cad2bc..b9edb002360d 100644 --- a/services/network/mgmt/2016-09-01/network/applicationgateways.go +++ b/services/network/mgmt/2016-09-01/network/applicationgateways.go @@ -314,6 +314,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -389,6 +390,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -452,6 +454,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -501,6 +504,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -563,6 +567,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-09-01/network/client.go b/services/network/mgmt/2016-09-01/network/client.go index 3ba47d10061d..71a35a0aee30 100644 --- a/services/network/mgmt/2016-09-01/network/client.go +++ b/services/network/mgmt/2016-09-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2016-09-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2016-09-01/network/expressroutecircuitauthorizations.go index 305183653a10..e9db0e65be74 100644 --- a/services/network/mgmt/2016-09-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2016-09-01/network/expressroutecircuitauthorizations.go @@ -232,6 +232,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-09-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2016-09-01/network/expressroutecircuitpeerings.go index 6d95bf054588..7d35e07dd7ae 100644 --- a/services/network/mgmt/2016-09-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2016-09-01/network/expressroutecircuitpeerings.go @@ -230,6 +230,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-09-01/network/expressroutecircuits.go b/services/network/mgmt/2016-09-01/network/expressroutecircuits.go index 89b5f77d93f7..87ded8c2c5b2 100644 --- a/services/network/mgmt/2016-09-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2016-09-01/network/expressroutecircuits.go @@ -225,6 +225,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -377,6 +379,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -452,6 +455,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -515,6 +519,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -564,6 +569,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -626,6 +632,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-09-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2016-09-01/network/expressrouteserviceproviders.go index 7b05a3c4aca6..7b914ad04d7a 100644 --- a/services/network/mgmt/2016-09-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2016-09-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-09-01/network/interfacesgroup.go b/services/network/mgmt/2016-09-01/network/interfacesgroup.go index eca805f4ce15..2b1ad8fa2823 100644 --- a/services/network/mgmt/2016-09-01/network/interfacesgroup.go +++ b/services/network/mgmt/2016-09-01/network/interfacesgroup.go @@ -225,6 +225,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -381,6 +382,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -461,6 +463,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -524,6 +527,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -573,6 +577,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -635,6 +640,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -762,6 +768,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -826,6 +833,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -880,6 +888,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -945,6 +954,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-09-01/network/loadbalancers.go b/services/network/mgmt/2016-09-01/network/loadbalancers.go index b7c83552077d..9fb279da18aa 100644 --- a/services/network/mgmt/2016-09-01/network/loadbalancers.go +++ b/services/network/mgmt/2016-09-01/network/loadbalancers.go @@ -225,6 +225,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-09-01/network/localnetworkgateways.go b/services/network/mgmt/2016-09-01/network/localnetworkgateways.go index a1f27e8a32dd..b586c26a1acf 100644 --- a/services/network/mgmt/2016-09-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2016-09-01/network/localnetworkgateways.go @@ -233,6 +233,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-09-01/network/packetcaptures.go b/services/network/mgmt/2016-09-01/network/packetcaptures.go index 6ede8be8efda..700a49122f93 100644 --- a/services/network/mgmt/2016-09-01/network/packetcaptures.go +++ b/services/network/mgmt/2016-09-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2016-09-01/network/publicipaddresses.go b/services/network/mgmt/2016-09-01/network/publicipaddresses.go index c66fc3dd9bc5..1d580a3a88a2 100644 --- a/services/network/mgmt/2016-09-01/network/publicipaddresses.go +++ b/services/network/mgmt/2016-09-01/network/publicipaddresses.go @@ -238,6 +238,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -379,6 +381,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -428,6 +431,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -490,6 +494,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-09-01/network/routes.go b/services/network/mgmt/2016-09-01/network/routes.go index 4b6bafd10b62..b2789f57baf1 100644 --- a/services/network/mgmt/2016-09-01/network/routes.go +++ b/services/network/mgmt/2016-09-01/network/routes.go @@ -229,6 +229,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-09-01/network/routetables.go b/services/network/mgmt/2016-09-01/network/routetables.go index e84297d944c4..4d104f2d67b1 100644 --- a/services/network/mgmt/2016-09-01/network/routetables.go +++ b/services/network/mgmt/2016-09-01/network/routetables.go @@ -225,6 +225,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-09-01/network/securitygroups.go b/services/network/mgmt/2016-09-01/network/securitygroups.go index 46b0c592d5a9..b540091cee60 100644 --- a/services/network/mgmt/2016-09-01/network/securitygroups.go +++ b/services/network/mgmt/2016-09-01/network/securitygroups.go @@ -225,6 +225,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-09-01/network/securityrules.go b/services/network/mgmt/2016-09-01/network/securityrules.go index e3fa2e6b0ca9..c1b555772545 100644 --- a/services/network/mgmt/2016-09-01/network/securityrules.go +++ b/services/network/mgmt/2016-09-01/network/securityrules.go @@ -239,6 +239,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +382,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-09-01/network/subnets.go b/services/network/mgmt/2016-09-01/network/subnets.go index b891ce730f56..7216c1a47754 100644 --- a/services/network/mgmt/2016-09-01/network/subnets.go +++ b/services/network/mgmt/2016-09-01/network/subnets.go @@ -230,6 +230,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-09-01/network/usages.go b/services/network/mgmt/2016-09-01/network/usages.go index 3d74108a8127..faff0dbe40b3 100644 --- a/services/network/mgmt/2016-09-01/network/usages.go +++ b/services/network/mgmt/2016-09-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-09-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2016-09-01/network/virtualnetworkgatewayconnections.go index dd18bb13c448..7cefd2c303ff 100644 --- a/services/network/mgmt/2016-09-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2016-09-01/network/virtualnetworkgatewayconnections.go @@ -245,6 +245,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -397,6 +399,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -460,6 +463,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-09-01/network/virtualnetworkgateways.go b/services/network/mgmt/2016-09-01/network/virtualnetworkgateways.go index bad7e10156fe..a9d96889789b 100644 --- a/services/network/mgmt/2016-09-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2016-09-01/network/virtualnetworkgateways.go @@ -312,6 +312,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -620,6 +621,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -683,6 +685,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-09-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2016-09-01/network/virtualnetworkpeerings.go index 3fe5bb4ea472..61e5d39de060 100644 --- a/services/network/mgmt/2016-09-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2016-09-01/network/virtualnetworkpeerings.go @@ -231,6 +231,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-09-01/network/virtualnetworks.go b/services/network/mgmt/2016-09-01/network/virtualnetworks.go index 07280b40e2aa..d8c0e4766823 100644 --- a/services/network/mgmt/2016-09-01/network/virtualnetworks.go +++ b/services/network/mgmt/2016-09-01/network/virtualnetworks.go @@ -73,6 +73,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -382,6 +384,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -445,6 +448,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -494,6 +498,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -556,6 +561,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-09-01/network/watchers.go b/services/network/mgmt/2016-09-01/network/watchers.go index e2a116147795..e763dd53881e 100644 --- a/services/network/mgmt/2016-09-01/network/watchers.go +++ b/services/network/mgmt/2016-09-01/network/watchers.go @@ -74,6 +74,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -477,6 +479,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -809,6 +812,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -880,6 +884,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2016-12-01/network/applicationgateways.go b/services/network/mgmt/2016-12-01/network/applicationgateways.go index b2559a2892ff..c4f6fad2721f 100644 --- a/services/network/mgmt/2016-12-01/network/applicationgateways.go +++ b/services/network/mgmt/2016-12-01/network/applicationgateways.go @@ -314,6 +314,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -389,6 +390,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -452,6 +454,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -501,6 +504,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -563,6 +567,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-12-01/network/bgpservicecommunities.go b/services/network/mgmt/2016-12-01/network/bgpservicecommunities.go index a95e73810bae..5e4153ad28a4 100644 --- a/services/network/mgmt/2016-12-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2016-12-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-12-01/network/client.go b/services/network/mgmt/2016-12-01/network/client.go index 697ae6cd234e..25056cc1f9ab 100644 --- a/services/network/mgmt/2016-12-01/network/client.go +++ b/services/network/mgmt/2016-12-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2016-12-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2016-12-01/network/expressroutecircuitauthorizations.go index b4ef348440fa..20220c37ab78 100644 --- a/services/network/mgmt/2016-12-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2016-12-01/network/expressroutecircuitauthorizations.go @@ -233,6 +233,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-12-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2016-12-01/network/expressroutecircuitpeerings.go index 302fa43618de..71d4a893d123 100644 --- a/services/network/mgmt/2016-12-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2016-12-01/network/expressroutecircuitpeerings.go @@ -231,6 +231,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-12-01/network/expressroutecircuits.go b/services/network/mgmt/2016-12-01/network/expressroutecircuits.go index 43cabeb2db2c..8e9c51e7509f 100644 --- a/services/network/mgmt/2016-12-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2016-12-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-12-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2016-12-01/network/expressrouteserviceproviders.go index a5008819d8a7..8cc4b93e52a0 100644 --- a/services/network/mgmt/2016-12-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2016-12-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-12-01/network/interfacesgroup.go b/services/network/mgmt/2016-12-01/network/interfacesgroup.go index f45e4a147a69..1e1d627ab2bf 100644 --- a/services/network/mgmt/2016-12-01/network/interfacesgroup.go +++ b/services/network/mgmt/2016-12-01/network/interfacesgroup.go @@ -225,6 +225,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -381,6 +382,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -461,6 +463,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -524,6 +527,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -573,6 +577,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -635,6 +640,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -762,6 +768,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -826,6 +833,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -880,6 +888,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -945,6 +954,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-12-01/network/loadbalancers.go b/services/network/mgmt/2016-12-01/network/loadbalancers.go index d2e8ae425ffd..b13b2ce298d8 100644 --- a/services/network/mgmt/2016-12-01/network/loadbalancers.go +++ b/services/network/mgmt/2016-12-01/network/loadbalancers.go @@ -225,6 +225,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-12-01/network/localnetworkgateways.go b/services/network/mgmt/2016-12-01/network/localnetworkgateways.go index b1c657e2a3f3..7d0c381c3c2e 100644 --- a/services/network/mgmt/2016-12-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2016-12-01/network/localnetworkgateways.go @@ -232,6 +232,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-12-01/network/packetcaptures.go b/services/network/mgmt/2016-12-01/network/packetcaptures.go index 131cb2f28250..c0676776a832 100644 --- a/services/network/mgmt/2016-12-01/network/packetcaptures.go +++ b/services/network/mgmt/2016-12-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2016-12-01/network/publicipaddresses.go b/services/network/mgmt/2016-12-01/network/publicipaddresses.go index 4e4f9807bcf8..d11d63c40470 100644 --- a/services/network/mgmt/2016-12-01/network/publicipaddresses.go +++ b/services/network/mgmt/2016-12-01/network/publicipaddresses.go @@ -238,6 +238,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -379,6 +381,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -428,6 +431,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -490,6 +494,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-12-01/network/routefilterrules.go b/services/network/mgmt/2016-12-01/network/routefilterrules.go index 19e6831dfdcd..2cd0a9d6547f 100644 --- a/services/network/mgmt/2016-12-01/network/routefilterrules.go +++ b/services/network/mgmt/2016-12-01/network/routefilterrules.go @@ -242,6 +242,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +320,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -383,6 +385,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-12-01/network/routefilters.go b/services/network/mgmt/2016-12-01/network/routefilters.go index 663cbd333706..0dbef9946625 100644 --- a/services/network/mgmt/2016-12-01/network/routefilters.go +++ b/services/network/mgmt/2016-12-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-12-01/network/routes.go b/services/network/mgmt/2016-12-01/network/routes.go index 21a41127da34..48f482829647 100644 --- a/services/network/mgmt/2016-12-01/network/routes.go +++ b/services/network/mgmt/2016-12-01/network/routes.go @@ -229,6 +229,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-12-01/network/routetables.go b/services/network/mgmt/2016-12-01/network/routetables.go index 6633b143d6ab..d7917fe8e348 100644 --- a/services/network/mgmt/2016-12-01/network/routetables.go +++ b/services/network/mgmt/2016-12-01/network/routetables.go @@ -225,6 +225,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-12-01/network/securitygroups.go b/services/network/mgmt/2016-12-01/network/securitygroups.go index 64016935af3d..6996f94c91d2 100644 --- a/services/network/mgmt/2016-12-01/network/securitygroups.go +++ b/services/network/mgmt/2016-12-01/network/securitygroups.go @@ -225,6 +225,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-12-01/network/securityrules.go b/services/network/mgmt/2016-12-01/network/securityrules.go index 836e47bc5174..04cfc5147583 100644 --- a/services/network/mgmt/2016-12-01/network/securityrules.go +++ b/services/network/mgmt/2016-12-01/network/securityrules.go @@ -239,6 +239,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +382,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-12-01/network/subnets.go b/services/network/mgmt/2016-12-01/network/subnets.go index a3e1fbce5c13..22370888dade 100644 --- a/services/network/mgmt/2016-12-01/network/subnets.go +++ b/services/network/mgmt/2016-12-01/network/subnets.go @@ -230,6 +230,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-12-01/network/usages.go b/services/network/mgmt/2016-12-01/network/usages.go index 03a1b1d93499..d8b7f0bc05c2 100644 --- a/services/network/mgmt/2016-12-01/network/usages.go +++ b/services/network/mgmt/2016-12-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-12-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2016-12-01/network/virtualnetworkgatewayconnections.go index ed120c618711..07d09f7eadae 100644 --- a/services/network/mgmt/2016-12-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2016-12-01/network/virtualnetworkgatewayconnections.go @@ -239,6 +239,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-12-01/network/virtualnetworkgateways.go b/services/network/mgmt/2016-12-01/network/virtualnetworkgateways.go index bb0ae91268ec..692fac673867 100644 --- a/services/network/mgmt/2016-12-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2016-12-01/network/virtualnetworkgateways.go @@ -311,6 +311,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -619,6 +620,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -682,6 +684,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-12-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2016-12-01/network/virtualnetworkpeerings.go index 7f2906bd8f16..d7117d950d48 100644 --- a/services/network/mgmt/2016-12-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2016-12-01/network/virtualnetworkpeerings.go @@ -231,6 +231,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-12-01/network/virtualnetworks.go b/services/network/mgmt/2016-12-01/network/virtualnetworks.go index 673a8cd6bc82..bb2c395459ca 100644 --- a/services/network/mgmt/2016-12-01/network/virtualnetworks.go +++ b/services/network/mgmt/2016-12-01/network/virtualnetworks.go @@ -73,6 +73,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -382,6 +384,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -445,6 +448,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -494,6 +498,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -556,6 +561,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2016-12-01/network/watchers.go b/services/network/mgmt/2016-12-01/network/watchers.go index b142d8ad44e5..4d5f1e779cfa 100644 --- a/services/network/mgmt/2016-12-01/network/watchers.go +++ b/services/network/mgmt/2016-12-01/network/watchers.go @@ -74,6 +74,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -477,6 +479,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -809,6 +812,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -880,6 +884,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-03-01/network/applicationgateways.go b/services/network/mgmt/2017-03-01/network/applicationgateways.go index df2ac8d496f3..0594158417a1 100644 --- a/services/network/mgmt/2017-03-01/network/applicationgateways.go +++ b/services/network/mgmt/2017-03-01/network/applicationgateways.go @@ -317,6 +317,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -455,6 +457,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -504,6 +507,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -566,6 +570,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -614,6 +619,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-03-01/network/bgpservicecommunities.go b/services/network/mgmt/2017-03-01/network/bgpservicecommunities.go index a3baef191e02..a4505fd42d81 100644 --- a/services/network/mgmt/2017-03-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2017-03-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-03-01/network/client.go b/services/network/mgmt/2017-03-01/network/client.go index 0e42e19bcf3a..f19a0a65daf1 100644 --- a/services/network/mgmt/2017-03-01/network/client.go +++ b/services/network/mgmt/2017-03-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-03-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2017-03-01/network/expressroutecircuitauthorizations.go index 47acac7b9558..35e937e42294 100644 --- a/services/network/mgmt/2017-03-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2017-03-01/network/expressroutecircuitauthorizations.go @@ -233,6 +233,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-03-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2017-03-01/network/expressroutecircuitpeerings.go index 73c5ce9c86cb..3cfae34a3d00 100644 --- a/services/network/mgmt/2017-03-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2017-03-01/network/expressroutecircuitpeerings.go @@ -231,6 +231,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-03-01/network/expressroutecircuits.go b/services/network/mgmt/2017-03-01/network/expressroutecircuits.go index b16989bc4773..97cccd0d946a 100644 --- a/services/network/mgmt/2017-03-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2017-03-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-03-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2017-03-01/network/expressrouteserviceproviders.go index 2d26c34e1d1b..01eaec88dcae 100644 --- a/services/network/mgmt/2017-03-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2017-03-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-03-01/network/interfacesgroup.go b/services/network/mgmt/2017-03-01/network/interfacesgroup.go index f56de7c39158..11457c7edd22 100644 --- a/services/network/mgmt/2017-03-01/network/interfacesgroup.go +++ b/services/network/mgmt/2017-03-01/network/interfacesgroup.go @@ -225,6 +225,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -381,6 +382,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -461,6 +463,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -524,6 +527,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -573,6 +577,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -635,6 +640,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -762,6 +768,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -826,6 +833,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -880,6 +888,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -945,6 +954,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-03-01/network/loadbalancers.go b/services/network/mgmt/2017-03-01/network/loadbalancers.go index 76539e6bd999..b4515f40c61c 100644 --- a/services/network/mgmt/2017-03-01/network/loadbalancers.go +++ b/services/network/mgmt/2017-03-01/network/loadbalancers.go @@ -225,6 +225,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-03-01/network/localnetworkgateways.go b/services/network/mgmt/2017-03-01/network/localnetworkgateways.go index 29eb4a8768cb..c6198a418f61 100644 --- a/services/network/mgmt/2017-03-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2017-03-01/network/localnetworkgateways.go @@ -246,6 +246,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-03-01/network/packetcaptures.go b/services/network/mgmt/2017-03-01/network/packetcaptures.go index 2ac249e2ec70..66a9ba9ac14a 100644 --- a/services/network/mgmt/2017-03-01/network/packetcaptures.go +++ b/services/network/mgmt/2017-03-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-03-01/network/publicipaddresses.go b/services/network/mgmt/2017-03-01/network/publicipaddresses.go index 3970e9871b4b..e3cbdd08487b 100644 --- a/services/network/mgmt/2017-03-01/network/publicipaddresses.go +++ b/services/network/mgmt/2017-03-01/network/publicipaddresses.go @@ -238,6 +238,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -403,6 +405,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +469,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +519,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -577,6 +582,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +636,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -694,6 +701,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +758,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -817,6 +826,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-03-01/network/routefilterrules.go b/services/network/mgmt/2017-03-01/network/routefilterrules.go index eb094a69abae..6532d8c8070e 100644 --- a/services/network/mgmt/2017-03-01/network/routefilterrules.go +++ b/services/network/mgmt/2017-03-01/network/routefilterrules.go @@ -242,6 +242,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +320,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -383,6 +385,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-03-01/network/routefilters.go b/services/network/mgmt/2017-03-01/network/routefilters.go index f83318d17623..6df478904e23 100644 --- a/services/network/mgmt/2017-03-01/network/routefilters.go +++ b/services/network/mgmt/2017-03-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-03-01/network/routes.go b/services/network/mgmt/2017-03-01/network/routes.go index fd407550af2e..5fb9ebf7e947 100644 --- a/services/network/mgmt/2017-03-01/network/routes.go +++ b/services/network/mgmt/2017-03-01/network/routes.go @@ -229,6 +229,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-03-01/network/routetables.go b/services/network/mgmt/2017-03-01/network/routetables.go index fe9a40dccc4d..06aaaa2332cc 100644 --- a/services/network/mgmt/2017-03-01/network/routetables.go +++ b/services/network/mgmt/2017-03-01/network/routetables.go @@ -225,6 +225,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-03-01/network/securitygroups.go b/services/network/mgmt/2017-03-01/network/securitygroups.go index e7c529496bae..bdf12ab25fa2 100644 --- a/services/network/mgmt/2017-03-01/network/securitygroups.go +++ b/services/network/mgmt/2017-03-01/network/securitygroups.go @@ -225,6 +225,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-03-01/network/securityrules.go b/services/network/mgmt/2017-03-01/network/securityrules.go index ef5a2bac0159..4e2d1d4a18a0 100644 --- a/services/network/mgmt/2017-03-01/network/securityrules.go +++ b/services/network/mgmt/2017-03-01/network/securityrules.go @@ -239,6 +239,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +382,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-03-01/network/subnets.go b/services/network/mgmt/2017-03-01/network/subnets.go index 29770da3dbc5..a624984c0088 100644 --- a/services/network/mgmt/2017-03-01/network/subnets.go +++ b/services/network/mgmt/2017-03-01/network/subnets.go @@ -230,6 +230,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-03-01/network/usages.go b/services/network/mgmt/2017-03-01/network/usages.go index 2e151b61d2ef..1572128f841c 100644 --- a/services/network/mgmt/2017-03-01/network/usages.go +++ b/services/network/mgmt/2017-03-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-03-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2017-03-01/network/virtualnetworkgatewayconnections.go index b778a0737f39..43cd2870e0f3 100644 --- a/services/network/mgmt/2017-03-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2017-03-01/network/virtualnetworkgatewayconnections.go @@ -239,6 +239,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-03-01/network/virtualnetworkgateways.go b/services/network/mgmt/2017-03-01/network/virtualnetworkgateways.go index 0b8b9448882b..47b8634d2603 100644 --- a/services/network/mgmt/2017-03-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2017-03-01/network/virtualnetworkgateways.go @@ -311,6 +311,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -619,6 +620,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -682,6 +684,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-03-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2017-03-01/network/virtualnetworkpeerings.go index 236c1ed7e575..aea2ec08e33b 100644 --- a/services/network/mgmt/2017-03-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2017-03-01/network/virtualnetworkpeerings.go @@ -231,6 +231,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-03-01/network/virtualnetworks.go b/services/network/mgmt/2017-03-01/network/virtualnetworks.go index 502557666f63..10e0306d0a80 100644 --- a/services/network/mgmt/2017-03-01/network/virtualnetworks.go +++ b/services/network/mgmt/2017-03-01/network/virtualnetworks.go @@ -73,6 +73,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -382,6 +384,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -445,6 +448,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -494,6 +498,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -556,6 +561,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -608,6 +614,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -672,6 +679,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-03-01/network/watchers.go b/services/network/mgmt/2017-03-01/network/watchers.go index a3fd466d5dd6..bbc39c02d8df 100644 --- a/services/network/mgmt/2017-03-01/network/watchers.go +++ b/services/network/mgmt/2017-03-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -564,6 +566,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -896,6 +899,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -967,6 +971,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-06-01/network/applicationgateways.go b/services/network/mgmt/2017-06-01/network/applicationgateways.go index 52d751f373ef..319eb5c133ad 100644 --- a/services/network/mgmt/2017-06-01/network/applicationgateways.go +++ b/services/network/mgmt/2017-06-01/network/applicationgateways.go @@ -317,6 +317,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -391,6 +392,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte result, err = client.GetSslPredefinedPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return } return @@ -465,6 +467,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -528,6 +531,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -577,6 +581,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -639,6 +644,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -687,6 +693,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont result, err = client.ListAvailableSslOptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return } return @@ -758,6 +765,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return } if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { err = result.NextWithContext(ctx) @@ -820,6 +828,7 @@ func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextRe result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + return } return } @@ -868,6 +877,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-06-01/network/availableendpointservices.go b/services/network/mgmt/2017-06-01/network/availableendpointservices.go index 7e143ab283ef..93d0f391d5dd 100644 --- a/services/network/mgmt/2017-06-01/network/availableendpointservices.go +++ b/services/network/mgmt/2017-06-01/network/availableendpointservices.go @@ -73,6 +73,7 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableEndpointServicesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/bgpservicecommunities.go b/services/network/mgmt/2017-06-01/network/bgpservicecommunities.go index a0f3b33b73a4..e9c11ce80351 100644 --- a/services/network/mgmt/2017-06-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2017-06-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/client.go b/services/network/mgmt/2017-06-01/network/client.go index a91929c3e563..3627fb438069 100644 --- a/services/network/mgmt/2017-06-01/network/client.go +++ b/services/network/mgmt/2017-06-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-06-01/network/defaultsecurityrules.go b/services/network/mgmt/2017-06-01/network/defaultsecurityrules.go index 59dc924cf63c..12e38153ec82 100644 --- a/services/network/mgmt/2017-06-01/network/defaultsecurityrules.go +++ b/services/network/mgmt/2017-06-01/network/defaultsecurityrules.go @@ -74,6 +74,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2017-06-01/network/expressroutecircuitauthorizations.go index d177e682793d..8a42daa6fcff 100644 --- a/services/network/mgmt/2017-06-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2017-06-01/network/expressroutecircuitauthorizations.go @@ -233,6 +233,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2017-06-01/network/expressroutecircuitpeerings.go index fd792d420fb9..3ecdc86fbec6 100644 --- a/services/network/mgmt/2017-06-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2017-06-01/network/expressroutecircuitpeerings.go @@ -231,6 +231,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/expressroutecircuits.go b/services/network/mgmt/2017-06-01/network/expressroutecircuits.go index bac081019280..df75f9ba5f55 100644 --- a/services/network/mgmt/2017-06-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2017-06-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2017-06-01/network/expressrouteserviceproviders.go index 95c605c45ba4..ac295c82dbe0 100644 --- a/services/network/mgmt/2017-06-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2017-06-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/inboundnatrules.go b/services/network/mgmt/2017-06-01/network/inboundnatrules.go index b0e67eb95f49..02d47514c146 100644 --- a/services/network/mgmt/2017-06-01/network/inboundnatrules.go +++ b/services/network/mgmt/2017-06-01/network/inboundnatrules.go @@ -250,6 +250,7 @@ func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName result.inrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return } if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +396,7 @@ func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/interfaceipconfigurations.go b/services/network/mgmt/2017-06-01/network/interfaceipconfigurations.go index 7559aa1d7804..007a27e38b45 100644 --- a/services/network/mgmt/2017-06-01/network/interfaceipconfigurations.go +++ b/services/network/mgmt/2017-06-01/network/interfaceipconfigurations.go @@ -74,6 +74,7 @@ func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resource result.iiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/interfaceloadbalancers.go b/services/network/mgmt/2017-06-01/network/interfaceloadbalancers.go index 2e51813a0211..81bf3a35703b 100644 --- a/services/network/mgmt/2017-06-01/network/interfaceloadbalancers.go +++ b/services/network/mgmt/2017-06-01/network/interfaceloadbalancers.go @@ -74,6 +74,7 @@ func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGro result.ilblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/interfacesgroup.go b/services/network/mgmt/2017-06-01/network/interfacesgroup.go index 8117fd86cc17..c5a9de4516da 100644 --- a/services/network/mgmt/2017-06-01/network/interfacesgroup.go +++ b/services/network/mgmt/2017-06-01/network/interfacesgroup.go @@ -225,6 +225,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -381,6 +382,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -461,6 +463,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -524,6 +527,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -573,6 +577,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -635,6 +640,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -762,6 +768,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -826,6 +833,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -880,6 +888,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -945,6 +954,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2017-06-01/network/loadbalancerbackendaddresspools.go index 7f7e177e4d88..905766c2a3e2 100644 --- a/services/network/mgmt/2017-06-01/network/loadbalancerbackendaddresspools.go +++ b/services/network/mgmt/2017-06-01/network/loadbalancerbackendaddresspools.go @@ -74,6 +74,7 @@ func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, re result.lbbaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return } if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2017-06-01/network/loadbalancerfrontendipconfigurations.go index bf0435b7fe74..abf6205bf4ee 100644 --- a/services/network/mgmt/2017-06-01/network/loadbalancerfrontendipconfigurations.go +++ b/services/network/mgmt/2017-06-01/network/loadbalancerfrontendipconfigurations.go @@ -75,6 +75,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Contex result.lbficlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2017-06-01/network/loadbalancerloadbalancingrules.go index 602dda7d05ef..bdf0077c5cae 100644 --- a/services/network/mgmt/2017-06-01/network/loadbalancerloadbalancingrules.go +++ b/services/network/mgmt/2017-06-01/network/loadbalancerloadbalancingrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, res result.lblbrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return } if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2017-06-01/network/loadbalancernetworkinterfaces.go index 00ea04145ab5..a244d47cf49b 100644 --- a/services/network/mgmt/2017-06-01/network/loadbalancernetworkinterfaces.go +++ b/services/network/mgmt/2017-06-01/network/loadbalancernetworkinterfaces.go @@ -74,6 +74,7 @@ func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, reso result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/loadbalancerprobes.go b/services/network/mgmt/2017-06-01/network/loadbalancerprobes.go index e9e0aaaa039a..543e4d920c6b 100644 --- a/services/network/mgmt/2017-06-01/network/loadbalancerprobes.go +++ b/services/network/mgmt/2017-06-01/network/loadbalancerprobes.go @@ -74,6 +74,7 @@ func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupNa result.lbplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return } if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/loadbalancers.go b/services/network/mgmt/2017-06-01/network/loadbalancers.go index f0cb5cc00d63..a8b9238d7069 100644 --- a/services/network/mgmt/2017-06-01/network/loadbalancers.go +++ b/services/network/mgmt/2017-06-01/network/loadbalancers.go @@ -225,6 +225,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/localnetworkgateways.go b/services/network/mgmt/2017-06-01/network/localnetworkgateways.go index 1d3e42ef177a..e9d1d0ac1658 100644 --- a/services/network/mgmt/2017-06-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2017-06-01/network/localnetworkgateways.go @@ -246,6 +246,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/packetcaptures.go b/services/network/mgmt/2017-06-01/network/packetcaptures.go index a2cc241a47ba..6819b028d635 100644 --- a/services/network/mgmt/2017-06-01/network/packetcaptures.go +++ b/services/network/mgmt/2017-06-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-06-01/network/publicipaddresses.go b/services/network/mgmt/2017-06-01/network/publicipaddresses.go index 53548a09d1e4..53bbf1a86022 100644 --- a/services/network/mgmt/2017-06-01/network/publicipaddresses.go +++ b/services/network/mgmt/2017-06-01/network/publicipaddresses.go @@ -238,6 +238,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -403,6 +405,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +469,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +519,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -577,6 +582,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +636,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -694,6 +701,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +758,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -817,6 +826,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/routefilterrules.go b/services/network/mgmt/2017-06-01/network/routefilterrules.go index dff7f2b48a86..64eb29c059fa 100644 --- a/services/network/mgmt/2017-06-01/network/routefilterrules.go +++ b/services/network/mgmt/2017-06-01/network/routefilterrules.go @@ -241,6 +241,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/routefilters.go b/services/network/mgmt/2017-06-01/network/routefilters.go index fd1ff4e6237f..d5de7f0121fb 100644 --- a/services/network/mgmt/2017-06-01/network/routefilters.go +++ b/services/network/mgmt/2017-06-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/routes.go b/services/network/mgmt/2017-06-01/network/routes.go index d9b4d1089c94..ecd3054e6545 100644 --- a/services/network/mgmt/2017-06-01/network/routes.go +++ b/services/network/mgmt/2017-06-01/network/routes.go @@ -229,6 +229,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/routetables.go b/services/network/mgmt/2017-06-01/network/routetables.go index f492e37dd28a..ce2a4f49e0d1 100644 --- a/services/network/mgmt/2017-06-01/network/routetables.go +++ b/services/network/mgmt/2017-06-01/network/routetables.go @@ -225,6 +225,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/securitygroups.go b/services/network/mgmt/2017-06-01/network/securitygroups.go index 90b308dad699..6314e7091a50 100644 --- a/services/network/mgmt/2017-06-01/network/securitygroups.go +++ b/services/network/mgmt/2017-06-01/network/securitygroups.go @@ -225,6 +225,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/securityrules.go b/services/network/mgmt/2017-06-01/network/securityrules.go index 488dfad7bafa..610beacd2659 100644 --- a/services/network/mgmt/2017-06-01/network/securityrules.go +++ b/services/network/mgmt/2017-06-01/network/securityrules.go @@ -229,6 +229,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/subnets.go b/services/network/mgmt/2017-06-01/network/subnets.go index 25521d4ebcfb..1d73e5df90ec 100644 --- a/services/network/mgmt/2017-06-01/network/subnets.go +++ b/services/network/mgmt/2017-06-01/network/subnets.go @@ -230,6 +230,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/usages.go b/services/network/mgmt/2017-06-01/network/usages.go index f515e49afe02..62791c660540 100644 --- a/services/network/mgmt/2017-06-01/network/usages.go +++ b/services/network/mgmt/2017-06-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2017-06-01/network/virtualnetworkgatewayconnections.go index 40a784544d04..95f843630ce4 100644 --- a/services/network/mgmt/2017-06-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2017-06-01/network/virtualnetworkgatewayconnections.go @@ -239,6 +239,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/virtualnetworkgateways.go b/services/network/mgmt/2017-06-01/network/virtualnetworkgateways.go index 674cd4dd325b..e114b9bcb226 100644 --- a/services/network/mgmt/2017-06-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2017-06-01/network/virtualnetworkgateways.go @@ -390,6 +390,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -698,6 +699,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -761,6 +763,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -813,6 +816,7 @@ func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, result.vnglcr, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return } if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -877,6 +881,7 @@ func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx contex result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2017-06-01/network/virtualnetworkpeerings.go index afe6855c0ee7..a7e5deb57d27 100644 --- a/services/network/mgmt/2017-06-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2017-06-01/network/virtualnetworkpeerings.go @@ -231,6 +231,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/virtualnetworks.go b/services/network/mgmt/2017-06-01/network/virtualnetworks.go index 14bf7c01d537..ac1251e86dd9 100644 --- a/services/network/mgmt/2017-06-01/network/virtualnetworks.go +++ b/services/network/mgmt/2017-06-01/network/virtualnetworks.go @@ -73,6 +73,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -382,6 +384,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -445,6 +448,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -494,6 +498,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -556,6 +561,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -608,6 +614,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -672,6 +679,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-06-01/network/watchers.go b/services/network/mgmt/2017-06-01/network/watchers.go index c3e0dc55bb48..d12f9e2b0685 100644 --- a/services/network/mgmt/2017-06-01/network/watchers.go +++ b/services/network/mgmt/2017-06-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -564,6 +566,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -896,6 +899,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -967,6 +971,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-08-01/network/applicationgateways.go b/services/network/mgmt/2017-08-01/network/applicationgateways.go index 4f7654505e52..eee16a13dfe2 100644 --- a/services/network/mgmt/2017-08-01/network/applicationgateways.go +++ b/services/network/mgmt/2017-08-01/network/applicationgateways.go @@ -317,6 +317,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -391,6 +392,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte result, err = client.GetSslPredefinedPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return } return @@ -465,6 +467,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -528,6 +531,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -577,6 +581,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -639,6 +644,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -687,6 +693,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont result, err = client.ListAvailableSslOptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return } return @@ -758,6 +765,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return } if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { err = result.NextWithContext(ctx) @@ -820,6 +828,7 @@ func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextRe result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + return } return } @@ -868,6 +877,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-08-01/network/availableendpointservices.go b/services/network/mgmt/2017-08-01/network/availableendpointservices.go index 3729669ee0a1..bb2ba873ef62 100644 --- a/services/network/mgmt/2017-08-01/network/availableendpointservices.go +++ b/services/network/mgmt/2017-08-01/network/availableendpointservices.go @@ -73,6 +73,7 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableEndpointServicesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/bgpservicecommunities.go b/services/network/mgmt/2017-08-01/network/bgpservicecommunities.go index d6a869ec9732..4ecb30c0465a 100644 --- a/services/network/mgmt/2017-08-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2017-08-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/client.go b/services/network/mgmt/2017-08-01/network/client.go index 5c2cfab6541d..4a9033ff9bb7 100644 --- a/services/network/mgmt/2017-08-01/network/client.go +++ b/services/network/mgmt/2017-08-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-08-01/network/defaultsecurityrules.go b/services/network/mgmt/2017-08-01/network/defaultsecurityrules.go index 7b56746be6b7..fcf0de9ff3a1 100644 --- a/services/network/mgmt/2017-08-01/network/defaultsecurityrules.go +++ b/services/network/mgmt/2017-08-01/network/defaultsecurityrules.go @@ -74,6 +74,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2017-08-01/network/expressroutecircuitauthorizations.go index f7b87b4b69f6..5a4ccbc516b3 100644 --- a/services/network/mgmt/2017-08-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2017-08-01/network/expressroutecircuitauthorizations.go @@ -233,6 +233,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2017-08-01/network/expressroutecircuitpeerings.go index a50e008da86c..512c90db22de 100644 --- a/services/network/mgmt/2017-08-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2017-08-01/network/expressroutecircuitpeerings.go @@ -231,6 +231,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/expressroutecircuits.go b/services/network/mgmt/2017-08-01/network/expressroutecircuits.go index 0877fe178e5f..b8d3b09383a0 100644 --- a/services/network/mgmt/2017-08-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2017-08-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2017-08-01/network/expressrouteserviceproviders.go index 7e9bb86c08ae..e27c33ee9207 100644 --- a/services/network/mgmt/2017-08-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2017-08-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/inboundnatrules.go b/services/network/mgmt/2017-08-01/network/inboundnatrules.go index 15592e8c71e8..249faa8b3d75 100644 --- a/services/network/mgmt/2017-08-01/network/inboundnatrules.go +++ b/services/network/mgmt/2017-08-01/network/inboundnatrules.go @@ -250,6 +250,7 @@ func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName result.inrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return } if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +396,7 @@ func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/interfaceipconfigurations.go b/services/network/mgmt/2017-08-01/network/interfaceipconfigurations.go index 61ad47455de1..0c82137ca9ec 100644 --- a/services/network/mgmt/2017-08-01/network/interfaceipconfigurations.go +++ b/services/network/mgmt/2017-08-01/network/interfaceipconfigurations.go @@ -74,6 +74,7 @@ func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resource result.iiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/interfaceloadbalancers.go b/services/network/mgmt/2017-08-01/network/interfaceloadbalancers.go index 1358fbb4fcd5..31548ab6170f 100644 --- a/services/network/mgmt/2017-08-01/network/interfaceloadbalancers.go +++ b/services/network/mgmt/2017-08-01/network/interfaceloadbalancers.go @@ -74,6 +74,7 @@ func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGro result.ilblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/interfacesgroup.go b/services/network/mgmt/2017-08-01/network/interfacesgroup.go index ae392784bd7a..da559c2bebc8 100644 --- a/services/network/mgmt/2017-08-01/network/interfacesgroup.go +++ b/services/network/mgmt/2017-08-01/network/interfacesgroup.go @@ -225,6 +225,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -381,6 +382,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -461,6 +463,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -524,6 +527,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -573,6 +577,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -635,6 +640,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -762,6 +768,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -826,6 +833,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -880,6 +888,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -945,6 +954,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2017-08-01/network/loadbalancerbackendaddresspools.go index 64c1df4d6772..97011426a2ad 100644 --- a/services/network/mgmt/2017-08-01/network/loadbalancerbackendaddresspools.go +++ b/services/network/mgmt/2017-08-01/network/loadbalancerbackendaddresspools.go @@ -74,6 +74,7 @@ func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, re result.lbbaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return } if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2017-08-01/network/loadbalancerfrontendipconfigurations.go index 62285717bd1e..1387654740e5 100644 --- a/services/network/mgmt/2017-08-01/network/loadbalancerfrontendipconfigurations.go +++ b/services/network/mgmt/2017-08-01/network/loadbalancerfrontendipconfigurations.go @@ -75,6 +75,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Contex result.lbficlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2017-08-01/network/loadbalancerloadbalancingrules.go index 19d1a96c7de4..3875a892f82e 100644 --- a/services/network/mgmt/2017-08-01/network/loadbalancerloadbalancingrules.go +++ b/services/network/mgmt/2017-08-01/network/loadbalancerloadbalancingrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, res result.lblbrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return } if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2017-08-01/network/loadbalancernetworkinterfaces.go index 94ffabbbae8e..c49fbf219f18 100644 --- a/services/network/mgmt/2017-08-01/network/loadbalancernetworkinterfaces.go +++ b/services/network/mgmt/2017-08-01/network/loadbalancernetworkinterfaces.go @@ -74,6 +74,7 @@ func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, reso result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/loadbalancerprobes.go b/services/network/mgmt/2017-08-01/network/loadbalancerprobes.go index 2d8202d9c443..429bf4419cff 100644 --- a/services/network/mgmt/2017-08-01/network/loadbalancerprobes.go +++ b/services/network/mgmt/2017-08-01/network/loadbalancerprobes.go @@ -74,6 +74,7 @@ func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupNa result.lbplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return } if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/loadbalancers.go b/services/network/mgmt/2017-08-01/network/loadbalancers.go index f4de722f81cc..95ba99e7d1ae 100644 --- a/services/network/mgmt/2017-08-01/network/loadbalancers.go +++ b/services/network/mgmt/2017-08-01/network/loadbalancers.go @@ -225,6 +225,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/localnetworkgateways.go b/services/network/mgmt/2017-08-01/network/localnetworkgateways.go index ffe057f4831c..07fae487bd77 100644 --- a/services/network/mgmt/2017-08-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2017-08-01/network/localnetworkgateways.go @@ -246,6 +246,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/packetcaptures.go b/services/network/mgmt/2017-08-01/network/packetcaptures.go index d6cab2dd3e20..cd73c33df6e5 100644 --- a/services/network/mgmt/2017-08-01/network/packetcaptures.go +++ b/services/network/mgmt/2017-08-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-08-01/network/publicipaddresses.go b/services/network/mgmt/2017-08-01/network/publicipaddresses.go index 73d4a5ce7305..1224b4d2c8f0 100644 --- a/services/network/mgmt/2017-08-01/network/publicipaddresses.go +++ b/services/network/mgmt/2017-08-01/network/publicipaddresses.go @@ -238,6 +238,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -403,6 +405,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +469,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +519,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -577,6 +582,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +636,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -694,6 +701,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +758,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -817,6 +826,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/routefilterrules.go b/services/network/mgmt/2017-08-01/network/routefilterrules.go index e7f3508fd11f..9b64edf69ba9 100644 --- a/services/network/mgmt/2017-08-01/network/routefilterrules.go +++ b/services/network/mgmt/2017-08-01/network/routefilterrules.go @@ -241,6 +241,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/routefilters.go b/services/network/mgmt/2017-08-01/network/routefilters.go index 5bae128d7ce3..d85769e976a8 100644 --- a/services/network/mgmt/2017-08-01/network/routefilters.go +++ b/services/network/mgmt/2017-08-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/routes.go b/services/network/mgmt/2017-08-01/network/routes.go index 31fd911c01ce..5b9ba9e38b05 100644 --- a/services/network/mgmt/2017-08-01/network/routes.go +++ b/services/network/mgmt/2017-08-01/network/routes.go @@ -229,6 +229,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/routetables.go b/services/network/mgmt/2017-08-01/network/routetables.go index 85c85a0f0f6b..7d585d3b3d23 100644 --- a/services/network/mgmt/2017-08-01/network/routetables.go +++ b/services/network/mgmt/2017-08-01/network/routetables.go @@ -225,6 +225,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/securitygroups.go b/services/network/mgmt/2017-08-01/network/securitygroups.go index 033caa83da17..759ca88e943a 100644 --- a/services/network/mgmt/2017-08-01/network/securitygroups.go +++ b/services/network/mgmt/2017-08-01/network/securitygroups.go @@ -225,6 +225,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/securityrules.go b/services/network/mgmt/2017-08-01/network/securityrules.go index c6db46a7ee42..16ce6a3df9de 100644 --- a/services/network/mgmt/2017-08-01/network/securityrules.go +++ b/services/network/mgmt/2017-08-01/network/securityrules.go @@ -229,6 +229,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/subnets.go b/services/network/mgmt/2017-08-01/network/subnets.go index a6cc547fdcf2..c1fe43ec373f 100644 --- a/services/network/mgmt/2017-08-01/network/subnets.go +++ b/services/network/mgmt/2017-08-01/network/subnets.go @@ -230,6 +230,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/usages.go b/services/network/mgmt/2017-08-01/network/usages.go index 9a8da5b58210..0c0d6ed8aad9 100644 --- a/services/network/mgmt/2017-08-01/network/usages.go +++ b/services/network/mgmt/2017-08-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2017-08-01/network/virtualnetworkgatewayconnections.go index 176abd8af31a..be8dc15704f1 100644 --- a/services/network/mgmt/2017-08-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2017-08-01/network/virtualnetworkgatewayconnections.go @@ -239,6 +239,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/virtualnetworkgateways.go b/services/network/mgmt/2017-08-01/network/virtualnetworkgateways.go index 24b0968ffe54..160482a1d5a0 100644 --- a/services/network/mgmt/2017-08-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2017-08-01/network/virtualnetworkgateways.go @@ -390,6 +390,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -774,6 +775,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -837,6 +839,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -889,6 +892,7 @@ func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, result.vnglcr, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return } if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -953,6 +957,7 @@ func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx contex result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2017-08-01/network/virtualnetworkpeerings.go index eb35d1cbc8b1..f60a3d314f7c 100644 --- a/services/network/mgmt/2017-08-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2017-08-01/network/virtualnetworkpeerings.go @@ -231,6 +231,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/virtualnetworks.go b/services/network/mgmt/2017-08-01/network/virtualnetworks.go index e8000768a657..9692367fe51a 100644 --- a/services/network/mgmt/2017-08-01/network/virtualnetworks.go +++ b/services/network/mgmt/2017-08-01/network/virtualnetworks.go @@ -73,6 +73,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -382,6 +384,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -445,6 +448,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -494,6 +498,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -556,6 +561,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -608,6 +614,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -672,6 +679,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-08-01/network/watchers.go b/services/network/mgmt/2017-08-01/network/watchers.go index 26136df3f515..6d892dcf4c52 100644 --- a/services/network/mgmt/2017-08-01/network/watchers.go +++ b/services/network/mgmt/2017-08-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -564,6 +566,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -896,6 +899,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -967,6 +971,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-09-01/network/applicationgateways.go b/services/network/mgmt/2017-09-01/network/applicationgateways.go index 72a6d0185af3..264016c961c4 100644 --- a/services/network/mgmt/2017-09-01/network/applicationgateways.go +++ b/services/network/mgmt/2017-09-01/network/applicationgateways.go @@ -317,6 +317,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -391,6 +392,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte result, err = client.GetSslPredefinedPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return } return @@ -465,6 +467,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -528,6 +531,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -577,6 +581,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -639,6 +644,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -687,6 +693,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont result, err = client.ListAvailableSslOptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return } return @@ -758,6 +765,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return } if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { err = result.NextWithContext(ctx) @@ -820,6 +828,7 @@ func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextRe result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + return } return } @@ -868,6 +877,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-09-01/network/applicationsecuritygroups.go b/services/network/mgmt/2017-09-01/network/applicationsecuritygroups.go index 53fcf5a0225a..4b1afa6c37bc 100644 --- a/services/network/mgmt/2017-09-01/network/applicationsecuritygroups.go +++ b/services/network/mgmt/2017-09-01/network/applicationsecuritygroups.go @@ -226,6 +226,7 @@ func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resource result.asglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ApplicationSecurityGroupsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (resu result.asglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ApplicationSecurityGroupsClient) listAllNextResults(ctx context.Con result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/availableendpointservices.go b/services/network/mgmt/2017-09-01/network/availableendpointservices.go index 64386dc8b17c..e7a9df8eced3 100644 --- a/services/network/mgmt/2017-09-01/network/availableendpointservices.go +++ b/services/network/mgmt/2017-09-01/network/availableendpointservices.go @@ -73,6 +73,7 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableEndpointServicesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/bgpservicecommunities.go b/services/network/mgmt/2017-09-01/network/bgpservicecommunities.go index de8749920864..2189492641d6 100644 --- a/services/network/mgmt/2017-09-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2017-09-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/client.go b/services/network/mgmt/2017-09-01/network/client.go index 7cf7822caede..68fb07e7fffc 100644 --- a/services/network/mgmt/2017-09-01/network/client.go +++ b/services/network/mgmt/2017-09-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-09-01/network/defaultsecurityrules.go b/services/network/mgmt/2017-09-01/network/defaultsecurityrules.go index 24464c9b34cb..c41539a09818 100644 --- a/services/network/mgmt/2017-09-01/network/defaultsecurityrules.go +++ b/services/network/mgmt/2017-09-01/network/defaultsecurityrules.go @@ -74,6 +74,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2017-09-01/network/expressroutecircuitauthorizations.go index 93e81206315a..d57a36963b52 100644 --- a/services/network/mgmt/2017-09-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2017-09-01/network/expressroutecircuitauthorizations.go @@ -233,6 +233,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2017-09-01/network/expressroutecircuitpeerings.go index 1e8542513300..1738cd7407ad 100644 --- a/services/network/mgmt/2017-09-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2017-09-01/network/expressroutecircuitpeerings.go @@ -231,6 +231,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/expressroutecircuits.go b/services/network/mgmt/2017-09-01/network/expressroutecircuits.go index 80e433698316..bf2856783200 100644 --- a/services/network/mgmt/2017-09-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2017-09-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2017-09-01/network/expressrouteserviceproviders.go index 92b6b862362c..c8d581060ee0 100644 --- a/services/network/mgmt/2017-09-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2017-09-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/inboundnatrules.go b/services/network/mgmt/2017-09-01/network/inboundnatrules.go index fef2a86dae2f..7596330d83c6 100644 --- a/services/network/mgmt/2017-09-01/network/inboundnatrules.go +++ b/services/network/mgmt/2017-09-01/network/inboundnatrules.go @@ -250,6 +250,7 @@ func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName result.inrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return } if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +396,7 @@ func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/interfaceipconfigurations.go b/services/network/mgmt/2017-09-01/network/interfaceipconfigurations.go index 67269aa9d596..01c32e4eac26 100644 --- a/services/network/mgmt/2017-09-01/network/interfaceipconfigurations.go +++ b/services/network/mgmt/2017-09-01/network/interfaceipconfigurations.go @@ -74,6 +74,7 @@ func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resource result.iiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/interfaceloadbalancers.go b/services/network/mgmt/2017-09-01/network/interfaceloadbalancers.go index 5ad9d9c6469b..213a3c040a1f 100644 --- a/services/network/mgmt/2017-09-01/network/interfaceloadbalancers.go +++ b/services/network/mgmt/2017-09-01/network/interfaceloadbalancers.go @@ -74,6 +74,7 @@ func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGro result.ilblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/interfacesgroup.go b/services/network/mgmt/2017-09-01/network/interfacesgroup.go index 66432add165a..428f56d6fea9 100644 --- a/services/network/mgmt/2017-09-01/network/interfacesgroup.go +++ b/services/network/mgmt/2017-09-01/network/interfacesgroup.go @@ -225,6 +225,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -383,6 +384,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx cont result, err = client.GetVirtualMachineScaleSetIPConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure responding to request") + return } return @@ -467,6 +469,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -547,6 +550,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -610,6 +614,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -659,6 +664,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -721,6 +727,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -852,6 +859,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx co result.iiclr, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -921,6 +929,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetIPConfigurationsNextRes result, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -973,6 +982,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1037,6 +1047,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1091,6 +1102,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1156,6 +1168,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2017-09-01/network/loadbalancerbackendaddresspools.go index 47f936e1ddd1..25ad13072f60 100644 --- a/services/network/mgmt/2017-09-01/network/loadbalancerbackendaddresspools.go +++ b/services/network/mgmt/2017-09-01/network/loadbalancerbackendaddresspools.go @@ -74,6 +74,7 @@ func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, re result.lbbaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return } if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2017-09-01/network/loadbalancerfrontendipconfigurations.go index 7b3588b3631e..0692b9529022 100644 --- a/services/network/mgmt/2017-09-01/network/loadbalancerfrontendipconfigurations.go +++ b/services/network/mgmt/2017-09-01/network/loadbalancerfrontendipconfigurations.go @@ -75,6 +75,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Contex result.lbficlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2017-09-01/network/loadbalancerloadbalancingrules.go index da4e889b28ee..d248e2fd0f0e 100644 --- a/services/network/mgmt/2017-09-01/network/loadbalancerloadbalancingrules.go +++ b/services/network/mgmt/2017-09-01/network/loadbalancerloadbalancingrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, res result.lblbrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return } if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2017-09-01/network/loadbalancernetworkinterfaces.go index 05ec34250b66..af0f9f6a5390 100644 --- a/services/network/mgmt/2017-09-01/network/loadbalancernetworkinterfaces.go +++ b/services/network/mgmt/2017-09-01/network/loadbalancernetworkinterfaces.go @@ -74,6 +74,7 @@ func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, reso result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/loadbalancerprobes.go b/services/network/mgmt/2017-09-01/network/loadbalancerprobes.go index 30ff22e212fd..7baada00e53b 100644 --- a/services/network/mgmt/2017-09-01/network/loadbalancerprobes.go +++ b/services/network/mgmt/2017-09-01/network/loadbalancerprobes.go @@ -74,6 +74,7 @@ func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupNa result.lbplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return } if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/loadbalancers.go b/services/network/mgmt/2017-09-01/network/loadbalancers.go index 8efc72d5dd96..e079826ebc45 100644 --- a/services/network/mgmt/2017-09-01/network/loadbalancers.go +++ b/services/network/mgmt/2017-09-01/network/loadbalancers.go @@ -225,6 +225,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/localnetworkgateways.go b/services/network/mgmt/2017-09-01/network/localnetworkgateways.go index 851c849bb309..4caf0808a322 100644 --- a/services/network/mgmt/2017-09-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2017-09-01/network/localnetworkgateways.go @@ -246,6 +246,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/operations.go b/services/network/mgmt/2017-09-01/network/operations.go index 37d020acc2eb..7311c53bd0d2 100644 --- a/services/network/mgmt/2017-09-01/network/operations.go +++ b/services/network/mgmt/2017-09-01/network/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/packetcaptures.go b/services/network/mgmt/2017-09-01/network/packetcaptures.go index 1bdf25b97f99..9bb2ea0ebea1 100644 --- a/services/network/mgmt/2017-09-01/network/packetcaptures.go +++ b/services/network/mgmt/2017-09-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-09-01/network/publicipaddresses.go b/services/network/mgmt/2017-09-01/network/publicipaddresses.go index 20222f4bb833..1b0e1c5928f0 100644 --- a/services/network/mgmt/2017-09-01/network/publicipaddresses.go +++ b/services/network/mgmt/2017-09-01/network/publicipaddresses.go @@ -238,6 +238,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -403,6 +405,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +469,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +519,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -577,6 +582,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +636,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -694,6 +701,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +758,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -817,6 +826,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/routefilterrules.go b/services/network/mgmt/2017-09-01/network/routefilterrules.go index 626e162298d1..dc72f3af92be 100644 --- a/services/network/mgmt/2017-09-01/network/routefilterrules.go +++ b/services/network/mgmt/2017-09-01/network/routefilterrules.go @@ -241,6 +241,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/routefilters.go b/services/network/mgmt/2017-09-01/network/routefilters.go index b1aebb49f977..0a582ce8b132 100644 --- a/services/network/mgmt/2017-09-01/network/routefilters.go +++ b/services/network/mgmt/2017-09-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/routes.go b/services/network/mgmt/2017-09-01/network/routes.go index 5fc93d88b8ca..0bc9253c7d1f 100644 --- a/services/network/mgmt/2017-09-01/network/routes.go +++ b/services/network/mgmt/2017-09-01/network/routes.go @@ -229,6 +229,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/routetables.go b/services/network/mgmt/2017-09-01/network/routetables.go index cd98a3339610..a3a801fa43c9 100644 --- a/services/network/mgmt/2017-09-01/network/routetables.go +++ b/services/network/mgmt/2017-09-01/network/routetables.go @@ -225,6 +225,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/securitygroups.go b/services/network/mgmt/2017-09-01/network/securitygroups.go index 2cbb5a111ecb..07d6635a8487 100644 --- a/services/network/mgmt/2017-09-01/network/securitygroups.go +++ b/services/network/mgmt/2017-09-01/network/securitygroups.go @@ -225,6 +225,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/securityrules.go b/services/network/mgmt/2017-09-01/network/securityrules.go index a12a284a8dc8..2629c960f773 100644 --- a/services/network/mgmt/2017-09-01/network/securityrules.go +++ b/services/network/mgmt/2017-09-01/network/securityrules.go @@ -229,6 +229,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/subnets.go b/services/network/mgmt/2017-09-01/network/subnets.go index 1147c69205f4..722f66b6b705 100644 --- a/services/network/mgmt/2017-09-01/network/subnets.go +++ b/services/network/mgmt/2017-09-01/network/subnets.go @@ -230,6 +230,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/usages.go b/services/network/mgmt/2017-09-01/network/usages.go index 9784b5435da0..746587b134bf 100644 --- a/services/network/mgmt/2017-09-01/network/usages.go +++ b/services/network/mgmt/2017-09-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2017-09-01/network/virtualnetworkgatewayconnections.go index 85142f6f4403..69f6396c5a18 100644 --- a/services/network/mgmt/2017-09-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2017-09-01/network/virtualnetworkgatewayconnections.go @@ -239,6 +239,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/virtualnetworkgateways.go b/services/network/mgmt/2017-09-01/network/virtualnetworkgateways.go index b1c19150443e..c4b6ba88251f 100644 --- a/services/network/mgmt/2017-09-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2017-09-01/network/virtualnetworkgateways.go @@ -390,6 +390,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -774,6 +775,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -837,6 +839,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -889,6 +892,7 @@ func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, result.vnglcr, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return } if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -953,6 +957,7 @@ func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx contex result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1084,6 +1089,7 @@ func (client VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Conte result, err = client.SupportedVpnDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", resp, "Failure responding to request") + return } return @@ -1239,6 +1245,7 @@ func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx cont result, err = client.VpnDeviceConfigurationScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-09-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2017-09-01/network/virtualnetworkpeerings.go index 7845903d80fa..265380b3dab6 100644 --- a/services/network/mgmt/2017-09-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2017-09-01/network/virtualnetworkpeerings.go @@ -231,6 +231,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/virtualnetworks.go b/services/network/mgmt/2017-09-01/network/virtualnetworks.go index 4c71ae25cf2d..99c557de01c7 100644 --- a/services/network/mgmt/2017-09-01/network/virtualnetworks.go +++ b/services/network/mgmt/2017-09-01/network/virtualnetworks.go @@ -73,6 +73,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -382,6 +384,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -445,6 +448,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -494,6 +498,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -556,6 +561,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -608,6 +614,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -672,6 +679,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-09-01/network/watchers.go b/services/network/mgmt/2017-09-01/network/watchers.go index 90ffda3138b4..59743fb27289 100644 --- a/services/network/mgmt/2017-09-01/network/watchers.go +++ b/services/network/mgmt/2017-09-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -652,6 +654,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -984,6 +987,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -1055,6 +1059,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return @@ -1295,6 +1300,7 @@ func (client WatchersClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-10-01/network/applicationgateways.go b/services/network/mgmt/2017-10-01/network/applicationgateways.go index e723b1f3d2ee..b70d81ec5936 100644 --- a/services/network/mgmt/2017-10-01/network/applicationgateways.go +++ b/services/network/mgmt/2017-10-01/network/applicationgateways.go @@ -317,6 +317,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -391,6 +392,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte result, err = client.GetSslPredefinedPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return } return @@ -465,6 +467,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -528,6 +531,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -577,6 +581,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -639,6 +644,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -687,6 +693,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont result, err = client.ListAvailableSslOptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return } return @@ -758,6 +765,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return } if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { err = result.NextWithContext(ctx) @@ -820,6 +828,7 @@ func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextRe result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + return } return } @@ -868,6 +877,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-10-01/network/applicationsecuritygroups.go b/services/network/mgmt/2017-10-01/network/applicationsecuritygroups.go index 633f4b7d3c1b..fcb61714f443 100644 --- a/services/network/mgmt/2017-10-01/network/applicationsecuritygroups.go +++ b/services/network/mgmt/2017-10-01/network/applicationsecuritygroups.go @@ -226,6 +226,7 @@ func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resource result.asglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ApplicationSecurityGroupsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (resu result.asglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ApplicationSecurityGroupsClient) listAllNextResults(ctx context.Con result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/availableendpointservices.go b/services/network/mgmt/2017-10-01/network/availableendpointservices.go index a5671262035f..fb304d5423b2 100644 --- a/services/network/mgmt/2017-10-01/network/availableendpointservices.go +++ b/services/network/mgmt/2017-10-01/network/availableendpointservices.go @@ -73,6 +73,7 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableEndpointServicesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/bgpservicecommunities.go b/services/network/mgmt/2017-10-01/network/bgpservicecommunities.go index 2512adc02d89..9ceee98f012e 100644 --- a/services/network/mgmt/2017-10-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2017-10-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/client.go b/services/network/mgmt/2017-10-01/network/client.go index 485a99b5be8e..8e44312029be 100644 --- a/services/network/mgmt/2017-10-01/network/client.go +++ b/services/network/mgmt/2017-10-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-10-01/network/connectionmonitors.go b/services/network/mgmt/2017-10-01/network/connectionmonitors.go index 2fc92ad38c2f..0ea19927f061 100644 --- a/services/network/mgmt/2017-10-01/network/connectionmonitors.go +++ b/services/network/mgmt/2017-10-01/network/connectionmonitors.go @@ -241,6 +241,7 @@ func (client ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ConnectionMonitorsClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-10-01/network/defaultsecurityrules.go b/services/network/mgmt/2017-10-01/network/defaultsecurityrules.go index bc0133d457be..6edca2941b39 100644 --- a/services/network/mgmt/2017-10-01/network/defaultsecurityrules.go +++ b/services/network/mgmt/2017-10-01/network/defaultsecurityrules.go @@ -74,6 +74,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2017-10-01/network/expressroutecircuitauthorizations.go index 5b72ba70990e..5ed9675e425b 100644 --- a/services/network/mgmt/2017-10-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2017-10-01/network/expressroutecircuitauthorizations.go @@ -233,6 +233,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2017-10-01/network/expressroutecircuitpeerings.go index ff041cf7e9c0..24df71742940 100644 --- a/services/network/mgmt/2017-10-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2017-10-01/network/expressroutecircuitpeerings.go @@ -243,6 +243,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +321,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/expressroutecircuits.go b/services/network/mgmt/2017-10-01/network/expressroutecircuits.go index 6d5da615cc3e..03d0d6483f9e 100644 --- a/services/network/mgmt/2017-10-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2017-10-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2017-10-01/network/expressrouteserviceproviders.go index f61c0e9f8971..c88604a53102 100644 --- a/services/network/mgmt/2017-10-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2017-10-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/inboundnatrules.go b/services/network/mgmt/2017-10-01/network/inboundnatrules.go index 027e785e2da6..00f4b9799efb 100644 --- a/services/network/mgmt/2017-10-01/network/inboundnatrules.go +++ b/services/network/mgmt/2017-10-01/network/inboundnatrules.go @@ -250,6 +250,7 @@ func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName result.inrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return } if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +396,7 @@ func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/interfaceipconfigurations.go b/services/network/mgmt/2017-10-01/network/interfaceipconfigurations.go index 173fa5f5b1ee..862ac2e4ca03 100644 --- a/services/network/mgmt/2017-10-01/network/interfaceipconfigurations.go +++ b/services/network/mgmt/2017-10-01/network/interfaceipconfigurations.go @@ -74,6 +74,7 @@ func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resource result.iiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/interfaceloadbalancers.go b/services/network/mgmt/2017-10-01/network/interfaceloadbalancers.go index b7bb9f9bd1bb..c55988d75086 100644 --- a/services/network/mgmt/2017-10-01/network/interfaceloadbalancers.go +++ b/services/network/mgmt/2017-10-01/network/interfaceloadbalancers.go @@ -74,6 +74,7 @@ func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGro result.ilblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/interfacesgroup.go b/services/network/mgmt/2017-10-01/network/interfacesgroup.go index d84e528fa93b..36f48eb4d1b2 100644 --- a/services/network/mgmt/2017-10-01/network/interfacesgroup.go +++ b/services/network/mgmt/2017-10-01/network/interfacesgroup.go @@ -225,6 +225,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -383,6 +384,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx cont result, err = client.GetVirtualMachineScaleSetIPConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure responding to request") + return } return @@ -467,6 +469,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -547,6 +550,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -610,6 +614,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -659,6 +664,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -721,6 +727,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -852,6 +859,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx co result.iiclr, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -921,6 +929,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetIPConfigurationsNextRes result, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -973,6 +982,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1037,6 +1047,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1091,6 +1102,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1156,6 +1168,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2017-10-01/network/loadbalancerbackendaddresspools.go index e2428141b0cd..a668de279db1 100644 --- a/services/network/mgmt/2017-10-01/network/loadbalancerbackendaddresspools.go +++ b/services/network/mgmt/2017-10-01/network/loadbalancerbackendaddresspools.go @@ -74,6 +74,7 @@ func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, re result.lbbaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return } if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2017-10-01/network/loadbalancerfrontendipconfigurations.go index 1bba54c3dd10..36380fd5212c 100644 --- a/services/network/mgmt/2017-10-01/network/loadbalancerfrontendipconfigurations.go +++ b/services/network/mgmt/2017-10-01/network/loadbalancerfrontendipconfigurations.go @@ -75,6 +75,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Contex result.lbficlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2017-10-01/network/loadbalancerloadbalancingrules.go index f6e176f4ab71..c825766586db 100644 --- a/services/network/mgmt/2017-10-01/network/loadbalancerloadbalancingrules.go +++ b/services/network/mgmt/2017-10-01/network/loadbalancerloadbalancingrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, res result.lblbrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return } if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2017-10-01/network/loadbalancernetworkinterfaces.go index 4099b7592439..257db1c8f80c 100644 --- a/services/network/mgmt/2017-10-01/network/loadbalancernetworkinterfaces.go +++ b/services/network/mgmt/2017-10-01/network/loadbalancernetworkinterfaces.go @@ -74,6 +74,7 @@ func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, reso result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/loadbalancerprobes.go b/services/network/mgmt/2017-10-01/network/loadbalancerprobes.go index d8d8a9fd82a4..502721798a66 100644 --- a/services/network/mgmt/2017-10-01/network/loadbalancerprobes.go +++ b/services/network/mgmt/2017-10-01/network/loadbalancerprobes.go @@ -74,6 +74,7 @@ func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupNa result.lbplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return } if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/loadbalancers.go b/services/network/mgmt/2017-10-01/network/loadbalancers.go index b474fb1d11a1..cc24445ab269 100644 --- a/services/network/mgmt/2017-10-01/network/loadbalancers.go +++ b/services/network/mgmt/2017-10-01/network/loadbalancers.go @@ -225,6 +225,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/localnetworkgateways.go b/services/network/mgmt/2017-10-01/network/localnetworkgateways.go index 1e30afec04fe..0c6824dae15d 100644 --- a/services/network/mgmt/2017-10-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2017-10-01/network/localnetworkgateways.go @@ -246,6 +246,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/operations.go b/services/network/mgmt/2017-10-01/network/operations.go index 5b13695d6266..9f0fdc729414 100644 --- a/services/network/mgmt/2017-10-01/network/operations.go +++ b/services/network/mgmt/2017-10-01/network/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/packetcaptures.go b/services/network/mgmt/2017-10-01/network/packetcaptures.go index c59758dd42b1..fcc00398170e 100644 --- a/services/network/mgmt/2017-10-01/network/packetcaptures.go +++ b/services/network/mgmt/2017-10-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-10-01/network/publicipaddresses.go b/services/network/mgmt/2017-10-01/network/publicipaddresses.go index 16cc9ac079ce..7defb1658aaa 100644 --- a/services/network/mgmt/2017-10-01/network/publicipaddresses.go +++ b/services/network/mgmt/2017-10-01/network/publicipaddresses.go @@ -238,6 +238,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -403,6 +405,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +469,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +519,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -577,6 +582,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +636,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -694,6 +701,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +758,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -817,6 +826,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/routefilterrules.go b/services/network/mgmt/2017-10-01/network/routefilterrules.go index 9ba8a85db528..1f4b10b9e688 100644 --- a/services/network/mgmt/2017-10-01/network/routefilterrules.go +++ b/services/network/mgmt/2017-10-01/network/routefilterrules.go @@ -241,6 +241,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/routefilters.go b/services/network/mgmt/2017-10-01/network/routefilters.go index f140c36d2e3a..85569d8f32f3 100644 --- a/services/network/mgmt/2017-10-01/network/routefilters.go +++ b/services/network/mgmt/2017-10-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/routes.go b/services/network/mgmt/2017-10-01/network/routes.go index 640a3148c3d1..b3ce7c681b8d 100644 --- a/services/network/mgmt/2017-10-01/network/routes.go +++ b/services/network/mgmt/2017-10-01/network/routes.go @@ -229,6 +229,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/routetables.go b/services/network/mgmt/2017-10-01/network/routetables.go index 7639bc32ccad..6276a5e3628d 100644 --- a/services/network/mgmt/2017-10-01/network/routetables.go +++ b/services/network/mgmt/2017-10-01/network/routetables.go @@ -225,6 +225,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/securitygroups.go b/services/network/mgmt/2017-10-01/network/securitygroups.go index 5e1346c583e4..ab8b18c0c8e1 100644 --- a/services/network/mgmt/2017-10-01/network/securitygroups.go +++ b/services/network/mgmt/2017-10-01/network/securitygroups.go @@ -225,6 +225,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/securityrules.go b/services/network/mgmt/2017-10-01/network/securityrules.go index e895b2bf763b..5b0d38912d7d 100644 --- a/services/network/mgmt/2017-10-01/network/securityrules.go +++ b/services/network/mgmt/2017-10-01/network/securityrules.go @@ -229,6 +229,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/subnets.go b/services/network/mgmt/2017-10-01/network/subnets.go index d104632cb604..cbcd3f59e8a1 100644 --- a/services/network/mgmt/2017-10-01/network/subnets.go +++ b/services/network/mgmt/2017-10-01/network/subnets.go @@ -230,6 +230,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/usages.go b/services/network/mgmt/2017-10-01/network/usages.go index 7c1cd1c9a7b4..391d16a9f2c9 100644 --- a/services/network/mgmt/2017-10-01/network/usages.go +++ b/services/network/mgmt/2017-10-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2017-10-01/network/virtualnetworkgatewayconnections.go index f2be62505e9c..7a161721597b 100644 --- a/services/network/mgmt/2017-10-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2017-10-01/network/virtualnetworkgatewayconnections.go @@ -239,6 +239,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/virtualnetworkgateways.go b/services/network/mgmt/2017-10-01/network/virtualnetworkgateways.go index 87e258c294bf..dcbee1e48481 100644 --- a/services/network/mgmt/2017-10-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2017-10-01/network/virtualnetworkgateways.go @@ -390,6 +390,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -774,6 +775,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -837,6 +839,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -889,6 +892,7 @@ func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, result.vnglcr, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return } if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -953,6 +957,7 @@ func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx contex result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1084,6 +1089,7 @@ func (client VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Conte result, err = client.SupportedVpnDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", resp, "Failure responding to request") + return } return @@ -1239,6 +1245,7 @@ func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx cont result, err = client.VpnDeviceConfigurationScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-10-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2017-10-01/network/virtualnetworkpeerings.go index a0be783f7856..b8d165888207 100644 --- a/services/network/mgmt/2017-10-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2017-10-01/network/virtualnetworkpeerings.go @@ -231,6 +231,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/virtualnetworks.go b/services/network/mgmt/2017-10-01/network/virtualnetworks.go index 68ed3ff458fa..387a21142cec 100644 --- a/services/network/mgmt/2017-10-01/network/virtualnetworks.go +++ b/services/network/mgmt/2017-10-01/network/virtualnetworks.go @@ -73,6 +73,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -382,6 +384,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -445,6 +448,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -494,6 +498,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -556,6 +561,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -608,6 +614,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -672,6 +679,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-10-01/network/watchers.go b/services/network/mgmt/2017-10-01/network/watchers.go index 87c64fa4f663..2fb7d1e88fba 100644 --- a/services/network/mgmt/2017-10-01/network/watchers.go +++ b/services/network/mgmt/2017-10-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -646,6 +648,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -978,6 +981,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -1049,6 +1053,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return @@ -1289,6 +1294,7 @@ func (client WatchersClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-11-01/network/applicationgateways.go b/services/network/mgmt/2017-11-01/network/applicationgateways.go index 45a7e7e0c750..1a9161f485c8 100644 --- a/services/network/mgmt/2017-11-01/network/applicationgateways.go +++ b/services/network/mgmt/2017-11-01/network/applicationgateways.go @@ -317,6 +317,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -391,6 +392,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte result, err = client.GetSslPredefinedPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return } return @@ -465,6 +467,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -528,6 +531,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -577,6 +581,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -639,6 +644,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -687,6 +693,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont result, err = client.ListAvailableSslOptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return } return @@ -758,6 +765,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return } if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { err = result.NextWithContext(ctx) @@ -820,6 +828,7 @@ func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextRe result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + return } return } @@ -868,6 +877,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-11-01/network/applicationsecuritygroups.go b/services/network/mgmt/2017-11-01/network/applicationsecuritygroups.go index 28606384e0d5..07e3ff435c2f 100644 --- a/services/network/mgmt/2017-11-01/network/applicationsecuritygroups.go +++ b/services/network/mgmt/2017-11-01/network/applicationsecuritygroups.go @@ -226,6 +226,7 @@ func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resource result.asglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ApplicationSecurityGroupsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (resu result.asglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ApplicationSecurityGroupsClient) listAllNextResults(ctx context.Con result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/availableendpointservices.go b/services/network/mgmt/2017-11-01/network/availableendpointservices.go index 116ee26c4e09..8c91243250e9 100644 --- a/services/network/mgmt/2017-11-01/network/availableendpointservices.go +++ b/services/network/mgmt/2017-11-01/network/availableendpointservices.go @@ -73,6 +73,7 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableEndpointServicesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/bgpservicecommunities.go b/services/network/mgmt/2017-11-01/network/bgpservicecommunities.go index be38437ef86e..38dd394176f1 100644 --- a/services/network/mgmt/2017-11-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2017-11-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/client.go b/services/network/mgmt/2017-11-01/network/client.go index 776848c6da2e..3eb47f11f8e2 100644 --- a/services/network/mgmt/2017-11-01/network/client.go +++ b/services/network/mgmt/2017-11-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-11-01/network/connectionmonitors.go b/services/network/mgmt/2017-11-01/network/connectionmonitors.go index 3af50b4fafcf..c328fa6c3d5c 100644 --- a/services/network/mgmt/2017-11-01/network/connectionmonitors.go +++ b/services/network/mgmt/2017-11-01/network/connectionmonitors.go @@ -241,6 +241,7 @@ func (client ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ConnectionMonitorsClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-11-01/network/defaultsecurityrules.go b/services/network/mgmt/2017-11-01/network/defaultsecurityrules.go index 33d1f1a1577d..4de1e40d9f4f 100644 --- a/services/network/mgmt/2017-11-01/network/defaultsecurityrules.go +++ b/services/network/mgmt/2017-11-01/network/defaultsecurityrules.go @@ -74,6 +74,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2017-11-01/network/expressroutecircuitauthorizations.go index fe32078701b5..b7b8cf31edaa 100644 --- a/services/network/mgmt/2017-11-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2017-11-01/network/expressroutecircuitauthorizations.go @@ -233,6 +233,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2017-11-01/network/expressroutecircuitpeerings.go index 3e593f9d39fe..381de8e4b09e 100644 --- a/services/network/mgmt/2017-11-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2017-11-01/network/expressroutecircuitpeerings.go @@ -243,6 +243,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +321,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/expressroutecircuits.go b/services/network/mgmt/2017-11-01/network/expressroutecircuits.go index 48936bc4516c..e32209914ecb 100644 --- a/services/network/mgmt/2017-11-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2017-11-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2017-11-01/network/expressrouteserviceproviders.go index b568ca7c43e2..0b991e9db1bc 100644 --- a/services/network/mgmt/2017-11-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2017-11-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/inboundnatrules.go b/services/network/mgmt/2017-11-01/network/inboundnatrules.go index 64bc8d95da93..03937d741376 100644 --- a/services/network/mgmt/2017-11-01/network/inboundnatrules.go +++ b/services/network/mgmt/2017-11-01/network/inboundnatrules.go @@ -250,6 +250,7 @@ func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName result.inrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return } if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +396,7 @@ func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/interfaceipconfigurations.go b/services/network/mgmt/2017-11-01/network/interfaceipconfigurations.go index 3dee437e39d0..576307e48791 100644 --- a/services/network/mgmt/2017-11-01/network/interfaceipconfigurations.go +++ b/services/network/mgmt/2017-11-01/network/interfaceipconfigurations.go @@ -74,6 +74,7 @@ func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resource result.iiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/interfaceloadbalancers.go b/services/network/mgmt/2017-11-01/network/interfaceloadbalancers.go index 8599833e3400..1a4340a5b150 100644 --- a/services/network/mgmt/2017-11-01/network/interfaceloadbalancers.go +++ b/services/network/mgmt/2017-11-01/network/interfaceloadbalancers.go @@ -74,6 +74,7 @@ func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGro result.ilblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/interfacesgroup.go b/services/network/mgmt/2017-11-01/network/interfacesgroup.go index 3f4ba581c77d..77a7f3b16935 100644 --- a/services/network/mgmt/2017-11-01/network/interfacesgroup.go +++ b/services/network/mgmt/2017-11-01/network/interfacesgroup.go @@ -225,6 +225,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -383,6 +384,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx cont result, err = client.GetVirtualMachineScaleSetIPConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure responding to request") + return } return @@ -467,6 +469,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -547,6 +550,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -610,6 +614,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -659,6 +664,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -721,6 +727,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -852,6 +859,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx co result.iiclr, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -921,6 +929,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetIPConfigurationsNextRes result, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -973,6 +982,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1037,6 +1047,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1091,6 +1102,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1156,6 +1168,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2017-11-01/network/loadbalancerbackendaddresspools.go index 56affc56e84b..bcc5c5b97cbe 100644 --- a/services/network/mgmt/2017-11-01/network/loadbalancerbackendaddresspools.go +++ b/services/network/mgmt/2017-11-01/network/loadbalancerbackendaddresspools.go @@ -74,6 +74,7 @@ func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, re result.lbbaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return } if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2017-11-01/network/loadbalancerfrontendipconfigurations.go index f7aa532d71f4..7a0b1e00693c 100644 --- a/services/network/mgmt/2017-11-01/network/loadbalancerfrontendipconfigurations.go +++ b/services/network/mgmt/2017-11-01/network/loadbalancerfrontendipconfigurations.go @@ -75,6 +75,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Contex result.lbficlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2017-11-01/network/loadbalancerloadbalancingrules.go index 94188cc8b54f..7065b16c33eb 100644 --- a/services/network/mgmt/2017-11-01/network/loadbalancerloadbalancingrules.go +++ b/services/network/mgmt/2017-11-01/network/loadbalancerloadbalancingrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, res result.lblbrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return } if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2017-11-01/network/loadbalancernetworkinterfaces.go index 0a3426431d74..1d5113a9d360 100644 --- a/services/network/mgmt/2017-11-01/network/loadbalancernetworkinterfaces.go +++ b/services/network/mgmt/2017-11-01/network/loadbalancernetworkinterfaces.go @@ -74,6 +74,7 @@ func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, reso result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/loadbalancerprobes.go b/services/network/mgmt/2017-11-01/network/loadbalancerprobes.go index 270782f37cb6..58968f1ad36b 100644 --- a/services/network/mgmt/2017-11-01/network/loadbalancerprobes.go +++ b/services/network/mgmt/2017-11-01/network/loadbalancerprobes.go @@ -74,6 +74,7 @@ func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupNa result.lbplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return } if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/loadbalancers.go b/services/network/mgmt/2017-11-01/network/loadbalancers.go index 384488089bba..32bf7dda4385 100644 --- a/services/network/mgmt/2017-11-01/network/loadbalancers.go +++ b/services/network/mgmt/2017-11-01/network/loadbalancers.go @@ -225,6 +225,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/localnetworkgateways.go b/services/network/mgmt/2017-11-01/network/localnetworkgateways.go index 25df63b79237..b6250b8b36bd 100644 --- a/services/network/mgmt/2017-11-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2017-11-01/network/localnetworkgateways.go @@ -246,6 +246,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/operations.go b/services/network/mgmt/2017-11-01/network/operations.go index 368424d713d6..9336172429a0 100644 --- a/services/network/mgmt/2017-11-01/network/operations.go +++ b/services/network/mgmt/2017-11-01/network/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/packetcaptures.go b/services/network/mgmt/2017-11-01/network/packetcaptures.go index e540f32d92f6..1db97d306cb9 100644 --- a/services/network/mgmt/2017-11-01/network/packetcaptures.go +++ b/services/network/mgmt/2017-11-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-11-01/network/publicipaddresses.go b/services/network/mgmt/2017-11-01/network/publicipaddresses.go index 7bfa31fac114..a9298257962b 100644 --- a/services/network/mgmt/2017-11-01/network/publicipaddresses.go +++ b/services/network/mgmt/2017-11-01/network/publicipaddresses.go @@ -238,6 +238,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -403,6 +405,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +469,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +519,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -577,6 +582,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +636,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -694,6 +701,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +758,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -817,6 +826,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/routefilterrules.go b/services/network/mgmt/2017-11-01/network/routefilterrules.go index 5f3328abaad7..6e45e2fe1e1a 100644 --- a/services/network/mgmt/2017-11-01/network/routefilterrules.go +++ b/services/network/mgmt/2017-11-01/network/routefilterrules.go @@ -241,6 +241,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/routefilters.go b/services/network/mgmt/2017-11-01/network/routefilters.go index 5582ee2ddf80..5dcacc47a04f 100644 --- a/services/network/mgmt/2017-11-01/network/routefilters.go +++ b/services/network/mgmt/2017-11-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/routes.go b/services/network/mgmt/2017-11-01/network/routes.go index 7305634a010c..6cc5df48fab3 100644 --- a/services/network/mgmt/2017-11-01/network/routes.go +++ b/services/network/mgmt/2017-11-01/network/routes.go @@ -229,6 +229,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/routetables.go b/services/network/mgmt/2017-11-01/network/routetables.go index 3b5e0a913674..f8fdb5f9df47 100644 --- a/services/network/mgmt/2017-11-01/network/routetables.go +++ b/services/network/mgmt/2017-11-01/network/routetables.go @@ -225,6 +225,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/securitygroups.go b/services/network/mgmt/2017-11-01/network/securitygroups.go index 68ceff98c6f5..e42fb597814b 100644 --- a/services/network/mgmt/2017-11-01/network/securitygroups.go +++ b/services/network/mgmt/2017-11-01/network/securitygroups.go @@ -225,6 +225,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/securityrules.go b/services/network/mgmt/2017-11-01/network/securityrules.go index 89c2634480bc..86c0cbf940ba 100644 --- a/services/network/mgmt/2017-11-01/network/securityrules.go +++ b/services/network/mgmt/2017-11-01/network/securityrules.go @@ -229,6 +229,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/subnets.go b/services/network/mgmt/2017-11-01/network/subnets.go index 088c93f973b4..0363cb9c01fd 100644 --- a/services/network/mgmt/2017-11-01/network/subnets.go +++ b/services/network/mgmt/2017-11-01/network/subnets.go @@ -230,6 +230,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/usages.go b/services/network/mgmt/2017-11-01/network/usages.go index ce3f3b32b95d..bebc4d08b2ab 100644 --- a/services/network/mgmt/2017-11-01/network/usages.go +++ b/services/network/mgmt/2017-11-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2017-11-01/network/virtualnetworkgatewayconnections.go index 5ab2f9339cd0..b3dcfb2c71c3 100644 --- a/services/network/mgmt/2017-11-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2017-11-01/network/virtualnetworkgatewayconnections.go @@ -239,6 +239,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/virtualnetworkgateways.go b/services/network/mgmt/2017-11-01/network/virtualnetworkgateways.go index 7699029d8b19..ed901fad5cdd 100644 --- a/services/network/mgmt/2017-11-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2017-11-01/network/virtualnetworkgateways.go @@ -390,6 +390,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -774,6 +775,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -837,6 +839,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -889,6 +892,7 @@ func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, result.vnglcr, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return } if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -953,6 +957,7 @@ func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx contex result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1084,6 +1089,7 @@ func (client VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Conte result, err = client.SupportedVpnDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", resp, "Failure responding to request") + return } return @@ -1239,6 +1245,7 @@ func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx cont result, err = client.VpnDeviceConfigurationScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2017-11-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2017-11-01/network/virtualnetworkpeerings.go index da8a7b76fef0..5e25f5e4032e 100644 --- a/services/network/mgmt/2017-11-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2017-11-01/network/virtualnetworkpeerings.go @@ -231,6 +231,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/virtualnetworks.go b/services/network/mgmt/2017-11-01/network/virtualnetworks.go index 168166c4699b..e361c8c2edf3 100644 --- a/services/network/mgmt/2017-11-01/network/virtualnetworks.go +++ b/services/network/mgmt/2017-11-01/network/virtualnetworks.go @@ -73,6 +73,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -382,6 +384,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -445,6 +448,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -494,6 +498,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -556,6 +561,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -608,6 +614,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -672,6 +679,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2017-11-01/network/watchers.go b/services/network/mgmt/2017-11-01/network/watchers.go index f720be971bec..9fb68e29ca84 100644 --- a/services/network/mgmt/2017-11-01/network/watchers.go +++ b/services/network/mgmt/2017-11-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -646,6 +648,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -978,6 +981,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -1049,6 +1053,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return @@ -1289,6 +1294,7 @@ func (client WatchersClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-01-01/network/applicationgateways.go b/services/network/mgmt/2018-01-01/network/applicationgateways.go index d6e612df99c3..c233663f3bcc 100644 --- a/services/network/mgmt/2018-01-01/network/applicationgateways.go +++ b/services/network/mgmt/2018-01-01/network/applicationgateways.go @@ -321,6 +321,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -395,6 +396,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte result, err = client.GetSslPredefinedPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return } return @@ -469,6 +471,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -532,6 +535,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -581,6 +585,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -643,6 +648,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -691,6 +697,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont result, err = client.ListAvailableSslOptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return } return @@ -762,6 +769,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return } if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { err = result.NextWithContext(ctx) @@ -824,6 +832,7 @@ func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextRe result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + return } return } @@ -872,6 +881,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-01-01/network/applicationsecuritygroups.go b/services/network/mgmt/2018-01-01/network/applicationsecuritygroups.go index 2e2b3d298dd2..75b774508063 100644 --- a/services/network/mgmt/2018-01-01/network/applicationsecuritygroups.go +++ b/services/network/mgmt/2018-01-01/network/applicationsecuritygroups.go @@ -226,6 +226,7 @@ func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resource result.asglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ApplicationSecurityGroupsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (resu result.asglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ApplicationSecurityGroupsClient) listAllNextResults(ctx context.Con result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/availableendpointservices.go b/services/network/mgmt/2018-01-01/network/availableendpointservices.go index 545a948c628c..44460cc60afc 100644 --- a/services/network/mgmt/2018-01-01/network/availableendpointservices.go +++ b/services/network/mgmt/2018-01-01/network/availableendpointservices.go @@ -73,6 +73,7 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableEndpointServicesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/bgpservicecommunities.go b/services/network/mgmt/2018-01-01/network/bgpservicecommunities.go index 07570bb4365e..b88f769c8ddf 100644 --- a/services/network/mgmt/2018-01-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2018-01-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/client.go b/services/network/mgmt/2018-01-01/network/client.go index 54da585e558c..4f91340a84ba 100644 --- a/services/network/mgmt/2018-01-01/network/client.go +++ b/services/network/mgmt/2018-01-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-01-01/network/connectionmonitors.go b/services/network/mgmt/2018-01-01/network/connectionmonitors.go index c258e3fab061..ede5431b75ee 100644 --- a/services/network/mgmt/2018-01-01/network/connectionmonitors.go +++ b/services/network/mgmt/2018-01-01/network/connectionmonitors.go @@ -241,6 +241,7 @@ func (client ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ConnectionMonitorsClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-01-01/network/defaultsecurityrules.go b/services/network/mgmt/2018-01-01/network/defaultsecurityrules.go index bcd0f4326683..37c88d88ea03 100644 --- a/services/network/mgmt/2018-01-01/network/defaultsecurityrules.go +++ b/services/network/mgmt/2018-01-01/network/defaultsecurityrules.go @@ -74,6 +74,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2018-01-01/network/expressroutecircuitauthorizations.go index 1ec4df1129d7..999797f4e4b3 100644 --- a/services/network/mgmt/2018-01-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2018-01-01/network/expressroutecircuitauthorizations.go @@ -233,6 +233,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2018-01-01/network/expressroutecircuitpeerings.go index d0ce56e71f78..8bed9fe2b1aa 100644 --- a/services/network/mgmt/2018-01-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2018-01-01/network/expressroutecircuitpeerings.go @@ -243,6 +243,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +321,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/expressroutecircuits.go b/services/network/mgmt/2018-01-01/network/expressroutecircuits.go index f72f815860e4..b7abd7a1d0d4 100644 --- a/services/network/mgmt/2018-01-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2018-01-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2018-01-01/network/expressrouteserviceproviders.go index 3c3da768a0c4..aca9065847d2 100644 --- a/services/network/mgmt/2018-01-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2018-01-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/inboundnatrules.go b/services/network/mgmt/2018-01-01/network/inboundnatrules.go index c30d33cb04a9..c8ef82cf35ad 100644 --- a/services/network/mgmt/2018-01-01/network/inboundnatrules.go +++ b/services/network/mgmt/2018-01-01/network/inboundnatrules.go @@ -250,6 +250,7 @@ func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName result.inrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return } if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +396,7 @@ func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/interfaceipconfigurations.go b/services/network/mgmt/2018-01-01/network/interfaceipconfigurations.go index daff546ca616..30343c1a4b33 100644 --- a/services/network/mgmt/2018-01-01/network/interfaceipconfigurations.go +++ b/services/network/mgmt/2018-01-01/network/interfaceipconfigurations.go @@ -74,6 +74,7 @@ func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resource result.iiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/interfaceloadbalancers.go b/services/network/mgmt/2018-01-01/network/interfaceloadbalancers.go index e834d9fd36a8..8ce780c832d8 100644 --- a/services/network/mgmt/2018-01-01/network/interfaceloadbalancers.go +++ b/services/network/mgmt/2018-01-01/network/interfaceloadbalancers.go @@ -74,6 +74,7 @@ func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGro result.ilblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/interfacesgroup.go b/services/network/mgmt/2018-01-01/network/interfacesgroup.go index 591daa20ab76..1abb8e1edaba 100644 --- a/services/network/mgmt/2018-01-01/network/interfacesgroup.go +++ b/services/network/mgmt/2018-01-01/network/interfacesgroup.go @@ -225,6 +225,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -383,6 +384,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx cont result, err = client.GetVirtualMachineScaleSetIPConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure responding to request") + return } return @@ -467,6 +469,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -547,6 +550,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -610,6 +614,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -659,6 +664,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -721,6 +727,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -852,6 +859,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx co result.iiclr, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -921,6 +929,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetIPConfigurationsNextRes result, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -973,6 +982,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1037,6 +1047,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1091,6 +1102,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1156,6 +1168,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2018-01-01/network/loadbalancerbackendaddresspools.go index 56f3ff1d1db5..9fc853723e15 100644 --- a/services/network/mgmt/2018-01-01/network/loadbalancerbackendaddresspools.go +++ b/services/network/mgmt/2018-01-01/network/loadbalancerbackendaddresspools.go @@ -74,6 +74,7 @@ func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, re result.lbbaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return } if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2018-01-01/network/loadbalancerfrontendipconfigurations.go index 96f2bd22b914..f68eb520b2ac 100644 --- a/services/network/mgmt/2018-01-01/network/loadbalancerfrontendipconfigurations.go +++ b/services/network/mgmt/2018-01-01/network/loadbalancerfrontendipconfigurations.go @@ -75,6 +75,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Contex result.lbficlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2018-01-01/network/loadbalancerloadbalancingrules.go index b10789af8302..db0e1c35027c 100644 --- a/services/network/mgmt/2018-01-01/network/loadbalancerloadbalancingrules.go +++ b/services/network/mgmt/2018-01-01/network/loadbalancerloadbalancingrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, res result.lblbrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return } if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2018-01-01/network/loadbalancernetworkinterfaces.go index dda7b5bf7901..28c1b346a7ab 100644 --- a/services/network/mgmt/2018-01-01/network/loadbalancernetworkinterfaces.go +++ b/services/network/mgmt/2018-01-01/network/loadbalancernetworkinterfaces.go @@ -74,6 +74,7 @@ func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, reso result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/loadbalancerprobes.go b/services/network/mgmt/2018-01-01/network/loadbalancerprobes.go index 30ca6a7465e0..88d507c91920 100644 --- a/services/network/mgmt/2018-01-01/network/loadbalancerprobes.go +++ b/services/network/mgmt/2018-01-01/network/loadbalancerprobes.go @@ -74,6 +74,7 @@ func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupNa result.lbplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return } if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/loadbalancers.go b/services/network/mgmt/2018-01-01/network/loadbalancers.go index c631b7f656b3..c89815e2bc0d 100644 --- a/services/network/mgmt/2018-01-01/network/loadbalancers.go +++ b/services/network/mgmt/2018-01-01/network/loadbalancers.go @@ -225,6 +225,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/localnetworkgateways.go b/services/network/mgmt/2018-01-01/network/localnetworkgateways.go index da8f4d628fdd..b85755c9e184 100644 --- a/services/network/mgmt/2018-01-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2018-01-01/network/localnetworkgateways.go @@ -246,6 +246,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/operations.go b/services/network/mgmt/2018-01-01/network/operations.go index 95afffb8d1ed..fdff4c316e80 100644 --- a/services/network/mgmt/2018-01-01/network/operations.go +++ b/services/network/mgmt/2018-01-01/network/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/packetcaptures.go b/services/network/mgmt/2018-01-01/network/packetcaptures.go index 60384fe9dc65..6991856e6cfb 100644 --- a/services/network/mgmt/2018-01-01/network/packetcaptures.go +++ b/services/network/mgmt/2018-01-01/network/packetcaptures.go @@ -242,6 +242,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -395,6 +396,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-01-01/network/publicipaddresses.go b/services/network/mgmt/2018-01-01/network/publicipaddresses.go index 62d965db29a4..51ea100833e0 100644 --- a/services/network/mgmt/2018-01-01/network/publicipaddresses.go +++ b/services/network/mgmt/2018-01-01/network/publicipaddresses.go @@ -238,6 +238,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -403,6 +405,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +469,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +519,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -577,6 +582,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +636,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -694,6 +701,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +758,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -817,6 +826,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/routefilterrules.go b/services/network/mgmt/2018-01-01/network/routefilterrules.go index 4e5df7094bc9..111dde759e91 100644 --- a/services/network/mgmt/2018-01-01/network/routefilterrules.go +++ b/services/network/mgmt/2018-01-01/network/routefilterrules.go @@ -241,6 +241,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/routefilters.go b/services/network/mgmt/2018-01-01/network/routefilters.go index c3580cf4f987..1f9352a62306 100644 --- a/services/network/mgmt/2018-01-01/network/routefilters.go +++ b/services/network/mgmt/2018-01-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/routes.go b/services/network/mgmt/2018-01-01/network/routes.go index 59e22537060b..b502c0b141a6 100644 --- a/services/network/mgmt/2018-01-01/network/routes.go +++ b/services/network/mgmt/2018-01-01/network/routes.go @@ -229,6 +229,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/routetables.go b/services/network/mgmt/2018-01-01/network/routetables.go index 5da8b0f715b8..e187b70b9d01 100644 --- a/services/network/mgmt/2018-01-01/network/routetables.go +++ b/services/network/mgmt/2018-01-01/network/routetables.go @@ -225,6 +225,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/securitygroups.go b/services/network/mgmt/2018-01-01/network/securitygroups.go index c40080188767..dd4ba646d608 100644 --- a/services/network/mgmt/2018-01-01/network/securitygroups.go +++ b/services/network/mgmt/2018-01-01/network/securitygroups.go @@ -225,6 +225,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/securityrules.go b/services/network/mgmt/2018-01-01/network/securityrules.go index 0beaf705ab5c..a62d6450edcc 100644 --- a/services/network/mgmt/2018-01-01/network/securityrules.go +++ b/services/network/mgmt/2018-01-01/network/securityrules.go @@ -229,6 +229,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/subnets.go b/services/network/mgmt/2018-01-01/network/subnets.go index da09381e67de..cd3bd0cc9c2b 100644 --- a/services/network/mgmt/2018-01-01/network/subnets.go +++ b/services/network/mgmt/2018-01-01/network/subnets.go @@ -230,6 +230,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/usages.go b/services/network/mgmt/2018-01-01/network/usages.go index ea0e5262ef57..026772084bc4 100644 --- a/services/network/mgmt/2018-01-01/network/usages.go +++ b/services/network/mgmt/2018-01-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2018-01-01/network/virtualnetworkgatewayconnections.go index 088972b0725f..d8db8a54681e 100644 --- a/services/network/mgmt/2018-01-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2018-01-01/network/virtualnetworkgatewayconnections.go @@ -239,6 +239,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/virtualnetworkgateways.go b/services/network/mgmt/2018-01-01/network/virtualnetworkgateways.go index 2ec26e79d133..9d7c00671320 100644 --- a/services/network/mgmt/2018-01-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2018-01-01/network/virtualnetworkgateways.go @@ -390,6 +390,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -774,6 +775,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -837,6 +839,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -889,6 +892,7 @@ func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, result.vnglcr, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return } if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -953,6 +957,7 @@ func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx contex result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1084,6 +1089,7 @@ func (client VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Conte result, err = client.SupportedVpnDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", resp, "Failure responding to request") + return } return @@ -1239,6 +1245,7 @@ func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx cont result, err = client.VpnDeviceConfigurationScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-01-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2018-01-01/network/virtualnetworkpeerings.go index 3c6ff4d8e9d8..ba0fc40248f3 100644 --- a/services/network/mgmt/2018-01-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2018-01-01/network/virtualnetworkpeerings.go @@ -231,6 +231,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/virtualnetworks.go b/services/network/mgmt/2018-01-01/network/virtualnetworks.go index 4d7d02f9b471..eac7aacd3cc2 100644 --- a/services/network/mgmt/2018-01-01/network/virtualnetworks.go +++ b/services/network/mgmt/2018-01-01/network/virtualnetworks.go @@ -73,6 +73,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -382,6 +384,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -445,6 +448,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -494,6 +498,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -556,6 +561,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -608,6 +614,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -672,6 +679,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-01-01/network/watchers.go b/services/network/mgmt/2018-01-01/network/watchers.go index 262a22b03de4..32f8ee3ed6b2 100644 --- a/services/network/mgmt/2018-01-01/network/watchers.go +++ b/services/network/mgmt/2018-01-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -646,6 +648,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -978,6 +981,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -1049,6 +1053,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return @@ -1297,6 +1302,7 @@ func (client WatchersClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-02-01/network/applicationgateways.go b/services/network/mgmt/2018-02-01/network/applicationgateways.go index 96f3c967f997..8e9cd012c489 100644 --- a/services/network/mgmt/2018-02-01/network/applicationgateways.go +++ b/services/network/mgmt/2018-02-01/network/applicationgateways.go @@ -321,6 +321,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -395,6 +396,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte result, err = client.GetSslPredefinedPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return } return @@ -469,6 +471,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -532,6 +535,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -581,6 +585,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -643,6 +648,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -691,6 +697,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont result, err = client.ListAvailableSslOptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return } return @@ -762,6 +769,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return } if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { err = result.NextWithContext(ctx) @@ -824,6 +832,7 @@ func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextRe result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + return } return } @@ -872,6 +881,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-02-01/network/applicationsecuritygroups.go b/services/network/mgmt/2018-02-01/network/applicationsecuritygroups.go index c4402a662318..c937b72b230c 100644 --- a/services/network/mgmt/2018-02-01/network/applicationsecuritygroups.go +++ b/services/network/mgmt/2018-02-01/network/applicationsecuritygroups.go @@ -226,6 +226,7 @@ func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resource result.asglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ApplicationSecurityGroupsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (resu result.asglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ApplicationSecurityGroupsClient) listAllNextResults(ctx context.Con result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/availableendpointservices.go b/services/network/mgmt/2018-02-01/network/availableendpointservices.go index 42b2fbee85f6..dfb597722a78 100644 --- a/services/network/mgmt/2018-02-01/network/availableendpointservices.go +++ b/services/network/mgmt/2018-02-01/network/availableendpointservices.go @@ -73,6 +73,7 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableEndpointServicesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/bgpservicecommunities.go b/services/network/mgmt/2018-02-01/network/bgpservicecommunities.go index c4895254c1bc..89df4f115d33 100644 --- a/services/network/mgmt/2018-02-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2018-02-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/client.go b/services/network/mgmt/2018-02-01/network/client.go index 3fb9142d3796..09c79542f36a 100644 --- a/services/network/mgmt/2018-02-01/network/client.go +++ b/services/network/mgmt/2018-02-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-02-01/network/connectionmonitors.go b/services/network/mgmt/2018-02-01/network/connectionmonitors.go index 0013f30844eb..6b21465d59b2 100644 --- a/services/network/mgmt/2018-02-01/network/connectionmonitors.go +++ b/services/network/mgmt/2018-02-01/network/connectionmonitors.go @@ -241,6 +241,7 @@ func (client ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ConnectionMonitorsClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-02-01/network/ddosprotectionplans.go b/services/network/mgmt/2018-02-01/network/ddosprotectionplans.go index abaec8886ba3..13269be3a0d0 100644 --- a/services/network/mgmt/2018-02-01/network/ddosprotectionplans.go +++ b/services/network/mgmt/2018-02-01/network/ddosprotectionplans.go @@ -226,6 +226,7 @@ func (client DdosProtectionPlansClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client DdosProtectionPlansClient) List(ctx context.Context) (result DdosPr result.dpplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -361,6 +363,7 @@ func (client DdosProtectionPlansClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, result.dpplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client DdosProtectionPlansClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/defaultsecurityrules.go b/services/network/mgmt/2018-02-01/network/defaultsecurityrules.go index d21364a5b8cd..b4e4b21846f6 100644 --- a/services/network/mgmt/2018-02-01/network/defaultsecurityrules.go +++ b/services/network/mgmt/2018-02-01/network/defaultsecurityrules.go @@ -74,6 +74,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2018-02-01/network/expressroutecircuitauthorizations.go index fad5009cbbb7..46b0042c4daf 100644 --- a/services/network/mgmt/2018-02-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2018-02-01/network/expressroutecircuitauthorizations.go @@ -233,6 +233,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2018-02-01/network/expressroutecircuitconnections.go index 9adc52871a7a..13a74f0b4348 100644 --- a/services/network/mgmt/2018-02-01/network/expressroutecircuitconnections.go +++ b/services/network/mgmt/2018-02-01/network/expressroutecircuitconnections.go @@ -237,6 +237,7 @@ func (client ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-02-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2018-02-01/network/expressroutecircuitpeerings.go index cdbe7f7764cc..937a924ad17e 100644 --- a/services/network/mgmt/2018-02-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2018-02-01/network/expressroutecircuitpeerings.go @@ -243,6 +243,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +321,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/expressroutecircuits.go b/services/network/mgmt/2018-02-01/network/expressroutecircuits.go index 8b04d4321be2..d78c0991583a 100644 --- a/services/network/mgmt/2018-02-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2018-02-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2018-02-01/network/expressroutecrossconnectionpeerings.go index f4e781e2d1f7..dd935632360b 100644 --- a/services/network/mgmt/2018-02-01/network/expressroutecrossconnectionpeerings.go +++ b/services/network/mgmt/2018-02-01/network/expressroutecrossconnectionpeerings.go @@ -245,6 +245,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context result.erccpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "List", resp, "Failure responding to request") + return } if result.erccpl.hasNextLink() && result.erccpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) listNextResults(ctx cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/expressroutecrossconnections.go b/services/network/mgmt/2018-02-01/network/expressroutecrossconnections.go index 851bc6d7f866..a2b00a58f8d7 100644 --- a/services/network/mgmt/2018-02-01/network/expressroutecrossconnections.go +++ b/services/network/mgmt/2018-02-01/network/expressroutecrossconnections.go @@ -152,6 +152,7 @@ func (client ExpressRouteCrossConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ExpressRouteCrossConnectionsClient) List(ctx context.Context) (resu result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -287,6 +289,7 @@ func (client ExpressRouteCrossConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -418,6 +421,7 @@ func (client ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context result.ercclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +485,7 @@ func (client ExpressRouteCrossConnectionsClient) listByResourceGroupNextResults( result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2018-02-01/network/expressrouteserviceproviders.go index b08d228c4f28..3cd8014281a1 100644 --- a/services/network/mgmt/2018-02-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2018-02-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/inboundnatrules.go b/services/network/mgmt/2018-02-01/network/inboundnatrules.go index 0b8fd1bbbf10..fb3d9a195d85 100644 --- a/services/network/mgmt/2018-02-01/network/inboundnatrules.go +++ b/services/network/mgmt/2018-02-01/network/inboundnatrules.go @@ -250,6 +250,7 @@ func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName result.inrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return } if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +396,7 @@ func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/interfaceipconfigurations.go b/services/network/mgmt/2018-02-01/network/interfaceipconfigurations.go index 5a8418c6e6c5..008ffbfa80c9 100644 --- a/services/network/mgmt/2018-02-01/network/interfaceipconfigurations.go +++ b/services/network/mgmt/2018-02-01/network/interfaceipconfigurations.go @@ -74,6 +74,7 @@ func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resource result.iiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/interfaceloadbalancers.go b/services/network/mgmt/2018-02-01/network/interfaceloadbalancers.go index 491e4c28f383..e8c238e61c53 100644 --- a/services/network/mgmt/2018-02-01/network/interfaceloadbalancers.go +++ b/services/network/mgmt/2018-02-01/network/interfaceloadbalancers.go @@ -74,6 +74,7 @@ func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGro result.ilblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/interfacesgroup.go b/services/network/mgmt/2018-02-01/network/interfacesgroup.go index a4905670aae9..da04073433e0 100644 --- a/services/network/mgmt/2018-02-01/network/interfacesgroup.go +++ b/services/network/mgmt/2018-02-01/network/interfacesgroup.go @@ -225,6 +225,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -383,6 +384,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx cont result, err = client.GetVirtualMachineScaleSetIPConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure responding to request") + return } return @@ -467,6 +469,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -547,6 +550,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -610,6 +614,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -659,6 +664,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -721,6 +727,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -852,6 +859,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx co result.iiclr, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -921,6 +929,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetIPConfigurationsNextRes result, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -973,6 +982,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1037,6 +1047,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1091,6 +1102,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1156,6 +1168,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2018-02-01/network/loadbalancerbackendaddresspools.go index 58269e6f5c55..2ffc3e427d14 100644 --- a/services/network/mgmt/2018-02-01/network/loadbalancerbackendaddresspools.go +++ b/services/network/mgmt/2018-02-01/network/loadbalancerbackendaddresspools.go @@ -74,6 +74,7 @@ func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, re result.lbbaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return } if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2018-02-01/network/loadbalancerfrontendipconfigurations.go index 6faa88a69848..8d2c22478c6c 100644 --- a/services/network/mgmt/2018-02-01/network/loadbalancerfrontendipconfigurations.go +++ b/services/network/mgmt/2018-02-01/network/loadbalancerfrontendipconfigurations.go @@ -75,6 +75,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Contex result.lbficlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2018-02-01/network/loadbalancerloadbalancingrules.go index 4b1d22f35189..9efbdb39e2e3 100644 --- a/services/network/mgmt/2018-02-01/network/loadbalancerloadbalancingrules.go +++ b/services/network/mgmt/2018-02-01/network/loadbalancerloadbalancingrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, res result.lblbrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return } if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2018-02-01/network/loadbalancernetworkinterfaces.go index b417ab22a1e8..581946b3d1ac 100644 --- a/services/network/mgmt/2018-02-01/network/loadbalancernetworkinterfaces.go +++ b/services/network/mgmt/2018-02-01/network/loadbalancernetworkinterfaces.go @@ -74,6 +74,7 @@ func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, reso result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/loadbalancerprobes.go b/services/network/mgmt/2018-02-01/network/loadbalancerprobes.go index 99a8c9a7e768..7f806cde82a6 100644 --- a/services/network/mgmt/2018-02-01/network/loadbalancerprobes.go +++ b/services/network/mgmt/2018-02-01/network/loadbalancerprobes.go @@ -74,6 +74,7 @@ func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupNa result.lbplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return } if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/loadbalancers.go b/services/network/mgmt/2018-02-01/network/loadbalancers.go index f07062252c1e..f85e1abe4ed5 100644 --- a/services/network/mgmt/2018-02-01/network/loadbalancers.go +++ b/services/network/mgmt/2018-02-01/network/loadbalancers.go @@ -225,6 +225,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/localnetworkgateways.go b/services/network/mgmt/2018-02-01/network/localnetworkgateways.go index 093562d1e73f..7ed77775a771 100644 --- a/services/network/mgmt/2018-02-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2018-02-01/network/localnetworkgateways.go @@ -246,6 +246,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/operations.go b/services/network/mgmt/2018-02-01/network/operations.go index 8716aff59756..0e9595967058 100644 --- a/services/network/mgmt/2018-02-01/network/operations.go +++ b/services/network/mgmt/2018-02-01/network/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/packetcaptures.go b/services/network/mgmt/2018-02-01/network/packetcaptures.go index ed18b16aef3b..e4598155b21e 100644 --- a/services/network/mgmt/2018-02-01/network/packetcaptures.go +++ b/services/network/mgmt/2018-02-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-02-01/network/publicipaddresses.go b/services/network/mgmt/2018-02-01/network/publicipaddresses.go index 83fdd603a6fc..240d126ac08f 100644 --- a/services/network/mgmt/2018-02-01/network/publicipaddresses.go +++ b/services/network/mgmt/2018-02-01/network/publicipaddresses.go @@ -238,6 +238,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -403,6 +405,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +469,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +519,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -577,6 +582,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +636,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -694,6 +701,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +758,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -817,6 +826,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/routefilterrules.go b/services/network/mgmt/2018-02-01/network/routefilterrules.go index 4b262aa2d7f9..bca21d04ea20 100644 --- a/services/network/mgmt/2018-02-01/network/routefilterrules.go +++ b/services/network/mgmt/2018-02-01/network/routefilterrules.go @@ -241,6 +241,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/routefilters.go b/services/network/mgmt/2018-02-01/network/routefilters.go index a89184211d5b..efd7bfd40933 100644 --- a/services/network/mgmt/2018-02-01/network/routefilters.go +++ b/services/network/mgmt/2018-02-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/routes.go b/services/network/mgmt/2018-02-01/network/routes.go index 07f07b826366..82387128a718 100644 --- a/services/network/mgmt/2018-02-01/network/routes.go +++ b/services/network/mgmt/2018-02-01/network/routes.go @@ -229,6 +229,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/routetables.go b/services/network/mgmt/2018-02-01/network/routetables.go index e62907746fc0..fcf6c7219b78 100644 --- a/services/network/mgmt/2018-02-01/network/routetables.go +++ b/services/network/mgmt/2018-02-01/network/routetables.go @@ -225,6 +225,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/securitygroups.go b/services/network/mgmt/2018-02-01/network/securitygroups.go index 1657e0e641ef..215faa3bd133 100644 --- a/services/network/mgmt/2018-02-01/network/securitygroups.go +++ b/services/network/mgmt/2018-02-01/network/securitygroups.go @@ -225,6 +225,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/securityrules.go b/services/network/mgmt/2018-02-01/network/securityrules.go index 2e6763a1f9ad..808ce57050e1 100644 --- a/services/network/mgmt/2018-02-01/network/securityrules.go +++ b/services/network/mgmt/2018-02-01/network/securityrules.go @@ -229,6 +229,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/subnets.go b/services/network/mgmt/2018-02-01/network/subnets.go index 361789f3ae0c..46a0b7dc9339 100644 --- a/services/network/mgmt/2018-02-01/network/subnets.go +++ b/services/network/mgmt/2018-02-01/network/subnets.go @@ -230,6 +230,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/usages.go b/services/network/mgmt/2018-02-01/network/usages.go index d7197f357331..17179f9ebe0b 100644 --- a/services/network/mgmt/2018-02-01/network/usages.go +++ b/services/network/mgmt/2018-02-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2018-02-01/network/virtualnetworkgatewayconnections.go index f1ea33ae18c7..8a9d43ceeef4 100644 --- a/services/network/mgmt/2018-02-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2018-02-01/network/virtualnetworkgatewayconnections.go @@ -239,6 +239,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/virtualnetworkgateways.go b/services/network/mgmt/2018-02-01/network/virtualnetworkgateways.go index fc33856c7e8a..6cfc53543084 100644 --- a/services/network/mgmt/2018-02-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2018-02-01/network/virtualnetworkgateways.go @@ -390,6 +390,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -851,6 +852,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -914,6 +916,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -966,6 +969,7 @@ func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, result.vnglcr, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return } if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1030,6 +1034,7 @@ func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx contex result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1248,6 +1253,7 @@ func (client VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Conte result, err = client.SupportedVpnDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", resp, "Failure responding to request") + return } return @@ -1403,6 +1409,7 @@ func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx cont result, err = client.VpnDeviceConfigurationScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-02-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2018-02-01/network/virtualnetworkpeerings.go index 191e7ec8a9d7..20ea4b492868 100644 --- a/services/network/mgmt/2018-02-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2018-02-01/network/virtualnetworkpeerings.go @@ -231,6 +231,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/virtualnetworks.go b/services/network/mgmt/2018-02-01/network/virtualnetworks.go index 82a2f72c4e8f..c8489f0a04ee 100644 --- a/services/network/mgmt/2018-02-01/network/virtualnetworks.go +++ b/services/network/mgmt/2018-02-01/network/virtualnetworks.go @@ -73,6 +73,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -382,6 +384,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -445,6 +448,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -494,6 +498,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -556,6 +561,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -608,6 +614,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -672,6 +679,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-02-01/network/watchers.go b/services/network/mgmt/2018-02-01/network/watchers.go index be35cca091ac..5ac9f72c040e 100644 --- a/services/network/mgmt/2018-02-01/network/watchers.go +++ b/services/network/mgmt/2018-02-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -646,6 +648,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -978,6 +981,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -1049,6 +1053,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return @@ -1289,6 +1294,7 @@ func (client WatchersClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-04-01/network/applicationgateways.go b/services/network/mgmt/2018-04-01/network/applicationgateways.go index 525caaf112d8..7fc05f6e2ba4 100644 --- a/services/network/mgmt/2018-04-01/network/applicationgateways.go +++ b/services/network/mgmt/2018-04-01/network/applicationgateways.go @@ -327,6 +327,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -401,6 +402,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte result, err = client.GetSslPredefinedPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return } return @@ -475,6 +477,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -538,6 +541,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -587,6 +591,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -649,6 +654,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -697,6 +703,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont result, err = client.ListAvailableSslOptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return } return @@ -768,6 +775,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return } if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { err = result.NextWithContext(ctx) @@ -830,6 +838,7 @@ func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextRe result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + return } return } @@ -878,6 +887,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-04-01/network/applicationsecuritygroups.go b/services/network/mgmt/2018-04-01/network/applicationsecuritygroups.go index 2cf460d46cc6..9123f7ce73d1 100644 --- a/services/network/mgmt/2018-04-01/network/applicationsecuritygroups.go +++ b/services/network/mgmt/2018-04-01/network/applicationsecuritygroups.go @@ -226,6 +226,7 @@ func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resource result.asglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ApplicationSecurityGroupsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (resu result.asglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ApplicationSecurityGroupsClient) listAllNextResults(ctx context.Con result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/availableendpointservices.go b/services/network/mgmt/2018-04-01/network/availableendpointservices.go index 93bd7cf16627..949c3fb1e80d 100644 --- a/services/network/mgmt/2018-04-01/network/availableendpointservices.go +++ b/services/network/mgmt/2018-04-01/network/availableendpointservices.go @@ -73,6 +73,7 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableEndpointServicesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/azurefirewalls.go b/services/network/mgmt/2018-04-01/network/azurefirewalls.go index e6e276a131c1..815cb8129d9a 100644 --- a/services/network/mgmt/2018-04-01/network/azurefirewalls.go +++ b/services/network/mgmt/2018-04-01/network/azurefirewalls.go @@ -225,6 +225,7 @@ func (client AzureFirewallsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client AzureFirewallsClient) List(ctx context.Context, resourceGroupName s result.aflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "List", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +365,7 @@ func (client AzureFirewallsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client AzureFirewallsClient) ListAll(ctx context.Context) (result AzureFir result.aflr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "ListAll", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client AzureFirewallsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/bgpservicecommunities.go b/services/network/mgmt/2018-04-01/network/bgpservicecommunities.go index 9f96e4c73ec9..f78d88108ee8 100644 --- a/services/network/mgmt/2018-04-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2018-04-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/client.go b/services/network/mgmt/2018-04-01/network/client.go index fd7c28c47773..72873d497dec 100644 --- a/services/network/mgmt/2018-04-01/network/client.go +++ b/services/network/mgmt/2018-04-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-04-01/network/connectionmonitors.go b/services/network/mgmt/2018-04-01/network/connectionmonitors.go index b8d383402e58..79386ef0f8f9 100644 --- a/services/network/mgmt/2018-04-01/network/connectionmonitors.go +++ b/services/network/mgmt/2018-04-01/network/connectionmonitors.go @@ -241,6 +241,7 @@ func (client ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ConnectionMonitorsClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-04-01/network/ddosprotectionplans.go b/services/network/mgmt/2018-04-01/network/ddosprotectionplans.go index 4544b584dd9e..cfa35d7ae8ce 100644 --- a/services/network/mgmt/2018-04-01/network/ddosprotectionplans.go +++ b/services/network/mgmt/2018-04-01/network/ddosprotectionplans.go @@ -229,6 +229,7 @@ func (client DdosProtectionPlansClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DdosProtectionPlansClient) List(ctx context.Context) (result DdosPr result.dpplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client DdosProtectionPlansClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, result.dpplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client DdosProtectionPlansClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/defaultsecurityrules.go b/services/network/mgmt/2018-04-01/network/defaultsecurityrules.go index 79115fcbda66..02197e6e95de 100644 --- a/services/network/mgmt/2018-04-01/network/defaultsecurityrules.go +++ b/services/network/mgmt/2018-04-01/network/defaultsecurityrules.go @@ -74,6 +74,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2018-04-01/network/expressroutecircuitauthorizations.go index 0b7a25ce2178..fb51a97dec18 100644 --- a/services/network/mgmt/2018-04-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2018-04-01/network/expressroutecircuitauthorizations.go @@ -233,6 +233,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2018-04-01/network/expressroutecircuitconnections.go index f75173985381..3721f61ace01 100644 --- a/services/network/mgmt/2018-04-01/network/expressroutecircuitconnections.go +++ b/services/network/mgmt/2018-04-01/network/expressroutecircuitconnections.go @@ -237,6 +237,7 @@ func (client ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-04-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2018-04-01/network/expressroutecircuitpeerings.go index 4ac8653eaff2..f107562daab6 100644 --- a/services/network/mgmt/2018-04-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2018-04-01/network/expressroutecircuitpeerings.go @@ -243,6 +243,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +321,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/expressroutecircuits.go b/services/network/mgmt/2018-04-01/network/expressroutecircuits.go index 68d06ca3042d..407d40e8b26e 100644 --- a/services/network/mgmt/2018-04-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2018-04-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2018-04-01/network/expressroutecrossconnectionpeerings.go index 69f09f9cd873..b47906da2045 100644 --- a/services/network/mgmt/2018-04-01/network/expressroutecrossconnectionpeerings.go +++ b/services/network/mgmt/2018-04-01/network/expressroutecrossconnectionpeerings.go @@ -245,6 +245,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context result.erccpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "List", resp, "Failure responding to request") + return } if result.erccpl.hasNextLink() && result.erccpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) listNextResults(ctx cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/expressroutecrossconnections.go b/services/network/mgmt/2018-04-01/network/expressroutecrossconnections.go index 7dd2a2e3a0c0..a75bebf5fc91 100644 --- a/services/network/mgmt/2018-04-01/network/expressroutecrossconnections.go +++ b/services/network/mgmt/2018-04-01/network/expressroutecrossconnections.go @@ -152,6 +152,7 @@ func (client ExpressRouteCrossConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ExpressRouteCrossConnectionsClient) List(ctx context.Context) (resu result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -287,6 +289,7 @@ func (client ExpressRouteCrossConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -418,6 +421,7 @@ func (client ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context result.ercclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +485,7 @@ func (client ExpressRouteCrossConnectionsClient) listByResourceGroupNextResults( result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2018-04-01/network/expressrouteserviceproviders.go index 657811f16665..5ef41496a9fa 100644 --- a/services/network/mgmt/2018-04-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2018-04-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2018-04-01/network/hubvirtualnetworkconnections.go index 2464391efab7..68c0f5fb45e4 100644 --- a/services/network/mgmt/2018-04-01/network/hubvirtualnetworkconnections.go +++ b/services/network/mgmt/2018-04-01/network/hubvirtualnetworkconnections.go @@ -74,6 +74,7 @@ func (client HubVirtualNetworkConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client HubVirtualNetworkConnectionsClient) List(ctx context.Context, resou result.lhvncr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "List", resp, "Failure responding to request") + return } if result.lhvncr.hasNextLink() && result.lhvncr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client HubVirtualNetworkConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/inboundnatrules.go b/services/network/mgmt/2018-04-01/network/inboundnatrules.go index dd6af14a2341..607cc16b4f7c 100644 --- a/services/network/mgmt/2018-04-01/network/inboundnatrules.go +++ b/services/network/mgmt/2018-04-01/network/inboundnatrules.go @@ -250,6 +250,7 @@ func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName result.inrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return } if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +396,7 @@ func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/interfaceipconfigurations.go b/services/network/mgmt/2018-04-01/network/interfaceipconfigurations.go index 8e3d2ef6fcf0..a89cd975533b 100644 --- a/services/network/mgmt/2018-04-01/network/interfaceipconfigurations.go +++ b/services/network/mgmt/2018-04-01/network/interfaceipconfigurations.go @@ -74,6 +74,7 @@ func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resource result.iiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/interfaceloadbalancers.go b/services/network/mgmt/2018-04-01/network/interfaceloadbalancers.go index a7b4f6f48282..dcbc8ab12717 100644 --- a/services/network/mgmt/2018-04-01/network/interfaceloadbalancers.go +++ b/services/network/mgmt/2018-04-01/network/interfaceloadbalancers.go @@ -74,6 +74,7 @@ func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGro result.ilblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/interfacesgroup.go b/services/network/mgmt/2018-04-01/network/interfacesgroup.go index 251cfeb7b34a..31ef3f485986 100644 --- a/services/network/mgmt/2018-04-01/network/interfacesgroup.go +++ b/services/network/mgmt/2018-04-01/network/interfacesgroup.go @@ -225,6 +225,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -383,6 +384,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx cont result, err = client.GetVirtualMachineScaleSetIPConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure responding to request") + return } return @@ -467,6 +469,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -547,6 +550,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -610,6 +614,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -659,6 +664,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -721,6 +727,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -852,6 +859,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx co result.iiclr, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -921,6 +929,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetIPConfigurationsNextRes result, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -973,6 +982,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1037,6 +1047,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1091,6 +1102,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1156,6 +1168,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2018-04-01/network/loadbalancerbackendaddresspools.go index cb51b9da2e8b..75b313103523 100644 --- a/services/network/mgmt/2018-04-01/network/loadbalancerbackendaddresspools.go +++ b/services/network/mgmt/2018-04-01/network/loadbalancerbackendaddresspools.go @@ -74,6 +74,7 @@ func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, re result.lbbaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return } if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2018-04-01/network/loadbalancerfrontendipconfigurations.go index a63c7df9f719..ce5d4f277082 100644 --- a/services/network/mgmt/2018-04-01/network/loadbalancerfrontendipconfigurations.go +++ b/services/network/mgmt/2018-04-01/network/loadbalancerfrontendipconfigurations.go @@ -75,6 +75,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Contex result.lbficlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2018-04-01/network/loadbalancerloadbalancingrules.go index 31b49772534f..f4e4c520da43 100644 --- a/services/network/mgmt/2018-04-01/network/loadbalancerloadbalancingrules.go +++ b/services/network/mgmt/2018-04-01/network/loadbalancerloadbalancingrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, res result.lblbrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return } if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2018-04-01/network/loadbalancernetworkinterfaces.go index 28e7f1a7400c..cd6eb0917b30 100644 --- a/services/network/mgmt/2018-04-01/network/loadbalancernetworkinterfaces.go +++ b/services/network/mgmt/2018-04-01/network/loadbalancernetworkinterfaces.go @@ -74,6 +74,7 @@ func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, reso result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/loadbalancerprobes.go b/services/network/mgmt/2018-04-01/network/loadbalancerprobes.go index 43306fae65a9..bcc8894d132d 100644 --- a/services/network/mgmt/2018-04-01/network/loadbalancerprobes.go +++ b/services/network/mgmt/2018-04-01/network/loadbalancerprobes.go @@ -74,6 +74,7 @@ func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupNa result.lbplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return } if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/loadbalancers.go b/services/network/mgmt/2018-04-01/network/loadbalancers.go index 1646b51e041f..168492485aee 100644 --- a/services/network/mgmt/2018-04-01/network/loadbalancers.go +++ b/services/network/mgmt/2018-04-01/network/loadbalancers.go @@ -225,6 +225,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/localnetworkgateways.go b/services/network/mgmt/2018-04-01/network/localnetworkgateways.go index 4c03b22cdac5..00aaed909d59 100644 --- a/services/network/mgmt/2018-04-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2018-04-01/network/localnetworkgateways.go @@ -246,6 +246,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/operations.go b/services/network/mgmt/2018-04-01/network/operations.go index 4d1964bfe40f..e04c5c7308c2 100644 --- a/services/network/mgmt/2018-04-01/network/operations.go +++ b/services/network/mgmt/2018-04-01/network/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/packetcaptures.go b/services/network/mgmt/2018-04-01/network/packetcaptures.go index 3505338c3edd..f864d2ffa539 100644 --- a/services/network/mgmt/2018-04-01/network/packetcaptures.go +++ b/services/network/mgmt/2018-04-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-04-01/network/publicipaddresses.go b/services/network/mgmt/2018-04-01/network/publicipaddresses.go index 372aeeca86d6..884bd014b372 100644 --- a/services/network/mgmt/2018-04-01/network/publicipaddresses.go +++ b/services/network/mgmt/2018-04-01/network/publicipaddresses.go @@ -238,6 +238,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -403,6 +405,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +469,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +519,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -577,6 +582,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +636,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -694,6 +701,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +758,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -817,6 +826,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/routefilterrules.go b/services/network/mgmt/2018-04-01/network/routefilterrules.go index 5d8da6baa2ed..3adae5ee59a9 100644 --- a/services/network/mgmt/2018-04-01/network/routefilterrules.go +++ b/services/network/mgmt/2018-04-01/network/routefilterrules.go @@ -241,6 +241,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/routefilters.go b/services/network/mgmt/2018-04-01/network/routefilters.go index 25f1685ab83f..6b40f27ddaf8 100644 --- a/services/network/mgmt/2018-04-01/network/routefilters.go +++ b/services/network/mgmt/2018-04-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/routes.go b/services/network/mgmt/2018-04-01/network/routes.go index fa8de99627bd..bbca3fb96ed0 100644 --- a/services/network/mgmt/2018-04-01/network/routes.go +++ b/services/network/mgmt/2018-04-01/network/routes.go @@ -229,6 +229,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/routetables.go b/services/network/mgmt/2018-04-01/network/routetables.go index 4f6223bfcb63..9565fef05488 100644 --- a/services/network/mgmt/2018-04-01/network/routetables.go +++ b/services/network/mgmt/2018-04-01/network/routetables.go @@ -225,6 +225,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/securitygroups.go b/services/network/mgmt/2018-04-01/network/securitygroups.go index cd96cf40e831..279ceb6b52d7 100644 --- a/services/network/mgmt/2018-04-01/network/securitygroups.go +++ b/services/network/mgmt/2018-04-01/network/securitygroups.go @@ -225,6 +225,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/securityrules.go b/services/network/mgmt/2018-04-01/network/securityrules.go index bd97c3986ba1..1f20337a927b 100644 --- a/services/network/mgmt/2018-04-01/network/securityrules.go +++ b/services/network/mgmt/2018-04-01/network/securityrules.go @@ -229,6 +229,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/subnets.go b/services/network/mgmt/2018-04-01/network/subnets.go index 4e0c6bd556b4..2b6c4326573d 100644 --- a/services/network/mgmt/2018-04-01/network/subnets.go +++ b/services/network/mgmt/2018-04-01/network/subnets.go @@ -230,6 +230,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/usages.go b/services/network/mgmt/2018-04-01/network/usages.go index 3b6fcf54ca62..5997692b5592 100644 --- a/services/network/mgmt/2018-04-01/network/usages.go +++ b/services/network/mgmt/2018-04-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/virtualhubs.go b/services/network/mgmt/2018-04-01/network/virtualhubs.go index 008d0c52ae65..4fb3cb32b1f5 100644 --- a/services/network/mgmt/2018-04-01/network/virtualhubs.go +++ b/services/network/mgmt/2018-04-01/network/virtualhubs.go @@ -225,6 +225,7 @@ func (client VirtualHubsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualHubsClient) List(ctx context.Context) (result ListVirtualHub result.lvhr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "List", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualHubsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualHubsClient) ListByResourceGroup(ctx context.Context, resourc result.lvhr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualHubsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2018-04-01/network/virtualnetworkgatewayconnections.go index 3893415a24fc..eefddf887f17 100644 --- a/services/network/mgmt/2018-04-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2018-04-01/network/virtualnetworkgatewayconnections.go @@ -239,6 +239,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/virtualnetworkgateways.go b/services/network/mgmt/2018-04-01/network/virtualnetworkgateways.go index 6e64ca97a64b..9992efde4f6b 100644 --- a/services/network/mgmt/2018-04-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2018-04-01/network/virtualnetworkgateways.go @@ -390,6 +390,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -851,6 +852,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -914,6 +916,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -966,6 +969,7 @@ func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, result.vnglcr, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return } if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1030,6 +1034,7 @@ func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx contex result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1248,6 +1253,7 @@ func (client VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Conte result, err = client.SupportedVpnDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", resp, "Failure responding to request") + return } return @@ -1403,6 +1409,7 @@ func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx cont result, err = client.VpnDeviceConfigurationScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-04-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2018-04-01/network/virtualnetworkpeerings.go index 142214100e3c..ea9bfeebdfa8 100644 --- a/services/network/mgmt/2018-04-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2018-04-01/network/virtualnetworkpeerings.go @@ -231,6 +231,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/virtualnetworks.go b/services/network/mgmt/2018-04-01/network/virtualnetworks.go index b1eeb8a45e1f..1a186a82378f 100644 --- a/services/network/mgmt/2018-04-01/network/virtualnetworks.go +++ b/services/network/mgmt/2018-04-01/network/virtualnetworks.go @@ -73,6 +73,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -382,6 +384,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -445,6 +448,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -494,6 +498,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -556,6 +561,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -608,6 +614,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -672,6 +679,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/virtualwans.go b/services/network/mgmt/2018-04-01/network/virtualwans.go index 913284e31651..6957a3840324 100644 --- a/services/network/mgmt/2018-04-01/network/virtualwans.go +++ b/services/network/mgmt/2018-04-01/network/virtualwans.go @@ -225,6 +225,7 @@ func (client VirtualWANsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWANsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualWANsClient) List(ctx context.Context) (result ListVirtualWAN result.lvwnr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWANsClient", "List", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualWANsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWANsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualWANsClient) ListByResourceGroup(ctx context.Context, resourc result.lvwnr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWANsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualWANsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWANsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/vpnconnections.go b/services/network/mgmt/2018-04-01/network/vpnconnections.go index 6a62a8350877..b72c8e47b9d0 100644 --- a/services/network/mgmt/2018-04-01/network/vpnconnections.go +++ b/services/network/mgmt/2018-04-01/network/vpnconnections.go @@ -231,6 +231,7 @@ func (client VpnConnectionsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VpnConnectionsClient) ListByVpnGateway(ctx context.Context, resourc result.lvcr, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "ListByVpnGateway", resp, "Failure responding to request") + return } if result.lvcr.hasNextLink() && result.lvcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VpnConnectionsClient) listByVpnGatewayNextResults(ctx context.Conte result, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "listByVpnGatewayNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/vpngateways.go b/services/network/mgmt/2018-04-01/network/vpngateways.go index 801243d0274b..d55eae7a7349 100644 --- a/services/network/mgmt/2018-04-01/network/vpngateways.go +++ b/services/network/mgmt/2018-04-01/network/vpngateways.go @@ -225,6 +225,7 @@ func (client VpnGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnGatewaysClient) List(ctx context.Context) (result ListVpnGateway result.lvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnGatewaysClient) ListByResourceGroup(ctx context.Context, resourc result.lvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnGatewaysClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/vpnsites.go b/services/network/mgmt/2018-04-01/network/vpnsites.go index 2a8a3f624830..bffb4dc207d1 100644 --- a/services/network/mgmt/2018-04-01/network/vpnsites.go +++ b/services/network/mgmt/2018-04-01/network/vpnsites.go @@ -225,6 +225,7 @@ func (client VpnSitesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnSitesClient) List(ctx context.Context) (result ListVpnSitesResul result.lvsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "List", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnSitesClient) listNextResults(ctx context.Context, lastResults Li result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnSitesClient) ListByResourceGroup(ctx context.Context, resourceGr result.lvsr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnSitesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-04-01/network/watchers.go b/services/network/mgmt/2018-04-01/network/watchers.go index f847e52ed778..233fb6645d1a 100644 --- a/services/network/mgmt/2018-04-01/network/watchers.go +++ b/services/network/mgmt/2018-04-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -646,6 +648,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -978,6 +981,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -1049,6 +1053,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return @@ -1297,6 +1302,7 @@ func (client WatchersClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-06-01/network/applicationgateways.go b/services/network/mgmt/2018-06-01/network/applicationgateways.go index acf29811a337..4ff4bd78a1b9 100644 --- a/services/network/mgmt/2018-06-01/network/applicationgateways.go +++ b/services/network/mgmt/2018-06-01/network/applicationgateways.go @@ -327,6 +327,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -401,6 +402,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte result, err = client.GetSslPredefinedPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return } return @@ -475,6 +477,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -538,6 +541,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -587,6 +591,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -649,6 +654,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -697,6 +703,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont result, err = client.ListAvailableSslOptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return } return @@ -768,6 +775,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return } if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { err = result.NextWithContext(ctx) @@ -830,6 +838,7 @@ func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextRe result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + return } return } @@ -878,6 +887,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-06-01/network/applicationsecuritygroups.go b/services/network/mgmt/2018-06-01/network/applicationsecuritygroups.go index a30de1baa1ea..39ea18bd798b 100644 --- a/services/network/mgmt/2018-06-01/network/applicationsecuritygroups.go +++ b/services/network/mgmt/2018-06-01/network/applicationsecuritygroups.go @@ -226,6 +226,7 @@ func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resource result.asglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ApplicationSecurityGroupsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (resu result.asglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ApplicationSecurityGroupsClient) listAllNextResults(ctx context.Con result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/availableendpointservices.go b/services/network/mgmt/2018-06-01/network/availableendpointservices.go index c1a2ad062ffa..02477dc77669 100644 --- a/services/network/mgmt/2018-06-01/network/availableendpointservices.go +++ b/services/network/mgmt/2018-06-01/network/availableendpointservices.go @@ -73,6 +73,7 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableEndpointServicesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/azurefirewalls.go b/services/network/mgmt/2018-06-01/network/azurefirewalls.go index 9445ad25ee24..24f174846b01 100644 --- a/services/network/mgmt/2018-06-01/network/azurefirewalls.go +++ b/services/network/mgmt/2018-06-01/network/azurefirewalls.go @@ -225,6 +225,7 @@ func (client AzureFirewallsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client AzureFirewallsClient) List(ctx context.Context, resourceGroupName s result.aflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "List", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +365,7 @@ func (client AzureFirewallsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client AzureFirewallsClient) ListAll(ctx context.Context) (result AzureFir result.aflr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "ListAll", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client AzureFirewallsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/bgpservicecommunities.go b/services/network/mgmt/2018-06-01/network/bgpservicecommunities.go index 1272ecedda40..fa9c8666e14b 100644 --- a/services/network/mgmt/2018-06-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2018-06-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/client.go b/services/network/mgmt/2018-06-01/network/client.go index f88cf444f42f..71c1de117a73 100644 --- a/services/network/mgmt/2018-06-01/network/client.go +++ b/services/network/mgmt/2018-06-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-06-01/network/connectionmonitors.go b/services/network/mgmt/2018-06-01/network/connectionmonitors.go index 60a617c3a47c..338810d0ebe5 100644 --- a/services/network/mgmt/2018-06-01/network/connectionmonitors.go +++ b/services/network/mgmt/2018-06-01/network/connectionmonitors.go @@ -241,6 +241,7 @@ func (client ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ConnectionMonitorsClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-06-01/network/ddosprotectionplans.go b/services/network/mgmt/2018-06-01/network/ddosprotectionplans.go index 531698d75cc2..e83f9108678c 100644 --- a/services/network/mgmt/2018-06-01/network/ddosprotectionplans.go +++ b/services/network/mgmt/2018-06-01/network/ddosprotectionplans.go @@ -229,6 +229,7 @@ func (client DdosProtectionPlansClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DdosProtectionPlansClient) List(ctx context.Context) (result DdosPr result.dpplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client DdosProtectionPlansClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, result.dpplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client DdosProtectionPlansClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/defaultsecurityrules.go b/services/network/mgmt/2018-06-01/network/defaultsecurityrules.go index 93aa2aad5448..544213674ee8 100644 --- a/services/network/mgmt/2018-06-01/network/defaultsecurityrules.go +++ b/services/network/mgmt/2018-06-01/network/defaultsecurityrules.go @@ -74,6 +74,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2018-06-01/network/expressroutecircuitauthorizations.go index 9a2f94b70866..0669c35a907a 100644 --- a/services/network/mgmt/2018-06-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2018-06-01/network/expressroutecircuitauthorizations.go @@ -233,6 +233,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2018-06-01/network/expressroutecircuitconnections.go index cf18aa30ee01..e4ebf94f983c 100644 --- a/services/network/mgmt/2018-06-01/network/expressroutecircuitconnections.go +++ b/services/network/mgmt/2018-06-01/network/expressroutecircuitconnections.go @@ -237,6 +237,7 @@ func (client ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-06-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2018-06-01/network/expressroutecircuitpeerings.go index 01fb93d3e6b1..bea0c0cbdc2a 100644 --- a/services/network/mgmt/2018-06-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2018-06-01/network/expressroutecircuitpeerings.go @@ -243,6 +243,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +321,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/expressroutecircuits.go b/services/network/mgmt/2018-06-01/network/expressroutecircuits.go index 3815c8282ef5..c33447dd9eb1 100644 --- a/services/network/mgmt/2018-06-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2018-06-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2018-06-01/network/expressroutecrossconnectionpeerings.go index 6ea7d4db2ac4..2b6ef017a990 100644 --- a/services/network/mgmt/2018-06-01/network/expressroutecrossconnectionpeerings.go +++ b/services/network/mgmt/2018-06-01/network/expressroutecrossconnectionpeerings.go @@ -245,6 +245,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context result.erccpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "List", resp, "Failure responding to request") + return } if result.erccpl.hasNextLink() && result.erccpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) listNextResults(ctx cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/expressroutecrossconnections.go b/services/network/mgmt/2018-06-01/network/expressroutecrossconnections.go index 0f5b90271fd7..ea6e534f7b06 100644 --- a/services/network/mgmt/2018-06-01/network/expressroutecrossconnections.go +++ b/services/network/mgmt/2018-06-01/network/expressroutecrossconnections.go @@ -152,6 +152,7 @@ func (client ExpressRouteCrossConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ExpressRouteCrossConnectionsClient) List(ctx context.Context) (resu result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -287,6 +289,7 @@ func (client ExpressRouteCrossConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -418,6 +421,7 @@ func (client ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context result.ercclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +485,7 @@ func (client ExpressRouteCrossConnectionsClient) listByResourceGroupNextResults( result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2018-06-01/network/expressrouteserviceproviders.go index 10990f99358f..ae750f74aa79 100644 --- a/services/network/mgmt/2018-06-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2018-06-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2018-06-01/network/hubvirtualnetworkconnections.go index b5961bd89f86..d3e679612479 100644 --- a/services/network/mgmt/2018-06-01/network/hubvirtualnetworkconnections.go +++ b/services/network/mgmt/2018-06-01/network/hubvirtualnetworkconnections.go @@ -74,6 +74,7 @@ func (client HubVirtualNetworkConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client HubVirtualNetworkConnectionsClient) List(ctx context.Context, resou result.lhvncr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "List", resp, "Failure responding to request") + return } if result.lhvncr.hasNextLink() && result.lhvncr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client HubVirtualNetworkConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/inboundnatrules.go b/services/network/mgmt/2018-06-01/network/inboundnatrules.go index 74c62c924b72..58400f98b13d 100644 --- a/services/network/mgmt/2018-06-01/network/inboundnatrules.go +++ b/services/network/mgmt/2018-06-01/network/inboundnatrules.go @@ -250,6 +250,7 @@ func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName result.inrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return } if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +396,7 @@ func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/interfaceipconfigurations.go b/services/network/mgmt/2018-06-01/network/interfaceipconfigurations.go index c75d6bcd9cc1..8ca63c16e23b 100644 --- a/services/network/mgmt/2018-06-01/network/interfaceipconfigurations.go +++ b/services/network/mgmt/2018-06-01/network/interfaceipconfigurations.go @@ -74,6 +74,7 @@ func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resource result.iiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/interfaceloadbalancers.go b/services/network/mgmt/2018-06-01/network/interfaceloadbalancers.go index 494509d707dd..0fce3e62a2ce 100644 --- a/services/network/mgmt/2018-06-01/network/interfaceloadbalancers.go +++ b/services/network/mgmt/2018-06-01/network/interfaceloadbalancers.go @@ -74,6 +74,7 @@ func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGro result.ilblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/interfacesgroup.go b/services/network/mgmt/2018-06-01/network/interfacesgroup.go index d9b52d7e82e2..60db38eb508a 100644 --- a/services/network/mgmt/2018-06-01/network/interfacesgroup.go +++ b/services/network/mgmt/2018-06-01/network/interfacesgroup.go @@ -225,6 +225,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -383,6 +384,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx cont result, err = client.GetVirtualMachineScaleSetIPConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure responding to request") + return } return @@ -467,6 +469,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -547,6 +550,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -610,6 +614,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -659,6 +664,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -721,6 +727,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -852,6 +859,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx co result.iiclr, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -921,6 +929,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetIPConfigurationsNextRes result, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -973,6 +982,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1037,6 +1047,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1091,6 +1102,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1156,6 +1168,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2018-06-01/network/loadbalancerbackendaddresspools.go index 660be7467388..95aafe037863 100644 --- a/services/network/mgmt/2018-06-01/network/loadbalancerbackendaddresspools.go +++ b/services/network/mgmt/2018-06-01/network/loadbalancerbackendaddresspools.go @@ -74,6 +74,7 @@ func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, re result.lbbaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return } if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2018-06-01/network/loadbalancerfrontendipconfigurations.go index 9103ece6d2f5..5c32ad3b8979 100644 --- a/services/network/mgmt/2018-06-01/network/loadbalancerfrontendipconfigurations.go +++ b/services/network/mgmt/2018-06-01/network/loadbalancerfrontendipconfigurations.go @@ -75,6 +75,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Contex result.lbficlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2018-06-01/network/loadbalancerloadbalancingrules.go index 9a78c7936fcb..8f8405cdf7ed 100644 --- a/services/network/mgmt/2018-06-01/network/loadbalancerloadbalancingrules.go +++ b/services/network/mgmt/2018-06-01/network/loadbalancerloadbalancingrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, res result.lblbrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return } if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2018-06-01/network/loadbalancernetworkinterfaces.go index 6d283ad44d70..a9637e68a929 100644 --- a/services/network/mgmt/2018-06-01/network/loadbalancernetworkinterfaces.go +++ b/services/network/mgmt/2018-06-01/network/loadbalancernetworkinterfaces.go @@ -74,6 +74,7 @@ func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, reso result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/loadbalancerprobes.go b/services/network/mgmt/2018-06-01/network/loadbalancerprobes.go index d3405b566fc0..8cf63692672a 100644 --- a/services/network/mgmt/2018-06-01/network/loadbalancerprobes.go +++ b/services/network/mgmt/2018-06-01/network/loadbalancerprobes.go @@ -74,6 +74,7 @@ func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupNa result.lbplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return } if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/loadbalancers.go b/services/network/mgmt/2018-06-01/network/loadbalancers.go index d08cbe679a8b..776f73b27d75 100644 --- a/services/network/mgmt/2018-06-01/network/loadbalancers.go +++ b/services/network/mgmt/2018-06-01/network/loadbalancers.go @@ -225,6 +225,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/localnetworkgateways.go b/services/network/mgmt/2018-06-01/network/localnetworkgateways.go index 7d3c571497b0..f9b387b840b5 100644 --- a/services/network/mgmt/2018-06-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2018-06-01/network/localnetworkgateways.go @@ -246,6 +246,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/operations.go b/services/network/mgmt/2018-06-01/network/operations.go index cce20e39f381..8e84d78b77d2 100644 --- a/services/network/mgmt/2018-06-01/network/operations.go +++ b/services/network/mgmt/2018-06-01/network/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/packetcaptures.go b/services/network/mgmt/2018-06-01/network/packetcaptures.go index 77d1e00efac5..3af7910af784 100644 --- a/services/network/mgmt/2018-06-01/network/packetcaptures.go +++ b/services/network/mgmt/2018-06-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-06-01/network/publicipaddresses.go b/services/network/mgmt/2018-06-01/network/publicipaddresses.go index edce848a5cd1..ce9b4586805e 100644 --- a/services/network/mgmt/2018-06-01/network/publicipaddresses.go +++ b/services/network/mgmt/2018-06-01/network/publicipaddresses.go @@ -238,6 +238,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -403,6 +405,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +469,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +519,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -577,6 +582,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +636,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -694,6 +701,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +758,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -817,6 +826,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/routefilterrules.go b/services/network/mgmt/2018-06-01/network/routefilterrules.go index 9451f1364558..93d44a838fbf 100644 --- a/services/network/mgmt/2018-06-01/network/routefilterrules.go +++ b/services/network/mgmt/2018-06-01/network/routefilterrules.go @@ -241,6 +241,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/routefilters.go b/services/network/mgmt/2018-06-01/network/routefilters.go index 11cfc06c8826..1a21edf9c3e3 100644 --- a/services/network/mgmt/2018-06-01/network/routefilters.go +++ b/services/network/mgmt/2018-06-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/routes.go b/services/network/mgmt/2018-06-01/network/routes.go index 09a9a8861de6..0d9dd3b375b0 100644 --- a/services/network/mgmt/2018-06-01/network/routes.go +++ b/services/network/mgmt/2018-06-01/network/routes.go @@ -229,6 +229,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/routetables.go b/services/network/mgmt/2018-06-01/network/routetables.go index 54d114d89513..9e12c340d83e 100644 --- a/services/network/mgmt/2018-06-01/network/routetables.go +++ b/services/network/mgmt/2018-06-01/network/routetables.go @@ -225,6 +225,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/securitygroups.go b/services/network/mgmt/2018-06-01/network/securitygroups.go index 7124c08a9aca..34c855e05622 100644 --- a/services/network/mgmt/2018-06-01/network/securitygroups.go +++ b/services/network/mgmt/2018-06-01/network/securitygroups.go @@ -225,6 +225,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/securityrules.go b/services/network/mgmt/2018-06-01/network/securityrules.go index ca323522331d..5237fb9ac9a1 100644 --- a/services/network/mgmt/2018-06-01/network/securityrules.go +++ b/services/network/mgmt/2018-06-01/network/securityrules.go @@ -229,6 +229,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/subnets.go b/services/network/mgmt/2018-06-01/network/subnets.go index 16a1aa10fa00..471bf0500e03 100644 --- a/services/network/mgmt/2018-06-01/network/subnets.go +++ b/services/network/mgmt/2018-06-01/network/subnets.go @@ -230,6 +230,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/usages.go b/services/network/mgmt/2018-06-01/network/usages.go index bac4b5cdbe25..ed0be5c5b94e 100644 --- a/services/network/mgmt/2018-06-01/network/usages.go +++ b/services/network/mgmt/2018-06-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/virtualhubs.go b/services/network/mgmt/2018-06-01/network/virtualhubs.go index 79aac0718858..4fb78f16b28f 100644 --- a/services/network/mgmt/2018-06-01/network/virtualhubs.go +++ b/services/network/mgmt/2018-06-01/network/virtualhubs.go @@ -225,6 +225,7 @@ func (client VirtualHubsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualHubsClient) List(ctx context.Context) (result ListVirtualHub result.lvhr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "List", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualHubsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualHubsClient) ListByResourceGroup(ctx context.Context, resourc result.lvhr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualHubsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2018-06-01/network/virtualnetworkgatewayconnections.go index 7edcff5d866b..13370ced8294 100644 --- a/services/network/mgmt/2018-06-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2018-06-01/network/virtualnetworkgatewayconnections.go @@ -239,6 +239,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/virtualnetworkgateways.go b/services/network/mgmt/2018-06-01/network/virtualnetworkgateways.go index bc8781e8ada7..667296d04fde 100644 --- a/services/network/mgmt/2018-06-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2018-06-01/network/virtualnetworkgateways.go @@ -390,6 +390,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -851,6 +852,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -914,6 +916,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -966,6 +969,7 @@ func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, result.vnglcr, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return } if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1030,6 +1034,7 @@ func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx contex result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1323,6 +1328,7 @@ func (client VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Conte result, err = client.SupportedVpnDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", resp, "Failure responding to request") + return } return @@ -1478,6 +1484,7 @@ func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx cont result, err = client.VpnDeviceConfigurationScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-06-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2018-06-01/network/virtualnetworkpeerings.go index 0cf5a834fca4..41541ab7e877 100644 --- a/services/network/mgmt/2018-06-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2018-06-01/network/virtualnetworkpeerings.go @@ -231,6 +231,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/virtualnetworks.go b/services/network/mgmt/2018-06-01/network/virtualnetworks.go index 99c0ee9735ad..73170c67fdaa 100644 --- a/services/network/mgmt/2018-06-01/network/virtualnetworks.go +++ b/services/network/mgmt/2018-06-01/network/virtualnetworks.go @@ -73,6 +73,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -382,6 +384,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -445,6 +448,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -494,6 +498,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -556,6 +561,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -608,6 +614,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -672,6 +679,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/virtualwans.go b/services/network/mgmt/2018-06-01/network/virtualwans.go index 3cce88bbe294..04694cd79692 100644 --- a/services/network/mgmt/2018-06-01/network/virtualwans.go +++ b/services/network/mgmt/2018-06-01/network/virtualwans.go @@ -225,6 +225,7 @@ func (client VirtualWANsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWANsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualWANsClient) List(ctx context.Context) (result ListVirtualWAN result.lvwnr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWANsClient", "List", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualWANsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWANsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualWANsClient) ListByResourceGroup(ctx context.Context, resourc result.lvwnr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWANsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualWANsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWANsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/vpnconnections.go b/services/network/mgmt/2018-06-01/network/vpnconnections.go index 0a5839ef21e2..b6ccfcd77f2b 100644 --- a/services/network/mgmt/2018-06-01/network/vpnconnections.go +++ b/services/network/mgmt/2018-06-01/network/vpnconnections.go @@ -231,6 +231,7 @@ func (client VpnConnectionsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VpnConnectionsClient) ListByVpnGateway(ctx context.Context, resourc result.lvcr, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "ListByVpnGateway", resp, "Failure responding to request") + return } if result.lvcr.hasNextLink() && result.lvcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VpnConnectionsClient) listByVpnGatewayNextResults(ctx context.Conte result, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "listByVpnGatewayNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/vpngateways.go b/services/network/mgmt/2018-06-01/network/vpngateways.go index 5813820136e8..0a445c0d3fbe 100644 --- a/services/network/mgmt/2018-06-01/network/vpngateways.go +++ b/services/network/mgmt/2018-06-01/network/vpngateways.go @@ -225,6 +225,7 @@ func (client VpnGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnGatewaysClient) List(ctx context.Context) (result ListVpnGateway result.lvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnGatewaysClient) ListByResourceGroup(ctx context.Context, resourc result.lvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnGatewaysClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/vpnsites.go b/services/network/mgmt/2018-06-01/network/vpnsites.go index 5bb332485575..62067618c6e1 100644 --- a/services/network/mgmt/2018-06-01/network/vpnsites.go +++ b/services/network/mgmt/2018-06-01/network/vpnsites.go @@ -225,6 +225,7 @@ func (client VpnSitesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnSitesClient) List(ctx context.Context) (result ListVpnSitesResul result.lvsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "List", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnSitesClient) listNextResults(ctx context.Context, lastResults Li result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnSitesClient) ListByResourceGroup(ctx context.Context, resourceGr result.lvsr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnSitesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-06-01/network/watchers.go b/services/network/mgmt/2018-06-01/network/watchers.go index 46cc94a82aa5..2e16d2f951ea 100644 --- a/services/network/mgmt/2018-06-01/network/watchers.go +++ b/services/network/mgmt/2018-06-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -731,6 +733,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -1063,6 +1066,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -1134,6 +1138,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return @@ -1382,6 +1387,7 @@ func (client WatchersClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-07-01/network/applicationgateways.go b/services/network/mgmt/2018-07-01/network/applicationgateways.go index 3c3ba32b2afa..6f1f138cd809 100644 --- a/services/network/mgmt/2018-07-01/network/applicationgateways.go +++ b/services/network/mgmt/2018-07-01/network/applicationgateways.go @@ -327,6 +327,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -401,6 +402,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte result, err = client.GetSslPredefinedPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return } return @@ -475,6 +477,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -538,6 +541,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -587,6 +591,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -649,6 +654,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -697,6 +703,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont result, err = client.ListAvailableSslOptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return } return @@ -768,6 +775,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return } if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { err = result.NextWithContext(ctx) @@ -830,6 +838,7 @@ func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextRe result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + return } return } @@ -878,6 +887,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-07-01/network/applicationsecuritygroups.go b/services/network/mgmt/2018-07-01/network/applicationsecuritygroups.go index 562fa605ead7..0e172ded49de 100644 --- a/services/network/mgmt/2018-07-01/network/applicationsecuritygroups.go +++ b/services/network/mgmt/2018-07-01/network/applicationsecuritygroups.go @@ -226,6 +226,7 @@ func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resource result.asglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ApplicationSecurityGroupsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (resu result.asglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ApplicationSecurityGroupsClient) listAllNextResults(ctx context.Con result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/availableendpointservices.go b/services/network/mgmt/2018-07-01/network/availableendpointservices.go index 1bd1a1bdd5bb..0cc1c90b9988 100644 --- a/services/network/mgmt/2018-07-01/network/availableendpointservices.go +++ b/services/network/mgmt/2018-07-01/network/availableendpointservices.go @@ -73,6 +73,7 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableEndpointServicesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/azurefirewalls.go b/services/network/mgmt/2018-07-01/network/azurefirewalls.go index fbb5c6739378..5eb87e66da76 100644 --- a/services/network/mgmt/2018-07-01/network/azurefirewalls.go +++ b/services/network/mgmt/2018-07-01/network/azurefirewalls.go @@ -225,6 +225,7 @@ func (client AzureFirewallsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client AzureFirewallsClient) List(ctx context.Context, resourceGroupName s result.aflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "List", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +365,7 @@ func (client AzureFirewallsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client AzureFirewallsClient) ListAll(ctx context.Context) (result AzureFir result.aflr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "ListAll", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client AzureFirewallsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/bgpservicecommunities.go b/services/network/mgmt/2018-07-01/network/bgpservicecommunities.go index 754dbd8c68d5..c89d05042bac 100644 --- a/services/network/mgmt/2018-07-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2018-07-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/client.go b/services/network/mgmt/2018-07-01/network/client.go index 125b2dd05309..39606f82cca9 100644 --- a/services/network/mgmt/2018-07-01/network/client.go +++ b/services/network/mgmt/2018-07-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-07-01/network/connectionmonitors.go b/services/network/mgmt/2018-07-01/network/connectionmonitors.go index 5a8f8f48433d..c9c28bfbc5f9 100644 --- a/services/network/mgmt/2018-07-01/network/connectionmonitors.go +++ b/services/network/mgmt/2018-07-01/network/connectionmonitors.go @@ -241,6 +241,7 @@ func (client ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ConnectionMonitorsClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-07-01/network/ddosprotectionplans.go b/services/network/mgmt/2018-07-01/network/ddosprotectionplans.go index 6fe5e81358c0..28cdc9451c33 100644 --- a/services/network/mgmt/2018-07-01/network/ddosprotectionplans.go +++ b/services/network/mgmt/2018-07-01/network/ddosprotectionplans.go @@ -229,6 +229,7 @@ func (client DdosProtectionPlansClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DdosProtectionPlansClient) List(ctx context.Context) (result DdosPr result.dpplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client DdosProtectionPlansClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, result.dpplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client DdosProtectionPlansClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/defaultsecurityrules.go b/services/network/mgmt/2018-07-01/network/defaultsecurityrules.go index 38cebab5bb20..3a4feeb8bb26 100644 --- a/services/network/mgmt/2018-07-01/network/defaultsecurityrules.go +++ b/services/network/mgmt/2018-07-01/network/defaultsecurityrules.go @@ -74,6 +74,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2018-07-01/network/expressroutecircuitauthorizations.go index 898deb7bd60d..0ae6b129570e 100644 --- a/services/network/mgmt/2018-07-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2018-07-01/network/expressroutecircuitauthorizations.go @@ -233,6 +233,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2018-07-01/network/expressroutecircuitconnections.go index 3b39e0db0dea..c4e3a49db259 100644 --- a/services/network/mgmt/2018-07-01/network/expressroutecircuitconnections.go +++ b/services/network/mgmt/2018-07-01/network/expressroutecircuitconnections.go @@ -237,6 +237,7 @@ func (client ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-07-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2018-07-01/network/expressroutecircuitpeerings.go index 7757fb4a713f..a8bae1938e53 100644 --- a/services/network/mgmt/2018-07-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2018-07-01/network/expressroutecircuitpeerings.go @@ -243,6 +243,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +321,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/expressroutecircuits.go b/services/network/mgmt/2018-07-01/network/expressroutecircuits.go index 705489711b0a..1ade6f6c7dc6 100644 --- a/services/network/mgmt/2018-07-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2018-07-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2018-07-01/network/expressroutecrossconnectionpeerings.go index 8cb4f2218631..61dd54bbf16c 100644 --- a/services/network/mgmt/2018-07-01/network/expressroutecrossconnectionpeerings.go +++ b/services/network/mgmt/2018-07-01/network/expressroutecrossconnectionpeerings.go @@ -245,6 +245,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context result.erccpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "List", resp, "Failure responding to request") + return } if result.erccpl.hasNextLink() && result.erccpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) listNextResults(ctx cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/expressroutecrossconnections.go b/services/network/mgmt/2018-07-01/network/expressroutecrossconnections.go index 3cb51cdfd18e..522b96fabd0a 100644 --- a/services/network/mgmt/2018-07-01/network/expressroutecrossconnections.go +++ b/services/network/mgmt/2018-07-01/network/expressroutecrossconnections.go @@ -152,6 +152,7 @@ func (client ExpressRouteCrossConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ExpressRouteCrossConnectionsClient) List(ctx context.Context) (resu result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -287,6 +289,7 @@ func (client ExpressRouteCrossConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -418,6 +421,7 @@ func (client ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context result.ercclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +485,7 @@ func (client ExpressRouteCrossConnectionsClient) listByResourceGroupNextResults( result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2018-07-01/network/expressrouteserviceproviders.go index 81fafbf7256e..90c2a3ec81d4 100644 --- a/services/network/mgmt/2018-07-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2018-07-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2018-07-01/network/hubvirtualnetworkconnections.go index 4275ec9bbcde..51904917b403 100644 --- a/services/network/mgmt/2018-07-01/network/hubvirtualnetworkconnections.go +++ b/services/network/mgmt/2018-07-01/network/hubvirtualnetworkconnections.go @@ -74,6 +74,7 @@ func (client HubVirtualNetworkConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client HubVirtualNetworkConnectionsClient) List(ctx context.Context, resou result.lhvncr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "List", resp, "Failure responding to request") + return } if result.lhvncr.hasNextLink() && result.lhvncr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client HubVirtualNetworkConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/inboundnatrules.go b/services/network/mgmt/2018-07-01/network/inboundnatrules.go index c41eec6f4dcb..00cb7544ab0c 100644 --- a/services/network/mgmt/2018-07-01/network/inboundnatrules.go +++ b/services/network/mgmt/2018-07-01/network/inboundnatrules.go @@ -250,6 +250,7 @@ func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName result.inrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return } if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +396,7 @@ func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/interfaceipconfigurations.go b/services/network/mgmt/2018-07-01/network/interfaceipconfigurations.go index 39445cd68da1..0f13c433978d 100644 --- a/services/network/mgmt/2018-07-01/network/interfaceipconfigurations.go +++ b/services/network/mgmt/2018-07-01/network/interfaceipconfigurations.go @@ -74,6 +74,7 @@ func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resource result.iiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/interfaceloadbalancers.go b/services/network/mgmt/2018-07-01/network/interfaceloadbalancers.go index f5412de5d6ff..58be17465bcc 100644 --- a/services/network/mgmt/2018-07-01/network/interfaceloadbalancers.go +++ b/services/network/mgmt/2018-07-01/network/interfaceloadbalancers.go @@ -74,6 +74,7 @@ func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGro result.ilblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/interfacesgroup.go b/services/network/mgmt/2018-07-01/network/interfacesgroup.go index 6af9cf06657d..c3b46e5a8fa5 100644 --- a/services/network/mgmt/2018-07-01/network/interfacesgroup.go +++ b/services/network/mgmt/2018-07-01/network/interfacesgroup.go @@ -225,6 +225,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -383,6 +384,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx cont result, err = client.GetVirtualMachineScaleSetIPConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure responding to request") + return } return @@ -467,6 +469,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -547,6 +550,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -610,6 +614,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -659,6 +664,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -721,6 +727,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -852,6 +859,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx co result.iiclr, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -921,6 +929,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetIPConfigurationsNextRes result, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -973,6 +982,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1037,6 +1047,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1091,6 +1102,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1156,6 +1168,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2018-07-01/network/loadbalancerbackendaddresspools.go index 6201501e13b0..c9f850fd29da 100644 --- a/services/network/mgmt/2018-07-01/network/loadbalancerbackendaddresspools.go +++ b/services/network/mgmt/2018-07-01/network/loadbalancerbackendaddresspools.go @@ -74,6 +74,7 @@ func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, re result.lbbaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return } if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2018-07-01/network/loadbalancerfrontendipconfigurations.go index 567499fd59ff..9dad8b754ff9 100644 --- a/services/network/mgmt/2018-07-01/network/loadbalancerfrontendipconfigurations.go +++ b/services/network/mgmt/2018-07-01/network/loadbalancerfrontendipconfigurations.go @@ -75,6 +75,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Contex result.lbficlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2018-07-01/network/loadbalancerloadbalancingrules.go index 51d5cbc74347..d72e6a44a376 100644 --- a/services/network/mgmt/2018-07-01/network/loadbalancerloadbalancingrules.go +++ b/services/network/mgmt/2018-07-01/network/loadbalancerloadbalancingrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, res result.lblbrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return } if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2018-07-01/network/loadbalancernetworkinterfaces.go index f7577458d002..9160385f0ef6 100644 --- a/services/network/mgmt/2018-07-01/network/loadbalancernetworkinterfaces.go +++ b/services/network/mgmt/2018-07-01/network/loadbalancernetworkinterfaces.go @@ -74,6 +74,7 @@ func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, reso result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/loadbalancerprobes.go b/services/network/mgmt/2018-07-01/network/loadbalancerprobes.go index 30b4fcd3c5c4..6cf51515109b 100644 --- a/services/network/mgmt/2018-07-01/network/loadbalancerprobes.go +++ b/services/network/mgmt/2018-07-01/network/loadbalancerprobes.go @@ -74,6 +74,7 @@ func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupNa result.lbplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return } if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/loadbalancers.go b/services/network/mgmt/2018-07-01/network/loadbalancers.go index 6aae2ce54c81..fa13e285d142 100644 --- a/services/network/mgmt/2018-07-01/network/loadbalancers.go +++ b/services/network/mgmt/2018-07-01/network/loadbalancers.go @@ -225,6 +225,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/localnetworkgateways.go b/services/network/mgmt/2018-07-01/network/localnetworkgateways.go index 550a1f453896..20d511bef07f 100644 --- a/services/network/mgmt/2018-07-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2018-07-01/network/localnetworkgateways.go @@ -246,6 +246,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/operations.go b/services/network/mgmt/2018-07-01/network/operations.go index 21cd77c0ce1f..f8a8e1f30031 100644 --- a/services/network/mgmt/2018-07-01/network/operations.go +++ b/services/network/mgmt/2018-07-01/network/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/packetcaptures.go b/services/network/mgmt/2018-07-01/network/packetcaptures.go index 9e6fb6ffe2b8..1c8187691548 100644 --- a/services/network/mgmt/2018-07-01/network/packetcaptures.go +++ b/services/network/mgmt/2018-07-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-07-01/network/publicipaddresses.go b/services/network/mgmt/2018-07-01/network/publicipaddresses.go index 4307c0cd7362..da1f2677d12b 100644 --- a/services/network/mgmt/2018-07-01/network/publicipaddresses.go +++ b/services/network/mgmt/2018-07-01/network/publicipaddresses.go @@ -238,6 +238,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -403,6 +405,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +469,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +519,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -577,6 +582,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +636,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -694,6 +701,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +758,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -817,6 +826,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/publicipprefixes.go b/services/network/mgmt/2018-07-01/network/publicipprefixes.go index ec1fefc3ceda..870eda245358 100644 --- a/services/network/mgmt/2018-07-01/network/publicipprefixes.go +++ b/services/network/mgmt/2018-07-01/network/publicipprefixes.go @@ -226,6 +226,7 @@ func (client PublicIPPrefixesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client PublicIPPrefixesClient) List(ctx context.Context, resourceGroupName result.piplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "List", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client PublicIPPrefixesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client PublicIPPrefixesClient) ListAll(ctx context.Context) (result Public result.piplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "ListAll", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client PublicIPPrefixesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/routefilterrules.go b/services/network/mgmt/2018-07-01/network/routefilterrules.go index 20bff51c5aed..50d01fea7322 100644 --- a/services/network/mgmt/2018-07-01/network/routefilterrules.go +++ b/services/network/mgmt/2018-07-01/network/routefilterrules.go @@ -241,6 +241,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/routefilters.go b/services/network/mgmt/2018-07-01/network/routefilters.go index 577a03f6e285..e8f131e7d405 100644 --- a/services/network/mgmt/2018-07-01/network/routefilters.go +++ b/services/network/mgmt/2018-07-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/routes.go b/services/network/mgmt/2018-07-01/network/routes.go index f1909a4fb16d..f83945d37680 100644 --- a/services/network/mgmt/2018-07-01/network/routes.go +++ b/services/network/mgmt/2018-07-01/network/routes.go @@ -229,6 +229,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/routetables.go b/services/network/mgmt/2018-07-01/network/routetables.go index 07897e64eff1..f4daa75140a8 100644 --- a/services/network/mgmt/2018-07-01/network/routetables.go +++ b/services/network/mgmt/2018-07-01/network/routetables.go @@ -225,6 +225,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/securitygroups.go b/services/network/mgmt/2018-07-01/network/securitygroups.go index a3a187492c93..efdebf4e0003 100644 --- a/services/network/mgmt/2018-07-01/network/securitygroups.go +++ b/services/network/mgmt/2018-07-01/network/securitygroups.go @@ -225,6 +225,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/securityrules.go b/services/network/mgmt/2018-07-01/network/securityrules.go index 89ee4b56bb1a..2bc086435891 100644 --- a/services/network/mgmt/2018-07-01/network/securityrules.go +++ b/services/network/mgmt/2018-07-01/network/securityrules.go @@ -229,6 +229,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/serviceendpointpolicies.go b/services/network/mgmt/2018-07-01/network/serviceendpointpolicies.go index 5931d9283981..ea40b32c8afa 100644 --- a/services/network/mgmt/2018-07-01/network/serviceendpointpolicies.go +++ b/services/network/mgmt/2018-07-01/network/serviceendpointpolicies.go @@ -226,6 +226,7 @@ func (client ServiceEndpointPoliciesClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ServiceEndpointPoliciesClient) List(ctx context.Context) (result Se result.seplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "List", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ServiceEndpointPoliciesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Cont result.seplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client ServiceEndpointPoliciesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2018-07-01/network/serviceendpointpolicydefinitions.go index c94fdf866bfd..206c3ff4c617 100644 --- a/services/network/mgmt/2018-07-01/network/serviceendpointpolicydefinitions.go +++ b/services/network/mgmt/2018-07-01/network/serviceendpointpolicydefinitions.go @@ -231,6 +231,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) ListByResourceGroup(ctx con result.sepdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sepdlr.hasNextLink() && result.sepdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) listByResourceGroupNextResu result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/subnets.go b/services/network/mgmt/2018-07-01/network/subnets.go index a9c2f9fe08d9..b3b72f456091 100644 --- a/services/network/mgmt/2018-07-01/network/subnets.go +++ b/services/network/mgmt/2018-07-01/network/subnets.go @@ -230,6 +230,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/usages.go b/services/network/mgmt/2018-07-01/network/usages.go index 64671d3eb39e..ba3ce71ded5d 100644 --- a/services/network/mgmt/2018-07-01/network/usages.go +++ b/services/network/mgmt/2018-07-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/virtualhubs.go b/services/network/mgmt/2018-07-01/network/virtualhubs.go index 43fff6815b77..55101f5a3915 100644 --- a/services/network/mgmt/2018-07-01/network/virtualhubs.go +++ b/services/network/mgmt/2018-07-01/network/virtualhubs.go @@ -225,6 +225,7 @@ func (client VirtualHubsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualHubsClient) List(ctx context.Context) (result ListVirtualHub result.lvhr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "List", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualHubsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualHubsClient) ListByResourceGroup(ctx context.Context, resourc result.lvhr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualHubsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2018-07-01/network/virtualnetworkgatewayconnections.go index d2c877e66109..cec251d8b915 100644 --- a/services/network/mgmt/2018-07-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2018-07-01/network/virtualnetworkgatewayconnections.go @@ -239,6 +239,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/virtualnetworkgateways.go b/services/network/mgmt/2018-07-01/network/virtualnetworkgateways.go index 93693f8774c2..b50efa4d454c 100644 --- a/services/network/mgmt/2018-07-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2018-07-01/network/virtualnetworkgateways.go @@ -390,6 +390,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -851,6 +852,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -914,6 +916,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -966,6 +969,7 @@ func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, result.vnglcr, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return } if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1030,6 +1034,7 @@ func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx contex result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1248,6 +1253,7 @@ func (client VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Conte result, err = client.SupportedVpnDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", resp, "Failure responding to request") + return } return @@ -1403,6 +1409,7 @@ func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx cont result, err = client.VpnDeviceConfigurationScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-07-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2018-07-01/network/virtualnetworkpeerings.go index 1e6a0fd92630..8ca7b720eb39 100644 --- a/services/network/mgmt/2018-07-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2018-07-01/network/virtualnetworkpeerings.go @@ -231,6 +231,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/virtualnetworks.go b/services/network/mgmt/2018-07-01/network/virtualnetworks.go index 12c19844fc47..d16244d019e2 100644 --- a/services/network/mgmt/2018-07-01/network/virtualnetworks.go +++ b/services/network/mgmt/2018-07-01/network/virtualnetworks.go @@ -73,6 +73,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -382,6 +384,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -445,6 +448,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -494,6 +498,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -556,6 +561,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -608,6 +614,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -672,6 +679,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/virtualwans.go b/services/network/mgmt/2018-07-01/network/virtualwans.go index 923980f65be7..f7d51c3f5813 100644 --- a/services/network/mgmt/2018-07-01/network/virtualwans.go +++ b/services/network/mgmt/2018-07-01/network/virtualwans.go @@ -225,6 +225,7 @@ func (client VirtualWANsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWANsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualWANsClient) List(ctx context.Context) (result ListVirtualWAN result.lvwnr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWANsClient", "List", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualWANsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWANsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualWANsClient) ListByResourceGroup(ctx context.Context, resourc result.lvwnr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWANsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualWANsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWANsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/vpnconnections.go b/services/network/mgmt/2018-07-01/network/vpnconnections.go index 19a9fbf89937..345e7200f96a 100644 --- a/services/network/mgmt/2018-07-01/network/vpnconnections.go +++ b/services/network/mgmt/2018-07-01/network/vpnconnections.go @@ -231,6 +231,7 @@ func (client VpnConnectionsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VpnConnectionsClient) ListByVpnGateway(ctx context.Context, resourc result.lvcr, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "ListByVpnGateway", resp, "Failure responding to request") + return } if result.lvcr.hasNextLink() && result.lvcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VpnConnectionsClient) listByVpnGatewayNextResults(ctx context.Conte result, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "listByVpnGatewayNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/vpngateways.go b/services/network/mgmt/2018-07-01/network/vpngateways.go index 917052f18431..8354cf2483da 100644 --- a/services/network/mgmt/2018-07-01/network/vpngateways.go +++ b/services/network/mgmt/2018-07-01/network/vpngateways.go @@ -225,6 +225,7 @@ func (client VpnGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnGatewaysClient) List(ctx context.Context) (result ListVpnGateway result.lvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnGatewaysClient) ListByResourceGroup(ctx context.Context, resourc result.lvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnGatewaysClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/vpnsites.go b/services/network/mgmt/2018-07-01/network/vpnsites.go index ed5fe982959b..37488b634352 100644 --- a/services/network/mgmt/2018-07-01/network/vpnsites.go +++ b/services/network/mgmt/2018-07-01/network/vpnsites.go @@ -225,6 +225,7 @@ func (client VpnSitesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnSitesClient) List(ctx context.Context) (result ListVpnSitesResul result.lvsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "List", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnSitesClient) listNextResults(ctx context.Context, lastResults Li result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnSitesClient) ListByResourceGroup(ctx context.Context, resourceGr result.lvsr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnSitesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-07-01/network/watchers.go b/services/network/mgmt/2018-07-01/network/watchers.go index b740fcf6312d..bb9b2d75d217 100644 --- a/services/network/mgmt/2018-07-01/network/watchers.go +++ b/services/network/mgmt/2018-07-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -731,6 +733,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -1063,6 +1066,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -1134,6 +1138,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return @@ -1382,6 +1387,7 @@ func (client WatchersClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-08-01/network/applicationgateways.go b/services/network/mgmt/2018-08-01/network/applicationgateways.go index 10815a7140dd..9bd932dc1c92 100644 --- a/services/network/mgmt/2018-08-01/network/applicationgateways.go +++ b/services/network/mgmt/2018-08-01/network/applicationgateways.go @@ -333,6 +333,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -407,6 +408,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte result, err = client.GetSslPredefinedPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return } return @@ -481,6 +483,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -544,6 +547,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -593,6 +597,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -655,6 +660,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -703,6 +709,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont result, err = client.ListAvailableSslOptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return } return @@ -774,6 +781,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return } if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { err = result.NextWithContext(ctx) @@ -836,6 +844,7 @@ func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextRe result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + return } return } @@ -884,6 +893,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-08-01/network/applicationsecuritygroups.go b/services/network/mgmt/2018-08-01/network/applicationsecuritygroups.go index 3fd098ff2709..4b3710241fd2 100644 --- a/services/network/mgmt/2018-08-01/network/applicationsecuritygroups.go +++ b/services/network/mgmt/2018-08-01/network/applicationsecuritygroups.go @@ -226,6 +226,7 @@ func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resource result.asglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ApplicationSecurityGroupsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (resu result.asglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ApplicationSecurityGroupsClient) listAllNextResults(ctx context.Con result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/availabledelegations.go b/services/network/mgmt/2018-08-01/network/availabledelegations.go index acfe5cf3940d..c4fbf653b89e 100644 --- a/services/network/mgmt/2018-08-01/network/availabledelegations.go +++ b/services/network/mgmt/2018-08-01/network/availabledelegations.go @@ -73,6 +73,7 @@ func (client AvailableDelegationsClient) List(ctx context.Context, location stri result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableDelegationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/availableendpointservices.go b/services/network/mgmt/2018-08-01/network/availableendpointservices.go index 5a62fe5b4e5e..cc3c3e060953 100644 --- a/services/network/mgmt/2018-08-01/network/availableendpointservices.go +++ b/services/network/mgmt/2018-08-01/network/availableendpointservices.go @@ -73,6 +73,7 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableEndpointServicesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2018-08-01/network/availableresourcegroupdelegations.go index 457286b65d41..0b68e0cecd77 100644 --- a/services/network/mgmt/2018-08-01/network/availableresourcegroupdelegations.go +++ b/services/network/mgmt/2018-08-01/network/availableresourcegroupdelegations.go @@ -75,6 +75,7 @@ func (client AvailableResourceGroupDelegationsClient) List(ctx context.Context, result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client AvailableResourceGroupDelegationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2018-08-01/network/azurefirewallfqdntags.go index ca0fccd6867f..5c449232cea8 100644 --- a/services/network/mgmt/2018-08-01/network/azurefirewallfqdntags.go +++ b/services/network/mgmt/2018-08-01/network/azurefirewallfqdntags.go @@ -71,6 +71,7 @@ func (client AzureFirewallFqdnTagsClient) ListAll(ctx context.Context) (result A result.afftlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "ListAll", resp, "Failure responding to request") + return } if result.afftlr.hasNextLink() && result.afftlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client AzureFirewallFqdnTagsClient) listAllNextResults(ctx context.Context result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/azurefirewalls.go b/services/network/mgmt/2018-08-01/network/azurefirewalls.go index d36848e79f0f..008a0535a062 100644 --- a/services/network/mgmt/2018-08-01/network/azurefirewalls.go +++ b/services/network/mgmt/2018-08-01/network/azurefirewalls.go @@ -225,6 +225,7 @@ func (client AzureFirewallsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client AzureFirewallsClient) List(ctx context.Context, resourceGroupName s result.aflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "List", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +365,7 @@ func (client AzureFirewallsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client AzureFirewallsClient) ListAll(ctx context.Context) (result AzureFir result.aflr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "ListAll", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client AzureFirewallsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/bgpservicecommunities.go b/services/network/mgmt/2018-08-01/network/bgpservicecommunities.go index 0fc7605f417e..1b300ca46b32 100644 --- a/services/network/mgmt/2018-08-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2018-08-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/client.go b/services/network/mgmt/2018-08-01/network/client.go index 280b6ceebce2..167e29f2450a 100644 --- a/services/network/mgmt/2018-08-01/network/client.go +++ b/services/network/mgmt/2018-08-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client BaseClient) SupportedSecurityProviders(ctx context.Context, resourc result, err = client.SupportedSecurityProvidersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "SupportedSecurityProviders", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-08-01/network/connectionmonitors.go b/services/network/mgmt/2018-08-01/network/connectionmonitors.go index 67f8aef8b8bb..c754f3036b92 100644 --- a/services/network/mgmt/2018-08-01/network/connectionmonitors.go +++ b/services/network/mgmt/2018-08-01/network/connectionmonitors.go @@ -241,6 +241,7 @@ func (client ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ConnectionMonitorsClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-08-01/network/ddosprotectionplans.go b/services/network/mgmt/2018-08-01/network/ddosprotectionplans.go index e6f0db25e3a9..6cc5b7a218c3 100644 --- a/services/network/mgmt/2018-08-01/network/ddosprotectionplans.go +++ b/services/network/mgmt/2018-08-01/network/ddosprotectionplans.go @@ -229,6 +229,7 @@ func (client DdosProtectionPlansClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DdosProtectionPlansClient) List(ctx context.Context) (result DdosPr result.dpplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client DdosProtectionPlansClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, result.dpplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client DdosProtectionPlansClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/defaultsecurityrules.go b/services/network/mgmt/2018-08-01/network/defaultsecurityrules.go index ce9f2448bae5..731cfcec5663 100644 --- a/services/network/mgmt/2018-08-01/network/defaultsecurityrules.go +++ b/services/network/mgmt/2018-08-01/network/defaultsecurityrules.go @@ -74,6 +74,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2018-08-01/network/expressroutecircuitauthorizations.go index 5e2f5bcdc817..1937b4676ee9 100644 --- a/services/network/mgmt/2018-08-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2018-08-01/network/expressroutecircuitauthorizations.go @@ -233,6 +233,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2018-08-01/network/expressroutecircuitconnections.go index a11340859b59..720cd842fab2 100644 --- a/services/network/mgmt/2018-08-01/network/expressroutecircuitconnections.go +++ b/services/network/mgmt/2018-08-01/network/expressroutecircuitconnections.go @@ -237,6 +237,7 @@ func (client ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-08-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2018-08-01/network/expressroutecircuitpeerings.go index dc2a38229e38..5040f564d60c 100644 --- a/services/network/mgmt/2018-08-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2018-08-01/network/expressroutecircuitpeerings.go @@ -243,6 +243,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +321,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/expressroutecircuits.go b/services/network/mgmt/2018-08-01/network/expressroutecircuits.go index 6e765ccc1d2e..a408851fa8e5 100644 --- a/services/network/mgmt/2018-08-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2018-08-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/expressrouteconnections.go b/services/network/mgmt/2018-08-01/network/expressrouteconnections.go index c7157049f08a..631724196e1d 100644 --- a/services/network/mgmt/2018-08-01/network/expressrouteconnections.go +++ b/services/network/mgmt/2018-08-01/network/expressrouteconnections.go @@ -239,6 +239,7 @@ func (client ExpressRouteConnectionsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client ExpressRouteConnectionsClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-08-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2018-08-01/network/expressroutecrossconnectionpeerings.go index bb5cb891ebf9..11e8599bbdff 100644 --- a/services/network/mgmt/2018-08-01/network/expressroutecrossconnectionpeerings.go +++ b/services/network/mgmt/2018-08-01/network/expressroutecrossconnectionpeerings.go @@ -245,6 +245,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context result.erccpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "List", resp, "Failure responding to request") + return } if result.erccpl.hasNextLink() && result.erccpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) listNextResults(ctx cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/expressroutecrossconnections.go b/services/network/mgmt/2018-08-01/network/expressroutecrossconnections.go index fe13d1259ce1..76801660a7ba 100644 --- a/services/network/mgmt/2018-08-01/network/expressroutecrossconnections.go +++ b/services/network/mgmt/2018-08-01/network/expressroutecrossconnections.go @@ -152,6 +152,7 @@ func (client ExpressRouteCrossConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ExpressRouteCrossConnectionsClient) List(ctx context.Context) (resu result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -287,6 +289,7 @@ func (client ExpressRouteCrossConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -418,6 +421,7 @@ func (client ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context result.ercclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +485,7 @@ func (client ExpressRouteCrossConnectionsClient) listByResourceGroupNextResults( result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/expressroutegateways.go b/services/network/mgmt/2018-08-01/network/expressroutegateways.go index b37c6c86a2de..83292c84e1b4 100644 --- a/services/network/mgmt/2018-08-01/network/expressroutegateways.go +++ b/services/network/mgmt/2018-08-01/network/expressroutegateways.go @@ -235,6 +235,7 @@ func (client ExpressRouteGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client ExpressRouteGatewaysClient) ListByResourceGroup(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -380,6 +382,7 @@ func (client ExpressRouteGatewaysClient) ListBySubscription(ctx context.Context) result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-08-01/network/expressroutelinks.go b/services/network/mgmt/2018-08-01/network/expressroutelinks.go index 0ff496818d5d..28419e6f9366 100644 --- a/services/network/mgmt/2018-08-01/network/expressroutelinks.go +++ b/services/network/mgmt/2018-08-01/network/expressroutelinks.go @@ -74,6 +74,7 @@ func (client ExpressRouteLinksClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ExpressRouteLinksClient) List(ctx context.Context, resourceGroupNam result.erllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "List", resp, "Failure responding to request") + return } if result.erllr.hasNextLink() && result.erllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client ExpressRouteLinksClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/expressrouteports.go b/services/network/mgmt/2018-08-01/network/expressrouteports.go index 714ad445e14b..791df24f7629 100644 --- a/services/network/mgmt/2018-08-01/network/expressrouteports.go +++ b/services/network/mgmt/2018-08-01/network/expressrouteports.go @@ -226,6 +226,7 @@ func (client ExpressRoutePortsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client ExpressRoutePortsClient) List(ctx context.Context) (result ExpressR result.erplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "List", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -361,6 +363,7 @@ func (client ExpressRoutePortsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, r result.erplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ExpressRoutePortsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/expressrouteportslocations.go b/services/network/mgmt/2018-08-01/network/expressrouteportslocations.go index 3a2c11c456ec..53db7af9f693 100644 --- a/services/network/mgmt/2018-08-01/network/expressrouteportslocations.go +++ b/services/network/mgmt/2018-08-01/network/expressrouteportslocations.go @@ -73,6 +73,7 @@ func (client ExpressRoutePortsLocationsClient) Get(ctx context.Context, location result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client ExpressRoutePortsLocationsClient) List(ctx context.Context) (result result.erpllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "List", resp, "Failure responding to request") + return } if result.erpllr.hasNextLink() && result.erpllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -208,6 +210,7 @@ func (client ExpressRoutePortsLocationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2018-08-01/network/expressrouteserviceproviders.go index 07e88bc7bb75..b2520088cb30 100644 --- a/services/network/mgmt/2018-08-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2018-08-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2018-08-01/network/hubvirtualnetworkconnections.go index d6c67102ba88..e3f6b8103614 100644 --- a/services/network/mgmt/2018-08-01/network/hubvirtualnetworkconnections.go +++ b/services/network/mgmt/2018-08-01/network/hubvirtualnetworkconnections.go @@ -74,6 +74,7 @@ func (client HubVirtualNetworkConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client HubVirtualNetworkConnectionsClient) List(ctx context.Context, resou result.lhvncr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "List", resp, "Failure responding to request") + return } if result.lhvncr.hasNextLink() && result.lhvncr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client HubVirtualNetworkConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/inboundnatrules.go b/services/network/mgmt/2018-08-01/network/inboundnatrules.go index f4a1431cd974..d631ab09371b 100644 --- a/services/network/mgmt/2018-08-01/network/inboundnatrules.go +++ b/services/network/mgmt/2018-08-01/network/inboundnatrules.go @@ -250,6 +250,7 @@ func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName result.inrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return } if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +396,7 @@ func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/interfaceendpoints.go b/services/network/mgmt/2018-08-01/network/interfaceendpoints.go index dc97357f43c4..7091bca06dab 100644 --- a/services/network/mgmt/2018-08-01/network/interfaceendpoints.go +++ b/services/network/mgmt/2018-08-01/network/interfaceendpoints.go @@ -226,6 +226,7 @@ func (client InterfaceEndpointsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client InterfaceEndpointsClient) List(ctx context.Context, resourceGroupNa result.ielr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsClient", "List", resp, "Failure responding to request") + return } if result.ielr.hasNextLink() && result.ielr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client InterfaceEndpointsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client InterfaceEndpointsClient) ListBySubscription(ctx context.Context) ( result.ielr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ielr.hasNextLink() && result.ielr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client InterfaceEndpointsClient) listBySubscriptionNextResults(ctx context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/interfaceipconfigurations.go b/services/network/mgmt/2018-08-01/network/interfaceipconfigurations.go index 31d1c9ea6ad3..9d77a0ad041c 100644 --- a/services/network/mgmt/2018-08-01/network/interfaceipconfigurations.go +++ b/services/network/mgmt/2018-08-01/network/interfaceipconfigurations.go @@ -74,6 +74,7 @@ func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resource result.iiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/interfaceloadbalancers.go b/services/network/mgmt/2018-08-01/network/interfaceloadbalancers.go index 805f1022878e..fe185833065b 100644 --- a/services/network/mgmt/2018-08-01/network/interfaceloadbalancers.go +++ b/services/network/mgmt/2018-08-01/network/interfaceloadbalancers.go @@ -74,6 +74,7 @@ func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGro result.ilblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/interfacesgroup.go b/services/network/mgmt/2018-08-01/network/interfacesgroup.go index 71df8b1a1d66..cb50aa2380a7 100644 --- a/services/network/mgmt/2018-08-01/network/interfacesgroup.go +++ b/services/network/mgmt/2018-08-01/network/interfacesgroup.go @@ -225,6 +225,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -383,6 +384,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx cont result, err = client.GetVirtualMachineScaleSetIPConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure responding to request") + return } return @@ -467,6 +469,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -547,6 +550,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -610,6 +614,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -659,6 +664,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -721,6 +727,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -852,6 +859,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx co result.iiclr, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -921,6 +929,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetIPConfigurationsNextRes result, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -973,6 +982,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1037,6 +1047,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1091,6 +1102,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1156,6 +1168,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/interfacetapconfigurations.go b/services/network/mgmt/2018-08-01/network/interfacetapconfigurations.go index aa1a9cb16453..889426c309b4 100644 --- a/services/network/mgmt/2018-08-01/network/interfacetapconfigurations.go +++ b/services/network/mgmt/2018-08-01/network/interfacetapconfigurations.go @@ -267,6 +267,7 @@ func (client InterfaceTapConfigurationsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +345,7 @@ func (client InterfaceTapConfigurationsClient) List(ctx context.Context, resourc result.itclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.itclr.hasNextLink() && result.itclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -408,6 +410,7 @@ func (client InterfaceTapConfigurationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2018-08-01/network/loadbalancerbackendaddresspools.go index 79961a184a13..8fbd70cd5262 100644 --- a/services/network/mgmt/2018-08-01/network/loadbalancerbackendaddresspools.go +++ b/services/network/mgmt/2018-08-01/network/loadbalancerbackendaddresspools.go @@ -74,6 +74,7 @@ func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, re result.lbbaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return } if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2018-08-01/network/loadbalancerfrontendipconfigurations.go index 9c252c0df2bd..8bef5e90b2f7 100644 --- a/services/network/mgmt/2018-08-01/network/loadbalancerfrontendipconfigurations.go +++ b/services/network/mgmt/2018-08-01/network/loadbalancerfrontendipconfigurations.go @@ -75,6 +75,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Contex result.lbficlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2018-08-01/network/loadbalancerloadbalancingrules.go index 1f9187905138..aa854ebd6083 100644 --- a/services/network/mgmt/2018-08-01/network/loadbalancerloadbalancingrules.go +++ b/services/network/mgmt/2018-08-01/network/loadbalancerloadbalancingrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, res result.lblbrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return } if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2018-08-01/network/loadbalancernetworkinterfaces.go index 7c53c42afa10..a3cb1d59a5ec 100644 --- a/services/network/mgmt/2018-08-01/network/loadbalancernetworkinterfaces.go +++ b/services/network/mgmt/2018-08-01/network/loadbalancernetworkinterfaces.go @@ -74,6 +74,7 @@ func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, reso result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2018-08-01/network/loadbalanceroutboundrules.go index 0843883597de..47c0c6182b73 100644 --- a/services/network/mgmt/2018-08-01/network/loadbalanceroutboundrules.go +++ b/services/network/mgmt/2018-08-01/network/loadbalanceroutboundrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerOutboundRulesClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerOutboundRulesClient) List(ctx context.Context, resource result.lborlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "List", resp, "Failure responding to request") + return } if result.lborlr.hasNextLink() && result.lborlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerOutboundRulesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/loadbalancerprobes.go b/services/network/mgmt/2018-08-01/network/loadbalancerprobes.go index d03995bd8c11..8a46c51faf6d 100644 --- a/services/network/mgmt/2018-08-01/network/loadbalancerprobes.go +++ b/services/network/mgmt/2018-08-01/network/loadbalancerprobes.go @@ -74,6 +74,7 @@ func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupNa result.lbplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return } if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/loadbalancers.go b/services/network/mgmt/2018-08-01/network/loadbalancers.go index ed832e162690..9b3db3c5d2d5 100644 --- a/services/network/mgmt/2018-08-01/network/loadbalancers.go +++ b/services/network/mgmt/2018-08-01/network/loadbalancers.go @@ -225,6 +225,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/localnetworkgateways.go b/services/network/mgmt/2018-08-01/network/localnetworkgateways.go index 0732e6c7a68f..1f40fc137aad 100644 --- a/services/network/mgmt/2018-08-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2018-08-01/network/localnetworkgateways.go @@ -246,6 +246,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/operations.go b/services/network/mgmt/2018-08-01/network/operations.go index 7029dc82837c..6f23740eebaa 100644 --- a/services/network/mgmt/2018-08-01/network/operations.go +++ b/services/network/mgmt/2018-08-01/network/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/p2svpngateways.go b/services/network/mgmt/2018-08-01/network/p2svpngateways.go index ef0896d4948d..b0359a71d29d 100644 --- a/services/network/mgmt/2018-08-01/network/p2svpngateways.go +++ b/services/network/mgmt/2018-08-01/network/p2svpngateways.go @@ -303,6 +303,7 @@ func (client P2sVpnGatewaysClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -376,6 +377,7 @@ func (client P2sVpnGatewaysClient) List(ctx context.Context) (result ListP2SVpnG result.lpvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -438,6 +440,7 @@ func (client P2sVpnGatewaysClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -489,6 +492,7 @@ func (client P2sVpnGatewaysClient) ListByResourceGroup(ctx context.Context, reso result.lpvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -552,6 +556,7 @@ func (client P2sVpnGatewaysClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/p2svpnserverconfigurations.go b/services/network/mgmt/2018-08-01/network/p2svpnserverconfigurations.go index 9e6a14537b76..3dba53174e7f 100644 --- a/services/network/mgmt/2018-08-01/network/p2svpnserverconfigurations.go +++ b/services/network/mgmt/2018-08-01/network/p2svpnserverconfigurations.go @@ -232,6 +232,7 @@ func (client P2sVpnServerConfigurationsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnServerConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client P2sVpnServerConfigurationsClient) ListByVirtualWan(ctx context.Cont result.lpvscr, err = client.ListByVirtualWanResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnServerConfigurationsClient", "ListByVirtualWan", resp, "Failure responding to request") + return } if result.lpvscr.hasNextLink() && result.lpvscr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client P2sVpnServerConfigurationsClient) listByVirtualWanNextResults(ctx c result, err = client.ListByVirtualWanResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnServerConfigurationsClient", "listByVirtualWanNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/packetcaptures.go b/services/network/mgmt/2018-08-01/network/packetcaptures.go index 38c428239a0b..98da5010a0ba 100644 --- a/services/network/mgmt/2018-08-01/network/packetcaptures.go +++ b/services/network/mgmt/2018-08-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-08-01/network/profiles.go b/services/network/mgmt/2018-08-01/network/profiles.go index e3859a94a4c3..6eedc15c711a 100644 --- a/services/network/mgmt/2018-08-01/network/profiles.go +++ b/services/network/mgmt/2018-08-01/network/profiles.go @@ -73,6 +73,7 @@ func (client ProfilesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +305,7 @@ func (client ProfilesClient) List(ctx context.Context, resourceGroupName string) result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +369,7 @@ func (client ProfilesClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +419,7 @@ func (client ProfilesClient) ListAll(ctx context.Context) (result ProfileListRes result.plr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "ListAll", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +482,7 @@ func (client ProfilesClient) listAllNextResults(ctx context.Context, lastResults result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -529,6 +535,7 @@ func (client ProfilesClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-08-01/network/publicipaddresses.go b/services/network/mgmt/2018-08-01/network/publicipaddresses.go index cceb06519d78..088d9a584de6 100644 --- a/services/network/mgmt/2018-08-01/network/publicipaddresses.go +++ b/services/network/mgmt/2018-08-01/network/publicipaddresses.go @@ -238,6 +238,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -403,6 +405,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +469,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +519,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -577,6 +582,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +636,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -694,6 +701,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +758,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -817,6 +826,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/publicipprefixes.go b/services/network/mgmt/2018-08-01/network/publicipprefixes.go index 867d78ecfa95..f7928b0285ef 100644 --- a/services/network/mgmt/2018-08-01/network/publicipprefixes.go +++ b/services/network/mgmt/2018-08-01/network/publicipprefixes.go @@ -226,6 +226,7 @@ func (client PublicIPPrefixesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client PublicIPPrefixesClient) List(ctx context.Context, resourceGroupName result.piplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "List", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client PublicIPPrefixesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client PublicIPPrefixesClient) ListAll(ctx context.Context) (result Public result.piplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "ListAll", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client PublicIPPrefixesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/routefilterrules.go b/services/network/mgmt/2018-08-01/network/routefilterrules.go index 2a0be37bbda4..72dd04dc049f 100644 --- a/services/network/mgmt/2018-08-01/network/routefilterrules.go +++ b/services/network/mgmt/2018-08-01/network/routefilterrules.go @@ -241,6 +241,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/routefilters.go b/services/network/mgmt/2018-08-01/network/routefilters.go index 67a8b6263e36..376f1d465b75 100644 --- a/services/network/mgmt/2018-08-01/network/routefilters.go +++ b/services/network/mgmt/2018-08-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/routes.go b/services/network/mgmt/2018-08-01/network/routes.go index 16da6be689f4..2a5497d63114 100644 --- a/services/network/mgmt/2018-08-01/network/routes.go +++ b/services/network/mgmt/2018-08-01/network/routes.go @@ -229,6 +229,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/routetables.go b/services/network/mgmt/2018-08-01/network/routetables.go index 9528671da0e4..fbce3f1debea 100644 --- a/services/network/mgmt/2018-08-01/network/routetables.go +++ b/services/network/mgmt/2018-08-01/network/routetables.go @@ -225,6 +225,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/securitygroups.go b/services/network/mgmt/2018-08-01/network/securitygroups.go index e75ca6c0070b..e4bb4c6fb275 100644 --- a/services/network/mgmt/2018-08-01/network/securitygroups.go +++ b/services/network/mgmt/2018-08-01/network/securitygroups.go @@ -225,6 +225,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/securityrules.go b/services/network/mgmt/2018-08-01/network/securityrules.go index df8188feedfe..8583843d9624 100644 --- a/services/network/mgmt/2018-08-01/network/securityrules.go +++ b/services/network/mgmt/2018-08-01/network/securityrules.go @@ -229,6 +229,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/serviceendpointpolicies.go b/services/network/mgmt/2018-08-01/network/serviceendpointpolicies.go index 950b9a6423ba..952cd4daa821 100644 --- a/services/network/mgmt/2018-08-01/network/serviceendpointpolicies.go +++ b/services/network/mgmt/2018-08-01/network/serviceendpointpolicies.go @@ -226,6 +226,7 @@ func (client ServiceEndpointPoliciesClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ServiceEndpointPoliciesClient) List(ctx context.Context) (result Se result.seplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "List", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ServiceEndpointPoliciesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Cont result.seplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client ServiceEndpointPoliciesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2018-08-01/network/serviceendpointpolicydefinitions.go index 2d4c26e3ea8e..54077a77702d 100644 --- a/services/network/mgmt/2018-08-01/network/serviceendpointpolicydefinitions.go +++ b/services/network/mgmt/2018-08-01/network/serviceendpointpolicydefinitions.go @@ -231,6 +231,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) ListByResourceGroup(ctx con result.sepdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sepdlr.hasNextLink() && result.sepdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) listByResourceGroupNextResu result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/subnets.go b/services/network/mgmt/2018-08-01/network/subnets.go index e011d8bcb1e4..cb538005b277 100644 --- a/services/network/mgmt/2018-08-01/network/subnets.go +++ b/services/network/mgmt/2018-08-01/network/subnets.go @@ -230,6 +230,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/usages.go b/services/network/mgmt/2018-08-01/network/usages.go index 6a4f8006627a..d030be414b1c 100644 --- a/services/network/mgmt/2018-08-01/network/usages.go +++ b/services/network/mgmt/2018-08-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/virtualhubs.go b/services/network/mgmt/2018-08-01/network/virtualhubs.go index f472dfaf6497..d4f2064cdd36 100644 --- a/services/network/mgmt/2018-08-01/network/virtualhubs.go +++ b/services/network/mgmt/2018-08-01/network/virtualhubs.go @@ -225,6 +225,7 @@ func (client VirtualHubsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualHubsClient) List(ctx context.Context) (result ListVirtualHub result.lvhr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "List", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualHubsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualHubsClient) ListByResourceGroup(ctx context.Context, resourc result.lvhr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualHubsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2018-08-01/network/virtualnetworkgatewayconnections.go index 11499f417292..f48b863bb95e 100644 --- a/services/network/mgmt/2018-08-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2018-08-01/network/virtualnetworkgatewayconnections.go @@ -239,6 +239,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/virtualnetworkgateways.go b/services/network/mgmt/2018-08-01/network/virtualnetworkgateways.go index d296adb7fa52..c2415fa16e44 100644 --- a/services/network/mgmt/2018-08-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2018-08-01/network/virtualnetworkgateways.go @@ -390,6 +390,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -851,6 +852,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -914,6 +916,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -966,6 +969,7 @@ func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, result.vnglcr, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return } if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1030,6 +1034,7 @@ func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx contex result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1323,6 +1328,7 @@ func (client VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Conte result, err = client.SupportedVpnDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", resp, "Failure responding to request") + return } return @@ -1478,6 +1484,7 @@ func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx cont result, err = client.VpnDeviceConfigurationScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-08-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2018-08-01/network/virtualnetworkpeerings.go index d1f8fca9eca3..ac17450f9d42 100644 --- a/services/network/mgmt/2018-08-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2018-08-01/network/virtualnetworkpeerings.go @@ -231,6 +231,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/virtualnetworks.go b/services/network/mgmt/2018-08-01/network/virtualnetworks.go index c0f93238790a..af0a97d087f3 100644 --- a/services/network/mgmt/2018-08-01/network/virtualnetworks.go +++ b/services/network/mgmt/2018-08-01/network/virtualnetworks.go @@ -73,6 +73,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -380,6 +382,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -443,6 +446,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -492,6 +496,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -554,6 +559,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -606,6 +612,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -670,6 +677,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/virtualnetworktaps.go b/services/network/mgmt/2018-08-01/network/virtualnetworktaps.go index f8b16f2243e7..baeafc138af2 100644 --- a/services/network/mgmt/2018-08-01/network/virtualnetworktaps.go +++ b/services/network/mgmt/2018-08-01/network/virtualnetworktaps.go @@ -257,6 +257,7 @@ func (client VirtualNetworkTapsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client VirtualNetworkTapsClient) ListAll(ctx context.Context) (result Virt result.vntlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListAll", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -392,6 +394,7 @@ func (client VirtualNetworkTapsClient) listAllNextResults(ctx context.Context, l result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +446,7 @@ func (client VirtualNetworkTapsClient) ListByResourceGroup(ctx context.Context, result.vntlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -506,6 +510,7 @@ func (client VirtualNetworkTapsClient) listByResourceGroupNextResults(ctx contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/virtualwans.go b/services/network/mgmt/2018-08-01/network/virtualwans.go index a11e35357b21..fd7ceb4c9f16 100644 --- a/services/network/mgmt/2018-08-01/network/virtualwans.go +++ b/services/network/mgmt/2018-08-01/network/virtualwans.go @@ -225,6 +225,7 @@ func (client VirtualWansClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualWansClient) List(ctx context.Context) (result ListVirtualWAN result.lvwnr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "List", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualWansClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualWansClient) ListByResourceGroup(ctx context.Context, resourc result.lvwnr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualWansClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/vpnconnections.go b/services/network/mgmt/2018-08-01/network/vpnconnections.go index fc3c27ebeb8a..e83b547dd674 100644 --- a/services/network/mgmt/2018-08-01/network/vpnconnections.go +++ b/services/network/mgmt/2018-08-01/network/vpnconnections.go @@ -231,6 +231,7 @@ func (client VpnConnectionsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VpnConnectionsClient) ListByVpnGateway(ctx context.Context, resourc result.lvcr, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "ListByVpnGateway", resp, "Failure responding to request") + return } if result.lvcr.hasNextLink() && result.lvcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VpnConnectionsClient) listByVpnGatewayNextResults(ctx context.Conte result, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "listByVpnGatewayNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/vpngateways.go b/services/network/mgmt/2018-08-01/network/vpngateways.go index 00dbc07ce200..8dbdfca190a2 100644 --- a/services/network/mgmt/2018-08-01/network/vpngateways.go +++ b/services/network/mgmt/2018-08-01/network/vpngateways.go @@ -225,6 +225,7 @@ func (client VpnGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnGatewaysClient) List(ctx context.Context) (result ListVpnGateway result.lvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnGatewaysClient) ListByResourceGroup(ctx context.Context, resourc result.lvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnGatewaysClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/vpnsites.go b/services/network/mgmt/2018-08-01/network/vpnsites.go index f3e88a6e18f1..c3652b4655a3 100644 --- a/services/network/mgmt/2018-08-01/network/vpnsites.go +++ b/services/network/mgmt/2018-08-01/network/vpnsites.go @@ -225,6 +225,7 @@ func (client VpnSitesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnSitesClient) List(ctx context.Context) (result ListVpnSitesResul result.lvsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "List", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnSitesClient) listNextResults(ctx context.Context, lastResults Li result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnSitesClient) ListByResourceGroup(ctx context.Context, resourceGr result.lvsr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnSitesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-08-01/network/watchers.go b/services/network/mgmt/2018-08-01/network/watchers.go index 82e2e9a8028b..717767c708a9 100644 --- a/services/network/mgmt/2018-08-01/network/watchers.go +++ b/services/network/mgmt/2018-08-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -731,6 +733,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -1063,6 +1066,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -1134,6 +1138,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return @@ -1382,6 +1387,7 @@ func (client WatchersClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-10-01/network/applicationgateways.go b/services/network/mgmt/2018-10-01/network/applicationgateways.go index 0f8b8591abcb..c747ffa30d5e 100644 --- a/services/network/mgmt/2018-10-01/network/applicationgateways.go +++ b/services/network/mgmt/2018-10-01/network/applicationgateways.go @@ -333,6 +333,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -407,6 +408,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte result, err = client.GetSslPredefinedPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return } return @@ -481,6 +483,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -544,6 +547,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -593,6 +597,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -655,6 +660,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -703,6 +709,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont result, err = client.ListAvailableSslOptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return } return @@ -774,6 +781,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return } if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { err = result.NextWithContext(ctx) @@ -836,6 +844,7 @@ func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextRe result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + return } return } @@ -884,6 +893,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-10-01/network/applicationsecuritygroups.go b/services/network/mgmt/2018-10-01/network/applicationsecuritygroups.go index e352b0333016..83052530759d 100644 --- a/services/network/mgmt/2018-10-01/network/applicationsecuritygroups.go +++ b/services/network/mgmt/2018-10-01/network/applicationsecuritygroups.go @@ -226,6 +226,7 @@ func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resource result.asglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ApplicationSecurityGroupsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (resu result.asglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ApplicationSecurityGroupsClient) listAllNextResults(ctx context.Con result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/availabledelegations.go b/services/network/mgmt/2018-10-01/network/availabledelegations.go index d8515906e3c2..d388f1ece9f9 100644 --- a/services/network/mgmt/2018-10-01/network/availabledelegations.go +++ b/services/network/mgmt/2018-10-01/network/availabledelegations.go @@ -73,6 +73,7 @@ func (client AvailableDelegationsClient) List(ctx context.Context, location stri result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableDelegationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/availableendpointservices.go b/services/network/mgmt/2018-10-01/network/availableendpointservices.go index 89935a15c2d0..1d95c527862e 100644 --- a/services/network/mgmt/2018-10-01/network/availableendpointservices.go +++ b/services/network/mgmt/2018-10-01/network/availableendpointservices.go @@ -73,6 +73,7 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableEndpointServicesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2018-10-01/network/availableresourcegroupdelegations.go index 3b335cfc2e11..bdc77825b545 100644 --- a/services/network/mgmt/2018-10-01/network/availableresourcegroupdelegations.go +++ b/services/network/mgmt/2018-10-01/network/availableresourcegroupdelegations.go @@ -75,6 +75,7 @@ func (client AvailableResourceGroupDelegationsClient) List(ctx context.Context, result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client AvailableResourceGroupDelegationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2018-10-01/network/azurefirewallfqdntags.go index cf8376a86b22..695446135a57 100644 --- a/services/network/mgmt/2018-10-01/network/azurefirewallfqdntags.go +++ b/services/network/mgmt/2018-10-01/network/azurefirewallfqdntags.go @@ -71,6 +71,7 @@ func (client AzureFirewallFqdnTagsClient) ListAll(ctx context.Context) (result A result.afftlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "ListAll", resp, "Failure responding to request") + return } if result.afftlr.hasNextLink() && result.afftlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client AzureFirewallFqdnTagsClient) listAllNextResults(ctx context.Context result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/azurefirewalls.go b/services/network/mgmt/2018-10-01/network/azurefirewalls.go index ac188b791673..6f457ce7c473 100644 --- a/services/network/mgmt/2018-10-01/network/azurefirewalls.go +++ b/services/network/mgmt/2018-10-01/network/azurefirewalls.go @@ -225,6 +225,7 @@ func (client AzureFirewallsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client AzureFirewallsClient) List(ctx context.Context, resourceGroupName s result.aflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "List", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +365,7 @@ func (client AzureFirewallsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client AzureFirewallsClient) ListAll(ctx context.Context) (result AzureFir result.aflr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "ListAll", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client AzureFirewallsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/bgpservicecommunities.go b/services/network/mgmt/2018-10-01/network/bgpservicecommunities.go index f2e5fe644958..d5d708062fff 100644 --- a/services/network/mgmt/2018-10-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2018-10-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/client.go b/services/network/mgmt/2018-10-01/network/client.go index 1ed3c1df70e9..04357463a5f0 100644 --- a/services/network/mgmt/2018-10-01/network/client.go +++ b/services/network/mgmt/2018-10-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client BaseClient) SupportedSecurityProviders(ctx context.Context, resourc result, err = client.SupportedSecurityProvidersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "SupportedSecurityProviders", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-10-01/network/connectionmonitors.go b/services/network/mgmt/2018-10-01/network/connectionmonitors.go index 953ad79b3511..e07868e25226 100644 --- a/services/network/mgmt/2018-10-01/network/connectionmonitors.go +++ b/services/network/mgmt/2018-10-01/network/connectionmonitors.go @@ -241,6 +241,7 @@ func (client ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ConnectionMonitorsClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-10-01/network/ddosprotectionplans.go b/services/network/mgmt/2018-10-01/network/ddosprotectionplans.go index 67db4fcf853e..69ed83d043f4 100644 --- a/services/network/mgmt/2018-10-01/network/ddosprotectionplans.go +++ b/services/network/mgmt/2018-10-01/network/ddosprotectionplans.go @@ -229,6 +229,7 @@ func (client DdosProtectionPlansClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DdosProtectionPlansClient) List(ctx context.Context) (result DdosPr result.dpplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client DdosProtectionPlansClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, result.dpplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client DdosProtectionPlansClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/defaultsecurityrules.go b/services/network/mgmt/2018-10-01/network/defaultsecurityrules.go index 20797083b9c3..9a20916355c9 100644 --- a/services/network/mgmt/2018-10-01/network/defaultsecurityrules.go +++ b/services/network/mgmt/2018-10-01/network/defaultsecurityrules.go @@ -74,6 +74,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2018-10-01/network/expressroutecircuitauthorizations.go index 05c30e7a8850..08d1b0ae459f 100644 --- a/services/network/mgmt/2018-10-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2018-10-01/network/expressroutecircuitauthorizations.go @@ -233,6 +233,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2018-10-01/network/expressroutecircuitconnections.go index a58de79babff..0693ef1dd070 100644 --- a/services/network/mgmt/2018-10-01/network/expressroutecircuitconnections.go +++ b/services/network/mgmt/2018-10-01/network/expressroutecircuitconnections.go @@ -237,6 +237,7 @@ func (client ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client ExpressRouteCircuitConnectionsClient) List(ctx context.Context, res result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client ExpressRouteCircuitConnectionsClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2018-10-01/network/expressroutecircuitpeerings.go index e69c2c684ef1..343817367436 100644 --- a/services/network/mgmt/2018-10-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2018-10-01/network/expressroutecircuitpeerings.go @@ -243,6 +243,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +321,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/expressroutecircuits.go b/services/network/mgmt/2018-10-01/network/expressroutecircuits.go index 7b3e86339ed9..d40fc2327894 100644 --- a/services/network/mgmt/2018-10-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2018-10-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/expressrouteconnections.go b/services/network/mgmt/2018-10-01/network/expressrouteconnections.go index b339a40ac623..17ccd95ee79d 100644 --- a/services/network/mgmt/2018-10-01/network/expressrouteconnections.go +++ b/services/network/mgmt/2018-10-01/network/expressrouteconnections.go @@ -239,6 +239,7 @@ func (client ExpressRouteConnectionsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client ExpressRouteConnectionsClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-10-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2018-10-01/network/expressroutecrossconnectionpeerings.go index 1028b4987241..3f29d8b9d08d 100644 --- a/services/network/mgmt/2018-10-01/network/expressroutecrossconnectionpeerings.go +++ b/services/network/mgmt/2018-10-01/network/expressroutecrossconnectionpeerings.go @@ -245,6 +245,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context result.erccpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "List", resp, "Failure responding to request") + return } if result.erccpl.hasNextLink() && result.erccpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) listNextResults(ctx cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/expressroutecrossconnections.go b/services/network/mgmt/2018-10-01/network/expressroutecrossconnections.go index 8886adfdd0f9..f4ee3ea20603 100644 --- a/services/network/mgmt/2018-10-01/network/expressroutecrossconnections.go +++ b/services/network/mgmt/2018-10-01/network/expressroutecrossconnections.go @@ -152,6 +152,7 @@ func (client ExpressRouteCrossConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ExpressRouteCrossConnectionsClient) List(ctx context.Context) (resu result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -287,6 +289,7 @@ func (client ExpressRouteCrossConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -418,6 +421,7 @@ func (client ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context result.ercclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +485,7 @@ func (client ExpressRouteCrossConnectionsClient) listByResourceGroupNextResults( result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/expressroutegateways.go b/services/network/mgmt/2018-10-01/network/expressroutegateways.go index 549714fc4b50..a50314170769 100644 --- a/services/network/mgmt/2018-10-01/network/expressroutegateways.go +++ b/services/network/mgmt/2018-10-01/network/expressroutegateways.go @@ -235,6 +235,7 @@ func (client ExpressRouteGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client ExpressRouteGatewaysClient) ListByResourceGroup(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -380,6 +382,7 @@ func (client ExpressRouteGatewaysClient) ListBySubscription(ctx context.Context) result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-10-01/network/expressroutelinks.go b/services/network/mgmt/2018-10-01/network/expressroutelinks.go index dbd8c2bce69f..d9e3ac821744 100644 --- a/services/network/mgmt/2018-10-01/network/expressroutelinks.go +++ b/services/network/mgmt/2018-10-01/network/expressroutelinks.go @@ -74,6 +74,7 @@ func (client ExpressRouteLinksClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ExpressRouteLinksClient) List(ctx context.Context, resourceGroupNam result.erllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "List", resp, "Failure responding to request") + return } if result.erllr.hasNextLink() && result.erllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client ExpressRouteLinksClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/expressrouteports.go b/services/network/mgmt/2018-10-01/network/expressrouteports.go index badff237acf5..4196cf9a2037 100644 --- a/services/network/mgmt/2018-10-01/network/expressrouteports.go +++ b/services/network/mgmt/2018-10-01/network/expressrouteports.go @@ -226,6 +226,7 @@ func (client ExpressRoutePortsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client ExpressRoutePortsClient) List(ctx context.Context) (result ExpressR result.erplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "List", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -361,6 +363,7 @@ func (client ExpressRoutePortsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, r result.erplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ExpressRoutePortsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/expressrouteportslocations.go b/services/network/mgmt/2018-10-01/network/expressrouteportslocations.go index a6e6eb5945c5..9742360f193b 100644 --- a/services/network/mgmt/2018-10-01/network/expressrouteportslocations.go +++ b/services/network/mgmt/2018-10-01/network/expressrouteportslocations.go @@ -73,6 +73,7 @@ func (client ExpressRoutePortsLocationsClient) Get(ctx context.Context, location result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client ExpressRoutePortsLocationsClient) List(ctx context.Context) (result result.erpllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "List", resp, "Failure responding to request") + return } if result.erpllr.hasNextLink() && result.erpllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -208,6 +210,7 @@ func (client ExpressRoutePortsLocationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2018-10-01/network/expressrouteserviceproviders.go index 3cce9796e674..beb65bd21b0c 100644 --- a/services/network/mgmt/2018-10-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2018-10-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2018-10-01/network/hubvirtualnetworkconnections.go index 9eeb574420a8..cbdb7bcbb5cb 100644 --- a/services/network/mgmt/2018-10-01/network/hubvirtualnetworkconnections.go +++ b/services/network/mgmt/2018-10-01/network/hubvirtualnetworkconnections.go @@ -74,6 +74,7 @@ func (client HubVirtualNetworkConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client HubVirtualNetworkConnectionsClient) List(ctx context.Context, resou result.lhvncr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "List", resp, "Failure responding to request") + return } if result.lhvncr.hasNextLink() && result.lhvncr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client HubVirtualNetworkConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/inboundnatrules.go b/services/network/mgmt/2018-10-01/network/inboundnatrules.go index 419df3270cf2..8ca0bb719ee6 100644 --- a/services/network/mgmt/2018-10-01/network/inboundnatrules.go +++ b/services/network/mgmt/2018-10-01/network/inboundnatrules.go @@ -250,6 +250,7 @@ func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName result.inrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return } if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +396,7 @@ func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/interfaceendpoints.go b/services/network/mgmt/2018-10-01/network/interfaceendpoints.go index d96af7f36346..d6d513140cd8 100644 --- a/services/network/mgmt/2018-10-01/network/interfaceendpoints.go +++ b/services/network/mgmt/2018-10-01/network/interfaceendpoints.go @@ -226,6 +226,7 @@ func (client InterfaceEndpointsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client InterfaceEndpointsClient) List(ctx context.Context, resourceGroupNa result.ielr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsClient", "List", resp, "Failure responding to request") + return } if result.ielr.hasNextLink() && result.ielr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client InterfaceEndpointsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client InterfaceEndpointsClient) ListBySubscription(ctx context.Context) ( result.ielr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ielr.hasNextLink() && result.ielr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client InterfaceEndpointsClient) listBySubscriptionNextResults(ctx context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/interfaceipconfigurations.go b/services/network/mgmt/2018-10-01/network/interfaceipconfigurations.go index dc93c54567a9..937e884c7d09 100644 --- a/services/network/mgmt/2018-10-01/network/interfaceipconfigurations.go +++ b/services/network/mgmt/2018-10-01/network/interfaceipconfigurations.go @@ -74,6 +74,7 @@ func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resource result.iiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/interfaceloadbalancers.go b/services/network/mgmt/2018-10-01/network/interfaceloadbalancers.go index 8420387f63fa..fe15a5f9dde2 100644 --- a/services/network/mgmt/2018-10-01/network/interfaceloadbalancers.go +++ b/services/network/mgmt/2018-10-01/network/interfaceloadbalancers.go @@ -74,6 +74,7 @@ func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGro result.ilblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/interfacesgroup.go b/services/network/mgmt/2018-10-01/network/interfacesgroup.go index e3761e178bfb..e8c646a126fc 100644 --- a/services/network/mgmt/2018-10-01/network/interfacesgroup.go +++ b/services/network/mgmt/2018-10-01/network/interfacesgroup.go @@ -225,6 +225,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -383,6 +384,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx cont result, err = client.GetVirtualMachineScaleSetIPConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure responding to request") + return } return @@ -467,6 +469,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -547,6 +550,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -610,6 +614,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -659,6 +664,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -721,6 +727,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -852,6 +859,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx co result.iiclr, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -921,6 +929,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetIPConfigurationsNextRes result, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -973,6 +982,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1037,6 +1047,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1091,6 +1102,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1156,6 +1168,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/interfacetapconfigurations.go b/services/network/mgmt/2018-10-01/network/interfacetapconfigurations.go index 0fbd25b3c5bd..7cfafabf9211 100644 --- a/services/network/mgmt/2018-10-01/network/interfacetapconfigurations.go +++ b/services/network/mgmt/2018-10-01/network/interfacetapconfigurations.go @@ -267,6 +267,7 @@ func (client InterfaceTapConfigurationsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +345,7 @@ func (client InterfaceTapConfigurationsClient) List(ctx context.Context, resourc result.itclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.itclr.hasNextLink() && result.itclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -408,6 +410,7 @@ func (client InterfaceTapConfigurationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2018-10-01/network/loadbalancerbackendaddresspools.go index e001e4873cb5..a7336db59600 100644 --- a/services/network/mgmt/2018-10-01/network/loadbalancerbackendaddresspools.go +++ b/services/network/mgmt/2018-10-01/network/loadbalancerbackendaddresspools.go @@ -74,6 +74,7 @@ func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, re result.lbbaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return } if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2018-10-01/network/loadbalancerfrontendipconfigurations.go index ef0486f629af..f777854d368b 100644 --- a/services/network/mgmt/2018-10-01/network/loadbalancerfrontendipconfigurations.go +++ b/services/network/mgmt/2018-10-01/network/loadbalancerfrontendipconfigurations.go @@ -75,6 +75,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Contex result.lbficlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2018-10-01/network/loadbalancerloadbalancingrules.go index eacab0fd062c..b2d20a470309 100644 --- a/services/network/mgmt/2018-10-01/network/loadbalancerloadbalancingrules.go +++ b/services/network/mgmt/2018-10-01/network/loadbalancerloadbalancingrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, res result.lblbrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return } if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2018-10-01/network/loadbalancernetworkinterfaces.go index 0fcb97ee534f..5cd44385289c 100644 --- a/services/network/mgmt/2018-10-01/network/loadbalancernetworkinterfaces.go +++ b/services/network/mgmt/2018-10-01/network/loadbalancernetworkinterfaces.go @@ -74,6 +74,7 @@ func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, reso result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2018-10-01/network/loadbalanceroutboundrules.go index d14dc3a592df..6162e1310b23 100644 --- a/services/network/mgmt/2018-10-01/network/loadbalanceroutboundrules.go +++ b/services/network/mgmt/2018-10-01/network/loadbalanceroutboundrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerOutboundRulesClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerOutboundRulesClient) List(ctx context.Context, resource result.lborlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "List", resp, "Failure responding to request") + return } if result.lborlr.hasNextLink() && result.lborlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerOutboundRulesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/loadbalancerprobes.go b/services/network/mgmt/2018-10-01/network/loadbalancerprobes.go index 3a094b09a02e..8e6f98154645 100644 --- a/services/network/mgmt/2018-10-01/network/loadbalancerprobes.go +++ b/services/network/mgmt/2018-10-01/network/loadbalancerprobes.go @@ -74,6 +74,7 @@ func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupNa result.lbplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return } if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/loadbalancers.go b/services/network/mgmt/2018-10-01/network/loadbalancers.go index 5aef2d6d5461..74dc90c87c32 100644 --- a/services/network/mgmt/2018-10-01/network/loadbalancers.go +++ b/services/network/mgmt/2018-10-01/network/loadbalancers.go @@ -225,6 +225,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/localnetworkgateways.go b/services/network/mgmt/2018-10-01/network/localnetworkgateways.go index d2f0bfd88ad4..ebf91600eef0 100644 --- a/services/network/mgmt/2018-10-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2018-10-01/network/localnetworkgateways.go @@ -246,6 +246,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/operations.go b/services/network/mgmt/2018-10-01/network/operations.go index c7cdc7095c9d..bb5860136b2f 100644 --- a/services/network/mgmt/2018-10-01/network/operations.go +++ b/services/network/mgmt/2018-10-01/network/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/p2svpngateways.go b/services/network/mgmt/2018-10-01/network/p2svpngateways.go index 61d4945871ac..9421447eec01 100644 --- a/services/network/mgmt/2018-10-01/network/p2svpngateways.go +++ b/services/network/mgmt/2018-10-01/network/p2svpngateways.go @@ -303,6 +303,7 @@ func (client P2sVpnGatewaysClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -376,6 +377,7 @@ func (client P2sVpnGatewaysClient) List(ctx context.Context) (result ListP2SVpnG result.lpvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -438,6 +440,7 @@ func (client P2sVpnGatewaysClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -489,6 +492,7 @@ func (client P2sVpnGatewaysClient) ListByResourceGroup(ctx context.Context, reso result.lpvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -552,6 +556,7 @@ func (client P2sVpnGatewaysClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/p2svpnserverconfigurations.go b/services/network/mgmt/2018-10-01/network/p2svpnserverconfigurations.go index f503151c85f0..456208f5b6c1 100644 --- a/services/network/mgmt/2018-10-01/network/p2svpnserverconfigurations.go +++ b/services/network/mgmt/2018-10-01/network/p2svpnserverconfigurations.go @@ -232,6 +232,7 @@ func (client P2sVpnServerConfigurationsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnServerConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client P2sVpnServerConfigurationsClient) ListByVirtualWan(ctx context.Cont result.lpvscr, err = client.ListByVirtualWanResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnServerConfigurationsClient", "ListByVirtualWan", resp, "Failure responding to request") + return } if result.lpvscr.hasNextLink() && result.lpvscr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client P2sVpnServerConfigurationsClient) listByVirtualWanNextResults(ctx c result, err = client.ListByVirtualWanResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnServerConfigurationsClient", "listByVirtualWanNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/packetcaptures.go b/services/network/mgmt/2018-10-01/network/packetcaptures.go index cdcdb3517334..025447840aa7 100644 --- a/services/network/mgmt/2018-10-01/network/packetcaptures.go +++ b/services/network/mgmt/2018-10-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-10-01/network/profiles.go b/services/network/mgmt/2018-10-01/network/profiles.go index 3596f56b8efe..b97a92468692 100644 --- a/services/network/mgmt/2018-10-01/network/profiles.go +++ b/services/network/mgmt/2018-10-01/network/profiles.go @@ -73,6 +73,7 @@ func (client ProfilesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +305,7 @@ func (client ProfilesClient) List(ctx context.Context, resourceGroupName string) result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +369,7 @@ func (client ProfilesClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +419,7 @@ func (client ProfilesClient) ListAll(ctx context.Context) (result ProfileListRes result.plr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "ListAll", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +482,7 @@ func (client ProfilesClient) listAllNextResults(ctx context.Context, lastResults result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -529,6 +535,7 @@ func (client ProfilesClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-10-01/network/publicipaddresses.go b/services/network/mgmt/2018-10-01/network/publicipaddresses.go index d8ba360b74c6..fba0280b4100 100644 --- a/services/network/mgmt/2018-10-01/network/publicipaddresses.go +++ b/services/network/mgmt/2018-10-01/network/publicipaddresses.go @@ -238,6 +238,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -403,6 +405,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +469,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +519,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -577,6 +582,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +636,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -694,6 +701,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +758,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -817,6 +826,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/publicipprefixes.go b/services/network/mgmt/2018-10-01/network/publicipprefixes.go index 50ebc227c238..6f017a4db97c 100644 --- a/services/network/mgmt/2018-10-01/network/publicipprefixes.go +++ b/services/network/mgmt/2018-10-01/network/publicipprefixes.go @@ -226,6 +226,7 @@ func (client PublicIPPrefixesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client PublicIPPrefixesClient) List(ctx context.Context, resourceGroupName result.piplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "List", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client PublicIPPrefixesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client PublicIPPrefixesClient) ListAll(ctx context.Context) (result Public result.piplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "ListAll", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client PublicIPPrefixesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/routefilterrules.go b/services/network/mgmt/2018-10-01/network/routefilterrules.go index 09ce68aaf401..2d2866b551f0 100644 --- a/services/network/mgmt/2018-10-01/network/routefilterrules.go +++ b/services/network/mgmt/2018-10-01/network/routefilterrules.go @@ -241,6 +241,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/routefilters.go b/services/network/mgmt/2018-10-01/network/routefilters.go index 08f41c36566c..ff6aa9b0da40 100644 --- a/services/network/mgmt/2018-10-01/network/routefilters.go +++ b/services/network/mgmt/2018-10-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/routes.go b/services/network/mgmt/2018-10-01/network/routes.go index b167bff5b26b..e97ede08f337 100644 --- a/services/network/mgmt/2018-10-01/network/routes.go +++ b/services/network/mgmt/2018-10-01/network/routes.go @@ -229,6 +229,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/routetables.go b/services/network/mgmt/2018-10-01/network/routetables.go index 3e5a68a7e5cc..919a9b4250a6 100644 --- a/services/network/mgmt/2018-10-01/network/routetables.go +++ b/services/network/mgmt/2018-10-01/network/routetables.go @@ -225,6 +225,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/securitygroups.go b/services/network/mgmt/2018-10-01/network/securitygroups.go index 839e61c9f33d..c2efb6ddcd83 100644 --- a/services/network/mgmt/2018-10-01/network/securitygroups.go +++ b/services/network/mgmt/2018-10-01/network/securitygroups.go @@ -225,6 +225,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/securityrules.go b/services/network/mgmt/2018-10-01/network/securityrules.go index 6da00fb1f28b..bc18b6d48670 100644 --- a/services/network/mgmt/2018-10-01/network/securityrules.go +++ b/services/network/mgmt/2018-10-01/network/securityrules.go @@ -229,6 +229,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/serviceendpointpolicies.go b/services/network/mgmt/2018-10-01/network/serviceendpointpolicies.go index 78223639cba2..b1415e6ebe80 100644 --- a/services/network/mgmt/2018-10-01/network/serviceendpointpolicies.go +++ b/services/network/mgmt/2018-10-01/network/serviceendpointpolicies.go @@ -226,6 +226,7 @@ func (client ServiceEndpointPoliciesClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ServiceEndpointPoliciesClient) List(ctx context.Context) (result Se result.seplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "List", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ServiceEndpointPoliciesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Cont result.seplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client ServiceEndpointPoliciesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2018-10-01/network/serviceendpointpolicydefinitions.go index 049f1f2813d8..e4d530e6c745 100644 --- a/services/network/mgmt/2018-10-01/network/serviceendpointpolicydefinitions.go +++ b/services/network/mgmt/2018-10-01/network/serviceendpointpolicydefinitions.go @@ -231,6 +231,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) ListByResourceGroup(ctx con result.sepdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sepdlr.hasNextLink() && result.sepdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) listByResourceGroupNextResu result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/subnets.go b/services/network/mgmt/2018-10-01/network/subnets.go index ca6940246f2c..86ea02a0c277 100644 --- a/services/network/mgmt/2018-10-01/network/subnets.go +++ b/services/network/mgmt/2018-10-01/network/subnets.go @@ -230,6 +230,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/usages.go b/services/network/mgmt/2018-10-01/network/usages.go index 5a8aa04f6d97..56feb4112eaf 100644 --- a/services/network/mgmt/2018-10-01/network/usages.go +++ b/services/network/mgmt/2018-10-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/virtualhubs.go b/services/network/mgmt/2018-10-01/network/virtualhubs.go index a79a47b57d02..4aa572275b0d 100644 --- a/services/network/mgmt/2018-10-01/network/virtualhubs.go +++ b/services/network/mgmt/2018-10-01/network/virtualhubs.go @@ -225,6 +225,7 @@ func (client VirtualHubsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualHubsClient) List(ctx context.Context) (result ListVirtualHub result.lvhr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "List", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualHubsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualHubsClient) ListByResourceGroup(ctx context.Context, resourc result.lvhr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualHubsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2018-10-01/network/virtualnetworkgatewayconnections.go index 48726a73c871..225e0263e2c8 100644 --- a/services/network/mgmt/2018-10-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2018-10-01/network/virtualnetworkgatewayconnections.go @@ -239,6 +239,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/virtualnetworkgateways.go b/services/network/mgmt/2018-10-01/network/virtualnetworkgateways.go index 0d68adc934c4..edb7aa4a3082 100644 --- a/services/network/mgmt/2018-10-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2018-10-01/network/virtualnetworkgateways.go @@ -390,6 +390,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -851,6 +852,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -914,6 +916,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -966,6 +969,7 @@ func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, result.vnglcr, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return } if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1030,6 +1034,7 @@ func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx contex result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1323,6 +1328,7 @@ func (client VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Conte result, err = client.SupportedVpnDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", resp, "Failure responding to request") + return } return @@ -1478,6 +1484,7 @@ func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx cont result, err = client.VpnDeviceConfigurationScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-10-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2018-10-01/network/virtualnetworkpeerings.go index 514acd951a09..fe04e3bd29bf 100644 --- a/services/network/mgmt/2018-10-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2018-10-01/network/virtualnetworkpeerings.go @@ -231,6 +231,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/virtualnetworks.go b/services/network/mgmt/2018-10-01/network/virtualnetworks.go index b6a6f7729dbd..2871c8ae1f64 100644 --- a/services/network/mgmt/2018-10-01/network/virtualnetworks.go +++ b/services/network/mgmt/2018-10-01/network/virtualnetworks.go @@ -73,6 +73,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -380,6 +382,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -443,6 +446,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -492,6 +496,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -554,6 +559,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -606,6 +612,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -670,6 +677,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/virtualnetworktaps.go b/services/network/mgmt/2018-10-01/network/virtualnetworktaps.go index 4ad8bb95dea4..7a74e9aa60c9 100644 --- a/services/network/mgmt/2018-10-01/network/virtualnetworktaps.go +++ b/services/network/mgmt/2018-10-01/network/virtualnetworktaps.go @@ -257,6 +257,7 @@ func (client VirtualNetworkTapsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client VirtualNetworkTapsClient) ListAll(ctx context.Context) (result Virt result.vntlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListAll", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -392,6 +394,7 @@ func (client VirtualNetworkTapsClient) listAllNextResults(ctx context.Context, l result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +446,7 @@ func (client VirtualNetworkTapsClient) ListByResourceGroup(ctx context.Context, result.vntlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -506,6 +510,7 @@ func (client VirtualNetworkTapsClient) listByResourceGroupNextResults(ctx contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/virtualwans.go b/services/network/mgmt/2018-10-01/network/virtualwans.go index 584a90e1b92f..36c29289f795 100644 --- a/services/network/mgmt/2018-10-01/network/virtualwans.go +++ b/services/network/mgmt/2018-10-01/network/virtualwans.go @@ -225,6 +225,7 @@ func (client VirtualWansClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualWansClient) List(ctx context.Context) (result ListVirtualWAN result.lvwnr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "List", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualWansClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualWansClient) ListByResourceGroup(ctx context.Context, resourc result.lvwnr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualWansClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/vpnconnections.go b/services/network/mgmt/2018-10-01/network/vpnconnections.go index 5fc3312b3a4e..b80468ac2f79 100644 --- a/services/network/mgmt/2018-10-01/network/vpnconnections.go +++ b/services/network/mgmt/2018-10-01/network/vpnconnections.go @@ -231,6 +231,7 @@ func (client VpnConnectionsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VpnConnectionsClient) ListByVpnGateway(ctx context.Context, resourc result.lvcr, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "ListByVpnGateway", resp, "Failure responding to request") + return } if result.lvcr.hasNextLink() && result.lvcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VpnConnectionsClient) listByVpnGatewayNextResults(ctx context.Conte result, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "listByVpnGatewayNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/vpngateways.go b/services/network/mgmt/2018-10-01/network/vpngateways.go index dd8808526ea7..6c6529069cdc 100644 --- a/services/network/mgmt/2018-10-01/network/vpngateways.go +++ b/services/network/mgmt/2018-10-01/network/vpngateways.go @@ -225,6 +225,7 @@ func (client VpnGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnGatewaysClient) List(ctx context.Context) (result ListVpnGateway result.lvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnGatewaysClient) ListByResourceGroup(ctx context.Context, resourc result.lvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnGatewaysClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/vpnsites.go b/services/network/mgmt/2018-10-01/network/vpnsites.go index 93dfb7393833..e258d0804d3c 100644 --- a/services/network/mgmt/2018-10-01/network/vpnsites.go +++ b/services/network/mgmt/2018-10-01/network/vpnsites.go @@ -225,6 +225,7 @@ func (client VpnSitesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnSitesClient) List(ctx context.Context) (result ListVpnSitesResul result.lvsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "List", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnSitesClient) listNextResults(ctx context.Context, lastResults Li result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnSitesClient) ListByResourceGroup(ctx context.Context, resourceGr result.lvsr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnSitesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-10-01/network/watchers.go b/services/network/mgmt/2018-10-01/network/watchers.go index 167e73ff4962..b9fa2e517381 100644 --- a/services/network/mgmt/2018-10-01/network/watchers.go +++ b/services/network/mgmt/2018-10-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -731,6 +733,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -1063,6 +1066,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -1134,6 +1138,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return @@ -1382,6 +1387,7 @@ func (client WatchersClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-11-01/network/applicationgateways.go b/services/network/mgmt/2018-11-01/network/applicationgateways.go index d71688e9e3e2..ca435373d111 100644 --- a/services/network/mgmt/2018-11-01/network/applicationgateways.go +++ b/services/network/mgmt/2018-11-01/network/applicationgateways.go @@ -335,6 +335,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -409,6 +410,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte result, err = client.GetSslPredefinedPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return } return @@ -483,6 +485,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -546,6 +549,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -595,6 +599,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -657,6 +662,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -705,6 +711,7 @@ func (client ApplicationGatewaysClient) ListAvailableRequestHeaders(ctx context. result, err = client.ListAvailableRequestHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableRequestHeaders", resp, "Failure responding to request") + return } return @@ -775,6 +782,7 @@ func (client ApplicationGatewaysClient) ListAvailableResponseHeaders(ctx context result, err = client.ListAvailableResponseHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableResponseHeaders", resp, "Failure responding to request") + return } return @@ -845,6 +853,7 @@ func (client ApplicationGatewaysClient) ListAvailableServerVariables(ctx context result, err = client.ListAvailableServerVariablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableServerVariables", resp, "Failure responding to request") + return } return @@ -915,6 +924,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont result, err = client.ListAvailableSslOptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return } return @@ -986,6 +996,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return } if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { err = result.NextWithContext(ctx) @@ -1048,6 +1059,7 @@ func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextRe result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1096,6 +1108,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-11-01/network/applicationsecuritygroups.go b/services/network/mgmt/2018-11-01/network/applicationsecuritygroups.go index ec47d34df2a0..3b7bc1e3f416 100644 --- a/services/network/mgmt/2018-11-01/network/applicationsecuritygroups.go +++ b/services/network/mgmt/2018-11-01/network/applicationsecuritygroups.go @@ -226,6 +226,7 @@ func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resource result.asglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ApplicationSecurityGroupsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (resu result.asglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ApplicationSecurityGroupsClient) listAllNextResults(ctx context.Con result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/availabledelegations.go b/services/network/mgmt/2018-11-01/network/availabledelegations.go index 0475d4cb8dbe..3f18c92416af 100644 --- a/services/network/mgmt/2018-11-01/network/availabledelegations.go +++ b/services/network/mgmt/2018-11-01/network/availabledelegations.go @@ -73,6 +73,7 @@ func (client AvailableDelegationsClient) List(ctx context.Context, location stri result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableDelegationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/availableendpointservices.go b/services/network/mgmt/2018-11-01/network/availableendpointservices.go index 3ef046ac70b7..de93113ad260 100644 --- a/services/network/mgmt/2018-11-01/network/availableendpointservices.go +++ b/services/network/mgmt/2018-11-01/network/availableendpointservices.go @@ -73,6 +73,7 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableEndpointServicesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2018-11-01/network/availableresourcegroupdelegations.go index b4499a18b8cc..76db4cef7e62 100644 --- a/services/network/mgmt/2018-11-01/network/availableresourcegroupdelegations.go +++ b/services/network/mgmt/2018-11-01/network/availableresourcegroupdelegations.go @@ -75,6 +75,7 @@ func (client AvailableResourceGroupDelegationsClient) List(ctx context.Context, result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client AvailableResourceGroupDelegationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2018-11-01/network/azurefirewallfqdntags.go index 26930678c546..a1eaa67520b3 100644 --- a/services/network/mgmt/2018-11-01/network/azurefirewallfqdntags.go +++ b/services/network/mgmt/2018-11-01/network/azurefirewallfqdntags.go @@ -71,6 +71,7 @@ func (client AzureFirewallFqdnTagsClient) ListAll(ctx context.Context) (result A result.afftlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "ListAll", resp, "Failure responding to request") + return } if result.afftlr.hasNextLink() && result.afftlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client AzureFirewallFqdnTagsClient) listAllNextResults(ctx context.Context result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/azurefirewalls.go b/services/network/mgmt/2018-11-01/network/azurefirewalls.go index b2d713ef74a9..af45171a89ae 100644 --- a/services/network/mgmt/2018-11-01/network/azurefirewalls.go +++ b/services/network/mgmt/2018-11-01/network/azurefirewalls.go @@ -225,6 +225,7 @@ func (client AzureFirewallsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client AzureFirewallsClient) List(ctx context.Context, resourceGroupName s result.aflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "List", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +365,7 @@ func (client AzureFirewallsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client AzureFirewallsClient) ListAll(ctx context.Context) (result AzureFir result.aflr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "ListAll", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client AzureFirewallsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/bgpservicecommunities.go b/services/network/mgmt/2018-11-01/network/bgpservicecommunities.go index 2fe3ad0008a0..fb094ad8b0b6 100644 --- a/services/network/mgmt/2018-11-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2018-11-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/client.go b/services/network/mgmt/2018-11-01/network/client.go index ae6b1cf83377..e2ff1fc0f84e 100644 --- a/services/network/mgmt/2018-11-01/network/client.go +++ b/services/network/mgmt/2018-11-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client BaseClient) SupportedSecurityProviders(ctx context.Context, resourc result, err = client.SupportedSecurityProvidersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "SupportedSecurityProviders", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-11-01/network/connectionmonitors.go b/services/network/mgmt/2018-11-01/network/connectionmonitors.go index 7716d00d75fa..dba1ed0c3247 100644 --- a/services/network/mgmt/2018-11-01/network/connectionmonitors.go +++ b/services/network/mgmt/2018-11-01/network/connectionmonitors.go @@ -241,6 +241,7 @@ func (client ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ConnectionMonitorsClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-11-01/network/ddoscustompolicies.go b/services/network/mgmt/2018-11-01/network/ddoscustompolicies.go index a228f04f6861..99d79318a734 100644 --- a/services/network/mgmt/2018-11-01/network/ddoscustompolicies.go +++ b/services/network/mgmt/2018-11-01/network/ddoscustompolicies.go @@ -226,6 +226,7 @@ func (client DdosCustomPoliciesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-11-01/network/ddosprotectionplans.go b/services/network/mgmt/2018-11-01/network/ddosprotectionplans.go index af22717d0940..5ffa04e20e9c 100644 --- a/services/network/mgmt/2018-11-01/network/ddosprotectionplans.go +++ b/services/network/mgmt/2018-11-01/network/ddosprotectionplans.go @@ -229,6 +229,7 @@ func (client DdosProtectionPlansClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DdosProtectionPlansClient) List(ctx context.Context) (result DdosPr result.dpplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client DdosProtectionPlansClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, result.dpplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client DdosProtectionPlansClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/defaultsecurityrules.go b/services/network/mgmt/2018-11-01/network/defaultsecurityrules.go index 7f13c6cf704e..5b4b80ab4807 100644 --- a/services/network/mgmt/2018-11-01/network/defaultsecurityrules.go +++ b/services/network/mgmt/2018-11-01/network/defaultsecurityrules.go @@ -74,6 +74,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2018-11-01/network/expressroutecircuitauthorizations.go index 7a12db5dd9e0..d6cccb854beb 100644 --- a/services/network/mgmt/2018-11-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2018-11-01/network/expressroutecircuitauthorizations.go @@ -233,6 +233,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2018-11-01/network/expressroutecircuitconnections.go index 08a3a6ef88a5..5d4844d8d7da 100644 --- a/services/network/mgmt/2018-11-01/network/expressroutecircuitconnections.go +++ b/services/network/mgmt/2018-11-01/network/expressroutecircuitconnections.go @@ -237,6 +237,7 @@ func (client ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client ExpressRouteCircuitConnectionsClient) List(ctx context.Context, res result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client ExpressRouteCircuitConnectionsClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2018-11-01/network/expressroutecircuitpeerings.go index 89119eaa5f1f..3f7b07a6bfe9 100644 --- a/services/network/mgmt/2018-11-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2018-11-01/network/expressroutecircuitpeerings.go @@ -243,6 +243,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +321,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/expressroutecircuits.go b/services/network/mgmt/2018-11-01/network/expressroutecircuits.go index a04b0096dc76..ee61b466194c 100644 --- a/services/network/mgmt/2018-11-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2018-11-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/expressrouteconnections.go b/services/network/mgmt/2018-11-01/network/expressrouteconnections.go index 171a2cc146e7..8ac20f3cf1cc 100644 --- a/services/network/mgmt/2018-11-01/network/expressrouteconnections.go +++ b/services/network/mgmt/2018-11-01/network/expressrouteconnections.go @@ -239,6 +239,7 @@ func (client ExpressRouteConnectionsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client ExpressRouteConnectionsClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-11-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2018-11-01/network/expressroutecrossconnectionpeerings.go index cda860c4e22f..d08808053cac 100644 --- a/services/network/mgmt/2018-11-01/network/expressroutecrossconnectionpeerings.go +++ b/services/network/mgmt/2018-11-01/network/expressroutecrossconnectionpeerings.go @@ -245,6 +245,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context result.erccpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "List", resp, "Failure responding to request") + return } if result.erccpl.hasNextLink() && result.erccpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) listNextResults(ctx cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/expressroutecrossconnections.go b/services/network/mgmt/2018-11-01/network/expressroutecrossconnections.go index 00944de054ab..e57e266b8c01 100644 --- a/services/network/mgmt/2018-11-01/network/expressroutecrossconnections.go +++ b/services/network/mgmt/2018-11-01/network/expressroutecrossconnections.go @@ -152,6 +152,7 @@ func (client ExpressRouteCrossConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ExpressRouteCrossConnectionsClient) List(ctx context.Context) (resu result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -287,6 +289,7 @@ func (client ExpressRouteCrossConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -418,6 +421,7 @@ func (client ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context result.ercclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +485,7 @@ func (client ExpressRouteCrossConnectionsClient) listByResourceGroupNextResults( result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/expressroutegateways.go b/services/network/mgmt/2018-11-01/network/expressroutegateways.go index de740b1c5b83..48ea0568938e 100644 --- a/services/network/mgmt/2018-11-01/network/expressroutegateways.go +++ b/services/network/mgmt/2018-11-01/network/expressroutegateways.go @@ -235,6 +235,7 @@ func (client ExpressRouteGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client ExpressRouteGatewaysClient) ListByResourceGroup(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -380,6 +382,7 @@ func (client ExpressRouteGatewaysClient) ListBySubscription(ctx context.Context) result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-11-01/network/expressroutelinks.go b/services/network/mgmt/2018-11-01/network/expressroutelinks.go index 49b81ccef593..3c9c8ccff879 100644 --- a/services/network/mgmt/2018-11-01/network/expressroutelinks.go +++ b/services/network/mgmt/2018-11-01/network/expressroutelinks.go @@ -74,6 +74,7 @@ func (client ExpressRouteLinksClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ExpressRouteLinksClient) List(ctx context.Context, resourceGroupNam result.erllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "List", resp, "Failure responding to request") + return } if result.erllr.hasNextLink() && result.erllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client ExpressRouteLinksClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/expressrouteports.go b/services/network/mgmt/2018-11-01/network/expressrouteports.go index 3ed5562bc1de..9674da5d19bd 100644 --- a/services/network/mgmt/2018-11-01/network/expressrouteports.go +++ b/services/network/mgmt/2018-11-01/network/expressrouteports.go @@ -226,6 +226,7 @@ func (client ExpressRoutePortsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client ExpressRoutePortsClient) List(ctx context.Context) (result ExpressR result.erplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "List", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -361,6 +363,7 @@ func (client ExpressRoutePortsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, r result.erplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ExpressRoutePortsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/expressrouteportslocations.go b/services/network/mgmt/2018-11-01/network/expressrouteportslocations.go index 4b7dccb0711c..21ca65ced77b 100644 --- a/services/network/mgmt/2018-11-01/network/expressrouteportslocations.go +++ b/services/network/mgmt/2018-11-01/network/expressrouteportslocations.go @@ -73,6 +73,7 @@ func (client ExpressRoutePortsLocationsClient) Get(ctx context.Context, location result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client ExpressRoutePortsLocationsClient) List(ctx context.Context) (result result.erpllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "List", resp, "Failure responding to request") + return } if result.erpllr.hasNextLink() && result.erpllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -208,6 +210,7 @@ func (client ExpressRoutePortsLocationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2018-11-01/network/expressrouteserviceproviders.go index 7714e081e2bc..2c80b9fd9f5e 100644 --- a/services/network/mgmt/2018-11-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2018-11-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2018-11-01/network/hubvirtualnetworkconnections.go index 6fc93b7d9cbf..f8bcc14d21d3 100644 --- a/services/network/mgmt/2018-11-01/network/hubvirtualnetworkconnections.go +++ b/services/network/mgmt/2018-11-01/network/hubvirtualnetworkconnections.go @@ -74,6 +74,7 @@ func (client HubVirtualNetworkConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client HubVirtualNetworkConnectionsClient) List(ctx context.Context, resou result.lhvncr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "List", resp, "Failure responding to request") + return } if result.lhvncr.hasNextLink() && result.lhvncr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client HubVirtualNetworkConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/inboundnatrules.go b/services/network/mgmt/2018-11-01/network/inboundnatrules.go index a21671b1a36c..73d6fd5df664 100644 --- a/services/network/mgmt/2018-11-01/network/inboundnatrules.go +++ b/services/network/mgmt/2018-11-01/network/inboundnatrules.go @@ -250,6 +250,7 @@ func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName result.inrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return } if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +396,7 @@ func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/interfaceendpoints.go b/services/network/mgmt/2018-11-01/network/interfaceendpoints.go index 5272dfcdf2c4..4c02f0be26c4 100644 --- a/services/network/mgmt/2018-11-01/network/interfaceendpoints.go +++ b/services/network/mgmt/2018-11-01/network/interfaceendpoints.go @@ -226,6 +226,7 @@ func (client InterfaceEndpointsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client InterfaceEndpointsClient) List(ctx context.Context, resourceGroupNa result.ielr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsClient", "List", resp, "Failure responding to request") + return } if result.ielr.hasNextLink() && result.ielr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client InterfaceEndpointsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client InterfaceEndpointsClient) ListBySubscription(ctx context.Context) ( result.ielr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ielr.hasNextLink() && result.ielr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client InterfaceEndpointsClient) listBySubscriptionNextResults(ctx context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/interfaceipconfigurations.go b/services/network/mgmt/2018-11-01/network/interfaceipconfigurations.go index 387b74f7fae0..8460d13de317 100644 --- a/services/network/mgmt/2018-11-01/network/interfaceipconfigurations.go +++ b/services/network/mgmt/2018-11-01/network/interfaceipconfigurations.go @@ -74,6 +74,7 @@ func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resource result.iiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/interfaceloadbalancers.go b/services/network/mgmt/2018-11-01/network/interfaceloadbalancers.go index 46f894d846d9..c06a249aa375 100644 --- a/services/network/mgmt/2018-11-01/network/interfaceloadbalancers.go +++ b/services/network/mgmt/2018-11-01/network/interfaceloadbalancers.go @@ -74,6 +74,7 @@ func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGro result.ilblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/interfacesgroup.go b/services/network/mgmt/2018-11-01/network/interfacesgroup.go index bfbf34cde9ea..68e1474304ef 100644 --- a/services/network/mgmt/2018-11-01/network/interfacesgroup.go +++ b/services/network/mgmt/2018-11-01/network/interfacesgroup.go @@ -225,6 +225,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -383,6 +384,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx cont result, err = client.GetVirtualMachineScaleSetIPConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure responding to request") + return } return @@ -467,6 +469,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -547,6 +550,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -610,6 +614,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -659,6 +664,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -721,6 +727,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -852,6 +859,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx co result.iiclr, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -921,6 +929,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetIPConfigurationsNextRes result, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -973,6 +982,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1037,6 +1047,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1091,6 +1102,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1156,6 +1168,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/interfacetapconfigurations.go b/services/network/mgmt/2018-11-01/network/interfacetapconfigurations.go index 382514d8137f..628a9205e78c 100644 --- a/services/network/mgmt/2018-11-01/network/interfacetapconfigurations.go +++ b/services/network/mgmt/2018-11-01/network/interfacetapconfigurations.go @@ -267,6 +267,7 @@ func (client InterfaceTapConfigurationsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +345,7 @@ func (client InterfaceTapConfigurationsClient) List(ctx context.Context, resourc result.itclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.itclr.hasNextLink() && result.itclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -408,6 +410,7 @@ func (client InterfaceTapConfigurationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2018-11-01/network/loadbalancerbackendaddresspools.go index 446d24582b1f..1214df56d2de 100644 --- a/services/network/mgmt/2018-11-01/network/loadbalancerbackendaddresspools.go +++ b/services/network/mgmt/2018-11-01/network/loadbalancerbackendaddresspools.go @@ -74,6 +74,7 @@ func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, re result.lbbaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return } if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2018-11-01/network/loadbalancerfrontendipconfigurations.go index 41b803eb7d13..17709694da1c 100644 --- a/services/network/mgmt/2018-11-01/network/loadbalancerfrontendipconfigurations.go +++ b/services/network/mgmt/2018-11-01/network/loadbalancerfrontendipconfigurations.go @@ -75,6 +75,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Contex result.lbficlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2018-11-01/network/loadbalancerloadbalancingrules.go index 7b04c0e36fd5..270fca0be504 100644 --- a/services/network/mgmt/2018-11-01/network/loadbalancerloadbalancingrules.go +++ b/services/network/mgmt/2018-11-01/network/loadbalancerloadbalancingrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, res result.lblbrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return } if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2018-11-01/network/loadbalancernetworkinterfaces.go index 8b229dcd66b5..53acfabd66f7 100644 --- a/services/network/mgmt/2018-11-01/network/loadbalancernetworkinterfaces.go +++ b/services/network/mgmt/2018-11-01/network/loadbalancernetworkinterfaces.go @@ -74,6 +74,7 @@ func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, reso result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2018-11-01/network/loadbalanceroutboundrules.go index ccf56d2dfd35..4e7aa18659cf 100644 --- a/services/network/mgmt/2018-11-01/network/loadbalanceroutboundrules.go +++ b/services/network/mgmt/2018-11-01/network/loadbalanceroutboundrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerOutboundRulesClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerOutboundRulesClient) List(ctx context.Context, resource result.lborlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "List", resp, "Failure responding to request") + return } if result.lborlr.hasNextLink() && result.lborlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerOutboundRulesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/loadbalancerprobes.go b/services/network/mgmt/2018-11-01/network/loadbalancerprobes.go index 8c0844411d60..2eb00ed3b9d8 100644 --- a/services/network/mgmt/2018-11-01/network/loadbalancerprobes.go +++ b/services/network/mgmt/2018-11-01/network/loadbalancerprobes.go @@ -74,6 +74,7 @@ func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupNa result.lbplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return } if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/loadbalancers.go b/services/network/mgmt/2018-11-01/network/loadbalancers.go index c49366065fb0..5164fe675db0 100644 --- a/services/network/mgmt/2018-11-01/network/loadbalancers.go +++ b/services/network/mgmt/2018-11-01/network/loadbalancers.go @@ -225,6 +225,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/localnetworkgateways.go b/services/network/mgmt/2018-11-01/network/localnetworkgateways.go index bc08b4918714..602360d35601 100644 --- a/services/network/mgmt/2018-11-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2018-11-01/network/localnetworkgateways.go @@ -246,6 +246,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/operations.go b/services/network/mgmt/2018-11-01/network/operations.go index f2611672c6f5..eb837c8fd0f5 100644 --- a/services/network/mgmt/2018-11-01/network/operations.go +++ b/services/network/mgmt/2018-11-01/network/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/p2svpngateways.go b/services/network/mgmt/2018-11-01/network/p2svpngateways.go index 50671bb55b4a..78bd4e6900ca 100644 --- a/services/network/mgmt/2018-11-01/network/p2svpngateways.go +++ b/services/network/mgmt/2018-11-01/network/p2svpngateways.go @@ -303,6 +303,7 @@ func (client P2sVpnGatewaysClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -376,6 +377,7 @@ func (client P2sVpnGatewaysClient) List(ctx context.Context) (result ListP2SVpnG result.lpvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -438,6 +440,7 @@ func (client P2sVpnGatewaysClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -489,6 +492,7 @@ func (client P2sVpnGatewaysClient) ListByResourceGroup(ctx context.Context, reso result.lpvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -552,6 +556,7 @@ func (client P2sVpnGatewaysClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/p2svpnserverconfigurations.go b/services/network/mgmt/2018-11-01/network/p2svpnserverconfigurations.go index 4f87a86dc113..f0410132c265 100644 --- a/services/network/mgmt/2018-11-01/network/p2svpnserverconfigurations.go +++ b/services/network/mgmt/2018-11-01/network/p2svpnserverconfigurations.go @@ -232,6 +232,7 @@ func (client P2sVpnServerConfigurationsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnServerConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client P2sVpnServerConfigurationsClient) ListByVirtualWan(ctx context.Cont result.lpvscr, err = client.ListByVirtualWanResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnServerConfigurationsClient", "ListByVirtualWan", resp, "Failure responding to request") + return } if result.lpvscr.hasNextLink() && result.lpvscr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client P2sVpnServerConfigurationsClient) listByVirtualWanNextResults(ctx c result, err = client.ListByVirtualWanResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnServerConfigurationsClient", "listByVirtualWanNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/packetcaptures.go b/services/network/mgmt/2018-11-01/network/packetcaptures.go index 406d3c623eb4..3bf031693924 100644 --- a/services/network/mgmt/2018-11-01/network/packetcaptures.go +++ b/services/network/mgmt/2018-11-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-11-01/network/profiles.go b/services/network/mgmt/2018-11-01/network/profiles.go index 18aa4b178a71..2b41134797b0 100644 --- a/services/network/mgmt/2018-11-01/network/profiles.go +++ b/services/network/mgmt/2018-11-01/network/profiles.go @@ -73,6 +73,7 @@ func (client ProfilesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +305,7 @@ func (client ProfilesClient) List(ctx context.Context, resourceGroupName string) result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +369,7 @@ func (client ProfilesClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +419,7 @@ func (client ProfilesClient) ListAll(ctx context.Context) (result ProfileListRes result.plr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "ListAll", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +482,7 @@ func (client ProfilesClient) listAllNextResults(ctx context.Context, lastResults result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -529,6 +535,7 @@ func (client ProfilesClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-11-01/network/publicipaddresses.go b/services/network/mgmt/2018-11-01/network/publicipaddresses.go index b79245d78613..fafe502b5ae5 100644 --- a/services/network/mgmt/2018-11-01/network/publicipaddresses.go +++ b/services/network/mgmt/2018-11-01/network/publicipaddresses.go @@ -238,6 +238,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -403,6 +405,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +469,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +519,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -577,6 +582,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +636,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -694,6 +701,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +758,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -817,6 +826,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/publicipprefixes.go b/services/network/mgmt/2018-11-01/network/publicipprefixes.go index 04c5dc85ede1..307cddcadc22 100644 --- a/services/network/mgmt/2018-11-01/network/publicipprefixes.go +++ b/services/network/mgmt/2018-11-01/network/publicipprefixes.go @@ -226,6 +226,7 @@ func (client PublicIPPrefixesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client PublicIPPrefixesClient) List(ctx context.Context, resourceGroupName result.piplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "List", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client PublicIPPrefixesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client PublicIPPrefixesClient) ListAll(ctx context.Context) (result Public result.piplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "ListAll", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client PublicIPPrefixesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/routefilterrules.go b/services/network/mgmt/2018-11-01/network/routefilterrules.go index af220c37fc74..f740367b9975 100644 --- a/services/network/mgmt/2018-11-01/network/routefilterrules.go +++ b/services/network/mgmt/2018-11-01/network/routefilterrules.go @@ -241,6 +241,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/routefilters.go b/services/network/mgmt/2018-11-01/network/routefilters.go index 8ce893a45796..ed3a9529356e 100644 --- a/services/network/mgmt/2018-11-01/network/routefilters.go +++ b/services/network/mgmt/2018-11-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/routes.go b/services/network/mgmt/2018-11-01/network/routes.go index b052bc873063..f8bdca5d8987 100644 --- a/services/network/mgmt/2018-11-01/network/routes.go +++ b/services/network/mgmt/2018-11-01/network/routes.go @@ -229,6 +229,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/routetables.go b/services/network/mgmt/2018-11-01/network/routetables.go index 4cb34ee60656..70cfd456cec9 100644 --- a/services/network/mgmt/2018-11-01/network/routetables.go +++ b/services/network/mgmt/2018-11-01/network/routetables.go @@ -225,6 +225,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/securitygroups.go b/services/network/mgmt/2018-11-01/network/securitygroups.go index 4c91413cd5c8..aea58f21d068 100644 --- a/services/network/mgmt/2018-11-01/network/securitygroups.go +++ b/services/network/mgmt/2018-11-01/network/securitygroups.go @@ -225,6 +225,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/securityrules.go b/services/network/mgmt/2018-11-01/network/securityrules.go index 79f974c3643c..42cce75ea426 100644 --- a/services/network/mgmt/2018-11-01/network/securityrules.go +++ b/services/network/mgmt/2018-11-01/network/securityrules.go @@ -229,6 +229,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/serviceendpointpolicies.go b/services/network/mgmt/2018-11-01/network/serviceendpointpolicies.go index 28f1be959cfa..355e9ea168d2 100644 --- a/services/network/mgmt/2018-11-01/network/serviceendpointpolicies.go +++ b/services/network/mgmt/2018-11-01/network/serviceendpointpolicies.go @@ -226,6 +226,7 @@ func (client ServiceEndpointPoliciesClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ServiceEndpointPoliciesClient) List(ctx context.Context) (result Se result.seplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "List", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ServiceEndpointPoliciesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Cont result.seplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client ServiceEndpointPoliciesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2018-11-01/network/serviceendpointpolicydefinitions.go index 649018205a01..13dcbf9bb642 100644 --- a/services/network/mgmt/2018-11-01/network/serviceendpointpolicydefinitions.go +++ b/services/network/mgmt/2018-11-01/network/serviceendpointpolicydefinitions.go @@ -231,6 +231,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) ListByResourceGroup(ctx con result.sepdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sepdlr.hasNextLink() && result.sepdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) listByResourceGroupNextResu result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/subnets.go b/services/network/mgmt/2018-11-01/network/subnets.go index d3f126ba2f42..bc8a630e4621 100644 --- a/services/network/mgmt/2018-11-01/network/subnets.go +++ b/services/network/mgmt/2018-11-01/network/subnets.go @@ -230,6 +230,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/usages.go b/services/network/mgmt/2018-11-01/network/usages.go index 3a9d660b4219..216eaf205a20 100644 --- a/services/network/mgmt/2018-11-01/network/usages.go +++ b/services/network/mgmt/2018-11-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/virtualhubs.go b/services/network/mgmt/2018-11-01/network/virtualhubs.go index c250c7936782..1c604b81fd80 100644 --- a/services/network/mgmt/2018-11-01/network/virtualhubs.go +++ b/services/network/mgmt/2018-11-01/network/virtualhubs.go @@ -225,6 +225,7 @@ func (client VirtualHubsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualHubsClient) List(ctx context.Context) (result ListVirtualHub result.lvhr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "List", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualHubsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualHubsClient) ListByResourceGroup(ctx context.Context, resourc result.lvhr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualHubsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2018-11-01/network/virtualnetworkgatewayconnections.go index 1a2977543fd6..93f6c56e1488 100644 --- a/services/network/mgmt/2018-11-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2018-11-01/network/virtualnetworkgatewayconnections.go @@ -239,6 +239,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/virtualnetworkgateways.go b/services/network/mgmt/2018-11-01/network/virtualnetworkgateways.go index f7e2271d0768..a540f57381e4 100644 --- a/services/network/mgmt/2018-11-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2018-11-01/network/virtualnetworkgateways.go @@ -390,6 +390,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -851,6 +852,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -914,6 +916,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -966,6 +969,7 @@ func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, result.vnglcr, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return } if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1030,6 +1034,7 @@ func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx contex result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1323,6 +1328,7 @@ func (client VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Conte result, err = client.SupportedVpnDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", resp, "Failure responding to request") + return } return @@ -1478,6 +1484,7 @@ func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx cont result, err = client.VpnDeviceConfigurationScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-11-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2018-11-01/network/virtualnetworkpeerings.go index 54546c1b669b..0d0f7fdd9efa 100644 --- a/services/network/mgmt/2018-11-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2018-11-01/network/virtualnetworkpeerings.go @@ -231,6 +231,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/virtualnetworks.go b/services/network/mgmt/2018-11-01/network/virtualnetworks.go index 0175dbaf6ef0..c4e7c9fff206 100644 --- a/services/network/mgmt/2018-11-01/network/virtualnetworks.go +++ b/services/network/mgmt/2018-11-01/network/virtualnetworks.go @@ -73,6 +73,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -380,6 +382,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -443,6 +446,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -492,6 +496,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -554,6 +559,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -606,6 +612,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -670,6 +677,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/virtualnetworktaps.go b/services/network/mgmt/2018-11-01/network/virtualnetworktaps.go index f66fe5d57048..89b25ad27749 100644 --- a/services/network/mgmt/2018-11-01/network/virtualnetworktaps.go +++ b/services/network/mgmt/2018-11-01/network/virtualnetworktaps.go @@ -257,6 +257,7 @@ func (client VirtualNetworkTapsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client VirtualNetworkTapsClient) ListAll(ctx context.Context) (result Virt result.vntlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListAll", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -392,6 +394,7 @@ func (client VirtualNetworkTapsClient) listAllNextResults(ctx context.Context, l result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +446,7 @@ func (client VirtualNetworkTapsClient) ListByResourceGroup(ctx context.Context, result.vntlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -506,6 +510,7 @@ func (client VirtualNetworkTapsClient) listByResourceGroupNextResults(ctx contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/virtualwans.go b/services/network/mgmt/2018-11-01/network/virtualwans.go index 0060bce2bcd7..62bc4f342b6b 100644 --- a/services/network/mgmt/2018-11-01/network/virtualwans.go +++ b/services/network/mgmt/2018-11-01/network/virtualwans.go @@ -225,6 +225,7 @@ func (client VirtualWansClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualWansClient) List(ctx context.Context) (result ListVirtualWAN result.lvwnr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "List", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualWansClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualWansClient) ListByResourceGroup(ctx context.Context, resourc result.lvwnr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualWansClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/vpnconnections.go b/services/network/mgmt/2018-11-01/network/vpnconnections.go index ea13413ca69f..20be1771e104 100644 --- a/services/network/mgmt/2018-11-01/network/vpnconnections.go +++ b/services/network/mgmt/2018-11-01/network/vpnconnections.go @@ -231,6 +231,7 @@ func (client VpnConnectionsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VpnConnectionsClient) ListByVpnGateway(ctx context.Context, resourc result.lvcr, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "ListByVpnGateway", resp, "Failure responding to request") + return } if result.lvcr.hasNextLink() && result.lvcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VpnConnectionsClient) listByVpnGatewayNextResults(ctx context.Conte result, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "listByVpnGatewayNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/vpngateways.go b/services/network/mgmt/2018-11-01/network/vpngateways.go index 78e59d837259..6a82bb35512f 100644 --- a/services/network/mgmt/2018-11-01/network/vpngateways.go +++ b/services/network/mgmt/2018-11-01/network/vpngateways.go @@ -225,6 +225,7 @@ func (client VpnGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnGatewaysClient) List(ctx context.Context) (result ListVpnGateway result.lvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnGatewaysClient) ListByResourceGroup(ctx context.Context, resourc result.lvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnGatewaysClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/vpnsites.go b/services/network/mgmt/2018-11-01/network/vpnsites.go index f78f1c42d735..e4785d121cde 100644 --- a/services/network/mgmt/2018-11-01/network/vpnsites.go +++ b/services/network/mgmt/2018-11-01/network/vpnsites.go @@ -225,6 +225,7 @@ func (client VpnSitesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnSitesClient) List(ctx context.Context) (result ListVpnSitesResul result.lvsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "List", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnSitesClient) listNextResults(ctx context.Context, lastResults Li result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnSitesClient) ListByResourceGroup(ctx context.Context, resourceGr result.lvsr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnSitesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-11-01/network/watchers.go b/services/network/mgmt/2018-11-01/network/watchers.go index 04cf2fcec188..23dd812b4081 100644 --- a/services/network/mgmt/2018-11-01/network/watchers.go +++ b/services/network/mgmt/2018-11-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -731,6 +733,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -1063,6 +1066,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -1134,6 +1138,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return @@ -1382,6 +1387,7 @@ func (client WatchersClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-12-01/network/applicationgateways.go b/services/network/mgmt/2018-12-01/network/applicationgateways.go index 5287713bd2a7..a9c91e988892 100644 --- a/services/network/mgmt/2018-12-01/network/applicationgateways.go +++ b/services/network/mgmt/2018-12-01/network/applicationgateways.go @@ -335,6 +335,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -409,6 +410,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte result, err = client.GetSslPredefinedPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return } return @@ -483,6 +485,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -546,6 +549,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -595,6 +599,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -657,6 +662,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -705,6 +711,7 @@ func (client ApplicationGatewaysClient) ListAvailableRequestHeaders(ctx context. result, err = client.ListAvailableRequestHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableRequestHeaders", resp, "Failure responding to request") + return } return @@ -775,6 +782,7 @@ func (client ApplicationGatewaysClient) ListAvailableResponseHeaders(ctx context result, err = client.ListAvailableResponseHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableResponseHeaders", resp, "Failure responding to request") + return } return @@ -845,6 +853,7 @@ func (client ApplicationGatewaysClient) ListAvailableServerVariables(ctx context result, err = client.ListAvailableServerVariablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableServerVariables", resp, "Failure responding to request") + return } return @@ -915,6 +924,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont result, err = client.ListAvailableSslOptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return } return @@ -986,6 +996,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return } if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { err = result.NextWithContext(ctx) @@ -1048,6 +1059,7 @@ func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextRe result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1096,6 +1108,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-12-01/network/applicationsecuritygroups.go b/services/network/mgmt/2018-12-01/network/applicationsecuritygroups.go index 43a54190e4bf..eb1d05e64a3e 100644 --- a/services/network/mgmt/2018-12-01/network/applicationsecuritygroups.go +++ b/services/network/mgmt/2018-12-01/network/applicationsecuritygroups.go @@ -226,6 +226,7 @@ func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resource result.asglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ApplicationSecurityGroupsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (resu result.asglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ApplicationSecurityGroupsClient) listAllNextResults(ctx context.Con result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/availabledelegations.go b/services/network/mgmt/2018-12-01/network/availabledelegations.go index 0bee568fc1bf..b1be6e344031 100644 --- a/services/network/mgmt/2018-12-01/network/availabledelegations.go +++ b/services/network/mgmt/2018-12-01/network/availabledelegations.go @@ -73,6 +73,7 @@ func (client AvailableDelegationsClient) List(ctx context.Context, location stri result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableDelegationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/availableendpointservices.go b/services/network/mgmt/2018-12-01/network/availableendpointservices.go index e2e24393ad3d..3de210bf2fb3 100644 --- a/services/network/mgmt/2018-12-01/network/availableendpointservices.go +++ b/services/network/mgmt/2018-12-01/network/availableendpointservices.go @@ -73,6 +73,7 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableEndpointServicesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2018-12-01/network/availableresourcegroupdelegations.go index 6b9147d7a7d7..81bb6d564004 100644 --- a/services/network/mgmt/2018-12-01/network/availableresourcegroupdelegations.go +++ b/services/network/mgmt/2018-12-01/network/availableresourcegroupdelegations.go @@ -75,6 +75,7 @@ func (client AvailableResourceGroupDelegationsClient) List(ctx context.Context, result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client AvailableResourceGroupDelegationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2018-12-01/network/azurefirewallfqdntags.go index 2e314381b92c..804a83d42f3e 100644 --- a/services/network/mgmt/2018-12-01/network/azurefirewallfqdntags.go +++ b/services/network/mgmt/2018-12-01/network/azurefirewallfqdntags.go @@ -71,6 +71,7 @@ func (client AzureFirewallFqdnTagsClient) ListAll(ctx context.Context) (result A result.afftlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "ListAll", resp, "Failure responding to request") + return } if result.afftlr.hasNextLink() && result.afftlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client AzureFirewallFqdnTagsClient) listAllNextResults(ctx context.Context result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/azurefirewalls.go b/services/network/mgmt/2018-12-01/network/azurefirewalls.go index 46fcd7363522..04af5c3c9fc1 100644 --- a/services/network/mgmt/2018-12-01/network/azurefirewalls.go +++ b/services/network/mgmt/2018-12-01/network/azurefirewalls.go @@ -225,6 +225,7 @@ func (client AzureFirewallsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client AzureFirewallsClient) List(ctx context.Context, resourceGroupName s result.aflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "List", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +365,7 @@ func (client AzureFirewallsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client AzureFirewallsClient) ListAll(ctx context.Context) (result AzureFir result.aflr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "ListAll", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client AzureFirewallsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/bgpservicecommunities.go b/services/network/mgmt/2018-12-01/network/bgpservicecommunities.go index 61ce92bbe3d0..c61c99261ddb 100644 --- a/services/network/mgmt/2018-12-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2018-12-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/client.go b/services/network/mgmt/2018-12-01/network/client.go index 4e39651d3c42..d163a1142cbd 100644 --- a/services/network/mgmt/2018-12-01/network/client.go +++ b/services/network/mgmt/2018-12-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client BaseClient) SupportedSecurityProviders(ctx context.Context, resourc result, err = client.SupportedSecurityProvidersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "SupportedSecurityProviders", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-12-01/network/connectionmonitors.go b/services/network/mgmt/2018-12-01/network/connectionmonitors.go index 5cac711bcf11..3515a76952f1 100644 --- a/services/network/mgmt/2018-12-01/network/connectionmonitors.go +++ b/services/network/mgmt/2018-12-01/network/connectionmonitors.go @@ -241,6 +241,7 @@ func (client ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ConnectionMonitorsClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-12-01/network/ddoscustompolicies.go b/services/network/mgmt/2018-12-01/network/ddoscustompolicies.go index 7575d8e1b9a9..e2346b01b198 100644 --- a/services/network/mgmt/2018-12-01/network/ddoscustompolicies.go +++ b/services/network/mgmt/2018-12-01/network/ddoscustompolicies.go @@ -226,6 +226,7 @@ func (client DdosCustomPoliciesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-12-01/network/ddosprotectionplans.go b/services/network/mgmt/2018-12-01/network/ddosprotectionplans.go index e087993d958f..eac7180c81e6 100644 --- a/services/network/mgmt/2018-12-01/network/ddosprotectionplans.go +++ b/services/network/mgmt/2018-12-01/network/ddosprotectionplans.go @@ -229,6 +229,7 @@ func (client DdosProtectionPlansClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DdosProtectionPlansClient) List(ctx context.Context) (result DdosPr result.dpplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client DdosProtectionPlansClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, result.dpplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client DdosProtectionPlansClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/defaultsecurityrules.go b/services/network/mgmt/2018-12-01/network/defaultsecurityrules.go index a286a126c93d..08e3585dad9a 100644 --- a/services/network/mgmt/2018-12-01/network/defaultsecurityrules.go +++ b/services/network/mgmt/2018-12-01/network/defaultsecurityrules.go @@ -74,6 +74,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2018-12-01/network/expressroutecircuitauthorizations.go index d52d0e697570..3c1174020ab5 100644 --- a/services/network/mgmt/2018-12-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2018-12-01/network/expressroutecircuitauthorizations.go @@ -233,6 +233,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2018-12-01/network/expressroutecircuitconnections.go index 40b7e10cadc2..63cad02d495d 100644 --- a/services/network/mgmt/2018-12-01/network/expressroutecircuitconnections.go +++ b/services/network/mgmt/2018-12-01/network/expressroutecircuitconnections.go @@ -237,6 +237,7 @@ func (client ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client ExpressRouteCircuitConnectionsClient) List(ctx context.Context, res result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client ExpressRouteCircuitConnectionsClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2018-12-01/network/expressroutecircuitpeerings.go index 27a5ca9c4f55..f93b76718421 100644 --- a/services/network/mgmt/2018-12-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2018-12-01/network/expressroutecircuitpeerings.go @@ -243,6 +243,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +321,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/expressroutecircuits.go b/services/network/mgmt/2018-12-01/network/expressroutecircuits.go index 4ccaa2c9c6ef..7b1dcde359ef 100644 --- a/services/network/mgmt/2018-12-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2018-12-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/expressrouteconnections.go b/services/network/mgmt/2018-12-01/network/expressrouteconnections.go index c8f1361b477b..556ac60ae559 100644 --- a/services/network/mgmt/2018-12-01/network/expressrouteconnections.go +++ b/services/network/mgmt/2018-12-01/network/expressrouteconnections.go @@ -239,6 +239,7 @@ func (client ExpressRouteConnectionsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client ExpressRouteConnectionsClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-12-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2018-12-01/network/expressroutecrossconnectionpeerings.go index 433571e6666a..52e1696e527a 100644 --- a/services/network/mgmt/2018-12-01/network/expressroutecrossconnectionpeerings.go +++ b/services/network/mgmt/2018-12-01/network/expressroutecrossconnectionpeerings.go @@ -245,6 +245,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context result.erccpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "List", resp, "Failure responding to request") + return } if result.erccpl.hasNextLink() && result.erccpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) listNextResults(ctx cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/expressroutecrossconnections.go b/services/network/mgmt/2018-12-01/network/expressroutecrossconnections.go index c6a281408637..6f279faddd99 100644 --- a/services/network/mgmt/2018-12-01/network/expressroutecrossconnections.go +++ b/services/network/mgmt/2018-12-01/network/expressroutecrossconnections.go @@ -152,6 +152,7 @@ func (client ExpressRouteCrossConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ExpressRouteCrossConnectionsClient) List(ctx context.Context) (resu result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -287,6 +289,7 @@ func (client ExpressRouteCrossConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -418,6 +421,7 @@ func (client ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context result.ercclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +485,7 @@ func (client ExpressRouteCrossConnectionsClient) listByResourceGroupNextResults( result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/expressroutegateways.go b/services/network/mgmt/2018-12-01/network/expressroutegateways.go index a9f06365f0f7..5128d5a8f53c 100644 --- a/services/network/mgmt/2018-12-01/network/expressroutegateways.go +++ b/services/network/mgmt/2018-12-01/network/expressroutegateways.go @@ -235,6 +235,7 @@ func (client ExpressRouteGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client ExpressRouteGatewaysClient) ListByResourceGroup(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -380,6 +382,7 @@ func (client ExpressRouteGatewaysClient) ListBySubscription(ctx context.Context) result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-12-01/network/expressroutelinks.go b/services/network/mgmt/2018-12-01/network/expressroutelinks.go index 03f4ea3492b6..8b620bfa81aa 100644 --- a/services/network/mgmt/2018-12-01/network/expressroutelinks.go +++ b/services/network/mgmt/2018-12-01/network/expressroutelinks.go @@ -74,6 +74,7 @@ func (client ExpressRouteLinksClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ExpressRouteLinksClient) List(ctx context.Context, resourceGroupNam result.erllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "List", resp, "Failure responding to request") + return } if result.erllr.hasNextLink() && result.erllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client ExpressRouteLinksClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/expressrouteports.go b/services/network/mgmt/2018-12-01/network/expressrouteports.go index b1b0c3966151..73772761c9cb 100644 --- a/services/network/mgmt/2018-12-01/network/expressrouteports.go +++ b/services/network/mgmt/2018-12-01/network/expressrouteports.go @@ -226,6 +226,7 @@ func (client ExpressRoutePortsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client ExpressRoutePortsClient) List(ctx context.Context) (result ExpressR result.erplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "List", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -361,6 +363,7 @@ func (client ExpressRoutePortsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, r result.erplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ExpressRoutePortsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/expressrouteportslocations.go b/services/network/mgmt/2018-12-01/network/expressrouteportslocations.go index 4e7d07d85fb0..74b81a78d028 100644 --- a/services/network/mgmt/2018-12-01/network/expressrouteportslocations.go +++ b/services/network/mgmt/2018-12-01/network/expressrouteportslocations.go @@ -73,6 +73,7 @@ func (client ExpressRoutePortsLocationsClient) Get(ctx context.Context, location result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client ExpressRoutePortsLocationsClient) List(ctx context.Context) (result result.erpllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "List", resp, "Failure responding to request") + return } if result.erpllr.hasNextLink() && result.erpllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -208,6 +210,7 @@ func (client ExpressRoutePortsLocationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2018-12-01/network/expressrouteserviceproviders.go index 699e89ea5a24..9cc9688a758b 100644 --- a/services/network/mgmt/2018-12-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2018-12-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2018-12-01/network/hubvirtualnetworkconnections.go index 57e30951f834..8d69cc59eecf 100644 --- a/services/network/mgmt/2018-12-01/network/hubvirtualnetworkconnections.go +++ b/services/network/mgmt/2018-12-01/network/hubvirtualnetworkconnections.go @@ -74,6 +74,7 @@ func (client HubVirtualNetworkConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client HubVirtualNetworkConnectionsClient) List(ctx context.Context, resou result.lhvncr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "List", resp, "Failure responding to request") + return } if result.lhvncr.hasNextLink() && result.lhvncr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client HubVirtualNetworkConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/inboundnatrules.go b/services/network/mgmt/2018-12-01/network/inboundnatrules.go index 416581510133..c66427a0cce4 100644 --- a/services/network/mgmt/2018-12-01/network/inboundnatrules.go +++ b/services/network/mgmt/2018-12-01/network/inboundnatrules.go @@ -250,6 +250,7 @@ func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName result.inrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return } if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +396,7 @@ func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/interfaceendpoints.go b/services/network/mgmt/2018-12-01/network/interfaceendpoints.go index 76a813b0e12b..328d9da42e85 100644 --- a/services/network/mgmt/2018-12-01/network/interfaceendpoints.go +++ b/services/network/mgmt/2018-12-01/network/interfaceendpoints.go @@ -226,6 +226,7 @@ func (client InterfaceEndpointsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client InterfaceEndpointsClient) List(ctx context.Context, resourceGroupNa result.ielr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsClient", "List", resp, "Failure responding to request") + return } if result.ielr.hasNextLink() && result.ielr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client InterfaceEndpointsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client InterfaceEndpointsClient) ListBySubscription(ctx context.Context) ( result.ielr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ielr.hasNextLink() && result.ielr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client InterfaceEndpointsClient) listBySubscriptionNextResults(ctx context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/interfaceipconfigurations.go b/services/network/mgmt/2018-12-01/network/interfaceipconfigurations.go index e6810e847f55..e877b7926999 100644 --- a/services/network/mgmt/2018-12-01/network/interfaceipconfigurations.go +++ b/services/network/mgmt/2018-12-01/network/interfaceipconfigurations.go @@ -74,6 +74,7 @@ func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resource result.iiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/interfaceloadbalancers.go b/services/network/mgmt/2018-12-01/network/interfaceloadbalancers.go index 01b3ce6883a1..6b6d658b9978 100644 --- a/services/network/mgmt/2018-12-01/network/interfaceloadbalancers.go +++ b/services/network/mgmt/2018-12-01/network/interfaceloadbalancers.go @@ -74,6 +74,7 @@ func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGro result.ilblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/interfacesgroup.go b/services/network/mgmt/2018-12-01/network/interfacesgroup.go index a51114822673..ea5992689291 100644 --- a/services/network/mgmt/2018-12-01/network/interfacesgroup.go +++ b/services/network/mgmt/2018-12-01/network/interfacesgroup.go @@ -225,6 +225,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -383,6 +384,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx cont result, err = client.GetVirtualMachineScaleSetIPConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure responding to request") + return } return @@ -467,6 +469,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -547,6 +550,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -610,6 +614,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -659,6 +664,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -721,6 +727,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -852,6 +859,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx co result.iiclr, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -921,6 +929,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetIPConfigurationsNextRes result, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -973,6 +982,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1037,6 +1047,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1091,6 +1102,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1156,6 +1168,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/interfacetapconfigurations.go b/services/network/mgmt/2018-12-01/network/interfacetapconfigurations.go index 04362f47a4f3..c447589384f9 100644 --- a/services/network/mgmt/2018-12-01/network/interfacetapconfigurations.go +++ b/services/network/mgmt/2018-12-01/network/interfacetapconfigurations.go @@ -267,6 +267,7 @@ func (client InterfaceTapConfigurationsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +345,7 @@ func (client InterfaceTapConfigurationsClient) List(ctx context.Context, resourc result.itclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.itclr.hasNextLink() && result.itclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -408,6 +410,7 @@ func (client InterfaceTapConfigurationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2018-12-01/network/loadbalancerbackendaddresspools.go index cfff1fc381b7..72b938940e15 100644 --- a/services/network/mgmt/2018-12-01/network/loadbalancerbackendaddresspools.go +++ b/services/network/mgmt/2018-12-01/network/loadbalancerbackendaddresspools.go @@ -74,6 +74,7 @@ func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, re result.lbbaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return } if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2018-12-01/network/loadbalancerfrontendipconfigurations.go index a3a9bbb6ac13..bc036b8f83bc 100644 --- a/services/network/mgmt/2018-12-01/network/loadbalancerfrontendipconfigurations.go +++ b/services/network/mgmt/2018-12-01/network/loadbalancerfrontendipconfigurations.go @@ -75,6 +75,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Contex result.lbficlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2018-12-01/network/loadbalancerloadbalancingrules.go index e7b91b10d90b..00b87117aefc 100644 --- a/services/network/mgmt/2018-12-01/network/loadbalancerloadbalancingrules.go +++ b/services/network/mgmt/2018-12-01/network/loadbalancerloadbalancingrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, res result.lblbrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return } if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2018-12-01/network/loadbalancernetworkinterfaces.go index 7aa11406a3a6..a56653d3f1bb 100644 --- a/services/network/mgmt/2018-12-01/network/loadbalancernetworkinterfaces.go +++ b/services/network/mgmt/2018-12-01/network/loadbalancernetworkinterfaces.go @@ -74,6 +74,7 @@ func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, reso result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2018-12-01/network/loadbalanceroutboundrules.go index 77c6ebfcd000..1c073a6e28b9 100644 --- a/services/network/mgmt/2018-12-01/network/loadbalanceroutboundrules.go +++ b/services/network/mgmt/2018-12-01/network/loadbalanceroutboundrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerOutboundRulesClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerOutboundRulesClient) List(ctx context.Context, resource result.lborlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "List", resp, "Failure responding to request") + return } if result.lborlr.hasNextLink() && result.lborlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerOutboundRulesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/loadbalancerprobes.go b/services/network/mgmt/2018-12-01/network/loadbalancerprobes.go index 7718c0fdef2e..2dccad644a78 100644 --- a/services/network/mgmt/2018-12-01/network/loadbalancerprobes.go +++ b/services/network/mgmt/2018-12-01/network/loadbalancerprobes.go @@ -74,6 +74,7 @@ func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupNa result.lbplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return } if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/loadbalancers.go b/services/network/mgmt/2018-12-01/network/loadbalancers.go index acae4fe6c040..b1f4edfae2f9 100644 --- a/services/network/mgmt/2018-12-01/network/loadbalancers.go +++ b/services/network/mgmt/2018-12-01/network/loadbalancers.go @@ -225,6 +225,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/localnetworkgateways.go b/services/network/mgmt/2018-12-01/network/localnetworkgateways.go index 2c908f85e7d3..e3d90d87bab7 100644 --- a/services/network/mgmt/2018-12-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2018-12-01/network/localnetworkgateways.go @@ -246,6 +246,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/operations.go b/services/network/mgmt/2018-12-01/network/operations.go index 5892b39beef9..f94bc96e2f7e 100644 --- a/services/network/mgmt/2018-12-01/network/operations.go +++ b/services/network/mgmt/2018-12-01/network/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/p2svpngateways.go b/services/network/mgmt/2018-12-01/network/p2svpngateways.go index f24075e392dc..fb369986fce4 100644 --- a/services/network/mgmt/2018-12-01/network/p2svpngateways.go +++ b/services/network/mgmt/2018-12-01/network/p2svpngateways.go @@ -303,6 +303,7 @@ func (client P2sVpnGatewaysClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -376,6 +377,7 @@ func (client P2sVpnGatewaysClient) List(ctx context.Context) (result ListP2SVpnG result.lpvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -438,6 +440,7 @@ func (client P2sVpnGatewaysClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -489,6 +492,7 @@ func (client P2sVpnGatewaysClient) ListByResourceGroup(ctx context.Context, reso result.lpvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -552,6 +556,7 @@ func (client P2sVpnGatewaysClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/p2svpnserverconfigurations.go b/services/network/mgmt/2018-12-01/network/p2svpnserverconfigurations.go index 9464571dd685..4ff6580225e0 100644 --- a/services/network/mgmt/2018-12-01/network/p2svpnserverconfigurations.go +++ b/services/network/mgmt/2018-12-01/network/p2svpnserverconfigurations.go @@ -232,6 +232,7 @@ func (client P2sVpnServerConfigurationsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnServerConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client P2sVpnServerConfigurationsClient) ListByVirtualWan(ctx context.Cont result.lpvscr, err = client.ListByVirtualWanResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnServerConfigurationsClient", "ListByVirtualWan", resp, "Failure responding to request") + return } if result.lpvscr.hasNextLink() && result.lpvscr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client P2sVpnServerConfigurationsClient) listByVirtualWanNextResults(ctx c result, err = client.ListByVirtualWanResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnServerConfigurationsClient", "listByVirtualWanNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/packetcaptures.go b/services/network/mgmt/2018-12-01/network/packetcaptures.go index b984be4744a2..710f589d1511 100644 --- a/services/network/mgmt/2018-12-01/network/packetcaptures.go +++ b/services/network/mgmt/2018-12-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-12-01/network/peerexpressroutecircuitconnections.go b/services/network/mgmt/2018-12-01/network/peerexpressroutecircuitconnections.go index 852f6cf62d10..908952ff3588 100644 --- a/services/network/mgmt/2018-12-01/network/peerexpressroutecircuitconnections.go +++ b/services/network/mgmt/2018-12-01/network/peerexpressroutecircuitconnections.go @@ -76,6 +76,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) List(ctx context.Context, result.percclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.percclr.hasNextLink() && result.percclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -220,6 +222,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) listNextResults(ctx conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/profiles.go b/services/network/mgmt/2018-12-01/network/profiles.go index 1fecf9b14ae1..fbeae4bec9f3 100644 --- a/services/network/mgmt/2018-12-01/network/profiles.go +++ b/services/network/mgmt/2018-12-01/network/profiles.go @@ -73,6 +73,7 @@ func (client ProfilesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +305,7 @@ func (client ProfilesClient) List(ctx context.Context, resourceGroupName string) result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +369,7 @@ func (client ProfilesClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +419,7 @@ func (client ProfilesClient) ListAll(ctx context.Context) (result ProfileListRes result.plr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "ListAll", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +482,7 @@ func (client ProfilesClient) listAllNextResults(ctx context.Context, lastResults result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -529,6 +535,7 @@ func (client ProfilesClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-12-01/network/publicipaddresses.go b/services/network/mgmt/2018-12-01/network/publicipaddresses.go index 19af9010a627..02f8bbfe05c0 100644 --- a/services/network/mgmt/2018-12-01/network/publicipaddresses.go +++ b/services/network/mgmt/2018-12-01/network/publicipaddresses.go @@ -238,6 +238,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -403,6 +405,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +469,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +519,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -577,6 +582,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +636,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -694,6 +701,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +758,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -817,6 +826,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/publicipprefixes.go b/services/network/mgmt/2018-12-01/network/publicipprefixes.go index 525d67ebd21a..47cdc281633d 100644 --- a/services/network/mgmt/2018-12-01/network/publicipprefixes.go +++ b/services/network/mgmt/2018-12-01/network/publicipprefixes.go @@ -226,6 +226,7 @@ func (client PublicIPPrefixesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client PublicIPPrefixesClient) List(ctx context.Context, resourceGroupName result.piplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "List", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client PublicIPPrefixesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client PublicIPPrefixesClient) ListAll(ctx context.Context) (result Public result.piplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "ListAll", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client PublicIPPrefixesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/routefilterrules.go b/services/network/mgmt/2018-12-01/network/routefilterrules.go index e0af50164f37..71422f2c106a 100644 --- a/services/network/mgmt/2018-12-01/network/routefilterrules.go +++ b/services/network/mgmt/2018-12-01/network/routefilterrules.go @@ -241,6 +241,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/routefilters.go b/services/network/mgmt/2018-12-01/network/routefilters.go index 8ea96ea5ca61..df6b61429f6a 100644 --- a/services/network/mgmt/2018-12-01/network/routefilters.go +++ b/services/network/mgmt/2018-12-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/routes.go b/services/network/mgmt/2018-12-01/network/routes.go index a3ea8d830279..9abf596ef722 100644 --- a/services/network/mgmt/2018-12-01/network/routes.go +++ b/services/network/mgmt/2018-12-01/network/routes.go @@ -229,6 +229,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/routetables.go b/services/network/mgmt/2018-12-01/network/routetables.go index 0e18600b2b1b..aaa96d21ef4d 100644 --- a/services/network/mgmt/2018-12-01/network/routetables.go +++ b/services/network/mgmt/2018-12-01/network/routetables.go @@ -225,6 +225,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/securitygroups.go b/services/network/mgmt/2018-12-01/network/securitygroups.go index 2de92d91885c..ad65fed9e37f 100644 --- a/services/network/mgmt/2018-12-01/network/securitygroups.go +++ b/services/network/mgmt/2018-12-01/network/securitygroups.go @@ -225,6 +225,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/securityrules.go b/services/network/mgmt/2018-12-01/network/securityrules.go index 14e60bc8c802..1a713792767f 100644 --- a/services/network/mgmt/2018-12-01/network/securityrules.go +++ b/services/network/mgmt/2018-12-01/network/securityrules.go @@ -229,6 +229,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/serviceendpointpolicies.go b/services/network/mgmt/2018-12-01/network/serviceendpointpolicies.go index b37065071361..e0766839a632 100644 --- a/services/network/mgmt/2018-12-01/network/serviceendpointpolicies.go +++ b/services/network/mgmt/2018-12-01/network/serviceendpointpolicies.go @@ -226,6 +226,7 @@ func (client ServiceEndpointPoliciesClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ServiceEndpointPoliciesClient) List(ctx context.Context) (result Se result.seplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "List", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ServiceEndpointPoliciesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Cont result.seplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client ServiceEndpointPoliciesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2018-12-01/network/serviceendpointpolicydefinitions.go index 91bea5a462d8..01e62f7559a7 100644 --- a/services/network/mgmt/2018-12-01/network/serviceendpointpolicydefinitions.go +++ b/services/network/mgmt/2018-12-01/network/serviceendpointpolicydefinitions.go @@ -231,6 +231,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) ListByResourceGroup(ctx con result.sepdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sepdlr.hasNextLink() && result.sepdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) listByResourceGroupNextResu result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/subnets.go b/services/network/mgmt/2018-12-01/network/subnets.go index 548ad25f2e51..1e22713261ef 100644 --- a/services/network/mgmt/2018-12-01/network/subnets.go +++ b/services/network/mgmt/2018-12-01/network/subnets.go @@ -230,6 +230,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/usages.go b/services/network/mgmt/2018-12-01/network/usages.go index bef4ab737b67..2fa2134a5a89 100644 --- a/services/network/mgmt/2018-12-01/network/usages.go +++ b/services/network/mgmt/2018-12-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/virtualhubs.go b/services/network/mgmt/2018-12-01/network/virtualhubs.go index 24c5a94eb075..e72fa02e72d3 100644 --- a/services/network/mgmt/2018-12-01/network/virtualhubs.go +++ b/services/network/mgmt/2018-12-01/network/virtualhubs.go @@ -225,6 +225,7 @@ func (client VirtualHubsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualHubsClient) List(ctx context.Context) (result ListVirtualHub result.lvhr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "List", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualHubsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualHubsClient) ListByResourceGroup(ctx context.Context, resourc result.lvhr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualHubsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2018-12-01/network/virtualnetworkgatewayconnections.go index f90f0d03f3e7..68255f71e196 100644 --- a/services/network/mgmt/2018-12-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2018-12-01/network/virtualnetworkgatewayconnections.go @@ -239,6 +239,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/virtualnetworkgateways.go b/services/network/mgmt/2018-12-01/network/virtualnetworkgateways.go index 2c88db36ca1b..26f6adf4b90c 100644 --- a/services/network/mgmt/2018-12-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2018-12-01/network/virtualnetworkgateways.go @@ -390,6 +390,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -851,6 +852,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -914,6 +916,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -966,6 +969,7 @@ func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, result.vnglcr, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return } if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1030,6 +1034,7 @@ func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx contex result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1323,6 +1328,7 @@ func (client VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Conte result, err = client.SupportedVpnDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", resp, "Failure responding to request") + return } return @@ -1478,6 +1484,7 @@ func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx cont result, err = client.VpnDeviceConfigurationScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-12-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2018-12-01/network/virtualnetworkpeerings.go index 4815f8168503..cf97474bcaa2 100644 --- a/services/network/mgmt/2018-12-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2018-12-01/network/virtualnetworkpeerings.go @@ -231,6 +231,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/virtualnetworks.go b/services/network/mgmt/2018-12-01/network/virtualnetworks.go index 5761da91950c..5b3885711461 100644 --- a/services/network/mgmt/2018-12-01/network/virtualnetworks.go +++ b/services/network/mgmt/2018-12-01/network/virtualnetworks.go @@ -73,6 +73,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -380,6 +382,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -443,6 +446,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -492,6 +496,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -554,6 +559,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -606,6 +612,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -670,6 +677,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/virtualnetworktaps.go b/services/network/mgmt/2018-12-01/network/virtualnetworktaps.go index 73d0b0b94c55..cd9946423399 100644 --- a/services/network/mgmt/2018-12-01/network/virtualnetworktaps.go +++ b/services/network/mgmt/2018-12-01/network/virtualnetworktaps.go @@ -257,6 +257,7 @@ func (client VirtualNetworkTapsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client VirtualNetworkTapsClient) ListAll(ctx context.Context) (result Virt result.vntlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListAll", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -392,6 +394,7 @@ func (client VirtualNetworkTapsClient) listAllNextResults(ctx context.Context, l result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +446,7 @@ func (client VirtualNetworkTapsClient) ListByResourceGroup(ctx context.Context, result.vntlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -506,6 +510,7 @@ func (client VirtualNetworkTapsClient) listByResourceGroupNextResults(ctx contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/virtualwans.go b/services/network/mgmt/2018-12-01/network/virtualwans.go index 10938d2ffcb8..2d56a86721fc 100644 --- a/services/network/mgmt/2018-12-01/network/virtualwans.go +++ b/services/network/mgmt/2018-12-01/network/virtualwans.go @@ -225,6 +225,7 @@ func (client VirtualWansClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualWansClient) List(ctx context.Context) (result ListVirtualWAN result.lvwnr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "List", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualWansClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualWansClient) ListByResourceGroup(ctx context.Context, resourc result.lvwnr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualWansClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/vpnconnections.go b/services/network/mgmt/2018-12-01/network/vpnconnections.go index 9463bfbdcb1d..0ebd0de75752 100644 --- a/services/network/mgmt/2018-12-01/network/vpnconnections.go +++ b/services/network/mgmt/2018-12-01/network/vpnconnections.go @@ -231,6 +231,7 @@ func (client VpnConnectionsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VpnConnectionsClient) ListByVpnGateway(ctx context.Context, resourc result.lvcr, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "ListByVpnGateway", resp, "Failure responding to request") + return } if result.lvcr.hasNextLink() && result.lvcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VpnConnectionsClient) listByVpnGatewayNextResults(ctx context.Conte result, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "listByVpnGatewayNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/vpngateways.go b/services/network/mgmt/2018-12-01/network/vpngateways.go index f32f3cf1538f..ff02e3dccb1b 100644 --- a/services/network/mgmt/2018-12-01/network/vpngateways.go +++ b/services/network/mgmt/2018-12-01/network/vpngateways.go @@ -225,6 +225,7 @@ func (client VpnGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnGatewaysClient) List(ctx context.Context) (result ListVpnGateway result.lvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnGatewaysClient) ListByResourceGroup(ctx context.Context, resourc result.lvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnGatewaysClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/vpnsites.go b/services/network/mgmt/2018-12-01/network/vpnsites.go index 284ac723ed57..d038517b64fc 100644 --- a/services/network/mgmt/2018-12-01/network/vpnsites.go +++ b/services/network/mgmt/2018-12-01/network/vpnsites.go @@ -225,6 +225,7 @@ func (client VpnSitesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnSitesClient) List(ctx context.Context) (result ListVpnSitesResul result.lvsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "List", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnSitesClient) listNextResults(ctx context.Context, lastResults Li result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnSitesClient) ListByResourceGroup(ctx context.Context, resourceGr result.lvsr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnSitesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2018-12-01/network/watchers.go b/services/network/mgmt/2018-12-01/network/watchers.go index 858314ed850e..0abfe6194a57 100644 --- a/services/network/mgmt/2018-12-01/network/watchers.go +++ b/services/network/mgmt/2018-12-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -731,6 +733,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -1063,6 +1066,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -1134,6 +1138,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return @@ -1382,6 +1387,7 @@ func (client WatchersClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2018-12-01/network/webapplicationfirewallpolicies.go b/services/network/mgmt/2018-12-01/network/webapplicationfirewallpolicies.go index bccdf938e919..269722c2b449 100644 --- a/services/network/mgmt/2018-12-01/network/webapplicationfirewallpolicies.go +++ b/services/network/mgmt/2018-12-01/network/webapplicationfirewallpolicies.go @@ -81,6 +81,7 @@ func (client WebApplicationFirewallPoliciesClient) CreateOrUpdate(ctx context.Co result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -244,6 +245,7 @@ func (client WebApplicationFirewallPoliciesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +321,7 @@ func (client WebApplicationFirewallPoliciesClient) List(ctx context.Context, res result.wafplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "List", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +385,7 @@ func (client WebApplicationFirewallPoliciesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -431,6 +435,7 @@ func (client WebApplicationFirewallPoliciesClient) ListAll(ctx context.Context) result.wafplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "ListAll", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -493,6 +498,7 @@ func (client WebApplicationFirewallPoliciesClient) listAllNextResults(ctx contex result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/applicationgateways.go b/services/network/mgmt/2019-02-01/network/applicationgateways.go index 37cb9a0bfe6d..bf99e93b65d6 100644 --- a/services/network/mgmt/2019-02-01/network/applicationgateways.go +++ b/services/network/mgmt/2019-02-01/network/applicationgateways.go @@ -416,6 +416,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -490,6 +491,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte result, err = client.GetSslPredefinedPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return } return @@ -564,6 +566,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +630,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -676,6 +680,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -738,6 +743,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -786,6 +792,7 @@ func (client ApplicationGatewaysClient) ListAvailableRequestHeaders(ctx context. result, err = client.ListAvailableRequestHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableRequestHeaders", resp, "Failure responding to request") + return } return @@ -856,6 +863,7 @@ func (client ApplicationGatewaysClient) ListAvailableResponseHeaders(ctx context result, err = client.ListAvailableResponseHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableResponseHeaders", resp, "Failure responding to request") + return } return @@ -926,6 +934,7 @@ func (client ApplicationGatewaysClient) ListAvailableServerVariables(ctx context result, err = client.ListAvailableServerVariablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableServerVariables", resp, "Failure responding to request") + return } return @@ -996,6 +1005,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont result, err = client.ListAvailableSslOptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return } return @@ -1067,6 +1077,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return } if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { err = result.NextWithContext(ctx) @@ -1129,6 +1140,7 @@ func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextRe result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1177,6 +1189,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-02-01/network/applicationsecuritygroups.go b/services/network/mgmt/2019-02-01/network/applicationsecuritygroups.go index 1ac7b8ba9adf..f934c20971c1 100644 --- a/services/network/mgmt/2019-02-01/network/applicationsecuritygroups.go +++ b/services/network/mgmt/2019-02-01/network/applicationsecuritygroups.go @@ -226,6 +226,7 @@ func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resource result.asglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ApplicationSecurityGroupsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (resu result.asglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ApplicationSecurityGroupsClient) listAllNextResults(ctx context.Con result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/availabledelegations.go b/services/network/mgmt/2019-02-01/network/availabledelegations.go index bd61e7cbf788..96697016722c 100644 --- a/services/network/mgmt/2019-02-01/network/availabledelegations.go +++ b/services/network/mgmt/2019-02-01/network/availabledelegations.go @@ -73,6 +73,7 @@ func (client AvailableDelegationsClient) List(ctx context.Context, location stri result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableDelegationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/availableendpointservices.go b/services/network/mgmt/2019-02-01/network/availableendpointservices.go index 085919768de6..3b6a5c19c9a3 100644 --- a/services/network/mgmt/2019-02-01/network/availableendpointservices.go +++ b/services/network/mgmt/2019-02-01/network/availableendpointservices.go @@ -73,6 +73,7 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableEndpointServicesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2019-02-01/network/availableresourcegroupdelegations.go index d43b05528724..30b084b8998a 100644 --- a/services/network/mgmt/2019-02-01/network/availableresourcegroupdelegations.go +++ b/services/network/mgmt/2019-02-01/network/availableresourcegroupdelegations.go @@ -75,6 +75,7 @@ func (client AvailableResourceGroupDelegationsClient) List(ctx context.Context, result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client AvailableResourceGroupDelegationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2019-02-01/network/azurefirewallfqdntags.go index b13abc05d906..9e9efb79f77e 100644 --- a/services/network/mgmt/2019-02-01/network/azurefirewallfqdntags.go +++ b/services/network/mgmt/2019-02-01/network/azurefirewallfqdntags.go @@ -71,6 +71,7 @@ func (client AzureFirewallFqdnTagsClient) ListAll(ctx context.Context) (result A result.afftlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "ListAll", resp, "Failure responding to request") + return } if result.afftlr.hasNextLink() && result.afftlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client AzureFirewallFqdnTagsClient) listAllNextResults(ctx context.Context result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/azurefirewalls.go b/services/network/mgmt/2019-02-01/network/azurefirewalls.go index 8fbd28f8c34c..3bd48f9db71e 100644 --- a/services/network/mgmt/2019-02-01/network/azurefirewalls.go +++ b/services/network/mgmt/2019-02-01/network/azurefirewalls.go @@ -225,6 +225,7 @@ func (client AzureFirewallsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client AzureFirewallsClient) List(ctx context.Context, resourceGroupName s result.aflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "List", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +365,7 @@ func (client AzureFirewallsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client AzureFirewallsClient) ListAll(ctx context.Context) (result AzureFir result.aflr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "ListAll", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client AzureFirewallsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/bgpservicecommunities.go b/services/network/mgmt/2019-02-01/network/bgpservicecommunities.go index 4e0a98a8c5a6..c4bde8ff8a24 100644 --- a/services/network/mgmt/2019-02-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2019-02-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/client.go b/services/network/mgmt/2019-02-01/network/client.go index 32171374c90a..5653de474b1a 100644 --- a/services/network/mgmt/2019-02-01/network/client.go +++ b/services/network/mgmt/2019-02-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client BaseClient) SupportedSecurityProviders(ctx context.Context, resourc result, err = client.SupportedSecurityProvidersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "SupportedSecurityProviders", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-02-01/network/connectionmonitors.go b/services/network/mgmt/2019-02-01/network/connectionmonitors.go index 6f8ea4d23fcf..ff3699b9fddc 100644 --- a/services/network/mgmt/2019-02-01/network/connectionmonitors.go +++ b/services/network/mgmt/2019-02-01/network/connectionmonitors.go @@ -241,6 +241,7 @@ func (client ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ConnectionMonitorsClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-02-01/network/ddoscustompolicies.go b/services/network/mgmt/2019-02-01/network/ddoscustompolicies.go index 52e875fd0dcd..c5334b279051 100644 --- a/services/network/mgmt/2019-02-01/network/ddoscustompolicies.go +++ b/services/network/mgmt/2019-02-01/network/ddoscustompolicies.go @@ -226,6 +226,7 @@ func (client DdosCustomPoliciesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-02-01/network/ddosprotectionplans.go b/services/network/mgmt/2019-02-01/network/ddosprotectionplans.go index c398e0580b95..83d70ce9c7fd 100644 --- a/services/network/mgmt/2019-02-01/network/ddosprotectionplans.go +++ b/services/network/mgmt/2019-02-01/network/ddosprotectionplans.go @@ -229,6 +229,7 @@ func (client DdosProtectionPlansClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DdosProtectionPlansClient) List(ctx context.Context) (result DdosPr result.dpplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client DdosProtectionPlansClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, result.dpplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client DdosProtectionPlansClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/defaultsecurityrules.go b/services/network/mgmt/2019-02-01/network/defaultsecurityrules.go index 473c4f8dda78..1545aba4bbcf 100644 --- a/services/network/mgmt/2019-02-01/network/defaultsecurityrules.go +++ b/services/network/mgmt/2019-02-01/network/defaultsecurityrules.go @@ -74,6 +74,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2019-02-01/network/expressroutecircuitauthorizations.go index ced06ac4b3a7..806c35a37d60 100644 --- a/services/network/mgmt/2019-02-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2019-02-01/network/expressroutecircuitauthorizations.go @@ -233,6 +233,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2019-02-01/network/expressroutecircuitconnections.go index c51471c47047..f180f297e3ec 100644 --- a/services/network/mgmt/2019-02-01/network/expressroutecircuitconnections.go +++ b/services/network/mgmt/2019-02-01/network/expressroutecircuitconnections.go @@ -237,6 +237,7 @@ func (client ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client ExpressRouteCircuitConnectionsClient) List(ctx context.Context, res result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client ExpressRouteCircuitConnectionsClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2019-02-01/network/expressroutecircuitpeerings.go index 2c12b2f78dab..c3d2bc8eed9c 100644 --- a/services/network/mgmt/2019-02-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2019-02-01/network/expressroutecircuitpeerings.go @@ -243,6 +243,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +321,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/expressroutecircuits.go b/services/network/mgmt/2019-02-01/network/expressroutecircuits.go index c3101f438ba0..4363755cedbe 100644 --- a/services/network/mgmt/2019-02-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2019-02-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/expressrouteconnections.go b/services/network/mgmt/2019-02-01/network/expressrouteconnections.go index 6694f6a1c342..31c8e53d00da 100644 --- a/services/network/mgmt/2019-02-01/network/expressrouteconnections.go +++ b/services/network/mgmt/2019-02-01/network/expressrouteconnections.go @@ -239,6 +239,7 @@ func (client ExpressRouteConnectionsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client ExpressRouteConnectionsClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-02-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2019-02-01/network/expressroutecrossconnectionpeerings.go index e92a8b9921af..c1fe4fd365c0 100644 --- a/services/network/mgmt/2019-02-01/network/expressroutecrossconnectionpeerings.go +++ b/services/network/mgmt/2019-02-01/network/expressroutecrossconnectionpeerings.go @@ -245,6 +245,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context result.erccpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "List", resp, "Failure responding to request") + return } if result.erccpl.hasNextLink() && result.erccpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) listNextResults(ctx cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/expressroutecrossconnections.go b/services/network/mgmt/2019-02-01/network/expressroutecrossconnections.go index ef8666b07da0..d8d2c358552e 100644 --- a/services/network/mgmt/2019-02-01/network/expressroutecrossconnections.go +++ b/services/network/mgmt/2019-02-01/network/expressroutecrossconnections.go @@ -152,6 +152,7 @@ func (client ExpressRouteCrossConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ExpressRouteCrossConnectionsClient) List(ctx context.Context) (resu result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -287,6 +289,7 @@ func (client ExpressRouteCrossConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -418,6 +421,7 @@ func (client ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context result.ercclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +485,7 @@ func (client ExpressRouteCrossConnectionsClient) listByResourceGroupNextResults( result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/expressroutegateways.go b/services/network/mgmt/2019-02-01/network/expressroutegateways.go index bfdf28ba05d1..4d5fe41d688f 100644 --- a/services/network/mgmt/2019-02-01/network/expressroutegateways.go +++ b/services/network/mgmt/2019-02-01/network/expressroutegateways.go @@ -235,6 +235,7 @@ func (client ExpressRouteGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client ExpressRouteGatewaysClient) ListByResourceGroup(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -380,6 +382,7 @@ func (client ExpressRouteGatewaysClient) ListBySubscription(ctx context.Context) result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-02-01/network/expressroutelinks.go b/services/network/mgmt/2019-02-01/network/expressroutelinks.go index 59dd669962a3..546145a6b3ee 100644 --- a/services/network/mgmt/2019-02-01/network/expressroutelinks.go +++ b/services/network/mgmt/2019-02-01/network/expressroutelinks.go @@ -74,6 +74,7 @@ func (client ExpressRouteLinksClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ExpressRouteLinksClient) List(ctx context.Context, resourceGroupNam result.erllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "List", resp, "Failure responding to request") + return } if result.erllr.hasNextLink() && result.erllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client ExpressRouteLinksClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/expressrouteports.go b/services/network/mgmt/2019-02-01/network/expressrouteports.go index 292ae1824cf0..54f3d7c6b39d 100644 --- a/services/network/mgmt/2019-02-01/network/expressrouteports.go +++ b/services/network/mgmt/2019-02-01/network/expressrouteports.go @@ -226,6 +226,7 @@ func (client ExpressRoutePortsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client ExpressRoutePortsClient) List(ctx context.Context) (result ExpressR result.erplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "List", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -361,6 +363,7 @@ func (client ExpressRoutePortsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, r result.erplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ExpressRoutePortsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/expressrouteportslocations.go b/services/network/mgmt/2019-02-01/network/expressrouteportslocations.go index 5a8b78f62594..921f8bfb4322 100644 --- a/services/network/mgmt/2019-02-01/network/expressrouteportslocations.go +++ b/services/network/mgmt/2019-02-01/network/expressrouteportslocations.go @@ -73,6 +73,7 @@ func (client ExpressRoutePortsLocationsClient) Get(ctx context.Context, location result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client ExpressRoutePortsLocationsClient) List(ctx context.Context) (result result.erpllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "List", resp, "Failure responding to request") + return } if result.erpllr.hasNextLink() && result.erpllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -208,6 +210,7 @@ func (client ExpressRoutePortsLocationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2019-02-01/network/expressrouteserviceproviders.go index 1e2f55ed3fe0..213686027721 100644 --- a/services/network/mgmt/2019-02-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2019-02-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2019-02-01/network/hubvirtualnetworkconnections.go index fe6d5fd3283e..be61da6ad48f 100644 --- a/services/network/mgmt/2019-02-01/network/hubvirtualnetworkconnections.go +++ b/services/network/mgmt/2019-02-01/network/hubvirtualnetworkconnections.go @@ -74,6 +74,7 @@ func (client HubVirtualNetworkConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client HubVirtualNetworkConnectionsClient) List(ctx context.Context, resou result.lhvncr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "List", resp, "Failure responding to request") + return } if result.lhvncr.hasNextLink() && result.lhvncr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client HubVirtualNetworkConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/inboundnatrules.go b/services/network/mgmt/2019-02-01/network/inboundnatrules.go index eac7e1346c77..44353f5b31de 100644 --- a/services/network/mgmt/2019-02-01/network/inboundnatrules.go +++ b/services/network/mgmt/2019-02-01/network/inboundnatrules.go @@ -250,6 +250,7 @@ func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName result.inrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return } if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +396,7 @@ func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/interfaceendpoints.go b/services/network/mgmt/2019-02-01/network/interfaceendpoints.go index 073109023b20..05632969bcb4 100644 --- a/services/network/mgmt/2019-02-01/network/interfaceendpoints.go +++ b/services/network/mgmt/2019-02-01/network/interfaceendpoints.go @@ -226,6 +226,7 @@ func (client InterfaceEndpointsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client InterfaceEndpointsClient) List(ctx context.Context, resourceGroupNa result.ielr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsClient", "List", resp, "Failure responding to request") + return } if result.ielr.hasNextLink() && result.ielr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client InterfaceEndpointsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client InterfaceEndpointsClient) ListBySubscription(ctx context.Context) ( result.ielr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ielr.hasNextLink() && result.ielr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client InterfaceEndpointsClient) listBySubscriptionNextResults(ctx context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/interfaceipconfigurations.go b/services/network/mgmt/2019-02-01/network/interfaceipconfigurations.go index ae3adba230b4..383296465b09 100644 --- a/services/network/mgmt/2019-02-01/network/interfaceipconfigurations.go +++ b/services/network/mgmt/2019-02-01/network/interfaceipconfigurations.go @@ -74,6 +74,7 @@ func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resource result.iiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/interfaceloadbalancers.go b/services/network/mgmt/2019-02-01/network/interfaceloadbalancers.go index a653a3cf5560..045ebfe5307d 100644 --- a/services/network/mgmt/2019-02-01/network/interfaceloadbalancers.go +++ b/services/network/mgmt/2019-02-01/network/interfaceloadbalancers.go @@ -74,6 +74,7 @@ func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGro result.ilblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/interfacesgroup.go b/services/network/mgmt/2019-02-01/network/interfacesgroup.go index 13c383183f56..8d1334f768b3 100644 --- a/services/network/mgmt/2019-02-01/network/interfacesgroup.go +++ b/services/network/mgmt/2019-02-01/network/interfacesgroup.go @@ -225,6 +225,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -383,6 +384,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx cont result, err = client.GetVirtualMachineScaleSetIPConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure responding to request") + return } return @@ -467,6 +469,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -547,6 +550,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -610,6 +614,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -659,6 +664,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -721,6 +727,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -852,6 +859,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx co result.iiclr, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -921,6 +929,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetIPConfigurationsNextRes result, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -973,6 +982,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1037,6 +1047,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1091,6 +1102,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1156,6 +1168,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/interfacetapconfigurations.go b/services/network/mgmt/2019-02-01/network/interfacetapconfigurations.go index c84a974ab5d9..2e87bc34db54 100644 --- a/services/network/mgmt/2019-02-01/network/interfacetapconfigurations.go +++ b/services/network/mgmt/2019-02-01/network/interfacetapconfigurations.go @@ -267,6 +267,7 @@ func (client InterfaceTapConfigurationsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +345,7 @@ func (client InterfaceTapConfigurationsClient) List(ctx context.Context, resourc result.itclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.itclr.hasNextLink() && result.itclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -408,6 +410,7 @@ func (client InterfaceTapConfigurationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2019-02-01/network/loadbalancerbackendaddresspools.go index 8bc83497df65..3b7d2b92d3c4 100644 --- a/services/network/mgmt/2019-02-01/network/loadbalancerbackendaddresspools.go +++ b/services/network/mgmt/2019-02-01/network/loadbalancerbackendaddresspools.go @@ -74,6 +74,7 @@ func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, re result.lbbaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return } if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2019-02-01/network/loadbalancerfrontendipconfigurations.go index 1001d2ed56af..c5e973dc187b 100644 --- a/services/network/mgmt/2019-02-01/network/loadbalancerfrontendipconfigurations.go +++ b/services/network/mgmt/2019-02-01/network/loadbalancerfrontendipconfigurations.go @@ -75,6 +75,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Contex result.lbficlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2019-02-01/network/loadbalancerloadbalancingrules.go index 1db4b7bbaa8a..f56d3d9025ac 100644 --- a/services/network/mgmt/2019-02-01/network/loadbalancerloadbalancingrules.go +++ b/services/network/mgmt/2019-02-01/network/loadbalancerloadbalancingrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, res result.lblbrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return } if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2019-02-01/network/loadbalancernetworkinterfaces.go index 7a03af48865d..63f238fe0d40 100644 --- a/services/network/mgmt/2019-02-01/network/loadbalancernetworkinterfaces.go +++ b/services/network/mgmt/2019-02-01/network/loadbalancernetworkinterfaces.go @@ -74,6 +74,7 @@ func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, reso result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2019-02-01/network/loadbalanceroutboundrules.go index 2f7c899a4a30..3a444dbe63f3 100644 --- a/services/network/mgmt/2019-02-01/network/loadbalanceroutboundrules.go +++ b/services/network/mgmt/2019-02-01/network/loadbalanceroutboundrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerOutboundRulesClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerOutboundRulesClient) List(ctx context.Context, resource result.lborlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "List", resp, "Failure responding to request") + return } if result.lborlr.hasNextLink() && result.lborlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerOutboundRulesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/loadbalancerprobes.go b/services/network/mgmt/2019-02-01/network/loadbalancerprobes.go index d7ba2b7cced5..27de6aa5f79d 100644 --- a/services/network/mgmt/2019-02-01/network/loadbalancerprobes.go +++ b/services/network/mgmt/2019-02-01/network/loadbalancerprobes.go @@ -74,6 +74,7 @@ func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupNa result.lbplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return } if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/loadbalancers.go b/services/network/mgmt/2019-02-01/network/loadbalancers.go index f431c03d3bab..c8972b45adea 100644 --- a/services/network/mgmt/2019-02-01/network/loadbalancers.go +++ b/services/network/mgmt/2019-02-01/network/loadbalancers.go @@ -225,6 +225,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/localnetworkgateways.go b/services/network/mgmt/2019-02-01/network/localnetworkgateways.go index b351ae7ec2ee..86687dc473ee 100644 --- a/services/network/mgmt/2019-02-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2019-02-01/network/localnetworkgateways.go @@ -246,6 +246,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/natgateways.go b/services/network/mgmt/2019-02-01/network/natgateways.go index 1fd6371ac032..7dd5298acecd 100644 --- a/services/network/mgmt/2019-02-01/network/natgateways.go +++ b/services/network/mgmt/2019-02-01/network/natgateways.go @@ -225,6 +225,7 @@ func (client NatGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client NatGatewaysClient) List(ctx context.Context, resourceGroupName stri result.nglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "List", resp, "Failure responding to request") + return } if result.nglr.hasNextLink() && result.nglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client NatGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client NatGatewaysClient) ListAll(ctx context.Context) (result NatGatewayL result.nglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.nglr.hasNextLink() && result.nglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client NatGatewaysClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -529,6 +534,7 @@ func (client NatGatewaysClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-02-01/network/operations.go b/services/network/mgmt/2019-02-01/network/operations.go index c26d96df3aad..072c2788f4c1 100644 --- a/services/network/mgmt/2019-02-01/network/operations.go +++ b/services/network/mgmt/2019-02-01/network/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/p2svpngateways.go b/services/network/mgmt/2019-02-01/network/p2svpngateways.go index f6ba8abfc218..b801314d3369 100644 --- a/services/network/mgmt/2019-02-01/network/p2svpngateways.go +++ b/services/network/mgmt/2019-02-01/network/p2svpngateways.go @@ -303,6 +303,7 @@ func (client P2sVpnGatewaysClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -376,6 +377,7 @@ func (client P2sVpnGatewaysClient) List(ctx context.Context) (result ListP2SVpnG result.lpvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -438,6 +440,7 @@ func (client P2sVpnGatewaysClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -489,6 +492,7 @@ func (client P2sVpnGatewaysClient) ListByResourceGroup(ctx context.Context, reso result.lpvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -552,6 +556,7 @@ func (client P2sVpnGatewaysClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/p2svpnserverconfigurations.go b/services/network/mgmt/2019-02-01/network/p2svpnserverconfigurations.go index 62892fde1864..97d0fbc8af58 100644 --- a/services/network/mgmt/2019-02-01/network/p2svpnserverconfigurations.go +++ b/services/network/mgmt/2019-02-01/network/p2svpnserverconfigurations.go @@ -232,6 +232,7 @@ func (client P2sVpnServerConfigurationsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnServerConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client P2sVpnServerConfigurationsClient) ListByVirtualWan(ctx context.Cont result.lpvscr, err = client.ListByVirtualWanResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnServerConfigurationsClient", "ListByVirtualWan", resp, "Failure responding to request") + return } if result.lpvscr.hasNextLink() && result.lpvscr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client P2sVpnServerConfigurationsClient) listByVirtualWanNextResults(ctx c result, err = client.ListByVirtualWanResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnServerConfigurationsClient", "listByVirtualWanNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/packetcaptures.go b/services/network/mgmt/2019-02-01/network/packetcaptures.go index 002634f75345..c6496c95ff6a 100644 --- a/services/network/mgmt/2019-02-01/network/packetcaptures.go +++ b/services/network/mgmt/2019-02-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-02-01/network/peerexpressroutecircuitconnections.go b/services/network/mgmt/2019-02-01/network/peerexpressroutecircuitconnections.go index f2a33aaf6946..7563af2778c7 100644 --- a/services/network/mgmt/2019-02-01/network/peerexpressroutecircuitconnections.go +++ b/services/network/mgmt/2019-02-01/network/peerexpressroutecircuitconnections.go @@ -76,6 +76,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) List(ctx context.Context, result.percclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.percclr.hasNextLink() && result.percclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -220,6 +222,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) listNextResults(ctx conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/profiles.go b/services/network/mgmt/2019-02-01/network/profiles.go index c32494164af4..4169226f5a32 100644 --- a/services/network/mgmt/2019-02-01/network/profiles.go +++ b/services/network/mgmt/2019-02-01/network/profiles.go @@ -73,6 +73,7 @@ func (client ProfilesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +305,7 @@ func (client ProfilesClient) List(ctx context.Context, resourceGroupName string) result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +369,7 @@ func (client ProfilesClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +419,7 @@ func (client ProfilesClient) ListAll(ctx context.Context) (result ProfileListRes result.plr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "ListAll", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +482,7 @@ func (client ProfilesClient) listAllNextResults(ctx context.Context, lastResults result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -529,6 +535,7 @@ func (client ProfilesClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-02-01/network/publicipaddresses.go b/services/network/mgmt/2019-02-01/network/publicipaddresses.go index 2c8eed53942d..a395b0038968 100644 --- a/services/network/mgmt/2019-02-01/network/publicipaddresses.go +++ b/services/network/mgmt/2019-02-01/network/publicipaddresses.go @@ -238,6 +238,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -403,6 +405,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +469,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +519,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -577,6 +582,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +636,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -694,6 +701,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +758,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -817,6 +826,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/publicipprefixes.go b/services/network/mgmt/2019-02-01/network/publicipprefixes.go index 7a12b6d257e6..f78f77ddc291 100644 --- a/services/network/mgmt/2019-02-01/network/publicipprefixes.go +++ b/services/network/mgmt/2019-02-01/network/publicipprefixes.go @@ -226,6 +226,7 @@ func (client PublicIPPrefixesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client PublicIPPrefixesClient) List(ctx context.Context, resourceGroupName result.piplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "List", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client PublicIPPrefixesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client PublicIPPrefixesClient) ListAll(ctx context.Context) (result Public result.piplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "ListAll", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client PublicIPPrefixesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/resourcenavigationlinks.go b/services/network/mgmt/2019-02-01/network/resourcenavigationlinks.go index 5b7f8343fadd..a3e52371a842 100644 --- a/services/network/mgmt/2019-02-01/network/resourcenavigationlinks.go +++ b/services/network/mgmt/2019-02-01/network/resourcenavigationlinks.go @@ -74,6 +74,7 @@ func (client ResourceNavigationLinksClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ResourceNavigationLinksClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-02-01/network/routefilterrules.go b/services/network/mgmt/2019-02-01/network/routefilterrules.go index a76f17596206..0c872ab219c2 100644 --- a/services/network/mgmt/2019-02-01/network/routefilterrules.go +++ b/services/network/mgmt/2019-02-01/network/routefilterrules.go @@ -241,6 +241,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/routefilters.go b/services/network/mgmt/2019-02-01/network/routefilters.go index 6777f3fead9b..fba50297bb3c 100644 --- a/services/network/mgmt/2019-02-01/network/routefilters.go +++ b/services/network/mgmt/2019-02-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/routes.go b/services/network/mgmt/2019-02-01/network/routes.go index 0057d3e0470c..b1d0790ad64f 100644 --- a/services/network/mgmt/2019-02-01/network/routes.go +++ b/services/network/mgmt/2019-02-01/network/routes.go @@ -229,6 +229,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/routetables.go b/services/network/mgmt/2019-02-01/network/routetables.go index 91644302dcec..4345b2aae485 100644 --- a/services/network/mgmt/2019-02-01/network/routetables.go +++ b/services/network/mgmt/2019-02-01/network/routetables.go @@ -225,6 +225,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/securitygroups.go b/services/network/mgmt/2019-02-01/network/securitygroups.go index ded152eda929..3080290af070 100644 --- a/services/network/mgmt/2019-02-01/network/securitygroups.go +++ b/services/network/mgmt/2019-02-01/network/securitygroups.go @@ -225,6 +225,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/securityrules.go b/services/network/mgmt/2019-02-01/network/securityrules.go index 56f53c8163d4..6cba93d428bf 100644 --- a/services/network/mgmt/2019-02-01/network/securityrules.go +++ b/services/network/mgmt/2019-02-01/network/securityrules.go @@ -229,6 +229,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/serviceassociationlinks.go b/services/network/mgmt/2019-02-01/network/serviceassociationlinks.go index cd7b63ba2d36..da3fcc761e6d 100644 --- a/services/network/mgmt/2019-02-01/network/serviceassociationlinks.go +++ b/services/network/mgmt/2019-02-01/network/serviceassociationlinks.go @@ -74,6 +74,7 @@ func (client ServiceAssociationLinksClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceAssociationLinksClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-02-01/network/serviceendpointpolicies.go b/services/network/mgmt/2019-02-01/network/serviceendpointpolicies.go index c275788668f8..587f22bf7097 100644 --- a/services/network/mgmt/2019-02-01/network/serviceendpointpolicies.go +++ b/services/network/mgmt/2019-02-01/network/serviceendpointpolicies.go @@ -226,6 +226,7 @@ func (client ServiceEndpointPoliciesClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ServiceEndpointPoliciesClient) List(ctx context.Context) (result Se result.seplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "List", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ServiceEndpointPoliciesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Cont result.seplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client ServiceEndpointPoliciesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2019-02-01/network/serviceendpointpolicydefinitions.go index d8a42d6e30a9..eb195d95ea89 100644 --- a/services/network/mgmt/2019-02-01/network/serviceendpointpolicydefinitions.go +++ b/services/network/mgmt/2019-02-01/network/serviceendpointpolicydefinitions.go @@ -231,6 +231,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) ListByResourceGroup(ctx con result.sepdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sepdlr.hasNextLink() && result.sepdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) listByResourceGroupNextResu result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/subnets.go b/services/network/mgmt/2019-02-01/network/subnets.go index 82de77e5faac..f44e8b66d9e6 100644 --- a/services/network/mgmt/2019-02-01/network/subnets.go +++ b/services/network/mgmt/2019-02-01/network/subnets.go @@ -230,6 +230,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/usages.go b/services/network/mgmt/2019-02-01/network/usages.go index f500165b048d..2c79e004e463 100644 --- a/services/network/mgmt/2019-02-01/network/usages.go +++ b/services/network/mgmt/2019-02-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/virtualhubs.go b/services/network/mgmt/2019-02-01/network/virtualhubs.go index 09e1868c39aa..c993558734f1 100644 --- a/services/network/mgmt/2019-02-01/network/virtualhubs.go +++ b/services/network/mgmt/2019-02-01/network/virtualhubs.go @@ -225,6 +225,7 @@ func (client VirtualHubsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualHubsClient) List(ctx context.Context) (result ListVirtualHub result.lvhr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "List", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualHubsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualHubsClient) ListByResourceGroup(ctx context.Context, resourc result.lvhr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualHubsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2019-02-01/network/virtualnetworkgatewayconnections.go index 1bf3e6fae9e5..d287dcbb162b 100644 --- a/services/network/mgmt/2019-02-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2019-02-01/network/virtualnetworkgatewayconnections.go @@ -239,6 +239,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/virtualnetworkgateways.go b/services/network/mgmt/2019-02-01/network/virtualnetworkgateways.go index 5fb0eafd868a..a99a3ee9f6b7 100644 --- a/services/network/mgmt/2019-02-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2019-02-01/network/virtualnetworkgateways.go @@ -390,6 +390,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -851,6 +852,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -914,6 +916,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -966,6 +969,7 @@ func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, result.vnglcr, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return } if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1030,6 +1034,7 @@ func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx contex result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1323,6 +1328,7 @@ func (client VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Conte result, err = client.SupportedVpnDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", resp, "Failure responding to request") + return } return @@ -1478,6 +1484,7 @@ func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx cont result, err = client.VpnDeviceConfigurationScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-02-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2019-02-01/network/virtualnetworkpeerings.go index 1a76fdf9a93a..a13e25727a8e 100644 --- a/services/network/mgmt/2019-02-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2019-02-01/network/virtualnetworkpeerings.go @@ -231,6 +231,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/virtualnetworks.go b/services/network/mgmt/2019-02-01/network/virtualnetworks.go index 8f8f83a72b06..a1165c01c78c 100644 --- a/services/network/mgmt/2019-02-01/network/virtualnetworks.go +++ b/services/network/mgmt/2019-02-01/network/virtualnetworks.go @@ -73,6 +73,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -380,6 +382,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -443,6 +446,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -492,6 +496,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -554,6 +559,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -606,6 +612,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -670,6 +677,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/virtualnetworktaps.go b/services/network/mgmt/2019-02-01/network/virtualnetworktaps.go index 01fd7c01108e..943b2d46c18e 100644 --- a/services/network/mgmt/2019-02-01/network/virtualnetworktaps.go +++ b/services/network/mgmt/2019-02-01/network/virtualnetworktaps.go @@ -257,6 +257,7 @@ func (client VirtualNetworkTapsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client VirtualNetworkTapsClient) ListAll(ctx context.Context) (result Virt result.vntlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListAll", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -392,6 +394,7 @@ func (client VirtualNetworkTapsClient) listAllNextResults(ctx context.Context, l result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +446,7 @@ func (client VirtualNetworkTapsClient) ListByResourceGroup(ctx context.Context, result.vntlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -506,6 +510,7 @@ func (client VirtualNetworkTapsClient) listByResourceGroupNextResults(ctx contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/virtualwans.go b/services/network/mgmt/2019-02-01/network/virtualwans.go index be4a66b1294f..45f445a6761c 100644 --- a/services/network/mgmt/2019-02-01/network/virtualwans.go +++ b/services/network/mgmt/2019-02-01/network/virtualwans.go @@ -225,6 +225,7 @@ func (client VirtualWansClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualWansClient) List(ctx context.Context) (result ListVirtualWAN result.lvwnr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "List", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualWansClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualWansClient) ListByResourceGroup(ctx context.Context, resourc result.lvwnr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualWansClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/vpnconnections.go b/services/network/mgmt/2019-02-01/network/vpnconnections.go index 0e4bbc41c356..dad503a91964 100644 --- a/services/network/mgmt/2019-02-01/network/vpnconnections.go +++ b/services/network/mgmt/2019-02-01/network/vpnconnections.go @@ -231,6 +231,7 @@ func (client VpnConnectionsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VpnConnectionsClient) ListByVpnGateway(ctx context.Context, resourc result.lvcr, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "ListByVpnGateway", resp, "Failure responding to request") + return } if result.lvcr.hasNextLink() && result.lvcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VpnConnectionsClient) listByVpnGatewayNextResults(ctx context.Conte result, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "listByVpnGatewayNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/vpngateways.go b/services/network/mgmt/2019-02-01/network/vpngateways.go index 7cd6658474ec..6b6eca7ce8e7 100644 --- a/services/network/mgmt/2019-02-01/network/vpngateways.go +++ b/services/network/mgmt/2019-02-01/network/vpngateways.go @@ -225,6 +225,7 @@ func (client VpnGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnGatewaysClient) List(ctx context.Context) (result ListVpnGateway result.lvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnGatewaysClient) ListByResourceGroup(ctx context.Context, resourc result.lvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnGatewaysClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/vpnsites.go b/services/network/mgmt/2019-02-01/network/vpnsites.go index 8e7566a38e01..af3fedf72db7 100644 --- a/services/network/mgmt/2019-02-01/network/vpnsites.go +++ b/services/network/mgmt/2019-02-01/network/vpnsites.go @@ -225,6 +225,7 @@ func (client VpnSitesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnSitesClient) List(ctx context.Context) (result ListVpnSitesResul result.lvsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "List", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnSitesClient) listNextResults(ctx context.Context, lastResults Li result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnSitesClient) ListByResourceGroup(ctx context.Context, resourceGr result.lvsr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnSitesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-02-01/network/watchers.go b/services/network/mgmt/2019-02-01/network/watchers.go index 9ff9e9fda91e..38091a44293c 100644 --- a/services/network/mgmt/2019-02-01/network/watchers.go +++ b/services/network/mgmt/2019-02-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -731,6 +733,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -1063,6 +1066,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -1134,6 +1138,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return @@ -1382,6 +1387,7 @@ func (client WatchersClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-02-01/network/webapplicationfirewallpolicies.go b/services/network/mgmt/2019-02-01/network/webapplicationfirewallpolicies.go index 1577f527bf26..f966321b534a 100644 --- a/services/network/mgmt/2019-02-01/network/webapplicationfirewallpolicies.go +++ b/services/network/mgmt/2019-02-01/network/webapplicationfirewallpolicies.go @@ -81,6 +81,7 @@ func (client WebApplicationFirewallPoliciesClient) CreateOrUpdate(ctx context.Co result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -244,6 +245,7 @@ func (client WebApplicationFirewallPoliciesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +321,7 @@ func (client WebApplicationFirewallPoliciesClient) List(ctx context.Context, res result.wafplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "List", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +385,7 @@ func (client WebApplicationFirewallPoliciesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -431,6 +435,7 @@ func (client WebApplicationFirewallPoliciesClient) ListAll(ctx context.Context) result.wafplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "ListAll", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -493,6 +498,7 @@ func (client WebApplicationFirewallPoliciesClient) listAllNextResults(ctx contex result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/applicationgateways.go b/services/network/mgmt/2019-04-01/network/applicationgateways.go index d9a637fe6a6a..50ee2062ff9d 100644 --- a/services/network/mgmt/2019-04-01/network/applicationgateways.go +++ b/services/network/mgmt/2019-04-01/network/applicationgateways.go @@ -416,6 +416,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -490,6 +491,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte result, err = client.GetSslPredefinedPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return } return @@ -564,6 +566,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +630,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -676,6 +680,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -738,6 +743,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -786,6 +792,7 @@ func (client ApplicationGatewaysClient) ListAvailableRequestHeaders(ctx context. result, err = client.ListAvailableRequestHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableRequestHeaders", resp, "Failure responding to request") + return } return @@ -856,6 +863,7 @@ func (client ApplicationGatewaysClient) ListAvailableResponseHeaders(ctx context result, err = client.ListAvailableResponseHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableResponseHeaders", resp, "Failure responding to request") + return } return @@ -926,6 +934,7 @@ func (client ApplicationGatewaysClient) ListAvailableServerVariables(ctx context result, err = client.ListAvailableServerVariablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableServerVariables", resp, "Failure responding to request") + return } return @@ -996,6 +1005,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont result, err = client.ListAvailableSslOptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return } return @@ -1067,6 +1077,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return } if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { err = result.NextWithContext(ctx) @@ -1129,6 +1140,7 @@ func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextRe result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1177,6 +1189,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-04-01/network/applicationsecuritygroups.go b/services/network/mgmt/2019-04-01/network/applicationsecuritygroups.go index 0d93a394105a..142a392c3a61 100644 --- a/services/network/mgmt/2019-04-01/network/applicationsecuritygroups.go +++ b/services/network/mgmt/2019-04-01/network/applicationsecuritygroups.go @@ -226,6 +226,7 @@ func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resource result.asglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ApplicationSecurityGroupsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (resu result.asglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ApplicationSecurityGroupsClient) listAllNextResults(ctx context.Con result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/availabledelegations.go b/services/network/mgmt/2019-04-01/network/availabledelegations.go index 171846ab9432..f32f21d48b30 100644 --- a/services/network/mgmt/2019-04-01/network/availabledelegations.go +++ b/services/network/mgmt/2019-04-01/network/availabledelegations.go @@ -73,6 +73,7 @@ func (client AvailableDelegationsClient) List(ctx context.Context, location stri result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableDelegationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/availableendpointservices.go b/services/network/mgmt/2019-04-01/network/availableendpointservices.go index b5125111a917..b20d5a8c2a07 100644 --- a/services/network/mgmt/2019-04-01/network/availableendpointservices.go +++ b/services/network/mgmt/2019-04-01/network/availableendpointservices.go @@ -73,6 +73,7 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableEndpointServicesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/availableprivateendpointtypes.go b/services/network/mgmt/2019-04-01/network/availableprivateendpointtypes.go index 25a9df41fbf2..89c4915921a9 100644 --- a/services/network/mgmt/2019-04-01/network/availableprivateendpointtypes.go +++ b/services/network/mgmt/2019-04-01/network/availableprivateendpointtypes.go @@ -73,6 +73,7 @@ func (client AvailablePrivateEndpointTypesClient) List(ctx context.Context, loca result.apetr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "List", resp, "Failure responding to request") + return } if result.apetr.hasNextLink() && result.apetr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailablePrivateEndpointTypesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -189,6 +191,7 @@ func (client AvailablePrivateEndpointTypesClient) ListByResourceGroup(ctx contex result.apetr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.apetr.hasNextLink() && result.apetr.IsEmpty() { err = result.NextWithContext(ctx) @@ -253,6 +256,7 @@ func (client AvailablePrivateEndpointTypesClient) listByResourceGroupNextResults result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2019-04-01/network/availableresourcegroupdelegations.go index 39934624278a..bbd0f878ba4e 100644 --- a/services/network/mgmt/2019-04-01/network/availableresourcegroupdelegations.go +++ b/services/network/mgmt/2019-04-01/network/availableresourcegroupdelegations.go @@ -75,6 +75,7 @@ func (client AvailableResourceGroupDelegationsClient) List(ctx context.Context, result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client AvailableResourceGroupDelegationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2019-04-01/network/azurefirewallfqdntags.go index d3c11da6e538..efc0dcdcaf65 100644 --- a/services/network/mgmt/2019-04-01/network/azurefirewallfqdntags.go +++ b/services/network/mgmt/2019-04-01/network/azurefirewallfqdntags.go @@ -71,6 +71,7 @@ func (client AzureFirewallFqdnTagsClient) ListAll(ctx context.Context) (result A result.afftlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "ListAll", resp, "Failure responding to request") + return } if result.afftlr.hasNextLink() && result.afftlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client AzureFirewallFqdnTagsClient) listAllNextResults(ctx context.Context result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/azurefirewalls.go b/services/network/mgmt/2019-04-01/network/azurefirewalls.go index dda96c6fc3fa..465bb79adf14 100644 --- a/services/network/mgmt/2019-04-01/network/azurefirewalls.go +++ b/services/network/mgmt/2019-04-01/network/azurefirewalls.go @@ -225,6 +225,7 @@ func (client AzureFirewallsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client AzureFirewallsClient) List(ctx context.Context, resourceGroupName s result.aflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "List", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +365,7 @@ func (client AzureFirewallsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client AzureFirewallsClient) ListAll(ctx context.Context) (result AzureFir result.aflr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "ListAll", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client AzureFirewallsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/bastionhosts.go b/services/network/mgmt/2019-04-01/network/bastionhosts.go index d95d572b8dd9..2fa5645dbaf2 100644 --- a/services/network/mgmt/2019-04-01/network/bastionhosts.go +++ b/services/network/mgmt/2019-04-01/network/bastionhosts.go @@ -225,6 +225,7 @@ func (client BastionHostsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client BastionHostsClient) List(ctx context.Context) (result BastionHostLi result.bhlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "List", resp, "Failure responding to request") + return } if result.bhlr.hasNextLink() && result.bhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client BastionHostsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client BastionHostsClient) ListByResourceGroup(ctx context.Context, resour result.bhlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.bhlr.hasNextLink() && result.bhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client BastionHostsClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/bgpservicecommunities.go b/services/network/mgmt/2019-04-01/network/bgpservicecommunities.go index cd8f3aa91cea..b06e5adb2e2d 100644 --- a/services/network/mgmt/2019-04-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2019-04-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/client.go b/services/network/mgmt/2019-04-01/network/client.go index b82e0395221f..de0fa5d33181 100644 --- a/services/network/mgmt/2019-04-01/network/client.go +++ b/services/network/mgmt/2019-04-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client BaseClient) SupportedSecurityProviders(ctx context.Context, resourc result, err = client.SupportedSecurityProvidersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "SupportedSecurityProviders", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-04-01/network/connectionmonitors.go b/services/network/mgmt/2019-04-01/network/connectionmonitors.go index 87cfbf86a073..2376ede12388 100644 --- a/services/network/mgmt/2019-04-01/network/connectionmonitors.go +++ b/services/network/mgmt/2019-04-01/network/connectionmonitors.go @@ -241,6 +241,7 @@ func (client ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ConnectionMonitorsClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-04-01/network/ddoscustompolicies.go b/services/network/mgmt/2019-04-01/network/ddoscustompolicies.go index ea6a34503bbb..17ff6be5ef56 100644 --- a/services/network/mgmt/2019-04-01/network/ddoscustompolicies.go +++ b/services/network/mgmt/2019-04-01/network/ddoscustompolicies.go @@ -226,6 +226,7 @@ func (client DdosCustomPoliciesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-04-01/network/ddosprotectionplans.go b/services/network/mgmt/2019-04-01/network/ddosprotectionplans.go index 5291dd36af05..816758ccb1e3 100644 --- a/services/network/mgmt/2019-04-01/network/ddosprotectionplans.go +++ b/services/network/mgmt/2019-04-01/network/ddosprotectionplans.go @@ -229,6 +229,7 @@ func (client DdosProtectionPlansClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DdosProtectionPlansClient) List(ctx context.Context) (result DdosPr result.dpplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client DdosProtectionPlansClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, result.dpplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client DdosProtectionPlansClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/defaultsecurityrules.go b/services/network/mgmt/2019-04-01/network/defaultsecurityrules.go index 9adf0622cd93..40527bb90ef3 100644 --- a/services/network/mgmt/2019-04-01/network/defaultsecurityrules.go +++ b/services/network/mgmt/2019-04-01/network/defaultsecurityrules.go @@ -74,6 +74,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2019-04-01/network/expressroutecircuitauthorizations.go index bd8c7d843866..fd600de96360 100644 --- a/services/network/mgmt/2019-04-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2019-04-01/network/expressroutecircuitauthorizations.go @@ -234,6 +234,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2019-04-01/network/expressroutecircuitconnections.go index 7c39ebd34451..4d3a2574db46 100644 --- a/services/network/mgmt/2019-04-01/network/expressroutecircuitconnections.go +++ b/services/network/mgmt/2019-04-01/network/expressroutecircuitconnections.go @@ -238,6 +238,7 @@ func (client ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ExpressRouteCircuitConnectionsClient) List(ctx context.Context, res result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client ExpressRouteCircuitConnectionsClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2019-04-01/network/expressroutecircuitpeerings.go index c5cfe5841818..5ad80289fd3f 100644 --- a/services/network/mgmt/2019-04-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2019-04-01/network/expressroutecircuitpeerings.go @@ -244,6 +244,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/expressroutecircuits.go b/services/network/mgmt/2019-04-01/network/expressroutecircuits.go index f054da0b53b7..6e4fded10ed7 100644 --- a/services/network/mgmt/2019-04-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2019-04-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/expressrouteconnections.go b/services/network/mgmt/2019-04-01/network/expressrouteconnections.go index f5b70513bdb2..3346ab480a6c 100644 --- a/services/network/mgmt/2019-04-01/network/expressrouteconnections.go +++ b/services/network/mgmt/2019-04-01/network/expressrouteconnections.go @@ -239,6 +239,7 @@ func (client ExpressRouteConnectionsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client ExpressRouteConnectionsClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-04-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2019-04-01/network/expressroutecrossconnectionpeerings.go index c3fe82b75f8e..2d505c8752d1 100644 --- a/services/network/mgmt/2019-04-01/network/expressroutecrossconnectionpeerings.go +++ b/services/network/mgmt/2019-04-01/network/expressroutecrossconnectionpeerings.go @@ -245,6 +245,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context result.erccpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "List", resp, "Failure responding to request") + return } if result.erccpl.hasNextLink() && result.erccpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) listNextResults(ctx cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/expressroutecrossconnections.go b/services/network/mgmt/2019-04-01/network/expressroutecrossconnections.go index f6cfa8ee7685..6a51c85c05ef 100644 --- a/services/network/mgmt/2019-04-01/network/expressroutecrossconnections.go +++ b/services/network/mgmt/2019-04-01/network/expressroutecrossconnections.go @@ -152,6 +152,7 @@ func (client ExpressRouteCrossConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ExpressRouteCrossConnectionsClient) List(ctx context.Context) (resu result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -287,6 +289,7 @@ func (client ExpressRouteCrossConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -418,6 +421,7 @@ func (client ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context result.ercclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +485,7 @@ func (client ExpressRouteCrossConnectionsClient) listByResourceGroupNextResults( result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/expressroutegateways.go b/services/network/mgmt/2019-04-01/network/expressroutegateways.go index 9ba492815fa5..12a9a09b9a39 100644 --- a/services/network/mgmt/2019-04-01/network/expressroutegateways.go +++ b/services/network/mgmt/2019-04-01/network/expressroutegateways.go @@ -235,6 +235,7 @@ func (client ExpressRouteGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client ExpressRouteGatewaysClient) ListByResourceGroup(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -380,6 +382,7 @@ func (client ExpressRouteGatewaysClient) ListBySubscription(ctx context.Context) result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-04-01/network/expressroutelinks.go b/services/network/mgmt/2019-04-01/network/expressroutelinks.go index 1ed52acd8e38..47b6ad8ca3c3 100644 --- a/services/network/mgmt/2019-04-01/network/expressroutelinks.go +++ b/services/network/mgmt/2019-04-01/network/expressroutelinks.go @@ -74,6 +74,7 @@ func (client ExpressRouteLinksClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ExpressRouteLinksClient) List(ctx context.Context, resourceGroupNam result.erllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "List", resp, "Failure responding to request") + return } if result.erllr.hasNextLink() && result.erllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client ExpressRouteLinksClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/expressrouteports.go b/services/network/mgmt/2019-04-01/network/expressrouteports.go index 67b9808f6179..d9a23676223d 100644 --- a/services/network/mgmt/2019-04-01/network/expressrouteports.go +++ b/services/network/mgmt/2019-04-01/network/expressrouteports.go @@ -226,6 +226,7 @@ func (client ExpressRoutePortsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client ExpressRoutePortsClient) List(ctx context.Context) (result ExpressR result.erplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "List", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -361,6 +363,7 @@ func (client ExpressRoutePortsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, r result.erplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ExpressRoutePortsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/expressrouteportslocations.go b/services/network/mgmt/2019-04-01/network/expressrouteportslocations.go index a0506cd53aed..2c2bd1cf0465 100644 --- a/services/network/mgmt/2019-04-01/network/expressrouteportslocations.go +++ b/services/network/mgmt/2019-04-01/network/expressrouteportslocations.go @@ -73,6 +73,7 @@ func (client ExpressRoutePortsLocationsClient) Get(ctx context.Context, location result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client ExpressRoutePortsLocationsClient) List(ctx context.Context) (result result.erpllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "List", resp, "Failure responding to request") + return } if result.erpllr.hasNextLink() && result.erpllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -208,6 +210,7 @@ func (client ExpressRoutePortsLocationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2019-04-01/network/expressrouteserviceproviders.go index a14ef13f7eeb..bcfb262ffc8b 100644 --- a/services/network/mgmt/2019-04-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2019-04-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2019-04-01/network/hubvirtualnetworkconnections.go index 8c5856ce6fbd..37ba38fe69a9 100644 --- a/services/network/mgmt/2019-04-01/network/hubvirtualnetworkconnections.go +++ b/services/network/mgmt/2019-04-01/network/hubvirtualnetworkconnections.go @@ -74,6 +74,7 @@ func (client HubVirtualNetworkConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client HubVirtualNetworkConnectionsClient) List(ctx context.Context, resou result.lhvncr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "List", resp, "Failure responding to request") + return } if result.lhvncr.hasNextLink() && result.lhvncr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client HubVirtualNetworkConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/inboundnatrules.go b/services/network/mgmt/2019-04-01/network/inboundnatrules.go index 8d32ad57cfa0..68753b78908c 100644 --- a/services/network/mgmt/2019-04-01/network/inboundnatrules.go +++ b/services/network/mgmt/2019-04-01/network/inboundnatrules.go @@ -250,6 +250,7 @@ func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName result.inrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return } if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +396,7 @@ func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/interfaceipconfigurations.go b/services/network/mgmt/2019-04-01/network/interfaceipconfigurations.go index f7723cfed7d5..c3bc671a60dd 100644 --- a/services/network/mgmt/2019-04-01/network/interfaceipconfigurations.go +++ b/services/network/mgmt/2019-04-01/network/interfaceipconfigurations.go @@ -74,6 +74,7 @@ func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resource result.iiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/interfaceloadbalancers.go b/services/network/mgmt/2019-04-01/network/interfaceloadbalancers.go index 3b221a2ac923..a1030f9c1661 100644 --- a/services/network/mgmt/2019-04-01/network/interfaceloadbalancers.go +++ b/services/network/mgmt/2019-04-01/network/interfaceloadbalancers.go @@ -74,6 +74,7 @@ func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGro result.ilblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/interfacesgroup.go b/services/network/mgmt/2019-04-01/network/interfacesgroup.go index 3b8ab072390e..52a3037e80e6 100644 --- a/services/network/mgmt/2019-04-01/network/interfacesgroup.go +++ b/services/network/mgmt/2019-04-01/network/interfacesgroup.go @@ -225,6 +225,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -383,6 +384,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx cont result, err = client.GetVirtualMachineScaleSetIPConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure responding to request") + return } return @@ -467,6 +469,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -547,6 +550,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -610,6 +614,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -659,6 +664,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -721,6 +727,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -852,6 +859,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx co result.iiclr, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -921,6 +929,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetIPConfigurationsNextRes result, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -973,6 +982,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1037,6 +1047,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1091,6 +1102,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1156,6 +1168,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/interfacetapconfigurations.go b/services/network/mgmt/2019-04-01/network/interfacetapconfigurations.go index 1c0b10988031..98f0c1896f42 100644 --- a/services/network/mgmt/2019-04-01/network/interfacetapconfigurations.go +++ b/services/network/mgmt/2019-04-01/network/interfacetapconfigurations.go @@ -267,6 +267,7 @@ func (client InterfaceTapConfigurationsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +345,7 @@ func (client InterfaceTapConfigurationsClient) List(ctx context.Context, resourc result.itclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.itclr.hasNextLink() && result.itclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -408,6 +410,7 @@ func (client InterfaceTapConfigurationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2019-04-01/network/loadbalancerbackendaddresspools.go index fb5f0f755e7d..72333b7c873b 100644 --- a/services/network/mgmt/2019-04-01/network/loadbalancerbackendaddresspools.go +++ b/services/network/mgmt/2019-04-01/network/loadbalancerbackendaddresspools.go @@ -74,6 +74,7 @@ func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, re result.lbbaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return } if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2019-04-01/network/loadbalancerfrontendipconfigurations.go index 0c666a9ea9fa..3797969802d6 100644 --- a/services/network/mgmt/2019-04-01/network/loadbalancerfrontendipconfigurations.go +++ b/services/network/mgmt/2019-04-01/network/loadbalancerfrontendipconfigurations.go @@ -75,6 +75,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Contex result.lbficlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2019-04-01/network/loadbalancerloadbalancingrules.go index 858c499c9a9f..dc1cccf9ad20 100644 --- a/services/network/mgmt/2019-04-01/network/loadbalancerloadbalancingrules.go +++ b/services/network/mgmt/2019-04-01/network/loadbalancerloadbalancingrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, res result.lblbrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return } if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2019-04-01/network/loadbalancernetworkinterfaces.go index 8240502cf98c..a6320bf6391e 100644 --- a/services/network/mgmt/2019-04-01/network/loadbalancernetworkinterfaces.go +++ b/services/network/mgmt/2019-04-01/network/loadbalancernetworkinterfaces.go @@ -74,6 +74,7 @@ func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, reso result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2019-04-01/network/loadbalanceroutboundrules.go index 5c4c5da1d5e2..86e4b4969f46 100644 --- a/services/network/mgmt/2019-04-01/network/loadbalanceroutboundrules.go +++ b/services/network/mgmt/2019-04-01/network/loadbalanceroutboundrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerOutboundRulesClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerOutboundRulesClient) List(ctx context.Context, resource result.lborlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "List", resp, "Failure responding to request") + return } if result.lborlr.hasNextLink() && result.lborlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerOutboundRulesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/loadbalancerprobes.go b/services/network/mgmt/2019-04-01/network/loadbalancerprobes.go index 5d7920f91e63..089c773df1a9 100644 --- a/services/network/mgmt/2019-04-01/network/loadbalancerprobes.go +++ b/services/network/mgmt/2019-04-01/network/loadbalancerprobes.go @@ -74,6 +74,7 @@ func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupNa result.lbplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return } if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/loadbalancers.go b/services/network/mgmt/2019-04-01/network/loadbalancers.go index b44de4501b4a..6394d760430f 100644 --- a/services/network/mgmt/2019-04-01/network/loadbalancers.go +++ b/services/network/mgmt/2019-04-01/network/loadbalancers.go @@ -225,6 +225,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/localnetworkgateways.go b/services/network/mgmt/2019-04-01/network/localnetworkgateways.go index 736a1fc6d617..459f86d38f2d 100644 --- a/services/network/mgmt/2019-04-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2019-04-01/network/localnetworkgateways.go @@ -246,6 +246,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/natgateways.go b/services/network/mgmt/2019-04-01/network/natgateways.go index 87c33471f400..67d997c829c5 100644 --- a/services/network/mgmt/2019-04-01/network/natgateways.go +++ b/services/network/mgmt/2019-04-01/network/natgateways.go @@ -225,6 +225,7 @@ func (client NatGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client NatGatewaysClient) List(ctx context.Context, resourceGroupName stri result.nglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "List", resp, "Failure responding to request") + return } if result.nglr.hasNextLink() && result.nglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client NatGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client NatGatewaysClient) ListAll(ctx context.Context) (result NatGatewayL result.nglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.nglr.hasNextLink() && result.nglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client NatGatewaysClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -529,6 +534,7 @@ func (client NatGatewaysClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-04-01/network/operations.go b/services/network/mgmt/2019-04-01/network/operations.go index a5b6eb644c59..87166e114ec9 100644 --- a/services/network/mgmt/2019-04-01/network/operations.go +++ b/services/network/mgmt/2019-04-01/network/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/p2svpngateways.go b/services/network/mgmt/2019-04-01/network/p2svpngateways.go index 15592d0016d1..9f7a2d2e8bfe 100644 --- a/services/network/mgmt/2019-04-01/network/p2svpngateways.go +++ b/services/network/mgmt/2019-04-01/network/p2svpngateways.go @@ -303,6 +303,7 @@ func (client P2sVpnGatewaysClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -452,6 +453,7 @@ func (client P2sVpnGatewaysClient) List(ctx context.Context) (result ListP2SVpnG result.lpvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -514,6 +516,7 @@ func (client P2sVpnGatewaysClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +568,7 @@ func (client P2sVpnGatewaysClient) ListByResourceGroup(ctx context.Context, reso result.lpvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -628,6 +632,7 @@ func (client P2sVpnGatewaysClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/p2svpnserverconfigurations.go b/services/network/mgmt/2019-04-01/network/p2svpnserverconfigurations.go index 9f801bd978db..b6f64562ef2c 100644 --- a/services/network/mgmt/2019-04-01/network/p2svpnserverconfigurations.go +++ b/services/network/mgmt/2019-04-01/network/p2svpnserverconfigurations.go @@ -232,6 +232,7 @@ func (client P2sVpnServerConfigurationsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnServerConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client P2sVpnServerConfigurationsClient) ListByVirtualWan(ctx context.Cont result.lpvscr, err = client.ListByVirtualWanResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnServerConfigurationsClient", "ListByVirtualWan", resp, "Failure responding to request") + return } if result.lpvscr.hasNextLink() && result.lpvscr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client P2sVpnServerConfigurationsClient) listByVirtualWanNextResults(ctx c result, err = client.ListByVirtualWanResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnServerConfigurationsClient", "listByVirtualWanNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/packetcaptures.go b/services/network/mgmt/2019-04-01/network/packetcaptures.go index 0f0bdc550735..03e3c244cc52 100644 --- a/services/network/mgmt/2019-04-01/network/packetcaptures.go +++ b/services/network/mgmt/2019-04-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-04-01/network/peerexpressroutecircuitconnections.go b/services/network/mgmt/2019-04-01/network/peerexpressroutecircuitconnections.go index 338310d6faac..341ceeeeb33b 100644 --- a/services/network/mgmt/2019-04-01/network/peerexpressroutecircuitconnections.go +++ b/services/network/mgmt/2019-04-01/network/peerexpressroutecircuitconnections.go @@ -76,6 +76,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) List(ctx context.Context, result.percclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.percclr.hasNextLink() && result.percclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -220,6 +222,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) listNextResults(ctx conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/privateendpoints.go b/services/network/mgmt/2019-04-01/network/privateendpoints.go index 40bd76fe4ed6..0fa97257f533 100644 --- a/services/network/mgmt/2019-04-01/network/privateendpoints.go +++ b/services/network/mgmt/2019-04-01/network/privateendpoints.go @@ -226,6 +226,7 @@ func (client PrivateEndpointsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client PrivateEndpointsClient) List(ctx context.Context, resourceGroupName result.pelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "List", resp, "Failure responding to request") + return } if result.pelr.hasNextLink() && result.pelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client PrivateEndpointsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client PrivateEndpointsClient) ListBySubscription(ctx context.Context) (re result.pelr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.pelr.hasNextLink() && result.pelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client PrivateEndpointsClient) listBySubscriptionNextResults(ctx context.C result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/privatelinkservices.go b/services/network/mgmt/2019-04-01/network/privatelinkservices.go index 5afa7756d725..0600c53935bf 100644 --- a/services/network/mgmt/2019-04-01/network/privatelinkservices.go +++ b/services/network/mgmt/2019-04-01/network/privatelinkservices.go @@ -456,6 +456,7 @@ func (client PrivateLinkServicesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -534,6 +535,7 @@ func (client PrivateLinkServicesClient) List(ctx context.Context, resourceGroupN result.plslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "List", resp, "Failure responding to request") + return } if result.plslr.hasNextLink() && result.plslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -597,6 +599,7 @@ func (client PrivateLinkServicesClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -649,6 +652,7 @@ func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServices(ctx result.aaplsr, err = client.ListAutoApprovedPrivateLinkServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServices", resp, "Failure responding to request") + return } if result.aaplsr.hasNextLink() && result.aaplsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -712,6 +716,7 @@ func (client PrivateLinkServicesClient) listAutoApprovedPrivateLinkServicesNextR result, err = client.ListAutoApprovedPrivateLinkServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesNextResults", resp, "Failure responding to next results request") + return } return } @@ -765,6 +770,7 @@ func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByRes result.aaplsr, err = client.ListAutoApprovedPrivateLinkServicesByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServicesByResourceGroup", resp, "Failure responding to request") + return } if result.aaplsr.hasNextLink() && result.aaplsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -829,6 +835,7 @@ func (client PrivateLinkServicesClient) listAutoApprovedPrivateLinkServicesByRes result, err = client.ListAutoApprovedPrivateLinkServicesByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -878,6 +885,7 @@ func (client PrivateLinkServicesClient) ListBySubscription(ctx context.Context) result.plslr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.plslr.hasNextLink() && result.plslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -940,6 +948,7 @@ func (client PrivateLinkServicesClient) listBySubscriptionNextResults(ctx contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -994,6 +1003,7 @@ func (client PrivateLinkServicesClient) UpdatePrivateEndpointConnection(ctx cont result, err = client.UpdatePrivateEndpointConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "UpdatePrivateEndpointConnection", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-04-01/network/profiles.go b/services/network/mgmt/2019-04-01/network/profiles.go index 0ff2444ecd19..e431da684a11 100644 --- a/services/network/mgmt/2019-04-01/network/profiles.go +++ b/services/network/mgmt/2019-04-01/network/profiles.go @@ -73,6 +73,7 @@ func (client ProfilesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +305,7 @@ func (client ProfilesClient) List(ctx context.Context, resourceGroupName string) result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +369,7 @@ func (client ProfilesClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +419,7 @@ func (client ProfilesClient) ListAll(ctx context.Context) (result ProfileListRes result.plr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "ListAll", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +482,7 @@ func (client ProfilesClient) listAllNextResults(ctx context.Context, lastResults result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -529,6 +535,7 @@ func (client ProfilesClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-04-01/network/publicipaddresses.go b/services/network/mgmt/2019-04-01/network/publicipaddresses.go index d940ba182364..a8d2884c6fef 100644 --- a/services/network/mgmt/2019-04-01/network/publicipaddresses.go +++ b/services/network/mgmt/2019-04-01/network/publicipaddresses.go @@ -238,6 +238,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -403,6 +405,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +469,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +519,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -577,6 +582,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +636,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -694,6 +701,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +758,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -817,6 +826,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/publicipprefixes.go b/services/network/mgmt/2019-04-01/network/publicipprefixes.go index 032f94a3a155..79d1cc00b615 100644 --- a/services/network/mgmt/2019-04-01/network/publicipprefixes.go +++ b/services/network/mgmt/2019-04-01/network/publicipprefixes.go @@ -226,6 +226,7 @@ func (client PublicIPPrefixesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client PublicIPPrefixesClient) List(ctx context.Context, resourceGroupName result.piplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "List", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client PublicIPPrefixesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client PublicIPPrefixesClient) ListAll(ctx context.Context) (result Public result.piplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "ListAll", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client PublicIPPrefixesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/resourcenavigationlinks.go b/services/network/mgmt/2019-04-01/network/resourcenavigationlinks.go index d035b120f6d5..562dcefc44aa 100644 --- a/services/network/mgmt/2019-04-01/network/resourcenavigationlinks.go +++ b/services/network/mgmt/2019-04-01/network/resourcenavigationlinks.go @@ -74,6 +74,7 @@ func (client ResourceNavigationLinksClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ResourceNavigationLinksClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-04-01/network/routefilterrules.go b/services/network/mgmt/2019-04-01/network/routefilterrules.go index 4d4fb7c0b06b..cf4916b990de 100644 --- a/services/network/mgmt/2019-04-01/network/routefilterrules.go +++ b/services/network/mgmt/2019-04-01/network/routefilterrules.go @@ -241,6 +241,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/routefilters.go b/services/network/mgmt/2019-04-01/network/routefilters.go index 605132834099..030fcef4f3a7 100644 --- a/services/network/mgmt/2019-04-01/network/routefilters.go +++ b/services/network/mgmt/2019-04-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/routes.go b/services/network/mgmt/2019-04-01/network/routes.go index 0a914bc141ad..d840c99dfb2b 100644 --- a/services/network/mgmt/2019-04-01/network/routes.go +++ b/services/network/mgmt/2019-04-01/network/routes.go @@ -229,6 +229,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/routetables.go b/services/network/mgmt/2019-04-01/network/routetables.go index 829df7fbb775..2f559215fda4 100644 --- a/services/network/mgmt/2019-04-01/network/routetables.go +++ b/services/network/mgmt/2019-04-01/network/routetables.go @@ -225,6 +225,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/securitygroups.go b/services/network/mgmt/2019-04-01/network/securitygroups.go index a43f4b42e8a3..b9792502cabd 100644 --- a/services/network/mgmt/2019-04-01/network/securitygroups.go +++ b/services/network/mgmt/2019-04-01/network/securitygroups.go @@ -225,6 +225,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/securityrules.go b/services/network/mgmt/2019-04-01/network/securityrules.go index d1e1c3930cef..a74b444f0d99 100644 --- a/services/network/mgmt/2019-04-01/network/securityrules.go +++ b/services/network/mgmt/2019-04-01/network/securityrules.go @@ -229,6 +229,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/serviceassociationlinks.go b/services/network/mgmt/2019-04-01/network/serviceassociationlinks.go index 4714336f62c3..4239a8b481fa 100644 --- a/services/network/mgmt/2019-04-01/network/serviceassociationlinks.go +++ b/services/network/mgmt/2019-04-01/network/serviceassociationlinks.go @@ -74,6 +74,7 @@ func (client ServiceAssociationLinksClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceAssociationLinksClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-04-01/network/serviceendpointpolicies.go b/services/network/mgmt/2019-04-01/network/serviceendpointpolicies.go index fa56f466a0a3..d1e4ae271bb9 100644 --- a/services/network/mgmt/2019-04-01/network/serviceendpointpolicies.go +++ b/services/network/mgmt/2019-04-01/network/serviceendpointpolicies.go @@ -226,6 +226,7 @@ func (client ServiceEndpointPoliciesClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ServiceEndpointPoliciesClient) List(ctx context.Context) (result Se result.seplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "List", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ServiceEndpointPoliciesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Cont result.seplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client ServiceEndpointPoliciesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2019-04-01/network/serviceendpointpolicydefinitions.go index 8b6359866ad4..24ed14d75413 100644 --- a/services/network/mgmt/2019-04-01/network/serviceendpointpolicydefinitions.go +++ b/services/network/mgmt/2019-04-01/network/serviceendpointpolicydefinitions.go @@ -231,6 +231,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) ListByResourceGroup(ctx con result.sepdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sepdlr.hasNextLink() && result.sepdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) listByResourceGroupNextResu result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/servicetags.go b/services/network/mgmt/2019-04-01/network/servicetags.go index 8e92fa81079e..0175d0c285c0 100644 --- a/services/network/mgmt/2019-04-01/network/servicetags.go +++ b/services/network/mgmt/2019-04-01/network/servicetags.go @@ -73,6 +73,7 @@ func (client ServiceTagsClient) List(ctx context.Context, location string) (resu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceTagsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-04-01/network/subnets.go b/services/network/mgmt/2019-04-01/network/subnets.go index 64dd5b444d01..b10a3f508bda 100644 --- a/services/network/mgmt/2019-04-01/network/subnets.go +++ b/services/network/mgmt/2019-04-01/network/subnets.go @@ -230,6 +230,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/usages.go b/services/network/mgmt/2019-04-01/network/usages.go index 6d320bcfd3f3..bfe79fab75a6 100644 --- a/services/network/mgmt/2019-04-01/network/usages.go +++ b/services/network/mgmt/2019-04-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/virtualhubs.go b/services/network/mgmt/2019-04-01/network/virtualhubs.go index 491f2a7dca8c..3655900d9322 100644 --- a/services/network/mgmt/2019-04-01/network/virtualhubs.go +++ b/services/network/mgmt/2019-04-01/network/virtualhubs.go @@ -225,6 +225,7 @@ func (client VirtualHubsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualHubsClient) List(ctx context.Context) (result ListVirtualHub result.lvhr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "List", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualHubsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualHubsClient) ListByResourceGroup(ctx context.Context, resourc result.lvhr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualHubsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2019-04-01/network/virtualnetworkgatewayconnections.go index fd429a9af58a..3342660d3e61 100644 --- a/services/network/mgmt/2019-04-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2019-04-01/network/virtualnetworkgatewayconnections.go @@ -239,6 +239,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/virtualnetworkgateways.go b/services/network/mgmt/2019-04-01/network/virtualnetworkgateways.go index 20d823b19c21..7902dcad0554 100644 --- a/services/network/mgmt/2019-04-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2019-04-01/network/virtualnetworkgateways.go @@ -390,6 +390,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -927,6 +928,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -990,6 +992,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1042,6 +1045,7 @@ func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, result.vnglcr, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return } if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1106,6 +1110,7 @@ func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx contex result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1399,6 +1404,7 @@ func (client VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Conte result, err = client.SupportedVpnDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", resp, "Failure responding to request") + return } return @@ -1554,6 +1560,7 @@ func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx cont result, err = client.VpnDeviceConfigurationScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-04-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2019-04-01/network/virtualnetworkpeerings.go index f84637afe32b..21f6716f93c6 100644 --- a/services/network/mgmt/2019-04-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2019-04-01/network/virtualnetworkpeerings.go @@ -231,6 +231,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/virtualnetworks.go b/services/network/mgmt/2019-04-01/network/virtualnetworks.go index ea45365ed72a..89447dfbfbbe 100644 --- a/services/network/mgmt/2019-04-01/network/virtualnetworks.go +++ b/services/network/mgmt/2019-04-01/network/virtualnetworks.go @@ -73,6 +73,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -380,6 +382,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -443,6 +446,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -492,6 +496,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -554,6 +559,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -606,6 +612,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -670,6 +677,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/virtualnetworktaps.go b/services/network/mgmt/2019-04-01/network/virtualnetworktaps.go index 7bb251f55192..6ff86e7dc4bf 100644 --- a/services/network/mgmt/2019-04-01/network/virtualnetworktaps.go +++ b/services/network/mgmt/2019-04-01/network/virtualnetworktaps.go @@ -257,6 +257,7 @@ func (client VirtualNetworkTapsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client VirtualNetworkTapsClient) ListAll(ctx context.Context) (result Virt result.vntlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListAll", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -392,6 +394,7 @@ func (client VirtualNetworkTapsClient) listAllNextResults(ctx context.Context, l result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +446,7 @@ func (client VirtualNetworkTapsClient) ListByResourceGroup(ctx context.Context, result.vntlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -506,6 +510,7 @@ func (client VirtualNetworkTapsClient) listByResourceGroupNextResults(ctx contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/virtualwans.go b/services/network/mgmt/2019-04-01/network/virtualwans.go index 809738e03996..0d8977b7ac6a 100644 --- a/services/network/mgmt/2019-04-01/network/virtualwans.go +++ b/services/network/mgmt/2019-04-01/network/virtualwans.go @@ -225,6 +225,7 @@ func (client VirtualWansClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualWansClient) List(ctx context.Context) (result ListVirtualWAN result.lvwnr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "List", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualWansClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualWansClient) ListByResourceGroup(ctx context.Context, resourc result.lvwnr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualWansClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/vpnconnections.go b/services/network/mgmt/2019-04-01/network/vpnconnections.go index dd46e5d89a28..045e4e88d183 100644 --- a/services/network/mgmt/2019-04-01/network/vpnconnections.go +++ b/services/network/mgmt/2019-04-01/network/vpnconnections.go @@ -231,6 +231,7 @@ func (client VpnConnectionsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VpnConnectionsClient) ListByVpnGateway(ctx context.Context, resourc result.lvcr, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "ListByVpnGateway", resp, "Failure responding to request") + return } if result.lvcr.hasNextLink() && result.lvcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VpnConnectionsClient) listByVpnGatewayNextResults(ctx context.Conte result, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "listByVpnGatewayNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/vpngateways.go b/services/network/mgmt/2019-04-01/network/vpngateways.go index efab30352a1c..3bbb38f2d175 100644 --- a/services/network/mgmt/2019-04-01/network/vpngateways.go +++ b/services/network/mgmt/2019-04-01/network/vpngateways.go @@ -225,6 +225,7 @@ func (client VpnGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnGatewaysClient) List(ctx context.Context) (result ListVpnGateway result.lvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnGatewaysClient) ListByResourceGroup(ctx context.Context, resourc result.lvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnGatewaysClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/vpnsites.go b/services/network/mgmt/2019-04-01/network/vpnsites.go index dd05cb8a0ebd..159653cb6e6e 100644 --- a/services/network/mgmt/2019-04-01/network/vpnsites.go +++ b/services/network/mgmt/2019-04-01/network/vpnsites.go @@ -225,6 +225,7 @@ func (client VpnSitesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnSitesClient) List(ctx context.Context) (result ListVpnSitesResul result.lvsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "List", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnSitesClient) listNextResults(ctx context.Context, lastResults Li result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnSitesClient) ListByResourceGroup(ctx context.Context, resourceGr result.lvsr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnSitesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-04-01/network/watchers.go b/services/network/mgmt/2019-04-01/network/watchers.go index 25948feb772e..6b69b7840af5 100644 --- a/services/network/mgmt/2019-04-01/network/watchers.go +++ b/services/network/mgmt/2019-04-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -731,6 +733,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -1063,6 +1066,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -1134,6 +1138,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return @@ -1382,6 +1387,7 @@ func (client WatchersClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-04-01/network/webapplicationfirewallpolicies.go b/services/network/mgmt/2019-04-01/network/webapplicationfirewallpolicies.go index 0496ed77a338..3f99c0792fc1 100644 --- a/services/network/mgmt/2019-04-01/network/webapplicationfirewallpolicies.go +++ b/services/network/mgmt/2019-04-01/network/webapplicationfirewallpolicies.go @@ -81,6 +81,7 @@ func (client WebApplicationFirewallPoliciesClient) CreateOrUpdate(ctx context.Co result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -244,6 +245,7 @@ func (client WebApplicationFirewallPoliciesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +321,7 @@ func (client WebApplicationFirewallPoliciesClient) List(ctx context.Context, res result.wafplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "List", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +385,7 @@ func (client WebApplicationFirewallPoliciesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -431,6 +435,7 @@ func (client WebApplicationFirewallPoliciesClient) ListAll(ctx context.Context) result.wafplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "ListAll", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -493,6 +498,7 @@ func (client WebApplicationFirewallPoliciesClient) listAllNextResults(ctx contex result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/applicationgateways.go b/services/network/mgmt/2019-06-01/network/applicationgateways.go index a777d6a5b3d9..78d281eaafbc 100644 --- a/services/network/mgmt/2019-06-01/network/applicationgateways.go +++ b/services/network/mgmt/2019-06-01/network/applicationgateways.go @@ -416,6 +416,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -490,6 +491,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte result, err = client.GetSslPredefinedPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return } return @@ -564,6 +566,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +630,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -676,6 +680,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -738,6 +743,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -786,6 +792,7 @@ func (client ApplicationGatewaysClient) ListAvailableRequestHeaders(ctx context. result, err = client.ListAvailableRequestHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableRequestHeaders", resp, "Failure responding to request") + return } return @@ -856,6 +863,7 @@ func (client ApplicationGatewaysClient) ListAvailableResponseHeaders(ctx context result, err = client.ListAvailableResponseHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableResponseHeaders", resp, "Failure responding to request") + return } return @@ -926,6 +934,7 @@ func (client ApplicationGatewaysClient) ListAvailableServerVariables(ctx context result, err = client.ListAvailableServerVariablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableServerVariables", resp, "Failure responding to request") + return } return @@ -996,6 +1005,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont result, err = client.ListAvailableSslOptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return } return @@ -1067,6 +1077,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return } if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { err = result.NextWithContext(ctx) @@ -1129,6 +1140,7 @@ func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextRe result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1177,6 +1189,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-06-01/network/applicationsecuritygroups.go b/services/network/mgmt/2019-06-01/network/applicationsecuritygroups.go index 34e3dd46bc6b..0a1d342892fe 100644 --- a/services/network/mgmt/2019-06-01/network/applicationsecuritygroups.go +++ b/services/network/mgmt/2019-06-01/network/applicationsecuritygroups.go @@ -226,6 +226,7 @@ func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resource result.asglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ApplicationSecurityGroupsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (resu result.asglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ApplicationSecurityGroupsClient) listAllNextResults(ctx context.Con result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/availabledelegations.go b/services/network/mgmt/2019-06-01/network/availabledelegations.go index 022f82501853..e390d5b46c49 100644 --- a/services/network/mgmt/2019-06-01/network/availabledelegations.go +++ b/services/network/mgmt/2019-06-01/network/availabledelegations.go @@ -73,6 +73,7 @@ func (client AvailableDelegationsClient) List(ctx context.Context, location stri result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableDelegationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/availableendpointservices.go b/services/network/mgmt/2019-06-01/network/availableendpointservices.go index e572890415c2..759b1a254201 100644 --- a/services/network/mgmt/2019-06-01/network/availableendpointservices.go +++ b/services/network/mgmt/2019-06-01/network/availableendpointservices.go @@ -73,6 +73,7 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableEndpointServicesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/availableprivateendpointtypes.go b/services/network/mgmt/2019-06-01/network/availableprivateendpointtypes.go index 65b469fbd8d6..f45082cac7eb 100644 --- a/services/network/mgmt/2019-06-01/network/availableprivateendpointtypes.go +++ b/services/network/mgmt/2019-06-01/network/availableprivateendpointtypes.go @@ -73,6 +73,7 @@ func (client AvailablePrivateEndpointTypesClient) List(ctx context.Context, loca result.apetr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "List", resp, "Failure responding to request") + return } if result.apetr.hasNextLink() && result.apetr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailablePrivateEndpointTypesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -189,6 +191,7 @@ func (client AvailablePrivateEndpointTypesClient) ListByResourceGroup(ctx contex result.apetr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.apetr.hasNextLink() && result.apetr.IsEmpty() { err = result.NextWithContext(ctx) @@ -253,6 +256,7 @@ func (client AvailablePrivateEndpointTypesClient) listByResourceGroupNextResults result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2019-06-01/network/availableresourcegroupdelegations.go index 5e4028f09014..567d07fb4314 100644 --- a/services/network/mgmt/2019-06-01/network/availableresourcegroupdelegations.go +++ b/services/network/mgmt/2019-06-01/network/availableresourcegroupdelegations.go @@ -75,6 +75,7 @@ func (client AvailableResourceGroupDelegationsClient) List(ctx context.Context, result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client AvailableResourceGroupDelegationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2019-06-01/network/azurefirewallfqdntags.go index 6cc300a34cb7..159302b8a7a7 100644 --- a/services/network/mgmt/2019-06-01/network/azurefirewallfqdntags.go +++ b/services/network/mgmt/2019-06-01/network/azurefirewallfqdntags.go @@ -71,6 +71,7 @@ func (client AzureFirewallFqdnTagsClient) ListAll(ctx context.Context) (result A result.afftlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "ListAll", resp, "Failure responding to request") + return } if result.afftlr.hasNextLink() && result.afftlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client AzureFirewallFqdnTagsClient) listAllNextResults(ctx context.Context result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/azurefirewalls.go b/services/network/mgmt/2019-06-01/network/azurefirewalls.go index 0c1bf875ca8a..1d000b67cd7b 100644 --- a/services/network/mgmt/2019-06-01/network/azurefirewalls.go +++ b/services/network/mgmt/2019-06-01/network/azurefirewalls.go @@ -225,6 +225,7 @@ func (client AzureFirewallsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client AzureFirewallsClient) List(ctx context.Context, resourceGroupName s result.aflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "List", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +365,7 @@ func (client AzureFirewallsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client AzureFirewallsClient) ListAll(ctx context.Context) (result AzureFir result.aflr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "ListAll", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client AzureFirewallsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +531,7 @@ func (client AzureFirewallsClient) UpdateTags(ctx context.Context, resourceGroup result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-06-01/network/bastionhosts.go b/services/network/mgmt/2019-06-01/network/bastionhosts.go index f010af79737c..fccdba0c3065 100644 --- a/services/network/mgmt/2019-06-01/network/bastionhosts.go +++ b/services/network/mgmt/2019-06-01/network/bastionhosts.go @@ -225,6 +225,7 @@ func (client BastionHostsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client BastionHostsClient) List(ctx context.Context) (result BastionHostLi result.bhlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "List", resp, "Failure responding to request") + return } if result.bhlr.hasNextLink() && result.bhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client BastionHostsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client BastionHostsClient) ListByResourceGroup(ctx context.Context, resour result.bhlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.bhlr.hasNextLink() && result.bhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client BastionHostsClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/bgpservicecommunities.go b/services/network/mgmt/2019-06-01/network/bgpservicecommunities.go index 189fb7aca1c0..60748b26a381 100644 --- a/services/network/mgmt/2019-06-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2019-06-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/client.go b/services/network/mgmt/2019-06-01/network/client.go index 1f1f35f21b70..df903605c257 100644 --- a/services/network/mgmt/2019-06-01/network/client.go +++ b/services/network/mgmt/2019-06-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client BaseClient) SupportedSecurityProviders(ctx context.Context, resourc result, err = client.SupportedSecurityProvidersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "SupportedSecurityProviders", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-06-01/network/connectionmonitors.go b/services/network/mgmt/2019-06-01/network/connectionmonitors.go index 04e18b33c24f..3d409ab35377 100644 --- a/services/network/mgmt/2019-06-01/network/connectionmonitors.go +++ b/services/network/mgmt/2019-06-01/network/connectionmonitors.go @@ -241,6 +241,7 @@ func (client ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ConnectionMonitorsClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure responding to request") + return } return @@ -623,6 +625,7 @@ func (client ConnectionMonitorsClient) UpdateTags(ctx context.Context, resourceG result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-06-01/network/ddoscustompolicies.go b/services/network/mgmt/2019-06-01/network/ddoscustompolicies.go index 940af9b8d61d..ef326f8c304d 100644 --- a/services/network/mgmt/2019-06-01/network/ddoscustompolicies.go +++ b/services/network/mgmt/2019-06-01/network/ddoscustompolicies.go @@ -226,6 +226,7 @@ func (client DdosCustomPoliciesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-06-01/network/ddosprotectionplans.go b/services/network/mgmt/2019-06-01/network/ddosprotectionplans.go index d76ebe90f15f..7b1f1c56e879 100644 --- a/services/network/mgmt/2019-06-01/network/ddosprotectionplans.go +++ b/services/network/mgmt/2019-06-01/network/ddosprotectionplans.go @@ -229,6 +229,7 @@ func (client DdosProtectionPlansClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DdosProtectionPlansClient) List(ctx context.Context) (result DdosPr result.dpplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client DdosProtectionPlansClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, result.dpplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client DdosProtectionPlansClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/defaultsecurityrules.go b/services/network/mgmt/2019-06-01/network/defaultsecurityrules.go index e068d5dfeb96..fd2785df5f5b 100644 --- a/services/network/mgmt/2019-06-01/network/defaultsecurityrules.go +++ b/services/network/mgmt/2019-06-01/network/defaultsecurityrules.go @@ -74,6 +74,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2019-06-01/network/expressroutecircuitauthorizations.go index 8af52b1df2a6..c27a9ea4fbac 100644 --- a/services/network/mgmt/2019-06-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2019-06-01/network/expressroutecircuitauthorizations.go @@ -234,6 +234,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2019-06-01/network/expressroutecircuitconnections.go index feb91d84a2d5..6610e34a69a8 100644 --- a/services/network/mgmt/2019-06-01/network/expressroutecircuitconnections.go +++ b/services/network/mgmt/2019-06-01/network/expressroutecircuitconnections.go @@ -238,6 +238,7 @@ func (client ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ExpressRouteCircuitConnectionsClient) List(ctx context.Context, res result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client ExpressRouteCircuitConnectionsClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2019-06-01/network/expressroutecircuitpeerings.go index 53c4059aa44c..a73b4260b1ee 100644 --- a/services/network/mgmt/2019-06-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2019-06-01/network/expressroutecircuitpeerings.go @@ -244,6 +244,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/expressroutecircuits.go b/services/network/mgmt/2019-06-01/network/expressroutecircuits.go index f60c8577977e..3d02569e3aed 100644 --- a/services/network/mgmt/2019-06-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2019-06-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/expressrouteconnections.go b/services/network/mgmt/2019-06-01/network/expressrouteconnections.go index cd05e4448369..7eedcba17e55 100644 --- a/services/network/mgmt/2019-06-01/network/expressrouteconnections.go +++ b/services/network/mgmt/2019-06-01/network/expressrouteconnections.go @@ -239,6 +239,7 @@ func (client ExpressRouteConnectionsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client ExpressRouteConnectionsClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-06-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2019-06-01/network/expressroutecrossconnectionpeerings.go index 469f2fac3440..7d235d70a128 100644 --- a/services/network/mgmt/2019-06-01/network/expressroutecrossconnectionpeerings.go +++ b/services/network/mgmt/2019-06-01/network/expressroutecrossconnectionpeerings.go @@ -245,6 +245,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context result.erccpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "List", resp, "Failure responding to request") + return } if result.erccpl.hasNextLink() && result.erccpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) listNextResults(ctx cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/expressroutecrossconnections.go b/services/network/mgmt/2019-06-01/network/expressroutecrossconnections.go index 9d5f3b678a96..56873c669f99 100644 --- a/services/network/mgmt/2019-06-01/network/expressroutecrossconnections.go +++ b/services/network/mgmt/2019-06-01/network/expressroutecrossconnections.go @@ -152,6 +152,7 @@ func (client ExpressRouteCrossConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ExpressRouteCrossConnectionsClient) List(ctx context.Context) (resu result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -287,6 +289,7 @@ func (client ExpressRouteCrossConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -418,6 +421,7 @@ func (client ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context result.ercclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +485,7 @@ func (client ExpressRouteCrossConnectionsClient) listByResourceGroupNextResults( result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/expressroutegateways.go b/services/network/mgmt/2019-06-01/network/expressroutegateways.go index 6b9f09c1f844..90359933008c 100644 --- a/services/network/mgmt/2019-06-01/network/expressroutegateways.go +++ b/services/network/mgmt/2019-06-01/network/expressroutegateways.go @@ -235,6 +235,7 @@ func (client ExpressRouteGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client ExpressRouteGatewaysClient) ListByResourceGroup(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -380,6 +382,7 @@ func (client ExpressRouteGatewaysClient) ListBySubscription(ctx context.Context) result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-06-01/network/expressroutelinks.go b/services/network/mgmt/2019-06-01/network/expressroutelinks.go index 290f4ff04711..4e5a0bffb2c9 100644 --- a/services/network/mgmt/2019-06-01/network/expressroutelinks.go +++ b/services/network/mgmt/2019-06-01/network/expressroutelinks.go @@ -74,6 +74,7 @@ func (client ExpressRouteLinksClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ExpressRouteLinksClient) List(ctx context.Context, resourceGroupNam result.erllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "List", resp, "Failure responding to request") + return } if result.erllr.hasNextLink() && result.erllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client ExpressRouteLinksClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/expressrouteports.go b/services/network/mgmt/2019-06-01/network/expressrouteports.go index 591b1d1c7296..bcd871d03c59 100644 --- a/services/network/mgmt/2019-06-01/network/expressrouteports.go +++ b/services/network/mgmt/2019-06-01/network/expressrouteports.go @@ -226,6 +226,7 @@ func (client ExpressRoutePortsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client ExpressRoutePortsClient) List(ctx context.Context) (result ExpressR result.erplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "List", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -361,6 +363,7 @@ func (client ExpressRoutePortsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, r result.erplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ExpressRoutePortsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/expressrouteportslocations.go b/services/network/mgmt/2019-06-01/network/expressrouteportslocations.go index b6be894a1ba5..49c48adbeb60 100644 --- a/services/network/mgmt/2019-06-01/network/expressrouteportslocations.go +++ b/services/network/mgmt/2019-06-01/network/expressrouteportslocations.go @@ -73,6 +73,7 @@ func (client ExpressRoutePortsLocationsClient) Get(ctx context.Context, location result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client ExpressRoutePortsLocationsClient) List(ctx context.Context) (result result.erpllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "List", resp, "Failure responding to request") + return } if result.erpllr.hasNextLink() && result.erpllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -208,6 +210,7 @@ func (client ExpressRoutePortsLocationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2019-06-01/network/expressrouteserviceproviders.go index 7d44eaea6b09..7fc50f7196f3 100644 --- a/services/network/mgmt/2019-06-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2019-06-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/firewallpolicies.go b/services/network/mgmt/2019-06-01/network/firewallpolicies.go index a672e6fc60b3..2bacaa2fab5c 100644 --- a/services/network/mgmt/2019-06-01/network/firewallpolicies.go +++ b/services/network/mgmt/2019-06-01/network/firewallpolicies.go @@ -227,6 +227,7 @@ func (client FirewallPoliciesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client FirewallPoliciesClient) List(ctx context.Context, resourceGroupName result.fplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "List", resp, "Failure responding to request") + return } if result.fplr.hasNextLink() && result.fplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client FirewallPoliciesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client FirewallPoliciesClient) ListAll(ctx context.Context) (result Firewa result.fplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "ListAll", resp, "Failure responding to request") + return } if result.fplr.hasNextLink() && result.fplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client FirewallPoliciesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +536,7 @@ func (client FirewallPoliciesClient) UpdateTags(ctx context.Context, resourceGro result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-06-01/network/firewallpolicyrulegroups.go b/services/network/mgmt/2019-06-01/network/firewallpolicyrulegroups.go index 28f21ae43d1e..d9c2382da065 100644 --- a/services/network/mgmt/2019-06-01/network/firewallpolicyrulegroups.go +++ b/services/network/mgmt/2019-06-01/network/firewallpolicyrulegroups.go @@ -244,6 +244,7 @@ func (client FirewallPolicyRuleGroupsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client FirewallPolicyRuleGroupsClient) List(ctx context.Context, resourceG result.fprglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "List", resp, "Failure responding to request") + return } if result.fprglr.hasNextLink() && result.fprglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client FirewallPolicyRuleGroupsClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2019-06-01/network/hubvirtualnetworkconnections.go index b9b80e1bb3bf..b40d4441d58b 100644 --- a/services/network/mgmt/2019-06-01/network/hubvirtualnetworkconnections.go +++ b/services/network/mgmt/2019-06-01/network/hubvirtualnetworkconnections.go @@ -74,6 +74,7 @@ func (client HubVirtualNetworkConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client HubVirtualNetworkConnectionsClient) List(ctx context.Context, resou result.lhvncr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "List", resp, "Failure responding to request") + return } if result.lhvncr.hasNextLink() && result.lhvncr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client HubVirtualNetworkConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/inboundnatrules.go b/services/network/mgmt/2019-06-01/network/inboundnatrules.go index 0183e91a8130..8a97360d9b92 100644 --- a/services/network/mgmt/2019-06-01/network/inboundnatrules.go +++ b/services/network/mgmt/2019-06-01/network/inboundnatrules.go @@ -251,6 +251,7 @@ func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -331,6 +332,7 @@ func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName result.inrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return } if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -395,6 +397,7 @@ func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/interfaceipconfigurations.go b/services/network/mgmt/2019-06-01/network/interfaceipconfigurations.go index e2612009fc6c..f4c804c7cd4c 100644 --- a/services/network/mgmt/2019-06-01/network/interfaceipconfigurations.go +++ b/services/network/mgmt/2019-06-01/network/interfaceipconfigurations.go @@ -74,6 +74,7 @@ func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resource result.iiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/interfaceloadbalancers.go b/services/network/mgmt/2019-06-01/network/interfaceloadbalancers.go index 758537c779f5..4088d2ada9db 100644 --- a/services/network/mgmt/2019-06-01/network/interfaceloadbalancers.go +++ b/services/network/mgmt/2019-06-01/network/interfaceloadbalancers.go @@ -74,6 +74,7 @@ func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGro result.ilblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/interfacesgroup.go b/services/network/mgmt/2019-06-01/network/interfacesgroup.go index 516a1cc81ab0..8f69b0d9ba35 100644 --- a/services/network/mgmt/2019-06-01/network/interfacesgroup.go +++ b/services/network/mgmt/2019-06-01/network/interfacesgroup.go @@ -225,6 +225,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -383,6 +384,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx cont result, err = client.GetVirtualMachineScaleSetIPConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure responding to request") + return } return @@ -467,6 +469,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -547,6 +550,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -610,6 +614,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -659,6 +664,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -721,6 +727,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -852,6 +859,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx co result.iiclr, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -921,6 +929,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetIPConfigurationsNextRes result, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -973,6 +982,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1037,6 +1047,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1091,6 +1102,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1156,6 +1168,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/interfacetapconfigurations.go b/services/network/mgmt/2019-06-01/network/interfacetapconfigurations.go index 8791704fddb7..4bda15c2a825 100644 --- a/services/network/mgmt/2019-06-01/network/interfacetapconfigurations.go +++ b/services/network/mgmt/2019-06-01/network/interfacetapconfigurations.go @@ -267,6 +267,7 @@ func (client InterfaceTapConfigurationsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +345,7 @@ func (client InterfaceTapConfigurationsClient) List(ctx context.Context, resourc result.itclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.itclr.hasNextLink() && result.itclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -408,6 +410,7 @@ func (client InterfaceTapConfigurationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2019-06-01/network/loadbalancerbackendaddresspools.go index 2b994f10715a..59536ace698a 100644 --- a/services/network/mgmt/2019-06-01/network/loadbalancerbackendaddresspools.go +++ b/services/network/mgmt/2019-06-01/network/loadbalancerbackendaddresspools.go @@ -74,6 +74,7 @@ func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, re result.lbbaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return } if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2019-06-01/network/loadbalancerfrontendipconfigurations.go index e9320a875064..7f958d053031 100644 --- a/services/network/mgmt/2019-06-01/network/loadbalancerfrontendipconfigurations.go +++ b/services/network/mgmt/2019-06-01/network/loadbalancerfrontendipconfigurations.go @@ -75,6 +75,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Contex result.lbficlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2019-06-01/network/loadbalancerloadbalancingrules.go index d2ac87c98777..5ee5fbb97f9d 100644 --- a/services/network/mgmt/2019-06-01/network/loadbalancerloadbalancingrules.go +++ b/services/network/mgmt/2019-06-01/network/loadbalancerloadbalancingrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, res result.lblbrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return } if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2019-06-01/network/loadbalancernetworkinterfaces.go index cbb61038149c..1942c53c5d23 100644 --- a/services/network/mgmt/2019-06-01/network/loadbalancernetworkinterfaces.go +++ b/services/network/mgmt/2019-06-01/network/loadbalancernetworkinterfaces.go @@ -74,6 +74,7 @@ func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, reso result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2019-06-01/network/loadbalanceroutboundrules.go index 7b9691c0eb15..d2b53c663e7b 100644 --- a/services/network/mgmt/2019-06-01/network/loadbalanceroutboundrules.go +++ b/services/network/mgmt/2019-06-01/network/loadbalanceroutboundrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerOutboundRulesClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerOutboundRulesClient) List(ctx context.Context, resource result.lborlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "List", resp, "Failure responding to request") + return } if result.lborlr.hasNextLink() && result.lborlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerOutboundRulesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/loadbalancerprobes.go b/services/network/mgmt/2019-06-01/network/loadbalancerprobes.go index 2db252cf24ad..2db21a7ec8bd 100644 --- a/services/network/mgmt/2019-06-01/network/loadbalancerprobes.go +++ b/services/network/mgmt/2019-06-01/network/loadbalancerprobes.go @@ -74,6 +74,7 @@ func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupNa result.lbplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return } if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/loadbalancers.go b/services/network/mgmt/2019-06-01/network/loadbalancers.go index ea837248e9ff..4e4bd56b3724 100644 --- a/services/network/mgmt/2019-06-01/network/loadbalancers.go +++ b/services/network/mgmt/2019-06-01/network/loadbalancers.go @@ -225,6 +225,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/localnetworkgateways.go b/services/network/mgmt/2019-06-01/network/localnetworkgateways.go index 7f4f524a9f2d..546a6fe230e2 100644 --- a/services/network/mgmt/2019-06-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2019-06-01/network/localnetworkgateways.go @@ -246,6 +246,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/natgateways.go b/services/network/mgmt/2019-06-01/network/natgateways.go index 542a74a4686b..2f53829972e5 100644 --- a/services/network/mgmt/2019-06-01/network/natgateways.go +++ b/services/network/mgmt/2019-06-01/network/natgateways.go @@ -225,6 +225,7 @@ func (client NatGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client NatGatewaysClient) List(ctx context.Context, resourceGroupName stri result.nglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "List", resp, "Failure responding to request") + return } if result.nglr.hasNextLink() && result.nglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client NatGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client NatGatewaysClient) ListAll(ctx context.Context) (result NatGatewayL result.nglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.nglr.hasNextLink() && result.nglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client NatGatewaysClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -529,6 +534,7 @@ func (client NatGatewaysClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-06-01/network/operations.go b/services/network/mgmt/2019-06-01/network/operations.go index efc7cf99b5bd..d33117436e3e 100644 --- a/services/network/mgmt/2019-06-01/network/operations.go +++ b/services/network/mgmt/2019-06-01/network/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/p2svpngateways.go b/services/network/mgmt/2019-06-01/network/p2svpngateways.go index 5832f2b5ec48..7d29d45d2147 100644 --- a/services/network/mgmt/2019-06-01/network/p2svpngateways.go +++ b/services/network/mgmt/2019-06-01/network/p2svpngateways.go @@ -303,6 +303,7 @@ func (client P2sVpnGatewaysClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -452,6 +453,7 @@ func (client P2sVpnGatewaysClient) List(ctx context.Context) (result ListP2SVpnG result.lpvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -514,6 +516,7 @@ func (client P2sVpnGatewaysClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +568,7 @@ func (client P2sVpnGatewaysClient) ListByResourceGroup(ctx context.Context, reso result.lpvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -628,6 +632,7 @@ func (client P2sVpnGatewaysClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/p2svpnserverconfigurations.go b/services/network/mgmt/2019-06-01/network/p2svpnserverconfigurations.go index 3b51942f24b1..c93913ac0074 100644 --- a/services/network/mgmt/2019-06-01/network/p2svpnserverconfigurations.go +++ b/services/network/mgmt/2019-06-01/network/p2svpnserverconfigurations.go @@ -232,6 +232,7 @@ func (client P2sVpnServerConfigurationsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnServerConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client P2sVpnServerConfigurationsClient) ListByVirtualWan(ctx context.Cont result.lpvscr, err = client.ListByVirtualWanResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnServerConfigurationsClient", "ListByVirtualWan", resp, "Failure responding to request") + return } if result.lpvscr.hasNextLink() && result.lpvscr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client P2sVpnServerConfigurationsClient) listByVirtualWanNextResults(ctx c result, err = client.ListByVirtualWanResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnServerConfigurationsClient", "listByVirtualWanNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/packetcaptures.go b/services/network/mgmt/2019-06-01/network/packetcaptures.go index 9722af899727..677930559d8a 100644 --- a/services/network/mgmt/2019-06-01/network/packetcaptures.go +++ b/services/network/mgmt/2019-06-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-06-01/network/peerexpressroutecircuitconnections.go b/services/network/mgmt/2019-06-01/network/peerexpressroutecircuitconnections.go index c99b042dfa61..2d9ab4b6bffb 100644 --- a/services/network/mgmt/2019-06-01/network/peerexpressroutecircuitconnections.go +++ b/services/network/mgmt/2019-06-01/network/peerexpressroutecircuitconnections.go @@ -76,6 +76,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) List(ctx context.Context, result.percclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.percclr.hasNextLink() && result.percclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -220,6 +222,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) listNextResults(ctx conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/privateendpoints.go b/services/network/mgmt/2019-06-01/network/privateendpoints.go index 783d7386bd5b..8d424ea7a9eb 100644 --- a/services/network/mgmt/2019-06-01/network/privateendpoints.go +++ b/services/network/mgmt/2019-06-01/network/privateendpoints.go @@ -226,6 +226,7 @@ func (client PrivateEndpointsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client PrivateEndpointsClient) List(ctx context.Context, resourceGroupName result.pelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "List", resp, "Failure responding to request") + return } if result.pelr.hasNextLink() && result.pelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client PrivateEndpointsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client PrivateEndpointsClient) ListBySubscription(ctx context.Context) (re result.pelr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.pelr.hasNextLink() && result.pelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client PrivateEndpointsClient) listBySubscriptionNextResults(ctx context.C result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/privatelinkservices.go b/services/network/mgmt/2019-06-01/network/privatelinkservices.go index 56a62e06b232..f08af99afadd 100644 --- a/services/network/mgmt/2019-06-01/network/privatelinkservices.go +++ b/services/network/mgmt/2019-06-01/network/privatelinkservices.go @@ -456,6 +456,7 @@ func (client PrivateLinkServicesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -534,6 +535,7 @@ func (client PrivateLinkServicesClient) List(ctx context.Context, resourceGroupN result.plslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "List", resp, "Failure responding to request") + return } if result.plslr.hasNextLink() && result.plslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -597,6 +599,7 @@ func (client PrivateLinkServicesClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -649,6 +652,7 @@ func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServices(ctx result.aaplsr, err = client.ListAutoApprovedPrivateLinkServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServices", resp, "Failure responding to request") + return } if result.aaplsr.hasNextLink() && result.aaplsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -712,6 +716,7 @@ func (client PrivateLinkServicesClient) listAutoApprovedPrivateLinkServicesNextR result, err = client.ListAutoApprovedPrivateLinkServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesNextResults", resp, "Failure responding to next results request") + return } return } @@ -765,6 +770,7 @@ func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByRes result.aaplsr, err = client.ListAutoApprovedPrivateLinkServicesByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServicesByResourceGroup", resp, "Failure responding to request") + return } if result.aaplsr.hasNextLink() && result.aaplsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -829,6 +835,7 @@ func (client PrivateLinkServicesClient) listAutoApprovedPrivateLinkServicesByRes result, err = client.ListAutoApprovedPrivateLinkServicesByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -878,6 +885,7 @@ func (client PrivateLinkServicesClient) ListBySubscription(ctx context.Context) result.plslr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.plslr.hasNextLink() && result.plslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -940,6 +948,7 @@ func (client PrivateLinkServicesClient) listBySubscriptionNextResults(ctx contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -994,6 +1003,7 @@ func (client PrivateLinkServicesClient) UpdatePrivateEndpointConnection(ctx cont result, err = client.UpdatePrivateEndpointConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "UpdatePrivateEndpointConnection", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-06-01/network/profiles.go b/services/network/mgmt/2019-06-01/network/profiles.go index 0e6249191ca3..10dce530a95b 100644 --- a/services/network/mgmt/2019-06-01/network/profiles.go +++ b/services/network/mgmt/2019-06-01/network/profiles.go @@ -73,6 +73,7 @@ func (client ProfilesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +305,7 @@ func (client ProfilesClient) List(ctx context.Context, resourceGroupName string) result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +369,7 @@ func (client ProfilesClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +419,7 @@ func (client ProfilesClient) ListAll(ctx context.Context) (result ProfileListRes result.plr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "ListAll", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +482,7 @@ func (client ProfilesClient) listAllNextResults(ctx context.Context, lastResults result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -529,6 +535,7 @@ func (client ProfilesClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-06-01/network/publicipaddresses.go b/services/network/mgmt/2019-06-01/network/publicipaddresses.go index 65dff0b08392..3f9e85859044 100644 --- a/services/network/mgmt/2019-06-01/network/publicipaddresses.go +++ b/services/network/mgmt/2019-06-01/network/publicipaddresses.go @@ -238,6 +238,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -403,6 +405,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +469,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +519,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -577,6 +582,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +636,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -694,6 +701,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +758,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -817,6 +826,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/publicipprefixes.go b/services/network/mgmt/2019-06-01/network/publicipprefixes.go index 8e90f4f9fb65..c87c1812e4a8 100644 --- a/services/network/mgmt/2019-06-01/network/publicipprefixes.go +++ b/services/network/mgmt/2019-06-01/network/publicipprefixes.go @@ -226,6 +226,7 @@ func (client PublicIPPrefixesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client PublicIPPrefixesClient) List(ctx context.Context, resourceGroupName result.piplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "List", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client PublicIPPrefixesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client PublicIPPrefixesClient) ListAll(ctx context.Context) (result Public result.piplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "ListAll", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client PublicIPPrefixesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/resourcenavigationlinks.go b/services/network/mgmt/2019-06-01/network/resourcenavigationlinks.go index 3084f4212708..08f730e34e16 100644 --- a/services/network/mgmt/2019-06-01/network/resourcenavigationlinks.go +++ b/services/network/mgmt/2019-06-01/network/resourcenavigationlinks.go @@ -74,6 +74,7 @@ func (client ResourceNavigationLinksClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ResourceNavigationLinksClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-06-01/network/routefilterrules.go b/services/network/mgmt/2019-06-01/network/routefilterrules.go index fbe540d0cbfc..a5d90344c5be 100644 --- a/services/network/mgmt/2019-06-01/network/routefilterrules.go +++ b/services/network/mgmt/2019-06-01/network/routefilterrules.go @@ -241,6 +241,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/routefilters.go b/services/network/mgmt/2019-06-01/network/routefilters.go index d00bd13c470f..1bfa5b990598 100644 --- a/services/network/mgmt/2019-06-01/network/routefilters.go +++ b/services/network/mgmt/2019-06-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/routes.go b/services/network/mgmt/2019-06-01/network/routes.go index 72592b7fbdaf..40de71776771 100644 --- a/services/network/mgmt/2019-06-01/network/routes.go +++ b/services/network/mgmt/2019-06-01/network/routes.go @@ -229,6 +229,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/routetables.go b/services/network/mgmt/2019-06-01/network/routetables.go index efcdcbfcddf4..60e4c36ec7fb 100644 --- a/services/network/mgmt/2019-06-01/network/routetables.go +++ b/services/network/mgmt/2019-06-01/network/routetables.go @@ -225,6 +225,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/securitygroups.go b/services/network/mgmt/2019-06-01/network/securitygroups.go index 87b9d12b39c5..6b32fe498474 100644 --- a/services/network/mgmt/2019-06-01/network/securitygroups.go +++ b/services/network/mgmt/2019-06-01/network/securitygroups.go @@ -225,6 +225,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/securityrules.go b/services/network/mgmt/2019-06-01/network/securityrules.go index ae306b47f4b3..81c1c6954774 100644 --- a/services/network/mgmt/2019-06-01/network/securityrules.go +++ b/services/network/mgmt/2019-06-01/network/securityrules.go @@ -229,6 +229,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/serviceassociationlinks.go b/services/network/mgmt/2019-06-01/network/serviceassociationlinks.go index 767cb9d18b5a..3aa86907e1d8 100644 --- a/services/network/mgmt/2019-06-01/network/serviceassociationlinks.go +++ b/services/network/mgmt/2019-06-01/network/serviceassociationlinks.go @@ -74,6 +74,7 @@ func (client ServiceAssociationLinksClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceAssociationLinksClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-06-01/network/serviceendpointpolicies.go b/services/network/mgmt/2019-06-01/network/serviceendpointpolicies.go index 5204f9966b0d..e644a05b6fa8 100644 --- a/services/network/mgmt/2019-06-01/network/serviceendpointpolicies.go +++ b/services/network/mgmt/2019-06-01/network/serviceendpointpolicies.go @@ -226,6 +226,7 @@ func (client ServiceEndpointPoliciesClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ServiceEndpointPoliciesClient) List(ctx context.Context) (result Se result.seplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "List", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ServiceEndpointPoliciesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Cont result.seplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client ServiceEndpointPoliciesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2019-06-01/network/serviceendpointpolicydefinitions.go index 113c4488e484..f869e2c3e125 100644 --- a/services/network/mgmt/2019-06-01/network/serviceendpointpolicydefinitions.go +++ b/services/network/mgmt/2019-06-01/network/serviceendpointpolicydefinitions.go @@ -231,6 +231,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) ListByResourceGroup(ctx con result.sepdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sepdlr.hasNextLink() && result.sepdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) listByResourceGroupNextResu result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/servicetags.go b/services/network/mgmt/2019-06-01/network/servicetags.go index d96217aeb602..51cc5500a077 100644 --- a/services/network/mgmt/2019-06-01/network/servicetags.go +++ b/services/network/mgmt/2019-06-01/network/servicetags.go @@ -73,6 +73,7 @@ func (client ServiceTagsClient) List(ctx context.Context, location string) (resu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceTagsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-06-01/network/subnets.go b/services/network/mgmt/2019-06-01/network/subnets.go index d94c44a90c2c..c5bb8d2a69ee 100644 --- a/services/network/mgmt/2019-06-01/network/subnets.go +++ b/services/network/mgmt/2019-06-01/network/subnets.go @@ -230,6 +230,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/usages.go b/services/network/mgmt/2019-06-01/network/usages.go index 320d53a84951..ccacbd49bf2d 100644 --- a/services/network/mgmt/2019-06-01/network/usages.go +++ b/services/network/mgmt/2019-06-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/virtualhubs.go b/services/network/mgmt/2019-06-01/network/virtualhubs.go index e3e800b6f53f..9ee360415209 100644 --- a/services/network/mgmt/2019-06-01/network/virtualhubs.go +++ b/services/network/mgmt/2019-06-01/network/virtualhubs.go @@ -225,6 +225,7 @@ func (client VirtualHubsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualHubsClient) List(ctx context.Context) (result ListVirtualHub result.lvhr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "List", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualHubsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualHubsClient) ListByResourceGroup(ctx context.Context, resourc result.lvhr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualHubsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2019-06-01/network/virtualnetworkgatewayconnections.go index 908954515f31..cd30eb36fef7 100644 --- a/services/network/mgmt/2019-06-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2019-06-01/network/virtualnetworkgatewayconnections.go @@ -239,6 +239,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/virtualnetworkgateways.go b/services/network/mgmt/2019-06-01/network/virtualnetworkgateways.go index 94ff1fc8cc0e..61cead9f55d7 100644 --- a/services/network/mgmt/2019-06-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2019-06-01/network/virtualnetworkgateways.go @@ -390,6 +390,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -927,6 +928,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -990,6 +992,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1042,6 +1045,7 @@ func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, result.vnglcr, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return } if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1106,6 +1110,7 @@ func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx contex result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1399,6 +1404,7 @@ func (client VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Conte result, err = client.SupportedVpnDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", resp, "Failure responding to request") + return } return @@ -1554,6 +1560,7 @@ func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx cont result, err = client.VpnDeviceConfigurationScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-06-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2019-06-01/network/virtualnetworkpeerings.go index f48fc89fb64f..f6d062db6020 100644 --- a/services/network/mgmt/2019-06-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2019-06-01/network/virtualnetworkpeerings.go @@ -231,6 +231,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/virtualnetworks.go b/services/network/mgmt/2019-06-01/network/virtualnetworks.go index b51f68993031..6b10009c13c2 100644 --- a/services/network/mgmt/2019-06-01/network/virtualnetworks.go +++ b/services/network/mgmt/2019-06-01/network/virtualnetworks.go @@ -73,6 +73,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -380,6 +382,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -443,6 +446,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -492,6 +496,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -554,6 +559,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -606,6 +612,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -670,6 +677,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/virtualnetworktaps.go b/services/network/mgmt/2019-06-01/network/virtualnetworktaps.go index 027fb4a4d009..e79109b0ce98 100644 --- a/services/network/mgmt/2019-06-01/network/virtualnetworktaps.go +++ b/services/network/mgmt/2019-06-01/network/virtualnetworktaps.go @@ -257,6 +257,7 @@ func (client VirtualNetworkTapsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client VirtualNetworkTapsClient) ListAll(ctx context.Context) (result Virt result.vntlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListAll", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -392,6 +394,7 @@ func (client VirtualNetworkTapsClient) listAllNextResults(ctx context.Context, l result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +446,7 @@ func (client VirtualNetworkTapsClient) ListByResourceGroup(ctx context.Context, result.vntlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -506,6 +510,7 @@ func (client VirtualNetworkTapsClient) listByResourceGroupNextResults(ctx contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/virtualwans.go b/services/network/mgmt/2019-06-01/network/virtualwans.go index b4e36c2c01dd..3c8d819b6174 100644 --- a/services/network/mgmt/2019-06-01/network/virtualwans.go +++ b/services/network/mgmt/2019-06-01/network/virtualwans.go @@ -225,6 +225,7 @@ func (client VirtualWansClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualWansClient) List(ctx context.Context) (result ListVirtualWAN result.lvwnr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "List", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualWansClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualWansClient) ListByResourceGroup(ctx context.Context, resourc result.lvwnr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualWansClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/vpnconnections.go b/services/network/mgmt/2019-06-01/network/vpnconnections.go index 120d3ea2221b..cab5a63b908e 100644 --- a/services/network/mgmt/2019-06-01/network/vpnconnections.go +++ b/services/network/mgmt/2019-06-01/network/vpnconnections.go @@ -231,6 +231,7 @@ func (client VpnConnectionsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VpnConnectionsClient) ListByVpnGateway(ctx context.Context, resourc result.lvcr, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "ListByVpnGateway", resp, "Failure responding to request") + return } if result.lvcr.hasNextLink() && result.lvcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VpnConnectionsClient) listByVpnGatewayNextResults(ctx context.Conte result, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "listByVpnGatewayNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/vpngateways.go b/services/network/mgmt/2019-06-01/network/vpngateways.go index 23226ceb6117..ca757978885a 100644 --- a/services/network/mgmt/2019-06-01/network/vpngateways.go +++ b/services/network/mgmt/2019-06-01/network/vpngateways.go @@ -225,6 +225,7 @@ func (client VpnGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnGatewaysClient) List(ctx context.Context) (result ListVpnGateway result.lvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnGatewaysClient) ListByResourceGroup(ctx context.Context, resourc result.lvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnGatewaysClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/vpnlinkconnections.go b/services/network/mgmt/2019-06-01/network/vpnlinkconnections.go index 2502b31c1b26..8da3ae4cf43d 100644 --- a/services/network/mgmt/2019-06-01/network/vpnlinkconnections.go +++ b/services/network/mgmt/2019-06-01/network/vpnlinkconnections.go @@ -75,6 +75,7 @@ func (client VpnLinkConnectionsClient) ListByVpnConnection(ctx context.Context, result.lvslcr, err = client.ListByVpnConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnLinkConnectionsClient", "ListByVpnConnection", resp, "Failure responding to request") + return } if result.lvslcr.hasNextLink() && result.lvslcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -140,6 +141,7 @@ func (client VpnLinkConnectionsClient) listByVpnConnectionNextResults(ctx contex result, err = client.ListByVpnConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnLinkConnectionsClient", "listByVpnConnectionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/vpnsitelinkconnections.go b/services/network/mgmt/2019-06-01/network/vpnsitelinkconnections.go index 6ac26038379e..5e810c61b46c 100644 --- a/services/network/mgmt/2019-06-01/network/vpnsitelinkconnections.go +++ b/services/network/mgmt/2019-06-01/network/vpnsitelinkconnections.go @@ -75,6 +75,7 @@ func (client VpnSiteLinkConnectionsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinkConnectionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-06-01/network/vpnsitelinks.go b/services/network/mgmt/2019-06-01/network/vpnsitelinks.go index b336b31a4085..d4684db24077 100644 --- a/services/network/mgmt/2019-06-01/network/vpnsitelinks.go +++ b/services/network/mgmt/2019-06-01/network/vpnsitelinks.go @@ -73,6 +73,7 @@ func (client VpnSiteLinksClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client VpnSiteLinksClient) ListByVpnSite(ctx context.Context, resourceGrou result.lvslr, err = client.ListByVpnSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "ListByVpnSite", resp, "Failure responding to request") + return } if result.lvslr.hasNextLink() && result.lvslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -214,6 +216,7 @@ func (client VpnSiteLinksClient) listByVpnSiteNextResults(ctx context.Context, l result, err = client.ListByVpnSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "listByVpnSiteNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/vpnsites.go b/services/network/mgmt/2019-06-01/network/vpnsites.go index 58a5ef982357..fc2c7eed3fe0 100644 --- a/services/network/mgmt/2019-06-01/network/vpnsites.go +++ b/services/network/mgmt/2019-06-01/network/vpnsites.go @@ -225,6 +225,7 @@ func (client VpnSitesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnSitesClient) List(ctx context.Context) (result ListVpnSitesResul result.lvsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "List", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnSitesClient) listNextResults(ctx context.Context, lastResults Li result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnSitesClient) ListByResourceGroup(ctx context.Context, resourceGr result.lvsr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnSitesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-06-01/network/watchers.go b/services/network/mgmt/2019-06-01/network/watchers.go index eff365f2e436..dad51489235b 100644 --- a/services/network/mgmt/2019-06-01/network/watchers.go +++ b/services/network/mgmt/2019-06-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -731,6 +733,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -1063,6 +1066,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -1134,6 +1138,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return @@ -1382,6 +1387,7 @@ func (client WatchersClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-06-01/network/webapplicationfirewallpolicies.go b/services/network/mgmt/2019-06-01/network/webapplicationfirewallpolicies.go index b5029bad5ea0..bd706619946c 100644 --- a/services/network/mgmt/2019-06-01/network/webapplicationfirewallpolicies.go +++ b/services/network/mgmt/2019-06-01/network/webapplicationfirewallpolicies.go @@ -81,6 +81,7 @@ func (client WebApplicationFirewallPoliciesClient) CreateOrUpdate(ctx context.Co result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -244,6 +245,7 @@ func (client WebApplicationFirewallPoliciesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +321,7 @@ func (client WebApplicationFirewallPoliciesClient) List(ctx context.Context, res result.wafplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "List", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +385,7 @@ func (client WebApplicationFirewallPoliciesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -431,6 +435,7 @@ func (client WebApplicationFirewallPoliciesClient) ListAll(ctx context.Context) result.wafplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "ListAll", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -493,6 +498,7 @@ func (client WebApplicationFirewallPoliciesClient) listAllNextResults(ctx contex result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/applicationgateways.go b/services/network/mgmt/2019-07-01/network/applicationgateways.go index b99ce74a56dc..af506464159f 100644 --- a/services/network/mgmt/2019-07-01/network/applicationgateways.go +++ b/services/network/mgmt/2019-07-01/network/applicationgateways.go @@ -416,6 +416,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -490,6 +491,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte result, err = client.GetSslPredefinedPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return } return @@ -564,6 +566,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +630,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -676,6 +680,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -738,6 +743,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -786,6 +792,7 @@ func (client ApplicationGatewaysClient) ListAvailableRequestHeaders(ctx context. result, err = client.ListAvailableRequestHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableRequestHeaders", resp, "Failure responding to request") + return } return @@ -856,6 +863,7 @@ func (client ApplicationGatewaysClient) ListAvailableResponseHeaders(ctx context result, err = client.ListAvailableResponseHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableResponseHeaders", resp, "Failure responding to request") + return } return @@ -926,6 +934,7 @@ func (client ApplicationGatewaysClient) ListAvailableServerVariables(ctx context result, err = client.ListAvailableServerVariablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableServerVariables", resp, "Failure responding to request") + return } return @@ -996,6 +1005,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont result, err = client.ListAvailableSslOptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return } return @@ -1067,6 +1077,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return } if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { err = result.NextWithContext(ctx) @@ -1129,6 +1140,7 @@ func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextRe result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1177,6 +1189,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-07-01/network/applicationsecuritygroups.go b/services/network/mgmt/2019-07-01/network/applicationsecuritygroups.go index fd6cbc584e93..f0c743463446 100644 --- a/services/network/mgmt/2019-07-01/network/applicationsecuritygroups.go +++ b/services/network/mgmt/2019-07-01/network/applicationsecuritygroups.go @@ -226,6 +226,7 @@ func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resource result.asglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ApplicationSecurityGroupsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (resu result.asglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ApplicationSecurityGroupsClient) listAllNextResults(ctx context.Con result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/availabledelegations.go b/services/network/mgmt/2019-07-01/network/availabledelegations.go index 2c3b573c5597..9f4d132cb881 100644 --- a/services/network/mgmt/2019-07-01/network/availabledelegations.go +++ b/services/network/mgmt/2019-07-01/network/availabledelegations.go @@ -73,6 +73,7 @@ func (client AvailableDelegationsClient) List(ctx context.Context, location stri result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableDelegationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/availableendpointservices.go b/services/network/mgmt/2019-07-01/network/availableendpointservices.go index 9e7971976799..6195297ef005 100644 --- a/services/network/mgmt/2019-07-01/network/availableendpointservices.go +++ b/services/network/mgmt/2019-07-01/network/availableendpointservices.go @@ -73,6 +73,7 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableEndpointServicesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/availableprivateendpointtypes.go b/services/network/mgmt/2019-07-01/network/availableprivateendpointtypes.go index 0e8a6eae3270..d9434bab18be 100644 --- a/services/network/mgmt/2019-07-01/network/availableprivateendpointtypes.go +++ b/services/network/mgmt/2019-07-01/network/availableprivateendpointtypes.go @@ -73,6 +73,7 @@ func (client AvailablePrivateEndpointTypesClient) List(ctx context.Context, loca result.apetr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "List", resp, "Failure responding to request") + return } if result.apetr.hasNextLink() && result.apetr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailablePrivateEndpointTypesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -189,6 +191,7 @@ func (client AvailablePrivateEndpointTypesClient) ListByResourceGroup(ctx contex result.apetr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.apetr.hasNextLink() && result.apetr.IsEmpty() { err = result.NextWithContext(ctx) @@ -253,6 +256,7 @@ func (client AvailablePrivateEndpointTypesClient) listByResourceGroupNextResults result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2019-07-01/network/availableresourcegroupdelegations.go index 208afaad4e01..f2377f919066 100644 --- a/services/network/mgmt/2019-07-01/network/availableresourcegroupdelegations.go +++ b/services/network/mgmt/2019-07-01/network/availableresourcegroupdelegations.go @@ -75,6 +75,7 @@ func (client AvailableResourceGroupDelegationsClient) List(ctx context.Context, result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client AvailableResourceGroupDelegationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2019-07-01/network/azurefirewallfqdntags.go index 179bebd8df61..78a42a1da51f 100644 --- a/services/network/mgmt/2019-07-01/network/azurefirewallfqdntags.go +++ b/services/network/mgmt/2019-07-01/network/azurefirewallfqdntags.go @@ -71,6 +71,7 @@ func (client AzureFirewallFqdnTagsClient) ListAll(ctx context.Context) (result A result.afftlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "ListAll", resp, "Failure responding to request") + return } if result.afftlr.hasNextLink() && result.afftlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client AzureFirewallFqdnTagsClient) listAllNextResults(ctx context.Context result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/azurefirewalls.go b/services/network/mgmt/2019-07-01/network/azurefirewalls.go index c807b397f8f5..b1a366c13529 100644 --- a/services/network/mgmt/2019-07-01/network/azurefirewalls.go +++ b/services/network/mgmt/2019-07-01/network/azurefirewalls.go @@ -225,6 +225,7 @@ func (client AzureFirewallsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client AzureFirewallsClient) List(ctx context.Context, resourceGroupName s result.aflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "List", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +365,7 @@ func (client AzureFirewallsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client AzureFirewallsClient) ListAll(ctx context.Context) (result AzureFir result.aflr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "ListAll", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client AzureFirewallsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +531,7 @@ func (client AzureFirewallsClient) UpdateTags(ctx context.Context, resourceGroup result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-07-01/network/bastionhosts.go b/services/network/mgmt/2019-07-01/network/bastionhosts.go index 70fdef7e77e0..4b999df70dcf 100644 --- a/services/network/mgmt/2019-07-01/network/bastionhosts.go +++ b/services/network/mgmt/2019-07-01/network/bastionhosts.go @@ -225,6 +225,7 @@ func (client BastionHostsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client BastionHostsClient) List(ctx context.Context) (result BastionHostLi result.bhlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "List", resp, "Failure responding to request") + return } if result.bhlr.hasNextLink() && result.bhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client BastionHostsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client BastionHostsClient) ListByResourceGroup(ctx context.Context, resour result.bhlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.bhlr.hasNextLink() && result.bhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client BastionHostsClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/bgpservicecommunities.go b/services/network/mgmt/2019-07-01/network/bgpservicecommunities.go index 746e5e9e1ee9..f950ca73505d 100644 --- a/services/network/mgmt/2019-07-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2019-07-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/client.go b/services/network/mgmt/2019-07-01/network/client.go index 079cc393504e..09a2c98fee11 100644 --- a/services/network/mgmt/2019-07-01/network/client.go +++ b/services/network/mgmt/2019-07-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client BaseClient) SupportedSecurityProviders(ctx context.Context, resourc result, err = client.SupportedSecurityProvidersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "SupportedSecurityProviders", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-07-01/network/connectionmonitors.go b/services/network/mgmt/2019-07-01/network/connectionmonitors.go index 4df209788163..db8d4a833e6c 100644 --- a/services/network/mgmt/2019-07-01/network/connectionmonitors.go +++ b/services/network/mgmt/2019-07-01/network/connectionmonitors.go @@ -241,6 +241,7 @@ func (client ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ConnectionMonitorsClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure responding to request") + return } return @@ -623,6 +625,7 @@ func (client ConnectionMonitorsClient) UpdateTags(ctx context.Context, resourceG result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-07-01/network/ddoscustompolicies.go b/services/network/mgmt/2019-07-01/network/ddoscustompolicies.go index a2b93e76c23e..030a80671273 100644 --- a/services/network/mgmt/2019-07-01/network/ddoscustompolicies.go +++ b/services/network/mgmt/2019-07-01/network/ddoscustompolicies.go @@ -226,6 +226,7 @@ func (client DdosCustomPoliciesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-07-01/network/ddosprotectionplans.go b/services/network/mgmt/2019-07-01/network/ddosprotectionplans.go index b29369a5479e..1dbcb59bb663 100644 --- a/services/network/mgmt/2019-07-01/network/ddosprotectionplans.go +++ b/services/network/mgmt/2019-07-01/network/ddosprotectionplans.go @@ -229,6 +229,7 @@ func (client DdosProtectionPlansClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DdosProtectionPlansClient) List(ctx context.Context) (result DdosPr result.dpplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client DdosProtectionPlansClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, result.dpplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client DdosProtectionPlansClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/defaultsecurityrules.go b/services/network/mgmt/2019-07-01/network/defaultsecurityrules.go index d3cc7ad107c2..7dda5dffd4fb 100644 --- a/services/network/mgmt/2019-07-01/network/defaultsecurityrules.go +++ b/services/network/mgmt/2019-07-01/network/defaultsecurityrules.go @@ -74,6 +74,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2019-07-01/network/expressroutecircuitauthorizations.go index 1ef3db6aca5e..647fe2a18420 100644 --- a/services/network/mgmt/2019-07-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2019-07-01/network/expressroutecircuitauthorizations.go @@ -234,6 +234,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2019-07-01/network/expressroutecircuitconnections.go index 0a49058a360f..4c3bb4fd3348 100644 --- a/services/network/mgmt/2019-07-01/network/expressroutecircuitconnections.go +++ b/services/network/mgmt/2019-07-01/network/expressroutecircuitconnections.go @@ -238,6 +238,7 @@ func (client ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ExpressRouteCircuitConnectionsClient) List(ctx context.Context, res result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client ExpressRouteCircuitConnectionsClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2019-07-01/network/expressroutecircuitpeerings.go index e7f0d0a70b95..a8be52ae0701 100644 --- a/services/network/mgmt/2019-07-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2019-07-01/network/expressroutecircuitpeerings.go @@ -244,6 +244,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/expressroutecircuits.go b/services/network/mgmt/2019-07-01/network/expressroutecircuits.go index d5e88c085ea8..b9727b31384f 100644 --- a/services/network/mgmt/2019-07-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2019-07-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/expressrouteconnections.go b/services/network/mgmt/2019-07-01/network/expressrouteconnections.go index 5fad2cae88cf..622092ba3cdd 100644 --- a/services/network/mgmt/2019-07-01/network/expressrouteconnections.go +++ b/services/network/mgmt/2019-07-01/network/expressrouteconnections.go @@ -239,6 +239,7 @@ func (client ExpressRouteConnectionsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client ExpressRouteConnectionsClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-07-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2019-07-01/network/expressroutecrossconnectionpeerings.go index 70873378ac7e..c01bbf5f690e 100644 --- a/services/network/mgmt/2019-07-01/network/expressroutecrossconnectionpeerings.go +++ b/services/network/mgmt/2019-07-01/network/expressroutecrossconnectionpeerings.go @@ -245,6 +245,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context result.erccpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "List", resp, "Failure responding to request") + return } if result.erccpl.hasNextLink() && result.erccpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) listNextResults(ctx cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/expressroutecrossconnections.go b/services/network/mgmt/2019-07-01/network/expressroutecrossconnections.go index 1692466cc714..235598fda264 100644 --- a/services/network/mgmt/2019-07-01/network/expressroutecrossconnections.go +++ b/services/network/mgmt/2019-07-01/network/expressroutecrossconnections.go @@ -152,6 +152,7 @@ func (client ExpressRouteCrossConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ExpressRouteCrossConnectionsClient) List(ctx context.Context) (resu result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -287,6 +289,7 @@ func (client ExpressRouteCrossConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -418,6 +421,7 @@ func (client ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context result.ercclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +485,7 @@ func (client ExpressRouteCrossConnectionsClient) listByResourceGroupNextResults( result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/expressroutegateways.go b/services/network/mgmt/2019-07-01/network/expressroutegateways.go index cc3afa7f92ef..a51291a886ae 100644 --- a/services/network/mgmt/2019-07-01/network/expressroutegateways.go +++ b/services/network/mgmt/2019-07-01/network/expressroutegateways.go @@ -235,6 +235,7 @@ func (client ExpressRouteGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client ExpressRouteGatewaysClient) ListByResourceGroup(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -380,6 +382,7 @@ func (client ExpressRouteGatewaysClient) ListBySubscription(ctx context.Context) result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-07-01/network/expressroutelinks.go b/services/network/mgmt/2019-07-01/network/expressroutelinks.go index 2eb8a605c913..46fde7a12cf7 100644 --- a/services/network/mgmt/2019-07-01/network/expressroutelinks.go +++ b/services/network/mgmt/2019-07-01/network/expressroutelinks.go @@ -74,6 +74,7 @@ func (client ExpressRouteLinksClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ExpressRouteLinksClient) List(ctx context.Context, resourceGroupNam result.erllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "List", resp, "Failure responding to request") + return } if result.erllr.hasNextLink() && result.erllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client ExpressRouteLinksClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/expressrouteports.go b/services/network/mgmt/2019-07-01/network/expressrouteports.go index dca1bda0863d..abc3f3d54d83 100644 --- a/services/network/mgmt/2019-07-01/network/expressrouteports.go +++ b/services/network/mgmt/2019-07-01/network/expressrouteports.go @@ -226,6 +226,7 @@ func (client ExpressRoutePortsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client ExpressRoutePortsClient) List(ctx context.Context) (result ExpressR result.erplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "List", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -361,6 +363,7 @@ func (client ExpressRoutePortsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, r result.erplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ExpressRoutePortsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/expressrouteportslocations.go b/services/network/mgmt/2019-07-01/network/expressrouteportslocations.go index 61aa04d72cf4..840569e9b3ce 100644 --- a/services/network/mgmt/2019-07-01/network/expressrouteportslocations.go +++ b/services/network/mgmt/2019-07-01/network/expressrouteportslocations.go @@ -73,6 +73,7 @@ func (client ExpressRoutePortsLocationsClient) Get(ctx context.Context, location result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client ExpressRoutePortsLocationsClient) List(ctx context.Context) (result result.erpllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "List", resp, "Failure responding to request") + return } if result.erpllr.hasNextLink() && result.erpllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -208,6 +210,7 @@ func (client ExpressRoutePortsLocationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2019-07-01/network/expressrouteserviceproviders.go index 7e43fbb6bb53..7c7b7a376ca7 100644 --- a/services/network/mgmt/2019-07-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2019-07-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/firewallpolicies.go b/services/network/mgmt/2019-07-01/network/firewallpolicies.go index cc89cf397d8f..5b757e377b8f 100644 --- a/services/network/mgmt/2019-07-01/network/firewallpolicies.go +++ b/services/network/mgmt/2019-07-01/network/firewallpolicies.go @@ -227,6 +227,7 @@ func (client FirewallPoliciesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client FirewallPoliciesClient) List(ctx context.Context, resourceGroupName result.fplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "List", resp, "Failure responding to request") + return } if result.fplr.hasNextLink() && result.fplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client FirewallPoliciesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client FirewallPoliciesClient) ListAll(ctx context.Context) (result Firewa result.fplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "ListAll", resp, "Failure responding to request") + return } if result.fplr.hasNextLink() && result.fplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client FirewallPoliciesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +536,7 @@ func (client FirewallPoliciesClient) UpdateTags(ctx context.Context, resourceGro result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-07-01/network/firewallpolicyrulegroups.go b/services/network/mgmt/2019-07-01/network/firewallpolicyrulegroups.go index d72d6355aafc..827b63121b5b 100644 --- a/services/network/mgmt/2019-07-01/network/firewallpolicyrulegroups.go +++ b/services/network/mgmt/2019-07-01/network/firewallpolicyrulegroups.go @@ -244,6 +244,7 @@ func (client FirewallPolicyRuleGroupsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client FirewallPolicyRuleGroupsClient) List(ctx context.Context, resourceG result.fprglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "List", resp, "Failure responding to request") + return } if result.fprglr.hasNextLink() && result.fprglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client FirewallPolicyRuleGroupsClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2019-07-01/network/hubvirtualnetworkconnections.go index aa42b2097809..cb8d9b8210e0 100644 --- a/services/network/mgmt/2019-07-01/network/hubvirtualnetworkconnections.go +++ b/services/network/mgmt/2019-07-01/network/hubvirtualnetworkconnections.go @@ -74,6 +74,7 @@ func (client HubVirtualNetworkConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client HubVirtualNetworkConnectionsClient) List(ctx context.Context, resou result.lhvncr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "List", resp, "Failure responding to request") + return } if result.lhvncr.hasNextLink() && result.lhvncr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client HubVirtualNetworkConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/inboundnatrules.go b/services/network/mgmt/2019-07-01/network/inboundnatrules.go index 63b389a15b33..62a5080c529d 100644 --- a/services/network/mgmt/2019-07-01/network/inboundnatrules.go +++ b/services/network/mgmt/2019-07-01/network/inboundnatrules.go @@ -251,6 +251,7 @@ func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -331,6 +332,7 @@ func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName result.inrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return } if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -395,6 +397,7 @@ func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/interfaceipconfigurations.go b/services/network/mgmt/2019-07-01/network/interfaceipconfigurations.go index 0d4a0a5aeb0a..d3e2fc86fb8b 100644 --- a/services/network/mgmt/2019-07-01/network/interfaceipconfigurations.go +++ b/services/network/mgmt/2019-07-01/network/interfaceipconfigurations.go @@ -74,6 +74,7 @@ func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resource result.iiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/interfaceloadbalancers.go b/services/network/mgmt/2019-07-01/network/interfaceloadbalancers.go index 9d9b83ce1e6f..6a9f88e1546f 100644 --- a/services/network/mgmt/2019-07-01/network/interfaceloadbalancers.go +++ b/services/network/mgmt/2019-07-01/network/interfaceloadbalancers.go @@ -74,6 +74,7 @@ func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGro result.ilblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/interfacesgroup.go b/services/network/mgmt/2019-07-01/network/interfacesgroup.go index 45bf023e2a7a..de0e95dca0b9 100644 --- a/services/network/mgmt/2019-07-01/network/interfacesgroup.go +++ b/services/network/mgmt/2019-07-01/network/interfacesgroup.go @@ -225,6 +225,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -383,6 +384,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx cont result, err = client.GetVirtualMachineScaleSetIPConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure responding to request") + return } return @@ -467,6 +469,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -547,6 +550,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -610,6 +614,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -659,6 +664,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -721,6 +727,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -852,6 +859,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx co result.iiclr, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -921,6 +929,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetIPConfigurationsNextRes result, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -973,6 +982,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1037,6 +1047,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1091,6 +1102,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1156,6 +1168,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/interfacetapconfigurations.go b/services/network/mgmt/2019-07-01/network/interfacetapconfigurations.go index e98c4fcf0edc..ce54d2ce4c4c 100644 --- a/services/network/mgmt/2019-07-01/network/interfacetapconfigurations.go +++ b/services/network/mgmt/2019-07-01/network/interfacetapconfigurations.go @@ -267,6 +267,7 @@ func (client InterfaceTapConfigurationsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +345,7 @@ func (client InterfaceTapConfigurationsClient) List(ctx context.Context, resourc result.itclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.itclr.hasNextLink() && result.itclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -408,6 +410,7 @@ func (client InterfaceTapConfigurationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2019-07-01/network/loadbalancerbackendaddresspools.go index aa51c1b3b174..e29ed62c92f2 100644 --- a/services/network/mgmt/2019-07-01/network/loadbalancerbackendaddresspools.go +++ b/services/network/mgmt/2019-07-01/network/loadbalancerbackendaddresspools.go @@ -74,6 +74,7 @@ func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, re result.lbbaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return } if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2019-07-01/network/loadbalancerfrontendipconfigurations.go index 1d66e9d179eb..e32335c0a946 100644 --- a/services/network/mgmt/2019-07-01/network/loadbalancerfrontendipconfigurations.go +++ b/services/network/mgmt/2019-07-01/network/loadbalancerfrontendipconfigurations.go @@ -75,6 +75,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Contex result.lbficlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2019-07-01/network/loadbalancerloadbalancingrules.go index 32072e3c7219..ffd34d9e11b2 100644 --- a/services/network/mgmt/2019-07-01/network/loadbalancerloadbalancingrules.go +++ b/services/network/mgmt/2019-07-01/network/loadbalancerloadbalancingrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, res result.lblbrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return } if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2019-07-01/network/loadbalancernetworkinterfaces.go index 81e08ae655b2..1ac38677e040 100644 --- a/services/network/mgmt/2019-07-01/network/loadbalancernetworkinterfaces.go +++ b/services/network/mgmt/2019-07-01/network/loadbalancernetworkinterfaces.go @@ -74,6 +74,7 @@ func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, reso result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2019-07-01/network/loadbalanceroutboundrules.go index 09204cbc2dca..ba1c7d62acb6 100644 --- a/services/network/mgmt/2019-07-01/network/loadbalanceroutboundrules.go +++ b/services/network/mgmt/2019-07-01/network/loadbalanceroutboundrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerOutboundRulesClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerOutboundRulesClient) List(ctx context.Context, resource result.lborlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "List", resp, "Failure responding to request") + return } if result.lborlr.hasNextLink() && result.lborlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerOutboundRulesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/loadbalancerprobes.go b/services/network/mgmt/2019-07-01/network/loadbalancerprobes.go index be8049cf7ce9..b4c7ef3c1c7a 100644 --- a/services/network/mgmt/2019-07-01/network/loadbalancerprobes.go +++ b/services/network/mgmt/2019-07-01/network/loadbalancerprobes.go @@ -74,6 +74,7 @@ func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupNa result.lbplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return } if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/loadbalancers.go b/services/network/mgmt/2019-07-01/network/loadbalancers.go index 3c0402aa8643..5a6c6a785246 100644 --- a/services/network/mgmt/2019-07-01/network/loadbalancers.go +++ b/services/network/mgmt/2019-07-01/network/loadbalancers.go @@ -225,6 +225,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/localnetworkgateways.go b/services/network/mgmt/2019-07-01/network/localnetworkgateways.go index 040339600c49..2f01df3664ad 100644 --- a/services/network/mgmt/2019-07-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2019-07-01/network/localnetworkgateways.go @@ -246,6 +246,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/natgateways.go b/services/network/mgmt/2019-07-01/network/natgateways.go index f9c7e44c14b4..d93d0cd0fe2c 100644 --- a/services/network/mgmt/2019-07-01/network/natgateways.go +++ b/services/network/mgmt/2019-07-01/network/natgateways.go @@ -225,6 +225,7 @@ func (client NatGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client NatGatewaysClient) List(ctx context.Context, resourceGroupName stri result.nglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "List", resp, "Failure responding to request") + return } if result.nglr.hasNextLink() && result.nglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client NatGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client NatGatewaysClient) ListAll(ctx context.Context) (result NatGatewayL result.nglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.nglr.hasNextLink() && result.nglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client NatGatewaysClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -529,6 +534,7 @@ func (client NatGatewaysClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-07-01/network/operations.go b/services/network/mgmt/2019-07-01/network/operations.go index fafa6555d4f3..bdf240b7e4bb 100644 --- a/services/network/mgmt/2019-07-01/network/operations.go +++ b/services/network/mgmt/2019-07-01/network/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/p2svpngateways.go b/services/network/mgmt/2019-07-01/network/p2svpngateways.go index b78e2ff82ef0..88aecf9055c6 100644 --- a/services/network/mgmt/2019-07-01/network/p2svpngateways.go +++ b/services/network/mgmt/2019-07-01/network/p2svpngateways.go @@ -303,6 +303,7 @@ func (client P2sVpnGatewaysClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -452,6 +453,7 @@ func (client P2sVpnGatewaysClient) List(ctx context.Context) (result ListP2SVpnG result.lpvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -514,6 +516,7 @@ func (client P2sVpnGatewaysClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +568,7 @@ func (client P2sVpnGatewaysClient) ListByResourceGroup(ctx context.Context, reso result.lpvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -628,6 +632,7 @@ func (client P2sVpnGatewaysClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/p2svpnserverconfigurations.go b/services/network/mgmt/2019-07-01/network/p2svpnserverconfigurations.go index 5383d4649680..7550601a0a04 100644 --- a/services/network/mgmt/2019-07-01/network/p2svpnserverconfigurations.go +++ b/services/network/mgmt/2019-07-01/network/p2svpnserverconfigurations.go @@ -232,6 +232,7 @@ func (client P2sVpnServerConfigurationsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnServerConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client P2sVpnServerConfigurationsClient) ListByVirtualWan(ctx context.Cont result.lpvscr, err = client.ListByVirtualWanResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnServerConfigurationsClient", "ListByVirtualWan", resp, "Failure responding to request") + return } if result.lpvscr.hasNextLink() && result.lpvscr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client P2sVpnServerConfigurationsClient) listByVirtualWanNextResults(ctx c result, err = client.ListByVirtualWanResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnServerConfigurationsClient", "listByVirtualWanNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/packetcaptures.go b/services/network/mgmt/2019-07-01/network/packetcaptures.go index 7258b00faf9e..2d71fe3edf84 100644 --- a/services/network/mgmt/2019-07-01/network/packetcaptures.go +++ b/services/network/mgmt/2019-07-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-07-01/network/peerexpressroutecircuitconnections.go b/services/network/mgmt/2019-07-01/network/peerexpressroutecircuitconnections.go index 8abb07d3b893..de5dc92d5cac 100644 --- a/services/network/mgmt/2019-07-01/network/peerexpressroutecircuitconnections.go +++ b/services/network/mgmt/2019-07-01/network/peerexpressroutecircuitconnections.go @@ -76,6 +76,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) List(ctx context.Context, result.percclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.percclr.hasNextLink() && result.percclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -220,6 +222,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) listNextResults(ctx conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/privateendpoints.go b/services/network/mgmt/2019-07-01/network/privateendpoints.go index d9131b8c43c1..2ecc571f62f5 100644 --- a/services/network/mgmt/2019-07-01/network/privateendpoints.go +++ b/services/network/mgmt/2019-07-01/network/privateendpoints.go @@ -226,6 +226,7 @@ func (client PrivateEndpointsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client PrivateEndpointsClient) List(ctx context.Context, resourceGroupName result.pelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "List", resp, "Failure responding to request") + return } if result.pelr.hasNextLink() && result.pelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client PrivateEndpointsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client PrivateEndpointsClient) ListBySubscription(ctx context.Context) (re result.pelr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.pelr.hasNextLink() && result.pelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client PrivateEndpointsClient) listBySubscriptionNextResults(ctx context.C result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/privatelinkservices.go b/services/network/mgmt/2019-07-01/network/privatelinkservices.go index 85497967b58f..dc85ba28b9e5 100644 --- a/services/network/mgmt/2019-07-01/network/privatelinkservices.go +++ b/services/network/mgmt/2019-07-01/network/privatelinkservices.go @@ -457,6 +457,7 @@ func (client PrivateLinkServicesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -535,6 +536,7 @@ func (client PrivateLinkServicesClient) List(ctx context.Context, resourceGroupN result.plslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "List", resp, "Failure responding to request") + return } if result.plslr.hasNextLink() && result.plslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -598,6 +600,7 @@ func (client PrivateLinkServicesClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -650,6 +653,7 @@ func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServices(ctx result.aaplsr, err = client.ListAutoApprovedPrivateLinkServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServices", resp, "Failure responding to request") + return } if result.aaplsr.hasNextLink() && result.aaplsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -713,6 +717,7 @@ func (client PrivateLinkServicesClient) listAutoApprovedPrivateLinkServicesNextR result, err = client.ListAutoApprovedPrivateLinkServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesNextResults", resp, "Failure responding to next results request") + return } return } @@ -766,6 +771,7 @@ func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByRes result.aaplsr, err = client.ListAutoApprovedPrivateLinkServicesByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServicesByResourceGroup", resp, "Failure responding to request") + return } if result.aaplsr.hasNextLink() && result.aaplsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -830,6 +836,7 @@ func (client PrivateLinkServicesClient) listAutoApprovedPrivateLinkServicesByRes result, err = client.ListAutoApprovedPrivateLinkServicesByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -879,6 +886,7 @@ func (client PrivateLinkServicesClient) ListBySubscription(ctx context.Context) result.plslr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.plslr.hasNextLink() && result.plslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -941,6 +949,7 @@ func (client PrivateLinkServicesClient) listBySubscriptionNextResults(ctx contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -995,6 +1004,7 @@ func (client PrivateLinkServicesClient) UpdatePrivateEndpointConnection(ctx cont result, err = client.UpdatePrivateEndpointConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "UpdatePrivateEndpointConnection", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-07-01/network/profiles.go b/services/network/mgmt/2019-07-01/network/profiles.go index e0d7992c79f8..6e7b39e0b850 100644 --- a/services/network/mgmt/2019-07-01/network/profiles.go +++ b/services/network/mgmt/2019-07-01/network/profiles.go @@ -73,6 +73,7 @@ func (client ProfilesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +305,7 @@ func (client ProfilesClient) List(ctx context.Context, resourceGroupName string) result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +369,7 @@ func (client ProfilesClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +419,7 @@ func (client ProfilesClient) ListAll(ctx context.Context) (result ProfileListRes result.plr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "ListAll", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +482,7 @@ func (client ProfilesClient) listAllNextResults(ctx context.Context, lastResults result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -529,6 +535,7 @@ func (client ProfilesClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-07-01/network/publicipaddresses.go b/services/network/mgmt/2019-07-01/network/publicipaddresses.go index 6193b725a429..9e842456005c 100644 --- a/services/network/mgmt/2019-07-01/network/publicipaddresses.go +++ b/services/network/mgmt/2019-07-01/network/publicipaddresses.go @@ -238,6 +238,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -403,6 +405,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +469,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +519,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -577,6 +582,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +636,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -694,6 +701,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +758,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -817,6 +826,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/publicipprefixes.go b/services/network/mgmt/2019-07-01/network/publicipprefixes.go index bae66df72326..ca27a53ada7c 100644 --- a/services/network/mgmt/2019-07-01/network/publicipprefixes.go +++ b/services/network/mgmt/2019-07-01/network/publicipprefixes.go @@ -226,6 +226,7 @@ func (client PublicIPPrefixesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client PublicIPPrefixesClient) List(ctx context.Context, resourceGroupName result.piplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "List", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client PublicIPPrefixesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client PublicIPPrefixesClient) ListAll(ctx context.Context) (result Public result.piplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "ListAll", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client PublicIPPrefixesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/resourcenavigationlinks.go b/services/network/mgmt/2019-07-01/network/resourcenavigationlinks.go index ee24518bb320..151284307490 100644 --- a/services/network/mgmt/2019-07-01/network/resourcenavigationlinks.go +++ b/services/network/mgmt/2019-07-01/network/resourcenavigationlinks.go @@ -74,6 +74,7 @@ func (client ResourceNavigationLinksClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ResourceNavigationLinksClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-07-01/network/routefilterrules.go b/services/network/mgmt/2019-07-01/network/routefilterrules.go index f2321809fbfa..a7fc89340258 100644 --- a/services/network/mgmt/2019-07-01/network/routefilterrules.go +++ b/services/network/mgmt/2019-07-01/network/routefilterrules.go @@ -241,6 +241,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/routefilters.go b/services/network/mgmt/2019-07-01/network/routefilters.go index 7b83dd3499c7..180efbd82df6 100644 --- a/services/network/mgmt/2019-07-01/network/routefilters.go +++ b/services/network/mgmt/2019-07-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/routes.go b/services/network/mgmt/2019-07-01/network/routes.go index 84292173debb..c95fba2a9e3e 100644 --- a/services/network/mgmt/2019-07-01/network/routes.go +++ b/services/network/mgmt/2019-07-01/network/routes.go @@ -229,6 +229,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/routetables.go b/services/network/mgmt/2019-07-01/network/routetables.go index 849dd9921222..00a21286435c 100644 --- a/services/network/mgmt/2019-07-01/network/routetables.go +++ b/services/network/mgmt/2019-07-01/network/routetables.go @@ -225,6 +225,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/securitygroups.go b/services/network/mgmt/2019-07-01/network/securitygroups.go index c43c603fe083..3f08dfec051b 100644 --- a/services/network/mgmt/2019-07-01/network/securitygroups.go +++ b/services/network/mgmt/2019-07-01/network/securitygroups.go @@ -225,6 +225,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/securityrules.go b/services/network/mgmt/2019-07-01/network/securityrules.go index 65390c494012..0197a00b0ad2 100644 --- a/services/network/mgmt/2019-07-01/network/securityrules.go +++ b/services/network/mgmt/2019-07-01/network/securityrules.go @@ -229,6 +229,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/serviceassociationlinks.go b/services/network/mgmt/2019-07-01/network/serviceassociationlinks.go index bc0a3ca6a215..609694e511e5 100644 --- a/services/network/mgmt/2019-07-01/network/serviceassociationlinks.go +++ b/services/network/mgmt/2019-07-01/network/serviceassociationlinks.go @@ -74,6 +74,7 @@ func (client ServiceAssociationLinksClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceAssociationLinksClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-07-01/network/serviceendpointpolicies.go b/services/network/mgmt/2019-07-01/network/serviceendpointpolicies.go index 604ccd8ffa06..e0ce4c917cb5 100644 --- a/services/network/mgmt/2019-07-01/network/serviceendpointpolicies.go +++ b/services/network/mgmt/2019-07-01/network/serviceendpointpolicies.go @@ -226,6 +226,7 @@ func (client ServiceEndpointPoliciesClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ServiceEndpointPoliciesClient) List(ctx context.Context) (result Se result.seplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "List", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ServiceEndpointPoliciesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Cont result.seplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client ServiceEndpointPoliciesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2019-07-01/network/serviceendpointpolicydefinitions.go index 2a86c6ace1fc..68f314e1e9e6 100644 --- a/services/network/mgmt/2019-07-01/network/serviceendpointpolicydefinitions.go +++ b/services/network/mgmt/2019-07-01/network/serviceendpointpolicydefinitions.go @@ -231,6 +231,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) ListByResourceGroup(ctx con result.sepdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sepdlr.hasNextLink() && result.sepdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) listByResourceGroupNextResu result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/servicetags.go b/services/network/mgmt/2019-07-01/network/servicetags.go index 363688d176df..9edda2ea6829 100644 --- a/services/network/mgmt/2019-07-01/network/servicetags.go +++ b/services/network/mgmt/2019-07-01/network/servicetags.go @@ -73,6 +73,7 @@ func (client ServiceTagsClient) List(ctx context.Context, location string) (resu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceTagsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-07-01/network/subnets.go b/services/network/mgmt/2019-07-01/network/subnets.go index 30f90ac30a97..942ba7b1c483 100644 --- a/services/network/mgmt/2019-07-01/network/subnets.go +++ b/services/network/mgmt/2019-07-01/network/subnets.go @@ -230,6 +230,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/usages.go b/services/network/mgmt/2019-07-01/network/usages.go index 0ea2ea7f6efa..53b90672ef75 100644 --- a/services/network/mgmt/2019-07-01/network/usages.go +++ b/services/network/mgmt/2019-07-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/virtualhubs.go b/services/network/mgmt/2019-07-01/network/virtualhubs.go index d8dcb8e0c7ef..ddcc96c256b8 100644 --- a/services/network/mgmt/2019-07-01/network/virtualhubs.go +++ b/services/network/mgmt/2019-07-01/network/virtualhubs.go @@ -225,6 +225,7 @@ func (client VirtualHubsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualHubsClient) List(ctx context.Context) (result ListVirtualHub result.lvhr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "List", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualHubsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualHubsClient) ListByResourceGroup(ctx context.Context, resourc result.lvhr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualHubsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2019-07-01/network/virtualnetworkgatewayconnections.go index 61a57c75f7df..98862810cc9b 100644 --- a/services/network/mgmt/2019-07-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2019-07-01/network/virtualnetworkgatewayconnections.go @@ -239,6 +239,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/virtualnetworkgateways.go b/services/network/mgmt/2019-07-01/network/virtualnetworkgateways.go index db74817be6c4..9c30bca3549e 100644 --- a/services/network/mgmt/2019-07-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2019-07-01/network/virtualnetworkgateways.go @@ -390,6 +390,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -927,6 +928,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -990,6 +992,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1042,6 +1045,7 @@ func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, result.vnglcr, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return } if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1106,6 +1110,7 @@ func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx contex result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1558,6 +1563,7 @@ func (client VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Conte result, err = client.SupportedVpnDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", resp, "Failure responding to request") + return } return @@ -1713,6 +1719,7 @@ func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx cont result, err = client.VpnDeviceConfigurationScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-07-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2019-07-01/network/virtualnetworkpeerings.go index cdabc87c0f00..76f601171969 100644 --- a/services/network/mgmt/2019-07-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2019-07-01/network/virtualnetworkpeerings.go @@ -231,6 +231,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/virtualnetworks.go b/services/network/mgmt/2019-07-01/network/virtualnetworks.go index 1075934c7b59..74410d0f5a93 100644 --- a/services/network/mgmt/2019-07-01/network/virtualnetworks.go +++ b/services/network/mgmt/2019-07-01/network/virtualnetworks.go @@ -73,6 +73,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -380,6 +382,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -443,6 +446,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -492,6 +496,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -554,6 +559,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -606,6 +612,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -670,6 +677,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/virtualnetworktaps.go b/services/network/mgmt/2019-07-01/network/virtualnetworktaps.go index aa1b3e572233..f58298ea00b5 100644 --- a/services/network/mgmt/2019-07-01/network/virtualnetworktaps.go +++ b/services/network/mgmt/2019-07-01/network/virtualnetworktaps.go @@ -257,6 +257,7 @@ func (client VirtualNetworkTapsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client VirtualNetworkTapsClient) ListAll(ctx context.Context) (result Virt result.vntlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListAll", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -392,6 +394,7 @@ func (client VirtualNetworkTapsClient) listAllNextResults(ctx context.Context, l result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +446,7 @@ func (client VirtualNetworkTapsClient) ListByResourceGroup(ctx context.Context, result.vntlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -506,6 +510,7 @@ func (client VirtualNetworkTapsClient) listByResourceGroupNextResults(ctx contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/virtualrouterpeerings.go b/services/network/mgmt/2019-07-01/network/virtualrouterpeerings.go index 5ba70c32745d..653e9a165948 100644 --- a/services/network/mgmt/2019-07-01/network/virtualrouterpeerings.go +++ b/services/network/mgmt/2019-07-01/network/virtualrouterpeerings.go @@ -244,6 +244,7 @@ func (client VirtualRouterPeeringsClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client VirtualRouterPeeringsClient) List(ctx context.Context, resourceGrou result.vrplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vrplr.hasNextLink() && result.vrplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client VirtualRouterPeeringsClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -438,6 +441,7 @@ func (client VirtualRouterPeeringsClient) Update(ctx context.Context, resourceGr result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-07-01/network/virtualrouters.go b/services/network/mgmt/2019-07-01/network/virtualrouters.go index 3712cdf7d546..977ce9bbefd3 100644 --- a/services/network/mgmt/2019-07-01/network/virtualrouters.go +++ b/services/network/mgmt/2019-07-01/network/virtualrouters.go @@ -238,6 +238,7 @@ func (client VirtualRoutersClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client VirtualRoutersClient) List(ctx context.Context) (result VirtualRout result.vrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "List", resp, "Failure responding to request") + return } if result.vrlr.hasNextLink() && result.vrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -376,6 +378,7 @@ func (client VirtualRoutersClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -427,6 +430,7 @@ func (client VirtualRoutersClient) ListByResourceGroup(ctx context.Context, reso result.vrlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vrlr.hasNextLink() && result.vrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -490,6 +494,7 @@ func (client VirtualRoutersClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -542,6 +547,7 @@ func (client VirtualRoutersClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-07-01/network/virtualwans.go b/services/network/mgmt/2019-07-01/network/virtualwans.go index 91263850ce28..6500a9ed5c06 100644 --- a/services/network/mgmt/2019-07-01/network/virtualwans.go +++ b/services/network/mgmt/2019-07-01/network/virtualwans.go @@ -225,6 +225,7 @@ func (client VirtualWansClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualWansClient) List(ctx context.Context) (result ListVirtualWAN result.lvwnr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "List", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualWansClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualWansClient) ListByResourceGroup(ctx context.Context, resourc result.lvwnr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualWansClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/vpnconnections.go b/services/network/mgmt/2019-07-01/network/vpnconnections.go index 3f172d7546ed..9e392a80c82f 100644 --- a/services/network/mgmt/2019-07-01/network/vpnconnections.go +++ b/services/network/mgmt/2019-07-01/network/vpnconnections.go @@ -231,6 +231,7 @@ func (client VpnConnectionsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VpnConnectionsClient) ListByVpnGateway(ctx context.Context, resourc result.lvcr, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "ListByVpnGateway", resp, "Failure responding to request") + return } if result.lvcr.hasNextLink() && result.lvcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VpnConnectionsClient) listByVpnGatewayNextResults(ctx context.Conte result, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "listByVpnGatewayNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/vpngateways.go b/services/network/mgmt/2019-07-01/network/vpngateways.go index 064ed1313019..d5dcdb8eba3a 100644 --- a/services/network/mgmt/2019-07-01/network/vpngateways.go +++ b/services/network/mgmt/2019-07-01/network/vpngateways.go @@ -225,6 +225,7 @@ func (client VpnGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnGatewaysClient) List(ctx context.Context) (result ListVpnGateway result.lvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnGatewaysClient) ListByResourceGroup(ctx context.Context, resourc result.lvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnGatewaysClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/vpnlinkconnections.go b/services/network/mgmt/2019-07-01/network/vpnlinkconnections.go index d91e28c081bb..aff72426a5e3 100644 --- a/services/network/mgmt/2019-07-01/network/vpnlinkconnections.go +++ b/services/network/mgmt/2019-07-01/network/vpnlinkconnections.go @@ -75,6 +75,7 @@ func (client VpnLinkConnectionsClient) ListByVpnConnection(ctx context.Context, result.lvslcr, err = client.ListByVpnConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnLinkConnectionsClient", "ListByVpnConnection", resp, "Failure responding to request") + return } if result.lvslcr.hasNextLink() && result.lvslcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -140,6 +141,7 @@ func (client VpnLinkConnectionsClient) listByVpnConnectionNextResults(ctx contex result, err = client.ListByVpnConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnLinkConnectionsClient", "listByVpnConnectionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/vpnsitelinkconnections.go b/services/network/mgmt/2019-07-01/network/vpnsitelinkconnections.go index 7a2c028e6839..04df66479b68 100644 --- a/services/network/mgmt/2019-07-01/network/vpnsitelinkconnections.go +++ b/services/network/mgmt/2019-07-01/network/vpnsitelinkconnections.go @@ -75,6 +75,7 @@ func (client VpnSiteLinkConnectionsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinkConnectionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-07-01/network/vpnsitelinks.go b/services/network/mgmt/2019-07-01/network/vpnsitelinks.go index baad8a44e592..43848cdbd18f 100644 --- a/services/network/mgmt/2019-07-01/network/vpnsitelinks.go +++ b/services/network/mgmt/2019-07-01/network/vpnsitelinks.go @@ -73,6 +73,7 @@ func (client VpnSiteLinksClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client VpnSiteLinksClient) ListByVpnSite(ctx context.Context, resourceGrou result.lvslr, err = client.ListByVpnSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "ListByVpnSite", resp, "Failure responding to request") + return } if result.lvslr.hasNextLink() && result.lvslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -214,6 +216,7 @@ func (client VpnSiteLinksClient) listByVpnSiteNextResults(ctx context.Context, l result, err = client.ListByVpnSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "listByVpnSiteNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/vpnsites.go b/services/network/mgmt/2019-07-01/network/vpnsites.go index 2d22586ce083..09db09875a8e 100644 --- a/services/network/mgmt/2019-07-01/network/vpnsites.go +++ b/services/network/mgmt/2019-07-01/network/vpnsites.go @@ -225,6 +225,7 @@ func (client VpnSitesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnSitesClient) List(ctx context.Context) (result ListVpnSitesResul result.lvsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "List", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnSitesClient) listNextResults(ctx context.Context, lastResults Li result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnSitesClient) ListByResourceGroup(ctx context.Context, resourceGr result.lvsr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnSitesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-07-01/network/watchers.go b/services/network/mgmt/2019-07-01/network/watchers.go index f3918266877b..f3ff75c0691a 100644 --- a/services/network/mgmt/2019-07-01/network/watchers.go +++ b/services/network/mgmt/2019-07-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -735,6 +737,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -1067,6 +1070,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -1138,6 +1142,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return @@ -1382,6 +1387,7 @@ func (client WatchersClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-07-01/network/webapplicationfirewallpolicies.go b/services/network/mgmt/2019-07-01/network/webapplicationfirewallpolicies.go index 2c6cfbd04c6b..2435406bd1ae 100644 --- a/services/network/mgmt/2019-07-01/network/webapplicationfirewallpolicies.go +++ b/services/network/mgmt/2019-07-01/network/webapplicationfirewallpolicies.go @@ -81,6 +81,7 @@ func (client WebApplicationFirewallPoliciesClient) CreateOrUpdate(ctx context.Co result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -244,6 +245,7 @@ func (client WebApplicationFirewallPoliciesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +321,7 @@ func (client WebApplicationFirewallPoliciesClient) List(ctx context.Context, res result.wafplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "List", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +385,7 @@ func (client WebApplicationFirewallPoliciesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -431,6 +435,7 @@ func (client WebApplicationFirewallPoliciesClient) ListAll(ctx context.Context) result.wafplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "ListAll", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -493,6 +498,7 @@ func (client WebApplicationFirewallPoliciesClient) listAllNextResults(ctx contex result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/applicationgateways.go b/services/network/mgmt/2019-08-01/network/applicationgateways.go index 1ca71fb351eb..05dceca4fa89 100644 --- a/services/network/mgmt/2019-08-01/network/applicationgateways.go +++ b/services/network/mgmt/2019-08-01/network/applicationgateways.go @@ -416,6 +416,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -490,6 +491,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte result, err = client.GetSslPredefinedPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return } return @@ -564,6 +566,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +630,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -676,6 +680,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -738,6 +743,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -786,6 +792,7 @@ func (client ApplicationGatewaysClient) ListAvailableRequestHeaders(ctx context. result, err = client.ListAvailableRequestHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableRequestHeaders", resp, "Failure responding to request") + return } return @@ -856,6 +863,7 @@ func (client ApplicationGatewaysClient) ListAvailableResponseHeaders(ctx context result, err = client.ListAvailableResponseHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableResponseHeaders", resp, "Failure responding to request") + return } return @@ -926,6 +934,7 @@ func (client ApplicationGatewaysClient) ListAvailableServerVariables(ctx context result, err = client.ListAvailableServerVariablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableServerVariables", resp, "Failure responding to request") + return } return @@ -996,6 +1005,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont result, err = client.ListAvailableSslOptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return } return @@ -1067,6 +1077,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return } if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { err = result.NextWithContext(ctx) @@ -1129,6 +1140,7 @@ func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextRe result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1177,6 +1189,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-08-01/network/applicationsecuritygroups.go b/services/network/mgmt/2019-08-01/network/applicationsecuritygroups.go index aef5642bb92d..d88638f17093 100644 --- a/services/network/mgmt/2019-08-01/network/applicationsecuritygroups.go +++ b/services/network/mgmt/2019-08-01/network/applicationsecuritygroups.go @@ -226,6 +226,7 @@ func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resource result.asglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ApplicationSecurityGroupsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (resu result.asglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ApplicationSecurityGroupsClient) listAllNextResults(ctx context.Con result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/availabledelegations.go b/services/network/mgmt/2019-08-01/network/availabledelegations.go index e30a8574e5d1..b0c8f0531c49 100644 --- a/services/network/mgmt/2019-08-01/network/availabledelegations.go +++ b/services/network/mgmt/2019-08-01/network/availabledelegations.go @@ -73,6 +73,7 @@ func (client AvailableDelegationsClient) List(ctx context.Context, location stri result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableDelegationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/availableendpointservices.go b/services/network/mgmt/2019-08-01/network/availableendpointservices.go index e04cf08024f1..86bfd3a7e66a 100644 --- a/services/network/mgmt/2019-08-01/network/availableendpointservices.go +++ b/services/network/mgmt/2019-08-01/network/availableendpointservices.go @@ -73,6 +73,7 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableEndpointServicesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/availableprivateendpointtypes.go b/services/network/mgmt/2019-08-01/network/availableprivateendpointtypes.go index f7ffef6cf3ba..7e939a4326ff 100644 --- a/services/network/mgmt/2019-08-01/network/availableprivateendpointtypes.go +++ b/services/network/mgmt/2019-08-01/network/availableprivateendpointtypes.go @@ -73,6 +73,7 @@ func (client AvailablePrivateEndpointTypesClient) List(ctx context.Context, loca result.apetr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "List", resp, "Failure responding to request") + return } if result.apetr.hasNextLink() && result.apetr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailablePrivateEndpointTypesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -189,6 +191,7 @@ func (client AvailablePrivateEndpointTypesClient) ListByResourceGroup(ctx contex result.apetr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.apetr.hasNextLink() && result.apetr.IsEmpty() { err = result.NextWithContext(ctx) @@ -253,6 +256,7 @@ func (client AvailablePrivateEndpointTypesClient) listByResourceGroupNextResults result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2019-08-01/network/availableresourcegroupdelegations.go index c03847d5e87f..45a5765c30d1 100644 --- a/services/network/mgmt/2019-08-01/network/availableresourcegroupdelegations.go +++ b/services/network/mgmt/2019-08-01/network/availableresourcegroupdelegations.go @@ -75,6 +75,7 @@ func (client AvailableResourceGroupDelegationsClient) List(ctx context.Context, result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client AvailableResourceGroupDelegationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/availableservicealiases.go b/services/network/mgmt/2019-08-01/network/availableservicealiases.go index 148b590a5978..f88b5241b130 100644 --- a/services/network/mgmt/2019-08-01/network/availableservicealiases.go +++ b/services/network/mgmt/2019-08-01/network/availableservicealiases.go @@ -73,6 +73,7 @@ func (client AvailableServiceAliasesClient) List(ctx context.Context, location s result.asar, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "List", resp, "Failure responding to request") + return } if result.asar.hasNextLink() && result.asar.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableServiceAliasesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -188,6 +190,7 @@ func (client AvailableServiceAliasesClient) ListByResourceGroup(ctx context.Cont result.asar, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.asar.hasNextLink() && result.asar.IsEmpty() { err = result.NextWithContext(ctx) @@ -252,6 +255,7 @@ func (client AvailableServiceAliasesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2019-08-01/network/azurefirewallfqdntags.go index 7e83b0542866..c897a10bbc04 100644 --- a/services/network/mgmt/2019-08-01/network/azurefirewallfqdntags.go +++ b/services/network/mgmt/2019-08-01/network/azurefirewallfqdntags.go @@ -71,6 +71,7 @@ func (client AzureFirewallFqdnTagsClient) ListAll(ctx context.Context) (result A result.afftlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "ListAll", resp, "Failure responding to request") + return } if result.afftlr.hasNextLink() && result.afftlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client AzureFirewallFqdnTagsClient) listAllNextResults(ctx context.Context result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/azurefirewalls.go b/services/network/mgmt/2019-08-01/network/azurefirewalls.go index a1de4459a350..e507d911fad1 100644 --- a/services/network/mgmt/2019-08-01/network/azurefirewalls.go +++ b/services/network/mgmt/2019-08-01/network/azurefirewalls.go @@ -225,6 +225,7 @@ func (client AzureFirewallsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client AzureFirewallsClient) List(ctx context.Context, resourceGroupName s result.aflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "List", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +365,7 @@ func (client AzureFirewallsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client AzureFirewallsClient) ListAll(ctx context.Context) (result AzureFir result.aflr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "ListAll", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client AzureFirewallsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +531,7 @@ func (client AzureFirewallsClient) UpdateTags(ctx context.Context, resourceGroup result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-08-01/network/bastionhosts.go b/services/network/mgmt/2019-08-01/network/bastionhosts.go index c46800ffeda3..030abbb0375d 100644 --- a/services/network/mgmt/2019-08-01/network/bastionhosts.go +++ b/services/network/mgmt/2019-08-01/network/bastionhosts.go @@ -225,6 +225,7 @@ func (client BastionHostsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client BastionHostsClient) List(ctx context.Context) (result BastionHostLi result.bhlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "List", resp, "Failure responding to request") + return } if result.bhlr.hasNextLink() && result.bhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client BastionHostsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client BastionHostsClient) ListByResourceGroup(ctx context.Context, resour result.bhlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.bhlr.hasNextLink() && result.bhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client BastionHostsClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/bgpservicecommunities.go b/services/network/mgmt/2019-08-01/network/bgpservicecommunities.go index b074aadffacf..f431ce181772 100644 --- a/services/network/mgmt/2019-08-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2019-08-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/client.go b/services/network/mgmt/2019-08-01/network/client.go index 14d4898f0b9e..f4e189344893 100644 --- a/services/network/mgmt/2019-08-01/network/client.go +++ b/services/network/mgmt/2019-08-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return @@ -241,6 +242,7 @@ func (client BaseClient) SupportedSecurityProviders(ctx context.Context, resourc result, err = client.SupportedSecurityProvidersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "SupportedSecurityProviders", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-08-01/network/connectionmonitors.go b/services/network/mgmt/2019-08-01/network/connectionmonitors.go index 1dda0d0b0c0a..fdcb0455c5fc 100644 --- a/services/network/mgmt/2019-08-01/network/connectionmonitors.go +++ b/services/network/mgmt/2019-08-01/network/connectionmonitors.go @@ -241,6 +241,7 @@ func (client ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ConnectionMonitorsClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure responding to request") + return } return @@ -623,6 +625,7 @@ func (client ConnectionMonitorsClient) UpdateTags(ctx context.Context, resourceG result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-08-01/network/ddoscustompolicies.go b/services/network/mgmt/2019-08-01/network/ddoscustompolicies.go index a24f1be4342d..be1062cb6055 100644 --- a/services/network/mgmt/2019-08-01/network/ddoscustompolicies.go +++ b/services/network/mgmt/2019-08-01/network/ddoscustompolicies.go @@ -226,6 +226,7 @@ func (client DdosCustomPoliciesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-08-01/network/ddosprotectionplans.go b/services/network/mgmt/2019-08-01/network/ddosprotectionplans.go index fb1a9db16827..2bac8e75a16a 100644 --- a/services/network/mgmt/2019-08-01/network/ddosprotectionplans.go +++ b/services/network/mgmt/2019-08-01/network/ddosprotectionplans.go @@ -229,6 +229,7 @@ func (client DdosProtectionPlansClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DdosProtectionPlansClient) List(ctx context.Context) (result DdosPr result.dpplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client DdosProtectionPlansClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, result.dpplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client DdosProtectionPlansClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/defaultsecurityrules.go b/services/network/mgmt/2019-08-01/network/defaultsecurityrules.go index 6a5eedbbaaf4..8cba58533b00 100644 --- a/services/network/mgmt/2019-08-01/network/defaultsecurityrules.go +++ b/services/network/mgmt/2019-08-01/network/defaultsecurityrules.go @@ -74,6 +74,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2019-08-01/network/expressroutecircuitauthorizations.go index 97ddd017b8ec..e88bb14176f3 100644 --- a/services/network/mgmt/2019-08-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2019-08-01/network/expressroutecircuitauthorizations.go @@ -234,6 +234,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2019-08-01/network/expressroutecircuitconnections.go index 41cb7eb88d65..0f1530fb4e3a 100644 --- a/services/network/mgmt/2019-08-01/network/expressroutecircuitconnections.go +++ b/services/network/mgmt/2019-08-01/network/expressroutecircuitconnections.go @@ -238,6 +238,7 @@ func (client ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ExpressRouteCircuitConnectionsClient) List(ctx context.Context, res result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client ExpressRouteCircuitConnectionsClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2019-08-01/network/expressroutecircuitpeerings.go index 4df6fd39d4ff..c952adc74dbf 100644 --- a/services/network/mgmt/2019-08-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2019-08-01/network/expressroutecircuitpeerings.go @@ -244,6 +244,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/expressroutecircuits.go b/services/network/mgmt/2019-08-01/network/expressroutecircuits.go index 2f351eb0bf0e..e07dc09e83b1 100644 --- a/services/network/mgmt/2019-08-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2019-08-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/expressrouteconnections.go b/services/network/mgmt/2019-08-01/network/expressrouteconnections.go index 87dd6b8e29de..f7e01a38beae 100644 --- a/services/network/mgmt/2019-08-01/network/expressrouteconnections.go +++ b/services/network/mgmt/2019-08-01/network/expressrouteconnections.go @@ -239,6 +239,7 @@ func (client ExpressRouteConnectionsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client ExpressRouteConnectionsClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-08-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2019-08-01/network/expressroutecrossconnectionpeerings.go index a2cbe1509dab..1be55608ed98 100644 --- a/services/network/mgmt/2019-08-01/network/expressroutecrossconnectionpeerings.go +++ b/services/network/mgmt/2019-08-01/network/expressroutecrossconnectionpeerings.go @@ -245,6 +245,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context result.erccpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "List", resp, "Failure responding to request") + return } if result.erccpl.hasNextLink() && result.erccpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) listNextResults(ctx cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/expressroutecrossconnections.go b/services/network/mgmt/2019-08-01/network/expressroutecrossconnections.go index 7d214838ba7d..62589245abef 100644 --- a/services/network/mgmt/2019-08-01/network/expressroutecrossconnections.go +++ b/services/network/mgmt/2019-08-01/network/expressroutecrossconnections.go @@ -152,6 +152,7 @@ func (client ExpressRouteCrossConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ExpressRouteCrossConnectionsClient) List(ctx context.Context) (resu result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -287,6 +289,7 @@ func (client ExpressRouteCrossConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -418,6 +421,7 @@ func (client ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context result.ercclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +485,7 @@ func (client ExpressRouteCrossConnectionsClient) listByResourceGroupNextResults( result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/expressroutegateways.go b/services/network/mgmt/2019-08-01/network/expressroutegateways.go index 46ed40dfce0b..6b943215db2a 100644 --- a/services/network/mgmt/2019-08-01/network/expressroutegateways.go +++ b/services/network/mgmt/2019-08-01/network/expressroutegateways.go @@ -235,6 +235,7 @@ func (client ExpressRouteGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client ExpressRouteGatewaysClient) ListByResourceGroup(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -380,6 +382,7 @@ func (client ExpressRouteGatewaysClient) ListBySubscription(ctx context.Context) result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-08-01/network/expressroutelinks.go b/services/network/mgmt/2019-08-01/network/expressroutelinks.go index 130dc37ef6d6..0e078e8a8d7f 100644 --- a/services/network/mgmt/2019-08-01/network/expressroutelinks.go +++ b/services/network/mgmt/2019-08-01/network/expressroutelinks.go @@ -74,6 +74,7 @@ func (client ExpressRouteLinksClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ExpressRouteLinksClient) List(ctx context.Context, resourceGroupNam result.erllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "List", resp, "Failure responding to request") + return } if result.erllr.hasNextLink() && result.erllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client ExpressRouteLinksClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/expressrouteports.go b/services/network/mgmt/2019-08-01/network/expressrouteports.go index 52fe26fee2e1..3d1d9c0f4399 100644 --- a/services/network/mgmt/2019-08-01/network/expressrouteports.go +++ b/services/network/mgmt/2019-08-01/network/expressrouteports.go @@ -226,6 +226,7 @@ func (client ExpressRoutePortsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client ExpressRoutePortsClient) List(ctx context.Context) (result ExpressR result.erplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "List", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -361,6 +363,7 @@ func (client ExpressRoutePortsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, r result.erplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ExpressRoutePortsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/expressrouteportslocations.go b/services/network/mgmt/2019-08-01/network/expressrouteportslocations.go index 9652f4d2ee6b..b9de858efdcc 100644 --- a/services/network/mgmt/2019-08-01/network/expressrouteportslocations.go +++ b/services/network/mgmt/2019-08-01/network/expressrouteportslocations.go @@ -73,6 +73,7 @@ func (client ExpressRoutePortsLocationsClient) Get(ctx context.Context, location result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client ExpressRoutePortsLocationsClient) List(ctx context.Context) (result result.erpllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "List", resp, "Failure responding to request") + return } if result.erpllr.hasNextLink() && result.erpllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -208,6 +210,7 @@ func (client ExpressRoutePortsLocationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2019-08-01/network/expressrouteserviceproviders.go index bfd39b1bced0..0cd18689f43c 100644 --- a/services/network/mgmt/2019-08-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2019-08-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/firewallpolicies.go b/services/network/mgmt/2019-08-01/network/firewallpolicies.go index e0960f37af87..507e72c526ea 100644 --- a/services/network/mgmt/2019-08-01/network/firewallpolicies.go +++ b/services/network/mgmt/2019-08-01/network/firewallpolicies.go @@ -227,6 +227,7 @@ func (client FirewallPoliciesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client FirewallPoliciesClient) List(ctx context.Context, resourceGroupName result.fplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "List", resp, "Failure responding to request") + return } if result.fplr.hasNextLink() && result.fplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client FirewallPoliciesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client FirewallPoliciesClient) ListAll(ctx context.Context) (result Firewa result.fplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "ListAll", resp, "Failure responding to request") + return } if result.fplr.hasNextLink() && result.fplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client FirewallPoliciesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +536,7 @@ func (client FirewallPoliciesClient) UpdateTags(ctx context.Context, resourceGro result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-08-01/network/firewallpolicyrulegroups.go b/services/network/mgmt/2019-08-01/network/firewallpolicyrulegroups.go index 69157042e316..f5ba51caedec 100644 --- a/services/network/mgmt/2019-08-01/network/firewallpolicyrulegroups.go +++ b/services/network/mgmt/2019-08-01/network/firewallpolicyrulegroups.go @@ -244,6 +244,7 @@ func (client FirewallPolicyRuleGroupsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client FirewallPolicyRuleGroupsClient) List(ctx context.Context, resourceG result.fprglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "List", resp, "Failure responding to request") + return } if result.fprglr.hasNextLink() && result.fprglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client FirewallPolicyRuleGroupsClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2019-08-01/network/hubvirtualnetworkconnections.go index 9365b6bbad72..da048027a261 100644 --- a/services/network/mgmt/2019-08-01/network/hubvirtualnetworkconnections.go +++ b/services/network/mgmt/2019-08-01/network/hubvirtualnetworkconnections.go @@ -74,6 +74,7 @@ func (client HubVirtualNetworkConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client HubVirtualNetworkConnectionsClient) List(ctx context.Context, resou result.lhvncr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "List", resp, "Failure responding to request") + return } if result.lhvncr.hasNextLink() && result.lhvncr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client HubVirtualNetworkConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/inboundnatrules.go b/services/network/mgmt/2019-08-01/network/inboundnatrules.go index 742361a586b7..b83a53aee0d9 100644 --- a/services/network/mgmt/2019-08-01/network/inboundnatrules.go +++ b/services/network/mgmt/2019-08-01/network/inboundnatrules.go @@ -251,6 +251,7 @@ func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -331,6 +332,7 @@ func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName result.inrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return } if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -395,6 +397,7 @@ func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/interfaceipconfigurations.go b/services/network/mgmt/2019-08-01/network/interfaceipconfigurations.go index d335f6e00419..e295b37f887c 100644 --- a/services/network/mgmt/2019-08-01/network/interfaceipconfigurations.go +++ b/services/network/mgmt/2019-08-01/network/interfaceipconfigurations.go @@ -74,6 +74,7 @@ func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resource result.iiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/interfaceloadbalancers.go b/services/network/mgmt/2019-08-01/network/interfaceloadbalancers.go index 0364a6b578e2..9ec1d9e8d991 100644 --- a/services/network/mgmt/2019-08-01/network/interfaceloadbalancers.go +++ b/services/network/mgmt/2019-08-01/network/interfaceloadbalancers.go @@ -74,6 +74,7 @@ func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGro result.ilblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/interfacesgroup.go b/services/network/mgmt/2019-08-01/network/interfacesgroup.go index 2743dde51467..f60973865c9d 100644 --- a/services/network/mgmt/2019-08-01/network/interfacesgroup.go +++ b/services/network/mgmt/2019-08-01/network/interfacesgroup.go @@ -225,6 +225,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -383,6 +384,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx cont result, err = client.GetVirtualMachineScaleSetIPConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure responding to request") + return } return @@ -467,6 +469,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -547,6 +550,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -610,6 +614,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -659,6 +664,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -721,6 +727,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -852,6 +859,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx co result.iiclr, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -921,6 +929,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetIPConfigurationsNextRes result, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -973,6 +982,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1037,6 +1047,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1091,6 +1102,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1156,6 +1168,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/interfacetapconfigurations.go b/services/network/mgmt/2019-08-01/network/interfacetapconfigurations.go index 481d0ea243b5..7b3d95687fc0 100644 --- a/services/network/mgmt/2019-08-01/network/interfacetapconfigurations.go +++ b/services/network/mgmt/2019-08-01/network/interfacetapconfigurations.go @@ -267,6 +267,7 @@ func (client InterfaceTapConfigurationsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +345,7 @@ func (client InterfaceTapConfigurationsClient) List(ctx context.Context, resourc result.itclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.itclr.hasNextLink() && result.itclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -408,6 +410,7 @@ func (client InterfaceTapConfigurationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2019-08-01/network/loadbalancerbackendaddresspools.go index 7a75b3baf41d..d9ff7a36c1bf 100644 --- a/services/network/mgmt/2019-08-01/network/loadbalancerbackendaddresspools.go +++ b/services/network/mgmt/2019-08-01/network/loadbalancerbackendaddresspools.go @@ -74,6 +74,7 @@ func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, re result.lbbaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return } if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2019-08-01/network/loadbalancerfrontendipconfigurations.go index 42fa2836ee0b..401161a545ba 100644 --- a/services/network/mgmt/2019-08-01/network/loadbalancerfrontendipconfigurations.go +++ b/services/network/mgmt/2019-08-01/network/loadbalancerfrontendipconfigurations.go @@ -75,6 +75,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Contex result.lbficlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2019-08-01/network/loadbalancerloadbalancingrules.go index fb833ebecc8b..8da4f19193b6 100644 --- a/services/network/mgmt/2019-08-01/network/loadbalancerloadbalancingrules.go +++ b/services/network/mgmt/2019-08-01/network/loadbalancerloadbalancingrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, res result.lblbrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return } if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2019-08-01/network/loadbalancernetworkinterfaces.go index 89ed20274486..bdf3574e36f3 100644 --- a/services/network/mgmt/2019-08-01/network/loadbalancernetworkinterfaces.go +++ b/services/network/mgmt/2019-08-01/network/loadbalancernetworkinterfaces.go @@ -74,6 +74,7 @@ func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, reso result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2019-08-01/network/loadbalanceroutboundrules.go index b1dbeb1002fa..ad7eeaa6365e 100644 --- a/services/network/mgmt/2019-08-01/network/loadbalanceroutboundrules.go +++ b/services/network/mgmt/2019-08-01/network/loadbalanceroutboundrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerOutboundRulesClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerOutboundRulesClient) List(ctx context.Context, resource result.lborlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "List", resp, "Failure responding to request") + return } if result.lborlr.hasNextLink() && result.lborlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerOutboundRulesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/loadbalancerprobes.go b/services/network/mgmt/2019-08-01/network/loadbalancerprobes.go index 3a7891557771..66b56f16283a 100644 --- a/services/network/mgmt/2019-08-01/network/loadbalancerprobes.go +++ b/services/network/mgmt/2019-08-01/network/loadbalancerprobes.go @@ -74,6 +74,7 @@ func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupNa result.lbplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return } if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/loadbalancers.go b/services/network/mgmt/2019-08-01/network/loadbalancers.go index 4054892747bc..6faea638f4e3 100644 --- a/services/network/mgmt/2019-08-01/network/loadbalancers.go +++ b/services/network/mgmt/2019-08-01/network/loadbalancers.go @@ -225,6 +225,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/localnetworkgateways.go b/services/network/mgmt/2019-08-01/network/localnetworkgateways.go index d94d1f32a25d..dc243a7b1a34 100644 --- a/services/network/mgmt/2019-08-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2019-08-01/network/localnetworkgateways.go @@ -246,6 +246,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/natgateways.go b/services/network/mgmt/2019-08-01/network/natgateways.go index 9ae8f9b34c3b..e2dc691d18c5 100644 --- a/services/network/mgmt/2019-08-01/network/natgateways.go +++ b/services/network/mgmt/2019-08-01/network/natgateways.go @@ -225,6 +225,7 @@ func (client NatGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client NatGatewaysClient) List(ctx context.Context, resourceGroupName stri result.nglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "List", resp, "Failure responding to request") + return } if result.nglr.hasNextLink() && result.nglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client NatGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client NatGatewaysClient) ListAll(ctx context.Context) (result NatGatewayL result.nglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.nglr.hasNextLink() && result.nglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client NatGatewaysClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -529,6 +534,7 @@ func (client NatGatewaysClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-08-01/network/operations.go b/services/network/mgmt/2019-08-01/network/operations.go index 4f29eca5e725..5c2ea3e842bf 100644 --- a/services/network/mgmt/2019-08-01/network/operations.go +++ b/services/network/mgmt/2019-08-01/network/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/p2svpngateways.go b/services/network/mgmt/2019-08-01/network/p2svpngateways.go index 90bcf11c3870..c11f1c6d1d48 100644 --- a/services/network/mgmt/2019-08-01/network/p2svpngateways.go +++ b/services/network/mgmt/2019-08-01/network/p2svpngateways.go @@ -303,6 +303,7 @@ func (client P2sVpnGatewaysClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -531,6 +532,7 @@ func (client P2sVpnGatewaysClient) List(ctx context.Context) (result ListP2SVpnG result.lpvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -593,6 +595,7 @@ func (client P2sVpnGatewaysClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -644,6 +647,7 @@ func (client P2sVpnGatewaysClient) ListByResourceGroup(ctx context.Context, reso result.lpvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -707,6 +711,7 @@ func (client P2sVpnGatewaysClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/packetcaptures.go b/services/network/mgmt/2019-08-01/network/packetcaptures.go index 43d5d8c617fc..3c115f8a7a72 100644 --- a/services/network/mgmt/2019-08-01/network/packetcaptures.go +++ b/services/network/mgmt/2019-08-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-08-01/network/peerexpressroutecircuitconnections.go b/services/network/mgmt/2019-08-01/network/peerexpressroutecircuitconnections.go index aa1db8467fde..0cd6767a0849 100644 --- a/services/network/mgmt/2019-08-01/network/peerexpressroutecircuitconnections.go +++ b/services/network/mgmt/2019-08-01/network/peerexpressroutecircuitconnections.go @@ -76,6 +76,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) List(ctx context.Context, result.percclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.percclr.hasNextLink() && result.percclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -220,6 +222,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) listNextResults(ctx conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/privateendpoints.go b/services/network/mgmt/2019-08-01/network/privateendpoints.go index 2e4f64508b05..6997f8ce8d0c 100644 --- a/services/network/mgmt/2019-08-01/network/privateendpoints.go +++ b/services/network/mgmt/2019-08-01/network/privateendpoints.go @@ -226,6 +226,7 @@ func (client PrivateEndpointsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client PrivateEndpointsClient) List(ctx context.Context, resourceGroupName result.pelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "List", resp, "Failure responding to request") + return } if result.pelr.hasNextLink() && result.pelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client PrivateEndpointsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client PrivateEndpointsClient) ListBySubscription(ctx context.Context) (re result.pelr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.pelr.hasNextLink() && result.pelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client PrivateEndpointsClient) listBySubscriptionNextResults(ctx context.C result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/privatelinkservices.go b/services/network/mgmt/2019-08-01/network/privatelinkservices.go index 64badddc289f..a34bff51f989 100644 --- a/services/network/mgmt/2019-08-01/network/privatelinkservices.go +++ b/services/network/mgmt/2019-08-01/network/privatelinkservices.go @@ -457,6 +457,7 @@ func (client PrivateLinkServicesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -535,6 +536,7 @@ func (client PrivateLinkServicesClient) List(ctx context.Context, resourceGroupN result.plslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "List", resp, "Failure responding to request") + return } if result.plslr.hasNextLink() && result.plslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -598,6 +600,7 @@ func (client PrivateLinkServicesClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -650,6 +653,7 @@ func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServices(ctx result.aaplsr, err = client.ListAutoApprovedPrivateLinkServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServices", resp, "Failure responding to request") + return } if result.aaplsr.hasNextLink() && result.aaplsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -713,6 +717,7 @@ func (client PrivateLinkServicesClient) listAutoApprovedPrivateLinkServicesNextR result, err = client.ListAutoApprovedPrivateLinkServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesNextResults", resp, "Failure responding to next results request") + return } return } @@ -766,6 +771,7 @@ func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByRes result.aaplsr, err = client.ListAutoApprovedPrivateLinkServicesByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServicesByResourceGroup", resp, "Failure responding to request") + return } if result.aaplsr.hasNextLink() && result.aaplsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -830,6 +836,7 @@ func (client PrivateLinkServicesClient) listAutoApprovedPrivateLinkServicesByRes result, err = client.ListAutoApprovedPrivateLinkServicesByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -879,6 +886,7 @@ func (client PrivateLinkServicesClient) ListBySubscription(ctx context.Context) result.plslr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.plslr.hasNextLink() && result.plslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -941,6 +949,7 @@ func (client PrivateLinkServicesClient) listBySubscriptionNextResults(ctx contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -995,6 +1004,7 @@ func (client PrivateLinkServicesClient) UpdatePrivateEndpointConnection(ctx cont result, err = client.UpdatePrivateEndpointConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "UpdatePrivateEndpointConnection", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-08-01/network/profiles.go b/services/network/mgmt/2019-08-01/network/profiles.go index 2c2ee83e3593..acad12cb6a7f 100644 --- a/services/network/mgmt/2019-08-01/network/profiles.go +++ b/services/network/mgmt/2019-08-01/network/profiles.go @@ -73,6 +73,7 @@ func (client ProfilesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +305,7 @@ func (client ProfilesClient) List(ctx context.Context, resourceGroupName string) result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +369,7 @@ func (client ProfilesClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +419,7 @@ func (client ProfilesClient) ListAll(ctx context.Context) (result ProfileListRes result.plr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "ListAll", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +482,7 @@ func (client ProfilesClient) listAllNextResults(ctx context.Context, lastResults result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -529,6 +535,7 @@ func (client ProfilesClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-08-01/network/publicipaddresses.go b/services/network/mgmt/2019-08-01/network/publicipaddresses.go index 9bacf4142b33..5af23711f8c5 100644 --- a/services/network/mgmt/2019-08-01/network/publicipaddresses.go +++ b/services/network/mgmt/2019-08-01/network/publicipaddresses.go @@ -238,6 +238,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -403,6 +405,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +469,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +519,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -577,6 +582,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +636,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -694,6 +701,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +758,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -817,6 +826,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/publicipprefixes.go b/services/network/mgmt/2019-08-01/network/publicipprefixes.go index f67ea2813abe..5a4cdaeb0c8f 100644 --- a/services/network/mgmt/2019-08-01/network/publicipprefixes.go +++ b/services/network/mgmt/2019-08-01/network/publicipprefixes.go @@ -226,6 +226,7 @@ func (client PublicIPPrefixesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client PublicIPPrefixesClient) List(ctx context.Context, resourceGroupName result.piplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "List", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client PublicIPPrefixesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client PublicIPPrefixesClient) ListAll(ctx context.Context) (result Public result.piplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "ListAll", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client PublicIPPrefixesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/resourcenavigationlinks.go b/services/network/mgmt/2019-08-01/network/resourcenavigationlinks.go index 7fa76a14ed74..ce24d2ea6cdb 100644 --- a/services/network/mgmt/2019-08-01/network/resourcenavigationlinks.go +++ b/services/network/mgmt/2019-08-01/network/resourcenavigationlinks.go @@ -74,6 +74,7 @@ func (client ResourceNavigationLinksClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ResourceNavigationLinksClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-08-01/network/routefilterrules.go b/services/network/mgmt/2019-08-01/network/routefilterrules.go index 28a5c9efc8d8..347a1648181c 100644 --- a/services/network/mgmt/2019-08-01/network/routefilterrules.go +++ b/services/network/mgmt/2019-08-01/network/routefilterrules.go @@ -241,6 +241,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/routefilters.go b/services/network/mgmt/2019-08-01/network/routefilters.go index 41b8cef902c4..2c46e4c8ecfd 100644 --- a/services/network/mgmt/2019-08-01/network/routefilters.go +++ b/services/network/mgmt/2019-08-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/routes.go b/services/network/mgmt/2019-08-01/network/routes.go index 56840910d61f..630c2b174d79 100644 --- a/services/network/mgmt/2019-08-01/network/routes.go +++ b/services/network/mgmt/2019-08-01/network/routes.go @@ -229,6 +229,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/routetables.go b/services/network/mgmt/2019-08-01/network/routetables.go index 64efd371b362..e8688124f6cd 100644 --- a/services/network/mgmt/2019-08-01/network/routetables.go +++ b/services/network/mgmt/2019-08-01/network/routetables.go @@ -225,6 +225,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/securitygroups.go b/services/network/mgmt/2019-08-01/network/securitygroups.go index 93aa3c2f13fa..752dc3063c4e 100644 --- a/services/network/mgmt/2019-08-01/network/securitygroups.go +++ b/services/network/mgmt/2019-08-01/network/securitygroups.go @@ -225,6 +225,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +481,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/securityrules.go b/services/network/mgmt/2019-08-01/network/securityrules.go index 25040a56b5e7..1eb56f273d98 100644 --- a/services/network/mgmt/2019-08-01/network/securityrules.go +++ b/services/network/mgmt/2019-08-01/network/securityrules.go @@ -229,6 +229,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/serviceassociationlinks.go b/services/network/mgmt/2019-08-01/network/serviceassociationlinks.go index 3ad1611f5b41..18e139a61a23 100644 --- a/services/network/mgmt/2019-08-01/network/serviceassociationlinks.go +++ b/services/network/mgmt/2019-08-01/network/serviceassociationlinks.go @@ -74,6 +74,7 @@ func (client ServiceAssociationLinksClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceAssociationLinksClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-08-01/network/serviceendpointpolicies.go b/services/network/mgmt/2019-08-01/network/serviceendpointpolicies.go index ae97e16ef2bd..e71e649686ec 100644 --- a/services/network/mgmt/2019-08-01/network/serviceendpointpolicies.go +++ b/services/network/mgmt/2019-08-01/network/serviceendpointpolicies.go @@ -226,6 +226,7 @@ func (client ServiceEndpointPoliciesClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ServiceEndpointPoliciesClient) List(ctx context.Context) (result Se result.seplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "List", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ServiceEndpointPoliciesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Cont result.seplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client ServiceEndpointPoliciesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2019-08-01/network/serviceendpointpolicydefinitions.go index ae6667176acc..a06faa445be4 100644 --- a/services/network/mgmt/2019-08-01/network/serviceendpointpolicydefinitions.go +++ b/services/network/mgmt/2019-08-01/network/serviceendpointpolicydefinitions.go @@ -231,6 +231,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) ListByResourceGroup(ctx con result.sepdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sepdlr.hasNextLink() && result.sepdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) listByResourceGroupNextResu result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/servicetags.go b/services/network/mgmt/2019-08-01/network/servicetags.go index 6cced1d23b09..12ef7331dd0c 100644 --- a/services/network/mgmt/2019-08-01/network/servicetags.go +++ b/services/network/mgmt/2019-08-01/network/servicetags.go @@ -73,6 +73,7 @@ func (client ServiceTagsClient) List(ctx context.Context, location string) (resu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceTagsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-08-01/network/subnets.go b/services/network/mgmt/2019-08-01/network/subnets.go index b4d333404f9a..1c6f3aa17702 100644 --- a/services/network/mgmt/2019-08-01/network/subnets.go +++ b/services/network/mgmt/2019-08-01/network/subnets.go @@ -230,6 +230,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +311,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/usages.go b/services/network/mgmt/2019-08-01/network/usages.go index f0c8d68c977d..a183ea06fbf8 100644 --- a/services/network/mgmt/2019-08-01/network/usages.go +++ b/services/network/mgmt/2019-08-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/virtualhubs.go b/services/network/mgmt/2019-08-01/network/virtualhubs.go index c1c3f57e145d..269ae64695b7 100644 --- a/services/network/mgmt/2019-08-01/network/virtualhubs.go +++ b/services/network/mgmt/2019-08-01/network/virtualhubs.go @@ -225,6 +225,7 @@ func (client VirtualHubsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualHubsClient) List(ctx context.Context) (result ListVirtualHub result.lvhr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "List", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualHubsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualHubsClient) ListByResourceGroup(ctx context.Context, resourc result.lvhr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualHubsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2019-08-01/network/virtualnetworkgatewayconnections.go index 3d3791845b5f..64df1206a98a 100644 --- a/services/network/mgmt/2019-08-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2019-08-01/network/virtualnetworkgatewayconnections.go @@ -239,6 +239,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/virtualnetworkgateways.go b/services/network/mgmt/2019-08-01/network/virtualnetworkgateways.go index 4a9753dc963d..885a353a0f3c 100644 --- a/services/network/mgmt/2019-08-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2019-08-01/network/virtualnetworkgateways.go @@ -390,6 +390,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -927,6 +928,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -990,6 +992,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1042,6 +1045,7 @@ func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, result.vnglcr, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return } if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1106,6 +1110,7 @@ func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx contex result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1558,6 +1563,7 @@ func (client VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Conte result, err = client.SupportedVpnDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", resp, "Failure responding to request") + return } return @@ -1713,6 +1719,7 @@ func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx cont result, err = client.VpnDeviceConfigurationScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-08-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2019-08-01/network/virtualnetworkpeerings.go index 88d8f67c1c37..f15741619c99 100644 --- a/services/network/mgmt/2019-08-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2019-08-01/network/virtualnetworkpeerings.go @@ -231,6 +231,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/virtualnetworks.go b/services/network/mgmt/2019-08-01/network/virtualnetworks.go index b42e5892b463..6c6c1e0733dd 100644 --- a/services/network/mgmt/2019-08-01/network/virtualnetworks.go +++ b/services/network/mgmt/2019-08-01/network/virtualnetworks.go @@ -74,6 +74,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -390,6 +392,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -453,6 +456,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -502,6 +506,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -564,6 +569,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -616,6 +622,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -680,6 +687,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/virtualnetworktaps.go b/services/network/mgmt/2019-08-01/network/virtualnetworktaps.go index 535fa79c8b17..b8bec17ca3c4 100644 --- a/services/network/mgmt/2019-08-01/network/virtualnetworktaps.go +++ b/services/network/mgmt/2019-08-01/network/virtualnetworktaps.go @@ -257,6 +257,7 @@ func (client VirtualNetworkTapsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client VirtualNetworkTapsClient) ListAll(ctx context.Context) (result Virt result.vntlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListAll", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -392,6 +394,7 @@ func (client VirtualNetworkTapsClient) listAllNextResults(ctx context.Context, l result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +446,7 @@ func (client VirtualNetworkTapsClient) ListByResourceGroup(ctx context.Context, result.vntlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -506,6 +510,7 @@ func (client VirtualNetworkTapsClient) listByResourceGroupNextResults(ctx contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/virtualrouterpeerings.go b/services/network/mgmt/2019-08-01/network/virtualrouterpeerings.go index 254430fd6b01..f26355dbf452 100644 --- a/services/network/mgmt/2019-08-01/network/virtualrouterpeerings.go +++ b/services/network/mgmt/2019-08-01/network/virtualrouterpeerings.go @@ -244,6 +244,7 @@ func (client VirtualRouterPeeringsClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client VirtualRouterPeeringsClient) List(ctx context.Context, resourceGrou result.vrplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vrplr.hasNextLink() && result.vrplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client VirtualRouterPeeringsClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -438,6 +441,7 @@ func (client VirtualRouterPeeringsClient) Update(ctx context.Context, resourceGr result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-08-01/network/virtualrouters.go b/services/network/mgmt/2019-08-01/network/virtualrouters.go index 6778fe986232..9f310d69a631 100644 --- a/services/network/mgmt/2019-08-01/network/virtualrouters.go +++ b/services/network/mgmt/2019-08-01/network/virtualrouters.go @@ -238,6 +238,7 @@ func (client VirtualRoutersClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client VirtualRoutersClient) List(ctx context.Context) (result VirtualRout result.vrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "List", resp, "Failure responding to request") + return } if result.vrlr.hasNextLink() && result.vrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -376,6 +378,7 @@ func (client VirtualRoutersClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -427,6 +430,7 @@ func (client VirtualRoutersClient) ListByResourceGroup(ctx context.Context, reso result.vrlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vrlr.hasNextLink() && result.vrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -490,6 +494,7 @@ func (client VirtualRoutersClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -542,6 +547,7 @@ func (client VirtualRoutersClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-08-01/network/virtualwans.go b/services/network/mgmt/2019-08-01/network/virtualwans.go index ea6c9f6c5c72..ce33e091d1d4 100644 --- a/services/network/mgmt/2019-08-01/network/virtualwans.go +++ b/services/network/mgmt/2019-08-01/network/virtualwans.go @@ -225,6 +225,7 @@ func (client VirtualWansClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualWansClient) List(ctx context.Context) (result ListVirtualWAN result.lvwnr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "List", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualWansClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualWansClient) ListByResourceGroup(ctx context.Context, resourc result.lvwnr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualWansClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/vpnconnections.go b/services/network/mgmt/2019-08-01/network/vpnconnections.go index bb0e234bfaa5..772808344fa3 100644 --- a/services/network/mgmt/2019-08-01/network/vpnconnections.go +++ b/services/network/mgmt/2019-08-01/network/vpnconnections.go @@ -231,6 +231,7 @@ func (client VpnConnectionsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VpnConnectionsClient) ListByVpnGateway(ctx context.Context, resourc result.lvcr, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "ListByVpnGateway", resp, "Failure responding to request") + return } if result.lvcr.hasNextLink() && result.lvcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VpnConnectionsClient) listByVpnGatewayNextResults(ctx context.Conte result, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "listByVpnGatewayNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/vpngateways.go b/services/network/mgmt/2019-08-01/network/vpngateways.go index 9497ab0932d4..b5b15d59c244 100644 --- a/services/network/mgmt/2019-08-01/network/vpngateways.go +++ b/services/network/mgmt/2019-08-01/network/vpngateways.go @@ -225,6 +225,7 @@ func (client VpnGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnGatewaysClient) List(ctx context.Context) (result ListVpnGateway result.lvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnGatewaysClient) ListByResourceGroup(ctx context.Context, resourc result.lvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnGatewaysClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/vpnlinkconnections.go b/services/network/mgmt/2019-08-01/network/vpnlinkconnections.go index 13741e8bd830..bcb1fbe25b6f 100644 --- a/services/network/mgmt/2019-08-01/network/vpnlinkconnections.go +++ b/services/network/mgmt/2019-08-01/network/vpnlinkconnections.go @@ -75,6 +75,7 @@ func (client VpnLinkConnectionsClient) ListByVpnConnection(ctx context.Context, result.lvslcr, err = client.ListByVpnConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnLinkConnectionsClient", "ListByVpnConnection", resp, "Failure responding to request") + return } if result.lvslcr.hasNextLink() && result.lvslcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -140,6 +141,7 @@ func (client VpnLinkConnectionsClient) listByVpnConnectionNextResults(ctx contex result, err = client.ListByVpnConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnLinkConnectionsClient", "listByVpnConnectionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/vpnserverconfigurations.go b/services/network/mgmt/2019-08-01/network/vpnserverconfigurations.go index 7501593ae971..385e635cb856 100644 --- a/services/network/mgmt/2019-08-01/network/vpnserverconfigurations.go +++ b/services/network/mgmt/2019-08-01/network/vpnserverconfigurations.go @@ -227,6 +227,7 @@ func (client VpnServerConfigurationsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client VpnServerConfigurationsClient) List(ctx context.Context) (result Li result.lvscr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lvscr.hasNextLink() && result.lvscr.IsEmpty() { err = result.NextWithContext(ctx) @@ -362,6 +364,7 @@ func (client VpnServerConfigurationsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client VpnServerConfigurationsClient) ListByResourceGroup(ctx context.Cont result.lvscr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvscr.hasNextLink() && result.lvscr.IsEmpty() { err = result.NextWithContext(ctx) @@ -476,6 +480,7 @@ func (client VpnServerConfigurationsClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/vpnsitelinkconnections.go b/services/network/mgmt/2019-08-01/network/vpnsitelinkconnections.go index 3e079b8d7026..deb1bcd6f228 100644 --- a/services/network/mgmt/2019-08-01/network/vpnsitelinkconnections.go +++ b/services/network/mgmt/2019-08-01/network/vpnsitelinkconnections.go @@ -75,6 +75,7 @@ func (client VpnSiteLinkConnectionsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinkConnectionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-08-01/network/vpnsitelinks.go b/services/network/mgmt/2019-08-01/network/vpnsitelinks.go index ea80c61cd5dd..4bd23d7063e4 100644 --- a/services/network/mgmt/2019-08-01/network/vpnsitelinks.go +++ b/services/network/mgmt/2019-08-01/network/vpnsitelinks.go @@ -73,6 +73,7 @@ func (client VpnSiteLinksClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client VpnSiteLinksClient) ListByVpnSite(ctx context.Context, resourceGrou result.lvslr, err = client.ListByVpnSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "ListByVpnSite", resp, "Failure responding to request") + return } if result.lvslr.hasNextLink() && result.lvslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -214,6 +216,7 @@ func (client VpnSiteLinksClient) listByVpnSiteNextResults(ctx context.Context, l result, err = client.ListByVpnSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "listByVpnSiteNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/vpnsites.go b/services/network/mgmt/2019-08-01/network/vpnsites.go index 91fa8f614127..35427f589f88 100644 --- a/services/network/mgmt/2019-08-01/network/vpnsites.go +++ b/services/network/mgmt/2019-08-01/network/vpnsites.go @@ -225,6 +225,7 @@ func (client VpnSitesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnSitesClient) List(ctx context.Context) (result ListVpnSitesResul result.lvsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "List", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnSitesClient) listNextResults(ctx context.Context, lastResults Li result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnSitesClient) ListByResourceGroup(ctx context.Context, resourceGr result.lvsr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnSitesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-08-01/network/watchers.go b/services/network/mgmt/2019-08-01/network/watchers.go index e2bebde2a3f0..8a5e9a100b77 100644 --- a/services/network/mgmt/2019-08-01/network/watchers.go +++ b/services/network/mgmt/2019-08-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -735,6 +737,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -1067,6 +1070,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -1138,6 +1142,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return @@ -1382,6 +1387,7 @@ func (client WatchersClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-08-01/network/webapplicationfirewallpolicies.go b/services/network/mgmt/2019-08-01/network/webapplicationfirewallpolicies.go index d4a01016e997..3cd2fdb89b67 100644 --- a/services/network/mgmt/2019-08-01/network/webapplicationfirewallpolicies.go +++ b/services/network/mgmt/2019-08-01/network/webapplicationfirewallpolicies.go @@ -94,6 +94,7 @@ func (client WebApplicationFirewallPoliciesClient) CreateOrUpdate(ctx context.Co result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -257,6 +258,7 @@ func (client WebApplicationFirewallPoliciesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -332,6 +334,7 @@ func (client WebApplicationFirewallPoliciesClient) List(ctx context.Context, res result.wafplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "List", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -395,6 +398,7 @@ func (client WebApplicationFirewallPoliciesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -444,6 +448,7 @@ func (client WebApplicationFirewallPoliciesClient) ListAll(ctx context.Context) result.wafplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "ListAll", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -506,6 +511,7 @@ func (client WebApplicationFirewallPoliciesClient) listAllNextResults(ctx contex result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/applicationgateways.go b/services/network/mgmt/2019-09-01/network/applicationgateways.go index eefa2a74baa7..2aa2fef3afb9 100644 --- a/services/network/mgmt/2019-09-01/network/applicationgateways.go +++ b/services/network/mgmt/2019-09-01/network/applicationgateways.go @@ -417,6 +417,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -491,6 +492,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte result, err = client.GetSslPredefinedPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return } return @@ -565,6 +567,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -628,6 +631,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -677,6 +681,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -739,6 +744,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -787,6 +793,7 @@ func (client ApplicationGatewaysClient) ListAvailableRequestHeaders(ctx context. result, err = client.ListAvailableRequestHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableRequestHeaders", resp, "Failure responding to request") + return } return @@ -857,6 +864,7 @@ func (client ApplicationGatewaysClient) ListAvailableResponseHeaders(ctx context result, err = client.ListAvailableResponseHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableResponseHeaders", resp, "Failure responding to request") + return } return @@ -927,6 +935,7 @@ func (client ApplicationGatewaysClient) ListAvailableServerVariables(ctx context result, err = client.ListAvailableServerVariablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableServerVariables", resp, "Failure responding to request") + return } return @@ -997,6 +1006,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont result, err = client.ListAvailableSslOptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return } return @@ -1068,6 +1078,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return } if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { err = result.NextWithContext(ctx) @@ -1130,6 +1141,7 @@ func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextRe result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1178,6 +1190,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return @@ -1400,6 +1413,7 @@ func (client ApplicationGatewaysClient) UpdateTags(ctx context.Context, resource result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/applicationsecuritygroups.go b/services/network/mgmt/2019-09-01/network/applicationsecuritygroups.go index ea04660fcee9..b7e619ed2f09 100644 --- a/services/network/mgmt/2019-09-01/network/applicationsecuritygroups.go +++ b/services/network/mgmt/2019-09-01/network/applicationsecuritygroups.go @@ -226,6 +226,7 @@ func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resource result.asglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ApplicationSecurityGroupsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (resu result.asglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ApplicationSecurityGroupsClient) listAllNextResults(ctx context.Con result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -527,6 +532,7 @@ func (client ApplicationSecurityGroupsClient) UpdateTags(ctx context.Context, re result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/availabledelegations.go b/services/network/mgmt/2019-09-01/network/availabledelegations.go index 0f57efc562b8..936e7760fc30 100644 --- a/services/network/mgmt/2019-09-01/network/availabledelegations.go +++ b/services/network/mgmt/2019-09-01/network/availabledelegations.go @@ -73,6 +73,7 @@ func (client AvailableDelegationsClient) List(ctx context.Context, location stri result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableDelegationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/availableendpointservices.go b/services/network/mgmt/2019-09-01/network/availableendpointservices.go index 634a92efe570..fad21058ef9d 100644 --- a/services/network/mgmt/2019-09-01/network/availableendpointservices.go +++ b/services/network/mgmt/2019-09-01/network/availableendpointservices.go @@ -73,6 +73,7 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableEndpointServicesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/availableprivateendpointtypes.go b/services/network/mgmt/2019-09-01/network/availableprivateendpointtypes.go index e94885d4e070..b78edb94d614 100644 --- a/services/network/mgmt/2019-09-01/network/availableprivateendpointtypes.go +++ b/services/network/mgmt/2019-09-01/network/availableprivateendpointtypes.go @@ -73,6 +73,7 @@ func (client AvailablePrivateEndpointTypesClient) List(ctx context.Context, loca result.apetr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "List", resp, "Failure responding to request") + return } if result.apetr.hasNextLink() && result.apetr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailablePrivateEndpointTypesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -189,6 +191,7 @@ func (client AvailablePrivateEndpointTypesClient) ListByResourceGroup(ctx contex result.apetr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.apetr.hasNextLink() && result.apetr.IsEmpty() { err = result.NextWithContext(ctx) @@ -253,6 +256,7 @@ func (client AvailablePrivateEndpointTypesClient) listByResourceGroupNextResults result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2019-09-01/network/availableresourcegroupdelegations.go index ecc5c46c5027..f249a766272a 100644 --- a/services/network/mgmt/2019-09-01/network/availableresourcegroupdelegations.go +++ b/services/network/mgmt/2019-09-01/network/availableresourcegroupdelegations.go @@ -75,6 +75,7 @@ func (client AvailableResourceGroupDelegationsClient) List(ctx context.Context, result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client AvailableResourceGroupDelegationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/availableservicealiases.go b/services/network/mgmt/2019-09-01/network/availableservicealiases.go index 034b5688b35f..7aef7efcb7bb 100644 --- a/services/network/mgmt/2019-09-01/network/availableservicealiases.go +++ b/services/network/mgmt/2019-09-01/network/availableservicealiases.go @@ -73,6 +73,7 @@ func (client AvailableServiceAliasesClient) List(ctx context.Context, location s result.asar, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "List", resp, "Failure responding to request") + return } if result.asar.hasNextLink() && result.asar.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableServiceAliasesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -188,6 +190,7 @@ func (client AvailableServiceAliasesClient) ListByResourceGroup(ctx context.Cont result.asar, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.asar.hasNextLink() && result.asar.IsEmpty() { err = result.NextWithContext(ctx) @@ -252,6 +255,7 @@ func (client AvailableServiceAliasesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2019-09-01/network/azurefirewallfqdntags.go index 9a243553e0ad..aef1a565209b 100644 --- a/services/network/mgmt/2019-09-01/network/azurefirewallfqdntags.go +++ b/services/network/mgmt/2019-09-01/network/azurefirewallfqdntags.go @@ -71,6 +71,7 @@ func (client AzureFirewallFqdnTagsClient) ListAll(ctx context.Context) (result A result.afftlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "ListAll", resp, "Failure responding to request") + return } if result.afftlr.hasNextLink() && result.afftlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client AzureFirewallFqdnTagsClient) listAllNextResults(ctx context.Context result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/azurefirewalls.go b/services/network/mgmt/2019-09-01/network/azurefirewalls.go index 8a3e1e26e620..d9e955bcdcce 100644 --- a/services/network/mgmt/2019-09-01/network/azurefirewalls.go +++ b/services/network/mgmt/2019-09-01/network/azurefirewalls.go @@ -225,6 +225,7 @@ func (client AzureFirewallsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client AzureFirewallsClient) List(ctx context.Context, resourceGroupName s result.aflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "List", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +365,7 @@ func (client AzureFirewallsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client AzureFirewallsClient) ListAll(ctx context.Context) (result AzureFir result.aflr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "ListAll", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client AzureFirewallsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/bastionhosts.go b/services/network/mgmt/2019-09-01/network/bastionhosts.go index 2292efe03244..5c86f185f836 100644 --- a/services/network/mgmt/2019-09-01/network/bastionhosts.go +++ b/services/network/mgmt/2019-09-01/network/bastionhosts.go @@ -225,6 +225,7 @@ func (client BastionHostsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client BastionHostsClient) List(ctx context.Context) (result BastionHostLi result.bhlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "List", resp, "Failure responding to request") + return } if result.bhlr.hasNextLink() && result.bhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client BastionHostsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client BastionHostsClient) ListByResourceGroup(ctx context.Context, resour result.bhlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.bhlr.hasNextLink() && result.bhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client BastionHostsClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/bgpservicecommunities.go b/services/network/mgmt/2019-09-01/network/bgpservicecommunities.go index cd788f03d63f..551b92a90334 100644 --- a/services/network/mgmt/2019-09-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2019-09-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/client.go b/services/network/mgmt/2019-09-01/network/client.go index 3fde094cccff..a5247a403e61 100644 --- a/services/network/mgmt/2019-09-01/network/client.go +++ b/services/network/mgmt/2019-09-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return @@ -241,6 +242,7 @@ func (client BaseClient) DisconnectActiveSessions(ctx context.Context, resourceG result.bsdr, err = client.DisconnectActiveSessionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "DisconnectActiveSessions", resp, "Failure responding to request") + return } if result.bsdr.hasNextLink() && result.bsdr.IsEmpty() { err = result.NextWithContext(ctx) @@ -307,6 +309,7 @@ func (client BaseClient) disconnectActiveSessionsNextResults(ctx context.Context result, err = client.DisconnectActiveSessionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "disconnectActiveSessionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -555,6 +558,7 @@ func (client BaseClient) GetBastionShareableLink(ctx context.Context, resourceGr result.bsllr, err = client.GetBastionShareableLinkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "GetBastionShareableLink", resp, "Failure responding to request") + return } if result.bsllr.hasNextLink() && result.bsllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -621,6 +625,7 @@ func (client BaseClient) getBastionShareableLinkNextResults(ctx context.Context, result, err = client.GetBastionShareableLinkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "getBastionShareableLinkNextResults", resp, "Failure responding to next results request") + return } return } @@ -791,6 +796,7 @@ func (client BaseClient) SupportedSecurityProviders(ctx context.Context, resourc result, err = client.SupportedSecurityProvidersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "SupportedSecurityProviders", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/connectionmonitors.go b/services/network/mgmt/2019-09-01/network/connectionmonitors.go index 3c795bfa3f21..37c7a83825ea 100644 --- a/services/network/mgmt/2019-09-01/network/connectionmonitors.go +++ b/services/network/mgmt/2019-09-01/network/connectionmonitors.go @@ -241,6 +241,7 @@ func (client ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ConnectionMonitorsClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure responding to request") + return } return @@ -623,6 +625,7 @@ func (client ConnectionMonitorsClient) UpdateTags(ctx context.Context, resourceG result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/ddoscustompolicies.go b/services/network/mgmt/2019-09-01/network/ddoscustompolicies.go index bf6154c2b0aa..146b6969aea9 100644 --- a/services/network/mgmt/2019-09-01/network/ddoscustompolicies.go +++ b/services/network/mgmt/2019-09-01/network/ddoscustompolicies.go @@ -226,6 +226,7 @@ func (client DdosCustomPoliciesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DdosCustomPoliciesClient) UpdateTags(ctx context.Context, resourceG result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/ddosprotectionplans.go b/services/network/mgmt/2019-09-01/network/ddosprotectionplans.go index 9c966c9b4239..69925fe12b42 100644 --- a/services/network/mgmt/2019-09-01/network/ddosprotectionplans.go +++ b/services/network/mgmt/2019-09-01/network/ddosprotectionplans.go @@ -229,6 +229,7 @@ func (client DdosProtectionPlansClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DdosProtectionPlansClient) List(ctx context.Context) (result DdosPr result.dpplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client DdosProtectionPlansClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, result.dpplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client DdosProtectionPlansClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client DdosProtectionPlansClient) UpdateTags(ctx context.Context, resource result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/defaultsecurityrules.go b/services/network/mgmt/2019-09-01/network/defaultsecurityrules.go index d21c09b52b5b..65b81d02d69b 100644 --- a/services/network/mgmt/2019-09-01/network/defaultsecurityrules.go +++ b/services/network/mgmt/2019-09-01/network/defaultsecurityrules.go @@ -74,6 +74,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2019-09-01/network/expressroutecircuitauthorizations.go index 56dc439bbe9d..a88476d75f12 100644 --- a/services/network/mgmt/2019-09-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2019-09-01/network/expressroutecircuitauthorizations.go @@ -234,6 +234,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2019-09-01/network/expressroutecircuitconnections.go index 756581a11e04..777fa21344c9 100644 --- a/services/network/mgmt/2019-09-01/network/expressroutecircuitconnections.go +++ b/services/network/mgmt/2019-09-01/network/expressroutecircuitconnections.go @@ -238,6 +238,7 @@ func (client ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ExpressRouteCircuitConnectionsClient) List(ctx context.Context, res result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client ExpressRouteCircuitConnectionsClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2019-09-01/network/expressroutecircuitpeerings.go index 9b836f278be2..1e589253a34d 100644 --- a/services/network/mgmt/2019-09-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2019-09-01/network/expressroutecircuitpeerings.go @@ -244,6 +244,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/expressroutecircuits.go b/services/network/mgmt/2019-09-01/network/expressroutecircuits.go index 31f647f42f8a..7fd617c3ea22 100644 --- a/services/network/mgmt/2019-09-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2019-09-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -918,6 +925,7 @@ func (client ExpressRouteCircuitsClient) UpdateTags(ctx context.Context, resourc result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/expressrouteconnections.go b/services/network/mgmt/2019-09-01/network/expressrouteconnections.go index b2fae7ae0f4d..c4ad93c344d0 100644 --- a/services/network/mgmt/2019-09-01/network/expressrouteconnections.go +++ b/services/network/mgmt/2019-09-01/network/expressrouteconnections.go @@ -239,6 +239,7 @@ func (client ExpressRouteConnectionsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client ExpressRouteConnectionsClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2019-09-01/network/expressroutecrossconnectionpeerings.go index 4d98dfb1acd2..2b1ce0f9fe28 100644 --- a/services/network/mgmt/2019-09-01/network/expressroutecrossconnectionpeerings.go +++ b/services/network/mgmt/2019-09-01/network/expressroutecrossconnectionpeerings.go @@ -245,6 +245,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context result.erccpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "List", resp, "Failure responding to request") + return } if result.erccpl.hasNextLink() && result.erccpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) listNextResults(ctx cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/expressroutecrossconnections.go b/services/network/mgmt/2019-09-01/network/expressroutecrossconnections.go index cc270bd22e41..a00488892943 100644 --- a/services/network/mgmt/2019-09-01/network/expressroutecrossconnections.go +++ b/services/network/mgmt/2019-09-01/network/expressroutecrossconnections.go @@ -152,6 +152,7 @@ func (client ExpressRouteCrossConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ExpressRouteCrossConnectionsClient) List(ctx context.Context) (resu result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -287,6 +289,7 @@ func (client ExpressRouteCrossConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -418,6 +421,7 @@ func (client ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context result.ercclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +485,7 @@ func (client ExpressRouteCrossConnectionsClient) listByResourceGroupNextResults( result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -693,6 +698,7 @@ func (client ExpressRouteCrossConnectionsClient) UpdateTags(ctx context.Context, result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/expressroutegateways.go b/services/network/mgmt/2019-09-01/network/expressroutegateways.go index 9a426ff4eb3d..28e07ed8aa8a 100644 --- a/services/network/mgmt/2019-09-01/network/expressroutegateways.go +++ b/services/network/mgmt/2019-09-01/network/expressroutegateways.go @@ -235,6 +235,7 @@ func (client ExpressRouteGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client ExpressRouteGatewaysClient) ListByResourceGroup(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -380,6 +382,7 @@ func (client ExpressRouteGatewaysClient) ListBySubscription(ctx context.Context) result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/expressroutelinks.go b/services/network/mgmt/2019-09-01/network/expressroutelinks.go index 8990c59c4c50..5e387af3c3ff 100644 --- a/services/network/mgmt/2019-09-01/network/expressroutelinks.go +++ b/services/network/mgmt/2019-09-01/network/expressroutelinks.go @@ -74,6 +74,7 @@ func (client ExpressRouteLinksClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ExpressRouteLinksClient) List(ctx context.Context, resourceGroupNam result.erllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "List", resp, "Failure responding to request") + return } if result.erllr.hasNextLink() && result.erllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client ExpressRouteLinksClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/expressrouteports.go b/services/network/mgmt/2019-09-01/network/expressrouteports.go index 6f432e8bc2fd..6beb7d0bfd4d 100644 --- a/services/network/mgmt/2019-09-01/network/expressrouteports.go +++ b/services/network/mgmt/2019-09-01/network/expressrouteports.go @@ -226,6 +226,7 @@ func (client ExpressRoutePortsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client ExpressRoutePortsClient) List(ctx context.Context) (result ExpressR result.erplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "List", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -361,6 +363,7 @@ func (client ExpressRoutePortsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, r result.erplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ExpressRoutePortsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -527,6 +532,7 @@ func (client ExpressRoutePortsClient) UpdateTags(ctx context.Context, resourceGr result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/expressrouteportslocations.go b/services/network/mgmt/2019-09-01/network/expressrouteportslocations.go index 967125b1179c..a637c84963c2 100644 --- a/services/network/mgmt/2019-09-01/network/expressrouteportslocations.go +++ b/services/network/mgmt/2019-09-01/network/expressrouteportslocations.go @@ -73,6 +73,7 @@ func (client ExpressRoutePortsLocationsClient) Get(ctx context.Context, location result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client ExpressRoutePortsLocationsClient) List(ctx context.Context) (result result.erpllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "List", resp, "Failure responding to request") + return } if result.erpllr.hasNextLink() && result.erpllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -208,6 +210,7 @@ func (client ExpressRoutePortsLocationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2019-09-01/network/expressrouteserviceproviders.go index 83f2bdfa5658..d4b94e126840 100644 --- a/services/network/mgmt/2019-09-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2019-09-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/firewallpolicies.go b/services/network/mgmt/2019-09-01/network/firewallpolicies.go index 5dc82edaa350..88d3ed3c2efb 100644 --- a/services/network/mgmt/2019-09-01/network/firewallpolicies.go +++ b/services/network/mgmt/2019-09-01/network/firewallpolicies.go @@ -227,6 +227,7 @@ func (client FirewallPoliciesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client FirewallPoliciesClient) List(ctx context.Context, resourceGroupName result.fplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "List", resp, "Failure responding to request") + return } if result.fplr.hasNextLink() && result.fplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client FirewallPoliciesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client FirewallPoliciesClient) ListAll(ctx context.Context) (result Firewa result.fplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "ListAll", resp, "Failure responding to request") + return } if result.fplr.hasNextLink() && result.fplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client FirewallPoliciesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/firewallpolicyrulegroups.go b/services/network/mgmt/2019-09-01/network/firewallpolicyrulegroups.go index edd8892b9f7c..d72e45d4f68b 100644 --- a/services/network/mgmt/2019-09-01/network/firewallpolicyrulegroups.go +++ b/services/network/mgmt/2019-09-01/network/firewallpolicyrulegroups.go @@ -244,6 +244,7 @@ func (client FirewallPolicyRuleGroupsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client FirewallPolicyRuleGroupsClient) List(ctx context.Context, resourceG result.fprglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "List", resp, "Failure responding to request") + return } if result.fprglr.hasNextLink() && result.fprglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client FirewallPolicyRuleGroupsClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2019-09-01/network/hubvirtualnetworkconnections.go index 97124fc60347..906dae701f60 100644 --- a/services/network/mgmt/2019-09-01/network/hubvirtualnetworkconnections.go +++ b/services/network/mgmt/2019-09-01/network/hubvirtualnetworkconnections.go @@ -74,6 +74,7 @@ func (client HubVirtualNetworkConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client HubVirtualNetworkConnectionsClient) List(ctx context.Context, resou result.lhvncr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "List", resp, "Failure responding to request") + return } if result.lhvncr.hasNextLink() && result.lhvncr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client HubVirtualNetworkConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/inboundnatrules.go b/services/network/mgmt/2019-09-01/network/inboundnatrules.go index 6fca6287d6bf..d316c8b29a1b 100644 --- a/services/network/mgmt/2019-09-01/network/inboundnatrules.go +++ b/services/network/mgmt/2019-09-01/network/inboundnatrules.go @@ -252,6 +252,7 @@ func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -332,6 +333,7 @@ func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName result.inrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return } if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -396,6 +398,7 @@ func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/interfaceipconfigurations.go b/services/network/mgmt/2019-09-01/network/interfaceipconfigurations.go index 188cd2f7b0b3..caab6debb7c8 100644 --- a/services/network/mgmt/2019-09-01/network/interfaceipconfigurations.go +++ b/services/network/mgmt/2019-09-01/network/interfaceipconfigurations.go @@ -74,6 +74,7 @@ func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resource result.iiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/interfaceloadbalancers.go b/services/network/mgmt/2019-09-01/network/interfaceloadbalancers.go index 9ccdfd37c595..a47c59867643 100644 --- a/services/network/mgmt/2019-09-01/network/interfaceloadbalancers.go +++ b/services/network/mgmt/2019-09-01/network/interfaceloadbalancers.go @@ -74,6 +74,7 @@ func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGro result.ilblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/interfacesgroup.go b/services/network/mgmt/2019-09-01/network/interfacesgroup.go index b8af393baa0e..fe605e1e7b59 100644 --- a/services/network/mgmt/2019-09-01/network/interfacesgroup.go +++ b/services/network/mgmt/2019-09-01/network/interfacesgroup.go @@ -226,6 +226,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -384,6 +385,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx cont result, err = client.GetVirtualMachineScaleSetIPConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure responding to request") + return } return @@ -468,6 +470,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -548,6 +551,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -611,6 +615,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -660,6 +665,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -722,6 +728,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -853,6 +860,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx co result.iiclr, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -922,6 +930,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetIPConfigurationsNextRes result, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -974,6 +983,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1038,6 +1048,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1092,6 +1103,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1157,6 +1169,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1209,6 +1222,7 @@ func (client InterfacesClient) UpdateTags(ctx context.Context, resourceGroupName result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/interfacetapconfigurations.go b/services/network/mgmt/2019-09-01/network/interfacetapconfigurations.go index 853e114b0c23..f5cc864e6efb 100644 --- a/services/network/mgmt/2019-09-01/network/interfacetapconfigurations.go +++ b/services/network/mgmt/2019-09-01/network/interfacetapconfigurations.go @@ -268,6 +268,7 @@ func (client InterfaceTapConfigurationsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +346,7 @@ func (client InterfaceTapConfigurationsClient) List(ctx context.Context, resourc result.itclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.itclr.hasNextLink() && result.itclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -409,6 +411,7 @@ func (client InterfaceTapConfigurationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/ipgroups.go b/services/network/mgmt/2019-09-01/network/ipgroups.go index a0371dd592d7..9e516ea5e555 100644 --- a/services/network/mgmt/2019-09-01/network/ipgroups.go +++ b/services/network/mgmt/2019-09-01/network/ipgroups.go @@ -227,6 +227,7 @@ func (client IPGroupsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client IPGroupsClient) List(ctx context.Context) (result IPGroupListResult result.iglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "List", resp, "Failure responding to request") + return } if result.iglr.hasNextLink() && result.iglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -365,6 +367,7 @@ func (client IPGroupsClient) listNextResults(ctx context.Context, lastResults IP result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client IPGroupsClient) ListByResourceGroup(ctx context.Context, resourceGr result.iglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.iglr.hasNextLink() && result.iglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client IPGroupsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +536,7 @@ func (client IPGroupsClient) UpdateGroups(ctx context.Context, resourceGroupName result, err = client.UpdateGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "UpdateGroups", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2019-09-01/network/loadbalancerbackendaddresspools.go index 2e2237897d50..805f74355b17 100644 --- a/services/network/mgmt/2019-09-01/network/loadbalancerbackendaddresspools.go +++ b/services/network/mgmt/2019-09-01/network/loadbalancerbackendaddresspools.go @@ -74,6 +74,7 @@ func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, re result.lbbaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return } if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2019-09-01/network/loadbalancerfrontendipconfigurations.go index a867cae2ee46..c988160936a3 100644 --- a/services/network/mgmt/2019-09-01/network/loadbalancerfrontendipconfigurations.go +++ b/services/network/mgmt/2019-09-01/network/loadbalancerfrontendipconfigurations.go @@ -75,6 +75,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Contex result.lbficlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2019-09-01/network/loadbalancerloadbalancingrules.go index a79a2a1cf782..761cf7ae5420 100644 --- a/services/network/mgmt/2019-09-01/network/loadbalancerloadbalancingrules.go +++ b/services/network/mgmt/2019-09-01/network/loadbalancerloadbalancingrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, res result.lblbrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return } if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2019-09-01/network/loadbalancernetworkinterfaces.go index 4f8163bc5599..09574545ab57 100644 --- a/services/network/mgmt/2019-09-01/network/loadbalancernetworkinterfaces.go +++ b/services/network/mgmt/2019-09-01/network/loadbalancernetworkinterfaces.go @@ -74,6 +74,7 @@ func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, reso result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2019-09-01/network/loadbalanceroutboundrules.go index 444cbbe631e3..3a3876bf5ff4 100644 --- a/services/network/mgmt/2019-09-01/network/loadbalanceroutboundrules.go +++ b/services/network/mgmt/2019-09-01/network/loadbalanceroutboundrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerOutboundRulesClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerOutboundRulesClient) List(ctx context.Context, resource result.lborlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "List", resp, "Failure responding to request") + return } if result.lborlr.hasNextLink() && result.lborlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerOutboundRulesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/loadbalancerprobes.go b/services/network/mgmt/2019-09-01/network/loadbalancerprobes.go index 7c98ea90a175..f2dbc9fad428 100644 --- a/services/network/mgmt/2019-09-01/network/loadbalancerprobes.go +++ b/services/network/mgmt/2019-09-01/network/loadbalancerprobes.go @@ -74,6 +74,7 @@ func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupNa result.lbplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return } if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/loadbalancers.go b/services/network/mgmt/2019-09-01/network/loadbalancers.go index cdba4acc81de..75000992a140 100644 --- a/services/network/mgmt/2019-09-01/network/loadbalancers.go +++ b/services/network/mgmt/2019-09-01/network/loadbalancers.go @@ -226,6 +226,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client LoadBalancersClient) UpdateTags(ctx context.Context, resourceGroupN result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/localnetworkgateways.go b/services/network/mgmt/2019-09-01/network/localnetworkgateways.go index 7eca1829cba6..44d507e7a15c 100644 --- a/services/network/mgmt/2019-09-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2019-09-01/network/localnetworkgateways.go @@ -247,6 +247,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +446,7 @@ func (client LocalNetworkGatewaysClient) UpdateTags(ctx context.Context, resourc result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/natgateways.go b/services/network/mgmt/2019-09-01/network/natgateways.go index bfd72cbd5037..a1240b1447fe 100644 --- a/services/network/mgmt/2019-09-01/network/natgateways.go +++ b/services/network/mgmt/2019-09-01/network/natgateways.go @@ -226,6 +226,7 @@ func (client NatGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client NatGatewaysClient) List(ctx context.Context, resourceGroupName stri result.nglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "List", resp, "Failure responding to request") + return } if result.nglr.hasNextLink() && result.nglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client NatGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client NatGatewaysClient) ListAll(ctx context.Context) (result NatGatewayL result.nglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.nglr.hasNextLink() && result.nglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client NatGatewaysClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client NatGatewaysClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/operations.go b/services/network/mgmt/2019-09-01/network/operations.go index 2a8d8e76a46d..c66d01355343 100644 --- a/services/network/mgmt/2019-09-01/network/operations.go +++ b/services/network/mgmt/2019-09-01/network/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/p2svpngateways.go b/services/network/mgmt/2019-09-01/network/p2svpngateways.go index 1345450a6e38..b871586736e5 100644 --- a/services/network/mgmt/2019-09-01/network/p2svpngateways.go +++ b/services/network/mgmt/2019-09-01/network/p2svpngateways.go @@ -303,6 +303,7 @@ func (client P2sVpnGatewaysClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -531,6 +532,7 @@ func (client P2sVpnGatewaysClient) List(ctx context.Context) (result ListP2SVpnG result.lpvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -593,6 +595,7 @@ func (client P2sVpnGatewaysClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -644,6 +647,7 @@ func (client P2sVpnGatewaysClient) ListByResourceGroup(ctx context.Context, reso result.lpvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -707,6 +711,7 @@ func (client P2sVpnGatewaysClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -759,6 +764,7 @@ func (client P2sVpnGatewaysClient) UpdateTags(ctx context.Context, resourceGroup result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/packetcaptures.go b/services/network/mgmt/2019-09-01/network/packetcaptures.go index 63e089e773ad..16a52eb9ac94 100644 --- a/services/network/mgmt/2019-09-01/network/packetcaptures.go +++ b/services/network/mgmt/2019-09-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/peerexpressroutecircuitconnections.go b/services/network/mgmt/2019-09-01/network/peerexpressroutecircuitconnections.go index ea0a003dd206..c8c6a95afab4 100644 --- a/services/network/mgmt/2019-09-01/network/peerexpressroutecircuitconnections.go +++ b/services/network/mgmt/2019-09-01/network/peerexpressroutecircuitconnections.go @@ -76,6 +76,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) List(ctx context.Context, result.percclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.percclr.hasNextLink() && result.percclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -220,6 +222,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) listNextResults(ctx conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/privateendpoints.go b/services/network/mgmt/2019-09-01/network/privateendpoints.go index 9be3f1bf3812..54a8de65c7db 100644 --- a/services/network/mgmt/2019-09-01/network/privateendpoints.go +++ b/services/network/mgmt/2019-09-01/network/privateendpoints.go @@ -227,6 +227,7 @@ func (client PrivateEndpointsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client PrivateEndpointsClient) List(ctx context.Context, resourceGroupName result.pelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "List", resp, "Failure responding to request") + return } if result.pelr.hasNextLink() && result.pelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client PrivateEndpointsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client PrivateEndpointsClient) ListBySubscription(ctx context.Context) (re result.pelr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.pelr.hasNextLink() && result.pelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client PrivateEndpointsClient) listBySubscriptionNextResults(ctx context.C result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/privatelinkservices.go b/services/network/mgmt/2019-09-01/network/privatelinkservices.go index b004fefb5de7..6857ce4fdbf8 100644 --- a/services/network/mgmt/2019-09-01/network/privatelinkservices.go +++ b/services/network/mgmt/2019-09-01/network/privatelinkservices.go @@ -458,6 +458,7 @@ func (client PrivateLinkServicesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -539,6 +540,7 @@ func (client PrivateLinkServicesClient) GetPrivateEndpointConnection(ctx context result, err = client.GetPrivateEndpointConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "GetPrivateEndpointConnection", resp, "Failure responding to request") + return } return @@ -618,6 +620,7 @@ func (client PrivateLinkServicesClient) List(ctx context.Context, resourceGroupN result.plslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "List", resp, "Failure responding to request") + return } if result.plslr.hasNextLink() && result.plslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -681,6 +684,7 @@ func (client PrivateLinkServicesClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -733,6 +737,7 @@ func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServices(ctx result.aaplsr, err = client.ListAutoApprovedPrivateLinkServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServices", resp, "Failure responding to request") + return } if result.aaplsr.hasNextLink() && result.aaplsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -796,6 +801,7 @@ func (client PrivateLinkServicesClient) listAutoApprovedPrivateLinkServicesNextR result, err = client.ListAutoApprovedPrivateLinkServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesNextResults", resp, "Failure responding to next results request") + return } return } @@ -849,6 +855,7 @@ func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByRes result.aaplsr, err = client.ListAutoApprovedPrivateLinkServicesByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServicesByResourceGroup", resp, "Failure responding to request") + return } if result.aaplsr.hasNextLink() && result.aaplsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -913,6 +920,7 @@ func (client PrivateLinkServicesClient) listAutoApprovedPrivateLinkServicesByRes result, err = client.ListAutoApprovedPrivateLinkServicesByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -962,6 +970,7 @@ func (client PrivateLinkServicesClient) ListBySubscription(ctx context.Context) result.plslr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.plslr.hasNextLink() && result.plslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1024,6 +1033,7 @@ func (client PrivateLinkServicesClient) listBySubscriptionNextResults(ctx contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1076,6 +1086,7 @@ func (client PrivateLinkServicesClient) ListPrivateEndpointConnections(ctx conte result.peclr, err = client.ListPrivateEndpointConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListPrivateEndpointConnections", resp, "Failure responding to request") + return } if result.peclr.hasNextLink() && result.peclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1140,6 +1151,7 @@ func (client PrivateLinkServicesClient) listPrivateEndpointConnectionsNextResult result, err = client.ListPrivateEndpointConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listPrivateEndpointConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1194,6 +1206,7 @@ func (client PrivateLinkServicesClient) UpdatePrivateEndpointConnection(ctx cont result, err = client.UpdatePrivateEndpointConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "UpdatePrivateEndpointConnection", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/profiles.go b/services/network/mgmt/2019-09-01/network/profiles.go index 01b0160b071a..3e70b33c6051 100644 --- a/services/network/mgmt/2019-09-01/network/profiles.go +++ b/services/network/mgmt/2019-09-01/network/profiles.go @@ -73,6 +73,7 @@ func (client ProfilesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -226,6 +227,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +306,7 @@ func (client ProfilesClient) List(ctx context.Context, resourceGroupName string) result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +370,7 @@ func (client ProfilesClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +420,7 @@ func (client ProfilesClient) ListAll(ctx context.Context) (result ProfileListRes result.plr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "ListAll", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +483,7 @@ func (client ProfilesClient) listAllNextResults(ctx context.Context, lastResults result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +536,7 @@ func (client ProfilesClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/publicipaddresses.go b/services/network/mgmt/2019-09-01/network/publicipaddresses.go index 9255c075a1b5..b1e28ac3fb91 100644 --- a/services/network/mgmt/2019-09-01/network/publicipaddresses.go +++ b/services/network/mgmt/2019-09-01/network/publicipaddresses.go @@ -239,6 +239,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -404,6 +406,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -467,6 +470,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -516,6 +520,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -578,6 +583,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -631,6 +637,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -695,6 +702,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -751,6 +759,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -818,6 +827,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -870,6 +880,7 @@ func (client PublicIPAddressesClient) UpdateTags(ctx context.Context, resourceGr result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/publicipprefixes.go b/services/network/mgmt/2019-09-01/network/publicipprefixes.go index 00194bcd74d3..a2b82c222297 100644 --- a/services/network/mgmt/2019-09-01/network/publicipprefixes.go +++ b/services/network/mgmt/2019-09-01/network/publicipprefixes.go @@ -227,6 +227,7 @@ func (client PublicIPPrefixesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client PublicIPPrefixesClient) List(ctx context.Context, resourceGroupName result.piplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "List", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client PublicIPPrefixesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client PublicIPPrefixesClient) ListAll(ctx context.Context) (result Public result.piplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "ListAll", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client PublicIPPrefixesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +536,7 @@ func (client PublicIPPrefixesClient) UpdateTags(ctx context.Context, resourceGro result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/resourcenavigationlinks.go b/services/network/mgmt/2019-09-01/network/resourcenavigationlinks.go index 95e773dfd0b7..fa2d23fdceab 100644 --- a/services/network/mgmt/2019-09-01/network/resourcenavigationlinks.go +++ b/services/network/mgmt/2019-09-01/network/resourcenavigationlinks.go @@ -74,6 +74,7 @@ func (client ResourceNavigationLinksClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ResourceNavigationLinksClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/routefilterrules.go b/services/network/mgmt/2019-09-01/network/routefilterrules.go index f4c053717d66..8c1696086207 100644 --- a/services/network/mgmt/2019-09-01/network/routefilterrules.go +++ b/services/network/mgmt/2019-09-01/network/routefilterrules.go @@ -241,6 +241,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/routefilters.go b/services/network/mgmt/2019-09-01/network/routefilters.go index 62db9fbc1302..e5022de7d5c6 100644 --- a/services/network/mgmt/2019-09-01/network/routefilters.go +++ b/services/network/mgmt/2019-09-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client RouteFiltersClient) UpdateTags(ctx context.Context, resourceGroupNa result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/routes.go b/services/network/mgmt/2019-09-01/network/routes.go index 3bb6b87e92f1..3d0a0d491939 100644 --- a/services/network/mgmt/2019-09-01/network/routes.go +++ b/services/network/mgmt/2019-09-01/network/routes.go @@ -230,6 +230,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/routetables.go b/services/network/mgmt/2019-09-01/network/routetables.go index 2d14ab2392de..610e9f21ad13 100644 --- a/services/network/mgmt/2019-09-01/network/routetables.go +++ b/services/network/mgmt/2019-09-01/network/routetables.go @@ -226,6 +226,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client RouteTablesClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/securitygroups.go b/services/network/mgmt/2019-09-01/network/securitygroups.go index b87e9172ad74..455e80c853c2 100644 --- a/services/network/mgmt/2019-09-01/network/securitygroups.go +++ b/services/network/mgmt/2019-09-01/network/securitygroups.go @@ -226,6 +226,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client SecurityGroupsClient) UpdateTags(ctx context.Context, resourceGroup result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/securityrules.go b/services/network/mgmt/2019-09-01/network/securityrules.go index 9af72c4dacf8..6d373efd5a28 100644 --- a/services/network/mgmt/2019-09-01/network/securityrules.go +++ b/services/network/mgmt/2019-09-01/network/securityrules.go @@ -230,6 +230,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/serviceassociationlinks.go b/services/network/mgmt/2019-09-01/network/serviceassociationlinks.go index ccc9d9e5acb8..f5b1573bd327 100644 --- a/services/network/mgmt/2019-09-01/network/serviceassociationlinks.go +++ b/services/network/mgmt/2019-09-01/network/serviceassociationlinks.go @@ -74,6 +74,7 @@ func (client ServiceAssociationLinksClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceAssociationLinksClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/serviceendpointpolicies.go b/services/network/mgmt/2019-09-01/network/serviceendpointpolicies.go index b8f22e9e789d..50cbb4a41a37 100644 --- a/services/network/mgmt/2019-09-01/network/serviceendpointpolicies.go +++ b/services/network/mgmt/2019-09-01/network/serviceendpointpolicies.go @@ -227,6 +227,7 @@ func (client ServiceEndpointPoliciesClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client ServiceEndpointPoliciesClient) List(ctx context.Context) (result Se result.seplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "List", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -365,6 +367,7 @@ func (client ServiceEndpointPoliciesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Cont result.seplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client ServiceEndpointPoliciesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +536,7 @@ func (client ServiceEndpointPoliciesClient) UpdateTags(ctx context.Context, reso result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2019-09-01/network/serviceendpointpolicydefinitions.go index 65a492c11772..dca76cf94d35 100644 --- a/services/network/mgmt/2019-09-01/network/serviceendpointpolicydefinitions.go +++ b/services/network/mgmt/2019-09-01/network/serviceendpointpolicydefinitions.go @@ -232,6 +232,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) ListByResourceGroup(ctx con result.sepdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sepdlr.hasNextLink() && result.sepdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) listByResourceGroupNextResu result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/servicetags.go b/services/network/mgmt/2019-09-01/network/servicetags.go index 3370e05676ff..5bf34cb9c6c4 100644 --- a/services/network/mgmt/2019-09-01/network/servicetags.go +++ b/services/network/mgmt/2019-09-01/network/servicetags.go @@ -73,6 +73,7 @@ func (client ServiceTagsClient) List(ctx context.Context, location string) (resu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceTagsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/subnets.go b/services/network/mgmt/2019-09-01/network/subnets.go index 21efc08a944d..a80e741207bd 100644 --- a/services/network/mgmt/2019-09-01/network/subnets.go +++ b/services/network/mgmt/2019-09-01/network/subnets.go @@ -231,6 +231,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/usages.go b/services/network/mgmt/2019-09-01/network/usages.go index 057c1122eab0..f538e145adce 100644 --- a/services/network/mgmt/2019-09-01/network/usages.go +++ b/services/network/mgmt/2019-09-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/virtualhubroutetablev2s.go b/services/network/mgmt/2019-09-01/network/virtualhubroutetablev2s.go index c34730a0d76a..098fa54db9fd 100644 --- a/services/network/mgmt/2019-09-01/network/virtualhubroutetablev2s.go +++ b/services/network/mgmt/2019-09-01/network/virtualhubroutetablev2s.go @@ -232,6 +232,7 @@ func (client VirtualHubRouteTableV2sClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client VirtualHubRouteTableV2sClient) List(ctx context.Context, resourceGr result.lvhrtvr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "List", resp, "Failure responding to request") + return } if result.lvhrtvr.hasNextLink() && result.lvhrtvr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client VirtualHubRouteTableV2sClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/virtualhubs.go b/services/network/mgmt/2019-09-01/network/virtualhubs.go index f007fb3d6d7f..52c1198d094a 100644 --- a/services/network/mgmt/2019-09-01/network/virtualhubs.go +++ b/services/network/mgmt/2019-09-01/network/virtualhubs.go @@ -225,6 +225,7 @@ func (client VirtualHubsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualHubsClient) List(ctx context.Context) (result ListVirtualHub result.lvhr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "List", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualHubsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualHubsClient) ListByResourceGroup(ctx context.Context, resourc result.lvhr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualHubsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +531,7 @@ func (client VirtualHubsClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2019-09-01/network/virtualnetworkgatewayconnections.go index ae5912b20216..28c49869358c 100644 --- a/services/network/mgmt/2019-09-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2019-09-01/network/virtualnetworkgatewayconnections.go @@ -240,6 +240,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -392,6 +394,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -455,6 +458,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/virtualnetworkgateways.go b/services/network/mgmt/2019-09-01/network/virtualnetworkgateways.go index 1b9087c8aa00..38a2fbe79443 100644 --- a/services/network/mgmt/2019-09-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2019-09-01/network/virtualnetworkgateways.go @@ -391,6 +391,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -928,6 +929,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -991,6 +993,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1043,6 +1046,7 @@ func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, result.vnglcr, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return } if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1107,6 +1111,7 @@ func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx contex result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1559,6 +1564,7 @@ func (client VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Conte result, err = client.SupportedVpnDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", resp, "Failure responding to request") + return } return @@ -1714,6 +1720,7 @@ func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx cont result, err = client.VpnDeviceConfigurationScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2019-09-01/network/virtualnetworkpeerings.go index 7174044f450f..70fd71615835 100644 --- a/services/network/mgmt/2019-09-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2019-09-01/network/virtualnetworkpeerings.go @@ -232,6 +232,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/virtualnetworks.go b/services/network/mgmt/2019-09-01/network/virtualnetworks.go index fce8d586b744..5ba213d7f885 100644 --- a/services/network/mgmt/2019-09-01/network/virtualnetworks.go +++ b/services/network/mgmt/2019-09-01/network/virtualnetworks.go @@ -74,6 +74,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -313,6 +314,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -503,6 +507,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -565,6 +570,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -617,6 +623,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -681,6 +688,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } @@ -733,6 +741,7 @@ func (client VirtualNetworksClient) UpdateTags(ctx context.Context, resourceGrou result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/virtualnetworktaps.go b/services/network/mgmt/2019-09-01/network/virtualnetworktaps.go index b153fac2a97c..95a26531eebb 100644 --- a/services/network/mgmt/2019-09-01/network/virtualnetworktaps.go +++ b/services/network/mgmt/2019-09-01/network/virtualnetworktaps.go @@ -258,6 +258,7 @@ func (client VirtualNetworkTapsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "Get", resp, "Failure responding to request") + return } return @@ -331,6 +332,7 @@ func (client VirtualNetworkTapsClient) ListAll(ctx context.Context) (result Virt result.vntlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListAll", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -393,6 +395,7 @@ func (client VirtualNetworkTapsClient) listAllNextResults(ctx context.Context, l result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -444,6 +447,7 @@ func (client VirtualNetworkTapsClient) ListByResourceGroup(ctx context.Context, result.vntlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -507,6 +511,7 @@ func (client VirtualNetworkTapsClient) listByResourceGroupNextResults(ctx contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -559,6 +564,7 @@ func (client VirtualNetworkTapsClient) UpdateTags(ctx context.Context, resourceG result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/virtualrouterpeerings.go b/services/network/mgmt/2019-09-01/network/virtualrouterpeerings.go index 4aea6bcce7e1..25add2519492 100644 --- a/services/network/mgmt/2019-09-01/network/virtualrouterpeerings.go +++ b/services/network/mgmt/2019-09-01/network/virtualrouterpeerings.go @@ -244,6 +244,7 @@ func (client VirtualRouterPeeringsClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client VirtualRouterPeeringsClient) List(ctx context.Context, resourceGrou result.vrplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vrplr.hasNextLink() && result.vrplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client VirtualRouterPeeringsClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/virtualrouters.go b/services/network/mgmt/2019-09-01/network/virtualrouters.go index 06c81bea3ca3..49129ee8583a 100644 --- a/services/network/mgmt/2019-09-01/network/virtualrouters.go +++ b/services/network/mgmt/2019-09-01/network/virtualrouters.go @@ -238,6 +238,7 @@ func (client VirtualRoutersClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client VirtualRoutersClient) List(ctx context.Context) (result VirtualRout result.vrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "List", resp, "Failure responding to request") + return } if result.vrlr.hasNextLink() && result.vrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -376,6 +378,7 @@ func (client VirtualRoutersClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -427,6 +430,7 @@ func (client VirtualRoutersClient) ListByResourceGroup(ctx context.Context, reso result.vrlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vrlr.hasNextLink() && result.vrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -490,6 +494,7 @@ func (client VirtualRoutersClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/virtualwans.go b/services/network/mgmt/2019-09-01/network/virtualwans.go index b71dd4a0c80f..435033198cb6 100644 --- a/services/network/mgmt/2019-09-01/network/virtualwans.go +++ b/services/network/mgmt/2019-09-01/network/virtualwans.go @@ -225,6 +225,7 @@ func (client VirtualWansClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualWansClient) List(ctx context.Context) (result ListVirtualWAN result.lvwnr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "List", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualWansClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualWansClient) ListByResourceGroup(ctx context.Context, resourc result.lvwnr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualWansClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +531,7 @@ func (client VirtualWansClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/vpnconnections.go b/services/network/mgmt/2019-09-01/network/vpnconnections.go index 3acd180a5502..4611249c7925 100644 --- a/services/network/mgmt/2019-09-01/network/vpnconnections.go +++ b/services/network/mgmt/2019-09-01/network/vpnconnections.go @@ -231,6 +231,7 @@ func (client VpnConnectionsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VpnConnectionsClient) ListByVpnGateway(ctx context.Context, resourc result.lvcr, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "ListByVpnGateway", resp, "Failure responding to request") + return } if result.lvcr.hasNextLink() && result.lvcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VpnConnectionsClient) listByVpnGatewayNextResults(ctx context.Conte result, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "listByVpnGatewayNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/vpngateways.go b/services/network/mgmt/2019-09-01/network/vpngateways.go index ac73268aeb8f..a770dcfa4f4a 100644 --- a/services/network/mgmt/2019-09-01/network/vpngateways.go +++ b/services/network/mgmt/2019-09-01/network/vpngateways.go @@ -225,6 +225,7 @@ func (client VpnGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnGatewaysClient) List(ctx context.Context) (result ListVpnGateway result.lvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnGatewaysClient) ListByResourceGroup(ctx context.Context, resourc result.lvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnGatewaysClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -601,6 +606,7 @@ func (client VpnGatewaysClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/vpnlinkconnections.go b/services/network/mgmt/2019-09-01/network/vpnlinkconnections.go index 53010e368844..1d40244f6b6b 100644 --- a/services/network/mgmt/2019-09-01/network/vpnlinkconnections.go +++ b/services/network/mgmt/2019-09-01/network/vpnlinkconnections.go @@ -75,6 +75,7 @@ func (client VpnLinkConnectionsClient) ListByVpnConnection(ctx context.Context, result.lvslcr, err = client.ListByVpnConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnLinkConnectionsClient", "ListByVpnConnection", resp, "Failure responding to request") + return } if result.lvslcr.hasNextLink() && result.lvslcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -140,6 +141,7 @@ func (client VpnLinkConnectionsClient) listByVpnConnectionNextResults(ctx contex result, err = client.ListByVpnConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnLinkConnectionsClient", "listByVpnConnectionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/vpnserverconfigurations.go b/services/network/mgmt/2019-09-01/network/vpnserverconfigurations.go index 433b6265b143..cce9722df05a 100644 --- a/services/network/mgmt/2019-09-01/network/vpnserverconfigurations.go +++ b/services/network/mgmt/2019-09-01/network/vpnserverconfigurations.go @@ -227,6 +227,7 @@ func (client VpnServerConfigurationsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client VpnServerConfigurationsClient) List(ctx context.Context) (result Li result.lvscr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lvscr.hasNextLink() && result.lvscr.IsEmpty() { err = result.NextWithContext(ctx) @@ -362,6 +364,7 @@ func (client VpnServerConfigurationsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client VpnServerConfigurationsClient) ListByResourceGroup(ctx context.Cont result.lvscr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvscr.hasNextLink() && result.lvscr.IsEmpty() { err = result.NextWithContext(ctx) @@ -476,6 +480,7 @@ func (client VpnServerConfigurationsClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -528,6 +533,7 @@ func (client VpnServerConfigurationsClient) UpdateTags(ctx context.Context, reso result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/vpnsitelinkconnections.go b/services/network/mgmt/2019-09-01/network/vpnsitelinkconnections.go index 59b9a1463f25..adeed0da7b4d 100644 --- a/services/network/mgmt/2019-09-01/network/vpnsitelinkconnections.go +++ b/services/network/mgmt/2019-09-01/network/vpnsitelinkconnections.go @@ -75,6 +75,7 @@ func (client VpnSiteLinkConnectionsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinkConnectionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/vpnsitelinks.go b/services/network/mgmt/2019-09-01/network/vpnsitelinks.go index 8ad3f56ce366..2c34cf148d73 100644 --- a/services/network/mgmt/2019-09-01/network/vpnsitelinks.go +++ b/services/network/mgmt/2019-09-01/network/vpnsitelinks.go @@ -73,6 +73,7 @@ func (client VpnSiteLinksClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client VpnSiteLinksClient) ListByVpnSite(ctx context.Context, resourceGrou result.lvslr, err = client.ListByVpnSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "ListByVpnSite", resp, "Failure responding to request") + return } if result.lvslr.hasNextLink() && result.lvslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -214,6 +216,7 @@ func (client VpnSiteLinksClient) listByVpnSiteNextResults(ctx context.Context, l result, err = client.ListByVpnSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "listByVpnSiteNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-09-01/network/vpnsites.go b/services/network/mgmt/2019-09-01/network/vpnsites.go index fb907046c391..34bf93d2339d 100644 --- a/services/network/mgmt/2019-09-01/network/vpnsites.go +++ b/services/network/mgmt/2019-09-01/network/vpnsites.go @@ -225,6 +225,7 @@ func (client VpnSitesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnSitesClient) List(ctx context.Context) (result ListVpnSitesResul result.lvsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "List", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnSitesClient) listNextResults(ctx context.Context, lastResults Li result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnSitesClient) ListByResourceGroup(ctx context.Context, resourceGr result.lvsr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnSitesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +531,7 @@ func (client VpnSitesClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/watchers.go b/services/network/mgmt/2019-09-01/network/watchers.go index 1a4dbb4553f3..2d12f64c7761 100644 --- a/services/network/mgmt/2019-09-01/network/watchers.go +++ b/services/network/mgmt/2019-09-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -313,6 +314,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -736,6 +738,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -1068,6 +1071,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -1139,6 +1143,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return @@ -1383,6 +1388,7 @@ func (client WatchersClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-09-01/network/webapplicationfirewallpolicies.go b/services/network/mgmt/2019-09-01/network/webapplicationfirewallpolicies.go index 134a0d326aab..b090c9fe39cd 100644 --- a/services/network/mgmt/2019-09-01/network/webapplicationfirewallpolicies.go +++ b/services/network/mgmt/2019-09-01/network/webapplicationfirewallpolicies.go @@ -94,6 +94,7 @@ func (client WebApplicationFirewallPoliciesClient) CreateOrUpdate(ctx context.Co result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -258,6 +259,7 @@ func (client WebApplicationFirewallPoliciesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -333,6 +335,7 @@ func (client WebApplicationFirewallPoliciesClient) List(ctx context.Context, res result.wafplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "List", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -396,6 +399,7 @@ func (client WebApplicationFirewallPoliciesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +449,7 @@ func (client WebApplicationFirewallPoliciesClient) ListAll(ctx context.Context) result.wafplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "ListAll", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -507,6 +512,7 @@ func (client WebApplicationFirewallPoliciesClient) listAllNextResults(ctx contex result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/applicationgateways.go b/services/network/mgmt/2019-11-01/network/applicationgateways.go index d57994d1398a..3e0d07cc1ebd 100644 --- a/services/network/mgmt/2019-11-01/network/applicationgateways.go +++ b/services/network/mgmt/2019-11-01/network/applicationgateways.go @@ -417,6 +417,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -491,6 +492,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte result, err = client.GetSslPredefinedPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return } return @@ -565,6 +567,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -628,6 +631,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -677,6 +681,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -739,6 +744,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -787,6 +793,7 @@ func (client ApplicationGatewaysClient) ListAvailableRequestHeaders(ctx context. result, err = client.ListAvailableRequestHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableRequestHeaders", resp, "Failure responding to request") + return } return @@ -857,6 +864,7 @@ func (client ApplicationGatewaysClient) ListAvailableResponseHeaders(ctx context result, err = client.ListAvailableResponseHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableResponseHeaders", resp, "Failure responding to request") + return } return @@ -927,6 +935,7 @@ func (client ApplicationGatewaysClient) ListAvailableServerVariables(ctx context result, err = client.ListAvailableServerVariablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableServerVariables", resp, "Failure responding to request") + return } return @@ -997,6 +1006,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont result, err = client.ListAvailableSslOptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return } return @@ -1068,6 +1078,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return } if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { err = result.NextWithContext(ctx) @@ -1130,6 +1141,7 @@ func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextRe result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1178,6 +1190,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return @@ -1400,6 +1413,7 @@ func (client ApplicationGatewaysClient) UpdateTags(ctx context.Context, resource result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/applicationsecuritygroups.go b/services/network/mgmt/2019-11-01/network/applicationsecuritygroups.go index 947f8acd0ad6..987a065c48d9 100644 --- a/services/network/mgmt/2019-11-01/network/applicationsecuritygroups.go +++ b/services/network/mgmt/2019-11-01/network/applicationsecuritygroups.go @@ -226,6 +226,7 @@ func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resource result.asglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ApplicationSecurityGroupsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (resu result.asglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ApplicationSecurityGroupsClient) listAllNextResults(ctx context.Con result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -527,6 +532,7 @@ func (client ApplicationSecurityGroupsClient) UpdateTags(ctx context.Context, re result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/availabledelegations.go b/services/network/mgmt/2019-11-01/network/availabledelegations.go index ee55b54299eb..a3c42616b22f 100644 --- a/services/network/mgmt/2019-11-01/network/availabledelegations.go +++ b/services/network/mgmt/2019-11-01/network/availabledelegations.go @@ -73,6 +73,7 @@ func (client AvailableDelegationsClient) List(ctx context.Context, location stri result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableDelegationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/availableendpointservices.go b/services/network/mgmt/2019-11-01/network/availableendpointservices.go index 6e0e01fd6433..9938222a2af2 100644 --- a/services/network/mgmt/2019-11-01/network/availableendpointservices.go +++ b/services/network/mgmt/2019-11-01/network/availableendpointservices.go @@ -73,6 +73,7 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableEndpointServicesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/availableprivateendpointtypes.go b/services/network/mgmt/2019-11-01/network/availableprivateendpointtypes.go index c0fe6a2aa362..4f6da268586a 100644 --- a/services/network/mgmt/2019-11-01/network/availableprivateendpointtypes.go +++ b/services/network/mgmt/2019-11-01/network/availableprivateendpointtypes.go @@ -73,6 +73,7 @@ func (client AvailablePrivateEndpointTypesClient) List(ctx context.Context, loca result.apetr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "List", resp, "Failure responding to request") + return } if result.apetr.hasNextLink() && result.apetr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailablePrivateEndpointTypesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -189,6 +191,7 @@ func (client AvailablePrivateEndpointTypesClient) ListByResourceGroup(ctx contex result.apetr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.apetr.hasNextLink() && result.apetr.IsEmpty() { err = result.NextWithContext(ctx) @@ -253,6 +256,7 @@ func (client AvailablePrivateEndpointTypesClient) listByResourceGroupNextResults result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2019-11-01/network/availableresourcegroupdelegations.go index 4101b61020d2..aa5e08d5634b 100644 --- a/services/network/mgmt/2019-11-01/network/availableresourcegroupdelegations.go +++ b/services/network/mgmt/2019-11-01/network/availableresourcegroupdelegations.go @@ -75,6 +75,7 @@ func (client AvailableResourceGroupDelegationsClient) List(ctx context.Context, result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client AvailableResourceGroupDelegationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/availableservicealiases.go b/services/network/mgmt/2019-11-01/network/availableservicealiases.go index 10ace6be10d0..3076d66cf4f1 100644 --- a/services/network/mgmt/2019-11-01/network/availableservicealiases.go +++ b/services/network/mgmt/2019-11-01/network/availableservicealiases.go @@ -73,6 +73,7 @@ func (client AvailableServiceAliasesClient) List(ctx context.Context, location s result.asar, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "List", resp, "Failure responding to request") + return } if result.asar.hasNextLink() && result.asar.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableServiceAliasesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -188,6 +190,7 @@ func (client AvailableServiceAliasesClient) ListByResourceGroup(ctx context.Cont result.asar, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.asar.hasNextLink() && result.asar.IsEmpty() { err = result.NextWithContext(ctx) @@ -252,6 +255,7 @@ func (client AvailableServiceAliasesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2019-11-01/network/azurefirewallfqdntags.go index 90eb981db25b..5817463cd30a 100644 --- a/services/network/mgmt/2019-11-01/network/azurefirewallfqdntags.go +++ b/services/network/mgmt/2019-11-01/network/azurefirewallfqdntags.go @@ -71,6 +71,7 @@ func (client AzureFirewallFqdnTagsClient) ListAll(ctx context.Context) (result A result.afftlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "ListAll", resp, "Failure responding to request") + return } if result.afftlr.hasNextLink() && result.afftlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client AzureFirewallFqdnTagsClient) listAllNextResults(ctx context.Context result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/azurefirewalls.go b/services/network/mgmt/2019-11-01/network/azurefirewalls.go index 2bf0b973da5c..6089024e9be9 100644 --- a/services/network/mgmt/2019-11-01/network/azurefirewalls.go +++ b/services/network/mgmt/2019-11-01/network/azurefirewalls.go @@ -225,6 +225,7 @@ func (client AzureFirewallsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client AzureFirewallsClient) List(ctx context.Context, resourceGroupName s result.aflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "List", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +365,7 @@ func (client AzureFirewallsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client AzureFirewallsClient) ListAll(ctx context.Context) (result AzureFir result.aflr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "ListAll", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client AzureFirewallsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +531,7 @@ func (client AzureFirewallsClient) UpdateTags(ctx context.Context, resourceGroup result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/bastionhosts.go b/services/network/mgmt/2019-11-01/network/bastionhosts.go index cd0398bfd9b7..fa547f1c63fe 100644 --- a/services/network/mgmt/2019-11-01/network/bastionhosts.go +++ b/services/network/mgmt/2019-11-01/network/bastionhosts.go @@ -225,6 +225,7 @@ func (client BastionHostsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client BastionHostsClient) List(ctx context.Context) (result BastionHostLi result.bhlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "List", resp, "Failure responding to request") + return } if result.bhlr.hasNextLink() && result.bhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client BastionHostsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client BastionHostsClient) ListByResourceGroup(ctx context.Context, resour result.bhlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.bhlr.hasNextLink() && result.bhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client BastionHostsClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/bgpservicecommunities.go b/services/network/mgmt/2019-11-01/network/bgpservicecommunities.go index 6cce78e265fc..b09dc284eb65 100644 --- a/services/network/mgmt/2019-11-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2019-11-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/client.go b/services/network/mgmt/2019-11-01/network/client.go index 344775cb38de..5c8c279a42cb 100644 --- a/services/network/mgmt/2019-11-01/network/client.go +++ b/services/network/mgmt/2019-11-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return @@ -241,6 +242,7 @@ func (client BaseClient) DisconnectActiveSessions(ctx context.Context, resourceG result.bsdr, err = client.DisconnectActiveSessionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "DisconnectActiveSessions", resp, "Failure responding to request") + return } if result.bsdr.hasNextLink() && result.bsdr.IsEmpty() { err = result.NextWithContext(ctx) @@ -307,6 +309,7 @@ func (client BaseClient) disconnectActiveSessionsNextResults(ctx context.Context result, err = client.DisconnectActiveSessionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "disconnectActiveSessionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -555,6 +558,7 @@ func (client BaseClient) GetBastionShareableLink(ctx context.Context, resourceGr result.bsllr, err = client.GetBastionShareableLinkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "GetBastionShareableLink", resp, "Failure responding to request") + return } if result.bsllr.hasNextLink() && result.bsllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -621,6 +625,7 @@ func (client BaseClient) getBastionShareableLinkNextResults(ctx context.Context, result, err = client.GetBastionShareableLinkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "getBastionShareableLinkNextResults", resp, "Failure responding to next results request") + return } return } @@ -791,6 +796,7 @@ func (client BaseClient) SupportedSecurityProviders(ctx context.Context, resourc result, err = client.SupportedSecurityProvidersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "SupportedSecurityProviders", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/connectionmonitors.go b/services/network/mgmt/2019-11-01/network/connectionmonitors.go index 89ef20c7240c..d4b0097f506c 100644 --- a/services/network/mgmt/2019-11-01/network/connectionmonitors.go +++ b/services/network/mgmt/2019-11-01/network/connectionmonitors.go @@ -240,6 +240,7 @@ func (client ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client ConnectionMonitorsClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure responding to request") + return } return @@ -622,6 +624,7 @@ func (client ConnectionMonitorsClient) UpdateTags(ctx context.Context, resourceG result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/ddoscustompolicies.go b/services/network/mgmt/2019-11-01/network/ddoscustompolicies.go index 0e9b9593de38..c77357b8b3b0 100644 --- a/services/network/mgmt/2019-11-01/network/ddoscustompolicies.go +++ b/services/network/mgmt/2019-11-01/network/ddoscustompolicies.go @@ -226,6 +226,7 @@ func (client DdosCustomPoliciesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DdosCustomPoliciesClient) UpdateTags(ctx context.Context, resourceG result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/ddosprotectionplans.go b/services/network/mgmt/2019-11-01/network/ddosprotectionplans.go index 7475b51f871d..b6dc82218c83 100644 --- a/services/network/mgmt/2019-11-01/network/ddosprotectionplans.go +++ b/services/network/mgmt/2019-11-01/network/ddosprotectionplans.go @@ -229,6 +229,7 @@ func (client DdosProtectionPlansClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DdosProtectionPlansClient) List(ctx context.Context) (result DdosPr result.dpplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client DdosProtectionPlansClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, result.dpplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client DdosProtectionPlansClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client DdosProtectionPlansClient) UpdateTags(ctx context.Context, resource result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/defaultsecurityrules.go b/services/network/mgmt/2019-11-01/network/defaultsecurityrules.go index 17b9d544e293..d612241a34d8 100644 --- a/services/network/mgmt/2019-11-01/network/defaultsecurityrules.go +++ b/services/network/mgmt/2019-11-01/network/defaultsecurityrules.go @@ -74,6 +74,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2019-11-01/network/expressroutecircuitauthorizations.go index 60042c1d7be4..baa36978c98a 100644 --- a/services/network/mgmt/2019-11-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2019-11-01/network/expressroutecircuitauthorizations.go @@ -234,6 +234,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2019-11-01/network/expressroutecircuitconnections.go index e7be84f64086..6e851f3196a3 100644 --- a/services/network/mgmt/2019-11-01/network/expressroutecircuitconnections.go +++ b/services/network/mgmt/2019-11-01/network/expressroutecircuitconnections.go @@ -238,6 +238,7 @@ func (client ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ExpressRouteCircuitConnectionsClient) List(ctx context.Context, res result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client ExpressRouteCircuitConnectionsClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2019-11-01/network/expressroutecircuitpeerings.go index 4a9bb981409d..7510e4fe02d8 100644 --- a/services/network/mgmt/2019-11-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2019-11-01/network/expressroutecircuitpeerings.go @@ -244,6 +244,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/expressroutecircuits.go b/services/network/mgmt/2019-11-01/network/expressroutecircuits.go index 20e2ba40dd69..811ee488c5c0 100644 --- a/services/network/mgmt/2019-11-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2019-11-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -918,6 +925,7 @@ func (client ExpressRouteCircuitsClient) UpdateTags(ctx context.Context, resourc result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/expressrouteconnections.go b/services/network/mgmt/2019-11-01/network/expressrouteconnections.go index dab6dd87d821..55208ca5120e 100644 --- a/services/network/mgmt/2019-11-01/network/expressrouteconnections.go +++ b/services/network/mgmt/2019-11-01/network/expressrouteconnections.go @@ -239,6 +239,7 @@ func (client ExpressRouteConnectionsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client ExpressRouteConnectionsClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2019-11-01/network/expressroutecrossconnectionpeerings.go index 8bd3a7c7db09..efa90167ea35 100644 --- a/services/network/mgmt/2019-11-01/network/expressroutecrossconnectionpeerings.go +++ b/services/network/mgmt/2019-11-01/network/expressroutecrossconnectionpeerings.go @@ -245,6 +245,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context result.erccpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "List", resp, "Failure responding to request") + return } if result.erccpl.hasNextLink() && result.erccpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) listNextResults(ctx cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/expressroutecrossconnections.go b/services/network/mgmt/2019-11-01/network/expressroutecrossconnections.go index 465bdcda4381..05f35da07f65 100644 --- a/services/network/mgmt/2019-11-01/network/expressroutecrossconnections.go +++ b/services/network/mgmt/2019-11-01/network/expressroutecrossconnections.go @@ -152,6 +152,7 @@ func (client ExpressRouteCrossConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ExpressRouteCrossConnectionsClient) List(ctx context.Context) (resu result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -287,6 +289,7 @@ func (client ExpressRouteCrossConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -418,6 +421,7 @@ func (client ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context result.ercclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +485,7 @@ func (client ExpressRouteCrossConnectionsClient) listByResourceGroupNextResults( result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -693,6 +698,7 @@ func (client ExpressRouteCrossConnectionsClient) UpdateTags(ctx context.Context, result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/expressroutegateways.go b/services/network/mgmt/2019-11-01/network/expressroutegateways.go index 922851619ea3..29e7030bc64e 100644 --- a/services/network/mgmt/2019-11-01/network/expressroutegateways.go +++ b/services/network/mgmt/2019-11-01/network/expressroutegateways.go @@ -235,6 +235,7 @@ func (client ExpressRouteGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client ExpressRouteGatewaysClient) ListByResourceGroup(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -380,6 +382,7 @@ func (client ExpressRouteGatewaysClient) ListBySubscription(ctx context.Context) result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/expressroutelinks.go b/services/network/mgmt/2019-11-01/network/expressroutelinks.go index 23421ac4a3d6..a90dc7bd646e 100644 --- a/services/network/mgmt/2019-11-01/network/expressroutelinks.go +++ b/services/network/mgmt/2019-11-01/network/expressroutelinks.go @@ -74,6 +74,7 @@ func (client ExpressRouteLinksClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ExpressRouteLinksClient) List(ctx context.Context, resourceGroupNam result.erllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "List", resp, "Failure responding to request") + return } if result.erllr.hasNextLink() && result.erllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client ExpressRouteLinksClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/expressrouteports.go b/services/network/mgmt/2019-11-01/network/expressrouteports.go index 60680586f6b4..bdcd743d1463 100644 --- a/services/network/mgmt/2019-11-01/network/expressrouteports.go +++ b/services/network/mgmt/2019-11-01/network/expressrouteports.go @@ -226,6 +226,7 @@ func (client ExpressRoutePortsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client ExpressRoutePortsClient) List(ctx context.Context) (result ExpressR result.erplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "List", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -361,6 +363,7 @@ func (client ExpressRoutePortsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, r result.erplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ExpressRoutePortsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -527,6 +532,7 @@ func (client ExpressRoutePortsClient) UpdateTags(ctx context.Context, resourceGr result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/expressrouteportslocations.go b/services/network/mgmt/2019-11-01/network/expressrouteportslocations.go index cc1602788956..e8d6bf91d792 100644 --- a/services/network/mgmt/2019-11-01/network/expressrouteportslocations.go +++ b/services/network/mgmt/2019-11-01/network/expressrouteportslocations.go @@ -73,6 +73,7 @@ func (client ExpressRoutePortsLocationsClient) Get(ctx context.Context, location result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client ExpressRoutePortsLocationsClient) List(ctx context.Context) (result result.erpllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "List", resp, "Failure responding to request") + return } if result.erpllr.hasNextLink() && result.erpllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -208,6 +210,7 @@ func (client ExpressRoutePortsLocationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2019-11-01/network/expressrouteserviceproviders.go index 56ff3d8e4e0e..4f5ba580b14b 100644 --- a/services/network/mgmt/2019-11-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2019-11-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/firewallpolicies.go b/services/network/mgmt/2019-11-01/network/firewallpolicies.go index 9fe1f976bda1..0a261d2f9691 100644 --- a/services/network/mgmt/2019-11-01/network/firewallpolicies.go +++ b/services/network/mgmt/2019-11-01/network/firewallpolicies.go @@ -227,6 +227,7 @@ func (client FirewallPoliciesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client FirewallPoliciesClient) List(ctx context.Context, resourceGroupName result.fplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "List", resp, "Failure responding to request") + return } if result.fplr.hasNextLink() && result.fplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client FirewallPoliciesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client FirewallPoliciesClient) ListAll(ctx context.Context) (result Firewa result.fplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "ListAll", resp, "Failure responding to request") + return } if result.fplr.hasNextLink() && result.fplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client FirewallPoliciesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/firewallpolicyrulegroups.go b/services/network/mgmt/2019-11-01/network/firewallpolicyrulegroups.go index 7a38f5923a90..a27a43450f46 100644 --- a/services/network/mgmt/2019-11-01/network/firewallpolicyrulegroups.go +++ b/services/network/mgmt/2019-11-01/network/firewallpolicyrulegroups.go @@ -244,6 +244,7 @@ func (client FirewallPolicyRuleGroupsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client FirewallPolicyRuleGroupsClient) List(ctx context.Context, resourceG result.fprglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "List", resp, "Failure responding to request") + return } if result.fprglr.hasNextLink() && result.fprglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client FirewallPolicyRuleGroupsClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/flowlogs.go b/services/network/mgmt/2019-11-01/network/flowlogs.go index c4326893c55f..85fb81c512a0 100644 --- a/services/network/mgmt/2019-11-01/network/flowlogs.go +++ b/services/network/mgmt/2019-11-01/network/flowlogs.go @@ -240,6 +240,7 @@ func (client FlowLogsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client FlowLogsClient) List(ctx context.Context, resourceGroupName string, result.fllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "List", resp, "Failure responding to request") + return } if result.fllr.hasNextLink() && result.fllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client FlowLogsClient) listNextResults(ctx context.Context, lastResults Fl result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2019-11-01/network/hubvirtualnetworkconnections.go index d4fcd060802b..c8cfe2fa61bd 100644 --- a/services/network/mgmt/2019-11-01/network/hubvirtualnetworkconnections.go +++ b/services/network/mgmt/2019-11-01/network/hubvirtualnetworkconnections.go @@ -74,6 +74,7 @@ func (client HubVirtualNetworkConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client HubVirtualNetworkConnectionsClient) List(ctx context.Context, resou result.lhvncr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "List", resp, "Failure responding to request") + return } if result.lhvncr.hasNextLink() && result.lhvncr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client HubVirtualNetworkConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/inboundnatrules.go b/services/network/mgmt/2019-11-01/network/inboundnatrules.go index f5b4044ecdc3..aab64ec97694 100644 --- a/services/network/mgmt/2019-11-01/network/inboundnatrules.go +++ b/services/network/mgmt/2019-11-01/network/inboundnatrules.go @@ -252,6 +252,7 @@ func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -332,6 +333,7 @@ func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName result.inrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return } if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -396,6 +398,7 @@ func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/interfaceipconfigurations.go b/services/network/mgmt/2019-11-01/network/interfaceipconfigurations.go index 3bd8299756e6..474e3f73e65d 100644 --- a/services/network/mgmt/2019-11-01/network/interfaceipconfigurations.go +++ b/services/network/mgmt/2019-11-01/network/interfaceipconfigurations.go @@ -74,6 +74,7 @@ func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resource result.iiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/interfaceloadbalancers.go b/services/network/mgmt/2019-11-01/network/interfaceloadbalancers.go index 9f27e4cdad4e..cb9508507270 100644 --- a/services/network/mgmt/2019-11-01/network/interfaceloadbalancers.go +++ b/services/network/mgmt/2019-11-01/network/interfaceloadbalancers.go @@ -74,6 +74,7 @@ func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGro result.ilblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/interfacesgroup.go b/services/network/mgmt/2019-11-01/network/interfacesgroup.go index f9d5f2fd2085..8b1514bbe49e 100644 --- a/services/network/mgmt/2019-11-01/network/interfacesgroup.go +++ b/services/network/mgmt/2019-11-01/network/interfacesgroup.go @@ -226,6 +226,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -384,6 +385,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx cont result, err = client.GetVirtualMachineScaleSetIPConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure responding to request") + return } return @@ -468,6 +470,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -548,6 +551,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -611,6 +615,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -660,6 +665,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -722,6 +728,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -853,6 +860,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx co result.iiclr, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -922,6 +930,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetIPConfigurationsNextRes result, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -974,6 +983,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1038,6 +1048,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1092,6 +1103,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1157,6 +1169,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1209,6 +1222,7 @@ func (client InterfacesClient) UpdateTags(ctx context.Context, resourceGroupName result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/interfacetapconfigurations.go b/services/network/mgmt/2019-11-01/network/interfacetapconfigurations.go index 06de9861cf59..9c90bb8426fc 100644 --- a/services/network/mgmt/2019-11-01/network/interfacetapconfigurations.go +++ b/services/network/mgmt/2019-11-01/network/interfacetapconfigurations.go @@ -268,6 +268,7 @@ func (client InterfaceTapConfigurationsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +346,7 @@ func (client InterfaceTapConfigurationsClient) List(ctx context.Context, resourc result.itclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.itclr.hasNextLink() && result.itclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -409,6 +411,7 @@ func (client InterfaceTapConfigurationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/ipgroups.go b/services/network/mgmt/2019-11-01/network/ipgroups.go index 1678db1c8323..e65cca78c54b 100644 --- a/services/network/mgmt/2019-11-01/network/ipgroups.go +++ b/services/network/mgmt/2019-11-01/network/ipgroups.go @@ -227,6 +227,7 @@ func (client IPGroupsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client IPGroupsClient) List(ctx context.Context) (result IPGroupListResult result.iglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "List", resp, "Failure responding to request") + return } if result.iglr.hasNextLink() && result.iglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -365,6 +367,7 @@ func (client IPGroupsClient) listNextResults(ctx context.Context, lastResults IP result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client IPGroupsClient) ListByResourceGroup(ctx context.Context, resourceGr result.iglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.iglr.hasNextLink() && result.iglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client IPGroupsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +536,7 @@ func (client IPGroupsClient) UpdateGroups(ctx context.Context, resourceGroupName result, err = client.UpdateGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "UpdateGroups", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2019-11-01/network/loadbalancerbackendaddresspools.go index 9bf7d74ad421..c2d9222a90af 100644 --- a/services/network/mgmt/2019-11-01/network/loadbalancerbackendaddresspools.go +++ b/services/network/mgmt/2019-11-01/network/loadbalancerbackendaddresspools.go @@ -74,6 +74,7 @@ func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, re result.lbbaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return } if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2019-11-01/network/loadbalancerfrontendipconfigurations.go index 0103c3e29c66..bb83ca804546 100644 --- a/services/network/mgmt/2019-11-01/network/loadbalancerfrontendipconfigurations.go +++ b/services/network/mgmt/2019-11-01/network/loadbalancerfrontendipconfigurations.go @@ -75,6 +75,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Contex result.lbficlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2019-11-01/network/loadbalancerloadbalancingrules.go index e0de1dd12e7e..1524e1ce81be 100644 --- a/services/network/mgmt/2019-11-01/network/loadbalancerloadbalancingrules.go +++ b/services/network/mgmt/2019-11-01/network/loadbalancerloadbalancingrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, res result.lblbrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return } if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2019-11-01/network/loadbalancernetworkinterfaces.go index 5c214223bfd6..adb1b96da509 100644 --- a/services/network/mgmt/2019-11-01/network/loadbalancernetworkinterfaces.go +++ b/services/network/mgmt/2019-11-01/network/loadbalancernetworkinterfaces.go @@ -74,6 +74,7 @@ func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, reso result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2019-11-01/network/loadbalanceroutboundrules.go index c6e20ce88fd3..1512a7170bc9 100644 --- a/services/network/mgmt/2019-11-01/network/loadbalanceroutboundrules.go +++ b/services/network/mgmt/2019-11-01/network/loadbalanceroutboundrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerOutboundRulesClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerOutboundRulesClient) List(ctx context.Context, resource result.lborlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "List", resp, "Failure responding to request") + return } if result.lborlr.hasNextLink() && result.lborlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerOutboundRulesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/loadbalancerprobes.go b/services/network/mgmt/2019-11-01/network/loadbalancerprobes.go index ded361edbf40..b468410ee94d 100644 --- a/services/network/mgmt/2019-11-01/network/loadbalancerprobes.go +++ b/services/network/mgmt/2019-11-01/network/loadbalancerprobes.go @@ -74,6 +74,7 @@ func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupNa result.lbplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return } if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/loadbalancers.go b/services/network/mgmt/2019-11-01/network/loadbalancers.go index 310f16b65a9e..82311e198fc5 100644 --- a/services/network/mgmt/2019-11-01/network/loadbalancers.go +++ b/services/network/mgmt/2019-11-01/network/loadbalancers.go @@ -226,6 +226,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client LoadBalancersClient) UpdateTags(ctx context.Context, resourceGroupN result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/localnetworkgateways.go b/services/network/mgmt/2019-11-01/network/localnetworkgateways.go index bddbcc4e6e89..df21b3911478 100644 --- a/services/network/mgmt/2019-11-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2019-11-01/network/localnetworkgateways.go @@ -247,6 +247,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +446,7 @@ func (client LocalNetworkGatewaysClient) UpdateTags(ctx context.Context, resourc result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/natgateways.go b/services/network/mgmt/2019-11-01/network/natgateways.go index ba1c3669e360..e0cee1f075e2 100644 --- a/services/network/mgmt/2019-11-01/network/natgateways.go +++ b/services/network/mgmt/2019-11-01/network/natgateways.go @@ -226,6 +226,7 @@ func (client NatGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client NatGatewaysClient) List(ctx context.Context, resourceGroupName stri result.nglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "List", resp, "Failure responding to request") + return } if result.nglr.hasNextLink() && result.nglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client NatGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client NatGatewaysClient) ListAll(ctx context.Context) (result NatGatewayL result.nglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.nglr.hasNextLink() && result.nglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client NatGatewaysClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client NatGatewaysClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/operations.go b/services/network/mgmt/2019-11-01/network/operations.go index 5ec7525bcc32..ddb92e4c6673 100644 --- a/services/network/mgmt/2019-11-01/network/operations.go +++ b/services/network/mgmt/2019-11-01/network/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/p2svpngateways.go b/services/network/mgmt/2019-11-01/network/p2svpngateways.go index 274fdc37ba5c..d49985ff7f46 100644 --- a/services/network/mgmt/2019-11-01/network/p2svpngateways.go +++ b/services/network/mgmt/2019-11-01/network/p2svpngateways.go @@ -381,6 +381,7 @@ func (client P2sVpnGatewaysClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -609,6 +610,7 @@ func (client P2sVpnGatewaysClient) List(ctx context.Context) (result ListP2SVpnG result.lpvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -671,6 +673,7 @@ func (client P2sVpnGatewaysClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -722,6 +725,7 @@ func (client P2sVpnGatewaysClient) ListByResourceGroup(ctx context.Context, reso result.lpvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -785,6 +789,7 @@ func (client P2sVpnGatewaysClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -837,6 +842,7 @@ func (client P2sVpnGatewaysClient) UpdateTags(ctx context.Context, resourceGroup result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/packetcaptures.go b/services/network/mgmt/2019-11-01/network/packetcaptures.go index 0bdb25c44e58..34ef6442182d 100644 --- a/services/network/mgmt/2019-11-01/network/packetcaptures.go +++ b/services/network/mgmt/2019-11-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/peerexpressroutecircuitconnections.go b/services/network/mgmt/2019-11-01/network/peerexpressroutecircuitconnections.go index 8b97f04a7f0a..2cb876ba2161 100644 --- a/services/network/mgmt/2019-11-01/network/peerexpressroutecircuitconnections.go +++ b/services/network/mgmt/2019-11-01/network/peerexpressroutecircuitconnections.go @@ -76,6 +76,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) List(ctx context.Context, result.percclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.percclr.hasNextLink() && result.percclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -220,6 +222,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) listNextResults(ctx conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/privateendpoints.go b/services/network/mgmt/2019-11-01/network/privateendpoints.go index 6a92a5f728b1..f8adf21bd175 100644 --- a/services/network/mgmt/2019-11-01/network/privateendpoints.go +++ b/services/network/mgmt/2019-11-01/network/privateendpoints.go @@ -227,6 +227,7 @@ func (client PrivateEndpointsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client PrivateEndpointsClient) List(ctx context.Context, resourceGroupName result.pelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "List", resp, "Failure responding to request") + return } if result.pelr.hasNextLink() && result.pelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client PrivateEndpointsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client PrivateEndpointsClient) ListBySubscription(ctx context.Context) (re result.pelr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.pelr.hasNextLink() && result.pelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client PrivateEndpointsClient) listBySubscriptionNextResults(ctx context.C result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/privatelinkservices.go b/services/network/mgmt/2019-11-01/network/privatelinkservices.go index 2853c8921435..9caade40e725 100644 --- a/services/network/mgmt/2019-11-01/network/privatelinkservices.go +++ b/services/network/mgmt/2019-11-01/network/privatelinkservices.go @@ -458,6 +458,7 @@ func (client PrivateLinkServicesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -539,6 +540,7 @@ func (client PrivateLinkServicesClient) GetPrivateEndpointConnection(ctx context result, err = client.GetPrivateEndpointConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "GetPrivateEndpointConnection", resp, "Failure responding to request") + return } return @@ -618,6 +620,7 @@ func (client PrivateLinkServicesClient) List(ctx context.Context, resourceGroupN result.plslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "List", resp, "Failure responding to request") + return } if result.plslr.hasNextLink() && result.plslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -681,6 +684,7 @@ func (client PrivateLinkServicesClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -733,6 +737,7 @@ func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServices(ctx result.aaplsr, err = client.ListAutoApprovedPrivateLinkServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServices", resp, "Failure responding to request") + return } if result.aaplsr.hasNextLink() && result.aaplsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -796,6 +801,7 @@ func (client PrivateLinkServicesClient) listAutoApprovedPrivateLinkServicesNextR result, err = client.ListAutoApprovedPrivateLinkServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesNextResults", resp, "Failure responding to next results request") + return } return } @@ -849,6 +855,7 @@ func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByRes result.aaplsr, err = client.ListAutoApprovedPrivateLinkServicesByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServicesByResourceGroup", resp, "Failure responding to request") + return } if result.aaplsr.hasNextLink() && result.aaplsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -913,6 +920,7 @@ func (client PrivateLinkServicesClient) listAutoApprovedPrivateLinkServicesByRes result, err = client.ListAutoApprovedPrivateLinkServicesByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -962,6 +970,7 @@ func (client PrivateLinkServicesClient) ListBySubscription(ctx context.Context) result.plslr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.plslr.hasNextLink() && result.plslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1024,6 +1033,7 @@ func (client PrivateLinkServicesClient) listBySubscriptionNextResults(ctx contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1076,6 +1086,7 @@ func (client PrivateLinkServicesClient) ListPrivateEndpointConnections(ctx conte result.peclr, err = client.ListPrivateEndpointConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListPrivateEndpointConnections", resp, "Failure responding to request") + return } if result.peclr.hasNextLink() && result.peclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1140,6 +1151,7 @@ func (client PrivateLinkServicesClient) listPrivateEndpointConnectionsNextResult result, err = client.ListPrivateEndpointConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listPrivateEndpointConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1194,6 +1206,7 @@ func (client PrivateLinkServicesClient) UpdatePrivateEndpointConnection(ctx cont result, err = client.UpdatePrivateEndpointConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "UpdatePrivateEndpointConnection", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/profiles.go b/services/network/mgmt/2019-11-01/network/profiles.go index f9c4987bd494..4adf9cda609b 100644 --- a/services/network/mgmt/2019-11-01/network/profiles.go +++ b/services/network/mgmt/2019-11-01/network/profiles.go @@ -73,6 +73,7 @@ func (client ProfilesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -226,6 +227,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +306,7 @@ func (client ProfilesClient) List(ctx context.Context, resourceGroupName string) result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +370,7 @@ func (client ProfilesClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +420,7 @@ func (client ProfilesClient) ListAll(ctx context.Context) (result ProfileListRes result.plr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "ListAll", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +483,7 @@ func (client ProfilesClient) listAllNextResults(ctx context.Context, lastResults result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +536,7 @@ func (client ProfilesClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/publicipaddresses.go b/services/network/mgmt/2019-11-01/network/publicipaddresses.go index 5f34243de9db..08bf76916529 100644 --- a/services/network/mgmt/2019-11-01/network/publicipaddresses.go +++ b/services/network/mgmt/2019-11-01/network/publicipaddresses.go @@ -239,6 +239,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -404,6 +406,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -467,6 +470,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -516,6 +520,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -578,6 +583,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -631,6 +637,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -695,6 +702,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -751,6 +759,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -818,6 +827,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -870,6 +880,7 @@ func (client PublicIPAddressesClient) UpdateTags(ctx context.Context, resourceGr result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/publicipprefixes.go b/services/network/mgmt/2019-11-01/network/publicipprefixes.go index ee54f81fbba1..690e0e18ced3 100644 --- a/services/network/mgmt/2019-11-01/network/publicipprefixes.go +++ b/services/network/mgmt/2019-11-01/network/publicipprefixes.go @@ -227,6 +227,7 @@ func (client PublicIPPrefixesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client PublicIPPrefixesClient) List(ctx context.Context, resourceGroupName result.piplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "List", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client PublicIPPrefixesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client PublicIPPrefixesClient) ListAll(ctx context.Context) (result Public result.piplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "ListAll", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client PublicIPPrefixesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +536,7 @@ func (client PublicIPPrefixesClient) UpdateTags(ctx context.Context, resourceGro result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/resourcenavigationlinks.go b/services/network/mgmt/2019-11-01/network/resourcenavigationlinks.go index 1118a11996c6..53c04caadd1f 100644 --- a/services/network/mgmt/2019-11-01/network/resourcenavigationlinks.go +++ b/services/network/mgmt/2019-11-01/network/resourcenavigationlinks.go @@ -74,6 +74,7 @@ func (client ResourceNavigationLinksClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ResourceNavigationLinksClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/routefilterrules.go b/services/network/mgmt/2019-11-01/network/routefilterrules.go index 4141987d26fc..c0b6b1f77a94 100644 --- a/services/network/mgmt/2019-11-01/network/routefilterrules.go +++ b/services/network/mgmt/2019-11-01/network/routefilterrules.go @@ -241,6 +241,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/routefilters.go b/services/network/mgmt/2019-11-01/network/routefilters.go index 816cfa4f4837..15fee1b35104 100644 --- a/services/network/mgmt/2019-11-01/network/routefilters.go +++ b/services/network/mgmt/2019-11-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client RouteFiltersClient) UpdateTags(ctx context.Context, resourceGroupNa result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/routes.go b/services/network/mgmt/2019-11-01/network/routes.go index ceccc23ccb56..9fa11e44daf0 100644 --- a/services/network/mgmt/2019-11-01/network/routes.go +++ b/services/network/mgmt/2019-11-01/network/routes.go @@ -230,6 +230,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/routetables.go b/services/network/mgmt/2019-11-01/network/routetables.go index a985a99ec5b7..248eef8bebee 100644 --- a/services/network/mgmt/2019-11-01/network/routetables.go +++ b/services/network/mgmt/2019-11-01/network/routetables.go @@ -226,6 +226,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client RouteTablesClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/securitygroups.go b/services/network/mgmt/2019-11-01/network/securitygroups.go index 3fd41303d2e0..9b9a1971db1e 100644 --- a/services/network/mgmt/2019-11-01/network/securitygroups.go +++ b/services/network/mgmt/2019-11-01/network/securitygroups.go @@ -226,6 +226,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client SecurityGroupsClient) UpdateTags(ctx context.Context, resourceGroup result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/securityrules.go b/services/network/mgmt/2019-11-01/network/securityrules.go index ad62ec681897..6167e7d43d5d 100644 --- a/services/network/mgmt/2019-11-01/network/securityrules.go +++ b/services/network/mgmt/2019-11-01/network/securityrules.go @@ -230,6 +230,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/serviceassociationlinks.go b/services/network/mgmt/2019-11-01/network/serviceassociationlinks.go index aeca21e771f9..4ca399dffc44 100644 --- a/services/network/mgmt/2019-11-01/network/serviceassociationlinks.go +++ b/services/network/mgmt/2019-11-01/network/serviceassociationlinks.go @@ -74,6 +74,7 @@ func (client ServiceAssociationLinksClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceAssociationLinksClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/serviceendpointpolicies.go b/services/network/mgmt/2019-11-01/network/serviceendpointpolicies.go index 449339f6b3a4..a212f91febeb 100644 --- a/services/network/mgmt/2019-11-01/network/serviceendpointpolicies.go +++ b/services/network/mgmt/2019-11-01/network/serviceendpointpolicies.go @@ -227,6 +227,7 @@ func (client ServiceEndpointPoliciesClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client ServiceEndpointPoliciesClient) List(ctx context.Context) (result Se result.seplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "List", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -365,6 +367,7 @@ func (client ServiceEndpointPoliciesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Cont result.seplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client ServiceEndpointPoliciesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +536,7 @@ func (client ServiceEndpointPoliciesClient) UpdateTags(ctx context.Context, reso result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2019-11-01/network/serviceendpointpolicydefinitions.go index 90d558bf1790..8e3aeeaa3fe9 100644 --- a/services/network/mgmt/2019-11-01/network/serviceendpointpolicydefinitions.go +++ b/services/network/mgmt/2019-11-01/network/serviceendpointpolicydefinitions.go @@ -232,6 +232,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) ListByResourceGroup(ctx con result.sepdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sepdlr.hasNextLink() && result.sepdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) listByResourceGroupNextResu result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/servicetags.go b/services/network/mgmt/2019-11-01/network/servicetags.go index 3fd71ba62f2a..0c63ed70df06 100644 --- a/services/network/mgmt/2019-11-01/network/servicetags.go +++ b/services/network/mgmt/2019-11-01/network/servicetags.go @@ -73,6 +73,7 @@ func (client ServiceTagsClient) List(ctx context.Context, location string) (resu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceTagsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/subnets.go b/services/network/mgmt/2019-11-01/network/subnets.go index 8dab09e19bd5..5054cbaa468b 100644 --- a/services/network/mgmt/2019-11-01/network/subnets.go +++ b/services/network/mgmt/2019-11-01/network/subnets.go @@ -231,6 +231,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/usages.go b/services/network/mgmt/2019-11-01/network/usages.go index 00cb0f9de2dd..b503cbf0723b 100644 --- a/services/network/mgmt/2019-11-01/network/usages.go +++ b/services/network/mgmt/2019-11-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/virtualhubroutetablev2s.go b/services/network/mgmt/2019-11-01/network/virtualhubroutetablev2s.go index 2262924fda00..99f706477497 100644 --- a/services/network/mgmt/2019-11-01/network/virtualhubroutetablev2s.go +++ b/services/network/mgmt/2019-11-01/network/virtualhubroutetablev2s.go @@ -232,6 +232,7 @@ func (client VirtualHubRouteTableV2sClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client VirtualHubRouteTableV2sClient) List(ctx context.Context, resourceGr result.lvhrtvr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "List", resp, "Failure responding to request") + return } if result.lvhrtvr.hasNextLink() && result.lvhrtvr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client VirtualHubRouteTableV2sClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/virtualhubs.go b/services/network/mgmt/2019-11-01/network/virtualhubs.go index 38c3ea472b36..9190dcd3ef68 100644 --- a/services/network/mgmt/2019-11-01/network/virtualhubs.go +++ b/services/network/mgmt/2019-11-01/network/virtualhubs.go @@ -225,6 +225,7 @@ func (client VirtualHubsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualHubsClient) List(ctx context.Context) (result ListVirtualHub result.lvhr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "List", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualHubsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualHubsClient) ListByResourceGroup(ctx context.Context, resourc result.lvhr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualHubsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +531,7 @@ func (client VirtualHubsClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2019-11-01/network/virtualnetworkgatewayconnections.go index 43784fc5c20d..15fc593b1fbb 100644 --- a/services/network/mgmt/2019-11-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2019-11-01/network/virtualnetworkgatewayconnections.go @@ -240,6 +240,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -392,6 +394,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -455,6 +458,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/virtualnetworkgateways.go b/services/network/mgmt/2019-11-01/network/virtualnetworkgateways.go index 155faf1ec3a8..ff7fe91d762f 100644 --- a/services/network/mgmt/2019-11-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2019-11-01/network/virtualnetworkgateways.go @@ -469,6 +469,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -1006,6 +1007,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1069,6 +1071,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1121,6 +1124,7 @@ func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, result.vnglcr, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return } if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1185,6 +1189,7 @@ func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx contex result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1637,6 +1642,7 @@ func (client VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Conte result, err = client.SupportedVpnDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", resp, "Failure responding to request") + return } return @@ -1792,6 +1798,7 @@ func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx cont result, err = client.VpnDeviceConfigurationScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2019-11-01/network/virtualnetworkpeerings.go index 108449c8d99a..fe07f1e212c7 100644 --- a/services/network/mgmt/2019-11-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2019-11-01/network/virtualnetworkpeerings.go @@ -232,6 +232,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/virtualnetworks.go b/services/network/mgmt/2019-11-01/network/virtualnetworks.go index df36542b03d2..55fe66984031 100644 --- a/services/network/mgmt/2019-11-01/network/virtualnetworks.go +++ b/services/network/mgmt/2019-11-01/network/virtualnetworks.go @@ -74,6 +74,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -313,6 +314,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -503,6 +507,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -565,6 +570,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -617,6 +623,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -681,6 +688,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } @@ -733,6 +741,7 @@ func (client VirtualNetworksClient) UpdateTags(ctx context.Context, resourceGrou result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/virtualnetworktaps.go b/services/network/mgmt/2019-11-01/network/virtualnetworktaps.go index d1693697877d..0ccd3a2a43c5 100644 --- a/services/network/mgmt/2019-11-01/network/virtualnetworktaps.go +++ b/services/network/mgmt/2019-11-01/network/virtualnetworktaps.go @@ -258,6 +258,7 @@ func (client VirtualNetworkTapsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "Get", resp, "Failure responding to request") + return } return @@ -331,6 +332,7 @@ func (client VirtualNetworkTapsClient) ListAll(ctx context.Context) (result Virt result.vntlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListAll", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -393,6 +395,7 @@ func (client VirtualNetworkTapsClient) listAllNextResults(ctx context.Context, l result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -444,6 +447,7 @@ func (client VirtualNetworkTapsClient) ListByResourceGroup(ctx context.Context, result.vntlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -507,6 +511,7 @@ func (client VirtualNetworkTapsClient) listByResourceGroupNextResults(ctx contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -559,6 +564,7 @@ func (client VirtualNetworkTapsClient) UpdateTags(ctx context.Context, resourceG result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/virtualrouterpeerings.go b/services/network/mgmt/2019-11-01/network/virtualrouterpeerings.go index 4c99ea4960ef..d001ffa34e36 100644 --- a/services/network/mgmt/2019-11-01/network/virtualrouterpeerings.go +++ b/services/network/mgmt/2019-11-01/network/virtualrouterpeerings.go @@ -244,6 +244,7 @@ func (client VirtualRouterPeeringsClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client VirtualRouterPeeringsClient) List(ctx context.Context, resourceGrou result.vrplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vrplr.hasNextLink() && result.vrplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client VirtualRouterPeeringsClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/virtualrouters.go b/services/network/mgmt/2019-11-01/network/virtualrouters.go index e9ef48748fb3..95c785d83e12 100644 --- a/services/network/mgmt/2019-11-01/network/virtualrouters.go +++ b/services/network/mgmt/2019-11-01/network/virtualrouters.go @@ -238,6 +238,7 @@ func (client VirtualRoutersClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client VirtualRoutersClient) List(ctx context.Context) (result VirtualRout result.vrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "List", resp, "Failure responding to request") + return } if result.vrlr.hasNextLink() && result.vrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -376,6 +378,7 @@ func (client VirtualRoutersClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -427,6 +430,7 @@ func (client VirtualRoutersClient) ListByResourceGroup(ctx context.Context, reso result.vrlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vrlr.hasNextLink() && result.vrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -490,6 +494,7 @@ func (client VirtualRoutersClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/virtualwans.go b/services/network/mgmt/2019-11-01/network/virtualwans.go index a43c999b85bf..6f5da419b7ce 100644 --- a/services/network/mgmt/2019-11-01/network/virtualwans.go +++ b/services/network/mgmt/2019-11-01/network/virtualwans.go @@ -225,6 +225,7 @@ func (client VirtualWansClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualWansClient) List(ctx context.Context) (result ListVirtualWAN result.lvwnr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "List", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualWansClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualWansClient) ListByResourceGroup(ctx context.Context, resourc result.lvwnr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualWansClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +531,7 @@ func (client VirtualWansClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/vpnconnections.go b/services/network/mgmt/2019-11-01/network/vpnconnections.go index 7e4e84d5bfe7..0a0f54392861 100644 --- a/services/network/mgmt/2019-11-01/network/vpnconnections.go +++ b/services/network/mgmt/2019-11-01/network/vpnconnections.go @@ -231,6 +231,7 @@ func (client VpnConnectionsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VpnConnectionsClient) ListByVpnGateway(ctx context.Context, resourc result.lvcr, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "ListByVpnGateway", resp, "Failure responding to request") + return } if result.lvcr.hasNextLink() && result.lvcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VpnConnectionsClient) listByVpnGatewayNextResults(ctx context.Conte result, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "listByVpnGatewayNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/vpngateways.go b/services/network/mgmt/2019-11-01/network/vpngateways.go index 326adde8c334..21dc5e3ba479 100644 --- a/services/network/mgmt/2019-11-01/network/vpngateways.go +++ b/services/network/mgmt/2019-11-01/network/vpngateways.go @@ -225,6 +225,7 @@ func (client VpnGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnGatewaysClient) List(ctx context.Context) (result ListVpnGateway result.lvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnGatewaysClient) ListByResourceGroup(ctx context.Context, resourc result.lvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnGatewaysClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -601,6 +606,7 @@ func (client VpnGatewaysClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/vpnlinkconnections.go b/services/network/mgmt/2019-11-01/network/vpnlinkconnections.go index 44ed0abc9ada..586ca9b5c129 100644 --- a/services/network/mgmt/2019-11-01/network/vpnlinkconnections.go +++ b/services/network/mgmt/2019-11-01/network/vpnlinkconnections.go @@ -75,6 +75,7 @@ func (client VpnLinkConnectionsClient) ListByVpnConnection(ctx context.Context, result.lvslcr, err = client.ListByVpnConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnLinkConnectionsClient", "ListByVpnConnection", resp, "Failure responding to request") + return } if result.lvslcr.hasNextLink() && result.lvslcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -140,6 +141,7 @@ func (client VpnLinkConnectionsClient) listByVpnConnectionNextResults(ctx contex result, err = client.ListByVpnConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnLinkConnectionsClient", "listByVpnConnectionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/vpnserverconfigurations.go b/services/network/mgmt/2019-11-01/network/vpnserverconfigurations.go index f782e9d48aa0..988fcfa19fdb 100644 --- a/services/network/mgmt/2019-11-01/network/vpnserverconfigurations.go +++ b/services/network/mgmt/2019-11-01/network/vpnserverconfigurations.go @@ -227,6 +227,7 @@ func (client VpnServerConfigurationsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client VpnServerConfigurationsClient) List(ctx context.Context) (result Li result.lvscr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lvscr.hasNextLink() && result.lvscr.IsEmpty() { err = result.NextWithContext(ctx) @@ -362,6 +364,7 @@ func (client VpnServerConfigurationsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client VpnServerConfigurationsClient) ListByResourceGroup(ctx context.Cont result.lvscr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvscr.hasNextLink() && result.lvscr.IsEmpty() { err = result.NextWithContext(ctx) @@ -476,6 +480,7 @@ func (client VpnServerConfigurationsClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -528,6 +533,7 @@ func (client VpnServerConfigurationsClient) UpdateTags(ctx context.Context, reso result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/vpnsitelinkconnections.go b/services/network/mgmt/2019-11-01/network/vpnsitelinkconnections.go index 8b737cbfdc62..03ddeef2dc70 100644 --- a/services/network/mgmt/2019-11-01/network/vpnsitelinkconnections.go +++ b/services/network/mgmt/2019-11-01/network/vpnsitelinkconnections.go @@ -75,6 +75,7 @@ func (client VpnSiteLinkConnectionsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinkConnectionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/vpnsitelinks.go b/services/network/mgmt/2019-11-01/network/vpnsitelinks.go index aff7f2a01eac..8c0c5153dcce 100644 --- a/services/network/mgmt/2019-11-01/network/vpnsitelinks.go +++ b/services/network/mgmt/2019-11-01/network/vpnsitelinks.go @@ -73,6 +73,7 @@ func (client VpnSiteLinksClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client VpnSiteLinksClient) ListByVpnSite(ctx context.Context, resourceGrou result.lvslr, err = client.ListByVpnSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "ListByVpnSite", resp, "Failure responding to request") + return } if result.lvslr.hasNextLink() && result.lvslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -214,6 +216,7 @@ func (client VpnSiteLinksClient) listByVpnSiteNextResults(ctx context.Context, l result, err = client.ListByVpnSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "listByVpnSiteNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-11-01/network/vpnsites.go b/services/network/mgmt/2019-11-01/network/vpnsites.go index 5049a2fe4bff..695a6319015f 100644 --- a/services/network/mgmt/2019-11-01/network/vpnsites.go +++ b/services/network/mgmt/2019-11-01/network/vpnsites.go @@ -225,6 +225,7 @@ func (client VpnSitesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnSitesClient) List(ctx context.Context) (result ListVpnSitesResul result.lvsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "List", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnSitesClient) listNextResults(ctx context.Context, lastResults Li result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnSitesClient) ListByResourceGroup(ctx context.Context, resourceGr result.lvsr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnSitesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +531,7 @@ func (client VpnSitesClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/watchers.go b/services/network/mgmt/2019-11-01/network/watchers.go index bed693d402f2..95e235150e25 100644 --- a/services/network/mgmt/2019-11-01/network/watchers.go +++ b/services/network/mgmt/2019-11-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -313,6 +314,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -736,6 +738,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -1068,6 +1071,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -1139,6 +1143,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return @@ -1380,6 +1385,7 @@ func (client WatchersClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-11-01/network/webapplicationfirewallpolicies.go b/services/network/mgmt/2019-11-01/network/webapplicationfirewallpolicies.go index 49e132a0e831..a06f58cdeda6 100644 --- a/services/network/mgmt/2019-11-01/network/webapplicationfirewallpolicies.go +++ b/services/network/mgmt/2019-11-01/network/webapplicationfirewallpolicies.go @@ -94,6 +94,7 @@ func (client WebApplicationFirewallPoliciesClient) CreateOrUpdate(ctx context.Co result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -258,6 +259,7 @@ func (client WebApplicationFirewallPoliciesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -333,6 +335,7 @@ func (client WebApplicationFirewallPoliciesClient) List(ctx context.Context, res result.wafplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "List", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -396,6 +399,7 @@ func (client WebApplicationFirewallPoliciesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +449,7 @@ func (client WebApplicationFirewallPoliciesClient) ListAll(ctx context.Context) result.wafplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "ListAll", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -507,6 +512,7 @@ func (client WebApplicationFirewallPoliciesClient) listAllNextResults(ctx contex result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/applicationgateways.go b/services/network/mgmt/2019-12-01/network/applicationgateways.go index f75707da1839..5b31cab63d3d 100644 --- a/services/network/mgmt/2019-12-01/network/applicationgateways.go +++ b/services/network/mgmt/2019-12-01/network/applicationgateways.go @@ -417,6 +417,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -491,6 +492,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte result, err = client.GetSslPredefinedPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return } return @@ -565,6 +567,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -628,6 +631,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -677,6 +681,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -739,6 +744,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -787,6 +793,7 @@ func (client ApplicationGatewaysClient) ListAvailableRequestHeaders(ctx context. result, err = client.ListAvailableRequestHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableRequestHeaders", resp, "Failure responding to request") + return } return @@ -857,6 +864,7 @@ func (client ApplicationGatewaysClient) ListAvailableResponseHeaders(ctx context result, err = client.ListAvailableResponseHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableResponseHeaders", resp, "Failure responding to request") + return } return @@ -927,6 +935,7 @@ func (client ApplicationGatewaysClient) ListAvailableServerVariables(ctx context result, err = client.ListAvailableServerVariablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableServerVariables", resp, "Failure responding to request") + return } return @@ -997,6 +1006,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont result, err = client.ListAvailableSslOptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return } return @@ -1068,6 +1078,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return } if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { err = result.NextWithContext(ctx) @@ -1130,6 +1141,7 @@ func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextRe result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1178,6 +1190,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return @@ -1400,6 +1413,7 @@ func (client ApplicationGatewaysClient) UpdateTags(ctx context.Context, resource result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/applicationsecuritygroups.go b/services/network/mgmt/2019-12-01/network/applicationsecuritygroups.go index d93a4fe354c6..e7daa041ddc5 100644 --- a/services/network/mgmt/2019-12-01/network/applicationsecuritygroups.go +++ b/services/network/mgmt/2019-12-01/network/applicationsecuritygroups.go @@ -226,6 +226,7 @@ func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resource result.asglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ApplicationSecurityGroupsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (resu result.asglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ApplicationSecurityGroupsClient) listAllNextResults(ctx context.Con result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -527,6 +532,7 @@ func (client ApplicationSecurityGroupsClient) UpdateTags(ctx context.Context, re result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/availabledelegations.go b/services/network/mgmt/2019-12-01/network/availabledelegations.go index 609069ce891d..764f354f12a6 100644 --- a/services/network/mgmt/2019-12-01/network/availabledelegations.go +++ b/services/network/mgmt/2019-12-01/network/availabledelegations.go @@ -73,6 +73,7 @@ func (client AvailableDelegationsClient) List(ctx context.Context, location stri result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableDelegationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/availableendpointservices.go b/services/network/mgmt/2019-12-01/network/availableendpointservices.go index 078375b74269..312f8017529d 100644 --- a/services/network/mgmt/2019-12-01/network/availableendpointservices.go +++ b/services/network/mgmt/2019-12-01/network/availableendpointservices.go @@ -73,6 +73,7 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableEndpointServicesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/availableprivateendpointtypes.go b/services/network/mgmt/2019-12-01/network/availableprivateendpointtypes.go index 00786f9f2875..10d352bf868d 100644 --- a/services/network/mgmt/2019-12-01/network/availableprivateendpointtypes.go +++ b/services/network/mgmt/2019-12-01/network/availableprivateendpointtypes.go @@ -73,6 +73,7 @@ func (client AvailablePrivateEndpointTypesClient) List(ctx context.Context, loca result.apetr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "List", resp, "Failure responding to request") + return } if result.apetr.hasNextLink() && result.apetr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailablePrivateEndpointTypesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -189,6 +191,7 @@ func (client AvailablePrivateEndpointTypesClient) ListByResourceGroup(ctx contex result.apetr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.apetr.hasNextLink() && result.apetr.IsEmpty() { err = result.NextWithContext(ctx) @@ -253,6 +256,7 @@ func (client AvailablePrivateEndpointTypesClient) listByResourceGroupNextResults result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2019-12-01/network/availableresourcegroupdelegations.go index 453262a2beca..53907432acc8 100644 --- a/services/network/mgmt/2019-12-01/network/availableresourcegroupdelegations.go +++ b/services/network/mgmt/2019-12-01/network/availableresourcegroupdelegations.go @@ -75,6 +75,7 @@ func (client AvailableResourceGroupDelegationsClient) List(ctx context.Context, result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client AvailableResourceGroupDelegationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/availableservicealiases.go b/services/network/mgmt/2019-12-01/network/availableservicealiases.go index b6d902794c48..bffe3adf24d6 100644 --- a/services/network/mgmt/2019-12-01/network/availableservicealiases.go +++ b/services/network/mgmt/2019-12-01/network/availableservicealiases.go @@ -73,6 +73,7 @@ func (client AvailableServiceAliasesClient) List(ctx context.Context, location s result.asar, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "List", resp, "Failure responding to request") + return } if result.asar.hasNextLink() && result.asar.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableServiceAliasesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -188,6 +190,7 @@ func (client AvailableServiceAliasesClient) ListByResourceGroup(ctx context.Cont result.asar, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.asar.hasNextLink() && result.asar.IsEmpty() { err = result.NextWithContext(ctx) @@ -252,6 +255,7 @@ func (client AvailableServiceAliasesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2019-12-01/network/azurefirewallfqdntags.go index e2e3fd6016da..cc65433aa44b 100644 --- a/services/network/mgmt/2019-12-01/network/azurefirewallfqdntags.go +++ b/services/network/mgmt/2019-12-01/network/azurefirewallfqdntags.go @@ -71,6 +71,7 @@ func (client AzureFirewallFqdnTagsClient) ListAll(ctx context.Context) (result A result.afftlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "ListAll", resp, "Failure responding to request") + return } if result.afftlr.hasNextLink() && result.afftlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client AzureFirewallFqdnTagsClient) listAllNextResults(ctx context.Context result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/azurefirewalls.go b/services/network/mgmt/2019-12-01/network/azurefirewalls.go index 1680061b22cb..4a93dc12b412 100644 --- a/services/network/mgmt/2019-12-01/network/azurefirewalls.go +++ b/services/network/mgmt/2019-12-01/network/azurefirewalls.go @@ -233,6 +233,7 @@ func (client AzureFirewallsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client AzureFirewallsClient) List(ctx context.Context, resourceGroupName s result.aflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "List", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client AzureFirewallsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -420,6 +423,7 @@ func (client AzureFirewallsClient) ListAll(ctx context.Context) (result AzureFir result.aflr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "ListAll", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -482,6 +486,7 @@ func (client AzureFirewallsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -534,6 +539,7 @@ func (client AzureFirewallsClient) UpdateTags(ctx context.Context, resourceGroup result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/bastionhosts.go b/services/network/mgmt/2019-12-01/network/bastionhosts.go index 71c0365e464c..b25732035d1a 100644 --- a/services/network/mgmt/2019-12-01/network/bastionhosts.go +++ b/services/network/mgmt/2019-12-01/network/bastionhosts.go @@ -225,6 +225,7 @@ func (client BastionHostsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client BastionHostsClient) List(ctx context.Context) (result BastionHostLi result.bhlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "List", resp, "Failure responding to request") + return } if result.bhlr.hasNextLink() && result.bhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client BastionHostsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client BastionHostsClient) ListByResourceGroup(ctx context.Context, resour result.bhlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.bhlr.hasNextLink() && result.bhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client BastionHostsClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/bgpservicecommunities.go b/services/network/mgmt/2019-12-01/network/bgpservicecommunities.go index d91004b4c1ed..ba265a447ca5 100644 --- a/services/network/mgmt/2019-12-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2019-12-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/client.go b/services/network/mgmt/2019-12-01/network/client.go index b7ddd8feb2ae..65c0b4cac1f3 100644 --- a/services/network/mgmt/2019-12-01/network/client.go +++ b/services/network/mgmt/2019-12-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return @@ -241,6 +242,7 @@ func (client BaseClient) DisconnectActiveSessions(ctx context.Context, resourceG result.bsdr, err = client.DisconnectActiveSessionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "DisconnectActiveSessions", resp, "Failure responding to request") + return } if result.bsdr.hasNextLink() && result.bsdr.IsEmpty() { err = result.NextWithContext(ctx) @@ -307,6 +309,7 @@ func (client BaseClient) disconnectActiveSessionsNextResults(ctx context.Context result, err = client.DisconnectActiveSessionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "disconnectActiveSessionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -555,6 +558,7 @@ func (client BaseClient) GetBastionShareableLink(ctx context.Context, resourceGr result.bsllr, err = client.GetBastionShareableLinkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "GetBastionShareableLink", resp, "Failure responding to request") + return } if result.bsllr.hasNextLink() && result.bsllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -621,6 +625,7 @@ func (client BaseClient) getBastionShareableLinkNextResults(ctx context.Context, result, err = client.GetBastionShareableLinkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "getBastionShareableLinkNextResults", resp, "Failure responding to next results request") + return } return } @@ -791,6 +796,7 @@ func (client BaseClient) SupportedSecurityProviders(ctx context.Context, resourc result, err = client.SupportedSecurityProvidersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "SupportedSecurityProviders", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/connectionmonitors.go b/services/network/mgmt/2019-12-01/network/connectionmonitors.go index 12bc1774299b..ae3cf241d6b1 100644 --- a/services/network/mgmt/2019-12-01/network/connectionmonitors.go +++ b/services/network/mgmt/2019-12-01/network/connectionmonitors.go @@ -240,6 +240,7 @@ func (client ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client ConnectionMonitorsClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure responding to request") + return } return @@ -622,6 +624,7 @@ func (client ConnectionMonitorsClient) UpdateTags(ctx context.Context, resourceG result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/ddoscustompolicies.go b/services/network/mgmt/2019-12-01/network/ddoscustompolicies.go index e99212343e27..f27434070113 100644 --- a/services/network/mgmt/2019-12-01/network/ddoscustompolicies.go +++ b/services/network/mgmt/2019-12-01/network/ddoscustompolicies.go @@ -226,6 +226,7 @@ func (client DdosCustomPoliciesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DdosCustomPoliciesClient) UpdateTags(ctx context.Context, resourceG result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/ddosprotectionplans.go b/services/network/mgmt/2019-12-01/network/ddosprotectionplans.go index 3aeadb11756b..c17b592ba5de 100644 --- a/services/network/mgmt/2019-12-01/network/ddosprotectionplans.go +++ b/services/network/mgmt/2019-12-01/network/ddosprotectionplans.go @@ -229,6 +229,7 @@ func (client DdosProtectionPlansClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DdosProtectionPlansClient) List(ctx context.Context) (result DdosPr result.dpplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client DdosProtectionPlansClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, result.dpplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client DdosProtectionPlansClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client DdosProtectionPlansClient) UpdateTags(ctx context.Context, resource result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/defaultsecurityrules.go b/services/network/mgmt/2019-12-01/network/defaultsecurityrules.go index de732b8b8b25..af5fccd584d7 100644 --- a/services/network/mgmt/2019-12-01/network/defaultsecurityrules.go +++ b/services/network/mgmt/2019-12-01/network/defaultsecurityrules.go @@ -74,6 +74,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2019-12-01/network/expressroutecircuitauthorizations.go index 839136f82a4f..ecb386781a58 100644 --- a/services/network/mgmt/2019-12-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2019-12-01/network/expressroutecircuitauthorizations.go @@ -234,6 +234,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2019-12-01/network/expressroutecircuitconnections.go index 7fe6d076cc29..16d7e8490472 100644 --- a/services/network/mgmt/2019-12-01/network/expressroutecircuitconnections.go +++ b/services/network/mgmt/2019-12-01/network/expressroutecircuitconnections.go @@ -238,6 +238,7 @@ func (client ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ExpressRouteCircuitConnectionsClient) List(ctx context.Context, res result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client ExpressRouteCircuitConnectionsClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2019-12-01/network/expressroutecircuitpeerings.go index 7b126d379854..b53ca3a625e4 100644 --- a/services/network/mgmt/2019-12-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2019-12-01/network/expressroutecircuitpeerings.go @@ -244,6 +244,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/expressroutecircuits.go b/services/network/mgmt/2019-12-01/network/expressroutecircuits.go index 82a12ef50a88..71dde1c752c7 100644 --- a/services/network/mgmt/2019-12-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2019-12-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -918,6 +925,7 @@ func (client ExpressRouteCircuitsClient) UpdateTags(ctx context.Context, resourc result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/expressrouteconnections.go b/services/network/mgmt/2019-12-01/network/expressrouteconnections.go index 0cdc5f6607e5..c468a3ea9344 100644 --- a/services/network/mgmt/2019-12-01/network/expressrouteconnections.go +++ b/services/network/mgmt/2019-12-01/network/expressrouteconnections.go @@ -239,6 +239,7 @@ func (client ExpressRouteConnectionsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client ExpressRouteConnectionsClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2019-12-01/network/expressroutecrossconnectionpeerings.go index 20238adb12fe..e1429d3a5d12 100644 --- a/services/network/mgmt/2019-12-01/network/expressroutecrossconnectionpeerings.go +++ b/services/network/mgmt/2019-12-01/network/expressroutecrossconnectionpeerings.go @@ -245,6 +245,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context result.erccpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "List", resp, "Failure responding to request") + return } if result.erccpl.hasNextLink() && result.erccpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) listNextResults(ctx cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/expressroutecrossconnections.go b/services/network/mgmt/2019-12-01/network/expressroutecrossconnections.go index 9cc0ca448282..122b196778f3 100644 --- a/services/network/mgmt/2019-12-01/network/expressroutecrossconnections.go +++ b/services/network/mgmt/2019-12-01/network/expressroutecrossconnections.go @@ -152,6 +152,7 @@ func (client ExpressRouteCrossConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ExpressRouteCrossConnectionsClient) List(ctx context.Context) (resu result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -287,6 +289,7 @@ func (client ExpressRouteCrossConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -418,6 +421,7 @@ func (client ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context result.ercclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +485,7 @@ func (client ExpressRouteCrossConnectionsClient) listByResourceGroupNextResults( result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -693,6 +698,7 @@ func (client ExpressRouteCrossConnectionsClient) UpdateTags(ctx context.Context, result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/expressroutegateways.go b/services/network/mgmt/2019-12-01/network/expressroutegateways.go index 40303af9ce3c..b8d4435236ce 100644 --- a/services/network/mgmt/2019-12-01/network/expressroutegateways.go +++ b/services/network/mgmt/2019-12-01/network/expressroutegateways.go @@ -235,6 +235,7 @@ func (client ExpressRouteGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client ExpressRouteGatewaysClient) ListByResourceGroup(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -380,6 +382,7 @@ func (client ExpressRouteGatewaysClient) ListBySubscription(ctx context.Context) result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/expressroutelinks.go b/services/network/mgmt/2019-12-01/network/expressroutelinks.go index d4cddeb0e462..21f74495ba3a 100644 --- a/services/network/mgmt/2019-12-01/network/expressroutelinks.go +++ b/services/network/mgmt/2019-12-01/network/expressroutelinks.go @@ -74,6 +74,7 @@ func (client ExpressRouteLinksClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ExpressRouteLinksClient) List(ctx context.Context, resourceGroupNam result.erllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "List", resp, "Failure responding to request") + return } if result.erllr.hasNextLink() && result.erllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client ExpressRouteLinksClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/expressrouteports.go b/services/network/mgmt/2019-12-01/network/expressrouteports.go index 49961047e566..f2bfa9c1675e 100644 --- a/services/network/mgmt/2019-12-01/network/expressrouteports.go +++ b/services/network/mgmt/2019-12-01/network/expressrouteports.go @@ -226,6 +226,7 @@ func (client ExpressRoutePortsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client ExpressRoutePortsClient) List(ctx context.Context) (result ExpressR result.erplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "List", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -361,6 +363,7 @@ func (client ExpressRoutePortsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, r result.erplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ExpressRoutePortsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -527,6 +532,7 @@ func (client ExpressRoutePortsClient) UpdateTags(ctx context.Context, resourceGr result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/expressrouteportslocations.go b/services/network/mgmt/2019-12-01/network/expressrouteportslocations.go index 408ef8b52f00..f2ce2acfb18a 100644 --- a/services/network/mgmt/2019-12-01/network/expressrouteportslocations.go +++ b/services/network/mgmt/2019-12-01/network/expressrouteportslocations.go @@ -73,6 +73,7 @@ func (client ExpressRoutePortsLocationsClient) Get(ctx context.Context, location result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client ExpressRoutePortsLocationsClient) List(ctx context.Context) (result result.erpllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "List", resp, "Failure responding to request") + return } if result.erpllr.hasNextLink() && result.erpllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -208,6 +210,7 @@ func (client ExpressRoutePortsLocationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2019-12-01/network/expressrouteserviceproviders.go index f2398cc6a951..43907f065560 100644 --- a/services/network/mgmt/2019-12-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2019-12-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/firewallpolicies.go b/services/network/mgmt/2019-12-01/network/firewallpolicies.go index b721799c8f57..95882ac10243 100644 --- a/services/network/mgmt/2019-12-01/network/firewallpolicies.go +++ b/services/network/mgmt/2019-12-01/network/firewallpolicies.go @@ -227,6 +227,7 @@ func (client FirewallPoliciesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client FirewallPoliciesClient) List(ctx context.Context, resourceGroupName result.fplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "List", resp, "Failure responding to request") + return } if result.fplr.hasNextLink() && result.fplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client FirewallPoliciesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client FirewallPoliciesClient) ListAll(ctx context.Context) (result Firewa result.fplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "ListAll", resp, "Failure responding to request") + return } if result.fplr.hasNextLink() && result.fplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client FirewallPoliciesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/firewallpolicyrulegroups.go b/services/network/mgmt/2019-12-01/network/firewallpolicyrulegroups.go index 5e0687a19a0a..d0d34e428b37 100644 --- a/services/network/mgmt/2019-12-01/network/firewallpolicyrulegroups.go +++ b/services/network/mgmt/2019-12-01/network/firewallpolicyrulegroups.go @@ -244,6 +244,7 @@ func (client FirewallPolicyRuleGroupsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client FirewallPolicyRuleGroupsClient) List(ctx context.Context, resourceG result.fprglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "List", resp, "Failure responding to request") + return } if result.fprglr.hasNextLink() && result.fprglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client FirewallPolicyRuleGroupsClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/flowlogs.go b/services/network/mgmt/2019-12-01/network/flowlogs.go index 9460cf85af20..c84737bf6cac 100644 --- a/services/network/mgmt/2019-12-01/network/flowlogs.go +++ b/services/network/mgmt/2019-12-01/network/flowlogs.go @@ -240,6 +240,7 @@ func (client FlowLogsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client FlowLogsClient) List(ctx context.Context, resourceGroupName string, result.fllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "List", resp, "Failure responding to request") + return } if result.fllr.hasNextLink() && result.fllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client FlowLogsClient) listNextResults(ctx context.Context, lastResults Fl result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2019-12-01/network/hubvirtualnetworkconnections.go index 71211b51ac47..f40c953fefd0 100644 --- a/services/network/mgmt/2019-12-01/network/hubvirtualnetworkconnections.go +++ b/services/network/mgmt/2019-12-01/network/hubvirtualnetworkconnections.go @@ -74,6 +74,7 @@ func (client HubVirtualNetworkConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client HubVirtualNetworkConnectionsClient) List(ctx context.Context, resou result.lhvncr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "List", resp, "Failure responding to request") + return } if result.lhvncr.hasNextLink() && result.lhvncr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client HubVirtualNetworkConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/inboundnatrules.go b/services/network/mgmt/2019-12-01/network/inboundnatrules.go index 8f7a9b548589..e6cc94e83ebc 100644 --- a/services/network/mgmt/2019-12-01/network/inboundnatrules.go +++ b/services/network/mgmt/2019-12-01/network/inboundnatrules.go @@ -252,6 +252,7 @@ func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -332,6 +333,7 @@ func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName result.inrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return } if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -396,6 +398,7 @@ func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/interfaceipconfigurations.go b/services/network/mgmt/2019-12-01/network/interfaceipconfigurations.go index 616fdedc8b8d..ec28850d7439 100644 --- a/services/network/mgmt/2019-12-01/network/interfaceipconfigurations.go +++ b/services/network/mgmt/2019-12-01/network/interfaceipconfigurations.go @@ -74,6 +74,7 @@ func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resource result.iiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/interfaceloadbalancers.go b/services/network/mgmt/2019-12-01/network/interfaceloadbalancers.go index e69a6ab881d4..aad3e65d7cd1 100644 --- a/services/network/mgmt/2019-12-01/network/interfaceloadbalancers.go +++ b/services/network/mgmt/2019-12-01/network/interfaceloadbalancers.go @@ -74,6 +74,7 @@ func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGro result.ilblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/interfacesgroup.go b/services/network/mgmt/2019-12-01/network/interfacesgroup.go index 5436e2a5f9a8..4310b6a51aa2 100644 --- a/services/network/mgmt/2019-12-01/network/interfacesgroup.go +++ b/services/network/mgmt/2019-12-01/network/interfacesgroup.go @@ -226,6 +226,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -384,6 +385,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx cont result, err = client.GetVirtualMachineScaleSetIPConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure responding to request") + return } return @@ -468,6 +470,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -548,6 +551,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -611,6 +615,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -660,6 +665,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -722,6 +728,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -853,6 +860,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx co result.iiclr, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -922,6 +930,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetIPConfigurationsNextRes result, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -974,6 +983,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1038,6 +1048,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1092,6 +1103,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1157,6 +1169,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1209,6 +1222,7 @@ func (client InterfacesClient) UpdateTags(ctx context.Context, resourceGroupName result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/interfacetapconfigurations.go b/services/network/mgmt/2019-12-01/network/interfacetapconfigurations.go index 4e608d1856a9..6e9ff9bc4cdf 100644 --- a/services/network/mgmt/2019-12-01/network/interfacetapconfigurations.go +++ b/services/network/mgmt/2019-12-01/network/interfacetapconfigurations.go @@ -268,6 +268,7 @@ func (client InterfaceTapConfigurationsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +346,7 @@ func (client InterfaceTapConfigurationsClient) List(ctx context.Context, resourc result.itclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.itclr.hasNextLink() && result.itclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -409,6 +411,7 @@ func (client InterfaceTapConfigurationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/ipgroups.go b/services/network/mgmt/2019-12-01/network/ipgroups.go index 52baef70e720..5900cb4ad055 100644 --- a/services/network/mgmt/2019-12-01/network/ipgroups.go +++ b/services/network/mgmt/2019-12-01/network/ipgroups.go @@ -227,6 +227,7 @@ func (client IPGroupsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client IPGroupsClient) List(ctx context.Context) (result IPGroupListResult result.iglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "List", resp, "Failure responding to request") + return } if result.iglr.hasNextLink() && result.iglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -365,6 +367,7 @@ func (client IPGroupsClient) listNextResults(ctx context.Context, lastResults IP result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client IPGroupsClient) ListByResourceGroup(ctx context.Context, resourceGr result.iglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.iglr.hasNextLink() && result.iglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client IPGroupsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +536,7 @@ func (client IPGroupsClient) UpdateGroups(ctx context.Context, resourceGroupName result, err = client.UpdateGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "UpdateGroups", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2019-12-01/network/loadbalancerbackendaddresspools.go index 1f8727568383..77de91faf394 100644 --- a/services/network/mgmt/2019-12-01/network/loadbalancerbackendaddresspools.go +++ b/services/network/mgmt/2019-12-01/network/loadbalancerbackendaddresspools.go @@ -74,6 +74,7 @@ func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, re result.lbbaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return } if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2019-12-01/network/loadbalancerfrontendipconfigurations.go index 0b2b2d0f8c37..dfe845db3ffa 100644 --- a/services/network/mgmt/2019-12-01/network/loadbalancerfrontendipconfigurations.go +++ b/services/network/mgmt/2019-12-01/network/loadbalancerfrontendipconfigurations.go @@ -75,6 +75,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Contex result.lbficlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2019-12-01/network/loadbalancerloadbalancingrules.go index 6432ad91ee08..5e3911aa34a6 100644 --- a/services/network/mgmt/2019-12-01/network/loadbalancerloadbalancingrules.go +++ b/services/network/mgmt/2019-12-01/network/loadbalancerloadbalancingrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, res result.lblbrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return } if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2019-12-01/network/loadbalancernetworkinterfaces.go index e005daefe50b..d6fc49e2e892 100644 --- a/services/network/mgmt/2019-12-01/network/loadbalancernetworkinterfaces.go +++ b/services/network/mgmt/2019-12-01/network/loadbalancernetworkinterfaces.go @@ -74,6 +74,7 @@ func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, reso result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2019-12-01/network/loadbalanceroutboundrules.go index e0b2e45985d2..253da2882518 100644 --- a/services/network/mgmt/2019-12-01/network/loadbalanceroutboundrules.go +++ b/services/network/mgmt/2019-12-01/network/loadbalanceroutboundrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerOutboundRulesClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerOutboundRulesClient) List(ctx context.Context, resource result.lborlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "List", resp, "Failure responding to request") + return } if result.lborlr.hasNextLink() && result.lborlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerOutboundRulesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/loadbalancerprobes.go b/services/network/mgmt/2019-12-01/network/loadbalancerprobes.go index be080ada6f94..e8d2b7ca49d5 100644 --- a/services/network/mgmt/2019-12-01/network/loadbalancerprobes.go +++ b/services/network/mgmt/2019-12-01/network/loadbalancerprobes.go @@ -74,6 +74,7 @@ func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupNa result.lbplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return } if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/loadbalancers.go b/services/network/mgmt/2019-12-01/network/loadbalancers.go index 951d459594e5..803ec7c51d2c 100644 --- a/services/network/mgmt/2019-12-01/network/loadbalancers.go +++ b/services/network/mgmt/2019-12-01/network/loadbalancers.go @@ -226,6 +226,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client LoadBalancersClient) UpdateTags(ctx context.Context, resourceGroupN result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/localnetworkgateways.go b/services/network/mgmt/2019-12-01/network/localnetworkgateways.go index 7fb5734295d5..ee4d54567799 100644 --- a/services/network/mgmt/2019-12-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2019-12-01/network/localnetworkgateways.go @@ -247,6 +247,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +446,7 @@ func (client LocalNetworkGatewaysClient) UpdateTags(ctx context.Context, resourc result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/natgateways.go b/services/network/mgmt/2019-12-01/network/natgateways.go index 5fca49626d5f..b50ef789f958 100644 --- a/services/network/mgmt/2019-12-01/network/natgateways.go +++ b/services/network/mgmt/2019-12-01/network/natgateways.go @@ -226,6 +226,7 @@ func (client NatGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client NatGatewaysClient) List(ctx context.Context, resourceGroupName stri result.nglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "List", resp, "Failure responding to request") + return } if result.nglr.hasNextLink() && result.nglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client NatGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client NatGatewaysClient) ListAll(ctx context.Context) (result NatGatewayL result.nglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.nglr.hasNextLink() && result.nglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client NatGatewaysClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client NatGatewaysClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/operations.go b/services/network/mgmt/2019-12-01/network/operations.go index 00161f184645..9dc4618453a7 100644 --- a/services/network/mgmt/2019-12-01/network/operations.go +++ b/services/network/mgmt/2019-12-01/network/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/p2svpngateways.go b/services/network/mgmt/2019-12-01/network/p2svpngateways.go index 01922f1b194f..bc8ea2875ffd 100644 --- a/services/network/mgmt/2019-12-01/network/p2svpngateways.go +++ b/services/network/mgmt/2019-12-01/network/p2svpngateways.go @@ -381,6 +381,7 @@ func (client P2sVpnGatewaysClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -609,6 +610,7 @@ func (client P2sVpnGatewaysClient) List(ctx context.Context) (result ListP2SVpnG result.lpvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -671,6 +673,7 @@ func (client P2sVpnGatewaysClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -722,6 +725,7 @@ func (client P2sVpnGatewaysClient) ListByResourceGroup(ctx context.Context, reso result.lpvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -785,6 +789,7 @@ func (client P2sVpnGatewaysClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -837,6 +842,7 @@ func (client P2sVpnGatewaysClient) UpdateTags(ctx context.Context, resourceGroup result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/packetcaptures.go b/services/network/mgmt/2019-12-01/network/packetcaptures.go index be929c373f72..c2b32166dbd5 100644 --- a/services/network/mgmt/2019-12-01/network/packetcaptures.go +++ b/services/network/mgmt/2019-12-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/peerexpressroutecircuitconnections.go b/services/network/mgmt/2019-12-01/network/peerexpressroutecircuitconnections.go index 242938a80ef2..7fca182a06c1 100644 --- a/services/network/mgmt/2019-12-01/network/peerexpressroutecircuitconnections.go +++ b/services/network/mgmt/2019-12-01/network/peerexpressroutecircuitconnections.go @@ -76,6 +76,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) List(ctx context.Context, result.percclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.percclr.hasNextLink() && result.percclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -220,6 +222,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) listNextResults(ctx conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/privateendpoints.go b/services/network/mgmt/2019-12-01/network/privateendpoints.go index 0b4ad4955459..4dc40d97daba 100644 --- a/services/network/mgmt/2019-12-01/network/privateendpoints.go +++ b/services/network/mgmt/2019-12-01/network/privateendpoints.go @@ -227,6 +227,7 @@ func (client PrivateEndpointsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client PrivateEndpointsClient) List(ctx context.Context, resourceGroupName result.pelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "List", resp, "Failure responding to request") + return } if result.pelr.hasNextLink() && result.pelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client PrivateEndpointsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client PrivateEndpointsClient) ListBySubscription(ctx context.Context) (re result.pelr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.pelr.hasNextLink() && result.pelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client PrivateEndpointsClient) listBySubscriptionNextResults(ctx context.C result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/privatelinkservices.go b/services/network/mgmt/2019-12-01/network/privatelinkservices.go index 51d06dd82199..5b5bf34a375f 100644 --- a/services/network/mgmt/2019-12-01/network/privatelinkservices.go +++ b/services/network/mgmt/2019-12-01/network/privatelinkservices.go @@ -458,6 +458,7 @@ func (client PrivateLinkServicesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -539,6 +540,7 @@ func (client PrivateLinkServicesClient) GetPrivateEndpointConnection(ctx context result, err = client.GetPrivateEndpointConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "GetPrivateEndpointConnection", resp, "Failure responding to request") + return } return @@ -618,6 +620,7 @@ func (client PrivateLinkServicesClient) List(ctx context.Context, resourceGroupN result.plslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "List", resp, "Failure responding to request") + return } if result.plslr.hasNextLink() && result.plslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -681,6 +684,7 @@ func (client PrivateLinkServicesClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -733,6 +737,7 @@ func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServices(ctx result.aaplsr, err = client.ListAutoApprovedPrivateLinkServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServices", resp, "Failure responding to request") + return } if result.aaplsr.hasNextLink() && result.aaplsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -796,6 +801,7 @@ func (client PrivateLinkServicesClient) listAutoApprovedPrivateLinkServicesNextR result, err = client.ListAutoApprovedPrivateLinkServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesNextResults", resp, "Failure responding to next results request") + return } return } @@ -849,6 +855,7 @@ func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByRes result.aaplsr, err = client.ListAutoApprovedPrivateLinkServicesByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServicesByResourceGroup", resp, "Failure responding to request") + return } if result.aaplsr.hasNextLink() && result.aaplsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -913,6 +920,7 @@ func (client PrivateLinkServicesClient) listAutoApprovedPrivateLinkServicesByRes result, err = client.ListAutoApprovedPrivateLinkServicesByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -962,6 +970,7 @@ func (client PrivateLinkServicesClient) ListBySubscription(ctx context.Context) result.plslr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.plslr.hasNextLink() && result.plslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1024,6 +1033,7 @@ func (client PrivateLinkServicesClient) listBySubscriptionNextResults(ctx contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1076,6 +1086,7 @@ func (client PrivateLinkServicesClient) ListPrivateEndpointConnections(ctx conte result.peclr, err = client.ListPrivateEndpointConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListPrivateEndpointConnections", resp, "Failure responding to request") + return } if result.peclr.hasNextLink() && result.peclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1140,6 +1151,7 @@ func (client PrivateLinkServicesClient) listPrivateEndpointConnectionsNextResult result, err = client.ListPrivateEndpointConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listPrivateEndpointConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1194,6 +1206,7 @@ func (client PrivateLinkServicesClient) UpdatePrivateEndpointConnection(ctx cont result, err = client.UpdatePrivateEndpointConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "UpdatePrivateEndpointConnection", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/profiles.go b/services/network/mgmt/2019-12-01/network/profiles.go index d4331eef9960..7bb1ce3873bd 100644 --- a/services/network/mgmt/2019-12-01/network/profiles.go +++ b/services/network/mgmt/2019-12-01/network/profiles.go @@ -73,6 +73,7 @@ func (client ProfilesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -226,6 +227,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +306,7 @@ func (client ProfilesClient) List(ctx context.Context, resourceGroupName string) result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +370,7 @@ func (client ProfilesClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +420,7 @@ func (client ProfilesClient) ListAll(ctx context.Context) (result ProfileListRes result.plr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "ListAll", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +483,7 @@ func (client ProfilesClient) listAllNextResults(ctx context.Context, lastResults result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +536,7 @@ func (client ProfilesClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/publicipaddresses.go b/services/network/mgmt/2019-12-01/network/publicipaddresses.go index 45b487b14fd8..4248413b5a1a 100644 --- a/services/network/mgmt/2019-12-01/network/publicipaddresses.go +++ b/services/network/mgmt/2019-12-01/network/publicipaddresses.go @@ -239,6 +239,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -404,6 +406,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -467,6 +470,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -516,6 +520,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -578,6 +583,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -631,6 +637,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -695,6 +702,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -751,6 +759,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -818,6 +827,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -870,6 +880,7 @@ func (client PublicIPAddressesClient) UpdateTags(ctx context.Context, resourceGr result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/publicipprefixes.go b/services/network/mgmt/2019-12-01/network/publicipprefixes.go index 4a641e27674c..1d6ed40373bc 100644 --- a/services/network/mgmt/2019-12-01/network/publicipprefixes.go +++ b/services/network/mgmt/2019-12-01/network/publicipprefixes.go @@ -227,6 +227,7 @@ func (client PublicIPPrefixesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client PublicIPPrefixesClient) List(ctx context.Context, resourceGroupName result.piplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "List", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client PublicIPPrefixesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client PublicIPPrefixesClient) ListAll(ctx context.Context) (result Public result.piplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "ListAll", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client PublicIPPrefixesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +536,7 @@ func (client PublicIPPrefixesClient) UpdateTags(ctx context.Context, resourceGro result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/resourcenavigationlinks.go b/services/network/mgmt/2019-12-01/network/resourcenavigationlinks.go index 83c8b10521c2..f9ef0f45ee84 100644 --- a/services/network/mgmt/2019-12-01/network/resourcenavigationlinks.go +++ b/services/network/mgmt/2019-12-01/network/resourcenavigationlinks.go @@ -74,6 +74,7 @@ func (client ResourceNavigationLinksClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ResourceNavigationLinksClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/routefilterrules.go b/services/network/mgmt/2019-12-01/network/routefilterrules.go index 8c6d96a912c2..fbe54c24957a 100644 --- a/services/network/mgmt/2019-12-01/network/routefilterrules.go +++ b/services/network/mgmt/2019-12-01/network/routefilterrules.go @@ -241,6 +241,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/routefilters.go b/services/network/mgmt/2019-12-01/network/routefilters.go index 12fab346e30e..5884136aa30f 100644 --- a/services/network/mgmt/2019-12-01/network/routefilters.go +++ b/services/network/mgmt/2019-12-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client RouteFiltersClient) UpdateTags(ctx context.Context, resourceGroupNa result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/routes.go b/services/network/mgmt/2019-12-01/network/routes.go index 1df731f0657d..19d292f437db 100644 --- a/services/network/mgmt/2019-12-01/network/routes.go +++ b/services/network/mgmt/2019-12-01/network/routes.go @@ -230,6 +230,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/routetables.go b/services/network/mgmt/2019-12-01/network/routetables.go index 55f51bc8e531..5ac5551ec7ce 100644 --- a/services/network/mgmt/2019-12-01/network/routetables.go +++ b/services/network/mgmt/2019-12-01/network/routetables.go @@ -226,6 +226,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client RouteTablesClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/securitygroups.go b/services/network/mgmt/2019-12-01/network/securitygroups.go index 4fda0a386685..30b434c5088b 100644 --- a/services/network/mgmt/2019-12-01/network/securitygroups.go +++ b/services/network/mgmt/2019-12-01/network/securitygroups.go @@ -226,6 +226,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client SecurityGroupsClient) UpdateTags(ctx context.Context, resourceGroup result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/securityrules.go b/services/network/mgmt/2019-12-01/network/securityrules.go index 6e7b595a4821..86bfa7476b86 100644 --- a/services/network/mgmt/2019-12-01/network/securityrules.go +++ b/services/network/mgmt/2019-12-01/network/securityrules.go @@ -230,6 +230,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/serviceassociationlinks.go b/services/network/mgmt/2019-12-01/network/serviceassociationlinks.go index 1eaa4682e998..e2b4bf1ead23 100644 --- a/services/network/mgmt/2019-12-01/network/serviceassociationlinks.go +++ b/services/network/mgmt/2019-12-01/network/serviceassociationlinks.go @@ -74,6 +74,7 @@ func (client ServiceAssociationLinksClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceAssociationLinksClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/serviceendpointpolicies.go b/services/network/mgmt/2019-12-01/network/serviceendpointpolicies.go index dd54281cb595..6c1f61caadf0 100644 --- a/services/network/mgmt/2019-12-01/network/serviceendpointpolicies.go +++ b/services/network/mgmt/2019-12-01/network/serviceendpointpolicies.go @@ -227,6 +227,7 @@ func (client ServiceEndpointPoliciesClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client ServiceEndpointPoliciesClient) List(ctx context.Context) (result Se result.seplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "List", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -365,6 +367,7 @@ func (client ServiceEndpointPoliciesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Cont result.seplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client ServiceEndpointPoliciesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +536,7 @@ func (client ServiceEndpointPoliciesClient) UpdateTags(ctx context.Context, reso result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2019-12-01/network/serviceendpointpolicydefinitions.go index d48bf0d19c76..de33000e7a1a 100644 --- a/services/network/mgmt/2019-12-01/network/serviceendpointpolicydefinitions.go +++ b/services/network/mgmt/2019-12-01/network/serviceendpointpolicydefinitions.go @@ -232,6 +232,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) ListByResourceGroup(ctx con result.sepdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sepdlr.hasNextLink() && result.sepdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) listByResourceGroupNextResu result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/servicetags.go b/services/network/mgmt/2019-12-01/network/servicetags.go index 6d32e6e29909..3dc3c8160f2c 100644 --- a/services/network/mgmt/2019-12-01/network/servicetags.go +++ b/services/network/mgmt/2019-12-01/network/servicetags.go @@ -73,6 +73,7 @@ func (client ServiceTagsClient) List(ctx context.Context, location string) (resu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceTagsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/subnets.go b/services/network/mgmt/2019-12-01/network/subnets.go index a7e4d8df884c..aa183af7d82c 100644 --- a/services/network/mgmt/2019-12-01/network/subnets.go +++ b/services/network/mgmt/2019-12-01/network/subnets.go @@ -231,6 +231,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/usages.go b/services/network/mgmt/2019-12-01/network/usages.go index 4c338852dda6..c7cc0bc78037 100644 --- a/services/network/mgmt/2019-12-01/network/usages.go +++ b/services/network/mgmt/2019-12-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/virtualappliances.go b/services/network/mgmt/2019-12-01/network/virtualappliances.go index 38af420217c3..6af1e14198ca 100644 --- a/services/network/mgmt/2019-12-01/network/virtualappliances.go +++ b/services/network/mgmt/2019-12-01/network/virtualappliances.go @@ -239,6 +239,7 @@ func (client VirtualAppliancesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client VirtualAppliancesClient) List(ctx context.Context) (result VirtualA result.valr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "List", resp, "Failure responding to request") + return } if result.valr.hasNextLink() && result.valr.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +379,7 @@ func (client VirtualAppliancesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -428,6 +431,7 @@ func (client VirtualAppliancesClient) ListByResourceGroup(ctx context.Context, r result.valr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.valr.hasNextLink() && result.valr.IsEmpty() { err = result.NextWithContext(ctx) @@ -491,6 +495,7 @@ func (client VirtualAppliancesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -543,6 +548,7 @@ func (client VirtualAppliancesClient) UpdateTags(ctx context.Context, resourceGr result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/virtualhubroutetablev2s.go b/services/network/mgmt/2019-12-01/network/virtualhubroutetablev2s.go index 6471ece23d11..56decfba2215 100644 --- a/services/network/mgmt/2019-12-01/network/virtualhubroutetablev2s.go +++ b/services/network/mgmt/2019-12-01/network/virtualhubroutetablev2s.go @@ -232,6 +232,7 @@ func (client VirtualHubRouteTableV2sClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client VirtualHubRouteTableV2sClient) List(ctx context.Context, resourceGr result.lvhrtvr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "List", resp, "Failure responding to request") + return } if result.lvhrtvr.hasNextLink() && result.lvhrtvr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client VirtualHubRouteTableV2sClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/virtualhubs.go b/services/network/mgmt/2019-12-01/network/virtualhubs.go index 29213b44adda..cc25043ae1d6 100644 --- a/services/network/mgmt/2019-12-01/network/virtualhubs.go +++ b/services/network/mgmt/2019-12-01/network/virtualhubs.go @@ -225,6 +225,7 @@ func (client VirtualHubsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualHubsClient) List(ctx context.Context) (result ListVirtualHub result.lvhr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "List", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualHubsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualHubsClient) ListByResourceGroup(ctx context.Context, resourc result.lvhr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualHubsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +531,7 @@ func (client VirtualHubsClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2019-12-01/network/virtualnetworkgatewayconnections.go index 16afc6d0f29b..b4139b074e75 100644 --- a/services/network/mgmt/2019-12-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2019-12-01/network/virtualnetworkgatewayconnections.go @@ -240,6 +240,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -392,6 +394,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -455,6 +458,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/virtualnetworkgateways.go b/services/network/mgmt/2019-12-01/network/virtualnetworkgateways.go index 167b92829172..1e37eb64b41f 100644 --- a/services/network/mgmt/2019-12-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2019-12-01/network/virtualnetworkgateways.go @@ -469,6 +469,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -1006,6 +1007,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1069,6 +1071,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1121,6 +1124,7 @@ func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, result.vnglcr, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return } if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1185,6 +1189,7 @@ func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx contex result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1637,6 +1642,7 @@ func (client VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Conte result, err = client.SupportedVpnDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", resp, "Failure responding to request") + return } return @@ -1792,6 +1798,7 @@ func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx cont result, err = client.VpnDeviceConfigurationScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2019-12-01/network/virtualnetworkpeerings.go index 4343c7b34e44..82f99c7514d4 100644 --- a/services/network/mgmt/2019-12-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2019-12-01/network/virtualnetworkpeerings.go @@ -232,6 +232,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/virtualnetworks.go b/services/network/mgmt/2019-12-01/network/virtualnetworks.go index a3d128acabaa..f6c7dbde1b7f 100644 --- a/services/network/mgmt/2019-12-01/network/virtualnetworks.go +++ b/services/network/mgmt/2019-12-01/network/virtualnetworks.go @@ -74,6 +74,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -313,6 +314,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -503,6 +507,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -565,6 +570,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -617,6 +623,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -681,6 +688,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } @@ -733,6 +741,7 @@ func (client VirtualNetworksClient) UpdateTags(ctx context.Context, resourceGrou result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/virtualnetworktaps.go b/services/network/mgmt/2019-12-01/network/virtualnetworktaps.go index b5d6350ae65c..cc14dc1a2d94 100644 --- a/services/network/mgmt/2019-12-01/network/virtualnetworktaps.go +++ b/services/network/mgmt/2019-12-01/network/virtualnetworktaps.go @@ -258,6 +258,7 @@ func (client VirtualNetworkTapsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "Get", resp, "Failure responding to request") + return } return @@ -331,6 +332,7 @@ func (client VirtualNetworkTapsClient) ListAll(ctx context.Context) (result Virt result.vntlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListAll", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -393,6 +395,7 @@ func (client VirtualNetworkTapsClient) listAllNextResults(ctx context.Context, l result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -444,6 +447,7 @@ func (client VirtualNetworkTapsClient) ListByResourceGroup(ctx context.Context, result.vntlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -507,6 +511,7 @@ func (client VirtualNetworkTapsClient) listByResourceGroupNextResults(ctx contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -559,6 +564,7 @@ func (client VirtualNetworkTapsClient) UpdateTags(ctx context.Context, resourceG result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/virtualrouterpeerings.go b/services/network/mgmt/2019-12-01/network/virtualrouterpeerings.go index 0f218eeada60..9c9fd6281a8b 100644 --- a/services/network/mgmt/2019-12-01/network/virtualrouterpeerings.go +++ b/services/network/mgmt/2019-12-01/network/virtualrouterpeerings.go @@ -244,6 +244,7 @@ func (client VirtualRouterPeeringsClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client VirtualRouterPeeringsClient) List(ctx context.Context, resourceGrou result.vrplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vrplr.hasNextLink() && result.vrplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client VirtualRouterPeeringsClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/virtualrouters.go b/services/network/mgmt/2019-12-01/network/virtualrouters.go index 2de6f4bd2877..30cbf0172a37 100644 --- a/services/network/mgmt/2019-12-01/network/virtualrouters.go +++ b/services/network/mgmt/2019-12-01/network/virtualrouters.go @@ -238,6 +238,7 @@ func (client VirtualRoutersClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client VirtualRoutersClient) List(ctx context.Context) (result VirtualRout result.vrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "List", resp, "Failure responding to request") + return } if result.vrlr.hasNextLink() && result.vrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -376,6 +378,7 @@ func (client VirtualRoutersClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -427,6 +430,7 @@ func (client VirtualRoutersClient) ListByResourceGroup(ctx context.Context, reso result.vrlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vrlr.hasNextLink() && result.vrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -490,6 +494,7 @@ func (client VirtualRoutersClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/virtualwans.go b/services/network/mgmt/2019-12-01/network/virtualwans.go index 3ab84bbcc978..f504fff1cba0 100644 --- a/services/network/mgmt/2019-12-01/network/virtualwans.go +++ b/services/network/mgmt/2019-12-01/network/virtualwans.go @@ -225,6 +225,7 @@ func (client VirtualWansClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualWansClient) List(ctx context.Context) (result ListVirtualWAN result.lvwnr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "List", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualWansClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualWansClient) ListByResourceGroup(ctx context.Context, resourc result.lvwnr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualWansClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +531,7 @@ func (client VirtualWansClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/vpnconnections.go b/services/network/mgmt/2019-12-01/network/vpnconnections.go index a86d2b720b4e..9203ed6d5b4b 100644 --- a/services/network/mgmt/2019-12-01/network/vpnconnections.go +++ b/services/network/mgmt/2019-12-01/network/vpnconnections.go @@ -231,6 +231,7 @@ func (client VpnConnectionsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VpnConnectionsClient) ListByVpnGateway(ctx context.Context, resourc result.lvcr, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "ListByVpnGateway", resp, "Failure responding to request") + return } if result.lvcr.hasNextLink() && result.lvcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VpnConnectionsClient) listByVpnGatewayNextResults(ctx context.Conte result, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "listByVpnGatewayNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/vpngateways.go b/services/network/mgmt/2019-12-01/network/vpngateways.go index 3a8ad64153cc..0877fe77210a 100644 --- a/services/network/mgmt/2019-12-01/network/vpngateways.go +++ b/services/network/mgmt/2019-12-01/network/vpngateways.go @@ -225,6 +225,7 @@ func (client VpnGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnGatewaysClient) List(ctx context.Context) (result ListVpnGateway result.lvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnGatewaysClient) ListByResourceGroup(ctx context.Context, resourc result.lvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnGatewaysClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -601,6 +606,7 @@ func (client VpnGatewaysClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/vpnlinkconnections.go b/services/network/mgmt/2019-12-01/network/vpnlinkconnections.go index 6f2ef1ded6a1..d6f81ae312b5 100644 --- a/services/network/mgmt/2019-12-01/network/vpnlinkconnections.go +++ b/services/network/mgmt/2019-12-01/network/vpnlinkconnections.go @@ -75,6 +75,7 @@ func (client VpnLinkConnectionsClient) ListByVpnConnection(ctx context.Context, result.lvslcr, err = client.ListByVpnConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnLinkConnectionsClient", "ListByVpnConnection", resp, "Failure responding to request") + return } if result.lvslcr.hasNextLink() && result.lvslcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -140,6 +141,7 @@ func (client VpnLinkConnectionsClient) listByVpnConnectionNextResults(ctx contex result, err = client.ListByVpnConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnLinkConnectionsClient", "listByVpnConnectionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/vpnserverconfigurations.go b/services/network/mgmt/2019-12-01/network/vpnserverconfigurations.go index 77e69635270c..97be4e775373 100644 --- a/services/network/mgmt/2019-12-01/network/vpnserverconfigurations.go +++ b/services/network/mgmt/2019-12-01/network/vpnserverconfigurations.go @@ -227,6 +227,7 @@ func (client VpnServerConfigurationsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client VpnServerConfigurationsClient) List(ctx context.Context) (result Li result.lvscr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lvscr.hasNextLink() && result.lvscr.IsEmpty() { err = result.NextWithContext(ctx) @@ -362,6 +364,7 @@ func (client VpnServerConfigurationsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client VpnServerConfigurationsClient) ListByResourceGroup(ctx context.Cont result.lvscr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvscr.hasNextLink() && result.lvscr.IsEmpty() { err = result.NextWithContext(ctx) @@ -476,6 +480,7 @@ func (client VpnServerConfigurationsClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -528,6 +533,7 @@ func (client VpnServerConfigurationsClient) UpdateTags(ctx context.Context, reso result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/vpnsitelinkconnections.go b/services/network/mgmt/2019-12-01/network/vpnsitelinkconnections.go index d3add4e66a0c..e95ad9eb0e8b 100644 --- a/services/network/mgmt/2019-12-01/network/vpnsitelinkconnections.go +++ b/services/network/mgmt/2019-12-01/network/vpnsitelinkconnections.go @@ -75,6 +75,7 @@ func (client VpnSiteLinkConnectionsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinkConnectionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/vpnsitelinks.go b/services/network/mgmt/2019-12-01/network/vpnsitelinks.go index 8006af74dbbe..2b25fe359aa9 100644 --- a/services/network/mgmt/2019-12-01/network/vpnsitelinks.go +++ b/services/network/mgmt/2019-12-01/network/vpnsitelinks.go @@ -73,6 +73,7 @@ func (client VpnSiteLinksClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client VpnSiteLinksClient) ListByVpnSite(ctx context.Context, resourceGrou result.lvslr, err = client.ListByVpnSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "ListByVpnSite", resp, "Failure responding to request") + return } if result.lvslr.hasNextLink() && result.lvslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -214,6 +216,7 @@ func (client VpnSiteLinksClient) listByVpnSiteNextResults(ctx context.Context, l result, err = client.ListByVpnSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "listByVpnSiteNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2019-12-01/network/vpnsites.go b/services/network/mgmt/2019-12-01/network/vpnsites.go index f801cbd8cb34..ce3ef88153c1 100644 --- a/services/network/mgmt/2019-12-01/network/vpnsites.go +++ b/services/network/mgmt/2019-12-01/network/vpnsites.go @@ -225,6 +225,7 @@ func (client VpnSitesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnSitesClient) List(ctx context.Context) (result ListVpnSitesResul result.lvsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "List", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnSitesClient) listNextResults(ctx context.Context, lastResults Li result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnSitesClient) ListByResourceGroup(ctx context.Context, resourceGr result.lvsr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnSitesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +531,7 @@ func (client VpnSitesClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/watchers.go b/services/network/mgmt/2019-12-01/network/watchers.go index 9759346b2872..5c6a5e579417 100644 --- a/services/network/mgmt/2019-12-01/network/watchers.go +++ b/services/network/mgmt/2019-12-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -313,6 +314,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -736,6 +738,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -1068,6 +1071,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -1139,6 +1143,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return @@ -1380,6 +1385,7 @@ func (client WatchersClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2019-12-01/network/webapplicationfirewallpolicies.go b/services/network/mgmt/2019-12-01/network/webapplicationfirewallpolicies.go index 87227f9ef975..1898ac5f4eac 100644 --- a/services/network/mgmt/2019-12-01/network/webapplicationfirewallpolicies.go +++ b/services/network/mgmt/2019-12-01/network/webapplicationfirewallpolicies.go @@ -94,6 +94,7 @@ func (client WebApplicationFirewallPoliciesClient) CreateOrUpdate(ctx context.Co result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -258,6 +259,7 @@ func (client WebApplicationFirewallPoliciesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -333,6 +335,7 @@ func (client WebApplicationFirewallPoliciesClient) List(ctx context.Context, res result.wafplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "List", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -396,6 +399,7 @@ func (client WebApplicationFirewallPoliciesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +449,7 @@ func (client WebApplicationFirewallPoliciesClient) ListAll(ctx context.Context) result.wafplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "ListAll", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -507,6 +512,7 @@ func (client WebApplicationFirewallPoliciesClient) listAllNextResults(ctx contex result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/applicationgateways.go b/services/network/mgmt/2020-03-01/network/applicationgateways.go index fd04c3ed5ae0..f2f53fca46b1 100644 --- a/services/network/mgmt/2020-03-01/network/applicationgateways.go +++ b/services/network/mgmt/2020-03-01/network/applicationgateways.go @@ -417,6 +417,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -491,6 +492,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte result, err = client.GetSslPredefinedPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return } return @@ -565,6 +567,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -628,6 +631,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -677,6 +681,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -739,6 +744,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -787,6 +793,7 @@ func (client ApplicationGatewaysClient) ListAvailableRequestHeaders(ctx context. result, err = client.ListAvailableRequestHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableRequestHeaders", resp, "Failure responding to request") + return } return @@ -857,6 +864,7 @@ func (client ApplicationGatewaysClient) ListAvailableResponseHeaders(ctx context result, err = client.ListAvailableResponseHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableResponseHeaders", resp, "Failure responding to request") + return } return @@ -927,6 +935,7 @@ func (client ApplicationGatewaysClient) ListAvailableServerVariables(ctx context result, err = client.ListAvailableServerVariablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableServerVariables", resp, "Failure responding to request") + return } return @@ -997,6 +1006,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont result, err = client.ListAvailableSslOptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return } return @@ -1068,6 +1078,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return } if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { err = result.NextWithContext(ctx) @@ -1130,6 +1141,7 @@ func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextRe result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1178,6 +1190,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return @@ -1400,6 +1413,7 @@ func (client ApplicationGatewaysClient) UpdateTags(ctx context.Context, resource result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/applicationsecuritygroups.go b/services/network/mgmt/2020-03-01/network/applicationsecuritygroups.go index 90d9b7ccf8b0..3c95a4b4a86a 100644 --- a/services/network/mgmt/2020-03-01/network/applicationsecuritygroups.go +++ b/services/network/mgmt/2020-03-01/network/applicationsecuritygroups.go @@ -226,6 +226,7 @@ func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resource result.asglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ApplicationSecurityGroupsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (resu result.asglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ApplicationSecurityGroupsClient) listAllNextResults(ctx context.Con result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -527,6 +532,7 @@ func (client ApplicationSecurityGroupsClient) UpdateTags(ctx context.Context, re result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/availabledelegations.go b/services/network/mgmt/2020-03-01/network/availabledelegations.go index acadcbbd9124..607d9ab94fdd 100644 --- a/services/network/mgmt/2020-03-01/network/availabledelegations.go +++ b/services/network/mgmt/2020-03-01/network/availabledelegations.go @@ -73,6 +73,7 @@ func (client AvailableDelegationsClient) List(ctx context.Context, location stri result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableDelegationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/availableendpointservices.go b/services/network/mgmt/2020-03-01/network/availableendpointservices.go index 8411dc31e52c..96bff2c264c0 100644 --- a/services/network/mgmt/2020-03-01/network/availableendpointservices.go +++ b/services/network/mgmt/2020-03-01/network/availableendpointservices.go @@ -73,6 +73,7 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableEndpointServicesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/availableprivateendpointtypes.go b/services/network/mgmt/2020-03-01/network/availableprivateendpointtypes.go index 9f8ce88b64ac..a1d1185bd5ca 100644 --- a/services/network/mgmt/2020-03-01/network/availableprivateendpointtypes.go +++ b/services/network/mgmt/2020-03-01/network/availableprivateendpointtypes.go @@ -73,6 +73,7 @@ func (client AvailablePrivateEndpointTypesClient) List(ctx context.Context, loca result.apetr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "List", resp, "Failure responding to request") + return } if result.apetr.hasNextLink() && result.apetr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailablePrivateEndpointTypesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -189,6 +191,7 @@ func (client AvailablePrivateEndpointTypesClient) ListByResourceGroup(ctx contex result.apetr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.apetr.hasNextLink() && result.apetr.IsEmpty() { err = result.NextWithContext(ctx) @@ -253,6 +256,7 @@ func (client AvailablePrivateEndpointTypesClient) listByResourceGroupNextResults result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2020-03-01/network/availableresourcegroupdelegations.go index 9b7dae215014..df8fe28ca2fc 100644 --- a/services/network/mgmt/2020-03-01/network/availableresourcegroupdelegations.go +++ b/services/network/mgmt/2020-03-01/network/availableresourcegroupdelegations.go @@ -75,6 +75,7 @@ func (client AvailableResourceGroupDelegationsClient) List(ctx context.Context, result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client AvailableResourceGroupDelegationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/availableservicealiases.go b/services/network/mgmt/2020-03-01/network/availableservicealiases.go index 1f24c5351b98..af37b3c1e3f0 100644 --- a/services/network/mgmt/2020-03-01/network/availableservicealiases.go +++ b/services/network/mgmt/2020-03-01/network/availableservicealiases.go @@ -73,6 +73,7 @@ func (client AvailableServiceAliasesClient) List(ctx context.Context, location s result.asar, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "List", resp, "Failure responding to request") + return } if result.asar.hasNextLink() && result.asar.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableServiceAliasesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -188,6 +190,7 @@ func (client AvailableServiceAliasesClient) ListByResourceGroup(ctx context.Cont result.asar, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.asar.hasNextLink() && result.asar.IsEmpty() { err = result.NextWithContext(ctx) @@ -252,6 +255,7 @@ func (client AvailableServiceAliasesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2020-03-01/network/azurefirewallfqdntags.go index 22d9390bddad..92fe409d0cc0 100644 --- a/services/network/mgmt/2020-03-01/network/azurefirewallfqdntags.go +++ b/services/network/mgmt/2020-03-01/network/azurefirewallfqdntags.go @@ -71,6 +71,7 @@ func (client AzureFirewallFqdnTagsClient) ListAll(ctx context.Context) (result A result.afftlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "ListAll", resp, "Failure responding to request") + return } if result.afftlr.hasNextLink() && result.afftlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client AzureFirewallFqdnTagsClient) listAllNextResults(ctx context.Context result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/azurefirewalls.go b/services/network/mgmt/2020-03-01/network/azurefirewalls.go index de07865bae72..c2186222db22 100644 --- a/services/network/mgmt/2020-03-01/network/azurefirewalls.go +++ b/services/network/mgmt/2020-03-01/network/azurefirewalls.go @@ -233,6 +233,7 @@ func (client AzureFirewallsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client AzureFirewallsClient) List(ctx context.Context, resourceGroupName s result.aflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "List", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client AzureFirewallsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -420,6 +423,7 @@ func (client AzureFirewallsClient) ListAll(ctx context.Context) (result AzureFir result.aflr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "ListAll", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -482,6 +486,7 @@ func (client AzureFirewallsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/bastionhosts.go b/services/network/mgmt/2020-03-01/network/bastionhosts.go index 90e623159bd2..38b4285a06ba 100644 --- a/services/network/mgmt/2020-03-01/network/bastionhosts.go +++ b/services/network/mgmt/2020-03-01/network/bastionhosts.go @@ -225,6 +225,7 @@ func (client BastionHostsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client BastionHostsClient) List(ctx context.Context) (result BastionHostLi result.bhlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "List", resp, "Failure responding to request") + return } if result.bhlr.hasNextLink() && result.bhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client BastionHostsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client BastionHostsClient) ListByResourceGroup(ctx context.Context, resour result.bhlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.bhlr.hasNextLink() && result.bhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client BastionHostsClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/bgpservicecommunities.go b/services/network/mgmt/2020-03-01/network/bgpservicecommunities.go index bac96dea78e4..bef43a54f82f 100644 --- a/services/network/mgmt/2020-03-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2020-03-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/client.go b/services/network/mgmt/2020-03-01/network/client.go index 0c6f61c7fc5d..c31e0b91405f 100644 --- a/services/network/mgmt/2020-03-01/network/client.go +++ b/services/network/mgmt/2020-03-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return @@ -241,6 +242,7 @@ func (client BaseClient) DisconnectActiveSessions(ctx context.Context, resourceG result.bsdr, err = client.DisconnectActiveSessionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "DisconnectActiveSessions", resp, "Failure responding to request") + return } if result.bsdr.hasNextLink() && result.bsdr.IsEmpty() { err = result.NextWithContext(ctx) @@ -307,6 +309,7 @@ func (client BaseClient) disconnectActiveSessionsNextResults(ctx context.Context result, err = client.DisconnectActiveSessionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "disconnectActiveSessionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -555,6 +558,7 @@ func (client BaseClient) GetBastionShareableLink(ctx context.Context, resourceGr result.bsllr, err = client.GetBastionShareableLinkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "GetBastionShareableLink", resp, "Failure responding to request") + return } if result.bsllr.hasNextLink() && result.bsllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -621,6 +625,7 @@ func (client BaseClient) getBastionShareableLinkNextResults(ctx context.Context, result, err = client.GetBastionShareableLinkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "getBastionShareableLinkNextResults", resp, "Failure responding to next results request") + return } return } @@ -791,6 +796,7 @@ func (client BaseClient) SupportedSecurityProviders(ctx context.Context, resourc result, err = client.SupportedSecurityProvidersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "SupportedSecurityProviders", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/connectionmonitors.go b/services/network/mgmt/2020-03-01/network/connectionmonitors.go index 82f4abd91aa7..0547f024b289 100644 --- a/services/network/mgmt/2020-03-01/network/connectionmonitors.go +++ b/services/network/mgmt/2020-03-01/network/connectionmonitors.go @@ -240,6 +240,7 @@ func (client ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client ConnectionMonitorsClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure responding to request") + return } return @@ -622,6 +624,7 @@ func (client ConnectionMonitorsClient) UpdateTags(ctx context.Context, resourceG result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/ddoscustompolicies.go b/services/network/mgmt/2020-03-01/network/ddoscustompolicies.go index 8c9decea4c15..7d306059bb85 100644 --- a/services/network/mgmt/2020-03-01/network/ddoscustompolicies.go +++ b/services/network/mgmt/2020-03-01/network/ddoscustompolicies.go @@ -226,6 +226,7 @@ func (client DdosCustomPoliciesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DdosCustomPoliciesClient) UpdateTags(ctx context.Context, resourceG result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/ddosprotectionplans.go b/services/network/mgmt/2020-03-01/network/ddosprotectionplans.go index 1c9e7d888c20..161fd4474e8b 100644 --- a/services/network/mgmt/2020-03-01/network/ddosprotectionplans.go +++ b/services/network/mgmt/2020-03-01/network/ddosprotectionplans.go @@ -229,6 +229,7 @@ func (client DdosProtectionPlansClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DdosProtectionPlansClient) List(ctx context.Context) (result DdosPr result.dpplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client DdosProtectionPlansClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, result.dpplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client DdosProtectionPlansClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client DdosProtectionPlansClient) UpdateTags(ctx context.Context, resource result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/defaultsecurityrules.go b/services/network/mgmt/2020-03-01/network/defaultsecurityrules.go index 2a933203faed..98be3064e853 100644 --- a/services/network/mgmt/2020-03-01/network/defaultsecurityrules.go +++ b/services/network/mgmt/2020-03-01/network/defaultsecurityrules.go @@ -74,6 +74,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2020-03-01/network/expressroutecircuitauthorizations.go index bba5242b3c3c..4d0f4fd41ceb 100644 --- a/services/network/mgmt/2020-03-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2020-03-01/network/expressroutecircuitauthorizations.go @@ -234,6 +234,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2020-03-01/network/expressroutecircuitconnections.go index 8c5e0eb619d4..8b5cbf03cf24 100644 --- a/services/network/mgmt/2020-03-01/network/expressroutecircuitconnections.go +++ b/services/network/mgmt/2020-03-01/network/expressroutecircuitconnections.go @@ -238,6 +238,7 @@ func (client ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ExpressRouteCircuitConnectionsClient) List(ctx context.Context, res result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client ExpressRouteCircuitConnectionsClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2020-03-01/network/expressroutecircuitpeerings.go index dd7ea388d5ef..72e53cf8669e 100644 --- a/services/network/mgmt/2020-03-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2020-03-01/network/expressroutecircuitpeerings.go @@ -244,6 +244,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/expressroutecircuits.go b/services/network/mgmt/2020-03-01/network/expressroutecircuits.go index 517f74cd73b7..9a9d87ef9437 100644 --- a/services/network/mgmt/2020-03-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2020-03-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -918,6 +925,7 @@ func (client ExpressRouteCircuitsClient) UpdateTags(ctx context.Context, resourc result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/expressrouteconnections.go b/services/network/mgmt/2020-03-01/network/expressrouteconnections.go index 830aedbdc670..c68f1b79261e 100644 --- a/services/network/mgmt/2020-03-01/network/expressrouteconnections.go +++ b/services/network/mgmt/2020-03-01/network/expressrouteconnections.go @@ -239,6 +239,7 @@ func (client ExpressRouteConnectionsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client ExpressRouteConnectionsClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2020-03-01/network/expressroutecrossconnectionpeerings.go index 0f58d7a941ef..9800815a4666 100644 --- a/services/network/mgmt/2020-03-01/network/expressroutecrossconnectionpeerings.go +++ b/services/network/mgmt/2020-03-01/network/expressroutecrossconnectionpeerings.go @@ -245,6 +245,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context result.erccpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "List", resp, "Failure responding to request") + return } if result.erccpl.hasNextLink() && result.erccpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) listNextResults(ctx cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/expressroutecrossconnections.go b/services/network/mgmt/2020-03-01/network/expressroutecrossconnections.go index 07192153379c..e1c5846f5525 100644 --- a/services/network/mgmt/2020-03-01/network/expressroutecrossconnections.go +++ b/services/network/mgmt/2020-03-01/network/expressroutecrossconnections.go @@ -152,6 +152,7 @@ func (client ExpressRouteCrossConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ExpressRouteCrossConnectionsClient) List(ctx context.Context) (resu result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -287,6 +289,7 @@ func (client ExpressRouteCrossConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -418,6 +421,7 @@ func (client ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context result.ercclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +485,7 @@ func (client ExpressRouteCrossConnectionsClient) listByResourceGroupNextResults( result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -693,6 +698,7 @@ func (client ExpressRouteCrossConnectionsClient) UpdateTags(ctx context.Context, result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/expressroutegateways.go b/services/network/mgmt/2020-03-01/network/expressroutegateways.go index a0e692a3e676..df9f2d943b4b 100644 --- a/services/network/mgmt/2020-03-01/network/expressroutegateways.go +++ b/services/network/mgmt/2020-03-01/network/expressroutegateways.go @@ -235,6 +235,7 @@ func (client ExpressRouteGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client ExpressRouteGatewaysClient) ListByResourceGroup(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -380,6 +382,7 @@ func (client ExpressRouteGatewaysClient) ListBySubscription(ctx context.Context) result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/expressroutelinks.go b/services/network/mgmt/2020-03-01/network/expressroutelinks.go index f9df4b3e44d7..b304f5d95ad9 100644 --- a/services/network/mgmt/2020-03-01/network/expressroutelinks.go +++ b/services/network/mgmt/2020-03-01/network/expressroutelinks.go @@ -74,6 +74,7 @@ func (client ExpressRouteLinksClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ExpressRouteLinksClient) List(ctx context.Context, resourceGroupNam result.erllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "List", resp, "Failure responding to request") + return } if result.erllr.hasNextLink() && result.erllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client ExpressRouteLinksClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/expressrouteports.go b/services/network/mgmt/2020-03-01/network/expressrouteports.go index a9dc26d4179a..cff41429f631 100644 --- a/services/network/mgmt/2020-03-01/network/expressrouteports.go +++ b/services/network/mgmt/2020-03-01/network/expressrouteports.go @@ -226,6 +226,7 @@ func (client ExpressRoutePortsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client ExpressRoutePortsClient) List(ctx context.Context) (result ExpressR result.erplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "List", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -361,6 +363,7 @@ func (client ExpressRoutePortsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, r result.erplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ExpressRoutePortsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -527,6 +532,7 @@ func (client ExpressRoutePortsClient) UpdateTags(ctx context.Context, resourceGr result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/expressrouteportslocations.go b/services/network/mgmt/2020-03-01/network/expressrouteportslocations.go index e939cf1d1968..4dba4b62ffc2 100644 --- a/services/network/mgmt/2020-03-01/network/expressrouteportslocations.go +++ b/services/network/mgmt/2020-03-01/network/expressrouteportslocations.go @@ -73,6 +73,7 @@ func (client ExpressRoutePortsLocationsClient) Get(ctx context.Context, location result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client ExpressRoutePortsLocationsClient) List(ctx context.Context) (result result.erpllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "List", resp, "Failure responding to request") + return } if result.erpllr.hasNextLink() && result.erpllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -208,6 +210,7 @@ func (client ExpressRoutePortsLocationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2020-03-01/network/expressrouteserviceproviders.go index d82224310e0b..9401bf027b79 100644 --- a/services/network/mgmt/2020-03-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2020-03-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/firewallpolicies.go b/services/network/mgmt/2020-03-01/network/firewallpolicies.go index cfd5cee00178..0aa71a60d875 100644 --- a/services/network/mgmt/2020-03-01/network/firewallpolicies.go +++ b/services/network/mgmt/2020-03-01/network/firewallpolicies.go @@ -227,6 +227,7 @@ func (client FirewallPoliciesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client FirewallPoliciesClient) List(ctx context.Context, resourceGroupName result.fplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "List", resp, "Failure responding to request") + return } if result.fplr.hasNextLink() && result.fplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client FirewallPoliciesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client FirewallPoliciesClient) ListAll(ctx context.Context) (result Firewa result.fplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "ListAll", resp, "Failure responding to request") + return } if result.fplr.hasNextLink() && result.fplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client FirewallPoliciesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/firewallpolicyrulegroups.go b/services/network/mgmt/2020-03-01/network/firewallpolicyrulegroups.go index 9f2e06521876..3252e882ca8a 100644 --- a/services/network/mgmt/2020-03-01/network/firewallpolicyrulegroups.go +++ b/services/network/mgmt/2020-03-01/network/firewallpolicyrulegroups.go @@ -244,6 +244,7 @@ func (client FirewallPolicyRuleGroupsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client FirewallPolicyRuleGroupsClient) List(ctx context.Context, resourceG result.fprglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "List", resp, "Failure responding to request") + return } if result.fprglr.hasNextLink() && result.fprglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client FirewallPolicyRuleGroupsClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/flowlogs.go b/services/network/mgmt/2020-03-01/network/flowlogs.go index ec3d4ea971ce..12b06063eec0 100644 --- a/services/network/mgmt/2020-03-01/network/flowlogs.go +++ b/services/network/mgmt/2020-03-01/network/flowlogs.go @@ -240,6 +240,7 @@ func (client FlowLogsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client FlowLogsClient) List(ctx context.Context, resourceGroupName string, result.fllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "List", resp, "Failure responding to request") + return } if result.fllr.hasNextLink() && result.fllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client FlowLogsClient) listNextResults(ctx context.Context, lastResults Fl result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2020-03-01/network/hubvirtualnetworkconnections.go index 4311dfcec6d6..5b1fb0790672 100644 --- a/services/network/mgmt/2020-03-01/network/hubvirtualnetworkconnections.go +++ b/services/network/mgmt/2020-03-01/network/hubvirtualnetworkconnections.go @@ -74,6 +74,7 @@ func (client HubVirtualNetworkConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client HubVirtualNetworkConnectionsClient) List(ctx context.Context, resou result.lhvncr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "List", resp, "Failure responding to request") + return } if result.lhvncr.hasNextLink() && result.lhvncr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client HubVirtualNetworkConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/inboundnatrules.go b/services/network/mgmt/2020-03-01/network/inboundnatrules.go index 58d947ab8546..976ce55163f1 100644 --- a/services/network/mgmt/2020-03-01/network/inboundnatrules.go +++ b/services/network/mgmt/2020-03-01/network/inboundnatrules.go @@ -252,6 +252,7 @@ func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -332,6 +333,7 @@ func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName result.inrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return } if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -396,6 +398,7 @@ func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/interfaceipconfigurations.go b/services/network/mgmt/2020-03-01/network/interfaceipconfigurations.go index b56f1f73c7e8..8870e2ec22f6 100644 --- a/services/network/mgmt/2020-03-01/network/interfaceipconfigurations.go +++ b/services/network/mgmt/2020-03-01/network/interfaceipconfigurations.go @@ -74,6 +74,7 @@ func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resource result.iiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/interfaceloadbalancers.go b/services/network/mgmt/2020-03-01/network/interfaceloadbalancers.go index 89bc9cd6a0a2..f90c65dca339 100644 --- a/services/network/mgmt/2020-03-01/network/interfaceloadbalancers.go +++ b/services/network/mgmt/2020-03-01/network/interfaceloadbalancers.go @@ -74,6 +74,7 @@ func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGro result.ilblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/interfacesgroup.go b/services/network/mgmt/2020-03-01/network/interfacesgroup.go index 2853b2a095a5..1e902b3056df 100644 --- a/services/network/mgmt/2020-03-01/network/interfacesgroup.go +++ b/services/network/mgmt/2020-03-01/network/interfacesgroup.go @@ -226,6 +226,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -384,6 +385,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx cont result, err = client.GetVirtualMachineScaleSetIPConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure responding to request") + return } return @@ -468,6 +470,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -548,6 +551,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -611,6 +615,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -660,6 +665,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -722,6 +728,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -853,6 +860,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx co result.iiclr, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -922,6 +930,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetIPConfigurationsNextRes result, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -974,6 +983,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1038,6 +1048,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1092,6 +1103,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1157,6 +1169,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1209,6 +1222,7 @@ func (client InterfacesClient) UpdateTags(ctx context.Context, resourceGroupName result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/interfacetapconfigurations.go b/services/network/mgmt/2020-03-01/network/interfacetapconfigurations.go index 6d51bca27793..6969370c4f49 100644 --- a/services/network/mgmt/2020-03-01/network/interfacetapconfigurations.go +++ b/services/network/mgmt/2020-03-01/network/interfacetapconfigurations.go @@ -268,6 +268,7 @@ func (client InterfaceTapConfigurationsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +346,7 @@ func (client InterfaceTapConfigurationsClient) List(ctx context.Context, resourc result.itclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.itclr.hasNextLink() && result.itclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -409,6 +411,7 @@ func (client InterfaceTapConfigurationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/ipallocations.go b/services/network/mgmt/2020-03-01/network/ipallocations.go index 11aadc780941..bbb5824fff16 100644 --- a/services/network/mgmt/2020-03-01/network/ipallocations.go +++ b/services/network/mgmt/2020-03-01/network/ipallocations.go @@ -226,6 +226,7 @@ func (client IPAllocationsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client IPAllocationsClient) List(ctx context.Context) (result IPAllocation result.ialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "List", resp, "Failure responding to request") + return } if result.ialr.hasNextLink() && result.ialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client IPAllocationsClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client IPAllocationsClient) ListByResourceGroup(ctx context.Context, resou result.ialr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ialr.hasNextLink() && result.ialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client IPAllocationsClient) listByResourceGroupNextResults(ctx context.Con result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client IPAllocationsClient) UpdateTags(ctx context.Context, resourceGroupN result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/ipgroups.go b/services/network/mgmt/2020-03-01/network/ipgroups.go index 9b4f83f21275..d2a9940d6b0b 100644 --- a/services/network/mgmt/2020-03-01/network/ipgroups.go +++ b/services/network/mgmt/2020-03-01/network/ipgroups.go @@ -227,6 +227,7 @@ func (client IPGroupsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client IPGroupsClient) List(ctx context.Context) (result IPGroupListResult result.iglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "List", resp, "Failure responding to request") + return } if result.iglr.hasNextLink() && result.iglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -365,6 +367,7 @@ func (client IPGroupsClient) listNextResults(ctx context.Context, lastResults IP result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client IPGroupsClient) ListByResourceGroup(ctx context.Context, resourceGr result.iglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.iglr.hasNextLink() && result.iglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client IPGroupsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +536,7 @@ func (client IPGroupsClient) UpdateGroups(ctx context.Context, resourceGroupName result, err = client.UpdateGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "UpdateGroups", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2020-03-01/network/loadbalancerbackendaddresspools.go index 41849861e23c..24a7c5664307 100644 --- a/services/network/mgmt/2020-03-01/network/loadbalancerbackendaddresspools.go +++ b/services/network/mgmt/2020-03-01/network/loadbalancerbackendaddresspools.go @@ -74,6 +74,7 @@ func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, re result.lbbaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return } if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2020-03-01/network/loadbalancerfrontendipconfigurations.go index c52c60976482..0ce914f4b972 100644 --- a/services/network/mgmt/2020-03-01/network/loadbalancerfrontendipconfigurations.go +++ b/services/network/mgmt/2020-03-01/network/loadbalancerfrontendipconfigurations.go @@ -75,6 +75,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Contex result.lbficlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2020-03-01/network/loadbalancerloadbalancingrules.go index 00cba448de7f..905d9eea0c4e 100644 --- a/services/network/mgmt/2020-03-01/network/loadbalancerloadbalancingrules.go +++ b/services/network/mgmt/2020-03-01/network/loadbalancerloadbalancingrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, res result.lblbrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return } if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2020-03-01/network/loadbalancernetworkinterfaces.go index 5f67f247e150..66e3ab2e23a8 100644 --- a/services/network/mgmt/2020-03-01/network/loadbalancernetworkinterfaces.go +++ b/services/network/mgmt/2020-03-01/network/loadbalancernetworkinterfaces.go @@ -74,6 +74,7 @@ func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, reso result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2020-03-01/network/loadbalanceroutboundrules.go index ea00de0abdd3..364633a938c0 100644 --- a/services/network/mgmt/2020-03-01/network/loadbalanceroutboundrules.go +++ b/services/network/mgmt/2020-03-01/network/loadbalanceroutboundrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerOutboundRulesClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerOutboundRulesClient) List(ctx context.Context, resource result.lborlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "List", resp, "Failure responding to request") + return } if result.lborlr.hasNextLink() && result.lborlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerOutboundRulesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/loadbalancerprobes.go b/services/network/mgmt/2020-03-01/network/loadbalancerprobes.go index 55a8f34b0597..e3760bfeea60 100644 --- a/services/network/mgmt/2020-03-01/network/loadbalancerprobes.go +++ b/services/network/mgmt/2020-03-01/network/loadbalancerprobes.go @@ -74,6 +74,7 @@ func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupNa result.lbplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return } if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/loadbalancers.go b/services/network/mgmt/2020-03-01/network/loadbalancers.go index 7f0472d52589..3c63b3c514d8 100644 --- a/services/network/mgmt/2020-03-01/network/loadbalancers.go +++ b/services/network/mgmt/2020-03-01/network/loadbalancers.go @@ -226,6 +226,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client LoadBalancersClient) UpdateTags(ctx context.Context, resourceGroupN result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/localnetworkgateways.go b/services/network/mgmt/2020-03-01/network/localnetworkgateways.go index 7735e167bd77..ba85041540a0 100644 --- a/services/network/mgmt/2020-03-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2020-03-01/network/localnetworkgateways.go @@ -247,6 +247,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +446,7 @@ func (client LocalNetworkGatewaysClient) UpdateTags(ctx context.Context, resourc result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/natgateways.go b/services/network/mgmt/2020-03-01/network/natgateways.go index 5ae7a1bfe3c1..a15af57ca6a2 100644 --- a/services/network/mgmt/2020-03-01/network/natgateways.go +++ b/services/network/mgmt/2020-03-01/network/natgateways.go @@ -226,6 +226,7 @@ func (client NatGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client NatGatewaysClient) List(ctx context.Context, resourceGroupName stri result.nglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "List", resp, "Failure responding to request") + return } if result.nglr.hasNextLink() && result.nglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client NatGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client NatGatewaysClient) ListAll(ctx context.Context) (result NatGatewayL result.nglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.nglr.hasNextLink() && result.nglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client NatGatewaysClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client NatGatewaysClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/operations.go b/services/network/mgmt/2020-03-01/network/operations.go index 32d2a99e4a36..3ae8c1eb8318 100644 --- a/services/network/mgmt/2020-03-01/network/operations.go +++ b/services/network/mgmt/2020-03-01/network/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/p2svpngateways.go b/services/network/mgmt/2020-03-01/network/p2svpngateways.go index 5f763fecd39d..1673287fa0df 100644 --- a/services/network/mgmt/2020-03-01/network/p2svpngateways.go +++ b/services/network/mgmt/2020-03-01/network/p2svpngateways.go @@ -381,6 +381,7 @@ func (client P2sVpnGatewaysClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -609,6 +610,7 @@ func (client P2sVpnGatewaysClient) List(ctx context.Context) (result ListP2SVpnG result.lpvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -671,6 +673,7 @@ func (client P2sVpnGatewaysClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -722,6 +725,7 @@ func (client P2sVpnGatewaysClient) ListByResourceGroup(ctx context.Context, reso result.lpvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -785,6 +789,7 @@ func (client P2sVpnGatewaysClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -837,6 +842,7 @@ func (client P2sVpnGatewaysClient) UpdateTags(ctx context.Context, resourceGroup result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/packetcaptures.go b/services/network/mgmt/2020-03-01/network/packetcaptures.go index 63c2efb140cc..6436f8bef496 100644 --- a/services/network/mgmt/2020-03-01/network/packetcaptures.go +++ b/services/network/mgmt/2020-03-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/peerexpressroutecircuitconnections.go b/services/network/mgmt/2020-03-01/network/peerexpressroutecircuitconnections.go index 8bae265118b1..538518b710c0 100644 --- a/services/network/mgmt/2020-03-01/network/peerexpressroutecircuitconnections.go +++ b/services/network/mgmt/2020-03-01/network/peerexpressroutecircuitconnections.go @@ -76,6 +76,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) List(ctx context.Context, result.percclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.percclr.hasNextLink() && result.percclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -220,6 +222,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) listNextResults(ctx conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/privatednszonegroups.go b/services/network/mgmt/2020-03-01/network/privatednszonegroups.go index 749e0cdfcebb..32ed50a501ac 100644 --- a/services/network/mgmt/2020-03-01/network/privatednszonegroups.go +++ b/services/network/mgmt/2020-03-01/network/privatednszonegroups.go @@ -231,6 +231,7 @@ func (client PrivateDNSZoneGroupsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client PrivateDNSZoneGroupsClient) List(ctx context.Context, privateEndpoi result.pdzglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsClient", "List", resp, "Failure responding to request") + return } if result.pdzglr.hasNextLink() && result.pdzglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client PrivateDNSZoneGroupsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/privateendpoints.go b/services/network/mgmt/2020-03-01/network/privateendpoints.go index 066f608b43a4..7ad3371b7697 100644 --- a/services/network/mgmt/2020-03-01/network/privateendpoints.go +++ b/services/network/mgmt/2020-03-01/network/privateendpoints.go @@ -227,6 +227,7 @@ func (client PrivateEndpointsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client PrivateEndpointsClient) List(ctx context.Context, resourceGroupName result.pelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "List", resp, "Failure responding to request") + return } if result.pelr.hasNextLink() && result.pelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client PrivateEndpointsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client PrivateEndpointsClient) ListBySubscription(ctx context.Context) (re result.pelr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.pelr.hasNextLink() && result.pelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client PrivateEndpointsClient) listBySubscriptionNextResults(ctx context.C result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/privatelinkservices.go b/services/network/mgmt/2020-03-01/network/privatelinkservices.go index 690aa5000f3a..623a300d1155 100644 --- a/services/network/mgmt/2020-03-01/network/privatelinkservices.go +++ b/services/network/mgmt/2020-03-01/network/privatelinkservices.go @@ -458,6 +458,7 @@ func (client PrivateLinkServicesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -539,6 +540,7 @@ func (client PrivateLinkServicesClient) GetPrivateEndpointConnection(ctx context result, err = client.GetPrivateEndpointConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "GetPrivateEndpointConnection", resp, "Failure responding to request") + return } return @@ -618,6 +620,7 @@ func (client PrivateLinkServicesClient) List(ctx context.Context, resourceGroupN result.plslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "List", resp, "Failure responding to request") + return } if result.plslr.hasNextLink() && result.plslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -681,6 +684,7 @@ func (client PrivateLinkServicesClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -733,6 +737,7 @@ func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServices(ctx result.aaplsr, err = client.ListAutoApprovedPrivateLinkServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServices", resp, "Failure responding to request") + return } if result.aaplsr.hasNextLink() && result.aaplsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -796,6 +801,7 @@ func (client PrivateLinkServicesClient) listAutoApprovedPrivateLinkServicesNextR result, err = client.ListAutoApprovedPrivateLinkServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesNextResults", resp, "Failure responding to next results request") + return } return } @@ -849,6 +855,7 @@ func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByRes result.aaplsr, err = client.ListAutoApprovedPrivateLinkServicesByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServicesByResourceGroup", resp, "Failure responding to request") + return } if result.aaplsr.hasNextLink() && result.aaplsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -913,6 +920,7 @@ func (client PrivateLinkServicesClient) listAutoApprovedPrivateLinkServicesByRes result, err = client.ListAutoApprovedPrivateLinkServicesByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -962,6 +970,7 @@ func (client PrivateLinkServicesClient) ListBySubscription(ctx context.Context) result.plslr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.plslr.hasNextLink() && result.plslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1024,6 +1033,7 @@ func (client PrivateLinkServicesClient) listBySubscriptionNextResults(ctx contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1076,6 +1086,7 @@ func (client PrivateLinkServicesClient) ListPrivateEndpointConnections(ctx conte result.peclr, err = client.ListPrivateEndpointConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListPrivateEndpointConnections", resp, "Failure responding to request") + return } if result.peclr.hasNextLink() && result.peclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1140,6 +1151,7 @@ func (client PrivateLinkServicesClient) listPrivateEndpointConnectionsNextResult result, err = client.ListPrivateEndpointConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listPrivateEndpointConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1194,6 +1206,7 @@ func (client PrivateLinkServicesClient) UpdatePrivateEndpointConnection(ctx cont result, err = client.UpdatePrivateEndpointConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "UpdatePrivateEndpointConnection", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/profiles.go b/services/network/mgmt/2020-03-01/network/profiles.go index e7774fa0cc79..dca9a4045bef 100644 --- a/services/network/mgmt/2020-03-01/network/profiles.go +++ b/services/network/mgmt/2020-03-01/network/profiles.go @@ -73,6 +73,7 @@ func (client ProfilesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -226,6 +227,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +306,7 @@ func (client ProfilesClient) List(ctx context.Context, resourceGroupName string) result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +370,7 @@ func (client ProfilesClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +420,7 @@ func (client ProfilesClient) ListAll(ctx context.Context) (result ProfileListRes result.plr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "ListAll", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +483,7 @@ func (client ProfilesClient) listAllNextResults(ctx context.Context, lastResults result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +536,7 @@ func (client ProfilesClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/publicipaddresses.go b/services/network/mgmt/2020-03-01/network/publicipaddresses.go index 25ddabb277d4..2e3cf2c7182e 100644 --- a/services/network/mgmt/2020-03-01/network/publicipaddresses.go +++ b/services/network/mgmt/2020-03-01/network/publicipaddresses.go @@ -239,6 +239,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -404,6 +406,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -467,6 +470,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -516,6 +520,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -578,6 +583,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -631,6 +637,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -695,6 +702,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -751,6 +759,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -818,6 +827,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -870,6 +880,7 @@ func (client PublicIPAddressesClient) UpdateTags(ctx context.Context, resourceGr result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/publicipprefixes.go b/services/network/mgmt/2020-03-01/network/publicipprefixes.go index 39c4403b411d..66d77c84c53a 100644 --- a/services/network/mgmt/2020-03-01/network/publicipprefixes.go +++ b/services/network/mgmt/2020-03-01/network/publicipprefixes.go @@ -227,6 +227,7 @@ func (client PublicIPPrefixesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client PublicIPPrefixesClient) List(ctx context.Context, resourceGroupName result.piplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "List", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client PublicIPPrefixesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client PublicIPPrefixesClient) ListAll(ctx context.Context) (result Public result.piplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "ListAll", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client PublicIPPrefixesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +536,7 @@ func (client PublicIPPrefixesClient) UpdateTags(ctx context.Context, resourceGro result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/resourcenavigationlinks.go b/services/network/mgmt/2020-03-01/network/resourcenavigationlinks.go index 681e9fdad19a..fef7c14c7298 100644 --- a/services/network/mgmt/2020-03-01/network/resourcenavigationlinks.go +++ b/services/network/mgmt/2020-03-01/network/resourcenavigationlinks.go @@ -74,6 +74,7 @@ func (client ResourceNavigationLinksClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ResourceNavigationLinksClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/routefilterrules.go b/services/network/mgmt/2020-03-01/network/routefilterrules.go index ee3090dd63e9..e48aa052a930 100644 --- a/services/network/mgmt/2020-03-01/network/routefilterrules.go +++ b/services/network/mgmt/2020-03-01/network/routefilterrules.go @@ -241,6 +241,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/routefilters.go b/services/network/mgmt/2020-03-01/network/routefilters.go index 3eabe7346a70..9495c98c9cb8 100644 --- a/services/network/mgmt/2020-03-01/network/routefilters.go +++ b/services/network/mgmt/2020-03-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client RouteFiltersClient) UpdateTags(ctx context.Context, resourceGroupNa result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/routes.go b/services/network/mgmt/2020-03-01/network/routes.go index 09ddef88dd2f..dd11a6a420b6 100644 --- a/services/network/mgmt/2020-03-01/network/routes.go +++ b/services/network/mgmt/2020-03-01/network/routes.go @@ -230,6 +230,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/routetables.go b/services/network/mgmt/2020-03-01/network/routetables.go index adfb788d46de..d132b76ea190 100644 --- a/services/network/mgmt/2020-03-01/network/routetables.go +++ b/services/network/mgmt/2020-03-01/network/routetables.go @@ -226,6 +226,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client RouteTablesClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/securitygroups.go b/services/network/mgmt/2020-03-01/network/securitygroups.go index 46b918126820..50468f663012 100644 --- a/services/network/mgmt/2020-03-01/network/securitygroups.go +++ b/services/network/mgmt/2020-03-01/network/securitygroups.go @@ -226,6 +226,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client SecurityGroupsClient) UpdateTags(ctx context.Context, resourceGroup result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/securitypartnerproviders.go b/services/network/mgmt/2020-03-01/network/securitypartnerproviders.go index 51cd12f77da3..4f946cbb9ae5 100644 --- a/services/network/mgmt/2020-03-01/network/securitypartnerproviders.go +++ b/services/network/mgmt/2020-03-01/network/securitypartnerproviders.go @@ -226,6 +226,7 @@ func (client SecurityPartnerProvidersClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client SecurityPartnerProvidersClient) List(ctx context.Context) (result S result.spplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "List", resp, "Failure responding to request") + return } if result.spplr.hasNextLink() && result.spplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -361,6 +363,7 @@ func (client SecurityPartnerProvidersClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client SecurityPartnerProvidersClient) ListByResourceGroup(ctx context.Con result.spplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.spplr.hasNextLink() && result.spplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client SecurityPartnerProvidersClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -527,6 +532,7 @@ func (client SecurityPartnerProvidersClient) UpdateTags(ctx context.Context, res result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/securityrules.go b/services/network/mgmt/2020-03-01/network/securityrules.go index 215949c0d035..6cbde01d0651 100644 --- a/services/network/mgmt/2020-03-01/network/securityrules.go +++ b/services/network/mgmt/2020-03-01/network/securityrules.go @@ -230,6 +230,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/serviceassociationlinks.go b/services/network/mgmt/2020-03-01/network/serviceassociationlinks.go index ef5027d5c167..ca6fcb89045c 100644 --- a/services/network/mgmt/2020-03-01/network/serviceassociationlinks.go +++ b/services/network/mgmt/2020-03-01/network/serviceassociationlinks.go @@ -74,6 +74,7 @@ func (client ServiceAssociationLinksClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceAssociationLinksClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/serviceendpointpolicies.go b/services/network/mgmt/2020-03-01/network/serviceendpointpolicies.go index a225e6722e86..7f5d6e35f4d8 100644 --- a/services/network/mgmt/2020-03-01/network/serviceendpointpolicies.go +++ b/services/network/mgmt/2020-03-01/network/serviceendpointpolicies.go @@ -227,6 +227,7 @@ func (client ServiceEndpointPoliciesClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client ServiceEndpointPoliciesClient) List(ctx context.Context) (result Se result.seplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "List", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -365,6 +367,7 @@ func (client ServiceEndpointPoliciesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Cont result.seplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client ServiceEndpointPoliciesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +536,7 @@ func (client ServiceEndpointPoliciesClient) UpdateTags(ctx context.Context, reso result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2020-03-01/network/serviceendpointpolicydefinitions.go index ffa36539608c..6c1a7c41585a 100644 --- a/services/network/mgmt/2020-03-01/network/serviceendpointpolicydefinitions.go +++ b/services/network/mgmt/2020-03-01/network/serviceendpointpolicydefinitions.go @@ -232,6 +232,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) ListByResourceGroup(ctx con result.sepdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sepdlr.hasNextLink() && result.sepdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) listByResourceGroupNextResu result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/servicetags.go b/services/network/mgmt/2020-03-01/network/servicetags.go index 4baa381ab3c1..2418d5d46453 100644 --- a/services/network/mgmt/2020-03-01/network/servicetags.go +++ b/services/network/mgmt/2020-03-01/network/servicetags.go @@ -73,6 +73,7 @@ func (client ServiceTagsClient) List(ctx context.Context, location string) (resu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceTagsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/subnets.go b/services/network/mgmt/2020-03-01/network/subnets.go index c6f6a335ef12..bb0dc657c48a 100644 --- a/services/network/mgmt/2020-03-01/network/subnets.go +++ b/services/network/mgmt/2020-03-01/network/subnets.go @@ -231,6 +231,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/usages.go b/services/network/mgmt/2020-03-01/network/usages.go index e3e6a3137125..d98242449360 100644 --- a/services/network/mgmt/2020-03-01/network/usages.go +++ b/services/network/mgmt/2020-03-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/virtualappliances.go b/services/network/mgmt/2020-03-01/network/virtualappliances.go index 0f34e2cfeedb..44c3c32a76e3 100644 --- a/services/network/mgmt/2020-03-01/network/virtualappliances.go +++ b/services/network/mgmt/2020-03-01/network/virtualappliances.go @@ -239,6 +239,7 @@ func (client VirtualAppliancesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client VirtualAppliancesClient) List(ctx context.Context) (result VirtualA result.valr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "List", resp, "Failure responding to request") + return } if result.valr.hasNextLink() && result.valr.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +379,7 @@ func (client VirtualAppliancesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -428,6 +431,7 @@ func (client VirtualAppliancesClient) ListByResourceGroup(ctx context.Context, r result.valr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.valr.hasNextLink() && result.valr.IsEmpty() { err = result.NextWithContext(ctx) @@ -491,6 +495,7 @@ func (client VirtualAppliancesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -543,6 +548,7 @@ func (client VirtualAppliancesClient) UpdateTags(ctx context.Context, resourceGr result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/virtualhubroutetablev2s.go b/services/network/mgmt/2020-03-01/network/virtualhubroutetablev2s.go index 4125e6f34efb..619577ca29f3 100644 --- a/services/network/mgmt/2020-03-01/network/virtualhubroutetablev2s.go +++ b/services/network/mgmt/2020-03-01/network/virtualhubroutetablev2s.go @@ -232,6 +232,7 @@ func (client VirtualHubRouteTableV2sClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client VirtualHubRouteTableV2sClient) List(ctx context.Context, resourceGr result.lvhrtvr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "List", resp, "Failure responding to request") + return } if result.lvhrtvr.hasNextLink() && result.lvhrtvr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client VirtualHubRouteTableV2sClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/virtualhubs.go b/services/network/mgmt/2020-03-01/network/virtualhubs.go index 145803bec0f5..8f3c64afb65b 100644 --- a/services/network/mgmt/2020-03-01/network/virtualhubs.go +++ b/services/network/mgmt/2020-03-01/network/virtualhubs.go @@ -225,6 +225,7 @@ func (client VirtualHubsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualHubsClient) List(ctx context.Context) (result ListVirtualHub result.lvhr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "List", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualHubsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualHubsClient) ListByResourceGroup(ctx context.Context, resourc result.lvhr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualHubsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +531,7 @@ func (client VirtualHubsClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2020-03-01/network/virtualnetworkgatewayconnections.go index 336e0d7f4138..07d4df5c30cd 100644 --- a/services/network/mgmt/2020-03-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2020-03-01/network/virtualnetworkgatewayconnections.go @@ -240,6 +240,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -392,6 +394,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -455,6 +458,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/virtualnetworkgateways.go b/services/network/mgmt/2020-03-01/network/virtualnetworkgateways.go index 24d6bba39c78..4fde98056de3 100644 --- a/services/network/mgmt/2020-03-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2020-03-01/network/virtualnetworkgateways.go @@ -469,6 +469,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -1006,6 +1007,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1069,6 +1071,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1121,6 +1124,7 @@ func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, result.vnglcr, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return } if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1185,6 +1189,7 @@ func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx contex result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1637,6 +1642,7 @@ func (client VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Conte result, err = client.SupportedVpnDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", resp, "Failure responding to request") + return } return @@ -1792,6 +1798,7 @@ func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx cont result, err = client.VpnDeviceConfigurationScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2020-03-01/network/virtualnetworkpeerings.go index 12607e3161cb..cf404ee9f665 100644 --- a/services/network/mgmt/2020-03-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2020-03-01/network/virtualnetworkpeerings.go @@ -232,6 +232,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/virtualnetworks.go b/services/network/mgmt/2020-03-01/network/virtualnetworks.go index e6bcdb3271f3..c488ab2e0813 100644 --- a/services/network/mgmt/2020-03-01/network/virtualnetworks.go +++ b/services/network/mgmt/2020-03-01/network/virtualnetworks.go @@ -74,6 +74,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -313,6 +314,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -503,6 +507,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -565,6 +570,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -617,6 +623,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -681,6 +688,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } @@ -733,6 +741,7 @@ func (client VirtualNetworksClient) UpdateTags(ctx context.Context, resourceGrou result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/virtualnetworktaps.go b/services/network/mgmt/2020-03-01/network/virtualnetworktaps.go index f17b14df3f3d..a71e5287168d 100644 --- a/services/network/mgmt/2020-03-01/network/virtualnetworktaps.go +++ b/services/network/mgmt/2020-03-01/network/virtualnetworktaps.go @@ -258,6 +258,7 @@ func (client VirtualNetworkTapsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "Get", resp, "Failure responding to request") + return } return @@ -331,6 +332,7 @@ func (client VirtualNetworkTapsClient) ListAll(ctx context.Context) (result Virt result.vntlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListAll", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -393,6 +395,7 @@ func (client VirtualNetworkTapsClient) listAllNextResults(ctx context.Context, l result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -444,6 +447,7 @@ func (client VirtualNetworkTapsClient) ListByResourceGroup(ctx context.Context, result.vntlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -507,6 +511,7 @@ func (client VirtualNetworkTapsClient) listByResourceGroupNextResults(ctx contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -559,6 +564,7 @@ func (client VirtualNetworkTapsClient) UpdateTags(ctx context.Context, resourceG result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/virtualrouterpeerings.go b/services/network/mgmt/2020-03-01/network/virtualrouterpeerings.go index 35d82d5e3e8e..98d7ad5ee73f 100644 --- a/services/network/mgmt/2020-03-01/network/virtualrouterpeerings.go +++ b/services/network/mgmt/2020-03-01/network/virtualrouterpeerings.go @@ -244,6 +244,7 @@ func (client VirtualRouterPeeringsClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client VirtualRouterPeeringsClient) List(ctx context.Context, resourceGrou result.vrplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vrplr.hasNextLink() && result.vrplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client VirtualRouterPeeringsClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/virtualrouters.go b/services/network/mgmt/2020-03-01/network/virtualrouters.go index e3ac08fa8b6b..435fc3ed1d46 100644 --- a/services/network/mgmt/2020-03-01/network/virtualrouters.go +++ b/services/network/mgmt/2020-03-01/network/virtualrouters.go @@ -238,6 +238,7 @@ func (client VirtualRoutersClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client VirtualRoutersClient) List(ctx context.Context) (result VirtualRout result.vrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "List", resp, "Failure responding to request") + return } if result.vrlr.hasNextLink() && result.vrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -376,6 +378,7 @@ func (client VirtualRoutersClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -427,6 +430,7 @@ func (client VirtualRoutersClient) ListByResourceGroup(ctx context.Context, reso result.vrlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vrlr.hasNextLink() && result.vrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -490,6 +494,7 @@ func (client VirtualRoutersClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/virtualwans.go b/services/network/mgmt/2020-03-01/network/virtualwans.go index b0cff37499d8..b8bbe74d648b 100644 --- a/services/network/mgmt/2020-03-01/network/virtualwans.go +++ b/services/network/mgmt/2020-03-01/network/virtualwans.go @@ -225,6 +225,7 @@ func (client VirtualWansClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualWansClient) List(ctx context.Context) (result ListVirtualWAN result.lvwnr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "List", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualWansClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualWansClient) ListByResourceGroup(ctx context.Context, resourc result.lvwnr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualWansClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +531,7 @@ func (client VirtualWansClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/vpnconnections.go b/services/network/mgmt/2020-03-01/network/vpnconnections.go index 484e89e155a2..c78c1450c150 100644 --- a/services/network/mgmt/2020-03-01/network/vpnconnections.go +++ b/services/network/mgmt/2020-03-01/network/vpnconnections.go @@ -231,6 +231,7 @@ func (client VpnConnectionsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VpnConnectionsClient) ListByVpnGateway(ctx context.Context, resourc result.lvcr, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "ListByVpnGateway", resp, "Failure responding to request") + return } if result.lvcr.hasNextLink() && result.lvcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VpnConnectionsClient) listByVpnGatewayNextResults(ctx context.Conte result, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "listByVpnGatewayNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/vpngateways.go b/services/network/mgmt/2020-03-01/network/vpngateways.go index 3d8ca0aec51b..45e0fd221229 100644 --- a/services/network/mgmt/2020-03-01/network/vpngateways.go +++ b/services/network/mgmt/2020-03-01/network/vpngateways.go @@ -225,6 +225,7 @@ func (client VpnGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnGatewaysClient) List(ctx context.Context) (result ListVpnGateway result.lvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnGatewaysClient) ListByResourceGroup(ctx context.Context, resourc result.lvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnGatewaysClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -601,6 +606,7 @@ func (client VpnGatewaysClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/vpnlinkconnections.go b/services/network/mgmt/2020-03-01/network/vpnlinkconnections.go index f33a672e719c..d83011fa5554 100644 --- a/services/network/mgmt/2020-03-01/network/vpnlinkconnections.go +++ b/services/network/mgmt/2020-03-01/network/vpnlinkconnections.go @@ -75,6 +75,7 @@ func (client VpnLinkConnectionsClient) ListByVpnConnection(ctx context.Context, result.lvslcr, err = client.ListByVpnConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnLinkConnectionsClient", "ListByVpnConnection", resp, "Failure responding to request") + return } if result.lvslcr.hasNextLink() && result.lvslcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -140,6 +141,7 @@ func (client VpnLinkConnectionsClient) listByVpnConnectionNextResults(ctx contex result, err = client.ListByVpnConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnLinkConnectionsClient", "listByVpnConnectionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/vpnserverconfigurations.go b/services/network/mgmt/2020-03-01/network/vpnserverconfigurations.go index 1bb208b41619..cf9c88e7d95f 100644 --- a/services/network/mgmt/2020-03-01/network/vpnserverconfigurations.go +++ b/services/network/mgmt/2020-03-01/network/vpnserverconfigurations.go @@ -227,6 +227,7 @@ func (client VpnServerConfigurationsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client VpnServerConfigurationsClient) List(ctx context.Context) (result Li result.lvscr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lvscr.hasNextLink() && result.lvscr.IsEmpty() { err = result.NextWithContext(ctx) @@ -362,6 +364,7 @@ func (client VpnServerConfigurationsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client VpnServerConfigurationsClient) ListByResourceGroup(ctx context.Cont result.lvscr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvscr.hasNextLink() && result.lvscr.IsEmpty() { err = result.NextWithContext(ctx) @@ -476,6 +480,7 @@ func (client VpnServerConfigurationsClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -528,6 +533,7 @@ func (client VpnServerConfigurationsClient) UpdateTags(ctx context.Context, reso result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/vpnsitelinkconnections.go b/services/network/mgmt/2020-03-01/network/vpnsitelinkconnections.go index 65d26e7566fa..006d254115f1 100644 --- a/services/network/mgmt/2020-03-01/network/vpnsitelinkconnections.go +++ b/services/network/mgmt/2020-03-01/network/vpnsitelinkconnections.go @@ -75,6 +75,7 @@ func (client VpnSiteLinkConnectionsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinkConnectionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/vpnsitelinks.go b/services/network/mgmt/2020-03-01/network/vpnsitelinks.go index 75ff748bbf80..3de2b41546b7 100644 --- a/services/network/mgmt/2020-03-01/network/vpnsitelinks.go +++ b/services/network/mgmt/2020-03-01/network/vpnsitelinks.go @@ -73,6 +73,7 @@ func (client VpnSiteLinksClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client VpnSiteLinksClient) ListByVpnSite(ctx context.Context, resourceGrou result.lvslr, err = client.ListByVpnSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "ListByVpnSite", resp, "Failure responding to request") + return } if result.lvslr.hasNextLink() && result.lvslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -214,6 +216,7 @@ func (client VpnSiteLinksClient) listByVpnSiteNextResults(ctx context.Context, l result, err = client.ListByVpnSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "listByVpnSiteNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-03-01/network/vpnsites.go b/services/network/mgmt/2020-03-01/network/vpnsites.go index 8970acf3c973..dde7fded3b4c 100644 --- a/services/network/mgmt/2020-03-01/network/vpnsites.go +++ b/services/network/mgmt/2020-03-01/network/vpnsites.go @@ -225,6 +225,7 @@ func (client VpnSitesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VpnSitesClient) List(ctx context.Context) (result ListVpnSitesResul result.lvsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "List", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VpnSitesClient) listNextResults(ctx context.Context, lastResults Li result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VpnSitesClient) ListByResourceGroup(ctx context.Context, resourceGr result.lvsr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VpnSitesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +531,7 @@ func (client VpnSitesClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/watchers.go b/services/network/mgmt/2020-03-01/network/watchers.go index 3258f40306ed..1ed89cbc13f9 100644 --- a/services/network/mgmt/2020-03-01/network/watchers.go +++ b/services/network/mgmt/2020-03-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -313,6 +314,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -736,6 +738,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -1068,6 +1071,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -1139,6 +1143,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return @@ -1380,6 +1385,7 @@ func (client WatchersClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-03-01/network/webapplicationfirewallpolicies.go b/services/network/mgmt/2020-03-01/network/webapplicationfirewallpolicies.go index d23fd191ca7a..3bac2db06597 100644 --- a/services/network/mgmt/2020-03-01/network/webapplicationfirewallpolicies.go +++ b/services/network/mgmt/2020-03-01/network/webapplicationfirewallpolicies.go @@ -94,6 +94,7 @@ func (client WebApplicationFirewallPoliciesClient) CreateOrUpdate(ctx context.Co result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -258,6 +259,7 @@ func (client WebApplicationFirewallPoliciesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -333,6 +335,7 @@ func (client WebApplicationFirewallPoliciesClient) List(ctx context.Context, res result.wafplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "List", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -396,6 +399,7 @@ func (client WebApplicationFirewallPoliciesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +449,7 @@ func (client WebApplicationFirewallPoliciesClient) ListAll(ctx context.Context) result.wafplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "ListAll", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -507,6 +512,7 @@ func (client WebApplicationFirewallPoliciesClient) listAllNextResults(ctx contex result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/applicationgateways.go b/services/network/mgmt/2020-04-01/network/applicationgateways.go index a885f693763a..25689848fbf6 100644 --- a/services/network/mgmt/2020-04-01/network/applicationgateways.go +++ b/services/network/mgmt/2020-04-01/network/applicationgateways.go @@ -417,6 +417,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -491,6 +492,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte result, err = client.GetSslPredefinedPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return } return @@ -565,6 +567,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -628,6 +631,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -677,6 +681,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -739,6 +744,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -787,6 +793,7 @@ func (client ApplicationGatewaysClient) ListAvailableRequestHeaders(ctx context. result, err = client.ListAvailableRequestHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableRequestHeaders", resp, "Failure responding to request") + return } return @@ -857,6 +864,7 @@ func (client ApplicationGatewaysClient) ListAvailableResponseHeaders(ctx context result, err = client.ListAvailableResponseHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableResponseHeaders", resp, "Failure responding to request") + return } return @@ -927,6 +935,7 @@ func (client ApplicationGatewaysClient) ListAvailableServerVariables(ctx context result, err = client.ListAvailableServerVariablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableServerVariables", resp, "Failure responding to request") + return } return @@ -997,6 +1006,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont result, err = client.ListAvailableSslOptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return } return @@ -1068,6 +1078,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return } if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { err = result.NextWithContext(ctx) @@ -1130,6 +1141,7 @@ func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextRe result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1178,6 +1190,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return @@ -1400,6 +1413,7 @@ func (client ApplicationGatewaysClient) UpdateTags(ctx context.Context, resource result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/applicationsecuritygroups.go b/services/network/mgmt/2020-04-01/network/applicationsecuritygroups.go index c8f38c0566a9..43e1c276ee0c 100644 --- a/services/network/mgmt/2020-04-01/network/applicationsecuritygroups.go +++ b/services/network/mgmt/2020-04-01/network/applicationsecuritygroups.go @@ -226,6 +226,7 @@ func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resource result.asglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ApplicationSecurityGroupsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (resu result.asglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ApplicationSecurityGroupsClient) listAllNextResults(ctx context.Con result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -527,6 +532,7 @@ func (client ApplicationSecurityGroupsClient) UpdateTags(ctx context.Context, re result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/availabledelegations.go b/services/network/mgmt/2020-04-01/network/availabledelegations.go index 07b1f7e4f1ed..d834e123c004 100644 --- a/services/network/mgmt/2020-04-01/network/availabledelegations.go +++ b/services/network/mgmt/2020-04-01/network/availabledelegations.go @@ -73,6 +73,7 @@ func (client AvailableDelegationsClient) List(ctx context.Context, location stri result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableDelegationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/availableendpointservices.go b/services/network/mgmt/2020-04-01/network/availableendpointservices.go index 29a629a25ec9..fd755b4df7bc 100644 --- a/services/network/mgmt/2020-04-01/network/availableendpointservices.go +++ b/services/network/mgmt/2020-04-01/network/availableendpointservices.go @@ -73,6 +73,7 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableEndpointServicesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/availableprivateendpointtypes.go b/services/network/mgmt/2020-04-01/network/availableprivateendpointtypes.go index c6560377cc1c..461db827b83d 100644 --- a/services/network/mgmt/2020-04-01/network/availableprivateendpointtypes.go +++ b/services/network/mgmt/2020-04-01/network/availableprivateendpointtypes.go @@ -73,6 +73,7 @@ func (client AvailablePrivateEndpointTypesClient) List(ctx context.Context, loca result.apetr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "List", resp, "Failure responding to request") + return } if result.apetr.hasNextLink() && result.apetr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailablePrivateEndpointTypesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -189,6 +191,7 @@ func (client AvailablePrivateEndpointTypesClient) ListByResourceGroup(ctx contex result.apetr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.apetr.hasNextLink() && result.apetr.IsEmpty() { err = result.NextWithContext(ctx) @@ -253,6 +256,7 @@ func (client AvailablePrivateEndpointTypesClient) listByResourceGroupNextResults result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2020-04-01/network/availableresourcegroupdelegations.go index 14802bb62e17..4919895e0fd0 100644 --- a/services/network/mgmt/2020-04-01/network/availableresourcegroupdelegations.go +++ b/services/network/mgmt/2020-04-01/network/availableresourcegroupdelegations.go @@ -75,6 +75,7 @@ func (client AvailableResourceGroupDelegationsClient) List(ctx context.Context, result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client AvailableResourceGroupDelegationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/availableservicealiases.go b/services/network/mgmt/2020-04-01/network/availableservicealiases.go index 30b6faedc96c..68b3240124e1 100644 --- a/services/network/mgmt/2020-04-01/network/availableservicealiases.go +++ b/services/network/mgmt/2020-04-01/network/availableservicealiases.go @@ -73,6 +73,7 @@ func (client AvailableServiceAliasesClient) List(ctx context.Context, location s result.asar, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "List", resp, "Failure responding to request") + return } if result.asar.hasNextLink() && result.asar.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableServiceAliasesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -188,6 +190,7 @@ func (client AvailableServiceAliasesClient) ListByResourceGroup(ctx context.Cont result.asar, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.asar.hasNextLink() && result.asar.IsEmpty() { err = result.NextWithContext(ctx) @@ -252,6 +255,7 @@ func (client AvailableServiceAliasesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2020-04-01/network/azurefirewallfqdntags.go index 4635fca1265c..06821691e6ba 100644 --- a/services/network/mgmt/2020-04-01/network/azurefirewallfqdntags.go +++ b/services/network/mgmt/2020-04-01/network/azurefirewallfqdntags.go @@ -71,6 +71,7 @@ func (client AzureFirewallFqdnTagsClient) ListAll(ctx context.Context) (result A result.afftlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "ListAll", resp, "Failure responding to request") + return } if result.afftlr.hasNextLink() && result.afftlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client AzureFirewallFqdnTagsClient) listAllNextResults(ctx context.Context result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/azurefirewalls.go b/services/network/mgmt/2020-04-01/network/azurefirewalls.go index b20e1ff9f0d8..9301dc7b7650 100644 --- a/services/network/mgmt/2020-04-01/network/azurefirewalls.go +++ b/services/network/mgmt/2020-04-01/network/azurefirewalls.go @@ -233,6 +233,7 @@ func (client AzureFirewallsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client AzureFirewallsClient) List(ctx context.Context, resourceGroupName s result.aflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "List", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client AzureFirewallsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -420,6 +423,7 @@ func (client AzureFirewallsClient) ListAll(ctx context.Context) (result AzureFir result.aflr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "ListAll", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -482,6 +486,7 @@ func (client AzureFirewallsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/bastionhosts.go b/services/network/mgmt/2020-04-01/network/bastionhosts.go index 7b148a773d33..145b067650e9 100644 --- a/services/network/mgmt/2020-04-01/network/bastionhosts.go +++ b/services/network/mgmt/2020-04-01/network/bastionhosts.go @@ -225,6 +225,7 @@ func (client BastionHostsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client BastionHostsClient) List(ctx context.Context) (result BastionHostLi result.bhlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "List", resp, "Failure responding to request") + return } if result.bhlr.hasNextLink() && result.bhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client BastionHostsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client BastionHostsClient) ListByResourceGroup(ctx context.Context, resour result.bhlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.bhlr.hasNextLink() && result.bhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client BastionHostsClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/bgpservicecommunities.go b/services/network/mgmt/2020-04-01/network/bgpservicecommunities.go index de175efc6063..f2f84a426b04 100644 --- a/services/network/mgmt/2020-04-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2020-04-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/client.go b/services/network/mgmt/2020-04-01/network/client.go index a63b2dd44eeb..a38ccfdaef06 100644 --- a/services/network/mgmt/2020-04-01/network/client.go +++ b/services/network/mgmt/2020-04-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return @@ -241,6 +242,7 @@ func (client BaseClient) DisconnectActiveSessions(ctx context.Context, resourceG result.bsdr, err = client.DisconnectActiveSessionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "DisconnectActiveSessions", resp, "Failure responding to request") + return } if result.bsdr.hasNextLink() && result.bsdr.IsEmpty() { err = result.NextWithContext(ctx) @@ -307,6 +309,7 @@ func (client BaseClient) disconnectActiveSessionsNextResults(ctx context.Context result, err = client.DisconnectActiveSessionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "disconnectActiveSessionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -555,6 +558,7 @@ func (client BaseClient) GetBastionShareableLink(ctx context.Context, resourceGr result.bsllr, err = client.GetBastionShareableLinkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "GetBastionShareableLink", resp, "Failure responding to request") + return } if result.bsllr.hasNextLink() && result.bsllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -621,6 +625,7 @@ func (client BaseClient) getBastionShareableLinkNextResults(ctx context.Context, result, err = client.GetBastionShareableLinkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "getBastionShareableLinkNextResults", resp, "Failure responding to next results request") + return } return } @@ -791,6 +796,7 @@ func (client BaseClient) SupportedSecurityProviders(ctx context.Context, resourc result, err = client.SupportedSecurityProvidersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "SupportedSecurityProviders", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/connectionmonitors.go b/services/network/mgmt/2020-04-01/network/connectionmonitors.go index 5ef2ce7131c2..bae5e958a243 100644 --- a/services/network/mgmt/2020-04-01/network/connectionmonitors.go +++ b/services/network/mgmt/2020-04-01/network/connectionmonitors.go @@ -240,6 +240,7 @@ func (client ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client ConnectionMonitorsClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure responding to request") + return } return @@ -622,6 +624,7 @@ func (client ConnectionMonitorsClient) UpdateTags(ctx context.Context, resourceG result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/ddoscustompolicies.go b/services/network/mgmt/2020-04-01/network/ddoscustompolicies.go index 6b0725b38a1f..31aeb2e49f3a 100644 --- a/services/network/mgmt/2020-04-01/network/ddoscustompolicies.go +++ b/services/network/mgmt/2020-04-01/network/ddoscustompolicies.go @@ -226,6 +226,7 @@ func (client DdosCustomPoliciesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DdosCustomPoliciesClient) UpdateTags(ctx context.Context, resourceG result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/ddosprotectionplans.go b/services/network/mgmt/2020-04-01/network/ddosprotectionplans.go index b461ccc228e6..62ced6be8ffa 100644 --- a/services/network/mgmt/2020-04-01/network/ddosprotectionplans.go +++ b/services/network/mgmt/2020-04-01/network/ddosprotectionplans.go @@ -229,6 +229,7 @@ func (client DdosProtectionPlansClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DdosProtectionPlansClient) List(ctx context.Context) (result DdosPr result.dpplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client DdosProtectionPlansClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, result.dpplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client DdosProtectionPlansClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client DdosProtectionPlansClient) UpdateTags(ctx context.Context, resource result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/defaultsecurityrules.go b/services/network/mgmt/2020-04-01/network/defaultsecurityrules.go index 3530c391cbfe..9b3534bca5d1 100644 --- a/services/network/mgmt/2020-04-01/network/defaultsecurityrules.go +++ b/services/network/mgmt/2020-04-01/network/defaultsecurityrules.go @@ -74,6 +74,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2020-04-01/network/expressroutecircuitauthorizations.go index b25d9c2bbb82..fb1a0bcdecfa 100644 --- a/services/network/mgmt/2020-04-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2020-04-01/network/expressroutecircuitauthorizations.go @@ -234,6 +234,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2020-04-01/network/expressroutecircuitconnections.go index 8ffc8e936aa8..74fa5cb87405 100644 --- a/services/network/mgmt/2020-04-01/network/expressroutecircuitconnections.go +++ b/services/network/mgmt/2020-04-01/network/expressroutecircuitconnections.go @@ -238,6 +238,7 @@ func (client ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ExpressRouteCircuitConnectionsClient) List(ctx context.Context, res result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client ExpressRouteCircuitConnectionsClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2020-04-01/network/expressroutecircuitpeerings.go index 4c06424664c0..7740d9d33ee7 100644 --- a/services/network/mgmt/2020-04-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2020-04-01/network/expressroutecircuitpeerings.go @@ -244,6 +244,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/expressroutecircuits.go b/services/network/mgmt/2020-04-01/network/expressroutecircuits.go index c23481357736..b2a109ddfa9e 100644 --- a/services/network/mgmt/2020-04-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2020-04-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -918,6 +925,7 @@ func (client ExpressRouteCircuitsClient) UpdateTags(ctx context.Context, resourc result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/expressrouteconnections.go b/services/network/mgmt/2020-04-01/network/expressrouteconnections.go index bf4bb8358a7f..e85cf2bd1548 100644 --- a/services/network/mgmt/2020-04-01/network/expressrouteconnections.go +++ b/services/network/mgmt/2020-04-01/network/expressrouteconnections.go @@ -239,6 +239,7 @@ func (client ExpressRouteConnectionsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client ExpressRouteConnectionsClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2020-04-01/network/expressroutecrossconnectionpeerings.go index d4bf6d87b576..ad171d8b784c 100644 --- a/services/network/mgmt/2020-04-01/network/expressroutecrossconnectionpeerings.go +++ b/services/network/mgmt/2020-04-01/network/expressroutecrossconnectionpeerings.go @@ -245,6 +245,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context result.erccpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "List", resp, "Failure responding to request") + return } if result.erccpl.hasNextLink() && result.erccpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) listNextResults(ctx cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/expressroutecrossconnections.go b/services/network/mgmt/2020-04-01/network/expressroutecrossconnections.go index 0a8642507f5c..da89278ca9e7 100644 --- a/services/network/mgmt/2020-04-01/network/expressroutecrossconnections.go +++ b/services/network/mgmt/2020-04-01/network/expressroutecrossconnections.go @@ -152,6 +152,7 @@ func (client ExpressRouteCrossConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ExpressRouteCrossConnectionsClient) List(ctx context.Context) (resu result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -287,6 +289,7 @@ func (client ExpressRouteCrossConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -418,6 +421,7 @@ func (client ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context result.ercclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +485,7 @@ func (client ExpressRouteCrossConnectionsClient) listByResourceGroupNextResults( result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -693,6 +698,7 @@ func (client ExpressRouteCrossConnectionsClient) UpdateTags(ctx context.Context, result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/expressroutegateways.go b/services/network/mgmt/2020-04-01/network/expressroutegateways.go index 78454f734e52..618b5d0e758d 100644 --- a/services/network/mgmt/2020-04-01/network/expressroutegateways.go +++ b/services/network/mgmt/2020-04-01/network/expressroutegateways.go @@ -235,6 +235,7 @@ func (client ExpressRouteGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client ExpressRouteGatewaysClient) ListByResourceGroup(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -380,6 +382,7 @@ func (client ExpressRouteGatewaysClient) ListBySubscription(ctx context.Context) result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/expressroutelinks.go b/services/network/mgmt/2020-04-01/network/expressroutelinks.go index 84960b14fd71..6d0d3ba4c2d6 100644 --- a/services/network/mgmt/2020-04-01/network/expressroutelinks.go +++ b/services/network/mgmt/2020-04-01/network/expressroutelinks.go @@ -74,6 +74,7 @@ func (client ExpressRouteLinksClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ExpressRouteLinksClient) List(ctx context.Context, resourceGroupNam result.erllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "List", resp, "Failure responding to request") + return } if result.erllr.hasNextLink() && result.erllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client ExpressRouteLinksClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/expressrouteports.go b/services/network/mgmt/2020-04-01/network/expressrouteports.go index b6e8bbb04cc6..2d190fa0ef0c 100644 --- a/services/network/mgmt/2020-04-01/network/expressrouteports.go +++ b/services/network/mgmt/2020-04-01/network/expressrouteports.go @@ -226,6 +226,7 @@ func (client ExpressRoutePortsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client ExpressRoutePortsClient) List(ctx context.Context) (result ExpressR result.erplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "List", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -361,6 +363,7 @@ func (client ExpressRoutePortsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, r result.erplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ExpressRoutePortsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -527,6 +532,7 @@ func (client ExpressRoutePortsClient) UpdateTags(ctx context.Context, resourceGr result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/expressrouteportslocations.go b/services/network/mgmt/2020-04-01/network/expressrouteportslocations.go index 5669d0a44faf..2771b60ff226 100644 --- a/services/network/mgmt/2020-04-01/network/expressrouteportslocations.go +++ b/services/network/mgmt/2020-04-01/network/expressrouteportslocations.go @@ -73,6 +73,7 @@ func (client ExpressRoutePortsLocationsClient) Get(ctx context.Context, location result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client ExpressRoutePortsLocationsClient) List(ctx context.Context) (result result.erpllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "List", resp, "Failure responding to request") + return } if result.erpllr.hasNextLink() && result.erpllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -208,6 +210,7 @@ func (client ExpressRoutePortsLocationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2020-04-01/network/expressrouteserviceproviders.go index c2416d5573df..0b8df74d511b 100644 --- a/services/network/mgmt/2020-04-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2020-04-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/firewallpolicies.go b/services/network/mgmt/2020-04-01/network/firewallpolicies.go index e959545135e4..3115e6126575 100644 --- a/services/network/mgmt/2020-04-01/network/firewallpolicies.go +++ b/services/network/mgmt/2020-04-01/network/firewallpolicies.go @@ -227,6 +227,7 @@ func (client FirewallPoliciesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client FirewallPoliciesClient) List(ctx context.Context, resourceGroupName result.fplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "List", resp, "Failure responding to request") + return } if result.fplr.hasNextLink() && result.fplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client FirewallPoliciesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client FirewallPoliciesClient) ListAll(ctx context.Context) (result Firewa result.fplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "ListAll", resp, "Failure responding to request") + return } if result.fplr.hasNextLink() && result.fplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client FirewallPoliciesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/firewallpolicyrulegroups.go b/services/network/mgmt/2020-04-01/network/firewallpolicyrulegroups.go index affa23b116f9..f5a28d0b4d01 100644 --- a/services/network/mgmt/2020-04-01/network/firewallpolicyrulegroups.go +++ b/services/network/mgmt/2020-04-01/network/firewallpolicyrulegroups.go @@ -244,6 +244,7 @@ func (client FirewallPolicyRuleGroupsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client FirewallPolicyRuleGroupsClient) List(ctx context.Context, resourceG result.fprglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "List", resp, "Failure responding to request") + return } if result.fprglr.hasNextLink() && result.fprglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client FirewallPolicyRuleGroupsClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/flowlogs.go b/services/network/mgmt/2020-04-01/network/flowlogs.go index 8199227b6d6e..3a6d84c59f3f 100644 --- a/services/network/mgmt/2020-04-01/network/flowlogs.go +++ b/services/network/mgmt/2020-04-01/network/flowlogs.go @@ -240,6 +240,7 @@ func (client FlowLogsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client FlowLogsClient) List(ctx context.Context, resourceGroupName string, result.fllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "List", resp, "Failure responding to request") + return } if result.fllr.hasNextLink() && result.fllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client FlowLogsClient) listNextResults(ctx context.Context, lastResults Fl result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/hubroutetables.go b/services/network/mgmt/2020-04-01/network/hubroutetables.go index c31db7a97467..be3b0ee23271 100644 --- a/services/network/mgmt/2020-04-01/network/hubroutetables.go +++ b/services/network/mgmt/2020-04-01/network/hubroutetables.go @@ -231,6 +231,7 @@ func (client HubRouteTablesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubRouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client HubRouteTablesClient) List(ctx context.Context, resourceGroupName s result.lhrtr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubRouteTablesClient", "List", resp, "Failure responding to request") + return } if result.lhrtr.hasNextLink() && result.lhrtr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client HubRouteTablesClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubRouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2020-04-01/network/hubvirtualnetworkconnections.go index 04d8233c4346..7bd2cfe7bb2a 100644 --- a/services/network/mgmt/2020-04-01/network/hubvirtualnetworkconnections.go +++ b/services/network/mgmt/2020-04-01/network/hubvirtualnetworkconnections.go @@ -74,6 +74,7 @@ func (client HubVirtualNetworkConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client HubVirtualNetworkConnectionsClient) List(ctx context.Context, resou result.lhvncr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "List", resp, "Failure responding to request") + return } if result.lhvncr.hasNextLink() && result.lhvncr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client HubVirtualNetworkConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/inboundnatrules.go b/services/network/mgmt/2020-04-01/network/inboundnatrules.go index 1229d25c8db0..7e792bfbaaeb 100644 --- a/services/network/mgmt/2020-04-01/network/inboundnatrules.go +++ b/services/network/mgmt/2020-04-01/network/inboundnatrules.go @@ -252,6 +252,7 @@ func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -332,6 +333,7 @@ func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName result.inrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return } if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -396,6 +398,7 @@ func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/interfaceipconfigurations.go b/services/network/mgmt/2020-04-01/network/interfaceipconfigurations.go index 7c90b19fb1a4..dec65414733d 100644 --- a/services/network/mgmt/2020-04-01/network/interfaceipconfigurations.go +++ b/services/network/mgmt/2020-04-01/network/interfaceipconfigurations.go @@ -74,6 +74,7 @@ func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resource result.iiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/interfaceloadbalancers.go b/services/network/mgmt/2020-04-01/network/interfaceloadbalancers.go index 8afc7d5df43a..fcd9f00278ea 100644 --- a/services/network/mgmt/2020-04-01/network/interfaceloadbalancers.go +++ b/services/network/mgmt/2020-04-01/network/interfaceloadbalancers.go @@ -74,6 +74,7 @@ func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGro result.ilblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/interfacesgroup.go b/services/network/mgmt/2020-04-01/network/interfacesgroup.go index 0b4d405c0141..9e8a8593ee2a 100644 --- a/services/network/mgmt/2020-04-01/network/interfacesgroup.go +++ b/services/network/mgmt/2020-04-01/network/interfacesgroup.go @@ -226,6 +226,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -384,6 +385,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx cont result, err = client.GetVirtualMachineScaleSetIPConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure responding to request") + return } return @@ -468,6 +470,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -548,6 +551,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -611,6 +615,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -660,6 +665,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -722,6 +728,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -853,6 +860,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx co result.iiclr, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -922,6 +930,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetIPConfigurationsNextRes result, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -974,6 +983,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1038,6 +1048,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1092,6 +1103,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1157,6 +1169,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1209,6 +1222,7 @@ func (client InterfacesClient) UpdateTags(ctx context.Context, resourceGroupName result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/interfacetapconfigurations.go b/services/network/mgmt/2020-04-01/network/interfacetapconfigurations.go index d6ad8a3eea06..13228991868e 100644 --- a/services/network/mgmt/2020-04-01/network/interfacetapconfigurations.go +++ b/services/network/mgmt/2020-04-01/network/interfacetapconfigurations.go @@ -268,6 +268,7 @@ func (client InterfaceTapConfigurationsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +346,7 @@ func (client InterfaceTapConfigurationsClient) List(ctx context.Context, resourc result.itclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.itclr.hasNextLink() && result.itclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -409,6 +411,7 @@ func (client InterfaceTapConfigurationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/ipallocations.go b/services/network/mgmt/2020-04-01/network/ipallocations.go index 28cd9e45c467..8b005d82d12f 100644 --- a/services/network/mgmt/2020-04-01/network/ipallocations.go +++ b/services/network/mgmt/2020-04-01/network/ipallocations.go @@ -226,6 +226,7 @@ func (client IPAllocationsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client IPAllocationsClient) List(ctx context.Context) (result IPAllocation result.ialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "List", resp, "Failure responding to request") + return } if result.ialr.hasNextLink() && result.ialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client IPAllocationsClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client IPAllocationsClient) ListByResourceGroup(ctx context.Context, resou result.ialr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ialr.hasNextLink() && result.ialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client IPAllocationsClient) listByResourceGroupNextResults(ctx context.Con result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client IPAllocationsClient) UpdateTags(ctx context.Context, resourceGroupN result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/ipgroups.go b/services/network/mgmt/2020-04-01/network/ipgroups.go index 7d403caa3ce8..d6e9c72daef7 100644 --- a/services/network/mgmt/2020-04-01/network/ipgroups.go +++ b/services/network/mgmt/2020-04-01/network/ipgroups.go @@ -227,6 +227,7 @@ func (client IPGroupsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client IPGroupsClient) List(ctx context.Context) (result IPGroupListResult result.iglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "List", resp, "Failure responding to request") + return } if result.iglr.hasNextLink() && result.iglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -365,6 +367,7 @@ func (client IPGroupsClient) listNextResults(ctx context.Context, lastResults IP result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client IPGroupsClient) ListByResourceGroup(ctx context.Context, resourceGr result.iglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.iglr.hasNextLink() && result.iglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client IPGroupsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +536,7 @@ func (client IPGroupsClient) UpdateGroups(ctx context.Context, resourceGroupName result, err = client.UpdateGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "UpdateGroups", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2020-04-01/network/loadbalancerbackendaddresspools.go index f6e56ca48274..cc64568ad960 100644 --- a/services/network/mgmt/2020-04-01/network/loadbalancerbackendaddresspools.go +++ b/services/network/mgmt/2020-04-01/network/loadbalancerbackendaddresspools.go @@ -232,6 +232,7 @@ func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, re result.lbbaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return } if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2020-04-01/network/loadbalancerfrontendipconfigurations.go index 5bde248d0a0b..bb467da56515 100644 --- a/services/network/mgmt/2020-04-01/network/loadbalancerfrontendipconfigurations.go +++ b/services/network/mgmt/2020-04-01/network/loadbalancerfrontendipconfigurations.go @@ -75,6 +75,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Contex result.lbficlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2020-04-01/network/loadbalancerloadbalancingrules.go index 8ac7f6bc6332..e270685a26b6 100644 --- a/services/network/mgmt/2020-04-01/network/loadbalancerloadbalancingrules.go +++ b/services/network/mgmt/2020-04-01/network/loadbalancerloadbalancingrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, res result.lblbrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return } if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2020-04-01/network/loadbalancernetworkinterfaces.go index 05cafdffb6cc..a5890afdc81a 100644 --- a/services/network/mgmt/2020-04-01/network/loadbalancernetworkinterfaces.go +++ b/services/network/mgmt/2020-04-01/network/loadbalancernetworkinterfaces.go @@ -74,6 +74,7 @@ func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, reso result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2020-04-01/network/loadbalanceroutboundrules.go index bd5e3469d1b2..9ff081d705e4 100644 --- a/services/network/mgmt/2020-04-01/network/loadbalanceroutboundrules.go +++ b/services/network/mgmt/2020-04-01/network/loadbalanceroutboundrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerOutboundRulesClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerOutboundRulesClient) List(ctx context.Context, resource result.lborlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "List", resp, "Failure responding to request") + return } if result.lborlr.hasNextLink() && result.lborlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerOutboundRulesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/loadbalancerprobes.go b/services/network/mgmt/2020-04-01/network/loadbalancerprobes.go index 113ff74b73f1..fd23191f37f9 100644 --- a/services/network/mgmt/2020-04-01/network/loadbalancerprobes.go +++ b/services/network/mgmt/2020-04-01/network/loadbalancerprobes.go @@ -74,6 +74,7 @@ func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupNa result.lbplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return } if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/loadbalancers.go b/services/network/mgmt/2020-04-01/network/loadbalancers.go index 2c0aee1866c6..037fe8fd2919 100644 --- a/services/network/mgmt/2020-04-01/network/loadbalancers.go +++ b/services/network/mgmt/2020-04-01/network/loadbalancers.go @@ -226,6 +226,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client LoadBalancersClient) UpdateTags(ctx context.Context, resourceGroupN result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/localnetworkgateways.go b/services/network/mgmt/2020-04-01/network/localnetworkgateways.go index 8726a8765f61..125eeefc1da7 100644 --- a/services/network/mgmt/2020-04-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2020-04-01/network/localnetworkgateways.go @@ -254,6 +254,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -329,6 +330,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -392,6 +394,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -450,6 +453,7 @@ func (client LocalNetworkGatewaysClient) UpdateTags(ctx context.Context, resourc result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/natgateways.go b/services/network/mgmt/2020-04-01/network/natgateways.go index baf8aaa42679..d603e0d24d33 100644 --- a/services/network/mgmt/2020-04-01/network/natgateways.go +++ b/services/network/mgmt/2020-04-01/network/natgateways.go @@ -226,6 +226,7 @@ func (client NatGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client NatGatewaysClient) List(ctx context.Context, resourceGroupName stri result.nglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "List", resp, "Failure responding to request") + return } if result.nglr.hasNextLink() && result.nglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client NatGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client NatGatewaysClient) ListAll(ctx context.Context) (result NatGatewayL result.nglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.nglr.hasNextLink() && result.nglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client NatGatewaysClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client NatGatewaysClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/operations.go b/services/network/mgmt/2020-04-01/network/operations.go index 3798c5c79fb7..027f6b1650af 100644 --- a/services/network/mgmt/2020-04-01/network/operations.go +++ b/services/network/mgmt/2020-04-01/network/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/p2svpngateways.go b/services/network/mgmt/2020-04-01/network/p2svpngateways.go index 6197991ab940..ec42410971a4 100644 --- a/services/network/mgmt/2020-04-01/network/p2svpngateways.go +++ b/services/network/mgmt/2020-04-01/network/p2svpngateways.go @@ -381,6 +381,7 @@ func (client P2sVpnGatewaysClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -609,6 +610,7 @@ func (client P2sVpnGatewaysClient) List(ctx context.Context) (result ListP2SVpnG result.lpvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -671,6 +673,7 @@ func (client P2sVpnGatewaysClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -722,6 +725,7 @@ func (client P2sVpnGatewaysClient) ListByResourceGroup(ctx context.Context, reso result.lpvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -785,6 +789,7 @@ func (client P2sVpnGatewaysClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -837,6 +842,7 @@ func (client P2sVpnGatewaysClient) UpdateTags(ctx context.Context, resourceGroup result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/packetcaptures.go b/services/network/mgmt/2020-04-01/network/packetcaptures.go index 3f418e193a8f..77c3e1943050 100644 --- a/services/network/mgmt/2020-04-01/network/packetcaptures.go +++ b/services/network/mgmt/2020-04-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/peerexpressroutecircuitconnections.go b/services/network/mgmt/2020-04-01/network/peerexpressroutecircuitconnections.go index 80e7252e56c0..fb43ff092151 100644 --- a/services/network/mgmt/2020-04-01/network/peerexpressroutecircuitconnections.go +++ b/services/network/mgmt/2020-04-01/network/peerexpressroutecircuitconnections.go @@ -76,6 +76,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) List(ctx context.Context, result.percclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.percclr.hasNextLink() && result.percclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -220,6 +222,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) listNextResults(ctx conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/privatednszonegroups.go b/services/network/mgmt/2020-04-01/network/privatednszonegroups.go index 4fa3d863a511..a86d7d286b2f 100644 --- a/services/network/mgmt/2020-04-01/network/privatednszonegroups.go +++ b/services/network/mgmt/2020-04-01/network/privatednszonegroups.go @@ -231,6 +231,7 @@ func (client PrivateDNSZoneGroupsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client PrivateDNSZoneGroupsClient) List(ctx context.Context, privateEndpoi result.pdzglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsClient", "List", resp, "Failure responding to request") + return } if result.pdzglr.hasNextLink() && result.pdzglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client PrivateDNSZoneGroupsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/privateendpoints.go b/services/network/mgmt/2020-04-01/network/privateendpoints.go index 760a84b1b017..674a71ab200a 100644 --- a/services/network/mgmt/2020-04-01/network/privateendpoints.go +++ b/services/network/mgmt/2020-04-01/network/privateendpoints.go @@ -227,6 +227,7 @@ func (client PrivateEndpointsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client PrivateEndpointsClient) List(ctx context.Context, resourceGroupName result.pelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "List", resp, "Failure responding to request") + return } if result.pelr.hasNextLink() && result.pelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client PrivateEndpointsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client PrivateEndpointsClient) ListBySubscription(ctx context.Context) (re result.pelr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.pelr.hasNextLink() && result.pelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client PrivateEndpointsClient) listBySubscriptionNextResults(ctx context.C result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/privatelinkservices.go b/services/network/mgmt/2020-04-01/network/privatelinkservices.go index a4467bcc81e4..93b454436a66 100644 --- a/services/network/mgmt/2020-04-01/network/privatelinkservices.go +++ b/services/network/mgmt/2020-04-01/network/privatelinkservices.go @@ -458,6 +458,7 @@ func (client PrivateLinkServicesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -539,6 +540,7 @@ func (client PrivateLinkServicesClient) GetPrivateEndpointConnection(ctx context result, err = client.GetPrivateEndpointConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "GetPrivateEndpointConnection", resp, "Failure responding to request") + return } return @@ -618,6 +620,7 @@ func (client PrivateLinkServicesClient) List(ctx context.Context, resourceGroupN result.plslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "List", resp, "Failure responding to request") + return } if result.plslr.hasNextLink() && result.plslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -681,6 +684,7 @@ func (client PrivateLinkServicesClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -733,6 +737,7 @@ func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServices(ctx result.aaplsr, err = client.ListAutoApprovedPrivateLinkServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServices", resp, "Failure responding to request") + return } if result.aaplsr.hasNextLink() && result.aaplsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -796,6 +801,7 @@ func (client PrivateLinkServicesClient) listAutoApprovedPrivateLinkServicesNextR result, err = client.ListAutoApprovedPrivateLinkServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesNextResults", resp, "Failure responding to next results request") + return } return } @@ -849,6 +855,7 @@ func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByRes result.aaplsr, err = client.ListAutoApprovedPrivateLinkServicesByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServicesByResourceGroup", resp, "Failure responding to request") + return } if result.aaplsr.hasNextLink() && result.aaplsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -913,6 +920,7 @@ func (client PrivateLinkServicesClient) listAutoApprovedPrivateLinkServicesByRes result, err = client.ListAutoApprovedPrivateLinkServicesByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -962,6 +970,7 @@ func (client PrivateLinkServicesClient) ListBySubscription(ctx context.Context) result.plslr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.plslr.hasNextLink() && result.plslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1024,6 +1033,7 @@ func (client PrivateLinkServicesClient) listBySubscriptionNextResults(ctx contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1076,6 +1086,7 @@ func (client PrivateLinkServicesClient) ListPrivateEndpointConnections(ctx conte result.peclr, err = client.ListPrivateEndpointConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListPrivateEndpointConnections", resp, "Failure responding to request") + return } if result.peclr.hasNextLink() && result.peclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1140,6 +1151,7 @@ func (client PrivateLinkServicesClient) listPrivateEndpointConnectionsNextResult result, err = client.ListPrivateEndpointConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listPrivateEndpointConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1194,6 +1206,7 @@ func (client PrivateLinkServicesClient) UpdatePrivateEndpointConnection(ctx cont result, err = client.UpdatePrivateEndpointConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "UpdatePrivateEndpointConnection", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/profiles.go b/services/network/mgmt/2020-04-01/network/profiles.go index 3a4085d7fd86..8ec1466a0937 100644 --- a/services/network/mgmt/2020-04-01/network/profiles.go +++ b/services/network/mgmt/2020-04-01/network/profiles.go @@ -73,6 +73,7 @@ func (client ProfilesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -226,6 +227,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +306,7 @@ func (client ProfilesClient) List(ctx context.Context, resourceGroupName string) result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +370,7 @@ func (client ProfilesClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +420,7 @@ func (client ProfilesClient) ListAll(ctx context.Context) (result ProfileListRes result.plr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "ListAll", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +483,7 @@ func (client ProfilesClient) listAllNextResults(ctx context.Context, lastResults result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +536,7 @@ func (client ProfilesClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/publicipaddresses.go b/services/network/mgmt/2020-04-01/network/publicipaddresses.go index 0aa2924f10d3..c2338adc9988 100644 --- a/services/network/mgmt/2020-04-01/network/publicipaddresses.go +++ b/services/network/mgmt/2020-04-01/network/publicipaddresses.go @@ -239,6 +239,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -404,6 +406,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -467,6 +470,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -516,6 +520,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -578,6 +583,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -631,6 +637,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -695,6 +702,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -751,6 +759,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -818,6 +827,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -870,6 +880,7 @@ func (client PublicIPAddressesClient) UpdateTags(ctx context.Context, resourceGr result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/publicipprefixes.go b/services/network/mgmt/2020-04-01/network/publicipprefixes.go index 50de796789e9..d6dfa3d06ccb 100644 --- a/services/network/mgmt/2020-04-01/network/publicipprefixes.go +++ b/services/network/mgmt/2020-04-01/network/publicipprefixes.go @@ -227,6 +227,7 @@ func (client PublicIPPrefixesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client PublicIPPrefixesClient) List(ctx context.Context, resourceGroupName result.piplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "List", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client PublicIPPrefixesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client PublicIPPrefixesClient) ListAll(ctx context.Context) (result Public result.piplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "ListAll", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client PublicIPPrefixesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +536,7 @@ func (client PublicIPPrefixesClient) UpdateTags(ctx context.Context, resourceGro result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/resourcenavigationlinks.go b/services/network/mgmt/2020-04-01/network/resourcenavigationlinks.go index 1b50e3010613..754f1615d17b 100644 --- a/services/network/mgmt/2020-04-01/network/resourcenavigationlinks.go +++ b/services/network/mgmt/2020-04-01/network/resourcenavigationlinks.go @@ -74,6 +74,7 @@ func (client ResourceNavigationLinksClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ResourceNavigationLinksClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/routefilterrules.go b/services/network/mgmt/2020-04-01/network/routefilterrules.go index 554fb73dafbb..58ac005dd37f 100644 --- a/services/network/mgmt/2020-04-01/network/routefilterrules.go +++ b/services/network/mgmt/2020-04-01/network/routefilterrules.go @@ -241,6 +241,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/routefilters.go b/services/network/mgmt/2020-04-01/network/routefilters.go index 6c518966cbf2..ef851c163b2c 100644 --- a/services/network/mgmt/2020-04-01/network/routefilters.go +++ b/services/network/mgmt/2020-04-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client RouteFiltersClient) UpdateTags(ctx context.Context, resourceGroupNa result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/routes.go b/services/network/mgmt/2020-04-01/network/routes.go index 6f06c211c16c..c6e2a224771b 100644 --- a/services/network/mgmt/2020-04-01/network/routes.go +++ b/services/network/mgmt/2020-04-01/network/routes.go @@ -230,6 +230,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/routetables.go b/services/network/mgmt/2020-04-01/network/routetables.go index 653a8d5c227c..ed49cf27e981 100644 --- a/services/network/mgmt/2020-04-01/network/routetables.go +++ b/services/network/mgmt/2020-04-01/network/routetables.go @@ -226,6 +226,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client RouteTablesClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/securitygroups.go b/services/network/mgmt/2020-04-01/network/securitygroups.go index f27d1ef6cf79..35fc25971ba2 100644 --- a/services/network/mgmt/2020-04-01/network/securitygroups.go +++ b/services/network/mgmt/2020-04-01/network/securitygroups.go @@ -226,6 +226,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client SecurityGroupsClient) UpdateTags(ctx context.Context, resourceGroup result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/securitypartnerproviders.go b/services/network/mgmt/2020-04-01/network/securitypartnerproviders.go index 91ab3031ce69..919a5ff05409 100644 --- a/services/network/mgmt/2020-04-01/network/securitypartnerproviders.go +++ b/services/network/mgmt/2020-04-01/network/securitypartnerproviders.go @@ -226,6 +226,7 @@ func (client SecurityPartnerProvidersClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client SecurityPartnerProvidersClient) List(ctx context.Context) (result S result.spplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "List", resp, "Failure responding to request") + return } if result.spplr.hasNextLink() && result.spplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -361,6 +363,7 @@ func (client SecurityPartnerProvidersClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client SecurityPartnerProvidersClient) ListByResourceGroup(ctx context.Con result.spplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.spplr.hasNextLink() && result.spplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client SecurityPartnerProvidersClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -527,6 +532,7 @@ func (client SecurityPartnerProvidersClient) UpdateTags(ctx context.Context, res result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/securityrules.go b/services/network/mgmt/2020-04-01/network/securityrules.go index 47935198a23c..6393b5f622c8 100644 --- a/services/network/mgmt/2020-04-01/network/securityrules.go +++ b/services/network/mgmt/2020-04-01/network/securityrules.go @@ -230,6 +230,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/serviceassociationlinks.go b/services/network/mgmt/2020-04-01/network/serviceassociationlinks.go index d8bf97af8e2e..b1196da0e35e 100644 --- a/services/network/mgmt/2020-04-01/network/serviceassociationlinks.go +++ b/services/network/mgmt/2020-04-01/network/serviceassociationlinks.go @@ -74,6 +74,7 @@ func (client ServiceAssociationLinksClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceAssociationLinksClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/serviceendpointpolicies.go b/services/network/mgmt/2020-04-01/network/serviceendpointpolicies.go index 0ec62a25d095..298f342acbb5 100644 --- a/services/network/mgmt/2020-04-01/network/serviceendpointpolicies.go +++ b/services/network/mgmt/2020-04-01/network/serviceendpointpolicies.go @@ -227,6 +227,7 @@ func (client ServiceEndpointPoliciesClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client ServiceEndpointPoliciesClient) List(ctx context.Context) (result Se result.seplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "List", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -365,6 +367,7 @@ func (client ServiceEndpointPoliciesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Cont result.seplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client ServiceEndpointPoliciesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +536,7 @@ func (client ServiceEndpointPoliciesClient) UpdateTags(ctx context.Context, reso result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2020-04-01/network/serviceendpointpolicydefinitions.go index c339842156a8..624663da7702 100644 --- a/services/network/mgmt/2020-04-01/network/serviceendpointpolicydefinitions.go +++ b/services/network/mgmt/2020-04-01/network/serviceendpointpolicydefinitions.go @@ -232,6 +232,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) ListByResourceGroup(ctx con result.sepdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sepdlr.hasNextLink() && result.sepdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) listByResourceGroupNextResu result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/servicetags.go b/services/network/mgmt/2020-04-01/network/servicetags.go index 878f19a74854..79f79aad48bb 100644 --- a/services/network/mgmt/2020-04-01/network/servicetags.go +++ b/services/network/mgmt/2020-04-01/network/servicetags.go @@ -73,6 +73,7 @@ func (client ServiceTagsClient) List(ctx context.Context, location string) (resu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceTagsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/subnets.go b/services/network/mgmt/2020-04-01/network/subnets.go index 08f860683a36..6df35a7c1cfa 100644 --- a/services/network/mgmt/2020-04-01/network/subnets.go +++ b/services/network/mgmt/2020-04-01/network/subnets.go @@ -231,6 +231,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/usages.go b/services/network/mgmt/2020-04-01/network/usages.go index a7ba40691a51..e0d785265b7f 100644 --- a/services/network/mgmt/2020-04-01/network/usages.go +++ b/services/network/mgmt/2020-04-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/virtualappliances.go b/services/network/mgmt/2020-04-01/network/virtualappliances.go index fc9ba246a95c..e67788de3c8a 100644 --- a/services/network/mgmt/2020-04-01/network/virtualappliances.go +++ b/services/network/mgmt/2020-04-01/network/virtualappliances.go @@ -239,6 +239,7 @@ func (client VirtualAppliancesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client VirtualAppliancesClient) List(ctx context.Context) (result VirtualA result.valr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "List", resp, "Failure responding to request") + return } if result.valr.hasNextLink() && result.valr.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +379,7 @@ func (client VirtualAppliancesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -428,6 +431,7 @@ func (client VirtualAppliancesClient) ListByResourceGroup(ctx context.Context, r result.valr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.valr.hasNextLink() && result.valr.IsEmpty() { err = result.NextWithContext(ctx) @@ -491,6 +495,7 @@ func (client VirtualAppliancesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -543,6 +548,7 @@ func (client VirtualAppliancesClient) UpdateTags(ctx context.Context, resourceGr result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/virtualhubroutetablev2s.go b/services/network/mgmt/2020-04-01/network/virtualhubroutetablev2s.go index 3588358fe35f..0c8b027a16c5 100644 --- a/services/network/mgmt/2020-04-01/network/virtualhubroutetablev2s.go +++ b/services/network/mgmt/2020-04-01/network/virtualhubroutetablev2s.go @@ -232,6 +232,7 @@ func (client VirtualHubRouteTableV2sClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client VirtualHubRouteTableV2sClient) List(ctx context.Context, resourceGr result.lvhrtvr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "List", resp, "Failure responding to request") + return } if result.lvhrtvr.hasNextLink() && result.lvhrtvr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client VirtualHubRouteTableV2sClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/virtualhubs.go b/services/network/mgmt/2020-04-01/network/virtualhubs.go index 7e73e4f0d62f..098c16f18356 100644 --- a/services/network/mgmt/2020-04-01/network/virtualhubs.go +++ b/services/network/mgmt/2020-04-01/network/virtualhubs.go @@ -225,6 +225,7 @@ func (client VirtualHubsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualHubsClient) List(ctx context.Context) (result ListVirtualHub result.lvhr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "List", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualHubsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualHubsClient) ListByResourceGroup(ctx context.Context, resourc result.lvhr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualHubsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +531,7 @@ func (client VirtualHubsClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2020-04-01/network/virtualnetworkgatewayconnections.go index 42ddfbccbe3e..8ef9dacad40b 100644 --- a/services/network/mgmt/2020-04-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2020-04-01/network/virtualnetworkgatewayconnections.go @@ -264,6 +264,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -416,6 +418,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +482,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/virtualnetworkgateways.go b/services/network/mgmt/2020-04-01/network/virtualnetworkgateways.go index c134e1f7f471..7b3242bbbcaf 100644 --- a/services/network/mgmt/2020-04-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2020-04-01/network/virtualnetworkgateways.go @@ -476,6 +476,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -1013,6 +1014,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1076,6 +1078,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1128,6 +1131,7 @@ func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, result.vnglcr, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return } if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1192,6 +1196,7 @@ func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx contex result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1644,6 +1649,7 @@ func (client VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Conte result, err = client.SupportedVpnDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", resp, "Failure responding to request") + return } return @@ -1799,6 +1805,7 @@ func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx cont result, err = client.VpnDeviceConfigurationScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2020-04-01/network/virtualnetworkpeerings.go index f545ab999203..bac979c5771c 100644 --- a/services/network/mgmt/2020-04-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2020-04-01/network/virtualnetworkpeerings.go @@ -232,6 +232,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/virtualnetworks.go b/services/network/mgmt/2020-04-01/network/virtualnetworks.go index 7440bda1b8af..0005de8e3797 100644 --- a/services/network/mgmt/2020-04-01/network/virtualnetworks.go +++ b/services/network/mgmt/2020-04-01/network/virtualnetworks.go @@ -74,6 +74,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -313,6 +314,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -503,6 +507,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -565,6 +570,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -617,6 +623,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -681,6 +688,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } @@ -733,6 +741,7 @@ func (client VirtualNetworksClient) UpdateTags(ctx context.Context, resourceGrou result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/virtualnetworktaps.go b/services/network/mgmt/2020-04-01/network/virtualnetworktaps.go index cf11a0483cfd..7ff4860cfcb2 100644 --- a/services/network/mgmt/2020-04-01/network/virtualnetworktaps.go +++ b/services/network/mgmt/2020-04-01/network/virtualnetworktaps.go @@ -258,6 +258,7 @@ func (client VirtualNetworkTapsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "Get", resp, "Failure responding to request") + return } return @@ -331,6 +332,7 @@ func (client VirtualNetworkTapsClient) ListAll(ctx context.Context) (result Virt result.vntlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListAll", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -393,6 +395,7 @@ func (client VirtualNetworkTapsClient) listAllNextResults(ctx context.Context, l result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -444,6 +447,7 @@ func (client VirtualNetworkTapsClient) ListByResourceGroup(ctx context.Context, result.vntlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -507,6 +511,7 @@ func (client VirtualNetworkTapsClient) listByResourceGroupNextResults(ctx contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -559,6 +564,7 @@ func (client VirtualNetworkTapsClient) UpdateTags(ctx context.Context, resourceG result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/virtualrouterpeerings.go b/services/network/mgmt/2020-04-01/network/virtualrouterpeerings.go index 1018b4ad53a0..4ba3639c5f63 100644 --- a/services/network/mgmt/2020-04-01/network/virtualrouterpeerings.go +++ b/services/network/mgmt/2020-04-01/network/virtualrouterpeerings.go @@ -244,6 +244,7 @@ func (client VirtualRouterPeeringsClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client VirtualRouterPeeringsClient) List(ctx context.Context, resourceGrou result.vrplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vrplr.hasNextLink() && result.vrplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client VirtualRouterPeeringsClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/virtualrouters.go b/services/network/mgmt/2020-04-01/network/virtualrouters.go index 1488c0257156..0111d7476533 100644 --- a/services/network/mgmt/2020-04-01/network/virtualrouters.go +++ b/services/network/mgmt/2020-04-01/network/virtualrouters.go @@ -238,6 +238,7 @@ func (client VirtualRoutersClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client VirtualRoutersClient) List(ctx context.Context) (result VirtualRout result.vrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "List", resp, "Failure responding to request") + return } if result.vrlr.hasNextLink() && result.vrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -376,6 +378,7 @@ func (client VirtualRoutersClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -427,6 +430,7 @@ func (client VirtualRoutersClient) ListByResourceGroup(ctx context.Context, reso result.vrlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vrlr.hasNextLink() && result.vrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -490,6 +494,7 @@ func (client VirtualRoutersClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/virtualwans.go b/services/network/mgmt/2020-04-01/network/virtualwans.go index f28903b3ede0..566ad1690488 100644 --- a/services/network/mgmt/2020-04-01/network/virtualwans.go +++ b/services/network/mgmt/2020-04-01/network/virtualwans.go @@ -225,6 +225,7 @@ func (client VirtualWansClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualWansClient) List(ctx context.Context) (result ListVirtualWAN result.lvwnr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "List", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualWansClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualWansClient) ListByResourceGroup(ctx context.Context, resourc result.lvwnr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualWansClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +531,7 @@ func (client VirtualWansClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/vpnconnections.go b/services/network/mgmt/2020-04-01/network/vpnconnections.go index 9d4dd92d6605..49111f7a834d 100644 --- a/services/network/mgmt/2020-04-01/network/vpnconnections.go +++ b/services/network/mgmt/2020-04-01/network/vpnconnections.go @@ -231,6 +231,7 @@ func (client VpnConnectionsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VpnConnectionsClient) ListByVpnGateway(ctx context.Context, resourc result.lvcr, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "ListByVpnGateway", resp, "Failure responding to request") + return } if result.lvcr.hasNextLink() && result.lvcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VpnConnectionsClient) listByVpnGatewayNextResults(ctx context.Conte result, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "listByVpnGatewayNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/vpngateways.go b/services/network/mgmt/2020-04-01/network/vpngateways.go index 41f448960272..ee8e6783a38f 100644 --- a/services/network/mgmt/2020-04-01/network/vpngateways.go +++ b/services/network/mgmt/2020-04-01/network/vpngateways.go @@ -239,6 +239,7 @@ func (client VpnGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client VpnGatewaysClient) List(ctx context.Context) (result ListVpnGateway result.lvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client VpnGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -425,6 +428,7 @@ func (client VpnGatewaysClient) ListByResourceGroup(ctx context.Context, resourc result.lvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -488,6 +492,7 @@ func (client VpnGatewaysClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -615,6 +620,7 @@ func (client VpnGatewaysClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/vpnlinkconnections.go b/services/network/mgmt/2020-04-01/network/vpnlinkconnections.go index b3b2c5033b94..d9bff9ea7512 100644 --- a/services/network/mgmt/2020-04-01/network/vpnlinkconnections.go +++ b/services/network/mgmt/2020-04-01/network/vpnlinkconnections.go @@ -75,6 +75,7 @@ func (client VpnLinkConnectionsClient) ListByVpnConnection(ctx context.Context, result.lvslcr, err = client.ListByVpnConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnLinkConnectionsClient", "ListByVpnConnection", resp, "Failure responding to request") + return } if result.lvslcr.hasNextLink() && result.lvslcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -140,6 +141,7 @@ func (client VpnLinkConnectionsClient) listByVpnConnectionNextResults(ctx contex result, err = client.ListByVpnConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnLinkConnectionsClient", "listByVpnConnectionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/vpnserverconfigurations.go b/services/network/mgmt/2020-04-01/network/vpnserverconfigurations.go index 2b2732064d01..f558dff07271 100644 --- a/services/network/mgmt/2020-04-01/network/vpnserverconfigurations.go +++ b/services/network/mgmt/2020-04-01/network/vpnserverconfigurations.go @@ -227,6 +227,7 @@ func (client VpnServerConfigurationsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client VpnServerConfigurationsClient) List(ctx context.Context) (result Li result.lvscr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lvscr.hasNextLink() && result.lvscr.IsEmpty() { err = result.NextWithContext(ctx) @@ -362,6 +364,7 @@ func (client VpnServerConfigurationsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client VpnServerConfigurationsClient) ListByResourceGroup(ctx context.Cont result.lvscr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvscr.hasNextLink() && result.lvscr.IsEmpty() { err = result.NextWithContext(ctx) @@ -476,6 +480,7 @@ func (client VpnServerConfigurationsClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -528,6 +533,7 @@ func (client VpnServerConfigurationsClient) UpdateTags(ctx context.Context, reso result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/vpnsitelinkconnections.go b/services/network/mgmt/2020-04-01/network/vpnsitelinkconnections.go index b816c3d0a488..420df9e9154c 100644 --- a/services/network/mgmt/2020-04-01/network/vpnsitelinkconnections.go +++ b/services/network/mgmt/2020-04-01/network/vpnsitelinkconnections.go @@ -75,6 +75,7 @@ func (client VpnSiteLinkConnectionsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinkConnectionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/vpnsitelinks.go b/services/network/mgmt/2020-04-01/network/vpnsitelinks.go index 32a34fa6b974..d3ec246de9e7 100644 --- a/services/network/mgmt/2020-04-01/network/vpnsitelinks.go +++ b/services/network/mgmt/2020-04-01/network/vpnsitelinks.go @@ -73,6 +73,7 @@ func (client VpnSiteLinksClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client VpnSiteLinksClient) ListByVpnSite(ctx context.Context, resourceGrou result.lvslr, err = client.ListByVpnSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "ListByVpnSite", resp, "Failure responding to request") + return } if result.lvslr.hasNextLink() && result.lvslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -214,6 +216,7 @@ func (client VpnSiteLinksClient) listByVpnSiteNextResults(ctx context.Context, l result, err = client.ListByVpnSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "listByVpnSiteNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-04-01/network/vpnsites.go b/services/network/mgmt/2020-04-01/network/vpnsites.go index a13c19e53a3b..fbaf5a8d77d5 100644 --- a/services/network/mgmt/2020-04-01/network/vpnsites.go +++ b/services/network/mgmt/2020-04-01/network/vpnsites.go @@ -239,6 +239,7 @@ func (client VpnSitesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client VpnSitesClient) List(ctx context.Context) (result ListVpnSitesResul result.lvsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "List", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client VpnSitesClient) listNextResults(ctx context.Context, lastResults Li result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -425,6 +428,7 @@ func (client VpnSitesClient) ListByResourceGroup(ctx context.Context, resourceGr result.lvsr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -488,6 +492,7 @@ func (client VpnSitesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -540,6 +545,7 @@ func (client VpnSitesClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/watchers.go b/services/network/mgmt/2020-04-01/network/watchers.go index d9d15e4d1bb6..5410be7206ef 100644 --- a/services/network/mgmt/2020-04-01/network/watchers.go +++ b/services/network/mgmt/2020-04-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -313,6 +314,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -736,6 +738,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -1068,6 +1071,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -1139,6 +1143,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return @@ -1380,6 +1385,7 @@ func (client WatchersClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-04-01/network/webapplicationfirewallpolicies.go b/services/network/mgmt/2020-04-01/network/webapplicationfirewallpolicies.go index 1209dc46fad0..53fbcc73ea51 100644 --- a/services/network/mgmt/2020-04-01/network/webapplicationfirewallpolicies.go +++ b/services/network/mgmt/2020-04-01/network/webapplicationfirewallpolicies.go @@ -94,6 +94,7 @@ func (client WebApplicationFirewallPoliciesClient) CreateOrUpdate(ctx context.Co result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -258,6 +259,7 @@ func (client WebApplicationFirewallPoliciesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -333,6 +335,7 @@ func (client WebApplicationFirewallPoliciesClient) List(ctx context.Context, res result.wafplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "List", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -396,6 +399,7 @@ func (client WebApplicationFirewallPoliciesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +449,7 @@ func (client WebApplicationFirewallPoliciesClient) ListAll(ctx context.Context) result.wafplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "ListAll", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -507,6 +512,7 @@ func (client WebApplicationFirewallPoliciesClient) listAllNextResults(ctx contex result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/applicationgatewayprivateendpointconnections.go b/services/network/mgmt/2020-05-01/network/applicationgatewayprivateendpointconnections.go index ecb0eda06b2f..df1f54c7e084 100644 --- a/services/network/mgmt/2020-05-01/network/applicationgatewayprivateendpointconnections.go +++ b/services/network/mgmt/2020-05-01/network/applicationgatewayprivateendpointconnections.go @@ -151,6 +151,7 @@ func (client ApplicationGatewayPrivateEndpointConnectionsClient) Get(ctx context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -228,6 +229,7 @@ func (client ApplicationGatewayPrivateEndpointConnectionsClient) List(ctx contex result.agpeclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateEndpointConnectionsClient", "List", resp, "Failure responding to request") + return } if result.agpeclr.hasNextLink() && result.agpeclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -292,6 +294,7 @@ func (client ApplicationGatewayPrivateEndpointConnectionsClient) listNextResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateEndpointConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/applicationgatewayprivatelinkresources.go b/services/network/mgmt/2020-05-01/network/applicationgatewayprivatelinkresources.go index 2f7d4f10d004..63d23d82c525 100644 --- a/services/network/mgmt/2020-05-01/network/applicationgatewayprivatelinkresources.go +++ b/services/network/mgmt/2020-05-01/network/applicationgatewayprivatelinkresources.go @@ -75,6 +75,7 @@ func (client ApplicationGatewayPrivateLinkResourcesClient) List(ctx context.Cont result.agplrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateLinkResourcesClient", "List", resp, "Failure responding to request") + return } if result.agplrlr.hasNextLink() && result.agplrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client ApplicationGatewayPrivateLinkResourcesClient) listNextResults(ctx c result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateLinkResourcesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/applicationgateways.go b/services/network/mgmt/2020-05-01/network/applicationgateways.go index 665e637c0a77..0ee9b5cf6601 100644 --- a/services/network/mgmt/2020-05-01/network/applicationgateways.go +++ b/services/network/mgmt/2020-05-01/network/applicationgateways.go @@ -417,6 +417,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -491,6 +492,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte result, err = client.GetSslPredefinedPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return } return @@ -565,6 +567,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -628,6 +631,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -677,6 +681,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -739,6 +744,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -787,6 +793,7 @@ func (client ApplicationGatewaysClient) ListAvailableRequestHeaders(ctx context. result, err = client.ListAvailableRequestHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableRequestHeaders", resp, "Failure responding to request") + return } return @@ -857,6 +864,7 @@ func (client ApplicationGatewaysClient) ListAvailableResponseHeaders(ctx context result, err = client.ListAvailableResponseHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableResponseHeaders", resp, "Failure responding to request") + return } return @@ -927,6 +935,7 @@ func (client ApplicationGatewaysClient) ListAvailableServerVariables(ctx context result, err = client.ListAvailableServerVariablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableServerVariables", resp, "Failure responding to request") + return } return @@ -997,6 +1006,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont result, err = client.ListAvailableSslOptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return } return @@ -1068,6 +1078,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return } if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { err = result.NextWithContext(ctx) @@ -1130,6 +1141,7 @@ func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextRe result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1178,6 +1190,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return @@ -1400,6 +1413,7 @@ func (client ApplicationGatewaysClient) UpdateTags(ctx context.Context, resource result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/applicationsecuritygroups.go b/services/network/mgmt/2020-05-01/network/applicationsecuritygroups.go index cfd58cf65e3e..080a84f110b8 100644 --- a/services/network/mgmt/2020-05-01/network/applicationsecuritygroups.go +++ b/services/network/mgmt/2020-05-01/network/applicationsecuritygroups.go @@ -226,6 +226,7 @@ func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resource result.asglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ApplicationSecurityGroupsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (resu result.asglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ApplicationSecurityGroupsClient) listAllNextResults(ctx context.Con result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -527,6 +532,7 @@ func (client ApplicationSecurityGroupsClient) UpdateTags(ctx context.Context, re result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/availabledelegations.go b/services/network/mgmt/2020-05-01/network/availabledelegations.go index 2e154c2cb4c1..ce8341bcbeaa 100644 --- a/services/network/mgmt/2020-05-01/network/availabledelegations.go +++ b/services/network/mgmt/2020-05-01/network/availabledelegations.go @@ -73,6 +73,7 @@ func (client AvailableDelegationsClient) List(ctx context.Context, location stri result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableDelegationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/availableendpointservices.go b/services/network/mgmt/2020-05-01/network/availableendpointservices.go index 08bcca2b69f7..400b425e002b 100644 --- a/services/network/mgmt/2020-05-01/network/availableendpointservices.go +++ b/services/network/mgmt/2020-05-01/network/availableendpointservices.go @@ -73,6 +73,7 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableEndpointServicesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/availableprivateendpointtypes.go b/services/network/mgmt/2020-05-01/network/availableprivateendpointtypes.go index 6965e8076270..c9e88444dc03 100644 --- a/services/network/mgmt/2020-05-01/network/availableprivateendpointtypes.go +++ b/services/network/mgmt/2020-05-01/network/availableprivateendpointtypes.go @@ -73,6 +73,7 @@ func (client AvailablePrivateEndpointTypesClient) List(ctx context.Context, loca result.apetr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "List", resp, "Failure responding to request") + return } if result.apetr.hasNextLink() && result.apetr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailablePrivateEndpointTypesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -189,6 +191,7 @@ func (client AvailablePrivateEndpointTypesClient) ListByResourceGroup(ctx contex result.apetr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.apetr.hasNextLink() && result.apetr.IsEmpty() { err = result.NextWithContext(ctx) @@ -253,6 +256,7 @@ func (client AvailablePrivateEndpointTypesClient) listByResourceGroupNextResults result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2020-05-01/network/availableresourcegroupdelegations.go index 33281c64bac7..e02b5cc177c4 100644 --- a/services/network/mgmt/2020-05-01/network/availableresourcegroupdelegations.go +++ b/services/network/mgmt/2020-05-01/network/availableresourcegroupdelegations.go @@ -75,6 +75,7 @@ func (client AvailableResourceGroupDelegationsClient) List(ctx context.Context, result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client AvailableResourceGroupDelegationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/availableservicealiases.go b/services/network/mgmt/2020-05-01/network/availableservicealiases.go index f12131a8ecaf..9c3096cbcea4 100644 --- a/services/network/mgmt/2020-05-01/network/availableservicealiases.go +++ b/services/network/mgmt/2020-05-01/network/availableservicealiases.go @@ -73,6 +73,7 @@ func (client AvailableServiceAliasesClient) List(ctx context.Context, location s result.asar, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "List", resp, "Failure responding to request") + return } if result.asar.hasNextLink() && result.asar.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableServiceAliasesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -188,6 +190,7 @@ func (client AvailableServiceAliasesClient) ListByResourceGroup(ctx context.Cont result.asar, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.asar.hasNextLink() && result.asar.IsEmpty() { err = result.NextWithContext(ctx) @@ -252,6 +255,7 @@ func (client AvailableServiceAliasesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2020-05-01/network/azurefirewallfqdntags.go index 0847448662f8..a05da84b842e 100644 --- a/services/network/mgmt/2020-05-01/network/azurefirewallfqdntags.go +++ b/services/network/mgmt/2020-05-01/network/azurefirewallfqdntags.go @@ -71,6 +71,7 @@ func (client AzureFirewallFqdnTagsClient) ListAll(ctx context.Context) (result A result.afftlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "ListAll", resp, "Failure responding to request") + return } if result.afftlr.hasNextLink() && result.afftlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client AzureFirewallFqdnTagsClient) listAllNextResults(ctx context.Context result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/azurefirewalls.go b/services/network/mgmt/2020-05-01/network/azurefirewalls.go index 1c4a99f7204d..0a96d80cd9a3 100644 --- a/services/network/mgmt/2020-05-01/network/azurefirewalls.go +++ b/services/network/mgmt/2020-05-01/network/azurefirewalls.go @@ -233,6 +233,7 @@ func (client AzureFirewallsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client AzureFirewallsClient) List(ctx context.Context, resourceGroupName s result.aflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "List", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client AzureFirewallsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -420,6 +423,7 @@ func (client AzureFirewallsClient) ListAll(ctx context.Context) (result AzureFir result.aflr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "ListAll", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -482,6 +486,7 @@ func (client AzureFirewallsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/bastionhosts.go b/services/network/mgmt/2020-05-01/network/bastionhosts.go index cc307c0f1647..0e3b4e8b0d15 100644 --- a/services/network/mgmt/2020-05-01/network/bastionhosts.go +++ b/services/network/mgmt/2020-05-01/network/bastionhosts.go @@ -225,6 +225,7 @@ func (client BastionHostsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client BastionHostsClient) List(ctx context.Context) (result BastionHostLi result.bhlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "List", resp, "Failure responding to request") + return } if result.bhlr.hasNextLink() && result.bhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client BastionHostsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client BastionHostsClient) ListByResourceGroup(ctx context.Context, resour result.bhlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.bhlr.hasNextLink() && result.bhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client BastionHostsClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/bgpservicecommunities.go b/services/network/mgmt/2020-05-01/network/bgpservicecommunities.go index cacf6fe415f9..117abf4fd33f 100644 --- a/services/network/mgmt/2020-05-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2020-05-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/client.go b/services/network/mgmt/2020-05-01/network/client.go index 1395931e9ed0..1d4bead52572 100644 --- a/services/network/mgmt/2020-05-01/network/client.go +++ b/services/network/mgmt/2020-05-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return @@ -241,6 +242,7 @@ func (client BaseClient) DisconnectActiveSessions(ctx context.Context, resourceG result.bsdr, err = client.DisconnectActiveSessionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "DisconnectActiveSessions", resp, "Failure responding to request") + return } if result.bsdr.hasNextLink() && result.bsdr.IsEmpty() { err = result.NextWithContext(ctx) @@ -307,6 +309,7 @@ func (client BaseClient) disconnectActiveSessionsNextResults(ctx context.Context result, err = client.DisconnectActiveSessionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "disconnectActiveSessionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -555,6 +558,7 @@ func (client BaseClient) GetBastionShareableLink(ctx context.Context, resourceGr result.bsllr, err = client.GetBastionShareableLinkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "GetBastionShareableLink", resp, "Failure responding to request") + return } if result.bsllr.hasNextLink() && result.bsllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -621,6 +625,7 @@ func (client BaseClient) getBastionShareableLinkNextResults(ctx context.Context, result, err = client.GetBastionShareableLinkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "getBastionShareableLinkNextResults", resp, "Failure responding to next results request") + return } return } @@ -791,6 +796,7 @@ func (client BaseClient) SupportedSecurityProviders(ctx context.Context, resourc result, err = client.SupportedSecurityProvidersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "SupportedSecurityProviders", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/connectionmonitors.go b/services/network/mgmt/2020-05-01/network/connectionmonitors.go index 02bc417d6308..0e6aea6abbc0 100644 --- a/services/network/mgmt/2020-05-01/network/connectionmonitors.go +++ b/services/network/mgmt/2020-05-01/network/connectionmonitors.go @@ -240,6 +240,7 @@ func (client ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client ConnectionMonitorsClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure responding to request") + return } return @@ -622,6 +624,7 @@ func (client ConnectionMonitorsClient) UpdateTags(ctx context.Context, resourceG result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/ddoscustompolicies.go b/services/network/mgmt/2020-05-01/network/ddoscustompolicies.go index a9db54875529..5ce7e3a5a5d5 100644 --- a/services/network/mgmt/2020-05-01/network/ddoscustompolicies.go +++ b/services/network/mgmt/2020-05-01/network/ddoscustompolicies.go @@ -226,6 +226,7 @@ func (client DdosCustomPoliciesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DdosCustomPoliciesClient) UpdateTags(ctx context.Context, resourceG result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/ddosprotectionplans.go b/services/network/mgmt/2020-05-01/network/ddosprotectionplans.go index 791ab96f025c..f4cb31253e42 100644 --- a/services/network/mgmt/2020-05-01/network/ddosprotectionplans.go +++ b/services/network/mgmt/2020-05-01/network/ddosprotectionplans.go @@ -229,6 +229,7 @@ func (client DdosProtectionPlansClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DdosProtectionPlansClient) List(ctx context.Context) (result DdosPr result.dpplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client DdosProtectionPlansClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, result.dpplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client DdosProtectionPlansClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client DdosProtectionPlansClient) UpdateTags(ctx context.Context, resource result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/defaultsecurityrules.go b/services/network/mgmt/2020-05-01/network/defaultsecurityrules.go index 9e4b1ed7005c..254e799fde51 100644 --- a/services/network/mgmt/2020-05-01/network/defaultsecurityrules.go +++ b/services/network/mgmt/2020-05-01/network/defaultsecurityrules.go @@ -74,6 +74,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2020-05-01/network/expressroutecircuitauthorizations.go index 4760b1f77094..068a65ac1471 100644 --- a/services/network/mgmt/2020-05-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2020-05-01/network/expressroutecircuitauthorizations.go @@ -234,6 +234,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2020-05-01/network/expressroutecircuitconnections.go index 68510ab34b1f..84d5e2677f71 100644 --- a/services/network/mgmt/2020-05-01/network/expressroutecircuitconnections.go +++ b/services/network/mgmt/2020-05-01/network/expressroutecircuitconnections.go @@ -238,6 +238,7 @@ func (client ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ExpressRouteCircuitConnectionsClient) List(ctx context.Context, res result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client ExpressRouteCircuitConnectionsClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2020-05-01/network/expressroutecircuitpeerings.go index ac5dcc83142f..6a5d2f849928 100644 --- a/services/network/mgmt/2020-05-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2020-05-01/network/expressroutecircuitpeerings.go @@ -244,6 +244,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/expressroutecircuits.go b/services/network/mgmt/2020-05-01/network/expressroutecircuits.go index c2166c43c00f..481d37c35c1a 100644 --- a/services/network/mgmt/2020-05-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2020-05-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -918,6 +925,7 @@ func (client ExpressRouteCircuitsClient) UpdateTags(ctx context.Context, resourc result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/expressrouteconnections.go b/services/network/mgmt/2020-05-01/network/expressrouteconnections.go index 512a8aae437e..02c039e71936 100644 --- a/services/network/mgmt/2020-05-01/network/expressrouteconnections.go +++ b/services/network/mgmt/2020-05-01/network/expressrouteconnections.go @@ -239,6 +239,7 @@ func (client ExpressRouteConnectionsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client ExpressRouteConnectionsClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2020-05-01/network/expressroutecrossconnectionpeerings.go index 3669d6ae770a..962e561d3d00 100644 --- a/services/network/mgmt/2020-05-01/network/expressroutecrossconnectionpeerings.go +++ b/services/network/mgmt/2020-05-01/network/expressroutecrossconnectionpeerings.go @@ -245,6 +245,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context result.erccpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "List", resp, "Failure responding to request") + return } if result.erccpl.hasNextLink() && result.erccpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) listNextResults(ctx cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/expressroutecrossconnections.go b/services/network/mgmt/2020-05-01/network/expressroutecrossconnections.go index 758b70a85b35..31461620ae37 100644 --- a/services/network/mgmt/2020-05-01/network/expressroutecrossconnections.go +++ b/services/network/mgmt/2020-05-01/network/expressroutecrossconnections.go @@ -152,6 +152,7 @@ func (client ExpressRouteCrossConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ExpressRouteCrossConnectionsClient) List(ctx context.Context) (resu result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -287,6 +289,7 @@ func (client ExpressRouteCrossConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -418,6 +421,7 @@ func (client ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context result.ercclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +485,7 @@ func (client ExpressRouteCrossConnectionsClient) listByResourceGroupNextResults( result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -693,6 +698,7 @@ func (client ExpressRouteCrossConnectionsClient) UpdateTags(ctx context.Context, result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/expressroutegateways.go b/services/network/mgmt/2020-05-01/network/expressroutegateways.go index d4b879830a1a..75f0aa02269e 100644 --- a/services/network/mgmt/2020-05-01/network/expressroutegateways.go +++ b/services/network/mgmt/2020-05-01/network/expressroutegateways.go @@ -235,6 +235,7 @@ func (client ExpressRouteGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client ExpressRouteGatewaysClient) ListByResourceGroup(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -380,6 +382,7 @@ func (client ExpressRouteGatewaysClient) ListBySubscription(ctx context.Context) result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/expressroutelinks.go b/services/network/mgmt/2020-05-01/network/expressroutelinks.go index 452bdb0d1e24..362f84dfa27a 100644 --- a/services/network/mgmt/2020-05-01/network/expressroutelinks.go +++ b/services/network/mgmt/2020-05-01/network/expressroutelinks.go @@ -74,6 +74,7 @@ func (client ExpressRouteLinksClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ExpressRouteLinksClient) List(ctx context.Context, resourceGroupNam result.erllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "List", resp, "Failure responding to request") + return } if result.erllr.hasNextLink() && result.erllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client ExpressRouteLinksClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/expressrouteports.go b/services/network/mgmt/2020-05-01/network/expressrouteports.go index 0b6860379779..222fdbd81828 100644 --- a/services/network/mgmt/2020-05-01/network/expressrouteports.go +++ b/services/network/mgmt/2020-05-01/network/expressrouteports.go @@ -226,6 +226,7 @@ func (client ExpressRoutePortsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client ExpressRoutePortsClient) List(ctx context.Context) (result ExpressR result.erplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "List", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -361,6 +363,7 @@ func (client ExpressRoutePortsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, r result.erplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ExpressRoutePortsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -527,6 +532,7 @@ func (client ExpressRoutePortsClient) UpdateTags(ctx context.Context, resourceGr result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/expressrouteportslocations.go b/services/network/mgmt/2020-05-01/network/expressrouteportslocations.go index ba9645d8365c..631d334e4538 100644 --- a/services/network/mgmt/2020-05-01/network/expressrouteportslocations.go +++ b/services/network/mgmt/2020-05-01/network/expressrouteportslocations.go @@ -73,6 +73,7 @@ func (client ExpressRoutePortsLocationsClient) Get(ctx context.Context, location result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client ExpressRoutePortsLocationsClient) List(ctx context.Context) (result result.erpllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "List", resp, "Failure responding to request") + return } if result.erpllr.hasNextLink() && result.erpllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -208,6 +210,7 @@ func (client ExpressRoutePortsLocationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2020-05-01/network/expressrouteserviceproviders.go index ec95c2117cea..c8bb2330411b 100644 --- a/services/network/mgmt/2020-05-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2020-05-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/firewallpolicies.go b/services/network/mgmt/2020-05-01/network/firewallpolicies.go index 21263fdf5ff2..aa1d40448e66 100644 --- a/services/network/mgmt/2020-05-01/network/firewallpolicies.go +++ b/services/network/mgmt/2020-05-01/network/firewallpolicies.go @@ -227,6 +227,7 @@ func (client FirewallPoliciesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client FirewallPoliciesClient) List(ctx context.Context, resourceGroupName result.fplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "List", resp, "Failure responding to request") + return } if result.fplr.hasNextLink() && result.fplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client FirewallPoliciesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client FirewallPoliciesClient) ListAll(ctx context.Context) (result Firewa result.fplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "ListAll", resp, "Failure responding to request") + return } if result.fplr.hasNextLink() && result.fplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client FirewallPoliciesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/firewallpolicyrulecollectiongroups.go b/services/network/mgmt/2020-05-01/network/firewallpolicyrulecollectiongroups.go index 878ba122f238..a883a111e151 100644 --- a/services/network/mgmt/2020-05-01/network/firewallpolicyrulecollectiongroups.go +++ b/services/network/mgmt/2020-05-01/network/firewallpolicyrulecollectiongroups.go @@ -245,6 +245,7 @@ func (client FirewallPolicyRuleCollectionGroupsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleCollectionGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client FirewallPolicyRuleCollectionGroupsClient) List(ctx context.Context, result.fprcglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleCollectionGroupsClient", "List", resp, "Failure responding to request") + return } if result.fprcglr.hasNextLink() && result.fprcglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client FirewallPolicyRuleCollectionGroupsClient) listNextResults(ctx conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleCollectionGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/flowlogs.go b/services/network/mgmt/2020-05-01/network/flowlogs.go index f101f34d9cdf..b29a03f0ae1a 100644 --- a/services/network/mgmt/2020-05-01/network/flowlogs.go +++ b/services/network/mgmt/2020-05-01/network/flowlogs.go @@ -240,6 +240,7 @@ func (client FlowLogsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client FlowLogsClient) List(ctx context.Context, resourceGroupName string, result.fllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "List", resp, "Failure responding to request") + return } if result.fllr.hasNextLink() && result.fllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client FlowLogsClient) listNextResults(ctx context.Context, lastResults Fl result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/hubroutetables.go b/services/network/mgmt/2020-05-01/network/hubroutetables.go index e9d0153b7bc6..c00604964a36 100644 --- a/services/network/mgmt/2020-05-01/network/hubroutetables.go +++ b/services/network/mgmt/2020-05-01/network/hubroutetables.go @@ -231,6 +231,7 @@ func (client HubRouteTablesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubRouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client HubRouteTablesClient) List(ctx context.Context, resourceGroupName s result.lhrtr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubRouteTablesClient", "List", resp, "Failure responding to request") + return } if result.lhrtr.hasNextLink() && result.lhrtr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client HubRouteTablesClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubRouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2020-05-01/network/hubvirtualnetworkconnections.go index 7de4d0fcb07e..1f0cb275ff11 100644 --- a/services/network/mgmt/2020-05-01/network/hubvirtualnetworkconnections.go +++ b/services/network/mgmt/2020-05-01/network/hubvirtualnetworkconnections.go @@ -232,6 +232,7 @@ func (client HubVirtualNetworkConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client HubVirtualNetworkConnectionsClient) List(ctx context.Context, resou result.lhvncr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "List", resp, "Failure responding to request") + return } if result.lhvncr.hasNextLink() && result.lhvncr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client HubVirtualNetworkConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/inboundnatrules.go b/services/network/mgmt/2020-05-01/network/inboundnatrules.go index 7016cd9ee89b..466801fd103e 100644 --- a/services/network/mgmt/2020-05-01/network/inboundnatrules.go +++ b/services/network/mgmt/2020-05-01/network/inboundnatrules.go @@ -252,6 +252,7 @@ func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -332,6 +333,7 @@ func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName result.inrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return } if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -396,6 +398,7 @@ func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/interfaceipconfigurations.go b/services/network/mgmt/2020-05-01/network/interfaceipconfigurations.go index b9a0abe207b0..e569d4a0ac29 100644 --- a/services/network/mgmt/2020-05-01/network/interfaceipconfigurations.go +++ b/services/network/mgmt/2020-05-01/network/interfaceipconfigurations.go @@ -74,6 +74,7 @@ func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resource result.iiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/interfaceloadbalancers.go b/services/network/mgmt/2020-05-01/network/interfaceloadbalancers.go index 21606b461a34..61e5d5a2fdb9 100644 --- a/services/network/mgmt/2020-05-01/network/interfaceloadbalancers.go +++ b/services/network/mgmt/2020-05-01/network/interfaceloadbalancers.go @@ -74,6 +74,7 @@ func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGro result.ilblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/interfacesgroup.go b/services/network/mgmt/2020-05-01/network/interfacesgroup.go index 598d7b59a059..b4cad63d8944 100644 --- a/services/network/mgmt/2020-05-01/network/interfacesgroup.go +++ b/services/network/mgmt/2020-05-01/network/interfacesgroup.go @@ -226,6 +226,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -384,6 +385,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx cont result, err = client.GetVirtualMachineScaleSetIPConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure responding to request") + return } return @@ -468,6 +470,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -548,6 +551,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -611,6 +615,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -660,6 +665,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -722,6 +728,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -853,6 +860,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx co result.iiclr, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -922,6 +930,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetIPConfigurationsNextRes result, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -974,6 +983,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1038,6 +1048,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1092,6 +1103,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1157,6 +1169,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1209,6 +1222,7 @@ func (client InterfacesClient) UpdateTags(ctx context.Context, resourceGroupName result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/interfacetapconfigurations.go b/services/network/mgmt/2020-05-01/network/interfacetapconfigurations.go index 13c6723dbdd9..fddf71f2bed5 100644 --- a/services/network/mgmt/2020-05-01/network/interfacetapconfigurations.go +++ b/services/network/mgmt/2020-05-01/network/interfacetapconfigurations.go @@ -268,6 +268,7 @@ func (client InterfaceTapConfigurationsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +346,7 @@ func (client InterfaceTapConfigurationsClient) List(ctx context.Context, resourc result.itclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.itclr.hasNextLink() && result.itclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -409,6 +411,7 @@ func (client InterfaceTapConfigurationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/ipallocations.go b/services/network/mgmt/2020-05-01/network/ipallocations.go index e198341de33c..8e6d5f8291d6 100644 --- a/services/network/mgmt/2020-05-01/network/ipallocations.go +++ b/services/network/mgmt/2020-05-01/network/ipallocations.go @@ -226,6 +226,7 @@ func (client IPAllocationsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client IPAllocationsClient) List(ctx context.Context) (result IPAllocation result.ialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "List", resp, "Failure responding to request") + return } if result.ialr.hasNextLink() && result.ialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client IPAllocationsClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client IPAllocationsClient) ListByResourceGroup(ctx context.Context, resou result.ialr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ialr.hasNextLink() && result.ialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client IPAllocationsClient) listByResourceGroupNextResults(ctx context.Con result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client IPAllocationsClient) UpdateTags(ctx context.Context, resourceGroupN result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/ipgroups.go b/services/network/mgmt/2020-05-01/network/ipgroups.go index 10950c035b73..fb0c2ca4361a 100644 --- a/services/network/mgmt/2020-05-01/network/ipgroups.go +++ b/services/network/mgmt/2020-05-01/network/ipgroups.go @@ -227,6 +227,7 @@ func (client IPGroupsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client IPGroupsClient) List(ctx context.Context) (result IPGroupListResult result.iglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "List", resp, "Failure responding to request") + return } if result.iglr.hasNextLink() && result.iglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -365,6 +367,7 @@ func (client IPGroupsClient) listNextResults(ctx context.Context, lastResults IP result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client IPGroupsClient) ListByResourceGroup(ctx context.Context, resourceGr result.iglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.iglr.hasNextLink() && result.iglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client IPGroupsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +536,7 @@ func (client IPGroupsClient) UpdateGroups(ctx context.Context, resourceGroupName result, err = client.UpdateGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "UpdateGroups", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2020-05-01/network/loadbalancerbackendaddresspools.go index 0ea6f60b4490..0c6576191fe9 100644 --- a/services/network/mgmt/2020-05-01/network/loadbalancerbackendaddresspools.go +++ b/services/network/mgmt/2020-05-01/network/loadbalancerbackendaddresspools.go @@ -232,6 +232,7 @@ func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, re result.lbbaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return } if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2020-05-01/network/loadbalancerfrontendipconfigurations.go index 193b3af07908..b13fee8ce37c 100644 --- a/services/network/mgmt/2020-05-01/network/loadbalancerfrontendipconfigurations.go +++ b/services/network/mgmt/2020-05-01/network/loadbalancerfrontendipconfigurations.go @@ -75,6 +75,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Contex result.lbficlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2020-05-01/network/loadbalancerloadbalancingrules.go index 7238cca7b2f6..3388f8094810 100644 --- a/services/network/mgmt/2020-05-01/network/loadbalancerloadbalancingrules.go +++ b/services/network/mgmt/2020-05-01/network/loadbalancerloadbalancingrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, res result.lblbrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return } if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2020-05-01/network/loadbalancernetworkinterfaces.go index 4614cebe04c5..4765e02ec5b6 100644 --- a/services/network/mgmt/2020-05-01/network/loadbalancernetworkinterfaces.go +++ b/services/network/mgmt/2020-05-01/network/loadbalancernetworkinterfaces.go @@ -74,6 +74,7 @@ func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, reso result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2020-05-01/network/loadbalanceroutboundrules.go index 5cf36ef458ab..63db3753ea42 100644 --- a/services/network/mgmt/2020-05-01/network/loadbalanceroutboundrules.go +++ b/services/network/mgmt/2020-05-01/network/loadbalanceroutboundrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerOutboundRulesClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerOutboundRulesClient) List(ctx context.Context, resource result.lborlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "List", resp, "Failure responding to request") + return } if result.lborlr.hasNextLink() && result.lborlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerOutboundRulesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/loadbalancerprobes.go b/services/network/mgmt/2020-05-01/network/loadbalancerprobes.go index 466b19f6d499..e1c87818f405 100644 --- a/services/network/mgmt/2020-05-01/network/loadbalancerprobes.go +++ b/services/network/mgmt/2020-05-01/network/loadbalancerprobes.go @@ -74,6 +74,7 @@ func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupNa result.lbplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return } if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/loadbalancers.go b/services/network/mgmt/2020-05-01/network/loadbalancers.go index c18d40cdef59..ba8d338ec644 100644 --- a/services/network/mgmt/2020-05-01/network/loadbalancers.go +++ b/services/network/mgmt/2020-05-01/network/loadbalancers.go @@ -226,6 +226,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client LoadBalancersClient) UpdateTags(ctx context.Context, resourceGroupN result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/localnetworkgateways.go b/services/network/mgmt/2020-05-01/network/localnetworkgateways.go index 787fb232ab84..d1605dd3b532 100644 --- a/services/network/mgmt/2020-05-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2020-05-01/network/localnetworkgateways.go @@ -254,6 +254,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -329,6 +330,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -392,6 +394,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -450,6 +453,7 @@ func (client LocalNetworkGatewaysClient) UpdateTags(ctx context.Context, resourc result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/natgateways.go b/services/network/mgmt/2020-05-01/network/natgateways.go index 80d280eabc0b..a2d5b11a8052 100644 --- a/services/network/mgmt/2020-05-01/network/natgateways.go +++ b/services/network/mgmt/2020-05-01/network/natgateways.go @@ -226,6 +226,7 @@ func (client NatGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client NatGatewaysClient) List(ctx context.Context, resourceGroupName stri result.nglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "List", resp, "Failure responding to request") + return } if result.nglr.hasNextLink() && result.nglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client NatGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client NatGatewaysClient) ListAll(ctx context.Context) (result NatGatewayL result.nglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.nglr.hasNextLink() && result.nglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client NatGatewaysClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client NatGatewaysClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/operations.go b/services/network/mgmt/2020-05-01/network/operations.go index 98b82052ddb0..f36bc5ba20df 100644 --- a/services/network/mgmt/2020-05-01/network/operations.go +++ b/services/network/mgmt/2020-05-01/network/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/p2svpngateways.go b/services/network/mgmt/2020-05-01/network/p2svpngateways.go index a7e3a9834ede..e722118e3208 100644 --- a/services/network/mgmt/2020-05-01/network/p2svpngateways.go +++ b/services/network/mgmt/2020-05-01/network/p2svpngateways.go @@ -381,6 +381,7 @@ func (client P2sVpnGatewaysClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -609,6 +610,7 @@ func (client P2sVpnGatewaysClient) List(ctx context.Context) (result ListP2SVpnG result.lpvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -671,6 +673,7 @@ func (client P2sVpnGatewaysClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -722,6 +725,7 @@ func (client P2sVpnGatewaysClient) ListByResourceGroup(ctx context.Context, reso result.lpvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -785,6 +789,7 @@ func (client P2sVpnGatewaysClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -837,6 +842,7 @@ func (client P2sVpnGatewaysClient) UpdateTags(ctx context.Context, resourceGroup result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/packetcaptures.go b/services/network/mgmt/2020-05-01/network/packetcaptures.go index fa69ef02845d..b44d140af789 100644 --- a/services/network/mgmt/2020-05-01/network/packetcaptures.go +++ b/services/network/mgmt/2020-05-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/peerexpressroutecircuitconnections.go b/services/network/mgmt/2020-05-01/network/peerexpressroutecircuitconnections.go index 3d1f538e3525..4a485f39f2a3 100644 --- a/services/network/mgmt/2020-05-01/network/peerexpressroutecircuitconnections.go +++ b/services/network/mgmt/2020-05-01/network/peerexpressroutecircuitconnections.go @@ -76,6 +76,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) List(ctx context.Context, result.percclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.percclr.hasNextLink() && result.percclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -220,6 +222,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) listNextResults(ctx conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/privatednszonegroups.go b/services/network/mgmt/2020-05-01/network/privatednszonegroups.go index 2caed81ffdce..03ed2ef33fb8 100644 --- a/services/network/mgmt/2020-05-01/network/privatednszonegroups.go +++ b/services/network/mgmt/2020-05-01/network/privatednszonegroups.go @@ -231,6 +231,7 @@ func (client PrivateDNSZoneGroupsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client PrivateDNSZoneGroupsClient) List(ctx context.Context, privateEndpoi result.pdzglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsClient", "List", resp, "Failure responding to request") + return } if result.pdzglr.hasNextLink() && result.pdzglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client PrivateDNSZoneGroupsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/privateendpoints.go b/services/network/mgmt/2020-05-01/network/privateendpoints.go index dcdf4d00418e..31f2b659fabe 100644 --- a/services/network/mgmt/2020-05-01/network/privateendpoints.go +++ b/services/network/mgmt/2020-05-01/network/privateendpoints.go @@ -227,6 +227,7 @@ func (client PrivateEndpointsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client PrivateEndpointsClient) List(ctx context.Context, resourceGroupName result.pelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "List", resp, "Failure responding to request") + return } if result.pelr.hasNextLink() && result.pelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client PrivateEndpointsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client PrivateEndpointsClient) ListBySubscription(ctx context.Context) (re result.pelr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.pelr.hasNextLink() && result.pelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client PrivateEndpointsClient) listBySubscriptionNextResults(ctx context.C result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/privatelinkservices.go b/services/network/mgmt/2020-05-01/network/privatelinkservices.go index 5b3b1dd8ddb6..f8fe9669c3b9 100644 --- a/services/network/mgmt/2020-05-01/network/privatelinkservices.go +++ b/services/network/mgmt/2020-05-01/network/privatelinkservices.go @@ -458,6 +458,7 @@ func (client PrivateLinkServicesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -539,6 +540,7 @@ func (client PrivateLinkServicesClient) GetPrivateEndpointConnection(ctx context result, err = client.GetPrivateEndpointConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "GetPrivateEndpointConnection", resp, "Failure responding to request") + return } return @@ -618,6 +620,7 @@ func (client PrivateLinkServicesClient) List(ctx context.Context, resourceGroupN result.plslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "List", resp, "Failure responding to request") + return } if result.plslr.hasNextLink() && result.plslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -681,6 +684,7 @@ func (client PrivateLinkServicesClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -733,6 +737,7 @@ func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServices(ctx result.aaplsr, err = client.ListAutoApprovedPrivateLinkServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServices", resp, "Failure responding to request") + return } if result.aaplsr.hasNextLink() && result.aaplsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -796,6 +801,7 @@ func (client PrivateLinkServicesClient) listAutoApprovedPrivateLinkServicesNextR result, err = client.ListAutoApprovedPrivateLinkServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesNextResults", resp, "Failure responding to next results request") + return } return } @@ -849,6 +855,7 @@ func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByRes result.aaplsr, err = client.ListAutoApprovedPrivateLinkServicesByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServicesByResourceGroup", resp, "Failure responding to request") + return } if result.aaplsr.hasNextLink() && result.aaplsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -913,6 +920,7 @@ func (client PrivateLinkServicesClient) listAutoApprovedPrivateLinkServicesByRes result, err = client.ListAutoApprovedPrivateLinkServicesByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -962,6 +970,7 @@ func (client PrivateLinkServicesClient) ListBySubscription(ctx context.Context) result.plslr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.plslr.hasNextLink() && result.plslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1024,6 +1033,7 @@ func (client PrivateLinkServicesClient) listBySubscriptionNextResults(ctx contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1076,6 +1086,7 @@ func (client PrivateLinkServicesClient) ListPrivateEndpointConnections(ctx conte result.peclr, err = client.ListPrivateEndpointConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListPrivateEndpointConnections", resp, "Failure responding to request") + return } if result.peclr.hasNextLink() && result.peclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1140,6 +1151,7 @@ func (client PrivateLinkServicesClient) listPrivateEndpointConnectionsNextResult result, err = client.ListPrivateEndpointConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listPrivateEndpointConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1194,6 +1206,7 @@ func (client PrivateLinkServicesClient) UpdatePrivateEndpointConnection(ctx cont result, err = client.UpdatePrivateEndpointConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "UpdatePrivateEndpointConnection", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/profiles.go b/services/network/mgmt/2020-05-01/network/profiles.go index 518aaab8a662..98d2b8dc44bc 100644 --- a/services/network/mgmt/2020-05-01/network/profiles.go +++ b/services/network/mgmt/2020-05-01/network/profiles.go @@ -73,6 +73,7 @@ func (client ProfilesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -226,6 +227,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +306,7 @@ func (client ProfilesClient) List(ctx context.Context, resourceGroupName string) result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +370,7 @@ func (client ProfilesClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +420,7 @@ func (client ProfilesClient) ListAll(ctx context.Context) (result ProfileListRes result.plr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "ListAll", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +483,7 @@ func (client ProfilesClient) listAllNextResults(ctx context.Context, lastResults result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +536,7 @@ func (client ProfilesClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/publicipaddresses.go b/services/network/mgmt/2020-05-01/network/publicipaddresses.go index 6f0fefe028f3..90606702c6c5 100644 --- a/services/network/mgmt/2020-05-01/network/publicipaddresses.go +++ b/services/network/mgmt/2020-05-01/network/publicipaddresses.go @@ -239,6 +239,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -404,6 +406,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -467,6 +470,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -516,6 +520,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -578,6 +583,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -631,6 +637,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -695,6 +702,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -751,6 +759,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -818,6 +827,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -870,6 +880,7 @@ func (client PublicIPAddressesClient) UpdateTags(ctx context.Context, resourceGr result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/publicipprefixes.go b/services/network/mgmt/2020-05-01/network/publicipprefixes.go index 3e60bd056afa..d22969a9686f 100644 --- a/services/network/mgmt/2020-05-01/network/publicipprefixes.go +++ b/services/network/mgmt/2020-05-01/network/publicipprefixes.go @@ -227,6 +227,7 @@ func (client PublicIPPrefixesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client PublicIPPrefixesClient) List(ctx context.Context, resourceGroupName result.piplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "List", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client PublicIPPrefixesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client PublicIPPrefixesClient) ListAll(ctx context.Context) (result Public result.piplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "ListAll", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client PublicIPPrefixesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +536,7 @@ func (client PublicIPPrefixesClient) UpdateTags(ctx context.Context, resourceGro result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/resourcenavigationlinks.go b/services/network/mgmt/2020-05-01/network/resourcenavigationlinks.go index 7b4aa722e913..bc9bc1f12aa3 100644 --- a/services/network/mgmt/2020-05-01/network/resourcenavigationlinks.go +++ b/services/network/mgmt/2020-05-01/network/resourcenavigationlinks.go @@ -74,6 +74,7 @@ func (client ResourceNavigationLinksClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ResourceNavigationLinksClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/routefilterrules.go b/services/network/mgmt/2020-05-01/network/routefilterrules.go index 8e2a05531610..4c6212980358 100644 --- a/services/network/mgmt/2020-05-01/network/routefilterrules.go +++ b/services/network/mgmt/2020-05-01/network/routefilterrules.go @@ -241,6 +241,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/routefilters.go b/services/network/mgmt/2020-05-01/network/routefilters.go index 4ff2c7c91466..8232b188d2b8 100644 --- a/services/network/mgmt/2020-05-01/network/routefilters.go +++ b/services/network/mgmt/2020-05-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client RouteFiltersClient) UpdateTags(ctx context.Context, resourceGroupNa result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/routes.go b/services/network/mgmt/2020-05-01/network/routes.go index ea6a9ca4ba15..9eb6f95f314c 100644 --- a/services/network/mgmt/2020-05-01/network/routes.go +++ b/services/network/mgmt/2020-05-01/network/routes.go @@ -230,6 +230,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/routetables.go b/services/network/mgmt/2020-05-01/network/routetables.go index 7f1fb97ff224..5d7938a9fd8f 100644 --- a/services/network/mgmt/2020-05-01/network/routetables.go +++ b/services/network/mgmt/2020-05-01/network/routetables.go @@ -226,6 +226,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client RouteTablesClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/securitygroups.go b/services/network/mgmt/2020-05-01/network/securitygroups.go index dac36a24c1fe..3018e277cc62 100644 --- a/services/network/mgmt/2020-05-01/network/securitygroups.go +++ b/services/network/mgmt/2020-05-01/network/securitygroups.go @@ -226,6 +226,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client SecurityGroupsClient) UpdateTags(ctx context.Context, resourceGroup result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/securitypartnerproviders.go b/services/network/mgmt/2020-05-01/network/securitypartnerproviders.go index d0d231ee1acd..6875a5def9b6 100644 --- a/services/network/mgmt/2020-05-01/network/securitypartnerproviders.go +++ b/services/network/mgmt/2020-05-01/network/securitypartnerproviders.go @@ -226,6 +226,7 @@ func (client SecurityPartnerProvidersClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client SecurityPartnerProvidersClient) List(ctx context.Context) (result S result.spplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "List", resp, "Failure responding to request") + return } if result.spplr.hasNextLink() && result.spplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -361,6 +363,7 @@ func (client SecurityPartnerProvidersClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client SecurityPartnerProvidersClient) ListByResourceGroup(ctx context.Con result.spplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.spplr.hasNextLink() && result.spplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client SecurityPartnerProvidersClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -527,6 +532,7 @@ func (client SecurityPartnerProvidersClient) UpdateTags(ctx context.Context, res result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/securityrules.go b/services/network/mgmt/2020-05-01/network/securityrules.go index dcca5420b7f0..aebc2ee17e3e 100644 --- a/services/network/mgmt/2020-05-01/network/securityrules.go +++ b/services/network/mgmt/2020-05-01/network/securityrules.go @@ -230,6 +230,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/serviceassociationlinks.go b/services/network/mgmt/2020-05-01/network/serviceassociationlinks.go index 2796b2ec8de8..ef79e154fe3c 100644 --- a/services/network/mgmt/2020-05-01/network/serviceassociationlinks.go +++ b/services/network/mgmt/2020-05-01/network/serviceassociationlinks.go @@ -74,6 +74,7 @@ func (client ServiceAssociationLinksClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceAssociationLinksClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/serviceendpointpolicies.go b/services/network/mgmt/2020-05-01/network/serviceendpointpolicies.go index 53875d20e2a3..f6cda8acd134 100644 --- a/services/network/mgmt/2020-05-01/network/serviceendpointpolicies.go +++ b/services/network/mgmt/2020-05-01/network/serviceendpointpolicies.go @@ -227,6 +227,7 @@ func (client ServiceEndpointPoliciesClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client ServiceEndpointPoliciesClient) List(ctx context.Context) (result Se result.seplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "List", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -365,6 +367,7 @@ func (client ServiceEndpointPoliciesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Cont result.seplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client ServiceEndpointPoliciesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +536,7 @@ func (client ServiceEndpointPoliciesClient) UpdateTags(ctx context.Context, reso result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2020-05-01/network/serviceendpointpolicydefinitions.go index 418ec6e8408a..b30e1337c569 100644 --- a/services/network/mgmt/2020-05-01/network/serviceendpointpolicydefinitions.go +++ b/services/network/mgmt/2020-05-01/network/serviceendpointpolicydefinitions.go @@ -232,6 +232,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) ListByResourceGroup(ctx con result.sepdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sepdlr.hasNextLink() && result.sepdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) listByResourceGroupNextResu result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/servicetags.go b/services/network/mgmt/2020-05-01/network/servicetags.go index aeb4778cd633..056364d6440f 100644 --- a/services/network/mgmt/2020-05-01/network/servicetags.go +++ b/services/network/mgmt/2020-05-01/network/servicetags.go @@ -73,6 +73,7 @@ func (client ServiceTagsClient) List(ctx context.Context, location string) (resu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceTagsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/subnets.go b/services/network/mgmt/2020-05-01/network/subnets.go index 2e5ec8357884..fb5d10b1b331 100644 --- a/services/network/mgmt/2020-05-01/network/subnets.go +++ b/services/network/mgmt/2020-05-01/network/subnets.go @@ -231,6 +231,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/usages.go b/services/network/mgmt/2020-05-01/network/usages.go index 0eb27609e97d..145482a7f938 100644 --- a/services/network/mgmt/2020-05-01/network/usages.go +++ b/services/network/mgmt/2020-05-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/virtualappliances.go b/services/network/mgmt/2020-05-01/network/virtualappliances.go index b764a5d0ee66..82c01000a254 100644 --- a/services/network/mgmt/2020-05-01/network/virtualappliances.go +++ b/services/network/mgmt/2020-05-01/network/virtualappliances.go @@ -239,6 +239,7 @@ func (client VirtualAppliancesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client VirtualAppliancesClient) List(ctx context.Context) (result VirtualA result.valr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "List", resp, "Failure responding to request") + return } if result.valr.hasNextLink() && result.valr.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +379,7 @@ func (client VirtualAppliancesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -428,6 +431,7 @@ func (client VirtualAppliancesClient) ListByResourceGroup(ctx context.Context, r result.valr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.valr.hasNextLink() && result.valr.IsEmpty() { err = result.NextWithContext(ctx) @@ -491,6 +495,7 @@ func (client VirtualAppliancesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -543,6 +548,7 @@ func (client VirtualAppliancesClient) UpdateTags(ctx context.Context, resourceGr result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/virtualappliancesites.go b/services/network/mgmt/2020-05-01/network/virtualappliancesites.go index 895116981315..c9cf246bc192 100644 --- a/services/network/mgmt/2020-05-01/network/virtualappliancesites.go +++ b/services/network/mgmt/2020-05-01/network/virtualappliancesites.go @@ -232,6 +232,7 @@ func (client VirtualApplianceSitesClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualApplianceSitesClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client VirtualApplianceSitesClient) List(ctx context.Context, resourceGrou result.vaslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualApplianceSitesClient", "List", resp, "Failure responding to request") + return } if result.vaslr.hasNextLink() && result.vaslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client VirtualApplianceSitesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualApplianceSitesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/virtualapplianceskus.go b/services/network/mgmt/2020-05-01/network/virtualapplianceskus.go index 6706e59adc10..2414b8701602 100644 --- a/services/network/mgmt/2020-05-01/network/virtualapplianceskus.go +++ b/services/network/mgmt/2020-05-01/network/virtualapplianceskus.go @@ -72,6 +72,7 @@ func (client VirtualApplianceSkusClient) Get(ctx context.Context, skuName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualApplianceSkusClient", "Get", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client VirtualApplianceSkusClient) List(ctx context.Context) (result Virtu result.vaslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualApplianceSkusClient", "List", resp, "Failure responding to request") + return } if result.vaslr.hasNextLink() && result.vaslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -206,6 +208,7 @@ func (client VirtualApplianceSkusClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualApplianceSkusClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/virtualhubbgpconnection.go b/services/network/mgmt/2020-05-01/network/virtualhubbgpconnection.go index 5b4d16267ad3..793682937962 100644 --- a/services/network/mgmt/2020-05-01/network/virtualhubbgpconnection.go +++ b/services/network/mgmt/2020-05-01/network/virtualhubbgpconnection.go @@ -245,6 +245,7 @@ func (client VirtualHubBgpConnectionClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/virtualhubbgpconnections.go b/services/network/mgmt/2020-05-01/network/virtualhubbgpconnections.go index 3b04b997b098..99f42375faa8 100644 --- a/services/network/mgmt/2020-05-01/network/virtualhubbgpconnections.go +++ b/services/network/mgmt/2020-05-01/network/virtualhubbgpconnections.go @@ -74,6 +74,7 @@ func (client VirtualHubBgpConnectionsClient) List(ctx context.Context, resourceG result.lvhbcr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionsClient", "List", resp, "Failure responding to request") + return } if result.lvhbcr.hasNextLink() && result.lvhbcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client VirtualHubBgpConnectionsClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/virtualhubipconfiguration.go b/services/network/mgmt/2020-05-01/network/virtualhubipconfiguration.go index 81a9a4962836..fa6b9085a920 100644 --- a/services/network/mgmt/2020-05-01/network/virtualhubipconfiguration.go +++ b/services/network/mgmt/2020-05-01/network/virtualhubipconfiguration.go @@ -249,6 +249,7 @@ func (client VirtualHubIPConfigurationClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubIPConfigurationClient", "Get", resp, "Failure responding to request") + return } return @@ -326,6 +327,7 @@ func (client VirtualHubIPConfigurationClient) List(ctx context.Context, resource result.lvhicr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubIPConfigurationClient", "List", resp, "Failure responding to request") + return } if result.lvhicr.hasNextLink() && result.lvhicr.IsEmpty() { err = result.NextWithContext(ctx) @@ -390,6 +392,7 @@ func (client VirtualHubIPConfigurationClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubIPConfigurationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/virtualhubroutetablev2s.go b/services/network/mgmt/2020-05-01/network/virtualhubroutetablev2s.go index b8726a587abc..41a51cdfad46 100644 --- a/services/network/mgmt/2020-05-01/network/virtualhubroutetablev2s.go +++ b/services/network/mgmt/2020-05-01/network/virtualhubroutetablev2s.go @@ -232,6 +232,7 @@ func (client VirtualHubRouteTableV2sClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client VirtualHubRouteTableV2sClient) List(ctx context.Context, resourceGr result.lvhrtvr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "List", resp, "Failure responding to request") + return } if result.lvhrtvr.hasNextLink() && result.lvhrtvr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client VirtualHubRouteTableV2sClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/virtualhubs.go b/services/network/mgmt/2020-05-01/network/virtualhubs.go index 0764cbb82ad0..2dd8d1fbc943 100644 --- a/services/network/mgmt/2020-05-01/network/virtualhubs.go +++ b/services/network/mgmt/2020-05-01/network/virtualhubs.go @@ -237,6 +237,7 @@ func (client VirtualHubsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "Get", resp, "Failure responding to request") + return } return @@ -391,6 +392,7 @@ func (client VirtualHubsClient) List(ctx context.Context) (result ListVirtualHub result.lvhr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "List", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -453,6 +455,7 @@ func (client VirtualHubsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -504,6 +507,7 @@ func (client VirtualHubsClient) ListByResourceGroup(ctx context.Context, resourc result.lvhr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -567,6 +571,7 @@ func (client VirtualHubsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -619,6 +624,7 @@ func (client VirtualHubsClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2020-05-01/network/virtualnetworkgatewayconnections.go index c640694be293..29f962f537f4 100644 --- a/services/network/mgmt/2020-05-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2020-05-01/network/virtualnetworkgatewayconnections.go @@ -264,6 +264,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -416,6 +418,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +482,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/virtualnetworkgateways.go b/services/network/mgmt/2020-05-01/network/virtualnetworkgateways.go index 318d75e385b0..87450e3c1df5 100644 --- a/services/network/mgmt/2020-05-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2020-05-01/network/virtualnetworkgateways.go @@ -476,6 +476,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -1013,6 +1014,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1076,6 +1078,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1128,6 +1131,7 @@ func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, result.vnglcr, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return } if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1192,6 +1196,7 @@ func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx contex result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1644,6 +1649,7 @@ func (client VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Conte result, err = client.SupportedVpnDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", resp, "Failure responding to request") + return } return @@ -1799,6 +1805,7 @@ func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx cont result, err = client.VpnDeviceConfigurationScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2020-05-01/network/virtualnetworkpeerings.go index 40c62420b6ce..71afb4b3cc79 100644 --- a/services/network/mgmt/2020-05-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2020-05-01/network/virtualnetworkpeerings.go @@ -232,6 +232,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/virtualnetworks.go b/services/network/mgmt/2020-05-01/network/virtualnetworks.go index c6bec6fc8e4b..be7fdcf1591e 100644 --- a/services/network/mgmt/2020-05-01/network/virtualnetworks.go +++ b/services/network/mgmt/2020-05-01/network/virtualnetworks.go @@ -74,6 +74,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -313,6 +314,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworksClient) GetBastionHosts(ctx context.Context, resourc result, err = client.GetBastionHostsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "GetBastionHosts", resp, "Failure responding to request") + return } return @@ -466,6 +469,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -529,6 +533,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -578,6 +583,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -640,6 +646,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -692,6 +699,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -756,6 +764,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } @@ -808,6 +817,7 @@ func (client VirtualNetworksClient) UpdateTags(ctx context.Context, resourceGrou result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/virtualnetworktaps.go b/services/network/mgmt/2020-05-01/network/virtualnetworktaps.go index 7e5a6d995bac..07f8b4df7a32 100644 --- a/services/network/mgmt/2020-05-01/network/virtualnetworktaps.go +++ b/services/network/mgmt/2020-05-01/network/virtualnetworktaps.go @@ -258,6 +258,7 @@ func (client VirtualNetworkTapsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "Get", resp, "Failure responding to request") + return } return @@ -331,6 +332,7 @@ func (client VirtualNetworkTapsClient) ListAll(ctx context.Context) (result Virt result.vntlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListAll", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -393,6 +395,7 @@ func (client VirtualNetworkTapsClient) listAllNextResults(ctx context.Context, l result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -444,6 +447,7 @@ func (client VirtualNetworkTapsClient) ListByResourceGroup(ctx context.Context, result.vntlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -507,6 +511,7 @@ func (client VirtualNetworkTapsClient) listByResourceGroupNextResults(ctx contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -559,6 +564,7 @@ func (client VirtualNetworkTapsClient) UpdateTags(ctx context.Context, resourceG result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/virtualrouterpeerings.go b/services/network/mgmt/2020-05-01/network/virtualrouterpeerings.go index e735237abe03..ec1e7b7c7c67 100644 --- a/services/network/mgmt/2020-05-01/network/virtualrouterpeerings.go +++ b/services/network/mgmt/2020-05-01/network/virtualrouterpeerings.go @@ -244,6 +244,7 @@ func (client VirtualRouterPeeringsClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client VirtualRouterPeeringsClient) List(ctx context.Context, resourceGrou result.vrplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vrplr.hasNextLink() && result.vrplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client VirtualRouterPeeringsClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/virtualrouters.go b/services/network/mgmt/2020-05-01/network/virtualrouters.go index dd33b21d2da1..a7ef03f6d1dc 100644 --- a/services/network/mgmt/2020-05-01/network/virtualrouters.go +++ b/services/network/mgmt/2020-05-01/network/virtualrouters.go @@ -238,6 +238,7 @@ func (client VirtualRoutersClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client VirtualRoutersClient) List(ctx context.Context) (result VirtualRout result.vrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "List", resp, "Failure responding to request") + return } if result.vrlr.hasNextLink() && result.vrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -376,6 +378,7 @@ func (client VirtualRoutersClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -427,6 +430,7 @@ func (client VirtualRoutersClient) ListByResourceGroup(ctx context.Context, reso result.vrlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vrlr.hasNextLink() && result.vrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -490,6 +494,7 @@ func (client VirtualRoutersClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/virtualwans.go b/services/network/mgmt/2020-05-01/network/virtualwans.go index 2615b52b2dd0..a9d4633c7d96 100644 --- a/services/network/mgmt/2020-05-01/network/virtualwans.go +++ b/services/network/mgmt/2020-05-01/network/virtualwans.go @@ -225,6 +225,7 @@ func (client VirtualWansClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualWansClient) List(ctx context.Context) (result ListVirtualWAN result.lvwnr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "List", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualWansClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualWansClient) ListByResourceGroup(ctx context.Context, resourc result.lvwnr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualWansClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +531,7 @@ func (client VirtualWansClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/vpnconnections.go b/services/network/mgmt/2020-05-01/network/vpnconnections.go index d83c18ae9359..78a6ea67f1f7 100644 --- a/services/network/mgmt/2020-05-01/network/vpnconnections.go +++ b/services/network/mgmt/2020-05-01/network/vpnconnections.go @@ -231,6 +231,7 @@ func (client VpnConnectionsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VpnConnectionsClient) ListByVpnGateway(ctx context.Context, resourc result.lvcr, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "ListByVpnGateway", resp, "Failure responding to request") + return } if result.lvcr.hasNextLink() && result.lvcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VpnConnectionsClient) listByVpnGatewayNextResults(ctx context.Conte result, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "listByVpnGatewayNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/vpngateways.go b/services/network/mgmt/2020-05-01/network/vpngateways.go index bf307a0b541c..a2b00e1630df 100644 --- a/services/network/mgmt/2020-05-01/network/vpngateways.go +++ b/services/network/mgmt/2020-05-01/network/vpngateways.go @@ -239,6 +239,7 @@ func (client VpnGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client VpnGatewaysClient) List(ctx context.Context) (result ListVpnGateway result.lvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client VpnGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -425,6 +428,7 @@ func (client VpnGatewaysClient) ListByResourceGroup(ctx context.Context, resourc result.lvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -488,6 +492,7 @@ func (client VpnGatewaysClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -615,6 +620,7 @@ func (client VpnGatewaysClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/vpnlinkconnections.go b/services/network/mgmt/2020-05-01/network/vpnlinkconnections.go index 4b53c812ae9a..b8350045ced0 100644 --- a/services/network/mgmt/2020-05-01/network/vpnlinkconnections.go +++ b/services/network/mgmt/2020-05-01/network/vpnlinkconnections.go @@ -75,6 +75,7 @@ func (client VpnLinkConnectionsClient) ListByVpnConnection(ctx context.Context, result.lvslcr, err = client.ListByVpnConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnLinkConnectionsClient", "ListByVpnConnection", resp, "Failure responding to request") + return } if result.lvslcr.hasNextLink() && result.lvslcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -140,6 +141,7 @@ func (client VpnLinkConnectionsClient) listByVpnConnectionNextResults(ctx contex result, err = client.ListByVpnConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnLinkConnectionsClient", "listByVpnConnectionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/vpnserverconfigurations.go b/services/network/mgmt/2020-05-01/network/vpnserverconfigurations.go index 87be6403c88a..d26a08137b6c 100644 --- a/services/network/mgmt/2020-05-01/network/vpnserverconfigurations.go +++ b/services/network/mgmt/2020-05-01/network/vpnserverconfigurations.go @@ -227,6 +227,7 @@ func (client VpnServerConfigurationsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client VpnServerConfigurationsClient) List(ctx context.Context) (result Li result.lvscr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lvscr.hasNextLink() && result.lvscr.IsEmpty() { err = result.NextWithContext(ctx) @@ -362,6 +364,7 @@ func (client VpnServerConfigurationsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client VpnServerConfigurationsClient) ListByResourceGroup(ctx context.Cont result.lvscr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvscr.hasNextLink() && result.lvscr.IsEmpty() { err = result.NextWithContext(ctx) @@ -476,6 +480,7 @@ func (client VpnServerConfigurationsClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -528,6 +533,7 @@ func (client VpnServerConfigurationsClient) UpdateTags(ctx context.Context, reso result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/vpnsitelinkconnections.go b/services/network/mgmt/2020-05-01/network/vpnsitelinkconnections.go index 42d810d6aa47..752ef6024273 100644 --- a/services/network/mgmt/2020-05-01/network/vpnsitelinkconnections.go +++ b/services/network/mgmt/2020-05-01/network/vpnsitelinkconnections.go @@ -75,6 +75,7 @@ func (client VpnSiteLinkConnectionsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinkConnectionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/vpnsitelinks.go b/services/network/mgmt/2020-05-01/network/vpnsitelinks.go index 6735a7cd56b5..de3fdecdb52d 100644 --- a/services/network/mgmt/2020-05-01/network/vpnsitelinks.go +++ b/services/network/mgmt/2020-05-01/network/vpnsitelinks.go @@ -73,6 +73,7 @@ func (client VpnSiteLinksClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client VpnSiteLinksClient) ListByVpnSite(ctx context.Context, resourceGrou result.lvslr, err = client.ListByVpnSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "ListByVpnSite", resp, "Failure responding to request") + return } if result.lvslr.hasNextLink() && result.lvslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -214,6 +216,7 @@ func (client VpnSiteLinksClient) listByVpnSiteNextResults(ctx context.Context, l result, err = client.ListByVpnSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "listByVpnSiteNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-05-01/network/vpnsites.go b/services/network/mgmt/2020-05-01/network/vpnsites.go index f255746f1be5..cef0898d9259 100644 --- a/services/network/mgmt/2020-05-01/network/vpnsites.go +++ b/services/network/mgmt/2020-05-01/network/vpnsites.go @@ -239,6 +239,7 @@ func (client VpnSitesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client VpnSitesClient) List(ctx context.Context) (result ListVpnSitesResul result.lvsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "List", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client VpnSitesClient) listNextResults(ctx context.Context, lastResults Li result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -425,6 +428,7 @@ func (client VpnSitesClient) ListByResourceGroup(ctx context.Context, resourceGr result.lvsr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -488,6 +492,7 @@ func (client VpnSitesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -540,6 +545,7 @@ func (client VpnSitesClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/watchers.go b/services/network/mgmt/2020-05-01/network/watchers.go index 0dd8282f915e..4f3ea1a47c8e 100644 --- a/services/network/mgmt/2020-05-01/network/watchers.go +++ b/services/network/mgmt/2020-05-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -313,6 +314,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -736,6 +738,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -1068,6 +1071,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -1139,6 +1143,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return @@ -1380,6 +1385,7 @@ func (client WatchersClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-05-01/network/webapplicationfirewallpolicies.go b/services/network/mgmt/2020-05-01/network/webapplicationfirewallpolicies.go index 93f64d753bee..e8ebf125d14b 100644 --- a/services/network/mgmt/2020-05-01/network/webapplicationfirewallpolicies.go +++ b/services/network/mgmt/2020-05-01/network/webapplicationfirewallpolicies.go @@ -94,6 +94,7 @@ func (client WebApplicationFirewallPoliciesClient) CreateOrUpdate(ctx context.Co result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -258,6 +259,7 @@ func (client WebApplicationFirewallPoliciesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -333,6 +335,7 @@ func (client WebApplicationFirewallPoliciesClient) List(ctx context.Context, res result.wafplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "List", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -396,6 +399,7 @@ func (client WebApplicationFirewallPoliciesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +449,7 @@ func (client WebApplicationFirewallPoliciesClient) ListAll(ctx context.Context) result.wafplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "ListAll", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -507,6 +512,7 @@ func (client WebApplicationFirewallPoliciesClient) listAllNextResults(ctx contex result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/applicationgatewayprivateendpointconnections.go b/services/network/mgmt/2020-06-01/network/applicationgatewayprivateendpointconnections.go index de3c7e6bff7c..c05f57351683 100644 --- a/services/network/mgmt/2020-06-01/network/applicationgatewayprivateendpointconnections.go +++ b/services/network/mgmt/2020-06-01/network/applicationgatewayprivateendpointconnections.go @@ -151,6 +151,7 @@ func (client ApplicationGatewayPrivateEndpointConnectionsClient) Get(ctx context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -228,6 +229,7 @@ func (client ApplicationGatewayPrivateEndpointConnectionsClient) List(ctx contex result.agpeclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateEndpointConnectionsClient", "List", resp, "Failure responding to request") + return } if result.agpeclr.hasNextLink() && result.agpeclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -292,6 +294,7 @@ func (client ApplicationGatewayPrivateEndpointConnectionsClient) listNextResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateEndpointConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/applicationgatewayprivatelinkresources.go b/services/network/mgmt/2020-06-01/network/applicationgatewayprivatelinkresources.go index 44e6a4d3494b..37ed3ef74b2f 100644 --- a/services/network/mgmt/2020-06-01/network/applicationgatewayprivatelinkresources.go +++ b/services/network/mgmt/2020-06-01/network/applicationgatewayprivatelinkresources.go @@ -75,6 +75,7 @@ func (client ApplicationGatewayPrivateLinkResourcesClient) List(ctx context.Cont result.agplrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateLinkResourcesClient", "List", resp, "Failure responding to request") + return } if result.agplrlr.hasNextLink() && result.agplrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client ApplicationGatewayPrivateLinkResourcesClient) listNextResults(ctx c result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateLinkResourcesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/applicationgateways.go b/services/network/mgmt/2020-06-01/network/applicationgateways.go index 77a454731d2d..a4da41c280b8 100644 --- a/services/network/mgmt/2020-06-01/network/applicationgateways.go +++ b/services/network/mgmt/2020-06-01/network/applicationgateways.go @@ -417,6 +417,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -491,6 +492,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte result, err = client.GetSslPredefinedPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return } return @@ -565,6 +567,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -628,6 +631,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -677,6 +681,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -739,6 +744,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -787,6 +793,7 @@ func (client ApplicationGatewaysClient) ListAvailableRequestHeaders(ctx context. result, err = client.ListAvailableRequestHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableRequestHeaders", resp, "Failure responding to request") + return } return @@ -857,6 +864,7 @@ func (client ApplicationGatewaysClient) ListAvailableResponseHeaders(ctx context result, err = client.ListAvailableResponseHeadersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableResponseHeaders", resp, "Failure responding to request") + return } return @@ -927,6 +935,7 @@ func (client ApplicationGatewaysClient) ListAvailableServerVariables(ctx context result, err = client.ListAvailableServerVariablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableServerVariables", resp, "Failure responding to request") + return } return @@ -997,6 +1006,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont result, err = client.ListAvailableSslOptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return } return @@ -1068,6 +1078,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return } if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { err = result.NextWithContext(ctx) @@ -1130,6 +1141,7 @@ func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextRe result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1178,6 +1190,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con result, err = client.ListAvailableWafRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return } return @@ -1400,6 +1413,7 @@ func (client ApplicationGatewaysClient) UpdateTags(ctx context.Context, resource result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/applicationsecuritygroups.go b/services/network/mgmt/2020-06-01/network/applicationsecuritygroups.go index d53bf4f0ab31..344142912520 100644 --- a/services/network/mgmt/2020-06-01/network/applicationsecuritygroups.go +++ b/services/network/mgmt/2020-06-01/network/applicationsecuritygroups.go @@ -226,6 +226,7 @@ func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resource result.asglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client ApplicationSecurityGroupsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (resu result.asglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.asglr.hasNextLink() && result.asglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client ApplicationSecurityGroupsClient) listAllNextResults(ctx context.Con result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -527,6 +532,7 @@ func (client ApplicationSecurityGroupsClient) UpdateTags(ctx context.Context, re result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/availabledelegations.go b/services/network/mgmt/2020-06-01/network/availabledelegations.go index 59951fa4b8fd..58a0cd90cb33 100644 --- a/services/network/mgmt/2020-06-01/network/availabledelegations.go +++ b/services/network/mgmt/2020-06-01/network/availabledelegations.go @@ -73,6 +73,7 @@ func (client AvailableDelegationsClient) List(ctx context.Context, location stri result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableDelegationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/availableendpointservices.go b/services/network/mgmt/2020-06-01/network/availableendpointservices.go index 809ab36a1eb0..929dc162e2a7 100644 --- a/services/network/mgmt/2020-06-01/network/availableendpointservices.go +++ b/services/network/mgmt/2020-06-01/network/availableendpointservices.go @@ -73,6 +73,7 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableEndpointServicesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/availableprivateendpointtypes.go b/services/network/mgmt/2020-06-01/network/availableprivateendpointtypes.go index 26df7a5d4a45..e3dbbd8a78bb 100644 --- a/services/network/mgmt/2020-06-01/network/availableprivateendpointtypes.go +++ b/services/network/mgmt/2020-06-01/network/availableprivateendpointtypes.go @@ -73,6 +73,7 @@ func (client AvailablePrivateEndpointTypesClient) List(ctx context.Context, loca result.apetr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "List", resp, "Failure responding to request") + return } if result.apetr.hasNextLink() && result.apetr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailablePrivateEndpointTypesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -189,6 +191,7 @@ func (client AvailablePrivateEndpointTypesClient) ListByResourceGroup(ctx contex result.apetr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.apetr.hasNextLink() && result.apetr.IsEmpty() { err = result.NextWithContext(ctx) @@ -253,6 +256,7 @@ func (client AvailablePrivateEndpointTypesClient) listByResourceGroupNextResults result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2020-06-01/network/availableresourcegroupdelegations.go index e4e0d196a28c..d5a9439da320 100644 --- a/services/network/mgmt/2020-06-01/network/availableresourcegroupdelegations.go +++ b/services/network/mgmt/2020-06-01/network/availableresourcegroupdelegations.go @@ -75,6 +75,7 @@ func (client AvailableResourceGroupDelegationsClient) List(ctx context.Context, result.adr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "List", resp, "Failure responding to request") + return } if result.adr.hasNextLink() && result.adr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client AvailableResourceGroupDelegationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/availableservicealiases.go b/services/network/mgmt/2020-06-01/network/availableservicealiases.go index f184dfc8ef6a..7360b3a023e4 100644 --- a/services/network/mgmt/2020-06-01/network/availableservicealiases.go +++ b/services/network/mgmt/2020-06-01/network/availableservicealiases.go @@ -73,6 +73,7 @@ func (client AvailableServiceAliasesClient) List(ctx context.Context, location s result.asar, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "List", resp, "Failure responding to request") + return } if result.asar.hasNextLink() && result.asar.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client AvailableServiceAliasesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -188,6 +190,7 @@ func (client AvailableServiceAliasesClient) ListByResourceGroup(ctx context.Cont result.asar, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.asar.hasNextLink() && result.asar.IsEmpty() { err = result.NextWithContext(ctx) @@ -252,6 +255,7 @@ func (client AvailableServiceAliasesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2020-06-01/network/azurefirewallfqdntags.go index 514123d738e8..93dbabd648ab 100644 --- a/services/network/mgmt/2020-06-01/network/azurefirewallfqdntags.go +++ b/services/network/mgmt/2020-06-01/network/azurefirewallfqdntags.go @@ -71,6 +71,7 @@ func (client AzureFirewallFqdnTagsClient) ListAll(ctx context.Context) (result A result.afftlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "ListAll", resp, "Failure responding to request") + return } if result.afftlr.hasNextLink() && result.afftlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client AzureFirewallFqdnTagsClient) listAllNextResults(ctx context.Context result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/azurefirewalls.go b/services/network/mgmt/2020-06-01/network/azurefirewalls.go index 26bd5d6bb277..ae4005040be4 100644 --- a/services/network/mgmt/2020-06-01/network/azurefirewalls.go +++ b/services/network/mgmt/2020-06-01/network/azurefirewalls.go @@ -233,6 +233,7 @@ func (client AzureFirewallsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client AzureFirewallsClient) List(ctx context.Context, resourceGroupName s result.aflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "List", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client AzureFirewallsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -420,6 +423,7 @@ func (client AzureFirewallsClient) ListAll(ctx context.Context) (result AzureFir result.aflr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "ListAll", resp, "Failure responding to request") + return } if result.aflr.hasNextLink() && result.aflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -482,6 +486,7 @@ func (client AzureFirewallsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/bastionhosts.go b/services/network/mgmt/2020-06-01/network/bastionhosts.go index 056a853c8c7c..18242f83ff16 100644 --- a/services/network/mgmt/2020-06-01/network/bastionhosts.go +++ b/services/network/mgmt/2020-06-01/network/bastionhosts.go @@ -225,6 +225,7 @@ func (client BastionHostsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client BastionHostsClient) List(ctx context.Context) (result BastionHostLi result.bhlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "List", resp, "Failure responding to request") + return } if result.bhlr.hasNextLink() && result.bhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client BastionHostsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client BastionHostsClient) ListByResourceGroup(ctx context.Context, resour result.bhlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.bhlr.hasNextLink() && result.bhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client BastionHostsClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/bgpservicecommunities.go b/services/network/mgmt/2020-06-01/network/bgpservicecommunities.go index 4640167e3aa5..1f8f1ad57a5f 100644 --- a/services/network/mgmt/2020-06-01/network/bgpservicecommunities.go +++ b/services/network/mgmt/2020-06-01/network/bgpservicecommunities.go @@ -71,6 +71,7 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS result.bsclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return } if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/client.go b/services/network/mgmt/2020-06-01/network/client.go index ec2fcf6120c4..70edb30bf8d7 100644 --- a/services/network/mgmt/2020-06-01/network/client.go +++ b/services/network/mgmt/2020-06-01/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return @@ -241,6 +242,7 @@ func (client BaseClient) DisconnectActiveSessions(ctx context.Context, resourceG result.bsdr, err = client.DisconnectActiveSessionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "DisconnectActiveSessions", resp, "Failure responding to request") + return } if result.bsdr.hasNextLink() && result.bsdr.IsEmpty() { err = result.NextWithContext(ctx) @@ -307,6 +309,7 @@ func (client BaseClient) disconnectActiveSessionsNextResults(ctx context.Context result, err = client.DisconnectActiveSessionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "disconnectActiveSessionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -555,6 +558,7 @@ func (client BaseClient) GetBastionShareableLink(ctx context.Context, resourceGr result.bsllr, err = client.GetBastionShareableLinkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "GetBastionShareableLink", resp, "Failure responding to request") + return } if result.bsllr.hasNextLink() && result.bsllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -621,6 +625,7 @@ func (client BaseClient) getBastionShareableLinkNextResults(ctx context.Context, result, err = client.GetBastionShareableLinkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "getBastionShareableLinkNextResults", resp, "Failure responding to next results request") + return } return } @@ -791,6 +796,7 @@ func (client BaseClient) SupportedSecurityProviders(ctx context.Context, resourc result, err = client.SupportedSecurityProvidersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "SupportedSecurityProviders", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/connectionmonitors.go b/services/network/mgmt/2020-06-01/network/connectionmonitors.go index 4a7314ef9649..b33f87d6586f 100644 --- a/services/network/mgmt/2020-06-01/network/connectionmonitors.go +++ b/services/network/mgmt/2020-06-01/network/connectionmonitors.go @@ -240,6 +240,7 @@ func (client ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client ConnectionMonitorsClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure responding to request") + return } return @@ -622,6 +624,7 @@ func (client ConnectionMonitorsClient) UpdateTags(ctx context.Context, resourceG result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/customipprefixes.go b/services/network/mgmt/2020-06-01/network/customipprefixes.go index c4821049c471..78ca198cc770 100644 --- a/services/network/mgmt/2020-06-01/network/customipprefixes.go +++ b/services/network/mgmt/2020-06-01/network/customipprefixes.go @@ -227,6 +227,7 @@ func (client CustomIPPrefixesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client CustomIPPrefixesClient) List(ctx context.Context, resourceGroupName result.ciplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "List", resp, "Failure responding to request") + return } if result.ciplr.hasNextLink() && result.ciplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client CustomIPPrefixesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client CustomIPPrefixesClient) ListAll(ctx context.Context) (result Custom result.ciplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "ListAll", resp, "Failure responding to request") + return } if result.ciplr.hasNextLink() && result.ciplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client CustomIPPrefixesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +536,7 @@ func (client CustomIPPrefixesClient) UpdateTags(ctx context.Context, resourceGro result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/ddoscustompolicies.go b/services/network/mgmt/2020-06-01/network/ddoscustompolicies.go index e1186bc2455a..66ea310f85e5 100644 --- a/services/network/mgmt/2020-06-01/network/ddoscustompolicies.go +++ b/services/network/mgmt/2020-06-01/network/ddoscustompolicies.go @@ -226,6 +226,7 @@ func (client DdosCustomPoliciesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DdosCustomPoliciesClient) UpdateTags(ctx context.Context, resourceG result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/ddosprotectionplans.go b/services/network/mgmt/2020-06-01/network/ddosprotectionplans.go index 061c99c90ede..6a5bae437bc2 100644 --- a/services/network/mgmt/2020-06-01/network/ddosprotectionplans.go +++ b/services/network/mgmt/2020-06-01/network/ddosprotectionplans.go @@ -229,6 +229,7 @@ func (client DdosProtectionPlansClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DdosProtectionPlansClient) List(ctx context.Context) (result DdosPr result.dpplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client DdosProtectionPlansClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, result.dpplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client DdosProtectionPlansClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client DdosProtectionPlansClient) UpdateTags(ctx context.Context, resource result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/defaultsecurityrules.go b/services/network/mgmt/2020-06-01/network/defaultsecurityrules.go index dc6c97207168..01904da50619 100644 --- a/services/network/mgmt/2020-06-01/network/defaultsecurityrules.go +++ b/services/network/mgmt/2020-06-01/network/defaultsecurityrules.go @@ -74,6 +74,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/dscpconfiguration.go b/services/network/mgmt/2020-06-01/network/dscpconfiguration.go index 469a9108e368..50805817fd81 100644 --- a/services/network/mgmt/2020-06-01/network/dscpconfiguration.go +++ b/services/network/mgmt/2020-06-01/network/dscpconfiguration.go @@ -226,6 +226,7 @@ func (client DscpConfigurationClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DscpConfigurationClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client DscpConfigurationClient) List(ctx context.Context, resourceGroupNam result.dclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DscpConfigurationClient", "List", resp, "Failure responding to request") + return } if result.dclr.hasNextLink() && result.dclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client DscpConfigurationClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DscpConfigurationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client DscpConfigurationClient) ListAll(ctx context.Context) (result DscpC result.dclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DscpConfigurationClient", "ListAll", resp, "Failure responding to request") + return } if result.dclr.hasNextLink() && result.dclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client DscpConfigurationClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.DscpConfigurationClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2020-06-01/network/expressroutecircuitauthorizations.go index 2aa422c95f04..b3587c023197 100644 --- a/services/network/mgmt/2020-06-01/network/expressroutecircuitauthorizations.go +++ b/services/network/mgmt/2020-06-01/network/expressroutecircuitauthorizations.go @@ -234,6 +234,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2020-06-01/network/expressroutecircuitconnections.go index ec5ecf4aa063..f754d856ab50 100644 --- a/services/network/mgmt/2020-06-01/network/expressroutecircuitconnections.go +++ b/services/network/mgmt/2020-06-01/network/expressroutecircuitconnections.go @@ -238,6 +238,7 @@ func (client ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client ExpressRouteCircuitConnectionsClient) List(ctx context.Context, res result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client ExpressRouteCircuitConnectionsClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2020-06-01/network/expressroutecircuitpeerings.go index 6859b50f3b8a..f5263ee655de 100644 --- a/services/network/mgmt/2020-06-01/network/expressroutecircuitpeerings.go +++ b/services/network/mgmt/2020-06-01/network/expressroutecircuitpeerings.go @@ -244,6 +244,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/expressroutecircuits.go b/services/network/mgmt/2020-06-01/network/expressroutecircuits.go index 66786ba37724..8326c7cf6d3a 100644 --- a/services/network/mgmt/2020-06-01/network/expressroutecircuits.go +++ b/services/network/mgmt/2020-06-01/network/expressroutecircuits.go @@ -226,6 +226,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, re result, err = client.GetPeeringStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return } return @@ -378,6 +380,7 @@ func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceG result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -565,6 +570,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -918,6 +925,7 @@ func (client ExpressRouteCircuitsClient) UpdateTags(ctx context.Context, resourc result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/expressrouteconnections.go b/services/network/mgmt/2020-06-01/network/expressrouteconnections.go index 07385ba9b823..5ccae956a218 100644 --- a/services/network/mgmt/2020-06-01/network/expressrouteconnections.go +++ b/services/network/mgmt/2020-06-01/network/expressrouteconnections.go @@ -239,6 +239,7 @@ func (client ExpressRouteConnectionsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client ExpressRouteConnectionsClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2020-06-01/network/expressroutecrossconnectionpeerings.go index 04e687492468..c1ff3a2cf8de 100644 --- a/services/network/mgmt/2020-06-01/network/expressroutecrossconnectionpeerings.go +++ b/services/network/mgmt/2020-06-01/network/expressroutecrossconnectionpeerings.go @@ -245,6 +245,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context result.erccpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "List", resp, "Failure responding to request") + return } if result.erccpl.hasNextLink() && result.erccpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) listNextResults(ctx cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/expressroutecrossconnections.go b/services/network/mgmt/2020-06-01/network/expressroutecrossconnections.go index 94cb4b3e2f44..a25cf65c5940 100644 --- a/services/network/mgmt/2020-06-01/network/expressroutecrossconnections.go +++ b/services/network/mgmt/2020-06-01/network/expressroutecrossconnections.go @@ -152,6 +152,7 @@ func (client ExpressRouteCrossConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client ExpressRouteCrossConnectionsClient) List(ctx context.Context) (resu result.ercclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -287,6 +289,7 @@ func (client ExpressRouteCrossConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -418,6 +421,7 @@ func (client ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context result.ercclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +485,7 @@ func (client ExpressRouteCrossConnectionsClient) listByResourceGroupNextResults( result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -693,6 +698,7 @@ func (client ExpressRouteCrossConnectionsClient) UpdateTags(ctx context.Context, result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/expressroutegateways.go b/services/network/mgmt/2020-06-01/network/expressroutegateways.go index 81ce0632d882..128c3ce62bbc 100644 --- a/services/network/mgmt/2020-06-01/network/expressroutegateways.go +++ b/services/network/mgmt/2020-06-01/network/expressroutegateways.go @@ -235,6 +235,7 @@ func (client ExpressRouteGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client ExpressRouteGatewaysClient) ListByResourceGroup(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -380,6 +382,7 @@ func (client ExpressRouteGatewaysClient) ListBySubscription(ctx context.Context) result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/expressroutelinks.go b/services/network/mgmt/2020-06-01/network/expressroutelinks.go index 19a7275438e2..14ab1bba0353 100644 --- a/services/network/mgmt/2020-06-01/network/expressroutelinks.go +++ b/services/network/mgmt/2020-06-01/network/expressroutelinks.go @@ -74,6 +74,7 @@ func (client ExpressRouteLinksClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ExpressRouteLinksClient) List(ctx context.Context, resourceGroupNam result.erllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "List", resp, "Failure responding to request") + return } if result.erllr.hasNextLink() && result.erllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client ExpressRouteLinksClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/expressrouteports.go b/services/network/mgmt/2020-06-01/network/expressrouteports.go index b0a7215e5863..0ab5fbab5f8f 100644 --- a/services/network/mgmt/2020-06-01/network/expressrouteports.go +++ b/services/network/mgmt/2020-06-01/network/expressrouteports.go @@ -234,6 +234,7 @@ func (client ExpressRoutePortsClient) GenerateLOA(ctx context.Context, resourceG result, err = client.GenerateLOAResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "GenerateLOA", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client ExpressRoutePortsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "Get", resp, "Failure responding to request") + return } return @@ -384,6 +386,7 @@ func (client ExpressRoutePortsClient) List(ctx context.Context) (result ExpressR result.erplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "List", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -446,6 +449,7 @@ func (client ExpressRoutePortsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -497,6 +501,7 @@ func (client ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, r result.erplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.erplr.hasNextLink() && result.erplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -560,6 +565,7 @@ func (client ExpressRoutePortsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -612,6 +618,7 @@ func (client ExpressRoutePortsClient) UpdateTags(ctx context.Context, resourceGr result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/expressrouteportslocations.go b/services/network/mgmt/2020-06-01/network/expressrouteportslocations.go index 778ca2122b36..76ecf9dda01f 100644 --- a/services/network/mgmt/2020-06-01/network/expressrouteportslocations.go +++ b/services/network/mgmt/2020-06-01/network/expressrouteportslocations.go @@ -73,6 +73,7 @@ func (client ExpressRoutePortsLocationsClient) Get(ctx context.Context, location result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client ExpressRoutePortsLocationsClient) List(ctx context.Context) (result result.erpllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "List", resp, "Failure responding to request") + return } if result.erpllr.hasNextLink() && result.erpllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -208,6 +210,7 @@ func (client ExpressRoutePortsLocationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2020-06-01/network/expressrouteserviceproviders.go index 0d19c4f5af60..c9fe680967e0 100644 --- a/services/network/mgmt/2020-06-01/network/expressrouteserviceproviders.go +++ b/services/network/mgmt/2020-06-01/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/firewallpolicies.go b/services/network/mgmt/2020-06-01/network/firewallpolicies.go index f289008b4997..9110785cc36d 100644 --- a/services/network/mgmt/2020-06-01/network/firewallpolicies.go +++ b/services/network/mgmt/2020-06-01/network/firewallpolicies.go @@ -227,6 +227,7 @@ func (client FirewallPoliciesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client FirewallPoliciesClient) List(ctx context.Context, resourceGroupName result.fplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "List", resp, "Failure responding to request") + return } if result.fplr.hasNextLink() && result.fplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client FirewallPoliciesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client FirewallPoliciesClient) ListAll(ctx context.Context) (result Firewa result.fplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "ListAll", resp, "Failure responding to request") + return } if result.fplr.hasNextLink() && result.fplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client FirewallPoliciesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/firewallpolicyrulecollectiongroups.go b/services/network/mgmt/2020-06-01/network/firewallpolicyrulecollectiongroups.go index f8d947a26031..e169d535f0fb 100644 --- a/services/network/mgmt/2020-06-01/network/firewallpolicyrulecollectiongroups.go +++ b/services/network/mgmt/2020-06-01/network/firewallpolicyrulecollectiongroups.go @@ -245,6 +245,7 @@ func (client FirewallPolicyRuleCollectionGroupsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleCollectionGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client FirewallPolicyRuleCollectionGroupsClient) List(ctx context.Context, result.fprcglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleCollectionGroupsClient", "List", resp, "Failure responding to request") + return } if result.fprcglr.hasNextLink() && result.fprcglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client FirewallPolicyRuleCollectionGroupsClient) listNextResults(ctx conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleCollectionGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/flowlogs.go b/services/network/mgmt/2020-06-01/network/flowlogs.go index 3300ea612ee8..41b443a8ea82 100644 --- a/services/network/mgmt/2020-06-01/network/flowlogs.go +++ b/services/network/mgmt/2020-06-01/network/flowlogs.go @@ -240,6 +240,7 @@ func (client FlowLogsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client FlowLogsClient) List(ctx context.Context, resourceGroupName string, result.fllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "List", resp, "Failure responding to request") + return } if result.fllr.hasNextLink() && result.fllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client FlowLogsClient) listNextResults(ctx context.Context, lastResults Fl result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -434,6 +437,7 @@ func (client FlowLogsClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/hubroutetables.go b/services/network/mgmt/2020-06-01/network/hubroutetables.go index adb21df09fb1..389a905cec36 100644 --- a/services/network/mgmt/2020-06-01/network/hubroutetables.go +++ b/services/network/mgmt/2020-06-01/network/hubroutetables.go @@ -231,6 +231,7 @@ func (client HubRouteTablesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubRouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client HubRouteTablesClient) List(ctx context.Context, resourceGroupName s result.lhrtr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubRouteTablesClient", "List", resp, "Failure responding to request") + return } if result.lhrtr.hasNextLink() && result.lhrtr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client HubRouteTablesClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubRouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2020-06-01/network/hubvirtualnetworkconnections.go index d3fce9738333..c21ab0d1b4f8 100644 --- a/services/network/mgmt/2020-06-01/network/hubvirtualnetworkconnections.go +++ b/services/network/mgmt/2020-06-01/network/hubvirtualnetworkconnections.go @@ -232,6 +232,7 @@ func (client HubVirtualNetworkConnectionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client HubVirtualNetworkConnectionsClient) List(ctx context.Context, resou result.lhvncr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "List", resp, "Failure responding to request") + return } if result.lhvncr.hasNextLink() && result.lhvncr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client HubVirtualNetworkConnectionsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/inboundnatrules.go b/services/network/mgmt/2020-06-01/network/inboundnatrules.go index 4f04966419e7..2d0e227b1acf 100644 --- a/services/network/mgmt/2020-06-01/network/inboundnatrules.go +++ b/services/network/mgmt/2020-06-01/network/inboundnatrules.go @@ -252,6 +252,7 @@ func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -332,6 +333,7 @@ func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName result.inrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return } if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -396,6 +398,7 @@ func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/interfaceipconfigurations.go b/services/network/mgmt/2020-06-01/network/interfaceipconfigurations.go index 8e743bd3c5dc..415f9f3d9148 100644 --- a/services/network/mgmt/2020-06-01/network/interfaceipconfigurations.go +++ b/services/network/mgmt/2020-06-01/network/interfaceipconfigurations.go @@ -74,6 +74,7 @@ func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resource result.iiclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/interfaceloadbalancers.go b/services/network/mgmt/2020-06-01/network/interfaceloadbalancers.go index 1edb84bae5b5..2d31ab4704d0 100644 --- a/services/network/mgmt/2020-06-01/network/interfaceloadbalancers.go +++ b/services/network/mgmt/2020-06-01/network/interfaceloadbalancers.go @@ -74,6 +74,7 @@ func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGro result.ilblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/interfacesgroup.go b/services/network/mgmt/2020-06-01/network/interfacesgroup.go index e138bdf429de..d825b6ea996b 100644 --- a/services/network/mgmt/2020-06-01/network/interfacesgroup.go +++ b/services/network/mgmt/2020-06-01/network/interfacesgroup.go @@ -226,6 +226,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -384,6 +385,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx cont result, err = client.GetVirtualMachineScaleSetIPConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure responding to request") + return } return @@ -468,6 +470,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -548,6 +551,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -611,6 +615,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -660,6 +665,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -722,6 +728,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -853,6 +860,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx co result.iiclr, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure responding to request") + return } if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -922,6 +930,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetIPConfigurationsNextRes result, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -974,6 +983,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1038,6 +1048,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1092,6 +1103,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1157,6 +1169,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1209,6 +1222,7 @@ func (client InterfacesClient) UpdateTags(ctx context.Context, resourceGroupName result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/interfacetapconfigurations.go b/services/network/mgmt/2020-06-01/network/interfacetapconfigurations.go index 7d284cc7d58b..7e8e63cd238c 100644 --- a/services/network/mgmt/2020-06-01/network/interfacetapconfigurations.go +++ b/services/network/mgmt/2020-06-01/network/interfacetapconfigurations.go @@ -268,6 +268,7 @@ func (client InterfaceTapConfigurationsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +346,7 @@ func (client InterfaceTapConfigurationsClient) List(ctx context.Context, resourc result.itclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.itclr.hasNextLink() && result.itclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -409,6 +411,7 @@ func (client InterfaceTapConfigurationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/ipallocations.go b/services/network/mgmt/2020-06-01/network/ipallocations.go index ec1a79aca501..e47db8d3a06c 100644 --- a/services/network/mgmt/2020-06-01/network/ipallocations.go +++ b/services/network/mgmt/2020-06-01/network/ipallocations.go @@ -226,6 +226,7 @@ func (client IPAllocationsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client IPAllocationsClient) List(ctx context.Context) (result IPAllocation result.ialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "List", resp, "Failure responding to request") + return } if result.ialr.hasNextLink() && result.ialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client IPAllocationsClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client IPAllocationsClient) ListByResourceGroup(ctx context.Context, resou result.ialr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ialr.hasNextLink() && result.ialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client IPAllocationsClient) listByResourceGroupNextResults(ctx context.Con result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client IPAllocationsClient) UpdateTags(ctx context.Context, resourceGroupN result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/ipgroups.go b/services/network/mgmt/2020-06-01/network/ipgroups.go index 098794af0c12..65092310c4d6 100644 --- a/services/network/mgmt/2020-06-01/network/ipgroups.go +++ b/services/network/mgmt/2020-06-01/network/ipgroups.go @@ -227,6 +227,7 @@ func (client IPGroupsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client IPGroupsClient) List(ctx context.Context) (result IPGroupListResult result.iglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "List", resp, "Failure responding to request") + return } if result.iglr.hasNextLink() && result.iglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -365,6 +367,7 @@ func (client IPGroupsClient) listNextResults(ctx context.Context, lastResults IP result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client IPGroupsClient) ListByResourceGroup(ctx context.Context, resourceGr result.iglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.iglr.hasNextLink() && result.iglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client IPGroupsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +536,7 @@ func (client IPGroupsClient) UpdateGroups(ctx context.Context, resourceGroupName result, err = client.UpdateGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "UpdateGroups", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2020-06-01/network/loadbalancerbackendaddresspools.go index 7eec9a890a69..c65217333b47 100644 --- a/services/network/mgmt/2020-06-01/network/loadbalancerbackendaddresspools.go +++ b/services/network/mgmt/2020-06-01/network/loadbalancerbackendaddresspools.go @@ -232,6 +232,7 @@ func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, re result.lbbaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return } if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2020-06-01/network/loadbalancerfrontendipconfigurations.go index 014d72af33ba..f16dd84a1cc2 100644 --- a/services/network/mgmt/2020-06-01/network/loadbalancerfrontendipconfigurations.go +++ b/services/network/mgmt/2020-06-01/network/loadbalancerfrontendipconfigurations.go @@ -75,6 +75,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Contex result.lbficlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2020-06-01/network/loadbalancerloadbalancingrules.go index 48be0301b177..cab7c3012b08 100644 --- a/services/network/mgmt/2020-06-01/network/loadbalancerloadbalancingrules.go +++ b/services/network/mgmt/2020-06-01/network/loadbalancerloadbalancingrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, res result.lblbrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return } if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2020-06-01/network/loadbalancernetworkinterfaces.go index f348a67533f8..6709250833a9 100644 --- a/services/network/mgmt/2020-06-01/network/loadbalancernetworkinterfaces.go +++ b/services/network/mgmt/2020-06-01/network/loadbalancernetworkinterfaces.go @@ -74,6 +74,7 @@ func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, reso result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2020-06-01/network/loadbalanceroutboundrules.go index 22abdbb9074c..653b03b8e198 100644 --- a/services/network/mgmt/2020-06-01/network/loadbalanceroutboundrules.go +++ b/services/network/mgmt/2020-06-01/network/loadbalanceroutboundrules.go @@ -74,6 +74,7 @@ func (client LoadBalancerOutboundRulesClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerOutboundRulesClient) List(ctx context.Context, resource result.lborlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "List", resp, "Failure responding to request") + return } if result.lborlr.hasNextLink() && result.lborlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerOutboundRulesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/loadbalancerprobes.go b/services/network/mgmt/2020-06-01/network/loadbalancerprobes.go index 1ec37ae76fa6..5d0b7834d4f3 100644 --- a/services/network/mgmt/2020-06-01/network/loadbalancerprobes.go +++ b/services/network/mgmt/2020-06-01/network/loadbalancerprobes.go @@ -74,6 +74,7 @@ func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupNa result.lbplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return } if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/loadbalancers.go b/services/network/mgmt/2020-06-01/network/loadbalancers.go index 8864af03678d..2d7860146664 100644 --- a/services/network/mgmt/2020-06-01/network/loadbalancers.go +++ b/services/network/mgmt/2020-06-01/network/loadbalancers.go @@ -226,6 +226,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client LoadBalancersClient) UpdateTags(ctx context.Context, resourceGroupN result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/localnetworkgateways.go b/services/network/mgmt/2020-06-01/network/localnetworkgateways.go index 86fb746c9d32..4a3e08216bd3 100644 --- a/services/network/mgmt/2020-06-01/network/localnetworkgateways.go +++ b/services/network/mgmt/2020-06-01/network/localnetworkgateways.go @@ -254,6 +254,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -329,6 +330,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -392,6 +394,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -450,6 +453,7 @@ func (client LocalNetworkGatewaysClient) UpdateTags(ctx context.Context, resourc result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/natgateways.go b/services/network/mgmt/2020-06-01/network/natgateways.go index c90b985258b2..90adfc424df0 100644 --- a/services/network/mgmt/2020-06-01/network/natgateways.go +++ b/services/network/mgmt/2020-06-01/network/natgateways.go @@ -226,6 +226,7 @@ func (client NatGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client NatGatewaysClient) List(ctx context.Context, resourceGroupName stri result.nglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "List", resp, "Failure responding to request") + return } if result.nglr.hasNextLink() && result.nglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client NatGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client NatGatewaysClient) ListAll(ctx context.Context) (result NatGatewayL result.nglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.nglr.hasNextLink() && result.nglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client NatGatewaysClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client NatGatewaysClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/operations.go b/services/network/mgmt/2020-06-01/network/operations.go index 8da4efd994fc..b91f7b690c0b 100644 --- a/services/network/mgmt/2020-06-01/network/operations.go +++ b/services/network/mgmt/2020-06-01/network/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/p2svpngateways.go b/services/network/mgmt/2020-06-01/network/p2svpngateways.go index 05400459c1b5..8d13f14d1ac1 100644 --- a/services/network/mgmt/2020-06-01/network/p2svpngateways.go +++ b/services/network/mgmt/2020-06-01/network/p2svpngateways.go @@ -381,6 +381,7 @@ func (client P2sVpnGatewaysClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -609,6 +610,7 @@ func (client P2sVpnGatewaysClient) List(ctx context.Context) (result ListP2SVpnG result.lpvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -671,6 +673,7 @@ func (client P2sVpnGatewaysClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -722,6 +725,7 @@ func (client P2sVpnGatewaysClient) ListByResourceGroup(ctx context.Context, reso result.lpvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -785,6 +789,7 @@ func (client P2sVpnGatewaysClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/packetcaptures.go b/services/network/mgmt/2020-06-01/network/packetcaptures.go index 5ed1a3d87c32..7af0b2fa1ffc 100644 --- a/services/network/mgmt/2020-06-01/network/packetcaptures.go +++ b/services/network/mgmt/2020-06-01/network/packetcaptures.go @@ -239,6 +239,7 @@ func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +393,7 @@ func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/peerexpressroutecircuitconnections.go b/services/network/mgmt/2020-06-01/network/peerexpressroutecircuitconnections.go index 6e494e377dbf..6a5402be028f 100644 --- a/services/network/mgmt/2020-06-01/network/peerexpressroutecircuitconnections.go +++ b/services/network/mgmt/2020-06-01/network/peerexpressroutecircuitconnections.go @@ -76,6 +76,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) List(ctx context.Context, result.percclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return } if result.percclr.hasNextLink() && result.percclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -220,6 +222,7 @@ func (client PeerExpressRouteCircuitConnectionsClient) listNextResults(ctx conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/privatednszonegroups.go b/services/network/mgmt/2020-06-01/network/privatednszonegroups.go index 5a8ba9feaa86..82c64d6c69b9 100644 --- a/services/network/mgmt/2020-06-01/network/privatednszonegroups.go +++ b/services/network/mgmt/2020-06-01/network/privatednszonegroups.go @@ -231,6 +231,7 @@ func (client PrivateDNSZoneGroupsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client PrivateDNSZoneGroupsClient) List(ctx context.Context, privateEndpoi result.pdzglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsClient", "List", resp, "Failure responding to request") + return } if result.pdzglr.hasNextLink() && result.pdzglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client PrivateDNSZoneGroupsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/privateendpoints.go b/services/network/mgmt/2020-06-01/network/privateendpoints.go index 066a315e7fd9..157e0d95e008 100644 --- a/services/network/mgmt/2020-06-01/network/privateendpoints.go +++ b/services/network/mgmt/2020-06-01/network/privateendpoints.go @@ -227,6 +227,7 @@ func (client PrivateEndpointsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client PrivateEndpointsClient) List(ctx context.Context, resourceGroupName result.pelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "List", resp, "Failure responding to request") + return } if result.pelr.hasNextLink() && result.pelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client PrivateEndpointsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client PrivateEndpointsClient) ListBySubscription(ctx context.Context) (re result.pelr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.pelr.hasNextLink() && result.pelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client PrivateEndpointsClient) listBySubscriptionNextResults(ctx context.C result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/privatelinkservices.go b/services/network/mgmt/2020-06-01/network/privatelinkservices.go index 14fbe7311c91..d93878942d7b 100644 --- a/services/network/mgmt/2020-06-01/network/privatelinkservices.go +++ b/services/network/mgmt/2020-06-01/network/privatelinkservices.go @@ -458,6 +458,7 @@ func (client PrivateLinkServicesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -539,6 +540,7 @@ func (client PrivateLinkServicesClient) GetPrivateEndpointConnection(ctx context result, err = client.GetPrivateEndpointConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "GetPrivateEndpointConnection", resp, "Failure responding to request") + return } return @@ -618,6 +620,7 @@ func (client PrivateLinkServicesClient) List(ctx context.Context, resourceGroupN result.plslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "List", resp, "Failure responding to request") + return } if result.plslr.hasNextLink() && result.plslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -681,6 +684,7 @@ func (client PrivateLinkServicesClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -733,6 +737,7 @@ func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServices(ctx result.aaplsr, err = client.ListAutoApprovedPrivateLinkServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServices", resp, "Failure responding to request") + return } if result.aaplsr.hasNextLink() && result.aaplsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -796,6 +801,7 @@ func (client PrivateLinkServicesClient) listAutoApprovedPrivateLinkServicesNextR result, err = client.ListAutoApprovedPrivateLinkServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesNextResults", resp, "Failure responding to next results request") + return } return } @@ -849,6 +855,7 @@ func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByRes result.aaplsr, err = client.ListAutoApprovedPrivateLinkServicesByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServicesByResourceGroup", resp, "Failure responding to request") + return } if result.aaplsr.hasNextLink() && result.aaplsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -913,6 +920,7 @@ func (client PrivateLinkServicesClient) listAutoApprovedPrivateLinkServicesByRes result, err = client.ListAutoApprovedPrivateLinkServicesByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -962,6 +970,7 @@ func (client PrivateLinkServicesClient) ListBySubscription(ctx context.Context) result.plslr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.plslr.hasNextLink() && result.plslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1024,6 +1033,7 @@ func (client PrivateLinkServicesClient) listBySubscriptionNextResults(ctx contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1076,6 +1086,7 @@ func (client PrivateLinkServicesClient) ListPrivateEndpointConnections(ctx conte result.peclr, err = client.ListPrivateEndpointConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListPrivateEndpointConnections", resp, "Failure responding to request") + return } if result.peclr.hasNextLink() && result.peclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1140,6 +1151,7 @@ func (client PrivateLinkServicesClient) listPrivateEndpointConnectionsNextResult result, err = client.ListPrivateEndpointConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listPrivateEndpointConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1194,6 +1206,7 @@ func (client PrivateLinkServicesClient) UpdatePrivateEndpointConnection(ctx cont result, err = client.UpdatePrivateEndpointConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "UpdatePrivateEndpointConnection", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/profiles.go b/services/network/mgmt/2020-06-01/network/profiles.go index daa2bb950526..53bee9540772 100644 --- a/services/network/mgmt/2020-06-01/network/profiles.go +++ b/services/network/mgmt/2020-06-01/network/profiles.go @@ -73,6 +73,7 @@ func (client ProfilesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -226,6 +227,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +306,7 @@ func (client ProfilesClient) List(ctx context.Context, resourceGroupName string) result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +370,7 @@ func (client ProfilesClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +420,7 @@ func (client ProfilesClient) ListAll(ctx context.Context) (result ProfileListRes result.plr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "ListAll", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +483,7 @@ func (client ProfilesClient) listAllNextResults(ctx context.Context, lastResults result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +536,7 @@ func (client ProfilesClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ProfilesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/publicipaddresses.go b/services/network/mgmt/2020-06-01/network/publicipaddresses.go index dd93ec662807..f4fe2fb5dab8 100644 --- a/services/network/mgmt/2020-06-01/network/publicipaddresses.go +++ b/services/network/mgmt/2020-06-01/network/publicipaddresses.go @@ -239,6 +239,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(c result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return } return @@ -404,6 +406,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -467,6 +470,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -516,6 +520,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -578,6 +583,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -631,6 +637,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -695,6 +702,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddresse result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -751,6 +759,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -818,6 +827,7 @@ func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddres result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + return } return } @@ -870,6 +880,7 @@ func (client PublicIPAddressesClient) UpdateTags(ctx context.Context, resourceGr result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/publicipprefixes.go b/services/network/mgmt/2020-06-01/network/publicipprefixes.go index 6c1e53ca078d..990e623a6007 100644 --- a/services/network/mgmt/2020-06-01/network/publicipprefixes.go +++ b/services/network/mgmt/2020-06-01/network/publicipprefixes.go @@ -227,6 +227,7 @@ func (client PublicIPPrefixesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client PublicIPPrefixesClient) List(ctx context.Context, resourceGroupName result.piplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "List", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client PublicIPPrefixesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client PublicIPPrefixesClient) ListAll(ctx context.Context) (result Public result.piplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "ListAll", resp, "Failure responding to request") + return } if result.piplr.hasNextLink() && result.piplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client PublicIPPrefixesClient) listAllNextResults(ctx context.Context, las result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +536,7 @@ func (client PublicIPPrefixesClient) UpdateTags(ctx context.Context, resourceGro result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/resourcenavigationlinks.go b/services/network/mgmt/2020-06-01/network/resourcenavigationlinks.go index a3a6a674c68a..31661912c91c 100644 --- a/services/network/mgmt/2020-06-01/network/resourcenavigationlinks.go +++ b/services/network/mgmt/2020-06-01/network/resourcenavigationlinks.go @@ -74,6 +74,7 @@ func (client ResourceNavigationLinksClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ResourceNavigationLinksClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/routefilterrules.go b/services/network/mgmt/2020-06-01/network/routefilterrules.go index 385c71dbd4ae..926e849fc43d 100644 --- a/services/network/mgmt/2020-06-01/network/routefilterrules.go +++ b/services/network/mgmt/2020-06-01/network/routefilterrules.go @@ -241,6 +241,7 @@ func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, reso result.rfrlr, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return } if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Co result, err = client.ListByRouteFilterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/routefilters.go b/services/network/mgmt/2020-06-01/network/routefilters.go index ceb63bfc701f..6cbd123f786f 100644 --- a/services/network/mgmt/2020-06-01/network/routefilters.go +++ b/services/network/mgmt/2020-06-01/network/routefilters.go @@ -226,6 +226,7 @@ func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterLi result.rflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +418,7 @@ func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resour result.rflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rflr.hasNextLink() && result.rflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client RouteFiltersClient) UpdateTags(ctx context.Context, resourceGroupNa result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/routes.go b/services/network/mgmt/2020-06-01/network/routes.go index 081c81f64a57..99efe05ea374 100644 --- a/services/network/mgmt/2020-06-01/network/routes.go +++ b/services/network/mgmt/2020-06-01/network/routes.go @@ -230,6 +230,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/routetables.go b/services/network/mgmt/2020-06-01/network/routetables.go index d1774b5160b9..c783c13fadba 100644 --- a/services/network/mgmt/2020-06-01/network/routetables.go +++ b/services/network/mgmt/2020-06-01/network/routetables.go @@ -226,6 +226,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client RouteTablesClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/securitygroups.go b/services/network/mgmt/2020-06-01/network/securitygroups.go index 43a531c3603a..d387083ad6dd 100644 --- a/services/network/mgmt/2020-06-01/network/securitygroups.go +++ b/services/network/mgmt/2020-06-01/network/securitygroups.go @@ -226,6 +226,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +482,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -530,6 +535,7 @@ func (client SecurityGroupsClient) UpdateTags(ctx context.Context, resourceGroup result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/securitypartnerproviders.go b/services/network/mgmt/2020-06-01/network/securitypartnerproviders.go index 36c5b126b645..85edb1587b23 100644 --- a/services/network/mgmt/2020-06-01/network/securitypartnerproviders.go +++ b/services/network/mgmt/2020-06-01/network/securitypartnerproviders.go @@ -226,6 +226,7 @@ func (client SecurityPartnerProvidersClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client SecurityPartnerProvidersClient) List(ctx context.Context) (result S result.spplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "List", resp, "Failure responding to request") + return } if result.spplr.hasNextLink() && result.spplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -361,6 +363,7 @@ func (client SecurityPartnerProvidersClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client SecurityPartnerProvidersClient) ListByResourceGroup(ctx context.Con result.spplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.spplr.hasNextLink() && result.spplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client SecurityPartnerProvidersClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -527,6 +532,7 @@ func (client SecurityPartnerProvidersClient) UpdateTags(ctx context.Context, res result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/securityrules.go b/services/network/mgmt/2020-06-01/network/securityrules.go index da70c41d9013..4e8c61924ba5 100644 --- a/services/network/mgmt/2020-06-01/network/securityrules.go +++ b/services/network/mgmt/2020-06-01/network/securityrules.go @@ -230,6 +230,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/serviceassociationlinks.go b/services/network/mgmt/2020-06-01/network/serviceassociationlinks.go index 0cf9c943696c..c8b7a6dfdc75 100644 --- a/services/network/mgmt/2020-06-01/network/serviceassociationlinks.go +++ b/services/network/mgmt/2020-06-01/network/serviceassociationlinks.go @@ -74,6 +74,7 @@ func (client ServiceAssociationLinksClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceAssociationLinksClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/serviceendpointpolicies.go b/services/network/mgmt/2020-06-01/network/serviceendpointpolicies.go index e78e8b01583c..af83d04ec288 100644 --- a/services/network/mgmt/2020-06-01/network/serviceendpointpolicies.go +++ b/services/network/mgmt/2020-06-01/network/serviceendpointpolicies.go @@ -227,6 +227,7 @@ func (client ServiceEndpointPoliciesClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +304,7 @@ func (client ServiceEndpointPoliciesClient) List(ctx context.Context) (result Se result.seplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "List", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -365,6 +367,7 @@ func (client ServiceEndpointPoliciesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Cont result.seplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.seplr.hasNextLink() && result.seplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client ServiceEndpointPoliciesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +536,7 @@ func (client ServiceEndpointPoliciesClient) UpdateTags(ctx context.Context, reso result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2020-06-01/network/serviceendpointpolicydefinitions.go index 3d6236c58336..0c53b4dd4b99 100644 --- a/services/network/mgmt/2020-06-01/network/serviceendpointpolicydefinitions.go +++ b/services/network/mgmt/2020-06-01/network/serviceendpointpolicydefinitions.go @@ -232,6 +232,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) ListByResourceGroup(ctx con result.sepdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sepdlr.hasNextLink() && result.sepdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client ServiceEndpointPolicyDefinitionsClient) listByResourceGroupNextResu result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/servicetags.go b/services/network/mgmt/2020-06-01/network/servicetags.go index 10610a128486..27eede099e47 100644 --- a/services/network/mgmt/2020-06-01/network/servicetags.go +++ b/services/network/mgmt/2020-06-01/network/servicetags.go @@ -73,6 +73,7 @@ func (client ServiceTagsClient) List(ctx context.Context, location string) (resu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceTagsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/subnets.go b/services/network/mgmt/2020-06-01/network/subnets.go index bd311cb1ecb5..e666fe10ce52 100644 --- a/services/network/mgmt/2020-06-01/network/subnets.go +++ b/services/network/mgmt/2020-06-01/network/subnets.go @@ -231,6 +231,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/usages.go b/services/network/mgmt/2020-06-01/network/usages.go index 5d66e0d346ce..51b0156fbdb7 100644 --- a/services/network/mgmt/2020-06-01/network/usages.go +++ b/services/network/mgmt/2020-06-01/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/virtualappliances.go b/services/network/mgmt/2020-06-01/network/virtualappliances.go index 0ed86504955d..b84121a4b538 100644 --- a/services/network/mgmt/2020-06-01/network/virtualappliances.go +++ b/services/network/mgmt/2020-06-01/network/virtualappliances.go @@ -239,6 +239,7 @@ func (client VirtualAppliancesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client VirtualAppliancesClient) List(ctx context.Context) (result VirtualA result.valr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "List", resp, "Failure responding to request") + return } if result.valr.hasNextLink() && result.valr.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +379,7 @@ func (client VirtualAppliancesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -428,6 +431,7 @@ func (client VirtualAppliancesClient) ListByResourceGroup(ctx context.Context, r result.valr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.valr.hasNextLink() && result.valr.IsEmpty() { err = result.NextWithContext(ctx) @@ -491,6 +495,7 @@ func (client VirtualAppliancesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -543,6 +548,7 @@ func (client VirtualAppliancesClient) UpdateTags(ctx context.Context, resourceGr result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/virtualappliancesites.go b/services/network/mgmt/2020-06-01/network/virtualappliancesites.go index e804b78551bd..3e0cd11fb85a 100644 --- a/services/network/mgmt/2020-06-01/network/virtualappliancesites.go +++ b/services/network/mgmt/2020-06-01/network/virtualappliancesites.go @@ -232,6 +232,7 @@ func (client VirtualApplianceSitesClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualApplianceSitesClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client VirtualApplianceSitesClient) List(ctx context.Context, resourceGrou result.vaslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualApplianceSitesClient", "List", resp, "Failure responding to request") + return } if result.vaslr.hasNextLink() && result.vaslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client VirtualApplianceSitesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualApplianceSitesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/virtualapplianceskus.go b/services/network/mgmt/2020-06-01/network/virtualapplianceskus.go index f418bc8a7931..266c3eab678f 100644 --- a/services/network/mgmt/2020-06-01/network/virtualapplianceskus.go +++ b/services/network/mgmt/2020-06-01/network/virtualapplianceskus.go @@ -72,6 +72,7 @@ func (client VirtualApplianceSkusClient) Get(ctx context.Context, skuName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualApplianceSkusClient", "Get", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client VirtualApplianceSkusClient) List(ctx context.Context) (result Virtu result.vaslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualApplianceSkusClient", "List", resp, "Failure responding to request") + return } if result.vaslr.hasNextLink() && result.vaslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -206,6 +208,7 @@ func (client VirtualApplianceSkusClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualApplianceSkusClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/virtualhubbgpconnection.go b/services/network/mgmt/2020-06-01/network/virtualhubbgpconnection.go index 0aa7886c29f2..2e84d7e0de4d 100644 --- a/services/network/mgmt/2020-06-01/network/virtualhubbgpconnection.go +++ b/services/network/mgmt/2020-06-01/network/virtualhubbgpconnection.go @@ -245,6 +245,7 @@ func (client VirtualHubBgpConnectionClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/virtualhubbgpconnections.go b/services/network/mgmt/2020-06-01/network/virtualhubbgpconnections.go index 044d3974baab..4e54598662eb 100644 --- a/services/network/mgmt/2020-06-01/network/virtualhubbgpconnections.go +++ b/services/network/mgmt/2020-06-01/network/virtualhubbgpconnections.go @@ -74,6 +74,7 @@ func (client VirtualHubBgpConnectionsClient) List(ctx context.Context, resourceG result.lvhbcr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionsClient", "List", resp, "Failure responding to request") + return } if result.lvhbcr.hasNextLink() && result.lvhbcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client VirtualHubBgpConnectionsClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/virtualhubipconfiguration.go b/services/network/mgmt/2020-06-01/network/virtualhubipconfiguration.go index 8db129006492..2320b0c7e9e8 100644 --- a/services/network/mgmt/2020-06-01/network/virtualhubipconfiguration.go +++ b/services/network/mgmt/2020-06-01/network/virtualhubipconfiguration.go @@ -249,6 +249,7 @@ func (client VirtualHubIPConfigurationClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubIPConfigurationClient", "Get", resp, "Failure responding to request") + return } return @@ -326,6 +327,7 @@ func (client VirtualHubIPConfigurationClient) List(ctx context.Context, resource result.lvhicr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubIPConfigurationClient", "List", resp, "Failure responding to request") + return } if result.lvhicr.hasNextLink() && result.lvhicr.IsEmpty() { err = result.NextWithContext(ctx) @@ -390,6 +392,7 @@ func (client VirtualHubIPConfigurationClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubIPConfigurationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/virtualhubroutetablev2s.go b/services/network/mgmt/2020-06-01/network/virtualhubroutetablev2s.go index a7c379b3ba43..e8e7457f6ec6 100644 --- a/services/network/mgmt/2020-06-01/network/virtualhubroutetablev2s.go +++ b/services/network/mgmt/2020-06-01/network/virtualhubroutetablev2s.go @@ -232,6 +232,7 @@ func (client VirtualHubRouteTableV2sClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client VirtualHubRouteTableV2sClient) List(ctx context.Context, resourceGr result.lvhrtvr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "List", resp, "Failure responding to request") + return } if result.lvhrtvr.hasNextLink() && result.lvhrtvr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client VirtualHubRouteTableV2sClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/virtualhubs.go b/services/network/mgmt/2020-06-01/network/virtualhubs.go index 2c21a0a06509..250537a0d35d 100644 --- a/services/network/mgmt/2020-06-01/network/virtualhubs.go +++ b/services/network/mgmt/2020-06-01/network/virtualhubs.go @@ -237,6 +237,7 @@ func (client VirtualHubsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "Get", resp, "Failure responding to request") + return } return @@ -391,6 +392,7 @@ func (client VirtualHubsClient) List(ctx context.Context) (result ListVirtualHub result.lvhr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "List", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -453,6 +455,7 @@ func (client VirtualHubsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -504,6 +507,7 @@ func (client VirtualHubsClient) ListByResourceGroup(ctx context.Context, resourc result.lvhr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { err = result.NextWithContext(ctx) @@ -567,6 +571,7 @@ func (client VirtualHubsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -619,6 +624,7 @@ func (client VirtualHubsClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2020-06-01/network/virtualnetworkgatewayconnections.go index c1437323f3b4..df96a8ae05dc 100644 --- a/services/network/mgmt/2020-06-01/network/virtualnetworkgatewayconnections.go +++ b/services/network/mgmt/2020-06-01/network/virtualnetworkgatewayconnections.go @@ -264,6 +264,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -416,6 +418,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +482,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/virtualnetworkgateways.go b/services/network/mgmt/2020-06-01/network/virtualnetworkgateways.go index 7ad5d62a5420..16304fed65b8 100644 --- a/services/network/mgmt/2020-06-01/network/virtualnetworkgateways.go +++ b/services/network/mgmt/2020-06-01/network/virtualnetworkgateways.go @@ -476,6 +476,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -1013,6 +1014,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1076,6 +1078,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1128,6 +1131,7 @@ func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, result.vnglcr, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return } if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1192,6 +1196,7 @@ func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx contex result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1644,6 +1649,7 @@ func (client VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Conte result, err = client.SupportedVpnDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", resp, "Failure responding to request") + return } return @@ -1799,6 +1805,7 @@ func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx cont result, err = client.VpnDeviceConfigurationScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2020-06-01/network/virtualnetworkpeerings.go index d12e8b8bc2cb..131a8e58ac12 100644 --- a/services/network/mgmt/2020-06-01/network/virtualnetworkpeerings.go +++ b/services/network/mgmt/2020-06-01/network/virtualnetworkpeerings.go @@ -242,6 +242,7 @@ func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +320,7 @@ func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGro result.vnplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -383,6 +385,7 @@ func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/virtualnetworks.go b/services/network/mgmt/2020-06-01/network/virtualnetworks.go index 601eb9938b61..a328dd9fffd8 100644 --- a/services/network/mgmt/2020-06-01/network/virtualnetworks.go +++ b/services/network/mgmt/2020-06-01/network/virtualnetworks.go @@ -74,6 +74,7 @@ func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Conte result, err = client.CheckIPAddressAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return } return @@ -313,6 +314,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -503,6 +507,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -565,6 +570,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -617,6 +623,7 @@ func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroup result.vnlur, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return } if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { err = result.NextWithContext(ctx) @@ -681,6 +688,7 @@ func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, la result, err = client.ListUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + return } return } @@ -733,6 +741,7 @@ func (client VirtualNetworksClient) UpdateTags(ctx context.Context, resourceGrou result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/virtualnetworktaps.go b/services/network/mgmt/2020-06-01/network/virtualnetworktaps.go index 334fc6f31602..447406aea4bc 100644 --- a/services/network/mgmt/2020-06-01/network/virtualnetworktaps.go +++ b/services/network/mgmt/2020-06-01/network/virtualnetworktaps.go @@ -258,6 +258,7 @@ func (client VirtualNetworkTapsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "Get", resp, "Failure responding to request") + return } return @@ -331,6 +332,7 @@ func (client VirtualNetworkTapsClient) ListAll(ctx context.Context) (result Virt result.vntlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListAll", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -393,6 +395,7 @@ func (client VirtualNetworkTapsClient) listAllNextResults(ctx context.Context, l result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -444,6 +447,7 @@ func (client VirtualNetworkTapsClient) ListByResourceGroup(ctx context.Context, result.vntlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -507,6 +511,7 @@ func (client VirtualNetworkTapsClient) listByResourceGroupNextResults(ctx contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -559,6 +564,7 @@ func (client VirtualNetworkTapsClient) UpdateTags(ctx context.Context, resourceG result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/virtualrouterpeerings.go b/services/network/mgmt/2020-06-01/network/virtualrouterpeerings.go index b8320d5f079e..7e5971367dbe 100644 --- a/services/network/mgmt/2020-06-01/network/virtualrouterpeerings.go +++ b/services/network/mgmt/2020-06-01/network/virtualrouterpeerings.go @@ -244,6 +244,7 @@ func (client VirtualRouterPeeringsClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client VirtualRouterPeeringsClient) List(ctx context.Context, resourceGrou result.vrplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "List", resp, "Failure responding to request") + return } if result.vrplr.hasNextLink() && result.vrplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client VirtualRouterPeeringsClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/virtualrouters.go b/services/network/mgmt/2020-06-01/network/virtualrouters.go index 464981f4dfe4..64ace26d0ce2 100644 --- a/services/network/mgmt/2020-06-01/network/virtualrouters.go +++ b/services/network/mgmt/2020-06-01/network/virtualrouters.go @@ -238,6 +238,7 @@ func (client VirtualRoutersClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client VirtualRoutersClient) List(ctx context.Context) (result VirtualRout result.vrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "List", resp, "Failure responding to request") + return } if result.vrlr.hasNextLink() && result.vrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -376,6 +378,7 @@ func (client VirtualRoutersClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -427,6 +430,7 @@ func (client VirtualRoutersClient) ListByResourceGroup(ctx context.Context, reso result.vrlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vrlr.hasNextLink() && result.vrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -490,6 +494,7 @@ func (client VirtualRoutersClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/virtualwans.go b/services/network/mgmt/2020-06-01/network/virtualwans.go index 727456cad6e4..b65417cf2632 100644 --- a/services/network/mgmt/2020-06-01/network/virtualwans.go +++ b/services/network/mgmt/2020-06-01/network/virtualwans.go @@ -225,6 +225,7 @@ func (client VirtualWansClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client VirtualWansClient) List(ctx context.Context) (result ListVirtualWAN result.lvwnr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "List", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client VirtualWansClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualWansClient) ListByResourceGroup(ctx context.Context, resourc result.lvwnr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client VirtualWansClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +531,7 @@ func (client VirtualWansClient) UpdateTags(ctx context.Context, resourceGroupNam result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/vpnconnections.go b/services/network/mgmt/2020-06-01/network/vpnconnections.go index 6f6d325c74a2..de8f9a9d8517 100644 --- a/services/network/mgmt/2020-06-01/network/vpnconnections.go +++ b/services/network/mgmt/2020-06-01/network/vpnconnections.go @@ -231,6 +231,7 @@ func (client VpnConnectionsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client VpnConnectionsClient) ListByVpnGateway(ctx context.Context, resourc result.lvcr, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "ListByVpnGateway", resp, "Failure responding to request") + return } if result.lvcr.hasNextLink() && result.lvcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +374,7 @@ func (client VpnConnectionsClient) listByVpnGatewayNextResults(ctx context.Conte result, err = client.ListByVpnGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "listByVpnGatewayNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/vpngateways.go b/services/network/mgmt/2020-06-01/network/vpngateways.go index 4defe4d77c56..f937de20d8e2 100644 --- a/services/network/mgmt/2020-06-01/network/vpngateways.go +++ b/services/network/mgmt/2020-06-01/network/vpngateways.go @@ -239,6 +239,7 @@ func (client VpnGatewaysClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client VpnGatewaysClient) List(ctx context.Context) (result ListVpnGateway result.lvgr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client VpnGatewaysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -425,6 +428,7 @@ func (client VpnGatewaysClient) ListByResourceGroup(ctx context.Context, resourc result.lvgr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -488,6 +492,7 @@ func (client VpnGatewaysClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/vpnlinkconnections.go b/services/network/mgmt/2020-06-01/network/vpnlinkconnections.go index c520773e8483..7bce0e313ee6 100644 --- a/services/network/mgmt/2020-06-01/network/vpnlinkconnections.go +++ b/services/network/mgmt/2020-06-01/network/vpnlinkconnections.go @@ -75,6 +75,7 @@ func (client VpnLinkConnectionsClient) ListByVpnConnection(ctx context.Context, result.lvslcr, err = client.ListByVpnConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnLinkConnectionsClient", "ListByVpnConnection", resp, "Failure responding to request") + return } if result.lvslcr.hasNextLink() && result.lvslcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -140,6 +141,7 @@ func (client VpnLinkConnectionsClient) listByVpnConnectionNextResults(ctx contex result, err = client.ListByVpnConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnLinkConnectionsClient", "listByVpnConnectionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/vpnserverconfigurations.go b/services/network/mgmt/2020-06-01/network/vpnserverconfigurations.go index 7efea393d981..544c88a060ea 100644 --- a/services/network/mgmt/2020-06-01/network/vpnserverconfigurations.go +++ b/services/network/mgmt/2020-06-01/network/vpnserverconfigurations.go @@ -227,6 +227,7 @@ func (client VpnServerConfigurationsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client VpnServerConfigurationsClient) List(ctx context.Context) (result Li result.lvscr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.lvscr.hasNextLink() && result.lvscr.IsEmpty() { err = result.NextWithContext(ctx) @@ -362,6 +364,7 @@ func (client VpnServerConfigurationsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +416,7 @@ func (client VpnServerConfigurationsClient) ListByResourceGroup(ctx context.Cont result.lvscr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvscr.hasNextLink() && result.lvscr.IsEmpty() { err = result.NextWithContext(ctx) @@ -476,6 +480,7 @@ func (client VpnServerConfigurationsClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -528,6 +533,7 @@ func (client VpnServerConfigurationsClient) UpdateTags(ctx context.Context, reso result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/vpnsitelinkconnections.go b/services/network/mgmt/2020-06-01/network/vpnsitelinkconnections.go index 4ede20953813..7446b2c23570 100644 --- a/services/network/mgmt/2020-06-01/network/vpnsitelinkconnections.go +++ b/services/network/mgmt/2020-06-01/network/vpnsitelinkconnections.go @@ -75,6 +75,7 @@ func (client VpnSiteLinkConnectionsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinkConnectionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/vpnsitelinks.go b/services/network/mgmt/2020-06-01/network/vpnsitelinks.go index 11501096a88d..43c20ef2ba5f 100644 --- a/services/network/mgmt/2020-06-01/network/vpnsitelinks.go +++ b/services/network/mgmt/2020-06-01/network/vpnsitelinks.go @@ -73,6 +73,7 @@ func (client VpnSiteLinksClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client VpnSiteLinksClient) ListByVpnSite(ctx context.Context, resourceGrou result.lvslr, err = client.ListByVpnSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "ListByVpnSite", resp, "Failure responding to request") + return } if result.lvslr.hasNextLink() && result.lvslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -214,6 +216,7 @@ func (client VpnSiteLinksClient) listByVpnSiteNextResults(ctx context.Context, l result, err = client.ListByVpnSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "listByVpnSiteNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/network/mgmt/2020-06-01/network/vpnsites.go b/services/network/mgmt/2020-06-01/network/vpnsites.go index 73d346fffc6b..f1482239264b 100644 --- a/services/network/mgmt/2020-06-01/network/vpnsites.go +++ b/services/network/mgmt/2020-06-01/network/vpnsites.go @@ -239,6 +239,7 @@ func (client VpnSitesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client VpnSitesClient) List(ctx context.Context) (result ListVpnSitesResul result.lvsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "List", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client VpnSitesClient) listNextResults(ctx context.Context, lastResults Li result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -425,6 +428,7 @@ func (client VpnSitesClient) ListByResourceGroup(ctx context.Context, resourceGr result.lvsr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -488,6 +492,7 @@ func (client VpnSitesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -540,6 +545,7 @@ func (client VpnSitesClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/watchers.go b/services/network/mgmt/2020-06-01/network/watchers.go index f20fe2f5e904..f6e5cf593500 100644 --- a/services/network/mgmt/2020-06-01/network/watchers.go +++ b/services/network/mgmt/2020-06-01/network/watchers.go @@ -161,6 +161,7 @@ func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -313,6 +314,7 @@ func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return } return @@ -736,6 +738,7 @@ func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName result, err = client.GetTopologyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return } return @@ -1068,6 +1071,7 @@ func (client WatchersClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return } return @@ -1139,6 +1143,7 @@ func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return } return @@ -1380,6 +1385,7 @@ func (client WatchersClient) UpdateTags(ctx context.Context, resourceGroupName s result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/network/mgmt/2020-06-01/network/webapplicationfirewallpolicies.go b/services/network/mgmt/2020-06-01/network/webapplicationfirewallpolicies.go index f0c3aa70a423..7c639ceb56a9 100644 --- a/services/network/mgmt/2020-06-01/network/webapplicationfirewallpolicies.go +++ b/services/network/mgmt/2020-06-01/network/webapplicationfirewallpolicies.go @@ -94,6 +94,7 @@ func (client WebApplicationFirewallPoliciesClient) CreateOrUpdate(ctx context.Co result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -258,6 +259,7 @@ func (client WebApplicationFirewallPoliciesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -333,6 +335,7 @@ func (client WebApplicationFirewallPoliciesClient) List(ctx context.Context, res result.wafplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "List", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -396,6 +399,7 @@ func (client WebApplicationFirewallPoliciesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +449,7 @@ func (client WebApplicationFirewallPoliciesClient) ListAll(ctx context.Context) result.wafplr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "ListAll", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -507,6 +512,7 @@ func (client WebApplicationFirewallPoliciesClient) listAllNextResults(ctx contex result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/notificationhubs/mgmt/2014-09-01/notificationhubs/namespaces.go b/services/notificationhubs/mgmt/2014-09-01/notificationhubs/namespaces.go index edcab0230a30..79d3750c346a 100644 --- a/services/notificationhubs/mgmt/2014-09-01/notificationhubs/namespaces.go +++ b/services/notificationhubs/mgmt/2014-09-01/notificationhubs/namespaces.go @@ -79,6 +79,7 @@ func (client NamespacesClient) CheckAvailability(ctx context.Context, parameters result, err = client.CheckAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "CheckAvailability", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client NamespacesClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client NamespacesClient) CreateOrUpdateAuthorizationRule(ctx context.Conte result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -402,6 +405,7 @@ func (client NamespacesClient) DeleteAuthorizationRule(ctx context.Context, reso result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -477,6 +481,7 @@ func (client NamespacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "Get", resp, "Failure responding to request") + return } return @@ -553,6 +558,7 @@ func (client NamespacesClient) GetAuthorizationRule(ctx context.Context, resourc result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -630,6 +636,7 @@ func (client NamespacesClient) GetLongRunningOperationStatus(ctx context.Context result, err = client.GetLongRunningOperationStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "GetLongRunningOperationStatus", resp, "Failure responding to request") + return } return @@ -697,6 +704,7 @@ func (client NamespacesClient) List(ctx context.Context, resourceGroupName strin result.nlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "List", resp, "Failure responding to request") + return } if result.nlr.hasNextLink() && result.nlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -760,6 +768,7 @@ func (client NamespacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -809,6 +818,7 @@ func (client NamespacesClient) ListAll(ctx context.Context) (result NamespaceLis result.nlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "ListAll", resp, "Failure responding to request") + return } if result.nlr.hasNextLink() && result.nlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -871,6 +881,7 @@ func (client NamespacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -923,6 +934,7 @@ func (client NamespacesClient) ListAuthorizationRules(ctx context.Context, resou result.saarlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.saarlr.hasNextLink() && result.saarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -987,6 +999,7 @@ func (client NamespacesClient) listAuthorizationRulesNextResults(ctx context.Con result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1039,6 +1052,7 @@ func (client NamespacesClient) ListKeys(ctx context.Context, resourceGroupName s result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "ListKeys", resp, "Failure responding to request") + return } return diff --git a/services/notificationhubs/mgmt/2014-09-01/notificationhubs/notificationhubs.go b/services/notificationhubs/mgmt/2014-09-01/notificationhubs/notificationhubs.go index c5b218cea395..7725e06fc804 100644 --- a/services/notificationhubs/mgmt/2014-09-01/notificationhubs/notificationhubs.go +++ b/services/notificationhubs/mgmt/2014-09-01/notificationhubs/notificationhubs.go @@ -80,6 +80,7 @@ func (client Client) CheckAvailability(ctx context.Context, resourceGroupName st result, err = client.CheckAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "CheckAvailability", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client Client) CreateOrUpdate(ctx context.Context, resourceGroupName strin result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -253,6 +255,7 @@ func (client Client) CreateOrUpdateAuthorizationRule(ctx context.Context, resour result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -333,6 +336,7 @@ func (client Client) Delete(ctx context.Context, resourceGroupName string, names result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "Delete", resp, "Failure responding to request") + return } return @@ -410,6 +414,7 @@ func (client Client) DeleteAuthorizationRule(ctx context.Context, resourceGroupN result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -487,6 +492,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, namespac result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "Get", resp, "Failure responding to request") + return } return @@ -565,6 +571,7 @@ func (client Client) GetAuthorizationRule(ctx context.Context, resourceGroupName result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -643,6 +650,7 @@ func (client Client) GetPnsCredentials(ctx context.Context, resourceGroupName st result, err = client.GetPnsCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "GetPnsCredentials", resp, "Failure responding to request") + return } return @@ -720,6 +728,7 @@ func (client Client) List(ctx context.Context, resourceGroupName string, namespa result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -784,6 +793,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -837,6 +847,7 @@ func (client Client) ListAuthorizationRules(ctx context.Context, resourceGroupNa result.saarlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.saarlr.hasNextLink() && result.saarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -902,6 +913,7 @@ func (client Client) listAuthorizationRulesNextResults(ctx context.Context, last result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -955,6 +967,7 @@ func (client Client) ListKeys(ctx context.Context, resourceGroupName string, nam result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "ListKeys", resp, "Failure responding to request") + return } return diff --git a/services/notificationhubs/mgmt/2016-03-01/notificationhubs/namespaces.go b/services/notificationhubs/mgmt/2016-03-01/notificationhubs/namespaces.go index ebd4a0167446..354be9dc2a89 100644 --- a/services/notificationhubs/mgmt/2016-03-01/notificationhubs/namespaces.go +++ b/services/notificationhubs/mgmt/2016-03-01/notificationhubs/namespaces.go @@ -80,6 +80,7 @@ func (client NamespacesClient) CheckAvailability(ctx context.Context, parameters result, err = client.CheckAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "CheckAvailability", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client NamespacesClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client NamespacesClient) CreateOrUpdateAuthorizationRule(ctx context.Conte result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -398,6 +401,7 @@ func (client NamespacesClient) DeleteAuthorizationRule(ctx context.Context, reso result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -473,6 +477,7 @@ func (client NamespacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "Get", resp, "Failure responding to request") + return } return @@ -549,6 +554,7 @@ func (client NamespacesClient) GetAuthorizationRule(ctx context.Context, resourc result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -626,6 +632,7 @@ func (client NamespacesClient) List(ctx context.Context, resourceGroupName strin result.nlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "List", resp, "Failure responding to request") + return } if result.nlr.hasNextLink() && result.nlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -689,6 +696,7 @@ func (client NamespacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -738,6 +746,7 @@ func (client NamespacesClient) ListAll(ctx context.Context) (result NamespaceLis result.nlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "ListAll", resp, "Failure responding to request") + return } if result.nlr.hasNextLink() && result.nlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -800,6 +809,7 @@ func (client NamespacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -852,6 +862,7 @@ func (client NamespacesClient) ListAuthorizationRules(ctx context.Context, resou result.saarlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.saarlr.hasNextLink() && result.saarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -916,6 +927,7 @@ func (client NamespacesClient) listAuthorizationRulesNextResults(ctx context.Con result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -968,6 +980,7 @@ func (client NamespacesClient) ListKeys(ctx context.Context, resourceGroupName s result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -1045,6 +1058,7 @@ func (client NamespacesClient) Patch(ctx context.Context, resourceGroupName stri result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "Patch", resp, "Failure responding to request") + return } return @@ -1124,6 +1138,7 @@ func (client NamespacesClient) RegenerateKeys(ctx context.Context, resourceGroup result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "RegenerateKeys", resp, "Failure responding to request") + return } return diff --git a/services/notificationhubs/mgmt/2016-03-01/notificationhubs/notificationhubs.go b/services/notificationhubs/mgmt/2016-03-01/notificationhubs/notificationhubs.go index 5785414e1f3e..f0054226c4dc 100644 --- a/services/notificationhubs/mgmt/2016-03-01/notificationhubs/notificationhubs.go +++ b/services/notificationhubs/mgmt/2016-03-01/notificationhubs/notificationhubs.go @@ -81,6 +81,7 @@ func (client Client) CheckAvailability(ctx context.Context, resourceGroupName st result, err = client.CheckAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "CheckAvailability", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client Client) CreateOrUpdate(ctx context.Context, resourceGroupName strin result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -255,6 +257,7 @@ func (client Client) CreateOrUpdateAuthorizationRule(ctx context.Context, resour result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -335,6 +338,7 @@ func (client Client) Delete(ctx context.Context, resourceGroupName string, names result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "Delete", resp, "Failure responding to request") + return } return @@ -412,6 +416,7 @@ func (client Client) DeleteAuthorizationRule(ctx context.Context, resourceGroupN result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -489,6 +494,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, namespac result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "Get", resp, "Failure responding to request") + return } return @@ -567,6 +573,7 @@ func (client Client) GetAuthorizationRule(ctx context.Context, resourceGroupName result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -645,6 +652,7 @@ func (client Client) GetPnsCredentials(ctx context.Context, resourceGroupName st result, err = client.GetPnsCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "GetPnsCredentials", resp, "Failure responding to request") + return } return @@ -722,6 +730,7 @@ func (client Client) List(ctx context.Context, resourceGroupName string, namespa result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -786,6 +795,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -839,6 +849,7 @@ func (client Client) ListAuthorizationRules(ctx context.Context, resourceGroupNa result.saarlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.saarlr.hasNextLink() && result.saarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -904,6 +915,7 @@ func (client Client) listAuthorizationRulesNextResults(ctx context.Context, last result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -957,6 +969,7 @@ func (client Client) ListKeys(ctx context.Context, resourceGroupName string, nam result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "ListKeys", resp, "Failure responding to request") + return } return @@ -1037,6 +1050,7 @@ func (client Client) RegenerateKeys(ctx context.Context, resourceGroupName strin result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "RegenerateKeys", resp, "Failure responding to request") + return } return diff --git a/services/notificationhubs/mgmt/2017-04-01/notificationhubs/namespaces.go b/services/notificationhubs/mgmt/2017-04-01/notificationhubs/namespaces.go index f399a1abdad0..112b0daa1c4d 100644 --- a/services/notificationhubs/mgmt/2017-04-01/notificationhubs/namespaces.go +++ b/services/notificationhubs/mgmt/2017-04-01/notificationhubs/namespaces.go @@ -79,6 +79,7 @@ func (client NamespacesClient) CheckAvailability(ctx context.Context, parameters result, err = client.CheckAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "CheckAvailability", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client NamespacesClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -243,6 +245,7 @@ func (client NamespacesClient) CreateOrUpdateAuthorizationRule(ctx context.Conte result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -397,6 +400,7 @@ func (client NamespacesClient) DeleteAuthorizationRule(ctx context.Context, reso result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -472,6 +476,7 @@ func (client NamespacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "Get", resp, "Failure responding to request") + return } return @@ -548,6 +553,7 @@ func (client NamespacesClient) GetAuthorizationRule(ctx context.Context, resourc result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -625,6 +631,7 @@ func (client NamespacesClient) List(ctx context.Context, resourceGroupName strin result.nlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "List", resp, "Failure responding to request") + return } if result.nlr.hasNextLink() && result.nlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -688,6 +695,7 @@ func (client NamespacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -737,6 +745,7 @@ func (client NamespacesClient) ListAll(ctx context.Context) (result NamespaceLis result.nlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "ListAll", resp, "Failure responding to request") + return } if result.nlr.hasNextLink() && result.nlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -799,6 +808,7 @@ func (client NamespacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -851,6 +861,7 @@ func (client NamespacesClient) ListAuthorizationRules(ctx context.Context, resou result.saarlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.saarlr.hasNextLink() && result.saarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -915,6 +926,7 @@ func (client NamespacesClient) listAuthorizationRulesNextResults(ctx context.Con result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -967,6 +979,7 @@ func (client NamespacesClient) ListKeys(ctx context.Context, resourceGroupName s result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -1044,6 +1057,7 @@ func (client NamespacesClient) Patch(ctx context.Context, resourceGroupName stri result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "Patch", resp, "Failure responding to request") + return } return @@ -1123,6 +1137,7 @@ func (client NamespacesClient) RegenerateKeys(ctx context.Context, resourceGroup result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesClient", "RegenerateKeys", resp, "Failure responding to request") + return } return diff --git a/services/notificationhubs/mgmt/2017-04-01/notificationhubs/notificationhubs.go b/services/notificationhubs/mgmt/2017-04-01/notificationhubs/notificationhubs.go index 47fac54433a9..9d5cb3fd59fc 100644 --- a/services/notificationhubs/mgmt/2017-04-01/notificationhubs/notificationhubs.go +++ b/services/notificationhubs/mgmt/2017-04-01/notificationhubs/notificationhubs.go @@ -80,6 +80,7 @@ func (client Client) CheckNotificationHubAvailability(ctx context.Context, resou result, err = client.CheckNotificationHubAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "CheckNotificationHubAvailability", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client Client) CreateOrUpdate(ctx context.Context, resourceGroupName strin result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -254,6 +256,7 @@ func (client Client) CreateOrUpdateAuthorizationRule(ctx context.Context, resour result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -335,6 +338,7 @@ func (client Client) DebugSend(ctx context.Context, resourceGroupName string, na result, err = client.DebugSendResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "DebugSend", resp, "Failure responding to request") + return } return @@ -417,6 +421,7 @@ func (client Client) Delete(ctx context.Context, resourceGroupName string, names result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "Delete", resp, "Failure responding to request") + return } return @@ -494,6 +499,7 @@ func (client Client) DeleteAuthorizationRule(ctx context.Context, resourceGroupN result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -571,6 +577,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, namespac result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "Get", resp, "Failure responding to request") + return } return @@ -649,6 +656,7 @@ func (client Client) GetAuthorizationRule(ctx context.Context, resourceGroupName result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -727,6 +735,7 @@ func (client Client) GetPnsCredentials(ctx context.Context, resourceGroupName st result, err = client.GetPnsCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "GetPnsCredentials", resp, "Failure responding to request") + return } return @@ -804,6 +813,7 @@ func (client Client) List(ctx context.Context, resourceGroupName string, namespa result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -868,6 +878,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -921,6 +932,7 @@ func (client Client) ListAuthorizationRules(ctx context.Context, resourceGroupNa result.saarlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.saarlr.hasNextLink() && result.saarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -986,6 +998,7 @@ func (client Client) listAuthorizationRulesNextResults(ctx context.Context, last result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1039,6 +1052,7 @@ func (client Client) ListKeys(ctx context.Context, resourceGroupName string, nam result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "ListKeys", resp, "Failure responding to request") + return } return @@ -1118,6 +1132,7 @@ func (client Client) Patch(ctx context.Context, resourceGroupName string, namesp result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "Patch", resp, "Failure responding to request") + return } return @@ -1202,6 +1217,7 @@ func (client Client) RegenerateKeys(ctx context.Context, resourceGroupName strin result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.Client", "RegenerateKeys", resp, "Failure responding to request") + return } return diff --git a/services/notificationhubs/mgmt/2017-04-01/notificationhubs/operations.go b/services/notificationhubs/mgmt/2017-04-01/notificationhubs/operations.go index e29e40b59255..8cede9cad080 100644 --- a/services/notificationhubs/mgmt/2017-04-01/notificationhubs/operations.go +++ b/services/notificationhubs/mgmt/2017-04-01/notificationhubs/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/operationalinsights/mgmt/2015-03-20/operationalinsights/operations.go b/services/operationalinsights/mgmt/2015-03-20/operationalinsights/operations.go index 9f2f948292e0..ad4a6856c27e 100644 --- a/services/operationalinsights/mgmt/2015-03-20/operationalinsights/operations.go +++ b/services/operationalinsights/mgmt/2015-03-20/operationalinsights/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/operationalinsights/mgmt/2015-03-20/operationalinsights/savedsearches.go b/services/operationalinsights/mgmt/2015-03-20/operationalinsights/savedsearches.go index 93f5a854ec67..5bf4572e1548 100644 --- a/services/operationalinsights/mgmt/2015-03-20/operationalinsights/savedsearches.go +++ b/services/operationalinsights/mgmt/2015-03-20/operationalinsights/savedsearches.go @@ -93,6 +93,7 @@ func (client SavedSearchesClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.SavedSearchesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -183,6 +184,7 @@ func (client SavedSearchesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.SavedSearchesClient", "Delete", resp, "Failure responding to request") + return } return @@ -267,6 +269,7 @@ func (client SavedSearchesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.SavedSearchesClient", "Get", resp, "Failure responding to request") + return } return @@ -351,6 +354,7 @@ func (client SavedSearchesClient) ListByWorkspace(ctx context.Context, resourceG result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.SavedSearchesClient", "ListByWorkspace", resp, "Failure responding to request") + return } return diff --git a/services/operationalinsights/mgmt/2015-03-20/operationalinsights/storageinsights.go b/services/operationalinsights/mgmt/2015-03-20/operationalinsights/storageinsights.go index 835925d30565..b818813e429b 100644 --- a/services/operationalinsights/mgmt/2015-03-20/operationalinsights/storageinsights.go +++ b/services/operationalinsights/mgmt/2015-03-20/operationalinsights/storageinsights.go @@ -90,6 +90,7 @@ func (client StorageInsightsClient) CreateOrUpdate(ctx context.Context, resource result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.StorageInsightsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client StorageInsightsClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.StorageInsightsClient", "Delete", resp, "Failure responding to request") + return } return @@ -261,6 +263,7 @@ func (client StorageInsightsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.StorageInsightsClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +349,7 @@ func (client StorageInsightsClient) ListByWorkspace(ctx context.Context, resourc result.silr, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.StorageInsightsClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.silr.hasNextLink() && result.silr.IsEmpty() { err = result.NextWithContext(ctx) @@ -410,6 +414,7 @@ func (client StorageInsightsClient) listByWorkspaceNextResults(ctx context.Conte result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.StorageInsightsClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/operationalinsights/mgmt/2015-03-20/operationalinsights/workspaces.go b/services/operationalinsights/mgmt/2015-03-20/operationalinsights/workspaces.go index cff1d67cea4d..c39b9a51b0ba 100644 --- a/services/operationalinsights/mgmt/2015-03-20/operationalinsights/workspaces.go +++ b/services/operationalinsights/mgmt/2015-03-20/operationalinsights/workspaces.go @@ -81,6 +81,7 @@ func (client WorkspacesClient) AvailableServiceTiers(ctx context.Context, resour result, err = client.AvailableServiceTiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "AvailableServiceTiers", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client WorkspacesClient) DeleteGateways(ctx context.Context, resourceGroup result, err = client.DeleteGatewaysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "DeleteGateways", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client WorkspacesClient) GetPurgeStatus(ctx context.Context, resourceGroup result, err = client.GetPurgeStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "GetPurgeStatus", resp, "Failure responding to request") + return } return @@ -332,6 +335,7 @@ func (client WorkspacesClient) GetSchema(ctx context.Context, resourceGroupName result, err = client.GetSchemaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "GetSchema", resp, "Failure responding to request") + return } return @@ -416,6 +420,7 @@ func (client WorkspacesClient) ListKeys(ctx context.Context, resourceGroupName s result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -489,6 +494,7 @@ func (client WorkspacesClient) ListLinkTargets(ctx context.Context) (result List result, err = client.ListLinkTargetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "ListLinkTargets", resp, "Failure responding to request") + return } return @@ -579,6 +585,7 @@ func (client WorkspacesClient) Purge(ctx context.Context, resourceGroupName stri result, err = client.PurgeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "Purge", resp, "Failure responding to request") + return } return @@ -665,6 +672,7 @@ func (client WorkspacesClient) RegenerateSharedKeys(ctx context.Context, resourc result, err = client.RegenerateSharedKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "RegenerateSharedKeys", resp, "Failure responding to request") + return } return diff --git a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/availableservicetiers.go b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/availableservicetiers.go index b3821e410a0f..b5292a146b17 100644 --- a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/availableservicetiers.go +++ b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/availableservicetiers.go @@ -88,6 +88,7 @@ func (client AvailableServiceTiersClient) ListByWorkspace(ctx context.Context, r result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.AvailableServiceTiersClient", "ListByWorkspace", resp, "Failure responding to request") + return } return diff --git a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/clusters.go b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/clusters.go index 7ab6a927fcf9..ff6e9c55a2d2 100644 --- a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/clusters.go +++ b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/clusters.go @@ -259,6 +259,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -338,6 +339,7 @@ func (client ClustersClient) List(ctx context.Context) (result ClusterListResult result.clr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.ClustersClient", "List", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -400,6 +402,7 @@ func (client ClustersClient) listNextResults(ctx context.Context, lastResults Cl result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.ClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -461,6 +464,7 @@ func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGr result.clr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.ClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -524,6 +528,7 @@ func (client ClustersClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.ClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -586,6 +591,7 @@ func (client ClustersClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.ClustersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/dataexports.go b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/dataexports.go index dcfc9ac7dbe5..bfe48a76350a 100644 --- a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/dataexports.go +++ b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/dataexports.go @@ -98,6 +98,7 @@ func (client DataExportsClient) CreateOrUpdate(ctx context.Context, resourceGrou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DataExportsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -191,6 +192,7 @@ func (client DataExportsClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DataExportsClient", "Delete", resp, "Failure responding to request") + return } return @@ -281,6 +283,7 @@ func (client DataExportsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DataExportsClient", "Get", resp, "Failure responding to request") + return } return @@ -371,6 +374,7 @@ func (client DataExportsClient) ListByWorkspace(ctx context.Context, resourceGro result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DataExportsClient", "ListByWorkspace", resp, "Failure responding to request") + return } return diff --git a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/datasources.go b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/datasources.go index fa4e4b64ce89..0e1f9bbdb3b7 100644 --- a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/datasources.go +++ b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/datasources.go @@ -91,6 +91,7 @@ func (client DataSourcesClient) CreateOrUpdate(ctx context.Context, resourceGrou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DataSourcesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -184,6 +185,7 @@ func (client DataSourcesClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DataSourcesClient", "Delete", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client DataSourcesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DataSourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -367,6 +370,7 @@ func (client DataSourcesClient) ListByWorkspace(ctx context.Context, resourceGro result.dslr, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DataSourcesClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.dslr.hasNextLink() && result.dslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -435,6 +439,7 @@ func (client DataSourcesClient) listByWorkspaceNextResults(ctx context.Context, result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DataSourcesClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/deletedworkspaces.go b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/deletedworkspaces.go index 813d3cfdb876..b6e480b96ab0 100644 --- a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/deletedworkspaces.go +++ b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/deletedworkspaces.go @@ -77,6 +77,7 @@ func (client DeletedWorkspacesClient) List(ctx context.Context) (result Workspac result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DeletedWorkspacesClient", "List", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client DeletedWorkspacesClient) ListByResourceGroup(ctx context.Context, r result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DeletedWorkspacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return diff --git a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/gateways.go b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/gateways.go index f967ded1e80e..21f0e358b5af 100644 --- a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/gateways.go +++ b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/gateways.go @@ -88,6 +88,7 @@ func (client GatewaysClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.GatewaysClient", "Delete", resp, "Failure responding to request") + return } return diff --git a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/intelligencepacks.go b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/intelligencepacks.go index 8e870e73d324..e9d8bb08a4d7 100644 --- a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/intelligencepacks.go +++ b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/intelligencepacks.go @@ -89,6 +89,7 @@ func (client IntelligencePacksClient) Disable(ctx context.Context, resourceGroup result, err = client.DisableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.IntelligencePacksClient", "Disable", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client IntelligencePacksClient) Enable(ctx context.Context, resourceGroupN result, err = client.EnableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.IntelligencePacksClient", "Enable", resp, "Failure responding to request") + return } return @@ -268,6 +270,7 @@ func (client IntelligencePacksClient) List(ctx context.Context, resourceGroupNam result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.IntelligencePacksClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/linkedservices.go b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/linkedservices.go index 585fa4047bf1..53221f3791d6 100644 --- a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/linkedservices.go +++ b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/linkedservices.go @@ -275,6 +275,7 @@ func (client LinkedServicesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.LinkedServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -365,6 +366,7 @@ func (client LinkedServicesClient) ListByWorkspace(ctx context.Context, resource result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.LinkedServicesClient", "ListByWorkspace", resp, "Failure responding to request") + return } return diff --git a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/linkedstorageaccounts.go b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/linkedstorageaccounts.go index 27c051c0f898..8cda8967f99c 100644 --- a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/linkedstorageaccounts.go +++ b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/linkedstorageaccounts.go @@ -93,6 +93,7 @@ func (client LinkedStorageAccountsClient) CreateOrUpdate(ctx context.Context, re result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.LinkedStorageAccountsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client LinkedStorageAccountsClient) Delete(ctx context.Context, resourceGr result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.LinkedStorageAccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -276,6 +278,7 @@ func (client LinkedStorageAccountsClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.LinkedStorageAccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -367,6 +370,7 @@ func (client LinkedStorageAccountsClient) ListByWorkspace(ctx context.Context, r result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.LinkedStorageAccountsClient", "ListByWorkspace", resp, "Failure responding to request") + return } return diff --git a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/managementgroups.go b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/managementgroups.go index 4cf1a3a71a5c..db501498bf7f 100644 --- a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/managementgroups.go +++ b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/managementgroups.go @@ -88,6 +88,7 @@ func (client ManagementGroupsClient) List(ctx context.Context, resourceGroupName result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.ManagementGroupsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/operations.go b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/operations.go index 35e4d3cbaa5c..cc620bafd034 100644 --- a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/operations.go +++ b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/operationstatuses.go b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/operationstatuses.go index 3ef21a819905..d8015b226a3d 100644 --- a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/operationstatuses.go +++ b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/operationstatuses.go @@ -80,6 +80,7 @@ func (client OperationStatusesClient) Get(ctx context.Context, location string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.OperationStatusesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/savedsearches.go b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/savedsearches.go index 29faa7ca1acb..ce855f195760 100644 --- a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/savedsearches.go +++ b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/savedsearches.go @@ -95,6 +95,7 @@ func (client SavedSearchesClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.SavedSearchesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client SavedSearchesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.SavedSearchesClient", "Delete", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client SavedSearchesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.SavedSearchesClient", "Get", resp, "Failure responding to request") + return } return @@ -368,6 +371,7 @@ func (client SavedSearchesClient) ListByWorkspace(ctx context.Context, resourceG result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.SavedSearchesClient", "ListByWorkspace", resp, "Failure responding to request") + return } return diff --git a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/schema.go b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/schema.go index 2a3127124039..ce60de8708a2 100644 --- a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/schema.go +++ b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/schema.go @@ -87,6 +87,7 @@ func (client SchemaClient) Get(ctx context.Context, resourceGroupName string, wo result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.SchemaClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/sharedkeys.go b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/sharedkeys.go index 7264484f65ad..6612d6571341 100644 --- a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/sharedkeys.go +++ b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/sharedkeys.go @@ -87,6 +87,7 @@ func (client SharedKeysClient) GetSharedKeys(ctx context.Context, resourceGroupN result, err = client.GetSharedKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.SharedKeysClient", "GetSharedKeys", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client SharedKeysClient) Regenerate(ctx context.Context, resourceGroupName result, err = client.RegenerateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.SharedKeysClient", "Regenerate", resp, "Failure responding to request") + return } return diff --git a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/storageinsightconfigs.go b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/storageinsightconfigs.go index eec4bf039656..17bef649dc03 100644 --- a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/storageinsightconfigs.go +++ b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/storageinsightconfigs.go @@ -97,6 +97,7 @@ func (client StorageInsightConfigsClient) CreateOrUpdate(ctx context.Context, re result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.StorageInsightConfigsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client StorageInsightConfigsClient) Delete(ctx context.Context, resourceGr result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.StorageInsightConfigsClient", "Delete", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client StorageInsightConfigsClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.StorageInsightConfigsClient", "Get", resp, "Failure responding to request") + return } return @@ -371,6 +374,7 @@ func (client StorageInsightConfigsClient) ListByWorkspace(ctx context.Context, r result.silr, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.StorageInsightConfigsClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.silr.hasNextLink() && result.silr.IsEmpty() { err = result.NextWithContext(ctx) @@ -435,6 +439,7 @@ func (client StorageInsightConfigsClient) listByWorkspaceNextResults(ctx context result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.StorageInsightConfigsClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/tables.go b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/tables.go index cc773725b2a3..5509c9345bd3 100644 --- a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/tables.go +++ b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/tables.go @@ -88,6 +88,7 @@ func (client TablesClient) Get(ctx context.Context, resourceGroupName string, wo result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.TablesClient", "Get", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client TablesClient) ListByWorkspace(ctx context.Context, resourceGroupNam result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.TablesClient", "ListByWorkspace", resp, "Failure responding to request") + return } return @@ -269,6 +271,7 @@ func (client TablesClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.TablesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/usages.go b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/usages.go index 92022a75ed15..910ba53d5f85 100644 --- a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/usages.go +++ b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/usages.go @@ -87,6 +87,7 @@ func (client UsagesClient) List(ctx context.Context, resourceGroupName string, w result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.UsagesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/workspacepurge.go b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/workspacepurge.go index d467385e045a..79d55174eef2 100644 --- a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/workspacepurge.go +++ b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/workspacepurge.go @@ -88,6 +88,7 @@ func (client WorkspacePurgeClient) GetPurgeStatus(ctx context.Context, resourceG result, err = client.GetPurgeStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacePurgeClient", "GetPurgeStatus", resp, "Failure responding to request") + return } return @@ -187,6 +188,7 @@ func (client WorkspacePurgeClient) Purge(ctx context.Context, resourceGroupName result, err = client.PurgeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacePurgeClient", "Purge", resp, "Failure responding to request") + return } return diff --git a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/workspaces.go b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/workspaces.go index 040f896bf159..85027ff31086 100644 --- a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/workspaces.go +++ b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/workspaces.go @@ -281,6 +281,7 @@ func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -359,6 +360,7 @@ func (client WorkspacesClient) List(ctx context.Context) (result WorkspaceListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "List", resp, "Failure responding to request") + return } return @@ -441,6 +443,7 @@ func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resource result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -530,6 +533,7 @@ func (client WorkspacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/operationalinsights/mgmt/2020-10-01/operationalinsights/clusters.go b/services/operationalinsights/mgmt/2020-10-01/operationalinsights/clusters.go index 750947873f62..f04fb4723b6b 100644 --- a/services/operationalinsights/mgmt/2020-10-01/operationalinsights/clusters.go +++ b/services/operationalinsights/mgmt/2020-10-01/operationalinsights/clusters.go @@ -259,6 +259,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -338,6 +339,7 @@ func (client ClustersClient) List(ctx context.Context) (result ClusterListResult result.clr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.ClustersClient", "List", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -400,6 +402,7 @@ func (client ClustersClient) listNextResults(ctx context.Context, lastResults Cl result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.ClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -461,6 +464,7 @@ func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGr result.clr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.ClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -524,6 +528,7 @@ func (client ClustersClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.ClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -586,6 +591,7 @@ func (client ClustersClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.ClustersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/operationalinsights/mgmt/2020-10-01/operationalinsights/deletedworkspaces.go b/services/operationalinsights/mgmt/2020-10-01/operationalinsights/deletedworkspaces.go index 8c84306da7f7..c350c0cdc40f 100644 --- a/services/operationalinsights/mgmt/2020-10-01/operationalinsights/deletedworkspaces.go +++ b/services/operationalinsights/mgmt/2020-10-01/operationalinsights/deletedworkspaces.go @@ -77,6 +77,7 @@ func (client DeletedWorkspacesClient) List(ctx context.Context) (result Workspac result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DeletedWorkspacesClient", "List", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client DeletedWorkspacesClient) ListByResourceGroup(ctx context.Context, r result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DeletedWorkspacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return diff --git a/services/operationalinsights/mgmt/2020-10-01/operationalinsights/operations.go b/services/operationalinsights/mgmt/2020-10-01/operationalinsights/operations.go index 79a85fd98fa0..519e0988f71a 100644 --- a/services/operationalinsights/mgmt/2020-10-01/operationalinsights/operations.go +++ b/services/operationalinsights/mgmt/2020-10-01/operationalinsights/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/operationalinsights/mgmt/2020-10-01/operationalinsights/workspaces.go b/services/operationalinsights/mgmt/2020-10-01/operationalinsights/workspaces.go index 8337ebaac7d1..98fff7f09fcf 100644 --- a/services/operationalinsights/mgmt/2020-10-01/operationalinsights/workspaces.go +++ b/services/operationalinsights/mgmt/2020-10-01/operationalinsights/workspaces.go @@ -281,6 +281,7 @@ func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -359,6 +360,7 @@ func (client WorkspacesClient) List(ctx context.Context) (result WorkspaceListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "List", resp, "Failure responding to request") + return } return @@ -441,6 +443,7 @@ func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resource result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -530,6 +533,7 @@ func (client WorkspacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/operationalinsights/v1/operationalinsights/metadata.go b/services/operationalinsights/v1/operationalinsights/metadata.go index 55cbf6af116d..410ef16f6197 100644 --- a/services/operationalinsights/v1/operationalinsights/metadata.go +++ b/services/operationalinsights/v1/operationalinsights/metadata.go @@ -72,6 +72,7 @@ func (client MetadataClient) Get(ctx context.Context, workspaceID string) (resul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.MetadataClient", "Get", resp, "Failure responding to request") + return } return @@ -139,6 +140,7 @@ func (client MetadataClient) Post(ctx context.Context, workspaceID string) (resu result, err = client.PostResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.MetadataClient", "Post", resp, "Failure responding to request") + return } return diff --git a/services/operationalinsights/v1/operationalinsights/query.go b/services/operationalinsights/v1/operationalinsights/query.go index 40e26b8e7f5a..29698404f4b1 100644 --- a/services/operationalinsights/v1/operationalinsights/query.go +++ b/services/operationalinsights/v1/operationalinsights/query.go @@ -81,6 +81,7 @@ func (client QueryClient) Execute(ctx context.Context, workspaceID string, body result, err = client.ExecuteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.QueryClient", "Execute", resp, "Failure responding to request") + return } return diff --git a/services/peering/mgmt/2020-04-01/peering/client.go b/services/peering/mgmt/2020-04-01/peering/client.go index 162d0e880196..1510c0600bf8 100644 --- a/services/peering/mgmt/2020-04-01/peering/client.go +++ b/services/peering/mgmt/2020-04-01/peering/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckServiceProviderAvailability(ctx context.Context, c result, err = client.CheckServiceProviderAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.BaseClient", "CheckServiceProviderAvailability", resp, "Failure responding to request") + return } return diff --git a/services/peering/mgmt/2020-04-01/peering/legacypeerings.go b/services/peering/mgmt/2020-04-01/peering/legacypeerings.go index 2cc50b73a146..a4a185b2d144 100644 --- a/services/peering/mgmt/2020-04-01/peering/legacypeerings.go +++ b/services/peering/mgmt/2020-04-01/peering/legacypeerings.go @@ -74,6 +74,7 @@ func (client LegacyPeeringsClient) List(ctx context.Context, peeringLocation str result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.LegacyPeeringsClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -141,6 +142,7 @@ func (client LegacyPeeringsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.LegacyPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/peering/mgmt/2020-04-01/peering/locations.go b/services/peering/mgmt/2020-04-01/peering/locations.go index 573b1a69d2db..b0419bf60645 100644 --- a/services/peering/mgmt/2020-04-01/peering/locations.go +++ b/services/peering/mgmt/2020-04-01/peering/locations.go @@ -73,6 +73,7 @@ func (client LocationsClient) List(ctx context.Context, kind string, directPeeri result.llr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.LocationsClient", "List", resp, "Failure responding to request") + return } if result.llr.hasNextLink() && result.llr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client LocationsClient) listNextResults(ctx context.Context, lastResults L result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.LocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/peering/mgmt/2020-04-01/peering/operations.go b/services/peering/mgmt/2020-04-01/peering/operations.go index cdd82ba38f38..b1570e7e441b 100644 --- a/services/peering/mgmt/2020-04-01/peering/operations.go +++ b/services/peering/mgmt/2020-04-01/peering/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/peering/mgmt/2020-04-01/peering/peerasns.go b/services/peering/mgmt/2020-04-01/peering/peerasns.go index c304411464f0..f4c950b266d0 100644 --- a/services/peering/mgmt/2020-04-01/peering/peerasns.go +++ b/services/peering/mgmt/2020-04-01/peering/peerasns.go @@ -73,6 +73,7 @@ func (client PeerAsnsClient) CreateOrUpdate(ctx context.Context, peerAsnName str result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client PeerAsnsClient) Delete(ctx context.Context, peerAsnName string) (re result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "Delete", resp, "Failure responding to request") + return } return @@ -220,6 +222,7 @@ func (client PeerAsnsClient) Get(ctx context.Context, peerAsnName string) (resul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "Get", resp, "Failure responding to request") + return } return @@ -292,6 +295,7 @@ func (client PeerAsnsClient) ListBySubscription(ctx context.Context) (result Pee result.palr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.palr.hasNextLink() && result.palr.IsEmpty() { err = result.NextWithContext(ctx) @@ -354,6 +358,7 @@ func (client PeerAsnsClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/peering/mgmt/2020-04-01/peering/peerings.go b/services/peering/mgmt/2020-04-01/peering/peerings.go index a30fe178747b..4c3126c34ad3 100644 --- a/services/peering/mgmt/2020-04-01/peering/peerings.go +++ b/services/peering/mgmt/2020-04-01/peering/peerings.go @@ -82,6 +82,7 @@ func (client PeeringsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client PeeringsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "Delete", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client PeeringsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +311,7 @@ func (client PeeringsClient) ListByResourceGroup(ctx context.Context, resourceGr result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +375,7 @@ func (client PeeringsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -420,6 +425,7 @@ func (client PeeringsClient) ListBySubscription(ctx context.Context) (result Lis result.lr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -482,6 +488,7 @@ func (client PeeringsClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -534,6 +541,7 @@ func (client PeeringsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/peering/mgmt/2020-04-01/peering/prefixes.go b/services/peering/mgmt/2020-04-01/peering/prefixes.go index 7e184e7b553e..0fc747ada7c0 100644 --- a/services/peering/mgmt/2020-04-01/peering/prefixes.go +++ b/services/peering/mgmt/2020-04-01/peering/prefixes.go @@ -75,6 +75,7 @@ func (client PrefixesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client PrefixesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "Delete", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client PrefixesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +317,7 @@ func (client PrefixesClient) ListByPeeringService(ctx context.Context, resourceG result.splr, err = client.ListByPeeringServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "ListByPeeringService", resp, "Failure responding to request") + return } if result.splr.hasNextLink() && result.splr.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +385,7 @@ func (client PrefixesClient) listByPeeringServiceNextResults(ctx context.Context result, err = client.ListByPeeringServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "listByPeeringServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/peering/mgmt/2020-04-01/peering/receivedroutes.go b/services/peering/mgmt/2020-04-01/peering/receivedroutes.go index 46a4b99ed9a5..66aa873ed6bf 100644 --- a/services/peering/mgmt/2020-04-01/peering/receivedroutes.go +++ b/services/peering/mgmt/2020-04-01/peering/receivedroutes.go @@ -79,6 +79,7 @@ func (client ReceivedRoutesClient) ListByPeering(ctx context.Context, resourceGr result.rrlr, err = client.ListByPeeringResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ReceivedRoutesClient", "ListByPeering", resp, "Failure responding to request") + return } if result.rrlr.hasNextLink() && result.rrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -158,6 +159,7 @@ func (client ReceivedRoutesClient) listByPeeringNextResults(ctx context.Context, result, err = client.ListByPeeringResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ReceivedRoutesClient", "listByPeeringNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/peering/mgmt/2020-04-01/peering/registeredasns.go b/services/peering/mgmt/2020-04-01/peering/registeredasns.go index 1785eca573b7..a0f613357e9f 100644 --- a/services/peering/mgmt/2020-04-01/peering/registeredasns.go +++ b/services/peering/mgmt/2020-04-01/peering/registeredasns.go @@ -75,6 +75,7 @@ func (client RegisteredAsnsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredAsnsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client RegisteredAsnsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredAsnsClient", "Delete", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client RegisteredAsnsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredAsnsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +312,7 @@ func (client RegisteredAsnsClient) ListByPeering(ctx context.Context, resourceGr result.ralr, err = client.ListByPeeringResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredAsnsClient", "ListByPeering", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +377,7 @@ func (client RegisteredAsnsClient) listByPeeringNextResults(ctx context.Context, result, err = client.ListByPeeringResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredAsnsClient", "listByPeeringNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/peering/mgmt/2020-04-01/peering/registeredprefixes.go b/services/peering/mgmt/2020-04-01/peering/registeredprefixes.go index c1fc8380e2b3..8cae183d9ba0 100644 --- a/services/peering/mgmt/2020-04-01/peering/registeredprefixes.go +++ b/services/peering/mgmt/2020-04-01/peering/registeredprefixes.go @@ -76,6 +76,7 @@ func (client RegisteredPrefixesClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredPrefixesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client RegisteredPrefixesClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredPrefixesClient", "Delete", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client RegisteredPrefixesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredPrefixesClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +313,7 @@ func (client RegisteredPrefixesClient) ListByPeering(ctx context.Context, resour result.rplr, err = client.ListByPeeringResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredPrefixesClient", "ListByPeering", resp, "Failure responding to request") + return } if result.rplr.hasNextLink() && result.rplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +378,7 @@ func (client RegisteredPrefixesClient) listByPeeringNextResults(ctx context.Cont result, err = client.ListByPeeringResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredPrefixesClient", "listByPeeringNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/peering/mgmt/2020-04-01/peering/servicecountries.go b/services/peering/mgmt/2020-04-01/peering/servicecountries.go index 02e5078f0e41..e30e84c5e49e 100644 --- a/services/peering/mgmt/2020-04-01/peering/servicecountries.go +++ b/services/peering/mgmt/2020-04-01/peering/servicecountries.go @@ -71,6 +71,7 @@ func (client ServiceCountriesClient) List(ctx context.Context) (result ServiceCo result.sclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServiceCountriesClient", "List", resp, "Failure responding to request") + return } if result.sclr.hasNextLink() && result.sclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ServiceCountriesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServiceCountriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/peering/mgmt/2020-04-01/peering/servicelocations.go b/services/peering/mgmt/2020-04-01/peering/servicelocations.go index f678e71f2cf1..7b173da737ad 100644 --- a/services/peering/mgmt/2020-04-01/peering/servicelocations.go +++ b/services/peering/mgmt/2020-04-01/peering/servicelocations.go @@ -73,6 +73,7 @@ func (client ServiceLocationsClient) List(ctx context.Context, country string) ( result.sllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServiceLocationsClient", "List", resp, "Failure responding to request") + return } if result.sllr.hasNextLink() && result.sllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client ServiceLocationsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServiceLocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/peering/mgmt/2020-04-01/peering/serviceproviders.go b/services/peering/mgmt/2020-04-01/peering/serviceproviders.go index 6ef01d94fc64..fa017ed8c961 100644 --- a/services/peering/mgmt/2020-04-01/peering/serviceproviders.go +++ b/services/peering/mgmt/2020-04-01/peering/serviceproviders.go @@ -71,6 +71,7 @@ func (client ServiceProvidersClient) List(ctx context.Context) (result ServicePr result.splr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.splr.hasNextLink() && result.splr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ServiceProvidersClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/peering/mgmt/2020-04-01/peering/services.go b/services/peering/mgmt/2020-04-01/peering/services.go index 787f4c5ed668..e930d3103a3e 100644 --- a/services/peering/mgmt/2020-04-01/peering/services.go +++ b/services/peering/mgmt/2020-04-01/peering/services.go @@ -81,6 +81,7 @@ func (client ServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client ServicesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +310,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGr result.slr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +374,7 @@ func (client ServicesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -419,6 +424,7 @@ func (client ServicesClient) ListBySubscription(ctx context.Context) (result Ser result.slr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +487,7 @@ func (client ServicesClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -533,6 +540,7 @@ func (client ServicesClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/peering/mgmt/2020-10-01/peering/cdnpeeringprefixes.go b/services/peering/mgmt/2020-10-01/peering/cdnpeeringprefixes.go index cdad37637eb3..d9eb716df17b 100644 --- a/services/peering/mgmt/2020-10-01/peering/cdnpeeringprefixes.go +++ b/services/peering/mgmt/2020-10-01/peering/cdnpeeringprefixes.go @@ -73,6 +73,7 @@ func (client CdnPeeringPrefixesClient) List(ctx context.Context, peeringLocation result.cpplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.CdnPeeringPrefixesClient", "List", resp, "Failure responding to request") + return } if result.cpplr.hasNextLink() && result.cpplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client CdnPeeringPrefixesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.CdnPeeringPrefixesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/peering/mgmt/2020-10-01/peering/client.go b/services/peering/mgmt/2020-10-01/peering/client.go index 5129bf8f46a5..23d8231171fa 100644 --- a/services/peering/mgmt/2020-10-01/peering/client.go +++ b/services/peering/mgmt/2020-10-01/peering/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckServiceProviderAvailability(ctx context.Context, c result, err = client.CheckServiceProviderAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.BaseClient", "CheckServiceProviderAvailability", resp, "Failure responding to request") + return } return diff --git a/services/peering/mgmt/2020-10-01/peering/legacypeerings.go b/services/peering/mgmt/2020-10-01/peering/legacypeerings.go index 27975d33b8ce..906fe4ffd910 100644 --- a/services/peering/mgmt/2020-10-01/peering/legacypeerings.go +++ b/services/peering/mgmt/2020-10-01/peering/legacypeerings.go @@ -74,6 +74,7 @@ func (client LegacyPeeringsClient) List(ctx context.Context, peeringLocation str result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.LegacyPeeringsClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -141,6 +142,7 @@ func (client LegacyPeeringsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.LegacyPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/peering/mgmt/2020-10-01/peering/locations.go b/services/peering/mgmt/2020-10-01/peering/locations.go index 2db63da7f6ab..23caecc007f8 100644 --- a/services/peering/mgmt/2020-10-01/peering/locations.go +++ b/services/peering/mgmt/2020-10-01/peering/locations.go @@ -73,6 +73,7 @@ func (client LocationsClient) List(ctx context.Context, kind string, directPeeri result.llr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.LocationsClient", "List", resp, "Failure responding to request") + return } if result.llr.hasNextLink() && result.llr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client LocationsClient) listNextResults(ctx context.Context, lastResults L result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.LocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/peering/mgmt/2020-10-01/peering/operations.go b/services/peering/mgmt/2020-10-01/peering/operations.go index af4f6e765f3b..0957d29ddee2 100644 --- a/services/peering/mgmt/2020-10-01/peering/operations.go +++ b/services/peering/mgmt/2020-10-01/peering/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/peering/mgmt/2020-10-01/peering/peerasns.go b/services/peering/mgmt/2020-10-01/peering/peerasns.go index 72ee35c438cc..cf6c3444f835 100644 --- a/services/peering/mgmt/2020-10-01/peering/peerasns.go +++ b/services/peering/mgmt/2020-10-01/peering/peerasns.go @@ -73,6 +73,7 @@ func (client PeerAsnsClient) CreateOrUpdate(ctx context.Context, peerAsnName str result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client PeerAsnsClient) Delete(ctx context.Context, peerAsnName string) (re result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "Delete", resp, "Failure responding to request") + return } return @@ -220,6 +222,7 @@ func (client PeerAsnsClient) Get(ctx context.Context, peerAsnName string) (resul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "Get", resp, "Failure responding to request") + return } return @@ -292,6 +295,7 @@ func (client PeerAsnsClient) ListBySubscription(ctx context.Context) (result Pee result.palr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.palr.hasNextLink() && result.palr.IsEmpty() { err = result.NextWithContext(ctx) @@ -354,6 +358,7 @@ func (client PeerAsnsClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/peering/mgmt/2020-10-01/peering/peerings.go b/services/peering/mgmt/2020-10-01/peering/peerings.go index c447bf9518e1..a8520bab6f9f 100644 --- a/services/peering/mgmt/2020-10-01/peering/peerings.go +++ b/services/peering/mgmt/2020-10-01/peering/peerings.go @@ -82,6 +82,7 @@ func (client PeeringsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client PeeringsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "Delete", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client PeeringsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +311,7 @@ func (client PeeringsClient) ListByResourceGroup(ctx context.Context, resourceGr result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +375,7 @@ func (client PeeringsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -420,6 +425,7 @@ func (client PeeringsClient) ListBySubscription(ctx context.Context) (result Lis result.lr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -482,6 +488,7 @@ func (client PeeringsClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -534,6 +541,7 @@ func (client PeeringsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/peering/mgmt/2020-10-01/peering/prefixes.go b/services/peering/mgmt/2020-10-01/peering/prefixes.go index 43bd42b34d73..2f2f1be31b84 100644 --- a/services/peering/mgmt/2020-10-01/peering/prefixes.go +++ b/services/peering/mgmt/2020-10-01/peering/prefixes.go @@ -75,6 +75,7 @@ func (client PrefixesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client PrefixesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "Delete", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client PrefixesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +317,7 @@ func (client PrefixesClient) ListByPeeringService(ctx context.Context, resourceG result.splr, err = client.ListByPeeringServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "ListByPeeringService", resp, "Failure responding to request") + return } if result.splr.hasNextLink() && result.splr.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +385,7 @@ func (client PrefixesClient) listByPeeringServiceNextResults(ctx context.Context result, err = client.ListByPeeringServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "listByPeeringServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/peering/mgmt/2020-10-01/peering/receivedroutes.go b/services/peering/mgmt/2020-10-01/peering/receivedroutes.go index c90dea4a000b..2fa185303829 100644 --- a/services/peering/mgmt/2020-10-01/peering/receivedroutes.go +++ b/services/peering/mgmt/2020-10-01/peering/receivedroutes.go @@ -79,6 +79,7 @@ func (client ReceivedRoutesClient) ListByPeering(ctx context.Context, resourceGr result.rrlr, err = client.ListByPeeringResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ReceivedRoutesClient", "ListByPeering", resp, "Failure responding to request") + return } if result.rrlr.hasNextLink() && result.rrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -158,6 +159,7 @@ func (client ReceivedRoutesClient) listByPeeringNextResults(ctx context.Context, result, err = client.ListByPeeringResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ReceivedRoutesClient", "listByPeeringNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/peering/mgmt/2020-10-01/peering/registeredasns.go b/services/peering/mgmt/2020-10-01/peering/registeredasns.go index ea355ac79c05..70aa4152e330 100644 --- a/services/peering/mgmt/2020-10-01/peering/registeredasns.go +++ b/services/peering/mgmt/2020-10-01/peering/registeredasns.go @@ -75,6 +75,7 @@ func (client RegisteredAsnsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredAsnsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client RegisteredAsnsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredAsnsClient", "Delete", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client RegisteredAsnsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredAsnsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +312,7 @@ func (client RegisteredAsnsClient) ListByPeering(ctx context.Context, resourceGr result.ralr, err = client.ListByPeeringResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredAsnsClient", "ListByPeering", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +377,7 @@ func (client RegisteredAsnsClient) listByPeeringNextResults(ctx context.Context, result, err = client.ListByPeeringResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredAsnsClient", "listByPeeringNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/peering/mgmt/2020-10-01/peering/registeredprefixes.go b/services/peering/mgmt/2020-10-01/peering/registeredprefixes.go index d905ae9d6f4f..5a8a82336b56 100644 --- a/services/peering/mgmt/2020-10-01/peering/registeredprefixes.go +++ b/services/peering/mgmt/2020-10-01/peering/registeredprefixes.go @@ -76,6 +76,7 @@ func (client RegisteredPrefixesClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredPrefixesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client RegisteredPrefixesClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredPrefixesClient", "Delete", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client RegisteredPrefixesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredPrefixesClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +313,7 @@ func (client RegisteredPrefixesClient) ListByPeering(ctx context.Context, resour result.rplr, err = client.ListByPeeringResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredPrefixesClient", "ListByPeering", resp, "Failure responding to request") + return } if result.rplr.hasNextLink() && result.rplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +378,7 @@ func (client RegisteredPrefixesClient) listByPeeringNextResults(ctx context.Cont result, err = client.ListByPeeringResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredPrefixesClient", "listByPeeringNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/peering/mgmt/2020-10-01/peering/servicecountries.go b/services/peering/mgmt/2020-10-01/peering/servicecountries.go index 955ce0458129..59ef879c4b9b 100644 --- a/services/peering/mgmt/2020-10-01/peering/servicecountries.go +++ b/services/peering/mgmt/2020-10-01/peering/servicecountries.go @@ -71,6 +71,7 @@ func (client ServiceCountriesClient) List(ctx context.Context) (result ServiceCo result.sclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServiceCountriesClient", "List", resp, "Failure responding to request") + return } if result.sclr.hasNextLink() && result.sclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ServiceCountriesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServiceCountriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/peering/mgmt/2020-10-01/peering/servicelocations.go b/services/peering/mgmt/2020-10-01/peering/servicelocations.go index 3865a93cd836..d4a36c37f59b 100644 --- a/services/peering/mgmt/2020-10-01/peering/servicelocations.go +++ b/services/peering/mgmt/2020-10-01/peering/servicelocations.go @@ -73,6 +73,7 @@ func (client ServiceLocationsClient) List(ctx context.Context, country string) ( result.sllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServiceLocationsClient", "List", resp, "Failure responding to request") + return } if result.sllr.hasNextLink() && result.sllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client ServiceLocationsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServiceLocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/peering/mgmt/2020-10-01/peering/serviceproviders.go b/services/peering/mgmt/2020-10-01/peering/serviceproviders.go index 0c2a250ad54f..b830f7308ddd 100644 --- a/services/peering/mgmt/2020-10-01/peering/serviceproviders.go +++ b/services/peering/mgmt/2020-10-01/peering/serviceproviders.go @@ -71,6 +71,7 @@ func (client ServiceProvidersClient) List(ctx context.Context) (result ServicePr result.splr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.splr.hasNextLink() && result.splr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ServiceProvidersClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/peering/mgmt/2020-10-01/peering/services.go b/services/peering/mgmt/2020-10-01/peering/services.go index e6b63712de78..0757a92d00d9 100644 --- a/services/peering/mgmt/2020-10-01/peering/services.go +++ b/services/peering/mgmt/2020-10-01/peering/services.go @@ -81,6 +81,7 @@ func (client ServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client ServicesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +310,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGr result.slr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +374,7 @@ func (client ServicesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -419,6 +424,7 @@ func (client ServicesClient) ListBySubscription(ctx context.Context) (result Ser result.slr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +487,7 @@ func (client ServicesClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -533,6 +540,7 @@ func (client ServicesClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/personalizer/v1.0/personalizer/client.go b/services/personalizer/v1.0/personalizer/client.go index 22072f4d1281..bb9095d4b77a 100644 --- a/services/personalizer/v1.0/personalizer/client.go +++ b/services/personalizer/v1.0/personalizer/client.go @@ -91,6 +91,7 @@ func (client BaseClient) Rank(ctx context.Context, rankRequest RankRequest) (res result, err = client.RankResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "personalizer.BaseClient", "Rank", resp, "Failure responding to request") + return } return diff --git a/services/personalizer/v1.0/personalizer/evaluations.go b/services/personalizer/v1.0/personalizer/evaluations.go index c102169fda25..c3679db54ed1 100644 --- a/services/personalizer/v1.0/personalizer/evaluations.go +++ b/services/personalizer/v1.0/personalizer/evaluations.go @@ -80,6 +80,7 @@ func (client EvaluationsClient) Create(ctx context.Context, evaluation Evaluatio result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "personalizer.EvaluationsClient", "Create", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client EvaluationsClient) Delete(ctx context.Context, evaluationID string) result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "personalizer.EvaluationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client EvaluationsClient) Get(ctx context.Context, evaluationID string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "personalizer.EvaluationsClient", "Get", resp, "Failure responding to request") + return } return @@ -297,6 +300,7 @@ func (client EvaluationsClient) List(ctx context.Context) (result ListEvaluation result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "personalizer.EvaluationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/personalizer/v1.0/personalizer/events.go b/services/personalizer/v1.0/personalizer/events.go index 1309ca995145..1bd1e546c85d 100644 --- a/services/personalizer/v1.0/personalizer/events.go +++ b/services/personalizer/v1.0/personalizer/events.go @@ -76,6 +76,7 @@ func (client EventsClient) Activate(ctx context.Context, eventID string) (result result, err = client.ActivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "personalizer.EventsClient", "Activate", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client EventsClient) Reward(ctx context.Context, eventID string, reward Re result, err = client.RewardResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "personalizer.EventsClient", "Reward", resp, "Failure responding to request") + return } return diff --git a/services/personalizer/v1.0/personalizer/log.go b/services/personalizer/v1.0/personalizer/log.go index 3592eed79d58..a33f80a950e0 100644 --- a/services/personalizer/v1.0/personalizer/log.go +++ b/services/personalizer/v1.0/personalizer/log.go @@ -67,6 +67,7 @@ func (client LogClient) Delete(ctx context.Context) (result autorest.Response, e result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "personalizer.LogClient", "Delete", resp, "Failure responding to request") + return } return @@ -130,6 +131,7 @@ func (client LogClient) GetProperties(ctx context.Context) (result LogsPropertie result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "personalizer.LogClient", "GetProperties", resp, "Failure responding to request") + return } return diff --git a/services/personalizer/v1.0/personalizer/model.go b/services/personalizer/v1.0/personalizer/model.go index 325554484ac8..8579b5410015 100644 --- a/services/personalizer/v1.0/personalizer/model.go +++ b/services/personalizer/v1.0/personalizer/model.go @@ -67,6 +67,7 @@ func (client ModelClient) Get(ctx context.Context) (result ReadCloser, err error result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "personalizer.ModelClient", "Get", resp, "Failure responding to request") + return } return @@ -130,6 +131,7 @@ func (client ModelClient) GetProperties(ctx context.Context) (result ModelProper result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "personalizer.ModelClient", "GetProperties", resp, "Failure responding to request") + return } return @@ -194,6 +196,7 @@ func (client ModelClient) Reset(ctx context.Context) (result autorest.Response, result, err = client.ResetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "personalizer.ModelClient", "Reset", resp, "Failure responding to request") + return } return diff --git a/services/personalizer/v1.0/personalizer/policy.go b/services/personalizer/v1.0/personalizer/policy.go index 5234ff0a70cf..b38524fd7f5a 100644 --- a/services/personalizer/v1.0/personalizer/policy.go +++ b/services/personalizer/v1.0/personalizer/policy.go @@ -68,6 +68,7 @@ func (client PolicyClient) Get(ctx context.Context) (result PolicyContract, err result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "personalizer.PolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -132,6 +133,7 @@ func (client PolicyClient) Reset(ctx context.Context) (result PolicyContract, er result, err = client.ResetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "personalizer.PolicyClient", "Reset", resp, "Failure responding to request") + return } return @@ -207,6 +209,7 @@ func (client PolicyClient) Update(ctx context.Context, policy PolicyContract) (r result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "personalizer.PolicyClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/personalizer/v1.0/personalizer/serviceconfiguration.go b/services/personalizer/v1.0/personalizer/serviceconfiguration.go index 9fa0216b5dda..df4296cee126 100644 --- a/services/personalizer/v1.0/personalizer/serviceconfiguration.go +++ b/services/personalizer/v1.0/personalizer/serviceconfiguration.go @@ -68,6 +68,7 @@ func (client ServiceConfigurationClient) Get(ctx context.Context) (result Servic result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "personalizer.ServiceConfigurationClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client ServiceConfigurationClient) Update(ctx context.Context, config Serv result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "personalizer.ServiceConfigurationClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/policyinsights/mgmt/2018-04-04/policyinsights/operations.go b/services/policyinsights/mgmt/2018-04-04/policyinsights/operations.go index a8e866915cf7..12236127b7e7 100644 --- a/services/policyinsights/mgmt/2018-04-04/policyinsights/operations.go +++ b/services/policyinsights/mgmt/2018-04-04/policyinsights/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/policyinsights/mgmt/2018-04-04/policyinsights/policyevents.go b/services/policyinsights/mgmt/2018-04-04/policyinsights/policyevents.go index 7719977189a0..34926bd73fd1 100644 --- a/services/policyinsights/mgmt/2018-04-04/policyinsights/policyevents.go +++ b/services/policyinsights/mgmt/2018-04-04/policyinsights/policyevents.go @@ -74,6 +74,7 @@ func (client PolicyEventsClient) GetMetadata(ctx context.Context, scope string) result, err = client.GetMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "GetMetadata", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client PolicyEventsClient) ListQueryResultsForManagementGroup(ctx context. result, err = client.ListQueryResultsForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForManagementGroup", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client PolicyEventsClient) ListQueryResultsForPolicyDefinition(ctx context result, err = client.ListQueryResultsForPolicyDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForPolicyDefinition", resp, "Failure responding to request") + return } return @@ -393,6 +396,7 @@ func (client PolicyEventsClient) ListQueryResultsForPolicySetDefinition(ctx cont result, err = client.ListQueryResultsForPolicySetDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForPolicySetDefinition", resp, "Failure responding to request") + return } return @@ -507,6 +511,7 @@ func (client PolicyEventsClient) ListQueryResultsForResource(ctx context.Context result, err = client.ListQueryResultsForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForResource", resp, "Failure responding to request") + return } return @@ -620,6 +625,7 @@ func (client PolicyEventsClient) ListQueryResultsForResourceGroup(ctx context.Co result, err = client.ListQueryResultsForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForResourceGroup", resp, "Failure responding to request") + return } return @@ -736,6 +742,7 @@ func (client PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssi result, err = client.ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForResourceGroupLevelPolicyAssignment", resp, "Failure responding to request") + return } return @@ -851,6 +858,7 @@ func (client PolicyEventsClient) ListQueryResultsForSubscription(ctx context.Con result, err = client.ListQueryResultsForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForSubscription", resp, "Failure responding to request") + return } return @@ -965,6 +973,7 @@ func (client PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssig result, err = client.ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForSubscriptionLevelPolicyAssignment", resp, "Failure responding to request") + return } return diff --git a/services/policyinsights/mgmt/2018-04-04/policyinsights/policystates.go b/services/policyinsights/mgmt/2018-04-04/policyinsights/policystates.go index 27301e6e431e..bd427ee6c984 100644 --- a/services/policyinsights/mgmt/2018-04-04/policyinsights/policystates.go +++ b/services/policyinsights/mgmt/2018-04-04/policyinsights/policystates.go @@ -74,6 +74,7 @@ func (client PolicyStatesClient) GetMetadata(ctx context.Context, scope string) result, err = client.GetMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "GetMetadata", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client PolicyStatesClient) ListQueryResultsForManagementGroup(ctx context. result, err = client.ListQueryResultsForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForManagementGroup", resp, "Failure responding to request") + return } return @@ -282,6 +284,7 @@ func (client PolicyStatesClient) ListQueryResultsForPolicyDefinition(ctx context result, err = client.ListQueryResultsForPolicyDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForPolicyDefinition", resp, "Failure responding to request") + return } return @@ -399,6 +402,7 @@ func (client PolicyStatesClient) ListQueryResultsForPolicySetDefinition(ctx cont result, err = client.ListQueryResultsForPolicySetDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForPolicySetDefinition", resp, "Failure responding to request") + return } return @@ -515,6 +519,7 @@ func (client PolicyStatesClient) ListQueryResultsForResource(ctx context.Context result, err = client.ListQueryResultsForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForResource", resp, "Failure responding to request") + return } return @@ -630,6 +635,7 @@ func (client PolicyStatesClient) ListQueryResultsForResourceGroup(ctx context.Co result, err = client.ListQueryResultsForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForResourceGroup", resp, "Failure responding to request") + return } return @@ -748,6 +754,7 @@ func (client PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssi result, err = client.ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForResourceGroupLevelPolicyAssignment", resp, "Failure responding to request") + return } return @@ -865,6 +872,7 @@ func (client PolicyStatesClient) ListQueryResultsForSubscription(ctx context.Con result, err = client.ListQueryResultsForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForSubscription", resp, "Failure responding to request") + return } return @@ -981,6 +989,7 @@ func (client PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssig result, err = client.ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForSubscriptionLevelPolicyAssignment", resp, "Failure responding to request") + return } return @@ -1090,6 +1099,7 @@ func (client PolicyStatesClient) SummarizeForManagementGroup(ctx context.Context result, err = client.SummarizeForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForManagementGroup", resp, "Failure responding to request") + return } return @@ -1190,6 +1200,7 @@ func (client PolicyStatesClient) SummarizeForPolicyDefinition(ctx context.Contex result, err = client.SummarizeForPolicyDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForPolicyDefinition", resp, "Failure responding to request") + return } return @@ -1291,6 +1302,7 @@ func (client PolicyStatesClient) SummarizeForPolicySetDefinition(ctx context.Con result, err = client.SummarizeForPolicySetDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForPolicySetDefinition", resp, "Failure responding to request") + return } return @@ -1391,6 +1403,7 @@ func (client PolicyStatesClient) SummarizeForResource(ctx context.Context, resou result, err = client.SummarizeForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForResource", resp, "Failure responding to request") + return } return @@ -1490,6 +1503,7 @@ func (client PolicyStatesClient) SummarizeForResourceGroup(ctx context.Context, result, err = client.SummarizeForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForResourceGroup", resp, "Failure responding to request") + return } return @@ -1592,6 +1606,7 @@ func (client PolicyStatesClient) SummarizeForResourceGroupLevelPolicyAssignment( result, err = client.SummarizeForResourceGroupLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForResourceGroupLevelPolicyAssignment", resp, "Failure responding to request") + return } return @@ -1693,6 +1708,7 @@ func (client PolicyStatesClient) SummarizeForSubscription(ctx context.Context, s result, err = client.SummarizeForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForSubscription", resp, "Failure responding to request") + return } return @@ -1792,6 +1808,7 @@ func (client PolicyStatesClient) SummarizeForSubscriptionLevelPolicyAssignment(c result, err = client.SummarizeForSubscriptionLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForSubscriptionLevelPolicyAssignment", resp, "Failure responding to request") + return } return diff --git a/services/postgresql/mgmt/2017-12-01/postgresql/checknameavailability.go b/services/postgresql/mgmt/2017-12-01/postgresql/checknameavailability.go index eaaefb6af222..3b6113c7e4e5 100644 --- a/services/postgresql/mgmt/2017-12-01/postgresql/checknameavailability.go +++ b/services/postgresql/mgmt/2017-12-01/postgresql/checknameavailability.go @@ -83,6 +83,7 @@ func (client CheckNameAvailabilityClient) Execute(ctx context.Context, nameAvail result, err = client.ExecuteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.CheckNameAvailabilityClient", "Execute", resp, "Failure responding to request") + return } return diff --git a/services/postgresql/mgmt/2017-12-01/postgresql/configurations.go b/services/postgresql/mgmt/2017-12-01/postgresql/configurations.go index b22229273e55..7def0655b033 100644 --- a/services/postgresql/mgmt/2017-12-01/postgresql/configurations.go +++ b/services/postgresql/mgmt/2017-12-01/postgresql/configurations.go @@ -176,6 +176,7 @@ func (client ConfigurationsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -262,6 +263,7 @@ func (client ConfigurationsClient) ListByServer(ctx context.Context, resourceGro result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ConfigurationsClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/postgresql/mgmt/2017-12-01/postgresql/databases.go b/services/postgresql/mgmt/2017-12-01/postgresql/databases.go index b070fefbd6f2..5aea5184358a 100644 --- a/services/postgresql/mgmt/2017-12-01/postgresql/databases.go +++ b/services/postgresql/mgmt/2017-12-01/postgresql/databases.go @@ -262,6 +262,7 @@ func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.DatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +349,7 @@ func (client DatabasesClient) ListByServer(ctx context.Context, resourceGroupNam result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.DatabasesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/postgresql/mgmt/2017-12-01/postgresql/firewallrules.go b/services/postgresql/mgmt/2017-12-01/postgresql/firewallrules.go index 25135c5f55d2..f4c64143d128 100644 --- a/services/postgresql/mgmt/2017-12-01/postgresql/firewallrules.go +++ b/services/postgresql/mgmt/2017-12-01/postgresql/firewallrules.go @@ -269,6 +269,7 @@ func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.FirewallRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +356,7 @@ func (client FirewallRulesClient) ListByServer(ctx context.Context, resourceGrou result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.FirewallRulesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/postgresql/mgmt/2017-12-01/postgresql/locationbasedperformancetier.go b/services/postgresql/mgmt/2017-12-01/postgresql/locationbasedperformancetier.go index c585fa8286b4..279a5bb0b18c 100644 --- a/services/postgresql/mgmt/2017-12-01/postgresql/locationbasedperformancetier.go +++ b/services/postgresql/mgmt/2017-12-01/postgresql/locationbasedperformancetier.go @@ -81,6 +81,7 @@ func (client LocationBasedPerformanceTierClient) List(ctx context.Context, locat result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.LocationBasedPerformanceTierClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/postgresql/mgmt/2017-12-01/postgresql/logfiles.go b/services/postgresql/mgmt/2017-12-01/postgresql/logfiles.go index 48a1fdea5513..c9ccdea6813d 100644 --- a/services/postgresql/mgmt/2017-12-01/postgresql/logfiles.go +++ b/services/postgresql/mgmt/2017-12-01/postgresql/logfiles.go @@ -85,6 +85,7 @@ func (client LogFilesClient) ListByServer(ctx context.Context, resourceGroupName result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.LogFilesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/postgresql/mgmt/2017-12-01/postgresql/operations.go b/services/postgresql/mgmt/2017-12-01/postgresql/operations.go index 693bcb702be0..f54633384eca 100644 --- a/services/postgresql/mgmt/2017-12-01/postgresql/operations.go +++ b/services/postgresql/mgmt/2017-12-01/postgresql/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/postgresql/mgmt/2017-12-01/postgresql/replicas.go b/services/postgresql/mgmt/2017-12-01/postgresql/replicas.go index 81e4f7a5cd78..eaa793d990c5 100644 --- a/services/postgresql/mgmt/2017-12-01/postgresql/replicas.go +++ b/services/postgresql/mgmt/2017-12-01/postgresql/replicas.go @@ -85,6 +85,7 @@ func (client ReplicasClient) ListByServer(ctx context.Context, resourceGroupName result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ReplicasClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/postgresql/mgmt/2017-12-01/postgresql/serveradministrators.go b/services/postgresql/mgmt/2017-12-01/postgresql/serveradministrators.go index 3f3f3771fbf2..ab4b822cce54 100644 --- a/services/postgresql/mgmt/2017-12-01/postgresql/serveradministrators.go +++ b/services/postgresql/mgmt/2017-12-01/postgresql/serveradministrators.go @@ -266,6 +266,7 @@ func (client ServerAdministratorsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ServerAdministratorsClient", "Get", resp, "Failure responding to request") + return } return @@ -351,6 +352,7 @@ func (client ServerAdministratorsClient) List(ctx context.Context, resourceGroup result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ServerAdministratorsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/postgresql/mgmt/2017-12-01/postgresql/servers.go b/services/postgresql/mgmt/2017-12-01/postgresql/servers.go index 2edfde75ba8c..a1295319e8c7 100644 --- a/services/postgresql/mgmt/2017-12-01/postgresql/servers.go +++ b/services/postgresql/mgmt/2017-12-01/postgresql/servers.go @@ -265,6 +265,7 @@ func (client ServersClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ServersClient", "Get", resp, "Failure responding to request") + return } return @@ -343,6 +344,7 @@ func (client ServersClient) List(ctx context.Context) (result ServerListResult, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ServersClient", "List", resp, "Failure responding to request") + return } return @@ -425,6 +427,7 @@ func (client ServersClient) ListByResourceGroup(ctx context.Context, resourceGro result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ServersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return diff --git a/services/postgresql/mgmt/2017-12-01/postgresql/serversecurityalertpolicies.go b/services/postgresql/mgmt/2017-12-01/postgresql/serversecurityalertpolicies.go index d491d51793e1..724ecbe80fa1 100644 --- a/services/postgresql/mgmt/2017-12-01/postgresql/serversecurityalertpolicies.go +++ b/services/postgresql/mgmt/2017-12-01/postgresql/serversecurityalertpolicies.go @@ -175,6 +175,7 @@ func (client ServerSecurityAlertPoliciesClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ServerSecurityAlertPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/postgresql/mgmt/2017-12-01/postgresql/virtualnetworkrules.go b/services/postgresql/mgmt/2017-12-01/postgresql/virtualnetworkrules.go index 31d828449355..4d36f338c199 100644 --- a/services/postgresql/mgmt/2017-12-01/postgresql/virtualnetworkrules.go +++ b/services/postgresql/mgmt/2017-12-01/postgresql/virtualnetworkrules.go @@ -266,6 +266,7 @@ func (client VirtualNetworkRulesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.VirtualNetworkRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -353,6 +354,7 @@ func (client VirtualNetworkRulesClient) ListByServer(ctx context.Context, resour result.vnrlr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.VirtualNetworkRulesClient", "ListByServer", resp, "Failure responding to request") + return } if result.vnrlr.hasNextLink() && result.vnrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -417,6 +419,7 @@ func (client VirtualNetworkRulesClient) listByServerNextResults(ctx context.Cont result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.VirtualNetworkRulesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/postgresql/mgmt/2020-01-01/postgresql/checknameavailability.go b/services/postgresql/mgmt/2020-01-01/postgresql/checknameavailability.go index eaaefb6af222..3b6113c7e4e5 100644 --- a/services/postgresql/mgmt/2020-01-01/postgresql/checknameavailability.go +++ b/services/postgresql/mgmt/2020-01-01/postgresql/checknameavailability.go @@ -83,6 +83,7 @@ func (client CheckNameAvailabilityClient) Execute(ctx context.Context, nameAvail result, err = client.ExecuteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.CheckNameAvailabilityClient", "Execute", resp, "Failure responding to request") + return } return diff --git a/services/postgresql/mgmt/2020-01-01/postgresql/configurations.go b/services/postgresql/mgmt/2020-01-01/postgresql/configurations.go index b22229273e55..7def0655b033 100644 --- a/services/postgresql/mgmt/2020-01-01/postgresql/configurations.go +++ b/services/postgresql/mgmt/2020-01-01/postgresql/configurations.go @@ -176,6 +176,7 @@ func (client ConfigurationsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -262,6 +263,7 @@ func (client ConfigurationsClient) ListByServer(ctx context.Context, resourceGro result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ConfigurationsClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/postgresql/mgmt/2020-01-01/postgresql/databases.go b/services/postgresql/mgmt/2020-01-01/postgresql/databases.go index b070fefbd6f2..5aea5184358a 100644 --- a/services/postgresql/mgmt/2020-01-01/postgresql/databases.go +++ b/services/postgresql/mgmt/2020-01-01/postgresql/databases.go @@ -262,6 +262,7 @@ func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.DatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +349,7 @@ func (client DatabasesClient) ListByServer(ctx context.Context, resourceGroupNam result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.DatabasesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/postgresql/mgmt/2020-01-01/postgresql/firewallrules.go b/services/postgresql/mgmt/2020-01-01/postgresql/firewallrules.go index 25135c5f55d2..f4c64143d128 100644 --- a/services/postgresql/mgmt/2020-01-01/postgresql/firewallrules.go +++ b/services/postgresql/mgmt/2020-01-01/postgresql/firewallrules.go @@ -269,6 +269,7 @@ func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.FirewallRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +356,7 @@ func (client FirewallRulesClient) ListByServer(ctx context.Context, resourceGrou result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.FirewallRulesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/postgresql/mgmt/2020-01-01/postgresql/locationbasedperformancetier.go b/services/postgresql/mgmt/2020-01-01/postgresql/locationbasedperformancetier.go index c585fa8286b4..279a5bb0b18c 100644 --- a/services/postgresql/mgmt/2020-01-01/postgresql/locationbasedperformancetier.go +++ b/services/postgresql/mgmt/2020-01-01/postgresql/locationbasedperformancetier.go @@ -81,6 +81,7 @@ func (client LocationBasedPerformanceTierClient) List(ctx context.Context, locat result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.LocationBasedPerformanceTierClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/postgresql/mgmt/2020-01-01/postgresql/logfiles.go b/services/postgresql/mgmt/2020-01-01/postgresql/logfiles.go index 48a1fdea5513..c9ccdea6813d 100644 --- a/services/postgresql/mgmt/2020-01-01/postgresql/logfiles.go +++ b/services/postgresql/mgmt/2020-01-01/postgresql/logfiles.go @@ -85,6 +85,7 @@ func (client LogFilesClient) ListByServer(ctx context.Context, resourceGroupName result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.LogFilesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/postgresql/mgmt/2020-01-01/postgresql/operations.go b/services/postgresql/mgmt/2020-01-01/postgresql/operations.go index 693bcb702be0..f54633384eca 100644 --- a/services/postgresql/mgmt/2020-01-01/postgresql/operations.go +++ b/services/postgresql/mgmt/2020-01-01/postgresql/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/postgresql/mgmt/2020-01-01/postgresql/privateendpointconnections.go b/services/postgresql/mgmt/2020-01-01/postgresql/privateendpointconnections.go index 8bc5bc8c756b..79344de93ff0 100644 --- a/services/postgresql/mgmt/2020-01-01/postgresql/privateendpointconnections.go +++ b/services/postgresql/mgmt/2020-01-01/postgresql/privateendpointconnections.go @@ -267,6 +267,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -354,6 +355,7 @@ func (client PrivateEndpointConnectionsClient) ListByServer(ctx context.Context, result.peclr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.PrivateEndpointConnectionsClient", "ListByServer", resp, "Failure responding to request") + return } if result.peclr.hasNextLink() && result.peclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -418,6 +420,7 @@ func (client PrivateEndpointConnectionsClient) listByServerNextResults(ctx conte result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.PrivateEndpointConnectionsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/postgresql/mgmt/2020-01-01/postgresql/privatelinkresources.go b/services/postgresql/mgmt/2020-01-01/postgresql/privatelinkresources.go index 402e8582ad64..73148459fe5f 100644 --- a/services/postgresql/mgmt/2020-01-01/postgresql/privatelinkresources.go +++ b/services/postgresql/mgmt/2020-01-01/postgresql/privatelinkresources.go @@ -87,6 +87,7 @@ func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.PrivateLinkResourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client PrivateLinkResourcesClient) ListByServer(ctx context.Context, resou result.plrlr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.PrivateLinkResourcesClient", "ListByServer", resp, "Failure responding to request") + return } if result.plrlr.hasNextLink() && result.plrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -238,6 +240,7 @@ func (client PrivateLinkResourcesClient) listByServerNextResults(ctx context.Con result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.PrivateLinkResourcesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/postgresql/mgmt/2020-01-01/postgresql/replicas.go b/services/postgresql/mgmt/2020-01-01/postgresql/replicas.go index 81e4f7a5cd78..eaa793d990c5 100644 --- a/services/postgresql/mgmt/2020-01-01/postgresql/replicas.go +++ b/services/postgresql/mgmt/2020-01-01/postgresql/replicas.go @@ -85,6 +85,7 @@ func (client ReplicasClient) ListByServer(ctx context.Context, resourceGroupName result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ReplicasClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/postgresql/mgmt/2020-01-01/postgresql/serveradministrators.go b/services/postgresql/mgmt/2020-01-01/postgresql/serveradministrators.go index 3f3f3771fbf2..ab4b822cce54 100644 --- a/services/postgresql/mgmt/2020-01-01/postgresql/serveradministrators.go +++ b/services/postgresql/mgmt/2020-01-01/postgresql/serveradministrators.go @@ -266,6 +266,7 @@ func (client ServerAdministratorsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ServerAdministratorsClient", "Get", resp, "Failure responding to request") + return } return @@ -351,6 +352,7 @@ func (client ServerAdministratorsClient) List(ctx context.Context, resourceGroup result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ServerAdministratorsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/postgresql/mgmt/2020-01-01/postgresql/serverkeys.go b/services/postgresql/mgmt/2020-01-01/postgresql/serverkeys.go index 26c18e5938d1..db521bd2141b 100644 --- a/services/postgresql/mgmt/2020-01-01/postgresql/serverkeys.go +++ b/services/postgresql/mgmt/2020-01-01/postgresql/serverkeys.go @@ -266,6 +266,7 @@ func (client ServerKeysClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ServerKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -353,6 +354,7 @@ func (client ServerKeysClient) List(ctx context.Context, resourceGroupName strin result.sklr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ServerKeysClient", "List", resp, "Failure responding to request") + return } if result.sklr.hasNextLink() && result.sklr.IsEmpty() { err = result.NextWithContext(ctx) @@ -417,6 +419,7 @@ func (client ServerKeysClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ServerKeysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/postgresql/mgmt/2020-01-01/postgresql/servers.go b/services/postgresql/mgmt/2020-01-01/postgresql/servers.go index 2edfde75ba8c..a1295319e8c7 100644 --- a/services/postgresql/mgmt/2020-01-01/postgresql/servers.go +++ b/services/postgresql/mgmt/2020-01-01/postgresql/servers.go @@ -265,6 +265,7 @@ func (client ServersClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ServersClient", "Get", resp, "Failure responding to request") + return } return @@ -343,6 +344,7 @@ func (client ServersClient) List(ctx context.Context) (result ServerListResult, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ServersClient", "List", resp, "Failure responding to request") + return } return @@ -425,6 +427,7 @@ func (client ServersClient) ListByResourceGroup(ctx context.Context, resourceGro result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ServersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return diff --git a/services/postgresql/mgmt/2020-01-01/postgresql/serversecurityalertpolicies.go b/services/postgresql/mgmt/2020-01-01/postgresql/serversecurityalertpolicies.go index d491d51793e1..724ecbe80fa1 100644 --- a/services/postgresql/mgmt/2020-01-01/postgresql/serversecurityalertpolicies.go +++ b/services/postgresql/mgmt/2020-01-01/postgresql/serversecurityalertpolicies.go @@ -175,6 +175,7 @@ func (client ServerSecurityAlertPoliciesClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ServerSecurityAlertPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/postgresql/mgmt/2020-01-01/postgresql/virtualnetworkrules.go b/services/postgresql/mgmt/2020-01-01/postgresql/virtualnetworkrules.go index 31d828449355..4d36f338c199 100644 --- a/services/postgresql/mgmt/2020-01-01/postgresql/virtualnetworkrules.go +++ b/services/postgresql/mgmt/2020-01-01/postgresql/virtualnetworkrules.go @@ -266,6 +266,7 @@ func (client VirtualNetworkRulesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.VirtualNetworkRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -353,6 +354,7 @@ func (client VirtualNetworkRulesClient) ListByServer(ctx context.Context, resour result.vnrlr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.VirtualNetworkRulesClient", "ListByServer", resp, "Failure responding to request") + return } if result.vnrlr.hasNextLink() && result.vnrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -417,6 +419,7 @@ func (client VirtualNetworkRulesClient) listByServerNextResults(ctx context.Cont result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.VirtualNetworkRulesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/capacities.go b/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/capacities.go index a527e27e68e9..e5b5dec2f419 100644 --- a/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/capacities.go +++ b/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/capacities.go @@ -84,6 +84,7 @@ func (client CapacitiesClient) CheckNameAvailability(ctx context.Context, locati result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerbidedicated.CapacitiesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -354,6 +355,7 @@ func (client CapacitiesClient) GetDetails(ctx context.Context, resourceGroupName result, err = client.GetDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerbidedicated.CapacitiesClient", "GetDetails", resp, "Failure responding to request") + return } return @@ -426,6 +428,7 @@ func (client CapacitiesClient) List(ctx context.Context) (result DedicatedCapaci result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerbidedicated.CapacitiesClient", "List", resp, "Failure responding to request") + return } return @@ -507,6 +510,7 @@ func (client CapacitiesClient) ListByResourceGroup(ctx context.Context, resource result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerbidedicated.CapacitiesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -578,6 +582,7 @@ func (client CapacitiesClient) ListSkus(ctx context.Context) (result SkuEnumerat result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerbidedicated.CapacitiesClient", "ListSkus", resp, "Failure responding to request") + return } return @@ -665,6 +670,7 @@ func (client CapacitiesClient) ListSkusForCapacity(ctx context.Context, resource result, err = client.ListSkusForCapacityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerbidedicated.CapacitiesClient", "ListSkusForCapacity", resp, "Failure responding to request") + return } return diff --git a/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/operations.go b/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/operations.go index 5ce43a6e4e84..094ef4a5baf4 100644 --- a/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/operations.go +++ b/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerbidedicated.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerbidedicated.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/powerbiembedded/mgmt/2016-01-29/powerbiembedded/client.go b/services/powerbiembedded/mgmt/2016-01-29/powerbiembedded/client.go index c2fc6c861109..dafa10f784f1 100644 --- a/services/powerbiembedded/mgmt/2016-01-29/powerbiembedded/client.go +++ b/services/powerbiembedded/mgmt/2016-01-29/powerbiembedded/client.go @@ -83,6 +83,7 @@ func (client BaseClient) GetAvailableOperations(ctx context.Context) (result Ope result, err = client.GetAvailableOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerbiembedded.BaseClient", "GetAvailableOperations", resp, "Failure responding to request") + return } return diff --git a/services/powerbiembedded/mgmt/2016-01-29/powerbiembedded/workspacecollections.go b/services/powerbiembedded/mgmt/2016-01-29/powerbiembedded/workspacecollections.go index 92324cbafb8d..a1f4d0468081 100644 --- a/services/powerbiembedded/mgmt/2016-01-29/powerbiembedded/workspacecollections.go +++ b/services/powerbiembedded/mgmt/2016-01-29/powerbiembedded/workspacecollections.go @@ -75,6 +75,7 @@ func (client WorkspaceCollectionsClient) CheckNameAvailability(ctx context.Conte result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerbiembedded.WorkspaceCollectionsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client WorkspaceCollectionsClient) Create(ctx context.Context, resourceGro result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerbiembedded.WorkspaceCollectionsClient", "Create", resp, "Failure responding to request") + return } return @@ -313,6 +315,7 @@ func (client WorkspaceCollectionsClient) GetAccessKeys(ctx context.Context, reso result, err = client.GetAccessKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerbiembedded.WorkspaceCollectionsClient", "GetAccessKeys", resp, "Failure responding to request") + return } return @@ -388,6 +391,7 @@ func (client WorkspaceCollectionsClient) GetByName(ctx context.Context, resource result, err = client.GetByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerbiembedded.WorkspaceCollectionsClient", "GetByName", resp, "Failure responding to request") + return } return @@ -462,6 +466,7 @@ func (client WorkspaceCollectionsClient) ListByResourceGroup(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerbiembedded.WorkspaceCollectionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -533,6 +538,7 @@ func (client WorkspaceCollectionsClient) ListBySubscription(ctx context.Context) result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerbiembedded.WorkspaceCollectionsClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -606,6 +612,7 @@ func (client WorkspaceCollectionsClient) Migrate(ctx context.Context, resourceGr result, err = client.MigrateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerbiembedded.WorkspaceCollectionsClient", "Migrate", resp, "Failure responding to request") + return } return @@ -682,6 +689,7 @@ func (client WorkspaceCollectionsClient) RegenerateKey(ctx context.Context, reso result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerbiembedded.WorkspaceCollectionsClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -760,6 +768,7 @@ func (client WorkspaceCollectionsClient) Update(ctx context.Context, resourceGro result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerbiembedded.WorkspaceCollectionsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/powerbiembedded/mgmt/2016-01-29/powerbiembedded/workspaces.go b/services/powerbiembedded/mgmt/2016-01-29/powerbiembedded/workspaces.go index f40722fa83b8..2598846ddd26 100644 --- a/services/powerbiembedded/mgmt/2016-01-29/powerbiembedded/workspaces.go +++ b/services/powerbiembedded/mgmt/2016-01-29/powerbiembedded/workspaces.go @@ -72,6 +72,7 @@ func (client WorkspacesClient) List(ctx context.Context, resourceGroupName strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerbiembedded.WorkspacesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/addons/mgmt/2017-05-15/addons/canonicalsupportplantypes.go b/services/preview/addons/mgmt/2017-05-15/addons/canonicalsupportplantypes.go index 4b1c8d8d9d37..72a4b7e0e5a6 100644 --- a/services/preview/addons/mgmt/2017-05-15/addons/canonicalsupportplantypes.go +++ b/services/preview/addons/mgmt/2017-05-15/addons/canonicalsupportplantypes.go @@ -72,6 +72,7 @@ func (client CanonicalSupportPlanTypesClient) Get(ctx context.Context, providerN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "addons.CanonicalSupportPlanTypesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/addons/mgmt/2017-05-15/addons/operations.go b/services/preview/addons/mgmt/2017-05-15/addons/operations.go index a608c8bb0113..8eae5768cb2c 100644 --- a/services/preview/addons/mgmt/2017-05-15/addons/operations.go +++ b/services/preview/addons/mgmt/2017-05-15/addons/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result ListOperationsD result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "addons.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/addons/mgmt/2017-05-15/addons/supportplantypes.go b/services/preview/addons/mgmt/2017-05-15/addons/supportplantypes.go index e5f8af512d68..7aeb3e657969 100644 --- a/services/preview/addons/mgmt/2017-05-15/addons/supportplantypes.go +++ b/services/preview/addons/mgmt/2017-05-15/addons/supportplantypes.go @@ -223,6 +223,7 @@ func (client SupportPlanTypesClient) Get(ctx context.Context, providerName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "addons.SupportPlanTypesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/addons/mgmt/2018-03-01/addons/operations.go b/services/preview/addons/mgmt/2018-03-01/addons/operations.go index a7c6f4f08fcf..3197e79fee44 100644 --- a/services/preview/addons/mgmt/2018-03-01/addons/operations.go +++ b/services/preview/addons/mgmt/2018-03-01/addons/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result ListOperationsD result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "addons.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/addons/mgmt/2018-03-01/addons/supportplantypes.go b/services/preview/addons/mgmt/2018-03-01/addons/supportplantypes.go index 98f5a4aea9b3..e6d4a4385566 100644 --- a/services/preview/addons/mgmt/2018-03-01/addons/supportplantypes.go +++ b/services/preview/addons/mgmt/2018-03-01/addons/supportplantypes.go @@ -223,6 +223,7 @@ func (client SupportPlanTypesClient) Get(ctx context.Context, providerName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "addons.SupportPlanTypesClient", "Get", resp, "Failure responding to request") + return } return @@ -295,6 +296,7 @@ func (client SupportPlanTypesClient) ListInfo(ctx context.Context) (result ListC result, err = client.ListInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "addons.SupportPlanTypesClient", "ListInfo", resp, "Failure responding to request") + return } return diff --git a/services/preview/advisor/mgmt/2016-07-12-preview/advisor/operations.go b/services/preview/advisor/mgmt/2016-07-12-preview/advisor/operations.go index 4149f063f7be..be5bf5c927eb 100644 --- a/services/preview/advisor/mgmt/2016-07-12-preview/advisor/operations.go +++ b/services/preview/advisor/mgmt/2016-07-12-preview/advisor/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationEntity result.oelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.OperationsClient", "List", resp, "Failure responding to request") + return } if result.oelr.hasNextLink() && result.oelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/advisor/mgmt/2016-07-12-preview/advisor/recommendations.go b/services/preview/advisor/mgmt/2016-07-12-preview/advisor/recommendations.go index da88c0765ab9..2cba7e2f47c4 100644 --- a/services/preview/advisor/mgmt/2016-07-12-preview/advisor/recommendations.go +++ b/services/preview/advisor/mgmt/2016-07-12-preview/advisor/recommendations.go @@ -71,6 +71,7 @@ func (client RecommendationsClient) Generate(ctx context.Context) (result autore result, err = client.GenerateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "Generate", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client RecommendationsClient) Get(ctx context.Context, resourceURI string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "Get", resp, "Failure responding to request") + return } return @@ -220,6 +222,7 @@ func (client RecommendationsClient) GetGenerateRecommendationsStatus(ctx context result, err = client.GetGenerateRecommendationsStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "GetGenerateRecommendationsStatus", resp, "Failure responding to request") + return } return @@ -296,6 +299,7 @@ func (client RecommendationsClient) List(ctx context.Context, filter string, top result.rrblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "List", resp, "Failure responding to request") + return } if result.rrblr.hasNextLink() && result.rrblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +371,7 @@ func (client RecommendationsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/advisor/mgmt/2016-07-12-preview/advisor/suppressions.go b/services/preview/advisor/mgmt/2016-07-12-preview/advisor/suppressions.go index ca2553978ca5..5068c991e9f0 100644 --- a/services/preview/advisor/mgmt/2016-07-12-preview/advisor/suppressions.go +++ b/services/preview/advisor/mgmt/2016-07-12-preview/advisor/suppressions.go @@ -76,6 +76,7 @@ func (client SuppressionsClient) Create(ctx context.Context, resourceURI string, result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.SuppressionsClient", "Create", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client SuppressionsClient) Delete(ctx context.Context, resourceURI string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.SuppressionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client SuppressionsClient) Get(ctx context.Context, resourceURI string, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.SuppressionsClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +308,7 @@ func (client SuppressionsClient) List(ctx context.Context) (result ListSuppressi result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "advisor.SuppressionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement/alerts.go b/services/preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement/alerts.go index d43f83ac01c8..1eff9fbbd940 100644 --- a/services/preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement/alerts.go +++ b/services/preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement/alerts.go @@ -72,6 +72,7 @@ func (client AlertsClient) ChangeState(ctx context.Context, alertID string, newS result, err = client.ChangeStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "ChangeState", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client AlertsClient) GetAll(ctx context.Context, targetResource string, ta result.al, err = client.GetAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "GetAll", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -261,6 +263,7 @@ func (client AlertsClient) getAllNextResults(ctx context.Context, lastResults Al result, err = client.GetAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "getAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -311,6 +314,7 @@ func (client AlertsClient) GetByID(ctx context.Context, alertID string) (result result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -384,6 +388,7 @@ func (client AlertsClient) GetHistory(ctx context.Context, alertID string) (resu result, err = client.GetHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "GetHistory", resp, "Failure responding to request") + return } return @@ -458,6 +463,7 @@ func (client AlertsClient) GetSummary(ctx context.Context, targetResourceGroup s result, err = client.GetSummaryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "GetSummary", resp, "Failure responding to request") + return } return diff --git a/services/preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement/operations.go b/services/preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement/operations.go index 2381df3180d0..d1556ac9e070 100644 --- a/services/preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement/operations.go +++ b/services/preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListP result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement/smartgroups.go b/services/preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement/smartgroups.go index 99b120681448..402044879e0c 100644 --- a/services/preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement/smartgroups.go +++ b/services/preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement/smartgroups.go @@ -73,6 +73,7 @@ func (client SmartGroupsClient) ChangeState(ctx context.Context, smartGroupID st result, err = client.ChangeStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartGroupsClient", "ChangeState", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client SmartGroupsClient) GetAll(ctx context.Context, targetResource strin result, err = client.GetAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartGroupsClient", "GetAll", resp, "Failure responding to request") + return } return @@ -262,6 +264,7 @@ func (client SmartGroupsClient) GetByID(ctx context.Context, smartGroupID string result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartGroupsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -335,6 +338,7 @@ func (client SmartGroupsClient) GetHistory(ctx context.Context, smartGroupID str result, err = client.GetHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartGroupsClient", "GetHistory", resp, "Failure responding to request") + return } return diff --git a/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/actionrules.go b/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/actionrules.go index 10912e1fadfd..6232c98f5e0a 100644 --- a/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/actionrules.go +++ b/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/actionrules.go @@ -80,6 +80,7 @@ func (client ActionRulesClient) CreateUpdate(ctx context.Context, resourceGroupN result, err = client.CreateUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.ActionRulesClient", "CreateUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ActionRulesClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.ActionRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client ActionRulesClient) GetByName(ctx context.Context, resourceGroupName result, err = client.GetByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.ActionRulesClient", "GetByName", resp, "Failure responding to request") + return } return @@ -337,6 +340,7 @@ func (client ActionRulesClient) ListByResourceGroup(ctx context.Context, resourc result.arl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.ActionRulesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.arl.hasNextLink() && result.arl.IsEmpty() { err = result.NextWithContext(ctx) @@ -430,6 +434,7 @@ func (client ActionRulesClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.ActionRulesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -497,6 +502,7 @@ func (client ActionRulesClient) ListBySubscription(ctx context.Context, targetRe result.arl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.ActionRulesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.arl.hasNextLink() && result.arl.IsEmpty() { err = result.NextWithContext(ctx) @@ -589,6 +595,7 @@ func (client ActionRulesClient) listBySubscriptionNextResults(ctx context.Contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.ActionRulesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -647,6 +654,7 @@ func (client ActionRulesClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.ActionRulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/alerts.go b/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/alerts.go index 352d3e10d7e4..4c5bd0db5ef2 100644 --- a/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/alerts.go +++ b/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/alerts.go @@ -79,6 +79,7 @@ func (client AlertsClient) ChangeState(ctx context.Context, alertID string, newS result, err = client.ChangeStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "ChangeState", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client AlertsClient) GetAll(ctx context.Context, targetResource string, ta result.al, err = client.GetAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "GetAll", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -299,6 +301,7 @@ func (client AlertsClient) getAllNextResults(ctx context.Context, lastResults Al result, err = client.GetAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "getAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -355,6 +358,7 @@ func (client AlertsClient) GetByID(ctx context.Context, alertID string) (result result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -435,6 +439,7 @@ func (client AlertsClient) GetHistory(ctx context.Context, alertID string) (resu result, err = client.GetHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "GetHistory", resp, "Failure responding to request") + return } return @@ -530,6 +535,7 @@ func (client AlertsClient) GetSummary(ctx context.Context, groupby AlertsSummary result, err = client.GetSummaryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "GetSummary", resp, "Failure responding to request") + return } return @@ -634,6 +640,7 @@ func (client AlertsClient) MetaData(ctx context.Context) (result AlertsMetaData, result, err = client.MetaDataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "MetaData", resp, "Failure responding to request") + return } return diff --git a/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/operations.go b/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/operations.go index afd30ea6b221..931ad31ada0f 100644 --- a/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/operations.go +++ b/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListP result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/smartgroups.go b/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/smartgroups.go index 5811598b1b47..cff769cbff0c 100644 --- a/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/smartgroups.go +++ b/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/smartgroups.go @@ -79,6 +79,7 @@ func (client SmartGroupsClient) ChangeState(ctx context.Context, smartGroupID st result, err = client.ChangeStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartGroupsClient", "ChangeState", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client SmartGroupsClient) GetAll(ctx context.Context, targetResource strin result.sgl, err = client.GetAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartGroupsClient", "GetAll", resp, "Failure responding to request") + return } if result.sgl.hasNextLink() && result.sgl.IsEmpty() { err = result.NextWithContext(ctx) @@ -268,6 +270,7 @@ func (client SmartGroupsClient) getAllNextResults(ctx context.Context, lastResul result, err = client.GetAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartGroupsClient", "getAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -324,6 +327,7 @@ func (client SmartGroupsClient) GetByID(ctx context.Context, smartGroupID string result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartGroupsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -403,6 +407,7 @@ func (client SmartGroupsClient) GetHistory(ctx context.Context, smartGroupID str result, err = client.GetHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartGroupsClient", "GetHistory", resp, "Failure responding to request") + return } return diff --git a/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/actionrules.go b/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/actionrules.go index 10912e1fadfd..6232c98f5e0a 100644 --- a/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/actionrules.go +++ b/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/actionrules.go @@ -80,6 +80,7 @@ func (client ActionRulesClient) CreateUpdate(ctx context.Context, resourceGroupN result, err = client.CreateUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.ActionRulesClient", "CreateUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ActionRulesClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.ActionRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client ActionRulesClient) GetByName(ctx context.Context, resourceGroupName result, err = client.GetByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.ActionRulesClient", "GetByName", resp, "Failure responding to request") + return } return @@ -337,6 +340,7 @@ func (client ActionRulesClient) ListByResourceGroup(ctx context.Context, resourc result.arl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.ActionRulesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.arl.hasNextLink() && result.arl.IsEmpty() { err = result.NextWithContext(ctx) @@ -430,6 +434,7 @@ func (client ActionRulesClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.ActionRulesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -497,6 +502,7 @@ func (client ActionRulesClient) ListBySubscription(ctx context.Context, targetRe result.arl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.ActionRulesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.arl.hasNextLink() && result.arl.IsEmpty() { err = result.NextWithContext(ctx) @@ -589,6 +595,7 @@ func (client ActionRulesClient) listBySubscriptionNextResults(ctx context.Contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.ActionRulesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -647,6 +654,7 @@ func (client ActionRulesClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.ActionRulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/alerts.go b/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/alerts.go index 352d3e10d7e4..4c5bd0db5ef2 100644 --- a/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/alerts.go +++ b/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/alerts.go @@ -79,6 +79,7 @@ func (client AlertsClient) ChangeState(ctx context.Context, alertID string, newS result, err = client.ChangeStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "ChangeState", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client AlertsClient) GetAll(ctx context.Context, targetResource string, ta result.al, err = client.GetAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "GetAll", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -299,6 +301,7 @@ func (client AlertsClient) getAllNextResults(ctx context.Context, lastResults Al result, err = client.GetAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "getAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -355,6 +358,7 @@ func (client AlertsClient) GetByID(ctx context.Context, alertID string) (result result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -435,6 +439,7 @@ func (client AlertsClient) GetHistory(ctx context.Context, alertID string) (resu result, err = client.GetHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "GetHistory", resp, "Failure responding to request") + return } return @@ -530,6 +535,7 @@ func (client AlertsClient) GetSummary(ctx context.Context, groupby AlertsSummary result, err = client.GetSummaryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "GetSummary", resp, "Failure responding to request") + return } return @@ -634,6 +640,7 @@ func (client AlertsClient) MetaData(ctx context.Context) (result AlertsMetaData, result, err = client.MetaDataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.AlertsClient", "MetaData", resp, "Failure responding to request") + return } return diff --git a/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/operations.go b/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/operations.go index afd30ea6b221..931ad31ada0f 100644 --- a/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/operations.go +++ b/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListP result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/smartdetectoralertrules.go b/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/smartdetectoralertrules.go index b94c45fa4cc0..880377d1be7c 100644 --- a/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/smartdetectoralertrules.go +++ b/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/smartdetectoralertrules.go @@ -90,6 +90,7 @@ func (client SmartDetectorAlertRulesClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartDetectorAlertRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client SmartDetectorAlertRulesClient) Delete(ctx context.Context, resource result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartDetectorAlertRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -254,6 +256,7 @@ func (client SmartDetectorAlertRulesClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartDetectorAlertRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -338,6 +341,7 @@ func (client SmartDetectorAlertRulesClient) List(ctx context.Context, expandDete result.arl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartDetectorAlertRulesClient", "List", resp, "Failure responding to request") + return } if result.arl.hasNextLink() && result.arl.IsEmpty() { err = result.NextWithContext(ctx) @@ -403,6 +407,7 @@ func (client SmartDetectorAlertRulesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartDetectorAlertRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -461,6 +466,7 @@ func (client SmartDetectorAlertRulesClient) ListByResourceGroup(ctx context.Cont result.arl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartDetectorAlertRulesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.arl.hasNextLink() && result.arl.IsEmpty() { err = result.NextWithContext(ctx) @@ -527,6 +533,7 @@ func (client SmartDetectorAlertRulesClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartDetectorAlertRulesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -585,6 +592,7 @@ func (client SmartDetectorAlertRulesClient) Patch(ctx context.Context, resourceG result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartDetectorAlertRulesClient", "Patch", resp, "Failure responding to request") + return } return diff --git a/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/smartgroups.go b/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/smartgroups.go index 5811598b1b47..cff769cbff0c 100644 --- a/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/smartgroups.go +++ b/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/smartgroups.go @@ -79,6 +79,7 @@ func (client SmartGroupsClient) ChangeState(ctx context.Context, smartGroupID st result, err = client.ChangeStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartGroupsClient", "ChangeState", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client SmartGroupsClient) GetAll(ctx context.Context, targetResource strin result.sgl, err = client.GetAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartGroupsClient", "GetAll", resp, "Failure responding to request") + return } if result.sgl.hasNextLink() && result.sgl.IsEmpty() { err = result.NextWithContext(ctx) @@ -268,6 +270,7 @@ func (client SmartGroupsClient) getAllNextResults(ctx context.Context, lastResul result, err = client.GetAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartGroupsClient", "getAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -324,6 +327,7 @@ func (client SmartGroupsClient) GetByID(ctx context.Context, smartGroupID string result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartGroupsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -403,6 +407,7 @@ func (client SmartGroupsClient) GetHistory(ctx context.Context, smartGroupID str result, err = client.GetHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "alertsmanagement.SmartGroupsClient", "GetHistory", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/api.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/api.go index fc7940e9ca45..c717fcca936c 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/api.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/api.go @@ -79,6 +79,7 @@ func (client APIClient) CreateOrUpdate(ctx context.Context, apimBaseURL string, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client APIClient) Delete(ctx context.Context, apimBaseURL string, apiid st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Delete", resp, "Failure responding to request") + return } return @@ -259,6 +261,7 @@ func (client APIClient) Get(ctx context.Context, apimBaseURL string, apiid strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Get", resp, "Failure responding to request") + return } return @@ -356,6 +359,7 @@ func (client APIClient) List(ctx context.Context, apimBaseURL string, filter str result.ac, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "List", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -427,6 +431,7 @@ func (client APIClient) listNextResults(ctx context.Context, lastResults APIColl result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -490,6 +495,7 @@ func (client APIClient) Update(ctx context.Context, apimBaseURL string, apiid st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/apiexport.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/apiexport.go index e56bce07a89f..191f4b8f9dfe 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/apiexport.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/apiexport.go @@ -77,6 +77,7 @@ func (client APIExportClient) Get(ctx context.Context, apimBaseURL string, apiid result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIExportClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/apioperation.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/apioperation.go index d05cf2799a70..b93222574406 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/apioperation.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/apioperation.go @@ -83,6 +83,7 @@ func (client APIOperationClient) CreateOrUpdate(ctx context.Context, apimBaseURL result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client APIOperationClient) Delete(ctx context.Context, apimBaseURL string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Delete", resp, "Failure responding to request") + return } return @@ -273,6 +275,7 @@ func (client APIOperationClient) Get(ctx context.Context, apimBaseURL string, ap result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Get", resp, "Failure responding to request") + return } return @@ -375,6 +378,7 @@ func (client APIOperationClient) ListByAPI(ctx context.Context, apimBaseURL stri result.oc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "ListByAPI", resp, "Failure responding to request") + return } if result.oc.hasNextLink() && result.oc.IsEmpty() { err = result.NextWithContext(ctx) @@ -450,6 +454,7 @@ func (client APIOperationClient) listByAPINextResults(ctx context.Context, lastR result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } @@ -519,6 +524,7 @@ func (client APIOperationClient) Update(ctx context.Context, apimBaseURL string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/apioperationpolicy.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/apioperationpolicy.go index f53d1b657d59..a95e767d099e 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/apioperationpolicy.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/apioperationpolicy.go @@ -87,6 +87,7 @@ func (client APIOperationPolicyClient) CreateOrUpdate(ctx context.Context, apimB result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client APIOperationPolicyClient) Delete(ctx context.Context, apimBaseURL s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client APIOperationPolicyClient) Get(ctx context.Context, apimBaseURL stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -374,6 +377,7 @@ func (client APIOperationPolicyClient) ListByOperation(ctx context.Context, apim result, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "ListByOperation", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/apipolicy.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/apipolicy.go index 7d75f46bc15e..135980dbdb31 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/apipolicy.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/apipolicy.go @@ -81,6 +81,7 @@ func (client APIPolicyClient) CreateOrUpdate(ctx context.Context, apimBaseURL st result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client APIPolicyClient) Delete(ctx context.Context, apimBaseURL string, ap result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client APIPolicyClient) Get(ctx context.Context, apimBaseURL string, apiid result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -347,6 +350,7 @@ func (client APIPolicyClient) ListByAPI(ctx context.Context, apimBaseURL string, result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "ListByAPI", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/apiproduct.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/apiproduct.go index 479d60669ca2..dbaa8e8dca5e 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/apiproduct.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/apiproduct.go @@ -88,6 +88,7 @@ func (client APIProductClient) ListByApis(ctx context.Context, apimBaseURL strin result.pc, err = client.ListByApisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIProductClient", "ListByApis", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -163,6 +164,7 @@ func (client APIProductClient) listByApisNextResults(ctx context.Context, lastRe result, err = client.ListByApisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIProductClient", "listByApisNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/apischema.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/apischema.go index a32186df0d53..073e1ecc556c 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/apischema.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/apischema.go @@ -84,6 +84,7 @@ func (client APISchemaClient) CreateOrUpdate(ctx context.Context, apimBaseURL st result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -184,6 +185,7 @@ func (client APISchemaClient) Delete(ctx context.Context, apimBaseURL string, ap result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "Delete", resp, "Failure responding to request") + return } return @@ -276,6 +278,7 @@ func (client APISchemaClient) Get(ctx context.Context, apimBaseURL string, apiid result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "Get", resp, "Failure responding to request") + return } return @@ -364,6 +367,7 @@ func (client APISchemaClient) ListByAPI(ctx context.Context, apimBaseURL string, result.sc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "ListByAPI", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -430,6 +434,7 @@ func (client APISchemaClient) listByAPINextResults(ctx context.Context, lastResu result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/authorizationserver.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/authorizationserver.go index 32254cbb124f..715f366687ea 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/authorizationserver.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/authorizationserver.go @@ -76,6 +76,7 @@ func (client AuthorizationServerClient) CreateOrUpdate(ctx context.Context, apim result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client AuthorizationServerClient) Delete(ctx context.Context, apimBaseURL result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Delete", resp, "Failure responding to request") + return } return @@ -250,6 +252,7 @@ func (client AuthorizationServerClient) Get(ctx context.Context, apimBaseURL str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +347,7 @@ func (client AuthorizationServerClient) List(ctx context.Context, apimBaseURL st result.asc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "List", resp, "Failure responding to request") + return } if result.asc.hasNextLink() && result.asc.IsEmpty() { err = result.NextWithContext(ctx) @@ -415,6 +419,7 @@ func (client AuthorizationServerClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -477,6 +482,7 @@ func (client AuthorizationServerClient) Update(ctx context.Context, apimBaseURL result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/backend.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/backend.go index 09b41bba0b8b..012b49be7460 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/backend.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/backend.go @@ -77,6 +77,7 @@ func (client BackendClient) CreateOrUpdate(ctx context.Context, apimBaseURL stri result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client BackendClient) Delete(ctx context.Context, apimBaseURL string, back result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Delete", resp, "Failure responding to request") + return } return @@ -253,6 +255,7 @@ func (client BackendClient) Get(ctx context.Context, apimBaseURL string, backend result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Get", resp, "Failure responding to request") + return } return @@ -347,6 +350,7 @@ func (client BackendClient) List(ctx context.Context, apimBaseURL string, filter result.bc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "List", resp, "Failure responding to request") + return } if result.bc.hasNextLink() && result.bc.IsEmpty() { err = result.NextWithContext(ctx) @@ -418,6 +422,7 @@ func (client BackendClient) listNextResults(ctx context.Context, lastResults Bac result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -481,6 +486,7 @@ func (client BackendClient) Update(ctx context.Context, apimBaseURL string, back result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/certificate.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/certificate.go index 5d30db159208..5acd10a2868c 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/certificate.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/certificate.go @@ -83,6 +83,7 @@ func (client CertificateClient) CreateOrUpdate(ctx context.Context, apimBaseURL result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client CertificateClient) Delete(ctx context.Context, apimBaseURL string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "Delete", resp, "Failure responding to request") + return } return @@ -265,6 +267,7 @@ func (client CertificateClient) Get(ctx context.Context, apimBaseURL string, cer result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -361,6 +364,7 @@ func (client CertificateClient) List(ctx context.Context, apimBaseURL string, fi result.cc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "List", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -432,6 +436,7 @@ func (client CertificateClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/delegationsettings.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/delegationsettings.go index 8dadc6477c38..7b01de617622 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/delegationsettings.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/delegationsettings.go @@ -67,6 +67,7 @@ func (client DelegationSettingsClient) CreateOrUpdate(ctx context.Context, apimB result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -142,6 +143,7 @@ func (client DelegationSettingsClient) Get(ctx context.Context, apimBaseURL stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -218,6 +220,7 @@ func (client DelegationSettingsClient) Update(ctx context.Context, apimBaseURL s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/emailtemplate.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/emailtemplate.go index 3f6d512209c6..ed0e66fe305f 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/emailtemplate.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/emailtemplate.go @@ -80,6 +80,7 @@ func (client EmailTemplateClient) CreateOrUpdate(ctx context.Context, apimBaseUR result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client EmailTemplateClient) Delete(ctx context.Context, apimBaseURL string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Delete", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client EmailTemplateClient) Get(ctx context.Context, apimBaseURL string, t result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Get", resp, "Failure responding to request") + return } return @@ -333,6 +336,7 @@ func (client EmailTemplateClient) List(ctx context.Context, apimBaseURL string, result.etc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "List", resp, "Failure responding to request") + return } if result.etc.hasNextLink() && result.etc.IsEmpty() { err = result.NextWithContext(ctx) @@ -404,6 +408,7 @@ func (client EmailTemplateClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -457,6 +462,7 @@ func (client EmailTemplateClient) Update(ctx context.Context, apimBaseURL string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/group.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/group.go index cf77fb008c8e..38700d4c5d57 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/group.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/group.go @@ -82,6 +82,7 @@ func (client GroupClient) CreateOrUpdate(ctx context.Context, apimBaseURL string result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client GroupClient) Delete(ctx context.Context, apimBaseURL string, groupI result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Delete", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client GroupClient) Get(ctx context.Context, apimBaseURL string, groupID s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Get", resp, "Failure responding to request") + return } return @@ -354,6 +357,7 @@ func (client GroupClient) List(ctx context.Context, apimBaseURL string, filter s result.gc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "List", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -425,6 +429,7 @@ func (client GroupClient) listNextResults(ctx context.Context, lastResults Group result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -488,6 +493,7 @@ func (client GroupClient) Update(ctx context.Context, apimBaseURL string, groupI result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/groupuser.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/groupuser.go index b3d733c2d340..67a961c29ee8 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/groupuser.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/groupuser.go @@ -81,6 +81,7 @@ func (client GroupUserClient) Create(ctx context.Context, apimBaseURL string, gr result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "Create", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client GroupUserClient) Delete(ctx context.Context, apimBaseURL string, gr result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "Delete", resp, "Failure responding to request") + return } return @@ -277,6 +279,7 @@ func (client GroupUserClient) List(ctx context.Context, apimBaseURL string, grou result.uc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "List", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -352,6 +355,7 @@ func (client GroupUserClient) listNextResults(ctx context.Context, lastResults U result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/identityprovider.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/identityprovider.go index a772e64c095d..8fa3602529cb 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/identityprovider.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/identityprovider.go @@ -68,6 +68,7 @@ func (client IdentityProviderClient) CreateOrUpdate(ctx context.Context, apimBas result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client IdentityProviderClient) Delete(ctx context.Context, apimBaseURL str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Delete", resp, "Failure responding to request") + return } return @@ -228,6 +230,7 @@ func (client IdentityProviderClient) Get(ctx context.Context, apimBaseURL string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +308,7 @@ func (client IdentityProviderClient) List(ctx context.Context, apimBaseURL strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "List", resp, "Failure responding to request") + return } return @@ -382,6 +386,7 @@ func (client IdentityProviderClient) Update(ctx context.Context, apimBaseURL str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/logger.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/logger.go index 40eaa7e80765..b5ddf078f3ae 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/logger.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/logger.go @@ -76,6 +76,7 @@ func (client LoggerClient) CreateOrUpdate(ctx context.Context, apimBaseURL strin result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client LoggerClient) Delete(ctx context.Context, apimBaseURL string, logge result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Delete", resp, "Failure responding to request") + return } return @@ -250,6 +252,7 @@ func (client LoggerClient) Get(ctx context.Context, apimBaseURL string, loggerid result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +347,7 @@ func (client LoggerClient) List(ctx context.Context, apimBaseURL string, filter result.lc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "List", resp, "Failure responding to request") + return } if result.lc.hasNextLink() && result.lc.IsEmpty() { err = result.NextWithContext(ctx) @@ -415,6 +419,7 @@ func (client LoggerClient) listNextResults(ctx context.Context, lastResults Logg result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -477,6 +482,7 @@ func (client LoggerClient) Update(ctx context.Context, apimBaseURL string, logge result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/openidconnectprovider.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/openidconnectprovider.go index 01ee561e4d84..d2ec1f2c7f90 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/openidconnectprovider.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/openidconnectprovider.go @@ -76,6 +76,7 @@ func (client OpenIDConnectProviderClient) CreateOrUpdate(ctx context.Context, ap result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client OpenIDConnectProviderClient) Delete(ctx context.Context, apimBaseUR result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Delete", resp, "Failure responding to request") + return } return @@ -250,6 +252,7 @@ func (client OpenIDConnectProviderClient) Get(ctx context.Context, apimBaseURL s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +347,7 @@ func (client OpenIDConnectProviderClient) List(ctx context.Context, apimBaseURL result.oicpc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "List", resp, "Failure responding to request") + return } if result.oicpc.hasNextLink() && result.oicpc.IsEmpty() { err = result.NextWithContext(ctx) @@ -415,6 +419,7 @@ func (client OpenIDConnectProviderClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -477,6 +482,7 @@ func (client OpenIDConnectProviderClient) Update(ctx context.Context, apimBaseUR result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/policy.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/policy.go index 38b468afd9d2..a6f084375dbd 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/policy.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/policy.go @@ -74,6 +74,7 @@ func (client PolicyClient) CreateOrUpdate(ctx context.Context, apimBaseURL strin result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client PolicyClient) Delete(ctx context.Context, apimBaseURL string, ifMat result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client PolicyClient) Get(ctx context.Context, apimBaseURL string) (result result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +313,7 @@ func (client PolicyClient) List(ctx context.Context, apimBaseURL string, scope P result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/policysnippets.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/policysnippets.go index 19c41a5450f5..48c1d5268a3a 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/policysnippets.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/policysnippets.go @@ -67,6 +67,7 @@ func (client PolicySnippetsClient) List(ctx context.Context, apimBaseURL string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicySnippetsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/product.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/product.go index ddf743b60015..98808194d2a6 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/product.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/product.go @@ -77,6 +77,7 @@ func (client ProductClient) CreateOrUpdate(ctx context.Context, apimBaseURL stri result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client ProductClient) Delete(ctx context.Context, apimBaseURL string, prod result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Delete", resp, "Failure responding to request") + return } return @@ -257,6 +259,7 @@ func (client ProductClient) Get(ctx context.Context, apimBaseURL string, product result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Get", resp, "Failure responding to request") + return } return @@ -356,6 +359,7 @@ func (client ProductClient) List(ctx context.Context, apimBaseURL string, filter result.pc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "List", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -430,6 +434,7 @@ func (client ProductClient) listNextResults(ctx context.Context, lastResults Pro result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -493,6 +498,7 @@ func (client ProductClient) Update(ctx context.Context, apimBaseURL string, prod result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/productapi.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/productapi.go index 76600c1f1adf..080774159792 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/productapi.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/productapi.go @@ -81,6 +81,7 @@ func (client ProductAPIClient) CreateOrUpdate(ctx context.Context, apimBaseURL s result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client ProductAPIClient) Delete(ctx context.Context, apimBaseURL string, p result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "Delete", resp, "Failure responding to request") + return } return @@ -275,6 +277,7 @@ func (client ProductAPIClient) ListByProduct(ctx context.Context, apimBaseURL st result.ac, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "ListByProduct", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -350,6 +353,7 @@ func (client ProductAPIClient) listByProductNextResults(ctx context.Context, las result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/productgroup.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/productgroup.go index d5837f362caf..e7b8a39ff9e3 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/productgroup.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/productgroup.go @@ -81,6 +81,7 @@ func (client ProductGroupClient) CreateOrUpdate(ctx context.Context, apimBaseURL result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client ProductGroupClient) Delete(ctx context.Context, apimBaseURL string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "Delete", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client ProductGroupClient) ListByProduct(ctx context.Context, apimBaseURL result.gc, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "ListByProduct", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -349,6 +352,7 @@ func (client ProductGroupClient) listByProductNextResults(ctx context.Context, l result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/productpolicy.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/productpolicy.go index 8548f413c993..b5c6f098fe5e 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/productpolicy.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/productpolicy.go @@ -79,6 +79,7 @@ func (client ProductPolicyClient) CreateOrUpdate(ctx context.Context, apimBaseUR result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client ProductPolicyClient) Delete(ctx context.Context, apimBaseURL string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -257,6 +259,7 @@ func (client ProductPolicyClient) Get(ctx context.Context, apimBaseURL string, p result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +347,7 @@ func (client ProductPolicyClient) ListByProduct(ctx context.Context, apimBaseURL result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "ListByProduct", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/productsubscriptions.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/productsubscriptions.go index c3853af7c8b7..7399d8b51b57 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/productsubscriptions.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/productsubscriptions.go @@ -93,6 +93,7 @@ func (client ProductSubscriptionsClient) List(ctx context.Context, apimBaseURL s result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductSubscriptionsClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -168,6 +169,7 @@ func (client ProductSubscriptionsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductSubscriptionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/property.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/property.go index dc0cb945581d..a2d9148594d8 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/property.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/property.go @@ -76,6 +76,7 @@ func (client PropertyClient) CreateOrUpdate(ctx context.Context, apimBaseURL str result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client PropertyClient) Delete(ctx context.Context, apimBaseURL string, pro result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Delete", resp, "Failure responding to request") + return } return @@ -250,6 +252,7 @@ func (client PropertyClient) Get(ctx context.Context, apimBaseURL string, propID result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +347,7 @@ func (client PropertyClient) List(ctx context.Context, apimBaseURL string, filte result.pc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "List", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -415,6 +419,7 @@ func (client PropertyClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -477,6 +482,7 @@ func (client PropertyClient) Update(ctx context.Context, apimBaseURL string, pro result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/quotabycounterkeys.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/quotabycounterkeys.go index 284a08e63fe5..4fd1750f57d8 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/quotabycounterkeys.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/quotabycounterkeys.go @@ -71,6 +71,7 @@ func (client QuotaByCounterKeysClient) List(ctx context.Context, apimBaseURL str result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByCounterKeysClient", "List", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client QuotaByCounterKeysClient) Update(ctx context.Context, apimBaseURL s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByCounterKeysClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/quotabyperiodkeys.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/quotabyperiodkeys.go index a9cf54a223a9..ec8624c8f7f8 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/quotabyperiodkeys.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/quotabyperiodkeys.go @@ -72,6 +72,7 @@ func (client QuotaByPeriodKeysClient) Get(ctx context.Context, apimBaseURL strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByPeriodKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client QuotaByPeriodKeysClient) Update(ctx context.Context, apimBaseURL st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByPeriodKeysClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/regions.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/regions.go index a22228cf4e16..c91bda83a0c1 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/regions.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/regions.go @@ -66,6 +66,7 @@ func (client RegionsClient) List(ctx context.Context, apimBaseURL string) (resul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.RegionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/reports.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/reports.go index 69a21cbbdf08..c5c79fa46562 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/reports.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/reports.go @@ -81,6 +81,7 @@ func (client ReportsClient) ListByAPI(ctx context.Context, apimBaseURL string, f result.rc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByAPI", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -150,6 +151,7 @@ func (client ReportsClient) listByAPINextResults(ctx context.Context, lastResult result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } @@ -215,6 +217,7 @@ func (client ReportsClient) ListByGeo(ctx context.Context, apimBaseURL string, f result.rc, err = client.ListByGeoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByGeo", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -286,6 +289,7 @@ func (client ReportsClient) listByGeoNextResults(ctx context.Context, lastResult result, err = client.ListByGeoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByGeoNextResults", resp, "Failure responding to next results request") + return } return } @@ -351,6 +355,7 @@ func (client ReportsClient) ListByOperation(ctx context.Context, apimBaseURL str result.rc, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByOperation", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -420,6 +425,7 @@ func (client ReportsClient) listByOperationNextResults(ctx context.Context, last result, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByOperationNextResults", resp, "Failure responding to next results request") + return } return } @@ -485,6 +491,7 @@ func (client ReportsClient) ListByProduct(ctx context.Context, apimBaseURL strin result.rc, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByProduct", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -554,6 +561,7 @@ func (client ReportsClient) listByProductNextResults(ctx context.Context, lastRe result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } @@ -618,6 +626,7 @@ func (client ReportsClient) ListByRequest(ctx context.Context, apimBaseURL strin result, err = client.ListByRequestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByRequest", resp, "Failure responding to request") + return } return @@ -712,6 +721,7 @@ func (client ReportsClient) ListBySubscription(ctx context.Context, apimBaseURL result.rc, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -783,6 +793,7 @@ func (client ReportsClient) listBySubscriptionNextResults(ctx context.Context, l result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -851,6 +862,7 @@ func (client ReportsClient) ListByTime(ctx context.Context, apimBaseURL string, result.rc, err = client.ListByTimeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByTime", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -923,6 +935,7 @@ func (client ReportsClient) listByTimeNextResults(ctx context.Context, lastResul result, err = client.ListByTimeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByTimeNextResults", resp, "Failure responding to next results request") + return } return } @@ -988,6 +1001,7 @@ func (client ReportsClient) ListByUser(ctx context.Context, apimBaseURL string, result.rc, err = client.ListByUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByUser", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1057,6 +1071,7 @@ func (client ReportsClient) listByUserNextResults(ctx context.Context, lastResul result, err = client.ListByUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByUserNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/signinsettings.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/signinsettings.go index fc645c691875..06cb49b1e868 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/signinsettings.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/signinsettings.go @@ -67,6 +67,7 @@ func (client SignInSettingsClient) CreateOrUpdate(ctx context.Context, apimBaseU result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -142,6 +143,7 @@ func (client SignInSettingsClient) Get(ctx context.Context, apimBaseURL string) result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -218,6 +220,7 @@ func (client SignInSettingsClient) Update(ctx context.Context, apimBaseURL strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/signupsettings.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/signupsettings.go index 8dc12c9a76fe..01d4586193d1 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/signupsettings.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/signupsettings.go @@ -67,6 +67,7 @@ func (client SignUpSettingsClient) CreateOrUpdate(ctx context.Context, apimBaseU result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -142,6 +143,7 @@ func (client SignUpSettingsClient) Get(ctx context.Context, apimBaseURL string) result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -218,6 +220,7 @@ func (client SignUpSettingsClient) Update(ctx context.Context, apimBaseURL strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/subscription.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/subscription.go index 5337b1aa582a..a2796dd05a81 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/subscription.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/subscription.go @@ -93,6 +93,7 @@ func (client SubscriptionClient) CreateOrUpdate(ctx context.Context, apimBaseURL result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client SubscriptionClient) Delete(ctx context.Context, apimBaseURL string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Delete", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client SubscriptionClient) Get(ctx context.Context, apimBaseURL string, si result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Get", resp, "Failure responding to request") + return } return @@ -372,6 +375,7 @@ func (client SubscriptionClient) List(ctx context.Context, apimBaseURL string, f result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -443,6 +447,7 @@ func (client SubscriptionClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -503,6 +508,7 @@ func (client SubscriptionClient) RegeneratePrimaryKey(ctx context.Context, apimB result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -588,6 +594,7 @@ func (client SubscriptionClient) RegenerateSecondaryKey(ctx context.Context, api result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return @@ -677,6 +684,7 @@ func (client SubscriptionClient) Update(ctx context.Context, apimBaseURL string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/tenantaccess.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/tenantaccess.go index 2a2a6e6c2fc9..c25d8442de65 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/tenantaccess.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/tenantaccess.go @@ -66,6 +66,7 @@ func (client TenantAccessClient) Get(ctx context.Context, apimBaseURL string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "Get", resp, "Failure responding to request") + return } return @@ -143,6 +144,7 @@ func (client TenantAccessClient) RegeneratePrimaryKey(ctx context.Context, apimB result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -219,6 +221,7 @@ func (client TenantAccessClient) RegenerateSecondaryKey(ctx context.Context, api result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return @@ -298,6 +301,7 @@ func (client TenantAccessClient) Update(ctx context.Context, apimBaseURL string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/tenantaccessgit.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/tenantaccessgit.go index 5172d082f235..91a8dd434229 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/tenantaccessgit.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/tenantaccessgit.go @@ -66,6 +66,7 @@ func (client TenantAccessGitClient) Get(ctx context.Context, apimBaseURL string) result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "Get", resp, "Failure responding to request") + return } return @@ -143,6 +144,7 @@ func (client TenantAccessGitClient) RegeneratePrimaryKey(ctx context.Context, ap result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -219,6 +221,7 @@ func (client TenantAccessGitClient) RegenerateSecondaryKey(ctx context.Context, result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/tenantconfiguration.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/tenantconfiguration.go index d574365743d1..df142e36a503 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/tenantconfiguration.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/tenantconfiguration.go @@ -155,6 +155,7 @@ func (client TenantConfigurationClient) GetSyncState(ctx context.Context, apimBa result, err = client.GetSyncStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationClient", "GetSyncState", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/user.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/user.go index 0e02075776fe..da9bf6481e99 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/user.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/user.go @@ -90,6 +90,7 @@ func (client UserClient) CreateOrUpdate(ctx context.Context, apimBaseURL string, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -182,6 +183,7 @@ func (client UserClient) Delete(ctx context.Context, apimBaseURL string, UID str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Delete", resp, "Failure responding to request") + return } return @@ -279,6 +281,7 @@ func (client UserClient) GenerateSsoURL(ctx context.Context, apimBaseURL string, result, err = client.GenerateSsoURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GenerateSsoURL", resp, "Failure responding to request") + return } return @@ -365,6 +368,7 @@ func (client UserClient) Get(ctx context.Context, apimBaseURL string, UID string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Get", resp, "Failure responding to request") + return } return @@ -454,6 +458,7 @@ func (client UserClient) GetSharedAccessToken(ctx context.Context, apimBaseURL s result, err = client.GetSharedAccessTokenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GetSharedAccessToken", resp, "Failure responding to request") + return } return @@ -555,6 +560,7 @@ func (client UserClient) List(ctx context.Context, apimBaseURL string, filter st result.uc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "List", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -626,6 +632,7 @@ func (client UserClient) listNextResults(ctx context.Context, lastResults UserCo result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -689,6 +696,7 @@ func (client UserClient) Update(ctx context.Context, apimBaseURL string, UID str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/usergroup.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/usergroup.go index 81f02535ad4b..b53bb6260faa 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/usergroup.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/usergroup.go @@ -90,6 +90,7 @@ func (client UserGroupClient) List(ctx context.Context, apimBaseURL string, UID result.gc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserGroupClient", "List", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -165,6 +166,7 @@ func (client UserGroupClient) listNextResults(ctx context.Context, lastResults G result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserGroupClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/useridentities.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/useridentities.go index ab8295dacc01..02ee3944835b 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/useridentities.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/useridentities.go @@ -76,6 +76,7 @@ func (client UserIdentitiesClient) List(ctx context.Context, apimBaseURL string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserIdentitiesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/usersubscription.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/usersubscription.go index 96d94ab13a71..ab4b7ba661ed 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/usersubscription.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/usersubscription.go @@ -93,6 +93,7 @@ func (client UserSubscriptionClient) List(ctx context.Context, apimBaseURL strin result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserSubscriptionClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -168,6 +169,7 @@ func (client UserSubscriptionClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserSubscriptionClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/api.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/api.go index ab30aeb916a0..fa6d17591f0b 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/api.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/api.go @@ -188,6 +188,7 @@ func (client APIClient) Delete(ctx context.Context, resourceGroupName string, se result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Delete", resp, "Failure responding to request") + return } return @@ -281,6 +282,7 @@ func (client APIClient) Get(ctx context.Context, resourceGroupName string, servi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Get", resp, "Failure responding to request") + return } return @@ -371,6 +373,7 @@ func (client APIClient) GetEntityTag(ctx context.Context, resourceGroupName stri result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -473,6 +476,7 @@ func (client APIClient) ListByService(ctx context.Context, resourceGroupName str result.ac, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "ListByService", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -552,6 +556,7 @@ func (client APIClient) listByServiceNextResults(ctx context.Context, lastResult result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -631,6 +636,7 @@ func (client APIClient) ListByTags(ctx context.Context, resourceGroupName string result.trc, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "ListByTags", resp, "Failure responding to request") + return } if result.trc.hasNextLink() && result.trc.IsEmpty() { err = result.NextWithContext(ctx) @@ -707,6 +713,7 @@ func (client APIClient) listByTagsNextResults(ctx context.Context, lastResults T result, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "listByTagsNextResults", resp, "Failure responding to next results request") + return } return } @@ -775,6 +782,7 @@ func (client APIClient) Update(ctx context.Context, resourceGroupName string, se result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apidiagnostic.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apidiagnostic.go index fceb33c3b379..f283ad29c074 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apidiagnostic.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apidiagnostic.go @@ -131,6 +131,7 @@ func (client APIDiagnosticClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -234,6 +235,7 @@ func (client APIDiagnosticClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Delete", resp, "Failure responding to request") + return } return @@ -329,6 +331,7 @@ func (client APIDiagnosticClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Get", resp, "Failure responding to request") + return } return @@ -424,6 +427,7 @@ func (client APIDiagnosticClient) GetEntityTag(ctx context.Context, resourceGrou result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -526,6 +530,7 @@ func (client APIDiagnosticClient) ListByService(ctx context.Context, resourceGro result.dc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "ListByService", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -600,6 +605,7 @@ func (client APIDiagnosticClient) listByServiceNextResults(ctx context.Context, result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -672,6 +678,7 @@ func (client APIDiagnosticClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiexport.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiexport.go index 1e506d6a7be0..661523ca8343 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiexport.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiexport.go @@ -90,6 +90,7 @@ func (client APIExportClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIExportClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiissue.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiissue.go index af2bd73e8bfb..7d846e6fdc87 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiissue.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiissue.go @@ -99,6 +99,7 @@ func (client APIIssueClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -202,6 +203,7 @@ func (client APIIssueClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Delete", resp, "Failure responding to request") + return } return @@ -298,6 +300,7 @@ func (client APIIssueClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Get", resp, "Failure responding to request") + return } return @@ -396,6 +399,7 @@ func (client APIIssueClient) GetEntityTag(ctx context.Context, resourceGroupName result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -501,6 +505,7 @@ func (client APIIssueClient) ListByService(ctx context.Context, resourceGroupNam result.ic, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "ListByService", resp, "Failure responding to request") + return } if result.ic.hasNextLink() && result.ic.IsEmpty() { err = result.NextWithContext(ctx) @@ -578,6 +583,7 @@ func (client APIIssueClient) listByServiceNextResults(ctx context.Context, lastR result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -650,6 +656,7 @@ func (client APIIssueClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiissueattachment.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiissueattachment.go index aeece2ed5d36..ad710e8f9a39 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiissueattachment.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiissueattachment.go @@ -105,6 +105,7 @@ func (client APIIssueAttachmentClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -214,6 +215,7 @@ func (client APIIssueAttachmentClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "Delete", resp, "Failure responding to request") + return } return @@ -315,6 +317,7 @@ func (client APIIssueAttachmentClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "Get", resp, "Failure responding to request") + return } return @@ -416,6 +419,7 @@ func (client APIIssueAttachmentClient) GetEntityTag(ctx context.Context, resourc result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -525,6 +529,7 @@ func (client APIIssueAttachmentClient) ListByService(ctx context.Context, resour result.iac, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "ListByService", resp, "Failure responding to request") + return } if result.iac.hasNextLink() && result.iac.IsEmpty() { err = result.NextWithContext(ctx) @@ -600,6 +605,7 @@ func (client APIIssueAttachmentClient) listByServiceNextResults(ctx context.Cont result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiissuecomment.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiissuecomment.go index 7f3d92aeba3c..b8d1bbd468d4 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiissuecomment.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiissuecomment.go @@ -103,6 +103,7 @@ func (client APIIssueCommentClient) CreateOrUpdate(ctx context.Context, resource result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -212,6 +213,7 @@ func (client APIIssueCommentClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "Delete", resp, "Failure responding to request") + return } return @@ -313,6 +315,7 @@ func (client APIIssueCommentClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "Get", resp, "Failure responding to request") + return } return @@ -414,6 +417,7 @@ func (client APIIssueCommentClient) GetEntityTag(ctx context.Context, resourceGr result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -523,6 +527,7 @@ func (client APIIssueCommentClient) ListByService(ctx context.Context, resourceG result.icc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "ListByService", resp, "Failure responding to request") + return } if result.icc.hasNextLink() && result.icc.IsEmpty() { err = result.NextWithContext(ctx) @@ -598,6 +603,7 @@ func (client APIIssueCommentClient) listByServiceNextResults(ctx context.Context result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apioperation.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apioperation.go index 01af98bb6fa9..07001e435def 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apioperation.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apioperation.go @@ -107,6 +107,7 @@ func (client APIOperationClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -212,6 +213,7 @@ func (client APIOperationClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Delete", resp, "Failure responding to request") + return } return @@ -309,6 +311,7 @@ func (client APIOperationClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Get", resp, "Failure responding to request") + return } return @@ -406,6 +409,7 @@ func (client APIOperationClient) GetEntityTag(ctx context.Context, resourceGroup result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -513,6 +517,7 @@ func (client APIOperationClient) ListByAPI(ctx context.Context, resourceGroupNam result.oc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "ListByAPI", resp, "Failure responding to request") + return } if result.oc.hasNextLink() && result.oc.IsEmpty() { err = result.NextWithContext(ctx) @@ -590,6 +595,7 @@ func (client APIOperationClient) listByAPINextResults(ctx context.Context, lastR result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } @@ -664,6 +670,7 @@ func (client APIOperationClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apioperationpolicy.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apioperationpolicy.go index b20d4c09c023..58688e91c5c2 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apioperationpolicy.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apioperationpolicy.go @@ -99,6 +99,7 @@ func (client APIOperationPolicyClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -205,6 +206,7 @@ func (client APIOperationPolicyClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -303,6 +305,7 @@ func (client APIOperationPolicyClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -401,6 +404,7 @@ func (client APIOperationPolicyClient) GetEntityTag(ctx context.Context, resourc result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -498,6 +502,7 @@ func (client APIOperationPolicyClient) ListByOperation(ctx context.Context, reso result, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "ListByOperation", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apipolicy.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apipolicy.go index ee4f4c661d93..eebd10af8df9 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apipolicy.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apipolicy.go @@ -92,6 +92,7 @@ func (client APIPolicyClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -191,6 +192,7 @@ func (client APIPolicyClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -282,6 +284,7 @@ func (client APIPolicyClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -373,6 +376,7 @@ func (client APIPolicyClient) GetEntityTag(ctx context.Context, resourceGroupNam result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -463,6 +467,7 @@ func (client APIPolicyClient) ListByAPI(ctx context.Context, resourceGroupName s result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "ListByAPI", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiproduct.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiproduct.go index 5d62073df7d5..07e6f19a5a74 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiproduct.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiproduct.go @@ -99,6 +99,7 @@ func (client APIProductClient) ListByApis(ctx context.Context, resourceGroupName result.pc, err = client.ListByApisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIProductClient", "ListByApis", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -173,6 +174,7 @@ func (client APIProductClient) listByApisNextResults(ctx context.Context, lastRe result, err = client.ListByApisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIProductClient", "listByApisNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apirelease.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apirelease.go index 7a3adea76e0f..eecaf8f03e97 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apirelease.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apirelease.go @@ -93,6 +93,7 @@ func (client APIReleaseClient) Create(ctx context.Context, resourceGroupName str result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Create", resp, "Failure responding to request") + return } return @@ -196,6 +197,7 @@ func (client APIReleaseClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Delete", resp, "Failure responding to request") + return } return @@ -291,6 +293,7 @@ func (client APIReleaseClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Get", resp, "Failure responding to request") + return } return @@ -386,6 +389,7 @@ func (client APIReleaseClient) GetEntityTag(ctx context.Context, resourceGroupNa result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -490,6 +494,7 @@ func (client APIReleaseClient) List(ctx context.Context, resourceGroupName strin result.arc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "List", resp, "Failure responding to request") + return } if result.arc.hasNextLink() && result.arc.IsEmpty() { err = result.NextWithContext(ctx) @@ -564,6 +569,7 @@ func (client APIReleaseClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -636,6 +642,7 @@ func (client APIReleaseClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apirevisions.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apirevisions.go index d7f9da5a1453..819deca1262d 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apirevisions.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apirevisions.go @@ -99,6 +99,7 @@ func (client APIRevisionsClient) List(ctx context.Context, resourceGroupName str result.arc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIRevisionsClient", "List", resp, "Failure responding to request") + return } if result.arc.hasNextLink() && result.arc.IsEmpty() { err = result.NextWithContext(ctx) @@ -173,6 +174,7 @@ func (client APIRevisionsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIRevisionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apischema.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apischema.go index 97504c489a7e..17aa3d027dcc 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apischema.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apischema.go @@ -97,6 +97,7 @@ func (client APISchemaClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -202,6 +203,7 @@ func (client APISchemaClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "Delete", resp, "Failure responding to request") + return } return @@ -301,6 +303,7 @@ func (client APISchemaClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "Get", resp, "Failure responding to request") + return } return @@ -397,6 +400,7 @@ func (client APISchemaClient) GetEntityTag(ctx context.Context, resourceGroupNam result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -500,6 +504,7 @@ func (client APISchemaClient) ListByAPI(ctx context.Context, resourceGroupName s result.sc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "ListByAPI", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -574,6 +579,7 @@ func (client APISchemaClient) listByAPINextResults(ctx context.Context, lastResu result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiversionset.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiversionset.go index d0347e58020f..094b980632a8 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiversionset.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiversionset.go @@ -95,6 +95,7 @@ func (client APIVersionSetClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client APIVersionSetClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Delete", resp, "Failure responding to request") + return } return @@ -281,6 +283,7 @@ func (client APIVersionSetClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client APIVersionSetClient) GetEntityTag(ctx context.Context, resourceGrou result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -464,6 +468,7 @@ func (client APIVersionSetClient) ListByService(ctx context.Context, resourceGro result.avsc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "ListByService", resp, "Failure responding to request") + return } if result.avsc.hasNextLink() && result.avsc.IsEmpty() { err = result.NextWithContext(ctx) @@ -537,6 +542,7 @@ func (client APIVersionSetClient) listByServiceNextResults(ctx context.Context, result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -604,6 +610,7 @@ func (client APIVersionSetClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/authorizationserver.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/authorizationserver.go index 58aff1c193c4..6a0b893d3d44 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/authorizationserver.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/authorizationserver.go @@ -100,6 +100,7 @@ func (client AuthorizationServerClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -197,6 +198,7 @@ func (client AuthorizationServerClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Delete", resp, "Failure responding to request") + return } return @@ -286,6 +288,7 @@ func (client AuthorizationServerClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Get", resp, "Failure responding to request") + return } return @@ -375,6 +378,7 @@ func (client AuthorizationServerClient) GetEntityTag(ctx context.Context, resour result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -472,6 +476,7 @@ func (client AuthorizationServerClient) ListByService(ctx context.Context, resou result.asc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "ListByService", resp, "Failure responding to request") + return } if result.asc.hasNextLink() && result.asc.IsEmpty() { err = result.NextWithContext(ctx) @@ -545,6 +550,7 @@ func (client AuthorizationServerClient) listByServiceNextResults(ctx context.Con result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -612,6 +618,7 @@ func (client AuthorizationServerClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/backend.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/backend.go index 3cada0f2c17a..0f998a852cbd 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/backend.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/backend.go @@ -95,6 +95,7 @@ func (client BackendClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client BackendClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Delete", resp, "Failure responding to request") + return } return @@ -281,6 +283,7 @@ func (client BackendClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client BackendClient) GetEntityTag(ctx context.Context, resourceGroupName result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -468,6 +472,7 @@ func (client BackendClient) ListByService(ctx context.Context, resourceGroupName result.bc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "ListByService", resp, "Failure responding to request") + return } if result.bc.hasNextLink() && result.bc.IsEmpty() { err = result.NextWithContext(ctx) @@ -541,6 +546,7 @@ func (client BackendClient) listByServiceNextResults(ctx context.Context, lastRe result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -607,6 +613,7 @@ func (client BackendClient) Reconnect(ctx context.Context, resourceGroupName str result, err = client.ReconnectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Reconnect", resp, "Failure responding to request") + return } return @@ -703,6 +710,7 @@ func (client BackendClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/cache.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/cache.go index 7e56e3da0b33..1253acfa3537 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/cache.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/cache.go @@ -98,6 +98,7 @@ func (client CacheClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -196,6 +197,7 @@ func (client CacheClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "Delete", resp, "Failure responding to request") + return } return @@ -286,6 +288,7 @@ func (client CacheClient) Get(ctx context.Context, resourceGroupName string, ser result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "Get", resp, "Failure responding to request") + return } return @@ -376,6 +379,7 @@ func (client CacheClient) GetEntityTag(ctx context.Context, resourceGroupName st result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -468,6 +472,7 @@ func (client CacheClient) ListByService(ctx context.Context, resourceGroupName s result.cc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "ListByService", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -538,6 +543,7 @@ func (client CacheClient) listByServiceNextResults(ctx context.Context, lastResu result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -606,6 +612,7 @@ func (client CacheClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/certificate.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/certificate.go index 22fd0fd1eade..4efd3c9366e9 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/certificate.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/certificate.go @@ -94,6 +94,7 @@ func (client CertificateClient) CreateOrUpdate(ctx context.Context, resourceGrou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client CertificateClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "Delete", resp, "Failure responding to request") + return } return @@ -282,6 +284,7 @@ func (client CertificateClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -372,6 +375,7 @@ func (client CertificateClient) GetEntityTag(ctx context.Context, resourceGroupN result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -471,6 +475,7 @@ func (client CertificateClient) ListByService(ctx context.Context, resourceGroup result.cc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "ListByService", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -544,6 +549,7 @@ func (client CertificateClient) listByServiceNextResults(ctx context.Context, la result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/delegationsettings.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/delegationsettings.go index d6b6cb038949..165d0393e174 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/delegationsettings.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/delegationsettings.go @@ -84,6 +84,7 @@ func (client DelegationSettingsClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client DelegationSettingsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -256,6 +258,7 @@ func (client DelegationSettingsClient) GetEntityTag(ctx context.Context, resourc result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -341,6 +344,7 @@ func (client DelegationSettingsClient) Update(ctx context.Context, resourceGroup result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/diagnostic.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/diagnostic.go index 25fe7c6b2586..49c3d218dfbb 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/diagnostic.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/diagnostic.go @@ -126,6 +126,7 @@ func (client DiagnosticClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -223,6 +224,7 @@ func (client DiagnosticClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Delete", resp, "Failure responding to request") + return } return @@ -312,6 +314,7 @@ func (client DiagnosticClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Get", resp, "Failure responding to request") + return } return @@ -401,6 +404,7 @@ func (client DiagnosticClient) GetEntityTag(ctx context.Context, resourceGroupNa result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -497,6 +501,7 @@ func (client DiagnosticClient) ListByService(ctx context.Context, resourceGroupN result.dc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "ListByService", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -570,6 +575,7 @@ func (client DiagnosticClient) listByServiceNextResults(ctx context.Context, las result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -637,6 +643,7 @@ func (client DiagnosticClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/emailtemplate.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/emailtemplate.go index bafe8058e0a2..7f74adbb8433 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/emailtemplate.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/emailtemplate.go @@ -93,6 +93,7 @@ func (client EmailTemplateClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client EmailTemplateClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Delete", resp, "Failure responding to request") + return } return @@ -271,6 +273,7 @@ func (client EmailTemplateClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Get", resp, "Failure responding to request") + return } return @@ -356,6 +359,7 @@ func (client EmailTemplateClient) GetEntityTag(ctx context.Context, resourceGrou result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -452,6 +456,7 @@ func (client EmailTemplateClient) ListByService(ctx context.Context, resourceGro result.etc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "ListByService", resp, "Failure responding to request") + return } if result.etc.hasNextLink() && result.etc.IsEmpty() { err = result.NextWithContext(ctx) @@ -525,6 +530,7 @@ func (client EmailTemplateClient) listByServiceNextResults(ctx context.Context, result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -586,6 +592,7 @@ func (client EmailTemplateClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/group.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/group.go index 4b54d511c8de..507484b119a2 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/group.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/group.go @@ -95,6 +95,7 @@ func (client GroupClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client GroupClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Delete", resp, "Failure responding to request") + return } return @@ -281,6 +283,7 @@ func (client GroupClient) Get(ctx context.Context, resourceGroupName string, ser result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client GroupClient) GetEntityTag(ctx context.Context, resourceGroupName st result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -469,6 +473,7 @@ func (client GroupClient) ListByService(ctx context.Context, resourceGroupName s result.gc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "ListByService", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -542,6 +547,7 @@ func (client GroupClient) listByServiceNextResults(ctx context.Context, lastResu result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -609,6 +615,7 @@ func (client GroupClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/groupuser.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/groupuser.go index 15846cf01c78..c04be3c3ce4c 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/groupuser.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/groupuser.go @@ -91,6 +91,7 @@ func (client GroupUserClient) CheckEntityExists(ctx context.Context, resourceGro result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client GroupUserClient) Create(ctx context.Context, resourceGroupName stri result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "Create", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client GroupUserClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "Delete", resp, "Failure responding to request") + return } return @@ -387,6 +390,7 @@ func (client GroupUserClient) List(ctx context.Context, resourceGroupName string result.uc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "List", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -461,6 +465,7 @@ func (client GroupUserClient) listNextResults(ctx context.Context, lastResults U result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/identityprovider.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/identityprovider.go index 2f58d062e81d..cccbd7cae26f 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/identityprovider.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/identityprovider.go @@ -92,6 +92,7 @@ func (client IdentityProviderClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client IdentityProviderClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Delete", resp, "Failure responding to request") + return } return @@ -270,6 +272,7 @@ func (client IdentityProviderClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +358,7 @@ func (client IdentityProviderClient) GetEntityTag(ctx context.Context, resourceG result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -439,6 +443,7 @@ func (client IdentityProviderClient) ListByService(ctx context.Context, resource result.ipl, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "ListByService", resp, "Failure responding to request") + return } if result.ipl.hasNextLink() && result.ipl.IsEmpty() { err = result.NextWithContext(ctx) @@ -503,6 +508,7 @@ func (client IdentityProviderClient) listByServiceNextResults(ctx context.Contex result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -566,6 +572,7 @@ func (client IdentityProviderClient) Update(ctx context.Context, resourceGroupNa result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/issue.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/issue.go index 0d4b64e5bb3b..0045d4c63574 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/issue.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/issue.go @@ -86,6 +86,7 @@ func (client IssueClient) Get(ctx context.Context, resourceGroupName string, ser result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IssueClient", "Get", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client IssueClient) ListByService(ctx context.Context, resourceGroupName s result.ic, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IssueClient", "ListByService", resp, "Failure responding to request") + return } if result.ic.hasNextLink() && result.ic.IsEmpty() { err = result.NextWithContext(ctx) @@ -261,6 +263,7 @@ func (client IssueClient) listByServiceNextResults(ctx context.Context, lastResu result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IssueClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/logger.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/logger.go index a46d4a8c5c11..c31c38c0d38a 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/logger.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/logger.go @@ -93,6 +93,7 @@ func (client LoggerClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client LoggerClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Delete", resp, "Failure responding to request") + return } return @@ -281,6 +283,7 @@ func (client LoggerClient) Get(ctx context.Context, resourceGroupName string, se result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +372,7 @@ func (client LoggerClient) GetEntityTag(ctx context.Context, resourceGroupName s result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -468,6 +472,7 @@ func (client LoggerClient) ListByService(ctx context.Context, resourceGroupName result.lc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "ListByService", resp, "Failure responding to request") + return } if result.lc.hasNextLink() && result.lc.IsEmpty() { err = result.NextWithContext(ctx) @@ -541,6 +546,7 @@ func (client LoggerClient) listByServiceNextResults(ctx context.Context, lastRes result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -607,6 +613,7 @@ func (client LoggerClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/networkstatus.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/networkstatus.go index 06222a50fdc1..eb3d4719f342 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/networkstatus.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/networkstatus.go @@ -86,6 +86,7 @@ func (client NetworkStatusClient) ListByLocation(ctx context.Context, resourceGr result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NetworkStatusClient", "ListByLocation", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client NetworkStatusClient) ListByService(ctx context.Context, resourceGro result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NetworkStatusClient", "ListByService", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/notification.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/notification.go index 6d2ee4b947f0..35edb09acfe2 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/notification.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/notification.go @@ -83,6 +83,7 @@ func (client NotificationClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client NotificationClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "Get", resp, "Failure responding to request") + return } return @@ -265,6 +267,7 @@ func (client NotificationClient) ListByService(ctx context.Context, resourceGrou result.nc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "ListByService", resp, "Failure responding to request") + return } if result.nc.hasNextLink() && result.nc.IsEmpty() { err = result.NextWithContext(ctx) @@ -335,6 +338,7 @@ func (client NotificationClient) listByServiceNextResults(ctx context.Context, l result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/notificationrecipientemail.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/notificationrecipientemail.go index 553844a22b4e..1b3e6ac82c6d 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/notificationrecipientemail.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/notificationrecipientemail.go @@ -84,6 +84,7 @@ func (client NotificationRecipientEmailClient) CheckEntityExists(ctx context.Con result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client NotificationRecipientEmailClient) CreateOrUpdate(ctx context.Contex result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -257,6 +259,7 @@ func (client NotificationRecipientEmailClient) Delete(ctx context.Context, resou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "Delete", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client NotificationRecipientEmailClient) ListByNotification(ctx context.Co result, err = client.ListByNotificationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "ListByNotification", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/notificationrecipientuser.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/notificationrecipientuser.go index b7f6ce8e5e07..cb851b2dc305 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/notificationrecipientuser.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/notificationrecipientuser.go @@ -88,6 +88,7 @@ func (client NotificationRecipientUserClient) CheckEntityExists(ctx context.Cont result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client NotificationRecipientUserClient) CreateOrUpdate(ctx context.Context result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -269,6 +271,7 @@ func (client NotificationRecipientUserClient) Delete(ctx context.Context, resour result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "Delete", resp, "Failure responding to request") + return } return @@ -354,6 +357,7 @@ func (client NotificationRecipientUserClient) ListByNotification(ctx context.Con result, err = client.ListByNotificationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "ListByNotification", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/openidconnectprovider.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/openidconnectprovider.go index 2a573f035f1f..55321a99f2c0 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/openidconnectprovider.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/openidconnectprovider.go @@ -95,6 +95,7 @@ func (client OpenIDConnectProviderClient) CreateOrUpdate(ctx context.Context, re result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -191,6 +192,7 @@ func (client OpenIDConnectProviderClient) Delete(ctx context.Context, resourceGr result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Delete", resp, "Failure responding to request") + return } return @@ -279,6 +281,7 @@ func (client OpenIDConnectProviderClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Get", resp, "Failure responding to request") + return } return @@ -367,6 +370,7 @@ func (client OpenIDConnectProviderClient) GetEntityTag(ctx context.Context, reso result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -464,6 +468,7 @@ func (client OpenIDConnectProviderClient) ListByService(ctx context.Context, res result.oicpc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "ListByService", resp, "Failure responding to request") + return } if result.oicpc.hasNextLink() && result.oicpc.IsEmpty() { err = result.NextWithContext(ctx) @@ -537,6 +542,7 @@ func (client OpenIDConnectProviderClient) listByServiceNextResults(ctx context.C result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -603,6 +609,7 @@ func (client OpenIDConnectProviderClient) Update(ctx context.Context, resourceGr result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/operation.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/operation.go index 570e3726d808..5a9f27ef70ff 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/operation.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/operation.go @@ -106,6 +106,7 @@ func (client OperationClient) ListByTags(ctx context.Context, resourceGroupName result.trc, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OperationClient", "ListByTags", resp, "Failure responding to request") + return } if result.trc.hasNextLink() && result.trc.IsEmpty() { err = result.NextWithContext(ctx) @@ -183,6 +184,7 @@ func (client OperationClient) listByTagsNextResults(ctx context.Context, lastRes result, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OperationClient", "listByTagsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/operations.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/operations.go index 8d4ee809da0b..08fe574513b4 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/operations.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/policy.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/policy.go index d84c0f0c57d9..b3bf20a01423 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/policy.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/policy.go @@ -86,6 +86,7 @@ func (client PolicyClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client PolicyClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -262,6 +264,7 @@ func (client PolicyClient) Get(ctx context.Context, resourceGroupName string, se result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +349,7 @@ func (client PolicyClient) GetEntityTag(ctx context.Context, resourceGroupName s result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -429,6 +433,7 @@ func (client PolicyClient) ListByService(ctx context.Context, resourceGroupName result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "ListByService", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/policysnippets.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/policysnippets.go index a24b756d7c9b..2aad72c04a1c 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/policysnippets.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/policysnippets.go @@ -82,6 +82,7 @@ func (client PolicySnippetsClient) ListByService(ctx context.Context, resourceGr result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicySnippetsClient", "ListByService", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/product.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/product.go index f2bf96ef81da..787cae5bbb2e 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/product.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/product.go @@ -95,6 +95,7 @@ func (client ProductClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -193,6 +194,7 @@ func (client ProductClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Delete", resp, "Failure responding to request") + return } return @@ -285,6 +287,7 @@ func (client ProductClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Get", resp, "Failure responding to request") + return } return @@ -374,6 +377,7 @@ func (client ProductClient) GetEntityTag(ctx context.Context, resourceGroupName result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -478,6 +482,7 @@ func (client ProductClient) ListByService(ctx context.Context, resourceGroupName result.pc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "ListByService", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -557,6 +562,7 @@ func (client ProductClient) listByServiceNextResults(ctx context.Context, lastRe result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -634,6 +640,7 @@ func (client ProductClient) ListByTags(ctx context.Context, resourceGroupName st result.trc, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "ListByTags", resp, "Failure responding to request") + return } if result.trc.hasNextLink() && result.trc.IsEmpty() { err = result.NextWithContext(ctx) @@ -710,6 +717,7 @@ func (client ProductClient) listByTagsNextResults(ctx context.Context, lastResul result, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "listByTagsNextResults", resp, "Failure responding to next results request") + return } return } @@ -777,6 +785,7 @@ func (client ProductClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/productapi.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/productapi.go index 9e3a0460f00d..dccd1b623541 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/productapi.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/productapi.go @@ -92,6 +92,7 @@ func (client ProductAPIClient) CheckEntityExists(ctx context.Context, resourceGr result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -187,6 +188,7 @@ func (client ProductAPIClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -283,6 +285,7 @@ func (client ProductAPIClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "Delete", resp, "Failure responding to request") + return } return @@ -389,6 +392,7 @@ func (client ProductAPIClient) ListByProduct(ctx context.Context, resourceGroupN result.ac, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "ListByProduct", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -463,6 +467,7 @@ func (client ProductAPIClient) listByProductNextResults(ctx context.Context, las result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/productgroup.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/productgroup.go index 826f192e6f24..47e223efdba7 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/productgroup.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/productgroup.go @@ -91,6 +91,7 @@ func (client ProductGroupClient) CheckEntityExists(ctx context.Context, resource result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client ProductGroupClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client ProductGroupClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "Delete", resp, "Failure responding to request") + return } return @@ -384,6 +387,7 @@ func (client ProductGroupClient) ListByProduct(ctx context.Context, resourceGrou result.gc, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "ListByProduct", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -458,6 +462,7 @@ func (client ProductGroupClient) listByProductNextResults(ctx context.Context, l result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/productpolicy.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/productpolicy.go index 143ee61fafa8..db9430aec2e2 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/productpolicy.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/productpolicy.go @@ -91,6 +91,7 @@ func (client ProductPolicyClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -189,6 +190,7 @@ func (client ProductPolicyClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -279,6 +281,7 @@ func (client ProductPolicyClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +372,7 @@ func (client ProductPolicyClient) GetEntityTag(ctx context.Context, resourceGrou result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -458,6 +462,7 @@ func (client ProductPolicyClient) ListByProduct(ctx context.Context, resourceGro result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "ListByProduct", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/productsubscriptions.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/productsubscriptions.go index 7abdc735b68f..0955b55d8d48 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/productsubscriptions.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/productsubscriptions.go @@ -108,6 +108,7 @@ func (client ProductSubscriptionsClient) List(ctx context.Context, resourceGroup result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductSubscriptionsClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -182,6 +183,7 @@ func (client ProductSubscriptionsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductSubscriptionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/property.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/property.go index 9d6a33cead07..33e7944a4ca7 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/property.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/property.go @@ -99,6 +99,7 @@ func (client PropertyClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -195,6 +196,7 @@ func (client PropertyClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Delete", resp, "Failure responding to request") + return } return @@ -283,6 +285,7 @@ func (client PropertyClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Get", resp, "Failure responding to request") + return } return @@ -371,6 +374,7 @@ func (client PropertyClient) GetEntityTag(ctx context.Context, resourceGroupName result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -468,6 +472,7 @@ func (client PropertyClient) ListByService(ctx context.Context, resourceGroupNam result.pc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "ListByService", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -541,6 +546,7 @@ func (client PropertyClient) listByServiceNextResults(ctx context.Context, lastR result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -607,6 +613,7 @@ func (client PropertyClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/quotabycounterkeys.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/quotabycounterkeys.go index 523eef5130b6..ae2bd3f99a7d 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/quotabycounterkeys.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/quotabycounterkeys.go @@ -87,6 +87,7 @@ func (client QuotaByCounterKeysClient) ListByService(ctx context.Context, resour result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByCounterKeysClient", "ListByService", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client QuotaByCounterKeysClient) Update(ctx context.Context, resourceGroup result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByCounterKeysClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/quotabyperiodkeys.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/quotabyperiodkeys.go index 6ad4d276cb60..b2008f325979 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/quotabyperiodkeys.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/quotabyperiodkeys.go @@ -88,6 +88,7 @@ func (client QuotaByPeriodKeysClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByPeriodKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client QuotaByPeriodKeysClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByPeriodKeysClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/region.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/region.go index 7d3857bbf108..0bc418e153b1 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/region.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/region.go @@ -82,6 +82,7 @@ func (client RegionClient) ListByService(ctx context.Context, resourceGroupName result.rlr, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.RegionClient", "ListByService", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client RegionClient) listByServiceNextResults(ctx context.Context, lastRes result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.RegionClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/reports.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/reports.go index b7c8882143c0..34b10dc9c00b 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/reports.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/reports.go @@ -91,6 +91,7 @@ func (client ReportsClient) ListByAPI(ctx context.Context, resourceGroupName str result.rc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByAPI", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -162,6 +163,7 @@ func (client ReportsClient) listByAPINextResults(ctx context.Context, lastResult result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } @@ -231,6 +233,7 @@ func (client ReportsClient) ListByGeo(ctx context.Context, resourceGroupName str result.rc, err = client.ListByGeoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByGeo", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -304,6 +307,7 @@ func (client ReportsClient) listByGeoNextResults(ctx context.Context, lastResult result, err = client.ListByGeoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByGeoNextResults", resp, "Failure responding to next results request") + return } return } @@ -373,6 +377,7 @@ func (client ReportsClient) ListByOperation(ctx context.Context, resourceGroupNa result.rc, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByOperation", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -444,6 +449,7 @@ func (client ReportsClient) listByOperationNextResults(ctx context.Context, last result, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByOperationNextResults", resp, "Failure responding to next results request") + return } return } @@ -513,6 +519,7 @@ func (client ReportsClient) ListByProduct(ctx context.Context, resourceGroupName result.rc, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByProduct", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -584,6 +591,7 @@ func (client ReportsClient) listByProductNextResults(ctx context.Context, lastRe result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } @@ -652,6 +660,7 @@ func (client ReportsClient) ListByRequest(ctx context.Context, resourceGroupName result, err = client.ListByRequestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByRequest", resp, "Failure responding to request") + return } return @@ -752,6 +761,7 @@ func (client ReportsClient) ListBySubscription(ctx context.Context, resourceGrou result.rc, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -825,6 +835,7 @@ func (client ReportsClient) listBySubscriptionNextResults(ctx context.Context, l result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -897,6 +908,7 @@ func (client ReportsClient) ListByTime(ctx context.Context, resourceGroupName st result.rc, err = client.ListByTimeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByTime", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -971,6 +983,7 @@ func (client ReportsClient) listByTimeNextResults(ctx context.Context, lastResul result, err = client.ListByTimeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByTimeNextResults", resp, "Failure responding to next results request") + return } return } @@ -1040,6 +1053,7 @@ func (client ReportsClient) ListByUser(ctx context.Context, resourceGroupName st result.rc, err = client.ListByUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByUser", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1111,6 +1125,7 @@ func (client ReportsClient) listByUserNextResults(ctx context.Context, lastResul result, err = client.ListByUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByUserNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/service.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/service.go index 76bf3b05158f..327933656cf7 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/service.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/service.go @@ -262,6 +262,7 @@ func (client ServiceClient) CheckNameAvailability(ctx context.Context, parameter result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -527,6 +528,7 @@ func (client ServiceClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "Get", resp, "Failure responding to request") + return } return @@ -610,6 +612,7 @@ func (client ServiceClient) GetSsoToken(ctx context.Context, resourceGroupName s result, err = client.GetSsoTokenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "GetSsoToken", resp, "Failure responding to request") + return } return @@ -683,6 +686,7 @@ func (client ServiceClient) List(ctx context.Context) (result ServiceListResultP result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -745,6 +749,7 @@ func (client ServiceClient) listNextResults(ctx context.Context, lastResults Ser result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -796,6 +801,7 @@ func (client ServiceClient) ListByResourceGroup(ctx context.Context, resourceGro result.slr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -859,6 +865,7 @@ func (client ServiceClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1190,6 +1197,7 @@ func (client ServiceClient) UploadCertificate(ctx context.Context, resourceGroup result, err = client.UploadCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "UploadCertificate", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/serviceskus.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/serviceskus.go index 4ff0635c7049..4f1d4f512c5b 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/serviceskus.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/serviceskus.go @@ -82,6 +82,7 @@ func (client ServiceSkusClient) ListAvailableServiceSkus(ctx context.Context, re result.rsr, err = client.ListAvailableServiceSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceSkusClient", "ListAvailableServiceSkus", resp, "Failure responding to request") + return } if result.rsr.hasNextLink() && result.rsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client ServiceSkusClient) listAvailableServiceSkusNextResults(ctx context. result, err = client.ListAvailableServiceSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceSkusClient", "listAvailableServiceSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/signinsettings.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/signinsettings.go index c8e771f00789..250505cf518b 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/signinsettings.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/signinsettings.go @@ -83,6 +83,7 @@ func (client SignInSettingsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client SignInSettingsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -255,6 +257,7 @@ func (client SignInSettingsClient) GetEntityTag(ctx context.Context, resourceGro result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -340,6 +343,7 @@ func (client SignInSettingsClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/signupsettings.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/signupsettings.go index 43f9139f93ef..f85ee4f68dd1 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/signupsettings.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/signupsettings.go @@ -83,6 +83,7 @@ func (client SignUpSettingsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client SignUpSettingsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -255,6 +257,7 @@ func (client SignUpSettingsClient) GetEntityTag(ctx context.Context, resourceGro result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -340,6 +343,7 @@ func (client SignUpSettingsClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/subscription.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/subscription.go index 367413a914b3..708c08051f2a 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/subscription.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/subscription.go @@ -107,6 +107,7 @@ func (client SubscriptionClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -207,6 +208,7 @@ func (client SubscriptionClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Delete", resp, "Failure responding to request") + return } return @@ -296,6 +298,7 @@ func (client SubscriptionClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Get", resp, "Failure responding to request") + return } return @@ -385,6 +388,7 @@ func (client SubscriptionClient) GetEntityTag(ctx context.Context, resourceGroup result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -489,6 +493,7 @@ func (client SubscriptionClient) List(ctx context.Context, resourceGroupName str result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -562,6 +567,7 @@ func (client SubscriptionClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -626,6 +632,7 @@ func (client SubscriptionClient) RegeneratePrimaryKey(ctx context.Context, resou result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -714,6 +721,7 @@ func (client SubscriptionClient) RegenerateSecondaryKey(ctx context.Context, res result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return @@ -808,6 +816,7 @@ func (client SubscriptionClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/tag.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/tag.go index 32af145f0628..a62f8ebc74cb 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/tag.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/tag.go @@ -92,6 +92,7 @@ func (client TagClient) AssignToAPI(ctx context.Context, resourceGroupName strin result, err = client.AssignToAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToAPI", resp, "Failure responding to request") + return } return @@ -194,6 +195,7 @@ func (client TagClient) AssignToOperation(ctx context.Context, resourceGroupName result, err = client.AssignToOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToOperation", resp, "Failure responding to request") + return } return @@ -290,6 +292,7 @@ func (client TagClient) AssignToProduct(ctx context.Context, resourceGroupName s result, err = client.AssignToProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToProduct", resp, "Failure responding to request") + return } return @@ -389,6 +392,7 @@ func (client TagClient) CreateOrUpdate(ctx context.Context, resourceGroupName st result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -486,6 +490,7 @@ func (client TagClient) Delete(ctx context.Context, resourceGroupName string, se result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Delete", resp, "Failure responding to request") + return } return @@ -581,6 +586,7 @@ func (client TagClient) DetachFromAPI(ctx context.Context, resourceGroupName str result, err = client.DetachFromAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromAPI", resp, "Failure responding to request") + return } return @@ -682,6 +688,7 @@ func (client TagClient) DetachFromOperation(ctx context.Context, resourceGroupNa result, err = client.DetachFromOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromOperation", resp, "Failure responding to request") + return } return @@ -777,6 +784,7 @@ func (client TagClient) DetachFromProduct(ctx context.Context, resourceGroupName result, err = client.DetachFromProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromProduct", resp, "Failure responding to request") + return } return @@ -866,6 +874,7 @@ func (client TagClient) Get(ctx context.Context, resourceGroupName string, servi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Get", resp, "Failure responding to request") + return } return @@ -961,6 +970,7 @@ func (client TagClient) GetByAPI(ctx context.Context, resourceGroupName string, result, err = client.GetByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByAPI", resp, "Failure responding to request") + return } return @@ -1063,6 +1073,7 @@ func (client TagClient) GetByOperation(ctx context.Context, resourceGroupName st result, err = client.GetByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByOperation", resp, "Failure responding to request") + return } return @@ -1159,6 +1170,7 @@ func (client TagClient) GetByProduct(ctx context.Context, resourceGroupName stri result, err = client.GetByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByProduct", resp, "Failure responding to request") + return } return @@ -1249,6 +1261,7 @@ func (client TagClient) GetEntityState(ctx context.Context, resourceGroupName st result, err = client.GetEntityStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityState", resp, "Failure responding to request") + return } return @@ -1343,6 +1356,7 @@ func (client TagClient) GetEntityStateByAPI(ctx context.Context, resourceGroupNa result, err = client.GetEntityStateByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByAPI", resp, "Failure responding to request") + return } return @@ -1444,6 +1458,7 @@ func (client TagClient) GetEntityStateByOperation(ctx context.Context, resourceG result, err = client.GetEntityStateByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByOperation", resp, "Failure responding to request") + return } return @@ -1539,6 +1554,7 @@ func (client TagClient) GetEntityStateByProduct(ctx context.Context, resourceGro result, err = client.GetEntityStateByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByProduct", resp, "Failure responding to request") + return } return @@ -1643,6 +1659,7 @@ func (client TagClient) ListByAPI(ctx context.Context, resourceGroupName string, result.tc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByAPI", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1717,6 +1734,7 @@ func (client TagClient) listByAPINextResults(ctx context.Context, lastResults Ta result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } @@ -1802,6 +1820,7 @@ func (client TagClient) ListByOperation(ctx context.Context, resourceGroupName s result.tc, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByOperation", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1877,6 +1896,7 @@ func (client TagClient) listByOperationNextResults(ctx context.Context, lastResu result, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByOperationNextResults", resp, "Failure responding to next results request") + return } return } @@ -1955,6 +1975,7 @@ func (client TagClient) ListByProduct(ctx context.Context, resourceGroupName str result.tc, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByProduct", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2029,6 +2050,7 @@ func (client TagClient) listByProductNextResults(ctx context.Context, lastResult result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } @@ -2103,6 +2125,7 @@ func (client TagClient) ListByService(ctx context.Context, resourceGroupName str result.tc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByService", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2179,6 +2202,7 @@ func (client TagClient) listByServiceNextResults(ctx context.Context, lastResult result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -2246,6 +2270,7 @@ func (client TagClient) Update(ctx context.Context, resourceGroupName string, se result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/tagdescription.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/tagdescription.go index 0bde3de5c1f0..439045b6f23b 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/tagdescription.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/tagdescription.go @@ -99,6 +99,7 @@ func (client TagDescriptionClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -203,6 +204,7 @@ func (client TagDescriptionClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "Delete", resp, "Failure responding to request") + return } return @@ -299,6 +301,7 @@ func (client TagDescriptionClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "Get", resp, "Failure responding to request") + return } return @@ -395,6 +398,7 @@ func (client TagDescriptionClient) GetEntityState(ctx context.Context, resourceG result, err = client.GetEntityStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "GetEntityState", resp, "Failure responding to request") + return } return @@ -500,6 +504,7 @@ func (client TagDescriptionClient) ListByAPI(ctx context.Context, resourceGroupN result.tdc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "ListByAPI", resp, "Failure responding to request") + return } if result.tdc.hasNextLink() && result.tdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -574,6 +579,7 @@ func (client TagDescriptionClient) listByAPINextResults(ctx context.Context, las result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/tagresource.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/tagresource.go index a6d6c88b156a..b6b847755c69 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/tagresource.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/tagresource.go @@ -106,6 +106,7 @@ func (client TagResourceClient) ListByService(ctx context.Context, resourceGroup result.trc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagResourceClient", "ListByService", resp, "Failure responding to request") + return } if result.trc.hasNextLink() && result.trc.IsEmpty() { err = result.NextWithContext(ctx) @@ -179,6 +180,7 @@ func (client TagResourceClient) listByServiceNextResults(ctx context.Context, la result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagResourceClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/tenantaccess.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/tenantaccess.go index bb5da57299a0..4f41bbad2fca 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/tenantaccess.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/tenantaccess.go @@ -81,6 +81,7 @@ func (client TenantAccessClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "Get", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client TenantAccessClient) GetEntityTag(ctx context.Context, resourceGroup result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client TenantAccessClient) RegeneratePrimaryKey(ctx context.Context, resou result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -331,6 +334,7 @@ func (client TenantAccessClient) RegenerateSecondaryKey(ctx context.Context, res result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return @@ -417,6 +421,7 @@ func (client TenantAccessClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/tenantaccessgit.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/tenantaccessgit.go index fbf2eeef7995..5b17940d32b6 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/tenantaccessgit.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/tenantaccessgit.go @@ -81,6 +81,7 @@ func (client TenantAccessGitClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "Get", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client TenantAccessGitClient) RegeneratePrimaryKey(ctx context.Context, re result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client TenantAccessGitClient) RegenerateSecondaryKey(ctx context.Context, result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/tenantconfiguration.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/tenantconfiguration.go index 9a3d0e4fa43d..c674fa95a04f 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/tenantconfiguration.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/tenantconfiguration.go @@ -173,6 +173,7 @@ func (client TenantConfigurationClient) GetSyncState(ctx context.Context, resour result, err = client.GetSyncStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationClient", "GetSyncState", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/user.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/user.go index 34089ed5d695..267e1726b60a 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/user.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/user.go @@ -103,6 +103,7 @@ func (client UserClient) CreateOrUpdate(ctx context.Context, resourceGroupName s result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -202,6 +203,7 @@ func (client UserClient) Delete(ctx context.Context, resourceGroupName string, s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Delete", resp, "Failure responding to request") + return } return @@ -298,6 +300,7 @@ func (client UserClient) GenerateSsoURL(ctx context.Context, resourceGroupName s result, err = client.GenerateSsoURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GenerateSsoURL", resp, "Failure responding to request") + return } return @@ -387,6 +390,7 @@ func (client UserClient) Get(ctx context.Context, resourceGroupName string, serv result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Get", resp, "Failure responding to request") + return } return @@ -476,6 +480,7 @@ func (client UserClient) GetEntityTag(ctx context.Context, resourceGroupName str result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -567,6 +572,7 @@ func (client UserClient) GetSharedAccessToken(ctx context.Context, resourceGroup result, err = client.GetSharedAccessTokenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GetSharedAccessToken", resp, "Failure responding to request") + return } return @@ -673,6 +679,7 @@ func (client UserClient) ListByService(ctx context.Context, resourceGroupName st result.uc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "ListByService", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -749,6 +756,7 @@ func (client UserClient) listByServiceNextResults(ctx context.Context, lastResul result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -816,6 +824,7 @@ func (client UserClient) Update(ctx context.Context, resourceGroupName string, s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/userconfirmationpassword.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/userconfirmationpassword.go index 5352629ef9b7..e9e2d9b00799 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/userconfirmationpassword.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/userconfirmationpassword.go @@ -87,6 +87,7 @@ func (client UserConfirmationPasswordClient) SendMethod(ctx context.Context, res result, err = client.SendMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserConfirmationPasswordClient", "SendMethod", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/usergroup.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/usergroup.go index f5a19ceee151..e88d53477e5e 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/usergroup.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/usergroup.go @@ -101,6 +101,7 @@ func (client UserGroupClient) List(ctx context.Context, resourceGroupName string result.gc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserGroupClient", "List", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -175,6 +176,7 @@ func (client UserGroupClient) listNextResults(ctx context.Context, lastResults G result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserGroupClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/useridentities.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/useridentities.go index 43593eaa42a7..836f13872ae6 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/useridentities.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/useridentities.go @@ -87,6 +87,7 @@ func (client UserIdentitiesClient) List(ctx context.Context, resourceGroupName s result.uic, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserIdentitiesClient", "List", resp, "Failure responding to request") + return } if result.uic.hasNextLink() && result.uic.IsEmpty() { err = result.NextWithContext(ctx) @@ -152,6 +153,7 @@ func (client UserIdentitiesClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserIdentitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/usersubscription.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/usersubscription.go index 3cb125a66e7c..7c3be842d105 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/usersubscription.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/usersubscription.go @@ -106,6 +106,7 @@ func (client UserSubscriptionClient) List(ctx context.Context, resourceGroupName result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserSubscriptionClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -180,6 +181,7 @@ func (client UserSubscriptionClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserSubscriptionClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/api.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/api.go index a767a25696d1..49ec2281b357 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/api.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/api.go @@ -188,6 +188,7 @@ func (client APIClient) Delete(ctx context.Context, resourceGroupName string, se result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Delete", resp, "Failure responding to request") + return } return @@ -281,6 +282,7 @@ func (client APIClient) Get(ctx context.Context, resourceGroupName string, servi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Get", resp, "Failure responding to request") + return } return @@ -371,6 +373,7 @@ func (client APIClient) GetEntityTag(ctx context.Context, resourceGroupName stri result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -472,6 +475,7 @@ func (client APIClient) ListByService(ctx context.Context, resourceGroupName str result.ac, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "ListByService", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -551,6 +555,7 @@ func (client APIClient) listByServiceNextResults(ctx context.Context, lastResult result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +635,7 @@ func (client APIClient) ListByTags(ctx context.Context, resourceGroupName string result.trc, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "ListByTags", resp, "Failure responding to request") + return } if result.trc.hasNextLink() && result.trc.IsEmpty() { err = result.NextWithContext(ctx) @@ -706,6 +712,7 @@ func (client APIClient) listByTagsNextResults(ctx context.Context, lastResults T result, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "listByTagsNextResults", resp, "Failure responding to next results request") + return } return } @@ -774,6 +781,7 @@ func (client APIClient) Update(ctx context.Context, resourceGroupName string, se result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apidiagnostic.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apidiagnostic.go index b28f84813d0e..424705c15607 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apidiagnostic.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apidiagnostic.go @@ -130,6 +130,7 @@ func (client APIDiagnosticClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -232,6 +233,7 @@ func (client APIDiagnosticClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Delete", resp, "Failure responding to request") + return } return @@ -326,6 +328,7 @@ func (client APIDiagnosticClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Get", resp, "Failure responding to request") + return } return @@ -420,6 +423,7 @@ func (client APIDiagnosticClient) GetEntityTag(ctx context.Context, resourceGrou result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -520,6 +524,7 @@ func (client APIDiagnosticClient) ListByService(ctx context.Context, resourceGro result.dc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "ListByService", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -594,6 +599,7 @@ func (client APIDiagnosticClient) listByServiceNextResults(ctx context.Context, result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -665,6 +671,7 @@ func (client APIDiagnosticClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apiexport.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apiexport.go index a461e3b00a75..d4768fea1b72 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apiexport.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apiexport.go @@ -90,6 +90,7 @@ func (client APIExportClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIExportClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apiissue.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apiissue.go index 5a76ee00de01..37544c0b1d77 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apiissue.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apiissue.go @@ -98,6 +98,7 @@ func (client APIIssueClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -200,6 +201,7 @@ func (client APIIssueClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Delete", resp, "Failure responding to request") + return } return @@ -295,6 +297,7 @@ func (client APIIssueClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Get", resp, "Failure responding to request") + return } return @@ -392,6 +395,7 @@ func (client APIIssueClient) GetEntityTag(ctx context.Context, resourceGroupName result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -494,6 +498,7 @@ func (client APIIssueClient) ListByService(ctx context.Context, resourceGroupNam result.ic, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "ListByService", resp, "Failure responding to request") + return } if result.ic.hasNextLink() && result.ic.IsEmpty() { err = result.NextWithContext(ctx) @@ -571,6 +576,7 @@ func (client APIIssueClient) listByServiceNextResults(ctx context.Context, lastR result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -642,6 +648,7 @@ func (client APIIssueClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apiissueattachment.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apiissueattachment.go index 14c3e599499c..1a0997550f76 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apiissueattachment.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apiissueattachment.go @@ -104,6 +104,7 @@ func (client APIIssueAttachmentClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -212,6 +213,7 @@ func (client APIIssueAttachmentClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "Delete", resp, "Failure responding to request") + return } return @@ -312,6 +314,7 @@ func (client APIIssueAttachmentClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "Get", resp, "Failure responding to request") + return } return @@ -412,6 +415,7 @@ func (client APIIssueAttachmentClient) GetEntityTag(ctx context.Context, resourc result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -519,6 +523,7 @@ func (client APIIssueAttachmentClient) ListByService(ctx context.Context, resour result.iac, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "ListByService", resp, "Failure responding to request") + return } if result.iac.hasNextLink() && result.iac.IsEmpty() { err = result.NextWithContext(ctx) @@ -594,6 +599,7 @@ func (client APIIssueAttachmentClient) listByServiceNextResults(ctx context.Cont result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apiissuecomment.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apiissuecomment.go index 3407e5258655..be27aeefa276 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apiissuecomment.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apiissuecomment.go @@ -102,6 +102,7 @@ func (client APIIssueCommentClient) CreateOrUpdate(ctx context.Context, resource result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -210,6 +211,7 @@ func (client APIIssueCommentClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "Delete", resp, "Failure responding to request") + return } return @@ -310,6 +312,7 @@ func (client APIIssueCommentClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "Get", resp, "Failure responding to request") + return } return @@ -410,6 +413,7 @@ func (client APIIssueCommentClient) GetEntityTag(ctx context.Context, resourceGr result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -517,6 +521,7 @@ func (client APIIssueCommentClient) ListByService(ctx context.Context, resourceG result.icc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "ListByService", resp, "Failure responding to request") + return } if result.icc.hasNextLink() && result.icc.IsEmpty() { err = result.NextWithContext(ctx) @@ -592,6 +597,7 @@ func (client APIIssueCommentClient) listByServiceNextResults(ctx context.Context result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apioperation.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apioperation.go index f651b2228614..d11f152e1330 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apioperation.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apioperation.go @@ -106,6 +106,7 @@ func (client APIOperationClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -210,6 +211,7 @@ func (client APIOperationClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Delete", resp, "Failure responding to request") + return } return @@ -306,6 +308,7 @@ func (client APIOperationClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Get", resp, "Failure responding to request") + return } return @@ -402,6 +405,7 @@ func (client APIOperationClient) GetEntityTag(ctx context.Context, resourceGroup result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -509,6 +513,7 @@ func (client APIOperationClient) ListByAPI(ctx context.Context, resourceGroupNam result.oc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "ListByAPI", resp, "Failure responding to request") + return } if result.oc.hasNextLink() && result.oc.IsEmpty() { err = result.NextWithContext(ctx) @@ -586,6 +591,7 @@ func (client APIOperationClient) listByAPINextResults(ctx context.Context, lastR result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } @@ -659,6 +665,7 @@ func (client APIOperationClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apioperationpolicy.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apioperationpolicy.go index fdaf66f968b6..1145942c095e 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apioperationpolicy.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apioperationpolicy.go @@ -98,6 +98,7 @@ func (client APIOperationPolicyClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -203,6 +204,7 @@ func (client APIOperationPolicyClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -301,6 +303,7 @@ func (client APIOperationPolicyClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -403,6 +406,7 @@ func (client APIOperationPolicyClient) GetEntityTag(ctx context.Context, resourc result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -499,6 +503,7 @@ func (client APIOperationPolicyClient) ListByOperation(ctx context.Context, reso result, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "ListByOperation", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apipolicy.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apipolicy.go index 1e13e92497d3..cfb2792c49a9 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apipolicy.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apipolicy.go @@ -92,6 +92,7 @@ func (client APIPolicyClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -191,6 +192,7 @@ func (client APIPolicyClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -283,6 +285,7 @@ func (client APIPolicyClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -379,6 +382,7 @@ func (client APIPolicyClient) GetEntityTag(ctx context.Context, resourceGroupNam result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -469,6 +473,7 @@ func (client APIPolicyClient) ListByAPI(ctx context.Context, resourceGroupName s result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "ListByAPI", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apiproduct.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apiproduct.go index 54dcb4b5ac36..fccfd2e6360c 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apiproduct.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apiproduct.go @@ -97,6 +97,7 @@ func (client APIProductClient) ListByApis(ctx context.Context, resourceGroupName result.pc, err = client.ListByApisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIProductClient", "ListByApis", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -171,6 +172,7 @@ func (client APIProductClient) listByApisNextResults(ctx context.Context, lastRe result, err = client.ListByApisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIProductClient", "listByApisNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apirelease.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apirelease.go index 4cb57e83d3f8..52d2c78a076f 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apirelease.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apirelease.go @@ -92,6 +92,7 @@ func (client APIReleaseClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -194,6 +195,7 @@ func (client APIReleaseClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Delete", resp, "Failure responding to request") + return } return @@ -288,6 +290,7 @@ func (client APIReleaseClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Get", resp, "Failure responding to request") + return } return @@ -382,6 +385,7 @@ func (client APIReleaseClient) GetEntityTag(ctx context.Context, resourceGroupNa result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -484,6 +488,7 @@ func (client APIReleaseClient) ListByService(ctx context.Context, resourceGroupN result.arc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "ListByService", resp, "Failure responding to request") + return } if result.arc.hasNextLink() && result.arc.IsEmpty() { err = result.NextWithContext(ctx) @@ -558,6 +563,7 @@ func (client APIReleaseClient) listByServiceNextResults(ctx context.Context, las result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -629,6 +635,7 @@ func (client APIReleaseClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apirevision.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apirevision.go index ec11c3adbf0a..7126bd3998e7 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apirevision.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apirevision.go @@ -97,6 +97,7 @@ func (client APIRevisionClient) ListByService(ctx context.Context, resourceGroup result.arc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIRevisionClient", "ListByService", resp, "Failure responding to request") + return } if result.arc.hasNextLink() && result.arc.IsEmpty() { err = result.NextWithContext(ctx) @@ -171,6 +172,7 @@ func (client APIRevisionClient) listByServiceNextResults(ctx context.Context, la result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIRevisionClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apischema.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apischema.go index 4c3bedd84a1a..77918993081d 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apischema.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apischema.go @@ -202,6 +202,7 @@ func (client APISchemaClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "Delete", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client APISchemaClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "Get", resp, "Failure responding to request") + return } return @@ -397,6 +399,7 @@ func (client APISchemaClient) GetEntityTag(ctx context.Context, resourceGroupNam result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -499,6 +502,7 @@ func (client APISchemaClient) ListByAPI(ctx context.Context, resourceGroupName s result.sc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "ListByAPI", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -573,6 +577,7 @@ func (client APISchemaClient) listByAPINextResults(ctx context.Context, lastResu result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apitagdescription.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apitagdescription.go index df1d54c6b4e5..e0af441418da 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apitagdescription.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apitagdescription.go @@ -101,6 +101,7 @@ func (client APITagDescriptionClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APITagDescriptionClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -206,6 +207,7 @@ func (client APITagDescriptionClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APITagDescriptionClient", "Delete", resp, "Failure responding to request") + return } return @@ -303,6 +305,7 @@ func (client APITagDescriptionClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APITagDescriptionClient", "Get", resp, "Failure responding to request") + return } return @@ -400,6 +403,7 @@ func (client APITagDescriptionClient) GetEntityTag(ctx context.Context, resource result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APITagDescriptionClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -504,6 +508,7 @@ func (client APITagDescriptionClient) ListByService(ctx context.Context, resourc result.tdc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APITagDescriptionClient", "ListByService", resp, "Failure responding to request") + return } if result.tdc.hasNextLink() && result.tdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -578,6 +583,7 @@ func (client APITagDescriptionClient) listByServiceNextResults(ctx context.Conte result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APITagDescriptionClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apiversionset.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apiversionset.go index d43804f23795..0d9dfbd59996 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apiversionset.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/apiversionset.go @@ -95,6 +95,7 @@ func (client APIVersionSetClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client APIVersionSetClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Delete", resp, "Failure responding to request") + return } return @@ -281,6 +283,7 @@ func (client APIVersionSetClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client APIVersionSetClient) GetEntityTag(ctx context.Context, resourceGrou result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -464,6 +468,7 @@ func (client APIVersionSetClient) ListByService(ctx context.Context, resourceGro result.avsc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "ListByService", resp, "Failure responding to request") + return } if result.avsc.hasNextLink() && result.avsc.IsEmpty() { err = result.NextWithContext(ctx) @@ -537,6 +542,7 @@ func (client APIVersionSetClient) listByServiceNextResults(ctx context.Context, result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -604,6 +610,7 @@ func (client APIVersionSetClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/authorizationserver.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/authorizationserver.go index a123eaab684e..838bf25123fb 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/authorizationserver.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/authorizationserver.go @@ -100,6 +100,7 @@ func (client AuthorizationServerClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -197,6 +198,7 @@ func (client AuthorizationServerClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Delete", resp, "Failure responding to request") + return } return @@ -286,6 +288,7 @@ func (client AuthorizationServerClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Get", resp, "Failure responding to request") + return } return @@ -375,6 +378,7 @@ func (client AuthorizationServerClient) GetEntityTag(ctx context.Context, resour result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -471,6 +475,7 @@ func (client AuthorizationServerClient) ListByService(ctx context.Context, resou result.asc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "ListByService", resp, "Failure responding to request") + return } if result.asc.hasNextLink() && result.asc.IsEmpty() { err = result.NextWithContext(ctx) @@ -544,6 +549,7 @@ func (client AuthorizationServerClient) listByServiceNextResults(ctx context.Con result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -608,6 +614,7 @@ func (client AuthorizationServerClient) ListSecrets(ctx context.Context, resourc result, err = client.ListSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "ListSecrets", resp, "Failure responding to request") + return } return @@ -700,6 +707,7 @@ func (client AuthorizationServerClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/backend.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/backend.go index 9a8b663443da..25fb2a34cc0c 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/backend.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/backend.go @@ -94,6 +94,7 @@ func (client BackendClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client BackendClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Delete", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client BackendClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Get", resp, "Failure responding to request") + return } return @@ -366,6 +369,7 @@ func (client BackendClient) GetEntityTag(ctx context.Context, resourceGroupName result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -463,6 +467,7 @@ func (client BackendClient) ListByService(ctx context.Context, resourceGroupName result.bc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "ListByService", resp, "Failure responding to request") + return } if result.bc.hasNextLink() && result.bc.IsEmpty() { err = result.NextWithContext(ctx) @@ -536,6 +541,7 @@ func (client BackendClient) listByServiceNextResults(ctx context.Context, lastRe result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -601,6 +607,7 @@ func (client BackendClient) Reconnect(ctx context.Context, resourceGroupName str result, err = client.ReconnectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Reconnect", resp, "Failure responding to request") + return } return @@ -696,6 +703,7 @@ func (client BackendClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/cache.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/cache.go index 14589f12b278..c6dc86aa7db4 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/cache.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/cache.go @@ -98,6 +98,7 @@ func (client CacheClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -196,6 +197,7 @@ func (client CacheClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "Delete", resp, "Failure responding to request") + return } return @@ -286,6 +288,7 @@ func (client CacheClient) Get(ctx context.Context, resourceGroupName string, ser result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "Get", resp, "Failure responding to request") + return } return @@ -376,6 +379,7 @@ func (client CacheClient) GetEntityTag(ctx context.Context, resourceGroupName st result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -468,6 +472,7 @@ func (client CacheClient) ListByService(ctx context.Context, resourceGroupName s result.cc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "ListByService", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -538,6 +543,7 @@ func (client CacheClient) listByServiceNextResults(ctx context.Context, lastResu result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -606,6 +612,7 @@ func (client CacheClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CacheClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/certificate.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/certificate.go index 3212b072eb59..1c7c0914c327 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/certificate.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/certificate.go @@ -94,6 +94,7 @@ func (client CertificateClient) CreateOrUpdate(ctx context.Context, resourceGrou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client CertificateClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "Delete", resp, "Failure responding to request") + return } return @@ -282,6 +284,7 @@ func (client CertificateClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -372,6 +375,7 @@ func (client CertificateClient) GetEntityTag(ctx context.Context, resourceGroupN result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -470,6 +474,7 @@ func (client CertificateClient) ListByService(ctx context.Context, resourceGroup result.cc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "ListByService", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -543,6 +548,7 @@ func (client CertificateClient) listByServiceNextResults(ctx context.Context, la result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/delegationsettings.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/delegationsettings.go index 7b245981bf6c..516964600cc1 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/delegationsettings.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/delegationsettings.go @@ -84,6 +84,7 @@ func (client DelegationSettingsClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client DelegationSettingsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -256,6 +258,7 @@ func (client DelegationSettingsClient) GetEntityTag(ctx context.Context, resourc result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -338,6 +341,7 @@ func (client DelegationSettingsClient) ListSecrets(ctx context.Context, resource result, err = client.ListSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "ListSecrets", resp, "Failure responding to request") + return } return @@ -424,6 +428,7 @@ func (client DelegationSettingsClient) Update(ctx context.Context, resourceGroup result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/diagnostic.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/diagnostic.go index 5250394fb3e1..d8a25ab51c6d 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/diagnostic.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/diagnostic.go @@ -126,6 +126,7 @@ func (client DiagnosticClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -223,6 +224,7 @@ func (client DiagnosticClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Delete", resp, "Failure responding to request") + return } return @@ -312,6 +314,7 @@ func (client DiagnosticClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Get", resp, "Failure responding to request") + return } return @@ -401,6 +404,7 @@ func (client DiagnosticClient) GetEntityTag(ctx context.Context, resourceGroupNa result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -496,6 +500,7 @@ func (client DiagnosticClient) ListByService(ctx context.Context, resourceGroupN result.dc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "ListByService", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -569,6 +574,7 @@ func (client DiagnosticClient) listByServiceNextResults(ctx context.Context, las result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -636,6 +642,7 @@ func (client DiagnosticClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/emailtemplate.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/emailtemplate.go index 714486eba911..e98faebc911c 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/emailtemplate.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/emailtemplate.go @@ -93,6 +93,7 @@ func (client EmailTemplateClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client EmailTemplateClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Delete", resp, "Failure responding to request") + return } return @@ -271,6 +273,7 @@ func (client EmailTemplateClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Get", resp, "Failure responding to request") + return } return @@ -356,6 +359,7 @@ func (client EmailTemplateClient) GetEntityTag(ctx context.Context, resourceGrou result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -451,6 +455,7 @@ func (client EmailTemplateClient) ListByService(ctx context.Context, resourceGro result.etc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "ListByService", resp, "Failure responding to request") + return } if result.etc.hasNextLink() && result.etc.IsEmpty() { err = result.NextWithContext(ctx) @@ -524,6 +529,7 @@ func (client EmailTemplateClient) listByServiceNextResults(ctx context.Context, result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -587,6 +593,7 @@ func (client EmailTemplateClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/gateway.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/gateway.go index 40a2be484f12..00c7dba42fdc 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/gateway.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/gateway.go @@ -102,6 +102,7 @@ func (client GatewayClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -199,6 +200,7 @@ func (client GatewayClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayClient", "Delete", resp, "Failure responding to request") + return } return @@ -290,6 +292,7 @@ func (client GatewayClient) GenerateToken(ctx context.Context, resourceGroupName result, err = client.GenerateTokenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayClient", "GenerateToken", resp, "Failure responding to request") + return } return @@ -381,6 +384,7 @@ func (client GatewayClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayClient", "Get", resp, "Failure responding to request") + return } return @@ -470,6 +474,7 @@ func (client GatewayClient) GetEntityTag(ctx context.Context, resourceGroupName result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -562,6 +567,7 @@ func (client GatewayClient) ListByService(ctx context.Context, resourceGroupName result.gc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayClient", "ListByService", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -632,6 +638,7 @@ func (client GatewayClient) listByServiceNextResults(ctx context.Context, lastRe result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -696,6 +703,7 @@ func (client GatewayClient) ListKeys(ctx context.Context, resourceGroupName stri result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -785,6 +793,7 @@ func (client GatewayClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -877,6 +886,7 @@ func (client GatewayClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/gatewayapi.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/gatewayapi.go index 26f3e1198278..52e41061e50b 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/gatewayapi.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/gatewayapi.go @@ -90,6 +90,7 @@ func (client GatewayAPIClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayAPIClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -189,6 +190,7 @@ func (client GatewayAPIClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayAPIClient", "Delete", resp, "Failure responding to request") + return } return @@ -282,6 +284,7 @@ func (client GatewayAPIClient) GetEntityTag(ctx context.Context, resourceGroupNa result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayAPIClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -380,6 +383,7 @@ func (client GatewayAPIClient) ListByService(ctx context.Context, resourceGroupN result.ac, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayAPIClient", "ListByService", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -451,6 +455,7 @@ func (client GatewayAPIClient) listByServiceNextResults(ctx context.Context, las result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayAPIClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/gatewayhostnameconfiguration.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/gatewayhostnameconfiguration.go index 654b7d7cbbeb..f4326d407a95 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/gatewayhostnameconfiguration.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/gatewayhostnameconfiguration.go @@ -91,6 +91,7 @@ func (client GatewayHostnameConfigurationClient) CreateOrUpdate(ctx context.Cont result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayHostnameConfigurationClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -187,6 +188,7 @@ func (client GatewayHostnameConfigurationClient) Delete(ctx context.Context, res result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayHostnameConfigurationClient", "Delete", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client GatewayHostnameConfigurationClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayHostnameConfigurationClient", "Get", resp, "Failure responding to request") + return } return @@ -374,6 +377,7 @@ func (client GatewayHostnameConfigurationClient) GetEntityTag(ctx context.Contex result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayHostnameConfigurationClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -472,6 +476,7 @@ func (client GatewayHostnameConfigurationClient) ListByService(ctx context.Conte result.ghcc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayHostnameConfigurationClient", "ListByService", resp, "Failure responding to request") + return } if result.ghcc.hasNextLink() && result.ghcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -543,6 +548,7 @@ func (client GatewayHostnameConfigurationClient) listByServiceNextResults(ctx co result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GatewayHostnameConfigurationClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/group.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/group.go index 7e72db4f5012..70f6e50d40c7 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/group.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/group.go @@ -94,6 +94,7 @@ func (client GroupClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client GroupClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Delete", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client GroupClient) Get(ctx context.Context, resourceGroupName string, ser result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Get", resp, "Failure responding to request") + return } return @@ -366,6 +369,7 @@ func (client GroupClient) GetEntityTag(ctx context.Context, resourceGroupName st result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -463,6 +467,7 @@ func (client GroupClient) ListByService(ctx context.Context, resourceGroupName s result.gc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "ListByService", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -536,6 +541,7 @@ func (client GroupClient) listByServiceNextResults(ctx context.Context, lastResu result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -602,6 +608,7 @@ func (client GroupClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/groupuser.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/groupuser.go index 72629b81b119..ac27d62287b9 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/groupuser.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/groupuser.go @@ -89,6 +89,7 @@ func (client GroupUserClient) CheckEntityExists(ctx context.Context, resourceGro result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client GroupUserClient) Create(ctx context.Context, resourceGroupName stri result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "Create", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client GroupUserClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "Delete", resp, "Failure responding to request") + return } return @@ -378,6 +381,7 @@ func (client GroupUserClient) List(ctx context.Context, resourceGroupName string result.uc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "List", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -452,6 +456,7 @@ func (client GroupUserClient) listNextResults(ctx context.Context, lastResults U result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/identityprovider.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/identityprovider.go index 030168c488fd..e1f81472ce4d 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/identityprovider.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/identityprovider.go @@ -92,6 +92,7 @@ func (client IdentityProviderClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client IdentityProviderClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Delete", resp, "Failure responding to request") + return } return @@ -270,6 +272,7 @@ func (client IdentityProviderClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +358,7 @@ func (client IdentityProviderClient) GetEntityTag(ctx context.Context, resourceG result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -439,6 +443,7 @@ func (client IdentityProviderClient) ListByService(ctx context.Context, resource result.ipl, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "ListByService", resp, "Failure responding to request") + return } if result.ipl.hasNextLink() && result.ipl.IsEmpty() { err = result.NextWithContext(ctx) @@ -503,6 +508,7 @@ func (client IdentityProviderClient) listByServiceNextResults(ctx context.Contex result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -563,6 +569,7 @@ func (client IdentityProviderClient) ListSecrets(ctx context.Context, resourceGr result, err = client.ListSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "ListSecrets", resp, "Failure responding to request") + return } return @@ -651,6 +658,7 @@ func (client IdentityProviderClient) Update(ctx context.Context, resourceGroupNa result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/issue.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/issue.go index df1e87103a0c..077cb644ee7b 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/issue.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/issue.go @@ -86,6 +86,7 @@ func (client IssueClient) Get(ctx context.Context, resourceGroupName string, ser result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IssueClient", "Get", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client IssueClient) ListByService(ctx context.Context, resourceGroupName s result.ic, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IssueClient", "ListByService", resp, "Failure responding to request") + return } if result.ic.hasNextLink() && result.ic.IsEmpty() { err = result.NextWithContext(ctx) @@ -259,6 +261,7 @@ func (client IssueClient) listByServiceNextResults(ctx context.Context, lastResu result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.IssueClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/logger.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/logger.go index 7625211b9b8d..408e92ce868d 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/logger.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/logger.go @@ -93,6 +93,7 @@ func (client LoggerClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client LoggerClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Delete", resp, "Failure responding to request") + return } return @@ -281,6 +283,7 @@ func (client LoggerClient) Get(ctx context.Context, resourceGroupName string, se result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +372,7 @@ func (client LoggerClient) GetEntityTag(ctx context.Context, resourceGroupName s result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -466,6 +470,7 @@ func (client LoggerClient) ListByService(ctx context.Context, resourceGroupName result.lc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "ListByService", resp, "Failure responding to request") + return } if result.lc.hasNextLink() && result.lc.IsEmpty() { err = result.NextWithContext(ctx) @@ -539,6 +544,7 @@ func (client LoggerClient) listByServiceNextResults(ctx context.Context, lastRes result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -605,6 +611,7 @@ func (client LoggerClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/namedvalue.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/namedvalue.go index 00ab68d35a67..2c4eb33bb7ac 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/namedvalue.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/namedvalue.go @@ -195,6 +195,7 @@ func (client NamedValueClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NamedValueClient", "Delete", resp, "Failure responding to request") + return } return @@ -283,6 +284,7 @@ func (client NamedValueClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NamedValueClient", "Get", resp, "Failure responding to request") + return } return @@ -371,6 +373,7 @@ func (client NamedValueClient) GetEntityTag(ctx context.Context, resourceGroupNa result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NamedValueClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -467,6 +470,7 @@ func (client NamedValueClient) ListByService(ctx context.Context, resourceGroupN result.nvc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NamedValueClient", "ListByService", resp, "Failure responding to request") + return } if result.nvc.hasNextLink() && result.nvc.IsEmpty() { err = result.NextWithContext(ctx) @@ -540,6 +544,7 @@ func (client NamedValueClient) listByServiceNextResults(ctx context.Context, las result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NamedValueClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -603,6 +608,7 @@ func (client NamedValueClient) ListValue(ctx context.Context, resourceGroupName result, err = client.ListValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NamedValueClient", "ListValue", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/networkstatus.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/networkstatus.go index 8cd114a99a59..d14d48bf019d 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/networkstatus.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/networkstatus.go @@ -86,6 +86,7 @@ func (client NetworkStatusClient) ListByLocation(ctx context.Context, resourceGr result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NetworkStatusClient", "ListByLocation", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client NetworkStatusClient) ListByService(ctx context.Context, resourceGro result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NetworkStatusClient", "ListByService", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/notification.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/notification.go index ea2ad6a83ad9..a06bc42c4739 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/notification.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/notification.go @@ -83,6 +83,7 @@ func (client NotificationClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client NotificationClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "Get", resp, "Failure responding to request") + return } return @@ -265,6 +267,7 @@ func (client NotificationClient) ListByService(ctx context.Context, resourceGrou result.nc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "ListByService", resp, "Failure responding to request") + return } if result.nc.hasNextLink() && result.nc.IsEmpty() { err = result.NextWithContext(ctx) @@ -335,6 +338,7 @@ func (client NotificationClient) listByServiceNextResults(ctx context.Context, l result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/notificationrecipientemail.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/notificationrecipientemail.go index cc4dd221ac17..4c0fcbf781a1 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/notificationrecipientemail.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/notificationrecipientemail.go @@ -84,6 +84,7 @@ func (client NotificationRecipientEmailClient) CheckEntityExists(ctx context.Con result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client NotificationRecipientEmailClient) CreateOrUpdate(ctx context.Contex result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -257,6 +259,7 @@ func (client NotificationRecipientEmailClient) Delete(ctx context.Context, resou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "Delete", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client NotificationRecipientEmailClient) ListByNotification(ctx context.Co result, err = client.ListByNotificationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "ListByNotification", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/notificationrecipientuser.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/notificationrecipientuser.go index 25da40fe24fa..32a405af9f06 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/notificationrecipientuser.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/notificationrecipientuser.go @@ -87,6 +87,7 @@ func (client NotificationRecipientUserClient) CheckEntityExists(ctx context.Cont result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client NotificationRecipientUserClient) CreateOrUpdate(ctx context.Context result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -266,6 +268,7 @@ func (client NotificationRecipientUserClient) Delete(ctx context.Context, resour result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "Delete", resp, "Failure responding to request") + return } return @@ -351,6 +354,7 @@ func (client NotificationRecipientUserClient) ListByNotification(ctx context.Con result, err = client.ListByNotificationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "ListByNotification", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/openidconnectprovider.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/openidconnectprovider.go index c3b8d66c7448..2fc1f46e5100 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/openidconnectprovider.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/openidconnectprovider.go @@ -95,6 +95,7 @@ func (client OpenIDConnectProviderClient) CreateOrUpdate(ctx context.Context, re result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -191,6 +192,7 @@ func (client OpenIDConnectProviderClient) Delete(ctx context.Context, resourceGr result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Delete", resp, "Failure responding to request") + return } return @@ -279,6 +281,7 @@ func (client OpenIDConnectProviderClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Get", resp, "Failure responding to request") + return } return @@ -367,6 +370,7 @@ func (client OpenIDConnectProviderClient) GetEntityTag(ctx context.Context, reso result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -463,6 +467,7 @@ func (client OpenIDConnectProviderClient) ListByService(ctx context.Context, res result.oicpc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "ListByService", resp, "Failure responding to request") + return } if result.oicpc.hasNextLink() && result.oicpc.IsEmpty() { err = result.NextWithContext(ctx) @@ -536,6 +541,7 @@ func (client OpenIDConnectProviderClient) listByServiceNextResults(ctx context.C result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -599,6 +605,7 @@ func (client OpenIDConnectProviderClient) ListSecrets(ctx context.Context, resou result, err = client.ListSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "ListSecrets", resp, "Failure responding to request") + return } return @@ -690,6 +697,7 @@ func (client OpenIDConnectProviderClient) Update(ctx context.Context, resourceGr result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/operation.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/operation.go index 1fd8ebd13e33..40f7f3d7cf35 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/operation.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/operation.go @@ -105,6 +105,7 @@ func (client OperationClient) ListByTags(ctx context.Context, resourceGroupName result.trc, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OperationClient", "ListByTags", resp, "Failure responding to request") + return } if result.trc.hasNextLink() && result.trc.IsEmpty() { err = result.NextWithContext(ctx) @@ -182,6 +183,7 @@ func (client OperationClient) listByTagsNextResults(ctx context.Context, lastRes result, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OperationClient", "listByTagsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/operations.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/operations.go index 3b7f7ceed410..1b3a53422bb9 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/operations.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/policy.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/policy.go index 0510cdc17cf3..ba49bf3d0caa 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/policy.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/policy.go @@ -86,6 +86,7 @@ func (client PolicyClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client PolicyClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -263,6 +265,7 @@ func (client PolicyClient) Get(ctx context.Context, resourceGroupName string, se result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -352,6 +355,7 @@ func (client PolicyClient) GetEntityTag(ctx context.Context, resourceGroupName s result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -435,6 +439,7 @@ func (client PolicyClient) ListByService(ctx context.Context, resourceGroupName result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "ListByService", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/policydescription.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/policydescription.go index edc6ccb02670..de89e3c78425 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/policydescription.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/policydescription.go @@ -83,6 +83,7 @@ func (client PolicyDescriptionClient) ListByService(ctx context.Context, resourc result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.PolicyDescriptionClient", "ListByService", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/product.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/product.go index 198e46795152..41a3776f79fa 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/product.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/product.go @@ -94,6 +94,7 @@ func (client ProductClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -191,6 +192,7 @@ func (client ProductClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Delete", resp, "Failure responding to request") + return } return @@ -282,6 +284,7 @@ func (client ProductClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client ProductClient) GetEntityTag(ctx context.Context, resourceGroupName result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -472,6 +476,7 @@ func (client ProductClient) ListByService(ctx context.Context, resourceGroupName result.pc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "ListByService", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -551,6 +556,7 @@ func (client ProductClient) listByServiceNextResults(ctx context.Context, lastRe result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -627,6 +633,7 @@ func (client ProductClient) ListByTags(ctx context.Context, resourceGroupName st result.trc, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "ListByTags", resp, "Failure responding to request") + return } if result.trc.hasNextLink() && result.trc.IsEmpty() { err = result.NextWithContext(ctx) @@ -703,6 +710,7 @@ func (client ProductClient) listByTagsNextResults(ctx context.Context, lastResul result, err = client.ListByTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "listByTagsNextResults", resp, "Failure responding to next results request") + return } return } @@ -769,6 +777,7 @@ func (client ProductClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/productapi.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/productapi.go index 3ef7105d522d..c40f5897e03e 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/productapi.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/productapi.go @@ -91,6 +91,7 @@ func (client ProductAPIClient) CheckEntityExists(ctx context.Context, resourceGr result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client ProductAPIClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client ProductAPIClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "Delete", resp, "Failure responding to request") + return } return @@ -384,6 +387,7 @@ func (client ProductAPIClient) ListByProduct(ctx context.Context, resourceGroupN result.ac, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "ListByProduct", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -458,6 +462,7 @@ func (client ProductAPIClient) listByProductNextResults(ctx context.Context, las result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/productgroup.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/productgroup.go index 5314e5bbb879..aff5204c4952 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/productgroup.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/productgroup.go @@ -89,6 +89,7 @@ func (client ProductGroupClient) CheckEntityExists(ctx context.Context, resource result, err = client.CheckEntityExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "CheckEntityExists", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client ProductGroupClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client ProductGroupClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "Delete", resp, "Failure responding to request") + return } return @@ -374,6 +377,7 @@ func (client ProductGroupClient) ListByProduct(ctx context.Context, resourceGrou result.gc, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "ListByProduct", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -448,6 +452,7 @@ func (client ProductGroupClient) listByProductNextResults(ctx context.Context, l result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/productpolicy.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/productpolicy.go index d2fc67f80a80..a4f198bc25db 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/productpolicy.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/productpolicy.go @@ -90,6 +90,7 @@ func (client ProductPolicyClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -187,6 +188,7 @@ func (client ProductPolicyClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "Delete", resp, "Failure responding to request") + return } return @@ -277,6 +279,7 @@ func (client ProductPolicyClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -371,6 +374,7 @@ func (client ProductPolicyClient) GetEntityTag(ctx context.Context, resourceGrou result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -459,6 +463,7 @@ func (client ProductPolicyClient) ListByProduct(ctx context.Context, resourceGro result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "ListByProduct", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/productsubscriptions.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/productsubscriptions.go index e2cdf5d7872b..40574d2257a2 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/productsubscriptions.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/productsubscriptions.go @@ -104,6 +104,7 @@ func (client ProductSubscriptionsClient) List(ctx context.Context, resourceGroup result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductSubscriptionsClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -178,6 +179,7 @@ func (client ProductSubscriptionsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ProductSubscriptionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/quotabycounterkeys.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/quotabycounterkeys.go index 17ed5855863b..f1b5c020b40d 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/quotabycounterkeys.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/quotabycounterkeys.go @@ -87,6 +87,7 @@ func (client QuotaByCounterKeysClient) ListByService(ctx context.Context, resour result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByCounterKeysClient", "ListByService", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client QuotaByCounterKeysClient) Update(ctx context.Context, resourceGroup result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByCounterKeysClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/quotabyperiodkeys.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/quotabyperiodkeys.go index ed9ccd30b4d6..e4ce67dfdacf 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/quotabyperiodkeys.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/quotabyperiodkeys.go @@ -88,6 +88,7 @@ func (client QuotaByPeriodKeysClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByPeriodKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client QuotaByPeriodKeysClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.QuotaByPeriodKeysClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/region.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/region.go index 87a1e964a4a7..4168ec19c5dc 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/region.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/region.go @@ -82,6 +82,7 @@ func (client RegionClient) ListByService(ctx context.Context, resourceGroupName result.rlr, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.RegionClient", "ListByService", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client RegionClient) listByServiceNextResults(ctx context.Context, lastRes result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.RegionClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/reports.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/reports.go index 7e65ed59efff..89f11814c626 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/reports.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/reports.go @@ -92,6 +92,7 @@ func (client ReportsClient) ListByAPI(ctx context.Context, resourceGroupName str result.rc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByAPI", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -166,6 +167,7 @@ func (client ReportsClient) listByAPINextResults(ctx context.Context, lastResult result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } @@ -245,6 +247,7 @@ func (client ReportsClient) ListByGeo(ctx context.Context, resourceGroupName str result.rc, err = client.ListByGeoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByGeo", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -316,6 +319,7 @@ func (client ReportsClient) listByGeoNextResults(ctx context.Context, lastResult result, err = client.ListByGeoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByGeoNextResults", resp, "Failure responding to next results request") + return } return } @@ -397,6 +401,7 @@ func (client ReportsClient) ListByOperation(ctx context.Context, resourceGroupNa result.rc, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByOperation", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -471,6 +476,7 @@ func (client ReportsClient) listByOperationNextResults(ctx context.Context, last result, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByOperationNextResults", resp, "Failure responding to next results request") + return } return } @@ -551,6 +557,7 @@ func (client ReportsClient) ListByProduct(ctx context.Context, resourceGroupName result.rc, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByProduct", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -625,6 +632,7 @@ func (client ReportsClient) listByProductNextResults(ctx context.Context, lastRe result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } @@ -697,6 +705,7 @@ func (client ReportsClient) ListByRequest(ctx context.Context, resourceGroupName result, err = client.ListByRequestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByRequest", resp, "Failure responding to request") + return } return @@ -808,6 +817,7 @@ func (client ReportsClient) ListBySubscription(ctx context.Context, resourceGrou result.rc, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -882,6 +892,7 @@ func (client ReportsClient) listBySubscriptionNextResults(ctx context.Context, l result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -965,6 +976,7 @@ func (client ReportsClient) ListByTime(ctx context.Context, resourceGroupName st result.rc, err = client.ListByTimeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByTime", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1040,6 +1052,7 @@ func (client ReportsClient) listByTimeNextResults(ctx context.Context, lastResul result, err = client.ListByTimeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByTimeNextResults", resp, "Failure responding to next results request") + return } return } @@ -1121,6 +1134,7 @@ func (client ReportsClient) ListByUser(ctx context.Context, resourceGroupName st result.rc, err = client.ListByUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByUser", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1195,6 +1209,7 @@ func (client ReportsClient) listByUserNextResults(ctx context.Context, lastResul result, err = client.ListByUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByUserNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/service.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/service.go index e92dbd016144..3cefa2c54c33 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/service.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/service.go @@ -262,6 +262,7 @@ func (client ServiceClient) CheckNameAvailability(ctx context.Context, parameter result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -526,6 +527,7 @@ func (client ServiceClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "Get", resp, "Failure responding to request") + return } return @@ -609,6 +611,7 @@ func (client ServiceClient) GetSsoToken(ctx context.Context, resourceGroupName s result, err = client.GetSsoTokenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "GetSsoToken", resp, "Failure responding to request") + return } return @@ -682,6 +685,7 @@ func (client ServiceClient) List(ctx context.Context) (result ServiceListResultP result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -744,6 +748,7 @@ func (client ServiceClient) listNextResults(ctx context.Context, lastResults Ser result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -795,6 +800,7 @@ func (client ServiceClient) ListByResourceGroup(ctx context.Context, resourceGro result.slr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -858,6 +864,7 @@ func (client ServiceClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/serviceskus.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/serviceskus.go index 04ab099e0244..d4bb31742f1b 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/serviceskus.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/serviceskus.go @@ -82,6 +82,7 @@ func (client ServiceSkusClient) ListAvailableServiceSkus(ctx context.Context, re result.rsr, err = client.ListAvailableServiceSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceSkusClient", "ListAvailableServiceSkus", resp, "Failure responding to request") + return } if result.rsr.hasNextLink() && result.rsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client ServiceSkusClient) listAvailableServiceSkusNextResults(ctx context. result, err = client.ListAvailableServiceSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceSkusClient", "listAvailableServiceSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/signinsettings.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/signinsettings.go index 388fe542947d..7c0094541bdb 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/signinsettings.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/signinsettings.go @@ -83,6 +83,7 @@ func (client SignInSettingsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client SignInSettingsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -255,6 +257,7 @@ func (client SignInSettingsClient) GetEntityTag(ctx context.Context, resourceGro result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -340,6 +343,7 @@ func (client SignInSettingsClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/signupsettings.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/signupsettings.go index 845037979f75..2cecf03caab7 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/signupsettings.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/signupsettings.go @@ -83,6 +83,7 @@ func (client SignUpSettingsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client SignUpSettingsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -255,6 +257,7 @@ func (client SignUpSettingsClient) GetEntityTag(ctx context.Context, resourceGro result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -340,6 +343,7 @@ func (client SignUpSettingsClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/subscription.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/subscription.go index d6e9ed97e2ed..bb6fdd62a81e 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/subscription.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/subscription.go @@ -107,6 +107,7 @@ func (client SubscriptionClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -207,6 +208,7 @@ func (client SubscriptionClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Delete", resp, "Failure responding to request") + return } return @@ -296,6 +298,7 @@ func (client SubscriptionClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Get", resp, "Failure responding to request") + return } return @@ -385,6 +388,7 @@ func (client SubscriptionClient) GetEntityTag(ctx context.Context, resourceGroup result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -486,6 +490,7 @@ func (client SubscriptionClient) List(ctx context.Context, resourceGroupName str result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -559,6 +564,7 @@ func (client SubscriptionClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -623,6 +629,7 @@ func (client SubscriptionClient) ListSecrets(ctx context.Context, resourceGroupN result, err = client.ListSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "ListSecrets", resp, "Failure responding to request") + return } return @@ -712,6 +719,7 @@ func (client SubscriptionClient) RegeneratePrimaryKey(ctx context.Context, resou result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -800,6 +808,7 @@ func (client SubscriptionClient) RegenerateSecondaryKey(ctx context.Context, res result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return @@ -894,6 +903,7 @@ func (client SubscriptionClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/tag.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/tag.go index 85623130c030..c9633cfb6651 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/tag.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/tag.go @@ -92,6 +92,7 @@ func (client TagClient) AssignToAPI(ctx context.Context, resourceGroupName strin result, err = client.AssignToAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToAPI", resp, "Failure responding to request") + return } return @@ -193,6 +194,7 @@ func (client TagClient) AssignToOperation(ctx context.Context, resourceGroupName result, err = client.AssignToOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToOperation", resp, "Failure responding to request") + return } return @@ -288,6 +290,7 @@ func (client TagClient) AssignToProduct(ctx context.Context, resourceGroupName s result, err = client.AssignToProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToProduct", resp, "Failure responding to request") + return } return @@ -387,6 +390,7 @@ func (client TagClient) CreateOrUpdate(ctx context.Context, resourceGroupName st result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -484,6 +488,7 @@ func (client TagClient) Delete(ctx context.Context, resourceGroupName string, se result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Delete", resp, "Failure responding to request") + return } return @@ -579,6 +584,7 @@ func (client TagClient) DetachFromAPI(ctx context.Context, resourceGroupName str result, err = client.DetachFromAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromAPI", resp, "Failure responding to request") + return } return @@ -679,6 +685,7 @@ func (client TagClient) DetachFromOperation(ctx context.Context, resourceGroupNa result, err = client.DetachFromOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromOperation", resp, "Failure responding to request") + return } return @@ -773,6 +780,7 @@ func (client TagClient) DetachFromProduct(ctx context.Context, resourceGroupName result, err = client.DetachFromProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromProduct", resp, "Failure responding to request") + return } return @@ -862,6 +870,7 @@ func (client TagClient) Get(ctx context.Context, resourceGroupName string, servi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Get", resp, "Failure responding to request") + return } return @@ -957,6 +966,7 @@ func (client TagClient) GetByAPI(ctx context.Context, resourceGroupName string, result, err = client.GetByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByAPI", resp, "Failure responding to request") + return } return @@ -1058,6 +1068,7 @@ func (client TagClient) GetByOperation(ctx context.Context, resourceGroupName st result, err = client.GetByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByOperation", resp, "Failure responding to request") + return } return @@ -1153,6 +1164,7 @@ func (client TagClient) GetByProduct(ctx context.Context, resourceGroupName stri result, err = client.GetByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByProduct", resp, "Failure responding to request") + return } return @@ -1243,6 +1255,7 @@ func (client TagClient) GetEntityState(ctx context.Context, resourceGroupName st result, err = client.GetEntityStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityState", resp, "Failure responding to request") + return } return @@ -1337,6 +1350,7 @@ func (client TagClient) GetEntityStateByAPI(ctx context.Context, resourceGroupNa result, err = client.GetEntityStateByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByAPI", resp, "Failure responding to request") + return } return @@ -1437,6 +1451,7 @@ func (client TagClient) GetEntityStateByOperation(ctx context.Context, resourceG result, err = client.GetEntityStateByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByOperation", resp, "Failure responding to request") + return } return @@ -1531,6 +1546,7 @@ func (client TagClient) GetEntityStateByProduct(ctx context.Context, resourceGro result, err = client.GetEntityStateByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByProduct", resp, "Failure responding to request") + return } return @@ -1634,6 +1650,7 @@ func (client TagClient) ListByAPI(ctx context.Context, resourceGroupName string, result.tc, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByAPI", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1708,6 +1725,7 @@ func (client TagClient) listByAPINextResults(ctx context.Context, lastResults Ta result, err = client.ListByAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByAPINextResults", resp, "Failure responding to next results request") + return } return } @@ -1791,6 +1809,7 @@ func (client TagClient) ListByOperation(ctx context.Context, resourceGroupName s result.tc, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByOperation", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1866,6 +1885,7 @@ func (client TagClient) listByOperationNextResults(ctx context.Context, lastResu result, err = client.ListByOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByOperationNextResults", resp, "Failure responding to next results request") + return } return } @@ -1942,6 +1962,7 @@ func (client TagClient) ListByProduct(ctx context.Context, resourceGroupName str result.tc, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByProduct", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2016,6 +2037,7 @@ func (client TagClient) listByProductNextResults(ctx context.Context, lastResult result, err = client.ListByProductResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByProductNextResults", resp, "Failure responding to next results request") + return } return } @@ -2089,6 +2111,7 @@ func (client TagClient) ListByService(ctx context.Context, resourceGroupName str result.tc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByService", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2165,6 +2188,7 @@ func (client TagClient) listByServiceNextResults(ctx context.Context, lastResult result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -2232,6 +2256,7 @@ func (client TagClient) Update(ctx context.Context, resourceGroupName string, se result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/tagresource.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/tagresource.go index 3607e14078cb..1d7f1aec3fee 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/tagresource.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/tagresource.go @@ -103,6 +103,7 @@ func (client TagResourceClient) ListByService(ctx context.Context, resourceGroup result.trc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagResourceClient", "ListByService", resp, "Failure responding to request") + return } if result.trc.hasNextLink() && result.trc.IsEmpty() { err = result.NextWithContext(ctx) @@ -176,6 +177,7 @@ func (client TagResourceClient) listByServiceNextResults(ctx context.Context, la result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TagResourceClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/tenantaccess.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/tenantaccess.go index b582c9693114..68aa1d748399 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/tenantaccess.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/tenantaccess.go @@ -81,6 +81,7 @@ func (client TenantAccessClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "Get", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client TenantAccessClient) GetEntityTag(ctx context.Context, resourceGroup result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client TenantAccessClient) ListSecrets(ctx context.Context, resourceGroupN result, err = client.ListSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "ListSecrets", resp, "Failure responding to request") + return } return @@ -332,6 +335,7 @@ func (client TenantAccessClient) RegeneratePrimaryKey(ctx context.Context, resou result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -415,6 +419,7 @@ func (client TenantAccessClient) RegenerateSecondaryKey(ctx context.Context, res result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return @@ -501,6 +506,7 @@ func (client TenantAccessClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/tenantaccessgit.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/tenantaccessgit.go index 9d8355d2eee1..f711d42bec60 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/tenantaccessgit.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/tenantaccessgit.go @@ -81,6 +81,7 @@ func (client TenantAccessGitClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "Get", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client TenantAccessGitClient) ListSecrets(ctx context.Context, resourceGro result, err = client.ListSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "ListSecrets", resp, "Failure responding to request") + return } return @@ -249,6 +251,7 @@ func (client TenantAccessGitClient) RegeneratePrimaryKey(ctx context.Context, re result, err = client.RegeneratePrimaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "RegeneratePrimaryKey", resp, "Failure responding to request") + return } return @@ -332,6 +335,7 @@ func (client TenantAccessGitClient) RegenerateSecondaryKey(ctx context.Context, result, err = client.RegenerateSecondaryKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "RegenerateSecondaryKey", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/tenantconfiguration.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/tenantconfiguration.go index 182505acf907..ecdafaa534b0 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/tenantconfiguration.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/tenantconfiguration.go @@ -174,6 +174,7 @@ func (client TenantConfigurationClient) GetSyncState(ctx context.Context, resour result, err = client.GetSyncStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationClient", "GetSyncState", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/user.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/user.go index b6db33b843fb..2d3d342acaf9 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/user.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/user.go @@ -102,6 +102,7 @@ func (client UserClient) CreateOrUpdate(ctx context.Context, resourceGroupName s result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -200,6 +201,7 @@ func (client UserClient) Delete(ctx context.Context, resourceGroupName string, s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Delete", resp, "Failure responding to request") + return } return @@ -295,6 +297,7 @@ func (client UserClient) GenerateSsoURL(ctx context.Context, resourceGroupName s result, err = client.GenerateSsoURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GenerateSsoURL", resp, "Failure responding to request") + return } return @@ -383,6 +386,7 @@ func (client UserClient) Get(ctx context.Context, resourceGroupName string, serv result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Get", resp, "Failure responding to request") + return } return @@ -471,6 +475,7 @@ func (client UserClient) GetEntityTag(ctx context.Context, resourceGroupName str result, err = client.GetEntityTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GetEntityTag", resp, "Failure responding to request") + return } return @@ -562,6 +567,7 @@ func (client UserClient) GetSharedAccessToken(ctx context.Context, resourceGroup result, err = client.GetSharedAccessTokenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GetSharedAccessToken", resp, "Failure responding to request") + return } return @@ -666,6 +672,7 @@ func (client UserClient) ListByService(ctx context.Context, resourceGroupName st result.uc, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "ListByService", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -742,6 +749,7 @@ func (client UserClient) listByServiceNextResults(ctx context.Context, lastResul result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -808,6 +816,7 @@ func (client UserClient) Update(ctx context.Context, resourceGroupName string, s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/userconfirmationpassword.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/userconfirmationpassword.go index 62ff750255fe..4563f1fa66dc 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/userconfirmationpassword.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/userconfirmationpassword.go @@ -86,6 +86,7 @@ func (client UserConfirmationPasswordClient) SendMethod(ctx context.Context, res result, err = client.SendMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserConfirmationPasswordClient", "SendMethod", resp, "Failure responding to request") + return } return diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/usergroup.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/usergroup.go index be46adce6ebb..fb01f0e6f3e1 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/usergroup.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/usergroup.go @@ -99,6 +99,7 @@ func (client UserGroupClient) List(ctx context.Context, resourceGroupName string result.gc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserGroupClient", "List", resp, "Failure responding to request") + return } if result.gc.hasNextLink() && result.gc.IsEmpty() { err = result.NextWithContext(ctx) @@ -173,6 +174,7 @@ func (client UserGroupClient) listNextResults(ctx context.Context, lastResults G result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserGroupClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/useridentities.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/useridentities.go index 4601694568c3..0d09528d1e6e 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/useridentities.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/useridentities.go @@ -86,6 +86,7 @@ func (client UserIdentitiesClient) List(ctx context.Context, resourceGroupName s result.uic, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserIdentitiesClient", "List", resp, "Failure responding to request") + return } if result.uic.hasNextLink() && result.uic.IsEmpty() { err = result.NextWithContext(ctx) @@ -151,6 +152,7 @@ func (client UserIdentitiesClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserIdentitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/usersubscription.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/usersubscription.go index ce821854d6f3..a79bbf277936 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/usersubscription.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/usersubscription.go @@ -104,6 +104,7 @@ func (client UserSubscriptionClient) List(ctx context.Context, resourceGroupName result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserSubscriptionClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -178,6 +179,7 @@ func (client UserSubscriptionClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.UserSubscriptionClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/appconfiguration/mgmt/2019-02-01-preview/appconfiguration/configurationstores.go b/services/preview/appconfiguration/mgmt/2019-02-01-preview/appconfiguration/configurationstores.go index 9e5243cf092d..5041860ec827 100644 --- a/services/preview/appconfiguration/mgmt/2019-02-01-preview/appconfiguration/configurationstores.go +++ b/services/preview/appconfiguration/mgmt/2019-02-01-preview/appconfiguration/configurationstores.go @@ -250,6 +250,7 @@ func (client ConfigurationStoresClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "Get", resp, "Failure responding to request") + return } return @@ -327,6 +328,7 @@ func (client ConfigurationStoresClient) List(ctx context.Context, skipToken stri result.cslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "List", resp, "Failure responding to request") + return } if result.cslr.hasNextLink() && result.cslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -392,6 +394,7 @@ func (client ConfigurationStoresClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -446,6 +449,7 @@ func (client ConfigurationStoresClient) ListByResourceGroup(ctx context.Context, result.cslr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cslr.hasNextLink() && result.cslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -512,6 +516,7 @@ func (client ConfigurationStoresClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -575,6 +580,7 @@ func (client ConfigurationStoresClient) ListKeys(ctx context.Context, resourceGr result.aklr, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "ListKeys", resp, "Failure responding to request") + return } if result.aklr.hasNextLink() && result.aklr.IsEmpty() { err = result.NextWithContext(ctx) @@ -642,6 +648,7 @@ func (client ConfigurationStoresClient) listKeysNextResults(ctx context.Context, result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "listKeysNextResults", resp, "Failure responding to next results request") + return } return } @@ -704,6 +711,7 @@ func (client ConfigurationStoresClient) ListKeyValue(ctx context.Context, resour result, err = client.ListKeyValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "ListKeyValue", resp, "Failure responding to request") + return } return @@ -790,6 +798,7 @@ func (client ConfigurationStoresClient) RegenerateKey(ctx context.Context, resou result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/preview/appconfiguration/mgmt/2019-02-01-preview/appconfiguration/operations.go b/services/preview/appconfiguration/mgmt/2019-02-01-preview/appconfiguration/operations.go index 5d96e06a1dd2..dc7859329d10 100644 --- a/services/preview/appconfiguration/mgmt/2019-02-01-preview/appconfiguration/operations.go +++ b/services/preview/appconfiguration/mgmt/2019-02-01-preview/appconfiguration/operations.go @@ -79,6 +79,7 @@ func (client OperationsClient) CheckNameAvailability(ctx context.Context, checkN result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.OperationsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client OperationsClient) List(ctx context.Context, skipToken string) (resu result.odlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.OperationsClient", "List", resp, "Failure responding to request") + return } if result.odlr.hasNextLink() && result.odlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -217,6 +219,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/configurationstores.go b/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/configurationstores.go index 9117db3ef1a9..f7b95488c4b0 100644 --- a/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/configurationstores.go +++ b/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/configurationstores.go @@ -253,6 +253,7 @@ func (client ConfigurationStoresClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client ConfigurationStoresClient) List(ctx context.Context, skipToken stri result.cslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "List", resp, "Failure responding to request") + return } if result.cslr.hasNextLink() && result.cslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -395,6 +397,7 @@ func (client ConfigurationStoresClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -449,6 +452,7 @@ func (client ConfigurationStoresClient) ListByResourceGroup(ctx context.Context, result.cslr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cslr.hasNextLink() && result.cslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -515,6 +519,7 @@ func (client ConfigurationStoresClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -578,6 +583,7 @@ func (client ConfigurationStoresClient) ListKeys(ctx context.Context, resourceGr result.aklr, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "ListKeys", resp, "Failure responding to request") + return } if result.aklr.hasNextLink() && result.aklr.IsEmpty() { err = result.NextWithContext(ctx) @@ -645,6 +651,7 @@ func (client ConfigurationStoresClient) listKeysNextResults(ctx context.Context, result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "listKeysNextResults", resp, "Failure responding to next results request") + return } return } @@ -707,6 +714,7 @@ func (client ConfigurationStoresClient) ListKeyValue(ctx context.Context, resour result, err = client.ListKeyValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "ListKeyValue", resp, "Failure responding to request") + return } return @@ -793,6 +801,7 @@ func (client ConfigurationStoresClient) RegenerateKey(ctx context.Context, resou result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/operations.go b/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/operations.go index 2442cee5a03f..de5ced543ca0 100644 --- a/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/operations.go +++ b/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/operations.go @@ -79,6 +79,7 @@ func (client OperationsClient) CheckNameAvailability(ctx context.Context, checkN result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.OperationsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client OperationsClient) List(ctx context.Context, skipToken string) (resu result.odlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.OperationsClient", "List", resp, "Failure responding to request") + return } if result.odlr.hasNextLink() && result.odlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -217,6 +219,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/privateendpointconnections.go b/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/privateendpointconnections.go index 6930dba1cc9b..c0558b7a7c0a 100644 --- a/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/privateendpointconnections.go +++ b/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/privateendpointconnections.go @@ -263,6 +263,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +349,7 @@ func (client PrivateEndpointConnectionsClient) ListByConfigurationStore(ctx cont result.peclr, err = client.ListByConfigurationStoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.PrivateEndpointConnectionsClient", "ListByConfigurationStore", resp, "Failure responding to request") + return } if result.peclr.hasNextLink() && result.peclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -412,6 +414,7 @@ func (client PrivateEndpointConnectionsClient) listByConfigurationStoreNextResul result, err = client.ListByConfigurationStoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.PrivateEndpointConnectionsClient", "listByConfigurationStoreNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/privatelinkresources.go b/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/privatelinkresources.go index ec7dfe9aabb4..918951445faf 100644 --- a/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/privatelinkresources.go +++ b/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/privatelinkresources.go @@ -83,6 +83,7 @@ func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.PrivateLinkResourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client PrivateLinkResourcesClient) ListByConfigurationStore(ctx context.Co result.plrlr, err = client.ListByConfigurationStoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.PrivateLinkResourcesClient", "ListByConfigurationStore", resp, "Failure responding to request") + return } if result.plrlr.hasNextLink() && result.plrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -232,6 +234,7 @@ func (client PrivateLinkResourcesClient) listByConfigurationStoreNextResults(ctx result, err = client.ListByConfigurationStoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.PrivateLinkResourcesClient", "listByConfigurationStoreNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/configurationstores.go b/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/configurationstores.go index d81ad137cf32..44dd0bf36d36 100644 --- a/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/configurationstores.go +++ b/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/configurationstores.go @@ -253,6 +253,7 @@ func (client ConfigurationStoresClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client ConfigurationStoresClient) List(ctx context.Context, skipToken stri result.cslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "List", resp, "Failure responding to request") + return } if result.cslr.hasNextLink() && result.cslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -395,6 +397,7 @@ func (client ConfigurationStoresClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -449,6 +452,7 @@ func (client ConfigurationStoresClient) ListByResourceGroup(ctx context.Context, result.cslr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cslr.hasNextLink() && result.cslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -515,6 +519,7 @@ func (client ConfigurationStoresClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -578,6 +583,7 @@ func (client ConfigurationStoresClient) ListKeys(ctx context.Context, resourceGr result.aklr, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "ListKeys", resp, "Failure responding to request") + return } if result.aklr.hasNextLink() && result.aklr.IsEmpty() { err = result.NextWithContext(ctx) @@ -645,6 +651,7 @@ func (client ConfigurationStoresClient) listKeysNextResults(ctx context.Context, result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "listKeysNextResults", resp, "Failure responding to next results request") + return } return } @@ -705,6 +712,7 @@ func (client ConfigurationStoresClient) RegenerateKey(ctx context.Context, resou result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/keyvalues.go b/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/keyvalues.go index e8641227037a..39b071a529bd 100644 --- a/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/keyvalues.go +++ b/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/keyvalues.go @@ -84,6 +84,7 @@ func (client KeyValuesClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.KeyValuesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -263,6 +264,7 @@ func (client KeyValuesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.KeyValuesClient", "Get", resp, "Failure responding to request") + return } return @@ -351,6 +353,7 @@ func (client KeyValuesClient) ListByConfigurationStore(ctx context.Context, reso result.kvlr, err = client.ListByConfigurationStoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.KeyValuesClient", "ListByConfigurationStore", resp, "Failure responding to request") + return } if result.kvlr.hasNextLink() && result.kvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -418,6 +421,7 @@ func (client KeyValuesClient) listByConfigurationStoreNextResults(ctx context.Co result, err = client.ListByConfigurationStoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.KeyValuesClient", "listByConfigurationStoreNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/operations.go b/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/operations.go index a2e5e8ca6c4e..5373b0e3aeb0 100644 --- a/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/operations.go +++ b/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/operations.go @@ -79,6 +79,7 @@ func (client OperationsClient) CheckNameAvailability(ctx context.Context, checkN result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.OperationsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client OperationsClient) List(ctx context.Context, skipToken string) (resu result.odlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.OperationsClient", "List", resp, "Failure responding to request") + return } if result.odlr.hasNextLink() && result.odlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -217,6 +219,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/privateendpointconnections.go b/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/privateendpointconnections.go index 1b2b070fa798..fb9a5afc48e7 100644 --- a/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/privateendpointconnections.go +++ b/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/privateendpointconnections.go @@ -263,6 +263,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +349,7 @@ func (client PrivateEndpointConnectionsClient) ListByConfigurationStore(ctx cont result.peclr, err = client.ListByConfigurationStoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.PrivateEndpointConnectionsClient", "ListByConfigurationStore", resp, "Failure responding to request") + return } if result.peclr.hasNextLink() && result.peclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -412,6 +414,7 @@ func (client PrivateEndpointConnectionsClient) listByConfigurationStoreNextResul result, err = client.ListByConfigurationStoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.PrivateEndpointConnectionsClient", "listByConfigurationStoreNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/privatelinkresources.go b/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/privatelinkresources.go index 9e1fa08a4ef5..a4aa0a8cc918 100644 --- a/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/privatelinkresources.go +++ b/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/privatelinkresources.go @@ -83,6 +83,7 @@ func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.PrivateLinkResourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client PrivateLinkResourcesClient) ListByConfigurationStore(ctx context.Co result.plrlr, err = client.ListByConfigurationStoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.PrivateLinkResourcesClient", "ListByConfigurationStore", resp, "Failure responding to request") + return } if result.plrlr.hasNextLink() && result.plrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -232,6 +234,7 @@ func (client PrivateLinkResourcesClient) listByConfigurationStoreNextResults(ctx result, err = client.ListByConfigurationStoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appconfiguration.PrivateLinkResourcesClient", "listByConfigurationStoreNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/appinsights/v1/insights/events.go b/services/preview/appinsights/v1/insights/events.go index 4211a965945e..5af48d92341c 100644 --- a/services/preview/appinsights/v1/insights/events.go +++ b/services/preview/appinsights/v1/insights/events.go @@ -78,6 +78,7 @@ func (client EventsClient) Get(ctx context.Context, appID string, eventType Even result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.EventsClient", "Get", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client EventsClient) GetByType(ctx context.Context, appID string, eventTyp result, err = client.GetByTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.EventsClient", "GetByType", resp, "Failure responding to request") + return } return @@ -269,6 +271,7 @@ func (client EventsClient) GetOdataMetadata(ctx context.Context, appID string) ( result, err = client.GetOdataMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.EventsClient", "GetOdataMetadata", resp, "Failure responding to request") + return } return diff --git a/services/preview/appinsights/v1/insights/metadata.go b/services/preview/appinsights/v1/insights/metadata.go index 21fc22743ad8..6805f4c222ed 100644 --- a/services/preview/appinsights/v1/insights/metadata.go +++ b/services/preview/appinsights/v1/insights/metadata.go @@ -72,6 +72,7 @@ func (client MetadataClient) Get(ctx context.Context, appID string) (result Meta result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetadataClient", "Get", resp, "Failure responding to request") + return } return @@ -139,6 +140,7 @@ func (client MetadataClient) Post(ctx context.Context, appID string) (result Met result, err = client.PostResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetadataClient", "Post", resp, "Failure responding to request") + return } return diff --git a/services/preview/appinsights/v1/insights/metrics.go b/services/preview/appinsights/v1/insights/metrics.go index e7850232fb9c..9379458cf460 100644 --- a/services/preview/appinsights/v1/insights/metrics.go +++ b/services/preview/appinsights/v1/insights/metrics.go @@ -104,6 +104,7 @@ func (client MetricsClient) Get(ctx context.Context, appID string, metricID Metr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricsClient", "Get", resp, "Failure responding to request") + return } return @@ -196,6 +197,7 @@ func (client MetricsClient) GetMetadata(ctx context.Context, appID string) (resu result, err = client.GetMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricsClient", "GetMetadata", resp, "Failure responding to request") + return } return @@ -270,6 +272,7 @@ func (client MetricsClient) GetMultiple(ctx context.Context, appID string, body result, err = client.GetMultipleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricsClient", "GetMultiple", resp, "Failure responding to request") + return } return diff --git a/services/preview/appinsights/v1/insights/query.go b/services/preview/appinsights/v1/insights/query.go index 0b3363415bb8..b0fc3607c729 100644 --- a/services/preview/appinsights/v1/insights/query.go +++ b/services/preview/appinsights/v1/insights/query.go @@ -83,6 +83,7 @@ func (client QueryClient) Execute(ctx context.Context, appID string, body QueryB result, err = client.ExecuteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.QueryClient", "Execute", resp, "Failure responding to request") + return } return diff --git a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/apps.go b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/apps.go index bd9c4f09bcc6..b64734cfa25a 100644 --- a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/apps.go +++ b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/apps.go @@ -179,6 +179,7 @@ func (client AppsClient) Delete(ctx context.Context, resourceGroupName string, s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.AppsClient", "Delete", resp, "Failure responding to request") + return } return @@ -257,6 +258,7 @@ func (client AppsClient) Get(ctx context.Context, resourceGroupName string, serv result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.AppsClient", "Get", resp, "Failure responding to request") + return } return @@ -338,6 +340,7 @@ func (client AppsClient) GetResourceUploadURL(ctx context.Context, resourceGroup result, err = client.GetResourceUploadURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.AppsClient", "GetResourceUploadURL", resp, "Failure responding to request") + return } return @@ -416,6 +419,7 @@ func (client AppsClient) List(ctx context.Context, resourceGroupName string, ser result.arc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.AppsClient", "List", resp, "Failure responding to request") + return } if result.arc.hasNextLink() && result.arc.IsEmpty() { err = result.NextWithContext(ctx) @@ -480,6 +484,7 @@ func (client AppsClient) listNextResults(ctx context.Context, lastResults AppRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.AppsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/bindings.go b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/bindings.go index b085cc70681a..5ffa076f8c95 100644 --- a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/bindings.go +++ b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/bindings.go @@ -76,6 +76,7 @@ func (client BindingsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.BindingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client BindingsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.BindingsClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client BindingsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.BindingsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client BindingsClient) List(ctx context.Context, resourceGroupName string, result.brc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.BindingsClient", "List", resp, "Failure responding to request") + return } if result.brc.hasNextLink() && result.brc.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +386,7 @@ func (client BindingsClient) listNextResults(ctx context.Context, lastResults Bi result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.BindingsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -437,6 +442,7 @@ func (client BindingsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.BindingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/certificates.go b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/certificates.go index aad52ad4af60..6b7cf22677f3 100644 --- a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/certificates.go +++ b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/certificates.go @@ -85,6 +85,7 @@ func (client CertificatesClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.CertificatesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client CertificatesClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.CertificatesClient", "Delete", resp, "Failure responding to request") + return } return @@ -242,6 +244,7 @@ func (client CertificatesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.CertificatesClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +323,7 @@ func (client CertificatesClient) List(ctx context.Context, resourceGroupName str result.crc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.CertificatesClient", "List", resp, "Failure responding to request") + return } if result.crc.hasNextLink() && result.crc.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +388,7 @@ func (client CertificatesClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.CertificatesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/customdomains.go b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/customdomains.go index 9ebd936e176d..2f8f240460cf 100644 --- a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/customdomains.go +++ b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/customdomains.go @@ -77,6 +77,7 @@ func (client CustomDomainsClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.CustomDomainsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client CustomDomainsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.CustomDomainsClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client CustomDomainsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.CustomDomainsClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +321,7 @@ func (client CustomDomainsClient) List(ctx context.Context, resourceGroupName st result.cdrc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.CustomDomainsClient", "List", resp, "Failure responding to request") + return } if result.cdrc.hasNextLink() && result.cdrc.IsEmpty() { err = result.NextWithContext(ctx) @@ -383,6 +387,7 @@ func (client CustomDomainsClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.CustomDomainsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -438,6 +443,7 @@ func (client CustomDomainsClient) Patch(ctx context.Context, resourceGroupName s result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.CustomDomainsClient", "Patch", resp, "Failure responding to request") + return } return @@ -525,6 +531,7 @@ func (client CustomDomainsClient) Validate(ctx context.Context, resourceGroupNam result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.CustomDomainsClient", "Validate", resp, "Failure responding to request") + return } return diff --git a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/deployments.go b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/deployments.go index 76aeed30d8b4..83414abc8fc5 100644 --- a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/deployments.go +++ b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/deployments.go @@ -158,6 +158,7 @@ func (client DeploymentsClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.DeploymentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +238,7 @@ func (client DeploymentsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.DeploymentsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +319,7 @@ func (client DeploymentsClient) GetLogFileURL(ctx context.Context, resourceGroup result, err = client.GetLogFileURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.DeploymentsClient", "GetLogFileURL", resp, "Failure responding to request") + return } return @@ -398,6 +401,7 @@ func (client DeploymentsClient) List(ctx context.Context, resourceGroupName stri result.drc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.DeploymentsClient", "List", resp, "Failure responding to request") + return } if result.drc.hasNextLink() && result.drc.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +470,7 @@ func (client DeploymentsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.DeploymentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -520,6 +525,7 @@ func (client DeploymentsClient) ListClusterAllDeployments(ctx context.Context, r result.drc, err = client.ListClusterAllDeploymentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.DeploymentsClient", "ListClusterAllDeployments", resp, "Failure responding to request") + return } if result.drc.hasNextLink() && result.drc.IsEmpty() { err = result.NextWithContext(ctx) @@ -587,6 +593,7 @@ func (client DeploymentsClient) listClusterAllDeploymentsNextResults(ctx context result, err = client.ListClusterAllDeploymentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.DeploymentsClient", "listClusterAllDeploymentsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/operations.go b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/operations.go index 4367fb7eab98..e6b30c2b6354 100644 --- a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/operations.go +++ b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result AvailableOperat result.ao, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ao.hasNextLink() && result.ao.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/runtimeversions.go b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/runtimeversions.go index 8d8c0ef03916..582df18f6e7d 100644 --- a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/runtimeversions.go +++ b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/runtimeversions.go @@ -69,6 +69,7 @@ func (client RuntimeVersionsClient) ListRuntimeVersions(ctx context.Context) (re result, err = client.ListRuntimeVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.RuntimeVersionsClient", "ListRuntimeVersions", resp, "Failure responding to request") + return } return diff --git a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/services.go b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/services.go index 3056c4d9c5ea..5dc61a4a86c3 100644 --- a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/services.go +++ b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/services.go @@ -80,6 +80,7 @@ func (client ServicesClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.ServicesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -324,6 +325,7 @@ func (client ServicesClient) DisableTestEndpoint(ctx context.Context, resourceGr result, err = client.DisableTestEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.ServicesClient", "DisableTestEndpoint", resp, "Failure responding to request") + return } return @@ -399,6 +401,7 @@ func (client ServicesClient) EnableTestEndpoint(ctx context.Context, resourceGro result, err = client.EnableTestEndpointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.ServicesClient", "EnableTestEndpoint", resp, "Failure responding to request") + return } return @@ -475,6 +478,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -551,6 +555,7 @@ func (client ServicesClient) List(ctx context.Context, resourceGroupName string) result.srl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.ServicesClient", "List", resp, "Failure responding to request") + return } if result.srl.hasNextLink() && result.srl.IsEmpty() { err = result.NextWithContext(ctx) @@ -614,6 +619,7 @@ func (client ServicesClient) listNextResults(ctx context.Context, lastResults Se result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.ServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -663,6 +669,7 @@ func (client ServicesClient) ListBySubscription(ctx context.Context) (result Ser result.srl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.ServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.srl.hasNextLink() && result.srl.IsEmpty() { err = result.NextWithContext(ctx) @@ -725,6 +732,7 @@ func (client ServicesClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.ServicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -777,6 +785,7 @@ func (client ServicesClient) ListTestKeys(ctx context.Context, resourceGroupName result, err = client.ListTestKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.ServicesClient", "ListTestKeys", resp, "Failure responding to request") + return } return @@ -854,6 +863,7 @@ func (client ServicesClient) RegenerateTestKey(ctx context.Context, resourceGrou result, err = client.RegenerateTestKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.ServicesClient", "RegenerateTestKey", resp, "Failure responding to request") + return } return diff --git a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/sku.go b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/sku.go index 20940b56fa02..252f6ca95fae 100644 --- a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/sku.go +++ b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/sku.go @@ -70,6 +70,7 @@ func (client SkuClient) List(ctx context.Context) (result ResourceSkuCollectionP result.rsc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.SkuClient", "List", resp, "Failure responding to request") + return } if result.rsc.hasNextLink() && result.rsc.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client SkuClient) listNextResults(ctx context.Context, lastResults Resourc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.SkuClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/authorization/mgmt/2017-10-01-preview/authorization/classicadministrators.go b/services/preview/authorization/mgmt/2017-10-01-preview/authorization/classicadministrators.go index 5dd15f2c9ea0..e5f48131f173 100644 --- a/services/preview/authorization/mgmt/2017-10-01-preview/authorization/classicadministrators.go +++ b/services/preview/authorization/mgmt/2017-10-01-preview/authorization/classicadministrators.go @@ -74,6 +74,7 @@ func (client ClassicAdministratorsClient) List(ctx context.Context) (result Clas result.calr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.ClassicAdministratorsClient", "List", resp, "Failure responding to request") + return } if result.calr.hasNextLink() && result.calr.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client ClassicAdministratorsClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.ClassicAdministratorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/authorization/mgmt/2017-10-01-preview/authorization/globaladministrator.go b/services/preview/authorization/mgmt/2017-10-01-preview/authorization/globaladministrator.go index 4b4a3ce3f6ca..726be1622b35 100644 --- a/services/preview/authorization/mgmt/2017-10-01-preview/authorization/globaladministrator.go +++ b/services/preview/authorization/mgmt/2017-10-01-preview/authorization/globaladministrator.go @@ -73,6 +73,7 @@ func (client GlobalAdministratorClient) ElevateAccess(ctx context.Context) (resu result, err = client.ElevateAccessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.GlobalAdministratorClient", "ElevateAccess", resp, "Failure responding to request") + return } return diff --git a/services/preview/authorization/mgmt/2017-10-01-preview/authorization/permissions.go b/services/preview/authorization/mgmt/2017-10-01-preview/authorization/permissions.go index 65606f5b86de..e7b7e8b3cbb4 100644 --- a/services/preview/authorization/mgmt/2017-10-01-preview/authorization/permissions.go +++ b/services/preview/authorization/mgmt/2017-10-01-preview/authorization/permissions.go @@ -79,6 +79,7 @@ func (client PermissionsClient) ListForResource(ctx context.Context, resourceGro result.pgr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.PermissionsClient", "ListForResource", resp, "Failure responding to request") + return } if result.pgr.hasNextLink() && result.pgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client PermissionsClient) listForResourceNextResults(ctx context.Context, result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.PermissionsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -197,6 +199,7 @@ func (client PermissionsClient) ListForResourceGroup(ctx context.Context, resour result.pgr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.PermissionsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.pgr.hasNextLink() && result.pgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -260,6 +263,7 @@ func (client PermissionsClient) listForResourceGroupNextResults(ctx context.Cont result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.PermissionsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/authorization/mgmt/2017-10-01-preview/authorization/provideroperationsmetadata.go b/services/preview/authorization/mgmt/2017-10-01-preview/authorization/provideroperationsmetadata.go index ab8f51455a1f..48fcc45c287c 100644 --- a/services/preview/authorization/mgmt/2017-10-01-preview/authorization/provideroperationsmetadata.go +++ b/services/preview/authorization/mgmt/2017-10-01-preview/authorization/provideroperationsmetadata.go @@ -77,6 +77,7 @@ func (client ProviderOperationsMetadataClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.ProviderOperationsMetadataClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client ProviderOperationsMetadataClient) List(ctx context.Context, APIVers result.pomlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.ProviderOperationsMetadataClient", "List", resp, "Failure responding to request") + return } if result.pomlr.hasNextLink() && result.pomlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -217,6 +219,7 @@ func (client ProviderOperationsMetadataClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.ProviderOperationsMetadataClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/authorization/mgmt/2017-10-01-preview/authorization/roleassignments.go b/services/preview/authorization/mgmt/2017-10-01-preview/authorization/roleassignments.go index acb3ba9d744e..03545327b2a8 100644 --- a/services/preview/authorization/mgmt/2017-10-01-preview/authorization/roleassignments.go +++ b/services/preview/authorization/mgmt/2017-10-01-preview/authorization/roleassignments.go @@ -80,6 +80,7 @@ func (client RoleAssignmentsClient) Create(ctx context.Context, scope string, ro result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "Create", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client RoleAssignmentsClient) CreateByID(ctx context.Context, roleAssignme result, err = client.CreateByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "CreateByID", resp, "Failure responding to request") + return } return @@ -231,6 +233,7 @@ func (client RoleAssignmentsClient) Delete(ctx context.Context, scope string, ro result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -304,6 +307,7 @@ func (client RoleAssignmentsClient) DeleteByID(ctx context.Context, roleAssignme result, err = client.DeleteByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "DeleteByID", resp, "Failure responding to request") + return } return @@ -377,6 +381,7 @@ func (client RoleAssignmentsClient) Get(ctx context.Context, scope string, roleA result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -450,6 +455,7 @@ func (client RoleAssignmentsClient) GetByID(ctx context.Context, roleAssignmentI result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -525,6 +531,7 @@ func (client RoleAssignmentsClient) List(ctx context.Context, filter string) (re result.ralr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "List", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -590,6 +597,7 @@ func (client RoleAssignmentsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -648,6 +656,7 @@ func (client RoleAssignmentsClient) ListForResource(ctx context.Context, resourc result.ralr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "ListForResource", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -718,6 +727,7 @@ func (client RoleAssignmentsClient) listForResourceNextResults(ctx context.Conte result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -772,6 +782,7 @@ func (client RoleAssignmentsClient) ListForResourceGroup(ctx context.Context, re result.ralr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -838,6 +849,7 @@ func (client RoleAssignmentsClient) listForResourceGroupNextResults(ctx context. result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -892,6 +904,7 @@ func (client RoleAssignmentsClient) ListForScope(ctx context.Context, scope stri result.ralr, err = client.ListForScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "ListForScope", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -957,6 +970,7 @@ func (client RoleAssignmentsClient) listForScopeNextResults(ctx context.Context, result, err = client.ListForScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "listForScopeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/authorization/mgmt/2017-10-01-preview/authorization/roledefinitions.go b/services/preview/authorization/mgmt/2017-10-01-preview/authorization/roledefinitions.go index 61222d2873c4..d4437daa6956 100644 --- a/services/preview/authorization/mgmt/2017-10-01-preview/authorization/roledefinitions.go +++ b/services/preview/authorization/mgmt/2017-10-01-preview/authorization/roledefinitions.go @@ -76,6 +76,7 @@ func (client RoleDefinitionsClient) CreateOrUpdate(ctx context.Context, scope st result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client RoleDefinitionsClient) Delete(ctx context.Context, scope string, ro result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client RoleDefinitionsClient) Get(ctx context.Context, scope string, roleD result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +308,7 @@ func (client RoleDefinitionsClient) GetByID(ctx context.Context, roleDefinitionI result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -380,6 +384,7 @@ func (client RoleDefinitionsClient) List(ctx context.Context, scope string, filt result.rdlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "List", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -445,6 +450,7 @@ func (client RoleDefinitionsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/authorization/mgmt/2018-01-01-preview/authorization/classicadministrators.go b/services/preview/authorization/mgmt/2018-01-01-preview/authorization/classicadministrators.go index 319ac6eb704a..d88b068c201a 100644 --- a/services/preview/authorization/mgmt/2018-01-01-preview/authorization/classicadministrators.go +++ b/services/preview/authorization/mgmt/2018-01-01-preview/authorization/classicadministrators.go @@ -71,6 +71,7 @@ func (client ClassicAdministratorsClient) List(ctx context.Context) (result Clas result.calr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.ClassicAdministratorsClient", "List", resp, "Failure responding to request") + return } if result.calr.hasNextLink() && result.calr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ClassicAdministratorsClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.ClassicAdministratorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/authorization/mgmt/2018-01-01-preview/authorization/globaladministrator.go b/services/preview/authorization/mgmt/2018-01-01-preview/authorization/globaladministrator.go index 0bfb4187ff48..8eb18e9189ab 100644 --- a/services/preview/authorization/mgmt/2018-01-01-preview/authorization/globaladministrator.go +++ b/services/preview/authorization/mgmt/2018-01-01-preview/authorization/globaladministrator.go @@ -70,6 +70,7 @@ func (client GlobalAdministratorClient) ElevateAccess(ctx context.Context) (resu result, err = client.ElevateAccessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.GlobalAdministratorClient", "ElevateAccess", resp, "Failure responding to request") + return } return diff --git a/services/preview/authorization/mgmt/2018-01-01-preview/authorization/permissions.go b/services/preview/authorization/mgmt/2018-01-01-preview/authorization/permissions.go index a88c01750967..a6a4dcd6615d 100644 --- a/services/preview/authorization/mgmt/2018-01-01-preview/authorization/permissions.go +++ b/services/preview/authorization/mgmt/2018-01-01-preview/authorization/permissions.go @@ -76,6 +76,7 @@ func (client PermissionsClient) ListForResource(ctx context.Context, resourceGro result.pgr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.PermissionsClient", "ListForResource", resp, "Failure responding to request") + return } if result.pgr.hasNextLink() && result.pgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client PermissionsClient) listForResourceNextResults(ctx context.Context, result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.PermissionsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -194,6 +196,7 @@ func (client PermissionsClient) ListForResourceGroup(ctx context.Context, resour result.pgr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.PermissionsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.pgr.hasNextLink() && result.pgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -257,6 +260,7 @@ func (client PermissionsClient) listForResourceGroupNextResults(ctx context.Cont result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.PermissionsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/authorization/mgmt/2018-01-01-preview/authorization/provideroperationsmetadata.go b/services/preview/authorization/mgmt/2018-01-01-preview/authorization/provideroperationsmetadata.go index 546a9f17fdb7..da37c0004aa1 100644 --- a/services/preview/authorization/mgmt/2018-01-01-preview/authorization/provideroperationsmetadata.go +++ b/services/preview/authorization/mgmt/2018-01-01-preview/authorization/provideroperationsmetadata.go @@ -74,6 +74,7 @@ func (client ProviderOperationsMetadataClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.ProviderOperationsMetadataClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client ProviderOperationsMetadataClient) List(ctx context.Context, expand result.pomlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.ProviderOperationsMetadataClient", "List", resp, "Failure responding to request") + return } if result.pomlr.hasNextLink() && result.pomlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client ProviderOperationsMetadataClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.ProviderOperationsMetadataClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/authorization/mgmt/2018-01-01-preview/authorization/roleassignments.go b/services/preview/authorization/mgmt/2018-01-01-preview/authorization/roleassignments.go index 8ebf8f929b00..f0c094817251 100644 --- a/services/preview/authorization/mgmt/2018-01-01-preview/authorization/roleassignments.go +++ b/services/preview/authorization/mgmt/2018-01-01-preview/authorization/roleassignments.go @@ -87,6 +87,7 @@ func (client RoleAssignmentsClient) Create(ctx context.Context, scope string, ro result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "Create", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client RoleAssignmentsClient) CreateByID(ctx context.Context, roleID strin result, err = client.CreateByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "CreateByID", resp, "Failure responding to request") + return } return @@ -247,6 +249,7 @@ func (client RoleAssignmentsClient) Delete(ctx context.Context, scope string, ro result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -320,6 +323,7 @@ func (client RoleAssignmentsClient) DeleteByID(ctx context.Context, roleID strin result, err = client.DeleteByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "DeleteByID", resp, "Failure responding to request") + return } return @@ -393,6 +397,7 @@ func (client RoleAssignmentsClient) Get(ctx context.Context, scope string, roleA result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -466,6 +471,7 @@ func (client RoleAssignmentsClient) GetByID(ctx context.Context, roleID string) result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -541,6 +547,7 @@ func (client RoleAssignmentsClient) List(ctx context.Context, filter string) (re result.ralr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "List", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -606,6 +613,7 @@ func (client RoleAssignmentsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -664,6 +672,7 @@ func (client RoleAssignmentsClient) ListForResource(ctx context.Context, resourc result.ralr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "ListForResource", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -734,6 +743,7 @@ func (client RoleAssignmentsClient) listForResourceNextResults(ctx context.Conte result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -788,6 +798,7 @@ func (client RoleAssignmentsClient) ListForResourceGroup(ctx context.Context, re result.ralr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -854,6 +865,7 @@ func (client RoleAssignmentsClient) listForResourceGroupNextResults(ctx context. result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -908,6 +920,7 @@ func (client RoleAssignmentsClient) ListForScope(ctx context.Context, scope stri result.ralr, err = client.ListForScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "ListForScope", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -973,6 +986,7 @@ func (client RoleAssignmentsClient) listForScopeNextResults(ctx context.Context, result, err = client.ListForScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "listForScopeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/authorization/mgmt/2018-01-01-preview/authorization/roledefinitions.go b/services/preview/authorization/mgmt/2018-01-01-preview/authorization/roledefinitions.go index 1cf2f49345b0..9e25c8eb8b12 100644 --- a/services/preview/authorization/mgmt/2018-01-01-preview/authorization/roledefinitions.go +++ b/services/preview/authorization/mgmt/2018-01-01-preview/authorization/roledefinitions.go @@ -73,6 +73,7 @@ func (client RoleDefinitionsClient) CreateOrUpdate(ctx context.Context, scope st result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client RoleDefinitionsClient) Delete(ctx context.Context, scope string, ro result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client RoleDefinitionsClient) Get(ctx context.Context, scope string, roleD result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +305,7 @@ func (client RoleDefinitionsClient) GetByID(ctx context.Context, roleID string) result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -377,6 +381,7 @@ func (client RoleDefinitionsClient) List(ctx context.Context, scope string, filt result.rdlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "List", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -442,6 +447,7 @@ func (client RoleDefinitionsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/authorization/mgmt/2018-07-01-preview/authorization/classicadministrators.go b/services/preview/authorization/mgmt/2018-07-01-preview/authorization/classicadministrators.go index 319ac6eb704a..d88b068c201a 100644 --- a/services/preview/authorization/mgmt/2018-07-01-preview/authorization/classicadministrators.go +++ b/services/preview/authorization/mgmt/2018-07-01-preview/authorization/classicadministrators.go @@ -71,6 +71,7 @@ func (client ClassicAdministratorsClient) List(ctx context.Context) (result Clas result.calr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.ClassicAdministratorsClient", "List", resp, "Failure responding to request") + return } if result.calr.hasNextLink() && result.calr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ClassicAdministratorsClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.ClassicAdministratorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/authorization/mgmt/2018-07-01-preview/authorization/denyassignments.go b/services/preview/authorization/mgmt/2018-07-01-preview/authorization/denyassignments.go index 06bfcb2731ec..ca5a38443bfe 100644 --- a/services/preview/authorization/mgmt/2018-07-01-preview/authorization/denyassignments.go +++ b/services/preview/authorization/mgmt/2018-07-01-preview/authorization/denyassignments.go @@ -72,6 +72,7 @@ func (client DenyAssignmentsClient) Get(ctx context.Context, scope string, denyA result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.DenyAssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client DenyAssignmentsClient) GetByID(ctx context.Context, denyAssignmentI result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.DenyAssignmentsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client DenyAssignmentsClient) List(ctx context.Context, filter string) (re result.dalr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.DenyAssignmentsClient", "List", resp, "Failure responding to request") + return } if result.dalr.hasNextLink() && result.dalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -294,6 +297,7 @@ func (client DenyAssignmentsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.DenyAssignmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -358,6 +362,7 @@ func (client DenyAssignmentsClient) ListForResource(ctx context.Context, resourc result.dalr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.DenyAssignmentsClient", "ListForResource", resp, "Failure responding to request") + return } if result.dalr.hasNextLink() && result.dalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -428,6 +433,7 @@ func (client DenyAssignmentsClient) listForResourceNextResults(ctx context.Conte result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.DenyAssignmentsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -488,6 +494,7 @@ func (client DenyAssignmentsClient) ListForResourceGroup(ctx context.Context, re result.dalr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.DenyAssignmentsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.dalr.hasNextLink() && result.dalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -554,6 +561,7 @@ func (client DenyAssignmentsClient) listForResourceGroupNextResults(ctx context. result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.DenyAssignmentsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -614,6 +622,7 @@ func (client DenyAssignmentsClient) ListForScope(ctx context.Context, scope stri result.dalr, err = client.ListForScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.DenyAssignmentsClient", "ListForScope", resp, "Failure responding to request") + return } if result.dalr.hasNextLink() && result.dalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -679,6 +688,7 @@ func (client DenyAssignmentsClient) listForScopeNextResults(ctx context.Context, result, err = client.ListForScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.DenyAssignmentsClient", "listForScopeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/authorization/mgmt/2018-07-01-preview/authorization/globaladministrator.go b/services/preview/authorization/mgmt/2018-07-01-preview/authorization/globaladministrator.go index 0bfb4187ff48..8eb18e9189ab 100644 --- a/services/preview/authorization/mgmt/2018-07-01-preview/authorization/globaladministrator.go +++ b/services/preview/authorization/mgmt/2018-07-01-preview/authorization/globaladministrator.go @@ -70,6 +70,7 @@ func (client GlobalAdministratorClient) ElevateAccess(ctx context.Context) (resu result, err = client.ElevateAccessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.GlobalAdministratorClient", "ElevateAccess", resp, "Failure responding to request") + return } return diff --git a/services/preview/authorization/mgmt/2018-07-01-preview/authorization/permissions.go b/services/preview/authorization/mgmt/2018-07-01-preview/authorization/permissions.go index a88c01750967..a6a4dcd6615d 100644 --- a/services/preview/authorization/mgmt/2018-07-01-preview/authorization/permissions.go +++ b/services/preview/authorization/mgmt/2018-07-01-preview/authorization/permissions.go @@ -76,6 +76,7 @@ func (client PermissionsClient) ListForResource(ctx context.Context, resourceGro result.pgr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.PermissionsClient", "ListForResource", resp, "Failure responding to request") + return } if result.pgr.hasNextLink() && result.pgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client PermissionsClient) listForResourceNextResults(ctx context.Context, result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.PermissionsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -194,6 +196,7 @@ func (client PermissionsClient) ListForResourceGroup(ctx context.Context, resour result.pgr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.PermissionsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.pgr.hasNextLink() && result.pgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -257,6 +260,7 @@ func (client PermissionsClient) listForResourceGroupNextResults(ctx context.Cont result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.PermissionsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/authorization/mgmt/2018-07-01-preview/authorization/provideroperationsmetadata.go b/services/preview/authorization/mgmt/2018-07-01-preview/authorization/provideroperationsmetadata.go index 546a9f17fdb7..da37c0004aa1 100644 --- a/services/preview/authorization/mgmt/2018-07-01-preview/authorization/provideroperationsmetadata.go +++ b/services/preview/authorization/mgmt/2018-07-01-preview/authorization/provideroperationsmetadata.go @@ -74,6 +74,7 @@ func (client ProviderOperationsMetadataClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.ProviderOperationsMetadataClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client ProviderOperationsMetadataClient) List(ctx context.Context, expand result.pomlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.ProviderOperationsMetadataClient", "List", resp, "Failure responding to request") + return } if result.pomlr.hasNextLink() && result.pomlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client ProviderOperationsMetadataClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.ProviderOperationsMetadataClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/authorization/mgmt/2018-07-01-preview/authorization/roleassignments.go b/services/preview/authorization/mgmt/2018-07-01-preview/authorization/roleassignments.go index 8ebf8f929b00..f0c094817251 100644 --- a/services/preview/authorization/mgmt/2018-07-01-preview/authorization/roleassignments.go +++ b/services/preview/authorization/mgmt/2018-07-01-preview/authorization/roleassignments.go @@ -87,6 +87,7 @@ func (client RoleAssignmentsClient) Create(ctx context.Context, scope string, ro result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "Create", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client RoleAssignmentsClient) CreateByID(ctx context.Context, roleID strin result, err = client.CreateByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "CreateByID", resp, "Failure responding to request") + return } return @@ -247,6 +249,7 @@ func (client RoleAssignmentsClient) Delete(ctx context.Context, scope string, ro result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -320,6 +323,7 @@ func (client RoleAssignmentsClient) DeleteByID(ctx context.Context, roleID strin result, err = client.DeleteByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "DeleteByID", resp, "Failure responding to request") + return } return @@ -393,6 +397,7 @@ func (client RoleAssignmentsClient) Get(ctx context.Context, scope string, roleA result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -466,6 +471,7 @@ func (client RoleAssignmentsClient) GetByID(ctx context.Context, roleID string) result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -541,6 +547,7 @@ func (client RoleAssignmentsClient) List(ctx context.Context, filter string) (re result.ralr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "List", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -606,6 +613,7 @@ func (client RoleAssignmentsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -664,6 +672,7 @@ func (client RoleAssignmentsClient) ListForResource(ctx context.Context, resourc result.ralr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "ListForResource", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -734,6 +743,7 @@ func (client RoleAssignmentsClient) listForResourceNextResults(ctx context.Conte result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -788,6 +798,7 @@ func (client RoleAssignmentsClient) ListForResourceGroup(ctx context.Context, re result.ralr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -854,6 +865,7 @@ func (client RoleAssignmentsClient) listForResourceGroupNextResults(ctx context. result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -908,6 +920,7 @@ func (client RoleAssignmentsClient) ListForScope(ctx context.Context, scope stri result.ralr, err = client.ListForScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "ListForScope", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -973,6 +986,7 @@ func (client RoleAssignmentsClient) listForScopeNextResults(ctx context.Context, result, err = client.ListForScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "listForScopeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/authorization/mgmt/2018-07-01-preview/authorization/roledefinitions.go b/services/preview/authorization/mgmt/2018-07-01-preview/authorization/roledefinitions.go index 1cf2f49345b0..9e25c8eb8b12 100644 --- a/services/preview/authorization/mgmt/2018-07-01-preview/authorization/roledefinitions.go +++ b/services/preview/authorization/mgmt/2018-07-01-preview/authorization/roledefinitions.go @@ -73,6 +73,7 @@ func (client RoleDefinitionsClient) CreateOrUpdate(ctx context.Context, scope st result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client RoleDefinitionsClient) Delete(ctx context.Context, scope string, ro result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client RoleDefinitionsClient) Get(ctx context.Context, scope string, roleD result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +305,7 @@ func (client RoleDefinitionsClient) GetByID(ctx context.Context, roleID string) result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -377,6 +381,7 @@ func (client RoleDefinitionsClient) List(ctx context.Context, scope string, filt result.rdlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "List", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -442,6 +447,7 @@ func (client RoleDefinitionsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/authorization/mgmt/2018-09-01-preview/authorization/classicadministrators.go b/services/preview/authorization/mgmt/2018-09-01-preview/authorization/classicadministrators.go index 319ac6eb704a..d88b068c201a 100644 --- a/services/preview/authorization/mgmt/2018-09-01-preview/authorization/classicadministrators.go +++ b/services/preview/authorization/mgmt/2018-09-01-preview/authorization/classicadministrators.go @@ -71,6 +71,7 @@ func (client ClassicAdministratorsClient) List(ctx context.Context) (result Clas result.calr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.ClassicAdministratorsClient", "List", resp, "Failure responding to request") + return } if result.calr.hasNextLink() && result.calr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ClassicAdministratorsClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.ClassicAdministratorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/authorization/mgmt/2018-09-01-preview/authorization/denyassignments.go b/services/preview/authorization/mgmt/2018-09-01-preview/authorization/denyassignments.go index 06bfcb2731ec..ca5a38443bfe 100644 --- a/services/preview/authorization/mgmt/2018-09-01-preview/authorization/denyassignments.go +++ b/services/preview/authorization/mgmt/2018-09-01-preview/authorization/denyassignments.go @@ -72,6 +72,7 @@ func (client DenyAssignmentsClient) Get(ctx context.Context, scope string, denyA result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.DenyAssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client DenyAssignmentsClient) GetByID(ctx context.Context, denyAssignmentI result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.DenyAssignmentsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client DenyAssignmentsClient) List(ctx context.Context, filter string) (re result.dalr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.DenyAssignmentsClient", "List", resp, "Failure responding to request") + return } if result.dalr.hasNextLink() && result.dalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -294,6 +297,7 @@ func (client DenyAssignmentsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.DenyAssignmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -358,6 +362,7 @@ func (client DenyAssignmentsClient) ListForResource(ctx context.Context, resourc result.dalr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.DenyAssignmentsClient", "ListForResource", resp, "Failure responding to request") + return } if result.dalr.hasNextLink() && result.dalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -428,6 +433,7 @@ func (client DenyAssignmentsClient) listForResourceNextResults(ctx context.Conte result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.DenyAssignmentsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -488,6 +494,7 @@ func (client DenyAssignmentsClient) ListForResourceGroup(ctx context.Context, re result.dalr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.DenyAssignmentsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.dalr.hasNextLink() && result.dalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -554,6 +561,7 @@ func (client DenyAssignmentsClient) listForResourceGroupNextResults(ctx context. result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.DenyAssignmentsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -614,6 +622,7 @@ func (client DenyAssignmentsClient) ListForScope(ctx context.Context, scope stri result.dalr, err = client.ListForScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.DenyAssignmentsClient", "ListForScope", resp, "Failure responding to request") + return } if result.dalr.hasNextLink() && result.dalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -679,6 +688,7 @@ func (client DenyAssignmentsClient) listForScopeNextResults(ctx context.Context, result, err = client.ListForScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.DenyAssignmentsClient", "listForScopeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/authorization/mgmt/2018-09-01-preview/authorization/globaladministrator.go b/services/preview/authorization/mgmt/2018-09-01-preview/authorization/globaladministrator.go index 0bfb4187ff48..8eb18e9189ab 100644 --- a/services/preview/authorization/mgmt/2018-09-01-preview/authorization/globaladministrator.go +++ b/services/preview/authorization/mgmt/2018-09-01-preview/authorization/globaladministrator.go @@ -70,6 +70,7 @@ func (client GlobalAdministratorClient) ElevateAccess(ctx context.Context) (resu result, err = client.ElevateAccessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.GlobalAdministratorClient", "ElevateAccess", resp, "Failure responding to request") + return } return diff --git a/services/preview/authorization/mgmt/2018-09-01-preview/authorization/permissions.go b/services/preview/authorization/mgmt/2018-09-01-preview/authorization/permissions.go index a88c01750967..a6a4dcd6615d 100644 --- a/services/preview/authorization/mgmt/2018-09-01-preview/authorization/permissions.go +++ b/services/preview/authorization/mgmt/2018-09-01-preview/authorization/permissions.go @@ -76,6 +76,7 @@ func (client PermissionsClient) ListForResource(ctx context.Context, resourceGro result.pgr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.PermissionsClient", "ListForResource", resp, "Failure responding to request") + return } if result.pgr.hasNextLink() && result.pgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client PermissionsClient) listForResourceNextResults(ctx context.Context, result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.PermissionsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -194,6 +196,7 @@ func (client PermissionsClient) ListForResourceGroup(ctx context.Context, resour result.pgr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.PermissionsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.pgr.hasNextLink() && result.pgr.IsEmpty() { err = result.NextWithContext(ctx) @@ -257,6 +260,7 @@ func (client PermissionsClient) listForResourceGroupNextResults(ctx context.Cont result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.PermissionsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/authorization/mgmt/2018-09-01-preview/authorization/provideroperationsmetadata.go b/services/preview/authorization/mgmt/2018-09-01-preview/authorization/provideroperationsmetadata.go index 546a9f17fdb7..da37c0004aa1 100644 --- a/services/preview/authorization/mgmt/2018-09-01-preview/authorization/provideroperationsmetadata.go +++ b/services/preview/authorization/mgmt/2018-09-01-preview/authorization/provideroperationsmetadata.go @@ -74,6 +74,7 @@ func (client ProviderOperationsMetadataClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.ProviderOperationsMetadataClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client ProviderOperationsMetadataClient) List(ctx context.Context, expand result.pomlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.ProviderOperationsMetadataClient", "List", resp, "Failure responding to request") + return } if result.pomlr.hasNextLink() && result.pomlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client ProviderOperationsMetadataClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.ProviderOperationsMetadataClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/authorization/mgmt/2018-09-01-preview/authorization/roleassignments.go b/services/preview/authorization/mgmt/2018-09-01-preview/authorization/roleassignments.go index 33749916f77c..d6a8674beaa7 100644 --- a/services/preview/authorization/mgmt/2018-09-01-preview/authorization/roleassignments.go +++ b/services/preview/authorization/mgmt/2018-09-01-preview/authorization/roleassignments.go @@ -87,6 +87,7 @@ func (client RoleAssignmentsClient) Create(ctx context.Context, scope string, ro result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "Create", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client RoleAssignmentsClient) CreateByID(ctx context.Context, roleID strin result, err = client.CreateByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "CreateByID", resp, "Failure responding to request") + return } return @@ -247,6 +249,7 @@ func (client RoleAssignmentsClient) Delete(ctx context.Context, scope string, ro result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -320,6 +323,7 @@ func (client RoleAssignmentsClient) DeleteByID(ctx context.Context, roleID strin result, err = client.DeleteByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "DeleteByID", resp, "Failure responding to request") + return } return @@ -393,6 +397,7 @@ func (client RoleAssignmentsClient) Get(ctx context.Context, scope string, roleA result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -466,6 +471,7 @@ func (client RoleAssignmentsClient) GetByID(ctx context.Context, roleID string) result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -541,6 +547,7 @@ func (client RoleAssignmentsClient) List(ctx context.Context, filter string) (re result.ralr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "List", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -606,6 +613,7 @@ func (client RoleAssignmentsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -664,6 +672,7 @@ func (client RoleAssignmentsClient) ListForResource(ctx context.Context, resourc result.ralr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "ListForResource", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -734,6 +743,7 @@ func (client RoleAssignmentsClient) listForResourceNextResults(ctx context.Conte result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -788,6 +798,7 @@ func (client RoleAssignmentsClient) ListForResourceGroup(ctx context.Context, re result.ralr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -854,6 +865,7 @@ func (client RoleAssignmentsClient) listForResourceGroupNextResults(ctx context. result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -908,6 +920,7 @@ func (client RoleAssignmentsClient) ListForScope(ctx context.Context, scope stri result.ralr, err = client.ListForScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "ListForScope", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -973,6 +986,7 @@ func (client RoleAssignmentsClient) listForScopeNextResults(ctx context.Context, result, err = client.ListForScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleAssignmentsClient", "listForScopeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/authorization/mgmt/2018-09-01-preview/authorization/roledefinitions.go b/services/preview/authorization/mgmt/2018-09-01-preview/authorization/roledefinitions.go index 1cf2f49345b0..9e25c8eb8b12 100644 --- a/services/preview/authorization/mgmt/2018-09-01-preview/authorization/roledefinitions.go +++ b/services/preview/authorization/mgmt/2018-09-01-preview/authorization/roledefinitions.go @@ -73,6 +73,7 @@ func (client RoleDefinitionsClient) CreateOrUpdate(ctx context.Context, scope st result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client RoleDefinitionsClient) Delete(ctx context.Context, scope string, ro result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client RoleDefinitionsClient) Get(ctx context.Context, scope string, roleD result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +305,7 @@ func (client RoleDefinitionsClient) GetByID(ctx context.Context, roleID string) result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -377,6 +381,7 @@ func (client RoleDefinitionsClient) List(ctx context.Context, scope string, filt result.rdlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "List", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -442,6 +447,7 @@ func (client RoleDefinitionsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authorization.RoleDefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automanage/mgmt/2020-06-30-preview/automanage/accounts.go b/services/preview/automanage/mgmt/2020-06-30-preview/automanage/accounts.go index 7262a7714846..2f0f9448c247 100644 --- a/services/preview/automanage/mgmt/2020-06-30-preview/automanage/accounts.go +++ b/services/preview/automanage/mgmt/2020-06-30-preview/automanage/accounts.go @@ -84,6 +84,7 @@ func (client AccountsClient) CreateOrUpdate(ctx context.Context, accountName str result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automanage.AccountsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client AccountsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automanage.AccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -255,6 +257,7 @@ func (client AccountsClient) Get(ctx context.Context, accountName string, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automanage.AccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -339,6 +342,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automanage.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -416,6 +420,7 @@ func (client AccountsClient) ListBySubscription(ctx context.Context) (result Acc result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automanage.AccountsClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -500,6 +505,7 @@ func (client AccountsClient) Update(ctx context.Context, accountName string, res result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automanage.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automanage/mgmt/2020-06-30-preview/automanage/configurationprofileassignments.go b/services/preview/automanage/mgmt/2020-06-30-preview/automanage/configurationprofileassignments.go index cc9f8a91eb8d..86d728395012 100644 --- a/services/preview/automanage/mgmt/2020-06-30-preview/automanage/configurationprofileassignments.go +++ b/services/preview/automanage/mgmt/2020-06-30-preview/automanage/configurationprofileassignments.go @@ -176,6 +176,7 @@ func (client ConfigurationProfileAssignmentsClient) Delete(ctx context.Context, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automanage.ConfigurationProfileAssignmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -262,6 +263,7 @@ func (client ConfigurationProfileAssignmentsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automanage.ConfigurationProfileAssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -347,6 +349,7 @@ func (client ConfigurationProfileAssignmentsClient) List(ctx context.Context, re result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automanage.ConfigurationProfileAssignmentsClient", "List", resp, "Failure responding to request") + return } return @@ -424,6 +427,7 @@ func (client ConfigurationProfileAssignmentsClient) ListBySubscription(ctx conte result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automanage.ConfigurationProfileAssignmentsClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/preview/automanage/mgmt/2020-06-30-preview/automanage/configurationprofilepreferences.go b/services/preview/automanage/mgmt/2020-06-30-preview/automanage/configurationprofilepreferences.go index 84e36c1f443a..216ed738bb25 100644 --- a/services/preview/automanage/mgmt/2020-06-30-preview/automanage/configurationprofilepreferences.go +++ b/services/preview/automanage/mgmt/2020-06-30-preview/automanage/configurationprofilepreferences.go @@ -85,6 +85,7 @@ func (client ConfigurationProfilePreferencesClient) CreateOrUpdate(ctx context.C result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automanage.ConfigurationProfilePreferencesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client ConfigurationProfilePreferencesClient) Delete(ctx context.Context, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automanage.ConfigurationProfilePreferencesClient", "Delete", resp, "Failure responding to request") + return } return @@ -256,6 +258,7 @@ func (client ConfigurationProfilePreferencesClient) Get(ctx context.Context, con result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automanage.ConfigurationProfilePreferencesClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +343,7 @@ func (client ConfigurationProfilePreferencesClient) ListByResourceGroup(ctx cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automanage.ConfigurationProfilePreferencesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -417,6 +421,7 @@ func (client ConfigurationProfilePreferencesClient) ListBySubscription(ctx conte result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automanage.ConfigurationProfilePreferencesClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -501,6 +506,7 @@ func (client ConfigurationProfilePreferencesClient) Update(ctx context.Context, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automanage.ConfigurationProfilePreferencesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automanage/mgmt/2020-06-30-preview/automanage/operations.go b/services/preview/automanage/mgmt/2020-06-30-preview/automanage/operations.go index 34a961e69338..683a613e16e3 100644 --- a/services/preview/automanage/mgmt/2020-06-30-preview/automanage/operations.go +++ b/services/preview/automanage/mgmt/2020-06-30-preview/automanage/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationList, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automanage.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/account.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/account.go index 32de550ac883..143b5fccaa32 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/account.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/account.go @@ -82,6 +82,7 @@ func (client AccountClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client AccountClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "Delete", resp, "Failure responding to request") + return } return @@ -249,6 +251,7 @@ func (client AccountClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +325,7 @@ func (client AccountClient) List(ctx context.Context) (result AccountListResultP result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +388,7 @@ func (client AccountClient) listNextResults(ctx context.Context, lastResults Acc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +448,7 @@ func (client AccountClient) ListByResourceGroup(ctx context.Context, resourceGro result.alr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -506,6 +512,7 @@ func (client AccountClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -566,6 +573,7 @@ func (client AccountClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/activity.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/activity.go index 5b9fe1af4b40..818c8ec6adfe 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/activity.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/activity.go @@ -83,6 +83,7 @@ func (client ActivityClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ActivityClient", "Get", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client ActivityClient) ListByModule(ctx context.Context, resourceGroupName result.alr, err = client.ListByModuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ActivityClient", "ListByModule", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -235,6 +237,7 @@ func (client ActivityClient) listByModuleNextResults(ctx context.Context, lastRe result, err = client.ListByModuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ActivityClient", "listByModuleNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/agentregistrationinformation.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/agentregistrationinformation.go index f1cf5d37fc1c..fd0956fe9f22 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/agentregistrationinformation.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/agentregistrationinformation.go @@ -82,6 +82,7 @@ func (client AgentRegistrationInformationClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AgentRegistrationInformationClient", "Get", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client AgentRegistrationInformationClient) RegenerateKey(ctx context.Conte result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AgentRegistrationInformationClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/certificate.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/certificate.go index a3c4b779ded0..6c02e1644a96 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/certificate.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/certificate.go @@ -87,6 +87,7 @@ func (client CertificateClient) CreateOrUpdate(ctx context.Context, resourceGrou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CertificateClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client CertificateClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CertificateClient", "Delete", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client CertificateClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -343,6 +346,7 @@ func (client CertificateClient) ListByAutomationAccount(ctx context.Context, res result.clr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CertificateClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -407,6 +411,7 @@ func (client CertificateClient) listByAutomationAccountNextResults(ctx context.C result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CertificateClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -468,6 +473,7 @@ func (client CertificateClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CertificateClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/connection.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/connection.go index 1ccc630162e7..67248853885b 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/connection.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/connection.go @@ -87,6 +87,7 @@ func (client ConnectionClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client ConnectionClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionClient", "Delete", resp, "Failure responding to request") + return } return @@ -259,6 +261,7 @@ func (client ConnectionClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +347,7 @@ func (client ConnectionClient) ListByAutomationAccount(ctx context.Context, reso result.clr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -408,6 +412,7 @@ func (client ConnectionClient) listByAutomationAccountNextResults(ctx context.Co result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -469,6 +474,7 @@ func (client ConnectionClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/connectiontype.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/connectiontype.go index 0a219262864f..8288c20681f9 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/connectiontype.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/connectiontype.go @@ -87,6 +87,7 @@ func (client ConnectionTypeClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionTypeClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client ConnectionTypeClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionTypeClient", "Delete", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client ConnectionTypeClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionTypeClient", "Get", resp, "Failure responding to request") + return } return @@ -343,6 +346,7 @@ func (client ConnectionTypeClient) ListByAutomationAccount(ctx context.Context, result.ctlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionTypeClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.ctlr.hasNextLink() && result.ctlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -407,6 +411,7 @@ func (client ConnectionTypeClient) listByAutomationAccountNextResults(ctx contex result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionTypeClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/credential.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/credential.go index 8351a1a68c53..15dcf4db1980 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/credential.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/credential.go @@ -89,6 +89,7 @@ func (client CredentialClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CredentialClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client CredentialClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CredentialClient", "Delete", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client CredentialClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CredentialClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +348,7 @@ func (client CredentialClient) ListByAutomationAccount(ctx context.Context, reso result.clr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CredentialClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -409,6 +413,7 @@ func (client CredentialClient) listByAutomationAccountNextResults(ctx context.Co result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CredentialClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -470,6 +475,7 @@ func (client CredentialClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CredentialClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/dsccompilationjob.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/dsccompilationjob.go index df0409480d0d..3e30f01d5e84 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/dsccompilationjob.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/dsccompilationjob.go @@ -88,6 +88,7 @@ func (client DscCompilationJobClient) Create(ctx context.Context, resourceGroupN result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscCompilationJobClient", "Create", resp, "Failure responding to request") + return } return @@ -175,6 +176,7 @@ func (client DscCompilationJobClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscCompilationJobClient", "Get", resp, "Failure responding to request") + return } return @@ -261,6 +263,7 @@ func (client DscCompilationJobClient) GetStream(ctx context.Context, resourceGro result, err = client.GetStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscCompilationJobClient", "GetStream", resp, "Failure responding to request") + return } return @@ -348,6 +351,7 @@ func (client DscCompilationJobClient) ListByAutomationAccount(ctx context.Contex result.dcjlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscCompilationJobClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.dcjlr.hasNextLink() && result.dcjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -415,6 +419,7 @@ func (client DscCompilationJobClient) listByAutomationAccountNextResults(ctx con result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscCompilationJobClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/dsccompilationjobstream.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/dsccompilationjobstream.go index 177aa5db0eb8..beedd9a64783 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/dsccompilationjobstream.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/dsccompilationjobstream.go @@ -84,6 +84,7 @@ func (client DscCompilationJobStreamClient) ListByJob(ctx context.Context, resou result, err = client.ListByJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscCompilationJobStreamClient", "ListByJob", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/dscconfiguration.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/dscconfiguration.go index 9a1de0fe9239..195bb36fb42a 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/dscconfiguration.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/dscconfiguration.go @@ -93,6 +93,7 @@ func (client DscConfigurationClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client DscConfigurationClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "Delete", resp, "Failure responding to request") + return } return @@ -264,6 +266,7 @@ func (client DscConfigurationClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client DscConfigurationClient) GetContent(ctx context.Context, resourceGro result, err = client.GetContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "GetContent", resp, "Failure responding to request") + return } return @@ -437,6 +441,7 @@ func (client DscConfigurationClient) ListByAutomationAccount(ctx context.Context result.dclr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.dclr.hasNextLink() && result.dclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -513,6 +518,7 @@ func (client DscConfigurationClient) listByAutomationAccountNextResults(ctx cont result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -574,6 +580,7 @@ func (client DscConfigurationClient) Update(ctx context.Context, resourceGroupNa result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/dscnode.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/dscnode.go index 23f2dfa0b845..bb2bbbf8cfe0 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/dscnode.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/dscnode.go @@ -82,6 +82,7 @@ func (client DscNodeClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeClient", "Delete", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client DscNodeClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeClient", "Get", resp, "Failure responding to request") + return } return @@ -253,6 +255,7 @@ func (client DscNodeClient) ListByAutomationAccount(ctx context.Context, resourc result.dnlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.dnlr.hasNextLink() && result.dnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -320,6 +323,7 @@ func (client DscNodeClient) listByAutomationAccountNextResults(ctx context.Conte result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -381,6 +385,7 @@ func (client DscNodeClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/dscnodeconfiguration.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/dscnodeconfiguration.go index 0e4d61ee0d78..78c97ff40b4a 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/dscnodeconfiguration.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/dscnodeconfiguration.go @@ -93,6 +93,7 @@ func (client DscNodeConfigurationClient) CreateOrUpdate(ctx context.Context, res result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeConfigurationClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client DscNodeConfigurationClient) Delete(ctx context.Context, resourceGro result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeConfigurationClient", "Delete", resp, "Failure responding to request") + return } return @@ -264,6 +266,7 @@ func (client DscNodeConfigurationClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeConfigurationClient", "Get", resp, "Failure responding to request") + return } return @@ -350,6 +353,7 @@ func (client DscNodeConfigurationClient) ListByAutomationAccount(ctx context.Con result.dnclr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeConfigurationClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.dnclr.hasNextLink() && result.dnclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -417,6 +421,7 @@ func (client DscNodeConfigurationClient) listByAutomationAccountNextResults(ctx result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeConfigurationClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/fields.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/fields.go index 703c3d807746..94c02fbee8c7 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/fields.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/fields.go @@ -83,6 +83,7 @@ func (client FieldsClient) ListByType(ctx context.Context, resourceGroupName str result, err = client.ListByTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.FieldsClient", "ListByType", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/hybridrunbookworkergroup.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/hybridrunbookworkergroup.go index 660479997c98..ff43cb221b99 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/hybridrunbookworkergroup.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/hybridrunbookworkergroup.go @@ -83,6 +83,7 @@ func (client HybridRunbookWorkerGroupClient) Delete(ctx context.Context, resourc result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.HybridRunbookWorkerGroupClient", "Delete", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client HybridRunbookWorkerGroupClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.HybridRunbookWorkerGroupClient", "Get", resp, "Failure responding to request") + return } return @@ -253,6 +255,7 @@ func (client HybridRunbookWorkerGroupClient) ListByAutomationAccount(ctx context result.hrwglr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.HybridRunbookWorkerGroupClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.hrwglr.hasNextLink() && result.hrwglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -320,6 +323,7 @@ func (client HybridRunbookWorkerGroupClient) listByAutomationAccountNextResults( result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.HybridRunbookWorkerGroupClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -381,6 +385,7 @@ func (client HybridRunbookWorkerGroupClient) Update(ctx context.Context, resourc result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.HybridRunbookWorkerGroupClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/job.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/job.go index f344964b3e71..b5c5a9d70cb1 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/job.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/job.go @@ -86,6 +86,7 @@ func (client JobClient) Create(ctx context.Context, resourceGroupName string, au result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "Create", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client JobClient) Get(ctx context.Context, resourceGroupName string, autom result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "Get", resp, "Failure responding to request") + return } return @@ -268,6 +270,7 @@ func (client JobClient) GetOutput(ctx context.Context, resourceGroupName string, result, err = client.GetOutputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "GetOutput", resp, "Failure responding to request") + return } return @@ -357,6 +360,7 @@ func (client JobClient) GetRunbookContent(ctx context.Context, resourceGroupName result, err = client.GetRunbookContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "GetRunbookContent", resp, "Failure responding to request") + return } return @@ -447,6 +451,7 @@ func (client JobClient) ListByAutomationAccount(ctx context.Context, resourceGro result.jlrv, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.jlrv.hasNextLink() && result.jlrv.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +523,7 @@ func (client JobClient) listByAutomationAccountNextResults(ctx context.Context, result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -579,6 +585,7 @@ func (client JobClient) Resume(ctx context.Context, resourceGroupName string, au result, err = client.ResumeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "Resume", resp, "Failure responding to request") + return } return @@ -668,6 +675,7 @@ func (client JobClient) Stop(ctx context.Context, resourceGroupName string, auto result, err = client.StopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "Stop", resp, "Failure responding to request") + return } return @@ -757,6 +765,7 @@ func (client JobClient) Suspend(ctx context.Context, resourceGroupName string, a result, err = client.SuspendResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "Suspend", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/jobschedule.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/jobschedule.go index 76e9521941ee..8fd0ba1700e2 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/jobschedule.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/jobschedule.go @@ -89,6 +89,7 @@ func (client JobScheduleClient) Create(ctx context.Context, resourceGroupName st result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobScheduleClient", "Create", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client JobScheduleClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobScheduleClient", "Delete", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client JobScheduleClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobScheduleClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +349,7 @@ func (client JobScheduleClient) ListByAutomationAccount(ctx context.Context, res result.jslr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobScheduleClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.jslr.hasNextLink() && result.jslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -413,6 +417,7 @@ func (client JobScheduleClient) listByAutomationAccountNextResults(ctx context.C result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobScheduleClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/jobstream.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/jobstream.go index 2271f5253fa3..4fc7335e79a5 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/jobstream.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/jobstream.go @@ -84,6 +84,7 @@ func (client JobStreamClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobStreamClient", "Get", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client JobStreamClient) ListByJob(ctx context.Context, resourceGroupName s result.jslr, err = client.ListByJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobStreamClient", "ListByJob", resp, "Failure responding to request") + return } if result.jslr.hasNextLink() && result.jslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -249,6 +251,7 @@ func (client JobStreamClient) listByJobNextResults(ctx context.Context, lastResu result, err = client.ListByJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobStreamClient", "listByJobNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/keys.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/keys.go index e5ebfaa4f41f..5648416b80f2 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/keys.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/keys.go @@ -81,6 +81,7 @@ func (client KeysClient) ListByAutomationAccount(ctx context.Context, resourceGr result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.KeysClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/linkedworkspace.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/linkedworkspace.go index 07b98aa047cf..f8ac9fe291f0 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/linkedworkspace.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/linkedworkspace.go @@ -81,6 +81,7 @@ func (client LinkedWorkspaceClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.LinkedWorkspaceClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/module.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/module.go index 79f9841428a9..cb4fa5a041b2 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/module.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/module.go @@ -92,6 +92,7 @@ func (client ModuleClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ModuleClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client ModuleClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ModuleClient", "Delete", resp, "Failure responding to request") + return } return @@ -263,6 +265,7 @@ func (client ModuleClient) Get(ctx context.Context, resourceGroupName string, au result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ModuleClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +351,7 @@ func (client ModuleClient) ListByAutomationAccount(ctx context.Context, resource result.mlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ModuleClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -412,6 +416,7 @@ func (client ModuleClient) listByAutomationAccountNextResults(ctx context.Contex result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ModuleClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -473,6 +478,7 @@ func (client ModuleClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ModuleClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/nodereports.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/nodereports.go index 4df1ed5fb246..fa6faee89d46 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/nodereports.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/nodereports.go @@ -83,6 +83,7 @@ func (client NodeReportsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.NodeReportsClient", "Get", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client NodeReportsClient) GetContent(ctx context.Context, resourceGroupNam result, err = client.GetContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.NodeReportsClient", "GetContent", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client NodeReportsClient) ListByNode(ctx context.Context, resourceGroupNam result.dnrlr, err = client.ListByNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.NodeReportsClient", "ListByNode", resp, "Failure responding to request") + return } if result.dnrlr.hasNextLink() && result.dnrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -326,6 +329,7 @@ func (client NodeReportsClient) listByNodeNextResults(ctx context.Context, lastR result, err = client.ListByNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.NodeReportsClient", "listByNodeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/objectdatatypes.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/objectdatatypes.go index 5f9aae09d099..f7035e2ab922 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/objectdatatypes.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/objectdatatypes.go @@ -83,6 +83,7 @@ func (client ObjectDataTypesClient) ListFieldsByModuleAndType(ctx context.Contex result, err = client.ListFieldsByModuleAndTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ObjectDataTypesClient", "ListFieldsByModuleAndType", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client ObjectDataTypesClient) ListFieldsByType(ctx context.Context, resour result, err = client.ListFieldsByTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ObjectDataTypesClient", "ListFieldsByType", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/operations.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/operations.go index 38eea3485734..2451478f7f61 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/operations.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/runbook.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/runbook.go index 727b52477aec..49e0c7ede06c 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/runbook.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/runbook.go @@ -101,6 +101,7 @@ func (client RunbookClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client RunbookClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "Delete", resp, "Failure responding to request") + return } return @@ -272,6 +274,7 @@ func (client RunbookClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "Get", resp, "Failure responding to request") + return } return @@ -357,6 +360,7 @@ func (client RunbookClient) GetContent(ctx context.Context, resourceGroupName st result, err = client.GetContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "GetContent", resp, "Failure responding to request") + return } return @@ -441,6 +445,7 @@ func (client RunbookClient) ListByAutomationAccount(ctx context.Context, resourc result.rlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -505,6 +510,7 @@ func (client RunbookClient) listByAutomationAccountNextResults(ctx context.Conte result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -566,6 +572,7 @@ func (client RunbookClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/runbookdraft.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/runbookdraft.go index a16805227a88..fe262de4ed16 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/runbookdraft.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/runbookdraft.go @@ -83,6 +83,7 @@ func (client RunbookDraftClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookDraftClient", "Get", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client RunbookDraftClient) GetContent(ctx context.Context, resourceGroupNa result, err = client.GetContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookDraftClient", "GetContent", resp, "Failure responding to request") + return } return @@ -424,6 +426,7 @@ func (client RunbookDraftClient) UndoEdit(ctx context.Context, resourceGroupName result, err = client.UndoEditResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookDraftClient", "UndoEdit", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/schedule.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/schedule.go index 0eb871fb7bab..0c8c76a75eaf 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/schedule.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/schedule.go @@ -87,6 +87,7 @@ func (client ScheduleClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ScheduleClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client ScheduleClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ScheduleClient", "Delete", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client ScheduleClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ScheduleClient", "Get", resp, "Failure responding to request") + return } return @@ -343,6 +346,7 @@ func (client ScheduleClient) ListByAutomationAccount(ctx context.Context, resour result.slr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ScheduleClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -407,6 +411,7 @@ func (client ScheduleClient) listByAutomationAccountNextResults(ctx context.Cont result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ScheduleClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -468,6 +473,7 @@ func (client ScheduleClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ScheduleClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/softwareupdateconfigurationmachineruns.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/softwareupdateconfigurationmachineruns.go index 3e102879d440..443bde0567ba 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/softwareupdateconfigurationmachineruns.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/softwareupdateconfigurationmachineruns.go @@ -86,6 +86,7 @@ func (client SoftwareUpdateConfigurationMachineRunsClient) GetByID(ctx context.C result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SoftwareUpdateConfigurationMachineRunsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client SoftwareUpdateConfigurationMachineRunsClient) List(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SoftwareUpdateConfigurationMachineRunsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/softwareupdateconfigurationruns.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/softwareupdateconfigurationruns.go index d77a0546e34e..2d0db05f0bf4 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/softwareupdateconfigurationruns.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/softwareupdateconfigurationruns.go @@ -85,6 +85,7 @@ func (client SoftwareUpdateConfigurationRunsClient) GetByID(ctx context.Context, result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SoftwareUpdateConfigurationRunsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client SoftwareUpdateConfigurationRunsClient) List(ctx context.Context, re result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SoftwareUpdateConfigurationRunsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/softwareupdateconfigurations.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/softwareupdateconfigurations.go index 91327c25189a..1450442f192c 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/softwareupdateconfigurations.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/softwareupdateconfigurations.go @@ -90,6 +90,7 @@ func (client SoftwareUpdateConfigurationsClient) Create(ctx context.Context, res result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SoftwareUpdateConfigurationsClient", "Create", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client SoftwareUpdateConfigurationsClient) Delete(ctx context.Context, res result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SoftwareUpdateConfigurationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client SoftwareUpdateConfigurationsClient) GetByName(ctx context.Context, result, err = client.GetByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SoftwareUpdateConfigurationsClient", "GetByName", resp, "Failure responding to request") + return } return @@ -364,6 +367,7 @@ func (client SoftwareUpdateConfigurationsClient) List(ctx context.Context, resou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SoftwareUpdateConfigurationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/sourcecontrol.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/sourcecontrol.go index 00204e48be7d..a50dcc443abb 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/sourcecontrol.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/sourcecontrol.go @@ -100,6 +100,7 @@ func (client SourceControlClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -187,6 +188,7 @@ func (client SourceControlClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlClient", "Delete", resp, "Failure responding to request") + return } return @@ -271,6 +273,7 @@ func (client SourceControlClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlClient", "Get", resp, "Failure responding to request") + return } return @@ -357,6 +360,7 @@ func (client SourceControlClient) ListByAutomationAccount(ctx context.Context, r result.sclr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.sclr.hasNextLink() && result.sclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -424,6 +428,7 @@ func (client SourceControlClient) listByAutomationAccountNextResults(ctx context result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -485,6 +490,7 @@ func (client SourceControlClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/sourcecontrolsyncjob.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/sourcecontrolsyncjob.go index c90b9a901c3a..2f37de6dc7ae 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/sourcecontrolsyncjob.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/sourcecontrolsyncjob.go @@ -91,6 +91,7 @@ func (client SourceControlSyncJobClient) Create(ctx context.Context, resourceGro result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlSyncJobClient", "Create", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client SourceControlSyncJobClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlSyncJobClient", "Get", resp, "Failure responding to request") + return } return @@ -268,6 +270,7 @@ func (client SourceControlSyncJobClient) ListByAutomationAccount(ctx context.Con result.scsjlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlSyncJobClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.scsjlr.hasNextLink() && result.scsjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -336,6 +339,7 @@ func (client SourceControlSyncJobClient) listByAutomationAccountNextResults(ctx result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlSyncJobClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/sourcecontrolsyncjobstreams.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/sourcecontrolsyncjobstreams.go index aba2d8b51533..b71108979ec0 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/sourcecontrolsyncjobstreams.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/sourcecontrolsyncjobstreams.go @@ -86,6 +86,7 @@ func (client SourceControlSyncJobStreamsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlSyncJobStreamsClient", "Get", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client SourceControlSyncJobStreamsClient) ListBySyncJob(ctx context.Contex result.scsjslbsj, err = client.ListBySyncJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlSyncJobStreamsClient", "ListBySyncJob", resp, "Failure responding to request") + return } if result.scsjslbsj.hasNextLink() && result.scsjslbsj.IsEmpty() { err = result.NextWithContext(ctx) @@ -245,6 +247,7 @@ func (client SourceControlSyncJobStreamsClient) listBySyncJobNextResults(ctx con result, err = client.ListBySyncJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlSyncJobStreamsClient", "listBySyncJobNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/statistics.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/statistics.go index 3f01b08e60c1..5a22635b66d9 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/statistics.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/statistics.go @@ -82,6 +82,7 @@ func (client StatisticsClient) ListByAutomationAccount(ctx context.Context, reso result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.StatisticsClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/testjob.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/testjob.go index 4fda29c35b00..69ce5d220b39 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/testjob.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/testjob.go @@ -83,6 +83,7 @@ func (client TestJobClient) Create(ctx context.Context, resourceGroupName string result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobClient", "Create", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client TestJobClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobClient", "Get", resp, "Failure responding to request") + return } return @@ -255,6 +257,7 @@ func (client TestJobClient) Resume(ctx context.Context, resourceGroupName string result, err = client.ResumeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobClient", "Resume", resp, "Failure responding to request") + return } return @@ -339,6 +342,7 @@ func (client TestJobClient) Stop(ctx context.Context, resourceGroupName string, result, err = client.StopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobClient", "Stop", resp, "Failure responding to request") + return } return @@ -423,6 +427,7 @@ func (client TestJobClient) Suspend(ctx context.Context, resourceGroupName strin result, err = client.SuspendResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobClient", "Suspend", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/testjobstreams.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/testjobstreams.go index 4f2291f6f6f6..e5b08473570b 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/testjobstreams.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/testjobstreams.go @@ -83,6 +83,7 @@ func (client TestJobStreamsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobStreamsClient", "Get", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client TestJobStreamsClient) ListByTestJob(ctx context.Context, resourceGr result.jslr, err = client.ListByTestJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobStreamsClient", "ListByTestJob", resp, "Failure responding to request") + return } if result.jslr.hasNextLink() && result.jslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -239,6 +241,7 @@ func (client TestJobStreamsClient) listByTestJobNextResults(ctx context.Context, result, err = client.ListByTestJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobStreamsClient", "listByTestJobNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/usages.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/usages.go index 35c5b16c5c44..735616a2a66a 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/usages.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/usages.go @@ -81,6 +81,7 @@ func (client UsagesClient) ListByAutomationAccount(ctx context.Context, resource result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.UsagesClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/variable.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/variable.go index 15da745866e6..1de88df00569 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/variable.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/variable.go @@ -86,6 +86,7 @@ func (client VariableClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.VariableClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client VariableClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.VariableClient", "Delete", resp, "Failure responding to request") + return } return @@ -257,6 +259,7 @@ func (client VariableClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.VariableClient", "Get", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client VariableClient) ListByAutomationAccount(ctx context.Context, resour result.vlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.VariableClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.vlr.hasNextLink() && result.vlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -406,6 +410,7 @@ func (client VariableClient) listByAutomationAccountNextResults(ctx context.Cont result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.VariableClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -467,6 +472,7 @@ func (client VariableClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.VariableClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/webhook.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/webhook.go index e9b060a54150..bc74900a412d 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/webhook.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/webhook.go @@ -86,6 +86,7 @@ func (client WebhookClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client WebhookClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "Delete", resp, "Failure responding to request") + return } return @@ -256,6 +258,7 @@ func (client WebhookClient) GenerateURI(ctx context.Context, resourceGroupName s result, err = client.GenerateURIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "GenerateURI", resp, "Failure responding to request") + return } return @@ -340,6 +343,7 @@ func (client WebhookClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "Get", resp, "Failure responding to request") + return } return @@ -426,6 +430,7 @@ func (client WebhookClient) ListByAutomationAccount(ctx context.Context, resourc result.wlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -493,6 +498,7 @@ func (client WebhookClient) listByAutomationAccountNextResults(ctx context.Conte result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -554,6 +560,7 @@ func (client WebhookClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/account.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/account.go index 32de550ac883..143b5fccaa32 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/account.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/account.go @@ -82,6 +82,7 @@ func (client AccountClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client AccountClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "Delete", resp, "Failure responding to request") + return } return @@ -249,6 +251,7 @@ func (client AccountClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +325,7 @@ func (client AccountClient) List(ctx context.Context) (result AccountListResultP result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +388,7 @@ func (client AccountClient) listNextResults(ctx context.Context, lastResults Acc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +448,7 @@ func (client AccountClient) ListByResourceGroup(ctx context.Context, resourceGro result.alr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -506,6 +512,7 @@ func (client AccountClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -566,6 +573,7 @@ func (client AccountClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/activity.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/activity.go index 5b9fe1af4b40..818c8ec6adfe 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/activity.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/activity.go @@ -83,6 +83,7 @@ func (client ActivityClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ActivityClient", "Get", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client ActivityClient) ListByModule(ctx context.Context, resourceGroupName result.alr, err = client.ListByModuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ActivityClient", "ListByModule", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -235,6 +237,7 @@ func (client ActivityClient) listByModuleNextResults(ctx context.Context, lastRe result, err = client.ListByModuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ActivityClient", "listByModuleNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/agentregistrationinformation.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/agentregistrationinformation.go index 3ab65fabe6e2..a7dc59aaee15 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/agentregistrationinformation.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/agentregistrationinformation.go @@ -82,6 +82,7 @@ func (client AgentRegistrationInformationClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AgentRegistrationInformationClient", "Get", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client AgentRegistrationInformationClient) RegenerateKey(ctx context.Conte result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AgentRegistrationInformationClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/certificate.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/certificate.go index a3c4b779ded0..6c02e1644a96 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/certificate.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/certificate.go @@ -87,6 +87,7 @@ func (client CertificateClient) CreateOrUpdate(ctx context.Context, resourceGrou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CertificateClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client CertificateClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CertificateClient", "Delete", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client CertificateClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -343,6 +346,7 @@ func (client CertificateClient) ListByAutomationAccount(ctx context.Context, res result.clr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CertificateClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -407,6 +411,7 @@ func (client CertificateClient) listByAutomationAccountNextResults(ctx context.C result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CertificateClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -468,6 +473,7 @@ func (client CertificateClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CertificateClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/connection.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/connection.go index 1ccc630162e7..67248853885b 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/connection.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/connection.go @@ -87,6 +87,7 @@ func (client ConnectionClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client ConnectionClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionClient", "Delete", resp, "Failure responding to request") + return } return @@ -259,6 +261,7 @@ func (client ConnectionClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +347,7 @@ func (client ConnectionClient) ListByAutomationAccount(ctx context.Context, reso result.clr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -408,6 +412,7 @@ func (client ConnectionClient) listByAutomationAccountNextResults(ctx context.Co result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -469,6 +474,7 @@ func (client ConnectionClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/connectiontype.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/connectiontype.go index 0a219262864f..8288c20681f9 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/connectiontype.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/connectiontype.go @@ -87,6 +87,7 @@ func (client ConnectionTypeClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionTypeClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client ConnectionTypeClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionTypeClient", "Delete", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client ConnectionTypeClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionTypeClient", "Get", resp, "Failure responding to request") + return } return @@ -343,6 +346,7 @@ func (client ConnectionTypeClient) ListByAutomationAccount(ctx context.Context, result.ctlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionTypeClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.ctlr.hasNextLink() && result.ctlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -407,6 +411,7 @@ func (client ConnectionTypeClient) listByAutomationAccountNextResults(ctx contex result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionTypeClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/credential.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/credential.go index 8351a1a68c53..15dcf4db1980 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/credential.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/credential.go @@ -89,6 +89,7 @@ func (client CredentialClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CredentialClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client CredentialClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CredentialClient", "Delete", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client CredentialClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CredentialClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +348,7 @@ func (client CredentialClient) ListByAutomationAccount(ctx context.Context, reso result.clr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CredentialClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -409,6 +413,7 @@ func (client CredentialClient) listByAutomationAccountNextResults(ctx context.Co result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CredentialClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -470,6 +475,7 @@ func (client CredentialClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CredentialClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/dsccompilationjob.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/dsccompilationjob.go index 369899d4aa13..bacacd102aaf 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/dsccompilationjob.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/dsccompilationjob.go @@ -175,6 +175,7 @@ func (client DscCompilationJobClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscCompilationJobClient", "Get", resp, "Failure responding to request") + return } return @@ -261,6 +262,7 @@ func (client DscCompilationJobClient) GetStream(ctx context.Context, resourceGro result, err = client.GetStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscCompilationJobClient", "GetStream", resp, "Failure responding to request") + return } return @@ -348,6 +350,7 @@ func (client DscCompilationJobClient) ListByAutomationAccount(ctx context.Contex result.dcjlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscCompilationJobClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.dcjlr.hasNextLink() && result.dcjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -415,6 +418,7 @@ func (client DscCompilationJobClient) listByAutomationAccountNextResults(ctx con result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscCompilationJobClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/dsccompilationjobstream.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/dsccompilationjobstream.go index 746428191d87..2531137e29f1 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/dsccompilationjobstream.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/dsccompilationjobstream.go @@ -84,6 +84,7 @@ func (client DscCompilationJobStreamClient) ListByJob(ctx context.Context, resou result, err = client.ListByJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscCompilationJobStreamClient", "ListByJob", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/dscconfiguration.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/dscconfiguration.go index 9a1de0fe9239..195bb36fb42a 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/dscconfiguration.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/dscconfiguration.go @@ -93,6 +93,7 @@ func (client DscConfigurationClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client DscConfigurationClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "Delete", resp, "Failure responding to request") + return } return @@ -264,6 +266,7 @@ func (client DscConfigurationClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client DscConfigurationClient) GetContent(ctx context.Context, resourceGro result, err = client.GetContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "GetContent", resp, "Failure responding to request") + return } return @@ -437,6 +441,7 @@ func (client DscConfigurationClient) ListByAutomationAccount(ctx context.Context result.dclr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.dclr.hasNextLink() && result.dclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -513,6 +518,7 @@ func (client DscConfigurationClient) listByAutomationAccountNextResults(ctx cont result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -574,6 +580,7 @@ func (client DscConfigurationClient) Update(ctx context.Context, resourceGroupNa result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/dscnode.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/dscnode.go index 2833e515316f..13fa175de541 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/dscnode.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/dscnode.go @@ -82,6 +82,7 @@ func (client DscNodeClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeClient", "Delete", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client DscNodeClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeClient", "Get", resp, "Failure responding to request") + return } return @@ -256,6 +258,7 @@ func (client DscNodeClient) ListByAutomationAccount(ctx context.Context, resourc result.dnlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.dnlr.hasNextLink() && result.dnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -332,6 +335,7 @@ func (client DscNodeClient) listByAutomationAccountNextResults(ctx context.Conte result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -393,6 +397,7 @@ func (client DscNodeClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/dscnodeconfiguration.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/dscnodeconfiguration.go index ba604d490429..1f958ef3d123 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/dscnodeconfiguration.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/dscnodeconfiguration.go @@ -181,6 +181,7 @@ func (client DscNodeConfigurationClient) Delete(ctx context.Context, resourceGro result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeConfigurationClient", "Delete", resp, "Failure responding to request") + return } return @@ -265,6 +266,7 @@ func (client DscNodeConfigurationClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeConfigurationClient", "Get", resp, "Failure responding to request") + return } return @@ -354,6 +356,7 @@ func (client DscNodeConfigurationClient) ListByAutomationAccount(ctx context.Con result.dnclr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeConfigurationClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.dnclr.hasNextLink() && result.dnclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -430,6 +433,7 @@ func (client DscNodeConfigurationClient) listByAutomationAccountNextResults(ctx result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeConfigurationClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/fields.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/fields.go index 703c3d807746..94c02fbee8c7 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/fields.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/fields.go @@ -83,6 +83,7 @@ func (client FieldsClient) ListByType(ctx context.Context, resourceGroupName str result, err = client.ListByTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.FieldsClient", "ListByType", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/hybridrunbookworkergroup.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/hybridrunbookworkergroup.go index 660479997c98..ff43cb221b99 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/hybridrunbookworkergroup.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/hybridrunbookworkergroup.go @@ -83,6 +83,7 @@ func (client HybridRunbookWorkerGroupClient) Delete(ctx context.Context, resourc result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.HybridRunbookWorkerGroupClient", "Delete", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client HybridRunbookWorkerGroupClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.HybridRunbookWorkerGroupClient", "Get", resp, "Failure responding to request") + return } return @@ -253,6 +255,7 @@ func (client HybridRunbookWorkerGroupClient) ListByAutomationAccount(ctx context result.hrwglr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.HybridRunbookWorkerGroupClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.hrwglr.hasNextLink() && result.hrwglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -320,6 +323,7 @@ func (client HybridRunbookWorkerGroupClient) listByAutomationAccountNextResults( result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.HybridRunbookWorkerGroupClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -381,6 +385,7 @@ func (client HybridRunbookWorkerGroupClient) Update(ctx context.Context, resourc result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.HybridRunbookWorkerGroupClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/job.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/job.go index f344964b3e71..b5c5a9d70cb1 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/job.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/job.go @@ -86,6 +86,7 @@ func (client JobClient) Create(ctx context.Context, resourceGroupName string, au result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "Create", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client JobClient) Get(ctx context.Context, resourceGroupName string, autom result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "Get", resp, "Failure responding to request") + return } return @@ -268,6 +270,7 @@ func (client JobClient) GetOutput(ctx context.Context, resourceGroupName string, result, err = client.GetOutputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "GetOutput", resp, "Failure responding to request") + return } return @@ -357,6 +360,7 @@ func (client JobClient) GetRunbookContent(ctx context.Context, resourceGroupName result, err = client.GetRunbookContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "GetRunbookContent", resp, "Failure responding to request") + return } return @@ -447,6 +451,7 @@ func (client JobClient) ListByAutomationAccount(ctx context.Context, resourceGro result.jlrv, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.jlrv.hasNextLink() && result.jlrv.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +523,7 @@ func (client JobClient) listByAutomationAccountNextResults(ctx context.Context, result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -579,6 +585,7 @@ func (client JobClient) Resume(ctx context.Context, resourceGroupName string, au result, err = client.ResumeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "Resume", resp, "Failure responding to request") + return } return @@ -668,6 +675,7 @@ func (client JobClient) Stop(ctx context.Context, resourceGroupName string, auto result, err = client.StopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "Stop", resp, "Failure responding to request") + return } return @@ -757,6 +765,7 @@ func (client JobClient) Suspend(ctx context.Context, resourceGroupName string, a result, err = client.SuspendResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "Suspend", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/jobschedule.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/jobschedule.go index 76e9521941ee..8fd0ba1700e2 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/jobschedule.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/jobschedule.go @@ -89,6 +89,7 @@ func (client JobScheduleClient) Create(ctx context.Context, resourceGroupName st result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobScheduleClient", "Create", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client JobScheduleClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobScheduleClient", "Delete", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client JobScheduleClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobScheduleClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +349,7 @@ func (client JobScheduleClient) ListByAutomationAccount(ctx context.Context, res result.jslr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobScheduleClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.jslr.hasNextLink() && result.jslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -413,6 +417,7 @@ func (client JobScheduleClient) listByAutomationAccountNextResults(ctx context.C result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobScheduleClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/jobstream.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/jobstream.go index 2271f5253fa3..4fc7335e79a5 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/jobstream.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/jobstream.go @@ -84,6 +84,7 @@ func (client JobStreamClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobStreamClient", "Get", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client JobStreamClient) ListByJob(ctx context.Context, resourceGroupName s result.jslr, err = client.ListByJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobStreamClient", "ListByJob", resp, "Failure responding to request") + return } if result.jslr.hasNextLink() && result.jslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -249,6 +251,7 @@ func (client JobStreamClient) listByJobNextResults(ctx context.Context, lastResu result, err = client.ListByJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobStreamClient", "listByJobNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/keys.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/keys.go index e5ebfaa4f41f..5648416b80f2 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/keys.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/keys.go @@ -81,6 +81,7 @@ func (client KeysClient) ListByAutomationAccount(ctx context.Context, resourceGr result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.KeysClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/linkedworkspace.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/linkedworkspace.go index 07b98aa047cf..f8ac9fe291f0 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/linkedworkspace.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/linkedworkspace.go @@ -81,6 +81,7 @@ func (client LinkedWorkspaceClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.LinkedWorkspaceClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/module.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/module.go index 79f9841428a9..cb4fa5a041b2 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/module.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/module.go @@ -92,6 +92,7 @@ func (client ModuleClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ModuleClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client ModuleClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ModuleClient", "Delete", resp, "Failure responding to request") + return } return @@ -263,6 +265,7 @@ func (client ModuleClient) Get(ctx context.Context, resourceGroupName string, au result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ModuleClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +351,7 @@ func (client ModuleClient) ListByAutomationAccount(ctx context.Context, resource result.mlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ModuleClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -412,6 +416,7 @@ func (client ModuleClient) listByAutomationAccountNextResults(ctx context.Contex result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ModuleClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -473,6 +478,7 @@ func (client ModuleClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ModuleClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/nodecountinformation.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/nodecountinformation.go index be419031873e..8a6cf59d9b9a 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/nodecountinformation.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/nodecountinformation.go @@ -83,6 +83,7 @@ func (client NodeCountInformationClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.NodeCountInformationClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/nodereports.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/nodereports.go index 98d4af9f94f9..156d8fd28265 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/nodereports.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/nodereports.go @@ -83,6 +83,7 @@ func (client NodeReportsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.NodeReportsClient", "Get", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client NodeReportsClient) GetContent(ctx context.Context, resourceGroupNam result, err = client.GetContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.NodeReportsClient", "GetContent", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client NodeReportsClient) ListByNode(ctx context.Context, resourceGroupNam result.dnrlr, err = client.ListByNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.NodeReportsClient", "ListByNode", resp, "Failure responding to request") + return } if result.dnrlr.hasNextLink() && result.dnrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -326,6 +329,7 @@ func (client NodeReportsClient) listByNodeNextResults(ctx context.Context, lastR result, err = client.ListByNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.NodeReportsClient", "listByNodeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/objectdatatypes.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/objectdatatypes.go index 5f9aae09d099..f7035e2ab922 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/objectdatatypes.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/objectdatatypes.go @@ -83,6 +83,7 @@ func (client ObjectDataTypesClient) ListFieldsByModuleAndType(ctx context.Contex result, err = client.ListFieldsByModuleAndTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ObjectDataTypesClient", "ListFieldsByModuleAndType", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client ObjectDataTypesClient) ListFieldsByType(ctx context.Context, resour result, err = client.ListFieldsByTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ObjectDataTypesClient", "ListFieldsByType", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/operations.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/operations.go index 38eea3485734..2451478f7f61 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/operations.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/runbook.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/runbook.go index 727b52477aec..49e0c7ede06c 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/runbook.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/runbook.go @@ -101,6 +101,7 @@ func (client RunbookClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client RunbookClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "Delete", resp, "Failure responding to request") + return } return @@ -272,6 +274,7 @@ func (client RunbookClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "Get", resp, "Failure responding to request") + return } return @@ -357,6 +360,7 @@ func (client RunbookClient) GetContent(ctx context.Context, resourceGroupName st result, err = client.GetContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "GetContent", resp, "Failure responding to request") + return } return @@ -441,6 +445,7 @@ func (client RunbookClient) ListByAutomationAccount(ctx context.Context, resourc result.rlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -505,6 +510,7 @@ func (client RunbookClient) listByAutomationAccountNextResults(ctx context.Conte result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -566,6 +572,7 @@ func (client RunbookClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/runbookdraft.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/runbookdraft.go index a16805227a88..fe262de4ed16 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/runbookdraft.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/runbookdraft.go @@ -83,6 +83,7 @@ func (client RunbookDraftClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookDraftClient", "Get", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client RunbookDraftClient) GetContent(ctx context.Context, resourceGroupNa result, err = client.GetContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookDraftClient", "GetContent", resp, "Failure responding to request") + return } return @@ -424,6 +426,7 @@ func (client RunbookDraftClient) UndoEdit(ctx context.Context, resourceGroupName result, err = client.UndoEditResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookDraftClient", "UndoEdit", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/schedule.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/schedule.go index 0eb871fb7bab..0c8c76a75eaf 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/schedule.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/schedule.go @@ -87,6 +87,7 @@ func (client ScheduleClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ScheduleClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client ScheduleClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ScheduleClient", "Delete", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client ScheduleClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ScheduleClient", "Get", resp, "Failure responding to request") + return } return @@ -343,6 +346,7 @@ func (client ScheduleClient) ListByAutomationAccount(ctx context.Context, resour result.slr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ScheduleClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -407,6 +411,7 @@ func (client ScheduleClient) listByAutomationAccountNextResults(ctx context.Cont result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ScheduleClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -468,6 +473,7 @@ func (client ScheduleClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ScheduleClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/softwareupdateconfigurationmachineruns.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/softwareupdateconfigurationmachineruns.go index 3e102879d440..443bde0567ba 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/softwareupdateconfigurationmachineruns.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/softwareupdateconfigurationmachineruns.go @@ -86,6 +86,7 @@ func (client SoftwareUpdateConfigurationMachineRunsClient) GetByID(ctx context.C result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SoftwareUpdateConfigurationMachineRunsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client SoftwareUpdateConfigurationMachineRunsClient) List(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SoftwareUpdateConfigurationMachineRunsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/softwareupdateconfigurationruns.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/softwareupdateconfigurationruns.go index d77a0546e34e..2d0db05f0bf4 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/softwareupdateconfigurationruns.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/softwareupdateconfigurationruns.go @@ -85,6 +85,7 @@ func (client SoftwareUpdateConfigurationRunsClient) GetByID(ctx context.Context, result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SoftwareUpdateConfigurationRunsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client SoftwareUpdateConfigurationRunsClient) List(ctx context.Context, re result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SoftwareUpdateConfigurationRunsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/softwareupdateconfigurations.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/softwareupdateconfigurations.go index 91327c25189a..1450442f192c 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/softwareupdateconfigurations.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/softwareupdateconfigurations.go @@ -90,6 +90,7 @@ func (client SoftwareUpdateConfigurationsClient) Create(ctx context.Context, res result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SoftwareUpdateConfigurationsClient", "Create", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client SoftwareUpdateConfigurationsClient) Delete(ctx context.Context, res result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SoftwareUpdateConfigurationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client SoftwareUpdateConfigurationsClient) GetByName(ctx context.Context, result, err = client.GetByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SoftwareUpdateConfigurationsClient", "GetByName", resp, "Failure responding to request") + return } return @@ -364,6 +367,7 @@ func (client SoftwareUpdateConfigurationsClient) List(ctx context.Context, resou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SoftwareUpdateConfigurationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/sourcecontrol.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/sourcecontrol.go index 00204e48be7d..a50dcc443abb 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/sourcecontrol.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/sourcecontrol.go @@ -100,6 +100,7 @@ func (client SourceControlClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -187,6 +188,7 @@ func (client SourceControlClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlClient", "Delete", resp, "Failure responding to request") + return } return @@ -271,6 +273,7 @@ func (client SourceControlClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlClient", "Get", resp, "Failure responding to request") + return } return @@ -357,6 +360,7 @@ func (client SourceControlClient) ListByAutomationAccount(ctx context.Context, r result.sclr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.sclr.hasNextLink() && result.sclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -424,6 +428,7 @@ func (client SourceControlClient) listByAutomationAccountNextResults(ctx context result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -485,6 +490,7 @@ func (client SourceControlClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/sourcecontrolsyncjob.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/sourcecontrolsyncjob.go index c90b9a901c3a..2f37de6dc7ae 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/sourcecontrolsyncjob.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/sourcecontrolsyncjob.go @@ -91,6 +91,7 @@ func (client SourceControlSyncJobClient) Create(ctx context.Context, resourceGro result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlSyncJobClient", "Create", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client SourceControlSyncJobClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlSyncJobClient", "Get", resp, "Failure responding to request") + return } return @@ -268,6 +270,7 @@ func (client SourceControlSyncJobClient) ListByAutomationAccount(ctx context.Con result.scsjlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlSyncJobClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.scsjlr.hasNextLink() && result.scsjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -336,6 +339,7 @@ func (client SourceControlSyncJobClient) listByAutomationAccountNextResults(ctx result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlSyncJobClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/sourcecontrolsyncjobstreams.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/sourcecontrolsyncjobstreams.go index aba2d8b51533..b71108979ec0 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/sourcecontrolsyncjobstreams.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/sourcecontrolsyncjobstreams.go @@ -86,6 +86,7 @@ func (client SourceControlSyncJobStreamsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlSyncJobStreamsClient", "Get", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client SourceControlSyncJobStreamsClient) ListBySyncJob(ctx context.Contex result.scsjslbsj, err = client.ListBySyncJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlSyncJobStreamsClient", "ListBySyncJob", resp, "Failure responding to request") + return } if result.scsjslbsj.hasNextLink() && result.scsjslbsj.IsEmpty() { err = result.NextWithContext(ctx) @@ -245,6 +247,7 @@ func (client SourceControlSyncJobStreamsClient) listBySyncJobNextResults(ctx con result, err = client.ListBySyncJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlSyncJobStreamsClient", "listBySyncJobNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/statistics.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/statistics.go index 3f01b08e60c1..5a22635b66d9 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/statistics.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/statistics.go @@ -82,6 +82,7 @@ func (client StatisticsClient) ListByAutomationAccount(ctx context.Context, reso result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.StatisticsClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/testjob.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/testjob.go index 4fda29c35b00..69ce5d220b39 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/testjob.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/testjob.go @@ -83,6 +83,7 @@ func (client TestJobClient) Create(ctx context.Context, resourceGroupName string result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobClient", "Create", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client TestJobClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobClient", "Get", resp, "Failure responding to request") + return } return @@ -255,6 +257,7 @@ func (client TestJobClient) Resume(ctx context.Context, resourceGroupName string result, err = client.ResumeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobClient", "Resume", resp, "Failure responding to request") + return } return @@ -339,6 +342,7 @@ func (client TestJobClient) Stop(ctx context.Context, resourceGroupName string, result, err = client.StopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobClient", "Stop", resp, "Failure responding to request") + return } return @@ -423,6 +427,7 @@ func (client TestJobClient) Suspend(ctx context.Context, resourceGroupName strin result, err = client.SuspendResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobClient", "Suspend", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/testjobstreams.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/testjobstreams.go index 4f2291f6f6f6..e5b08473570b 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/testjobstreams.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/testjobstreams.go @@ -83,6 +83,7 @@ func (client TestJobStreamsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobStreamsClient", "Get", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client TestJobStreamsClient) ListByTestJob(ctx context.Context, resourceGr result.jslr, err = client.ListByTestJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobStreamsClient", "ListByTestJob", resp, "Failure responding to request") + return } if result.jslr.hasNextLink() && result.jslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -239,6 +241,7 @@ func (client TestJobStreamsClient) listByTestJobNextResults(ctx context.Context, result, err = client.ListByTestJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobStreamsClient", "listByTestJobNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/usages.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/usages.go index 35c5b16c5c44..735616a2a66a 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/usages.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/usages.go @@ -81,6 +81,7 @@ func (client UsagesClient) ListByAutomationAccount(ctx context.Context, resource result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.UsagesClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/variable.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/variable.go index 15da745866e6..1de88df00569 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/variable.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/variable.go @@ -86,6 +86,7 @@ func (client VariableClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.VariableClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client VariableClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.VariableClient", "Delete", resp, "Failure responding to request") + return } return @@ -257,6 +259,7 @@ func (client VariableClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.VariableClient", "Get", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client VariableClient) ListByAutomationAccount(ctx context.Context, resour result.vlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.VariableClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.vlr.hasNextLink() && result.vlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -406,6 +410,7 @@ func (client VariableClient) listByAutomationAccountNextResults(ctx context.Cont result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.VariableClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -467,6 +472,7 @@ func (client VariableClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.VariableClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/watcher.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/watcher.go index 075aa382641d..2f3fe1c7d00a 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/watcher.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/watcher.go @@ -83,6 +83,7 @@ func (client WatcherClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WatcherClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client WatcherClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WatcherClient", "Delete", resp, "Failure responding to request") + return } return @@ -254,6 +256,7 @@ func (client WatcherClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WatcherClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +343,7 @@ func (client WatcherClient) ListByAutomationAccount(ctx context.Context, resourc result.wlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WatcherClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -407,6 +411,7 @@ func (client WatcherClient) listByAutomationAccountNextResults(ctx context.Conte result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WatcherClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -467,6 +472,7 @@ func (client WatcherClient) Start(ctx context.Context, resourceGroupName string, result, err = client.StartResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WatcherClient", "Start", resp, "Failure responding to request") + return } return @@ -551,6 +557,7 @@ func (client WatcherClient) Stop(ctx context.Context, resourceGroupName string, result, err = client.StopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WatcherClient", "Stop", resp, "Failure responding to request") + return } return @@ -636,6 +643,7 @@ func (client WatcherClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WatcherClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/webhook.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/webhook.go index e9b060a54150..bc74900a412d 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/webhook.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/webhook.go @@ -86,6 +86,7 @@ func (client WebhookClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client WebhookClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "Delete", resp, "Failure responding to request") + return } return @@ -256,6 +258,7 @@ func (client WebhookClient) GenerateURI(ctx context.Context, resourceGroupName s result, err = client.GenerateURIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "GenerateURI", resp, "Failure responding to request") + return } return @@ -340,6 +343,7 @@ func (client WebhookClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "Get", resp, "Failure responding to request") + return } return @@ -426,6 +430,7 @@ func (client WebhookClient) ListByAutomationAccount(ctx context.Context, resourc result.wlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -493,6 +498,7 @@ func (client WebhookClient) listByAutomationAccountNextResults(ctx context.Conte result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -554,6 +560,7 @@ func (client WebhookClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/account.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/account.go index 32de550ac883..143b5fccaa32 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/account.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/account.go @@ -82,6 +82,7 @@ func (client AccountClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client AccountClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "Delete", resp, "Failure responding to request") + return } return @@ -249,6 +251,7 @@ func (client AccountClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +325,7 @@ func (client AccountClient) List(ctx context.Context) (result AccountListResultP result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +388,7 @@ func (client AccountClient) listNextResults(ctx context.Context, lastResults Acc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +448,7 @@ func (client AccountClient) ListByResourceGroup(ctx context.Context, resourceGro result.alr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -506,6 +512,7 @@ func (client AccountClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -566,6 +573,7 @@ func (client AccountClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AccountClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/activity.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/activity.go index 5b9fe1af4b40..818c8ec6adfe 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/activity.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/activity.go @@ -83,6 +83,7 @@ func (client ActivityClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ActivityClient", "Get", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client ActivityClient) ListByModule(ctx context.Context, resourceGroupName result.alr, err = client.ListByModuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ActivityClient", "ListByModule", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -235,6 +237,7 @@ func (client ActivityClient) listByModuleNextResults(ctx context.Context, lastRe result, err = client.ListByModuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ActivityClient", "listByModuleNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/agentregistrationinformation.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/agentregistrationinformation.go index 3ab65fabe6e2..a7dc59aaee15 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/agentregistrationinformation.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/agentregistrationinformation.go @@ -82,6 +82,7 @@ func (client AgentRegistrationInformationClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AgentRegistrationInformationClient", "Get", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client AgentRegistrationInformationClient) RegenerateKey(ctx context.Conte result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.AgentRegistrationInformationClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/certificate.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/certificate.go index a3c4b779ded0..6c02e1644a96 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/certificate.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/certificate.go @@ -87,6 +87,7 @@ func (client CertificateClient) CreateOrUpdate(ctx context.Context, resourceGrou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CertificateClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client CertificateClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CertificateClient", "Delete", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client CertificateClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -343,6 +346,7 @@ func (client CertificateClient) ListByAutomationAccount(ctx context.Context, res result.clr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CertificateClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -407,6 +411,7 @@ func (client CertificateClient) listByAutomationAccountNextResults(ctx context.C result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CertificateClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -468,6 +473,7 @@ func (client CertificateClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CertificateClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/connection.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/connection.go index 1ccc630162e7..67248853885b 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/connection.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/connection.go @@ -87,6 +87,7 @@ func (client ConnectionClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client ConnectionClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionClient", "Delete", resp, "Failure responding to request") + return } return @@ -259,6 +261,7 @@ func (client ConnectionClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +347,7 @@ func (client ConnectionClient) ListByAutomationAccount(ctx context.Context, reso result.clr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -408,6 +412,7 @@ func (client ConnectionClient) listByAutomationAccountNextResults(ctx context.Co result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -469,6 +474,7 @@ func (client ConnectionClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/connectiontype.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/connectiontype.go index 0a219262864f..8288c20681f9 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/connectiontype.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/connectiontype.go @@ -87,6 +87,7 @@ func (client ConnectionTypeClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionTypeClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client ConnectionTypeClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionTypeClient", "Delete", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client ConnectionTypeClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionTypeClient", "Get", resp, "Failure responding to request") + return } return @@ -343,6 +346,7 @@ func (client ConnectionTypeClient) ListByAutomationAccount(ctx context.Context, result.ctlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionTypeClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.ctlr.hasNextLink() && result.ctlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -407,6 +411,7 @@ func (client ConnectionTypeClient) listByAutomationAccountNextResults(ctx contex result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ConnectionTypeClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/credential.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/credential.go index 8351a1a68c53..15dcf4db1980 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/credential.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/credential.go @@ -89,6 +89,7 @@ func (client CredentialClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CredentialClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client CredentialClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CredentialClient", "Delete", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client CredentialClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CredentialClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +348,7 @@ func (client CredentialClient) ListByAutomationAccount(ctx context.Context, reso result.clr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CredentialClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -409,6 +413,7 @@ func (client CredentialClient) listByAutomationAccountNextResults(ctx context.Co result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CredentialClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -470,6 +475,7 @@ func (client CredentialClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.CredentialClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/dsccompilationjob.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/dsccompilationjob.go index 369899d4aa13..bacacd102aaf 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/dsccompilationjob.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/dsccompilationjob.go @@ -175,6 +175,7 @@ func (client DscCompilationJobClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscCompilationJobClient", "Get", resp, "Failure responding to request") + return } return @@ -261,6 +262,7 @@ func (client DscCompilationJobClient) GetStream(ctx context.Context, resourceGro result, err = client.GetStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscCompilationJobClient", "GetStream", resp, "Failure responding to request") + return } return @@ -348,6 +350,7 @@ func (client DscCompilationJobClient) ListByAutomationAccount(ctx context.Contex result.dcjlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscCompilationJobClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.dcjlr.hasNextLink() && result.dcjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -415,6 +418,7 @@ func (client DscCompilationJobClient) listByAutomationAccountNextResults(ctx con result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscCompilationJobClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/dsccompilationjobstream.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/dsccompilationjobstream.go index 746428191d87..2531137e29f1 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/dsccompilationjobstream.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/dsccompilationjobstream.go @@ -84,6 +84,7 @@ func (client DscCompilationJobStreamClient) ListByJob(ctx context.Context, resou result, err = client.ListByJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscCompilationJobStreamClient", "ListByJob", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/dscconfiguration.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/dscconfiguration.go index 9a1de0fe9239..195bb36fb42a 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/dscconfiguration.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/dscconfiguration.go @@ -93,6 +93,7 @@ func (client DscConfigurationClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client DscConfigurationClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "Delete", resp, "Failure responding to request") + return } return @@ -264,6 +266,7 @@ func (client DscConfigurationClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client DscConfigurationClient) GetContent(ctx context.Context, resourceGro result, err = client.GetContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "GetContent", resp, "Failure responding to request") + return } return @@ -437,6 +441,7 @@ func (client DscConfigurationClient) ListByAutomationAccount(ctx context.Context result.dclr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.dclr.hasNextLink() && result.dclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -513,6 +518,7 @@ func (client DscConfigurationClient) listByAutomationAccountNextResults(ctx cont result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -574,6 +580,7 @@ func (client DscConfigurationClient) Update(ctx context.Context, resourceGroupNa result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/dscnode.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/dscnode.go index 2833e515316f..13fa175de541 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/dscnode.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/dscnode.go @@ -82,6 +82,7 @@ func (client DscNodeClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeClient", "Delete", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client DscNodeClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeClient", "Get", resp, "Failure responding to request") + return } return @@ -256,6 +258,7 @@ func (client DscNodeClient) ListByAutomationAccount(ctx context.Context, resourc result.dnlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.dnlr.hasNextLink() && result.dnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -332,6 +335,7 @@ func (client DscNodeClient) listByAutomationAccountNextResults(ctx context.Conte result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -393,6 +397,7 @@ func (client DscNodeClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/dscnodeconfiguration.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/dscnodeconfiguration.go index ba604d490429..1f958ef3d123 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/dscnodeconfiguration.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/dscnodeconfiguration.go @@ -181,6 +181,7 @@ func (client DscNodeConfigurationClient) Delete(ctx context.Context, resourceGro result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeConfigurationClient", "Delete", resp, "Failure responding to request") + return } return @@ -265,6 +266,7 @@ func (client DscNodeConfigurationClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeConfigurationClient", "Get", resp, "Failure responding to request") + return } return @@ -354,6 +356,7 @@ func (client DscNodeConfigurationClient) ListByAutomationAccount(ctx context.Con result.dnclr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeConfigurationClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.dnclr.hasNextLink() && result.dnclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -430,6 +433,7 @@ func (client DscNodeConfigurationClient) listByAutomationAccountNextResults(ctx result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.DscNodeConfigurationClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/fields.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/fields.go index 703c3d807746..94c02fbee8c7 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/fields.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/fields.go @@ -83,6 +83,7 @@ func (client FieldsClient) ListByType(ctx context.Context, resourceGroupName str result, err = client.ListByTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.FieldsClient", "ListByType", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/hybridrunbookworkergroup.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/hybridrunbookworkergroup.go index 660479997c98..ff43cb221b99 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/hybridrunbookworkergroup.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/hybridrunbookworkergroup.go @@ -83,6 +83,7 @@ func (client HybridRunbookWorkerGroupClient) Delete(ctx context.Context, resourc result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.HybridRunbookWorkerGroupClient", "Delete", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client HybridRunbookWorkerGroupClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.HybridRunbookWorkerGroupClient", "Get", resp, "Failure responding to request") + return } return @@ -253,6 +255,7 @@ func (client HybridRunbookWorkerGroupClient) ListByAutomationAccount(ctx context result.hrwglr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.HybridRunbookWorkerGroupClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.hrwglr.hasNextLink() && result.hrwglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -320,6 +323,7 @@ func (client HybridRunbookWorkerGroupClient) listByAutomationAccountNextResults( result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.HybridRunbookWorkerGroupClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -381,6 +385,7 @@ func (client HybridRunbookWorkerGroupClient) Update(ctx context.Context, resourc result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.HybridRunbookWorkerGroupClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/job.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/job.go index f344964b3e71..b5c5a9d70cb1 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/job.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/job.go @@ -86,6 +86,7 @@ func (client JobClient) Create(ctx context.Context, resourceGroupName string, au result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "Create", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client JobClient) Get(ctx context.Context, resourceGroupName string, autom result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "Get", resp, "Failure responding to request") + return } return @@ -268,6 +270,7 @@ func (client JobClient) GetOutput(ctx context.Context, resourceGroupName string, result, err = client.GetOutputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "GetOutput", resp, "Failure responding to request") + return } return @@ -357,6 +360,7 @@ func (client JobClient) GetRunbookContent(ctx context.Context, resourceGroupName result, err = client.GetRunbookContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "GetRunbookContent", resp, "Failure responding to request") + return } return @@ -447,6 +451,7 @@ func (client JobClient) ListByAutomationAccount(ctx context.Context, resourceGro result.jlrv, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.jlrv.hasNextLink() && result.jlrv.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +523,7 @@ func (client JobClient) listByAutomationAccountNextResults(ctx context.Context, result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -579,6 +585,7 @@ func (client JobClient) Resume(ctx context.Context, resourceGroupName string, au result, err = client.ResumeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "Resume", resp, "Failure responding to request") + return } return @@ -668,6 +675,7 @@ func (client JobClient) Stop(ctx context.Context, resourceGroupName string, auto result, err = client.StopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "Stop", resp, "Failure responding to request") + return } return @@ -757,6 +765,7 @@ func (client JobClient) Suspend(ctx context.Context, resourceGroupName string, a result, err = client.SuspendResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobClient", "Suspend", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/jobschedule.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/jobschedule.go index 76e9521941ee..8fd0ba1700e2 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/jobschedule.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/jobschedule.go @@ -89,6 +89,7 @@ func (client JobScheduleClient) Create(ctx context.Context, resourceGroupName st result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobScheduleClient", "Create", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client JobScheduleClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobScheduleClient", "Delete", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client JobScheduleClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobScheduleClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +349,7 @@ func (client JobScheduleClient) ListByAutomationAccount(ctx context.Context, res result.jslr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobScheduleClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.jslr.hasNextLink() && result.jslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -413,6 +417,7 @@ func (client JobScheduleClient) listByAutomationAccountNextResults(ctx context.C result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobScheduleClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/jobstream.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/jobstream.go index 2271f5253fa3..4fc7335e79a5 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/jobstream.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/jobstream.go @@ -84,6 +84,7 @@ func (client JobStreamClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobStreamClient", "Get", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client JobStreamClient) ListByJob(ctx context.Context, resourceGroupName s result.jslr, err = client.ListByJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobStreamClient", "ListByJob", resp, "Failure responding to request") + return } if result.jslr.hasNextLink() && result.jslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -249,6 +251,7 @@ func (client JobStreamClient) listByJobNextResults(ctx context.Context, lastResu result, err = client.ListByJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.JobStreamClient", "listByJobNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/keys.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/keys.go index e5ebfaa4f41f..5648416b80f2 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/keys.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/keys.go @@ -81,6 +81,7 @@ func (client KeysClient) ListByAutomationAccount(ctx context.Context, resourceGr result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.KeysClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/linkedworkspace.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/linkedworkspace.go index 07b98aa047cf..f8ac9fe291f0 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/linkedworkspace.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/linkedworkspace.go @@ -81,6 +81,7 @@ func (client LinkedWorkspaceClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.LinkedWorkspaceClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/module.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/module.go index 79f9841428a9..cb4fa5a041b2 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/module.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/module.go @@ -92,6 +92,7 @@ func (client ModuleClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ModuleClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client ModuleClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ModuleClient", "Delete", resp, "Failure responding to request") + return } return @@ -263,6 +265,7 @@ func (client ModuleClient) Get(ctx context.Context, resourceGroupName string, au result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ModuleClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +351,7 @@ func (client ModuleClient) ListByAutomationAccount(ctx context.Context, resource result.mlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ModuleClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -412,6 +416,7 @@ func (client ModuleClient) listByAutomationAccountNextResults(ctx context.Contex result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ModuleClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -473,6 +478,7 @@ func (client ModuleClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ModuleClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/nodecountinformation.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/nodecountinformation.go index be419031873e..8a6cf59d9b9a 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/nodecountinformation.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/nodecountinformation.go @@ -83,6 +83,7 @@ func (client NodeCountInformationClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.NodeCountInformationClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/nodereports.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/nodereports.go index 98d4af9f94f9..156d8fd28265 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/nodereports.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/nodereports.go @@ -83,6 +83,7 @@ func (client NodeReportsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.NodeReportsClient", "Get", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client NodeReportsClient) GetContent(ctx context.Context, resourceGroupNam result, err = client.GetContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.NodeReportsClient", "GetContent", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client NodeReportsClient) ListByNode(ctx context.Context, resourceGroupNam result.dnrlr, err = client.ListByNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.NodeReportsClient", "ListByNode", resp, "Failure responding to request") + return } if result.dnrlr.hasNextLink() && result.dnrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -326,6 +329,7 @@ func (client NodeReportsClient) listByNodeNextResults(ctx context.Context, lastR result, err = client.ListByNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.NodeReportsClient", "listByNodeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/objectdatatypes.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/objectdatatypes.go index 5f9aae09d099..f7035e2ab922 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/objectdatatypes.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/objectdatatypes.go @@ -83,6 +83,7 @@ func (client ObjectDataTypesClient) ListFieldsByModuleAndType(ctx context.Contex result, err = client.ListFieldsByModuleAndTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ObjectDataTypesClient", "ListFieldsByModuleAndType", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client ObjectDataTypesClient) ListFieldsByType(ctx context.Context, resour result, err = client.ListFieldsByTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ObjectDataTypesClient", "ListFieldsByType", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/operations.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/operations.go index 38eea3485734..2451478f7f61 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/operations.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/python2package.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/python2package.go index 4492ece80e92..97d23e8c3c91 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/python2package.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/python2package.go @@ -92,6 +92,7 @@ func (client Python2PackageClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.Python2PackageClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client Python2PackageClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.Python2PackageClient", "Delete", resp, "Failure responding to request") + return } return @@ -263,6 +265,7 @@ func (client Python2PackageClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.Python2PackageClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +351,7 @@ func (client Python2PackageClient) ListByAutomationAccount(ctx context.Context, result.mlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.Python2PackageClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.mlr.hasNextLink() && result.mlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -412,6 +416,7 @@ func (client Python2PackageClient) listByAutomationAccountNextResults(ctx contex result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.Python2PackageClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -473,6 +478,7 @@ func (client Python2PackageClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.Python2PackageClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/runbook.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/runbook.go index 37fb1e0c294b..47fccba1d802 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/runbook.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/runbook.go @@ -101,6 +101,7 @@ func (client RunbookClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client RunbookClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "Delete", resp, "Failure responding to request") + return } return @@ -272,6 +274,7 @@ func (client RunbookClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "Get", resp, "Failure responding to request") + return } return @@ -357,6 +360,7 @@ func (client RunbookClient) GetContent(ctx context.Context, resourceGroupName st result, err = client.GetContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "GetContent", resp, "Failure responding to request") + return } return @@ -441,6 +445,7 @@ func (client RunbookClient) ListByAutomationAccount(ctx context.Context, resourc result.rlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -505,6 +510,7 @@ func (client RunbookClient) listByAutomationAccountNextResults(ctx context.Conte result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -650,6 +656,7 @@ func (client RunbookClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/runbookdraft.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/runbookdraft.go index 23e94999f3a0..7432f90eaa52 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/runbookdraft.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/runbookdraft.go @@ -83,6 +83,7 @@ func (client RunbookDraftClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookDraftClient", "Get", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client RunbookDraftClient) GetContent(ctx context.Context, resourceGroupNa result, err = client.GetContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookDraftClient", "GetContent", resp, "Failure responding to request") + return } return @@ -340,6 +342,7 @@ func (client RunbookDraftClient) UndoEdit(ctx context.Context, resourceGroupName result, err = client.UndoEditResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookDraftClient", "UndoEdit", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/schedule.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/schedule.go index 0eb871fb7bab..0c8c76a75eaf 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/schedule.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/schedule.go @@ -87,6 +87,7 @@ func (client ScheduleClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ScheduleClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client ScheduleClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ScheduleClient", "Delete", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client ScheduleClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ScheduleClient", "Get", resp, "Failure responding to request") + return } return @@ -343,6 +346,7 @@ func (client ScheduleClient) ListByAutomationAccount(ctx context.Context, resour result.slr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ScheduleClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -407,6 +411,7 @@ func (client ScheduleClient) listByAutomationAccountNextResults(ctx context.Cont result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ScheduleClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -468,6 +473,7 @@ func (client ScheduleClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.ScheduleClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/softwareupdateconfigurationmachineruns.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/softwareupdateconfigurationmachineruns.go index 3e102879d440..443bde0567ba 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/softwareupdateconfigurationmachineruns.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/softwareupdateconfigurationmachineruns.go @@ -86,6 +86,7 @@ func (client SoftwareUpdateConfigurationMachineRunsClient) GetByID(ctx context.C result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SoftwareUpdateConfigurationMachineRunsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client SoftwareUpdateConfigurationMachineRunsClient) List(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SoftwareUpdateConfigurationMachineRunsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/softwareupdateconfigurationruns.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/softwareupdateconfigurationruns.go index d77a0546e34e..2d0db05f0bf4 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/softwareupdateconfigurationruns.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/softwareupdateconfigurationruns.go @@ -85,6 +85,7 @@ func (client SoftwareUpdateConfigurationRunsClient) GetByID(ctx context.Context, result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SoftwareUpdateConfigurationRunsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client SoftwareUpdateConfigurationRunsClient) List(ctx context.Context, re result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SoftwareUpdateConfigurationRunsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/softwareupdateconfigurations.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/softwareupdateconfigurations.go index 91327c25189a..1450442f192c 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/softwareupdateconfigurations.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/softwareupdateconfigurations.go @@ -90,6 +90,7 @@ func (client SoftwareUpdateConfigurationsClient) Create(ctx context.Context, res result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SoftwareUpdateConfigurationsClient", "Create", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client SoftwareUpdateConfigurationsClient) Delete(ctx context.Context, res result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SoftwareUpdateConfigurationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client SoftwareUpdateConfigurationsClient) GetByName(ctx context.Context, result, err = client.GetByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SoftwareUpdateConfigurationsClient", "GetByName", resp, "Failure responding to request") + return } return @@ -364,6 +367,7 @@ func (client SoftwareUpdateConfigurationsClient) List(ctx context.Context, resou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SoftwareUpdateConfigurationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/sourcecontrol.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/sourcecontrol.go index 00204e48be7d..a50dcc443abb 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/sourcecontrol.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/sourcecontrol.go @@ -100,6 +100,7 @@ func (client SourceControlClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -187,6 +188,7 @@ func (client SourceControlClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlClient", "Delete", resp, "Failure responding to request") + return } return @@ -271,6 +273,7 @@ func (client SourceControlClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlClient", "Get", resp, "Failure responding to request") + return } return @@ -357,6 +360,7 @@ func (client SourceControlClient) ListByAutomationAccount(ctx context.Context, r result.sclr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.sclr.hasNextLink() && result.sclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -424,6 +428,7 @@ func (client SourceControlClient) listByAutomationAccountNextResults(ctx context result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -485,6 +490,7 @@ func (client SourceControlClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/sourcecontrolsyncjob.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/sourcecontrolsyncjob.go index c90b9a901c3a..2f37de6dc7ae 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/sourcecontrolsyncjob.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/sourcecontrolsyncjob.go @@ -91,6 +91,7 @@ func (client SourceControlSyncJobClient) Create(ctx context.Context, resourceGro result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlSyncJobClient", "Create", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client SourceControlSyncJobClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlSyncJobClient", "Get", resp, "Failure responding to request") + return } return @@ -268,6 +270,7 @@ func (client SourceControlSyncJobClient) ListByAutomationAccount(ctx context.Con result.scsjlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlSyncJobClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.scsjlr.hasNextLink() && result.scsjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -336,6 +339,7 @@ func (client SourceControlSyncJobClient) listByAutomationAccountNextResults(ctx result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlSyncJobClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/sourcecontrolsyncjobstreams.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/sourcecontrolsyncjobstreams.go index aba2d8b51533..b71108979ec0 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/sourcecontrolsyncjobstreams.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/sourcecontrolsyncjobstreams.go @@ -86,6 +86,7 @@ func (client SourceControlSyncJobStreamsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlSyncJobStreamsClient", "Get", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client SourceControlSyncJobStreamsClient) ListBySyncJob(ctx context.Contex result.scsjslbsj, err = client.ListBySyncJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlSyncJobStreamsClient", "ListBySyncJob", resp, "Failure responding to request") + return } if result.scsjslbsj.hasNextLink() && result.scsjslbsj.IsEmpty() { err = result.NextWithContext(ctx) @@ -245,6 +247,7 @@ func (client SourceControlSyncJobStreamsClient) listBySyncJobNextResults(ctx con result, err = client.ListBySyncJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.SourceControlSyncJobStreamsClient", "listBySyncJobNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/statistics.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/statistics.go index 3f01b08e60c1..5a22635b66d9 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/statistics.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/statistics.go @@ -82,6 +82,7 @@ func (client StatisticsClient) ListByAutomationAccount(ctx context.Context, reso result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.StatisticsClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/testjob.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/testjob.go index dcd779ebeb9b..c64e4109c66f 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/testjob.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/testjob.go @@ -83,6 +83,7 @@ func (client TestJobClient) Create(ctx context.Context, resourceGroupName string result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobClient", "Create", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client TestJobClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobClient", "Get", resp, "Failure responding to request") + return } return @@ -255,6 +257,7 @@ func (client TestJobClient) Resume(ctx context.Context, resourceGroupName string result, err = client.ResumeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobClient", "Resume", resp, "Failure responding to request") + return } return @@ -339,6 +342,7 @@ func (client TestJobClient) Stop(ctx context.Context, resourceGroupName string, result, err = client.StopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobClient", "Stop", resp, "Failure responding to request") + return } return @@ -423,6 +427,7 @@ func (client TestJobClient) Suspend(ctx context.Context, resourceGroupName strin result, err = client.SuspendResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobClient", "Suspend", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/testjobstreams.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/testjobstreams.go index cbbdc9a46045..64dc35dc2c3d 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/testjobstreams.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/testjobstreams.go @@ -83,6 +83,7 @@ func (client TestJobStreamsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobStreamsClient", "Get", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client TestJobStreamsClient) ListByTestJob(ctx context.Context, resourceGr result.jslr, err = client.ListByTestJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobStreamsClient", "ListByTestJob", resp, "Failure responding to request") + return } if result.jslr.hasNextLink() && result.jslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -239,6 +241,7 @@ func (client TestJobStreamsClient) listByTestJobNextResults(ctx context.Context, result, err = client.ListByTestJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.TestJobStreamsClient", "listByTestJobNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/usages.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/usages.go index 35c5b16c5c44..735616a2a66a 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/usages.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/usages.go @@ -81,6 +81,7 @@ func (client UsagesClient) ListByAutomationAccount(ctx context.Context, resource result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.UsagesClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/variable.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/variable.go index 15da745866e6..1de88df00569 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/variable.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/variable.go @@ -86,6 +86,7 @@ func (client VariableClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.VariableClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client VariableClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.VariableClient", "Delete", resp, "Failure responding to request") + return } return @@ -257,6 +259,7 @@ func (client VariableClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.VariableClient", "Get", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client VariableClient) ListByAutomationAccount(ctx context.Context, resour result.vlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.VariableClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.vlr.hasNextLink() && result.vlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -406,6 +410,7 @@ func (client VariableClient) listByAutomationAccountNextResults(ctx context.Cont result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.VariableClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -467,6 +472,7 @@ func (client VariableClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.VariableClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/watcher.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/watcher.go index 075aa382641d..2f3fe1c7d00a 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/watcher.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/watcher.go @@ -83,6 +83,7 @@ func (client WatcherClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WatcherClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client WatcherClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WatcherClient", "Delete", resp, "Failure responding to request") + return } return @@ -254,6 +256,7 @@ func (client WatcherClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WatcherClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +343,7 @@ func (client WatcherClient) ListByAutomationAccount(ctx context.Context, resourc result.wlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WatcherClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -407,6 +411,7 @@ func (client WatcherClient) listByAutomationAccountNextResults(ctx context.Conte result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WatcherClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -467,6 +472,7 @@ func (client WatcherClient) Start(ctx context.Context, resourceGroupName string, result, err = client.StartResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WatcherClient", "Start", resp, "Failure responding to request") + return } return @@ -551,6 +557,7 @@ func (client WatcherClient) Stop(ctx context.Context, resourceGroupName string, result, err = client.StopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WatcherClient", "Stop", resp, "Failure responding to request") + return } return @@ -636,6 +643,7 @@ func (client WatcherClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WatcherClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/webhook.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/webhook.go index e9b060a54150..bc74900a412d 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/webhook.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/webhook.go @@ -86,6 +86,7 @@ func (client WebhookClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client WebhookClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "Delete", resp, "Failure responding to request") + return } return @@ -256,6 +258,7 @@ func (client WebhookClient) GenerateURI(ctx context.Context, resourceGroupName s result, err = client.GenerateURIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "GenerateURI", resp, "Failure responding to request") + return } return @@ -340,6 +343,7 @@ func (client WebhookClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "Get", resp, "Failure responding to request") + return } return @@ -426,6 +430,7 @@ func (client WebhookClient) ListByAutomationAccount(ctx context.Context, resourc result.wlr, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "ListByAutomationAccount", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -493,6 +498,7 @@ func (client WebhookClient) listByAutomationAccountNextResults(ctx context.Conte result, err = client.ListByAutomationAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "listByAutomationAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -554,6 +560,7 @@ func (client WebhookClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "automation.WebhookClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/avs/mgmt/2019-08-09-preview/avs/clusters.go b/services/preview/avs/mgmt/2019-08-09-preview/avs/clusters.go index d3e8589db65a..904882c15e46 100644 --- a/services/preview/avs/mgmt/2019-08-09-preview/avs/clusters.go +++ b/services/preview/avs/mgmt/2019-08-09-preview/avs/clusters.go @@ -229,6 +229,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client ClustersClient) List(ctx context.Context, resourceGroupName string, result.cl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.ClustersClient", "List", resp, "Failure responding to request") + return } if result.cl.hasNextLink() && result.cl.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client ClustersClient) listNextResults(ctx context.Context, lastResults Cl result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.ClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/avs/mgmt/2019-08-09-preview/avs/locations.go b/services/preview/avs/mgmt/2019-08-09-preview/avs/locations.go index 36ab4b06eea5..8497f60a6a9d 100644 --- a/services/preview/avs/mgmt/2019-08-09-preview/avs/locations.go +++ b/services/preview/avs/mgmt/2019-08-09-preview/avs/locations.go @@ -71,6 +71,7 @@ func (client LocationsClient) CheckQuotaAvailability(ctx context.Context, locati result, err = client.CheckQuotaAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.LocationsClient", "CheckQuotaAvailability", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client LocationsClient) CheckTrialAvailability(ctx context.Context, locati result, err = client.CheckTrialAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.LocationsClient", "CheckTrialAvailability", resp, "Failure responding to request") + return } return diff --git a/services/preview/avs/mgmt/2019-08-09-preview/avs/operations.go b/services/preview/avs/mgmt/2019-08-09-preview/avs/operations.go index 4e110c731b05..e0e3c04975d6 100644 --- a/services/preview/avs/mgmt/2019-08-09-preview/avs/operations.go +++ b/services/preview/avs/mgmt/2019-08-09-preview/avs/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListPa result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/avs/mgmt/2019-08-09-preview/avs/privateclouds.go b/services/preview/avs/mgmt/2019-08-09-preview/avs/privateclouds.go index 97c3616d1de9..00eb762bad83 100644 --- a/services/preview/avs/mgmt/2019-08-09-preview/avs/privateclouds.go +++ b/services/preview/avs/mgmt/2019-08-09-preview/avs/privateclouds.go @@ -232,6 +232,7 @@ func (client PrivateCloudsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.PrivateCloudsClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client PrivateCloudsClient) List(ctx context.Context, resourceGroupName st result.pcl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.PrivateCloudsClient", "List", resp, "Failure responding to request") + return } if result.pcl.hasNextLink() && result.pcl.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client PrivateCloudsClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.PrivateCloudsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -421,6 +424,7 @@ func (client PrivateCloudsClient) ListAdminCredentials(ctx context.Context, reso result, err = client.ListAdminCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.PrivateCloudsClient", "ListAdminCredentials", resp, "Failure responding to request") + return } return @@ -494,6 +498,7 @@ func (client PrivateCloudsClient) ListInSubscription(ctx context.Context) (resul result.pcl, err = client.ListInSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.PrivateCloudsClient", "ListInSubscription", resp, "Failure responding to request") + return } if result.pcl.hasNextLink() && result.pcl.IsEmpty() { err = result.NextWithContext(ctx) @@ -556,6 +561,7 @@ func (client PrivateCloudsClient) listInSubscriptionNextResults(ctx context.Cont result, err = client.ListInSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.PrivateCloudsClient", "listInSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/avs/mgmt/2020-07-17-preview/avs/authorizations.go b/services/preview/avs/mgmt/2020-07-17-preview/avs/authorizations.go index 710aaa38d7aa..e5ce124924ff 100644 --- a/services/preview/avs/mgmt/2020-07-17-preview/avs/authorizations.go +++ b/services/preview/avs/mgmt/2020-07-17-preview/avs/authorizations.go @@ -261,6 +261,7 @@ func (client AuthorizationsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.AuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +349,7 @@ func (client AuthorizationsClient) List(ctx context.Context, resourceGroupName s result.eral, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.AuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.eral.hasNextLink() && result.eral.IsEmpty() { err = result.NextWithContext(ctx) @@ -412,6 +414,7 @@ func (client AuthorizationsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.AuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/avs/mgmt/2020-07-17-preview/avs/clusters.go b/services/preview/avs/mgmt/2020-07-17-preview/avs/clusters.go index e09e787ab8ca..d7aef2368bac 100644 --- a/services/preview/avs/mgmt/2020-07-17-preview/avs/clusters.go +++ b/services/preview/avs/mgmt/2020-07-17-preview/avs/clusters.go @@ -263,6 +263,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -350,6 +351,7 @@ func (client ClustersClient) List(ctx context.Context, resourceGroupName string, result.cl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.ClustersClient", "List", resp, "Failure responding to request") + return } if result.cl.hasNextLink() && result.cl.IsEmpty() { err = result.NextWithContext(ctx) @@ -414,6 +416,7 @@ func (client ClustersClient) listNextResults(ctx context.Context, lastResults Cl result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.ClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/avs/mgmt/2020-07-17-preview/avs/globalreachconnections.go b/services/preview/avs/mgmt/2020-07-17-preview/avs/globalreachconnections.go index 2e00db570fe8..4acd9f68eb9d 100644 --- a/services/preview/avs/mgmt/2020-07-17-preview/avs/globalreachconnections.go +++ b/services/preview/avs/mgmt/2020-07-17-preview/avs/globalreachconnections.go @@ -261,6 +261,7 @@ func (client GlobalReachConnectionsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.GlobalReachConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +349,7 @@ func (client GlobalReachConnectionsClient) List(ctx context.Context, resourceGro result.grcl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.GlobalReachConnectionsClient", "List", resp, "Failure responding to request") + return } if result.grcl.hasNextLink() && result.grcl.IsEmpty() { err = result.NextWithContext(ctx) @@ -412,6 +414,7 @@ func (client GlobalReachConnectionsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.GlobalReachConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/avs/mgmt/2020-07-17-preview/avs/hcxenterprisesites.go b/services/preview/avs/mgmt/2020-07-17-preview/avs/hcxenterprisesites.go index 132f732371df..841a212510c7 100644 --- a/services/preview/avs/mgmt/2020-07-17-preview/avs/hcxenterprisesites.go +++ b/services/preview/avs/mgmt/2020-07-17-preview/avs/hcxenterprisesites.go @@ -86,6 +86,7 @@ func (client HcxEnterpriseSitesClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.HcxEnterpriseSitesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client HcxEnterpriseSitesClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.HcxEnterpriseSitesClient", "Delete", resp, "Failure responding to request") + return } return @@ -262,6 +264,7 @@ func (client HcxEnterpriseSitesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.HcxEnterpriseSitesClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client HcxEnterpriseSitesClient) List(ctx context.Context, resourceGroupNa result.hesl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.HcxEnterpriseSitesClient", "List", resp, "Failure responding to request") + return } if result.hesl.hasNextLink() && result.hesl.IsEmpty() { err = result.NextWithContext(ctx) @@ -413,6 +417,7 @@ func (client HcxEnterpriseSitesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.HcxEnterpriseSitesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/avs/mgmt/2020-07-17-preview/avs/locations.go b/services/preview/avs/mgmt/2020-07-17-preview/avs/locations.go index 9fa29d591882..2aed084424c6 100644 --- a/services/preview/avs/mgmt/2020-07-17-preview/avs/locations.go +++ b/services/preview/avs/mgmt/2020-07-17-preview/avs/locations.go @@ -78,6 +78,7 @@ func (client LocationsClient) CheckQuotaAvailability(ctx context.Context, locati result, err = client.CheckQuotaAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.LocationsClient", "CheckQuotaAvailability", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client LocationsClient) CheckTrialAvailability(ctx context.Context, locati result, err = client.CheckTrialAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.LocationsClient", "CheckTrialAvailability", resp, "Failure responding to request") + return } return diff --git a/services/preview/avs/mgmt/2020-07-17-preview/avs/operations.go b/services/preview/avs/mgmt/2020-07-17-preview/avs/operations.go index 34406795a166..c0bbabd18f91 100644 --- a/services/preview/avs/mgmt/2020-07-17-preview/avs/operations.go +++ b/services/preview/avs/mgmt/2020-07-17-preview/avs/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListPa result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/avs/mgmt/2020-07-17-preview/avs/privateclouds.go b/services/preview/avs/mgmt/2020-07-17-preview/avs/privateclouds.go index 52e824d93e1c..737058196a6d 100644 --- a/services/preview/avs/mgmt/2020-07-17-preview/avs/privateclouds.go +++ b/services/preview/avs/mgmt/2020-07-17-preview/avs/privateclouds.go @@ -260,6 +260,7 @@ func (client PrivateCloudsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.PrivateCloudsClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +346,7 @@ func (client PrivateCloudsClient) List(ctx context.Context, resourceGroupName st result.pcl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.PrivateCloudsClient", "List", resp, "Failure responding to request") + return } if result.pcl.hasNextLink() && result.pcl.IsEmpty() { err = result.NextWithContext(ctx) @@ -408,6 +410,7 @@ func (client PrivateCloudsClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.PrivateCloudsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -469,6 +472,7 @@ func (client PrivateCloudsClient) ListAdminCredentials(ctx context.Context, reso result, err = client.ListAdminCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.PrivateCloudsClient", "ListAdminCredentials", resp, "Failure responding to request") + return } return @@ -548,6 +552,7 @@ func (client PrivateCloudsClient) ListInSubscription(ctx context.Context) (resul result.pcl, err = client.ListInSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.PrivateCloudsClient", "ListInSubscription", resp, "Failure responding to request") + return } if result.pcl.hasNextLink() && result.pcl.IsEmpty() { err = result.NextWithContext(ctx) @@ -610,6 +615,7 @@ func (client PrivateCloudsClient) listInSubscriptionNextResults(ctx context.Cont result, err = client.ListInSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.PrivateCloudsClient", "listInSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/avs/mgmt/2020-07-17-preview/avs/workloadnetworks.go b/services/preview/avs/mgmt/2020-07-17-preview/avs/workloadnetworks.go index 84cb3d9e9e11..29b1ddc53a59 100644 --- a/services/preview/avs/mgmt/2020-07-17-preview/avs/workloadnetworks.go +++ b/services/preview/avs/mgmt/2020-07-17-preview/avs/workloadnetworks.go @@ -789,6 +789,7 @@ func (client WorkloadNetworksClient) GetDhcp(ctx context.Context, resourceGroupN result, err = client.GetDhcpResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.WorkloadNetworksClient", "GetDhcp", resp, "Failure responding to request") + return } return @@ -876,6 +877,7 @@ func (client WorkloadNetworksClient) GetGateway(ctx context.Context, resourceGro result, err = client.GetGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.WorkloadNetworksClient", "GetGateway", resp, "Failure responding to request") + return } return @@ -963,6 +965,7 @@ func (client WorkloadNetworksClient) GetPortMirroring(ctx context.Context, resou result, err = client.GetPortMirroringResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.WorkloadNetworksClient", "GetPortMirroring", resp, "Failure responding to request") + return } return @@ -1050,6 +1053,7 @@ func (client WorkloadNetworksClient) GetSegment(ctx context.Context, resourceGro result, err = client.GetSegmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.WorkloadNetworksClient", "GetSegment", resp, "Failure responding to request") + return } return @@ -1137,6 +1141,7 @@ func (client WorkloadNetworksClient) GetVirtualMachine(ctx context.Context, reso result, err = client.GetVirtualMachineResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.WorkloadNetworksClient", "GetVirtualMachine", resp, "Failure responding to request") + return } return @@ -1224,6 +1229,7 @@ func (client WorkloadNetworksClient) GetVMGroup(ctx context.Context, resourceGro result, err = client.GetVMGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.WorkloadNetworksClient", "GetVMGroup", resp, "Failure responding to request") + return } return @@ -1311,6 +1317,7 @@ func (client WorkloadNetworksClient) ListDhcp(ctx context.Context, resourceGroup result.wndl, err = client.ListDhcpResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.WorkloadNetworksClient", "ListDhcp", resp, "Failure responding to request") + return } if result.wndl.hasNextLink() && result.wndl.IsEmpty() { err = result.NextWithContext(ctx) @@ -1375,6 +1382,7 @@ func (client WorkloadNetworksClient) listDhcpNextResults(ctx context.Context, la result, err = client.ListDhcpResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.WorkloadNetworksClient", "listDhcpNextResults", resp, "Failure responding to next results request") + return } return } @@ -1437,6 +1445,7 @@ func (client WorkloadNetworksClient) ListGateways(ctx context.Context, resourceG result.wngl, err = client.ListGatewaysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.WorkloadNetworksClient", "ListGateways", resp, "Failure responding to request") + return } if result.wngl.hasNextLink() && result.wngl.IsEmpty() { err = result.NextWithContext(ctx) @@ -1501,6 +1510,7 @@ func (client WorkloadNetworksClient) listGatewaysNextResults(ctx context.Context result, err = client.ListGatewaysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.WorkloadNetworksClient", "listGatewaysNextResults", resp, "Failure responding to next results request") + return } return } @@ -1563,6 +1573,7 @@ func (client WorkloadNetworksClient) ListPortMirroring(ctx context.Context, reso result.wnpml, err = client.ListPortMirroringResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.WorkloadNetworksClient", "ListPortMirroring", resp, "Failure responding to request") + return } if result.wnpml.hasNextLink() && result.wnpml.IsEmpty() { err = result.NextWithContext(ctx) @@ -1627,6 +1638,7 @@ func (client WorkloadNetworksClient) listPortMirroringNextResults(ctx context.Co result, err = client.ListPortMirroringResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.WorkloadNetworksClient", "listPortMirroringNextResults", resp, "Failure responding to next results request") + return } return } @@ -1689,6 +1701,7 @@ func (client WorkloadNetworksClient) ListSegments(ctx context.Context, resourceG result.wnsl, err = client.ListSegmentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.WorkloadNetworksClient", "ListSegments", resp, "Failure responding to request") + return } if result.wnsl.hasNextLink() && result.wnsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -1753,6 +1766,7 @@ func (client WorkloadNetworksClient) listSegmentsNextResults(ctx context.Context result, err = client.ListSegmentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.WorkloadNetworksClient", "listSegmentsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1815,6 +1829,7 @@ func (client WorkloadNetworksClient) ListVirtualMachines(ctx context.Context, re result.wnvml, err = client.ListVirtualMachinesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.WorkloadNetworksClient", "ListVirtualMachines", resp, "Failure responding to request") + return } if result.wnvml.hasNextLink() && result.wnvml.IsEmpty() { err = result.NextWithContext(ctx) @@ -1879,6 +1894,7 @@ func (client WorkloadNetworksClient) listVirtualMachinesNextResults(ctx context. result, err = client.ListVirtualMachinesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.WorkloadNetworksClient", "listVirtualMachinesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1941,6 +1957,7 @@ func (client WorkloadNetworksClient) ListVMGroups(ctx context.Context, resourceG result.wnvgl, err = client.ListVMGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.WorkloadNetworksClient", "ListVMGroups", resp, "Failure responding to request") + return } if result.wnvgl.hasNextLink() && result.wnvgl.IsEmpty() { err = result.NextWithContext(ctx) @@ -2005,6 +2022,7 @@ func (client WorkloadNetworksClient) listVMGroupsNextResults(ctx context.Context result, err = client.ListVMGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "avs.WorkloadNetworksClient", "listVMGroupsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/datacontrollers.go b/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/datacontrollers.go index 73a3ab43f99e..a8cdd9ab041d 100644 --- a/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/datacontrollers.go +++ b/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/datacontrollers.go @@ -73,6 +73,7 @@ func (client DataControllersClient) DeleteDataController(ctx context.Context, re result, err = client.DeleteDataControllerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.DataControllersClient", "DeleteDataController", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client DataControllersClient) GetDataController(ctx context.Context, resou result, err = client.GetDataControllerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.DataControllersClient", "GetDataController", resp, "Failure responding to request") + return } return @@ -221,6 +223,7 @@ func (client DataControllersClient) ListInGroup(ctx context.Context, resourceGro result.podcr, err = client.ListInGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.DataControllersClient", "ListInGroup", resp, "Failure responding to request") + return } if result.podcr.hasNextLink() && result.podcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -284,6 +287,7 @@ func (client DataControllersClient) listInGroupNextResults(ctx context.Context, result, err = client.ListInGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.DataControllersClient", "listInGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -333,6 +337,7 @@ func (client DataControllersClient) ListInSubscription(ctx context.Context) (res result.podcr, err = client.ListInSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.DataControllersClient", "ListInSubscription", resp, "Failure responding to request") + return } if result.podcr.hasNextLink() && result.podcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -395,6 +400,7 @@ func (client DataControllersClient) listInSubscriptionNextResults(ctx context.Co result, err = client.ListInSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.DataControllersClient", "listInSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -446,6 +452,7 @@ func (client DataControllersClient) PatchDataController(ctx context.Context, res result, err = client.PatchDataControllerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.DataControllersClient", "PatchDataController", resp, "Failure responding to request") + return } return @@ -534,6 +541,7 @@ func (client DataControllersClient) PutDataController(ctx context.Context, resou result, err = client.PutDataControllerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.DataControllersClient", "PutDataController", resp, "Failure responding to request") + return } return diff --git a/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/operations.go b/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/operations.go index 103d92d9d942..62d004d4f87c 100644 --- a/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/operations.go +++ b/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/postgresinstances.go b/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/postgresinstances.go index 0e507d6b6f81..06fcc0a64f98 100644 --- a/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/postgresinstances.go +++ b/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/postgresinstances.go @@ -74,6 +74,7 @@ func (client PostgresInstancesClient) Create(ctx context.Context, resourceGroupN result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.PostgresInstancesClient", "Create", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client PostgresInstancesClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.PostgresInstancesClient", "Delete", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client PostgresInstancesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.PostgresInstancesClient", "Get", resp, "Failure responding to request") + return } return @@ -296,6 +299,7 @@ func (client PostgresInstancesClient) List(ctx context.Context) (result Postgres result.pilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.PostgresInstancesClient", "List", resp, "Failure responding to request") + return } if result.pilr.hasNextLink() && result.pilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -358,6 +362,7 @@ func (client PostgresInstancesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.PostgresInstancesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -409,6 +414,7 @@ func (client PostgresInstancesClient) ListByResourceGroup(ctx context.Context, r result.pilr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.PostgresInstancesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.pilr.hasNextLink() && result.pilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -472,6 +478,7 @@ func (client PostgresInstancesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.PostgresInstancesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -524,6 +531,7 @@ func (client PostgresInstancesClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.PostgresInstancesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/sqlmanagedinstances.go b/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/sqlmanagedinstances.go index d81dbd50fb38..ca97bf8daddf 100644 --- a/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/sqlmanagedinstances.go +++ b/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/sqlmanagedinstances.go @@ -75,6 +75,7 @@ func (client SQLManagedInstancesClient) Create(ctx context.Context, resourceGrou result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLManagedInstancesClient", "Create", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client SQLManagedInstancesClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLManagedInstancesClient", "Delete", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client SQLManagedInstancesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLManagedInstancesClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +302,7 @@ func (client SQLManagedInstancesClient) List(ctx context.Context) (result SQLMan result.smilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLManagedInstancesClient", "List", resp, "Failure responding to request") + return } if result.smilr.hasNextLink() && result.smilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -361,6 +365,7 @@ func (client SQLManagedInstancesClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLManagedInstancesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +417,7 @@ func (client SQLManagedInstancesClient) ListByResourceGroup(ctx context.Context, result.smilr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLManagedInstancesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.smilr.hasNextLink() && result.smilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +481,7 @@ func (client SQLManagedInstancesClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLManagedInstancesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -527,6 +534,7 @@ func (client SQLManagedInstancesClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLManagedInstancesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/sqlserverinstances.go b/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/sqlserverinstances.go index 53c95f1113bf..3e718837e5ac 100644 --- a/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/sqlserverinstances.go +++ b/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/sqlserverinstances.go @@ -88,6 +88,7 @@ func (client SQLServerInstancesClient) Create(ctx context.Context, resourceGroup result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerInstancesClient", "Create", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client SQLServerInstancesClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerInstancesClient", "Delete", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client SQLServerInstancesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerInstancesClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +315,7 @@ func (client SQLServerInstancesClient) List(ctx context.Context) (result SQLServ result.ssilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerInstancesClient", "List", resp, "Failure responding to request") + return } if result.ssilr.hasNextLink() && result.ssilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +378,7 @@ func (client SQLServerInstancesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerInstancesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -425,6 +430,7 @@ func (client SQLServerInstancesClient) ListByResourceGroup(ctx context.Context, result.ssilr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerInstancesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ssilr.hasNextLink() && result.ssilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -488,6 +494,7 @@ func (client SQLServerInstancesClient) listByResourceGroupNextResults(ctx contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerInstancesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -540,6 +547,7 @@ func (client SQLServerInstancesClient) Update(ctx context.Context, resourceGroup result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerInstancesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/sqlserverregistrations.go b/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/sqlserverregistrations.go index 82fef4f720c2..77e9c96e1e2d 100644 --- a/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/sqlserverregistrations.go +++ b/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/sqlserverregistrations.go @@ -76,6 +76,7 @@ func (client SQLServerRegistrationsClient) CreateOrUpdate(ctx context.Context, r result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerRegistrationsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client SQLServerRegistrationsClient) Delete(ctx context.Context, resourceG result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerRegistrationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client SQLServerRegistrationsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerRegistrationsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +305,7 @@ func (client SQLServerRegistrationsClient) List(ctx context.Context) (result SQL result.ssrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerRegistrationsClient", "List", resp, "Failure responding to request") + return } if result.ssrlr.hasNextLink() && result.ssrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +368,7 @@ func (client SQLServerRegistrationsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerRegistrationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +421,7 @@ func (client SQLServerRegistrationsClient) ListByResourceGroup(ctx context.Conte result.ssrlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerRegistrationsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ssrlr.hasNextLink() && result.ssrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +485,7 @@ func (client SQLServerRegistrationsClient) listByResourceGroupNextResults(ctx co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerRegistrationsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -532,6 +539,7 @@ func (client SQLServerRegistrationsClient) Update(ctx context.Context, resourceG result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerRegistrationsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/sqlservers.go b/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/sqlservers.go index 3d2ee8772a43..fff491271b3e 100644 --- a/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/sqlservers.go +++ b/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/sqlservers.go @@ -76,6 +76,7 @@ func (client SQLServersClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client SQLServersClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServersClient", "Delete", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client SQLServersClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServersClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client SQLServersClient) ListByResourceGroup(ctx context.Context, resource result.sslr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sslr.hasNextLink() && result.sslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -383,6 +387,7 @@ func (client SQLServersClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/datacontrollers.go b/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/datacontrollers.go index 73a3ab43f99e..a8cdd9ab041d 100644 --- a/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/datacontrollers.go +++ b/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/datacontrollers.go @@ -73,6 +73,7 @@ func (client DataControllersClient) DeleteDataController(ctx context.Context, re result, err = client.DeleteDataControllerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.DataControllersClient", "DeleteDataController", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client DataControllersClient) GetDataController(ctx context.Context, resou result, err = client.GetDataControllerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.DataControllersClient", "GetDataController", resp, "Failure responding to request") + return } return @@ -221,6 +223,7 @@ func (client DataControllersClient) ListInGroup(ctx context.Context, resourceGro result.podcr, err = client.ListInGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.DataControllersClient", "ListInGroup", resp, "Failure responding to request") + return } if result.podcr.hasNextLink() && result.podcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -284,6 +287,7 @@ func (client DataControllersClient) listInGroupNextResults(ctx context.Context, result, err = client.ListInGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.DataControllersClient", "listInGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -333,6 +337,7 @@ func (client DataControllersClient) ListInSubscription(ctx context.Context) (res result.podcr, err = client.ListInSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.DataControllersClient", "ListInSubscription", resp, "Failure responding to request") + return } if result.podcr.hasNextLink() && result.podcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -395,6 +400,7 @@ func (client DataControllersClient) listInSubscriptionNextResults(ctx context.Co result, err = client.ListInSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.DataControllersClient", "listInSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -446,6 +452,7 @@ func (client DataControllersClient) PatchDataController(ctx context.Context, res result, err = client.PatchDataControllerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.DataControllersClient", "PatchDataController", resp, "Failure responding to request") + return } return @@ -534,6 +541,7 @@ func (client DataControllersClient) PutDataController(ctx context.Context, resou result, err = client.PutDataControllerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.DataControllersClient", "PutDataController", resp, "Failure responding to request") + return } return diff --git a/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/operations.go b/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/operations.go index 103d92d9d942..62d004d4f87c 100644 --- a/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/operations.go +++ b/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/postgresinstances.go b/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/postgresinstances.go index 0e507d6b6f81..06fcc0a64f98 100644 --- a/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/postgresinstances.go +++ b/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/postgresinstances.go @@ -74,6 +74,7 @@ func (client PostgresInstancesClient) Create(ctx context.Context, resourceGroupN result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.PostgresInstancesClient", "Create", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client PostgresInstancesClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.PostgresInstancesClient", "Delete", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client PostgresInstancesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.PostgresInstancesClient", "Get", resp, "Failure responding to request") + return } return @@ -296,6 +299,7 @@ func (client PostgresInstancesClient) List(ctx context.Context) (result Postgres result.pilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.PostgresInstancesClient", "List", resp, "Failure responding to request") + return } if result.pilr.hasNextLink() && result.pilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -358,6 +362,7 @@ func (client PostgresInstancesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.PostgresInstancesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -409,6 +414,7 @@ func (client PostgresInstancesClient) ListByResourceGroup(ctx context.Context, r result.pilr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.PostgresInstancesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.pilr.hasNextLink() && result.pilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -472,6 +478,7 @@ func (client PostgresInstancesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.PostgresInstancesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -524,6 +531,7 @@ func (client PostgresInstancesClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.PostgresInstancesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/sqlmanagedinstances.go b/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/sqlmanagedinstances.go index d81dbd50fb38..ca97bf8daddf 100644 --- a/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/sqlmanagedinstances.go +++ b/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/sqlmanagedinstances.go @@ -75,6 +75,7 @@ func (client SQLManagedInstancesClient) Create(ctx context.Context, resourceGrou result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLManagedInstancesClient", "Create", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client SQLManagedInstancesClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLManagedInstancesClient", "Delete", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client SQLManagedInstancesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLManagedInstancesClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +302,7 @@ func (client SQLManagedInstancesClient) List(ctx context.Context) (result SQLMan result.smilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLManagedInstancesClient", "List", resp, "Failure responding to request") + return } if result.smilr.hasNextLink() && result.smilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -361,6 +365,7 @@ func (client SQLManagedInstancesClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLManagedInstancesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +417,7 @@ func (client SQLManagedInstancesClient) ListByResourceGroup(ctx context.Context, result.smilr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLManagedInstancesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.smilr.hasNextLink() && result.smilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +481,7 @@ func (client SQLManagedInstancesClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLManagedInstancesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -527,6 +534,7 @@ func (client SQLManagedInstancesClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLManagedInstancesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/sqlserverinstances.go b/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/sqlserverinstances.go index 53c95f1113bf..3e718837e5ac 100644 --- a/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/sqlserverinstances.go +++ b/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/sqlserverinstances.go @@ -88,6 +88,7 @@ func (client SQLServerInstancesClient) Create(ctx context.Context, resourceGroup result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerInstancesClient", "Create", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client SQLServerInstancesClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerInstancesClient", "Delete", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client SQLServerInstancesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerInstancesClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +315,7 @@ func (client SQLServerInstancesClient) List(ctx context.Context) (result SQLServ result.ssilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerInstancesClient", "List", resp, "Failure responding to request") + return } if result.ssilr.hasNextLink() && result.ssilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +378,7 @@ func (client SQLServerInstancesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerInstancesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -425,6 +430,7 @@ func (client SQLServerInstancesClient) ListByResourceGroup(ctx context.Context, result.ssilr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerInstancesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ssilr.hasNextLink() && result.ssilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -488,6 +494,7 @@ func (client SQLServerInstancesClient) listByResourceGroupNextResults(ctx contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerInstancesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -540,6 +547,7 @@ func (client SQLServerInstancesClient) Update(ctx context.Context, resourceGroup result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerInstancesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/sqlserverregistrations.go b/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/sqlserverregistrations.go index 82fef4f720c2..77e9c96e1e2d 100644 --- a/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/sqlserverregistrations.go +++ b/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/sqlserverregistrations.go @@ -76,6 +76,7 @@ func (client SQLServerRegistrationsClient) CreateOrUpdate(ctx context.Context, r result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerRegistrationsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client SQLServerRegistrationsClient) Delete(ctx context.Context, resourceG result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerRegistrationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client SQLServerRegistrationsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerRegistrationsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +305,7 @@ func (client SQLServerRegistrationsClient) List(ctx context.Context) (result SQL result.ssrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerRegistrationsClient", "List", resp, "Failure responding to request") + return } if result.ssrlr.hasNextLink() && result.ssrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +368,7 @@ func (client SQLServerRegistrationsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerRegistrationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +421,7 @@ func (client SQLServerRegistrationsClient) ListByResourceGroup(ctx context.Conte result.ssrlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerRegistrationsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ssrlr.hasNextLink() && result.ssrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +485,7 @@ func (client SQLServerRegistrationsClient) listByResourceGroupNextResults(ctx co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerRegistrationsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -532,6 +539,7 @@ func (client SQLServerRegistrationsClient) Update(ctx context.Context, resourceG result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServerRegistrationsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/sqlservers.go b/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/sqlservers.go index 3d2ee8772a43..fff491271b3e 100644 --- a/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/sqlservers.go +++ b/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/sqlservers.go @@ -76,6 +76,7 @@ func (client SQLServersClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client SQLServersClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServersClient", "Delete", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client SQLServersClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServersClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client SQLServersClient) ListByResourceGroup(ctx context.Context, resource result.sslr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sslr.hasNextLink() && result.sslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -383,6 +387,7 @@ func (client SQLServersClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azuredata.SQLServersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/azurestackhci/mgmt/2020-03-01-preview/azurestackhci/clusters.go b/services/preview/azurestackhci/mgmt/2020-03-01-preview/azurestackhci/clusters.go index 2345e171cc85..ec12025895e2 100644 --- a/services/preview/azurestackhci/mgmt/2020-03-01-preview/azurestackhci/clusters.go +++ b/services/preview/azurestackhci/mgmt/2020-03-01-preview/azurestackhci/clusters.go @@ -89,6 +89,7 @@ func (client ClustersClient) Create(ctx context.Context, resourceGroupName strin result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestackhci.ClustersClient", "Create", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client ClustersClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestackhci.ClustersClient", "Delete", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestackhci.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -339,6 +342,7 @@ func (client ClustersClient) List(ctx context.Context) (result ClusterListPage, result.cl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestackhci.ClustersClient", "List", resp, "Failure responding to request") + return } if result.cl.hasNextLink() && result.cl.IsEmpty() { err = result.NextWithContext(ctx) @@ -401,6 +405,7 @@ func (client ClustersClient) listNextResults(ctx context.Context, lastResults Cl result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestackhci.ClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -462,6 +467,7 @@ func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGr result.cl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestackhci.ClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cl.hasNextLink() && result.cl.IsEmpty() { err = result.NextWithContext(ctx) @@ -525,6 +531,7 @@ func (client ClustersClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestackhci.ClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -587,6 +594,7 @@ func (client ClustersClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestackhci.ClustersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/azurestackhci/mgmt/2020-03-01-preview/azurestackhci/operations.go b/services/preview/azurestackhci/mgmt/2020-03-01-preview/azurestackhci/operations.go index 2016851d098e..50fefab0e367 100644 --- a/services/preview/azurestackhci/mgmt/2020-03-01-preview/azurestackhci/operations.go +++ b/services/preview/azurestackhci/mgmt/2020-03-01-preview/azurestackhci/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result AvailableOperat result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "azurestackhci.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/baremetalinfrastructure/mgmt/2020-08-06-preview/baremetalinfrastructure/azurebaremetalinstances.go b/services/preview/baremetalinfrastructure/mgmt/2020-08-06-preview/baremetalinfrastructure/azurebaremetalinstances.go index 443344d6ae59..e11b0191bd1c 100644 --- a/services/preview/baremetalinfrastructure/mgmt/2020-08-06-preview/baremetalinfrastructure/azurebaremetalinstances.go +++ b/services/preview/baremetalinfrastructure/mgmt/2020-08-06-preview/baremetalinfrastructure/azurebaremetalinstances.go @@ -168,6 +168,7 @@ func (client AzureBareMetalInstancesClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "baremetalinfrastructure.AzureBareMetalInstancesClient", "Get", resp, "Failure responding to request") + return } return @@ -253,6 +254,7 @@ func (client AzureBareMetalInstancesClient) List(ctx context.Context, resourceGr result.abmilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "baremetalinfrastructure.AzureBareMetalInstancesClient", "List", resp, "Failure responding to request") + return } if result.abmilr.hasNextLink() && result.abmilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -316,6 +318,7 @@ func (client AzureBareMetalInstancesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "baremetalinfrastructure.AzureBareMetalInstancesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -372,6 +375,7 @@ func (client AzureBareMetalInstancesClient) ListBySubscription(ctx context.Conte result.abmilr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "baremetalinfrastructure.AzureBareMetalInstancesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.abmilr.hasNextLink() && result.abmilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -434,6 +438,7 @@ func (client AzureBareMetalInstancesClient) listBySubscriptionNextResults(ctx co result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "baremetalinfrastructure.AzureBareMetalInstancesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -749,6 +754,7 @@ func (client AzureBareMetalInstancesClient) Update(ctx context.Context, resource result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "baremetalinfrastructure.AzureBareMetalInstancesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/baremetalinfrastructure/mgmt/2020-08-06-preview/baremetalinfrastructure/operations.go b/services/preview/baremetalinfrastructure/mgmt/2020-08-06-preview/baremetalinfrastructure/operations.go index 6f47bf4d49b4..42a7ba72cb1a 100644 --- a/services/preview/baremetalinfrastructure/mgmt/2020-08-06-preview/baremetalinfrastructure/operations.go +++ b/services/preview/baremetalinfrastructure/mgmt/2020-08-06-preview/baremetalinfrastructure/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationList, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "baremetalinfrastructure.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/batchai/mgmt/2017-09-01-preview/batchai/clusters.go b/services/preview/batchai/mgmt/2017-09-01-preview/batchai/clusters.go index ba80f9f9a8ee..9e29d2dfbf85 100644 --- a/services/preview/batchai/mgmt/2017-09-01-preview/batchai/clusters.go +++ b/services/preview/batchai/mgmt/2017-09-01-preview/batchai/clusters.go @@ -291,6 +291,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -377,6 +378,7 @@ func (client ClustersClient) List(ctx context.Context, filter string, selectPara result.clr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.ClustersClient", "List", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -450,6 +452,7 @@ func (client ClustersClient) listNextResults(ctx context.Context, lastResults Cl result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.ClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +518,7 @@ func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGr result.clr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.ClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -589,6 +593,7 @@ func (client ClustersClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.ClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -653,6 +658,7 @@ func (client ClustersClient) ListRemoteLoginInformation(ctx context.Context, res result.rlilr, err = client.ListRemoteLoginInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.ClustersClient", "ListRemoteLoginInformation", resp, "Failure responding to request") + return } if result.rlilr.hasNextLink() && result.rlilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -717,6 +723,7 @@ func (client ClustersClient) listRemoteLoginInformationNextResults(ctx context.C result, err = client.ListRemoteLoginInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.ClustersClient", "listRemoteLoginInformationNextResults", resp, "Failure responding to next results request") + return } return } @@ -781,6 +788,7 @@ func (client ClustersClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.ClustersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/batchai/mgmt/2017-09-01-preview/batchai/fileservers.go b/services/preview/batchai/mgmt/2017-09-01-preview/batchai/fileservers.go index df106100b8a8..4d1be95c8bd0 100644 --- a/services/preview/batchai/mgmt/2017-09-01-preview/batchai/fileservers.go +++ b/services/preview/batchai/mgmt/2017-09-01-preview/batchai/fileservers.go @@ -276,6 +276,7 @@ func (client FileServersClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.FileServersClient", "Get", resp, "Failure responding to request") + return } return @@ -363,6 +364,7 @@ func (client FileServersClient) List(ctx context.Context, filter string, selectP result.fslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.FileServersClient", "List", resp, "Failure responding to request") + return } if result.fslr.hasNextLink() && result.fslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -436,6 +438,7 @@ func (client FileServersClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.FileServersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -502,6 +505,7 @@ func (client FileServersClient) ListByResourceGroup(ctx context.Context, resourc result.fslr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.FileServersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.fslr.hasNextLink() && result.fslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -576,6 +580,7 @@ func (client FileServersClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.FileServersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/batchai/mgmt/2017-09-01-preview/batchai/jobs.go b/services/preview/batchai/mgmt/2017-09-01-preview/batchai/jobs.go index 74e5dacb9686..ab2205bd47f2 100644 --- a/services/preview/batchai/mgmt/2017-09-01-preview/batchai/jobs.go +++ b/services/preview/batchai/mgmt/2017-09-01-preview/batchai/jobs.go @@ -292,6 +292,7 @@ func (client JobsClient) Get(ctx context.Context, resourceGroupName string, jobN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.JobsClient", "Get", resp, "Failure responding to request") + return } return @@ -378,6 +379,7 @@ func (client JobsClient) List(ctx context.Context, filter string, selectParamete result.jlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.JobsClient", "List", resp, "Failure responding to request") + return } if result.jlr.hasNextLink() && result.jlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -451,6 +453,7 @@ func (client JobsClient) listNextResults(ctx context.Context, lastResults JobLis result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.JobsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -516,6 +519,7 @@ func (client JobsClient) ListByResourceGroup(ctx context.Context, resourceGroupN result.jlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.JobsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.jlr.hasNextLink() && result.jlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -590,6 +594,7 @@ func (client JobsClient) listByResourceGroupNextResults(ctx context.Context, las result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.JobsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -669,6 +674,7 @@ func (client JobsClient) ListOutputFiles(ctx context.Context, resourceGroupName result.flr, err = client.ListOutputFilesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.JobsClient", "ListOutputFiles", resp, "Failure responding to request") + return } if result.flr.hasNextLink() && result.flr.IsEmpty() { err = result.NextWithContext(ctx) @@ -744,6 +750,7 @@ func (client JobsClient) listOutputFilesNextResults(ctx context.Context, lastRes result, err = client.ListOutputFilesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.JobsClient", "listOutputFilesNextResults", resp, "Failure responding to next results request") + return } return } @@ -809,6 +816,7 @@ func (client JobsClient) ListRemoteLoginInformation(ctx context.Context, resourc result.rlilr, err = client.ListRemoteLoginInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.JobsClient", "ListRemoteLoginInformation", resp, "Failure responding to request") + return } if result.rlilr.hasNextLink() && result.rlilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -873,6 +881,7 @@ func (client JobsClient) listRemoteLoginInformationNextResults(ctx context.Conte result, err = client.ListRemoteLoginInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.JobsClient", "listRemoteLoginInformationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/batchai/mgmt/2017-09-01-preview/batchai/operations.go b/services/preview/batchai/mgmt/2017-09-01-preview/batchai/operations.go index 51b3822c0901..19307cb3b8d2 100644 --- a/services/preview/batchai/mgmt/2017-09-01-preview/batchai/operations.go +++ b/services/preview/batchai/mgmt/2017-09-01-preview/batchai/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "batchai.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2017-02-27-preview/billing/invoices.go b/services/preview/billing/mgmt/2017-02-27-preview/billing/invoices.go index cacaaf59dc0c..70dcb092c35e 100644 --- a/services/preview/billing/mgmt/2017-02-27-preview/billing/invoices.go +++ b/services/preview/billing/mgmt/2017-02-27-preview/billing/invoices.go @@ -75,6 +75,7 @@ func (client InvoicesClient) Get(ctx context.Context, invoiceName string) (resul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "Get", resp, "Failure responding to request") + return } return @@ -147,6 +148,7 @@ func (client InvoicesClient) GetLatest(ctx context.Context) (result Invoice, err result, err = client.GetLatestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "GetLatest", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client InvoicesClient) List(ctx context.Context, expand string, filter str result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -313,6 +316,7 @@ func (client InvoicesClient) listNextResults(ctx context.Context, lastResults In result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2017-02-27-preview/billing/operations.go b/services/preview/billing/mgmt/2017-02-27-preview/billing/operations.go index 5f18d510348f..7936b78b9d67 100644 --- a/services/preview/billing/mgmt/2017-02-27-preview/billing/operations.go +++ b/services/preview/billing/mgmt/2017-02-27-preview/billing/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2017-04-24-preview/billing/invoices.go b/services/preview/billing/mgmt/2017-04-24-preview/billing/invoices.go index 99c130d74c65..65da3221b804 100644 --- a/services/preview/billing/mgmt/2017-04-24-preview/billing/invoices.go +++ b/services/preview/billing/mgmt/2017-04-24-preview/billing/invoices.go @@ -75,6 +75,7 @@ func (client InvoicesClient) Get(ctx context.Context, invoiceName string) (resul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "Get", resp, "Failure responding to request") + return } return @@ -147,6 +148,7 @@ func (client InvoicesClient) GetLatest(ctx context.Context) (result Invoice, err result, err = client.GetLatestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "GetLatest", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client InvoicesClient) List(ctx context.Context, expand string, filter str result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -313,6 +316,7 @@ func (client InvoicesClient) listNextResults(ctx context.Context, lastResults In result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2017-04-24-preview/billing/operations.go b/services/preview/billing/mgmt/2017-04-24-preview/billing/operations.go index 12e6c899da42..f7aed68de043 100644 --- a/services/preview/billing/mgmt/2017-04-24-preview/billing/operations.go +++ b/services/preview/billing/mgmt/2017-04-24-preview/billing/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2017-04-24-preview/billing/periods.go b/services/preview/billing/mgmt/2017-04-24-preview/billing/periods.go index 9cbaef55ab0b..8772a6582108 100644 --- a/services/preview/billing/mgmt/2017-04-24-preview/billing/periods.go +++ b/services/preview/billing/mgmt/2017-04-24-preview/billing/periods.go @@ -74,6 +74,7 @@ func (client PeriodsClient) Get(ctx context.Context, billingPeriodName string) ( result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PeriodsClient", "Get", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client PeriodsClient) List(ctx context.Context, filter string, skiptoken s result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PeriodsClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -233,6 +235,7 @@ func (client PeriodsClient) listNextResults(ctx context.Context, lastResults Per result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PeriodsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2018-03-01-preview/billing/enrollmentaccounts.go b/services/preview/billing/mgmt/2018-03-01-preview/billing/enrollmentaccounts.go index 6ce62d63f084..e892483b9488 100644 --- a/services/preview/billing/mgmt/2018-03-01-preview/billing/enrollmentaccounts.go +++ b/services/preview/billing/mgmt/2018-03-01-preview/billing/enrollmentaccounts.go @@ -72,6 +72,7 @@ func (client EnrollmentAccountsClient) Get(ctx context.Context, name string) (re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.EnrollmentAccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -143,6 +144,7 @@ func (client EnrollmentAccountsClient) List(ctx context.Context) (result Enrollm result.ealr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.EnrollmentAccountsClient", "List", resp, "Failure responding to request") + return } if result.ealr.hasNextLink() && result.ealr.IsEmpty() { err = result.NextWithContext(ctx) @@ -201,6 +203,7 @@ func (client EnrollmentAccountsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.EnrollmentAccountsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2018-03-01-preview/billing/invoices.go b/services/preview/billing/mgmt/2018-03-01-preview/billing/invoices.go index 15cce5c6c945..3ba9be9c98c3 100644 --- a/services/preview/billing/mgmt/2018-03-01-preview/billing/invoices.go +++ b/services/preview/billing/mgmt/2018-03-01-preview/billing/invoices.go @@ -74,6 +74,7 @@ func (client InvoicesClient) Get(ctx context.Context, invoiceName string) (resul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "Get", resp, "Failure responding to request") + return } return @@ -147,6 +148,7 @@ func (client InvoicesClient) GetLatest(ctx context.Context) (result Invoice, err result, err = client.GetLatestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "GetLatest", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client InvoicesClient) List(ctx context.Context, expand string, filter str result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -314,6 +317,7 @@ func (client InvoicesClient) listNextResults(ctx context.Context, lastResults In result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2018-03-01-preview/billing/operations.go b/services/preview/billing/mgmt/2018-03-01-preview/billing/operations.go index 0d2c4d1448c5..7367e80892e6 100644 --- a/services/preview/billing/mgmt/2018-03-01-preview/billing/operations.go +++ b/services/preview/billing/mgmt/2018-03-01-preview/billing/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2018-03-01-preview/billing/periods.go b/services/preview/billing/mgmt/2018-03-01-preview/billing/periods.go index d6505b8d2001..de1d8ec737f6 100644 --- a/services/preview/billing/mgmt/2018-03-01-preview/billing/periods.go +++ b/services/preview/billing/mgmt/2018-03-01-preview/billing/periods.go @@ -73,6 +73,7 @@ func (client PeriodsClient) Get(ctx context.Context, billingPeriodName string) ( result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PeriodsClient", "Get", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client PeriodsClient) List(ctx context.Context, filter string, skiptoken s result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PeriodsClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -234,6 +236,7 @@ func (client PeriodsClient) listNextResults(ctx context.Context, lastResults Per result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PeriodsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/accounts.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/accounts.go index 5dd0dac0c8e4..f18472b539ae 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/accounts.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/accounts.go @@ -72,6 +72,7 @@ func (client AccountsClient) Get(ctx context.Context, billingAccountName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.AccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client AccountsClient) List(ctx context.Context, expand string) (result Ac result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.AccountsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -209,6 +211,7 @@ func (client AccountsClient) listNextResults(ctx context.Context, lastResults Ac result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.AccountsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/addresses.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/addresses.go index 88271853f083..74940f5b9463 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/addresses.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/addresses.go @@ -69,6 +69,7 @@ func (client AddressesClient) Validate(ctx context.Context, address Address) (re result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.AddressesClient", "Validate", resp, "Failure responding to request") + return } return diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/agreements.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/agreements.go index d3394be155bb..fd58abb31e89 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/agreements.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/agreements.go @@ -73,6 +73,7 @@ func (client AgreementsClient) Get(ctx context.Context, billingAccountName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.AgreementsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client AgreementsClient) ListByBillingAccountName(ctx context.Context, bil result.alr, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.AgreementsClient", "ListByBillingAccountName", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client AgreementsClient) listByBillingAccountNameNextResults(ctx context.C result, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.AgreementsClient", "listByBillingAccountNameNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/availablebalances.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/availablebalances.go index e07180d36044..8805e2b6d5d4 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/availablebalances.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/availablebalances.go @@ -73,6 +73,7 @@ func (client AvailableBalancesClient) GetByBillingProfile(ctx context.Context, b result, err = client.GetByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.AvailableBalancesClient", "GetByBillingProfile", resp, "Failure responding to request") + return } return diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/customers.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/customers.go index c3dac6192f71..598033dc1a9e 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/customers.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/customers.go @@ -73,6 +73,7 @@ func (client CustomersClient) Get(ctx context.Context, billingAccountName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.CustomersClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client CustomersClient) ListByBillingAccountName(ctx context.Context, bill result.clr, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.CustomersClient", "ListByBillingAccountName", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -223,6 +225,7 @@ func (client CustomersClient) listByBillingAccountNameNextResults(ctx context.Co result, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.CustomersClient", "listByBillingAccountNameNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/departments.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/departments.go index 95b21049ac15..a8858db1c6e8 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/departments.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/departments.go @@ -75,6 +75,7 @@ func (client DepartmentsClient) Get(ctx context.Context, billingAccountName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.DepartmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client DepartmentsClient) ListByBillingAccountName(ctx context.Context, bi result.dlr, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.DepartmentsClient", "ListByBillingAccountName", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -226,6 +228,7 @@ func (client DepartmentsClient) listByBillingAccountNameNextResults(ctx context. result, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.DepartmentsClient", "listByBillingAccountNameNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/enrollmentaccounts.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/enrollmentaccounts.go index 8371116f3011..ff283980d8db 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/enrollmentaccounts.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/enrollmentaccounts.go @@ -76,6 +76,7 @@ func (client EnrollmentAccountsClient) GetByEnrollmentAccountID(ctx context.Cont result, err = client.GetByEnrollmentAccountIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.EnrollmentAccountsClient", "GetByEnrollmentAccountID", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client EnrollmentAccountsClient) ListByBillingAccountName(ctx context.Cont result.ealr, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.EnrollmentAccountsClient", "ListByBillingAccountName", resp, "Failure responding to request") + return } if result.ealr.hasNextLink() && result.ealr.IsEmpty() { err = result.NextWithContext(ctx) @@ -227,6 +229,7 @@ func (client EnrollmentAccountsClient) listByBillingAccountNameNextResults(ctx c result, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.EnrollmentAccountsClient", "listByBillingAccountNameNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/invoices.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/invoices.go index 2e8ce2e73a2f..acadc1daa99f 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/invoices.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/invoices.go @@ -73,6 +73,7 @@ func (client InvoicesClient) Get(ctx context.Context, billingAccountName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client InvoicesClient) ListByBillingAccountName(ctx context.Context, billi result.ilr, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "ListByBillingAccountName", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -214,6 +216,7 @@ func (client InvoicesClient) listByBillingAccountNameNextResults(ctx context.Con result, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "listByBillingAccountNameNextResults", resp, "Failure responding to next results request") + return } return } @@ -268,6 +271,7 @@ func (client InvoicesClient) ListByBillingProfile(ctx context.Context, billingAc result.ilr, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "ListByBillingProfile", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -333,6 +337,7 @@ func (client InvoicesClient) listByBillingProfileNextResults(ctx context.Context result, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "listByBillingProfileNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/invoicesections.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/invoicesections.go index 1f8d940f964e..a9e429c8bfd7 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/invoicesections.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/invoicesections.go @@ -147,6 +147,7 @@ func (client InvoiceSectionsClient) ElevateToBillingProfile(ctx context.Context, result, err = client.ElevateToBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoiceSectionsClient", "ElevateToBillingProfile", resp, "Failure responding to request") + return } return @@ -215,6 +216,7 @@ func (client InvoiceSectionsClient) Get(ctx context.Context, billingAccountName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoiceSectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -292,6 +294,7 @@ func (client InvoiceSectionsClient) ListByBillingAccountName(ctx context.Context result, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoiceSectionsClient", "ListByBillingAccountName", resp, "Failure responding to request") + return } return @@ -369,6 +372,7 @@ func (client InvoiceSectionsClient) ListByBillingProfileName(ctx context.Context result.islr, err = client.ListByBillingProfileNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoiceSectionsClient", "ListByBillingProfileName", resp, "Failure responding to request") + return } if result.islr.hasNextLink() && result.islr.IsEmpty() { err = result.NextWithContext(ctx) @@ -432,6 +436,7 @@ func (client InvoiceSectionsClient) listByBillingProfileNameNextResults(ctx cont result, err = client.ListByBillingProfileNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoiceSectionsClient", "listByBillingProfileNameNextResults", resp, "Failure responding to next results request") + return } return } @@ -484,6 +489,7 @@ func (client InvoiceSectionsClient) ListByCreateSubscriptionPermission(ctx conte result.islr, err = client.ListByCreateSubscriptionPermissionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoiceSectionsClient", "ListByCreateSubscriptionPermission", resp, "Failure responding to request") + return } if result.islr.hasNextLink() && result.islr.IsEmpty() { err = result.NextWithContext(ctx) @@ -549,6 +555,7 @@ func (client InvoiceSectionsClient) listByCreateSubscriptionPermissionNextResult result, err = client.ListByCreateSubscriptionPermissionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoiceSectionsClient", "listByCreateSubscriptionPermissionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/lineofcredits.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/lineofcredits.go index 2fb93f37adfe..bd1c51ed320b 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/lineofcredits.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/lineofcredits.go @@ -69,6 +69,7 @@ func (client LineOfCreditsClient) Get(ctx context.Context) (result LineOfCredit, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.LineOfCreditsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/operations.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/operations.go index e07207449509..eeb9e1ec5fad 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/operations.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/paymentmethods.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/paymentmethods.go index 627bd2c06201..ff8aadbfda1c 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/paymentmethods.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/paymentmethods.go @@ -72,6 +72,7 @@ func (client PaymentMethodsClient) ListByBillingAccountName(ctx context.Context, result.pmlr, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PaymentMethodsClient", "ListByBillingAccountName", resp, "Failure responding to request") + return } if result.pmlr.hasNextLink() && result.pmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -134,6 +135,7 @@ func (client PaymentMethodsClient) listByBillingAccountNameNextResults(ctx conte result, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PaymentMethodsClient", "listByBillingAccountNameNextResults", resp, "Failure responding to next results request") + return } return } @@ -186,6 +188,7 @@ func (client PaymentMethodsClient) ListByBillingProfileName(ctx context.Context, result.pmlr, err = client.ListByBillingProfileNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PaymentMethodsClient", "ListByBillingProfileName", resp, "Failure responding to request") + return } if result.pmlr.hasNextLink() && result.pmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -249,6 +252,7 @@ func (client PaymentMethodsClient) listByBillingProfileNameNextResults(ctx conte result, err = client.ListByBillingProfileNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PaymentMethodsClient", "listByBillingProfileNameNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/permissions.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/permissions.go index e069c8f3189c..18928fc64849 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/permissions.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/permissions.go @@ -71,6 +71,7 @@ func (client PermissionsClient) ListByBillingAccount(ctx context.Context, billin result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PermissionsClient", "ListByBillingAccount", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client PermissionsClient) ListByBillingProfile(ctx context.Context, billin result, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PermissionsClient", "ListByBillingProfile", resp, "Failure responding to request") + return } return @@ -218,6 +220,7 @@ func (client PermissionsClient) ListByCustomers(ctx context.Context, billingAcco result, err = client.ListByCustomersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PermissionsClient", "ListByCustomers", resp, "Failure responding to request") + return } return @@ -292,6 +295,7 @@ func (client PermissionsClient) ListByInvoiceSections(ctx context.Context, billi result, err = client.ListByInvoiceSectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PermissionsClient", "ListByInvoiceSections", resp, "Failure responding to request") + return } return diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/policies.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/policies.go index 5cff396ddb7d..ebe8acd6b3b6 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/policies.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/policies.go @@ -72,6 +72,7 @@ func (client PoliciesClient) GetByBillingProfileName(ctx context.Context, billin result, err = client.GetByBillingProfileNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PoliciesClient", "GetByBillingProfileName", resp, "Failure responding to request") + return } return @@ -147,6 +148,7 @@ func (client PoliciesClient) Update(ctx context.Context, billingAccountName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PoliciesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/products.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/products.go index ea8ee44dc756..9f0d5240a27e 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/products.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/products.go @@ -73,6 +73,7 @@ func (client ProductsClient) Get(ctx context.Context, billingAccountName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ProductsClient) ListByBillingAccountName(ctx context.Context, billi result.plr, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "ListByBillingAccountName", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client ProductsClient) listByBillingAccountNameNextResults(ctx context.Con result, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "listByBillingAccountNameNextResults", resp, "Failure responding to next results request") + return } return } @@ -271,6 +274,7 @@ func (client ProductsClient) ListByInvoiceSectionName(ctx context.Context, billi result.plr, err = client.ListByInvoiceSectionNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "ListByInvoiceSectionName", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -337,6 +341,7 @@ func (client ProductsClient) listByInvoiceSectionNameNextResults(ctx context.Con result, err = client.ListByInvoiceSectionNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "listByInvoiceSectionNameNextResults", resp, "Failure responding to next results request") + return } return } @@ -390,6 +395,7 @@ func (client ProductsClient) Transfer(ctx context.Context, billingAccountName st result, err = client.TransferResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "Transfer", resp, "Failure responding to request") + return } return @@ -468,6 +474,7 @@ func (client ProductsClient) UpdateAutoRenewByBillingAccountName(ctx context.Con result, err = client.UpdateAutoRenewByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "UpdateAutoRenewByBillingAccountName", resp, "Failure responding to request") + return } return @@ -546,6 +553,7 @@ func (client ProductsClient) UpdateAutoRenewByInvoiceSectionName(ctx context.Con result, err = client.UpdateAutoRenewByInvoiceSectionNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "UpdateAutoRenewByInvoiceSectionName", resp, "Failure responding to request") + return } return @@ -625,6 +633,7 @@ func (client ProductsClient) ValidateTransfer(ctx context.Context, billingAccoun result, err = client.ValidateTransferResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "ValidateTransfer", resp, "Failure responding to request") + return } return diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/profiles.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/profiles.go index f928fb4b75b5..bcb1009589e6 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/profiles.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/profiles.go @@ -148,6 +148,7 @@ func (client ProfilesClient) Get(ctx context.Context, billingAccountName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -226,6 +227,7 @@ func (client ProfilesClient) ListByBillingAccountName(ctx context.Context, billi result.plr, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProfilesClient", "ListByBillingAccountName", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -291,6 +293,7 @@ func (client ProfilesClient) listByBillingAccountNameNextResults(ctx context.Con result, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProfilesClient", "listByBillingAccountNameNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/property.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/property.go index 5ec35800aded..e25142352521 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/property.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/property.go @@ -69,6 +69,7 @@ func (client PropertyClient) Get(ctx context.Context) (result Property, err erro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PropertyClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/recipienttransfers.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/recipienttransfers.go index d48bbbc50784..34bb42e59029 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/recipienttransfers.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/recipienttransfers.go @@ -73,6 +73,7 @@ func (client RecipientTransfersClient) Accept(ctx context.Context, transferName result, err = client.AcceptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RecipientTransfersClient", "Accept", resp, "Failure responding to request") + return } return @@ -141,6 +142,7 @@ func (client RecipientTransfersClient) Decline(ctx context.Context, transferName result, err = client.DeclineResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RecipientTransfersClient", "Decline", resp, "Failure responding to request") + return } return @@ -207,6 +209,7 @@ func (client RecipientTransfersClient) Get(ctx context.Context, transferName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RecipientTransfersClient", "Get", resp, "Failure responding to request") + return } return @@ -272,6 +275,7 @@ func (client RecipientTransfersClient) List(ctx context.Context) (result Recipie result.rtdlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RecipientTransfersClient", "List", resp, "Failure responding to request") + return } if result.rtdlr.hasNextLink() && result.rtdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -324,6 +328,7 @@ func (client RecipientTransfersClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RecipientTransfersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/roleassignments.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/roleassignments.go index c354eb4fdd1b..9ee2a6d7685e 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/roleassignments.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/roleassignments.go @@ -72,6 +72,7 @@ func (client RoleAssignmentsClient) AddByBillingAccountName(ctx context.Context, result, err = client.AddByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "AddByBillingAccountName", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client RoleAssignmentsClient) AddByBillingProfileName(ctx context.Context, result, err = client.AddByBillingProfileNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "AddByBillingProfileName", resp, "Failure responding to request") + return } return @@ -225,6 +227,7 @@ func (client RoleAssignmentsClient) AddByInvoiceSectionName(ctx context.Context, result, err = client.AddByInvoiceSectionNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "AddByInvoiceSectionName", resp, "Failure responding to request") + return } return @@ -301,6 +304,7 @@ func (client RoleAssignmentsClient) DeleteByBillingAccountName(ctx context.Conte result, err = client.DeleteByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "DeleteByBillingAccountName", resp, "Failure responding to request") + return } return @@ -376,6 +380,7 @@ func (client RoleAssignmentsClient) DeleteByBillingProfileName(ctx context.Conte result, err = client.DeleteByBillingProfileNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "DeleteByBillingProfileName", resp, "Failure responding to request") + return } return @@ -452,6 +457,7 @@ func (client RoleAssignmentsClient) DeleteByInvoiceSectionName(ctx context.Conte result, err = client.DeleteByInvoiceSectionNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "DeleteByInvoiceSectionName", resp, "Failure responding to request") + return } return @@ -527,6 +533,7 @@ func (client RoleAssignmentsClient) GetByBillingAccount(ctx context.Context, bil result, err = client.GetByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "GetByBillingAccount", resp, "Failure responding to request") + return } return @@ -602,6 +609,7 @@ func (client RoleAssignmentsClient) GetByBillingProfileName(ctx context.Context, result, err = client.GetByBillingProfileNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "GetByBillingProfileName", resp, "Failure responding to request") + return } return @@ -678,6 +686,7 @@ func (client RoleAssignmentsClient) GetByInvoiceSectionName(ctx context.Context, result, err = client.GetByInvoiceSectionNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "GetByInvoiceSectionName", resp, "Failure responding to request") + return } return @@ -752,6 +761,7 @@ func (client RoleAssignmentsClient) ListByBillingAccountName(ctx context.Context result, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "ListByBillingAccountName", resp, "Failure responding to request") + return } return @@ -825,6 +835,7 @@ func (client RoleAssignmentsClient) ListByBillingProfileName(ctx context.Context result, err = client.ListByBillingProfileNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "ListByBillingProfileName", resp, "Failure responding to request") + return } return @@ -899,6 +910,7 @@ func (client RoleAssignmentsClient) ListByInvoiceSectionName(ctx context.Context result, err = client.ListByInvoiceSectionNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "ListByInvoiceSectionName", resp, "Failure responding to request") + return } return diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/roledefinitions.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/roledefinitions.go index 04f959262492..4f62a21f7ae4 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/roledefinitions.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/roledefinitions.go @@ -72,6 +72,7 @@ func (client RoleDefinitionsClient) GetByBillingAccountName(ctx context.Context, result, err = client.GetByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleDefinitionsClient", "GetByBillingAccountName", resp, "Failure responding to request") + return } return @@ -147,6 +148,7 @@ func (client RoleDefinitionsClient) GetByBillingProfileName(ctx context.Context, result, err = client.GetByBillingProfileNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleDefinitionsClient", "GetByBillingProfileName", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client RoleDefinitionsClient) GetByInvoiceSectionName(ctx context.Context, result, err = client.GetByInvoiceSectionNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleDefinitionsClient", "GetByInvoiceSectionName", resp, "Failure responding to request") + return } return @@ -297,6 +300,7 @@ func (client RoleDefinitionsClient) ListByBillingAccountName(ctx context.Context result, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleDefinitionsClient", "ListByBillingAccountName", resp, "Failure responding to request") + return } return @@ -370,6 +374,7 @@ func (client RoleDefinitionsClient) ListByBillingProfileName(ctx context.Context result, err = client.ListByBillingProfileNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleDefinitionsClient", "ListByBillingProfileName", resp, "Failure responding to request") + return } return @@ -444,6 +449,7 @@ func (client RoleDefinitionsClient) ListByInvoiceSectionName(ctx context.Context result, err = client.ListByInvoiceSectionNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleDefinitionsClient", "ListByInvoiceSectionName", resp, "Failure responding to request") + return } return diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/subscriptions.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/subscriptions.go index 77cd48540310..70d6d910df7c 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/subscriptions.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/subscriptions.go @@ -73,6 +73,7 @@ func (client SubscriptionsClient) Get(ctx context.Context, billingAccountName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client SubscriptionsClient) GetByCustomerName(ctx context.Context, billing result, err = client.GetByCustomerNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "GetByCustomerName", resp, "Failure responding to request") + return } return @@ -224,6 +226,7 @@ func (client SubscriptionsClient) ListByBillingAccountName(ctx context.Context, result.slr, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "ListByBillingAccountName", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -286,6 +289,7 @@ func (client SubscriptionsClient) listByBillingAccountNameNextResults(ctx contex result, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "listByBillingAccountNameNextResults", resp, "Failure responding to next results request") + return } return } @@ -338,6 +342,7 @@ func (client SubscriptionsClient) ListByBillingProfileName(ctx context.Context, result.slr, err = client.ListByBillingProfileNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "ListByBillingProfileName", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -401,6 +406,7 @@ func (client SubscriptionsClient) listByBillingProfileNameNextResults(ctx contex result, err = client.ListByBillingProfileNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "listByBillingProfileNameNextResults", resp, "Failure responding to next results request") + return } return } @@ -453,6 +459,7 @@ func (client SubscriptionsClient) ListByCustomerName(ctx context.Context, billin result.slr, err = client.ListByCustomerNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "ListByCustomerName", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +523,7 @@ func (client SubscriptionsClient) listByCustomerNameNextResults(ctx context.Cont result, err = client.ListByCustomerNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "listByCustomerNameNextResults", resp, "Failure responding to next results request") + return } return } @@ -568,6 +576,7 @@ func (client SubscriptionsClient) ListByInvoiceSectionName(ctx context.Context, result.slr, err = client.ListByInvoiceSectionNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "ListByInvoiceSectionName", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -631,6 +640,7 @@ func (client SubscriptionsClient) listByInvoiceSectionNameNextResults(ctx contex result, err = client.ListByInvoiceSectionNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "listByInvoiceSectionNameNextResults", resp, "Failure responding to next results request") + return } return } @@ -757,6 +767,7 @@ func (client SubscriptionsClient) ValidateTransfer(ctx context.Context, billingA result, err = client.ValidateTransferResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "ValidateTransfer", resp, "Failure responding to request") + return } return diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/transactions.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/transactions.go index 8ee75327a902..1a7b4fa32380 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/transactions.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/transactions.go @@ -77,6 +77,7 @@ func (client TransactionsClient) ListByBillingAccountName(ctx context.Context, b result.tlr, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.TransactionsClient", "ListByBillingAccountName", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -144,6 +145,7 @@ func (client TransactionsClient) listByBillingAccountNameNextResults(ctx context result, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.TransactionsClient", "listByBillingAccountNameNextResults", resp, "Failure responding to next results request") + return } return } @@ -201,6 +203,7 @@ func (client TransactionsClient) ListByBillingProfileName(ctx context.Context, b result.tlr, err = client.ListByBillingProfileNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.TransactionsClient", "ListByBillingProfileName", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -269,6 +272,7 @@ func (client TransactionsClient) listByBillingProfileNameNextResults(ctx context result, err = client.ListByBillingProfileNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.TransactionsClient", "listByBillingProfileNameNextResults", resp, "Failure responding to next results request") + return } return } @@ -326,6 +330,7 @@ func (client TransactionsClient) ListByCustomerName(ctx context.Context, billing result.tlr, err = client.ListByCustomerNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.TransactionsClient", "ListByCustomerName", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +399,7 @@ func (client TransactionsClient) listByCustomerNameNextResults(ctx context.Conte result, err = client.ListByCustomerNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.TransactionsClient", "listByCustomerNameNextResults", resp, "Failure responding to next results request") + return } return } @@ -451,6 +457,7 @@ func (client TransactionsClient) ListByInvoiceSectionName(ctx context.Context, b result.tlr, err = client.ListByInvoiceSectionNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.TransactionsClient", "ListByInvoiceSectionName", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -519,6 +526,7 @@ func (client TransactionsClient) listByInvoiceSectionNameNextResults(ctx context result, err = client.ListByInvoiceSectionNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.TransactionsClient", "listByInvoiceSectionNameNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/transfers.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/transfers.go index 5f90d80c6eea..44d540c00434 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/transfers.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/transfers.go @@ -73,6 +73,7 @@ func (client TransfersClient) Cancel(ctx context.Context, billingAccountName str result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.TransfersClient", "Cancel", resp, "Failure responding to request") + return } return @@ -143,6 +144,7 @@ func (client TransfersClient) Get(ctx context.Context, billingAccountName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.TransfersClient", "Get", resp, "Failure responding to request") + return } return @@ -213,6 +215,7 @@ func (client TransfersClient) Initiate(ctx context.Context, billingAccountName s result, err = client.InitiateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.TransfersClient", "Initiate", resp, "Failure responding to request") + return } return @@ -284,6 +287,7 @@ func (client TransfersClient) List(ctx context.Context, billingAccountName strin result.tdlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.TransfersClient", "List", resp, "Failure responding to request") + return } if result.tdlr.hasNextLink() && result.tdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -341,6 +345,7 @@ func (client TransfersClient) listNextResults(ctx context.Context, lastResults T result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.TransfersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/accounts.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/accounts.go index 412d84b7f6d8..4e8aea4241c3 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/accounts.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/accounts.go @@ -72,6 +72,7 @@ func (client AccountsClient) Get(ctx context.Context, billingAccountName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.AccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client AccountsClient) List(ctx context.Context, expand string) (result Ac result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.AccountsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -209,6 +211,7 @@ func (client AccountsClient) listNextResults(ctx context.Context, lastResults Ac result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.AccountsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -262,6 +265,7 @@ func (client AccountsClient) ListInvoiceSectionsByCreateSubscriptionPermission(c result.islwcspr, err = client.ListInvoiceSectionsByCreateSubscriptionPermissionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.AccountsClient", "ListInvoiceSectionsByCreateSubscriptionPermission", resp, "Failure responding to request") + return } if result.islwcspr.hasNextLink() && result.islwcspr.IsEmpty() { err = result.NextWithContext(ctx) @@ -324,6 +328,7 @@ func (client AccountsClient) listInvoiceSectionsByCreateSubscriptionPermissionNe result, err = client.ListInvoiceSectionsByCreateSubscriptionPermissionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.AccountsClient", "listInvoiceSectionsByCreateSubscriptionPermissionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/address.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/address.go index bc411463c3be..eba644ba847c 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/address.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/address.go @@ -78,6 +78,7 @@ func (client AddressClient) Validate(ctx context.Context, address AddressDetails result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.AddressClient", "Validate", resp, "Failure responding to request") + return } return diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/agreements.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/agreements.go index c5ed9db34dba..97b676a59e74 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/agreements.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/agreements.go @@ -73,6 +73,7 @@ func (client AgreementsClient) Get(ctx context.Context, billingAccountName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.AgreementsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client AgreementsClient) ListByBillingAccount(ctx context.Context, billing result.alr, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.AgreementsClient", "ListByBillingAccount", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client AgreementsClient) listByBillingAccountNextResults(ctx context.Conte result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.AgreementsClient", "listByBillingAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/availablebalances.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/availablebalances.go index 9e7029db721c..979e4ebafa28 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/availablebalances.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/availablebalances.go @@ -75,6 +75,7 @@ func (client AvailableBalancesClient) Get(ctx context.Context, billingAccountNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.AvailableBalancesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/customers.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/customers.go index 9693fb625f8e..24145efb3d7c 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/customers.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/customers.go @@ -74,6 +74,7 @@ func (client CustomersClient) Get(ctx context.Context, billingAccountName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.CustomersClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client CustomersClient) ListByBillingAccount(ctx context.Context, billingA result.clr, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.CustomersClient", "ListByBillingAccount", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -223,6 +225,7 @@ func (client CustomersClient) listByBillingAccountNextResults(ctx context.Contex result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.CustomersClient", "listByBillingAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -279,6 +282,7 @@ func (client CustomersClient) ListByBillingProfile(ctx context.Context, billingA result.clr, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.CustomersClient", "ListByBillingProfile", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -348,6 +352,7 @@ func (client CustomersClient) listByBillingProfileNextResults(ctx context.Contex result, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.CustomersClient", "listByBillingProfileNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/enrollmentaccounts.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/enrollmentaccounts.go index 9b675f99c74e..e99fbe68a0e8 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/enrollmentaccounts.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/enrollmentaccounts.go @@ -72,6 +72,7 @@ func (client EnrollmentAccountsClient) Get(ctx context.Context, name string) (re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.EnrollmentAccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -143,6 +144,7 @@ func (client EnrollmentAccountsClient) List(ctx context.Context) (result Enrollm result.ealr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.EnrollmentAccountsClient", "List", resp, "Failure responding to request") + return } if result.ealr.hasNextLink() && result.ealr.IsEmpty() { err = result.NextWithContext(ctx) @@ -201,6 +203,7 @@ func (client EnrollmentAccountsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.EnrollmentAccountsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/instructions.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/instructions.go index c35013217250..d1e3f24fea7f 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/instructions.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/instructions.go @@ -75,6 +75,7 @@ func (client InstructionsClient) Get(ctx context.Context, billingAccountName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InstructionsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client InstructionsClient) ListByBillingProfile(ctx context.Context, billi result.ilr, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InstructionsClient", "ListByBillingProfile", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -214,6 +216,7 @@ func (client InstructionsClient) listByBillingProfileNextResults(ctx context.Con result, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InstructionsClient", "listByBillingProfileNextResults", resp, "Failure responding to next results request") + return } return } @@ -278,6 +281,7 @@ func (client InstructionsClient) Put(ctx context.Context, billingAccountName str result, err = client.PutResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InstructionsClient", "Put", resp, "Failure responding to request") + return } return diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/invoices.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/invoices.go index 785e9ca4129f..4d8de4224ab8 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/invoices.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/invoices.go @@ -390,6 +390,7 @@ func (client InvoicesClient) Get(ctx context.Context, billingAccountName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "Get", resp, "Failure responding to request") + return } return @@ -464,6 +465,7 @@ func (client InvoicesClient) GetByID(ctx context.Context, invoiceName string) (r result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "GetByID", resp, "Failure responding to request") + return } return @@ -536,6 +538,7 @@ func (client InvoicesClient) GetBySubscriptionAndInvoiceID(ctx context.Context, result, err = client.GetBySubscriptionAndInvoiceIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "GetBySubscriptionAndInvoiceID", resp, "Failure responding to request") + return } return @@ -613,6 +616,7 @@ func (client InvoicesClient) ListByBillingAccount(ctx context.Context, billingAc result.ilr, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "ListByBillingAccount", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -677,6 +681,7 @@ func (client InvoicesClient) listByBillingAccountNextResults(ctx context.Context result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "listByBillingAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -732,6 +737,7 @@ func (client InvoicesClient) ListByBillingProfile(ctx context.Context, billingAc result.ilr, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "ListByBillingProfile", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -797,6 +803,7 @@ func (client InvoicesClient) listByBillingProfileNextResults(ctx context.Context result, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "listByBillingProfileNextResults", resp, "Failure responding to next results request") + return } return } @@ -849,6 +856,7 @@ func (client InvoicesClient) ListByBillingSubscription(ctx context.Context, peri result.ilr, err = client.ListByBillingSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "ListByBillingSubscription", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -913,6 +921,7 @@ func (client InvoicesClient) listByBillingSubscriptionNextResults(ctx context.Co result, err = client.ListByBillingSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "listByBillingSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/invoicesections.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/invoicesections.go index 18a63e39850b..80c7a97c8bdd 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/invoicesections.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/invoicesections.go @@ -154,6 +154,7 @@ func (client InvoiceSectionsClient) Get(ctx context.Context, billingAccountName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoiceSectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -231,6 +232,7 @@ func (client InvoiceSectionsClient) ListByBillingProfile(ctx context.Context, bi result.islr, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoiceSectionsClient", "ListByBillingProfile", resp, "Failure responding to request") + return } if result.islr.hasNextLink() && result.islr.IsEmpty() { err = result.NextWithContext(ctx) @@ -294,6 +296,7 @@ func (client InvoiceSectionsClient) listByBillingProfileNextResults(ctx context. result, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoiceSectionsClient", "listByBillingProfileNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/operations.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/operations.go index 22c983a6462a..97c88786820a 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/operations.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/periods.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/periods.go index d6505b8d2001..de1d8ec737f6 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/periods.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/periods.go @@ -73,6 +73,7 @@ func (client PeriodsClient) Get(ctx context.Context, billingPeriodName string) ( result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PeriodsClient", "Get", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client PeriodsClient) List(ctx context.Context, filter string, skiptoken s result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PeriodsClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -234,6 +236,7 @@ func (client PeriodsClient) listNextResults(ctx context.Context, lastResults Per result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PeriodsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/permissions.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/permissions.go index 47470e602e1c..6f9328048e3d 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/permissions.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/permissions.go @@ -72,6 +72,7 @@ func (client PermissionsClient) ListByBillingAccount(ctx context.Context, billin result.plr, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PermissionsClient", "ListByBillingAccount", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -134,6 +135,7 @@ func (client PermissionsClient) listByBillingAccountNextResults(ctx context.Cont result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PermissionsClient", "listByBillingAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -186,6 +188,7 @@ func (client PermissionsClient) ListByBillingProfile(ctx context.Context, billin result.plr, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PermissionsClient", "ListByBillingProfile", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -249,6 +252,7 @@ func (client PermissionsClient) listByBillingProfileNextResults(ctx context.Cont result, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PermissionsClient", "listByBillingProfileNextResults", resp, "Failure responding to next results request") + return } return } @@ -301,6 +305,7 @@ func (client PermissionsClient) ListByCustomer(ctx context.Context, billingAccou result.plr, err = client.ListByCustomerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PermissionsClient", "ListByCustomer", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +369,7 @@ func (client PermissionsClient) listByCustomerNextResults(ctx context.Context, l result, err = client.ListByCustomerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PermissionsClient", "listByCustomerNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +423,7 @@ func (client PermissionsClient) ListByInvoiceSections(ctx context.Context, billi result.plr, err = client.ListByInvoiceSectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PermissionsClient", "ListByInvoiceSections", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +488,7 @@ func (client PermissionsClient) listByInvoiceSectionsNextResults(ctx context.Con result, err = client.ListByInvoiceSectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PermissionsClient", "listByInvoiceSectionsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/policies.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/policies.go index bb26fafdd9f0..52cf2729ca32 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/policies.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/policies.go @@ -73,6 +73,7 @@ func (client PoliciesClient) GetByBillingProfile(ctx context.Context, billingAcc result, err = client.GetByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PoliciesClient", "GetByBillingProfile", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client PoliciesClient) GetByCustomer(ctx context.Context, billingAccountNa result, err = client.GetByCustomerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PoliciesClient", "GetByCustomer", resp, "Failure responding to request") + return } return @@ -224,6 +226,7 @@ func (client PoliciesClient) Update(ctx context.Context, billingAccountName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PoliciesClient", "Update", resp, "Failure responding to request") + return } return @@ -302,6 +305,7 @@ func (client PoliciesClient) UpdateCustomer(ctx context.Context, billingAccountN result, err = client.UpdateCustomerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PoliciesClient", "UpdateCustomer", resp, "Failure responding to request") + return } return diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/products.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/products.go index 8ca49db9db14..edd8f2498d38 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/products.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/products.go @@ -73,6 +73,7 @@ func (client ProductsClient) Get(ctx context.Context, billingAccountName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client ProductsClient) ListByBillingAccount(ctx context.Context, billingAc result.plr, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "ListByBillingAccount", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -217,6 +219,7 @@ func (client ProductsClient) listByBillingAccountNextResults(ctx context.Context result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "listByBillingAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -274,6 +277,7 @@ func (client ProductsClient) ListByBillingProfile(ctx context.Context, billingAc result.plr, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "ListByBillingProfile", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -340,6 +344,7 @@ func (client ProductsClient) listByBillingProfileNextResults(ctx context.Context result, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "listByBillingProfileNextResults", resp, "Failure responding to next results request") + return } return } @@ -393,6 +398,7 @@ func (client ProductsClient) ListByCustomer(ctx context.Context, billingAccountN result.plr, err = client.ListByCustomerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "ListByCustomer", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -456,6 +462,7 @@ func (client ProductsClient) listByCustomerNextResults(ctx context.Context, last result, err = client.ListByCustomerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "listByCustomerNextResults", resp, "Failure responding to next results request") + return } return } @@ -513,6 +520,7 @@ func (client ProductsClient) ListByInvoiceSection(ctx context.Context, billingAc result.plr, err = client.ListByInvoiceSectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "ListByInvoiceSection", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -580,6 +588,7 @@ func (client ProductsClient) listByInvoiceSectionNextResults(ctx context.Context result, err = client.ListByInvoiceSectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "listByInvoiceSectionNextResults", resp, "Failure responding to next results request") + return } return } @@ -634,6 +643,7 @@ func (client ProductsClient) Move(ctx context.Context, billingAccountName string result, err = client.MoveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "Move", resp, "Failure responding to request") + return } return @@ -712,6 +722,7 @@ func (client ProductsClient) Update(ctx context.Context, billingAccountName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "Update", resp, "Failure responding to request") + return } return @@ -791,6 +802,7 @@ func (client ProductsClient) ValidateMove(ctx context.Context, billingAccountNam result, err = client.ValidateMoveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "ValidateMove", resp, "Failure responding to request") + return } return diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/profiles.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/profiles.go index 63e703e33a0f..ad5d1b40222d 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/profiles.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/profiles.go @@ -164,6 +164,7 @@ func (client ProfilesClient) Get(ctx context.Context, billingAccountName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -243,6 +244,7 @@ func (client ProfilesClient) ListByBillingAccount(ctx context.Context, billingAc result.plr, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProfilesClient", "ListByBillingAccount", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -308,6 +310,7 @@ func (client ProfilesClient) listByBillingAccountNextResults(ctx context.Context result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProfilesClient", "listByBillingAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/property.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/property.go index e3552a270530..74130eb2f4af 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/property.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/property.go @@ -70,6 +70,7 @@ func (client PropertyClient) Get(ctx context.Context) (result Property, err erro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PropertyClient", "Get", resp, "Failure responding to request") + return } return @@ -143,6 +144,7 @@ func (client PropertyClient) Update(ctx context.Context, parameters Property) (r result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PropertyClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/roleassignments.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/roleassignments.go index 5c07cb589f6b..de3b0eb726a1 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/roleassignments.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/roleassignments.go @@ -73,6 +73,7 @@ func (client RoleAssignmentsClient) DeleteByBillingAccount(ctx context.Context, result, err = client.DeleteByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "DeleteByBillingAccount", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client RoleAssignmentsClient) DeleteByBillingProfile(ctx context.Context, result, err = client.DeleteByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "DeleteByBillingProfile", resp, "Failure responding to request") + return } return @@ -227,6 +229,7 @@ func (client RoleAssignmentsClient) DeleteByInvoiceSection(ctx context.Context, result, err = client.DeleteByInvoiceSectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "DeleteByInvoiceSection", resp, "Failure responding to request") + return } return @@ -304,6 +307,7 @@ func (client RoleAssignmentsClient) GetByBillingAccount(ctx context.Context, bil result, err = client.GetByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "GetByBillingAccount", resp, "Failure responding to request") + return } return @@ -380,6 +384,7 @@ func (client RoleAssignmentsClient) GetByBillingProfile(ctx context.Context, bil result, err = client.GetByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "GetByBillingProfile", resp, "Failure responding to request") + return } return @@ -458,6 +463,7 @@ func (client RoleAssignmentsClient) GetByInvoiceSection(ctx context.Context, bil result, err = client.GetByInvoiceSectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "GetByInvoiceSection", resp, "Failure responding to request") + return } return @@ -535,6 +541,7 @@ func (client RoleAssignmentsClient) ListByBillingAccount(ctx context.Context, bi result.ralr, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "ListByBillingAccount", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -597,6 +604,7 @@ func (client RoleAssignmentsClient) listByBillingAccountNextResults(ctx context. result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "listByBillingAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -650,6 +658,7 @@ func (client RoleAssignmentsClient) ListByBillingProfile(ctx context.Context, bi result.ralr, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "ListByBillingProfile", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -713,6 +722,7 @@ func (client RoleAssignmentsClient) listByBillingProfileNextResults(ctx context. result, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "listByBillingProfileNextResults", resp, "Failure responding to next results request") + return } return } @@ -767,6 +777,7 @@ func (client RoleAssignmentsClient) ListByInvoiceSection(ctx context.Context, bi result.ralr, err = client.ListByInvoiceSectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "ListByInvoiceSection", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -831,6 +842,7 @@ func (client RoleAssignmentsClient) listByInvoiceSectionNextResults(ctx context. result, err = client.ListByInvoiceSectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "listByInvoiceSectionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/roledefinitions.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/roledefinitions.go index 1b69e8b5c397..6c10bbb9f5ae 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/roledefinitions.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/roledefinitions.go @@ -73,6 +73,7 @@ func (client RoleDefinitionsClient) GetByBillingAccount(ctx context.Context, bil result, err = client.GetByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleDefinitionsClient", "GetByBillingAccount", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client RoleDefinitionsClient) GetByBillingProfile(ctx context.Context, bil result, err = client.GetByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleDefinitionsClient", "GetByBillingProfile", resp, "Failure responding to request") + return } return @@ -227,6 +229,7 @@ func (client RoleDefinitionsClient) GetByInvoiceSection(ctx context.Context, bil result, err = client.GetByInvoiceSectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleDefinitionsClient", "GetByInvoiceSection", resp, "Failure responding to request") + return } return @@ -304,6 +307,7 @@ func (client RoleDefinitionsClient) ListByBillingAccount(ctx context.Context, bi result.rdlr, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleDefinitionsClient", "ListByBillingAccount", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +370,7 @@ func (client RoleDefinitionsClient) listByBillingAccountNextResults(ctx context. result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleDefinitionsClient", "listByBillingAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -419,6 +424,7 @@ func (client RoleDefinitionsClient) ListByBillingProfile(ctx context.Context, bi result.rdlr, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleDefinitionsClient", "ListByBillingProfile", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -482,6 +488,7 @@ func (client RoleDefinitionsClient) listByBillingProfileNextResults(ctx context. result, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleDefinitionsClient", "listByBillingProfileNextResults", resp, "Failure responding to next results request") + return } return } @@ -536,6 +543,7 @@ func (client RoleDefinitionsClient) ListByInvoiceSection(ctx context.Context, bi result.rdlr, err = client.ListByInvoiceSectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleDefinitionsClient", "ListByInvoiceSection", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -600,6 +608,7 @@ func (client RoleDefinitionsClient) listByInvoiceSectionNextResults(ctx context. result, err = client.ListByInvoiceSectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleDefinitionsClient", "listByInvoiceSectionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/subscriptions.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/subscriptions.go index 42ab09739dad..79addcd3bf6b 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/subscriptions.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/subscriptions.go @@ -73,6 +73,7 @@ func (client SubscriptionsClient) Get(ctx context.Context, billingAccountName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client SubscriptionsClient) ListByBillingAccount(ctx context.Context, bill result.slr, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "ListByBillingAccount", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -210,6 +212,7 @@ func (client SubscriptionsClient) listByBillingAccountNextResults(ctx context.Co result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "listByBillingAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -263,6 +266,7 @@ func (client SubscriptionsClient) ListByBillingProfile(ctx context.Context, bill result.slr, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "ListByBillingProfile", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -326,6 +330,7 @@ func (client SubscriptionsClient) listByBillingProfileNextResults(ctx context.Co result, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "listByBillingProfileNextResults", resp, "Failure responding to next results request") + return } return } @@ -379,6 +384,7 @@ func (client SubscriptionsClient) ListByCustomer(ctx context.Context, billingAcc result.slr, err = client.ListByCustomerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "ListByCustomer", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -442,6 +448,7 @@ func (client SubscriptionsClient) listByCustomerNextResults(ctx context.Context, result, err = client.ListByCustomerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "listByCustomerNextResults", resp, "Failure responding to next results request") + return } return } @@ -496,6 +503,7 @@ func (client SubscriptionsClient) ListByInvoiceSection(ctx context.Context, bill result.slr, err = client.ListByInvoiceSectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "ListByInvoiceSection", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -560,6 +568,7 @@ func (client SubscriptionsClient) listByInvoiceSectionNextResults(ctx context.Co result, err = client.ListByInvoiceSectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "listByInvoiceSectionNextResults", resp, "Failure responding to next results request") + return } return } @@ -696,6 +705,7 @@ func (client SubscriptionsClient) Update(ctx context.Context, billingAccountName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "Update", resp, "Failure responding to request") + return } return @@ -779,6 +789,7 @@ func (client SubscriptionsClient) ValidateMove(ctx context.Context, billingAccou result, err = client.ValidateMoveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "ValidateMove", resp, "Failure responding to request") + return } return diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/transactions.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/transactions.go index cf40662e2576..c9de9f93dd6f 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/transactions.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/transactions.go @@ -74,6 +74,7 @@ func (client TransactionsClient) ListByInvoice(ctx context.Context, billingAccou result.tlr, err = client.ListByInvoiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.TransactionsClient", "ListByInvoice", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -137,6 +138,7 @@ func (client TransactionsClient) listByInvoiceNextResults(ctx context.Context, l result, err = client.ListByInvoiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.TransactionsClient", "listByInvoiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/locations.go b/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/locations.go index 970fc64242a6..aeb470c8ce18 100644 --- a/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/locations.go +++ b/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/locations.go @@ -72,6 +72,7 @@ func (client LocationsClient) CheckNameAvailability(ctx context.Context, locatio result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blockchain.LocationsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client LocationsClient) ListConsortiums(ctx context.Context, locationName result, err = client.ListConsortiumsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blockchain.LocationsClient", "ListConsortiums", resp, "Failure responding to request") + return } return diff --git a/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/memberoperationresults.go b/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/memberoperationresults.go index e2549e813e49..eff2f3b1f0b3 100644 --- a/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/memberoperationresults.go +++ b/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/memberoperationresults.go @@ -73,6 +73,7 @@ func (client MemberOperationResultsClient) Get(ctx context.Context, locationName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blockchain.MemberOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/members.go b/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/members.go index f559261e7abf..58838532a322 100644 --- a/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/members.go +++ b/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/members.go @@ -230,6 +230,7 @@ func (client MembersClient) Get(ctx context.Context, blockchainMemberName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blockchain.MembersClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client MembersClient) List(ctx context.Context, resourceGroupName string) result.mc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blockchain.MembersClient", "List", resp, "Failure responding to request") + return } if result.mc.hasNextLink() && result.mc.IsEmpty() { err = result.NextWithContext(ctx) @@ -369,6 +371,7 @@ func (client MembersClient) listNextResults(ctx context.Context, lastResults Mem result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blockchain.MembersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -418,6 +421,7 @@ func (client MembersClient) ListAll(ctx context.Context) (result MemberCollectio result.mc, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blockchain.MembersClient", "ListAll", resp, "Failure responding to request") + return } if result.mc.hasNextLink() && result.mc.IsEmpty() { err = result.NextWithContext(ctx) @@ -480,6 +484,7 @@ func (client MembersClient) listAllNextResults(ctx context.Context, lastResults result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blockchain.MembersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -532,6 +537,7 @@ func (client MembersClient) ListAPIKeys(ctx context.Context, blockchainMemberNam result, err = client.ListAPIKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blockchain.MembersClient", "ListAPIKeys", resp, "Failure responding to request") + return } return @@ -609,6 +615,7 @@ func (client MembersClient) ListConsortiumMembers(ctx context.Context, blockchai result.cmc, err = client.ListConsortiumMembersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blockchain.MembersClient", "ListConsortiumMembers", resp, "Failure responding to request") + return } if result.cmc.hasNextLink() && result.cmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -673,6 +680,7 @@ func (client MembersClient) listConsortiumMembersNextResults(ctx context.Context result, err = client.ListConsortiumMembersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blockchain.MembersClient", "listConsortiumMembersNextResults", resp, "Failure responding to next results request") + return } return } @@ -726,6 +734,7 @@ func (client MembersClient) ListRegenerateAPIKeys(ctx context.Context, blockchai result, err = client.ListRegenerateAPIKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blockchain.MembersClient", "ListRegenerateAPIKeys", resp, "Failure responding to request") + return } return @@ -808,6 +817,7 @@ func (client MembersClient) Update(ctx context.Context, blockchainMemberName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blockchain.MembersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/operations.go b/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/operations.go index 6e5774ccf64f..8ee62e44a0fa 100644 --- a/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/operations.go +++ b/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result ResourceProvide result.rpoc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blockchain.OperationsClient", "List", resp, "Failure responding to request") + return } if result.rpoc.hasNextLink() && result.rpoc.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blockchain.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/skus.go b/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/skus.go index 0d5ddf893cb0..2417dd00a8bd 100644 --- a/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/skus.go +++ b/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/skus.go @@ -69,6 +69,7 @@ func (client SkusClient) List(ctx context.Context) (result ResourceTypeSkuCollec result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blockchain.SkusClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/transactionnodes.go b/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/transactionnodes.go index 67f8a9ace4c3..d0f29322b9c9 100644 --- a/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/transactionnodes.go +++ b/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/transactionnodes.go @@ -236,6 +236,7 @@ func (client TransactionNodesClient) Get(ctx context.Context, blockchainMemberNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blockchain.TransactionNodesClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client TransactionNodesClient) List(ctx context.Context, blockchainMemberN result.tnc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blockchain.TransactionNodesClient", "List", resp, "Failure responding to request") + return } if result.tnc.hasNextLink() && result.tnc.IsEmpty() { err = result.NextWithContext(ctx) @@ -378,6 +380,7 @@ func (client TransactionNodesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blockchain.TransactionNodesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -431,6 +434,7 @@ func (client TransactionNodesClient) ListAPIKeys(ctx context.Context, blockchain result, err = client.ListAPIKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blockchain.TransactionNodesClient", "ListAPIKeys", resp, "Failure responding to request") + return } return @@ -510,6 +514,7 @@ func (client TransactionNodesClient) ListRegenerateAPIKeys(ctx context.Context, result, err = client.ListRegenerateAPIKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blockchain.TransactionNodesClient", "ListRegenerateAPIKeys", resp, "Failure responding to request") + return } return @@ -594,6 +599,7 @@ func (client TransactionNodesClient) Update(ctx context.Context, blockchainMembe result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blockchain.TransactionNodesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/artifacts.go b/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/artifacts.go index c8aeac62b3df..a1f7713d6fa0 100644 --- a/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/artifacts.go +++ b/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/artifacts.go @@ -76,6 +76,7 @@ func (client ArtifactsClient) CreateOrUpdate(ctx context.Context, resourceScope result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.ArtifactsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client ArtifactsClient) Delete(ctx context.Context, resourceScope string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.ArtifactsClient", "Delete", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client ArtifactsClient) Get(ctx context.Context, resourceScope string, blu result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.ArtifactsClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +315,7 @@ func (client ArtifactsClient) List(ctx context.Context, resourceScope string, bl result.al, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.ArtifactsClient", "List", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +379,7 @@ func (client ArtifactsClient) listNextResults(ctx context.Context, lastResults A result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.ArtifactsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/assignmentoperations.go b/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/assignmentoperations.go index b98b9d1039e1..057a2c622608 100644 --- a/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/assignmentoperations.go +++ b/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/assignmentoperations.go @@ -76,6 +76,7 @@ func (client AssignmentOperationsClient) Get(ctx context.Context, resourceScope result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.AssignmentOperationsClient", "Get", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client AssignmentOperationsClient) List(ctx context.Context, resourceScope result.aol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.AssignmentOperationsClient", "List", resp, "Failure responding to request") + return } if result.aol.hasNextLink() && result.aol.IsEmpty() { err = result.NextWithContext(ctx) @@ -217,6 +219,7 @@ func (client AssignmentOperationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.AssignmentOperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/assignments.go b/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/assignments.go index ea9490454b17..05022ca46a92 100644 --- a/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/assignments.go +++ b/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/assignments.go @@ -86,6 +86,7 @@ func (client AssignmentsClient) CreateOrUpdate(ctx context.Context, resourceScop result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.AssignmentsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client AssignmentsClient) Delete(ctx context.Context, resourceScope string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.AssignmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -245,6 +247,7 @@ func (client AssignmentsClient) Get(ctx context.Context, resourceScope string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.AssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +324,7 @@ func (client AssignmentsClient) List(ctx context.Context, resourceScope string) result.al, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.AssignmentsClient", "List", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -383,6 +387,7 @@ func (client AssignmentsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.AssignmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -436,6 +441,7 @@ func (client AssignmentsClient) WhoIsBlueprint(ctx context.Context, resourceScop result, err = client.WhoIsBlueprintResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.AssignmentsClient", "WhoIsBlueprint", resp, "Failure responding to request") + return } return diff --git a/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/blueprints.go b/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/blueprints.go index 92c7d5450646..2b0b04503e10 100644 --- a/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/blueprints.go +++ b/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/blueprints.go @@ -82,6 +82,7 @@ func (client BlueprintsClient) CreateOrUpdate(ctx context.Context, resourceScope result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.BlueprintsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client BlueprintsClient) Delete(ctx context.Context, resourceScope string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.BlueprintsClient", "Delete", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client BlueprintsClient) Get(ctx context.Context, resourceScope string, bl result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.BlueprintsClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +315,7 @@ func (client BlueprintsClient) List(ctx context.Context, resourceScope string) ( result.l, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.BlueprintsClient", "List", resp, "Failure responding to request") + return } if result.l.hasNextLink() && result.l.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +378,7 @@ func (client BlueprintsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.BlueprintsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/publishedartifacts.go b/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/publishedartifacts.go index 6e4719e2b20c..e0e3373c5e0c 100644 --- a/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/publishedartifacts.go +++ b/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/publishedartifacts.go @@ -77,6 +77,7 @@ func (client PublishedArtifactsClient) Get(ctx context.Context, resourceScope st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.PublishedArtifactsClient", "Get", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client PublishedArtifactsClient) List(ctx context.Context, resourceScope s result.al, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.PublishedArtifactsClient", "List", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -221,6 +223,7 @@ func (client PublishedArtifactsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.PublishedArtifactsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/publishedblueprints.go b/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/publishedblueprints.go index 0bc80671faab..2af73d268f07 100644 --- a/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/publishedblueprints.go +++ b/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/publishedblueprints.go @@ -90,6 +90,7 @@ func (client PublishedBlueprintsClient) Create(ctx context.Context, resourceScop result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.PublishedBlueprintsClient", "Create", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client PublishedBlueprintsClient) Delete(ctx context.Context, resourceScop result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.PublishedBlueprintsClient", "Delete", resp, "Failure responding to request") + return } return @@ -251,6 +253,7 @@ func (client PublishedBlueprintsClient) Get(ctx context.Context, resourceScope s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.PublishedBlueprintsClient", "Get", resp, "Failure responding to request") + return } return @@ -329,6 +332,7 @@ func (client PublishedBlueprintsClient) List(ctx context.Context, resourceScope result.pbl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.PublishedBlueprintsClient", "List", resp, "Failure responding to request") + return } if result.pbl.hasNextLink() && result.pbl.IsEmpty() { err = result.NextWithContext(ctx) @@ -392,6 +396,7 @@ func (client PublishedBlueprintsClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "blueprint.PublishedBlueprintsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/botservice/mgmt/2017-12-01/botservice/botconnection.go b/services/preview/botservice/mgmt/2017-12-01/botservice/botconnection.go index ebdde7330815..1425a80286f3 100644 --- a/services/preview/botservice/mgmt/2017-12-01/botservice/botconnection.go +++ b/services/preview/botservice/mgmt/2017-12-01/botservice/botconnection.go @@ -91,6 +91,7 @@ func (client BotConnectionClient) Create(ctx context.Context, resourceGroupName result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotConnectionClient", "Create", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client BotConnectionClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotConnectionClient", "Delete", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client BotConnectionClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotConnectionClient", "Get", resp, "Failure responding to request") + return } return @@ -367,6 +370,7 @@ func (client BotConnectionClient) ListByBotService(ctx context.Context, resource result.csrl, err = client.ListByBotServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotConnectionClient", "ListByBotService", resp, "Failure responding to request") + return } if result.csrl.hasNextLink() && result.csrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -431,6 +435,7 @@ func (client BotConnectionClient) listByBotServiceNextResults(ctx context.Contex result, err = client.ListByBotServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotConnectionClient", "listByBotServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -479,6 +484,7 @@ func (client BotConnectionClient) ListServiceProviders(ctx context.Context) (res result, err = client.ListServiceProvidersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotConnectionClient", "ListServiceProviders", resp, "Failure responding to request") + return } return @@ -569,6 +575,7 @@ func (client BotConnectionClient) ListWithSecrets(ctx context.Context, resourceG result, err = client.ListWithSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotConnectionClient", "ListWithSecrets", resp, "Failure responding to request") + return } return @@ -663,6 +670,7 @@ func (client BotConnectionClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotConnectionClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/botservice/mgmt/2017-12-01/botservice/bots.go b/services/preview/botservice/mgmt/2017-12-01/botservice/bots.go index aa2a74e242fa..970474ce3196 100644 --- a/services/preview/botservice/mgmt/2017-12-01/botservice/bots.go +++ b/services/preview/botservice/mgmt/2017-12-01/botservice/bots.go @@ -92,6 +92,7 @@ func (client BotsClient) Create(ctx context.Context, resourceGroupName string, r result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotsClient", "Create", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client BotsClient) Delete(ctx context.Context, resourceGroupName string, r result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotsClient", "Delete", resp, "Failure responding to request") + return } return @@ -267,6 +269,7 @@ func (client BotsClient) Get(ctx context.Context, resourceGroupName string, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotsClient", "Get", resp, "Failure responding to request") + return } return @@ -341,6 +344,7 @@ func (client BotsClient) GetCheckNameAvailability(ctx context.Context, parameter result, err = client.GetCheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotsClient", "GetCheckNameAvailability", resp, "Failure responding to request") + return } return @@ -410,6 +414,7 @@ func (client BotsClient) List(ctx context.Context) (result BotResponseListPage, result.brl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotsClient", "List", resp, "Failure responding to request") + return } if result.brl.hasNextLink() && result.brl.IsEmpty() { err = result.NextWithContext(ctx) @@ -472,6 +477,7 @@ func (client BotsClient) listNextResults(ctx context.Context, lastResults BotRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +537,7 @@ func (client BotsClient) ListByResourceGroup(ctx context.Context, resourceGroupN result.brl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.brl.hasNextLink() && result.brl.IsEmpty() { err = result.NextWithContext(ctx) @@ -594,6 +601,7 @@ func (client BotsClient) listByResourceGroupNextResults(ctx context.Context, las result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -658,6 +666,7 @@ func (client BotsClient) Update(ctx context.Context, resourceGroupName string, r result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/botservice/mgmt/2017-12-01/botservice/channels.go b/services/preview/botservice/mgmt/2017-12-01/botservice/channels.go index db757331986c..7f3d2f586315 100644 --- a/services/preview/botservice/mgmt/2017-12-01/botservice/channels.go +++ b/services/preview/botservice/mgmt/2017-12-01/botservice/channels.go @@ -87,6 +87,7 @@ func (client ChannelsClient) Create(ctx context.Context, resourceGroupName strin result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.ChannelsClient", "Create", resp, "Failure responding to request") + return } return @@ -182,6 +183,7 @@ func (client ChannelsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.ChannelsClient", "Delete", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client ChannelsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.ChannelsClient", "Get", resp, "Failure responding to request") + return } return @@ -363,6 +366,7 @@ func (client ChannelsClient) ListByResourceGroup(ctx context.Context, resourceGr result.crl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.ChannelsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.crl.hasNextLink() && result.crl.IsEmpty() { err = result.NextWithContext(ctx) @@ -427,6 +431,7 @@ func (client ChannelsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.ChannelsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -491,6 +496,7 @@ func (client ChannelsClient) ListWithKeys(ctx context.Context, resourceGroupName result, err = client.ListWithKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.ChannelsClient", "ListWithKeys", resp, "Failure responding to request") + return } return @@ -581,6 +587,7 @@ func (client ChannelsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.ChannelsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/botservice/mgmt/2017-12-01/botservice/operations.go b/services/preview/botservice/mgmt/2017-12-01/botservice/operations.go index eeda16947094..ddf571bea3e1 100644 --- a/services/preview/botservice/mgmt/2017-12-01/botservice/operations.go +++ b/services/preview/botservice/mgmt/2017-12-01/botservice/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationEntity result.oelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.OperationsClient", "List", resp, "Failure responding to request") + return } if result.oelr.hasNextLink() && result.oelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/botservice/mgmt/2018-07-12/botservice/botconnection.go b/services/preview/botservice/mgmt/2018-07-12/botservice/botconnection.go index 809606fdc7d1..cb7945afd1d2 100644 --- a/services/preview/botservice/mgmt/2018-07-12/botservice/botconnection.go +++ b/services/preview/botservice/mgmt/2018-07-12/botservice/botconnection.go @@ -91,6 +91,7 @@ func (client BotConnectionClient) Create(ctx context.Context, resourceGroupName result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotConnectionClient", "Create", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client BotConnectionClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotConnectionClient", "Delete", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client BotConnectionClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotConnectionClient", "Get", resp, "Failure responding to request") + return } return @@ -367,6 +370,7 @@ func (client BotConnectionClient) ListByBotService(ctx context.Context, resource result.csrl, err = client.ListByBotServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotConnectionClient", "ListByBotService", resp, "Failure responding to request") + return } if result.csrl.hasNextLink() && result.csrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -431,6 +435,7 @@ func (client BotConnectionClient) listByBotServiceNextResults(ctx context.Contex result, err = client.ListByBotServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotConnectionClient", "listByBotServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -479,6 +484,7 @@ func (client BotConnectionClient) ListServiceProviders(ctx context.Context) (res result, err = client.ListServiceProvidersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotConnectionClient", "ListServiceProviders", resp, "Failure responding to request") + return } return @@ -569,6 +575,7 @@ func (client BotConnectionClient) ListWithSecrets(ctx context.Context, resourceG result, err = client.ListWithSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotConnectionClient", "ListWithSecrets", resp, "Failure responding to request") + return } return @@ -663,6 +670,7 @@ func (client BotConnectionClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotConnectionClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/botservice/mgmt/2018-07-12/botservice/bots.go b/services/preview/botservice/mgmt/2018-07-12/botservice/bots.go index a60166d9e839..43f642f6385f 100644 --- a/services/preview/botservice/mgmt/2018-07-12/botservice/bots.go +++ b/services/preview/botservice/mgmt/2018-07-12/botservice/bots.go @@ -92,6 +92,7 @@ func (client BotsClient) Create(ctx context.Context, resourceGroupName string, r result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotsClient", "Create", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client BotsClient) Delete(ctx context.Context, resourceGroupName string, r result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotsClient", "Delete", resp, "Failure responding to request") + return } return @@ -267,6 +269,7 @@ func (client BotsClient) Get(ctx context.Context, resourceGroupName string, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotsClient", "Get", resp, "Failure responding to request") + return } return @@ -341,6 +344,7 @@ func (client BotsClient) GetCheckNameAvailability(ctx context.Context, parameter result, err = client.GetCheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotsClient", "GetCheckNameAvailability", resp, "Failure responding to request") + return } return @@ -410,6 +414,7 @@ func (client BotsClient) List(ctx context.Context) (result BotResponseListPage, result.brl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotsClient", "List", resp, "Failure responding to request") + return } if result.brl.hasNextLink() && result.brl.IsEmpty() { err = result.NextWithContext(ctx) @@ -472,6 +477,7 @@ func (client BotsClient) listNextResults(ctx context.Context, lastResults BotRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +537,7 @@ func (client BotsClient) ListByResourceGroup(ctx context.Context, resourceGroupN result.brl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.brl.hasNextLink() && result.brl.IsEmpty() { err = result.NextWithContext(ctx) @@ -594,6 +601,7 @@ func (client BotsClient) listByResourceGroupNextResults(ctx context.Context, las result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -658,6 +666,7 @@ func (client BotsClient) Update(ctx context.Context, resourceGroupName string, r result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.BotsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/botservice/mgmt/2018-07-12/botservice/channels.go b/services/preview/botservice/mgmt/2018-07-12/botservice/channels.go index aa31b8ca4345..7baabe644f29 100644 --- a/services/preview/botservice/mgmt/2018-07-12/botservice/channels.go +++ b/services/preview/botservice/mgmt/2018-07-12/botservice/channels.go @@ -87,6 +87,7 @@ func (client ChannelsClient) Create(ctx context.Context, resourceGroupName strin result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.ChannelsClient", "Create", resp, "Failure responding to request") + return } return @@ -182,6 +183,7 @@ func (client ChannelsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.ChannelsClient", "Delete", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client ChannelsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.ChannelsClient", "Get", resp, "Failure responding to request") + return } return @@ -363,6 +366,7 @@ func (client ChannelsClient) ListByResourceGroup(ctx context.Context, resourceGr result.crl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.ChannelsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.crl.hasNextLink() && result.crl.IsEmpty() { err = result.NextWithContext(ctx) @@ -427,6 +431,7 @@ func (client ChannelsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.ChannelsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -491,6 +496,7 @@ func (client ChannelsClient) ListWithKeys(ctx context.Context, resourceGroupName result, err = client.ListWithKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.ChannelsClient", "ListWithKeys", resp, "Failure responding to request") + return } return @@ -581,6 +587,7 @@ func (client ChannelsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.ChannelsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/botservice/mgmt/2018-07-12/botservice/enterprisechannels.go b/services/preview/botservice/mgmt/2018-07-12/botservice/enterprisechannels.go index b59e2f770f45..10f1d8ff56de 100644 --- a/services/preview/botservice/mgmt/2018-07-12/botservice/enterprisechannels.go +++ b/services/preview/botservice/mgmt/2018-07-12/botservice/enterprisechannels.go @@ -73,6 +73,7 @@ func (client EnterpriseChannelsClient) CheckNameAvailability(ctx context.Context result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.EnterpriseChannelsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -335,6 +336,7 @@ func (client EnterpriseChannelsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.EnterpriseChannelsClient", "Get", resp, "Failure responding to request") + return } return @@ -418,6 +420,7 @@ func (client EnterpriseChannelsClient) ListByResourceGroup(ctx context.Context, result.ecrl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.EnterpriseChannelsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ecrl.hasNextLink() && result.ecrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +484,7 @@ func (client EnterpriseChannelsClient) listByResourceGroupNextResults(ctx contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.EnterpriseChannelsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/botservice/mgmt/2018-07-12/botservice/operations.go b/services/preview/botservice/mgmt/2018-07-12/botservice/operations.go index 706d8be22c42..4362ee629cbb 100644 --- a/services/preview/botservice/mgmt/2018-07-12/botservice/operations.go +++ b/services/preview/botservice/mgmt/2018-07-12/botservice/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationEntity result.oelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.OperationsClient", "List", resp, "Failure responding to request") + return } if result.oelr.hasNextLink() && result.oelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "botservice.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/cognitiveservices/mgmt/2016-02-01-preview/cognitiveservices/accounts.go b/services/preview/cognitiveservices/mgmt/2016-02-01-preview/cognitiveservices/accounts.go index 70cd8b548297..2e168583ddb2 100644 --- a/services/preview/cognitiveservices/mgmt/2016-02-01-preview/cognitiveservices/accounts.go +++ b/services/preview/cognitiveservices/mgmt/2016-02-01-preview/cognitiveservices/accounts.go @@ -89,6 +89,7 @@ func (client AccountsClient) Create(ctx context.Context, resourceGroupName strin result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "Create", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client AccountsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client AccountsClient) GetProperties(ctx context.Context, resourceGroupNam result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "GetProperties", resp, "Failure responding to request") + return } return @@ -332,6 +335,7 @@ func (client AccountsClient) List(ctx context.Context) (result AccountListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "List", resp, "Failure responding to request") + return } return @@ -404,6 +408,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -488,6 +493,7 @@ func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName str result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -573,6 +579,7 @@ func (client AccountsClient) ListSkus(ctx context.Context, resourceGroupName str result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "ListSkus", resp, "Failure responding to request") + return } return @@ -659,6 +666,7 @@ func (client AccountsClient) RegenerateKey(ctx context.Context, resourceGroupNam result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -747,6 +755,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/cognitiveservices/v1.0/anomalydetector/client.go b/services/preview/cognitiveservices/v1.0/anomalydetector/client.go index 2f58fbc06b50..63605f0f95b7 100644 --- a/services/preview/cognitiveservices/v1.0/anomalydetector/client.go +++ b/services/preview/cognitiveservices/v1.0/anomalydetector/client.go @@ -96,6 +96,7 @@ func (client BaseClient) DetectChangePoint(ctx context.Context, body ChangePoint result, err = client.DetectChangePointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "anomalydetector.BaseClient", "DetectChangePoint", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client BaseClient) DetectEntireSeries(ctx context.Context, body DetectRequ result, err = client.DetectEntireSeriesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "anomalydetector.BaseClient", "DetectEntireSeries", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client BaseClient) DetectLastPoint(ctx context.Context, body DetectRequest result, err = client.DetectLastPointResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "anomalydetector.BaseClient", "DetectLastPoint", resp, "Failure responding to request") + return } return diff --git a/services/preview/cognitiveservices/v1.0/formrecognizer/client.go b/services/preview/cognitiveservices/v1.0/formrecognizer/client.go index 9636300268f5..1a2ed9aca2c2 100644 --- a/services/preview/cognitiveservices/v1.0/formrecognizer/client.go +++ b/services/preview/cognitiveservices/v1.0/formrecognizer/client.go @@ -83,6 +83,7 @@ func (client BaseClient) AnalyzeWithCustomModel(ctx context.Context, ID uuid.UUI result, err = client.AnalyzeWithCustomModelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "formrecognizer.BaseClient", "AnalyzeWithCustomModel", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client BaseClient) BatchReadReceipt(ctx context.Context, imageURL ImageURL result, err = client.BatchReadReceiptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "formrecognizer.BaseClient", "BatchReadReceipt", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client BaseClient) BatchReadReceiptInStream(ctx context.Context, imagePara result, err = client.BatchReadReceiptInStreamResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "formrecognizer.BaseClient", "BatchReadReceiptInStream", resp, "Failure responding to request") + return } return @@ -307,6 +310,7 @@ func (client BaseClient) DeleteCustomModel(ctx context.Context, ID uuid.UUID) (r result, err = client.DeleteCustomModelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "formrecognizer.BaseClient", "DeleteCustomModel", resp, "Failure responding to request") + return } return @@ -376,6 +380,7 @@ func (client BaseClient) GetCustomModel(ctx context.Context, ID uuid.UUID) (resu result, err = client.GetCustomModelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "formrecognizer.BaseClient", "GetCustomModel", resp, "Failure responding to request") + return } return @@ -444,6 +449,7 @@ func (client BaseClient) GetCustomModels(ctx context.Context) (result ModelsResu result, err = client.GetCustomModelsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "formrecognizer.BaseClient", "GetCustomModels", resp, "Failure responding to request") + return } return @@ -511,6 +517,7 @@ func (client BaseClient) GetExtractedKeys(ctx context.Context, ID uuid.UUID) (re result, err = client.GetExtractedKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "formrecognizer.BaseClient", "GetExtractedKeys", resp, "Failure responding to request") + return } return @@ -583,6 +590,7 @@ func (client BaseClient) GetReadReceiptResult(ctx context.Context, operationID s result, err = client.GetReadReceiptResultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "formrecognizer.BaseClient", "GetReadReceiptResult", resp, "Failure responding to request") + return } return @@ -676,6 +684,7 @@ func (client BaseClient) TrainCustomModel(ctx context.Context, trainRequest Trai result, err = client.TrainCustomModelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "formrecognizer.BaseClient", "TrainCustomModel", resp, "Failure responding to request") + return } return diff --git a/services/preview/cognitiveservices/v1.0/inkrecognizer/inkrecognizer.go b/services/preview/cognitiveservices/v1.0/inkrecognizer/inkrecognizer.go index 9358e59b91be..027d42554428 100644 --- a/services/preview/cognitiveservices/v1.0/inkrecognizer/inkrecognizer.go +++ b/services/preview/cognitiveservices/v1.0/inkrecognizer/inkrecognizer.go @@ -77,6 +77,7 @@ func (client Client) Recognize(ctx context.Context, body AnalysisRequest, xMsCli result, err = client.RecognizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "inkrecognizer.Client", "Recognize", resp, "Failure responding to request") + return } return diff --git a/services/preview/cognitiveservices/v1.0/visualsearch/images.go b/services/preview/cognitiveservices/v1.0/visualsearch/images.go index ef811ebe69b9..24b04ebd7a4d 100644 --- a/services/preview/cognitiveservices/v1.0/visualsearch/images.go +++ b/services/preview/cognitiveservices/v1.0/visualsearch/images.go @@ -189,6 +189,7 @@ func (client ImagesClient) VisualSearch(ctx context.Context, acceptLanguage stri result, err = client.VisualSearchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "visualsearch.ImagesClient", "VisualSearch", resp, "Failure responding to request") + return } return diff --git a/services/preview/cognitiveservices/v1.0_preview.1/translatortext/translation.go b/services/preview/cognitiveservices/v1.0_preview.1/translatortext/translation.go index 866faa7f2694..dd60173bacbf 100644 --- a/services/preview/cognitiveservices/v1.0_preview.1/translatortext/translation.go +++ b/services/preview/cognitiveservices/v1.0_preview.1/translatortext/translation.go @@ -73,6 +73,7 @@ func (client TranslationClient) CancelOperation(ctx context.Context, endpoint st result, err = client.CancelOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "translatortext.TranslationClient", "CancelOperation", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client TranslationClient) GetDocumentFormats(ctx context.Context, endpoint result, err = client.GetDocumentFormatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "translatortext.TranslationClient", "GetDocumentFormats", resp, "Failure responding to request") + return } return @@ -215,6 +217,7 @@ func (client TranslationClient) GetDocumentStatus(ctx context.Context, endpoint result, err = client.GetDocumentStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "translatortext.TranslationClient", "GetDocumentStatus", resp, "Failure responding to request") + return } return @@ -287,6 +290,7 @@ func (client TranslationClient) GetDocumentStorageSource(ctx context.Context, en result, err = client.GetDocumentStorageSourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "translatortext.TranslationClient", "GetDocumentStorageSource", resp, "Failure responding to request") + return } return @@ -355,6 +359,7 @@ func (client TranslationClient) GetGlossaryFormats(ctx context.Context, endpoint result, err = client.GetGlossaryFormatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "translatortext.TranslationClient", "GetGlossaryFormats", resp, "Failure responding to request") + return } return @@ -457,6 +462,7 @@ func (client TranslationClient) GetOperationDocumentsStatus(ctx context.Context, result, err = client.GetOperationDocumentsStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "translatortext.TranslationClient", "GetOperationDocumentsStatus", resp, "Failure responding to request") + return } return @@ -575,6 +581,7 @@ func (client TranslationClient) GetOperations(ctx context.Context, endpoint stri result, err = client.GetOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "translatortext.TranslationClient", "GetOperations", resp, "Failure responding to request") + return } return @@ -658,6 +665,7 @@ func (client TranslationClient) GetOperationStatus(ctx context.Context, endpoint result, err = client.GetOperationStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "translatortext.TranslationClient", "GetOperationStatus", resp, "Failure responding to request") + return } return @@ -750,6 +758,7 @@ func (client TranslationClient) SubmitBatchRequest(ctx context.Context, endpoint result, err = client.SubmitBatchRequestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "translatortext.TranslationClient", "SubmitBatchRequest", resp, "Failure responding to request") + return } return diff --git a/services/preview/cognitiveservices/v3.0/luis/authoring/apps.go b/services/preview/cognitiveservices/v3.0/luis/authoring/apps.go index 6b573753688b..3559e8895e82 100644 --- a/services/preview/cognitiveservices/v3.0/luis/authoring/apps.go +++ b/services/preview/cognitiveservices/v3.0/luis/authoring/apps.go @@ -76,6 +76,7 @@ func (client AppsClient) Add(ctx context.Context, applicationCreateObject Applic result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Add", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client AppsClient) AddCustomPrebuiltDomain(ctx context.Context, prebuiltDo result, err = client.AddCustomPrebuiltDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "AddCustomPrebuiltDomain", resp, "Failure responding to request") + return } return @@ -213,6 +215,7 @@ func (client AppsClient) Delete(ctx context.Context, appID uuid.UUID, force *boo result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Delete", resp, "Failure responding to request") + return } return @@ -291,6 +294,7 @@ func (client AppsClient) DownloadQueryLogs(ctx context.Context, appID uuid.UUID) result, err = client.DownloadQueryLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "DownloadQueryLogs", resp, "Failure responding to request") + return } return @@ -360,6 +364,7 @@ func (client AppsClient) Get(ctx context.Context, appID uuid.UUID) (result Appli result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Get", resp, "Failure responding to request") + return } return @@ -430,6 +435,7 @@ func (client AppsClient) GetPublishSettings(ctx context.Context, appID uuid.UUID result, err = client.GetPublishSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "GetPublishSettings", resp, "Failure responding to request") + return } return @@ -500,6 +506,7 @@ func (client AppsClient) GetSettings(ctx context.Context, appID uuid.UUID) (resu result, err = client.GetSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "GetSettings", resp, "Failure responding to request") + return } return @@ -572,6 +579,7 @@ func (client AppsClient) Import(ctx context.Context, luisApp LuisApp, appName st result, err = client.ImportResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Import", resp, "Failure responding to request") + return } return @@ -648,6 +656,7 @@ func (client AppsClient) ImportLuFormat(ctx context.Context, luisAppLu string, a result, err = client.ImportLuFormatResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ImportLuFormat", resp, "Failure responding to request") + return } return @@ -724,6 +733,7 @@ func (client AppsClient) ImportV2App(ctx context.Context, luisAppV2 LuisAppV2, a result, err = client.ImportV2AppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ImportV2App", resp, "Failure responding to request") + return } return @@ -811,6 +821,7 @@ func (client AppsClient) List(ctx context.Context, skip *int32, take *int32) (re result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "List", resp, "Failure responding to request") + return } return @@ -888,6 +899,7 @@ func (client AppsClient) ListAvailableCustomPrebuiltDomains(ctx context.Context) result, err = client.ListAvailableCustomPrebuiltDomainsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListAvailableCustomPrebuiltDomains", resp, "Failure responding to request") + return } return @@ -954,6 +966,7 @@ func (client AppsClient) ListAvailableCustomPrebuiltDomainsForCulture(ctx contex result, err = client.ListAvailableCustomPrebuiltDomainsForCultureResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListAvailableCustomPrebuiltDomainsForCulture", resp, "Failure responding to request") + return } return @@ -1022,6 +1035,7 @@ func (client AppsClient) ListCortanaEndpoints(ctx context.Context) (result Perso result, err = client.ListCortanaEndpointsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListCortanaEndpoints", resp, "Failure responding to request") + return } return @@ -1086,6 +1100,7 @@ func (client AppsClient) ListDomains(ctx context.Context) (result ListString, er result, err = client.ListDomainsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListDomains", resp, "Failure responding to request") + return } return @@ -1152,6 +1167,7 @@ func (client AppsClient) ListEndpoints(ctx context.Context, appID uuid.UUID) (re result, err = client.ListEndpointsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListEndpoints", resp, "Failure responding to request") + return } return @@ -1221,6 +1237,7 @@ func (client AppsClient) ListSupportedCultures(ctx context.Context) (result List result, err = client.ListSupportedCulturesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListSupportedCultures", resp, "Failure responding to request") + return } return @@ -1285,6 +1302,7 @@ func (client AppsClient) ListUsageScenarios(ctx context.Context) (result ListStr result, err = client.ListUsageScenariosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListUsageScenarios", resp, "Failure responding to request") + return } return @@ -1353,6 +1371,7 @@ func (client AppsClient) PackagePublishedApplicationAsGzip(ctx context.Context, result, err = client.PackagePublishedApplicationAsGzipResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "PackagePublishedApplicationAsGzip", resp, "Failure responding to request") + return } return @@ -1424,6 +1443,7 @@ func (client AppsClient) PackageTrainedApplicationAsGzip(ctx context.Context, ap result, err = client.PackageTrainedApplicationAsGzipResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "PackageTrainedApplicationAsGzip", resp, "Failure responding to request") + return } return @@ -1496,6 +1516,7 @@ func (client AppsClient) Publish(ctx context.Context, appID uuid.UUID, applicati result, err = client.PublishResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Publish", resp, "Failure responding to request") + return } return @@ -1569,6 +1590,7 @@ func (client AppsClient) Update(ctx context.Context, appID uuid.UUID, applicatio result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Update", resp, "Failure responding to request") + return } return @@ -1642,6 +1664,7 @@ func (client AppsClient) UpdatePublishSettings(ctx context.Context, appID uuid.U result, err = client.UpdatePublishSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "UpdatePublishSettings", resp, "Failure responding to request") + return } return @@ -1715,6 +1738,7 @@ func (client AppsClient) UpdateSettings(ctx context.Context, appID uuid.UUID, ap result, err = client.UpdateSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AppsClient", "UpdateSettings", resp, "Failure responding to request") + return } return diff --git a/services/preview/cognitiveservices/v3.0/luis/authoring/azureaccounts.go b/services/preview/cognitiveservices/v3.0/luis/authoring/azureaccounts.go index 8c95f0d81689..8dc3c2a52ed3 100644 --- a/services/preview/cognitiveservices/v3.0/luis/authoring/azureaccounts.go +++ b/services/preview/cognitiveservices/v3.0/luis/authoring/azureaccounts.go @@ -80,6 +80,7 @@ func (client AzureAccountsClient) AssignToApp(ctx context.Context, appID uuid.UU result, err = client.AssignToAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AzureAccountsClient", "AssignToApp", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client AzureAccountsClient) GetAssigned(ctx context.Context, appID uuid.UU result, err = client.GetAssignedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AzureAccountsClient", "GetAssigned", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client AzureAccountsClient) ListUserLUISAccounts(ctx context.Context, armT result, err = client.ListUserLUISAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AzureAccountsClient", "ListUserLUISAccounts", resp, "Failure responding to request") + return } return @@ -319,6 +322,7 @@ func (client AzureAccountsClient) RemoveFromApp(ctx context.Context, appID uuid. result, err = client.RemoveFromAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.AzureAccountsClient", "RemoveFromApp", resp, "Failure responding to request") + return } return diff --git a/services/preview/cognitiveservices/v3.0/luis/authoring/examples.go b/services/preview/cognitiveservices/v3.0/luis/authoring/examples.go index a7a8f8e9d6f1..d9bf8e1984ea 100644 --- a/services/preview/cognitiveservices/v3.0/luis/authoring/examples.go +++ b/services/preview/cognitiveservices/v3.0/luis/authoring/examples.go @@ -70,6 +70,7 @@ func (client ExamplesClient) Add(ctx context.Context, appID uuid.UUID, versionID result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ExamplesClient", "Add", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client ExamplesClient) Batch(ctx context.Context, appID uuid.UUID, version result, err = client.BatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ExamplesClient", "Batch", resp, "Failure responding to request") + return } return @@ -243,6 +245,7 @@ func (client ExamplesClient) Delete(ctx context.Context, appID uuid.UUID, versio result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ExamplesClient", "Delete", resp, "Failure responding to request") + return } return @@ -331,6 +334,7 @@ func (client ExamplesClient) List(ctx context.Context, appID uuid.UUID, versionI result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ExamplesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/cognitiveservices/v3.0/luis/authoring/features.go b/services/preview/cognitiveservices/v3.0/luis/authoring/features.go index 27c8d912f9e3..ec8a35d3fea6 100644 --- a/services/preview/cognitiveservices/v3.0/luis/authoring/features.go +++ b/services/preview/cognitiveservices/v3.0/luis/authoring/features.go @@ -70,6 +70,7 @@ func (client FeaturesClient) AddEntityFeature(ctx context.Context, appID uuid.UU result, err = client.AddEntityFeatureResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "AddEntityFeature", resp, "Failure responding to request") + return } return @@ -147,6 +148,7 @@ func (client FeaturesClient) AddIntentFeature(ctx context.Context, appID uuid.UU result, err = client.AddIntentFeatureResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "AddIntentFeature", resp, "Failure responding to request") + return } return @@ -224,6 +226,7 @@ func (client FeaturesClient) AddPhraseList(ctx context.Context, appID uuid.UUID, result, err = client.AddPhraseListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "AddPhraseList", resp, "Failure responding to request") + return } return @@ -299,6 +302,7 @@ func (client FeaturesClient) DeletePhraseList(ctx context.Context, appID uuid.UU result, err = client.DeletePhraseListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "DeletePhraseList", resp, "Failure responding to request") + return } return @@ -373,6 +377,7 @@ func (client FeaturesClient) GetPhraseList(ctx context.Context, appID uuid.UUID, result, err = client.GetPhraseListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "GetPhraseList", resp, "Failure responding to request") + return } return @@ -460,6 +465,7 @@ func (client FeaturesClient) List(ctx context.Context, appID uuid.UUID, versionI result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "List", resp, "Failure responding to request") + return } return @@ -559,6 +565,7 @@ func (client FeaturesClient) ListPhraseLists(ctx context.Context, appID uuid.UUI result, err = client.ListPhraseListsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "ListPhraseLists", resp, "Failure responding to request") + return } return @@ -648,6 +655,7 @@ func (client FeaturesClient) UpdatePhraseList(ctx context.Context, appID uuid.UU result, err = client.UpdatePhraseListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "UpdatePhraseList", resp, "Failure responding to request") + return } return diff --git a/services/preview/cognitiveservices/v3.0/luis/authoring/model.go b/services/preview/cognitiveservices/v3.0/luis/authoring/model.go index cc0eb7dae417..2da7539369c0 100644 --- a/services/preview/cognitiveservices/v3.0/luis/authoring/model.go +++ b/services/preview/cognitiveservices/v3.0/luis/authoring/model.go @@ -69,6 +69,7 @@ func (client ModelClient) AddClosedList(ctx context.Context, appID uuid.UUID, ve result, err = client.AddClosedListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddClosedList", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client ModelClient) AddCompositeEntityChild(ctx context.Context, appID uui result, err = client.AddCompositeEntityChildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddCompositeEntityChild", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client ModelClient) AddCustomPrebuiltDomain(ctx context.Context, appID uui result, err = client.AddCustomPrebuiltDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddCustomPrebuiltDomain", resp, "Failure responding to request") + return } return @@ -299,6 +302,7 @@ func (client ModelClient) AddCustomPrebuiltEntity(ctx context.Context, appID uui result, err = client.AddCustomPrebuiltEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddCustomPrebuiltEntity", resp, "Failure responding to request") + return } return @@ -375,6 +379,7 @@ func (client ModelClient) AddCustomPrebuiltIntent(ctx context.Context, appID uui result, err = client.AddCustomPrebuiltIntentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddCustomPrebuiltIntent", resp, "Failure responding to request") + return } return @@ -450,6 +455,7 @@ func (client ModelClient) AddEntity(ctx context.Context, appID uuid.UUID, versio result, err = client.AddEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddEntity", resp, "Failure responding to request") + return } return @@ -526,6 +532,7 @@ func (client ModelClient) AddEntityChild(ctx context.Context, appID uuid.UUID, v result, err = client.AddEntityChildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddEntityChild", resp, "Failure responding to request") + return } return @@ -603,6 +610,7 @@ func (client ModelClient) AddExplicitListItem(ctx context.Context, appID uuid.UU result, err = client.AddExplicitListItemResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddExplicitListItem", resp, "Failure responding to request") + return } return @@ -679,6 +687,7 @@ func (client ModelClient) AddIntent(ctx context.Context, appID uuid.UUID, versio result, err = client.AddIntentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddIntent", resp, "Failure responding to request") + return } return @@ -760,6 +769,7 @@ func (client ModelClient) AddPrebuilt(ctx context.Context, appID uuid.UUID, vers result, err = client.AddPrebuiltResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddPrebuilt", resp, "Failure responding to request") + return } return @@ -836,6 +846,7 @@ func (client ModelClient) AddSubList(ctx context.Context, appID uuid.UUID, versi result, err = client.AddSubListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddSubList", resp, "Failure responding to request") + return } return @@ -913,6 +924,7 @@ func (client ModelClient) CreateClosedListEntityRole(ctx context.Context, appID result, err = client.CreateClosedListEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateClosedListEntityRole", resp, "Failure responding to request") + return } return @@ -990,6 +1002,7 @@ func (client ModelClient) CreateCompositeEntityRole(ctx context.Context, appID u result, err = client.CreateCompositeEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateCompositeEntityRole", resp, "Failure responding to request") + return } return @@ -1067,6 +1080,7 @@ func (client ModelClient) CreateCustomPrebuiltEntityRole(ctx context.Context, ap result, err = client.CreateCustomPrebuiltEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateCustomPrebuiltEntityRole", resp, "Failure responding to request") + return } return @@ -1144,6 +1158,7 @@ func (client ModelClient) CreateEntityRole(ctx context.Context, appID uuid.UUID, result, err = client.CreateEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateEntityRole", resp, "Failure responding to request") + return } return @@ -1221,6 +1236,7 @@ func (client ModelClient) CreateHierarchicalEntityRole(ctx context.Context, appI result, err = client.CreateHierarchicalEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateHierarchicalEntityRole", resp, "Failure responding to request") + return } return @@ -1298,6 +1314,7 @@ func (client ModelClient) CreatePatternAnyEntityModel(ctx context.Context, appID result, err = client.CreatePatternAnyEntityModelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreatePatternAnyEntityModel", resp, "Failure responding to request") + return } return @@ -1374,6 +1391,7 @@ func (client ModelClient) CreatePatternAnyEntityRole(ctx context.Context, appID result, err = client.CreatePatternAnyEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreatePatternAnyEntityRole", resp, "Failure responding to request") + return } return @@ -1451,6 +1469,7 @@ func (client ModelClient) CreatePrebuiltEntityRole(ctx context.Context, appID uu result, err = client.CreatePrebuiltEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreatePrebuiltEntityRole", resp, "Failure responding to request") + return } return @@ -1528,6 +1547,7 @@ func (client ModelClient) CreateRegexEntityModel(ctx context.Context, appID uuid result, err = client.CreateRegexEntityModelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateRegexEntityModel", resp, "Failure responding to request") + return } return @@ -1604,6 +1624,7 @@ func (client ModelClient) CreateRegexEntityRole(ctx context.Context, appID uuid. result, err = client.CreateRegexEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateRegexEntityRole", resp, "Failure responding to request") + return } return @@ -1680,6 +1701,7 @@ func (client ModelClient) DeleteClosedList(ctx context.Context, appID uuid.UUID, result, err = client.DeleteClosedListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteClosedList", resp, "Failure responding to request") + return } return @@ -1755,6 +1777,7 @@ func (client ModelClient) DeleteClosedListEntityRole(ctx context.Context, appID result, err = client.DeleteClosedListEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteClosedListEntityRole", resp, "Failure responding to request") + return } return @@ -1830,6 +1853,7 @@ func (client ModelClient) DeleteCompositeEntity(ctx context.Context, appID uuid. result, err = client.DeleteCompositeEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteCompositeEntity", resp, "Failure responding to request") + return } return @@ -1905,6 +1929,7 @@ func (client ModelClient) DeleteCompositeEntityChild(ctx context.Context, appID result, err = client.DeleteCompositeEntityChildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteCompositeEntityChild", resp, "Failure responding to request") + return } return @@ -1981,6 +2006,7 @@ func (client ModelClient) DeleteCompositeEntityRole(ctx context.Context, appID u result, err = client.DeleteCompositeEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteCompositeEntityRole", resp, "Failure responding to request") + return } return @@ -2057,6 +2083,7 @@ func (client ModelClient) DeleteCustomEntityRole(ctx context.Context, appID uuid result, err = client.DeleteCustomEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteCustomEntityRole", resp, "Failure responding to request") + return } return @@ -2132,6 +2159,7 @@ func (client ModelClient) DeleteCustomPrebuiltDomain(ctx context.Context, appID result, err = client.DeleteCustomPrebuiltDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteCustomPrebuiltDomain", resp, "Failure responding to request") + return } return @@ -2206,6 +2234,7 @@ func (client ModelClient) DeleteEntity(ctx context.Context, appID uuid.UUID, ver result, err = client.DeleteEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteEntity", resp, "Failure responding to request") + return } return @@ -2282,6 +2311,7 @@ func (client ModelClient) DeleteEntityFeature(ctx context.Context, appID uuid.UU result, err = client.DeleteEntityFeatureResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteEntityFeature", resp, "Failure responding to request") + return } return @@ -2359,6 +2389,7 @@ func (client ModelClient) DeleteEntityRole(ctx context.Context, appID uuid.UUID, result, err = client.DeleteEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteEntityRole", resp, "Failure responding to request") + return } return @@ -2435,6 +2466,7 @@ func (client ModelClient) DeleteExplicitListItem(ctx context.Context, appID uuid result, err = client.DeleteExplicitListItemResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteExplicitListItem", resp, "Failure responding to request") + return } return @@ -2510,6 +2542,7 @@ func (client ModelClient) DeleteHierarchicalEntity(ctx context.Context, appID uu result, err = client.DeleteHierarchicalEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteHierarchicalEntity", resp, "Failure responding to request") + return } return @@ -2585,6 +2618,7 @@ func (client ModelClient) DeleteHierarchicalEntityChild(ctx context.Context, app result, err = client.DeleteHierarchicalEntityChildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteHierarchicalEntityChild", resp, "Failure responding to request") + return } return @@ -2661,6 +2695,7 @@ func (client ModelClient) DeleteHierarchicalEntityRole(ctx context.Context, appI result, err = client.DeleteHierarchicalEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteHierarchicalEntityRole", resp, "Failure responding to request") + return } return @@ -2738,6 +2773,7 @@ func (client ModelClient) DeleteIntent(ctx context.Context, appID uuid.UUID, ver result, err = client.DeleteIntentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteIntent", resp, "Failure responding to request") + return } return @@ -2822,6 +2858,7 @@ func (client ModelClient) DeleteIntentFeature(ctx context.Context, appID uuid.UU result, err = client.DeleteIntentFeatureResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteIntentFeature", resp, "Failure responding to request") + return } return @@ -2898,6 +2935,7 @@ func (client ModelClient) DeletePatternAnyEntityModel(ctx context.Context, appID result, err = client.DeletePatternAnyEntityModelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeletePatternAnyEntityModel", resp, "Failure responding to request") + return } return @@ -2973,6 +3011,7 @@ func (client ModelClient) DeletePatternAnyEntityRole(ctx context.Context, appID result, err = client.DeletePatternAnyEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeletePatternAnyEntityRole", resp, "Failure responding to request") + return } return @@ -3048,6 +3087,7 @@ func (client ModelClient) DeletePrebuilt(ctx context.Context, appID uuid.UUID, v result, err = client.DeletePrebuiltResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeletePrebuilt", resp, "Failure responding to request") + return } return @@ -3123,6 +3163,7 @@ func (client ModelClient) DeletePrebuiltEntityRole(ctx context.Context, appID uu result, err = client.DeletePrebuiltEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeletePrebuiltEntityRole", resp, "Failure responding to request") + return } return @@ -3198,6 +3239,7 @@ func (client ModelClient) DeleteRegexEntityModel(ctx context.Context, appID uuid result, err = client.DeleteRegexEntityModelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteRegexEntityModel", resp, "Failure responding to request") + return } return @@ -3273,6 +3315,7 @@ func (client ModelClient) DeleteRegexEntityRole(ctx context.Context, appID uuid. result, err = client.DeleteRegexEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteRegexEntityRole", resp, "Failure responding to request") + return } return @@ -3349,6 +3392,7 @@ func (client ModelClient) DeleteSubList(ctx context.Context, appID uuid.UUID, ve result, err = client.DeleteSubListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteSubList", resp, "Failure responding to request") + return } return @@ -3438,6 +3482,7 @@ func (client ModelClient) ExamplesMethod(ctx context.Context, appID uuid.UUID, v result, err = client.ExamplesMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ExamplesMethod", resp, "Failure responding to request") + return } return @@ -3525,6 +3570,7 @@ func (client ModelClient) GetClosedList(ctx context.Context, appID uuid.UUID, ve result, err = client.GetClosedListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetClosedList", resp, "Failure responding to request") + return } return @@ -3600,6 +3646,7 @@ func (client ModelClient) GetClosedListEntityRole(ctx context.Context, appID uui result, err = client.GetClosedListEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetClosedListEntityRole", resp, "Failure responding to request") + return } return @@ -3675,6 +3722,7 @@ func (client ModelClient) GetCompositeEntity(ctx context.Context, appID uuid.UUI result, err = client.GetCompositeEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetCompositeEntity", resp, "Failure responding to request") + return } return @@ -3750,6 +3798,7 @@ func (client ModelClient) GetCompositeEntityRole(ctx context.Context, appID uuid result, err = client.GetCompositeEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetCompositeEntityRole", resp, "Failure responding to request") + return } return @@ -3826,6 +3875,7 @@ func (client ModelClient) GetCustomEntityRole(ctx context.Context, appID uuid.UU result, err = client.GetCustomEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetCustomEntityRole", resp, "Failure responding to request") + return } return @@ -3901,6 +3951,7 @@ func (client ModelClient) GetEntity(ctx context.Context, appID uuid.UUID, versio result, err = client.GetEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetEntity", resp, "Failure responding to request") + return } return @@ -3975,6 +4026,7 @@ func (client ModelClient) GetEntityFeatures(ctx context.Context, appID uuid.UUID result, err = client.GetEntityFeaturesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetEntityFeatures", resp, "Failure responding to request") + return } return @@ -4050,6 +4102,7 @@ func (client ModelClient) GetEntityRole(ctx context.Context, appID uuid.UUID, ve result, err = client.GetEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetEntityRole", resp, "Failure responding to request") + return } return @@ -4125,6 +4178,7 @@ func (client ModelClient) GetExplicitList(ctx context.Context, appID uuid.UUID, result, err = client.GetExplicitListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetExplicitList", resp, "Failure responding to request") + return } return @@ -4200,6 +4254,7 @@ func (client ModelClient) GetExplicitListItem(ctx context.Context, appID uuid.UU result, err = client.GetExplicitListItemResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetExplicitListItem", resp, "Failure responding to request") + return } return @@ -4275,6 +4330,7 @@ func (client ModelClient) GetHierarchicalEntity(ctx context.Context, appID uuid. result, err = client.GetHierarchicalEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetHierarchicalEntity", resp, "Failure responding to request") + return } return @@ -4351,6 +4407,7 @@ func (client ModelClient) GetHierarchicalEntityChild(ctx context.Context, appID result, err = client.GetHierarchicalEntityChildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetHierarchicalEntityChild", resp, "Failure responding to request") + return } return @@ -4427,6 +4484,7 @@ func (client ModelClient) GetHierarchicalEntityRole(ctx context.Context, appID u result, err = client.GetHierarchicalEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetHierarchicalEntityRole", resp, "Failure responding to request") + return } return @@ -4502,6 +4560,7 @@ func (client ModelClient) GetIntent(ctx context.Context, appID uuid.UUID, versio result, err = client.GetIntentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetIntent", resp, "Failure responding to request") + return } return @@ -4576,6 +4635,7 @@ func (client ModelClient) GetIntentFeatures(ctx context.Context, appID uuid.UUID result, err = client.GetIntentFeaturesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetIntentFeatures", resp, "Failure responding to request") + return } return @@ -4650,6 +4710,7 @@ func (client ModelClient) GetPatternAnyEntityInfo(ctx context.Context, appID uui result, err = client.GetPatternAnyEntityInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetPatternAnyEntityInfo", resp, "Failure responding to request") + return } return @@ -4725,6 +4786,7 @@ func (client ModelClient) GetPatternAnyEntityRole(ctx context.Context, appID uui result, err = client.GetPatternAnyEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetPatternAnyEntityRole", resp, "Failure responding to request") + return } return @@ -4800,6 +4862,7 @@ func (client ModelClient) GetPrebuilt(ctx context.Context, appID uuid.UUID, vers result, err = client.GetPrebuiltResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetPrebuilt", resp, "Failure responding to request") + return } return @@ -4875,6 +4938,7 @@ func (client ModelClient) GetPrebuiltEntityRole(ctx context.Context, appID uuid. result, err = client.GetPrebuiltEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetPrebuiltEntityRole", resp, "Failure responding to request") + return } return @@ -4950,6 +5014,7 @@ func (client ModelClient) GetRegexEntityEntityInfo(ctx context.Context, appID uu result, err = client.GetRegexEntityEntityInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetRegexEntityEntityInfo", resp, "Failure responding to request") + return } return @@ -5025,6 +5090,7 @@ func (client ModelClient) GetRegexEntityRole(ctx context.Context, appID uuid.UUI result, err = client.GetRegexEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetRegexEntityRole", resp, "Failure responding to request") + return } return @@ -5100,6 +5166,7 @@ func (client ModelClient) ListClosedListEntityRoles(ctx context.Context, appID u result, err = client.ListClosedListEntityRolesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListClosedListEntityRoles", resp, "Failure responding to request") + return } return @@ -5187,6 +5254,7 @@ func (client ModelClient) ListClosedLists(ctx context.Context, appID uuid.UUID, result, err = client.ListClosedListsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListClosedLists", resp, "Failure responding to request") + return } return @@ -5286,6 +5354,7 @@ func (client ModelClient) ListCompositeEntities(ctx context.Context, appID uuid. result, err = client.ListCompositeEntitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCompositeEntities", resp, "Failure responding to request") + return } return @@ -5372,6 +5441,7 @@ func (client ModelClient) ListCompositeEntityRoles(ctx context.Context, appID uu result, err = client.ListCompositeEntityRolesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCompositeEntityRoles", resp, "Failure responding to request") + return } return @@ -5445,6 +5515,7 @@ func (client ModelClient) ListCustomPrebuiltEntities(ctx context.Context, appID result, err = client.ListCustomPrebuiltEntitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCustomPrebuiltEntities", resp, "Failure responding to request") + return } return @@ -5518,6 +5589,7 @@ func (client ModelClient) ListCustomPrebuiltEntityRoles(ctx context.Context, app result, err = client.ListCustomPrebuiltEntityRolesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCustomPrebuiltEntityRoles", resp, "Failure responding to request") + return } return @@ -5592,6 +5664,7 @@ func (client ModelClient) ListCustomPrebuiltIntents(ctx context.Context, appID u result, err = client.ListCustomPrebuiltIntentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCustomPrebuiltIntents", resp, "Failure responding to request") + return } return @@ -5665,6 +5738,7 @@ func (client ModelClient) ListCustomPrebuiltModels(ctx context.Context, appID uu result, err = client.ListCustomPrebuiltModelsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCustomPrebuiltModels", resp, "Failure responding to request") + return } return @@ -5751,6 +5825,7 @@ func (client ModelClient) ListEntities(ctx context.Context, appID uuid.UUID, ver result, err = client.ListEntitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListEntities", resp, "Failure responding to request") + return } return @@ -5837,6 +5912,7 @@ func (client ModelClient) ListEntityRoles(ctx context.Context, appID uuid.UUID, result, err = client.ListEntityRolesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListEntityRoles", resp, "Failure responding to request") + return } return @@ -5923,6 +5999,7 @@ func (client ModelClient) ListEntitySuggestions(ctx context.Context, appID uuid. result, err = client.ListEntitySuggestionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListEntitySuggestions", resp, "Failure responding to request") + return } return @@ -6023,6 +6100,7 @@ func (client ModelClient) ListHierarchicalEntities(ctx context.Context, appID uu result, err = client.ListHierarchicalEntitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListHierarchicalEntities", resp, "Failure responding to request") + return } return @@ -6109,6 +6187,7 @@ func (client ModelClient) ListHierarchicalEntityRoles(ctx context.Context, appID result, err = client.ListHierarchicalEntityRolesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListHierarchicalEntityRoles", resp, "Failure responding to request") + return } return @@ -6196,6 +6275,7 @@ func (client ModelClient) ListIntents(ctx context.Context, appID uuid.UUID, vers result, err = client.ListIntentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListIntents", resp, "Failure responding to request") + return } return @@ -6294,6 +6374,7 @@ func (client ModelClient) ListIntentSuggestions(ctx context.Context, appID uuid. result, err = client.ListIntentSuggestionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListIntentSuggestions", resp, "Failure responding to request") + return } return @@ -6394,6 +6475,7 @@ func (client ModelClient) ListModels(ctx context.Context, appID uuid.UUID, versi result, err = client.ListModelsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListModels", resp, "Failure responding to request") + return } return @@ -6493,6 +6575,7 @@ func (client ModelClient) ListPatternAnyEntityInfos(ctx context.Context, appID u result, err = client.ListPatternAnyEntityInfosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListPatternAnyEntityInfos", resp, "Failure responding to request") + return } return @@ -6579,6 +6662,7 @@ func (client ModelClient) ListPatternAnyEntityRoles(ctx context.Context, appID u result, err = client.ListPatternAnyEntityRolesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListPatternAnyEntityRoles", resp, "Failure responding to request") + return } return @@ -6652,6 +6736,7 @@ func (client ModelClient) ListPrebuiltEntities(ctx context.Context, appID uuid.U result, err = client.ListPrebuiltEntitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListPrebuiltEntities", resp, "Failure responding to request") + return } return @@ -6725,6 +6810,7 @@ func (client ModelClient) ListPrebuiltEntityRoles(ctx context.Context, appID uui result, err = client.ListPrebuiltEntityRolesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListPrebuiltEntityRoles", resp, "Failure responding to request") + return } return @@ -6812,6 +6898,7 @@ func (client ModelClient) ListPrebuilts(ctx context.Context, appID uuid.UUID, ve result, err = client.ListPrebuiltsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListPrebuilts", resp, "Failure responding to request") + return } return @@ -6911,6 +6998,7 @@ func (client ModelClient) ListRegexEntityInfos(ctx context.Context, appID uuid.U result, err = client.ListRegexEntityInfosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListRegexEntityInfos", resp, "Failure responding to request") + return } return @@ -6997,6 +7085,7 @@ func (client ModelClient) ListRegexEntityRoles(ctx context.Context, appID uuid.U result, err = client.ListRegexEntityRolesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListRegexEntityRoles", resp, "Failure responding to request") + return } return @@ -7072,6 +7161,7 @@ func (client ModelClient) PatchClosedList(ctx context.Context, appID uuid.UUID, result, err = client.PatchClosedListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "PatchClosedList", resp, "Failure responding to request") + return } return @@ -7155,6 +7245,7 @@ func (client ModelClient) ReplaceEntityFeatures(ctx context.Context, appID uuid. result, err = client.ReplaceEntityFeaturesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ReplaceEntityFeatures", resp, "Failure responding to request") + return } return @@ -7238,6 +7329,7 @@ func (client ModelClient) ReplaceIntentFeatures(ctx context.Context, appID uuid. result, err = client.ReplaceIntentFeaturesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ReplaceIntentFeatures", resp, "Failure responding to request") + return } return @@ -7315,6 +7407,7 @@ func (client ModelClient) UpdateClosedList(ctx context.Context, appID uuid.UUID, result, err = client.UpdateClosedListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateClosedList", resp, "Failure responding to request") + return } return @@ -7393,6 +7486,7 @@ func (client ModelClient) UpdateClosedListEntityRole(ctx context.Context, appID result, err = client.UpdateClosedListEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateClosedListEntityRole", resp, "Failure responding to request") + return } return @@ -7471,6 +7565,7 @@ func (client ModelClient) UpdateCompositeEntity(ctx context.Context, appID uuid. result, err = client.UpdateCompositeEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateCompositeEntity", resp, "Failure responding to request") + return } return @@ -7549,6 +7644,7 @@ func (client ModelClient) UpdateCompositeEntityRole(ctx context.Context, appID u result, err = client.UpdateCompositeEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateCompositeEntityRole", resp, "Failure responding to request") + return } return @@ -7628,6 +7724,7 @@ func (client ModelClient) UpdateCustomPrebuiltEntityRole(ctx context.Context, ap result, err = client.UpdateCustomPrebuiltEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateCustomPrebuiltEntityRole", resp, "Failure responding to request") + return } return @@ -7708,6 +7805,7 @@ func (client ModelClient) UpdateEntityChild(ctx context.Context, appID uuid.UUID result, err = client.UpdateEntityChildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateEntityChild", resp, "Failure responding to request") + return } return @@ -7786,6 +7884,7 @@ func (client ModelClient) UpdateEntityRole(ctx context.Context, appID uuid.UUID, result, err = client.UpdateEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateEntityRole", resp, "Failure responding to request") + return } return @@ -7865,6 +7964,7 @@ func (client ModelClient) UpdateExplicitListItem(ctx context.Context, appID uuid result, err = client.UpdateExplicitListItemResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateExplicitListItem", resp, "Failure responding to request") + return } return @@ -7943,6 +8043,7 @@ func (client ModelClient) UpdateHierarchicalEntity(ctx context.Context, appID uu result, err = client.UpdateHierarchicalEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateHierarchicalEntity", resp, "Failure responding to request") + return } return @@ -8022,6 +8123,7 @@ func (client ModelClient) UpdateHierarchicalEntityChild(ctx context.Context, app result, err = client.UpdateHierarchicalEntityChildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateHierarchicalEntityChild", resp, "Failure responding to request") + return } return @@ -8101,6 +8203,7 @@ func (client ModelClient) UpdateHierarchicalEntityRole(ctx context.Context, appI result, err = client.UpdateHierarchicalEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateHierarchicalEntityRole", resp, "Failure responding to request") + return } return @@ -8179,6 +8282,7 @@ func (client ModelClient) UpdateIntent(ctx context.Context, appID uuid.UUID, ver result, err = client.UpdateIntentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateIntent", resp, "Failure responding to request") + return } return @@ -8256,6 +8360,7 @@ func (client ModelClient) UpdatePatternAnyEntityModel(ctx context.Context, appID result, err = client.UpdatePatternAnyEntityModelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdatePatternAnyEntityModel", resp, "Failure responding to request") + return } return @@ -8334,6 +8439,7 @@ func (client ModelClient) UpdatePatternAnyEntityRole(ctx context.Context, appID result, err = client.UpdatePatternAnyEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdatePatternAnyEntityRole", resp, "Failure responding to request") + return } return @@ -8413,6 +8519,7 @@ func (client ModelClient) UpdatePrebuiltEntityRole(ctx context.Context, appID uu result, err = client.UpdatePrebuiltEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdatePrebuiltEntityRole", resp, "Failure responding to request") + return } return @@ -8491,6 +8598,7 @@ func (client ModelClient) UpdateRegexEntityModel(ctx context.Context, appID uuid result, err = client.UpdateRegexEntityModelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateRegexEntityModel", resp, "Failure responding to request") + return } return @@ -8569,6 +8677,7 @@ func (client ModelClient) UpdateRegexEntityRole(ctx context.Context, appID uuid. result, err = client.UpdateRegexEntityRoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateRegexEntityRole", resp, "Failure responding to request") + return } return @@ -8648,6 +8757,7 @@ func (client ModelClient) UpdateSubList(ctx context.Context, appID uuid.UUID, ve result, err = client.UpdateSubListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateSubList", resp, "Failure responding to request") + return } return diff --git a/services/preview/cognitiveservices/v3.0/luis/authoring/pattern.go b/services/preview/cognitiveservices/v3.0/luis/authoring/pattern.go index 281aab8fe0c3..0bf8f77f9074 100644 --- a/services/preview/cognitiveservices/v3.0/luis/authoring/pattern.go +++ b/services/preview/cognitiveservices/v3.0/luis/authoring/pattern.go @@ -69,6 +69,7 @@ func (client PatternClient) AddPattern(ctx context.Context, appID uuid.UUID, ver result, err = client.AddPatternResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.PatternClient", "AddPattern", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client PatternClient) BatchAddPatterns(ctx context.Context, appID uuid.UUI result, err = client.BatchAddPatternsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.PatternClient", "BatchAddPatterns", resp, "Failure responding to request") + return } return @@ -225,6 +227,7 @@ func (client PatternClient) DeletePattern(ctx context.Context, appID uuid.UUID, result, err = client.DeletePatternResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.PatternClient", "DeletePattern", resp, "Failure responding to request") + return } return @@ -305,6 +308,7 @@ func (client PatternClient) DeletePatterns(ctx context.Context, appID uuid.UUID, result, err = client.DeletePatternsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.PatternClient", "DeletePatterns", resp, "Failure responding to request") + return } return @@ -394,6 +398,7 @@ func (client PatternClient) ListIntentPatterns(ctx context.Context, appID uuid.U result, err = client.ListIntentPatternsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.PatternClient", "ListIntentPatterns", resp, "Failure responding to request") + return } return @@ -494,6 +499,7 @@ func (client PatternClient) ListPatterns(ctx context.Context, appID uuid.UUID, v result, err = client.ListPatternsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.PatternClient", "ListPatterns", resp, "Failure responding to request") + return } return @@ -581,6 +587,7 @@ func (client PatternClient) UpdatePattern(ctx context.Context, appID uuid.UUID, result, err = client.UpdatePatternResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.PatternClient", "UpdatePattern", resp, "Failure responding to request") + return } return @@ -663,6 +670,7 @@ func (client PatternClient) UpdatePatterns(ctx context.Context, appID uuid.UUID, result, err = client.UpdatePatternsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.PatternClient", "UpdatePatterns", resp, "Failure responding to request") + return } return diff --git a/services/preview/cognitiveservices/v3.0/luis/authoring/settings.go b/services/preview/cognitiveservices/v3.0/luis/authoring/settings.go index bc9482ed652c..ed772de8aba9 100644 --- a/services/preview/cognitiveservices/v3.0/luis/authoring/settings.go +++ b/services/preview/cognitiveservices/v3.0/luis/authoring/settings.go @@ -68,6 +68,7 @@ func (client SettingsClient) List(ctx context.Context, appID uuid.UUID, versionI result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.SettingsClient", "List", resp, "Failure responding to request") + return } return @@ -147,6 +148,7 @@ func (client SettingsClient) Update(ctx context.Context, appID uuid.UUID, versio result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.SettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/cognitiveservices/v3.0/luis/authoring/train.go b/services/preview/cognitiveservices/v3.0/luis/authoring/train.go index 63db19468d8b..5b902bd68dea 100644 --- a/services/preview/cognitiveservices/v3.0/luis/authoring/train.go +++ b/services/preview/cognitiveservices/v3.0/luis/authoring/train.go @@ -69,6 +69,7 @@ func (client TrainClient) GetStatus(ctx context.Context, appID uuid.UUID, versio result, err = client.GetStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.TrainClient", "GetStatus", resp, "Failure responding to request") + return } return @@ -145,6 +146,7 @@ func (client TrainClient) TrainVersion(ctx context.Context, appID uuid.UUID, ver result, err = client.TrainVersionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.TrainClient", "TrainVersion", resp, "Failure responding to request") + return } return diff --git a/services/preview/cognitiveservices/v3.0/luis/authoring/versions.go b/services/preview/cognitiveservices/v3.0/luis/authoring/versions.go index 336e1be58376..0d740f882ee5 100644 --- a/services/preview/cognitiveservices/v3.0/luis/authoring/versions.go +++ b/services/preview/cognitiveservices/v3.0/luis/authoring/versions.go @@ -69,6 +69,7 @@ func (client VersionsClient) Clone(ctx context.Context, appID uuid.UUID, version result, err = client.CloneResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Clone", resp, "Failure responding to request") + return } return @@ -143,6 +144,7 @@ func (client VersionsClient) Delete(ctx context.Context, appID uuid.UUID, versio result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -216,6 +218,7 @@ func (client VersionsClient) DeleteUnlabelledUtterance(ctx context.Context, appI result, err = client.DeleteUnlabelledUtteranceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "DeleteUnlabelledUtterance", resp, "Failure responding to request") + return } return @@ -290,6 +293,7 @@ func (client VersionsClient) Export(ctx context.Context, appID uuid.UUID, versio result, err = client.ExportResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Export", resp, "Failure responding to request") + return } return @@ -362,6 +366,7 @@ func (client VersionsClient) ExportLuFormat(ctx context.Context, appID uuid.UUID result, err = client.ExportLuFormatResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "ExportLuFormat", resp, "Failure responding to request") + return } return @@ -439,6 +444,7 @@ func (client VersionsClient) Get(ctx context.Context, appID uuid.UUID, versionID result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -513,6 +519,7 @@ func (client VersionsClient) Import(ctx context.Context, appID uuid.UUID, luisAp result, err = client.ImportResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Import", resp, "Failure responding to request") + return } return @@ -594,6 +601,7 @@ func (client VersionsClient) ImportLuFormat(ctx context.Context, appID uuid.UUID result, err = client.ImportLuFormatResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "ImportLuFormat", resp, "Failure responding to request") + return } return @@ -675,6 +683,7 @@ func (client VersionsClient) ImportV2App(ctx context.Context, appID uuid.UUID, l result, err = client.ImportV2AppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "ImportV2App", resp, "Failure responding to request") + return } return @@ -767,6 +776,7 @@ func (client VersionsClient) List(ctx context.Context, appID uuid.UUID, skip *in result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "List", resp, "Failure responding to request") + return } return @@ -852,6 +862,7 @@ func (client VersionsClient) Update(ctx context.Context, appID uuid.UUID, versio result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/cognitiveservices/v3.4-preview/customvision/training/client.go b/services/preview/cognitiveservices/v3.4-preview/customvision/training/client.go index 852b941db440..2ad80ec49f78 100644 --- a/services/preview/cognitiveservices/v3.4-preview/customvision/training/client.go +++ b/services/preview/cognitiveservices/v3.4-preview/customvision/training/client.go @@ -86,6 +86,7 @@ func (client BaseClient) CreateImageRegions(ctx context.Context, projectID uuid. result, err = client.CreateImageRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImageRegions", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client BaseClient) CreateImagesFromData(ctx context.Context, projectID uui result, err = client.CreateImagesFromDataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromData", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client BaseClient) CreateImagesFromFiles(ctx context.Context, projectID uu result, err = client.CreateImagesFromFilesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromFiles", resp, "Failure responding to request") + return } return @@ -337,6 +340,7 @@ func (client BaseClient) CreateImagesFromPredictions(ctx context.Context, projec result, err = client.CreateImagesFromPredictionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromPredictions", resp, "Failure responding to request") + return } return @@ -414,6 +418,7 @@ func (client BaseClient) CreateImagesFromUrls(ctx context.Context, projectID uui result, err = client.CreateImagesFromUrlsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromUrls", resp, "Failure responding to request") + return } return @@ -487,6 +492,7 @@ func (client BaseClient) CreateImageTags(ctx context.Context, projectID uuid.UUI result, err = client.CreateImageTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImageTags", resp, "Failure responding to request") + return } return @@ -564,6 +570,7 @@ func (client BaseClient) CreateProject(ctx context.Context, name string, descrip result, err = client.CreateProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateProject", resp, "Failure responding to request") + return } return @@ -655,6 +662,7 @@ func (client BaseClient) CreateTag(ctx context.Context, projectID uuid.UUID, nam result, err = client.CreateTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateTag", resp, "Failure responding to request") + return } return @@ -746,6 +754,7 @@ func (client BaseClient) DeleteImageRegions(ctx context.Context, projectID uuid. result, err = client.DeleteImageRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImageRegions", resp, "Failure responding to request") + return } return @@ -834,6 +843,7 @@ func (client BaseClient) DeleteImages(ctx context.Context, projectID uuid.UUID, result, err = client.DeleteImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImages", resp, "Failure responding to request") + return } return @@ -931,6 +941,7 @@ func (client BaseClient) DeleteImageTags(ctx context.Context, projectID uuid.UUI result, err = client.DeleteImageTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImageTags", resp, "Failure responding to request") + return } return @@ -1007,6 +1018,7 @@ func (client BaseClient) DeleteIteration(ctx context.Context, projectID uuid.UUI result, err = client.DeleteIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteIteration", resp, "Failure responding to request") + return } return @@ -1087,6 +1099,7 @@ func (client BaseClient) DeletePrediction(ctx context.Context, projectID uuid.UU result, err = client.DeletePredictionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeletePrediction", resp, "Failure responding to request") + return } return @@ -1161,6 +1174,7 @@ func (client BaseClient) DeleteProject(ctx context.Context, projectID uuid.UUID) result, err = client.DeleteProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteProject", resp, "Failure responding to request") + return } return @@ -1231,6 +1245,7 @@ func (client BaseClient) DeleteTag(ctx context.Context, projectID uuid.UUID, tag result, err = client.DeleteTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteTag", resp, "Failure responding to request") + return } return @@ -1304,6 +1319,7 @@ func (client BaseClient) ExportIteration(ctx context.Context, projectID uuid.UUI result, err = client.ExportIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "ExportIteration", resp, "Failure responding to request") + return } return @@ -1383,6 +1399,7 @@ func (client BaseClient) ExportProject(ctx context.Context, projectID uuid.UUID) result, err = client.ExportProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "ExportProject", resp, "Failure responding to request") + return } return @@ -1454,6 +1471,7 @@ func (client BaseClient) GetArtifact(ctx context.Context, projectID uuid.UUID, p result, err = client.GetArtifactResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetArtifact", resp, "Failure responding to request") + return } return @@ -1528,6 +1546,7 @@ func (client BaseClient) GetDomain(ctx context.Context, domainID uuid.UUID) (res result, err = client.GetDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetDomain", resp, "Failure responding to request") + return } return @@ -1596,6 +1615,7 @@ func (client BaseClient) GetDomains(ctx context.Context) (result ListDomain, err result, err = client.GetDomainsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetDomains", resp, "Failure responding to request") + return } return @@ -1663,6 +1683,7 @@ func (client BaseClient) GetExports(ctx context.Context, projectID uuid.UUID, it result, err = client.GetExportsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetExports", resp, "Failure responding to request") + return } return @@ -1742,6 +1763,7 @@ func (client BaseClient) GetImageCount(ctx context.Context, projectID uuid.UUID, result, err = client.GetImageCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImageCount", resp, "Failure responding to request") + return } return @@ -1831,6 +1853,7 @@ func (client BaseClient) GetImagePerformanceCount(ctx context.Context, projectID result, err = client.GetImagePerformanceCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagePerformanceCount", resp, "Failure responding to request") + return } return @@ -1931,6 +1954,7 @@ func (client BaseClient) GetImagePerformances(ctx context.Context, projectID uui result, err = client.GetImagePerformancesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagePerformances", resp, "Failure responding to request") + return } return @@ -2023,6 +2047,7 @@ func (client BaseClient) GetImageRegionProposals(ctx context.Context, projectID result, err = client.GetImageRegionProposalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImageRegionProposals", resp, "Failure responding to request") + return } return @@ -2122,6 +2147,7 @@ func (client BaseClient) GetImages(ctx context.Context, projectID uuid.UUID, ite result, err = client.GetImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImages", resp, "Failure responding to request") + return } return @@ -2233,6 +2259,7 @@ func (client BaseClient) GetImagesByIds(ctx context.Context, projectID uuid.UUID result, err = client.GetImagesByIdsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagesByIds", resp, "Failure responding to request") + return } return @@ -2313,6 +2340,7 @@ func (client BaseClient) GetIteration(ctx context.Context, projectID uuid.UUID, result, err = client.GetIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIteration", resp, "Failure responding to request") + return } return @@ -2387,6 +2415,7 @@ func (client BaseClient) GetIterationPerformance(ctx context.Context, projectID result, err = client.GetIterationPerformanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIterationPerformance", resp, "Failure responding to request") + return } return @@ -2467,6 +2496,7 @@ func (client BaseClient) GetIterations(ctx context.Context, projectID uuid.UUID) result, err = client.GetIterationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIterations", resp, "Failure responding to request") + return } return @@ -2537,6 +2567,7 @@ func (client BaseClient) GetProject(ctx context.Context, projectID uuid.UUID) (r result, err = client.GetProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetProject", resp, "Failure responding to request") + return } return @@ -2605,6 +2636,7 @@ func (client BaseClient) GetProjects(ctx context.Context) (result ListProject, e result, err = client.GetProjectsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetProjects", resp, "Failure responding to request") + return } return @@ -2673,6 +2705,7 @@ func (client BaseClient) GetTag(ctx context.Context, projectID uuid.UUID, tagID result, err = client.GetTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTag", resp, "Failure responding to request") + return } return @@ -2754,6 +2787,7 @@ func (client BaseClient) GetTaggedImageCount(ctx context.Context, projectID uuid result, err = client.GetTaggedImageCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTaggedImageCount", resp, "Failure responding to request") + return } return @@ -2856,6 +2890,7 @@ func (client BaseClient) GetTaggedImages(ctx context.Context, projectID uuid.UUI result, err = client.GetTaggedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTaggedImages", resp, "Failure responding to request") + return } return @@ -2949,6 +2984,7 @@ func (client BaseClient) GetTags(ctx context.Context, projectID uuid.UUID, itera result, err = client.GetTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTags", resp, "Failure responding to request") + return } return @@ -3028,6 +3064,7 @@ func (client BaseClient) GetUntaggedImageCount(ctx context.Context, projectID uu result, err = client.GetUntaggedImageCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetUntaggedImageCount", resp, "Failure responding to request") + return } return @@ -3119,6 +3156,7 @@ func (client BaseClient) GetUntaggedImages(ctx context.Context, projectID uuid.U result, err = client.GetUntaggedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "GetUntaggedImages", resp, "Failure responding to request") + return } return @@ -3209,6 +3247,7 @@ func (client BaseClient) ImportProject(ctx context.Context, tokenParameter strin result, err = client.ImportProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "ImportProject", resp, "Failure responding to request") + return } return @@ -3287,6 +3326,7 @@ func (client BaseClient) PublishIteration(ctx context.Context, projectID uuid.UU result, err = client.PublishIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "PublishIteration", resp, "Failure responding to request") + return } return @@ -3368,6 +3408,7 @@ func (client BaseClient) QueryPredictions(ctx context.Context, projectID uuid.UU result, err = client.QueryPredictionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QueryPredictions", resp, "Failure responding to request") + return } return @@ -3443,6 +3484,7 @@ func (client BaseClient) QuerySuggestedImageCount(ctx context.Context, projectID result, err = client.QuerySuggestedImageCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QuerySuggestedImageCount", resp, "Failure responding to request") + return } return @@ -3523,6 +3565,7 @@ func (client BaseClient) QuerySuggestedImages(ctx context.Context, projectID uui result, err = client.QuerySuggestedImagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QuerySuggestedImages", resp, "Failure responding to request") + return } return @@ -3605,6 +3648,7 @@ func (client BaseClient) QuickTestImage(ctx context.Context, projectID uuid.UUID result, err = client.QuickTestImageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QuickTestImage", resp, "Failure responding to request") + return } return @@ -3702,6 +3746,7 @@ func (client BaseClient) QuickTestImageURL(ctx context.Context, projectID uuid.U result, err = client.QuickTestImageURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "QuickTestImageURL", resp, "Failure responding to request") + return } return @@ -3798,6 +3843,7 @@ func (client BaseClient) SuggestTagsAndRegions(ctx context.Context, projectID uu result, err = client.SuggestTagsAndRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "SuggestTagsAndRegions", resp, "Failure responding to request") + return } return @@ -3890,6 +3936,7 @@ func (client BaseClient) TrainProject(ctx context.Context, projectID uuid.UUID, result, err = client.TrainProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "TrainProject", resp, "Failure responding to request") + return } return @@ -3985,6 +4032,7 @@ func (client BaseClient) UnpublishIteration(ctx context.Context, projectID uuid. result, err = client.UnpublishIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UnpublishIteration", resp, "Failure responding to request") + return } return @@ -4070,6 +4118,7 @@ func (client BaseClient) UpdateImageMetadata(ctx context.Context, projectID uuid result, err = client.UpdateImageMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateImageMetadata", resp, "Failure responding to request") + return } return @@ -4149,6 +4198,7 @@ func (client BaseClient) UpdateIteration(ctx context.Context, projectID uuid.UUI result, err = client.UpdateIterationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateIteration", resp, "Failure responding to request") + return } return @@ -4240,6 +4290,7 @@ func (client BaseClient) UpdateProject(ctx context.Context, projectID uuid.UUID, result, err = client.UpdateProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateProject", resp, "Failure responding to request") + return } return @@ -4319,6 +4370,7 @@ func (client BaseClient) UpdateTag(ctx context.Context, projectID uuid.UUID, tag result, err = client.UpdateTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateTag", resp, "Failure responding to request") + return } return diff --git a/services/preview/commerce/mgmt/2015-06-01-preview/commerce/ratecard.go b/services/preview/commerce/mgmt/2015-06-01-preview/commerce/ratecard.go index 8c69f8cd22ea..ef37e6f6a4a8 100644 --- a/services/preview/commerce/mgmt/2015-06-01-preview/commerce/ratecard.go +++ b/services/preview/commerce/mgmt/2015-06-01-preview/commerce/ratecard.go @@ -78,6 +78,7 @@ func (client RateCardClient) Get(ctx context.Context, filter string) (result Res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "commerce.RateCardClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/commerce/mgmt/2015-06-01-preview/commerce/usageaggregates.go b/services/preview/commerce/mgmt/2015-06-01-preview/commerce/usageaggregates.go index aa4a15547659..1da913ae5d15 100644 --- a/services/preview/commerce/mgmt/2015-06-01-preview/commerce/usageaggregates.go +++ b/services/preview/commerce/mgmt/2015-06-01-preview/commerce/usageaggregates.go @@ -84,6 +84,7 @@ func (client UsageAggregatesClient) List(ctx context.Context, reportedStartTime result.ualr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "commerce.UsageAggregatesClient", "List", resp, "Failure responding to request") + return } if result.ualr.hasNextLink() && result.ualr.IsEmpty() { err = result.NextWithContext(ctx) @@ -159,6 +160,7 @@ func (client UsageAggregatesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "commerce.UsageAggregatesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/communication/mgmt/2020-08-20-preview/communication/operations.go b/services/preview/communication/mgmt/2020-08-20-preview/communication/operations.go index 286ba0e8f020..345ce19ed378 100644 --- a/services/preview/communication/mgmt/2020-08-20-preview/communication/operations.go +++ b/services/preview/communication/mgmt/2020-08-20-preview/communication/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListPa result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "communication.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "communication.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/communication/mgmt/2020-08-20-preview/communication/operationstatuses.go b/services/preview/communication/mgmt/2020-08-20-preview/communication/operationstatuses.go index 738af5d63669..74fa7a584e18 100644 --- a/services/preview/communication/mgmt/2020-08-20-preview/communication/operationstatuses.go +++ b/services/preview/communication/mgmt/2020-08-20-preview/communication/operationstatuses.go @@ -73,6 +73,7 @@ func (client OperationStatusesClient) Get(ctx context.Context, location string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "communication.OperationStatusesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/communication/mgmt/2020-08-20-preview/communication/service.go b/services/preview/communication/mgmt/2020-08-20-preview/communication/service.go index 63dee265b0f1..91d187c0f6f1 100644 --- a/services/preview/communication/mgmt/2020-08-20-preview/communication/service.go +++ b/services/preview/communication/mgmt/2020-08-20-preview/communication/service.go @@ -81,6 +81,7 @@ func (client ServiceClient) CheckNameAvailability(ctx context.Context, nameAvail result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "communication.ServiceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -329,6 +330,7 @@ func (client ServiceClient) Get(ctx context.Context, resourceGroupName string, c result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "communication.ServiceClient", "Get", resp, "Failure responding to request") + return } return @@ -415,6 +417,7 @@ func (client ServiceClient) LinkNotificationHub(ctx context.Context, resourceGro result, err = client.LinkNotificationHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "communication.ServiceClient", "LinkNotificationHub", resp, "Failure responding to request") + return } return @@ -496,6 +499,7 @@ func (client ServiceClient) ListByResourceGroup(ctx context.Context, resourceGro result.srl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "communication.ServiceClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.srl.hasNextLink() && result.srl.IsEmpty() { err = result.NextWithContext(ctx) @@ -559,6 +563,7 @@ func (client ServiceClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "communication.ServiceClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -608,6 +613,7 @@ func (client ServiceClient) ListBySubscription(ctx context.Context) (result Serv result.srl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "communication.ServiceClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.srl.hasNextLink() && result.srl.IsEmpty() { err = result.NextWithContext(ctx) @@ -670,6 +676,7 @@ func (client ServiceClient) listBySubscriptionNextResults(ctx context.Context, l result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "communication.ServiceClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -722,6 +729,7 @@ func (client ServiceClient) ListKeys(ctx context.Context, resourceGroupName stri result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "communication.ServiceClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -800,6 +808,7 @@ func (client ServiceClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "communication.ServiceClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -882,6 +891,7 @@ func (client ServiceClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "communication.ServiceClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/compute/mgmt/2016-04-30-preview/compute/availabilitysets.go b/services/preview/compute/mgmt/2016-04-30-preview/compute/availabilitysets.go index 1c6fe2b08640..c32adb61682b 100644 --- a/services/preview/compute/mgmt/2016-04-30-preview/compute/availabilitysets.go +++ b/services/preview/compute/mgmt/2016-04-30-preview/compute/availabilitysets.go @@ -74,6 +74,7 @@ func (client AvailabilitySetsClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client AvailabilitySetsClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client AvailabilitySetsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +304,7 @@ func (client AvailabilitySetsClient) List(ctx context.Context, resourceGroupName result.aslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "List", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +368,7 @@ func (client AvailabilitySetsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +421,7 @@ func (client AvailabilitySetsClient) ListAvailableSizes(ctx context.Context, res result, err = client.ListAvailableSizesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListAvailableSizes", resp, "Failure responding to request") + return } return @@ -489,6 +495,7 @@ func (client AvailabilitySetsClient) ListBySubscription(ctx context.Context) (re result.aslr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -551,6 +558,7 @@ func (client AvailabilitySetsClient) listBySubscriptionNextResults(ctx context.C result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/compute/mgmt/2016-04-30-preview/compute/disks.go b/services/preview/compute/mgmt/2016-04-30-preview/compute/disks.go index 782a1b006779..c9a66be6aa93 100644 --- a/services/preview/compute/mgmt/2016-04-30-preview/compute/disks.go +++ b/services/preview/compute/mgmt/2016-04-30-preview/compute/disks.go @@ -253,6 +253,7 @@ func (client DisksClient) Get(ctx context.Context, resourceGroupName string, dis result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "Get", resp, "Failure responding to request") + return } return @@ -412,6 +413,7 @@ func (client DisksClient) List(ctx context.Context) (result DiskListPage, err er result.dl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "List", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +476,7 @@ func (client DisksClient) listNextResults(ctx context.Context, lastResults DiskL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -525,6 +528,7 @@ func (client DisksClient) ListByResourceGroup(ctx context.Context, resourceGroup result.dl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -588,6 +592,7 @@ func (client DisksClient) listByResourceGroupNextResults(ctx context.Context, la result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/compute/mgmt/2016-04-30-preview/compute/images.go b/services/preview/compute/mgmt/2016-04-30-preview/compute/images.go index 5780ea6e1c76..1e8b19487b5e 100644 --- a/services/preview/compute/mgmt/2016-04-30-preview/compute/images.go +++ b/services/preview/compute/mgmt/2016-04-30-preview/compute/images.go @@ -236,6 +236,7 @@ func (client ImagesClient) Get(ctx context.Context, resourceGroupName string, im result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -313,6 +314,7 @@ func (client ImagesClient) List(ctx context.Context) (result ImageListResultPage result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client ImagesClient) listNextResults(ctx context.Context, lastResults Imag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -426,6 +429,7 @@ func (client ImagesClient) ListByResourceGroup(ctx context.Context, resourceGrou result.ilr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -489,6 +493,7 @@ func (client ImagesClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/compute/mgmt/2016-04-30-preview/compute/snapshots.go b/services/preview/compute/mgmt/2016-04-30-preview/compute/snapshots.go index dd4cbd8dc238..1129b035d493 100644 --- a/services/preview/compute/mgmt/2016-04-30-preview/compute/snapshots.go +++ b/services/preview/compute/mgmt/2016-04-30-preview/compute/snapshots.go @@ -247,6 +247,7 @@ func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "Get", resp, "Failure responding to request") + return } return @@ -404,6 +405,7 @@ func (client SnapshotsClient) List(ctx context.Context) (result SnapshotListPage result.sl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "List", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +468,7 @@ func (client SnapshotsClient) listNextResults(ctx context.Context, lastResults S result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -517,6 +520,7 @@ func (client SnapshotsClient) ListByResourceGroup(ctx context.Context, resourceG result.sl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -580,6 +584,7 @@ func (client SnapshotsClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/compute/mgmt/2016-04-30-preview/compute/usage.go b/services/preview/compute/mgmt/2016-04-30-preview/compute/usage.go index 8ff615fbdbd0..3e6c0b536c1d 100644 --- a/services/preview/compute/mgmt/2016-04-30-preview/compute/usage.go +++ b/services/preview/compute/mgmt/2016-04-30-preview/compute/usage.go @@ -80,6 +80,7 @@ func (client UsageClient) List(ctx context.Context, location string) (result Lis result.lur, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.UsageClient", "List", resp, "Failure responding to request") + return } if result.lur.hasNextLink() && result.lur.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client UsageClient) listNextResults(ctx context.Context, lastResults ListU result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.UsageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachineextensionimages.go b/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachineextensionimages.go index 43fc7c193747..a2c61ee443e4 100644 --- a/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachineextensionimages.go +++ b/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachineextensionimages.go @@ -72,6 +72,7 @@ func (client VirtualMachineExtensionImagesClient) Get(ctx context.Context, locat result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client VirtualMachineExtensionImagesClient) ListTypes(ctx context.Context, result, err = client.ListTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListTypes", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client VirtualMachineExtensionImagesClient) ListVersions(ctx context.Conte result, err = client.ListVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListVersions", resp, "Failure responding to request") + return } return diff --git a/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachineextensions.go b/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachineextensions.go index c95ebcd75cde..467b0c9c24e7 100644 --- a/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachineextensions.go +++ b/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachineextensions.go @@ -232,6 +232,7 @@ func (client VirtualMachineExtensionsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachineimages.go b/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachineimages.go index 3d9804ef29df..f1dfb2280f03 100644 --- a/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachineimages.go +++ b/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachineimages.go @@ -76,6 +76,7 @@ func (client VirtualMachineImagesClient) Get(ctx context.Context, location strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "Get", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client VirtualMachineImagesClient) List(ctx context.Context, location stri result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "List", resp, "Failure responding to request") + return } return @@ -243,6 +245,7 @@ func (client VirtualMachineImagesClient) ListOffers(ctx context.Context, locatio result, err = client.ListOffersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListOffers", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client VirtualMachineImagesClient) ListPublishers(ctx context.Context, loc result, err = client.ListPublishersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListPublishers", resp, "Failure responding to request") + return } return @@ -392,6 +396,7 @@ func (client VirtualMachineImagesClient) ListSkus(ctx context.Context, location result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListSkus", resp, "Failure responding to request") + return } return diff --git a/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachines.go b/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachines.go index 8c4714d1fbc2..13d7f088a602 100644 --- a/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachines.go +++ b/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachines.go @@ -487,6 +487,7 @@ func (client VirtualMachinesClient) Generalize(ctx context.Context, resourceGrou result, err = client.GeneralizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Generalize", resp, "Failure responding to request") + return } return @@ -563,6 +564,7 @@ func (client VirtualMachinesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Get", resp, "Failure responding to request") + return } return @@ -642,6 +644,7 @@ func (client VirtualMachinesClient) GetExtensions(ctx context.Context, resourceG result, err = client.GetExtensionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "GetExtensions", resp, "Failure responding to request") + return } return @@ -721,6 +724,7 @@ func (client VirtualMachinesClient) List(ctx context.Context, resourceGroupName result.vmlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "List", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -784,6 +788,7 @@ func (client VirtualMachinesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -834,6 +839,7 @@ func (client VirtualMachinesClient) ListAll(ctx context.Context) (result Virtual result.vmlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAll", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -896,6 +902,7 @@ func (client VirtualMachinesClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -947,6 +954,7 @@ func (client VirtualMachinesClient) ListAvailableSizes(ctx context.Context, reso result, err = client.ListAvailableSizesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAvailableSizes", resp, "Failure responding to request") + return } return diff --git a/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachinescalesets.go b/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachinescalesets.go index 37d42bec7878..b88536fa15a3 100644 --- a/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachinescalesets.go +++ b/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachinescalesets.go @@ -393,6 +393,7 @@ func (client VirtualMachineScaleSetsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -468,6 +469,7 @@ func (client VirtualMachineScaleSetsClient) GetInstanceView(ctx context.Context, result, err = client.GetInstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "GetInstanceView", resp, "Failure responding to request") + return } return @@ -543,6 +545,7 @@ func (client VirtualMachineScaleSetsClient) List(ctx context.Context, resourceGr result.vmsslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "List", resp, "Failure responding to request") + return } if result.vmsslr.hasNextLink() && result.vmsslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -606,6 +609,7 @@ func (client VirtualMachineScaleSetsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -657,6 +661,7 @@ func (client VirtualMachineScaleSetsClient) ListAll(ctx context.Context) (result result.vmsslwlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListAll", resp, "Failure responding to request") + return } if result.vmsslwlr.hasNextLink() && result.vmsslwlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -719,6 +724,7 @@ func (client VirtualMachineScaleSetsClient) listAllNextResults(ctx context.Conte result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -772,6 +778,7 @@ func (client VirtualMachineScaleSetsClient) ListSkus(ctx context.Context, resour result.vmsslsr, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListSkus", resp, "Failure responding to request") + return } if result.vmsslsr.hasNextLink() && result.vmsslsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -836,6 +843,7 @@ func (client VirtualMachineScaleSetsClient) listSkusNextResults(ctx context.Cont result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "listSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachinescalesetvms.go b/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachinescalesetvms.go index 900287e2c23d..1d51e58bce5e 100644 --- a/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachinescalesetvms.go +++ b/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachinescalesetvms.go @@ -230,6 +230,7 @@ func (client VirtualMachineScaleSetVMsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client VirtualMachineScaleSetVMsClient) GetInstanceView(ctx context.Contex result, err = client.GetInstanceViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "GetInstanceView", resp, "Failure responding to request") + return } return @@ -387,6 +389,7 @@ func (client VirtualMachineScaleSetVMsClient) List(ctx context.Context, resource result.vmssvlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "List", resp, "Failure responding to request") + return } if result.vmssvlr.hasNextLink() && result.vmssvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -460,6 +463,7 @@ func (client VirtualMachineScaleSetVMsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachinesizes.go b/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachinesizes.go index 4b1340181042..dc683230bea9 100644 --- a/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachinesizes.go +++ b/services/preview/compute/mgmt/2016-04-30-preview/compute/virtualmachinesizes.go @@ -79,6 +79,7 @@ func (client VirtualMachineSizesClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineSizesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/confluent/mgmt/2020-03-01-preview/confluent/marketplaceagreements.go b/services/preview/confluent/mgmt/2020-03-01-preview/confluent/marketplaceagreements.go index d9ef9e49b3e7..7244bc4d74cb 100644 --- a/services/preview/confluent/mgmt/2020-03-01-preview/confluent/marketplaceagreements.go +++ b/services/preview/confluent/mgmt/2020-03-01-preview/confluent/marketplaceagreements.go @@ -70,6 +70,7 @@ func (client MarketplaceAgreementsClient) Create(ctx context.Context, body *Agre result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "confluent.MarketplaceAgreementsClient", "Create", resp, "Failure responding to request") + return } return @@ -143,6 +144,7 @@ func (client MarketplaceAgreementsClient) List(ctx context.Context) (result Agre result.arlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "confluent.MarketplaceAgreementsClient", "List", resp, "Failure responding to request") + return } if result.arlr.hasNextLink() && result.arlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -199,6 +201,7 @@ func (client MarketplaceAgreementsClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "confluent.MarketplaceAgreementsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/confluent/mgmt/2020-03-01-preview/confluent/organization.go b/services/preview/confluent/mgmt/2020-03-01-preview/confluent/organization.go index e05c7bb1ab08..0b10a353632d 100644 --- a/services/preview/confluent/mgmt/2020-03-01-preview/confluent/organization.go +++ b/services/preview/confluent/mgmt/2020-03-01-preview/confluent/organization.go @@ -230,6 +230,7 @@ func (client OrganizationClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "confluent.OrganizationClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client OrganizationClient) ListByResourceGroup(ctx context.Context, resour result.orlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "confluent.OrganizationClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.orlr.hasNextLink() && result.orlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client OrganizationClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "confluent.OrganizationClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client OrganizationClient) ListBySubscription(ctx context.Context) (result result.orlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "confluent.OrganizationClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.orlr.hasNextLink() && result.orlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client OrganizationClient) listBySubscriptionNextResults(ctx context.Conte result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "confluent.OrganizationClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +536,7 @@ func (client OrganizationClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "confluent.OrganizationClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/confluent/mgmt/2020-03-01-preview/confluent/organizationoperations.go b/services/preview/confluent/mgmt/2020-03-01-preview/confluent/organizationoperations.go index 0a54ede6fcc6..6bcb0348db0f 100644 --- a/services/preview/confluent/mgmt/2020-03-01-preview/confluent/organizationoperations.go +++ b/services/preview/confluent/mgmt/2020-03-01-preview/confluent/organizationoperations.go @@ -71,6 +71,7 @@ func (client OrganizationOperationsClient) List(ctx context.Context) (result Ope result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "confluent.OrganizationOperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OrganizationOperationsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "confluent.OrganizationOperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/consumption/mgmt/2017-04-24-preview/consumption/operations.go b/services/preview/consumption/mgmt/2017-04-24-preview/consumption/operations.go index a667186a6d2c..f9f4684ce070 100644 --- a/services/preview/consumption/mgmt/2017-04-24-preview/consumption/operations.go +++ b/services/preview/consumption/mgmt/2017-04-24-preview/consumption/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/consumption/mgmt/2017-04-24-preview/consumption/usagedetails.go b/services/preview/consumption/mgmt/2017-04-24-preview/consumption/usagedetails.go index b3a03e9e62bc..e5b0bdc893be 100644 --- a/services/preview/consumption/mgmt/2017-04-24-preview/consumption/usagedetails.go +++ b/services/preview/consumption/mgmt/2017-04-24-preview/consumption/usagedetails.go @@ -96,6 +96,7 @@ func (client UsageDetailsClient) List(ctx context.Context, scope string, expand result.udlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "List", resp, "Failure responding to request") + return } if result.udlr.hasNextLink() && result.udlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -170,6 +171,7 @@ func (client UsageDetailsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.UsageDetailsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/consumption/mgmt/2017-12-30-preview/consumption/budgets.go b/services/preview/consumption/mgmt/2017-12-30-preview/consumption/budgets.go index 3eaab30e3b47..8293d855d429 100644 --- a/services/preview/consumption/mgmt/2017-12-30-preview/consumption/budgets.go +++ b/services/preview/consumption/mgmt/2017-12-30-preview/consumption/budgets.go @@ -86,6 +86,7 @@ func (client BudgetsClient) CreateOrUpdate(ctx context.Context, parameters Budge result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client BudgetsClient) Delete(ctx context.Context) (result autorest.Respons result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client BudgetsClient) Get(ctx context.Context) (result Budget, err error) result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client BudgetsClient) List(ctx context.Context) (result BudgetsListResult, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.BudgetsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/consumption/mgmt/2017-12-30-preview/consumption/operations.go b/services/preview/consumption/mgmt/2017-12-30-preview/consumption/operations.go index efed0dbfd138..0ccf13a72433 100644 --- a/services/preview/consumption/mgmt/2017-12-30-preview/consumption/operations.go +++ b/services/preview/consumption/mgmt/2017-12-30-preview/consumption/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "consumption.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerinstance/mgmt/2017-08-01-preview/containerinstance/containergroups.go b/services/preview/containerinstance/mgmt/2017-08-01-preview/containerinstance/containergroups.go index b83474e79d3d..2406c259646f 100644 --- a/services/preview/containerinstance/mgmt/2017-08-01-preview/containerinstance/containergroups.go +++ b/services/preview/containerinstance/mgmt/2017-08-01-preview/containerinstance/containergroups.go @@ -86,6 +86,7 @@ func (client ContainerGroupsClient) CreateOrUpdate(ctx context.Context, resource result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client ContainerGroupsClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -241,6 +243,7 @@ func (client ContainerGroupsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client ContainerGroupsClient) List(ctx context.Context) (result ContainerG result.cglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "List", resp, "Failure responding to request") + return } if result.cglr.hasNextLink() && result.cglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -378,6 +382,7 @@ func (client ContainerGroupsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -431,6 +436,7 @@ func (client ContainerGroupsClient) ListByResourceGroup(ctx context.Context, res result.cglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cglr.hasNextLink() && result.cglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -494,6 +500,7 @@ func (client ContainerGroupsClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerinstance/mgmt/2017-08-01-preview/containerinstance/containerlogs.go b/services/preview/containerinstance/mgmt/2017-08-01-preview/containerinstance/containerlogs.go index 1ddc0f6d095d..6fd7ada017aa 100644 --- a/services/preview/containerinstance/mgmt/2017-08-01-preview/containerinstance/containerlogs.go +++ b/services/preview/containerinstance/mgmt/2017-08-01-preview/containerinstance/containerlogs.go @@ -75,6 +75,7 @@ func (client ContainerLogsClient) List(ctx context.Context, resourceGroupName st result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerLogsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance/containergroups.go b/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance/containergroups.go index 4d0bbbb0ebe7..817bd691b5ac 100644 --- a/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance/containergroups.go +++ b/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance/containergroups.go @@ -86,6 +86,7 @@ func (client ContainerGroupsClient) CreateOrUpdate(ctx context.Context, resource result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client ContainerGroupsClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -241,6 +243,7 @@ func (client ContainerGroupsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client ContainerGroupsClient) List(ctx context.Context) (result ContainerG result.cglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "List", resp, "Failure responding to request") + return } if result.cglr.hasNextLink() && result.cglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -378,6 +382,7 @@ func (client ContainerGroupsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -431,6 +436,7 @@ func (client ContainerGroupsClient) ListByResourceGroup(ctx context.Context, res result.cglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cglr.hasNextLink() && result.cglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -494,6 +500,7 @@ func (client ContainerGroupsClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance/containerlogs.go b/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance/containerlogs.go index 207651f10f2d..5f16c26473d1 100644 --- a/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance/containerlogs.go +++ b/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance/containerlogs.go @@ -75,6 +75,7 @@ func (client ContainerLogsClient) List(ctx context.Context, resourceGroupName st result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerLogsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance/operations.go b/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance/operations.go index 04bed1cd313d..b37c5d980802 100644 --- a/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance/operations.go +++ b/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/containergroups.go b/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/containergroups.go index 574e01b40908..74bb23ff886b 100644 --- a/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/containergroups.go +++ b/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/containergroups.go @@ -86,6 +86,7 @@ func (client ContainerGroupsClient) CreateOrUpdate(ctx context.Context, resource result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client ContainerGroupsClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -241,6 +243,7 @@ func (client ContainerGroupsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client ContainerGroupsClient) List(ctx context.Context) (result ContainerG result.cglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "List", resp, "Failure responding to request") + return } if result.cglr.hasNextLink() && result.cglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -378,6 +382,7 @@ func (client ContainerGroupsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -431,6 +436,7 @@ func (client ContainerGroupsClient) ListByResourceGroup(ctx context.Context, res result.cglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cglr.hasNextLink() && result.cglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -494,6 +500,7 @@ func (client ContainerGroupsClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/containergroupusage.go b/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/containergroupusage.go index 92aaa93b653f..047782ca6002 100644 --- a/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/containergroupusage.go +++ b/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/containergroupusage.go @@ -72,6 +72,7 @@ func (client ContainerGroupUsageClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupUsageClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/containerlogs.go b/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/containerlogs.go index 0ba833c36432..b9b3928a3ab1 100644 --- a/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/containerlogs.go +++ b/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/containerlogs.go @@ -75,6 +75,7 @@ func (client ContainerLogsClient) List(ctx context.Context, resourceGroupName st result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerLogsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/operations.go b/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/operations.go index 1d87894c777d..b284f6118181 100644 --- a/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/operations.go +++ b/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/containergroups.go b/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/containergroups.go index 3a5ee24fa46a..a2622d5f1fdc 100644 --- a/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/containergroups.go +++ b/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/containergroups.go @@ -164,6 +164,7 @@ func (client ContainerGroupsClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -241,6 +242,7 @@ func (client ContainerGroupsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +318,7 @@ func (client ContainerGroupsClient) List(ctx context.Context) (result ContainerG result.cglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "List", resp, "Failure responding to request") + return } if result.cglr.hasNextLink() && result.cglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -378,6 +381,7 @@ func (client ContainerGroupsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -431,6 +435,7 @@ func (client ContainerGroupsClient) ListByResourceGroup(ctx context.Context, res result.cglr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cglr.hasNextLink() && result.cglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -494,6 +499,7 @@ func (client ContainerGroupsClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -546,6 +552,7 @@ func (client ContainerGroupsClient) Update(ctx context.Context, resourceGroupNam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/containergroupusage.go b/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/containergroupusage.go index fac5f4770ce5..fd17a4ae80d8 100644 --- a/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/containergroupusage.go +++ b/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/containergroupusage.go @@ -72,6 +72,7 @@ func (client ContainerGroupUsageClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupUsageClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/containerlogs.go b/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/containerlogs.go index cd94fbd375ce..b7d9502455da 100644 --- a/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/containerlogs.go +++ b/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/containerlogs.go @@ -75,6 +75,7 @@ func (client ContainerLogsClient) List(ctx context.Context, resourceGroupName st result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerLogsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/operations.go b/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/operations.go index 1cd57565b80e..abad28a962f1 100644 --- a/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/operations.go +++ b/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/startcontainer.go b/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/startcontainer.go index 554cdd2f2be5..67f8a5f290e5 100644 --- a/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/startcontainer.go +++ b/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/startcontainer.go @@ -75,6 +75,7 @@ func (client StartContainerClient) LaunchExec(ctx context.Context, resourceGroup result, err = client.LaunchExecResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.StartContainerClient", "LaunchExec", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerregistry/mgmt/2016-06-27-preview/containerregistry/registries.go b/services/preview/containerregistry/mgmt/2016-06-27-preview/containerregistry/registries.go index 09b0a4e8bf7f..b311cfeb7be1 100644 --- a/services/preview/containerregistry/mgmt/2016-06-27-preview/containerregistry/registries.go +++ b/services/preview/containerregistry/mgmt/2016-06-27-preview/containerregistry/registries.go @@ -80,6 +80,7 @@ func (client RegistriesClient) CheckNameAvailability(ctx context.Context, regist result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client RegistriesClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client RegistriesClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "Delete", resp, "Failure responding to request") + return } return @@ -318,6 +321,7 @@ func (client RegistriesClient) GetCredentials(ctx context.Context, resourceGroup result, err = client.GetCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "GetCredentials", resp, "Failure responding to request") + return } return @@ -393,6 +397,7 @@ func (client RegistriesClient) GetProperties(ctx context.Context, resourceGroupN result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "GetProperties", resp, "Failure responding to request") + return } return @@ -466,6 +471,7 @@ func (client RegistriesClient) List(ctx context.Context) (result RegistryListRes result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -528,6 +534,7 @@ func (client RegistriesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -579,6 +586,7 @@ func (client RegistriesClient) ListByResourceGroup(ctx context.Context, resource result.rlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -642,6 +650,7 @@ func (client RegistriesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -693,6 +702,7 @@ func (client RegistriesClient) RegenerateCredentials(ctx context.Context, resour result, err = client.RegenerateCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "RegenerateCredentials", resp, "Failure responding to request") + return } return @@ -769,6 +779,7 @@ func (client RegistriesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/operations.go b/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/operations.go index 5dccb1b3925e..b4f81cc311be 100644 --- a/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/operations.go +++ b/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/registries.go b/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/registries.go index 9daa4d7a0a90..b78785323bc1 100644 --- a/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/registries.go +++ b/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/registries.go @@ -84,6 +84,7 @@ func (client RegistriesClient) CheckNameAvailability(ctx context.Context, regist result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -341,6 +342,7 @@ func (client RegistriesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "Get", resp, "Failure responding to request") + return } return @@ -414,6 +416,7 @@ func (client RegistriesClient) List(ctx context.Context) (result RegistryListRes result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -476,6 +479,7 @@ func (client RegistriesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -527,6 +531,7 @@ func (client RegistriesClient) ListByResourceGroup(ctx context.Context, resource result.rlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -590,6 +595,7 @@ func (client RegistriesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -649,6 +655,7 @@ func (client RegistriesClient) ListCredentials(ctx context.Context, resourceGrou result, err = client.ListCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListCredentials", resp, "Failure responding to request") + return } return @@ -732,6 +739,7 @@ func (client RegistriesClient) ListUsages(ctx context.Context, resourceGroupName result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListUsages", resp, "Failure responding to request") + return } return @@ -817,6 +825,7 @@ func (client RegistriesClient) RegenerateCredential(ctx context.Context, resourc result, err = client.RegenerateCredentialResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "RegenerateCredential", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/replications.go b/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/replications.go index 4e1c9997ad43..a818e8ce299e 100644 --- a/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/replications.go +++ b/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/replications.go @@ -266,6 +266,7 @@ func (client ReplicationsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -351,6 +352,7 @@ func (client ReplicationsClient) List(ctx context.Context, resourceGroupName str result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -415,6 +417,7 @@ func (client ReplicationsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/webhooks.go b/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/webhooks.go index f4725caed748..9782eb5f6722 100644 --- a/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/webhooks.go +++ b/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/webhooks.go @@ -272,6 +272,7 @@ func (client WebhooksClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "Get", resp, "Failure responding to request") + return } return @@ -361,6 +362,7 @@ func (client WebhooksClient) GetCallbackConfig(ctx context.Context, resourceGrou result, err = client.GetCallbackConfigResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "GetCallbackConfig", resp, "Failure responding to request") + return } return @@ -446,6 +448,7 @@ func (client WebhooksClient) List(ctx context.Context, resourceGroupName string, result.wlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "List", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -510,6 +513,7 @@ func (client WebhooksClient) listNextResults(ctx context.Context, lastResults We result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -575,6 +579,7 @@ func (client WebhooksClient) ListEvents(ctx context.Context, resourceGroupName s result.elr, err = client.ListEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "ListEvents", resp, "Failure responding to request") + return } if result.elr.hasNextLink() && result.elr.IsEmpty() { err = result.NextWithContext(ctx) @@ -640,6 +645,7 @@ func (client WebhooksClient) listEventsNextResults(ctx context.Context, lastResu result, err = client.ListEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "listEventsNextResults", resp, "Failure responding to next results request") + return } return } @@ -704,6 +710,7 @@ func (client WebhooksClient) Ping(ctx context.Context, resourceGroupName string, result, err = client.PingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "Ping", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/builds.go b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/builds.go index b62787132c92..9951f578e25b 100644 --- a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/builds.go +++ b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/builds.go @@ -166,6 +166,7 @@ func (client BuildsClient) Get(ctx context.Context, resourceGroupName string, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BuildsClient", "Get", resp, "Failure responding to request") + return } return @@ -251,6 +252,7 @@ func (client BuildsClient) GetLogLink(ctx context.Context, resourceGroupName str result, err = client.GetLogLinkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BuildsClient", "GetLogLink", resp, "Failure responding to request") + return } return @@ -340,6 +342,7 @@ func (client BuildsClient) List(ctx context.Context, resourceGroupName string, r result.blr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BuildsClient", "List", resp, "Failure responding to request") + return } if result.blr.hasNextLink() && result.blr.IsEmpty() { err = result.NextWithContext(ctx) @@ -413,6 +416,7 @@ func (client BuildsClient) listNextResults(ctx context.Context, lastResults Buil result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BuildsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/buildsteps.go b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/buildsteps.go index 1fab6b4ef024..69ceb6581af2 100644 --- a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/buildsteps.go +++ b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/buildsteps.go @@ -283,6 +283,7 @@ func (client BuildStepsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BuildStepsClient", "Get", resp, "Failure responding to request") + return } return @@ -374,6 +375,7 @@ func (client BuildStepsClient) List(ctx context.Context, resourceGroupName strin result.bsl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BuildStepsClient", "List", resp, "Failure responding to request") + return } if result.bsl.hasNextLink() && result.bsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -439,6 +441,7 @@ func (client BuildStepsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BuildStepsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -509,6 +512,7 @@ func (client BuildStepsClient) ListBuildArguments(ctx context.Context, resourceG result.bal, err = client.ListBuildArgumentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BuildStepsClient", "ListBuildArguments", resp, "Failure responding to request") + return } if result.bal.hasNextLink() && result.bal.IsEmpty() { err = result.NextWithContext(ctx) @@ -575,6 +579,7 @@ func (client BuildStepsClient) listBuildArgumentsNextResults(ctx context.Context result, err = client.ListBuildArgumentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BuildStepsClient", "listBuildArgumentsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/buildtasks.go b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/buildtasks.go index ee9944d4bc33..51b07a90059d 100644 --- a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/buildtasks.go +++ b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/buildtasks.go @@ -280,6 +280,7 @@ func (client BuildTasksClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BuildTasksClient", "Get", resp, "Failure responding to request") + return } return @@ -368,6 +369,7 @@ func (client BuildTasksClient) List(ctx context.Context, resourceGroupName strin result.btlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BuildTasksClient", "List", resp, "Failure responding to request") + return } if result.btlr.hasNextLink() && result.btlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -438,6 +440,7 @@ func (client BuildTasksClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BuildTasksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -502,6 +505,7 @@ func (client BuildTasksClient) ListSourceRepositoryProperties(ctx context.Contex result, err = client.ListSourceRepositoryPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BuildTasksClient", "ListSourceRepositoryProperties", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/operations.go b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/operations.go index 36d74d8ced3b..43519447788d 100644 --- a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/operations.go +++ b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/registries.go b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/registries.go index 9df613121222..a5e01f4ad614 100644 --- a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/registries.go +++ b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/registries.go @@ -84,6 +84,7 @@ func (client RegistriesClient) CheckNameAvailability(ctx context.Context, regist result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -347,6 +348,7 @@ func (client RegistriesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "Get", resp, "Failure responding to request") + return } return @@ -430,6 +432,7 @@ func (client RegistriesClient) GetBuildSourceUploadURL(ctx context.Context, reso result, err = client.GetBuildSourceUploadURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "GetBuildSourceUploadURL", resp, "Failure responding to request") + return } return @@ -596,6 +599,7 @@ func (client RegistriesClient) List(ctx context.Context) (result RegistryListRes result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -658,6 +662,7 @@ func (client RegistriesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -715,6 +720,7 @@ func (client RegistriesClient) ListByResourceGroup(ctx context.Context, resource result.rlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -778,6 +784,7 @@ func (client RegistriesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -839,6 +846,7 @@ func (client RegistriesClient) ListCredentials(ctx context.Context, resourceGrou result, err = client.ListCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListCredentials", resp, "Failure responding to request") + return } return @@ -924,6 +932,7 @@ func (client RegistriesClient) ListPolicies(ctx context.Context, resourceGroupNa result, err = client.ListPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListPolicies", resp, "Failure responding to request") + return } return @@ -1009,6 +1018,7 @@ func (client RegistriesClient) ListUsages(ctx context.Context, resourceGroupName result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListUsages", resp, "Failure responding to request") + return } return @@ -1182,6 +1192,7 @@ func (client RegistriesClient) RegenerateCredential(ctx context.Context, resourc result, err = client.RegenerateCredentialResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "RegenerateCredential", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/replications.go b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/replications.go index 8826bcc8e0c0..9cd452922b86 100644 --- a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/replications.go +++ b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/replications.go @@ -272,6 +272,7 @@ func (client ReplicationsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -359,6 +360,7 @@ func (client ReplicationsClient) List(ctx context.Context, resourceGroupName str result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -423,6 +425,7 @@ func (client ReplicationsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/webhooks.go b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/webhooks.go index 64c6048cb6af..ba6ccd44c11b 100644 --- a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/webhooks.go +++ b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/webhooks.go @@ -278,6 +278,7 @@ func (client WebhooksClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +370,7 @@ func (client WebhooksClient) GetCallbackConfig(ctx context.Context, resourceGrou result, err = client.GetCallbackConfigResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "GetCallbackConfig", resp, "Failure responding to request") + return } return @@ -456,6 +458,7 @@ func (client WebhooksClient) List(ctx context.Context, resourceGroupName string, result.wlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "List", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -520,6 +523,7 @@ func (client WebhooksClient) listNextResults(ctx context.Context, lastResults We result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -587,6 +591,7 @@ func (client WebhooksClient) ListEvents(ctx context.Context, resourceGroupName s result.elr, err = client.ListEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "ListEvents", resp, "Failure responding to request") + return } if result.elr.hasNextLink() && result.elr.IsEmpty() { err = result.NextWithContext(ctx) @@ -652,6 +657,7 @@ func (client WebhooksClient) listEventsNextResults(ctx context.Context, lastResu result, err = client.ListEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "listEventsNextResults", resp, "Failure responding to next results request") + return } return } @@ -718,6 +724,7 @@ func (client WebhooksClient) Ping(ctx context.Context, resourceGroupName string, result, err = client.PingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "Ping", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/agentpools.go b/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/agentpools.go index 185677917296..475186599912 100644 --- a/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/agentpools.go +++ b/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/agentpools.go @@ -272,6 +272,7 @@ func (client AgentPoolsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.AgentPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -363,6 +364,7 @@ func (client AgentPoolsClient) GetQueueStatus(ctx context.Context, resourceGroup result, err = client.GetQueueStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.AgentPoolsClient", "GetQueueStatus", resp, "Failure responding to request") + return } return @@ -450,6 +452,7 @@ func (client AgentPoolsClient) List(ctx context.Context, resourceGroupName strin result.aplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.AgentPoolsClient", "List", resp, "Failure responding to request") + return } if result.aplr.hasNextLink() && result.aplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -514,6 +517,7 @@ func (client AgentPoolsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.AgentPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/operations.go b/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/operations.go index ce7e696cc0e7..c6c1b71d0912 100644 --- a/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/operations.go +++ b/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/registries.go b/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/registries.go index 5799c82deb51..3460ea9a9fd4 100644 --- a/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/registries.go +++ b/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/registries.go @@ -84,6 +84,7 @@ func (client RegistriesClient) CheckNameAvailability(ctx context.Context, regist result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -435,6 +436,7 @@ func (client RegistriesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "Get", resp, "Failure responding to request") + return } return @@ -520,6 +522,7 @@ func (client RegistriesClient) GetBuildSourceUploadURL(ctx context.Context, reso result, err = client.GetBuildSourceUploadURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "GetBuildSourceUploadURL", resp, "Failure responding to request") + return } return @@ -686,6 +689,7 @@ func (client RegistriesClient) List(ctx context.Context) (result RegistryListRes result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -748,6 +752,7 @@ func (client RegistriesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -805,6 +810,7 @@ func (client RegistriesClient) ListByResourceGroup(ctx context.Context, resource result.rlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -868,6 +874,7 @@ func (client RegistriesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -929,6 +936,7 @@ func (client RegistriesClient) ListCredentials(ctx context.Context, resourceGrou result, err = client.ListCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListCredentials", resp, "Failure responding to request") + return } return @@ -1014,6 +1022,7 @@ func (client RegistriesClient) ListUsages(ctx context.Context, resourceGroupName result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListUsages", resp, "Failure responding to request") + return } return @@ -1101,6 +1110,7 @@ func (client RegistriesClient) RegenerateCredential(ctx context.Context, resourc result, err = client.RegenerateCredentialResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "RegenerateCredential", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/replications.go b/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/replications.go index d6ccfc5a1d84..981543d161f7 100644 --- a/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/replications.go +++ b/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/replications.go @@ -272,6 +272,7 @@ func (client ReplicationsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -359,6 +360,7 @@ func (client ReplicationsClient) List(ctx context.Context, resourceGroupName str result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -423,6 +425,7 @@ func (client ReplicationsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/runs.go b/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/runs.go index 5899fff8866e..671113ce5ae4 100644 --- a/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/runs.go +++ b/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/runs.go @@ -170,6 +170,7 @@ func (client RunsClient) Get(ctx context.Context, resourceGroupName string, regi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "Get", resp, "Failure responding to request") + return } return @@ -257,6 +258,7 @@ func (client RunsClient) GetLogSasURL(ctx context.Context, resourceGroupName str result, err = client.GetLogSasURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "GetLogSasURL", resp, "Failure responding to request") + return } return @@ -347,6 +349,7 @@ func (client RunsClient) List(ctx context.Context, resourceGroupName string, reg result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -417,6 +420,7 @@ func (client RunsClient) listNextResults(ctx context.Context, lastResults RunLis result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/scopemaps.go b/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/scopemaps.go index 3d62a4d0078c..bd537d573873 100644 --- a/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/scopemaps.go +++ b/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/scopemaps.go @@ -275,6 +275,7 @@ func (client ScopeMapsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ScopeMapsClient", "Get", resp, "Failure responding to request") + return } return @@ -362,6 +363,7 @@ func (client ScopeMapsClient) List(ctx context.Context, resourceGroupName string result.smlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ScopeMapsClient", "List", resp, "Failure responding to request") + return } if result.smlr.hasNextLink() && result.smlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -426,6 +428,7 @@ func (client ScopeMapsClient) listNextResults(ctx context.Context, lastResults S result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ScopeMapsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/taskruns.go b/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/taskruns.go index ba55b42d340e..2675d658efdd 100644 --- a/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/taskruns.go +++ b/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/taskruns.go @@ -272,6 +272,7 @@ func (client TaskRunsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TaskRunsClient", "Get", resp, "Failure responding to request") + return } return @@ -363,6 +364,7 @@ func (client TaskRunsClient) GetDetails(ctx context.Context, resourceGroupName s result, err = client.GetDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TaskRunsClient", "GetDetails", resp, "Failure responding to request") + return } return @@ -450,6 +452,7 @@ func (client TaskRunsClient) List(ctx context.Context, resourceGroupName string, result.trlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TaskRunsClient", "List", resp, "Failure responding to request") + return } if result.trlr.hasNextLink() && result.trlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -514,6 +517,7 @@ func (client TaskRunsClient) listNextResults(ctx context.Context, lastResults Ta result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TaskRunsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/tasks.go b/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/tasks.go index f574d6b06be0..f98c944655a1 100644 --- a/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/tasks.go +++ b/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/tasks.go @@ -283,6 +283,7 @@ func (client TasksClient) Get(ctx context.Context, resourceGroupName string, reg result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "Get", resp, "Failure responding to request") + return } return @@ -374,6 +375,7 @@ func (client TasksClient) GetDetails(ctx context.Context, resourceGroupName stri result, err = client.GetDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "GetDetails", resp, "Failure responding to request") + return } return @@ -461,6 +463,7 @@ func (client TasksClient) List(ctx context.Context, resourceGroupName string, re result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -525,6 +528,7 @@ func (client TasksClient) listNextResults(ctx context.Context, lastResults TaskL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/tokens.go b/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/tokens.go index c5995b49cb2a..eeb875bdaa0a 100644 --- a/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/tokens.go +++ b/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/tokens.go @@ -272,6 +272,7 @@ func (client TokensClient) Get(ctx context.Context, resourceGroupName string, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TokensClient", "Get", resp, "Failure responding to request") + return } return @@ -359,6 +360,7 @@ func (client TokensClient) List(ctx context.Context, resourceGroupName string, r result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TokensClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -423,6 +425,7 @@ func (client TokensClient) listNextResults(ctx context.Context, lastResults Toke result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TokensClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/webhooks.go b/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/webhooks.go index 882744bca627..0c5e0e9b96d6 100644 --- a/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/webhooks.go +++ b/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/webhooks.go @@ -278,6 +278,7 @@ func (client WebhooksClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +370,7 @@ func (client WebhooksClient) GetCallbackConfig(ctx context.Context, resourceGrou result, err = client.GetCallbackConfigResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "GetCallbackConfig", resp, "Failure responding to request") + return } return @@ -456,6 +458,7 @@ func (client WebhooksClient) List(ctx context.Context, resourceGroupName string, result.wlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "List", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -520,6 +523,7 @@ func (client WebhooksClient) listNextResults(ctx context.Context, lastResults We result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -587,6 +591,7 @@ func (client WebhooksClient) ListEvents(ctx context.Context, resourceGroupName s result.elr, err = client.ListEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "ListEvents", resp, "Failure responding to request") + return } if result.elr.hasNextLink() && result.elr.IsEmpty() { err = result.NextWithContext(ctx) @@ -652,6 +657,7 @@ func (client WebhooksClient) listEventsNextResults(ctx context.Context, lastResu result, err = client.ListEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "listEventsNextResults", resp, "Failure responding to next results request") + return } return } @@ -718,6 +724,7 @@ func (client WebhooksClient) Ping(ctx context.Context, resourceGroupName string, result, err = client.PingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "Ping", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/agentpools.go b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/agentpools.go index 185677917296..475186599912 100644 --- a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/agentpools.go +++ b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/agentpools.go @@ -272,6 +272,7 @@ func (client AgentPoolsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.AgentPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -363,6 +364,7 @@ func (client AgentPoolsClient) GetQueueStatus(ctx context.Context, resourceGroup result, err = client.GetQueueStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.AgentPoolsClient", "GetQueueStatus", resp, "Failure responding to request") + return } return @@ -450,6 +452,7 @@ func (client AgentPoolsClient) List(ctx context.Context, resourceGroupName strin result.aplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.AgentPoolsClient", "List", resp, "Failure responding to request") + return } if result.aplr.hasNextLink() && result.aplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -514,6 +517,7 @@ func (client AgentPoolsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.AgentPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/exportpipelines.go b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/exportpipelines.go index 231968ced61b..32b1ac37efa6 100644 --- a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/exportpipelines.go +++ b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/exportpipelines.go @@ -277,6 +277,7 @@ func (client ExportPipelinesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ExportPipelinesClient", "Get", resp, "Failure responding to request") + return } return @@ -364,6 +365,7 @@ func (client ExportPipelinesClient) List(ctx context.Context, resourceGroupName result.eplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ExportPipelinesClient", "List", resp, "Failure responding to request") + return } if result.eplr.hasNextLink() && result.eplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -428,6 +430,7 @@ func (client ExportPipelinesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ExportPipelinesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/importpipelines.go b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/importpipelines.go index 345b7489df8e..d1ad23470af2 100644 --- a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/importpipelines.go +++ b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/importpipelines.go @@ -277,6 +277,7 @@ func (client ImportPipelinesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ImportPipelinesClient", "Get", resp, "Failure responding to request") + return } return @@ -364,6 +365,7 @@ func (client ImportPipelinesClient) List(ctx context.Context, resourceGroupName result.iplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ImportPipelinesClient", "List", resp, "Failure responding to request") + return } if result.iplr.hasNextLink() && result.iplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -428,6 +430,7 @@ func (client ImportPipelinesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ImportPipelinesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/operations.go b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/operations.go index 5f1111cc3a75..1d3477696713 100644 --- a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/operations.go +++ b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/pipelineruns.go b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/pipelineruns.go index d8f929b74452..35d58c8c3c72 100644 --- a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/pipelineruns.go +++ b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/pipelineruns.go @@ -281,6 +281,7 @@ func (client PipelineRunsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.PipelineRunsClient", "Get", resp, "Failure responding to request") + return } return @@ -368,6 +369,7 @@ func (client PipelineRunsClient) List(ctx context.Context, resourceGroupName str result.prlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.PipelineRunsClient", "List", resp, "Failure responding to request") + return } if result.prlr.hasNextLink() && result.prlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -432,6 +434,7 @@ func (client PipelineRunsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.PipelineRunsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/privateendpointconnections.go b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/privateendpointconnections.go index 0fee3cb3a940..4d4e63a90714 100644 --- a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/privateendpointconnections.go +++ b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/privateendpointconnections.go @@ -262,6 +262,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +350,7 @@ func (client PrivateEndpointConnectionsClient) List(ctx context.Context, resourc result.peclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.PrivateEndpointConnectionsClient", "List", resp, "Failure responding to request") + return } if result.peclr.hasNextLink() && result.peclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -413,6 +415,7 @@ func (client PrivateEndpointConnectionsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.PrivateEndpointConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/registries.go b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/registries.go index 790845d26785..bac9d7d80999 100644 --- a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/registries.go +++ b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/registries.go @@ -84,6 +84,7 @@ func (client RegistriesClient) CheckNameAvailability(ctx context.Context, regist result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -435,6 +436,7 @@ func (client RegistriesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "Get", resp, "Failure responding to request") + return } return @@ -520,6 +522,7 @@ func (client RegistriesClient) GetBuildSourceUploadURL(ctx context.Context, reso result, err = client.GetBuildSourceUploadURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "GetBuildSourceUploadURL", resp, "Failure responding to request") + return } return @@ -686,6 +689,7 @@ func (client RegistriesClient) List(ctx context.Context) (result RegistryListRes result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -748,6 +752,7 @@ func (client RegistriesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -805,6 +810,7 @@ func (client RegistriesClient) ListByResourceGroup(ctx context.Context, resource result.rlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -868,6 +874,7 @@ func (client RegistriesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -929,6 +936,7 @@ func (client RegistriesClient) ListCredentials(ctx context.Context, resourceGrou result, err = client.ListCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListCredentials", resp, "Failure responding to request") + return } return @@ -1015,6 +1023,7 @@ func (client RegistriesClient) ListPrivateLinkResources(ctx context.Context, res result.plrlr, err = client.ListPrivateLinkResourcesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListPrivateLinkResources", resp, "Failure responding to request") + return } if result.plrlr.hasNextLink() && result.plrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1079,6 +1088,7 @@ func (client RegistriesClient) listPrivateLinkResourcesNextResults(ctx context.C result, err = client.ListPrivateLinkResourcesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "listPrivateLinkResourcesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1140,6 +1150,7 @@ func (client RegistriesClient) ListUsages(ctx context.Context, resourceGroupName result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListUsages", resp, "Failure responding to request") + return } return @@ -1227,6 +1238,7 @@ func (client RegistriesClient) RegenerateCredential(ctx context.Context, resourc result, err = client.RegenerateCredentialResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "RegenerateCredential", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/replications.go b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/replications.go index e038b5ba243a..51ce60cfe5ee 100644 --- a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/replications.go +++ b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/replications.go @@ -272,6 +272,7 @@ func (client ReplicationsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -359,6 +360,7 @@ func (client ReplicationsClient) List(ctx context.Context, resourceGroupName str result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -423,6 +425,7 @@ func (client ReplicationsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/runs.go b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/runs.go index 5899fff8866e..671113ce5ae4 100644 --- a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/runs.go +++ b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/runs.go @@ -170,6 +170,7 @@ func (client RunsClient) Get(ctx context.Context, resourceGroupName string, regi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "Get", resp, "Failure responding to request") + return } return @@ -257,6 +258,7 @@ func (client RunsClient) GetLogSasURL(ctx context.Context, resourceGroupName str result, err = client.GetLogSasURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "GetLogSasURL", resp, "Failure responding to request") + return } return @@ -347,6 +349,7 @@ func (client RunsClient) List(ctx context.Context, resourceGroupName string, reg result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -417,6 +420,7 @@ func (client RunsClient) listNextResults(ctx context.Context, lastResults RunLis result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/scopemaps.go b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/scopemaps.go index 3d62a4d0078c..bd537d573873 100644 --- a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/scopemaps.go +++ b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/scopemaps.go @@ -275,6 +275,7 @@ func (client ScopeMapsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ScopeMapsClient", "Get", resp, "Failure responding to request") + return } return @@ -362,6 +363,7 @@ func (client ScopeMapsClient) List(ctx context.Context, resourceGroupName string result.smlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ScopeMapsClient", "List", resp, "Failure responding to request") + return } if result.smlr.hasNextLink() && result.smlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -426,6 +428,7 @@ func (client ScopeMapsClient) listNextResults(ctx context.Context, lastResults S result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ScopeMapsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/taskruns.go b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/taskruns.go index ba55b42d340e..2675d658efdd 100644 --- a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/taskruns.go +++ b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/taskruns.go @@ -272,6 +272,7 @@ func (client TaskRunsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TaskRunsClient", "Get", resp, "Failure responding to request") + return } return @@ -363,6 +364,7 @@ func (client TaskRunsClient) GetDetails(ctx context.Context, resourceGroupName s result, err = client.GetDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TaskRunsClient", "GetDetails", resp, "Failure responding to request") + return } return @@ -450,6 +452,7 @@ func (client TaskRunsClient) List(ctx context.Context, resourceGroupName string, result.trlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TaskRunsClient", "List", resp, "Failure responding to request") + return } if result.trlr.hasNextLink() && result.trlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -514,6 +517,7 @@ func (client TaskRunsClient) listNextResults(ctx context.Context, lastResults Ta result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TaskRunsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/tasks.go b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/tasks.go index f574d6b06be0..f98c944655a1 100644 --- a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/tasks.go +++ b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/tasks.go @@ -283,6 +283,7 @@ func (client TasksClient) Get(ctx context.Context, resourceGroupName string, reg result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "Get", resp, "Failure responding to request") + return } return @@ -374,6 +375,7 @@ func (client TasksClient) GetDetails(ctx context.Context, resourceGroupName stri result, err = client.GetDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "GetDetails", resp, "Failure responding to request") + return } return @@ -461,6 +463,7 @@ func (client TasksClient) List(ctx context.Context, resourceGroupName string, re result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -525,6 +528,7 @@ func (client TasksClient) listNextResults(ctx context.Context, lastResults TaskL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/tokens.go b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/tokens.go index c5995b49cb2a..eeb875bdaa0a 100644 --- a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/tokens.go +++ b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/tokens.go @@ -272,6 +272,7 @@ func (client TokensClient) Get(ctx context.Context, resourceGroupName string, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TokensClient", "Get", resp, "Failure responding to request") + return } return @@ -359,6 +360,7 @@ func (client TokensClient) List(ctx context.Context, resourceGroupName string, r result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TokensClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -423,6 +425,7 @@ func (client TokensClient) listNextResults(ctx context.Context, lastResults Toke result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TokensClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/webhooks.go b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/webhooks.go index 07847bd57704..415a26583c7a 100644 --- a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/webhooks.go +++ b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/webhooks.go @@ -278,6 +278,7 @@ func (client WebhooksClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +370,7 @@ func (client WebhooksClient) GetCallbackConfig(ctx context.Context, resourceGrou result, err = client.GetCallbackConfigResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "GetCallbackConfig", resp, "Failure responding to request") + return } return @@ -456,6 +458,7 @@ func (client WebhooksClient) List(ctx context.Context, resourceGroupName string, result.wlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "List", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -520,6 +523,7 @@ func (client WebhooksClient) listNextResults(ctx context.Context, lastResults We result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -587,6 +591,7 @@ func (client WebhooksClient) ListEvents(ctx context.Context, resourceGroupName s result.elr, err = client.ListEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "ListEvents", resp, "Failure responding to request") + return } if result.elr.hasNextLink() && result.elr.IsEmpty() { err = result.NextWithContext(ctx) @@ -652,6 +657,7 @@ func (client WebhooksClient) listEventsNextResults(ctx context.Context, lastResu result, err = client.ListEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "listEventsNextResults", resp, "Failure responding to next results request") + return } return } @@ -718,6 +724,7 @@ func (client WebhooksClient) Ping(ctx context.Context, resourceGroupName string, result, err = client.PingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "Ping", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/agentpools.go b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/agentpools.go index 185677917296..475186599912 100644 --- a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/agentpools.go +++ b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/agentpools.go @@ -272,6 +272,7 @@ func (client AgentPoolsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.AgentPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -363,6 +364,7 @@ func (client AgentPoolsClient) GetQueueStatus(ctx context.Context, resourceGroup result, err = client.GetQueueStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.AgentPoolsClient", "GetQueueStatus", resp, "Failure responding to request") + return } return @@ -450,6 +452,7 @@ func (client AgentPoolsClient) List(ctx context.Context, resourceGroupName strin result.aplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.AgentPoolsClient", "List", resp, "Failure responding to request") + return } if result.aplr.hasNextLink() && result.aplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -514,6 +517,7 @@ func (client AgentPoolsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.AgentPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/connectedregistries.go b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/connectedregistries.go index d3e9f18ab750..c09cd255921f 100644 --- a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/connectedregistries.go +++ b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/connectedregistries.go @@ -372,6 +372,7 @@ func (client ConnectedRegistriesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ConnectedRegistriesClient", "Get", resp, "Failure responding to request") + return } return @@ -462,6 +463,7 @@ func (client ConnectedRegistriesClient) List(ctx context.Context, resourceGroupN result.crlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ConnectedRegistriesClient", "List", resp, "Failure responding to request") + return } if result.crlr.hasNextLink() && result.crlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -529,6 +531,7 @@ func (client ConnectedRegistriesClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ConnectedRegistriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/exportpipelines.go b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/exportpipelines.go index 7696c1f066e8..94f9195ca2ee 100644 --- a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/exportpipelines.go +++ b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/exportpipelines.go @@ -277,6 +277,7 @@ func (client ExportPipelinesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ExportPipelinesClient", "Get", resp, "Failure responding to request") + return } return @@ -364,6 +365,7 @@ func (client ExportPipelinesClient) List(ctx context.Context, resourceGroupName result.eplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ExportPipelinesClient", "List", resp, "Failure responding to request") + return } if result.eplr.hasNextLink() && result.eplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -428,6 +430,7 @@ func (client ExportPipelinesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ExportPipelinesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/importpipelines.go b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/importpipelines.go index 25f8ca2ae332..ffb5c436681a 100644 --- a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/importpipelines.go +++ b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/importpipelines.go @@ -277,6 +277,7 @@ func (client ImportPipelinesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ImportPipelinesClient", "Get", resp, "Failure responding to request") + return } return @@ -364,6 +365,7 @@ func (client ImportPipelinesClient) List(ctx context.Context, resourceGroupName result.iplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ImportPipelinesClient", "List", resp, "Failure responding to request") + return } if result.iplr.hasNextLink() && result.iplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -428,6 +430,7 @@ func (client ImportPipelinesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ImportPipelinesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/operations.go b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/operations.go index 1fceaaf2f8cb..343adcbb883f 100644 --- a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/operations.go +++ b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/pipelineruns.go b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/pipelineruns.go index 95fc2acbc332..6f4c6dd19287 100644 --- a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/pipelineruns.go +++ b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/pipelineruns.go @@ -281,6 +281,7 @@ func (client PipelineRunsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.PipelineRunsClient", "Get", resp, "Failure responding to request") + return } return @@ -368,6 +369,7 @@ func (client PipelineRunsClient) List(ctx context.Context, resourceGroupName str result.prlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.PipelineRunsClient", "List", resp, "Failure responding to request") + return } if result.prlr.hasNextLink() && result.prlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -432,6 +434,7 @@ func (client PipelineRunsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.PipelineRunsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/privateendpointconnections.go b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/privateendpointconnections.go index 4b51ddd991ef..82cfce10ac7a 100644 --- a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/privateendpointconnections.go +++ b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/privateendpointconnections.go @@ -262,6 +262,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +350,7 @@ func (client PrivateEndpointConnectionsClient) List(ctx context.Context, resourc result.peclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.PrivateEndpointConnectionsClient", "List", resp, "Failure responding to request") + return } if result.peclr.hasNextLink() && result.peclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -413,6 +415,7 @@ func (client PrivateEndpointConnectionsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.PrivateEndpointConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/registries.go b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/registries.go index b407d5c3f2cd..fae873d8fc91 100644 --- a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/registries.go +++ b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/registries.go @@ -84,6 +84,7 @@ func (client RegistriesClient) CheckNameAvailability(ctx context.Context, regist result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -435,6 +436,7 @@ func (client RegistriesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "Get", resp, "Failure responding to request") + return } return @@ -520,6 +522,7 @@ func (client RegistriesClient) GetBuildSourceUploadURL(ctx context.Context, reso result, err = client.GetBuildSourceUploadURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "GetBuildSourceUploadURL", resp, "Failure responding to request") + return } return @@ -686,6 +689,7 @@ func (client RegistriesClient) List(ctx context.Context) (result RegistryListRes result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -748,6 +752,7 @@ func (client RegistriesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -805,6 +810,7 @@ func (client RegistriesClient) ListByResourceGroup(ctx context.Context, resource result.rlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -868,6 +874,7 @@ func (client RegistriesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -929,6 +936,7 @@ func (client RegistriesClient) ListCredentials(ctx context.Context, resourceGrou result, err = client.ListCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListCredentials", resp, "Failure responding to request") + return } return @@ -1015,6 +1023,7 @@ func (client RegistriesClient) ListPrivateLinkResources(ctx context.Context, res result.plrlr, err = client.ListPrivateLinkResourcesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListPrivateLinkResources", resp, "Failure responding to request") + return } if result.plrlr.hasNextLink() && result.plrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1079,6 +1088,7 @@ func (client RegistriesClient) listPrivateLinkResourcesNextResults(ctx context.C result, err = client.ListPrivateLinkResourcesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "listPrivateLinkResourcesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1140,6 +1150,7 @@ func (client RegistriesClient) ListUsages(ctx context.Context, resourceGroupName result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListUsages", resp, "Failure responding to request") + return } return @@ -1227,6 +1238,7 @@ func (client RegistriesClient) RegenerateCredential(ctx context.Context, resourc result, err = client.RegenerateCredentialResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "RegenerateCredential", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/replications.go b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/replications.go index c5ac2a328647..82b717f12fe3 100644 --- a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/replications.go +++ b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/replications.go @@ -272,6 +272,7 @@ func (client ReplicationsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -359,6 +360,7 @@ func (client ReplicationsClient) List(ctx context.Context, resourceGroupName str result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -423,6 +425,7 @@ func (client ReplicationsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/runs.go b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/runs.go index 5899fff8866e..671113ce5ae4 100644 --- a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/runs.go +++ b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/runs.go @@ -170,6 +170,7 @@ func (client RunsClient) Get(ctx context.Context, resourceGroupName string, regi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "Get", resp, "Failure responding to request") + return } return @@ -257,6 +258,7 @@ func (client RunsClient) GetLogSasURL(ctx context.Context, resourceGroupName str result, err = client.GetLogSasURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "GetLogSasURL", resp, "Failure responding to request") + return } return @@ -347,6 +349,7 @@ func (client RunsClient) List(ctx context.Context, resourceGroupName string, reg result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -417,6 +420,7 @@ func (client RunsClient) listNextResults(ctx context.Context, lastResults RunLis result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/scopemaps.go b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/scopemaps.go index 3c5d11fecf65..acfaca90165b 100644 --- a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/scopemaps.go +++ b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/scopemaps.go @@ -275,6 +275,7 @@ func (client ScopeMapsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ScopeMapsClient", "Get", resp, "Failure responding to request") + return } return @@ -362,6 +363,7 @@ func (client ScopeMapsClient) List(ctx context.Context, resourceGroupName string result.smlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ScopeMapsClient", "List", resp, "Failure responding to request") + return } if result.smlr.hasNextLink() && result.smlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -426,6 +428,7 @@ func (client ScopeMapsClient) listNextResults(ctx context.Context, lastResults S result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ScopeMapsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/taskruns.go b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/taskruns.go index ba55b42d340e..2675d658efdd 100644 --- a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/taskruns.go +++ b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/taskruns.go @@ -272,6 +272,7 @@ func (client TaskRunsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TaskRunsClient", "Get", resp, "Failure responding to request") + return } return @@ -363,6 +364,7 @@ func (client TaskRunsClient) GetDetails(ctx context.Context, resourceGroupName s result, err = client.GetDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TaskRunsClient", "GetDetails", resp, "Failure responding to request") + return } return @@ -450,6 +452,7 @@ func (client TaskRunsClient) List(ctx context.Context, resourceGroupName string, result.trlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TaskRunsClient", "List", resp, "Failure responding to request") + return } if result.trlr.hasNextLink() && result.trlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -514,6 +517,7 @@ func (client TaskRunsClient) listNextResults(ctx context.Context, lastResults Ta result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TaskRunsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/tasks.go b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/tasks.go index f574d6b06be0..f98c944655a1 100644 --- a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/tasks.go +++ b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/tasks.go @@ -283,6 +283,7 @@ func (client TasksClient) Get(ctx context.Context, resourceGroupName string, reg result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "Get", resp, "Failure responding to request") + return } return @@ -374,6 +375,7 @@ func (client TasksClient) GetDetails(ctx context.Context, resourceGroupName stri result, err = client.GetDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "GetDetails", resp, "Failure responding to request") + return } return @@ -461,6 +463,7 @@ func (client TasksClient) List(ctx context.Context, resourceGroupName string, re result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -525,6 +528,7 @@ func (client TasksClient) listNextResults(ctx context.Context, lastResults TaskL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/tokens.go b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/tokens.go index 9b3fc5adf8e7..ec37915c2df3 100644 --- a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/tokens.go +++ b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/tokens.go @@ -272,6 +272,7 @@ func (client TokensClient) Get(ctx context.Context, resourceGroupName string, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TokensClient", "Get", resp, "Failure responding to request") + return } return @@ -359,6 +360,7 @@ func (client TokensClient) List(ctx context.Context, resourceGroupName string, r result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TokensClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -423,6 +425,7 @@ func (client TokensClient) listNextResults(ctx context.Context, lastResults Toke result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TokensClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/webhooks.go b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/webhooks.go index d6e85697b735..e4af538cb431 100644 --- a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/webhooks.go +++ b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/webhooks.go @@ -278,6 +278,7 @@ func (client WebhooksClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +370,7 @@ func (client WebhooksClient) GetCallbackConfig(ctx context.Context, resourceGrou result, err = client.GetCallbackConfigResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "GetCallbackConfig", resp, "Failure responding to request") + return } return @@ -456,6 +458,7 @@ func (client WebhooksClient) List(ctx context.Context, resourceGroupName string, result.wlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "List", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -520,6 +523,7 @@ func (client WebhooksClient) listNextResults(ctx context.Context, lastResults We result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -587,6 +591,7 @@ func (client WebhooksClient) ListEvents(ctx context.Context, resourceGroupName s result.elr, err = client.ListEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "ListEvents", resp, "Failure responding to request") + return } if result.elr.hasNextLink() && result.elr.IsEmpty() { err = result.NextWithContext(ctx) @@ -652,6 +657,7 @@ func (client WebhooksClient) listEventsNextResults(ctx context.Context, lastResu result, err = client.ListEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "listEventsNextResults", resp, "Failure responding to next results request") + return } return } @@ -718,6 +724,7 @@ func (client WebhooksClient) Ping(ctx context.Context, resourceGroupName string, result, err = client.PingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "Ping", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerregistry/runtime/2019-07/containerregistry/client.go b/services/preview/containerregistry/runtime/2019-07/containerregistry/client.go index 4e7546fd715e..698a504c71e0 100644 --- a/services/preview/containerregistry/runtime/2019-07/containerregistry/client.go +++ b/services/preview/containerregistry/runtime/2019-07/containerregistry/client.go @@ -79,6 +79,7 @@ func (client BaseClient) CreateManifest(ctx context.Context, name string, refere result, err = client.CreateManifestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BaseClient", "CreateManifest", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client BaseClient) DeleteAcrRepository(ctx context.Context, name string) ( result, err = client.DeleteAcrRepositoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BaseClient", "DeleteAcrRepository", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client BaseClient) DeleteAcrTag(ctx context.Context, name string, referenc result, err = client.DeleteAcrTagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BaseClient", "DeleteAcrTag", resp, "Failure responding to request") + return } return @@ -295,6 +298,7 @@ func (client BaseClient) DeleteManifest(ctx context.Context, name string, refere result, err = client.DeleteManifestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BaseClient", "DeleteManifest", resp, "Failure responding to request") + return } return @@ -368,6 +372,7 @@ func (client BaseClient) GetAcrAccessToken(ctx context.Context, service string, result, err = client.GetAcrAccessTokenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BaseClient", "GetAcrAccessToken", resp, "Failure responding to request") + return } return @@ -444,6 +449,7 @@ func (client BaseClient) GetAcrAccessTokenFromLogin(ctx context.Context, service result, err = client.GetAcrAccessTokenFromLoginResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BaseClient", "GetAcrAccessTokenFromLogin", resp, "Failure responding to request") + return } return @@ -517,6 +523,7 @@ func (client BaseClient) GetAcrManifestAttributes(ctx context.Context, name stri result, err = client.GetAcrManifestAttributesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BaseClient", "GetAcrManifestAttributes", resp, "Failure responding to request") + return } return @@ -592,6 +599,7 @@ func (client BaseClient) GetAcrManifests(ctx context.Context, name string, last result, err = client.GetAcrManifestsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BaseClient", "GetAcrManifests", resp, "Failure responding to request") + return } return @@ -678,6 +686,7 @@ func (client BaseClient) GetAcrRefreshTokenFromExchange(ctx context.Context, gra result, err = client.GetAcrRefreshTokenFromExchangeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BaseClient", "GetAcrRefreshTokenFromExchange", resp, "Failure responding to request") + return } return @@ -761,6 +770,7 @@ func (client BaseClient) GetAcrRepositories(ctx context.Context, last string, n result, err = client.GetAcrRepositoriesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BaseClient", "GetAcrRepositories", resp, "Failure responding to request") + return } return @@ -836,6 +846,7 @@ func (client BaseClient) GetAcrRepositoryAttributes(ctx context.Context, name st result, err = client.GetAcrRepositoryAttributesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BaseClient", "GetAcrRepositoryAttributes", resp, "Failure responding to request") + return } return @@ -907,6 +918,7 @@ func (client BaseClient) GetAcrTagAttributes(ctx context.Context, name string, r result, err = client.GetAcrTagAttributesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BaseClient", "GetAcrTagAttributes", resp, "Failure responding to request") + return } return @@ -983,6 +995,7 @@ func (client BaseClient) GetAcrTags(ctx context.Context, name string, last strin result, err = client.GetAcrTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BaseClient", "GetAcrTags", resp, "Failure responding to request") + return } return @@ -1066,6 +1079,7 @@ func (client BaseClient) GetDockerRegistryV2Support(ctx context.Context) (result result, err = client.GetDockerRegistryV2SupportResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BaseClient", "GetDockerRegistryV2Support", resp, "Failure responding to request") + return } return @@ -1135,6 +1149,7 @@ func (client BaseClient) GetManifest(ctx context.Context, name string, reference result, err = client.GetManifestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BaseClient", "GetManifest", resp, "Failure responding to request") + return } return @@ -1212,6 +1227,7 @@ func (client BaseClient) GetRepositories(ctx context.Context, last string, n *in result, err = client.GetRepositoriesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BaseClient", "GetRepositories", resp, "Failure responding to request") + return } return @@ -1287,6 +1303,7 @@ func (client BaseClient) GetTagList(ctx context.Context, name string) (result Re result, err = client.GetTagListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BaseClient", "GetTagList", resp, "Failure responding to request") + return } return @@ -1359,6 +1376,7 @@ func (client BaseClient) UpdateAcrManifestAttributes(ctx context.Context, name s result, err = client.UpdateAcrManifestAttributesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BaseClient", "UpdateAcrManifestAttributes", resp, "Failure responding to request") + return } return @@ -1436,6 +1454,7 @@ func (client BaseClient) UpdateAcrRepositoryAttributes(ctx context.Context, name result, err = client.UpdateAcrRepositoryAttributesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BaseClient", "UpdateAcrRepositoryAttributes", resp, "Failure responding to request") + return } return @@ -1512,6 +1531,7 @@ func (client BaseClient) UpdateAcrTagAttributes(ctx context.Context, name string result, err = client.UpdateAcrTagAttributesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BaseClient", "UpdateAcrTagAttributes", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/accesstokens.go b/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/accesstokens.go index 833d2c503485..f250419517a4 100644 --- a/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/accesstokens.go +++ b/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/accesstokens.go @@ -68,6 +68,7 @@ func (client AccessTokensClient) Get(ctx context.Context, service string, scope result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.AccessTokensClient", "Get", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client AccessTokensClient) GetFromLogin(ctx context.Context, service strin result, err = client.GetFromLoginResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.AccessTokensClient", "GetFromLogin", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/blob.go b/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/blob.go index 2905576c69dd..99c55b196b87 100644 --- a/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/blob.go +++ b/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/blob.go @@ -68,6 +68,7 @@ func (client BlobClient) CancelUpload(ctx context.Context, location string) (res result, err = client.CancelUploadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BlobClient", "CancelUpload", resp, "Failure responding to request") + return } return @@ -138,6 +139,7 @@ func (client BlobClient) Check(ctx context.Context, name string, digest string) result, err = client.CheckResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BlobClient", "Check", resp, "Failure responding to request") + return } return @@ -210,6 +212,7 @@ func (client BlobClient) CheckChunk(ctx context.Context, name string, digest str result, err = client.CheckChunkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BlobClient", "CheckChunk", resp, "Failure responding to request") + return } return @@ -282,6 +285,7 @@ func (client BlobClient) Delete(ctx context.Context, name string, digest string) result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BlobClient", "Delete", resp, "Failure responding to request") + return } return @@ -356,6 +360,7 @@ func (client BlobClient) EndUpload(ctx context.Context, digest string, location result, err = client.EndUploadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BlobClient", "EndUpload", resp, "Failure responding to request") + return } return @@ -436,6 +441,7 @@ func (client BlobClient) Get(ctx context.Context, name string, digest string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BlobClient", "Get", resp, "Failure responding to request") + return } return @@ -510,6 +516,7 @@ func (client BlobClient) GetChunk(ctx context.Context, name string, digest strin result, err = client.GetChunkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BlobClient", "GetChunk", resp, "Failure responding to request") + return } return @@ -583,6 +590,7 @@ func (client BlobClient) GetStatus(ctx context.Context, location string) (result result, err = client.GetStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BlobClient", "GetStatus", resp, "Failure responding to request") + return } return @@ -654,6 +662,7 @@ func (client BlobClient) Mount(ctx context.Context, name string, from string, mo result, err = client.MountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BlobClient", "Mount", resp, "Failure responding to request") + return } return @@ -729,6 +738,7 @@ func (client BlobClient) StartUpload(ctx context.Context, name string) (result a result, err = client.StartUploadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BlobClient", "StartUpload", resp, "Failure responding to request") + return } return @@ -800,6 +810,7 @@ func (client BlobClient) Upload(ctx context.Context, value io.ReadCloser, locati result, err = client.UploadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.BlobClient", "Upload", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/manifests.go b/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/manifests.go index e6c023fa78cb..95a64cbb10bd 100644 --- a/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/manifests.go +++ b/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/manifests.go @@ -67,6 +67,7 @@ func (client ManifestsClient) Create(ctx context.Context, name string, reference result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ManifestsClient", "Create", resp, "Failure responding to request") + return } return @@ -142,6 +143,7 @@ func (client ManifestsClient) Delete(ctx context.Context, name string, reference result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ManifestsClient", "Delete", resp, "Failure responding to request") + return } return @@ -215,6 +217,7 @@ func (client ManifestsClient) Get(ctx context.Context, name string, reference st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ManifestsClient", "Get", resp, "Failure responding to request") + return } return @@ -291,6 +294,7 @@ func (client ManifestsClient) GetAttributes(ctx context.Context, name string, re result, err = client.GetAttributesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ManifestsClient", "GetAttributes", resp, "Failure responding to request") + return } return @@ -366,6 +370,7 @@ func (client ManifestsClient) GetList(ctx context.Context, name string, last str result, err = client.GetListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ManifestsClient", "GetList", resp, "Failure responding to request") + return } return @@ -450,6 +455,7 @@ func (client ManifestsClient) UpdateAttributes(ctx context.Context, name string, result, err = client.UpdateAttributesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ManifestsClient", "UpdateAttributes", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/refreshtokens.go b/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/refreshtokens.go index c1dab3b259ea..1502978c6fd1 100644 --- a/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/refreshtokens.go +++ b/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/refreshtokens.go @@ -69,6 +69,7 @@ func (client RefreshTokensClient) GetFromExchange(ctx context.Context, grantType result, err = client.GetFromExchangeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RefreshTokensClient", "GetFromExchange", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/repository.go b/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/repository.go index b0a856d5cb6a..a3014d5a7349 100644 --- a/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/repository.go +++ b/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/repository.go @@ -65,6 +65,7 @@ func (client RepositoryClient) Delete(ctx context.Context, name string) (result result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RepositoryClient", "Delete", resp, "Failure responding to request") + return } return @@ -135,6 +136,7 @@ func (client RepositoryClient) GetAttributes(ctx context.Context, name string) ( result, err = client.GetAttributesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RepositoryClient", "GetAttributes", resp, "Failure responding to request") + return } return @@ -207,6 +209,7 @@ func (client RepositoryClient) GetList(ctx context.Context, last string, n *int3 result, err = client.GetListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RepositoryClient", "GetList", resp, "Failure responding to request") + return } return @@ -283,6 +286,7 @@ func (client RepositoryClient) UpdateAttributes(ctx context.Context, name string result, err = client.UpdateAttributesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RepositoryClient", "UpdateAttributes", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/tag.go b/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/tag.go index 5690c1ad9c99..3c4a4cfbe0eb 100644 --- a/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/tag.go +++ b/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/tag.go @@ -66,6 +66,7 @@ func (client TagClient) Delete(ctx context.Context, name string, reference strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TagClient", "Delete", resp, "Failure responding to request") + return } return @@ -137,6 +138,7 @@ func (client TagClient) GetAttributes(ctx context.Context, name string, referenc result, err = client.GetAttributesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TagClient", "GetAttributes", resp, "Failure responding to request") + return } return @@ -213,6 +215,7 @@ func (client TagClient) GetList(ctx context.Context, name string, last string, n result, err = client.GetListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TagClient", "GetList", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client TagClient) UpdateAttributes(ctx context.Context, name string, refer result, err = client.UpdateAttributesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.TagClient", "UpdateAttributes", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/v2support.go b/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/v2support.go index 56543f63049f..e9c0a08325be 100644 --- a/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/v2support.go +++ b/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/v2support.go @@ -63,6 +63,7 @@ func (client V2SupportClient) Check(ctx context.Context) (result autorest.Respon result, err = client.CheckResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.V2SupportClient", "Check", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerservice/mgmt/2015-11-01-preview/containerservice/containerservice.go b/services/preview/containerservice/mgmt/2015-11-01-preview/containerservice/containerservice.go index be2cf5e4ea9d..1e72a294aa3a 100644 --- a/services/preview/containerservice/mgmt/2015-11-01-preview/containerservice/containerservice.go +++ b/services/preview/containerservice/mgmt/2015-11-01-preview/containerservice/containerservice.go @@ -243,6 +243,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, containe result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.Client", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/containerservices.go b/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/containerservices.go index 7206a407f692..4fc0b123423c 100644 --- a/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/containerservices.go +++ b/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/containerservices.go @@ -266,6 +266,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result ListResu result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +404,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -570,6 +575,7 @@ func (client ContainerServicesClient) ListOrchestrators(ctx context.Context, loc result, err = client.ListOrchestratorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/managedclusters.go b/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/managedclusters.go index 32913f5515e1..3017b25afd0b 100644 --- a/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/managedclusters.go +++ b/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/managedclusters.go @@ -269,6 +269,7 @@ func (client ManagedClustersClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -352,6 +353,7 @@ func (client ManagedClustersClient) GetAccessProfile(ctx context.Context, resour result, err = client.GetAccessProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure responding to request") + return } return @@ -435,6 +437,7 @@ func (client ManagedClustersClient) GetUpgradeProfile(ctx context.Context, resou result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -509,6 +512,7 @@ func (client ManagedClustersClient) List(ctx context.Context) (result ManagedClu result.mclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -571,6 +575,7 @@ func (client ManagedClustersClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -629,6 +634,7 @@ func (client ManagedClustersClient) ListByResourceGroup(ctx context.Context, res result.mclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -692,6 +698,7 @@ func (client ManagedClustersClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +757,7 @@ func (client ManagedClustersClient) ListClusterAdminCredentials(ctx context.Cont result, err = client.ListClusterAdminCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", resp, "Failure responding to request") + return } return @@ -832,6 +840,7 @@ func (client ManagedClustersClient) ListClusterUserCredentials(ctx context.Conte result, err = client.ListClusterUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/openshiftmanagedclusters.go b/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/openshiftmanagedclusters.go index 0c31b38512c3..802cf7c73d69 100644 --- a/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/openshiftmanagedclusters.go +++ b/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/openshiftmanagedclusters.go @@ -251,6 +251,7 @@ func (client OpenShiftManagedClustersClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client OpenShiftManagedClustersClient) List(ctx context.Context) (result O result.osmclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +389,7 @@ func (client OpenShiftManagedClustersClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +448,7 @@ func (client OpenShiftManagedClustersClient) ListByResourceGroup(ctx context.Con result.osmclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -508,6 +512,7 @@ func (client OpenShiftManagedClustersClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/operations.go b/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/operations.go index dd424b6f0df3..701b211e533e 100644 --- a/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/operations.go +++ b/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/containerservices.go b/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/containerservices.go index 7206a407f692..4fc0b123423c 100644 --- a/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/containerservices.go +++ b/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/containerservices.go @@ -266,6 +266,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result ListResu result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +404,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -570,6 +575,7 @@ func (client ContainerServicesClient) ListOrchestrators(ctx context.Context, loc result, err = client.ListOrchestratorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/managedclusters.go b/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/managedclusters.go index cf3d7caa42a5..a2758e6621cc 100644 --- a/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/managedclusters.go +++ b/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/managedclusters.go @@ -269,6 +269,7 @@ func (client ManagedClustersClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -352,6 +353,7 @@ func (client ManagedClustersClient) GetAccessProfile(ctx context.Context, resour result, err = client.GetAccessProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure responding to request") + return } return @@ -435,6 +437,7 @@ func (client ManagedClustersClient) GetUpgradeProfile(ctx context.Context, resou result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -509,6 +512,7 @@ func (client ManagedClustersClient) List(ctx context.Context) (result ManagedClu result.mclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -571,6 +575,7 @@ func (client ManagedClustersClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -629,6 +634,7 @@ func (client ManagedClustersClient) ListByResourceGroup(ctx context.Context, res result.mclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -692,6 +698,7 @@ func (client ManagedClustersClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +757,7 @@ func (client ManagedClustersClient) ListClusterAdminCredentials(ctx context.Cont result, err = client.ListClusterAdminCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", resp, "Failure responding to request") + return } return @@ -832,6 +840,7 @@ func (client ManagedClustersClient) ListClusterUserCredentials(ctx context.Conte result, err = client.ListClusterUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/openshiftmanagedclusters.go b/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/openshiftmanagedclusters.go index 0c31b38512c3..802cf7c73d69 100644 --- a/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/openshiftmanagedclusters.go +++ b/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/openshiftmanagedclusters.go @@ -251,6 +251,7 @@ func (client OpenShiftManagedClustersClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client OpenShiftManagedClustersClient) List(ctx context.Context) (result O result.osmclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +389,7 @@ func (client OpenShiftManagedClustersClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +448,7 @@ func (client OpenShiftManagedClustersClient) ListByResourceGroup(ctx context.Con result.osmclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -508,6 +512,7 @@ func (client OpenShiftManagedClustersClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/operations.go b/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/operations.go index 31db60857bb6..887c13b77834 100644 --- a/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/operations.go +++ b/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/agentpools.go b/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/agentpools.go index 569c4676341b..4e19ac6afaa9 100644 --- a/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/agentpools.go +++ b/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/agentpools.go @@ -255,6 +255,7 @@ func (client AgentPoolsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -339,6 +340,7 @@ func (client AgentPoolsClient) List(ctx context.Context, resourceGroupName strin result.aplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "List", resp, "Failure responding to request") + return } if result.aplr.hasNextLink() && result.aplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -403,6 +405,7 @@ func (client AgentPoolsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/containerservices.go b/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/containerservices.go index 7206a407f692..4fc0b123423c 100644 --- a/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/containerservices.go +++ b/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/containerservices.go @@ -266,6 +266,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result ListResu result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +404,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -570,6 +575,7 @@ func (client ContainerServicesClient) ListOrchestrators(ctx context.Context, loc result, err = client.ListOrchestratorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/managedclusters.go b/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/managedclusters.go index 513d607d8ed7..947ad88ea1ce 100644 --- a/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/managedclusters.go +++ b/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/managedclusters.go @@ -269,6 +269,7 @@ func (client ManagedClustersClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -352,6 +353,7 @@ func (client ManagedClustersClient) GetAccessProfile(ctx context.Context, resour result, err = client.GetAccessProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure responding to request") + return } return @@ -435,6 +437,7 @@ func (client ManagedClustersClient) GetUpgradeProfile(ctx context.Context, resou result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -509,6 +512,7 @@ func (client ManagedClustersClient) List(ctx context.Context) (result ManagedClu result.mclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -571,6 +575,7 @@ func (client ManagedClustersClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -629,6 +634,7 @@ func (client ManagedClustersClient) ListByResourceGroup(ctx context.Context, res result.mclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -692,6 +698,7 @@ func (client ManagedClustersClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +757,7 @@ func (client ManagedClustersClient) ListClusterAdminCredentials(ctx context.Cont result, err = client.ListClusterAdminCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", resp, "Failure responding to request") + return } return @@ -832,6 +840,7 @@ func (client ManagedClustersClient) ListClusterUserCredentials(ctx context.Conte result, err = client.ListClusterUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/openshiftmanagedclusters.go b/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/openshiftmanagedclusters.go index 0c31b38512c3..802cf7c73d69 100644 --- a/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/openshiftmanagedclusters.go +++ b/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/openshiftmanagedclusters.go @@ -251,6 +251,7 @@ func (client OpenShiftManagedClustersClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client OpenShiftManagedClustersClient) List(ctx context.Context) (result O result.osmclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +389,7 @@ func (client OpenShiftManagedClustersClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +448,7 @@ func (client OpenShiftManagedClustersClient) ListByResourceGroup(ctx context.Con result.osmclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -508,6 +512,7 @@ func (client OpenShiftManagedClustersClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/operations.go b/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/operations.go index 1606a4ded452..16f2a333a4b7 100644 --- a/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/operations.go +++ b/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/agentpools.go b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/agentpools.go index 9c2009586c40..4b539bf3d6b5 100644 --- a/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/agentpools.go +++ b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/agentpools.go @@ -260,6 +260,7 @@ func (client AgentPoolsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +347,7 @@ func (client AgentPoolsClient) GetAvailableAgentPoolVersions(ctx context.Context result, err = client.GetAvailableAgentPoolVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetAvailableAgentPoolVersions", resp, "Failure responding to request") + return } return @@ -433,6 +435,7 @@ func (client AgentPoolsClient) GetUpgradeProfile(ctx context.Context, resourceGr result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -521,6 +524,7 @@ func (client AgentPoolsClient) List(ctx context.Context, resourceGroupName strin result.aplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "List", resp, "Failure responding to request") + return } if result.aplr.hasNextLink() && result.aplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -585,6 +589,7 @@ func (client AgentPoolsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/containerservices.go b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/containerservices.go index 72dc381b4e58..5fe24241da70 100644 --- a/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/containerservices.go +++ b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/containerservices.go @@ -266,6 +266,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result ListResu result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +404,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -571,6 +576,7 @@ func (client ContainerServicesClient) ListOrchestrators(ctx context.Context, loc result, err = client.ListOrchestratorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/managedclusters.go b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/managedclusters.go index 94f549fa1ae5..e546de20f74f 100644 --- a/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/managedclusters.go +++ b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/managedclusters.go @@ -291,6 +291,7 @@ func (client ManagedClustersClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -378,6 +379,7 @@ func (client ManagedClustersClient) GetAccessProfile(ctx context.Context, resour result, err = client.GetAccessProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure responding to request") + return } return @@ -465,6 +467,7 @@ func (client ManagedClustersClient) GetUpgradeProfile(ctx context.Context, resou result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -539,6 +542,7 @@ func (client ManagedClustersClient) List(ctx context.Context) (result ManagedClu result.mclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -601,6 +605,7 @@ func (client ManagedClustersClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -659,6 +664,7 @@ func (client ManagedClustersClient) ListByResourceGroup(ctx context.Context, res result.mclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -722,6 +728,7 @@ func (client ManagedClustersClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -784,6 +791,7 @@ func (client ManagedClustersClient) ListClusterAdminCredentials(ctx context.Cont result, err = client.ListClusterAdminCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", resp, "Failure responding to request") + return } return @@ -870,6 +878,7 @@ func (client ManagedClustersClient) ListClusterUserCredentials(ctx context.Conte result, err = client.ListClusterUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/openshiftmanagedclusters.go b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/openshiftmanagedclusters.go index 3b555daa2159..23d1837b1dca 100644 --- a/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/openshiftmanagedclusters.go +++ b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/openshiftmanagedclusters.go @@ -251,6 +251,7 @@ func (client OpenShiftManagedClustersClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client OpenShiftManagedClustersClient) List(ctx context.Context) (result O result.osmclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +389,7 @@ func (client OpenShiftManagedClustersClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +448,7 @@ func (client OpenShiftManagedClustersClient) ListByResourceGroup(ctx context.Con result.osmclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -508,6 +512,7 @@ func (client OpenShiftManagedClustersClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/operations.go b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/operations.go index 7b7e588ded7c..f46f10e97031 100644 --- a/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/operations.go +++ b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/agentpools.go b/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/agentpools.go index b13e276146f4..a5d9414d83e6 100644 --- a/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/agentpools.go +++ b/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/agentpools.go @@ -260,6 +260,7 @@ func (client AgentPoolsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +347,7 @@ func (client AgentPoolsClient) GetAvailableAgentPoolVersions(ctx context.Context result, err = client.GetAvailableAgentPoolVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetAvailableAgentPoolVersions", resp, "Failure responding to request") + return } return @@ -433,6 +435,7 @@ func (client AgentPoolsClient) GetUpgradeProfile(ctx context.Context, resourceGr result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -521,6 +524,7 @@ func (client AgentPoolsClient) List(ctx context.Context, resourceGroupName strin result.aplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "List", resp, "Failure responding to request") + return } if result.aplr.hasNextLink() && result.aplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -585,6 +589,7 @@ func (client AgentPoolsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/containerservices.go b/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/containerservices.go index 72dc381b4e58..5fe24241da70 100644 --- a/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/containerservices.go +++ b/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/containerservices.go @@ -266,6 +266,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client ContainerServicesClient) List(ctx context.Context) (result ListResu result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +404,7 @@ func (client ContainerServicesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -571,6 +576,7 @@ func (client ContainerServicesClient) ListOrchestrators(ctx context.Context, loc result, err = client.ListOrchestratorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/managedclusters.go b/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/managedclusters.go index 22bf0306a0e3..1ebb5ae7238f 100644 --- a/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/managedclusters.go +++ b/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/managedclusters.go @@ -299,6 +299,7 @@ func (client ManagedClustersClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -386,6 +387,7 @@ func (client ManagedClustersClient) GetAccessProfile(ctx context.Context, resour result, err = client.GetAccessProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure responding to request") + return } return @@ -473,6 +475,7 @@ func (client ManagedClustersClient) GetUpgradeProfile(ctx context.Context, resou result, err = client.GetUpgradeProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure responding to request") + return } return @@ -547,6 +550,7 @@ func (client ManagedClustersClient) List(ctx context.Context) (result ManagedClu result.mclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -609,6 +613,7 @@ func (client ManagedClustersClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -667,6 +672,7 @@ func (client ManagedClustersClient) ListByResourceGroup(ctx context.Context, res result.mclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -730,6 +736,7 @@ func (client ManagedClustersClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -792,6 +799,7 @@ func (client ManagedClustersClient) ListClusterAdminCredentials(ctx context.Cont result, err = client.ListClusterAdminCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", resp, "Failure responding to request") + return } return @@ -878,6 +886,7 @@ func (client ManagedClustersClient) ListClusterMonitoringUserCredentials(ctx con result, err = client.ListClusterMonitoringUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterMonitoringUserCredentials", resp, "Failure responding to request") + return } return @@ -964,6 +973,7 @@ func (client ManagedClustersClient) ListClusterUserCredentials(ctx context.Conte result, err = client.ListClusterUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", resp, "Failure responding to request") + return } return diff --git a/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/openshiftmanagedclusters.go b/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/openshiftmanagedclusters.go index 1c2802402066..1df09b54d55d 100644 --- a/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/openshiftmanagedclusters.go +++ b/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/openshiftmanagedclusters.go @@ -251,6 +251,7 @@ func (client OpenShiftManagedClustersClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client OpenShiftManagedClustersClient) List(ctx context.Context) (result O result.osmclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "List", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +389,7 @@ func (client OpenShiftManagedClustersClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +448,7 @@ func (client OpenShiftManagedClustersClient) ListByResourceGroup(ctx context.Con result.osmclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -508,6 +512,7 @@ func (client OpenShiftManagedClustersClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/operations.go b/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/operations.go index fecbcfae955b..4dc7e8273353 100644 --- a/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/operations.go +++ b/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/cassandraresources.go b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/cassandraresources.go index bc522e7355ed..84fe93dbc170 100644 --- a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/cassandraresources.go +++ b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/cassandraresources.go @@ -474,6 +474,7 @@ func (client CassandraResourcesClient) GetCassandraKeyspace(ctx context.Context, result, err = client.GetCassandraKeyspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "GetCassandraKeyspace", resp, "Failure responding to request") + return } return @@ -566,6 +567,7 @@ func (client CassandraResourcesClient) GetCassandraKeyspaceThroughput(ctx contex result, err = client.GetCassandraKeyspaceThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "GetCassandraKeyspaceThroughput", resp, "Failure responding to request") + return } return @@ -658,6 +660,7 @@ func (client CassandraResourcesClient) GetCassandraTable(ctx context.Context, re result, err = client.GetCassandraTableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "GetCassandraTable", resp, "Failure responding to request") + return } return @@ -752,6 +755,7 @@ func (client CassandraResourcesClient) GetCassandraTableThroughput(ctx context.C result, err = client.GetCassandraTableThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "GetCassandraTableThroughput", resp, "Failure responding to request") + return } return @@ -843,6 +847,7 @@ func (client CassandraResourcesClient) ListCassandraKeyspaces(ctx context.Contex result, err = client.ListCassandraKeyspacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "ListCassandraKeyspaces", resp, "Failure responding to request") + return } return @@ -933,6 +938,7 @@ func (client CassandraResourcesClient) ListCassandraTables(ctx context.Context, result, err = client.ListCassandraTablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "ListCassandraTables", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/collection.go b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/collection.go index 784dc017a275..92c08a984770 100644 --- a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/collection.go +++ b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/collection.go @@ -89,6 +89,7 @@ func (client CollectionClient) ListMetricDefinitions(ctx context.Context, resour result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client CollectionClient) ListMetrics(ctx context.Context, resourceGroupNam result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -281,6 +283,7 @@ func (client CollectionClient) ListUsages(ctx context.Context, resourceGroupName result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/collectionpartition.go b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/collectionpartition.go index 4a7d4313903b..77d80fd3fd5b 100644 --- a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/collectionpartition.go +++ b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/collectionpartition.go @@ -93,6 +93,7 @@ func (client CollectionPartitionClient) ListMetrics(ctx context.Context, resourc result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionPartitionClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -189,6 +190,7 @@ func (client CollectionPartitionClient) ListUsages(ctx context.Context, resource result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionPartitionClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/collectionpartitionregion.go b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/collectionpartitionregion.go index 96663c17340e..e59c95b0e96d 100644 --- a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/collectionpartitionregion.go +++ b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/collectionpartitionregion.go @@ -95,6 +95,7 @@ func (client CollectionPartitionRegionClient) ListMetrics(ctx context.Context, r result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionPartitionRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/collectionregion.go b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/collectionregion.go index 03f6279b2df6..fa7cb14ef92d 100644 --- a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/collectionregion.go +++ b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/collectionregion.go @@ -95,6 +95,7 @@ func (client CollectionRegionClient) ListMetrics(ctx context.Context, resourceGr result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/database.go b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/database.go index d871842d0838..6ffaccb93ff0 100644 --- a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/database.go +++ b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/database.go @@ -88,6 +88,7 @@ func (client DatabaseClient) ListMetricDefinitions(ctx context.Context, resource result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -182,6 +183,7 @@ func (client DatabaseClient) ListMetrics(ctx context.Context, resourceGroupName result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -276,6 +278,7 @@ func (client DatabaseClient) ListUsages(ctx context.Context, resourceGroupName s result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/databaseaccountregion.go b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/databaseaccountregion.go index 652444ef5c64..4b9c211ca3f8 100644 --- a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/databaseaccountregion.go +++ b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/databaseaccountregion.go @@ -92,6 +92,7 @@ func (client DatabaseAccountRegionClient) ListMetrics(ctx context.Context, resou result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/databaseaccounts.go b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/databaseaccounts.go index 2d825209a9b2..cbacea5e0407 100644 --- a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/databaseaccounts.go +++ b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/databaseaccounts.go @@ -82,6 +82,7 @@ func (client DatabaseAccountsClient) CheckNameExists(ctx context.Context, accoun result, err = client.CheckNameExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "CheckNameExists", resp, "Failure responding to request") + return } return @@ -459,6 +460,7 @@ func (client DatabaseAccountsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -548,6 +550,7 @@ func (client DatabaseAccountsClient) GetReadOnlyKeys(ctx context.Context, resour result, err = client.GetReadOnlyKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetReadOnlyKeys", resp, "Failure responding to request") + return } return @@ -626,6 +629,7 @@ func (client DatabaseAccountsClient) List(ctx context.Context) (result DatabaseA result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "List", resp, "Failure responding to request") + return } return @@ -708,6 +712,7 @@ func (client DatabaseAccountsClient) ListByResourceGroup(ctx context.Context, re result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -796,6 +801,7 @@ func (client DatabaseAccountsClient) ListConnectionStrings(ctx context.Context, result, err = client.ListConnectionStringsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListConnectionStrings", resp, "Failure responding to request") + return } return @@ -885,6 +891,7 @@ func (client DatabaseAccountsClient) ListKeys(ctx context.Context, resourceGroup result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -974,6 +981,7 @@ func (client DatabaseAccountsClient) ListMetricDefinitions(ctx context.Context, result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -1066,6 +1074,7 @@ func (client DatabaseAccountsClient) ListMetrics(ctx context.Context, resourceGr result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -1156,6 +1165,7 @@ func (client DatabaseAccountsClient) ListReadOnlyKeys(ctx context.Context, resou result, err = client.ListReadOnlyKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListReadOnlyKeys", resp, "Failure responding to request") + return } return @@ -1247,6 +1257,7 @@ func (client DatabaseAccountsClient) ListUsages(ctx context.Context, resourceGro result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/gremlinresources.go b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/gremlinresources.go index 266b7dbe9c60..9b81f4d20735 100644 --- a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/gremlinresources.go +++ b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/gremlinresources.go @@ -481,6 +481,7 @@ func (client GremlinResourcesClient) GetGremlinDatabase(ctx context.Context, res result, err = client.GetGremlinDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "GetGremlinDatabase", resp, "Failure responding to request") + return } return @@ -573,6 +574,7 @@ func (client GremlinResourcesClient) GetGremlinDatabaseThroughput(ctx context.Co result, err = client.GetGremlinDatabaseThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "GetGremlinDatabaseThroughput", resp, "Failure responding to request") + return } return @@ -665,6 +667,7 @@ func (client GremlinResourcesClient) GetGremlinGraph(ctx context.Context, resour result, err = client.GetGremlinGraphResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "GetGremlinGraph", resp, "Failure responding to request") + return } return @@ -759,6 +762,7 @@ func (client GremlinResourcesClient) GetGremlinGraphThroughput(ctx context.Conte result, err = client.GetGremlinGraphThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "GetGremlinGraphThroughput", resp, "Failure responding to request") + return } return @@ -850,6 +854,7 @@ func (client GremlinResourcesClient) ListGremlinDatabases(ctx context.Context, r result, err = client.ListGremlinDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "ListGremlinDatabases", resp, "Failure responding to request") + return } return @@ -940,6 +945,7 @@ func (client GremlinResourcesClient) ListGremlinGraphs(ctx context.Context, reso result, err = client.ListGremlinGraphsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "ListGremlinGraphs", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/mongodbresources.go b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/mongodbresources.go index d17ddce53214..d7c7e0bf7606 100644 --- a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/mongodbresources.go +++ b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/mongodbresources.go @@ -474,6 +474,7 @@ func (client MongoDBResourcesClient) GetMongoDBCollection(ctx context.Context, r result, err = client.GetMongoDBCollectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "GetMongoDBCollection", resp, "Failure responding to request") + return } return @@ -568,6 +569,7 @@ func (client MongoDBResourcesClient) GetMongoDBCollectionThroughput(ctx context. result, err = client.GetMongoDBCollectionThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "GetMongoDBCollectionThroughput", resp, "Failure responding to request") + return } return @@ -661,6 +663,7 @@ func (client MongoDBResourcesClient) GetMongoDBDatabase(ctx context.Context, res result, err = client.GetMongoDBDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "GetMongoDBDatabase", resp, "Failure responding to request") + return } return @@ -753,6 +756,7 @@ func (client MongoDBResourcesClient) GetMongoDBDatabaseThroughput(ctx context.Co result, err = client.GetMongoDBDatabaseThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "GetMongoDBDatabaseThroughput", resp, "Failure responding to request") + return } return @@ -844,6 +848,7 @@ func (client MongoDBResourcesClient) ListMongoDBCollections(ctx context.Context, result, err = client.ListMongoDBCollectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "ListMongoDBCollections", resp, "Failure responding to request") + return } return @@ -934,6 +939,7 @@ func (client MongoDBResourcesClient) ListMongoDBDatabases(ctx context.Context, r result, err = client.ListMongoDBDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "ListMongoDBDatabases", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/notebookworkspaces.go b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/notebookworkspaces.go index 77b81888f6b4..1068ca8eff4a 100644 --- a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/notebookworkspaces.go +++ b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/notebookworkspaces.go @@ -270,6 +270,7 @@ func (client NotebookWorkspacesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.NotebookWorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -360,6 +361,7 @@ func (client NotebookWorkspacesClient) ListByDatabaseAccount(ctx context.Context result, err = client.ListByDatabaseAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.NotebookWorkspacesClient", "ListByDatabaseAccount", resp, "Failure responding to request") + return } return @@ -449,6 +451,7 @@ func (client NotebookWorkspacesClient) ListConnectionInfo(ctx context.Context, r result, err = client.ListConnectionInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.NotebookWorkspacesClient", "ListConnectionInfo", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/operations.go b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/operations.go index bad067835c73..126b29ce46b4 100644 --- a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/operations.go +++ b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/partitionkeyrangeid.go b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/partitionkeyrangeid.go index 41ffcdf50248..85207bbf6deb 100644 --- a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/partitionkeyrangeid.go +++ b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/partitionkeyrangeid.go @@ -94,6 +94,7 @@ func (client PartitionKeyRangeIDClient) ListMetrics(ctx context.Context, resourc result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PartitionKeyRangeIDClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/partitionkeyrangeidregion.go b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/partitionkeyrangeidregion.go index 52c940ca63a3..7001f91d8b87 100644 --- a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/partitionkeyrangeidregion.go +++ b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/partitionkeyrangeidregion.go @@ -95,6 +95,7 @@ func (client PartitionKeyRangeIDRegionClient) ListMetrics(ctx context.Context, r result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PartitionKeyRangeIDRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/percentile.go b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/percentile.go index e8a988242de8..0e0408262652 100644 --- a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/percentile.go +++ b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/percentile.go @@ -91,6 +91,7 @@ func (client PercentileClient) ListMetrics(ctx context.Context, resourceGroupNam result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PercentileClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/percentilesourcetarget.go b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/percentilesourcetarget.go index 228fd5c66df9..279eb033f89b 100644 --- a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/percentilesourcetarget.go +++ b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/percentilesourcetarget.go @@ -96,6 +96,7 @@ func (client PercentileSourceTargetClient) ListMetrics(ctx context.Context, reso result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PercentileSourceTargetClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/percentiletarget.go b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/percentiletarget.go index afd332858fc3..0853bf8fb670 100644 --- a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/percentiletarget.go +++ b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/percentiletarget.go @@ -94,6 +94,7 @@ func (client PercentileTargetClient) ListMetrics(ctx context.Context, resourceGr result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PercentileTargetClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/privateendpointconnections.go b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/privateendpointconnections.go index e4646d97e623..6f7065f71b97 100644 --- a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/privateendpointconnections.go +++ b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/privateendpointconnections.go @@ -272,6 +272,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -362,6 +363,7 @@ func (client PrivateEndpointConnectionsClient) ListByDatabaseAccount(ctx context result, err = client.ListByDatabaseAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PrivateEndpointConnectionsClient", "ListByDatabaseAccount", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/privatelinkresources.go b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/privatelinkresources.go index 1d64a0c10774..0af52cb6739f 100644 --- a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/privatelinkresources.go +++ b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/privatelinkresources.go @@ -89,6 +89,7 @@ func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PrivateLinkResourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client PrivateLinkResourcesClient) ListByDatabaseAccount(ctx context.Conte result, err = client.ListByDatabaseAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PrivateLinkResourcesClient", "ListByDatabaseAccount", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/sqlresources.go b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/sqlresources.go index d083496b6c0c..a1104aa84f7f 100644 --- a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/sqlresources.go +++ b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/sqlresources.go @@ -1075,6 +1075,7 @@ func (client SQLResourcesClient) GetSQLContainer(ctx context.Context, resourceGr result, err = client.GetSQLContainerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLContainer", resp, "Failure responding to request") + return } return @@ -1169,6 +1170,7 @@ func (client SQLResourcesClient) GetSQLContainerThroughput(ctx context.Context, result, err = client.GetSQLContainerThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLContainerThroughput", resp, "Failure responding to request") + return } return @@ -1261,6 +1263,7 @@ func (client SQLResourcesClient) GetSQLDatabase(ctx context.Context, resourceGro result, err = client.GetSQLDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLDatabase", resp, "Failure responding to request") + return } return @@ -1353,6 +1356,7 @@ func (client SQLResourcesClient) GetSQLDatabaseThroughput(ctx context.Context, r result, err = client.GetSQLDatabaseThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLDatabaseThroughput", resp, "Failure responding to request") + return } return @@ -1446,6 +1450,7 @@ func (client SQLResourcesClient) GetSQLStoredProcedure(ctx context.Context, reso result, err = client.GetSQLStoredProcedureResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLStoredProcedure", resp, "Failure responding to request") + return } return @@ -1541,6 +1546,7 @@ func (client SQLResourcesClient) GetSQLTrigger(ctx context.Context, resourceGrou result, err = client.GetSQLTriggerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLTrigger", resp, "Failure responding to request") + return } return @@ -1636,6 +1642,7 @@ func (client SQLResourcesClient) GetSQLUserDefinedFunction(ctx context.Context, result, err = client.GetSQLUserDefinedFunctionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLUserDefinedFunction", resp, "Failure responding to request") + return } return @@ -1729,6 +1736,7 @@ func (client SQLResourcesClient) ListSQLContainers(ctx context.Context, resource result, err = client.ListSQLContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLContainers", resp, "Failure responding to request") + return } return @@ -1819,6 +1827,7 @@ func (client SQLResourcesClient) ListSQLDatabases(ctx context.Context, resourceG result, err = client.ListSQLDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLDatabases", resp, "Failure responding to request") + return } return @@ -1910,6 +1919,7 @@ func (client SQLResourcesClient) ListSQLStoredProcedures(ctx context.Context, re result, err = client.ListSQLStoredProceduresResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLStoredProcedures", resp, "Failure responding to request") + return } return @@ -2003,6 +2013,7 @@ func (client SQLResourcesClient) ListSQLTriggers(ctx context.Context, resourceGr result, err = client.ListSQLTriggersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLTriggers", resp, "Failure responding to request") + return } return @@ -2096,6 +2107,7 @@ func (client SQLResourcesClient) ListSQLUserDefinedFunctions(ctx context.Context result, err = client.ListSQLUserDefinedFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLUserDefinedFunctions", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/tableresources.go b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/tableresources.go index 80589863eddb..7a9adf9c1caa 100644 --- a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/tableresources.go +++ b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/tableresources.go @@ -278,6 +278,7 @@ func (client TableResourcesClient) GetTable(ctx context.Context, resourceGroupNa result, err = client.GetTableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.TableResourcesClient", "GetTable", resp, "Failure responding to request") + return } return @@ -370,6 +371,7 @@ func (client TableResourcesClient) GetTableThroughput(ctx context.Context, resou result, err = client.GetTableThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.TableResourcesClient", "GetTableThroughput", resp, "Failure responding to request") + return } return @@ -460,6 +462,7 @@ func (client TableResourcesClient) ListTables(ctx context.Context, resourceGroup result, err = client.ListTablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.TableResourcesClient", "ListTables", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/cassandraresources.go b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/cassandraresources.go index ac6b4b0be3ac..fe1ae444e668 100644 --- a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/cassandraresources.go +++ b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/cassandraresources.go @@ -464,6 +464,7 @@ func (client CassandraResourcesClient) GetCassandraKeyspace(ctx context.Context, result, err = client.GetCassandraKeyspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "GetCassandraKeyspace", resp, "Failure responding to request") + return } return @@ -554,6 +555,7 @@ func (client CassandraResourcesClient) GetCassandraKeyspaceThroughput(ctx contex result, err = client.GetCassandraKeyspaceThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "GetCassandraKeyspaceThroughput", resp, "Failure responding to request") + return } return @@ -644,6 +646,7 @@ func (client CassandraResourcesClient) GetCassandraTable(ctx context.Context, re result, err = client.GetCassandraTableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "GetCassandraTable", resp, "Failure responding to request") + return } return @@ -736,6 +739,7 @@ func (client CassandraResourcesClient) GetCassandraTableThroughput(ctx context.C result, err = client.GetCassandraTableThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "GetCassandraTableThroughput", resp, "Failure responding to request") + return } return @@ -825,6 +829,7 @@ func (client CassandraResourcesClient) ListCassandraKeyspaces(ctx context.Contex result, err = client.ListCassandraKeyspacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "ListCassandraKeyspaces", resp, "Failure responding to request") + return } return @@ -913,6 +918,7 @@ func (client CassandraResourcesClient) ListCassandraTables(ctx context.Context, result, err = client.ListCassandraTablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "ListCassandraTables", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/collection.go b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/collection.go index 1193e079444a..1f5eb16e646a 100644 --- a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/collection.go +++ b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/collection.go @@ -87,6 +87,7 @@ func (client CollectionClient) ListMetricDefinitions(ctx context.Context, resour result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client CollectionClient) ListMetrics(ctx context.Context, resourceGroupNam result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -275,6 +277,7 @@ func (client CollectionClient) ListUsages(ctx context.Context, resourceGroupName result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/collectionpartition.go b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/collectionpartition.go index a94073506110..20cc7b5d593d 100644 --- a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/collectionpartition.go +++ b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/collectionpartition.go @@ -91,6 +91,7 @@ func (client CollectionPartitionClient) ListMetrics(ctx context.Context, resourc result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionPartitionClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client CollectionPartitionClient) ListUsages(ctx context.Context, resource result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionPartitionClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/collectionpartitionregion.go b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/collectionpartitionregion.go index f6702492821b..3bc621c1361f 100644 --- a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/collectionpartitionregion.go +++ b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/collectionpartitionregion.go @@ -93,6 +93,7 @@ func (client CollectionPartitionRegionClient) ListMetrics(ctx context.Context, r result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionPartitionRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/collectionregion.go b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/collectionregion.go index 566fa08052fe..2bbb00771fc3 100644 --- a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/collectionregion.go +++ b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/collectionregion.go @@ -93,6 +93,7 @@ func (client CollectionRegionClient) ListMetrics(ctx context.Context, resourceGr result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/database.go b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/database.go index 8d855f688f28..86bb1c89b4c3 100644 --- a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/database.go +++ b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/database.go @@ -86,6 +86,7 @@ func (client DatabaseClient) ListMetricDefinitions(ctx context.Context, resource result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client DatabaseClient) ListMetrics(ctx context.Context, resourceGroupName result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -270,6 +272,7 @@ func (client DatabaseClient) ListUsages(ctx context.Context, resourceGroupName s result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/databaseaccountregion.go b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/databaseaccountregion.go index fa15f74d37c0..6d72b56476fc 100644 --- a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/databaseaccountregion.go +++ b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/databaseaccountregion.go @@ -90,6 +90,7 @@ func (client DatabaseAccountRegionClient) ListMetrics(ctx context.Context, resou result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/databaseaccounts.go b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/databaseaccounts.go index 67998af95a0d..c4fca4e052e4 100644 --- a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/databaseaccounts.go +++ b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/databaseaccounts.go @@ -82,6 +82,7 @@ func (client DatabaseAccountsClient) CheckNameExists(ctx context.Context, accoun result, err = client.CheckNameExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "CheckNameExists", resp, "Failure responding to request") + return } return @@ -451,6 +452,7 @@ func (client DatabaseAccountsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -538,6 +540,7 @@ func (client DatabaseAccountsClient) GetReadOnlyKeys(ctx context.Context, resour result, err = client.GetReadOnlyKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetReadOnlyKeys", resp, "Failure responding to request") + return } return @@ -610,6 +613,7 @@ func (client DatabaseAccountsClient) List(ctx context.Context) (result DatabaseA result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "List", resp, "Failure responding to request") + return } return @@ -690,6 +694,7 @@ func (client DatabaseAccountsClient) ListByResourceGroup(ctx context.Context, re result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -776,6 +781,7 @@ func (client DatabaseAccountsClient) ListConnectionStrings(ctx context.Context, result, err = client.ListConnectionStringsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListConnectionStrings", resp, "Failure responding to request") + return } return @@ -863,6 +869,7 @@ func (client DatabaseAccountsClient) ListKeys(ctx context.Context, resourceGroup result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -950,6 +957,7 @@ func (client DatabaseAccountsClient) ListMetricDefinitions(ctx context.Context, result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -1040,6 +1048,7 @@ func (client DatabaseAccountsClient) ListMetrics(ctx context.Context, resourceGr result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -1128,6 +1137,7 @@ func (client DatabaseAccountsClient) ListReadOnlyKeys(ctx context.Context, resou result, err = client.ListReadOnlyKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListReadOnlyKeys", resp, "Failure responding to request") + return } return @@ -1217,6 +1227,7 @@ func (client DatabaseAccountsClient) ListUsages(ctx context.Context, resourceGro result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/gremlinresources.go b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/gremlinresources.go index f1842a3e2185..2ae26046ba52 100644 --- a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/gremlinresources.go +++ b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/gremlinresources.go @@ -471,6 +471,7 @@ func (client GremlinResourcesClient) GetGremlinDatabase(ctx context.Context, res result, err = client.GetGremlinDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "GetGremlinDatabase", resp, "Failure responding to request") + return } return @@ -561,6 +562,7 @@ func (client GremlinResourcesClient) GetGremlinDatabaseThroughput(ctx context.Co result, err = client.GetGremlinDatabaseThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "GetGremlinDatabaseThroughput", resp, "Failure responding to request") + return } return @@ -651,6 +653,7 @@ func (client GremlinResourcesClient) GetGremlinGraph(ctx context.Context, resour result, err = client.GetGremlinGraphResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "GetGremlinGraph", resp, "Failure responding to request") + return } return @@ -743,6 +746,7 @@ func (client GremlinResourcesClient) GetGremlinGraphThroughput(ctx context.Conte result, err = client.GetGremlinGraphThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "GetGremlinGraphThroughput", resp, "Failure responding to request") + return } return @@ -832,6 +836,7 @@ func (client GremlinResourcesClient) ListGremlinDatabases(ctx context.Context, r result, err = client.ListGremlinDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "ListGremlinDatabases", resp, "Failure responding to request") + return } return @@ -920,6 +925,7 @@ func (client GremlinResourcesClient) ListGremlinGraphs(ctx context.Context, reso result, err = client.ListGremlinGraphsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "ListGremlinGraphs", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/mongodbresources.go b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/mongodbresources.go index 21afc95e5bb7..1bbb94190f7e 100644 --- a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/mongodbresources.go +++ b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/mongodbresources.go @@ -464,6 +464,7 @@ func (client MongoDBResourcesClient) GetMongoDBCollection(ctx context.Context, r result, err = client.GetMongoDBCollectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "GetMongoDBCollection", resp, "Failure responding to request") + return } return @@ -556,6 +557,7 @@ func (client MongoDBResourcesClient) GetMongoDBCollectionThroughput(ctx context. result, err = client.GetMongoDBCollectionThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "GetMongoDBCollectionThroughput", resp, "Failure responding to request") + return } return @@ -647,6 +649,7 @@ func (client MongoDBResourcesClient) GetMongoDBDatabase(ctx context.Context, res result, err = client.GetMongoDBDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "GetMongoDBDatabase", resp, "Failure responding to request") + return } return @@ -737,6 +740,7 @@ func (client MongoDBResourcesClient) GetMongoDBDatabaseThroughput(ctx context.Co result, err = client.GetMongoDBDatabaseThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "GetMongoDBDatabaseThroughput", resp, "Failure responding to request") + return } return @@ -826,6 +830,7 @@ func (client MongoDBResourcesClient) ListMongoDBCollections(ctx context.Context, result, err = client.ListMongoDBCollectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "ListMongoDBCollections", resp, "Failure responding to request") + return } return @@ -914,6 +919,7 @@ func (client MongoDBResourcesClient) ListMongoDBDatabases(ctx context.Context, r result, err = client.ListMongoDBDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "ListMongoDBDatabases", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/notebookworkspaces.go b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/notebookworkspaces.go index 79b64ecfb4a9..1dd193655188 100644 --- a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/notebookworkspaces.go +++ b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/notebookworkspaces.go @@ -270,6 +270,7 @@ func (client NotebookWorkspacesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.NotebookWorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -360,6 +361,7 @@ func (client NotebookWorkspacesClient) ListByDatabaseAccount(ctx context.Context result, err = client.ListByDatabaseAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.NotebookWorkspacesClient", "ListByDatabaseAccount", resp, "Failure responding to request") + return } return @@ -449,6 +451,7 @@ func (client NotebookWorkspacesClient) ListConnectionInfo(ctx context.Context, r result, err = client.ListConnectionInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.NotebookWorkspacesClient", "ListConnectionInfo", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/operations.go b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/operations.go index f47a0512228a..4d24f0459c7b 100644 --- a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/operations.go +++ b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/partitionkeyrangeid.go b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/partitionkeyrangeid.go index 6b045969b8ca..d18a4d7fcbd4 100644 --- a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/partitionkeyrangeid.go +++ b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/partitionkeyrangeid.go @@ -92,6 +92,7 @@ func (client PartitionKeyRangeIDClient) ListMetrics(ctx context.Context, resourc result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PartitionKeyRangeIDClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/partitionkeyrangeidregion.go b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/partitionkeyrangeidregion.go index 180b378177e2..cd5b6ea863ba 100644 --- a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/partitionkeyrangeidregion.go +++ b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/partitionkeyrangeidregion.go @@ -93,6 +93,7 @@ func (client PartitionKeyRangeIDRegionClient) ListMetrics(ctx context.Context, r result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PartitionKeyRangeIDRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/percentile.go b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/percentile.go index 0d89fb80de74..4ae30882a5e5 100644 --- a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/percentile.go +++ b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/percentile.go @@ -89,6 +89,7 @@ func (client PercentileClient) ListMetrics(ctx context.Context, resourceGroupNam result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PercentileClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/percentilesourcetarget.go b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/percentilesourcetarget.go index ba874013f40d..b12586dab860 100644 --- a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/percentilesourcetarget.go +++ b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/percentilesourcetarget.go @@ -94,6 +94,7 @@ func (client PercentileSourceTargetClient) ListMetrics(ctx context.Context, reso result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PercentileSourceTargetClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/percentiletarget.go b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/percentiletarget.go index 316cb4e10b6d..d886e168e1ee 100644 --- a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/percentiletarget.go +++ b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/percentiletarget.go @@ -92,6 +92,7 @@ func (client PercentileTargetClient) ListMetrics(ctx context.Context, resourceGr result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PercentileTargetClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/privateendpointconnections.go b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/privateendpointconnections.go index 7ac22ee4fd4e..b013e3582d6f 100644 --- a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/privateendpointconnections.go +++ b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/privateendpointconnections.go @@ -272,6 +272,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -362,6 +363,7 @@ func (client PrivateEndpointConnectionsClient) ListByDatabaseAccount(ctx context result, err = client.ListByDatabaseAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PrivateEndpointConnectionsClient", "ListByDatabaseAccount", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/privatelinkresources.go b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/privatelinkresources.go index df354fb91642..ad8f00e76f6d 100644 --- a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/privatelinkresources.go +++ b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/privatelinkresources.go @@ -89,6 +89,7 @@ func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PrivateLinkResourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client PrivateLinkResourcesClient) ListByDatabaseAccount(ctx context.Conte result, err = client.ListByDatabaseAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PrivateLinkResourcesClient", "ListByDatabaseAccount", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/sqlresources.go b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/sqlresources.go index 4acfe20c6bed..fa27ccc86dc4 100644 --- a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/sqlresources.go +++ b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/sqlresources.go @@ -1053,6 +1053,7 @@ func (client SQLResourcesClient) GetSQLContainer(ctx context.Context, resourceGr result, err = client.GetSQLContainerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLContainer", resp, "Failure responding to request") + return } return @@ -1145,6 +1146,7 @@ func (client SQLResourcesClient) GetSQLContainerThroughput(ctx context.Context, result, err = client.GetSQLContainerThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLContainerThroughput", resp, "Failure responding to request") + return } return @@ -1235,6 +1237,7 @@ func (client SQLResourcesClient) GetSQLDatabase(ctx context.Context, resourceGro result, err = client.GetSQLDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLDatabase", resp, "Failure responding to request") + return } return @@ -1325,6 +1328,7 @@ func (client SQLResourcesClient) GetSQLDatabaseThroughput(ctx context.Context, r result, err = client.GetSQLDatabaseThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLDatabaseThroughput", resp, "Failure responding to request") + return } return @@ -1416,6 +1420,7 @@ func (client SQLResourcesClient) GetSQLStoredProcedure(ctx context.Context, reso result, err = client.GetSQLStoredProcedureResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLStoredProcedure", resp, "Failure responding to request") + return } return @@ -1509,6 +1514,7 @@ func (client SQLResourcesClient) GetSQLTrigger(ctx context.Context, resourceGrou result, err = client.GetSQLTriggerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLTrigger", resp, "Failure responding to request") + return } return @@ -1602,6 +1608,7 @@ func (client SQLResourcesClient) GetSQLUserDefinedFunction(ctx context.Context, result, err = client.GetSQLUserDefinedFunctionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLUserDefinedFunction", resp, "Failure responding to request") + return } return @@ -1693,6 +1700,7 @@ func (client SQLResourcesClient) ListSQLContainers(ctx context.Context, resource result, err = client.ListSQLContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLContainers", resp, "Failure responding to request") + return } return @@ -1781,6 +1789,7 @@ func (client SQLResourcesClient) ListSQLDatabases(ctx context.Context, resourceG result, err = client.ListSQLDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLDatabases", resp, "Failure responding to request") + return } return @@ -1870,6 +1879,7 @@ func (client SQLResourcesClient) ListSQLStoredProcedures(ctx context.Context, re result, err = client.ListSQLStoredProceduresResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLStoredProcedures", resp, "Failure responding to request") + return } return @@ -1961,6 +1971,7 @@ func (client SQLResourcesClient) ListSQLTriggers(ctx context.Context, resourceGr result, err = client.ListSQLTriggersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLTriggers", resp, "Failure responding to request") + return } return @@ -2052,6 +2063,7 @@ func (client SQLResourcesClient) ListSQLUserDefinedFunctions(ctx context.Context result, err = client.ListSQLUserDefinedFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLUserDefinedFunctions", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/tableresources.go b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/tableresources.go index 31af14d84d74..3430f6b9b5fe 100644 --- a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/tableresources.go +++ b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/tableresources.go @@ -272,6 +272,7 @@ func (client TableResourcesClient) GetTable(ctx context.Context, resourceGroupNa result, err = client.GetTableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.TableResourcesClient", "GetTable", resp, "Failure responding to request") + return } return @@ -362,6 +363,7 @@ func (client TableResourcesClient) GetTableThroughput(ctx context.Context, resou result, err = client.GetTableThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.TableResourcesClient", "GetTableThroughput", resp, "Failure responding to request") + return } return @@ -450,6 +452,7 @@ func (client TableResourcesClient) ListTables(ctx context.Context, resourceGroup result, err = client.ListTablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.TableResourcesClient", "ListTables", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/cassandraresources.go b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/cassandraresources.go index 06b646e1cad5..bb84041c9bb7 100644 --- a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/cassandraresources.go +++ b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/cassandraresources.go @@ -474,6 +474,7 @@ func (client CassandraResourcesClient) GetCassandraKeyspace(ctx context.Context, result, err = client.GetCassandraKeyspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "GetCassandraKeyspace", resp, "Failure responding to request") + return } return @@ -566,6 +567,7 @@ func (client CassandraResourcesClient) GetCassandraKeyspaceThroughput(ctx contex result, err = client.GetCassandraKeyspaceThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "GetCassandraKeyspaceThroughput", resp, "Failure responding to request") + return } return @@ -658,6 +660,7 @@ func (client CassandraResourcesClient) GetCassandraTable(ctx context.Context, re result, err = client.GetCassandraTableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "GetCassandraTable", resp, "Failure responding to request") + return } return @@ -752,6 +755,7 @@ func (client CassandraResourcesClient) GetCassandraTableThroughput(ctx context.C result, err = client.GetCassandraTableThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "GetCassandraTableThroughput", resp, "Failure responding to request") + return } return @@ -843,6 +847,7 @@ func (client CassandraResourcesClient) ListCassandraKeyspaces(ctx context.Contex result, err = client.ListCassandraKeyspacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "ListCassandraKeyspaces", resp, "Failure responding to request") + return } return @@ -933,6 +938,7 @@ func (client CassandraResourcesClient) ListCassandraTables(ctx context.Context, result, err = client.ListCassandraTablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "ListCassandraTables", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/collection.go b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/collection.go index 825483a7ec9d..212f09ec2849 100644 --- a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/collection.go +++ b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/collection.go @@ -89,6 +89,7 @@ func (client CollectionClient) ListMetricDefinitions(ctx context.Context, resour result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client CollectionClient) ListMetrics(ctx context.Context, resourceGroupNam result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -281,6 +283,7 @@ func (client CollectionClient) ListUsages(ctx context.Context, resourceGroupName result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/collectionpartition.go b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/collectionpartition.go index 3cd7f333b2ca..9a6ff1892e43 100644 --- a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/collectionpartition.go +++ b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/collectionpartition.go @@ -93,6 +93,7 @@ func (client CollectionPartitionClient) ListMetrics(ctx context.Context, resourc result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionPartitionClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -189,6 +190,7 @@ func (client CollectionPartitionClient) ListUsages(ctx context.Context, resource result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionPartitionClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/collectionpartitionregion.go b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/collectionpartitionregion.go index 68be8a3b592b..276e355ffff0 100644 --- a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/collectionpartitionregion.go +++ b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/collectionpartitionregion.go @@ -95,6 +95,7 @@ func (client CollectionPartitionRegionClient) ListMetrics(ctx context.Context, r result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionPartitionRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/collectionregion.go b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/collectionregion.go index bfaf8742dabd..90a4cf59ea73 100644 --- a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/collectionregion.go +++ b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/collectionregion.go @@ -95,6 +95,7 @@ func (client CollectionRegionClient) ListMetrics(ctx context.Context, resourceGr result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/database.go b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/database.go index 489f7180c595..e0cb62c54911 100644 --- a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/database.go +++ b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/database.go @@ -88,6 +88,7 @@ func (client DatabaseClient) ListMetricDefinitions(ctx context.Context, resource result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -182,6 +183,7 @@ func (client DatabaseClient) ListMetrics(ctx context.Context, resourceGroupName result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -276,6 +278,7 @@ func (client DatabaseClient) ListUsages(ctx context.Context, resourceGroupName s result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/databaseaccountregion.go b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/databaseaccountregion.go index e37e8a0a2cb1..3147ce2594b8 100644 --- a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/databaseaccountregion.go +++ b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/databaseaccountregion.go @@ -92,6 +92,7 @@ func (client DatabaseAccountRegionClient) ListMetrics(ctx context.Context, resou result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/databaseaccounts.go b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/databaseaccounts.go index bcb84e165890..f998b6ffddc1 100644 --- a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/databaseaccounts.go +++ b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/databaseaccounts.go @@ -82,6 +82,7 @@ func (client DatabaseAccountsClient) CheckNameExists(ctx context.Context, accoun result, err = client.CheckNameExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "CheckNameExists", resp, "Failure responding to request") + return } return @@ -459,6 +460,7 @@ func (client DatabaseAccountsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -548,6 +550,7 @@ func (client DatabaseAccountsClient) GetReadOnlyKeys(ctx context.Context, resour result, err = client.GetReadOnlyKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetReadOnlyKeys", resp, "Failure responding to request") + return } return @@ -626,6 +629,7 @@ func (client DatabaseAccountsClient) List(ctx context.Context) (result DatabaseA result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "List", resp, "Failure responding to request") + return } return @@ -708,6 +712,7 @@ func (client DatabaseAccountsClient) ListByResourceGroup(ctx context.Context, re result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -796,6 +801,7 @@ func (client DatabaseAccountsClient) ListConnectionStrings(ctx context.Context, result, err = client.ListConnectionStringsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListConnectionStrings", resp, "Failure responding to request") + return } return @@ -885,6 +891,7 @@ func (client DatabaseAccountsClient) ListKeys(ctx context.Context, resourceGroup result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -974,6 +981,7 @@ func (client DatabaseAccountsClient) ListMetricDefinitions(ctx context.Context, result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -1066,6 +1074,7 @@ func (client DatabaseAccountsClient) ListMetrics(ctx context.Context, resourceGr result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -1156,6 +1165,7 @@ func (client DatabaseAccountsClient) ListReadOnlyKeys(ctx context.Context, resou result, err = client.ListReadOnlyKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListReadOnlyKeys", resp, "Failure responding to request") + return } return @@ -1247,6 +1257,7 @@ func (client DatabaseAccountsClient) ListUsages(ctx context.Context, resourceGro result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/gremlinresources.go b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/gremlinresources.go index c809f03d3dee..651885d185c4 100644 --- a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/gremlinresources.go +++ b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/gremlinresources.go @@ -481,6 +481,7 @@ func (client GremlinResourcesClient) GetGremlinDatabase(ctx context.Context, res result, err = client.GetGremlinDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "GetGremlinDatabase", resp, "Failure responding to request") + return } return @@ -573,6 +574,7 @@ func (client GremlinResourcesClient) GetGremlinDatabaseThroughput(ctx context.Co result, err = client.GetGremlinDatabaseThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "GetGremlinDatabaseThroughput", resp, "Failure responding to request") + return } return @@ -665,6 +667,7 @@ func (client GremlinResourcesClient) GetGremlinGraph(ctx context.Context, resour result, err = client.GetGremlinGraphResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "GetGremlinGraph", resp, "Failure responding to request") + return } return @@ -759,6 +762,7 @@ func (client GremlinResourcesClient) GetGremlinGraphThroughput(ctx context.Conte result, err = client.GetGremlinGraphThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "GetGremlinGraphThroughput", resp, "Failure responding to request") + return } return @@ -850,6 +854,7 @@ func (client GremlinResourcesClient) ListGremlinDatabases(ctx context.Context, r result, err = client.ListGremlinDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "ListGremlinDatabases", resp, "Failure responding to request") + return } return @@ -940,6 +945,7 @@ func (client GremlinResourcesClient) ListGremlinGraphs(ctx context.Context, reso result, err = client.ListGremlinGraphsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "ListGremlinGraphs", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/mongodbresources.go b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/mongodbresources.go index b62be5525b84..b1b546950a0c 100644 --- a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/mongodbresources.go +++ b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/mongodbresources.go @@ -474,6 +474,7 @@ func (client MongoDBResourcesClient) GetMongoDBCollection(ctx context.Context, r result, err = client.GetMongoDBCollectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "GetMongoDBCollection", resp, "Failure responding to request") + return } return @@ -568,6 +569,7 @@ func (client MongoDBResourcesClient) GetMongoDBCollectionThroughput(ctx context. result, err = client.GetMongoDBCollectionThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "GetMongoDBCollectionThroughput", resp, "Failure responding to request") + return } return @@ -661,6 +663,7 @@ func (client MongoDBResourcesClient) GetMongoDBDatabase(ctx context.Context, res result, err = client.GetMongoDBDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "GetMongoDBDatabase", resp, "Failure responding to request") + return } return @@ -753,6 +756,7 @@ func (client MongoDBResourcesClient) GetMongoDBDatabaseThroughput(ctx context.Co result, err = client.GetMongoDBDatabaseThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "GetMongoDBDatabaseThroughput", resp, "Failure responding to request") + return } return @@ -844,6 +848,7 @@ func (client MongoDBResourcesClient) ListMongoDBCollections(ctx context.Context, result, err = client.ListMongoDBCollectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "ListMongoDBCollections", resp, "Failure responding to request") + return } return @@ -934,6 +939,7 @@ func (client MongoDBResourcesClient) ListMongoDBDatabases(ctx context.Context, r result, err = client.ListMongoDBDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "ListMongoDBDatabases", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/notebookworkspaces.go b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/notebookworkspaces.go index 81229246bba1..220cfc2e5a1e 100644 --- a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/notebookworkspaces.go +++ b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/notebookworkspaces.go @@ -270,6 +270,7 @@ func (client NotebookWorkspacesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.NotebookWorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -360,6 +361,7 @@ func (client NotebookWorkspacesClient) ListByDatabaseAccount(ctx context.Context result, err = client.ListByDatabaseAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.NotebookWorkspacesClient", "ListByDatabaseAccount", resp, "Failure responding to request") + return } return @@ -449,6 +451,7 @@ func (client NotebookWorkspacesClient) ListConnectionInfo(ctx context.Context, r result, err = client.ListConnectionInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.NotebookWorkspacesClient", "ListConnectionInfo", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/operations.go b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/operations.go index 41174ea035db..bbb6ca267ba8 100644 --- a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/operations.go +++ b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/partitionkeyrangeid.go b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/partitionkeyrangeid.go index b44d95c4b245..0296f61e8620 100644 --- a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/partitionkeyrangeid.go +++ b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/partitionkeyrangeid.go @@ -94,6 +94,7 @@ func (client PartitionKeyRangeIDClient) ListMetrics(ctx context.Context, resourc result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PartitionKeyRangeIDClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/partitionkeyrangeidregion.go b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/partitionkeyrangeidregion.go index 415eb6fc93b5..eabce6937f08 100644 --- a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/partitionkeyrangeidregion.go +++ b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/partitionkeyrangeidregion.go @@ -95,6 +95,7 @@ func (client PartitionKeyRangeIDRegionClient) ListMetrics(ctx context.Context, r result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PartitionKeyRangeIDRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/percentile.go b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/percentile.go index 93cdd95a22c4..f1dc533ed489 100644 --- a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/percentile.go +++ b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/percentile.go @@ -91,6 +91,7 @@ func (client PercentileClient) ListMetrics(ctx context.Context, resourceGroupNam result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PercentileClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/percentilesourcetarget.go b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/percentilesourcetarget.go index 0292af38f377..ce192576d688 100644 --- a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/percentilesourcetarget.go +++ b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/percentilesourcetarget.go @@ -96,6 +96,7 @@ func (client PercentileSourceTargetClient) ListMetrics(ctx context.Context, reso result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PercentileSourceTargetClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/percentiletarget.go b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/percentiletarget.go index d03a1ac617db..811abc10dce5 100644 --- a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/percentiletarget.go +++ b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/percentiletarget.go @@ -94,6 +94,7 @@ func (client PercentileTargetClient) ListMetrics(ctx context.Context, resourceGr result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PercentileTargetClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/privateendpointconnections.go b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/privateendpointconnections.go index e4646d97e623..6f7065f71b97 100644 --- a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/privateendpointconnections.go +++ b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/privateendpointconnections.go @@ -272,6 +272,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -362,6 +363,7 @@ func (client PrivateEndpointConnectionsClient) ListByDatabaseAccount(ctx context result, err = client.ListByDatabaseAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PrivateEndpointConnectionsClient", "ListByDatabaseAccount", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/privatelinkresources.go b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/privatelinkresources.go index 1d64a0c10774..0af52cb6739f 100644 --- a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/privatelinkresources.go +++ b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/privatelinkresources.go @@ -89,6 +89,7 @@ func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PrivateLinkResourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client PrivateLinkResourcesClient) ListByDatabaseAccount(ctx context.Conte result, err = client.ListByDatabaseAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PrivateLinkResourcesClient", "ListByDatabaseAccount", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/sqlresources.go b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/sqlresources.go index 018897c97e6b..554963e7b82b 100644 --- a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/sqlresources.go +++ b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/sqlresources.go @@ -1075,6 +1075,7 @@ func (client SQLResourcesClient) GetSQLContainer(ctx context.Context, resourceGr result, err = client.GetSQLContainerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLContainer", resp, "Failure responding to request") + return } return @@ -1169,6 +1170,7 @@ func (client SQLResourcesClient) GetSQLContainerThroughput(ctx context.Context, result, err = client.GetSQLContainerThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLContainerThroughput", resp, "Failure responding to request") + return } return @@ -1261,6 +1263,7 @@ func (client SQLResourcesClient) GetSQLDatabase(ctx context.Context, resourceGro result, err = client.GetSQLDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLDatabase", resp, "Failure responding to request") + return } return @@ -1353,6 +1356,7 @@ func (client SQLResourcesClient) GetSQLDatabaseThroughput(ctx context.Context, r result, err = client.GetSQLDatabaseThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLDatabaseThroughput", resp, "Failure responding to request") + return } return @@ -1446,6 +1450,7 @@ func (client SQLResourcesClient) GetSQLStoredProcedure(ctx context.Context, reso result, err = client.GetSQLStoredProcedureResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLStoredProcedure", resp, "Failure responding to request") + return } return @@ -1541,6 +1546,7 @@ func (client SQLResourcesClient) GetSQLTrigger(ctx context.Context, resourceGrou result, err = client.GetSQLTriggerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLTrigger", resp, "Failure responding to request") + return } return @@ -1636,6 +1642,7 @@ func (client SQLResourcesClient) GetSQLUserDefinedFunction(ctx context.Context, result, err = client.GetSQLUserDefinedFunctionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLUserDefinedFunction", resp, "Failure responding to request") + return } return @@ -1729,6 +1736,7 @@ func (client SQLResourcesClient) ListSQLContainers(ctx context.Context, resource result, err = client.ListSQLContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLContainers", resp, "Failure responding to request") + return } return @@ -1819,6 +1827,7 @@ func (client SQLResourcesClient) ListSQLDatabases(ctx context.Context, resourceG result, err = client.ListSQLDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLDatabases", resp, "Failure responding to request") + return } return @@ -1910,6 +1919,7 @@ func (client SQLResourcesClient) ListSQLStoredProcedures(ctx context.Context, re result, err = client.ListSQLStoredProceduresResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLStoredProcedures", resp, "Failure responding to request") + return } return @@ -2003,6 +2013,7 @@ func (client SQLResourcesClient) ListSQLTriggers(ctx context.Context, resourceGr result, err = client.ListSQLTriggersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLTriggers", resp, "Failure responding to request") + return } return @@ -2096,6 +2107,7 @@ func (client SQLResourcesClient) ListSQLUserDefinedFunctions(ctx context.Context result, err = client.ListSQLUserDefinedFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLUserDefinedFunctions", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/tableresources.go b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/tableresources.go index 33617d8d15dd..1e5a5c904529 100644 --- a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/tableresources.go +++ b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/tableresources.go @@ -278,6 +278,7 @@ func (client TableResourcesClient) GetTable(ctx context.Context, resourceGroupNa result, err = client.GetTableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.TableResourcesClient", "GetTable", resp, "Failure responding to request") + return } return @@ -370,6 +371,7 @@ func (client TableResourcesClient) GetTableThroughput(ctx context.Context, resou result, err = client.GetTableThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.TableResourcesClient", "GetTableThroughput", resp, "Failure responding to request") + return } return @@ -460,6 +462,7 @@ func (client TableResourcesClient) ListTables(ctx context.Context, resourceGroup result, err = client.ListTablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.TableResourcesClient", "ListTables", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/cassandraresources.go b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/cassandraresources.go index 9c30ad848ace..ab29ac6d0840 100644 --- a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/cassandraresources.go +++ b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/cassandraresources.go @@ -474,6 +474,7 @@ func (client CassandraResourcesClient) GetCassandraKeyspace(ctx context.Context, result, err = client.GetCassandraKeyspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "GetCassandraKeyspace", resp, "Failure responding to request") + return } return @@ -566,6 +567,7 @@ func (client CassandraResourcesClient) GetCassandraKeyspaceThroughput(ctx contex result, err = client.GetCassandraKeyspaceThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "GetCassandraKeyspaceThroughput", resp, "Failure responding to request") + return } return @@ -658,6 +660,7 @@ func (client CassandraResourcesClient) GetCassandraTable(ctx context.Context, re result, err = client.GetCassandraTableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "GetCassandraTable", resp, "Failure responding to request") + return } return @@ -752,6 +755,7 @@ func (client CassandraResourcesClient) GetCassandraTableThroughput(ctx context.C result, err = client.GetCassandraTableThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "GetCassandraTableThroughput", resp, "Failure responding to request") + return } return @@ -843,6 +847,7 @@ func (client CassandraResourcesClient) ListCassandraKeyspaces(ctx context.Contex result, err = client.ListCassandraKeyspacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "ListCassandraKeyspaces", resp, "Failure responding to request") + return } return @@ -933,6 +938,7 @@ func (client CassandraResourcesClient) ListCassandraTables(ctx context.Context, result, err = client.ListCassandraTablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "ListCassandraTables", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/collection.go b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/collection.go index 5b944c07b11a..eb1f7efa9267 100644 --- a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/collection.go +++ b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/collection.go @@ -89,6 +89,7 @@ func (client CollectionClient) ListMetricDefinitions(ctx context.Context, resour result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client CollectionClient) ListMetrics(ctx context.Context, resourceGroupNam result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -281,6 +283,7 @@ func (client CollectionClient) ListUsages(ctx context.Context, resourceGroupName result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/collectionpartition.go b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/collectionpartition.go index 634640fecb6f..913a21228c44 100644 --- a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/collectionpartition.go +++ b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/collectionpartition.go @@ -93,6 +93,7 @@ func (client CollectionPartitionClient) ListMetrics(ctx context.Context, resourc result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionPartitionClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -189,6 +190,7 @@ func (client CollectionPartitionClient) ListUsages(ctx context.Context, resource result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionPartitionClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/collectionpartitionregion.go b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/collectionpartitionregion.go index 5aed6c4548f1..6bbe3561975d 100644 --- a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/collectionpartitionregion.go +++ b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/collectionpartitionregion.go @@ -95,6 +95,7 @@ func (client CollectionPartitionRegionClient) ListMetrics(ctx context.Context, r result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionPartitionRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/collectionregion.go b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/collectionregion.go index 1c18f7f3db33..491d6cf87666 100644 --- a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/collectionregion.go +++ b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/collectionregion.go @@ -95,6 +95,7 @@ func (client CollectionRegionClient) ListMetrics(ctx context.Context, resourceGr result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/database.go b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/database.go index c3c5298a954c..ca78fecf3191 100644 --- a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/database.go +++ b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/database.go @@ -88,6 +88,7 @@ func (client DatabaseClient) ListMetricDefinitions(ctx context.Context, resource result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -182,6 +183,7 @@ func (client DatabaseClient) ListMetrics(ctx context.Context, resourceGroupName result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -276,6 +278,7 @@ func (client DatabaseClient) ListUsages(ctx context.Context, resourceGroupName s result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/databaseaccountregion.go b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/databaseaccountregion.go index bef97536b424..eba507d76fda 100644 --- a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/databaseaccountregion.go +++ b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/databaseaccountregion.go @@ -92,6 +92,7 @@ func (client DatabaseAccountRegionClient) ListMetrics(ctx context.Context, resou result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/databaseaccounts.go b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/databaseaccounts.go index d1a3c3139db3..3fdfc7d0945c 100644 --- a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/databaseaccounts.go +++ b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/databaseaccounts.go @@ -82,6 +82,7 @@ func (client DatabaseAccountsClient) CheckNameExists(ctx context.Context, accoun result, err = client.CheckNameExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "CheckNameExists", resp, "Failure responding to request") + return } return @@ -459,6 +460,7 @@ func (client DatabaseAccountsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -548,6 +550,7 @@ func (client DatabaseAccountsClient) GetReadOnlyKeys(ctx context.Context, resour result, err = client.GetReadOnlyKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetReadOnlyKeys", resp, "Failure responding to request") + return } return @@ -626,6 +629,7 @@ func (client DatabaseAccountsClient) List(ctx context.Context) (result DatabaseA result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "List", resp, "Failure responding to request") + return } return @@ -708,6 +712,7 @@ func (client DatabaseAccountsClient) ListByResourceGroup(ctx context.Context, re result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -796,6 +801,7 @@ func (client DatabaseAccountsClient) ListConnectionStrings(ctx context.Context, result, err = client.ListConnectionStringsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListConnectionStrings", resp, "Failure responding to request") + return } return @@ -885,6 +891,7 @@ func (client DatabaseAccountsClient) ListKeys(ctx context.Context, resourceGroup result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -974,6 +981,7 @@ func (client DatabaseAccountsClient) ListMetricDefinitions(ctx context.Context, result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -1066,6 +1074,7 @@ func (client DatabaseAccountsClient) ListMetrics(ctx context.Context, resourceGr result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -1156,6 +1165,7 @@ func (client DatabaseAccountsClient) ListReadOnlyKeys(ctx context.Context, resou result, err = client.ListReadOnlyKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListReadOnlyKeys", resp, "Failure responding to request") + return } return @@ -1247,6 +1257,7 @@ func (client DatabaseAccountsClient) ListUsages(ctx context.Context, resourceGro result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/gremlinresources.go b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/gremlinresources.go index 67eb9784a135..926967a63bf3 100644 --- a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/gremlinresources.go +++ b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/gremlinresources.go @@ -481,6 +481,7 @@ func (client GremlinResourcesClient) GetGremlinDatabase(ctx context.Context, res result, err = client.GetGremlinDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "GetGremlinDatabase", resp, "Failure responding to request") + return } return @@ -573,6 +574,7 @@ func (client GremlinResourcesClient) GetGremlinDatabaseThroughput(ctx context.Co result, err = client.GetGremlinDatabaseThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "GetGremlinDatabaseThroughput", resp, "Failure responding to request") + return } return @@ -665,6 +667,7 @@ func (client GremlinResourcesClient) GetGremlinGraph(ctx context.Context, resour result, err = client.GetGremlinGraphResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "GetGremlinGraph", resp, "Failure responding to request") + return } return @@ -759,6 +762,7 @@ func (client GremlinResourcesClient) GetGremlinGraphThroughput(ctx context.Conte result, err = client.GetGremlinGraphThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "GetGremlinGraphThroughput", resp, "Failure responding to request") + return } return @@ -850,6 +854,7 @@ func (client GremlinResourcesClient) ListGremlinDatabases(ctx context.Context, r result, err = client.ListGremlinDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "ListGremlinDatabases", resp, "Failure responding to request") + return } return @@ -940,6 +945,7 @@ func (client GremlinResourcesClient) ListGremlinGraphs(ctx context.Context, reso result, err = client.ListGremlinGraphsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "ListGremlinGraphs", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/mongodbresources.go b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/mongodbresources.go index 83b5b3a8a989..1ba1cf89ebfb 100644 --- a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/mongodbresources.go +++ b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/mongodbresources.go @@ -474,6 +474,7 @@ func (client MongoDBResourcesClient) GetMongoDBCollection(ctx context.Context, r result, err = client.GetMongoDBCollectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "GetMongoDBCollection", resp, "Failure responding to request") + return } return @@ -568,6 +569,7 @@ func (client MongoDBResourcesClient) GetMongoDBCollectionThroughput(ctx context. result, err = client.GetMongoDBCollectionThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "GetMongoDBCollectionThroughput", resp, "Failure responding to request") + return } return @@ -661,6 +663,7 @@ func (client MongoDBResourcesClient) GetMongoDBDatabase(ctx context.Context, res result, err = client.GetMongoDBDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "GetMongoDBDatabase", resp, "Failure responding to request") + return } return @@ -753,6 +756,7 @@ func (client MongoDBResourcesClient) GetMongoDBDatabaseThroughput(ctx context.Co result, err = client.GetMongoDBDatabaseThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "GetMongoDBDatabaseThroughput", resp, "Failure responding to request") + return } return @@ -844,6 +848,7 @@ func (client MongoDBResourcesClient) ListMongoDBCollections(ctx context.Context, result, err = client.ListMongoDBCollectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "ListMongoDBCollections", resp, "Failure responding to request") + return } return @@ -934,6 +939,7 @@ func (client MongoDBResourcesClient) ListMongoDBDatabases(ctx context.Context, r result, err = client.ListMongoDBDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "ListMongoDBDatabases", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/notebookworkspaces.go b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/notebookworkspaces.go index aa74bf3f4fe0..25e94818fd42 100644 --- a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/notebookworkspaces.go +++ b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/notebookworkspaces.go @@ -270,6 +270,7 @@ func (client NotebookWorkspacesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.NotebookWorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -360,6 +361,7 @@ func (client NotebookWorkspacesClient) ListByDatabaseAccount(ctx context.Context result, err = client.ListByDatabaseAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.NotebookWorkspacesClient", "ListByDatabaseAccount", resp, "Failure responding to request") + return } return @@ -449,6 +451,7 @@ func (client NotebookWorkspacesClient) ListConnectionInfo(ctx context.Context, r result, err = client.ListConnectionInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.NotebookWorkspacesClient", "ListConnectionInfo", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/operations.go b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/operations.go index c5c49cf044c8..f73bf19a6b8b 100644 --- a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/operations.go +++ b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/partitionkeyrangeid.go b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/partitionkeyrangeid.go index b7c14ce7e3e4..1310a23f037d 100644 --- a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/partitionkeyrangeid.go +++ b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/partitionkeyrangeid.go @@ -94,6 +94,7 @@ func (client PartitionKeyRangeIDClient) ListMetrics(ctx context.Context, resourc result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PartitionKeyRangeIDClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/partitionkeyrangeidregion.go b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/partitionkeyrangeidregion.go index 92ed8964824d..d0231f673063 100644 --- a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/partitionkeyrangeidregion.go +++ b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/partitionkeyrangeidregion.go @@ -95,6 +95,7 @@ func (client PartitionKeyRangeIDRegionClient) ListMetrics(ctx context.Context, r result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PartitionKeyRangeIDRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/percentile.go b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/percentile.go index 2c2979083b85..98124441aff9 100644 --- a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/percentile.go +++ b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/percentile.go @@ -91,6 +91,7 @@ func (client PercentileClient) ListMetrics(ctx context.Context, resourceGroupNam result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PercentileClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/percentilesourcetarget.go b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/percentilesourcetarget.go index e9fc420b2f74..cc47c49c074e 100644 --- a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/percentilesourcetarget.go +++ b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/percentilesourcetarget.go @@ -96,6 +96,7 @@ func (client PercentileSourceTargetClient) ListMetrics(ctx context.Context, reso result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PercentileSourceTargetClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/percentiletarget.go b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/percentiletarget.go index c27f403d1a20..af8c094160f3 100644 --- a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/percentiletarget.go +++ b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/percentiletarget.go @@ -94,6 +94,7 @@ func (client PercentileTargetClient) ListMetrics(ctx context.Context, resourceGr result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PercentileTargetClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/privateendpointconnections.go b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/privateendpointconnections.go index e4646d97e623..6f7065f71b97 100644 --- a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/privateendpointconnections.go +++ b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/privateendpointconnections.go @@ -272,6 +272,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -362,6 +363,7 @@ func (client PrivateEndpointConnectionsClient) ListByDatabaseAccount(ctx context result, err = client.ListByDatabaseAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PrivateEndpointConnectionsClient", "ListByDatabaseAccount", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/privatelinkresources.go b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/privatelinkresources.go index 1d64a0c10774..0af52cb6739f 100644 --- a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/privatelinkresources.go +++ b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/privatelinkresources.go @@ -89,6 +89,7 @@ func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PrivateLinkResourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client PrivateLinkResourcesClient) ListByDatabaseAccount(ctx context.Conte result, err = client.ListByDatabaseAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PrivateLinkResourcesClient", "ListByDatabaseAccount", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/sqlresources.go b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/sqlresources.go index 1104b7c3acd9..ecddf3df8440 100644 --- a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/sqlresources.go +++ b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/sqlresources.go @@ -1075,6 +1075,7 @@ func (client SQLResourcesClient) GetSQLContainer(ctx context.Context, resourceGr result, err = client.GetSQLContainerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLContainer", resp, "Failure responding to request") + return } return @@ -1169,6 +1170,7 @@ func (client SQLResourcesClient) GetSQLContainerThroughput(ctx context.Context, result, err = client.GetSQLContainerThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLContainerThroughput", resp, "Failure responding to request") + return } return @@ -1261,6 +1263,7 @@ func (client SQLResourcesClient) GetSQLDatabase(ctx context.Context, resourceGro result, err = client.GetSQLDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLDatabase", resp, "Failure responding to request") + return } return @@ -1353,6 +1356,7 @@ func (client SQLResourcesClient) GetSQLDatabaseThroughput(ctx context.Context, r result, err = client.GetSQLDatabaseThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLDatabaseThroughput", resp, "Failure responding to request") + return } return @@ -1446,6 +1450,7 @@ func (client SQLResourcesClient) GetSQLStoredProcedure(ctx context.Context, reso result, err = client.GetSQLStoredProcedureResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLStoredProcedure", resp, "Failure responding to request") + return } return @@ -1541,6 +1546,7 @@ func (client SQLResourcesClient) GetSQLTrigger(ctx context.Context, resourceGrou result, err = client.GetSQLTriggerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLTrigger", resp, "Failure responding to request") + return } return @@ -1636,6 +1642,7 @@ func (client SQLResourcesClient) GetSQLUserDefinedFunction(ctx context.Context, result, err = client.GetSQLUserDefinedFunctionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLUserDefinedFunction", resp, "Failure responding to request") + return } return @@ -1729,6 +1736,7 @@ func (client SQLResourcesClient) ListSQLContainers(ctx context.Context, resource result, err = client.ListSQLContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLContainers", resp, "Failure responding to request") + return } return @@ -1819,6 +1827,7 @@ func (client SQLResourcesClient) ListSQLDatabases(ctx context.Context, resourceG result, err = client.ListSQLDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLDatabases", resp, "Failure responding to request") + return } return @@ -1910,6 +1919,7 @@ func (client SQLResourcesClient) ListSQLStoredProcedures(ctx context.Context, re result, err = client.ListSQLStoredProceduresResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLStoredProcedures", resp, "Failure responding to request") + return } return @@ -2003,6 +2013,7 @@ func (client SQLResourcesClient) ListSQLTriggers(ctx context.Context, resourceGr result, err = client.ListSQLTriggersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLTriggers", resp, "Failure responding to request") + return } return @@ -2096,6 +2107,7 @@ func (client SQLResourcesClient) ListSQLUserDefinedFunctions(ctx context.Context result, err = client.ListSQLUserDefinedFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLUserDefinedFunctions", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/tableresources.go b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/tableresources.go index cd05e661f2da..3e029f6911ba 100644 --- a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/tableresources.go +++ b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/tableresources.go @@ -278,6 +278,7 @@ func (client TableResourcesClient) GetTable(ctx context.Context, resourceGroupNa result, err = client.GetTableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.TableResourcesClient", "GetTable", resp, "Failure responding to request") + return } return @@ -370,6 +371,7 @@ func (client TableResourcesClient) GetTableThroughput(ctx context.Context, resou result, err = client.GetTableThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.TableResourcesClient", "GetTableThroughput", resp, "Failure responding to request") + return } return @@ -460,6 +462,7 @@ func (client TableResourcesClient) ListTables(ctx context.Context, resourceGroup result, err = client.ListTablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.TableResourcesClient", "ListTables", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/cassandraresources.go b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/cassandraresources.go index f1bc3045d203..1db7f8f13ff8 100644 --- a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/cassandraresources.go +++ b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/cassandraresources.go @@ -474,6 +474,7 @@ func (client CassandraResourcesClient) GetCassandraKeyspace(ctx context.Context, result, err = client.GetCassandraKeyspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "GetCassandraKeyspace", resp, "Failure responding to request") + return } return @@ -566,6 +567,7 @@ func (client CassandraResourcesClient) GetCassandraKeyspaceThroughput(ctx contex result, err = client.GetCassandraKeyspaceThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "GetCassandraKeyspaceThroughput", resp, "Failure responding to request") + return } return @@ -658,6 +660,7 @@ func (client CassandraResourcesClient) GetCassandraTable(ctx context.Context, re result, err = client.GetCassandraTableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "GetCassandraTable", resp, "Failure responding to request") + return } return @@ -752,6 +755,7 @@ func (client CassandraResourcesClient) GetCassandraTableThroughput(ctx context.C result, err = client.GetCassandraTableThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "GetCassandraTableThroughput", resp, "Failure responding to request") + return } return @@ -843,6 +847,7 @@ func (client CassandraResourcesClient) ListCassandraKeyspaces(ctx context.Contex result, err = client.ListCassandraKeyspacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "ListCassandraKeyspaces", resp, "Failure responding to request") + return } return @@ -933,6 +938,7 @@ func (client CassandraResourcesClient) ListCassandraTables(ctx context.Context, result, err = client.ListCassandraTablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CassandraResourcesClient", "ListCassandraTables", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/collection.go b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/collection.go index bcdb63768ee9..552b2bdebe59 100644 --- a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/collection.go +++ b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/collection.go @@ -89,6 +89,7 @@ func (client CollectionClient) ListMetricDefinitions(ctx context.Context, resour result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client CollectionClient) ListMetrics(ctx context.Context, resourceGroupNam result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -281,6 +283,7 @@ func (client CollectionClient) ListUsages(ctx context.Context, resourceGroupName result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/collectionpartition.go b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/collectionpartition.go index fac480d87779..f7e441167fe3 100644 --- a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/collectionpartition.go +++ b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/collectionpartition.go @@ -93,6 +93,7 @@ func (client CollectionPartitionClient) ListMetrics(ctx context.Context, resourc result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionPartitionClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -189,6 +190,7 @@ func (client CollectionPartitionClient) ListUsages(ctx context.Context, resource result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionPartitionClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/collectionpartitionregion.go b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/collectionpartitionregion.go index 4f9bbfb78c6f..a214f1cbfc17 100644 --- a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/collectionpartitionregion.go +++ b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/collectionpartitionregion.go @@ -95,6 +95,7 @@ func (client CollectionPartitionRegionClient) ListMetrics(ctx context.Context, r result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionPartitionRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/collectionregion.go b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/collectionregion.go index dde6860be9c7..33e11751fb42 100644 --- a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/collectionregion.go +++ b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/collectionregion.go @@ -95,6 +95,7 @@ func (client CollectionRegionClient) ListMetrics(ctx context.Context, resourceGr result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.CollectionRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/database.go b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/database.go index 469addb186c9..feeb2ef887fa 100644 --- a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/database.go +++ b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/database.go @@ -88,6 +88,7 @@ func (client DatabaseClient) ListMetricDefinitions(ctx context.Context, resource result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -182,6 +183,7 @@ func (client DatabaseClient) ListMetrics(ctx context.Context, resourceGroupName result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -276,6 +278,7 @@ func (client DatabaseClient) ListUsages(ctx context.Context, resourceGroupName s result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/databaseaccountregion.go b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/databaseaccountregion.go index 3f7d54b98c21..a9c97ae120cf 100644 --- a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/databaseaccountregion.go +++ b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/databaseaccountregion.go @@ -92,6 +92,7 @@ func (client DatabaseAccountRegionClient) ListMetrics(ctx context.Context, resou result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/databaseaccounts.go b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/databaseaccounts.go index 49c6e7fb87a9..bcd80dd98598 100644 --- a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/databaseaccounts.go +++ b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/databaseaccounts.go @@ -82,6 +82,7 @@ func (client DatabaseAccountsClient) CheckNameExists(ctx context.Context, accoun result, err = client.CheckNameExistsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "CheckNameExists", resp, "Failure responding to request") + return } return @@ -459,6 +460,7 @@ func (client DatabaseAccountsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -548,6 +550,7 @@ func (client DatabaseAccountsClient) GetReadOnlyKeys(ctx context.Context, resour result, err = client.GetReadOnlyKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetReadOnlyKeys", resp, "Failure responding to request") + return } return @@ -626,6 +629,7 @@ func (client DatabaseAccountsClient) List(ctx context.Context) (result DatabaseA result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "List", resp, "Failure responding to request") + return } return @@ -708,6 +712,7 @@ func (client DatabaseAccountsClient) ListByResourceGroup(ctx context.Context, re result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -796,6 +801,7 @@ func (client DatabaseAccountsClient) ListConnectionStrings(ctx context.Context, result, err = client.ListConnectionStringsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListConnectionStrings", resp, "Failure responding to request") + return } return @@ -885,6 +891,7 @@ func (client DatabaseAccountsClient) ListKeys(ctx context.Context, resourceGroup result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -974,6 +981,7 @@ func (client DatabaseAccountsClient) ListMetricDefinitions(ctx context.Context, result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -1066,6 +1074,7 @@ func (client DatabaseAccountsClient) ListMetrics(ctx context.Context, resourceGr result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -1156,6 +1165,7 @@ func (client DatabaseAccountsClient) ListReadOnlyKeys(ctx context.Context, resou result, err = client.ListReadOnlyKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListReadOnlyKeys", resp, "Failure responding to request") + return } return @@ -1247,6 +1257,7 @@ func (client DatabaseAccountsClient) ListUsages(ctx context.Context, resourceGro result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/gremlinresources.go b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/gremlinresources.go index 12bdc38e1e7c..c57f86b795e3 100644 --- a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/gremlinresources.go +++ b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/gremlinresources.go @@ -481,6 +481,7 @@ func (client GremlinResourcesClient) GetGremlinDatabase(ctx context.Context, res result, err = client.GetGremlinDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "GetGremlinDatabase", resp, "Failure responding to request") + return } return @@ -573,6 +574,7 @@ func (client GremlinResourcesClient) GetGremlinDatabaseThroughput(ctx context.Co result, err = client.GetGremlinDatabaseThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "GetGremlinDatabaseThroughput", resp, "Failure responding to request") + return } return @@ -665,6 +667,7 @@ func (client GremlinResourcesClient) GetGremlinGraph(ctx context.Context, resour result, err = client.GetGremlinGraphResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "GetGremlinGraph", resp, "Failure responding to request") + return } return @@ -759,6 +762,7 @@ func (client GremlinResourcesClient) GetGremlinGraphThroughput(ctx context.Conte result, err = client.GetGremlinGraphThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "GetGremlinGraphThroughput", resp, "Failure responding to request") + return } return @@ -850,6 +854,7 @@ func (client GremlinResourcesClient) ListGremlinDatabases(ctx context.Context, r result, err = client.ListGremlinDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "ListGremlinDatabases", resp, "Failure responding to request") + return } return @@ -940,6 +945,7 @@ func (client GremlinResourcesClient) ListGremlinGraphs(ctx context.Context, reso result, err = client.ListGremlinGraphsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.GremlinResourcesClient", "ListGremlinGraphs", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/mongodbresources.go b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/mongodbresources.go index 987616f21663..14309257de82 100644 --- a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/mongodbresources.go +++ b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/mongodbresources.go @@ -474,6 +474,7 @@ func (client MongoDBResourcesClient) GetMongoDBCollection(ctx context.Context, r result, err = client.GetMongoDBCollectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "GetMongoDBCollection", resp, "Failure responding to request") + return } return @@ -568,6 +569,7 @@ func (client MongoDBResourcesClient) GetMongoDBCollectionThroughput(ctx context. result, err = client.GetMongoDBCollectionThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "GetMongoDBCollectionThroughput", resp, "Failure responding to request") + return } return @@ -661,6 +663,7 @@ func (client MongoDBResourcesClient) GetMongoDBDatabase(ctx context.Context, res result, err = client.GetMongoDBDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "GetMongoDBDatabase", resp, "Failure responding to request") + return } return @@ -753,6 +756,7 @@ func (client MongoDBResourcesClient) GetMongoDBDatabaseThroughput(ctx context.Co result, err = client.GetMongoDBDatabaseThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "GetMongoDBDatabaseThroughput", resp, "Failure responding to request") + return } return @@ -844,6 +848,7 @@ func (client MongoDBResourcesClient) ListMongoDBCollections(ctx context.Context, result, err = client.ListMongoDBCollectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "ListMongoDBCollections", resp, "Failure responding to request") + return } return @@ -934,6 +939,7 @@ func (client MongoDBResourcesClient) ListMongoDBDatabases(ctx context.Context, r result, err = client.ListMongoDBDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.MongoDBResourcesClient", "ListMongoDBDatabases", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/notebookworkspaces.go b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/notebookworkspaces.go index c46178549a81..1f2c5de98c9e 100644 --- a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/notebookworkspaces.go +++ b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/notebookworkspaces.go @@ -270,6 +270,7 @@ func (client NotebookWorkspacesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.NotebookWorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -360,6 +361,7 @@ func (client NotebookWorkspacesClient) ListByDatabaseAccount(ctx context.Context result, err = client.ListByDatabaseAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.NotebookWorkspacesClient", "ListByDatabaseAccount", resp, "Failure responding to request") + return } return @@ -449,6 +451,7 @@ func (client NotebookWorkspacesClient) ListConnectionInfo(ctx context.Context, r result, err = client.ListConnectionInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.NotebookWorkspacesClient", "ListConnectionInfo", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/operations.go b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/operations.go index 263e5437e84a..b60d186818fa 100644 --- a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/operations.go +++ b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/partitionkeyrangeid.go b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/partitionkeyrangeid.go index 0252fea11731..4f0f019e4afc 100644 --- a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/partitionkeyrangeid.go +++ b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/partitionkeyrangeid.go @@ -94,6 +94,7 @@ func (client PartitionKeyRangeIDClient) ListMetrics(ctx context.Context, resourc result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PartitionKeyRangeIDClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/partitionkeyrangeidregion.go b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/partitionkeyrangeidregion.go index a01649eeece4..b709d89cf495 100644 --- a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/partitionkeyrangeidregion.go +++ b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/partitionkeyrangeidregion.go @@ -95,6 +95,7 @@ func (client PartitionKeyRangeIDRegionClient) ListMetrics(ctx context.Context, r result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PartitionKeyRangeIDRegionClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/percentile.go b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/percentile.go index d0a37f06dbc4..e63d0ab47b26 100644 --- a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/percentile.go +++ b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/percentile.go @@ -91,6 +91,7 @@ func (client PercentileClient) ListMetrics(ctx context.Context, resourceGroupNam result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PercentileClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/percentilesourcetarget.go b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/percentilesourcetarget.go index 8c78e13a26af..823d43eba8de 100644 --- a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/percentilesourcetarget.go +++ b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/percentilesourcetarget.go @@ -96,6 +96,7 @@ func (client PercentileSourceTargetClient) ListMetrics(ctx context.Context, reso result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PercentileSourceTargetClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/percentiletarget.go b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/percentiletarget.go index b279efe640b0..6d1c4196718a 100644 --- a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/percentiletarget.go +++ b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/percentiletarget.go @@ -94,6 +94,7 @@ func (client PercentileTargetClient) ListMetrics(ctx context.Context, resourceGr result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PercentileTargetClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/privateendpointconnections.go b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/privateendpointconnections.go index 03e3d0218317..8cf11d82433f 100644 --- a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/privateendpointconnections.go +++ b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/privateendpointconnections.go @@ -272,6 +272,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -362,6 +363,7 @@ func (client PrivateEndpointConnectionsClient) ListByDatabaseAccount(ctx context result, err = client.ListByDatabaseAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PrivateEndpointConnectionsClient", "ListByDatabaseAccount", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/privatelinkresources.go b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/privatelinkresources.go index 38c39d8bbe04..b3160d6879ee 100644 --- a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/privatelinkresources.go +++ b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/privatelinkresources.go @@ -89,6 +89,7 @@ func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PrivateLinkResourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client PrivateLinkResourcesClient) ListByDatabaseAccount(ctx context.Conte result, err = client.ListByDatabaseAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.PrivateLinkResourcesClient", "ListByDatabaseAccount", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/restorabledatabaseaccounts.go b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/restorabledatabaseaccounts.go index 9dd543bae10b..60d3715dcc10 100644 --- a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/restorabledatabaseaccounts.go +++ b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/restorabledatabaseaccounts.go @@ -80,6 +80,7 @@ func (client RestorableDatabaseAccountsClient) GetByLocation(ctx context.Context result, err = client.GetByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.RestorableDatabaseAccountsClient", "GetByLocation", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client RestorableDatabaseAccountsClient) List(ctx context.Context) (result result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.RestorableDatabaseAccountsClient", "List", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client RestorableDatabaseAccountsClient) ListByLocation(ctx context.Contex result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.RestorableDatabaseAccountsClient", "ListByLocation", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/sqlresources.go b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/sqlresources.go index 4e5e066830f0..6856dc48314c 100644 --- a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/sqlresources.go +++ b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/sqlresources.go @@ -1443,6 +1443,7 @@ func (client SQLResourcesClient) GetSQLContainer(ctx context.Context, resourceGr result, err = client.GetSQLContainerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLContainer", resp, "Failure responding to request") + return } return @@ -1537,6 +1538,7 @@ func (client SQLResourcesClient) GetSQLContainerThroughput(ctx context.Context, result, err = client.GetSQLContainerThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLContainerThroughput", resp, "Failure responding to request") + return } return @@ -1629,6 +1631,7 @@ func (client SQLResourcesClient) GetSQLDatabase(ctx context.Context, resourceGro result, err = client.GetSQLDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLDatabase", resp, "Failure responding to request") + return } return @@ -1721,6 +1724,7 @@ func (client SQLResourcesClient) GetSQLDatabaseThroughput(ctx context.Context, r result, err = client.GetSQLDatabaseThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLDatabaseThroughput", resp, "Failure responding to request") + return } return @@ -1812,6 +1816,7 @@ func (client SQLResourcesClient) GetSQLRoleAssignment(ctx context.Context, roleA result, err = client.GetSQLRoleAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLRoleAssignment", resp, "Failure responding to request") + return } return @@ -1903,6 +1908,7 @@ func (client SQLResourcesClient) GetSQLRoleDefinition(ctx context.Context, roleD result, err = client.GetSQLRoleDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLRoleDefinition", resp, "Failure responding to request") + return } return @@ -1996,6 +2002,7 @@ func (client SQLResourcesClient) GetSQLStoredProcedure(ctx context.Context, reso result, err = client.GetSQLStoredProcedureResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLStoredProcedure", resp, "Failure responding to request") + return } return @@ -2091,6 +2098,7 @@ func (client SQLResourcesClient) GetSQLTrigger(ctx context.Context, resourceGrou result, err = client.GetSQLTriggerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLTrigger", resp, "Failure responding to request") + return } return @@ -2186,6 +2194,7 @@ func (client SQLResourcesClient) GetSQLUserDefinedFunction(ctx context.Context, result, err = client.GetSQLUserDefinedFunctionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "GetSQLUserDefinedFunction", resp, "Failure responding to request") + return } return @@ -2279,6 +2288,7 @@ func (client SQLResourcesClient) ListSQLContainers(ctx context.Context, resource result, err = client.ListSQLContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLContainers", resp, "Failure responding to request") + return } return @@ -2369,6 +2379,7 @@ func (client SQLResourcesClient) ListSQLDatabases(ctx context.Context, resourceG result, err = client.ListSQLDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLDatabases", resp, "Failure responding to request") + return } return @@ -2458,6 +2469,7 @@ func (client SQLResourcesClient) ListSQLRoleAssignments(ctx context.Context, res result, err = client.ListSQLRoleAssignmentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLRoleAssignments", resp, "Failure responding to request") + return } return @@ -2547,6 +2559,7 @@ func (client SQLResourcesClient) ListSQLRoleDefinitions(ctx context.Context, res result, err = client.ListSQLRoleDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLRoleDefinitions", resp, "Failure responding to request") + return } return @@ -2638,6 +2651,7 @@ func (client SQLResourcesClient) ListSQLStoredProcedures(ctx context.Context, re result, err = client.ListSQLStoredProceduresResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLStoredProcedures", resp, "Failure responding to request") + return } return @@ -2731,6 +2745,7 @@ func (client SQLResourcesClient) ListSQLTriggers(ctx context.Context, resourceGr result, err = client.ListSQLTriggersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLTriggers", resp, "Failure responding to request") + return } return @@ -2824,6 +2839,7 @@ func (client SQLResourcesClient) ListSQLUserDefinedFunctions(ctx context.Context result, err = client.ListSQLUserDefinedFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.SQLResourcesClient", "ListSQLUserDefinedFunctions", resp, "Failure responding to request") + return } return diff --git a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/tableresources.go b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/tableresources.go index 8b879a2115b8..d197276c1c71 100644 --- a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/tableresources.go +++ b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/tableresources.go @@ -278,6 +278,7 @@ func (client TableResourcesClient) GetTable(ctx context.Context, resourceGroupNa result, err = client.GetTableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.TableResourcesClient", "GetTable", resp, "Failure responding to request") + return } return @@ -370,6 +371,7 @@ func (client TableResourcesClient) GetTableThroughput(ctx context.Context, resou result, err = client.GetTableThroughputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.TableResourcesClient", "GetTableThroughput", resp, "Failure responding to request") + return } return @@ -460,6 +462,7 @@ func (client TableResourcesClient) ListTables(ctx context.Context, resourceGroup result, err = client.ListTablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "documentdb.TableResourcesClient", "ListTables", resp, "Failure responding to request") + return } return diff --git a/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/alerts.go b/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/alerts.go index 159e08c750e3..e8415cf9ed5f 100644 --- a/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/alerts.go +++ b/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/alerts.go @@ -73,6 +73,7 @@ func (client AlertsClient) GetAlertByManagementGroups(ctx context.Context, manag result, err = client.GetAlertByManagementGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.AlertsClient", "GetAlertByManagementGroups", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client AlertsClient) GetByAccount(ctx context.Context, billingAccountID st result, err = client.GetByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.AlertsClient", "GetByAccount", resp, "Failure responding to request") + return } return @@ -224,6 +226,7 @@ func (client AlertsClient) GetByDepartment(ctx context.Context, billingAccountID result, err = client.GetByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.AlertsClient", "GetByDepartment", resp, "Failure responding to request") + return } return @@ -299,6 +302,7 @@ func (client AlertsClient) GetByEnrollment(ctx context.Context, billingAccountID result, err = client.GetByEnrollmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.AlertsClient", "GetByEnrollment", resp, "Failure responding to request") + return } return @@ -373,6 +377,7 @@ func (client AlertsClient) GetByResourceGroupName(ctx context.Context, resourceG result, err = client.GetByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.AlertsClient", "GetByResourceGroupName", resp, "Failure responding to request") + return } return @@ -447,6 +452,7 @@ func (client AlertsClient) GetBySubscription(ctx context.Context, alertID string result, err = client.GetBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.AlertsClient", "GetBySubscription", resp, "Failure responding to request") + return } return @@ -536,6 +542,7 @@ func (client AlertsClient) List(ctx context.Context, filter string, skiptoken st result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.AlertsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -607,6 +614,7 @@ func (client AlertsClient) listNextResults(ctx context.Context, lastResults Aler result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.AlertsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -675,6 +683,7 @@ func (client AlertsClient) ListByAccount(ctx context.Context, billingAccountID s result.alr, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.AlertsClient", "ListByAccount", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -747,6 +756,7 @@ func (client AlertsClient) listByAccountNextResults(ctx context.Context, lastRes result, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.AlertsClient", "listByAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -815,6 +825,7 @@ func (client AlertsClient) ListByDepartment(ctx context.Context, billingAccountI result.alr, err = client.ListByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.AlertsClient", "ListByDepartment", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -887,6 +898,7 @@ func (client AlertsClient) listByDepartmentNextResults(ctx context.Context, last result, err = client.ListByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.AlertsClient", "listByDepartmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -954,6 +966,7 @@ func (client AlertsClient) ListByEnrollment(ctx context.Context, billingAccountI result.alr, err = client.ListByEnrollmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.AlertsClient", "ListByEnrollment", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1025,6 +1038,7 @@ func (client AlertsClient) listByEnrollmentNextResults(ctx context.Context, last result, err = client.ListByEnrollmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.AlertsClient", "listByEnrollmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -1092,6 +1106,7 @@ func (client AlertsClient) ListByManagementGroups(ctx context.Context, managemen result.alr, err = client.ListByManagementGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.AlertsClient", "ListByManagementGroups", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1163,6 +1178,7 @@ func (client AlertsClient) listByManagementGroupsNextResults(ctx context.Context result, err = client.ListByManagementGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.AlertsClient", "listByManagementGroupsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1230,6 +1246,7 @@ func (client AlertsClient) ListByResourceGroupName(ctx context.Context, resource result.alr, err = client.ListByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.AlertsClient", "ListByResourceGroupName", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1302,6 +1319,7 @@ func (client AlertsClient) listByResourceGroupNameNextResults(ctx context.Contex result, err = client.ListByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.AlertsClient", "listByResourceGroupNameNextResults", resp, "Failure responding to next results request") + return } return } @@ -1354,6 +1372,7 @@ func (client AlertsClient) UpdateBillingAccountAlertStatus(ctx context.Context, result, err = client.UpdateBillingAccountAlertStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.AlertsClient", "UpdateBillingAccountAlertStatus", resp, "Failure responding to request") + return } return @@ -1435,6 +1454,7 @@ func (client AlertsClient) UpdateDepartmentsAlertStatus(ctx context.Context, bil result, err = client.UpdateDepartmentsAlertStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.AlertsClient", "UpdateDepartmentsAlertStatus", resp, "Failure responding to request") + return } return @@ -1517,6 +1537,7 @@ func (client AlertsClient) UpdateEnrollmentAccountAlertStatus(ctx context.Contex result, err = client.UpdateEnrollmentAccountAlertStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.AlertsClient", "UpdateEnrollmentAccountAlertStatus", resp, "Failure responding to request") + return } return @@ -1598,6 +1619,7 @@ func (client AlertsClient) UpdateManagementGroupAlertStatus(ctx context.Context, result, err = client.UpdateManagementGroupAlertStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.AlertsClient", "UpdateManagementGroupAlertStatus", resp, "Failure responding to request") + return } return @@ -1678,6 +1700,7 @@ func (client AlertsClient) UpdateResourceGroupNameAlertStatus(ctx context.Contex result, err = client.UpdateResourceGroupNameAlertStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.AlertsClient", "UpdateResourceGroupNameAlertStatus", resp, "Failure responding to request") + return } return @@ -1758,6 +1781,7 @@ func (client AlertsClient) UpdateSubscriptionAlertStatus(ctx context.Context, al result, err = client.UpdateSubscriptionAlertStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.AlertsClient", "UpdateSubscriptionAlertStatus", resp, "Failure responding to request") + return } return diff --git a/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/billingaccountdimensions.go b/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/billingaccountdimensions.go index 3d7b45eb6920..5e30251ed9af 100644 --- a/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/billingaccountdimensions.go +++ b/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/billingaccountdimensions.go @@ -90,6 +90,7 @@ func (client BillingAccountDimensionsClient) List(ctx context.Context, billingAc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.BillingAccountDimensionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/client.go b/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/client.go index aca37e851ec6..890d8c01116e 100644 --- a/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/client.go +++ b/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/client.go @@ -120,6 +120,7 @@ func (client BaseClient) QueryBillingAccount(ctx context.Context, billingAccount result, err = client.QueryBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.BaseClient", "QueryBillingAccount", resp, "Failure responding to request") + return } return @@ -228,6 +229,7 @@ func (client BaseClient) QueryResourceGroup(ctx context.Context, resourceGroupNa result, err = client.QueryResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.BaseClient", "QueryResourceGroup", resp, "Failure responding to request") + return } return @@ -336,6 +338,7 @@ func (client BaseClient) QuerySubscription(ctx context.Context, parameters Repor result, err = client.QuerySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.BaseClient", "QuerySubscription", resp, "Failure responding to request") + return } return diff --git a/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/connector.go b/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/connector.go index 07d35d1fbc28..9911a01fed71 100644 --- a/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/connector.go +++ b/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/connector.go @@ -73,6 +73,7 @@ func (client ConnectorClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ConnectorClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client ConnectorClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ConnectorClient", "Delete", resp, "Failure responding to request") + return } return @@ -227,6 +229,7 @@ func (client ConnectorClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ConnectorClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +302,7 @@ func (client ConnectorClient) List(ctx context.Context) (result ConnectorDefinit result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ConnectorClient", "List", resp, "Failure responding to request") + return } return @@ -371,6 +375,7 @@ func (client ConnectorClient) ListByResourceGroupName(ctx context.Context, resou result, err = client.ListByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ConnectorClient", "ListByResourceGroupName", resp, "Failure responding to request") + return } return @@ -446,6 +451,7 @@ func (client ConnectorClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ConnectorClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/operations.go b/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/operations.go index 883e32bdab1e..2317e72c1c78 100644 --- a/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/operations.go +++ b/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/reports.go b/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/reports.go index 5d37c37a6ce7..70f7b5403170 100644 --- a/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/reports.go +++ b/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/reports.go @@ -86,6 +86,7 @@ func (client ReportsClient) CreateOrUpdate(ctx context.Context, reportName strin result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client ReportsClient) CreateOrUpdateByBillingAccount(ctx context.Context, result, err = client.CreateOrUpdateByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportsClient", "CreateOrUpdateByBillingAccount", resp, "Failure responding to request") + return } return @@ -266,6 +268,7 @@ func (client ReportsClient) CreateOrUpdateByDepartment(ctx context.Context, depa result, err = client.CreateOrUpdateByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportsClient", "CreateOrUpdateByDepartment", resp, "Failure responding to request") + return } return @@ -356,6 +359,7 @@ func (client ReportsClient) CreateOrUpdateByResourceGroupName(ctx context.Contex result, err = client.CreateOrUpdateByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportsClient", "CreateOrUpdateByResourceGroupName", resp, "Failure responding to request") + return } return @@ -432,6 +436,7 @@ func (client ReportsClient) Delete(ctx context.Context, reportName string) (resu result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportsClient", "Delete", resp, "Failure responding to request") + return } return @@ -505,6 +510,7 @@ func (client ReportsClient) DeleteByBillingAccount(ctx context.Context, billingA result, err = client.DeleteByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportsClient", "DeleteByBillingAccount", resp, "Failure responding to request") + return } return @@ -578,6 +584,7 @@ func (client ReportsClient) DeleteByDepartment(ctx context.Context, departmentID result, err = client.DeleteByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportsClient", "DeleteByDepartment", resp, "Failure responding to request") + return } return @@ -651,6 +658,7 @@ func (client ReportsClient) DeleteByResourceGroupName(ctx context.Context, resou result, err = client.DeleteByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportsClient", "DeleteByResourceGroupName", resp, "Failure responding to request") + return } return @@ -724,6 +732,7 @@ func (client ReportsClient) Execute(ctx context.Context, reportName string) (res result, err = client.ExecuteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportsClient", "Execute", resp, "Failure responding to request") + return } return @@ -797,6 +806,7 @@ func (client ReportsClient) ExecuteByBillingAccount(ctx context.Context, billing result, err = client.ExecuteByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportsClient", "ExecuteByBillingAccount", resp, "Failure responding to request") + return } return @@ -870,6 +880,7 @@ func (client ReportsClient) ExecuteByDepartment(ctx context.Context, departmentI result, err = client.ExecuteByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportsClient", "ExecuteByDepartment", resp, "Failure responding to request") + return } return @@ -943,6 +954,7 @@ func (client ReportsClient) ExecuteByResourceGroupName(ctx context.Context, reso result, err = client.ExecuteByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportsClient", "ExecuteByResourceGroupName", resp, "Failure responding to request") + return } return @@ -1016,6 +1028,7 @@ func (client ReportsClient) Get(ctx context.Context, reportName string) (result result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportsClient", "Get", resp, "Failure responding to request") + return } return @@ -1090,6 +1103,7 @@ func (client ReportsClient) GetByBillingAccount(ctx context.Context, billingAcco result, err = client.GetByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportsClient", "GetByBillingAccount", resp, "Failure responding to request") + return } return @@ -1164,6 +1178,7 @@ func (client ReportsClient) GetByDepartment(ctx context.Context, departmentID st result, err = client.GetByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportsClient", "GetByDepartment", resp, "Failure responding to request") + return } return @@ -1238,6 +1253,7 @@ func (client ReportsClient) GetByResourceGroupName(ctx context.Context, resource result, err = client.GetByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportsClient", "GetByResourceGroupName", resp, "Failure responding to request") + return } return @@ -1312,6 +1328,7 @@ func (client ReportsClient) GetExecutionHistory(ctx context.Context, reportName result, err = client.GetExecutionHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportsClient", "GetExecutionHistory", resp, "Failure responding to request") + return } return @@ -1386,6 +1403,7 @@ func (client ReportsClient) GetExecutionHistoryByBillingAccount(ctx context.Cont result, err = client.GetExecutionHistoryByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportsClient", "GetExecutionHistoryByBillingAccount", resp, "Failure responding to request") + return } return @@ -1460,6 +1478,7 @@ func (client ReportsClient) GetExecutionHistoryByDepartment(ctx context.Context, result, err = client.GetExecutionHistoryByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportsClient", "GetExecutionHistoryByDepartment", resp, "Failure responding to request") + return } return @@ -1534,6 +1553,7 @@ func (client ReportsClient) GetExecutionHistoryByResourceGroupName(ctx context.C result, err = client.GetExecutionHistoryByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportsClient", "GetExecutionHistoryByResourceGroupName", resp, "Failure responding to request") + return } return @@ -1606,6 +1626,7 @@ func (client ReportsClient) List(ctx context.Context) (result ReportListResult, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportsClient", "List", resp, "Failure responding to request") + return } return @@ -1678,6 +1699,7 @@ func (client ReportsClient) ListByBillingAccount(ctx context.Context, billingAcc result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportsClient", "ListByBillingAccount", resp, "Failure responding to request") + return } return @@ -1750,6 +1772,7 @@ func (client ReportsClient) ListByDepartment(ctx context.Context, departmentID s result, err = client.ListByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportsClient", "ListByDepartment", resp, "Failure responding to request") + return } return @@ -1822,6 +1845,7 @@ func (client ReportsClient) ListByResourceGroupName(ctx context.Context, resourc result, err = client.ListByResourceGroupNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ReportsClient", "ListByResourceGroupName", resp, "Failure responding to request") + return } return diff --git a/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/resourcegroupdimensions.go b/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/resourcegroupdimensions.go index 44f9dae098b6..3e8234179469 100644 --- a/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/resourcegroupdimensions.go +++ b/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/resourcegroupdimensions.go @@ -90,6 +90,7 @@ func (client ResourceGroupDimensionsClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ResourceGroupDimensionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/subscriptiondimensions.go b/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/subscriptiondimensions.go index af1fbb2cb866..6c53d43ad911 100644 --- a/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/subscriptiondimensions.go +++ b/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/subscriptiondimensions.go @@ -89,6 +89,7 @@ func (client SubscriptionDimensionsClient) List(ctx context.Context, filter stri result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.SubscriptionDimensionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/cloudconnector.go b/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/cloudconnector.go index 9bcb7cfd856c..87c80e5a9aab 100644 --- a/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/cloudconnector.go +++ b/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/cloudconnector.go @@ -72,6 +72,7 @@ func (client CloudConnectorClient) CreateOrUpdate(ctx context.Context, connector result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.CloudConnectorClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client CloudConnectorClient) Delete(ctx context.Context, connectorName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.CloudConnectorClient", "Delete", resp, "Failure responding to request") + return } return @@ -221,6 +223,7 @@ func (client CloudConnectorClient) Get(ctx context.Context, connectorName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.CloudConnectorClient", "Get", resp, "Failure responding to request") + return } return @@ -294,6 +297,7 @@ func (client CloudConnectorClient) List(ctx context.Context) (result ConnectorDe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.CloudConnectorClient", "List", resp, "Failure responding to request") + return } return @@ -363,6 +367,7 @@ func (client CloudConnectorClient) Update(ctx context.Context, connectorName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.CloudConnectorClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/connector.go b/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/connector.go index 5e8f56f31d8d..016a8308c8b1 100644 --- a/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/connector.go +++ b/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/connector.go @@ -71,6 +71,7 @@ func (client ConnectorClient) CheckEligibility(ctx context.Context, connectorCre result, err = client.CheckEligibilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ConnectorClient", "CheckEligibility", resp, "Failure responding to request") + return } return diff --git a/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/dimensions.go b/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/dimensions.go index fd26f7157ece..229a576a9371 100644 --- a/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/dimensions.go +++ b/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/dimensions.go @@ -89,6 +89,7 @@ func (client DimensionsClient) ListByBillingAccount(ctx context.Context, billing result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.DimensionsClient", "ListByBillingAccount", resp, "Failure responding to request") + return } return @@ -191,6 +192,7 @@ func (client DimensionsClient) ListByDepartment(ctx context.Context, billingAcco result, err = client.ListByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.DimensionsClient", "ListByDepartment", resp, "Failure responding to request") + return } return @@ -294,6 +296,7 @@ func (client DimensionsClient) ListByEnrollmentAccount(ctx context.Context, bill result, err = client.ListByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.DimensionsClient", "ListByEnrollmentAccount", resp, "Failure responding to request") + return } return @@ -396,6 +399,7 @@ func (client DimensionsClient) ListByManagementGroup(ctx context.Context, manage result, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.DimensionsClient", "ListByManagementGroup", resp, "Failure responding to request") + return } return @@ -497,6 +501,7 @@ func (client DimensionsClient) ListByResourceGroup(ctx context.Context, resource result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.DimensionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -598,6 +603,7 @@ func (client DimensionsClient) ListBySubscription(ctx context.Context, filter st result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.DimensionsClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/externalbillingaccount.go b/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/externalbillingaccount.go index 235e8322b3cc..c1a8b384624e 100644 --- a/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/externalbillingaccount.go +++ b/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/externalbillingaccount.go @@ -73,6 +73,7 @@ func (client ExternalBillingAccountClient) Get(ctx context.Context, externalBill result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ExternalBillingAccountClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client ExternalBillingAccountClient) List(ctx context.Context) (result Ext result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ExternalBillingAccountClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/externalsubscription.go b/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/externalsubscription.go index 1c00317bfd0f..7ce33a8d507a 100644 --- a/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/externalsubscription.go +++ b/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/externalsubscription.go @@ -73,6 +73,7 @@ func (client ExternalSubscriptionClient) Get(ctx context.Context, externalSubscr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ExternalSubscriptionClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client ExternalSubscriptionClient) List(ctx context.Context) (result Exter result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ExternalSubscriptionClient", "List", resp, "Failure responding to request") + return } return @@ -214,6 +216,7 @@ func (client ExternalSubscriptionClient) ListByExternalBillingAccount(ctx contex result, err = client.ListByExternalBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ExternalSubscriptionClient", "ListByExternalBillingAccount", resp, "Failure responding to request") + return } return @@ -288,6 +291,7 @@ func (client ExternalSubscriptionClient) ListByManagementGroup(ctx context.Conte result, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ExternalSubscriptionClient", "ListByManagementGroup", resp, "Failure responding to request") + return } return @@ -364,6 +368,7 @@ func (client ExternalSubscriptionClient) UpdateManagementGroup(ctx context.Conte result, err = client.UpdateManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ExternalSubscriptionClient", "UpdateManagementGroup", resp, "Failure responding to request") + return } return diff --git a/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/forecast.go b/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/forecast.go index 36a5754086ec..69acef592529 100644 --- a/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/forecast.go +++ b/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/forecast.go @@ -104,6 +104,7 @@ func (client ForecastClient) UsageByBillingAccount(ctx context.Context, billingA result, err = client.UsageByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ForecastClient", "UsageByBillingAccount", resp, "Failure responding to request") + return } return @@ -211,6 +212,7 @@ func (client ForecastClient) UsageByDepartment(ctx context.Context, billingAccou result, err = client.UsageByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ForecastClient", "UsageByDepartment", resp, "Failure responding to request") + return } return @@ -319,6 +321,7 @@ func (client ForecastClient) UsageByEnrollmentAccount(ctx context.Context, billi result, err = client.UsageByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ForecastClient", "UsageByEnrollmentAccount", resp, "Failure responding to request") + return } return @@ -426,6 +429,7 @@ func (client ForecastClient) UsageByExternalBillingAccount(ctx context.Context, result, err = client.UsageByExternalBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ForecastClient", "UsageByExternalBillingAccount", resp, "Failure responding to request") + return } return @@ -532,6 +536,7 @@ func (client ForecastClient) UsageByManagementGroup(ctx context.Context, managem result, err = client.UsageByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ForecastClient", "UsageByManagementGroup", resp, "Failure responding to request") + return } return @@ -638,6 +643,7 @@ func (client ForecastClient) UsageByResourceGroup(ctx context.Context, resourceG result, err = client.UsageByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ForecastClient", "UsageByResourceGroup", resp, "Failure responding to request") + return } return @@ -744,6 +750,7 @@ func (client ForecastClient) UsageBySubscription(ctx context.Context, parameters result, err = client.UsageBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ForecastClient", "UsageBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/operations.go b/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/operations.go index 0fcfd9b0c15d..b9a5271c95cd 100644 --- a/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/operations.go +++ b/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/query.go b/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/query.go index 7b0c3e955aa8..9c6c98c7231c 100644 --- a/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/query.go +++ b/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/query.go @@ -104,6 +104,7 @@ func (client QueryClient) UsageByBillingAccount(ctx context.Context, billingAcco result, err = client.UsageByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.QueryClient", "UsageByBillingAccount", resp, "Failure responding to request") + return } return @@ -211,6 +212,7 @@ func (client QueryClient) UsageByDepartment(ctx context.Context, billingAccountI result, err = client.UsageByDepartmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.QueryClient", "UsageByDepartment", resp, "Failure responding to request") + return } return @@ -319,6 +321,7 @@ func (client QueryClient) UsageByEnrollmentAccount(ctx context.Context, billingA result, err = client.UsageByEnrollmentAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.QueryClient", "UsageByEnrollmentAccount", resp, "Failure responding to request") + return } return @@ -426,6 +429,7 @@ func (client QueryClient) UsageByManagementGroup(ctx context.Context, management result, err = client.UsageByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.QueryClient", "UsageByManagementGroup", resp, "Failure responding to request") + return } return @@ -532,6 +536,7 @@ func (client QueryClient) UsageByResourceGroup(ctx context.Context, resourceGrou result, err = client.UsageByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.QueryClient", "UsageByResourceGroup", resp, "Failure responding to request") + return } return @@ -638,6 +643,7 @@ func (client QueryClient) UsageBySubscription(ctx context.Context, parameters Re result, err = client.UsageBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.QueryClient", "UsageBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/showbackrule.go b/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/showbackrule.go index 089339b29797..2160b880fa77 100644 --- a/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/showbackrule.go +++ b/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/showbackrule.go @@ -73,6 +73,7 @@ func (client ShowbackRuleClient) CreateUpdateRule(ctx context.Context, billingAc result, err = client.CreateUpdateRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ShowbackRuleClient", "CreateUpdateRule", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client ShowbackRuleClient) GetBillingAccountID(ctx context.Context, billin result, err = client.GetBillingAccountIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ShowbackRuleClient", "GetBillingAccountID", resp, "Failure responding to request") + return } return diff --git a/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/showbackrules.go b/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/showbackrules.go index b6c9005c0479..7ff817f437ae 100644 --- a/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/showbackrules.go +++ b/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/showbackrules.go @@ -71,6 +71,7 @@ func (client ShowbackRulesClient) List(ctx context.Context, billingAccountID str result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "costmanagement.ShowbackRulesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/customerlockbox/mgmt/2018-02-28-preview/customerlockbox/operations.go b/services/preview/customerlockbox/mgmt/2018-02-28-preview/customerlockbox/operations.go index 772ba823408c..a93aa369bfb9 100644 --- a/services/preview/customerlockbox/mgmt/2018-02-28-preview/customerlockbox/operations.go +++ b/services/preview/customerlockbox/mgmt/2018-02-28-preview/customerlockbox/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context, APIVersion string) (res result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerlockbox.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerlockbox.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/customerlockbox/mgmt/2018-02-28-preview/customerlockbox/requests.go b/services/preview/customerlockbox/mgmt/2018-02-28-preview/customerlockbox/requests.go index ece485ebee75..7262a366e686 100644 --- a/services/preview/customerlockbox/mgmt/2018-02-28-preview/customerlockbox/requests.go +++ b/services/preview/customerlockbox/mgmt/2018-02-28-preview/customerlockbox/requests.go @@ -74,6 +74,7 @@ func (client RequestsClient) Get(ctx context.Context, requestID string, subscrip result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerlockbox.RequestsClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client RequestsClient) List(ctx context.Context, subscriptionID string, fi result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerlockbox.RequestsClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -212,6 +214,7 @@ func (client RequestsClient) listNextResults(ctx context.Context, lastResults Re result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerlockbox.RequestsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -266,6 +269,7 @@ func (client RequestsClient) UpdateStatus(ctx context.Context, approval Approval result, err = client.UpdateStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customerlockbox.RequestsClient", "UpdateStatus", resp, "Failure responding to request") + return } return diff --git a/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/associations.go b/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/associations.go index 6665721f4ef8..3bf0e8a82600 100644 --- a/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/associations.go +++ b/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/associations.go @@ -227,6 +227,7 @@ func (client AssociationsClient) Get(ctx context.Context, scope string, associat result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customproviders.AssociationsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +302,7 @@ func (client AssociationsClient) ListAll(ctx context.Context, scope string) (res result.al, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customproviders.AssociationsClient", "ListAll", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +365,7 @@ func (client AssociationsClient) listAllNextResults(ctx context.Context, lastRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customproviders.AssociationsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/customresourceprovider.go b/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/customresourceprovider.go index 27816f224e0f..3e76aeeed525 100644 --- a/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/customresourceprovider.go +++ b/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/customresourceprovider.go @@ -247,6 +247,7 @@ func (client CustomResourceProviderClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client CustomResourceProviderClient) ListByResourceGroup(ctx context.Conte result.lbcrm, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lbcrm.hasNextLink() && result.lbcrm.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client CustomResourceProviderClient) listByResourceGroupNextResults(ctx co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -434,6 +437,7 @@ func (client CustomResourceProviderClient) ListBySubscription(ctx context.Contex result.lbcrm, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.lbcrm.hasNextLink() && result.lbcrm.IsEmpty() { err = result.NextWithContext(ctx) @@ -496,6 +500,7 @@ func (client CustomResourceProviderClient) listBySubscriptionNextResults(ctx con result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -556,6 +561,7 @@ func (client CustomResourceProviderClient) Update(ctx context.Context, resourceG result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/operations.go b/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/operations.go index 35e7e612591b..70f5940d42e5 100644 --- a/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/operations.go +++ b/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result ResourceProvide result.rpol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customproviders.OperationsClient", "List", resp, "Failure responding to request") + return } if result.rpol.hasNextLink() && result.rpol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customproviders.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/alerts.go b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/alerts.go index 8be7ee8ad037..4948527debd2 100644 --- a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/alerts.go +++ b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/alerts.go @@ -73,6 +73,7 @@ func (client AlertsClient) Get(ctx context.Context, deviceName string, name stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.AlertsClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client AlertsClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceNa result.al, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.AlertsClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -214,6 +216,7 @@ func (client AlertsClient) listByDataBoxEdgeDeviceNextResults(ctx context.Contex result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.AlertsClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/availableskus.go b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/availableskus.go index 26ccee11f02b..dcc835bc9f5e 100644 --- a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/availableskus.go +++ b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/availableskus.go @@ -69,6 +69,7 @@ func (client AvailableSkusClient) List(ctx context.Context) (result SkuList, err result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.AvailableSkusClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/bandwidthschedules.go b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/bandwidthschedules.go index 4defaa8ffa98..ac7dc3e2a58c 100644 --- a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/bandwidthschedules.go +++ b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/bandwidthschedules.go @@ -242,6 +242,7 @@ func (client BandwidthSchedulesClient) Get(ctx context.Context, deviceName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.BandwidthSchedulesClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +320,7 @@ func (client BandwidthSchedulesClient) ListByDataBoxEdgeDevice(ctx context.Conte result.bsl, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.BandwidthSchedulesClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.bsl.hasNextLink() && result.bsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -383,6 +385,7 @@ func (client BandwidthSchedulesClient) listByDataBoxEdgeDeviceNextResults(ctx co result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.BandwidthSchedulesClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/containers.go b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/containers.go index 4d3ff75fc9ce..b3562472a7a4 100644 --- a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/containers.go +++ b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/containers.go @@ -241,6 +241,7 @@ func (client ContainersClient) Get(ctx context.Context, deviceName string, stora result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.ContainersClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +321,7 @@ func (client ContainersClient) ListByStorageAccount(ctx context.Context, deviceN result.cl, err = client.ListByStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.ContainersClient", "ListByStorageAccount", resp, "Failure responding to request") + return } if result.cl.hasNextLink() && result.cl.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client ContainersClient) listByStorageAccountNextResults(ctx context.Conte result, err = client.ListByStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.ContainersClient", "listByStorageAccountNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/devices.go b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/devices.go index 05934cc97131..ec74add8f215 100644 --- a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/devices.go +++ b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/devices.go @@ -391,6 +391,7 @@ func (client DevicesClient) Get(ctx context.Context, deviceName string, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "Get", resp, "Failure responding to request") + return } return @@ -466,6 +467,7 @@ func (client DevicesClient) GetExtendedInformation(ctx context.Context, deviceNa result, err = client.GetExtendedInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "GetExtendedInformation", resp, "Failure responding to request") + return } return @@ -541,6 +543,7 @@ func (client DevicesClient) GetNetworkSettings(ctx context.Context, deviceName s result, err = client.GetNetworkSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "GetNetworkSettings", resp, "Failure responding to request") + return } return @@ -616,6 +619,7 @@ func (client DevicesClient) GetUpdateSummary(ctx context.Context, deviceName str result, err = client.GetUpdateSummaryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "GetUpdateSummary", resp, "Failure responding to request") + return } return @@ -767,6 +771,7 @@ func (client DevicesClient) ListByResourceGroup(ctx context.Context, resourceGro result.dl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -833,6 +838,7 @@ func (client DevicesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -885,6 +891,7 @@ func (client DevicesClient) ListBySubscription(ctx context.Context, expand strin result.dl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -950,6 +957,7 @@ func (client DevicesClient) listBySubscriptionNextResults(ctx context.Context, l result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1076,6 +1084,7 @@ func (client DevicesClient) Update(ctx context.Context, deviceName string, param result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "Update", resp, "Failure responding to request") + return } return @@ -1161,6 +1170,7 @@ func (client DevicesClient) UploadCertificate(ctx context.Context, deviceName st result, err = client.UploadCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.DevicesClient", "UploadCertificate", resp, "Failure responding to request") + return } return diff --git a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/jobs.go b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/jobs.go index 7336f4237e04..354d6cfa4c31 100644 --- a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/jobs.go +++ b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/jobs.go @@ -73,6 +73,7 @@ func (client JobsClient) Get(ctx context.Context, deviceName string, name string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.JobsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/nodes.go b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/nodes.go index b93213cfbd39..5bd3d056d8e3 100644 --- a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/nodes.go +++ b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/nodes.go @@ -72,6 +72,7 @@ func (client NodesClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceNam result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.NodesClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } return diff --git a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/operations.go b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/operations.go index 30511b79ed49..a9f497400efc 100644 --- a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/operations.go +++ b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListP result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/operationsstatus.go b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/operationsstatus.go index f40407324bce..3669892e3ff1 100644 --- a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/operationsstatus.go +++ b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/operationsstatus.go @@ -74,6 +74,7 @@ func (client OperationsStatusClient) Get(ctx context.Context, deviceName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.OperationsStatusClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/orders.go b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/orders.go index 8b9e14983496..c9b76714f53e 100644 --- a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/orders.go +++ b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/orders.go @@ -245,6 +245,7 @@ func (client OrdersClient) Get(ctx context.Context, deviceName string, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.OrdersClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client OrdersClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceNa result.ol, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.OrdersClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client OrdersClient) listByDataBoxEdgeDeviceNextResults(ctx context.Contex result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.OrdersClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/roles.go b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/roles.go index 100c107e75e1..19c2c3dc0eeb 100644 --- a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/roles.go +++ b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/roles.go @@ -229,6 +229,7 @@ func (client RolesClient) Get(ctx context.Context, deviceName string, name strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.RolesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RolesClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceNam result.rl, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.RolesClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.rl.hasNextLink() && result.rl.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RolesClient) listByDataBoxEdgeDeviceNextResults(ctx context.Context result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.RolesClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/shares.go b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/shares.go index b9fadb440368..606b96394944 100644 --- a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/shares.go +++ b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/shares.go @@ -241,6 +241,7 @@ func (client SharesClient) Get(ctx context.Context, deviceName string, name stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.SharesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client SharesClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceNa result.sl, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.SharesClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client SharesClient) listByDataBoxEdgeDeviceNextResults(ctx context.Contex result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.SharesClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/skus.go b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/skus.go index a33f40996fcc..7144b0076837 100644 --- a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/skus.go +++ b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/skus.go @@ -71,6 +71,7 @@ func (client SkusClient) List(ctx context.Context, filter string) (result SkuInf result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.SkusClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/storageaccountcredentials.go b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/storageaccountcredentials.go index 8e6021eaa570..bde93ca18d8f 100644 --- a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/storageaccountcredentials.go +++ b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/storageaccountcredentials.go @@ -241,6 +241,7 @@ func (client StorageAccountCredentialsClient) Get(ctx context.Context, deviceNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.StorageAccountCredentialsClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client StorageAccountCredentialsClient) ListByDataBoxEdgeDevice(ctx contex result.sacl, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.StorageAccountCredentialsClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.sacl.hasNextLink() && result.sacl.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client StorageAccountCredentialsClient) listByDataBoxEdgeDeviceNextResults result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.StorageAccountCredentialsClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/storageaccounts.go b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/storageaccounts.go index a254b07d5f65..d20e4eab2dee 100644 --- a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/storageaccounts.go +++ b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/storageaccounts.go @@ -236,6 +236,7 @@ func (client StorageAccountsClient) Get(ctx context.Context, deviceName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.StorageAccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -313,6 +314,7 @@ func (client StorageAccountsClient) ListByDataBoxEdgeDevice(ctx context.Context, result.sal, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.StorageAccountsClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.sal.hasNextLink() && result.sal.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +379,7 @@ func (client StorageAccountsClient) listByDataBoxEdgeDeviceNextResults(ctx conte result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.StorageAccountsClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/triggers.go b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/triggers.go index 067afd9c1678..5b3cf6d28d44 100644 --- a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/triggers.go +++ b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/triggers.go @@ -229,6 +229,7 @@ func (client TriggersClient) Get(ctx context.Context, deviceName string, name st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.TriggersClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client TriggersClient) ListByDataBoxEdgeDevice(ctx context.Context, device result.tl, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.TriggersClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client TriggersClient) listByDataBoxEdgeDeviceNextResults(ctx context.Cont result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.TriggersClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/users.go b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/users.go index 84fcc845de15..341dec4d4f62 100644 --- a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/users.go +++ b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/users.go @@ -240,6 +240,7 @@ func (client UsersClient) Get(ctx context.Context, deviceName string, name strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.UsersClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client UsersClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceNam result.ul, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.UsersClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + return } if result.ul.hasNextLink() && result.ul.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client UsersClient) listByDataBoxEdgeDeviceNextResults(ctx context.Context result, err = client.ListByDataBoxEdgeDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "databoxedge.UsersClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datadog/mgmt/2020-02-01-preview/datadog/apikeys.go b/services/preview/datadog/mgmt/2020-02-01-preview/datadog/apikeys.go index 3a2ce324247d..eeb0228d68e3 100644 --- a/services/preview/datadog/mgmt/2020-02-01-preview/datadog/apikeys.go +++ b/services/preview/datadog/mgmt/2020-02-01-preview/datadog/apikeys.go @@ -73,6 +73,7 @@ func (client APIKeysClient) GetDefaultKey(ctx context.Context, resourceGroupName result, err = client.GetDefaultKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.APIKeysClient", "GetDefaultKey", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client APIKeysClient) List(ctx context.Context, resourceGroupName string, result.aklr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.APIKeysClient", "List", resp, "Failure responding to request") + return } if result.aklr.hasNextLink() && result.aklr.IsEmpty() { err = result.NextWithContext(ctx) @@ -213,6 +215,7 @@ func (client APIKeysClient) listNextResults(ctx context.Context, lastResults API result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.APIKeysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -271,6 +274,7 @@ func (client APIKeysClient) SetDefaultKey(ctx context.Context, resourceGroupName result, err = client.SetDefaultKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.APIKeysClient", "SetDefaultKey", resp, "Failure responding to request") + return } return diff --git a/services/preview/datadog/mgmt/2020-02-01-preview/datadog/hosts.go b/services/preview/datadog/mgmt/2020-02-01-preview/datadog/hosts.go index 389c29532e5a..6caf34db8b6c 100644 --- a/services/preview/datadog/mgmt/2020-02-01-preview/datadog/hosts.go +++ b/services/preview/datadog/mgmt/2020-02-01-preview/datadog/hosts.go @@ -73,6 +73,7 @@ func (client HostsClient) List(ctx context.Context, resourceGroupName string, mo result.hlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.HostsClient", "List", resp, "Failure responding to request") + return } if result.hlr.hasNextLink() && result.hlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -137,6 +138,7 @@ func (client HostsClient) listNextResults(ctx context.Context, lastResults HostL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.HostsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datadog/mgmt/2020-02-01-preview/datadog/linkedresources.go b/services/preview/datadog/mgmt/2020-02-01-preview/datadog/linkedresources.go index 0f6ddffcd76e..5cb34a8614bd 100644 --- a/services/preview/datadog/mgmt/2020-02-01-preview/datadog/linkedresources.go +++ b/services/preview/datadog/mgmt/2020-02-01-preview/datadog/linkedresources.go @@ -73,6 +73,7 @@ func (client LinkedResourcesClient) List(ctx context.Context, resourceGroupName result.lrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.LinkedResourcesClient", "List", resp, "Failure responding to request") + return } if result.lrlr.hasNextLink() && result.lrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -137,6 +138,7 @@ func (client LinkedResourcesClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.LinkedResourcesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datadog/mgmt/2020-02-01-preview/datadog/marketplaceagreements.go b/services/preview/datadog/mgmt/2020-02-01-preview/datadog/marketplaceagreements.go index 11baceafe575..e3fb37db312f 100644 --- a/services/preview/datadog/mgmt/2020-02-01-preview/datadog/marketplaceagreements.go +++ b/services/preview/datadog/mgmt/2020-02-01-preview/datadog/marketplaceagreements.go @@ -70,6 +70,7 @@ func (client MarketplaceAgreementsClient) Create(ctx context.Context, body *Agre result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.MarketplaceAgreementsClient", "Create", resp, "Failure responding to request") + return } return @@ -143,6 +144,7 @@ func (client MarketplaceAgreementsClient) List(ctx context.Context) (result Agre result.arlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.MarketplaceAgreementsClient", "List", resp, "Failure responding to request") + return } if result.arlr.hasNextLink() && result.arlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -199,6 +201,7 @@ func (client MarketplaceAgreementsClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.MarketplaceAgreementsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datadog/mgmt/2020-02-01-preview/datadog/monitoredresources.go b/services/preview/datadog/mgmt/2020-02-01-preview/datadog/monitoredresources.go index d3d49a7b46ae..6686cf0132cb 100644 --- a/services/preview/datadog/mgmt/2020-02-01-preview/datadog/monitoredresources.go +++ b/services/preview/datadog/mgmt/2020-02-01-preview/datadog/monitoredresources.go @@ -74,6 +74,7 @@ func (client MonitoredResourcesClient) List(ctx context.Context, resourceGroupNa result.mrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.MonitoredResourcesClient", "List", resp, "Failure responding to request") + return } if result.mrlr.hasNextLink() && result.mrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client MonitoredResourcesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.MonitoredResourcesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datadog/mgmt/2020-02-01-preview/datadog/monitors.go b/services/preview/datadog/mgmt/2020-02-01-preview/datadog/monitors.go index 656e8b4cf24e..d249cee550d8 100644 --- a/services/preview/datadog/mgmt/2020-02-01-preview/datadog/monitors.go +++ b/services/preview/datadog/mgmt/2020-02-01-preview/datadog/monitors.go @@ -250,6 +250,7 @@ func (client MonitorsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.MonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +324,7 @@ func (client MonitorsClient) List(ctx context.Context) (result MonitorResourceLi result.mrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.MonitorsClient", "List", resp, "Failure responding to request") + return } if result.mrlr.hasNextLink() && result.mrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client MonitorsClient) listNextResults(ctx context.Context, lastResults Mo result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.MonitorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -436,6 +439,7 @@ func (client MonitorsClient) ListByResourceGroup(ctx context.Context, resourceGr result.mrlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.MonitorsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.mrlr.hasNextLink() && result.mrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -499,6 +503,7 @@ func (client MonitorsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.MonitorsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -550,6 +555,7 @@ func (client MonitorsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.MonitorsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/datadog/mgmt/2020-02-01-preview/datadog/operations.go b/services/preview/datadog/mgmt/2020-02-01-preview/datadog/operations.go index f433ad495e09..cb389ceadbb8 100644 --- a/services/preview/datadog/mgmt/2020-02-01-preview/datadog/operations.go +++ b/services/preview/datadog/mgmt/2020-02-01-preview/datadog/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datadog/mgmt/2020-02-01-preview/datadog/refreshsetpassword.go b/services/preview/datadog/mgmt/2020-02-01-preview/datadog/refreshsetpassword.go index c0e3b9bcb1f6..a779926e32a2 100644 --- a/services/preview/datadog/mgmt/2020-02-01-preview/datadog/refreshsetpassword.go +++ b/services/preview/datadog/mgmt/2020-02-01-preview/datadog/refreshsetpassword.go @@ -73,6 +73,7 @@ func (client RefreshSetPasswordClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.RefreshSetPasswordClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/datadog/mgmt/2020-02-01-preview/datadog/singlesignonconfigurations.go b/services/preview/datadog/mgmt/2020-02-01-preview/datadog/singlesignonconfigurations.go index d1f608ec1d8b..72a973a9462d 100644 --- a/services/preview/datadog/mgmt/2020-02-01-preview/datadog/singlesignonconfigurations.go +++ b/services/preview/datadog/mgmt/2020-02-01-preview/datadog/singlesignonconfigurations.go @@ -159,6 +159,7 @@ func (client SingleSignOnConfigurationsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.SingleSignOnConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -236,6 +237,7 @@ func (client SingleSignOnConfigurationsClient) List(ctx context.Context, resourc result.ssorlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.SingleSignOnConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.ssorlr.hasNextLink() && result.ssorlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -300,6 +302,7 @@ func (client SingleSignOnConfigurationsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.SingleSignOnConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datadog/mgmt/2020-02-01-preview/datadog/tagrules.go b/services/preview/datadog/mgmt/2020-02-01-preview/datadog/tagrules.go index a501542e9646..de4d88619fff 100644 --- a/services/preview/datadog/mgmt/2020-02-01-preview/datadog/tagrules.go +++ b/services/preview/datadog/mgmt/2020-02-01-preview/datadog/tagrules.go @@ -73,6 +73,7 @@ func (client TagRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.TagRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client TagRulesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.TagRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client TagRulesClient) List(ctx context.Context, resourceGroupName string, result.mtrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.TagRulesClient", "List", resp, "Failure responding to request") + return } if result.mtrlr.hasNextLink() && result.mtrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -299,6 +302,7 @@ func (client TagRulesClient) listNextResults(ctx context.Context, lastResults Mo result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datadog.TagRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/activityruns.go b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/activityruns.go index c17c33ad1de2..77babbb6ff5a 100644 --- a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/activityruns.go +++ b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/activityruns.go @@ -100,6 +100,7 @@ func (client ActivityRunsClient) ListByPipelineRun(ctx context.Context, resource result.arlr, err = client.ListByPipelineRunResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.ActivityRunsClient", "ListByPipelineRun", resp, "Failure responding to request") + return } if result.arlr.hasNextLink() && result.arlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -176,6 +177,7 @@ func (client ActivityRunsClient) listByPipelineRunNextResults(ctx context.Contex result, err = client.ListByPipelineRunResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.ActivityRunsClient", "listByPipelineRunNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/datasets.go b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/datasets.go index 285d1256da20..d7ffb180ce3e 100644 --- a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/datasets.go +++ b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/datasets.go @@ -101,6 +101,7 @@ func (client DatasetsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.DatasetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -200,6 +201,7 @@ func (client DatasetsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.DatasetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -292,6 +294,7 @@ func (client DatasetsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.DatasetsClient", "Get", resp, "Failure responding to request") + return } return @@ -381,6 +384,7 @@ func (client DatasetsClient) ListByFactory(ctx context.Context, resourceGroupNam result.dlr, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.DatasetsClient", "ListByFactory", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -445,6 +449,7 @@ func (client DatasetsClient) listByFactoryNextResults(ctx context.Context, lastR result, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.DatasetsClient", "listByFactoryNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/factories.go b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/factories.go index a2609e99dea3..11c84d080299 100644 --- a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/factories.go +++ b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/factories.go @@ -87,6 +87,7 @@ func (client FactoriesClient) CancelPipelineRun(ctx context.Context, resourceGro result, err = client.CancelPipelineRunResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "CancelPipelineRun", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client FactoriesClient) ConfigureFactoryRepo(ctx context.Context, location result, err = client.ConfigureFactoryRepoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "ConfigureFactoryRepo", resp, "Failure responding to request") + return } return @@ -254,6 +256,7 @@ func (client FactoriesClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -343,6 +346,7 @@ func (client FactoriesClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "Delete", resp, "Failure responding to request") + return } return @@ -429,6 +433,7 @@ func (client FactoriesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "Get", resp, "Failure responding to request") + return } return @@ -502,6 +507,7 @@ func (client FactoriesClient) List(ctx context.Context) (result FactoryListRespo result.flr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "List", resp, "Failure responding to request") + return } if result.flr.hasNextLink() && result.flr.IsEmpty() { err = result.NextWithContext(ctx) @@ -564,6 +570,7 @@ func (client FactoriesClient) listNextResults(ctx context.Context, lastResults F result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -623,6 +630,7 @@ func (client FactoriesClient) ListByResourceGroup(ctx context.Context, resourceG result.flr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.flr.hasNextLink() && result.flr.IsEmpty() { err = result.NextWithContext(ctx) @@ -686,6 +694,7 @@ func (client FactoriesClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +759,7 @@ func (client FactoriesClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/integrationruntimenodes.go b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/integrationruntimenodes.go index f91a010635dd..20cbe79b5894 100644 --- a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/integrationruntimenodes.go +++ b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/integrationruntimenodes.go @@ -97,6 +97,7 @@ func (client IntegrationRuntimeNodesClient) Delete(ctx context.Context, resource result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimeNodesClient", "Delete", resp, "Failure responding to request") + return } return @@ -195,6 +196,7 @@ func (client IntegrationRuntimeNodesClient) GetIPAddress(ctx context.Context, re result, err = client.GetIPAddressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimeNodesClient", "GetIPAddress", resp, "Failure responding to request") + return } return @@ -295,6 +297,7 @@ func (client IntegrationRuntimeNodesClient) Update(ctx context.Context, resource result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimeNodesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/integrationruntimes.go b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/integrationruntimes.go index 58a9aa2b40bb..9f0750a37a9e 100644 --- a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/integrationruntimes.go +++ b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/integrationruntimes.go @@ -97,6 +97,7 @@ func (client IntegrationRuntimesClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -196,6 +197,7 @@ func (client IntegrationRuntimesClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "Delete", resp, "Failure responding to request") + return } return @@ -288,6 +290,7 @@ func (client IntegrationRuntimesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "Get", resp, "Failure responding to request") + return } return @@ -382,6 +385,7 @@ func (client IntegrationRuntimesClient) GetConnectionInfo(ctx context.Context, r result, err = client.GetConnectionInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "GetConnectionInfo", resp, "Failure responding to request") + return } return @@ -476,6 +480,7 @@ func (client IntegrationRuntimesClient) GetMonitoringData(ctx context.Context, r result, err = client.GetMonitoringDataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "GetMonitoringData", resp, "Failure responding to request") + return } return @@ -569,6 +574,7 @@ func (client IntegrationRuntimesClient) GetStatus(ctx context.Context, resourceG result, err = client.GetStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "GetStatus", resp, "Failure responding to request") + return } return @@ -662,6 +668,7 @@ func (client IntegrationRuntimesClient) ListAuthKeys(ctx context.Context, resour result, err = client.ListAuthKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "ListAuthKeys", resp, "Failure responding to request") + return } return @@ -751,6 +758,7 @@ func (client IntegrationRuntimesClient) ListByFactory(ctx context.Context, resou result.irlr, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "ListByFactory", resp, "Failure responding to request") + return } if result.irlr.hasNextLink() && result.irlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -815,6 +823,7 @@ func (client IntegrationRuntimesClient) listByFactoryNextResults(ctx context.Con result, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "listByFactoryNextResults", resp, "Failure responding to next results request") + return } return } @@ -884,6 +893,7 @@ func (client IntegrationRuntimesClient) RegenerateAuthKey(ctx context.Context, r result, err = client.RegenerateAuthKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "RegenerateAuthKey", resp, "Failure responding to request") + return } return @@ -980,6 +990,7 @@ func (client IntegrationRuntimesClient) RemoveNode(ctx context.Context, resource result, err = client.RemoveNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "RemoveNode", resp, "Failure responding to request") + return } return @@ -1262,6 +1273,7 @@ func (client IntegrationRuntimesClient) SyncCredentials(ctx context.Context, res result, err = client.SyncCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "SyncCredentials", resp, "Failure responding to request") + return } return @@ -1355,6 +1367,7 @@ func (client IntegrationRuntimesClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "Update", resp, "Failure responding to request") + return } return @@ -1450,6 +1463,7 @@ func (client IntegrationRuntimesClient) Upgrade(ctx context.Context, resourceGro result, err = client.UpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "Upgrade", resp, "Failure responding to request") + return } return diff --git a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/linkedservices.go b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/linkedservices.go index d0f9ac7dc0f6..196100b755fb 100644 --- a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/linkedservices.go +++ b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/linkedservices.go @@ -101,6 +101,7 @@ func (client LinkedServicesClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.LinkedServicesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -200,6 +201,7 @@ func (client LinkedServicesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.LinkedServicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -292,6 +294,7 @@ func (client LinkedServicesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.LinkedServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -381,6 +384,7 @@ func (client LinkedServicesClient) ListByFactory(ctx context.Context, resourceGr result.lslr, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.LinkedServicesClient", "ListByFactory", resp, "Failure responding to request") + return } if result.lslr.hasNextLink() && result.lslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -445,6 +449,7 @@ func (client LinkedServicesClient) listByFactoryNextResults(ctx context.Context, result, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.LinkedServicesClient", "listByFactoryNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/operations.go b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/operations.go index fea7a0c7133f..9f4e9954c52c 100644 --- a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/operations.go +++ b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/pipelineruns.go b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/pipelineruns.go index 6753ad47efdb..9144753885be 100644 --- a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/pipelineruns.go +++ b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/pipelineruns.go @@ -87,6 +87,7 @@ func (client PipelineRunsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.PipelineRunsClient", "Get", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client PipelineRunsClient) QueryByFactory(ctx context.Context, resourceGro result, err = client.QueryByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.PipelineRunsClient", "QueryByFactory", resp, "Failure responding to request") + return } return diff --git a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/pipelines.go b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/pipelines.go index 1c53c87ab4d7..d692d1f2c948 100644 --- a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/pipelines.go +++ b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/pipelines.go @@ -99,6 +99,7 @@ func (client PipelinesClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -199,6 +200,7 @@ func (client PipelinesClient) CreateRun(ctx context.Context, resourceGroupName s result, err = client.CreateRunResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "CreateRun", resp, "Failure responding to request") + return } return @@ -297,6 +299,7 @@ func (client PipelinesClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "Delete", resp, "Failure responding to request") + return } return @@ -389,6 +392,7 @@ func (client PipelinesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "Get", resp, "Failure responding to request") + return } return @@ -478,6 +482,7 @@ func (client PipelinesClient) ListByFactory(ctx context.Context, resourceGroupNa result.plr, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "ListByFactory", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -542,6 +547,7 @@ func (client PipelinesClient) listByFactoryNextResults(ctx context.Context, last result, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "listByFactoryNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/triggers.go b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/triggers.go index 2251506846b3..4be2d3e0ffcc 100644 --- a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/triggers.go +++ b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/triggers.go @@ -97,6 +97,7 @@ func (client TriggersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -196,6 +197,7 @@ func (client TriggersClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "Delete", resp, "Failure responding to request") + return } return @@ -288,6 +290,7 @@ func (client TriggersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "Get", resp, "Failure responding to request") + return } return @@ -377,6 +380,7 @@ func (client TriggersClient) ListByFactory(ctx context.Context, resourceGroupNam result.tlr, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "ListByFactory", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -441,6 +445,7 @@ func (client TriggersClient) listByFactoryNextResults(ctx context.Context, lastR result, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "listByFactoryNextResults", resp, "Failure responding to next results request") + return } return } @@ -512,6 +517,7 @@ func (client TriggersClient) ListRuns(ctx context.Context, resourceGroupName str result.trlr, err = client.ListRunsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "ListRuns", resp, "Failure responding to request") + return } if result.trlr.hasNextLink() && result.trlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -579,6 +585,7 @@ func (client TriggersClient) listRunsNextResults(ctx context.Context, lastResult result, err = client.ListRunsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "listRunsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datalake/analytics/2015-10-01-preview/catalog/catalog.go b/services/preview/datalake/analytics/2015-10-01-preview/catalog/catalog.go index 441be992e142..04b76c092df5 100644 --- a/services/preview/datalake/analytics/2015-10-01-preview/catalog/catalog.go +++ b/services/preview/datalake/analytics/2015-10-01-preview/catalog/catalog.go @@ -75,6 +75,7 @@ func (client Client) CreateSecret(ctx context.Context, accountName string, datab result, err = client.CreateSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "CreateSecret", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client Client) DeleteAllSecrets(ctx context.Context, accountName string, d result, err = client.DeleteAllSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "DeleteAllSecrets", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client Client) DeleteSecret(ctx context.Context, accountName string, datab result, err = client.DeleteSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "DeleteSecret", resp, "Failure responding to request") + return } return @@ -313,6 +316,7 @@ func (client Client) GetAssembly(ctx context.Context, accountName string, databa result, err = client.GetAssemblyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetAssembly", resp, "Failure responding to request") + return } return @@ -393,6 +397,7 @@ func (client Client) GetCredential(ctx context.Context, accountName string, data result, err = client.GetCredentialResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetCredential", resp, "Failure responding to request") + return } return @@ -472,6 +477,7 @@ func (client Client) GetDatabase(ctx context.Context, accountName string, databa result, err = client.GetDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetDatabase", resp, "Failure responding to request") + return } return @@ -551,6 +557,7 @@ func (client Client) GetExternalDataSource(ctx context.Context, accountName stri result, err = client.GetExternalDataSourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetExternalDataSource", resp, "Failure responding to request") + return } return @@ -632,6 +639,7 @@ func (client Client) GetProcedure(ctx context.Context, accountName string, datab result, err = client.GetProcedureResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetProcedure", resp, "Failure responding to request") + return } return @@ -713,6 +721,7 @@ func (client Client) GetSchema(ctx context.Context, accountName string, database result, err = client.GetSchemaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetSchema", resp, "Failure responding to request") + return } return @@ -793,6 +802,7 @@ func (client Client) GetSecret(ctx context.Context, accountName string, database result, err = client.GetSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetSecret", resp, "Failure responding to request") + return } return @@ -874,6 +884,7 @@ func (client Client) GetTable(ctx context.Context, accountName string, databaseN result, err = client.GetTableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetTable", resp, "Failure responding to request") + return } return @@ -957,6 +968,7 @@ func (client Client) GetTablePartition(ctx context.Context, accountName string, result, err = client.GetTablePartitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetTablePartition", resp, "Failure responding to request") + return } return @@ -1041,6 +1053,7 @@ func (client Client) GetTableStatistic(ctx context.Context, accountName string, result, err = client.GetTableStatisticResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetTableStatistic", resp, "Failure responding to request") + return } return @@ -1124,6 +1137,7 @@ func (client Client) GetTableType(ctx context.Context, accountName string, datab result, err = client.GetTableTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetTableType", resp, "Failure responding to request") + return } return @@ -1206,6 +1220,7 @@ func (client Client) GetTableValuedFunction(ctx context.Context, accountName str result, err = client.GetTableValuedFunctionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetTableValuedFunction", resp, "Failure responding to request") + return } return @@ -1288,6 +1303,7 @@ func (client Client) GetView(ctx context.Context, accountName string, databaseNa result, err = client.GetViewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "GetView", resp, "Failure responding to request") + return } return @@ -1381,6 +1397,7 @@ func (client Client) ListAssemblies(ctx context.Context, accountName string, dat result.ual, err = client.ListAssembliesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListAssemblies", resp, "Failure responding to request") + return } if result.ual.hasNextLink() && result.ual.IsEmpty() { err = result.NextWithContext(ctx) @@ -1469,6 +1486,7 @@ func (client Client) listAssembliesNextResults(ctx context.Context, lastResults result, err = client.ListAssembliesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listAssembliesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1533,6 +1551,7 @@ func (client Client) ListCredentials(ctx context.Context, accountName string, da result.ucl, err = client.ListCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListCredentials", resp, "Failure responding to request") + return } if result.ucl.hasNextLink() && result.ucl.IsEmpty() { err = result.NextWithContext(ctx) @@ -1621,6 +1640,7 @@ func (client Client) listCredentialsNextResults(ctx context.Context, lastResults result, err = client.ListCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listCredentialsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1684,6 +1704,7 @@ func (client Client) ListDatabases(ctx context.Context, accountName string, filt result.udl, err = client.ListDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListDatabases", resp, "Failure responding to request") + return } if result.udl.hasNextLink() && result.udl.IsEmpty() { err = result.NextWithContext(ctx) @@ -1768,6 +1789,7 @@ func (client Client) listDatabasesNextResults(ctx context.Context, lastResults U result, err = client.ListDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listDatabasesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1832,6 +1854,7 @@ func (client Client) ListExternalDataSources(ctx context.Context, accountName st result.uedsl, err = client.ListExternalDataSourcesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListExternalDataSources", resp, "Failure responding to request") + return } if result.uedsl.hasNextLink() && result.uedsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -1920,6 +1943,7 @@ func (client Client) listExternalDataSourcesNextResults(ctx context.Context, las result, err = client.ListExternalDataSourcesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listExternalDataSourcesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1985,6 +2009,7 @@ func (client Client) ListProcedures(ctx context.Context, accountName string, dat result.upl, err = client.ListProceduresResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListProcedures", resp, "Failure responding to request") + return } if result.upl.hasNextLink() && result.upl.IsEmpty() { err = result.NextWithContext(ctx) @@ -2074,6 +2099,7 @@ func (client Client) listProceduresNextResults(ctx context.Context, lastResults result, err = client.ListProceduresResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listProceduresNextResults", resp, "Failure responding to next results request") + return } return } @@ -2138,6 +2164,7 @@ func (client Client) ListSchemas(ctx context.Context, accountName string, databa result.usl, err = client.ListSchemasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListSchemas", resp, "Failure responding to request") + return } if result.usl.hasNextLink() && result.usl.IsEmpty() { err = result.NextWithContext(ctx) @@ -2226,6 +2253,7 @@ func (client Client) listSchemasNextResults(ctx context.Context, lastResults USQ result, err = client.ListSchemasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listSchemasNextResults", resp, "Failure responding to next results request") + return } return } @@ -2292,6 +2320,7 @@ func (client Client) ListTablePartitions(ctx context.Context, accountName string result.utpl, err = client.ListTablePartitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListTablePartitions", resp, "Failure responding to request") + return } if result.utpl.hasNextLink() && result.utpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -2382,6 +2411,7 @@ func (client Client) listTablePartitionsNextResults(ctx context.Context, lastRes result, err = client.ListTablePartitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listTablePartitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2447,6 +2477,7 @@ func (client Client) ListTables(ctx context.Context, accountName string, databas result.utl, err = client.ListTablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListTables", resp, "Failure responding to request") + return } if result.utl.hasNextLink() && result.utl.IsEmpty() { err = result.NextWithContext(ctx) @@ -2536,6 +2567,7 @@ func (client Client) listTablesNextResults(ctx context.Context, lastResults USQL result, err = client.ListTablesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listTablesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2602,6 +2634,7 @@ func (client Client) ListTableStatistics(ctx context.Context, accountName string result.utsl, err = client.ListTableStatisticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListTableStatistics", resp, "Failure responding to request") + return } if result.utsl.hasNextLink() && result.utsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -2692,6 +2725,7 @@ func (client Client) listTableStatisticsNextResults(ctx context.Context, lastRes result, err = client.ListTableStatisticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listTableStatisticsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2757,6 +2791,7 @@ func (client Client) ListTableTypes(ctx context.Context, accountName string, dat result.uttl, err = client.ListTableTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListTableTypes", resp, "Failure responding to request") + return } if result.uttl.hasNextLink() && result.uttl.IsEmpty() { err = result.NextWithContext(ctx) @@ -2846,6 +2881,7 @@ func (client Client) listTableTypesNextResults(ctx context.Context, lastResults result, err = client.ListTableTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listTableTypesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2911,6 +2947,7 @@ func (client Client) ListTableValuedFunctions(ctx context.Context, accountName s result.utvfl, err = client.ListTableValuedFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListTableValuedFunctions", resp, "Failure responding to request") + return } if result.utvfl.hasNextLink() && result.utvfl.IsEmpty() { err = result.NextWithContext(ctx) @@ -3000,6 +3037,7 @@ func (client Client) listTableValuedFunctionsNextResults(ctx context.Context, la result, err = client.ListTableValuedFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listTableValuedFunctionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3065,6 +3103,7 @@ func (client Client) ListTypes(ctx context.Context, accountName string, database result.utl, err = client.ListTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListTypes", resp, "Failure responding to request") + return } if result.utl.hasNextLink() && result.utl.IsEmpty() { err = result.NextWithContext(ctx) @@ -3154,6 +3193,7 @@ func (client Client) listTypesNextResults(ctx context.Context, lastResults USQLT result, err = client.ListTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listTypesNextResults", resp, "Failure responding to next results request") + return } return } @@ -3219,6 +3259,7 @@ func (client Client) ListViews(ctx context.Context, accountName string, database result.uvl, err = client.ListViewsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "ListViews", resp, "Failure responding to request") + return } if result.uvl.hasNextLink() && result.uvl.IsEmpty() { err = result.NextWithContext(ctx) @@ -3308,6 +3349,7 @@ func (client Client) listViewsNextResults(ctx context.Context, lastResults USQLV result, err = client.ListViewsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "listViewsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3361,6 +3403,7 @@ func (client Client) UpdateSecret(ctx context.Context, accountName string, datab result, err = client.UpdateSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "catalog.Client", "UpdateSecret", resp, "Failure responding to request") + return } return diff --git a/services/preview/datalake/analytics/2015-11-01-preview/job/job.go b/services/preview/datalake/analytics/2015-11-01-preview/job/job.go index b084f3ee9e01..e81ba9c41fb9 100644 --- a/services/preview/datalake/analytics/2015-11-01-preview/job/job.go +++ b/services/preview/datalake/analytics/2015-11-01-preview/job/job.go @@ -77,6 +77,7 @@ func (client Client) Build(ctx context.Context, accountName string, parameters I result, err = client.BuildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "Build", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client Client) Cancel(ctx context.Context, accountName string, jobIdentity result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "Cancel", resp, "Failure responding to request") + return } return @@ -247,6 +249,7 @@ func (client Client) Create(ctx context.Context, accountName string, jobIdentity result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "Create", resp, "Failure responding to request") + return } return @@ -335,6 +338,7 @@ func (client Client) Get(ctx context.Context, accountName string, jobIdentity uu result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "Get", resp, "Failure responding to request") + return } return @@ -413,6 +417,7 @@ func (client Client) GetDebugDataPath(ctx context.Context, accountName string, j result, err = client.GetDebugDataPathResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "GetDebugDataPath", resp, "Failure responding to request") + return } return @@ -491,6 +496,7 @@ func (client Client) GetStatistics(ctx context.Context, accountName string, jobI result, err = client.GetStatisticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "GetStatistics", resp, "Failure responding to request") + return } return @@ -586,6 +592,7 @@ func (client Client) List(ctx context.Context, accountName string, filter string result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -676,6 +683,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults InfoListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datalake/analytics/2016-03-20-preview/job/job.go b/services/preview/datalake/analytics/2016-03-20-preview/job/job.go index d01d844f87af..5711f5aed562 100644 --- a/services/preview/datalake/analytics/2016-03-20-preview/job/job.go +++ b/services/preview/datalake/analytics/2016-03-20-preview/job/job.go @@ -77,6 +77,7 @@ func (client Client) Build(ctx context.Context, accountName string, parameters I result, err = client.BuildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "Build", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client Client) Cancel(ctx context.Context, accountName string, jobIdentity result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "Cancel", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client Client) Create(ctx context.Context, accountName string, jobIdentity result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "Create", resp, "Failure responding to request") + return } return @@ -337,6 +340,7 @@ func (client Client) Get(ctx context.Context, accountName string, jobIdentity uu result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "Get", resp, "Failure responding to request") + return } return @@ -415,6 +419,7 @@ func (client Client) GetDebugDataPath(ctx context.Context, accountName string, j result, err = client.GetDebugDataPathResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "GetDebugDataPath", resp, "Failure responding to request") + return } return @@ -493,6 +498,7 @@ func (client Client) GetStatistics(ctx context.Context, accountName string, jobI result, err = client.GetStatisticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "GetStatistics", resp, "Failure responding to request") + return } return @@ -588,6 +594,7 @@ func (client Client) List(ctx context.Context, accountName string, filter string result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -678,6 +685,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults InfoListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datalake/analytics/2017-09-01-preview/job/job.go b/services/preview/datalake/analytics/2017-09-01-preview/job/job.go index b8079510ab1b..2beb94e6367b 100644 --- a/services/preview/datalake/analytics/2017-09-01-preview/job/job.go +++ b/services/preview/datalake/analytics/2017-09-01-preview/job/job.go @@ -69,6 +69,7 @@ func (client Client) Build(ctx context.Context, accountName string, parameters B result, err = client.BuildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "Build", resp, "Failure responding to request") + return } return @@ -236,6 +237,7 @@ func (client Client) Create(ctx context.Context, accountName string, jobIdentity result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "Create", resp, "Failure responding to request") + return } return @@ -316,6 +318,7 @@ func (client Client) Get(ctx context.Context, accountName string, jobIdentity uu result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "Get", resp, "Failure responding to request") + return } return @@ -394,6 +397,7 @@ func (client Client) GetDebugDataPath(ctx context.Context, accountName string, j result, err = client.GetDebugDataPathResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "GetDebugDataPath", resp, "Failure responding to request") + return } return @@ -472,6 +476,7 @@ func (client Client) GetStatistics(ctx context.Context, accountName string, jobI result, err = client.GetStatisticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "GetStatistics", resp, "Failure responding to request") + return } return @@ -571,6 +576,7 @@ func (client Client) List(ctx context.Context, accountName string, filter string result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -652,6 +658,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults InfoListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datalake/analytics/2017-09-01-preview/job/pipeline.go b/services/preview/datalake/analytics/2017-09-01-preview/job/pipeline.go index c7334cbfbe60..9607e440527b 100644 --- a/services/preview/datalake/analytics/2017-09-01-preview/job/pipeline.go +++ b/services/preview/datalake/analytics/2017-09-01-preview/job/pipeline.go @@ -72,6 +72,7 @@ func (client PipelineClient) Get(ctx context.Context, accountName string, pipeli result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.PipelineClient", "Get", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client PipelineClient) List(ctx context.Context, accountName string, start result.pilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.PipelineClient", "List", resp, "Failure responding to request") + return } if result.pilr.hasNextLink() && result.pilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -229,6 +231,7 @@ func (client PipelineClient) listNextResults(ctx context.Context, lastResults Pi result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.PipelineClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datalake/analytics/2017-09-01-preview/job/recurrence.go b/services/preview/datalake/analytics/2017-09-01-preview/job/recurrence.go index 12d8c6ccf9ef..8e6c5c4813b6 100644 --- a/services/preview/datalake/analytics/2017-09-01-preview/job/recurrence.go +++ b/services/preview/datalake/analytics/2017-09-01-preview/job/recurrence.go @@ -72,6 +72,7 @@ func (client RecurrenceClient) Get(ctx context.Context, accountName string, recu result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.RecurrenceClient", "Get", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client RecurrenceClient) List(ctx context.Context, accountName string, sta result.rilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.RecurrenceClient", "List", resp, "Failure responding to request") + return } if result.rilr.hasNextLink() && result.rilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -229,6 +231,7 @@ func (client RecurrenceClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "job.RecurrenceClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account/account.go b/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account/account.go index c3dd79ab0bac..b06cce1f4283 100644 --- a/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account/account.go +++ b/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account/account.go @@ -82,6 +82,7 @@ func (client Client) AddDataLakeStoreAccount(ctx context.Context, resourceGroupN result, err = client.AddDataLakeStoreAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "AddDataLakeStoreAccount", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client Client) AddStorageAccount(ctx context.Context, resourceGroupName st result, err = client.AddStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "AddStorageAccount", resp, "Failure responding to request") + return } return @@ -403,6 +405,7 @@ func (client Client) DeleteDataLakeStoreAccount(ctx context.Context, resourceGro result, err = client.DeleteDataLakeStoreAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "DeleteDataLakeStoreAccount", resp, "Failure responding to request") + return } return @@ -479,6 +482,7 @@ func (client Client) DeleteStorageAccount(ctx context.Context, resourceGroupName result, err = client.DeleteStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "DeleteStorageAccount", resp, "Failure responding to request") + return } return @@ -554,6 +558,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, accountN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "Get", resp, "Failure responding to request") + return } return @@ -632,6 +637,7 @@ func (client Client) GetDataLakeStoreAccount(ctx context.Context, resourceGroupN result, err = client.GetDataLakeStoreAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "GetDataLakeStoreAccount", resp, "Failure responding to request") + return } return @@ -710,6 +716,7 @@ func (client Client) GetStorageAccount(ctx context.Context, resourceGroupName st result, err = client.GetStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "GetStorageAccount", resp, "Failure responding to request") + return } return @@ -789,6 +796,7 @@ func (client Client) GetStorageContainer(ctx context.Context, resourceGroupName result, err = client.GetStorageContainerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "GetStorageContainer", resp, "Failure responding to request") + return } return @@ -882,6 +890,7 @@ func (client Client) List(ctx context.Context, filter string, top *int32, skip * result.dlaalr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "List", resp, "Failure responding to request") + return } if result.dlaalr.hasNextLink() && result.dlaalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -971,6 +980,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults DataLakeAn result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1039,6 +1049,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.dlaalr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dlaalr.hasNextLink() && result.dlaalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1129,6 +1140,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1198,6 +1210,7 @@ func (client Client) ListDataLakeStoreAccounts(ctx context.Context, resourceGrou result.dlaaldlsr, err = client.ListDataLakeStoreAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "ListDataLakeStoreAccounts", resp, "Failure responding to request") + return } if result.dlaaldlsr.hasNextLink() && result.dlaaldlsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1289,6 +1302,7 @@ func (client Client) listDataLakeStoreAccountsNextResults(ctx context.Context, l result, err = client.ListDataLakeStoreAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "listDataLakeStoreAccountsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1345,6 +1359,7 @@ func (client Client) ListSasTokens(ctx context.Context, resourceGroupName string result.lstr, err = client.ListSasTokensResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "ListSasTokens", resp, "Failure responding to request") + return } if result.lstr.hasNextLink() && result.lstr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1411,6 +1426,7 @@ func (client Client) listSasTokensNextResults(ctx context.Context, lastResults L result, err = client.ListSasTokensResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "listSasTokensNextResults", resp, "Failure responding to next results request") + return } return } @@ -1480,6 +1496,7 @@ func (client Client) ListStorageAccounts(ctx context.Context, resourceGroupName result.dlaalsar, err = client.ListStorageAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "ListStorageAccounts", resp, "Failure responding to request") + return } if result.dlaalsar.hasNextLink() && result.dlaalsar.IsEmpty() { err = result.NextWithContext(ctx) @@ -1571,6 +1588,7 @@ func (client Client) listStorageAccountsNextResults(ctx context.Context, lastRes result, err = client.ListStorageAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "listStorageAccountsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1625,6 +1643,7 @@ func (client Client) ListStorageContainers(ctx context.Context, resourceGroupNam result.lbcr, err = client.ListStorageContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "ListStorageContainers", resp, "Failure responding to request") + return } if result.lbcr.hasNextLink() && result.lbcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1690,6 +1709,7 @@ func (client Client) listStorageContainersNextResults(ctx context.Context, lastR result, err = client.ListStorageContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "listStorageContainersNextResults", resp, "Failure responding to next results request") + return } return } @@ -1825,6 +1845,7 @@ func (client Client) UpdateStorageAccount(ctx context.Context, resourceGroupName result, err = client.UpdateStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "UpdateStorageAccount", resp, "Failure responding to request") + return } return diff --git a/services/preview/datalake/store/2015-10-01-preview/filesystem/filesystem.go b/services/preview/datalake/store/2015-10-01-preview/filesystem/filesystem.go index ff8cd4169388..e215daf1eb62 100644 --- a/services/preview/datalake/store/2015-10-01-preview/filesystem/filesystem.go +++ b/services/preview/datalake/store/2015-10-01-preview/filesystem/filesystem.go @@ -75,6 +75,7 @@ func (client Client) Append(ctx context.Context, accountName string, directFileP result, err = client.AppendResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "Append", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client Client) CheckAccess(ctx context.Context, accountName string, pathPa result, err = client.CheckAccessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "CheckAccess", resp, "Failure responding to request") + return } return @@ -252,6 +254,7 @@ func (client Client) Concat(ctx context.Context, accountName string, destination result, err = client.ConcatResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "Concat", resp, "Failure responding to request") + return } return @@ -340,6 +343,7 @@ func (client Client) ConcurrentAppend(ctx context.Context, accountName string, f result, err = client.ConcurrentAppendResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "ConcurrentAppend", resp, "Failure responding to request") + return } return @@ -428,6 +432,7 @@ func (client Client) Create(ctx context.Context, accountName string, directFileP result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "Create", resp, "Failure responding to request") + return } return @@ -516,6 +521,7 @@ func (client Client) Delete(ctx context.Context, accountName string, filePath st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "Delete", resp, "Failure responding to request") + return } return @@ -599,6 +605,7 @@ func (client Client) Flush(ctx context.Context, accountName string, flushFilePat result, err = client.FlushResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "Flush", resp, "Failure responding to request") + return } return @@ -680,6 +687,7 @@ func (client Client) GetACLStatus(ctx context.Context, accountName string, ACLFi result, err = client.GetACLStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "GetACLStatus", resp, "Failure responding to request") + return } return @@ -760,6 +768,7 @@ func (client Client) GetContentSummary(ctx context.Context, accountName string, result, err = client.GetContentSummaryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "GetContentSummary", resp, "Failure responding to request") + return } return @@ -840,6 +849,7 @@ func (client Client) GetFileStatus(ctx context.Context, accountName string, getF result, err = client.GetFileStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "GetFileStatus", resp, "Failure responding to request") + return } return @@ -926,6 +936,7 @@ func (client Client) ListFileStatus(ctx context.Context, accountName string, lis result, err = client.ListFileStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "ListFileStatus", resp, "Failure responding to request") + return } return @@ -1014,6 +1025,7 @@ func (client Client) Mkdirs(ctx context.Context, accountName string, pathParamet result, err = client.MkdirsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "Mkdirs", resp, "Failure responding to request") + return } return @@ -1096,6 +1108,7 @@ func (client Client) ModifyACLEntries(ctx context.Context, accountName string, m result, err = client.ModifyACLEntriesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "ModifyACLEntries", resp, "Failure responding to request") + return } return @@ -1185,6 +1198,7 @@ func (client Client) MsConcat(ctx context.Context, accountName string, msConcatD result, err = client.MsConcatResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "MsConcat", resp, "Failure responding to request") + return } return @@ -1268,6 +1282,7 @@ func (client Client) Open(ctx context.Context, accountName string, directFilePat result, err = client.OpenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "Open", resp, "Failure responding to request") + return } return @@ -1354,6 +1369,7 @@ func (client Client) RemoveACL(ctx context.Context, accountName string, ACLFileP result, err = client.RemoveACLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "RemoveACL", resp, "Failure responding to request") + return } return @@ -1434,6 +1450,7 @@ func (client Client) RemoveACLEntries(ctx context.Context, accountName string, r result, err = client.RemoveACLEntriesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "RemoveACLEntries", resp, "Failure responding to request") + return } return @@ -1514,6 +1531,7 @@ func (client Client) RemoveDefaultACL(ctx context.Context, accountName string, d result, err = client.RemoveDefaultACLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "RemoveDefaultACL", resp, "Failure responding to request") + return } return @@ -1593,6 +1611,7 @@ func (client Client) Rename(ctx context.Context, accountName string, renameFileP result, err = client.RenameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "Rename", resp, "Failure responding to request") + return } return @@ -1676,6 +1695,7 @@ func (client Client) SetACL(ctx context.Context, accountName string, setACLFileP result, err = client.SetACLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "SetACL", resp, "Failure responding to request") + return } return @@ -1763,6 +1783,7 @@ func (client Client) SetFileExpiry(ctx context.Context, accountName string, file result, err = client.SetFileExpiryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "SetFileExpiry", resp, "Failure responding to request") + return } return @@ -1850,6 +1871,7 @@ func (client Client) SetOwner(ctx context.Context, accountName string, setOwnerF result, err = client.SetOwnerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "SetOwner", resp, "Failure responding to request") + return } return @@ -1937,6 +1959,7 @@ func (client Client) SetPermission(ctx context.Context, accountName string, setP result, err = client.SetPermissionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "filesystem.Client", "SetPermission", resp, "Failure responding to request") + return } return diff --git a/services/preview/datalake/store/mgmt/2015-10-01-preview/account/account.go b/services/preview/datalake/store/mgmt/2015-10-01-preview/account/account.go index 91083a587339..c4965da436fd 100644 --- a/services/preview/datalake/store/mgmt/2015-10-01-preview/account/account.go +++ b/services/preview/datalake/store/mgmt/2015-10-01-preview/account/account.go @@ -154,6 +154,7 @@ func (client Client) CreateOrUpdateFirewallRule(ctx context.Context, resourceGro result, err = client.CreateOrUpdateFirewallRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "CreateOrUpdateFirewallRule", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client Client) DeleteFirewallRule(ctx context.Context, resourceGroupName s result, err = client.DeleteFirewallRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "DeleteFirewallRule", resp, "Failure responding to request") + return } return @@ -383,6 +385,7 @@ func (client Client) EnableKeyVault(ctx context.Context, resourceGroupName strin result, err = client.EnableKeyVaultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "EnableKeyVault", resp, "Failure responding to request") + return } return @@ -457,6 +460,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, accountN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "Get", resp, "Failure responding to request") + return } return @@ -533,6 +537,7 @@ func (client Client) GetFirewallRule(ctx context.Context, resourceGroupName stri result, err = client.GetFirewallRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "GetFirewallRule", resp, "Failure responding to request") + return } return @@ -625,6 +630,7 @@ func (client Client) List(ctx context.Context, filter string, top *int32, skip * result.dlsalr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "List", resp, "Failure responding to request") + return } if result.dlsalr.hasNextLink() && result.dlsalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -714,6 +720,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults DataLakeSt result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -782,6 +789,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.dlsalr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dlsalr.hasNextLink() && result.dlsalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -872,6 +880,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -924,6 +933,7 @@ func (client Client) ListFirewallRules(ctx context.Context, resourceGroupName st result.dlsfrlr, err = client.ListFirewallRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "ListFirewallRules", resp, "Failure responding to request") + return } if result.dlsfrlr.hasNextLink() && result.dlsfrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -988,6 +998,7 @@ func (client Client) listFirewallRulesNextResults(ctx context.Context, lastResul result, err = client.ListFirewallRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "account.Client", "listFirewallRulesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/operations.go b/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/operations.go index 6d545eaefc86..8bcd92c816aa 100644 --- a/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/operations.go +++ b/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result ServiceOperatio result.sol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.OperationsClient", "List", resp, "Failure responding to request") + return } if result.sol.hasNextLink() && result.sol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/projects.go b/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/projects.go index 069edb9e4ef1..4cc977b71084 100644 --- a/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/projects.go +++ b/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/projects.go @@ -75,6 +75,7 @@ func (client ProjectsClient) CreateOrUpdate(ctx context.Context, parameters Proj result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ProjectsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client ProjectsClient) Delete(ctx context.Context, groupName string, servi result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ProjectsClient", "Delete", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client ProjectsClient) Get(ctx context.Context, groupName string, serviceN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ProjectsClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +317,7 @@ func (client ProjectsClient) List(ctx context.Context, groupName string, service result.pl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ProjectsClient", "List", resp, "Failure responding to request") + return } if result.pl.hasNextLink() && result.pl.IsEmpty() { err = result.NextWithContext(ctx) @@ -378,6 +382,7 @@ func (client ProjectsClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ProjectsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -432,6 +437,7 @@ func (client ProjectsClient) Update(ctx context.Context, parameters Project, gro result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ProjectsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/resourceskus.go b/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/resourceskus.go index 3e746cfd82ff..b787ba76cff3 100644 --- a/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/resourceskus.go +++ b/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/resourceskus.go @@ -70,6 +70,7 @@ func (client ResourceSkusClient) ListSkus(ctx context.Context) (result ResourceS result.rsr, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ResourceSkusClient", "ListSkus", resp, "Failure responding to request") + return } if result.rsr.hasNextLink() && result.rsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client ResourceSkusClient) listSkusNextResults(ctx context.Context, lastRe result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ResourceSkusClient", "listSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/services.go b/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/services.go index d69b17c99964..4b916df18443 100644 --- a/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/services.go +++ b/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/services.go @@ -74,6 +74,7 @@ func (client ServicesClient) CheckChildrenNameAvailability(ctx context.Context, result, err = client.CheckChildrenNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "CheckChildrenNameAvailability", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ServicesClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -228,6 +230,7 @@ func (client ServicesClient) CheckStatus(ctx context.Context, groupName string, result, err = client.CheckStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "CheckStatus", resp, "Failure responding to request") + return } return @@ -474,6 +477,7 @@ func (client ServicesClient) Get(ctx context.Context, groupName string, serviceN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -548,6 +552,7 @@ func (client ServicesClient) List(ctx context.Context) (result ServiceListPage, result.sl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "List", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -610,6 +615,7 @@ func (client ServicesClient) listNextResults(ctx context.Context, lastResults Se result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -662,6 +668,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, groupName result.sl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -725,6 +732,7 @@ func (client ServicesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -778,6 +786,7 @@ func (client ServicesClient) ListSkus(ctx context.Context, groupName string, ser result.ssl, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "ListSkus", resp, "Failure responding to request") + return } if result.ssl.hasNextLink() && result.ssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -842,6 +851,7 @@ func (client ServicesClient) listSkusNextResults(ctx context.Context, lastResult result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "listSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/tasks.go b/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/tasks.go index d12cd214c3bf..bee63147a191 100644 --- a/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/tasks.go +++ b/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/tasks.go @@ -75,6 +75,7 @@ func (client TasksClient) Cancel(ctx context.Context, groupName string, serviceN result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "Cancel", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client TasksClient) CreateOrUpdate(ctx context.Context, parameters Project result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client TasksClient) Delete(ctx context.Context, groupName string, serviceN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "Delete", resp, "Failure responding to request") + return } return @@ -323,6 +326,7 @@ func (client TasksClient) Get(ctx context.Context, groupName string, serviceName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "Get", resp, "Failure responding to request") + return } return @@ -408,6 +412,7 @@ func (client TasksClient) List(ctx context.Context, groupName string, serviceNam result.tl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "List", resp, "Failure responding to request") + return } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) @@ -476,6 +481,7 @@ func (client TasksClient) listNextResults(ctx context.Context, lastResults TaskL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +537,7 @@ func (client TasksClient) Update(ctx context.Context, parameters ProjectTask, gr result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/usages.go b/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/usages.go index c638654ab5af..676a66597d49 100644 --- a/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/usages.go +++ b/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/usages.go @@ -72,6 +72,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Qu result.ql, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ql.hasNextLink() && result.ql.IsEmpty() { err = result.NextWithContext(ctx) @@ -135,6 +136,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Quot result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/operations.go b/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/operations.go index 5f5bd45d2c81..08d4726119e5 100644 --- a/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/operations.go +++ b/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result ServiceOperatio result.sol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.OperationsClient", "List", resp, "Failure responding to request") + return } if result.sol.hasNextLink() && result.sol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/projects.go b/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/projects.go index accb0e26ba04..7f5ec6d792ec 100644 --- a/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/projects.go +++ b/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/projects.go @@ -75,6 +75,7 @@ func (client ProjectsClient) CreateOrUpdate(ctx context.Context, parameters Proj result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ProjectsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client ProjectsClient) Delete(ctx context.Context, groupName string, servi result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ProjectsClient", "Delete", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client ProjectsClient) Get(ctx context.Context, groupName string, serviceN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ProjectsClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +317,7 @@ func (client ProjectsClient) List(ctx context.Context, groupName string, service result.pl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ProjectsClient", "List", resp, "Failure responding to request") + return } if result.pl.hasNextLink() && result.pl.IsEmpty() { err = result.NextWithContext(ctx) @@ -378,6 +382,7 @@ func (client ProjectsClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ProjectsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -432,6 +437,7 @@ func (client ProjectsClient) Update(ctx context.Context, parameters Project, gro result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ProjectsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/resourceskus.go b/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/resourceskus.go index 8b448f8fdf80..db16dfd19045 100644 --- a/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/resourceskus.go +++ b/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/resourceskus.go @@ -70,6 +70,7 @@ func (client ResourceSkusClient) ListSkus(ctx context.Context) (result ResourceS result.rsr, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ResourceSkusClient", "ListSkus", resp, "Failure responding to request") + return } if result.rsr.hasNextLink() && result.rsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client ResourceSkusClient) listSkusNextResults(ctx context.Context, lastRe result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ResourceSkusClient", "listSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/services.go b/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/services.go index 9a98d03c382d..a59365ec9723 100644 --- a/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/services.go +++ b/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/services.go @@ -74,6 +74,7 @@ func (client ServicesClient) CheckChildrenNameAvailability(ctx context.Context, result, err = client.CheckChildrenNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "CheckChildrenNameAvailability", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ServicesClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -228,6 +230,7 @@ func (client ServicesClient) CheckStatus(ctx context.Context, groupName string, result, err = client.CheckStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "CheckStatus", resp, "Failure responding to request") + return } return @@ -474,6 +477,7 @@ func (client ServicesClient) Get(ctx context.Context, groupName string, serviceN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -548,6 +552,7 @@ func (client ServicesClient) List(ctx context.Context) (result ServiceListPage, result.sl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "List", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -610,6 +615,7 @@ func (client ServicesClient) listNextResults(ctx context.Context, lastResults Se result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -662,6 +668,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, groupName result.sl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -725,6 +732,7 @@ func (client ServicesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -778,6 +786,7 @@ func (client ServicesClient) ListSkus(ctx context.Context, groupName string, ser result.ssl, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "ListSkus", resp, "Failure responding to request") + return } if result.ssl.hasNextLink() && result.ssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -842,6 +851,7 @@ func (client ServicesClient) listSkusNextResults(ctx context.Context, lastResult result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "listSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/tasks.go b/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/tasks.go index 394def2ac874..08ed622aa0f0 100644 --- a/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/tasks.go +++ b/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/tasks.go @@ -75,6 +75,7 @@ func (client TasksClient) Cancel(ctx context.Context, groupName string, serviceN result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "Cancel", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client TasksClient) CreateOrUpdate(ctx context.Context, parameters Project result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client TasksClient) Delete(ctx context.Context, groupName string, serviceN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "Delete", resp, "Failure responding to request") + return } return @@ -323,6 +326,7 @@ func (client TasksClient) Get(ctx context.Context, groupName string, serviceName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "Get", resp, "Failure responding to request") + return } return @@ -408,6 +412,7 @@ func (client TasksClient) List(ctx context.Context, groupName string, serviceNam result.tl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "List", resp, "Failure responding to request") + return } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) @@ -476,6 +481,7 @@ func (client TasksClient) listNextResults(ctx context.Context, lastResults TaskL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -531,6 +537,7 @@ func (client TasksClient) Update(ctx context.Context, parameters ProjectTask, gr result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/usages.go b/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/usages.go index 07043453bfec..72123e5e7f1f 100644 --- a/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/usages.go +++ b/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/usages.go @@ -72,6 +72,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Qu result.ql, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ql.hasNextLink() && result.ql.IsEmpty() { err = result.NextWithContext(ctx) @@ -135,6 +136,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Quot result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/files.go b/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/files.go index 08663c3db33c..b96b4f31e7e3 100644 --- a/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/files.go +++ b/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/files.go @@ -75,6 +75,7 @@ func (client FilesClient) CreateOrUpdate(ctx context.Context, parameters Project result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.FilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client FilesClient) Delete(ctx context.Context, groupName string, serviceN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.FilesClient", "Delete", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client FilesClient) Get(ctx context.Context, groupName string, serviceName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.FilesClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +318,7 @@ func (client FilesClient) List(ctx context.Context, groupName string, serviceNam result.fl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.FilesClient", "List", resp, "Failure responding to request") + return } if result.fl.hasNextLink() && result.fl.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +384,7 @@ func (client FilesClient) listNextResults(ctx context.Context, lastResults FileL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.FilesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -433,6 +438,7 @@ func (client FilesClient) Read(ctx context.Context, groupName string, serviceNam result, err = client.ReadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.FilesClient", "Read", resp, "Failure responding to request") + return } return @@ -512,6 +518,7 @@ func (client FilesClient) ReadWrite(ctx context.Context, groupName string, servi result, err = client.ReadWriteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.FilesClient", "ReadWrite", resp, "Failure responding to request") + return } return @@ -592,6 +599,7 @@ func (client FilesClient) Update(ctx context.Context, parameters ProjectFile, gr result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.FilesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/operations.go b/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/operations.go index dfaf886fe999..1336357e8599 100644 --- a/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/operations.go +++ b/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result ServiceOperatio result.sol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.OperationsClient", "List", resp, "Failure responding to request") + return } if result.sol.hasNextLink() && result.sol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/projects.go b/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/projects.go index 9c0e0156907a..20567d1f883c 100644 --- a/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/projects.go +++ b/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/projects.go @@ -75,6 +75,7 @@ func (client ProjectsClient) CreateOrUpdate(ctx context.Context, parameters Proj result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ProjectsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client ProjectsClient) Delete(ctx context.Context, groupName string, servi result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ProjectsClient", "Delete", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client ProjectsClient) Get(ctx context.Context, groupName string, serviceN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ProjectsClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +317,7 @@ func (client ProjectsClient) List(ctx context.Context, groupName string, service result.pl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ProjectsClient", "List", resp, "Failure responding to request") + return } if result.pl.hasNextLink() && result.pl.IsEmpty() { err = result.NextWithContext(ctx) @@ -378,6 +382,7 @@ func (client ProjectsClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ProjectsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -432,6 +437,7 @@ func (client ProjectsClient) Update(ctx context.Context, parameters Project, gro result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ProjectsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/resourceskus.go b/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/resourceskus.go index e5d29ea9e358..92f72974fff5 100644 --- a/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/resourceskus.go +++ b/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/resourceskus.go @@ -70,6 +70,7 @@ func (client ResourceSkusClient) ListSkus(ctx context.Context) (result ResourceS result.rsr, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ResourceSkusClient", "ListSkus", resp, "Failure responding to request") + return } if result.rsr.hasNextLink() && result.rsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client ResourceSkusClient) listSkusNextResults(ctx context.Context, lastRe result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ResourceSkusClient", "listSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/services.go b/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/services.go index 8bab9b1cebf8..34cd738ee601 100644 --- a/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/services.go +++ b/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/services.go @@ -74,6 +74,7 @@ func (client ServicesClient) CheckChildrenNameAvailability(ctx context.Context, result, err = client.CheckChildrenNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "CheckChildrenNameAvailability", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ServicesClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -228,6 +230,7 @@ func (client ServicesClient) CheckStatus(ctx context.Context, groupName string, result, err = client.CheckStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "CheckStatus", resp, "Failure responding to request") + return } return @@ -474,6 +477,7 @@ func (client ServicesClient) Get(ctx context.Context, groupName string, serviceN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -548,6 +552,7 @@ func (client ServicesClient) List(ctx context.Context) (result ServiceListPage, result.sl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "List", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -610,6 +615,7 @@ func (client ServicesClient) listNextResults(ctx context.Context, lastResults Se result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -662,6 +668,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, groupName result.sl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -725,6 +732,7 @@ func (client ServicesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -778,6 +786,7 @@ func (client ServicesClient) ListSkus(ctx context.Context, groupName string, ser result.ssl, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "ListSkus", resp, "Failure responding to request") + return } if result.ssl.hasNextLink() && result.ssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -842,6 +851,7 @@ func (client ServicesClient) listSkusNextResults(ctx context.Context, lastResult result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServicesClient", "listSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/servicetasks.go b/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/servicetasks.go index 145fa1d5ee68..426f0a19bea6 100644 --- a/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/servicetasks.go +++ b/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/servicetasks.go @@ -74,6 +74,7 @@ func (client ServiceTasksClient) Cancel(ctx context.Context, groupName string, s result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServiceTasksClient", "Cancel", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client ServiceTasksClient) CreateOrUpdate(ctx context.Context, parameters result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServiceTasksClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client ServiceTasksClient) Delete(ctx context.Context, groupName string, s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServiceTasksClient", "Delete", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client ServiceTasksClient) Get(ctx context.Context, groupName string, serv result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServiceTasksClient", "Get", resp, "Failure responding to request") + return } return @@ -399,6 +403,7 @@ func (client ServiceTasksClient) List(ctx context.Context, groupName string, ser result.tl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServiceTasksClient", "List", resp, "Failure responding to request") + return } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +471,7 @@ func (client ServiceTasksClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServiceTasksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -521,6 +527,7 @@ func (client ServiceTasksClient) Update(ctx context.Context, parameters ProjectT result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.ServiceTasksClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/tasks.go b/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/tasks.go index 04d7f03f8fb7..7086d86fdf7f 100644 --- a/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/tasks.go +++ b/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/tasks.go @@ -75,6 +75,7 @@ func (client TasksClient) Cancel(ctx context.Context, groupName string, serviceN result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "Cancel", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client TasksClient) Command(ctx context.Context, groupName string, service result, err = client.CommandResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "Command", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client TasksClient) CreateOrUpdate(ctx context.Context, parameters Project result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -323,6 +326,7 @@ func (client TasksClient) Delete(ctx context.Context, groupName string, serviceN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "Delete", resp, "Failure responding to request") + return } return @@ -406,6 +410,7 @@ func (client TasksClient) Get(ctx context.Context, groupName string, serviceName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "Get", resp, "Failure responding to request") + return } return @@ -491,6 +496,7 @@ func (client TasksClient) List(ctx context.Context, groupName string, serviceNam result.tl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "List", resp, "Failure responding to request") + return } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) @@ -559,6 +565,7 @@ func (client TasksClient) listNextResults(ctx context.Context, lastResults TaskL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -614,6 +621,7 @@ func (client TasksClient) Update(ctx context.Context, parameters ProjectTask, gr result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.TasksClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/usages.go b/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/usages.go index 10027dfbbc20..509f9ad7aa0e 100644 --- a/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/usages.go +++ b/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/usages.go @@ -72,6 +72,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Qu result.ql, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ql.hasNextLink() && result.ql.IsEmpty() { err = result.NextWithContext(ctx) @@ -135,6 +136,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Quot result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datamigration.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/accounts.go b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/accounts.go index 223f45ff5dff..979ba1b52b5e 100644 --- a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/accounts.go +++ b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/accounts.go @@ -232,6 +232,7 @@ func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result.al, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +376,7 @@ func (client AccountsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -425,6 +428,7 @@ func (client AccountsClient) ListBySubscription(ctx context.Context, skipToken s result.al, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -490,6 +494,7 @@ func (client AccountsClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -542,6 +547,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/consumerinvitations.go b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/consumerinvitations.go index 29f7c66cf23e..93db02d5fad9 100644 --- a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/consumerinvitations.go +++ b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/consumerinvitations.go @@ -74,6 +74,7 @@ func (client ConsumerInvitationsClient) Get(ctx context.Context, location string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ConsumerInvitationsClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client ConsumerInvitationsClient) ListInvitations(ctx context.Context, ski result.cil, err = client.ListInvitationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ConsumerInvitationsClient", "ListInvitations", resp, "Failure responding to request") + return } if result.cil.hasNextLink() && result.cil.IsEmpty() { err = result.NextWithContext(ctx) @@ -209,6 +211,7 @@ func (client ConsumerInvitationsClient) listInvitationsNextResults(ctx context.C result, err = client.ListInvitationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ConsumerInvitationsClient", "listInvitationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -267,6 +270,7 @@ func (client ConsumerInvitationsClient) RejectInvitation(ctx context.Context, lo result, err = client.RejectInvitationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ConsumerInvitationsClient", "RejectInvitation", resp, "Failure responding to request") + return } return diff --git a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/consumersourcedatasets.go b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/consumersourcedatasets.go index 217ffa9d8f89..82d869f4bf55 100644 --- a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/consumersourcedatasets.go +++ b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/consumersourcedatasets.go @@ -76,6 +76,7 @@ func (client ConsumerSourceDataSetsClient) ListByShareSubscription(ctx context.C result.csdsl, err = client.ListByShareSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ConsumerSourceDataSetsClient", "ListByShareSubscription", resp, "Failure responding to request") + return } if result.csdsl.hasNextLink() && result.csdsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -144,6 +145,7 @@ func (client ConsumerSourceDataSetsClient) listByShareSubscriptionNextResults(ct result, err = client.ListByShareSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ConsumerSourceDataSetsClient", "listByShareSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/datasetmappings.go b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/datasetmappings.go index 1378a6e552e6..022171b47593 100644 --- a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/datasetmappings.go +++ b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/datasetmappings.go @@ -75,6 +75,7 @@ func (client DataSetMappingsClient) Create(ctx context.Context, resourceGroupNam result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.DataSetMappingsClient", "Create", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client DataSetMappingsClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.DataSetMappingsClient", "Delete", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client DataSetMappingsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.DataSetMappingsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client DataSetMappingsClient) ListByShareSubscription(ctx context.Context, result.dsml, err = client.ListByShareSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.DataSetMappingsClient", "ListByShareSubscription", resp, "Failure responding to request") + return } if result.dsml.hasNextLink() && result.dsml.IsEmpty() { err = result.NextWithContext(ctx) @@ -390,6 +394,7 @@ func (client DataSetMappingsClient) listByShareSubscriptionNextResults(ctx conte result, err = client.ListByShareSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.DataSetMappingsClient", "listByShareSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/datasets.go b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/datasets.go index 1fa83c5d55b9..d7fe486e9bc2 100644 --- a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/datasets.go +++ b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/datasets.go @@ -75,6 +75,7 @@ func (client DataSetsClient) Create(ctx context.Context, resourceGroupName strin result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.DataSetsClient", "Create", resp, "Failure responding to request") + return } return @@ -234,6 +235,7 @@ func (client DataSetsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.DataSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +318,7 @@ func (client DataSetsClient) ListByShare(ctx context.Context, resourceGroupName result.dsl, err = client.ListByShareResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.DataSetsClient", "ListByShare", resp, "Failure responding to request") + return } if result.dsl.hasNextLink() && result.dsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -390,6 +393,7 @@ func (client DataSetsClient) listByShareNextResults(ctx context.Context, lastRes result, err = client.ListByShareResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.DataSetsClient", "listByShareNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/invitations.go b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/invitations.go index 74537ce202cf..c788065c2285 100644 --- a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/invitations.go +++ b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/invitations.go @@ -75,6 +75,7 @@ func (client InvitationsClient) Create(ctx context.Context, resourceGroupName st result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.InvitationsClient", "Create", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client InvitationsClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.InvitationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client InvitationsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.InvitationsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client InvitationsClient) ListByShare(ctx context.Context, resourceGroupNa result.il, err = client.ListByShareResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.InvitationsClient", "ListByShare", resp, "Failure responding to request") + return } if result.il.hasNextLink() && result.il.IsEmpty() { err = result.NextWithContext(ctx) @@ -390,6 +394,7 @@ func (client InvitationsClient) listByShareNextResults(ctx context.Context, last result, err = client.ListByShareResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.InvitationsClient", "listByShareNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/operations.go b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/operations.go index aff41c364eb6..b0663cb6ca48 100644 --- a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/operations.go +++ b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListPa result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/providersharesubscriptions.go b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/providersharesubscriptions.go index 344e577844dc..464dcf54c5c5 100644 --- a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/providersharesubscriptions.go +++ b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/providersharesubscriptions.go @@ -75,6 +75,7 @@ func (client ProviderShareSubscriptionsClient) GetByShare(ctx context.Context, r result, err = client.GetByShareResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ProviderShareSubscriptionsClient", "GetByShare", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client ProviderShareSubscriptionsClient) ListByShare(ctx context.Context, result.pssl, err = client.ListByShareResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ProviderShareSubscriptionsClient", "ListByShare", resp, "Failure responding to request") + return } if result.pssl.hasNextLink() && result.pssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -223,6 +225,7 @@ func (client ProviderShareSubscriptionsClient) listByShareNextResults(ctx contex result, err = client.ListByShareResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ProviderShareSubscriptionsClient", "listByShareNextResults", resp, "Failure responding to next results request") + return } return } @@ -276,6 +279,7 @@ func (client ProviderShareSubscriptionsClient) Reinstate(ctx context.Context, re result, err = client.ReinstateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ProviderShareSubscriptionsClient", "Reinstate", resp, "Failure responding to request") + return } return diff --git a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/shares.go b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/shares.go index 1ccea77564ef..25b3a882c420 100644 --- a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/shares.go +++ b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/shares.go @@ -74,6 +74,7 @@ func (client SharesClient) Create(ctx context.Context, resourceGroupName string, result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.SharesClient", "Create", resp, "Failure responding to request") + return } return @@ -230,6 +231,7 @@ func (client SharesClient) Get(ctx context.Context, resourceGroupName string, ac result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.SharesClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +312,7 @@ func (client SharesClient) ListByAccount(ctx context.Context, resourceGroupName result.sl, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.SharesClient", "ListByAccount", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -383,6 +386,7 @@ func (client SharesClient) listByAccountNextResults(ctx context.Context, lastRes result, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.SharesClient", "listByAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -440,6 +444,7 @@ func (client SharesClient) ListSynchronizationDetails(ctx context.Context, resou result.sdl, err = client.ListSynchronizationDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.SharesClient", "ListSynchronizationDetails", resp, "Failure responding to request") + return } if result.sdl.hasNextLink() && result.sdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -517,6 +522,7 @@ func (client SharesClient) listSynchronizationDetailsNextResults(ctx context.Con result, err = client.ListSynchronizationDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.SharesClient", "listSynchronizationDetailsNextResults", resp, "Failure responding to next results request") + return } return } @@ -573,6 +579,7 @@ func (client SharesClient) ListSynchronizations(ctx context.Context, resourceGro result.ssl, err = client.ListSynchronizationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.SharesClient", "ListSynchronizations", resp, "Failure responding to request") + return } if result.ssl.hasNextLink() && result.ssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -647,6 +654,7 @@ func (client SharesClient) listSynchronizationsNextResults(ctx context.Context, result, err = client.ListSynchronizationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.SharesClient", "listSynchronizationsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/sharesubscriptions.go b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/sharesubscriptions.go index 258267a60c3d..bb1c415e472e 100644 --- a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/sharesubscriptions.go +++ b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/sharesubscriptions.go @@ -175,6 +175,7 @@ func (client ShareSubscriptionsClient) Create(ctx context.Context, resourceGroup result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "Create", resp, "Failure responding to request") + return } return @@ -331,6 +332,7 @@ func (client ShareSubscriptionsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -411,6 +413,7 @@ func (client ShareSubscriptionsClient) ListByAccount(ctx context.Context, resour result.ssl, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "ListByAccount", resp, "Failure responding to request") + return } if result.ssl.hasNextLink() && result.ssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -484,6 +487,7 @@ func (client ShareSubscriptionsClient) listByAccountNextResults(ctx context.Cont result, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "listByAccountNextResults", resp, "Failure responding to next results request") + return } return } @@ -538,6 +542,7 @@ func (client ShareSubscriptionsClient) ListSourceShareSynchronizationSettings(ct result.ssssl, err = client.ListSourceShareSynchronizationSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "ListSourceShareSynchronizationSettings", resp, "Failure responding to request") + return } if result.ssssl.hasNextLink() && result.ssssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -606,6 +611,7 @@ func (client ShareSubscriptionsClient) listSourceShareSynchronizationSettingsNex result, err = client.ListSourceShareSynchronizationSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "listSourceShareSynchronizationSettingsNextResults", resp, "Failure responding to next results request") + return } return } @@ -669,6 +675,7 @@ func (client ShareSubscriptionsClient) ListSynchronizationDetails(ctx context.Co result.sdl, err = client.ListSynchronizationDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "ListSynchronizationDetails", resp, "Failure responding to request") + return } if result.sdl.hasNextLink() && result.sdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -751,6 +758,7 @@ func (client ShareSubscriptionsClient) listSynchronizationDetailsNextResults(ctx result, err = client.ListSynchronizationDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "listSynchronizationDetailsNextResults", resp, "Failure responding to next results request") + return } return } @@ -807,6 +815,7 @@ func (client ShareSubscriptionsClient) ListSynchronizations(ctx context.Context, result.sssl, err = client.ListSynchronizationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "ListSynchronizations", resp, "Failure responding to request") + return } if result.sssl.hasNextLink() && result.sssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -881,6 +890,7 @@ func (client ShareSubscriptionsClient) listSynchronizationsNextResults(ctx conte result, err = client.ListSynchronizationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "listSynchronizationsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/synchronizationsettings.go b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/synchronizationsettings.go index a11f36adbeae..78ba4c5884ed 100644 --- a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/synchronizationsettings.go +++ b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/synchronizationsettings.go @@ -76,6 +76,7 @@ func (client SynchronizationSettingsClient) Create(ctx context.Context, resource result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.SynchronizationSettingsClient", "Create", resp, "Failure responding to request") + return } return @@ -236,6 +237,7 @@ func (client SynchronizationSettingsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.SynchronizationSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +318,7 @@ func (client SynchronizationSettingsClient) ListByShare(ctx context.Context, res result.ssl, err = client.ListByShareResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.SynchronizationSettingsClient", "ListByShare", resp, "Failure responding to request") + return } if result.ssl.hasNextLink() && result.ssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +387,7 @@ func (client SynchronizationSettingsClient) listByShareNextResults(ctx context.C result, err = client.ListByShareResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.SynchronizationSettingsClient", "listByShareNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/triggers.go b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/triggers.go index 4b55db75afbf..94a33cf9d8ad 100644 --- a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/triggers.go +++ b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/triggers.go @@ -235,6 +235,7 @@ func (client TriggersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.TriggersClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client TriggersClient) ListByShareSubscription(ctx context.Context, resour result.tl, err = client.ListByShareSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.TriggersClient", "ListByShareSubscription", resp, "Failure responding to request") + return } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) @@ -383,6 +385,7 @@ func (client TriggersClient) listByShareSubscriptionNextResults(ctx context.Cont result, err = client.ListByShareSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datashare.TriggersClient", "listByShareSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/controller.go b/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/controller.go index 179616d9831a..e8d8a00366d3 100644 --- a/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/controller.go +++ b/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/controller.go @@ -265,6 +265,7 @@ func (client ControllerClient) GetDetails(ctx context.Context, resourceGroupName result, err = client.GetDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "delegatednetwork.ControllerClient", "GetDetails", resp, "Failure responding to request") + return } return @@ -354,6 +355,7 @@ func (client ControllerClient) Patch(ctx context.Context, resourceGroupName stri result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "delegatednetwork.ControllerClient", "Patch", resp, "Failure responding to request") + return } return diff --git a/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/delegatednetwork.go b/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/delegatednetwork.go index 4fc5649a9de1..a38d86a08ddc 100644 --- a/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/delegatednetwork.go +++ b/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/delegatednetwork.go @@ -82,6 +82,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.dc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "delegatednetwork.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -145,6 +146,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "delegatednetwork.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -194,6 +196,7 @@ func (client Client) ListBySubscription(ctx context.Context) (result DelegatedCo result.dc, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "delegatednetwork.Client", "ListBySubscription", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -256,6 +259,7 @@ func (client Client) listBySubscriptionNextResults(ctx context.Context, lastResu result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "delegatednetwork.Client", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/delegatedsubnetservice.go b/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/delegatedsubnetservice.go index 16131de98526..b9f640bc96e3 100644 --- a/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/delegatedsubnetservice.go +++ b/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/delegatedsubnetservice.go @@ -174,6 +174,7 @@ func (client DelegatedSubnetServiceClient) GetDetails(ctx context.Context, resou result, err = client.GetDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "delegatednetwork.DelegatedSubnetServiceClient", "GetDetails", resp, "Failure responding to request") + return } return @@ -258,6 +259,7 @@ func (client DelegatedSubnetServiceClient) ListByResourceGroup(ctx context.Conte result.ds, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "delegatednetwork.DelegatedSubnetServiceClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ds.hasNextLink() && result.ds.IsEmpty() { err = result.NextWithContext(ctx) @@ -321,6 +323,7 @@ func (client DelegatedSubnetServiceClient) listByResourceGroupNextResults(ctx co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "delegatednetwork.DelegatedSubnetServiceClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -370,6 +373,7 @@ func (client DelegatedSubnetServiceClient) ListBySubscription(ctx context.Contex result.ds, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "delegatednetwork.DelegatedSubnetServiceClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ds.hasNextLink() && result.ds.IsEmpty() { err = result.NextWithContext(ctx) @@ -432,6 +436,7 @@ func (client DelegatedSubnetServiceClient) listBySubscriptionNextResults(ctx con result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "delegatednetwork.DelegatedSubnetServiceClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/operations.go b/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/operations.go index 72b6b5172838..ae556a4d803f 100644 --- a/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/operations.go +++ b/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "delegatednetwork.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "delegatednetwork.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/orchestratorinstanceservice.go b/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/orchestratorinstanceservice.go index 06e50703285c..9e7b291980c2 100644 --- a/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/orchestratorinstanceservice.go +++ b/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/orchestratorinstanceservice.go @@ -268,6 +268,7 @@ func (client OrchestratorInstanceServiceClient) GetDetails(ctx context.Context, result, err = client.GetDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "delegatednetwork.OrchestratorInstanceServiceClient", "GetDetails", resp, "Failure responding to request") + return } return @@ -352,6 +353,7 @@ func (client OrchestratorInstanceServiceClient) ListByResourceGroup(ctx context. result.o, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "delegatednetwork.OrchestratorInstanceServiceClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.o.hasNextLink() && result.o.IsEmpty() { err = result.NextWithContext(ctx) @@ -415,6 +417,7 @@ func (client OrchestratorInstanceServiceClient) listByResourceGroupNextResults(c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "delegatednetwork.OrchestratorInstanceServiceClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -464,6 +467,7 @@ func (client OrchestratorInstanceServiceClient) ListBySubscription(ctx context.C result.o, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "delegatednetwork.OrchestratorInstanceServiceClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.o.hasNextLink() && result.o.IsEmpty() { err = result.NextWithContext(ctx) @@ -526,6 +530,7 @@ func (client OrchestratorInstanceServiceClient) listBySubscriptionNextResults(ct result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "delegatednetwork.OrchestratorInstanceServiceClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -591,6 +596,7 @@ func (client OrchestratorInstanceServiceClient) Patch(ctx context.Context, resou result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "delegatednetwork.OrchestratorInstanceServiceClient", "Patch", resp, "Failure responding to request") + return } return diff --git a/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/artifactsources.go b/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/artifactsources.go index 44fa1321c9ba..b869a0d1147a 100644 --- a/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/artifactsources.go +++ b/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/artifactsources.go @@ -83,6 +83,7 @@ func (client ArtifactSourcesClient) CreateOrUpdate(ctx context.Context, resource result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.ArtifactSourcesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client ArtifactSourcesClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.ArtifactSourcesClient", "Delete", resp, "Failure responding to request") + return } return @@ -253,6 +255,7 @@ func (client ArtifactSourcesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.ArtifactSourcesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/operations.go b/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/operations.go index c035e658c40d..732af5c6c2f5 100644 --- a/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/operations.go +++ b/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) Get(ctx context.Context) (result ListOperation, e result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.OperationsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/rollouts.go b/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/rollouts.go index ed11d1fbad9b..ecc1b0175e84 100644 --- a/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/rollouts.go +++ b/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/rollouts.go @@ -82,6 +82,7 @@ func (client RolloutsClient) Cancel(ctx context.Context, resourceGroupName strin result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.RolloutsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -267,6 +268,7 @@ func (client RolloutsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.RolloutsClient", "Delete", resp, "Failure responding to request") + return } return @@ -351,6 +353,7 @@ func (client RolloutsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.RolloutsClient", "Get", resp, "Failure responding to request") + return } return @@ -440,6 +443,7 @@ func (client RolloutsClient) Restart(ctx context.Context, resourceGroupName stri result, err = client.RestartResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.RolloutsClient", "Restart", resp, "Failure responding to request") + return } return diff --git a/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/services.go b/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/services.go index 5b7e6a323247..3340b5266d12 100644 --- a/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/services.go +++ b/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/services.go @@ -86,6 +86,7 @@ func (client ServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.ServicesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client ServicesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.ServicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -257,6 +259,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.ServicesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/servicetopologies.go b/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/servicetopologies.go index 05d41273a7d6..75bd987f847f 100644 --- a/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/servicetopologies.go +++ b/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/servicetopologies.go @@ -86,6 +86,7 @@ func (client ServiceTopologiesClient) CreateOrUpdate(ctx context.Context, servic result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.ServiceTopologiesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client ServiceTopologiesClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.ServiceTopologiesClient", "Delete", resp, "Failure responding to request") + return } return @@ -253,6 +255,7 @@ func (client ServiceTopologiesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.ServiceTopologiesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/serviceunits.go b/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/serviceunits.go index b89405a03ee9..f7a5ee30f745 100644 --- a/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/serviceunits.go +++ b/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/serviceunits.go @@ -177,6 +177,7 @@ func (client ServiceUnitsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.ServiceUnitsClient", "Delete", resp, "Failure responding to request") + return } return @@ -263,6 +264,7 @@ func (client ServiceUnitsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.ServiceUnitsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/steps.go b/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/steps.go index 383d2ea86dd1..f61286d15314 100644 --- a/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/steps.go +++ b/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/steps.go @@ -86,6 +86,7 @@ func (client StepsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.StepsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client StepsClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.StepsClient", "Delete", resp, "Failure responding to request") + return } return @@ -256,6 +258,7 @@ func (client StepsClient) Get(ctx context.Context, resourceGroupName string, ste result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.StepsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/artifactsources.go b/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/artifactsources.go index 22553588c837..2ee77e9f995d 100644 --- a/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/artifactsources.go +++ b/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/artifactsources.go @@ -83,6 +83,7 @@ func (client ArtifactSourcesClient) CreateOrUpdate(ctx context.Context, resource result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.ArtifactSourcesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client ArtifactSourcesClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.ArtifactSourcesClient", "Delete", resp, "Failure responding to request") + return } return @@ -253,6 +255,7 @@ func (client ArtifactSourcesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.ArtifactSourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -335,6 +338,7 @@ func (client ArtifactSourcesClient) List(ctx context.Context, resourceGroupName result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.ArtifactSourcesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/operations.go b/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/operations.go index c90b694c75df..70d13ec70123 100644 --- a/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/operations.go +++ b/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsList, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/rollouts.go b/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/rollouts.go index 8bbc9484f2f6..6d37393f4fa4 100644 --- a/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/rollouts.go +++ b/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/rollouts.go @@ -82,6 +82,7 @@ func (client RolloutsClient) Cancel(ctx context.Context, resourceGroupName strin result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.RolloutsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -267,6 +268,7 @@ func (client RolloutsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.RolloutsClient", "Delete", resp, "Failure responding to request") + return } return @@ -351,6 +353,7 @@ func (client RolloutsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.RolloutsClient", "Get", resp, "Failure responding to request") + return } return @@ -436,6 +439,7 @@ func (client RolloutsClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.RolloutsClient", "List", resp, "Failure responding to request") + return } return @@ -521,6 +525,7 @@ func (client RolloutsClient) Restart(ctx context.Context, resourceGroupName stri result, err = client.RestartResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.RolloutsClient", "Restart", resp, "Failure responding to request") + return } return diff --git a/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/services.go b/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/services.go index 4759f49a0b93..0b63af85feb9 100644 --- a/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/services.go +++ b/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/services.go @@ -86,6 +86,7 @@ func (client ServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.ServicesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client ServicesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.ServicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -257,6 +259,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -341,6 +344,7 @@ func (client ServicesClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.ServicesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/servicetopologies.go b/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/servicetopologies.go index 1c4d9ef95637..168bb446662d 100644 --- a/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/servicetopologies.go +++ b/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/servicetopologies.go @@ -86,6 +86,7 @@ func (client ServiceTopologiesClient) CreateOrUpdate(ctx context.Context, servic result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.ServiceTopologiesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client ServiceTopologiesClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.ServiceTopologiesClient", "Delete", resp, "Failure responding to request") + return } return @@ -253,6 +255,7 @@ func (client ServiceTopologiesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.ServiceTopologiesClient", "Get", resp, "Failure responding to request") + return } return @@ -335,6 +338,7 @@ func (client ServiceTopologiesClient) List(ctx context.Context, resourceGroupNam result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.ServiceTopologiesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/serviceunits.go b/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/serviceunits.go index 2338aedb023e..8ca416e38d7e 100644 --- a/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/serviceunits.go +++ b/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/serviceunits.go @@ -177,6 +177,7 @@ func (client ServiceUnitsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.ServiceUnitsClient", "Delete", resp, "Failure responding to request") + return } return @@ -263,6 +264,7 @@ func (client ServiceUnitsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.ServiceUnitsClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +351,7 @@ func (client ServiceUnitsClient) List(ctx context.Context, resourceGroupName str result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.ServiceUnitsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/steps.go b/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/steps.go index f3cbf507ff67..f526546d8fe4 100644 --- a/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/steps.go +++ b/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/steps.go @@ -86,6 +86,7 @@ func (client StepsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.StepsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client StepsClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.StepsClient", "Delete", resp, "Failure responding to request") + return } return @@ -256,6 +258,7 @@ func (client StepsClient) Get(ctx context.Context, resourceGroupName string, ste result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.StepsClient", "Get", resp, "Failure responding to request") + return } return @@ -338,6 +341,7 @@ func (client StepsClient) List(ctx context.Context, resourceGroupName string) (r result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "deploymentmanager.StepsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/applicationgroups.go b/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/applicationgroups.go index 59b350b86370..dac7c8fa6388 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/applicationgroups.go +++ b/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/applicationgroups.go @@ -91,6 +91,7 @@ func (client ApplicationGroupsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client ApplicationGroupsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -268,6 +270,7 @@ func (client ApplicationGroupsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -354,6 +357,7 @@ func (client ApplicationGroupsClient) ListByResourceGroup(ctx context.Context, r result.agl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.agl.hasNextLink() && result.agl.IsEmpty() { err = result.NextWithContext(ctx) @@ -420,6 +424,7 @@ func (client ApplicationGroupsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -477,6 +482,7 @@ func (client ApplicationGroupsClient) ListBySubscription(ctx context.Context, fi result.agl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.agl.hasNextLink() && result.agl.IsEmpty() { err = result.NextWithContext(ctx) @@ -542,6 +548,7 @@ func (client ApplicationGroupsClient) listBySubscriptionNextResults(ctx context. result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -607,6 +614,7 @@ func (client ApplicationGroupsClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/applications.go b/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/applications.go index 41a01fae0bf0..fedb76b97c5b 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/applications.go +++ b/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/applications.go @@ -93,6 +93,7 @@ func (client ApplicationsClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client ApplicationsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client ApplicationsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client ApplicationsClient) List(ctx context.Context, resourceGroupName str result.al, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "List", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -434,6 +438,7 @@ func (client ApplicationsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -503,6 +508,7 @@ func (client ApplicationsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/desktops.go b/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/desktops.go index 8d33e41ac5c9..7c8d932e9cc0 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/desktops.go +++ b/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/desktops.go @@ -90,6 +90,7 @@ func (client DesktopsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.DesktopsClient", "Get", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client DesktopsClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.DesktopsClient", "List", resp, "Failure responding to request") + return } return @@ -272,6 +274,7 @@ func (client DesktopsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.DesktopsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/hostpools.go b/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/hostpools.go index 6992a2d4f524..53f33f300ce7 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/hostpools.go +++ b/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/hostpools.go @@ -89,6 +89,7 @@ func (client HostPoolsClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client HostPoolsClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "Delete", resp, "Failure responding to request") + return } return @@ -270,6 +272,7 @@ func (client HostPoolsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client HostPoolsClient) List(ctx context.Context) (result HostPoolListPage result.hpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "List", resp, "Failure responding to request") + return } if result.hpl.hasNextLink() && result.hpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -411,6 +415,7 @@ func (client HostPoolsClient) listNextResults(ctx context.Context, lastResults H result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -472,6 +477,7 @@ func (client HostPoolsClient) ListByResourceGroup(ctx context.Context, resourceG result.hpl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.hpl.hasNextLink() && result.hpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -535,6 +541,7 @@ func (client HostPoolsClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -600,6 +607,7 @@ func (client HostPoolsClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/operations.go b/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/operations.go index ca9dd6c7ee06..0b99537f7607 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/operations.go +++ b/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result ResourceProvide result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/sessionhosts.go b/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/sessionhosts.go index 4097f9b8ab3e..6f3a98de3010 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/sessionhosts.go +++ b/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/sessionhosts.go @@ -91,6 +91,7 @@ func (client SessionHostsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "Delete", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client SessionHostsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "Get", resp, "Failure responding to request") + return } return @@ -276,6 +278,7 @@ func (client SessionHostsClient) List(ctx context.Context, resourceGroupName str result.shl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "List", resp, "Failure responding to request") + return } if result.shl.hasNextLink() && result.shl.IsEmpty() { err = result.NextWithContext(ctx) @@ -340,6 +343,7 @@ func (client SessionHostsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -409,6 +413,7 @@ func (client SessionHostsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/startmenuitems.go b/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/startmenuitems.go index 6116a5f14e5c..7d97a8dc0d3a 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/startmenuitems.go +++ b/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/startmenuitems.go @@ -87,6 +87,7 @@ func (client StartMenuItemsClient) List(ctx context.Context, resourceGroupName s result.smil, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.StartMenuItemsClient", "List", resp, "Failure responding to request") + return } if result.smil.hasNextLink() && result.smil.IsEmpty() { err = result.NextWithContext(ctx) @@ -151,6 +152,7 @@ func (client StartMenuItemsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.StartMenuItemsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/usersessions.go b/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/usersessions.go index fba04eadb42c..83a2f9fa77c7 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/usersessions.go +++ b/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/usersessions.go @@ -95,6 +95,7 @@ func (client UserSessionsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -195,6 +196,7 @@ func (client UserSessionsClient) Disconnect(ctx context.Context, resourceGroupNa result, err = client.DisconnectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "Disconnect", resp, "Failure responding to request") + return } return @@ -292,6 +294,7 @@ func (client UserSessionsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "Get", resp, "Failure responding to request") + return } return @@ -387,6 +390,7 @@ func (client UserSessionsClient) List(ctx context.Context, resourceGroupName str result.usl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "List", resp, "Failure responding to request") + return } if result.usl.hasNextLink() && result.usl.IsEmpty() { err = result.NextWithContext(ctx) @@ -452,6 +456,7 @@ func (client UserSessionsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -518,6 +523,7 @@ func (client UserSessionsClient) ListByHostPool(ctx context.Context, resourceGro result.usl, err = client.ListByHostPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "ListByHostPool", resp, "Failure responding to request") + return } if result.usl.hasNextLink() && result.usl.IsEmpty() { err = result.NextWithContext(ctx) @@ -585,6 +591,7 @@ func (client UserSessionsClient) listByHostPoolNextResults(ctx context.Context, result, err = client.ListByHostPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "listByHostPoolNextResults", resp, "Failure responding to next results request") + return } return } @@ -658,6 +665,7 @@ func (client UserSessionsClient) SendMessageMethod(ctx context.Context, resource result, err = client.SendMessageMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "SendMessageMethod", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/workspaces.go b/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/workspaces.go index 69ea2d06dc4c..cff985d4a211 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/workspaces.go +++ b/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/workspaces.go @@ -87,6 +87,7 @@ func (client WorkspacesClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client WorkspacesClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "Delete", resp, "Failure responding to request") + return } return @@ -264,6 +266,7 @@ func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resource result.wl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.wl.hasNextLink() && result.wl.IsEmpty() { err = result.NextWithContext(ctx) @@ -412,6 +416,7 @@ func (client WorkspacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -467,6 +472,7 @@ func (client WorkspacesClient) ListBySubscription(ctx context.Context) (result W result.wl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.wl.hasNextLink() && result.wl.IsEmpty() { err = result.NextWithContext(ctx) @@ -529,6 +535,7 @@ func (client WorkspacesClient) listBySubscriptionNextResults(ctx context.Context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -594,6 +601,7 @@ func (client WorkspacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/applicationgroups.go b/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/applicationgroups.go index f751e58e1254..8eadb1ecaf66 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/applicationgroups.go +++ b/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/applicationgroups.go @@ -91,6 +91,7 @@ func (client ApplicationGroupsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client ApplicationGroupsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -268,6 +270,7 @@ func (client ApplicationGroupsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -354,6 +357,7 @@ func (client ApplicationGroupsClient) ListByResourceGroup(ctx context.Context, r result.agl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.agl.hasNextLink() && result.agl.IsEmpty() { err = result.NextWithContext(ctx) @@ -420,6 +424,7 @@ func (client ApplicationGroupsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -477,6 +482,7 @@ func (client ApplicationGroupsClient) ListBySubscription(ctx context.Context, fi result.agl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.agl.hasNextLink() && result.agl.IsEmpty() { err = result.NextWithContext(ctx) @@ -542,6 +548,7 @@ func (client ApplicationGroupsClient) listBySubscriptionNextResults(ctx context. result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -607,6 +614,7 @@ func (client ApplicationGroupsClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/applications.go b/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/applications.go index 45ff7be6b740..cda70aaaa559 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/applications.go +++ b/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/applications.go @@ -93,6 +93,7 @@ func (client ApplicationsClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client ApplicationsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client ApplicationsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client ApplicationsClient) List(ctx context.Context, resourceGroupName str result.al, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "List", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -434,6 +438,7 @@ func (client ApplicationsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -503,6 +508,7 @@ func (client ApplicationsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/desktops.go b/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/desktops.go index 568d5b3cffbe..235265ab6ac4 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/desktops.go +++ b/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/desktops.go @@ -90,6 +90,7 @@ func (client DesktopsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.DesktopsClient", "Get", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client DesktopsClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.DesktopsClient", "List", resp, "Failure responding to request") + return } return @@ -272,6 +274,7 @@ func (client DesktopsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.DesktopsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/hostpools.go b/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/hostpools.go index d4ce9011c890..de25638f833a 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/hostpools.go +++ b/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/hostpools.go @@ -89,6 +89,7 @@ func (client HostPoolsClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client HostPoolsClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "Delete", resp, "Failure responding to request") + return } return @@ -270,6 +272,7 @@ func (client HostPoolsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client HostPoolsClient) List(ctx context.Context) (result HostPoolListPage result.hpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "List", resp, "Failure responding to request") + return } if result.hpl.hasNextLink() && result.hpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -411,6 +415,7 @@ func (client HostPoolsClient) listNextResults(ctx context.Context, lastResults H result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -472,6 +477,7 @@ func (client HostPoolsClient) ListByResourceGroup(ctx context.Context, resourceG result.hpl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.hpl.hasNextLink() && result.hpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -535,6 +541,7 @@ func (client HostPoolsClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -600,6 +607,7 @@ func (client HostPoolsClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/operations.go b/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/operations.go index 4657a86db426..78e2bccf8b4b 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/operations.go +++ b/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result ResourceProvide result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/sessionhosts.go b/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/sessionhosts.go index bb9bbdcd970c..8ab54b127943 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/sessionhosts.go +++ b/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/sessionhosts.go @@ -91,6 +91,7 @@ func (client SessionHostsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "Delete", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client SessionHostsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "Get", resp, "Failure responding to request") + return } return @@ -276,6 +278,7 @@ func (client SessionHostsClient) List(ctx context.Context, resourceGroupName str result.shl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "List", resp, "Failure responding to request") + return } if result.shl.hasNextLink() && result.shl.IsEmpty() { err = result.NextWithContext(ctx) @@ -340,6 +343,7 @@ func (client SessionHostsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -409,6 +413,7 @@ func (client SessionHostsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/startmenuitems.go b/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/startmenuitems.go index 68f95c9544f6..3ef2a649081f 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/startmenuitems.go +++ b/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/startmenuitems.go @@ -87,6 +87,7 @@ func (client StartMenuItemsClient) List(ctx context.Context, resourceGroupName s result.smil, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.StartMenuItemsClient", "List", resp, "Failure responding to request") + return } if result.smil.hasNextLink() && result.smil.IsEmpty() { err = result.NextWithContext(ctx) @@ -151,6 +152,7 @@ func (client StartMenuItemsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.StartMenuItemsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/usersessions.go b/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/usersessions.go index b056f1afaa5c..1d02313490c3 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/usersessions.go +++ b/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/usersessions.go @@ -95,6 +95,7 @@ func (client UserSessionsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -195,6 +196,7 @@ func (client UserSessionsClient) Disconnect(ctx context.Context, resourceGroupNa result, err = client.DisconnectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "Disconnect", resp, "Failure responding to request") + return } return @@ -292,6 +294,7 @@ func (client UserSessionsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "Get", resp, "Failure responding to request") + return } return @@ -387,6 +390,7 @@ func (client UserSessionsClient) List(ctx context.Context, resourceGroupName str result.usl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "List", resp, "Failure responding to request") + return } if result.usl.hasNextLink() && result.usl.IsEmpty() { err = result.NextWithContext(ctx) @@ -452,6 +456,7 @@ func (client UserSessionsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -518,6 +523,7 @@ func (client UserSessionsClient) ListByHostPool(ctx context.Context, resourceGro result.usl, err = client.ListByHostPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "ListByHostPool", resp, "Failure responding to request") + return } if result.usl.hasNextLink() && result.usl.IsEmpty() { err = result.NextWithContext(ctx) @@ -585,6 +591,7 @@ func (client UserSessionsClient) listByHostPoolNextResults(ctx context.Context, result, err = client.ListByHostPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "listByHostPoolNextResults", resp, "Failure responding to next results request") + return } return } @@ -658,6 +665,7 @@ func (client UserSessionsClient) SendMessageMethod(ctx context.Context, resource result, err = client.SendMessageMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "SendMessageMethod", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/workspaces.go b/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/workspaces.go index 2ef415dc5d94..a3bb06d0bbcd 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/workspaces.go +++ b/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/workspaces.go @@ -87,6 +87,7 @@ func (client WorkspacesClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client WorkspacesClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "Delete", resp, "Failure responding to request") + return } return @@ -264,6 +266,7 @@ func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resource result.wl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.wl.hasNextLink() && result.wl.IsEmpty() { err = result.NextWithContext(ctx) @@ -412,6 +416,7 @@ func (client WorkspacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -467,6 +472,7 @@ func (client WorkspacesClient) ListBySubscription(ctx context.Context) (result W result.wl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.wl.hasNextLink() && result.wl.IsEmpty() { err = result.NextWithContext(ctx) @@ -529,6 +535,7 @@ func (client WorkspacesClient) listBySubscriptionNextResults(ctx context.Context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -594,6 +601,7 @@ func (client WorkspacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/applicationgroups.go b/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/applicationgroups.go index 40fbf2c9d3a8..d21c814a62d1 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/applicationgroups.go +++ b/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/applicationgroups.go @@ -91,6 +91,7 @@ func (client ApplicationGroupsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client ApplicationGroupsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -268,6 +270,7 @@ func (client ApplicationGroupsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -354,6 +357,7 @@ func (client ApplicationGroupsClient) ListByResourceGroup(ctx context.Context, r result.agl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.agl.hasNextLink() && result.agl.IsEmpty() { err = result.NextWithContext(ctx) @@ -420,6 +424,7 @@ func (client ApplicationGroupsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -477,6 +482,7 @@ func (client ApplicationGroupsClient) ListBySubscription(ctx context.Context, fi result.agl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.agl.hasNextLink() && result.agl.IsEmpty() { err = result.NextWithContext(ctx) @@ -542,6 +548,7 @@ func (client ApplicationGroupsClient) listBySubscriptionNextResults(ctx context. result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -607,6 +614,7 @@ func (client ApplicationGroupsClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/applications.go b/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/applications.go index 1f63225914bd..d3142b2ca6c3 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/applications.go +++ b/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/applications.go @@ -93,6 +93,7 @@ func (client ApplicationsClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client ApplicationsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client ApplicationsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client ApplicationsClient) List(ctx context.Context, resourceGroupName str result.al, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "List", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -434,6 +438,7 @@ func (client ApplicationsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -503,6 +508,7 @@ func (client ApplicationsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/desktops.go b/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/desktops.go index 4bd9f5858855..71c272cc8853 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/desktops.go +++ b/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/desktops.go @@ -90,6 +90,7 @@ func (client DesktopsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.DesktopsClient", "Get", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client DesktopsClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.DesktopsClient", "List", resp, "Failure responding to request") + return } return @@ -272,6 +274,7 @@ func (client DesktopsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.DesktopsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/hostpools.go b/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/hostpools.go index 297fb9cfb39a..155a258df862 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/hostpools.go +++ b/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/hostpools.go @@ -89,6 +89,7 @@ func (client HostPoolsClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client HostPoolsClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "Delete", resp, "Failure responding to request") + return } return @@ -270,6 +272,7 @@ func (client HostPoolsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client HostPoolsClient) List(ctx context.Context) (result HostPoolListPage result.hpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "List", resp, "Failure responding to request") + return } if result.hpl.hasNextLink() && result.hpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -411,6 +415,7 @@ func (client HostPoolsClient) listNextResults(ctx context.Context, lastResults H result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -472,6 +477,7 @@ func (client HostPoolsClient) ListByResourceGroup(ctx context.Context, resourceG result.hpl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.hpl.hasNextLink() && result.hpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -535,6 +541,7 @@ func (client HostPoolsClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -600,6 +607,7 @@ func (client HostPoolsClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/operations.go b/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/operations.go index 43789c13ba16..39c637207d5d 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/operations.go +++ b/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result ResourceProvide result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/sessionhosts.go b/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/sessionhosts.go index c5dc885ff142..2b82dfd4c1bd 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/sessionhosts.go +++ b/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/sessionhosts.go @@ -91,6 +91,7 @@ func (client SessionHostsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "Delete", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client SessionHostsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "Get", resp, "Failure responding to request") + return } return @@ -276,6 +278,7 @@ func (client SessionHostsClient) List(ctx context.Context, resourceGroupName str result.shl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "List", resp, "Failure responding to request") + return } if result.shl.hasNextLink() && result.shl.IsEmpty() { err = result.NextWithContext(ctx) @@ -340,6 +343,7 @@ func (client SessionHostsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -409,6 +413,7 @@ func (client SessionHostsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/startmenuitems.go b/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/startmenuitems.go index 96f876fa22d0..340a217f8b41 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/startmenuitems.go +++ b/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/startmenuitems.go @@ -87,6 +87,7 @@ func (client StartMenuItemsClient) List(ctx context.Context, resourceGroupName s result.smil, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.StartMenuItemsClient", "List", resp, "Failure responding to request") + return } if result.smil.hasNextLink() && result.smil.IsEmpty() { err = result.NextWithContext(ctx) @@ -151,6 +152,7 @@ func (client StartMenuItemsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.StartMenuItemsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/usersessions.go b/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/usersessions.go index 2c9a9a35766a..e270bf75e666 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/usersessions.go +++ b/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/usersessions.go @@ -95,6 +95,7 @@ func (client UserSessionsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -195,6 +196,7 @@ func (client UserSessionsClient) Disconnect(ctx context.Context, resourceGroupNa result, err = client.DisconnectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "Disconnect", resp, "Failure responding to request") + return } return @@ -292,6 +294,7 @@ func (client UserSessionsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "Get", resp, "Failure responding to request") + return } return @@ -387,6 +390,7 @@ func (client UserSessionsClient) List(ctx context.Context, resourceGroupName str result.usl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "List", resp, "Failure responding to request") + return } if result.usl.hasNextLink() && result.usl.IsEmpty() { err = result.NextWithContext(ctx) @@ -452,6 +456,7 @@ func (client UserSessionsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -518,6 +523,7 @@ func (client UserSessionsClient) ListByHostPool(ctx context.Context, resourceGro result.usl, err = client.ListByHostPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "ListByHostPool", resp, "Failure responding to request") + return } if result.usl.hasNextLink() && result.usl.IsEmpty() { err = result.NextWithContext(ctx) @@ -585,6 +591,7 @@ func (client UserSessionsClient) listByHostPoolNextResults(ctx context.Context, result, err = client.ListByHostPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "listByHostPoolNextResults", resp, "Failure responding to next results request") + return } return } @@ -658,6 +665,7 @@ func (client UserSessionsClient) SendMessageMethod(ctx context.Context, resource result, err = client.SendMessageMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "SendMessageMethod", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/workspaces.go b/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/workspaces.go index 98f11d5f1c4f..b643dad4abc3 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/workspaces.go +++ b/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/workspaces.go @@ -87,6 +87,7 @@ func (client WorkspacesClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client WorkspacesClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "Delete", resp, "Failure responding to request") + return } return @@ -264,6 +266,7 @@ func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resource result.wl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.wl.hasNextLink() && result.wl.IsEmpty() { err = result.NextWithContext(ctx) @@ -412,6 +416,7 @@ func (client WorkspacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -467,6 +472,7 @@ func (client WorkspacesClient) ListBySubscription(ctx context.Context) (result W result.wl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.wl.hasNextLink() && result.wl.IsEmpty() { err = result.NextWithContext(ctx) @@ -529,6 +535,7 @@ func (client WorkspacesClient) listBySubscriptionNextResults(ctx context.Context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -594,6 +601,7 @@ func (client WorkspacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/applicationgroups.go b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/applicationgroups.go index 2abcc705e9b4..3f34e5ee4e5f 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/applicationgroups.go +++ b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/applicationgroups.go @@ -91,6 +91,7 @@ func (client ApplicationGroupsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client ApplicationGroupsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -268,6 +270,7 @@ func (client ApplicationGroupsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -354,6 +357,7 @@ func (client ApplicationGroupsClient) ListByResourceGroup(ctx context.Context, r result.agl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.agl.hasNextLink() && result.agl.IsEmpty() { err = result.NextWithContext(ctx) @@ -420,6 +424,7 @@ func (client ApplicationGroupsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -477,6 +482,7 @@ func (client ApplicationGroupsClient) ListBySubscription(ctx context.Context, fi result.agl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.agl.hasNextLink() && result.agl.IsEmpty() { err = result.NextWithContext(ctx) @@ -542,6 +548,7 @@ func (client ApplicationGroupsClient) listBySubscriptionNextResults(ctx context. result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -607,6 +614,7 @@ func (client ApplicationGroupsClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/applications.go b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/applications.go index 52f27e2bdf2b..aaffcad47804 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/applications.go +++ b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/applications.go @@ -93,6 +93,7 @@ func (client ApplicationsClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client ApplicationsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client ApplicationsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client ApplicationsClient) List(ctx context.Context, resourceGroupName str result.al, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "List", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -434,6 +438,7 @@ func (client ApplicationsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -503,6 +508,7 @@ func (client ApplicationsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/desktops.go b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/desktops.go index 1bad07af6320..07ecad91213f 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/desktops.go +++ b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/desktops.go @@ -90,6 +90,7 @@ func (client DesktopsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.DesktopsClient", "Get", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client DesktopsClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.DesktopsClient", "List", resp, "Failure responding to request") + return } return @@ -272,6 +274,7 @@ func (client DesktopsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.DesktopsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/hostpools.go b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/hostpools.go index d6871e38e092..3c037a714874 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/hostpools.go +++ b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/hostpools.go @@ -89,6 +89,7 @@ func (client HostPoolsClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client HostPoolsClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "Delete", resp, "Failure responding to request") + return } return @@ -270,6 +272,7 @@ func (client HostPoolsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client HostPoolsClient) List(ctx context.Context) (result HostPoolListPage result.hpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "List", resp, "Failure responding to request") + return } if result.hpl.hasNextLink() && result.hpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -411,6 +415,7 @@ func (client HostPoolsClient) listNextResults(ctx context.Context, lastResults H result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -472,6 +477,7 @@ func (client HostPoolsClient) ListByResourceGroup(ctx context.Context, resourceG result.hpl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.hpl.hasNextLink() && result.hpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -535,6 +541,7 @@ func (client HostPoolsClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -600,6 +607,7 @@ func (client HostPoolsClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/msiximages.go b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/msiximages.go index 2f4f5826ddd2..a48e3095b50b 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/msiximages.go +++ b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/msiximages.go @@ -88,6 +88,7 @@ func (client MsixImagesClient) Expand(ctx context.Context, resourceGroupName str result.emil, err = client.ExpandResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.MsixImagesClient", "Expand", resp, "Failure responding to request") + return } if result.emil.hasNextLink() && result.emil.IsEmpty() { err = result.NextWithContext(ctx) @@ -154,6 +155,7 @@ func (client MsixImagesClient) expandNextResults(ctx context.Context, lastResult result, err = client.ExpandResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.MsixImagesClient", "expandNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/msixpackages.go b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/msixpackages.go index 56baa6f599a1..eb5445c45306 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/msixpackages.go +++ b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/msixpackages.go @@ -93,6 +93,7 @@ func (client MSIXPackagesClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.MSIXPackagesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client MSIXPackagesClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.MSIXPackagesClient", "Delete", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client MSIXPackagesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.MSIXPackagesClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client MSIXPackagesClient) List(ctx context.Context, resourceGroupName str result.mpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.MSIXPackagesClient", "List", resp, "Failure responding to request") + return } if result.mpl.hasNextLink() && result.mpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -434,6 +438,7 @@ func (client MSIXPackagesClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.MSIXPackagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -503,6 +508,7 @@ func (client MSIXPackagesClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.MSIXPackagesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/operations.go b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/operations.go index d332f6e8d672..ae29a3652723 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/operations.go +++ b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result ResourceProvide result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/sessionhosts.go b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/sessionhosts.go index 51d5312455ba..18958f78a686 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/sessionhosts.go +++ b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/sessionhosts.go @@ -91,6 +91,7 @@ func (client SessionHostsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "Delete", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client SessionHostsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "Get", resp, "Failure responding to request") + return } return @@ -276,6 +278,7 @@ func (client SessionHostsClient) List(ctx context.Context, resourceGroupName str result.shl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "List", resp, "Failure responding to request") + return } if result.shl.hasNextLink() && result.shl.IsEmpty() { err = result.NextWithContext(ctx) @@ -340,6 +343,7 @@ func (client SessionHostsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -409,6 +413,7 @@ func (client SessionHostsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/startmenuitems.go b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/startmenuitems.go index 6ac9b2b3053b..3b7f0bbe0747 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/startmenuitems.go +++ b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/startmenuitems.go @@ -87,6 +87,7 @@ func (client StartMenuItemsClient) List(ctx context.Context, resourceGroupName s result.smil, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.StartMenuItemsClient", "List", resp, "Failure responding to request") + return } if result.smil.hasNextLink() && result.smil.IsEmpty() { err = result.NextWithContext(ctx) @@ -151,6 +152,7 @@ func (client StartMenuItemsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.StartMenuItemsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/usersessions.go b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/usersessions.go index e04883870204..3903bff38232 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/usersessions.go +++ b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/usersessions.go @@ -95,6 +95,7 @@ func (client UserSessionsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -195,6 +196,7 @@ func (client UserSessionsClient) Disconnect(ctx context.Context, resourceGroupNa result, err = client.DisconnectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "Disconnect", resp, "Failure responding to request") + return } return @@ -292,6 +294,7 @@ func (client UserSessionsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "Get", resp, "Failure responding to request") + return } return @@ -387,6 +390,7 @@ func (client UserSessionsClient) List(ctx context.Context, resourceGroupName str result.usl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "List", resp, "Failure responding to request") + return } if result.usl.hasNextLink() && result.usl.IsEmpty() { err = result.NextWithContext(ctx) @@ -452,6 +456,7 @@ func (client UserSessionsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -518,6 +523,7 @@ func (client UserSessionsClient) ListByHostPool(ctx context.Context, resourceGro result.usl, err = client.ListByHostPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "ListByHostPool", resp, "Failure responding to request") + return } if result.usl.hasNextLink() && result.usl.IsEmpty() { err = result.NextWithContext(ctx) @@ -585,6 +591,7 @@ func (client UserSessionsClient) listByHostPoolNextResults(ctx context.Context, result, err = client.ListByHostPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "listByHostPoolNextResults", resp, "Failure responding to next results request") + return } return } @@ -658,6 +665,7 @@ func (client UserSessionsClient) SendMessageMethod(ctx context.Context, resource result, err = client.SendMessageMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "SendMessageMethod", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/workspaces.go b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/workspaces.go index cdc5cf7b9d5c..cff7f9767dd2 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/workspaces.go +++ b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/workspaces.go @@ -87,6 +87,7 @@ func (client WorkspacesClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client WorkspacesClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "Delete", resp, "Failure responding to request") + return } return @@ -264,6 +266,7 @@ func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resource result.wl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.wl.hasNextLink() && result.wl.IsEmpty() { err = result.NextWithContext(ctx) @@ -412,6 +416,7 @@ func (client WorkspacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -467,6 +472,7 @@ func (client WorkspacesClient) ListBySubscription(ctx context.Context) (result W result.wl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.wl.hasNextLink() && result.wl.IsEmpty() { err = result.NextWithContext(ctx) @@ -529,6 +535,7 @@ func (client WorkspacesClient) listBySubscriptionNextResults(ctx context.Context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -594,6 +601,7 @@ func (client WorkspacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/applicationgroups.go b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/applicationgroups.go index 54194497cf1d..c389dc7c2012 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/applicationgroups.go +++ b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/applicationgroups.go @@ -91,6 +91,7 @@ func (client ApplicationGroupsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client ApplicationGroupsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -268,6 +270,7 @@ func (client ApplicationGroupsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -354,6 +357,7 @@ func (client ApplicationGroupsClient) ListByResourceGroup(ctx context.Context, r result.agl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.agl.hasNextLink() && result.agl.IsEmpty() { err = result.NextWithContext(ctx) @@ -420,6 +424,7 @@ func (client ApplicationGroupsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -477,6 +482,7 @@ func (client ApplicationGroupsClient) ListBySubscription(ctx context.Context, fi result.agl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.agl.hasNextLink() && result.agl.IsEmpty() { err = result.NextWithContext(ctx) @@ -542,6 +548,7 @@ func (client ApplicationGroupsClient) listBySubscriptionNextResults(ctx context. result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -607,6 +614,7 @@ func (client ApplicationGroupsClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/applications.go b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/applications.go index ec3f8981b0f7..ee0ad1350de9 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/applications.go +++ b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/applications.go @@ -93,6 +93,7 @@ func (client ApplicationsClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client ApplicationsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client ApplicationsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client ApplicationsClient) List(ctx context.Context, resourceGroupName str result.al, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "List", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -434,6 +438,7 @@ func (client ApplicationsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -503,6 +508,7 @@ func (client ApplicationsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/desktops.go b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/desktops.go index 0d7a1a91f5db..d5822518c5ee 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/desktops.go +++ b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/desktops.go @@ -90,6 +90,7 @@ func (client DesktopsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.DesktopsClient", "Get", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client DesktopsClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.DesktopsClient", "List", resp, "Failure responding to request") + return } return @@ -272,6 +274,7 @@ func (client DesktopsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.DesktopsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/hostpools.go b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/hostpools.go index 383fd3c4af4b..eeef9be50e73 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/hostpools.go +++ b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/hostpools.go @@ -89,6 +89,7 @@ func (client HostPoolsClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client HostPoolsClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "Delete", resp, "Failure responding to request") + return } return @@ -270,6 +272,7 @@ func (client HostPoolsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client HostPoolsClient) List(ctx context.Context) (result HostPoolListPage result.hpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "List", resp, "Failure responding to request") + return } if result.hpl.hasNextLink() && result.hpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -411,6 +415,7 @@ func (client HostPoolsClient) listNextResults(ctx context.Context, lastResults H result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -472,6 +477,7 @@ func (client HostPoolsClient) ListByResourceGroup(ctx context.Context, resourceG result.hpl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.hpl.hasNextLink() && result.hpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -535,6 +541,7 @@ func (client HostPoolsClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -600,6 +607,7 @@ func (client HostPoolsClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/msiximages.go b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/msiximages.go index c521aa18a251..de847fa20cee 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/msiximages.go +++ b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/msiximages.go @@ -88,6 +88,7 @@ func (client MsixImagesClient) Expand(ctx context.Context, resourceGroupName str result.emil, err = client.ExpandResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.MsixImagesClient", "Expand", resp, "Failure responding to request") + return } if result.emil.hasNextLink() && result.emil.IsEmpty() { err = result.NextWithContext(ctx) @@ -154,6 +155,7 @@ func (client MsixImagesClient) expandNextResults(ctx context.Context, lastResult result, err = client.ExpandResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.MsixImagesClient", "expandNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/msixpackages.go b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/msixpackages.go index 892c0f7534b1..77b5e981335c 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/msixpackages.go +++ b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/msixpackages.go @@ -93,6 +93,7 @@ func (client MSIXPackagesClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.MSIXPackagesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client MSIXPackagesClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.MSIXPackagesClient", "Delete", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client MSIXPackagesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.MSIXPackagesClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client MSIXPackagesClient) List(ctx context.Context, resourceGroupName str result.mpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.MSIXPackagesClient", "List", resp, "Failure responding to request") + return } if result.mpl.hasNextLink() && result.mpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -434,6 +438,7 @@ func (client MSIXPackagesClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.MSIXPackagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -503,6 +508,7 @@ func (client MSIXPackagesClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.MSIXPackagesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/operations.go b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/operations.go index de983d6e97af..f5752aa9ae64 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/operations.go +++ b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result ResourceProvide result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/sessionhosts.go b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/sessionhosts.go index f35424b343b9..a0fd0d97920c 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/sessionhosts.go +++ b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/sessionhosts.go @@ -91,6 +91,7 @@ func (client SessionHostsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "Delete", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client SessionHostsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "Get", resp, "Failure responding to request") + return } return @@ -276,6 +278,7 @@ func (client SessionHostsClient) List(ctx context.Context, resourceGroupName str result.shl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "List", resp, "Failure responding to request") + return } if result.shl.hasNextLink() && result.shl.IsEmpty() { err = result.NextWithContext(ctx) @@ -340,6 +343,7 @@ func (client SessionHostsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -409,6 +413,7 @@ func (client SessionHostsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/startmenuitems.go b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/startmenuitems.go index ddf7ddc9ab5c..ea6d150cf81e 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/startmenuitems.go +++ b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/startmenuitems.go @@ -87,6 +87,7 @@ func (client StartMenuItemsClient) List(ctx context.Context, resourceGroupName s result.smil, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.StartMenuItemsClient", "List", resp, "Failure responding to request") + return } if result.smil.hasNextLink() && result.smil.IsEmpty() { err = result.NextWithContext(ctx) @@ -151,6 +152,7 @@ func (client StartMenuItemsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.StartMenuItemsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/usersessions.go b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/usersessions.go index 2d5206be9ff6..9eb746abad94 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/usersessions.go +++ b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/usersessions.go @@ -95,6 +95,7 @@ func (client UserSessionsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -195,6 +196,7 @@ func (client UserSessionsClient) Disconnect(ctx context.Context, resourceGroupNa result, err = client.DisconnectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "Disconnect", resp, "Failure responding to request") + return } return @@ -292,6 +294,7 @@ func (client UserSessionsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "Get", resp, "Failure responding to request") + return } return @@ -387,6 +390,7 @@ func (client UserSessionsClient) List(ctx context.Context, resourceGroupName str result.usl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "List", resp, "Failure responding to request") + return } if result.usl.hasNextLink() && result.usl.IsEmpty() { err = result.NextWithContext(ctx) @@ -452,6 +456,7 @@ func (client UserSessionsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -518,6 +523,7 @@ func (client UserSessionsClient) ListByHostPool(ctx context.Context, resourceGro result.usl, err = client.ListByHostPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "ListByHostPool", resp, "Failure responding to request") + return } if result.usl.hasNextLink() && result.usl.IsEmpty() { err = result.NextWithContext(ctx) @@ -585,6 +591,7 @@ func (client UserSessionsClient) listByHostPoolNextResults(ctx context.Context, result, err = client.ListByHostPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "listByHostPoolNextResults", resp, "Failure responding to next results request") + return } return } @@ -658,6 +665,7 @@ func (client UserSessionsClient) SendMessageMethod(ctx context.Context, resource result, err = client.SendMessageMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "SendMessageMethod", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/workspaces.go b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/workspaces.go index 6b28d0c4403b..650f1a788eb0 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/workspaces.go +++ b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/workspaces.go @@ -87,6 +87,7 @@ func (client WorkspacesClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client WorkspacesClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "Delete", resp, "Failure responding to request") + return } return @@ -264,6 +266,7 @@ func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resource result.wl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.wl.hasNextLink() && result.wl.IsEmpty() { err = result.NextWithContext(ctx) @@ -412,6 +416,7 @@ func (client WorkspacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -467,6 +472,7 @@ func (client WorkspacesClient) ListBySubscription(ctx context.Context) (result W result.wl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.wl.hasNextLink() && result.wl.IsEmpty() { err = result.NextWithContext(ctx) @@ -529,6 +535,7 @@ func (client WorkspacesClient) listBySubscriptionNextResults(ctx context.Context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -594,6 +601,7 @@ func (client WorkspacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/applicationgroups.go b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/applicationgroups.go index 7e2cc5012bab..d8e187e5bcbc 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/applicationgroups.go +++ b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/applicationgroups.go @@ -91,6 +91,7 @@ func (client ApplicationGroupsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client ApplicationGroupsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -268,6 +270,7 @@ func (client ApplicationGroupsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -354,6 +357,7 @@ func (client ApplicationGroupsClient) ListByResourceGroup(ctx context.Context, r result.agl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.agl.hasNextLink() && result.agl.IsEmpty() { err = result.NextWithContext(ctx) @@ -420,6 +424,7 @@ func (client ApplicationGroupsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -477,6 +482,7 @@ func (client ApplicationGroupsClient) ListBySubscription(ctx context.Context, fi result.agl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.agl.hasNextLink() && result.agl.IsEmpty() { err = result.NextWithContext(ctx) @@ -542,6 +548,7 @@ func (client ApplicationGroupsClient) listBySubscriptionNextResults(ctx context. result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -607,6 +614,7 @@ func (client ApplicationGroupsClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/applications.go b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/applications.go index 4d041faa859b..926ec7d6c4b6 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/applications.go +++ b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/applications.go @@ -93,6 +93,7 @@ func (client ApplicationsClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client ApplicationsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client ApplicationsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client ApplicationsClient) List(ctx context.Context, resourceGroupName str result.al, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "List", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -434,6 +438,7 @@ func (client ApplicationsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -503,6 +508,7 @@ func (client ApplicationsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.ApplicationsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/desktops.go b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/desktops.go index 60849b1de894..5d0356ed2c6d 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/desktops.go +++ b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/desktops.go @@ -90,6 +90,7 @@ func (client DesktopsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.DesktopsClient", "Get", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client DesktopsClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.DesktopsClient", "List", resp, "Failure responding to request") + return } return @@ -272,6 +274,7 @@ func (client DesktopsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.DesktopsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/hostpools.go b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/hostpools.go index a8205804143b..aebebed6b2e0 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/hostpools.go +++ b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/hostpools.go @@ -89,6 +89,7 @@ func (client HostPoolsClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client HostPoolsClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "Delete", resp, "Failure responding to request") + return } return @@ -270,6 +272,7 @@ func (client HostPoolsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client HostPoolsClient) List(ctx context.Context) (result HostPoolListPage result.hpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "List", resp, "Failure responding to request") + return } if result.hpl.hasNextLink() && result.hpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -411,6 +415,7 @@ func (client HostPoolsClient) listNextResults(ctx context.Context, lastResults H result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -472,6 +477,7 @@ func (client HostPoolsClient) ListByResourceGroup(ctx context.Context, resourceG result.hpl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.hpl.hasNextLink() && result.hpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -535,6 +541,7 @@ func (client HostPoolsClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -600,6 +607,7 @@ func (client HostPoolsClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.HostPoolsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/msiximages.go b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/msiximages.go index 668c013739b4..398680db0ff4 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/msiximages.go +++ b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/msiximages.go @@ -88,6 +88,7 @@ func (client MsixImagesClient) Expand(ctx context.Context, resourceGroupName str result.emil, err = client.ExpandResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.MsixImagesClient", "Expand", resp, "Failure responding to request") + return } if result.emil.hasNextLink() && result.emil.IsEmpty() { err = result.NextWithContext(ctx) @@ -154,6 +155,7 @@ func (client MsixImagesClient) expandNextResults(ctx context.Context, lastResult result, err = client.ExpandResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.MsixImagesClient", "expandNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/msixpackages.go b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/msixpackages.go index df13151359c1..3806751c7df8 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/msixpackages.go +++ b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/msixpackages.go @@ -93,6 +93,7 @@ func (client MSIXPackagesClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.MSIXPackagesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client MSIXPackagesClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.MSIXPackagesClient", "Delete", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client MSIXPackagesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.MSIXPackagesClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client MSIXPackagesClient) List(ctx context.Context, resourceGroupName str result.mpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.MSIXPackagesClient", "List", resp, "Failure responding to request") + return } if result.mpl.hasNextLink() && result.mpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -434,6 +438,7 @@ func (client MSIXPackagesClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.MSIXPackagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -503,6 +508,7 @@ func (client MSIXPackagesClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.MSIXPackagesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/operations.go b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/operations.go index c0068831164e..0d3fb738882a 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/operations.go +++ b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result ResourceProvide result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/sessionhosts.go b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/sessionhosts.go index 932077eb35a8..85f4b3aa7845 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/sessionhosts.go +++ b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/sessionhosts.go @@ -91,6 +91,7 @@ func (client SessionHostsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "Delete", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client SessionHostsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "Get", resp, "Failure responding to request") + return } return @@ -276,6 +278,7 @@ func (client SessionHostsClient) List(ctx context.Context, resourceGroupName str result.shl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "List", resp, "Failure responding to request") + return } if result.shl.hasNextLink() && result.shl.IsEmpty() { err = result.NextWithContext(ctx) @@ -340,6 +343,7 @@ func (client SessionHostsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -409,6 +413,7 @@ func (client SessionHostsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.SessionHostsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/startmenuitems.go b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/startmenuitems.go index 9c76f5110675..0f02d80428e7 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/startmenuitems.go +++ b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/startmenuitems.go @@ -87,6 +87,7 @@ func (client StartMenuItemsClient) List(ctx context.Context, resourceGroupName s result.smil, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.StartMenuItemsClient", "List", resp, "Failure responding to request") + return } if result.smil.hasNextLink() && result.smil.IsEmpty() { err = result.NextWithContext(ctx) @@ -151,6 +152,7 @@ func (client StartMenuItemsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.StartMenuItemsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/usersessions.go b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/usersessions.go index 17b5715678eb..9a8c994398f0 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/usersessions.go +++ b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/usersessions.go @@ -95,6 +95,7 @@ func (client UserSessionsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -195,6 +196,7 @@ func (client UserSessionsClient) Disconnect(ctx context.Context, resourceGroupNa result, err = client.DisconnectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "Disconnect", resp, "Failure responding to request") + return } return @@ -292,6 +294,7 @@ func (client UserSessionsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "Get", resp, "Failure responding to request") + return } return @@ -387,6 +390,7 @@ func (client UserSessionsClient) List(ctx context.Context, resourceGroupName str result.usl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "List", resp, "Failure responding to request") + return } if result.usl.hasNextLink() && result.usl.IsEmpty() { err = result.NextWithContext(ctx) @@ -452,6 +456,7 @@ func (client UserSessionsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -518,6 +523,7 @@ func (client UserSessionsClient) ListByHostPool(ctx context.Context, resourceGro result.usl, err = client.ListByHostPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "ListByHostPool", resp, "Failure responding to request") + return } if result.usl.hasNextLink() && result.usl.IsEmpty() { err = result.NextWithContext(ctx) @@ -585,6 +591,7 @@ func (client UserSessionsClient) listByHostPoolNextResults(ctx context.Context, result, err = client.ListByHostPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "listByHostPoolNextResults", resp, "Failure responding to next results request") + return } return } @@ -658,6 +665,7 @@ func (client UserSessionsClient) SendMessageMethod(ctx context.Context, resource result, err = client.SendMessageMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.UserSessionsClient", "SendMessageMethod", resp, "Failure responding to request") + return } return diff --git a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/workspaces.go b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/workspaces.go index 60f0b505ab22..9f6a749ba061 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/workspaces.go +++ b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/workspaces.go @@ -87,6 +87,7 @@ func (client WorkspacesClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client WorkspacesClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "Delete", resp, "Failure responding to request") + return } return @@ -264,6 +266,7 @@ func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resource result.wl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.wl.hasNextLink() && result.wl.IsEmpty() { err = result.NextWithContext(ctx) @@ -412,6 +416,7 @@ func (client WorkspacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -467,6 +472,7 @@ func (client WorkspacesClient) ListBySubscription(ctx context.Context) (result W result.wl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.wl.hasNextLink() && result.wl.IsEmpty() { err = result.NextWithContext(ctx) @@ -529,6 +535,7 @@ func (client WorkspacesClient) listBySubscriptionNextResults(ctx context.Context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -594,6 +601,7 @@ func (client WorkspacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "desktopvirtualization.WorkspacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/devops/mgmt/2019-07-01-preview/devops/operations.go b/services/preview/devops/mgmt/2019-07-01-preview/devops/operations.go index 0c1600d31169..f525c43276d8 100644 --- a/services/preview/devops/mgmt/2019-07-01-preview/devops/operations.go +++ b/services/preview/devops/mgmt/2019-07-01-preview/devops/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devops.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devops.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/devops/mgmt/2019-07-01-preview/devops/pipelines.go b/services/preview/devops/mgmt/2019-07-01-preview/devops/pipelines.go index 902b5be26e28..9a57c8716062 100644 --- a/services/preview/devops/mgmt/2019-07-01-preview/devops/pipelines.go +++ b/services/preview/devops/mgmt/2019-07-01-preview/devops/pipelines.go @@ -172,6 +172,7 @@ func (client PipelinesClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devops.PipelinesClient", "Delete", resp, "Failure responding to request") + return } return @@ -246,6 +247,7 @@ func (client PipelinesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devops.PipelinesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +323,7 @@ func (client PipelinesClient) ListByResourceGroup(ctx context.Context, resourceG result.plr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devops.PipelinesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +387,7 @@ func (client PipelinesClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devops.PipelinesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -433,6 +437,7 @@ func (client PipelinesClient) ListBySubscription(ctx context.Context) (result Pi result.plr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devops.PipelinesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -495,6 +500,7 @@ func (client PipelinesClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devops.PipelinesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -547,6 +553,7 @@ func (client PipelinesClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devops.PipelinesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/devops/mgmt/2019-07-01-preview/devops/pipelinetemplatedefinitions.go b/services/preview/devops/mgmt/2019-07-01-preview/devops/pipelinetemplatedefinitions.go index df762b34a163..b204a21e40cc 100644 --- a/services/preview/devops/mgmt/2019-07-01-preview/devops/pipelinetemplatedefinitions.go +++ b/services/preview/devops/mgmt/2019-07-01-preview/devops/pipelinetemplatedefinitions.go @@ -71,6 +71,7 @@ func (client PipelineTemplateDefinitionsClient) List(ctx context.Context) (resul result.ptdlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devops.PipelineTemplateDefinitionsClient", "List", resp, "Failure responding to request") + return } if result.ptdlr.hasNextLink() && result.ptdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client PipelineTemplateDefinitionsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devops.PipelineTemplateDefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/artifact.go b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/artifact.go index 475b74d58dd0..6bf61cd430c6 100644 --- a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/artifact.go +++ b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/artifact.go @@ -75,6 +75,7 @@ func (client ArtifactClient) GenerateArmTemplate(ctx context.Context, resourceGr result, err = client.GenerateArmTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactClient", "GenerateArmTemplate", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client ArtifactClient) GetResource(ctx context.Context, resourceGroupName result, err = client.GetResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactClient", "GetResource", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client ArtifactClient) List(ctx context.Context, resourceGroupName string, result.rwca, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactClient", "List", resp, "Failure responding to request") + return } if result.rwca.hasNextLink() && result.rwca.IsEmpty() { err = result.NextWithContext(ctx) @@ -310,6 +313,7 @@ func (client ArtifactClient) listNextResults(ctx context.Context, lastResults Re result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/artifactsource.go b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/artifactsource.go index d7f8d280b20f..20df4223ad86 100644 --- a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/artifactsource.go +++ b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/artifactsource.go @@ -73,6 +73,7 @@ func (client ArtifactSourceClient) CreateOrUpdateResource(ctx context.Context, r result, err = client.CreateOrUpdateResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactSourceClient", "CreateOrUpdateResource", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client ArtifactSourceClient) DeleteResource(ctx context.Context, resourceG result, err = client.DeleteResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactSourceClient", "DeleteResource", resp, "Failure responding to request") + return } return @@ -228,6 +230,7 @@ func (client ArtifactSourceClient) GetResource(ctx context.Context, resourceGrou result, err = client.GetResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactSourceClient", "GetResource", resp, "Failure responding to request") + return } return @@ -306,6 +309,7 @@ func (client ArtifactSourceClient) List(ctx context.Context, resourceGroupName s result.rwcas, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactSourceClient", "List", resp, "Failure responding to request") + return } if result.rwcas.hasNextLink() && result.rwcas.IsEmpty() { err = result.NextWithContext(ctx) @@ -379,6 +383,7 @@ func (client ArtifactSourceClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactSourceClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -431,6 +436,7 @@ func (client ArtifactSourceClient) PatchResource(ctx context.Context, resourceGr result, err = client.PatchResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ArtifactSourceClient", "PatchResource", resp, "Failure responding to request") + return } return diff --git a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/cost.go b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/cost.go index 6d00e1bba9b9..7ebd0c40407e 100644 --- a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/cost.go +++ b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/cost.go @@ -73,6 +73,7 @@ func (client CostClient) GetResource(ctx context.Context, resourceGroupName stri result, err = client.GetResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.CostClient", "GetResource", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client CostClient) List(ctx context.Context, resourceGroupName string, lab result.rwcc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.CostClient", "List", resp, "Failure responding to request") + return } if result.rwcc.hasNextLink() && result.rwcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -224,6 +226,7 @@ func (client CostClient) listNextResults(ctx context.Context, lastResults Respon result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.CostClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/costinsight.go b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/costinsight.go index f1d25d33fca3..78bd1160c826 100644 --- a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/costinsight.go +++ b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/costinsight.go @@ -73,6 +73,7 @@ func (client CostInsightClient) GetResource(ctx context.Context, resourceGroupNa result, err = client.GetResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.CostInsightClient", "GetResource", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client CostInsightClient) List(ctx context.Context, resourceGroupName stri result.rwcci, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.CostInsightClient", "List", resp, "Failure responding to request") + return } if result.rwcci.hasNextLink() && result.rwcci.IsEmpty() { err = result.NextWithContext(ctx) @@ -224,6 +226,7 @@ func (client CostInsightClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.CostInsightClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/customimage.go b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/customimage.go index a776ac0c2e28..72a9d21936e0 100644 --- a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/customimage.go +++ b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/customimage.go @@ -228,6 +228,7 @@ func (client CustomImageClient) GetResource(ctx context.Context, resourceGroupNa result, err = client.GetResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.CustomImageClient", "GetResource", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client CustomImageClient) List(ctx context.Context, resourceGroupName stri result.rwcci, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.CustomImageClient", "List", resp, "Failure responding to request") + return } if result.rwcci.hasNextLink() && result.rwcci.IsEmpty() { err = result.NextWithContext(ctx) @@ -379,6 +381,7 @@ func (client CustomImageClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.CustomImageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/formula.go b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/formula.go index 2d05e9511af8..f54534e951e4 100644 --- a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/formula.go +++ b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/formula.go @@ -152,6 +152,7 @@ func (client FormulaClient) DeleteResource(ctx context.Context, resourceGroupNam result, err = client.DeleteResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.FormulaClient", "DeleteResource", resp, "Failure responding to request") + return } return @@ -228,6 +229,7 @@ func (client FormulaClient) GetResource(ctx context.Context, resourceGroupName s result, err = client.GetResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.FormulaClient", "GetResource", resp, "Failure responding to request") + return } return @@ -306,6 +308,7 @@ func (client FormulaClient) List(ctx context.Context, resourceGroupName string, result.rwcf, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.FormulaClient", "List", resp, "Failure responding to request") + return } if result.rwcf.hasNextLink() && result.rwcf.IsEmpty() { err = result.NextWithContext(ctx) @@ -379,6 +382,7 @@ func (client FormulaClient) listNextResults(ctx context.Context, lastResults Res result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.FormulaClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/galleryimage.go b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/galleryimage.go index e323dcea9ec4..a9d9c3e391fe 100644 --- a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/galleryimage.go +++ b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/galleryimage.go @@ -74,6 +74,7 @@ func (client GalleryImageClient) List(ctx context.Context, resourceGroupName str result.rwcgi, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.GalleryImageClient", "List", resp, "Failure responding to request") + return } if result.rwcgi.hasNextLink() && result.rwcgi.IsEmpty() { err = result.NextWithContext(ctx) @@ -147,6 +148,7 @@ func (client GalleryImageClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.GalleryImageClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/lab.go b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/lab.go index 53c5d7fa5447..d0c611c06124 100644 --- a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/lab.go +++ b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/lab.go @@ -299,6 +299,7 @@ func (client LabClient) GenerateUploadURI(ctx context.Context, resourceGroupName result, err = client.GenerateUploadURIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabClient", "GenerateUploadURI", resp, "Failure responding to request") + return } return @@ -376,6 +377,7 @@ func (client LabClient) GetResource(ctx context.Context, resourceGroupName strin result, err = client.GetResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabClient", "GetResource", resp, "Failure responding to request") + return } return @@ -452,6 +454,7 @@ func (client LabClient) ListByResourceGroup(ctx context.Context, resourceGroupNa result.rwcl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rwcl.hasNextLink() && result.rwcl.IsEmpty() { err = result.NextWithContext(ctx) @@ -524,6 +527,7 @@ func (client LabClient) listByResourceGroupNextResults(ctx context.Context, last result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -575,6 +579,7 @@ func (client LabClient) ListBySubscription(ctx context.Context, filter string, t result.rwcl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.rwcl.hasNextLink() && result.rwcl.IsEmpty() { err = result.NextWithContext(ctx) @@ -646,6 +651,7 @@ func (client LabClient) listBySubscriptionNextResults(ctx context.Context, lastR result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -698,6 +704,7 @@ func (client LabClient) ListVhds(ctx context.Context, resourceGroupName string, result.rwclv, err = client.ListVhdsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabClient", "ListVhds", resp, "Failure responding to request") + return } if result.rwclv.hasNextLink() && result.rwclv.IsEmpty() { err = result.NextWithContext(ctx) @@ -762,6 +769,7 @@ func (client LabClient) listVhdsNextResults(ctx context.Context, lastResults Res result, err = client.ListVhdsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabClient", "listVhdsNextResults", resp, "Failure responding to next results request") + return } return } @@ -813,6 +821,7 @@ func (client LabClient) PatchResource(ctx context.Context, resourceGroupName str result, err = client.PatchResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabClient", "PatchResource", resp, "Failure responding to request") + return } return diff --git a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/policy.go b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/policy.go index 2de1277ee70a..3e3320935bc8 100644 --- a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/policy.go +++ b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/policy.go @@ -74,6 +74,7 @@ func (client PolicyClient) CreateOrUpdateResource(ctx context.Context, resourceG result, err = client.CreateOrUpdateResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.PolicyClient", "CreateOrUpdateResource", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client PolicyClient) DeleteResource(ctx context.Context, resourceGroupName result, err = client.DeleteResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.PolicyClient", "DeleteResource", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client PolicyClient) GetResource(ctx context.Context, resourceGroupName st result, err = client.GetResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.PolicyClient", "GetResource", resp, "Failure responding to request") + return } return @@ -313,6 +316,7 @@ func (client PolicyClient) List(ctx context.Context, resourceGroupName string, l result.rwcp, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.PolicyClient", "List", resp, "Failure responding to request") + return } if result.rwcp.hasNextLink() && result.rwcp.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +391,7 @@ func (client PolicyClient) listNextResults(ctx context.Context, lastResults Resp result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.PolicyClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -440,6 +445,7 @@ func (client PolicyClient) PatchResource(ctx context.Context, resourceGroupName result, err = client.PatchResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.PolicyClient", "PatchResource", resp, "Failure responding to request") + return } return diff --git a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/policyset.go b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/policyset.go index 50b9725ab447..0d4cde4e1125 100644 --- a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/policyset.go +++ b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/policyset.go @@ -73,6 +73,7 @@ func (client PolicySetClient) EvaluatePolicies(ctx context.Context, resourceGrou result, err = client.EvaluatePoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.PolicySetClient", "EvaluatePolicies", resp, "Failure responding to request") + return } return diff --git a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/schedule.go b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/schedule.go index 939d5e5ec545..bc4393aa3164 100644 --- a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/schedule.go +++ b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/schedule.go @@ -304,6 +304,7 @@ func (client ScheduleClient) GetResource(ctx context.Context, resourceGroupName result, err = client.GetResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ScheduleClient", "GetResource", resp, "Failure responding to request") + return } return @@ -382,6 +383,7 @@ func (client ScheduleClient) List(ctx context.Context, resourceGroupName string, result.rwcs, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ScheduleClient", "List", resp, "Failure responding to request") + return } if result.rwcs.hasNextLink() && result.rwcs.IsEmpty() { err = result.NextWithContext(ctx) @@ -455,6 +457,7 @@ func (client ScheduleClient) listNextResults(ctx context.Context, lastResults Re result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ScheduleClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -507,6 +510,7 @@ func (client ScheduleClient) PatchResource(ctx context.Context, resourceGroupNam result, err = client.PatchResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.ScheduleClient", "PatchResource", resp, "Failure responding to request") + return } return diff --git a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/virtualmachine.go b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/virtualmachine.go index fe6e00ece92a..fa8398adf9ad 100644 --- a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/virtualmachine.go +++ b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/virtualmachine.go @@ -306,6 +306,7 @@ func (client VirtualMachineClient) GetResource(ctx context.Context, resourceGrou result, err = client.GetResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachineClient", "GetResource", resp, "Failure responding to request") + return } return @@ -384,6 +385,7 @@ func (client VirtualMachineClient) List(ctx context.Context, resourceGroupName s result.rwclvm, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachineClient", "List", resp, "Failure responding to request") + return } if result.rwclvm.hasNextLink() && result.rwclvm.IsEmpty() { err = result.NextWithContext(ctx) @@ -457,6 +459,7 @@ func (client VirtualMachineClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachineClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -509,6 +512,7 @@ func (client VirtualMachineClient) PatchResource(ctx context.Context, resourceGr result, err = client.PatchResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachineClient", "PatchResource", resp, "Failure responding to request") + return } return diff --git a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/virtualnetwork.go b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/virtualnetwork.go index f60df41fd6e3..87d3c3310190 100644 --- a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/virtualnetwork.go +++ b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/virtualnetwork.go @@ -228,6 +228,7 @@ func (client VirtualNetworkClient) GetResource(ctx context.Context, resourceGrou result, err = client.GetResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualNetworkClient", "GetResource", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client VirtualNetworkClient) List(ctx context.Context, resourceGroupName s result.rwcvn, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualNetworkClient", "List", resp, "Failure responding to request") + return } if result.rwcvn.hasNextLink() && result.rwcvn.IsEmpty() { err = result.NextWithContext(ctx) @@ -379,6 +381,7 @@ func (client VirtualNetworkClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualNetworkClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -431,6 +434,7 @@ func (client VirtualNetworkClient) PatchResource(ctx context.Context, resourceGr result, err = client.PatchResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualNetworkClient", "PatchResource", resp, "Failure responding to request") + return } return diff --git a/services/preview/digitaltwins/2020-05-31-preview/digitaltwins/digitaltwins.go b/services/preview/digitaltwins/2020-05-31-preview/digitaltwins/digitaltwins.go index d739c2b51cbe..14833014b336 100644 --- a/services/preview/digitaltwins/2020-05-31-preview/digitaltwins/digitaltwins.go +++ b/services/preview/digitaltwins/2020-05-31-preview/digitaltwins/digitaltwins.go @@ -79,6 +79,7 @@ func (client Client) Add(ctx context.Context, ID string, twin interface{}, ifNon result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "Add", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client Client) AddRelationship(ctx context.Context, ID string, relationshi result, err = client.AddRelationshipResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "AddRelationship", resp, "Failure responding to request") + return } return @@ -253,6 +255,7 @@ func (client Client) Delete(ctx context.Context, ID string, ifMatch string) (res result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "Delete", resp, "Failure responding to request") + return } return @@ -334,6 +337,7 @@ func (client Client) DeleteRelationship(ctx context.Context, ID string, relation result, err = client.DeleteRelationshipResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "DeleteRelationship", resp, "Failure responding to request") + return } return @@ -413,6 +417,7 @@ func (client Client) GetByID(ctx context.Context, ID string) (result SetObject, result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "GetByID", resp, "Failure responding to request") + return } return @@ -489,6 +494,7 @@ func (client Client) GetComponent(ctx context.Context, ID string, componentPath result, err = client.GetComponentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "GetComponent", resp, "Failure responding to request") + return } return @@ -566,6 +572,7 @@ func (client Client) GetRelationshipByID(ctx context.Context, ID string, relatio result, err = client.GetRelationshipByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "GetRelationshipByID", resp, "Failure responding to request") + return } return @@ -644,6 +651,7 @@ func (client Client) ListIncomingRelationships(ctx context.Context, ID string) ( result.irc, err = client.ListIncomingRelationshipsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "ListIncomingRelationships", resp, "Failure responding to request") + return } if result.irc.hasNextLink() && result.irc.IsEmpty() { err = result.NextWithContext(ctx) @@ -706,6 +714,7 @@ func (client Client) listIncomingRelationshipsNextResults(ctx context.Context, l result, err = client.ListIncomingRelationshipsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "listIncomingRelationshipsNextResults", resp, "Failure responding to next results request") + return } return } @@ -762,6 +771,7 @@ func (client Client) ListRelationships(ctx context.Context, ID string, relations result.rc, err = client.ListRelationshipsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "ListRelationships", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -827,6 +837,7 @@ func (client Client) listRelationshipsNextResults(ctx context.Context, lastResul result, err = client.ListRelationshipsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "listRelationshipsNextResults", resp, "Failure responding to next results request") + return } return } @@ -886,6 +897,7 @@ func (client Client) SendComponentTelemetry(ctx context.Context, ID string, comp result, err = client.SendComponentTelemetryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "SendComponentTelemetry", resp, "Failure responding to request") + return } return @@ -973,6 +985,7 @@ func (client Client) SendTelemetry(ctx context.Context, ID string, telemetry int result, err = client.SendTelemetryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "SendTelemetry", resp, "Failure responding to request") + return } return @@ -1065,6 +1078,7 @@ func (client Client) Update(ctx context.Context, ID string, patchDocument []inte result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "Update", resp, "Failure responding to request") + return } return @@ -1151,6 +1165,7 @@ func (client Client) UpdateComponent(ctx context.Context, ID string, componentPa result, err = client.UpdateComponentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "UpdateComponent", resp, "Failure responding to request") + return } return @@ -1240,6 +1255,7 @@ func (client Client) UpdateRelationship(ctx context.Context, ID string, relation result, err = client.UpdateRelationshipResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "UpdateRelationship", resp, "Failure responding to request") + return } return diff --git a/services/preview/digitaltwins/2020-05-31-preview/digitaltwins/eventroutes.go b/services/preview/digitaltwins/2020-05-31-preview/digitaltwins/eventroutes.go index 56d24aca6483..c667ccdebb8a 100644 --- a/services/preview/digitaltwins/2020-05-31-preview/digitaltwins/eventroutes.go +++ b/services/preview/digitaltwins/2020-05-31-preview/digitaltwins/eventroutes.go @@ -83,6 +83,7 @@ func (client EventRoutesClient) Add(ctx context.Context, ID string, eventRoute * result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.EventRoutesClient", "Add", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client EventRoutesClient) Delete(ctx context.Context, ID string) (result a result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.EventRoutesClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client EventRoutesClient) GetByID(ctx context.Context, ID string) (result result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.EventRoutesClient", "GetByID", resp, "Failure responding to request") + return } return @@ -314,6 +317,7 @@ func (client EventRoutesClient) List(ctx context.Context, maxItemCount *int32) ( result.erc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.EventRoutesClient", "List", resp, "Failure responding to request") + return } if result.erc.hasNextLink() && result.erc.IsEmpty() { err = result.NextWithContext(ctx) @@ -379,6 +383,7 @@ func (client EventRoutesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.EventRoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/digitaltwins/2020-05-31-preview/digitaltwins/modelsgroup.go b/services/preview/digitaltwins/2020-05-31-preview/digitaltwins/modelsgroup.go index 7df68daa1aa9..87fc64139d28 100644 --- a/services/preview/digitaltwins/2020-05-31-preview/digitaltwins/modelsgroup.go +++ b/services/preview/digitaltwins/2020-05-31-preview/digitaltwins/modelsgroup.go @@ -85,6 +85,7 @@ func (client ModelsClient) Add(ctx context.Context, models []interface{}) (resul result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.ModelsClient", "Add", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ModelsClient) Delete(ctx context.Context, ID string) (result autore result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.ModelsClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client ModelsClient) GetByID(ctx context.Context, ID string, includeModelD result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.ModelsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -323,6 +326,7 @@ func (client ModelsClient) List(ctx context.Context, dependenciesFor []string, i result.pmdc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.ModelsClient", "List", resp, "Failure responding to request") + return } if result.pmdc.hasNextLink() && result.pmdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -396,6 +400,7 @@ func (client ModelsClient) listNextResults(ctx context.Context, lastResults Page result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.ModelsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -458,6 +463,7 @@ func (client ModelsClient) Update(ctx context.Context, ID string, updateModel [] result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.ModelsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/digitaltwins/2020-05-31-preview/digitaltwins/query.go b/services/preview/digitaltwins/2020-05-31-preview/digitaltwins/query.go index 28add64a5102..00b242ecbab7 100644 --- a/services/preview/digitaltwins/2020-05-31-preview/digitaltwins/query.go +++ b/services/preview/digitaltwins/2020-05-31-preview/digitaltwins/query.go @@ -74,6 +74,7 @@ func (client QueryClient) QueryTwins(ctx context.Context, querySpecification Que result, err = client.QueryTwinsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.QueryClient", "QueryTwins", resp, "Failure responding to request") + return } return diff --git a/services/preview/digitaltwins/mgmt/2020-03-01-preview/digitaltwins/digitaltwins.go b/services/preview/digitaltwins/mgmt/2020-03-01-preview/digitaltwins/digitaltwins.go index e285fa1481e4..9c255662e659 100644 --- a/services/preview/digitaltwins/mgmt/2020-03-01-preview/digitaltwins/digitaltwins.go +++ b/services/preview/digitaltwins/mgmt/2020-03-01-preview/digitaltwins/digitaltwins.go @@ -83,6 +83,7 @@ func (client Client) CheckNameAvailability(ctx context.Context, location string, result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -344,6 +345,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "Get", resp, "Failure responding to request") + return } return @@ -417,6 +419,7 @@ func (client Client) List(ctx context.Context) (result DescriptionListResultPage result.dlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "List", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +482,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults Descriptio result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -537,6 +541,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.dlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -600,6 +605,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/digitaltwins/mgmt/2020-03-01-preview/digitaltwins/endpoint.go b/services/preview/digitaltwins/mgmt/2020-03-01-preview/digitaltwins/endpoint.go index 290a09ec6817..faa9ee20a0f8 100644 --- a/services/preview/digitaltwins/mgmt/2020-03-01-preview/digitaltwins/endpoint.go +++ b/services/preview/digitaltwins/mgmt/2020-03-01-preview/digitaltwins/endpoint.go @@ -273,6 +273,7 @@ func (client EndpointClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.EndpointClient", "Get", resp, "Failure responding to request") + return } return @@ -360,6 +361,7 @@ func (client EndpointClient) List(ctx context.Context, resourceGroupName string, result.erlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.EndpointClient", "List", resp, "Failure responding to request") + return } if result.erlr.hasNextLink() && result.erlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -424,6 +426,7 @@ func (client EndpointClient) listNextResults(ctx context.Context, lastResults En result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.EndpointClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/digitaltwins/mgmt/2020-03-01-preview/digitaltwins/operations.go b/services/preview/digitaltwins/mgmt/2020-03-01-preview/digitaltwins/operations.go index 61a7127c1c76..2b1f6e0bba5a 100644 --- a/services/preview/digitaltwins/mgmt/2020-03-01-preview/digitaltwins/operations.go +++ b/services/preview/digitaltwins/mgmt/2020-03-01-preview/digitaltwins/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "digitaltwins.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/dns/mgmt/2015-05-04-preview/dns/recordsets.go b/services/preview/dns/mgmt/2015-05-04-preview/dns/recordsets.go index 66ef09133ada..80eb13537ad9 100644 --- a/services/preview/dns/mgmt/2015-05-04-preview/dns/recordsets.go +++ b/services/preview/dns/mgmt/2015-05-04-preview/dns/recordsets.go @@ -89,6 +89,7 @@ func (client RecordSetsClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client RecordSetsClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -282,6 +284,7 @@ func (client RecordSetsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -373,6 +376,7 @@ func (client RecordSetsClient) List(ctx context.Context, resourceGroupName strin result.rslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "List", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -444,6 +448,7 @@ func (client RecordSetsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -508,6 +513,7 @@ func (client RecordSetsClient) ListAll(ctx context.Context, resourceGroupName st result.rslr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "ListAll", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -578,6 +584,7 @@ func (client RecordSetsClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/dns/mgmt/2015-05-04-preview/dns/zones.go b/services/preview/dns/mgmt/2015-05-04-preview/dns/zones.go index 6994f5c53b63..71d54977c6b7 100644 --- a/services/preview/dns/mgmt/2015-05-04-preview/dns/zones.go +++ b/services/preview/dns/mgmt/2015-05-04-preview/dns/zones.go @@ -87,6 +87,7 @@ func (client ZonesClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -184,6 +185,7 @@ func (client ZonesClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "Delete", resp, "Failure responding to request") + return } return @@ -272,6 +274,7 @@ func (client ZonesClient) Get(ctx context.Context, resourceGroupName string, zon result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "Get", resp, "Failure responding to request") + return } return @@ -359,6 +362,7 @@ func (client ZonesClient) ListZonesInResourceGroup(ctx context.Context, resource result.zlr, err = client.ListZonesInResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "ListZonesInResourceGroup", resp, "Failure responding to request") + return } if result.zlr.hasNextLink() && result.zlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -428,6 +432,7 @@ func (client ZonesClient) listZonesInResourceGroupNextResults(ctx context.Contex result, err = client.ListZonesInResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "listZonesInResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -486,6 +491,7 @@ func (client ZonesClient) ListZonesInSubscription(ctx context.Context, top strin result.zlr, err = client.ListZonesInSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "ListZonesInSubscription", resp, "Failure responding to request") + return } if result.zlr.hasNextLink() && result.zlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -554,6 +560,7 @@ func (client ZonesClient) listZonesInSubscriptionNextResults(ctx context.Context result, err = client.ListZonesInSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "listZonesInSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/dns/mgmt/2018-03-01-preview/dns/recordsets.go b/services/preview/dns/mgmt/2018-03-01-preview/dns/recordsets.go index d6e25c8f0570..6cec6da590ee 100644 --- a/services/preview/dns/mgmt/2018-03-01-preview/dns/recordsets.go +++ b/services/preview/dns/mgmt/2018-03-01-preview/dns/recordsets.go @@ -91,6 +91,7 @@ func (client RecordSetsClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -196,6 +197,7 @@ func (client RecordSetsClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -288,6 +290,7 @@ func (client RecordSetsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -380,6 +383,7 @@ func (client RecordSetsClient) ListAllByDNSZone(ctx context.Context, resourceGro result.rslr, err = client.ListAllByDNSZoneResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "ListAllByDNSZone", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -450,6 +454,7 @@ func (client RecordSetsClient) listAllByDNSZoneNextResults(ctx context.Context, result, err = client.ListAllByDNSZoneResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "listAllByDNSZoneNextResults", resp, "Failure responding to next results request") + return } return } @@ -516,6 +521,7 @@ func (client RecordSetsClient) ListByDNSZone(ctx context.Context, resourceGroupN result.rslr, err = client.ListByDNSZoneResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "ListByDNSZone", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -586,6 +592,7 @@ func (client RecordSetsClient) listByDNSZoneNextResults(ctx context.Context, las result, err = client.ListByDNSZoneResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "listByDNSZoneNextResults", resp, "Failure responding to next results request") + return } return } @@ -653,6 +660,7 @@ func (client RecordSetsClient) ListByType(ctx context.Context, resourceGroupName result.rslr, err = client.ListByTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "ListByType", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -724,6 +732,7 @@ func (client RecordSetsClient) listByTypeNextResults(ctx context.Context, lastRe result, err = client.ListByTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "listByTypeNextResults", resp, "Failure responding to next results request") + return } return } @@ -790,6 +799,7 @@ func (client RecordSetsClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/dns/mgmt/2018-03-01-preview/dns/zones.go b/services/preview/dns/mgmt/2018-03-01-preview/dns/zones.go index 5f89085a2ac2..5a41f2e4622d 100644 --- a/services/preview/dns/mgmt/2018-03-01-preview/dns/zones.go +++ b/services/preview/dns/mgmt/2018-03-01-preview/dns/zones.go @@ -88,6 +88,7 @@ func (client ZonesClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -274,6 +275,7 @@ func (client ZonesClient) Get(ctx context.Context, resourceGroupName string, zon result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +357,7 @@ func (client ZonesClient) List(ctx context.Context, top *int32) (result ZoneList result.zlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "List", resp, "Failure responding to request") + return } if result.zlr.hasNextLink() && result.zlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -420,6 +423,7 @@ func (client ZonesClient) listNextResults(ctx context.Context, lastResults ZoneL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -482,6 +486,7 @@ func (client ZonesClient) ListByResourceGroup(ctx context.Context, resourceGroup result.zlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.zlr.hasNextLink() && result.zlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -548,6 +553,7 @@ func (client ZonesClient) listByResourceGroupNextResults(ctx context.Context, la result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -612,6 +618,7 @@ func (client ZonesClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/accounts.go b/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/accounts.go index ad80fdb7d2ff..2a06c51d2fa7 100644 --- a/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/accounts.go +++ b/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/accounts.go @@ -74,6 +74,7 @@ func (client AccountsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "engagementfabric.AccountsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client AccountsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "engagementfabric.AccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -225,6 +227,7 @@ func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "engagementfabric.AccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -297,6 +300,7 @@ func (client AccountsClient) List(ctx context.Context) (result AccountList, err result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "engagementfabric.AccountsClient", "List", resp, "Failure responding to request") + return } return @@ -369,6 +373,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "engagementfabric.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -443,6 +448,7 @@ func (client AccountsClient) ListChannelTypes(ctx context.Context, resourceGroup result, err = client.ListChannelTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "engagementfabric.AccountsClient", "ListChannelTypes", resp, "Failure responding to request") + return } return @@ -518,6 +524,7 @@ func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName str result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "engagementfabric.AccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -600,6 +607,7 @@ func (client AccountsClient) RegenerateKey(ctx context.Context, resourceGroupNam result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "engagementfabric.AccountsClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -678,6 +686,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "engagementfabric.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/channels.go b/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/channels.go index 18390d5bf686..4b64d00f67ca 100644 --- a/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/channels.go +++ b/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/channels.go @@ -82,6 +82,7 @@ func (client ChannelsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "engagementfabric.ChannelsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client ChannelsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "engagementfabric.ChannelsClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client ChannelsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "engagementfabric.ChannelsClient", "Get", resp, "Failure responding to request") + return } return @@ -313,6 +316,7 @@ func (client ChannelsClient) ListByAccount(ctx context.Context, resourceGroupNam result, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "engagementfabric.ChannelsClient", "ListByAccount", resp, "Failure responding to request") + return } return diff --git a/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/client.go b/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/client.go index f6f7aa75fe85..b83ea3a3214a 100644 --- a/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/client.go +++ b/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/client.go @@ -94,6 +94,7 @@ func (client BaseClient) CheckNameAvailability(ctx context.Context, resourceGrou result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "engagementfabric.BaseClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/operations.go b/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/operations.go index af71040403f4..ceaf5eb501ab 100644 --- a/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/operations.go +++ b/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationList, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "engagementfabric.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/skus.go b/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/skus.go index c2b80bf3859b..77ae022714dd 100644 --- a/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/skus.go +++ b/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/skus.go @@ -69,6 +69,7 @@ func (client SKUsClient) List(ctx context.Context) (result SkuDescriptionList, e result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "engagementfabric.SKUsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/enterpriseknowledgegraphservice/2018-12-03/enterpriseknowledgegraphservice/enterpriseknowledgegraph.go b/services/preview/enterpriseknowledgegraphservice/2018-12-03/enterpriseknowledgegraphservice/enterpriseknowledgegraph.go index 5ed12c607364..fb132f90d18a 100644 --- a/services/preview/enterpriseknowledgegraphservice/2018-12-03/enterpriseknowledgegraphservice/enterpriseknowledgegraph.go +++ b/services/preview/enterpriseknowledgegraphservice/2018-12-03/enterpriseknowledgegraphservice/enterpriseknowledgegraph.go @@ -89,6 +89,7 @@ func (client EnterpriseKnowledgeGraphClient) Create(ctx context.Context, resourc result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "enterpriseknowledgegraphservice.EnterpriseKnowledgeGraphClient", "Create", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client EnterpriseKnowledgeGraphClient) Delete(ctx context.Context, resourc result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "enterpriseknowledgegraphservice.EnterpriseKnowledgeGraphClient", "Delete", resp, "Failure responding to request") + return } return @@ -264,6 +266,7 @@ func (client EnterpriseKnowledgeGraphClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "enterpriseknowledgegraphservice.EnterpriseKnowledgeGraphClient", "Get", resp, "Failure responding to request") + return } return @@ -337,6 +340,7 @@ func (client EnterpriseKnowledgeGraphClient) List(ctx context.Context) (result E result.ekgrl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "enterpriseknowledgegraphservice.EnterpriseKnowledgeGraphClient", "List", resp, "Failure responding to request") + return } if result.ekgrl.hasNextLink() && result.ekgrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -399,6 +403,7 @@ func (client EnterpriseKnowledgeGraphClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "enterpriseknowledgegraphservice.EnterpriseKnowledgeGraphClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -458,6 +463,7 @@ func (client EnterpriseKnowledgeGraphClient) ListByResourceGroup(ctx context.Con result.ekgrl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "enterpriseknowledgegraphservice.EnterpriseKnowledgeGraphClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ekgrl.hasNextLink() && result.ekgrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -521,6 +527,7 @@ func (client EnterpriseKnowledgeGraphClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "enterpriseknowledgegraphservice.EnterpriseKnowledgeGraphClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -585,6 +592,7 @@ func (client EnterpriseKnowledgeGraphClient) Update(ctx context.Context, resourc result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "enterpriseknowledgegraphservice.EnterpriseKnowledgeGraphClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/enterpriseknowledgegraphservice/2018-12-03/enterpriseknowledgegraphservice/operations.go b/services/preview/enterpriseknowledgegraphservice/2018-12-03/enterpriseknowledgegraphservice/operations.go index ef4a394fe571..45457757aa42 100644 --- a/services/preview/enterpriseknowledgegraphservice/2018-12-03/enterpriseknowledgegraphservice/operations.go +++ b/services/preview/enterpriseknowledgegraphservice/2018-12-03/enterpriseknowledgegraphservice/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationEntity result.oelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "enterpriseknowledgegraphservice.OperationsClient", "List", resp, "Failure responding to request") + return } if result.oelr.hasNextLink() && result.oelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "enterpriseknowledgegraphservice.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/eventsubscriptions.go b/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/eventsubscriptions.go index be3958385b6b..24336b3f98ac 100644 --- a/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/eventsubscriptions.go +++ b/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/eventsubscriptions.go @@ -246,6 +246,7 @@ func (client EventSubscriptionsClient) Get(ctx context.Context, scope string, ev result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -327,6 +328,7 @@ func (client EventSubscriptionsClient) GetFullURL(ctx context.Context, scope str result, err = client.GetFullURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "GetFullURL", resp, "Failure responding to request") + return } return @@ -403,6 +405,7 @@ func (client EventSubscriptionsClient) ListByResource(ctx context.Context, resou result, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListByResource", resp, "Failure responding to request") + return } return @@ -479,6 +482,7 @@ func (client EventSubscriptionsClient) ListGlobalByResourceGroup(ctx context.Con result, err = client.ListGlobalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalByResourceGroup", resp, "Failure responding to request") + return } return @@ -554,6 +558,7 @@ func (client EventSubscriptionsClient) ListGlobalByResourceGroupForTopicType(ctx result, err = client.ListGlobalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalByResourceGroupForTopicType", resp, "Failure responding to request") + return } return @@ -626,6 +631,7 @@ func (client EventSubscriptionsClient) ListGlobalBySubscription(ctx context.Cont result, err = client.ListGlobalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalBySubscription", resp, "Failure responding to request") + return } return @@ -699,6 +705,7 @@ func (client EventSubscriptionsClient) ListGlobalBySubscriptionForTopicType(ctx result, err = client.ListGlobalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalBySubscriptionForTopicType", resp, "Failure responding to request") + return } return @@ -774,6 +781,7 @@ func (client EventSubscriptionsClient) ListRegionalByResourceGroup(ctx context.C result, err = client.ListRegionalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalByResourceGroup", resp, "Failure responding to request") + return } return @@ -851,6 +859,7 @@ func (client EventSubscriptionsClient) ListRegionalByResourceGroupForTopicType(c result, err = client.ListRegionalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalByResourceGroupForTopicType", resp, "Failure responding to request") + return } return @@ -926,6 +935,7 @@ func (client EventSubscriptionsClient) ListRegionalBySubscription(ctx context.Co result, err = client.ListRegionalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalBySubscription", resp, "Failure responding to request") + return } return @@ -1001,6 +1011,7 @@ func (client EventSubscriptionsClient) ListRegionalBySubscriptionForTopicType(ct result, err = client.ListRegionalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalBySubscriptionForTopicType", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/operations.go b/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/operations.go index fa6a4df67da4..bfa374f8882e 100644 --- a/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/operations.go +++ b/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/topics.go b/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/topics.go index 83d580d1ed82..323eef067e67 100644 --- a/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/topics.go +++ b/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/topics.go @@ -225,6 +225,7 @@ func (client TopicsClient) Get(ctx context.Context, resourceGroupName string, to result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client TopicsClient) ListByResourceGroup(ctx context.Context, resourceGrou result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -370,6 +372,7 @@ func (client TopicsClient) ListBySubscription(ctx context.Context) (result Topic result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -445,6 +448,7 @@ func (client TopicsClient) ListEventTypes(ctx context.Context, resourceGroupName result, err = client.ListEventTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListEventTypes", resp, "Failure responding to request") + return } return @@ -522,6 +526,7 @@ func (client TopicsClient) ListSharedAccessKeys(ctx context.Context, resourceGro result, err = client.ListSharedAccessKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListSharedAccessKeys", resp, "Failure responding to request") + return } return @@ -604,6 +609,7 @@ func (client TopicsClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/topictypes.go b/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/topictypes.go index 45618456a135..3b16f646a704 100644 --- a/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/topictypes.go +++ b/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/topictypes.go @@ -71,6 +71,7 @@ func (client TopicTypesClient) Get(ctx context.Context, topicTypeName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "Get", resp, "Failure responding to request") + return } return @@ -141,6 +142,7 @@ func (client TopicTypesClient) List(ctx context.Context) (result TopicTypesListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "List", resp, "Failure responding to request") + return } return @@ -209,6 +211,7 @@ func (client TopicTypesClient) ListEventTypes(ctx context.Context, topicTypeName result, err = client.ListEventTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "ListEventTypes", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/eventsubscriptions.go b/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/eventsubscriptions.go index 07126ea1d5e3..988964bfd72b 100644 --- a/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/eventsubscriptions.go +++ b/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/eventsubscriptions.go @@ -246,6 +246,7 @@ func (client EventSubscriptionsClient) Get(ctx context.Context, scope string, ev result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -327,6 +328,7 @@ func (client EventSubscriptionsClient) GetFullURL(ctx context.Context, scope str result, err = client.GetFullURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "GetFullURL", resp, "Failure responding to request") + return } return @@ -403,6 +405,7 @@ func (client EventSubscriptionsClient) ListByResource(ctx context.Context, resou result, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListByResource", resp, "Failure responding to request") + return } return @@ -479,6 +482,7 @@ func (client EventSubscriptionsClient) ListGlobalByResourceGroup(ctx context.Con result, err = client.ListGlobalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalByResourceGroup", resp, "Failure responding to request") + return } return @@ -554,6 +558,7 @@ func (client EventSubscriptionsClient) ListGlobalByResourceGroupForTopicType(ctx result, err = client.ListGlobalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalByResourceGroupForTopicType", resp, "Failure responding to request") + return } return @@ -626,6 +631,7 @@ func (client EventSubscriptionsClient) ListGlobalBySubscription(ctx context.Cont result, err = client.ListGlobalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalBySubscription", resp, "Failure responding to request") + return } return @@ -699,6 +705,7 @@ func (client EventSubscriptionsClient) ListGlobalBySubscriptionForTopicType(ctx result, err = client.ListGlobalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalBySubscriptionForTopicType", resp, "Failure responding to request") + return } return @@ -774,6 +781,7 @@ func (client EventSubscriptionsClient) ListRegionalByResourceGroup(ctx context.C result, err = client.ListRegionalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalByResourceGroup", resp, "Failure responding to request") + return } return @@ -851,6 +859,7 @@ func (client EventSubscriptionsClient) ListRegionalByResourceGroupForTopicType(c result, err = client.ListRegionalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalByResourceGroupForTopicType", resp, "Failure responding to request") + return } return @@ -926,6 +935,7 @@ func (client EventSubscriptionsClient) ListRegionalBySubscription(ctx context.Co result, err = client.ListRegionalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalBySubscription", resp, "Failure responding to request") + return } return @@ -1001,6 +1011,7 @@ func (client EventSubscriptionsClient) ListRegionalBySubscriptionForTopicType(ct result, err = client.ListRegionalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalBySubscriptionForTopicType", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/operations.go b/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/operations.go index c102321e4cca..5614917c61b2 100644 --- a/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/operations.go +++ b/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/topics.go b/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/topics.go index 097373123f8d..844a156f05d1 100644 --- a/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/topics.go +++ b/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/topics.go @@ -225,6 +225,7 @@ func (client TopicsClient) Get(ctx context.Context, resourceGroupName string, to result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client TopicsClient) ListByResourceGroup(ctx context.Context, resourceGrou result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -370,6 +372,7 @@ func (client TopicsClient) ListBySubscription(ctx context.Context) (result Topic result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -445,6 +448,7 @@ func (client TopicsClient) ListEventTypes(ctx context.Context, resourceGroupName result, err = client.ListEventTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListEventTypes", resp, "Failure responding to request") + return } return @@ -522,6 +526,7 @@ func (client TopicsClient) ListSharedAccessKeys(ctx context.Context, resourceGro result, err = client.ListSharedAccessKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListSharedAccessKeys", resp, "Failure responding to request") + return } return @@ -604,6 +609,7 @@ func (client TopicsClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/topictypes.go b/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/topictypes.go index faf7eff7dbc7..6e50c9987f7d 100644 --- a/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/topictypes.go +++ b/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/topictypes.go @@ -71,6 +71,7 @@ func (client TopicTypesClient) Get(ctx context.Context, topicTypeName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "Get", resp, "Failure responding to request") + return } return @@ -141,6 +142,7 @@ func (client TopicTypesClient) List(ctx context.Context) (result TopicTypesListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "List", resp, "Failure responding to request") + return } return @@ -209,6 +211,7 @@ func (client TopicTypesClient) ListEventTypes(ctx context.Context, topicTypeName result, err = client.ListEventTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "ListEventTypes", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/eventsubscriptions.go b/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/eventsubscriptions.go index 183de3e0edf7..04075a183e2d 100644 --- a/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/eventsubscriptions.go +++ b/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/eventsubscriptions.go @@ -246,6 +246,7 @@ func (client EventSubscriptionsClient) Get(ctx context.Context, scope string, ev result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -327,6 +328,7 @@ func (client EventSubscriptionsClient) GetFullURL(ctx context.Context, scope str result, err = client.GetFullURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "GetFullURL", resp, "Failure responding to request") + return } return @@ -403,6 +405,7 @@ func (client EventSubscriptionsClient) ListByResource(ctx context.Context, resou result, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListByResource", resp, "Failure responding to request") + return } return @@ -479,6 +482,7 @@ func (client EventSubscriptionsClient) ListGlobalByResourceGroup(ctx context.Con result, err = client.ListGlobalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalByResourceGroup", resp, "Failure responding to request") + return } return @@ -554,6 +558,7 @@ func (client EventSubscriptionsClient) ListGlobalByResourceGroupForTopicType(ctx result, err = client.ListGlobalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalByResourceGroupForTopicType", resp, "Failure responding to request") + return } return @@ -626,6 +631,7 @@ func (client EventSubscriptionsClient) ListGlobalBySubscription(ctx context.Cont result, err = client.ListGlobalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalBySubscription", resp, "Failure responding to request") + return } return @@ -699,6 +705,7 @@ func (client EventSubscriptionsClient) ListGlobalBySubscriptionForTopicType(ctx result, err = client.ListGlobalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalBySubscriptionForTopicType", resp, "Failure responding to request") + return } return @@ -774,6 +781,7 @@ func (client EventSubscriptionsClient) ListRegionalByResourceGroup(ctx context.C result, err = client.ListRegionalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalByResourceGroup", resp, "Failure responding to request") + return } return @@ -851,6 +859,7 @@ func (client EventSubscriptionsClient) ListRegionalByResourceGroupForTopicType(c result, err = client.ListRegionalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalByResourceGroupForTopicType", resp, "Failure responding to request") + return } return @@ -926,6 +935,7 @@ func (client EventSubscriptionsClient) ListRegionalBySubscription(ctx context.Co result, err = client.ListRegionalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalBySubscription", resp, "Failure responding to request") + return } return @@ -1001,6 +1011,7 @@ func (client EventSubscriptionsClient) ListRegionalBySubscriptionForTopicType(ct result, err = client.ListRegionalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalBySubscriptionForTopicType", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/operations.go b/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/operations.go index ec4bcf76f578..c1a3bf49dd2a 100644 --- a/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/operations.go +++ b/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/topics.go b/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/topics.go index fc6bb7c264d6..a476ccc4c1b0 100644 --- a/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/topics.go +++ b/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/topics.go @@ -225,6 +225,7 @@ func (client TopicsClient) Get(ctx context.Context, resourceGroupName string, to result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client TopicsClient) ListByResourceGroup(ctx context.Context, resourceGrou result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -370,6 +372,7 @@ func (client TopicsClient) ListBySubscription(ctx context.Context) (result Topic result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -445,6 +448,7 @@ func (client TopicsClient) ListEventTypes(ctx context.Context, resourceGroupName result, err = client.ListEventTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListEventTypes", resp, "Failure responding to request") + return } return @@ -522,6 +526,7 @@ func (client TopicsClient) ListSharedAccessKeys(ctx context.Context, resourceGro result, err = client.ListSharedAccessKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListSharedAccessKeys", resp, "Failure responding to request") + return } return @@ -604,6 +609,7 @@ func (client TopicsClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/topictypes.go b/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/topictypes.go index 8f02d6c567c5..f42cc0f4bd98 100644 --- a/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/topictypes.go +++ b/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/topictypes.go @@ -71,6 +71,7 @@ func (client TopicTypesClient) Get(ctx context.Context, topicTypeName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "Get", resp, "Failure responding to request") + return } return @@ -141,6 +142,7 @@ func (client TopicTypesClient) List(ctx context.Context) (result TopicTypesListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "List", resp, "Failure responding to request") + return } return @@ -209,6 +211,7 @@ func (client TopicTypesClient) ListEventTypes(ctx context.Context, topicTypeName result, err = client.ListEventTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "ListEventTypes", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/domains.go b/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/domains.go index b6e6297a696c..8c8acddf82ab 100644 --- a/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/domains.go +++ b/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/domains.go @@ -225,6 +225,7 @@ func (client DomainsClient) Get(ctx context.Context, resourceGroupName string, d result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client DomainsClient) ListByResourceGroup(ctx context.Context, resourceGro result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -370,6 +372,7 @@ func (client DomainsClient) ListBySubscription(ctx context.Context) (result Doma result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -443,6 +446,7 @@ func (client DomainsClient) ListSharedAccessKeys(ctx context.Context, resourceGr result, err = client.ListSharedAccessKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "ListSharedAccessKeys", resp, "Failure responding to request") + return } return @@ -525,6 +529,7 @@ func (client DomainsClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/domaintopics.go b/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/domaintopics.go index 0cc671dbe51b..13b9e5503673 100644 --- a/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/domaintopics.go +++ b/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/domaintopics.go @@ -73,6 +73,7 @@ func (client DomainTopicsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainTopicsClient", "Get", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client DomainTopicsClient) ListByDomain(ctx context.Context, resourceGroup result, err = client.ListByDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainTopicsClient", "ListByDomain", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/eventsubscriptions.go b/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/eventsubscriptions.go index c17c0993e1f2..7c65f1769d4f 100644 --- a/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/eventsubscriptions.go +++ b/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/eventsubscriptions.go @@ -246,6 +246,7 @@ func (client EventSubscriptionsClient) Get(ctx context.Context, scope string, ev result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -327,6 +328,7 @@ func (client EventSubscriptionsClient) GetFullURL(ctx context.Context, scope str result, err = client.GetFullURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "GetFullURL", resp, "Failure responding to request") + return } return @@ -402,6 +404,7 @@ func (client EventSubscriptionsClient) ListByDomainTopic(ctx context.Context, re result, err = client.ListByDomainTopicResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListByDomainTopic", resp, "Failure responding to request") + return } return @@ -480,6 +483,7 @@ func (client EventSubscriptionsClient) ListByResource(ctx context.Context, resou result, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListByResource", resp, "Failure responding to request") + return } return @@ -556,6 +560,7 @@ func (client EventSubscriptionsClient) ListGlobalByResourceGroup(ctx context.Con result, err = client.ListGlobalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalByResourceGroup", resp, "Failure responding to request") + return } return @@ -631,6 +636,7 @@ func (client EventSubscriptionsClient) ListGlobalByResourceGroupForTopicType(ctx result, err = client.ListGlobalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalByResourceGroupForTopicType", resp, "Failure responding to request") + return } return @@ -703,6 +709,7 @@ func (client EventSubscriptionsClient) ListGlobalBySubscription(ctx context.Cont result, err = client.ListGlobalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalBySubscription", resp, "Failure responding to request") + return } return @@ -776,6 +783,7 @@ func (client EventSubscriptionsClient) ListGlobalBySubscriptionForTopicType(ctx result, err = client.ListGlobalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalBySubscriptionForTopicType", resp, "Failure responding to request") + return } return @@ -851,6 +859,7 @@ func (client EventSubscriptionsClient) ListRegionalByResourceGroup(ctx context.C result, err = client.ListRegionalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalByResourceGroup", resp, "Failure responding to request") + return } return @@ -928,6 +937,7 @@ func (client EventSubscriptionsClient) ListRegionalByResourceGroupForTopicType(c result, err = client.ListRegionalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalByResourceGroupForTopicType", resp, "Failure responding to request") + return } return @@ -1003,6 +1013,7 @@ func (client EventSubscriptionsClient) ListRegionalBySubscription(ctx context.Co result, err = client.ListRegionalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalBySubscription", resp, "Failure responding to request") + return } return @@ -1078,6 +1089,7 @@ func (client EventSubscriptionsClient) ListRegionalBySubscriptionForTopicType(ct result, err = client.ListRegionalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalBySubscriptionForTopicType", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/operations.go b/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/operations.go index 852e88171983..211d12d77e3e 100644 --- a/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/operations.go +++ b/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/topics.go b/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/topics.go index b31b44732af4..3d255b808efe 100644 --- a/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/topics.go +++ b/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/topics.go @@ -225,6 +225,7 @@ func (client TopicsClient) Get(ctx context.Context, resourceGroupName string, to result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client TopicsClient) ListByResourceGroup(ctx context.Context, resourceGrou result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -370,6 +372,7 @@ func (client TopicsClient) ListBySubscription(ctx context.Context) (result Topic result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -445,6 +448,7 @@ func (client TopicsClient) ListEventTypes(ctx context.Context, resourceGroupName result, err = client.ListEventTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListEventTypes", resp, "Failure responding to request") + return } return @@ -522,6 +526,7 @@ func (client TopicsClient) ListSharedAccessKeys(ctx context.Context, resourceGro result, err = client.ListSharedAccessKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListSharedAccessKeys", resp, "Failure responding to request") + return } return @@ -604,6 +609,7 @@ func (client TopicsClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/topictypes.go b/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/topictypes.go index 33c5ff41a847..936b3d243844 100644 --- a/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/topictypes.go +++ b/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/topictypes.go @@ -71,6 +71,7 @@ func (client TopicTypesClient) Get(ctx context.Context, topicTypeName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "Get", resp, "Failure responding to request") + return } return @@ -141,6 +142,7 @@ func (client TopicTypesClient) List(ctx context.Context) (result TopicTypesListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "List", resp, "Failure responding to request") + return } return @@ -209,6 +211,7 @@ func (client TopicTypesClient) ListEventTypes(ctx context.Context, topicTypeName result, err = client.ListEventTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "ListEventTypes", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/domains.go b/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/domains.go index 61bdf41d2822..79a6997c489d 100644 --- a/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/domains.go +++ b/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/domains.go @@ -225,6 +225,7 @@ func (client DomainsClient) Get(ctx context.Context, resourceGroupName string, d result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DomainsClient) ListByResourceGroup(ctx context.Context, resourceGro result.dlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client DomainsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -423,6 +426,7 @@ func (client DomainsClient) ListBySubscription(ctx context.Context, filter strin result.dlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -491,6 +495,7 @@ func (client DomainsClient) listBySubscriptionNextResults(ctx context.Context, l result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -542,6 +547,7 @@ func (client DomainsClient) ListSharedAccessKeys(ctx context.Context, resourceGr result, err = client.ListSharedAccessKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "ListSharedAccessKeys", resp, "Failure responding to request") + return } return @@ -624,6 +630,7 @@ func (client DomainsClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/domaintopics.go b/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/domaintopics.go index e82deeda4d30..285826c7bcf5 100644 --- a/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/domaintopics.go +++ b/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/domaintopics.go @@ -226,6 +226,7 @@ func (client DomainTopicsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainTopicsClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client DomainTopicsClient) ListByDomain(ctx context.Context, resourceGroup result.dtlr, err = client.ListByDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainTopicsClient", "ListByDomain", resp, "Failure responding to request") + return } if result.dtlr.hasNextLink() && result.dtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client DomainTopicsClient) listByDomainNextResults(ctx context.Context, la result, err = client.ListByDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainTopicsClient", "listByDomainNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/eventsubscriptions.go b/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/eventsubscriptions.go index 9a25ba7ba402..f72bd4b6fbe2 100644 --- a/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/eventsubscriptions.go +++ b/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/eventsubscriptions.go @@ -246,6 +246,7 @@ func (client EventSubscriptionsClient) Get(ctx context.Context, scope string, ev result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -327,6 +328,7 @@ func (client EventSubscriptionsClient) GetFullURL(ctx context.Context, scope str result, err = client.GetFullURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "GetFullURL", resp, "Failure responding to request") + return } return @@ -406,6 +408,7 @@ func (client EventSubscriptionsClient) ListByDomainTopic(ctx context.Context, re result.eslr, err = client.ListByDomainTopicResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListByDomainTopic", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -480,6 +483,7 @@ func (client EventSubscriptionsClient) listByDomainTopicNextResults(ctx context. result, err = client.ListByDomainTopicResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listByDomainTopicNextResults", resp, "Failure responding to next results request") + return } return } @@ -537,6 +541,7 @@ func (client EventSubscriptionsClient) ListByResource(ctx context.Context, resou result.eslr, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListByResource", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -612,6 +617,7 @@ func (client EventSubscriptionsClient) listByResourceNextResults(ctx context.Con result, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listByResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -666,6 +672,7 @@ func (client EventSubscriptionsClient) ListGlobalByResourceGroup(ctx context.Con result.eslr, err = client.ListGlobalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalByResourceGroup", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -738,6 +745,7 @@ func (client EventSubscriptionsClient) listGlobalByResourceGroupNextResults(ctx result, err = client.ListGlobalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listGlobalByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -794,6 +802,7 @@ func (client EventSubscriptionsClient) ListGlobalByResourceGroupForTopicType(ctx result.eslr, err = client.ListGlobalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalByResourceGroupForTopicType", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -867,6 +876,7 @@ func (client EventSubscriptionsClient) listGlobalByResourceGroupForTopicTypeNext result, err = client.ListGlobalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listGlobalByResourceGroupForTopicTypeNextResults", resp, "Failure responding to next results request") + return } return } @@ -920,6 +930,7 @@ func (client EventSubscriptionsClient) ListGlobalBySubscription(ctx context.Cont result.eslr, err = client.ListGlobalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalBySubscription", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -991,6 +1002,7 @@ func (client EventSubscriptionsClient) listGlobalBySubscriptionNextResults(ctx c result, err = client.ListGlobalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listGlobalBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1046,6 +1058,7 @@ func (client EventSubscriptionsClient) ListGlobalBySubscriptionForTopicType(ctx result.eslr, err = client.ListGlobalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalBySubscriptionForTopicType", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1118,6 +1131,7 @@ func (client EventSubscriptionsClient) listGlobalBySubscriptionForTopicTypeNextR result, err = client.ListGlobalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listGlobalBySubscriptionForTopicTypeNextResults", resp, "Failure responding to next results request") + return } return } @@ -1174,6 +1188,7 @@ func (client EventSubscriptionsClient) ListRegionalByResourceGroup(ctx context.C result.eslr, err = client.ListRegionalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalByResourceGroup", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1247,6 +1262,7 @@ func (client EventSubscriptionsClient) listRegionalByResourceGroupNextResults(ct result, err = client.ListRegionalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listRegionalByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1304,6 +1320,7 @@ func (client EventSubscriptionsClient) ListRegionalByResourceGroupForTopicType(c result.eslr, err = client.ListRegionalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalByResourceGroupForTopicType", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1378,6 +1395,7 @@ func (client EventSubscriptionsClient) listRegionalByResourceGroupForTopicTypeNe result, err = client.ListRegionalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listRegionalByResourceGroupForTopicTypeNextResults", resp, "Failure responding to next results request") + return } return } @@ -1432,6 +1450,7 @@ func (client EventSubscriptionsClient) ListRegionalBySubscription(ctx context.Co result.eslr, err = client.ListRegionalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalBySubscription", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1504,6 +1523,7 @@ func (client EventSubscriptionsClient) listRegionalBySubscriptionNextResults(ctx result, err = client.ListRegionalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listRegionalBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1560,6 +1580,7 @@ func (client EventSubscriptionsClient) ListRegionalBySubscriptionForTopicType(ct result.eslr, err = client.ListRegionalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalBySubscriptionForTopicType", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1633,6 +1654,7 @@ func (client EventSubscriptionsClient) listRegionalBySubscriptionForTopicTypeNex result, err = client.ListRegionalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listRegionalBySubscriptionForTopicTypeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/operations.go b/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/operations.go index 7e429f7908c2..c60a2d5a90d6 100644 --- a/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/operations.go +++ b/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/topics.go b/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/topics.go index c8dc3e194395..eeecb0b4ccbf 100644 --- a/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/topics.go +++ b/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/topics.go @@ -225,6 +225,7 @@ func (client TopicsClient) Get(ctx context.Context, resourceGroupName string, to result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client TopicsClient) ListByResourceGroup(ctx context.Context, resourceGrou result.tlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client TopicsClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -423,6 +426,7 @@ func (client TopicsClient) ListBySubscription(ctx context.Context, filter string result.tlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -491,6 +495,7 @@ func (client TopicsClient) listBySubscriptionNextResults(ctx context.Context, la result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -544,6 +549,7 @@ func (client TopicsClient) ListEventTypes(ctx context.Context, resourceGroupName result, err = client.ListEventTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListEventTypes", resp, "Failure responding to request") + return } return @@ -621,6 +627,7 @@ func (client TopicsClient) ListSharedAccessKeys(ctx context.Context, resourceGro result, err = client.ListSharedAccessKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListSharedAccessKeys", resp, "Failure responding to request") + return } return @@ -703,6 +710,7 @@ func (client TopicsClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/topictypes.go b/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/topictypes.go index 01437d07f7b0..d54dc31d8159 100644 --- a/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/topictypes.go +++ b/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/topictypes.go @@ -71,6 +71,7 @@ func (client TopicTypesClient) Get(ctx context.Context, topicTypeName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "Get", resp, "Failure responding to request") + return } return @@ -141,6 +142,7 @@ func (client TopicTypesClient) List(ctx context.Context) (result TopicTypesListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "List", resp, "Failure responding to request") + return } return @@ -209,6 +211,7 @@ func (client TopicTypesClient) ListEventTypes(ctx context.Context, topicTypeName result, err = client.ListEventTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "ListEventTypes", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/domains.go b/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/domains.go index 0f4ba0c07928..10ad116e4ace 100644 --- a/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/domains.go +++ b/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/domains.go @@ -225,6 +225,7 @@ func (client DomainsClient) Get(ctx context.Context, resourceGroupName string, d result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client DomainsClient) ListByResourceGroup(ctx context.Context, resourceGro result.dlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +379,7 @@ func (client DomainsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -435,6 +438,7 @@ func (client DomainsClient) ListBySubscription(ctx context.Context, filter strin result.dlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -503,6 +507,7 @@ func (client DomainsClient) listBySubscriptionNextResults(ctx context.Context, l result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -554,6 +559,7 @@ func (client DomainsClient) ListSharedAccessKeys(ctx context.Context, resourceGr result, err = client.ListSharedAccessKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "ListSharedAccessKeys", resp, "Failure responding to request") + return } return @@ -636,6 +642,7 @@ func (client DomainsClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/domaintopics.go b/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/domaintopics.go index 32001158beda..68a55a65c327 100644 --- a/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/domaintopics.go +++ b/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/domaintopics.go @@ -226,6 +226,7 @@ func (client DomainTopicsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainTopicsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client DomainTopicsClient) ListByDomain(ctx context.Context, resourceGroup result.dtlr, err = client.ListByDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainTopicsClient", "ListByDomain", resp, "Failure responding to request") + return } if result.dtlr.hasNextLink() && result.dtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client DomainTopicsClient) listByDomainNextResults(ctx context.Context, la result, err = client.ListByDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainTopicsClient", "listByDomainNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/eventsubscriptions.go b/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/eventsubscriptions.go index 7e7d2d281813..9db772106df7 100644 --- a/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/eventsubscriptions.go +++ b/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/eventsubscriptions.go @@ -246,6 +246,7 @@ func (client EventSubscriptionsClient) Get(ctx context.Context, scope string, ev result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -327,6 +328,7 @@ func (client EventSubscriptionsClient) GetFullURL(ctx context.Context, scope str result, err = client.GetFullURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "GetFullURL", resp, "Failure responding to request") + return } return @@ -411,6 +413,7 @@ func (client EventSubscriptionsClient) ListByDomainTopic(ctx context.Context, re result.eslr, err = client.ListByDomainTopicResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListByDomainTopic", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -482,6 +485,7 @@ func (client EventSubscriptionsClient) listByDomainTopicNextResults(ctx context. result, err = client.ListByDomainTopicResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listByDomainTopicNextResults", resp, "Failure responding to next results request") + return } return } @@ -544,6 +548,7 @@ func (client EventSubscriptionsClient) ListByResource(ctx context.Context, resou result.eslr, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListByResource", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -616,6 +621,7 @@ func (client EventSubscriptionsClient) listByResourceNextResults(ctx context.Con result, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listByResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -675,6 +681,7 @@ func (client EventSubscriptionsClient) ListGlobalByResourceGroup(ctx context.Con result.eslr, err = client.ListGlobalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalByResourceGroup", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -744,6 +751,7 @@ func (client EventSubscriptionsClient) listGlobalByResourceGroupNextResults(ctx result, err = client.ListGlobalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listGlobalByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -805,6 +813,7 @@ func (client EventSubscriptionsClient) ListGlobalByResourceGroupForTopicType(ctx result.eslr, err = client.ListGlobalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalByResourceGroupForTopicType", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -875,6 +884,7 @@ func (client EventSubscriptionsClient) listGlobalByResourceGroupForTopicTypeNext result, err = client.ListGlobalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listGlobalByResourceGroupForTopicTypeNextResults", resp, "Failure responding to next results request") + return } return } @@ -933,6 +943,7 @@ func (client EventSubscriptionsClient) ListGlobalBySubscription(ctx context.Cont result.eslr, err = client.ListGlobalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalBySubscription", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1001,6 +1012,7 @@ func (client EventSubscriptionsClient) listGlobalBySubscriptionNextResults(ctx c result, err = client.ListGlobalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listGlobalBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1061,6 +1073,7 @@ func (client EventSubscriptionsClient) ListGlobalBySubscriptionForTopicType(ctx result.eslr, err = client.ListGlobalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalBySubscriptionForTopicType", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1130,6 +1143,7 @@ func (client EventSubscriptionsClient) listGlobalBySubscriptionForTopicTypeNextR result, err = client.ListGlobalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listGlobalBySubscriptionForTopicTypeNextResults", resp, "Failure responding to next results request") + return } return } @@ -1191,6 +1205,7 @@ func (client EventSubscriptionsClient) ListRegionalByResourceGroup(ctx context.C result.eslr, err = client.ListRegionalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalByResourceGroup", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1261,6 +1276,7 @@ func (client EventSubscriptionsClient) listRegionalByResourceGroupNextResults(ct result, err = client.ListRegionalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listRegionalByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1323,6 +1339,7 @@ func (client EventSubscriptionsClient) ListRegionalByResourceGroupForTopicType(c result.eslr, err = client.ListRegionalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalByResourceGroupForTopicType", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1394,6 +1411,7 @@ func (client EventSubscriptionsClient) listRegionalByResourceGroupForTopicTypeNe result, err = client.ListRegionalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listRegionalByResourceGroupForTopicTypeNextResults", resp, "Failure responding to next results request") + return } return } @@ -1453,6 +1471,7 @@ func (client EventSubscriptionsClient) ListRegionalBySubscription(ctx context.Co result.eslr, err = client.ListRegionalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalBySubscription", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1522,6 +1541,7 @@ func (client EventSubscriptionsClient) listRegionalBySubscriptionNextResults(ctx result, err = client.ListRegionalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listRegionalBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1583,6 +1603,7 @@ func (client EventSubscriptionsClient) ListRegionalBySubscriptionForTopicType(ct result.eslr, err = client.ListRegionalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalBySubscriptionForTopicType", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1653,6 +1674,7 @@ func (client EventSubscriptionsClient) listRegionalBySubscriptionForTopicTypeNex result, err = client.ListRegionalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listRegionalBySubscriptionForTopicTypeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/operations.go b/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/operations.go index 15d5741f4c2b..98ae869ba02f 100644 --- a/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/operations.go +++ b/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/topics.go b/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/topics.go index 5ca6481dacac..02050d2363bd 100644 --- a/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/topics.go +++ b/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/topics.go @@ -225,6 +225,7 @@ func (client TopicsClient) Get(ctx context.Context, resourceGroupName string, to result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client TopicsClient) ListByResourceGroup(ctx context.Context, resourceGrou result.tlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +379,7 @@ func (client TopicsClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -435,6 +438,7 @@ func (client TopicsClient) ListBySubscription(ctx context.Context, filter string result.tlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -503,6 +507,7 @@ func (client TopicsClient) listBySubscriptionNextResults(ctx context.Context, la result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -556,6 +561,7 @@ func (client TopicsClient) ListEventTypes(ctx context.Context, resourceGroupName result, err = client.ListEventTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListEventTypes", resp, "Failure responding to request") + return } return @@ -633,6 +639,7 @@ func (client TopicsClient) ListSharedAccessKeys(ctx context.Context, resourceGro result, err = client.ListSharedAccessKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListSharedAccessKeys", resp, "Failure responding to request") + return } return @@ -715,6 +722,7 @@ func (client TopicsClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/topictypes.go b/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/topictypes.go index 0b6e2ba9aa3c..05a2d8a49096 100644 --- a/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/topictypes.go +++ b/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/topictypes.go @@ -71,6 +71,7 @@ func (client TopicTypesClient) Get(ctx context.Context, topicTypeName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "Get", resp, "Failure responding to request") + return } return @@ -141,6 +142,7 @@ func (client TopicTypesClient) List(ctx context.Context) (result TopicTypesListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "List", resp, "Failure responding to request") + return } return @@ -209,6 +211,7 @@ func (client TopicTypesClient) ListEventTypes(ctx context.Context, topicTypeName result, err = client.ListEventTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "ListEventTypes", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/domains.go b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/domains.go index 82b8a58ca8be..4a2090c0188b 100644 --- a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/domains.go +++ b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/domains.go @@ -225,6 +225,7 @@ func (client DomainsClient) Get(ctx context.Context, resourceGroupName string, d result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client DomainsClient) ListByResourceGroup(ctx context.Context, resourceGro result.dlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +379,7 @@ func (client DomainsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -435,6 +438,7 @@ func (client DomainsClient) ListBySubscription(ctx context.Context, filter strin result.dlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -503,6 +507,7 @@ func (client DomainsClient) listBySubscriptionNextResults(ctx context.Context, l result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -554,6 +559,7 @@ func (client DomainsClient) ListSharedAccessKeys(ctx context.Context, resourceGr result, err = client.ListSharedAccessKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "ListSharedAccessKeys", resp, "Failure responding to request") + return } return @@ -636,6 +642,7 @@ func (client DomainsClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/domaintopics.go b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/domaintopics.go index e06083d2b387..62efaa6d4a00 100644 --- a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/domaintopics.go +++ b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/domaintopics.go @@ -226,6 +226,7 @@ func (client DomainTopicsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainTopicsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client DomainTopicsClient) ListByDomain(ctx context.Context, resourceGroup result.dtlr, err = client.ListByDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainTopicsClient", "ListByDomain", resp, "Failure responding to request") + return } if result.dtlr.hasNextLink() && result.dtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client DomainTopicsClient) listByDomainNextResults(ctx context.Context, la result, err = client.ListByDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainTopicsClient", "listByDomainNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/eventchannels.go b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/eventchannels.go index 5b0711e9321b..f0f3252e4d78 100644 --- a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/eventchannels.go +++ b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/eventchannels.go @@ -74,6 +74,7 @@ func (client EventChannelsClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventChannelsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -229,6 +230,7 @@ func (client EventChannelsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventChannelsClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +316,7 @@ func (client EventChannelsClient) ListByPartnerNamespace(ctx context.Context, re result.eclr, err = client.ListByPartnerNamespaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventChannelsClient", "ListByPartnerNamespace", resp, "Failure responding to request") + return } if result.eclr.hasNextLink() && result.eclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +387,7 @@ func (client EventChannelsClient) listByPartnerNamespaceNextResults(ctx context. result, err = client.ListByPartnerNamespaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventChannelsClient", "listByPartnerNamespaceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/eventsubscriptions.go b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/eventsubscriptions.go index 7b3815b42b09..95e80997bea8 100644 --- a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/eventsubscriptions.go +++ b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/eventsubscriptions.go @@ -246,6 +246,7 @@ func (client EventSubscriptionsClient) Get(ctx context.Context, scope string, ev result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -327,6 +328,7 @@ func (client EventSubscriptionsClient) GetFullURL(ctx context.Context, scope str result, err = client.GetFullURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "GetFullURL", resp, "Failure responding to request") + return } return @@ -411,6 +413,7 @@ func (client EventSubscriptionsClient) ListByDomainTopic(ctx context.Context, re result.eslr, err = client.ListByDomainTopicResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListByDomainTopic", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -482,6 +485,7 @@ func (client EventSubscriptionsClient) listByDomainTopicNextResults(ctx context. result, err = client.ListByDomainTopicResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listByDomainTopicNextResults", resp, "Failure responding to next results request") + return } return } @@ -544,6 +548,7 @@ func (client EventSubscriptionsClient) ListByResource(ctx context.Context, resou result.eslr, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListByResource", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -616,6 +621,7 @@ func (client EventSubscriptionsClient) listByResourceNextResults(ctx context.Con result, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listByResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -676,6 +682,7 @@ func (client EventSubscriptionsClient) ListGlobalByResourceGroup(ctx context.Con result.eslr, err = client.ListGlobalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalByResourceGroup", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -745,6 +752,7 @@ func (client EventSubscriptionsClient) listGlobalByResourceGroupNextResults(ctx result, err = client.ListGlobalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listGlobalByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -806,6 +814,7 @@ func (client EventSubscriptionsClient) ListGlobalByResourceGroupForTopicType(ctx result.eslr, err = client.ListGlobalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalByResourceGroupForTopicType", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -876,6 +885,7 @@ func (client EventSubscriptionsClient) listGlobalByResourceGroupForTopicTypeNext result, err = client.ListGlobalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listGlobalByResourceGroupForTopicTypeNextResults", resp, "Failure responding to next results request") + return } return } @@ -934,6 +944,7 @@ func (client EventSubscriptionsClient) ListGlobalBySubscription(ctx context.Cont result.eslr, err = client.ListGlobalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalBySubscription", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1002,6 +1013,7 @@ func (client EventSubscriptionsClient) listGlobalBySubscriptionNextResults(ctx c result, err = client.ListGlobalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listGlobalBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1062,6 +1074,7 @@ func (client EventSubscriptionsClient) ListGlobalBySubscriptionForTopicType(ctx result.eslr, err = client.ListGlobalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListGlobalBySubscriptionForTopicType", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1131,6 +1144,7 @@ func (client EventSubscriptionsClient) listGlobalBySubscriptionForTopicTypeNextR result, err = client.ListGlobalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listGlobalBySubscriptionForTopicTypeNextResults", resp, "Failure responding to next results request") + return } return } @@ -1192,6 +1206,7 @@ func (client EventSubscriptionsClient) ListRegionalByResourceGroup(ctx context.C result.eslr, err = client.ListRegionalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalByResourceGroup", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1262,6 +1277,7 @@ func (client EventSubscriptionsClient) listRegionalByResourceGroupNextResults(ct result, err = client.ListRegionalByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listRegionalByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1324,6 +1340,7 @@ func (client EventSubscriptionsClient) ListRegionalByResourceGroupForTopicType(c result.eslr, err = client.ListRegionalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalByResourceGroupForTopicType", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1395,6 +1412,7 @@ func (client EventSubscriptionsClient) listRegionalByResourceGroupForTopicTypeNe result, err = client.ListRegionalByResourceGroupForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listRegionalByResourceGroupForTopicTypeNextResults", resp, "Failure responding to next results request") + return } return } @@ -1454,6 +1472,7 @@ func (client EventSubscriptionsClient) ListRegionalBySubscription(ctx context.Co result.eslr, err = client.ListRegionalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalBySubscription", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1523,6 +1542,7 @@ func (client EventSubscriptionsClient) listRegionalBySubscriptionNextResults(ctx result, err = client.ListRegionalBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listRegionalBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1584,6 +1604,7 @@ func (client EventSubscriptionsClient) ListRegionalBySubscriptionForTopicType(ct result.eslr, err = client.ListRegionalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "ListRegionalBySubscriptionForTopicType", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1654,6 +1675,7 @@ func (client EventSubscriptionsClient) listRegionalBySubscriptionForTopicTypeNex result, err = client.ListRegionalBySubscriptionForTopicTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsClient", "listRegionalBySubscriptionForTopicTypeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/extensiontopics.go b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/extensiontopics.go index 22b169ae9e4a..24df66148817 100644 --- a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/extensiontopics.go +++ b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/extensiontopics.go @@ -76,6 +76,7 @@ func (client ExtensionTopicsClient) Get(ctx context.Context, scope string) (resu result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.ExtensionTopicsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/operations.go b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/operations.go index 8b69c11670c8..f4a6d4731866 100644 --- a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/operations.go +++ b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/partnernamespaces.go b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/partnernamespaces.go index ee307649227a..6cfe7c446bda 100644 --- a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/partnernamespaces.go +++ b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/partnernamespaces.go @@ -226,6 +226,7 @@ func (client PartnerNamespacesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerNamespacesClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +310,7 @@ func (client PartnerNamespacesClient) ListByResourceGroup(ctx context.Context, r result.pnlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerNamespacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.pnlr.hasNextLink() && result.pnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -378,6 +380,7 @@ func (client PartnerNamespacesClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerNamespacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -436,6 +439,7 @@ func (client PartnerNamespacesClient) ListBySubscription(ctx context.Context, fi result.pnlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerNamespacesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.pnlr.hasNextLink() && result.pnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -504,6 +508,7 @@ func (client PartnerNamespacesClient) listBySubscriptionNextResults(ctx context. result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerNamespacesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -555,6 +560,7 @@ func (client PartnerNamespacesClient) ListSharedAccessKeys(ctx context.Context, result, err = client.ListSharedAccessKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerNamespacesClient", "ListSharedAccessKeys", resp, "Failure responding to request") + return } return @@ -637,6 +643,7 @@ func (client PartnerNamespacesClient) RegenerateKey(ctx context.Context, resourc result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerNamespacesClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/partnerregistrations.go b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/partnerregistrations.go index 075624643f78..9ce4eb3a9f1d 100644 --- a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/partnerregistrations.go +++ b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/partnerregistrations.go @@ -74,6 +74,7 @@ func (client PartnerRegistrationsClient) CreateOrUpdate(ctx context.Context, res result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerRegistrationsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client PartnerRegistrationsClient) Delete(ctx context.Context, resourceGro result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerRegistrationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -225,6 +227,7 @@ func (client PartnerRegistrationsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerRegistrationsClient", "Get", resp, "Failure responding to request") + return } return @@ -297,6 +300,7 @@ func (client PartnerRegistrationsClient) List(ctx context.Context) (result Partn result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerRegistrationsClient", "List", resp, "Failure responding to request") + return } return @@ -374,6 +378,7 @@ func (client PartnerRegistrationsClient) ListByResourceGroup(ctx context.Context result.prlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerRegistrationsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.prlr.hasNextLink() && result.prlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -443,6 +448,7 @@ func (client PartnerRegistrationsClient) listByResourceGroupNextResults(ctx cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerRegistrationsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -501,6 +507,7 @@ func (client PartnerRegistrationsClient) ListBySubscription(ctx context.Context, result.prlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerRegistrationsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.prlr.hasNextLink() && result.prlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -569,6 +576,7 @@ func (client PartnerRegistrationsClient) listBySubscriptionNextResults(ctx conte result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerRegistrationsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -621,6 +629,7 @@ func (client PartnerRegistrationsClient) Update(ctx context.Context, resourceGro result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerRegistrationsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/partnertopiceventsubscriptions.go b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/partnertopiceventsubscriptions.go index dbd66ab0b49f..b48f029b2823 100644 --- a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/partnertopiceventsubscriptions.go +++ b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/partnertopiceventsubscriptions.go @@ -234,6 +234,7 @@ func (client PartnerTopicEventSubscriptionsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerTopicEventSubscriptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client PartnerTopicEventSubscriptionsClient) GetFullURL(ctx context.Contex result, err = client.GetFullURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerTopicEventSubscriptionsClient", "GetFullURL", resp, "Failure responding to request") + return } return @@ -397,6 +399,7 @@ func (client PartnerTopicEventSubscriptionsClient) ListByPartnerTopic(ctx contex result.eslr, err = client.ListByPartnerTopicResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerTopicEventSubscriptionsClient", "ListByPartnerTopic", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -467,6 +470,7 @@ func (client PartnerTopicEventSubscriptionsClient) listByPartnerTopicNextResults result, err = client.ListByPartnerTopicResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerTopicEventSubscriptionsClient", "listByPartnerTopicNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/partnertopics.go b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/partnertopics.go index 6201dc18a09f..c45c847a69ec 100644 --- a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/partnertopics.go +++ b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/partnertopics.go @@ -72,6 +72,7 @@ func (client PartnerTopicsClient) Activate(ctx context.Context, resourceGroupNam result, err = client.ActivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerTopicsClient", "Activate", resp, "Failure responding to request") + return } return @@ -147,6 +148,7 @@ func (client PartnerTopicsClient) Deactivate(ctx context.Context, resourceGroupN result, err = client.DeactivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerTopicsClient", "Deactivate", resp, "Failure responding to request") + return } return @@ -296,6 +298,7 @@ func (client PartnerTopicsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerTopicsClient", "Get", resp, "Failure responding to request") + return } return @@ -379,6 +382,7 @@ func (client PartnerTopicsClient) ListByResourceGroup(ctx context.Context, resou result.ptlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerTopicsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ptlr.hasNextLink() && result.ptlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -448,6 +452,7 @@ func (client PartnerTopicsClient) listByResourceGroupNextResults(ctx context.Con result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerTopicsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -506,6 +511,7 @@ func (client PartnerTopicsClient) ListBySubscription(ctx context.Context, filter result.ptlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerTopicsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ptlr.hasNextLink() && result.ptlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -574,6 +580,7 @@ func (client PartnerTopicsClient) listBySubscriptionNextResults(ctx context.Cont result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerTopicsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -626,6 +633,7 @@ func (client PartnerTopicsClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PartnerTopicsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/privateendpointconnections.go b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/privateendpointconnections.go index b599d4d6edf2..e0b3502f1581 100644 --- a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/privateendpointconnections.go +++ b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/privateendpointconnections.go @@ -153,6 +153,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -240,6 +241,7 @@ func (client PrivateEndpointConnectionsClient) ListByResource(ctx context.Contex result.peclr, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PrivateEndpointConnectionsClient", "ListByResource", resp, "Failure responding to request") + return } if result.peclr.hasNextLink() && result.peclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -311,6 +313,7 @@ func (client PrivateEndpointConnectionsClient) listByResourceNextResults(ctx con result, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PrivateEndpointConnectionsClient", "listByResourceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/privatelinkresources.go b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/privatelinkresources.go index 7862a34ab960..610f8472b232 100644 --- a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/privatelinkresources.go +++ b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/privatelinkresources.go @@ -75,6 +75,7 @@ func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PrivateLinkResourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client PrivateLinkResourcesClient) ListByResource(ctx context.Context, res result.plrlr, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PrivateLinkResourcesClient", "ListByResource", resp, "Failure responding to request") + return } if result.plrlr.hasNextLink() && result.plrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -233,6 +235,7 @@ func (client PrivateLinkResourcesClient) listByResourceNextResults(ctx context.C result, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.PrivateLinkResourcesClient", "listByResourceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/systemtopiceventsubscriptions.go b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/systemtopiceventsubscriptions.go index 93fca328910d..94ee2e279a98 100644 --- a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/systemtopiceventsubscriptions.go +++ b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/systemtopiceventsubscriptions.go @@ -234,6 +234,7 @@ func (client SystemTopicEventSubscriptionsClient) Get(ctx context.Context, resou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.SystemTopicEventSubscriptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client SystemTopicEventSubscriptionsClient) GetFullURL(ctx context.Context result, err = client.GetFullURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.SystemTopicEventSubscriptionsClient", "GetFullURL", resp, "Failure responding to request") + return } return @@ -397,6 +399,7 @@ func (client SystemTopicEventSubscriptionsClient) ListBySystemTopic(ctx context. result.eslr, err = client.ListBySystemTopicResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.SystemTopicEventSubscriptionsClient", "ListBySystemTopic", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -467,6 +470,7 @@ func (client SystemTopicEventSubscriptionsClient) listBySystemTopicNextResults(c result, err = client.ListBySystemTopicResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.SystemTopicEventSubscriptionsClient", "listBySystemTopicNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/systemtopics.go b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/systemtopics.go index c0171c2bac30..0481e685765e 100644 --- a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/systemtopics.go +++ b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/systemtopics.go @@ -224,6 +224,7 @@ func (client SystemTopicsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.SystemTopicsClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client SystemTopicsClient) ListByResourceGroup(ctx context.Context, resour result.stlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.SystemTopicsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.stlr.hasNextLink() && result.stlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -376,6 +378,7 @@ func (client SystemTopicsClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.SystemTopicsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -434,6 +437,7 @@ func (client SystemTopicsClient) ListBySubscription(ctx context.Context, filter result.stlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.SystemTopicsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.stlr.hasNextLink() && result.stlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -502,6 +506,7 @@ func (client SystemTopicsClient) listBySubscriptionNextResults(ctx context.Conte result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.SystemTopicsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/topics.go b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/topics.go index 922bf4389eff..50b128d05cea 100644 --- a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/topics.go +++ b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/topics.go @@ -225,6 +225,7 @@ func (client TopicsClient) Get(ctx context.Context, resourceGroupName string, to result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client TopicsClient) ListByResourceGroup(ctx context.Context, resourceGrou result.tlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +379,7 @@ func (client TopicsClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -435,6 +438,7 @@ func (client TopicsClient) ListBySubscription(ctx context.Context, filter string result.tlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -503,6 +507,7 @@ func (client TopicsClient) listBySubscriptionNextResults(ctx context.Context, la result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -556,6 +561,7 @@ func (client TopicsClient) ListEventTypes(ctx context.Context, resourceGroupName result, err = client.ListEventTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListEventTypes", resp, "Failure responding to request") + return } return @@ -633,6 +639,7 @@ func (client TopicsClient) ListSharedAccessKeys(ctx context.Context, resourceGro result, err = client.ListSharedAccessKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "ListSharedAccessKeys", resp, "Failure responding to request") + return } return @@ -715,6 +722,7 @@ func (client TopicsClient) RegenerateKey(ctx context.Context, resourceGroupName result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsClient", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/topictypes.go b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/topictypes.go index 78f00b55e534..9af27aa644b6 100644 --- a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/topictypes.go +++ b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/topictypes.go @@ -71,6 +71,7 @@ func (client TopicTypesClient) Get(ctx context.Context, topicTypeName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "Get", resp, "Failure responding to request") + return } return @@ -141,6 +142,7 @@ func (client TopicTypesClient) List(ctx context.Context) (result TopicTypesListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "List", resp, "Failure responding to request") + return } return @@ -209,6 +211,7 @@ func (client TopicTypesClient) ListEventTypes(ctx context.Context, topicTypeName result, err = client.ListEventTypesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicTypesClient", "ListEventTypes", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/clusters.go b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/clusters.go index 56f2878736fa..540daa0ec0ae 100644 --- a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/clusters.go +++ b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/clusters.go @@ -263,6 +263,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -336,6 +337,7 @@ func (client ClustersClient) ListAvailableClusterRegion(ctx context.Context) (re result, err = client.ListAvailableClusterRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.ClustersClient", "ListAvailableClusterRegion", resp, "Failure responding to request") + return } return @@ -416,6 +418,7 @@ func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGr result.clr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.ClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +482,7 @@ func (client ClustersClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.ClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -540,6 +544,7 @@ func (client ClustersClient) ListNamespaces(ctx context.Context, resourceGroupNa result, err = client.ListNamespacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.ClustersClient", "ListNamespaces", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/configuration.go b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/configuration.go index feac159bf76e..ce246d4a8ff0 100644 --- a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/configuration.go +++ b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/configuration.go @@ -84,6 +84,7 @@ func (client ConfigurationClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.ConfigurationClient", "Get", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client ConfigurationClient) Patch(ctx context.Context, resourceGroupName s result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.ConfigurationClient", "Patch", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/consumergroups.go b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/consumergroups.go index 487425dc35dc..f20d246d04cb 100644 --- a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/consumergroups.go +++ b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/consumergroups.go @@ -92,6 +92,7 @@ func (client ConsumerGroupsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.ConsumerGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -189,6 +190,7 @@ func (client ConsumerGroupsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.ConsumerGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -283,6 +285,7 @@ func (client ConsumerGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.ConsumerGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -390,6 +393,7 @@ func (client ConsumerGroupsClient) ListByEventHub(ctx context.Context, resourceG result.cglr, err = client.ListByEventHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.ConsumerGroupsClient", "ListByEventHub", resp, "Failure responding to request") + return } if result.cglr.hasNextLink() && result.cglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -461,6 +465,7 @@ func (client ConsumerGroupsClient) listByEventHubNextResults(ctx context.Context result, err = client.ListByEventHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.ConsumerGroupsClient", "listByEventHubNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/disasterrecoveryconfigs.go b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/disasterrecoveryconfigs.go index 315e10a70b5c..d0fc8a54f750 100644 --- a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/disasterrecoveryconfigs.go +++ b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/disasterrecoveryconfigs.go @@ -89,6 +89,7 @@ func (client DisasterRecoveryConfigsClient) BreakPairing(ctx context.Context, re result, err = client.BreakPairingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.DisasterRecoveryConfigsClient", "BreakPairing", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client DisasterRecoveryConfigsClient) CheckNameAvailability(ctx context.Co result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.DisasterRecoveryConfigsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -269,6 +271,7 @@ func (client DisasterRecoveryConfigsClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.DisasterRecoveryConfigsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -361,6 +364,7 @@ func (client DisasterRecoveryConfigsClient) Delete(ctx context.Context, resource result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.DisasterRecoveryConfigsClient", "Delete", resp, "Failure responding to request") + return } return @@ -450,6 +454,7 @@ func (client DisasterRecoveryConfigsClient) FailOver(ctx context.Context, resour result, err = client.FailOverResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.DisasterRecoveryConfigsClient", "FailOver", resp, "Failure responding to request") + return } return @@ -539,6 +544,7 @@ func (client DisasterRecoveryConfigsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.DisasterRecoveryConfigsClient", "Get", resp, "Failure responding to request") + return } return @@ -632,6 +638,7 @@ func (client DisasterRecoveryConfigsClient) GetAuthorizationRule(ctx context.Con result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.DisasterRecoveryConfigsClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -720,6 +727,7 @@ func (client DisasterRecoveryConfigsClient) List(ctx context.Context, resourceGr result.adrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.DisasterRecoveryConfigsClient", "List", resp, "Failure responding to request") + return } if result.adrlr.hasNextLink() && result.adrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -784,6 +792,7 @@ func (client DisasterRecoveryConfigsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.DisasterRecoveryConfigsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -850,6 +859,7 @@ func (client DisasterRecoveryConfigsClient) ListAuthorizationRules(ctx context.C result.arlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.DisasterRecoveryConfigsClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.arlr.hasNextLink() && result.arlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -915,6 +925,7 @@ func (client DisasterRecoveryConfigsClient) listAuthorizationRulesNextResults(ct result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.DisasterRecoveryConfigsClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -983,6 +994,7 @@ func (client DisasterRecoveryConfigsClient) ListKeys(ctx context.Context, resour result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.DisasterRecoveryConfigsClient", "ListKeys", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/eventhubs.go b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/eventhubs.go index 388dd3e04976..158f15092054 100644 --- a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/eventhubs.go +++ b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/eventhubs.go @@ -105,6 +105,7 @@ func (client EventHubsClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -205,6 +206,7 @@ func (client EventHubsClient) CreateOrUpdateAuthorizationRule(ctx context.Contex result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -298,6 +300,7 @@ func (client EventHubsClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "Delete", resp, "Failure responding to request") + return } return @@ -390,6 +393,7 @@ func (client EventHubsClient) DeleteAuthorizationRule(ctx context.Context, resou result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -480,6 +484,7 @@ func (client EventHubsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "Get", resp, "Failure responding to request") + return } return @@ -573,6 +578,7 @@ func (client EventHubsClient) GetAuthorizationRule(ctx context.Context, resource result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -665,6 +671,7 @@ func (client EventHubsClient) ListAuthorizationRules(ctx context.Context, resour result.arlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.arlr.hasNextLink() && result.arlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -730,6 +737,7 @@ func (client EventHubsClient) listAuthorizationRulesNextResults(ctx context.Cont result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -806,6 +814,7 @@ func (client EventHubsClient) ListByNamespace(ctx context.Context, resourceGroup result.lr, err = client.ListByNamespaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "ListByNamespace", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -876,6 +885,7 @@ func (client EventHubsClient) listByNamespaceNextResults(ctx context.Context, la result, err = client.ListByNamespaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "listByNamespaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -944,6 +954,7 @@ func (client EventHubsClient) ListKeys(ctx context.Context, resourceGroupName st result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -1039,6 +1050,7 @@ func (client EventHubsClient) RegenerateKeys(ctx context.Context, resourceGroupN result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.EventHubsClient", "RegenerateKeys", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/namespaces.go b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/namespaces.go index af695a39b4db..12655022297b 100644 --- a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/namespaces.go +++ b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/namespaces.go @@ -78,6 +78,7 @@ func (client NamespacesClient) CheckNameAvailability(ctx context.Context, parame result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -272,6 +273,7 @@ func (client NamespacesClient) CreateOrUpdateAuthorizationRule(ctx context.Conte result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -364,6 +366,7 @@ func (client NamespacesClient) CreateOrUpdateIPFilterRule(ctx context.Context, r result, err = client.CreateOrUpdateIPFilterRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "CreateOrUpdateIPFilterRule", resp, "Failure responding to request") + return } return @@ -453,6 +456,7 @@ func (client NamespacesClient) CreateOrUpdateNetworkRuleSet(ctx context.Context, result, err = client.CreateOrUpdateNetworkRuleSetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "CreateOrUpdateNetworkRuleSet", resp, "Failure responding to request") + return } return @@ -544,6 +548,7 @@ func (client NamespacesClient) CreateOrUpdateVirtualNetworkRule(ctx context.Cont result, err = client.CreateOrUpdateVirtualNetworkRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "CreateOrUpdateVirtualNetworkRule", resp, "Failure responding to request") + return } return @@ -719,6 +724,7 @@ func (client NamespacesClient) DeleteAuthorizationRule(ctx context.Context, reso result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -807,6 +813,7 @@ func (client NamespacesClient) DeleteIPFilterRule(ctx context.Context, resourceG result, err = client.DeleteIPFilterRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "DeleteIPFilterRule", resp, "Failure responding to request") + return } return @@ -895,6 +902,7 @@ func (client NamespacesClient) DeleteVirtualNetworkRule(ctx context.Context, res result, err = client.DeleteVirtualNetworkRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "DeleteVirtualNetworkRule", resp, "Failure responding to request") + return } return @@ -980,6 +988,7 @@ func (client NamespacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "Get", resp, "Failure responding to request") + return } return @@ -1068,6 +1077,7 @@ func (client NamespacesClient) GetAuthorizationRule(ctx context.Context, resourc result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -1157,6 +1167,7 @@ func (client NamespacesClient) GetIPFilterRule(ctx context.Context, resourceGrou result, err = client.GetIPFilterRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "GetIPFilterRule", resp, "Failure responding to request") + return } return @@ -1243,6 +1254,7 @@ func (client NamespacesClient) GetNetworkRuleSet(ctx context.Context, resourceGr result, err = client.GetNetworkRuleSetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "GetNetworkRuleSet", resp, "Failure responding to request") + return } return @@ -1331,6 +1343,7 @@ func (client NamespacesClient) GetVirtualNetworkRule(ctx context.Context, resour result, err = client.GetVirtualNetworkRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "GetVirtualNetworkRule", resp, "Failure responding to request") + return } return @@ -1405,6 +1418,7 @@ func (client NamespacesClient) List(ctx context.Context) (result EHNamespaceList result.enlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "List", resp, "Failure responding to request") + return } if result.enlr.hasNextLink() && result.enlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1467,6 +1481,7 @@ func (client NamespacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1529,6 +1544,7 @@ func (client NamespacesClient) ListAuthorizationRules(ctx context.Context, resou result.arlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.arlr.hasNextLink() && result.arlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1593,6 +1609,7 @@ func (client NamespacesClient) listAuthorizationRulesNextResults(ctx context.Con result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1651,6 +1668,7 @@ func (client NamespacesClient) ListByResourceGroup(ctx context.Context, resource result.enlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.enlr.hasNextLink() && result.enlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1714,6 +1732,7 @@ func (client NamespacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1776,6 +1795,7 @@ func (client NamespacesClient) ListIPFilterRules(ctx context.Context, resourceGr result.ifrlr, err = client.ListIPFilterRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "ListIPFilterRules", resp, "Failure responding to request") + return } if result.ifrlr.hasNextLink() && result.ifrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1840,6 +1860,7 @@ func (client NamespacesClient) listIPFilterRulesNextResults(ctx context.Context, result, err = client.ListIPFilterRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "listIPFilterRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1904,6 +1925,7 @@ func (client NamespacesClient) ListKeys(ctx context.Context, resourceGroupName s result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -1991,6 +2013,7 @@ func (client NamespacesClient) ListVirtualNetworkRules(ctx context.Context, reso result.vnrlr, err = client.ListVirtualNetworkRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "ListVirtualNetworkRules", resp, "Failure responding to request") + return } if result.vnrlr.hasNextLink() && result.vnrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2055,6 +2078,7 @@ func (client NamespacesClient) listVirtualNetworkRulesNextResults(ctx context.Co result, err = client.ListVirtualNetworkRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "listVirtualNetworkRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2120,6 +2144,7 @@ func (client NamespacesClient) RegenerateKeys(ctx context.Context, resourceGroup result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "RegenerateKeys", resp, "Failure responding to request") + return } return @@ -2210,6 +2235,7 @@ func (client NamespacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/operations.go b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/operations.go index 465600c1563f..d662aa3fc7be 100644 --- a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/operations.go +++ b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/privateendpointconnections.go b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/privateendpointconnections.go index 961c325faac3..fe2d8568766b 100644 --- a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/privateendpointconnections.go +++ b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/privateendpointconnections.go @@ -86,6 +86,7 @@ func (client PrivateEndpointConnectionsClient) CreateOrUpdate(ctx context.Contex result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.PrivateEndpointConnectionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -261,6 +262,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +350,7 @@ func (client PrivateEndpointConnectionsClient) List(ctx context.Context, resourc result.peclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.PrivateEndpointConnectionsClient", "List", resp, "Failure responding to request") + return } if result.peclr.hasNextLink() && result.peclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -412,6 +415,7 @@ func (client PrivateEndpointConnectionsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.PrivateEndpointConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/privatelinkresources.go b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/privatelinkresources.go index cf95cfb0c611..eadd32578444 100644 --- a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/privatelinkresources.go +++ b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/privatelinkresources.go @@ -84,6 +84,7 @@ func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.PrivateLinkResourcesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/regions.go b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/regions.go index acde9507053e..443f665246cb 100644 --- a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/regions.go +++ b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/regions.go @@ -80,6 +80,7 @@ func (client RegionsClient) ListBySku(ctx context.Context, sku string) (result M result.mrlr, err = client.ListBySkuResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.RegionsClient", "ListBySku", resp, "Failure responding to request") + return } if result.mrlr.hasNextLink() && result.mrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client RegionsClient) listBySkuNextResults(ctx context.Context, lastResult result, err = client.ListBySkuResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.RegionsClient", "listBySkuNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/client.go b/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/client.go index b67544b0e877..d19b3a9da363 100644 --- a/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/client.go +++ b/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/client.go @@ -92,6 +92,7 @@ func (client BaseClient) CheckFrontDoorNameAvailability(ctx context.Context, che result, err = client.CheckFrontDoorNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.BaseClient", "CheckFrontDoorNameAvailability", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client BaseClient) CheckFrontDoorNameAvailabilityWithSubscription(ctx cont result, err = client.CheckFrontDoorNameAvailabilityWithSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.BaseClient", "CheckFrontDoorNameAvailabilityWithSubscription", resp, "Failure responding to request") + return } return diff --git a/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/frontdoors.go b/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/frontdoors.go index bb34963f322d..6b22e09f9467 100644 --- a/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/frontdoors.go +++ b/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/frontdoors.go @@ -261,6 +261,7 @@ func (client FrontDoorsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "Get", resp, "Failure responding to request") + return } return @@ -334,6 +335,7 @@ func (client FrontDoorsClient) List(ctx context.Context) (result ListResultPage, result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -396,6 +398,7 @@ func (client FrontDoorsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -455,6 +458,7 @@ func (client FrontDoorsClient) ListByResourceGroup(ctx context.Context, resource result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +522,7 @@ func (client FrontDoorsClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -585,6 +590,7 @@ func (client FrontDoorsClient) ValidateCustomDomain(ctx context.Context, resourc result, err = client.ValidateCustomDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ValidateCustomDomain", resp, "Failure responding to request") + return } return diff --git a/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/frontendendpoints.go b/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/frontendendpoints.go index beb31b00f5b4..00a45cb09413 100644 --- a/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/frontendendpoints.go +++ b/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/frontendendpoints.go @@ -278,6 +278,7 @@ func (client FrontendEndpointsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -367,6 +368,7 @@ func (client FrontendEndpointsClient) ListByFrontDoor(ctx context.Context, resou result.felr, err = client.ListByFrontDoorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "ListByFrontDoor", resp, "Failure responding to request") + return } if result.felr.hasNextLink() && result.felr.IsEmpty() { err = result.NextWithContext(ctx) @@ -431,6 +433,7 @@ func (client FrontendEndpointsClient) listByFrontDoorNextResults(ctx context.Con result, err = client.ListByFrontDoorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "listByFrontDoorNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/policies.go b/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/policies.go index 5f0dca302966..78307ae173f1 100644 --- a/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/policies.go +++ b/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/policies.go @@ -80,6 +80,7 @@ func (client PoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -243,6 +244,7 @@ func (client PoliciesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +320,7 @@ func (client PoliciesClient) List(ctx context.Context, resourceGroupName string) result.wafplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "List", resp, "Failure responding to request") + return } if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +384,7 @@ func (client PoliciesClient) listNextResults(ctx context.Context, lastResults We result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/hanainstances.go b/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/hanainstances.go index 49b5cb7feb57..b5b771054d8b 100644 --- a/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/hanainstances.go +++ b/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/hanainstances.go @@ -224,6 +224,7 @@ func (client HanaInstancesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hanaonazure.HanaInstancesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client HanaInstancesClient) List(ctx context.Context) (result HanaInstance result.hilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hanaonazure.HanaInstancesClient", "List", resp, "Failure responding to request") + return } if result.hilr.hasNextLink() && result.hilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client HanaInstancesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hanaonazure.HanaInstancesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client HanaInstancesClient) ListByResourceGroup(ctx context.Context, resou result.hilr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hanaonazure.HanaInstancesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.hilr.hasNextLink() && result.hilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +479,7 @@ func (client HanaInstancesClient) listByResourceGroupNextResults(ctx context.Con result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hanaonazure.HanaInstancesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +755,7 @@ func (client HanaInstancesClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hanaonazure.HanaInstancesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/operations.go b/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/operations.go index 04f9901d3148..e1f4487be759 100644 --- a/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/operations.go +++ b/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationList, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hanaonazure.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/sapmonitors.go b/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/sapmonitors.go index ddf2a16dbb6a..c83e24e03805 100644 --- a/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/sapmonitors.go +++ b/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/sapmonitors.go @@ -224,6 +224,7 @@ func (client SapMonitorsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hanaonazure.SapMonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client SapMonitorsClient) List(ctx context.Context) (result SapMonitorList result.smlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hanaonazure.SapMonitorsClient", "List", resp, "Failure responding to request") + return } if result.smlr.hasNextLink() && result.smlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +362,7 @@ func (client SapMonitorsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hanaonazure.SapMonitorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client SapMonitorsClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hanaonazure.SapMonitorsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/hardwaresecuritymodules/mgmt/2018-10-31-preview/hardwaresecuritymodules/dedicatedhsm.go b/services/preview/hardwaresecuritymodules/mgmt/2018-10-31-preview/hardwaresecuritymodules/dedicatedhsm.go index 9fc007b2bb69..903c33766e2b 100644 --- a/services/preview/hardwaresecuritymodules/mgmt/2018-10-31-preview/hardwaresecuritymodules/dedicatedhsm.go +++ b/services/preview/hardwaresecuritymodules/mgmt/2018-10-31-preview/hardwaresecuritymodules/dedicatedhsm.go @@ -234,6 +234,7 @@ func (client DedicatedHsmClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hardwaresecuritymodules.DedicatedHsmClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client DedicatedHsmClient) ListByResourceGroup(ctx context.Context, resour result.dhlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hardwaresecuritymodules.DedicatedHsmClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dhlr.hasNextLink() && result.dhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +379,7 @@ func (client DedicatedHsmClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hardwaresecuritymodules.DedicatedHsmClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -428,6 +431,7 @@ func (client DedicatedHsmClient) ListBySubscription(ctx context.Context, top *in result.dhlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hardwaresecuritymodules.DedicatedHsmClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.dhlr.hasNextLink() && result.dhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -493,6 +497,7 @@ func (client DedicatedHsmClient) listBySubscriptionNextResults(ctx context.Conte result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hardwaresecuritymodules.DedicatedHsmClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/hardwaresecuritymodules/mgmt/2018-10-31-preview/hardwaresecuritymodules/operations.go b/services/preview/hardwaresecuritymodules/mgmt/2018-10-31-preview/hardwaresecuritymodules/operations.go index b91c7604dc35..a95f313ed7c1 100644 --- a/services/preview/hardwaresecuritymodules/mgmt/2018-10-31-preview/hardwaresecuritymodules/operations.go +++ b/services/preview/hardwaresecuritymodules/mgmt/2018-10-31-preview/hardwaresecuritymodules/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result DedicatedHsmOpe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hardwaresecuritymodules.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/hdinsight/2018-11-01-preview/hdinsight/job.go b/services/preview/hdinsight/2018-11-01-preview/hdinsight/job.go index 2e6b973b8cc8..5455ea162a2a 100644 --- a/services/preview/hdinsight/2018-11-01-preview/hdinsight/job.go +++ b/services/preview/hdinsight/2018-11-01-preview/hdinsight/job.go @@ -68,6 +68,7 @@ func (client JobClient) DeleteSparkBatch(ctx context.Context, batchID int32, req result, err = client.DeleteSparkBatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.JobClient", "DeleteSparkBatch", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client JobClient) DeleteSparkSessionJob(ctx context.Context, sessionID int result, err = client.DeleteSparkSessionJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.JobClient", "DeleteSparkSessionJob", resp, "Failure responding to request") + return } return @@ -225,6 +227,7 @@ func (client JobClient) DeleteSparkStatementJob(ctx context.Context, sessionID i result, err = client.DeleteSparkStatementJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.JobClient", "DeleteSparkStatementJob", resp, "Failure responding to request") + return } return @@ -303,6 +306,7 @@ func (client JobClient) Get(ctx context.Context, jobID string) (result JobDetail result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.JobClient", "Get", resp, "Failure responding to request") + return } return @@ -379,6 +383,7 @@ func (client JobClient) GetAppState(ctx context.Context, appID string) (result A result, err = client.GetAppStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.JobClient", "GetAppState", resp, "Failure responding to request") + return } return @@ -449,6 +454,7 @@ func (client JobClient) GetSparkBatchJob(ctx context.Context, batchID int32) (re result, err = client.GetSparkBatchJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.JobClient", "GetSparkBatchJob", resp, "Failure responding to request") + return } return @@ -522,6 +528,7 @@ func (client JobClient) GetSparkBatchLog(ctx context.Context, batchID int32, fro result, err = client.GetSparkBatchLogResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.JobClient", "GetSparkBatchLog", resp, "Failure responding to request") + return } return @@ -601,6 +608,7 @@ func (client JobClient) GetSparkBatchState(ctx context.Context, batchID int32) ( result, err = client.GetSparkBatchStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.JobClient", "GetSparkBatchState", resp, "Failure responding to request") + return } return @@ -671,6 +679,7 @@ func (client JobClient) GetSparkSessionJob(ctx context.Context, sessionID int32) result, err = client.GetSparkSessionJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.JobClient", "GetSparkSessionJob", resp, "Failure responding to request") + return } return @@ -744,6 +753,7 @@ func (client JobClient) GetSparkSessionLog(ctx context.Context, sessionID int32, result, err = client.GetSparkSessionLogResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.JobClient", "GetSparkSessionLog", resp, "Failure responding to request") + return } return @@ -823,6 +833,7 @@ func (client JobClient) GetSparkSessionState(ctx context.Context, sessionID int3 result, err = client.GetSparkSessionStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.JobClient", "GetSparkSessionState", resp, "Failure responding to request") + return } return @@ -894,6 +905,7 @@ func (client JobClient) GetSparkStatementJob(ctx context.Context, sessionID int3 result, err = client.GetSparkStatementJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.JobClient", "GetSparkStatementJob", resp, "Failure responding to request") + return } return @@ -971,6 +983,7 @@ func (client JobClient) Kill(ctx context.Context, jobID string) (result JobDetai result, err = client.KillResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.JobClient", "Kill", resp, "Failure responding to request") + return } return @@ -1044,6 +1057,7 @@ func (client JobClient) List(ctx context.Context) (result ListJobListJSONObject, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.JobClient", "List", resp, "Failure responding to request") + return } return @@ -1125,6 +1139,7 @@ func (client JobClient) ListAfterJobID(ctx context.Context, jobid string, numrec result, err = client.ListAfterJobIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.JobClient", "ListAfterJobID", resp, "Failure responding to request") + return } return @@ -1206,6 +1221,7 @@ func (client JobClient) ListSparkBatchJob(ctx context.Context, from *int32, size result, err = client.ListSparkBatchJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.JobClient", "ListSparkBatchJob", resp, "Failure responding to request") + return } return @@ -1283,6 +1299,7 @@ func (client JobClient) ListSparkSessionJob(ctx context.Context, from *int32, si result, err = client.ListSparkSessionJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.JobClient", "ListSparkSessionJob", resp, "Failure responding to request") + return } return @@ -1358,6 +1375,7 @@ func (client JobClient) ListSparkStatementJob(ctx context.Context, sessionID int result, err = client.ListSparkStatementJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.JobClient", "ListSparkStatementJob", resp, "Failure responding to request") + return } return @@ -1428,6 +1446,7 @@ func (client JobClient) SubmitHiveJob(ctx context.Context, content io.ReadCloser result, err = client.SubmitHiveJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.JobClient", "SubmitHiveJob", resp, "Failure responding to request") + return } return @@ -1501,6 +1520,7 @@ func (client JobClient) SubmitMapReduceJob(ctx context.Context, content io.ReadC result, err = client.SubmitMapReduceJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.JobClient", "SubmitMapReduceJob", resp, "Failure responding to request") + return } return @@ -1574,6 +1594,7 @@ func (client JobClient) SubmitMapReduceStreamingJob(ctx context.Context, content result, err = client.SubmitMapReduceStreamingJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.JobClient", "SubmitMapReduceStreamingJob", resp, "Failure responding to request") + return } return @@ -1647,6 +1668,7 @@ func (client JobClient) SubmitPigJob(ctx context.Context, content io.ReadCloser) result, err = client.SubmitPigJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.JobClient", "SubmitPigJob", resp, "Failure responding to request") + return } return @@ -1721,6 +1743,7 @@ func (client JobClient) SubmitSparkBatchJob(ctx context.Context, sparkBatchJobRe result, err = client.SubmitSparkBatchJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.JobClient", "SubmitSparkBatchJob", resp, "Failure responding to request") + return } return @@ -1797,6 +1820,7 @@ func (client JobClient) SubmitSparkSessionJob(ctx context.Context, sparkSessionJ result, err = client.SubmitSparkSessionJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.JobClient", "SubmitSparkSessionJob", resp, "Failure responding to request") + return } return @@ -1874,6 +1898,7 @@ func (client JobClient) SubmitSparkStatementJob(ctx context.Context, sessionID i result, err = client.SubmitSparkStatementJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.JobClient", "SubmitSparkStatementJob", resp, "Failure responding to request") + return } return @@ -1953,6 +1978,7 @@ func (client JobClient) SubmitSqoopJob(ctx context.Context, content io.ReadClose result, err = client.SubmitSqoopJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.JobClient", "SubmitSqoopJob", resp, "Failure responding to request") + return } return diff --git a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/applications.go b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/applications.go index a5d68d6163d9..a1de250d9fcd 100644 --- a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/applications.go +++ b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/applications.go @@ -229,6 +229,7 @@ func (client ApplicationsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ApplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client ApplicationsClient) List(ctx context.Context, resourceGroupName str result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ApplicationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client ApplicationsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ApplicationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/clusters.go b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/clusters.go index 3ee5ab40524d..7c7b792ebb86 100644 --- a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/clusters.go +++ b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/clusters.go @@ -308,6 +308,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -383,6 +384,7 @@ func (client ClustersClient) GetGatewaySettings(ctx context.Context, resourceGro result, err = client.GetGatewaySettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ClustersClient", "GetGatewaySettings", resp, "Failure responding to request") + return } return @@ -456,6 +458,7 @@ func (client ClustersClient) List(ctx context.Context) (result ClusterListResult result.clr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ClustersClient", "List", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +521,7 @@ func (client ClustersClient) listNextResults(ctx context.Context, lastResults Cl result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -569,6 +573,7 @@ func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGr result.clr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -632,6 +637,7 @@ func (client ClustersClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -839,6 +845,7 @@ func (client ClustersClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ClustersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/configurations.go b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/configurations.go index 710c2ad64693..982b1d6da514 100644 --- a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/configurations.go +++ b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/configurations.go @@ -75,6 +75,7 @@ func (client ConfigurationsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ConfigurationsClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ConfigurationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/extension.go b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/extension.go index bd7d044e79a5..732919ae80af 100644 --- a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/extension.go +++ b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/extension.go @@ -74,6 +74,7 @@ func (client ExtensionClient) Create(ctx context.Context, resourceGroupName stri result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ExtensionClient", "Create", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client ExtensionClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ExtensionClient", "Delete", resp, "Failure responding to request") + return } return @@ -379,6 +381,7 @@ func (client ExtensionClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ExtensionClient", "Get", resp, "Failure responding to request") + return } return @@ -455,6 +458,7 @@ func (client ExtensionClient) GetMonitoringStatus(ctx context.Context, resourceG result, err = client.GetMonitoringStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ExtensionClient", "GetMonitoringStatus", resp, "Failure responding to request") + return } return diff --git a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/locations.go b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/locations.go index 2bbd918b012f..5344e6e0a019 100644 --- a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/locations.go +++ b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/locations.go @@ -71,6 +71,7 @@ func (client LocationsClient) GetCapabilities(ctx context.Context, location stri result, err = client.GetCapabilitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.LocationsClient", "GetCapabilities", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client LocationsClient) ListBillingSpecs(ctx context.Context, location str result, err = client.ListBillingSpecsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.LocationsClient", "ListBillingSpecs", resp, "Failure responding to request") + return } return @@ -217,6 +219,7 @@ func (client LocationsClient) ListUsages(ctx context.Context, location string) ( result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.LocationsClient", "ListUsages", resp, "Failure responding to request") + return } return diff --git a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/operations.go b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/operations.go index d8b5ffffde37..32aade24722c 100644 --- a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/operations.go +++ b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/scriptactions.go b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/scriptactions.go index 72731f832c82..dfe8541b6a3e 100644 --- a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/scriptactions.go +++ b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/scriptactions.go @@ -73,6 +73,7 @@ func (client ScriptActionsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ScriptActionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client ScriptActionsClient) GetExecutionDetail(ctx context.Context, resour result, err = client.GetExecutionDetailResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ScriptActionsClient", "GetExecutionDetail", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client ScriptActionsClient) ListPersistedScripts(ctx context.Context, reso result.sal, err = client.ListPersistedScriptsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ScriptActionsClient", "ListPersistedScripts", resp, "Failure responding to request") + return } if result.sal.hasNextLink() && result.sal.IsEmpty() { err = result.NextWithContext(ctx) @@ -290,6 +293,7 @@ func (client ScriptActionsClient) listPersistedScriptsNextResults(ctx context.Co result, err = client.ListPersistedScriptsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ScriptActionsClient", "listPersistedScriptsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/scriptexecutionhistory.go b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/scriptexecutionhistory.go index c2270580a187..d7d682af1fba 100644 --- a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/scriptexecutionhistory.go +++ b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/scriptexecutionhistory.go @@ -74,6 +74,7 @@ func (client ScriptExecutionHistoryClient) List(ctx context.Context, resourceGro result.saehl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ScriptExecutionHistoryClient", "List", resp, "Failure responding to request") + return } if result.saehl.hasNextLink() && result.saehl.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client ScriptExecutionHistoryClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ScriptExecutionHistoryClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -190,6 +192,7 @@ func (client ScriptExecutionHistoryClient) Promote(ctx context.Context, resource result, err = client.PromoteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ScriptExecutionHistoryClient", "Promote", resp, "Failure responding to request") + return } return diff --git a/services/preview/healthcareapis/mgmt/2018-08-20-preview/healthcareapis/operationresults.go b/services/preview/healthcareapis/mgmt/2018-08-20-preview/healthcareapis/operationresults.go index 0d2335922bf9..86ac1e110e1e 100644 --- a/services/preview/healthcareapis/mgmt/2018-08-20-preview/healthcareapis/operationresults.go +++ b/services/preview/healthcareapis/mgmt/2018-08-20-preview/healthcareapis/operationresults.go @@ -73,6 +73,7 @@ func (client OperationResultsClient) Get(ctx context.Context, locationName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.OperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/healthcareapis/mgmt/2018-08-20-preview/healthcareapis/operations.go b/services/preview/healthcareapis/mgmt/2018-08-20-preview/healthcareapis/operations.go index 8c53899fbc03..6e845f2f473f 100644 --- a/services/preview/healthcareapis/mgmt/2018-08-20-preview/healthcareapis/operations.go +++ b/services/preview/healthcareapis/mgmt/2018-08-20-preview/healthcareapis/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/healthcareapis/mgmt/2018-08-20-preview/healthcareapis/services.go b/services/preview/healthcareapis/mgmt/2018-08-20-preview/healthcareapis/services.go index 299710fb1a35..1b2bd4227314 100644 --- a/services/preview/healthcareapis/mgmt/2018-08-20-preview/healthcareapis/services.go +++ b/services/preview/healthcareapis/mgmt/2018-08-20-preview/healthcareapis/services.go @@ -80,6 +80,7 @@ func (client ServicesClient) CheckNameAvailability(ctx context.Context, checkNam result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.ServicesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -355,6 +356,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -428,6 +430,7 @@ func (client ServicesClient) List(ctx context.Context) (result ServicesDescripti result.sdlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.ServicesClient", "List", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -490,6 +493,7 @@ func (client ServicesClient) listNextResults(ctx context.Context, lastResults Se result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.ServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -549,6 +553,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGr result.sdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -612,6 +617,7 @@ func (client ServicesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.ServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/hybridkubernetes/mgmt/2020-01-01-preview/hybridkubernetes/connectedcluster.go b/services/preview/hybridkubernetes/mgmt/2020-01-01-preview/hybridkubernetes/connectedcluster.go index 06ed071ff2ac..cf43c2cde8d4 100644 --- a/services/preview/hybridkubernetes/mgmt/2020-01-01-preview/hybridkubernetes/connectedcluster.go +++ b/services/preview/hybridkubernetes/mgmt/2020-01-01-preview/hybridkubernetes/connectedcluster.go @@ -267,6 +267,7 @@ func (client ConnectedClusterClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridkubernetes.ConnectedClusterClient", "Get", resp, "Failure responding to request") + return } return @@ -352,6 +353,7 @@ func (client ConnectedClusterClient) ListByResourceGroup(ctx context.Context, re result.ccl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridkubernetes.ConnectedClusterClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ccl.hasNextLink() && result.ccl.IsEmpty() { err = result.NextWithContext(ctx) @@ -415,6 +417,7 @@ func (client ConnectedClusterClient) listByResourceGroupNextResults(ctx context. result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridkubernetes.ConnectedClusterClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -470,6 +473,7 @@ func (client ConnectedClusterClient) ListBySubscription(ctx context.Context) (re result.ccl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridkubernetes.ConnectedClusterClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ccl.hasNextLink() && result.ccl.IsEmpty() { err = result.NextWithContext(ctx) @@ -532,6 +536,7 @@ func (client ConnectedClusterClient) listBySubscriptionNextResults(ctx context.C result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridkubernetes.ConnectedClusterClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -602,6 +607,7 @@ func (client ConnectedClusterClient) ListClusterUserCredentials(ctx context.Cont result, err = client.ListClusterUserCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridkubernetes.ConnectedClusterClient", "ListClusterUserCredentials", resp, "Failure responding to request") + return } return @@ -696,6 +702,7 @@ func (client ConnectedClusterClient) Update(ctx context.Context, resourceGroupNa result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridkubernetes.ConnectedClusterClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/hybridkubernetes/mgmt/2020-01-01-preview/hybridkubernetes/operations.go b/services/preview/hybridkubernetes/mgmt/2020-01-01-preview/hybridkubernetes/operations.go index 15ef559f1c39..7be71d06c4cc 100644 --- a/services/preview/hybridkubernetes/mgmt/2020-01-01-preview/hybridkubernetes/operations.go +++ b/services/preview/hybridkubernetes/mgmt/2020-01-01-preview/hybridkubernetes/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) Get(ctx context.Context) (result OperationListPag result.ol, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridkubernetes.OperationsClient", "Get", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) getNextResults(ctx context.Context, lastResults O result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridkubernetes.OperationsClient", "getNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/devices.go b/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/devices.go index c59b5c14d436..25df5cdec45e 100644 --- a/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/devices.go +++ b/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/devices.go @@ -255,6 +255,7 @@ func (client DevicesClient) Get(ctx context.Context, resourceGroupName string, d result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.DevicesClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client DevicesClient) ListByResourceGroup(ctx context.Context, resourceGro result.dlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.DevicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -403,6 +405,7 @@ func (client DevicesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.DevicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -458,6 +461,7 @@ func (client DevicesClient) ListBySubscription(ctx context.Context) (result Devi result.dlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.DevicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -520,6 +524,7 @@ func (client DevicesClient) listBySubscriptionNextResults(ctx context.Context, l result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.DevicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -581,6 +586,7 @@ func (client DevicesClient) ListRegistrationKey(ctx context.Context, resourceGro result, err = client.ListRegistrationKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.DevicesClient", "ListRegistrationKey", resp, "Failure responding to request") + return } return @@ -667,6 +673,7 @@ func (client DevicesClient) UpdateTags(ctx context.Context, resourceGroupName st result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.DevicesClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/networkfunctions.go b/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/networkfunctions.go index 21d95ad0dacf..8a6cdc896e66 100644 --- a/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/networkfunctions.go +++ b/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/networkfunctions.go @@ -256,6 +256,7 @@ func (client NetworkFunctionsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.NetworkFunctionsClient", "Get", resp, "Failure responding to request") + return } return @@ -341,6 +342,7 @@ func (client NetworkFunctionsClient) ListByResourceGroup(ctx context.Context, re result.nflr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.NetworkFunctionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.nflr.hasNextLink() && result.nflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -404,6 +406,7 @@ func (client NetworkFunctionsClient) listByResourceGroupNextResults(ctx context. result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.NetworkFunctionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -459,6 +462,7 @@ func (client NetworkFunctionsClient) ListBySubscription(ctx context.Context) (re result.nflr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.NetworkFunctionsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.nflr.hasNextLink() && result.nflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -521,6 +525,7 @@ func (client NetworkFunctionsClient) listBySubscriptionNextResults(ctx context.C result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.NetworkFunctionsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -583,6 +588,7 @@ func (client NetworkFunctionsClient) UpdateTags(ctx context.Context, resourceGro result, err = client.UpdateTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.NetworkFunctionsClient", "UpdateTags", resp, "Failure responding to request") + return } return diff --git a/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/networkfunctionvendors.go b/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/networkfunctionvendors.go index ee9fb921ce8f..4c62e1bf25a9 100644 --- a/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/networkfunctionvendors.go +++ b/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/networkfunctionvendors.go @@ -78,6 +78,7 @@ func (client NetworkFunctionVendorsClient) List(ctx context.Context) (result Net result.nfvlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.NetworkFunctionVendorsClient", "List", resp, "Failure responding to request") + return } if result.nfvlr.hasNextLink() && result.nfvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -140,6 +141,7 @@ func (client NetworkFunctionVendorsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.NetworkFunctionVendorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/networkfunctionvendorskus.go b/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/networkfunctionvendorskus.go index 70c475f9e71b..b3841260de9c 100644 --- a/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/networkfunctionvendorskus.go +++ b/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/networkfunctionvendorskus.go @@ -82,6 +82,7 @@ func (client NetworkFunctionVendorSkusClient) ListBySku(ctx context.Context, ven result.nfsd, err = client.ListBySkuResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.NetworkFunctionVendorSkusClient", "ListBySku", resp, "Failure responding to request") + return } if result.nfsd.hasNextLink() && result.nfsd.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client NetworkFunctionVendorSkusClient) listBySkuNextResults(ctx context.C result, err = client.ListBySkuResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.NetworkFunctionVendorSkusClient", "listBySkuNextResults", resp, "Failure responding to next results request") + return } return } @@ -203,6 +205,7 @@ func (client NetworkFunctionVendorSkusClient) ListByVendor(ctx context.Context, result.nfslr, err = client.ListByVendorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.NetworkFunctionVendorSkusClient", "ListByVendor", resp, "Failure responding to request") + return } if result.nfslr.hasNextLink() && result.nfslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -266,6 +269,7 @@ func (client NetworkFunctionVendorSkusClient) listByVendorNextResults(ctx contex result, err = client.ListByVendorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.NetworkFunctionVendorSkusClient", "listByVendorNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/operations.go b/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/operations.go index 62aeaed70e06..87247659d60f 100644 --- a/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/operations.go +++ b/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListPa result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/roleinstances.go b/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/roleinstances.go index b98c7b6adce8..ee53f391e5b6 100644 --- a/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/roleinstances.go +++ b/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/roleinstances.go @@ -81,6 +81,7 @@ func (client RoleInstancesClient) Get(ctx context.Context, locationName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.RoleInstancesClient", "Get", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client RoleInstancesClient) List(ctx context.Context, locationName string, result.nfrilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.RoleInstancesClient", "List", resp, "Failure responding to request") + return } if result.nfrilr.hasNextLink() && result.nfrilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -231,6 +233,7 @@ func (client RoleInstancesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.RoleInstancesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/vendornetworkfunctions.go b/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/vendornetworkfunctions.go index 6560a7b27845..9d0789c7d317 100644 --- a/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/vendornetworkfunctions.go +++ b/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/vendornetworkfunctions.go @@ -167,6 +167,7 @@ func (client VendorNetworkFunctionsClient) Get(ctx context.Context, locationName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.VendorNetworkFunctionsClient", "Get", resp, "Failure responding to request") + return } return @@ -253,6 +254,7 @@ func (client VendorNetworkFunctionsClient) List(ctx context.Context, locationNam result.vnflr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.VendorNetworkFunctionsClient", "List", resp, "Failure responding to request") + return } if result.vnflr.hasNextLink() && result.vnflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -320,6 +322,7 @@ func (client VendorNetworkFunctionsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.VendorNetworkFunctionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/vendors.go b/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/vendors.go index 5ee0f34e1c66..cc3bb1db18a5 100644 --- a/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/vendors.go +++ b/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/vendors.go @@ -241,6 +241,7 @@ func (client VendorsClient) Get(ctx context.Context, vendorName string) (result result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.VendorsClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +320,7 @@ func (client VendorsClient) ListBySubscription(ctx context.Context) (result Vend result.vlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.VendorsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.vlr.hasNextLink() && result.vlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client VendorsClient) listBySubscriptionNextResults(ctx context.Context, l result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.VendorsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/vendorskupreview.go b/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/vendorskupreview.go index 08d5ccb700a1..f8b8ca421f54 100644 --- a/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/vendorskupreview.go +++ b/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/vendorskupreview.go @@ -252,6 +252,7 @@ func (client VendorSkuPreviewClient) Get(ctx context.Context, vendorName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.VendorSkuPreviewClient", "Get", resp, "Failure responding to request") + return } return @@ -335,6 +336,7 @@ func (client VendorSkuPreviewClient) List(ctx context.Context, vendorName string result.psl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.VendorSkuPreviewClient", "List", resp, "Failure responding to request") + return } if result.psl.hasNextLink() && result.psl.IsEmpty() { err = result.NextWithContext(ctx) @@ -399,6 +401,7 @@ func (client VendorSkuPreviewClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.VendorSkuPreviewClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/vendorskus.go b/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/vendorskus.go index c2a0187b4d5c..d795631916f7 100644 --- a/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/vendorskus.go +++ b/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/vendorskus.go @@ -243,6 +243,7 @@ func (client VendorSkusClient) Get(ctx context.Context, vendorName string, skuNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.VendorSkusClient", "Get", resp, "Failure responding to request") + return } return @@ -324,6 +325,7 @@ func (client VendorSkusClient) List(ctx context.Context, vendorName string) (res result.vslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.VendorSkusClient", "List", resp, "Failure responding to request") + return } if result.vslr.hasNextLink() && result.vslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +389,7 @@ func (client VendorSkusClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "hybridnetwork.VendorSkusClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/iothub/mgmt/2018-12-01-preview/devices/certificates.go b/services/preview/iothub/mgmt/2018-12-01-preview/devices/certificates.go index 0fc395695b70..0bb7e379476e 100644 --- a/services/preview/iothub/mgmt/2018-12-01-preview/devices/certificates.go +++ b/services/preview/iothub/mgmt/2018-12-01-preview/devices/certificates.go @@ -83,6 +83,7 @@ func (client CertificatesClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client CertificatesClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "Delete", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client CertificatesClient) GenerateVerificationCode(ctx context.Context, r result, err = client.GenerateVerificationCodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "GenerateVerificationCode", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client CertificatesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "Get", resp, "Failure responding to request") + return } return @@ -418,6 +422,7 @@ func (client CertificatesClient) ListByIotHub(ctx context.Context, resourceGroup result, err = client.ListByIotHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "ListByIotHub", resp, "Failure responding to request") + return } return @@ -503,6 +508,7 @@ func (client CertificatesClient) Verify(ctx context.Context, resourceGroupName s result, err = client.VerifyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "Verify", resp, "Failure responding to request") + return } return diff --git a/services/preview/iothub/mgmt/2018-12-01-preview/devices/iothubresource.go b/services/preview/iothub/mgmt/2018-12-01-preview/devices/iothubresource.go index 14fc6d3d3cc9..841e95a1be73 100644 --- a/services/preview/iothub/mgmt/2018-12-01-preview/devices/iothubresource.go +++ b/services/preview/iothub/mgmt/2018-12-01-preview/devices/iothubresource.go @@ -79,6 +79,7 @@ func (client IotHubResourceClient) CheckNameAvailability(ctx context.Context, op result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client IotHubResourceClient) CreateEventHubConsumerGroup(ctx context.Conte result, err = client.CreateEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "CreateEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -426,6 +428,7 @@ func (client IotHubResourceClient) DeleteEventHubConsumerGroup(ctx context.Conte result, err = client.DeleteEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "DeleteEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -512,6 +515,7 @@ func (client IotHubResourceClient) ExportDevices(ctx context.Context, resourceGr result, err = client.ExportDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ExportDevices", resp, "Failure responding to request") + return } return @@ -589,6 +593,7 @@ func (client IotHubResourceClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "Get", resp, "Failure responding to request") + return } return @@ -662,6 +667,7 @@ func (client IotHubResourceClient) GetEndpointHealth(ctx context.Context, resour result.ehdlr, err = client.GetEndpointHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetEndpointHealth", resp, "Failure responding to request") + return } if result.ehdlr.hasNextLink() && result.ehdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -726,6 +732,7 @@ func (client IotHubResourceClient) getEndpointHealthNextResults(ctx context.Cont result, err = client.GetEndpointHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "getEndpointHealthNextResults", resp, "Failure responding to next results request") + return } return } @@ -779,6 +786,7 @@ func (client IotHubResourceClient) GetEventHubConsumerGroup(ctx context.Context, result, err = client.GetEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -858,6 +866,7 @@ func (client IotHubResourceClient) GetJob(ctx context.Context, resourceGroupName result, err = client.GetJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetJob", resp, "Failure responding to request") + return } return @@ -936,6 +945,7 @@ func (client IotHubResourceClient) GetKeysForKeyName(ctx context.Context, resour result, err = client.GetKeysForKeyNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetKeysForKeyName", resp, "Failure responding to request") + return } return @@ -1013,6 +1023,7 @@ func (client IotHubResourceClient) GetQuotaMetrics(ctx context.Context, resource result.ihqmilr, err = client.GetQuotaMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetQuotaMetrics", resp, "Failure responding to request") + return } if result.ihqmilr.hasNextLink() && result.ihqmilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1077,6 +1088,7 @@ 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 } @@ -1128,6 +1140,7 @@ func (client IotHubResourceClient) GetStats(ctx context.Context, resourceGroupNa result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetStats", resp, "Failure responding to request") + return } return @@ -1204,6 +1217,7 @@ func (client IotHubResourceClient) GetValidSkus(ctx context.Context, resourceGro result.ihsdlr, err = client.GetValidSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetValidSkus", resp, "Failure responding to request") + return } if result.ihsdlr.hasNextLink() && result.ihsdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1268,6 +1282,7 @@ 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 } @@ -1329,6 +1344,7 @@ func (client IotHubResourceClient) ImportDevices(ctx context.Context, resourceGr result, err = client.ImportDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ImportDevices", resp, "Failure responding to request") + return } return @@ -1406,6 +1422,7 @@ func (client IotHubResourceClient) ListByResourceGroup(ctx context.Context, reso result.ihdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ihdlr.hasNextLink() && result.ihdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1469,6 +1486,7 @@ 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 } @@ -1518,6 +1536,7 @@ func (client IotHubResourceClient) ListBySubscription(ctx context.Context) (resu result.ihdlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ihdlr.hasNextLink() && result.ihdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1580,6 +1599,7 @@ 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 } @@ -1634,6 +1654,7 @@ func (client IotHubResourceClient) ListEventHubConsumerGroups(ctx context.Contex result.ehcglr, err = client.ListEventHubConsumerGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListEventHubConsumerGroups", resp, "Failure responding to request") + return } if result.ehcglr.hasNextLink() && result.ehcglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1699,6 +1720,7 @@ 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 } @@ -1752,6 +1774,7 @@ func (client IotHubResourceClient) ListJobs(ctx context.Context, resourceGroupNa result.jrlr, err = client.ListJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListJobs", resp, "Failure responding to request") + return } if result.jrlr.hasNextLink() && result.jrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1816,6 +1839,7 @@ 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 } @@ -1869,6 +1893,7 @@ func (client IotHubResourceClient) ListKeys(ctx context.Context, resourceGroupNa result.sasarlr, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListKeys", resp, "Failure responding to request") + return } if result.sasarlr.hasNextLink() && result.sasarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1933,6 +1958,7 @@ 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 } @@ -1985,6 +2011,7 @@ func (client IotHubResourceClient) TestAllRoutes(ctx context.Context, input Test result, err = client.TestAllRoutesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "TestAllRoutes", resp, "Failure responding to request") + return } return @@ -2077,6 +2104,7 @@ func (client IotHubResourceClient) TestRoute(ctx context.Context, input TestRout result, err = client.TestRouteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "TestRoute", resp, "Failure responding to request") + return } return diff --git a/services/preview/iothub/mgmt/2018-12-01-preview/devices/operations.go b/services/preview/iothub/mgmt/2018-12-01-preview/devices/operations.go index 3d6ee4764a94..60b80b0fb9df 100644 --- a/services/preview/iothub/mgmt/2018-12-01-preview/devices/operations.go +++ b/services/preview/iothub/mgmt/2018-12-01-preview/devices/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ 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 } diff --git a/services/preview/iothub/mgmt/2018-12-01-preview/devices/resourceprovidercommon.go b/services/preview/iothub/mgmt/2018-12-01-preview/devices/resourceprovidercommon.go index 689162ff4582..019acfbef29c 100644 --- a/services/preview/iothub/mgmt/2018-12-01-preview/devices/resourceprovidercommon.go +++ b/services/preview/iothub/mgmt/2018-12-01-preview/devices/resourceprovidercommon.go @@ -70,6 +70,7 @@ func (client ResourceProviderCommonClient) GetSubscriptionQuota(ctx context.Cont result, err = client.GetSubscriptionQuotaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.ResourceProviderCommonClient", "GetSubscriptionQuota", resp, "Failure responding to request") + return } return diff --git a/services/preview/iothub/mgmt/2019-03-22-preview/devices/certificates.go b/services/preview/iothub/mgmt/2019-03-22-preview/devices/certificates.go index dcafcdb07c2c..3df7163b7737 100644 --- a/services/preview/iothub/mgmt/2019-03-22-preview/devices/certificates.go +++ b/services/preview/iothub/mgmt/2019-03-22-preview/devices/certificates.go @@ -83,6 +83,7 @@ func (client CertificatesClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client CertificatesClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "Delete", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client CertificatesClient) GenerateVerificationCode(ctx context.Context, r result, err = client.GenerateVerificationCodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "GenerateVerificationCode", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client CertificatesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "Get", resp, "Failure responding to request") + return } return @@ -418,6 +422,7 @@ func (client CertificatesClient) ListByIotHub(ctx context.Context, resourceGroup result, err = client.ListByIotHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "ListByIotHub", resp, "Failure responding to request") + return } return @@ -503,6 +508,7 @@ func (client CertificatesClient) Verify(ctx context.Context, resourceGroupName s result, err = client.VerifyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "Verify", resp, "Failure responding to request") + return } return diff --git a/services/preview/iothub/mgmt/2019-03-22-preview/devices/iothubresource.go b/services/preview/iothub/mgmt/2019-03-22-preview/devices/iothubresource.go index 342c09c0c9f5..65ae6e16c3ac 100644 --- a/services/preview/iothub/mgmt/2019-03-22-preview/devices/iothubresource.go +++ b/services/preview/iothub/mgmt/2019-03-22-preview/devices/iothubresource.go @@ -79,6 +79,7 @@ func (client IotHubResourceClient) CheckNameAvailability(ctx context.Context, op result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client IotHubResourceClient) CreateEventHubConsumerGroup(ctx context.Conte result, err = client.CreateEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "CreateEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -426,6 +428,7 @@ func (client IotHubResourceClient) DeleteEventHubConsumerGroup(ctx context.Conte result, err = client.DeleteEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "DeleteEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -512,6 +515,7 @@ func (client IotHubResourceClient) ExportDevices(ctx context.Context, resourceGr result, err = client.ExportDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ExportDevices", resp, "Failure responding to request") + return } return @@ -589,6 +593,7 @@ func (client IotHubResourceClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "Get", resp, "Failure responding to request") + return } return @@ -662,6 +667,7 @@ func (client IotHubResourceClient) GetEndpointHealth(ctx context.Context, resour result.ehdlr, err = client.GetEndpointHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetEndpointHealth", resp, "Failure responding to request") + return } if result.ehdlr.hasNextLink() && result.ehdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -726,6 +732,7 @@ func (client IotHubResourceClient) getEndpointHealthNextResults(ctx context.Cont result, err = client.GetEndpointHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "getEndpointHealthNextResults", resp, "Failure responding to next results request") + return } return } @@ -779,6 +786,7 @@ func (client IotHubResourceClient) GetEventHubConsumerGroup(ctx context.Context, result, err = client.GetEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -858,6 +866,7 @@ func (client IotHubResourceClient) GetJob(ctx context.Context, resourceGroupName result, err = client.GetJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetJob", resp, "Failure responding to request") + return } return @@ -936,6 +945,7 @@ func (client IotHubResourceClient) GetKeysForKeyName(ctx context.Context, resour result, err = client.GetKeysForKeyNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetKeysForKeyName", resp, "Failure responding to request") + return } return @@ -1013,6 +1023,7 @@ func (client IotHubResourceClient) GetQuotaMetrics(ctx context.Context, resource result.ihqmilr, err = client.GetQuotaMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetQuotaMetrics", resp, "Failure responding to request") + return } if result.ihqmilr.hasNextLink() && result.ihqmilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1077,6 +1088,7 @@ 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 } @@ -1128,6 +1140,7 @@ func (client IotHubResourceClient) GetStats(ctx context.Context, resourceGroupNa result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetStats", resp, "Failure responding to request") + return } return @@ -1204,6 +1217,7 @@ func (client IotHubResourceClient) GetValidSkus(ctx context.Context, resourceGro result.ihsdlr, err = client.GetValidSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetValidSkus", resp, "Failure responding to request") + return } if result.ihsdlr.hasNextLink() && result.ihsdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1268,6 +1282,7 @@ 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 } @@ -1329,6 +1344,7 @@ func (client IotHubResourceClient) ImportDevices(ctx context.Context, resourceGr result, err = client.ImportDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ImportDevices", resp, "Failure responding to request") + return } return @@ -1406,6 +1422,7 @@ func (client IotHubResourceClient) ListByResourceGroup(ctx context.Context, reso result.ihdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ihdlr.hasNextLink() && result.ihdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1469,6 +1486,7 @@ 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 } @@ -1518,6 +1536,7 @@ func (client IotHubResourceClient) ListBySubscription(ctx context.Context) (resu result.ihdlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ihdlr.hasNextLink() && result.ihdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1580,6 +1599,7 @@ 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 } @@ -1634,6 +1654,7 @@ func (client IotHubResourceClient) ListEventHubConsumerGroups(ctx context.Contex result.ehcglr, err = client.ListEventHubConsumerGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListEventHubConsumerGroups", resp, "Failure responding to request") + return } if result.ehcglr.hasNextLink() && result.ehcglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1699,6 +1720,7 @@ 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 } @@ -1752,6 +1774,7 @@ func (client IotHubResourceClient) ListJobs(ctx context.Context, resourceGroupNa result.jrlr, err = client.ListJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListJobs", resp, "Failure responding to request") + return } if result.jrlr.hasNextLink() && result.jrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1816,6 +1839,7 @@ 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 } @@ -1869,6 +1893,7 @@ func (client IotHubResourceClient) ListKeys(ctx context.Context, resourceGroupNa result.sasarlr, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListKeys", resp, "Failure responding to request") + return } if result.sasarlr.hasNextLink() && result.sasarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1933,6 +1958,7 @@ 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 } @@ -1985,6 +2011,7 @@ func (client IotHubResourceClient) TestAllRoutes(ctx context.Context, input Test result, err = client.TestAllRoutesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "TestAllRoutes", resp, "Failure responding to request") + return } return @@ -2077,6 +2104,7 @@ func (client IotHubResourceClient) TestRoute(ctx context.Context, input TestRout result, err = client.TestRouteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "TestRoute", resp, "Failure responding to request") + return } return diff --git a/services/preview/iothub/mgmt/2019-03-22-preview/devices/operations.go b/services/preview/iothub/mgmt/2019-03-22-preview/devices/operations.go index c72a78dca2fd..8cf4e7208de1 100644 --- a/services/preview/iothub/mgmt/2019-03-22-preview/devices/operations.go +++ b/services/preview/iothub/mgmt/2019-03-22-preview/devices/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ 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 } diff --git a/services/preview/iothub/mgmt/2019-03-22-preview/devices/resourceprovidercommon.go b/services/preview/iothub/mgmt/2019-03-22-preview/devices/resourceprovidercommon.go index f1d34a74b653..a794b65074f7 100644 --- a/services/preview/iothub/mgmt/2019-03-22-preview/devices/resourceprovidercommon.go +++ b/services/preview/iothub/mgmt/2019-03-22-preview/devices/resourceprovidercommon.go @@ -70,6 +70,7 @@ func (client ResourceProviderCommonClient) GetSubscriptionQuota(ctx context.Cont result, err = client.GetSubscriptionQuotaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.ResourceProviderCommonClient", "GetSubscriptionQuota", resp, "Failure responding to request") + return } return diff --git a/services/preview/iothub/mgmt/2019-07-01-preview/devices/certificates.go b/services/preview/iothub/mgmt/2019-07-01-preview/devices/certificates.go index f2fd13b9cb14..7d080f0f539c 100644 --- a/services/preview/iothub/mgmt/2019-07-01-preview/devices/certificates.go +++ b/services/preview/iothub/mgmt/2019-07-01-preview/devices/certificates.go @@ -83,6 +83,7 @@ func (client CertificatesClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client CertificatesClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "Delete", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client CertificatesClient) GenerateVerificationCode(ctx context.Context, r result, err = client.GenerateVerificationCodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "GenerateVerificationCode", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client CertificatesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "Get", resp, "Failure responding to request") + return } return @@ -418,6 +422,7 @@ func (client CertificatesClient) ListByIotHub(ctx context.Context, resourceGroup result, err = client.ListByIotHubResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "ListByIotHub", resp, "Failure responding to request") + return } return @@ -503,6 +508,7 @@ func (client CertificatesClient) Verify(ctx context.Context, resourceGroupName s result, err = client.VerifyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.CertificatesClient", "Verify", resp, "Failure responding to request") + return } return diff --git a/services/preview/iothub/mgmt/2019-07-01-preview/devices/iothubresource.go b/services/preview/iothub/mgmt/2019-07-01-preview/devices/iothubresource.go index 4d4fb695a57a..89b4bdbe4ded 100644 --- a/services/preview/iothub/mgmt/2019-07-01-preview/devices/iothubresource.go +++ b/services/preview/iothub/mgmt/2019-07-01-preview/devices/iothubresource.go @@ -79,6 +79,7 @@ func (client IotHubResourceClient) CheckNameAvailability(ctx context.Context, op result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client IotHubResourceClient) CreateEventHubConsumerGroup(ctx context.Conte result, err = client.CreateEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "CreateEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -426,6 +428,7 @@ func (client IotHubResourceClient) DeleteEventHubConsumerGroup(ctx context.Conte result, err = client.DeleteEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "DeleteEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -512,6 +515,7 @@ func (client IotHubResourceClient) ExportDevices(ctx context.Context, resourceGr result, err = client.ExportDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ExportDevices", resp, "Failure responding to request") + return } return @@ -589,6 +593,7 @@ func (client IotHubResourceClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "Get", resp, "Failure responding to request") + return } return @@ -662,6 +667,7 @@ func (client IotHubResourceClient) GetEndpointHealth(ctx context.Context, resour result.ehdlr, err = client.GetEndpointHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetEndpointHealth", resp, "Failure responding to request") + return } if result.ehdlr.hasNextLink() && result.ehdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -726,6 +732,7 @@ func (client IotHubResourceClient) getEndpointHealthNextResults(ctx context.Cont result, err = client.GetEndpointHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "getEndpointHealthNextResults", resp, "Failure responding to next results request") + return } return } @@ -779,6 +786,7 @@ func (client IotHubResourceClient) GetEventHubConsumerGroup(ctx context.Context, result, err = client.GetEventHubConsumerGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetEventHubConsumerGroup", resp, "Failure responding to request") + return } return @@ -858,6 +866,7 @@ func (client IotHubResourceClient) GetJob(ctx context.Context, resourceGroupName result, err = client.GetJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetJob", resp, "Failure responding to request") + return } return @@ -936,6 +945,7 @@ func (client IotHubResourceClient) GetKeysForKeyName(ctx context.Context, resour result, err = client.GetKeysForKeyNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetKeysForKeyName", resp, "Failure responding to request") + return } return @@ -1013,6 +1023,7 @@ func (client IotHubResourceClient) GetQuotaMetrics(ctx context.Context, resource result.ihqmilr, err = client.GetQuotaMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetQuotaMetrics", resp, "Failure responding to request") + return } if result.ihqmilr.hasNextLink() && result.ihqmilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1077,6 +1088,7 @@ 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 } @@ -1128,6 +1140,7 @@ func (client IotHubResourceClient) GetStats(ctx context.Context, resourceGroupNa result, err = client.GetStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetStats", resp, "Failure responding to request") + return } return @@ -1204,6 +1217,7 @@ func (client IotHubResourceClient) GetValidSkus(ctx context.Context, resourceGro result.ihsdlr, err = client.GetValidSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "GetValidSkus", resp, "Failure responding to request") + return } if result.ihsdlr.hasNextLink() && result.ihsdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1268,6 +1282,7 @@ 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 } @@ -1329,6 +1344,7 @@ func (client IotHubResourceClient) ImportDevices(ctx context.Context, resourceGr result, err = client.ImportDevicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ImportDevices", resp, "Failure responding to request") + return } return @@ -1406,6 +1422,7 @@ func (client IotHubResourceClient) ListByResourceGroup(ctx context.Context, reso result.ihdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ihdlr.hasNextLink() && result.ihdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1469,6 +1486,7 @@ 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 } @@ -1518,6 +1536,7 @@ func (client IotHubResourceClient) ListBySubscription(ctx context.Context) (resu result.ihdlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ihdlr.hasNextLink() && result.ihdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1580,6 +1599,7 @@ 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 } @@ -1634,6 +1654,7 @@ func (client IotHubResourceClient) ListEventHubConsumerGroups(ctx context.Contex result.ehcglr, err = client.ListEventHubConsumerGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListEventHubConsumerGroups", resp, "Failure responding to request") + return } if result.ehcglr.hasNextLink() && result.ehcglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1699,6 +1720,7 @@ 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 } @@ -1752,6 +1774,7 @@ func (client IotHubResourceClient) ListJobs(ctx context.Context, resourceGroupNa result.jrlr, err = client.ListJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListJobs", resp, "Failure responding to request") + return } if result.jrlr.hasNextLink() && result.jrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1816,6 +1839,7 @@ 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 } @@ -1869,6 +1893,7 @@ func (client IotHubResourceClient) ListKeys(ctx context.Context, resourceGroupNa result.sasarlr, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "ListKeys", resp, "Failure responding to request") + return } if result.sasarlr.hasNextLink() && result.sasarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1933,6 +1958,7 @@ 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 } @@ -1985,6 +2011,7 @@ func (client IotHubResourceClient) TestAllRoutes(ctx context.Context, input Test result, err = client.TestAllRoutesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "TestAllRoutes", resp, "Failure responding to request") + return } return @@ -2077,6 +2104,7 @@ func (client IotHubResourceClient) TestRoute(ctx context.Context, input TestRout result, err = client.TestRouteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "TestRoute", resp, "Failure responding to request") + return } return diff --git a/services/preview/iothub/mgmt/2019-07-01-preview/devices/operations.go b/services/preview/iothub/mgmt/2019-07-01-preview/devices/operations.go index 3a83838b9a49..038fca94820a 100644 --- a/services/preview/iothub/mgmt/2019-07-01-preview/devices/operations.go +++ b/services/preview/iothub/mgmt/2019-07-01-preview/devices/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ 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 } diff --git a/services/preview/iothub/mgmt/2019-07-01-preview/devices/resourceprovidercommon.go b/services/preview/iothub/mgmt/2019-07-01-preview/devices/resourceprovidercommon.go index 5774ba62c5f2..41b3811d6893 100644 --- a/services/preview/iothub/mgmt/2019-07-01-preview/devices/resourceprovidercommon.go +++ b/services/preview/iothub/mgmt/2019-07-01-preview/devices/resourceprovidercommon.go @@ -70,6 +70,7 @@ func (client ResourceProviderCommonClient) GetSubscriptionQuota(ctx context.Cont result, err = client.GetSubscriptionQuotaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.ResourceProviderCommonClient", "GetSubscriptionQuota", resp, "Failure responding to request") + return } return diff --git a/services/preview/iotspaces/mgmt/2017-10-01-preview/iotspaces/iotspaces.go b/services/preview/iotspaces/mgmt/2017-10-01-preview/iotspaces/iotspaces.go index f44fcdbe9f10..9752ff3abeaa 100644 --- a/services/preview/iotspaces/mgmt/2017-10-01-preview/iotspaces/iotspaces.go +++ b/services/preview/iotspaces/mgmt/2017-10-01-preview/iotspaces/iotspaces.go @@ -80,6 +80,7 @@ func (client Client) CheckNameAvailability(ctx context.Context, operationInputs result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iotspaces.Client", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -342,6 +343,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iotspaces.Client", "Get", resp, "Failure responding to request") + return } return @@ -415,6 +417,7 @@ func (client Client) List(ctx context.Context) (result DescriptionListResultPage result.dlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iotspaces.Client", "List", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +480,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults Descriptio result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iotspaces.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -535,6 +539,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.dlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iotspaces.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -598,6 +603,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iotspaces.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/iotspaces/mgmt/2017-10-01-preview/iotspaces/operations.go b/services/preview/iotspaces/mgmt/2017-10-01-preview/iotspaces/operations.go index 3d547581dde4..d3572d0b74d8 100644 --- a/services/preview/iotspaces/mgmt/2017-10-01-preview/iotspaces/operations.go +++ b/services/preview/iotspaces/mgmt/2017-10-01-preview/iotspaces/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iotspaces.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iotspaces.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/managedhsms.go b/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/managedhsms.go index c961872fa2d2..8c8b45bb31a3 100644 --- a/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/managedhsms.go +++ b/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/managedhsms.go @@ -225,6 +225,7 @@ func (client ManagedHsmsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.ManagedHsmsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client ManagedHsmsClient) ListByResourceGroup(ctx context.Context, resourc result.mhlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.ManagedHsmsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.mhlr.hasNextLink() && result.mhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client ManagedHsmsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.ManagedHsmsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -419,6 +422,7 @@ func (client ManagedHsmsClient) ListBySubscription(ctx context.Context, top *int result.mhlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.ManagedHsmsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.mhlr.hasNextLink() && result.mhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -484,6 +488,7 @@ func (client ManagedHsmsClient) listBySubscriptionNextResults(ctx context.Contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.ManagedHsmsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/operations.go b/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/operations.go index 1fdc72cba446..9efc875738b5 100644 --- a/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/operations.go +++ b/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/privateendpointconnections.go b/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/privateendpointconnections.go index 6c7ac235554c..f4b84d0e0aa5 100644 --- a/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/privateendpointconnections.go +++ b/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/privateendpointconnections.go @@ -165,6 +165,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -249,6 +250,7 @@ func (client PrivateEndpointConnectionsClient) Put(ctx context.Context, resource result, err = client.PutResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.PrivateEndpointConnectionsClient", "Put", resp, "Failure responding to request") + return } return diff --git a/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/privatelinkresources.go b/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/privatelinkresources.go index be1cc7a43adf..aaae97ad431e 100644 --- a/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/privatelinkresources.go +++ b/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/privatelinkresources.go @@ -81,6 +81,7 @@ func (client PrivateLinkResourcesClient) ListByVault(ctx context.Context, resour result, err = client.ListByVaultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.PrivateLinkResourcesClient", "ListByVault", resp, "Failure responding to request") + return } return diff --git a/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/vaults.go b/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/vaults.go index efdf9dd0ae27..16aac580ff4b 100644 --- a/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/vaults.go +++ b/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/vaults.go @@ -80,6 +80,7 @@ func (client VaultsClient) CheckNameAvailability(ctx context.Context, vaultName result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -246,6 +247,7 @@ func (client VaultsClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "Delete", resp, "Failure responding to request") + return } return @@ -320,6 +322,7 @@ func (client VaultsClient) Get(ctx context.Context, resourceGroupName string, va result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "Get", resp, "Failure responding to request") + return } return @@ -395,6 +398,7 @@ func (client VaultsClient) GetDeleted(ctx context.Context, vaultName string, loc result, err = client.GetDeletedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "GetDeleted", resp, "Failure responding to request") + return } return @@ -470,6 +474,7 @@ func (client VaultsClient) List(ctx context.Context, top *int32) (result Resourc result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -536,6 +541,7 @@ func (client VaultsClient) listNextResults(ctx context.Context, lastResults Reso result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -589,6 +595,7 @@ func (client VaultsClient) ListByResourceGroup(ctx context.Context, resourceGrou result.vlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vlr.hasNextLink() && result.vlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -655,6 +662,7 @@ func (client VaultsClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -706,6 +714,7 @@ func (client VaultsClient) ListBySubscription(ctx context.Context, top *int32) ( result.vlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.vlr.hasNextLink() && result.vlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -771,6 +780,7 @@ func (client VaultsClient) listBySubscriptionNextResults(ctx context.Context, la result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -820,6 +830,7 @@ func (client VaultsClient) ListDeleted(ctx context.Context) (result DeletedVault result.dvlr, err = client.ListDeletedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "ListDeleted", resp, "Failure responding to request") + return } if result.dvlr.hasNextLink() && result.dvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -882,6 +893,7 @@ func (client VaultsClient) listDeletedNextResults(ctx context.Context, lastResul result, err = client.ListDeletedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "listDeletedNextResults", resp, "Failure responding to next results request") + return } return } @@ -1014,6 +1026,7 @@ func (client VaultsClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "Update", resp, "Failure responding to request") + return } return @@ -1102,6 +1115,7 @@ func (client VaultsClient) UpdateAccessPolicy(ctx context.Context, resourceGroup result, err = client.UpdateAccessPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "UpdateAccessPolicy", resp, "Failure responding to request") + return } return diff --git a/services/preview/keyvault/v7.2-preview/keyvault/client.go b/services/preview/keyvault/v7.2-preview/keyvault/client.go index 4ed3ddeca271..7f15baa66c7d 100644 --- a/services/preview/keyvault/v7.2-preview/keyvault/client.go +++ b/services/preview/keyvault/v7.2-preview/keyvault/client.go @@ -78,6 +78,7 @@ func (client BaseClient) BackupCertificate(ctx context.Context, vaultBaseURL str result, err = client.BackupCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "BackupCertificate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client BaseClient) BackupKey(ctx context.Context, vaultBaseURL string, key result, err = client.BackupKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "BackupKey", resp, "Failure responding to request") + return } return @@ -241,6 +243,7 @@ func (client BaseClient) BackupSecret(ctx context.Context, vaultBaseURL string, result, err = client.BackupSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "BackupSecret", resp, "Failure responding to request") + return } return @@ -319,6 +322,7 @@ func (client BaseClient) BackupStorageAccount(ctx context.Context, vaultBaseURL result, err = client.BackupStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "BackupStorageAccount", resp, "Failure responding to request") + return } return @@ -411,6 +415,7 @@ func (client BaseClient) CreateCertificate(ctx context.Context, vaultBaseURL str result, err = client.CreateCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "CreateCertificate", resp, "Failure responding to request") + return } return @@ -498,6 +503,7 @@ func (client BaseClient) CreateKey(ctx context.Context, vaultBaseURL string, key result, err = client.CreateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "CreateKey", resp, "Failure responding to request") + return } return @@ -589,6 +595,7 @@ func (client BaseClient) Decrypt(ctx context.Context, vaultBaseURL string, keyNa result, err = client.DecryptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "Decrypt", resp, "Failure responding to request") + return } return @@ -671,6 +678,7 @@ func (client BaseClient) DeleteCertificate(ctx context.Context, vaultBaseURL str result, err = client.DeleteCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteCertificate", resp, "Failure responding to request") + return } return @@ -748,6 +756,7 @@ func (client BaseClient) DeleteCertificateContacts(ctx context.Context, vaultBas result, err = client.DeleteCertificateContactsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteCertificateContacts", resp, "Failure responding to request") + return } return @@ -822,6 +831,7 @@ func (client BaseClient) DeleteCertificateIssuer(ctx context.Context, vaultBaseU result, err = client.DeleteCertificateIssuerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteCertificateIssuer", resp, "Failure responding to request") + return } return @@ -900,6 +910,7 @@ func (client BaseClient) DeleteCertificateOperation(ctx context.Context, vaultBa result, err = client.DeleteCertificateOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteCertificateOperation", resp, "Failure responding to request") + return } return @@ -979,6 +990,7 @@ func (client BaseClient) DeleteKey(ctx context.Context, vaultBaseURL string, key result, err = client.DeleteKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteKey", resp, "Failure responding to request") + return } return @@ -1066,6 +1078,7 @@ func (client BaseClient) DeleteSasDefinition(ctx context.Context, vaultBaseURL s result, err = client.DeleteSasDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteSasDefinition", resp, "Failure responding to request") + return } return @@ -1145,6 +1158,7 @@ func (client BaseClient) DeleteSecret(ctx context.Context, vaultBaseURL string, result, err = client.DeleteSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteSecret", resp, "Failure responding to request") + return } return @@ -1228,6 +1242,7 @@ func (client BaseClient) DeleteStorageAccount(ctx context.Context, vaultBaseURL result, err = client.DeleteStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "DeleteStorageAccount", resp, "Failure responding to request") + return } return @@ -1319,6 +1334,7 @@ func (client BaseClient) Encrypt(ctx context.Context, vaultBaseURL string, keyNa result, err = client.EncryptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "Encrypt", resp, "Failure responding to request") + return } return @@ -1409,6 +1425,7 @@ func (client BaseClient) ExportKey(ctx context.Context, vaultBaseURL string, key result, err = client.ExportKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "ExportKey", resp, "Failure responding to request") + return } return @@ -1578,6 +1595,7 @@ func (client BaseClient) FullBackupStatus(ctx context.Context, vaultBaseURL stri result, err = client.FullBackupStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "FullBackupStatus", resp, "Failure responding to request") + return } return @@ -1750,6 +1768,7 @@ func (client BaseClient) GetCertificate(ctx context.Context, vaultBaseURL string result, err = client.GetCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificate", resp, "Failure responding to request") + return } return @@ -1828,6 +1847,7 @@ func (client BaseClient) GetCertificateContacts(ctx context.Context, vaultBaseUR result, err = client.GetCertificateContactsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificateContacts", resp, "Failure responding to request") + return } return @@ -1902,6 +1922,7 @@ func (client BaseClient) GetCertificateIssuer(ctx context.Context, vaultBaseURL result, err = client.GetCertificateIssuerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificateIssuer", resp, "Failure responding to request") + return } return @@ -1991,6 +2012,7 @@ func (client BaseClient) GetCertificateIssuers(ctx context.Context, vaultBaseURL result.cilr, err = client.GetCertificateIssuersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificateIssuers", resp, "Failure responding to request") + return } if result.cilr.hasNextLink() && result.cilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2056,6 +2078,7 @@ func (client BaseClient) getCertificateIssuersNextResults(ctx context.Context, l result, err = client.GetCertificateIssuersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getCertificateIssuersNextResults", resp, "Failure responding to next results request") + return } return } @@ -2108,6 +2131,7 @@ func (client BaseClient) GetCertificateOperation(ctx context.Context, vaultBaseU result, err = client.GetCertificateOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificateOperation", resp, "Failure responding to request") + return } return @@ -2186,6 +2210,7 @@ func (client BaseClient) GetCertificatePolicy(ctx context.Context, vaultBaseURL result, err = client.GetCertificatePolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificatePolicy", resp, "Failure responding to request") + return } return @@ -2276,6 +2301,7 @@ func (client BaseClient) GetCertificates(ctx context.Context, vaultBaseURL strin result.clr, err = client.GetCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificates", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2344,6 +2370,7 @@ func (client BaseClient) getCertificatesNextResults(ctx context.Context, lastRes result, err = client.GetCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getCertificatesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2408,6 +2435,7 @@ func (client BaseClient) GetCertificateVersions(ctx context.Context, vaultBaseUR result.clr, err = client.GetCertificateVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetCertificateVersions", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2477,6 +2505,7 @@ func (client BaseClient) getCertificateVersionsNextResults(ctx context.Context, result, err = client.GetCertificateVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getCertificateVersionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2530,6 +2559,7 @@ func (client BaseClient) GetDeletedCertificate(ctx context.Context, vaultBaseURL result, err = client.GetDeletedCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedCertificate", resp, "Failure responding to request") + return } return @@ -2622,6 +2652,7 @@ func (client BaseClient) GetDeletedCertificates(ctx context.Context, vaultBaseUR result.dclr, err = client.GetDeletedCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedCertificates", resp, "Failure responding to request") + return } if result.dclr.hasNextLink() && result.dclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2690,6 +2721,7 @@ func (client BaseClient) getDeletedCertificatesNextResults(ctx context.Context, result, err = client.GetDeletedCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getDeletedCertificatesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2743,6 +2775,7 @@ func (client BaseClient) GetDeletedKey(ctx context.Context, vaultBaseURL string, result, err = client.GetDeletedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedKey", resp, "Failure responding to request") + return } return @@ -2834,6 +2867,7 @@ func (client BaseClient) GetDeletedKeys(ctx context.Context, vaultBaseURL string result.dklr, err = client.GetDeletedKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedKeys", resp, "Failure responding to request") + return } if result.dklr.hasNextLink() && result.dklr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2899,6 +2933,7 @@ func (client BaseClient) getDeletedKeysNextResults(ctx context.Context, lastResu result, err = client.GetDeletedKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getDeletedKeysNextResults", resp, "Failure responding to next results request") + return } return } @@ -2960,6 +2995,7 @@ func (client BaseClient) GetDeletedSasDefinition(ctx context.Context, vaultBaseU result, err = client.GetDeletedSasDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedSasDefinition", resp, "Failure responding to request") + return } return @@ -3053,6 +3089,7 @@ func (client BaseClient) GetDeletedSasDefinitions(ctx context.Context, vaultBase result.dsdlr, err = client.GetDeletedSasDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedSasDefinitions", resp, "Failure responding to request") + return } if result.dsdlr.hasNextLink() && result.dsdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3122,6 +3159,7 @@ func (client BaseClient) getDeletedSasDefinitionsNextResults(ctx context.Context result, err = client.GetDeletedSasDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getDeletedSasDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3174,6 +3212,7 @@ func (client BaseClient) GetDeletedSecret(ctx context.Context, vaultBaseURL stri result, err = client.GetDeletedSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedSecret", resp, "Failure responding to request") + return } return @@ -3263,6 +3302,7 @@ func (client BaseClient) GetDeletedSecrets(ctx context.Context, vaultBaseURL str result.dslr, err = client.GetDeletedSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedSecrets", resp, "Failure responding to request") + return } if result.dslr.hasNextLink() && result.dslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3328,6 +3368,7 @@ func (client BaseClient) getDeletedSecretsNextResults(ctx context.Context, lastR result, err = client.GetDeletedSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getDeletedSecretsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3386,6 +3427,7 @@ func (client BaseClient) GetDeletedStorageAccount(ctx context.Context, vaultBase result, err = client.GetDeletedStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedStorageAccount", resp, "Failure responding to request") + return } return @@ -3475,6 +3517,7 @@ func (client BaseClient) GetDeletedStorageAccounts(ctx context.Context, vaultBas result.dslr, err = client.GetDeletedStorageAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetDeletedStorageAccounts", resp, "Failure responding to request") + return } if result.dslr.hasNextLink() && result.dslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3540,6 +3583,7 @@ func (client BaseClient) getDeletedStorageAccountsNextResults(ctx context.Contex result, err = client.GetDeletedStorageAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getDeletedStorageAccountsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3594,6 +3638,7 @@ func (client BaseClient) GetKey(ctx context.Context, vaultBaseURL string, keyNam result, err = client.GetKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetKey", resp, "Failure responding to request") + return } return @@ -3686,6 +3731,7 @@ func (client BaseClient) GetKeys(ctx context.Context, vaultBaseURL string, maxre result.klr, err = client.GetKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetKeys", resp, "Failure responding to request") + return } if result.klr.hasNextLink() && result.klr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3751,6 +3797,7 @@ func (client BaseClient) getKeysNextResults(ctx context.Context, lastResults Key result, err = client.GetKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getKeysNextResults", resp, "Failure responding to next results request") + return } return } @@ -3815,6 +3862,7 @@ func (client BaseClient) GetKeyVersions(ctx context.Context, vaultBaseURL string result.klr, err = client.GetKeyVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetKeyVersions", resp, "Failure responding to request") + return } if result.klr.hasNextLink() && result.klr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3884,6 +3932,7 @@ func (client BaseClient) getKeyVersionsNextResults(ctx context.Context, lastResu result, err = client.GetKeyVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getKeyVersionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3945,6 +3994,7 @@ func (client BaseClient) GetSasDefinition(ctx context.Context, vaultBaseURL stri result, err = client.GetSasDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetSasDefinition", resp, "Failure responding to request") + return } return @@ -4038,6 +4088,7 @@ func (client BaseClient) GetSasDefinitions(ctx context.Context, vaultBaseURL str result.sdlr, err = client.GetSasDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetSasDefinitions", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -4107,6 +4158,7 @@ func (client BaseClient) getSasDefinitionsNextResults(ctx context.Context, lastR result, err = client.GetSasDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getSasDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -4161,6 +4213,7 @@ func (client BaseClient) GetSecret(ctx context.Context, vaultBaseURL string, sec result, err = client.GetSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetSecret", resp, "Failure responding to request") + return } return @@ -4252,6 +4305,7 @@ func (client BaseClient) GetSecrets(ctx context.Context, vaultBaseURL string, ma result.slr, err = client.GetSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetSecrets", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -4317,6 +4371,7 @@ func (client BaseClient) getSecretsNextResults(ctx context.Context, lastResults result, err = client.GetSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getSecretsNextResults", resp, "Failure responding to next results request") + return } return } @@ -4381,6 +4436,7 @@ func (client BaseClient) GetSecretVersions(ctx context.Context, vaultBaseURL str result.slr, err = client.GetSecretVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetSecretVersions", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -4450,6 +4506,7 @@ func (client BaseClient) getSecretVersionsNextResults(ctx context.Context, lastR result, err = client.GetSecretVersionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getSecretVersionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -4508,6 +4565,7 @@ func (client BaseClient) GetStorageAccount(ctx context.Context, vaultBaseURL str result, err = client.GetStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetStorageAccount", resp, "Failure responding to request") + return } return @@ -4597,6 +4655,7 @@ func (client BaseClient) GetStorageAccounts(ctx context.Context, vaultBaseURL st result.slr, err = client.GetStorageAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "GetStorageAccounts", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -4662,6 +4721,7 @@ func (client BaseClient) getStorageAccountsNextResults(ctx context.Context, last result, err = client.GetStorageAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "getStorageAccountsNextResults", resp, "Failure responding to next results request") + return } return } @@ -4730,6 +4790,7 @@ func (client BaseClient) ImportCertificate(ctx context.Context, vaultBaseURL str result, err = client.ImportCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "ImportCertificate", resp, "Failure responding to request") + return } return @@ -4820,6 +4881,7 @@ func (client BaseClient) ImportKey(ctx context.Context, vaultBaseURL string, key result, err = client.ImportKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "ImportKey", resp, "Failure responding to request") + return } return @@ -4907,6 +4969,7 @@ func (client BaseClient) MergeCertificate(ctx context.Context, vaultBaseURL stri result, err = client.MergeCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "MergeCertificate", resp, "Failure responding to request") + return } return @@ -4988,6 +5051,7 @@ func (client BaseClient) PurgeDeletedCertificate(ctx context.Context, vaultBaseU result, err = client.PurgeDeletedCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "PurgeDeletedCertificate", resp, "Failure responding to request") + return } return @@ -5066,6 +5130,7 @@ func (client BaseClient) PurgeDeletedKey(ctx context.Context, vaultBaseURL strin result, err = client.PurgeDeletedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "PurgeDeletedKey", resp, "Failure responding to request") + return } return @@ -5144,6 +5209,7 @@ func (client BaseClient) PurgeDeletedSecret(ctx context.Context, vaultBaseURL st result, err = client.PurgeDeletedSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "PurgeDeletedSecret", resp, "Failure responding to request") + return } return @@ -5228,6 +5294,7 @@ func (client BaseClient) PurgeDeletedStorageAccount(ctx context.Context, vaultBa result, err = client.PurgeDeletedStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "PurgeDeletedStorageAccount", resp, "Failure responding to request") + return } return @@ -5306,6 +5373,7 @@ func (client BaseClient) RecoverDeletedCertificate(ctx context.Context, vaultBas result, err = client.RecoverDeletedCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RecoverDeletedCertificate", resp, "Failure responding to request") + return } return @@ -5386,6 +5454,7 @@ func (client BaseClient) RecoverDeletedKey(ctx context.Context, vaultBaseURL str result, err = client.RecoverDeletedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RecoverDeletedKey", resp, "Failure responding to request") + return } return @@ -5473,6 +5542,7 @@ func (client BaseClient) RecoverDeletedSasDefinition(ctx context.Context, vaultB result, err = client.RecoverDeletedSasDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RecoverDeletedSasDefinition", resp, "Failure responding to request") + return } return @@ -5552,6 +5622,7 @@ func (client BaseClient) RecoverDeletedSecret(ctx context.Context, vaultBaseURL result, err = client.RecoverDeletedSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RecoverDeletedSecret", resp, "Failure responding to request") + return } return @@ -5636,6 +5707,7 @@ func (client BaseClient) RecoverDeletedStorageAccount(ctx context.Context, vault result, err = client.RecoverDeletedStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RecoverDeletedStorageAccount", resp, "Failure responding to request") + return } return @@ -5723,6 +5795,7 @@ func (client BaseClient) RegenerateStorageAccountKey(ctx context.Context, vaultB result, err = client.RegenerateStorageAccountKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RegenerateStorageAccountKey", resp, "Failure responding to request") + return } return @@ -5809,6 +5882,7 @@ func (client BaseClient) RestoreCertificate(ctx context.Context, vaultBaseURL st result, err = client.RestoreCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RestoreCertificate", resp, "Failure responding to request") + return } return @@ -5898,6 +5972,7 @@ func (client BaseClient) RestoreKey(ctx context.Context, vaultBaseURL string, pa result, err = client.RestoreKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RestoreKey", resp, "Failure responding to request") + return } return @@ -5980,6 +6055,7 @@ func (client BaseClient) RestoreSecret(ctx context.Context, vaultBaseURL string, result, err = client.RestoreSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RestoreSecret", resp, "Failure responding to request") + return } return @@ -6055,6 +6131,7 @@ func (client BaseClient) RestoreStatus(ctx context.Context, vaultBaseURL string, result, err = client.RestoreStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RestoreStatus", resp, "Failure responding to request") + return } return @@ -6139,6 +6216,7 @@ func (client BaseClient) RestoreStorageAccount(ctx context.Context, vaultBaseURL result, err = client.RestoreStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "RestoreStorageAccount", resp, "Failure responding to request") + return } return @@ -6312,6 +6390,7 @@ func (client BaseClient) SetCertificateContacts(ctx context.Context, vaultBaseUR result, err = client.SetCertificateContactsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "SetCertificateContacts", resp, "Failure responding to request") + return } return @@ -6396,6 +6475,7 @@ func (client BaseClient) SetCertificateIssuer(ctx context.Context, vaultBaseURL result, err = client.SetCertificateIssuerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "SetCertificateIssuer", resp, "Failure responding to request") + return } return @@ -6489,6 +6569,7 @@ func (client BaseClient) SetSasDefinition(ctx context.Context, vaultBaseURL stri result, err = client.SetSasDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "SetSasDefinition", resp, "Failure responding to request") + return } return @@ -6579,6 +6660,7 @@ func (client BaseClient) SetSecret(ctx context.Context, vaultBaseURL string, sec result, err = client.SetSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "SetSecret", resp, "Failure responding to request") + return } return @@ -6669,6 +6751,7 @@ func (client BaseClient) SetStorageAccount(ctx context.Context, vaultBaseURL str result, err = client.SetStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "SetStorageAccount", resp, "Failure responding to request") + return } return @@ -6757,6 +6840,7 @@ func (client BaseClient) Sign(ctx context.Context, vaultBaseURL string, keyName result, err = client.SignResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "Sign", resp, "Failure responding to request") + return } return @@ -6848,6 +6932,7 @@ func (client BaseClient) UnwrapKey(ctx context.Context, vaultBaseURL string, key result, err = client.UnwrapKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UnwrapKey", resp, "Failure responding to request") + return } return @@ -6931,6 +7016,7 @@ func (client BaseClient) UpdateCertificate(ctx context.Context, vaultBaseURL str result, err = client.UpdateCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateCertificate", resp, "Failure responding to request") + return } return @@ -7013,6 +7099,7 @@ func (client BaseClient) UpdateCertificateIssuer(ctx context.Context, vaultBaseU result, err = client.UpdateCertificateIssuerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateCertificateIssuer", resp, "Failure responding to request") + return } return @@ -7094,6 +7181,7 @@ func (client BaseClient) UpdateCertificateOperation(ctx context.Context, vaultBa result, err = client.UpdateCertificateOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateCertificateOperation", resp, "Failure responding to request") + return } return @@ -7175,6 +7263,7 @@ func (client BaseClient) UpdateCertificatePolicy(ctx context.Context, vaultBaseU result, err = client.UpdateCertificatePolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateCertificatePolicy", resp, "Failure responding to request") + return } return @@ -7258,6 +7347,7 @@ func (client BaseClient) UpdateKey(ctx context.Context, vaultBaseURL string, key result, err = client.UpdateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateKey", resp, "Failure responding to request") + return } return @@ -7349,6 +7439,7 @@ func (client BaseClient) UpdateSasDefinition(ctx context.Context, vaultBaseURL s result, err = client.UpdateSasDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateSasDefinition", resp, "Failure responding to request") + return } return @@ -7433,6 +7524,7 @@ func (client BaseClient) UpdateSecret(ctx context.Context, vaultBaseURL string, result, err = client.UpdateSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateSecret", resp, "Failure responding to request") + return } return @@ -7521,6 +7613,7 @@ func (client BaseClient) UpdateStorageAccount(ctx context.Context, vaultBaseURL result, err = client.UpdateStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "UpdateStorageAccount", resp, "Failure responding to request") + return } return @@ -7612,6 +7705,7 @@ func (client BaseClient) Verify(ctx context.Context, vaultBaseURL string, keyNam result, err = client.VerifyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "Verify", resp, "Failure responding to request") + return } return @@ -7704,6 +7798,7 @@ func (client BaseClient) WrapKey(ctx context.Context, vaultBaseURL string, keyNa result, err = client.WrapKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.BaseClient", "WrapKey", resp, "Failure responding to request") + return } return diff --git a/services/preview/keyvault/v7.2-preview/keyvault/hsmsecuritydomain.go b/services/preview/keyvault/v7.2-preview/keyvault/hsmsecuritydomain.go index a01960b8977d..5d4217306dd9 100644 --- a/services/preview/keyvault/v7.2-preview/keyvault/hsmsecuritydomain.go +++ b/services/preview/keyvault/v7.2-preview/keyvault/hsmsecuritydomain.go @@ -83,6 +83,7 @@ func (client HSMSecurityDomainClient) Download(ctx context.Context, vaultBaseURL result, err = client.DownloadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.HSMSecurityDomainClient", "Download", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client HSMSecurityDomainClient) TransferKeyMethod(ctx context.Context, vau result, err = client.TransferKeyMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.HSMSecurityDomainClient", "TransferKeyMethod", resp, "Failure responding to request") + return } return @@ -314,6 +316,7 @@ func (client HSMSecurityDomainClient) UploadPending(ctx context.Context, vaultBa result, err = client.UploadPendingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.HSMSecurityDomainClient", "UploadPending", resp, "Failure responding to request") + return } return diff --git a/services/preview/keyvault/v7.2-preview/keyvault/roleassignments.go b/services/preview/keyvault/v7.2-preview/keyvault/roleassignments.go index 37ea700e01ae..d878f89b4e36 100644 --- a/services/preview/keyvault/v7.2-preview/keyvault/roleassignments.go +++ b/services/preview/keyvault/v7.2-preview/keyvault/roleassignments.go @@ -79,6 +79,7 @@ func (client RoleAssignmentsClient) Create(ctx context.Context, vaultBaseURL str result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.RoleAssignmentsClient", "Create", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client RoleAssignmentsClient) Delete(ctx context.Context, vaultBaseURL str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.RoleAssignmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client RoleAssignmentsClient) Get(ctx context.Context, vaultBaseURL string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.RoleAssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +324,7 @@ func (client RoleAssignmentsClient) ListForScope(ctx context.Context, vaultBaseU result.ralr, err = client.ListForScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.RoleAssignmentsClient", "ListForScope", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -390,6 +394,7 @@ func (client RoleAssignmentsClient) listForScopeNextResults(ctx context.Context, result, err = client.ListForScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.RoleAssignmentsClient", "listForScopeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/keyvault/v7.2-preview/keyvault/roledefinitions.go b/services/preview/keyvault/v7.2-preview/keyvault/roledefinitions.go index 8e56c18a7c8e..42b1a3fb335e 100644 --- a/services/preview/keyvault/v7.2-preview/keyvault/roledefinitions.go +++ b/services/preview/keyvault/v7.2-preview/keyvault/roledefinitions.go @@ -70,6 +70,7 @@ func (client RoleDefinitionsClient) List(ctx context.Context, vaultBaseURL strin result.rdlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.RoleDefinitionsClient", "List", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client RoleDefinitionsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.RoleDefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/kubernetesconfiguration/mgmt/2019-11-01-preview/kubernetesconfiguration/operations.go b/services/preview/kubernetesconfiguration/mgmt/2019-11-01-preview/kubernetesconfiguration/operations.go index 76442d36313a..a23e2b818354 100644 --- a/services/preview/kubernetesconfiguration/mgmt/2019-11-01-preview/kubernetesconfiguration/operations.go +++ b/services/preview/kubernetesconfiguration/mgmt/2019-11-01-preview/kubernetesconfiguration/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result ResourceProvide result.rpol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kubernetesconfiguration.OperationsClient", "List", resp, "Failure responding to request") + return } if result.rpol.hasNextLink() && result.rpol.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kubernetesconfiguration.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/kubernetesconfiguration/mgmt/2019-11-01-preview/kubernetesconfiguration/sourcecontrolconfigurations.go b/services/preview/kubernetesconfiguration/mgmt/2019-11-01-preview/kubernetesconfiguration/sourcecontrolconfigurations.go index 73fe7ac7947b..1f311d731146 100644 --- a/services/preview/kubernetesconfiguration/mgmt/2019-11-01-preview/kubernetesconfiguration/sourcecontrolconfigurations.go +++ b/services/preview/kubernetesconfiguration/mgmt/2019-11-01-preview/kubernetesconfiguration/sourcecontrolconfigurations.go @@ -80,6 +80,7 @@ func (client SourceControlConfigurationsClient) CreateOrUpdate(ctx context.Conte result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kubernetesconfiguration.SourceControlConfigurationsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -248,6 +249,7 @@ func (client SourceControlConfigurationsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kubernetesconfiguration.SourceControlConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -331,6 +333,7 @@ func (client SourceControlConfigurationsClient) List(ctx context.Context, resour result.sccl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kubernetesconfiguration.SourceControlConfigurationsClient", "List", resp, "Failure responding to request") + return } if result.sccl.hasNextLink() && result.sccl.IsEmpty() { err = result.NextWithContext(ctx) @@ -397,6 +400,7 @@ func (client SourceControlConfigurationsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kubernetesconfiguration.SourceControlConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/kusto/mgmt/2018-09-07-preview/kusto/clusters.go b/services/preview/kusto/mgmt/2018-09-07-preview/kusto/clusters.go index 124f81229427..94df81b370b0 100644 --- a/services/preview/kusto/mgmt/2018-09-07-preview/kusto/clusters.go +++ b/services/preview/kusto/mgmt/2018-09-07-preview/kusto/clusters.go @@ -82,6 +82,7 @@ func (client ClustersClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -390,6 +392,7 @@ func (client ClustersClient) List(ctx context.Context) (result ClusterListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "List", resp, "Failure responding to request") + return } return @@ -462,6 +465,7 @@ func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -533,6 +537,7 @@ func (client ClustersClient) ListSkus(ctx context.Context) (result ListSkusResul result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListSkus", resp, "Failure responding to request") + return } return @@ -606,6 +611,7 @@ func (client ClustersClient) ListSkusByResource(ctx context.Context, resourceGro result, err = client.ListSkusByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListSkusByResource", resp, "Failure responding to request") + return } return diff --git a/services/preview/kusto/mgmt/2018-09-07-preview/kusto/databases.go b/services/preview/kusto/mgmt/2018-09-07-preview/kusto/databases.go index b2e912336d0d..9b215d35b0d7 100644 --- a/services/preview/kusto/mgmt/2018-09-07-preview/kusto/databases.go +++ b/services/preview/kusto/mgmt/2018-09-07-preview/kusto/databases.go @@ -77,6 +77,7 @@ func (client DatabasesClient) AddPrincipals(ctx context.Context, resourceGroupNa result, err = client.AddPrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "AddPrincipals", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client DatabasesClient) CheckNameAvailability(ctx context.Context, resourc result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -405,6 +407,7 @@ func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -481,6 +484,7 @@ func (client DatabasesClient) ListByCluster(ctx context.Context, resourceGroupNa result, err = client.ListByClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "ListByCluster", resp, "Failure responding to request") + return } return @@ -557,6 +561,7 @@ func (client DatabasesClient) ListPrincipals(ctx context.Context, resourceGroupN result, err = client.ListPrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "ListPrincipals", resp, "Failure responding to request") + return } return @@ -635,6 +640,7 @@ func (client DatabasesClient) RemovePrincipals(ctx context.Context, resourceGrou result, err = client.RemovePrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "RemovePrincipals", resp, "Failure responding to request") + return } return diff --git a/services/preview/kusto/mgmt/2018-09-07-preview/kusto/eventhubconnections.go b/services/preview/kusto/mgmt/2018-09-07-preview/kusto/eventhubconnections.go index 132e50b30c53..9b617b140d53 100644 --- a/services/preview/kusto/mgmt/2018-09-07-preview/kusto/eventhubconnections.go +++ b/services/preview/kusto/mgmt/2018-09-07-preview/kusto/eventhubconnections.go @@ -256,6 +256,7 @@ func (client EventHubConnectionsClient) EventhubConnectionValidation(ctx context result, err = client.EventhubConnectionValidationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.EventHubConnectionsClient", "EventhubConnectionValidation", resp, "Failure responding to request") + return } return @@ -336,6 +337,7 @@ func (client EventHubConnectionsClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.EventHubConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -414,6 +416,7 @@ func (client EventHubConnectionsClient) ListByDatabase(ctx context.Context, reso result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.EventHubConnectionsClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/preview/kusto/mgmt/2018-09-07-preview/kusto/operations.go b/services/preview/kusto/mgmt/2018-09-07-preview/kusto/operations.go index eadffdf7f7c2..a1787892f614 100644 --- a/services/preview/kusto/mgmt/2018-09-07-preview/kusto/operations.go +++ b/services/preview/kusto/mgmt/2018-09-07-preview/kusto/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/logic/mgmt/2015-02-01-preview/logic/workflowaccesskeys.go b/services/preview/logic/mgmt/2015-02-01-preview/logic/workflowaccesskeys.go index 86976ff917cf..624d3d109eb8 100644 --- a/services/preview/logic/mgmt/2015-02-01-preview/logic/workflowaccesskeys.go +++ b/services/preview/logic/mgmt/2015-02-01-preview/logic/workflowaccesskeys.go @@ -75,6 +75,7 @@ func (client WorkflowAccessKeysClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowAccessKeysClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client WorkflowAccessKeysClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowAccessKeysClient", "Delete", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client WorkflowAccessKeysClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowAccessKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +313,7 @@ func (client WorkflowAccessKeysClient) List(ctx context.Context, resourceGroupNa result.waklr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowAccessKeysClient", "List", resp, "Failure responding to request") + return } if result.waklr.hasNextLink() && result.waklr.IsEmpty() { err = result.NextWithContext(ctx) @@ -377,6 +381,7 @@ func (client WorkflowAccessKeysClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowAccessKeysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -429,6 +434,7 @@ func (client WorkflowAccessKeysClient) ListSecretKeys(ctx context.Context, resou result, err = client.ListSecretKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowAccessKeysClient", "ListSecretKeys", resp, "Failure responding to request") + return } return @@ -507,6 +513,7 @@ func (client WorkflowAccessKeysClient) RegenerateSecretKey(ctx context.Context, result, err = client.RegenerateSecretKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowAccessKeysClient", "RegenerateSecretKey", resp, "Failure responding to request") + return } return diff --git a/services/preview/logic/mgmt/2015-02-01-preview/logic/workflowrunactions.go b/services/preview/logic/mgmt/2015-02-01-preview/logic/workflowrunactions.go index 1a28cc9d237d..65ede55e6a15 100644 --- a/services/preview/logic/mgmt/2015-02-01-preview/logic/workflowrunactions.go +++ b/services/preview/logic/mgmt/2015-02-01-preview/logic/workflowrunactions.go @@ -75,6 +75,7 @@ func (client WorkflowRunActionsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionsClient", "Get", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client WorkflowRunActionsClient) List(ctx context.Context, resourceGroupNa result.wralr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionsClient", "List", resp, "Failure responding to request") + return } if result.wralr.hasNextLink() && result.wralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -227,6 +229,7 @@ func (client WorkflowRunActionsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/logic/mgmt/2015-02-01-preview/logic/workflowruns.go b/services/preview/logic/mgmt/2015-02-01-preview/logic/workflowruns.go index 20bde9ffcfd2..984480275f67 100644 --- a/services/preview/logic/mgmt/2015-02-01-preview/logic/workflowruns.go +++ b/services/preview/logic/mgmt/2015-02-01-preview/logic/workflowruns.go @@ -73,6 +73,7 @@ func (client WorkflowRunsClient) Cancel(ctx context.Context, resourceGroupName s result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client WorkflowRunsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunsClient", "Get", resp, "Failure responding to request") + return } return @@ -228,6 +230,7 @@ func (client WorkflowRunsClient) List(ctx context.Context, resourceGroupName str result.wrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunsClient", "List", resp, "Failure responding to request") + return } if result.wrlr.hasNextLink() && result.wrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -298,6 +301,7 @@ func (client WorkflowRunsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/logic/mgmt/2015-02-01-preview/logic/workflows.go b/services/preview/logic/mgmt/2015-02-01-preview/logic/workflows.go index 521d72b98055..2c6601d722d7 100644 --- a/services/preview/logic/mgmt/2015-02-01-preview/logic/workflows.go +++ b/services/preview/logic/mgmt/2015-02-01-preview/logic/workflows.go @@ -73,6 +73,7 @@ func (client WorkflowsClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client WorkflowsClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "Delete", resp, "Failure responding to request") + return } return @@ -224,6 +226,7 @@ func (client WorkflowsClient) Disable(ctx context.Context, resourceGroupName str result, err = client.DisableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "Disable", resp, "Failure responding to request") + return } return @@ -298,6 +301,7 @@ func (client WorkflowsClient) Enable(ctx context.Context, resourceGroupName stri result, err = client.EnableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "Enable", resp, "Failure responding to request") + return } return @@ -372,6 +376,7 @@ func (client WorkflowsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "Get", resp, "Failure responding to request") + return } return @@ -449,6 +454,7 @@ func (client WorkflowsClient) ListByResourceGroup(ctx context.Context, resourceG result.wlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -518,6 +524,7 @@ func (client WorkflowsClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -570,6 +577,7 @@ func (client WorkflowsClient) ListBySubscription(ctx context.Context, top *int32 result.wlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -638,6 +646,7 @@ func (client WorkflowsClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -768,6 +777,7 @@ func (client WorkflowsClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "Update", resp, "Failure responding to request") + return } return @@ -846,6 +856,7 @@ func (client WorkflowsClient) Validate(ctx context.Context, resourceGroupName st result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "Validate", resp, "Failure responding to request") + return } return diff --git a/services/preview/logic/mgmt/2015-02-01-preview/logic/workflowtriggerhistories.go b/services/preview/logic/mgmt/2015-02-01-preview/logic/workflowtriggerhistories.go index 0e709c3526c3..190badb36ac6 100644 --- a/services/preview/logic/mgmt/2015-02-01-preview/logic/workflowtriggerhistories.go +++ b/services/preview/logic/mgmt/2015-02-01-preview/logic/workflowtriggerhistories.go @@ -75,6 +75,7 @@ func (client WorkflowTriggerHistoriesClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggerHistoriesClient", "Get", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client WorkflowTriggerHistoriesClient) List(ctx context.Context, resourceG result.wthlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggerHistoriesClient", "List", resp, "Failure responding to request") + return } if result.wthlr.hasNextLink() && result.wthlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -227,6 +229,7 @@ func (client WorkflowTriggerHistoriesClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggerHistoriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/logic/mgmt/2015-02-01-preview/logic/workflowtriggers.go b/services/preview/logic/mgmt/2015-02-01-preview/logic/workflowtriggers.go index 8444b409ccd0..b1f05e8af6f8 100644 --- a/services/preview/logic/mgmt/2015-02-01-preview/logic/workflowtriggers.go +++ b/services/preview/logic/mgmt/2015-02-01-preview/logic/workflowtriggers.go @@ -74,6 +74,7 @@ func (client WorkflowTriggersClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "Get", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client WorkflowTriggersClient) List(ctx context.Context, resourceGroupName result.wtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "List", resp, "Failure responding to request") + return } if result.wtlr.hasNextLink() && result.wtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -223,6 +225,7 @@ func (client WorkflowTriggersClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -275,6 +278,7 @@ func (client WorkflowTriggersClient) Run(ctx context.Context, resourceGroupName result, err = client.RunResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "Run", resp, "Failure responding to request") + return } return diff --git a/services/preview/logic/mgmt/2015-02-01-preview/logic/workflowversions.go b/services/preview/logic/mgmt/2015-02-01-preview/logic/workflowversions.go index bce204ff7fb2..c00017c25232 100644 --- a/services/preview/logic/mgmt/2015-02-01-preview/logic/workflowversions.go +++ b/services/preview/logic/mgmt/2015-02-01-preview/logic/workflowversions.go @@ -74,6 +74,7 @@ func (client WorkflowVersionsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowVersionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/logic/mgmt/2015-08-01-preview/logic/integrationaccountagreements.go b/services/preview/logic/mgmt/2015-08-01-preview/logic/integrationaccountagreements.go index 69481e56fda9..e129ed479195 100644 --- a/services/preview/logic/mgmt/2015-08-01-preview/logic/integrationaccountagreements.go +++ b/services/preview/logic/mgmt/2015-08-01-preview/logic/integrationaccountagreements.go @@ -75,6 +75,7 @@ func (client IntegrationAccountAgreementsClient) CreateOrUpdate(ctx context.Cont result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAgreementsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client IntegrationAccountAgreementsClient) Delete(ctx context.Context, res result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAgreementsClient", "Delete", resp, "Failure responding to request") + return } return @@ -230,6 +232,7 @@ func (client IntegrationAccountAgreementsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAgreementsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +312,7 @@ func (client IntegrationAccountAgreementsClient) List(ctx context.Context, resou result.iaalr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAgreementsClient", "List", resp, "Failure responding to request") + return } if result.iaalr.hasNextLink() && result.iaalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -379,6 +383,7 @@ func (client IntegrationAccountAgreementsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAgreementsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/logic/mgmt/2015-08-01-preview/logic/integrationaccountcertificates.go b/services/preview/logic/mgmt/2015-08-01-preview/logic/integrationaccountcertificates.go index 56820815f462..ad1b36d35c86 100644 --- a/services/preview/logic/mgmt/2015-08-01-preview/logic/integrationaccountcertificates.go +++ b/services/preview/logic/mgmt/2015-08-01-preview/logic/integrationaccountcertificates.go @@ -75,6 +75,7 @@ func (client IntegrationAccountCertificatesClient) CreateOrUpdate(ctx context.Co result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountCertificatesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client IntegrationAccountCertificatesClient) Delete(ctx context.Context, r result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountCertificatesClient", "Delete", resp, "Failure responding to request") + return } return @@ -230,6 +232,7 @@ func (client IntegrationAccountCertificatesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountCertificatesClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +311,7 @@ func (client IntegrationAccountCertificatesClient) List(ctx context.Context, res result.iaclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountCertificatesClient", "List", resp, "Failure responding to request") + return } if result.iaclr.hasNextLink() && result.iaclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +379,7 @@ func (client IntegrationAccountCertificatesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountCertificatesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/logic/mgmt/2015-08-01-preview/logic/integrationaccountmaps.go b/services/preview/logic/mgmt/2015-08-01-preview/logic/integrationaccountmaps.go index 8e4256a9fecc..b90daf560001 100644 --- a/services/preview/logic/mgmt/2015-08-01-preview/logic/integrationaccountmaps.go +++ b/services/preview/logic/mgmt/2015-08-01-preview/logic/integrationaccountmaps.go @@ -75,6 +75,7 @@ func (client IntegrationAccountMapsClient) CreateOrUpdate(ctx context.Context, r result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountMapsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client IntegrationAccountMapsClient) Delete(ctx context.Context, resourceG result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountMapsClient", "Delete", resp, "Failure responding to request") + return } return @@ -230,6 +232,7 @@ func (client IntegrationAccountMapsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountMapsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +312,7 @@ func (client IntegrationAccountMapsClient) List(ctx context.Context, resourceGro result.iamlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountMapsClient", "List", resp, "Failure responding to request") + return } if result.iamlr.hasNextLink() && result.iamlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -379,6 +383,7 @@ func (client IntegrationAccountMapsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountMapsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/logic/mgmt/2015-08-01-preview/logic/integrationaccountpartners.go b/services/preview/logic/mgmt/2015-08-01-preview/logic/integrationaccountpartners.go index e643fb34c0c6..7d82b914fee3 100644 --- a/services/preview/logic/mgmt/2015-08-01-preview/logic/integrationaccountpartners.go +++ b/services/preview/logic/mgmt/2015-08-01-preview/logic/integrationaccountpartners.go @@ -75,6 +75,7 @@ func (client IntegrationAccountPartnersClient) CreateOrUpdate(ctx context.Contex result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountPartnersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client IntegrationAccountPartnersClient) Delete(ctx context.Context, resou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountPartnersClient", "Delete", resp, "Failure responding to request") + return } return @@ -230,6 +232,7 @@ func (client IntegrationAccountPartnersClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountPartnersClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +312,7 @@ func (client IntegrationAccountPartnersClient) List(ctx context.Context, resourc result.iaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountPartnersClient", "List", resp, "Failure responding to request") + return } if result.iaplr.hasNextLink() && result.iaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -379,6 +383,7 @@ func (client IntegrationAccountPartnersClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountPartnersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/logic/mgmt/2015-08-01-preview/logic/integrationaccounts.go b/services/preview/logic/mgmt/2015-08-01-preview/logic/integrationaccounts.go index fff9884b32a9..92ac8548428b 100644 --- a/services/preview/logic/mgmt/2015-08-01-preview/logic/integrationaccounts.go +++ b/services/preview/logic/mgmt/2015-08-01-preview/logic/integrationaccounts.go @@ -74,6 +74,7 @@ func (client IntegrationAccountsClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client IntegrationAccountsClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -225,6 +227,7 @@ func (client IntegrationAccountsClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +304,7 @@ func (client IntegrationAccountsClient) ListByResourceGroup(ctx context.Context, result.ialr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ialr.hasNextLink() && result.ialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +371,7 @@ func (client IntegrationAccountsClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -418,6 +423,7 @@ func (client IntegrationAccountsClient) ListBySubscription(ctx context.Context, result.ialr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ialr.hasNextLink() && result.ialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -483,6 +489,7 @@ func (client IntegrationAccountsClient) listBySubscriptionNextResults(ctx contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -535,6 +542,7 @@ func (client IntegrationAccountsClient) ListCallbackURL(ctx context.Context, res result, err = client.ListCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "ListCallbackURL", resp, "Failure responding to request") + return } return @@ -613,6 +621,7 @@ func (client IntegrationAccountsClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/logic/mgmt/2015-08-01-preview/logic/integrationaccountschemas.go b/services/preview/logic/mgmt/2015-08-01-preview/logic/integrationaccountschemas.go index d08669dca38f..5c4532a6b27f 100644 --- a/services/preview/logic/mgmt/2015-08-01-preview/logic/integrationaccountschemas.go +++ b/services/preview/logic/mgmt/2015-08-01-preview/logic/integrationaccountschemas.go @@ -75,6 +75,7 @@ func (client IntegrationAccountSchemasClient) CreateOrUpdate(ctx context.Context result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSchemasClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client IntegrationAccountSchemasClient) Delete(ctx context.Context, resour result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSchemasClient", "Delete", resp, "Failure responding to request") + return } return @@ -230,6 +232,7 @@ func (client IntegrationAccountSchemasClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSchemasClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +312,7 @@ func (client IntegrationAccountSchemasClient) List(ctx context.Context, resource result.iaslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSchemasClient", "List", resp, "Failure responding to request") + return } if result.iaslr.hasNextLink() && result.iaslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -379,6 +383,7 @@ func (client IntegrationAccountSchemasClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSchemasClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountagreements.go b/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountagreements.go index 186a023ce014..90295e9a3c92 100644 --- a/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountagreements.go +++ b/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountagreements.go @@ -511,6 +511,7 @@ func (client IntegrationAccountAgreementsClient) CreateOrUpdate(ctx context.Cont result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAgreementsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -590,6 +591,7 @@ func (client IntegrationAccountAgreementsClient) Delete(ctx context.Context, res result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAgreementsClient", "Delete", resp, "Failure responding to request") + return } return @@ -666,6 +668,7 @@ func (client IntegrationAccountAgreementsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAgreementsClient", "Get", resp, "Failure responding to request") + return } return @@ -745,6 +748,7 @@ func (client IntegrationAccountAgreementsClient) List(ctx context.Context, resou result.iaalr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAgreementsClient", "List", resp, "Failure responding to request") + return } if result.iaalr.hasNextLink() && result.iaalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -815,6 +819,7 @@ func (client IntegrationAccountAgreementsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAgreementsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -867,6 +872,7 @@ func (client IntegrationAccountAgreementsClient) ListContentCallbackURL(ctx cont result, err = client.ListContentCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAgreementsClient", "ListContentCallbackURL", resp, "Failure responding to request") + return } return diff --git a/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountassemblies.go b/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountassemblies.go index 5f047050f47c..88074ce60a74 100644 --- a/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountassemblies.go +++ b/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountassemblies.go @@ -83,6 +83,7 @@ func (client IntegrationAccountAssembliesClient) CreateOrUpdate(ctx context.Cont result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAssembliesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client IntegrationAccountAssembliesClient) Delete(ctx context.Context, res result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAssembliesClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client IntegrationAccountAssembliesClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAssembliesClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +317,7 @@ func (client IntegrationAccountAssembliesClient) List(ctx context.Context, resou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAssembliesClient", "List", resp, "Failure responding to request") + return } return @@ -390,6 +394,7 @@ func (client IntegrationAccountAssembliesClient) ListContentCallbackURL(ctx cont result, err = client.ListContentCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountAssembliesClient", "ListContentCallbackURL", resp, "Failure responding to request") + return } return diff --git a/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountbatchconfigurations.go b/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountbatchconfigurations.go index 70591b41ee38..f979f11a597f 100644 --- a/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountbatchconfigurations.go +++ b/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountbatchconfigurations.go @@ -86,6 +86,7 @@ func (client IntegrationAccountBatchConfigurationsClient) CreateOrUpdate(ctx con result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountBatchConfigurationsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client IntegrationAccountBatchConfigurationsClient) Delete(ctx context.Con result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountBatchConfigurationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -241,6 +243,7 @@ func (client IntegrationAccountBatchConfigurationsClient) Get(ctx context.Contex result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountBatchConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client IntegrationAccountBatchConfigurationsClient) List(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountBatchConfigurationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountcertificates.go b/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountcertificates.go index 8395cdd1d86f..ce7fba369021 100644 --- a/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountcertificates.go +++ b/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountcertificates.go @@ -87,6 +87,7 @@ func (client IntegrationAccountCertificatesClient) CreateOrUpdate(ctx context.Co result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountCertificatesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client IntegrationAccountCertificatesClient) Delete(ctx context.Context, r result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountCertificatesClient", "Delete", resp, "Failure responding to request") + return } return @@ -242,6 +244,7 @@ func (client IntegrationAccountCertificatesClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountCertificatesClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +323,7 @@ func (client IntegrationAccountCertificatesClient) List(ctx context.Context, res result.iaclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountCertificatesClient", "List", resp, "Failure responding to request") + return } if result.iaclr.hasNextLink() && result.iaclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +391,7 @@ func (client IntegrationAccountCertificatesClient) listNextResults(ctx context.C result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountCertificatesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountmaps.go b/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountmaps.go index 12d67f2748ca..43de8803abff 100644 --- a/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountmaps.go +++ b/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountmaps.go @@ -82,6 +82,7 @@ func (client IntegrationAccountMapsClient) CreateOrUpdate(ctx context.Context, r result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountMapsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client IntegrationAccountMapsClient) Delete(ctx context.Context, resourceG result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountMapsClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client IntegrationAccountMapsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountMapsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client IntegrationAccountMapsClient) List(ctx context.Context, resourceGro result.iamlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountMapsClient", "List", resp, "Failure responding to request") + return } if result.iamlr.hasNextLink() && result.iamlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +390,7 @@ func (client IntegrationAccountMapsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountMapsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -438,6 +443,7 @@ func (client IntegrationAccountMapsClient) ListContentCallbackURL(ctx context.Co result, err = client.ListContentCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountMapsClient", "ListContentCallbackURL", resp, "Failure responding to request") + return } return diff --git a/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountpartners.go b/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountpartners.go index 4847a8e7f261..a12d8ddb354c 100644 --- a/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountpartners.go +++ b/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountpartners.go @@ -83,6 +83,7 @@ func (client IntegrationAccountPartnersClient) CreateOrUpdate(ctx context.Contex result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountPartnersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client IntegrationAccountPartnersClient) Delete(ctx context.Context, resou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountPartnersClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client IntegrationAccountPartnersClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountPartnersClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client IntegrationAccountPartnersClient) List(ctx context.Context, resourc result.iaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountPartnersClient", "List", resp, "Failure responding to request") + return } if result.iaplr.hasNextLink() && result.iaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +391,7 @@ func (client IntegrationAccountPartnersClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountPartnersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -439,6 +444,7 @@ func (client IntegrationAccountPartnersClient) ListContentCallbackURL(ctx contex result, err = client.ListContentCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountPartnersClient", "ListContentCallbackURL", resp, "Failure responding to request") + return } return diff --git a/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccounts.go b/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccounts.go index e44492a064f5..bddd5023d32f 100644 --- a/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccounts.go +++ b/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccounts.go @@ -75,6 +75,7 @@ func (client IntegrationAccountsClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client IntegrationAccountsClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client IntegrationAccountsClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +305,7 @@ func (client IntegrationAccountsClient) ListByResourceGroup(ctx context.Context, result.ialr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ialr.hasNextLink() && result.ialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +372,7 @@ func (client IntegrationAccountsClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -419,6 +424,7 @@ func (client IntegrationAccountsClient) ListBySubscription(ctx context.Context, result.ialr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ialr.hasNextLink() && result.ialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -484,6 +490,7 @@ func (client IntegrationAccountsClient) listBySubscriptionNextResults(ctx contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -536,6 +543,7 @@ func (client IntegrationAccountsClient) ListCallbackURL(ctx context.Context, res result, err = client.ListCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "ListCallbackURL", resp, "Failure responding to request") + return } return @@ -620,6 +628,7 @@ func (client IntegrationAccountsClient) ListKeyVaultKeys(ctx context.Context, re result, err = client.ListKeyVaultKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "ListKeyVaultKeys", resp, "Failure responding to request") + return } return @@ -705,6 +714,7 @@ func (client IntegrationAccountsClient) LogTrackingEvents(ctx context.Context, r result, err = client.LogTrackingEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "LogTrackingEvents", resp, "Failure responding to request") + return } return @@ -782,6 +792,7 @@ func (client IntegrationAccountsClient) RegenerateAccessKey(ctx context.Context, result, err = client.RegenerateAccessKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "RegenerateAccessKey", resp, "Failure responding to request") + return } return @@ -860,6 +871,7 @@ func (client IntegrationAccountsClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountschemas.go b/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountschemas.go index f41f4c61714f..992a4ad6bd87 100644 --- a/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountschemas.go +++ b/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountschemas.go @@ -82,6 +82,7 @@ func (client IntegrationAccountSchemasClient) CreateOrUpdate(ctx context.Context result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSchemasClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client IntegrationAccountSchemasClient) Delete(ctx context.Context, resour result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSchemasClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client IntegrationAccountSchemasClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSchemasClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client IntegrationAccountSchemasClient) List(ctx context.Context, resource result.iaslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSchemasClient", "List", resp, "Failure responding to request") + return } if result.iaslr.hasNextLink() && result.iaslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +390,7 @@ func (client IntegrationAccountSchemasClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSchemasClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -438,6 +443,7 @@ func (client IntegrationAccountSchemasClient) ListContentCallbackURL(ctx context result, err = client.ListContentCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSchemasClient", "ListContentCallbackURL", resp, "Failure responding to request") + return } return diff --git a/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountsessions.go b/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountsessions.go index fc3b6596dd0e..f41ceacd3015 100644 --- a/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountsessions.go +++ b/services/preview/logic/mgmt/2018-07-01-preview/logic/integrationaccountsessions.go @@ -82,6 +82,7 @@ func (client IntegrationAccountSessionsClient) CreateOrUpdate(ctx context.Contex result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSessionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client IntegrationAccountSessionsClient) Delete(ctx context.Context, resou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSessionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client IntegrationAccountSessionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSessionsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client IntegrationAccountSessionsClient) List(ctx context.Context, resourc result.iaslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSessionsClient", "List", resp, "Failure responding to request") + return } if result.iaslr.hasNextLink() && result.iaslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +390,7 @@ func (client IntegrationAccountSessionsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.IntegrationAccountSessionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/logic/mgmt/2018-07-01-preview/logic/operations.go b/services/preview/logic/mgmt/2018-07-01-preview/logic/operations.go index 3837e833d055..07d1ba0c5483 100644 --- a/services/preview/logic/mgmt/2018-07-01-preview/logic/operations.go +++ b/services/preview/logic/mgmt/2018-07-01-preview/logic/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowrunactionrepetitions.go b/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowrunactionrepetitions.go index 6ea0b7beab5b..ba5d390e0c32 100644 --- a/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowrunactionrepetitions.go +++ b/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowrunactionrepetitions.go @@ -76,6 +76,7 @@ func (client WorkflowRunActionRepetitionsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRepetitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client WorkflowRunActionRepetitionsClient) List(ctx context.Context, resou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRepetitionsClient", "List", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client WorkflowRunActionRepetitionsClient) ListExpressionTraces(ctx contex result, err = client.ListExpressionTracesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRepetitionsClient", "ListExpressionTraces", resp, "Failure responding to request") + return } return diff --git a/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowrunactionrepetitionsrequesthistories.go b/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowrunactionrepetitionsrequesthistories.go index bf27ee7a679b..296a8a49772d 100644 --- a/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowrunactionrepetitionsrequesthistories.go +++ b/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowrunactionrepetitionsrequesthistories.go @@ -78,6 +78,7 @@ func (client WorkflowRunActionRepetitionsRequestHistoriesClient) Get(ctx context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRepetitionsRequestHistoriesClient", "Get", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client WorkflowRunActionRepetitionsRequestHistoriesClient) List(ctx contex result.rhlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRepetitionsRequestHistoriesClient", "List", resp, "Failure responding to request") + return } if result.rhlr.hasNextLink() && result.rhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -228,6 +230,7 @@ func (client WorkflowRunActionRepetitionsRequestHistoriesClient) listNextResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRepetitionsRequestHistoriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowrunactionrequesthistories.go b/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowrunactionrequesthistories.go index c31a52f176e6..859a932492e6 100644 --- a/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowrunactionrequesthistories.go +++ b/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowrunactionrequesthistories.go @@ -77,6 +77,7 @@ func (client WorkflowRunActionRequestHistoriesClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRequestHistoriesClient", "Get", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client WorkflowRunActionRequestHistoriesClient) List(ctx context.Context, result.rhlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRequestHistoriesClient", "List", resp, "Failure responding to request") + return } if result.rhlr.hasNextLink() && result.rhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -224,6 +226,7 @@ func (client WorkflowRunActionRequestHistoriesClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionRequestHistoriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowrunactions.go b/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowrunactions.go index ceedfc39ab92..82b5bfed8b33 100644 --- a/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowrunactions.go +++ b/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowrunactions.go @@ -75,6 +75,7 @@ func (client WorkflowRunActionsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionsClient", "Get", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client WorkflowRunActionsClient) List(ctx context.Context, resourceGroupNa result.wralr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionsClient", "List", resp, "Failure responding to request") + return } if result.wralr.hasNextLink() && result.wralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -227,6 +229,7 @@ func (client WorkflowRunActionsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -280,6 +283,7 @@ func (client WorkflowRunActionsClient) ListExpressionTraces(ctx context.Context, result, err = client.ListExpressionTracesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionsClient", "ListExpressionTraces", resp, "Failure responding to request") + return } return diff --git a/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowrunactionscoperepetitions.go b/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowrunactionscoperepetitions.go index e48c07e4dacc..769ddf7ab31b 100644 --- a/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowrunactionscoperepetitions.go +++ b/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowrunactionscoperepetitions.go @@ -77,6 +77,7 @@ func (client WorkflowRunActionScopeRepetitionsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionScopeRepetitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client WorkflowRunActionScopeRepetitionsClient) List(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunActionScopeRepetitionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowrunoperations.go b/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowrunoperations.go index 4310bb906996..d971f78b0561 100644 --- a/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowrunoperations.go +++ b/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowrunoperations.go @@ -75,6 +75,7 @@ func (client WorkflowRunOperationsClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunOperationsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowruns.go b/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowruns.go index 03cd3555c5a6..c0a93f028e27 100644 --- a/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowruns.go +++ b/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowruns.go @@ -73,6 +73,7 @@ func (client WorkflowRunsClient) Cancel(ctx context.Context, resourceGroupName s result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client WorkflowRunsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunsClient", "Delete", resp, "Failure responding to request") + return } return @@ -225,6 +227,7 @@ func (client WorkflowRunsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunsClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +308,7 @@ func (client WorkflowRunsClient) List(ctx context.Context, resourceGroupName str result.wrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunsClient", "List", resp, "Failure responding to request") + return } if result.wrlr.hasNextLink() && result.wrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +379,7 @@ func (client WorkflowRunsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowRunsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/logic/mgmt/2018-07-01-preview/logic/workflows.go b/services/preview/logic/mgmt/2018-07-01-preview/logic/workflows.go index d57b0698ccc2..9fa9f06c2ec0 100644 --- a/services/preview/logic/mgmt/2018-07-01-preview/logic/workflows.go +++ b/services/preview/logic/mgmt/2018-07-01-preview/logic/workflows.go @@ -73,6 +73,7 @@ func (client WorkflowsClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client WorkflowsClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "Delete", resp, "Failure responding to request") + return } return @@ -224,6 +226,7 @@ func (client WorkflowsClient) Disable(ctx context.Context, resourceGroupName str result, err = client.DisableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "Disable", resp, "Failure responding to request") + return } return @@ -298,6 +301,7 @@ func (client WorkflowsClient) Enable(ctx context.Context, resourceGroupName stri result, err = client.EnableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "Enable", resp, "Failure responding to request") + return } return @@ -373,6 +377,7 @@ func (client WorkflowsClient) GenerateUpgradedDefinition(ctx context.Context, re result, err = client.GenerateUpgradedDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "GenerateUpgradedDefinition", resp, "Failure responding to request") + return } return @@ -450,6 +455,7 @@ func (client WorkflowsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "Get", resp, "Failure responding to request") + return } return @@ -528,6 +534,7 @@ func (client WorkflowsClient) ListByResourceGroup(ctx context.Context, resourceG result.wlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -597,6 +604,7 @@ func (client WorkflowsClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -650,6 +658,7 @@ func (client WorkflowsClient) ListBySubscription(ctx context.Context, top *int32 result.wlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -718,6 +727,7 @@ func (client WorkflowsClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -770,6 +780,7 @@ func (client WorkflowsClient) ListCallbackURL(ctx context.Context, resourceGroup result, err = client.ListCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "ListCallbackURL", resp, "Failure responding to request") + return } return @@ -847,6 +858,7 @@ func (client WorkflowsClient) ListSwagger(ctx context.Context, resourceGroupName result, err = client.ListSwaggerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "ListSwagger", resp, "Failure responding to request") + return } return @@ -923,6 +935,7 @@ func (client WorkflowsClient) Move(ctx context.Context, resourceGroupName string result, err = client.MoveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "Move", resp, "Failure responding to request") + return } return @@ -1000,6 +1013,7 @@ func (client WorkflowsClient) RegenerateAccessKey(ctx context.Context, resourceG result, err = client.RegenerateAccessKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "RegenerateAccessKey", resp, "Failure responding to request") + return } return @@ -1077,6 +1091,7 @@ func (client WorkflowsClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "Update", resp, "Failure responding to request") + return } return @@ -1156,6 +1171,7 @@ func (client WorkflowsClient) ValidateByLocation(ctx context.Context, resourceGr result, err = client.ValidateByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "ValidateByLocation", resp, "Failure responding to request") + return } return @@ -1234,6 +1250,7 @@ func (client WorkflowsClient) ValidateByResourceGroup(ctx context.Context, resou result, err = client.ValidateByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowsClient", "ValidateByResourceGroup", resp, "Failure responding to request") + return } return diff --git a/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowtriggerhistories.go b/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowtriggerhistories.go index 4ed2afec3389..16a43ea97366 100644 --- a/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowtriggerhistories.go +++ b/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowtriggerhistories.go @@ -76,6 +76,7 @@ func (client WorkflowTriggerHistoriesClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggerHistoriesClient", "Get", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client WorkflowTriggerHistoriesClient) List(ctx context.Context, resourceG result.wthlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggerHistoriesClient", "List", resp, "Failure responding to request") + return } if result.wthlr.hasNextLink() && result.wthlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -229,6 +231,7 @@ func (client WorkflowTriggerHistoriesClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggerHistoriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -283,6 +286,7 @@ func (client WorkflowTriggerHistoriesClient) Resubmit(ctx context.Context, resou result, err = client.ResubmitResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggerHistoriesClient", "Resubmit", resp, "Failure responding to request") + return } return diff --git a/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowtriggers.go b/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowtriggers.go index c9388c3737a1..3d103f62cfaa 100644 --- a/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowtriggers.go +++ b/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowtriggers.go @@ -75,6 +75,7 @@ func (client WorkflowTriggersClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client WorkflowTriggersClient) GetSchemaJSON(ctx context.Context, resource result, err = client.GetSchemaJSONResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "GetSchemaJSON", resp, "Failure responding to request") + return } return @@ -231,6 +233,7 @@ func (client WorkflowTriggersClient) List(ctx context.Context, resourceGroupName result.wtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "List", resp, "Failure responding to request") + return } if result.wtlr.hasNextLink() && result.wtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -301,6 +304,7 @@ func (client WorkflowTriggersClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -353,6 +357,7 @@ func (client WorkflowTriggersClient) ListCallbackURL(ctx context.Context, resour result, err = client.ListCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "ListCallbackURL", resp, "Failure responding to request") + return } return @@ -430,6 +435,7 @@ func (client WorkflowTriggersClient) Reset(ctx context.Context, resourceGroupNam result, err = client.ResetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "Reset", resp, "Failure responding to request") + return } return @@ -506,6 +512,7 @@ func (client WorkflowTriggersClient) Run(ctx context.Context, resourceGroupName result, err = client.RunResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "Run", resp, "Failure responding to request") + return } return @@ -590,6 +597,7 @@ func (client WorkflowTriggersClient) SetState(ctx context.Context, resourceGroup result, err = client.SetStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowTriggersClient", "SetState", resp, "Failure responding to request") + return } return diff --git a/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowversions.go b/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowversions.go index af756bd68e69..8949be3db2e2 100644 --- a/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowversions.go +++ b/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowversions.go @@ -74,6 +74,7 @@ func (client WorkflowVersionsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowVersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client WorkflowVersionsClient) List(ctx context.Context, resourceGroupName result.wvlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowVersionsClient", "List", resp, "Failure responding to request") + return } if result.wvlr.hasNextLink() && result.wvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -219,6 +221,7 @@ func (client WorkflowVersionsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowVersionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowversiontriggers.go b/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowversiontriggers.go index 1a311b2c1ce2..c1f063c15315 100644 --- a/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowversiontriggers.go +++ b/services/preview/logic/mgmt/2018-07-01-preview/logic/workflowversiontriggers.go @@ -76,6 +76,7 @@ func (client WorkflowVersionTriggersClient) ListCallbackURL(ctx context.Context, result, err = client.ListCallbackURLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "logic.WorkflowVersionTriggersClient", "ListCallbackURL", resp, "Failure responding to request") + return } return diff --git a/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/commitmentassociations.go b/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/commitmentassociations.go index b6253174f580..9e773ff9a8dc 100644 --- a/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/commitmentassociations.go +++ b/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/commitmentassociations.go @@ -77,6 +77,7 @@ func (client CommitmentAssociationsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "commitmentplans.CommitmentAssociationsClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client CommitmentAssociationsClient) List(ctx context.Context, resourceGro result.calr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "commitmentplans.CommitmentAssociationsClient", "List", resp, "Failure responding to request") + return } if result.calr.hasNextLink() && result.calr.IsEmpty() { err = result.NextWithContext(ctx) @@ -222,6 +224,7 @@ func (client CommitmentAssociationsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "commitmentplans.CommitmentAssociationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -275,6 +278,7 @@ func (client CommitmentAssociationsClient) Move(ctx context.Context, resourceGro result, err = client.MoveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "commitmentplans.CommitmentAssociationsClient", "Move", resp, "Failure responding to request") + return } return diff --git a/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/commitmentplans.go b/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/commitmentplans.go index 88eb7f3ce598..525d09078893 100644 --- a/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/commitmentplans.go +++ b/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/commitmentplans.go @@ -76,6 +76,7 @@ func (client Client) CreateOrUpdate(ctx context.Context, createOrUpdatePayload C result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "commitmentplans.Client", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, commitme result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "commitmentplans.Client", "Get", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client Client) List(ctx context.Context, skipToken string) (result ListRes result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "commitmentplans.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -294,6 +297,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "commitmentplans.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -346,6 +350,7 @@ func (client Client) ListInResourceGroup(ctx context.Context, resourceGroupName result.lr, err = client.ListInResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "commitmentplans.Client", "ListInResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -412,6 +417,7 @@ func (client Client) listInResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListInResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "commitmentplans.Client", "listInResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -465,6 +471,7 @@ func (client Client) Patch(ctx context.Context, patchPayload PatchPayload, resou result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "commitmentplans.Client", "Patch", resp, "Failure responding to request") + return } return @@ -542,6 +549,7 @@ func (client Client) Remove(ctx context.Context, resourceGroupName string, commi result, err = client.RemoveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "commitmentplans.Client", "Remove", resp, "Failure responding to request") + return } return diff --git a/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/operations.go b/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/operations.go index b64a31a2a972..9fcff1b51af6 100644 --- a/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/operations.go +++ b/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationEntity result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "commitmentplans.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/skus.go b/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/skus.go index 72e93302e29e..4aa9e943ceca 100644 --- a/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/skus.go +++ b/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/skus.go @@ -72,6 +72,7 @@ func (client SkusClient) List(ctx context.Context) (result SkuListResult, err er result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "commitmentplans.SkusClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/usagehistory.go b/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/usagehistory.go index c188742e8fc6..ecc5ecf3c234 100644 --- a/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/usagehistory.go +++ b/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/usagehistory.go @@ -77,6 +77,7 @@ func (client UsageHistoryClient) List(ctx context.Context, resourceGroupName str result.puhlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "commitmentplans.UsageHistoryClient", "List", resp, "Failure responding to request") + return } if result.puhlr.hasNextLink() && result.puhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -144,6 +145,7 @@ func (client UsageHistoryClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "commitmentplans.UsageHistoryClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/machinelearning/mgmt/2016-05-01-preview/webservices/webservices.go b/services/preview/machinelearning/mgmt/2016-05-01-preview/webservices/webservices.go index 6b9b418a92bd..ded9e20ffd5f 100644 --- a/services/preview/machinelearning/mgmt/2016-05-01-preview/webservices/webservices.go +++ b/services/preview/machinelearning/mgmt/2016-05-01-preview/webservices/webservices.go @@ -182,6 +182,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, webServi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "webservices.Client", "Get", resp, "Failure responding to request") + return } return @@ -257,6 +258,7 @@ func (client Client) List(ctx context.Context, skiptoken string) (result Paginat result.pwsl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "webservices.Client", "List", resp, "Failure responding to request") + return } if result.pwsl.hasNextLink() && result.pwsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -322,6 +324,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults PaginatedW result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "webservices.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -374,6 +377,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.pwsl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "webservices.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.pwsl.hasNextLink() && result.pwsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -440,6 +444,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "webservices.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -491,6 +496,7 @@ func (client Client) ListKeys(ctx context.Context, resourceGroupName string, web result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "webservices.Client", "ListKeys", resp, "Failure responding to request") + return } return diff --git a/services/preview/machinelearning/mgmt/2017-05-01-preview/experimentation/accounts.go b/services/preview/machinelearning/mgmt/2017-05-01-preview/experimentation/accounts.go index f34ca56eb47d..ae765302a384 100644 --- a/services/preview/machinelearning/mgmt/2017-05-01-preview/experimentation/accounts.go +++ b/services/preview/machinelearning/mgmt/2017-05-01-preview/experimentation/accounts.go @@ -92,6 +92,7 @@ func (client AccountsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "experimentation.AccountsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client AccountsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "experimentation.AccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -259,6 +261,7 @@ func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "experimentation.AccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -332,6 +335,7 @@ func (client AccountsClient) List(ctx context.Context) (result AccountListResult result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "experimentation.AccountsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +398,7 @@ func (client AccountsClient) listNextResults(ctx context.Context, lastResults Ac result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "experimentation.AccountsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +450,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result.alr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "experimentation.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -508,6 +514,7 @@ func (client AccountsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "experimentation.AccountsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -568,6 +575,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "experimentation.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/machinelearning/mgmt/2017-05-01-preview/experimentation/operations.go b/services/preview/machinelearning/mgmt/2017-05-01-preview/experimentation/operations.go index beaef1ca3c88..b262ff12345f 100644 --- a/services/preview/machinelearning/mgmt/2017-05-01-preview/experimentation/operations.go +++ b/services/preview/machinelearning/mgmt/2017-05-01-preview/experimentation/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "experimentation.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/machinelearning/mgmt/2017-05-01-preview/experimentation/projects.go b/services/preview/machinelearning/mgmt/2017-05-01-preview/experimentation/projects.go index d89844968f90..18a284f33890 100644 --- a/services/preview/machinelearning/mgmt/2017-05-01-preview/experimentation/projects.go +++ b/services/preview/machinelearning/mgmt/2017-05-01-preview/experimentation/projects.go @@ -96,6 +96,7 @@ func (client ProjectsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "experimentation.ProjectsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -193,6 +194,7 @@ func (client ProjectsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "experimentation.ProjectsClient", "Delete", resp, "Failure responding to request") + return } return @@ -287,6 +289,7 @@ func (client ProjectsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "experimentation.ProjectsClient", "Get", resp, "Failure responding to request") + return } return @@ -378,6 +381,7 @@ func (client ProjectsClient) ListByWorkspace(ctx context.Context, accountName st result.plr, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "experimentation.ProjectsClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -443,6 +447,7 @@ func (client ProjectsClient) listByWorkspaceNextResults(ctx context.Context, las result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "experimentation.ProjectsClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -513,6 +518,7 @@ func (client ProjectsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "experimentation.ProjectsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/machinelearning/mgmt/2017-05-01-preview/experimentation/workspaces.go b/services/preview/machinelearning/mgmt/2017-05-01-preview/experimentation/workspaces.go index cf9339b51f9a..f5bd88223c01 100644 --- a/services/preview/machinelearning/mgmt/2017-05-01-preview/experimentation/workspaces.go +++ b/services/preview/machinelearning/mgmt/2017-05-01-preview/experimentation/workspaces.go @@ -91,6 +91,7 @@ func (client WorkspacesClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "experimentation.WorkspacesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -182,6 +183,7 @@ func (client WorkspacesClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "experimentation.WorkspacesClient", "Delete", resp, "Failure responding to request") + return } return @@ -270,6 +272,7 @@ func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "experimentation.WorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +358,7 @@ func (client WorkspacesClient) ListByAccounts(ctx context.Context, accountName s result.wlr, err = client.ListByAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "experimentation.WorkspacesClient", "ListByAccounts", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -419,6 +423,7 @@ func (client WorkspacesClient) listByAccountsNextResults(ctx context.Context, la result, err = client.ListByAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "experimentation.WorkspacesClient", "listByAccountsNextResults", resp, "Failure responding to next results request") + return } return } @@ -484,6 +489,7 @@ func (client WorkspacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "experimentation.WorkspacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/machinelearning/mgmt/2017-08-01-preview/compute/machinelearningcompute.go b/services/preview/machinelearning/mgmt/2017-08-01-preview/compute/machinelearningcompute.go index dc6702e04834..7a0a5ad9b06e 100644 --- a/services/preview/machinelearning/mgmt/2017-08-01-preview/compute/machinelearningcompute.go +++ b/services/preview/machinelearning/mgmt/2017-08-01-preview/compute/machinelearningcompute.go @@ -74,6 +74,7 @@ func (client MachineLearningComputeClient) ListAvailableOperations(ctx context.C result, err = client.ListAvailableOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.MachineLearningComputeClient", "ListAvailableOperations", resp, "Failure responding to request") + return } return diff --git a/services/preview/machinelearning/mgmt/2017-08-01-preview/compute/operationalizationclusters.go b/services/preview/machinelearning/mgmt/2017-08-01-preview/compute/operationalizationclusters.go index 05dcd54b42ee..859a588d06c9 100644 --- a/services/preview/machinelearning/mgmt/2017-08-01-preview/compute/operationalizationclusters.go +++ b/services/preview/machinelearning/mgmt/2017-08-01-preview/compute/operationalizationclusters.go @@ -90,6 +90,7 @@ func (client OperationalizationClustersClient) CheckSystemServicesUpdatesAvailab result, err = client.CheckSystemServicesUpdatesAvailableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.OperationalizationClustersClient", "CheckSystemServicesUpdatesAvailable", resp, "Failure responding to request") + return } return @@ -389,6 +390,7 @@ func (client OperationalizationClustersClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.OperationalizationClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -473,6 +475,7 @@ func (client OperationalizationClustersClient) ListByResourceGroup(ctx context.C result.pocl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.OperationalizationClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.pocl.hasNextLink() && result.pocl.IsEmpty() { err = result.NextWithContext(ctx) @@ -539,6 +542,7 @@ func (client OperationalizationClustersClient) listByResourceGroupNextResults(ct result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.OperationalizationClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -590,6 +594,7 @@ func (client OperationalizationClustersClient) ListBySubscriptionID(ctx context. result.pocl, err = client.ListBySubscriptionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.OperationalizationClustersClient", "ListBySubscriptionID", resp, "Failure responding to request") + return } if result.pocl.hasNextLink() && result.pocl.IsEmpty() { err = result.NextWithContext(ctx) @@ -655,6 +660,7 @@ func (client OperationalizationClustersClient) listBySubscriptionIDNextResults(c result, err = client.ListBySubscriptionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.OperationalizationClustersClient", "listBySubscriptionIDNextResults", resp, "Failure responding to next results request") + return } return } @@ -719,6 +725,7 @@ func (client OperationalizationClustersClient) ListKeys(ctx context.Context, res result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.OperationalizationClustersClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -808,6 +815,7 @@ func (client OperationalizationClustersClient) Update(ctx context.Context, resou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "compute.OperationalizationClustersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/machinelearningcompute.go b/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/machinelearningcompute.go index ef28200a4ba0..a5331581a07c 100644 --- a/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/machinelearningcompute.go +++ b/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/machinelearningcompute.go @@ -233,6 +233,7 @@ func (client MachineLearningComputeClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client MachineLearningComputeClient) ListByWorkspace(ctx context.Context, result.pcrl, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.pcrl.hasNextLink() && result.pcrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -378,6 +380,7 @@ func (client MachineLearningComputeClient) listByWorkspaceNextResults(ctx contex result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -430,6 +433,7 @@ func (client MachineLearningComputeClient) ListKeys(ctx context.Context, resourc result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "ListKeys", resp, "Failure responding to request") + return } return diff --git a/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/operations.go b/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/operations.go index dacd3f85d605..6c7561f842ba 100644 --- a/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/operations.go +++ b/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/workspaces.go b/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/workspaces.go index cdf870e85f7b..037c487f4203 100644 --- a/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/workspaces.go +++ b/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/workspaces.go @@ -73,6 +73,7 @@ func (client WorkspacesClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -224,6 +225,7 @@ func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +302,7 @@ func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resource result.wlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +369,7 @@ func (client WorkspacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +421,7 @@ func (client WorkspacesClient) ListBySubscription(ctx context.Context, skiptoken result.wlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -482,6 +487,7 @@ func (client WorkspacesClient) listBySubscriptionNextResults(ctx context.Context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -534,6 +540,7 @@ func (client WorkspacesClient) ListKeys(ctx context.Context, resourceGroupName s result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -610,6 +617,7 @@ func (client WorkspacesClient) ResyncKeys(ctx context.Context, resourceGroupName result, err = client.ResyncKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ResyncKeys", resp, "Failure responding to request") + return } return @@ -685,6 +693,7 @@ func (client WorkspacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/client.go b/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/client.go index 109e6f4d8065..6b763f267315 100644 --- a/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/client.go +++ b/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/client.go @@ -85,6 +85,7 @@ func (client BaseClient) ListSkus(ctx context.Context) (result SkuListResultPage result.slr, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.BaseClient", "ListSkus", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -147,6 +148,7 @@ func (client BaseClient) listSkusNextResults(ctx context.Context, lastResults Sk result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.BaseClient", "listSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/machinelearningcompute.go b/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/machinelearningcompute.go index 6f23042e0f7a..a036c8774cbd 100644 --- a/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/machinelearningcompute.go +++ b/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/machinelearningcompute.go @@ -236,6 +236,7 @@ func (client MachineLearningComputeClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client MachineLearningComputeClient) ListByWorkspace(ctx context.Context, result.pcrl, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.pcrl.hasNextLink() && result.pcrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client MachineLearningComputeClient) listByWorkspaceNextResults(ctx contex result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -433,6 +436,7 @@ func (client MachineLearningComputeClient) ListKeys(ctx context.Context, resourc result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -510,6 +514,7 @@ func (client MachineLearningComputeClient) ListNodes(ctx context.Context, resour result, err = client.ListNodesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "ListNodes", resp, "Failure responding to request") + return } return @@ -587,6 +592,7 @@ func (client MachineLearningComputeClient) Restart(ctx context.Context, resource result, err = client.RestartResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "Restart", resp, "Failure responding to request") + return } return @@ -663,6 +669,7 @@ func (client MachineLearningComputeClient) Start(ctx context.Context, resourceGr result, err = client.StartResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "Start", resp, "Failure responding to request") + return } return @@ -739,6 +746,7 @@ func (client MachineLearningComputeClient) Stop(ctx context.Context, resourceGro result, err = client.StopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "Stop", resp, "Failure responding to request") + return } return diff --git a/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/operations.go b/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/operations.go index 3583c4427659..994ea238bfa3 100644 --- a/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/operations.go +++ b/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/privateendpointconnections.go b/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/privateendpointconnections.go index 490e534b865b..ecb97fa7f9aa 100644 --- a/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/privateendpointconnections.go +++ b/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/privateendpointconnections.go @@ -76,6 +76,7 @@ func (client PrivateEndpointConnectionsClient) Delete(ctx context.Context, resou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.PrivateEndpointConnectionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client PrivateEndpointConnectionsClient) Put(ctx context.Context, resource result, err = client.PutResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.PrivateEndpointConnectionsClient", "Put", resp, "Failure responding to request") + return } return diff --git a/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/privatelinkresources.go b/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/privatelinkresources.go index 1edb10e7462c..deef10b7cc29 100644 --- a/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/privatelinkresources.go +++ b/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/privatelinkresources.go @@ -74,6 +74,7 @@ func (client PrivateLinkResourcesClient) ListByWorkspace(ctx context.Context, re result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.PrivateLinkResourcesClient", "ListByWorkspace", resp, "Failure responding to request") + return } return diff --git a/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/quotas.go b/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/quotas.go index 77bcc4f958ab..3ed489a8a0da 100644 --- a/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/quotas.go +++ b/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/quotas.go @@ -79,6 +79,7 @@ func (client QuotasClient) List(ctx context.Context, location string) (result Li result.lwq, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.QuotasClient", "List", resp, "Failure responding to request") + return } if result.lwq.hasNextLink() && result.lwq.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client QuotasClient) listNextResults(ctx context.Context, lastResults List result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.QuotasClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -199,6 +201,7 @@ func (client QuotasClient) Update(ctx context.Context, location string, paramete result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.QuotasClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/usages.go b/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/usages.go index a20a2e516c98..318b18af812e 100644 --- a/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/usages.go +++ b/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Li result.lur, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.UsagesClient", "List", resp, "Failure responding to request") + return } if result.lur.hasNextLink() && result.lur.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults List result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/virtualmachinesizes.go b/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/virtualmachinesizes.go index 6716d9b731a9..27e136b9ee61 100644 --- a/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/virtualmachinesizes.go +++ b/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/virtualmachinesizes.go @@ -80,6 +80,7 @@ func (client VirtualMachineSizesClient) List(ctx context.Context, location strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.VirtualMachineSizesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/workspacefeatures.go b/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/workspacefeatures.go index 2421794bff9e..4723dad6fe8c 100644 --- a/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/workspacefeatures.go +++ b/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/workspacefeatures.go @@ -74,6 +74,7 @@ func (client WorkspaceFeaturesClient) List(ctx context.Context, resourceGroupNam result.laufr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspaceFeaturesClient", "List", resp, "Failure responding to request") + return } if result.laufr.hasNextLink() && result.laufr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client WorkspaceFeaturesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspaceFeaturesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/workspaces.go b/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/workspaces.go index 1577b6dc6ea3..a17ca961b01f 100644 --- a/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/workspaces.go +++ b/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/workspaces.go @@ -238,6 +238,7 @@ func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resource result.wlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +382,7 @@ func (client WorkspacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -431,6 +434,7 @@ func (client WorkspacesClient) ListBySubscription(ctx context.Context, skiptoken result.wlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -496,6 +500,7 @@ func (client WorkspacesClient) listBySubscriptionNextResults(ctx context.Context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -548,6 +553,7 @@ func (client WorkspacesClient) ListKeys(ctx context.Context, resourceGroupName s result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -624,6 +630,7 @@ func (client WorkspacesClient) ResyncKeys(ctx context.Context, resourceGroupName result, err = client.ResyncKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "ResyncKeys", resp, "Failure responding to request") + return } return @@ -699,6 +706,7 @@ func (client WorkspacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/applyupdates.go b/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/applyupdates.go index 7ab3430adaef..72470911a88d 100755 --- a/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/applyupdates.go +++ b/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/applyupdates.go @@ -74,6 +74,7 @@ func (client ApplyUpdatesClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ApplyUpdatesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client ApplyUpdatesClient) CreateOrUpdateParent(ctx context.Context, resou result, err = client.CreateOrUpdateParentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ApplyUpdatesClient", "CreateOrUpdateParent", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client ApplyUpdatesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ApplyUpdatesClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +323,7 @@ func (client ApplyUpdatesClient) GetParent(ctx context.Context, resourceGroupNam result, err = client.GetParentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ApplyUpdatesClient", "GetParent", resp, "Failure responding to request") + return } return diff --git a/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/configurationassignments.go b/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/configurationassignments.go index d326a3a1a45a..6c4b7e444ce4 100755 --- a/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/configurationassignments.go +++ b/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/configurationassignments.go @@ -77,6 +77,7 @@ func (client ConfigurationAssignmentsClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ConfigurationAssignmentsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ConfigurationAssignmentsClient) CreateOrUpdateParent(ctx context.Co result, err = client.CreateOrUpdateParentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ConfigurationAssignmentsClient", "CreateOrUpdateParent", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client ConfigurationAssignmentsClient) Delete(ctx context.Context, resourc result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ConfigurationAssignmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -331,6 +334,7 @@ func (client ConfigurationAssignmentsClient) DeleteParent(ctx context.Context, r result, err = client.DeleteParentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ConfigurationAssignmentsClient", "DeleteParent", resp, "Failure responding to request") + return } return @@ -413,6 +417,7 @@ func (client ConfigurationAssignmentsClient) List(ctx context.Context, resourceG result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ConfigurationAssignmentsClient", "List", resp, "Failure responding to request") + return } return @@ -494,6 +499,7 @@ func (client ConfigurationAssignmentsClient) ListParent(ctx context.Context, res result, err = client.ListParentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ConfigurationAssignmentsClient", "ListParent", resp, "Failure responding to request") + return } return diff --git a/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/configurations.go b/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/configurations.go index 711fea226911..e39ed8429e76 100755 --- a/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/configurations.go +++ b/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/configurations.go @@ -73,6 +73,7 @@ func (client ConfigurationsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ConfigurationsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client ConfigurationsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ConfigurationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -225,6 +227,7 @@ func (client ConfigurationsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -297,6 +300,7 @@ func (client ConfigurationsClient) List(ctx context.Context) (result ListMainten result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ConfigurationsClient", "List", resp, "Failure responding to request") + return } return @@ -371,6 +375,7 @@ func (client ConfigurationsClient) UpdateMethod(ctx context.Context, resourceGro result, err = client.UpdateMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.ConfigurationsClient", "UpdateMethod", resp, "Failure responding to request") + return } return diff --git a/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/operations.go b/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/operations.go index 29310f005cc6..8aca4941de07 100755 --- a/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/operations.go +++ b/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/updates.go b/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/updates.go index 9b795da8bc4f..92b2460ed98e 100755 --- a/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/updates.go +++ b/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/updates.go @@ -74,6 +74,7 @@ func (client UpdatesClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.UpdatesClient", "List", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client UpdatesClient) ListParent(ctx context.Context, resourceGroupName st result, err = client.ListParentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maintenance.UpdatesClient", "ListParent", resp, "Failure responding to request") + return } return diff --git a/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/groups.go b/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/groups.go index 90b4ad6c39b3..f1b5ac61a205 100644 --- a/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/groups.go +++ b/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/groups.go @@ -234,6 +234,7 @@ func (client GroupsClient) Get(ctx context.Context, resourceGroupName string, ma result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managednetwork.GroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client GroupsClient) ListByManagedNetwork(ctx context.Context, resourceGro result.glr, err = client.ListByManagedNetworkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managednetwork.GroupsClient", "ListByManagedNetwork", resp, "Failure responding to request") + return } if result.glr.hasNextLink() && result.glr.IsEmpty() { err = result.NextWithContext(ctx) @@ -395,6 +397,7 @@ func (client GroupsClient) listByManagedNetworkNextResults(ctx context.Context, result, err = client.ListByManagedNetworkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managednetwork.GroupsClient", "listByManagedNetworkNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/managednetworks.go b/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/managednetworks.go index 38960f343b0b..610c9d06e937 100644 --- a/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/managednetworks.go +++ b/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/managednetworks.go @@ -77,6 +77,7 @@ func (client ManagedNetworksClient) CreateOrUpdate(ctx context.Context, managedN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managednetwork.ManagedNetworksClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -230,6 +231,7 @@ func (client ManagedNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managednetwork.ManagedNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +321,7 @@ func (client ManagedNetworksClient) ListByResourceGroup(ctx context.Context, res result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managednetwork.ManagedNetworksClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -388,6 +391,7 @@ func (client ManagedNetworksClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managednetwork.ManagedNetworksClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -452,6 +456,7 @@ func (client ManagedNetworksClient) ListBySubscription(ctx context.Context, top result.lr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managednetwork.ManagedNetworksClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -520,6 +525,7 @@ func (client ManagedNetworksClient) listBySubscriptionNextResults(ctx context.Co result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managednetwork.ManagedNetworksClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/operations.go b/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/operations.go index bc3e938feeac..848eb0228c20 100644 --- a/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/operations.go +++ b/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managednetwork.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managednetwork.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/peeringpolicies.go b/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/peeringpolicies.go index d2260b7d34ad..bacb662c5e61 100644 --- a/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/peeringpolicies.go +++ b/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/peeringpolicies.go @@ -234,6 +234,7 @@ func (client PeeringPoliciesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managednetwork.PeeringPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client PeeringPoliciesClient) ListByManagedNetwork(ctx context.Context, re result.pplr, err = client.ListByManagedNetworkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managednetwork.PeeringPoliciesClient", "ListByManagedNetwork", resp, "Failure responding to request") + return } if result.pplr.hasNextLink() && result.pplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -395,6 +397,7 @@ func (client PeeringPoliciesClient) listByManagedNetworkNextResults(ctx context. result, err = client.ListByManagedNetworkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managednetwork.PeeringPoliciesClient", "listByManagedNetworkNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/scopeassignments.go b/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/scopeassignments.go index 793364b9014b..37544ff6bd7e 100644 --- a/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/scopeassignments.go +++ b/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/scopeassignments.go @@ -80,6 +80,7 @@ func (client ScopeAssignmentsClient) CreateOrUpdate(ctx context.Context, paramet result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managednetwork.ScopeAssignmentsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client ScopeAssignmentsClient) Delete(ctx context.Context, scope string, s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managednetwork.ScopeAssignmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client ScopeAssignmentsClient) Get(ctx context.Context, scope string, scop result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managednetwork.ScopeAssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +306,7 @@ func (client ScopeAssignmentsClient) List(ctx context.Context, scope string) (re result.salr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managednetwork.ScopeAssignmentsClient", "List", resp, "Failure responding to request") + return } if result.salr.hasNextLink() && result.salr.IsEmpty() { err = result.NextWithContext(ctx) @@ -365,6 +369,7 @@ func (client ScopeAssignmentsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managednetwork.ScopeAssignmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/managedservices/mgmt/2018-06-01/managedservices/operations.go b/services/preview/managedservices/mgmt/2018-06-01/managedservices/operations.go index 747a45b7d888..ccade8e82bad 100644 --- a/services/preview/managedservices/mgmt/2018-06-01/managedservices/operations.go +++ b/services/preview/managedservices/mgmt/2018-06-01/managedservices/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context, APIVersion string) (res result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/managedservices/mgmt/2018-06-01/managedservices/registrationassignments.go b/services/preview/managedservices/mgmt/2018-06-01/managedservices/registrationassignments.go index 5f99e0668ad9..8ab4dc26ca63 100644 --- a/services/preview/managedservices/mgmt/2018-06-01/managedservices/registrationassignments.go +++ b/services/preview/managedservices/mgmt/2018-06-01/managedservices/registrationassignments.go @@ -92,6 +92,7 @@ func (client RegistrationAssignmentsClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.RegistrationAssignmentsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client RegistrationAssignmentsClient) Delete(ctx context.Context, scope st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.RegistrationAssignmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client RegistrationAssignmentsClient) Get(ctx context.Context, scope strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.RegistrationAssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +328,7 @@ func (client RegistrationAssignmentsClient) List(ctx context.Context, scope stri result.ral, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.RegistrationAssignmentsClient", "List", resp, "Failure responding to request") + return } if result.ral.hasNextLink() && result.ral.IsEmpty() { err = result.NextWithContext(ctx) @@ -389,6 +393,7 @@ func (client RegistrationAssignmentsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.RegistrationAssignmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/managedservices/mgmt/2018-06-01/managedservices/registrationdefinitions.go b/services/preview/managedservices/mgmt/2018-06-01/managedservices/registrationdefinitions.go index 2b7480a3c6a8..406078f8ee37 100644 --- a/services/preview/managedservices/mgmt/2018-06-01/managedservices/registrationdefinitions.go +++ b/services/preview/managedservices/mgmt/2018-06-01/managedservices/registrationdefinitions.go @@ -91,6 +91,7 @@ func (client RegistrationDefinitionsClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.RegistrationDefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client RegistrationDefinitionsClient) Delete(ctx context.Context, registra result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.RegistrationDefinitionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -243,6 +245,7 @@ func (client RegistrationDefinitionsClient) Get(ctx context.Context, scope strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.RegistrationDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client RegistrationDefinitionsClient) List(ctx context.Context, scope stri result.rdl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.RegistrationDefinitionsClient", "List", resp, "Failure responding to request") + return } if result.rdl.hasNextLink() && result.rdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -378,6 +382,7 @@ func (client RegistrationDefinitionsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.RegistrationDefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/managedservices/mgmt/2019-04-01/managedservices/operations.go b/services/preview/managedservices/mgmt/2019-04-01/managedservices/operations.go index 747a45b7d888..ccade8e82bad 100644 --- a/services/preview/managedservices/mgmt/2019-04-01/managedservices/operations.go +++ b/services/preview/managedservices/mgmt/2019-04-01/managedservices/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context, APIVersion string) (res result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/managedservices/mgmt/2019-04-01/managedservices/registrationassignments.go b/services/preview/managedservices/mgmt/2019-04-01/managedservices/registrationassignments.go index 434b5ee3f3ef..56b0a2d36250 100644 --- a/services/preview/managedservices/mgmt/2019-04-01/managedservices/registrationassignments.go +++ b/services/preview/managedservices/mgmt/2019-04-01/managedservices/registrationassignments.go @@ -246,6 +246,7 @@ func (client RegistrationAssignmentsClient) Get(ctx context.Context, scope strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.RegistrationAssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client RegistrationAssignmentsClient) List(ctx context.Context, scope stri result.ral, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.RegistrationAssignmentsClient", "List", resp, "Failure responding to request") + return } if result.ral.hasNextLink() && result.ral.IsEmpty() { err = result.NextWithContext(ctx) @@ -389,6 +391,7 @@ func (client RegistrationAssignmentsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.RegistrationAssignmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/managedservices/mgmt/2019-04-01/managedservices/registrationdefinitions.go b/services/preview/managedservices/mgmt/2019-04-01/managedservices/registrationdefinitions.go index 6615e6414e81..32bce3d126fa 100644 --- a/services/preview/managedservices/mgmt/2019-04-01/managedservices/registrationdefinitions.go +++ b/services/preview/managedservices/mgmt/2019-04-01/managedservices/registrationdefinitions.go @@ -170,6 +170,7 @@ func (client RegistrationDefinitionsClient) Delete(ctx context.Context, registra result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.RegistrationDefinitionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -243,6 +244,7 @@ func (client RegistrationDefinitionsClient) Get(ctx context.Context, scope strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.RegistrationDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +319,7 @@ func (client RegistrationDefinitionsClient) List(ctx context.Context, scope stri result.rdl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.RegistrationDefinitionsClient", "List", resp, "Failure responding to request") + return } if result.rdl.hasNextLink() && result.rdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -378,6 +381,7 @@ func (client RegistrationDefinitionsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedservices.RegistrationDefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/managementpartner/mgmt/2018-02-01/managementpartner/operation.go b/services/preview/managementpartner/mgmt/2018-02-01/managementpartner/operation.go index 5bd48c962320..2b89efef1861 100644 --- a/services/preview/managementpartner/mgmt/2018-02-01/managementpartner/operation.go +++ b/services/preview/managementpartner/mgmt/2018-02-01/managementpartner/operation.go @@ -70,6 +70,7 @@ func (client OperationClient) List(ctx context.Context) (result OperationListPag result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementpartner.OperationClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationClient) listNextResults(ctx context.Context, lastResults O result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementpartner.OperationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/managementpartner/mgmt/2018-02-01/managementpartner/partner.go b/services/preview/managementpartner/mgmt/2018-02-01/managementpartner/partner.go index d3fc37ab0b74..40e070b6527e 100644 --- a/services/preview/managementpartner/mgmt/2018-02-01/managementpartner/partner.go +++ b/services/preview/managementpartner/mgmt/2018-02-01/managementpartner/partner.go @@ -71,6 +71,7 @@ func (client PartnerClient) Create(ctx context.Context, partnerID string) (resul result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementpartner.PartnerClient", "Create", resp, "Failure responding to request") + return } return @@ -143,6 +144,7 @@ func (client PartnerClient) Delete(ctx context.Context, partnerID string) (resul result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementpartner.PartnerClient", "Delete", resp, "Failure responding to request") + return } return @@ -214,6 +216,7 @@ func (client PartnerClient) Get(ctx context.Context, partnerID string) (result P result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementpartner.PartnerClient", "Get", resp, "Failure responding to request") + return } return @@ -286,6 +289,7 @@ func (client PartnerClient) Update(ctx context.Context, partnerID string) (resul result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementpartner.PartnerClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/managementpartner/mgmt/2018-02-01/managementpartner/partners.go b/services/preview/managementpartner/mgmt/2018-02-01/managementpartner/partners.go index 27a8a3a59f39..8c988bc08a3b 100644 --- a/services/preview/managementpartner/mgmt/2018-02-01/managementpartner/partners.go +++ b/services/preview/managementpartner/mgmt/2018-02-01/managementpartner/partners.go @@ -69,6 +69,7 @@ func (client PartnersClient) Get(ctx context.Context) (result PartnerResponse, e result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementpartner.PartnersClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/maps/mgmt/2020-02-01-preview/maps/accounts.go b/services/preview/maps/mgmt/2020-02-01-preview/maps/accounts.go index d3b0a2c3fddd..773e4b9a0c59 100644 --- a/services/preview/maps/mgmt/2020-02-01-preview/maps/accounts.go +++ b/services/preview/maps/mgmt/2020-02-01-preview/maps/accounts.go @@ -89,6 +89,7 @@ func (client AccountsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client AccountsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +347,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -421,6 +425,7 @@ func (client AccountsClient) ListBySubscription(ctx context.Context) (result Acc result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -505,6 +510,7 @@ func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName str result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -592,6 +598,7 @@ func (client AccountsClient) RegenerateKeys(ctx context.Context, resourceGroupNa result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "RegenerateKeys", resp, "Failure responding to request") + return } return @@ -680,6 +687,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/maps/mgmt/2020-02-01-preview/maps/creators.go b/services/preview/maps/mgmt/2020-02-01-preview/maps/creators.go index 5f3b178c9a6f..3dfdc32221cb 100644 --- a/services/preview/maps/mgmt/2020-02-01-preview/maps/creators.go +++ b/services/preview/maps/mgmt/2020-02-01-preview/maps/creators.go @@ -88,6 +88,7 @@ func (client CreatorsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.CreatorsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client CreatorsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.CreatorsClient", "Delete", resp, "Failure responding to request") + return } return @@ -263,6 +265,7 @@ func (client CreatorsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.CreatorsClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client CreatorsClient) ListByAccount(ctx context.Context, resourceGroupNam result, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.CreatorsClient", "ListByAccount", resp, "Failure responding to request") + return } return @@ -437,6 +441,7 @@ func (client CreatorsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.CreatorsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/maps/mgmt/2020-02-01-preview/maps/maps.go b/services/preview/maps/mgmt/2020-02-01-preview/maps/maps.go index d57efa994b5c..3dfc245894f0 100644 --- a/services/preview/maps/mgmt/2020-02-01-preview/maps/maps.go +++ b/services/preview/maps/mgmt/2020-02-01-preview/maps/maps.go @@ -69,6 +69,7 @@ func (client Client) ListOperations(ctx context.Context) (result Operations, err result, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.Client", "ListOperations", resp, "Failure responding to request") + return } return diff --git a/services/preview/maps/mgmt/2020-02-01-preview/maps/privateatlases.go b/services/preview/maps/mgmt/2020-02-01-preview/maps/privateatlases.go index cb40dc82cda9..eb4e5e1a1bff 100644 --- a/services/preview/maps/mgmt/2020-02-01-preview/maps/privateatlases.go +++ b/services/preview/maps/mgmt/2020-02-01-preview/maps/privateatlases.go @@ -88,6 +88,7 @@ func (client PrivateAtlasesClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.PrivateAtlasesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client PrivateAtlasesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.PrivateAtlasesClient", "Delete", resp, "Failure responding to request") + return } return @@ -263,6 +265,7 @@ func (client PrivateAtlasesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.PrivateAtlasesClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client PrivateAtlasesClient) ListByAccount(ctx context.Context, resourceGr result, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.PrivateAtlasesClient", "ListByAccount", resp, "Failure responding to request") + return } return @@ -437,6 +441,7 @@ func (client PrivateAtlasesClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "maps.PrivateAtlasesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/assets.go b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/assets.go index 8be576bfcbab..f8c1bdcb1a8a 100644 --- a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/assets.go +++ b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/assets.go @@ -74,6 +74,7 @@ func (client AssetsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client AssetsClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client AssetsClient) Get(ctx context.Context, resourceGroupName string, ac result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +310,7 @@ func (client AssetsClient) GetEncryptionKey(ctx context.Context, resourceGroupNa result, err = client.GetEncryptionKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "GetEncryptionKey", resp, "Failure responding to request") + return } return @@ -388,6 +392,7 @@ func (client AssetsClient) List(ctx context.Context, resourceGroupName string, a result.ac, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "List", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -461,6 +466,7 @@ func (client AssetsClient) listNextResults(ctx context.Context, lastResults Asse result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +521,7 @@ func (client AssetsClient) ListContainerSas(ctx context.Context, resourceGroupNa result, err = client.ListContainerSasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "ListContainerSas", resp, "Failure responding to request") + return } return @@ -595,6 +602,7 @@ func (client AssetsClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/contentkeypolicies.go b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/contentkeypolicies.go index d01b42de1d83..056b096f9156 100644 --- a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/contentkeypolicies.go +++ b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/contentkeypolicies.go @@ -83,6 +83,7 @@ func (client ContentKeyPoliciesClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client ContentKeyPoliciesClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client ContentKeyPoliciesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +318,7 @@ func (client ContentKeyPoliciesClient) GetPolicyPropertiesWithSecrets(ctx contex result, err = client.GetPolicyPropertiesWithSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "GetPolicyPropertiesWithSecrets", resp, "Failure responding to request") + return } return @@ -396,6 +400,7 @@ func (client ContentKeyPoliciesClient) List(ctx context.Context, resourceGroupNa result.ckpc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "List", resp, "Failure responding to request") + return } if result.ckpc.hasNextLink() && result.ckpc.IsEmpty() { err = result.NextWithContext(ctx) @@ -469,6 +474,7 @@ func (client ContentKeyPoliciesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -522,6 +528,7 @@ func (client ContentKeyPoliciesClient) Update(ctx context.Context, resourceGroup result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/jobs.go b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/jobs.go index 289ee4a64396..59d999b08f40 100644 --- a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/jobs.go +++ b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/jobs.go @@ -75,6 +75,7 @@ func (client JobsClient) CancelJob(ctx context.Context, resourceGroupName string result, err = client.CancelJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "CancelJob", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client JobsClient) Create(ctx context.Context, resourceGroupName string, a result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "Create", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client JobsClient) Delete(ctx context.Context, resourceGroupName string, a result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "Delete", resp, "Failure responding to request") + return } return @@ -322,6 +325,7 @@ func (client JobsClient) Get(ctx context.Context, resourceGroupName string, acco result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "Get", resp, "Failure responding to request") + return } return @@ -406,6 +410,7 @@ func (client JobsClient) List(ctx context.Context, resourceGroupName string, acc result.jc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "List", resp, "Failure responding to request") + return } if result.jc.hasNextLink() && result.jc.IsEmpty() { err = result.NextWithContext(ctx) @@ -480,6 +485,7 @@ func (client JobsClient) listNextResults(ctx context.Context, lastResults JobCol result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/liveevents.go b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/liveevents.go index 1b29cefd2771..314c84b7f6e6 100644 --- a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/liveevents.go +++ b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/liveevents.go @@ -261,6 +261,7 @@ func (client LiveEventsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveEventsClient", "Get", resp, "Failure responding to request") + return } return @@ -338,6 +339,7 @@ func (client LiveEventsClient) List(ctx context.Context, resourceGroupName strin result.lelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveEventsClient", "List", resp, "Failure responding to request") + return } if result.lelr.hasNextLink() && result.lelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +404,7 @@ func (client LiveEventsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveEventsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/liveoutputs.go b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/liveoutputs.go index 6dfbe0288b18..18fb85063626 100644 --- a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/liveoutputs.go +++ b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/liveoutputs.go @@ -276,6 +276,7 @@ func (client LiveOutputsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveOutputsClient", "Get", resp, "Failure responding to request") + return } return @@ -363,6 +364,7 @@ func (client LiveOutputsClient) List(ctx context.Context, resourceGroupName stri result.lolr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveOutputsClient", "List", resp, "Failure responding to request") + return } if result.lolr.hasNextLink() && result.lolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -428,6 +430,7 @@ func (client LiveOutputsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveOutputsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/locations.go b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/locations.go index 8eee14e85d88..2876d29b671b 100644 --- a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/locations.go +++ b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/locations.go @@ -71,6 +71,7 @@ func (client LocationsClient) CheckNameAvailability(ctx context.Context, locatio result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LocationsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/mediaservices.go b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/mediaservices.go index 23ca1c2a01af..f4f7ad163f95 100644 --- a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/mediaservices.go +++ b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/mediaservices.go @@ -73,6 +73,7 @@ func (client MediaservicesClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client MediaservicesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -224,6 +226,7 @@ func (client MediaservicesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +301,7 @@ func (client MediaservicesClient) GetBySubscription(ctx context.Context, account result, err = client.GetBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "GetBySubscription", resp, "Failure responding to request") + return } return @@ -372,6 +376,7 @@ func (client MediaservicesClient) List(ctx context.Context, resourceGroupName st result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -435,6 +440,7 @@ func (client MediaservicesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -484,6 +490,7 @@ func (client MediaservicesClient) ListBySubscription(ctx context.Context) (resul result.smsc, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.smsc.hasNextLink() && result.smsc.IsEmpty() { err = result.NextWithContext(ctx) @@ -546,6 +553,7 @@ func (client MediaservicesClient) listBySubscriptionNextResults(ctx context.Cont result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -598,6 +606,7 @@ func (client MediaservicesClient) SyncStorageKeys(ctx context.Context, resourceG result, err = client.SyncStorageKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "SyncStorageKeys", resp, "Failure responding to request") + return } return @@ -675,6 +684,7 @@ func (client MediaservicesClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/operations.go b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/operations.go index a2b60ee6e0be..0cdf91c2b2f4 100644 --- a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/operations.go +++ b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationCollec result.oc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.OperationsClient", "List", resp, "Failure responding to request") + return } if result.oc.hasNextLink() && result.oc.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/streamingendpoints.go b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/streamingendpoints.go index cafa0daf885e..73e278ec4846 100644 --- a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/streamingendpoints.go +++ b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/streamingendpoints.go @@ -259,6 +259,7 @@ func (client StreamingEndpointsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -336,6 +337,7 @@ func (client StreamingEndpointsClient) List(ctx context.Context, resourceGroupNa result.selr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingEndpointsClient", "List", resp, "Failure responding to request") + return } if result.selr.hasNextLink() && result.selr.IsEmpty() { err = result.NextWithContext(ctx) @@ -400,6 +402,7 @@ func (client StreamingEndpointsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/streaminglocators.go b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/streaminglocators.go index 163aa81cbcef..0be4002900db 100644 --- a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/streaminglocators.go +++ b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/streaminglocators.go @@ -85,6 +85,7 @@ func (client StreamingLocatorsClient) Create(ctx context.Context, resourceGroupN result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "Create", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client StreamingLocatorsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "Delete", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client StreamingLocatorsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +324,7 @@ func (client StreamingLocatorsClient) List(ctx context.Context, resourceGroupNam result.slc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "List", resp, "Failure responding to request") + return } if result.slc.hasNextLink() && result.slc.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +398,7 @@ func (client StreamingLocatorsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -446,6 +451,7 @@ func (client StreamingLocatorsClient) ListContentKeys(ctx context.Context, resou result, err = client.ListContentKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "ListContentKeys", resp, "Failure responding to request") + return } return @@ -523,6 +529,7 @@ func (client StreamingLocatorsClient) ListPaths(ctx context.Context, resourceGro result, err = client.ListPathsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "ListPaths", resp, "Failure responding to request") + return } return diff --git a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/streamingpolicies.go b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/streamingpolicies.go index 42611653ee0d..22f8d76101d3 100644 --- a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/streamingpolicies.go +++ b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/streamingpolicies.go @@ -119,6 +119,7 @@ func (client StreamingPoliciesClient) Create(ctx context.Context, resourceGroupN result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingPoliciesClient", "Create", resp, "Failure responding to request") + return } return @@ -198,6 +199,7 @@ func (client StreamingPoliciesClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client StreamingPoliciesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +358,7 @@ func (client StreamingPoliciesClient) List(ctx context.Context, resourceGroupNam result.spc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingPoliciesClient", "List", resp, "Failure responding to request") + return } if result.spc.hasNextLink() && result.spc.IsEmpty() { err = result.NextWithContext(ctx) @@ -428,6 +432,7 @@ func (client StreamingPoliciesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/transforms.go b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/transforms.go index b738a98dfb8d..119f60ea26eb 100644 --- a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/transforms.go +++ b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/transforms.go @@ -82,6 +82,7 @@ func (client TransformsClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client TransformsClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client TransformsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +322,7 @@ func (client TransformsClient) List(ctx context.Context, resourceGroupName strin result.tc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "List", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -392,6 +396,7 @@ func (client TransformsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +450,7 @@ func (client TransformsClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/assets.go b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/assets.go index c03af10d0f7a..b414154d6bf0 100644 --- a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/assets.go +++ b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/assets.go @@ -74,6 +74,7 @@ func (client AssetsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client AssetsClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client AssetsClient) Get(ctx context.Context, resourceGroupName string, ac result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +310,7 @@ func (client AssetsClient) GetEncryptionKey(ctx context.Context, resourceGroupNa result, err = client.GetEncryptionKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "GetEncryptionKey", resp, "Failure responding to request") + return } return @@ -388,6 +392,7 @@ func (client AssetsClient) List(ctx context.Context, resourceGroupName string, a result.ac, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "List", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -461,6 +466,7 @@ func (client AssetsClient) listNextResults(ctx context.Context, lastResults Asse result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +521,7 @@ func (client AssetsClient) ListContainerSas(ctx context.Context, resourceGroupNa result, err = client.ListContainerSasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "ListContainerSas", resp, "Failure responding to request") + return } return @@ -595,6 +602,7 @@ func (client AssetsClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/contentkeypolicies.go b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/contentkeypolicies.go index abd577224d66..0c8fac5d3d51 100644 --- a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/contentkeypolicies.go +++ b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/contentkeypolicies.go @@ -83,6 +83,7 @@ func (client ContentKeyPoliciesClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client ContentKeyPoliciesClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client ContentKeyPoliciesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +318,7 @@ func (client ContentKeyPoliciesClient) GetPolicyPropertiesWithSecrets(ctx contex result, err = client.GetPolicyPropertiesWithSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "GetPolicyPropertiesWithSecrets", resp, "Failure responding to request") + return } return @@ -396,6 +400,7 @@ func (client ContentKeyPoliciesClient) List(ctx context.Context, resourceGroupNa result.ckpc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "List", resp, "Failure responding to request") + return } if result.ckpc.hasNextLink() && result.ckpc.IsEmpty() { err = result.NextWithContext(ctx) @@ -469,6 +474,7 @@ func (client ContentKeyPoliciesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -522,6 +528,7 @@ func (client ContentKeyPoliciesClient) Update(ctx context.Context, resourceGroup result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/jobs.go b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/jobs.go index e7421b9dfd33..029af0831df8 100644 --- a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/jobs.go +++ b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/jobs.go @@ -75,6 +75,7 @@ func (client JobsClient) CancelJob(ctx context.Context, resourceGroupName string result, err = client.CancelJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "CancelJob", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client JobsClient) Create(ctx context.Context, resourceGroupName string, a result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "Create", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client JobsClient) Delete(ctx context.Context, resourceGroupName string, a result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "Delete", resp, "Failure responding to request") + return } return @@ -322,6 +325,7 @@ func (client JobsClient) Get(ctx context.Context, resourceGroupName string, acco result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "Get", resp, "Failure responding to request") + return } return @@ -406,6 +410,7 @@ func (client JobsClient) List(ctx context.Context, resourceGroupName string, acc result.jc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "List", resp, "Failure responding to request") + return } if result.jc.hasNextLink() && result.jc.IsEmpty() { err = result.NextWithContext(ctx) @@ -480,6 +485,7 @@ func (client JobsClient) listNextResults(ctx context.Context, lastResults JobCol result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/liveevents.go b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/liveevents.go index cc3962df9e58..5d658563fef0 100644 --- a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/liveevents.go +++ b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/liveevents.go @@ -261,6 +261,7 @@ func (client LiveEventsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveEventsClient", "Get", resp, "Failure responding to request") + return } return @@ -338,6 +339,7 @@ func (client LiveEventsClient) List(ctx context.Context, resourceGroupName strin result.lelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveEventsClient", "List", resp, "Failure responding to request") + return } if result.lelr.hasNextLink() && result.lelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +404,7 @@ func (client LiveEventsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveEventsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/liveoutputs.go b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/liveoutputs.go index 004cf3166d20..67857fe37e1a 100644 --- a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/liveoutputs.go +++ b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/liveoutputs.go @@ -276,6 +276,7 @@ func (client LiveOutputsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveOutputsClient", "Get", resp, "Failure responding to request") + return } return @@ -363,6 +364,7 @@ func (client LiveOutputsClient) List(ctx context.Context, resourceGroupName stri result.lolr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveOutputsClient", "List", resp, "Failure responding to request") + return } if result.lolr.hasNextLink() && result.lolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -428,6 +430,7 @@ func (client LiveOutputsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveOutputsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/locations.go b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/locations.go index ddc05e089f75..6136a41f158b 100644 --- a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/locations.go +++ b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/locations.go @@ -71,6 +71,7 @@ func (client LocationsClient) CheckNameAvailability(ctx context.Context, locatio result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LocationsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/mediaservices.go b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/mediaservices.go index afdd952bc43c..521eb5e48070 100644 --- a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/mediaservices.go +++ b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/mediaservices.go @@ -73,6 +73,7 @@ func (client MediaservicesClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client MediaservicesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -224,6 +226,7 @@ func (client MediaservicesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +301,7 @@ func (client MediaservicesClient) GetBySubscription(ctx context.Context, account result, err = client.GetBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "GetBySubscription", resp, "Failure responding to request") + return } return @@ -372,6 +376,7 @@ func (client MediaservicesClient) List(ctx context.Context, resourceGroupName st result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -435,6 +440,7 @@ func (client MediaservicesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -484,6 +490,7 @@ func (client MediaservicesClient) ListBySubscription(ctx context.Context) (resul result.smsc, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.smsc.hasNextLink() && result.smsc.IsEmpty() { err = result.NextWithContext(ctx) @@ -546,6 +553,7 @@ func (client MediaservicesClient) listBySubscriptionNextResults(ctx context.Cont result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -598,6 +606,7 @@ func (client MediaservicesClient) SyncStorageKeys(ctx context.Context, resourceG result, err = client.SyncStorageKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "SyncStorageKeys", resp, "Failure responding to request") + return } return @@ -675,6 +684,7 @@ func (client MediaservicesClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/operations.go b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/operations.go index f2cd30dc8707..ee1100d74bc2 100644 --- a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/operations.go +++ b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationCollec result.oc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.OperationsClient", "List", resp, "Failure responding to request") + return } if result.oc.hasNextLink() && result.oc.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/streamingendpoints.go b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/streamingendpoints.go index 5f56e9da9bb3..b207386e0c4b 100644 --- a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/streamingendpoints.go +++ b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/streamingendpoints.go @@ -259,6 +259,7 @@ func (client StreamingEndpointsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -336,6 +337,7 @@ func (client StreamingEndpointsClient) List(ctx context.Context, resourceGroupNa result.selr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingEndpointsClient", "List", resp, "Failure responding to request") + return } if result.selr.hasNextLink() && result.selr.IsEmpty() { err = result.NextWithContext(ctx) @@ -400,6 +402,7 @@ func (client StreamingEndpointsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/streaminglocators.go b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/streaminglocators.go index 103f7971ebf3..95e763fcf12e 100644 --- a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/streaminglocators.go +++ b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/streaminglocators.go @@ -85,6 +85,7 @@ func (client StreamingLocatorsClient) Create(ctx context.Context, resourceGroupN result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "Create", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client StreamingLocatorsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "Delete", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client StreamingLocatorsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +324,7 @@ func (client StreamingLocatorsClient) List(ctx context.Context, resourceGroupNam result.slc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "List", resp, "Failure responding to request") + return } if result.slc.hasNextLink() && result.slc.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +398,7 @@ func (client StreamingLocatorsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -446,6 +451,7 @@ func (client StreamingLocatorsClient) ListContentKeys(ctx context.Context, resou result, err = client.ListContentKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "ListContentKeys", resp, "Failure responding to request") + return } return @@ -523,6 +529,7 @@ func (client StreamingLocatorsClient) ListPaths(ctx context.Context, resourceGro result, err = client.ListPathsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "ListPaths", resp, "Failure responding to request") + return } return diff --git a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/streamingpolicies.go b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/streamingpolicies.go index 0707d80b8c7e..9d96e222e6cd 100644 --- a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/streamingpolicies.go +++ b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/streamingpolicies.go @@ -119,6 +119,7 @@ func (client StreamingPoliciesClient) Create(ctx context.Context, resourceGroupN result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingPoliciesClient", "Create", resp, "Failure responding to request") + return } return @@ -198,6 +199,7 @@ func (client StreamingPoliciesClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client StreamingPoliciesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +358,7 @@ func (client StreamingPoliciesClient) List(ctx context.Context, resourceGroupNam result.spc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingPoliciesClient", "List", resp, "Failure responding to request") + return } if result.spc.hasNextLink() && result.spc.IsEmpty() { err = result.NextWithContext(ctx) @@ -428,6 +432,7 @@ func (client StreamingPoliciesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/transforms.go b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/transforms.go index 857a5d305666..6b36b597f1c2 100644 --- a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/transforms.go +++ b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/transforms.go @@ -82,6 +82,7 @@ func (client TransformsClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client TransformsClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client TransformsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +322,7 @@ func (client TransformsClient) List(ctx context.Context, resourceGroupName strin result.tc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "List", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -392,6 +396,7 @@ func (client TransformsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +450,7 @@ func (client TransformsClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/accountfilters.go b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/accountfilters.go index 9e95dc1fa2c7..e51eaf8028cf 100644 --- a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/accountfilters.go +++ b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/accountfilters.go @@ -84,6 +84,7 @@ func (client AccountFiltersClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AccountFiltersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client AccountFiltersClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AccountFiltersClient", "Delete", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client AccountFiltersClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AccountFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client AccountFiltersClient) List(ctx context.Context, resourceGroupName s result.afc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AccountFiltersClient", "List", resp, "Failure responding to request") + return } if result.afc.hasNextLink() && result.afc.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +384,7 @@ func (client AccountFiltersClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AccountFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -433,6 +438,7 @@ func (client AccountFiltersClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AccountFiltersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/assetfilters.go b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/assetfilters.go index ca3cb9c56f34..15d032535fda 100644 --- a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/assetfilters.go +++ b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/assetfilters.go @@ -85,6 +85,7 @@ func (client AssetFiltersClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetFiltersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client AssetFiltersClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetFiltersClient", "Delete", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client AssetFiltersClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetFiltersClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +326,7 @@ func (client AssetFiltersClient) List(ctx context.Context, resourceGroupName str result.afc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetFiltersClient", "List", resp, "Failure responding to request") + return } if result.afc.hasNextLink() && result.afc.IsEmpty() { err = result.NextWithContext(ctx) @@ -388,6 +392,7 @@ func (client AssetFiltersClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetFiltersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -442,6 +447,7 @@ func (client AssetFiltersClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetFiltersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/assets.go b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/assets.go index f888ce7a3128..39c53fcca05a 100644 --- a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/assets.go +++ b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/assets.go @@ -74,6 +74,7 @@ func (client AssetsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client AssetsClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client AssetsClient) Get(ctx context.Context, resourceGroupName string, ac result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +310,7 @@ func (client AssetsClient) GetEncryptionKey(ctx context.Context, resourceGroupNa result, err = client.GetEncryptionKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "GetEncryptionKey", resp, "Failure responding to request") + return } return @@ -388,6 +392,7 @@ func (client AssetsClient) List(ctx context.Context, resourceGroupName string, a result.ac, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "List", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -461,6 +466,7 @@ func (client AssetsClient) listNextResults(ctx context.Context, lastResults Asse result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +521,7 @@ func (client AssetsClient) ListContainerSas(ctx context.Context, resourceGroupNa result, err = client.ListContainerSasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "ListContainerSas", resp, "Failure responding to request") + return } return @@ -594,6 +601,7 @@ func (client AssetsClient) ListStreamingLocators(ctx context.Context, resourceGr result, err = client.ListStreamingLocatorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "ListStreamingLocators", resp, "Failure responding to request") + return } return @@ -672,6 +680,7 @@ func (client AssetsClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.AssetsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/contentkeypolicies.go b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/contentkeypolicies.go index 10ce2e28a6c0..5b80adaac4cc 100644 --- a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/contentkeypolicies.go +++ b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/contentkeypolicies.go @@ -83,6 +83,7 @@ func (client ContentKeyPoliciesClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client ContentKeyPoliciesClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client ContentKeyPoliciesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +318,7 @@ func (client ContentKeyPoliciesClient) GetPolicyPropertiesWithSecrets(ctx contex result, err = client.GetPolicyPropertiesWithSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "GetPolicyPropertiesWithSecrets", resp, "Failure responding to request") + return } return @@ -396,6 +400,7 @@ func (client ContentKeyPoliciesClient) List(ctx context.Context, resourceGroupNa result.ckpc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "List", resp, "Failure responding to request") + return } if result.ckpc.hasNextLink() && result.ckpc.IsEmpty() { err = result.NextWithContext(ctx) @@ -469,6 +474,7 @@ func (client ContentKeyPoliciesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -522,6 +528,7 @@ func (client ContentKeyPoliciesClient) Update(ctx context.Context, resourceGroup result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.ContentKeyPoliciesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/jobs.go b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/jobs.go index 70f77f398249..c66112e49f79 100644 --- a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/jobs.go +++ b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/jobs.go @@ -75,6 +75,7 @@ func (client JobsClient) CancelJob(ctx context.Context, resourceGroupName string result, err = client.CancelJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "CancelJob", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client JobsClient) Create(ctx context.Context, resourceGroupName string, a result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "Create", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client JobsClient) Delete(ctx context.Context, resourceGroupName string, a result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "Delete", resp, "Failure responding to request") + return } return @@ -322,6 +325,7 @@ func (client JobsClient) Get(ctx context.Context, resourceGroupName string, acco result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "Get", resp, "Failure responding to request") + return } return @@ -403,6 +407,7 @@ func (client JobsClient) List(ctx context.Context, resourceGroupName string, acc result.jc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "List", resp, "Failure responding to request") + return } if result.jc.hasNextLink() && result.jc.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +479,7 @@ func (client JobsClient) listNextResults(ctx context.Context, lastResults JobCol result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -529,6 +535,7 @@ func (client JobsClient) Update(ctx context.Context, resourceGroupName string, a result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/liveevents.go b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/liveevents.go index 9d2837b8b617..345595b6bb31 100644 --- a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/liveevents.go +++ b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/liveevents.go @@ -261,6 +261,7 @@ func (client LiveEventsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveEventsClient", "Get", resp, "Failure responding to request") + return } return @@ -338,6 +339,7 @@ func (client LiveEventsClient) List(ctx context.Context, resourceGroupName strin result.lelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveEventsClient", "List", resp, "Failure responding to request") + return } if result.lelr.hasNextLink() && result.lelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +404,7 @@ func (client LiveEventsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveEventsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/liveoutputs.go b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/liveoutputs.go index ef2c2d557472..cc1bcfe439eb 100644 --- a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/liveoutputs.go +++ b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/liveoutputs.go @@ -276,6 +276,7 @@ func (client LiveOutputsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveOutputsClient", "Get", resp, "Failure responding to request") + return } return @@ -363,6 +364,7 @@ func (client LiveOutputsClient) List(ctx context.Context, resourceGroupName stri result.lolr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveOutputsClient", "List", resp, "Failure responding to request") + return } if result.lolr.hasNextLink() && result.lolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -428,6 +430,7 @@ func (client LiveOutputsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveOutputsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/locations.go b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/locations.go index d7a4abf06014..855e04005c3e 100644 --- a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/locations.go +++ b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/locations.go @@ -72,6 +72,7 @@ func (client LocationsClient) CheckNameAvailability(ctx context.Context, locatio result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.LocationsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/mediaservices.go b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/mediaservices.go index f3ef983ec1f4..4bc12c0f174e 100644 --- a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/mediaservices.go +++ b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/mediaservices.go @@ -73,6 +73,7 @@ func (client MediaservicesClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client MediaservicesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -224,6 +226,7 @@ func (client MediaservicesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +301,7 @@ func (client MediaservicesClient) GetBySubscription(ctx context.Context, account result, err = client.GetBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "GetBySubscription", resp, "Failure responding to request") + return } return @@ -372,6 +376,7 @@ func (client MediaservicesClient) List(ctx context.Context, resourceGroupName st result.sc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "List", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -435,6 +440,7 @@ func (client MediaservicesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -484,6 +490,7 @@ func (client MediaservicesClient) ListBySubscription(ctx context.Context) (resul result.smsc, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.smsc.hasNextLink() && result.smsc.IsEmpty() { err = result.NextWithContext(ctx) @@ -546,6 +553,7 @@ func (client MediaservicesClient) listBySubscriptionNextResults(ctx context.Cont result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -598,6 +606,7 @@ func (client MediaservicesClient) SyncStorageKeys(ctx context.Context, resourceG result, err = client.SyncStorageKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "SyncStorageKeys", resp, "Failure responding to request") + return } return @@ -675,6 +684,7 @@ func (client MediaservicesClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/operations.go b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/operations.go index ff903e2dc63e..a13a3c080562 100644 --- a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/operations.go +++ b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationCollec result.oc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.OperationsClient", "List", resp, "Failure responding to request") + return } if result.oc.hasNextLink() && result.oc.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/streamingendpoints.go b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/streamingendpoints.go index fc8313d26ff9..9f8851efbe17 100644 --- a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/streamingendpoints.go +++ b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/streamingendpoints.go @@ -262,6 +262,7 @@ func (client StreamingEndpointsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -339,6 +340,7 @@ func (client StreamingEndpointsClient) List(ctx context.Context, resourceGroupNa result.selr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingEndpointsClient", "List", resp, "Failure responding to request") + return } if result.selr.hasNextLink() && result.selr.IsEmpty() { err = result.NextWithContext(ctx) @@ -403,6 +405,7 @@ func (client StreamingEndpointsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/streaminglocators.go b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/streaminglocators.go index e90a5ac31760..708882252a0a 100644 --- a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/streaminglocators.go +++ b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/streaminglocators.go @@ -85,6 +85,7 @@ func (client StreamingLocatorsClient) Create(ctx context.Context, resourceGroupN result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "Create", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client StreamingLocatorsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "Delete", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client StreamingLocatorsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +324,7 @@ func (client StreamingLocatorsClient) List(ctx context.Context, resourceGroupNam result.slc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "List", resp, "Failure responding to request") + return } if result.slc.hasNextLink() && result.slc.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +398,7 @@ func (client StreamingLocatorsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -446,6 +451,7 @@ func (client StreamingLocatorsClient) ListContentKeys(ctx context.Context, resou result, err = client.ListContentKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "ListContentKeys", resp, "Failure responding to request") + return } return @@ -523,6 +529,7 @@ func (client StreamingLocatorsClient) ListPaths(ctx context.Context, resourceGro result, err = client.ListPathsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingLocatorsClient", "ListPaths", resp, "Failure responding to request") + return } return diff --git a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/streamingpolicies.go b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/streamingpolicies.go index eb45354c5fd9..07dcee469c34 100644 --- a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/streamingpolicies.go +++ b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/streamingpolicies.go @@ -119,6 +119,7 @@ func (client StreamingPoliciesClient) Create(ctx context.Context, resourceGroupN result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingPoliciesClient", "Create", resp, "Failure responding to request") + return } return @@ -198,6 +199,7 @@ func (client StreamingPoliciesClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client StreamingPoliciesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +358,7 @@ func (client StreamingPoliciesClient) List(ctx context.Context, resourceGroupNam result.spc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingPoliciesClient", "List", resp, "Failure responding to request") + return } if result.spc.hasNextLink() && result.spc.IsEmpty() { err = result.NextWithContext(ctx) @@ -428,6 +432,7 @@ func (client StreamingPoliciesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/transforms.go b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/transforms.go index b79813eaa4cf..7a84393b6f7f 100644 --- a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/transforms.go +++ b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/transforms.go @@ -82,6 +82,7 @@ func (client TransformsClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client TransformsClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client TransformsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client TransformsClient) List(ctx context.Context, resourceGroupName strin result.tc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "List", resp, "Failure responding to request") + return } if result.tc.hasNextLink() && result.tc.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +390,7 @@ func (client TransformsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -439,6 +444,7 @@ func (client TransformsClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/migrate/mgmt/2018-09-01-preview/migrate/databaseinstances.go b/services/preview/migrate/mgmt/2018-09-01-preview/migrate/databaseinstances.go index 3bfbaad8bd5e..283a770d9b69 100644 --- a/services/preview/migrate/mgmt/2018-09-01-preview/migrate/databaseinstances.go +++ b/services/preview/migrate/mgmt/2018-09-01-preview/migrate/databaseinstances.go @@ -76,6 +76,7 @@ func (client DatabaseInstancesClient) EnumerateDatabaseInstances(ctx context.Con result, err = client.EnumerateDatabaseInstancesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.DatabaseInstancesClient", "EnumerateDatabaseInstances", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client DatabaseInstancesClient) GetDatabaseInstance(ctx context.Context, r result, err = client.GetDatabaseInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.DatabaseInstancesClient", "GetDatabaseInstance", resp, "Failure responding to request") + return } return diff --git a/services/preview/migrate/mgmt/2018-09-01-preview/migrate/databases.go b/services/preview/migrate/mgmt/2018-09-01-preview/migrate/databases.go index 11faa9221998..0b1a119b05f0 100644 --- a/services/preview/migrate/mgmt/2018-09-01-preview/migrate/databases.go +++ b/services/preview/migrate/mgmt/2018-09-01-preview/migrate/databases.go @@ -75,6 +75,7 @@ func (client DatabasesClient) EnumerateDatabases(ctx context.Context, resourceGr result, err = client.EnumerateDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.DatabasesClient", "EnumerateDatabases", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client DatabasesClient) GetDatabase(ctx context.Context, resourceGroupName result, err = client.GetDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.DatabasesClient", "GetDatabase", resp, "Failure responding to request") + return } return diff --git a/services/preview/migrate/mgmt/2018-09-01-preview/migrate/events.go b/services/preview/migrate/mgmt/2018-09-01-preview/migrate/events.go index a6c498b27675..87df48fb2651 100644 --- a/services/preview/migrate/mgmt/2018-09-01-preview/migrate/events.go +++ b/services/preview/migrate/mgmt/2018-09-01-preview/migrate/events.go @@ -73,6 +73,7 @@ func (client EventsClient) DeleteEvent(ctx context.Context, resourceGroupName st result, err = client.DeleteEventResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.EventsClient", "DeleteEvent", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client EventsClient) EnumerateEvents(ctx context.Context, resourceGroupNam result, err = client.EnumerateEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.EventsClient", "EnumerateEvents", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client EventsClient) GetEvent(ctx context.Context, resourceGroupName strin result, err = client.GetEventResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.EventsClient", "GetEvent", resp, "Failure responding to request") + return } return diff --git a/services/preview/migrate/mgmt/2018-09-01-preview/migrate/machines.go b/services/preview/migrate/mgmt/2018-09-01-preview/migrate/machines.go index 5abd2da9ffc5..26070841798b 100644 --- a/services/preview/migrate/mgmt/2018-09-01-preview/migrate/machines.go +++ b/services/preview/migrate/mgmt/2018-09-01-preview/migrate/machines.go @@ -75,6 +75,7 @@ func (client MachinesClient) EnumerateMachines(ctx context.Context, resourceGrou result, err = client.EnumerateMachinesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.MachinesClient", "EnumerateMachines", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client MachinesClient) GetMachine(ctx context.Context, resourceGroupName s result, err = client.GetMachineResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.MachinesClient", "GetMachine", resp, "Failure responding to request") + return } return diff --git a/services/preview/migrate/mgmt/2018-09-01-preview/migrate/operations.go b/services/preview/migrate/mgmt/2018-09-01-preview/migrate/operations.go index 7dad062346a5..4dbf766f302d 100644 --- a/services/preview/migrate/mgmt/2018-09-01-preview/migrate/operations.go +++ b/services/preview/migrate/mgmt/2018-09-01-preview/migrate/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/migrate/mgmt/2018-09-01-preview/migrate/projects.go b/services/preview/migrate/mgmt/2018-09-01-preview/migrate/projects.go index ab296043fc27..177d3074c4c5 100644 --- a/services/preview/migrate/mgmt/2018-09-01-preview/migrate/projects.go +++ b/services/preview/migrate/mgmt/2018-09-01-preview/migrate/projects.go @@ -72,6 +72,7 @@ func (client ProjectsClient) DeleteMigrateProject(ctx context.Context, resourceG result, err = client.DeleteMigrateProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.ProjectsClient", "DeleteMigrateProject", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client ProjectsClient) GetMigrateProject(ctx context.Context, resourceGrou result, err = client.GetMigrateProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.ProjectsClient", "GetMigrateProject", resp, "Failure responding to request") + return } return @@ -227,6 +229,7 @@ func (client ProjectsClient) PatchMigrateProject(ctx context.Context, resourceGr result, err = client.PatchMigrateProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.ProjectsClient", "PatchMigrateProject", resp, "Failure responding to request") + return } return @@ -312,6 +315,7 @@ func (client ProjectsClient) PutMigrateProject(ctx context.Context, resourceGrou result, err = client.PutMigrateProjectResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.ProjectsClient", "PutMigrateProject", resp, "Failure responding to request") + return } return @@ -397,6 +401,7 @@ func (client ProjectsClient) RefreshMigrateProjectSummary(ctx context.Context, r result, err = client.RefreshMigrateProjectSummaryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.ProjectsClient", "RefreshMigrateProjectSummary", resp, "Failure responding to request") + return } return @@ -475,6 +480,7 @@ func (client ProjectsClient) RegisterTool(ctx context.Context, resourceGroupName result, err = client.RegisterToolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.ProjectsClient", "RegisterTool", resp, "Failure responding to request") + return } return diff --git a/services/preview/migrate/mgmt/2018-09-01-preview/migrate/solutions.go b/services/preview/migrate/mgmt/2018-09-01-preview/migrate/solutions.go index 20939fad8f69..488f9767113e 100644 --- a/services/preview/migrate/mgmt/2018-09-01-preview/migrate/solutions.go +++ b/services/preview/migrate/mgmt/2018-09-01-preview/migrate/solutions.go @@ -73,6 +73,7 @@ func (client SolutionsClient) CleanupSolutionData(ctx context.Context, resourceG result, err = client.CleanupSolutionDataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.SolutionsClient", "CleanupSolutionData", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client SolutionsClient) DeleteSolution(ctx context.Context, resourceGroupN result, err = client.DeleteSolutionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.SolutionsClient", "DeleteSolution", resp, "Failure responding to request") + return } return @@ -228,6 +230,7 @@ func (client SolutionsClient) EnumerateSolutions(ctx context.Context, resourceGr result, err = client.EnumerateSolutionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.SolutionsClient", "EnumerateSolutions", resp, "Failure responding to request") + return } return @@ -304,6 +307,7 @@ func (client SolutionsClient) GetConfig(ctx context.Context, resourceGroupName s result, err = client.GetConfigResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.SolutionsClient", "GetConfig", resp, "Failure responding to request") + return } return @@ -381,6 +385,7 @@ func (client SolutionsClient) GetSolution(ctx context.Context, resourceGroupName result, err = client.GetSolutionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.SolutionsClient", "GetSolution", resp, "Failure responding to request") + return } return @@ -460,6 +465,7 @@ func (client SolutionsClient) PatchSolution(ctx context.Context, resourceGroupNa result, err = client.PatchSolutionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.SolutionsClient", "PatchSolution", resp, "Failure responding to request") + return } return @@ -543,6 +549,7 @@ func (client SolutionsClient) PutSolution(ctx context.Context, resourceGroupName result, err = client.PutSolutionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "migrate.SolutionsClient", "PutSolution", resp, "Failure responding to request") + return } return diff --git a/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/client.go b/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/client.go index a36bf8f3d7e8..7e55fe5ea7ea 100644 --- a/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/client.go +++ b/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/client.go @@ -98,6 +98,7 @@ func (client BaseClient) CheckNameAvailabilityLocal(ctx context.Context, locatio result, err = client.CheckNameAvailabilityLocalResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.BaseClient", "CheckNameAvailabilityLocal", resp, "Failure responding to request") + return } return diff --git a/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/operations.go b/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/operations.go index 2e5e1a11ce58..3e3aac12c2b3 100644 --- a/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/operations.go +++ b/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListPa result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/spatialanchorsaccounts.go b/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/spatialanchorsaccounts.go index 27deba04d204..def710f59bca 100644 --- a/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/spatialanchorsaccounts.go +++ b/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/spatialanchorsaccounts.go @@ -87,6 +87,7 @@ func (client SpatialAnchorsAccountsClient) Create(ctx context.Context, resourceG result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.SpatialAnchorsAccountsClient", "Create", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client SpatialAnchorsAccountsClient) Delete(ctx context.Context, resourceG result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.SpatialAnchorsAccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -262,6 +264,7 @@ func (client SpatialAnchorsAccountsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.SpatialAnchorsAccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client SpatialAnchorsAccountsClient) GetKeys(ctx context.Context, resource result, err = client.GetKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.SpatialAnchorsAccountsClient", "GetKeys", resp, "Failure responding to request") + return } return @@ -432,6 +436,7 @@ func (client SpatialAnchorsAccountsClient) ListByResourceGroup(ctx context.Conte result.saal, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.SpatialAnchorsAccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.saal.hasNextLink() && result.saal.IsEmpty() { err = result.NextWithContext(ctx) @@ -495,6 +500,7 @@ func (client SpatialAnchorsAccountsClient) listByResourceGroupNextResults(ctx co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.SpatialAnchorsAccountsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -544,6 +550,7 @@ func (client SpatialAnchorsAccountsClient) ListBySubscription(ctx context.Contex result.saal, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.SpatialAnchorsAccountsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.saal.hasNextLink() && result.saal.IsEmpty() { err = result.NextWithContext(ctx) @@ -606,6 +613,7 @@ func (client SpatialAnchorsAccountsClient) listBySubscriptionNextResults(ctx con result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.SpatialAnchorsAccountsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -670,6 +678,7 @@ func (client SpatialAnchorsAccountsClient) RegenerateKeys(ctx context.Context, r result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.SpatialAnchorsAccountsClient", "RegenerateKeys", resp, "Failure responding to request") + return } return @@ -760,6 +769,7 @@ func (client SpatialAnchorsAccountsClient) Update(ctx context.Context, resourceG result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.SpatialAnchorsAccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/client.go b/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/client.go index 1690a97eb45f..7dec9367e12b 100644 --- a/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/client.go +++ b/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/client.go @@ -98,6 +98,7 @@ func (client BaseClient) CheckNameAvailabilityLocal(ctx context.Context, locatio result, err = client.CheckNameAvailabilityLocalResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.BaseClient", "CheckNameAvailabilityLocal", resp, "Failure responding to request") + return } return diff --git a/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/operations.go b/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/operations.go index b4607a1c42ce..6331e3bdccae 100644 --- a/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/operations.go +++ b/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationPagePa result.op, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.OperationsClient", "List", resp, "Failure responding to request") + return } if result.op.hasNextLink() && result.op.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/remoterenderingaccounts.go b/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/remoterenderingaccounts.go index c0924925ec85..4c5e17aa357d 100644 --- a/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/remoterenderingaccounts.go +++ b/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/remoterenderingaccounts.go @@ -87,6 +87,7 @@ func (client RemoteRenderingAccountsClient) Create(ctx context.Context, resource result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.RemoteRenderingAccountsClient", "Create", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client RemoteRenderingAccountsClient) Delete(ctx context.Context, resource result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.RemoteRenderingAccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -262,6 +264,7 @@ func (client RemoteRenderingAccountsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.RemoteRenderingAccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +348,7 @@ func (client RemoteRenderingAccountsClient) ListByResourceGroup(ctx context.Cont result.rrap, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.RemoteRenderingAccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rrap.hasNextLink() && result.rrap.IsEmpty() { err = result.NextWithContext(ctx) @@ -408,6 +412,7 @@ func (client RemoteRenderingAccountsClient) listByResourceGroupNextResults(ctx c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.RemoteRenderingAccountsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -457,6 +462,7 @@ func (client RemoteRenderingAccountsClient) ListBySubscription(ctx context.Conte result.rrap, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.RemoteRenderingAccountsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.rrap.hasNextLink() && result.rrap.IsEmpty() { err = result.NextWithContext(ctx) @@ -519,6 +525,7 @@ func (client RemoteRenderingAccountsClient) listBySubscriptionNextResults(ctx co result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.RemoteRenderingAccountsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -582,6 +589,7 @@ func (client RemoteRenderingAccountsClient) ListKeys(ctx context.Context, resour result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.RemoteRenderingAccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -670,6 +678,7 @@ func (client RemoteRenderingAccountsClient) RegenerateKeys(ctx context.Context, result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.RemoteRenderingAccountsClient", "RegenerateKeys", resp, "Failure responding to request") + return } return @@ -760,6 +769,7 @@ func (client RemoteRenderingAccountsClient) Update(ctx context.Context, resource result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.RemoteRenderingAccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/spatialanchorsaccounts.go b/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/spatialanchorsaccounts.go index ac616977d51f..67b5990d3e26 100644 --- a/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/spatialanchorsaccounts.go +++ b/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/spatialanchorsaccounts.go @@ -87,6 +87,7 @@ func (client SpatialAnchorsAccountsClient) Create(ctx context.Context, resourceG result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.SpatialAnchorsAccountsClient", "Create", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client SpatialAnchorsAccountsClient) Delete(ctx context.Context, resourceG result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.SpatialAnchorsAccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -262,6 +264,7 @@ func (client SpatialAnchorsAccountsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.SpatialAnchorsAccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +348,7 @@ func (client SpatialAnchorsAccountsClient) ListByResourceGroup(ctx context.Conte result.saap, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.SpatialAnchorsAccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.saap.hasNextLink() && result.saap.IsEmpty() { err = result.NextWithContext(ctx) @@ -408,6 +412,7 @@ func (client SpatialAnchorsAccountsClient) listByResourceGroupNextResults(ctx co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.SpatialAnchorsAccountsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -457,6 +462,7 @@ func (client SpatialAnchorsAccountsClient) ListBySubscription(ctx context.Contex result.saap, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.SpatialAnchorsAccountsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.saap.hasNextLink() && result.saap.IsEmpty() { err = result.NextWithContext(ctx) @@ -519,6 +525,7 @@ func (client SpatialAnchorsAccountsClient) listBySubscriptionNextResults(ctx con result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.SpatialAnchorsAccountsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -582,6 +589,7 @@ func (client SpatialAnchorsAccountsClient) ListKeys(ctx context.Context, resourc result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.SpatialAnchorsAccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -670,6 +678,7 @@ func (client SpatialAnchorsAccountsClient) RegenerateKeys(ctx context.Context, r result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.SpatialAnchorsAccountsClient", "RegenerateKeys", resp, "Failure responding to request") + return } return @@ -760,6 +769,7 @@ func (client SpatialAnchorsAccountsClient) Update(ctx context.Context, resourceG result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mixedreality.SpatialAnchorsAccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/2018-09-01-preview/monitor/metrics.go b/services/preview/monitor/2018-09-01-preview/monitor/metrics.go index 6a07ea737130..8b379aafeb76 100644 --- a/services/preview/monitor/2018-09-01-preview/monitor/metrics.go +++ b/services/preview/monitor/2018-09-01-preview/monitor/metrics.go @@ -92,6 +92,7 @@ func (client MetricsClient) Create(ctx context.Context, contentType string, cont result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "monitor.MetricsClient", "Create", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2017-05-01-preview/insights/actiongroups.go b/services/preview/monitor/mgmt/2017-05-01-preview/insights/actiongroups.go index 3839028148d2..6a85354e838c 100644 --- a/services/preview/monitor/mgmt/2017-05-01-preview/insights/actiongroups.go +++ b/services/preview/monitor/mgmt/2017-05-01-preview/insights/actiongroups.go @@ -84,6 +84,7 @@ func (client ActionGroupsClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client ActionGroupsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -243,6 +245,7 @@ func (client ActionGroupsClient) EnableReceiver(ctx context.Context, resourceGro result, err = client.EnableReceiverResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "EnableReceiver", resp, "Failure responding to request") + return } return @@ -319,6 +322,7 @@ func (client ActionGroupsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -393,6 +397,7 @@ func (client ActionGroupsClient) ListByResourceGroup(ctx context.Context, resour result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -464,6 +469,7 @@ func (client ActionGroupsClient) ListBySubscriptionID(ctx context.Context) (resu result, err = client.ListBySubscriptionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "ListBySubscriptionID", resp, "Failure responding to request") + return } return @@ -538,6 +544,7 @@ func (client ActionGroupsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2017-05-01-preview/insights/activitylogalerts.go b/services/preview/monitor/mgmt/2017-05-01-preview/insights/activitylogalerts.go index c543937e4053..feec0c05d94b 100644 --- a/services/preview/monitor/mgmt/2017-05-01-preview/insights/activitylogalerts.go +++ b/services/preview/monitor/mgmt/2017-05-01-preview/insights/activitylogalerts.go @@ -86,6 +86,7 @@ func (client ActivityLogAlertsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ActivityLogAlertsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client ActivityLogAlertsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +314,7 @@ func (client ActivityLogAlertsClient) ListByResourceGroup(ctx context.Context, r result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -382,6 +386,7 @@ func (client ActivityLogAlertsClient) ListBySubscriptionID(ctx context.Context) result, err = client.ListBySubscriptionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "ListBySubscriptionID", resp, "Failure responding to request") + return } return @@ -456,6 +461,7 @@ func (client ActivityLogAlertsClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2017-05-01-preview/insights/activitylogs.go b/services/preview/monitor/mgmt/2017-05-01-preview/insights/activitylogs.go index 0c472e12686d..7cc516df7dd6 100644 --- a/services/preview/monitor/mgmt/2017-05-01-preview/insights/activitylogs.go +++ b/services/preview/monitor/mgmt/2017-05-01-preview/insights/activitylogs.go @@ -88,6 +88,7 @@ func (client ActivityLogsClient) List(ctx context.Context, filter string, select result.edc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogsClient", "List", resp, "Failure responding to request") + return } if result.edc.hasNextLink() && result.edc.IsEmpty() { err = result.NextWithContext(ctx) @@ -154,6 +155,7 @@ func (client ActivityLogsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/monitor/mgmt/2017-05-01-preview/insights/alertruleincidents.go b/services/preview/monitor/mgmt/2017-05-01-preview/insights/alertruleincidents.go index f52b59ba121d..dd854793d478 100644 --- a/services/preview/monitor/mgmt/2017-05-01-preview/insights/alertruleincidents.go +++ b/services/preview/monitor/mgmt/2017-05-01-preview/insights/alertruleincidents.go @@ -74,6 +74,7 @@ func (client AlertRuleIncidentsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRuleIncidentsClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client AlertRuleIncidentsClient) ListByAlertRule(ctx context.Context, reso result, err = client.ListByAlertRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRuleIncidentsClient", "ListByAlertRule", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2017-05-01-preview/insights/alertrules.go b/services/preview/monitor/mgmt/2017-05-01-preview/insights/alertrules.go index 4242145741e0..7e0fa827600c 100644 --- a/services/preview/monitor/mgmt/2017-05-01-preview/insights/alertrules.go +++ b/services/preview/monitor/mgmt/2017-05-01-preview/insights/alertrules.go @@ -84,6 +84,7 @@ func (client AlertRulesClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client AlertRulesClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client AlertRulesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +312,7 @@ func (client AlertRulesClient) ListByResourceGroup(ctx context.Context, resource result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -380,6 +384,7 @@ func (client AlertRulesClient) ListBySubscription(ctx context.Context) (result A result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -454,6 +459,7 @@ func (client AlertRulesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2017-05-01-preview/insights/autoscalesettings.go b/services/preview/monitor/mgmt/2017-05-01-preview/insights/autoscalesettings.go index deac6f5e02c4..a895adabb8ad 100644 --- a/services/preview/monitor/mgmt/2017-05-01-preview/insights/autoscalesettings.go +++ b/services/preview/monitor/mgmt/2017-05-01-preview/insights/autoscalesettings.go @@ -84,6 +84,7 @@ func (client AutoscaleSettingsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client AutoscaleSettingsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "Delete", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client AutoscaleSettingsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +313,7 @@ func (client AutoscaleSettingsClient) ListByResourceGroup(ctx context.Context, r result.asrc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.asrc.hasNextLink() && result.asrc.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +377,7 @@ func (client AutoscaleSettingsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -422,6 +427,7 @@ func (client AutoscaleSettingsClient) ListBySubscription(ctx context.Context) (r result.asrc, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.asrc.hasNextLink() && result.asrc.IsEmpty() { err = result.NextWithContext(ctx) @@ -484,6 +490,7 @@ func (client AutoscaleSettingsClient) listBySubscriptionNextResults(ctx context. result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -536,6 +543,7 @@ func (client AutoscaleSettingsClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2017-05-01-preview/insights/diagnosticsettings.go b/services/preview/monitor/mgmt/2017-05-01-preview/insights/diagnosticsettings.go index 5963a2b91d55..baaf0d2976e9 100644 --- a/services/preview/monitor/mgmt/2017-05-01-preview/insights/diagnosticsettings.go +++ b/services/preview/monitor/mgmt/2017-05-01-preview/insights/diagnosticsettings.go @@ -74,6 +74,7 @@ func (client DiagnosticSettingsClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client DiagnosticSettingsClient) Delete(ctx context.Context, resourceURI s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsClient", "Delete", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client DiagnosticSettingsClient) Get(ctx context.Context, resourceURI stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -296,6 +299,7 @@ func (client DiagnosticSettingsClient) List(ctx context.Context, resourceURI str result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2017-05-01-preview/insights/diagnosticsettingscategory.go b/services/preview/monitor/mgmt/2017-05-01-preview/insights/diagnosticsettingscategory.go index 45e26165ef5d..841ec82d6adf 100644 --- a/services/preview/monitor/mgmt/2017-05-01-preview/insights/diagnosticsettingscategory.go +++ b/services/preview/monitor/mgmt/2017-05-01-preview/insights/diagnosticsettingscategory.go @@ -73,6 +73,7 @@ func (client DiagnosticSettingsCategoryClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsCategoryClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client DiagnosticSettingsCategoryClient) List(ctx context.Context, resourc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsCategoryClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2017-05-01-preview/insights/eventcategories.go b/services/preview/monitor/mgmt/2017-05-01-preview/insights/eventcategories.go index 4e9d430e4c56..0069d84da2c6 100644 --- a/services/preview/monitor/mgmt/2017-05-01-preview/insights/eventcategories.go +++ b/services/preview/monitor/mgmt/2017-05-01-preview/insights/eventcategories.go @@ -70,6 +70,7 @@ func (client EventCategoriesClient) List(ctx context.Context) (result EventCateg result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.EventCategoriesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2017-05-01-preview/insights/logprofiles.go b/services/preview/monitor/mgmt/2017-05-01-preview/insights/logprofiles.go index 578de17870e2..5074f5435e90 100644 --- a/services/preview/monitor/mgmt/2017-05-01-preview/insights/logprofiles.go +++ b/services/preview/monitor/mgmt/2017-05-01-preview/insights/logprofiles.go @@ -87,6 +87,7 @@ func (client LogProfilesClient) CreateOrUpdate(ctx context.Context, logProfileNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client LogProfilesClient) Delete(ctx context.Context, logProfileName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "Delete", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client LogProfilesClient) Get(ctx context.Context, logProfileName string) result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +308,7 @@ func (client LogProfilesClient) List(ctx context.Context) (result LogProfileColl result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "List", resp, "Failure responding to request") + return } return @@ -378,6 +382,7 @@ func (client LogProfilesClient) Update(ctx context.Context, logProfileName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2017-05-01-preview/insights/metricbaseline.go b/services/preview/monitor/mgmt/2017-05-01-preview/insights/metricbaseline.go index e3bfa14051ef..fb9c7d1e572a 100644 --- a/services/preview/monitor/mgmt/2017-05-01-preview/insights/metricbaseline.go +++ b/services/preview/monitor/mgmt/2017-05-01-preview/insights/metricbaseline.go @@ -83,6 +83,7 @@ func (client MetricBaselineClient) CalculateBaseline(ctx context.Context, resour result, err = client.CalculateBaselineResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricBaselineClient", "CalculateBaseline", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client MetricBaselineClient) Get(ctx context.Context, resourceURI string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricBaselineClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2017-05-01-preview/insights/metricdefinitions.go b/services/preview/monitor/mgmt/2017-05-01-preview/insights/metricdefinitions.go index a802289a1398..2fb69d8d9c45 100644 --- a/services/preview/monitor/mgmt/2017-05-01-preview/insights/metricdefinitions.go +++ b/services/preview/monitor/mgmt/2017-05-01-preview/insights/metricdefinitions.go @@ -72,6 +72,7 @@ func (client MetricDefinitionsClient) List(ctx context.Context, resourceURI stri result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricDefinitionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2017-05-01-preview/insights/metrics.go b/services/preview/monitor/mgmt/2017-05-01-preview/insights/metrics.go index 3298af6b0c2e..dd4b9a43c798 100644 --- a/services/preview/monitor/mgmt/2017-05-01-preview/insights/metrics.go +++ b/services/preview/monitor/mgmt/2017-05-01-preview/insights/metrics.go @@ -91,6 +91,7 @@ func (client MetricsClient) List(ctx context.Context, resourceURI string, timesp result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2017-05-01-preview/insights/operations.go b/services/preview/monitor/mgmt/2017-05-01-preview/insights/operations.go index 52fa11ee0e69..1943bd686cbf 100644 --- a/services/preview/monitor/mgmt/2017-05-01-preview/insights/operations.go +++ b/services/preview/monitor/mgmt/2017-05-01-preview/insights/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2017-05-01-preview/insights/tenantactivitylogs.go b/services/preview/monitor/mgmt/2017-05-01-preview/insights/tenantactivitylogs.go index b3c8c744eb20..72eaadb42215 100644 --- a/services/preview/monitor/mgmt/2017-05-01-preview/insights/tenantactivitylogs.go +++ b/services/preview/monitor/mgmt/2017-05-01-preview/insights/tenantactivitylogs.go @@ -92,6 +92,7 @@ func (client TenantActivityLogsClient) List(ctx context.Context, filter string, result.edc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.TenantActivityLogsClient", "List", resp, "Failure responding to request") + return } if result.edc.hasNextLink() && result.edc.IsEmpty() { err = result.NextWithContext(ctx) @@ -156,6 +157,7 @@ func (client TenantActivityLogsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.TenantActivityLogsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/monitor/mgmt/2018-03-01/insights/actiongroups.go b/services/preview/monitor/mgmt/2018-03-01/insights/actiongroups.go index 915831ec4d3b..e9386d3f8944 100644 --- a/services/preview/monitor/mgmt/2018-03-01/insights/actiongroups.go +++ b/services/preview/monitor/mgmt/2018-03-01/insights/actiongroups.go @@ -84,6 +84,7 @@ func (client ActionGroupsClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client ActionGroupsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -243,6 +245,7 @@ func (client ActionGroupsClient) EnableReceiver(ctx context.Context, resourceGro result, err = client.EnableReceiverResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "EnableReceiver", resp, "Failure responding to request") + return } return @@ -319,6 +322,7 @@ func (client ActionGroupsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -393,6 +397,7 @@ func (client ActionGroupsClient) ListByResourceGroup(ctx context.Context, resour result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -464,6 +469,7 @@ func (client ActionGroupsClient) ListBySubscriptionID(ctx context.Context) (resu result, err = client.ListBySubscriptionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "ListBySubscriptionID", resp, "Failure responding to request") + return } return @@ -538,6 +544,7 @@ func (client ActionGroupsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-03-01/insights/activitylogalerts.go b/services/preview/monitor/mgmt/2018-03-01/insights/activitylogalerts.go index c543937e4053..feec0c05d94b 100644 --- a/services/preview/monitor/mgmt/2018-03-01/insights/activitylogalerts.go +++ b/services/preview/monitor/mgmt/2018-03-01/insights/activitylogalerts.go @@ -86,6 +86,7 @@ func (client ActivityLogAlertsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ActivityLogAlertsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client ActivityLogAlertsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +314,7 @@ func (client ActivityLogAlertsClient) ListByResourceGroup(ctx context.Context, r result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -382,6 +386,7 @@ func (client ActivityLogAlertsClient) ListBySubscriptionID(ctx context.Context) result, err = client.ListBySubscriptionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "ListBySubscriptionID", resp, "Failure responding to request") + return } return @@ -456,6 +461,7 @@ func (client ActivityLogAlertsClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-03-01/insights/activitylogs.go b/services/preview/monitor/mgmt/2018-03-01/insights/activitylogs.go index 0c472e12686d..7cc516df7dd6 100644 --- a/services/preview/monitor/mgmt/2018-03-01/insights/activitylogs.go +++ b/services/preview/monitor/mgmt/2018-03-01/insights/activitylogs.go @@ -88,6 +88,7 @@ func (client ActivityLogsClient) List(ctx context.Context, filter string, select result.edc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogsClient", "List", resp, "Failure responding to request") + return } if result.edc.hasNextLink() && result.edc.IsEmpty() { err = result.NextWithContext(ctx) @@ -154,6 +155,7 @@ func (client ActivityLogsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/monitor/mgmt/2018-03-01/insights/alertruleincidents.go b/services/preview/monitor/mgmt/2018-03-01/insights/alertruleincidents.go index f52b59ba121d..dd854793d478 100644 --- a/services/preview/monitor/mgmt/2018-03-01/insights/alertruleincidents.go +++ b/services/preview/monitor/mgmt/2018-03-01/insights/alertruleincidents.go @@ -74,6 +74,7 @@ func (client AlertRuleIncidentsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRuleIncidentsClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client AlertRuleIncidentsClient) ListByAlertRule(ctx context.Context, reso result, err = client.ListByAlertRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRuleIncidentsClient", "ListByAlertRule", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-03-01/insights/alertrules.go b/services/preview/monitor/mgmt/2018-03-01/insights/alertrules.go index 4242145741e0..7e0fa827600c 100644 --- a/services/preview/monitor/mgmt/2018-03-01/insights/alertrules.go +++ b/services/preview/monitor/mgmt/2018-03-01/insights/alertrules.go @@ -84,6 +84,7 @@ func (client AlertRulesClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client AlertRulesClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client AlertRulesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +312,7 @@ func (client AlertRulesClient) ListByResourceGroup(ctx context.Context, resource result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -380,6 +384,7 @@ func (client AlertRulesClient) ListBySubscription(ctx context.Context) (result A result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -454,6 +459,7 @@ func (client AlertRulesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-03-01/insights/autoscalesettings.go b/services/preview/monitor/mgmt/2018-03-01/insights/autoscalesettings.go index deac6f5e02c4..a895adabb8ad 100644 --- a/services/preview/monitor/mgmt/2018-03-01/insights/autoscalesettings.go +++ b/services/preview/monitor/mgmt/2018-03-01/insights/autoscalesettings.go @@ -84,6 +84,7 @@ func (client AutoscaleSettingsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client AutoscaleSettingsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "Delete", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client AutoscaleSettingsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +313,7 @@ func (client AutoscaleSettingsClient) ListByResourceGroup(ctx context.Context, r result.asrc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.asrc.hasNextLink() && result.asrc.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +377,7 @@ func (client AutoscaleSettingsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -422,6 +427,7 @@ func (client AutoscaleSettingsClient) ListBySubscription(ctx context.Context) (r result.asrc, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.asrc.hasNextLink() && result.asrc.IsEmpty() { err = result.NextWithContext(ctx) @@ -484,6 +490,7 @@ func (client AutoscaleSettingsClient) listBySubscriptionNextResults(ctx context. result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -536,6 +543,7 @@ func (client AutoscaleSettingsClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-03-01/insights/diagnosticsettings.go b/services/preview/monitor/mgmt/2018-03-01/insights/diagnosticsettings.go index 5963a2b91d55..baaf0d2976e9 100644 --- a/services/preview/monitor/mgmt/2018-03-01/insights/diagnosticsettings.go +++ b/services/preview/monitor/mgmt/2018-03-01/insights/diagnosticsettings.go @@ -74,6 +74,7 @@ func (client DiagnosticSettingsClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client DiagnosticSettingsClient) Delete(ctx context.Context, resourceURI s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsClient", "Delete", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client DiagnosticSettingsClient) Get(ctx context.Context, resourceURI stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -296,6 +299,7 @@ func (client DiagnosticSettingsClient) List(ctx context.Context, resourceURI str result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-03-01/insights/diagnosticsettingscategory.go b/services/preview/monitor/mgmt/2018-03-01/insights/diagnosticsettingscategory.go index 45e26165ef5d..841ec82d6adf 100644 --- a/services/preview/monitor/mgmt/2018-03-01/insights/diagnosticsettingscategory.go +++ b/services/preview/monitor/mgmt/2018-03-01/insights/diagnosticsettingscategory.go @@ -73,6 +73,7 @@ func (client DiagnosticSettingsCategoryClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsCategoryClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client DiagnosticSettingsCategoryClient) List(ctx context.Context, resourc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsCategoryClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-03-01/insights/eventcategories.go b/services/preview/monitor/mgmt/2018-03-01/insights/eventcategories.go index 4e9d430e4c56..0069d84da2c6 100644 --- a/services/preview/monitor/mgmt/2018-03-01/insights/eventcategories.go +++ b/services/preview/monitor/mgmt/2018-03-01/insights/eventcategories.go @@ -70,6 +70,7 @@ func (client EventCategoriesClient) List(ctx context.Context) (result EventCateg result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.EventCategoriesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-03-01/insights/logprofiles.go b/services/preview/monitor/mgmt/2018-03-01/insights/logprofiles.go index 578de17870e2..5074f5435e90 100644 --- a/services/preview/monitor/mgmt/2018-03-01/insights/logprofiles.go +++ b/services/preview/monitor/mgmt/2018-03-01/insights/logprofiles.go @@ -87,6 +87,7 @@ func (client LogProfilesClient) CreateOrUpdate(ctx context.Context, logProfileNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client LogProfilesClient) Delete(ctx context.Context, logProfileName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "Delete", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client LogProfilesClient) Get(ctx context.Context, logProfileName string) result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +308,7 @@ func (client LogProfilesClient) List(ctx context.Context) (result LogProfileColl result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "List", resp, "Failure responding to request") + return } return @@ -378,6 +382,7 @@ func (client LogProfilesClient) Update(ctx context.Context, logProfileName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-03-01/insights/metricalerts.go b/services/preview/monitor/mgmt/2018-03-01/insights/metricalerts.go index 765121f34c9c..daac025e0cb5 100644 --- a/services/preview/monitor/mgmt/2018-03-01/insights/metricalerts.go +++ b/services/preview/monitor/mgmt/2018-03-01/insights/metricalerts.go @@ -87,6 +87,7 @@ func (client MetricAlertsClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client MetricAlertsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client MetricAlertsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +315,7 @@ func (client MetricAlertsClient) ListByResourceGroup(ctx context.Context, resour result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -383,6 +387,7 @@ func (client MetricAlertsClient) ListBySubscription(ctx context.Context) (result result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -457,6 +462,7 @@ func (client MetricAlertsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-03-01/insights/metricalertsstatus.go b/services/preview/monitor/mgmt/2018-03-01/insights/metricalertsstatus.go index 24eb4387f0f8..a757c23ae4cc 100644 --- a/services/preview/monitor/mgmt/2018-03-01/insights/metricalertsstatus.go +++ b/services/preview/monitor/mgmt/2018-03-01/insights/metricalertsstatus.go @@ -73,6 +73,7 @@ func (client MetricAlertsStatusClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsStatusClient", "List", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client MetricAlertsStatusClient) ListByName(ctx context.Context, resourceG result, err = client.ListByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsStatusClient", "ListByName", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-03-01/insights/metricbaseline.go b/services/preview/monitor/mgmt/2018-03-01/insights/metricbaseline.go index e3bfa14051ef..fb9c7d1e572a 100644 --- a/services/preview/monitor/mgmt/2018-03-01/insights/metricbaseline.go +++ b/services/preview/monitor/mgmt/2018-03-01/insights/metricbaseline.go @@ -83,6 +83,7 @@ func (client MetricBaselineClient) CalculateBaseline(ctx context.Context, resour result, err = client.CalculateBaselineResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricBaselineClient", "CalculateBaseline", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client MetricBaselineClient) Get(ctx context.Context, resourceURI string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricBaselineClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-03-01/insights/metricdefinitions.go b/services/preview/monitor/mgmt/2018-03-01/insights/metricdefinitions.go index aa005b92d7de..1d0a872599fe 100644 --- a/services/preview/monitor/mgmt/2018-03-01/insights/metricdefinitions.go +++ b/services/preview/monitor/mgmt/2018-03-01/insights/metricdefinitions.go @@ -73,6 +73,7 @@ func (client MetricDefinitionsClient) List(ctx context.Context, resourceURI stri result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricDefinitionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-03-01/insights/metrics.go b/services/preview/monitor/mgmt/2018-03-01/insights/metrics.go index 35e6b09c2106..352bd7b4caea 100644 --- a/services/preview/monitor/mgmt/2018-03-01/insights/metrics.go +++ b/services/preview/monitor/mgmt/2018-03-01/insights/metrics.go @@ -92,6 +92,7 @@ func (client MetricsClient) List(ctx context.Context, resourceURI string, timesp result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-03-01/insights/operations.go b/services/preview/monitor/mgmt/2018-03-01/insights/operations.go index 52fa11ee0e69..1943bd686cbf 100644 --- a/services/preview/monitor/mgmt/2018-03-01/insights/operations.go +++ b/services/preview/monitor/mgmt/2018-03-01/insights/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-03-01/insights/scheduledqueryrules.go b/services/preview/monitor/mgmt/2018-03-01/insights/scheduledqueryrules.go index 50efb2ad2853..7fe950971ffb 100644 --- a/services/preview/monitor/mgmt/2018-03-01/insights/scheduledqueryrules.go +++ b/services/preview/monitor/mgmt/2018-03-01/insights/scheduledqueryrules.go @@ -89,6 +89,7 @@ func (client ScheduledQueryRulesClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client ScheduledQueryRulesClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client ScheduledQueryRulesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client ScheduledQueryRulesClient) ListByResourceGroup(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -393,6 +397,7 @@ func (client ScheduledQueryRulesClient) ListBySubscription(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -470,6 +475,7 @@ func (client ScheduledQueryRulesClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-03-01/insights/tenantactivitylogs.go b/services/preview/monitor/mgmt/2018-03-01/insights/tenantactivitylogs.go index b3c8c744eb20..72eaadb42215 100644 --- a/services/preview/monitor/mgmt/2018-03-01/insights/tenantactivitylogs.go +++ b/services/preview/monitor/mgmt/2018-03-01/insights/tenantactivitylogs.go @@ -92,6 +92,7 @@ func (client TenantActivityLogsClient) List(ctx context.Context, filter string, result.edc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.TenantActivityLogsClient", "List", resp, "Failure responding to request") + return } if result.edc.hasNextLink() && result.edc.IsEmpty() { err = result.NextWithContext(ctx) @@ -156,6 +157,7 @@ func (client TenantActivityLogsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.TenantActivityLogsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/monitor/mgmt/2018-09-01/insights/actiongroups.go b/services/preview/monitor/mgmt/2018-09-01/insights/actiongroups.go index 3839028148d2..6a85354e838c 100644 --- a/services/preview/monitor/mgmt/2018-09-01/insights/actiongroups.go +++ b/services/preview/monitor/mgmt/2018-09-01/insights/actiongroups.go @@ -84,6 +84,7 @@ func (client ActionGroupsClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client ActionGroupsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -243,6 +245,7 @@ func (client ActionGroupsClient) EnableReceiver(ctx context.Context, resourceGro result, err = client.EnableReceiverResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "EnableReceiver", resp, "Failure responding to request") + return } return @@ -319,6 +322,7 @@ func (client ActionGroupsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -393,6 +397,7 @@ func (client ActionGroupsClient) ListByResourceGroup(ctx context.Context, resour result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -464,6 +469,7 @@ func (client ActionGroupsClient) ListBySubscriptionID(ctx context.Context) (resu result, err = client.ListBySubscriptionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "ListBySubscriptionID", resp, "Failure responding to request") + return } return @@ -538,6 +544,7 @@ func (client ActionGroupsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-09-01/insights/activitylogalerts.go b/services/preview/monitor/mgmt/2018-09-01/insights/activitylogalerts.go index c543937e4053..feec0c05d94b 100644 --- a/services/preview/monitor/mgmt/2018-09-01/insights/activitylogalerts.go +++ b/services/preview/monitor/mgmt/2018-09-01/insights/activitylogalerts.go @@ -86,6 +86,7 @@ func (client ActivityLogAlertsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ActivityLogAlertsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client ActivityLogAlertsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +314,7 @@ func (client ActivityLogAlertsClient) ListByResourceGroup(ctx context.Context, r result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -382,6 +386,7 @@ func (client ActivityLogAlertsClient) ListBySubscriptionID(ctx context.Context) result, err = client.ListBySubscriptionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "ListBySubscriptionID", resp, "Failure responding to request") + return } return @@ -456,6 +461,7 @@ func (client ActivityLogAlertsClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-09-01/insights/activitylogs.go b/services/preview/monitor/mgmt/2018-09-01/insights/activitylogs.go index 0c472e12686d..7cc516df7dd6 100644 --- a/services/preview/monitor/mgmt/2018-09-01/insights/activitylogs.go +++ b/services/preview/monitor/mgmt/2018-09-01/insights/activitylogs.go @@ -88,6 +88,7 @@ func (client ActivityLogsClient) List(ctx context.Context, filter string, select result.edc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogsClient", "List", resp, "Failure responding to request") + return } if result.edc.hasNextLink() && result.edc.IsEmpty() { err = result.NextWithContext(ctx) @@ -154,6 +155,7 @@ func (client ActivityLogsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/monitor/mgmt/2018-09-01/insights/alertruleincidents.go b/services/preview/monitor/mgmt/2018-09-01/insights/alertruleincidents.go index f52b59ba121d..dd854793d478 100644 --- a/services/preview/monitor/mgmt/2018-09-01/insights/alertruleincidents.go +++ b/services/preview/monitor/mgmt/2018-09-01/insights/alertruleincidents.go @@ -74,6 +74,7 @@ func (client AlertRuleIncidentsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRuleIncidentsClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client AlertRuleIncidentsClient) ListByAlertRule(ctx context.Context, reso result, err = client.ListByAlertRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRuleIncidentsClient", "ListByAlertRule", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-09-01/insights/alertrules.go b/services/preview/monitor/mgmt/2018-09-01/insights/alertrules.go index 4242145741e0..7e0fa827600c 100644 --- a/services/preview/monitor/mgmt/2018-09-01/insights/alertrules.go +++ b/services/preview/monitor/mgmt/2018-09-01/insights/alertrules.go @@ -84,6 +84,7 @@ func (client AlertRulesClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client AlertRulesClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client AlertRulesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +312,7 @@ func (client AlertRulesClient) ListByResourceGroup(ctx context.Context, resource result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -380,6 +384,7 @@ func (client AlertRulesClient) ListBySubscription(ctx context.Context) (result A result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -454,6 +459,7 @@ func (client AlertRulesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-09-01/insights/autoscalesettings.go b/services/preview/monitor/mgmt/2018-09-01/insights/autoscalesettings.go index deac6f5e02c4..a895adabb8ad 100644 --- a/services/preview/monitor/mgmt/2018-09-01/insights/autoscalesettings.go +++ b/services/preview/monitor/mgmt/2018-09-01/insights/autoscalesettings.go @@ -84,6 +84,7 @@ func (client AutoscaleSettingsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client AutoscaleSettingsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "Delete", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client AutoscaleSettingsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +313,7 @@ func (client AutoscaleSettingsClient) ListByResourceGroup(ctx context.Context, r result.asrc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.asrc.hasNextLink() && result.asrc.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +377,7 @@ func (client AutoscaleSettingsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -422,6 +427,7 @@ func (client AutoscaleSettingsClient) ListBySubscription(ctx context.Context) (r result.asrc, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.asrc.hasNextLink() && result.asrc.IsEmpty() { err = result.NextWithContext(ctx) @@ -484,6 +490,7 @@ func (client AutoscaleSettingsClient) listBySubscriptionNextResults(ctx context. result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -536,6 +543,7 @@ func (client AutoscaleSettingsClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-09-01/insights/diagnosticsettings.go b/services/preview/monitor/mgmt/2018-09-01/insights/diagnosticsettings.go index 5963a2b91d55..baaf0d2976e9 100644 --- a/services/preview/monitor/mgmt/2018-09-01/insights/diagnosticsettings.go +++ b/services/preview/monitor/mgmt/2018-09-01/insights/diagnosticsettings.go @@ -74,6 +74,7 @@ func (client DiagnosticSettingsClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client DiagnosticSettingsClient) Delete(ctx context.Context, resourceURI s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsClient", "Delete", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client DiagnosticSettingsClient) Get(ctx context.Context, resourceURI stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -296,6 +299,7 @@ func (client DiagnosticSettingsClient) List(ctx context.Context, resourceURI str result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-09-01/insights/diagnosticsettingscategory.go b/services/preview/monitor/mgmt/2018-09-01/insights/diagnosticsettingscategory.go index 45e26165ef5d..841ec82d6adf 100644 --- a/services/preview/monitor/mgmt/2018-09-01/insights/diagnosticsettingscategory.go +++ b/services/preview/monitor/mgmt/2018-09-01/insights/diagnosticsettingscategory.go @@ -73,6 +73,7 @@ func (client DiagnosticSettingsCategoryClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsCategoryClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client DiagnosticSettingsCategoryClient) List(ctx context.Context, resourc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsCategoryClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-09-01/insights/eventcategories.go b/services/preview/monitor/mgmt/2018-09-01/insights/eventcategories.go index 4e9d430e4c56..0069d84da2c6 100644 --- a/services/preview/monitor/mgmt/2018-09-01/insights/eventcategories.go +++ b/services/preview/monitor/mgmt/2018-09-01/insights/eventcategories.go @@ -70,6 +70,7 @@ func (client EventCategoriesClient) List(ctx context.Context) (result EventCateg result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.EventCategoriesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-09-01/insights/logprofiles.go b/services/preview/monitor/mgmt/2018-09-01/insights/logprofiles.go index 578de17870e2..5074f5435e90 100644 --- a/services/preview/monitor/mgmt/2018-09-01/insights/logprofiles.go +++ b/services/preview/monitor/mgmt/2018-09-01/insights/logprofiles.go @@ -87,6 +87,7 @@ func (client LogProfilesClient) CreateOrUpdate(ctx context.Context, logProfileNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client LogProfilesClient) Delete(ctx context.Context, logProfileName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "Delete", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client LogProfilesClient) Get(ctx context.Context, logProfileName string) result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +308,7 @@ func (client LogProfilesClient) List(ctx context.Context) (result LogProfileColl result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "List", resp, "Failure responding to request") + return } return @@ -378,6 +382,7 @@ func (client LogProfilesClient) Update(ctx context.Context, logProfileName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-09-01/insights/metricalerts.go b/services/preview/monitor/mgmt/2018-09-01/insights/metricalerts.go index 765121f34c9c..daac025e0cb5 100644 --- a/services/preview/monitor/mgmt/2018-09-01/insights/metricalerts.go +++ b/services/preview/monitor/mgmt/2018-09-01/insights/metricalerts.go @@ -87,6 +87,7 @@ func (client MetricAlertsClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client MetricAlertsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client MetricAlertsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +315,7 @@ func (client MetricAlertsClient) ListByResourceGroup(ctx context.Context, resour result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -383,6 +387,7 @@ func (client MetricAlertsClient) ListBySubscription(ctx context.Context) (result result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -457,6 +462,7 @@ func (client MetricAlertsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-09-01/insights/metricalertsstatus.go b/services/preview/monitor/mgmt/2018-09-01/insights/metricalertsstatus.go index 24eb4387f0f8..a757c23ae4cc 100644 --- a/services/preview/monitor/mgmt/2018-09-01/insights/metricalertsstatus.go +++ b/services/preview/monitor/mgmt/2018-09-01/insights/metricalertsstatus.go @@ -73,6 +73,7 @@ func (client MetricAlertsStatusClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsStatusClient", "List", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client MetricAlertsStatusClient) ListByName(ctx context.Context, resourceG result, err = client.ListByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsStatusClient", "ListByName", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-09-01/insights/metricbaseline.go b/services/preview/monitor/mgmt/2018-09-01/insights/metricbaseline.go index e3bfa14051ef..fb9c7d1e572a 100644 --- a/services/preview/monitor/mgmt/2018-09-01/insights/metricbaseline.go +++ b/services/preview/monitor/mgmt/2018-09-01/insights/metricbaseline.go @@ -83,6 +83,7 @@ func (client MetricBaselineClient) CalculateBaseline(ctx context.Context, resour result, err = client.CalculateBaselineResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricBaselineClient", "CalculateBaseline", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client MetricBaselineClient) Get(ctx context.Context, resourceURI string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricBaselineClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-09-01/insights/metricdefinitions.go b/services/preview/monitor/mgmt/2018-09-01/insights/metricdefinitions.go index aa005b92d7de..1d0a872599fe 100644 --- a/services/preview/monitor/mgmt/2018-09-01/insights/metricdefinitions.go +++ b/services/preview/monitor/mgmt/2018-09-01/insights/metricdefinitions.go @@ -73,6 +73,7 @@ func (client MetricDefinitionsClient) List(ctx context.Context, resourceURI stri result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricDefinitionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-09-01/insights/metricnamespaces.go b/services/preview/monitor/mgmt/2018-09-01/insights/metricnamespaces.go index 8b1f006fc2ef..bdb6bcc8fed1 100644 --- a/services/preview/monitor/mgmt/2018-09-01/insights/metricnamespaces.go +++ b/services/preview/monitor/mgmt/2018-09-01/insights/metricnamespaces.go @@ -73,6 +73,7 @@ func (client MetricNamespacesClient) List(ctx context.Context, resourceURI strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricNamespacesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-09-01/insights/metrics.go b/services/preview/monitor/mgmt/2018-09-01/insights/metrics.go index 35e6b09c2106..352bd7b4caea 100644 --- a/services/preview/monitor/mgmt/2018-09-01/insights/metrics.go +++ b/services/preview/monitor/mgmt/2018-09-01/insights/metrics.go @@ -92,6 +92,7 @@ func (client MetricsClient) List(ctx context.Context, resourceURI string, timesp result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-09-01/insights/operations.go b/services/preview/monitor/mgmt/2018-09-01/insights/operations.go index 52fa11ee0e69..1943bd686cbf 100644 --- a/services/preview/monitor/mgmt/2018-09-01/insights/operations.go +++ b/services/preview/monitor/mgmt/2018-09-01/insights/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-09-01/insights/scheduledqueryrules.go b/services/preview/monitor/mgmt/2018-09-01/insights/scheduledqueryrules.go index 50efb2ad2853..7fe950971ffb 100644 --- a/services/preview/monitor/mgmt/2018-09-01/insights/scheduledqueryrules.go +++ b/services/preview/monitor/mgmt/2018-09-01/insights/scheduledqueryrules.go @@ -89,6 +89,7 @@ func (client ScheduledQueryRulesClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client ScheduledQueryRulesClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client ScheduledQueryRulesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client ScheduledQueryRulesClient) ListByResourceGroup(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -393,6 +397,7 @@ func (client ScheduledQueryRulesClient) ListBySubscription(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -470,6 +475,7 @@ func (client ScheduledQueryRulesClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-09-01/insights/tenantactivitylogs.go b/services/preview/monitor/mgmt/2018-09-01/insights/tenantactivitylogs.go index b3c8c744eb20..72eaadb42215 100644 --- a/services/preview/monitor/mgmt/2018-09-01/insights/tenantactivitylogs.go +++ b/services/preview/monitor/mgmt/2018-09-01/insights/tenantactivitylogs.go @@ -92,6 +92,7 @@ func (client TenantActivityLogsClient) List(ctx context.Context, filter string, result.edc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.TenantActivityLogsClient", "List", resp, "Failure responding to request") + return } if result.edc.hasNextLink() && result.edc.IsEmpty() { err = result.NextWithContext(ctx) @@ -156,6 +157,7 @@ func (client TenantActivityLogsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.TenantActivityLogsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/monitor/mgmt/2018-11-01-preview/insights/actiongroups.go b/services/preview/monitor/mgmt/2018-11-01-preview/insights/actiongroups.go index 3839028148d2..6a85354e838c 100644 --- a/services/preview/monitor/mgmt/2018-11-01-preview/insights/actiongroups.go +++ b/services/preview/monitor/mgmt/2018-11-01-preview/insights/actiongroups.go @@ -84,6 +84,7 @@ func (client ActionGroupsClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client ActionGroupsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -243,6 +245,7 @@ func (client ActionGroupsClient) EnableReceiver(ctx context.Context, resourceGro result, err = client.EnableReceiverResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "EnableReceiver", resp, "Failure responding to request") + return } return @@ -319,6 +322,7 @@ func (client ActionGroupsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -393,6 +397,7 @@ func (client ActionGroupsClient) ListByResourceGroup(ctx context.Context, resour result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -464,6 +469,7 @@ func (client ActionGroupsClient) ListBySubscriptionID(ctx context.Context) (resu result, err = client.ListBySubscriptionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "ListBySubscriptionID", resp, "Failure responding to request") + return } return @@ -538,6 +544,7 @@ func (client ActionGroupsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-11-01-preview/insights/activitylogalerts.go b/services/preview/monitor/mgmt/2018-11-01-preview/insights/activitylogalerts.go index c543937e4053..feec0c05d94b 100644 --- a/services/preview/monitor/mgmt/2018-11-01-preview/insights/activitylogalerts.go +++ b/services/preview/monitor/mgmt/2018-11-01-preview/insights/activitylogalerts.go @@ -86,6 +86,7 @@ func (client ActivityLogAlertsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ActivityLogAlertsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client ActivityLogAlertsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +314,7 @@ func (client ActivityLogAlertsClient) ListByResourceGroup(ctx context.Context, r result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -382,6 +386,7 @@ func (client ActivityLogAlertsClient) ListBySubscriptionID(ctx context.Context) result, err = client.ListBySubscriptionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "ListBySubscriptionID", resp, "Failure responding to request") + return } return @@ -456,6 +461,7 @@ func (client ActivityLogAlertsClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-11-01-preview/insights/activitylogs.go b/services/preview/monitor/mgmt/2018-11-01-preview/insights/activitylogs.go index 0c472e12686d..7cc516df7dd6 100644 --- a/services/preview/monitor/mgmt/2018-11-01-preview/insights/activitylogs.go +++ b/services/preview/monitor/mgmt/2018-11-01-preview/insights/activitylogs.go @@ -88,6 +88,7 @@ func (client ActivityLogsClient) List(ctx context.Context, filter string, select result.edc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogsClient", "List", resp, "Failure responding to request") + return } if result.edc.hasNextLink() && result.edc.IsEmpty() { err = result.NextWithContext(ctx) @@ -154,6 +155,7 @@ func (client ActivityLogsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/monitor/mgmt/2018-11-01-preview/insights/alertruleincidents.go b/services/preview/monitor/mgmt/2018-11-01-preview/insights/alertruleincidents.go index f52b59ba121d..dd854793d478 100644 --- a/services/preview/monitor/mgmt/2018-11-01-preview/insights/alertruleincidents.go +++ b/services/preview/monitor/mgmt/2018-11-01-preview/insights/alertruleincidents.go @@ -74,6 +74,7 @@ func (client AlertRuleIncidentsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRuleIncidentsClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client AlertRuleIncidentsClient) ListByAlertRule(ctx context.Context, reso result, err = client.ListByAlertRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRuleIncidentsClient", "ListByAlertRule", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-11-01-preview/insights/alertrules.go b/services/preview/monitor/mgmt/2018-11-01-preview/insights/alertrules.go index 4242145741e0..7e0fa827600c 100644 --- a/services/preview/monitor/mgmt/2018-11-01-preview/insights/alertrules.go +++ b/services/preview/monitor/mgmt/2018-11-01-preview/insights/alertrules.go @@ -84,6 +84,7 @@ func (client AlertRulesClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client AlertRulesClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client AlertRulesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +312,7 @@ func (client AlertRulesClient) ListByResourceGroup(ctx context.Context, resource result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -380,6 +384,7 @@ func (client AlertRulesClient) ListBySubscription(ctx context.Context) (result A result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -454,6 +459,7 @@ func (client AlertRulesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-11-01-preview/insights/autoscalesettings.go b/services/preview/monitor/mgmt/2018-11-01-preview/insights/autoscalesettings.go index deac6f5e02c4..a895adabb8ad 100644 --- a/services/preview/monitor/mgmt/2018-11-01-preview/insights/autoscalesettings.go +++ b/services/preview/monitor/mgmt/2018-11-01-preview/insights/autoscalesettings.go @@ -84,6 +84,7 @@ func (client AutoscaleSettingsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client AutoscaleSettingsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "Delete", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client AutoscaleSettingsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +313,7 @@ func (client AutoscaleSettingsClient) ListByResourceGroup(ctx context.Context, r result.asrc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.asrc.hasNextLink() && result.asrc.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +377,7 @@ func (client AutoscaleSettingsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -422,6 +427,7 @@ func (client AutoscaleSettingsClient) ListBySubscription(ctx context.Context) (r result.asrc, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.asrc.hasNextLink() && result.asrc.IsEmpty() { err = result.NextWithContext(ctx) @@ -484,6 +490,7 @@ func (client AutoscaleSettingsClient) listBySubscriptionNextResults(ctx context. result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -536,6 +543,7 @@ func (client AutoscaleSettingsClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-11-01-preview/insights/diagnosticsettings.go b/services/preview/monitor/mgmt/2018-11-01-preview/insights/diagnosticsettings.go index 5963a2b91d55..baaf0d2976e9 100644 --- a/services/preview/monitor/mgmt/2018-11-01-preview/insights/diagnosticsettings.go +++ b/services/preview/monitor/mgmt/2018-11-01-preview/insights/diagnosticsettings.go @@ -74,6 +74,7 @@ func (client DiagnosticSettingsClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client DiagnosticSettingsClient) Delete(ctx context.Context, resourceURI s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsClient", "Delete", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client DiagnosticSettingsClient) Get(ctx context.Context, resourceURI stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -296,6 +299,7 @@ func (client DiagnosticSettingsClient) List(ctx context.Context, resourceURI str result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-11-01-preview/insights/diagnosticsettingscategory.go b/services/preview/monitor/mgmt/2018-11-01-preview/insights/diagnosticsettingscategory.go index 45e26165ef5d..841ec82d6adf 100644 --- a/services/preview/monitor/mgmt/2018-11-01-preview/insights/diagnosticsettingscategory.go +++ b/services/preview/monitor/mgmt/2018-11-01-preview/insights/diagnosticsettingscategory.go @@ -73,6 +73,7 @@ func (client DiagnosticSettingsCategoryClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsCategoryClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client DiagnosticSettingsCategoryClient) List(ctx context.Context, resourc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsCategoryClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-11-01-preview/insights/eventcategories.go b/services/preview/monitor/mgmt/2018-11-01-preview/insights/eventcategories.go index 4e9d430e4c56..0069d84da2c6 100644 --- a/services/preview/monitor/mgmt/2018-11-01-preview/insights/eventcategories.go +++ b/services/preview/monitor/mgmt/2018-11-01-preview/insights/eventcategories.go @@ -70,6 +70,7 @@ func (client EventCategoriesClient) List(ctx context.Context) (result EventCateg result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.EventCategoriesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-11-01-preview/insights/logprofiles.go b/services/preview/monitor/mgmt/2018-11-01-preview/insights/logprofiles.go index 578de17870e2..5074f5435e90 100644 --- a/services/preview/monitor/mgmt/2018-11-01-preview/insights/logprofiles.go +++ b/services/preview/monitor/mgmt/2018-11-01-preview/insights/logprofiles.go @@ -87,6 +87,7 @@ func (client LogProfilesClient) CreateOrUpdate(ctx context.Context, logProfileNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client LogProfilesClient) Delete(ctx context.Context, logProfileName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "Delete", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client LogProfilesClient) Get(ctx context.Context, logProfileName string) result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +308,7 @@ func (client LogProfilesClient) List(ctx context.Context) (result LogProfileColl result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "List", resp, "Failure responding to request") + return } return @@ -378,6 +382,7 @@ func (client LogProfilesClient) Update(ctx context.Context, logProfileName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-11-01-preview/insights/metricalerts.go b/services/preview/monitor/mgmt/2018-11-01-preview/insights/metricalerts.go index 765121f34c9c..daac025e0cb5 100644 --- a/services/preview/monitor/mgmt/2018-11-01-preview/insights/metricalerts.go +++ b/services/preview/monitor/mgmt/2018-11-01-preview/insights/metricalerts.go @@ -87,6 +87,7 @@ func (client MetricAlertsClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client MetricAlertsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client MetricAlertsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +315,7 @@ func (client MetricAlertsClient) ListByResourceGroup(ctx context.Context, resour result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -383,6 +387,7 @@ func (client MetricAlertsClient) ListBySubscription(ctx context.Context) (result result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -457,6 +462,7 @@ func (client MetricAlertsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-11-01-preview/insights/metricalertsstatus.go b/services/preview/monitor/mgmt/2018-11-01-preview/insights/metricalertsstatus.go index 24eb4387f0f8..a757c23ae4cc 100644 --- a/services/preview/monitor/mgmt/2018-11-01-preview/insights/metricalertsstatus.go +++ b/services/preview/monitor/mgmt/2018-11-01-preview/insights/metricalertsstatus.go @@ -73,6 +73,7 @@ func (client MetricAlertsStatusClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsStatusClient", "List", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client MetricAlertsStatusClient) ListByName(ctx context.Context, resourceG result, err = client.ListByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsStatusClient", "ListByName", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-11-01-preview/insights/metricbaseline.go b/services/preview/monitor/mgmt/2018-11-01-preview/insights/metricbaseline.go index e3bfa14051ef..fb9c7d1e572a 100644 --- a/services/preview/monitor/mgmt/2018-11-01-preview/insights/metricbaseline.go +++ b/services/preview/monitor/mgmt/2018-11-01-preview/insights/metricbaseline.go @@ -83,6 +83,7 @@ func (client MetricBaselineClient) CalculateBaseline(ctx context.Context, resour result, err = client.CalculateBaselineResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricBaselineClient", "CalculateBaseline", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client MetricBaselineClient) Get(ctx context.Context, resourceURI string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricBaselineClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-11-01-preview/insights/metricdefinitions.go b/services/preview/monitor/mgmt/2018-11-01-preview/insights/metricdefinitions.go index aa005b92d7de..1d0a872599fe 100644 --- a/services/preview/monitor/mgmt/2018-11-01-preview/insights/metricdefinitions.go +++ b/services/preview/monitor/mgmt/2018-11-01-preview/insights/metricdefinitions.go @@ -73,6 +73,7 @@ func (client MetricDefinitionsClient) List(ctx context.Context, resourceURI stri result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricDefinitionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-11-01-preview/insights/metricnamespaces.go b/services/preview/monitor/mgmt/2018-11-01-preview/insights/metricnamespaces.go index 8b1f006fc2ef..bdb6bcc8fed1 100644 --- a/services/preview/monitor/mgmt/2018-11-01-preview/insights/metricnamespaces.go +++ b/services/preview/monitor/mgmt/2018-11-01-preview/insights/metricnamespaces.go @@ -73,6 +73,7 @@ func (client MetricNamespacesClient) List(ctx context.Context, resourceURI strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricNamespacesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-11-01-preview/insights/metrics.go b/services/preview/monitor/mgmt/2018-11-01-preview/insights/metrics.go index 35e6b09c2106..352bd7b4caea 100644 --- a/services/preview/monitor/mgmt/2018-11-01-preview/insights/metrics.go +++ b/services/preview/monitor/mgmt/2018-11-01-preview/insights/metrics.go @@ -92,6 +92,7 @@ func (client MetricsClient) List(ctx context.Context, resourceURI string, timesp result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-11-01-preview/insights/operations.go b/services/preview/monitor/mgmt/2018-11-01-preview/insights/operations.go index 52fa11ee0e69..1943bd686cbf 100644 --- a/services/preview/monitor/mgmt/2018-11-01-preview/insights/operations.go +++ b/services/preview/monitor/mgmt/2018-11-01-preview/insights/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-11-01-preview/insights/scheduledqueryrules.go b/services/preview/monitor/mgmt/2018-11-01-preview/insights/scheduledqueryrules.go index 50efb2ad2853..7fe950971ffb 100644 --- a/services/preview/monitor/mgmt/2018-11-01-preview/insights/scheduledqueryrules.go +++ b/services/preview/monitor/mgmt/2018-11-01-preview/insights/scheduledqueryrules.go @@ -89,6 +89,7 @@ func (client ScheduledQueryRulesClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client ScheduledQueryRulesClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client ScheduledQueryRulesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client ScheduledQueryRulesClient) ListByResourceGroup(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -393,6 +397,7 @@ func (client ScheduledQueryRulesClient) ListBySubscription(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -470,6 +475,7 @@ func (client ScheduledQueryRulesClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2018-11-01-preview/insights/tenantactivitylogs.go b/services/preview/monitor/mgmt/2018-11-01-preview/insights/tenantactivitylogs.go index b3c8c744eb20..72eaadb42215 100644 --- a/services/preview/monitor/mgmt/2018-11-01-preview/insights/tenantactivitylogs.go +++ b/services/preview/monitor/mgmt/2018-11-01-preview/insights/tenantactivitylogs.go @@ -92,6 +92,7 @@ func (client TenantActivityLogsClient) List(ctx context.Context, filter string, result.edc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.TenantActivityLogsClient", "List", resp, "Failure responding to request") + return } if result.edc.hasNextLink() && result.edc.IsEmpty() { err = result.NextWithContext(ctx) @@ -156,6 +157,7 @@ func (client TenantActivityLogsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.TenantActivityLogsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/monitor/mgmt/2018-11-01-preview/insights/vminsights.go b/services/preview/monitor/mgmt/2018-11-01-preview/insights/vminsights.go index 29c8eadc1ca5..8f06ee64c27c 100644 --- a/services/preview/monitor/mgmt/2018-11-01-preview/insights/vminsights.go +++ b/services/preview/monitor/mgmt/2018-11-01-preview/insights/vminsights.go @@ -72,6 +72,7 @@ func (client VMInsightsClient) GetOnboardingStatus(ctx context.Context, resource result, err = client.GetOnboardingStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.VMInsightsClient", "GetOnboardingStatus", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-03-01/insights/actiongroups.go b/services/preview/monitor/mgmt/2019-03-01/insights/actiongroups.go index 2d89188723a5..13946fe7557f 100644 --- a/services/preview/monitor/mgmt/2019-03-01/insights/actiongroups.go +++ b/services/preview/monitor/mgmt/2019-03-01/insights/actiongroups.go @@ -84,6 +84,7 @@ func (client ActionGroupsClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client ActionGroupsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -243,6 +245,7 @@ func (client ActionGroupsClient) EnableReceiver(ctx context.Context, resourceGro result, err = client.EnableReceiverResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "EnableReceiver", resp, "Failure responding to request") + return } return @@ -319,6 +322,7 @@ func (client ActionGroupsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -393,6 +397,7 @@ func (client ActionGroupsClient) ListByResourceGroup(ctx context.Context, resour result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -464,6 +469,7 @@ func (client ActionGroupsClient) ListBySubscriptionID(ctx context.Context) (resu result, err = client.ListBySubscriptionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "ListBySubscriptionID", resp, "Failure responding to request") + return } return @@ -538,6 +544,7 @@ func (client ActionGroupsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-03-01/insights/activitylogalerts.go b/services/preview/monitor/mgmt/2019-03-01/insights/activitylogalerts.go index c543937e4053..feec0c05d94b 100644 --- a/services/preview/monitor/mgmt/2019-03-01/insights/activitylogalerts.go +++ b/services/preview/monitor/mgmt/2019-03-01/insights/activitylogalerts.go @@ -86,6 +86,7 @@ func (client ActivityLogAlertsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ActivityLogAlertsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client ActivityLogAlertsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +314,7 @@ func (client ActivityLogAlertsClient) ListByResourceGroup(ctx context.Context, r result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -382,6 +386,7 @@ func (client ActivityLogAlertsClient) ListBySubscriptionID(ctx context.Context) result, err = client.ListBySubscriptionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "ListBySubscriptionID", resp, "Failure responding to request") + return } return @@ -456,6 +461,7 @@ func (client ActivityLogAlertsClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-03-01/insights/activitylogs.go b/services/preview/monitor/mgmt/2019-03-01/insights/activitylogs.go index 0c472e12686d..7cc516df7dd6 100644 --- a/services/preview/monitor/mgmt/2019-03-01/insights/activitylogs.go +++ b/services/preview/monitor/mgmt/2019-03-01/insights/activitylogs.go @@ -88,6 +88,7 @@ func (client ActivityLogsClient) List(ctx context.Context, filter string, select result.edc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogsClient", "List", resp, "Failure responding to request") + return } if result.edc.hasNextLink() && result.edc.IsEmpty() { err = result.NextWithContext(ctx) @@ -154,6 +155,7 @@ func (client ActivityLogsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/monitor/mgmt/2019-03-01/insights/alertruleincidents.go b/services/preview/monitor/mgmt/2019-03-01/insights/alertruleincidents.go index f52b59ba121d..dd854793d478 100644 --- a/services/preview/monitor/mgmt/2019-03-01/insights/alertruleincidents.go +++ b/services/preview/monitor/mgmt/2019-03-01/insights/alertruleincidents.go @@ -74,6 +74,7 @@ func (client AlertRuleIncidentsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRuleIncidentsClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client AlertRuleIncidentsClient) ListByAlertRule(ctx context.Context, reso result, err = client.ListByAlertRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRuleIncidentsClient", "ListByAlertRule", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-03-01/insights/alertrules.go b/services/preview/monitor/mgmt/2019-03-01/insights/alertrules.go index 4242145741e0..7e0fa827600c 100644 --- a/services/preview/monitor/mgmt/2019-03-01/insights/alertrules.go +++ b/services/preview/monitor/mgmt/2019-03-01/insights/alertrules.go @@ -84,6 +84,7 @@ func (client AlertRulesClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client AlertRulesClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client AlertRulesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +312,7 @@ func (client AlertRulesClient) ListByResourceGroup(ctx context.Context, resource result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -380,6 +384,7 @@ func (client AlertRulesClient) ListBySubscription(ctx context.Context) (result A result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -454,6 +459,7 @@ func (client AlertRulesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-03-01/insights/autoscalesettings.go b/services/preview/monitor/mgmt/2019-03-01/insights/autoscalesettings.go index deac6f5e02c4..a895adabb8ad 100644 --- a/services/preview/monitor/mgmt/2019-03-01/insights/autoscalesettings.go +++ b/services/preview/monitor/mgmt/2019-03-01/insights/autoscalesettings.go @@ -84,6 +84,7 @@ func (client AutoscaleSettingsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client AutoscaleSettingsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "Delete", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client AutoscaleSettingsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +313,7 @@ func (client AutoscaleSettingsClient) ListByResourceGroup(ctx context.Context, r result.asrc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.asrc.hasNextLink() && result.asrc.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +377,7 @@ func (client AutoscaleSettingsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -422,6 +427,7 @@ func (client AutoscaleSettingsClient) ListBySubscription(ctx context.Context) (r result.asrc, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.asrc.hasNextLink() && result.asrc.IsEmpty() { err = result.NextWithContext(ctx) @@ -484,6 +490,7 @@ func (client AutoscaleSettingsClient) listBySubscriptionNextResults(ctx context. result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -536,6 +543,7 @@ func (client AutoscaleSettingsClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-03-01/insights/baselines.go b/services/preview/monitor/mgmt/2019-03-01/insights/baselines.go index 0b380d435f0d..5c4d707baaf7 100644 --- a/services/preview/monitor/mgmt/2019-03-01/insights/baselines.go +++ b/services/preview/monitor/mgmt/2019-03-01/insights/baselines.go @@ -86,6 +86,7 @@ func (client BaselinesClient) List(ctx context.Context, resourceURI string, metr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.BaselinesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-03-01/insights/diagnosticsettings.go b/services/preview/monitor/mgmt/2019-03-01/insights/diagnosticsettings.go index 5963a2b91d55..baaf0d2976e9 100644 --- a/services/preview/monitor/mgmt/2019-03-01/insights/diagnosticsettings.go +++ b/services/preview/monitor/mgmt/2019-03-01/insights/diagnosticsettings.go @@ -74,6 +74,7 @@ func (client DiagnosticSettingsClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client DiagnosticSettingsClient) Delete(ctx context.Context, resourceURI s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsClient", "Delete", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client DiagnosticSettingsClient) Get(ctx context.Context, resourceURI stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -296,6 +299,7 @@ func (client DiagnosticSettingsClient) List(ctx context.Context, resourceURI str result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-03-01/insights/diagnosticsettingscategory.go b/services/preview/monitor/mgmt/2019-03-01/insights/diagnosticsettingscategory.go index 45e26165ef5d..841ec82d6adf 100644 --- a/services/preview/monitor/mgmt/2019-03-01/insights/diagnosticsettingscategory.go +++ b/services/preview/monitor/mgmt/2019-03-01/insights/diagnosticsettingscategory.go @@ -73,6 +73,7 @@ func (client DiagnosticSettingsCategoryClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsCategoryClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client DiagnosticSettingsCategoryClient) List(ctx context.Context, resourc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsCategoryClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-03-01/insights/eventcategories.go b/services/preview/monitor/mgmt/2019-03-01/insights/eventcategories.go index 4e9d430e4c56..0069d84da2c6 100644 --- a/services/preview/monitor/mgmt/2019-03-01/insights/eventcategories.go +++ b/services/preview/monitor/mgmt/2019-03-01/insights/eventcategories.go @@ -70,6 +70,7 @@ func (client EventCategoriesClient) List(ctx context.Context) (result EventCateg result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.EventCategoriesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-03-01/insights/logprofiles.go b/services/preview/monitor/mgmt/2019-03-01/insights/logprofiles.go index 578de17870e2..5074f5435e90 100644 --- a/services/preview/monitor/mgmt/2019-03-01/insights/logprofiles.go +++ b/services/preview/monitor/mgmt/2019-03-01/insights/logprofiles.go @@ -87,6 +87,7 @@ func (client LogProfilesClient) CreateOrUpdate(ctx context.Context, logProfileNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client LogProfilesClient) Delete(ctx context.Context, logProfileName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "Delete", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client LogProfilesClient) Get(ctx context.Context, logProfileName string) result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +308,7 @@ func (client LogProfilesClient) List(ctx context.Context) (result LogProfileColl result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "List", resp, "Failure responding to request") + return } return @@ -378,6 +382,7 @@ func (client LogProfilesClient) Update(ctx context.Context, logProfileName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-03-01/insights/metricalerts.go b/services/preview/monitor/mgmt/2019-03-01/insights/metricalerts.go index 765121f34c9c..daac025e0cb5 100644 --- a/services/preview/monitor/mgmt/2019-03-01/insights/metricalerts.go +++ b/services/preview/monitor/mgmt/2019-03-01/insights/metricalerts.go @@ -87,6 +87,7 @@ func (client MetricAlertsClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client MetricAlertsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client MetricAlertsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +315,7 @@ func (client MetricAlertsClient) ListByResourceGroup(ctx context.Context, resour result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -383,6 +387,7 @@ func (client MetricAlertsClient) ListBySubscription(ctx context.Context) (result result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -457,6 +462,7 @@ func (client MetricAlertsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-03-01/insights/metricalertsstatus.go b/services/preview/monitor/mgmt/2019-03-01/insights/metricalertsstatus.go index 24eb4387f0f8..a757c23ae4cc 100644 --- a/services/preview/monitor/mgmt/2019-03-01/insights/metricalertsstatus.go +++ b/services/preview/monitor/mgmt/2019-03-01/insights/metricalertsstatus.go @@ -73,6 +73,7 @@ func (client MetricAlertsStatusClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsStatusClient", "List", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client MetricAlertsStatusClient) ListByName(ctx context.Context, resourceG result, err = client.ListByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsStatusClient", "ListByName", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-03-01/insights/metricbaseline.go b/services/preview/monitor/mgmt/2019-03-01/insights/metricbaseline.go index e3bfa14051ef..fb9c7d1e572a 100644 --- a/services/preview/monitor/mgmt/2019-03-01/insights/metricbaseline.go +++ b/services/preview/monitor/mgmt/2019-03-01/insights/metricbaseline.go @@ -83,6 +83,7 @@ func (client MetricBaselineClient) CalculateBaseline(ctx context.Context, resour result, err = client.CalculateBaselineResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricBaselineClient", "CalculateBaseline", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client MetricBaselineClient) Get(ctx context.Context, resourceURI string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricBaselineClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-03-01/insights/metricdefinitions.go b/services/preview/monitor/mgmt/2019-03-01/insights/metricdefinitions.go index aa005b92d7de..1d0a872599fe 100644 --- a/services/preview/monitor/mgmt/2019-03-01/insights/metricdefinitions.go +++ b/services/preview/monitor/mgmt/2019-03-01/insights/metricdefinitions.go @@ -73,6 +73,7 @@ func (client MetricDefinitionsClient) List(ctx context.Context, resourceURI stri result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricDefinitionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-03-01/insights/metricnamespaces.go b/services/preview/monitor/mgmt/2019-03-01/insights/metricnamespaces.go index 8b1f006fc2ef..bdb6bcc8fed1 100644 --- a/services/preview/monitor/mgmt/2019-03-01/insights/metricnamespaces.go +++ b/services/preview/monitor/mgmt/2019-03-01/insights/metricnamespaces.go @@ -73,6 +73,7 @@ func (client MetricNamespacesClient) List(ctx context.Context, resourceURI strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricNamespacesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-03-01/insights/metrics.go b/services/preview/monitor/mgmt/2019-03-01/insights/metrics.go index 35e6b09c2106..352bd7b4caea 100644 --- a/services/preview/monitor/mgmt/2019-03-01/insights/metrics.go +++ b/services/preview/monitor/mgmt/2019-03-01/insights/metrics.go @@ -92,6 +92,7 @@ func (client MetricsClient) List(ctx context.Context, resourceURI string, timesp result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-03-01/insights/operations.go b/services/preview/monitor/mgmt/2019-03-01/insights/operations.go index 52fa11ee0e69..1943bd686cbf 100644 --- a/services/preview/monitor/mgmt/2019-03-01/insights/operations.go +++ b/services/preview/monitor/mgmt/2019-03-01/insights/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-03-01/insights/scheduledqueryrules.go b/services/preview/monitor/mgmt/2019-03-01/insights/scheduledqueryrules.go index 50efb2ad2853..7fe950971ffb 100644 --- a/services/preview/monitor/mgmt/2019-03-01/insights/scheduledqueryrules.go +++ b/services/preview/monitor/mgmt/2019-03-01/insights/scheduledqueryrules.go @@ -89,6 +89,7 @@ func (client ScheduledQueryRulesClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client ScheduledQueryRulesClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client ScheduledQueryRulesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client ScheduledQueryRulesClient) ListByResourceGroup(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -393,6 +397,7 @@ func (client ScheduledQueryRulesClient) ListBySubscription(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -470,6 +475,7 @@ func (client ScheduledQueryRulesClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-03-01/insights/tenantactivitylogs.go b/services/preview/monitor/mgmt/2019-03-01/insights/tenantactivitylogs.go index b3c8c744eb20..72eaadb42215 100644 --- a/services/preview/monitor/mgmt/2019-03-01/insights/tenantactivitylogs.go +++ b/services/preview/monitor/mgmt/2019-03-01/insights/tenantactivitylogs.go @@ -92,6 +92,7 @@ func (client TenantActivityLogsClient) List(ctx context.Context, filter string, result.edc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.TenantActivityLogsClient", "List", resp, "Failure responding to request") + return } if result.edc.hasNextLink() && result.edc.IsEmpty() { err = result.NextWithContext(ctx) @@ -156,6 +157,7 @@ func (client TenantActivityLogsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.TenantActivityLogsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/monitor/mgmt/2019-03-01/insights/vminsights.go b/services/preview/monitor/mgmt/2019-03-01/insights/vminsights.go index 29c8eadc1ca5..8f06ee64c27c 100644 --- a/services/preview/monitor/mgmt/2019-03-01/insights/vminsights.go +++ b/services/preview/monitor/mgmt/2019-03-01/insights/vminsights.go @@ -72,6 +72,7 @@ func (client VMInsightsClient) GetOnboardingStatus(ctx context.Context, resource result, err = client.GetOnboardingStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.VMInsightsClient", "GetOnboardingStatus", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-06-01/insights/actiongroups.go b/services/preview/monitor/mgmt/2019-06-01/insights/actiongroups.go index 80e1101b26c2..92ff9b6fc60a 100644 --- a/services/preview/monitor/mgmt/2019-06-01/insights/actiongroups.go +++ b/services/preview/monitor/mgmt/2019-06-01/insights/actiongroups.go @@ -84,6 +84,7 @@ func (client ActionGroupsClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client ActionGroupsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -243,6 +245,7 @@ func (client ActionGroupsClient) EnableReceiver(ctx context.Context, resourceGro result, err = client.EnableReceiverResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "EnableReceiver", resp, "Failure responding to request") + return } return @@ -319,6 +322,7 @@ func (client ActionGroupsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -393,6 +397,7 @@ func (client ActionGroupsClient) ListByResourceGroup(ctx context.Context, resour result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -464,6 +469,7 @@ func (client ActionGroupsClient) ListBySubscriptionID(ctx context.Context) (resu result, err = client.ListBySubscriptionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "ListBySubscriptionID", resp, "Failure responding to request") + return } return @@ -538,6 +544,7 @@ func (client ActionGroupsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActionGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-06-01/insights/activitylogalerts.go b/services/preview/monitor/mgmt/2019-06-01/insights/activitylogalerts.go index c543937e4053..feec0c05d94b 100644 --- a/services/preview/monitor/mgmt/2019-06-01/insights/activitylogalerts.go +++ b/services/preview/monitor/mgmt/2019-06-01/insights/activitylogalerts.go @@ -86,6 +86,7 @@ func (client ActivityLogAlertsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ActivityLogAlertsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client ActivityLogAlertsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +314,7 @@ func (client ActivityLogAlertsClient) ListByResourceGroup(ctx context.Context, r result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -382,6 +386,7 @@ func (client ActivityLogAlertsClient) ListBySubscriptionID(ctx context.Context) result, err = client.ListBySubscriptionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "ListBySubscriptionID", resp, "Failure responding to request") + return } return @@ -456,6 +461,7 @@ func (client ActivityLogAlertsClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogAlertsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-06-01/insights/activitylogs.go b/services/preview/monitor/mgmt/2019-06-01/insights/activitylogs.go index 0c472e12686d..7cc516df7dd6 100644 --- a/services/preview/monitor/mgmt/2019-06-01/insights/activitylogs.go +++ b/services/preview/monitor/mgmt/2019-06-01/insights/activitylogs.go @@ -88,6 +88,7 @@ func (client ActivityLogsClient) List(ctx context.Context, filter string, select result.edc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogsClient", "List", resp, "Failure responding to request") + return } if result.edc.hasNextLink() && result.edc.IsEmpty() { err = result.NextWithContext(ctx) @@ -154,6 +155,7 @@ func (client ActivityLogsClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ActivityLogsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/monitor/mgmt/2019-06-01/insights/alertruleincidents.go b/services/preview/monitor/mgmt/2019-06-01/insights/alertruleincidents.go index f52b59ba121d..dd854793d478 100644 --- a/services/preview/monitor/mgmt/2019-06-01/insights/alertruleincidents.go +++ b/services/preview/monitor/mgmt/2019-06-01/insights/alertruleincidents.go @@ -74,6 +74,7 @@ func (client AlertRuleIncidentsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRuleIncidentsClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client AlertRuleIncidentsClient) ListByAlertRule(ctx context.Context, reso result, err = client.ListByAlertRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRuleIncidentsClient", "ListByAlertRule", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-06-01/insights/alertrules.go b/services/preview/monitor/mgmt/2019-06-01/insights/alertrules.go index 4242145741e0..7e0fa827600c 100644 --- a/services/preview/monitor/mgmt/2019-06-01/insights/alertrules.go +++ b/services/preview/monitor/mgmt/2019-06-01/insights/alertrules.go @@ -84,6 +84,7 @@ func (client AlertRulesClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client AlertRulesClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client AlertRulesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +312,7 @@ func (client AlertRulesClient) ListByResourceGroup(ctx context.Context, resource result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -380,6 +384,7 @@ func (client AlertRulesClient) ListBySubscription(ctx context.Context) (result A result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -454,6 +459,7 @@ func (client AlertRulesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AlertRulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-06-01/insights/autoscalesettings.go b/services/preview/monitor/mgmt/2019-06-01/insights/autoscalesettings.go index deac6f5e02c4..a895adabb8ad 100644 --- a/services/preview/monitor/mgmt/2019-06-01/insights/autoscalesettings.go +++ b/services/preview/monitor/mgmt/2019-06-01/insights/autoscalesettings.go @@ -84,6 +84,7 @@ func (client AutoscaleSettingsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client AutoscaleSettingsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "Delete", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client AutoscaleSettingsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +313,7 @@ func (client AutoscaleSettingsClient) ListByResourceGroup(ctx context.Context, r result.asrc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.asrc.hasNextLink() && result.asrc.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +377,7 @@ func (client AutoscaleSettingsClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -422,6 +427,7 @@ func (client AutoscaleSettingsClient) ListBySubscription(ctx context.Context) (r result.asrc, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.asrc.hasNextLink() && result.asrc.IsEmpty() { err = result.NextWithContext(ctx) @@ -484,6 +490,7 @@ func (client AutoscaleSettingsClient) listBySubscriptionNextResults(ctx context. result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -536,6 +543,7 @@ func (client AutoscaleSettingsClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.AutoscaleSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-06-01/insights/baselines.go b/services/preview/monitor/mgmt/2019-06-01/insights/baselines.go index 0b380d435f0d..5c4d707baaf7 100644 --- a/services/preview/monitor/mgmt/2019-06-01/insights/baselines.go +++ b/services/preview/monitor/mgmt/2019-06-01/insights/baselines.go @@ -86,6 +86,7 @@ func (client BaselinesClient) List(ctx context.Context, resourceURI string, metr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.BaselinesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-06-01/insights/diagnosticsettings.go b/services/preview/monitor/mgmt/2019-06-01/insights/diagnosticsettings.go index 5963a2b91d55..baaf0d2976e9 100644 --- a/services/preview/monitor/mgmt/2019-06-01/insights/diagnosticsettings.go +++ b/services/preview/monitor/mgmt/2019-06-01/insights/diagnosticsettings.go @@ -74,6 +74,7 @@ func (client DiagnosticSettingsClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client DiagnosticSettingsClient) Delete(ctx context.Context, resourceURI s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsClient", "Delete", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client DiagnosticSettingsClient) Get(ctx context.Context, resourceURI stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -296,6 +299,7 @@ func (client DiagnosticSettingsClient) List(ctx context.Context, resourceURI str result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-06-01/insights/diagnosticsettingscategory.go b/services/preview/monitor/mgmt/2019-06-01/insights/diagnosticsettingscategory.go index 45e26165ef5d..841ec82d6adf 100644 --- a/services/preview/monitor/mgmt/2019-06-01/insights/diagnosticsettingscategory.go +++ b/services/preview/monitor/mgmt/2019-06-01/insights/diagnosticsettingscategory.go @@ -73,6 +73,7 @@ func (client DiagnosticSettingsCategoryClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsCategoryClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client DiagnosticSettingsCategoryClient) List(ctx context.Context, resourc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DiagnosticSettingsCategoryClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-06-01/insights/eventcategories.go b/services/preview/monitor/mgmt/2019-06-01/insights/eventcategories.go index 4e9d430e4c56..0069d84da2c6 100644 --- a/services/preview/monitor/mgmt/2019-06-01/insights/eventcategories.go +++ b/services/preview/monitor/mgmt/2019-06-01/insights/eventcategories.go @@ -70,6 +70,7 @@ func (client EventCategoriesClient) List(ctx context.Context) (result EventCateg result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.EventCategoriesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-06-01/insights/logprofiles.go b/services/preview/monitor/mgmt/2019-06-01/insights/logprofiles.go index 578de17870e2..5074f5435e90 100644 --- a/services/preview/monitor/mgmt/2019-06-01/insights/logprofiles.go +++ b/services/preview/monitor/mgmt/2019-06-01/insights/logprofiles.go @@ -87,6 +87,7 @@ func (client LogProfilesClient) CreateOrUpdate(ctx context.Context, logProfileNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client LogProfilesClient) Delete(ctx context.Context, logProfileName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "Delete", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client LogProfilesClient) Get(ctx context.Context, logProfileName string) result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +308,7 @@ func (client LogProfilesClient) List(ctx context.Context) (result LogProfileColl result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "List", resp, "Failure responding to request") + return } return @@ -378,6 +382,7 @@ func (client LogProfilesClient) Update(ctx context.Context, logProfileName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.LogProfilesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-06-01/insights/metricalerts.go b/services/preview/monitor/mgmt/2019-06-01/insights/metricalerts.go index 765121f34c9c..daac025e0cb5 100644 --- a/services/preview/monitor/mgmt/2019-06-01/insights/metricalerts.go +++ b/services/preview/monitor/mgmt/2019-06-01/insights/metricalerts.go @@ -87,6 +87,7 @@ func (client MetricAlertsClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client MetricAlertsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client MetricAlertsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +315,7 @@ func (client MetricAlertsClient) ListByResourceGroup(ctx context.Context, resour result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -383,6 +387,7 @@ func (client MetricAlertsClient) ListBySubscription(ctx context.Context) (result result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -457,6 +462,7 @@ func (client MetricAlertsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-06-01/insights/metricalertsstatus.go b/services/preview/monitor/mgmt/2019-06-01/insights/metricalertsstatus.go index 24eb4387f0f8..a757c23ae4cc 100644 --- a/services/preview/monitor/mgmt/2019-06-01/insights/metricalertsstatus.go +++ b/services/preview/monitor/mgmt/2019-06-01/insights/metricalertsstatus.go @@ -73,6 +73,7 @@ func (client MetricAlertsStatusClient) List(ctx context.Context, resourceGroupNa result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsStatusClient", "List", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client MetricAlertsStatusClient) ListByName(ctx context.Context, resourceG result, err = client.ListByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricAlertsStatusClient", "ListByName", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-06-01/insights/metricbaseline.go b/services/preview/monitor/mgmt/2019-06-01/insights/metricbaseline.go index e3bfa14051ef..fb9c7d1e572a 100644 --- a/services/preview/monitor/mgmt/2019-06-01/insights/metricbaseline.go +++ b/services/preview/monitor/mgmt/2019-06-01/insights/metricbaseline.go @@ -83,6 +83,7 @@ func (client MetricBaselineClient) CalculateBaseline(ctx context.Context, resour result, err = client.CalculateBaselineResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricBaselineClient", "CalculateBaseline", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client MetricBaselineClient) Get(ctx context.Context, resourceURI string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricBaselineClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-06-01/insights/metricdefinitions.go b/services/preview/monitor/mgmt/2019-06-01/insights/metricdefinitions.go index aa005b92d7de..1d0a872599fe 100644 --- a/services/preview/monitor/mgmt/2019-06-01/insights/metricdefinitions.go +++ b/services/preview/monitor/mgmt/2019-06-01/insights/metricdefinitions.go @@ -73,6 +73,7 @@ func (client MetricDefinitionsClient) List(ctx context.Context, resourceURI stri result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricDefinitionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-06-01/insights/metricnamespaces.go b/services/preview/monitor/mgmt/2019-06-01/insights/metricnamespaces.go index 8b1f006fc2ef..bdb6bcc8fed1 100644 --- a/services/preview/monitor/mgmt/2019-06-01/insights/metricnamespaces.go +++ b/services/preview/monitor/mgmt/2019-06-01/insights/metricnamespaces.go @@ -73,6 +73,7 @@ func (client MetricNamespacesClient) List(ctx context.Context, resourceURI strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricNamespacesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-06-01/insights/metrics.go b/services/preview/monitor/mgmt/2019-06-01/insights/metrics.go index 35e6b09c2106..352bd7b4caea 100644 --- a/services/preview/monitor/mgmt/2019-06-01/insights/metrics.go +++ b/services/preview/monitor/mgmt/2019-06-01/insights/metrics.go @@ -92,6 +92,7 @@ func (client MetricsClient) List(ctx context.Context, resourceURI string, timesp result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.MetricsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-06-01/insights/operations.go b/services/preview/monitor/mgmt/2019-06-01/insights/operations.go index 52fa11ee0e69..1943bd686cbf 100644 --- a/services/preview/monitor/mgmt/2019-06-01/insights/operations.go +++ b/services/preview/monitor/mgmt/2019-06-01/insights/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-06-01/insights/scheduledqueryrules.go b/services/preview/monitor/mgmt/2019-06-01/insights/scheduledqueryrules.go index 50efb2ad2853..7fe950971ffb 100644 --- a/services/preview/monitor/mgmt/2019-06-01/insights/scheduledqueryrules.go +++ b/services/preview/monitor/mgmt/2019-06-01/insights/scheduledqueryrules.go @@ -89,6 +89,7 @@ func (client ScheduledQueryRulesClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client ScheduledQueryRulesClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client ScheduledQueryRulesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client ScheduledQueryRulesClient) ListByResourceGroup(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -393,6 +397,7 @@ func (client ScheduledQueryRulesClient) ListBySubscription(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -470,6 +475,7 @@ func (client ScheduledQueryRulesClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.ScheduledQueryRulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-06-01/insights/tenantactivitylogs.go b/services/preview/monitor/mgmt/2019-06-01/insights/tenantactivitylogs.go index b3c8c744eb20..72eaadb42215 100644 --- a/services/preview/monitor/mgmt/2019-06-01/insights/tenantactivitylogs.go +++ b/services/preview/monitor/mgmt/2019-06-01/insights/tenantactivitylogs.go @@ -92,6 +92,7 @@ func (client TenantActivityLogsClient) List(ctx context.Context, filter string, result.edc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.TenantActivityLogsClient", "List", resp, "Failure responding to request") + return } if result.edc.hasNextLink() && result.edc.IsEmpty() { err = result.NextWithContext(ctx) @@ -156,6 +157,7 @@ func (client TenantActivityLogsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.TenantActivityLogsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/monitor/mgmt/2019-06-01/insights/vminsights.go b/services/preview/monitor/mgmt/2019-06-01/insights/vminsights.go index 29c8eadc1ca5..8f06ee64c27c 100644 --- a/services/preview/monitor/mgmt/2019-06-01/insights/vminsights.go +++ b/services/preview/monitor/mgmt/2019-06-01/insights/vminsights.go @@ -72,6 +72,7 @@ func (client VMInsightsClient) GetOnboardingStatus(ctx context.Context, resource result, err = client.GetOnboardingStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.VMInsightsClient", "GetOnboardingStatus", resp, "Failure responding to request") + return } return diff --git a/services/preview/monitor/mgmt/2019-11-01-preview/insights/datacollectionruleassociations.go b/services/preview/monitor/mgmt/2019-11-01-preview/insights/datacollectionruleassociations.go index 71fbd76979de..2e152a6313fc 100644 --- a/services/preview/monitor/mgmt/2019-11-01-preview/insights/datacollectionruleassociations.go +++ b/services/preview/monitor/mgmt/2019-11-01-preview/insights/datacollectionruleassociations.go @@ -88,6 +88,7 @@ func (client DataCollectionRuleAssociationsClient) Create(ctx context.Context, r result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DataCollectionRuleAssociationsClient", "Create", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client DataCollectionRuleAssociationsClient) Delete(ctx context.Context, r result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DataCollectionRuleAssociationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -264,6 +266,7 @@ func (client DataCollectionRuleAssociationsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DataCollectionRuleAssociationsClient", "Get", resp, "Failure responding to request") + return } return @@ -344,6 +347,7 @@ func (client DataCollectionRuleAssociationsClient) ListByResource(ctx context.Co result.dcraporlr, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DataCollectionRuleAssociationsClient", "ListByResource", resp, "Failure responding to request") + return } if result.dcraporlr.hasNextLink() && result.dcraporlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -406,6 +410,7 @@ func (client DataCollectionRuleAssociationsClient) listByResourceNextResults(ctx result, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DataCollectionRuleAssociationsClient", "listByResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -472,6 +477,7 @@ func (client DataCollectionRuleAssociationsClient) ListByRule(ctx context.Contex result.dcraporlr, err = client.ListByRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DataCollectionRuleAssociationsClient", "ListByRule", resp, "Failure responding to request") + return } if result.dcraporlr.hasNextLink() && result.dcraporlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -536,6 +542,7 @@ func (client DataCollectionRuleAssociationsClient) listByRuleNextResults(ctx con result, err = client.ListByRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DataCollectionRuleAssociationsClient", "listByRuleNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/monitor/mgmt/2019-11-01-preview/insights/datacollectionrules.go b/services/preview/monitor/mgmt/2019-11-01-preview/insights/datacollectionrules.go index f30578c4331a..fba824ffdc66 100644 --- a/services/preview/monitor/mgmt/2019-11-01-preview/insights/datacollectionrules.go +++ b/services/preview/monitor/mgmt/2019-11-01-preview/insights/datacollectionrules.go @@ -94,6 +94,7 @@ func (client DataCollectionRulesClient) Create(ctx context.Context, resourceGrou result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DataCollectionRulesClient", "Create", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client DataCollectionRulesClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DataCollectionRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client DataCollectionRulesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DataCollectionRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -365,6 +368,7 @@ func (client DataCollectionRulesClient) ListByResourceGroup(ctx context.Context, result.dcrrlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DataCollectionRulesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dcrrlr.hasNextLink() && result.dcrrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -428,6 +432,7 @@ func (client DataCollectionRulesClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DataCollectionRulesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -483,6 +488,7 @@ func (client DataCollectionRulesClient) ListBySubscription(ctx context.Context) result.dcrrlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DataCollectionRulesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.dcrrlr.hasNextLink() && result.dcrrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -545,6 +551,7 @@ func (client DataCollectionRulesClient) listBySubscriptionNextResults(ctx contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DataCollectionRulesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -611,6 +618,7 @@ func (client DataCollectionRulesClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "insights.DataCollectionRulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/msi/mgmt/2015-08-31-preview/msi/operations.go b/services/preview/msi/mgmt/2015-08-31-preview/msi/operations.go index da9617da6678..659fa33a3d93 100644 --- a/services/preview/msi/mgmt/2015-08-31-preview/msi/operations.go +++ b/services/preview/msi/mgmt/2015-08-31-preview/msi/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "msi.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "msi.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/msi/mgmt/2015-08-31-preview/msi/systemassignedidentities.go b/services/preview/msi/mgmt/2015-08-31-preview/msi/systemassignedidentities.go index 65008fadb8af..d1829be08297 100644 --- a/services/preview/msi/mgmt/2015-08-31-preview/msi/systemassignedidentities.go +++ b/services/preview/msi/mgmt/2015-08-31-preview/msi/systemassignedidentities.go @@ -72,6 +72,7 @@ func (client SystemAssignedIdentitiesClient) GetByScope(ctx context.Context, sco result, err = client.GetByScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "msi.SystemAssignedIdentitiesClient", "GetByScope", resp, "Failure responding to request") + return } return diff --git a/services/preview/msi/mgmt/2015-08-31-preview/msi/userassignedidentities.go b/services/preview/msi/mgmt/2015-08-31-preview/msi/userassignedidentities.go index c9b32287cdc4..670c9ce55bee 100644 --- a/services/preview/msi/mgmt/2015-08-31-preview/msi/userassignedidentities.go +++ b/services/preview/msi/mgmt/2015-08-31-preview/msi/userassignedidentities.go @@ -74,6 +74,7 @@ func (client UserAssignedIdentitiesClient) CreateOrUpdate(ctx context.Context, r result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "msi.UserAssignedIdentitiesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client UserAssignedIdentitiesClient) Delete(ctx context.Context, resourceG result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "msi.UserAssignedIdentitiesClient", "Delete", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client UserAssignedIdentitiesClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "msi.UserAssignedIdentitiesClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +304,7 @@ func (client UserAssignedIdentitiesClient) ListByResourceGroup(ctx context.Conte result.uailr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "msi.UserAssignedIdentitiesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.uailr.hasNextLink() && result.uailr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +368,7 @@ func (client UserAssignedIdentitiesClient) listByResourceGroupNextResults(ctx co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "msi.UserAssignedIdentitiesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -413,6 +418,7 @@ func (client UserAssignedIdentitiesClient) ListBySubscription(ctx context.Contex result.uailr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "msi.UserAssignedIdentitiesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.uailr.hasNextLink() && result.uailr.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +481,7 @@ func (client UserAssignedIdentitiesClient) listBySubscriptionNextResults(ctx con result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "msi.UserAssignedIdentitiesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -527,6 +534,7 @@ func (client UserAssignedIdentitiesClient) Update(ctx context.Context, resourceG result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "msi.UserAssignedIdentitiesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/checknameavailability.go b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/checknameavailability.go index c707f9c3ff49..e365b4351772 100644 --- a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/checknameavailability.go +++ b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/checknameavailability.go @@ -81,6 +81,7 @@ func (client CheckNameAvailabilityClient) Execute(ctx context.Context, nameAvail result, err = client.ExecuteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.CheckNameAvailabilityClient", "Execute", resp, "Failure responding to request") + return } return diff --git a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/configurations.go b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/configurations.go index 73e71732440b..094d0e433a6f 100644 --- a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/configurations.go +++ b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/configurations.go @@ -157,6 +157,7 @@ func (client ConfigurationsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -234,6 +235,7 @@ func (client ConfigurationsClient) ListByServer(ctx context.Context, resourceGro result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ConfigurationsClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/databases.go b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/databases.go index 38c41b686a6c..067237b6e3d2 100644 --- a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/databases.go +++ b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/databases.go @@ -234,6 +234,7 @@ func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.DatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client DatabasesClient) ListByServer(ctx context.Context, resourceGroupNam result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.DatabasesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/firewallrules.go b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/firewallrules.go index d10dc6176e2b..83f6f3633271 100644 --- a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/firewallrules.go +++ b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/firewallrules.go @@ -246,6 +246,7 @@ func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.FirewallRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +324,7 @@ func (client FirewallRulesClient) ListByServer(ctx context.Context, resourceGrou result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.FirewallRulesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/locationbasedperformancetier.go b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/locationbasedperformancetier.go index 19a15d505d99..663a3cb10297 100644 --- a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/locationbasedperformancetier.go +++ b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/locationbasedperformancetier.go @@ -74,6 +74,7 @@ func (client LocationBasedPerformanceTierClient) List(ctx context.Context, locat result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.LocationBasedPerformanceTierClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/logfiles.go b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/logfiles.go index 58d690bdcf59..87f907f3ffaa 100644 --- a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/logfiles.go +++ b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/logfiles.go @@ -75,6 +75,7 @@ func (client LogFilesClient) ListByServer(ctx context.Context, resourceGroupName result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.LogFilesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/operations.go b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/operations.go index 8fa09f19a497..418bafedd0ca 100644 --- a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/operations.go +++ b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/replicas.go b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/replicas.go index 6866b3702f73..e00e082ce198 100644 --- a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/replicas.go +++ b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/replicas.go @@ -75,6 +75,7 @@ func (client ReplicasClient) ListByServer(ctx context.Context, resourceGroupName result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ReplicasClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/serveradministrators.go b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/serveradministrators.go index 14ca0f165b7e..7587fa96ce64 100644 --- a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/serveradministrators.go +++ b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/serveradministrators.go @@ -243,6 +243,7 @@ func (client ServerAdministratorsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ServerAdministratorsClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +320,7 @@ func (client ServerAdministratorsClient) List(ctx context.Context, resourceGroup result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ServerAdministratorsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/servers.go b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/servers.go index b2c60a6244c1..acabf6be05ed 100644 --- a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/servers.go +++ b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/servers.go @@ -242,6 +242,7 @@ func (client ServersClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ServersClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client ServersClient) List(ctx context.Context) (result ServerListResult, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ServersClient", "List", resp, "Failure responding to request") + return } return @@ -387,6 +389,7 @@ func (client ServersClient) ListByResourceGroup(ctx context.Context, resourceGro result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ServersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return diff --git a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/serversecurityalertpolicies.go b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/serversecurityalertpolicies.go index 157baadfdbe2..ea3026f810e5 100644 --- a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/serversecurityalertpolicies.go +++ b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/serversecurityalertpolicies.go @@ -156,6 +156,7 @@ func (client ServerSecurityAlertPoliciesClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ServerSecurityAlertPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/virtualnetworkrules.go b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/virtualnetworkrules.go index c0307d8abfd0..8268b21ba0de 100644 --- a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/virtualnetworkrules.go +++ b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/virtualnetworkrules.go @@ -243,6 +243,7 @@ func (client VirtualNetworkRulesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.VirtualNetworkRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client VirtualNetworkRulesClient) ListByServer(ctx context.Context, resour result.vnrlr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.VirtualNetworkRulesClient", "ListByServer", resp, "Failure responding to request") + return } if result.vnrlr.hasNextLink() && result.vnrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client VirtualNetworkRulesClient) listByServerNextResults(ctx context.Cont result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysql.VirtualNetworkRulesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/checknameavailability.go b/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/checknameavailability.go index 1251fee292f1..e8753d3e7399 100644 --- a/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/checknameavailability.go +++ b/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/checknameavailability.go @@ -83,6 +83,7 @@ func (client CheckNameAvailabilityClient) Execute(ctx context.Context, nameAvail result, err = client.ExecuteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysqlflexibleservers.CheckNameAvailabilityClient", "Execute", resp, "Failure responding to request") + return } return diff --git a/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/checkvirtualnetworksubnetusage.go b/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/checkvirtualnetworksubnetusage.go index e3ba1cb1c614..653609f5de5c 100644 --- a/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/checkvirtualnetworksubnetusage.go +++ b/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/checkvirtualnetworksubnetusage.go @@ -82,6 +82,7 @@ func (client CheckVirtualNetworkSubnetUsageClient) Execute(ctx context.Context, result, err = client.ExecuteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysqlflexibleservers.CheckVirtualNetworkSubnetUsageClient", "Execute", resp, "Failure responding to request") + return } return diff --git a/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/configurations.go b/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/configurations.go index e26aa1e8f7cb..c9042d9b5316 100644 --- a/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/configurations.go +++ b/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/configurations.go @@ -86,6 +86,7 @@ func (client ConfigurationsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysqlflexibleservers.ConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client ConfigurationsClient) ListByServer(ctx context.Context, resourceGro result.clr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysqlflexibleservers.ConfigurationsClient", "ListByServer", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -237,6 +239,7 @@ func (client ConfigurationsClient) listByServerNextResults(ctx context.Context, result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysqlflexibleservers.ConfigurationsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/databases.go b/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/databases.go index ecfaabd1472b..937d55aa1abf 100644 --- a/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/databases.go +++ b/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/databases.go @@ -262,6 +262,7 @@ func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysqlflexibleservers.DatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +350,7 @@ func (client DatabasesClient) ListByServer(ctx context.Context, resourceGroupNam result.dlr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysqlflexibleservers.DatabasesClient", "ListByServer", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -413,6 +415,7 @@ func (client DatabasesClient) listByServerNextResults(ctx context.Context, lastR result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysqlflexibleservers.DatabasesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/firewallrules.go b/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/firewallrules.go index 30e06022c92a..6bd0f13320f9 100644 --- a/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/firewallrules.go +++ b/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/firewallrules.go @@ -269,6 +269,7 @@ func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysqlflexibleservers.FirewallRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -356,6 +357,7 @@ func (client FirewallRulesClient) ListByServer(ctx context.Context, resourceGrou result.frlr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysqlflexibleservers.FirewallRulesClient", "ListByServer", resp, "Failure responding to request") + return } if result.frlr.hasNextLink() && result.frlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -420,6 +422,7 @@ func (client FirewallRulesClient) listByServerNextResults(ctx context.Context, l result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysqlflexibleservers.FirewallRulesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/locationbasedcapabilities.go b/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/locationbasedcapabilities.go index 81b88bddeda2..98aeb241758b 100644 --- a/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/locationbasedcapabilities.go +++ b/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/locationbasedcapabilities.go @@ -82,6 +82,7 @@ func (client LocationBasedCapabilitiesClient) List(ctx context.Context, location result.clr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysqlflexibleservers.LocationBasedCapabilitiesClient", "List", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -145,6 +146,7 @@ func (client LocationBasedCapabilitiesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysqlflexibleservers.LocationBasedCapabilitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/operations.go b/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/operations.go index 7794856b3a22..5cd3ed6fdd67 100644 --- a/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/operations.go +++ b/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysqlflexibleservers.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/replicas.go b/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/replicas.go index fa99f103ff1c..4b8ac67d775f 100644 --- a/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/replicas.go +++ b/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/replicas.go @@ -86,6 +86,7 @@ func (client ReplicasClient) ListByServer(ctx context.Context, resourceGroupName result.slr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysqlflexibleservers.ReplicasClient", "ListByServer", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -150,6 +151,7 @@ func (client ReplicasClient) listByServerNextResults(ctx context.Context, lastRe result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysqlflexibleservers.ReplicasClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/serverkeys.go b/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/serverkeys.go index 8b39201c781d..82503961eed2 100644 --- a/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/serverkeys.go +++ b/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/serverkeys.go @@ -266,6 +266,7 @@ func (client ServerKeysClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysqlflexibleservers.ServerKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -353,6 +354,7 @@ func (client ServerKeysClient) ListByServer(ctx context.Context, resourceGroupNa result.sklr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysqlflexibleservers.ServerKeysClient", "ListByServer", resp, "Failure responding to request") + return } if result.sklr.hasNextLink() && result.sklr.IsEmpty() { err = result.NextWithContext(ctx) @@ -417,6 +419,7 @@ func (client ServerKeysClient) listByServerNextResults(ctx context.Context, last result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysqlflexibleservers.ServerKeysClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/servers.go b/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/servers.go index 9439de2b358e..76997b4df184 100644 --- a/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/servers.go +++ b/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/servers.go @@ -264,6 +264,7 @@ func (client ServersClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysqlflexibleservers.ServersClient", "Get", resp, "Failure responding to request") + return } return @@ -343,6 +344,7 @@ func (client ServersClient) List(ctx context.Context) (result ServerListResultPa result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysqlflexibleservers.ServersClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -405,6 +407,7 @@ func (client ServersClient) listNextResults(ctx context.Context, lastResults Ser result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysqlflexibleservers.ServersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -466,6 +469,7 @@ func (client ServersClient) ListByResourceGroup(ctx context.Context, resourceGro result.slr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysqlflexibleservers.ServersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -529,6 +533,7 @@ func (client ServersClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "mysqlflexibleservers.ServersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/netapp/mgmt/2017-08-15/netapp/accounts.go b/services/preview/netapp/mgmt/2017-08-15/netapp/accounts.go index 6bf6c7198a35..9d0adaa630c6 100644 --- a/services/preview/netapp/mgmt/2017-08-15/netapp/accounts.go +++ b/services/preview/netapp/mgmt/2017-08-15/netapp/accounts.go @@ -255,6 +255,7 @@ func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -337,6 +338,7 @@ func (client AccountsClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "List", resp, "Failure responding to request") + return } return @@ -420,6 +422,7 @@ func (client AccountsClient) Update(ctx context.Context, body AccountPatch, reso result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/netapp/mgmt/2017-08-15/netapp/mounttargets.go b/services/preview/netapp/mgmt/2017-08-15/netapp/mounttargets.go index 1f403a94228c..40358e287c8b 100644 --- a/services/preview/netapp/mgmt/2017-08-15/netapp/mounttargets.go +++ b/services/preview/netapp/mgmt/2017-08-15/netapp/mounttargets.go @@ -83,6 +83,7 @@ func (client MountTargetsClient) List(ctx context.Context, resourceGroupName str result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.MountTargetsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/netapp/mgmt/2017-08-15/netapp/operations.go b/services/preview/netapp/mgmt/2017-08-15/netapp/operations.go index afa3eeb767cf..f8c5f071baa9 100644 --- a/services/preview/netapp/mgmt/2017-08-15/netapp/operations.go +++ b/services/preview/netapp/mgmt/2017-08-15/netapp/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/netapp/mgmt/2017-08-15/netapp/pools.go b/services/preview/netapp/mgmt/2017-08-15/netapp/pools.go index 8b9eb7c9c777..b7363fc7f05b 100644 --- a/services/preview/netapp/mgmt/2017-08-15/netapp/pools.go +++ b/services/preview/netapp/mgmt/2017-08-15/netapp/pools.go @@ -270,6 +270,7 @@ func (client PoolsClient) Get(ctx context.Context, resourceGroupName string, acc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -354,6 +355,7 @@ func (client PoolsClient) List(ctx context.Context, resourceGroupName string, ac result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "List", resp, "Failure responding to request") + return } return @@ -439,6 +441,7 @@ func (client PoolsClient) Update(ctx context.Context, body CapacityPoolPatch, re result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/netapp/mgmt/2017-08-15/netapp/snapshots.go b/services/preview/netapp/mgmt/2017-08-15/netapp/snapshots.go index 988c1f74f493..f9e8aa10ac9e 100644 --- a/services/preview/netapp/mgmt/2017-08-15/netapp/snapshots.go +++ b/services/preview/netapp/mgmt/2017-08-15/netapp/snapshots.go @@ -281,6 +281,7 @@ func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Get", resp, "Failure responding to request") + return } return @@ -369,6 +370,7 @@ func (client SnapshotsClient) List(ctx context.Context, resourceGroupName string result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "List", resp, "Failure responding to request") + return } return @@ -458,6 +460,7 @@ func (client SnapshotsClient) Update(ctx context.Context, body SnapshotPatch, re result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/netapp/mgmt/2017-08-15/netapp/volumes.go b/services/preview/netapp/mgmt/2017-08-15/netapp/volumes.go index 825d0d4f50ec..57c264e3aea1 100644 --- a/services/preview/netapp/mgmt/2017-08-15/netapp/volumes.go +++ b/services/preview/netapp/mgmt/2017-08-15/netapp/volumes.go @@ -276,6 +276,7 @@ func (client VolumesClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Get", resp, "Failure responding to request") + return } return @@ -362,6 +363,7 @@ func (client VolumesClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "List", resp, "Failure responding to request") + return } return @@ -449,6 +451,7 @@ func (client VolumesClient) Update(ctx context.Context, body VolumePatch, resour result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/network/mgmt/2015-05-01-preview/network/applicationgateways.go b/services/preview/network/mgmt/2015-05-01-preview/network/applicationgateways.go index ff0dbe217886..8cefac156514 100644 --- a/services/preview/network/mgmt/2015-05-01-preview/network/applicationgateways.go +++ b/services/preview/network/mgmt/2015-05-01-preview/network/applicationgateways.go @@ -225,6 +225,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN result.aglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +365,7 @@ func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App result.aglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return } if result.aglr.hasNextLink() && result.aglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/network/mgmt/2015-05-01-preview/network/client.go b/services/preview/network/mgmt/2015-05-01-preview/network/client.go index 20cb1a167608..88066a64d72d 100644 --- a/services/preview/network/mgmt/2015-05-01-preview/network/client.go +++ b/services/preview/network/mgmt/2015-05-01-preview/network/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location result, err = client.CheckDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/preview/network/mgmt/2015-05-01-preview/network/expressroutecircuitauthorizations.go b/services/preview/network/mgmt/2015-05-01-preview/network/expressroutecircuitauthorizations.go index 8e5fc6c486b5..617bb1676994 100644 --- a/services/preview/network/mgmt/2015-05-01-preview/network/expressroutecircuitauthorizations.go +++ b/services/preview/network/mgmt/2015-05-01-preview/network/expressroutecircuitauthorizations.go @@ -234,6 +234,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/network/mgmt/2015-05-01-preview/network/expressroutecircuitpeerings.go b/services/preview/network/mgmt/2015-05-01-preview/network/expressroutecircuitpeerings.go index ef7ad342dd76..c70235976b8f 100644 --- a/services/preview/network/mgmt/2015-05-01-preview/network/expressroutecircuitpeerings.go +++ b/services/preview/network/mgmt/2015-05-01-preview/network/expressroutecircuitpeerings.go @@ -230,6 +230,7 @@ func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resour result.ercplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return } if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +373,7 @@ func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/network/mgmt/2015-05-01-preview/network/expressroutecircuits.go b/services/preview/network/mgmt/2015-05-01-preview/network/expressroutecircuits.go index 4f444103126f..e2e70bcffad7 100644 --- a/services/preview/network/mgmt/2015-05-01-preview/network/expressroutecircuits.go +++ b/services/preview/network/mgmt/2015-05-01-preview/network/expressroutecircuits.go @@ -225,6 +225,7 @@ func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroup result.erclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +365,7 @@ func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result Ex result.erclr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return } if result.erclr.hasNextLink() && result.erclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -527,6 +532,7 @@ func (client ExpressRouteCircuitsClient) ListArpTable(ctx context.Context, resou result.ercatlr, err = client.ListArpTableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListArpTable", resp, "Failure responding to request") + return } if result.ercatlr.hasNextLink() && result.ercatlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -591,6 +597,7 @@ func (client ExpressRouteCircuitsClient) listArpTableNextResults(ctx context.Con result, err = client.ListArpTableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listArpTableNextResults", resp, "Failure responding to next results request") + return } return } @@ -644,6 +651,7 @@ func (client ExpressRouteCircuitsClient) ListRoutesTable(ctx context.Context, re result.ercrtlr, err = client.ListRoutesTableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListRoutesTable", resp, "Failure responding to request") + return } if result.ercrtlr.hasNextLink() && result.ercrtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -708,6 +716,7 @@ func (client ExpressRouteCircuitsClient) listRoutesTableNextResults(ctx context. result, err = client.ListRoutesTableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listRoutesTableNextResults", resp, "Failure responding to next results request") + return } return } @@ -761,6 +770,7 @@ func (client ExpressRouteCircuitsClient) ListStats(ctx context.Context, resource result.ercslr, err = client.ListStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListStats", resp, "Failure responding to request") + return } if result.ercslr.hasNextLink() && result.ercslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -825,6 +835,7 @@ func (client ExpressRouteCircuitsClient) listStatsNextResults(ctx context.Contex result, err = client.ListStatsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listStatsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/network/mgmt/2015-05-01-preview/network/expressrouteserviceproviders.go b/services/preview/network/mgmt/2015-05-01-preview/network/expressrouteserviceproviders.go index 73148167da75..72e65a5040d2 100644 --- a/services/preview/network/mgmt/2015-05-01-preview/network/expressrouteserviceproviders.go +++ b/services/preview/network/mgmt/2015-05-01-preview/network/expressrouteserviceproviders.go @@ -71,6 +71,7 @@ func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (resu result.ersplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/network/mgmt/2015-05-01-preview/network/interfacesgroup.go b/services/preview/network/mgmt/2015-05-01-preview/network/interfacesgroup.go index a12c3daaff93..3b49764e0c4d 100644 --- a/services/preview/network/mgmt/2015-05-01-preview/network/interfacesgroup.go +++ b/services/preview/network/mgmt/2015-05-01-preview/network/interfacesgroup.go @@ -224,6 +224,7 @@ func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx con result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return } return @@ -379,6 +381,7 @@ func (client InterfacesClient) List(ctx context.Context, resourceGroupName strin result.ilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -442,6 +445,7 @@ func (client InterfacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -491,6 +495,7 @@ func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceLis result.ilr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -553,6 +558,7 @@ func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResul result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -606,6 +612,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx c result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -670,6 +677,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextRe result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } @@ -724,6 +732,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -789,6 +798,7 @@ func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNext result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/network/mgmt/2015-05-01-preview/network/loadbalancers.go b/services/preview/network/mgmt/2015-05-01-preview/network/loadbalancers.go index 3410269af931..003381efb374 100644 --- a/services/preview/network/mgmt/2015-05-01-preview/network/loadbalancers.go +++ b/services/preview/network/mgmt/2015-05-01-preview/network/loadbalancers.go @@ -224,6 +224,7 @@ func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName st result.lblr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -362,6 +364,7 @@ func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalan result.lblr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return } if result.lblr.hasNextLink() && result.lblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -473,6 +477,7 @@ func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/network/mgmt/2015-05-01-preview/network/localnetworkgateways.go b/services/preview/network/mgmt/2015-05-01-preview/network/localnetworkgateways.go index a176a5a4633e..1505228d1bac 100644 --- a/services/preview/network/mgmt/2015-05-01-preview/network/localnetworkgateways.go +++ b/services/preview/network/mgmt/2015-05-01-preview/network/localnetworkgateways.go @@ -229,6 +229,7 @@ func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroup result.lnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/network/mgmt/2015-05-01-preview/network/publicipaddresses.go b/services/preview/network/mgmt/2015-05-01-preview/network/publicipaddresses.go index 91e0b59d38ad..f0c486db77a1 100644 --- a/services/preview/network/mgmt/2015-05-01-preview/network/publicipaddresses.go +++ b/services/preview/network/mgmt/2015-05-01-preview/network/publicipaddresses.go @@ -225,6 +225,7 @@ func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupNam result.pialr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +365,7 @@ func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result Publi result.pialr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return } if result.pialr.hasNextLink() && result.pialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, la result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/network/mgmt/2015-05-01-preview/network/routes.go b/services/preview/network/mgmt/2015-05-01-preview/network/routes.go index 41aaa359b2c4..fac1778f26a7 100644 --- a/services/preview/network/mgmt/2015-05-01-preview/network/routes.go +++ b/services/preview/network/mgmt/2015-05-01-preview/network/routes.go @@ -229,6 +229,7 @@ func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, ro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client RoutesClient) List(ctx context.Context, resourceGroupName string, r result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client RoutesClient) listNextResults(ctx context.Context, lastResults Rout result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/network/mgmt/2015-05-01-preview/network/routetables.go b/services/preview/network/mgmt/2015-05-01-preview/network/routetables.go index a74ec7390756..499a002c250d 100644 --- a/services/preview/network/mgmt/2015-05-01-preview/network/routetables.go +++ b/services/preview/network/mgmt/2015-05-01-preview/network/routetables.go @@ -224,6 +224,7 @@ func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client RouteTablesClient) List(ctx context.Context, resourceGroupName stri result.rtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -362,6 +364,7 @@ func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableL result.rtlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return } if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -473,6 +477,7 @@ func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResu result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/network/mgmt/2015-05-01-preview/network/securitygroups.go b/services/preview/network/mgmt/2015-05-01-preview/network/securitygroups.go index 48f6d48f3519..ed9c346e48d8 100644 --- a/services/preview/network/mgmt/2015-05-01-preview/network/securitygroups.go +++ b/services/preview/network/mgmt/2015-05-01-preview/network/securitygroups.go @@ -225,6 +225,7 @@ func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +301,7 @@ func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName s result.sglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -363,6 +365,7 @@ func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +415,7 @@ func (client SecurityGroupsClient) ListAll(ctx context.Context) (result Security result.sglr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -474,6 +478,7 @@ func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/network/mgmt/2015-05-01-preview/network/securityrules.go b/services/preview/network/mgmt/2015-05-01-preview/network/securityrules.go index 598547a49fa8..26ba9d6a2109 100644 --- a/services/preview/network/mgmt/2015-05-01-preview/network/securityrules.go +++ b/services/preview/network/mgmt/2015-05-01-preview/network/securityrules.go @@ -240,6 +240,7 @@ func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName st result.srlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return } if result.srlr.hasNextLink() && result.srlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +383,7 @@ func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/network/mgmt/2015-05-01-preview/network/subnets.go b/services/preview/network/mgmt/2015-05-01-preview/network/subnets.go index ab7b42bb4a76..6cb7b9071b55 100644 --- a/services/preview/network/mgmt/2015-05-01-preview/network/subnets.go +++ b/services/preview/network/mgmt/2015-05-01-preview/network/subnets.go @@ -237,6 +237,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -378,6 +380,7 @@ func (client SubnetsClient) listNextResults(ctx context.Context, lastResults Sub result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/network/mgmt/2015-05-01-preview/network/usages.go b/services/preview/network/mgmt/2015-05-01-preview/network/usages.go index 1f1737f52f61..d8bb61b3ecb0 100644 --- a/services/preview/network/mgmt/2015-05-01-preview/network/usages.go +++ b/services/preview/network/mgmt/2015-05-01-preview/network/usages.go @@ -79,6 +79,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/network/mgmt/2015-05-01-preview/network/virtualnetworkgatewayconnections.go b/services/preview/network/mgmt/2015-05-01-preview/network/virtualnetworkgatewayconnections.go index 2c11d9eb1330..e6eaefcbd204 100644 --- a/services/preview/network/mgmt/2015-05-01-preview/network/virtualnetworkgatewayconnections.go +++ b/services/preview/network/mgmt/2015-05-01-preview/network/virtualnetworkgatewayconnections.go @@ -229,6 +229,7 @@ func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +306,7 @@ func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Co result, err = client.GetSharedKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return } return @@ -381,6 +383,7 @@ func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, r result.vngclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return } if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -444,6 +447,7 @@ func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/network/mgmt/2015-05-01-preview/network/virtualnetworkgateways.go b/services/preview/network/mgmt/2015-05-01-preview/network/virtualnetworkgateways.go index 3db71a87e0c3..897503e1838b 100644 --- a/services/preview/network/mgmt/2015-05-01-preview/network/virtualnetworkgateways.go +++ b/services/preview/network/mgmt/2015-05-01-preview/network/virtualnetworkgateways.go @@ -229,6 +229,7 @@ func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGro result.vnglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return } if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -367,6 +369,7 @@ func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/network/mgmt/2015-05-01-preview/network/virtualnetworks.go b/services/preview/network/mgmt/2015-05-01-preview/network/virtualnetworks.go index cc7de085996c..98d402e8d624 100644 --- a/services/preview/network/mgmt/2015-05-01-preview/network/virtualnetworks.go +++ b/services/preview/network/mgmt/2015-05-01-preview/network/virtualnetworks.go @@ -224,6 +224,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +300,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -362,6 +364,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +414,7 @@ func (client VirtualNetworksClient) ListAll(ctx context.Context) (result Virtual result.vnlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -473,6 +477,7 @@ func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, last result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/client.go b/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/client.go index 2e9450ffa2a8..1c283e9d80d3 100644 --- a/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/client.go +++ b/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/client.go @@ -86,6 +86,7 @@ func (client BaseClient) GetAsyncOperationsStatus(ctx context.Context, location result, err = client.GetAsyncOperationsStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.BaseClient", "GetAsyncOperationsStatus", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/datasources.go b/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/datasources.go index 2042e5f5456a..a2848b3a046d 100644 --- a/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/datasources.go +++ b/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/datasources.go @@ -85,6 +85,7 @@ func (client DataSourcesClient) CreateOrUpdate(ctx context.Context, resourceGrou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DataSourcesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client DataSourcesClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DataSourcesClient", "Delete", resp, "Failure responding to request") + return } return @@ -256,6 +258,7 @@ func (client DataSourcesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DataSourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -343,6 +346,7 @@ func (client DataSourcesClient) ListByWorkspace(ctx context.Context, resourceGro result.dslr, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DataSourcesClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.dslr.hasNextLink() && result.dslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -411,6 +415,7 @@ func (client DataSourcesClient) listByWorkspaceNextResults(ctx context.Context, result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DataSourcesClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/linkedservices.go b/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/linkedservices.go index 8d8faa632247..64889670be7e 100644 --- a/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/linkedservices.go +++ b/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/linkedservices.go @@ -86,6 +86,7 @@ func (client LinkedServicesClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.LinkedServicesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client LinkedServicesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.LinkedServicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -257,6 +259,7 @@ func (client LinkedServicesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.LinkedServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -341,6 +344,7 @@ func (client LinkedServicesClient) ListByWorkspace(ctx context.Context, resource result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.LinkedServicesClient", "ListByWorkspace", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/operations.go b/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/operations.go index bc4ddf1d16ae..2864b4f0af28 100644 --- a/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/operations.go +++ b/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/workspaces.go b/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/workspaces.go index fe6521ce2ce7..06d9d76776b0 100644 --- a/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/workspaces.go +++ b/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/workspaces.go @@ -166,6 +166,7 @@ func (client WorkspacesClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "Delete", resp, "Failure responding to request") + return } return @@ -249,6 +250,7 @@ func (client WorkspacesClient) DisableIntelligencePack(ctx context.Context, reso result, err = client.DisableIntelligencePackResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "DisableIntelligencePack", resp, "Failure responding to request") + return } return @@ -333,6 +335,7 @@ func (client WorkspacesClient) EnableIntelligencePack(ctx context.Context, resou result, err = client.EnableIntelligencePackResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "EnableIntelligencePack", resp, "Failure responding to request") + return } return @@ -408,6 +411,7 @@ func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -491,6 +495,7 @@ func (client WorkspacesClient) GetSharedKeys(ctx context.Context, resourceGroupN result, err = client.GetSharedKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "GetSharedKeys", resp, "Failure responding to request") + return } return @@ -563,6 +568,7 @@ func (client WorkspacesClient) List(ctx context.Context) (result WorkspaceListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "List", resp, "Failure responding to request") + return } return @@ -643,6 +649,7 @@ func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resource result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -726,6 +733,7 @@ func (client WorkspacesClient) ListIntelligencePacks(ctx context.Context, resour result, err = client.ListIntelligencePacksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "ListIntelligencePacks", resp, "Failure responding to request") + return } return @@ -809,6 +817,7 @@ func (client WorkspacesClient) ListManagementGroups(ctx context.Context, resourc result, err = client.ListManagementGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "ListManagementGroups", resp, "Failure responding to request") + return } return @@ -892,6 +901,7 @@ func (client WorkspacesClient) ListUsages(ctx context.Context, resourceGroupName result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "ListUsages", resp, "Failure responding to request") + return } return @@ -976,6 +986,7 @@ func (client WorkspacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/clientgroups.go b/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/clientgroups.go index f939c1c2cf79..d4f0e5086fdf 100644 --- a/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/clientgroups.go +++ b/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/clientgroups.go @@ -94,6 +94,7 @@ func (client ClientGroupsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.ClientGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -196,6 +197,7 @@ func (client ClientGroupsClient) GetMembersCount(ctx context.Context, resourceGr result, err = client.GetMembersCountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.ClientGroupsClient", "GetMembersCount", resp, "Failure responding to request") + return } return @@ -305,6 +307,7 @@ func (client ClientGroupsClient) ListMembers(ctx context.Context, resourceGroupN result.cgmc, err = client.ListMembersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.ClientGroupsClient", "ListMembers", resp, "Failure responding to request") + return } if result.cgmc.hasNextLink() && result.cgmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -379,6 +382,7 @@ func (client ClientGroupsClient) listMembersNextResults(ctx context.Context, las result, err = client.ListMembersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.ClientGroupsClient", "listMembersNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/machinegroups.go b/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/machinegroups.go index f5fc4255bed6..97c6d98e3d65 100644 --- a/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/machinegroups.go +++ b/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/machinegroups.go @@ -94,6 +94,7 @@ func (client MachineGroupsClient) Create(ctx context.Context, resourceGroupName result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.MachineGroupsClient", "Create", resp, "Failure responding to request") + return } return @@ -187,6 +188,7 @@ func (client MachineGroupsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.MachineGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -282,6 +284,7 @@ func (client MachineGroupsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.MachineGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -381,6 +384,7 @@ func (client MachineGroupsClient) ListByWorkspace(ctx context.Context, resourceG result.mgc, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.MachineGroupsClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.mgc.hasNextLink() && result.mgc.IsEmpty() { err = result.NextWithContext(ctx) @@ -451,6 +455,7 @@ func (client MachineGroupsClient) listByWorkspaceNextResults(ctx context.Context result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.MachineGroupsClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -526,6 +531,7 @@ func (client MachineGroupsClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.MachineGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/machines.go b/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/machines.go index 18c73a39ec43..70783d77d94a 100644 --- a/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/machines.go +++ b/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/machines.go @@ -92,6 +92,7 @@ func (client MachinesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.MachinesClient", "Get", resp, "Failure responding to request") + return } return @@ -191,6 +192,7 @@ func (client MachinesClient) GetLiveness(ctx context.Context, resourceGroupName result, err = client.GetLivenessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.MachinesClient", "GetLiveness", resp, "Failure responding to request") + return } return @@ -306,6 +308,7 @@ func (client MachinesClient) ListByWorkspace(ctx context.Context, resourceGroupN result.mc, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.MachinesClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.mc.hasNextLink() && result.mc.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +390,7 @@ func (client MachinesClient) listByWorkspaceNextResults(ctx context.Context, las result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.MachinesClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -459,6 +463,7 @@ func (client MachinesClient) ListConnections(ctx context.Context, resourceGroupN result.cc, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.MachinesClient", "ListConnections", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -530,6 +535,7 @@ func (client MachinesClient) listConnectionsNextResults(ctx context.Context, las result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.MachinesClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -603,6 +609,7 @@ func (client MachinesClient) ListMachineGroupMembership(ctx context.Context, res result.mgc, err = client.ListMachineGroupMembershipResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.MachinesClient", "ListMachineGroupMembership", resp, "Failure responding to request") + return } if result.mgc.hasNextLink() && result.mgc.IsEmpty() { err = result.NextWithContext(ctx) @@ -674,6 +681,7 @@ func (client MachinesClient) listMachineGroupMembershipNextResults(ctx context.C result, err = client.ListMachineGroupMembershipResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.MachinesClient", "listMachineGroupMembershipNextResults", resp, "Failure responding to next results request") + return } return } @@ -746,6 +754,7 @@ func (client MachinesClient) ListPorts(ctx context.Context, resourceGroupName st result.pc, err = client.ListPortsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.MachinesClient", "ListPorts", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -817,6 +826,7 @@ func (client MachinesClient) listPortsNextResults(ctx context.Context, lastResul result, err = client.ListPortsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.MachinesClient", "listPortsNextResults", resp, "Failure responding to next results request") + return } return } @@ -899,6 +909,7 @@ func (client MachinesClient) ListProcesses(ctx context.Context, resourceGroupNam result.pc, err = client.ListProcessesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.MachinesClient", "ListProcesses", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -978,6 +989,7 @@ func (client MachinesClient) listProcessesNextResults(ctx context.Context, lastR result, err = client.ListProcessesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.MachinesClient", "listProcessesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/maps.go b/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/maps.go index 508168652854..407a0a734a24 100644 --- a/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/maps.go +++ b/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/maps.go @@ -86,6 +86,7 @@ func (client MapsClient) Generate(ctx context.Context, resourceGroupName string, result, err = client.GenerateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.MapsClient", "Generate", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/ports.go b/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/ports.go index 6b72a44a36e9..92908ad06319 100644 --- a/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/ports.go +++ b/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/ports.go @@ -99,6 +99,7 @@ func (client PortsClient) Get(ctx context.Context, resourceGroupName string, wor result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.PortsClient", "Get", resp, "Failure responding to request") + return } return @@ -206,6 +207,7 @@ func (client PortsClient) GetLiveness(ctx context.Context, resourceGroupName str result, err = client.GetLivenessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.PortsClient", "GetLiveness", resp, "Failure responding to request") + return } return @@ -314,6 +316,7 @@ func (client PortsClient) ListAcceptingProcesses(ctx context.Context, resourceGr result.pc, err = client.ListAcceptingProcessesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.PortsClient", "ListAcceptingProcesses", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +389,7 @@ func (client PortsClient) listAcceptingProcessesNextResults(ctx context.Context, result, err = client.ListAcceptingProcessesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.PortsClient", "listAcceptingProcessesNextResults", resp, "Failure responding to next results request") + return } return } @@ -462,6 +466,7 @@ func (client PortsClient) ListConnections(ctx context.Context, resourceGroupName result.cc, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.PortsClient", "ListConnections", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -534,6 +539,7 @@ func (client PortsClient) listConnectionsNextResults(ctx context.Context, lastRe result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.PortsClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/processes.go b/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/processes.go index db3107120d76..96133fe3fa84 100644 --- a/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/processes.go +++ b/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/processes.go @@ -96,6 +96,7 @@ func (client ProcessesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.ProcessesClient", "Get", resp, "Failure responding to request") + return } return @@ -200,6 +201,7 @@ func (client ProcessesClient) GetLiveness(ctx context.Context, resourceGroupName result, err = client.GetLivenessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.ProcessesClient", "GetLiveness", resp, "Failure responding to request") + return } return @@ -308,6 +310,7 @@ func (client ProcessesClient) ListAcceptingPorts(ctx context.Context, resourceGr result.pc, err = client.ListAcceptingPortsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.ProcessesClient", "ListAcceptingPorts", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +383,7 @@ func (client ProcessesClient) listAcceptingPortsNextResults(ctx context.Context, result, err = client.ListAcceptingPortsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.ProcessesClient", "listAcceptingPortsNextResults", resp, "Failure responding to next results request") + return } return } @@ -456,6 +460,7 @@ func (client ProcessesClient) ListConnections(ctx context.Context, resourceGroup result.cc, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.ProcessesClient", "ListConnections", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -528,6 +533,7 @@ func (client ProcessesClient) listConnectionsNextResults(ctx context.Context, la result, err = client.ListConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.ProcessesClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/summaries.go b/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/summaries.go index cd65e9f15291..bb82ce3d5115 100644 --- a/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/summaries.go +++ b/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/summaries.go @@ -90,6 +90,7 @@ func (client SummariesClient) GetMachines(ctx context.Context, resourceGroupName result, err = client.GetMachinesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicemap.SummariesClient", "GetMachines", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/availableservicetiers.go b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/availableservicetiers.go index 5136dc0a017d..dc77f459791e 100644 --- a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/availableservicetiers.go +++ b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/availableservicetiers.go @@ -88,6 +88,7 @@ func (client AvailableServiceTiersClient) ListByWorkspace(ctx context.Context, r result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.AvailableServiceTiersClient", "ListByWorkspace", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/clusters.go b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/clusters.go index ac897e830e6b..8285c38e8b83 100644 --- a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/clusters.go +++ b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/clusters.go @@ -259,6 +259,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -338,6 +339,7 @@ func (client ClustersClient) List(ctx context.Context) (result ClusterListResult result.clr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.ClustersClient", "List", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -400,6 +402,7 @@ func (client ClustersClient) listNextResults(ctx context.Context, lastResults Cl result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.ClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -461,6 +464,7 @@ func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGr result.clr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.ClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -524,6 +528,7 @@ func (client ClustersClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.ClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -586,6 +591,7 @@ func (client ClustersClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.ClustersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/datacollectorlogs.go b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/datacollectorlogs.go index c0df602a0a85..63a414b8435f 100644 --- a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/datacollectorlogs.go +++ b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/datacollectorlogs.go @@ -94,6 +94,7 @@ func (client DataCollectorLogsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DataCollectorLogsClient", "Delete", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client DataCollectorLogsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DataCollectorLogsClient", "Get", resp, "Failure responding to request") + return } return @@ -286,6 +288,7 @@ func (client DataCollectorLogsClient) ListByWorkspace(ctx context.Context, resou result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DataCollectorLogsClient", "ListByWorkspace", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/dataexports.go b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/dataexports.go index f9f4d17eb202..bc33c4dd6f5d 100644 --- a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/dataexports.go +++ b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/dataexports.go @@ -98,6 +98,7 @@ func (client DataExportsClient) CreateOrUpdate(ctx context.Context, resourceGrou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DataExportsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -191,6 +192,7 @@ func (client DataExportsClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DataExportsClient", "Delete", resp, "Failure responding to request") + return } return @@ -281,6 +283,7 @@ func (client DataExportsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DataExportsClient", "Get", resp, "Failure responding to request") + return } return @@ -371,6 +374,7 @@ func (client DataExportsClient) ListByWorkspace(ctx context.Context, resourceGro result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DataExportsClient", "ListByWorkspace", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/datasources.go b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/datasources.go index 5b7b70d1ebb3..c92ffefc9c87 100644 --- a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/datasources.go +++ b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/datasources.go @@ -91,6 +91,7 @@ func (client DataSourcesClient) CreateOrUpdate(ctx context.Context, resourceGrou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DataSourcesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -184,6 +185,7 @@ func (client DataSourcesClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DataSourcesClient", "Delete", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client DataSourcesClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DataSourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -367,6 +370,7 @@ func (client DataSourcesClient) ListByWorkspace(ctx context.Context, resourceGro result.dslr, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DataSourcesClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.dslr.hasNextLink() && result.dslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -435,6 +439,7 @@ func (client DataSourcesClient) listByWorkspaceNextResults(ctx context.Context, result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DataSourcesClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/deletedworkspaces.go b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/deletedworkspaces.go index 48a77e3de8d7..c154913a6b0e 100644 --- a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/deletedworkspaces.go +++ b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/deletedworkspaces.go @@ -77,6 +77,7 @@ func (client DeletedWorkspacesClient) List(ctx context.Context) (result Workspac result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DeletedWorkspacesClient", "List", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client DeletedWorkspacesClient) ListByResourceGroup(ctx context.Context, r result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.DeletedWorkspacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/gateways.go b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/gateways.go index 97176d7fb7f4..1573f2bc1e15 100644 --- a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/gateways.go +++ b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/gateways.go @@ -88,6 +88,7 @@ func (client GatewaysClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.GatewaysClient", "Delete", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/intelligencepacks.go b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/intelligencepacks.go index 31f1f43df75d..4a14689af547 100644 --- a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/intelligencepacks.go +++ b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/intelligencepacks.go @@ -89,6 +89,7 @@ func (client IntelligencePacksClient) Disable(ctx context.Context, resourceGroup result, err = client.DisableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.IntelligencePacksClient", "Disable", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client IntelligencePacksClient) Enable(ctx context.Context, resourceGroupN result, err = client.EnableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.IntelligencePacksClient", "Enable", resp, "Failure responding to request") + return } return @@ -268,6 +270,7 @@ func (client IntelligencePacksClient) List(ctx context.Context, resourceGroupNam result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.IntelligencePacksClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/linkedservices.go b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/linkedservices.go index dcdb52cd355d..58c9274914b4 100644 --- a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/linkedservices.go +++ b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/linkedservices.go @@ -275,6 +275,7 @@ func (client LinkedServicesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.LinkedServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -365,6 +366,7 @@ func (client LinkedServicesClient) ListByWorkspace(ctx context.Context, resource result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.LinkedServicesClient", "ListByWorkspace", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/linkedstorageaccounts.go b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/linkedstorageaccounts.go index 41a5b473957a..8c81aeb35373 100644 --- a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/linkedstorageaccounts.go +++ b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/linkedstorageaccounts.go @@ -93,6 +93,7 @@ func (client LinkedStorageAccountsClient) CreateOrUpdate(ctx context.Context, re result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.LinkedStorageAccountsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client LinkedStorageAccountsClient) Delete(ctx context.Context, resourceGr result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.LinkedStorageAccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -276,6 +278,7 @@ func (client LinkedStorageAccountsClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.LinkedStorageAccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -367,6 +370,7 @@ func (client LinkedStorageAccountsClient) ListByWorkspace(ctx context.Context, r result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.LinkedStorageAccountsClient", "ListByWorkspace", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/managementgroups.go b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/managementgroups.go index 84e4559db0a1..c55420c30d7c 100644 --- a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/managementgroups.go +++ b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/managementgroups.go @@ -88,6 +88,7 @@ func (client ManagementGroupsClient) List(ctx context.Context, resourceGroupName result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.ManagementGroupsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/operations.go b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/operations.go index 87b8b7a3b4a9..be9234b62cf9 100644 --- a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/operations.go +++ b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/operationstatuses.go b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/operationstatuses.go index b24f85303dbe..d7df40785d7b 100644 --- a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/operationstatuses.go +++ b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/operationstatuses.go @@ -80,6 +80,7 @@ func (client OperationStatusesClient) Get(ctx context.Context, location string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.OperationStatusesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/savedsearches.go b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/savedsearches.go index ab179d79f01e..f57941a550da 100644 --- a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/savedsearches.go +++ b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/savedsearches.go @@ -95,6 +95,7 @@ func (client SavedSearchesClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.SavedSearchesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client SavedSearchesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.SavedSearchesClient", "Delete", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client SavedSearchesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.SavedSearchesClient", "Get", resp, "Failure responding to request") + return } return @@ -368,6 +371,7 @@ func (client SavedSearchesClient) ListByWorkspace(ctx context.Context, resourceG result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.SavedSearchesClient", "ListByWorkspace", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/schema.go b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/schema.go index eb1fe3ed1bf6..3ce3d6691fef 100644 --- a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/schema.go +++ b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/schema.go @@ -87,6 +87,7 @@ func (client SchemaClient) Get(ctx context.Context, resourceGroupName string, wo result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.SchemaClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/sharedkeys.go b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/sharedkeys.go index 74bf44b0ad4d..2ffda4046d6c 100644 --- a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/sharedkeys.go +++ b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/sharedkeys.go @@ -87,6 +87,7 @@ func (client SharedKeysClient) GetSharedKeys(ctx context.Context, resourceGroupN result, err = client.GetSharedKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.SharedKeysClient", "GetSharedKeys", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client SharedKeysClient) Regenerate(ctx context.Context, resourceGroupName result, err = client.RegenerateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.SharedKeysClient", "Regenerate", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/storageinsightconfigs.go b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/storageinsightconfigs.go index 6660b53c4e6b..c08ce24e6411 100644 --- a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/storageinsightconfigs.go +++ b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/storageinsightconfigs.go @@ -97,6 +97,7 @@ func (client StorageInsightConfigsClient) CreateOrUpdate(ctx context.Context, re result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.StorageInsightConfigsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client StorageInsightConfigsClient) Delete(ctx context.Context, resourceGr result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.StorageInsightConfigsClient", "Delete", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client StorageInsightConfigsClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.StorageInsightConfigsClient", "Get", resp, "Failure responding to request") + return } return @@ -371,6 +374,7 @@ func (client StorageInsightConfigsClient) ListByWorkspace(ctx context.Context, r result.silr, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.StorageInsightConfigsClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.silr.hasNextLink() && result.silr.IsEmpty() { err = result.NextWithContext(ctx) @@ -435,6 +439,7 @@ func (client StorageInsightConfigsClient) listByWorkspaceNextResults(ctx context result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.StorageInsightConfigsClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/tables.go b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/tables.go index 08a7b9c74101..84a6617014d7 100644 --- a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/tables.go +++ b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/tables.go @@ -88,6 +88,7 @@ func (client TablesClient) Get(ctx context.Context, resourceGroupName string, wo result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.TablesClient", "Get", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client TablesClient) ListByWorkspace(ctx context.Context, resourceGroupNam result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.TablesClient", "ListByWorkspace", resp, "Failure responding to request") + return } return @@ -269,6 +271,7 @@ func (client TablesClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.TablesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/usages.go b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/usages.go index ef6da64d4689..4a409ac48009 100644 --- a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/usages.go +++ b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/usages.go @@ -87,6 +87,7 @@ func (client UsagesClient) List(ctx context.Context, resourceGroupName string, w result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.UsagesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/workspacepurge.go b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/workspacepurge.go index 051f12f629b2..62c5b7e4e7b8 100644 --- a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/workspacepurge.go +++ b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/workspacepurge.go @@ -88,6 +88,7 @@ func (client WorkspacePurgeClient) GetPurgeStatus(ctx context.Context, resourceG result, err = client.GetPurgeStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacePurgeClient", "GetPurgeStatus", resp, "Failure responding to request") + return } return @@ -187,6 +188,7 @@ func (client WorkspacePurgeClient) Purge(ctx context.Context, resourceGroupName result, err = client.PurgeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacePurgeClient", "Purge", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/workspaces.go b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/workspaces.go index 47925ba78da8..b287816ac43e 100644 --- a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/workspaces.go +++ b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/workspaces.go @@ -281,6 +281,7 @@ func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -359,6 +360,7 @@ func (client WorkspacesClient) List(ctx context.Context) (result WorkspaceListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "List", resp, "Failure responding to request") + return } return @@ -441,6 +443,7 @@ func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resource result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -530,6 +533,7 @@ func (client WorkspacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/managementassociations.go b/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/managementassociations.go index 9f607451c324..4f3f67bac3b5 100644 --- a/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/managementassociations.go +++ b/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/managementassociations.go @@ -86,6 +86,7 @@ func (client ManagementAssociationsClient) CreateOrUpdate(ctx context.Context, r result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationsmanagement.ManagementAssociationsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client ManagementAssociationsClient) Delete(ctx context.Context, resourceG result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationsmanagement.ManagementAssociationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -262,6 +264,7 @@ func (client ManagementAssociationsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationsmanagement.ManagementAssociationsClient", "Get", resp, "Failure responding to request") + return } return @@ -337,6 +340,7 @@ func (client ManagementAssociationsClient) ListBySubscription(ctx context.Contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationsmanagement.ManagementAssociationsClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/managementconfigurations.go b/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/managementconfigurations.go index c8a752d56a60..b902421f07e9 100644 --- a/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/managementconfigurations.go +++ b/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/managementconfigurations.go @@ -89,6 +89,7 @@ func (client ManagementConfigurationsClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationsmanagement.ManagementConfigurationsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client ManagementConfigurationsClient) Delete(ctx context.Context, resourc result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationsmanagement.ManagementConfigurationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -259,6 +261,7 @@ func (client ManagementConfigurationsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationsmanagement.ManagementConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -331,6 +334,7 @@ func (client ManagementConfigurationsClient) ListBySubscription(ctx context.Cont result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationsmanagement.ManagementConfigurationsClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/operations.go b/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/operations.go index 1d7d2e8307b5..bde18a8d85f7 100644 --- a/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/operations.go +++ b/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationsmanagement.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/solutions.go b/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/solutions.go index 6b7c10a57052..fbbd86f879c7 100644 --- a/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/solutions.go +++ b/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/solutions.go @@ -255,6 +255,7 @@ func (client SolutionsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationsmanagement.SolutionsClient", "Get", resp, "Failure responding to request") + return } return @@ -337,6 +338,7 @@ func (client SolutionsClient) ListByResourceGroup(ctx context.Context, resourceG result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationsmanagement.SolutionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -408,6 +410,7 @@ func (client SolutionsClient) ListBySubscription(ctx context.Context) (result So result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "operationsmanagement.SolutionsClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/preview/peering/mgmt/2019-08-01-preview/peering/client.go b/services/preview/peering/mgmt/2019-08-01-preview/peering/client.go index 6a3bc6386b27..b201878778d2 100644 --- a/services/preview/peering/mgmt/2019-08-01-preview/peering/client.go +++ b/services/preview/peering/mgmt/2019-08-01-preview/peering/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckServiceProviderAvailability(ctx context.Context, c result, err = client.CheckServiceProviderAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.BaseClient", "CheckServiceProviderAvailability", resp, "Failure responding to request") + return } return diff --git a/services/preview/peering/mgmt/2019-08-01-preview/peering/legacypeerings.go b/services/preview/peering/mgmt/2019-08-01-preview/peering/legacypeerings.go index ee4edc871871..fb0d0a11d9aa 100644 --- a/services/preview/peering/mgmt/2019-08-01-preview/peering/legacypeerings.go +++ b/services/preview/peering/mgmt/2019-08-01-preview/peering/legacypeerings.go @@ -73,6 +73,7 @@ func (client LegacyPeeringsClient) List(ctx context.Context, peeringLocation str result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.LegacyPeeringsClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -137,6 +138,7 @@ func (client LegacyPeeringsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.LegacyPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/peering/mgmt/2019-08-01-preview/peering/locations.go b/services/preview/peering/mgmt/2019-08-01-preview/peering/locations.go index f4849b948a62..809f641d1e3f 100644 --- a/services/preview/peering/mgmt/2019-08-01-preview/peering/locations.go +++ b/services/preview/peering/mgmt/2019-08-01-preview/peering/locations.go @@ -73,6 +73,7 @@ func (client LocationsClient) List(ctx context.Context, kind string, directPeeri result.llr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.LocationsClient", "List", resp, "Failure responding to request") + return } if result.llr.hasNextLink() && result.llr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client LocationsClient) listNextResults(ctx context.Context, lastResults L result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.LocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/peering/mgmt/2019-08-01-preview/peering/operations.go b/services/preview/peering/mgmt/2019-08-01-preview/peering/operations.go index 15b7d5661e6d..a171d8581b35 100644 --- a/services/preview/peering/mgmt/2019-08-01-preview/peering/operations.go +++ b/services/preview/peering/mgmt/2019-08-01-preview/peering/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/peering/mgmt/2019-08-01-preview/peering/peerasns.go b/services/preview/peering/mgmt/2019-08-01-preview/peering/peerasns.go index f0ac51d1c286..449e47749ebd 100644 --- a/services/preview/peering/mgmt/2019-08-01-preview/peering/peerasns.go +++ b/services/preview/peering/mgmt/2019-08-01-preview/peering/peerasns.go @@ -73,6 +73,7 @@ func (client PeerAsnsClient) CreateOrUpdate(ctx context.Context, peerAsnName str result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client PeerAsnsClient) Delete(ctx context.Context, peerAsnName string) (re result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "Delete", resp, "Failure responding to request") + return } return @@ -220,6 +222,7 @@ func (client PeerAsnsClient) Get(ctx context.Context, peerAsnName string) (resul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "Get", resp, "Failure responding to request") + return } return @@ -292,6 +295,7 @@ func (client PeerAsnsClient) ListBySubscription(ctx context.Context) (result Pee result.palr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.palr.hasNextLink() && result.palr.IsEmpty() { err = result.NextWithContext(ctx) @@ -354,6 +358,7 @@ func (client PeerAsnsClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/peering/mgmt/2019-08-01-preview/peering/peerings.go b/services/preview/peering/mgmt/2019-08-01-preview/peering/peerings.go index a966baa2050c..a8cfccee68c1 100644 --- a/services/preview/peering/mgmt/2019-08-01-preview/peering/peerings.go +++ b/services/preview/peering/mgmt/2019-08-01-preview/peering/peerings.go @@ -82,6 +82,7 @@ func (client PeeringsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client PeeringsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "Delete", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client PeeringsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +311,7 @@ func (client PeeringsClient) ListByResourceGroup(ctx context.Context, resourceGr result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +375,7 @@ func (client PeeringsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -420,6 +425,7 @@ func (client PeeringsClient) ListBySubscription(ctx context.Context) (result Lis result.lr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -482,6 +488,7 @@ func (client PeeringsClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -534,6 +541,7 @@ func (client PeeringsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/peering/mgmt/2019-08-01-preview/peering/prefixes.go b/services/preview/peering/mgmt/2019-08-01-preview/peering/prefixes.go index 9a5cafe106e4..064be468b2cc 100644 --- a/services/preview/peering/mgmt/2019-08-01-preview/peering/prefixes.go +++ b/services/preview/peering/mgmt/2019-08-01-preview/peering/prefixes.go @@ -73,6 +73,7 @@ func (client PrefixesClient) ListByPeeringService(ctx context.Context, resourceG result.splr, err = client.ListByPeeringServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "ListByPeeringService", resp, "Failure responding to request") + return } if result.splr.hasNextLink() && result.splr.IsEmpty() { err = result.NextWithContext(ctx) @@ -137,6 +138,7 @@ func (client PrefixesClient) listByPeeringServiceNextResults(ctx context.Context result, err = client.ListByPeeringServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "listByPeeringServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/peering/mgmt/2019-08-01-preview/peering/servicelocations.go b/services/preview/peering/mgmt/2019-08-01-preview/peering/servicelocations.go index 7b396aa5a857..0cb9067bb346 100644 --- a/services/preview/peering/mgmt/2019-08-01-preview/peering/servicelocations.go +++ b/services/preview/peering/mgmt/2019-08-01-preview/peering/servicelocations.go @@ -71,6 +71,7 @@ func (client ServiceLocationsClient) List(ctx context.Context) (result ServiceLo result.sllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServiceLocationsClient", "List", resp, "Failure responding to request") + return } if result.sllr.hasNextLink() && result.sllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ServiceLocationsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServiceLocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/peering/mgmt/2019-08-01-preview/peering/serviceprefixes.go b/services/preview/peering/mgmt/2019-08-01-preview/peering/serviceprefixes.go index 9f1f120fa43b..848f1e4f0d30 100644 --- a/services/preview/peering/mgmt/2019-08-01-preview/peering/serviceprefixes.go +++ b/services/preview/peering/mgmt/2019-08-01-preview/peering/serviceprefixes.go @@ -74,6 +74,7 @@ func (client ServicePrefixesClient) CreateOrUpdate(ctx context.Context, resource result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicePrefixesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client ServicePrefixesClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicePrefixesClient", "Delete", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client ServicePrefixesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicePrefixesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/peering/mgmt/2019-08-01-preview/peering/serviceproviders.go b/services/preview/peering/mgmt/2019-08-01-preview/peering/serviceproviders.go index 6ae4649f6160..a74571dfb2e6 100644 --- a/services/preview/peering/mgmt/2019-08-01-preview/peering/serviceproviders.go +++ b/services/preview/peering/mgmt/2019-08-01-preview/peering/serviceproviders.go @@ -71,6 +71,7 @@ func (client ServiceProvidersClient) List(ctx context.Context) (result ServicePr result.splr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.splr.hasNextLink() && result.splr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ServiceProvidersClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/peering/mgmt/2019-08-01-preview/peering/services.go b/services/preview/peering/mgmt/2019-08-01-preview/peering/services.go index 453487a634cd..f6d848a3d704 100644 --- a/services/preview/peering/mgmt/2019-08-01-preview/peering/services.go +++ b/services/preview/peering/mgmt/2019-08-01-preview/peering/services.go @@ -81,6 +81,7 @@ func (client ServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client ServicesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +310,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGr result.slr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +374,7 @@ func (client ServicesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -419,6 +424,7 @@ func (client ServicesClient) ListBySubscription(ctx context.Context) (result Ser result.slr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +487,7 @@ func (client ServicesClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -533,6 +540,7 @@ func (client ServicesClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/client.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/client.go index e00b4724c4ef..189d5646f507 100644 --- a/services/preview/peering/mgmt/2019-09-01-preview/peering/client.go +++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckServiceProviderAvailability(ctx context.Context, c result, err = client.CheckServiceProviderAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.BaseClient", "CheckServiceProviderAvailability", resp, "Failure responding to request") + return } return diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/legacypeerings.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/legacypeerings.go index 76a217d93e9e..68ec5c6c84d4 100644 --- a/services/preview/peering/mgmt/2019-09-01-preview/peering/legacypeerings.go +++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/legacypeerings.go @@ -73,6 +73,7 @@ func (client LegacyPeeringsClient) List(ctx context.Context, peeringLocation str result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.LegacyPeeringsClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -137,6 +138,7 @@ func (client LegacyPeeringsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.LegacyPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/locations.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/locations.go index 21e1f20dc059..a3be72fa8c65 100644 --- a/services/preview/peering/mgmt/2019-09-01-preview/peering/locations.go +++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/locations.go @@ -73,6 +73,7 @@ func (client LocationsClient) List(ctx context.Context, kind string, directPeeri result.llr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.LocationsClient", "List", resp, "Failure responding to request") + return } if result.llr.hasNextLink() && result.llr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client LocationsClient) listNextResults(ctx context.Context, lastResults L result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.LocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/operations.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/operations.go index 22237ddce876..95eba6e579d3 100644 --- a/services/preview/peering/mgmt/2019-09-01-preview/peering/operations.go +++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/peerasns.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/peerasns.go index 33bda2f39040..c4ddd8753810 100644 --- a/services/preview/peering/mgmt/2019-09-01-preview/peering/peerasns.go +++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/peerasns.go @@ -73,6 +73,7 @@ func (client PeerAsnsClient) CreateOrUpdate(ctx context.Context, peerAsnName str result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client PeerAsnsClient) Delete(ctx context.Context, peerAsnName string) (re result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "Delete", resp, "Failure responding to request") + return } return @@ -220,6 +222,7 @@ func (client PeerAsnsClient) Get(ctx context.Context, peerAsnName string) (resul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "Get", resp, "Failure responding to request") + return } return @@ -292,6 +295,7 @@ func (client PeerAsnsClient) ListBySubscription(ctx context.Context) (result Pee result.palr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.palr.hasNextLink() && result.palr.IsEmpty() { err = result.NextWithContext(ctx) @@ -354,6 +358,7 @@ func (client PeerAsnsClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/peerings.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/peerings.go index 0a6a1cdd4efb..fa3d44d6f3f4 100644 --- a/services/preview/peering/mgmt/2019-09-01-preview/peering/peerings.go +++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/peerings.go @@ -82,6 +82,7 @@ func (client PeeringsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client PeeringsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "Delete", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client PeeringsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +311,7 @@ func (client PeeringsClient) ListByResourceGroup(ctx context.Context, resourceGr result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +375,7 @@ func (client PeeringsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -420,6 +425,7 @@ func (client PeeringsClient) ListBySubscription(ctx context.Context) (result Lis result.lr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -482,6 +488,7 @@ func (client PeeringsClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -534,6 +541,7 @@ func (client PeeringsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/prefixes.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/prefixes.go index 82a70aa39dad..b51875c35aca 100644 --- a/services/preview/peering/mgmt/2019-09-01-preview/peering/prefixes.go +++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/prefixes.go @@ -75,6 +75,7 @@ func (client PrefixesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client PrefixesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "Delete", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client PrefixesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +317,7 @@ func (client PrefixesClient) ListByPeeringService(ctx context.Context, resourceG result.splr, err = client.ListByPeeringServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "ListByPeeringService", resp, "Failure responding to request") + return } if result.splr.hasNextLink() && result.splr.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +385,7 @@ func (client PrefixesClient) listByPeeringServiceNextResults(ctx context.Context result, err = client.ListByPeeringServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "listByPeeringServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/servicelocations.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/servicelocations.go index 3b71af35d324..a46bf0680615 100644 --- a/services/preview/peering/mgmt/2019-09-01-preview/peering/servicelocations.go +++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/servicelocations.go @@ -71,6 +71,7 @@ func (client ServiceLocationsClient) List(ctx context.Context) (result ServiceLo result.sllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServiceLocationsClient", "List", resp, "Failure responding to request") + return } if result.sllr.hasNextLink() && result.sllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ServiceLocationsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServiceLocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/serviceproviders.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/serviceproviders.go index 9406d984841e..d85da3ffd005 100644 --- a/services/preview/peering/mgmt/2019-09-01-preview/peering/serviceproviders.go +++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/serviceproviders.go @@ -71,6 +71,7 @@ func (client ServiceProvidersClient) List(ctx context.Context) (result ServicePr result.splr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.splr.hasNextLink() && result.splr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ServiceProvidersClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/services.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/services.go index 8c24f409d3fb..9871b54b39e9 100644 --- a/services/preview/peering/mgmt/2019-09-01-preview/peering/services.go +++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/services.go @@ -81,6 +81,7 @@ func (client ServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client ServicesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +310,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGr result.slr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +374,7 @@ func (client ServicesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -419,6 +424,7 @@ func (client ServicesClient) ListBySubscription(ctx context.Context) (result Ser result.slr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +487,7 @@ func (client ServicesClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -533,6 +540,7 @@ func (client ServicesClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/peering/mgmt/2020-01-01-preview/peering/client.go b/services/preview/peering/mgmt/2020-01-01-preview/peering/client.go index a4388706744c..44bc32f42e0e 100644 --- a/services/preview/peering/mgmt/2020-01-01-preview/peering/client.go +++ b/services/preview/peering/mgmt/2020-01-01-preview/peering/client.go @@ -87,6 +87,7 @@ func (client BaseClient) CheckServiceProviderAvailability(ctx context.Context, c result, err = client.CheckServiceProviderAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.BaseClient", "CheckServiceProviderAvailability", resp, "Failure responding to request") + return } return diff --git a/services/preview/peering/mgmt/2020-01-01-preview/peering/legacypeerings.go b/services/preview/peering/mgmt/2020-01-01-preview/peering/legacypeerings.go index 437812ca100d..b93518ff8509 100644 --- a/services/preview/peering/mgmt/2020-01-01-preview/peering/legacypeerings.go +++ b/services/preview/peering/mgmt/2020-01-01-preview/peering/legacypeerings.go @@ -74,6 +74,7 @@ func (client LegacyPeeringsClient) List(ctx context.Context, peeringLocation str result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.LegacyPeeringsClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -141,6 +142,7 @@ func (client LegacyPeeringsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.LegacyPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/peering/mgmt/2020-01-01-preview/peering/locations.go b/services/preview/peering/mgmt/2020-01-01-preview/peering/locations.go index ab92665ff7e4..fa1d38704dbb 100644 --- a/services/preview/peering/mgmt/2020-01-01-preview/peering/locations.go +++ b/services/preview/peering/mgmt/2020-01-01-preview/peering/locations.go @@ -73,6 +73,7 @@ func (client LocationsClient) List(ctx context.Context, kind string, directPeeri result.llr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.LocationsClient", "List", resp, "Failure responding to request") + return } if result.llr.hasNextLink() && result.llr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client LocationsClient) listNextResults(ctx context.Context, lastResults L result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.LocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/peering/mgmt/2020-01-01-preview/peering/operations.go b/services/preview/peering/mgmt/2020-01-01-preview/peering/operations.go index 219fcfc8ab28..7a529f772d02 100644 --- a/services/preview/peering/mgmt/2020-01-01-preview/peering/operations.go +++ b/services/preview/peering/mgmt/2020-01-01-preview/peering/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/peering/mgmt/2020-01-01-preview/peering/peerasns.go b/services/preview/peering/mgmt/2020-01-01-preview/peering/peerasns.go index 27da21ca08a3..ebccab1462ba 100644 --- a/services/preview/peering/mgmt/2020-01-01-preview/peering/peerasns.go +++ b/services/preview/peering/mgmt/2020-01-01-preview/peering/peerasns.go @@ -73,6 +73,7 @@ func (client PeerAsnsClient) CreateOrUpdate(ctx context.Context, peerAsnName str result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client PeerAsnsClient) Delete(ctx context.Context, peerAsnName string) (re result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "Delete", resp, "Failure responding to request") + return } return @@ -220,6 +222,7 @@ func (client PeerAsnsClient) Get(ctx context.Context, peerAsnName string) (resul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "Get", resp, "Failure responding to request") + return } return @@ -292,6 +295,7 @@ func (client PeerAsnsClient) ListBySubscription(ctx context.Context) (result Pee result.palr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.palr.hasNextLink() && result.palr.IsEmpty() { err = result.NextWithContext(ctx) @@ -354,6 +358,7 @@ func (client PeerAsnsClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/peering/mgmt/2020-01-01-preview/peering/peerings.go b/services/preview/peering/mgmt/2020-01-01-preview/peering/peerings.go index d4745d6ff850..9ddcfbaa3bc0 100644 --- a/services/preview/peering/mgmt/2020-01-01-preview/peering/peerings.go +++ b/services/preview/peering/mgmt/2020-01-01-preview/peering/peerings.go @@ -82,6 +82,7 @@ func (client PeeringsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client PeeringsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "Delete", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client PeeringsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +311,7 @@ func (client PeeringsClient) ListByResourceGroup(ctx context.Context, resourceGr result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -371,6 +375,7 @@ func (client PeeringsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -420,6 +425,7 @@ func (client PeeringsClient) ListBySubscription(ctx context.Context) (result Lis result.lr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -482,6 +488,7 @@ func (client PeeringsClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -534,6 +541,7 @@ func (client PeeringsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/peering/mgmt/2020-01-01-preview/peering/prefixes.go b/services/preview/peering/mgmt/2020-01-01-preview/peering/prefixes.go index 426c98920159..3aa61a22a209 100644 --- a/services/preview/peering/mgmt/2020-01-01-preview/peering/prefixes.go +++ b/services/preview/peering/mgmt/2020-01-01-preview/peering/prefixes.go @@ -75,6 +75,7 @@ func (client PrefixesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client PrefixesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "Delete", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client PrefixesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +317,7 @@ func (client PrefixesClient) ListByPeeringService(ctx context.Context, resourceG result.splr, err = client.ListByPeeringServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "ListByPeeringService", resp, "Failure responding to request") + return } if result.splr.hasNextLink() && result.splr.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +385,7 @@ func (client PrefixesClient) listByPeeringServiceNextResults(ctx context.Context result, err = client.ListByPeeringServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "listByPeeringServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/peering/mgmt/2020-01-01-preview/peering/registeredasns.go b/services/preview/peering/mgmt/2020-01-01-preview/peering/registeredasns.go index e488717ecb83..b9edfba5bff0 100644 --- a/services/preview/peering/mgmt/2020-01-01-preview/peering/registeredasns.go +++ b/services/preview/peering/mgmt/2020-01-01-preview/peering/registeredasns.go @@ -75,6 +75,7 @@ func (client RegisteredAsnsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredAsnsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client RegisteredAsnsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredAsnsClient", "Delete", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client RegisteredAsnsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredAsnsClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +312,7 @@ func (client RegisteredAsnsClient) ListByPeering(ctx context.Context, resourceGr result.ralr, err = client.ListByPeeringResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredAsnsClient", "ListByPeering", resp, "Failure responding to request") + return } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +377,7 @@ func (client RegisteredAsnsClient) listByPeeringNextResults(ctx context.Context, result, err = client.ListByPeeringResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredAsnsClient", "listByPeeringNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/peering/mgmt/2020-01-01-preview/peering/registeredprefixes.go b/services/preview/peering/mgmt/2020-01-01-preview/peering/registeredprefixes.go index 81af1ca92663..18e44af809ae 100644 --- a/services/preview/peering/mgmt/2020-01-01-preview/peering/registeredprefixes.go +++ b/services/preview/peering/mgmt/2020-01-01-preview/peering/registeredprefixes.go @@ -76,6 +76,7 @@ func (client RegisteredPrefixesClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredPrefixesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client RegisteredPrefixesClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredPrefixesClient", "Delete", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client RegisteredPrefixesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredPrefixesClient", "Get", resp, "Failure responding to request") + return } return @@ -310,6 +313,7 @@ func (client RegisteredPrefixesClient) ListByPeering(ctx context.Context, resour result.rplr, err = client.ListByPeeringResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredPrefixesClient", "ListByPeering", resp, "Failure responding to request") + return } if result.rplr.hasNextLink() && result.rplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +378,7 @@ func (client RegisteredPrefixesClient) listByPeeringNextResults(ctx context.Cont result, err = client.ListByPeeringResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.RegisteredPrefixesClient", "listByPeeringNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/peering/mgmt/2020-01-01-preview/peering/servicecountries.go b/services/preview/peering/mgmt/2020-01-01-preview/peering/servicecountries.go index 58f996a80529..1b194d4e26e0 100644 --- a/services/preview/peering/mgmt/2020-01-01-preview/peering/servicecountries.go +++ b/services/preview/peering/mgmt/2020-01-01-preview/peering/servicecountries.go @@ -71,6 +71,7 @@ func (client ServiceCountriesClient) List(ctx context.Context) (result ServiceCo result.sclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServiceCountriesClient", "List", resp, "Failure responding to request") + return } if result.sclr.hasNextLink() && result.sclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ServiceCountriesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServiceCountriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/peering/mgmt/2020-01-01-preview/peering/servicelocations.go b/services/preview/peering/mgmt/2020-01-01-preview/peering/servicelocations.go index 3535261dba20..183f88e31ad4 100644 --- a/services/preview/peering/mgmt/2020-01-01-preview/peering/servicelocations.go +++ b/services/preview/peering/mgmt/2020-01-01-preview/peering/servicelocations.go @@ -73,6 +73,7 @@ func (client ServiceLocationsClient) List(ctx context.Context, country string) ( result.sllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServiceLocationsClient", "List", resp, "Failure responding to request") + return } if result.sllr.hasNextLink() && result.sllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -138,6 +139,7 @@ func (client ServiceLocationsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServiceLocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/peering/mgmt/2020-01-01-preview/peering/serviceproviders.go b/services/preview/peering/mgmt/2020-01-01-preview/peering/serviceproviders.go index dd6fbca43f1f..91329097a5e1 100644 --- a/services/preview/peering/mgmt/2020-01-01-preview/peering/serviceproviders.go +++ b/services/preview/peering/mgmt/2020-01-01-preview/peering/serviceproviders.go @@ -71,6 +71,7 @@ func (client ServiceProvidersClient) List(ctx context.Context) (result ServicePr result.splr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServiceProvidersClient", "List", resp, "Failure responding to request") + return } if result.splr.hasNextLink() && result.splr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client ServiceProvidersClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/peering/mgmt/2020-01-01-preview/peering/services.go b/services/preview/peering/mgmt/2020-01-01-preview/peering/services.go index 6fc470031d76..44304413ac20 100644 --- a/services/preview/peering/mgmt/2020-01-01-preview/peering/services.go +++ b/services/preview/peering/mgmt/2020-01-01-preview/peering/services.go @@ -81,6 +81,7 @@ func (client ServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client ServicesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +310,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGr result.slr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +374,7 @@ func (client ServicesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -419,6 +424,7 @@ func (client ServicesClient) ListBySubscription(ctx context.Context) (result Ser result.slr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -481,6 +487,7 @@ func (client ServicesClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -533,6 +540,7 @@ func (client ServicesClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "peering.ServicesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/operations.go b/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/operations.go index b9adf0c568a0..4a8c2339c306 100644 --- a/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/operations.go +++ b/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/policyevents.go b/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/policyevents.go index 60fbcab755b1..8cebf27fce8a 100644 --- a/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/policyevents.go +++ b/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/policyevents.go @@ -94,6 +94,7 @@ func (client PolicyEventsClient) ListQueryResultsForManagementGroup(ctx context. result.peqr, err = client.ListQueryResultsForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForManagementGroup", resp, "Failure responding to request") + return } if result.peqr.hasNextLink() && result.peqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -182,6 +183,7 @@ func (client PolicyEventsClient) listQueryResultsForManagementGroupNextResults(c result, err = client.ListQueryResultsForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "listQueryResultsForManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -254,6 +256,7 @@ func (client PolicyEventsClient) ListQueryResultsForPolicyDefinition(ctx context result.peqr, err = client.ListQueryResultsForPolicyDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForPolicyDefinition", resp, "Failure responding to request") + return } if result.peqr.hasNextLink() && result.peqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -343,6 +346,7 @@ func (client PolicyEventsClient) listQueryResultsForPolicyDefinitionNextResults( result, err = client.ListQueryResultsForPolicyDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "listQueryResultsForPolicyDefinitionNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +419,7 @@ func (client PolicyEventsClient) ListQueryResultsForPolicySetDefinition(ctx cont result.peqr, err = client.ListQueryResultsForPolicySetDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForPolicySetDefinition", resp, "Failure responding to request") + return } if result.peqr.hasNextLink() && result.peqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -504,6 +509,7 @@ func (client PolicyEventsClient) listQueryResultsForPolicySetDefinitionNextResul result, err = client.ListQueryResultsForPolicySetDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "listQueryResultsForPolicySetDefinitionNextResults", resp, "Failure responding to next results request") + return } return } @@ -575,6 +581,7 @@ func (client PolicyEventsClient) ListQueryResultsForResource(ctx context.Context result.peqr, err = client.ListQueryResultsForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForResource", resp, "Failure responding to request") + return } if result.peqr.hasNextLink() && result.peqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -662,6 +669,7 @@ func (client PolicyEventsClient) listQueryResultsForResourceNextResults(ctx cont result, err = client.ListQueryResultsForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "listQueryResultsForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -734,6 +742,7 @@ func (client PolicyEventsClient) ListQueryResultsForResourceGroup(ctx context.Co result.peqr, err = client.ListQueryResultsForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForResourceGroup", resp, "Failure responding to request") + return } if result.peqr.hasNextLink() && result.peqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -822,6 +831,7 @@ func (client PolicyEventsClient) listQueryResultsForResourceGroupNextResults(ctx result, err = client.ListQueryResultsForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "listQueryResultsForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -896,6 +906,7 @@ func (client PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssi result.peqr, err = client.ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForResourceGroupLevelPolicyAssignment", resp, "Failure responding to request") + return } if result.peqr.hasNextLink() && result.peqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -986,6 +997,7 @@ func (client PolicyEventsClient) listQueryResultsForResourceGroupLevelPolicyAssi result, err = client.ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "listQueryResultsForResourceGroupLevelPolicyAssignmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -1057,6 +1069,7 @@ func (client PolicyEventsClient) ListQueryResultsForSubscription(ctx context.Con result.peqr, err = client.ListQueryResultsForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForSubscription", resp, "Failure responding to request") + return } if result.peqr.hasNextLink() && result.peqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1144,6 +1157,7 @@ func (client PolicyEventsClient) listQueryResultsForSubscriptionNextResults(ctx result, err = client.ListQueryResultsForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "listQueryResultsForSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1217,6 +1231,7 @@ func (client PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssig result.peqr, err = client.ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForSubscriptionLevelPolicyAssignment", resp, "Failure responding to request") + return } if result.peqr.hasNextLink() && result.peqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1306,6 +1321,7 @@ func (client PolicyEventsClient) listQueryResultsForSubscriptionLevelPolicyAssig result, err = client.ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "listQueryResultsForSubscriptionLevelPolicyAssignmentNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/policystates.go b/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/policystates.go index 706ce90220e6..4dbed79f921d 100644 --- a/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/policystates.go +++ b/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/policystates.go @@ -74,6 +74,7 @@ func (client PolicyStatesClient) GetMetadata(ctx context.Context, scope string) result, err = client.GetMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "GetMetadata", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client PolicyStatesClient) ListQueryResultsForManagementGroup(ctx context. result.psqr, err = client.ListQueryResultsForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForManagementGroup", resp, "Failure responding to request") + return } if result.psqr.hasNextLink() && result.psqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -257,6 +259,7 @@ func (client PolicyStatesClient) listQueryResultsForManagementGroupNextResults(c result, err = client.ListQueryResultsForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "listQueryResultsForManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -331,6 +334,7 @@ func (client PolicyStatesClient) ListQueryResultsForPolicyDefinition(ctx context result.psqr, err = client.ListQueryResultsForPolicyDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForPolicyDefinition", resp, "Failure responding to request") + return } if result.psqr.hasNextLink() && result.psqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -420,6 +424,7 @@ func (client PolicyStatesClient) listQueryResultsForPolicyDefinitionNextResults( result, err = client.ListQueryResultsForPolicyDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "listQueryResultsForPolicyDefinitionNextResults", resp, "Failure responding to next results request") + return } return } @@ -494,6 +499,7 @@ func (client PolicyStatesClient) ListQueryResultsForPolicySetDefinition(ctx cont result.psqr, err = client.ListQueryResultsForPolicySetDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForPolicySetDefinition", resp, "Failure responding to request") + return } if result.psqr.hasNextLink() && result.psqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -583,6 +589,7 @@ func (client PolicyStatesClient) listQueryResultsForPolicySetDefinitionNextResul result, err = client.ListQueryResultsForPolicySetDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "listQueryResultsForPolicySetDefinitionNextResults", resp, "Failure responding to next results request") + return } return } @@ -658,6 +665,7 @@ func (client PolicyStatesClient) ListQueryResultsForResource(ctx context.Context result.psqr, err = client.ListQueryResultsForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForResource", resp, "Failure responding to request") + return } if result.psqr.hasNextLink() && result.psqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -748,6 +756,7 @@ func (client PolicyStatesClient) listQueryResultsForResourceNextResults(ctx cont result, err = client.ListQueryResultsForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "listQueryResultsForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -822,6 +831,7 @@ func (client PolicyStatesClient) ListQueryResultsForResourceGroup(ctx context.Co result.psqr, err = client.ListQueryResultsForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForResourceGroup", resp, "Failure responding to request") + return } if result.psqr.hasNextLink() && result.psqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -910,6 +920,7 @@ func (client PolicyStatesClient) listQueryResultsForResourceGroupNextResults(ctx result, err = client.ListQueryResultsForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "listQueryResultsForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -986,6 +997,7 @@ func (client PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssi result.psqr, err = client.ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForResourceGroupLevelPolicyAssignment", resp, "Failure responding to request") + return } if result.psqr.hasNextLink() && result.psqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1076,6 +1088,7 @@ func (client PolicyStatesClient) listQueryResultsForResourceGroupLevelPolicyAssi result, err = client.ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "listQueryResultsForResourceGroupLevelPolicyAssignmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -1149,6 +1162,7 @@ func (client PolicyStatesClient) ListQueryResultsForSubscription(ctx context.Con result.psqr, err = client.ListQueryResultsForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForSubscription", resp, "Failure responding to request") + return } if result.psqr.hasNextLink() && result.psqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1236,6 +1250,7 @@ func (client PolicyStatesClient) listQueryResultsForSubscriptionNextResults(ctx result, err = client.ListQueryResultsForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "listQueryResultsForSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1311,6 +1326,7 @@ func (client PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssig result.psqr, err = client.ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForSubscriptionLevelPolicyAssignment", resp, "Failure responding to request") + return } if result.psqr.hasNextLink() && result.psqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1400,6 +1416,7 @@ func (client PolicyStatesClient) listQueryResultsForSubscriptionLevelPolicyAssig result, err = client.ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "listQueryResultsForSubscriptionLevelPolicyAssignmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -1463,6 +1480,7 @@ func (client PolicyStatesClient) SummarizeForManagementGroup(ctx context.Context result, err = client.SummarizeForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForManagementGroup", resp, "Failure responding to request") + return } return @@ -1563,6 +1581,7 @@ func (client PolicyStatesClient) SummarizeForPolicyDefinition(ctx context.Contex result, err = client.SummarizeForPolicyDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForPolicyDefinition", resp, "Failure responding to request") + return } return @@ -1664,6 +1683,7 @@ func (client PolicyStatesClient) SummarizeForPolicySetDefinition(ctx context.Con result, err = client.SummarizeForPolicySetDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForPolicySetDefinition", resp, "Failure responding to request") + return } return @@ -1764,6 +1784,7 @@ func (client PolicyStatesClient) SummarizeForResource(ctx context.Context, resou result, err = client.SummarizeForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForResource", resp, "Failure responding to request") + return } return @@ -1863,6 +1884,7 @@ func (client PolicyStatesClient) SummarizeForResourceGroup(ctx context.Context, result, err = client.SummarizeForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForResourceGroup", resp, "Failure responding to request") + return } return @@ -1965,6 +1987,7 @@ func (client PolicyStatesClient) SummarizeForResourceGroupLevelPolicyAssignment( result, err = client.SummarizeForResourceGroupLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForResourceGroupLevelPolicyAssignment", resp, "Failure responding to request") + return } return @@ -2066,6 +2089,7 @@ func (client PolicyStatesClient) SummarizeForSubscription(ctx context.Context, s result, err = client.SummarizeForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForSubscription", resp, "Failure responding to request") + return } return @@ -2165,6 +2189,7 @@ func (client PolicyStatesClient) SummarizeForSubscriptionLevelPolicyAssignment(c result, err = client.SummarizeForSubscriptionLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForSubscriptionLevelPolicyAssignment", resp, "Failure responding to request") + return } return diff --git a/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/policytrackedresources.go b/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/policytrackedresources.go index e879618a624c..0a3a8bb5df2a 100644 --- a/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/policytrackedresources.go +++ b/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/policytrackedresources.go @@ -83,6 +83,7 @@ func (client PolicyTrackedResourcesClient) ListQueryResultsForManagementGroup(ct result.ptrqr, err = client.ListQueryResultsForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForManagementGroup", resp, "Failure responding to request") + return } if result.ptrqr.hasNextLink() && result.ptrqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -153,6 +154,7 @@ func (client PolicyTrackedResourcesClient) listQueryResultsForManagementGroupNex result, err = client.ListQueryResultsForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "listQueryResultsForManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -213,6 +215,7 @@ func (client PolicyTrackedResourcesClient) ListQueryResultsForResource(ctx conte result.ptrqr, err = client.ListQueryResultsForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForResource", resp, "Failure responding to request") + return } if result.ptrqr.hasNextLink() && result.ptrqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -282,6 +285,7 @@ func (client PolicyTrackedResourcesClient) listQueryResultsForResourceNextResult result, err = client.ListQueryResultsForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "listQueryResultsForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -343,6 +347,7 @@ func (client PolicyTrackedResourcesClient) ListQueryResultsForResourceGroup(ctx result.ptrqr, err = client.ListQueryResultsForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForResourceGroup", resp, "Failure responding to request") + return } if result.ptrqr.hasNextLink() && result.ptrqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -413,6 +418,7 @@ func (client PolicyTrackedResourcesClient) listQueryResultsForResourceGroupNextR result, err = client.ListQueryResultsForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "listQueryResultsForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -473,6 +479,7 @@ func (client PolicyTrackedResourcesClient) ListQueryResultsForSubscription(ctx c result.ptrqr, err = client.ListQueryResultsForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForSubscription", resp, "Failure responding to request") + return } if result.ptrqr.hasNextLink() && result.ptrqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -542,6 +549,7 @@ func (client PolicyTrackedResourcesClient) listQueryResultsForSubscriptionNextRe result, err = client.ListQueryResultsForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "listQueryResultsForSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/remediations.go b/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/remediations.go index c95c67377f9c..5926c075901d 100644 --- a/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/remediations.go +++ b/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/remediations.go @@ -73,6 +73,7 @@ func (client RemediationsClient) CancelAtManagementGroup(ctx context.Context, ma result, err = client.CancelAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CancelAtManagementGroup", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client RemediationsClient) CancelAtResource(ctx context.Context, resourceI result, err = client.CancelAtResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CancelAtResource", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client RemediationsClient) CancelAtResourceGroup(ctx context.Context, subs result, err = client.CancelAtResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CancelAtResourceGroup", resp, "Failure responding to request") + return } return @@ -298,6 +301,7 @@ func (client RemediationsClient) CancelAtSubscription(ctx context.Context, subsc result, err = client.CancelAtSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CancelAtSubscription", resp, "Failure responding to request") + return } return @@ -373,6 +377,7 @@ func (client RemediationsClient) CreateOrUpdateAtManagementGroup(ctx context.Con result, err = client.CreateOrUpdateAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CreateOrUpdateAtManagementGroup", resp, "Failure responding to request") + return } return @@ -454,6 +459,7 @@ func (client RemediationsClient) CreateOrUpdateAtResource(ctx context.Context, r result, err = client.CreateOrUpdateAtResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CreateOrUpdateAtResource", resp, "Failure responding to request") + return } return @@ -535,6 +541,7 @@ func (client RemediationsClient) CreateOrUpdateAtResourceGroup(ctx context.Conte result, err = client.CreateOrUpdateAtResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CreateOrUpdateAtResourceGroup", resp, "Failure responding to request") + return } return @@ -616,6 +623,7 @@ func (client RemediationsClient) CreateOrUpdateAtSubscription(ctx context.Contex result, err = client.CreateOrUpdateAtSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CreateOrUpdateAtSubscription", resp, "Failure responding to request") + return } return @@ -695,6 +703,7 @@ func (client RemediationsClient) DeleteAtManagementGroup(ctx context.Context, ma result, err = client.DeleteAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "DeleteAtManagementGroup", resp, "Failure responding to request") + return } return @@ -770,6 +779,7 @@ func (client RemediationsClient) DeleteAtResource(ctx context.Context, resourceI result, err = client.DeleteAtResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "DeleteAtResource", resp, "Failure responding to request") + return } return @@ -845,6 +855,7 @@ func (client RemediationsClient) DeleteAtResourceGroup(ctx context.Context, subs result, err = client.DeleteAtResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "DeleteAtResourceGroup", resp, "Failure responding to request") + return } return @@ -920,6 +931,7 @@ func (client RemediationsClient) DeleteAtSubscription(ctx context.Context, subsc result, err = client.DeleteAtSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "DeleteAtSubscription", resp, "Failure responding to request") + return } return @@ -994,6 +1006,7 @@ func (client RemediationsClient) GetAtManagementGroup(ctx context.Context, manag result, err = client.GetAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "GetAtManagementGroup", resp, "Failure responding to request") + return } return @@ -1069,6 +1082,7 @@ func (client RemediationsClient) GetAtResource(ctx context.Context, resourceID s result, err = client.GetAtResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "GetAtResource", resp, "Failure responding to request") + return } return @@ -1144,6 +1158,7 @@ func (client RemediationsClient) GetAtResourceGroup(ctx context.Context, subscri result, err = client.GetAtResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "GetAtResourceGroup", resp, "Failure responding to request") + return } return @@ -1219,6 +1234,7 @@ func (client RemediationsClient) GetAtSubscription(ctx context.Context, subscrip result, err = client.GetAtSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "GetAtSubscription", resp, "Failure responding to request") + return } return @@ -1302,6 +1318,7 @@ func (client RemediationsClient) ListDeploymentsAtManagementGroup(ctx context.Co result.rdlr, err = client.ListDeploymentsAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListDeploymentsAtManagementGroup", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1369,6 +1386,7 @@ func (client RemediationsClient) listDeploymentsAtManagementGroupNextResults(ctx result, err = client.ListDeploymentsAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listDeploymentsAtManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1429,6 +1447,7 @@ func (client RemediationsClient) ListDeploymentsAtResource(ctx context.Context, result.rdlr, err = client.ListDeploymentsAtResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListDeploymentsAtResource", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1495,6 +1514,7 @@ func (client RemediationsClient) listDeploymentsAtResourceNextResults(ctx contex result, err = client.ListDeploymentsAtResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listDeploymentsAtResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -1556,6 +1576,7 @@ func (client RemediationsClient) ListDeploymentsAtResourceGroup(ctx context.Cont result.rdlr, err = client.ListDeploymentsAtResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListDeploymentsAtResourceGroup", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1623,6 +1644,7 @@ func (client RemediationsClient) listDeploymentsAtResourceGroupNextResults(ctx c result, err = client.ListDeploymentsAtResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listDeploymentsAtResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1683,6 +1705,7 @@ func (client RemediationsClient) ListDeploymentsAtSubscription(ctx context.Conte result.rdlr, err = client.ListDeploymentsAtSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListDeploymentsAtSubscription", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1749,6 +1772,7 @@ func (client RemediationsClient) listDeploymentsAtSubscriptionNextResults(ctx co result, err = client.ListDeploymentsAtSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listDeploymentsAtSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1809,6 +1833,7 @@ func (client RemediationsClient) ListForManagementGroup(ctx context.Context, man result.rlr, err = client.ListForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListForManagementGroup", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1878,6 +1903,7 @@ func (client RemediationsClient) listForManagementGroupNextResults(ctx context.C result, err = client.ListForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listForManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1938,6 +1964,7 @@ func (client RemediationsClient) ListForResource(ctx context.Context, resourceID result.rlr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListForResource", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2006,6 +2033,7 @@ func (client RemediationsClient) listForResourceNextResults(ctx context.Context, result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -2067,6 +2095,7 @@ func (client RemediationsClient) ListForResourceGroup(ctx context.Context, subsc result.rlr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2136,6 +2165,7 @@ func (client RemediationsClient) listForResourceGroupNextResults(ctx context.Con result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -2196,6 +2226,7 @@ func (client RemediationsClient) ListForSubscription(ctx context.Context, subscr result.rlr, err = client.ListForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListForSubscription", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2264,6 +2295,7 @@ func (client RemediationsClient) listForSubscriptionNextResults(ctx context.Cont result, err = client.ListForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listForSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/operations.go b/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/operations.go index 67068855ff39..6359b47b6391 100644 --- a/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/operations.go +++ b/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/policyevents.go b/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/policyevents.go index 1841990830f8..f0117f8b2199 100644 --- a/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/policyevents.go +++ b/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/policyevents.go @@ -94,6 +94,7 @@ func (client PolicyEventsClient) ListQueryResultsForManagementGroup(ctx context. result.peqr, err = client.ListQueryResultsForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForManagementGroup", resp, "Failure responding to request") + return } if result.peqr.hasNextLink() && result.peqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -182,6 +183,7 @@ func (client PolicyEventsClient) listQueryResultsForManagementGroupNextResults(c result, err = client.ListQueryResultsForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "listQueryResultsForManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -254,6 +256,7 @@ func (client PolicyEventsClient) ListQueryResultsForPolicyDefinition(ctx context result.peqr, err = client.ListQueryResultsForPolicyDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForPolicyDefinition", resp, "Failure responding to request") + return } if result.peqr.hasNextLink() && result.peqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -343,6 +346,7 @@ func (client PolicyEventsClient) listQueryResultsForPolicyDefinitionNextResults( result, err = client.ListQueryResultsForPolicyDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "listQueryResultsForPolicyDefinitionNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +419,7 @@ func (client PolicyEventsClient) ListQueryResultsForPolicySetDefinition(ctx cont result.peqr, err = client.ListQueryResultsForPolicySetDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForPolicySetDefinition", resp, "Failure responding to request") + return } if result.peqr.hasNextLink() && result.peqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -504,6 +509,7 @@ func (client PolicyEventsClient) listQueryResultsForPolicySetDefinitionNextResul result, err = client.ListQueryResultsForPolicySetDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "listQueryResultsForPolicySetDefinitionNextResults", resp, "Failure responding to next results request") + return } return } @@ -576,6 +582,7 @@ func (client PolicyEventsClient) ListQueryResultsForResource(ctx context.Context result.peqr, err = client.ListQueryResultsForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForResource", resp, "Failure responding to request") + return } if result.peqr.hasNextLink() && result.peqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -666,6 +673,7 @@ func (client PolicyEventsClient) listQueryResultsForResourceNextResults(ctx cont result, err = client.ListQueryResultsForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "listQueryResultsForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -738,6 +746,7 @@ func (client PolicyEventsClient) ListQueryResultsForResourceGroup(ctx context.Co result.peqr, err = client.ListQueryResultsForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForResourceGroup", resp, "Failure responding to request") + return } if result.peqr.hasNextLink() && result.peqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -826,6 +835,7 @@ func (client PolicyEventsClient) listQueryResultsForResourceGroupNextResults(ctx result, err = client.ListQueryResultsForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "listQueryResultsForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -900,6 +910,7 @@ func (client PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssi result.peqr, err = client.ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForResourceGroupLevelPolicyAssignment", resp, "Failure responding to request") + return } if result.peqr.hasNextLink() && result.peqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -990,6 +1001,7 @@ func (client PolicyEventsClient) listQueryResultsForResourceGroupLevelPolicyAssi result, err = client.ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "listQueryResultsForResourceGroupLevelPolicyAssignmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -1061,6 +1073,7 @@ func (client PolicyEventsClient) ListQueryResultsForSubscription(ctx context.Con result.peqr, err = client.ListQueryResultsForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForSubscription", resp, "Failure responding to request") + return } if result.peqr.hasNextLink() && result.peqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1148,6 +1161,7 @@ func (client PolicyEventsClient) listQueryResultsForSubscriptionNextResults(ctx result, err = client.ListQueryResultsForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "listQueryResultsForSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1221,6 +1235,7 @@ func (client PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssig result.peqr, err = client.ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForSubscriptionLevelPolicyAssignment", resp, "Failure responding to request") + return } if result.peqr.hasNextLink() && result.peqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1310,6 +1325,7 @@ func (client PolicyEventsClient) listQueryResultsForSubscriptionLevelPolicyAssig result, err = client.ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "listQueryResultsForSubscriptionLevelPolicyAssignmentNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/policymetadata.go b/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/policymetadata.go index b288102a2d66..e07ab69d41f7 100644 --- a/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/policymetadata.go +++ b/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/policymetadata.go @@ -72,6 +72,7 @@ func (client PolicyMetadataClient) GetResource(ctx context.Context, resourceName result, err = client.GetResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyMetadataClient", "GetResource", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client PolicyMetadataClient) List(ctx context.Context, top *int32) (result result.pmc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyMetadataClient", "List", resp, "Failure responding to request") + return } if result.pmc.hasNextLink() && result.pmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -213,6 +215,7 @@ func (client PolicyMetadataClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyMetadataClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/policystates.go b/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/policystates.go index a2bd4d29eb90..dfca8e109eb4 100644 --- a/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/policystates.go +++ b/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/policystates.go @@ -96,6 +96,7 @@ func (client PolicyStatesClient) ListQueryResultsForManagementGroup(ctx context. result.psqr, err = client.ListQueryResultsForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForManagementGroup", resp, "Failure responding to request") + return } if result.psqr.hasNextLink() && result.psqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -184,6 +185,7 @@ func (client PolicyStatesClient) listQueryResultsForManagementGroupNextResults(c result, err = client.ListQueryResultsForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "listQueryResultsForManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -258,6 +260,7 @@ func (client PolicyStatesClient) ListQueryResultsForPolicyDefinition(ctx context result.psqr, err = client.ListQueryResultsForPolicyDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForPolicyDefinition", resp, "Failure responding to request") + return } if result.psqr.hasNextLink() && result.psqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -347,6 +350,7 @@ func (client PolicyStatesClient) listQueryResultsForPolicyDefinitionNextResults( result, err = client.ListQueryResultsForPolicyDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "listQueryResultsForPolicyDefinitionNextResults", resp, "Failure responding to next results request") + return } return } @@ -421,6 +425,7 @@ func (client PolicyStatesClient) ListQueryResultsForPolicySetDefinition(ctx cont result.psqr, err = client.ListQueryResultsForPolicySetDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForPolicySetDefinition", resp, "Failure responding to request") + return } if result.psqr.hasNextLink() && result.psqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -510,6 +515,7 @@ func (client PolicyStatesClient) listQueryResultsForPolicySetDefinitionNextResul result, err = client.ListQueryResultsForPolicySetDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "listQueryResultsForPolicySetDefinitionNextResults", resp, "Failure responding to next results request") + return } return } @@ -584,6 +590,7 @@ func (client PolicyStatesClient) ListQueryResultsForResource(ctx context.Context result.psqr, err = client.ListQueryResultsForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForResource", resp, "Failure responding to request") + return } if result.psqr.hasNextLink() && result.psqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -674,6 +681,7 @@ func (client PolicyStatesClient) listQueryResultsForResourceNextResults(ctx cont result, err = client.ListQueryResultsForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "listQueryResultsForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -748,6 +756,7 @@ func (client PolicyStatesClient) ListQueryResultsForResourceGroup(ctx context.Co result.psqr, err = client.ListQueryResultsForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForResourceGroup", resp, "Failure responding to request") + return } if result.psqr.hasNextLink() && result.psqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -836,6 +845,7 @@ func (client PolicyStatesClient) listQueryResultsForResourceGroupNextResults(ctx result, err = client.ListQueryResultsForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "listQueryResultsForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -912,6 +922,7 @@ func (client PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssi result.psqr, err = client.ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForResourceGroupLevelPolicyAssignment", resp, "Failure responding to request") + return } if result.psqr.hasNextLink() && result.psqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1002,6 +1013,7 @@ func (client PolicyStatesClient) listQueryResultsForResourceGroupLevelPolicyAssi result, err = client.ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "listQueryResultsForResourceGroupLevelPolicyAssignmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -1075,6 +1087,7 @@ func (client PolicyStatesClient) ListQueryResultsForSubscription(ctx context.Con result.psqr, err = client.ListQueryResultsForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForSubscription", resp, "Failure responding to request") + return } if result.psqr.hasNextLink() && result.psqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1162,6 +1175,7 @@ func (client PolicyStatesClient) listQueryResultsForSubscriptionNextResults(ctx result, err = client.ListQueryResultsForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "listQueryResultsForSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1237,6 +1251,7 @@ func (client PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssig result.psqr, err = client.ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForSubscriptionLevelPolicyAssignment", resp, "Failure responding to request") + return } if result.psqr.hasNextLink() && result.psqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1326,6 +1341,7 @@ func (client PolicyStatesClient) listQueryResultsForSubscriptionLevelPolicyAssig result, err = client.ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "listQueryResultsForSubscriptionLevelPolicyAssignmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -1389,6 +1405,7 @@ func (client PolicyStatesClient) SummarizeForManagementGroup(ctx context.Context result, err = client.SummarizeForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForManagementGroup", resp, "Failure responding to request") + return } return @@ -1489,6 +1506,7 @@ func (client PolicyStatesClient) SummarizeForPolicyDefinition(ctx context.Contex result, err = client.SummarizeForPolicyDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForPolicyDefinition", resp, "Failure responding to request") + return } return @@ -1590,6 +1608,7 @@ func (client PolicyStatesClient) SummarizeForPolicySetDefinition(ctx context.Con result, err = client.SummarizeForPolicySetDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForPolicySetDefinition", resp, "Failure responding to request") + return } return @@ -1690,6 +1709,7 @@ func (client PolicyStatesClient) SummarizeForResource(ctx context.Context, resou result, err = client.SummarizeForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForResource", resp, "Failure responding to request") + return } return @@ -1789,6 +1809,7 @@ func (client PolicyStatesClient) SummarizeForResourceGroup(ctx context.Context, result, err = client.SummarizeForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForResourceGroup", resp, "Failure responding to request") + return } return @@ -1891,6 +1912,7 @@ func (client PolicyStatesClient) SummarizeForResourceGroupLevelPolicyAssignment( result, err = client.SummarizeForResourceGroupLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForResourceGroupLevelPolicyAssignment", resp, "Failure responding to request") + return } return @@ -1992,6 +2014,7 @@ func (client PolicyStatesClient) SummarizeForSubscription(ctx context.Context, s result, err = client.SummarizeForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForSubscription", resp, "Failure responding to request") + return } return @@ -2091,6 +2114,7 @@ func (client PolicyStatesClient) SummarizeForSubscriptionLevelPolicyAssignment(c result, err = client.SummarizeForSubscriptionLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForSubscriptionLevelPolicyAssignment", resp, "Failure responding to request") + return } return diff --git a/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/policytrackedresources.go b/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/policytrackedresources.go index e879618a624c..0a3a8bb5df2a 100644 --- a/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/policytrackedresources.go +++ b/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/policytrackedresources.go @@ -83,6 +83,7 @@ func (client PolicyTrackedResourcesClient) ListQueryResultsForManagementGroup(ct result.ptrqr, err = client.ListQueryResultsForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForManagementGroup", resp, "Failure responding to request") + return } if result.ptrqr.hasNextLink() && result.ptrqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -153,6 +154,7 @@ func (client PolicyTrackedResourcesClient) listQueryResultsForManagementGroupNex result, err = client.ListQueryResultsForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "listQueryResultsForManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -213,6 +215,7 @@ func (client PolicyTrackedResourcesClient) ListQueryResultsForResource(ctx conte result.ptrqr, err = client.ListQueryResultsForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForResource", resp, "Failure responding to request") + return } if result.ptrqr.hasNextLink() && result.ptrqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -282,6 +285,7 @@ func (client PolicyTrackedResourcesClient) listQueryResultsForResourceNextResult result, err = client.ListQueryResultsForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "listQueryResultsForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -343,6 +347,7 @@ func (client PolicyTrackedResourcesClient) ListQueryResultsForResourceGroup(ctx result.ptrqr, err = client.ListQueryResultsForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForResourceGroup", resp, "Failure responding to request") + return } if result.ptrqr.hasNextLink() && result.ptrqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -413,6 +418,7 @@ func (client PolicyTrackedResourcesClient) listQueryResultsForResourceGroupNextR result, err = client.ListQueryResultsForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "listQueryResultsForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -473,6 +479,7 @@ func (client PolicyTrackedResourcesClient) ListQueryResultsForSubscription(ctx c result.ptrqr, err = client.ListQueryResultsForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForSubscription", resp, "Failure responding to request") + return } if result.ptrqr.hasNextLink() && result.ptrqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -542,6 +549,7 @@ func (client PolicyTrackedResourcesClient) listQueryResultsForSubscriptionNextRe result, err = client.ListQueryResultsForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "listQueryResultsForSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/remediations.go b/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/remediations.go index 78e7816a244d..cf0606618e9e 100644 --- a/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/remediations.go +++ b/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/remediations.go @@ -73,6 +73,7 @@ func (client RemediationsClient) CancelAtManagementGroup(ctx context.Context, ma result, err = client.CancelAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CancelAtManagementGroup", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client RemediationsClient) CancelAtResource(ctx context.Context, resourceI result, err = client.CancelAtResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CancelAtResource", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client RemediationsClient) CancelAtResourceGroup(ctx context.Context, subs result, err = client.CancelAtResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CancelAtResourceGroup", resp, "Failure responding to request") + return } return @@ -298,6 +301,7 @@ func (client RemediationsClient) CancelAtSubscription(ctx context.Context, subsc result, err = client.CancelAtSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CancelAtSubscription", resp, "Failure responding to request") + return } return @@ -373,6 +377,7 @@ func (client RemediationsClient) CreateOrUpdateAtManagementGroup(ctx context.Con result, err = client.CreateOrUpdateAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CreateOrUpdateAtManagementGroup", resp, "Failure responding to request") + return } return @@ -454,6 +459,7 @@ func (client RemediationsClient) CreateOrUpdateAtResource(ctx context.Context, r result, err = client.CreateOrUpdateAtResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CreateOrUpdateAtResource", resp, "Failure responding to request") + return } return @@ -535,6 +541,7 @@ func (client RemediationsClient) CreateOrUpdateAtResourceGroup(ctx context.Conte result, err = client.CreateOrUpdateAtResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CreateOrUpdateAtResourceGroup", resp, "Failure responding to request") + return } return @@ -616,6 +623,7 @@ func (client RemediationsClient) CreateOrUpdateAtSubscription(ctx context.Contex result, err = client.CreateOrUpdateAtSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CreateOrUpdateAtSubscription", resp, "Failure responding to request") + return } return @@ -695,6 +703,7 @@ func (client RemediationsClient) DeleteAtManagementGroup(ctx context.Context, ma result, err = client.DeleteAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "DeleteAtManagementGroup", resp, "Failure responding to request") + return } return @@ -770,6 +779,7 @@ func (client RemediationsClient) DeleteAtResource(ctx context.Context, resourceI result, err = client.DeleteAtResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "DeleteAtResource", resp, "Failure responding to request") + return } return @@ -845,6 +855,7 @@ func (client RemediationsClient) DeleteAtResourceGroup(ctx context.Context, subs result, err = client.DeleteAtResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "DeleteAtResourceGroup", resp, "Failure responding to request") + return } return @@ -920,6 +931,7 @@ func (client RemediationsClient) DeleteAtSubscription(ctx context.Context, subsc result, err = client.DeleteAtSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "DeleteAtSubscription", resp, "Failure responding to request") + return } return @@ -994,6 +1006,7 @@ func (client RemediationsClient) GetAtManagementGroup(ctx context.Context, manag result, err = client.GetAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "GetAtManagementGroup", resp, "Failure responding to request") + return } return @@ -1069,6 +1082,7 @@ func (client RemediationsClient) GetAtResource(ctx context.Context, resourceID s result, err = client.GetAtResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "GetAtResource", resp, "Failure responding to request") + return } return @@ -1144,6 +1158,7 @@ func (client RemediationsClient) GetAtResourceGroup(ctx context.Context, subscri result, err = client.GetAtResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "GetAtResourceGroup", resp, "Failure responding to request") + return } return @@ -1219,6 +1234,7 @@ func (client RemediationsClient) GetAtSubscription(ctx context.Context, subscrip result, err = client.GetAtSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "GetAtSubscription", resp, "Failure responding to request") + return } return @@ -1302,6 +1318,7 @@ func (client RemediationsClient) ListDeploymentsAtManagementGroup(ctx context.Co result.rdlr, err = client.ListDeploymentsAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListDeploymentsAtManagementGroup", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1369,6 +1386,7 @@ func (client RemediationsClient) listDeploymentsAtManagementGroupNextResults(ctx result, err = client.ListDeploymentsAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listDeploymentsAtManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1429,6 +1447,7 @@ func (client RemediationsClient) ListDeploymentsAtResource(ctx context.Context, result.rdlr, err = client.ListDeploymentsAtResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListDeploymentsAtResource", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1495,6 +1514,7 @@ func (client RemediationsClient) listDeploymentsAtResourceNextResults(ctx contex result, err = client.ListDeploymentsAtResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listDeploymentsAtResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -1556,6 +1576,7 @@ func (client RemediationsClient) ListDeploymentsAtResourceGroup(ctx context.Cont result.rdlr, err = client.ListDeploymentsAtResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListDeploymentsAtResourceGroup", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1623,6 +1644,7 @@ func (client RemediationsClient) listDeploymentsAtResourceGroupNextResults(ctx c result, err = client.ListDeploymentsAtResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listDeploymentsAtResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1683,6 +1705,7 @@ func (client RemediationsClient) ListDeploymentsAtSubscription(ctx context.Conte result.rdlr, err = client.ListDeploymentsAtSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListDeploymentsAtSubscription", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1749,6 +1772,7 @@ func (client RemediationsClient) listDeploymentsAtSubscriptionNextResults(ctx co result, err = client.ListDeploymentsAtSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listDeploymentsAtSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1809,6 +1833,7 @@ func (client RemediationsClient) ListForManagementGroup(ctx context.Context, man result.rlr, err = client.ListForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListForManagementGroup", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1878,6 +1903,7 @@ func (client RemediationsClient) listForManagementGroupNextResults(ctx context.C result, err = client.ListForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listForManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1938,6 +1964,7 @@ func (client RemediationsClient) ListForResource(ctx context.Context, resourceID result.rlr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListForResource", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2006,6 +2033,7 @@ func (client RemediationsClient) listForResourceNextResults(ctx context.Context, result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -2067,6 +2095,7 @@ func (client RemediationsClient) ListForResourceGroup(ctx context.Context, subsc result.rlr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2136,6 +2165,7 @@ func (client RemediationsClient) listForResourceGroupNextResults(ctx context.Con result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -2196,6 +2226,7 @@ func (client RemediationsClient) ListForSubscription(ctx context.Context, subscr result.rlr, err = client.ListForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListForSubscription", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2264,6 +2295,7 @@ func (client RemediationsClient) listForSubscriptionNextResults(ctx context.Cont result, err = client.ListForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listForSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/operations.go b/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/operations.go index b44b34e2e8d2..7a1267242810 100644 --- a/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/operations.go +++ b/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/policyevents.go b/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/policyevents.go index e6e396a1d869..f75418e809c3 100644 --- a/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/policyevents.go +++ b/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/policyevents.go @@ -94,6 +94,7 @@ func (client PolicyEventsClient) ListQueryResultsForManagementGroup(ctx context. result.peqr, err = client.ListQueryResultsForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForManagementGroup", resp, "Failure responding to request") + return } if result.peqr.hasNextLink() && result.peqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -182,6 +183,7 @@ func (client PolicyEventsClient) listQueryResultsForManagementGroupNextResults(c result, err = client.ListQueryResultsForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "listQueryResultsForManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -254,6 +256,7 @@ func (client PolicyEventsClient) ListQueryResultsForPolicyDefinition(ctx context result.peqr, err = client.ListQueryResultsForPolicyDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForPolicyDefinition", resp, "Failure responding to request") + return } if result.peqr.hasNextLink() && result.peqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -343,6 +346,7 @@ func (client PolicyEventsClient) listQueryResultsForPolicyDefinitionNextResults( result, err = client.ListQueryResultsForPolicyDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "listQueryResultsForPolicyDefinitionNextResults", resp, "Failure responding to next results request") + return } return } @@ -415,6 +419,7 @@ func (client PolicyEventsClient) ListQueryResultsForPolicySetDefinition(ctx cont result.peqr, err = client.ListQueryResultsForPolicySetDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForPolicySetDefinition", resp, "Failure responding to request") + return } if result.peqr.hasNextLink() && result.peqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -504,6 +509,7 @@ func (client PolicyEventsClient) listQueryResultsForPolicySetDefinitionNextResul result, err = client.ListQueryResultsForPolicySetDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "listQueryResultsForPolicySetDefinitionNextResults", resp, "Failure responding to next results request") + return } return } @@ -576,6 +582,7 @@ func (client PolicyEventsClient) ListQueryResultsForResource(ctx context.Context result.peqr, err = client.ListQueryResultsForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForResource", resp, "Failure responding to request") + return } if result.peqr.hasNextLink() && result.peqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -666,6 +673,7 @@ func (client PolicyEventsClient) listQueryResultsForResourceNextResults(ctx cont result, err = client.ListQueryResultsForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "listQueryResultsForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -738,6 +746,7 @@ func (client PolicyEventsClient) ListQueryResultsForResourceGroup(ctx context.Co result.peqr, err = client.ListQueryResultsForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForResourceGroup", resp, "Failure responding to request") + return } if result.peqr.hasNextLink() && result.peqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -826,6 +835,7 @@ func (client PolicyEventsClient) listQueryResultsForResourceGroupNextResults(ctx result, err = client.ListQueryResultsForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "listQueryResultsForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -900,6 +910,7 @@ func (client PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssi result.peqr, err = client.ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForResourceGroupLevelPolicyAssignment", resp, "Failure responding to request") + return } if result.peqr.hasNextLink() && result.peqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -990,6 +1001,7 @@ func (client PolicyEventsClient) listQueryResultsForResourceGroupLevelPolicyAssi result, err = client.ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "listQueryResultsForResourceGroupLevelPolicyAssignmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -1061,6 +1073,7 @@ func (client PolicyEventsClient) ListQueryResultsForSubscription(ctx context.Con result.peqr, err = client.ListQueryResultsForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForSubscription", resp, "Failure responding to request") + return } if result.peqr.hasNextLink() && result.peqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1148,6 +1161,7 @@ func (client PolicyEventsClient) listQueryResultsForSubscriptionNextResults(ctx result, err = client.ListQueryResultsForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "listQueryResultsForSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1221,6 +1235,7 @@ func (client PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssig result.peqr, err = client.ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForSubscriptionLevelPolicyAssignment", resp, "Failure responding to request") + return } if result.peqr.hasNextLink() && result.peqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1310,6 +1325,7 @@ func (client PolicyEventsClient) listQueryResultsForSubscriptionLevelPolicyAssig result, err = client.ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "listQueryResultsForSubscriptionLevelPolicyAssignmentNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/policymetadata.go b/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/policymetadata.go index 6f4e2beed1ee..973f91fe9819 100644 --- a/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/policymetadata.go +++ b/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/policymetadata.go @@ -72,6 +72,7 @@ func (client PolicyMetadataClient) GetResource(ctx context.Context, resourceName result, err = client.GetResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyMetadataClient", "GetResource", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client PolicyMetadataClient) List(ctx context.Context, top *int32) (result result.pmc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyMetadataClient", "List", resp, "Failure responding to request") + return } if result.pmc.hasNextLink() && result.pmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -213,6 +215,7 @@ func (client PolicyMetadataClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyMetadataClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/policyrestrictions.go b/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/policyrestrictions.go index f870ddc6cde8..69f071ad5346 100644 --- a/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/policyrestrictions.go +++ b/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/policyrestrictions.go @@ -89,6 +89,7 @@ func (client PolicyRestrictionsClient) CheckAtResourceGroupScope(ctx context.Con result, err = client.CheckAtResourceGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyRestrictionsClient", "CheckAtResourceGroupScope", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client PolicyRestrictionsClient) CheckAtSubscriptionScope(ctx context.Cont result, err = client.CheckAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyRestrictionsClient", "CheckAtSubscriptionScope", resp, "Failure responding to request") + return } return diff --git a/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/policystates.go b/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/policystates.go index a485c66f4dda..cf6787bebe0a 100644 --- a/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/policystates.go +++ b/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/policystates.go @@ -96,6 +96,7 @@ func (client PolicyStatesClient) ListQueryResultsForManagementGroup(ctx context. result.psqr, err = client.ListQueryResultsForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForManagementGroup", resp, "Failure responding to request") + return } if result.psqr.hasNextLink() && result.psqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -184,6 +185,7 @@ func (client PolicyStatesClient) listQueryResultsForManagementGroupNextResults(c result, err = client.ListQueryResultsForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "listQueryResultsForManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -258,6 +260,7 @@ func (client PolicyStatesClient) ListQueryResultsForPolicyDefinition(ctx context result.psqr, err = client.ListQueryResultsForPolicyDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForPolicyDefinition", resp, "Failure responding to request") + return } if result.psqr.hasNextLink() && result.psqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -347,6 +350,7 @@ func (client PolicyStatesClient) listQueryResultsForPolicyDefinitionNextResults( result, err = client.ListQueryResultsForPolicyDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "listQueryResultsForPolicyDefinitionNextResults", resp, "Failure responding to next results request") + return } return } @@ -421,6 +425,7 @@ func (client PolicyStatesClient) ListQueryResultsForPolicySetDefinition(ctx cont result.psqr, err = client.ListQueryResultsForPolicySetDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForPolicySetDefinition", resp, "Failure responding to request") + return } if result.psqr.hasNextLink() && result.psqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -510,6 +515,7 @@ func (client PolicyStatesClient) listQueryResultsForPolicySetDefinitionNextResul result, err = client.ListQueryResultsForPolicySetDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "listQueryResultsForPolicySetDefinitionNextResults", resp, "Failure responding to next results request") + return } return } @@ -584,6 +590,7 @@ func (client PolicyStatesClient) ListQueryResultsForResource(ctx context.Context result.psqr, err = client.ListQueryResultsForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForResource", resp, "Failure responding to request") + return } if result.psqr.hasNextLink() && result.psqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -674,6 +681,7 @@ func (client PolicyStatesClient) listQueryResultsForResourceNextResults(ctx cont result, err = client.ListQueryResultsForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "listQueryResultsForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -748,6 +756,7 @@ func (client PolicyStatesClient) ListQueryResultsForResourceGroup(ctx context.Co result.psqr, err = client.ListQueryResultsForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForResourceGroup", resp, "Failure responding to request") + return } if result.psqr.hasNextLink() && result.psqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -836,6 +845,7 @@ func (client PolicyStatesClient) listQueryResultsForResourceGroupNextResults(ctx result, err = client.ListQueryResultsForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "listQueryResultsForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -912,6 +922,7 @@ func (client PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssi result.psqr, err = client.ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForResourceGroupLevelPolicyAssignment", resp, "Failure responding to request") + return } if result.psqr.hasNextLink() && result.psqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1002,6 +1013,7 @@ func (client PolicyStatesClient) listQueryResultsForResourceGroupLevelPolicyAssi result, err = client.ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "listQueryResultsForResourceGroupLevelPolicyAssignmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -1075,6 +1087,7 @@ func (client PolicyStatesClient) ListQueryResultsForSubscription(ctx context.Con result.psqr, err = client.ListQueryResultsForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForSubscription", resp, "Failure responding to request") + return } if result.psqr.hasNextLink() && result.psqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1162,6 +1175,7 @@ func (client PolicyStatesClient) listQueryResultsForSubscriptionNextResults(ctx result, err = client.ListQueryResultsForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "listQueryResultsForSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1237,6 +1251,7 @@ func (client PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssig result.psqr, err = client.ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForSubscriptionLevelPolicyAssignment", resp, "Failure responding to request") + return } if result.psqr.hasNextLink() && result.psqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1326,6 +1341,7 @@ func (client PolicyStatesClient) listQueryResultsForSubscriptionLevelPolicyAssig result, err = client.ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "listQueryResultsForSubscriptionLevelPolicyAssignmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -1389,6 +1405,7 @@ func (client PolicyStatesClient) SummarizeForManagementGroup(ctx context.Context result, err = client.SummarizeForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForManagementGroup", resp, "Failure responding to request") + return } return @@ -1489,6 +1506,7 @@ func (client PolicyStatesClient) SummarizeForPolicyDefinition(ctx context.Contex result, err = client.SummarizeForPolicyDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForPolicyDefinition", resp, "Failure responding to request") + return } return @@ -1590,6 +1608,7 @@ func (client PolicyStatesClient) SummarizeForPolicySetDefinition(ctx context.Con result, err = client.SummarizeForPolicySetDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForPolicySetDefinition", resp, "Failure responding to request") + return } return @@ -1690,6 +1709,7 @@ func (client PolicyStatesClient) SummarizeForResource(ctx context.Context, resou result, err = client.SummarizeForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForResource", resp, "Failure responding to request") + return } return @@ -1789,6 +1809,7 @@ func (client PolicyStatesClient) SummarizeForResourceGroup(ctx context.Context, result, err = client.SummarizeForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForResourceGroup", resp, "Failure responding to request") + return } return @@ -1891,6 +1912,7 @@ func (client PolicyStatesClient) SummarizeForResourceGroupLevelPolicyAssignment( result, err = client.SummarizeForResourceGroupLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForResourceGroupLevelPolicyAssignment", resp, "Failure responding to request") + return } return @@ -1992,6 +2014,7 @@ func (client PolicyStatesClient) SummarizeForSubscription(ctx context.Context, s result, err = client.SummarizeForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForSubscription", resp, "Failure responding to request") + return } return @@ -2091,6 +2114,7 @@ func (client PolicyStatesClient) SummarizeForSubscriptionLevelPolicyAssignment(c result, err = client.SummarizeForSubscriptionLevelPolicyAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForSubscriptionLevelPolicyAssignment", resp, "Failure responding to request") + return } return diff --git a/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/policytrackedresources.go b/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/policytrackedresources.go index 87a3850bcd82..a2799c705822 100644 --- a/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/policytrackedresources.go +++ b/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/policytrackedresources.go @@ -83,6 +83,7 @@ func (client PolicyTrackedResourcesClient) ListQueryResultsForManagementGroup(ct result.ptrqr, err = client.ListQueryResultsForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForManagementGroup", resp, "Failure responding to request") + return } if result.ptrqr.hasNextLink() && result.ptrqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -153,6 +154,7 @@ func (client PolicyTrackedResourcesClient) listQueryResultsForManagementGroupNex result, err = client.ListQueryResultsForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "listQueryResultsForManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -213,6 +215,7 @@ func (client PolicyTrackedResourcesClient) ListQueryResultsForResource(ctx conte result.ptrqr, err = client.ListQueryResultsForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForResource", resp, "Failure responding to request") + return } if result.ptrqr.hasNextLink() && result.ptrqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -282,6 +285,7 @@ func (client PolicyTrackedResourcesClient) listQueryResultsForResourceNextResult result, err = client.ListQueryResultsForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "listQueryResultsForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -343,6 +347,7 @@ func (client PolicyTrackedResourcesClient) ListQueryResultsForResourceGroup(ctx result.ptrqr, err = client.ListQueryResultsForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForResourceGroup", resp, "Failure responding to request") + return } if result.ptrqr.hasNextLink() && result.ptrqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -413,6 +418,7 @@ func (client PolicyTrackedResourcesClient) listQueryResultsForResourceGroupNextR result, err = client.ListQueryResultsForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "listQueryResultsForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -473,6 +479,7 @@ func (client PolicyTrackedResourcesClient) ListQueryResultsForSubscription(ctx c result.ptrqr, err = client.ListQueryResultsForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForSubscription", resp, "Failure responding to request") + return } if result.ptrqr.hasNextLink() && result.ptrqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -542,6 +549,7 @@ func (client PolicyTrackedResourcesClient) listQueryResultsForSubscriptionNextRe result, err = client.ListQueryResultsForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "listQueryResultsForSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/remediations.go b/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/remediations.go index d8d0d016374b..8fa0ffb5747d 100644 --- a/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/remediations.go +++ b/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/remediations.go @@ -73,6 +73,7 @@ func (client RemediationsClient) CancelAtManagementGroup(ctx context.Context, ma result, err = client.CancelAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CancelAtManagementGroup", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client RemediationsClient) CancelAtResource(ctx context.Context, resourceI result, err = client.CancelAtResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CancelAtResource", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client RemediationsClient) CancelAtResourceGroup(ctx context.Context, subs result, err = client.CancelAtResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CancelAtResourceGroup", resp, "Failure responding to request") + return } return @@ -298,6 +301,7 @@ func (client RemediationsClient) CancelAtSubscription(ctx context.Context, subsc result, err = client.CancelAtSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CancelAtSubscription", resp, "Failure responding to request") + return } return @@ -373,6 +377,7 @@ func (client RemediationsClient) CreateOrUpdateAtManagementGroup(ctx context.Con result, err = client.CreateOrUpdateAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CreateOrUpdateAtManagementGroup", resp, "Failure responding to request") + return } return @@ -454,6 +459,7 @@ func (client RemediationsClient) CreateOrUpdateAtResource(ctx context.Context, r result, err = client.CreateOrUpdateAtResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CreateOrUpdateAtResource", resp, "Failure responding to request") + return } return @@ -535,6 +541,7 @@ func (client RemediationsClient) CreateOrUpdateAtResourceGroup(ctx context.Conte result, err = client.CreateOrUpdateAtResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CreateOrUpdateAtResourceGroup", resp, "Failure responding to request") + return } return @@ -616,6 +623,7 @@ func (client RemediationsClient) CreateOrUpdateAtSubscription(ctx context.Contex result, err = client.CreateOrUpdateAtSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CreateOrUpdateAtSubscription", resp, "Failure responding to request") + return } return @@ -695,6 +703,7 @@ func (client RemediationsClient) DeleteAtManagementGroup(ctx context.Context, ma result, err = client.DeleteAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "DeleteAtManagementGroup", resp, "Failure responding to request") + return } return @@ -770,6 +779,7 @@ func (client RemediationsClient) DeleteAtResource(ctx context.Context, resourceI result, err = client.DeleteAtResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "DeleteAtResource", resp, "Failure responding to request") + return } return @@ -845,6 +855,7 @@ func (client RemediationsClient) DeleteAtResourceGroup(ctx context.Context, subs result, err = client.DeleteAtResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "DeleteAtResourceGroup", resp, "Failure responding to request") + return } return @@ -920,6 +931,7 @@ func (client RemediationsClient) DeleteAtSubscription(ctx context.Context, subsc result, err = client.DeleteAtSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "DeleteAtSubscription", resp, "Failure responding to request") + return } return @@ -994,6 +1006,7 @@ func (client RemediationsClient) GetAtManagementGroup(ctx context.Context, manag result, err = client.GetAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "GetAtManagementGroup", resp, "Failure responding to request") + return } return @@ -1069,6 +1082,7 @@ func (client RemediationsClient) GetAtResource(ctx context.Context, resourceID s result, err = client.GetAtResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "GetAtResource", resp, "Failure responding to request") + return } return @@ -1144,6 +1158,7 @@ func (client RemediationsClient) GetAtResourceGroup(ctx context.Context, subscri result, err = client.GetAtResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "GetAtResourceGroup", resp, "Failure responding to request") + return } return @@ -1219,6 +1234,7 @@ func (client RemediationsClient) GetAtSubscription(ctx context.Context, subscrip result, err = client.GetAtSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "GetAtSubscription", resp, "Failure responding to request") + return } return @@ -1302,6 +1318,7 @@ func (client RemediationsClient) ListDeploymentsAtManagementGroup(ctx context.Co result.rdlr, err = client.ListDeploymentsAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListDeploymentsAtManagementGroup", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1369,6 +1386,7 @@ func (client RemediationsClient) listDeploymentsAtManagementGroupNextResults(ctx result, err = client.ListDeploymentsAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listDeploymentsAtManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1429,6 +1447,7 @@ func (client RemediationsClient) ListDeploymentsAtResource(ctx context.Context, result.rdlr, err = client.ListDeploymentsAtResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListDeploymentsAtResource", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1495,6 +1514,7 @@ func (client RemediationsClient) listDeploymentsAtResourceNextResults(ctx contex result, err = client.ListDeploymentsAtResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listDeploymentsAtResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -1556,6 +1576,7 @@ func (client RemediationsClient) ListDeploymentsAtResourceGroup(ctx context.Cont result.rdlr, err = client.ListDeploymentsAtResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListDeploymentsAtResourceGroup", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1623,6 +1644,7 @@ func (client RemediationsClient) listDeploymentsAtResourceGroupNextResults(ctx c result, err = client.ListDeploymentsAtResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listDeploymentsAtResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1683,6 +1705,7 @@ func (client RemediationsClient) ListDeploymentsAtSubscription(ctx context.Conte result.rdlr, err = client.ListDeploymentsAtSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListDeploymentsAtSubscription", resp, "Failure responding to request") + return } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1749,6 +1772,7 @@ func (client RemediationsClient) listDeploymentsAtSubscriptionNextResults(ctx co result, err = client.ListDeploymentsAtSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listDeploymentsAtSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1809,6 +1833,7 @@ func (client RemediationsClient) ListForManagementGroup(ctx context.Context, man result.rlr, err = client.ListForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListForManagementGroup", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1878,6 +1903,7 @@ func (client RemediationsClient) listForManagementGroupNextResults(ctx context.C result, err = client.ListForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listForManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1938,6 +1964,7 @@ func (client RemediationsClient) ListForResource(ctx context.Context, resourceID result.rlr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListForResource", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2006,6 +2033,7 @@ func (client RemediationsClient) listForResourceNextResults(ctx context.Context, result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -2067,6 +2095,7 @@ func (client RemediationsClient) ListForResourceGroup(ctx context.Context, subsc result.rlr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2136,6 +2165,7 @@ func (client RemediationsClient) listForResourceGroupNextResults(ctx context.Con result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -2196,6 +2226,7 @@ func (client RemediationsClient) ListForSubscription(ctx context.Context, subscr result.rlr, err = client.ListForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListForSubscription", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2264,6 +2295,7 @@ func (client RemediationsClient) listForSubscriptionNextResults(ctx context.Cont result, err = client.ListForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listForSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/portal/mgmt/2015-08-01-preview/portal/dashboards.go b/services/preview/portal/mgmt/2015-08-01-preview/portal/dashboards.go index a64f54a33569..938d63379c03 100644 --- a/services/preview/portal/mgmt/2015-08-01-preview/portal/dashboards.go +++ b/services/preview/portal/mgmt/2015-08-01-preview/portal/dashboards.go @@ -83,6 +83,7 @@ func (client DashboardsClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.DashboardsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client DashboardsClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.DashboardsClient", "Delete", resp, "Failure responding to request") + return } return @@ -251,6 +253,7 @@ func (client DashboardsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.DashboardsClient", "Get", resp, "Failure responding to request") + return } return @@ -326,6 +329,7 @@ func (client DashboardsClient) ListByResourceGroup(ctx context.Context, resource result.dlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.DashboardsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -389,6 +393,7 @@ func (client DashboardsClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.DashboardsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -438,6 +443,7 @@ func (client DashboardsClient) ListBySubscription(ctx context.Context) (result D result.dlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.DashboardsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -500,6 +506,7 @@ func (client DashboardsClient) listBySubscriptionNextResults(ctx context.Context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.DashboardsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -559,6 +566,7 @@ func (client DashboardsClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.DashboardsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/portal/mgmt/2015-08-01-preview/portal/operations.go b/services/preview/portal/mgmt/2015-08-01-preview/portal/operations.go index 23e1f907e1f0..89f5fc2f949a 100644 --- a/services/preview/portal/mgmt/2015-08-01-preview/portal/operations.go +++ b/services/preview/portal/mgmt/2015-08-01-preview/portal/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result ResourceProvide result.rpol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.OperationsClient", "List", resp, "Failure responding to request") + return } if result.rpol.hasNextLink() && result.rpol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/portal/mgmt/2018-10-01-preview/portal/dashboards.go b/services/preview/portal/mgmt/2018-10-01-preview/portal/dashboards.go index 4edcbd8e6e9d..e02db74898bb 100644 --- a/services/preview/portal/mgmt/2018-10-01-preview/portal/dashboards.go +++ b/services/preview/portal/mgmt/2018-10-01-preview/portal/dashboards.go @@ -83,6 +83,7 @@ func (client DashboardsClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.DashboardsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client DashboardsClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.DashboardsClient", "Delete", resp, "Failure responding to request") + return } return @@ -251,6 +253,7 @@ func (client DashboardsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.DashboardsClient", "Get", resp, "Failure responding to request") + return } return @@ -326,6 +329,7 @@ func (client DashboardsClient) ListByResourceGroup(ctx context.Context, resource result.dlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.DashboardsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -389,6 +393,7 @@ func (client DashboardsClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.DashboardsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -438,6 +443,7 @@ func (client DashboardsClient) ListBySubscription(ctx context.Context) (result D result.dlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.DashboardsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -500,6 +506,7 @@ func (client DashboardsClient) listBySubscriptionNextResults(ctx context.Context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.DashboardsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -559,6 +566,7 @@ func (client DashboardsClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.DashboardsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/portal/mgmt/2018-10-01-preview/portal/operations.go b/services/preview/portal/mgmt/2018-10-01-preview/portal/operations.go index 0e25a404b993..d87b29e948fc 100644 --- a/services/preview/portal/mgmt/2018-10-01-preview/portal/operations.go +++ b/services/preview/portal/mgmt/2018-10-01-preview/portal/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result ResourceProvide result.rpol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.OperationsClient", "List", resp, "Failure responding to request") + return } if result.rpol.hasNextLink() && result.rpol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/portal/mgmt/2019-01-01-preview/portal/dashboards.go b/services/preview/portal/mgmt/2019-01-01-preview/portal/dashboards.go index ffb7fdead0ec..5bccca0fa026 100644 --- a/services/preview/portal/mgmt/2019-01-01-preview/portal/dashboards.go +++ b/services/preview/portal/mgmt/2019-01-01-preview/portal/dashboards.go @@ -83,6 +83,7 @@ func (client DashboardsClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.DashboardsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client DashboardsClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.DashboardsClient", "Delete", resp, "Failure responding to request") + return } return @@ -251,6 +253,7 @@ func (client DashboardsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.DashboardsClient", "Get", resp, "Failure responding to request") + return } return @@ -326,6 +329,7 @@ func (client DashboardsClient) ListByResourceGroup(ctx context.Context, resource result.dlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.DashboardsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -389,6 +393,7 @@ func (client DashboardsClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.DashboardsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -438,6 +443,7 @@ func (client DashboardsClient) ListBySubscription(ctx context.Context) (result D result.dlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.DashboardsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -500,6 +506,7 @@ func (client DashboardsClient) listBySubscriptionNextResults(ctx context.Context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.DashboardsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -559,6 +566,7 @@ func (client DashboardsClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.DashboardsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/portal/mgmt/2019-01-01-preview/portal/operations.go b/services/preview/portal/mgmt/2019-01-01-preview/portal/operations.go index 253bacf5c5d7..991bc49a2840 100644 --- a/services/preview/portal/mgmt/2019-01-01-preview/portal/operations.go +++ b/services/preview/portal/mgmt/2019-01-01-preview/portal/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result ResourceProvide result.rpol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.OperationsClient", "List", resp, "Failure responding to request") + return } if result.rpol.hasNextLink() && result.rpol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/portal/mgmt/2019-01-01-preview/portal/tenantconfigurations.go b/services/preview/portal/mgmt/2019-01-01-preview/portal/tenantconfigurations.go index 7c1ad8d253be..bf9fa7e5b735 100644 --- a/services/preview/portal/mgmt/2019-01-01-preview/portal/tenantconfigurations.go +++ b/services/preview/portal/mgmt/2019-01-01-preview/portal/tenantconfigurations.go @@ -73,6 +73,7 @@ func (client TenantConfigurationsClient) Create(ctx context.Context, tenantConfi result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.TenantConfigurationsClient", "Create", resp, "Failure responding to request") + return } return @@ -145,6 +146,7 @@ func (client TenantConfigurationsClient) Delete(ctx context.Context) (result aut result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.TenantConfigurationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -214,6 +216,7 @@ func (client TenantConfigurationsClient) Get(ctx context.Context) (result Config result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.TenantConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -284,6 +287,7 @@ func (client TenantConfigurationsClient) List(ctx context.Context) (result Confi result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "portal.TenantConfigurationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/checknameavailability.go b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/checknameavailability.go index d6227b13a635..df67a2f5b03a 100644 --- a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/checknameavailability.go +++ b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/checknameavailability.go @@ -81,6 +81,7 @@ func (client CheckNameAvailabilityClient) Execute(ctx context.Context, nameAvail result, err = client.ExecuteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.CheckNameAvailabilityClient", "Execute", resp, "Failure responding to request") + return } return diff --git a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/configurations.go b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/configurations.go index 15ce9eb9e0bc..8b2189a7347d 100644 --- a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/configurations.go +++ b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/configurations.go @@ -157,6 +157,7 @@ func (client ConfigurationsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -234,6 +235,7 @@ func (client ConfigurationsClient) ListByServer(ctx context.Context, resourceGro result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ConfigurationsClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/databases.go b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/databases.go index 08608f37bed9..51b64089aa95 100644 --- a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/databases.go +++ b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/databases.go @@ -234,6 +234,7 @@ func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.DatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client DatabasesClient) ListByServer(ctx context.Context, resourceGroupNam result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.DatabasesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/firewallrules.go b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/firewallrules.go index 1b5c8c90dc14..1f88aaf9594d 100644 --- a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/firewallrules.go +++ b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/firewallrules.go @@ -246,6 +246,7 @@ func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.FirewallRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +324,7 @@ func (client FirewallRulesClient) ListByServer(ctx context.Context, resourceGrou result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.FirewallRulesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/locationbasedperformancetier.go b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/locationbasedperformancetier.go index 00669a336b17..e1d0a878787d 100644 --- a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/locationbasedperformancetier.go +++ b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/locationbasedperformancetier.go @@ -74,6 +74,7 @@ func (client LocationBasedPerformanceTierClient) List(ctx context.Context, locat result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.LocationBasedPerformanceTierClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/logfiles.go b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/logfiles.go index 1ea120e88dfd..6251cf12a5d8 100644 --- a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/logfiles.go +++ b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/logfiles.go @@ -75,6 +75,7 @@ func (client LogFilesClient) ListByServer(ctx context.Context, resourceGroupName result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.LogFilesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/operations.go b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/operations.go index 71c06af258aa..a3580a3e7b5e 100644 --- a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/operations.go +++ b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/replicas.go b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/replicas.go index f9b0a258bc5b..99bc38b2e931 100644 --- a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/replicas.go +++ b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/replicas.go @@ -75,6 +75,7 @@ func (client ReplicasClient) ListByServer(ctx context.Context, resourceGroupName result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ReplicasClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/serveradministrators.go b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/serveradministrators.go index 1cd319bfb4cc..6036df26518f 100644 --- a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/serveradministrators.go +++ b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/serveradministrators.go @@ -243,6 +243,7 @@ func (client ServerAdministratorsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ServerAdministratorsClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +320,7 @@ func (client ServerAdministratorsClient) List(ctx context.Context, resourceGroup result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ServerAdministratorsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/servers.go b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/servers.go index cc576ad57745..be77454cc952 100644 --- a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/servers.go +++ b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/servers.go @@ -242,6 +242,7 @@ func (client ServersClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ServersClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client ServersClient) List(ctx context.Context) (result ServerListResult, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ServersClient", "List", resp, "Failure responding to request") + return } return @@ -387,6 +389,7 @@ func (client ServersClient) ListByResourceGroup(ctx context.Context, resourceGro result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ServersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return diff --git a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/serversecurityalertpolicies.go b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/serversecurityalertpolicies.go index 067bd6d29a8c..d0ab03333daa 100644 --- a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/serversecurityalertpolicies.go +++ b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/serversecurityalertpolicies.go @@ -156,6 +156,7 @@ func (client ServerSecurityAlertPoliciesClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ServerSecurityAlertPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/virtualnetworkrules.go b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/virtualnetworkrules.go index 341ca6330c3e..85e0807b2ec5 100644 --- a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/virtualnetworkrules.go +++ b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/virtualnetworkrules.go @@ -243,6 +243,7 @@ func (client VirtualNetworkRulesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.VirtualNetworkRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client VirtualNetworkRulesClient) ListByServer(ctx context.Context, resour result.vnrlr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.VirtualNetworkRulesClient", "ListByServer", resp, "Failure responding to request") + return } if result.vnrlr.hasNextLink() && result.vnrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client VirtualNetworkRulesClient) listByServerNextResults(ctx context.Cont result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.VirtualNetworkRulesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/checknameavailability.go b/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/checknameavailability.go index 66157b08de49..39ff08d5adb9 100644 --- a/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/checknameavailability.go +++ b/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/checknameavailability.go @@ -83,6 +83,7 @@ func (client CheckNameAvailabilityClient) Execute(ctx context.Context, nameAvail result, err = client.ExecuteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.CheckNameAvailabilityClient", "Execute", resp, "Failure responding to request") + return } return diff --git a/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/configurations.go b/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/configurations.go index e27607b14815..30b763ebc1d8 100644 --- a/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/configurations.go +++ b/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/configurations.go @@ -86,6 +86,7 @@ func (client ConfigurationsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.ConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client ConfigurationsClient) ListByServer(ctx context.Context, resourceGro result.clr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.ConfigurationsClient", "ListByServer", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -237,6 +239,7 @@ func (client ConfigurationsClient) listByServerNextResults(ctx context.Context, result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.ConfigurationsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/firewallrules.go b/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/firewallrules.go index 6d5967f75c23..856fa013407a 100644 --- a/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/firewallrules.go +++ b/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/firewallrules.go @@ -269,6 +269,7 @@ func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.FirewallRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -356,6 +357,7 @@ func (client FirewallRulesClient) ListByServer(ctx context.Context, resourceGrou result.frlr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.FirewallRulesClient", "ListByServer", resp, "Failure responding to request") + return } if result.frlr.hasNextLink() && result.frlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -420,6 +422,7 @@ func (client FirewallRulesClient) listByServerNextResults(ctx context.Context, l result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.FirewallRulesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/locationbasedcapabilities.go b/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/locationbasedcapabilities.go index cb5446171060..dcac00bc97e7 100644 --- a/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/locationbasedcapabilities.go +++ b/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/locationbasedcapabilities.go @@ -82,6 +82,7 @@ func (client LocationBasedCapabilitiesClient) Execute(ctx context.Context, locat result.clr, err = client.ExecuteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.LocationBasedCapabilitiesClient", "Execute", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -145,6 +146,7 @@ func (client LocationBasedCapabilitiesClient) executeNextResults(ctx context.Con result, err = client.ExecuteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.LocationBasedCapabilitiesClient", "executeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/operations.go b/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/operations.go index 6d4ce641890a..8b015b62167d 100644 --- a/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/operations.go +++ b/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/servers.go b/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/servers.go index f9a70f6f50f9..41e00059e0c8 100644 --- a/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/servers.go +++ b/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/servers.go @@ -260,6 +260,7 @@ func (client ServersClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.ServersClient", "Get", resp, "Failure responding to request") + return } return @@ -339,6 +340,7 @@ func (client ServersClient) List(ctx context.Context) (result ServerListResultPa result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.ServersClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -401,6 +403,7 @@ func (client ServersClient) listNextResults(ctx context.Context, lastResults Ser result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.ServersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -462,6 +465,7 @@ func (client ServersClient) ListByResourceGroup(ctx context.Context, resourceGro result.slr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.ServersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -525,6 +529,7 @@ func (client ServersClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.ServersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/virtualnetworksubnetusage.go b/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/virtualnetworksubnetusage.go index 350f855b9ede..3ba20e7a2b8e 100644 --- a/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/virtualnetworksubnetusage.go +++ b/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/virtualnetworksubnetusage.go @@ -82,6 +82,7 @@ func (client VirtualNetworkSubnetUsageClient) Execute(ctx context.Context, locat result, err = client.ExecuteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.VirtualNetworkSubnetUsageClient", "Execute", resp, "Failure responding to request") + return } return diff --git a/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/checknameavailability.go b/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/checknameavailability.go index 66157b08de49..39ff08d5adb9 100644 --- a/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/checknameavailability.go +++ b/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/checknameavailability.go @@ -83,6 +83,7 @@ func (client CheckNameAvailabilityClient) Execute(ctx context.Context, nameAvail result, err = client.ExecuteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.CheckNameAvailabilityClient", "Execute", resp, "Failure responding to request") + return } return diff --git a/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/configurations.go b/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/configurations.go index e27607b14815..30b763ebc1d8 100644 --- a/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/configurations.go +++ b/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/configurations.go @@ -86,6 +86,7 @@ func (client ConfigurationsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.ConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client ConfigurationsClient) ListByServer(ctx context.Context, resourceGro result.clr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.ConfigurationsClient", "ListByServer", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -237,6 +239,7 @@ func (client ConfigurationsClient) listByServerNextResults(ctx context.Context, result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.ConfigurationsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/databases.go b/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/databases.go index 6f30e3794574..8c01d1b46f00 100644 --- a/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/databases.go +++ b/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/databases.go @@ -262,6 +262,7 @@ func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.DatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +350,7 @@ func (client DatabasesClient) ListByServer(ctx context.Context, resourceGroupNam result.dlr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.DatabasesClient", "ListByServer", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -413,6 +415,7 @@ func (client DatabasesClient) listByServerNextResults(ctx context.Context, lastR result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.DatabasesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/firewallrules.go b/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/firewallrules.go index 6d5967f75c23..856fa013407a 100644 --- a/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/firewallrules.go +++ b/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/firewallrules.go @@ -269,6 +269,7 @@ func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.FirewallRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -356,6 +357,7 @@ func (client FirewallRulesClient) ListByServer(ctx context.Context, resourceGrou result.frlr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.FirewallRulesClient", "ListByServer", resp, "Failure responding to request") + return } if result.frlr.hasNextLink() && result.frlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -420,6 +422,7 @@ func (client FirewallRulesClient) listByServerNextResults(ctx context.Context, l result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.FirewallRulesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/locationbasedcapabilities.go b/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/locationbasedcapabilities.go index cb5446171060..dcac00bc97e7 100644 --- a/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/locationbasedcapabilities.go +++ b/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/locationbasedcapabilities.go @@ -82,6 +82,7 @@ func (client LocationBasedCapabilitiesClient) Execute(ctx context.Context, locat result.clr, err = client.ExecuteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.LocationBasedCapabilitiesClient", "Execute", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -145,6 +146,7 @@ func (client LocationBasedCapabilitiesClient) executeNextResults(ctx context.Con result, err = client.ExecuteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.LocationBasedCapabilitiesClient", "executeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/operations.go b/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/operations.go index 6d4ce641890a..8b015b62167d 100644 --- a/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/operations.go +++ b/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/servers.go b/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/servers.go index f9a70f6f50f9..41e00059e0c8 100644 --- a/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/servers.go +++ b/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/servers.go @@ -260,6 +260,7 @@ func (client ServersClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.ServersClient", "Get", resp, "Failure responding to request") + return } return @@ -339,6 +340,7 @@ func (client ServersClient) List(ctx context.Context) (result ServerListResultPa result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.ServersClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -401,6 +403,7 @@ func (client ServersClient) listNextResults(ctx context.Context, lastResults Ser result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.ServersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -462,6 +465,7 @@ func (client ServersClient) ListByResourceGroup(ctx context.Context, resourceGro result.slr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.ServersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -525,6 +529,7 @@ func (client ServersClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.ServersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/virtualnetworksubnetusage.go b/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/virtualnetworksubnetusage.go index 350f855b9ede..3ba20e7a2b8e 100644 --- a/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/virtualnetworksubnetusage.go +++ b/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/virtualnetworksubnetusage.go @@ -82,6 +82,7 @@ func (client VirtualNetworkSubnetUsageClient) Execute(ctx context.Context, locat result, err = client.ExecuteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "postgresqlflexibleservers.VirtualNetworkSubnetUsageClient", "Execute", resp, "Failure responding to request") + return } return diff --git a/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/enterprisepolicies.go b/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/enterprisepolicies.go index 760927191bb7..85efc6c9e1fe 100644 --- a/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/enterprisepolicies.go +++ b/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/enterprisepolicies.go @@ -85,6 +85,7 @@ func (client EnterprisePoliciesClient) CreateOrUpdate(ctx context.Context, enter result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerplatform.EnterprisePoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client EnterprisePoliciesClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerplatform.EnterprisePoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -256,6 +258,7 @@ func (client EnterprisePoliciesClient) Get(ctx context.Context, enterprisePolicy result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerplatform.EnterprisePoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +343,7 @@ func (client EnterprisePoliciesClient) ListByResourceGroup(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerplatform.EnterprisePoliciesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -417,6 +421,7 @@ func (client EnterprisePoliciesClient) ListBySubscription(ctx context.Context) ( result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerplatform.EnterprisePoliciesClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -501,6 +506,7 @@ func (client EnterprisePoliciesClient) Update(ctx context.Context, enterprisePol result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerplatform.EnterprisePoliciesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/operations.go b/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/operations.go index 4317404ebe97..74a85e0969a5 100644 --- a/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/operations.go +++ b/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationList, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerplatform.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/privateendpointconnections.go b/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/privateendpointconnections.go index 9424baef3902..088810392007 100644 --- a/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/privateendpointconnections.go +++ b/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/privateendpointconnections.go @@ -265,6 +265,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerplatform.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -351,6 +352,7 @@ func (client PrivateEndpointConnectionsClient) ListByEnterprisePolicy(ctx contex result, err = client.ListByEnterprisePolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerplatform.PrivateEndpointConnectionsClient", "ListByEnterprisePolicy", resp, "Failure responding to request") + return } return diff --git a/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/privatelinkresources.go b/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/privatelinkresources.go index 8c2728a304af..3370cf39a102 100644 --- a/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/privatelinkresources.go +++ b/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/privatelinkresources.go @@ -85,6 +85,7 @@ func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerplatform.PrivateLinkResourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client PrivateLinkResourcesClient) ListByEnterprisePolicy(ctx context.Cont result, err = client.ListByEnterprisePolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerplatform.PrivateLinkResourcesClient", "ListByEnterprisePolicy", resp, "Failure responding to request") + return } return diff --git a/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/subnets.go b/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/subnets.go index a0bef9aa938a..aaf4c6839ea6 100644 --- a/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/subnets.go +++ b/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/subnets.go @@ -84,6 +84,7 @@ func (client SubnetsClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerplatform.SubnetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, e result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerplatform.SubnetsClient", "Get", resp, "Failure responding to request") + return } return @@ -257,6 +259,7 @@ func (client SubnetsClient) ListByEnterprisePolicy(ctx context.Context, resource result, err = client.ListByEnterprisePolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "powerplatform.SubnetsClient", "ListByEnterprisePolicy", resp, "Failure responding to request") + return } return diff --git a/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/dpscertificate.go b/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/dpscertificate.go index 1d0c1c8c2566..acd8d03e6838 100644 --- a/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/dpscertificate.go +++ b/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/dpscertificate.go @@ -84,6 +84,7 @@ func (client DpsCertificateClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client DpsCertificateClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "Delete", resp, "Failure responding to request") + return } return @@ -289,6 +291,7 @@ func (client DpsCertificateClient) GenerateVerificationCode(ctx context.Context, result, err = client.GenerateVerificationCodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "GenerateVerificationCode", resp, "Failure responding to request") + return } return @@ -392,6 +395,7 @@ func (client DpsCertificateClient) Get(ctx context.Context, certificateName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -483,6 +487,7 @@ func (client DpsCertificateClient) VerifyCertificate(ctx context.Context, certif result, err = client.VerifyCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "VerifyCertificate", resp, "Failure responding to request") + return } return diff --git a/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/dpscertificates.go b/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/dpscertificates.go index f99da2bc55cd..025d446bbe51 100644 --- a/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/dpscertificates.go +++ b/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/dpscertificates.go @@ -72,6 +72,7 @@ func (client DpsCertificatesClient) List(ctx context.Context, resourceGroupName result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.DpsCertificatesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/iotdpsresource.go b/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/iotdpsresource.go index 5de96e7ee1b6..7edc784206fa 100644 --- a/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/iotdpsresource.go +++ b/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/iotdpsresource.go @@ -79,6 +79,7 @@ func (client IotDpsResourceClient) CheckNameAvailability(ctx context.Context, ar result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client IotDpsResourceClient) Get(ctx context.Context, provisioningServiceN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "Get", resp, "Failure responding to request") + return } return @@ -391,6 +393,7 @@ func (client IotDpsResourceClient) GetKeysForKeyName(ctx context.Context, provis result, err = client.GetKeysForKeyNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "GetKeysForKeyName", resp, "Failure responding to request") + return } return @@ -471,6 +474,7 @@ func (client IotDpsResourceClient) GetOperationResult(ctx context.Context, opera result, err = client.GetOperationResultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "GetOperationResult", resp, "Failure responding to request") + return } return @@ -548,6 +552,7 @@ func (client IotDpsResourceClient) ListByResourceGroup(ctx context.Context, reso result.psdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.psdlr.hasNextLink() && result.psdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -611,6 +616,7 @@ func (client IotDpsResourceClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -660,6 +666,7 @@ func (client IotDpsResourceClient) ListBySubscription(ctx context.Context) (resu result.psdlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.psdlr.hasNextLink() && result.psdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -722,6 +729,7 @@ func (client IotDpsResourceClient) listBySubscriptionNextResults(ctx context.Con result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -774,6 +782,7 @@ func (client IotDpsResourceClient) ListKeys(ctx context.Context, provisioningSer result.sasarlr, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "ListKeys", resp, "Failure responding to request") + return } if result.sasarlr.hasNextLink() && result.sasarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -838,6 +847,7 @@ func (client IotDpsResourceClient) listKeysNextResults(ctx context.Context, last result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "listKeysNextResults", resp, "Failure responding to next results request") + return } return } @@ -890,6 +900,7 @@ func (client IotDpsResourceClient) ListValidSkus(ctx context.Context, provisioni result.idsdlr, err = client.ListValidSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "ListValidSkus", resp, "Failure responding to request") + return } if result.idsdlr.hasNextLink() && result.idsdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -954,6 +965,7 @@ func (client IotDpsResourceClient) listValidSkusNextResults(ctx context.Context, result, err = client.ListValidSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "listValidSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/operations.go b/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/operations.go index cca46c67b219..a27ee6c836d2 100644 --- a/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/operations.go +++ b/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/qnamaker/cognitiveservices/v5.0-preview.1/qnamaker/alterations.go b/services/preview/qnamaker/cognitiveservices/v5.0-preview.1/qnamaker/alterations.go index bcb304d38e2b..aae31a17689e 100644 --- a/services/preview/qnamaker/cognitiveservices/v5.0-preview.1/qnamaker/alterations.go +++ b/services/preview/qnamaker/cognitiveservices/v5.0-preview.1/qnamaker/alterations.go @@ -64,6 +64,7 @@ func (client AlterationsClient) Get(ctx context.Context) (result WordAlterations result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.AlterationsClient", "Get", resp, "Failure responding to request") + return } return @@ -130,6 +131,7 @@ func (client AlterationsClient) GetAlterationsForKb(ctx context.Context, kbID st result, err = client.GetAlterationsForKbResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.AlterationsClient", "GetAlterationsForKb", resp, "Failure responding to request") + return } return @@ -206,6 +208,7 @@ func (client AlterationsClient) Replace(ctx context.Context, wordAlterations Wor result, err = client.ReplaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.AlterationsClient", "Replace", resp, "Failure responding to request") + return } return @@ -280,6 +283,7 @@ func (client AlterationsClient) ReplaceAlterationsForKb(ctx context.Context, kbI result, err = client.ReplaceAlterationsForKbResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.AlterationsClient", "ReplaceAlterationsForKb", resp, "Failure responding to request") + return } return diff --git a/services/preview/qnamaker/cognitiveservices/v5.0-preview.1/qnamaker/endpointkeys.go b/services/preview/qnamaker/cognitiveservices/v5.0-preview.1/qnamaker/endpointkeys.go index bea9f8d8a7a1..744f45e1f1d0 100644 --- a/services/preview/qnamaker/cognitiveservices/v5.0-preview.1/qnamaker/endpointkeys.go +++ b/services/preview/qnamaker/cognitiveservices/v5.0-preview.1/qnamaker/endpointkeys.go @@ -63,6 +63,7 @@ func (client EndpointKeysClient) GetKeys(ctx context.Context) (result EndpointKe result, err = client.GetKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.EndpointKeysClient", "GetKeys", resp, "Failure responding to request") + return } return @@ -129,6 +130,7 @@ func (client EndpointKeysClient) RefreshKeys(ctx context.Context, keyType string result, err = client.RefreshKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.EndpointKeysClient", "RefreshKeys", resp, "Failure responding to request") + return } return diff --git a/services/preview/qnamaker/cognitiveservices/v5.0-preview.1/qnamaker/endpointsettings.go b/services/preview/qnamaker/cognitiveservices/v5.0-preview.1/qnamaker/endpointsettings.go index 8e2bf43d0633..9325d2093e88 100644 --- a/services/preview/qnamaker/cognitiveservices/v5.0-preview.1/qnamaker/endpointsettings.go +++ b/services/preview/qnamaker/cognitiveservices/v5.0-preview.1/qnamaker/endpointsettings.go @@ -63,6 +63,7 @@ func (client EndpointSettingsClient) GetSettings(ctx context.Context) (result En result, err = client.GetSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.EndpointSettingsClient", "GetSettings", resp, "Failure responding to request") + return } return @@ -129,6 +130,7 @@ func (client EndpointSettingsClient) UpdateSettings(ctx context.Context, endpoin result, err = client.UpdateSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.EndpointSettingsClient", "UpdateSettings", resp, "Failure responding to request") + return } return diff --git a/services/preview/qnamaker/cognitiveservices/v5.0-preview.1/qnamaker/knowledgebase.go b/services/preview/qnamaker/cognitiveservices/v5.0-preview.1/qnamaker/knowledgebase.go index 602aad6dfbd6..25601a865a0c 100644 --- a/services/preview/qnamaker/cognitiveservices/v5.0-preview.1/qnamaker/knowledgebase.go +++ b/services/preview/qnamaker/cognitiveservices/v5.0-preview.1/qnamaker/knowledgebase.go @@ -87,6 +87,7 @@ func (client KnowledgebaseClient) Create(ctx context.Context, createKbPayload Cr result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.KnowledgebaseClient", "Create", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client KnowledgebaseClient) Delete(ctx context.Context, kbID string) (resu result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.KnowledgebaseClient", "Delete", resp, "Failure responding to request") + return } return @@ -227,6 +229,7 @@ func (client KnowledgebaseClient) Download(ctx context.Context, kbID string, env result, err = client.DownloadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.KnowledgebaseClient", "Download", resp, "Failure responding to request") + return } return @@ -308,6 +311,7 @@ func (client KnowledgebaseClient) GenerateAnswer(ctx context.Context, kbID strin result, err = client.GenerateAnswerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.KnowledgebaseClient", "GenerateAnswer", resp, "Failure responding to request") + return } return @@ -380,6 +384,7 @@ func (client KnowledgebaseClient) GetDetails(ctx context.Context, kbID string) ( result, err = client.GetDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.KnowledgebaseClient", "GetDetails", resp, "Failure responding to request") + return } return @@ -448,6 +453,7 @@ func (client KnowledgebaseClient) ListAll(ctx context.Context) (result Knowledge result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.KnowledgebaseClient", "ListAll", resp, "Failure responding to request") + return } return @@ -514,6 +520,7 @@ func (client KnowledgebaseClient) Publish(ctx context.Context, kbID string) (res result, err = client.PublishResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.KnowledgebaseClient", "Publish", resp, "Failure responding to request") + return } return @@ -590,6 +597,7 @@ func (client KnowledgebaseClient) Replace(ctx context.Context, kbID string, repl result, err = client.ReplaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.KnowledgebaseClient", "Replace", resp, "Failure responding to request") + return } return @@ -662,6 +670,7 @@ func (client KnowledgebaseClient) Train(ctx context.Context, kbID string, trainP result, err = client.TrainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.KnowledgebaseClient", "Train", resp, "Failure responding to request") + return } return @@ -734,6 +743,7 @@ func (client KnowledgebaseClient) Update(ctx context.Context, kbID string, updat result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.KnowledgebaseClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/qnamaker/cognitiveservices/v5.0-preview.1/qnamaker/operations.go b/services/preview/qnamaker/cognitiveservices/v5.0-preview.1/qnamaker/operations.go index c0ef421b3196..f973f5439d9a 100644 --- a/services/preview/qnamaker/cognitiveservices/v5.0-preview.1/qnamaker/operations.go +++ b/services/preview/qnamaker/cognitiveservices/v5.0-preview.1/qnamaker/operations.go @@ -65,6 +65,7 @@ func (client OperationsClient) GetDetails(ctx context.Context, operationID strin result, err = client.GetDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "qnamaker.OperationsClient", "GetDetails", resp, "Failure responding to request") + return } return diff --git a/services/preview/redis/mgmt/2019-07-01-preview/redis/firewallrules.go b/services/preview/redis/mgmt/2019-07-01-preview/redis/firewallrules.go index 8fd7a1629c69..98f8b659edc0 100644 --- a/services/preview/redis/mgmt/2019-07-01-preview/redis/firewallrules.go +++ b/services/preview/redis/mgmt/2019-07-01-preview/redis/firewallrules.go @@ -84,6 +84,7 @@ func (client FirewallRulesClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client FirewallRulesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client FirewallRulesClient) ListByRedisResource(ctx context.Context, resou result.frlr, err = client.ListByRedisResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "ListByRedisResource", resp, "Failure responding to request") + return } if result.frlr.hasNextLink() && result.frlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +384,7 @@ func (client FirewallRulesClient) listByRedisResourceNextResults(ctx context.Con result, err = client.ListByRedisResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "listByRedisResourceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/redis/mgmt/2019-07-01-preview/redis/linkedserver.go b/services/preview/redis/mgmt/2019-07-01-preview/redis/linkedserver.go index 1bce89106196..7d098dc86e68 100644 --- a/services/preview/redis/mgmt/2019-07-01-preview/redis/linkedserver.go +++ b/services/preview/redis/mgmt/2019-07-01-preview/redis/linkedserver.go @@ -163,6 +163,7 @@ func (client LinkedServerClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "Delete", resp, "Failure responding to request") + return } return @@ -239,6 +240,7 @@ func (client LinkedServerClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +318,7 @@ func (client LinkedServerClient) List(ctx context.Context, resourceGroupName str result.lswpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "List", resp, "Failure responding to request") + return } if result.lswpl.hasNextLink() && result.lswpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +383,7 @@ func (client LinkedServerClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/redis/mgmt/2019-07-01-preview/redis/operations.go b/services/preview/redis/mgmt/2019-07-01-preview/redis/operations.go index a5101dcd9ba5..994869e7a556 100644 --- a/services/preview/redis/mgmt/2019-07-01-preview/redis/operations.go +++ b/services/preview/redis/mgmt/2019-07-01-preview/redis/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/redis/mgmt/2019-07-01-preview/redis/patchschedules.go b/services/preview/redis/mgmt/2019-07-01-preview/redis/patchschedules.go index 3b91f7d1b566..5fbbb23b68b8 100644 --- a/services/preview/redis/mgmt/2019-07-01-preview/redis/patchschedules.go +++ b/services/preview/redis/mgmt/2019-07-01-preview/redis/patchschedules.go @@ -81,6 +81,7 @@ func (client PatchSchedulesClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client PatchSchedulesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client PatchSchedulesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +314,7 @@ func (client PatchSchedulesClient) ListByRedisResource(ctx context.Context, reso result.pslr, err = client.ListByRedisResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "ListByRedisResource", resp, "Failure responding to request") + return } if result.pslr.hasNextLink() && result.pslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +379,7 @@ func (client PatchSchedulesClient) listByRedisResourceNextResults(ctx context.Co result, err = client.ListByRedisResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "listByRedisResourceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/redis/mgmt/2019-07-01-preview/redis/redis.go b/services/preview/redis/mgmt/2019-07-01-preview/redis/redis.go index fd570da0ea19..e22add933f8d 100644 --- a/services/preview/redis/mgmt/2019-07-01-preview/redis/redis.go +++ b/services/preview/redis/mgmt/2019-07-01-preview/redis/redis.go @@ -80,6 +80,7 @@ func (client Client) CheckNameAvailability(ctx context.Context, parameters Check result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -406,6 +407,7 @@ func (client Client) ForceReboot(ctx context.Context, resourceGroupName string, result, err = client.ForceRebootResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "ForceReboot", resp, "Failure responding to request") + return } return @@ -483,6 +485,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, name str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "Get", resp, "Failure responding to request") + return } return @@ -639,6 +642,7 @@ func (client Client) List(ctx context.Context) (result ListResultPage, err error result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -701,6 +705,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -752,6 +757,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -815,6 +821,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -866,6 +873,7 @@ func (client Client) ListKeys(ctx context.Context, resourceGroupName string, nam result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "ListKeys", resp, "Failure responding to request") + return } return @@ -942,6 +950,7 @@ func (client Client) ListUpgradeNotifications(ctx context.Context, resourceGroup result, err = client.ListUpgradeNotificationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "ListUpgradeNotifications", resp, "Failure responding to request") + return } return @@ -1019,6 +1028,7 @@ func (client Client) RegenerateKey(ctx context.Context, resourceGroupName string result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -1097,6 +1107,7 @@ func (client Client) Update(ctx context.Context, resourceGroupName string, name result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/databases.go b/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/databases.go index 3f21f793d254..2d09b47933ee 100644 --- a/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/databases.go +++ b/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/databases.go @@ -315,6 +315,7 @@ func (client DatabasesClient) GetMethod(ctx context.Context, resourceGroupName s result, err = client.GetMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redisenterprise.DatabasesClient", "GetMethod", resp, "Failure responding to request") + return } return @@ -477,6 +478,7 @@ func (client DatabasesClient) ListByCluster(ctx context.Context, resourceGroupNa result.dl, err = client.ListByClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redisenterprise.DatabasesClient", "ListByCluster", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -541,6 +543,7 @@ func (client DatabasesClient) listByClusterNextResults(ctx context.Context, last result, err = client.ListByClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redisenterprise.DatabasesClient", "listByClusterNextResults", resp, "Failure responding to next results request") + return } return } @@ -593,6 +596,7 @@ func (client DatabasesClient) ListKeys(ctx context.Context, resourceGroupName st result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redisenterprise.DatabasesClient", "ListKeys", resp, "Failure responding to request") + return } return diff --git a/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/get.go b/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/get.go index dd36befa976d..e37b1667e140 100644 --- a/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/get.go +++ b/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/get.go @@ -72,6 +72,7 @@ func (client GetClient) OperationStatusMethod(ctx context.Context, location stri result, err = client.OperationStatusMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redisenterprise.GetClient", "OperationStatusMethod", resp, "Failure responding to request") + return } return diff --git a/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/operations.go b/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/operations.go index 3076f83a3597..b1f5ea20cf67 100644 --- a/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/operations.go +++ b/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redisenterprise.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redisenterprise.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/privateendpointconnections.go b/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/privateendpointconnections.go index 146c29d3cf91..5eb77e98d019 100644 --- a/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/privateendpointconnections.go +++ b/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/privateendpointconnections.go @@ -76,6 +76,7 @@ func (client PrivateEndpointConnectionsClient) Delete(ctx context.Context, resou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redisenterprise.PrivateEndpointConnectionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client PrivateEndpointConnectionsClient) GetMethod(ctx context.Context, re result, err = client.GetMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redisenterprise.PrivateEndpointConnectionsClient", "GetMethod", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client PrivateEndpointConnectionsClient) List(ctx context.Context, resourc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redisenterprise.PrivateEndpointConnectionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/privatelinkresources.go b/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/privatelinkresources.go index 74dcff0c4fd4..249b1d14c7d2 100644 --- a/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/privatelinkresources.go +++ b/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/privatelinkresources.go @@ -73,6 +73,7 @@ func (client PrivateLinkResourcesClient) ListByRedisEnterpriseCache(ctx context. result, err = client.ListByRedisEnterpriseCacheResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redisenterprise.PrivateLinkResourcesClient", "ListByRedisEnterpriseCache", resp, "Failure responding to request") + return } return diff --git a/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/redisenterprise.go b/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/redisenterprise.go index 3b1d6d641524..25a3ce67a395 100644 --- a/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/redisenterprise.go +++ b/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/redisenterprise.go @@ -231,6 +231,7 @@ func (client Client) GetMethod(ctx context.Context, resourceGroupName string, cl result, err = client.GetMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redisenterprise.Client", "GetMethod", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client Client) List(ctx context.Context) (result ClusterListPage, err erro result.cl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redisenterprise.Client", "List", resp, "Failure responding to request") + return } if result.cl.hasNextLink() && result.cl.IsEmpty() { err = result.NextWithContext(ctx) @@ -366,6 +368,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ClusterLis result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redisenterprise.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -417,6 +420,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.cl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redisenterprise.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cl.hasNextLink() && result.cl.IsEmpty() { err = result.NextWithContext(ctx) @@ -480,6 +484,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redisenterprise.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/reservations/mgmt/2018-06-01/reservations/client.go b/services/preview/reservations/mgmt/2018-06-01/reservations/client.go index 4cc317b5b2a8..a3c2e5318524 100644 --- a/services/preview/reservations/mgmt/2018-06-01/reservations/client.go +++ b/services/preview/reservations/mgmt/2018-06-01/reservations/client.go @@ -83,6 +83,7 @@ func (client BaseClient) GetAppliedReservationList(ctx context.Context, subscrip result, err = client.GetAppliedReservationListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.BaseClient", "GetAppliedReservationList", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client BaseClient) GetCatalog(ctx context.Context, subscriptionID string, result, err = client.GetCatalogResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.BaseClient", "GetCatalog", resp, "Failure responding to request") + return } return diff --git a/services/preview/reservations/mgmt/2018-06-01/reservations/operation.go b/services/preview/reservations/mgmt/2018-06-01/reservations/operation.go index 98319ae4e76e..c834f41a8303 100644 --- a/services/preview/reservations/mgmt/2018-06-01/reservations/operation.go +++ b/services/preview/reservations/mgmt/2018-06-01/reservations/operation.go @@ -70,6 +70,7 @@ func (client OperationClient) List(ctx context.Context) (result OperationListPag result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.OperationClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationClient) listNextResults(ctx context.Context, lastResults O result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.OperationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/reservations/mgmt/2018-06-01/reservations/order.go b/services/preview/reservations/mgmt/2018-06-01/reservations/order.go index 4af90484303d..1c398b4adecf 100644 --- a/services/preview/reservations/mgmt/2018-06-01/reservations/order.go +++ b/services/preview/reservations/mgmt/2018-06-01/reservations/order.go @@ -71,6 +71,7 @@ func (client OrderClient) Get(ctx context.Context, reservationOrderID string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.OrderClient", "Get", resp, "Failure responding to request") + return } return @@ -142,6 +143,7 @@ func (client OrderClient) List(ctx context.Context) (result OrderListPage, err e result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.OrderClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -200,6 +202,7 @@ func (client OrderClient) listNextResults(ctx context.Context, lastResults Order result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.OrderClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/reservations/mgmt/2018-06-01/reservations/reservation.go b/services/preview/reservations/mgmt/2018-06-01/reservations/reservation.go index ff519e9e1f95..fa0603520979 100644 --- a/services/preview/reservations/mgmt/2018-06-01/reservations/reservation.go +++ b/services/preview/reservations/mgmt/2018-06-01/reservations/reservation.go @@ -72,6 +72,7 @@ func (client Client) Get(ctx context.Context, reservationID string, reservationO result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.Client", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client Client) List(ctx context.Context, reservationOrderID string) (resul result.l, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.Client", "List", resp, "Failure responding to request") + return } if result.l.hasNextLink() && result.l.IsEmpty() { err = result.NextWithContext(ctx) @@ -208,6 +210,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults List) (res result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -260,6 +263,7 @@ func (client Client) ListRevisions(ctx context.Context, reservationID string, re result.l, err = client.ListRevisionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.Client", "ListRevisions", resp, "Failure responding to request") + return } if result.l.hasNextLink() && result.l.IsEmpty() { err = result.NextWithContext(ctx) @@ -323,6 +327,7 @@ func (client Client) listRevisionsNextResults(ctx context.Context, lastResults L result, err = client.ListRevisionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.Client", "listRevisionsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/reservations/mgmt/2019-04-01/reservations/client.go b/services/preview/reservations/mgmt/2019-04-01/reservations/client.go index c6b85950e0b5..62cf467ee695 100644 --- a/services/preview/reservations/mgmt/2019-04-01/reservations/client.go +++ b/services/preview/reservations/mgmt/2019-04-01/reservations/client.go @@ -84,6 +84,7 @@ func (client BaseClient) GetAppliedReservationList(ctx context.Context, subscrip result, err = client.GetAppliedReservationListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.BaseClient", "GetAppliedReservationList", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client BaseClient) GetCatalog(ctx context.Context, subscriptionID string, result, err = client.GetCatalogResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.BaseClient", "GetCatalog", resp, "Failure responding to request") + return } return diff --git a/services/preview/reservations/mgmt/2019-04-01/reservations/operation.go b/services/preview/reservations/mgmt/2019-04-01/reservations/operation.go index 2094634d02e1..be3ecd51073f 100644 --- a/services/preview/reservations/mgmt/2019-04-01/reservations/operation.go +++ b/services/preview/reservations/mgmt/2019-04-01/reservations/operation.go @@ -70,6 +70,7 @@ func (client OperationClient) List(ctx context.Context) (result OperationListPag result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.OperationClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationClient) listNextResults(ctx context.Context, lastResults O result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.OperationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/reservations/mgmt/2019-04-01/reservations/order.go b/services/preview/reservations/mgmt/2019-04-01/reservations/order.go index 5723ff9ed647..bb00b68d2b90 100644 --- a/services/preview/reservations/mgmt/2019-04-01/reservations/order.go +++ b/services/preview/reservations/mgmt/2019-04-01/reservations/order.go @@ -71,6 +71,7 @@ func (client OrderClient) Calculate(ctx context.Context, body PurchaseRequest) ( result, err = client.CalculateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.OrderClient", "Calculate", resp, "Failure responding to request") + return } return @@ -142,6 +143,7 @@ func (client OrderClient) Get(ctx context.Context, reservationOrderID string, ex result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.OrderClient", "Get", resp, "Failure responding to request") + return } return @@ -216,6 +218,7 @@ func (client OrderClient) List(ctx context.Context) (result OrderListPage, err e result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.OrderClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -274,6 +277,7 @@ func (client OrderClient) listNextResults(ctx context.Context, lastResults Order result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.OrderClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/reservations/mgmt/2019-04-01/reservations/reservation.go b/services/preview/reservations/mgmt/2019-04-01/reservations/reservation.go index 355f5b9f1deb..d20a6bbef53d 100644 --- a/services/preview/reservations/mgmt/2019-04-01/reservations/reservation.go +++ b/services/preview/reservations/mgmt/2019-04-01/reservations/reservation.go @@ -72,6 +72,7 @@ func (client Client) Archive(ctx context.Context, reservationOrderID string, res result, err = client.ArchiveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.Client", "Archive", resp, "Failure responding to request") + return } return @@ -223,6 +224,7 @@ func (client Client) Get(ctx context.Context, reservationID string, reservationO result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.Client", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +302,7 @@ func (client Client) List(ctx context.Context, reservationOrderID string) (resul result.l, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.Client", "List", resp, "Failure responding to request") + return } if result.l.hasNextLink() && result.l.IsEmpty() { err = result.NextWithContext(ctx) @@ -362,6 +365,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults List) (res result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -414,6 +418,7 @@ func (client Client) ListRevisions(ctx context.Context, reservationID string, re result.l, err = client.ListRevisionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.Client", "ListRevisions", resp, "Failure responding to request") + return } if result.l.hasNextLink() && result.l.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +482,7 @@ func (client Client) listRevisionsNextResults(ctx context.Context, lastResults L result, err = client.ListRevisionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.Client", "listRevisionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -679,6 +685,7 @@ func (client Client) Unarchive(ctx context.Context, reservationOrderID string, r result, err = client.UnarchiveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.Client", "Unarchive", resp, "Failure responding to request") + return } return diff --git a/services/preview/reservations/mgmt/2019-07-19-preview/reservations/autoquotaincrease.go b/services/preview/reservations/mgmt/2019-07-19-preview/reservations/autoquotaincrease.go index 9598182cc797..29b22e22eff9 100644 --- a/services/preview/reservations/mgmt/2019-07-19-preview/reservations/autoquotaincrease.go +++ b/services/preview/reservations/mgmt/2019-07-19-preview/reservations/autoquotaincrease.go @@ -73,6 +73,7 @@ func (client AutoQuotaIncreaseClient) Create(ctx context.Context, subscriptionID result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.AutoQuotaIncreaseClient", "Create", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client AutoQuotaIncreaseClient) GetProperties(ctx context.Context, subscri result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.AutoQuotaIncreaseClient", "GetProperties", resp, "Failure responding to request") + return } return diff --git a/services/preview/reservations/mgmt/2019-07-19-preview/reservations/client.go b/services/preview/reservations/mgmt/2019-07-19-preview/reservations/client.go index 16b8a2b330cc..f963b5327d26 100644 --- a/services/preview/reservations/mgmt/2019-07-19-preview/reservations/client.go +++ b/services/preview/reservations/mgmt/2019-07-19-preview/reservations/client.go @@ -84,6 +84,7 @@ func (client BaseClient) GetAppliedReservationList(ctx context.Context, subscrip result, err = client.GetAppliedReservationListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.BaseClient", "GetAppliedReservationList", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client BaseClient) GetCatalog(ctx context.Context, subscriptionID string, result, err = client.GetCatalogResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.BaseClient", "GetCatalog", resp, "Failure responding to request") + return } return diff --git a/services/preview/reservations/mgmt/2019-07-19-preview/reservations/operation.go b/services/preview/reservations/mgmt/2019-07-19-preview/reservations/operation.go index aa0e7778e168..edd464ace5d9 100644 --- a/services/preview/reservations/mgmt/2019-07-19-preview/reservations/operation.go +++ b/services/preview/reservations/mgmt/2019-07-19-preview/reservations/operation.go @@ -70,6 +70,7 @@ func (client OperationClient) List(ctx context.Context) (result OperationListPag result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.OperationClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationClient) listNextResults(ctx context.Context, lastResults O result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.OperationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/reservations/mgmt/2019-07-19-preview/reservations/order.go b/services/preview/reservations/mgmt/2019-07-19-preview/reservations/order.go index 891a70cdcbe9..3f9fa070edb8 100644 --- a/services/preview/reservations/mgmt/2019-07-19-preview/reservations/order.go +++ b/services/preview/reservations/mgmt/2019-07-19-preview/reservations/order.go @@ -71,6 +71,7 @@ func (client OrderClient) Calculate(ctx context.Context, body PurchaseRequest) ( result, err = client.CalculateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.OrderClient", "Calculate", resp, "Failure responding to request") + return } return @@ -142,6 +143,7 @@ func (client OrderClient) Get(ctx context.Context, reservationOrderID string, ex result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.OrderClient", "Get", resp, "Failure responding to request") + return } return @@ -216,6 +218,7 @@ func (client OrderClient) List(ctx context.Context) (result OrderListPage, err e result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.OrderClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -274,6 +277,7 @@ func (client OrderClient) listNextResults(ctx context.Context, lastResults Order result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.OrderClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/reservations/mgmt/2019-07-19-preview/reservations/quota.go b/services/preview/reservations/mgmt/2019-07-19-preview/reservations/quota.go index 5dc9799585b4..a11fd8aa2dba 100644 --- a/services/preview/reservations/mgmt/2019-07-19-preview/reservations/quota.go +++ b/services/preview/reservations/mgmt/2019-07-19-preview/reservations/quota.go @@ -166,6 +166,7 @@ func (client QuotaClient) Get(ctx context.Context, subscriptionID string, provid result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.QuotaClient", "Get", resp, "Failure responding to request") + return } return @@ -245,6 +246,7 @@ func (client QuotaClient) List(ctx context.Context, subscriptionID string, provi result.ql, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.QuotaClient", "List", resp, "Failure responding to request") + return } if result.ql.hasNextLink() && result.ql.IsEmpty() { err = result.NextWithContext(ctx) @@ -309,6 +311,7 @@ func (client QuotaClient) listNextResults(ctx context.Context, lastResults Quota result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.QuotaClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/reservations/mgmt/2019-07-19-preview/reservations/quotarequeststatus.go b/services/preview/reservations/mgmt/2019-07-19-preview/reservations/quotarequeststatus.go index 41b5c712b339..e67de910da03 100644 --- a/services/preview/reservations/mgmt/2019-07-19-preview/reservations/quotarequeststatus.go +++ b/services/preview/reservations/mgmt/2019-07-19-preview/reservations/quotarequeststatus.go @@ -77,6 +77,7 @@ func (client QuotaRequestStatusClient) Get(ctx context.Context, subscriptionID s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.QuotaRequestStatusClient", "Get", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client QuotaRequestStatusClient) List(ctx context.Context, subscriptionID result.qrdl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.QuotaRequestStatusClient", "List", resp, "Failure responding to request") + return } if result.qrdl.hasNextLink() && result.qrdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -244,6 +246,7 @@ func (client QuotaRequestStatusClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.QuotaRequestStatusClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/reservations/mgmt/2019-07-19-preview/reservations/reservation.go b/services/preview/reservations/mgmt/2019-07-19-preview/reservations/reservation.go index d79ba8a9f573..a729c2017706 100644 --- a/services/preview/reservations/mgmt/2019-07-19-preview/reservations/reservation.go +++ b/services/preview/reservations/mgmt/2019-07-19-preview/reservations/reservation.go @@ -72,6 +72,7 @@ func (client Client) Archive(ctx context.Context, reservationOrderID string, res result, err = client.ArchiveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.Client", "Archive", resp, "Failure responding to request") + return } return @@ -223,6 +224,7 @@ func (client Client) Get(ctx context.Context, reservationID string, reservationO result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.Client", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +302,7 @@ func (client Client) List(ctx context.Context, reservationOrderID string) (resul result.l, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.Client", "List", resp, "Failure responding to request") + return } if result.l.hasNextLink() && result.l.IsEmpty() { err = result.NextWithContext(ctx) @@ -362,6 +365,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults List) (res result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -414,6 +418,7 @@ func (client Client) ListRevisions(ctx context.Context, reservationID string, re result.l, err = client.ListRevisionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.Client", "ListRevisions", resp, "Failure responding to request") + return } if result.l.hasNextLink() && result.l.IsEmpty() { err = result.NextWithContext(ctx) @@ -477,6 +482,7 @@ func (client Client) listRevisionsNextResults(ctx context.Context, lastResults L result, err = client.ListRevisionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.Client", "listRevisionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -679,6 +685,7 @@ func (client Client) Unarchive(ctx context.Context, reservationOrderID string, r result, err = client.UnarchiveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.Client", "Unarchive", resp, "Failure responding to request") + return } return diff --git a/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/client.go b/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/client.go index 67fd6cf245d2..e9ab2e4608b6 100644 --- a/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/client.go +++ b/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/client.go @@ -93,6 +93,7 @@ func (client BaseClient) ResourceChangeDetails(ctx context.Context, parameters R result, err = client.ResourceChangeDetailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcegraph.BaseClient", "ResourceChangeDetails", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client BaseClient) ResourceChanges(ctx context.Context, parameters Resourc result, err = client.ResourceChangesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcegraph.BaseClient", "ResourceChanges", resp, "Failure responding to request") + return } return @@ -259,6 +261,7 @@ func (client BaseClient) Resources(ctx context.Context, query QueryRequest) (res result, err = client.ResourcesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcegraph.BaseClient", "Resources", resp, "Failure responding to request") + return } return diff --git a/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/graphquery.go b/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/graphquery.go index 043eed9f1108..14af914b8659 100644 --- a/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/graphquery.go +++ b/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/graphquery.go @@ -81,6 +81,7 @@ func (client GraphQueryClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcegraph.GraphQueryClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client GraphQueryClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcegraph.GraphQueryClient", "Delete", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client GraphQueryClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcegraph.GraphQueryClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +310,7 @@ func (client GraphQueryClient) List(ctx context.Context, resourceGroupName strin result.gqlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcegraph.GraphQueryClient", "List", resp, "Failure responding to request") + return } if result.gqlr.hasNextLink() && result.gqlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +374,7 @@ func (client GraphQueryClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcegraph.GraphQueryClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -422,6 +427,7 @@ func (client GraphQueryClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcegraph.GraphQueryClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/operations.go b/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/operations.go index 345c8adb70b7..9955303e233f 100644 --- a/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/operations.go +++ b/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcegraph.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcegraph.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/movecollections.go b/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/movecollections.go index e47f05e14c1a..f638f008799e 100644 --- a/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/movecollections.go +++ b/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/movecollections.go @@ -254,6 +254,7 @@ func (client MoveCollectionsClient) Create(ctx context.Context, resourceGroupNam result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcemover.MoveCollectionsClient", "Create", resp, "Failure responding to request") + return } return @@ -502,6 +503,7 @@ func (client MoveCollectionsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcemover.MoveCollectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -667,6 +669,7 @@ func (client MoveCollectionsClient) ListMoveCollectionsByResourceGroup(ctx conte result.mcrl, err = client.ListMoveCollectionsByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcemover.MoveCollectionsClient", "ListMoveCollectionsByResourceGroup", resp, "Failure responding to request") + return } if result.mcrl.hasNextLink() && result.mcrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -730,6 +733,7 @@ func (client MoveCollectionsClient) listMoveCollectionsByResourceGroupNextResult result, err = client.ListMoveCollectionsByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcemover.MoveCollectionsClient", "listMoveCollectionsByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -779,6 +783,7 @@ func (client MoveCollectionsClient) ListMoveCollectionsBySubscription(ctx contex result.mcrl, err = client.ListMoveCollectionsBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcemover.MoveCollectionsClient", "ListMoveCollectionsBySubscription", resp, "Failure responding to request") + return } if result.mcrl.hasNextLink() && result.mcrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -841,6 +846,7 @@ func (client MoveCollectionsClient) listMoveCollectionsBySubscriptionNextResults result, err = client.ListMoveCollectionsBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcemover.MoveCollectionsClient", "listMoveCollectionsBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1057,6 +1063,7 @@ func (client MoveCollectionsClient) Update(ctx context.Context, resourceGroupNam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcemover.MoveCollectionsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/moveresources.go b/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/moveresources.go index 54fbf62c6e47..40a4ffd41b7f 100644 --- a/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/moveresources.go +++ b/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/moveresources.go @@ -251,6 +251,7 @@ func (client MoveResourcesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcemover.MoveResourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client MoveResourcesClient) List(ctx context.Context, resourceGroupName st result.mrc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcemover.MoveResourcesClient", "List", resp, "Failure responding to request") + return } if result.mrc.hasNextLink() && result.mrc.IsEmpty() { err = result.NextWithContext(ctx) @@ -397,6 +399,7 @@ func (client MoveResourcesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcemover.MoveResourcesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/operationsdiscovery.go b/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/operationsdiscovery.go index 3b5b791c142b..bf73c9cd0008 100644 --- a/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/operationsdiscovery.go +++ b/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/operationsdiscovery.go @@ -71,6 +71,7 @@ func (client OperationsDiscoveryClient) Get(ctx context.Context) (result Operati result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcemover.OperationsDiscoveryClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/unresolveddependencies.go b/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/unresolveddependencies.go index 68f47c6b5184..8a599df44881 100644 --- a/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/unresolveddependencies.go +++ b/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/unresolveddependencies.go @@ -74,6 +74,7 @@ func (client UnresolvedDependenciesClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcemover.UnresolvedDependenciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/resources/mgmt/2015-10-01-preview/policy/assignments.go b/services/preview/resources/mgmt/2015-10-01-preview/policy/assignments.go index e8793cf8e4df..6f6ab6aa544b 100644 --- a/services/preview/resources/mgmt/2015-10-01-preview/policy/assignments.go +++ b/services/preview/resources/mgmt/2015-10-01-preview/policy/assignments.go @@ -76,6 +76,7 @@ func (client AssignmentsClient) Create(ctx context.Context, scope string, policy result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Create", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client AssignmentsClient) CreateByID(ctx context.Context, policyAssignment result, err = client.CreateByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "CreateByID", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client AssignmentsClient) Delete(ctx context.Context, scope string, policy result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -310,6 +313,7 @@ func (client AssignmentsClient) DeleteByID(ctx context.Context, policyAssignment result, err = client.DeleteByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "DeleteByID", resp, "Failure responding to request") + return } return @@ -383,6 +387,7 @@ func (client AssignmentsClient) Get(ctx context.Context, scope string, policyAss result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -460,6 +465,7 @@ func (client AssignmentsClient) GetByID(ctx context.Context, policyAssignmentID result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -533,6 +539,7 @@ func (client AssignmentsClient) List(ctx context.Context, filter string) (result result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -598,6 +605,7 @@ func (client AssignmentsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -662,6 +670,7 @@ func (client AssignmentsClient) ListForResource(ctx context.Context, resourceGro result.alr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResource", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -732,6 +741,7 @@ func (client AssignmentsClient) listForResourceNextResults(ctx context.Context, result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -792,6 +802,7 @@ func (client AssignmentsClient) ListForResourceGroup(ctx context.Context, resour result.alr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -858,6 +869,7 @@ func (client AssignmentsClient) listForResourceGroupNextResults(ctx context.Cont result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/resources/mgmt/2015-10-01-preview/policy/definitions.go b/services/preview/resources/mgmt/2015-10-01-preview/policy/definitions.go index 0e323d73cc7e..78bdc16252bb 100644 --- a/services/preview/resources/mgmt/2015-10-01-preview/policy/definitions.go +++ b/services/preview/resources/mgmt/2015-10-01-preview/policy/definitions.go @@ -73,6 +73,7 @@ func (client DefinitionsClient) CreateOrUpdate(ctx context.Context, policyDefini result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client DefinitionsClient) Delete(ctx context.Context, policyDefinitionName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -221,6 +223,7 @@ func (client DefinitionsClient) Get(ctx context.Context, policyDefinitionName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -295,6 +298,7 @@ func (client DefinitionsClient) List(ctx context.Context, filter string) (result result.dlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "List", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +364,7 @@ func (client DefinitionsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/resources/mgmt/2016-09-01-preview/managedapplications/appliancedefinitions.go b/services/preview/resources/mgmt/2016-09-01-preview/managedapplications/appliancedefinitions.go index 5688c346c6c2..06fbc0589d83 100644 --- a/services/preview/resources/mgmt/2016-09-01-preview/managedapplications/appliancedefinitions.go +++ b/services/preview/resources/mgmt/2016-09-01-preview/managedapplications/appliancedefinitions.go @@ -423,6 +423,7 @@ func (client ApplianceDefinitionsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -499,6 +500,7 @@ func (client ApplianceDefinitionsClient) GetByID(ctx context.Context, applianceD result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -580,6 +582,7 @@ func (client ApplianceDefinitionsClient) ListByResourceGroup(ctx context.Context result.adlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.adlr.hasNextLink() && result.adlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -643,6 +646,7 @@ func (client ApplianceDefinitionsClient) listByResourceGroupNextResults(ctx cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/resources/mgmt/2016-09-01-preview/managedapplications/appliances.go b/services/preview/resources/mgmt/2016-09-01-preview/managedapplications/appliances.go index b3d594ade971..d8b632bfdff0 100644 --- a/services/preview/resources/mgmt/2016-09-01-preview/managedapplications/appliances.go +++ b/services/preview/resources/mgmt/2016-09-01-preview/managedapplications/appliances.go @@ -434,6 +434,7 @@ func (client AppliancesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "Get", resp, "Failure responding to request") + return } return @@ -510,6 +511,7 @@ func (client AppliancesClient) GetByID(ctx context.Context, applianceID string) result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "GetByID", resp, "Failure responding to request") + return } return @@ -591,6 +593,7 @@ func (client AppliancesClient) ListByResourceGroup(ctx context.Context, resource result.alr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -654,6 +657,7 @@ func (client AppliancesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -703,6 +707,7 @@ func (client AppliancesClient) ListBySubscription(ctx context.Context) (result A result.alr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -765,6 +770,7 @@ func (client AppliancesClient) listBySubscriptionNextResults(ctx context.Context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -828,6 +834,7 @@ func (client AppliancesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "Update", resp, "Failure responding to request") + return } return @@ -910,6 +917,7 @@ func (client AppliancesClient) UpdateByID(ctx context.Context, applianceID strin result, err = client.UpdateByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "UpdateByID", resp, "Failure responding to request") + return } return diff --git a/services/preview/resources/mgmt/2016-09-01-preview/managedapplications/client.go b/services/preview/resources/mgmt/2016-09-01-preview/managedapplications/client.go index 1e878f8e5de2..714702ead7df 100644 --- a/services/preview/resources/mgmt/2016-09-01-preview/managedapplications/client.go +++ b/services/preview/resources/mgmt/2016-09-01-preview/managedapplications/client.go @@ -84,6 +84,7 @@ func (client BaseClient) ListOperations(ctx context.Context) (result OperationLi result.olr, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.BaseClient", "ListOperations", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client BaseClient) listOperationsNextResults(ctx context.Context, lastResu result, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.BaseClient", "listOperationsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/resources/mgmt/2017-06-01-preview/policy/assignments.go b/services/preview/resources/mgmt/2017-06-01-preview/policy/assignments.go index 36be02ad7086..de38b241a929 100644 --- a/services/preview/resources/mgmt/2017-06-01-preview/policy/assignments.go +++ b/services/preview/resources/mgmt/2017-06-01-preview/policy/assignments.go @@ -83,6 +83,7 @@ func (client AssignmentsClient) Create(ctx context.Context, scope string, policy result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Create", resp, "Failure responding to request") + return } return @@ -175,6 +176,7 @@ func (client AssignmentsClient) CreateByID(ctx context.Context, policyAssignment result, err = client.CreateByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "CreateByID", resp, "Failure responding to request") + return } return @@ -253,6 +255,7 @@ func (client AssignmentsClient) Delete(ctx context.Context, scope string, policy result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -330,6 +333,7 @@ func (client AssignmentsClient) DeleteByID(ctx context.Context, policyAssignment result, err = client.DeleteByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "DeleteByID", resp, "Failure responding to request") + return } return @@ -403,6 +407,7 @@ func (client AssignmentsClient) Get(ctx context.Context, scope string, policyAss result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -480,6 +485,7 @@ func (client AssignmentsClient) GetByID(ctx context.Context, policyAssignmentID result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -553,6 +559,7 @@ func (client AssignmentsClient) List(ctx context.Context, filter string) (result result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -618,6 +625,7 @@ func (client AssignmentsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -682,6 +690,7 @@ func (client AssignmentsClient) ListForResource(ctx context.Context, resourceGro result.alr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResource", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -752,6 +761,7 @@ func (client AssignmentsClient) listForResourceNextResults(ctx context.Context, result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -812,6 +822,7 @@ func (client AssignmentsClient) ListForResourceGroup(ctx context.Context, resour result.alr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -878,6 +889,7 @@ func (client AssignmentsClient) listForResourceGroupNextResults(ctx context.Cont result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/resources/mgmt/2017-06-01-preview/policy/definitions.go b/services/preview/resources/mgmt/2017-06-01-preview/policy/definitions.go index 2a145f8d7631..419e8870904d 100644 --- a/services/preview/resources/mgmt/2017-06-01-preview/policy/definitions.go +++ b/services/preview/resources/mgmt/2017-06-01-preview/policy/definitions.go @@ -73,6 +73,7 @@ func (client DefinitionsClient) CreateOrUpdate(ctx context.Context, policyDefini result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client DefinitionsClient) CreateOrUpdateAtManagementGroup(ctx context.Cont result, err = client.CreateOrUpdateAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdateAtManagementGroup", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client DefinitionsClient) Delete(ctx context.Context, policyDefinitionName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -302,6 +305,7 @@ func (client DefinitionsClient) DeleteAtManagementGroup(ctx context.Context, pol result, err = client.DeleteAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "DeleteAtManagementGroup", resp, "Failure responding to request") + return } return @@ -374,6 +378,7 @@ func (client DefinitionsClient) Get(ctx context.Context, policyDefinitionName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -448,6 +453,7 @@ func (client DefinitionsClient) GetAtManagementGroup(ctx context.Context, policy result, err = client.GetAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "GetAtManagementGroup", resp, "Failure responding to request") + return } return @@ -521,6 +527,7 @@ func (client DefinitionsClient) GetBuiltIn(ctx context.Context, policyDefinition result, err = client.GetBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "GetBuiltIn", resp, "Failure responding to request") + return } return @@ -592,6 +599,7 @@ func (client DefinitionsClient) List(ctx context.Context) (result DefinitionList result.dlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "List", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -654,6 +662,7 @@ func (client DefinitionsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -703,6 +712,7 @@ func (client DefinitionsClient) ListBuiltIn(ctx context.Context) (result Definit result.dlr, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "ListBuiltIn", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -761,6 +771,7 @@ func (client DefinitionsClient) listBuiltInNextResults(ctx context.Context, last result, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listBuiltInNextResults", resp, "Failure responding to next results request") + return } return } @@ -812,6 +823,7 @@ func (client DefinitionsClient) ListByManagementGroup(ctx context.Context, manag result.dlr, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "ListByManagementGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -874,6 +886,7 @@ func (client DefinitionsClient) listByManagementGroupNextResults(ctx context.Con result, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listByManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/resources/mgmt/2017-06-01-preview/policy/setdefinitions.go b/services/preview/resources/mgmt/2017-06-01-preview/policy/setdefinitions.go index 191bec612f0a..63c190a7c1e7 100644 --- a/services/preview/resources/mgmt/2017-06-01-preview/policy/setdefinitions.go +++ b/services/preview/resources/mgmt/2017-06-01-preview/policy/setdefinitions.go @@ -81,6 +81,7 @@ func (client SetDefinitionsClient) CreateOrUpdate(ctx context.Context, policySet result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client SetDefinitionsClient) CreateOrUpdateAtManagementGroup(ctx context.C result, err = client.CreateOrUpdateAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "CreateOrUpdateAtManagementGroup", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client SetDefinitionsClient) Delete(ctx context.Context, policySetDefiniti result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -319,6 +322,7 @@ func (client SetDefinitionsClient) DeleteAtManagementGroup(ctx context.Context, result, err = client.DeleteAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "DeleteAtManagementGroup", resp, "Failure responding to request") + return } return @@ -391,6 +395,7 @@ func (client SetDefinitionsClient) Get(ctx context.Context, policySetDefinitionN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -465,6 +470,7 @@ func (client SetDefinitionsClient) GetAtManagementGroup(ctx context.Context, pol result, err = client.GetAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "GetAtManagementGroup", resp, "Failure responding to request") + return } return @@ -538,6 +544,7 @@ func (client SetDefinitionsClient) GetBuiltIn(ctx context.Context, policySetDefi result, err = client.GetBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "GetBuiltIn", resp, "Failure responding to request") + return } return @@ -609,6 +616,7 @@ func (client SetDefinitionsClient) List(ctx context.Context) (result SetDefiniti result.sdlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "List", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -671,6 +679,7 @@ func (client SetDefinitionsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -720,6 +729,7 @@ func (client SetDefinitionsClient) ListBuiltIn(ctx context.Context) (result SetD result.sdlr, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "ListBuiltIn", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -778,6 +788,7 @@ func (client SetDefinitionsClient) listBuiltInNextResults(ctx context.Context, l result, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listBuiltInNextResults", resp, "Failure responding to next results request") + return } return } @@ -829,6 +840,7 @@ func (client SetDefinitionsClient) ListByManagementGroup(ctx context.Context, ma result.sdlr, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "ListByManagementGroup", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -891,6 +903,7 @@ func (client SetDefinitionsClient) listByManagementGroupNextResults(ctx context. result, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listByManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/resources/mgmt/2017-08-31-preview/managementgroups/managementgroups.go b/services/preview/resources/mgmt/2017-08-31-preview/managementgroups/managementgroups.go index 5b14cbf33db5..b413208db3a2 100644 --- a/services/preview/resources/mgmt/2017-08-31-preview/managementgroups/managementgroups.go +++ b/services/preview/resources/mgmt/2017-08-31-preview/managementgroups/managementgroups.go @@ -77,6 +77,7 @@ func (client Client) Get(ctx context.Context, expand string, recurse *bool) (res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "Get", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client Client) List(ctx context.Context, skiptoken string) (result ListRes result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -219,6 +221,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/resources/mgmt/2017-08-31-preview/managementgroups/operations.go b/services/preview/resources/mgmt/2017-08-31-preview/managementgroups/operations.go index 7f28cc96abfc..c436d075228c 100644 --- a/services/preview/resources/mgmt/2017-08-31-preview/managementgroups/operations.go +++ b/services/preview/resources/mgmt/2017-08-31-preview/managementgroups/operations.go @@ -73,6 +73,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -131,6 +132,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/resources/mgmt/2017-11-01-preview/managementgroups/managementgroups.go b/services/preview/resources/mgmt/2017-11-01-preview/managementgroups/managementgroups.go index 49b5f0f10ae6..16898830aafb 100644 --- a/services/preview/resources/mgmt/2017-11-01-preview/managementgroups/managementgroups.go +++ b/services/preview/resources/mgmt/2017-11-01-preview/managementgroups/managementgroups.go @@ -77,6 +77,7 @@ func (client Client) CreateOrUpdate(ctx context.Context, groupID string, createM result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client Client) Delete(ctx context.Context, groupID string, cacheControl st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "Delete", resp, "Failure responding to request") + return } return @@ -243,6 +245,7 @@ func (client Client) Get(ctx context.Context, groupID string, expand string, rec result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "Get", resp, "Failure responding to request") + return } return @@ -332,6 +335,7 @@ func (client Client) List(ctx context.Context, cacheControl string, skiptoken st result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -400,6 +404,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -452,6 +457,7 @@ func (client Client) Update(ctx context.Context, groupID string, createManagemen result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/resources/mgmt/2017-11-01-preview/managementgroups/operations.go b/services/preview/resources/mgmt/2017-11-01-preview/managementgroups/operations.go index 6e0b7b1f41b3..480e6b7b0ddb 100644 --- a/services/preview/resources/mgmt/2017-11-01-preview/managementgroups/operations.go +++ b/services/preview/resources/mgmt/2017-11-01-preview/managementgroups/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/resources/mgmt/2017-11-01-preview/managementgroups/subscriptions.go b/services/preview/resources/mgmt/2017-11-01-preview/managementgroups/subscriptions.go index ab5c77d9f862..5c2261f5f7cc 100644 --- a/services/preview/resources/mgmt/2017-11-01-preview/managementgroups/subscriptions.go +++ b/services/preview/resources/mgmt/2017-11-01-preview/managementgroups/subscriptions.go @@ -75,6 +75,7 @@ func (client SubscriptionsClient) Create(ctx context.Context, groupID string, su result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.SubscriptionsClient", "Create", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client SubscriptionsClient) Delete(ctx context.Context, groupID string, su result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.SubscriptionsClient", "Delete", resp, "Failure responding to request") + return } return diff --git a/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/client.go b/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/client.go index 41d5d47a40d6..281d25db74b2 100644 --- a/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/client.go +++ b/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/client.go @@ -90,6 +90,7 @@ func (client BaseClient) CheckNameAvailability(ctx context.Context, checkNameAva result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.BaseClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/entities.go b/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/entities.go index 634604ee00bb..1eb97fe2b970 100644 --- a/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/entities.go +++ b/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/entities.go @@ -75,6 +75,7 @@ func (client EntitiesClient) List(ctx context.Context, groupName string, cacheCo result.elr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.EntitiesClient", "List", resp, "Failure responding to request") + return } if result.elr.hasNextLink() && result.elr.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client EntitiesClient) listNextResults(ctx context.Context, lastResults En result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.EntitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/managementgroups.go b/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/managementgroups.go index 23a537273722..52deb14a1e5f 100644 --- a/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/managementgroups.go +++ b/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/managementgroups.go @@ -248,6 +248,7 @@ func (client Client) Get(ctx context.Context, groupID string, expand string, rec result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "Get", resp, "Failure responding to request") + return } return @@ -337,6 +338,7 @@ func (client Client) List(ctx context.Context, cacheControl string) (result List result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -405,6 +407,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -457,6 +460,7 @@ func (client Client) Update(ctx context.Context, groupID string, patchGroupReque result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/operations.go b/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/operations.go index e3d33d5d429f..f9fcdffc73e4 100644 --- a/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/operations.go +++ b/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/subscriptions.go b/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/subscriptions.go index 3a7238514f7a..0a7da79bee19 100644 --- a/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/subscriptions.go +++ b/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/subscriptions.go @@ -75,6 +75,7 @@ func (client SubscriptionsClient) Create(ctx context.Context, groupID string, su result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.SubscriptionsClient", "Create", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client SubscriptionsClient) Delete(ctx context.Context, groupID string, su result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.SubscriptionsClient", "Delete", resp, "Failure responding to request") + return } return diff --git a/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/client.go b/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/client.go index d5082f5760a3..97f91445a3ec 100644 --- a/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/client.go +++ b/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/client.go @@ -84,6 +84,7 @@ func (client BaseClient) CheckNameAvailability(ctx context.Context, checkNameAva result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.BaseClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client BaseClient) StartTenantBackfill(ctx context.Context) (result Tenant result, err = client.StartTenantBackfillResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.BaseClient", "StartTenantBackfill", resp, "Failure responding to request") + return } return @@ -218,6 +220,7 @@ func (client BaseClient) TenantBackfillStatus(ctx context.Context) (result Tenan result, err = client.TenantBackfillStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.BaseClient", "TenantBackfillStatus", resp, "Failure responding to request") + return } return diff --git a/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/entities.go b/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/entities.go index e129bc3144dd..740bfbefe346 100644 --- a/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/entities.go +++ b/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/entities.go @@ -99,6 +99,7 @@ func (client EntitiesClient) List(ctx context.Context, skiptoken string, skip *i result.elr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.EntitiesClient", "List", resp, "Failure responding to request") + return } if result.elr.hasNextLink() && result.elr.IsEmpty() { err = result.NextWithContext(ctx) @@ -188,6 +189,7 @@ func (client EntitiesClient) listNextResults(ctx context.Context, lastResults En result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.EntitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/managementgroups.go b/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/managementgroups.go index 2b0363e2760d..5bebb0a413d3 100644 --- a/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/managementgroups.go +++ b/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/managementgroups.go @@ -245,6 +245,7 @@ func (client Client) Get(ctx context.Context, groupID string, expand string, rec result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "Get", resp, "Failure responding to request") + return } return @@ -338,6 +339,7 @@ func (client Client) GetDescendants(ctx context.Context, groupID string, skiptok result.dlr, err = client.GetDescendantsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "GetDescendants", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -406,6 +408,7 @@ func (client Client) getDescendantsNextResults(ctx context.Context, lastResults result, err = client.GetDescendantsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "getDescendantsNextResults", resp, "Failure responding to next results request") + return } return } @@ -460,6 +463,7 @@ func (client Client) List(ctx context.Context, cacheControl string, skiptoken st result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -528,6 +532,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -580,6 +585,7 @@ func (client Client) Update(ctx context.Context, groupID string, patchGroupReque result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/operations.go b/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/operations.go index e0478741f84a..73974d79b77c 100644 --- a/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/operations.go +++ b/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/subscriptions.go b/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/subscriptions.go index dbc5f9b9aa25..9d4ccf8c688d 100644 --- a/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/subscriptions.go +++ b/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/subscriptions.go @@ -75,6 +75,7 @@ func (client SubscriptionsClient) Create(ctx context.Context, groupID string, su result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.SubscriptionsClient", "Create", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client SubscriptionsClient) Delete(ctx context.Context, groupID string, su result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.SubscriptionsClient", "Delete", resp, "Failure responding to request") + return } return diff --git a/services/preview/resources/mgmt/2020-03-01-preview/policy/assignments.go b/services/preview/resources/mgmt/2020-03-01-preview/policy/assignments.go index 9eeaaa5bd2a1..dfa90e54f544 100644 --- a/services/preview/resources/mgmt/2020-03-01-preview/policy/assignments.go +++ b/services/preview/resources/mgmt/2020-03-01-preview/policy/assignments.go @@ -87,6 +87,7 @@ func (client AssignmentsClient) Create(ctx context.Context, scope string, policy result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Create", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client AssignmentsClient) CreateByID(ctx context.Context, policyAssignment result, err = client.CreateByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "CreateByID", resp, "Failure responding to request") + return } return @@ -265,6 +267,7 @@ func (client AssignmentsClient) Delete(ctx context.Context, scope string, policy result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -345,6 +348,7 @@ func (client AssignmentsClient) DeleteByID(ctx context.Context, policyAssignment result, err = client.DeleteByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "DeleteByID", resp, "Failure responding to request") + return } return @@ -422,6 +426,7 @@ func (client AssignmentsClient) Get(ctx context.Context, scope string, policyAss result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -501,6 +506,7 @@ func (client AssignmentsClient) GetByID(ctx context.Context, policyAssignmentID result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -600,6 +606,7 @@ func (client AssignmentsClient) List(ctx context.Context, subscriptionID string, result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -668,6 +675,7 @@ func (client AssignmentsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -742,6 +750,7 @@ func (client AssignmentsClient) ListForManagementGroup(ctx context.Context, mana result.alr, err = client.ListForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForManagementGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -810,6 +819,7 @@ func (client AssignmentsClient) listForManagementGroupNextResults(ctx context.Co result, err = client.ListForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -907,6 +917,7 @@ func (client AssignmentsClient) ListForResource(ctx context.Context, resourceGro result.alr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResource", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -980,6 +991,7 @@ func (client AssignmentsClient) listForResourceNextResults(ctx context.Context, result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -1062,6 +1074,7 @@ func (client AssignmentsClient) ListForResourceGroup(ctx context.Context, resour result.alr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1131,6 +1144,7 @@ func (client AssignmentsClient) listForResourceGroupNextResults(ctx context.Cont result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/resources/mgmt/2020-03-01-preview/policy/definitions.go b/services/preview/resources/mgmt/2020-03-01-preview/policy/definitions.go index 20d987ac2b98..7e9ec06080e5 100644 --- a/services/preview/resources/mgmt/2020-03-01-preview/policy/definitions.go +++ b/services/preview/resources/mgmt/2020-03-01-preview/policy/definitions.go @@ -74,6 +74,7 @@ func (client DefinitionsClient) CreateOrUpdate(ctx context.Context, policyDefini result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client DefinitionsClient) CreateOrUpdateAtManagementGroup(ctx context.Cont result, err = client.CreateOrUpdateAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdateAtManagementGroup", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client DefinitionsClient) Delete(ctx context.Context, policyDefinitionName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -308,6 +311,7 @@ func (client DefinitionsClient) DeleteAtManagementGroup(ctx context.Context, pol result, err = client.DeleteAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "DeleteAtManagementGroup", resp, "Failure responding to request") + return } return @@ -381,6 +385,7 @@ func (client DefinitionsClient) Get(ctx context.Context, policyDefinitionName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -456,6 +461,7 @@ func (client DefinitionsClient) GetAtManagementGroup(ctx context.Context, policy result, err = client.GetAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "GetAtManagementGroup", resp, "Failure responding to request") + return } return @@ -529,6 +535,7 @@ func (client DefinitionsClient) GetBuiltIn(ctx context.Context, policyDefinition result, err = client.GetBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "GetBuiltIn", resp, "Failure responding to request") + return } return @@ -627,6 +634,7 @@ func (client DefinitionsClient) List(ctx context.Context, subscriptionID string, result.dlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "List", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -695,6 +703,7 @@ func (client DefinitionsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -766,6 +775,7 @@ func (client DefinitionsClient) ListBuiltIn(ctx context.Context, filter string, result.dlr, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "ListBuiltIn", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -830,6 +840,7 @@ func (client DefinitionsClient) listBuiltInNextResults(ctx context.Context, last result, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listBuiltInNextResults", resp, "Failure responding to next results request") + return } return } @@ -906,6 +917,7 @@ func (client DefinitionsClient) ListByManagementGroup(ctx context.Context, manag result.dlr, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "ListByManagementGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -974,6 +986,7 @@ func (client DefinitionsClient) listByManagementGroupNextResults(ctx context.Con result, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listByManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/resources/mgmt/2020-03-01-preview/policy/exemptions.go b/services/preview/resources/mgmt/2020-03-01-preview/policy/exemptions.go index a52e642aea3f..4b4ffece3be9 100644 --- a/services/preview/resources/mgmt/2020-03-01-preview/policy/exemptions.go +++ b/services/preview/resources/mgmt/2020-03-01-preview/policy/exemptions.go @@ -88,6 +88,7 @@ func (client ExemptionsClient) CreateOrUpdate(ctx context.Context, parameters Ex result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.ExemptionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client ExemptionsClient) Delete(ctx context.Context, scope string, policyE result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.ExemptionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client ExemptionsClient) Get(ctx context.Context, scope string, policyExem result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.ExemptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -337,6 +340,7 @@ func (client ExemptionsClient) List(ctx context.Context, subscriptionID string, result.elr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.ExemptionsClient", "List", resp, "Failure responding to request") + return } if result.elr.hasNextLink() && result.elr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +406,7 @@ func (client ExemptionsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.ExemptionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -467,6 +472,7 @@ func (client ExemptionsClient) ListForManagementGroup(ctx context.Context, manag result.elr, err = client.ListForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.ExemptionsClient", "ListForManagementGroup", resp, "Failure responding to request") + return } if result.elr.hasNextLink() && result.elr.IsEmpty() { err = result.NextWithContext(ctx) @@ -532,6 +538,7 @@ func (client ExemptionsClient) listForManagementGroupNextResults(ctx context.Con result, err = client.ListForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.ExemptionsClient", "listForManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -622,6 +629,7 @@ func (client ExemptionsClient) ListForResource(ctx context.Context, subscription result.elr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.ExemptionsClient", "ListForResource", resp, "Failure responding to request") + return } if result.elr.hasNextLink() && result.elr.IsEmpty() { err = result.NextWithContext(ctx) @@ -692,6 +700,7 @@ func (client ExemptionsClient) listForResourceNextResults(ctx context.Context, l result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.ExemptionsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -767,6 +776,7 @@ func (client ExemptionsClient) ListForResourceGroup(ctx context.Context, subscri result.elr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.ExemptionsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.elr.hasNextLink() && result.elr.IsEmpty() { err = result.NextWithContext(ctx) @@ -833,6 +843,7 @@ func (client ExemptionsClient) listForResourceGroupNextResults(ctx context.Conte result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.ExemptionsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/resources/mgmt/2020-03-01-preview/policy/setdefinitions.go b/services/preview/resources/mgmt/2020-03-01-preview/policy/setdefinitions.go index 2304abb6c22d..21e6ae7ff74f 100644 --- a/services/preview/resources/mgmt/2020-03-01-preview/policy/setdefinitions.go +++ b/services/preview/resources/mgmt/2020-03-01-preview/policy/setdefinitions.go @@ -82,6 +82,7 @@ func (client SetDefinitionsClient) CreateOrUpdate(ctx context.Context, policySet result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client SetDefinitionsClient) CreateOrUpdateAtManagementGroup(ctx context.C result, err = client.CreateOrUpdateAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "CreateOrUpdateAtManagementGroup", resp, "Failure responding to request") + return } return @@ -249,6 +251,7 @@ func (client SetDefinitionsClient) Delete(ctx context.Context, policySetDefiniti result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -323,6 +326,7 @@ func (client SetDefinitionsClient) DeleteAtManagementGroup(ctx context.Context, result, err = client.DeleteAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "DeleteAtManagementGroup", resp, "Failure responding to request") + return } return @@ -396,6 +400,7 @@ func (client SetDefinitionsClient) Get(ctx context.Context, policySetDefinitionN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -471,6 +476,7 @@ func (client SetDefinitionsClient) GetAtManagementGroup(ctx context.Context, pol result, err = client.GetAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "GetAtManagementGroup", resp, "Failure responding to request") + return } return @@ -544,6 +550,7 @@ func (client SetDefinitionsClient) GetBuiltIn(ctx context.Context, policySetDefi result, err = client.GetBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "GetBuiltIn", resp, "Failure responding to request") + return } return @@ -642,6 +649,7 @@ func (client SetDefinitionsClient) List(ctx context.Context, subscriptionID stri result.sdlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "List", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -710,6 +718,7 @@ func (client SetDefinitionsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -779,6 +788,7 @@ func (client SetDefinitionsClient) ListBuiltIn(ctx context.Context, filter strin result.sdlr, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "ListBuiltIn", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -843,6 +853,7 @@ func (client SetDefinitionsClient) listBuiltInNextResults(ctx context.Context, l result, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listBuiltInNextResults", resp, "Failure responding to next results request") + return } return } @@ -919,6 +930,7 @@ func (client SetDefinitionsClient) ListByManagementGroup(ctx context.Context, ma result.sdlr, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "ListByManagementGroup", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -987,6 +999,7 @@ func (client SetDefinitionsClient) listByManagementGroupNextResults(ctx context. result, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listByManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/scheduler/mgmt/2014-08-01-preview/scheduler/jobcollections.go b/services/preview/scheduler/mgmt/2014-08-01-preview/scheduler/jobcollections.go index 4d36155ac764..caa6f12bb746 100644 --- a/services/preview/scheduler/mgmt/2014-08-01-preview/scheduler/jobcollections.go +++ b/services/preview/scheduler/mgmt/2014-08-01-preview/scheduler/jobcollections.go @@ -73,6 +73,7 @@ func (client JobCollectionsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client JobCollectionsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client JobCollectionsClient) Disable(ctx context.Context, resourceGroupNam result, err = client.DisableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "Disable", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client JobCollectionsClient) Enable(ctx context.Context, resourceGroupName result, err = client.EnableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "Enable", resp, "Failure responding to request") + return } return @@ -374,6 +378,7 @@ func (client JobCollectionsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -449,6 +454,7 @@ func (client JobCollectionsClient) ListByResourceGroup(ctx context.Context, reso result.jclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.jclr.hasNextLink() && result.jclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -512,6 +518,7 @@ func (client JobCollectionsClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -561,6 +568,7 @@ func (client JobCollectionsClient) ListBySubscription(ctx context.Context) (resu result.jclr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.jclr.hasNextLink() && result.jclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -623,6 +631,7 @@ func (client JobCollectionsClient) listBySubscriptionNextResults(ctx context.Con result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -675,6 +684,7 @@ func (client JobCollectionsClient) Patch(ctx context.Context, resourceGroupName result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "Patch", resp, "Failure responding to request") + return } return diff --git a/services/preview/scheduler/mgmt/2014-08-01-preview/scheduler/jobs.go b/services/preview/scheduler/mgmt/2014-08-01-preview/scheduler/jobs.go index cc9872168f2c..e15deeeac1de 100644 --- a/services/preview/scheduler/mgmt/2014-08-01-preview/scheduler/jobs.go +++ b/services/preview/scheduler/mgmt/2014-08-01-preview/scheduler/jobs.go @@ -74,6 +74,7 @@ func (client JobsClient) CreateOrUpdate(ctx context.Context, resourceGroupName s result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client JobsClient) Delete(ctx context.Context, resourceGroupName string, j result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "Delete", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client JobsClient) Get(ctx context.Context, resourceGroupName string, jobC result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +315,7 @@ func (client JobsClient) List(ctx context.Context, resourceGroupName string, job result.jlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "List", resp, "Failure responding to request") + return } if result.jlr.hasNextLink() && result.jlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +389,7 @@ func (client JobsClient) listNextResults(ctx context.Context, lastResults JobLis result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -441,6 +446,7 @@ func (client JobsClient) ListJobHistory(ctx context.Context, resourceGroupName s result.jhlr, err = client.ListJobHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "ListJobHistory", resp, "Failure responding to request") + return } if result.jhlr.hasNextLink() && result.jhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -515,6 +521,7 @@ func (client JobsClient) listJobHistoryNextResults(ctx context.Context, lastResu result, err = client.ListJobHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "listJobHistoryNextResults", resp, "Failure responding to next results request") + return } return } @@ -568,6 +575,7 @@ func (client JobsClient) Patch(ctx context.Context, resourceGroupName string, jo result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "Patch", resp, "Failure responding to request") + return } return @@ -650,6 +658,7 @@ func (client JobsClient) Run(ctx context.Context, resourceGroupName string, jobC result, err = client.RunResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "Run", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v1.0/security/adaptiveapplicationcontrols.go b/services/preview/security/mgmt/v1.0/security/adaptiveapplicationcontrols.go index b5c1ac56459b..cd54bc66df5b 100644 --- a/services/preview/security/mgmt/v1.0/security/adaptiveapplicationcontrols.go +++ b/services/preview/security/mgmt/v1.0/security/adaptiveapplicationcontrols.go @@ -79,6 +79,7 @@ func (client AdaptiveApplicationControlsClient) Delete(ctx context.Context, grou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdaptiveApplicationControlsClient", "Delete", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client AdaptiveApplicationControlsClient) Get(ctx context.Context, groupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdaptiveApplicationControlsClient", "Get", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client AdaptiveApplicationControlsClient) List(ctx context.Context, includ result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdaptiveApplicationControlsClient", "List", resp, "Failure responding to request") + return } return @@ -324,6 +327,7 @@ func (client AdaptiveApplicationControlsClient) Put(ctx context.Context, groupNa result, err = client.PutResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdaptiveApplicationControlsClient", "Put", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v1.0/security/adaptivenetworkhardenings.go b/services/preview/security/mgmt/v1.0/security/adaptivenetworkhardenings.go index aff3104373b6..0e053e4034e0 100644 --- a/services/preview/security/mgmt/v1.0/security/adaptivenetworkhardenings.go +++ b/services/preview/security/mgmt/v1.0/security/adaptivenetworkhardenings.go @@ -185,6 +185,7 @@ func (client AdaptiveNetworkHardeningsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdaptiveNetworkHardeningsClient", "Get", resp, "Failure responding to request") + return } return @@ -277,6 +278,7 @@ func (client AdaptiveNetworkHardeningsClient) ListByExtendedResource(ctx context result.anhl, err = client.ListByExtendedResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdaptiveNetworkHardeningsClient", "ListByExtendedResource", resp, "Failure responding to request") + return } if result.anhl.hasNextLink() && result.anhl.IsEmpty() { err = result.NextWithContext(ctx) @@ -343,6 +345,7 @@ func (client AdaptiveNetworkHardeningsClient) listByExtendedResourceNextResults( result, err = client.ListByExtendedResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdaptiveNetworkHardeningsClient", "listByExtendedResourceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v1.0/security/advancedthreatprotection.go b/services/preview/security/mgmt/v1.0/security/advancedthreatprotection.go index 2bd63720d32e..86ff1d890cca 100644 --- a/services/preview/security/mgmt/v1.0/security/advancedthreatprotection.go +++ b/services/preview/security/mgmt/v1.0/security/advancedthreatprotection.go @@ -73,6 +73,7 @@ func (client AdvancedThreatProtectionClient) Create(ctx context.Context, resourc result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdvancedThreatProtectionClient", "Create", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client AdvancedThreatProtectionClient) Get(ctx context.Context, resourceID result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdvancedThreatProtectionClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v1.0/security/alerts.go b/services/preview/security/mgmt/v1.0/security/alerts.go index 3abf0952df8c..5898b1d0bdd4 100644 --- a/services/preview/security/mgmt/v1.0/security/alerts.go +++ b/services/preview/security/mgmt/v1.0/security/alerts.go @@ -84,6 +84,7 @@ func (client AlertsClient) GetResourceGroupLevelAlerts(ctx context.Context, aler result, err = client.GetResourceGroupLevelAlertsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "GetResourceGroupLevelAlerts", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client AlertsClient) GetSubscriptionLevelAlert(ctx context.Context, alertN result, err = client.GetSubscriptionLevelAlertResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "GetSubscriptionLevelAlert", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client AlertsClient) List(ctx context.Context, filter string, selectParame result.al, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "List", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -319,6 +322,7 @@ func (client AlertsClient) listNextResults(ctx context.Context, lastResults Aler result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -384,6 +388,7 @@ func (client AlertsClient) ListByResourceGroup(ctx context.Context, resourceGrou result.al, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -456,6 +461,7 @@ func (client AlertsClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -522,6 +528,7 @@ func (client AlertsClient) ListResourceGroupLevelAlertsByRegion(ctx context.Cont result.al, err = client.ListResourceGroupLevelAlertsByRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "ListResourceGroupLevelAlertsByRegion", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -595,6 +602,7 @@ func (client AlertsClient) listResourceGroupLevelAlertsByRegionNextResults(ctx c result, err = client.ListResourceGroupLevelAlertsByRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "listResourceGroupLevelAlertsByRegionNextResults", resp, "Failure responding to next results request") + return } return } @@ -655,6 +663,7 @@ func (client AlertsClient) ListSubscriptionLevelAlertsByRegion(ctx context.Conte result.al, err = client.ListSubscriptionLevelAlertsByRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "ListSubscriptionLevelAlertsByRegion", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -727,6 +736,7 @@ func (client AlertsClient) listSubscriptionLevelAlertsByRegionNextResults(ctx co result, err = client.ListSubscriptionLevelAlertsByRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "listSubscriptionLevelAlertsByRegionNextResults", resp, "Failure responding to next results request") + return } return } @@ -789,6 +799,7 @@ func (client AlertsClient) UpdateResourceGroupLevelAlertStateToDismiss(ctx conte result, err = client.UpdateResourceGroupLevelAlertStateToDismissResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "UpdateResourceGroupLevelAlertStateToDismiss", resp, "Failure responding to request") + return } return @@ -875,6 +886,7 @@ func (client AlertsClient) UpdateResourceGroupLevelAlertStateToReactivate(ctx co result, err = client.UpdateResourceGroupLevelAlertStateToReactivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "UpdateResourceGroupLevelAlertStateToReactivate", resp, "Failure responding to request") + return } return @@ -955,6 +967,7 @@ func (client AlertsClient) UpdateSubscriptionLevelAlertStateToDismiss(ctx contex result, err = client.UpdateSubscriptionLevelAlertStateToDismissResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "UpdateSubscriptionLevelAlertStateToDismiss", resp, "Failure responding to request") + return } return @@ -1034,6 +1047,7 @@ func (client AlertsClient) UpdateSubscriptionLevelAlertStateToReactivate(ctx con result, err = client.UpdateSubscriptionLevelAlertStateToReactivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "UpdateSubscriptionLevelAlertStateToReactivate", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v1.0/security/alertssuppressionrules.go b/services/preview/security/mgmt/v1.0/security/alertssuppressionrules.go index 74f0e82f8e8a..7ce77cd1e95e 100644 --- a/services/preview/security/mgmt/v1.0/security/alertssuppressionrules.go +++ b/services/preview/security/mgmt/v1.0/security/alertssuppressionrules.go @@ -79,6 +79,7 @@ func (client AlertsSuppressionRulesClient) Delete(ctx context.Context, alertsSup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsSuppressionRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client AlertsSuppressionRulesClient) Get(ctx context.Context, alertsSuppre result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsSuppressionRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client AlertsSuppressionRulesClient) List(ctx context.Context, alertType s result.asrl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsSuppressionRulesClient", "List", resp, "Failure responding to request") + return } if result.asrl.hasNextLink() && result.asrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -302,6 +305,7 @@ func (client AlertsSuppressionRulesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsSuppressionRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -366,6 +370,7 @@ func (client AlertsSuppressionRulesClient) Update(ctx context.Context, alertsSup result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsSuppressionRulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v1.0/security/allowedconnections.go b/services/preview/security/mgmt/v1.0/security/allowedconnections.go index f17e6246b0ee..4285d99d14fa 100644 --- a/services/preview/security/mgmt/v1.0/security/allowedconnections.go +++ b/services/preview/security/mgmt/v1.0/security/allowedconnections.go @@ -86,6 +86,7 @@ func (client AllowedConnectionsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AllowedConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client AllowedConnectionsClient) List(ctx context.Context) (result Allowed result.ACL, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AllowedConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ACL.hasNextLink() && result.ACL.IsEmpty() { err = result.NextWithContext(ctx) @@ -228,6 +230,7 @@ func (client AllowedConnectionsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AllowedConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -283,6 +286,7 @@ func (client AllowedConnectionsClient) ListByHomeRegion(ctx context.Context) (re result.ACL, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AllowedConnectionsClient", "ListByHomeRegion", resp, "Failure responding to request") + return } if result.ACL.hasNextLink() && result.ACL.IsEmpty() { err = result.NextWithContext(ctx) @@ -346,6 +350,7 @@ func (client AllowedConnectionsClient) listByHomeRegionNextResults(ctx context.C result, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AllowedConnectionsClient", "listByHomeRegionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v1.0/security/automations.go b/services/preview/security/mgmt/v1.0/security/automations.go index 106e5907b9b9..3ca2e3eb25b8 100644 --- a/services/preview/security/mgmt/v1.0/security/automations.go +++ b/services/preview/security/mgmt/v1.0/security/automations.go @@ -86,6 +86,7 @@ func (client AutomationsClient) CreateOrUpdate(ctx context.Context, resourceGrou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutomationsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client AutomationsClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutomationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -259,6 +261,7 @@ func (client AutomationsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutomationsClient", "Get", resp, "Failure responding to request") + return } return @@ -339,6 +342,7 @@ func (client AutomationsClient) List(ctx context.Context) (result AutomationList result.al, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutomationsClient", "List", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -401,6 +405,7 @@ func (client AutomationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutomationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -464,6 +469,7 @@ func (client AutomationsClient) ListByResourceGroup(ctx context.Context, resourc result.al, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutomationsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -527,6 +533,7 @@ func (client AutomationsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutomationsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -591,6 +598,7 @@ func (client AutomationsClient) Validate(ctx context.Context, resourceGroupName result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutomationsClient", "Validate", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v1.0/security/autoprovisioningsettings.go b/services/preview/security/mgmt/v1.0/security/autoprovisioningsettings.go index f9467280720b..ce77a756c41b 100644 --- a/services/preview/security/mgmt/v1.0/security/autoprovisioningsettings.go +++ b/services/preview/security/mgmt/v1.0/security/autoprovisioningsettings.go @@ -80,6 +80,7 @@ func (client AutoProvisioningSettingsClient) Create(ctx context.Context, setting result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutoProvisioningSettingsClient", "Create", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client AutoProvisioningSettingsClient) Get(ctx context.Context, settingNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutoProvisioningSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client AutoProvisioningSettingsClient) List(ctx context.Context) (result A result.apsl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutoProvisioningSettingsClient", "List", resp, "Failure responding to request") + return } if result.apsl.hasNextLink() && result.apsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -301,6 +304,7 @@ func (client AutoProvisioningSettingsClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutoProvisioningSettingsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v1.0/security/compliances.go b/services/preview/security/mgmt/v1.0/security/compliances.go index dbce5f7be95f..c8440f34ffe2 100644 --- a/services/preview/security/mgmt/v1.0/security/compliances.go +++ b/services/preview/security/mgmt/v1.0/security/compliances.go @@ -73,6 +73,7 @@ func (client CompliancesClient) Get(ctx context.Context, scope string, complianc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.CompliancesClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client CompliancesClient) List(ctx context.Context, scope string) (result result.cl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.CompliancesClient", "List", resp, "Failure responding to request") + return } if result.cl.hasNextLink() && result.cl.IsEmpty() { err = result.NextWithContext(ctx) @@ -210,6 +212,7 @@ func (client CompliancesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.CompliancesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v1.0/security/connectors.go b/services/preview/security/mgmt/v1.0/security/connectors.go index f49e28025643..9cca36e79d81 100644 --- a/services/preview/security/mgmt/v1.0/security/connectors.go +++ b/services/preview/security/mgmt/v1.0/security/connectors.go @@ -80,6 +80,7 @@ func (client ConnectorsClient) CreateOrUpdate(ctx context.Context, connectorName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ConnectorsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client ConnectorsClient) Delete(ctx context.Context, connectorName string) result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ConnectorsClient", "Delete", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client ConnectorsClient) Get(ctx context.Context, connectorName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ConnectorsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client ConnectorsClient) List(ctx context.Context) (result ConnectorSettin result.csl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ConnectorsClient", "List", resp, "Failure responding to request") + return } if result.csl.hasNextLink() && result.csl.IsEmpty() { err = result.NextWithContext(ctx) @@ -379,6 +383,7 @@ func (client ConnectorsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ConnectorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v1.0/security/contacts.go b/services/preview/security/mgmt/v1.0/security/contacts.go index 3bacee1cf631..ceeae541210b 100644 --- a/services/preview/security/mgmt/v1.0/security/contacts.go +++ b/services/preview/security/mgmt/v1.0/security/contacts.go @@ -82,6 +82,7 @@ func (client ContactsClient) Create(ctx context.Context, securityContactName str result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ContactsClient", "Create", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ContactsClient) Delete(ctx context.Context, securityContactName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ContactsClient", "Delete", resp, "Failure responding to request") + return } return @@ -241,6 +243,7 @@ func (client ContactsClient) Get(ctx context.Context, securityContactName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ContactsClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +322,7 @@ func (client ContactsClient) List(ctx context.Context) (result ContactListPage, result.cl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ContactsClient", "List", resp, "Failure responding to request") + return } if result.cl.hasNextLink() && result.cl.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +385,7 @@ func (client ContactsClient) listNextResults(ctx context.Context, lastResults Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ContactsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -438,6 +443,7 @@ func (client ContactsClient) Update(ctx context.Context, securityContactName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ContactsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v1.0/security/devicesecuritygroups.go b/services/preview/security/mgmt/v1.0/security/devicesecuritygroups.go index ecf45105c080..90c4a92b1da9 100644 --- a/services/preview/security/mgmt/v1.0/security/devicesecuritygroups.go +++ b/services/preview/security/mgmt/v1.0/security/devicesecuritygroups.go @@ -75,6 +75,7 @@ func (client DeviceSecurityGroupsClient) CreateOrUpdate(ctx context.Context, res result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client DeviceSecurityGroupsClient) Delete(ctx context.Context, resourceID result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client DeviceSecurityGroupsClient) Get(ctx context.Context, resourceID str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client DeviceSecurityGroupsClient) List(ctx context.Context, resourceID st result.dsgl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.dsgl.hasNextLink() && result.dsgl.IsEmpty() { err = result.NextWithContext(ctx) @@ -362,6 +366,7 @@ func (client DeviceSecurityGroupsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v1.0/security/discoveredsecuritysolutions.go b/services/preview/security/mgmt/v1.0/security/discoveredsecuritysolutions.go index 5a7dbc4db609..278557365c16 100644 --- a/services/preview/security/mgmt/v1.0/security/discoveredsecuritysolutions.go +++ b/services/preview/security/mgmt/v1.0/security/discoveredsecuritysolutions.go @@ -85,6 +85,7 @@ func (client DiscoveredSecuritySolutionsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DiscoveredSecuritySolutionsClient", "Get", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client DiscoveredSecuritySolutionsClient) List(ctx context.Context) (resul result.dssl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DiscoveredSecuritySolutionsClient", "List", resp, "Failure responding to request") + return } if result.dssl.hasNextLink() && result.dssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -227,6 +229,7 @@ func (client DiscoveredSecuritySolutionsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DiscoveredSecuritySolutionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -282,6 +285,7 @@ func (client DiscoveredSecuritySolutionsClient) ListByHomeRegion(ctx context.Con result.dssl, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DiscoveredSecuritySolutionsClient", "ListByHomeRegion", resp, "Failure responding to request") + return } if result.dssl.hasNextLink() && result.dssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -345,6 +349,7 @@ func (client DiscoveredSecuritySolutionsClient) listByHomeRegionNextResults(ctx result, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DiscoveredSecuritySolutionsClient", "listByHomeRegionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v1.0/security/externalsecuritysolutions.go b/services/preview/security/mgmt/v1.0/security/externalsecuritysolutions.go index 5a8b51470d1d..8b5a358baa9a 100644 --- a/services/preview/security/mgmt/v1.0/security/externalsecuritysolutions.go +++ b/services/preview/security/mgmt/v1.0/security/externalsecuritysolutions.go @@ -85,6 +85,7 @@ func (client ExternalSecuritySolutionsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ExternalSecuritySolutionsClient", "Get", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client ExternalSecuritySolutionsClient) List(ctx context.Context) (result result.essl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ExternalSecuritySolutionsClient", "List", resp, "Failure responding to request") + return } if result.essl.hasNextLink() && result.essl.IsEmpty() { err = result.NextWithContext(ctx) @@ -227,6 +229,7 @@ func (client ExternalSecuritySolutionsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ExternalSecuritySolutionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -282,6 +285,7 @@ func (client ExternalSecuritySolutionsClient) ListByHomeRegion(ctx context.Conte result.essl, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ExternalSecuritySolutionsClient", "ListByHomeRegion", resp, "Failure responding to request") + return } if result.essl.hasNextLink() && result.essl.IsEmpty() { err = result.NextWithContext(ctx) @@ -345,6 +349,7 @@ func (client ExternalSecuritySolutionsClient) listByHomeRegionNextResults(ctx co result, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ExternalSecuritySolutionsClient", "listByHomeRegionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v1.0/security/informationprotectionpolicies.go b/services/preview/security/mgmt/v1.0/security/informationprotectionpolicies.go index 22f070a19352..763996043ce7 100644 --- a/services/preview/security/mgmt/v1.0/security/informationprotectionpolicies.go +++ b/services/preview/security/mgmt/v1.0/security/informationprotectionpolicies.go @@ -75,6 +75,7 @@ func (client InformationProtectionPoliciesClient) CreateOrUpdate(ctx context.Con result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.InformationProtectionPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client InformationProtectionPoliciesClient) Get(ctx context.Context, scope result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.InformationProtectionPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -227,6 +229,7 @@ func (client InformationProtectionPoliciesClient) List(ctx context.Context, scop result.ippl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.InformationProtectionPoliciesClient", "List", resp, "Failure responding to request") + return } if result.ippl.hasNextLink() && result.ippl.IsEmpty() { err = result.NextWithContext(ctx) @@ -289,6 +292,7 @@ func (client InformationProtectionPoliciesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.InformationProtectionPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v1.0/security/jitnetworkaccesspolicies.go b/services/preview/security/mgmt/v1.0/security/jitnetworkaccesspolicies.go index 423f82fa3af1..7be4c905b996 100644 --- a/services/preview/security/mgmt/v1.0/security/jitnetworkaccesspolicies.go +++ b/services/preview/security/mgmt/v1.0/security/jitnetworkaccesspolicies.go @@ -88,6 +88,7 @@ func (client JitNetworkAccessPoliciesClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client JitNetworkAccessPoliciesClient) Delete(ctx context.Context, resourc result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -267,6 +269,7 @@ func (client JitNetworkAccessPoliciesClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -356,6 +359,7 @@ func (client JitNetworkAccessPoliciesClient) Initiate(ctx context.Context, resou result, err = client.InitiateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "Initiate", resp, "Failure responding to request") + return } return @@ -439,6 +443,7 @@ func (client JitNetworkAccessPoliciesClient) List(ctx context.Context) (result J result.jnapl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "List", resp, "Failure responding to request") + return } if result.jnapl.hasNextLink() && result.jnapl.IsEmpty() { err = result.NextWithContext(ctx) @@ -501,6 +506,7 @@ func (client JitNetworkAccessPoliciesClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -556,6 +562,7 @@ func (client JitNetworkAccessPoliciesClient) ListByRegion(ctx context.Context) ( result.jnapl, err = client.ListByRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "ListByRegion", resp, "Failure responding to request") + return } if result.jnapl.hasNextLink() && result.jnapl.IsEmpty() { err = result.NextWithContext(ctx) @@ -619,6 +626,7 @@ func (client JitNetworkAccessPoliciesClient) listByRegionNextResults(ctx context result, err = client.ListByRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "listByRegionNextResults", resp, "Failure responding to next results request") + return } return } @@ -682,6 +690,7 @@ func (client JitNetworkAccessPoliciesClient) ListByResourceGroup(ctx context.Con result.jnapl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.jnapl.hasNextLink() && result.jnapl.IsEmpty() { err = result.NextWithContext(ctx) @@ -745,6 +754,7 @@ func (client JitNetworkAccessPoliciesClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -808,6 +818,7 @@ func (client JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegion(ctx co result.jnapl, err = client.ListByResourceGroupAndRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "ListByResourceGroupAndRegion", resp, "Failure responding to request") + return } if result.jnapl.hasNextLink() && result.jnapl.IsEmpty() { err = result.NextWithContext(ctx) @@ -872,6 +883,7 @@ func (client JitNetworkAccessPoliciesClient) listByResourceGroupAndRegionNextRes result, err = client.ListByResourceGroupAndRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "listByResourceGroupAndRegionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v1.0/security/locations.go b/services/preview/security/mgmt/v1.0/security/locations.go index cccea770f716..3da6b15d7f0c 100644 --- a/services/preview/security/mgmt/v1.0/security/locations.go +++ b/services/preview/security/mgmt/v1.0/security/locations.go @@ -76,6 +76,7 @@ func (client LocationsClient) Get(ctx context.Context) (result AscLocation, err result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.LocationsClient", "Get", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client LocationsClient) List(ctx context.Context) (result AscLocationListP result.all, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.LocationsClient", "List", resp, "Failure responding to request") + return } if result.all.hasNextLink() && result.all.IsEmpty() { err = result.NextWithContext(ctx) @@ -218,6 +220,7 @@ func (client LocationsClient) listNextResults(ctx context.Context, lastResults A result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.LocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v1.0/security/operations.go b/services/preview/security/mgmt/v1.0/security/operations.go index 7c0687ccd870..182e56dac878 100644 --- a/services/preview/security/mgmt/v1.0/security/operations.go +++ b/services/preview/security/mgmt/v1.0/security/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListPa result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v1.0/security/pricings.go b/services/preview/security/mgmt/v1.0/security/pricings.go index c12fde5406c6..66c9d508957e 100644 --- a/services/preview/security/mgmt/v1.0/security/pricings.go +++ b/services/preview/security/mgmt/v1.0/security/pricings.go @@ -85,6 +85,7 @@ func (client PricingsClient) CreateOrUpdateResourceGroupPricing(ctx context.Cont result, err = client.CreateOrUpdateResourceGroupPricingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.PricingsClient", "CreateOrUpdateResourceGroupPricing", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client PricingsClient) GetResourceGroupPricing(ctx context.Context, resour result, err = client.GetResourceGroupPricingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.PricingsClient", "GetResourceGroupPricing", resp, "Failure responding to request") + return } return @@ -254,6 +256,7 @@ func (client PricingsClient) GetSubscriptionPricing(ctx context.Context, pricing result, err = client.GetSubscriptionPricingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.PricingsClient", "GetSubscriptionPricing", resp, "Failure responding to request") + return } return @@ -332,6 +335,7 @@ func (client PricingsClient) List(ctx context.Context) (result PricingListPage, result.pl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.PricingsClient", "List", resp, "Failure responding to request") + return } if result.pl.hasNextLink() && result.pl.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +398,7 @@ func (client PricingsClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.PricingsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -456,6 +461,7 @@ func (client PricingsClient) ListByResourceGroup(ctx context.Context, resourceGr result.pl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.PricingsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.pl.hasNextLink() && result.pl.IsEmpty() { err = result.NextWithContext(ctx) @@ -519,6 +525,7 @@ func (client PricingsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.PricingsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -576,6 +583,7 @@ func (client PricingsClient) UpdateSubscriptionPricing(ctx context.Context, pric result, err = client.UpdateSubscriptionPricingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.PricingsClient", "UpdateSubscriptionPricing", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v1.0/security/regulatorycomplianceassessments.go b/services/preview/security/mgmt/v1.0/security/regulatorycomplianceassessments.go index 64de12cdf182..2ac9c4c141cd 100644 --- a/services/preview/security/mgmt/v1.0/security/regulatorycomplianceassessments.go +++ b/services/preview/security/mgmt/v1.0/security/regulatorycomplianceassessments.go @@ -82,6 +82,7 @@ func (client RegulatoryComplianceAssessmentsClient) Get(ctx context.Context, reg result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceAssessmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client RegulatoryComplianceAssessmentsClient) List(ctx context.Context, re result.rcal, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceAssessmentsClient", "List", resp, "Failure responding to request") + return } if result.rcal.hasNextLink() && result.rcal.IsEmpty() { err = result.NextWithContext(ctx) @@ -233,6 +235,7 @@ func (client RegulatoryComplianceAssessmentsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceAssessmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v1.0/security/regulatorycompliancecontrols.go b/services/preview/security/mgmt/v1.0/security/regulatorycompliancecontrols.go index 069e0c6880db..70a6470c3498 100644 --- a/services/preview/security/mgmt/v1.0/security/regulatorycompliancecontrols.go +++ b/services/preview/security/mgmt/v1.0/security/regulatorycompliancecontrols.go @@ -80,6 +80,7 @@ func (client RegulatoryComplianceControlsClient) Get(ctx context.Context, regula result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceControlsClient", "Get", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client RegulatoryComplianceControlsClient) List(ctx context.Context, regul result.rccl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceControlsClient", "List", resp, "Failure responding to request") + return } if result.rccl.hasNextLink() && result.rccl.IsEmpty() { err = result.NextWithContext(ctx) @@ -228,6 +230,7 @@ func (client RegulatoryComplianceControlsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceControlsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v1.0/security/regulatorycompliancestandards.go b/services/preview/security/mgmt/v1.0/security/regulatorycompliancestandards.go index 62e3a715ae30..1c2bf9f19d8e 100644 --- a/services/preview/security/mgmt/v1.0/security/regulatorycompliancestandards.go +++ b/services/preview/security/mgmt/v1.0/security/regulatorycompliancestandards.go @@ -79,6 +79,7 @@ func (client RegulatoryComplianceStandardsClient) Get(ctx context.Context, regul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceStandardsClient", "Get", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client RegulatoryComplianceStandardsClient) List(ctx context.Context, filt result.rcsl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceStandardsClient", "List", resp, "Failure responding to request") + return } if result.rcsl.hasNextLink() && result.rcsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -224,6 +226,7 @@ func (client RegulatoryComplianceStandardsClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceStandardsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v1.0/security/securescorecontroldefinitions.go b/services/preview/security/mgmt/v1.0/security/securescorecontroldefinitions.go index ec41c4bb8a07..7bf0f369f241 100644 --- a/services/preview/security/mgmt/v1.0/security/securescorecontroldefinitions.go +++ b/services/preview/security/mgmt/v1.0/security/securescorecontroldefinitions.go @@ -72,6 +72,7 @@ func (client SecureScoreControlDefinitionsClient) List(ctx context.Context) (res result.sscdl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlDefinitionsClient", "List", resp, "Failure responding to request") + return } if result.sscdl.hasNextLink() && result.sscdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client SecureScoreControlDefinitionsClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlDefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -186,6 +188,7 @@ func (client SecureScoreControlDefinitionsClient) ListBySubscription(ctx context result.sscdl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlDefinitionsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.sscdl.hasNextLink() && result.sscdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -248,6 +251,7 @@ func (client SecureScoreControlDefinitionsClient) listBySubscriptionNextResults( result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlDefinitionsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v1.0/security/securescorecontrols.go b/services/preview/security/mgmt/v1.0/security/securescorecontrols.go index 5b1ccb5acd6e..a977828b0460 100644 --- a/services/preview/security/mgmt/v1.0/security/securescorecontrols.go +++ b/services/preview/security/mgmt/v1.0/security/securescorecontrols.go @@ -80,6 +80,7 @@ func (client SecureScoreControlsClient) List(ctx context.Context, expand ExpandC result.sscl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlsClient", "List", resp, "Failure responding to request") + return } if result.sscl.hasNextLink() && result.sscl.IsEmpty() { err = result.NextWithContext(ctx) @@ -145,6 +146,7 @@ func (client SecureScoreControlsClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -204,6 +206,7 @@ func (client SecureScoreControlsClient) ListBySecureScore(ctx context.Context, s result.sscl, err = client.ListBySecureScoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlsClient", "ListBySecureScore", resp, "Failure responding to request") + return } if result.sscl.hasNextLink() && result.sscl.IsEmpty() { err = result.NextWithContext(ctx) @@ -270,6 +273,7 @@ func (client SecureScoreControlsClient) listBySecureScoreNextResults(ctx context result, err = client.ListBySecureScoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlsClient", "listBySecureScoreNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v1.0/security/securescores.go b/services/preview/security/mgmt/v1.0/security/securescores.go index 1b2511acfa6a..94ae9c21a257 100644 --- a/services/preview/security/mgmt/v1.0/security/securescores.go +++ b/services/preview/security/mgmt/v1.0/security/securescores.go @@ -80,6 +80,7 @@ func (client SecureScoresClient) Get(ctx context.Context, secureScoreName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoresClient", "Get", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client SecureScoresClient) List(ctx context.Context) (result SecureScoresL result.ssl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoresClient", "List", resp, "Failure responding to request") + return } if result.ssl.hasNextLink() && result.ssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -220,6 +222,7 @@ func (client SecureScoresClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoresClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v1.0/security/settings.go b/services/preview/security/mgmt/v1.0/security/settings.go index e01213ccaf80..8a14279fd18b 100644 --- a/services/preview/security/mgmt/v1.0/security/settings.go +++ b/services/preview/security/mgmt/v1.0/security/settings.go @@ -78,6 +78,7 @@ func (client SettingsClient) Get(ctx context.Context, settingName string) (resul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client SettingsClient) List(ctx context.Context) (result SettingsListPage, result.sl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SettingsClient", "List", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -218,6 +220,7 @@ func (client SettingsClient) listNextResults(ctx context.Context, lastResults Se result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SettingsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -275,6 +278,7 @@ func (client SettingsClient) Update(ctx context.Context, settingName string, set result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v1.0/security/sqlvulnerabilityassessmentbaselinerules.go b/services/preview/security/mgmt/v1.0/security/sqlvulnerabilityassessmentbaselinerules.go index 4d5d80df050e..1969b055a3bc 100644 --- a/services/preview/security/mgmt/v1.0/security/sqlvulnerabilityassessmentbaselinerules.go +++ b/services/preview/security/mgmt/v1.0/security/sqlvulnerabilityassessmentbaselinerules.go @@ -77,6 +77,7 @@ func (client SQLVulnerabilityAssessmentBaselineRulesClient) Add(ctx context.Cont result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentBaselineRulesClient", "Add", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client SQLVulnerabilityAssessmentBaselineRulesClient) CreateOrUpdate(ctx c result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentBaselineRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client SQLVulnerabilityAssessmentBaselineRulesClient) Delete(ctx context.C result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentBaselineRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -314,6 +317,7 @@ func (client SQLVulnerabilityAssessmentBaselineRulesClient) Get(ctx context.Cont result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentBaselineRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -389,6 +393,7 @@ func (client SQLVulnerabilityAssessmentBaselineRulesClient) List(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentBaselineRulesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v1.0/security/sqlvulnerabilityassessmentscanresults.go b/services/preview/security/mgmt/v1.0/security/sqlvulnerabilityassessmentscanresults.go index a0d9caa08ef9..56e271a5d9c7 100644 --- a/services/preview/security/mgmt/v1.0/security/sqlvulnerabilityassessmentscanresults.go +++ b/services/preview/security/mgmt/v1.0/security/sqlvulnerabilityassessmentscanresults.go @@ -78,6 +78,7 @@ func (client SQLVulnerabilityAssessmentScanResultsClient) Get(ctx context.Contex result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentScanResultsClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client SQLVulnerabilityAssessmentScanResultsClient) List(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentScanResultsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v1.0/security/sqlvulnerabilityassessmentscans.go b/services/preview/security/mgmt/v1.0/security/sqlvulnerabilityassessmentscans.go index 417f3081f74c..d8210adcf4cf 100644 --- a/services/preview/security/mgmt/v1.0/security/sqlvulnerabilityassessmentscans.go +++ b/services/preview/security/mgmt/v1.0/security/sqlvulnerabilityassessmentscans.go @@ -76,6 +76,7 @@ func (client SQLVulnerabilityAssessmentScansClient) Get(ctx context.Context, sca result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentScansClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client SQLVulnerabilityAssessmentScansClient) List(ctx context.Context, wo result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentScansClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v1.0/security/subassessments.go b/services/preview/security/mgmt/v1.0/security/subassessments.go index dcb46b74ca9d..5ad0f914731b 100644 --- a/services/preview/security/mgmt/v1.0/security/subassessments.go +++ b/services/preview/security/mgmt/v1.0/security/subassessments.go @@ -74,6 +74,7 @@ func (client SubAssessmentsClient) Get(ctx context.Context, scope string, assess result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SubAssessmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client SubAssessmentsClient) List(ctx context.Context, scope string, asses result.sal, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SubAssessmentsClient", "List", resp, "Failure responding to request") + return } if result.sal.hasNextLink() && result.sal.IsEmpty() { err = result.NextWithContext(ctx) @@ -214,6 +216,7 @@ func (client SubAssessmentsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SubAssessmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -266,6 +269,7 @@ func (client SubAssessmentsClient) ListAll(ctx context.Context, scope string) (r result.sal, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SubAssessmentsClient", "ListAll", resp, "Failure responding to request") + return } if result.sal.hasNextLink() && result.sal.IsEmpty() { err = result.NextWithContext(ctx) @@ -328,6 +332,7 @@ func (client SubAssessmentsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SubAssessmentsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v1.0/security/tasks.go b/services/preview/security/mgmt/v1.0/security/tasks.go index 34d8790bd7c7..a7fc1430a58c 100644 --- a/services/preview/security/mgmt/v1.0/security/tasks.go +++ b/services/preview/security/mgmt/v1.0/security/tasks.go @@ -84,6 +84,7 @@ func (client TasksClient) GetResourceGroupLevelTask(ctx context.Context, resourc result, err = client.GetResourceGroupLevelTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "GetResourceGroupLevelTask", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client TasksClient) GetSubscriptionLevelTask(ctx context.Context, taskName result, err = client.GetSubscriptionLevelTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "GetSubscriptionLevelTask", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client TasksClient) List(ctx context.Context, filter string) (result TaskL result.tl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "List", resp, "Failure responding to request") + return } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) @@ -311,6 +314,7 @@ func (client TasksClient) listNextResults(ctx context.Context, lastResults TaskL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -368,6 +372,7 @@ func (client TasksClient) ListByHomeRegion(ctx context.Context, filter string) ( result.tl, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "ListByHomeRegion", resp, "Failure responding to request") + return } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) @@ -434,6 +439,7 @@ func (client TasksClient) listByHomeRegionNextResults(ctx context.Context, lastR result, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "listByHomeRegionNextResults", resp, "Failure responding to next results request") + return } return } @@ -497,6 +503,7 @@ func (client TasksClient) ListByResourceGroup(ctx context.Context, resourceGroup result.tl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) @@ -564,6 +571,7 @@ func (client TasksClient) listByResourceGroupNextResults(ctx context.Context, la result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -628,6 +636,7 @@ func (client TasksClient) UpdateResourceGroupLevelTaskState(ctx context.Context, result, err = client.UpdateResourceGroupLevelTaskStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "UpdateResourceGroupLevelTaskState", resp, "Failure responding to request") + return } return @@ -711,6 +720,7 @@ func (client TasksClient) UpdateSubscriptionLevelTaskState(ctx context.Context, result, err = client.UpdateSubscriptionLevelTaskStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "UpdateSubscriptionLevelTaskState", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v1.0/security/topology.go b/services/preview/security/mgmt/v1.0/security/topology.go index 1ba4df892c23..84642529d7d1 100644 --- a/services/preview/security/mgmt/v1.0/security/topology.go +++ b/services/preview/security/mgmt/v1.0/security/topology.go @@ -84,6 +84,7 @@ func (client TopologyClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TopologyClient", "Get", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client TopologyClient) List(ctx context.Context) (result TopologyListPage, result.tl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TopologyClient", "List", resp, "Failure responding to request") + return } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) @@ -226,6 +228,7 @@ func (client TopologyClient) listNextResults(ctx context.Context, lastResults To result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TopologyClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -281,6 +284,7 @@ func (client TopologyClient) ListByHomeRegion(ctx context.Context) (result Topol result.tl, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TopologyClient", "ListByHomeRegion", resp, "Failure responding to request") + return } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) @@ -344,6 +348,7 @@ func (client TopologyClient) listByHomeRegionNextResults(ctx context.Context, la result, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TopologyClient", "listByHomeRegionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v1.0/security/workspacesettings.go b/services/preview/security/mgmt/v1.0/security/workspacesettings.go index 9eb533d2e638..41f3137c7d4d 100644 --- a/services/preview/security/mgmt/v1.0/security/workspacesettings.go +++ b/services/preview/security/mgmt/v1.0/security/workspacesettings.go @@ -85,6 +85,7 @@ func (client WorkspaceSettingsClient) Create(ctx context.Context, workspaceSetti result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.WorkspaceSettingsClient", "Create", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client WorkspaceSettingsClient) Delete(ctx context.Context, workspaceSetti result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.WorkspaceSettingsClient", "Delete", resp, "Failure responding to request") + return } return @@ -245,6 +247,7 @@ func (client WorkspaceSettingsClient) Get(ctx context.Context, workspaceSettingN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.WorkspaceSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -324,6 +327,7 @@ func (client WorkspaceSettingsClient) List(ctx context.Context) (result Workspac result.wsl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.WorkspaceSettingsClient", "List", resp, "Failure responding to request") + return } if result.wsl.hasNextLink() && result.wsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +390,7 @@ func (client WorkspaceSettingsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.WorkspaceSettingsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +448,7 @@ func (client WorkspaceSettingsClient) Update(ctx context.Context, workspaceSetti result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.WorkspaceSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v2.0/security/adaptiveapplicationcontrols.go b/services/preview/security/mgmt/v2.0/security/adaptiveapplicationcontrols.go index b5c1ac56459b..cd54bc66df5b 100644 --- a/services/preview/security/mgmt/v2.0/security/adaptiveapplicationcontrols.go +++ b/services/preview/security/mgmt/v2.0/security/adaptiveapplicationcontrols.go @@ -79,6 +79,7 @@ func (client AdaptiveApplicationControlsClient) Delete(ctx context.Context, grou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdaptiveApplicationControlsClient", "Delete", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client AdaptiveApplicationControlsClient) Get(ctx context.Context, groupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdaptiveApplicationControlsClient", "Get", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client AdaptiveApplicationControlsClient) List(ctx context.Context, includ result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdaptiveApplicationControlsClient", "List", resp, "Failure responding to request") + return } return @@ -324,6 +327,7 @@ func (client AdaptiveApplicationControlsClient) Put(ctx context.Context, groupNa result, err = client.PutResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdaptiveApplicationControlsClient", "Put", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v2.0/security/adaptivenetworkhardenings.go b/services/preview/security/mgmt/v2.0/security/adaptivenetworkhardenings.go index aff3104373b6..0e053e4034e0 100644 --- a/services/preview/security/mgmt/v2.0/security/adaptivenetworkhardenings.go +++ b/services/preview/security/mgmt/v2.0/security/adaptivenetworkhardenings.go @@ -185,6 +185,7 @@ func (client AdaptiveNetworkHardeningsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdaptiveNetworkHardeningsClient", "Get", resp, "Failure responding to request") + return } return @@ -277,6 +278,7 @@ func (client AdaptiveNetworkHardeningsClient) ListByExtendedResource(ctx context result.anhl, err = client.ListByExtendedResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdaptiveNetworkHardeningsClient", "ListByExtendedResource", resp, "Failure responding to request") + return } if result.anhl.hasNextLink() && result.anhl.IsEmpty() { err = result.NextWithContext(ctx) @@ -343,6 +345,7 @@ func (client AdaptiveNetworkHardeningsClient) listByExtendedResourceNextResults( result, err = client.ListByExtendedResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdaptiveNetworkHardeningsClient", "listByExtendedResourceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v2.0/security/advancedthreatprotection.go b/services/preview/security/mgmt/v2.0/security/advancedthreatprotection.go index 2bd63720d32e..86ff1d890cca 100644 --- a/services/preview/security/mgmt/v2.0/security/advancedthreatprotection.go +++ b/services/preview/security/mgmt/v2.0/security/advancedthreatprotection.go @@ -73,6 +73,7 @@ func (client AdvancedThreatProtectionClient) Create(ctx context.Context, resourc result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdvancedThreatProtectionClient", "Create", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client AdvancedThreatProtectionClient) Get(ctx context.Context, resourceID result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdvancedThreatProtectionClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v2.0/security/alerts.go b/services/preview/security/mgmt/v2.0/security/alerts.go index e3aad9443746..0d4e13b6503c 100644 --- a/services/preview/security/mgmt/v2.0/security/alerts.go +++ b/services/preview/security/mgmt/v2.0/security/alerts.go @@ -84,6 +84,7 @@ func (client AlertsClient) GetResourceGroupLevelAlerts(ctx context.Context, aler result, err = client.GetResourceGroupLevelAlertsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "GetResourceGroupLevelAlerts", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client AlertsClient) GetSubscriptionLevelAlert(ctx context.Context, alertN result, err = client.GetSubscriptionLevelAlertResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "GetSubscriptionLevelAlert", resp, "Failure responding to request") + return } return @@ -250,6 +252,7 @@ func (client AlertsClient) List(ctx context.Context, filter string, selectParame result.al, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "List", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -324,6 +327,7 @@ func (client AlertsClient) listNextResults(ctx context.Context, lastResults Aler result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -391,6 +395,7 @@ func (client AlertsClient) ListByResourceGroup(ctx context.Context, resourceGrou result.al, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +471,7 @@ func (client AlertsClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -534,6 +540,7 @@ func (client AlertsClient) ListResourceGroupLevelAlertsByRegion(ctx context.Cont result.al, err = client.ListResourceGroupLevelAlertsByRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "ListResourceGroupLevelAlertsByRegion", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -610,6 +617,7 @@ func (client AlertsClient) listResourceGroupLevelAlertsByRegionNextResults(ctx c result, err = client.ListResourceGroupLevelAlertsByRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "listResourceGroupLevelAlertsByRegionNextResults", resp, "Failure responding to next results request") + return } return } @@ -672,6 +680,7 @@ func (client AlertsClient) ListSubscriptionLevelAlertsByRegion(ctx context.Conte result.al, err = client.ListSubscriptionLevelAlertsByRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "ListSubscriptionLevelAlertsByRegion", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -747,6 +756,7 @@ func (client AlertsClient) listSubscriptionLevelAlertsByRegionNextResults(ctx co result, err = client.ListSubscriptionLevelAlertsByRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "listSubscriptionLevelAlertsByRegionNextResults", resp, "Failure responding to next results request") + return } return } @@ -809,6 +819,7 @@ func (client AlertsClient) UpdateResourceGroupLevelAlertStateToDismiss(ctx conte result, err = client.UpdateResourceGroupLevelAlertStateToDismissResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "UpdateResourceGroupLevelAlertStateToDismiss", resp, "Failure responding to request") + return } return @@ -895,6 +906,7 @@ func (client AlertsClient) UpdateResourceGroupLevelAlertStateToReactivate(ctx co result, err = client.UpdateResourceGroupLevelAlertStateToReactivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "UpdateResourceGroupLevelAlertStateToReactivate", resp, "Failure responding to request") + return } return @@ -975,6 +987,7 @@ func (client AlertsClient) UpdateSubscriptionLevelAlertStateToDismiss(ctx contex result, err = client.UpdateSubscriptionLevelAlertStateToDismissResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "UpdateSubscriptionLevelAlertStateToDismiss", resp, "Failure responding to request") + return } return @@ -1054,6 +1067,7 @@ func (client AlertsClient) UpdateSubscriptionLevelAlertStateToReactivate(ctx con result, err = client.UpdateSubscriptionLevelAlertStateToReactivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "UpdateSubscriptionLevelAlertStateToReactivate", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v2.0/security/alertssuppressionrules.go b/services/preview/security/mgmt/v2.0/security/alertssuppressionrules.go index 74f0e82f8e8a..7ce77cd1e95e 100644 --- a/services/preview/security/mgmt/v2.0/security/alertssuppressionrules.go +++ b/services/preview/security/mgmt/v2.0/security/alertssuppressionrules.go @@ -79,6 +79,7 @@ func (client AlertsSuppressionRulesClient) Delete(ctx context.Context, alertsSup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsSuppressionRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client AlertsSuppressionRulesClient) Get(ctx context.Context, alertsSuppre result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsSuppressionRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client AlertsSuppressionRulesClient) List(ctx context.Context, alertType s result.asrl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsSuppressionRulesClient", "List", resp, "Failure responding to request") + return } if result.asrl.hasNextLink() && result.asrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -302,6 +305,7 @@ func (client AlertsSuppressionRulesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsSuppressionRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -366,6 +370,7 @@ func (client AlertsSuppressionRulesClient) Update(ctx context.Context, alertsSup result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsSuppressionRulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v2.0/security/allowedconnections.go b/services/preview/security/mgmt/v2.0/security/allowedconnections.go index f17e6246b0ee..4285d99d14fa 100644 --- a/services/preview/security/mgmt/v2.0/security/allowedconnections.go +++ b/services/preview/security/mgmt/v2.0/security/allowedconnections.go @@ -86,6 +86,7 @@ func (client AllowedConnectionsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AllowedConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client AllowedConnectionsClient) List(ctx context.Context) (result Allowed result.ACL, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AllowedConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ACL.hasNextLink() && result.ACL.IsEmpty() { err = result.NextWithContext(ctx) @@ -228,6 +230,7 @@ func (client AllowedConnectionsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AllowedConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -283,6 +286,7 @@ func (client AllowedConnectionsClient) ListByHomeRegion(ctx context.Context) (re result.ACL, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AllowedConnectionsClient", "ListByHomeRegion", resp, "Failure responding to request") + return } if result.ACL.hasNextLink() && result.ACL.IsEmpty() { err = result.NextWithContext(ctx) @@ -346,6 +350,7 @@ func (client AllowedConnectionsClient) listByHomeRegionNextResults(ctx context.C result, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AllowedConnectionsClient", "listByHomeRegionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v2.0/security/automations.go b/services/preview/security/mgmt/v2.0/security/automations.go index 106e5907b9b9..3ca2e3eb25b8 100644 --- a/services/preview/security/mgmt/v2.0/security/automations.go +++ b/services/preview/security/mgmt/v2.0/security/automations.go @@ -86,6 +86,7 @@ func (client AutomationsClient) CreateOrUpdate(ctx context.Context, resourceGrou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutomationsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client AutomationsClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutomationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -259,6 +261,7 @@ func (client AutomationsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutomationsClient", "Get", resp, "Failure responding to request") + return } return @@ -339,6 +342,7 @@ func (client AutomationsClient) List(ctx context.Context) (result AutomationList result.al, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutomationsClient", "List", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -401,6 +405,7 @@ func (client AutomationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutomationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -464,6 +469,7 @@ func (client AutomationsClient) ListByResourceGroup(ctx context.Context, resourc result.al, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutomationsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -527,6 +533,7 @@ func (client AutomationsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutomationsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -591,6 +598,7 @@ func (client AutomationsClient) Validate(ctx context.Context, resourceGroupName result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutomationsClient", "Validate", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v2.0/security/autoprovisioningsettings.go b/services/preview/security/mgmt/v2.0/security/autoprovisioningsettings.go index f9467280720b..ce77a756c41b 100644 --- a/services/preview/security/mgmt/v2.0/security/autoprovisioningsettings.go +++ b/services/preview/security/mgmt/v2.0/security/autoprovisioningsettings.go @@ -80,6 +80,7 @@ func (client AutoProvisioningSettingsClient) Create(ctx context.Context, setting result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutoProvisioningSettingsClient", "Create", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client AutoProvisioningSettingsClient) Get(ctx context.Context, settingNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutoProvisioningSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client AutoProvisioningSettingsClient) List(ctx context.Context) (result A result.apsl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutoProvisioningSettingsClient", "List", resp, "Failure responding to request") + return } if result.apsl.hasNextLink() && result.apsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -301,6 +304,7 @@ func (client AutoProvisioningSettingsClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutoProvisioningSettingsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v2.0/security/compliances.go b/services/preview/security/mgmt/v2.0/security/compliances.go index dbce5f7be95f..c8440f34ffe2 100644 --- a/services/preview/security/mgmt/v2.0/security/compliances.go +++ b/services/preview/security/mgmt/v2.0/security/compliances.go @@ -73,6 +73,7 @@ func (client CompliancesClient) Get(ctx context.Context, scope string, complianc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.CompliancesClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client CompliancesClient) List(ctx context.Context, scope string) (result result.cl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.CompliancesClient", "List", resp, "Failure responding to request") + return } if result.cl.hasNextLink() && result.cl.IsEmpty() { err = result.NextWithContext(ctx) @@ -210,6 +212,7 @@ func (client CompliancesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.CompliancesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v2.0/security/connectors.go b/services/preview/security/mgmt/v2.0/security/connectors.go index f49e28025643..9cca36e79d81 100644 --- a/services/preview/security/mgmt/v2.0/security/connectors.go +++ b/services/preview/security/mgmt/v2.0/security/connectors.go @@ -80,6 +80,7 @@ func (client ConnectorsClient) CreateOrUpdate(ctx context.Context, connectorName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ConnectorsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client ConnectorsClient) Delete(ctx context.Context, connectorName string) result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ConnectorsClient", "Delete", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client ConnectorsClient) Get(ctx context.Context, connectorName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ConnectorsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client ConnectorsClient) List(ctx context.Context) (result ConnectorSettin result.csl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ConnectorsClient", "List", resp, "Failure responding to request") + return } if result.csl.hasNextLink() && result.csl.IsEmpty() { err = result.NextWithContext(ctx) @@ -379,6 +383,7 @@ func (client ConnectorsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ConnectorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v2.0/security/contacts.go b/services/preview/security/mgmt/v2.0/security/contacts.go index 3bacee1cf631..ceeae541210b 100644 --- a/services/preview/security/mgmt/v2.0/security/contacts.go +++ b/services/preview/security/mgmt/v2.0/security/contacts.go @@ -82,6 +82,7 @@ func (client ContactsClient) Create(ctx context.Context, securityContactName str result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ContactsClient", "Create", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ContactsClient) Delete(ctx context.Context, securityContactName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ContactsClient", "Delete", resp, "Failure responding to request") + return } return @@ -241,6 +243,7 @@ func (client ContactsClient) Get(ctx context.Context, securityContactName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ContactsClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +322,7 @@ func (client ContactsClient) List(ctx context.Context) (result ContactListPage, result.cl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ContactsClient", "List", resp, "Failure responding to request") + return } if result.cl.hasNextLink() && result.cl.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +385,7 @@ func (client ContactsClient) listNextResults(ctx context.Context, lastResults Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ContactsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -438,6 +443,7 @@ func (client ContactsClient) Update(ctx context.Context, securityContactName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ContactsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v2.0/security/devicesecuritygroups.go b/services/preview/security/mgmt/v2.0/security/devicesecuritygroups.go index ecf45105c080..90c4a92b1da9 100644 --- a/services/preview/security/mgmt/v2.0/security/devicesecuritygroups.go +++ b/services/preview/security/mgmt/v2.0/security/devicesecuritygroups.go @@ -75,6 +75,7 @@ func (client DeviceSecurityGroupsClient) CreateOrUpdate(ctx context.Context, res result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client DeviceSecurityGroupsClient) Delete(ctx context.Context, resourceID result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client DeviceSecurityGroupsClient) Get(ctx context.Context, resourceID str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client DeviceSecurityGroupsClient) List(ctx context.Context, resourceID st result.dsgl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.dsgl.hasNextLink() && result.dsgl.IsEmpty() { err = result.NextWithContext(ctx) @@ -362,6 +366,7 @@ func (client DeviceSecurityGroupsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v2.0/security/discoveredsecuritysolutions.go b/services/preview/security/mgmt/v2.0/security/discoveredsecuritysolutions.go index 5a7dbc4db609..278557365c16 100644 --- a/services/preview/security/mgmt/v2.0/security/discoveredsecuritysolutions.go +++ b/services/preview/security/mgmt/v2.0/security/discoveredsecuritysolutions.go @@ -85,6 +85,7 @@ func (client DiscoveredSecuritySolutionsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DiscoveredSecuritySolutionsClient", "Get", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client DiscoveredSecuritySolutionsClient) List(ctx context.Context) (resul result.dssl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DiscoveredSecuritySolutionsClient", "List", resp, "Failure responding to request") + return } if result.dssl.hasNextLink() && result.dssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -227,6 +229,7 @@ func (client DiscoveredSecuritySolutionsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DiscoveredSecuritySolutionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -282,6 +285,7 @@ func (client DiscoveredSecuritySolutionsClient) ListByHomeRegion(ctx context.Con result.dssl, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DiscoveredSecuritySolutionsClient", "ListByHomeRegion", resp, "Failure responding to request") + return } if result.dssl.hasNextLink() && result.dssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -345,6 +349,7 @@ func (client DiscoveredSecuritySolutionsClient) listByHomeRegionNextResults(ctx result, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DiscoveredSecuritySolutionsClient", "listByHomeRegionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v2.0/security/externalsecuritysolutions.go b/services/preview/security/mgmt/v2.0/security/externalsecuritysolutions.go index 5a8b51470d1d..8b5a358baa9a 100644 --- a/services/preview/security/mgmt/v2.0/security/externalsecuritysolutions.go +++ b/services/preview/security/mgmt/v2.0/security/externalsecuritysolutions.go @@ -85,6 +85,7 @@ func (client ExternalSecuritySolutionsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ExternalSecuritySolutionsClient", "Get", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client ExternalSecuritySolutionsClient) List(ctx context.Context) (result result.essl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ExternalSecuritySolutionsClient", "List", resp, "Failure responding to request") + return } if result.essl.hasNextLink() && result.essl.IsEmpty() { err = result.NextWithContext(ctx) @@ -227,6 +229,7 @@ func (client ExternalSecuritySolutionsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ExternalSecuritySolutionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -282,6 +285,7 @@ func (client ExternalSecuritySolutionsClient) ListByHomeRegion(ctx context.Conte result.essl, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ExternalSecuritySolutionsClient", "ListByHomeRegion", resp, "Failure responding to request") + return } if result.essl.hasNextLink() && result.essl.IsEmpty() { err = result.NextWithContext(ctx) @@ -345,6 +349,7 @@ func (client ExternalSecuritySolutionsClient) listByHomeRegionNextResults(ctx co result, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ExternalSecuritySolutionsClient", "listByHomeRegionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v2.0/security/informationprotectionpolicies.go b/services/preview/security/mgmt/v2.0/security/informationprotectionpolicies.go index 22f070a19352..763996043ce7 100644 --- a/services/preview/security/mgmt/v2.0/security/informationprotectionpolicies.go +++ b/services/preview/security/mgmt/v2.0/security/informationprotectionpolicies.go @@ -75,6 +75,7 @@ func (client InformationProtectionPoliciesClient) CreateOrUpdate(ctx context.Con result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.InformationProtectionPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client InformationProtectionPoliciesClient) Get(ctx context.Context, scope result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.InformationProtectionPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -227,6 +229,7 @@ func (client InformationProtectionPoliciesClient) List(ctx context.Context, scop result.ippl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.InformationProtectionPoliciesClient", "List", resp, "Failure responding to request") + return } if result.ippl.hasNextLink() && result.ippl.IsEmpty() { err = result.NextWithContext(ctx) @@ -289,6 +292,7 @@ func (client InformationProtectionPoliciesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.InformationProtectionPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v2.0/security/iotsecuritysolution.go b/services/preview/security/mgmt/v2.0/security/iotsecuritysolution.go index 02804ebcea95..1007cc15b438 100644 --- a/services/preview/security/mgmt/v2.0/security/iotsecuritysolution.go +++ b/services/preview/security/mgmt/v2.0/security/iotsecuritysolution.go @@ -96,6 +96,7 @@ func (client IotSecuritySolutionClient) Create(ctx context.Context, resourceGrou result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSecuritySolutionClient", "Create", resp, "Failure responding to request") + return } return @@ -187,6 +188,7 @@ func (client IotSecuritySolutionClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSecuritySolutionClient", "Delete", resp, "Failure responding to request") + return } return @@ -272,6 +274,7 @@ func (client IotSecuritySolutionClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSecuritySolutionClient", "Get", resp, "Failure responding to request") + return } return @@ -360,6 +363,7 @@ func (client IotSecuritySolutionClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSecuritySolutionClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v2.0/security/iotsecuritysolutions.go b/services/preview/security/mgmt/v2.0/security/iotsecuritysolutions.go index 7f8b33d096e6..24051ad9a453 100644 --- a/services/preview/security/mgmt/v2.0/security/iotsecuritysolutions.go +++ b/services/preview/security/mgmt/v2.0/security/iotsecuritysolutions.go @@ -80,6 +80,7 @@ func (client IoTSecuritySolutionsClient) List(ctx context.Context, filter string result.itssl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsClient", "List", resp, "Failure responding to request") + return } if result.itssl.hasNextLink() && result.itssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -145,6 +146,7 @@ func (client IoTSecuritySolutionsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v2.0/security/iotsecuritysolutionsanalytics.go b/services/preview/security/mgmt/v2.0/security/iotsecuritysolutionsanalytics.go index bde4297ac2fa..93d83c980d69 100644 --- a/services/preview/security/mgmt/v2.0/security/iotsecuritysolutionsanalytics.go +++ b/services/preview/security/mgmt/v2.0/security/iotsecuritysolutionsanalytics.go @@ -85,6 +85,7 @@ func (client IoTSecuritySolutionsAnalyticsClient) GetAll(ctx context.Context, re result, err = client.GetAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsAnalyticsClient", "GetAll", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client IoTSecuritySolutionsAnalyticsClient) GetDefault(ctx context.Context result, err = client.GetDefaultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsAnalyticsClient", "GetDefault", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v2.0/security/iotsecuritysolutionsanalyticsaggregatedalert.go b/services/preview/security/mgmt/v2.0/security/iotsecuritysolutionsanalyticsaggregatedalert.go index 755eac8f5f40..ec56d0d8c280 100644 --- a/services/preview/security/mgmt/v2.0/security/iotsecuritysolutionsanalyticsaggregatedalert.go +++ b/services/preview/security/mgmt/v2.0/security/iotsecuritysolutionsanalyticsaggregatedalert.go @@ -88,6 +88,7 @@ func (client IoTSecuritySolutionsAnalyticsAggregatedAlertClient) Dismiss(ctx con result, err = client.DismissResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsAnalyticsAggregatedAlertClient", "Dismiss", resp, "Failure responding to request") + return } return @@ -175,6 +176,7 @@ func (client IoTSecuritySolutionsAnalyticsAggregatedAlertClient) Get(ctx context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsAnalyticsAggregatedAlertClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v2.0/security/iotsecuritysolutionsanalyticsaggregatedalerts.go b/services/preview/security/mgmt/v2.0/security/iotsecuritysolutionsanalyticsaggregatedalerts.go index b9b703ec6c56..06a98bc95749 100644 --- a/services/preview/security/mgmt/v2.0/security/iotsecuritysolutionsanalyticsaggregatedalerts.go +++ b/services/preview/security/mgmt/v2.0/security/iotsecuritysolutionsanalyticsaggregatedalerts.go @@ -89,6 +89,7 @@ func (client IoTSecuritySolutionsAnalyticsAggregatedAlertsClient) List(ctx conte result.itsaal, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsAnalyticsAggregatedAlertsClient", "List", resp, "Failure responding to request") + return } if result.itsaal.hasNextLink() && result.itsaal.IsEmpty() { err = result.NextWithContext(ctx) @@ -156,6 +157,7 @@ func (client IoTSecuritySolutionsAnalyticsAggregatedAlertsClient) listNextResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsAnalyticsAggregatedAlertsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v2.0/security/iotsecuritysolutionsanalyticsrecommendation.go b/services/preview/security/mgmt/v2.0/security/iotsecuritysolutionsanalyticsrecommendation.go index a519cb94a1a4..af7d8a36efba 100644 --- a/services/preview/security/mgmt/v2.0/security/iotsecuritysolutionsanalyticsrecommendation.go +++ b/services/preview/security/mgmt/v2.0/security/iotsecuritysolutionsanalyticsrecommendation.go @@ -88,6 +88,7 @@ func (client IoTSecuritySolutionsAnalyticsRecommendationClient) Get(ctx context. result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsAnalyticsRecommendationClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v2.0/security/iotsecuritysolutionsanalyticsrecommendations.go b/services/preview/security/mgmt/v2.0/security/iotsecuritysolutionsanalyticsrecommendations.go index 3219e05b7209..308c910af823 100644 --- a/services/preview/security/mgmt/v2.0/security/iotsecuritysolutionsanalyticsrecommendations.go +++ b/services/preview/security/mgmt/v2.0/security/iotsecuritysolutionsanalyticsrecommendations.go @@ -89,6 +89,7 @@ func (client IoTSecuritySolutionsAnalyticsRecommendationsClient) List(ctx contex result.itsarl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsAnalyticsRecommendationsClient", "List", resp, "Failure responding to request") + return } if result.itsarl.hasNextLink() && result.itsarl.IsEmpty() { err = result.NextWithContext(ctx) @@ -156,6 +157,7 @@ func (client IoTSecuritySolutionsAnalyticsRecommendationsClient) listNextResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsAnalyticsRecommendationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v2.0/security/iotsecuritysolutionsresourcegroup.go b/services/preview/security/mgmt/v2.0/security/iotsecuritysolutionsresourcegroup.go index 2106bd00e638..408d5794e645 100644 --- a/services/preview/security/mgmt/v2.0/security/iotsecuritysolutionsresourcegroup.go +++ b/services/preview/security/mgmt/v2.0/security/iotsecuritysolutionsresourcegroup.go @@ -88,6 +88,7 @@ func (client IoTSecuritySolutionsResourceGroupClient) List(ctx context.Context, result.itssl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsResourceGroupClient", "List", resp, "Failure responding to request") + return } if result.itssl.hasNextLink() && result.itssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -154,6 +155,7 @@ func (client IoTSecuritySolutionsResourceGroupClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsResourceGroupClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v2.0/security/jitnetworkaccesspolicies.go b/services/preview/security/mgmt/v2.0/security/jitnetworkaccesspolicies.go index 423f82fa3af1..7be4c905b996 100644 --- a/services/preview/security/mgmt/v2.0/security/jitnetworkaccesspolicies.go +++ b/services/preview/security/mgmt/v2.0/security/jitnetworkaccesspolicies.go @@ -88,6 +88,7 @@ func (client JitNetworkAccessPoliciesClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client JitNetworkAccessPoliciesClient) Delete(ctx context.Context, resourc result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -267,6 +269,7 @@ func (client JitNetworkAccessPoliciesClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -356,6 +359,7 @@ func (client JitNetworkAccessPoliciesClient) Initiate(ctx context.Context, resou result, err = client.InitiateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "Initiate", resp, "Failure responding to request") + return } return @@ -439,6 +443,7 @@ func (client JitNetworkAccessPoliciesClient) List(ctx context.Context) (result J result.jnapl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "List", resp, "Failure responding to request") + return } if result.jnapl.hasNextLink() && result.jnapl.IsEmpty() { err = result.NextWithContext(ctx) @@ -501,6 +506,7 @@ func (client JitNetworkAccessPoliciesClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -556,6 +562,7 @@ func (client JitNetworkAccessPoliciesClient) ListByRegion(ctx context.Context) ( result.jnapl, err = client.ListByRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "ListByRegion", resp, "Failure responding to request") + return } if result.jnapl.hasNextLink() && result.jnapl.IsEmpty() { err = result.NextWithContext(ctx) @@ -619,6 +626,7 @@ func (client JitNetworkAccessPoliciesClient) listByRegionNextResults(ctx context result, err = client.ListByRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "listByRegionNextResults", resp, "Failure responding to next results request") + return } return } @@ -682,6 +690,7 @@ func (client JitNetworkAccessPoliciesClient) ListByResourceGroup(ctx context.Con result.jnapl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.jnapl.hasNextLink() && result.jnapl.IsEmpty() { err = result.NextWithContext(ctx) @@ -745,6 +754,7 @@ func (client JitNetworkAccessPoliciesClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -808,6 +818,7 @@ func (client JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegion(ctx co result.jnapl, err = client.ListByResourceGroupAndRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "ListByResourceGroupAndRegion", resp, "Failure responding to request") + return } if result.jnapl.hasNextLink() && result.jnapl.IsEmpty() { err = result.NextWithContext(ctx) @@ -872,6 +883,7 @@ func (client JitNetworkAccessPoliciesClient) listByResourceGroupAndRegionNextRes result, err = client.ListByResourceGroupAndRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "listByResourceGroupAndRegionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v2.0/security/locations.go b/services/preview/security/mgmt/v2.0/security/locations.go index cccea770f716..3da6b15d7f0c 100644 --- a/services/preview/security/mgmt/v2.0/security/locations.go +++ b/services/preview/security/mgmt/v2.0/security/locations.go @@ -76,6 +76,7 @@ func (client LocationsClient) Get(ctx context.Context) (result AscLocation, err result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.LocationsClient", "Get", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client LocationsClient) List(ctx context.Context) (result AscLocationListP result.all, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.LocationsClient", "List", resp, "Failure responding to request") + return } if result.all.hasNextLink() && result.all.IsEmpty() { err = result.NextWithContext(ctx) @@ -218,6 +220,7 @@ func (client LocationsClient) listNextResults(ctx context.Context, lastResults A result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.LocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v2.0/security/operations.go b/services/preview/security/mgmt/v2.0/security/operations.go index 7c0687ccd870..182e56dac878 100644 --- a/services/preview/security/mgmt/v2.0/security/operations.go +++ b/services/preview/security/mgmt/v2.0/security/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListPa result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v2.0/security/pricings.go b/services/preview/security/mgmt/v2.0/security/pricings.go index 4a7b973d2049..59b550625297 100644 --- a/services/preview/security/mgmt/v2.0/security/pricings.go +++ b/services/preview/security/mgmt/v2.0/security/pricings.go @@ -78,6 +78,7 @@ func (client PricingsClient) Get(ctx context.Context, pricingName string) (resul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.PricingsClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client PricingsClient) List(ctx context.Context) (result PricingList, err result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.PricingsClient", "List", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client PricingsClient) Update(ctx context.Context, pricingName string, pri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.PricingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v2.0/security/regulatorycomplianceassessments.go b/services/preview/security/mgmt/v2.0/security/regulatorycomplianceassessments.go index 64de12cdf182..2ac9c4c141cd 100644 --- a/services/preview/security/mgmt/v2.0/security/regulatorycomplianceassessments.go +++ b/services/preview/security/mgmt/v2.0/security/regulatorycomplianceassessments.go @@ -82,6 +82,7 @@ func (client RegulatoryComplianceAssessmentsClient) Get(ctx context.Context, reg result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceAssessmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client RegulatoryComplianceAssessmentsClient) List(ctx context.Context, re result.rcal, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceAssessmentsClient", "List", resp, "Failure responding to request") + return } if result.rcal.hasNextLink() && result.rcal.IsEmpty() { err = result.NextWithContext(ctx) @@ -233,6 +235,7 @@ func (client RegulatoryComplianceAssessmentsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceAssessmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v2.0/security/regulatorycompliancecontrols.go b/services/preview/security/mgmt/v2.0/security/regulatorycompliancecontrols.go index 069e0c6880db..70a6470c3498 100644 --- a/services/preview/security/mgmt/v2.0/security/regulatorycompliancecontrols.go +++ b/services/preview/security/mgmt/v2.0/security/regulatorycompliancecontrols.go @@ -80,6 +80,7 @@ func (client RegulatoryComplianceControlsClient) Get(ctx context.Context, regula result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceControlsClient", "Get", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client RegulatoryComplianceControlsClient) List(ctx context.Context, regul result.rccl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceControlsClient", "List", resp, "Failure responding to request") + return } if result.rccl.hasNextLink() && result.rccl.IsEmpty() { err = result.NextWithContext(ctx) @@ -228,6 +230,7 @@ func (client RegulatoryComplianceControlsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceControlsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v2.0/security/regulatorycompliancestandards.go b/services/preview/security/mgmt/v2.0/security/regulatorycompliancestandards.go index 62e3a715ae30..1c2bf9f19d8e 100644 --- a/services/preview/security/mgmt/v2.0/security/regulatorycompliancestandards.go +++ b/services/preview/security/mgmt/v2.0/security/regulatorycompliancestandards.go @@ -79,6 +79,7 @@ func (client RegulatoryComplianceStandardsClient) Get(ctx context.Context, regul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceStandardsClient", "Get", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client RegulatoryComplianceStandardsClient) List(ctx context.Context, filt result.rcsl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceStandardsClient", "List", resp, "Failure responding to request") + return } if result.rcsl.hasNextLink() && result.rcsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -224,6 +226,7 @@ func (client RegulatoryComplianceStandardsClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceStandardsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v2.0/security/securescorecontroldefinitions.go b/services/preview/security/mgmt/v2.0/security/securescorecontroldefinitions.go index ec41c4bb8a07..7bf0f369f241 100644 --- a/services/preview/security/mgmt/v2.0/security/securescorecontroldefinitions.go +++ b/services/preview/security/mgmt/v2.0/security/securescorecontroldefinitions.go @@ -72,6 +72,7 @@ func (client SecureScoreControlDefinitionsClient) List(ctx context.Context) (res result.sscdl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlDefinitionsClient", "List", resp, "Failure responding to request") + return } if result.sscdl.hasNextLink() && result.sscdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client SecureScoreControlDefinitionsClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlDefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -186,6 +188,7 @@ func (client SecureScoreControlDefinitionsClient) ListBySubscription(ctx context result.sscdl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlDefinitionsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.sscdl.hasNextLink() && result.sscdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -248,6 +251,7 @@ func (client SecureScoreControlDefinitionsClient) listBySubscriptionNextResults( result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlDefinitionsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v2.0/security/securescorecontrols.go b/services/preview/security/mgmt/v2.0/security/securescorecontrols.go index 5b1ccb5acd6e..a977828b0460 100644 --- a/services/preview/security/mgmt/v2.0/security/securescorecontrols.go +++ b/services/preview/security/mgmt/v2.0/security/securescorecontrols.go @@ -80,6 +80,7 @@ func (client SecureScoreControlsClient) List(ctx context.Context, expand ExpandC result.sscl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlsClient", "List", resp, "Failure responding to request") + return } if result.sscl.hasNextLink() && result.sscl.IsEmpty() { err = result.NextWithContext(ctx) @@ -145,6 +146,7 @@ func (client SecureScoreControlsClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -204,6 +206,7 @@ func (client SecureScoreControlsClient) ListBySecureScore(ctx context.Context, s result.sscl, err = client.ListBySecureScoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlsClient", "ListBySecureScore", resp, "Failure responding to request") + return } if result.sscl.hasNextLink() && result.sscl.IsEmpty() { err = result.NextWithContext(ctx) @@ -270,6 +273,7 @@ func (client SecureScoreControlsClient) listBySecureScoreNextResults(ctx context result, err = client.ListBySecureScoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlsClient", "listBySecureScoreNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v2.0/security/securescores.go b/services/preview/security/mgmt/v2.0/security/securescores.go index 1b2511acfa6a..94ae9c21a257 100644 --- a/services/preview/security/mgmt/v2.0/security/securescores.go +++ b/services/preview/security/mgmt/v2.0/security/securescores.go @@ -80,6 +80,7 @@ func (client SecureScoresClient) Get(ctx context.Context, secureScoreName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoresClient", "Get", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client SecureScoresClient) List(ctx context.Context) (result SecureScoresL result.ssl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoresClient", "List", resp, "Failure responding to request") + return } if result.ssl.hasNextLink() && result.ssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -220,6 +222,7 @@ func (client SecureScoresClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoresClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v2.0/security/settings.go b/services/preview/security/mgmt/v2.0/security/settings.go index e01213ccaf80..8a14279fd18b 100644 --- a/services/preview/security/mgmt/v2.0/security/settings.go +++ b/services/preview/security/mgmt/v2.0/security/settings.go @@ -78,6 +78,7 @@ func (client SettingsClient) Get(ctx context.Context, settingName string) (resul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client SettingsClient) List(ctx context.Context) (result SettingsListPage, result.sl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SettingsClient", "List", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -218,6 +220,7 @@ func (client SettingsClient) listNextResults(ctx context.Context, lastResults Se result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SettingsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -275,6 +278,7 @@ func (client SettingsClient) Update(ctx context.Context, settingName string, set result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v2.0/security/sqlvulnerabilityassessmentbaselinerules.go b/services/preview/security/mgmt/v2.0/security/sqlvulnerabilityassessmentbaselinerules.go index 4d5d80df050e..1969b055a3bc 100644 --- a/services/preview/security/mgmt/v2.0/security/sqlvulnerabilityassessmentbaselinerules.go +++ b/services/preview/security/mgmt/v2.0/security/sqlvulnerabilityassessmentbaselinerules.go @@ -77,6 +77,7 @@ func (client SQLVulnerabilityAssessmentBaselineRulesClient) Add(ctx context.Cont result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentBaselineRulesClient", "Add", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client SQLVulnerabilityAssessmentBaselineRulesClient) CreateOrUpdate(ctx c result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentBaselineRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client SQLVulnerabilityAssessmentBaselineRulesClient) Delete(ctx context.C result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentBaselineRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -314,6 +317,7 @@ func (client SQLVulnerabilityAssessmentBaselineRulesClient) Get(ctx context.Cont result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentBaselineRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -389,6 +393,7 @@ func (client SQLVulnerabilityAssessmentBaselineRulesClient) List(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentBaselineRulesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v2.0/security/sqlvulnerabilityassessmentscanresults.go b/services/preview/security/mgmt/v2.0/security/sqlvulnerabilityassessmentscanresults.go index a0d9caa08ef9..56e271a5d9c7 100644 --- a/services/preview/security/mgmt/v2.0/security/sqlvulnerabilityassessmentscanresults.go +++ b/services/preview/security/mgmt/v2.0/security/sqlvulnerabilityassessmentscanresults.go @@ -78,6 +78,7 @@ func (client SQLVulnerabilityAssessmentScanResultsClient) Get(ctx context.Contex result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentScanResultsClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client SQLVulnerabilityAssessmentScanResultsClient) List(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentScanResultsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v2.0/security/sqlvulnerabilityassessmentscans.go b/services/preview/security/mgmt/v2.0/security/sqlvulnerabilityassessmentscans.go index 417f3081f74c..d8210adcf4cf 100644 --- a/services/preview/security/mgmt/v2.0/security/sqlvulnerabilityassessmentscans.go +++ b/services/preview/security/mgmt/v2.0/security/sqlvulnerabilityassessmentscans.go @@ -76,6 +76,7 @@ func (client SQLVulnerabilityAssessmentScansClient) Get(ctx context.Context, sca result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentScansClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client SQLVulnerabilityAssessmentScansClient) List(ctx context.Context, wo result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentScansClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v2.0/security/subassessments.go b/services/preview/security/mgmt/v2.0/security/subassessments.go index dcb46b74ca9d..5ad0f914731b 100644 --- a/services/preview/security/mgmt/v2.0/security/subassessments.go +++ b/services/preview/security/mgmt/v2.0/security/subassessments.go @@ -74,6 +74,7 @@ func (client SubAssessmentsClient) Get(ctx context.Context, scope string, assess result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SubAssessmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client SubAssessmentsClient) List(ctx context.Context, scope string, asses result.sal, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SubAssessmentsClient", "List", resp, "Failure responding to request") + return } if result.sal.hasNextLink() && result.sal.IsEmpty() { err = result.NextWithContext(ctx) @@ -214,6 +216,7 @@ func (client SubAssessmentsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SubAssessmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -266,6 +269,7 @@ func (client SubAssessmentsClient) ListAll(ctx context.Context, scope string) (r result.sal, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SubAssessmentsClient", "ListAll", resp, "Failure responding to request") + return } if result.sal.hasNextLink() && result.sal.IsEmpty() { err = result.NextWithContext(ctx) @@ -328,6 +332,7 @@ func (client SubAssessmentsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SubAssessmentsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v2.0/security/tasks.go b/services/preview/security/mgmt/v2.0/security/tasks.go index 34d8790bd7c7..a7fc1430a58c 100644 --- a/services/preview/security/mgmt/v2.0/security/tasks.go +++ b/services/preview/security/mgmt/v2.0/security/tasks.go @@ -84,6 +84,7 @@ func (client TasksClient) GetResourceGroupLevelTask(ctx context.Context, resourc result, err = client.GetResourceGroupLevelTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "GetResourceGroupLevelTask", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client TasksClient) GetSubscriptionLevelTask(ctx context.Context, taskName result, err = client.GetSubscriptionLevelTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "GetSubscriptionLevelTask", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client TasksClient) List(ctx context.Context, filter string) (result TaskL result.tl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "List", resp, "Failure responding to request") + return } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) @@ -311,6 +314,7 @@ func (client TasksClient) listNextResults(ctx context.Context, lastResults TaskL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -368,6 +372,7 @@ func (client TasksClient) ListByHomeRegion(ctx context.Context, filter string) ( result.tl, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "ListByHomeRegion", resp, "Failure responding to request") + return } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) @@ -434,6 +439,7 @@ func (client TasksClient) listByHomeRegionNextResults(ctx context.Context, lastR result, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "listByHomeRegionNextResults", resp, "Failure responding to next results request") + return } return } @@ -497,6 +503,7 @@ func (client TasksClient) ListByResourceGroup(ctx context.Context, resourceGroup result.tl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) @@ -564,6 +571,7 @@ func (client TasksClient) listByResourceGroupNextResults(ctx context.Context, la result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -628,6 +636,7 @@ func (client TasksClient) UpdateResourceGroupLevelTaskState(ctx context.Context, result, err = client.UpdateResourceGroupLevelTaskStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "UpdateResourceGroupLevelTaskState", resp, "Failure responding to request") + return } return @@ -711,6 +720,7 @@ func (client TasksClient) UpdateSubscriptionLevelTaskState(ctx context.Context, result, err = client.UpdateSubscriptionLevelTaskStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "UpdateSubscriptionLevelTaskState", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v2.0/security/topology.go b/services/preview/security/mgmt/v2.0/security/topology.go index 1ba4df892c23..84642529d7d1 100644 --- a/services/preview/security/mgmt/v2.0/security/topology.go +++ b/services/preview/security/mgmt/v2.0/security/topology.go @@ -84,6 +84,7 @@ func (client TopologyClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TopologyClient", "Get", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client TopologyClient) List(ctx context.Context) (result TopologyListPage, result.tl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TopologyClient", "List", resp, "Failure responding to request") + return } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) @@ -226,6 +228,7 @@ func (client TopologyClient) listNextResults(ctx context.Context, lastResults To result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TopologyClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -281,6 +284,7 @@ func (client TopologyClient) ListByHomeRegion(ctx context.Context) (result Topol result.tl, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TopologyClient", "ListByHomeRegion", resp, "Failure responding to request") + return } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) @@ -344,6 +348,7 @@ func (client TopologyClient) listByHomeRegionNextResults(ctx context.Context, la result, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TopologyClient", "listByHomeRegionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v2.0/security/workspacesettings.go b/services/preview/security/mgmt/v2.0/security/workspacesettings.go index 9eb533d2e638..41f3137c7d4d 100644 --- a/services/preview/security/mgmt/v2.0/security/workspacesettings.go +++ b/services/preview/security/mgmt/v2.0/security/workspacesettings.go @@ -85,6 +85,7 @@ func (client WorkspaceSettingsClient) Create(ctx context.Context, workspaceSetti result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.WorkspaceSettingsClient", "Create", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client WorkspaceSettingsClient) Delete(ctx context.Context, workspaceSetti result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.WorkspaceSettingsClient", "Delete", resp, "Failure responding to request") + return } return @@ -245,6 +247,7 @@ func (client WorkspaceSettingsClient) Get(ctx context.Context, workspaceSettingN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.WorkspaceSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -324,6 +327,7 @@ func (client WorkspaceSettingsClient) List(ctx context.Context) (result Workspac result.wsl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.WorkspaceSettingsClient", "List", resp, "Failure responding to request") + return } if result.wsl.hasNextLink() && result.wsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +390,7 @@ func (client WorkspaceSettingsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.WorkspaceSettingsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +448,7 @@ func (client WorkspaceSettingsClient) Update(ctx context.Context, workspaceSetti result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.WorkspaceSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v3.0/security/adaptiveapplicationcontrols.go b/services/preview/security/mgmt/v3.0/security/adaptiveapplicationcontrols.go index f379c8458ae1..3de428159ba9 100644 --- a/services/preview/security/mgmt/v3.0/security/adaptiveapplicationcontrols.go +++ b/services/preview/security/mgmt/v3.0/security/adaptiveapplicationcontrols.go @@ -79,6 +79,7 @@ func (client AdaptiveApplicationControlsClient) Delete(ctx context.Context, grou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdaptiveApplicationControlsClient", "Delete", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client AdaptiveApplicationControlsClient) Get(ctx context.Context, groupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdaptiveApplicationControlsClient", "Get", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client AdaptiveApplicationControlsClient) List(ctx context.Context, includ result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdaptiveApplicationControlsClient", "List", resp, "Failure responding to request") + return } return @@ -325,6 +328,7 @@ func (client AdaptiveApplicationControlsClient) Put(ctx context.Context, groupNa result, err = client.PutResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdaptiveApplicationControlsClient", "Put", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v3.0/security/adaptivenetworkhardenings.go b/services/preview/security/mgmt/v3.0/security/adaptivenetworkhardenings.go index 0c65f0b927d5..8e1a80c75bb1 100644 --- a/services/preview/security/mgmt/v3.0/security/adaptivenetworkhardenings.go +++ b/services/preview/security/mgmt/v3.0/security/adaptivenetworkhardenings.go @@ -185,6 +185,7 @@ func (client AdaptiveNetworkHardeningsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdaptiveNetworkHardeningsClient", "Get", resp, "Failure responding to request") + return } return @@ -277,6 +278,7 @@ func (client AdaptiveNetworkHardeningsClient) ListByExtendedResource(ctx context result.anhl, err = client.ListByExtendedResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdaptiveNetworkHardeningsClient", "ListByExtendedResource", resp, "Failure responding to request") + return } if result.anhl.hasNextLink() && result.anhl.IsEmpty() { err = result.NextWithContext(ctx) @@ -343,6 +345,7 @@ func (client AdaptiveNetworkHardeningsClient) listByExtendedResourceNextResults( result, err = client.ListByExtendedResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdaptiveNetworkHardeningsClient", "listByExtendedResourceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/advancedthreatprotection.go b/services/preview/security/mgmt/v3.0/security/advancedthreatprotection.go index 826770efc977..3036a872a4a6 100644 --- a/services/preview/security/mgmt/v3.0/security/advancedthreatprotection.go +++ b/services/preview/security/mgmt/v3.0/security/advancedthreatprotection.go @@ -73,6 +73,7 @@ func (client AdvancedThreatProtectionClient) Create(ctx context.Context, resourc result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdvancedThreatProtectionClient", "Create", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client AdvancedThreatProtectionClient) Get(ctx context.Context, resourceID result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdvancedThreatProtectionClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v3.0/security/alerts.go b/services/preview/security/mgmt/v3.0/security/alerts.go index 4e76a7c0cce1..f236c786ec8c 100644 --- a/services/preview/security/mgmt/v3.0/security/alerts.go +++ b/services/preview/security/mgmt/v3.0/security/alerts.go @@ -84,6 +84,7 @@ func (client AlertsClient) GetResourceGroupLevelAlerts(ctx context.Context, aler result, err = client.GetResourceGroupLevelAlertsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "GetResourceGroupLevelAlerts", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client AlertsClient) GetSubscriptionLevelAlert(ctx context.Context, alertN result, err = client.GetSubscriptionLevelAlertResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "GetSubscriptionLevelAlert", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client AlertsClient) List(ctx context.Context) (result AlertListPage, err result.al, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "List", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -306,6 +309,7 @@ func (client AlertsClient) listNextResults(ctx context.Context, lastResults Aler result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -368,6 +372,7 @@ func (client AlertsClient) ListByResourceGroup(ctx context.Context, resourceGrou result.al, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -431,6 +436,7 @@ func (client AlertsClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -494,6 +500,7 @@ func (client AlertsClient) ListResourceGroupLevelAlertsByRegion(ctx context.Cont result.al, err = client.ListResourceGroupLevelAlertsByRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "ListResourceGroupLevelAlertsByRegion", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -558,6 +565,7 @@ func (client AlertsClient) listResourceGroupLevelAlertsByRegionNextResults(ctx c result, err = client.ListResourceGroupLevelAlertsByRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "listResourceGroupLevelAlertsByRegionNextResults", resp, "Failure responding to next results request") + return } return } @@ -614,6 +622,7 @@ func (client AlertsClient) ListSubscriptionLevelAlertsByRegion(ctx context.Conte result.al, err = client.ListSubscriptionLevelAlertsByRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "ListSubscriptionLevelAlertsByRegion", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -677,6 +686,7 @@ func (client AlertsClient) listSubscriptionLevelAlertsByRegionNextResults(ctx co result, err = client.ListSubscriptionLevelAlertsByRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "listSubscriptionLevelAlertsByRegionNextResults", resp, "Failure responding to next results request") + return } return } @@ -739,6 +749,7 @@ func (client AlertsClient) UpdateResourceGroupLevelAlertStateToDismiss(ctx conte result, err = client.UpdateResourceGroupLevelAlertStateToDismissResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "UpdateResourceGroupLevelAlertStateToDismiss", resp, "Failure responding to request") + return } return @@ -825,6 +836,7 @@ func (client AlertsClient) UpdateResourceGroupLevelAlertStateToReactivate(ctx co result, err = client.UpdateResourceGroupLevelAlertStateToReactivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "UpdateResourceGroupLevelAlertStateToReactivate", resp, "Failure responding to request") + return } return @@ -911,6 +923,7 @@ func (client AlertsClient) UpdateResourceGroupLevelStateToResolve(ctx context.Co result, err = client.UpdateResourceGroupLevelStateToResolveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "UpdateResourceGroupLevelStateToResolve", resp, "Failure responding to request") + return } return @@ -991,6 +1004,7 @@ func (client AlertsClient) UpdateSubscriptionLevelAlertStateToDismiss(ctx contex result, err = client.UpdateSubscriptionLevelAlertStateToDismissResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "UpdateSubscriptionLevelAlertStateToDismiss", resp, "Failure responding to request") + return } return @@ -1070,6 +1084,7 @@ func (client AlertsClient) UpdateSubscriptionLevelAlertStateToReactivate(ctx con result, err = client.UpdateSubscriptionLevelAlertStateToReactivateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "UpdateSubscriptionLevelAlertStateToReactivate", resp, "Failure responding to request") + return } return @@ -1149,6 +1164,7 @@ func (client AlertsClient) UpdateSubscriptionLevelStateToResolve(ctx context.Con result, err = client.UpdateSubscriptionLevelStateToResolveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "UpdateSubscriptionLevelStateToResolve", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v3.0/security/alertssuppressionrules.go b/services/preview/security/mgmt/v3.0/security/alertssuppressionrules.go index 74f0e82f8e8a..7ce77cd1e95e 100644 --- a/services/preview/security/mgmt/v3.0/security/alertssuppressionrules.go +++ b/services/preview/security/mgmt/v3.0/security/alertssuppressionrules.go @@ -79,6 +79,7 @@ func (client AlertsSuppressionRulesClient) Delete(ctx context.Context, alertsSup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsSuppressionRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client AlertsSuppressionRulesClient) Get(ctx context.Context, alertsSuppre result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsSuppressionRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client AlertsSuppressionRulesClient) List(ctx context.Context, alertType s result.asrl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsSuppressionRulesClient", "List", resp, "Failure responding to request") + return } if result.asrl.hasNextLink() && result.asrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -302,6 +305,7 @@ func (client AlertsSuppressionRulesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsSuppressionRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -366,6 +370,7 @@ func (client AlertsSuppressionRulesClient) Update(ctx context.Context, alertsSup result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsSuppressionRulesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v3.0/security/allowedconnections.go b/services/preview/security/mgmt/v3.0/security/allowedconnections.go index 6b31cf895d9a..7e91b2b5e8dc 100644 --- a/services/preview/security/mgmt/v3.0/security/allowedconnections.go +++ b/services/preview/security/mgmt/v3.0/security/allowedconnections.go @@ -86,6 +86,7 @@ func (client AllowedConnectionsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AllowedConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client AllowedConnectionsClient) List(ctx context.Context) (result Allowed result.ACL, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AllowedConnectionsClient", "List", resp, "Failure responding to request") + return } if result.ACL.hasNextLink() && result.ACL.IsEmpty() { err = result.NextWithContext(ctx) @@ -228,6 +230,7 @@ func (client AllowedConnectionsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AllowedConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -283,6 +286,7 @@ func (client AllowedConnectionsClient) ListByHomeRegion(ctx context.Context) (re result.ACL, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AllowedConnectionsClient", "ListByHomeRegion", resp, "Failure responding to request") + return } if result.ACL.hasNextLink() && result.ACL.IsEmpty() { err = result.NextWithContext(ctx) @@ -346,6 +350,7 @@ func (client AllowedConnectionsClient) listByHomeRegionNextResults(ctx context.C result, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AllowedConnectionsClient", "listByHomeRegionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/assessments.go b/services/preview/security/mgmt/v3.0/security/assessments.go index f7596ec0c99a..566cca8c2752 100644 --- a/services/preview/security/mgmt/v3.0/security/assessments.go +++ b/services/preview/security/mgmt/v3.0/security/assessments.go @@ -95,6 +95,7 @@ func (client AssessmentsClient) CreateOrUpdate(ctx context.Context, resourceID s result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AssessmentsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client AssessmentsClient) Delete(ctx context.Context, resourceID string, a result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AssessmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client AssessmentsClient) Get(ctx context.Context, resourceID string, asse result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AssessmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -324,6 +327,7 @@ func (client AssessmentsClient) List(ctx context.Context, scope string) (result result.al, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AssessmentsClient", "List", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +390,7 @@ func (client AssessmentsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AssessmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/assessmentsmetadata.go b/services/preview/security/mgmt/v3.0/security/assessmentsmetadata.go index 629f77b33208..d10cce60df41 100644 --- a/services/preview/security/mgmt/v3.0/security/assessmentsmetadata.go +++ b/services/preview/security/mgmt/v3.0/security/assessmentsmetadata.go @@ -88,6 +88,7 @@ func (client AssessmentsMetadataClient) CreateInSubscription(ctx context.Context result, err = client.CreateInSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AssessmentsMetadataClient", "CreateInSubscription", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client AssessmentsMetadataClient) DeleteInSubscription(ctx context.Context result, err = client.DeleteInSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AssessmentsMetadataClient", "DeleteInSubscription", resp, "Failure responding to request") + return } return @@ -242,6 +244,7 @@ func (client AssessmentsMetadataClient) Get(ctx context.Context, assessmentMetad result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AssessmentsMetadataClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +323,7 @@ func (client AssessmentsMetadataClient) GetInSubscription(ctx context.Context, a result, err = client.GetInSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AssessmentsMetadataClient", "GetInSubscription", resp, "Failure responding to request") + return } return @@ -392,6 +396,7 @@ func (client AssessmentsMetadataClient) List(ctx context.Context) (result Assess result.aml, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AssessmentsMetadataClient", "List", resp, "Failure responding to request") + return } if result.aml.hasNextLink() && result.aml.IsEmpty() { err = result.NextWithContext(ctx) @@ -450,6 +455,7 @@ func (client AssessmentsMetadataClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AssessmentsMetadataClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -505,6 +511,7 @@ func (client AssessmentsMetadataClient) ListBySubscription(ctx context.Context) result.aml, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AssessmentsMetadataClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.aml.hasNextLink() && result.aml.IsEmpty() { err = result.NextWithContext(ctx) @@ -567,6 +574,7 @@ func (client AssessmentsMetadataClient) listBySubscriptionNextResults(ctx contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AssessmentsMetadataClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/automations.go b/services/preview/security/mgmt/v3.0/security/automations.go index 106e5907b9b9..3ca2e3eb25b8 100644 --- a/services/preview/security/mgmt/v3.0/security/automations.go +++ b/services/preview/security/mgmt/v3.0/security/automations.go @@ -86,6 +86,7 @@ func (client AutomationsClient) CreateOrUpdate(ctx context.Context, resourceGrou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutomationsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client AutomationsClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutomationsClient", "Delete", resp, "Failure responding to request") + return } return @@ -259,6 +261,7 @@ func (client AutomationsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutomationsClient", "Get", resp, "Failure responding to request") + return } return @@ -339,6 +342,7 @@ func (client AutomationsClient) List(ctx context.Context) (result AutomationList result.al, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutomationsClient", "List", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -401,6 +405,7 @@ func (client AutomationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutomationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -464,6 +469,7 @@ func (client AutomationsClient) ListByResourceGroup(ctx context.Context, resourc result.al, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutomationsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -527,6 +533,7 @@ func (client AutomationsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutomationsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -591,6 +598,7 @@ func (client AutomationsClient) Validate(ctx context.Context, resourceGroupName result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutomationsClient", "Validate", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v3.0/security/autoprovisioningsettings.go b/services/preview/security/mgmt/v3.0/security/autoprovisioningsettings.go index f9467280720b..ce77a756c41b 100644 --- a/services/preview/security/mgmt/v3.0/security/autoprovisioningsettings.go +++ b/services/preview/security/mgmt/v3.0/security/autoprovisioningsettings.go @@ -80,6 +80,7 @@ func (client AutoProvisioningSettingsClient) Create(ctx context.Context, setting result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutoProvisioningSettingsClient", "Create", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client AutoProvisioningSettingsClient) Get(ctx context.Context, settingNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutoProvisioningSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client AutoProvisioningSettingsClient) List(ctx context.Context) (result A result.apsl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutoProvisioningSettingsClient", "List", resp, "Failure responding to request") + return } if result.apsl.hasNextLink() && result.apsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -301,6 +304,7 @@ func (client AutoProvisioningSettingsClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutoProvisioningSettingsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/complianceresults.go b/services/preview/security/mgmt/v3.0/security/complianceresults.go index 8415b71043e3..44cdaebe34f2 100644 --- a/services/preview/security/mgmt/v3.0/security/complianceresults.go +++ b/services/preview/security/mgmt/v3.0/security/complianceresults.go @@ -73,6 +73,7 @@ func (client ComplianceResultsClient) Get(ctx context.Context, resourceID string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ComplianceResultsClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client ComplianceResultsClient) List(ctx context.Context, scope string) (r result.crl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ComplianceResultsClient", "List", resp, "Failure responding to request") + return } if result.crl.hasNextLink() && result.crl.IsEmpty() { err = result.NextWithContext(ctx) @@ -210,6 +212,7 @@ func (client ComplianceResultsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ComplianceResultsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/compliances.go b/services/preview/security/mgmt/v3.0/security/compliances.go index dbce5f7be95f..c8440f34ffe2 100644 --- a/services/preview/security/mgmt/v3.0/security/compliances.go +++ b/services/preview/security/mgmt/v3.0/security/compliances.go @@ -73,6 +73,7 @@ func (client CompliancesClient) Get(ctx context.Context, scope string, complianc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.CompliancesClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client CompliancesClient) List(ctx context.Context, scope string) (result result.cl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.CompliancesClient", "List", resp, "Failure responding to request") + return } if result.cl.hasNextLink() && result.cl.IsEmpty() { err = result.NextWithContext(ctx) @@ -210,6 +212,7 @@ func (client CompliancesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.CompliancesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/connectors.go b/services/preview/security/mgmt/v3.0/security/connectors.go index f49e28025643..9cca36e79d81 100644 --- a/services/preview/security/mgmt/v3.0/security/connectors.go +++ b/services/preview/security/mgmt/v3.0/security/connectors.go @@ -80,6 +80,7 @@ func (client ConnectorsClient) CreateOrUpdate(ctx context.Context, connectorName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ConnectorsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client ConnectorsClient) Delete(ctx context.Context, connectorName string) result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ConnectorsClient", "Delete", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client ConnectorsClient) Get(ctx context.Context, connectorName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ConnectorsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client ConnectorsClient) List(ctx context.Context) (result ConnectorSettin result.csl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ConnectorsClient", "List", resp, "Failure responding to request") + return } if result.csl.hasNextLink() && result.csl.IsEmpty() { err = result.NextWithContext(ctx) @@ -379,6 +383,7 @@ func (client ConnectorsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ConnectorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/contacts.go b/services/preview/security/mgmt/v3.0/security/contacts.go index 3bacee1cf631..ceeae541210b 100644 --- a/services/preview/security/mgmt/v3.0/security/contacts.go +++ b/services/preview/security/mgmt/v3.0/security/contacts.go @@ -82,6 +82,7 @@ func (client ContactsClient) Create(ctx context.Context, securityContactName str result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ContactsClient", "Create", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ContactsClient) Delete(ctx context.Context, securityContactName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ContactsClient", "Delete", resp, "Failure responding to request") + return } return @@ -241,6 +243,7 @@ func (client ContactsClient) Get(ctx context.Context, securityContactName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ContactsClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +322,7 @@ func (client ContactsClient) List(ctx context.Context) (result ContactListPage, result.cl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ContactsClient", "List", resp, "Failure responding to request") + return } if result.cl.hasNextLink() && result.cl.IsEmpty() { err = result.NextWithContext(ctx) @@ -381,6 +385,7 @@ func (client ContactsClient) listNextResults(ctx context.Context, lastResults Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ContactsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -438,6 +443,7 @@ func (client ContactsClient) Update(ctx context.Context, securityContactName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ContactsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v3.0/security/device.go b/services/preview/security/mgmt/v3.0/security/device.go index 6aeda8f4cc42..629ac45061a4 100644 --- a/services/preview/security/mgmt/v3.0/security/device.go +++ b/services/preview/security/mgmt/v3.0/security/device.go @@ -72,6 +72,7 @@ func (client DeviceClient) Get(ctx context.Context, resourceID string, deviceID result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DeviceClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v3.0/security/devicesecuritygroups.go b/services/preview/security/mgmt/v3.0/security/devicesecuritygroups.go index 8d20b62e3160..e424f40d9bb8 100644 --- a/services/preview/security/mgmt/v3.0/security/devicesecuritygroups.go +++ b/services/preview/security/mgmt/v3.0/security/devicesecuritygroups.go @@ -75,6 +75,7 @@ func (client DeviceSecurityGroupsClient) CreateOrUpdate(ctx context.Context, res result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client DeviceSecurityGroupsClient) Delete(ctx context.Context, resourceID result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client DeviceSecurityGroupsClient) Get(ctx context.Context, resourceID str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client DeviceSecurityGroupsClient) List(ctx context.Context, resourceID st result.dsgl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "List", resp, "Failure responding to request") + return } if result.dsgl.hasNextLink() && result.dsgl.IsEmpty() { err = result.NextWithContext(ctx) @@ -362,6 +366,7 @@ func (client DeviceSecurityGroupsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/devicesforhub.go b/services/preview/security/mgmt/v3.0/security/devicesforhub.go index 99cca3e97110..7aeb43015f86 100644 --- a/services/preview/security/mgmt/v3.0/security/devicesforhub.go +++ b/services/preview/security/mgmt/v3.0/security/devicesforhub.go @@ -75,6 +75,7 @@ func (client DevicesForHubClient) List(ctx context.Context, resourceID string, l result.dl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DevicesForHubClient", "List", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client DevicesForHubClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DevicesForHubClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/devicesforsubscription.go b/services/preview/security/mgmt/v3.0/security/devicesforsubscription.go index 3f37062e011f..5edd2ac28d49 100644 --- a/services/preview/security/mgmt/v3.0/security/devicesforsubscription.go +++ b/services/preview/security/mgmt/v3.0/security/devicesforsubscription.go @@ -82,6 +82,7 @@ func (client DevicesForSubscriptionClient) List(ctx context.Context, limit *int3 result.dl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DevicesForSubscriptionClient", "List", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -153,6 +154,7 @@ func (client DevicesForSubscriptionClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DevicesForSubscriptionClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/discoveredsecuritysolutions.go b/services/preview/security/mgmt/v3.0/security/discoveredsecuritysolutions.go index f199814657db..9e6a0494166c 100644 --- a/services/preview/security/mgmt/v3.0/security/discoveredsecuritysolutions.go +++ b/services/preview/security/mgmt/v3.0/security/discoveredsecuritysolutions.go @@ -85,6 +85,7 @@ func (client DiscoveredSecuritySolutionsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DiscoveredSecuritySolutionsClient", "Get", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client DiscoveredSecuritySolutionsClient) List(ctx context.Context) (resul result.dssl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DiscoveredSecuritySolutionsClient", "List", resp, "Failure responding to request") + return } if result.dssl.hasNextLink() && result.dssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -227,6 +229,7 @@ func (client DiscoveredSecuritySolutionsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DiscoveredSecuritySolutionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -282,6 +285,7 @@ func (client DiscoveredSecuritySolutionsClient) ListByHomeRegion(ctx context.Con result.dssl, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DiscoveredSecuritySolutionsClient", "ListByHomeRegion", resp, "Failure responding to request") + return } if result.dssl.hasNextLink() && result.dssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -345,6 +349,7 @@ func (client DiscoveredSecuritySolutionsClient) listByHomeRegionNextResults(ctx result, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DiscoveredSecuritySolutionsClient", "listByHomeRegionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/externalsecuritysolutions.go b/services/preview/security/mgmt/v3.0/security/externalsecuritysolutions.go index 1ab1c466384f..0ad44839737a 100644 --- a/services/preview/security/mgmt/v3.0/security/externalsecuritysolutions.go +++ b/services/preview/security/mgmt/v3.0/security/externalsecuritysolutions.go @@ -85,6 +85,7 @@ func (client ExternalSecuritySolutionsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ExternalSecuritySolutionsClient", "Get", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client ExternalSecuritySolutionsClient) List(ctx context.Context) (result result.essl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ExternalSecuritySolutionsClient", "List", resp, "Failure responding to request") + return } if result.essl.hasNextLink() && result.essl.IsEmpty() { err = result.NextWithContext(ctx) @@ -227,6 +229,7 @@ func (client ExternalSecuritySolutionsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ExternalSecuritySolutionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -282,6 +285,7 @@ func (client ExternalSecuritySolutionsClient) ListByHomeRegion(ctx context.Conte result.essl, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ExternalSecuritySolutionsClient", "ListByHomeRegion", resp, "Failure responding to request") + return } if result.essl.hasNextLink() && result.essl.IsEmpty() { err = result.NextWithContext(ctx) @@ -345,6 +349,7 @@ func (client ExternalSecuritySolutionsClient) listByHomeRegionNextResults(ctx co result, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ExternalSecuritySolutionsClient", "listByHomeRegionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/informationprotectionpolicies.go b/services/preview/security/mgmt/v3.0/security/informationprotectionpolicies.go index 22f070a19352..763996043ce7 100644 --- a/services/preview/security/mgmt/v3.0/security/informationprotectionpolicies.go +++ b/services/preview/security/mgmt/v3.0/security/informationprotectionpolicies.go @@ -75,6 +75,7 @@ func (client InformationProtectionPoliciesClient) CreateOrUpdate(ctx context.Con result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.InformationProtectionPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client InformationProtectionPoliciesClient) Get(ctx context.Context, scope result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.InformationProtectionPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -227,6 +229,7 @@ func (client InformationProtectionPoliciesClient) List(ctx context.Context, scop result.ippl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.InformationProtectionPoliciesClient", "List", resp, "Failure responding to request") + return } if result.ippl.hasNextLink() && result.ippl.IsEmpty() { err = result.NextWithContext(ctx) @@ -289,6 +292,7 @@ func (client InformationProtectionPoliciesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.InformationProtectionPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/iotalerts.go b/services/preview/security/mgmt/v3.0/security/iotalerts.go index 656a3fb1c03f..123a6710eb60 100644 --- a/services/preview/security/mgmt/v3.0/security/iotalerts.go +++ b/services/preview/security/mgmt/v3.0/security/iotalerts.go @@ -85,6 +85,7 @@ func (client IotAlertsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotAlertsClient", "Get", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client IotAlertsClient) Get1(ctx context.Context, scope string, iotAlertID result, err = client.Get1Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotAlertsClient", "Get1", resp, "Failure responding to request") + return } return @@ -254,6 +256,7 @@ func (client IotAlertsClient) List(ctx context.Context, resourceGroupName string result.ial, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotAlertsClient", "List", resp, "Failure responding to request") + return } if result.ial.hasNextLink() && result.ial.IsEmpty() { err = result.NextWithContext(ctx) @@ -336,6 +339,7 @@ func (client IotAlertsClient) listNextResults(ctx context.Context, lastResults I result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotAlertsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -395,6 +399,7 @@ func (client IotAlertsClient) List1(ctx context.Context, scope string, minStartT result.ialm, err = client.List1Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotAlertsClient", "List1", resp, "Failure responding to request") + return } if result.ialm.hasNextLink() && result.ialm.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +483,7 @@ func (client IotAlertsClient) list1NextResults(ctx context.Context, lastResults result, err = client.List1Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotAlertsClient", "list1NextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/iotalerttypes.go b/services/preview/security/mgmt/v3.0/security/iotalerttypes.go index 4f1e6439a4f7..ed84dcedea5c 100644 --- a/services/preview/security/mgmt/v3.0/security/iotalerttypes.go +++ b/services/preview/security/mgmt/v3.0/security/iotalerttypes.go @@ -85,6 +85,7 @@ func (client IotAlertTypesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotAlertTypesClient", "Get", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client IotAlertTypesClient) Get1(ctx context.Context, iotAlertTypeName str result, err = client.Get1Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotAlertTypesClient", "Get1", resp, "Failure responding to request") + return } return @@ -251,6 +253,7 @@ func (client IotAlertTypesClient) List(ctx context.Context, resourceGroupName st result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotAlertTypesClient", "List", resp, "Failure responding to request") + return } return @@ -329,6 +332,7 @@ func (client IotAlertTypesClient) List1(ctx context.Context) (result IotAlertTyp result, err = client.List1Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotAlertTypesClient", "List1", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v3.0/security/iotdefendersettings.go b/services/preview/security/mgmt/v3.0/security/iotdefendersettings.go index c029c7915061..4f90777a71ca 100644 --- a/services/preview/security/mgmt/v3.0/security/iotdefendersettings.go +++ b/services/preview/security/mgmt/v3.0/security/iotdefendersettings.go @@ -85,6 +85,7 @@ func (client IotDefenderSettingsClient) CreateOrUpdate(ctx context.Context, iotD result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotDefenderSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client IotDefenderSettingsClient) Delete(ctx context.Context) (result auto result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotDefenderSettingsClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client IotDefenderSettingsClient) DownloadManagerActivation(ctx context.Co result, err = client.DownloadManagerActivationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotDefenderSettingsClient", "DownloadManagerActivation", resp, "Failure responding to request") + return } return @@ -313,6 +316,7 @@ func (client IotDefenderSettingsClient) Get(ctx context.Context) (result IotDefe result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotDefenderSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -389,6 +393,7 @@ func (client IotDefenderSettingsClient) List(ctx context.Context) (result IotDef result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotDefenderSettingsClient", "List", resp, "Failure responding to request") + return } return @@ -465,6 +470,7 @@ func (client IotDefenderSettingsClient) PackageDownloadsMethod(ctx context.Conte result, err = client.PackageDownloadsMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotDefenderSettingsClient", "PackageDownloadsMethod", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v3.0/security/iotrecommendations.go b/services/preview/security/mgmt/v3.0/security/iotrecommendations.go index ae60245c0e83..b14e6b0e2671 100644 --- a/services/preview/security/mgmt/v3.0/security/iotrecommendations.go +++ b/services/preview/security/mgmt/v3.0/security/iotrecommendations.go @@ -86,6 +86,7 @@ func (client IotRecommendationsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotRecommendationsClient", "Get", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client IotRecommendationsClient) Get1(ctx context.Context, scope string, i result, err = client.Get1Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotRecommendationsClient", "Get1", resp, "Failure responding to request") + return } return @@ -253,6 +255,7 @@ func (client IotRecommendationsClient) List(ctx context.Context, resourceGroupNa result.irl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotRecommendationsClient", "List", resp, "Failure responding to request") + return } if result.irl.hasNextLink() && result.irl.IsEmpty() { err = result.NextWithContext(ctx) @@ -329,6 +332,7 @@ func (client IotRecommendationsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotRecommendationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -385,6 +389,7 @@ func (client IotRecommendationsClient) List1(ctx context.Context, scope string, result.irlm, err = client.List1Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotRecommendationsClient", "List1", resp, "Failure responding to request") + return } if result.irlm.hasNextLink() && result.irlm.IsEmpty() { err = result.NextWithContext(ctx) @@ -459,6 +464,7 @@ func (client IotRecommendationsClient) list1NextResults(ctx context.Context, las result, err = client.List1Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotRecommendationsClient", "list1NextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/iotrecommendationtypes.go b/services/preview/security/mgmt/v3.0/security/iotrecommendationtypes.go index 7a0e045e2e16..186760991697 100644 --- a/services/preview/security/mgmt/v3.0/security/iotrecommendationtypes.go +++ b/services/preview/security/mgmt/v3.0/security/iotrecommendationtypes.go @@ -86,6 +86,7 @@ func (client IotRecommendationTypesClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotRecommendationTypesClient", "Get", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client IotRecommendationTypesClient) Get1(ctx context.Context, iotRecommen result, err = client.Get1Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotRecommendationTypesClient", "Get1", resp, "Failure responding to request") + return } return @@ -252,6 +254,7 @@ func (client IotRecommendationTypesClient) List(ctx context.Context, resourceGro result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotRecommendationTypesClient", "List", resp, "Failure responding to request") + return } return @@ -330,6 +333,7 @@ func (client IotRecommendationTypesClient) List1(ctx context.Context) (result Io result, err = client.List1Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotRecommendationTypesClient", "List1", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v3.0/security/iotsecuritysolution.go b/services/preview/security/mgmt/v3.0/security/iotsecuritysolution.go index a61324ccdf9f..b885bb70f874 100644 --- a/services/preview/security/mgmt/v3.0/security/iotsecuritysolution.go +++ b/services/preview/security/mgmt/v3.0/security/iotsecuritysolution.go @@ -95,6 +95,7 @@ func (client IotSecuritySolutionClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSecuritySolutionClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client IotSecuritySolutionClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSecuritySolutionClient", "Delete", resp, "Failure responding to request") + return } return @@ -271,6 +273,7 @@ func (client IotSecuritySolutionClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSecuritySolutionClient", "Get", resp, "Failure responding to request") + return } return @@ -358,6 +361,7 @@ func (client IotSecuritySolutionClient) ListByResourceGroup(ctx context.Context, result.itssl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSecuritySolutionClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.itssl.hasNextLink() && result.itssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -424,6 +428,7 @@ func (client IotSecuritySolutionClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSecuritySolutionClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -481,6 +486,7 @@ func (client IotSecuritySolutionClient) ListBySubscription(ctx context.Context, result.itssl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSecuritySolutionClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.itssl.hasNextLink() && result.itssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -546,6 +552,7 @@ func (client IotSecuritySolutionClient) listBySubscriptionNextResults(ctx contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSecuritySolutionClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -610,6 +617,7 @@ func (client IotSecuritySolutionClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSecuritySolutionClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionanalytics.go b/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionanalytics.go index 9f537df7cab0..eb675a9b6aea 100644 --- a/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionanalytics.go +++ b/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionanalytics.go @@ -85,6 +85,7 @@ func (client IotSecuritySolutionAnalyticsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSecuritySolutionAnalyticsClient", "Get", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client IotSecuritySolutionAnalyticsClient) List(ctx context.Context, resou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSecuritySolutionAnalyticsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsanalyticsaggregatedalert.go b/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsanalyticsaggregatedalert.go index 872a957953af..83a889c63119 100644 --- a/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsanalyticsaggregatedalert.go +++ b/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsanalyticsaggregatedalert.go @@ -88,6 +88,7 @@ func (client IotSecuritySolutionsAnalyticsAggregatedAlertClient) Dismiss(ctx con result, err = client.DismissResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSecuritySolutionsAnalyticsAggregatedAlertClient", "Dismiss", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client IotSecuritySolutionsAnalyticsAggregatedAlertClient) Get(ctx context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSecuritySolutionsAnalyticsAggregatedAlertClient", "Get", resp, "Failure responding to request") + return } return @@ -265,6 +267,7 @@ func (client IotSecuritySolutionsAnalyticsAggregatedAlertClient) List(ctx contex result.itsaal, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSecuritySolutionsAnalyticsAggregatedAlertClient", "List", resp, "Failure responding to request") + return } if result.itsaal.hasNextLink() && result.itsaal.IsEmpty() { err = result.NextWithContext(ctx) @@ -332,6 +335,7 @@ func (client IotSecuritySolutionsAnalyticsAggregatedAlertClient) listNextResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSecuritySolutionsAnalyticsAggregatedAlertClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsanalyticsrecommendation.go b/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsanalyticsrecommendation.go index e38412b4d9fb..ed936611285f 100644 --- a/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsanalyticsrecommendation.go +++ b/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsanalyticsrecommendation.go @@ -89,6 +89,7 @@ func (client IotSecuritySolutionsAnalyticsRecommendationClient) Get(ctx context. result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSecuritySolutionsAnalyticsRecommendationClient", "Get", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client IotSecuritySolutionsAnalyticsRecommendationClient) List(ctx context result.itsarl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSecuritySolutionsAnalyticsRecommendationClient", "List", resp, "Failure responding to request") + return } if result.itsarl.hasNextLink() && result.itsarl.IsEmpty() { err = result.NextWithContext(ctx) @@ -246,6 +248,7 @@ func (client IotSecuritySolutionsAnalyticsRecommendationClient) listNextResults( result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSecuritySolutionsAnalyticsRecommendationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/iotsensors.go b/services/preview/security/mgmt/v3.0/security/iotsensors.go index c3bcdf83fc6b..4259e956e4d8 100644 --- a/services/preview/security/mgmt/v3.0/security/iotsensors.go +++ b/services/preview/security/mgmt/v3.0/security/iotsensors.go @@ -72,6 +72,7 @@ func (client IotSensorsClient) CreateOrUpdate(ctx context.Context, scope string, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSensorsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client IotSensorsClient) Delete(ctx context.Context, scope string, iotSens result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSensorsClient", "Delete", resp, "Failure responding to request") + return } return @@ -219,6 +221,7 @@ func (client IotSensorsClient) DownloadActivation(ctx context.Context, scope str result, err = client.DownloadActivationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSensorsClient", "DownloadActivation", resp, "Failure responding to request") + return } return @@ -293,6 +296,7 @@ func (client IotSensorsClient) DownloadResetPassword(ctx context.Context, scope result, err = client.DownloadResetPasswordResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSensorsClient", "DownloadResetPassword", resp, "Failure responding to request") + return } return @@ -368,6 +372,7 @@ func (client IotSensorsClient) Get(ctx context.Context, scope string, iotSensorN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSensorsClient", "Get", resp, "Failure responding to request") + return } return @@ -441,6 +446,7 @@ func (client IotSensorsClient) List(ctx context.Context, scope string) (result I result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSensorsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v3.0/security/jitnetworkaccesspolicies.go b/services/preview/security/mgmt/v3.0/security/jitnetworkaccesspolicies.go index b0dfcb15030f..17eeb2a18fd5 100644 --- a/services/preview/security/mgmt/v3.0/security/jitnetworkaccesspolicies.go +++ b/services/preview/security/mgmt/v3.0/security/jitnetworkaccesspolicies.go @@ -88,6 +88,7 @@ func (client JitNetworkAccessPoliciesClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client JitNetworkAccessPoliciesClient) Delete(ctx context.Context, resourc result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -267,6 +269,7 @@ func (client JitNetworkAccessPoliciesClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -356,6 +359,7 @@ func (client JitNetworkAccessPoliciesClient) Initiate(ctx context.Context, resou result, err = client.InitiateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "Initiate", resp, "Failure responding to request") + return } return @@ -439,6 +443,7 @@ func (client JitNetworkAccessPoliciesClient) List(ctx context.Context) (result J result.jnapl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "List", resp, "Failure responding to request") + return } if result.jnapl.hasNextLink() && result.jnapl.IsEmpty() { err = result.NextWithContext(ctx) @@ -501,6 +506,7 @@ func (client JitNetworkAccessPoliciesClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -556,6 +562,7 @@ func (client JitNetworkAccessPoliciesClient) ListByRegion(ctx context.Context) ( result.jnapl, err = client.ListByRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "ListByRegion", resp, "Failure responding to request") + return } if result.jnapl.hasNextLink() && result.jnapl.IsEmpty() { err = result.NextWithContext(ctx) @@ -619,6 +626,7 @@ func (client JitNetworkAccessPoliciesClient) listByRegionNextResults(ctx context result, err = client.ListByRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "listByRegionNextResults", resp, "Failure responding to next results request") + return } return } @@ -682,6 +690,7 @@ func (client JitNetworkAccessPoliciesClient) ListByResourceGroup(ctx context.Con result.jnapl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.jnapl.hasNextLink() && result.jnapl.IsEmpty() { err = result.NextWithContext(ctx) @@ -745,6 +754,7 @@ func (client JitNetworkAccessPoliciesClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -808,6 +818,7 @@ func (client JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegion(ctx co result.jnapl, err = client.ListByResourceGroupAndRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "ListByResourceGroupAndRegion", resp, "Failure responding to request") + return } if result.jnapl.hasNextLink() && result.jnapl.IsEmpty() { err = result.NextWithContext(ctx) @@ -872,6 +883,7 @@ func (client JitNetworkAccessPoliciesClient) listByResourceGroupAndRegionNextRes result, err = client.ListByResourceGroupAndRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "listByResourceGroupAndRegionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/locations.go b/services/preview/security/mgmt/v3.0/security/locations.go index cccea770f716..3da6b15d7f0c 100644 --- a/services/preview/security/mgmt/v3.0/security/locations.go +++ b/services/preview/security/mgmt/v3.0/security/locations.go @@ -76,6 +76,7 @@ func (client LocationsClient) Get(ctx context.Context) (result AscLocation, err result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.LocationsClient", "Get", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client LocationsClient) List(ctx context.Context) (result AscLocationListP result.all, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.LocationsClient", "List", resp, "Failure responding to request") + return } if result.all.hasNextLink() && result.all.IsEmpty() { err = result.NextWithContext(ctx) @@ -218,6 +220,7 @@ func (client LocationsClient) listNextResults(ctx context.Context, lastResults A result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.LocationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/onpremiseiotsensors.go b/services/preview/security/mgmt/v3.0/security/onpremiseiotsensors.go index 81253394eed2..ffc7bc948c01 100644 --- a/services/preview/security/mgmt/v3.0/security/onpremiseiotsensors.go +++ b/services/preview/security/mgmt/v3.0/security/onpremiseiotsensors.go @@ -79,6 +79,7 @@ func (client OnPremiseIotSensorsClient) CreateOrUpdate(ctx context.Context, onPr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.OnPremiseIotSensorsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client OnPremiseIotSensorsClient) Delete(ctx context.Context, onPremiseIot result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.OnPremiseIotSensorsClient", "Delete", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client OnPremiseIotSensorsClient) DownloadActivation(ctx context.Context, result, err = client.DownloadActivationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.OnPremiseIotSensorsClient", "DownloadActivation", resp, "Failure responding to request") + return } return @@ -315,6 +318,7 @@ func (client OnPremiseIotSensorsClient) DownloadResetPassword(ctx context.Contex result, err = client.DownloadResetPasswordResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.OnPremiseIotSensorsClient", "DownloadResetPassword", resp, "Failure responding to request") + return } return @@ -395,6 +399,7 @@ func (client OnPremiseIotSensorsClient) Get(ctx context.Context, onPremiseIotSen result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.OnPremiseIotSensorsClient", "Get", resp, "Failure responding to request") + return } return @@ -472,6 +477,7 @@ func (client OnPremiseIotSensorsClient) List(ctx context.Context) (result OnPrem result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.OnPremiseIotSensorsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v3.0/security/operations.go b/services/preview/security/mgmt/v3.0/security/operations.go index 7c0687ccd870..182e56dac878 100644 --- a/services/preview/security/mgmt/v3.0/security/operations.go +++ b/services/preview/security/mgmt/v3.0/security/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListPa result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/pricings.go b/services/preview/security/mgmt/v3.0/security/pricings.go index 4a7b973d2049..59b550625297 100644 --- a/services/preview/security/mgmt/v3.0/security/pricings.go +++ b/services/preview/security/mgmt/v3.0/security/pricings.go @@ -78,6 +78,7 @@ func (client PricingsClient) Get(ctx context.Context, pricingName string) (resul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.PricingsClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client PricingsClient) List(ctx context.Context) (result PricingList, err result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.PricingsClient", "List", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client PricingsClient) Update(ctx context.Context, pricingName string, pri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.PricingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v3.0/security/regulatorycomplianceassessments.go b/services/preview/security/mgmt/v3.0/security/regulatorycomplianceassessments.go index 64de12cdf182..2ac9c4c141cd 100644 --- a/services/preview/security/mgmt/v3.0/security/regulatorycomplianceassessments.go +++ b/services/preview/security/mgmt/v3.0/security/regulatorycomplianceassessments.go @@ -82,6 +82,7 @@ func (client RegulatoryComplianceAssessmentsClient) Get(ctx context.Context, reg result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceAssessmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client RegulatoryComplianceAssessmentsClient) List(ctx context.Context, re result.rcal, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceAssessmentsClient", "List", resp, "Failure responding to request") + return } if result.rcal.hasNextLink() && result.rcal.IsEmpty() { err = result.NextWithContext(ctx) @@ -233,6 +235,7 @@ func (client RegulatoryComplianceAssessmentsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceAssessmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/regulatorycompliancecontrols.go b/services/preview/security/mgmt/v3.0/security/regulatorycompliancecontrols.go index 069e0c6880db..70a6470c3498 100644 --- a/services/preview/security/mgmt/v3.0/security/regulatorycompliancecontrols.go +++ b/services/preview/security/mgmt/v3.0/security/regulatorycompliancecontrols.go @@ -80,6 +80,7 @@ func (client RegulatoryComplianceControlsClient) Get(ctx context.Context, regula result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceControlsClient", "Get", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client RegulatoryComplianceControlsClient) List(ctx context.Context, regul result.rccl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceControlsClient", "List", resp, "Failure responding to request") + return } if result.rccl.hasNextLink() && result.rccl.IsEmpty() { err = result.NextWithContext(ctx) @@ -228,6 +230,7 @@ func (client RegulatoryComplianceControlsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceControlsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/regulatorycompliancestandards.go b/services/preview/security/mgmt/v3.0/security/regulatorycompliancestandards.go index 62e3a715ae30..1c2bf9f19d8e 100644 --- a/services/preview/security/mgmt/v3.0/security/regulatorycompliancestandards.go +++ b/services/preview/security/mgmt/v3.0/security/regulatorycompliancestandards.go @@ -79,6 +79,7 @@ func (client RegulatoryComplianceStandardsClient) Get(ctx context.Context, regul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceStandardsClient", "Get", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client RegulatoryComplianceStandardsClient) List(ctx context.Context, filt result.rcsl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceStandardsClient", "List", resp, "Failure responding to request") + return } if result.rcsl.hasNextLink() && result.rcsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -224,6 +226,7 @@ func (client RegulatoryComplianceStandardsClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceStandardsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/securescorecontroldefinitions.go b/services/preview/security/mgmt/v3.0/security/securescorecontroldefinitions.go index dcad4fa4af0d..871d3cdb0c41 100644 --- a/services/preview/security/mgmt/v3.0/security/securescorecontroldefinitions.go +++ b/services/preview/security/mgmt/v3.0/security/securescorecontroldefinitions.go @@ -72,6 +72,7 @@ func (client SecureScoreControlDefinitionsClient) List(ctx context.Context) (res result.sscdl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlDefinitionsClient", "List", resp, "Failure responding to request") + return } if result.sscdl.hasNextLink() && result.sscdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client SecureScoreControlDefinitionsClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlDefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -186,6 +188,7 @@ func (client SecureScoreControlDefinitionsClient) ListBySubscription(ctx context result.sscdl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlDefinitionsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.sscdl.hasNextLink() && result.sscdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -248,6 +251,7 @@ func (client SecureScoreControlDefinitionsClient) listBySubscriptionNextResults( result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlDefinitionsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/securescorecontrols.go b/services/preview/security/mgmt/v3.0/security/securescorecontrols.go index 2c3d9aa33a68..767f93dfc790 100644 --- a/services/preview/security/mgmt/v3.0/security/securescorecontrols.go +++ b/services/preview/security/mgmt/v3.0/security/securescorecontrols.go @@ -80,6 +80,7 @@ func (client SecureScoreControlsClient) List(ctx context.Context, expand ExpandC result.sscl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlsClient", "List", resp, "Failure responding to request") + return } if result.sscl.hasNextLink() && result.sscl.IsEmpty() { err = result.NextWithContext(ctx) @@ -145,6 +146,7 @@ func (client SecureScoreControlsClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -204,6 +206,7 @@ func (client SecureScoreControlsClient) ListBySecureScore(ctx context.Context, s result.sscl, err = client.ListBySecureScoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlsClient", "ListBySecureScore", resp, "Failure responding to request") + return } if result.sscl.hasNextLink() && result.sscl.IsEmpty() { err = result.NextWithContext(ctx) @@ -270,6 +273,7 @@ func (client SecureScoreControlsClient) listBySecureScoreNextResults(ctx context result, err = client.ListBySecureScoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlsClient", "listBySecureScoreNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/securescores.go b/services/preview/security/mgmt/v3.0/security/securescores.go index eb5848e0065a..666196d1f46a 100644 --- a/services/preview/security/mgmt/v3.0/security/securescores.go +++ b/services/preview/security/mgmt/v3.0/security/securescores.go @@ -80,6 +80,7 @@ func (client SecureScoresClient) Get(ctx context.Context, secureScoreName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoresClient", "Get", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client SecureScoresClient) List(ctx context.Context) (result SecureScoresL result.ssl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoresClient", "List", resp, "Failure responding to request") + return } if result.ssl.hasNextLink() && result.ssl.IsEmpty() { err = result.NextWithContext(ctx) @@ -220,6 +222,7 @@ func (client SecureScoresClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoresClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/servervulnerabilityassessment.go b/services/preview/security/mgmt/v3.0/security/servervulnerabilityassessment.go index 8d129aa5516e..ecf92486cfab 100644 --- a/services/preview/security/mgmt/v3.0/security/servervulnerabilityassessment.go +++ b/services/preview/security/mgmt/v3.0/security/servervulnerabilityassessment.go @@ -88,6 +88,7 @@ func (client ServerVulnerabilityAssessmentClient) CreateOrUpdate(ctx context.Con result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ServerVulnerabilityAssessmentClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client ServerVulnerabilityAssessmentClient) Delete(ctx context.Context, re result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ServerVulnerabilityAssessmentClient", "Delete", resp, "Failure responding to request") + return } return @@ -269,6 +271,7 @@ func (client ServerVulnerabilityAssessmentClient) Get(ctx context.Context, resou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ServerVulnerabilityAssessmentClient", "Get", resp, "Failure responding to request") + return } return @@ -360,6 +363,7 @@ func (client ServerVulnerabilityAssessmentClient) ListByExtendedResource(ctx con result, err = client.ListByExtendedResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ServerVulnerabilityAssessmentClient", "ListByExtendedResource", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v3.0/security/settings.go b/services/preview/security/mgmt/v3.0/security/settings.go index 9098f08e3e2e..dee8ddd5dc2b 100644 --- a/services/preview/security/mgmt/v3.0/security/settings.go +++ b/services/preview/security/mgmt/v3.0/security/settings.go @@ -78,6 +78,7 @@ func (client SettingsClient) Get(ctx context.Context, settingName string) (resul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client SettingsClient) List(ctx context.Context) (result SettingsListPage, result.sl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SettingsClient", "List", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -218,6 +220,7 @@ func (client SettingsClient) listNextResults(ctx context.Context, lastResults Se result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SettingsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -275,6 +278,7 @@ func (client SettingsClient) Update(ctx context.Context, settingName string, set result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v3.0/security/solutions.go b/services/preview/security/mgmt/v3.0/security/solutions.go index 5bdfd2a4b952..6f1f7e24ca83 100644 --- a/services/preview/security/mgmt/v3.0/security/solutions.go +++ b/services/preview/security/mgmt/v3.0/security/solutions.go @@ -84,6 +84,7 @@ func (client SolutionsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SolutionsClient", "Get", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client SolutionsClient) List(ctx context.Context) (result SolutionListPage result.sl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SolutionsClient", "List", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -226,6 +228,7 @@ func (client SolutionsClient) listNextResults(ctx context.Context, lastResults S result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SolutionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/solutionsreferencedata.go b/services/preview/security/mgmt/v3.0/security/solutionsreferencedata.go index a1a371c454a4..af7528e040af 100644 --- a/services/preview/security/mgmt/v3.0/security/solutionsreferencedata.go +++ b/services/preview/security/mgmt/v3.0/security/solutionsreferencedata.go @@ -77,6 +77,7 @@ func (client SolutionsReferenceDataClient) List(ctx context.Context) (result Sol result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SolutionsReferenceDataClient", "List", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client SolutionsReferenceDataClient) ListByHomeRegion(ctx context.Context) result, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SolutionsReferenceDataClient", "ListByHomeRegion", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v3.0/security/sqlvulnerabilityassessmentbaselinerules.go b/services/preview/security/mgmt/v3.0/security/sqlvulnerabilityassessmentbaselinerules.go index 4d5d80df050e..1969b055a3bc 100644 --- a/services/preview/security/mgmt/v3.0/security/sqlvulnerabilityassessmentbaselinerules.go +++ b/services/preview/security/mgmt/v3.0/security/sqlvulnerabilityassessmentbaselinerules.go @@ -77,6 +77,7 @@ func (client SQLVulnerabilityAssessmentBaselineRulesClient) Add(ctx context.Cont result, err = client.AddResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentBaselineRulesClient", "Add", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client SQLVulnerabilityAssessmentBaselineRulesClient) CreateOrUpdate(ctx c result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentBaselineRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client SQLVulnerabilityAssessmentBaselineRulesClient) Delete(ctx context.C result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentBaselineRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -314,6 +317,7 @@ func (client SQLVulnerabilityAssessmentBaselineRulesClient) Get(ctx context.Cont result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentBaselineRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -389,6 +393,7 @@ func (client SQLVulnerabilityAssessmentBaselineRulesClient) List(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentBaselineRulesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v3.0/security/sqlvulnerabilityassessmentscanresults.go b/services/preview/security/mgmt/v3.0/security/sqlvulnerabilityassessmentscanresults.go index a0d9caa08ef9..56e271a5d9c7 100644 --- a/services/preview/security/mgmt/v3.0/security/sqlvulnerabilityassessmentscanresults.go +++ b/services/preview/security/mgmt/v3.0/security/sqlvulnerabilityassessmentscanresults.go @@ -78,6 +78,7 @@ func (client SQLVulnerabilityAssessmentScanResultsClient) Get(ctx context.Contex result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentScanResultsClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client SQLVulnerabilityAssessmentScanResultsClient) List(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentScanResultsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v3.0/security/sqlvulnerabilityassessmentscans.go b/services/preview/security/mgmt/v3.0/security/sqlvulnerabilityassessmentscans.go index 417f3081f74c..d8210adcf4cf 100644 --- a/services/preview/security/mgmt/v3.0/security/sqlvulnerabilityassessmentscans.go +++ b/services/preview/security/mgmt/v3.0/security/sqlvulnerabilityassessmentscans.go @@ -76,6 +76,7 @@ func (client SQLVulnerabilityAssessmentScansClient) Get(ctx context.Context, sca result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentScansClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client SQLVulnerabilityAssessmentScansClient) List(ctx context.Context, wo result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SQLVulnerabilityAssessmentScansClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v3.0/security/subassessments.go b/services/preview/security/mgmt/v3.0/security/subassessments.go index dcb46b74ca9d..5ad0f914731b 100644 --- a/services/preview/security/mgmt/v3.0/security/subassessments.go +++ b/services/preview/security/mgmt/v3.0/security/subassessments.go @@ -74,6 +74,7 @@ func (client SubAssessmentsClient) Get(ctx context.Context, scope string, assess result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SubAssessmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client SubAssessmentsClient) List(ctx context.Context, scope string, asses result.sal, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SubAssessmentsClient", "List", resp, "Failure responding to request") + return } if result.sal.hasNextLink() && result.sal.IsEmpty() { err = result.NextWithContext(ctx) @@ -214,6 +216,7 @@ func (client SubAssessmentsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SubAssessmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -266,6 +269,7 @@ func (client SubAssessmentsClient) ListAll(ctx context.Context, scope string) (r result.sal, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SubAssessmentsClient", "ListAll", resp, "Failure responding to request") + return } if result.sal.hasNextLink() && result.sal.IsEmpty() { err = result.NextWithContext(ctx) @@ -328,6 +332,7 @@ func (client SubAssessmentsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SubAssessmentsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/tasks.go b/services/preview/security/mgmt/v3.0/security/tasks.go index 34d8790bd7c7..a7fc1430a58c 100644 --- a/services/preview/security/mgmt/v3.0/security/tasks.go +++ b/services/preview/security/mgmt/v3.0/security/tasks.go @@ -84,6 +84,7 @@ func (client TasksClient) GetResourceGroupLevelTask(ctx context.Context, resourc result, err = client.GetResourceGroupLevelTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "GetResourceGroupLevelTask", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client TasksClient) GetSubscriptionLevelTask(ctx context.Context, taskName result, err = client.GetSubscriptionLevelTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "GetSubscriptionLevelTask", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client TasksClient) List(ctx context.Context, filter string) (result TaskL result.tl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "List", resp, "Failure responding to request") + return } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) @@ -311,6 +314,7 @@ func (client TasksClient) listNextResults(ctx context.Context, lastResults TaskL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -368,6 +372,7 @@ func (client TasksClient) ListByHomeRegion(ctx context.Context, filter string) ( result.tl, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "ListByHomeRegion", resp, "Failure responding to request") + return } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) @@ -434,6 +439,7 @@ func (client TasksClient) listByHomeRegionNextResults(ctx context.Context, lastR result, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "listByHomeRegionNextResults", resp, "Failure responding to next results request") + return } return } @@ -497,6 +503,7 @@ func (client TasksClient) ListByResourceGroup(ctx context.Context, resourceGroup result.tl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) @@ -564,6 +571,7 @@ func (client TasksClient) listByResourceGroupNextResults(ctx context.Context, la result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -628,6 +636,7 @@ func (client TasksClient) UpdateResourceGroupLevelTaskState(ctx context.Context, result, err = client.UpdateResourceGroupLevelTaskStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "UpdateResourceGroupLevelTaskState", resp, "Failure responding to request") + return } return @@ -711,6 +720,7 @@ func (client TasksClient) UpdateSubscriptionLevelTaskState(ctx context.Context, result, err = client.UpdateSubscriptionLevelTaskStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "UpdateSubscriptionLevelTaskState", resp, "Failure responding to request") + return } return diff --git a/services/preview/security/mgmt/v3.0/security/topology.go b/services/preview/security/mgmt/v3.0/security/topology.go index e2f193648053..549078056432 100644 --- a/services/preview/security/mgmt/v3.0/security/topology.go +++ b/services/preview/security/mgmt/v3.0/security/topology.go @@ -84,6 +84,7 @@ func (client TopologyClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TopologyClient", "Get", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client TopologyClient) List(ctx context.Context) (result TopologyListPage, result.tl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TopologyClient", "List", resp, "Failure responding to request") + return } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) @@ -226,6 +228,7 @@ func (client TopologyClient) listNextResults(ctx context.Context, lastResults To result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TopologyClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -281,6 +284,7 @@ func (client TopologyClient) ListByHomeRegion(ctx context.Context) (result Topol result.tl, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TopologyClient", "ListByHomeRegion", resp, "Failure responding to request") + return } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) @@ -344,6 +348,7 @@ func (client TopologyClient) listByHomeRegionNextResults(ctx context.Context, la result, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TopologyClient", "listByHomeRegionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/security/mgmt/v3.0/security/workspacesettings.go b/services/preview/security/mgmt/v3.0/security/workspacesettings.go index 9eb533d2e638..41f3137c7d4d 100644 --- a/services/preview/security/mgmt/v3.0/security/workspacesettings.go +++ b/services/preview/security/mgmt/v3.0/security/workspacesettings.go @@ -85,6 +85,7 @@ func (client WorkspaceSettingsClient) Create(ctx context.Context, workspaceSetti result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.WorkspaceSettingsClient", "Create", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client WorkspaceSettingsClient) Delete(ctx context.Context, workspaceSetti result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.WorkspaceSettingsClient", "Delete", resp, "Failure responding to request") + return } return @@ -245,6 +247,7 @@ func (client WorkspaceSettingsClient) Get(ctx context.Context, workspaceSettingN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.WorkspaceSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -324,6 +327,7 @@ func (client WorkspaceSettingsClient) List(ctx context.Context) (result Workspac result.wsl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.WorkspaceSettingsClient", "List", resp, "Failure responding to request") + return } if result.wsl.hasNextLink() && result.wsl.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +390,7 @@ func (client WorkspaceSettingsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.WorkspaceSettingsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -443,6 +448,7 @@ func (client WorkspaceSettingsClient) Update(ctx context.Context, workspaceSetti result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.WorkspaceSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/actions.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/actions.go index 741a9b694a27..825b2f0bb59c 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/actions.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/actions.go @@ -91,6 +91,7 @@ func (client ActionsClient) ListByAlertRule(ctx context.Context, resourceGroupNa result.al, err = client.ListByAlertRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.ActionsClient", "ListByAlertRule", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -157,6 +158,7 @@ func (client ActionsClient) listByAlertRuleNextResults(ctx context.Context, last result, err = client.ListByAlertRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.ActionsClient", "listByAlertRuleNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/alertrules.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/alertrules.go index 6e661590440f..ff91e0a7ca76 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/alertrules.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/alertrules.go @@ -91,6 +91,7 @@ func (client AlertRulesClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.AlertRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -189,6 +190,7 @@ func (client AlertRulesClient) CreateOrUpdateAction(ctx context.Context, resourc result, err = client.CreateOrUpdateActionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.AlertRulesClient", "CreateOrUpdateAction", resp, "Failure responding to request") + return } return @@ -286,6 +288,7 @@ func (client AlertRulesClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.AlertRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -380,6 +383,7 @@ func (client AlertRulesClient) DeleteAction(ctx context.Context, resourceGroupNa result, err = client.DeleteActionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.AlertRulesClient", "DeleteAction", resp, "Failure responding to request") + return } return @@ -474,6 +478,7 @@ func (client AlertRulesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.AlertRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -569,6 +574,7 @@ func (client AlertRulesClient) GetAction(ctx context.Context, resourceGroupName result, err = client.GetActionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.AlertRulesClient", "GetAction", resp, "Failure responding to request") + return } return @@ -664,6 +670,7 @@ func (client AlertRulesClient) List(ctx context.Context, resourceGroupName strin result.arl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.AlertRulesClient", "List", resp, "Failure responding to request") + return } if result.arl.hasNextLink() && result.arl.IsEmpty() { err = result.NextWithContext(ctx) @@ -729,6 +736,7 @@ func (client AlertRulesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.AlertRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/alertruletemplates.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/alertruletemplates.go index 6fbfe122e0ad..30cb356cd185 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/alertruletemplates.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/alertruletemplates.go @@ -91,6 +91,7 @@ func (client AlertRuleTemplatesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.AlertRuleTemplatesClient", "Get", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client AlertRuleTemplatesClient) List(ctx context.Context, resourceGroupNa result.artl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.AlertRuleTemplatesClient", "List", resp, "Failure responding to request") + return } if result.artl.hasNextLink() && result.artl.IsEmpty() { err = result.NextWithContext(ctx) @@ -250,6 +252,7 @@ func (client AlertRuleTemplatesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.AlertRuleTemplatesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/bookmark.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/bookmark.go index bc31c0405fbc..c548d89b8143 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/bookmark.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/bookmark.go @@ -91,6 +91,7 @@ func (client BookmarkClient) Expand(ctx context.Context, resourceGroupName strin result, err = client.ExpandResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.BookmarkClient", "Expand", resp, "Failure responding to request") + return } return diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/bookmarkrelations.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/bookmarkrelations.go index 1b2507d12442..53d20816442a 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/bookmarkrelations.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/bookmarkrelations.go @@ -96,6 +96,7 @@ func (client BookmarkRelationsClient) CreateOrUpdateRelation(ctx context.Context result, err = client.CreateOrUpdateRelationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.BookmarkRelationsClient", "CreateOrUpdateRelation", resp, "Failure responding to request") + return } return @@ -194,6 +195,7 @@ func (client BookmarkRelationsClient) DeleteRelation(ctx context.Context, resour result, err = client.DeleteRelationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.BookmarkRelationsClient", "DeleteRelation", resp, "Failure responding to request") + return } return @@ -289,6 +291,7 @@ func (client BookmarkRelationsClient) GetRelation(ctx context.Context, resourceG result, err = client.GetRelationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.BookmarkRelationsClient", "GetRelation", resp, "Failure responding to request") + return } return @@ -391,6 +394,7 @@ func (client BookmarkRelationsClient) List(ctx context.Context, resourceGroupNam result.rl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.BookmarkRelationsClient", "List", resp, "Failure responding to request") + return } if result.rl.hasNextLink() && result.rl.IsEmpty() { err = result.NextWithContext(ctx) @@ -469,6 +473,7 @@ func (client BookmarkRelationsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.BookmarkRelationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/bookmarks.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/bookmarks.go index 8e37e339a5ee..b4ae5bfc583d 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/bookmarks.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/bookmarks.go @@ -101,6 +101,7 @@ func (client BookmarksClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.BookmarksClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -197,6 +198,7 @@ func (client BookmarksClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.BookmarksClient", "Delete", resp, "Failure responding to request") + return } return @@ -290,6 +292,7 @@ func (client BookmarksClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.BookmarksClient", "Get", resp, "Failure responding to request") + return } return @@ -384,6 +387,7 @@ func (client BookmarksClient) List(ctx context.Context, resourceGroupName string result.bl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.BookmarksClient", "List", resp, "Failure responding to request") + return } if result.bl.hasNextLink() && result.bl.IsEmpty() { err = result.NextWithContext(ctx) @@ -449,6 +453,7 @@ func (client BookmarksClient) listNextResults(ctx context.Context, lastResults B result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.BookmarksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/casecomments.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/casecomments.go index afafb97c8999..97a5ac20a8ea 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/casecomments.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/casecomments.go @@ -95,6 +95,7 @@ func (client CaseCommentsClient) CreateComment(ctx context.Context, resourceGrou result, err = client.CreateCommentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.CaseCommentsClient", "CreateComment", resp, "Failure responding to request") + return } return diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/caserelations.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/caserelations.go index 3a79b0e0aff1..b79d3f495513 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/caserelations.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/caserelations.go @@ -92,6 +92,7 @@ func (client CaseRelationsClient) CreateOrUpdateRelation(ctx context.Context, re result, err = client.CreateOrUpdateRelationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.CaseRelationsClient", "CreateOrUpdateRelation", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client CaseRelationsClient) DeleteRelation(ctx context.Context, resourceGr result, err = client.DeleteRelationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.CaseRelationsClient", "DeleteRelation", resp, "Failure responding to request") + return } return @@ -285,6 +287,7 @@ func (client CaseRelationsClient) GetRelation(ctx context.Context, resourceGroup result, err = client.GetRelationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.CaseRelationsClient", "GetRelation", resp, "Failure responding to request") + return } return @@ -387,6 +390,7 @@ func (client CaseRelationsClient) List(ctx context.Context, resourceGroupName st result.crl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.CaseRelationsClient", "List", resp, "Failure responding to request") + return } if result.crl.hasNextLink() && result.crl.IsEmpty() { err = result.NextWithContext(ctx) @@ -465,6 +469,7 @@ func (client CaseRelationsClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.CaseRelationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/cases.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/cases.go index e6b867a357ef..9c1a11de2ed8 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/cases.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/cases.go @@ -96,6 +96,7 @@ func (client CasesClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.CasesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client CasesClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.CasesClient", "Delete", resp, "Failure responding to request") + return } return @@ -285,6 +287,7 @@ func (client CasesClient) Get(ctx context.Context, resourceGroupName string, ope result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.CasesClient", "Get", resp, "Failure responding to request") + return } return @@ -380,6 +383,7 @@ func (client CasesClient) GetComment(ctx context.Context, resourceGroupName stri result, err = client.GetCommentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.CasesClient", "GetComment", resp, "Failure responding to request") + return } return @@ -481,6 +485,7 @@ func (client CasesClient) List(ctx context.Context, resourceGroupName string, op result.cl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.CasesClient", "List", resp, "Failure responding to request") + return } if result.cl.hasNextLink() && result.cl.IsEmpty() { err = result.NextWithContext(ctx) @@ -558,6 +563,7 @@ func (client CasesClient) listNextResults(ctx context.Context, lastResults CaseL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.CasesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/casesaggregations.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/casesaggregations.go index 758fab2cebfe..be2be43e214e 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/casesaggregations.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/casesaggregations.go @@ -91,6 +91,7 @@ func (client CasesAggregationsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.CasesAggregationsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/comments.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/comments.go index 33366a3736ff..945298795bbe 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/comments.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/comments.go @@ -97,6 +97,7 @@ func (client CommentsClient) ListByCase(ctx context.Context, resourceGroupName s result.ccl, err = client.ListByCaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.CommentsClient", "ListByCase", resp, "Failure responding to request") + return } if result.ccl.hasNextLink() && result.ccl.IsEmpty() { err = result.NextWithContext(ctx) @@ -175,6 +176,7 @@ func (client CommentsClient) listByCaseNextResults(ctx context.Context, lastResu result, err = client.ListByCaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.CommentsClient", "listByCaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/dataconnectors.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/dataconnectors.go index a462c2b71d2e..da2163d7370d 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/dataconnectors.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/dataconnectors.go @@ -91,6 +91,7 @@ func (client DataConnectorsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.DataConnectorsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -187,6 +188,7 @@ func (client DataConnectorsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.DataConnectorsClient", "Delete", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client DataConnectorsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.DataConnectorsClient", "Get", resp, "Failure responding to request") + return } return @@ -374,6 +377,7 @@ func (client DataConnectorsClient) List(ctx context.Context, resourceGroupName s result.dcl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.DataConnectorsClient", "List", resp, "Failure responding to request") + return } if result.dcl.hasNextLink() && result.dcl.IsEmpty() { err = result.NextWithContext(ctx) @@ -439,6 +443,7 @@ func (client DataConnectorsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.DataConnectorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/dataconnectorscheckrequirements.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/dataconnectorscheckrequirements.go index 2184a7a6859e..dfb30b482cf0 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/dataconnectorscheckrequirements.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/dataconnectorscheckrequirements.go @@ -92,6 +92,7 @@ func (client DataConnectorsCheckRequirementsClient) Post(ctx context.Context, re result, err = client.PostResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.DataConnectorsCheckRequirementsClient", "Post", resp, "Failure responding to request") + return } return diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/entities.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/entities.go index 9c7e96b2fd05..dfafc8691a4d 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/entities.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/entities.go @@ -91,6 +91,7 @@ func (client EntitiesClient) Expand(ctx context.Context, resourceGroupName strin result, err = client.ExpandResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.EntitiesClient", "Expand", resp, "Failure responding to request") + return } return @@ -187,6 +188,7 @@ func (client EntitiesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.EntitiesClient", "Get", resp, "Failure responding to request") + return } return @@ -281,6 +283,7 @@ func (client EntitiesClient) List(ctx context.Context, resourceGroupName string, result.el, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.EntitiesClient", "List", resp, "Failure responding to request") + return } if result.el.hasNextLink() && result.el.IsEmpty() { err = result.NextWithContext(ctx) @@ -346,6 +349,7 @@ func (client EntitiesClient) listNextResults(ctx context.Context, lastResults En result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.EntitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/entitiesgettimeline.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/entitiesgettimeline.go index f8437bca767b..3e7047bde030 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/entitiesgettimeline.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/entitiesgettimeline.go @@ -95,6 +95,7 @@ func (client EntitiesGetTimelineClient) List(ctx context.Context, resourceGroupN result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.EntitiesGetTimelineClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/entitiesrelations.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/entitiesrelations.go index 7fceb2bc6e18..bb256c209644 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/entitiesrelations.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/entitiesrelations.go @@ -98,6 +98,7 @@ func (client EntitiesRelationsClient) List(ctx context.Context, resourceGroupNam result.rl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.EntitiesRelationsClient", "List", resp, "Failure responding to request") + return } if result.rl.hasNextLink() && result.rl.IsEmpty() { err = result.NextWithContext(ctx) @@ -176,6 +177,7 @@ func (client EntitiesRelationsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.EntitiesRelationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/entityqueries.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/entityqueries.go index e8b6d763dddb..33036cd73c06 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/entityqueries.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/entityqueries.go @@ -90,6 +90,7 @@ func (client EntityQueriesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.EntityQueriesClient", "Get", resp, "Failure responding to request") + return } return @@ -184,6 +185,7 @@ func (client EntityQueriesClient) List(ctx context.Context, resourceGroupName st result.eql, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.EntityQueriesClient", "List", resp, "Failure responding to request") + return } if result.eql.hasNextLink() && result.eql.IsEmpty() { err = result.NextWithContext(ctx) @@ -249,6 +251,7 @@ func (client EntityQueriesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.EntityQueriesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/entityrelations.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/entityrelations.go index 843414cb7b33..37f576e56cac 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/entityrelations.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/entityrelations.go @@ -91,6 +91,7 @@ func (client EntityRelationsClient) GetRelation(ctx context.Context, resourceGro result, err = client.GetRelationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.EntityRelationsClient", "GetRelation", resp, "Failure responding to request") + return } return diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/incidentcomments.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/incidentcomments.go index 11a86f738209..b2a6b488bc59 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/incidentcomments.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/incidentcomments.go @@ -96,6 +96,7 @@ func (client IncidentCommentsClient) CreateComment(ctx context.Context, resource result, err = client.CreateCommentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentCommentsClient", "CreateComment", resp, "Failure responding to request") + return } return @@ -194,6 +195,7 @@ func (client IncidentCommentsClient) DeleteComment(ctx context.Context, resource result, err = client.DeleteCommentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentCommentsClient", "DeleteComment", resp, "Failure responding to request") + return } return @@ -289,6 +291,7 @@ func (client IncidentCommentsClient) GetComment(ctx context.Context, resourceGro result, err = client.GetCommentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentCommentsClient", "GetComment", resp, "Failure responding to request") + return } return @@ -391,6 +394,7 @@ func (client IncidentCommentsClient) ListByIncident(ctx context.Context, resourc result.icl, err = client.ListByIncidentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentCommentsClient", "ListByIncident", resp, "Failure responding to request") + return } if result.icl.hasNextLink() && result.icl.IsEmpty() { err = result.NextWithContext(ctx) @@ -469,6 +473,7 @@ func (client IncidentCommentsClient) listByIncidentNextResults(ctx context.Conte result, err = client.ListByIncidentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentCommentsClient", "listByIncidentNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/incidentrelations.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/incidentrelations.go index 2cb5e5c3c197..e9a578a80c7c 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/incidentrelations.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/incidentrelations.go @@ -96,6 +96,7 @@ func (client IncidentRelationsClient) CreateOrUpdateRelation(ctx context.Context result, err = client.CreateOrUpdateRelationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentRelationsClient", "CreateOrUpdateRelation", resp, "Failure responding to request") + return } return @@ -194,6 +195,7 @@ func (client IncidentRelationsClient) DeleteRelation(ctx context.Context, resour result, err = client.DeleteRelationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentRelationsClient", "DeleteRelation", resp, "Failure responding to request") + return } return @@ -289,6 +291,7 @@ func (client IncidentRelationsClient) GetRelation(ctx context.Context, resourceG result, err = client.GetRelationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentRelationsClient", "GetRelation", resp, "Failure responding to request") + return } return @@ -391,6 +394,7 @@ func (client IncidentRelationsClient) List(ctx context.Context, resourceGroupNam result.rl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentRelationsClient", "List", resp, "Failure responding to request") + return } if result.rl.hasNextLink() && result.rl.IsEmpty() { err = result.NextWithContext(ctx) @@ -469,6 +473,7 @@ func (client IncidentRelationsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentRelationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/incidents.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/incidents.go index 06e06e813205..b6222e478e94 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/incidents.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/incidents.go @@ -94,6 +94,7 @@ func (client IncidentsClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client IncidentsClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -283,6 +285,7 @@ func (client IncidentsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentsClient", "Get", resp, "Failure responding to request") + return } return @@ -383,6 +386,7 @@ func (client IncidentsClient) List(ctx context.Context, resourceGroupName string result.il, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentsClient", "List", resp, "Failure responding to request") + return } if result.il.hasNextLink() && result.il.IsEmpty() { err = result.NextWithContext(ctx) @@ -460,6 +464,7 @@ func (client IncidentsClient) listNextResults(ctx context.Context, lastResults I result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -528,6 +533,7 @@ func (client IncidentsClient) ListOfAlerts(ctx context.Context, resourceGroupNam result, err = client.ListOfAlertsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentsClient", "ListOfAlerts", resp, "Failure responding to request") + return } return @@ -622,6 +628,7 @@ func (client IncidentsClient) ListOfBookmarks(ctx context.Context, resourceGroup result, err = client.ListOfBookmarksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentsClient", "ListOfBookmarks", resp, "Failure responding to request") + return } return @@ -716,6 +723,7 @@ func (client IncidentsClient) ListOfEntities(ctx context.Context, resourceGroupN result, err = client.ListOfEntitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentsClient", "ListOfEntities", resp, "Failure responding to request") + return } return diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/officeconsents.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/officeconsents.go index 12bac0eef2d1..2ce13e35c23c 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/officeconsents.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/officeconsents.go @@ -90,6 +90,7 @@ func (client OfficeConsentsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.OfficeConsentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -183,6 +184,7 @@ func (client OfficeConsentsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.OfficeConsentsClient", "Get", resp, "Failure responding to request") + return } return @@ -277,6 +279,7 @@ func (client OfficeConsentsClient) List(ctx context.Context, resourceGroupName s result.ocl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.OfficeConsentsClient", "List", resp, "Failure responding to request") + return } if result.ocl.hasNextLink() && result.ocl.IsEmpty() { err = result.NextWithContext(ctx) @@ -342,6 +345,7 @@ func (client OfficeConsentsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.OfficeConsentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/operations.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/operations.go index b82cb0032c95..6b3030536ee0 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/operations.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListP result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/productsettings.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/productsettings.go index 7feddaab598b..9f46b0546b94 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/productsettings.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/productsettings.go @@ -90,6 +90,7 @@ func (client ProductSettingsClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.ProductSettingsClient", "Delete", resp, "Failure responding to request") + return } return @@ -183,6 +184,7 @@ func (client ProductSettingsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.ProductSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -276,6 +278,7 @@ func (client ProductSettingsClient) GetAll(ctx context.Context, resourceGroupNam result, err = client.GetAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.ProductSettingsClient", "GetAll", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client ProductSettingsClient) Update(ctx context.Context, resourceGroupNam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.ProductSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/threatintelligenceindicator.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/threatintelligenceindicator.go index 70d6f4c569f0..9f3b83c5af9b 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/threatintelligenceindicator.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/threatintelligenceindicator.go @@ -93,6 +93,7 @@ func (client ThreatIntelligenceIndicatorClient) AppendTags(ctx context.Context, result, err = client.AppendTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.ThreatIntelligenceIndicatorClient", "AppendTags", resp, "Failure responding to request") + return } return @@ -189,6 +190,7 @@ func (client ThreatIntelligenceIndicatorClient) Create(ctx context.Context, reso result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.ThreatIntelligenceIndicatorClient", "Create", resp, "Failure responding to request") + return } return @@ -285,6 +287,7 @@ func (client ThreatIntelligenceIndicatorClient) CreateIndicator(ctx context.Cont result, err = client.CreateIndicatorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.ThreatIntelligenceIndicatorClient", "CreateIndicator", resp, "Failure responding to request") + return } return @@ -380,6 +383,7 @@ func (client ThreatIntelligenceIndicatorClient) Delete(ctx context.Context, reso result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.ThreatIntelligenceIndicatorClient", "Delete", resp, "Failure responding to request") + return } return @@ -473,6 +477,7 @@ func (client ThreatIntelligenceIndicatorClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.ThreatIntelligenceIndicatorClient", "Get", resp, "Failure responding to request") + return } return @@ -568,6 +573,7 @@ func (client ThreatIntelligenceIndicatorClient) QueryIndicators(ctx context.Cont result.tiil, err = client.QueryIndicatorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.ThreatIntelligenceIndicatorClient", "QueryIndicators", resp, "Failure responding to request") + return } if result.tiil.hasNextLink() && result.tiil.IsEmpty() { err = result.NextWithContext(ctx) @@ -635,6 +641,7 @@ func (client ThreatIntelligenceIndicatorClient) queryIndicatorsNextResults(ctx c result, err = client.QueryIndicatorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.ThreatIntelligenceIndicatorClient", "queryIndicatorsNextResults", resp, "Failure responding to next results request") + return } return } @@ -704,6 +711,7 @@ func (client ThreatIntelligenceIndicatorClient) ReplaceTags(ctx context.Context, result, err = client.ReplaceTagsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.ThreatIntelligenceIndicatorClient", "ReplaceTags", resp, "Failure responding to request") + return } return diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/threatintelligenceindicatormetrics.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/threatintelligenceindicatormetrics.go index c6f523814e57..286b93963605 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/threatintelligenceindicatormetrics.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/threatintelligenceindicatormetrics.go @@ -92,6 +92,7 @@ func (client ThreatIntelligenceIndicatorMetricsClient) List(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.ThreatIntelligenceIndicatorMetricsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/threatintelligenceindicators.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/threatintelligenceindicators.go index 4f426d5e2fcc..9b3df2fdbf39 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/threatintelligenceindicators.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/threatintelligenceindicators.go @@ -98,6 +98,7 @@ func (client ThreatIntelligenceIndicatorsClient) List(ctx context.Context, resou result.tiil, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.ThreatIntelligenceIndicatorsClient", "List", resp, "Failure responding to request") + return } if result.tiil.hasNextLink() && result.tiil.IsEmpty() { err = result.NextWithContext(ctx) @@ -175,6 +176,7 @@ func (client ThreatIntelligenceIndicatorsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.ThreatIntelligenceIndicatorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/watchlists.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/watchlists.go index 22abf97f05a3..fca24f4bbafd 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/watchlists.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/watchlists.go @@ -98,6 +98,7 @@ func (client WatchlistsClient) Create(ctx context.Context, resourceGroupName str result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.WatchlistsClient", "Create", resp, "Failure responding to request") + return } return @@ -194,6 +195,7 @@ func (client WatchlistsClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.WatchlistsClient", "Delete", resp, "Failure responding to request") + return } return @@ -287,6 +289,7 @@ func (client WatchlistsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.WatchlistsClient", "Get", resp, "Failure responding to request") + return } return @@ -381,6 +384,7 @@ func (client WatchlistsClient) List(ctx context.Context, resourceGroupName strin result.wl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.WatchlistsClient", "List", resp, "Failure responding to request") + return } if result.wl.hasNextLink() && result.wl.IsEmpty() { err = result.NextWithContext(ctx) @@ -446,6 +450,7 @@ func (client WatchlistsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.WatchlistsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/disasterrecoveryconfigs.go b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/disasterrecoveryconfigs.go index d446cae02dbc..6ce9ba607c60 100644 --- a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/disasterrecoveryconfigs.go +++ b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/disasterrecoveryconfigs.go @@ -89,6 +89,7 @@ func (client DisasterRecoveryConfigsClient) BreakPairing(ctx context.Context, re result, err = client.BreakPairingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.DisasterRecoveryConfigsClient", "BreakPairing", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client DisasterRecoveryConfigsClient) CheckNameAvailabilityMethod(ctx cont result, err = client.CheckNameAvailabilityMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.DisasterRecoveryConfigsClient", "CheckNameAvailabilityMethod", resp, "Failure responding to request") + return } return @@ -269,6 +271,7 @@ func (client DisasterRecoveryConfigsClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.DisasterRecoveryConfigsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -361,6 +364,7 @@ func (client DisasterRecoveryConfigsClient) Delete(ctx context.Context, resource result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.DisasterRecoveryConfigsClient", "Delete", resp, "Failure responding to request") + return } return @@ -451,6 +455,7 @@ func (client DisasterRecoveryConfigsClient) FailOver(ctx context.Context, resour result, err = client.FailOverResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.DisasterRecoveryConfigsClient", "FailOver", resp, "Failure responding to request") + return } return @@ -545,6 +550,7 @@ func (client DisasterRecoveryConfigsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.DisasterRecoveryConfigsClient", "Get", resp, "Failure responding to request") + return } return @@ -639,6 +645,7 @@ func (client DisasterRecoveryConfigsClient) GetAuthorizationRule(ctx context.Con result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.DisasterRecoveryConfigsClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -727,6 +734,7 @@ func (client DisasterRecoveryConfigsClient) List(ctx context.Context, resourceGr result.adrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.DisasterRecoveryConfigsClient", "List", resp, "Failure responding to request") + return } if result.adrlr.hasNextLink() && result.adrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -791,6 +799,7 @@ func (client DisasterRecoveryConfigsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.DisasterRecoveryConfigsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -857,6 +866,7 @@ func (client DisasterRecoveryConfigsClient) ListAuthorizationRules(ctx context.C result.sarlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.DisasterRecoveryConfigsClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.sarlr.hasNextLink() && result.sarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -922,6 +932,7 @@ func (client DisasterRecoveryConfigsClient) listAuthorizationRulesNextResults(ct result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.DisasterRecoveryConfigsClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -991,6 +1002,7 @@ func (client DisasterRecoveryConfigsClient) ListKeys(ctx context.Context, resour result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.DisasterRecoveryConfigsClient", "ListKeys", resp, "Failure responding to request") + return } return diff --git a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/eventhubs.go b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/eventhubs.go index e131016c68b4..bbe12fb71d47 100644 --- a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/eventhubs.go +++ b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/eventhubs.go @@ -84,6 +84,7 @@ func (client EventHubsClient) ListByNamespace(ctx context.Context, resourceGroup result.ehlr, err = client.ListByNamespaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.EventHubsClient", "ListByNamespace", resp, "Failure responding to request") + return } if result.ehlr.hasNextLink() && result.ehlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -148,6 +149,7 @@ func (client EventHubsClient) listByNamespaceNextResults(ctx context.Context, la result, err = client.ListByNamespaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.EventHubsClient", "listByNamespaceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/migrationconfigs.go b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/migrationconfigs.go index e6e088da3ef7..a47c61e973b9 100644 --- a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/migrationconfigs.go +++ b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/migrationconfigs.go @@ -86,6 +86,7 @@ func (client MigrationConfigsClient) CompleteMigration(ctx context.Context, reso result, err = client.CompleteMigrationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.MigrationConfigsClient", "CompleteMigration", resp, "Failure responding to request") + return } return @@ -266,6 +267,7 @@ func (client MigrationConfigsClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.MigrationConfigsClient", "Delete", resp, "Failure responding to request") + return } return @@ -351,6 +353,7 @@ func (client MigrationConfigsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.MigrationConfigsClient", "Get", resp, "Failure responding to request") + return } return @@ -438,6 +441,7 @@ func (client MigrationConfigsClient) List(ctx context.Context, resourceGroupName result.mclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.MigrationConfigsClient", "List", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -502,6 +506,7 @@ func (client MigrationConfigsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.MigrationConfigsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -563,6 +568,7 @@ func (client MigrationConfigsClient) Revert(ctx context.Context, resourceGroupNa result, err = client.RevertResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.MigrationConfigsClient", "Revert", resp, "Failure responding to request") + return } return diff --git a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/namespaces.go b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/namespaces.go index ad71adcf0295..e3aac126d317 100644 --- a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/namespaces.go +++ b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/namespaces.go @@ -78,6 +78,7 @@ func (client NamespacesClient) CheckNameAvailabilityMethod(ctx context.Context, result, err = client.CheckNameAvailabilityMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "CheckNameAvailabilityMethod", resp, "Failure responding to request") + return } return @@ -257,6 +258,7 @@ func (client NamespacesClient) CreateOrUpdateAuthorizationRule(ctx context.Conte result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -349,6 +351,7 @@ func (client NamespacesClient) CreateOrUpdateIPFilterRule(ctx context.Context, r result, err = client.CreateOrUpdateIPFilterRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "CreateOrUpdateIPFilterRule", resp, "Failure responding to request") + return } return @@ -438,6 +441,7 @@ func (client NamespacesClient) CreateOrUpdateNetworkRuleSet(ctx context.Context, result, err = client.CreateOrUpdateNetworkRuleSetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "CreateOrUpdateNetworkRuleSet", resp, "Failure responding to request") + return } return @@ -529,6 +533,7 @@ func (client NamespacesClient) CreateOrUpdateVirtualNetworkRule(ctx context.Cont result, err = client.CreateOrUpdateVirtualNetworkRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "CreateOrUpdateVirtualNetworkRule", resp, "Failure responding to request") + return } return @@ -705,6 +710,7 @@ func (client NamespacesClient) DeleteAuthorizationRule(ctx context.Context, reso result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -793,6 +799,7 @@ func (client NamespacesClient) DeleteIPFilterRule(ctx context.Context, resourceG result, err = client.DeleteIPFilterRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "DeleteIPFilterRule", resp, "Failure responding to request") + return } return @@ -881,6 +888,7 @@ func (client NamespacesClient) DeleteVirtualNetworkRule(ctx context.Context, res result, err = client.DeleteVirtualNetworkRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "DeleteVirtualNetworkRule", resp, "Failure responding to request") + return } return @@ -966,6 +974,7 @@ func (client NamespacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "Get", resp, "Failure responding to request") + return } return @@ -1055,6 +1064,7 @@ func (client NamespacesClient) GetAuthorizationRule(ctx context.Context, resourc result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -1144,6 +1154,7 @@ func (client NamespacesClient) GetIPFilterRule(ctx context.Context, resourceGrou result, err = client.GetIPFilterRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "GetIPFilterRule", resp, "Failure responding to request") + return } return @@ -1230,6 +1241,7 @@ func (client NamespacesClient) GetNetworkRuleSet(ctx context.Context, resourceGr result, err = client.GetNetworkRuleSetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "GetNetworkRuleSet", resp, "Failure responding to request") + return } return @@ -1318,6 +1330,7 @@ func (client NamespacesClient) GetVirtualNetworkRule(ctx context.Context, resour result, err = client.GetVirtualNetworkRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "GetVirtualNetworkRule", resp, "Failure responding to request") + return } return @@ -1392,6 +1405,7 @@ func (client NamespacesClient) List(ctx context.Context) (result SBNamespaceList result.snlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "List", resp, "Failure responding to request") + return } if result.snlr.hasNextLink() && result.snlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1454,6 +1468,7 @@ func (client NamespacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1516,6 +1531,7 @@ func (client NamespacesClient) ListAuthorizationRules(ctx context.Context, resou result.sarlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.sarlr.hasNextLink() && result.sarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1580,6 +1596,7 @@ func (client NamespacesClient) listAuthorizationRulesNextResults(ctx context.Con result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1638,6 +1655,7 @@ func (client NamespacesClient) ListByResourceGroup(ctx context.Context, resource result.snlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.snlr.hasNextLink() && result.snlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1701,6 +1719,7 @@ func (client NamespacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1763,6 +1782,7 @@ func (client NamespacesClient) ListIPFilterRules(ctx context.Context, resourceGr result.ifrlr, err = client.ListIPFilterRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "ListIPFilterRules", resp, "Failure responding to request") + return } if result.ifrlr.hasNextLink() && result.ifrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1827,6 +1847,7 @@ func (client NamespacesClient) listIPFilterRulesNextResults(ctx context.Context, result, err = client.ListIPFilterRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "listIPFilterRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1892,6 +1913,7 @@ func (client NamespacesClient) ListKeys(ctx context.Context, resourceGroupName s result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -1979,6 +2001,7 @@ func (client NamespacesClient) ListVirtualNetworkRules(ctx context.Context, reso result.vnrlr, err = client.ListVirtualNetworkRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "ListVirtualNetworkRules", resp, "Failure responding to request") + return } if result.vnrlr.hasNextLink() && result.vnrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2043,6 +2066,7 @@ func (client NamespacesClient) listVirtualNetworkRulesNextResults(ctx context.Co result, err = client.ListVirtualNetworkRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "listVirtualNetworkRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2105,6 +2129,7 @@ func (client NamespacesClient) Migrate(ctx context.Context, resourceGroupName st result, err = client.MigrateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "Migrate", resp, "Failure responding to request") + return } return @@ -2196,6 +2221,7 @@ func (client NamespacesClient) RegenerateKeys(ctx context.Context, resourceGroup result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "RegenerateKeys", resp, "Failure responding to request") + return } return @@ -2286,6 +2312,7 @@ func (client NamespacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/operations.go b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/operations.go index 3cd5574eb9b4..0fcfe9c50cd6 100644 --- a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/operations.go +++ b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/premiummessagingregions.go b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/premiummessagingregions.go index 46bcfdc19a62..579632dfe14d 100644 --- a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/premiummessagingregions.go +++ b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/premiummessagingregions.go @@ -71,6 +71,7 @@ func (client PremiumMessagingRegionsClient) List(ctx context.Context) (result Pr result.pmrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.PremiumMessagingRegionsClient", "List", resp, "Failure responding to request") + return } if result.pmrlr.hasNextLink() && result.pmrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client PremiumMessagingRegionsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.PremiumMessagingRegionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/privateendpointconnections.go b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/privateendpointconnections.go index d77371ce0c4b..c9ec67fa9e1a 100644 --- a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/privateendpointconnections.go +++ b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/privateendpointconnections.go @@ -86,6 +86,7 @@ func (client PrivateEndpointConnectionsClient) CreateOrUpdate(ctx context.Contex result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.PrivateEndpointConnectionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -261,6 +262,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +350,7 @@ func (client PrivateEndpointConnectionsClient) List(ctx context.Context, resourc result.peclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.PrivateEndpointConnectionsClient", "List", resp, "Failure responding to request") + return } if result.peclr.hasNextLink() && result.peclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -412,6 +415,7 @@ func (client PrivateEndpointConnectionsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.PrivateEndpointConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/privatelinkresources.go b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/privatelinkresources.go index 5f502da11491..1f3c527bf9a3 100644 --- a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/privatelinkresources.go +++ b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/privatelinkresources.go @@ -84,6 +84,7 @@ func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.PrivateLinkResourcesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/queues.go b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/queues.go index a4daa5a0eee0..93ffcfd5d103 100644 --- a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/queues.go +++ b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/queues.go @@ -87,6 +87,7 @@ func (client QueuesClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client QueuesClient) CreateOrUpdateAuthorizationRule(ctx context.Context, result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client QueuesClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "Delete", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client QueuesClient) DeleteAuthorizationRule(ctx context.Context, resource result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -459,6 +463,7 @@ func (client QueuesClient) Get(ctx context.Context, resourceGroupName string, na result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "Get", resp, "Failure responding to request") + return } return @@ -552,6 +557,7 @@ func (client QueuesClient) GetAuthorizationRule(ctx context.Context, resourceGro result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -643,6 +649,7 @@ func (client QueuesClient) ListAuthorizationRules(ctx context.Context, resourceG result.sarlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.sarlr.hasNextLink() && result.sarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -708,6 +715,7 @@ func (client QueuesClient) listAuthorizationRulesNextResults(ctx context.Context result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -784,6 +792,7 @@ func (client QueuesClient) ListByNamespace(ctx context.Context, resourceGroupNam result.sqlr, err = client.ListByNamespaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "ListByNamespace", resp, "Failure responding to request") + return } if result.sqlr.hasNextLink() && result.sqlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -854,6 +863,7 @@ func (client QueuesClient) listByNamespaceNextResults(ctx context.Context, lastR result, err = client.ListByNamespaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "listByNamespaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -922,6 +932,7 @@ func (client QueuesClient) ListKeys(ctx context.Context, resourceGroupName strin result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -1017,6 +1028,7 @@ func (client QueuesClient) RegenerateKeys(ctx context.Context, resourceGroupName result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "RegenerateKeys", resp, "Failure responding to request") + return } return diff --git a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/regions.go b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/regions.go index 0702cd230f34..76cb722fafba 100644 --- a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/regions.go +++ b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/regions.go @@ -80,6 +80,7 @@ func (client RegionsClient) ListBySku(ctx context.Context, sku string) (result P result.pmrlr, err = client.ListBySkuResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.RegionsClient", "ListBySku", resp, "Failure responding to request") + return } if result.pmrlr.hasNextLink() && result.pmrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client RegionsClient) listBySkuNextResults(ctx context.Context, lastResult result, err = client.ListBySkuResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.RegionsClient", "listBySkuNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/rules.go b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/rules.go index 051e9c9b1b9f..942f61b13245 100644 --- a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/rules.go +++ b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/rules.go @@ -104,6 +104,7 @@ func (client RulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.RulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -205,6 +206,7 @@ func (client RulesClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.RulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -303,6 +305,7 @@ func (client RulesClient) Get(ctx context.Context, resourceGroupName string, nam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.RulesClient", "Get", resp, "Failure responding to request") + return } return @@ -413,6 +416,7 @@ func (client RulesClient) ListBySubscriptions(ctx context.Context, resourceGroup result.rlr, err = client.ListBySubscriptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.RulesClient", "ListBySubscriptions", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -485,6 +489,7 @@ func (client RulesClient) listBySubscriptionsNextResults(ctx context.Context, la result, err = client.ListBySubscriptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.RulesClient", "listBySubscriptionsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/subscriptions.go b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/subscriptions.go index 0717f34aa4c2..3cc3f5dd85e8 100644 --- a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/subscriptions.go +++ b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/subscriptions.go @@ -91,6 +91,7 @@ func (client SubscriptionsClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.SubscriptionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -187,6 +188,7 @@ func (client SubscriptionsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.SubscriptionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client SubscriptionsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.SubscriptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -385,6 +388,7 @@ func (client SubscriptionsClient) ListByTopic(ctx context.Context, resourceGroup result.sslr, err = client.ListByTopicResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.SubscriptionsClient", "ListByTopic", resp, "Failure responding to request") + return } if result.sslr.hasNextLink() && result.sslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -456,6 +460,7 @@ func (client SubscriptionsClient) listByTopicNextResults(ctx context.Context, la result, err = client.ListByTopicResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.SubscriptionsClient", "listByTopicNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/topics.go b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/topics.go index 08cfc90def3b..914d7f6c8b6b 100644 --- a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/topics.go +++ b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/topics.go @@ -87,6 +87,7 @@ func (client TopicsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client TopicsClient) CreateOrUpdateAuthorizationRule(ctx context.Context, result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client TopicsClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "Delete", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client TopicsClient) DeleteAuthorizationRule(ctx context.Context, resource result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -459,6 +463,7 @@ func (client TopicsClient) Get(ctx context.Context, resourceGroupName string, na result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "Get", resp, "Failure responding to request") + return } return @@ -552,6 +557,7 @@ func (client TopicsClient) GetAuthorizationRule(ctx context.Context, resourceGro result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -643,6 +649,7 @@ func (client TopicsClient) ListAuthorizationRules(ctx context.Context, resourceG result.sarlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.sarlr.hasNextLink() && result.sarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -708,6 +715,7 @@ func (client TopicsClient) listAuthorizationRulesNextResults(ctx context.Context result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -784,6 +792,7 @@ func (client TopicsClient) ListByNamespace(ctx context.Context, resourceGroupNam result.stlr, err = client.ListByNamespaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "ListByNamespace", resp, "Failure responding to request") + return } if result.stlr.hasNextLink() && result.stlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -854,6 +863,7 @@ func (client TopicsClient) listByNamespaceNextResults(ctx context.Context, lastR result, err = client.ListByNamespaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "listByNamespaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -922,6 +932,7 @@ func (client TopicsClient) ListKeys(ctx context.Context, resourceGroupName strin result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -1017,6 +1028,7 @@ func (client TopicsClient) RegenerateKeys(ctx context.Context, resourceGroupName result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "RegenerateKeys", resp, "Failure responding to request") + return } return diff --git a/services/preview/servicefabric/mgmt/2017-07-01-preview/servicefabric/clusters.go b/services/preview/servicefabric/mgmt/2017-07-01-preview/servicefabric/clusters.go index b7c18366b397..6dfb5c0b4ac3 100644 --- a/services/preview/servicefabric/mgmt/2017-07-01-preview/servicefabric/clusters.go +++ b/services/preview/servicefabric/mgmt/2017-07-01-preview/servicefabric/clusters.go @@ -206,6 +206,7 @@ func (client ClustersClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClustersClient", "Delete", resp, "Failure responding to request") + return } return @@ -281,6 +282,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +357,7 @@ func (client ClustersClient) List(ctx context.Context, APIVersion string, subscr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClustersClient", "List", resp, "Failure responding to request") + return } return @@ -428,6 +431,7 @@ func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return diff --git a/services/preview/servicefabric/mgmt/2017-07-01-preview/servicefabric/clusterversions.go b/services/preview/servicefabric/mgmt/2017-07-01-preview/servicefabric/clusterversions.go index f4be7bc29fb3..7d8860d68c4d 100644 --- a/services/preview/servicefabric/mgmt/2017-07-01-preview/servicefabric/clusterversions.go +++ b/services/preview/servicefabric/mgmt/2017-07-01-preview/servicefabric/clusterversions.go @@ -74,6 +74,7 @@ func (client ClusterVersionsClient) Get(ctx context.Context, location string, AP result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClusterVersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ClusterVersionsClient) GetByEnvironment(ctx context.Context, locati result, err = client.GetByEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClusterVersionsClient", "GetByEnvironment", resp, "Failure responding to request") + return } return @@ -227,6 +229,7 @@ func (client ClusterVersionsClient) List(ctx context.Context, location string, A result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClusterVersionsClient", "List", resp, "Failure responding to request") + return } return @@ -302,6 +305,7 @@ func (client ClusterVersionsClient) ListByEnvironment(ctx context.Context, locat result, err = client.ListByEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClusterVersionsClient", "ListByEnvironment", resp, "Failure responding to request") + return } return diff --git a/services/preview/servicefabric/mgmt/2017-07-01-preview/servicefabric/operations.go b/services/preview/servicefabric/mgmt/2017-07-01-preview/servicefabric/operations.go index cd4112f0159b..015e1fab836c 100644 --- a/services/preview/servicefabric/mgmt/2017-07-01-preview/servicefabric/operations.go +++ b/services/preview/servicefabric/mgmt/2017-07-01-preview/servicefabric/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context, APIVersion string) (res result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/applications.go b/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/applications.go index 06148eb102da..fbc1cf98dd8c 100644 --- a/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/applications.go +++ b/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/applications.go @@ -230,6 +230,7 @@ func (client ApplicationsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client ApplicationsClient) List(ctx context.Context, resourceGroupName str result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/applicationtypes.go b/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/applicationtypes.go index 55b0361fc7f3..2c2e1b4dd9fc 100644 --- a/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/applicationtypes.go +++ b/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/applicationtypes.go @@ -75,6 +75,7 @@ func (client ApplicationTypesClient) Create(ctx context.Context, resourceGroupNa result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypesClient", "Create", resp, "Failure responding to request") + return } return @@ -231,6 +232,7 @@ func (client ApplicationTypesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypesClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +310,7 @@ func (client ApplicationTypesClient) List(ctx context.Context, resourceGroupName result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/applicationtypeversions.go b/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/applicationtypeversions.go index 34486b0c0bdd..b17cd2a94f39 100644 --- a/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/applicationtypeversions.go +++ b/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/applicationtypeversions.go @@ -244,6 +244,7 @@ func (client ApplicationTypeVersionsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypeVersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +324,7 @@ func (client ApplicationTypeVersionsClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypeVersionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/clusters.go b/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/clusters.go index dd3b5e551054..eb6b09283925 100644 --- a/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/clusters.go +++ b/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/clusters.go @@ -203,6 +203,7 @@ func (client ClustersClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClustersClient", "Delete", resp, "Failure responding to request") + return } return @@ -278,6 +279,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -350,6 +352,7 @@ func (client ClustersClient) List(ctx context.Context) (result ClusterListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClustersClient", "List", resp, "Failure responding to request") + return } return @@ -423,6 +426,7 @@ func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return diff --git a/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/clusterversions.go b/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/clusterversions.go index 5b5d486bba40..857372f58a89 100644 --- a/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/clusterversions.go +++ b/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/clusterversions.go @@ -72,6 +72,7 @@ func (client ClusterVersionsClient) Get(ctx context.Context, location string, cl result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClusterVersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client ClusterVersionsClient) GetByEnvironment(ctx context.Context, locati result, err = client.GetByEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClusterVersionsClient", "GetByEnvironment", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client ClusterVersionsClient) List(ctx context.Context, location string) ( result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClusterVersionsClient", "List", resp, "Failure responding to request") + return } return @@ -297,6 +300,7 @@ func (client ClusterVersionsClient) ListByEnvironment(ctx context.Context, locat result, err = client.ListByEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClusterVersionsClient", "ListByEnvironment", resp, "Failure responding to request") + return } return diff --git a/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/operations.go b/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/operations.go index dff778f68a67..1e1db69b5e0b 100644 --- a/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/operations.go +++ b/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context, APIVersion string) (res result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/services.go b/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/services.go index 351cf1083f95..492868d93cd2 100644 --- a/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/services.go +++ b/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/services.go @@ -235,6 +235,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client ServicesClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ServicesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/applications.go b/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/applications.go index 82dbfc476a4e..e35465765cf1 100644 --- a/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/applications.go +++ b/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/applications.go @@ -230,6 +230,7 @@ func (client ApplicationsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client ApplicationsClient) List(ctx context.Context, resourceGroupName str result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/applicationtypes.go b/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/applicationtypes.go index b33b00c6f363..1b1d64ba997d 100644 --- a/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/applicationtypes.go +++ b/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/applicationtypes.go @@ -75,6 +75,7 @@ func (client ApplicationTypesClient) Create(ctx context.Context, resourceGroupNa result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypesClient", "Create", resp, "Failure responding to request") + return } return @@ -231,6 +232,7 @@ func (client ApplicationTypesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypesClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +310,7 @@ func (client ApplicationTypesClient) List(ctx context.Context, resourceGroupName result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/applicationtypeversions.go b/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/applicationtypeversions.go index c07492745a07..7ec0e1f7506a 100644 --- a/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/applicationtypeversions.go +++ b/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/applicationtypeversions.go @@ -244,6 +244,7 @@ func (client ApplicationTypeVersionsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypeVersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +324,7 @@ func (client ApplicationTypeVersionsClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypeVersionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/clusters.go b/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/clusters.go index fcaf8f322d4b..c37c4b1e81c3 100644 --- a/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/clusters.go +++ b/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/clusters.go @@ -203,6 +203,7 @@ func (client ClustersClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClustersClient", "Delete", resp, "Failure responding to request") + return } return @@ -278,6 +279,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -350,6 +352,7 @@ func (client ClustersClient) List(ctx context.Context) (result ClusterListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClustersClient", "List", resp, "Failure responding to request") + return } return @@ -423,6 +426,7 @@ func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return diff --git a/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/clusterversions.go b/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/clusterversions.go index bacc618f3128..674b0f704f2b 100644 --- a/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/clusterversions.go +++ b/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/clusterversions.go @@ -72,6 +72,7 @@ func (client ClusterVersionsClient) Get(ctx context.Context, location string, cl result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClusterVersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client ClusterVersionsClient) GetByEnvironment(ctx context.Context, locati result, err = client.GetByEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClusterVersionsClient", "GetByEnvironment", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client ClusterVersionsClient) List(ctx context.Context, location string) ( result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClusterVersionsClient", "List", resp, "Failure responding to request") + return } return @@ -297,6 +300,7 @@ func (client ClusterVersionsClient) ListByEnvironment(ctx context.Context, locat result, err = client.ListByEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClusterVersionsClient", "ListByEnvironment", resp, "Failure responding to request") + return } return diff --git a/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/operations.go b/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/operations.go index dff778f68a67..1e1db69b5e0b 100644 --- a/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/operations.go +++ b/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context, APIVersion string) (res result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/services.go b/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/services.go index 26a6e310bcda..141378ed3a31 100644 --- a/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/services.go +++ b/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/services.go @@ -235,6 +235,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client ServicesClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ServicesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/application.go b/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/application.go index ab532e1a0b94..1984880cc313 100644 --- a/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/application.go +++ b/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/application.go @@ -83,6 +83,7 @@ func (client ApplicationClient) Create(ctx context.Context, resourceGroupName st result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "Create", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client ApplicationClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "Delete", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client ApplicationClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +314,7 @@ func (client ApplicationClient) ListByResourceGroup(ctx context.Context, resourc result.ardl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ardl.hasNextLink() && result.ardl.IsEmpty() { err = result.NextWithContext(ctx) @@ -374,6 +378,7 @@ func (client ApplicationClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -424,6 +429,7 @@ func (client ApplicationClient) ListBySubscription(ctx context.Context) (result result.ardl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ardl.hasNextLink() && result.ardl.IsEmpty() { err = result.NextWithContext(ctx) @@ -486,6 +492,7 @@ func (client ApplicationClient) listBySubscriptionNextResults(ctx context.Contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/codepackage.go b/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/codepackage.go index 32b9cb1af39e..41321a5c5a4c 100644 --- a/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/codepackage.go +++ b/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/codepackage.go @@ -76,6 +76,7 @@ func (client CodePackageClient) GetContainerLog(ctx context.Context, resourceGro result, err = client.GetContainerLogResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.CodePackageClient", "GetContainerLog", resp, "Failure responding to request") + return } return diff --git a/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/network.go b/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/network.go index a8bbc026db83..b50f98fb938b 100644 --- a/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/network.go +++ b/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/network.go @@ -85,6 +85,7 @@ func (client NetworkClient) Create(ctx context.Context, resourceGroupName string result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "Create", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client NetworkClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client NetworkClient) Get(ctx context.Context, resourceGroupName string, n result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "Get", resp, "Failure responding to request") + return } return @@ -313,6 +316,7 @@ func (client NetworkClient) ListByResourceGroup(ctx context.Context, resourceGro result.nrdl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.nrdl.hasNextLink() && result.nrdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -376,6 +380,7 @@ func (client NetworkClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -426,6 +431,7 @@ func (client NetworkClient) ListBySubscription(ctx context.Context) (result Netw result.nrdl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.nrdl.hasNextLink() && result.nrdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -488,6 +494,7 @@ func (client NetworkClient) listBySubscriptionNextResults(ctx context.Context, l result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/operations.go b/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/operations.go index 6e2940e9551a..e41531e0c277 100644 --- a/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/operations.go +++ b/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/replica.go b/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/replica.go index e9d8dad7ad34..9f894bbbd3f3 100644 --- a/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/replica.go +++ b/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/replica.go @@ -75,6 +75,7 @@ func (client ReplicaClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.ReplicaClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client ReplicaClient) ListByServiceName(ctx context.Context, resourceGroup result.srl, err = client.ListByServiceNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.ReplicaClient", "ListByServiceName", resp, "Failure responding to request") + return } if result.srl.hasNextLink() && result.srl.IsEmpty() { err = result.NextWithContext(ctx) @@ -220,6 +222,7 @@ func (client ReplicaClient) listByServiceNameNextResults(ctx context.Context, la result, err = client.ListByServiceNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.ReplicaClient", "listByServiceNameNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/service.go b/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/service.go index 75e1c9b5691d..4b5aa4771830 100644 --- a/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/service.go +++ b/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/service.go @@ -73,6 +73,7 @@ func (client ServiceClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.ServiceClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ServiceClient) ListByApplicationName(ctx context.Context, resourceG result.sl, err = client.ListByApplicationNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.ServiceClient", "ListByApplicationName", resp, "Failure responding to request") + return } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client ServiceClient) listByApplicationNameNextResults(ctx context.Context result, err = client.ListByApplicationNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.ServiceClient", "listByApplicationNameNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/volume.go b/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/volume.go index d733d2967b4d..64ab52a1ef00 100644 --- a/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/volume.go +++ b/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/volume.go @@ -87,6 +87,7 @@ func (client VolumeClient) Create(ctx context.Context, resourceGroupName string, result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "Create", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client VolumeClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "Delete", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client VolumeClient) Get(ctx context.Context, resourceGroupName string, vo result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +318,7 @@ func (client VolumeClient) ListByResourceGroup(ctx context.Context, resourceGrou result.vrdl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vrdl.hasNextLink() && result.vrdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -378,6 +382,7 @@ func (client VolumeClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -428,6 +433,7 @@ func (client VolumeClient) ListBySubscription(ctx context.Context) (result Volum result.vrdl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.vrdl.hasNextLink() && result.vrdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -490,6 +496,7 @@ func (client VolumeClient) listBySubscriptionNextResults(ctx context.Context, la result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/application.go b/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/application.go index 3ba4d89d6b2d..64ee35bda7a2 100644 --- a/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/application.go +++ b/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/application.go @@ -81,6 +81,7 @@ func (client ApplicationClient) Create(ctx context.Context, resourceGroupName st result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "Create", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client ApplicationClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "Delete", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client ApplicationClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +312,7 @@ func (client ApplicationClient) ListByResourceGroup(ctx context.Context, resourc result.ardl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ardl.hasNextLink() && result.ardl.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +376,7 @@ func (client ApplicationClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -422,6 +427,7 @@ func (client ApplicationClient) ListBySubscription(ctx context.Context) (result result.ardl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ardl.hasNextLink() && result.ardl.IsEmpty() { err = result.NextWithContext(ctx) @@ -484,6 +490,7 @@ func (client ApplicationClient) listBySubscriptionNextResults(ctx context.Contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/codepackage.go b/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/codepackage.go index ea4ac927b1e4..8cdb721f192d 100644 --- a/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/codepackage.go +++ b/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/codepackage.go @@ -76,6 +76,7 @@ func (client CodePackageClient) GetContainerLogs(ctx context.Context, resourceGr result, err = client.GetContainerLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.CodePackageClient", "GetContainerLogs", resp, "Failure responding to request") + return } return diff --git a/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/gateway.go b/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/gateway.go index a96993f63ebe..7221443a142c 100644 --- a/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/gateway.go +++ b/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/gateway.go @@ -85,6 +85,7 @@ func (client GatewayClient) Create(ctx context.Context, resourceGroupName string result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.GatewayClient", "Create", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client GatewayClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.GatewayClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client GatewayClient) Get(ctx context.Context, resourceGroupName string, g result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.GatewayClient", "Get", resp, "Failure responding to request") + return } return @@ -313,6 +316,7 @@ func (client GatewayClient) ListByResourceGroup(ctx context.Context, resourceGro result.grdl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.GatewayClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.grdl.hasNextLink() && result.grdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -376,6 +380,7 @@ func (client GatewayClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.GatewayClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -426,6 +431,7 @@ func (client GatewayClient) ListBySubscription(ctx context.Context) (result Gate result.grdl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.GatewayClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.grdl.hasNextLink() && result.grdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -488,6 +494,7 @@ func (client GatewayClient) listBySubscriptionNextResults(ctx context.Context, l result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.GatewayClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/network.go b/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/network.go index 94f5ac8d83c8..5cf086beba5c 100644 --- a/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/network.go +++ b/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/network.go @@ -81,6 +81,7 @@ func (client NetworkClient) Create(ctx context.Context, resourceGroupName string result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "Create", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client NetworkClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "Delete", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client NetworkClient) Get(ctx context.Context, resourceGroupName string, n result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +312,7 @@ func (client NetworkClient) ListByResourceGroup(ctx context.Context, resourceGro result.nrdl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.nrdl.hasNextLink() && result.nrdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +376,7 @@ func (client NetworkClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -422,6 +427,7 @@ func (client NetworkClient) ListBySubscription(ctx context.Context) (result Netw result.nrdl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.nrdl.hasNextLink() && result.nrdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -484,6 +490,7 @@ func (client NetworkClient) listBySubscriptionNextResults(ctx context.Context, l result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/operations.go b/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/operations.go index 2ff10c703a14..1047d2a1aae9 100644 --- a/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/operations.go +++ b/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/secret.go b/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/secret.go index 21b68d1189de..d8efb2a84f06 100644 --- a/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/secret.go +++ b/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/secret.go @@ -81,6 +81,7 @@ func (client SecretClient) Create(ctx context.Context, resourceGroupName string, result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.SecretClient", "Create", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client SecretClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.SecretClient", "Delete", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client SecretClient) Get(ctx context.Context, resourceGroupName string, se result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.SecretClient", "Get", resp, "Failure responding to request") + return } return @@ -309,6 +312,7 @@ func (client SecretClient) ListByResourceGroup(ctx context.Context, resourceGrou result.srdl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.SecretClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.srdl.hasNextLink() && result.srdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +376,7 @@ func (client SecretClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.SecretClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -422,6 +427,7 @@ func (client SecretClient) ListBySubscription(ctx context.Context) (result Secre result.srdl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.SecretClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.srdl.hasNextLink() && result.srdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -484,6 +490,7 @@ func (client SecretClient) listBySubscriptionNextResults(ctx context.Context, la result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.SecretClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/secretvalue.go b/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/secretvalue.go index 433e40ba905a..582ac3e9314d 100644 --- a/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/secretvalue.go +++ b/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/secretvalue.go @@ -83,6 +83,7 @@ func (client SecretValueClient) Create(ctx context.Context, resourceGroupName st result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.SecretValueClient", "Create", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client SecretValueClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.SecretValueClient", "Delete", resp, "Failure responding to request") + return } return @@ -242,6 +244,7 @@ func (client SecretValueClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.SecretValueClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +323,7 @@ func (client SecretValueClient) List(ctx context.Context, resourceGroupName stri result.svrdl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.SecretValueClient", "List", resp, "Failure responding to request") + return } if result.svrdl.hasNextLink() && result.svrdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +388,7 @@ func (client SecretValueClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.SecretValueClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -438,6 +443,7 @@ func (client SecretValueClient) ListValue(ctx context.Context, resourceGroupName result, err = client.ListValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.SecretValueClient", "ListValue", resp, "Failure responding to request") + return } return diff --git a/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/service.go b/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/service.go index 5cdb58841baa..f8d76de89784 100644 --- a/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/service.go +++ b/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/service.go @@ -74,6 +74,7 @@ func (client ServiceClient) Get(ctx context.Context, resourceGroupName string, a result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.ServiceClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client ServiceClient) List(ctx context.Context, resourceGroupName string, result.srdl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.ServiceClient", "List", resp, "Failure responding to request") + return } if result.srdl.hasNextLink() && result.srdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client ServiceClient) listNextResults(ctx context.Context, lastResults Ser result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.ServiceClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/servicereplica.go b/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/servicereplica.go index 72358d06d1f7..cce9ade7e709 100644 --- a/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/servicereplica.go +++ b/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/servicereplica.go @@ -75,6 +75,7 @@ func (client ServiceReplicaClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.ServiceReplicaClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client ServiceReplicaClient) List(ctx context.Context, resourceGroupName s result.srdl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.ServiceReplicaClient", "List", resp, "Failure responding to request") + return } if result.srdl.hasNextLink() && result.srdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -220,6 +222,7 @@ func (client ServiceReplicaClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.ServiceReplicaClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/volume.go b/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/volume.go index ea592f365db4..5e66a54c4889 100644 --- a/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/volume.go +++ b/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/volume.go @@ -87,6 +87,7 @@ func (client VolumeClient) Create(ctx context.Context, resourceGroupName string, result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "Create", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client VolumeClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "Delete", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client VolumeClient) Get(ctx context.Context, resourceGroupName string, vo result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +318,7 @@ func (client VolumeClient) ListByResourceGroup(ctx context.Context, resourceGrou result.vrdl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vrdl.hasNextLink() && result.vrdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -378,6 +382,7 @@ func (client VolumeClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -428,6 +433,7 @@ func (client VolumeClient) ListBySubscription(ctx context.Context) (result Volum result.vrdl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.vrdl.hasNextLink() && result.vrdl.IsEmpty() { err = result.NextWithContext(ctx) @@ -490,6 +496,7 @@ func (client VolumeClient) listBySubscriptionNextResults(ctx context.Context, la result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/signalr/mgmt/2018-03-01-preview/signalr/operations.go b/services/preview/signalr/mgmt/2018-03-01-preview/signalr/operations.go index 7264ee4d01c6..2727129aa708 100644 --- a/services/preview/signalr/mgmt/2018-03-01-preview/signalr/operations.go +++ b/services/preview/signalr/mgmt/2018-03-01-preview/signalr/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListPa result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/signalr/mgmt/2018-03-01-preview/signalr/signalr.go b/services/preview/signalr/mgmt/2018-03-01-preview/signalr/signalr.go index 757bf007e07a..8e3e2871cc5c 100644 --- a/services/preview/signalr/mgmt/2018-03-01-preview/signalr/signalr.go +++ b/services/preview/signalr/mgmt/2018-03-01-preview/signalr/signalr.go @@ -82,6 +82,7 @@ func (client Client) CheckNameAvailability(ctx context.Context, location string, result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -326,6 +327,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "Get", resp, "Failure responding to request") + return } return @@ -402,6 +404,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.rl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rl.hasNextLink() && result.rl.IsEmpty() { err = result.NextWithContext(ctx) @@ -465,6 +468,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -514,6 +518,7 @@ func (client Client) ListBySubscription(ctx context.Context) (result ResourceLis result.rl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "ListBySubscription", resp, "Failure responding to request") + return } if result.rl.hasNextLink() && result.rl.IsEmpty() { err = result.NextWithContext(ctx) @@ -576,6 +581,7 @@ func (client Client) listBySubscriptionNextResults(ctx context.Context, lastResu result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -628,6 +634,7 @@ func (client Client) ListKeys(ctx context.Context, resourceGroupName string, res result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "ListKeys", resp, "Failure responding to request") + return } return diff --git a/services/preview/signalr/mgmt/2018-03-01-preview/signalr/usages.go b/services/preview/signalr/mgmt/2018-03-01-preview/signalr/usages.go index 38562c39f261..059386f90b1d 100644 --- a/services/preview/signalr/mgmt/2018-03-01-preview/signalr/usages.go +++ b/services/preview/signalr/mgmt/2018-03-01-preview/signalr/usages.go @@ -72,6 +72,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ul, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ul.hasNextLink() && result.ul.IsEmpty() { err = result.NextWithContext(ctx) @@ -135,6 +136,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/signalr/mgmt/2020-07-01-preview/signalr/operations.go b/services/preview/signalr/mgmt/2020-07-01-preview/signalr/operations.go index 29f5af8d05a8..dba0ab956b85 100644 --- a/services/preview/signalr/mgmt/2020-07-01-preview/signalr/operations.go +++ b/services/preview/signalr/mgmt/2020-07-01-preview/signalr/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListPa result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/signalr/mgmt/2020-07-01-preview/signalr/privateendpointconnections.go b/services/preview/signalr/mgmt/2020-07-01-preview/signalr/privateendpointconnections.go index 1eac1bde9ac9..ec812ad44baf 100644 --- a/services/preview/signalr/mgmt/2020-07-01-preview/signalr/privateendpointconnections.go +++ b/services/preview/signalr/mgmt/2020-07-01-preview/signalr/privateendpointconnections.go @@ -154,6 +154,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, privateE result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -234,6 +235,7 @@ func (client PrivateEndpointConnectionsClient) Update(ctx context.Context, priva result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.PrivateEndpointConnectionsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/signalr/mgmt/2020-07-01-preview/signalr/privatelinkresources.go b/services/preview/signalr/mgmt/2020-07-01-preview/signalr/privatelinkresources.go index b9b19148d42f..47bfb94839dc 100644 --- a/services/preview/signalr/mgmt/2020-07-01-preview/signalr/privatelinkresources.go +++ b/services/preview/signalr/mgmt/2020-07-01-preview/signalr/privatelinkresources.go @@ -75,6 +75,7 @@ func (client PrivateLinkResourcesClient) List(ctx context.Context, resourceGroup result.plrl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.PrivateLinkResourcesClient", "List", resp, "Failure responding to request") + return } if result.plrl.hasNextLink() && result.plrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client PrivateLinkResourcesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.PrivateLinkResourcesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/signalr/mgmt/2020-07-01-preview/signalr/signalr.go b/services/preview/signalr/mgmt/2020-07-01-preview/signalr/signalr.go index b4c6c8620de9..da0034534af4 100644 --- a/services/preview/signalr/mgmt/2020-07-01-preview/signalr/signalr.go +++ b/services/preview/signalr/mgmt/2020-07-01-preview/signalr/signalr.go @@ -82,6 +82,7 @@ func (client Client) CheckNameAvailability(ctx context.Context, location string, result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -328,6 +329,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "Get", resp, "Failure responding to request") + return } return @@ -404,6 +406,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.rl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rl.hasNextLink() && result.rl.IsEmpty() { err = result.NextWithContext(ctx) @@ -467,6 +470,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -516,6 +520,7 @@ func (client Client) ListBySubscription(ctx context.Context) (result ResourceLis result.rl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "ListBySubscription", resp, "Failure responding to request") + return } if result.rl.hasNextLink() && result.rl.IsEmpty() { err = result.NextWithContext(ctx) @@ -578,6 +583,7 @@ func (client Client) listBySubscriptionNextResults(ctx context.Context, lastResu result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +636,7 @@ func (client Client) ListKeys(ctx context.Context, resourceGroupName string, res result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "ListKeys", resp, "Failure responding to request") + return } return diff --git a/services/preview/signalr/mgmt/2020-07-01-preview/signalr/usages.go b/services/preview/signalr/mgmt/2020-07-01-preview/signalr/usages.go index 6e95ed35b989..a19450cc04e2 100644 --- a/services/preview/signalr/mgmt/2020-07-01-preview/signalr/usages.go +++ b/services/preview/signalr/mgmt/2020-07-01-preview/signalr/usages.go @@ -72,6 +72,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ul, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ul.hasNextLink() && result.ul.IsEmpty() { err = result.NextWithContext(ctx) @@ -135,6 +136,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/hybridusebenefit.go b/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/hybridusebenefit.go index 56384d9d8ca7..a506ec7e67a9 100644 --- a/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/hybridusebenefit.go +++ b/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/hybridusebenefit.go @@ -83,6 +83,7 @@ func (client HybridUseBenefitClient) Create(ctx context.Context, scope string, p result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "softwareplan.HybridUseBenefitClient", "Create", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client HybridUseBenefitClient) Delete(ctx context.Context, scope string, p result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "softwareplan.HybridUseBenefitClient", "Delete", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client HybridUseBenefitClient) Get(ctx context.Context, scope string, plan result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "softwareplan.HybridUseBenefitClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +314,7 @@ func (client HybridUseBenefitClient) List(ctx context.Context, scope string, fil result.hublr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "softwareplan.HybridUseBenefitClient", "List", resp, "Failure responding to request") + return } if result.hublr.hasNextLink() && result.hublr.IsEmpty() { err = result.NextWithContext(ctx) @@ -376,6 +380,7 @@ func (client HybridUseBenefitClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "softwareplan.HybridUseBenefitClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -429,6 +434,7 @@ func (client HybridUseBenefitClient) Update(ctx context.Context, scope string, p result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "softwareplan.HybridUseBenefitClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/hybridusebenefitrevision.go b/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/hybridusebenefitrevision.go index 70089b73979e..641b33a94f92 100644 --- a/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/hybridusebenefitrevision.go +++ b/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/hybridusebenefitrevision.go @@ -76,6 +76,7 @@ func (client HybridUseBenefitRevisionClient) List(ctx context.Context, scope str result.hublr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "softwareplan.HybridUseBenefitRevisionClient", "List", resp, "Failure responding to request") + return } if result.hublr.hasNextLink() && result.hublr.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client HybridUseBenefitRevisionClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "softwareplan.HybridUseBenefitRevisionClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/operations.go b/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/operations.go index d8b40b00304b..652f8b9e00b1 100644 --- a/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/operations.go +++ b/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/operations.go @@ -74,6 +74,7 @@ func (client OperationsClient) List(ctx context.Context, scope string) (result O result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "softwareplan.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -136,6 +137,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "softwareplan.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/softwareplan.go b/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/softwareplan.go index a7276051e814..e3af5c76bb68 100644 --- a/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/softwareplan.go +++ b/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/softwareplan.go @@ -76,6 +76,7 @@ func (client Client) Register(ctx context.Context) (result autorest.Response, er result, err = client.RegisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "softwareplan.Client", "Register", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/capabilities.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/capabilities.go index 4cb0d111f6cc..ab873590ae99 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/capabilities.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/capabilities.go @@ -73,6 +73,7 @@ func (client CapabilitiesClient) ListByLocation(ctx context.Context, locationNam result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.CapabilitiesClient", "ListByLocation", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/databaseblobauditingpolicies.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/databaseblobauditingpolicies.go index b331e46f204c..c917f8b6074f 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/databaseblobauditingpolicies.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/databaseblobauditingpolicies.go @@ -78,6 +78,7 @@ func (client DatabaseBlobAuditingPoliciesClient) CreateOrUpdate(ctx context.Cont result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseBlobAuditingPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client DatabaseBlobAuditingPoliciesClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseBlobAuditingPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client DatabaseBlobAuditingPoliciesClient) ListByDatabase(ctx context.Cont result.dbaplr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseBlobAuditingPoliciesClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.dbaplr.hasNextLink() && result.dbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -305,6 +308,7 @@ func (client DatabaseBlobAuditingPoliciesClient) listByDatabaseNextResults(ctx c result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseBlobAuditingPoliciesClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/databases.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/databases.go index 6d9baa828e41..de78a93f68d6 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/databases.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/databases.go @@ -249,6 +249,7 @@ func (client DatabasesClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Delete", resp, "Failure responding to request") + return } return @@ -418,6 +419,7 @@ func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -500,6 +502,7 @@ func (client DatabasesClient) GetByElasticPool(ctx context.Context, resourceGrou result, err = client.GetByElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "GetByElasticPool", resp, "Failure responding to request") + return } return @@ -580,6 +583,7 @@ func (client DatabasesClient) GetByRecommendedElasticPool(ctx context.Context, r result, err = client.GetByRecommendedElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "GetByRecommendedElasticPool", resp, "Failure responding to request") + return } return @@ -745,6 +749,7 @@ func (client DatabasesClient) ListByElasticPool(ctx context.Context, resourceGro result, err = client.ListByElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListByElasticPool", resp, "Failure responding to request") + return } return @@ -823,6 +828,7 @@ func (client DatabasesClient) ListByRecommendedElasticPool(ctx context.Context, result, err = client.ListByRecommendedElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListByRecommendedElasticPool", resp, "Failure responding to request") + return } return @@ -903,6 +909,7 @@ func (client DatabasesClient) ListByServer(ctx context.Context, resourceGroupNam result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListByServer", resp, "Failure responding to request") + return } return @@ -986,6 +993,7 @@ func (client DatabasesClient) ListMetricDefinitions(ctx context.Context, resourc result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -1065,6 +1073,7 @@ func (client DatabasesClient) ListMetrics(ctx context.Context, resourceGroupName result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/databasethreatdetectionpolicies.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/databasethreatdetectionpolicies.go index 33f6aafdecdf..eb9efc3b0f7c 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/databasethreatdetectionpolicies.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/databasethreatdetectionpolicies.go @@ -78,6 +78,7 @@ func (client DatabaseThreatDetectionPoliciesClient) CreateOrUpdate(ctx context.C result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseThreatDetectionPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client DatabaseThreatDetectionPoliciesClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseThreatDetectionPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/databaseusages.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/databaseusages.go index 821f798cc4f8..0f0ba80f8697 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/databaseusages.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/databaseusages.go @@ -76,6 +76,7 @@ func (client DatabaseUsagesClient) ListByDatabase(ctx context.Context, resourceG result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseUsagesClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/datamaskingpolicies.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/datamaskingpolicies.go index 78e7267705dd..c2542135e170 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/datamaskingpolicies.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/datamaskingpolicies.go @@ -78,6 +78,7 @@ func (client DataMaskingPoliciesClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DataMaskingPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client DataMaskingPoliciesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DataMaskingPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/datamaskingrules.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/datamaskingrules.go index 3b18e7b024a4..8a93097cd0cc 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/datamaskingrules.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/datamaskingrules.go @@ -90,6 +90,7 @@ func (client DataMaskingRulesClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DataMaskingRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client DataMaskingRulesClient) ListByDatabase(ctx context.Context, resourc result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DataMaskingRulesClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/elasticpoolactivities.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/elasticpoolactivities.go index c268b9637370..4888ff3ef4a4 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/elasticpoolactivities.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/elasticpoolactivities.go @@ -77,6 +77,7 @@ func (client ElasticPoolActivitiesClient) ListByElasticPool(ctx context.Context, result, err = client.ListByElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolActivitiesClient", "ListByElasticPool", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/elasticpooldatabaseactivities.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/elasticpooldatabaseactivities.go index 8ef06f4105c6..d08f393060ad 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/elasticpooldatabaseactivities.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/elasticpooldatabaseactivities.go @@ -77,6 +77,7 @@ func (client ElasticPoolDatabaseActivitiesClient) ListByElasticPool(ctx context. result, err = client.ListByElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolDatabaseActivitiesClient", "ListByElasticPool", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/elasticpools.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/elasticpools.go index f15e17be52b8..9b6efe69b5dd 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/elasticpools.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/elasticpools.go @@ -158,6 +158,7 @@ func (client ElasticPoolsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "Delete", resp, "Failure responding to request") + return } return @@ -235,6 +236,7 @@ func (client ElasticPoolsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +314,7 @@ func (client ElasticPoolsClient) ListByServer(ctx context.Context, resourceGroup result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "ListByServer", resp, "Failure responding to request") + return } return @@ -389,6 +392,7 @@ func (client ElasticPoolsClient) ListMetricDefinitions(ctx context.Context, reso result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -468,6 +472,7 @@ func (client ElasticPoolsClient) ListMetrics(ctx context.Context, resourceGroupN result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/encryptionprotectors.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/encryptionprotectors.go index bfd15e5ba2c3..d5b8e45975dc 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/encryptionprotectors.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/encryptionprotectors.go @@ -158,6 +158,7 @@ func (client EncryptionProtectorsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.EncryptionProtectorsClient", "Get", resp, "Failure responding to request") + return } return @@ -236,6 +237,7 @@ func (client EncryptionProtectorsClient) ListByServer(ctx context.Context, resou result.eplr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.EncryptionProtectorsClient", "ListByServer", resp, "Failure responding to request") + return } if result.eplr.hasNextLink() && result.eplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -300,6 +302,7 @@ func (client EncryptionProtectorsClient) listByServerNextResults(ctx context.Con result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.EncryptionProtectorsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/failovergroups.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/failovergroups.go index b8cabfa4b156..a3f015f0dc25 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/failovergroups.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/failovergroups.go @@ -402,6 +402,7 @@ func (client FailoverGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -480,6 +481,7 @@ func (client FailoverGroupsClient) ListByServer(ctx context.Context, resourceGro result.fglr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "ListByServer", resp, "Failure responding to request") + return } if result.fglr.hasNextLink() && result.fglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -544,6 +546,7 @@ func (client FailoverGroupsClient) listByServerNextResults(ctx context.Context, result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/firewallrules.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/firewallrules.go index abe6eb6e3678..533867a68840 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/firewallrules.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/firewallrules.go @@ -87,6 +87,7 @@ func (client FirewallRulesClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.FirewallRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client FirewallRulesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.FirewallRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.FirewallRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +326,7 @@ func (client FirewallRulesClient) ListByServer(ctx context.Context, resourceGrou result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.FirewallRulesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/geobackuppolicies.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/geobackuppolicies.go index e9abc2b3fc93..0975f0aa33d5 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/geobackuppolicies.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/geobackuppolicies.go @@ -85,6 +85,7 @@ func (client GeoBackupPoliciesClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.GeoBackupPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client GeoBackupPoliciesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.GeoBackupPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -247,6 +249,7 @@ func (client GeoBackupPoliciesClient) ListByDatabase(ctx context.Context, resour result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.GeoBackupPoliciesClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/managedinstances.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/managedinstances.go index 598edf1d4247..8bec7eb9cc68 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/managedinstances.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/managedinstances.go @@ -238,6 +238,7 @@ func (client ManagedInstancesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client ManagedInstancesClient) List(ctx context.Context) (result ManagedIn result.milr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "List", resp, "Failure responding to request") + return } if result.milr.hasNextLink() && result.milr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client ManagedInstancesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -425,6 +428,7 @@ func (client ManagedInstancesClient) ListByResourceGroup(ctx context.Context, re result.milr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.milr.hasNextLink() && result.milr.IsEmpty() { err = result.NextWithContext(ctx) @@ -488,6 +492,7 @@ func (client ManagedInstancesClient) listByResourceGroupNextResults(ctx context. result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/operations.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/operations.go index 2c73ea861176..4afab1c875d1 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/operations.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/recoverabledatabases.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/recoverabledatabases.go index b0975e5b0da6..3f4385532de9 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/recoverabledatabases.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/recoverabledatabases.go @@ -77,6 +77,7 @@ func (client RecoverableDatabasesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RecoverableDatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client RecoverableDatabasesClient) ListByServer(ctx context.Context, resou result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RecoverableDatabasesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/replicationlinks.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/replicationlinks.go index e494bf72327a..0a68fa4952d9 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/replicationlinks.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/replicationlinks.go @@ -78,6 +78,7 @@ func (client ReplicationLinksClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ReplicationLinksClient", "Delete", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client ReplicationLinksClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ReplicationLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -395,6 +397,7 @@ func (client ReplicationLinksClient) ListByDatabase(ctx context.Context, resourc result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ReplicationLinksClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/restorabledroppeddatabases.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/restorabledroppeddatabases.go index 8408a78330ec..e62154c5f421 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/restorabledroppeddatabases.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/restorabledroppeddatabases.go @@ -78,6 +78,7 @@ func (client RestorableDroppedDatabasesClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RestorableDroppedDatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client RestorableDroppedDatabasesClient) ListByServer(ctx context.Context, result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RestorableDroppedDatabasesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/restorepoints.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/restorepoints.go index a18775e573b4..c8c313a5732e 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/restorepoints.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/restorepoints.go @@ -76,6 +76,7 @@ func (client RestorePointsClient) ListByDatabase(ctx context.Context, resourceGr result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RestorePointsClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/serverazureadadministrators.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/serverazureadadministrators.go index 4916ffa36355..c72a9858fd4a 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/serverazureadadministrators.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/serverazureadadministrators.go @@ -246,6 +246,7 @@ func (client ServerAzureADAdministratorsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerAzureADAdministratorsClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +324,7 @@ func (client ServerAzureADAdministratorsClient) ListByServer(ctx context.Context result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerAzureADAdministratorsClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/servercommunicationlinks.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/servercommunicationlinks.go index 0c5fce09ef4c..16c4bcfea27b 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/servercommunicationlinks.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/servercommunicationlinks.go @@ -168,6 +168,7 @@ func (client ServerCommunicationLinksClient) Delete(ctx context.Context, resourc result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerCommunicationLinksClient", "Delete", resp, "Failure responding to request") + return } return @@ -245,6 +246,7 @@ func (client ServerCommunicationLinksClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerCommunicationLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +324,7 @@ func (client ServerCommunicationLinksClient) ListByServer(ctx context.Context, r result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerCommunicationLinksClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/serverconnectionpolicies.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/serverconnectionpolicies.go index 21095382288f..599c3e8e1bb7 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/serverconnectionpolicies.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/serverconnectionpolicies.go @@ -77,6 +77,7 @@ func (client ServerConnectionPoliciesClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerConnectionPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client ServerConnectionPoliciesClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerConnectionPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/serverkeys.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/serverkeys.go index bc134b88ddbb..db72b8632f2a 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/serverkeys.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/serverkeys.go @@ -238,6 +238,7 @@ func (client ServerKeysClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client ServerKeysClient) ListByServer(ctx context.Context, resourceGroupNa result.sklr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerKeysClient", "ListByServer", resp, "Failure responding to request") + return } if result.sklr.hasNextLink() && result.sklr.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +382,7 @@ func (client ServerKeysClient) listByServerNextResults(ctx context.Context, last result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerKeysClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/servers.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/servers.go index f6f0b8df7275..ad9c859e14c8 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/servers.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/servers.go @@ -81,6 +81,7 @@ func (client ServersClient) CheckNameAvailability(ctx context.Context, parameter result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client ServersClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersClient", "Get", resp, "Failure responding to request") + return } return @@ -385,6 +387,7 @@ func (client ServersClient) List(ctx context.Context) (result ServerListResultPa result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -447,6 +450,7 @@ func (client ServersClient) listNextResults(ctx context.Context, lastResults Ser result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -499,6 +503,7 @@ func (client ServersClient) ListByResourceGroup(ctx context.Context, resourceGro result.slr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -562,6 +567,7 @@ func (client ServersClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/serverusages.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/serverusages.go index b91950ee0677..ee231de0c896 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/serverusages.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/serverusages.go @@ -75,6 +75,7 @@ func (client ServerUsagesClient) ListByServer(ctx context.Context, resourceGroup result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerUsagesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/serviceobjectives.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/serviceobjectives.go index 5b0d17d9ae87..1a0367f0f935 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/serviceobjectives.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/serviceobjectives.go @@ -77,6 +77,7 @@ func (client ServiceObjectivesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServiceObjectivesClient", "Get", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client ServiceObjectivesClient) ListByServer(ctx context.Context, resource result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServiceObjectivesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/servicetieradvisors.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/servicetieradvisors.go index e21177193bb9..17c6a248f19b 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/servicetieradvisors.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/servicetieradvisors.go @@ -78,6 +78,7 @@ func (client ServiceTierAdvisorsClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServiceTierAdvisorsClient", "Get", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client ServiceTierAdvisorsClient) ListByDatabase(ctx context.Context, reso result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServiceTierAdvisorsClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/subscriptionusages.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/subscriptionusages.go index bfbc2fff2fed..b045357d55b7 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/subscriptionusages.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/subscriptionusages.go @@ -75,6 +75,7 @@ func (client SubscriptionUsagesClient) Get(ctx context.Context, locationName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SubscriptionUsagesClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client SubscriptionUsagesClient) ListByLocation(ctx context.Context, locat result.sulr, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SubscriptionUsagesClient", "ListByLocation", resp, "Failure responding to request") + return } if result.sulr.hasNextLink() && result.sulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -213,6 +215,7 @@ func (client SubscriptionUsagesClient) listByLocationNextResults(ctx context.Con result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SubscriptionUsagesClient", "listByLocationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/syncagents.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/syncagents.go index 304383c20007..05b6e7f8cf67 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/syncagents.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/syncagents.go @@ -234,6 +234,7 @@ func (client SyncAgentsClient) GenerateKey(ctx context.Context, resourceGroupNam result, err = client.GenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncAgentsClient", "GenerateKey", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client SyncAgentsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncAgentsClient", "Get", resp, "Failure responding to request") + return } return @@ -390,6 +392,7 @@ func (client SyncAgentsClient) ListByServer(ctx context.Context, resourceGroupNa result.salr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncAgentsClient", "ListByServer", resp, "Failure responding to request") + return } if result.salr.hasNextLink() && result.salr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client SyncAgentsClient) listByServerNextResults(ctx context.Context, last result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncAgentsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } @@ -508,6 +512,7 @@ func (client SyncAgentsClient) ListLinkedDatabases(ctx context.Context, resource result.saldlr, err = client.ListLinkedDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncAgentsClient", "ListLinkedDatabases", resp, "Failure responding to request") + return } if result.saldlr.hasNextLink() && result.saldlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -573,6 +578,7 @@ func (client SyncAgentsClient) listLinkedDatabasesNextResults(ctx context.Contex result, err = client.ListLinkedDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncAgentsClient", "listLinkedDatabasesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/syncgroups.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/syncgroups.go index 516f73727c05..37a658515a39 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/syncgroups.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/syncgroups.go @@ -77,6 +77,7 @@ func (client SyncGroupsClient) CancelSync(ctx context.Context, resourceGroupName result, err = client.CancelSyncResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "CancelSync", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client SyncGroupsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -398,6 +400,7 @@ func (client SyncGroupsClient) ListByDatabase(ctx context.Context, resourceGroup result.sglr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -463,6 +466,7 @@ func (client SyncGroupsClient) listByDatabaseNextResults(ctx context.Context, la result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } @@ -518,6 +522,7 @@ func (client SyncGroupsClient) ListHubSchemas(ctx context.Context, resourceGroup result.sfsplr, err = client.ListHubSchemasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "ListHubSchemas", resp, "Failure responding to request") + return } if result.sfsplr.hasNextLink() && result.sfsplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -584,6 +589,7 @@ func (client SyncGroupsClient) listHubSchemasNextResults(ctx context.Context, la result, err = client.ListHubSchemasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "listHubSchemasNextResults", resp, "Failure responding to next results request") + return } return } @@ -643,6 +649,7 @@ func (client SyncGroupsClient) ListLogs(ctx context.Context, resourceGroupName s result.sgllr, err = client.ListLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "ListLogs", resp, "Failure responding to request") + return } if result.sgllr.hasNextLink() && result.sgllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -715,6 +722,7 @@ func (client SyncGroupsClient) listLogsNextResults(ctx context.Context, lastResu result, err = client.ListLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "listLogsNextResults", resp, "Failure responding to next results request") + return } return } @@ -766,6 +774,7 @@ func (client SyncGroupsClient) ListSyncDatabaseIds(ctx context.Context, location result.sdilr, err = client.ListSyncDatabaseIdsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "ListSyncDatabaseIds", resp, "Failure responding to request") + return } if result.sdilr.hasNextLink() && result.sdilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -829,6 +838,7 @@ func (client SyncGroupsClient) listSyncDatabaseIdsNextResults(ctx context.Contex result, err = client.ListSyncDatabaseIdsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "listSyncDatabaseIdsNextResults", resp, "Failure responding to next results request") + return } return } @@ -962,6 +972,7 @@ func (client SyncGroupsClient) TriggerSync(ctx context.Context, resourceGroupNam result, err = client.TriggerSyncResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "TriggerSync", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/syncmembers.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/syncmembers.go index c0eafe1b0631..29b3a32b5dd0 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/syncmembers.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/syncmembers.go @@ -244,6 +244,7 @@ func (client SyncMembersClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncMembersClient", "Get", resp, "Failure responding to request") + return } return @@ -326,6 +327,7 @@ func (client SyncMembersClient) ListBySyncGroup(ctx context.Context, resourceGro result.smlr, err = client.ListBySyncGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncMembersClient", "ListBySyncGroup", resp, "Failure responding to request") + return } if result.smlr.hasNextLink() && result.smlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -392,6 +394,7 @@ func (client SyncMembersClient) listBySyncGroupNextResults(ctx context.Context, result, err = client.ListBySyncGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncMembersClient", "listBySyncGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -448,6 +451,7 @@ func (client SyncMembersClient) ListMemberSchemas(ctx context.Context, resourceG result.sfsplr, err = client.ListMemberSchemasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncMembersClient", "ListMemberSchemas", resp, "Failure responding to request") + return } if result.sfsplr.hasNextLink() && result.sfsplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -515,6 +519,7 @@ func (client SyncMembersClient) listMemberSchemasNextResults(ctx context.Context result, err = client.ListMemberSchemasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncMembersClient", "listMemberSchemasNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/transparentdataencryptionactivities.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/transparentdataencryptionactivities.go index 3ddbfabd7144..66565e96e3cc 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/transparentdataencryptionactivities.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/transparentdataencryptionactivities.go @@ -78,6 +78,7 @@ func (client TransparentDataEncryptionActivitiesClient) ListByConfiguration(ctx result, err = client.ListByConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.TransparentDataEncryptionActivitiesClient", "ListByConfiguration", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/transparentdataencryptions.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/transparentdataencryptions.go index 8b488f97380a..0b88ca196502 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/transparentdataencryptions.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/transparentdataencryptions.go @@ -78,6 +78,7 @@ func (client TransparentDataEncryptionsClient) CreateOrUpdate(ctx context.Contex result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.TransparentDataEncryptionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client TransparentDataEncryptionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.TransparentDataEncryptionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/virtualclusters.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/virtualclusters.go index 4908706500f8..f6003181ea4f 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/virtualclusters.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/virtualclusters.go @@ -150,6 +150,7 @@ func (client VirtualClustersClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -223,6 +224,7 @@ func (client VirtualClustersClient) List(ctx context.Context) (result VirtualClu result.vclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualClustersClient", "List", resp, "Failure responding to request") + return } if result.vclr.hasNextLink() && result.vclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -285,6 +287,7 @@ func (client VirtualClustersClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -337,6 +340,7 @@ func (client VirtualClustersClient) ListByResourceGroup(ctx context.Context, res result.vclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vclr.hasNextLink() && result.vclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -400,6 +404,7 @@ func (client VirtualClustersClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/virtualnetworkrules.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/virtualnetworkrules.go index 6902a5507092..56d4419afa90 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/virtualnetworkrules.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/virtualnetworkrules.go @@ -243,6 +243,7 @@ func (client VirtualNetworkRulesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualNetworkRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client VirtualNetworkRulesClient) ListByServer(ctx context.Context, resour result.vnrlr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualNetworkRulesClient", "ListByServer", resp, "Failure responding to request") + return } if result.vnrlr.hasNextLink() && result.vnrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client VirtualNetworkRulesClient) listByServerNextResults(ctx context.Cont result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualNetworkRulesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/capabilities.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/capabilities.go index 083d62ba797e..20175670857f 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/capabilities.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/capabilities.go @@ -73,6 +73,7 @@ func (client CapabilitiesClient) ListByLocation(ctx context.Context, locationID result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.CapabilitiesClient", "ListByLocation", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/databaseautomatictuning.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/databaseautomatictuning.go index 8abcf1d63d05..0d221348745f 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/databaseautomatictuning.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/databaseautomatictuning.go @@ -77,6 +77,7 @@ func (client DatabaseAutomaticTuningClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseAutomaticTuningClient", "Get", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client DatabaseAutomaticTuningClient) Update(ctx context.Context, resource result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseAutomaticTuningClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/databaseblobauditingpolicies.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/databaseblobauditingpolicies.go index 71763ac7ae9a..3901af999afe 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/databaseblobauditingpolicies.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/databaseblobauditingpolicies.go @@ -78,6 +78,7 @@ func (client DatabaseBlobAuditingPoliciesClient) CreateOrUpdate(ctx context.Cont result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseBlobAuditingPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client DatabaseBlobAuditingPoliciesClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseBlobAuditingPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client DatabaseBlobAuditingPoliciesClient) ListByDatabase(ctx context.Cont result.dbaplr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseBlobAuditingPoliciesClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.dbaplr.hasNextLink() && result.dbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -305,6 +308,7 @@ func (client DatabaseBlobAuditingPoliciesClient) listByDatabaseNextResults(ctx c result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseBlobAuditingPoliciesClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/databaseoperations.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/databaseoperations.go index c49ab5612356..ae3b58537c99 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/databaseoperations.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/databaseoperations.go @@ -79,6 +79,7 @@ func (client DatabaseOperationsClient) Cancel(ctx context.Context, resourceGroup result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseOperationsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client DatabaseOperationsClient) ListByDatabase(ctx context.Context, resou result.dolr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseOperationsClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -223,6 +225,7 @@ func (client DatabaseOperationsClient) listByDatabaseNextResults(ctx context.Con result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseOperationsClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/databases.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/databases.go index 38a77c503407..44d675cfa4af 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/databases.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/databases.go @@ -249,6 +249,7 @@ func (client DatabasesClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Delete", resp, "Failure responding to request") + return } return @@ -418,6 +419,7 @@ func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -500,6 +502,7 @@ func (client DatabasesClient) GetByElasticPool(ctx context.Context, resourceGrou result, err = client.GetByElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "GetByElasticPool", resp, "Failure responding to request") + return } return @@ -580,6 +583,7 @@ func (client DatabasesClient) GetByRecommendedElasticPool(ctx context.Context, r result, err = client.GetByRecommendedElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "GetByRecommendedElasticPool", resp, "Failure responding to request") + return } return @@ -745,6 +749,7 @@ func (client DatabasesClient) ListByElasticPool(ctx context.Context, resourceGro result, err = client.ListByElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListByElasticPool", resp, "Failure responding to request") + return } return @@ -823,6 +828,7 @@ func (client DatabasesClient) ListByRecommendedElasticPool(ctx context.Context, result, err = client.ListByRecommendedElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListByRecommendedElasticPool", resp, "Failure responding to request") + return } return @@ -903,6 +909,7 @@ func (client DatabasesClient) ListByServer(ctx context.Context, resourceGroupNam result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListByServer", resp, "Failure responding to request") + return } return @@ -986,6 +993,7 @@ func (client DatabasesClient) ListMetricDefinitions(ctx context.Context, resourc result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -1065,6 +1073,7 @@ func (client DatabasesClient) ListMetrics(ctx context.Context, resourceGroupName result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -1228,6 +1237,7 @@ func (client DatabasesClient) Rename(ctx context.Context, resourceGroupName stri result, err = client.RenameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Rename", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/databasethreatdetectionpolicies.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/databasethreatdetectionpolicies.go index 33f6aafdecdf..eb9efc3b0f7c 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/databasethreatdetectionpolicies.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/databasethreatdetectionpolicies.go @@ -78,6 +78,7 @@ func (client DatabaseThreatDetectionPoliciesClient) CreateOrUpdate(ctx context.C result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseThreatDetectionPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client DatabaseThreatDetectionPoliciesClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseThreatDetectionPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/databaseusages.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/databaseusages.go index 821f798cc4f8..0f0ba80f8697 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/databaseusages.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/databaseusages.go @@ -76,6 +76,7 @@ func (client DatabaseUsagesClient) ListByDatabase(ctx context.Context, resourceG result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseUsagesClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/databasevulnerabilityassessmentrulebaselines.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/databasevulnerabilityassessmentrulebaselines.go index 332d33b4825c..a1418c779965 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/databasevulnerabilityassessmentrulebaselines.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/databasevulnerabilityassessmentrulebaselines.go @@ -90,6 +90,7 @@ func (client DatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdate( result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentRuleBaselinesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client DatabaseVulnerabilityAssessmentRuleBaselinesClient) Delete(ctx cont result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentRuleBaselinesClient", "Delete", resp, "Failure responding to request") + return } return @@ -259,6 +261,7 @@ func (client DatabaseVulnerabilityAssessmentRuleBaselinesClient) Get(ctx context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentRuleBaselinesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/databasevulnerabilityassessments.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/databasevulnerabilityassessments.go index 254652aa4650..b0e5359afcdb 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/databasevulnerabilityassessments.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/databasevulnerabilityassessments.go @@ -78,6 +78,7 @@ func (client DatabaseVulnerabilityAssessmentsClient) CreateOrUpdate(ctx context. result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client DatabaseVulnerabilityAssessmentsClient) Delete(ctx context.Context, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client DatabaseVulnerabilityAssessmentsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client DatabaseVulnerabilityAssessmentsClient) ListByDatabase(ctx context. result.dvalr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentsClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.dvalr.hasNextLink() && result.dvalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +386,7 @@ func (client DatabaseVulnerabilityAssessmentsClient) listByDatabaseNextResults(c result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentsClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/datamaskingpolicies.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/datamaskingpolicies.go index 78e7267705dd..c2542135e170 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/datamaskingpolicies.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/datamaskingpolicies.go @@ -78,6 +78,7 @@ func (client DataMaskingPoliciesClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DataMaskingPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client DataMaskingPoliciesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DataMaskingPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/datamaskingrules.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/datamaskingrules.go index 3b18e7b024a4..8a93097cd0cc 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/datamaskingrules.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/datamaskingrules.go @@ -90,6 +90,7 @@ func (client DataMaskingRulesClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DataMaskingRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client DataMaskingRulesClient) ListByDatabase(ctx context.Context, resourc result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DataMaskingRulesClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/datawarehouseuseractivities.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/datawarehouseuseractivities.go index aa68003633d2..d0ccd02e7afc 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/datawarehouseuseractivities.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/datawarehouseuseractivities.go @@ -77,6 +77,7 @@ func (client DataWarehouseUserActivitiesClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DataWarehouseUserActivitiesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/elasticpoolactivities.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/elasticpoolactivities.go index c268b9637370..4888ff3ef4a4 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/elasticpoolactivities.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/elasticpoolactivities.go @@ -77,6 +77,7 @@ func (client ElasticPoolActivitiesClient) ListByElasticPool(ctx context.Context, result, err = client.ListByElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolActivitiesClient", "ListByElasticPool", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/elasticpooldatabaseactivities.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/elasticpooldatabaseactivities.go index 8ef06f4105c6..d08f393060ad 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/elasticpooldatabaseactivities.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/elasticpooldatabaseactivities.go @@ -77,6 +77,7 @@ func (client ElasticPoolDatabaseActivitiesClient) ListByElasticPool(ctx context. result, err = client.ListByElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolDatabaseActivitiesClient", "ListByElasticPool", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/elasticpools.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/elasticpools.go index f15e17be52b8..9b6efe69b5dd 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/elasticpools.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/elasticpools.go @@ -158,6 +158,7 @@ func (client ElasticPoolsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "Delete", resp, "Failure responding to request") + return } return @@ -235,6 +236,7 @@ func (client ElasticPoolsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +314,7 @@ func (client ElasticPoolsClient) ListByServer(ctx context.Context, resourceGroup result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "ListByServer", resp, "Failure responding to request") + return } return @@ -389,6 +392,7 @@ func (client ElasticPoolsClient) ListMetricDefinitions(ctx context.Context, reso result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -468,6 +472,7 @@ func (client ElasticPoolsClient) ListMetrics(ctx context.Context, resourceGroupN result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/encryptionprotectors.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/encryptionprotectors.go index bfd15e5ba2c3..d5b8e45975dc 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/encryptionprotectors.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/encryptionprotectors.go @@ -158,6 +158,7 @@ func (client EncryptionProtectorsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.EncryptionProtectorsClient", "Get", resp, "Failure responding to request") + return } return @@ -236,6 +237,7 @@ func (client EncryptionProtectorsClient) ListByServer(ctx context.Context, resou result.eplr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.EncryptionProtectorsClient", "ListByServer", resp, "Failure responding to request") + return } if result.eplr.hasNextLink() && result.eplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -300,6 +302,7 @@ func (client EncryptionProtectorsClient) listByServerNextResults(ctx context.Con result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.EncryptionProtectorsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/extendeddatabaseblobauditingpolicies.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/extendeddatabaseblobauditingpolicies.go index 46dbeda6ed96..bed4a4650e96 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/extendeddatabaseblobauditingpolicies.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/extendeddatabaseblobauditingpolicies.go @@ -79,6 +79,7 @@ func (client ExtendedDatabaseBlobAuditingPoliciesClient) CreateOrUpdate(ctx cont result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ExtendedDatabaseBlobAuditingPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client ExtendedDatabaseBlobAuditingPoliciesClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ExtendedDatabaseBlobAuditingPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client ExtendedDatabaseBlobAuditingPoliciesClient) ListByDatabase(ctx cont result.edbaplr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ExtendedDatabaseBlobAuditingPoliciesClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.edbaplr.hasNextLink() && result.edbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -305,6 +308,7 @@ func (client ExtendedDatabaseBlobAuditingPoliciesClient) listByDatabaseNextResul result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ExtendedDatabaseBlobAuditingPoliciesClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/extendedserverblobauditingpolicies.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/extendedserverblobauditingpolicies.go index cc8dc384ffd5..afcbfd182d31 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/extendedserverblobauditingpolicies.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/extendedserverblobauditingpolicies.go @@ -157,6 +157,7 @@ func (client ExtendedServerBlobAuditingPoliciesClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ExtendedServerBlobAuditingPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -235,6 +236,7 @@ func (client ExtendedServerBlobAuditingPoliciesClient) ListByServer(ctx context. result.esbaplr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ExtendedServerBlobAuditingPoliciesClient", "ListByServer", resp, "Failure responding to request") + return } if result.esbaplr.hasNextLink() && result.esbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -299,6 +301,7 @@ func (client ExtendedServerBlobAuditingPoliciesClient) listByServerNextResults(c result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ExtendedServerBlobAuditingPoliciesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/failovergroups.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/failovergroups.go index b8cabfa4b156..a3f015f0dc25 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/failovergroups.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/failovergroups.go @@ -402,6 +402,7 @@ func (client FailoverGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -480,6 +481,7 @@ func (client FailoverGroupsClient) ListByServer(ctx context.Context, resourceGro result.fglr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "ListByServer", resp, "Failure responding to request") + return } if result.fglr.hasNextLink() && result.fglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -544,6 +546,7 @@ func (client FailoverGroupsClient) listByServerNextResults(ctx context.Context, result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/firewallrules.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/firewallrules.go index abe6eb6e3678..533867a68840 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/firewallrules.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/firewallrules.go @@ -87,6 +87,7 @@ func (client FirewallRulesClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.FirewallRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client FirewallRulesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.FirewallRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.FirewallRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +326,7 @@ func (client FirewallRulesClient) ListByServer(ctx context.Context, resourceGrou result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.FirewallRulesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/geobackuppolicies.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/geobackuppolicies.go index e9abc2b3fc93..0975f0aa33d5 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/geobackuppolicies.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/geobackuppolicies.go @@ -85,6 +85,7 @@ func (client GeoBackupPoliciesClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.GeoBackupPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client GeoBackupPoliciesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.GeoBackupPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -247,6 +249,7 @@ func (client GeoBackupPoliciesClient) ListByDatabase(ctx context.Context, resour result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.GeoBackupPoliciesClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/jobagents.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/jobagents.go index beb84e6e8ca3..cc5cc853e0d0 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/jobagents.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/jobagents.go @@ -244,6 +244,7 @@ func (client JobAgentsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobAgentsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client JobAgentsClient) ListByServer(ctx context.Context, resourceGroupNam result.jalr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobAgentsClient", "ListByServer", resp, "Failure responding to request") + return } if result.jalr.hasNextLink() && result.jalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client JobAgentsClient) listByServerNextResults(ctx context.Context, lastR result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobAgentsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/jobcredentials.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/jobcredentials.go index fd6bd71b5e61..1edd7b581318 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/jobcredentials.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/jobcredentials.go @@ -88,6 +88,7 @@ func (client JobCredentialsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobCredentialsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client JobCredentialsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobCredentialsClient", "Delete", resp, "Failure responding to request") + return } return @@ -249,6 +251,7 @@ func (client JobCredentialsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobCredentialsClient", "Get", resp, "Failure responding to request") + return } return @@ -329,6 +332,7 @@ func (client JobCredentialsClient) ListByAgent(ctx context.Context, resourceGrou result.jclr, err = client.ListByAgentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobCredentialsClient", "ListByAgent", resp, "Failure responding to request") + return } if result.jclr.hasNextLink() && result.jclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +398,7 @@ func (client JobCredentialsClient) listByAgentNextResults(ctx context.Context, l result, err = client.ListByAgentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobCredentialsClient", "listByAgentNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/jobexecutions.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/jobexecutions.go index 9f3b16238574..8ccbc85abde8 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/jobexecutions.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/jobexecutions.go @@ -80,6 +80,7 @@ func (client JobExecutionsClient) Cancel(ctx context.Context, resourceGroupName result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -323,6 +324,7 @@ func (client JobExecutionsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "Get", resp, "Failure responding to request") + return } return @@ -411,6 +413,7 @@ func (client JobExecutionsClient) ListByAgent(ctx context.Context, resourceGroup result.jelr, err = client.ListByAgentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "ListByAgent", resp, "Failure responding to request") + return } if result.jelr.hasNextLink() && result.jelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -497,6 +500,7 @@ func (client JobExecutionsClient) listByAgentNextResults(ctx context.Context, la result, err = client.ListByAgentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "listByAgentNextResults", resp, "Failure responding to next results request") + return } return } @@ -559,6 +563,7 @@ func (client JobExecutionsClient) ListByJob(ctx context.Context, resourceGroupNa result.jelr, err = client.ListByJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "ListByJob", resp, "Failure responding to request") + return } if result.jelr.hasNextLink() && result.jelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -646,6 +651,7 @@ func (client JobExecutionsClient) listByJobNextResults(ctx context.Context, last result, err = client.ListByJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "listByJobNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/jobs.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/jobs.go index d10ddc67e6ee..7bacb2b308d8 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/jobs.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/jobs.go @@ -78,6 +78,7 @@ func (client JobsClient) CreateOrUpdate(ctx context.Context, resourceGroupName s result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client JobsClient) Delete(ctx context.Context, resourceGroupName string, s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobsClient", "Delete", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client JobsClient) Get(ctx context.Context, resourceGroupName string, serv result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobsClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +322,7 @@ func (client JobsClient) ListByAgent(ctx context.Context, resourceGroupName stri result.jlr, err = client.ListByAgentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobsClient", "ListByAgent", resp, "Failure responding to request") + return } if result.jlr.hasNextLink() && result.jlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +388,7 @@ func (client JobsClient) listByAgentNextResults(ctx context.Context, lastResults result, err = client.ListByAgentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobsClient", "listByAgentNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/jobstepexecutions.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/jobstepexecutions.go index 695297931382..a09731b1723a 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/jobstepexecutions.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/jobstepexecutions.go @@ -82,6 +82,7 @@ func (client JobStepExecutionsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobStepExecutionsClient", "Get", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client JobStepExecutionsClient) ListByJobExecution(ctx context.Context, re result.jelr, err = client.ListByJobExecutionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobStepExecutionsClient", "ListByJobExecution", resp, "Failure responding to request") + return } if result.jelr.hasNextLink() && result.jelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -261,6 +263,7 @@ func (client JobStepExecutionsClient) listByJobExecutionNextResults(ctx context. result, err = client.ListByJobExecutionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobStepExecutionsClient", "listByJobExecutionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/jobsteps.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/jobsteps.go index aa6a4e3ac01c..b85ab8010fe3 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/jobsteps.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/jobsteps.go @@ -97,6 +97,7 @@ func (client JobStepsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client JobStepsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "Delete", resp, "Failure responding to request") + return } return @@ -262,6 +264,7 @@ func (client JobStepsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +348,7 @@ func (client JobStepsClient) GetByVersion(ctx context.Context, resourceGroupName result, err = client.GetByVersionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "GetByVersion", resp, "Failure responding to request") + return } return @@ -428,6 +432,7 @@ func (client JobStepsClient) ListByJob(ctx context.Context, resourceGroupName st result.jslr, err = client.ListByJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "ListByJob", resp, "Failure responding to request") + return } if result.jslr.hasNextLink() && result.jslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -494,6 +499,7 @@ func (client JobStepsClient) listByJobNextResults(ctx context.Context, lastResul result, err = client.ListByJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "listByJobNextResults", resp, "Failure responding to next results request") + return } return } @@ -550,6 +556,7 @@ func (client JobStepsClient) ListByVersion(ctx context.Context, resourceGroupNam result.jslr, err = client.ListByVersionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "ListByVersion", resp, "Failure responding to request") + return } if result.jslr.hasNextLink() && result.jslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -617,6 +624,7 @@ func (client JobStepsClient) listByVersionNextResults(ctx context.Context, lastR result, err = client.ListByVersionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "listByVersionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/jobtargetexecutions.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/jobtargetexecutions.go index 6eff234c9f01..f29dedcece8b 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/jobtargetexecutions.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/jobtargetexecutions.go @@ -83,6 +83,7 @@ func (client JobTargetExecutionsClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobTargetExecutionsClient", "Get", resp, "Failure responding to request") + return } return @@ -175,6 +176,7 @@ func (client JobTargetExecutionsClient) ListByJobExecution(ctx context.Context, result.jelr, err = client.ListByJobExecutionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobTargetExecutionsClient", "ListByJobExecution", resp, "Failure responding to request") + return } if result.jelr.hasNextLink() && result.jelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -263,6 +265,7 @@ func (client JobTargetExecutionsClient) listByJobExecutionNextResults(ctx contex result, err = client.ListByJobExecutionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobTargetExecutionsClient", "listByJobExecutionNextResults", resp, "Failure responding to next results request") + return } return } @@ -327,6 +330,7 @@ func (client JobTargetExecutionsClient) ListByStep(ctx context.Context, resource result.jelr, err = client.ListByStepResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobTargetExecutionsClient", "ListByStep", resp, "Failure responding to request") + return } if result.jelr.hasNextLink() && result.jelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -416,6 +420,7 @@ func (client JobTargetExecutionsClient) listByStepNextResults(ctx context.Contex result, err = client.ListByStepResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobTargetExecutionsClient", "listByStepNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/jobtargetgroups.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/jobtargetgroups.go index 67141528eff5..4692588ea81a 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/jobtargetgroups.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/jobtargetgroups.go @@ -86,6 +86,7 @@ func (client JobTargetGroupsClient) CreateOrUpdate(ctx context.Context, resource result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobTargetGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client JobTargetGroupsClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobTargetGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -247,6 +249,7 @@ func (client JobTargetGroupsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobTargetGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -327,6 +330,7 @@ func (client JobTargetGroupsClient) ListByAgent(ctx context.Context, resourceGro result.jtglr, err = client.ListByAgentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobTargetGroupsClient", "ListByAgent", resp, "Failure responding to request") + return } if result.jtglr.hasNextLink() && result.jtglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -392,6 +396,7 @@ func (client JobTargetGroupsClient) listByAgentNextResults(ctx context.Context, result, err = client.ListByAgentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobTargetGroupsClient", "listByAgentNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/jobversions.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/jobversions.go index fc1a4df9f188..daa6ad7374d1 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/jobversions.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/jobversions.go @@ -78,6 +78,7 @@ func (client JobVersionsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobVersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client JobVersionsClient) ListByJob(ctx context.Context, resourceGroupName result.jvlr, err = client.ListByJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobVersionsClient", "ListByJob", resp, "Failure responding to request") + return } if result.jvlr.hasNextLink() && result.jvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -226,6 +228,7 @@ func (client JobVersionsClient) listByJobNextResults(ctx context.Context, lastRe result, err = client.ListByJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobVersionsClient", "listByJobNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/managedbackupshorttermretentionpolicies.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/managedbackupshorttermretentionpolicies.go index 3a5c36f806c4..f6ea5ba28365 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/managedbackupshorttermretentionpolicies.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/managedbackupshorttermretentionpolicies.go @@ -160,6 +160,7 @@ func (client ManagedBackupShortTermRetentionPoliciesClient) Get(ctx context.Cont result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedBackupShortTermRetentionPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -240,6 +241,7 @@ func (client ManagedBackupShortTermRetentionPoliciesClient) ListByDatabase(ctx c result.mbstrplr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedBackupShortTermRetentionPoliciesClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.mbstrplr.hasNextLink() && result.mbstrplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -305,6 +307,7 @@ func (client ManagedBackupShortTermRetentionPoliciesClient) listByDatabaseNextRe result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedBackupShortTermRetentionPoliciesClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/manageddatabases.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/manageddatabases.go index f4c8608a2fbb..192f460a3e3b 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/manageddatabases.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/manageddatabases.go @@ -320,6 +320,7 @@ func (client ManagedDatabasesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -398,6 +399,7 @@ func (client ManagedDatabasesClient) ListByInstance(ctx context.Context, resourc result.mdlr, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "ListByInstance", resp, "Failure responding to request") + return } if result.mdlr.hasNextLink() && result.mdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -462,6 +464,7 @@ func (client ManagedDatabasesClient) listByInstanceNextResults(ctx context.Conte result, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "listByInstanceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/managedinstanceadministrators.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/managedinstanceadministrators.go index d568ddc27763..0621b47d6607 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/managedinstanceadministrators.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/managedinstanceadministrators.go @@ -243,6 +243,7 @@ func (client ManagedInstanceAdministratorsClient) Get(ctx context.Context, resou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceAdministratorsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client ManagedInstanceAdministratorsClient) ListByInstance(ctx context.Con result.mialr, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceAdministratorsClient", "ListByInstance", resp, "Failure responding to request") + return } if result.mialr.hasNextLink() && result.mialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client ManagedInstanceAdministratorsClient) listByInstanceNextResults(ctx result, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceAdministratorsClient", "listByInstanceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/managedinstances.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/managedinstances.go index 598edf1d4247..8bec7eb9cc68 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/managedinstances.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/managedinstances.go @@ -238,6 +238,7 @@ func (client ManagedInstancesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client ManagedInstancesClient) List(ctx context.Context) (result ManagedIn result.milr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "List", resp, "Failure responding to request") + return } if result.milr.hasNextLink() && result.milr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client ManagedInstancesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -425,6 +428,7 @@ func (client ManagedInstancesClient) ListByResourceGroup(ctx context.Context, re result.milr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.milr.hasNextLink() && result.milr.IsEmpty() { err = result.NextWithContext(ctx) @@ -488,6 +492,7 @@ func (client ManagedInstancesClient) listByResourceGroupNextResults(ctx context. result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/operations.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/operations.go index 2c73ea861176..4afab1c875d1 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/operations.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/recoverabledatabases.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/recoverabledatabases.go index b0975e5b0da6..3f4385532de9 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/recoverabledatabases.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/recoverabledatabases.go @@ -77,6 +77,7 @@ func (client RecoverableDatabasesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RecoverableDatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client RecoverableDatabasesClient) ListByServer(ctx context.Context, resou result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RecoverableDatabasesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/replicationlinks.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/replicationlinks.go index e494bf72327a..0a68fa4952d9 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/replicationlinks.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/replicationlinks.go @@ -78,6 +78,7 @@ func (client ReplicationLinksClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ReplicationLinksClient", "Delete", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client ReplicationLinksClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ReplicationLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -395,6 +397,7 @@ func (client ReplicationLinksClient) ListByDatabase(ctx context.Context, resourc result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ReplicationLinksClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/restorabledroppeddatabases.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/restorabledroppeddatabases.go index 8408a78330ec..e62154c5f421 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/restorabledroppeddatabases.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/restorabledroppeddatabases.go @@ -78,6 +78,7 @@ func (client RestorableDroppedDatabasesClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RestorableDroppedDatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client RestorableDroppedDatabasesClient) ListByServer(ctx context.Context, result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RestorableDroppedDatabasesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/restorabledroppedmanageddatabases.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/restorabledroppedmanageddatabases.go index c3fe13ff6545..40ac5eecbee4 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/restorabledroppedmanageddatabases.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/restorabledroppedmanageddatabases.go @@ -77,6 +77,7 @@ func (client RestorableDroppedManagedDatabasesClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RestorableDroppedManagedDatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client RestorableDroppedManagedDatabasesClient) ListByInstance(ctx context result.rdmdlr, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RestorableDroppedManagedDatabasesClient", "ListByInstance", resp, "Failure responding to request") + return } if result.rdmdlr.hasNextLink() && result.rdmdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -219,6 +221,7 @@ func (client RestorableDroppedManagedDatabasesClient) listByInstanceNextResults( result, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RestorableDroppedManagedDatabasesClient", "listByInstanceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/restorepoints.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/restorepoints.go index b643a2f185ea..65137111b8a6 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/restorepoints.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/restorepoints.go @@ -165,6 +165,7 @@ func (client RestorePointsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RestorePointsClient", "Delete", resp, "Failure responding to request") + return } return @@ -244,6 +245,7 @@ func (client RestorePointsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RestorePointsClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +325,7 @@ func (client RestorePointsClient) ListByDatabase(ctx context.Context, resourceGr result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RestorePointsClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/sensitivitylabels.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/sensitivitylabels.go index 139dd8024c3d..57bc4596f240 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/sensitivitylabels.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/sensitivitylabels.go @@ -81,6 +81,7 @@ func (client SensitivityLabelsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SensitivityLabelsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client SensitivityLabelsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SensitivityLabelsClient", "Delete", resp, "Failure responding to request") + return } return @@ -252,6 +254,7 @@ func (client SensitivityLabelsClient) DisableRecommendation(ctx context.Context, result, err = client.DisableRecommendationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SensitivityLabelsClient", "DisableRecommendation", resp, "Failure responding to request") + return } return @@ -337,6 +340,7 @@ func (client SensitivityLabelsClient) EnableRecommendation(ctx context.Context, result, err = client.EnableRecommendationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SensitivityLabelsClient", "EnableRecommendation", resp, "Failure responding to request") + return } return @@ -422,6 +426,7 @@ func (client SensitivityLabelsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SensitivityLabelsClient", "Get", resp, "Failure responding to request") + return } return @@ -506,6 +511,7 @@ func (client SensitivityLabelsClient) ListCurrentByDatabase(ctx context.Context, result.sllr, err = client.ListCurrentByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SensitivityLabelsClient", "ListCurrentByDatabase", resp, "Failure responding to request") + return } if result.sllr.hasNextLink() && result.sllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -574,6 +580,7 @@ func (client SensitivityLabelsClient) listCurrentByDatabaseNextResults(ctx conte result, err = client.ListCurrentByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SensitivityLabelsClient", "listCurrentByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +637,7 @@ func (client SensitivityLabelsClient) ListRecommendedByDatabase(ctx context.Cont result.sllr, err = client.ListRecommendedByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SensitivityLabelsClient", "ListRecommendedByDatabase", resp, "Failure responding to request") + return } if result.sllr.hasNextLink() && result.sllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -704,6 +712,7 @@ func (client SensitivityLabelsClient) listRecommendedByDatabaseNextResults(ctx c result, err = client.ListRecommendedByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SensitivityLabelsClient", "listRecommendedByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/serverautomatictuning.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/serverautomatictuning.go index 5b4391b7d85a..5fd94c9ef99f 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/serverautomatictuning.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/serverautomatictuning.go @@ -76,6 +76,7 @@ func (client ServerAutomaticTuningClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerAutomaticTuningClient", "Get", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client ServerAutomaticTuningClient) Update(ctx context.Context, resourceGr result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerAutomaticTuningClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/serverazureadadministrators.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/serverazureadadministrators.go index 4916ffa36355..c72a9858fd4a 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/serverazureadadministrators.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/serverazureadadministrators.go @@ -246,6 +246,7 @@ func (client ServerAzureADAdministratorsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerAzureADAdministratorsClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +324,7 @@ func (client ServerAzureADAdministratorsClient) ListByServer(ctx context.Context result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerAzureADAdministratorsClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/serverblobauditingpolicies.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/serverblobauditingpolicies.go index a0bca6236d59..5c8407469071 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/serverblobauditingpolicies.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/serverblobauditingpolicies.go @@ -156,6 +156,7 @@ func (client ServerBlobAuditingPoliciesClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerBlobAuditingPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -234,6 +235,7 @@ func (client ServerBlobAuditingPoliciesClient) ListByServer(ctx context.Context, result.sbaplr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerBlobAuditingPoliciesClient", "ListByServer", resp, "Failure responding to request") + return } if result.sbaplr.hasNextLink() && result.sbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -298,6 +300,7 @@ func (client ServerBlobAuditingPoliciesClient) listByServerNextResults(ctx conte result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerBlobAuditingPoliciesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/servercommunicationlinks.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/servercommunicationlinks.go index 0c5fce09ef4c..16c4bcfea27b 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/servercommunicationlinks.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/servercommunicationlinks.go @@ -168,6 +168,7 @@ func (client ServerCommunicationLinksClient) Delete(ctx context.Context, resourc result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerCommunicationLinksClient", "Delete", resp, "Failure responding to request") + return } return @@ -245,6 +246,7 @@ func (client ServerCommunicationLinksClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerCommunicationLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +324,7 @@ func (client ServerCommunicationLinksClient) ListByServer(ctx context.Context, r result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerCommunicationLinksClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/serverconnectionpolicies.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/serverconnectionpolicies.go index 21095382288f..599c3e8e1bb7 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/serverconnectionpolicies.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/serverconnectionpolicies.go @@ -77,6 +77,7 @@ func (client ServerConnectionPoliciesClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerConnectionPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client ServerConnectionPoliciesClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerConnectionPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/serverdnsaliases.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/serverdnsaliases.go index d78d038c5917..28dbf6937f67 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/serverdnsaliases.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/serverdnsaliases.go @@ -311,6 +311,7 @@ func (client ServerDNSAliasesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerDNSAliasesClient", "Get", resp, "Failure responding to request") + return } return @@ -389,6 +390,7 @@ func (client ServerDNSAliasesClient) ListByServer(ctx context.Context, resourceG result.sdalr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerDNSAliasesClient", "ListByServer", resp, "Failure responding to request") + return } if result.sdalr.hasNextLink() && result.sdalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -453,6 +455,7 @@ func (client ServerDNSAliasesClient) listByServerNextResults(ctx context.Context result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerDNSAliasesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/serverkeys.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/serverkeys.go index bc134b88ddbb..db72b8632f2a 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/serverkeys.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/serverkeys.go @@ -238,6 +238,7 @@ func (client ServerKeysClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client ServerKeysClient) ListByServer(ctx context.Context, resourceGroupNa result.sklr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerKeysClient", "ListByServer", resp, "Failure responding to request") + return } if result.sklr.hasNextLink() && result.sklr.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +382,7 @@ func (client ServerKeysClient) listByServerNextResults(ctx context.Context, last result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerKeysClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/servers.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/servers.go index f6f0b8df7275..ad9c859e14c8 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/servers.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/servers.go @@ -81,6 +81,7 @@ func (client ServersClient) CheckNameAvailability(ctx context.Context, parameter result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client ServersClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersClient", "Get", resp, "Failure responding to request") + return } return @@ -385,6 +387,7 @@ func (client ServersClient) List(ctx context.Context) (result ServerListResultPa result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -447,6 +450,7 @@ func (client ServersClient) listNextResults(ctx context.Context, lastResults Ser result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -499,6 +503,7 @@ func (client ServersClient) ListByResourceGroup(ctx context.Context, resourceGro result.slr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -562,6 +567,7 @@ func (client ServersClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/serversecurityalertpolicies.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/serversecurityalertpolicies.go index 5faa7f1961cc..7fa050c9d3b7 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/serversecurityalertpolicies.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/serversecurityalertpolicies.go @@ -156,6 +156,7 @@ func (client ServerSecurityAlertPoliciesClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerSecurityAlertPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -234,6 +235,7 @@ func (client ServerSecurityAlertPoliciesClient) ListByServer(ctx context.Context result.lssaplr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerSecurityAlertPoliciesClient", "ListByServer", resp, "Failure responding to request") + return } if result.lssaplr.hasNextLink() && result.lssaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -298,6 +300,7 @@ func (client ServerSecurityAlertPoliciesClient) listByServerNextResults(ctx cont result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerSecurityAlertPoliciesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/serverusages.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/serverusages.go index b91950ee0677..ee231de0c896 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/serverusages.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/serverusages.go @@ -75,6 +75,7 @@ func (client ServerUsagesClient) ListByServer(ctx context.Context, resourceGroup result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerUsagesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/serviceobjectives.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/serviceobjectives.go index 5b0d17d9ae87..1a0367f0f935 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/serviceobjectives.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/serviceobjectives.go @@ -77,6 +77,7 @@ func (client ServiceObjectivesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServiceObjectivesClient", "Get", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client ServiceObjectivesClient) ListByServer(ctx context.Context, resource result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServiceObjectivesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/servicetieradvisors.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/servicetieradvisors.go index e21177193bb9..17c6a248f19b 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/servicetieradvisors.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/servicetieradvisors.go @@ -78,6 +78,7 @@ func (client ServiceTierAdvisorsClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServiceTierAdvisorsClient", "Get", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client ServiceTierAdvisorsClient) ListByDatabase(ctx context.Context, reso result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServiceTierAdvisorsClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/subscriptionusages.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/subscriptionusages.go index bfbc2fff2fed..b045357d55b7 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/subscriptionusages.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/subscriptionusages.go @@ -75,6 +75,7 @@ func (client SubscriptionUsagesClient) Get(ctx context.Context, locationName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SubscriptionUsagesClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client SubscriptionUsagesClient) ListByLocation(ctx context.Context, locat result.sulr, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SubscriptionUsagesClient", "ListByLocation", resp, "Failure responding to request") + return } if result.sulr.hasNextLink() && result.sulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -213,6 +215,7 @@ func (client SubscriptionUsagesClient) listByLocationNextResults(ctx context.Con result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SubscriptionUsagesClient", "listByLocationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/syncagents.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/syncagents.go index 304383c20007..05b6e7f8cf67 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/syncagents.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/syncagents.go @@ -234,6 +234,7 @@ func (client SyncAgentsClient) GenerateKey(ctx context.Context, resourceGroupNam result, err = client.GenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncAgentsClient", "GenerateKey", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client SyncAgentsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncAgentsClient", "Get", resp, "Failure responding to request") + return } return @@ -390,6 +392,7 @@ func (client SyncAgentsClient) ListByServer(ctx context.Context, resourceGroupNa result.salr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncAgentsClient", "ListByServer", resp, "Failure responding to request") + return } if result.salr.hasNextLink() && result.salr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client SyncAgentsClient) listByServerNextResults(ctx context.Context, last result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncAgentsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } @@ -508,6 +512,7 @@ func (client SyncAgentsClient) ListLinkedDatabases(ctx context.Context, resource result.saldlr, err = client.ListLinkedDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncAgentsClient", "ListLinkedDatabases", resp, "Failure responding to request") + return } if result.saldlr.hasNextLink() && result.saldlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -573,6 +578,7 @@ func (client SyncAgentsClient) listLinkedDatabasesNextResults(ctx context.Contex result, err = client.ListLinkedDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncAgentsClient", "listLinkedDatabasesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/syncgroups.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/syncgroups.go index 516f73727c05..37a658515a39 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/syncgroups.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/syncgroups.go @@ -77,6 +77,7 @@ func (client SyncGroupsClient) CancelSync(ctx context.Context, resourceGroupName result, err = client.CancelSyncResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "CancelSync", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client SyncGroupsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -398,6 +400,7 @@ func (client SyncGroupsClient) ListByDatabase(ctx context.Context, resourceGroup result.sglr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -463,6 +466,7 @@ func (client SyncGroupsClient) listByDatabaseNextResults(ctx context.Context, la result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } @@ -518,6 +522,7 @@ func (client SyncGroupsClient) ListHubSchemas(ctx context.Context, resourceGroup result.sfsplr, err = client.ListHubSchemasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "ListHubSchemas", resp, "Failure responding to request") + return } if result.sfsplr.hasNextLink() && result.sfsplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -584,6 +589,7 @@ func (client SyncGroupsClient) listHubSchemasNextResults(ctx context.Context, la result, err = client.ListHubSchemasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "listHubSchemasNextResults", resp, "Failure responding to next results request") + return } return } @@ -643,6 +649,7 @@ func (client SyncGroupsClient) ListLogs(ctx context.Context, resourceGroupName s result.sgllr, err = client.ListLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "ListLogs", resp, "Failure responding to request") + return } if result.sgllr.hasNextLink() && result.sgllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -715,6 +722,7 @@ func (client SyncGroupsClient) listLogsNextResults(ctx context.Context, lastResu result, err = client.ListLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "listLogsNextResults", resp, "Failure responding to next results request") + return } return } @@ -766,6 +774,7 @@ func (client SyncGroupsClient) ListSyncDatabaseIds(ctx context.Context, location result.sdilr, err = client.ListSyncDatabaseIdsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "ListSyncDatabaseIds", resp, "Failure responding to request") + return } if result.sdilr.hasNextLink() && result.sdilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -829,6 +838,7 @@ func (client SyncGroupsClient) listSyncDatabaseIdsNextResults(ctx context.Contex result, err = client.ListSyncDatabaseIdsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "listSyncDatabaseIdsNextResults", resp, "Failure responding to next results request") + return } return } @@ -962,6 +972,7 @@ func (client SyncGroupsClient) TriggerSync(ctx context.Context, resourceGroupNam result, err = client.TriggerSyncResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "TriggerSync", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/syncmembers.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/syncmembers.go index c0eafe1b0631..29b3a32b5dd0 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/syncmembers.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/syncmembers.go @@ -244,6 +244,7 @@ func (client SyncMembersClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncMembersClient", "Get", resp, "Failure responding to request") + return } return @@ -326,6 +327,7 @@ func (client SyncMembersClient) ListBySyncGroup(ctx context.Context, resourceGro result.smlr, err = client.ListBySyncGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncMembersClient", "ListBySyncGroup", resp, "Failure responding to request") + return } if result.smlr.hasNextLink() && result.smlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -392,6 +394,7 @@ func (client SyncMembersClient) listBySyncGroupNextResults(ctx context.Context, result, err = client.ListBySyncGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncMembersClient", "listBySyncGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -448,6 +451,7 @@ func (client SyncMembersClient) ListMemberSchemas(ctx context.Context, resourceG result.sfsplr, err = client.ListMemberSchemasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncMembersClient", "ListMemberSchemas", resp, "Failure responding to request") + return } if result.sfsplr.hasNextLink() && result.sfsplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -515,6 +519,7 @@ func (client SyncMembersClient) listMemberSchemasNextResults(ctx context.Context result, err = client.ListMemberSchemasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncMembersClient", "listMemberSchemasNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/transparentdataencryptionactivities.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/transparentdataencryptionactivities.go index 3ddbfabd7144..66565e96e3cc 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/transparentdataencryptionactivities.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/transparentdataencryptionactivities.go @@ -78,6 +78,7 @@ func (client TransparentDataEncryptionActivitiesClient) ListByConfiguration(ctx result, err = client.ListByConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.TransparentDataEncryptionActivitiesClient", "ListByConfiguration", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/transparentdataencryptions.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/transparentdataencryptions.go index 8b488f97380a..0b88ca196502 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/transparentdataencryptions.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/transparentdataencryptions.go @@ -78,6 +78,7 @@ func (client TransparentDataEncryptionsClient) CreateOrUpdate(ctx context.Contex result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.TransparentDataEncryptionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client TransparentDataEncryptionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.TransparentDataEncryptionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/virtualclusters.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/virtualclusters.go index 4908706500f8..f6003181ea4f 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/virtualclusters.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/virtualclusters.go @@ -150,6 +150,7 @@ func (client VirtualClustersClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -223,6 +224,7 @@ func (client VirtualClustersClient) List(ctx context.Context) (result VirtualClu result.vclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualClustersClient", "List", resp, "Failure responding to request") + return } if result.vclr.hasNextLink() && result.vclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -285,6 +287,7 @@ func (client VirtualClustersClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -337,6 +340,7 @@ func (client VirtualClustersClient) ListByResourceGroup(ctx context.Context, res result.vclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vclr.hasNextLink() && result.vclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -400,6 +404,7 @@ func (client VirtualClustersClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/virtualnetworkrules.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/virtualnetworkrules.go index 6902a5507092..56d4419afa90 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/virtualnetworkrules.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/virtualnetworkrules.go @@ -243,6 +243,7 @@ func (client VirtualNetworkRulesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualNetworkRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client VirtualNetworkRulesClient) ListByServer(ctx context.Context, resour result.vnrlr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualNetworkRulesClient", "ListByServer", resp, "Failure responding to request") + return } if result.vnrlr.hasNextLink() && result.vnrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client VirtualNetworkRulesClient) listByServerNextResults(ctx context.Cont result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualNetworkRulesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-10-01-preview/sql/backupshorttermretentionpolicies.go b/services/preview/sql/mgmt/2017-10-01-preview/sql/backupshorttermretentionpolicies.go index c607fa5a75a6..1ae431441a53 100644 --- a/services/preview/sql/mgmt/2017-10-01-preview/sql/backupshorttermretentionpolicies.go +++ b/services/preview/sql/mgmt/2017-10-01-preview/sql/backupshorttermretentionpolicies.go @@ -159,6 +159,7 @@ func (client BackupShortTermRetentionPoliciesClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.BackupShortTermRetentionPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -239,6 +240,7 @@ func (client BackupShortTermRetentionPoliciesClient) ListByDatabase(ctx context. result.bstrplr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.BackupShortTermRetentionPoliciesClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.bstrplr.hasNextLink() && result.bstrplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -304,6 +306,7 @@ func (client BackupShortTermRetentionPoliciesClient) listByDatabaseNextResults(c result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.BackupShortTermRetentionPoliciesClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-10-01-preview/sql/capabilities.go b/services/preview/sql/mgmt/2017-10-01-preview/sql/capabilities.go index 55b8a54d2988..de4a81351291 100644 --- a/services/preview/sql/mgmt/2017-10-01-preview/sql/capabilities.go +++ b/services/preview/sql/mgmt/2017-10-01-preview/sql/capabilities.go @@ -74,6 +74,7 @@ func (client CapabilitiesClient) ListByLocation(ctx context.Context, locationNam result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.CapabilitiesClient", "ListByLocation", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-10-01-preview/sql/databaseoperations.go b/services/preview/sql/mgmt/2017-10-01-preview/sql/databaseoperations.go index 9978b688a171..a38a1c206e27 100644 --- a/services/preview/sql/mgmt/2017-10-01-preview/sql/databaseoperations.go +++ b/services/preview/sql/mgmt/2017-10-01-preview/sql/databaseoperations.go @@ -79,6 +79,7 @@ func (client DatabaseOperationsClient) Cancel(ctx context.Context, resourceGroup result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseOperationsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client DatabaseOperationsClient) ListByDatabase(ctx context.Context, resou result.dolr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseOperationsClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -223,6 +225,7 @@ func (client DatabaseOperationsClient) listByDatabaseNextResults(ctx context.Con result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseOperationsClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-10-01-preview/sql/databases.go b/services/preview/sql/mgmt/2017-10-01-preview/sql/databases.go index b34849b0e858..908b9b416d26 100644 --- a/services/preview/sql/mgmt/2017-10-01-preview/sql/databases.go +++ b/services/preview/sql/mgmt/2017-10-01-preview/sql/databases.go @@ -248,6 +248,7 @@ func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -327,6 +328,7 @@ func (client DatabasesClient) ListByElasticPool(ctx context.Context, resourceGro result.dlr, err = client.ListByElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListByElasticPool", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -392,6 +394,7 @@ func (client DatabasesClient) listByElasticPoolNextResults(ctx context.Context, result, err = client.ListByElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "listByElasticPoolNextResults", resp, "Failure responding to next results request") + return } return } @@ -445,6 +448,7 @@ func (client DatabasesClient) ListByServer(ctx context.Context, resourceGroupNam result.dlr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListByServer", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -509,6 +513,7 @@ func (client DatabasesClient) listByServerNextResults(ctx context.Context, lastR result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } @@ -647,6 +652,7 @@ func (client DatabasesClient) Rename(ctx context.Context, resourceGroupName stri result, err = client.RenameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Rename", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-10-01-preview/sql/databasevulnerabilityassessmentscans.go b/services/preview/sql/mgmt/2017-10-01-preview/sql/databasevulnerabilityassessmentscans.go index ccb07ec36054..97efc6d97b33 100644 --- a/services/preview/sql/mgmt/2017-10-01-preview/sql/databasevulnerabilityassessmentscans.go +++ b/services/preview/sql/mgmt/2017-10-01-preview/sql/databasevulnerabilityassessmentscans.go @@ -79,6 +79,7 @@ func (client DatabaseVulnerabilityAssessmentScansClient) Export(ctx context.Cont result, err = client.ExportResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentScansClient", "Export", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client DatabaseVulnerabilityAssessmentScansClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentScansClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +323,7 @@ func (client DatabaseVulnerabilityAssessmentScansClient) ListByDatabase(ctx cont result.vasrlr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentScansClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.vasrlr.hasNextLink() && result.vasrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +390,7 @@ func (client DatabaseVulnerabilityAssessmentScansClient) listByDatabaseNextResul result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentScansClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-10-01-preview/sql/elasticpooloperations.go b/services/preview/sql/mgmt/2017-10-01-preview/sql/elasticpooloperations.go index d927c5577ce9..6b16ecc6fc0d 100644 --- a/services/preview/sql/mgmt/2017-10-01-preview/sql/elasticpooloperations.go +++ b/services/preview/sql/mgmt/2017-10-01-preview/sql/elasticpooloperations.go @@ -78,6 +78,7 @@ func (client ElasticPoolOperationsClient) Cancel(ctx context.Context, resourceGr result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolOperationsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client ElasticPoolOperationsClient) ListByElasticPool(ctx context.Context, result.epolr, err = client.ListByElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolOperationsClient", "ListByElasticPool", resp, "Failure responding to request") + return } if result.epolr.hasNextLink() && result.epolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -221,6 +223,7 @@ func (client ElasticPoolOperationsClient) listByElasticPoolNextResults(ctx conte result, err = client.ListByElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolOperationsClient", "listByElasticPoolNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-10-01-preview/sql/elasticpools.go b/services/preview/sql/mgmt/2017-10-01-preview/sql/elasticpools.go index 29ce07d42ab3..8ad86501a921 100644 --- a/services/preview/sql/mgmt/2017-10-01-preview/sql/elasticpools.go +++ b/services/preview/sql/mgmt/2017-10-01-preview/sql/elasticpools.go @@ -243,6 +243,7 @@ func (client ElasticPoolsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client ElasticPoolsClient) ListByServer(ctx context.Context, resourceGroup result.eplr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "ListByServer", resp, "Failure responding to request") + return } if result.eplr.hasNextLink() && result.eplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -389,6 +391,7 @@ func (client ElasticPoolsClient) listByServerNextResults(ctx context.Context, la result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-10-01-preview/sql/instancefailovergroups.go b/services/preview/sql/mgmt/2017-10-01-preview/sql/instancefailovergroups.go index daad6990e627..68fd820092c3 100644 --- a/services/preview/sql/mgmt/2017-10-01-preview/sql/instancefailovergroups.go +++ b/services/preview/sql/mgmt/2017-10-01-preview/sql/instancefailovergroups.go @@ -403,6 +403,7 @@ func (client InstanceFailoverGroupsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -481,6 +482,7 @@ func (client InstanceFailoverGroupsClient) ListByLocation(ctx context.Context, r result.ifglr, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsClient", "ListByLocation", resp, "Failure responding to request") + return } if result.ifglr.hasNextLink() && result.ifglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -545,6 +547,7 @@ func (client InstanceFailoverGroupsClient) listByLocationNextResults(ctx context result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsClient", "listByLocationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-10-01-preview/sql/manageddatabasevulnerabilityassessmentrulebaselines.go b/services/preview/sql/mgmt/2017-10-01-preview/sql/manageddatabasevulnerabilityassessmentrulebaselines.go index c6e4a8530c60..ba31a31b338b 100644 --- a/services/preview/sql/mgmt/2017-10-01-preview/sql/manageddatabasevulnerabilityassessmentrulebaselines.go +++ b/services/preview/sql/mgmt/2017-10-01-preview/sql/manageddatabasevulnerabilityassessmentrulebaselines.go @@ -90,6 +90,7 @@ func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) Delete(c result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient", "Delete", resp, "Failure responding to request") + return } return @@ -259,6 +261,7 @@ func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) Get(ctx result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2017-10-01-preview/sql/manageddatabasevulnerabilityassessments.go b/services/preview/sql/mgmt/2017-10-01-preview/sql/manageddatabasevulnerabilityassessments.go index f5a172f3d1dc..f741ec237462 100644 --- a/services/preview/sql/mgmt/2017-10-01-preview/sql/manageddatabasevulnerabilityassessments.go +++ b/services/preview/sql/mgmt/2017-10-01-preview/sql/manageddatabasevulnerabilityassessments.go @@ -79,6 +79,7 @@ func (client ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdate(ctx c result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client ManagedDatabaseVulnerabilityAssessmentsClient) Delete(ctx context.C result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client ManagedDatabaseVulnerabilityAssessmentsClient) Get(ctx context.Cont result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +321,7 @@ func (client ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabase(ctx c result.dvalr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentsClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.dvalr.hasNextLink() && result.dvalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -383,6 +387,7 @@ func (client ManagedDatabaseVulnerabilityAssessmentsClient) listByDatabaseNextRe result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentsClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-10-01-preview/sql/manageddatabasevulnerabilityassessmentscans.go b/services/preview/sql/mgmt/2017-10-01-preview/sql/manageddatabasevulnerabilityassessmentscans.go index c0933faf3fc0..707a9a39e556 100644 --- a/services/preview/sql/mgmt/2017-10-01-preview/sql/manageddatabasevulnerabilityassessmentscans.go +++ b/services/preview/sql/mgmt/2017-10-01-preview/sql/manageddatabasevulnerabilityassessmentscans.go @@ -79,6 +79,7 @@ func (client ManagedDatabaseVulnerabilityAssessmentScansClient) Export(ctx conte result, err = client.ExportResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentScansClient", "Export", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client ManagedDatabaseVulnerabilityAssessmentScansClient) Get(ctx context. result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentScansClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +323,7 @@ func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabase(c result.vasrlr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentScansClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.vasrlr.hasNextLink() && result.vasrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +390,7 @@ func (client ManagedDatabaseVulnerabilityAssessmentScansClient) listByDatabaseNe result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentScansClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-10-01-preview/sql/managedinstanceencryptionprotectors.go b/services/preview/sql/mgmt/2017-10-01-preview/sql/managedinstanceencryptionprotectors.go index 3857843530fd..8e8a1fe338d1 100644 --- a/services/preview/sql/mgmt/2017-10-01-preview/sql/managedinstanceencryptionprotectors.go +++ b/services/preview/sql/mgmt/2017-10-01-preview/sql/managedinstanceencryptionprotectors.go @@ -158,6 +158,7 @@ func (client ManagedInstanceEncryptionProtectorsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceEncryptionProtectorsClient", "Get", resp, "Failure responding to request") + return } return @@ -236,6 +237,7 @@ func (client ManagedInstanceEncryptionProtectorsClient) ListByInstance(ctx conte result.mieplr, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceEncryptionProtectorsClient", "ListByInstance", resp, "Failure responding to request") + return } if result.mieplr.hasNextLink() && result.mieplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -300,6 +302,7 @@ func (client ManagedInstanceEncryptionProtectorsClient) listByInstanceNextResult result, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceEncryptionProtectorsClient", "listByInstanceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-10-01-preview/sql/managedinstancekeys.go b/services/preview/sql/mgmt/2017-10-01-preview/sql/managedinstancekeys.go index 8ad51c9af4b9..370e388ffe7c 100644 --- a/services/preview/sql/mgmt/2017-10-01-preview/sql/managedinstancekeys.go +++ b/services/preview/sql/mgmt/2017-10-01-preview/sql/managedinstancekeys.go @@ -236,6 +236,7 @@ func (client ManagedInstanceKeysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client ManagedInstanceKeysClient) ListByInstance(ctx context.Context, reso result.miklr, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceKeysClient", "ListByInstance", resp, "Failure responding to request") + return } if result.miklr.hasNextLink() && result.miklr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client ManagedInstanceKeysClient) listByInstanceNextResults(ctx context.Co result, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceKeysClient", "listByInstanceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2017-10-01-preview/sql/recoverablemanageddatabases.go b/services/preview/sql/mgmt/2017-10-01-preview/sql/recoverablemanageddatabases.go index 4a308d5ab92d..a5d1115b56aa 100644 --- a/services/preview/sql/mgmt/2017-10-01-preview/sql/recoverablemanageddatabases.go +++ b/services/preview/sql/mgmt/2017-10-01-preview/sql/recoverablemanageddatabases.go @@ -76,6 +76,7 @@ func (client RecoverableManagedDatabasesClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RecoverableManagedDatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client RecoverableManagedDatabasesClient) ListByInstance(ctx context.Conte result.rmdlr, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RecoverableManagedDatabasesClient", "ListByInstance", resp, "Failure responding to request") + return } if result.rmdlr.hasNextLink() && result.rmdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -218,6 +220,7 @@ func (client RecoverableManagedDatabasesClient) listByInstanceNextResults(ctx co result, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RecoverableManagedDatabasesClient", "listByInstanceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2018-06-01-preview/sql/databasesecurityalertpolicies.go b/services/preview/sql/mgmt/2018-06-01-preview/sql/databasesecurityalertpolicies.go index 14a2cdec0c21..80e5806d8adf 100644 --- a/services/preview/sql/mgmt/2018-06-01-preview/sql/databasesecurityalertpolicies.go +++ b/services/preview/sql/mgmt/2018-06-01-preview/sql/databasesecurityalertpolicies.go @@ -78,6 +78,7 @@ func (client DatabaseSecurityAlertPoliciesClient) CreateOrUpdate(ctx context.Con result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseSecurityAlertPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client DatabaseSecurityAlertPoliciesClient) Get(ctx context.Context, resou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseSecurityAlertPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client DatabaseSecurityAlertPoliciesClient) ListByDatabase(ctx context.Con result.dsalr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseSecurityAlertPoliciesClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.dsalr.hasNextLink() && result.dsalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -304,6 +307,7 @@ func (client DatabaseSecurityAlertPoliciesClient) listByDatabaseNextResults(ctx result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseSecurityAlertPoliciesClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2018-06-01-preview/sql/instancepools.go b/services/preview/sql/mgmt/2018-06-01-preview/sql/instancepools.go index 52ac9b71c151..bf53a2c0b034 100644 --- a/services/preview/sql/mgmt/2018-06-01-preview/sql/instancepools.go +++ b/services/preview/sql/mgmt/2018-06-01-preview/sql/instancepools.go @@ -241,6 +241,7 @@ func (client InstancePoolsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client InstancePoolsClient) List(ctx context.Context) (result InstancePool result.iplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "List", resp, "Failure responding to request") + return } if result.iplr.hasNextLink() && result.iplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -376,6 +378,7 @@ func (client InstancePoolsClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -428,6 +431,7 @@ func (client InstancePoolsClient) ListByResourceGroup(ctx context.Context, resou result.iplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.iplr.hasNextLink() && result.iplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -491,6 +495,7 @@ func (client InstancePoolsClient) listByResourceGroupNextResults(ctx context.Con result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2018-06-01-preview/sql/longtermretentionmanagedinstancebackups.go b/services/preview/sql/mgmt/2018-06-01-preview/sql/longtermretentionmanagedinstancebackups.go index ca7ba4892950..deb5de365aba 100644 --- a/services/preview/sql/mgmt/2018-06-01-preview/sql/longtermretentionmanagedinstancebackups.go +++ b/services/preview/sql/mgmt/2018-06-01-preview/sql/longtermretentionmanagedinstancebackups.go @@ -237,6 +237,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) Get(ctx context.Cont result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) GetByResourceGroup(c result, err = client.GetByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "GetByResourceGroup", resp, "Failure responding to request") + return } return @@ -400,6 +402,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) ListByDatabase(ctx c result.miltrblr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.miltrblr.hasNextLink() && result.miltrblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -471,6 +474,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) listByDatabaseNextRe result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } @@ -525,6 +529,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) ListByInstance(ctx c result.miltrblr, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "ListByInstance", resp, "Failure responding to request") + return } if result.miltrblr.hasNextLink() && result.miltrblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -595,6 +600,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) listByInstanceNextRe result, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "listByInstanceNextResults", resp, "Failure responding to next results request") + return } return } @@ -648,6 +654,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) ListByLocation(ctx c result.miltrblr, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "ListByLocation", resp, "Failure responding to request") + return } if result.miltrblr.hasNextLink() && result.miltrblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -717,6 +724,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) listByLocationNextRe result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "listByLocationNextResults", resp, "Failure responding to next results request") + return } return } @@ -774,6 +782,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupD result.miltrblr, err = client.ListByResourceGroupDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "ListByResourceGroupDatabase", resp, "Failure responding to request") + return } if result.miltrblr.hasNextLink() && result.miltrblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -846,6 +855,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) listByResourceGroupD result, err = client.ListByResourceGroupDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "listByResourceGroupDatabaseNextResults", resp, "Failure responding to next results request") + return } return } @@ -902,6 +912,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupI result.miltrblr, err = client.ListByResourceGroupInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "ListByResourceGroupInstance", resp, "Failure responding to request") + return } if result.miltrblr.hasNextLink() && result.miltrblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -973,6 +984,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) listByResourceGroupI result, err = client.ListByResourceGroupInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "listByResourceGroupInstanceNextResults", resp, "Failure responding to next results request") + return } return } @@ -1028,6 +1040,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupL result.miltrblr, err = client.ListByResourceGroupLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "ListByResourceGroupLocation", resp, "Failure responding to request") + return } if result.miltrblr.hasNextLink() && result.miltrblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1098,6 +1111,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) listByResourceGroupL result, err = client.ListByResourceGroupLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "listByResourceGroupLocationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2018-06-01-preview/sql/manageddatabaserestoredetails.go b/services/preview/sql/mgmt/2018-06-01-preview/sql/manageddatabaserestoredetails.go index d67fe5dc038b..fb622f406369 100644 --- a/services/preview/sql/mgmt/2018-06-01-preview/sql/manageddatabaserestoredetails.go +++ b/services/preview/sql/mgmt/2018-06-01-preview/sql/manageddatabaserestoredetails.go @@ -77,6 +77,7 @@ func (client ManagedDatabaseRestoreDetailsClient) Get(ctx context.Context, resou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseRestoreDetailsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/2018-06-01-preview/sql/manageddatabases.go b/services/preview/sql/mgmt/2018-06-01-preview/sql/manageddatabases.go index f2436e3c7275..53f2e5e8ea55 100644 --- a/services/preview/sql/mgmt/2018-06-01-preview/sql/manageddatabases.go +++ b/services/preview/sql/mgmt/2018-06-01-preview/sql/manageddatabases.go @@ -322,6 +322,7 @@ func (client ManagedDatabasesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -400,6 +401,7 @@ func (client ManagedDatabasesClient) ListByInstance(ctx context.Context, resourc result.mdlr, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "ListByInstance", resp, "Failure responding to request") + return } if result.mdlr.hasNextLink() && result.mdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -464,6 +466,7 @@ func (client ManagedDatabasesClient) listByInstanceNextResults(ctx context.Conte result, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "listByInstanceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2018-06-01-preview/sql/manageddatabasesensitivitylabels.go b/services/preview/sql/mgmt/2018-06-01-preview/sql/manageddatabasesensitivitylabels.go index 4d36a00b5597..0db3418db7ee 100644 --- a/services/preview/sql/mgmt/2018-06-01-preview/sql/manageddatabasesensitivitylabels.go +++ b/services/preview/sql/mgmt/2018-06-01-preview/sql/manageddatabasesensitivitylabels.go @@ -81,6 +81,7 @@ func (client ManagedDatabaseSensitivityLabelsClient) CreateOrUpdate(ctx context. result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client ManagedDatabaseSensitivityLabelsClient) Delete(ctx context.Context, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "Delete", resp, "Failure responding to request") + return } return @@ -252,6 +254,7 @@ func (client ManagedDatabaseSensitivityLabelsClient) DisableRecommendation(ctx c result, err = client.DisableRecommendationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "DisableRecommendation", resp, "Failure responding to request") + return } return @@ -337,6 +340,7 @@ func (client ManagedDatabaseSensitivityLabelsClient) EnableRecommendation(ctx co result, err = client.EnableRecommendationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "EnableRecommendation", resp, "Failure responding to request") + return } return @@ -422,6 +426,7 @@ func (client ManagedDatabaseSensitivityLabelsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "Get", resp, "Failure responding to request") + return } return @@ -506,6 +511,7 @@ func (client ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabase(ctx c result.sllr, err = client.ListCurrentByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "ListCurrentByDatabase", resp, "Failure responding to request") + return } if result.sllr.hasNextLink() && result.sllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -574,6 +580,7 @@ func (client ManagedDatabaseSensitivityLabelsClient) listCurrentByDatabaseNextRe result, err = client.ListCurrentByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "listCurrentByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +637,7 @@ func (client ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabase(c result.sllr, err = client.ListRecommendedByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "ListRecommendedByDatabase", resp, "Failure responding to request") + return } if result.sllr.hasNextLink() && result.sllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -704,6 +712,7 @@ func (client ManagedDatabaseSensitivityLabelsClient) listRecommendedByDatabaseNe result, err = client.ListRecommendedByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "listRecommendedByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2018-06-01-preview/sql/managedinstancelongtermretentionpolicies.go b/services/preview/sql/mgmt/2018-06-01-preview/sql/managedinstancelongtermretentionpolicies.go index 4dcabcf2c6a6..f9640593657f 100644 --- a/services/preview/sql/mgmt/2018-06-01-preview/sql/managedinstancelongtermretentionpolicies.go +++ b/services/preview/sql/mgmt/2018-06-01-preview/sql/managedinstancelongtermretentionpolicies.go @@ -160,6 +160,7 @@ func (client ManagedInstanceLongTermRetentionPoliciesClient) Get(ctx context.Con result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceLongTermRetentionPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -240,6 +241,7 @@ func (client ManagedInstanceLongTermRetentionPoliciesClient) ListByDatabase(ctx result.miltrplr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceLongTermRetentionPoliciesClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.miltrplr.hasNextLink() && result.miltrplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -305,6 +307,7 @@ func (client ManagedInstanceLongTermRetentionPoliciesClient) listByDatabaseNextR result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceLongTermRetentionPoliciesClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2018-06-01-preview/sql/managedinstanceoperations.go b/services/preview/sql/mgmt/2018-06-01-preview/sql/managedinstanceoperations.go index cb9d8b639c20..72ca6e85039b 100644 --- a/services/preview/sql/mgmt/2018-06-01-preview/sql/managedinstanceoperations.go +++ b/services/preview/sql/mgmt/2018-06-01-preview/sql/managedinstanceoperations.go @@ -77,6 +77,7 @@ func (client ManagedInstanceOperationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceOperationsClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client ManagedInstanceOperationsClient) ListByManagedInstance(ctx context. result.miolr, err = client.ListByManagedInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceOperationsClient", "ListByManagedInstance", resp, "Failure responding to request") + return } if result.miolr.hasNextLink() && result.miolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -219,6 +221,7 @@ func (client ManagedInstanceOperationsClient) listByManagedInstanceNextResults(c result, err = client.ListByManagedInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceOperationsClient", "listByManagedInstanceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2018-06-01-preview/sql/managedinstances.go b/services/preview/sql/mgmt/2018-06-01-preview/sql/managedinstances.go index 15c55b2d4df0..0a55226d0436 100644 --- a/services/preview/sql/mgmt/2018-06-01-preview/sql/managedinstances.go +++ b/services/preview/sql/mgmt/2018-06-01-preview/sql/managedinstances.go @@ -238,6 +238,7 @@ func (client ManagedInstancesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client ManagedInstancesClient) List(ctx context.Context) (result ManagedIn result.milr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "List", resp, "Failure responding to request") + return } if result.milr.hasNextLink() && result.milr.IsEmpty() { err = result.NextWithContext(ctx) @@ -373,6 +375,7 @@ func (client ManagedInstancesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -426,6 +429,7 @@ func (client ManagedInstancesClient) ListByInstancePool(ctx context.Context, res result.milr, err = client.ListByInstancePoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "ListByInstancePool", resp, "Failure responding to request") + return } if result.milr.hasNextLink() && result.milr.IsEmpty() { err = result.NextWithContext(ctx) @@ -490,6 +494,7 @@ func (client ManagedInstancesClient) listByInstancePoolNextResults(ctx context.C result, err = client.ListByInstancePoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "listByInstancePoolNextResults", resp, "Failure responding to next results request") + return } return } @@ -542,6 +547,7 @@ func (client ManagedInstancesClient) ListByResourceGroup(ctx context.Context, re result.milr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.milr.hasNextLink() && result.milr.IsEmpty() { err = result.NextWithContext(ctx) @@ -605,6 +611,7 @@ func (client ManagedInstancesClient) listByResourceGroupNextResults(ctx context. result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2018-06-01-preview/sql/managedinstancevulnerabilityassessments.go b/services/preview/sql/mgmt/2018-06-01-preview/sql/managedinstancevulnerabilityassessments.go index 43776d0e4aaf..beb22f75e2f9 100644 --- a/services/preview/sql/mgmt/2018-06-01-preview/sql/managedinstancevulnerabilityassessments.go +++ b/services/preview/sql/mgmt/2018-06-01-preview/sql/managedinstancevulnerabilityassessments.go @@ -86,6 +86,7 @@ func (client ManagedInstanceVulnerabilityAssessmentsClient) CreateOrUpdate(ctx c result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceVulnerabilityAssessmentsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client ManagedInstanceVulnerabilityAssessmentsClient) Delete(ctx context.C result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceVulnerabilityAssessmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -241,6 +243,7 @@ func (client ManagedInstanceVulnerabilityAssessmentsClient) Get(ctx context.Cont result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceVulnerabilityAssessmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +322,7 @@ func (client ManagedInstanceVulnerabilityAssessmentsClient) ListByInstance(ctx c result.mivalr, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceVulnerabilityAssessmentsClient", "ListByInstance", resp, "Failure responding to request") + return } if result.mivalr.hasNextLink() && result.mivalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -383,6 +387,7 @@ func (client ManagedInstanceVulnerabilityAssessmentsClient) listByInstanceNextRe result, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceVulnerabilityAssessmentsClient", "listByInstanceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2018-06-01-preview/sql/privateendpointconnections.go b/services/preview/sql/mgmt/2018-06-01-preview/sql/privateendpointconnections.go index 4d3871c4295b..5fe799cf9fcc 100644 --- a/services/preview/sql/mgmt/2018-06-01-preview/sql/privateendpointconnections.go +++ b/services/preview/sql/mgmt/2018-06-01-preview/sql/privateendpointconnections.go @@ -244,6 +244,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client PrivateEndpointConnectionsClient) ListByServer(ctx context.Context, result.peclr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.PrivateEndpointConnectionsClient", "ListByServer", resp, "Failure responding to request") + return } if result.peclr.hasNextLink() && result.peclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client PrivateEndpointConnectionsClient) listByServerNextResults(ctx conte result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.PrivateEndpointConnectionsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2018-06-01-preview/sql/serverazureadadministrators.go b/services/preview/sql/mgmt/2018-06-01-preview/sql/serverazureadadministrators.go index 8c3ec2b3a723..b1e9f08664be 100644 --- a/services/preview/sql/mgmt/2018-06-01-preview/sql/serverazureadadministrators.go +++ b/services/preview/sql/mgmt/2018-06-01-preview/sql/serverazureadadministrators.go @@ -244,6 +244,7 @@ func (client ServerAzureADAdministratorsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerAzureADAdministratorsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client ServerAzureADAdministratorsClient) ListByServer(ctx context.Context result.alr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerAzureADAdministratorsClient", "ListByServer", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client ServerAzureADAdministratorsClient) listByServerNextResults(ctx cont result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerAzureADAdministratorsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2018-06-01-preview/sql/servervulnerabilityassessments.go b/services/preview/sql/mgmt/2018-06-01-preview/sql/servervulnerabilityassessments.go index 2867b348d70f..11aa2cb2a179 100644 --- a/services/preview/sql/mgmt/2018-06-01-preview/sql/servervulnerabilityassessments.go +++ b/services/preview/sql/mgmt/2018-06-01-preview/sql/servervulnerabilityassessments.go @@ -85,6 +85,7 @@ func (client ServerVulnerabilityAssessmentsClient) CreateOrUpdate(ctx context.Co result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerVulnerabilityAssessmentsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client ServerVulnerabilityAssessmentsClient) Delete(ctx context.Context, r result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerVulnerabilityAssessmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client ServerVulnerabilityAssessmentsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerVulnerabilityAssessmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +321,7 @@ func (client ServerVulnerabilityAssessmentsClient) ListByServer(ctx context.Cont result.svalr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerVulnerabilityAssessmentsClient", "ListByServer", resp, "Failure responding to request") + return } if result.svalr.hasNextLink() && result.svalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +386,7 @@ func (client ServerVulnerabilityAssessmentsClient) listByServerNextResults(ctx c result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerVulnerabilityAssessmentsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/2018-06-01-preview/sql/usages.go b/services/preview/sql/mgmt/2018-06-01-preview/sql/usages.go index c5461fa49d3f..5ae189c16ba4 100644 --- a/services/preview/sql/mgmt/2018-06-01-preview/sql/usages.go +++ b/services/preview/sql/mgmt/2018-06-01-preview/sql/usages.go @@ -77,6 +77,7 @@ func (client UsagesClient) ListByInstancePool(ctx context.Context, resourceGroup result.ulr, err = client.ListByInstancePoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.UsagesClient", "ListByInstancePool", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -144,6 +145,7 @@ func (client UsagesClient) listByInstancePoolNextResults(ctx context.Context, la result, err = client.ListByInstancePoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.UsagesClient", "listByInstancePoolNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/backuplongtermretentionpolicies.go b/services/preview/sql/mgmt/v3.0/sql/backuplongtermretentionpolicies.go index 7773814477a9..68c9bdc1c11f 100644 --- a/services/preview/sql/mgmt/v3.0/sql/backuplongtermretentionpolicies.go +++ b/services/preview/sql/mgmt/v3.0/sql/backuplongtermretentionpolicies.go @@ -159,6 +159,7 @@ func (client BackupLongTermRetentionPoliciesClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.BackupLongTermRetentionPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -238,6 +239,7 @@ func (client BackupLongTermRetentionPoliciesClient) ListByDatabase(ctx context.C result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.BackupLongTermRetentionPoliciesClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/backupshorttermretentionpolicies.go b/services/preview/sql/mgmt/v3.0/sql/backupshorttermretentionpolicies.go index c607fa5a75a6..1ae431441a53 100644 --- a/services/preview/sql/mgmt/v3.0/sql/backupshorttermretentionpolicies.go +++ b/services/preview/sql/mgmt/v3.0/sql/backupshorttermretentionpolicies.go @@ -159,6 +159,7 @@ func (client BackupShortTermRetentionPoliciesClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.BackupShortTermRetentionPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -239,6 +240,7 @@ func (client BackupShortTermRetentionPoliciesClient) ListByDatabase(ctx context. result.bstrplr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.BackupShortTermRetentionPoliciesClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.bstrplr.hasNextLink() && result.bstrplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -304,6 +306,7 @@ func (client BackupShortTermRetentionPoliciesClient) listByDatabaseNextResults(c result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.BackupShortTermRetentionPoliciesClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/capabilities.go b/services/preview/sql/mgmt/v3.0/sql/capabilities.go index 7e7fa384a75b..d9ed79cfd0aa 100644 --- a/services/preview/sql/mgmt/v3.0/sql/capabilities.go +++ b/services/preview/sql/mgmt/v3.0/sql/capabilities.go @@ -74,6 +74,7 @@ func (client CapabilitiesClient) ListByLocation(ctx context.Context, locationNam result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.CapabilitiesClient", "ListByLocation", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/databaseautomatictuning.go b/services/preview/sql/mgmt/v3.0/sql/databaseautomatictuning.go index 8abcf1d63d05..0d221348745f 100644 --- a/services/preview/sql/mgmt/v3.0/sql/databaseautomatictuning.go +++ b/services/preview/sql/mgmt/v3.0/sql/databaseautomatictuning.go @@ -77,6 +77,7 @@ func (client DatabaseAutomaticTuningClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseAutomaticTuningClient", "Get", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client DatabaseAutomaticTuningClient) Update(ctx context.Context, resource result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseAutomaticTuningClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/databaseblobauditingpolicies.go b/services/preview/sql/mgmt/v3.0/sql/databaseblobauditingpolicies.go index 71763ac7ae9a..3901af999afe 100644 --- a/services/preview/sql/mgmt/v3.0/sql/databaseblobauditingpolicies.go +++ b/services/preview/sql/mgmt/v3.0/sql/databaseblobauditingpolicies.go @@ -78,6 +78,7 @@ func (client DatabaseBlobAuditingPoliciesClient) CreateOrUpdate(ctx context.Cont result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseBlobAuditingPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client DatabaseBlobAuditingPoliciesClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseBlobAuditingPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client DatabaseBlobAuditingPoliciesClient) ListByDatabase(ctx context.Cont result.dbaplr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseBlobAuditingPoliciesClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.dbaplr.hasNextLink() && result.dbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -305,6 +308,7 @@ func (client DatabaseBlobAuditingPoliciesClient) listByDatabaseNextResults(ctx c result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseBlobAuditingPoliciesClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/databaseoperations.go b/services/preview/sql/mgmt/v3.0/sql/databaseoperations.go index 9978b688a171..a38a1c206e27 100644 --- a/services/preview/sql/mgmt/v3.0/sql/databaseoperations.go +++ b/services/preview/sql/mgmt/v3.0/sql/databaseoperations.go @@ -79,6 +79,7 @@ func (client DatabaseOperationsClient) Cancel(ctx context.Context, resourceGroup result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseOperationsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client DatabaseOperationsClient) ListByDatabase(ctx context.Context, resou result.dolr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseOperationsClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -223,6 +225,7 @@ func (client DatabaseOperationsClient) listByDatabaseNextResults(ctx context.Con result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseOperationsClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/databases.go b/services/preview/sql/mgmt/v3.0/sql/databases.go index 6dc4d40d5814..ae5cb73f7d42 100644 --- a/services/preview/sql/mgmt/v3.0/sql/databases.go +++ b/services/preview/sql/mgmt/v3.0/sql/databases.go @@ -419,6 +419,7 @@ func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -498,6 +499,7 @@ func (client DatabasesClient) ListByElasticPool(ctx context.Context, resourceGro result.dlr, err = client.ListByElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListByElasticPool", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -563,6 +565,7 @@ func (client DatabasesClient) listByElasticPoolNextResults(ctx context.Context, result, err = client.ListByElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "listByElasticPoolNextResults", resp, "Failure responding to next results request") + return } return } @@ -616,6 +619,7 @@ func (client DatabasesClient) ListByServer(ctx context.Context, resourceGroupNam result.dlr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListByServer", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -680,6 +684,7 @@ func (client DatabasesClient) listByServerNextResults(ctx context.Context, lastR result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } @@ -733,6 +738,7 @@ func (client DatabasesClient) ListInaccessibleByServer(ctx context.Context, reso result.dlr, err = client.ListInaccessibleByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListInaccessibleByServer", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -797,6 +803,7 @@ func (client DatabasesClient) listInaccessibleByServerNextResults(ctx context.Co result, err = client.ListInaccessibleByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "listInaccessibleByServerNextResults", resp, "Failure responding to next results request") + return } return } @@ -850,6 +857,7 @@ func (client DatabasesClient) ListMetricDefinitions(ctx context.Context, resourc result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -929,6 +937,7 @@ func (client DatabasesClient) ListMetrics(ctx context.Context, resourceGroupName result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -1093,6 +1102,7 @@ func (client DatabasesClient) Rename(ctx context.Context, resourceGroupName stri result, err = client.RenameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Rename", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/databasethreatdetectionpolicies.go b/services/preview/sql/mgmt/v3.0/sql/databasethreatdetectionpolicies.go index 33f6aafdecdf..eb9efc3b0f7c 100644 --- a/services/preview/sql/mgmt/v3.0/sql/databasethreatdetectionpolicies.go +++ b/services/preview/sql/mgmt/v3.0/sql/databasethreatdetectionpolicies.go @@ -78,6 +78,7 @@ func (client DatabaseThreatDetectionPoliciesClient) CreateOrUpdate(ctx context.C result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseThreatDetectionPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client DatabaseThreatDetectionPoliciesClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseThreatDetectionPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/databaseusages.go b/services/preview/sql/mgmt/v3.0/sql/databaseusages.go index 821f798cc4f8..0f0ba80f8697 100644 --- a/services/preview/sql/mgmt/v3.0/sql/databaseusages.go +++ b/services/preview/sql/mgmt/v3.0/sql/databaseusages.go @@ -76,6 +76,7 @@ func (client DatabaseUsagesClient) ListByDatabase(ctx context.Context, resourceG result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseUsagesClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/databasevulnerabilityassessmentrulebaselines.go b/services/preview/sql/mgmt/v3.0/sql/databasevulnerabilityassessmentrulebaselines.go index 332d33b4825c..a1418c779965 100644 --- a/services/preview/sql/mgmt/v3.0/sql/databasevulnerabilityassessmentrulebaselines.go +++ b/services/preview/sql/mgmt/v3.0/sql/databasevulnerabilityassessmentrulebaselines.go @@ -90,6 +90,7 @@ func (client DatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdate( result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentRuleBaselinesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client DatabaseVulnerabilityAssessmentRuleBaselinesClient) Delete(ctx cont result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentRuleBaselinesClient", "Delete", resp, "Failure responding to request") + return } return @@ -259,6 +261,7 @@ func (client DatabaseVulnerabilityAssessmentRuleBaselinesClient) Get(ctx context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentRuleBaselinesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/databasevulnerabilityassessments.go b/services/preview/sql/mgmt/v3.0/sql/databasevulnerabilityassessments.go index 254652aa4650..b0e5359afcdb 100644 --- a/services/preview/sql/mgmt/v3.0/sql/databasevulnerabilityassessments.go +++ b/services/preview/sql/mgmt/v3.0/sql/databasevulnerabilityassessments.go @@ -78,6 +78,7 @@ func (client DatabaseVulnerabilityAssessmentsClient) CreateOrUpdate(ctx context. result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client DatabaseVulnerabilityAssessmentsClient) Delete(ctx context.Context, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client DatabaseVulnerabilityAssessmentsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client DatabaseVulnerabilityAssessmentsClient) ListByDatabase(ctx context. result.dvalr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentsClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.dvalr.hasNextLink() && result.dvalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +386,7 @@ func (client DatabaseVulnerabilityAssessmentsClient) listByDatabaseNextResults(c result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentsClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/databasevulnerabilityassessmentscans.go b/services/preview/sql/mgmt/v3.0/sql/databasevulnerabilityassessmentscans.go index ccb07ec36054..97efc6d97b33 100644 --- a/services/preview/sql/mgmt/v3.0/sql/databasevulnerabilityassessmentscans.go +++ b/services/preview/sql/mgmt/v3.0/sql/databasevulnerabilityassessmentscans.go @@ -79,6 +79,7 @@ func (client DatabaseVulnerabilityAssessmentScansClient) Export(ctx context.Cont result, err = client.ExportResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentScansClient", "Export", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client DatabaseVulnerabilityAssessmentScansClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentScansClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +323,7 @@ func (client DatabaseVulnerabilityAssessmentScansClient) ListByDatabase(ctx cont result.vasrlr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentScansClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.vasrlr.hasNextLink() && result.vasrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +390,7 @@ func (client DatabaseVulnerabilityAssessmentScansClient) listByDatabaseNextResul result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentScansClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/datamaskingpolicies.go b/services/preview/sql/mgmt/v3.0/sql/datamaskingpolicies.go index 78e7267705dd..c2542135e170 100644 --- a/services/preview/sql/mgmt/v3.0/sql/datamaskingpolicies.go +++ b/services/preview/sql/mgmt/v3.0/sql/datamaskingpolicies.go @@ -78,6 +78,7 @@ func (client DataMaskingPoliciesClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DataMaskingPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client DataMaskingPoliciesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DataMaskingPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/datamaskingrules.go b/services/preview/sql/mgmt/v3.0/sql/datamaskingrules.go index 3b18e7b024a4..8a93097cd0cc 100644 --- a/services/preview/sql/mgmt/v3.0/sql/datamaskingrules.go +++ b/services/preview/sql/mgmt/v3.0/sql/datamaskingrules.go @@ -90,6 +90,7 @@ func (client DataMaskingRulesClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DataMaskingRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client DataMaskingRulesClient) ListByDatabase(ctx context.Context, resourc result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DataMaskingRulesClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/elasticpoolactivities.go b/services/preview/sql/mgmt/v3.0/sql/elasticpoolactivities.go index c268b9637370..4888ff3ef4a4 100644 --- a/services/preview/sql/mgmt/v3.0/sql/elasticpoolactivities.go +++ b/services/preview/sql/mgmt/v3.0/sql/elasticpoolactivities.go @@ -77,6 +77,7 @@ func (client ElasticPoolActivitiesClient) ListByElasticPool(ctx context.Context, result, err = client.ListByElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolActivitiesClient", "ListByElasticPool", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/elasticpooldatabaseactivities.go b/services/preview/sql/mgmt/v3.0/sql/elasticpooldatabaseactivities.go index 8ef06f4105c6..d08f393060ad 100644 --- a/services/preview/sql/mgmt/v3.0/sql/elasticpooldatabaseactivities.go +++ b/services/preview/sql/mgmt/v3.0/sql/elasticpooldatabaseactivities.go @@ -77,6 +77,7 @@ func (client ElasticPoolDatabaseActivitiesClient) ListByElasticPool(ctx context. result, err = client.ListByElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolDatabaseActivitiesClient", "ListByElasticPool", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/elasticpooloperations.go b/services/preview/sql/mgmt/v3.0/sql/elasticpooloperations.go index d927c5577ce9..6b16ecc6fc0d 100644 --- a/services/preview/sql/mgmt/v3.0/sql/elasticpooloperations.go +++ b/services/preview/sql/mgmt/v3.0/sql/elasticpooloperations.go @@ -78,6 +78,7 @@ func (client ElasticPoolOperationsClient) Cancel(ctx context.Context, resourceGr result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolOperationsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client ElasticPoolOperationsClient) ListByElasticPool(ctx context.Context, result.epolr, err = client.ListByElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolOperationsClient", "ListByElasticPool", resp, "Failure responding to request") + return } if result.epolr.hasNextLink() && result.epolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -221,6 +223,7 @@ func (client ElasticPoolOperationsClient) listByElasticPoolNextResults(ctx conte result, err = client.ListByElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolOperationsClient", "listByElasticPoolNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/elasticpools.go b/services/preview/sql/mgmt/v3.0/sql/elasticpools.go index 0b5bcb8a0cb7..7f241e3d1d01 100644 --- a/services/preview/sql/mgmt/v3.0/sql/elasticpools.go +++ b/services/preview/sql/mgmt/v3.0/sql/elasticpools.go @@ -320,6 +320,7 @@ func (client ElasticPoolsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -399,6 +400,7 @@ func (client ElasticPoolsClient) ListByServer(ctx context.Context, resourceGroup result.eplr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "ListByServer", resp, "Failure responding to request") + return } if result.eplr.hasNextLink() && result.eplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +468,7 @@ func (client ElasticPoolsClient) listByServerNextResults(ctx context.Context, la result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } @@ -519,6 +522,7 @@ func (client ElasticPoolsClient) ListMetricDefinitions(ctx context.Context, reso result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -598,6 +602,7 @@ func (client ElasticPoolsClient) ListMetrics(ctx context.Context, resourceGroupN result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/encryptionprotectors.go b/services/preview/sql/mgmt/v3.0/sql/encryptionprotectors.go index bfd15e5ba2c3..d5b8e45975dc 100644 --- a/services/preview/sql/mgmt/v3.0/sql/encryptionprotectors.go +++ b/services/preview/sql/mgmt/v3.0/sql/encryptionprotectors.go @@ -158,6 +158,7 @@ func (client EncryptionProtectorsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.EncryptionProtectorsClient", "Get", resp, "Failure responding to request") + return } return @@ -236,6 +237,7 @@ func (client EncryptionProtectorsClient) ListByServer(ctx context.Context, resou result.eplr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.EncryptionProtectorsClient", "ListByServer", resp, "Failure responding to request") + return } if result.eplr.hasNextLink() && result.eplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -300,6 +302,7 @@ func (client EncryptionProtectorsClient) listByServerNextResults(ctx context.Con result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.EncryptionProtectorsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/extendeddatabaseblobauditingpolicies.go b/services/preview/sql/mgmt/v3.0/sql/extendeddatabaseblobauditingpolicies.go index 46dbeda6ed96..bed4a4650e96 100644 --- a/services/preview/sql/mgmt/v3.0/sql/extendeddatabaseblobauditingpolicies.go +++ b/services/preview/sql/mgmt/v3.0/sql/extendeddatabaseblobauditingpolicies.go @@ -79,6 +79,7 @@ func (client ExtendedDatabaseBlobAuditingPoliciesClient) CreateOrUpdate(ctx cont result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ExtendedDatabaseBlobAuditingPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client ExtendedDatabaseBlobAuditingPoliciesClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ExtendedDatabaseBlobAuditingPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client ExtendedDatabaseBlobAuditingPoliciesClient) ListByDatabase(ctx cont result.edbaplr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ExtendedDatabaseBlobAuditingPoliciesClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.edbaplr.hasNextLink() && result.edbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -305,6 +308,7 @@ func (client ExtendedDatabaseBlobAuditingPoliciesClient) listByDatabaseNextResul result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ExtendedDatabaseBlobAuditingPoliciesClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/extendedserverblobauditingpolicies.go b/services/preview/sql/mgmt/v3.0/sql/extendedserverblobauditingpolicies.go index cc8dc384ffd5..afcbfd182d31 100644 --- a/services/preview/sql/mgmt/v3.0/sql/extendedserverblobauditingpolicies.go +++ b/services/preview/sql/mgmt/v3.0/sql/extendedserverblobauditingpolicies.go @@ -157,6 +157,7 @@ func (client ExtendedServerBlobAuditingPoliciesClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ExtendedServerBlobAuditingPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -235,6 +236,7 @@ func (client ExtendedServerBlobAuditingPoliciesClient) ListByServer(ctx context. result.esbaplr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ExtendedServerBlobAuditingPoliciesClient", "ListByServer", resp, "Failure responding to request") + return } if result.esbaplr.hasNextLink() && result.esbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -299,6 +301,7 @@ func (client ExtendedServerBlobAuditingPoliciesClient) listByServerNextResults(c result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ExtendedServerBlobAuditingPoliciesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/failovergroups.go b/services/preview/sql/mgmt/v3.0/sql/failovergroups.go index b8cabfa4b156..a3f015f0dc25 100644 --- a/services/preview/sql/mgmt/v3.0/sql/failovergroups.go +++ b/services/preview/sql/mgmt/v3.0/sql/failovergroups.go @@ -402,6 +402,7 @@ func (client FailoverGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -480,6 +481,7 @@ func (client FailoverGroupsClient) ListByServer(ctx context.Context, resourceGro result.fglr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "ListByServer", resp, "Failure responding to request") + return } if result.fglr.hasNextLink() && result.fglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -544,6 +546,7 @@ func (client FailoverGroupsClient) listByServerNextResults(ctx context.Context, result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/firewallrules.go b/services/preview/sql/mgmt/v3.0/sql/firewallrules.go index abe6eb6e3678..533867a68840 100644 --- a/services/preview/sql/mgmt/v3.0/sql/firewallrules.go +++ b/services/preview/sql/mgmt/v3.0/sql/firewallrules.go @@ -87,6 +87,7 @@ func (client FirewallRulesClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.FirewallRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client FirewallRulesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.FirewallRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.FirewallRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +326,7 @@ func (client FirewallRulesClient) ListByServer(ctx context.Context, resourceGrou result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.FirewallRulesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/geobackuppolicies.go b/services/preview/sql/mgmt/v3.0/sql/geobackuppolicies.go index e9abc2b3fc93..0975f0aa33d5 100644 --- a/services/preview/sql/mgmt/v3.0/sql/geobackuppolicies.go +++ b/services/preview/sql/mgmt/v3.0/sql/geobackuppolicies.go @@ -85,6 +85,7 @@ func (client GeoBackupPoliciesClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.GeoBackupPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client GeoBackupPoliciesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.GeoBackupPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -247,6 +249,7 @@ func (client GeoBackupPoliciesClient) ListByDatabase(ctx context.Context, resour result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.GeoBackupPoliciesClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/instancefailovergroups.go b/services/preview/sql/mgmt/v3.0/sql/instancefailovergroups.go index daad6990e627..68fd820092c3 100644 --- a/services/preview/sql/mgmt/v3.0/sql/instancefailovergroups.go +++ b/services/preview/sql/mgmt/v3.0/sql/instancefailovergroups.go @@ -403,6 +403,7 @@ func (client InstanceFailoverGroupsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -481,6 +482,7 @@ func (client InstanceFailoverGroupsClient) ListByLocation(ctx context.Context, r result.ifglr, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsClient", "ListByLocation", resp, "Failure responding to request") + return } if result.ifglr.hasNextLink() && result.ifglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -545,6 +547,7 @@ func (client InstanceFailoverGroupsClient) listByLocationNextResults(ctx context result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsClient", "listByLocationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/instancepools.go b/services/preview/sql/mgmt/v3.0/sql/instancepools.go index 52ac9b71c151..bf53a2c0b034 100644 --- a/services/preview/sql/mgmt/v3.0/sql/instancepools.go +++ b/services/preview/sql/mgmt/v3.0/sql/instancepools.go @@ -241,6 +241,7 @@ func (client InstancePoolsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client InstancePoolsClient) List(ctx context.Context) (result InstancePool result.iplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "List", resp, "Failure responding to request") + return } if result.iplr.hasNextLink() && result.iplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -376,6 +378,7 @@ func (client InstancePoolsClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -428,6 +431,7 @@ func (client InstancePoolsClient) ListByResourceGroup(ctx context.Context, resou result.iplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.iplr.hasNextLink() && result.iplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -491,6 +495,7 @@ func (client InstancePoolsClient) listByResourceGroupNextResults(ctx context.Con result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/jobagents.go b/services/preview/sql/mgmt/v3.0/sql/jobagents.go index beb84e6e8ca3..cc5cc853e0d0 100644 --- a/services/preview/sql/mgmt/v3.0/sql/jobagents.go +++ b/services/preview/sql/mgmt/v3.0/sql/jobagents.go @@ -244,6 +244,7 @@ func (client JobAgentsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobAgentsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +323,7 @@ func (client JobAgentsClient) ListByServer(ctx context.Context, resourceGroupNam result.jalr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobAgentsClient", "ListByServer", resp, "Failure responding to request") + return } if result.jalr.hasNextLink() && result.jalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -386,6 +388,7 @@ func (client JobAgentsClient) listByServerNextResults(ctx context.Context, lastR result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobAgentsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/jobcredentials.go b/services/preview/sql/mgmt/v3.0/sql/jobcredentials.go index fd6bd71b5e61..1edd7b581318 100644 --- a/services/preview/sql/mgmt/v3.0/sql/jobcredentials.go +++ b/services/preview/sql/mgmt/v3.0/sql/jobcredentials.go @@ -88,6 +88,7 @@ func (client JobCredentialsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobCredentialsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client JobCredentialsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobCredentialsClient", "Delete", resp, "Failure responding to request") + return } return @@ -249,6 +251,7 @@ func (client JobCredentialsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobCredentialsClient", "Get", resp, "Failure responding to request") + return } return @@ -329,6 +332,7 @@ func (client JobCredentialsClient) ListByAgent(ctx context.Context, resourceGrou result.jclr, err = client.ListByAgentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobCredentialsClient", "ListByAgent", resp, "Failure responding to request") + return } if result.jclr.hasNextLink() && result.jclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -394,6 +398,7 @@ func (client JobCredentialsClient) listByAgentNextResults(ctx context.Context, l result, err = client.ListByAgentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobCredentialsClient", "listByAgentNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/jobexecutions.go b/services/preview/sql/mgmt/v3.0/sql/jobexecutions.go index 9f3b16238574..8ccbc85abde8 100644 --- a/services/preview/sql/mgmt/v3.0/sql/jobexecutions.go +++ b/services/preview/sql/mgmt/v3.0/sql/jobexecutions.go @@ -80,6 +80,7 @@ func (client JobExecutionsClient) Cancel(ctx context.Context, resourceGroupName result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -323,6 +324,7 @@ func (client JobExecutionsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "Get", resp, "Failure responding to request") + return } return @@ -411,6 +413,7 @@ func (client JobExecutionsClient) ListByAgent(ctx context.Context, resourceGroup result.jelr, err = client.ListByAgentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "ListByAgent", resp, "Failure responding to request") + return } if result.jelr.hasNextLink() && result.jelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -497,6 +500,7 @@ func (client JobExecutionsClient) listByAgentNextResults(ctx context.Context, la result, err = client.ListByAgentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "listByAgentNextResults", resp, "Failure responding to next results request") + return } return } @@ -559,6 +563,7 @@ func (client JobExecutionsClient) ListByJob(ctx context.Context, resourceGroupNa result.jelr, err = client.ListByJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "ListByJob", resp, "Failure responding to request") + return } if result.jelr.hasNextLink() && result.jelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -646,6 +651,7 @@ func (client JobExecutionsClient) listByJobNextResults(ctx context.Context, last result, err = client.ListByJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "listByJobNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/jobs.go b/services/preview/sql/mgmt/v3.0/sql/jobs.go index d10ddc67e6ee..7bacb2b308d8 100644 --- a/services/preview/sql/mgmt/v3.0/sql/jobs.go +++ b/services/preview/sql/mgmt/v3.0/sql/jobs.go @@ -78,6 +78,7 @@ func (client JobsClient) CreateOrUpdate(ctx context.Context, resourceGroupName s result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client JobsClient) Delete(ctx context.Context, resourceGroupName string, s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobsClient", "Delete", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client JobsClient) Get(ctx context.Context, resourceGroupName string, serv result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobsClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +322,7 @@ func (client JobsClient) ListByAgent(ctx context.Context, resourceGroupName stri result.jlr, err = client.ListByAgentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobsClient", "ListByAgent", resp, "Failure responding to request") + return } if result.jlr.hasNextLink() && result.jlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +388,7 @@ func (client JobsClient) listByAgentNextResults(ctx context.Context, lastResults result, err = client.ListByAgentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobsClient", "listByAgentNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/jobstepexecutions.go b/services/preview/sql/mgmt/v3.0/sql/jobstepexecutions.go index 695297931382..a09731b1723a 100644 --- a/services/preview/sql/mgmt/v3.0/sql/jobstepexecutions.go +++ b/services/preview/sql/mgmt/v3.0/sql/jobstepexecutions.go @@ -82,6 +82,7 @@ func (client JobStepExecutionsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobStepExecutionsClient", "Get", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client JobStepExecutionsClient) ListByJobExecution(ctx context.Context, re result.jelr, err = client.ListByJobExecutionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobStepExecutionsClient", "ListByJobExecution", resp, "Failure responding to request") + return } if result.jelr.hasNextLink() && result.jelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -261,6 +263,7 @@ func (client JobStepExecutionsClient) listByJobExecutionNextResults(ctx context. result, err = client.ListByJobExecutionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobStepExecutionsClient", "listByJobExecutionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/jobsteps.go b/services/preview/sql/mgmt/v3.0/sql/jobsteps.go index aa6a4e3ac01c..b85ab8010fe3 100644 --- a/services/preview/sql/mgmt/v3.0/sql/jobsteps.go +++ b/services/preview/sql/mgmt/v3.0/sql/jobsteps.go @@ -97,6 +97,7 @@ func (client JobStepsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -181,6 +182,7 @@ func (client JobStepsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "Delete", resp, "Failure responding to request") + return } return @@ -262,6 +264,7 @@ func (client JobStepsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "Get", resp, "Failure responding to request") + return } return @@ -345,6 +348,7 @@ func (client JobStepsClient) GetByVersion(ctx context.Context, resourceGroupName result, err = client.GetByVersionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "GetByVersion", resp, "Failure responding to request") + return } return @@ -428,6 +432,7 @@ func (client JobStepsClient) ListByJob(ctx context.Context, resourceGroupName st result.jslr, err = client.ListByJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "ListByJob", resp, "Failure responding to request") + return } if result.jslr.hasNextLink() && result.jslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -494,6 +499,7 @@ func (client JobStepsClient) listByJobNextResults(ctx context.Context, lastResul result, err = client.ListByJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "listByJobNextResults", resp, "Failure responding to next results request") + return } return } @@ -550,6 +556,7 @@ func (client JobStepsClient) ListByVersion(ctx context.Context, resourceGroupNam result.jslr, err = client.ListByVersionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "ListByVersion", resp, "Failure responding to request") + return } if result.jslr.hasNextLink() && result.jslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -617,6 +624,7 @@ func (client JobStepsClient) listByVersionNextResults(ctx context.Context, lastR result, err = client.ListByVersionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "listByVersionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/jobtargetexecutions.go b/services/preview/sql/mgmt/v3.0/sql/jobtargetexecutions.go index 6eff234c9f01..f29dedcece8b 100644 --- a/services/preview/sql/mgmt/v3.0/sql/jobtargetexecutions.go +++ b/services/preview/sql/mgmt/v3.0/sql/jobtargetexecutions.go @@ -83,6 +83,7 @@ func (client JobTargetExecutionsClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobTargetExecutionsClient", "Get", resp, "Failure responding to request") + return } return @@ -175,6 +176,7 @@ func (client JobTargetExecutionsClient) ListByJobExecution(ctx context.Context, result.jelr, err = client.ListByJobExecutionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobTargetExecutionsClient", "ListByJobExecution", resp, "Failure responding to request") + return } if result.jelr.hasNextLink() && result.jelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -263,6 +265,7 @@ func (client JobTargetExecutionsClient) listByJobExecutionNextResults(ctx contex result, err = client.ListByJobExecutionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobTargetExecutionsClient", "listByJobExecutionNextResults", resp, "Failure responding to next results request") + return } return } @@ -327,6 +330,7 @@ func (client JobTargetExecutionsClient) ListByStep(ctx context.Context, resource result.jelr, err = client.ListByStepResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobTargetExecutionsClient", "ListByStep", resp, "Failure responding to request") + return } if result.jelr.hasNextLink() && result.jelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -416,6 +420,7 @@ func (client JobTargetExecutionsClient) listByStepNextResults(ctx context.Contex result, err = client.ListByStepResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobTargetExecutionsClient", "listByStepNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/jobtargetgroups.go b/services/preview/sql/mgmt/v3.0/sql/jobtargetgroups.go index 67141528eff5..4692588ea81a 100644 --- a/services/preview/sql/mgmt/v3.0/sql/jobtargetgroups.go +++ b/services/preview/sql/mgmt/v3.0/sql/jobtargetgroups.go @@ -86,6 +86,7 @@ func (client JobTargetGroupsClient) CreateOrUpdate(ctx context.Context, resource result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobTargetGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client JobTargetGroupsClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobTargetGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -247,6 +249,7 @@ func (client JobTargetGroupsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobTargetGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -327,6 +330,7 @@ func (client JobTargetGroupsClient) ListByAgent(ctx context.Context, resourceGro result.jtglr, err = client.ListByAgentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobTargetGroupsClient", "ListByAgent", resp, "Failure responding to request") + return } if result.jtglr.hasNextLink() && result.jtglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -392,6 +396,7 @@ func (client JobTargetGroupsClient) listByAgentNextResults(ctx context.Context, result, err = client.ListByAgentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobTargetGroupsClient", "listByAgentNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/jobversions.go b/services/preview/sql/mgmt/v3.0/sql/jobversions.go index fc1a4df9f188..daa6ad7374d1 100644 --- a/services/preview/sql/mgmt/v3.0/sql/jobversions.go +++ b/services/preview/sql/mgmt/v3.0/sql/jobversions.go @@ -78,6 +78,7 @@ func (client JobVersionsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobVersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client JobVersionsClient) ListByJob(ctx context.Context, resourceGroupName result.jvlr, err = client.ListByJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobVersionsClient", "ListByJob", resp, "Failure responding to request") + return } if result.jvlr.hasNextLink() && result.jvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -226,6 +228,7 @@ func (client JobVersionsClient) listByJobNextResults(ctx context.Context, lastRe result, err = client.ListByJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.JobVersionsClient", "listByJobNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/longtermretentionbackups.go b/services/preview/sql/mgmt/v3.0/sql/longtermretentionbackups.go index e0dcac6d44cb..c4655215ccf9 100644 --- a/services/preview/sql/mgmt/v3.0/sql/longtermretentionbackups.go +++ b/services/preview/sql/mgmt/v3.0/sql/longtermretentionbackups.go @@ -236,6 +236,7 @@ func (client LongTermRetentionBackupsClient) Get(ctx context.Context, locationNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "Get", resp, "Failure responding to request") + return } return @@ -317,6 +318,7 @@ func (client LongTermRetentionBackupsClient) GetByResourceGroup(ctx context.Cont result, err = client.GetByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "GetByResourceGroup", resp, "Failure responding to request") + return } return @@ -399,6 +401,7 @@ func (client LongTermRetentionBackupsClient) ListByDatabase(ctx context.Context, result.ltrblr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.ltrblr.hasNextLink() && result.ltrblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -470,6 +473,7 @@ func (client LongTermRetentionBackupsClient) listByDatabaseNextResults(ctx conte result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } @@ -523,6 +527,7 @@ func (client LongTermRetentionBackupsClient) ListByLocation(ctx context.Context, result.ltrblr, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "ListByLocation", resp, "Failure responding to request") + return } if result.ltrblr.hasNextLink() && result.ltrblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -592,6 +597,7 @@ func (client LongTermRetentionBackupsClient) listByLocationNextResults(ctx conte result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "listByLocationNextResults", resp, "Failure responding to next results request") + return } return } @@ -649,6 +655,7 @@ func (client LongTermRetentionBackupsClient) ListByResourceGroupDatabase(ctx con result.ltrblr, err = client.ListByResourceGroupDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "ListByResourceGroupDatabase", resp, "Failure responding to request") + return } if result.ltrblr.hasNextLink() && result.ltrblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -721,6 +728,7 @@ func (client LongTermRetentionBackupsClient) listByResourceGroupDatabaseNextResu result, err = client.ListByResourceGroupDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "listByResourceGroupDatabaseNextResults", resp, "Failure responding to next results request") + return } return } @@ -776,6 +784,7 @@ func (client LongTermRetentionBackupsClient) ListByResourceGroupLocation(ctx con result.ltrblr, err = client.ListByResourceGroupLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "ListByResourceGroupLocation", resp, "Failure responding to request") + return } if result.ltrblr.hasNextLink() && result.ltrblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -846,6 +855,7 @@ func (client LongTermRetentionBackupsClient) listByResourceGroupLocationNextResu result, err = client.ListByResourceGroupLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "listByResourceGroupLocationNextResults", resp, "Failure responding to next results request") + return } return } @@ -902,6 +912,7 @@ func (client LongTermRetentionBackupsClient) ListByResourceGroupServer(ctx conte result.ltrblr, err = client.ListByResourceGroupServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "ListByResourceGroupServer", resp, "Failure responding to request") + return } if result.ltrblr.hasNextLink() && result.ltrblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -973,6 +984,7 @@ func (client LongTermRetentionBackupsClient) listByResourceGroupServerNextResult result, err = client.ListByResourceGroupServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "listByResourceGroupServerNextResults", resp, "Failure responding to next results request") + return } return } @@ -1027,6 +1039,7 @@ func (client LongTermRetentionBackupsClient) ListByServer(ctx context.Context, l result.ltrblr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "ListByServer", resp, "Failure responding to request") + return } if result.ltrblr.hasNextLink() && result.ltrblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1097,6 +1110,7 @@ func (client LongTermRetentionBackupsClient) listByServerNextResults(ctx context result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/longtermretentionmanagedinstancebackups.go b/services/preview/sql/mgmt/v3.0/sql/longtermretentionmanagedinstancebackups.go index fad48ff302c3..f9ce944a2ac8 100644 --- a/services/preview/sql/mgmt/v3.0/sql/longtermretentionmanagedinstancebackups.go +++ b/services/preview/sql/mgmt/v3.0/sql/longtermretentionmanagedinstancebackups.go @@ -237,6 +237,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) Get(ctx context.Cont result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) GetByResourceGroup(c result, err = client.GetByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "GetByResourceGroup", resp, "Failure responding to request") + return } return @@ -400,6 +402,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) ListByDatabase(ctx c result.miltrblr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.miltrblr.hasNextLink() && result.miltrblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -471,6 +474,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) listByDatabaseNextRe result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } @@ -525,6 +529,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) ListByInstance(ctx c result.miltrblr, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "ListByInstance", resp, "Failure responding to request") + return } if result.miltrblr.hasNextLink() && result.miltrblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -595,6 +600,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) listByInstanceNextRe result, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "listByInstanceNextResults", resp, "Failure responding to next results request") + return } return } @@ -648,6 +654,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) ListByLocation(ctx c result.miltrblr, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "ListByLocation", resp, "Failure responding to request") + return } if result.miltrblr.hasNextLink() && result.miltrblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -717,6 +724,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) listByLocationNextRe result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "listByLocationNextResults", resp, "Failure responding to next results request") + return } return } @@ -774,6 +782,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupD result.miltrblr, err = client.ListByResourceGroupDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "ListByResourceGroupDatabase", resp, "Failure responding to request") + return } if result.miltrblr.hasNextLink() && result.miltrblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -846,6 +855,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) listByResourceGroupD result, err = client.ListByResourceGroupDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "listByResourceGroupDatabaseNextResults", resp, "Failure responding to next results request") + return } return } @@ -902,6 +912,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupI result.miltrblr, err = client.ListByResourceGroupInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "ListByResourceGroupInstance", resp, "Failure responding to request") + return } if result.miltrblr.hasNextLink() && result.miltrblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -973,6 +984,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) listByResourceGroupI result, err = client.ListByResourceGroupInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "listByResourceGroupInstanceNextResults", resp, "Failure responding to next results request") + return } return } @@ -1028,6 +1040,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupL result.miltrblr, err = client.ListByResourceGroupLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "ListByResourceGroupLocation", resp, "Failure responding to request") + return } if result.miltrblr.hasNextLink() && result.miltrblr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1098,6 +1111,7 @@ func (client LongTermRetentionManagedInstanceBackupsClient) listByResourceGroupL result, err = client.ListByResourceGroupLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.LongTermRetentionManagedInstanceBackupsClient", "listByResourceGroupLocationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/managedbackupshorttermretentionpolicies.go b/services/preview/sql/mgmt/v3.0/sql/managedbackupshorttermretentionpolicies.go index 3a5c36f806c4..f6ea5ba28365 100644 --- a/services/preview/sql/mgmt/v3.0/sql/managedbackupshorttermretentionpolicies.go +++ b/services/preview/sql/mgmt/v3.0/sql/managedbackupshorttermretentionpolicies.go @@ -160,6 +160,7 @@ func (client ManagedBackupShortTermRetentionPoliciesClient) Get(ctx context.Cont result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedBackupShortTermRetentionPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -240,6 +241,7 @@ func (client ManagedBackupShortTermRetentionPoliciesClient) ListByDatabase(ctx c result.mbstrplr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedBackupShortTermRetentionPoliciesClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.mbstrplr.hasNextLink() && result.mbstrplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -305,6 +307,7 @@ func (client ManagedBackupShortTermRetentionPoliciesClient) listByDatabaseNextRe result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedBackupShortTermRetentionPoliciesClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/manageddatabaserestoredetails.go b/services/preview/sql/mgmt/v3.0/sql/manageddatabaserestoredetails.go index d8636343e9dc..fc5011ad6a0d 100644 --- a/services/preview/sql/mgmt/v3.0/sql/manageddatabaserestoredetails.go +++ b/services/preview/sql/mgmt/v3.0/sql/manageddatabaserestoredetails.go @@ -85,6 +85,7 @@ func (client ManagedDatabaseRestoreDetailsClient) Get(ctx context.Context, resou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseRestoreDetailsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/manageddatabases.go b/services/preview/sql/mgmt/v3.0/sql/manageddatabases.go index ab702a09aca2..70f072178b92 100644 --- a/services/preview/sql/mgmt/v3.0/sql/manageddatabases.go +++ b/services/preview/sql/mgmt/v3.0/sql/manageddatabases.go @@ -346,6 +346,7 @@ func (client ManagedDatabasesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -431,6 +432,7 @@ func (client ManagedDatabasesClient) ListByInstance(ctx context.Context, resourc result.mdlr, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "ListByInstance", resp, "Failure responding to request") + return } if result.mdlr.hasNextLink() && result.mdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -495,6 +497,7 @@ func (client ManagedDatabasesClient) listByInstanceNextResults(ctx context.Conte result, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "listByInstanceNextResults", resp, "Failure responding to next results request") + return } return } @@ -555,6 +558,7 @@ func (client ManagedDatabasesClient) ListInaccessibleByInstance(ctx context.Cont result.mdlr, err = client.ListInaccessibleByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "ListInaccessibleByInstance", resp, "Failure responding to request") + return } if result.mdlr.hasNextLink() && result.mdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -619,6 +623,7 @@ func (client ManagedDatabasesClient) listInaccessibleByInstanceNextResults(ctx c result, err = client.ListInaccessibleByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "listInaccessibleByInstanceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/manageddatabasesecurityalertpolicies.go b/services/preview/sql/mgmt/v3.0/sql/manageddatabasesecurityalertpolicies.go index 5745dafe3b27..f73ff2a692ba 100644 --- a/services/preview/sql/mgmt/v3.0/sql/manageddatabasesecurityalertpolicies.go +++ b/services/preview/sql/mgmt/v3.0/sql/manageddatabasesecurityalertpolicies.go @@ -79,6 +79,7 @@ func (client ManagedDatabaseSecurityAlertPoliciesClient) CreateOrUpdate(ctx cont result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSecurityAlertPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client ManagedDatabaseSecurityAlertPoliciesClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSecurityAlertPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client ManagedDatabaseSecurityAlertPoliciesClient) ListByDatabase(ctx cont result.mdsaplr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSecurityAlertPoliciesClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.mdsaplr.hasNextLink() && result.mdsaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -305,6 +308,7 @@ func (client ManagedDatabaseSecurityAlertPoliciesClient) listByDatabaseNextResul result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSecurityAlertPoliciesClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/manageddatabasesensitivitylabels.go b/services/preview/sql/mgmt/v3.0/sql/manageddatabasesensitivitylabels.go index 4d36a00b5597..0db3418db7ee 100644 --- a/services/preview/sql/mgmt/v3.0/sql/manageddatabasesensitivitylabels.go +++ b/services/preview/sql/mgmt/v3.0/sql/manageddatabasesensitivitylabels.go @@ -81,6 +81,7 @@ func (client ManagedDatabaseSensitivityLabelsClient) CreateOrUpdate(ctx context. result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client ManagedDatabaseSensitivityLabelsClient) Delete(ctx context.Context, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "Delete", resp, "Failure responding to request") + return } return @@ -252,6 +254,7 @@ func (client ManagedDatabaseSensitivityLabelsClient) DisableRecommendation(ctx c result, err = client.DisableRecommendationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "DisableRecommendation", resp, "Failure responding to request") + return } return @@ -337,6 +340,7 @@ func (client ManagedDatabaseSensitivityLabelsClient) EnableRecommendation(ctx co result, err = client.EnableRecommendationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "EnableRecommendation", resp, "Failure responding to request") + return } return @@ -422,6 +426,7 @@ func (client ManagedDatabaseSensitivityLabelsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "Get", resp, "Failure responding to request") + return } return @@ -506,6 +511,7 @@ func (client ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabase(ctx c result.sllr, err = client.ListCurrentByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "ListCurrentByDatabase", resp, "Failure responding to request") + return } if result.sllr.hasNextLink() && result.sllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -574,6 +580,7 @@ func (client ManagedDatabaseSensitivityLabelsClient) listCurrentByDatabaseNextRe result, err = client.ListCurrentByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "listCurrentByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +637,7 @@ func (client ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabase(c result.sllr, err = client.ListRecommendedByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "ListRecommendedByDatabase", resp, "Failure responding to request") + return } if result.sllr.hasNextLink() && result.sllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -704,6 +712,7 @@ func (client ManagedDatabaseSensitivityLabelsClient) listRecommendedByDatabaseNe result, err = client.ListRecommendedByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "listRecommendedByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/manageddatabasevulnerabilityassessmentrulebaselines.go b/services/preview/sql/mgmt/v3.0/sql/manageddatabasevulnerabilityassessmentrulebaselines.go index c6e4a8530c60..ba31a31b338b 100644 --- a/services/preview/sql/mgmt/v3.0/sql/manageddatabasevulnerabilityassessmentrulebaselines.go +++ b/services/preview/sql/mgmt/v3.0/sql/manageddatabasevulnerabilityassessmentrulebaselines.go @@ -90,6 +90,7 @@ func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) Delete(c result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient", "Delete", resp, "Failure responding to request") + return } return @@ -259,6 +261,7 @@ func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) Get(ctx result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/manageddatabasevulnerabilityassessments.go b/services/preview/sql/mgmt/v3.0/sql/manageddatabasevulnerabilityassessments.go index f5a172f3d1dc..f741ec237462 100644 --- a/services/preview/sql/mgmt/v3.0/sql/manageddatabasevulnerabilityassessments.go +++ b/services/preview/sql/mgmt/v3.0/sql/manageddatabasevulnerabilityassessments.go @@ -79,6 +79,7 @@ func (client ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdate(ctx c result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client ManagedDatabaseVulnerabilityAssessmentsClient) Delete(ctx context.C result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client ManagedDatabaseVulnerabilityAssessmentsClient) Get(ctx context.Cont result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +321,7 @@ func (client ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabase(ctx c result.dvalr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentsClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.dvalr.hasNextLink() && result.dvalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -383,6 +387,7 @@ func (client ManagedDatabaseVulnerabilityAssessmentsClient) listByDatabaseNextRe result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentsClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/manageddatabasevulnerabilityassessmentscans.go b/services/preview/sql/mgmt/v3.0/sql/manageddatabasevulnerabilityassessmentscans.go index c0933faf3fc0..707a9a39e556 100644 --- a/services/preview/sql/mgmt/v3.0/sql/manageddatabasevulnerabilityassessmentscans.go +++ b/services/preview/sql/mgmt/v3.0/sql/manageddatabasevulnerabilityassessmentscans.go @@ -79,6 +79,7 @@ func (client ManagedDatabaseVulnerabilityAssessmentScansClient) Export(ctx conte result, err = client.ExportResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentScansClient", "Export", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client ManagedDatabaseVulnerabilityAssessmentScansClient) Get(ctx context. result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentScansClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +323,7 @@ func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabase(c result.vasrlr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentScansClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.vasrlr.hasNextLink() && result.vasrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +390,7 @@ func (client ManagedDatabaseVulnerabilityAssessmentScansClient) listByDatabaseNe result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentScansClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/managedinstanceadministrators.go b/services/preview/sql/mgmt/v3.0/sql/managedinstanceadministrators.go index d568ddc27763..0621b47d6607 100644 --- a/services/preview/sql/mgmt/v3.0/sql/managedinstanceadministrators.go +++ b/services/preview/sql/mgmt/v3.0/sql/managedinstanceadministrators.go @@ -243,6 +243,7 @@ func (client ManagedInstanceAdministratorsClient) Get(ctx context.Context, resou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceAdministratorsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client ManagedInstanceAdministratorsClient) ListByInstance(ctx context.Con result.mialr, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceAdministratorsClient", "ListByInstance", resp, "Failure responding to request") + return } if result.mialr.hasNextLink() && result.mialr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client ManagedInstanceAdministratorsClient) listByInstanceNextResults(ctx result, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceAdministratorsClient", "listByInstanceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/managedinstanceazureadonlyauthentications.go b/services/preview/sql/mgmt/v3.0/sql/managedinstanceazureadonlyauthentications.go index d4451d31a684..a48ef0f34c30 100644 --- a/services/preview/sql/mgmt/v3.0/sql/managedinstanceazureadonlyauthentications.go +++ b/services/preview/sql/mgmt/v3.0/sql/managedinstanceazureadonlyauthentications.go @@ -243,6 +243,7 @@ func (client ManagedInstanceAzureADOnlyAuthenticationsClient) Get(ctx context.Co result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceAzureADOnlyAuthenticationsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client ManagedInstanceAzureADOnlyAuthenticationsClient) ListByInstance(ctx result.miaaoalr, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceAzureADOnlyAuthenticationsClient", "ListByInstance", resp, "Failure responding to request") + return } if result.miaaoalr.hasNextLink() && result.miaaoalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client ManagedInstanceAzureADOnlyAuthenticationsClient) listByInstanceNext result, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceAzureADOnlyAuthenticationsClient", "listByInstanceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/managedinstanceencryptionprotectors.go b/services/preview/sql/mgmt/v3.0/sql/managedinstanceencryptionprotectors.go index 3857843530fd..8e8a1fe338d1 100644 --- a/services/preview/sql/mgmt/v3.0/sql/managedinstanceencryptionprotectors.go +++ b/services/preview/sql/mgmt/v3.0/sql/managedinstanceencryptionprotectors.go @@ -158,6 +158,7 @@ func (client ManagedInstanceEncryptionProtectorsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceEncryptionProtectorsClient", "Get", resp, "Failure responding to request") + return } return @@ -236,6 +237,7 @@ func (client ManagedInstanceEncryptionProtectorsClient) ListByInstance(ctx conte result.mieplr, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceEncryptionProtectorsClient", "ListByInstance", resp, "Failure responding to request") + return } if result.mieplr.hasNextLink() && result.mieplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -300,6 +302,7 @@ func (client ManagedInstanceEncryptionProtectorsClient) listByInstanceNextResult result, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceEncryptionProtectorsClient", "listByInstanceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/managedinstancekeys.go b/services/preview/sql/mgmt/v3.0/sql/managedinstancekeys.go index 8ad51c9af4b9..370e388ffe7c 100644 --- a/services/preview/sql/mgmt/v3.0/sql/managedinstancekeys.go +++ b/services/preview/sql/mgmt/v3.0/sql/managedinstancekeys.go @@ -236,6 +236,7 @@ func (client ManagedInstanceKeysClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client ManagedInstanceKeysClient) ListByInstance(ctx context.Context, reso result.miklr, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceKeysClient", "ListByInstance", resp, "Failure responding to request") + return } if result.miklr.hasNextLink() && result.miklr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +384,7 @@ func (client ManagedInstanceKeysClient) listByInstanceNextResults(ctx context.Co result, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceKeysClient", "listByInstanceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/managedinstancelongtermretentionpolicies.go b/services/preview/sql/mgmt/v3.0/sql/managedinstancelongtermretentionpolicies.go index 4dcabcf2c6a6..f9640593657f 100644 --- a/services/preview/sql/mgmt/v3.0/sql/managedinstancelongtermretentionpolicies.go +++ b/services/preview/sql/mgmt/v3.0/sql/managedinstancelongtermretentionpolicies.go @@ -160,6 +160,7 @@ func (client ManagedInstanceLongTermRetentionPoliciesClient) Get(ctx context.Con result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceLongTermRetentionPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -240,6 +241,7 @@ func (client ManagedInstanceLongTermRetentionPoliciesClient) ListByDatabase(ctx result.miltrplr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceLongTermRetentionPoliciesClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.miltrplr.hasNextLink() && result.miltrplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -305,6 +307,7 @@ func (client ManagedInstanceLongTermRetentionPoliciesClient) listByDatabaseNextR result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceLongTermRetentionPoliciesClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/managedinstanceoperations.go b/services/preview/sql/mgmt/v3.0/sql/managedinstanceoperations.go index c08c7c22da89..70747798945d 100644 --- a/services/preview/sql/mgmt/v3.0/sql/managedinstanceoperations.go +++ b/services/preview/sql/mgmt/v3.0/sql/managedinstanceoperations.go @@ -77,6 +77,7 @@ func (client ManagedInstanceOperationsClient) Cancel(ctx context.Context, resour result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceOperationsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client ManagedInstanceOperationsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceOperationsClient", "Get", resp, "Failure responding to request") + return } return @@ -231,6 +233,7 @@ func (client ManagedInstanceOperationsClient) ListByManagedInstance(ctx context. result.miolr, err = client.ListByManagedInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceOperationsClient", "ListByManagedInstance", resp, "Failure responding to request") + return } if result.miolr.hasNextLink() && result.miolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -295,6 +298,7 @@ func (client ManagedInstanceOperationsClient) listByManagedInstanceNextResults(c result, err = client.ListByManagedInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceOperationsClient", "listByManagedInstanceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/managedinstances.go b/services/preview/sql/mgmt/v3.0/sql/managedinstances.go index a4b15b8f71a0..839639aad409 100644 --- a/services/preview/sql/mgmt/v3.0/sql/managedinstances.go +++ b/services/preview/sql/mgmt/v3.0/sql/managedinstances.go @@ -324,6 +324,7 @@ func (client ManagedInstancesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "Get", resp, "Failure responding to request") + return } return @@ -397,6 +398,7 @@ func (client ManagedInstancesClient) List(ctx context.Context) (result ManagedIn result.milr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "List", resp, "Failure responding to request") + return } if result.milr.hasNextLink() && result.milr.IsEmpty() { err = result.NextWithContext(ctx) @@ -459,6 +461,7 @@ func (client ManagedInstancesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -512,6 +515,7 @@ func (client ManagedInstancesClient) ListByInstancePool(ctx context.Context, res result.milr, err = client.ListByInstancePoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "ListByInstancePool", resp, "Failure responding to request") + return } if result.milr.hasNextLink() && result.milr.IsEmpty() { err = result.NextWithContext(ctx) @@ -576,6 +580,7 @@ func (client ManagedInstancesClient) listByInstancePoolNextResults(ctx context.C result, err = client.ListByInstancePoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "listByInstancePoolNextResults", resp, "Failure responding to next results request") + return } return } @@ -628,6 +633,7 @@ func (client ManagedInstancesClient) ListByResourceGroup(ctx context.Context, re result.milr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.milr.hasNextLink() && result.milr.IsEmpty() { err = result.NextWithContext(ctx) @@ -691,6 +697,7 @@ func (client ManagedInstancesClient) listByResourceGroupNextResults(ctx context. result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/managedinstancevulnerabilityassessments.go b/services/preview/sql/mgmt/v3.0/sql/managedinstancevulnerabilityassessments.go index 43776d0e4aaf..beb22f75e2f9 100644 --- a/services/preview/sql/mgmt/v3.0/sql/managedinstancevulnerabilityassessments.go +++ b/services/preview/sql/mgmt/v3.0/sql/managedinstancevulnerabilityassessments.go @@ -86,6 +86,7 @@ func (client ManagedInstanceVulnerabilityAssessmentsClient) CreateOrUpdate(ctx c result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceVulnerabilityAssessmentsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client ManagedInstanceVulnerabilityAssessmentsClient) Delete(ctx context.C result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceVulnerabilityAssessmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -241,6 +243,7 @@ func (client ManagedInstanceVulnerabilityAssessmentsClient) Get(ctx context.Cont result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceVulnerabilityAssessmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +322,7 @@ func (client ManagedInstanceVulnerabilityAssessmentsClient) ListByInstance(ctx c result.mivalr, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceVulnerabilityAssessmentsClient", "ListByInstance", resp, "Failure responding to request") + return } if result.mivalr.hasNextLink() && result.mivalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -383,6 +387,7 @@ func (client ManagedInstanceVulnerabilityAssessmentsClient) listByInstanceNextRe result, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceVulnerabilityAssessmentsClient", "listByInstanceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/managedrestorabledroppeddatabasebackupshorttermretentionpolicies.go b/services/preview/sql/mgmt/v3.0/sql/managedrestorabledroppeddatabasebackupshorttermretentionpolicies.go index 9b75890fea5e..f5ef1be2bc3f 100644 --- a/services/preview/sql/mgmt/v3.0/sql/managedrestorabledroppeddatabasebackupshorttermretentionpolicies.go +++ b/services/preview/sql/mgmt/v3.0/sql/managedrestorabledroppeddatabasebackupshorttermretentionpolicies.go @@ -158,6 +158,7 @@ func (client ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCli result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -237,6 +238,7 @@ func (client ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCli result.mbstrplr, err = client.ListByRestorableDroppedDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient", "ListByRestorableDroppedDatabase", resp, "Failure responding to request") + return } if result.mbstrplr.hasNextLink() && result.mbstrplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -302,6 +304,7 @@ func (client ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCli result, err = client.ListByRestorableDroppedDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient", "listByRestorableDroppedDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/managedserversecurityalertpolicies.go b/services/preview/sql/mgmt/v3.0/sql/managedserversecurityalertpolicies.go index 77c2bc7af6a1..f01b7f4800bd 100644 --- a/services/preview/sql/mgmt/v3.0/sql/managedserversecurityalertpolicies.go +++ b/services/preview/sql/mgmt/v3.0/sql/managedserversecurityalertpolicies.go @@ -157,6 +157,7 @@ func (client ManagedServerSecurityAlertPoliciesClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedServerSecurityAlertPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -235,6 +236,7 @@ func (client ManagedServerSecurityAlertPoliciesClient) ListByInstance(ctx contex result.mssaplr, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedServerSecurityAlertPoliciesClient", "ListByInstance", resp, "Failure responding to request") + return } if result.mssaplr.hasNextLink() && result.mssaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -299,6 +301,7 @@ func (client ManagedServerSecurityAlertPoliciesClient) listByInstanceNextResults result, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedServerSecurityAlertPoliciesClient", "listByInstanceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/operations.go b/services/preview/sql/mgmt/v3.0/sql/operations.go index 2c73ea861176..4afab1c875d1 100644 --- a/services/preview/sql/mgmt/v3.0/sql/operations.go +++ b/services/preview/sql/mgmt/v3.0/sql/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/privateendpointconnections.go b/services/preview/sql/mgmt/v3.0/sql/privateendpointconnections.go index 201f5e4c8bfb..9d4c2cd39337 100644 --- a/services/preview/sql/mgmt/v3.0/sql/privateendpointconnections.go +++ b/services/preview/sql/mgmt/v3.0/sql/privateendpointconnections.go @@ -242,6 +242,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +321,7 @@ func (client PrivateEndpointConnectionsClient) ListByServer(ctx context.Context, result.peclr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.PrivateEndpointConnectionsClient", "ListByServer", resp, "Failure responding to request") + return } if result.peclr.hasNextLink() && result.peclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client PrivateEndpointConnectionsClient) listByServerNextResults(ctx conte result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.PrivateEndpointConnectionsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/privatelinkresources.go b/services/preview/sql/mgmt/v3.0/sql/privatelinkresources.go index abea240a48b2..87e5f17ff0f1 100644 --- a/services/preview/sql/mgmt/v3.0/sql/privatelinkresources.go +++ b/services/preview/sql/mgmt/v3.0/sql/privatelinkresources.go @@ -77,6 +77,7 @@ func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.PrivateLinkResourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client PrivateLinkResourcesClient) ListByServer(ctx context.Context, resou result.plrlr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.PrivateLinkResourcesClient", "ListByServer", resp, "Failure responding to request") + return } if result.plrlr.hasNextLink() && result.plrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -219,6 +221,7 @@ func (client PrivateLinkResourcesClient) listByServerNextResults(ctx context.Con result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.PrivateLinkResourcesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/recommendedelasticpools.go b/services/preview/sql/mgmt/v3.0/sql/recommendedelasticpools.go index d53e3e5f998c..80846f72b474 100644 --- a/services/preview/sql/mgmt/v3.0/sql/recommendedelasticpools.go +++ b/services/preview/sql/mgmt/v3.0/sql/recommendedelasticpools.go @@ -77,6 +77,7 @@ func (client RecommendedElasticPoolsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RecommendedElasticPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client RecommendedElasticPoolsClient) ListByServer(ctx context.Context, re result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RecommendedElasticPoolsClient", "ListByServer", resp, "Failure responding to request") + return } return @@ -231,6 +233,7 @@ func (client RecommendedElasticPoolsClient) ListMetrics(ctx context.Context, res result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RecommendedElasticPoolsClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/recoverabledatabases.go b/services/preview/sql/mgmt/v3.0/sql/recoverabledatabases.go index b0975e5b0da6..3f4385532de9 100644 --- a/services/preview/sql/mgmt/v3.0/sql/recoverabledatabases.go +++ b/services/preview/sql/mgmt/v3.0/sql/recoverabledatabases.go @@ -77,6 +77,7 @@ func (client RecoverableDatabasesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RecoverableDatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client RecoverableDatabasesClient) ListByServer(ctx context.Context, resou result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RecoverableDatabasesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/recoverablemanageddatabases.go b/services/preview/sql/mgmt/v3.0/sql/recoverablemanageddatabases.go index 4a308d5ab92d..a5d1115b56aa 100644 --- a/services/preview/sql/mgmt/v3.0/sql/recoverablemanageddatabases.go +++ b/services/preview/sql/mgmt/v3.0/sql/recoverablemanageddatabases.go @@ -76,6 +76,7 @@ func (client RecoverableManagedDatabasesClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RecoverableManagedDatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client RecoverableManagedDatabasesClient) ListByInstance(ctx context.Conte result.rmdlr, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RecoverableManagedDatabasesClient", "ListByInstance", resp, "Failure responding to request") + return } if result.rmdlr.hasNextLink() && result.rmdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -218,6 +220,7 @@ func (client RecoverableManagedDatabasesClient) listByInstanceNextResults(ctx co result, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RecoverableManagedDatabasesClient", "listByInstanceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/replicationlinks.go b/services/preview/sql/mgmt/v3.0/sql/replicationlinks.go index e494bf72327a..0a68fa4952d9 100644 --- a/services/preview/sql/mgmt/v3.0/sql/replicationlinks.go +++ b/services/preview/sql/mgmt/v3.0/sql/replicationlinks.go @@ -78,6 +78,7 @@ func (client ReplicationLinksClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ReplicationLinksClient", "Delete", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client ReplicationLinksClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ReplicationLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -395,6 +397,7 @@ func (client ReplicationLinksClient) ListByDatabase(ctx context.Context, resourc result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ReplicationLinksClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/restorabledroppeddatabases.go b/services/preview/sql/mgmt/v3.0/sql/restorabledroppeddatabases.go index 8408a78330ec..e62154c5f421 100644 --- a/services/preview/sql/mgmt/v3.0/sql/restorabledroppeddatabases.go +++ b/services/preview/sql/mgmt/v3.0/sql/restorabledroppeddatabases.go @@ -78,6 +78,7 @@ func (client RestorableDroppedDatabasesClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RestorableDroppedDatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client RestorableDroppedDatabasesClient) ListByServer(ctx context.Context, result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RestorableDroppedDatabasesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/restorabledroppedmanageddatabases.go b/services/preview/sql/mgmt/v3.0/sql/restorabledroppedmanageddatabases.go index c3fe13ff6545..40ac5eecbee4 100644 --- a/services/preview/sql/mgmt/v3.0/sql/restorabledroppedmanageddatabases.go +++ b/services/preview/sql/mgmt/v3.0/sql/restorabledroppedmanageddatabases.go @@ -77,6 +77,7 @@ func (client RestorableDroppedManagedDatabasesClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RestorableDroppedManagedDatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client RestorableDroppedManagedDatabasesClient) ListByInstance(ctx context result.rdmdlr, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RestorableDroppedManagedDatabasesClient", "ListByInstance", resp, "Failure responding to request") + return } if result.rdmdlr.hasNextLink() && result.rdmdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -219,6 +221,7 @@ func (client RestorableDroppedManagedDatabasesClient) listByInstanceNextResults( result, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RestorableDroppedManagedDatabasesClient", "listByInstanceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/restorepoints.go b/services/preview/sql/mgmt/v3.0/sql/restorepoints.go index b643a2f185ea..65137111b8a6 100644 --- a/services/preview/sql/mgmt/v3.0/sql/restorepoints.go +++ b/services/preview/sql/mgmt/v3.0/sql/restorepoints.go @@ -165,6 +165,7 @@ func (client RestorePointsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RestorePointsClient", "Delete", resp, "Failure responding to request") + return } return @@ -244,6 +245,7 @@ func (client RestorePointsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RestorePointsClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +325,7 @@ func (client RestorePointsClient) ListByDatabase(ctx context.Context, resourceGr result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RestorePointsClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/sensitivitylabels.go b/services/preview/sql/mgmt/v3.0/sql/sensitivitylabels.go index 139dd8024c3d..57bc4596f240 100644 --- a/services/preview/sql/mgmt/v3.0/sql/sensitivitylabels.go +++ b/services/preview/sql/mgmt/v3.0/sql/sensitivitylabels.go @@ -81,6 +81,7 @@ func (client SensitivityLabelsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SensitivityLabelsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client SensitivityLabelsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SensitivityLabelsClient", "Delete", resp, "Failure responding to request") + return } return @@ -252,6 +254,7 @@ func (client SensitivityLabelsClient) DisableRecommendation(ctx context.Context, result, err = client.DisableRecommendationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SensitivityLabelsClient", "DisableRecommendation", resp, "Failure responding to request") + return } return @@ -337,6 +340,7 @@ func (client SensitivityLabelsClient) EnableRecommendation(ctx context.Context, result, err = client.EnableRecommendationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SensitivityLabelsClient", "EnableRecommendation", resp, "Failure responding to request") + return } return @@ -422,6 +426,7 @@ func (client SensitivityLabelsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SensitivityLabelsClient", "Get", resp, "Failure responding to request") + return } return @@ -506,6 +511,7 @@ func (client SensitivityLabelsClient) ListCurrentByDatabase(ctx context.Context, result.sllr, err = client.ListCurrentByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SensitivityLabelsClient", "ListCurrentByDatabase", resp, "Failure responding to request") + return } if result.sllr.hasNextLink() && result.sllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -574,6 +580,7 @@ func (client SensitivityLabelsClient) listCurrentByDatabaseNextResults(ctx conte result, err = client.ListCurrentByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SensitivityLabelsClient", "listCurrentByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +637,7 @@ func (client SensitivityLabelsClient) ListRecommendedByDatabase(ctx context.Cont result.sllr, err = client.ListRecommendedByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SensitivityLabelsClient", "ListRecommendedByDatabase", resp, "Failure responding to request") + return } if result.sllr.hasNextLink() && result.sllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -704,6 +712,7 @@ func (client SensitivityLabelsClient) listRecommendedByDatabaseNextResults(ctx c result, err = client.ListRecommendedByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SensitivityLabelsClient", "listRecommendedByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/serverautomatictuning.go b/services/preview/sql/mgmt/v3.0/sql/serverautomatictuning.go index 5b4391b7d85a..5fd94c9ef99f 100644 --- a/services/preview/sql/mgmt/v3.0/sql/serverautomatictuning.go +++ b/services/preview/sql/mgmt/v3.0/sql/serverautomatictuning.go @@ -76,6 +76,7 @@ func (client ServerAutomaticTuningClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerAutomaticTuningClient", "Get", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client ServerAutomaticTuningClient) Update(ctx context.Context, resourceGr result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerAutomaticTuningClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/serverazureadadministrators.go b/services/preview/sql/mgmt/v3.0/sql/serverazureadadministrators.go index 2782f2956f33..eb80e592cf43 100644 --- a/services/preview/sql/mgmt/v3.0/sql/serverazureadadministrators.go +++ b/services/preview/sql/mgmt/v3.0/sql/serverazureadadministrators.go @@ -243,6 +243,7 @@ func (client ServerAzureADAdministratorsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerAzureADAdministratorsClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client ServerAzureADAdministratorsClient) ListByServer(ctx context.Context result.alr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerAzureADAdministratorsClient", "ListByServer", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client ServerAzureADAdministratorsClient) listByServerNextResults(ctx cont result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerAzureADAdministratorsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/serverazureadonlyauthentications.go b/services/preview/sql/mgmt/v3.0/sql/serverazureadonlyauthentications.go index 876b0e137844..de61ca4e53eb 100644 --- a/services/preview/sql/mgmt/v3.0/sql/serverazureadonlyauthentications.go +++ b/services/preview/sql/mgmt/v3.0/sql/serverazureadonlyauthentications.go @@ -242,6 +242,7 @@ func (client ServerAzureADOnlyAuthenticationsClient) Get(ctx context.Context, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerAzureADOnlyAuthenticationsClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +321,7 @@ func (client ServerAzureADOnlyAuthenticationsClient) ListByServer(ctx context.Co result.aaoalr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerAzureADOnlyAuthenticationsClient", "ListByServer", resp, "Failure responding to request") + return } if result.aaoalr.hasNextLink() && result.aaoalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -384,6 +386,7 @@ func (client ServerAzureADOnlyAuthenticationsClient) listByServerNextResults(ctx result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerAzureADOnlyAuthenticationsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/serverblobauditingpolicies.go b/services/preview/sql/mgmt/v3.0/sql/serverblobauditingpolicies.go index a0bca6236d59..5c8407469071 100644 --- a/services/preview/sql/mgmt/v3.0/sql/serverblobauditingpolicies.go +++ b/services/preview/sql/mgmt/v3.0/sql/serverblobauditingpolicies.go @@ -156,6 +156,7 @@ func (client ServerBlobAuditingPoliciesClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerBlobAuditingPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -234,6 +235,7 @@ func (client ServerBlobAuditingPoliciesClient) ListByServer(ctx context.Context, result.sbaplr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerBlobAuditingPoliciesClient", "ListByServer", resp, "Failure responding to request") + return } if result.sbaplr.hasNextLink() && result.sbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -298,6 +300,7 @@ func (client ServerBlobAuditingPoliciesClient) listByServerNextResults(ctx conte result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerBlobAuditingPoliciesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/servercommunicationlinks.go b/services/preview/sql/mgmt/v3.0/sql/servercommunicationlinks.go index 0c5fce09ef4c..16c4bcfea27b 100644 --- a/services/preview/sql/mgmt/v3.0/sql/servercommunicationlinks.go +++ b/services/preview/sql/mgmt/v3.0/sql/servercommunicationlinks.go @@ -168,6 +168,7 @@ func (client ServerCommunicationLinksClient) Delete(ctx context.Context, resourc result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerCommunicationLinksClient", "Delete", resp, "Failure responding to request") + return } return @@ -245,6 +246,7 @@ func (client ServerCommunicationLinksClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerCommunicationLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +324,7 @@ func (client ServerCommunicationLinksClient) ListByServer(ctx context.Context, r result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerCommunicationLinksClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/serverconnectionpolicies.go b/services/preview/sql/mgmt/v3.0/sql/serverconnectionpolicies.go index 21095382288f..599c3e8e1bb7 100644 --- a/services/preview/sql/mgmt/v3.0/sql/serverconnectionpolicies.go +++ b/services/preview/sql/mgmt/v3.0/sql/serverconnectionpolicies.go @@ -77,6 +77,7 @@ func (client ServerConnectionPoliciesClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerConnectionPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client ServerConnectionPoliciesClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerConnectionPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/serverdnsaliases.go b/services/preview/sql/mgmt/v3.0/sql/serverdnsaliases.go index d78d038c5917..28dbf6937f67 100644 --- a/services/preview/sql/mgmt/v3.0/sql/serverdnsaliases.go +++ b/services/preview/sql/mgmt/v3.0/sql/serverdnsaliases.go @@ -311,6 +311,7 @@ func (client ServerDNSAliasesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerDNSAliasesClient", "Get", resp, "Failure responding to request") + return } return @@ -389,6 +390,7 @@ func (client ServerDNSAliasesClient) ListByServer(ctx context.Context, resourceG result.sdalr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerDNSAliasesClient", "ListByServer", resp, "Failure responding to request") + return } if result.sdalr.hasNextLink() && result.sdalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -453,6 +455,7 @@ func (client ServerDNSAliasesClient) listByServerNextResults(ctx context.Context result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerDNSAliasesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/serverkeys.go b/services/preview/sql/mgmt/v3.0/sql/serverkeys.go index bc134b88ddbb..db72b8632f2a 100644 --- a/services/preview/sql/mgmt/v3.0/sql/serverkeys.go +++ b/services/preview/sql/mgmt/v3.0/sql/serverkeys.go @@ -238,6 +238,7 @@ func (client ServerKeysClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client ServerKeysClient) ListByServer(ctx context.Context, resourceGroupNa result.sklr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerKeysClient", "ListByServer", resp, "Failure responding to request") + return } if result.sklr.hasNextLink() && result.sklr.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +382,7 @@ func (client ServerKeysClient) listByServerNextResults(ctx context.Context, last result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerKeysClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/servers.go b/services/preview/sql/mgmt/v3.0/sql/servers.go index 49ab29ee42fa..d05a593920aa 100644 --- a/services/preview/sql/mgmt/v3.0/sql/servers.go +++ b/services/preview/sql/mgmt/v3.0/sql/servers.go @@ -81,6 +81,7 @@ func (client ServersClient) CheckNameAvailability(ctx context.Context, parameter result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client ServersClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersClient", "Get", resp, "Failure responding to request") + return } return @@ -473,6 +475,7 @@ func (client ServersClient) List(ctx context.Context) (result ServerListResultPa result.slr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersClient", "List", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -535,6 +538,7 @@ func (client ServersClient) listNextResults(ctx context.Context, lastResults Ser result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -587,6 +591,7 @@ func (client ServersClient) ListByResourceGroup(ctx context.Context, resourceGro result.slr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -650,6 +655,7 @@ func (client ServersClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/serversecurityalertpolicies.go b/services/preview/sql/mgmt/v3.0/sql/serversecurityalertpolicies.go index 5faa7f1961cc..7fa050c9d3b7 100644 --- a/services/preview/sql/mgmt/v3.0/sql/serversecurityalertpolicies.go +++ b/services/preview/sql/mgmt/v3.0/sql/serversecurityalertpolicies.go @@ -156,6 +156,7 @@ func (client ServerSecurityAlertPoliciesClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerSecurityAlertPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -234,6 +235,7 @@ func (client ServerSecurityAlertPoliciesClient) ListByServer(ctx context.Context result.lssaplr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerSecurityAlertPoliciesClient", "ListByServer", resp, "Failure responding to request") + return } if result.lssaplr.hasNextLink() && result.lssaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -298,6 +300,7 @@ func (client ServerSecurityAlertPoliciesClient) listByServerNextResults(ctx cont result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerSecurityAlertPoliciesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/servertrustgroups.go b/services/preview/sql/mgmt/v3.0/sql/servertrustgroups.go index 739f7d8b6501..9397e2acfe78 100644 --- a/services/preview/sql/mgmt/v3.0/sql/servertrustgroups.go +++ b/services/preview/sql/mgmt/v3.0/sql/servertrustgroups.go @@ -245,6 +245,7 @@ func (client ServerTrustGroupsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerTrustGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +324,7 @@ func (client ServerTrustGroupsClient) ListByInstance(ctx context.Context, resour result.stglr, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerTrustGroupsClient", "ListByInstance", resp, "Failure responding to request") + return } if result.stglr.hasNextLink() && result.stglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +389,7 @@ func (client ServerTrustGroupsClient) listByInstanceNextResults(ctx context.Cont result, err = client.ListByInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerTrustGroupsClient", "listByInstanceNextResults", resp, "Failure responding to next results request") + return } return } @@ -440,6 +443,7 @@ func (client ServerTrustGroupsClient) ListByLocation(ctx context.Context, resour result.stglr, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerTrustGroupsClient", "ListByLocation", resp, "Failure responding to request") + return } if result.stglr.hasNextLink() && result.stglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -504,6 +508,7 @@ func (client ServerTrustGroupsClient) listByLocationNextResults(ctx context.Cont result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerTrustGroupsClient", "listByLocationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/serverusages.go b/services/preview/sql/mgmt/v3.0/sql/serverusages.go index b91950ee0677..ee231de0c896 100644 --- a/services/preview/sql/mgmt/v3.0/sql/serverusages.go +++ b/services/preview/sql/mgmt/v3.0/sql/serverusages.go @@ -75,6 +75,7 @@ func (client ServerUsagesClient) ListByServer(ctx context.Context, resourceGroup result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerUsagesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/servervulnerabilityassessments.go b/services/preview/sql/mgmt/v3.0/sql/servervulnerabilityassessments.go index 2867b348d70f..11aa2cb2a179 100644 --- a/services/preview/sql/mgmt/v3.0/sql/servervulnerabilityassessments.go +++ b/services/preview/sql/mgmt/v3.0/sql/servervulnerabilityassessments.go @@ -85,6 +85,7 @@ func (client ServerVulnerabilityAssessmentsClient) CreateOrUpdate(ctx context.Co result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerVulnerabilityAssessmentsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client ServerVulnerabilityAssessmentsClient) Delete(ctx context.Context, r result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerVulnerabilityAssessmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client ServerVulnerabilityAssessmentsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerVulnerabilityAssessmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +321,7 @@ func (client ServerVulnerabilityAssessmentsClient) ListByServer(ctx context.Cont result.svalr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerVulnerabilityAssessmentsClient", "ListByServer", resp, "Failure responding to request") + return } if result.svalr.hasNextLink() && result.svalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -382,6 +386,7 @@ func (client ServerVulnerabilityAssessmentsClient) listByServerNextResults(ctx c result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerVulnerabilityAssessmentsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/serviceobjectives.go b/services/preview/sql/mgmt/v3.0/sql/serviceobjectives.go index 5b0d17d9ae87..1a0367f0f935 100644 --- a/services/preview/sql/mgmt/v3.0/sql/serviceobjectives.go +++ b/services/preview/sql/mgmt/v3.0/sql/serviceobjectives.go @@ -77,6 +77,7 @@ func (client ServiceObjectivesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServiceObjectivesClient", "Get", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client ServiceObjectivesClient) ListByServer(ctx context.Context, resource result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServiceObjectivesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/servicetieradvisors.go b/services/preview/sql/mgmt/v3.0/sql/servicetieradvisors.go index e21177193bb9..17c6a248f19b 100644 --- a/services/preview/sql/mgmt/v3.0/sql/servicetieradvisors.go +++ b/services/preview/sql/mgmt/v3.0/sql/servicetieradvisors.go @@ -78,6 +78,7 @@ func (client ServiceTierAdvisorsClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServiceTierAdvisorsClient", "Get", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client ServiceTierAdvisorsClient) ListByDatabase(ctx context.Context, reso result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServiceTierAdvisorsClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/subscriptionusages.go b/services/preview/sql/mgmt/v3.0/sql/subscriptionusages.go index bfbc2fff2fed..b045357d55b7 100644 --- a/services/preview/sql/mgmt/v3.0/sql/subscriptionusages.go +++ b/services/preview/sql/mgmt/v3.0/sql/subscriptionusages.go @@ -75,6 +75,7 @@ func (client SubscriptionUsagesClient) Get(ctx context.Context, locationName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SubscriptionUsagesClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client SubscriptionUsagesClient) ListByLocation(ctx context.Context, locat result.sulr, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SubscriptionUsagesClient", "ListByLocation", resp, "Failure responding to request") + return } if result.sulr.hasNextLink() && result.sulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -213,6 +215,7 @@ func (client SubscriptionUsagesClient) listByLocationNextResults(ctx context.Con result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SubscriptionUsagesClient", "listByLocationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/syncagents.go b/services/preview/sql/mgmt/v3.0/sql/syncagents.go index 304383c20007..05b6e7f8cf67 100644 --- a/services/preview/sql/mgmt/v3.0/sql/syncagents.go +++ b/services/preview/sql/mgmt/v3.0/sql/syncagents.go @@ -234,6 +234,7 @@ func (client SyncAgentsClient) GenerateKey(ctx context.Context, resourceGroupNam result, err = client.GenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncAgentsClient", "GenerateKey", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client SyncAgentsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncAgentsClient", "Get", resp, "Failure responding to request") + return } return @@ -390,6 +392,7 @@ func (client SyncAgentsClient) ListByServer(ctx context.Context, resourceGroupNa result.salr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncAgentsClient", "ListByServer", resp, "Failure responding to request") + return } if result.salr.hasNextLink() && result.salr.IsEmpty() { err = result.NextWithContext(ctx) @@ -454,6 +457,7 @@ func (client SyncAgentsClient) listByServerNextResults(ctx context.Context, last result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncAgentsClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } @@ -508,6 +512,7 @@ func (client SyncAgentsClient) ListLinkedDatabases(ctx context.Context, resource result.saldlr, err = client.ListLinkedDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncAgentsClient", "ListLinkedDatabases", resp, "Failure responding to request") + return } if result.saldlr.hasNextLink() && result.saldlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -573,6 +578,7 @@ func (client SyncAgentsClient) listLinkedDatabasesNextResults(ctx context.Contex result, err = client.ListLinkedDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncAgentsClient", "listLinkedDatabasesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/syncgroups.go b/services/preview/sql/mgmt/v3.0/sql/syncgroups.go index 332cd6ffa7da..39ed94fdb5b1 100644 --- a/services/preview/sql/mgmt/v3.0/sql/syncgroups.go +++ b/services/preview/sql/mgmt/v3.0/sql/syncgroups.go @@ -77,6 +77,7 @@ func (client SyncGroupsClient) CancelSync(ctx context.Context, resourceGroupName result, err = client.CancelSyncResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "CancelSync", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client SyncGroupsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -398,6 +400,7 @@ func (client SyncGroupsClient) ListByDatabase(ctx context.Context, resourceGroup result.sglr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.sglr.hasNextLink() && result.sglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -463,6 +466,7 @@ func (client SyncGroupsClient) listByDatabaseNextResults(ctx context.Context, la result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } @@ -518,6 +522,7 @@ func (client SyncGroupsClient) ListHubSchemas(ctx context.Context, resourceGroup result.sfsplr, err = client.ListHubSchemasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "ListHubSchemas", resp, "Failure responding to request") + return } if result.sfsplr.hasNextLink() && result.sfsplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -584,6 +589,7 @@ func (client SyncGroupsClient) listHubSchemasNextResults(ctx context.Context, la result, err = client.ListHubSchemasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "listHubSchemasNextResults", resp, "Failure responding to next results request") + return } return } @@ -643,6 +649,7 @@ func (client SyncGroupsClient) ListLogs(ctx context.Context, resourceGroupName s result.sgllr, err = client.ListLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "ListLogs", resp, "Failure responding to request") + return } if result.sgllr.hasNextLink() && result.sgllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -715,6 +722,7 @@ func (client SyncGroupsClient) listLogsNextResults(ctx context.Context, lastResu result, err = client.ListLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "listLogsNextResults", resp, "Failure responding to next results request") + return } return } @@ -766,6 +774,7 @@ func (client SyncGroupsClient) ListSyncDatabaseIds(ctx context.Context, location result.sdilr, err = client.ListSyncDatabaseIdsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "ListSyncDatabaseIds", resp, "Failure responding to request") + return } if result.sdilr.hasNextLink() && result.sdilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -829,6 +838,7 @@ func (client SyncGroupsClient) listSyncDatabaseIdsNextResults(ctx context.Contex result, err = client.ListSyncDatabaseIdsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "listSyncDatabaseIdsNextResults", resp, "Failure responding to next results request") + return } return } @@ -962,6 +972,7 @@ func (client SyncGroupsClient) TriggerSync(ctx context.Context, resourceGroupNam result, err = client.TriggerSyncResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsClient", "TriggerSync", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/syncmembers.go b/services/preview/sql/mgmt/v3.0/sql/syncmembers.go index 45c69d315f02..27ce60108685 100644 --- a/services/preview/sql/mgmt/v3.0/sql/syncmembers.go +++ b/services/preview/sql/mgmt/v3.0/sql/syncmembers.go @@ -244,6 +244,7 @@ func (client SyncMembersClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncMembersClient", "Get", resp, "Failure responding to request") + return } return @@ -326,6 +327,7 @@ func (client SyncMembersClient) ListBySyncGroup(ctx context.Context, resourceGro result.smlr, err = client.ListBySyncGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncMembersClient", "ListBySyncGroup", resp, "Failure responding to request") + return } if result.smlr.hasNextLink() && result.smlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -392,6 +394,7 @@ func (client SyncMembersClient) listBySyncGroupNextResults(ctx context.Context, result, err = client.ListBySyncGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncMembersClient", "listBySyncGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -448,6 +451,7 @@ func (client SyncMembersClient) ListMemberSchemas(ctx context.Context, resourceG result.sfsplr, err = client.ListMemberSchemasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncMembersClient", "ListMemberSchemas", resp, "Failure responding to request") + return } if result.sfsplr.hasNextLink() && result.sfsplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -515,6 +519,7 @@ func (client SyncMembersClient) listMemberSchemasNextResults(ctx context.Context result, err = client.ListMemberSchemasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncMembersClient", "listMemberSchemasNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/transparentdataencryptionactivities.go b/services/preview/sql/mgmt/v3.0/sql/transparentdataencryptionactivities.go index 3ddbfabd7144..66565e96e3cc 100644 --- a/services/preview/sql/mgmt/v3.0/sql/transparentdataencryptionactivities.go +++ b/services/preview/sql/mgmt/v3.0/sql/transparentdataencryptionactivities.go @@ -78,6 +78,7 @@ func (client TransparentDataEncryptionActivitiesClient) ListByConfiguration(ctx result, err = client.ListByConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.TransparentDataEncryptionActivitiesClient", "ListByConfiguration", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/transparentdataencryptions.go b/services/preview/sql/mgmt/v3.0/sql/transparentdataencryptions.go index 8b488f97380a..0b88ca196502 100644 --- a/services/preview/sql/mgmt/v3.0/sql/transparentdataencryptions.go +++ b/services/preview/sql/mgmt/v3.0/sql/transparentdataencryptions.go @@ -78,6 +78,7 @@ func (client TransparentDataEncryptionsClient) CreateOrUpdate(ctx context.Contex result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.TransparentDataEncryptionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client TransparentDataEncryptionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.TransparentDataEncryptionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/sql/mgmt/v3.0/sql/usages.go b/services/preview/sql/mgmt/v3.0/sql/usages.go index c5461fa49d3f..5ae189c16ba4 100644 --- a/services/preview/sql/mgmt/v3.0/sql/usages.go +++ b/services/preview/sql/mgmt/v3.0/sql/usages.go @@ -77,6 +77,7 @@ func (client UsagesClient) ListByInstancePool(ctx context.Context, resourceGroup result.ulr, err = client.ListByInstancePoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.UsagesClient", "ListByInstancePool", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -144,6 +145,7 @@ func (client UsagesClient) listByInstancePoolNextResults(ctx context.Context, la result, err = client.ListByInstancePoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.UsagesClient", "listByInstancePoolNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/virtualclusters.go b/services/preview/sql/mgmt/v3.0/sql/virtualclusters.go index 4908706500f8..f6003181ea4f 100644 --- a/services/preview/sql/mgmt/v3.0/sql/virtualclusters.go +++ b/services/preview/sql/mgmt/v3.0/sql/virtualclusters.go @@ -150,6 +150,7 @@ func (client VirtualClustersClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -223,6 +224,7 @@ func (client VirtualClustersClient) List(ctx context.Context) (result VirtualClu result.vclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualClustersClient", "List", resp, "Failure responding to request") + return } if result.vclr.hasNextLink() && result.vclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -285,6 +287,7 @@ func (client VirtualClustersClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -337,6 +340,7 @@ func (client VirtualClustersClient) ListByResourceGroup(ctx context.Context, res result.vclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vclr.hasNextLink() && result.vclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -400,6 +404,7 @@ func (client VirtualClustersClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/virtualnetworkrules.go b/services/preview/sql/mgmt/v3.0/sql/virtualnetworkrules.go index 6902a5507092..56d4419afa90 100644 --- a/services/preview/sql/mgmt/v3.0/sql/virtualnetworkrules.go +++ b/services/preview/sql/mgmt/v3.0/sql/virtualnetworkrules.go @@ -243,6 +243,7 @@ func (client VirtualNetworkRulesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualNetworkRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -321,6 +322,7 @@ func (client VirtualNetworkRulesClient) ListByServer(ctx context.Context, resour result.vnrlr, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualNetworkRulesClient", "ListByServer", resp, "Failure responding to request") + return } if result.vnrlr.hasNextLink() && result.vnrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client VirtualNetworkRulesClient) listByServerNextResults(ctx context.Cont result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualNetworkRulesClient", "listByServerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/workloadclassifiers.go b/services/preview/sql/mgmt/v3.0/sql/workloadclassifiers.go index 5de987994c35..3b15b69f781f 100644 --- a/services/preview/sql/mgmt/v3.0/sql/workloadclassifiers.go +++ b/services/preview/sql/mgmt/v3.0/sql/workloadclassifiers.go @@ -253,6 +253,7 @@ func (client WorkloadClassifiersClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.WorkloadClassifiersClient", "Get", resp, "Failure responding to request") + return } return @@ -335,6 +336,7 @@ func (client WorkloadClassifiersClient) ListByWorkloadGroup(ctx context.Context, result.wclr, err = client.ListByWorkloadGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.WorkloadClassifiersClient", "ListByWorkloadGroup", resp, "Failure responding to request") + return } if result.wclr.hasNextLink() && result.wclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -401,6 +403,7 @@ func (client WorkloadClassifiersClient) listByWorkloadGroupNextResults(ctx conte result, err = client.ListByWorkloadGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.WorkloadClassifiersClient", "listByWorkloadGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sql/mgmt/v3.0/sql/workloadgroups.go b/services/preview/sql/mgmt/v3.0/sql/workloadgroups.go index b8e2f7400dd3..f424aff33844 100644 --- a/services/preview/sql/mgmt/v3.0/sql/workloadgroups.go +++ b/services/preview/sql/mgmt/v3.0/sql/workloadgroups.go @@ -250,6 +250,7 @@ func (client WorkloadGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.WorkloadGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client WorkloadGroupsClient) ListByDatabase(ctx context.Context, resourceG result.wglr, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.WorkloadGroupsClient", "ListByDatabase", resp, "Failure responding to request") + return } if result.wglr.hasNextLink() && result.wglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -395,6 +397,7 @@ func (client WorkloadGroupsClient) listByDatabaseNextResults(ctx context.Context result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.WorkloadGroupsClient", "listByDatabaseNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/availabilitygrouplisteners.go b/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/availabilitygrouplisteners.go index c1709644246b..857f9333644e 100644 --- a/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/availabilitygrouplisteners.go +++ b/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/availabilitygrouplisteners.go @@ -236,6 +236,7 @@ func (client AvailabilityGroupListenersClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sqlvirtualmachine.AvailabilityGroupListenersClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client AvailabilityGroupListenersClient) ListByGroup(ctx context.Context, result.agllr, err = client.ListByGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sqlvirtualmachine.AvailabilityGroupListenersClient", "ListByGroup", resp, "Failure responding to request") + return } if result.agllr.hasNextLink() && result.agllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -378,6 +380,7 @@ func (client AvailabilityGroupListenersClient) listByGroupNextResults(ctx contex result, err = client.ListByGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sqlvirtualmachine.AvailabilityGroupListenersClient", "listByGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/groups.go b/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/groups.go index bf2f70953569..c7b2322565a6 100644 --- a/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/groups.go +++ b/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/groups.go @@ -229,6 +229,7 @@ func (client GroupsClient) Get(ctx context.Context, resourceGroupName string, SQ result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sqlvirtualmachine.GroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client GroupsClient) List(ctx context.Context) (result GroupListResultPage result.glr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sqlvirtualmachine.GroupsClient", "List", resp, "Failure responding to request") + return } if result.glr.hasNextLink() && result.glr.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +366,7 @@ func (client GroupsClient) listNextResults(ctx context.Context, lastResults Grou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sqlvirtualmachine.GroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -416,6 +419,7 @@ func (client GroupsClient) ListByResourceGroup(ctx context.Context, resourceGrou result.glr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sqlvirtualmachine.GroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.glr.hasNextLink() && result.glr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +483,7 @@ func (client GroupsClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sqlvirtualmachine.GroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/operations.go b/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/operations.go index e740edcf5a41..f0925460ef0b 100644 --- a/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/operations.go +++ b/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sqlvirtualmachine.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sqlvirtualmachine.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/sqlvirtualmachines.go b/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/sqlvirtualmachines.go index 464a5fee246f..b3164deca5c8 100644 --- a/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/sqlvirtualmachines.go +++ b/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/sqlvirtualmachines.go @@ -232,6 +232,7 @@ func (client SQLVirtualMachinesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sqlvirtualmachine.SQLVirtualMachinesClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +309,7 @@ func (client SQLVirtualMachinesClient) List(ctx context.Context) (result ListRes result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sqlvirtualmachine.SQLVirtualMachinesClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -370,6 +372,7 @@ func (client SQLVirtualMachinesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sqlvirtualmachine.SQLVirtualMachinesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -422,6 +425,7 @@ func (client SQLVirtualMachinesClient) ListByResourceGroup(ctx context.Context, result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sqlvirtualmachine.SQLVirtualMachinesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -485,6 +489,7 @@ func (client SQLVirtualMachinesClient) listByResourceGroupNextResults(ctx contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sqlvirtualmachine.SQLVirtualMachinesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -538,6 +543,7 @@ func (client SQLVirtualMachinesClient) ListBySQLVMGroup(ctx context.Context, res result.lr, err = client.ListBySQLVMGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sqlvirtualmachine.SQLVirtualMachinesClient", "ListBySQLVMGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -602,6 +608,7 @@ func (client SQLVirtualMachinesClient) listBySQLVMGroupNextResults(ctx context.C result, err = client.ListBySQLVMGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sqlvirtualmachine.SQLVirtualMachinesClient", "listBySQLVMGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/storage/datalake/2018-06-17/storagedatalake/filesystem.go b/services/preview/storage/datalake/2018-06-17/storagedatalake/filesystem.go index 167deff851a6..dc6709b7a426 100644 --- a/services/preview/storage/datalake/2018-06-17/storagedatalake/filesystem.go +++ b/services/preview/storage/datalake/2018-06-17/storagedatalake/filesystem.go @@ -86,6 +86,7 @@ func (client FilesystemClient) Create(ctx context.Context, filesystem string, xM result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.FilesystemClient", "Create", resp, "Failure responding to request") + return } return @@ -208,6 +209,7 @@ func (client FilesystemClient) Delete(ctx context.Context, filesystem string, if result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.FilesystemClient", "Delete", resp, "Failure responding to request") + return } return @@ -323,6 +325,7 @@ func (client FilesystemClient) GetProperties(ctx context.Context, filesystem str result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.FilesystemClient", "GetProperties", resp, "Failure responding to request") + return } return @@ -437,6 +440,7 @@ func (client FilesystemClient) List(ctx context.Context, prefix string, continua result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.FilesystemClient", "List", resp, "Failure responding to request") + return } return @@ -561,6 +565,7 @@ func (client FilesystemClient) SetProperties(ctx context.Context, filesystem str result, err = client.SetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.FilesystemClient", "SetProperties", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/datalake/2018-06-17/storagedatalake/path.go b/services/preview/storage/datalake/2018-06-17/storagedatalake/path.go index 59eb17a1e233..c69bb8dbcdb0 100644 --- a/services/preview/storage/datalake/2018-06-17/storagedatalake/path.go +++ b/services/preview/storage/datalake/2018-06-17/storagedatalake/path.go @@ -156,6 +156,7 @@ func (client PathClient) Create(ctx context.Context, filesystem string, pathPara result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.PathClient", "Create", resp, "Failure responding to request") + return } return @@ -386,6 +387,7 @@ func (client PathClient) Delete(ctx context.Context, filesystem string, pathPara result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.PathClient", "Delete", resp, "Failure responding to request") + return } return @@ -534,6 +536,7 @@ func (client PathClient) GetProperties(ctx context.Context, filesystem string, p result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.PathClient", "GetProperties", resp, "Failure responding to request") + return } return @@ -695,6 +698,7 @@ func (client PathClient) Lease(ctx context.Context, xMsLeaseAction PathLeaseActi result, err = client.LeaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.PathClient", "Lease", resp, "Failure responding to request") + return } return @@ -847,6 +851,7 @@ func (client PathClient) List(ctx context.Context, recursive bool, filesystem st result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.PathClient", "List", resp, "Failure responding to request") + return } return @@ -980,6 +985,7 @@ func (client PathClient) Read(ctx context.Context, filesystem string, pathParame result, err = client.ReadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.PathClient", "Read", resp, "Failure responding to request") + return } return @@ -1190,6 +1196,7 @@ func (client PathClient) Update(ctx context.Context, action PathUpdateAction, fi result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.PathClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2015-05-01-preview/storage/accounts.go b/services/preview/storage/mgmt/2015-05-01-preview/storage/accounts.go index f50304a73caa..4abbbb70bc68 100644 --- a/services/preview/storage/mgmt/2015-05-01-preview/storage/accounts.go +++ b/services/preview/storage/mgmt/2015-05-01-preview/storage/accounts.go @@ -72,6 +72,7 @@ func (client AccountsClient) CheckNameAvailability(ctx context.Context, accountN result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -229,6 +230,7 @@ func (client AccountsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -305,6 +307,7 @@ func (client AccountsClient) GetProperties(ctx context.Context, resourceGroupNam result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "GetProperties", resp, "Failure responding to request") + return } return @@ -379,6 +382,7 @@ func (client AccountsClient) List(ctx context.Context) (result AccountListResult result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -441,6 +445,7 @@ func (client AccountsClient) listNextResults(ctx context.Context, lastResults Ac result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -493,6 +498,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result.alr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -556,6 +562,7 @@ func (client AccountsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -607,6 +614,7 @@ func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName str result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -684,6 +692,7 @@ func (client AccountsClient) RegenerateKey(ctx context.Context, resourceGroupNam result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -769,6 +778,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2015-05-01-preview/storage/usage.go b/services/preview/storage/mgmt/2015-05-01-preview/storage/usage.go index 4bcc81a8be45..d34137ab0bab 100644 --- a/services/preview/storage/mgmt/2015-05-01-preview/storage/usage.go +++ b/services/preview/storage/mgmt/2015-05-01-preview/storage/usage.go @@ -69,6 +69,7 @@ func (client UsageClient) List(ctx context.Context) (result UsageListResult, err result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.UsageClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2018-03-01-preview/storage/accounts.go b/services/preview/storage/mgmt/2018-03-01-preview/storage/accounts.go index 6c11e18d945e..f34091b9f4b4 100644 --- a/services/preview/storage/mgmt/2018-03-01-preview/storage/accounts.go +++ b/services/preview/storage/mgmt/2018-03-01-preview/storage/accounts.go @@ -82,6 +82,7 @@ func (client AccountsClient) CheckNameAvailability(ctx context.Context, accountN result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -278,6 +279,7 @@ func (client AccountsClient) CreateOrUpdateManagementPolicies(ctx context.Contex result, err = client.CreateOrUpdateManagementPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "CreateOrUpdateManagementPolicies", resp, "Failure responding to request") + return } return @@ -371,6 +373,7 @@ func (client AccountsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -460,6 +463,7 @@ func (client AccountsClient) DeleteManagementPolicies(ctx context.Context, resou result, err = client.DeleteManagementPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "DeleteManagementPolicies", resp, "Failure responding to request") + return } return @@ -550,6 +554,7 @@ func (client AccountsClient) GetManagementPolicies(ctx context.Context, resource result, err = client.GetManagementPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "GetManagementPolicies", resp, "Failure responding to request") + return } return @@ -642,6 +647,7 @@ func (client AccountsClient) GetProperties(ctx context.Context, resourceGroupNam result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "GetProperties", resp, "Failure responding to request") + return } return @@ -721,6 +727,7 @@ func (client AccountsClient) List(ctx context.Context) (result AccountListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "List", resp, "Failure responding to request") + return } return @@ -812,6 +819,7 @@ func (client AccountsClient) ListAccountSAS(ctx context.Context, resourceGroupNa result, err = client.ListAccountSASResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListAccountSAS", resp, "Failure responding to request") + return } return @@ -900,6 +908,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -989,6 +998,7 @@ func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName str result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -1084,6 +1094,7 @@ func (client AccountsClient) ListServiceSAS(ctx context.Context, resourceGroupNa result, err = client.ListServiceSASResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListServiceSAS", resp, "Failure responding to request") + return } return @@ -1179,6 +1190,7 @@ func (client AccountsClient) RegenerateKey(ctx context.Context, resourceGroupNam result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -1277,6 +1289,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2018-03-01-preview/storage/blobcontainers.go b/services/preview/storage/mgmt/2018-03-01-preview/storage/blobcontainers.go index 8c1f21a4663a..0f7e891f048a 100644 --- a/services/preview/storage/mgmt/2018-03-01-preview/storage/blobcontainers.go +++ b/services/preview/storage/mgmt/2018-03-01-preview/storage/blobcontainers.go @@ -98,6 +98,7 @@ func (client BlobContainersClient) ClearLegalHold(ctx context.Context, resourceG result, err = client.ClearLegalHoldResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "ClearLegalHold", resp, "Failure responding to request") + return } return @@ -208,6 +209,7 @@ func (client BlobContainersClient) Create(ctx context.Context, resourceGroupName result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Create", resp, "Failure responding to request") + return } return @@ -317,6 +319,7 @@ func (client BlobContainersClient) CreateOrUpdateImmutabilityPolicy(ctx context. result, err = client.CreateOrUpdateImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "CreateOrUpdateImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -424,6 +427,7 @@ func (client BlobContainersClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Delete", resp, "Failure responding to request") + return } return @@ -526,6 +530,7 @@ func (client BlobContainersClient) DeleteImmutabilityPolicy(ctx context.Context, result, err = client.DeleteImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "DeleteImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -635,6 +640,7 @@ func (client BlobContainersClient) ExtendImmutabilityPolicy(ctx context.Context, result, err = client.ExtendImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "ExtendImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -738,6 +744,7 @@ func (client BlobContainersClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Get", resp, "Failure responding to request") + return } return @@ -839,6 +846,7 @@ func (client BlobContainersClient) GetImmutabilityPolicy(ctx context.Context, re result, err = client.GetImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "GetImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -943,6 +951,7 @@ func (client BlobContainersClient) Lease(ctx context.Context, resourceGroupName result, err = client.LeaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Lease", resp, "Failure responding to request") + return } return @@ -1040,6 +1049,7 @@ func (client BlobContainersClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "List", resp, "Failure responding to request") + return } return @@ -1140,6 +1150,7 @@ func (client BlobContainersClient) LockImmutabilityPolicy(ctx context.Context, r result, err = client.LockImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "LockImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -1242,6 +1253,7 @@ func (client BlobContainersClient) SetLegalHold(ctx context.Context, resourceGro result, err = client.SetLegalHoldResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "SetLegalHold", resp, "Failure responding to request") + return } return @@ -1344,6 +1356,7 @@ func (client BlobContainersClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2018-03-01-preview/storage/operations.go b/services/preview/storage/mgmt/2018-03-01-preview/storage/operations.go index be844bc9af9d..e85c05323d18 100644 --- a/services/preview/storage/mgmt/2018-03-01-preview/storage/operations.go +++ b/services/preview/storage/mgmt/2018-03-01-preview/storage/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2018-03-01-preview/storage/skus.go b/services/preview/storage/mgmt/2018-03-01-preview/storage/skus.go index f662db9e4785..2ee5a87c1dc4 100644 --- a/services/preview/storage/mgmt/2018-03-01-preview/storage/skus.go +++ b/services/preview/storage/mgmt/2018-03-01-preview/storage/skus.go @@ -76,6 +76,7 @@ func (client SkusClient) List(ctx context.Context) (result SkuListResult, err er result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.SkusClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2018-03-01-preview/storage/usages.go b/services/preview/storage/mgmt/2018-03-01-preview/storage/usages.go index fc054ac07515..5e11dd8d665c 100644 --- a/services/preview/storage/mgmt/2018-03-01-preview/storage/usages.go +++ b/services/preview/storage/mgmt/2018-03-01-preview/storage/usages.go @@ -76,6 +76,7 @@ func (client UsagesClient) List(ctx context.Context) (result UsageListResult, er result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.UsagesClient", "List", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client UsagesClient) ListByLocation(ctx context.Context, location string) result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.UsagesClient", "ListByLocation", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2018-07-01-preview/storage/accounts.go b/services/preview/storage/mgmt/2018-07-01-preview/storage/accounts.go index e5506e6a2d6b..98673b893ea6 100644 --- a/services/preview/storage/mgmt/2018-07-01-preview/storage/accounts.go +++ b/services/preview/storage/mgmt/2018-07-01-preview/storage/accounts.go @@ -82,6 +82,7 @@ func (client AccountsClient) CheckNameAvailability(ctx context.Context, accountN result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -277,6 +278,7 @@ func (client AccountsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -460,6 +462,7 @@ func (client AccountsClient) GetProperties(ctx context.Context, resourceGroupNam result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "GetProperties", resp, "Failure responding to request") + return } return @@ -542,6 +545,7 @@ func (client AccountsClient) List(ctx context.Context) (result AccountListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "List", resp, "Failure responding to request") + return } return @@ -633,6 +637,7 @@ func (client AccountsClient) ListAccountSAS(ctx context.Context, resourceGroupNa result, err = client.ListAccountSASResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListAccountSAS", resp, "Failure responding to request") + return } return @@ -721,6 +726,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -810,6 +816,7 @@ func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName str result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -905,6 +912,7 @@ func (client AccountsClient) ListServiceSAS(ctx context.Context, resourceGroupNa result, err = client.ListServiceSASResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListServiceSAS", resp, "Failure responding to request") + return } return @@ -1000,6 +1008,7 @@ func (client AccountsClient) RegenerateKey(ctx context.Context, resourceGroupNam result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -1098,6 +1107,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2018-07-01-preview/storage/blobcontainers.go b/services/preview/storage/mgmt/2018-07-01-preview/storage/blobcontainers.go index 78c9f92801e3..ad19ebd2724d 100644 --- a/services/preview/storage/mgmt/2018-07-01-preview/storage/blobcontainers.go +++ b/services/preview/storage/mgmt/2018-07-01-preview/storage/blobcontainers.go @@ -98,6 +98,7 @@ func (client BlobContainersClient) ClearLegalHold(ctx context.Context, resourceG result, err = client.ClearLegalHoldResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "ClearLegalHold", resp, "Failure responding to request") + return } return @@ -208,6 +209,7 @@ func (client BlobContainersClient) Create(ctx context.Context, resourceGroupName result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Create", resp, "Failure responding to request") + return } return @@ -317,6 +319,7 @@ func (client BlobContainersClient) CreateOrUpdateImmutabilityPolicy(ctx context. result, err = client.CreateOrUpdateImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "CreateOrUpdateImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -424,6 +427,7 @@ func (client BlobContainersClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Delete", resp, "Failure responding to request") + return } return @@ -526,6 +530,7 @@ func (client BlobContainersClient) DeleteImmutabilityPolicy(ctx context.Context, result, err = client.DeleteImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "DeleteImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -635,6 +640,7 @@ func (client BlobContainersClient) ExtendImmutabilityPolicy(ctx context.Context, result, err = client.ExtendImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "ExtendImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -738,6 +744,7 @@ func (client BlobContainersClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Get", resp, "Failure responding to request") + return } return @@ -839,6 +846,7 @@ func (client BlobContainersClient) GetImmutabilityPolicy(ctx context.Context, re result, err = client.GetImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "GetImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -943,6 +951,7 @@ func (client BlobContainersClient) Lease(ctx context.Context, resourceGroupName result, err = client.LeaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Lease", resp, "Failure responding to request") + return } return @@ -1040,6 +1049,7 @@ func (client BlobContainersClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "List", resp, "Failure responding to request") + return } return @@ -1140,6 +1150,7 @@ func (client BlobContainersClient) LockImmutabilityPolicy(ctx context.Context, r result, err = client.LockImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "LockImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -1242,6 +1253,7 @@ func (client BlobContainersClient) SetLegalHold(ctx context.Context, resourceGro result, err = client.SetLegalHoldResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "SetLegalHold", resp, "Failure responding to request") + return } return @@ -1344,6 +1356,7 @@ func (client BlobContainersClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2018-07-01-preview/storage/blobservices.go b/services/preview/storage/mgmt/2018-07-01-preview/storage/blobservices.go index 3fa7ab517408..4803e237d610 100644 --- a/services/preview/storage/mgmt/2018-07-01-preview/storage/blobservices.go +++ b/services/preview/storage/mgmt/2018-07-01-preview/storage/blobservices.go @@ -89,6 +89,7 @@ func (client BlobServicesClient) GetServiceProperties(ctx context.Context, resou result, err = client.GetServicePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "GetServiceProperties", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client BlobServicesClient) SetServiceProperties(ctx context.Context, resou result, err = client.SetServicePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "SetServiceProperties", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2018-07-01-preview/storage/managementpolicies.go b/services/preview/storage/mgmt/2018-07-01-preview/storage/managementpolicies.go index beadda9cd4b6..f86f3898ecbc 100644 --- a/services/preview/storage/mgmt/2018-07-01-preview/storage/managementpolicies.go +++ b/services/preview/storage/mgmt/2018-07-01-preview/storage/managementpolicies.go @@ -90,6 +90,7 @@ func (client ManagementPoliciesClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -183,6 +184,7 @@ func (client ManagementPoliciesClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -273,6 +275,7 @@ func (client ManagementPoliciesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2018-07-01-preview/storage/operations.go b/services/preview/storage/mgmt/2018-07-01-preview/storage/operations.go index e7333b7e795a..59e7dd661bfc 100644 --- a/services/preview/storage/mgmt/2018-07-01-preview/storage/operations.go +++ b/services/preview/storage/mgmt/2018-07-01-preview/storage/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2018-07-01-preview/storage/skus.go b/services/preview/storage/mgmt/2018-07-01-preview/storage/skus.go index 1673a499f246..697febfa9e5e 100644 --- a/services/preview/storage/mgmt/2018-07-01-preview/storage/skus.go +++ b/services/preview/storage/mgmt/2018-07-01-preview/storage/skus.go @@ -76,6 +76,7 @@ func (client SkusClient) List(ctx context.Context) (result SkuListResult, err er result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.SkusClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2018-07-01-preview/storage/usages.go b/services/preview/storage/mgmt/2018-07-01-preview/storage/usages.go index 8d10da45d269..cdbb5bfe2ef8 100644 --- a/services/preview/storage/mgmt/2018-07-01-preview/storage/usages.go +++ b/services/preview/storage/mgmt/2018-07-01-preview/storage/usages.go @@ -78,6 +78,7 @@ func (client UsagesClient) ListByLocation(ctx context.Context, location string) result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.UsagesClient", "ListByLocation", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2020-08-01-preview/storage/accounts.go b/services/preview/storage/mgmt/2020-08-01-preview/storage/accounts.go index 926ba496da39..86afc42ba2bf 100644 --- a/services/preview/storage/mgmt/2020-08-01-preview/storage/accounts.go +++ b/services/preview/storage/mgmt/2020-08-01-preview/storage/accounts.go @@ -82,6 +82,7 @@ func (client AccountsClient) CheckNameAvailability(ctx context.Context, accountN result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -287,6 +288,7 @@ func (client AccountsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -470,6 +472,7 @@ func (client AccountsClient) GetProperties(ctx context.Context, resourceGroupNam result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "GetProperties", resp, "Failure responding to request") + return } return @@ -553,6 +556,7 @@ func (client AccountsClient) List(ctx context.Context) (result AccountListResult result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -615,6 +619,7 @@ func (client AccountsClient) listNextResults(ctx context.Context, lastResults Ac result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -684,6 +689,7 @@ func (client AccountsClient) ListAccountSAS(ctx context.Context, resourceGroupNa result, err = client.ListAccountSASResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListAccountSAS", resp, "Failure responding to request") + return } return @@ -772,6 +778,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -862,6 +869,7 @@ func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName str result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -960,6 +968,7 @@ func (client AccountsClient) ListServiceSAS(ctx context.Context, resourceGroupNa result, err = client.ListServiceSASResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListServiceSAS", resp, "Failure responding to request") + return } return @@ -1055,6 +1064,7 @@ func (client AccountsClient) RegenerateKey(ctx context.Context, resourceGroupNam result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -1243,6 +1253,7 @@ func (client AccountsClient) RevokeUserDelegationKeys(ctx context.Context, resou result, err = client.RevokeUserDelegationKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "RevokeUserDelegationKeys", resp, "Failure responding to request") + return } return @@ -1338,6 +1349,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2020-08-01-preview/storage/blobcontainers.go b/services/preview/storage/mgmt/2020-08-01-preview/storage/blobcontainers.go index 0772b6064929..de4ac6c06b37 100644 --- a/services/preview/storage/mgmt/2020-08-01-preview/storage/blobcontainers.go +++ b/services/preview/storage/mgmt/2020-08-01-preview/storage/blobcontainers.go @@ -98,6 +98,7 @@ func (client BlobContainersClient) ClearLegalHold(ctx context.Context, resourceG result, err = client.ClearLegalHoldResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "ClearLegalHold", resp, "Failure responding to request") + return } return @@ -201,6 +202,7 @@ func (client BlobContainersClient) Create(ctx context.Context, resourceGroupName result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Create", resp, "Failure responding to request") + return } return @@ -308,6 +310,7 @@ func (client BlobContainersClient) CreateOrUpdateImmutabilityPolicy(ctx context. result, err = client.CreateOrUpdateImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "CreateOrUpdateImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -415,6 +418,7 @@ func (client BlobContainersClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Delete", resp, "Failure responding to request") + return } return @@ -517,6 +521,7 @@ func (client BlobContainersClient) DeleteImmutabilityPolicy(ctx context.Context, result, err = client.DeleteImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "DeleteImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -624,6 +629,7 @@ func (client BlobContainersClient) ExtendImmutabilityPolicy(ctx context.Context, result, err = client.ExtendImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "ExtendImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -727,6 +733,7 @@ func (client BlobContainersClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Get", resp, "Failure responding to request") + return } return @@ -828,6 +835,7 @@ func (client BlobContainersClient) GetImmutabilityPolicy(ctx context.Context, re result, err = client.GetImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "GetImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -932,6 +940,7 @@ func (client BlobContainersClient) Lease(ctx context.Context, resourceGroupName result, err = client.LeaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Lease", resp, "Failure responding to request") + return } return @@ -1033,6 +1042,7 @@ func (client BlobContainersClient) List(ctx context.Context, resourceGroupName s result.lci, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "List", resp, "Failure responding to request") + return } if result.lci.hasNextLink() && result.lci.IsEmpty() { err = result.NextWithContext(ctx) @@ -1106,6 +1116,7 @@ func (client BlobContainersClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1182,6 +1193,7 @@ func (client BlobContainersClient) LockImmutabilityPolicy(ctx context.Context, r result, err = client.LockImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "LockImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -1284,6 +1296,7 @@ func (client BlobContainersClient) SetLegalHold(ctx context.Context, resourceGro result, err = client.SetLegalHoldResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "SetLegalHold", resp, "Failure responding to request") + return } return @@ -1386,6 +1399,7 @@ func (client BlobContainersClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2020-08-01-preview/storage/blobinventorypolicies.go b/services/preview/storage/mgmt/2020-08-01-preview/storage/blobinventorypolicies.go index 09defa452c46..536b4080a20f 100644 --- a/services/preview/storage/mgmt/2020-08-01-preview/storage/blobinventorypolicies.go +++ b/services/preview/storage/mgmt/2020-08-01-preview/storage/blobinventorypolicies.go @@ -99,6 +99,7 @@ func (client BlobInventoryPoliciesClient) CreateOrUpdate(ctx context.Context, re result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobInventoryPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client BlobInventoryPoliciesClient) Delete(ctx context.Context, resourceGr result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobInventoryPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -282,6 +284,7 @@ func (client BlobInventoryPoliciesClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobInventoryPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -373,6 +376,7 @@ func (client BlobInventoryPoliciesClient) List(ctx context.Context, resourceGrou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobInventoryPoliciesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2020-08-01-preview/storage/blobservices.go b/services/preview/storage/mgmt/2020-08-01-preview/storage/blobservices.go index 862c1eb20479..37eee5170e42 100644 --- a/services/preview/storage/mgmt/2020-08-01-preview/storage/blobservices.go +++ b/services/preview/storage/mgmt/2020-08-01-preview/storage/blobservices.go @@ -89,6 +89,7 @@ func (client BlobServicesClient) GetServiceProperties(ctx context.Context, resou result, err = client.GetServicePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "GetServiceProperties", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client BlobServicesClient) List(ctx context.Context, resourceGroupName str result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "List", resp, "Failure responding to request") + return } return @@ -297,6 +299,7 @@ func (client BlobServicesClient) SetServiceProperties(ctx context.Context, resou result, err = client.SetServicePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "SetServiceProperties", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2020-08-01-preview/storage/deletedaccounts.go b/services/preview/storage/mgmt/2020-08-01-preview/storage/deletedaccounts.go index 792997ae10cc..a9107dbaaa3b 100644 --- a/services/preview/storage/mgmt/2020-08-01-preview/storage/deletedaccounts.go +++ b/services/preview/storage/mgmt/2020-08-01-preview/storage/deletedaccounts.go @@ -82,6 +82,7 @@ func (client DeletedAccountsClient) Get(ctx context.Context, deletedAccountName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.DeletedAccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client DeletedAccountsClient) List(ctx context.Context) (result DeletedAcc result.dalr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.DeletedAccountsClient", "List", resp, "Failure responding to request") + return } if result.dalr.hasNextLink() && result.dalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -223,6 +225,7 @@ func (client DeletedAccountsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.DeletedAccountsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/storage/mgmt/2020-08-01-preview/storage/encryptionscopes.go b/services/preview/storage/mgmt/2020-08-01-preview/storage/encryptionscopes.go index daa4d6404ff1..4219bf04da3d 100644 --- a/services/preview/storage/mgmt/2020-08-01-preview/storage/encryptionscopes.go +++ b/services/preview/storage/mgmt/2020-08-01-preview/storage/encryptionscopes.go @@ -95,6 +95,7 @@ func (client EncryptionScopesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "Get", resp, "Failure responding to request") + return } return @@ -187,6 +188,7 @@ func (client EncryptionScopesClient) List(ctx context.Context, resourceGroupName result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -251,6 +253,7 @@ func (client EncryptionScopesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -325,6 +328,7 @@ func (client EncryptionScopesClient) Patch(ctx context.Context, resourceGroupNam result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "Patch", resp, "Failure responding to request") + return } return @@ -427,6 +431,7 @@ func (client EncryptionScopesClient) Put(ctx context.Context, resourceGroupName result, err = client.PutResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "Put", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2020-08-01-preview/storage/fileservices.go b/services/preview/storage/mgmt/2020-08-01-preview/storage/fileservices.go index bb39790c8bc0..63cd1e285936 100644 --- a/services/preview/storage/mgmt/2020-08-01-preview/storage/fileservices.go +++ b/services/preview/storage/mgmt/2020-08-01-preview/storage/fileservices.go @@ -89,6 +89,7 @@ func (client FileServicesClient) GetServiceProperties(ctx context.Context, resou result, err = client.GetServicePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "GetServiceProperties", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client FileServicesClient) List(ctx context.Context, resourceGroupName str result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "List", resp, "Failure responding to request") + return } return @@ -282,6 +284,7 @@ func (client FileServicesClient) SetServiceProperties(ctx context.Context, resou result, err = client.SetServicePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "SetServiceProperties", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2020-08-01-preview/storage/fileshares.go b/services/preview/storage/mgmt/2020-08-01-preview/storage/fileshares.go index 876886eaed32..599fad7f6cd8 100644 --- a/services/preview/storage/mgmt/2020-08-01-preview/storage/fileshares.go +++ b/services/preview/storage/mgmt/2020-08-01-preview/storage/fileshares.go @@ -104,6 +104,7 @@ func (client FileSharesClient) Create(ctx context.Context, resourceGroupName str result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Create", resp, "Failure responding to request") + return } return @@ -207,6 +208,7 @@ func (client FileSharesClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Delete", resp, "Failure responding to request") + return } return @@ -309,6 +311,7 @@ func (client FileSharesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Get", resp, "Failure responding to request") + return } return @@ -411,6 +414,7 @@ func (client FileSharesClient) List(ctx context.Context, resourceGroupName strin result.fsi, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "List", resp, "Failure responding to request") + return } if result.fsi.hasNextLink() && result.fsi.IsEmpty() { err = result.NextWithContext(ctx) @@ -484,6 +488,7 @@ func (client FileSharesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -559,6 +564,7 @@ func (client FileSharesClient) Restore(ctx context.Context, resourceGroupName st result, err = client.RestoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Restore", resp, "Failure responding to request") + return } return @@ -659,6 +665,7 @@ func (client FileSharesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2020-08-01-preview/storage/managementpolicies.go b/services/preview/storage/mgmt/2020-08-01-preview/storage/managementpolicies.go index 03ab4086cac5..bedcbb5e7596 100644 --- a/services/preview/storage/mgmt/2020-08-01-preview/storage/managementpolicies.go +++ b/services/preview/storage/mgmt/2020-08-01-preview/storage/managementpolicies.go @@ -95,6 +95,7 @@ func (client ManagementPoliciesClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client ManagementPoliciesClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client ManagementPoliciesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2020-08-01-preview/storage/objectreplicationpolicies.go b/services/preview/storage/mgmt/2020-08-01-preview/storage/objectreplicationpolicies.go index aaefc2d249bc..b249e7cfd2de 100644 --- a/services/preview/storage/mgmt/2020-08-01-preview/storage/objectreplicationpolicies.go +++ b/services/preview/storage/mgmt/2020-08-01-preview/storage/objectreplicationpolicies.go @@ -99,6 +99,7 @@ func (client ObjectReplicationPoliciesClient) CreateOrUpdate(ctx context.Context result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -195,6 +196,7 @@ func (client ObjectReplicationPoliciesClient) Delete(ctx context.Context, resour result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -288,6 +290,7 @@ func (client ObjectReplicationPoliciesClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -379,6 +382,7 @@ func (client ObjectReplicationPoliciesClient) List(ctx context.Context, resource result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2020-08-01-preview/storage/operations.go b/services/preview/storage/mgmt/2020-08-01-preview/storage/operations.go index 7d6e60abbf98..65a50a04de1a 100644 --- a/services/preview/storage/mgmt/2020-08-01-preview/storage/operations.go +++ b/services/preview/storage/mgmt/2020-08-01-preview/storage/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2020-08-01-preview/storage/privateendpointconnections.go b/services/preview/storage/mgmt/2020-08-01-preview/storage/privateendpointconnections.go index 9dddf78fe804..342d29bbda80 100644 --- a/services/preview/storage/mgmt/2020-08-01-preview/storage/privateendpointconnections.go +++ b/services/preview/storage/mgmt/2020-08-01-preview/storage/privateendpointconnections.go @@ -91,6 +91,7 @@ func (client PrivateEndpointConnectionsClient) Delete(ctx context.Context, resou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -183,6 +184,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client PrivateEndpointConnectionsClient) List(ctx context.Context, resourc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "List", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client PrivateEndpointConnectionsClient) Put(ctx context.Context, resource result, err = client.PutResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "Put", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2020-08-01-preview/storage/privatelinkresources.go b/services/preview/storage/mgmt/2020-08-01-preview/storage/privatelinkresources.go index 35ebf19dfabd..d65ce1965c33 100644 --- a/services/preview/storage/mgmt/2020-08-01-preview/storage/privatelinkresources.go +++ b/services/preview/storage/mgmt/2020-08-01-preview/storage/privatelinkresources.go @@ -89,6 +89,7 @@ func (client PrivateLinkResourcesClient) ListByStorageAccount(ctx context.Contex result, err = client.ListByStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.PrivateLinkResourcesClient", "ListByStorageAccount", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2020-08-01-preview/storage/queue.go b/services/preview/storage/mgmt/2020-08-01-preview/storage/queue.go index 0c9a78f54d3c..18d13e47efad 100644 --- a/services/preview/storage/mgmt/2020-08-01-preview/storage/queue.go +++ b/services/preview/storage/mgmt/2020-08-01-preview/storage/queue.go @@ -95,6 +95,7 @@ func (client QueueClient) Create(ctx context.Context, resourceGroupName string, result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.QueueClient", "Create", resp, "Failure responding to request") + return } return @@ -194,6 +195,7 @@ func (client QueueClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.QueueClient", "Delete", resp, "Failure responding to request") + return } return @@ -290,6 +292,7 @@ func (client QueueClient) Get(ctx context.Context, resourceGroupName string, acc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.QueueClient", "Get", resp, "Failure responding to request") + return } return @@ -385,6 +388,7 @@ func (client QueueClient) List(ctx context.Context, resourceGroupName string, ac result.lqr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.QueueClient", "List", resp, "Failure responding to request") + return } if result.lqr.hasNextLink() && result.lqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -455,6 +459,7 @@ func (client QueueClient) listNextResults(ctx context.Context, lastResults ListQ result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.QueueClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -528,6 +533,7 @@ func (client QueueClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.QueueClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2020-08-01-preview/storage/queueservices.go b/services/preview/storage/mgmt/2020-08-01-preview/storage/queueservices.go index ba57f0257bed..7392cd2bfda4 100644 --- a/services/preview/storage/mgmt/2020-08-01-preview/storage/queueservices.go +++ b/services/preview/storage/mgmt/2020-08-01-preview/storage/queueservices.go @@ -89,6 +89,7 @@ func (client QueueServicesClient) GetServiceProperties(ctx context.Context, reso result, err = client.GetServicePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.QueueServicesClient", "GetServiceProperties", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client QueueServicesClient) List(ctx context.Context, resourceGroupName st result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.QueueServicesClient", "List", resp, "Failure responding to request") + return } return @@ -273,6 +275,7 @@ func (client QueueServicesClient) SetServiceProperties(ctx context.Context, reso result, err = client.SetServicePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.QueueServicesClient", "SetServiceProperties", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2020-08-01-preview/storage/skus.go b/services/preview/storage/mgmt/2020-08-01-preview/storage/skus.go index 7c26fba34a3a..2f05ecdb891a 100644 --- a/services/preview/storage/mgmt/2020-08-01-preview/storage/skus.go +++ b/services/preview/storage/mgmt/2020-08-01-preview/storage/skus.go @@ -76,6 +76,7 @@ func (client SkusClient) List(ctx context.Context) (result SkuListResult, err er result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.SkusClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2020-08-01-preview/storage/table.go b/services/preview/storage/mgmt/2020-08-01-preview/storage/table.go index 6a543d8e82e4..1a7a8eeecda9 100644 --- a/services/preview/storage/mgmt/2020-08-01-preview/storage/table.go +++ b/services/preview/storage/mgmt/2020-08-01-preview/storage/table.go @@ -94,6 +94,7 @@ func (client TableClient) Create(ctx context.Context, resourceGroupName string, result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.TableClient", "Create", resp, "Failure responding to request") + return } return @@ -191,6 +192,7 @@ func (client TableClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.TableClient", "Delete", resp, "Failure responding to request") + return } return @@ -287,6 +289,7 @@ func (client TableClient) Get(ctx context.Context, resourceGroupName string, acc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.TableClient", "Get", resp, "Failure responding to request") + return } return @@ -379,6 +382,7 @@ func (client TableClient) List(ctx context.Context, resourceGroupName string, ac result.ltr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.TableClient", "List", resp, "Failure responding to request") + return } if result.ltr.hasNextLink() && result.ltr.IsEmpty() { err = result.NextWithContext(ctx) @@ -443,6 +447,7 @@ func (client TableClient) listNextResults(ctx context.Context, lastResults ListT result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.TableClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +520,7 @@ func (client TableClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.TableClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2020-08-01-preview/storage/tableservices.go b/services/preview/storage/mgmt/2020-08-01-preview/storage/tableservices.go index 825855ea924d..ae50a7357b51 100644 --- a/services/preview/storage/mgmt/2020-08-01-preview/storage/tableservices.go +++ b/services/preview/storage/mgmt/2020-08-01-preview/storage/tableservices.go @@ -89,6 +89,7 @@ func (client TableServicesClient) GetServiceProperties(ctx context.Context, reso result, err = client.GetServicePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.TableServicesClient", "GetServiceProperties", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client TableServicesClient) List(ctx context.Context, resourceGroupName st result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.TableServicesClient", "List", resp, "Failure responding to request") + return } return @@ -273,6 +275,7 @@ func (client TableServicesClient) SetServiceProperties(ctx context.Context, reso result, err = client.SetServicePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.TableServicesClient", "SetServiceProperties", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/mgmt/2020-08-01-preview/storage/usages.go b/services/preview/storage/mgmt/2020-08-01-preview/storage/usages.go index fbe47b46ed2d..238c720cf691 100644 --- a/services/preview/storage/mgmt/2020-08-01-preview/storage/usages.go +++ b/services/preview/storage/mgmt/2020-08-01-preview/storage/usages.go @@ -78,6 +78,7 @@ func (client UsagesClient) ListByLocation(ctx context.Context, location string) result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.UsagesClient", "ListByLocation", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/tables/2019-02-02-preview/storagetables/service.go b/services/preview/storage/tables/2019-02-02-preview/storagetables/service.go index a801d965b2f6..c03dfe78660d 100644 --- a/services/preview/storage/tables/2019-02-02-preview/storagetables/service.go +++ b/services/preview/storage/tables/2019-02-02-preview/storagetables/service.go @@ -76,6 +76,7 @@ func (client ServiceClient) GetProperties(ctx context.Context, timeout *int32, r result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagetables.ServiceClient", "GetProperties", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client ServiceClient) GetStatistics(ctx context.Context, timeout *int32, r result, err = client.GetStatisticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagetables.ServiceClient", "GetStatistics", resp, "Failure responding to request") + return } return @@ -285,6 +287,7 @@ func (client ServiceClient) SetProperties(ctx context.Context, tableServicePrope result, err = client.SetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagetables.ServiceClient", "SetProperties", resp, "Failure responding to request") + return } return diff --git a/services/preview/storage/tables/2019-02-02-preview/storagetables/table.go b/services/preview/storage/tables/2019-02-02-preview/storagetables/table.go index 0f92eeb16528..241a43b63b7c 100644 --- a/services/preview/storage/tables/2019-02-02-preview/storagetables/table.go +++ b/services/preview/storage/tables/2019-02-02-preview/storagetables/table.go @@ -71,6 +71,7 @@ func (client TableClient) Create(ctx context.Context, tableProperties TablePrope result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagetables.TableClient", "Create", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client TableClient) Delete(ctx context.Context, table string, requestID st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagetables.TableClient", "Delete", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client TableClient) DeleteEntity(ctx context.Context, table string, partit result, err = client.DeleteEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagetables.TableClient", "DeleteEntity", resp, "Failure responding to request") + return } return @@ -344,6 +347,7 @@ func (client TableClient) GetAccessPolicy(ctx context.Context, table string, tim result, err = client.GetAccessPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagetables.TableClient", "GetAccessPolicy", resp, "Failure responding to request") + return } return @@ -441,6 +445,7 @@ func (client TableClient) InsertEntity(ctx context.Context, table string, timeou result, err = client.InsertEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagetables.TableClient", "InsertEntity", resp, "Failure responding to request") + return } return @@ -553,6 +558,7 @@ func (client TableClient) MergeEntity(ctx context.Context, table string, partiti result, err = client.MergeEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagetables.TableClient", "MergeEntity", resp, "Failure responding to request") + return } return @@ -662,6 +668,7 @@ func (client TableClient) Query(ctx context.Context, requestID string, formatPar result, err = client.QueryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagetables.TableClient", "Query", resp, "Failure responding to request") + return } return @@ -772,6 +779,7 @@ func (client TableClient) QueryEntities(ctx context.Context, table string, timeo result, err = client.QueryEntitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagetables.TableClient", "QueryEntities", resp, "Failure responding to request") + return } return @@ -888,6 +896,7 @@ func (client TableClient) QueryEntitiesWithPartitionAndRowKey(ctx context.Contex result, err = client.QueryEntitiesWithPartitionAndRowKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagetables.TableClient", "QueryEntitiesWithPartitionAndRowKey", resp, "Failure responding to request") + return } return @@ -992,6 +1001,7 @@ func (client TableClient) SetAccessPolicy(ctx context.Context, table string, tab result, err = client.SetAccessPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagetables.TableClient", "SetAccessPolicy", resp, "Failure responding to request") + return } return @@ -1097,6 +1107,7 @@ func (client TableClient) UpdateEntity(ctx context.Context, table string, partit result, err = client.UpdateEntityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagetables.TableClient", "UpdateEntity", resp, "Failure responding to request") + return } return diff --git a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/caches.go b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/caches.go index 419b79e80bd8..1acb1107a163 100644 --- a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/caches.go +++ b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/caches.go @@ -334,6 +334,7 @@ func (client CachesClient) Get(ctx context.Context, resourceGroupName string, ca result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.CachesClient", "Get", resp, "Failure responding to request") + return } return @@ -407,6 +408,7 @@ func (client CachesClient) List(ctx context.Context) (result CachesListResultPag result.clr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.CachesClient", "List", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -469,6 +471,7 @@ func (client CachesClient) listNextResults(ctx context.Context, lastResults Cach result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.CachesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -520,6 +523,7 @@ func (client CachesClient) ListByResourceGroup(ctx context.Context, resourceGrou result.clr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.CachesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -583,6 +587,7 @@ func (client CachesClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.CachesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -804,6 +809,7 @@ func (client CachesClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.CachesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/operations.go b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/operations.go index 0f4fafbf1169..8bffe63a6a61 100644 --- a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/operations.go +++ b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result APIOperationLis result.aolr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.OperationsClient", "List", resp, "Failure responding to request") + return } if result.aolr.hasNextLink() && result.aolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/skus.go b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/skus.go index f467438060ed..c0a309bb67c8 100644 --- a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/skus.go +++ b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/skus.go @@ -71,6 +71,7 @@ func (client SkusClient) List(ctx context.Context) (result ResourceSkusResultPag result.rsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.SkusClient", "List", resp, "Failure responding to request") + return } if result.rsr.hasNextLink() && result.rsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client SkusClient) listNextResults(ctx context.Context, lastResults Resour result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.SkusClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/storagetargets.go b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/storagetargets.go index 5f0e37122726..43f0a13e4a65 100644 --- a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/storagetargets.go +++ b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/storagetargets.go @@ -274,6 +274,7 @@ func (client StorageTargetsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.StorageTargetsClient", "Get", resp, "Failure responding to request") + return } return @@ -357,6 +358,7 @@ func (client StorageTargetsClient) ListByCache(ctx context.Context, resourceGrou result.str, err = client.ListByCacheResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.StorageTargetsClient", "ListByCache", resp, "Failure responding to request") + return } if result.str.hasNextLink() && result.str.IsEmpty() { err = result.NextWithContext(ctx) @@ -421,6 +423,7 @@ func (client StorageTargetsClient) listByCacheNextResults(ctx context.Context, l result, err = client.ListByCacheResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.StorageTargetsClient", "listByCacheNextResults", resp, "Failure responding to next results request") + return } return } @@ -483,6 +486,7 @@ func (client StorageTargetsClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.StorageTargetsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/usagemodels.go b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/usagemodels.go index eb9ed2829fb9..d36a3ed32ce4 100644 --- a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/usagemodels.go +++ b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/usagemodels.go @@ -71,6 +71,7 @@ func (client UsageModelsClient) List(ctx context.Context) (result UsageModelsRes result.umr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.UsageModelsClient", "List", resp, "Failure responding to request") + return } if result.umr.hasNextLink() && result.umr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client UsageModelsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.UsageModelsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool/diskpools.go b/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool/diskpools.go index 7e004c5a6940..5db48e86a1ab 100644 --- a/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool/diskpools.go +++ b/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool/diskpools.go @@ -275,6 +275,7 @@ func (client DiskPoolsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -360,6 +361,7 @@ func (client DiskPoolsClient) ListByResourceGroup(ctx context.Context, resourceG result.dplr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dplr.hasNextLink() && result.dplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -423,6 +425,7 @@ func (client DiskPoolsClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -478,6 +481,7 @@ func (client DiskPoolsClient) ListBySubscription(ctx context.Context) (result Di result.dplr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.dplr.hasNextLink() && result.dplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -540,6 +544,7 @@ func (client DiskPoolsClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -606,6 +611,7 @@ func (client DiskPoolsClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool/iscsitargets.go b/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool/iscsitargets.go index dfee354f244f..fe80134a98b6 100644 --- a/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool/iscsitargets.go +++ b/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool/iscsitargets.go @@ -277,6 +277,7 @@ func (client IscsiTargetsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagepool.IscsiTargetsClient", "Get", resp, "Failure responding to request") + return } return @@ -368,6 +369,7 @@ func (client IscsiTargetsClient) ListByDiskPool(ctx context.Context, resourceGro result.itl, err = client.ListByDiskPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagepool.IscsiTargetsClient", "ListByDiskPool", resp, "Failure responding to request") + return } if result.itl.hasNextLink() && result.itl.IsEmpty() { err = result.NextWithContext(ctx) @@ -432,6 +434,7 @@ func (client IscsiTargetsClient) listByDiskPoolNextResults(ctx context.Context, result, err = client.ListByDiskPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagepool.IscsiTargetsClient", "listByDiskPoolNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool/operations.go b/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool/operations.go index dfc7f9059dba..1cbeeb8e8260 100644 --- a/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool/operations.go +++ b/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagepool.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/clusters.go b/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/clusters.go index d55aa49e2cbe..77947706060a 100644 --- a/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/clusters.go +++ b/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/clusters.go @@ -276,6 +276,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -361,6 +362,7 @@ func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGr result.clr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.ClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -424,6 +426,7 @@ func (client ClustersClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.ClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -479,6 +482,7 @@ func (client ClustersClient) ListBySubscription(ctx context.Context) (result Clu result.clr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.ClustersClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -541,6 +545,7 @@ func (client ClustersClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.ClustersClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -603,6 +608,7 @@ func (client ClustersClient) ListStreamingJobs(ctx context.Context, resourceGrou result.cjlr, err = client.ListStreamingJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.ClustersClient", "ListStreamingJobs", resp, "Failure responding to request") + return } if result.cjlr.hasNextLink() && result.cjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -667,6 +673,7 @@ func (client ClustersClient) listStreamingJobsNextResults(ctx context.Context, l result, err = client.ListStreamingJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.ClustersClient", "listStreamingJobsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/functions.go b/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/functions.go index 8836b7faace0..664c7026bae9 100644 --- a/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/functions.go +++ b/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/functions.go @@ -90,6 +90,7 @@ func (client FunctionsClient) CreateOrReplace(ctx context.Context, function Func result, err = client.CreateOrReplaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.FunctionsClient", "CreateOrReplace", resp, "Failure responding to request") + return } return @@ -187,6 +188,7 @@ func (client FunctionsClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.FunctionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -273,6 +275,7 @@ func (client FunctionsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.FunctionsClient", "Get", resp, "Failure responding to request") + return } return @@ -363,6 +366,7 @@ func (client FunctionsClient) ListByStreamingJob(ctx context.Context, resourceGr result.flr, err = client.ListByStreamingJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.FunctionsClient", "ListByStreamingJob", resp, "Failure responding to request") + return } if result.flr.hasNextLink() && result.flr.IsEmpty() { err = result.NextWithContext(ctx) @@ -430,6 +434,7 @@ func (client FunctionsClient) listByStreamingJobNextResults(ctx context.Context, result, err = client.ListByStreamingJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.FunctionsClient", "listByStreamingJobNextResults", resp, "Failure responding to next results request") + return } return } @@ -494,6 +499,7 @@ func (client FunctionsClient) RetrieveDefaultDefinition(ctx context.Context, res result, err = client.RetrieveDefaultDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.FunctionsClient", "RetrieveDefaultDefinition", resp, "Failure responding to request") + return } return @@ -691,6 +697,7 @@ func (client FunctionsClient) Update(ctx context.Context, function Function, res result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.FunctionsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/inputs.go b/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/inputs.go index 5e215cda1d27..2969f73e9008 100644 --- a/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/inputs.go +++ b/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/inputs.go @@ -95,6 +95,7 @@ func (client InputsClient) CreateOrReplace(ctx context.Context, input Input, res result, err = client.CreateOrReplaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.InputsClient", "CreateOrReplace", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client InputsClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.InputsClient", "Delete", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client InputsClient) Get(ctx context.Context, resourceGroupName string, jo result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.InputsClient", "Get", resp, "Failure responding to request") + return } return @@ -368,6 +371,7 @@ func (client InputsClient) ListByStreamingJob(ctx context.Context, resourceGroup result.ilr, err = client.ListByStreamingJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.InputsClient", "ListByStreamingJob", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -435,6 +439,7 @@ func (client InputsClient) listByStreamingJobNextResults(ctx context.Context, la result, err = client.ListByStreamingJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.InputsClient", "listByStreamingJobNextResults", resp, "Failure responding to next results request") + return } return } @@ -607,6 +612,7 @@ func (client InputsClient) Update(ctx context.Context, input Input, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.InputsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/operations.go b/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/operations.go index 947e5acf96ac..b51707fd5fc8 100644 --- a/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/operations.go +++ b/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/outputs.go b/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/outputs.go index b86177ca7001..a16696a63258 100644 --- a/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/outputs.go +++ b/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/outputs.go @@ -90,6 +90,7 @@ func (client OutputsClient) CreateOrReplace(ctx context.Context, output Output, result, err = client.CreateOrReplaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.OutputsClient", "CreateOrReplace", resp, "Failure responding to request") + return } return @@ -187,6 +188,7 @@ func (client OutputsClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.OutputsClient", "Delete", resp, "Failure responding to request") + return } return @@ -273,6 +275,7 @@ func (client OutputsClient) Get(ctx context.Context, resourceGroupName string, j result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.OutputsClient", "Get", resp, "Failure responding to request") + return } return @@ -363,6 +366,7 @@ func (client OutputsClient) ListByStreamingJob(ctx context.Context, resourceGrou result.olr, err = client.ListByStreamingJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.OutputsClient", "ListByStreamingJob", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -430,6 +434,7 @@ func (client OutputsClient) listByStreamingJobNextResults(ctx context.Context, l result, err = client.ListByStreamingJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.OutputsClient", "listByStreamingJobNextResults", resp, "Failure responding to next results request") + return } return } @@ -595,6 +600,7 @@ func (client OutputsClient) Update(ctx context.Context, output Output, resourceG result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.OutputsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/privateendpoints.go b/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/privateendpoints.go index 365c8edb0207..047e1870cfaf 100644 --- a/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/privateendpoints.go +++ b/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/privateendpoints.go @@ -91,6 +91,7 @@ func (client PrivateEndpointsClient) CreateOrUpdate(ctx context.Context, private result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.PrivateEndpointsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -275,6 +276,7 @@ func (client PrivateEndpointsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.PrivateEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -362,6 +364,7 @@ func (client PrivateEndpointsClient) ListByCluster(ctx context.Context, resource result.pelr, err = client.ListByClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.PrivateEndpointsClient", "ListByCluster", resp, "Failure responding to request") + return } if result.pelr.hasNextLink() && result.pelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -426,6 +429,7 @@ func (client PrivateEndpointsClient) listByClusterNextResults(ctx context.Contex result, err = client.ListByClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.PrivateEndpointsClient", "listByClusterNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/streamingjobs.go b/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/streamingjobs.go index 0d6b9fecaffa..5d0f950d956b 100644 --- a/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/streamingjobs.go +++ b/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/streamingjobs.go @@ -272,6 +272,7 @@ func (client StreamingJobsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.StreamingJobsClient", "Get", resp, "Failure responding to request") + return } return @@ -359,6 +360,7 @@ func (client StreamingJobsClient) List(ctx context.Context, expand string) (resu result.sjlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.StreamingJobsClient", "List", resp, "Failure responding to request") + return } if result.sjlr.hasNextLink() && result.sjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -424,6 +426,7 @@ func (client StreamingJobsClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.StreamingJobsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -489,6 +492,7 @@ func (client StreamingJobsClient) ListByResourceGroup(ctx context.Context, resou result.sjlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.StreamingJobsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sjlr.hasNextLink() && result.sjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -555,6 +559,7 @@ func (client StreamingJobsClient) listByResourceGroupNextResults(ctx context.Con result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.StreamingJobsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -798,6 +803,7 @@ func (client StreamingJobsClient) Update(ctx context.Context, streamingJob Strea result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.StreamingJobsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/subscriptions.go b/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/subscriptions.go index 9f21ac29a477..d15decc10905 100644 --- a/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/subscriptions.go +++ b/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/subscriptions.go @@ -79,6 +79,7 @@ func (client SubscriptionsClient) ListQuotas(ctx context.Context, location strin result, err = client.ListQuotasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.SubscriptionsClient", "ListQuotas", resp, "Failure responding to request") + return } return diff --git a/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/transformations.go b/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/transformations.go index 06eb7a2fe7da..b9d7f945d615 100644 --- a/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/transformations.go +++ b/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/transformations.go @@ -91,6 +91,7 @@ func (client TransformationsClient) CreateOrReplace(ctx context.Context, transfo result, err = client.CreateOrReplaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.TransformationsClient", "CreateOrReplace", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client TransformationsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.TransformationsClient", "Get", resp, "Failure responding to request") + return } return @@ -282,6 +284,7 @@ func (client TransformationsClient) Update(ctx context.Context, transformation T result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.TransformationsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/subscription/mgmt/2017-11-01-preview/subscription/definitions.go b/services/preview/subscription/mgmt/2017-11-01-preview/subscription/definitions.go index 6aa895f7364e..5b763aef760f 100644 --- a/services/preview/subscription/mgmt/2017-11-01-preview/subscription/definitions.go +++ b/services/preview/subscription/mgmt/2017-11-01-preview/subscription/definitions.go @@ -151,6 +151,7 @@ func (client DefinitionsClient) Get(ctx context.Context, subscriptionDefinitionN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.DefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client DefinitionsClient) GetOperationStatus(ctx context.Context, operatio result, err = client.GetOperationStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.DefinitionsClient", "GetOperationStatus", resp, "Failure responding to request") + return } return @@ -296,6 +298,7 @@ func (client DefinitionsClient) List(ctx context.Context) (result DefinitionList result.dl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.DefinitionsClient", "List", resp, "Failure responding to request") + return } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) @@ -354,6 +357,7 @@ func (client DefinitionsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.DefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/subscription/mgmt/2017-11-01-preview/subscription/definitionsoperationmetadata.go b/services/preview/subscription/mgmt/2017-11-01-preview/subscription/definitionsoperationmetadata.go index bc52d45952bc..20d79d87af38 100644 --- a/services/preview/subscription/mgmt/2017-11-01-preview/subscription/definitionsoperationmetadata.go +++ b/services/preview/subscription/mgmt/2017-11-01-preview/subscription/definitionsoperationmetadata.go @@ -72,6 +72,7 @@ func (client DefinitionsOperationMetadataClient) List(ctx context.Context) (resu result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.DefinitionsOperationMetadataClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client DefinitionsOperationMetadataClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.DefinitionsOperationMetadataClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/subscription/mgmt/2018-03-01-preview/subscription/operations.go b/services/preview/subscription/mgmt/2018-03-01-preview/subscription/operations.go index 463495d47b5d..4837c020d427 100644 --- a/services/preview/subscription/mgmt/2018-03-01-preview/subscription/operations.go +++ b/services/preview/subscription/mgmt/2018-03-01-preview/subscription/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/subscription/mgmt/2018-03-01-preview/subscription/subscriptions.go b/services/preview/subscription/mgmt/2018-03-01-preview/subscription/subscriptions.go index b62a0faa2e4e..870f0be71b67 100644 --- a/services/preview/subscription/mgmt/2018-03-01-preview/subscription/subscriptions.go +++ b/services/preview/subscription/mgmt/2018-03-01-preview/subscription/subscriptions.go @@ -71,6 +71,7 @@ func (client SubscriptionsClient) Get(ctx context.Context, subscriptionID string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.SubscriptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -142,6 +143,7 @@ func (client SubscriptionsClient) List(ctx context.Context) (result ListResultPa result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.SubscriptionsClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -200,6 +202,7 @@ func (client SubscriptionsClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.SubscriptionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -251,6 +254,7 @@ func (client SubscriptionsClient) ListLocations(ctx context.Context, subscriptio result, err = client.ListLocationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.SubscriptionsClient", "ListLocations", resp, "Failure responding to request") + return } return diff --git a/services/preview/subscription/mgmt/2018-03-01-preview/subscription/tenants.go b/services/preview/subscription/mgmt/2018-03-01-preview/subscription/tenants.go index fe6c381147c1..dc92b5eb3898 100644 --- a/services/preview/subscription/mgmt/2018-03-01-preview/subscription/tenants.go +++ b/services/preview/subscription/mgmt/2018-03-01-preview/subscription/tenants.go @@ -70,6 +70,7 @@ func (client TenantsClient) List(ctx context.Context) (result TenantListResultPa result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.TenantsClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client TenantsClient) listNextResults(ctx context.Context, lastResults Ten result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.TenantsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/subscription/mgmt/2019-10-01-preview/subscription/operation.go b/services/preview/subscription/mgmt/2019-10-01-preview/subscription/operation.go index 17936bdf6a08..765f3fa10469 100644 --- a/services/preview/subscription/mgmt/2019-10-01-preview/subscription/operation.go +++ b/services/preview/subscription/mgmt/2019-10-01-preview/subscription/operation.go @@ -72,6 +72,7 @@ func (client OperationClient) Get(ctx context.Context, operationID string) (resu result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.OperationClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/subscription/mgmt/2019-10-01-preview/subscription/operations.go b/services/preview/subscription/mgmt/2019-10-01-preview/subscription/operations.go index a56650e28f16..f1d9a8b33291 100644 --- a/services/preview/subscription/mgmt/2019-10-01-preview/subscription/operations.go +++ b/services/preview/subscription/mgmt/2019-10-01-preview/subscription/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/subscription/mgmt/2019-10-01-preview/subscription/subscription.go b/services/preview/subscription/mgmt/2019-10-01-preview/subscription/subscription.go index 10d6c9d317a6..24a783f50ec5 100644 --- a/services/preview/subscription/mgmt/2019-10-01-preview/subscription/subscription.go +++ b/services/preview/subscription/mgmt/2019-10-01-preview/subscription/subscription.go @@ -72,6 +72,7 @@ func (client Client) Cancel(ctx context.Context, subscriptionID string) (result result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.Client", "Cancel", resp, "Failure responding to request") + return } return @@ -478,6 +479,7 @@ func (client Client) DeleteAlias(ctx context.Context, aliasName string) (result result, err = client.DeleteAliasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.Client", "DeleteAlias", resp, "Failure responding to request") + return } return @@ -549,6 +551,7 @@ func (client Client) Enable(ctx context.Context, subscriptionID string) (result result, err = client.EnableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.Client", "Enable", resp, "Failure responding to request") + return } return @@ -621,6 +624,7 @@ func (client Client) GetAlias(ctx context.Context, aliasName string) (result Put result, err = client.GetAliasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.Client", "GetAlias", resp, "Failure responding to request") + return } return @@ -691,6 +695,7 @@ func (client Client) ListAlias(ctx context.Context) (result PutAliasListResult, result, err = client.ListAliasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.Client", "ListAlias", resp, "Failure responding to request") + return } return @@ -760,6 +765,7 @@ func (client Client) Rename(ctx context.Context, subscriptionID string, body Nam result, err = client.RenameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.Client", "Rename", resp, "Failure responding to request") + return } return diff --git a/services/preview/subscription/mgmt/2019-10-01-preview/subscription/subscriptions.go b/services/preview/subscription/mgmt/2019-10-01-preview/subscription/subscriptions.go index b62a0faa2e4e..870f0be71b67 100644 --- a/services/preview/subscription/mgmt/2019-10-01-preview/subscription/subscriptions.go +++ b/services/preview/subscription/mgmt/2019-10-01-preview/subscription/subscriptions.go @@ -71,6 +71,7 @@ func (client SubscriptionsClient) Get(ctx context.Context, subscriptionID string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.SubscriptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -142,6 +143,7 @@ func (client SubscriptionsClient) List(ctx context.Context) (result ListResultPa result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.SubscriptionsClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -200,6 +202,7 @@ func (client SubscriptionsClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.SubscriptionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -251,6 +254,7 @@ func (client SubscriptionsClient) ListLocations(ctx context.Context, subscriptio result, err = client.ListLocationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.SubscriptionsClient", "ListLocations", resp, "Failure responding to request") + return } return diff --git a/services/preview/subscription/mgmt/2019-10-01-preview/subscription/tenants.go b/services/preview/subscription/mgmt/2019-10-01-preview/subscription/tenants.go index fe6c381147c1..dc92b5eb3898 100644 --- a/services/preview/subscription/mgmt/2019-10-01-preview/subscription/tenants.go +++ b/services/preview/subscription/mgmt/2019-10-01-preview/subscription/tenants.go @@ -70,6 +70,7 @@ func (client TenantsClient) List(ctx context.Context) (result TenantListResultPa result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.TenantsClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client TenantsClient) listNextResults(ctx context.Context, lastResults Ten result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.TenantsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/support/mgmt/2019-05-01-preview/support/communications.go b/services/preview/support/mgmt/2019-05-01-preview/support/communications.go index 83cf16689ad8..bec1a6674eb6 100644 --- a/services/preview/support/mgmt/2019-05-01-preview/support/communications.go +++ b/services/preview/support/mgmt/2019-05-01-preview/support/communications.go @@ -80,6 +80,7 @@ func (client CommunicationsClient) CheckNameAvailability(ctx context.Context, su result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.CommunicationsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -250,6 +251,7 @@ func (client CommunicationsClient) Get(ctx context.Context, supportTicketName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.CommunicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -335,6 +337,7 @@ func (client CommunicationsClient) List(ctx context.Context, supportTicketName s result.clr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.CommunicationsClient", "List", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -404,6 +407,7 @@ func (client CommunicationsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.CommunicationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/support/mgmt/2019-05-01-preview/support/operations.go b/services/preview/support/mgmt/2019-05-01-preview/support/operations.go index 73b21bf2c9d5..e4feb41edcca 100644 --- a/services/preview/support/mgmt/2019-05-01-preview/support/operations.go +++ b/services/preview/support/mgmt/2019-05-01-preview/support/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/support/mgmt/2019-05-01-preview/support/problemclassifications.go b/services/preview/support/mgmt/2019-05-01-preview/support/problemclassifications.go index 94cf28c86042..aa198b700a25 100644 --- a/services/preview/support/mgmt/2019-05-01-preview/support/problemclassifications.go +++ b/services/preview/support/mgmt/2019-05-01-preview/support/problemclassifications.go @@ -73,6 +73,7 @@ func (client ProblemClassificationsClient) Get(ctx context.Context, serviceName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.ProblemClassificationsClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client ProblemClassificationsClient) List(ctx context.Context, serviceName result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.ProblemClassificationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/support/mgmt/2019-05-01-preview/support/services.go b/services/preview/support/mgmt/2019-05-01-preview/support/services.go index d4a8d32bfe7b..45fcbb41989b 100644 --- a/services/preview/support/mgmt/2019-05-01-preview/support/services.go +++ b/services/preview/support/mgmt/2019-05-01-preview/support/services.go @@ -71,6 +71,7 @@ func (client ServicesClient) Get(ctx context.Context, serviceName string) (resul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ServicesClient) List(ctx context.Context) (result ServicesListResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.ServicesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/support/mgmt/2019-05-01-preview/support/tickets.go b/services/preview/support/mgmt/2019-05-01-preview/support/tickets.go index c59e265173c6..725b09db3545 100644 --- a/services/preview/support/mgmt/2019-05-01-preview/support/tickets.go +++ b/services/preview/support/mgmt/2019-05-01-preview/support/tickets.go @@ -79,6 +79,7 @@ func (client TicketsClient) CheckNameAvailability(ctx context.Context, checkName result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.TicketsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -260,6 +261,7 @@ func (client TicketsClient) Get(ctx context.Context, supportTicketName string) ( result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.TicketsClient", "Get", resp, "Failure responding to request") + return } return @@ -342,6 +344,7 @@ func (client TicketsClient) List(ctx context.Context, top *int32, filter string) result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.TicketsClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -410,6 +413,7 @@ func (client TicketsClient) listNextResults(ctx context.Context, lastResults Tic result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.TicketsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -464,6 +468,7 @@ func (client TicketsClient) Update(ctx context.Context, supportTicketName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.TicketsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/2019-06-01-preview/artifacts/bigdatapools.go b/services/preview/synapse/2019-06-01-preview/artifacts/bigdatapools.go index 1f60e07c19cb..12c42cf8f8ec 100644 --- a/services/preview/synapse/2019-06-01-preview/artifacts/bigdatapools.go +++ b/services/preview/synapse/2019-06-01-preview/artifacts/bigdatapools.go @@ -65,6 +65,7 @@ func (client BigDataPoolsClient) Get(ctx context.Context, bigDataPoolName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.BigDataPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -139,6 +140,7 @@ func (client BigDataPoolsClient) List(ctx context.Context) (result BigDataPoolRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.BigDataPoolsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/2019-06-01-preview/artifacts/dataflow.go b/services/preview/synapse/2019-06-01-preview/artifacts/dataflow.go index 28d9021b05aa..9413c759fc6f 100644 --- a/services/preview/synapse/2019-06-01-preview/artifacts/dataflow.go +++ b/services/preview/synapse/2019-06-01-preview/artifacts/dataflow.go @@ -254,6 +254,7 @@ func (client DataFlowClient) GetDataFlow(ctx context.Context, dataFlowName strin result, err = client.GetDataFlowResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.DataFlowClient", "GetDataFlow", resp, "Failure responding to request") + return } return @@ -333,6 +334,7 @@ func (client DataFlowClient) GetDataFlowsByWorkspace(ctx context.Context) (resul result.dflr, err = client.GetDataFlowsByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.DataFlowClient", "GetDataFlowsByWorkspace", resp, "Failure responding to request") + return } if result.dflr.hasNextLink() && result.dflr.IsEmpty() { err = result.NextWithContext(ctx) @@ -395,6 +397,7 @@ func (client DataFlowClient) getDataFlowsByWorkspaceNextResults(ctx context.Cont result, err = client.GetDataFlowsByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.DataFlowClient", "getDataFlowsByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/2019-06-01-preview/artifacts/dataflowdebugsession.go b/services/preview/synapse/2019-06-01-preview/artifacts/dataflowdebugsession.go index dd2dd9be6a9a..e8afbc811328 100644 --- a/services/preview/synapse/2019-06-01-preview/artifacts/dataflowdebugsession.go +++ b/services/preview/synapse/2019-06-01-preview/artifacts/dataflowdebugsession.go @@ -79,6 +79,7 @@ func (client DataFlowDebugSessionClient) AddDataFlow(ctx context.Context, reques result, err = client.AddDataFlowResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.DataFlowDebugSessionClient", "AddDataFlow", resp, "Failure responding to request") + return } return @@ -240,6 +241,7 @@ func (client DataFlowDebugSessionClient) DeleteDataFlowDebugSession(ctx context. result, err = client.DeleteDataFlowDebugSessionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.DataFlowDebugSessionClient", "DeleteDataFlowDebugSession", resp, "Failure responding to request") + return } return @@ -393,6 +395,7 @@ func (client DataFlowDebugSessionClient) QueryDataFlowDebugSessionsByWorkspace(c result.qdfdsr, err = client.QueryDataFlowDebugSessionsByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.DataFlowDebugSessionClient", "QueryDataFlowDebugSessionsByWorkspace", resp, "Failure responding to request") + return } if result.qdfdsr.hasNextLink() && result.qdfdsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -455,6 +458,7 @@ func (client DataFlowDebugSessionClient) queryDataFlowDebugSessionsByWorkspaceNe result, err = client.QueryDataFlowDebugSessionsByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.DataFlowDebugSessionClient", "queryDataFlowDebugSessionsByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/2019-06-01-preview/artifacts/dataset.go b/services/preview/synapse/2019-06-01-preview/artifacts/dataset.go index bd198a8e87d5..78632de04682 100644 --- a/services/preview/synapse/2019-06-01-preview/artifacts/dataset.go +++ b/services/preview/synapse/2019-06-01-preview/artifacts/dataset.go @@ -259,6 +259,7 @@ func (client DatasetClient) GetDataset(ctx context.Context, datasetName string, result, err = client.GetDatasetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.DatasetClient", "GetDataset", resp, "Failure responding to request") + return } return @@ -338,6 +339,7 @@ func (client DatasetClient) GetDatasetsByWorkspace(ctx context.Context) (result result.dlr, err = client.GetDatasetsByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.DatasetClient", "GetDatasetsByWorkspace", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -400,6 +402,7 @@ func (client DatasetClient) getDatasetsByWorkspaceNextResults(ctx context.Contex result, err = client.GetDatasetsByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.DatasetClient", "getDatasetsByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/2019-06-01-preview/artifacts/integrationruntimes.go b/services/preview/synapse/2019-06-01-preview/artifacts/integrationruntimes.go index 356de297249e..a6ca418f92da 100644 --- a/services/preview/synapse/2019-06-01-preview/artifacts/integrationruntimes.go +++ b/services/preview/synapse/2019-06-01-preview/artifacts/integrationruntimes.go @@ -65,6 +65,7 @@ func (client IntegrationRuntimesClient) Get(ctx context.Context, integrationRunt result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.IntegrationRuntimesClient", "Get", resp, "Failure responding to request") + return } return @@ -139,6 +140,7 @@ func (client IntegrationRuntimesClient) List(ctx context.Context) (result Integr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.IntegrationRuntimesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/2019-06-01-preview/artifacts/linkedservice.go b/services/preview/synapse/2019-06-01-preview/artifacts/linkedservice.go index 1a0907c3138e..d9ba57fc49fc 100644 --- a/services/preview/synapse/2019-06-01-preview/artifacts/linkedservice.go +++ b/services/preview/synapse/2019-06-01-preview/artifacts/linkedservice.go @@ -259,6 +259,7 @@ func (client LinkedServiceClient) GetLinkedService(ctx context.Context, linkedSe result, err = client.GetLinkedServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.LinkedServiceClient", "GetLinkedService", resp, "Failure responding to request") + return } return @@ -338,6 +339,7 @@ func (client LinkedServiceClient) GetLinkedServicesByWorkspace(ctx context.Conte result.lslr, err = client.GetLinkedServicesByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.LinkedServiceClient", "GetLinkedServicesByWorkspace", resp, "Failure responding to request") + return } if result.lslr.hasNextLink() && result.lslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -400,6 +402,7 @@ func (client LinkedServiceClient) getLinkedServicesByWorkspaceNextResults(ctx co result, err = client.GetLinkedServicesByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.LinkedServiceClient", "getLinkedServicesByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/2019-06-01-preview/artifacts/notebook.go b/services/preview/synapse/2019-06-01-preview/artifacts/notebook.go index 539618851689..479d0b44f59e 100644 --- a/services/preview/synapse/2019-06-01-preview/artifacts/notebook.go +++ b/services/preview/synapse/2019-06-01-preview/artifacts/notebook.go @@ -261,6 +261,7 @@ func (client NotebookClient) GetNotebook(ctx context.Context, notebookName strin result, err = client.GetNotebookResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.NotebookClient", "GetNotebook", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client NotebookClient) GetNotebooksByWorkspace(ctx context.Context) (resul result.nlr, err = client.GetNotebooksByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.NotebookClient", "GetNotebooksByWorkspace", resp, "Failure responding to request") + return } if result.nlr.hasNextLink() && result.nlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -402,6 +404,7 @@ func (client NotebookClient) getNotebooksByWorkspaceNextResults(ctx context.Cont result, err = client.GetNotebooksByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.NotebookClient", "getNotebooksByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -451,6 +454,7 @@ func (client NotebookClient) GetNotebookSummaryByWorkSpace(ctx context.Context) result.nlr, err = client.GetNotebookSummaryByWorkSpaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.NotebookClient", "GetNotebookSummaryByWorkSpace", resp, "Failure responding to request") + return } if result.nlr.hasNextLink() && result.nlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -513,6 +517,7 @@ func (client NotebookClient) getNotebookSummaryByWorkSpaceNextResults(ctx contex result, err = client.GetNotebookSummaryByWorkSpaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.NotebookClient", "getNotebookSummaryByWorkSpaceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/2019-06-01-preview/artifacts/pipeline.go b/services/preview/synapse/2019-06-01-preview/artifacts/pipeline.go index ca4494d302a1..be62b347e5b9 100644 --- a/services/preview/synapse/2019-06-01-preview/artifacts/pipeline.go +++ b/services/preview/synapse/2019-06-01-preview/artifacts/pipeline.go @@ -180,6 +180,7 @@ func (client PipelineClient) CreatePipelineRun(ctx context.Context, pipelineName result, err = client.CreatePipelineRunResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.PipelineClient", "CreatePipelineRun", resp, "Failure responding to request") + return } return @@ -363,6 +364,7 @@ func (client PipelineClient) GetPipeline(ctx context.Context, pipelineName strin result, err = client.GetPipelineResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.PipelineClient", "GetPipeline", resp, "Failure responding to request") + return } return @@ -442,6 +444,7 @@ func (client PipelineClient) GetPipelinesByWorkspace(ctx context.Context) (resul result.plr, err = client.GetPipelinesByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.PipelineClient", "GetPipelinesByWorkspace", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -504,6 +507,7 @@ func (client PipelineClient) getPipelinesByWorkspaceNextResults(ctx context.Cont result, err = client.GetPipelinesByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.PipelineClient", "getPipelinesByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/2019-06-01-preview/artifacts/pipelinerun.go b/services/preview/synapse/2019-06-01-preview/artifacts/pipelinerun.go index 1e938b32355a..e101d1b9d368 100644 --- a/services/preview/synapse/2019-06-01-preview/artifacts/pipelinerun.go +++ b/services/preview/synapse/2019-06-01-preview/artifacts/pipelinerun.go @@ -67,6 +67,7 @@ func (client PipelineRunClient) CancelPipelineRun(ctx context.Context, runID str result, err = client.CancelPipelineRunResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.PipelineRunClient", "CancelPipelineRun", resp, "Failure responding to request") + return } return @@ -145,6 +146,7 @@ func (client PipelineRunClient) GetPipelineRun(ctx context.Context, runID string result, err = client.GetPipelineRunResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.PipelineRunClient", "GetPipelineRun", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client PipelineRunClient) QueryActivityRuns(ctx context.Context, pipelineN result, err = client.QueryActivityRunsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.PipelineRunClient", "QueryActivityRuns", resp, "Failure responding to request") + return } return @@ -320,6 +323,7 @@ func (client PipelineRunClient) QueryPipelineRunsByWorkspace(ctx context.Context result, err = client.QueryPipelineRunsByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.PipelineRunClient", "QueryPipelineRunsByWorkspace", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/2019-06-01-preview/artifacts/sparkjobdefinition.go b/services/preview/synapse/2019-06-01-preview/artifacts/sparkjobdefinition.go index 1b31118e9a81..a5d081075a4c 100644 --- a/services/preview/synapse/2019-06-01-preview/artifacts/sparkjobdefinition.go +++ b/services/preview/synapse/2019-06-01-preview/artifacts/sparkjobdefinition.go @@ -88,6 +88,7 @@ func (client SparkJobDefinitionClient) CreateOrUpdateSparkJobDefinition(ctx cont result, err = client.CreateOrUpdateSparkJobDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.SparkJobDefinitionClient", "CreateOrUpdateSparkJobDefinition", resp, "Failure responding to request") + return } return @@ -263,6 +264,7 @@ func (client SparkJobDefinitionClient) DeleteSparkJobDefinition(ctx context.Cont result, err = client.DeleteSparkJobDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.SparkJobDefinitionClient", "DeleteSparkJobDefinition", resp, "Failure responding to request") + return } return @@ -416,6 +418,7 @@ func (client SparkJobDefinitionClient) GetSparkJobDefinition(ctx context.Context result, err = client.GetSparkJobDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.SparkJobDefinitionClient", "GetSparkJobDefinition", resp, "Failure responding to request") + return } return @@ -495,6 +498,7 @@ func (client SparkJobDefinitionClient) GetSparkJobDefinitionsByWorkspace(ctx con result.sjdlr, err = client.GetSparkJobDefinitionsByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.SparkJobDefinitionClient", "GetSparkJobDefinitionsByWorkspace", resp, "Failure responding to request") + return } if result.sjdlr.hasNextLink() && result.sjdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -557,6 +561,7 @@ func (client SparkJobDefinitionClient) getSparkJobDefinitionsByWorkspaceNextResu result, err = client.GetSparkJobDefinitionsByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.SparkJobDefinitionClient", "getSparkJobDefinitionsByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/2019-06-01-preview/artifacts/sqlpools.go b/services/preview/synapse/2019-06-01-preview/artifacts/sqlpools.go index 350abcbaef19..4b0b6d746ff1 100644 --- a/services/preview/synapse/2019-06-01-preview/artifacts/sqlpools.go +++ b/services/preview/synapse/2019-06-01-preview/artifacts/sqlpools.go @@ -65,6 +65,7 @@ func (client SQLPoolsClient) Get(ctx context.Context, SQLPoolName string) (resul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.SQLPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -139,6 +140,7 @@ func (client SQLPoolsClient) List(ctx context.Context) (result SQLPoolInfoListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.SQLPoolsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/2019-06-01-preview/artifacts/sqlscript.go b/services/preview/synapse/2019-06-01-preview/artifacts/sqlscript.go index 53803fe01112..80cfc35e31ad 100644 --- a/services/preview/synapse/2019-06-01-preview/artifacts/sqlscript.go +++ b/services/preview/synapse/2019-06-01-preview/artifacts/sqlscript.go @@ -82,6 +82,7 @@ func (client SQLScriptClient) CreateOrUpdateSQLScript(ctx context.Context, SQLSc result, err = client.CreateOrUpdateSQLScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.SQLScriptClient", "CreateOrUpdateSQLScript", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client SQLScriptClient) DeleteSQLScript(ctx context.Context, SQLScriptName result, err = client.DeleteSQLScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.SQLScriptClient", "DeleteSQLScript", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client SQLScriptClient) GetSQLScript(ctx context.Context, SQLScriptName st result, err = client.GetSQLScriptResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.SQLScriptClient", "GetSQLScript", resp, "Failure responding to request") + return } return @@ -323,6 +326,7 @@ func (client SQLScriptClient) GetSQLScriptsByWorkspace(ctx context.Context) (res result.sslr, err = client.GetSQLScriptsByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.SQLScriptClient", "GetSQLScriptsByWorkspace", resp, "Failure responding to request") + return } if result.sslr.hasNextLink() && result.sslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +389,7 @@ func (client SQLScriptClient) getSQLScriptsByWorkspaceNextResults(ctx context.Co result, err = client.GetSQLScriptsByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.SQLScriptClient", "getSQLScriptsByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/2019-06-01-preview/artifacts/trigger.go b/services/preview/synapse/2019-06-01-preview/artifacts/trigger.go index 7c1cd2fa897f..5e64710944dd 100644 --- a/services/preview/synapse/2019-06-01-preview/artifacts/trigger.go +++ b/services/preview/synapse/2019-06-01-preview/artifacts/trigger.go @@ -252,6 +252,7 @@ func (client TriggerClient) GetEventSubscriptionStatus(ctx context.Context, trig result, err = client.GetEventSubscriptionStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.TriggerClient", "GetEventSubscriptionStatus", resp, "Failure responding to request") + return } return @@ -338,6 +339,7 @@ func (client TriggerClient) GetTrigger(ctx context.Context, triggerName string, result, err = client.GetTriggerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.TriggerClient", "GetTrigger", resp, "Failure responding to request") + return } return @@ -417,6 +419,7 @@ func (client TriggerClient) GetTriggersByWorkspace(ctx context.Context) (result result.tlr, err = client.GetTriggersByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.TriggerClient", "GetTriggersByWorkspace", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -479,6 +482,7 @@ func (client TriggerClient) getTriggersByWorkspaceNextResults(ctx context.Contex result, err = client.GetTriggersByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.TriggerClient", "getTriggersByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/2019-06-01-preview/artifacts/triggerrun.go b/services/preview/synapse/2019-06-01-preview/artifacts/triggerrun.go index 5efb145baddf..f709c0f5df96 100644 --- a/services/preview/synapse/2019-06-01-preview/artifacts/triggerrun.go +++ b/services/preview/synapse/2019-06-01-preview/artifacts/triggerrun.go @@ -75,6 +75,7 @@ func (client TriggerRunClient) CancelTriggerInstance(ctx context.Context, trigge result, err = client.CancelTriggerInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.TriggerRunClient", "CancelTriggerInstance", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client TriggerRunClient) QueryTriggerRunsByWorkspace(ctx context.Context, result, err = client.QueryTriggerRunsByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.TriggerRunClient", "QueryTriggerRunsByWorkspace", resp, "Failure responding to request") + return } return @@ -241,6 +243,7 @@ func (client TriggerRunClient) RerunTriggerInstance(ctx context.Context, trigger result, err = client.RerunTriggerInstanceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.TriggerRunClient", "RerunTriggerInstance", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/2019-06-01-preview/artifacts/workspace.go b/services/preview/synapse/2019-06-01-preview/artifacts/workspace.go index cabfc5807b40..f850c8614152 100644 --- a/services/preview/synapse/2019-06-01-preview/artifacts/workspace.go +++ b/services/preview/synapse/2019-06-01-preview/artifacts/workspace.go @@ -63,6 +63,7 @@ func (client WorkspaceClient) Get(ctx context.Context) (result Workspace, err er result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.WorkspaceClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/2019-06-01-preview/artifacts/workspacegitrepomanagement.go b/services/preview/synapse/2019-06-01-preview/artifacts/workspacegitrepomanagement.go index bca88072fe32..c9c84f1494eb 100644 --- a/services/preview/synapse/2019-06-01-preview/artifacts/workspacegitrepomanagement.go +++ b/services/preview/synapse/2019-06-01-preview/artifacts/workspacegitrepomanagement.go @@ -74,6 +74,7 @@ func (client WorkspaceGitRepoManagementClient) GetGitHubAccessToken(ctx context. result, err = client.GetGitHubAccessTokenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "artifacts.WorkspaceGitRepoManagementClient", "GetGitHubAccessToken", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/2019-06-01-preview/managedvirtualnetwork/managedprivateendpoints.go b/services/preview/synapse/2019-06-01-preview/managedvirtualnetwork/managedprivateendpoints.go index b9307cc9cfa3..942b78be561e 100644 --- a/services/preview/synapse/2019-06-01-preview/managedvirtualnetwork/managedprivateendpoints.go +++ b/services/preview/synapse/2019-06-01-preview/managedvirtualnetwork/managedprivateendpoints.go @@ -68,6 +68,7 @@ func (client ManagedPrivateEndpointsClient) Create(ctx context.Context, managedV result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedvirtualnetwork.ManagedPrivateEndpointsClient", "Create", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ManagedPrivateEndpointsClient) Delete(ctx context.Context, managedV result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedvirtualnetwork.ManagedPrivateEndpointsClient", "Delete", resp, "Failure responding to request") + return } return @@ -228,6 +230,7 @@ func (client ManagedPrivateEndpointsClient) Get(ctx context.Context, managedVirt result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedvirtualnetwork.ManagedPrivateEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -306,6 +309,7 @@ func (client ManagedPrivateEndpointsClient) List(ctx context.Context, managedVir result.mpelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedvirtualnetwork.ManagedPrivateEndpointsClient", "List", resp, "Failure responding to request") + return } if result.mpelr.hasNextLink() && result.mpelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -372,6 +376,7 @@ func (client ManagedPrivateEndpointsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedvirtualnetwork.ManagedPrivateEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/2019-11-01-preview/monitoring/monitoring.go b/services/preview/synapse/2019-11-01-preview/monitoring/monitoring.go index 7cdcd0a2abe5..a613f4d4b6f6 100644 --- a/services/preview/synapse/2019-11-01-preview/monitoring/monitoring.go +++ b/services/preview/synapse/2019-11-01-preview/monitoring/monitoring.go @@ -66,6 +66,7 @@ func (client Client) GetSparkJobList(ctx context.Context, APIVersion string, xMs result, err = client.GetSparkJobListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "monitoring.Client", "GetSparkJobList", resp, "Failure responding to request") + return } return @@ -142,6 +143,7 @@ func (client Client) GetSQLJobQueryString(ctx context.Context, APIVersion string result, err = client.GetSQLJobQueryStringResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "monitoring.Client", "GetSQLJobQueryString", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/2019-11-01-preview/spark/batch.go b/services/preview/synapse/2019-11-01-preview/spark/batch.go index 53af79052526..bb8cb1ec10f1 100644 --- a/services/preview/synapse/2019-11-01-preview/spark/batch.go +++ b/services/preview/synapse/2019-11-01-preview/spark/batch.go @@ -66,6 +66,7 @@ func (client BatchClient) CancelSparkBatchJob(ctx context.Context, batchID int32 result, err = client.CancelSparkBatchJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "spark.BatchClient", "CancelSparkBatchJob", resp, "Failure responding to request") + return } return @@ -145,6 +146,7 @@ func (client BatchClient) CreateSparkBatchJob(ctx context.Context, sparkBatchJob result, err = client.CreateSparkBatchJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "spark.BatchClient", "CreateSparkBatchJob", resp, "Failure responding to request") + return } return @@ -222,6 +224,7 @@ func (client BatchClient) GetSparkBatchJob(ctx context.Context, batchID int32, d result, err = client.GetSparkBatchJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "spark.BatchClient", "GetSparkBatchJob", resp, "Failure responding to request") + return } return @@ -303,6 +306,7 @@ func (client BatchClient) GetSparkBatchJobs(ctx context.Context, from *int32, si result, err = client.GetSparkBatchJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "spark.BatchClient", "GetSparkBatchJobs", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/2019-11-01-preview/spark/session.go b/services/preview/synapse/2019-11-01-preview/spark/session.go index 56a235761e3e..a3fbd7c71733 100644 --- a/services/preview/synapse/2019-11-01-preview/spark/session.go +++ b/services/preview/synapse/2019-11-01-preview/spark/session.go @@ -66,6 +66,7 @@ func (client SessionClient) CancelSparkSession(ctx context.Context, sessionID in result, err = client.CancelSparkSessionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "spark.SessionClient", "CancelSparkSession", resp, "Failure responding to request") + return } return @@ -138,6 +139,7 @@ func (client SessionClient) CancelSparkStatement(ctx context.Context, sessionID result, err = client.CancelSparkStatementResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "spark.SessionClient", "CancelSparkStatement", resp, "Failure responding to request") + return } return @@ -218,6 +220,7 @@ func (client SessionClient) CreateSparkSession(ctx context.Context, sparkSession result, err = client.CreateSparkSessionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "spark.SessionClient", "CreateSparkSession", resp, "Failure responding to request") + return } return @@ -295,6 +298,7 @@ func (client SessionClient) CreateSparkStatement(ctx context.Context, sessionID result, err = client.CreateSparkStatementResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "spark.SessionClient", "CreateSparkStatement", resp, "Failure responding to request") + return } return @@ -370,6 +374,7 @@ func (client SessionClient) GetSparkSession(ctx context.Context, sessionID int32 result, err = client.GetSparkSessionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "spark.SessionClient", "GetSparkSession", resp, "Failure responding to request") + return } return @@ -451,6 +456,7 @@ func (client SessionClient) GetSparkSessions(ctx context.Context, from *int32, s result, err = client.GetSparkSessionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "spark.SessionClient", "GetSparkSessions", resp, "Failure responding to request") + return } return @@ -532,6 +538,7 @@ func (client SessionClient) GetSparkStatement(ctx context.Context, sessionID int result, err = client.GetSparkStatementResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "spark.SessionClient", "GetSparkStatement", resp, "Failure responding to request") + return } return @@ -605,6 +612,7 @@ func (client SessionClient) GetSparkStatements(ctx context.Context, sessionID in result, err = client.GetSparkStatementsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "spark.SessionClient", "GetSparkStatements", resp, "Failure responding to request") + return } return @@ -677,6 +685,7 @@ func (client SessionClient) ResetSparkSessionTimeout(ctx context.Context, sessio result, err = client.ResetSparkSessionTimeoutResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "spark.SessionClient", "ResetSparkSessionTimeout", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/2020-02-01-preview/accesscontrol/client.go b/services/preview/synapse/2020-02-01-preview/accesscontrol/client.go index 435514ab011f..aa78bc2a9111 100644 --- a/services/preview/synapse/2020-02-01-preview/accesscontrol/client.go +++ b/services/preview/synapse/2020-02-01-preview/accesscontrol/client.go @@ -85,6 +85,7 @@ func (client BaseClient) CreateRoleAssignment(ctx context.Context, createRoleAss result, err = client.CreateRoleAssignmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "accesscontrol.BaseClient", "CreateRoleAssignment", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client BaseClient) DeleteRoleAssignmentByID(ctx context.Context, roleAssig result, err = client.DeleteRoleAssignmentByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "accesscontrol.BaseClient", "DeleteRoleAssignmentByID", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client BaseClient) GetCallerRoleAssignments(ctx context.Context) (result L result, err = client.GetCallerRoleAssignmentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "accesscontrol.BaseClient", "GetCallerRoleAssignments", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client BaseClient) GetRoleAssignmentByID(ctx context.Context, roleAssignme result, err = client.GetRoleAssignmentByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "accesscontrol.BaseClient", "GetRoleAssignmentByID", resp, "Failure responding to request") + return } return @@ -394,6 +398,7 @@ func (client BaseClient) GetRoleAssignments(ctx context.Context, roleID string, result, err = client.GetRoleAssignmentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "accesscontrol.BaseClient", "GetRoleAssignments", resp, "Failure responding to request") + return } return @@ -476,6 +481,7 @@ func (client BaseClient) GetRoleDefinitionByID(ctx context.Context, roleID strin result, err = client.GetRoleDefinitionByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "accesscontrol.BaseClient", "GetRoleDefinitionByID", resp, "Failure responding to request") + return } return @@ -551,6 +557,7 @@ func (client BaseClient) GetRoleDefinitions(ctx context.Context) (result RolesLi result.rlr, err = client.GetRoleDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "accesscontrol.BaseClient", "GetRoleDefinitions", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -613,6 +620,7 @@ func (client BaseClient) getRoleDefinitionsNextResults(ctx context.Context, last result, err = client.GetRoleDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "accesscontrol.BaseClient", "getRoleDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/bigdatapools.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/bigdatapools.go index 231fa514ca8c..5aca2b315f42 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/bigdatapools.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/bigdatapools.go @@ -267,6 +267,7 @@ func (client BigDataPoolsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.BigDataPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -354,6 +355,7 @@ func (client BigDataPoolsClient) ListByWorkspace(ctx context.Context, resourceGr result.bdprilr, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.BigDataPoolsClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.bdprilr.hasNextLink() && result.bdprilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -418,6 +420,7 @@ func (client BigDataPoolsClient) listByWorkspaceNextResults(ctx context.Context, result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.BigDataPoolsClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -481,6 +484,7 @@ func (client BigDataPoolsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.BigDataPoolsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/datamaskingpolicies.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/datamaskingpolicies.go index d1bc5ebc3c69..5116c051af0e 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/datamaskingpolicies.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/datamaskingpolicies.go @@ -86,6 +86,7 @@ func (client DataMaskingPoliciesClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.DataMaskingPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client DataMaskingPoliciesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.DataMaskingPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/datamaskingrules.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/datamaskingrules.go index 9c593c004e10..ee9acb3f1506 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/datamaskingrules.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/datamaskingrules.go @@ -93,6 +93,7 @@ func (client DataMaskingRulesClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.DataMaskingRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client DataMaskingRulesClient) ListBySQLPool(ctx context.Context, resource result, err = client.ListBySQLPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.DataMaskingRulesClient", "ListBySQLPool", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/extendedsqlpoolblobauditingpolicies.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/extendedsqlpoolblobauditingpolicies.go index bda413893dca..193fc014e967 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/extendedsqlpoolblobauditingpolicies.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/extendedsqlpoolblobauditingpolicies.go @@ -87,6 +87,7 @@ func (client ExtendedSQLPoolBlobAuditingPoliciesClient) CreateOrUpdate(ctx conte result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.ExtendedSQLPoolBlobAuditingPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client ExtendedSQLPoolBlobAuditingPoliciesClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.ExtendedSQLPoolBlobAuditingPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -266,6 +268,7 @@ func (client ExtendedSQLPoolBlobAuditingPoliciesClient) ListBySQLPool(ctx contex result.espbaplr, err = client.ListBySQLPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.ExtendedSQLPoolBlobAuditingPoliciesClient", "ListBySQLPool", resp, "Failure responding to request") + return } if result.espbaplr.hasNextLink() && result.espbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -331,6 +334,7 @@ func (client ExtendedSQLPoolBlobAuditingPoliciesClient) listBySQLPoolNextResults result, err = client.ListBySQLPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.ExtendedSQLPoolBlobAuditingPoliciesClient", "listBySQLPoolNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimeauthkeys.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimeauthkeys.go index 75334835fa3b..122ed417ecc6 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimeauthkeys.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimeauthkeys.go @@ -85,6 +85,7 @@ func (client IntegrationRuntimeAuthKeysClient) List(ctx context.Context, resourc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.IntegrationRuntimeAuthKeysClient", "List", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client IntegrationRuntimeAuthKeysClient) Regenerate(ctx context.Context, r result, err = client.RegenerateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.IntegrationRuntimeAuthKeysClient", "Regenerate", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimeconnectioninfos.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimeconnectioninfos.go index da88e15b1377..bbfc07799028 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimeconnectioninfos.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimeconnectioninfos.go @@ -86,6 +86,7 @@ func (client IntegrationRuntimeConnectionInfosClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.IntegrationRuntimeConnectionInfosClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimecredentials.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimecredentials.go index 88eeae698966..44190171d40a 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimecredentials.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimecredentials.go @@ -88,6 +88,7 @@ func (client IntegrationRuntimeCredentialsClient) Sync(ctx context.Context, reso result, err = client.SyncResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.IntegrationRuntimeCredentialsClient", "Sync", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimemonitoringdata.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimemonitoringdata.go index 5d6e33ba7e9b..a74bfa0d6b13 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimemonitoringdata.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimemonitoringdata.go @@ -85,6 +85,7 @@ func (client IntegrationRuntimeMonitoringDataClient) List(ctx context.Context, r result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.IntegrationRuntimeMonitoringDataClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimenodeipaddress.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimenodeipaddress.go index 146e6d9d0066..2586c45e710b 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimenodeipaddress.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimenodeipaddress.go @@ -86,6 +86,7 @@ func (client IntegrationRuntimeNodeIPAddressClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.IntegrationRuntimeNodeIPAddressClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimenodes.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimenodes.go index 3a17706e9af0..df38be3e1c7a 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimenodes.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimenodes.go @@ -86,6 +86,7 @@ func (client IntegrationRuntimeNodesClient) Delete(ctx context.Context, resource result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.IntegrationRuntimeNodesClient", "Delete", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client IntegrationRuntimeNodesClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.IntegrationRuntimeNodesClient", "Get", resp, "Failure responding to request") + return } return @@ -264,6 +266,7 @@ func (client IntegrationRuntimeNodesClient) Update(ctx context.Context, resource result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.IntegrationRuntimeNodesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimeobjectmetadata.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimeobjectmetadata.go index e9033a209226..e6e03b8d1404 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimeobjectmetadata.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimeobjectmetadata.go @@ -86,6 +86,7 @@ func (client IntegrationRuntimeObjectMetadataClient) List(ctx context.Context, r result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.IntegrationRuntimeObjectMetadataClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimes.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimes.go index f14866ac6abc..193f33070ff2 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimes.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimes.go @@ -443,6 +443,7 @@ func (client IntegrationRuntimesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.IntegrationRuntimesClient", "Get", resp, "Failure responding to request") + return } return @@ -534,6 +535,7 @@ func (client IntegrationRuntimesClient) ListByWorkspace(ctx context.Context, res result.irlr, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.IntegrationRuntimesClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.irlr.hasNextLink() && result.irlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -598,6 +600,7 @@ func (client IntegrationRuntimesClient) listByWorkspaceNextResults(ctx context.C result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.IntegrationRuntimesClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -834,6 +837,7 @@ func (client IntegrationRuntimesClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.IntegrationRuntimesClient", "Update", resp, "Failure responding to request") + return } return @@ -923,6 +927,7 @@ func (client IntegrationRuntimesClient) Upgrade(ctx context.Context, resourceGro result, err = client.UpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.IntegrationRuntimesClient", "Upgrade", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimestatus.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimestatus.go index 75fcac214eed..95ed3c473ef6 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimestatus.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimestatus.go @@ -85,6 +85,7 @@ func (client IntegrationRuntimeStatusClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.IntegrationRuntimeStatusClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/ipfirewallrules.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/ipfirewallrules.go index 51ba6a2f71a0..732ff82601a0 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/ipfirewallrules.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/ipfirewallrules.go @@ -261,6 +261,7 @@ func (client IPFirewallRulesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.IPFirewallRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +349,7 @@ func (client IPFirewallRulesClient) ListByWorkspace(ctx context.Context, resourc result.ifrilr, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.IPFirewallRulesClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.ifrilr.hasNextLink() && result.ifrilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -412,6 +414,7 @@ func (client IPFirewallRulesClient) listByWorkspaceNextResults(ctx context.Conte result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.IPFirewallRulesClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/keys.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/keys.go index bd753cd19b11..ddcefaed405a 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/keys.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/keys.go @@ -85,6 +85,7 @@ func (client KeysClient) CreateOrUpdate(ctx context.Context, resourceGroupName s result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.KeysClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client KeysClient) Delete(ctx context.Context, resourceGroupName string, w result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.KeysClient", "Delete", resp, "Failure responding to request") + return } return @@ -261,6 +263,7 @@ func (client KeysClient) Get(ctx context.Context, resourceGroupName string, work result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.KeysClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +351,7 @@ func (client KeysClient) ListByWorkspace(ctx context.Context, resourceGroupName result.kilr, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.KeysClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.kilr.hasNextLink() && result.kilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -412,6 +416,7 @@ func (client KeysClient) listByWorkspaceNextResults(ctx context.Context, lastRes result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.KeysClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/operations.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/operations.go index 1c257d2e3a10..420fc5721bb3 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/operations.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/operations.go @@ -78,6 +78,7 @@ func (client OperationsClient) CheckNameAvailability(ctx context.Context, reques result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.OperationsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client OperationsClient) GetAzureAsyncHeaderResult(ctx context.Context, re result, err = client.GetAzureAsyncHeaderResultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.OperationsClient", "GetAzureAsyncHeaderResult", resp, "Failure responding to request") + return } return @@ -251,6 +253,7 @@ func (client OperationsClient) GetLocationHeaderResult(ctx context.Context, reso result, err = client.GetLocationHeaderResultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.OperationsClient", "GetLocationHeaderResult", resp, "Failure responding to request") + return } return @@ -323,6 +326,7 @@ func (client OperationsClient) List(ctx context.Context) (result ListAvailableRp result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privateendpointconnections.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privateendpointconnections.go index 62117403ca7e..07e631042881 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privateendpointconnections.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privateendpointconnections.go @@ -262,6 +262,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +350,7 @@ func (client PrivateEndpointConnectionsClient) List(ctx context.Context, resourc result.pecl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.PrivateEndpointConnectionsClient", "List", resp, "Failure responding to request") + return } if result.pecl.hasNextLink() && result.pecl.IsEmpty() { err = result.NextWithContext(ctx) @@ -413,6 +415,7 @@ func (client PrivateEndpointConnectionsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.PrivateEndpointConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privateendpointconnectionsprivatelinkhub.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privateendpointconnectionsprivatelinkhub.go index 414e8a8b513b..840b5c0ddc6e 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privateendpointconnectionsprivatelinkhub.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privateendpointconnectionsprivatelinkhub.go @@ -86,6 +86,7 @@ func (client PrivateEndpointConnectionsPrivateLinkHubClient) List(ctx context.Co result.pecfplhrcr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.PrivateEndpointConnectionsPrivateLinkHubClient", "List", resp, "Failure responding to request") + return } if result.pecfplhrcr.hasNextLink() && result.pecfplhrcr.IsEmpty() { err = result.NextWithContext(ctx) @@ -150,6 +151,7 @@ func (client PrivateEndpointConnectionsPrivateLinkHubClient) listNextResults(ctx result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.PrivateEndpointConnectionsPrivateLinkHubClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privatelinkhubs.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privatelinkhubs.go index c8928a1b0652..bef83fac132b 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privatelinkhubs.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privatelinkhubs.go @@ -84,6 +84,7 @@ func (client PrivateLinkHubsClient) CreateOrUpdate(ctx context.Context, privateL result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.PrivateLinkHubsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -255,6 +256,7 @@ func (client PrivateLinkHubsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.PrivateLinkHubsClient", "Get", resp, "Failure responding to request") + return } return @@ -334,6 +336,7 @@ func (client PrivateLinkHubsClient) List(ctx context.Context) (result PrivateLin result.plhilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.PrivateLinkHubsClient", "List", resp, "Failure responding to request") + return } if result.plhilr.hasNextLink() && result.plhilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -396,6 +399,7 @@ func (client PrivateLinkHubsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.PrivateLinkHubsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -457,6 +461,7 @@ func (client PrivateLinkHubsClient) ListByResourceGroup(ctx context.Context, res result.plhilr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.PrivateLinkHubsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.plhilr.hasNextLink() && result.plhilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -520,6 +525,7 @@ func (client PrivateLinkHubsClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.PrivateLinkHubsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -582,6 +588,7 @@ func (client PrivateLinkHubsClient) Update(ctx context.Context, privateLinkHubPa result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.PrivateLinkHubsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privatelinkresources.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privatelinkresources.go index 003ebea025d4..7cca08373b27 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privatelinkresources.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privatelinkresources.go @@ -85,6 +85,7 @@ func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.PrivateLinkResourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client PrivateLinkResourcesClient) List(ctx context.Context, resourceGroup result.plrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.PrivateLinkResourcesClient", "List", resp, "Failure responding to request") + return } if result.plrlr.hasNextLink() && result.plrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -236,6 +238,7 @@ func (client PrivateLinkResourcesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.PrivateLinkResourcesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/restorabledroppedsqlpools.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/restorabledroppedsqlpools.go index 088f76c314c2..233837a773d1 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/restorabledroppedsqlpools.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/restorabledroppedsqlpools.go @@ -86,6 +86,7 @@ func (client RestorableDroppedSQLPoolsClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.RestorableDroppedSQLPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client RestorableDroppedSQLPoolsClient) ListByWorkspace(ctx context.Contex result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.RestorableDroppedSQLPoolsClient", "ListByWorkspace", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolblobauditingpolicies.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolblobauditingpolicies.go index 220eb9bf5bd2..01ded21c1ab4 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolblobauditingpolicies.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolblobauditingpolicies.go @@ -86,6 +86,7 @@ func (client SQLPoolBlobAuditingPoliciesClient) CreateOrUpdate(ctx context.Conte result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolBlobAuditingPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client SQLPoolBlobAuditingPoliciesClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolBlobAuditingPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -266,6 +268,7 @@ func (client SQLPoolBlobAuditingPoliciesClient) ListBySQLPool(ctx context.Contex result.spbaplr, err = client.ListBySQLPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolBlobAuditingPoliciesClient", "ListBySQLPool", resp, "Failure responding to request") + return } if result.spbaplr.hasNextLink() && result.spbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -331,6 +334,7 @@ func (client SQLPoolBlobAuditingPoliciesClient) listBySQLPoolNextResults(ctx con result, err = client.ListBySQLPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolBlobAuditingPoliciesClient", "listBySQLPoolNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolcolumns.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolcolumns.go index fd8613d4b60c..54010dd1920b 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolcolumns.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolcolumns.go @@ -87,6 +87,7 @@ func (client SQLPoolColumnsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolColumnsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolconnectionpolicies.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolconnectionpolicies.go index 2e02234cacec..b36d1082cf91 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolconnectionpolicies.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolconnectionpolicies.go @@ -85,6 +85,7 @@ func (client SQLPoolConnectionPoliciesClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolConnectionPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooldatawarehouseuseractivities.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooldatawarehouseuseractivities.go index 3ad9fa1f1cb1..81f2c7f69962 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooldatawarehouseuseractivities.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooldatawarehouseuseractivities.go @@ -86,6 +86,7 @@ func (client SQLPoolDataWarehouseUserActivitiesClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolDataWarehouseUserActivitiesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolgeobackuppolicies.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolgeobackuppolicies.go index 8f086b787056..c473fcadae2b 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolgeobackuppolicies.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolgeobackuppolicies.go @@ -85,6 +85,7 @@ func (client SQLPoolGeoBackupPoliciesClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolGeoBackupPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client SQLPoolGeoBackupPoliciesClient) List(ctx context.Context, resourceG result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolGeoBackupPoliciesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolmetadatasyncconfigs.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolmetadatasyncconfigs.go index 007da50154fc..95066740468c 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolmetadatasyncconfigs.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolmetadatasyncconfigs.go @@ -86,6 +86,7 @@ func (client SQLPoolMetadataSyncConfigsClient) Create(ctx context.Context, resou result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolMetadataSyncConfigsClient", "Create", resp, "Failure responding to request") + return } return @@ -175,6 +176,7 @@ func (client SQLPoolMetadataSyncConfigsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolMetadataSyncConfigsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooloperationresults.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooloperationresults.go index 28e0c6979305..4efd6ce5fa37 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooloperationresults.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooloperationresults.go @@ -86,6 +86,7 @@ func (client SQLPoolOperationResultsClient) GetLocationHeaderResult(ctx context. result, err = client.GetLocationHeaderResultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolOperationResultsClient", "GetLocationHeaderResult", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooloperations.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooloperations.go index 4bc3fc52983b..bf0c747a9663 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooloperations.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooloperations.go @@ -86,6 +86,7 @@ func (client SQLPoolOperationsClient) List(ctx context.Context, resourceGroupNam result.spbapspolr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolOperationsClient", "List", resp, "Failure responding to request") + return } if result.spbapspolr.hasNextLink() && result.spbapspolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -151,6 +152,7 @@ func (client SQLPoolOperationsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolOperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolreplicationlinks.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolreplicationlinks.go index 4446d7f31d14..5527e1b6ffda 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolreplicationlinks.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolreplicationlinks.go @@ -86,6 +86,7 @@ func (client SQLPoolReplicationLinksClient) GetByName(ctx context.Context, resou result, err = client.GetByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolReplicationLinksClient", "GetByName", resp, "Failure responding to request") + return } return @@ -175,6 +176,7 @@ func (client SQLPoolReplicationLinksClient) List(ctx context.Context, resourceGr result.rllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolReplicationLinksClient", "List", resp, "Failure responding to request") + return } if result.rllr.hasNextLink() && result.rllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -240,6 +242,7 @@ func (client SQLPoolReplicationLinksClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolReplicationLinksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolrestorepoints.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolrestorepoints.go index 90bb2bf54a5f..2d4ce3b01c33 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolrestorepoints.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolrestorepoints.go @@ -178,6 +178,7 @@ func (client SQLPoolRestorePointsClient) Delete(ctx context.Context, resourceGro result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolRestorePointsClient", "Delete", resp, "Failure responding to request") + return } return @@ -266,6 +267,7 @@ func (client SQLPoolRestorePointsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolRestorePointsClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +357,7 @@ func (client SQLPoolRestorePointsClient) List(ctx context.Context, resourceGroup result.rplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolRestorePointsClient", "List", resp, "Failure responding to request") + return } if result.rplr.hasNextLink() && result.rplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -420,6 +423,7 @@ func (client SQLPoolRestorePointsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolRestorePointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpools.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpools.go index 4962ec0a63c0..7b8b01bf72b5 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpools.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpools.go @@ -261,6 +261,7 @@ func (client SQLPoolsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +349,7 @@ func (client SQLPoolsClient) ListByWorkspace(ctx context.Context, resourceGroupN result.spilr, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolsClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.spilr.hasNextLink() && result.spilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -412,6 +414,7 @@ func (client SQLPoolsClient) listByWorkspaceNextResults(ctx context.Context, las result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolsClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -649,6 +652,7 @@ func (client SQLPoolsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolschemas.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolschemas.go index 0e37de87b0d7..ddb4298d1771 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolschemas.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolschemas.go @@ -85,6 +85,7 @@ func (client SQLPoolSchemasClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolSchemasClient", "Get", resp, "Failure responding to request") + return } return @@ -175,6 +176,7 @@ func (client SQLPoolSchemasClient) List(ctx context.Context, resourceGroupName s result.spslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolSchemasClient", "List", resp, "Failure responding to request") + return } if result.spslr.hasNextLink() && result.spslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -243,6 +245,7 @@ func (client SQLPoolSchemasClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolSchemasClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolsecurityalertpolicies.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolsecurityalertpolicies.go index d85eb3ed0aef..731314c038cb 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolsecurityalertpolicies.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolsecurityalertpolicies.go @@ -86,6 +86,7 @@ func (client SQLPoolSecurityAlertPoliciesClient) CreateOrUpdate(ctx context.Cont result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolSecurityAlertPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client SQLPoolSecurityAlertPoliciesClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolSecurityAlertPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -265,6 +267,7 @@ func (client SQLPoolSecurityAlertPoliciesClient) List(ctx context.Context, resou result.lspsap, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolSecurityAlertPoliciesClient", "List", resp, "Failure responding to request") + return } if result.lspsap.hasNextLink() && result.lspsap.IsEmpty() { err = result.NextWithContext(ctx) @@ -330,6 +333,7 @@ func (client SQLPoolSecurityAlertPoliciesClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolSecurityAlertPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolsensitivitylabels.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolsensitivitylabels.go index 6eb4c42f1e4f..ce9344156d8b 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolsensitivitylabels.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolsensitivitylabels.go @@ -89,6 +89,7 @@ func (client SQLPoolSensitivityLabelsClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolSensitivityLabelsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client SQLPoolSensitivityLabelsClient) Delete(ctx context.Context, resourc result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolSensitivityLabelsClient", "Delete", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client SQLPoolSensitivityLabelsClient) DisableRecommendation(ctx context.C result, err = client.DisableRecommendationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolSensitivityLabelsClient", "DisableRecommendation", resp, "Failure responding to request") + return } return @@ -372,6 +375,7 @@ func (client SQLPoolSensitivityLabelsClient) EnableRecommendation(ctx context.Co result, err = client.EnableRecommendationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolSensitivityLabelsClient", "EnableRecommendation", resp, "Failure responding to request") + return } return @@ -466,6 +470,7 @@ func (client SQLPoolSensitivityLabelsClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolSensitivityLabelsClient", "Get", resp, "Failure responding to request") + return } return @@ -559,6 +564,7 @@ func (client SQLPoolSensitivityLabelsClient) ListCurrent(ctx context.Context, re result.sllr, err = client.ListCurrentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolSensitivityLabelsClient", "ListCurrent", resp, "Failure responding to request") + return } if result.sllr.hasNextLink() && result.sllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -627,6 +633,7 @@ func (client SQLPoolSensitivityLabelsClient) listCurrentNextResults(ctx context. result, err = client.ListCurrentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolSensitivityLabelsClient", "listCurrentNextResults", resp, "Failure responding to next results request") + return } return } @@ -693,6 +700,7 @@ func (client SQLPoolSensitivityLabelsClient) ListRecommended(ctx context.Context result.sllr, err = client.ListRecommendedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolSensitivityLabelsClient", "ListRecommended", resp, "Failure responding to request") + return } if result.sllr.hasNextLink() && result.sllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -767,6 +775,7 @@ func (client SQLPoolSensitivityLabelsClient) listRecommendedNextResults(ctx cont result, err = client.ListRecommendedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolSensitivityLabelsClient", "listRecommendedNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooltablecolumns.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooltablecolumns.go index 1297ac13154f..52fab180b7c1 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooltablecolumns.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooltablecolumns.go @@ -89,6 +89,7 @@ func (client SQLPoolTableColumnsClient) ListByTableName(ctx context.Context, res result.spclr, err = client.ListByTableNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolTableColumnsClient", "ListByTableName", resp, "Failure responding to request") + return } if result.spclr.hasNextLink() && result.spclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -159,6 +160,7 @@ func (client SQLPoolTableColumnsClient) listByTableNameNextResults(ctx context.C result, err = client.ListByTableNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolTableColumnsClient", "listByTableNameNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooltables.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooltables.go index 52a7465d422e..99b44c6360a9 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooltables.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooltables.go @@ -86,6 +86,7 @@ func (client SQLPoolTablesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolTablesClient", "Get", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client SQLPoolTablesClient) ListBySchema(ctx context.Context, resourceGrou result.sptlr, err = client.ListBySchemaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolTablesClient", "ListBySchema", resp, "Failure responding to request") + return } if result.sptlr.hasNextLink() && result.sptlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -247,6 +249,7 @@ func (client SQLPoolTablesClient) listBySchemaNextResults(ctx context.Context, l result, err = client.ListBySchemaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolTablesClient", "listBySchemaNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooltransparentdataencryptions.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooltransparentdataencryptions.go index 98e903d5b392..e267f0aa049e 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooltransparentdataencryptions.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooltransparentdataencryptions.go @@ -87,6 +87,7 @@ func (client SQLPoolTransparentDataEncryptionsClient) CreateOrUpdate(ctx context result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolTransparentDataEncryptionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client SQLPoolTransparentDataEncryptionsClient) Get(ctx context.Context, r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolTransparentDataEncryptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -267,6 +269,7 @@ func (client SQLPoolTransparentDataEncryptionsClient) List(ctx context.Context, result.tdelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolTransparentDataEncryptionsClient", "List", resp, "Failure responding to request") + return } if result.tdelr.hasNextLink() && result.tdelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -332,6 +335,7 @@ func (client SQLPoolTransparentDataEncryptionsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolTransparentDataEncryptionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolusages.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolusages.go index 448d3f4fe823..28b75f781078 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolusages.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolusages.go @@ -85,6 +85,7 @@ func (client SQLPoolUsagesClient) List(ctx context.Context, resourceGroupName st result.spulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolUsagesClient", "List", resp, "Failure responding to request") + return } if result.spulr.hasNextLink() && result.spulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -150,6 +151,7 @@ func (client SQLPoolUsagesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolUsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolvulnerabilityassessmentrulebaselines.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolvulnerabilityassessmentrulebaselines.go index d254ce919ebf..18df8d1b1b38 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolvulnerabilityassessmentrulebaselines.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolvulnerabilityassessmentrulebaselines.go @@ -93,6 +93,7 @@ func (client SQLPoolVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdate(c result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolVulnerabilityAssessmentRuleBaselinesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client SQLPoolVulnerabilityAssessmentRuleBaselinesClient) Delete(ctx conte result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolVulnerabilityAssessmentRuleBaselinesClient", "Delete", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client SQLPoolVulnerabilityAssessmentRuleBaselinesClient) Get(ctx context. result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolVulnerabilityAssessmentRuleBaselinesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolvulnerabilityassessments.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolvulnerabilityassessments.go index 2d1b38135cca..a78fc6f804e1 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolvulnerabilityassessments.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolvulnerabilityassessments.go @@ -86,6 +86,7 @@ func (client SQLPoolVulnerabilityAssessmentsClient) CreateOrUpdate(ctx context.C result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolVulnerabilityAssessmentsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client SQLPoolVulnerabilityAssessmentsClient) Delete(ctx context.Context, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolVulnerabilityAssessmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -263,6 +265,7 @@ func (client SQLPoolVulnerabilityAssessmentsClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolVulnerabilityAssessmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -352,6 +355,7 @@ func (client SQLPoolVulnerabilityAssessmentsClient) List(ctx context.Context, re result.spvalr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolVulnerabilityAssessmentsClient", "List", resp, "Failure responding to request") + return } if result.spvalr.hasNextLink() && result.spvalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -417,6 +421,7 @@ func (client SQLPoolVulnerabilityAssessmentsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolVulnerabilityAssessmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolvulnerabilityassessmentscans.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolvulnerabilityassessmentscans.go index bf5ef5270b3c..93ecc62fc5c8 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolvulnerabilityassessmentscans.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolvulnerabilityassessmentscans.go @@ -87,6 +87,7 @@ func (client SQLPoolVulnerabilityAssessmentScansClient) Export(ctx context.Conte result, err = client.ExportResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolVulnerabilityAssessmentScansClient", "Export", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client SQLPoolVulnerabilityAssessmentScansClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolVulnerabilityAssessmentScansClient", "Get", resp, "Failure responding to request") + return } return @@ -356,6 +358,7 @@ func (client SQLPoolVulnerabilityAssessmentScansClient) List(ctx context.Context result.vasrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolVulnerabilityAssessmentScansClient", "List", resp, "Failure responding to request") + return } if result.vasrlr.hasNextLink() && result.vasrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -422,6 +425,7 @@ func (client SQLPoolVulnerabilityAssessmentScansClient) listNextResults(ctx cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolVulnerabilityAssessmentScansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolworkloadclassifier.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolworkloadclassifier.go index bcd2919d2316..4f76bcf986bc 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolworkloadclassifier.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolworkloadclassifier.go @@ -274,6 +274,7 @@ func (client SQLPoolWorkloadClassifierClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolWorkloadClassifierClient", "Get", resp, "Failure responding to request") + return } return @@ -365,6 +366,7 @@ func (client SQLPoolWorkloadClassifierClient) List(ctx context.Context, resource result.wclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolWorkloadClassifierClient", "List", resp, "Failure responding to request") + return } if result.wclr.hasNextLink() && result.wclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -431,6 +433,7 @@ func (client SQLPoolWorkloadClassifierClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolWorkloadClassifierClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolworkloadgroup.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolworkloadgroup.go index 2c29af8b0741..6c10952d09be 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolworkloadgroup.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolworkloadgroup.go @@ -272,6 +272,7 @@ func (client SQLPoolWorkloadGroupClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolWorkloadGroupClient", "Get", resp, "Failure responding to request") + return } return @@ -361,6 +362,7 @@ func (client SQLPoolWorkloadGroupClient) List(ctx context.Context, resourceGroup result.wglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolWorkloadGroupClient", "List", resp, "Failure responding to request") + return } if result.wglr.hasNextLink() && result.wglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -426,6 +428,7 @@ func (client SQLPoolWorkloadGroupClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolWorkloadGroupClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspaceaadadmins.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspaceaadadmins.go index 13814fa8dcd6..4c6e37076222 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspaceaadadmins.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspaceaadadmins.go @@ -256,6 +256,7 @@ func (client WorkspaceAadAdminsClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceAadAdminsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedidentitysqlcontrolsettings.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedidentitysqlcontrolsettings.go index ea9649befd44..88937fb659b0 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedidentitysqlcontrolsettings.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedidentitysqlcontrolsettings.go @@ -86,6 +86,7 @@ func (client WorkspaceManagedIdentitySQLControlSettingsClient) CreateOrUpdate(ct result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedIdentitySQLControlSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client WorkspaceManagedIdentitySQLControlSettingsClient) Get(ctx context.C result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedIdentitySQLControlSettingsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverblobauditingpolicies.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverblobauditingpolicies.go index b96cedeadb58..e92da2790263 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverblobauditingpolicies.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverblobauditingpolicies.go @@ -174,6 +174,7 @@ func (client WorkspaceManagedSQLServerBlobAuditingPoliciesClient) Get(ctx contex result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedSQLServerBlobAuditingPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -261,6 +262,7 @@ func (client WorkspaceManagedSQLServerBlobAuditingPoliciesClient) ListByWorkspac result.sbaplr, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedSQLServerBlobAuditingPoliciesClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.sbaplr.hasNextLink() && result.sbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -325,6 +327,7 @@ func (client WorkspaceManagedSQLServerBlobAuditingPoliciesClient) listByWorkspac result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedSQLServerBlobAuditingPoliciesClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverextendedblobauditingpolicies.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverextendedblobauditingpolicies.go index 692933c2f381..33d965bd1a14 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverextendedblobauditingpolicies.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverextendedblobauditingpolicies.go @@ -174,6 +174,7 @@ func (client WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient) Get(ct result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -261,6 +262,7 @@ func (client WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient) ListBy result.esbaplr, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient", "ListByWorkspace", resp, "Failure responding to request") + return } if result.esbaplr.hasNextLink() && result.esbaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -325,6 +327,7 @@ func (client WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient) listBy result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverrecoverablesqlpools.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverrecoverablesqlpools.go index c3383c5cc6f3..23f59d058534 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverrecoverablesqlpools.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverrecoverablesqlpools.go @@ -86,6 +86,7 @@ func (client WorkspaceManagedSQLServerRecoverableSqlpoolsClient) Get(ctx context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedSQLServerRecoverableSqlpoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client WorkspaceManagedSQLServerRecoverableSqlpoolsClient) List(ctx contex result.rsplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedSQLServerRecoverableSqlpoolsClient", "List", resp, "Failure responding to request") + return } if result.rsplr.hasNextLink() && result.rsplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -237,6 +239,7 @@ func (client WorkspaceManagedSQLServerRecoverableSqlpoolsClient) listNextResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedSQLServerRecoverableSqlpoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserversecurityalertpolicy.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserversecurityalertpolicy.go index c29779c5a070..9ff154da6985 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserversecurityalertpolicy.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserversecurityalertpolicy.go @@ -174,6 +174,7 @@ func (client WorkspaceManagedSQLServerSecurityAlertPolicyClient) Get(ctx context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedSQLServerSecurityAlertPolicyClient", "Get", resp, "Failure responding to request") + return } return @@ -261,6 +262,7 @@ func (client WorkspaceManagedSQLServerSecurityAlertPolicyClient) List(ctx contex result.ssaplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedSQLServerSecurityAlertPolicyClient", "List", resp, "Failure responding to request") + return } if result.ssaplr.hasNextLink() && result.ssaplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -325,6 +327,7 @@ func (client WorkspaceManagedSQLServerSecurityAlertPolicyClient) listNextResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedSQLServerSecurityAlertPolicyClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverusages.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverusages.go index 3a676c756729..8aadb61cb236 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverusages.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverusages.go @@ -85,6 +85,7 @@ func (client WorkspaceManagedSQLServerUsagesClient) List(ctx context.Context, re result.sulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedSQLServerUsagesClient", "List", resp, "Failure responding to request") + return } if result.sulr.hasNextLink() && result.sulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -149,6 +150,7 @@ func (client WorkspaceManagedSQLServerUsagesClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedSQLServerUsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlservervulnerabilityassessments.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlservervulnerabilityassessments.go index 7be58799337a..7739e033902d 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlservervulnerabilityassessments.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlservervulnerabilityassessments.go @@ -89,6 +89,7 @@ func (client WorkspaceManagedSQLServerVulnerabilityAssessmentsClient) CreateOrUp result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedSQLServerVulnerabilityAssessmentsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client WorkspaceManagedSQLServerVulnerabilityAssessmentsClient) Delete(ctx result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedSQLServerVulnerabilityAssessmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -262,6 +264,7 @@ func (client WorkspaceManagedSQLServerVulnerabilityAssessmentsClient) Get(ctx co result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedSQLServerVulnerabilityAssessmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client WorkspaceManagedSQLServerVulnerabilityAssessmentsClient) List(ctx c result.svalr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedSQLServerVulnerabilityAssessmentsClient", "List", resp, "Failure responding to request") + return } if result.svalr.hasNextLink() && result.svalr.IsEmpty() { err = result.NextWithContext(ctx) @@ -413,6 +417,7 @@ func (client WorkspaceManagedSQLServerVulnerabilityAssessmentsClient) listNextRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedSQLServerVulnerabilityAssessmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspaces.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspaces.go index bc459f60c3e2..5ccca609f3ce 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspaces.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspaces.go @@ -256,6 +256,7 @@ func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspacesClient", "Get", resp, "Failure responding to request") + return } return @@ -335,6 +336,7 @@ func (client WorkspacesClient) List(ctx context.Context) (result WorkspaceInfoLi result.wilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspacesClient", "List", resp, "Failure responding to request") + return } if result.wilr.hasNextLink() && result.wilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -397,6 +399,7 @@ func (client WorkspacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -458,6 +461,7 @@ func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resource result.wilr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.wilr.hasNextLink() && result.wilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -521,6 +525,7 @@ func (client WorkspacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacesqlaadadmins.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacesqlaadadmins.go index 9fbd2482229e..50a469fa7d13 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacesqlaadadmins.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacesqlaadadmins.go @@ -256,6 +256,7 @@ func (client WorkspaceSQLAadAdminsClient) Get(ctx context.Context, resourceGroup result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceSQLAadAdminsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/accesspolicies.go b/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/accesspolicies.go index 2474230c5d07..d45d06228061 100644 --- a/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/accesspolicies.go +++ b/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/accesspolicies.go @@ -86,6 +86,7 @@ func (client AccessPoliciesClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.AccessPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client AccessPoliciesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.AccessPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client AccessPoliciesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.AccessPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +326,7 @@ func (client AccessPoliciesClient) ListByEnvironment(ctx context.Context, resour result, err = client.ListByEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.AccessPoliciesClient", "ListByEnvironment", resp, "Failure responding to request") + return } return @@ -403,6 +407,7 @@ func (client AccessPoliciesClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.AccessPoliciesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/environments.go b/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/environments.go index 5477f4bda3f5..dab9470ecad5 100644 --- a/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/environments.go +++ b/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/environments.go @@ -169,6 +169,7 @@ func (client EnvironmentsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EnvironmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -244,6 +245,7 @@ func (client EnvironmentsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EnvironmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +321,7 @@ func (client EnvironmentsClient) ListByResourceGroup(ctx context.Context, resour result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EnvironmentsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -390,6 +393,7 @@ func (client EnvironmentsClient) ListBySubscription(ctx context.Context) (result result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EnvironmentsClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/eventsources.go b/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/eventsources.go index c7e6efffd2e0..d74b9a2d879e 100644 --- a/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/eventsources.go +++ b/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/eventsources.go @@ -84,6 +84,7 @@ func (client EventSourcesClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EventSourcesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client EventSourcesClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EventSourcesClient", "Delete", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client EventSourcesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EventSourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +325,7 @@ func (client EventSourcesClient) ListByEnvironment(ctx context.Context, resource result, err = client.ListByEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EventSourcesClient", "ListByEnvironment", resp, "Failure responding to request") + return } return @@ -402,6 +406,7 @@ func (client EventSourcesClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EventSourcesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/operations.go b/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/operations.go index aaa4c3dcffef..135a58859818 100644 --- a/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/operations.go +++ b/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/referencedatasets.go b/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/referencedatasets.go index aef736465c3b..15e92451a92f 100644 --- a/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/referencedatasets.go +++ b/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/referencedatasets.go @@ -88,6 +88,7 @@ func (client ReferenceDataSetsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.ReferenceDataSetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client ReferenceDataSetsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.ReferenceDataSetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client ReferenceDataSetsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.ReferenceDataSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -326,6 +329,7 @@ func (client ReferenceDataSetsClient) ListByEnvironment(ctx context.Context, res result, err = client.ListByEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.ReferenceDataSetsClient", "ListByEnvironment", resp, "Failure responding to request") + return } return @@ -407,6 +411,7 @@ func (client ReferenceDataSetsClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.ReferenceDataSetsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/accesspolicies.go b/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/accesspolicies.go index 9fd3d7ca91de..2bbe9426be3e 100644 --- a/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/accesspolicies.go +++ b/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/accesspolicies.go @@ -86,6 +86,7 @@ func (client AccessPoliciesClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.AccessPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client AccessPoliciesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.AccessPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client AccessPoliciesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.AccessPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +326,7 @@ func (client AccessPoliciesClient) ListByEnvironment(ctx context.Context, resour result, err = client.ListByEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.AccessPoliciesClient", "ListByEnvironment", resp, "Failure responding to request") + return } return @@ -403,6 +407,7 @@ func (client AccessPoliciesClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.AccessPoliciesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/environments.go b/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/environments.go index 4bc3e842808b..5710da39c104 100644 --- a/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/environments.go +++ b/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/environments.go @@ -167,6 +167,7 @@ func (client EnvironmentsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EnvironmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -244,6 +245,7 @@ func (client EnvironmentsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EnvironmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +324,7 @@ func (client EnvironmentsClient) ListByResourceGroup(ctx context.Context, resour result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EnvironmentsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -393,6 +396,7 @@ func (client EnvironmentsClient) ListBySubscription(ctx context.Context) (result result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EnvironmentsClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/eventsources.go b/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/eventsources.go index 5a1043911726..46ab791cc6fe 100644 --- a/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/eventsources.go +++ b/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/eventsources.go @@ -84,6 +84,7 @@ func (client EventSourcesClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EventSourcesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client EventSourcesClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EventSourcesClient", "Delete", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client EventSourcesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EventSourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +325,7 @@ func (client EventSourcesClient) ListByEnvironment(ctx context.Context, resource result, err = client.ListByEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EventSourcesClient", "ListByEnvironment", resp, "Failure responding to request") + return } return @@ -402,6 +406,7 @@ func (client EventSourcesClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EventSourcesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/operations.go b/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/operations.go index ee58bb38d211..9bfaeceed9d0 100644 --- a/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/operations.go +++ b/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/referencedatasets.go b/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/referencedatasets.go index 71309bf72ccc..119541d5b07e 100644 --- a/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/referencedatasets.go +++ b/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/referencedatasets.go @@ -88,6 +88,7 @@ func (client ReferenceDataSetsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.ReferenceDataSetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client ReferenceDataSetsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.ReferenceDataSetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client ReferenceDataSetsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.ReferenceDataSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -326,6 +329,7 @@ func (client ReferenceDataSetsClient) ListByEnvironment(ctx context.Context, res result, err = client.ListByEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.ReferenceDataSetsClient", "ListByEnvironment", resp, "Failure responding to request") + return } return @@ -407,6 +411,7 @@ func (client ReferenceDataSetsClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.ReferenceDataSetsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/endpoints.go b/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/endpoints.go index f1d9d6701217..9799b3d5dc52 100644 --- a/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/endpoints.go +++ b/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/endpoints.go @@ -76,6 +76,7 @@ func (client EndpointsClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client EndpointsClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "Delete", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client EndpointsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client EndpointsClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/geographichierarchies.go b/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/geographichierarchies.go index c9ecacf02262..010c9418dce1 100644 --- a/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/geographichierarchies.go +++ b/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/geographichierarchies.go @@ -70,6 +70,7 @@ func (client GeographicHierarchiesClient) GetDefault(ctx context.Context) (resul result, err = client.GetDefaultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.GeographicHierarchiesClient", "GetDefault", resp, "Failure responding to request") + return } return diff --git a/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/heatmap.go b/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/heatmap.go index a7df0bd85808..38f7b1ccf185 100644 --- a/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/heatmap.go +++ b/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/heatmap.go @@ -89,6 +89,7 @@ func (client HeatMapClient) Get(ctx context.Context, resourceGroupName string, p result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.HeatMapClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/profiles.go b/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/profiles.go index c7fdff98dda9..39f2c3780405 100644 --- a/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/profiles.go +++ b/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/profiles.go @@ -72,6 +72,7 @@ func (client ProfilesClient) CheckTrafficManagerRelativeDNSNameAvailability(ctx result, err = client.CheckTrafficManagerRelativeDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "CheckTrafficManagerRelativeDNSNameAvailability", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client ProfilesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -221,6 +223,7 @@ func (client ProfilesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "Delete", resp, "Failure responding to request") + return } return @@ -296,6 +299,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +374,7 @@ func (client ProfilesClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -441,6 +446,7 @@ func (client ProfilesClient) ListBySubscription(ctx context.Context) (result Pro result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -515,6 +521,7 @@ func (client ProfilesClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/usermetricskeys.go b/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/usermetricskeys.go index e36d12a8ff56..fa76fd4088c9 100644 --- a/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/usermetricskeys.go +++ b/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/usermetricskeys.go @@ -69,6 +69,7 @@ func (client UserMetricsKeysClient) CreateOrUpdate(ctx context.Context) (result result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.UserMetricsKeysClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -139,6 +140,7 @@ func (client UserMetricsKeysClient) Delete(ctx context.Context) (result DeleteOp result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.UserMetricsKeysClient", "Delete", resp, "Failure responding to request") + return } return @@ -209,6 +211,7 @@ func (client UserMetricsKeysClient) Get(ctx context.Context) (result UserMetrics result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.UserMetricsKeysClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/endpoints.go b/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/endpoints.go index 1a1ec8cf7bc9..d9d1a6fe2f5c 100644 --- a/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/endpoints.go +++ b/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/endpoints.go @@ -76,6 +76,7 @@ func (client EndpointsClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client EndpointsClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "Delete", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client EndpointsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client EndpointsClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/geographichierarchies.go b/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/geographichierarchies.go index 47ae7d44343f..5695fbc030e5 100644 --- a/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/geographichierarchies.go +++ b/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/geographichierarchies.go @@ -70,6 +70,7 @@ func (client GeographicHierarchiesClient) GetDefault(ctx context.Context) (resul result, err = client.GetDefaultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.GeographicHierarchiesClient", "GetDefault", resp, "Failure responding to request") + return } return diff --git a/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/heatmap.go b/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/heatmap.go index a7df0bd85808..38f7b1ccf185 100644 --- a/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/heatmap.go +++ b/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/heatmap.go @@ -89,6 +89,7 @@ func (client HeatMapClient) Get(ctx context.Context, resourceGroupName string, p result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.HeatMapClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/profiles.go b/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/profiles.go index a055b7495452..2d1b6bf64ead 100644 --- a/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/profiles.go +++ b/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/profiles.go @@ -72,6 +72,7 @@ func (client ProfilesClient) CheckTrafficManagerRelativeDNSNameAvailability(ctx result, err = client.CheckTrafficManagerRelativeDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "CheckTrafficManagerRelativeDNSNameAvailability", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client ProfilesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -221,6 +223,7 @@ func (client ProfilesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "Delete", resp, "Failure responding to request") + return } return @@ -296,6 +299,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +374,7 @@ func (client ProfilesClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -441,6 +446,7 @@ func (client ProfilesClient) ListBySubscription(ctx context.Context) (result Pro result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -515,6 +521,7 @@ func (client ProfilesClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/usermetricskeys.go b/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/usermetricskeys.go index e36d12a8ff56..fa76fd4088c9 100644 --- a/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/usermetricskeys.go +++ b/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/usermetricskeys.go @@ -69,6 +69,7 @@ func (client UserMetricsKeysClient) CreateOrUpdate(ctx context.Context) (result result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.UserMetricsKeysClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -139,6 +140,7 @@ func (client UserMetricsKeysClient) Delete(ctx context.Context) (result DeleteOp result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.UserMetricsKeysClient", "Delete", resp, "Failure responding to request") + return } return @@ -209,6 +211,7 @@ func (client UserMetricsKeysClient) Get(ctx context.Context) (result UserMetrics result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.UserMetricsKeysClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/preview/virtualmachineimagebuilder/mgmt/2018-02-01-preview/virtualmachineimagebuilder/operations.go b/services/preview/virtualmachineimagebuilder/mgmt/2018-02-01-preview/virtualmachineimagebuilder/operations.go index 977873040f84..7fa8560ca5f9 100644 --- a/services/preview/virtualmachineimagebuilder/mgmt/2018-02-01-preview/virtualmachineimagebuilder/operations.go +++ b/services/preview/virtualmachineimagebuilder/mgmt/2018-02-01-preview/virtualmachineimagebuilder/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/virtualmachineimagebuilder/mgmt/2018-02-01-preview/virtualmachineimagebuilder/virtualmachineimagetemplate.go b/services/preview/virtualmachineimagebuilder/mgmt/2018-02-01-preview/virtualmachineimagebuilder/virtualmachineimagetemplate.go index 4d1ee88918fe..c40247cbe0da 100644 --- a/services/preview/virtualmachineimagebuilder/mgmt/2018-02-01-preview/virtualmachineimagebuilder/virtualmachineimagetemplate.go +++ b/services/preview/virtualmachineimagebuilder/mgmt/2018-02-01-preview/virtualmachineimagebuilder/virtualmachineimagetemplate.go @@ -249,6 +249,7 @@ func (client VirtualMachineImageTemplateClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplateClient", "Get", resp, "Failure responding to request") + return } return @@ -333,6 +334,7 @@ func (client VirtualMachineImageTemplateClient) GetRunOutput(ctx context.Context result, err = client.GetRunOutputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplateClient", "GetRunOutput", resp, "Failure responding to request") + return } return @@ -407,6 +409,7 @@ func (client VirtualMachineImageTemplateClient) List(ctx context.Context) (resul result.itlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplateClient", "List", resp, "Failure responding to request") + return } if result.itlr.hasNextLink() && result.itlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -469,6 +472,7 @@ func (client VirtualMachineImageTemplateClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplateClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -520,6 +524,7 @@ func (client VirtualMachineImageTemplateClient) ListByResourceGroup(ctx context. result.itlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplateClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.itlr.hasNextLink() && result.itlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -583,6 +588,7 @@ func (client VirtualMachineImageTemplateClient) listByResourceGroupNextResults(c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplateClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -641,6 +647,7 @@ func (client VirtualMachineImageTemplateClient) ListRunOutputs(ctx context.Conte result.roc, err = client.ListRunOutputsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplateClient", "ListRunOutputs", resp, "Failure responding to request") + return } if result.roc.hasNextLink() && result.roc.IsEmpty() { err = result.NextWithContext(ctx) @@ -705,6 +712,7 @@ func (client VirtualMachineImageTemplateClient) listRunOutputsNextResults(ctx co result, err = client.ListRunOutputsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplateClient", "listRunOutputsNextResults", resp, "Failure responding to next results request") + return } return } @@ -843,6 +851,7 @@ func (client VirtualMachineImageTemplateClient) Update(ctx context.Context, para result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplateClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/virtualmachineimagebuilder/mgmt/2019-02-01-preview/virtualmachineimagebuilder/operations.go b/services/preview/virtualmachineimagebuilder/mgmt/2019-02-01-preview/virtualmachineimagebuilder/operations.go index 8146d1eb1585..0718b8dd12d0 100644 --- a/services/preview/virtualmachineimagebuilder/mgmt/2019-02-01-preview/virtualmachineimagebuilder/operations.go +++ b/services/preview/virtualmachineimagebuilder/mgmt/2019-02-01-preview/virtualmachineimagebuilder/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/virtualmachineimagebuilder/mgmt/2019-02-01-preview/virtualmachineimagebuilder/virtualmachineimagetemplates.go b/services/preview/virtualmachineimagebuilder/mgmt/2019-02-01-preview/virtualmachineimagebuilder/virtualmachineimagetemplates.go index ce18a76d5638..de38e02a25dc 100644 --- a/services/preview/virtualmachineimagebuilder/mgmt/2019-02-01-preview/virtualmachineimagebuilder/virtualmachineimagetemplates.go +++ b/services/preview/virtualmachineimagebuilder/mgmt/2019-02-01-preview/virtualmachineimagebuilder/virtualmachineimagetemplates.go @@ -249,6 +249,7 @@ func (client VirtualMachineImageTemplatesClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplatesClient", "Get", resp, "Failure responding to request") + return } return @@ -333,6 +334,7 @@ func (client VirtualMachineImageTemplatesClient) GetRunOutput(ctx context.Contex result, err = client.GetRunOutputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplatesClient", "GetRunOutput", resp, "Failure responding to request") + return } return @@ -407,6 +409,7 @@ func (client VirtualMachineImageTemplatesClient) List(ctx context.Context) (resu result.itlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplatesClient", "List", resp, "Failure responding to request") + return } if result.itlr.hasNextLink() && result.itlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -469,6 +472,7 @@ func (client VirtualMachineImageTemplatesClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplatesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -520,6 +524,7 @@ func (client VirtualMachineImageTemplatesClient) ListByResourceGroup(ctx context result.itlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplatesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.itlr.hasNextLink() && result.itlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -583,6 +588,7 @@ func (client VirtualMachineImageTemplatesClient) listByResourceGroupNextResults( result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplatesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -641,6 +647,7 @@ func (client VirtualMachineImageTemplatesClient) ListRunOutputs(ctx context.Cont result.roc, err = client.ListRunOutputsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplatesClient", "ListRunOutputs", resp, "Failure responding to request") + return } if result.roc.hasNextLink() && result.roc.IsEmpty() { err = result.NextWithContext(ctx) @@ -705,6 +712,7 @@ func (client VirtualMachineImageTemplatesClient) listRunOutputsNextResults(ctx c result, err = client.ListRunOutputsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplatesClient", "listRunOutputsNextResults", resp, "Failure responding to next results request") + return } return } @@ -843,6 +851,7 @@ func (client VirtualMachineImageTemplatesClient) Update(ctx context.Context, par result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplatesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/virtualmachineimagebuilder/mgmt/2019-05-01-preview/virtualmachineimagebuilder/operations.go b/services/preview/virtualmachineimagebuilder/mgmt/2019-05-01-preview/virtualmachineimagebuilder/operations.go index 65868e42033a..839f89c270f8 100644 --- a/services/preview/virtualmachineimagebuilder/mgmt/2019-05-01-preview/virtualmachineimagebuilder/operations.go +++ b/services/preview/virtualmachineimagebuilder/mgmt/2019-05-01-preview/virtualmachineimagebuilder/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/virtualmachineimagebuilder/mgmt/2019-05-01-preview/virtualmachineimagebuilder/virtualmachineimagetemplates.go b/services/preview/virtualmachineimagebuilder/mgmt/2019-05-01-preview/virtualmachineimagebuilder/virtualmachineimagetemplates.go index 8f9b2deab3c0..d1fc3ac60901 100644 --- a/services/preview/virtualmachineimagebuilder/mgmt/2019-05-01-preview/virtualmachineimagebuilder/virtualmachineimagetemplates.go +++ b/services/preview/virtualmachineimagebuilder/mgmt/2019-05-01-preview/virtualmachineimagebuilder/virtualmachineimagetemplates.go @@ -253,6 +253,7 @@ func (client VirtualMachineImageTemplatesClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplatesClient", "Get", resp, "Failure responding to request") + return } return @@ -337,6 +338,7 @@ func (client VirtualMachineImageTemplatesClient) GetRunOutput(ctx context.Contex result, err = client.GetRunOutputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplatesClient", "GetRunOutput", resp, "Failure responding to request") + return } return @@ -411,6 +413,7 @@ func (client VirtualMachineImageTemplatesClient) List(ctx context.Context) (resu result.itlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplatesClient", "List", resp, "Failure responding to request") + return } if result.itlr.hasNextLink() && result.itlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -473,6 +476,7 @@ func (client VirtualMachineImageTemplatesClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplatesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -524,6 +528,7 @@ func (client VirtualMachineImageTemplatesClient) ListByResourceGroup(ctx context result.itlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplatesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.itlr.hasNextLink() && result.itlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -587,6 +592,7 @@ func (client VirtualMachineImageTemplatesClient) listByResourceGroupNextResults( result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplatesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -645,6 +651,7 @@ func (client VirtualMachineImageTemplatesClient) ListRunOutputs(ctx context.Cont result.roc, err = client.ListRunOutputsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplatesClient", "ListRunOutputs", resp, "Failure responding to request") + return } if result.roc.hasNextLink() && result.roc.IsEmpty() { err = result.NextWithContext(ctx) @@ -709,6 +716,7 @@ func (client VirtualMachineImageTemplatesClient) listRunOutputsNextResults(ctx c result, err = client.ListRunOutputsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplatesClient", "listRunOutputsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/visualstudio/mgmt/2014-04-01-preview/visualstudio/accounts.go b/services/preview/visualstudio/mgmt/2014-04-01-preview/visualstudio/accounts.go index 63b5576e3658..2996e8749a19 100644 --- a/services/preview/visualstudio/mgmt/2014-04-01-preview/visualstudio/accounts.go +++ b/services/preview/visualstudio/mgmt/2014-04-01-preview/visualstudio/accounts.go @@ -75,6 +75,7 @@ func (client AccountsClient) CheckNameAvailability(ctx context.Context, body Che result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "visualstudio.AccountsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client AccountsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "visualstudio.AccountsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -228,6 +230,7 @@ func (client AccountsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "visualstudio.AccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -302,6 +305,7 @@ func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "visualstudio.AccountsClient", "Get", resp, "Failure responding to request") + return } return @@ -377,6 +381,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "visualstudio.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -452,6 +457,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "visualstudio.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/visualstudio/mgmt/2014-04-01-preview/visualstudio/extensions.go b/services/preview/visualstudio/mgmt/2014-04-01-preview/visualstudio/extensions.go index 432d95993ac1..d0a675d7b3d4 100644 --- a/services/preview/visualstudio/mgmt/2014-04-01-preview/visualstudio/extensions.go +++ b/services/preview/visualstudio/mgmt/2014-04-01-preview/visualstudio/extensions.go @@ -77,6 +77,7 @@ func (client ExtensionsClient) Create(ctx context.Context, resourceGroupName str result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "visualstudio.ExtensionsClient", "Create", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client ExtensionsClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "visualstudio.ExtensionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client ExtensionsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "visualstudio.ExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +311,7 @@ func (client ExtensionsClient) ListByAccount(ctx context.Context, resourceGroupN result, err = client.ListByAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "visualstudio.ExtensionsClient", "ListByAccount", resp, "Failure responding to request") + return } return @@ -385,6 +389,7 @@ func (client ExtensionsClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "visualstudio.ExtensionsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/visualstudio/mgmt/2014-04-01-preview/visualstudio/operations.go b/services/preview/visualstudio/mgmt/2014-04-01-preview/visualstudio/operations.go index 5c464cf100c3..d866cdcc1cda 100644 --- a/services/preview/visualstudio/mgmt/2014-04-01-preview/visualstudio/operations.go +++ b/services/preview/visualstudio/mgmt/2014-04-01-preview/visualstudio/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "visualstudio.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/preview/visualstudio/mgmt/2014-04-01-preview/visualstudio/projects.go b/services/preview/visualstudio/mgmt/2014-04-01-preview/visualstudio/projects.go index 2507e602c7c4..663e7050f291 100644 --- a/services/preview/visualstudio/mgmt/2014-04-01-preview/visualstudio/projects.go +++ b/services/preview/visualstudio/mgmt/2014-04-01-preview/visualstudio/projects.go @@ -164,6 +164,7 @@ func (client ProjectsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "visualstudio.ProjectsClient", "Get", resp, "Failure responding to request") + return } return @@ -244,6 +245,7 @@ func (client ProjectsClient) GetJobStatus(ctx context.Context, resourceGroupName result, err = client.GetJobStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "visualstudio.ProjectsClient", "GetJobStatus", resp, "Failure responding to request") + return } return @@ -326,6 +328,7 @@ func (client ProjectsClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "visualstudio.ProjectsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -403,6 +406,7 @@ func (client ProjectsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "visualstudio.ProjectsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/web/mgmt/2015-08-01-preview/web/certificateorders.go b/services/preview/web/mgmt/2015-08-01-preview/web/certificateorders.go index 40dc265de383..314d70c2e88e 100644 --- a/services/preview/web/mgmt/2015-08-01-preview/web/certificateorders.go +++ b/services/preview/web/mgmt/2015-08-01-preview/web/certificateorders.go @@ -75,6 +75,7 @@ func (client CertificateOrdersClient) CreateOrUpdateCertificate(ctx context.Cont result, err = client.CreateOrUpdateCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateOrdersClient", "CreateOrUpdateCertificate", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client CertificateOrdersClient) CreateOrUpdateCertificateOrder(ctx context result, err = client.CreateOrUpdateCertificateOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateOrdersClient", "CreateOrUpdateCertificateOrder", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client CertificateOrdersClient) DeleteCertificate(ctx context.Context, res result, err = client.DeleteCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateOrdersClient", "DeleteCertificate", resp, "Failure responding to request") + return } return @@ -308,6 +311,7 @@ func (client CertificateOrdersClient) DeleteCertificateOrder(ctx context.Context result, err = client.DeleteCertificateOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateOrdersClient", "DeleteCertificateOrder", resp, "Failure responding to request") + return } return @@ -384,6 +388,7 @@ func (client CertificateOrdersClient) GetCertificate(ctx context.Context, resour result, err = client.GetCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateOrdersClient", "GetCertificate", resp, "Failure responding to request") + return } return @@ -460,6 +465,7 @@ func (client CertificateOrdersClient) GetCertificateOrder(ctx context.Context, r result, err = client.GetCertificateOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateOrdersClient", "GetCertificateOrder", resp, "Failure responding to request") + return } return @@ -535,6 +541,7 @@ func (client CertificateOrdersClient) GetCertificateOrders(ctx context.Context, result.coc, err = client.GetCertificateOrdersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateOrdersClient", "GetCertificateOrders", resp, "Failure responding to request") + return } if result.coc.hasNextLink() && result.coc.IsEmpty() { err = result.NextWithContext(ctx) @@ -598,6 +605,7 @@ func (client CertificateOrdersClient) getCertificateOrdersNextResults(ctx contex result, err = client.GetCertificateOrdersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateOrdersClient", "getCertificateOrdersNextResults", resp, "Failure responding to next results request") + return } return } @@ -650,6 +658,7 @@ func (client CertificateOrdersClient) GetCertificates(ctx context.Context, resou result.cocc, err = client.GetCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateOrdersClient", "GetCertificates", resp, "Failure responding to request") + return } if result.cocc.hasNextLink() && result.cocc.IsEmpty() { err = result.NextWithContext(ctx) @@ -714,6 +723,7 @@ func (client CertificateOrdersClient) getCertificatesNextResults(ctx context.Con result, err = client.GetCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateOrdersClient", "getCertificatesNextResults", resp, "Failure responding to next results request") + return } return } @@ -766,6 +776,7 @@ func (client CertificateOrdersClient) ReissueCertificateOrder(ctx context.Contex result, err = client.ReissueCertificateOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateOrdersClient", "ReissueCertificateOrder", resp, "Failure responding to request") + return } return @@ -844,6 +855,7 @@ func (client CertificateOrdersClient) RenewCertificateOrder(ctx context.Context, result, err = client.RenewCertificateOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateOrdersClient", "RenewCertificateOrder", resp, "Failure responding to request") + return } return @@ -921,6 +933,7 @@ func (client CertificateOrdersClient) ResendCertificateEmail(ctx context.Context result, err = client.ResendCertificateEmailResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateOrdersClient", "ResendCertificateEmail", resp, "Failure responding to request") + return } return @@ -996,6 +1009,7 @@ func (client CertificateOrdersClient) RetrieveCertificateActions(ctx context.Con result, err = client.RetrieveCertificateActionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateOrdersClient", "RetrieveCertificateActions", resp, "Failure responding to request") + return } return @@ -1071,6 +1085,7 @@ func (client CertificateOrdersClient) RetrieveCertificateEmailHistory(ctx contex result, err = client.RetrieveCertificateEmailHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateOrdersClient", "RetrieveCertificateEmailHistory", resp, "Failure responding to request") + return } return @@ -1148,6 +1163,7 @@ func (client CertificateOrdersClient) UpdateCertificate(ctx context.Context, res result, err = client.UpdateCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateOrdersClient", "UpdateCertificate", resp, "Failure responding to request") + return } return @@ -1227,6 +1243,7 @@ func (client CertificateOrdersClient) UpdateCertificateOrder(ctx context.Context result, err = client.UpdateCertificateOrderResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateOrdersClient", "UpdateCertificateOrder", resp, "Failure responding to request") + return } return @@ -1304,6 +1321,7 @@ func (client CertificateOrdersClient) VerifyDomainOwnership(ctx context.Context, result, err = client.VerifyDomainOwnershipResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateOrdersClient", "VerifyDomainOwnership", resp, "Failure responding to request") + return } return diff --git a/services/preview/web/mgmt/2015-08-01-preview/web/certificates.go b/services/preview/web/mgmt/2015-08-01-preview/web/certificates.go index a03bcfef03ae..a9f8fb83d504 100644 --- a/services/preview/web/mgmt/2015-08-01-preview/web/certificates.go +++ b/services/preview/web/mgmt/2015-08-01-preview/web/certificates.go @@ -73,6 +73,7 @@ func (client CertificatesClient) CreateOrUpdateCertificate(ctx context.Context, result, err = client.CreateOrUpdateCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "CreateOrUpdateCertificate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client CertificatesClient) CreateOrUpdateCsr(ctx context.Context, resource result, err = client.CreateOrUpdateCsrResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "CreateOrUpdateCsr", resp, "Failure responding to request") + return } return @@ -228,6 +230,7 @@ func (client CertificatesClient) DeleteCertificate(ctx context.Context, resource result, err = client.DeleteCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "DeleteCertificate", resp, "Failure responding to request") + return } return @@ -303,6 +306,7 @@ func (client CertificatesClient) DeleteCsr(ctx context.Context, resourceGroupNam result, err = client.DeleteCsrResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "DeleteCsr", resp, "Failure responding to request") + return } return @@ -378,6 +382,7 @@ func (client CertificatesClient) GetCertificate(ctx context.Context, resourceGro result, err = client.GetCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "GetCertificate", resp, "Failure responding to request") + return } return @@ -453,6 +458,7 @@ func (client CertificatesClient) GetCertificates(ctx context.Context, resourceGr result.cc, err = client.GetCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "GetCertificates", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +522,7 @@ func (client CertificatesClient) getCertificatesNextResults(ctx context.Context, result, err = client.GetCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "getCertificatesNextResults", resp, "Failure responding to next results request") + return } return } @@ -567,6 +574,7 @@ func (client CertificatesClient) GetCsr(ctx context.Context, resourceGroupName s result, err = client.GetCsrResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "GetCsr", resp, "Failure responding to request") + return } return @@ -641,6 +649,7 @@ func (client CertificatesClient) GetCsrs(ctx context.Context, resourceGroupName result, err = client.GetCsrsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "GetCsrs", resp, "Failure responding to request") + return } return @@ -716,6 +725,7 @@ func (client CertificatesClient) UpdateCertificate(ctx context.Context, resource result, err = client.UpdateCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "UpdateCertificate", resp, "Failure responding to request") + return } return @@ -794,6 +804,7 @@ func (client CertificatesClient) UpdateCsr(ctx context.Context, resourceGroupNam result, err = client.UpdateCsrResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "UpdateCsr", resp, "Failure responding to request") + return } return diff --git a/services/preview/web/mgmt/2015-08-01-preview/web/classicmobileservices.go b/services/preview/web/mgmt/2015-08-01-preview/web/classicmobileservices.go index 0175dc97da40..c7de7e40f526 100644 --- a/services/preview/web/mgmt/2015-08-01-preview/web/classicmobileservices.go +++ b/services/preview/web/mgmt/2015-08-01-preview/web/classicmobileservices.go @@ -73,6 +73,7 @@ func (client ClassicMobileServicesClient) DeleteClassicMobileService(ctx context result, err = client.DeleteClassicMobileServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ClassicMobileServicesClient", "DeleteClassicMobileService", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client ClassicMobileServicesClient) GetClassicMobileService(ctx context.Co result, err = client.GetClassicMobileServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ClassicMobileServicesClient", "GetClassicMobileService", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client ClassicMobileServicesClient) GetClassicMobileServices(ctx context.C result.cmsc, err = client.GetClassicMobileServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ClassicMobileServicesClient", "GetClassicMobileServices", resp, "Failure responding to request") + return } if result.cmsc.hasNextLink() && result.cmsc.IsEmpty() { err = result.NextWithContext(ctx) @@ -286,6 +289,7 @@ func (client ClassicMobileServicesClient) getClassicMobileServicesNextResults(ct result, err = client.GetClassicMobileServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ClassicMobileServicesClient", "getClassicMobileServicesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/web/mgmt/2015-08-01-preview/web/connections.go b/services/preview/web/mgmt/2015-08-01-preview/web/connections.go index 9cf133da432c..9cbe78685e07 100644 --- a/services/preview/web/mgmt/2015-08-01-preview/web/connections.go +++ b/services/preview/web/mgmt/2015-08-01-preview/web/connections.go @@ -73,6 +73,7 @@ func (client ConnectionsClient) ConfirmConsentCode(ctx context.Context, resource result, err = client.ConfirmConsentCodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ConnectionsClient", "ConfirmConsentCode", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ConnectionsClient) CreateOrUpdate(ctx context.Context, resourceGrou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ConnectionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -228,6 +230,7 @@ func (client ConnectionsClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ConnectionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -302,6 +305,7 @@ func (client ConnectionsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -379,6 +383,7 @@ func (client ConnectionsClient) List(ctx context.Context, resourceGroupName stri result.cc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ConnectionsClient", "List", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -448,6 +453,7 @@ func (client ConnectionsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -500,6 +506,7 @@ func (client ConnectionsClient) ListConnectionKeys(ctx context.Context, resource result, err = client.ListConnectionKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ConnectionsClient", "ListConnectionKeys", resp, "Failure responding to request") + return } return @@ -578,6 +585,7 @@ func (client ConnectionsClient) ListConsentLinks(ctx context.Context, resourceGr result, err = client.ListConsentLinksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ConnectionsClient", "ListConsentLinks", resp, "Failure responding to request") + return } return diff --git a/services/preview/web/mgmt/2015-08-01-preview/web/domains.go b/services/preview/web/mgmt/2015-08-01-preview/web/domains.go index 6091fa32db78..a8860468ed4c 100644 --- a/services/preview/web/mgmt/2015-08-01-preview/web/domains.go +++ b/services/preview/web/mgmt/2015-08-01-preview/web/domains.go @@ -73,6 +73,7 @@ func (client DomainsClient) CreateOrUpdateDomain(ctx context.Context, resourceGr result, err = client.CreateOrUpdateDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "CreateOrUpdateDomain", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DomainsClient) DeleteDomain(ctx context.Context, resourceGroupName result, err = client.DeleteDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "DeleteDomain", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client DomainsClient) GetDomain(ctx context.Context, resourceGroupName str result, err = client.GetDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "GetDomain", resp, "Failure responding to request") + return } return @@ -305,6 +308,7 @@ func (client DomainsClient) GetDomainOperation(ctx context.Context, resourceGrou result, err = client.GetDomainOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "GetDomainOperation", resp, "Failure responding to request") + return } return @@ -381,6 +385,7 @@ func (client DomainsClient) GetDomains(ctx context.Context, resourceGroupName st result.dc, err = client.GetDomainsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "GetDomains", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -444,6 +449,7 @@ func (client DomainsClient) getDomainsNextResults(ctx context.Context, lastResul result, err = client.GetDomainsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "getDomainsNextResults", resp, "Failure responding to next results request") + return } return } @@ -496,6 +502,7 @@ func (client DomainsClient) UpdateDomain(ctx context.Context, resourceGroupName result, err = client.UpdateDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "UpdateDomain", resp, "Failure responding to request") + return } return diff --git a/services/preview/web/mgmt/2015-08-01-preview/web/global.go b/services/preview/web/mgmt/2015-08-01-preview/web/global.go index 293140b2a753..9b0916d3607d 100644 --- a/services/preview/web/mgmt/2015-08-01-preview/web/global.go +++ b/services/preview/web/mgmt/2015-08-01-preview/web/global.go @@ -71,6 +71,7 @@ func (client GlobalClient) CheckNameAvailability(ctx context.Context, request Re result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client GlobalClient) GetAllCertificates(ctx context.Context) (result Certi result.cc, err = client.GetAllCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalClient", "GetAllCertificates", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -206,6 +208,7 @@ func (client GlobalClient) getAllCertificatesNextResults(ctx context.Context, la result, err = client.GetAllCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalClient", "getAllCertificatesNextResults", resp, "Failure responding to next results request") + return } return } @@ -255,6 +258,7 @@ func (client GlobalClient) GetAllClassicMobileServices(ctx context.Context) (res result.cmsc, err = client.GetAllClassicMobileServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalClient", "GetAllClassicMobileServices", resp, "Failure responding to request") + return } if result.cmsc.hasNextLink() && result.cmsc.IsEmpty() { err = result.NextWithContext(ctx) @@ -317,6 +321,7 @@ func (client GlobalClient) getAllClassicMobileServicesNextResults(ctx context.Co result, err = client.GetAllClassicMobileServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalClient", "getAllClassicMobileServicesNextResults", resp, "Failure responding to next results request") + return } return } @@ -366,6 +371,7 @@ func (client GlobalClient) GetAllHostingEnvironments(ctx context.Context) (resul result.hec, err = client.GetAllHostingEnvironmentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalClient", "GetAllHostingEnvironments", resp, "Failure responding to request") + return } if result.hec.hasNextLink() && result.hec.IsEmpty() { err = result.NextWithContext(ctx) @@ -428,6 +434,7 @@ func (client GlobalClient) getAllHostingEnvironmentsNextResults(ctx context.Cont result, err = client.GetAllHostingEnvironmentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalClient", "getAllHostingEnvironmentsNextResults", resp, "Failure responding to next results request") + return } return } @@ -477,6 +484,7 @@ func (client GlobalClient) GetAllManagedHostingEnvironments(ctx context.Context) result.mhec, err = client.GetAllManagedHostingEnvironmentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalClient", "GetAllManagedHostingEnvironments", resp, "Failure responding to request") + return } if result.mhec.hasNextLink() && result.mhec.IsEmpty() { err = result.NextWithContext(ctx) @@ -539,6 +547,7 @@ func (client GlobalClient) getAllManagedHostingEnvironmentsNextResults(ctx conte result, err = client.GetAllManagedHostingEnvironmentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalClient", "getAllManagedHostingEnvironmentsNextResults", resp, "Failure responding to next results request") + return } return } @@ -591,6 +600,7 @@ func (client GlobalClient) GetAllServerFarms(ctx context.Context, detailed *bool result.sfc, err = client.GetAllServerFarmsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalClient", "GetAllServerFarms", resp, "Failure responding to request") + return } if result.sfc.hasNextLink() && result.sfc.IsEmpty() { err = result.NextWithContext(ctx) @@ -656,6 +666,7 @@ func (client GlobalClient) getAllServerFarmsNextResults(ctx context.Context, las result, err = client.GetAllServerFarmsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalClient", "getAllServerFarmsNextResults", resp, "Failure responding to next results request") + return } return } @@ -705,6 +716,7 @@ func (client GlobalClient) GetAllSites(ctx context.Context) (result SiteCollecti result.sc, err = client.GetAllSitesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalClient", "GetAllSites", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -767,6 +779,7 @@ func (client GlobalClient) getAllSitesNextResults(ctx context.Context, lastResul result, err = client.GetAllSitesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalClient", "getAllSitesNextResults", resp, "Failure responding to next results request") + return } return } @@ -819,6 +832,7 @@ func (client GlobalClient) GetSubscriptionGeoRegions(ctx context.Context, sku st result.grc, err = client.GetSubscriptionGeoRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalClient", "GetSubscriptionGeoRegions", resp, "Failure responding to request") + return } if result.grc.hasNextLink() && result.grc.IsEmpty() { err = result.NextWithContext(ctx) @@ -887,6 +901,7 @@ func (client GlobalClient) getSubscriptionGeoRegionsNextResults(ctx context.Cont result, err = client.GetSubscriptionGeoRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalClient", "getSubscriptionGeoRegionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -935,6 +950,7 @@ func (client GlobalClient) GetSubscriptionPublishingCredentials(ctx context.Cont result, err = client.GetSubscriptionPublishingCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalClient", "GetSubscriptionPublishingCredentials", resp, "Failure responding to request") + return } return @@ -1007,6 +1023,7 @@ func (client GlobalClient) IsHostingEnvironmentNameAvailable(ctx context.Context result, err = client.IsHostingEnvironmentNameAvailableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalClient", "IsHostingEnvironmentNameAvailable", resp, "Failure responding to request") + return } return @@ -1080,6 +1097,7 @@ func (client GlobalClient) IsHostingEnvironmentWithLegacyNameAvailable(ctx conte result, err = client.IsHostingEnvironmentWithLegacyNameAvailableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalClient", "IsHostingEnvironmentWithLegacyNameAvailable", resp, "Failure responding to request") + return } return @@ -1151,6 +1169,7 @@ func (client GlobalClient) ListPremierAddOnOffers(ctx context.Context) (result S result, err = client.ListPremierAddOnOffersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalClient", "ListPremierAddOnOffers", resp, "Failure responding to request") + return } return @@ -1223,6 +1242,7 @@ func (client GlobalClient) UpdateSubscriptionPublishingCredentials(ctx context.C result, err = client.UpdateSubscriptionPublishingCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalClient", "UpdateSubscriptionPublishingCredentials", resp, "Failure responding to request") + return } return diff --git a/services/preview/web/mgmt/2015-08-01-preview/web/globalcertificateorder.go b/services/preview/web/mgmt/2015-08-01-preview/web/globalcertificateorder.go index 44d03a863642..4ca6fdcd399b 100644 --- a/services/preview/web/mgmt/2015-08-01-preview/web/globalcertificateorder.go +++ b/services/preview/web/mgmt/2015-08-01-preview/web/globalcertificateorder.go @@ -71,6 +71,7 @@ func (client GlobalCertificateOrderClient) GetAllCertificateOrders(ctx context.C result.coc, err = client.GetAllCertificateOrdersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalCertificateOrderClient", "GetAllCertificateOrders", resp, "Failure responding to request") + return } if result.coc.hasNextLink() && result.coc.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client GlobalCertificateOrderClient) getAllCertificateOrdersNextResults(ct result, err = client.GetAllCertificateOrdersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalCertificateOrderClient", "getAllCertificateOrdersNextResults", resp, "Failure responding to next results request") + return } return } @@ -183,6 +185,7 @@ func (client GlobalCertificateOrderClient) ValidateCertificatePurchaseInformatio result, err = client.ValidateCertificatePurchaseInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalCertificateOrderClient", "ValidateCertificatePurchaseInformation", resp, "Failure responding to request") + return } return diff --git a/services/preview/web/mgmt/2015-08-01-preview/web/globaldomainregistration.go b/services/preview/web/mgmt/2015-08-01-preview/web/globaldomainregistration.go index c23cf99b882a..9e8529a881cf 100644 --- a/services/preview/web/mgmt/2015-08-01-preview/web/globaldomainregistration.go +++ b/services/preview/web/mgmt/2015-08-01-preview/web/globaldomainregistration.go @@ -72,6 +72,7 @@ func (client GlobalDomainRegistrationClient) CheckDomainAvailability(ctx context result, err = client.CheckDomainAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalDomainRegistrationClient", "CheckDomainAvailability", resp, "Failure responding to request") + return } return @@ -145,6 +146,7 @@ func (client GlobalDomainRegistrationClient) GetAllDomains(ctx context.Context) result.dc, err = client.GetAllDomainsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalDomainRegistrationClient", "GetAllDomains", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -207,6 +209,7 @@ func (client GlobalDomainRegistrationClient) getAllDomainsNextResults(ctx contex result, err = client.GetAllDomainsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalDomainRegistrationClient", "getAllDomainsNextResults", resp, "Failure responding to next results request") + return } return } @@ -255,6 +258,7 @@ func (client GlobalDomainRegistrationClient) GetDomainControlCenterSsoRequest(ct result, err = client.GetDomainControlCenterSsoRequestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalDomainRegistrationClient", "GetDomainControlCenterSsoRequest", resp, "Failure responding to request") + return } return @@ -328,6 +332,7 @@ func (client GlobalDomainRegistrationClient) ListDomainRecommendations(ctx conte result.nic, err = client.ListDomainRecommendationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalDomainRegistrationClient", "ListDomainRecommendations", resp, "Failure responding to request") + return } if result.nic.hasNextLink() && result.nic.IsEmpty() { err = result.NextWithContext(ctx) @@ -392,6 +397,7 @@ func (client GlobalDomainRegistrationClient) listDomainRecommendationsNextResult result, err = client.ListDomainRecommendationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalDomainRegistrationClient", "listDomainRecommendationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -442,6 +448,7 @@ func (client GlobalDomainRegistrationClient) ValidateDomainPurchaseInformation(c result, err = client.ValidateDomainPurchaseInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalDomainRegistrationClient", "ValidateDomainPurchaseInformation", resp, "Failure responding to request") + return } return diff --git a/services/preview/web/mgmt/2015-08-01-preview/web/globalresourcegroups.go b/services/preview/web/mgmt/2015-08-01-preview/web/globalresourcegroups.go index 0dfde2902390..11bbe7624eca 100644 --- a/services/preview/web/mgmt/2015-08-01-preview/web/globalresourcegroups.go +++ b/services/preview/web/mgmt/2015-08-01-preview/web/globalresourcegroups.go @@ -70,6 +70,7 @@ func (client GlobalResourceGroupsClient) MoveResources(ctx context.Context, reso result, err = client.MoveResourcesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.GlobalResourceGroupsClient", "MoveResources", resp, "Failure responding to request") + return } return diff --git a/services/preview/web/mgmt/2015-08-01-preview/web/hostingenvironments.go b/services/preview/web/mgmt/2015-08-01-preview/web/hostingenvironments.go index 0017c02711fb..11df2f1107db 100644 --- a/services/preview/web/mgmt/2015-08-01-preview/web/hostingenvironments.go +++ b/services/preview/web/mgmt/2015-08-01-preview/web/hostingenvironments.go @@ -388,6 +388,7 @@ func (client HostingEnvironmentsClient) GetHostingEnvironment(ctx context.Contex result, err = client.GetHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetHostingEnvironment", resp, "Failure responding to request") + return } return @@ -464,6 +465,7 @@ func (client HostingEnvironmentsClient) GetHostingEnvironmentCapacities(ctx cont result.scc, err = client.GetHostingEnvironmentCapacitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetHostingEnvironmentCapacities", resp, "Failure responding to request") + return } if result.scc.hasNextLink() && result.scc.IsEmpty() { err = result.NextWithContext(ctx) @@ -528,6 +530,7 @@ func (client HostingEnvironmentsClient) getHostingEnvironmentCapacitiesNextResul result, err = client.GetHostingEnvironmentCapacitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "getHostingEnvironmentCapacitiesNextResults", resp, "Failure responding to next results request") + return } return } @@ -579,6 +582,7 @@ func (client HostingEnvironmentsClient) GetHostingEnvironmentDiagnostics(ctx con result, err = client.GetHostingEnvironmentDiagnosticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetHostingEnvironmentDiagnostics", resp, "Failure responding to request") + return } return @@ -655,6 +659,7 @@ func (client HostingEnvironmentsClient) GetHostingEnvironmentDiagnosticsItem(ctx result, err = client.GetHostingEnvironmentDiagnosticsItemResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetHostingEnvironmentDiagnosticsItem", resp, "Failure responding to request") + return } return @@ -731,6 +736,7 @@ func (client HostingEnvironmentsClient) GetHostingEnvironmentMetricDefinitions(c result, err = client.GetHostingEnvironmentMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetHostingEnvironmentMetricDefinitions", resp, "Failure responding to request") + return } return @@ -811,6 +817,7 @@ func (client HostingEnvironmentsClient) GetHostingEnvironmentMetrics(ctx context result.rmc, err = client.GetHostingEnvironmentMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetHostingEnvironmentMetrics", resp, "Failure responding to request") + return } if result.rmc.hasNextLink() && result.rmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -881,6 +888,7 @@ func (client HostingEnvironmentsClient) getHostingEnvironmentMetricsNextResults( result, err = client.GetHostingEnvironmentMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "getHostingEnvironmentMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -934,6 +942,7 @@ func (client HostingEnvironmentsClient) GetHostingEnvironmentMultiRoleMetricDefi result.mdc, err = client.GetHostingEnvironmentMultiRoleMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetHostingEnvironmentMultiRoleMetricDefinitions", resp, "Failure responding to request") + return } if result.mdc.hasNextLink() && result.mdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -998,6 +1007,7 @@ func (client HostingEnvironmentsClient) getHostingEnvironmentMultiRoleMetricDefi result, err = client.GetHostingEnvironmentMultiRoleMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "getHostingEnvironmentMultiRoleMetricDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1057,6 +1067,7 @@ func (client HostingEnvironmentsClient) GetHostingEnvironmentMultiRoleMetrics(ct result.rmc, err = client.GetHostingEnvironmentMultiRoleMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetHostingEnvironmentMultiRoleMetrics", resp, "Failure responding to request") + return } if result.rmc.hasNextLink() && result.rmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1136,6 +1147,7 @@ func (client HostingEnvironmentsClient) getHostingEnvironmentMultiRoleMetricsNex result, err = client.GetHostingEnvironmentMultiRoleMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "getHostingEnvironmentMultiRoleMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1188,6 +1200,7 @@ func (client HostingEnvironmentsClient) GetHostingEnvironmentMultiRoleUsages(ctx result.uc, err = client.GetHostingEnvironmentMultiRoleUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetHostingEnvironmentMultiRoleUsages", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1252,6 +1265,7 @@ func (client HostingEnvironmentsClient) getHostingEnvironmentMultiRoleUsagesNext result, err = client.GetHostingEnvironmentMultiRoleUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "getHostingEnvironmentMultiRoleUsagesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1304,6 +1318,7 @@ func (client HostingEnvironmentsClient) GetHostingEnvironmentOperation(ctx conte result, err = client.GetHostingEnvironmentOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetHostingEnvironmentOperation", resp, "Failure responding to request") + return } return @@ -1380,6 +1395,7 @@ func (client HostingEnvironmentsClient) GetHostingEnvironmentOperations(ctx cont result, err = client.GetHostingEnvironmentOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetHostingEnvironmentOperations", resp, "Failure responding to request") + return } return @@ -1455,6 +1471,7 @@ func (client HostingEnvironmentsClient) GetHostingEnvironments(ctx context.Conte result.hec, err = client.GetHostingEnvironmentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetHostingEnvironments", resp, "Failure responding to request") + return } if result.hec.hasNextLink() && result.hec.IsEmpty() { err = result.NextWithContext(ctx) @@ -1518,6 +1535,7 @@ func (client HostingEnvironmentsClient) getHostingEnvironmentsNextResults(ctx co result, err = client.GetHostingEnvironmentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "getHostingEnvironmentsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1570,6 +1588,7 @@ func (client HostingEnvironmentsClient) GetHostingEnvironmentServerFarms(ctx con result.sfc, err = client.GetHostingEnvironmentServerFarmsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetHostingEnvironmentServerFarms", resp, "Failure responding to request") + return } if result.sfc.hasNextLink() && result.sfc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1634,6 +1653,7 @@ func (client HostingEnvironmentsClient) getHostingEnvironmentServerFarmsNextResu result, err = client.GetHostingEnvironmentServerFarmsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "getHostingEnvironmentServerFarmsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1687,6 +1707,7 @@ func (client HostingEnvironmentsClient) GetHostingEnvironmentSites(ctx context.C result.sc, err = client.GetHostingEnvironmentSitesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetHostingEnvironmentSites", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1754,6 +1775,7 @@ func (client HostingEnvironmentsClient) getHostingEnvironmentSitesNextResults(ct result, err = client.GetHostingEnvironmentSitesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "getHostingEnvironmentSitesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1809,6 +1831,7 @@ func (client HostingEnvironmentsClient) GetHostingEnvironmentUsages(ctx context. result.cuqc, err = client.GetHostingEnvironmentUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetHostingEnvironmentUsages", resp, "Failure responding to request") + return } if result.cuqc.hasNextLink() && result.cuqc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1876,6 +1899,7 @@ func (client HostingEnvironmentsClient) getHostingEnvironmentUsagesNextResults(c result, err = client.GetHostingEnvironmentUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "getHostingEnvironmentUsagesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1927,6 +1951,7 @@ func (client HostingEnvironmentsClient) GetHostingEnvironmentVips(ctx context.Co result, err = client.GetHostingEnvironmentVipsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetHostingEnvironmentVips", resp, "Failure responding to request") + return } return @@ -2003,6 +2028,7 @@ func (client HostingEnvironmentsClient) GetHostingEnvironmentWebHostingPlans(ctx result.sfc, err = client.GetHostingEnvironmentWebHostingPlansResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetHostingEnvironmentWebHostingPlans", resp, "Failure responding to request") + return } if result.sfc.hasNextLink() && result.sfc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2067,6 +2093,7 @@ func (client HostingEnvironmentsClient) getHostingEnvironmentWebHostingPlansNext result, err = client.GetHostingEnvironmentWebHostingPlansResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "getHostingEnvironmentWebHostingPlansNextResults", resp, "Failure responding to next results request") + return } return } @@ -2121,6 +2148,7 @@ func (client HostingEnvironmentsClient) GetHostingEnvironmentWebWorkerMetricDefi result.mdc, err = client.GetHostingEnvironmentWebWorkerMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetHostingEnvironmentWebWorkerMetricDefinitions", resp, "Failure responding to request") + return } if result.mdc.hasNextLink() && result.mdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2186,6 +2214,7 @@ func (client HostingEnvironmentsClient) getHostingEnvironmentWebWorkerMetricDefi result, err = client.GetHostingEnvironmentWebWorkerMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "getHostingEnvironmentWebWorkerMetricDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2243,6 +2272,7 @@ func (client HostingEnvironmentsClient) GetHostingEnvironmentWebWorkerMetrics(ct result.rmc, err = client.GetHostingEnvironmentWebWorkerMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetHostingEnvironmentWebWorkerMetrics", resp, "Failure responding to request") + return } if result.rmc.hasNextLink() && result.rmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2314,6 +2344,7 @@ func (client HostingEnvironmentsClient) getHostingEnvironmentWebWorkerMetricsNex result, err = client.GetHostingEnvironmentWebWorkerMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "getHostingEnvironmentWebWorkerMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2367,6 +2398,7 @@ func (client HostingEnvironmentsClient) GetHostingEnvironmentWebWorkerUsages(ctx result.uc, err = client.GetHostingEnvironmentWebWorkerUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetHostingEnvironmentWebWorkerUsages", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2432,6 +2464,7 @@ func (client HostingEnvironmentsClient) getHostingEnvironmentWebWorkerUsagesNext result, err = client.GetHostingEnvironmentWebWorkerUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "getHostingEnvironmentWebWorkerUsagesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2483,6 +2516,7 @@ func (client HostingEnvironmentsClient) GetMultiRolePool(ctx context.Context, re result, err = client.GetMultiRolePoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetMultiRolePool", resp, "Failure responding to request") + return } return @@ -2559,6 +2593,7 @@ func (client HostingEnvironmentsClient) GetMultiRolePoolInstanceMetricDefinition result, err = client.GetMultiRolePoolInstanceMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetMultiRolePoolInstanceMetricDefinitions", resp, "Failure responding to request") + return } return @@ -2637,6 +2672,7 @@ func (client HostingEnvironmentsClient) GetMultiRolePoolInstanceMetrics(ctx cont result, err = client.GetMultiRolePoolInstanceMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetMultiRolePoolInstanceMetrics", resp, "Failure responding to request") + return } return @@ -2717,6 +2753,7 @@ func (client HostingEnvironmentsClient) GetMultiRolePools(ctx context.Context, r result.wpc, err = client.GetMultiRolePoolsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetMultiRolePools", resp, "Failure responding to request") + return } if result.wpc.hasNextLink() && result.wpc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2781,6 +2818,7 @@ func (client HostingEnvironmentsClient) getMultiRolePoolsNextResults(ctx context result, err = client.GetMultiRolePoolsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "getMultiRolePoolsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2833,6 +2871,7 @@ func (client HostingEnvironmentsClient) GetMultiRolePoolSkus(ctx context.Context result.sic, err = client.GetMultiRolePoolSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetMultiRolePoolSkus", resp, "Failure responding to request") + return } if result.sic.hasNextLink() && result.sic.IsEmpty() { err = result.NextWithContext(ctx) @@ -2897,6 +2936,7 @@ func (client HostingEnvironmentsClient) getMultiRolePoolSkusNextResults(ctx cont result, err = client.GetMultiRolePoolSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "getMultiRolePoolSkusNextResults", resp, "Failure responding to next results request") + return } return } @@ -2949,6 +2989,7 @@ func (client HostingEnvironmentsClient) GetWorkerPool(ctx context.Context, resou result, err = client.GetWorkerPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetWorkerPool", resp, "Failure responding to request") + return } return @@ -3027,6 +3068,7 @@ func (client HostingEnvironmentsClient) GetWorkerPoolInstanceMetricDefinitions(c result, err = client.GetWorkerPoolInstanceMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetWorkerPoolInstanceMetricDefinitions", resp, "Failure responding to request") + return } return @@ -3110,6 +3152,7 @@ func (client HostingEnvironmentsClient) GetWorkerPoolInstanceMetrics(ctx context result, err = client.GetWorkerPoolInstanceMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetWorkerPoolInstanceMetrics", resp, "Failure responding to request") + return } return @@ -3194,6 +3237,7 @@ func (client HostingEnvironmentsClient) GetWorkerPools(ctx context.Context, reso result.wpc, err = client.GetWorkerPoolsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetWorkerPools", resp, "Failure responding to request") + return } if result.wpc.hasNextLink() && result.wpc.IsEmpty() { err = result.NextWithContext(ctx) @@ -3258,6 +3302,7 @@ func (client HostingEnvironmentsClient) getWorkerPoolsNextResults(ctx context.Co result, err = client.GetWorkerPoolsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "getWorkerPoolsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3311,6 +3356,7 @@ func (client HostingEnvironmentsClient) GetWorkerPoolSkus(ctx context.Context, r result.sic, err = client.GetWorkerPoolSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "GetWorkerPoolSkus", resp, "Failure responding to request") + return } if result.sic.hasNextLink() && result.sic.IsEmpty() { err = result.NextWithContext(ctx) @@ -3376,6 +3422,7 @@ func (client HostingEnvironmentsClient) getWorkerPoolSkusNextResults(ctx context result, err = client.GetWorkerPoolSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "getWorkerPoolSkusNextResults", resp, "Failure responding to next results request") + return } return } @@ -3427,6 +3474,7 @@ func (client HostingEnvironmentsClient) RebootHostingEnvironment(ctx context.Con result, err = client.RebootHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.HostingEnvironmentsClient", "RebootHostingEnvironment", resp, "Failure responding to request") + return } return diff --git a/services/preview/web/mgmt/2015-08-01-preview/web/managedapis.go b/services/preview/web/mgmt/2015-08-01-preview/web/managedapis.go index 1fdd55adb1d5..d087a693b3ef 100644 --- a/services/preview/web/mgmt/2015-08-01-preview/web/managedapis.go +++ b/services/preview/web/mgmt/2015-08-01-preview/web/managedapis.go @@ -73,6 +73,7 @@ func (client ManagedApisClient) Get(ctx context.Context, location string, APINam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ManagedApisClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ManagedApisClient) List(ctx context.Context, location string) (resu result.ac, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ManagedApisClient", "List", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -214,6 +216,7 @@ func (client ManagedApisClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ManagedApisClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/web/mgmt/2015-08-01-preview/web/managedhostingenvironments.go b/services/preview/web/mgmt/2015-08-01-preview/web/managedhostingenvironments.go index 0cf30c2967df..7d623fd2bd71 100644 --- a/services/preview/web/mgmt/2015-08-01-preview/web/managedhostingenvironments.go +++ b/services/preview/web/mgmt/2015-08-01-preview/web/managedhostingenvironments.go @@ -230,6 +230,7 @@ func (client ManagedHostingEnvironmentsClient) GetManagedHostingEnvironment(ctx result, err = client.GetManagedHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ManagedHostingEnvironmentsClient", "GetManagedHostingEnvironment", resp, "Failure responding to request") + return } return @@ -306,6 +307,7 @@ func (client ManagedHostingEnvironmentsClient) GetManagedHostingEnvironmentOpera result, err = client.GetManagedHostingEnvironmentOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ManagedHostingEnvironmentsClient", "GetManagedHostingEnvironmentOperation", resp, "Failure responding to request") + return } return @@ -382,6 +384,7 @@ func (client ManagedHostingEnvironmentsClient) GetManagedHostingEnvironments(ctx result.hec, err = client.GetManagedHostingEnvironmentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ManagedHostingEnvironmentsClient", "GetManagedHostingEnvironments", resp, "Failure responding to request") + return } if result.hec.hasNextLink() && result.hec.IsEmpty() { err = result.NextWithContext(ctx) @@ -445,6 +448,7 @@ func (client ManagedHostingEnvironmentsClient) getManagedHostingEnvironmentsNext result, err = client.GetManagedHostingEnvironmentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ManagedHostingEnvironmentsClient", "getManagedHostingEnvironmentsNextResults", resp, "Failure responding to next results request") + return } return } @@ -497,6 +501,7 @@ func (client ManagedHostingEnvironmentsClient) GetManagedHostingEnvironmentServe result.sfc, err = client.GetManagedHostingEnvironmentServerFarmsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ManagedHostingEnvironmentsClient", "GetManagedHostingEnvironmentServerFarms", resp, "Failure responding to request") + return } if result.sfc.hasNextLink() && result.sfc.IsEmpty() { err = result.NextWithContext(ctx) @@ -561,6 +566,7 @@ func (client ManagedHostingEnvironmentsClient) getManagedHostingEnvironmentServe result, err = client.GetManagedHostingEnvironmentServerFarmsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ManagedHostingEnvironmentsClient", "getManagedHostingEnvironmentServerFarmsNextResults", resp, "Failure responding to next results request") + return } return } @@ -614,6 +620,7 @@ func (client ManagedHostingEnvironmentsClient) GetManagedHostingEnvironmentSites result.sc, err = client.GetManagedHostingEnvironmentSitesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ManagedHostingEnvironmentsClient", "GetManagedHostingEnvironmentSites", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -681,6 +688,7 @@ func (client ManagedHostingEnvironmentsClient) getManagedHostingEnvironmentSites result, err = client.GetManagedHostingEnvironmentSitesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ManagedHostingEnvironmentsClient", "getManagedHostingEnvironmentSitesNextResults", resp, "Failure responding to next results request") + return } return } @@ -732,6 +740,7 @@ func (client ManagedHostingEnvironmentsClient) GetManagedHostingEnvironmentVips( result, err = client.GetManagedHostingEnvironmentVipsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ManagedHostingEnvironmentsClient", "GetManagedHostingEnvironmentVips", resp, "Failure responding to request") + return } return @@ -808,6 +817,7 @@ func (client ManagedHostingEnvironmentsClient) GetManagedHostingEnvironmentWebHo result.sfc, err = client.GetManagedHostingEnvironmentWebHostingPlansResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ManagedHostingEnvironmentsClient", "GetManagedHostingEnvironmentWebHostingPlans", resp, "Failure responding to request") + return } if result.sfc.hasNextLink() && result.sfc.IsEmpty() { err = result.NextWithContext(ctx) @@ -872,6 +882,7 @@ func (client ManagedHostingEnvironmentsClient) getManagedHostingEnvironmentWebHo result, err = client.GetManagedHostingEnvironmentWebHostingPlansResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ManagedHostingEnvironmentsClient", "getManagedHostingEnvironmentWebHostingPlansNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/web/mgmt/2015-08-01-preview/web/provider.go b/services/preview/web/mgmt/2015-08-01-preview/web/provider.go index 1548f27f2fa0..dd7fb57a4033 100644 --- a/services/preview/web/mgmt/2015-08-01-preview/web/provider.go +++ b/services/preview/web/mgmt/2015-08-01-preview/web/provider.go @@ -69,6 +69,7 @@ func (client ProviderClient) GetPublishingUser(ctx context.Context) (result User result, err = client.GetPublishingUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "GetPublishingUser", resp, "Failure responding to request") + return } return @@ -137,6 +138,7 @@ func (client ProviderClient) GetSourceControl(ctx context.Context, sourceControl result, err = client.GetSourceControlResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "GetSourceControl", resp, "Failure responding to request") + return } return @@ -208,6 +210,7 @@ func (client ProviderClient) GetSourceControls(ctx context.Context) (result Sour result.scc, err = client.GetSourceControlsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "GetSourceControls", resp, "Failure responding to request") + return } if result.scc.hasNextLink() && result.scc.IsEmpty() { err = result.NextWithContext(ctx) @@ -266,6 +269,7 @@ func (client ProviderClient) getSourceControlsNextResults(ctx context.Context, l result, err = client.GetSourceControlsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "getSourceControlsNextResults", resp, "Failure responding to next results request") + return } return } @@ -316,6 +320,7 @@ func (client ProviderClient) UpdatePublishingUser(ctx context.Context, requestMe result, err = client.UpdatePublishingUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "UpdatePublishingUser", resp, "Failure responding to request") + return } return @@ -387,6 +392,7 @@ func (client ProviderClient) UpdateSourceControl(ctx context.Context, sourceCont result, err = client.UpdateSourceControlResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "UpdateSourceControl", resp, "Failure responding to request") + return } return diff --git a/services/preview/web/mgmt/2015-08-01-preview/web/recommendations.go b/services/preview/web/mgmt/2015-08-01-preview/web/recommendations.go index 40942a38cca0..b0e24fb4b9de 100644 --- a/services/preview/web/mgmt/2015-08-01-preview/web/recommendations.go +++ b/services/preview/web/mgmt/2015-08-01-preview/web/recommendations.go @@ -74,6 +74,7 @@ func (client RecommendationsClient) GetRecommendationBySubscription(ctx context. result, err = client.GetRecommendationBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "GetRecommendationBySubscription", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client RecommendationsClient) GetRecommendationHistoryForSite(ctx context. result, err = client.GetRecommendationHistoryForSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "GetRecommendationHistoryForSite", resp, "Failure responding to request") + return } return @@ -242,6 +244,7 @@ func (client RecommendationsClient) GetRecommendedRulesForSite(ctx context.Conte result, err = client.GetRecommendedRulesForSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "GetRecommendedRulesForSite", resp, "Failure responding to request") + return } return @@ -327,6 +330,7 @@ func (client RecommendationsClient) GetRuleDetailsBySiteName(ctx context.Context result, err = client.GetRuleDetailsBySiteNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "GetRuleDetailsBySiteName", resp, "Failure responding to request") + return } return diff --git a/services/preview/web/mgmt/2015-08-01-preview/web/serverfarms.go b/services/preview/web/mgmt/2015-08-01-preview/web/serverfarms.go index a7431903b390..8dd216a61c2f 100644 --- a/services/preview/web/mgmt/2015-08-01-preview/web/serverfarms.go +++ b/services/preview/web/mgmt/2015-08-01-preview/web/serverfarms.go @@ -157,6 +157,7 @@ func (client ServerFarmsClient) CreateOrUpdateVnetRoute(ctx context.Context, res result, err = client.CreateOrUpdateVnetRouteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ServerFarmsClient", "CreateOrUpdateVnetRoute", resp, "Failure responding to request") + return } return @@ -236,6 +237,7 @@ func (client ServerFarmsClient) DeleteServerFarm(ctx context.Context, resourceGr result, err = client.DeleteServerFarmResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ServerFarmsClient", "DeleteServerFarm", resp, "Failure responding to request") + return } return @@ -313,6 +315,7 @@ func (client ServerFarmsClient) DeleteVnetRoute(ctx context.Context, resourceGro result, err = client.DeleteVnetRouteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ServerFarmsClient", "DeleteVnetRoute", resp, "Failure responding to request") + return } return @@ -392,6 +395,7 @@ func (client ServerFarmsClient) GetRouteForVnet(ctx context.Context, resourceGro result, err = client.GetRouteForVnetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ServerFarmsClient", "GetRouteForVnet", resp, "Failure responding to request") + return } return @@ -470,6 +474,7 @@ func (client ServerFarmsClient) GetRoutesForVnet(ctx context.Context, resourceGr result, err = client.GetRoutesForVnetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ServerFarmsClient", "GetRoutesForVnet", resp, "Failure responding to request") + return } return @@ -546,6 +551,7 @@ func (client ServerFarmsClient) GetServerFarm(ctx context.Context, resourceGroup result, err = client.GetServerFarmResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ServerFarmsClient", "GetServerFarm", resp, "Failure responding to request") + return } return @@ -622,6 +628,7 @@ func (client ServerFarmsClient) GetServerFarmMetricDefintions(ctx context.Contex result.mdc, err = client.GetServerFarmMetricDefintionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ServerFarmsClient", "GetServerFarmMetricDefintions", resp, "Failure responding to request") + return } if result.mdc.hasNextLink() && result.mdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -686,6 +693,7 @@ func (client ServerFarmsClient) getServerFarmMetricDefintionsNextResults(ctx con result, err = client.GetServerFarmMetricDefintionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ServerFarmsClient", "getServerFarmMetricDefintionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -742,6 +750,7 @@ func (client ServerFarmsClient) GetServerFarmMetrics(ctx context.Context, resour result.rmc, err = client.GetServerFarmMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ServerFarmsClient", "GetServerFarmMetrics", resp, "Failure responding to request") + return } if result.rmc.hasNextLink() && result.rmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -812,6 +821,7 @@ func (client ServerFarmsClient) getServerFarmMetricsNextResults(ctx context.Cont result, err = client.GetServerFarmMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ServerFarmsClient", "getServerFarmMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -864,6 +874,7 @@ func (client ServerFarmsClient) GetServerFarmOperation(ctx context.Context, reso result, err = client.GetServerFarmOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ServerFarmsClient", "GetServerFarmOperation", resp, "Failure responding to request") + return } return @@ -940,6 +951,7 @@ func (client ServerFarmsClient) GetServerFarms(ctx context.Context, resourceGrou result.sfc, err = client.GetServerFarmsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ServerFarmsClient", "GetServerFarms", resp, "Failure responding to request") + return } if result.sfc.hasNextLink() && result.sfc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1003,6 +1015,7 @@ func (client ServerFarmsClient) getServerFarmsNextResults(ctx context.Context, l result, err = client.GetServerFarmsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ServerFarmsClient", "getServerFarmsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1059,6 +1072,7 @@ func (client ServerFarmsClient) GetServerFarmSites(ctx context.Context, resource result.sc, err = client.GetServerFarmSitesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ServerFarmsClient", "GetServerFarmSites", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1132,6 +1146,7 @@ func (client ServerFarmsClient) getServerFarmSitesNextResults(ctx context.Contex result, err = client.GetServerFarmSitesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ServerFarmsClient", "getServerFarmSitesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1185,6 +1200,7 @@ func (client ServerFarmsClient) GetServerFarmVnetGateway(ctx context.Context, re result, err = client.GetServerFarmVnetGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ServerFarmsClient", "GetServerFarmVnetGateway", resp, "Failure responding to request") + return } return @@ -1263,6 +1279,7 @@ func (client ServerFarmsClient) GetVnetFromServerFarm(ctx context.Context, resou result, err = client.GetVnetFromServerFarmResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ServerFarmsClient", "GetVnetFromServerFarm", resp, "Failure responding to request") + return } return @@ -1339,6 +1356,7 @@ func (client ServerFarmsClient) GetVnetsForServerFarm(ctx context.Context, resou result, err = client.GetVnetsForServerFarmResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ServerFarmsClient", "GetVnetsForServerFarm", resp, "Failure responding to request") + return } return @@ -1415,6 +1433,7 @@ func (client ServerFarmsClient) RebootWorkerForServerFarm(ctx context.Context, r result, err = client.RebootWorkerForServerFarmResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ServerFarmsClient", "RebootWorkerForServerFarm", resp, "Failure responding to request") + return } return @@ -1493,6 +1512,7 @@ func (client ServerFarmsClient) RestartSitesForServerFarm(ctx context.Context, r result, err = client.RestartSitesForServerFarmResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ServerFarmsClient", "RestartSitesForServerFarm", resp, "Failure responding to request") + return } return @@ -1574,6 +1594,7 @@ func (client ServerFarmsClient) UpdateServerFarmVnetGateway(ctx context.Context, result, err = client.UpdateServerFarmVnetGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ServerFarmsClient", "UpdateServerFarmVnetGateway", resp, "Failure responding to request") + return } return @@ -1656,6 +1677,7 @@ func (client ServerFarmsClient) UpdateVnetRoute(ctx context.Context, resourceGro result, err = client.UpdateVnetRouteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ServerFarmsClient", "UpdateVnetRoute", resp, "Failure responding to request") + return } return diff --git a/services/preview/web/mgmt/2015-08-01-preview/web/sites.go b/services/preview/web/mgmt/2015-08-01-preview/web/sites.go index d8512f085c3d..f01fbb929a8a 100644 --- a/services/preview/web/mgmt/2015-08-01-preview/web/sites.go +++ b/services/preview/web/mgmt/2015-08-01-preview/web/sites.go @@ -69,6 +69,7 @@ func (client SitesClient) AddSitePremierAddOn(ctx context.Context, resourceGroup result, err = client.AddSitePremierAddOnResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "AddSitePremierAddOn", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client SitesClient) AddSitePremierAddOnSlot(ctx context.Context, resourceG result, err = client.AddSitePremierAddOnSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "AddSitePremierAddOnSlot", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client SitesClient) ApplySlotConfigSlot(ctx context.Context, resourceGroup result, err = client.ApplySlotConfigSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "ApplySlotConfigSlot", resp, "Failure responding to request") + return } return @@ -306,6 +309,7 @@ func (client SitesClient) ApplySlotConfigToProduction(ctx context.Context, resou result, err = client.ApplySlotConfigToProductionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "ApplySlotConfigToProduction", resp, "Failure responding to request") + return } return @@ -384,6 +388,7 @@ func (client SitesClient) BackupSite(ctx context.Context, resourceGroupName stri result, err = client.BackupSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "BackupSite", resp, "Failure responding to request") + return } return @@ -463,6 +468,7 @@ func (client SitesClient) BackupSiteSlot(ctx context.Context, resourceGroupName result, err = client.BackupSiteSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "BackupSiteSlot", resp, "Failure responding to request") + return } return @@ -543,6 +549,7 @@ func (client SitesClient) CreateDeployment(ctx context.Context, resourceGroupNam result, err = client.CreateDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "CreateDeployment", resp, "Failure responding to request") + return } return @@ -624,6 +631,7 @@ func (client SitesClient) CreateDeploymentSlot(ctx context.Context, resourceGrou result, err = client.CreateDeploymentSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "CreateDeploymentSlot", resp, "Failure responding to request") + return } return @@ -706,6 +714,7 @@ func (client SitesClient) CreateInstanceDeployment(ctx context.Context, resource result, err = client.CreateInstanceDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "CreateInstanceDeployment", resp, "Failure responding to request") + return } return @@ -789,6 +798,7 @@ func (client SitesClient) CreateInstanceDeploymentSlot(ctx context.Context, reso result, err = client.CreateInstanceDeploymentSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "CreateInstanceDeploymentSlot", resp, "Failure responding to request") + return } return @@ -966,6 +976,7 @@ func (client SitesClient) CreateOrUpdateSiteConfig(ctx context.Context, resource result, err = client.CreateOrUpdateSiteConfigResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "CreateOrUpdateSiteConfig", resp, "Failure responding to request") + return } return @@ -1045,6 +1056,7 @@ func (client SitesClient) CreateOrUpdateSiteConfigSlot(ctx context.Context, reso result, err = client.CreateOrUpdateSiteConfigSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "CreateOrUpdateSiteConfigSlot", resp, "Failure responding to request") + return } return @@ -1125,6 +1137,7 @@ func (client SitesClient) CreateOrUpdateSiteHostNameBinding(ctx context.Context, result, err = client.CreateOrUpdateSiteHostNameBindingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "CreateOrUpdateSiteHostNameBinding", resp, "Failure responding to request") + return } return @@ -1206,6 +1219,7 @@ func (client SitesClient) CreateOrUpdateSiteHostNameBindingSlot(ctx context.Cont result, err = client.CreateOrUpdateSiteHostNameBindingSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "CreateOrUpdateSiteHostNameBindingSlot", resp, "Failure responding to request") + return } return @@ -1287,6 +1301,7 @@ func (client SitesClient) CreateOrUpdateSiteRelayServiceConnection(ctx context.C result, err = client.CreateOrUpdateSiteRelayServiceConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "CreateOrUpdateSiteRelayServiceConnection", resp, "Failure responding to request") + return } return @@ -1368,6 +1383,7 @@ func (client SitesClient) CreateOrUpdateSiteRelayServiceConnectionSlot(ctx conte result, err = client.CreateOrUpdateSiteRelayServiceConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "CreateOrUpdateSiteRelayServiceConnectionSlot", resp, "Failure responding to request") + return } return @@ -1546,6 +1562,7 @@ func (client SitesClient) CreateOrUpdateSiteSourceControl(ctx context.Context, r result, err = client.CreateOrUpdateSiteSourceControlResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "CreateOrUpdateSiteSourceControl", resp, "Failure responding to request") + return } return @@ -1625,6 +1642,7 @@ func (client SitesClient) CreateOrUpdateSiteSourceControlSlot(ctx context.Contex result, err = client.CreateOrUpdateSiteSourceControlSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "CreateOrUpdateSiteSourceControlSlot", resp, "Failure responding to request") + return } return @@ -1705,6 +1723,7 @@ func (client SitesClient) CreateOrUpdateSiteVNETConnection(ctx context.Context, result, err = client.CreateOrUpdateSiteVNETConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "CreateOrUpdateSiteVNETConnection", resp, "Failure responding to request") + return } return @@ -1786,6 +1805,7 @@ func (client SitesClient) CreateOrUpdateSiteVNETConnectionGateway(ctx context.Co result, err = client.CreateOrUpdateSiteVNETConnectionGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "CreateOrUpdateSiteVNETConnectionGateway", resp, "Failure responding to request") + return } return @@ -1869,6 +1889,7 @@ func (client SitesClient) CreateOrUpdateSiteVNETConnectionGatewaySlot(ctx contex result, err = client.CreateOrUpdateSiteVNETConnectionGatewaySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "CreateOrUpdateSiteVNETConnectionGatewaySlot", resp, "Failure responding to request") + return } return @@ -1952,6 +1973,7 @@ func (client SitesClient) CreateOrUpdateSiteVNETConnectionSlot(ctx context.Conte result, err = client.CreateOrUpdateSiteVNETConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "CreateOrUpdateSiteVNETConnectionSlot", resp, "Failure responding to request") + return } return @@ -2032,6 +2054,7 @@ func (client SitesClient) DeleteBackup(ctx context.Context, resourceGroupName st result, err = client.DeleteBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "DeleteBackup", resp, "Failure responding to request") + return } return @@ -2110,6 +2133,7 @@ func (client SitesClient) DeleteBackupSlot(ctx context.Context, resourceGroupNam result, err = client.DeleteBackupSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "DeleteBackupSlot", resp, "Failure responding to request") + return } return @@ -2188,6 +2212,7 @@ func (client SitesClient) DeleteDeployment(ctx context.Context, resourceGroupNam result, err = client.DeleteDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "DeleteDeployment", resp, "Failure responding to request") + return } return @@ -2266,6 +2291,7 @@ func (client SitesClient) DeleteDeploymentSlot(ctx context.Context, resourceGrou result, err = client.DeleteDeploymentSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "DeleteDeploymentSlot", resp, "Failure responding to request") + return } return @@ -2345,6 +2371,7 @@ func (client SitesClient) DeleteInstanceDeployment(ctx context.Context, resource result, err = client.DeleteInstanceDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "DeleteInstanceDeployment", resp, "Failure responding to request") + return } return @@ -2425,6 +2452,7 @@ func (client SitesClient) DeleteInstanceDeploymentSlot(ctx context.Context, reso result, err = client.DeleteInstanceDeploymentSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "DeleteInstanceDeploymentSlot", resp, "Failure responding to request") + return } return @@ -2508,6 +2536,7 @@ func (client SitesClient) DeleteSite(ctx context.Context, resourceGroupName stri result, err = client.DeleteSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "DeleteSite", resp, "Failure responding to request") + return } return @@ -2596,6 +2625,7 @@ func (client SitesClient) DeleteSiteHostNameBinding(ctx context.Context, resourc result, err = client.DeleteSiteHostNameBindingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "DeleteSiteHostNameBinding", resp, "Failure responding to request") + return } return @@ -2674,6 +2704,7 @@ func (client SitesClient) DeleteSiteHostNameBindingSlot(ctx context.Context, res result, err = client.DeleteSiteHostNameBindingSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "DeleteSiteHostNameBindingSlot", resp, "Failure responding to request") + return } return @@ -2748,6 +2779,7 @@ func (client SitesClient) DeleteSitePremierAddOn(ctx context.Context, resourceGr result, err = client.DeleteSitePremierAddOnResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "DeleteSitePremierAddOn", resp, "Failure responding to request") + return } return @@ -2821,6 +2853,7 @@ func (client SitesClient) DeleteSitePremierAddOnSlot(ctx context.Context, resour result, err = client.DeleteSitePremierAddOnSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "DeleteSitePremierAddOnSlot", resp, "Failure responding to request") + return } return @@ -2899,6 +2932,7 @@ func (client SitesClient) DeleteSiteRelayServiceConnection(ctx context.Context, result, err = client.DeleteSiteRelayServiceConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "DeleteSiteRelayServiceConnection", resp, "Failure responding to request") + return } return @@ -2977,6 +3011,7 @@ func (client SitesClient) DeleteSiteRelayServiceConnectionSlot(ctx context.Conte result, err = client.DeleteSiteRelayServiceConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "DeleteSiteRelayServiceConnectionSlot", resp, "Failure responding to request") + return } return @@ -3060,6 +3095,7 @@ func (client SitesClient) DeleteSiteSlot(ctx context.Context, resourceGroupName result, err = client.DeleteSiteSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "DeleteSiteSlot", resp, "Failure responding to request") + return } return @@ -3148,6 +3184,7 @@ func (client SitesClient) DeleteSiteSourceControl(ctx context.Context, resourceG result, err = client.DeleteSiteSourceControlResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "DeleteSiteSourceControl", resp, "Failure responding to request") + return } return @@ -3224,6 +3261,7 @@ func (client SitesClient) DeleteSiteSourceControlSlot(ctx context.Context, resou result, err = client.DeleteSiteSourceControlSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "DeleteSiteSourceControlSlot", resp, "Failure responding to request") + return } return @@ -3301,6 +3339,7 @@ func (client SitesClient) DeleteSiteVNETConnection(ctx context.Context, resource result, err = client.DeleteSiteVNETConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "DeleteSiteVNETConnection", resp, "Failure responding to request") + return } return @@ -3379,6 +3418,7 @@ func (client SitesClient) DeleteSiteVNETConnectionSlot(ctx context.Context, reso result, err = client.DeleteSiteVNETConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "DeleteSiteVNETConnectionSlot", resp, "Failure responding to request") + return } return @@ -3457,6 +3497,7 @@ func (client SitesClient) DiscoverSiteRestore(ctx context.Context, resourceGroup result, err = client.DiscoverSiteRestoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "DiscoverSiteRestore", resp, "Failure responding to request") + return } return @@ -3536,6 +3577,7 @@ func (client SitesClient) DiscoverSiteRestoreSlot(ctx context.Context, resourceG result, err = client.DiscoverSiteRestoreSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "DiscoverSiteRestoreSlot", resp, "Failure responding to request") + return } return @@ -3614,6 +3656,7 @@ func (client SitesClient) GenerateNewSitePublishingPassword(ctx context.Context, result, err = client.GenerateNewSitePublishingPasswordResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GenerateNewSitePublishingPassword", resp, "Failure responding to request") + return } return @@ -3690,6 +3733,7 @@ func (client SitesClient) GenerateNewSitePublishingPasswordSlot(ctx context.Cont result, err = client.GenerateNewSitePublishingPasswordSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GenerateNewSitePublishingPasswordSlot", resp, "Failure responding to request") + return } return @@ -3768,6 +3812,7 @@ func (client SitesClient) GetDeletedSites(ctx context.Context, resourceGroupName result.dsc, err = client.GetDeletedSitesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetDeletedSites", resp, "Failure responding to request") + return } if result.dsc.hasNextLink() && result.dsc.IsEmpty() { err = result.NextWithContext(ctx) @@ -3837,6 +3882,7 @@ func (client SitesClient) getDeletedSitesNextResults(ctx context.Context, lastRe result, err = client.GetDeletedSitesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "getDeletedSitesNextResults", resp, "Failure responding to next results request") + return } return } @@ -3889,6 +3935,7 @@ func (client SitesClient) GetDeployment(ctx context.Context, resourceGroupName s result, err = client.GetDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetDeployment", resp, "Failure responding to request") + return } return @@ -3966,6 +4013,7 @@ func (client SitesClient) GetDeployments(ctx context.Context, resourceGroupName result.dc, err = client.GetDeploymentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetDeployments", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -4030,6 +4078,7 @@ func (client SitesClient) getDeploymentsNextResults(ctx context.Context, lastRes result, err = client.GetDeploymentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "getDeploymentsNextResults", resp, "Failure responding to next results request") + return } return } @@ -4083,6 +4132,7 @@ func (client SitesClient) GetDeploymentSlot(ctx context.Context, resourceGroupNa result, err = client.GetDeploymentSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetDeploymentSlot", resp, "Failure responding to request") + return } return @@ -4162,6 +4212,7 @@ func (client SitesClient) GetDeploymentsSlot(ctx context.Context, resourceGroupN result.dc, err = client.GetDeploymentsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetDeploymentsSlot", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -4227,6 +4278,7 @@ func (client SitesClient) getDeploymentsSlotNextResults(ctx context.Context, las result, err = client.GetDeploymentsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "getDeploymentsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -4280,6 +4332,7 @@ func (client SitesClient) GetInstanceDeployment(ctx context.Context, resourceGro result, err = client.GetInstanceDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetInstanceDeployment", resp, "Failure responding to request") + return } return @@ -4359,6 +4412,7 @@ func (client SitesClient) GetInstanceDeployments(ctx context.Context, resourceGr result.dc, err = client.GetInstanceDeploymentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetInstanceDeployments", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -4424,6 +4478,7 @@ func (client SitesClient) getInstanceDeploymentsNextResults(ctx context.Context, result, err = client.GetInstanceDeploymentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "getInstanceDeploymentsNextResults", resp, "Failure responding to next results request") + return } return } @@ -4478,6 +4533,7 @@ func (client SitesClient) GetInstanceDeploymentSlot(ctx context.Context, resourc result, err = client.GetInstanceDeploymentSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetInstanceDeploymentSlot", resp, "Failure responding to request") + return } return @@ -4559,6 +4615,7 @@ func (client SitesClient) GetInstanceDeploymentsSlot(ctx context.Context, resour result.dc, err = client.GetInstanceDeploymentsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetInstanceDeploymentsSlot", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -4625,6 +4682,7 @@ func (client SitesClient) getInstanceDeploymentsSlotNextResults(ctx context.Cont result, err = client.GetInstanceDeploymentsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "getInstanceDeploymentsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -4677,6 +4735,7 @@ func (client SitesClient) GetSite(ctx context.Context, resourceGroupName string, result, err = client.GetSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSite", resp, "Failure responding to request") + return } return @@ -4755,6 +4814,7 @@ func (client SitesClient) GetSiteBackupConfiguration(ctx context.Context, resour result, err = client.GetSiteBackupConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteBackupConfiguration", resp, "Failure responding to request") + return } return @@ -4831,6 +4891,7 @@ func (client SitesClient) GetSiteBackupConfigurationSlot(ctx context.Context, re result, err = client.GetSiteBackupConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteBackupConfigurationSlot", resp, "Failure responding to request") + return } return @@ -4908,6 +4969,7 @@ func (client SitesClient) GetSiteBackupStatus(ctx context.Context, resourceGroup result, err = client.GetSiteBackupStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteBackupStatus", resp, "Failure responding to request") + return } return @@ -4986,6 +5048,7 @@ func (client SitesClient) GetSiteBackupStatusSecrets(ctx context.Context, resour result, err = client.GetSiteBackupStatusSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteBackupStatusSecrets", resp, "Failure responding to request") + return } return @@ -5067,6 +5130,7 @@ func (client SitesClient) GetSiteBackupStatusSecretsSlot(ctx context.Context, re result, err = client.GetSiteBackupStatusSecretsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteBackupStatusSecretsSlot", resp, "Failure responding to request") + return } return @@ -5148,6 +5212,7 @@ func (client SitesClient) GetSiteBackupStatusSlot(ctx context.Context, resourceG result, err = client.GetSiteBackupStatusSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteBackupStatusSlot", resp, "Failure responding to request") + return } return @@ -5225,6 +5290,7 @@ func (client SitesClient) GetSiteConfig(ctx context.Context, resourceGroupName s result, err = client.GetSiteConfigResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteConfig", resp, "Failure responding to request") + return } return @@ -5301,6 +5367,7 @@ func (client SitesClient) GetSiteConfigSlot(ctx context.Context, resourceGroupNa result, err = client.GetSiteConfigSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteConfigSlot", resp, "Failure responding to request") + return } return @@ -5378,6 +5445,7 @@ func (client SitesClient) GetSiteHostNameBinding(ctx context.Context, resourceGr result, err = client.GetSiteHostNameBindingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteHostNameBinding", resp, "Failure responding to request") + return } return @@ -5455,6 +5523,7 @@ func (client SitesClient) GetSiteHostNameBindings(ctx context.Context, resourceG result.hnbc, err = client.GetSiteHostNameBindingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteHostNameBindings", resp, "Failure responding to request") + return } if result.hnbc.hasNextLink() && result.hnbc.IsEmpty() { err = result.NextWithContext(ctx) @@ -5519,6 +5588,7 @@ func (client SitesClient) getSiteHostNameBindingsNextResults(ctx context.Context result, err = client.GetSiteHostNameBindingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "getSiteHostNameBindingsNextResults", resp, "Failure responding to next results request") + return } return } @@ -5572,6 +5642,7 @@ func (client SitesClient) GetSiteHostNameBindingSlot(ctx context.Context, resour result, err = client.GetSiteHostNameBindingSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteHostNameBindingSlot", resp, "Failure responding to request") + return } return @@ -5651,6 +5722,7 @@ func (client SitesClient) GetSiteHostNameBindingsSlot(ctx context.Context, resou result.hnbc, err = client.GetSiteHostNameBindingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteHostNameBindingsSlot", resp, "Failure responding to request") + return } if result.hnbc.hasNextLink() && result.hnbc.IsEmpty() { err = result.NextWithContext(ctx) @@ -5716,6 +5788,7 @@ func (client SitesClient) getSiteHostNameBindingsSlotNextResults(ctx context.Con result, err = client.GetSiteHostNameBindingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "getSiteHostNameBindingsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -5768,6 +5841,7 @@ func (client SitesClient) GetSiteInstanceIdentifiers(ctx context.Context, resour result.sic, err = client.GetSiteInstanceIdentifiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteInstanceIdentifiers", resp, "Failure responding to request") + return } if result.sic.hasNextLink() && result.sic.IsEmpty() { err = result.NextWithContext(ctx) @@ -5832,6 +5906,7 @@ func (client SitesClient) getSiteInstanceIdentifiersNextResults(ctx context.Cont result, err = client.GetSiteInstanceIdentifiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "getSiteInstanceIdentifiersNextResults", resp, "Failure responding to next results request") + return } return } @@ -5885,6 +5960,7 @@ func (client SitesClient) GetSiteInstanceIdentifiersSlot(ctx context.Context, re result.sic, err = client.GetSiteInstanceIdentifiersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteInstanceIdentifiersSlot", resp, "Failure responding to request") + return } if result.sic.hasNextLink() && result.sic.IsEmpty() { err = result.NextWithContext(ctx) @@ -5950,6 +6026,7 @@ func (client SitesClient) getSiteInstanceIdentifiersSlotNextResults(ctx context. result, err = client.GetSiteInstanceIdentifiersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "getSiteInstanceIdentifiersSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -6001,6 +6078,7 @@ func (client SitesClient) GetSiteLogsConfig(ctx context.Context, resourceGroupNa result, err = client.GetSiteLogsConfigResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteLogsConfig", resp, "Failure responding to request") + return } return @@ -6077,6 +6155,7 @@ func (client SitesClient) GetSiteLogsConfigSlot(ctx context.Context, resourceGro result, err = client.GetSiteLogsConfigSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteLogsConfigSlot", resp, "Failure responding to request") + return } return @@ -6154,6 +6233,7 @@ func (client SitesClient) GetSiteMetricDefinitions(ctx context.Context, resource result.mdc, err = client.GetSiteMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteMetricDefinitions", resp, "Failure responding to request") + return } if result.mdc.hasNextLink() && result.mdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -6218,6 +6298,7 @@ func (client SitesClient) getSiteMetricDefinitionsNextResults(ctx context.Contex result, err = client.GetSiteMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "getSiteMetricDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -6271,6 +6352,7 @@ func (client SitesClient) GetSiteMetricDefinitionsSlot(ctx context.Context, reso result.mdc, err = client.GetSiteMetricDefinitionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteMetricDefinitionsSlot", resp, "Failure responding to request") + return } if result.mdc.hasNextLink() && result.mdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -6336,6 +6418,7 @@ func (client SitesClient) getSiteMetricDefinitionsSlotNextResults(ctx context.Co result, err = client.GetSiteMetricDefinitionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "getSiteMetricDefinitionsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -6392,6 +6475,7 @@ func (client SitesClient) GetSiteMetrics(ctx context.Context, resourceGroupName result.rmc, err = client.GetSiteMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteMetrics", resp, "Failure responding to request") + return } if result.rmc.hasNextLink() && result.rmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -6462,6 +6546,7 @@ func (client SitesClient) getSiteMetricsNextResults(ctx context.Context, lastRes result, err = client.GetSiteMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "getSiteMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -6519,6 +6604,7 @@ func (client SitesClient) GetSiteMetricsSlot(ctx context.Context, resourceGroupN result.rmc, err = client.GetSiteMetricsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteMetricsSlot", resp, "Failure responding to request") + return } if result.rmc.hasNextLink() && result.rmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -6590,6 +6676,7 @@ func (client SitesClient) getSiteMetricsSlotNextResults(ctx context.Context, las result, err = client.GetSiteMetricsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "getSiteMetricsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -6642,6 +6729,7 @@ func (client SitesClient) GetSiteNetworkFeatures(ctx context.Context, resourceGr result, err = client.GetSiteNetworkFeaturesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteNetworkFeatures", resp, "Failure responding to request") + return } return @@ -6720,6 +6808,7 @@ func (client SitesClient) GetSiteNetworkFeaturesSlot(ctx context.Context, resour result, err = client.GetSiteNetworkFeaturesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteNetworkFeaturesSlot", resp, "Failure responding to request") + return } return @@ -6798,6 +6887,7 @@ func (client SitesClient) GetSiteOperation(ctx context.Context, resourceGroupNam result, err = client.GetSiteOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteOperation", resp, "Failure responding to request") + return } return @@ -6876,6 +6966,7 @@ func (client SitesClient) GetSiteOperationSlot(ctx context.Context, resourceGrou result, err = client.GetSiteOperationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteOperationSlot", resp, "Failure responding to request") + return } return @@ -6950,6 +7041,7 @@ func (client SitesClient) GetSitePremierAddOn(ctx context.Context, resourceGroup result, err = client.GetSitePremierAddOnResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSitePremierAddOn", resp, "Failure responding to request") + return } return @@ -7023,6 +7115,7 @@ func (client SitesClient) GetSitePremierAddOnSlot(ctx context.Context, resourceG result, err = client.GetSitePremierAddOnSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSitePremierAddOnSlot", resp, "Failure responding to request") + return } return @@ -7101,6 +7194,7 @@ func (client SitesClient) GetSiteRelayServiceConnection(ctx context.Context, res result, err = client.GetSiteRelayServiceConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteRelayServiceConnection", resp, "Failure responding to request") + return } return @@ -7179,6 +7273,7 @@ func (client SitesClient) GetSiteRelayServiceConnectionSlot(ctx context.Context, result, err = client.GetSiteRelayServiceConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteRelayServiceConnectionSlot", resp, "Failure responding to request") + return } return @@ -7259,6 +7354,7 @@ func (client SitesClient) GetSites(ctx context.Context, resourceGroupName string result.sc, err = client.GetSitesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSites", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -7331,6 +7427,7 @@ func (client SitesClient) getSitesNextResults(ctx context.Context, lastResults S result, err = client.GetSitesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "getSitesNextResults", resp, "Failure responding to next results request") + return } return } @@ -7384,6 +7481,7 @@ func (client SitesClient) GetSiteSlot(ctx context.Context, resourceGroupName str result, err = client.GetSiteSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteSlot", resp, "Failure responding to request") + return } return @@ -7465,6 +7563,7 @@ func (client SitesClient) GetSiteSlots(ctx context.Context, resourceGroupName st result.sc, err = client.GetSiteSlotsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteSlots", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -7532,6 +7631,7 @@ func (client SitesClient) getSiteSlotsNextResults(ctx context.Context, lastResul result, err = client.GetSiteSlotsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "getSiteSlotsNextResults", resp, "Failure responding to next results request") + return } return } @@ -7583,6 +7683,7 @@ func (client SitesClient) GetSiteSnapshots(ctx context.Context, resourceGroupNam result, err = client.GetSiteSnapshotsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteSnapshots", resp, "Failure responding to request") + return } return @@ -7659,6 +7760,7 @@ func (client SitesClient) GetSiteSnapshotsSlot(ctx context.Context, resourceGrou result, err = client.GetSiteSnapshotsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteSnapshotsSlot", resp, "Failure responding to request") + return } return @@ -7735,6 +7837,7 @@ func (client SitesClient) GetSiteSourceControl(ctx context.Context, resourceGrou result, err = client.GetSiteSourceControlResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteSourceControl", resp, "Failure responding to request") + return } return @@ -7811,6 +7914,7 @@ func (client SitesClient) GetSiteSourceControlSlot(ctx context.Context, resource result, err = client.GetSiteSourceControlSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteSourceControlSlot", resp, "Failure responding to request") + return } return @@ -7891,6 +7995,7 @@ func (client SitesClient) GetSiteUsages(ctx context.Context, resourceGroupName s result.cuqc, err = client.GetSiteUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteUsages", resp, "Failure responding to request") + return } if result.cuqc.hasNextLink() && result.cuqc.IsEmpty() { err = result.NextWithContext(ctx) @@ -7958,6 +8063,7 @@ func (client SitesClient) getSiteUsagesNextResults(ctx context.Context, lastResu result, err = client.GetSiteUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "getSiteUsagesNextResults", resp, "Failure responding to next results request") + return } return } @@ -8014,6 +8120,7 @@ func (client SitesClient) GetSiteUsagesSlot(ctx context.Context, resourceGroupNa result.cuqc, err = client.GetSiteUsagesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteUsagesSlot", resp, "Failure responding to request") + return } if result.cuqc.hasNextLink() && result.cuqc.IsEmpty() { err = result.NextWithContext(ctx) @@ -8082,6 +8189,7 @@ func (client SitesClient) getSiteUsagesSlotNextResults(ctx context.Context, last result, err = client.GetSiteUsagesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "getSiteUsagesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -8134,6 +8242,7 @@ func (client SitesClient) GetSiteVNETConnection(ctx context.Context, resourceGro result, err = client.GetSiteVNETConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteVNETConnection", resp, "Failure responding to request") + return } return @@ -8210,6 +8319,7 @@ func (client SitesClient) GetSiteVNETConnections(ctx context.Context, resourceGr result, err = client.GetSiteVNETConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteVNETConnections", resp, "Failure responding to request") + return } return @@ -8287,6 +8397,7 @@ func (client SitesClient) GetSiteVNETConnectionSlot(ctx context.Context, resourc result, err = client.GetSiteVNETConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteVNETConnectionSlot", resp, "Failure responding to request") + return } return @@ -8365,6 +8476,7 @@ func (client SitesClient) GetSiteVNETConnectionsSlot(ctx context.Context, resour result, err = client.GetSiteVNETConnectionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteVNETConnectionsSlot", resp, "Failure responding to request") + return } return @@ -8443,6 +8555,7 @@ func (client SitesClient) GetSiteVnetGateway(ctx context.Context, resourceGroupN result, err = client.GetSiteVnetGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteVnetGateway", resp, "Failure responding to request") + return } return @@ -8523,6 +8636,7 @@ func (client SitesClient) GetSiteVnetGatewaySlot(ctx context.Context, resourceGr result, err = client.GetSiteVnetGatewaySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSiteVnetGatewaySlot", resp, "Failure responding to request") + return } return @@ -8601,6 +8715,7 @@ func (client SitesClient) GetSlotConfigNames(ctx context.Context, resourceGroupN result, err = client.GetSlotConfigNamesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSlotConfigNames", resp, "Failure responding to request") + return } return @@ -8678,6 +8793,7 @@ func (client SitesClient) GetSlotsDifferencesFromProduction(ctx context.Context, result.sdc, err = client.GetSlotsDifferencesFromProductionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSlotsDifferencesFromProduction", resp, "Failure responding to request") + return } if result.sdc.hasNextLink() && result.sdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -8744,6 +8860,7 @@ func (client SitesClient) getSlotsDifferencesFromProductionNextResults(ctx conte result, err = client.GetSlotsDifferencesFromProductionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "getSlotsDifferencesFromProductionNextResults", resp, "Failure responding to next results request") + return } return } @@ -8798,6 +8915,7 @@ func (client SitesClient) GetSlotsDifferencesSlot(ctx context.Context, resourceG result.sdc, err = client.GetSlotsDifferencesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "GetSlotsDifferencesSlot", resp, "Failure responding to request") + return } if result.sdc.hasNextLink() && result.sdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -8865,6 +8983,7 @@ func (client SitesClient) getSlotsDifferencesSlotNextResults(ctx context.Context result, err = client.GetSlotsDifferencesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "getSlotsDifferencesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -8916,6 +9035,7 @@ func (client SitesClient) IsSiteCloneable(ctx context.Context, resourceGroupName result, err = client.IsSiteCloneableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "IsSiteCloneable", resp, "Failure responding to request") + return } return @@ -8992,6 +9112,7 @@ func (client SitesClient) IsSiteCloneableSlot(ctx context.Context, resourceGroup result, err = client.IsSiteCloneableSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "IsSiteCloneableSlot", resp, "Failure responding to request") + return } return @@ -9068,6 +9189,7 @@ func (client SitesClient) ListSiteAppSettings(ctx context.Context, resourceGroup result, err = client.ListSiteAppSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "ListSiteAppSettings", resp, "Failure responding to request") + return } return @@ -9144,6 +9266,7 @@ func (client SitesClient) ListSiteAppSettingsSlot(ctx context.Context, resourceG result, err = client.ListSiteAppSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "ListSiteAppSettingsSlot", resp, "Failure responding to request") + return } return @@ -9220,6 +9343,7 @@ func (client SitesClient) ListSiteAuthSettings(ctx context.Context, resourceGrou result, err = client.ListSiteAuthSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "ListSiteAuthSettings", resp, "Failure responding to request") + return } return @@ -9296,6 +9420,7 @@ func (client SitesClient) ListSiteAuthSettingsSlot(ctx context.Context, resource result, err = client.ListSiteAuthSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "ListSiteAuthSettingsSlot", resp, "Failure responding to request") + return } return @@ -9373,6 +9498,7 @@ func (client SitesClient) ListSiteBackups(ctx context.Context, resourceGroupName result.bic, err = client.ListSiteBackupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "ListSiteBackups", resp, "Failure responding to request") + return } if result.bic.hasNextLink() && result.bic.IsEmpty() { err = result.NextWithContext(ctx) @@ -9437,6 +9563,7 @@ func (client SitesClient) listSiteBackupsNextResults(ctx context.Context, lastRe result, err = client.ListSiteBackupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "listSiteBackupsNextResults", resp, "Failure responding to next results request") + return } return } @@ -9490,6 +9617,7 @@ func (client SitesClient) ListSiteBackupsSlot(ctx context.Context, resourceGroup result.bic, err = client.ListSiteBackupsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "ListSiteBackupsSlot", resp, "Failure responding to request") + return } if result.bic.hasNextLink() && result.bic.IsEmpty() { err = result.NextWithContext(ctx) @@ -9555,6 +9683,7 @@ func (client SitesClient) listSiteBackupsSlotNextResults(ctx context.Context, la result, err = client.ListSiteBackupsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "listSiteBackupsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -9606,6 +9735,7 @@ func (client SitesClient) ListSiteConnectionStrings(ctx context.Context, resourc result, err = client.ListSiteConnectionStringsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "ListSiteConnectionStrings", resp, "Failure responding to request") + return } return @@ -9682,6 +9812,7 @@ func (client SitesClient) ListSiteConnectionStringsSlot(ctx context.Context, res result, err = client.ListSiteConnectionStringsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "ListSiteConnectionStringsSlot", resp, "Failure responding to request") + return } return @@ -9758,6 +9889,7 @@ func (client SitesClient) ListSiteMetadata(ctx context.Context, resourceGroupNam result, err = client.ListSiteMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "ListSiteMetadata", resp, "Failure responding to request") + return } return @@ -9834,6 +9966,7 @@ func (client SitesClient) ListSiteMetadataSlot(ctx context.Context, resourceGrou result, err = client.ListSiteMetadataSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "ListSiteMetadataSlot", resp, "Failure responding to request") + return } return @@ -9907,6 +10040,7 @@ func (client SitesClient) ListSitePremierAddOns(ctx context.Context, resourceGro result, err = client.ListSitePremierAddOnsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "ListSitePremierAddOns", resp, "Failure responding to request") + return } return @@ -9979,6 +10113,7 @@ func (client SitesClient) ListSitePremierAddOnsSlot(ctx context.Context, resourc result, err = client.ListSitePremierAddOnsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "ListSitePremierAddOnsSlot", resp, "Failure responding to request") + return } return @@ -10209,6 +10344,7 @@ func (client SitesClient) ListSitePublishingProfileXML(ctx context.Context, reso result, err = client.ListSitePublishingProfileXMLResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "ListSitePublishingProfileXML", resp, "Failure responding to request") + return } return @@ -10288,6 +10424,7 @@ func (client SitesClient) ListSitePublishingProfileXMLSlot(ctx context.Context, result, err = client.ListSitePublishingProfileXMLSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "ListSitePublishingProfileXMLSlot", resp, "Failure responding to request") + return } return @@ -10365,6 +10502,7 @@ func (client SitesClient) ListSiteRelayServiceConnections(ctx context.Context, r result, err = client.ListSiteRelayServiceConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "ListSiteRelayServiceConnections", resp, "Failure responding to request") + return } return @@ -10441,6 +10579,7 @@ func (client SitesClient) ListSiteRelayServiceConnectionsSlot(ctx context.Contex result, err = client.ListSiteRelayServiceConnectionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "ListSiteRelayServiceConnectionsSlot", resp, "Failure responding to request") + return } return @@ -10677,6 +10816,7 @@ func (client SitesClient) ResetProductionSlotConfig(ctx context.Context, resourc result, err = client.ResetProductionSlotConfigResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "ResetProductionSlotConfig", resp, "Failure responding to request") + return } return @@ -10753,6 +10893,7 @@ func (client SitesClient) ResetSlotConfigSlot(ctx context.Context, resourceGroup result, err = client.ResetSlotConfigSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "ResetSlotConfigSlot", resp, "Failure responding to request") + return } return @@ -10832,6 +10973,7 @@ func (client SitesClient) RestartSite(ctx context.Context, resourceGroupName str result, err = client.RestartSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "RestartSite", resp, "Failure responding to request") + return } return @@ -10917,6 +11059,7 @@ func (client SitesClient) RestartSiteSlot(ctx context.Context, resourceGroupName result, err = client.RestartSiteSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "RestartSiteSlot", resp, "Failure responding to request") + return } return @@ -11161,6 +11304,7 @@ func (client SitesClient) StartSite(ctx context.Context, resourceGroupName strin result, err = client.StartSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "StartSite", resp, "Failure responding to request") + return } return @@ -11237,6 +11381,7 @@ func (client SitesClient) StartSiteSlot(ctx context.Context, resourceGroupName s result, err = client.StartSiteSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "StartSiteSlot", resp, "Failure responding to request") + return } return @@ -11313,6 +11458,7 @@ func (client SitesClient) StopSite(ctx context.Context, resourceGroupName string result, err = client.StopSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "StopSite", resp, "Failure responding to request") + return } return @@ -11389,6 +11535,7 @@ func (client SitesClient) StopSiteSlot(ctx context.Context, resourceGroupName st result, err = client.StopSiteSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "StopSiteSlot", resp, "Failure responding to request") + return } return @@ -11620,6 +11767,7 @@ func (client SitesClient) SyncSiteRepository(ctx context.Context, resourceGroupN result, err = client.SyncSiteRepositoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "SyncSiteRepository", resp, "Failure responding to request") + return } return @@ -11692,6 +11840,7 @@ func (client SitesClient) SyncSiteRepositorySlot(ctx context.Context, resourceGr result, err = client.SyncSiteRepositorySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "SyncSiteRepositorySlot", resp, "Failure responding to request") + return } return @@ -11769,6 +11918,7 @@ func (client SitesClient) UpdateSiteAppSettings(ctx context.Context, resourceGro result, err = client.UpdateSiteAppSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "UpdateSiteAppSettings", resp, "Failure responding to request") + return } return @@ -11848,6 +11998,7 @@ func (client SitesClient) UpdateSiteAppSettingsSlot(ctx context.Context, resourc result, err = client.UpdateSiteAppSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "UpdateSiteAppSettingsSlot", resp, "Failure responding to request") + return } return @@ -11927,6 +12078,7 @@ func (client SitesClient) UpdateSiteAuthSettings(ctx context.Context, resourceGr result, err = client.UpdateSiteAuthSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "UpdateSiteAuthSettings", resp, "Failure responding to request") + return } return @@ -12006,6 +12158,7 @@ func (client SitesClient) UpdateSiteAuthSettingsSlot(ctx context.Context, resour result, err = client.UpdateSiteAuthSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "UpdateSiteAuthSettingsSlot", resp, "Failure responding to request") + return } return @@ -12085,6 +12238,7 @@ func (client SitesClient) UpdateSiteBackupConfiguration(ctx context.Context, res result, err = client.UpdateSiteBackupConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "UpdateSiteBackupConfiguration", resp, "Failure responding to request") + return } return @@ -12164,6 +12318,7 @@ func (client SitesClient) UpdateSiteBackupConfigurationSlot(ctx context.Context, result, err = client.UpdateSiteBackupConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "UpdateSiteBackupConfigurationSlot", resp, "Failure responding to request") + return } return @@ -12243,6 +12398,7 @@ func (client SitesClient) UpdateSiteConfig(ctx context.Context, resourceGroupNam result, err = client.UpdateSiteConfigResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "UpdateSiteConfig", resp, "Failure responding to request") + return } return @@ -12322,6 +12478,7 @@ func (client SitesClient) UpdateSiteConfigSlot(ctx context.Context, resourceGrou result, err = client.UpdateSiteConfigSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "UpdateSiteConfigSlot", resp, "Failure responding to request") + return } return @@ -12401,6 +12558,7 @@ func (client SitesClient) UpdateSiteConnectionStrings(ctx context.Context, resou result, err = client.UpdateSiteConnectionStringsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "UpdateSiteConnectionStrings", resp, "Failure responding to request") + return } return @@ -12480,6 +12638,7 @@ func (client SitesClient) UpdateSiteConnectionStringsSlot(ctx context.Context, r result, err = client.UpdateSiteConnectionStringsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "UpdateSiteConnectionStringsSlot", resp, "Failure responding to request") + return } return @@ -12559,6 +12718,7 @@ func (client SitesClient) UpdateSiteLogsConfig(ctx context.Context, resourceGrou result, err = client.UpdateSiteLogsConfigResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "UpdateSiteLogsConfig", resp, "Failure responding to request") + return } return @@ -12638,6 +12798,7 @@ func (client SitesClient) UpdateSiteLogsConfigSlot(ctx context.Context, resource result, err = client.UpdateSiteLogsConfigSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "UpdateSiteLogsConfigSlot", resp, "Failure responding to request") + return } return @@ -12717,6 +12878,7 @@ func (client SitesClient) UpdateSiteMetadata(ctx context.Context, resourceGroupN result, err = client.UpdateSiteMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "UpdateSiteMetadata", resp, "Failure responding to request") + return } return @@ -12796,6 +12958,7 @@ func (client SitesClient) UpdateSiteMetadataSlot(ctx context.Context, resourceGr result, err = client.UpdateSiteMetadataSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "UpdateSiteMetadataSlot", resp, "Failure responding to request") + return } return @@ -12876,6 +13039,7 @@ func (client SitesClient) UpdateSiteRelayServiceConnection(ctx context.Context, result, err = client.UpdateSiteRelayServiceConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "UpdateSiteRelayServiceConnection", resp, "Failure responding to request") + return } return @@ -12957,6 +13121,7 @@ func (client SitesClient) UpdateSiteRelayServiceConnectionSlot(ctx context.Conte result, err = client.UpdateSiteRelayServiceConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "UpdateSiteRelayServiceConnectionSlot", resp, "Failure responding to request") + return } return @@ -13037,6 +13202,7 @@ func (client SitesClient) UpdateSiteSourceControl(ctx context.Context, resourceG result, err = client.UpdateSiteSourceControlResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "UpdateSiteSourceControl", resp, "Failure responding to request") + return } return @@ -13116,6 +13282,7 @@ func (client SitesClient) UpdateSiteSourceControlSlot(ctx context.Context, resou result, err = client.UpdateSiteSourceControlSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "UpdateSiteSourceControlSlot", resp, "Failure responding to request") + return } return @@ -13196,6 +13363,7 @@ func (client SitesClient) UpdateSiteVNETConnection(ctx context.Context, resource result, err = client.UpdateSiteVNETConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "UpdateSiteVNETConnection", resp, "Failure responding to request") + return } return @@ -13277,6 +13445,7 @@ func (client SitesClient) UpdateSiteVNETConnectionGateway(ctx context.Context, r result, err = client.UpdateSiteVNETConnectionGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "UpdateSiteVNETConnectionGateway", resp, "Failure responding to request") + return } return @@ -13360,6 +13529,7 @@ func (client SitesClient) UpdateSiteVNETConnectionGatewaySlot(ctx context.Contex result, err = client.UpdateSiteVNETConnectionGatewaySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "UpdateSiteVNETConnectionGatewaySlot", resp, "Failure responding to request") + return } return @@ -13443,6 +13613,7 @@ func (client SitesClient) UpdateSiteVNETConnectionSlot(ctx context.Context, reso result, err = client.UpdateSiteVNETConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "UpdateSiteVNETConnectionSlot", resp, "Failure responding to request") + return } return @@ -13523,6 +13694,7 @@ func (client SitesClient) UpdateSlotConfigNames(ctx context.Context, resourceGro result, err = client.UpdateSlotConfigNamesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.SitesClient", "UpdateSlotConfigNames", resp, "Failure responding to request") + return } return diff --git a/services/preview/web/mgmt/2015-08-01-preview/web/topleveldomains.go b/services/preview/web/mgmt/2015-08-01-preview/web/topleveldomains.go index 2470706adf47..db4a501bb40b 100644 --- a/services/preview/web/mgmt/2015-08-01-preview/web/topleveldomains.go +++ b/services/preview/web/mgmt/2015-08-01-preview/web/topleveldomains.go @@ -70,6 +70,7 @@ func (client TopLevelDomainsClient) GetGetTopLevelDomains(ctx context.Context) ( result.tldc, err = client.GetGetTopLevelDomainsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "GetGetTopLevelDomains", resp, "Failure responding to request") + return } if result.tldc.hasNextLink() && result.tldc.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client TopLevelDomainsClient) getGetTopLevelDomainsNextResults(ctx context result, err = client.GetGetTopLevelDomainsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "getGetTopLevelDomainsNextResults", resp, "Failure responding to next results request") + return } return } @@ -182,6 +184,7 @@ func (client TopLevelDomainsClient) GetTopLevelDomain(ctx context.Context, name result, err = client.GetTopLevelDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "GetTopLevelDomain", resp, "Failure responding to request") + return } return @@ -257,6 +260,7 @@ func (client TopLevelDomainsClient) ListTopLevelDomainAgreements(ctx context.Con result.tlac, err = client.ListTopLevelDomainAgreementsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "ListTopLevelDomainAgreements", resp, "Failure responding to request") + return } if result.tlac.hasNextLink() && result.tlac.IsEmpty() { err = result.NextWithContext(ctx) @@ -322,6 +326,7 @@ func (client TopLevelDomainsClient) listTopLevelDomainAgreementsNextResults(ctx result, err = client.ListTopLevelDomainAgreementsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "listTopLevelDomainAgreementsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/web/mgmt/2015-08-01-preview/web/usage.go b/services/preview/web/mgmt/2015-08-01-preview/web/usage.go index ea56bcbf8ed6..59d274e69405 100644 --- a/services/preview/web/mgmt/2015-08-01-preview/web/usage.go +++ b/services/preview/web/mgmt/2015-08-01-preview/web/usage.go @@ -74,6 +74,7 @@ func (client UsageClient) GetUsage(ctx context.Context, resourceGroupName string result, err = client.GetUsageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.UsageClient", "GetUsage", resp, "Failure responding to request") + return } return diff --git a/services/preview/windowsesu/2019-09-16-preview/windowsesu/multipleactivationkeys.go b/services/preview/windowsesu/2019-09-16-preview/windowsesu/multipleactivationkeys.go index e38a7c91fb85..3c321cea77d9 100644 --- a/services/preview/windowsesu/2019-09-16-preview/windowsesu/multipleactivationkeys.go +++ b/services/preview/windowsesu/2019-09-16-preview/windowsesu/multipleactivationkeys.go @@ -180,6 +180,7 @@ func (client MultipleActivationKeysClient) Delete(ctx context.Context, resourceG result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "windowsesu.MultipleActivationKeysClient", "Delete", resp, "Failure responding to request") + return } return @@ -264,6 +265,7 @@ func (client MultipleActivationKeysClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "windowsesu.MultipleActivationKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -343,6 +345,7 @@ func (client MultipleActivationKeysClient) List(ctx context.Context) (result Mul result.makl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "windowsesu.MultipleActivationKeysClient", "List", resp, "Failure responding to request") + return } if result.makl.hasNextLink() && result.makl.IsEmpty() { err = result.NextWithContext(ctx) @@ -405,6 +408,7 @@ func (client MultipleActivationKeysClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "windowsesu.MultipleActivationKeysClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -466,6 +470,7 @@ func (client MultipleActivationKeysClient) ListByResourceGroup(ctx context.Conte result.makl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "windowsesu.MultipleActivationKeysClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.makl.hasNextLink() && result.makl.IsEmpty() { err = result.NextWithContext(ctx) @@ -529,6 +534,7 @@ func (client MultipleActivationKeysClient) listByResourceGroupNextResults(ctx co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "windowsesu.MultipleActivationKeysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -591,6 +597,7 @@ func (client MultipleActivationKeysClient) Update(ctx context.Context, resourceG result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "windowsesu.MultipleActivationKeysClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/windowsesu/2019-09-16-preview/windowsesu/operations.go b/services/preview/windowsesu/2019-09-16-preview/windowsesu/operations.go index 93b861f8ba93..ac24855fd51f 100644 --- a/services/preview/windowsesu/2019-09-16-preview/windowsesu/operations.go +++ b/services/preview/windowsesu/2019-09-16-preview/windowsesu/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListPa result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "windowsesu.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "windowsesu.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/components.go b/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/components.go index fc0b7fc920a4..2b7220e8a809 100644 --- a/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/components.go +++ b/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/components.go @@ -89,6 +89,7 @@ func (client ComponentsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.ComponentsClient", "Get", resp, "Failure responding to request") + return } return @@ -193,6 +194,7 @@ func (client ComponentsClient) ListByResource(ctx context.Context, resourceGroup result.cc, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.ComponentsClient", "ListByResource", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -280,6 +282,7 @@ func (client ComponentsClient) listByResourceNextResults(ctx context.Context, la result, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.ComponentsClient", "listByResourceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/componentssummary.go b/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/componentssummary.go index 042b5ee6365d..b1f47bb4aed4 100644 --- a/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/componentssummary.go +++ b/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/componentssummary.go @@ -86,6 +86,7 @@ func (client ComponentsSummaryClient) List(ctx context.Context, selectParameter result.cc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.ComponentsSummaryClient", "List", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -169,6 +170,7 @@ func (client ComponentsSummaryClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.ComponentsSummaryClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/monitorinstances.go b/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/monitorinstances.go index 868930b4cf15..68033c0c0f6f 100644 --- a/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/monitorinstances.go +++ b/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/monitorinstances.go @@ -90,6 +90,7 @@ func (client MonitorInstancesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.MonitorInstancesClient", "Get", resp, "Failure responding to request") + return } return @@ -194,6 +195,7 @@ func (client MonitorInstancesClient) ListByResource(ctx context.Context, resourc result.mic, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.MonitorInstancesClient", "ListByResource", resp, "Failure responding to request") + return } if result.mic.hasNextLink() && result.mic.IsEmpty() { err = result.NextWithContext(ctx) @@ -281,6 +283,7 @@ func (client MonitorInstancesClient) listByResourceNextResults(ctx context.Conte result, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.MonitorInstancesClient", "listByResourceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/monitorinstancessummary.go b/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/monitorinstancessummary.go index c7e611955214..7121a53641f5 100644 --- a/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/monitorinstancessummary.go +++ b/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/monitorinstancessummary.go @@ -86,6 +86,7 @@ func (client MonitorInstancesSummaryClient) List(ctx context.Context, selectPara result.mic, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.MonitorInstancesSummaryClient", "List", resp, "Failure responding to request") + return } if result.mic.hasNextLink() && result.mic.IsEmpty() { err = result.NextWithContext(ctx) @@ -169,6 +170,7 @@ func (client MonitorInstancesSummaryClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.MonitorInstancesSummaryClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/monitors.go b/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/monitors.go index 1677b381d798..14eb22d737c8 100644 --- a/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/monitors.go +++ b/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/monitors.go @@ -86,6 +86,7 @@ func (client MonitorsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.MonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -179,6 +180,7 @@ func (client MonitorsClient) ListByResource(ctx context.Context, resourceGroupNa result.mc, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.MonitorsClient", "ListByResource", resp, "Failure responding to request") + return } if result.mc.hasNextLink() && result.mc.IsEmpty() { err = result.NextWithContext(ctx) @@ -251,6 +253,7 @@ func (client MonitorsClient) listByResourceNextResults(ctx context.Context, last result, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.MonitorsClient", "listByResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -316,6 +319,7 @@ func (client MonitorsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.MonitorsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/notificationsettings.go b/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/notificationsettings.go index 45c50933a5e4..c1d5268152e3 100644 --- a/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/notificationsettings.go +++ b/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/notificationsettings.go @@ -86,6 +86,7 @@ func (client NotificationSettingsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.NotificationSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -178,6 +179,7 @@ func (client NotificationSettingsClient) ListByResource(ctx context.Context, res result.nsc, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.NotificationSettingsClient", "ListByResource", resp, "Failure responding to request") + return } if result.nsc.hasNextLink() && result.nsc.IsEmpty() { err = result.NextWithContext(ctx) @@ -247,6 +249,7 @@ func (client NotificationSettingsClient) listByResourceNextResults(ctx context.C result, err = client.ListByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.NotificationSettingsClient", "listByResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -311,6 +314,7 @@ func (client NotificationSettingsClient) Update(ctx context.Context, resourceGro result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.NotificationSettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/operations.go b/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/operations.go index d530127f31da..a96cd4d03b56 100644 --- a/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/operations.go +++ b/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context, skiptoken string) (resu result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/workloadmonitor/mgmt/2020-01-13-preview/workloadmonitor/healthmonitors.go b/services/preview/workloadmonitor/mgmt/2020-01-13-preview/workloadmonitor/healthmonitors.go index c18070a78cdd..ed4cf629d8e6 100644 --- a/services/preview/workloadmonitor/mgmt/2020-01-13-preview/workloadmonitor/healthmonitors.go +++ b/services/preview/workloadmonitor/mgmt/2020-01-13-preview/workloadmonitor/healthmonitors.go @@ -79,6 +79,7 @@ func (client HealthMonitorsClient) Get(ctx context.Context, subscriptionID strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.HealthMonitorsClient", "Get", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client HealthMonitorsClient) GetStateChange(ctx context.Context, subscript result, err = client.GetStateChangeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.HealthMonitorsClient", "GetStateChange", resp, "Failure responding to request") + return } return @@ -257,6 +259,7 @@ func (client HealthMonitorsClient) List(ctx context.Context, subscriptionID stri result.hml, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.HealthMonitorsClient", "List", resp, "Failure responding to request") + return } if result.hml.hasNextLink() && result.hml.IsEmpty() { err = result.NextWithContext(ctx) @@ -329,6 +332,7 @@ func (client HealthMonitorsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.HealthMonitorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -390,6 +394,7 @@ func (client HealthMonitorsClient) ListStateChanges(ctx context.Context, subscri result.hmscl, err = client.ListStateChangesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.HealthMonitorsClient", "ListStateChanges", resp, "Failure responding to request") + return } if result.hmscl.hasNextLink() && result.hmscl.IsEmpty() { err = result.NextWithContext(ctx) @@ -469,6 +474,7 @@ func (client HealthMonitorsClient) listStateChangesNextResults(ctx context.Conte result, err = client.ListStateChangesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.HealthMonitorsClient", "listStateChangesNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/preview/workloadmonitor/mgmt/2020-01-13-preview/workloadmonitor/operations.go b/services/preview/workloadmonitor/mgmt/2020-01-13-preview/workloadmonitor/operations.go index b52f030367f2..79b4947cc270 100644 --- a/services/preview/workloadmonitor/mgmt/2020-01-13-preview/workloadmonitor/operations.go +++ b/services/preview/workloadmonitor/mgmt/2020-01-13-preview/workloadmonitor/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListPa result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "workloadmonitor.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/privatedns/mgmt/2018-09-01/privatedns/privatezones.go b/services/privatedns/mgmt/2018-09-01/privatedns/privatezones.go index b90514306330..0282c5316b8f 100644 --- a/services/privatedns/mgmt/2018-09-01/privatedns/privatezones.go +++ b/services/privatedns/mgmt/2018-09-01/privatedns/privatezones.go @@ -245,6 +245,7 @@ func (client PrivateZonesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "privatedns.PrivateZonesClient", "Get", resp, "Failure responding to request") + return } return @@ -320,6 +321,7 @@ func (client PrivateZonesClient) List(ctx context.Context, top *int32) (result P result.pzlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "privatedns.PrivateZonesClient", "List", resp, "Failure responding to request") + return } if result.pzlr.hasNextLink() && result.pzlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +387,7 @@ func (client PrivateZonesClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "privatedns.PrivateZonesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -437,6 +440,7 @@ func (client PrivateZonesClient) ListByResourceGroup(ctx context.Context, resour result.pzlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "privatedns.PrivateZonesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.pzlr.hasNextLink() && result.pzlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -503,6 +507,7 @@ func (client PrivateZonesClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "privatedns.PrivateZonesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/privatedns/mgmt/2018-09-01/privatedns/recordsets.go b/services/privatedns/mgmt/2018-09-01/privatedns/recordsets.go index 76dc0c3efc55..75f8f9731234 100644 --- a/services/privatedns/mgmt/2018-09-01/privatedns/recordsets.go +++ b/services/privatedns/mgmt/2018-09-01/privatedns/recordsets.go @@ -80,6 +80,7 @@ func (client RecordSetsClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "privatedns.RecordSetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client RecordSetsClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "privatedns.RecordSetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -254,6 +256,7 @@ func (client RecordSetsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "privatedns.RecordSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -336,6 +339,7 @@ func (client RecordSetsClient) List(ctx context.Context, resourceGroupName strin result.rslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "privatedns.RecordSetsClient", "List", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -406,6 +410,7 @@ func (client RecordSetsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "privatedns.RecordSetsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -463,6 +468,7 @@ func (client RecordSetsClient) ListByType(ctx context.Context, resourceGroupName result.rslr, err = client.ListByTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "privatedns.RecordSetsClient", "ListByType", resp, "Failure responding to request") + return } if result.rslr.hasNextLink() && result.rslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -534,6 +540,7 @@ func (client RecordSetsClient) listByTypeNextResults(ctx context.Context, lastRe result, err = client.ListByTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "privatedns.RecordSetsClient", "listByTypeNextResults", resp, "Failure responding to next results request") + return } return } @@ -590,6 +597,7 @@ func (client RecordSetsClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "privatedns.RecordSetsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/privatedns/mgmt/2018-09-01/privatedns/virtualnetworklinks.go b/services/privatedns/mgmt/2018-09-01/privatedns/virtualnetworklinks.go index 9bfda96e8616..f2990be1f97e 100644 --- a/services/privatedns/mgmt/2018-09-01/privatedns/virtualnetworklinks.go +++ b/services/privatedns/mgmt/2018-09-01/privatedns/virtualnetworklinks.go @@ -251,6 +251,7 @@ func (client VirtualNetworkLinksClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "privatedns.VirtualNetworkLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +331,7 @@ func (client VirtualNetworkLinksClient) List(ctx context.Context, resourceGroupN result.vnllr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "privatedns.VirtualNetworkLinksClient", "List", resp, "Failure responding to request") + return } if result.vnllr.hasNextLink() && result.vnllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -397,6 +399,7 @@ func (client VirtualNetworkLinksClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "privatedns.VirtualNetworkLinksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/provisioningservices/mgmt/2017-11-15/iothub/dpscertificate.go b/services/provisioningservices/mgmt/2017-11-15/iothub/dpscertificate.go index 6774a1d0848a..b9fa2bc9abdc 100644 --- a/services/provisioningservices/mgmt/2017-11-15/iothub/dpscertificate.go +++ b/services/provisioningservices/mgmt/2017-11-15/iothub/dpscertificate.go @@ -84,6 +84,7 @@ func (client DpsCertificateClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client DpsCertificateClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "Delete", resp, "Failure responding to request") + return } return @@ -289,6 +291,7 @@ func (client DpsCertificateClient) GenerateVerificationCode(ctx context.Context, result, err = client.GenerateVerificationCodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "GenerateVerificationCode", resp, "Failure responding to request") + return } return @@ -392,6 +395,7 @@ func (client DpsCertificateClient) Get(ctx context.Context, certificateName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -472,6 +476,7 @@ func (client DpsCertificateClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "List", resp, "Failure responding to request") + return } return @@ -560,6 +565,7 @@ func (client DpsCertificateClient) VerifyCertificate(ctx context.Context, certif result, err = client.VerifyCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "VerifyCertificate", resp, "Failure responding to request") + return } return diff --git a/services/provisioningservices/mgmt/2017-11-15/iothub/iotdpsresource.go b/services/provisioningservices/mgmt/2017-11-15/iothub/iotdpsresource.go index 708fb9d2ac22..9611d173141a 100644 --- a/services/provisioningservices/mgmt/2017-11-15/iothub/iotdpsresource.go +++ b/services/provisioningservices/mgmt/2017-11-15/iothub/iotdpsresource.go @@ -80,6 +80,7 @@ func (client IotDpsResourceClient) CheckProvisioningServiceNameAvailability(ctx result, err = client.CheckProvisioningServiceNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "CheckProvisioningServiceNameAvailability", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client IotDpsResourceClient) Get(ctx context.Context, provisioningServiceN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "Get", resp, "Failure responding to request") + return } return @@ -395,6 +397,7 @@ func (client IotDpsResourceClient) GetOperationResult(ctx context.Context, opera result, err = client.GetOperationResultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "GetOperationResult", resp, "Failure responding to request") + return } return @@ -472,6 +475,7 @@ func (client IotDpsResourceClient) ListByResourceGroup(ctx context.Context, reso result.psdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.psdlr.hasNextLink() && result.psdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -535,6 +539,7 @@ func (client IotDpsResourceClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -584,6 +589,7 @@ func (client IotDpsResourceClient) ListBySubscription(ctx context.Context) (resu result.psdlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.psdlr.hasNextLink() && result.psdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -646,6 +652,7 @@ func (client IotDpsResourceClient) listBySubscriptionNextResults(ctx context.Con result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -698,6 +705,7 @@ func (client IotDpsResourceClient) ListKeys(ctx context.Context, provisioningSer result.sasarlr, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "ListKeys", resp, "Failure responding to request") + return } if result.sasarlr.hasNextLink() && result.sasarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -762,6 +770,7 @@ func (client IotDpsResourceClient) listKeysNextResults(ctx context.Context, last result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "listKeysNextResults", resp, "Failure responding to next results request") + return } return } @@ -814,6 +823,7 @@ func (client IotDpsResourceClient) ListKeysForKeyName(ctx context.Context, provi result, err = client.ListKeysForKeyNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "ListKeysForKeyName", resp, "Failure responding to request") + return } return @@ -891,6 +901,7 @@ func (client IotDpsResourceClient) ListValidSkus(ctx context.Context, provisioni result.idsdlr, err = client.ListValidSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "ListValidSkus", resp, "Failure responding to request") + return } if result.idsdlr.hasNextLink() && result.idsdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -955,6 +966,7 @@ func (client IotDpsResourceClient) listValidSkusNextResults(ctx context.Context, result, err = client.ListValidSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "listValidSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/provisioningservices/mgmt/2017-11-15/iothub/operations.go b/services/provisioningservices/mgmt/2017-11-15/iothub/operations.go index e22b3113367c..d54e286d4925 100644 --- a/services/provisioningservices/mgmt/2017-11-15/iothub/operations.go +++ b/services/provisioningservices/mgmt/2017-11-15/iothub/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/provisioningservices/mgmt/2018-01-22/iothub/dpscertificate.go b/services/provisioningservices/mgmt/2018-01-22/iothub/dpscertificate.go index 82225b634e5f..672628361de4 100644 --- a/services/provisioningservices/mgmt/2018-01-22/iothub/dpscertificate.go +++ b/services/provisioningservices/mgmt/2018-01-22/iothub/dpscertificate.go @@ -84,6 +84,7 @@ func (client DpsCertificateClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client DpsCertificateClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "Delete", resp, "Failure responding to request") + return } return @@ -289,6 +291,7 @@ func (client DpsCertificateClient) GenerateVerificationCode(ctx context.Context, result, err = client.GenerateVerificationCodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "GenerateVerificationCode", resp, "Failure responding to request") + return } return @@ -392,6 +395,7 @@ func (client DpsCertificateClient) Get(ctx context.Context, certificateName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "Get", resp, "Failure responding to request") + return } return @@ -472,6 +476,7 @@ func (client DpsCertificateClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "List", resp, "Failure responding to request") + return } return @@ -560,6 +565,7 @@ func (client DpsCertificateClient) VerifyCertificate(ctx context.Context, certif result, err = client.VerifyCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "VerifyCertificate", resp, "Failure responding to request") + return } return diff --git a/services/provisioningservices/mgmt/2018-01-22/iothub/iotdpsresource.go b/services/provisioningservices/mgmt/2018-01-22/iothub/iotdpsresource.go index 892b8b25e28d..3e8d9e662832 100644 --- a/services/provisioningservices/mgmt/2018-01-22/iothub/iotdpsresource.go +++ b/services/provisioningservices/mgmt/2018-01-22/iothub/iotdpsresource.go @@ -80,6 +80,7 @@ func (client IotDpsResourceClient) CheckProvisioningServiceNameAvailability(ctx result, err = client.CheckProvisioningServiceNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "CheckProvisioningServiceNameAvailability", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client IotDpsResourceClient) Get(ctx context.Context, provisioningServiceN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "Get", resp, "Failure responding to request") + return } return @@ -395,6 +397,7 @@ func (client IotDpsResourceClient) GetOperationResult(ctx context.Context, opera result, err = client.GetOperationResultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "GetOperationResult", resp, "Failure responding to request") + return } return @@ -472,6 +475,7 @@ func (client IotDpsResourceClient) ListByResourceGroup(ctx context.Context, reso result.psdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.psdlr.hasNextLink() && result.psdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -535,6 +539,7 @@ func (client IotDpsResourceClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -584,6 +589,7 @@ func (client IotDpsResourceClient) ListBySubscription(ctx context.Context) (resu result.psdlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.psdlr.hasNextLink() && result.psdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -646,6 +652,7 @@ func (client IotDpsResourceClient) listBySubscriptionNextResults(ctx context.Con result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -698,6 +705,7 @@ func (client IotDpsResourceClient) ListKeys(ctx context.Context, provisioningSer result.sasarlr, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "ListKeys", resp, "Failure responding to request") + return } if result.sasarlr.hasNextLink() && result.sasarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -762,6 +770,7 @@ func (client IotDpsResourceClient) listKeysNextResults(ctx context.Context, last result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "listKeysNextResults", resp, "Failure responding to next results request") + return } return } @@ -814,6 +823,7 @@ func (client IotDpsResourceClient) ListKeysForKeyName(ctx context.Context, provi result, err = client.ListKeysForKeyNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "ListKeysForKeyName", resp, "Failure responding to request") + return } return @@ -891,6 +901,7 @@ func (client IotDpsResourceClient) ListValidSkus(ctx context.Context, provisioni result.idsdlr, err = client.ListValidSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "ListValidSkus", resp, "Failure responding to request") + return } if result.idsdlr.hasNextLink() && result.idsdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -955,6 +966,7 @@ func (client IotDpsResourceClient) listValidSkusNextResults(ctx context.Context, result, err = client.ListValidSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "listValidSkusNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/provisioningservices/mgmt/2018-01-22/iothub/operations.go b/services/provisioningservices/mgmt/2018-01-22/iothub/operations.go index d5af50d98f23..688f1791ecab 100644 --- a/services/provisioningservices/mgmt/2018-01-22/iothub/operations.go +++ b/services/provisioningservices/mgmt/2018-01-22/iothub/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "iothub.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-06-01/backup/backups.go b/services/recoveryservices/mgmt/2016-06-01/backup/backups.go index d341a27775c6..4ec8f6410a73 100644 --- a/services/recoveryservices/mgmt/2016-06-01/backup/backups.go +++ b/services/recoveryservices/mgmt/2016-06-01/backup/backups.go @@ -77,6 +77,7 @@ func (client BackupsClient) Trigger(ctx context.Context, vaultName string, resou result, err = client.TriggerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.BackupsClient", "Trigger", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-06-01/backup/engines.go b/services/recoveryservices/mgmt/2016-06-01/backup/engines.go index 015042772dfe..9ea730df831e 100644 --- a/services/recoveryservices/mgmt/2016-06-01/backup/engines.go +++ b/services/recoveryservices/mgmt/2016-06-01/backup/engines.go @@ -76,6 +76,7 @@ func (client EnginesClient) Get(ctx context.Context, vaultName string, resourceG result.ebrl, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.EnginesClient", "Get", resp, "Failure responding to request") + return } if result.ebrl.hasNextLink() && result.ebrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client EnginesClient) getNextResults(ctx context.Context, lastResults Engi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.EnginesClient", "getNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-06-01/backup/exportjobsoperationresults.go b/services/recoveryservices/mgmt/2016-06-01/backup/exportjobsoperationresults.go index 58d8a2a3dbc0..69dde0f8a241 100644 --- a/services/recoveryservices/mgmt/2016-06-01/backup/exportjobsoperationresults.go +++ b/services/recoveryservices/mgmt/2016-06-01/backup/exportjobsoperationresults.go @@ -74,6 +74,7 @@ func (client ExportJobsOperationResultsClient) Get(ctx context.Context, vaultNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ExportJobsOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-06-01/backup/itemlevelrecoveryconnections.go b/services/recoveryservices/mgmt/2016-06-01/backup/itemlevelrecoveryconnections.go index 7ceb350c9896..f9820f1276aa 100644 --- a/services/recoveryservices/mgmt/2016-06-01/backup/itemlevelrecoveryconnections.go +++ b/services/recoveryservices/mgmt/2016-06-01/backup/itemlevelrecoveryconnections.go @@ -81,6 +81,7 @@ func (client ItemLevelRecoveryConnectionsClient) Provision(ctx context.Context, result, err = client.ProvisionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ItemLevelRecoveryConnectionsClient", "Provision", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client ItemLevelRecoveryConnectionsClient) Revoke(ctx context.Context, vau result, err = client.RevokeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ItemLevelRecoveryConnectionsClient", "Revoke", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-06-01/backup/jobcancellations.go b/services/recoveryservices/mgmt/2016-06-01/backup/jobcancellations.go index 9afd6b65b96f..0e75a67c9d3a 100644 --- a/services/recoveryservices/mgmt/2016-06-01/backup/jobcancellations.go +++ b/services/recoveryservices/mgmt/2016-06-01/backup/jobcancellations.go @@ -75,6 +75,7 @@ func (client JobCancellationsClient) Trigger(ctx context.Context, vaultName stri result, err = client.TriggerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.JobCancellationsClient", "Trigger", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-06-01/backup/jobdetails.go b/services/recoveryservices/mgmt/2016-06-01/backup/jobdetails.go index eab3b1710e65..30d666742743 100644 --- a/services/recoveryservices/mgmt/2016-06-01/backup/jobdetails.go +++ b/services/recoveryservices/mgmt/2016-06-01/backup/jobdetails.go @@ -73,6 +73,7 @@ func (client JobDetailsClient) Get(ctx context.Context, vaultName string, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.JobDetailsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-06-01/backup/joboperationresults.go b/services/recoveryservices/mgmt/2016-06-01/backup/joboperationresults.go index 8fc8756e723c..0233c861a458 100644 --- a/services/recoveryservices/mgmt/2016-06-01/backup/joboperationresults.go +++ b/services/recoveryservices/mgmt/2016-06-01/backup/joboperationresults.go @@ -75,6 +75,7 @@ func (client JobOperationResultsClient) Get(ctx context.Context, vaultName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.JobOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-06-01/backup/jobs.go b/services/recoveryservices/mgmt/2016-06-01/backup/jobs.go index 44bd932ddc0f..58d101583a14 100644 --- a/services/recoveryservices/mgmt/2016-06-01/backup/jobs.go +++ b/services/recoveryservices/mgmt/2016-06-01/backup/jobs.go @@ -77,6 +77,7 @@ func (client JobsClient) Export(ctx context.Context, vaultName string, resourceG result, err = client.ExportResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.JobsClient", "Export", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client JobsClient) List(ctx context.Context, vaultName string, resourceGro result.jrl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.JobsClient", "List", resp, "Failure responding to request") + return } if result.jrl.hasNextLink() && result.jrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -231,6 +233,7 @@ func (client JobsClient) listNextResults(ctx context.Context, lastResults JobRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.JobsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-06-01/backup/operationresults.go b/services/recoveryservices/mgmt/2016-06-01/backup/operationresults.go index 96cbd38125a9..6496da3e2e14 100644 --- a/services/recoveryservices/mgmt/2016-06-01/backup/operationresults.go +++ b/services/recoveryservices/mgmt/2016-06-01/backup/operationresults.go @@ -77,6 +77,7 @@ func (client OperationResultsClient) Get(ctx context.Context, vaultName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.OperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-06-01/backup/operationstatuses.go b/services/recoveryservices/mgmt/2016-06-01/backup/operationstatuses.go index 3813b9a381e7..bfd7a4a0b4a5 100644 --- a/services/recoveryservices/mgmt/2016-06-01/backup/operationstatuses.go +++ b/services/recoveryservices/mgmt/2016-06-01/backup/operationstatuses.go @@ -76,6 +76,7 @@ func (client OperationStatusesClient) Get(ctx context.Context, vaultName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.OperationStatusesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-06-01/backup/protectableitems.go b/services/recoveryservices/mgmt/2016-06-01/backup/protectableitems.go index 448313125b36..baed5ecbb580 100644 --- a/services/recoveryservices/mgmt/2016-06-01/backup/protectableitems.go +++ b/services/recoveryservices/mgmt/2016-06-01/backup/protectableitems.go @@ -81,6 +81,7 @@ func (client ProtectableItemsClient) List(ctx context.Context, vaultName string, result.wpirl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectableItemsClient", "List", resp, "Failure responding to request") + return } if result.wpirl.hasNextLink() && result.wpirl.IsEmpty() { err = result.NextWithContext(ctx) @@ -151,6 +152,7 @@ func (client ProtectableItemsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectableItemsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-06-01/backup/protecteditemoperationresults.go b/services/recoveryservices/mgmt/2016-06-01/backup/protecteditemoperationresults.go index 3838c932d2dd..cbab6e3cb43c 100644 --- a/services/recoveryservices/mgmt/2016-06-01/backup/protecteditemoperationresults.go +++ b/services/recoveryservices/mgmt/2016-06-01/backup/protecteditemoperationresults.go @@ -77,6 +77,7 @@ func (client ProtectedItemOperationResultsClient) Get(ctx context.Context, vault result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-06-01/backup/protecteditemoperationstatuses.go b/services/recoveryservices/mgmt/2016-06-01/backup/protecteditemoperationstatuses.go index f3369648ff4d..e55484d8245a 100644 --- a/services/recoveryservices/mgmt/2016-06-01/backup/protecteditemoperationstatuses.go +++ b/services/recoveryservices/mgmt/2016-06-01/backup/protecteditemoperationstatuses.go @@ -79,6 +79,7 @@ func (client ProtectedItemOperationStatusesClient) Get(ctx context.Context, vaul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemOperationStatusesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-06-01/backup/protecteditems.go b/services/recoveryservices/mgmt/2016-06-01/backup/protecteditems.go index 34fc56b6d78f..64bf49a6c8a1 100644 --- a/services/recoveryservices/mgmt/2016-06-01/backup/protecteditems.go +++ b/services/recoveryservices/mgmt/2016-06-01/backup/protecteditems.go @@ -78,6 +78,7 @@ func (client ProtectedItemsClient) CreateOrUpdate(ctx context.Context, vaultName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client ProtectedItemsClient) Delete(ctx context.Context, vaultName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemsClient", "Delete", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client ProtectedItemsClient) Get(ctx context.Context, vaultName string, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemsClient", "Get", resp, "Failure responding to request") + return } return @@ -331,6 +334,7 @@ func (client ProtectedItemsClient) List(ctx context.Context, vaultName string, r result.pirl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemsClient", "List", resp, "Failure responding to request") + return } if result.pirl.hasNextLink() && result.pirl.IsEmpty() { err = result.NextWithContext(ctx) @@ -401,6 +405,7 @@ func (client ProtectedItemsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-06-01/backup/protectioncontaineroperationresults.go b/services/recoveryservices/mgmt/2016-06-01/backup/protectioncontaineroperationresults.go index be9af4613103..08ea0e5cda23 100644 --- a/services/recoveryservices/mgmt/2016-06-01/backup/protectioncontaineroperationresults.go +++ b/services/recoveryservices/mgmt/2016-06-01/backup/protectioncontaineroperationresults.go @@ -77,6 +77,7 @@ func (client ProtectionContainerOperationResultsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainerOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-06-01/backup/protectioncontainerrefreshoperationresults.go b/services/recoveryservices/mgmt/2016-06-01/backup/protectioncontainerrefreshoperationresults.go index ffb3bb6a08f7..1ba41986a04d 100644 --- a/services/recoveryservices/mgmt/2016-06-01/backup/protectioncontainerrefreshoperationresults.go +++ b/services/recoveryservices/mgmt/2016-06-01/backup/protectioncontainerrefreshoperationresults.go @@ -76,6 +76,7 @@ func (client ProtectionContainerRefreshOperationResultsClient) Get(ctx context.C result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainerRefreshOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-06-01/backup/protectioncontainers.go b/services/recoveryservices/mgmt/2016-06-01/backup/protectioncontainers.go index a1dde4f60d76..a1dc8351ebbb 100644 --- a/services/recoveryservices/mgmt/2016-06-01/backup/protectioncontainers.go +++ b/services/recoveryservices/mgmt/2016-06-01/backup/protectioncontainers.go @@ -75,6 +75,7 @@ func (client ProtectionContainersClient) Get(ctx context.Context, vaultName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Get", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client ProtectionContainersClient) List(ctx context.Context, vaultName str result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "List", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client ProtectionContainersClient) Refresh(ctx context.Context, vaultName result, err = client.RefreshResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Refresh", resp, "Failure responding to request") + return } return @@ -312,6 +315,7 @@ func (client ProtectionContainersClient) Unregister(ctx context.Context, resourc result, err = client.UnregisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Unregister", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-06-01/backup/protectionpolicies.go b/services/recoveryservices/mgmt/2016-06-01/backup/protectionpolicies.go index cb6e39ec8ca8..9bda6d7d5b87 100644 --- a/services/recoveryservices/mgmt/2016-06-01/backup/protectionpolicies.go +++ b/services/recoveryservices/mgmt/2016-06-01/backup/protectionpolicies.go @@ -76,6 +76,7 @@ func (client ProtectionPoliciesClient) CreateOrUpdate(ctx context.Context, vault result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client ProtectionPoliciesClient) Delete(ctx context.Context, vaultName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client ProtectionPoliciesClient) Get(ctx context.Context, vaultName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +315,7 @@ func (client ProtectionPoliciesClient) List(ctx context.Context, vaultName strin result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionPoliciesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-06-01/backup/protectionpolicyoperationresults.go b/services/recoveryservices/mgmt/2016-06-01/backup/protectionpolicyoperationresults.go index 140dd31b3157..077762161cbe 100644 --- a/services/recoveryservices/mgmt/2016-06-01/backup/protectionpolicyoperationresults.go +++ b/services/recoveryservices/mgmt/2016-06-01/backup/protectionpolicyoperationresults.go @@ -75,6 +75,7 @@ func (client ProtectionPolicyOperationResultsClient) Get(ctx context.Context, va result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionPolicyOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-06-01/backup/protectionpolicyoperationstatuses.go b/services/recoveryservices/mgmt/2016-06-01/backup/protectionpolicyoperationstatuses.go index 5cb36574fcf7..503e4f6db154 100644 --- a/services/recoveryservices/mgmt/2016-06-01/backup/protectionpolicyoperationstatuses.go +++ b/services/recoveryservices/mgmt/2016-06-01/backup/protectionpolicyoperationstatuses.go @@ -78,6 +78,7 @@ func (client ProtectionPolicyOperationStatusesClient) Get(ctx context.Context, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionPolicyOperationStatusesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-06-01/backup/recoverypoints.go b/services/recoveryservices/mgmt/2016-06-01/backup/recoverypoints.go index 8b743622329e..6a7e80a06f9d 100644 --- a/services/recoveryservices/mgmt/2016-06-01/backup/recoverypoints.go +++ b/services/recoveryservices/mgmt/2016-06-01/backup/recoverypoints.go @@ -77,6 +77,7 @@ func (client RecoveryPointsClient) Get(ctx context.Context, vaultName string, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.RecoveryPointsClient", "Get", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client RecoveryPointsClient) List(ctx context.Context, vaultName string, r result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.RecoveryPointsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-06-01/backup/restores.go b/services/recoveryservices/mgmt/2016-06-01/backup/restores.go index 7a6de7bfa188..046345a708f7 100644 --- a/services/recoveryservices/mgmt/2016-06-01/backup/restores.go +++ b/services/recoveryservices/mgmt/2016-06-01/backup/restores.go @@ -78,6 +78,7 @@ func (client RestoresClient) Trigger(ctx context.Context, vaultName string, reso result, err = client.TriggerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.RestoresClient", "Trigger", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/operations.go b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/operations.go index d9d6fb025567..da132bb38032 100644 --- a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/operations.go +++ b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result ClientDiscovery result.cdr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "recoveryservices.OperationsClient", "List", resp, "Failure responding to request") + return } if result.cdr.hasNextLink() && result.cdr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "recoveryservices.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/privatelinkresources.go b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/privatelinkresources.go index 1e27b7ec6254..a2c4e47700a2 100644 --- a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/privatelinkresources.go +++ b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/privatelinkresources.go @@ -73,6 +73,7 @@ func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "recoveryservices.PrivateLinkResourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client PrivateLinkResourcesClient) List(ctx context.Context, resourceGroup result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "recoveryservices.PrivateLinkResourcesClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -214,6 +216,7 @@ func (client PrivateLinkResourcesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "recoveryservices.PrivateLinkResourcesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/recoveryservices.go b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/recoveryservices.go index 3d8e9835a362..3b7b140f1484 100644 --- a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/recoveryservices.go +++ b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/recoveryservices.go @@ -73,6 +73,7 @@ func (client Client) CheckNameAvailability(ctx context.Context, resourceGroupNam result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "recoveryservices.Client", "CheckNameAvailability", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/registeredidentities.go b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/registeredidentities.go index 903ea8964398..7beec5f5536c 100644 --- a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/registeredidentities.go +++ b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/registeredidentities.go @@ -74,6 +74,7 @@ func (client RegisteredIdentitiesClient) Delete(ctx context.Context, resourceGro result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "recoveryservices.RegisteredIdentitiesClient", "Delete", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/replicationusages.go b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/replicationusages.go index 72c944afbe8c..76ee20222fb2 100644 --- a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/replicationusages.go +++ b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/replicationusages.go @@ -73,6 +73,7 @@ func (client ReplicationUsagesClient) List(ctx context.Context, resourceGroupNam result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "recoveryservices.ReplicationUsagesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/usages.go b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/usages.go index 186caafa8b09..6d6826502621 100644 --- a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/usages.go +++ b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/usages.go @@ -72,6 +72,7 @@ func (client UsagesClient) ListByVaults(ctx context.Context, resourceGroupName s result, err = client.ListByVaultsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "recoveryservices.UsagesClient", "ListByVaults", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/vaultcertificates.go b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/vaultcertificates.go index d0b337bd985e..c94aa95862b0 100644 --- a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/vaultcertificates.go +++ b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/vaultcertificates.go @@ -75,6 +75,7 @@ func (client VaultCertificatesClient) Create(ctx context.Context, resourceGroupN result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "recoveryservices.VaultCertificatesClient", "Create", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/vaultextendedinfo.go b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/vaultextendedinfo.go index 648cbaef9483..af3d35dd5d54 100644 --- a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/vaultextendedinfo.go +++ b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/vaultextendedinfo.go @@ -74,6 +74,7 @@ func (client VaultExtendedInfoClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "recoveryservices.VaultExtendedInfoClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client VaultExtendedInfoClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "recoveryservices.VaultExtendedInfoClient", "Get", resp, "Failure responding to request") + return } return @@ -227,6 +229,7 @@ func (client VaultExtendedInfoClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "recoveryservices.VaultExtendedInfoClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/vaults.go b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/vaults.go index d53ba4a7081b..9bda6b1766b5 100644 --- a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/vaults.go +++ b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/vaults.go @@ -73,6 +73,7 @@ func (client VaultsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "recoveryservices.VaultsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client VaultsClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "recoveryservices.VaultsClient", "Delete", resp, "Failure responding to request") + return } return @@ -224,6 +226,7 @@ func (client VaultsClient) Get(ctx context.Context, resourceGroupName string, va result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "recoveryservices.VaultsClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +302,7 @@ func (client VaultsClient) ListByResourceGroup(ctx context.Context, resourceGrou result.vl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "recoveryservices.VaultsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vl.hasNextLink() && result.vl.IsEmpty() { err = result.NextWithContext(ctx) @@ -362,6 +366,7 @@ func (client VaultsClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "recoveryservices.VaultsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -411,6 +416,7 @@ func (client VaultsClient) ListBySubscriptionID(ctx context.Context) (result Vau result.vl, err = client.ListBySubscriptionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "recoveryservices.VaultsClient", "ListBySubscriptionID", resp, "Failure responding to request") + return } if result.vl.hasNextLink() && result.vl.IsEmpty() { err = result.NextWithContext(ctx) @@ -473,6 +479,7 @@ func (client VaultsClient) listBySubscriptionIDNextResults(ctx context.Context, result, err = client.ListBySubscriptionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "recoveryservices.VaultsClient", "listBySubscriptionIDNextResults", resp, "Failure responding to next results request") + return } return } @@ -525,6 +532,7 @@ func (client VaultsClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "recoveryservices.VaultsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-08-10/siterecovery/operations.go b/services/recoveryservices/mgmt/2016-08-10/siterecovery/operations.go index 8d42f4e4cc43..de6748e8d021 100644 --- a/services/recoveryservices/mgmt/2016-08-10/siterecovery/operations.go +++ b/services/recoveryservices/mgmt/2016-08-10/siterecovery/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsDisco result.odc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.OperationsClient", "List", resp, "Failure responding to request") + return } if result.odc.hasNextLink() && result.odc.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-08-10/siterecovery/recoverypoints.go b/services/recoveryservices/mgmt/2016-08-10/siterecovery/recoverypoints.go index f7de77c15edf..4a18d884a25e 100644 --- a/services/recoveryservices/mgmt/2016-08-10/siterecovery/recoverypoints.go +++ b/services/recoveryservices/mgmt/2016-08-10/siterecovery/recoverypoints.go @@ -74,6 +74,7 @@ func (client RecoveryPointsClient) Get(ctx context.Context, fabricName string, p result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.RecoveryPointsClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client RecoveryPointsClient) ListByReplicationProtectedItems(ctx context.C result.RPCVar, err = client.ListByReplicationProtectedItemsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.RecoveryPointsClient", "ListByReplicationProtectedItems", resp, "Failure responding to request") + return } if result.RPCVar.hasNextLink() && result.RPCVar.IsEmpty() { err = result.NextWithContext(ctx) @@ -222,6 +224,7 @@ func (client RecoveryPointsClient) listByReplicationProtectedItemsNextResults(ct result, err = client.ListByReplicationProtectedItemsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.RecoveryPointsClient", "listByReplicationProtectedItemsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationalertsettings.go b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationalertsettings.go index 376ad28a4acc..134d0a1c8fc7 100644 --- a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationalertsettings.go +++ b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationalertsettings.go @@ -73,6 +73,7 @@ func (client ReplicationAlertSettingsClient) Create(ctx context.Context, alertSe result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationAlertSettingsClient", "Create", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client ReplicationAlertSettingsClient) Get(ctx context.Context, alertSetti result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationAlertSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -224,6 +226,7 @@ func (client ReplicationAlertSettingsClient) List(ctx context.Context) (result A result.ac, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationAlertSettingsClient", "List", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -288,6 +291,7 @@ func (client ReplicationAlertSettingsClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationAlertSettingsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationevents.go b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationevents.go index 8c22895f1f82..02d6218c4183 100644 --- a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationevents.go +++ b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationevents.go @@ -72,6 +72,7 @@ func (client ReplicationEventsClient) Get(ctx context.Context, eventName string) result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationEventsClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client ReplicationEventsClient) List(ctx context.Context, filter string) ( result.ec, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationEventsClient", "List", resp, "Failure responding to request") + return } if result.ec.hasNextLink() && result.ec.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client ReplicationEventsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationEventsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationfabrics.go b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationfabrics.go index 63c53c60e46c..bb3ed5919a41 100644 --- a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationfabrics.go +++ b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationfabrics.go @@ -299,6 +299,7 @@ func (client ReplicationFabricsClient) Get(ctx context.Context, fabricName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationFabricsClient", "Get", resp, "Failure responding to request") + return } return @@ -373,6 +374,7 @@ func (client ReplicationFabricsClient) List(ctx context.Context) (result FabricC result.fc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationFabricsClient", "List", resp, "Failure responding to request") + return } if result.fc.hasNextLink() && result.fc.IsEmpty() { err = result.NextWithContext(ctx) @@ -437,6 +439,7 @@ func (client ReplicationFabricsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationFabricsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationjobs.go b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationjobs.go index 9ff21bdee7da..d21e9e86ff3f 100644 --- a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationjobs.go +++ b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationjobs.go @@ -222,6 +222,7 @@ func (client ReplicationJobsClient) Get(ctx context.Context, jobName string) (re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationJobsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client ReplicationJobsClient) List(ctx context.Context, filter string) (re result.jc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationJobsClient", "List", resp, "Failure responding to request") + return } if result.jc.hasNextLink() && result.jc.IsEmpty() { err = result.NextWithContext(ctx) @@ -365,6 +367,7 @@ func (client ReplicationJobsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationJobsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationlogicalnetworks.go b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationlogicalnetworks.go index 770585d4653a..80cca034a1e5 100644 --- a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationlogicalnetworks.go +++ b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationlogicalnetworks.go @@ -74,6 +74,7 @@ func (client ReplicationLogicalNetworksClient) Get(ctx context.Context, fabricNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationLogicalNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ReplicationLogicalNetworksClient) ListByReplicationFabrics(ctx cont result.lnc, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationLogicalNetworksClient", "ListByReplicationFabrics", resp, "Failure responding to request") + return } if result.lnc.hasNextLink() && result.lnc.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client ReplicationLogicalNetworksClient) listByReplicationFabricsNextResul result, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationLogicalNetworksClient", "listByReplicationFabricsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationnetworkmappings.go b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationnetworkmappings.go index 18d4a8f73552..d8590c5cf2ee 100644 --- a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationnetworkmappings.go +++ b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationnetworkmappings.go @@ -235,6 +235,7 @@ func (client ReplicationNetworkMappingsClient) Get(ctx context.Context, fabricNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworkMappingsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client ReplicationNetworkMappingsClient) List(ctx context.Context) (result result.nmc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworkMappingsClient", "List", resp, "Failure responding to request") + return } if result.nmc.hasNextLink() && result.nmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client ReplicationNetworkMappingsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworkMappingsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -427,6 +430,7 @@ func (client ReplicationNetworkMappingsClient) ListByReplicationNetworks(ctx con result.nmc, err = client.ListByReplicationNetworksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworkMappingsClient", "ListByReplicationNetworks", resp, "Failure responding to request") + return } if result.nmc.hasNextLink() && result.nmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -493,6 +497,7 @@ func (client ReplicationNetworkMappingsClient) listByReplicationNetworksNextResu result, err = client.ListByReplicationNetworksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworkMappingsClient", "listByReplicationNetworksNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationnetworks.go b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationnetworks.go index 04e0fd91592b..5cb0078f37c2 100644 --- a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationnetworks.go +++ b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationnetworks.go @@ -73,6 +73,7 @@ func (client ReplicationNetworksClient) Get(ctx context.Context, fabricName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client ReplicationNetworksClient) List(ctx context.Context) (result Networ result.nc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworksClient", "List", resp, "Failure responding to request") + return } if result.nc.hasNextLink() && result.nc.IsEmpty() { err = result.NextWithContext(ctx) @@ -212,6 +214,7 @@ func (client ReplicationNetworksClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -263,6 +266,7 @@ func (client ReplicationNetworksClient) ListByReplicationFabrics(ctx context.Con result.nc, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworksClient", "ListByReplicationFabrics", resp, "Failure responding to request") + return } if result.nc.hasNextLink() && result.nc.IsEmpty() { err = result.NextWithContext(ctx) @@ -328,6 +332,7 @@ func (client ReplicationNetworksClient) listByReplicationFabricsNextResults(ctx result, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworksClient", "listByReplicationFabricsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationpolicies.go b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationpolicies.go index 8ba388bb8afc..ee684b3a536f 100644 --- a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationpolicies.go +++ b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationpolicies.go @@ -224,6 +224,7 @@ func (client ReplicationPoliciesClient) Get(ctx context.Context, policyName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client ReplicationPoliciesClient) List(ctx context.Context) (result Policy result.pc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationPoliciesClient", "List", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -362,6 +364,7 @@ func (client ReplicationPoliciesClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationprotectableitems.go b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationprotectableitems.go index 89e89b2d79d6..46831085ec50 100644 --- a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationprotectableitems.go +++ b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationprotectableitems.go @@ -75,6 +75,7 @@ func (client ReplicationProtectableItemsClient) Get(ctx context.Context, fabricN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectableItemsClient", "Get", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client ReplicationProtectableItemsClient) ListByReplicationProtectionConta result.pic, err = client.ListByReplicationProtectionContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectableItemsClient", "ListByReplicationProtectionContainers", resp, "Failure responding to request") + return } if result.pic.hasNextLink() && result.pic.IsEmpty() { err = result.NextWithContext(ctx) @@ -220,6 +222,7 @@ func (client ReplicationProtectableItemsClient) listByReplicationProtectionConta result, err = client.ListByReplicationProtectionContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectableItemsClient", "listByReplicationProtectionContainersNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationprotecteditems.go b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationprotecteditems.go index 3ca65a9771d2..ef3942f78f16 100644 --- a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationprotecteditems.go +++ b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationprotecteditems.go @@ -399,6 +399,7 @@ func (client ReplicationProtectedItemsClient) Get(ctx context.Context, fabricNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectedItemsClient", "Get", resp, "Failure responding to request") + return } return @@ -478,6 +479,7 @@ func (client ReplicationProtectedItemsClient) List(ctx context.Context, skipToke result.rpic, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectedItemsClient", "List", resp, "Failure responding to request") + return } if result.rpic.hasNextLink() && result.rpic.IsEmpty() { err = result.NextWithContext(ctx) @@ -548,6 +550,7 @@ func (client ReplicationProtectedItemsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectedItemsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -600,6 +603,7 @@ func (client ReplicationProtectedItemsClient) ListByReplicationProtectionContain result.rpic, err = client.ListByReplicationProtectionContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectedItemsClient", "ListByReplicationProtectionContainers", resp, "Failure responding to request") + return } if result.rpic.hasNextLink() && result.rpic.IsEmpty() { err = result.NextWithContext(ctx) @@ -666,6 +670,7 @@ func (client ReplicationProtectedItemsClient) listByReplicationProtectionContain result, err = client.ListByReplicationProtectionContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectedItemsClient", "listByReplicationProtectionContainersNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationprotectioncontainermappings.go b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationprotectioncontainermappings.go index cae12fcd5ca5..0808e2c6a067 100644 --- a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationprotectioncontainermappings.go +++ b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationprotectioncontainermappings.go @@ -239,6 +239,7 @@ func (client ReplicationProtectionContainerMappingsClient) Get(ctx context.Conte result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainerMappingsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client ReplicationProtectionContainerMappingsClient) List(ctx context.Cont result.pcmc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainerMappingsClient", "List", resp, "Failure responding to request") + return } if result.pcmc.hasNextLink() && result.pcmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -379,6 +381,7 @@ func (client ReplicationProtectionContainerMappingsClient) listNextResults(ctx c result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainerMappingsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -431,6 +434,7 @@ func (client ReplicationProtectionContainerMappingsClient) ListByReplicationProt result.pcmc, err = client.ListByReplicationProtectionContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainerMappingsClient", "ListByReplicationProtectionContainers", resp, "Failure responding to request") + return } if result.pcmc.hasNextLink() && result.pcmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -497,6 +501,7 @@ func (client ReplicationProtectionContainerMappingsClient) listByReplicationProt result, err = client.ListByReplicationProtectionContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainerMappingsClient", "listByReplicationProtectionContainersNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationprotectioncontainers.go b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationprotectioncontainers.go index 07da0e90d451..b5be20643102 100644 --- a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationprotectioncontainers.go +++ b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationprotectioncontainers.go @@ -310,6 +310,7 @@ func (client ReplicationProtectionContainersClient) Get(ctx context.Context, fab result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainersClient", "Get", resp, "Failure responding to request") + return } return @@ -385,6 +386,7 @@ func (client ReplicationProtectionContainersClient) List(ctx context.Context) (r result.pcc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainersClient", "List", resp, "Failure responding to request") + return } if result.pcc.hasNextLink() && result.pcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -449,6 +451,7 @@ func (client ReplicationProtectionContainersClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -500,6 +503,7 @@ func (client ReplicationProtectionContainersClient) ListByReplicationFabrics(ctx result.pcc, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainersClient", "ListByReplicationFabrics", resp, "Failure responding to request") + return } if result.pcc.hasNextLink() && result.pcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -565,6 +569,7 @@ func (client ReplicationProtectionContainersClient) listByReplicationFabricsNext result, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainersClient", "listByReplicationFabricsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationrecoveryplans.go b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationrecoveryplans.go index c4a189ea4b04..7ed59297b17c 100644 --- a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationrecoveryplans.go +++ b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationrecoveryplans.go @@ -310,6 +310,7 @@ func (client ReplicationRecoveryPlansClient) Get(ctx context.Context, recoveryPl result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationRecoveryPlansClient", "Get", resp, "Failure responding to request") + return } return @@ -384,6 +385,7 @@ func (client ReplicationRecoveryPlansClient) List(ctx context.Context) (result R result.RPCVar, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationRecoveryPlansClient", "List", resp, "Failure responding to request") + return } if result.RPCVar.hasNextLink() && result.RPCVar.IsEmpty() { err = result.NextWithContext(ctx) @@ -448,6 +450,7 @@ func (client ReplicationRecoveryPlansClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationRecoveryPlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationrecoveryservicesproviders.go b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationrecoveryservicesproviders.go index bcb09fe62df2..63453b4597a5 100644 --- a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationrecoveryservicesproviders.go +++ b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationrecoveryservicesproviders.go @@ -151,6 +151,7 @@ func (client ReplicationRecoveryServicesProvidersClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationRecoveryServicesProvidersClient", "Get", resp, "Failure responding to request") + return } return @@ -226,6 +227,7 @@ func (client ReplicationRecoveryServicesProvidersClient) List(ctx context.Contex result.rspc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationRecoveryServicesProvidersClient", "List", resp, "Failure responding to request") + return } if result.rspc.hasNextLink() && result.rspc.IsEmpty() { err = result.NextWithContext(ctx) @@ -290,6 +292,7 @@ func (client ReplicationRecoveryServicesProvidersClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationRecoveryServicesProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -341,6 +344,7 @@ func (client ReplicationRecoveryServicesProvidersClient) ListByReplicationFabric result.rspc, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationRecoveryServicesProvidersClient", "ListByReplicationFabrics", resp, "Failure responding to request") + return } if result.rspc.hasNextLink() && result.rspc.IsEmpty() { err = result.NextWithContext(ctx) @@ -406,6 +410,7 @@ func (client ReplicationRecoveryServicesProvidersClient) listByReplicationFabric result, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationRecoveryServicesProvidersClient", "listByReplicationFabricsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationstorageclassificationmappings.go b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationstorageclassificationmappings.go index 77485024ed76..a49c54708d19 100644 --- a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationstorageclassificationmappings.go +++ b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationstorageclassificationmappings.go @@ -236,6 +236,7 @@ func (client ReplicationStorageClassificationMappingsClient) Get(ctx context.Con result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationMappingsClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client ReplicationStorageClassificationMappingsClient) List(ctx context.Co result.scmc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationMappingsClient", "List", resp, "Failure responding to request") + return } if result.scmc.hasNextLink() && result.scmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -376,6 +378,7 @@ func (client ReplicationStorageClassificationMappingsClient) listNextResults(ctx result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationMappingsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -428,6 +431,7 @@ func (client ReplicationStorageClassificationMappingsClient) ListByReplicationSt result.scmc, err = client.ListByReplicationStorageClassificationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationMappingsClient", "ListByReplicationStorageClassifications", resp, "Failure responding to request") + return } if result.scmc.hasNextLink() && result.scmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -494,6 +498,7 @@ func (client ReplicationStorageClassificationMappingsClient) listByReplicationSt result, err = client.ListByReplicationStorageClassificationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationMappingsClient", "listByReplicationStorageClassificationsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationstorageclassifications.go b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationstorageclassifications.go index a8d689f7cb42..416a5dbe86f4 100644 --- a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationstorageclassifications.go +++ b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationstorageclassifications.go @@ -75,6 +75,7 @@ func (client ReplicationStorageClassificationsClient) Get(ctx context.Context, f result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationsClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client ReplicationStorageClassificationsClient) List(ctx context.Context) result.scc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationsClient", "List", resp, "Failure responding to request") + return } if result.scc.hasNextLink() && result.scc.IsEmpty() { err = result.NextWithContext(ctx) @@ -214,6 +216,7 @@ func (client ReplicationStorageClassificationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -265,6 +268,7 @@ func (client ReplicationStorageClassificationsClient) ListByReplicationFabrics(c result.scc, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationsClient", "ListByReplicationFabrics", resp, "Failure responding to request") + return } if result.scc.hasNextLink() && result.scc.IsEmpty() { err = result.NextWithContext(ctx) @@ -330,6 +334,7 @@ func (client ReplicationStorageClassificationsClient) listByReplicationFabricsNe result, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationsClient", "listByReplicationFabricsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationvaulthealth.go b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationvaulthealth.go index 172fc5d68e71..c89bec978397 100644 --- a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationvaulthealth.go +++ b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationvaulthealth.go @@ -70,6 +70,7 @@ func (client ReplicationVaultHealthClient) Get(ctx context.Context) (result Vaul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationVaultHealthClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationvcenters.go b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationvcenters.go index 530e78413264..442d1601e881 100644 --- a/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationvcenters.go +++ b/services/recoveryservices/mgmt/2016-08-10/siterecovery/replicationvcenters.go @@ -229,6 +229,7 @@ func (client ReplicationvCentersClient) Get(ctx context.Context, fabricName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationvCentersClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client ReplicationvCentersClient) List(ctx context.Context) (result VCente result.vcc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationvCentersClient", "List", resp, "Failure responding to request") + return } if result.vcc.hasNextLink() && result.vcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client ReplicationvCentersClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationvCentersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -419,6 +422,7 @@ func (client ReplicationvCentersClient) ListByReplicationFabrics(ctx context.Con result.vcc, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationvCentersClient", "ListByReplicationFabrics", resp, "Failure responding to request") + return } if result.vcc.hasNextLink() && result.vcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -484,6 +488,7 @@ func (client ReplicationvCentersClient) listByReplicationFabricsNextResults(ctx result, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationvCentersClient", "listByReplicationFabricsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/backups.go b/services/recoveryservices/mgmt/2016-12-01/backup/backups.go index 686486d702c9..12cad4794e89 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/backups.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/backups.go @@ -77,6 +77,7 @@ func (client BackupsClient) Trigger(ctx context.Context, vaultName string, resou result, err = client.TriggerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.BackupsClient", "Trigger", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/engines.go b/services/recoveryservices/mgmt/2016-12-01/backup/engines.go index 20350865e0df..bc5cf3595e30 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/engines.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/engines.go @@ -75,6 +75,7 @@ func (client EnginesClient) Get(ctx context.Context, vaultName string, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.EnginesClient", "Get", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client EnginesClient) List(ctx context.Context, vaultName string, resource result.ebrl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.EnginesClient", "List", resp, "Failure responding to request") + return } if result.ebrl.hasNextLink() && result.ebrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -230,6 +232,7 @@ func (client EnginesClient) listNextResults(ctx context.Context, lastResults Eng result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.EnginesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/itemlevelrecoveryconnections.go b/services/recoveryservices/mgmt/2016-12-01/backup/itemlevelrecoveryconnections.go index e9bed21fb440..d93702be8fce 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/itemlevelrecoveryconnections.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/itemlevelrecoveryconnections.go @@ -82,6 +82,7 @@ func (client ItemLevelRecoveryConnectionsClient) Provision(ctx context.Context, result, err = client.ProvisionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ItemLevelRecoveryConnectionsClient", "Provision", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client ItemLevelRecoveryConnectionsClient) Revoke(ctx context.Context, vau result, err = client.RevokeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ItemLevelRecoveryConnectionsClient", "Revoke", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/operationresults.go b/services/recoveryservices/mgmt/2016-12-01/backup/operationresults.go index 59fde50edef4..ee0a9296034a 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/operationresults.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/operationresults.go @@ -78,6 +78,7 @@ func (client OperationResultsClient) Get(ctx context.Context, vaultName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.OperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/operationstatuses.go b/services/recoveryservices/mgmt/2016-12-01/backup/operationstatuses.go index 08d9a06925c9..bf4f662ecdaf 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/operationstatuses.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/operationstatuses.go @@ -77,6 +77,7 @@ func (client OperationStatusesClient) Get(ctx context.Context, vaultName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.OperationStatusesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/protectablecontainers.go b/services/recoveryservices/mgmt/2016-12-01/backup/protectablecontainers.go index bfd87b8d9837..6e857d51f094 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/protectablecontainers.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/protectablecontainers.go @@ -75,6 +75,7 @@ func (client ProtectableContainersClient) List(ctx context.Context, vaultName st result.pcrl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectableContainersClient", "List", resp, "Failure responding to request") + return } if result.pcrl.hasNextLink() && result.pcrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client ProtectableContainersClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectableContainersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/protectableitems.go b/services/recoveryservices/mgmt/2016-12-01/backup/protectableitems.go index 7f634fa68506..61eee3cdb2a9 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/protectableitems.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/protectableitems.go @@ -77,6 +77,7 @@ func (client ProtectableItemsClient) List(ctx context.Context, vaultName string, result.wpirl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectableItemsClient", "List", resp, "Failure responding to request") + return } if result.wpirl.hasNextLink() && result.wpirl.IsEmpty() { err = result.NextWithContext(ctx) @@ -147,6 +148,7 @@ func (client ProtectableItemsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectableItemsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/protecteditemoperationstatuses.go b/services/recoveryservices/mgmt/2016-12-01/backup/protecteditemoperationstatuses.go index 1012aef84cf1..00f22969346e 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/protecteditemoperationstatuses.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/protecteditemoperationstatuses.go @@ -80,6 +80,7 @@ func (client ProtectedItemOperationStatusesClient) Get(ctx context.Context, vaul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemOperationStatusesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontaineroperationresults.go b/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontaineroperationresults.go index 498964e56236..e7a3cd78fb31 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontaineroperationresults.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontaineroperationresults.go @@ -77,6 +77,7 @@ func (client ProtectionContainerOperationResultsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainerOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontainerrefreshoperationresults.go b/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontainerrefreshoperationresults.go index a9a203d05974..b2dc4d02da1d 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontainerrefreshoperationresults.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontainerrefreshoperationresults.go @@ -76,6 +76,7 @@ func (client ProtectionContainerRefreshOperationResultsClient) Get(ctx context.C result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainerRefreshOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontainers.go b/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontainers.go index ec64be809ed7..9370e1073a41 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontainers.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontainers.go @@ -75,6 +75,7 @@ func (client ProtectionContainersClient) Get(ctx context.Context, vaultName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client ProtectionContainersClient) Inquire(ctx context.Context, vaultName result, err = client.InquireResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Inquire", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client ProtectionContainersClient) Refresh(ctx context.Context, vaultName result, err = client.RefreshResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Refresh", resp, "Failure responding to request") + return } return @@ -321,6 +324,7 @@ func (client ProtectionContainersClient) Register(ctx context.Context, vaultName result, err = client.RegisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Register", resp, "Failure responding to request") + return } return @@ -404,6 +408,7 @@ func (client ProtectionContainersClient) Unregister(ctx context.Context, vaultNa result, err = client.UnregisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Unregister", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontainersgroup.go b/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontainersgroup.go index 56a49ed18ff4..e416d3ea2a29 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontainersgroup.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontainersgroup.go @@ -75,6 +75,7 @@ func (client ProtectionContainersGroupClient) List(ctx context.Context, vaultNam result.pcrl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersGroupClient", "List", resp, "Failure responding to request") + return } if result.pcrl.hasNextLink() && result.pcrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client ProtectionContainersGroupClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersGroupClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/protectionpolicies.go b/services/recoveryservices/mgmt/2016-12-01/backup/protectionpolicies.go index a45994c3c6ad..9a92ebe8939c 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/protectionpolicies.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/protectionpolicies.go @@ -76,6 +76,7 @@ func (client ProtectionPoliciesClient) Delete(ctx context.Context, vaultName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionPoliciesClient", "Delete", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/protectionpolicyoperationstatuses.go b/services/recoveryservices/mgmt/2016-12-01/backup/protectionpolicyoperationstatuses.go index 724bf928156a..e650ee85d100 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/protectionpolicyoperationstatuses.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/protectionpolicyoperationstatuses.go @@ -79,6 +79,7 @@ func (client ProtectionPolicyOperationStatusesClient) Get(ctx context.Context, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionPolicyOperationStatusesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/resourcestorageconfigs.go b/services/recoveryservices/mgmt/2016-12-01/backup/resourcestorageconfigs.go index 8993ab371e44..e58461746b67 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/resourcestorageconfigs.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/resourcestorageconfigs.go @@ -73,6 +73,7 @@ func (client ResourceStorageConfigsClient) Get(ctx context.Context, vaultName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ResourceStorageConfigsClient", "Get", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client ResourceStorageConfigsClient) Patch(ctx context.Context, vaultName result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ResourceStorageConfigsClient", "Patch", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client ResourceStorageConfigsClient) Update(ctx context.Context, vaultName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ResourceStorageConfigsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/securitypins.go b/services/recoveryservices/mgmt/2016-12-01/backup/securitypins.go index 475f8c57a132..66b6bee47fa0 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/securitypins.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/securitypins.go @@ -72,6 +72,7 @@ func (client SecurityPINsClient) Get(ctx context.Context, vaultName string, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.SecurityPINsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/workloaditems.go b/services/recoveryservices/mgmt/2016-12-01/backup/workloaditems.go index eba782e9ad8f..ac654b10d646 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/workloaditems.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/workloaditems.go @@ -79,6 +79,7 @@ func (client WorkloadItemsClient) List(ctx context.Context, vaultName string, re result.wirl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.WorkloadItemsClient", "List", resp, "Failure responding to request") + return } if result.wirl.hasNextLink() && result.wirl.IsEmpty() { err = result.NextWithContext(ctx) @@ -151,6 +152,7 @@ func (client WorkloadItemsClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.WorkloadItemsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-01-10/siterecovery/migrationrecoverypoints.go b/services/recoveryservices/mgmt/2018-01-10/siterecovery/migrationrecoverypoints.go index 4e4d771f7c8d..7becafb8506a 100644 --- a/services/recoveryservices/mgmt/2018-01-10/siterecovery/migrationrecoverypoints.go +++ b/services/recoveryservices/mgmt/2018-01-10/siterecovery/migrationrecoverypoints.go @@ -75,6 +75,7 @@ func (client MigrationRecoveryPointsClient) Get(ctx context.Context, fabricName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.MigrationRecoveryPointsClient", "Get", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client MigrationRecoveryPointsClient) ListByReplicationMigrationItems(ctx result.mrpc, err = client.ListByReplicationMigrationItemsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.MigrationRecoveryPointsClient", "ListByReplicationMigrationItems", resp, "Failure responding to request") + return } if result.mrpc.hasNextLink() && result.mrpc.IsEmpty() { err = result.NextWithContext(ctx) @@ -223,6 +225,7 @@ func (client MigrationRecoveryPointsClient) listByReplicationMigrationItemsNextR result, err = client.ListByReplicationMigrationItemsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.MigrationRecoveryPointsClient", "listByReplicationMigrationItemsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-01-10/siterecovery/operations.go b/services/recoveryservices/mgmt/2018-01-10/siterecovery/operations.go index 0a411e8558b3..565efaafb8fe 100644 --- a/services/recoveryservices/mgmt/2018-01-10/siterecovery/operations.go +++ b/services/recoveryservices/mgmt/2018-01-10/siterecovery/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsDisco result.odc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.OperationsClient", "List", resp, "Failure responding to request") + return } if result.odc.hasNextLink() && result.odc.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-01-10/siterecovery/recoverypoints.go b/services/recoveryservices/mgmt/2018-01-10/siterecovery/recoverypoints.go index 6ff577d6f7cd..973284c47391 100644 --- a/services/recoveryservices/mgmt/2018-01-10/siterecovery/recoverypoints.go +++ b/services/recoveryservices/mgmt/2018-01-10/siterecovery/recoverypoints.go @@ -74,6 +74,7 @@ func (client RecoveryPointsClient) Get(ctx context.Context, fabricName string, p result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.RecoveryPointsClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client RecoveryPointsClient) ListByReplicationProtectedItems(ctx context.C result.RPCVar, err = client.ListByReplicationProtectedItemsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.RecoveryPointsClient", "ListByReplicationProtectedItems", resp, "Failure responding to request") + return } if result.RPCVar.hasNextLink() && result.RPCVar.IsEmpty() { err = result.NextWithContext(ctx) @@ -222,6 +224,7 @@ func (client RecoveryPointsClient) listByReplicationProtectedItemsNextResults(ct result, err = client.ListByReplicationProtectedItemsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.RecoveryPointsClient", "listByReplicationProtectedItemsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationalertsettings.go b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationalertsettings.go index a43be6e76f0e..def53b29958c 100644 --- a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationalertsettings.go +++ b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationalertsettings.go @@ -73,6 +73,7 @@ func (client ReplicationAlertSettingsClient) Create(ctx context.Context, alertSe result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationAlertSettingsClient", "Create", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client ReplicationAlertSettingsClient) Get(ctx context.Context, alertSetti result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationAlertSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -224,6 +226,7 @@ func (client ReplicationAlertSettingsClient) List(ctx context.Context) (result A result.ac, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationAlertSettingsClient", "List", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -288,6 +291,7 @@ func (client ReplicationAlertSettingsClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationAlertSettingsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationevents.go b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationevents.go index 46e8cf8c5970..b0ecb8e24e0f 100644 --- a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationevents.go +++ b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationevents.go @@ -72,6 +72,7 @@ func (client ReplicationEventsClient) Get(ctx context.Context, eventName string) result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationEventsClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client ReplicationEventsClient) List(ctx context.Context, filter string) ( result.ec, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationEventsClient", "List", resp, "Failure responding to request") + return } if result.ec.hasNextLink() && result.ec.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client ReplicationEventsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationEventsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationfabrics.go b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationfabrics.go index 4fefe4c56f3b..970953d1b22a 100644 --- a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationfabrics.go +++ b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationfabrics.go @@ -299,6 +299,7 @@ func (client ReplicationFabricsClient) Get(ctx context.Context, fabricName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationFabricsClient", "Get", resp, "Failure responding to request") + return } return @@ -373,6 +374,7 @@ func (client ReplicationFabricsClient) List(ctx context.Context) (result FabricC result.fc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationFabricsClient", "List", resp, "Failure responding to request") + return } if result.fc.hasNextLink() && result.fc.IsEmpty() { err = result.NextWithContext(ctx) @@ -437,6 +439,7 @@ func (client ReplicationFabricsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationFabricsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationjobs.go b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationjobs.go index a298cd315bed..ceeaef1e0cd2 100644 --- a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationjobs.go +++ b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationjobs.go @@ -222,6 +222,7 @@ func (client ReplicationJobsClient) Get(ctx context.Context, jobName string) (re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationJobsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client ReplicationJobsClient) List(ctx context.Context, filter string) (re result.jc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationJobsClient", "List", resp, "Failure responding to request") + return } if result.jc.hasNextLink() && result.jc.IsEmpty() { err = result.NextWithContext(ctx) @@ -365,6 +367,7 @@ func (client ReplicationJobsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationJobsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationlogicalnetworks.go b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationlogicalnetworks.go index 507980bf2f88..2861c2e1ee45 100644 --- a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationlogicalnetworks.go +++ b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationlogicalnetworks.go @@ -74,6 +74,7 @@ func (client ReplicationLogicalNetworksClient) Get(ctx context.Context, fabricNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationLogicalNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ReplicationLogicalNetworksClient) ListByReplicationFabrics(ctx cont result.lnc, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationLogicalNetworksClient", "ListByReplicationFabrics", resp, "Failure responding to request") + return } if result.lnc.hasNextLink() && result.lnc.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client ReplicationLogicalNetworksClient) listByReplicationFabricsNextResul result, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationLogicalNetworksClient", "listByReplicationFabricsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationmigrationitems.go b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationmigrationitems.go index 62711839046a..5165fb6f80c9 100644 --- a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationmigrationitems.go +++ b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationmigrationitems.go @@ -248,6 +248,7 @@ func (client ReplicationMigrationItemsClient) Get(ctx context.Context, fabricNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationMigrationItemsClient", "Get", resp, "Failure responding to request") + return } return @@ -327,6 +328,7 @@ func (client ReplicationMigrationItemsClient) List(ctx context.Context, skipToke result.mic, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationMigrationItemsClient", "List", resp, "Failure responding to request") + return } if result.mic.hasNextLink() && result.mic.IsEmpty() { err = result.NextWithContext(ctx) @@ -397,6 +399,7 @@ func (client ReplicationMigrationItemsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationMigrationItemsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -449,6 +452,7 @@ func (client ReplicationMigrationItemsClient) ListByReplicationProtectionContain result.mic, err = client.ListByReplicationProtectionContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationMigrationItemsClient", "ListByReplicationProtectionContainers", resp, "Failure responding to request") + return } if result.mic.hasNextLink() && result.mic.IsEmpty() { err = result.NextWithContext(ctx) @@ -515,6 +519,7 @@ func (client ReplicationMigrationItemsClient) listByReplicationProtectionContain result, err = client.ListByReplicationProtectionContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationMigrationItemsClient", "listByReplicationProtectionContainersNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationnetworkmappings.go b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationnetworkmappings.go index 6479356f9ea9..61e3897b41f5 100644 --- a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationnetworkmappings.go +++ b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationnetworkmappings.go @@ -235,6 +235,7 @@ func (client ReplicationNetworkMappingsClient) Get(ctx context.Context, fabricNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworkMappingsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client ReplicationNetworkMappingsClient) List(ctx context.Context) (result result.nmc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworkMappingsClient", "List", resp, "Failure responding to request") + return } if result.nmc.hasNextLink() && result.nmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client ReplicationNetworkMappingsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworkMappingsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -427,6 +430,7 @@ func (client ReplicationNetworkMappingsClient) ListByReplicationNetworks(ctx con result.nmc, err = client.ListByReplicationNetworksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworkMappingsClient", "ListByReplicationNetworks", resp, "Failure responding to request") + return } if result.nmc.hasNextLink() && result.nmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -493,6 +497,7 @@ func (client ReplicationNetworkMappingsClient) listByReplicationNetworksNextResu result, err = client.ListByReplicationNetworksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworkMappingsClient", "listByReplicationNetworksNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationnetworks.go b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationnetworks.go index eb488aef86a3..d3be858763c7 100644 --- a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationnetworks.go +++ b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationnetworks.go @@ -73,6 +73,7 @@ func (client ReplicationNetworksClient) Get(ctx context.Context, fabricName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client ReplicationNetworksClient) List(ctx context.Context) (result Networ result.nc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworksClient", "List", resp, "Failure responding to request") + return } if result.nc.hasNextLink() && result.nc.IsEmpty() { err = result.NextWithContext(ctx) @@ -212,6 +214,7 @@ func (client ReplicationNetworksClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -263,6 +266,7 @@ func (client ReplicationNetworksClient) ListByReplicationFabrics(ctx context.Con result.nc, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworksClient", "ListByReplicationFabrics", resp, "Failure responding to request") + return } if result.nc.hasNextLink() && result.nc.IsEmpty() { err = result.NextWithContext(ctx) @@ -328,6 +332,7 @@ func (client ReplicationNetworksClient) listByReplicationFabricsNextResults(ctx result, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworksClient", "listByReplicationFabricsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationpolicies.go b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationpolicies.go index ba6762f0e832..20b0a41260cb 100644 --- a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationpolicies.go +++ b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationpolicies.go @@ -224,6 +224,7 @@ func (client ReplicationPoliciesClient) Get(ctx context.Context, policyName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client ReplicationPoliciesClient) List(ctx context.Context) (result Policy result.pc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationPoliciesClient", "List", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -362,6 +364,7 @@ func (client ReplicationPoliciesClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationprotectableitems.go b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationprotectableitems.go index bdf13e26815f..e49d5b02ebee 100644 --- a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationprotectableitems.go +++ b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationprotectableitems.go @@ -75,6 +75,7 @@ func (client ReplicationProtectableItemsClient) Get(ctx context.Context, fabricN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectableItemsClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client ReplicationProtectableItemsClient) ListByReplicationProtectionConta result.pic, err = client.ListByReplicationProtectionContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectableItemsClient", "ListByReplicationProtectionContainers", resp, "Failure responding to request") + return } if result.pic.hasNextLink() && result.pic.IsEmpty() { err = result.NextWithContext(ctx) @@ -224,6 +226,7 @@ func (client ReplicationProtectableItemsClient) listByReplicationProtectionConta result, err = client.ListByReplicationProtectionContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectableItemsClient", "listByReplicationProtectionContainersNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationprotecteditems.go b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationprotecteditems.go index 7f81b360b8a2..a0969fb24518 100644 --- a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationprotecteditems.go +++ b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationprotecteditems.go @@ -399,6 +399,7 @@ func (client ReplicationProtectedItemsClient) Get(ctx context.Context, fabricNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectedItemsClient", "Get", resp, "Failure responding to request") + return } return @@ -478,6 +479,7 @@ func (client ReplicationProtectedItemsClient) List(ctx context.Context, skipToke result.rpic, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectedItemsClient", "List", resp, "Failure responding to request") + return } if result.rpic.hasNextLink() && result.rpic.IsEmpty() { err = result.NextWithContext(ctx) @@ -548,6 +550,7 @@ func (client ReplicationProtectedItemsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectedItemsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -600,6 +603,7 @@ func (client ReplicationProtectedItemsClient) ListByReplicationProtectionContain result.rpic, err = client.ListByReplicationProtectionContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectedItemsClient", "ListByReplicationProtectionContainers", resp, "Failure responding to request") + return } if result.rpic.hasNextLink() && result.rpic.IsEmpty() { err = result.NextWithContext(ctx) @@ -666,6 +670,7 @@ func (client ReplicationProtectedItemsClient) listByReplicationProtectionContain result, err = client.ListByReplicationProtectionContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectedItemsClient", "listByReplicationProtectionContainersNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationprotectioncontainermappings.go b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationprotectioncontainermappings.go index 11235d0fe1f9..7bb80eac4680 100644 --- a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationprotectioncontainermappings.go +++ b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationprotectioncontainermappings.go @@ -239,6 +239,7 @@ func (client ReplicationProtectionContainerMappingsClient) Get(ctx context.Conte result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainerMappingsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client ReplicationProtectionContainerMappingsClient) List(ctx context.Cont result.pcmc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainerMappingsClient", "List", resp, "Failure responding to request") + return } if result.pcmc.hasNextLink() && result.pcmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -379,6 +381,7 @@ func (client ReplicationProtectionContainerMappingsClient) listNextResults(ctx c result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainerMappingsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -431,6 +434,7 @@ func (client ReplicationProtectionContainerMappingsClient) ListByReplicationProt result.pcmc, err = client.ListByReplicationProtectionContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainerMappingsClient", "ListByReplicationProtectionContainers", resp, "Failure responding to request") + return } if result.pcmc.hasNextLink() && result.pcmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -497,6 +501,7 @@ func (client ReplicationProtectionContainerMappingsClient) listByReplicationProt result, err = client.ListByReplicationProtectionContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainerMappingsClient", "listByReplicationProtectionContainersNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationprotectioncontainers.go b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationprotectioncontainers.go index 8b1fab7ef4be..bdab123a3325 100644 --- a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationprotectioncontainers.go +++ b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationprotectioncontainers.go @@ -310,6 +310,7 @@ func (client ReplicationProtectionContainersClient) Get(ctx context.Context, fab result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainersClient", "Get", resp, "Failure responding to request") + return } return @@ -385,6 +386,7 @@ func (client ReplicationProtectionContainersClient) List(ctx context.Context) (r result.pcc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainersClient", "List", resp, "Failure responding to request") + return } if result.pcc.hasNextLink() && result.pcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -449,6 +451,7 @@ func (client ReplicationProtectionContainersClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -500,6 +503,7 @@ func (client ReplicationProtectionContainersClient) ListByReplicationFabrics(ctx result.pcc, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainersClient", "ListByReplicationFabrics", resp, "Failure responding to request") + return } if result.pcc.hasNextLink() && result.pcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -565,6 +569,7 @@ func (client ReplicationProtectionContainersClient) listByReplicationFabricsNext result, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainersClient", "listByReplicationFabricsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationrecoveryplans.go b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationrecoveryplans.go index c08893166b3e..13566c31627d 100644 --- a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationrecoveryplans.go +++ b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationrecoveryplans.go @@ -310,6 +310,7 @@ func (client ReplicationRecoveryPlansClient) Get(ctx context.Context, recoveryPl result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationRecoveryPlansClient", "Get", resp, "Failure responding to request") + return } return @@ -384,6 +385,7 @@ func (client ReplicationRecoveryPlansClient) List(ctx context.Context) (result R result.RPCVar, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationRecoveryPlansClient", "List", resp, "Failure responding to request") + return } if result.RPCVar.hasNextLink() && result.RPCVar.IsEmpty() { err = result.NextWithContext(ctx) @@ -448,6 +450,7 @@ func (client ReplicationRecoveryPlansClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationRecoveryPlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationrecoveryservicesproviders.go b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationrecoveryservicesproviders.go index 422ffc03c85c..e8ab3be64107 100644 --- a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationrecoveryservicesproviders.go +++ b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationrecoveryservicesproviders.go @@ -254,6 +254,7 @@ func (client ReplicationRecoveryServicesProvidersClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationRecoveryServicesProvidersClient", "Get", resp, "Failure responding to request") + return } return @@ -329,6 +330,7 @@ func (client ReplicationRecoveryServicesProvidersClient) List(ctx context.Contex result.rspc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationRecoveryServicesProvidersClient", "List", resp, "Failure responding to request") + return } if result.rspc.hasNextLink() && result.rspc.IsEmpty() { err = result.NextWithContext(ctx) @@ -393,6 +395,7 @@ func (client ReplicationRecoveryServicesProvidersClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationRecoveryServicesProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -444,6 +447,7 @@ func (client ReplicationRecoveryServicesProvidersClient) ListByReplicationFabric result.rspc, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationRecoveryServicesProvidersClient", "ListByReplicationFabrics", resp, "Failure responding to request") + return } if result.rspc.hasNextLink() && result.rspc.IsEmpty() { err = result.NextWithContext(ctx) @@ -509,6 +513,7 @@ func (client ReplicationRecoveryServicesProvidersClient) listByReplicationFabric result, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationRecoveryServicesProvidersClient", "listByReplicationFabricsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationstorageclassificationmappings.go b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationstorageclassificationmappings.go index 89a89c6ce259..4100988291f6 100644 --- a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationstorageclassificationmappings.go +++ b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationstorageclassificationmappings.go @@ -236,6 +236,7 @@ func (client ReplicationStorageClassificationMappingsClient) Get(ctx context.Con result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationMappingsClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client ReplicationStorageClassificationMappingsClient) List(ctx context.Co result.scmc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationMappingsClient", "List", resp, "Failure responding to request") + return } if result.scmc.hasNextLink() && result.scmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -376,6 +378,7 @@ func (client ReplicationStorageClassificationMappingsClient) listNextResults(ctx result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationMappingsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -428,6 +431,7 @@ func (client ReplicationStorageClassificationMappingsClient) ListByReplicationSt result.scmc, err = client.ListByReplicationStorageClassificationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationMappingsClient", "ListByReplicationStorageClassifications", resp, "Failure responding to request") + return } if result.scmc.hasNextLink() && result.scmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -494,6 +498,7 @@ func (client ReplicationStorageClassificationMappingsClient) listByReplicationSt result, err = client.ListByReplicationStorageClassificationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationMappingsClient", "listByReplicationStorageClassificationsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationstorageclassifications.go b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationstorageclassifications.go index 700e39f0e252..07ec1d92777e 100644 --- a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationstorageclassifications.go +++ b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationstorageclassifications.go @@ -75,6 +75,7 @@ func (client ReplicationStorageClassificationsClient) Get(ctx context.Context, f result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationsClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client ReplicationStorageClassificationsClient) List(ctx context.Context) result.scc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationsClient", "List", resp, "Failure responding to request") + return } if result.scc.hasNextLink() && result.scc.IsEmpty() { err = result.NextWithContext(ctx) @@ -214,6 +216,7 @@ func (client ReplicationStorageClassificationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -265,6 +268,7 @@ func (client ReplicationStorageClassificationsClient) ListByReplicationFabrics(c result.scc, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationsClient", "ListByReplicationFabrics", resp, "Failure responding to request") + return } if result.scc.hasNextLink() && result.scc.IsEmpty() { err = result.NextWithContext(ctx) @@ -330,6 +334,7 @@ func (client ReplicationStorageClassificationsClient) listByReplicationFabricsNe result, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationsClient", "listByReplicationFabricsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationvaulthealth.go b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationvaulthealth.go index 4990e24fb6b0..01f4145f553f 100644 --- a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationvaulthealth.go +++ b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationvaulthealth.go @@ -70,6 +70,7 @@ func (client ReplicationVaultHealthClient) Get(ctx context.Context) (result Vaul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationVaultHealthClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationvcenters.go b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationvcenters.go index 153543fdcbdd..85b478e5a1e8 100644 --- a/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationvcenters.go +++ b/services/recoveryservices/mgmt/2018-01-10/siterecovery/replicationvcenters.go @@ -229,6 +229,7 @@ func (client ReplicationvCentersClient) Get(ctx context.Context, fabricName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationvCentersClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client ReplicationvCentersClient) List(ctx context.Context) (result VCente result.vcc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationvCentersClient", "List", resp, "Failure responding to request") + return } if result.vcc.hasNextLink() && result.vcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client ReplicationvCentersClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationvCentersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -419,6 +422,7 @@ func (client ReplicationvCentersClient) ListByReplicationFabrics(ctx context.Con result.vcc, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationvCentersClient", "ListByReplicationFabrics", resp, "Failure responding to request") + return } if result.vcc.hasNextLink() && result.vcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -484,6 +488,7 @@ func (client ReplicationvCentersClient) listByReplicationFabricsNextResults(ctx result, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationvCentersClient", "listByReplicationFabricsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-01-10/siterecovery/targetcomputesizes.go b/services/recoveryservices/mgmt/2018-01-10/siterecovery/targetcomputesizes.go index a3fcd56483ea..d4726e5584c1 100644 --- a/services/recoveryservices/mgmt/2018-01-10/siterecovery/targetcomputesizes.go +++ b/services/recoveryservices/mgmt/2018-01-10/siterecovery/targetcomputesizes.go @@ -75,6 +75,7 @@ func (client TargetComputeSizesClient) ListByReplicationProtectedItems(ctx conte result.tcsc, err = client.ListByReplicationProtectedItemsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.TargetComputeSizesClient", "ListByReplicationProtectedItems", resp, "Failure responding to request") + return } if result.tcsc.hasNextLink() && result.tcsc.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client TargetComputeSizesClient) listByReplicationProtectedItemsNextResult result, err = client.ListByReplicationProtectedItemsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.TargetComputeSizesClient", "listByReplicationProtectedItemsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/migrationrecoverypoints.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/migrationrecoverypoints.go index 44bcdfdf92c2..e38ffd5d93e2 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/migrationrecoverypoints.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/migrationrecoverypoints.go @@ -75,6 +75,7 @@ func (client MigrationRecoveryPointsClient) Get(ctx context.Context, fabricName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.MigrationRecoveryPointsClient", "Get", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client MigrationRecoveryPointsClient) ListByReplicationMigrationItems(ctx result.mrpc, err = client.ListByReplicationMigrationItemsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.MigrationRecoveryPointsClient", "ListByReplicationMigrationItems", resp, "Failure responding to request") + return } if result.mrpc.hasNextLink() && result.mrpc.IsEmpty() { err = result.NextWithContext(ctx) @@ -223,6 +225,7 @@ func (client MigrationRecoveryPointsClient) listByReplicationMigrationItemsNextR result, err = client.ListByReplicationMigrationItemsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.MigrationRecoveryPointsClient", "listByReplicationMigrationItemsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/operations.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/operations.go index 50ccef7a48eb..019a7b977d34 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/operations.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsDisco result.odc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.OperationsClient", "List", resp, "Failure responding to request") + return } if result.odc.hasNextLink() && result.odc.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/recoverypoints.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/recoverypoints.go index 63aea7ae6b83..bc8d5edd1c60 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/recoverypoints.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/recoverypoints.go @@ -74,6 +74,7 @@ func (client RecoveryPointsClient) Get(ctx context.Context, fabricName string, p result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.RecoveryPointsClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client RecoveryPointsClient) ListByReplicationProtectedItems(ctx context.C result.RPCVar, err = client.ListByReplicationProtectedItemsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.RecoveryPointsClient", "ListByReplicationProtectedItems", resp, "Failure responding to request") + return } if result.RPCVar.hasNextLink() && result.RPCVar.IsEmpty() { err = result.NextWithContext(ctx) @@ -222,6 +224,7 @@ func (client RecoveryPointsClient) listByReplicationProtectedItemsNextResults(ct result, err = client.ListByReplicationProtectedItemsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.RecoveryPointsClient", "listByReplicationProtectedItemsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationalertsettings.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationalertsettings.go index 0637081e8820..99dc38ed2a97 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationalertsettings.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationalertsettings.go @@ -73,6 +73,7 @@ func (client ReplicationAlertSettingsClient) Create(ctx context.Context, alertSe result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationAlertSettingsClient", "Create", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client ReplicationAlertSettingsClient) Get(ctx context.Context, alertSetti result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationAlertSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -224,6 +226,7 @@ func (client ReplicationAlertSettingsClient) List(ctx context.Context) (result A result.ac, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationAlertSettingsClient", "List", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -288,6 +291,7 @@ func (client ReplicationAlertSettingsClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationAlertSettingsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationeligibilityresults.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationeligibilityresults.go index 40940265553a..879b01372141 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationeligibilityresults.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationeligibilityresults.go @@ -73,6 +73,7 @@ func (client ReplicationEligibilityResultsClient) Get(ctx context.Context, virtu result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationEligibilityResultsClient", "Get", resp, "Failure responding to request") + return } return @@ -147,6 +148,7 @@ func (client ReplicationEligibilityResultsClient) List(ctx context.Context, virt result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationEligibilityResultsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationevents.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationevents.go index 084e1b141516..a1cf6c963d63 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationevents.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationevents.go @@ -72,6 +72,7 @@ func (client ReplicationEventsClient) Get(ctx context.Context, eventName string) result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationEventsClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client ReplicationEventsClient) List(ctx context.Context, filter string) ( result.ec, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationEventsClient", "List", resp, "Failure responding to request") + return } if result.ec.hasNextLink() && result.ec.IsEmpty() { err = result.NextWithContext(ctx) @@ -215,6 +217,7 @@ func (client ReplicationEventsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationEventsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationfabrics.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationfabrics.go index 57dce3528782..442511ec9edf 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationfabrics.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationfabrics.go @@ -299,6 +299,7 @@ func (client ReplicationFabricsClient) Get(ctx context.Context, fabricName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationFabricsClient", "Get", resp, "Failure responding to request") + return } return @@ -373,6 +374,7 @@ func (client ReplicationFabricsClient) List(ctx context.Context) (result FabricC result.fc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationFabricsClient", "List", resp, "Failure responding to request") + return } if result.fc.hasNextLink() && result.fc.IsEmpty() { err = result.NextWithContext(ctx) @@ -437,6 +439,7 @@ func (client ReplicationFabricsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationFabricsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationjobs.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationjobs.go index 5d3f894f4d10..39cf9847e18a 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationjobs.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationjobs.go @@ -222,6 +222,7 @@ func (client ReplicationJobsClient) Get(ctx context.Context, jobName string) (re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationJobsClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client ReplicationJobsClient) List(ctx context.Context, filter string) (re result.jc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationJobsClient", "List", resp, "Failure responding to request") + return } if result.jc.hasNextLink() && result.jc.IsEmpty() { err = result.NextWithContext(ctx) @@ -365,6 +367,7 @@ func (client ReplicationJobsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationJobsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationlogicalnetworks.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationlogicalnetworks.go index e9adfc4dce1c..e3af439ebe73 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationlogicalnetworks.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationlogicalnetworks.go @@ -74,6 +74,7 @@ func (client ReplicationLogicalNetworksClient) Get(ctx context.Context, fabricNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationLogicalNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ReplicationLogicalNetworksClient) ListByReplicationFabrics(ctx cont result.lnc, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationLogicalNetworksClient", "ListByReplicationFabrics", resp, "Failure responding to request") + return } if result.lnc.hasNextLink() && result.lnc.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client ReplicationLogicalNetworksClient) listByReplicationFabricsNextResul result, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationLogicalNetworksClient", "listByReplicationFabricsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationmigrationitems.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationmigrationitems.go index 922c53d8d80d..72b1a461d269 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationmigrationitems.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationmigrationitems.go @@ -248,6 +248,7 @@ func (client ReplicationMigrationItemsClient) Get(ctx context.Context, fabricNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationMigrationItemsClient", "Get", resp, "Failure responding to request") + return } return @@ -327,6 +328,7 @@ func (client ReplicationMigrationItemsClient) List(ctx context.Context, skipToke result.mic, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationMigrationItemsClient", "List", resp, "Failure responding to request") + return } if result.mic.hasNextLink() && result.mic.IsEmpty() { err = result.NextWithContext(ctx) @@ -397,6 +399,7 @@ func (client ReplicationMigrationItemsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationMigrationItemsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -449,6 +452,7 @@ func (client ReplicationMigrationItemsClient) ListByReplicationProtectionContain result.mic, err = client.ListByReplicationProtectionContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationMigrationItemsClient", "ListByReplicationProtectionContainers", resp, "Failure responding to request") + return } if result.mic.hasNextLink() && result.mic.IsEmpty() { err = result.NextWithContext(ctx) @@ -515,6 +519,7 @@ func (client ReplicationMigrationItemsClient) listByReplicationProtectionContain result, err = client.ListByReplicationProtectionContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationMigrationItemsClient", "listByReplicationProtectionContainersNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationnetworkmappings.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationnetworkmappings.go index 63b7387fb7ec..9408c6645b27 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationnetworkmappings.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationnetworkmappings.go @@ -235,6 +235,7 @@ func (client ReplicationNetworkMappingsClient) Get(ctx context.Context, fabricNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworkMappingsClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +312,7 @@ func (client ReplicationNetworkMappingsClient) List(ctx context.Context) (result result.nmc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworkMappingsClient", "List", resp, "Failure responding to request") + return } if result.nmc.hasNextLink() && result.nmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +377,7 @@ func (client ReplicationNetworkMappingsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworkMappingsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -427,6 +430,7 @@ func (client ReplicationNetworkMappingsClient) ListByReplicationNetworks(ctx con result.nmc, err = client.ListByReplicationNetworksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworkMappingsClient", "ListByReplicationNetworks", resp, "Failure responding to request") + return } if result.nmc.hasNextLink() && result.nmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -493,6 +497,7 @@ func (client ReplicationNetworkMappingsClient) listByReplicationNetworksNextResu result, err = client.ListByReplicationNetworksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworkMappingsClient", "listByReplicationNetworksNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationnetworks.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationnetworks.go index 5ae2cf337018..5a732b177e82 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationnetworks.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationnetworks.go @@ -73,6 +73,7 @@ func (client ReplicationNetworksClient) Get(ctx context.Context, fabricName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client ReplicationNetworksClient) List(ctx context.Context) (result Networ result.nc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworksClient", "List", resp, "Failure responding to request") + return } if result.nc.hasNextLink() && result.nc.IsEmpty() { err = result.NextWithContext(ctx) @@ -212,6 +214,7 @@ func (client ReplicationNetworksClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -263,6 +266,7 @@ func (client ReplicationNetworksClient) ListByReplicationFabrics(ctx context.Con result.nc, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworksClient", "ListByReplicationFabrics", resp, "Failure responding to request") + return } if result.nc.hasNextLink() && result.nc.IsEmpty() { err = result.NextWithContext(ctx) @@ -328,6 +332,7 @@ func (client ReplicationNetworksClient) listByReplicationFabricsNextResults(ctx result, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationNetworksClient", "listByReplicationFabricsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationpolicies.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationpolicies.go index 98854b32408a..1344ea683e3e 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationpolicies.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationpolicies.go @@ -224,6 +224,7 @@ func (client ReplicationPoliciesClient) Get(ctx context.Context, policyName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -298,6 +299,7 @@ func (client ReplicationPoliciesClient) List(ctx context.Context) (result Policy result.pc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationPoliciesClient", "List", resp, "Failure responding to request") + return } if result.pc.hasNextLink() && result.pc.IsEmpty() { err = result.NextWithContext(ctx) @@ -362,6 +364,7 @@ func (client ReplicationPoliciesClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationprotectableitems.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationprotectableitems.go index 8cf7373d16ed..c765681ce09f 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationprotectableitems.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationprotectableitems.go @@ -75,6 +75,7 @@ func (client ReplicationProtectableItemsClient) Get(ctx context.Context, fabricN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectableItemsClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client ReplicationProtectableItemsClient) ListByReplicationProtectionConta result.pic, err = client.ListByReplicationProtectionContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectableItemsClient", "ListByReplicationProtectionContainers", resp, "Failure responding to request") + return } if result.pic.hasNextLink() && result.pic.IsEmpty() { err = result.NextWithContext(ctx) @@ -224,6 +226,7 @@ func (client ReplicationProtectableItemsClient) listByReplicationProtectionConta result, err = client.ListByReplicationProtectionContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectableItemsClient", "listByReplicationProtectionContainersNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationprotecteditems.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationprotecteditems.go index c361ab300aa2..ca13e6c28e2d 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationprotecteditems.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationprotecteditems.go @@ -481,6 +481,7 @@ func (client ReplicationProtectedItemsClient) Get(ctx context.Context, fabricNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectedItemsClient", "Get", resp, "Failure responding to request") + return } return @@ -560,6 +561,7 @@ func (client ReplicationProtectedItemsClient) List(ctx context.Context, skipToke result.rpic, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectedItemsClient", "List", resp, "Failure responding to request") + return } if result.rpic.hasNextLink() && result.rpic.IsEmpty() { err = result.NextWithContext(ctx) @@ -630,6 +632,7 @@ func (client ReplicationProtectedItemsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectedItemsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -682,6 +685,7 @@ func (client ReplicationProtectedItemsClient) ListByReplicationProtectionContain result.rpic, err = client.ListByReplicationProtectionContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectedItemsClient", "ListByReplicationProtectionContainers", resp, "Failure responding to request") + return } if result.rpic.hasNextLink() && result.rpic.IsEmpty() { err = result.NextWithContext(ctx) @@ -748,6 +752,7 @@ func (client ReplicationProtectedItemsClient) listByReplicationProtectionContain result, err = client.ListByReplicationProtectionContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectedItemsClient", "listByReplicationProtectionContainersNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationprotectioncontainermappings.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationprotectioncontainermappings.go index d15039cbbfa5..3ead9e4e18e5 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationprotectioncontainermappings.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationprotectioncontainermappings.go @@ -239,6 +239,7 @@ func (client ReplicationProtectionContainerMappingsClient) Get(ctx context.Conte result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainerMappingsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +316,7 @@ func (client ReplicationProtectionContainerMappingsClient) List(ctx context.Cont result.pcmc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainerMappingsClient", "List", resp, "Failure responding to request") + return } if result.pcmc.hasNextLink() && result.pcmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -379,6 +381,7 @@ func (client ReplicationProtectionContainerMappingsClient) listNextResults(ctx c result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainerMappingsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -431,6 +434,7 @@ func (client ReplicationProtectionContainerMappingsClient) ListByReplicationProt result.pcmc, err = client.ListByReplicationProtectionContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainerMappingsClient", "ListByReplicationProtectionContainers", resp, "Failure responding to request") + return } if result.pcmc.hasNextLink() && result.pcmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -497,6 +501,7 @@ func (client ReplicationProtectionContainerMappingsClient) listByReplicationProt result, err = client.ListByReplicationProtectionContainersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainerMappingsClient", "listByReplicationProtectionContainersNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationprotectioncontainers.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationprotectioncontainers.go index 1fbaaa40ca0c..30a8da4c932c 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationprotectioncontainers.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationprotectioncontainers.go @@ -310,6 +310,7 @@ func (client ReplicationProtectionContainersClient) Get(ctx context.Context, fab result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainersClient", "Get", resp, "Failure responding to request") + return } return @@ -385,6 +386,7 @@ func (client ReplicationProtectionContainersClient) List(ctx context.Context) (r result.pcc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainersClient", "List", resp, "Failure responding to request") + return } if result.pcc.hasNextLink() && result.pcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -449,6 +451,7 @@ func (client ReplicationProtectionContainersClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -500,6 +503,7 @@ func (client ReplicationProtectionContainersClient) ListByReplicationFabrics(ctx result.pcc, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainersClient", "ListByReplicationFabrics", resp, "Failure responding to request") + return } if result.pcc.hasNextLink() && result.pcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -565,6 +569,7 @@ func (client ReplicationProtectionContainersClient) listByReplicationFabricsNext result, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionContainersClient", "listByReplicationFabricsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationprotectionintents.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationprotectionintents.go index c31295fc1661..01116ec016d5 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationprotectionintents.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationprotectionintents.go @@ -74,6 +74,7 @@ func (client ReplicationProtectionIntentsClient) Create(ctx context.Context, int result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionIntentsClient", "Create", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ReplicationProtectionIntentsClient) Get(ctx context.Context, intent result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionIntentsClient", "Get", resp, "Failure responding to request") + return } return @@ -225,6 +227,7 @@ func (client ReplicationProtectionIntentsClient) List(ctx context.Context) (resu result.rpic, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionIntentsClient", "List", resp, "Failure responding to request") + return } if result.rpic.hasNextLink() && result.rpic.IsEmpty() { err = result.NextWithContext(ctx) @@ -289,6 +292,7 @@ func (client ReplicationProtectionIntentsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationProtectionIntentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationrecoveryplans.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationrecoveryplans.go index 8ca6026b34cc..6096ab472cca 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationrecoveryplans.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationrecoveryplans.go @@ -310,6 +310,7 @@ func (client ReplicationRecoveryPlansClient) Get(ctx context.Context, recoveryPl result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationRecoveryPlansClient", "Get", resp, "Failure responding to request") + return } return @@ -384,6 +385,7 @@ func (client ReplicationRecoveryPlansClient) List(ctx context.Context) (result R result.RPCVar, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationRecoveryPlansClient", "List", resp, "Failure responding to request") + return } if result.RPCVar.hasNextLink() && result.RPCVar.IsEmpty() { err = result.NextWithContext(ctx) @@ -448,6 +450,7 @@ func (client ReplicationRecoveryPlansClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationRecoveryPlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationrecoveryservicesproviders.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationrecoveryservicesproviders.go index 480f91ac05cd..ef35d5a1762c 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationrecoveryservicesproviders.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationrecoveryservicesproviders.go @@ -261,6 +261,7 @@ func (client ReplicationRecoveryServicesProvidersClient) Get(ctx context.Context result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationRecoveryServicesProvidersClient", "Get", resp, "Failure responding to request") + return } return @@ -336,6 +337,7 @@ func (client ReplicationRecoveryServicesProvidersClient) List(ctx context.Contex result.rspc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationRecoveryServicesProvidersClient", "List", resp, "Failure responding to request") + return } if result.rspc.hasNextLink() && result.rspc.IsEmpty() { err = result.NextWithContext(ctx) @@ -400,6 +402,7 @@ func (client ReplicationRecoveryServicesProvidersClient) listNextResults(ctx con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationRecoveryServicesProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -451,6 +454,7 @@ func (client ReplicationRecoveryServicesProvidersClient) ListByReplicationFabric result.rspc, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationRecoveryServicesProvidersClient", "ListByReplicationFabrics", resp, "Failure responding to request") + return } if result.rspc.hasNextLink() && result.rspc.IsEmpty() { err = result.NextWithContext(ctx) @@ -516,6 +520,7 @@ func (client ReplicationRecoveryServicesProvidersClient) listByReplicationFabric result, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationRecoveryServicesProvidersClient", "listByReplicationFabricsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationstorageclassificationmappings.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationstorageclassificationmappings.go index 994dee6d81e8..523fadb5bfe9 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationstorageclassificationmappings.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationstorageclassificationmappings.go @@ -236,6 +236,7 @@ func (client ReplicationStorageClassificationMappingsClient) Get(ctx context.Con result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationMappingsClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +313,7 @@ func (client ReplicationStorageClassificationMappingsClient) List(ctx context.Co result.scmc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationMappingsClient", "List", resp, "Failure responding to request") + return } if result.scmc.hasNextLink() && result.scmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -376,6 +378,7 @@ func (client ReplicationStorageClassificationMappingsClient) listNextResults(ctx result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationMappingsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -428,6 +431,7 @@ func (client ReplicationStorageClassificationMappingsClient) ListByReplicationSt result.scmc, err = client.ListByReplicationStorageClassificationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationMappingsClient", "ListByReplicationStorageClassifications", resp, "Failure responding to request") + return } if result.scmc.hasNextLink() && result.scmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -494,6 +498,7 @@ func (client ReplicationStorageClassificationMappingsClient) listByReplicationSt result, err = client.ListByReplicationStorageClassificationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationMappingsClient", "listByReplicationStorageClassificationsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationstorageclassifications.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationstorageclassifications.go index 271298e8dcf7..c4826e92adb8 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationstorageclassifications.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationstorageclassifications.go @@ -75,6 +75,7 @@ func (client ReplicationStorageClassificationsClient) Get(ctx context.Context, f result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationsClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client ReplicationStorageClassificationsClient) List(ctx context.Context) result.scc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationsClient", "List", resp, "Failure responding to request") + return } if result.scc.hasNextLink() && result.scc.IsEmpty() { err = result.NextWithContext(ctx) @@ -214,6 +216,7 @@ func (client ReplicationStorageClassificationsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -265,6 +268,7 @@ func (client ReplicationStorageClassificationsClient) ListByReplicationFabrics(c result.scc, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationsClient", "ListByReplicationFabrics", resp, "Failure responding to request") + return } if result.scc.hasNextLink() && result.scc.IsEmpty() { err = result.NextWithContext(ctx) @@ -330,6 +334,7 @@ func (client ReplicationStorageClassificationsClient) listByReplicationFabricsNe result, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationStorageClassificationsClient", "listByReplicationFabricsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationvaulthealth.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationvaulthealth.go index 9a95d8a2040b..59ba89c367ce 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationvaulthealth.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationvaulthealth.go @@ -70,6 +70,7 @@ func (client ReplicationVaultHealthClient) Get(ctx context.Context) (result Vaul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationVaultHealthClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationvaultsetting.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationvaultsetting.go index 7a2345246be6..c2a9eb02bc0f 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationvaultsetting.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationvaultsetting.go @@ -81,6 +81,7 @@ func (client ReplicationVaultSettingClient) Create(ctx context.Context, vaultSet result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationVaultSettingClient", "Create", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client ReplicationVaultSettingClient) Get(ctx context.Context, vaultSettin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationVaultSettingClient", "Get", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client ReplicationVaultSettingClient) List(ctx context.Context) (result Va result.vsc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationVaultSettingClient", "List", resp, "Failure responding to request") + return } if result.vsc.hasNextLink() && result.vsc.IsEmpty() { err = result.NextWithContext(ctx) @@ -296,6 +299,7 @@ func (client ReplicationVaultSettingClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationVaultSettingClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationvcenters.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationvcenters.go index 07723f4d14ea..bfd4efda92db 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationvcenters.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/replicationvcenters.go @@ -229,6 +229,7 @@ func (client ReplicationvCentersClient) Get(ctx context.Context, fabricName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationvCentersClient", "Get", resp, "Failure responding to request") + return } return @@ -304,6 +305,7 @@ func (client ReplicationvCentersClient) List(ctx context.Context) (result VCente result.vcc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationvCentersClient", "List", resp, "Failure responding to request") + return } if result.vcc.hasNextLink() && result.vcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -368,6 +370,7 @@ func (client ReplicationvCentersClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationvCentersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -419,6 +422,7 @@ func (client ReplicationvCentersClient) ListByReplicationFabrics(ctx context.Con result.vcc, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationvCentersClient", "ListByReplicationFabrics", resp, "Failure responding to request") + return } if result.vcc.hasNextLink() && result.vcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -484,6 +488,7 @@ func (client ReplicationvCentersClient) listByReplicationFabricsNextResults(ctx result, err = client.ListByReplicationFabricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.ReplicationvCentersClient", "listByReplicationFabricsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/supportedoperatingsystems.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/supportedoperatingsystems.go index 0938467d3b8e..2bd42ad0b004 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/supportedoperatingsystems.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/supportedoperatingsystems.go @@ -70,6 +70,7 @@ func (client SupportedOperatingSystemsClient) Get(ctx context.Context) (result S result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.SupportedOperatingSystemsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/targetcomputesizes.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/targetcomputesizes.go index 5fbc7fe611c5..b37fde133503 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/targetcomputesizes.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/targetcomputesizes.go @@ -75,6 +75,7 @@ func (client TargetComputeSizesClient) ListByReplicationProtectedItems(ctx conte result.tcsc, err = client.ListByReplicationProtectedItemsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.TargetComputeSizesClient", "ListByReplicationProtectedItems", resp, "Failure responding to request") + return } if result.tcsc.hasNextLink() && result.tcsc.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client TargetComputeSizesClient) listByReplicationProtectedItemsNextResult result, err = client.ListByReplicationProtectedItemsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "siterecovery.TargetComputeSizesClient", "listByReplicationProtectedItemsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/backups.go b/services/recoveryservices/mgmt/2019-05-13/backup/backups.go index 686486d702c9..12cad4794e89 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/backups.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/backups.go @@ -77,6 +77,7 @@ func (client BackupsClient) Trigger(ctx context.Context, vaultName string, resou result, err = client.TriggerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.BackupsClient", "Trigger", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/engines.go b/services/recoveryservices/mgmt/2019-05-13/backup/engines.go index 20350865e0df..bc5cf3595e30 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/engines.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/engines.go @@ -75,6 +75,7 @@ func (client EnginesClient) Get(ctx context.Context, vaultName string, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.EnginesClient", "Get", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client EnginesClient) List(ctx context.Context, vaultName string, resource result.ebrl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.EnginesClient", "List", resp, "Failure responding to request") + return } if result.ebrl.hasNextLink() && result.ebrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -230,6 +232,7 @@ func (client EnginesClient) listNextResults(ctx context.Context, lastResults Eng result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.EnginesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/exportjobsoperationresults.go b/services/recoveryservices/mgmt/2019-05-13/backup/exportjobsoperationresults.go index 71bcc0ab9767..2c410e6f09c7 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/exportjobsoperationresults.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/exportjobsoperationresults.go @@ -76,6 +76,7 @@ func (client ExportJobsOperationResultsClient) Get(ctx context.Context, vaultNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ExportJobsOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/featuresupport.go b/services/recoveryservices/mgmt/2019-05-13/backup/featuresupport.go index da9222e6b7cc..dcc1a51e8eba 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/featuresupport.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/featuresupport.go @@ -72,6 +72,7 @@ func (client FeatureSupportClient) Validate(ctx context.Context, azureRegion str result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.FeatureSupportClient", "Validate", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/itemlevelrecoveryconnections.go b/services/recoveryservices/mgmt/2019-05-13/backup/itemlevelrecoveryconnections.go index e9bed21fb440..d93702be8fce 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/itemlevelrecoveryconnections.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/itemlevelrecoveryconnections.go @@ -82,6 +82,7 @@ func (client ItemLevelRecoveryConnectionsClient) Provision(ctx context.Context, result, err = client.ProvisionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ItemLevelRecoveryConnectionsClient", "Provision", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client ItemLevelRecoveryConnectionsClient) Revoke(ctx context.Context, vau result, err = client.RevokeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ItemLevelRecoveryConnectionsClient", "Revoke", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/jobcancellations.go b/services/recoveryservices/mgmt/2019-05-13/backup/jobcancellations.go index 84d3633893e4..25fcf85a7c11 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/jobcancellations.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/jobcancellations.go @@ -75,6 +75,7 @@ func (client JobCancellationsClient) Trigger(ctx context.Context, vaultName stri result, err = client.TriggerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.JobCancellationsClient", "Trigger", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/jobdetails.go b/services/recoveryservices/mgmt/2019-05-13/backup/jobdetails.go index 45e7817b7a0e..e09bc8f12ce3 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/jobdetails.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/jobdetails.go @@ -73,6 +73,7 @@ func (client JobDetailsClient) Get(ctx context.Context, vaultName string, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.JobDetailsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/joboperationresults.go b/services/recoveryservices/mgmt/2019-05-13/backup/joboperationresults.go index bdd998e39b6b..f73438a2d7f4 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/joboperationresults.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/joboperationresults.go @@ -75,6 +75,7 @@ func (client JobOperationResultsClient) Get(ctx context.Context, vaultName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.JobOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/jobs.go b/services/recoveryservices/mgmt/2019-05-13/backup/jobs.go index cf204ccd8a48..37e598957710 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/jobs.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/jobs.go @@ -75,6 +75,7 @@ func (client JobsClient) List(ctx context.Context, vaultName string, resourceGro result.jrl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.JobsClient", "List", resp, "Failure responding to request") + return } if result.jrl.hasNextLink() && result.jrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -145,6 +146,7 @@ func (client JobsClient) listNextResults(ctx context.Context, lastResults JobRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.JobsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/jobsgroup.go b/services/recoveryservices/mgmt/2019-05-13/backup/jobsgroup.go index 744295271196..1ba42ae0282a 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/jobsgroup.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/jobsgroup.go @@ -73,6 +73,7 @@ func (client JobsGroupClient) Export(ctx context.Context, vaultName string, reso result, err = client.ExportResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.JobsGroupClient", "Export", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/operation.go b/services/recoveryservices/mgmt/2019-05-13/backup/operation.go index 47a36620c900..b5265b35b66a 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/operation.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/operation.go @@ -73,6 +73,7 @@ func (client OperationClient) Validate(ctx context.Context, vaultName string, re result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.OperationClient", "Validate", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/operationresults.go b/services/recoveryservices/mgmt/2019-05-13/backup/operationresults.go index 59fde50edef4..ee0a9296034a 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/operationresults.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/operationresults.go @@ -78,6 +78,7 @@ func (client OperationResultsClient) Get(ctx context.Context, vaultName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.OperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/operations.go b/services/recoveryservices/mgmt/2019-05-13/backup/operations.go index 80aa12f2429b..09fc238e91d2 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/operations.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result ClientDiscovery result.cdr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.OperationsClient", "List", resp, "Failure responding to request") + return } if result.cdr.hasNextLink() && result.cdr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/operationstatuses.go b/services/recoveryservices/mgmt/2019-05-13/backup/operationstatuses.go index 08d9a06925c9..bf4f662ecdaf 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/operationstatuses.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/operationstatuses.go @@ -77,6 +77,7 @@ func (client OperationStatusesClient) Get(ctx context.Context, vaultName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.OperationStatusesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/policies.go b/services/recoveryservices/mgmt/2019-05-13/backup/policies.go index eb697e632d03..1e027fed3618 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/policies.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/policies.go @@ -75,6 +75,7 @@ func (client PoliciesClient) List(ctx context.Context, vaultName string, resourc result.pprl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.PoliciesClient", "List", resp, "Failure responding to request") + return } if result.pprl.hasNextLink() && result.pprl.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client PoliciesClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.PoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/protectablecontainers.go b/services/recoveryservices/mgmt/2019-05-13/backup/protectablecontainers.go index bfd87b8d9837..6e857d51f094 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/protectablecontainers.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/protectablecontainers.go @@ -75,6 +75,7 @@ func (client ProtectableContainersClient) List(ctx context.Context, vaultName st result.pcrl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectableContainersClient", "List", resp, "Failure responding to request") + return } if result.pcrl.hasNextLink() && result.pcrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client ProtectableContainersClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectableContainersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/protectableitems.go b/services/recoveryservices/mgmt/2019-05-13/backup/protectableitems.go index 7f634fa68506..61eee3cdb2a9 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/protectableitems.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/protectableitems.go @@ -77,6 +77,7 @@ func (client ProtectableItemsClient) List(ctx context.Context, vaultName string, result.wpirl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectableItemsClient", "List", resp, "Failure responding to request") + return } if result.wpirl.hasNextLink() && result.wpirl.IsEmpty() { err = result.NextWithContext(ctx) @@ -147,6 +148,7 @@ func (client ProtectableItemsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectableItemsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/protecteditemoperationresults.go b/services/recoveryservices/mgmt/2019-05-13/backup/protecteditemoperationresults.go index 947f6c41da5e..e020fd106041 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/protecteditemoperationresults.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/protecteditemoperationresults.go @@ -77,6 +77,7 @@ func (client ProtectedItemOperationResultsClient) Get(ctx context.Context, vault result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/protecteditemoperationstatuses.go b/services/recoveryservices/mgmt/2019-05-13/backup/protecteditemoperationstatuses.go index 1012aef84cf1..00f22969346e 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/protecteditemoperationstatuses.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/protecteditemoperationstatuses.go @@ -80,6 +80,7 @@ func (client ProtectedItemOperationStatusesClient) Get(ctx context.Context, vaul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemOperationStatusesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/protecteditems.go b/services/recoveryservices/mgmt/2019-05-13/backup/protecteditems.go index 6b1de70ed6b9..91c1dec184ea 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/protecteditems.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/protecteditems.go @@ -78,6 +78,7 @@ func (client ProtectedItemsClient) CreateOrUpdate(ctx context.Context, vaultName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ProtectedItemsClient) Delete(ctx context.Context, vaultName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemsClient", "Delete", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client ProtectedItemsClient) Get(ctx context.Context, vaultName string, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/protecteditemsgroup.go b/services/recoveryservices/mgmt/2019-05-13/backup/protecteditemsgroup.go index 11b2efbaf4d9..3aef475a7a4c 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/protecteditemsgroup.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/protecteditemsgroup.go @@ -76,6 +76,7 @@ func (client ProtectedItemsGroupClient) List(ctx context.Context, vaultName stri result.pirl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemsGroupClient", "List", resp, "Failure responding to request") + return } if result.pirl.hasNextLink() && result.pirl.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client ProtectedItemsGroupClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemsGroupClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/protectioncontaineroperationresults.go b/services/recoveryservices/mgmt/2019-05-13/backup/protectioncontaineroperationresults.go index 498964e56236..e7a3cd78fb31 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/protectioncontaineroperationresults.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/protectioncontaineroperationresults.go @@ -77,6 +77,7 @@ func (client ProtectionContainerOperationResultsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainerOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/protectioncontainerrefreshoperationresults.go b/services/recoveryservices/mgmt/2019-05-13/backup/protectioncontainerrefreshoperationresults.go index a9a203d05974..b2dc4d02da1d 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/protectioncontainerrefreshoperationresults.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/protectioncontainerrefreshoperationresults.go @@ -76,6 +76,7 @@ func (client ProtectionContainerRefreshOperationResultsClient) Get(ctx context.C result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainerRefreshOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/protectioncontainers.go b/services/recoveryservices/mgmt/2019-05-13/backup/protectioncontainers.go index ec64be809ed7..9370e1073a41 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/protectioncontainers.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/protectioncontainers.go @@ -75,6 +75,7 @@ func (client ProtectionContainersClient) Get(ctx context.Context, vaultName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client ProtectionContainersClient) Inquire(ctx context.Context, vaultName result, err = client.InquireResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Inquire", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client ProtectionContainersClient) Refresh(ctx context.Context, vaultName result, err = client.RefreshResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Refresh", resp, "Failure responding to request") + return } return @@ -321,6 +324,7 @@ func (client ProtectionContainersClient) Register(ctx context.Context, vaultName result, err = client.RegisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Register", resp, "Failure responding to request") + return } return @@ -404,6 +408,7 @@ func (client ProtectionContainersClient) Unregister(ctx context.Context, vaultNa result, err = client.UnregisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Unregister", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/protectioncontainersgroup.go b/services/recoveryservices/mgmt/2019-05-13/backup/protectioncontainersgroup.go index 56a49ed18ff4..e416d3ea2a29 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/protectioncontainersgroup.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/protectioncontainersgroup.go @@ -75,6 +75,7 @@ func (client ProtectionContainersGroupClient) List(ctx context.Context, vaultNam result.pcrl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersGroupClient", "List", resp, "Failure responding to request") + return } if result.pcrl.hasNextLink() && result.pcrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client ProtectionContainersGroupClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersGroupClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/protectionintent.go b/services/recoveryservices/mgmt/2019-05-13/backup/protectionintent.go index b5123981c77a..0260602eb72b 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/protectionintent.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/protectionintent.go @@ -76,6 +76,7 @@ func (client ProtectionIntentClient) CreateOrUpdate(ctx context.Context, vaultNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionIntentClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client ProtectionIntentClient) Delete(ctx context.Context, vaultName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionIntentClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client ProtectionIntentClient) Get(ctx context.Context, vaultName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionIntentClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +317,7 @@ func (client ProtectionIntentClient) Validate(ctx context.Context, azureRegion s result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionIntentClient", "Validate", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/protectionintentgroup.go b/services/recoveryservices/mgmt/2019-05-13/backup/protectionintentgroup.go index c263f324589b..d6058c240d61 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/protectionintentgroup.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/protectionintentgroup.go @@ -76,6 +76,7 @@ func (client ProtectionIntentGroupClient) List(ctx context.Context, vaultName st result.pirl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionIntentGroupClient", "List", resp, "Failure responding to request") + return } if result.pirl.hasNextLink() && result.pirl.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client ProtectionIntentGroupClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionIntentGroupClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/protectionpolicies.go b/services/recoveryservices/mgmt/2019-05-13/backup/protectionpolicies.go index 0dec269f0a19..edc82ef4ab26 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/protectionpolicies.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/protectionpolicies.go @@ -77,6 +77,7 @@ func (client ProtectionPoliciesClient) CreateOrUpdate(ctx context.Context, vault result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client ProtectionPoliciesClient) Delete(ctx context.Context, vaultName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client ProtectionPoliciesClient) Get(ctx context.Context, vaultName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/protectionpolicyoperationresults.go b/services/recoveryservices/mgmt/2019-05-13/backup/protectionpolicyoperationresults.go index a0d91dfc2c33..2d19a940d0df 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/protectionpolicyoperationresults.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/protectionpolicyoperationresults.go @@ -75,6 +75,7 @@ func (client ProtectionPolicyOperationResultsClient) Get(ctx context.Context, va result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionPolicyOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/protectionpolicyoperationstatuses.go b/services/recoveryservices/mgmt/2019-05-13/backup/protectionpolicyoperationstatuses.go index 724bf928156a..e650ee85d100 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/protectionpolicyoperationstatuses.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/protectionpolicyoperationstatuses.go @@ -79,6 +79,7 @@ func (client ProtectionPolicyOperationStatusesClient) Get(ctx context.Context, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionPolicyOperationStatusesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/recoverypoints.go b/services/recoveryservices/mgmt/2019-05-13/backup/recoverypoints.go index e4b673aa0c16..47bb198ec675 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/recoverypoints.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/recoverypoints.go @@ -78,6 +78,7 @@ func (client RecoveryPointsClient) Get(ctx context.Context, vaultName string, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.RecoveryPointsClient", "Get", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client RecoveryPointsClient) List(ctx context.Context, vaultName string, r result.rprl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.RecoveryPointsClient", "List", resp, "Failure responding to request") + return } if result.rprl.hasNextLink() && result.rprl.IsEmpty() { err = result.NextWithContext(ctx) @@ -232,6 +234,7 @@ func (client RecoveryPointsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.RecoveryPointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/resourcestorageconfigs.go b/services/recoveryservices/mgmt/2019-05-13/backup/resourcestorageconfigs.go index 8993ab371e44..e58461746b67 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/resourcestorageconfigs.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/resourcestorageconfigs.go @@ -73,6 +73,7 @@ func (client ResourceStorageConfigsClient) Get(ctx context.Context, vaultName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ResourceStorageConfigsClient", "Get", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client ResourceStorageConfigsClient) Patch(ctx context.Context, vaultName result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ResourceStorageConfigsClient", "Patch", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client ResourceStorageConfigsClient) Update(ctx context.Context, vaultName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ResourceStorageConfigsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/resourcevaultconfigs.go b/services/recoveryservices/mgmt/2019-05-13/backup/resourcevaultconfigs.go index bcb164daf17e..5cd3c4202244 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/resourcevaultconfigs.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/resourcevaultconfigs.go @@ -73,6 +73,7 @@ func (client ResourceVaultConfigsClient) Get(ctx context.Context, vaultName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ResourceVaultConfigsClient", "Get", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client ResourceVaultConfigsClient) Update(ctx context.Context, vaultName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ResourceVaultConfigsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/restores.go b/services/recoveryservices/mgmt/2019-05-13/backup/restores.go index d25370364aa0..78f991f8381e 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/restores.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/restores.go @@ -79,6 +79,7 @@ func (client RestoresClient) Trigger(ctx context.Context, vaultName string, reso result, err = client.TriggerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.RestoresClient", "Trigger", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/securitypins.go b/services/recoveryservices/mgmt/2019-05-13/backup/securitypins.go index 475f8c57a132..66b6bee47fa0 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/securitypins.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/securitypins.go @@ -72,6 +72,7 @@ func (client SecurityPINsClient) Get(ctx context.Context, vaultName string, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.SecurityPINsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/status.go b/services/recoveryservices/mgmt/2019-05-13/backup/status.go index 114412d4870c..8a8c4902de54 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/status.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/status.go @@ -72,6 +72,7 @@ func (client StatusClient) Get(ctx context.Context, azureRegion string, paramete result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.StatusClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/usagesummaries.go b/services/recoveryservices/mgmt/2019-05-13/backup/usagesummaries.go index 961ef5b1fc46..a492bd220350 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/usagesummaries.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/usagesummaries.go @@ -74,6 +74,7 @@ func (client UsageSummariesClient) List(ctx context.Context, vaultName string, r result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.UsageSummariesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/workloaditems.go b/services/recoveryservices/mgmt/2019-05-13/backup/workloaditems.go index eba782e9ad8f..ac654b10d646 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/workloaditems.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/workloaditems.go @@ -79,6 +79,7 @@ func (client WorkloadItemsClient) List(ctx context.Context, vaultName string, re result.wirl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.WorkloadItemsClient", "List", resp, "Failure responding to request") + return } if result.wirl.hasNextLink() && result.wirl.IsEmpty() { err = result.NextWithContext(ctx) @@ -151,6 +152,7 @@ func (client WorkloadItemsClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.WorkloadItemsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/backups.go b/services/recoveryservices/mgmt/2019-06-15/backup/backups.go index 686486d702c9..12cad4794e89 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/backups.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/backups.go @@ -77,6 +77,7 @@ func (client BackupsClient) Trigger(ctx context.Context, vaultName string, resou result, err = client.TriggerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.BackupsClient", "Trigger", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/engines.go b/services/recoveryservices/mgmt/2019-06-15/backup/engines.go index 20350865e0df..bc5cf3595e30 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/engines.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/engines.go @@ -75,6 +75,7 @@ func (client EnginesClient) Get(ctx context.Context, vaultName string, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.EnginesClient", "Get", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client EnginesClient) List(ctx context.Context, vaultName string, resource result.ebrl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.EnginesClient", "List", resp, "Failure responding to request") + return } if result.ebrl.hasNextLink() && result.ebrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -230,6 +232,7 @@ func (client EnginesClient) listNextResults(ctx context.Context, lastResults Eng result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.EnginesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/exportjobsoperationresults.go b/services/recoveryservices/mgmt/2019-06-15/backup/exportjobsoperationresults.go index f6c7fe7a5802..a1d2e762b669 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/exportjobsoperationresults.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/exportjobsoperationresults.go @@ -76,6 +76,7 @@ func (client ExportJobsOperationResultsClient) Get(ctx context.Context, vaultNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ExportJobsOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/featuresupport.go b/services/recoveryservices/mgmt/2019-06-15/backup/featuresupport.go index da9222e6b7cc..dcc1a51e8eba 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/featuresupport.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/featuresupport.go @@ -72,6 +72,7 @@ func (client FeatureSupportClient) Validate(ctx context.Context, azureRegion str result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.FeatureSupportClient", "Validate", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/itemlevelrecoveryconnections.go b/services/recoveryservices/mgmt/2019-06-15/backup/itemlevelrecoveryconnections.go index e9bed21fb440..d93702be8fce 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/itemlevelrecoveryconnections.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/itemlevelrecoveryconnections.go @@ -82,6 +82,7 @@ func (client ItemLevelRecoveryConnectionsClient) Provision(ctx context.Context, result, err = client.ProvisionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ItemLevelRecoveryConnectionsClient", "Provision", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client ItemLevelRecoveryConnectionsClient) Revoke(ctx context.Context, vau result, err = client.RevokeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ItemLevelRecoveryConnectionsClient", "Revoke", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/jobcancellations.go b/services/recoveryservices/mgmt/2019-06-15/backup/jobcancellations.go index a311e07e4459..215d84d262c1 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/jobcancellations.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/jobcancellations.go @@ -75,6 +75,7 @@ func (client JobCancellationsClient) Trigger(ctx context.Context, vaultName stri result, err = client.TriggerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.JobCancellationsClient", "Trigger", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/jobdetails.go b/services/recoveryservices/mgmt/2019-06-15/backup/jobdetails.go index 6e9ac42ebba4..90cdba06b2a7 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/jobdetails.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/jobdetails.go @@ -73,6 +73,7 @@ func (client JobDetailsClient) Get(ctx context.Context, vaultName string, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.JobDetailsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/joboperationresults.go b/services/recoveryservices/mgmt/2019-06-15/backup/joboperationresults.go index 29b9fb71a38a..5dcfe17f07df 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/joboperationresults.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/joboperationresults.go @@ -75,6 +75,7 @@ func (client JobOperationResultsClient) Get(ctx context.Context, vaultName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.JobOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/jobs.go b/services/recoveryservices/mgmt/2019-06-15/backup/jobs.go index 14fdd206c4c6..8a1148471393 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/jobs.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/jobs.go @@ -75,6 +75,7 @@ func (client JobsClient) List(ctx context.Context, vaultName string, resourceGro result.jrl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.JobsClient", "List", resp, "Failure responding to request") + return } if result.jrl.hasNextLink() && result.jrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -145,6 +146,7 @@ func (client JobsClient) listNextResults(ctx context.Context, lastResults JobRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.JobsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/jobsgroup.go b/services/recoveryservices/mgmt/2019-06-15/backup/jobsgroup.go index c11523199ba6..4ee7cb7065bc 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/jobsgroup.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/jobsgroup.go @@ -73,6 +73,7 @@ func (client JobsGroupClient) Export(ctx context.Context, vaultName string, reso result, err = client.ExportResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.JobsGroupClient", "Export", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/operation.go b/services/recoveryservices/mgmt/2019-06-15/backup/operation.go index 8949c521e916..041191f8009e 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/operation.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/operation.go @@ -73,6 +73,7 @@ func (client OperationClient) Validate(ctx context.Context, vaultName string, re result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.OperationClient", "Validate", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/operationresults.go b/services/recoveryservices/mgmt/2019-06-15/backup/operationresults.go index 59fde50edef4..ee0a9296034a 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/operationresults.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/operationresults.go @@ -78,6 +78,7 @@ func (client OperationResultsClient) Get(ctx context.Context, vaultName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.OperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/operations.go b/services/recoveryservices/mgmt/2019-06-15/backup/operations.go index 80aa12f2429b..09fc238e91d2 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/operations.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result ClientDiscovery result.cdr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.OperationsClient", "List", resp, "Failure responding to request") + return } if result.cdr.hasNextLink() && result.cdr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/operationstatuses.go b/services/recoveryservices/mgmt/2019-06-15/backup/operationstatuses.go index 08d9a06925c9..bf4f662ecdaf 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/operationstatuses.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/operationstatuses.go @@ -77,6 +77,7 @@ func (client OperationStatusesClient) Get(ctx context.Context, vaultName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.OperationStatusesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/policies.go b/services/recoveryservices/mgmt/2019-06-15/backup/policies.go index e63d925c0b1d..41675f576f99 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/policies.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/policies.go @@ -75,6 +75,7 @@ func (client PoliciesClient) List(ctx context.Context, vaultName string, resourc result.pprl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.PoliciesClient", "List", resp, "Failure responding to request") + return } if result.pprl.hasNextLink() && result.pprl.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client PoliciesClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.PoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/protectablecontainers.go b/services/recoveryservices/mgmt/2019-06-15/backup/protectablecontainers.go index bfd87b8d9837..6e857d51f094 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/protectablecontainers.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/protectablecontainers.go @@ -75,6 +75,7 @@ func (client ProtectableContainersClient) List(ctx context.Context, vaultName st result.pcrl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectableContainersClient", "List", resp, "Failure responding to request") + return } if result.pcrl.hasNextLink() && result.pcrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client ProtectableContainersClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectableContainersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/protectableitems.go b/services/recoveryservices/mgmt/2019-06-15/backup/protectableitems.go index 7f634fa68506..61eee3cdb2a9 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/protectableitems.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/protectableitems.go @@ -77,6 +77,7 @@ func (client ProtectableItemsClient) List(ctx context.Context, vaultName string, result.wpirl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectableItemsClient", "List", resp, "Failure responding to request") + return } if result.wpirl.hasNextLink() && result.wpirl.IsEmpty() { err = result.NextWithContext(ctx) @@ -147,6 +148,7 @@ func (client ProtectableItemsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectableItemsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/protecteditemoperationresults.go b/services/recoveryservices/mgmt/2019-06-15/backup/protecteditemoperationresults.go index a0aa5afb6d74..d61b3cfa1c2d 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/protecteditemoperationresults.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/protecteditemoperationresults.go @@ -77,6 +77,7 @@ func (client ProtectedItemOperationResultsClient) Get(ctx context.Context, vault result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/protecteditemoperationstatuses.go b/services/recoveryservices/mgmt/2019-06-15/backup/protecteditemoperationstatuses.go index 1012aef84cf1..00f22969346e 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/protecteditemoperationstatuses.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/protecteditemoperationstatuses.go @@ -80,6 +80,7 @@ func (client ProtectedItemOperationStatusesClient) Get(ctx context.Context, vaul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemOperationStatusesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/protecteditems.go b/services/recoveryservices/mgmt/2019-06-15/backup/protecteditems.go index 9f67bda3c414..bcc1d5de6aa4 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/protecteditems.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/protecteditems.go @@ -78,6 +78,7 @@ func (client ProtectedItemsClient) CreateOrUpdate(ctx context.Context, vaultName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ProtectedItemsClient) Delete(ctx context.Context, vaultName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemsClient", "Delete", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client ProtectedItemsClient) Get(ctx context.Context, vaultName string, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/protecteditemsgroup.go b/services/recoveryservices/mgmt/2019-06-15/backup/protecteditemsgroup.go index c948d5f711cc..8898a8aad3e4 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/protecteditemsgroup.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/protecteditemsgroup.go @@ -76,6 +76,7 @@ func (client ProtectedItemsGroupClient) List(ctx context.Context, vaultName stri result.pirl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemsGroupClient", "List", resp, "Failure responding to request") + return } if result.pirl.hasNextLink() && result.pirl.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client ProtectedItemsGroupClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemsGroupClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/protectioncontaineroperationresults.go b/services/recoveryservices/mgmt/2019-06-15/backup/protectioncontaineroperationresults.go index 498964e56236..e7a3cd78fb31 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/protectioncontaineroperationresults.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/protectioncontaineroperationresults.go @@ -77,6 +77,7 @@ func (client ProtectionContainerOperationResultsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainerOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/protectioncontainerrefreshoperationresults.go b/services/recoveryservices/mgmt/2019-06-15/backup/protectioncontainerrefreshoperationresults.go index a9a203d05974..b2dc4d02da1d 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/protectioncontainerrefreshoperationresults.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/protectioncontainerrefreshoperationresults.go @@ -76,6 +76,7 @@ func (client ProtectionContainerRefreshOperationResultsClient) Get(ctx context.C result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainerRefreshOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/protectioncontainers.go b/services/recoveryservices/mgmt/2019-06-15/backup/protectioncontainers.go index ec64be809ed7..9370e1073a41 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/protectioncontainers.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/protectioncontainers.go @@ -75,6 +75,7 @@ func (client ProtectionContainersClient) Get(ctx context.Context, vaultName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client ProtectionContainersClient) Inquire(ctx context.Context, vaultName result, err = client.InquireResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Inquire", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client ProtectionContainersClient) Refresh(ctx context.Context, vaultName result, err = client.RefreshResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Refresh", resp, "Failure responding to request") + return } return @@ -321,6 +324,7 @@ func (client ProtectionContainersClient) Register(ctx context.Context, vaultName result, err = client.RegisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Register", resp, "Failure responding to request") + return } return @@ -404,6 +408,7 @@ func (client ProtectionContainersClient) Unregister(ctx context.Context, vaultNa result, err = client.UnregisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Unregister", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/protectioncontainersgroup.go b/services/recoveryservices/mgmt/2019-06-15/backup/protectioncontainersgroup.go index 56a49ed18ff4..e416d3ea2a29 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/protectioncontainersgroup.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/protectioncontainersgroup.go @@ -75,6 +75,7 @@ func (client ProtectionContainersGroupClient) List(ctx context.Context, vaultNam result.pcrl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersGroupClient", "List", resp, "Failure responding to request") + return } if result.pcrl.hasNextLink() && result.pcrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client ProtectionContainersGroupClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersGroupClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/protectionintent.go b/services/recoveryservices/mgmt/2019-06-15/backup/protectionintent.go index b5123981c77a..0260602eb72b 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/protectionintent.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/protectionintent.go @@ -76,6 +76,7 @@ func (client ProtectionIntentClient) CreateOrUpdate(ctx context.Context, vaultNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionIntentClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client ProtectionIntentClient) Delete(ctx context.Context, vaultName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionIntentClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client ProtectionIntentClient) Get(ctx context.Context, vaultName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionIntentClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +317,7 @@ func (client ProtectionIntentClient) Validate(ctx context.Context, azureRegion s result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionIntentClient", "Validate", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/protectionintentgroup.go b/services/recoveryservices/mgmt/2019-06-15/backup/protectionintentgroup.go index c263f324589b..d6058c240d61 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/protectionintentgroup.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/protectionintentgroup.go @@ -76,6 +76,7 @@ func (client ProtectionIntentGroupClient) List(ctx context.Context, vaultName st result.pirl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionIntentGroupClient", "List", resp, "Failure responding to request") + return } if result.pirl.hasNextLink() && result.pirl.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client ProtectionIntentGroupClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionIntentGroupClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/protectionpolicies.go b/services/recoveryservices/mgmt/2019-06-15/backup/protectionpolicies.go index b8a0b6afe235..87c87abe33ef 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/protectionpolicies.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/protectionpolicies.go @@ -77,6 +77,7 @@ func (client ProtectionPoliciesClient) CreateOrUpdate(ctx context.Context, vault result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client ProtectionPoliciesClient) Delete(ctx context.Context, vaultName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client ProtectionPoliciesClient) Get(ctx context.Context, vaultName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/protectionpolicyoperationresults.go b/services/recoveryservices/mgmt/2019-06-15/backup/protectionpolicyoperationresults.go index 913cb797dd69..eee1c406e8ab 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/protectionpolicyoperationresults.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/protectionpolicyoperationresults.go @@ -75,6 +75,7 @@ func (client ProtectionPolicyOperationResultsClient) Get(ctx context.Context, va result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionPolicyOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/protectionpolicyoperationstatuses.go b/services/recoveryservices/mgmt/2019-06-15/backup/protectionpolicyoperationstatuses.go index 724bf928156a..e650ee85d100 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/protectionpolicyoperationstatuses.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/protectionpolicyoperationstatuses.go @@ -79,6 +79,7 @@ func (client ProtectionPolicyOperationStatusesClient) Get(ctx context.Context, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionPolicyOperationStatusesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/recoverypoints.go b/services/recoveryservices/mgmt/2019-06-15/backup/recoverypoints.go index 835894e5de54..82aad0dbbca8 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/recoverypoints.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/recoverypoints.go @@ -78,6 +78,7 @@ func (client RecoveryPointsClient) Get(ctx context.Context, vaultName string, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.RecoveryPointsClient", "Get", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client RecoveryPointsClient) List(ctx context.Context, vaultName string, r result.rprl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.RecoveryPointsClient", "List", resp, "Failure responding to request") + return } if result.rprl.hasNextLink() && result.rprl.IsEmpty() { err = result.NextWithContext(ctx) @@ -232,6 +234,7 @@ func (client RecoveryPointsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.RecoveryPointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/resourcestorageconfigs.go b/services/recoveryservices/mgmt/2019-06-15/backup/resourcestorageconfigs.go index 8993ab371e44..e58461746b67 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/resourcestorageconfigs.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/resourcestorageconfigs.go @@ -73,6 +73,7 @@ func (client ResourceStorageConfigsClient) Get(ctx context.Context, vaultName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ResourceStorageConfigsClient", "Get", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client ResourceStorageConfigsClient) Patch(ctx context.Context, vaultName result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ResourceStorageConfigsClient", "Patch", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client ResourceStorageConfigsClient) Update(ctx context.Context, vaultName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ResourceStorageConfigsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/resourcevaultconfigs.go b/services/recoveryservices/mgmt/2019-06-15/backup/resourcevaultconfigs.go index c0e4ebc5ba94..7e3660a0f6bf 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/resourcevaultconfigs.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/resourcevaultconfigs.go @@ -73,6 +73,7 @@ func (client ResourceVaultConfigsClient) Get(ctx context.Context, vaultName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ResourceVaultConfigsClient", "Get", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client ResourceVaultConfigsClient) Put(ctx context.Context, vaultName stri result, err = client.PutResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ResourceVaultConfigsClient", "Put", resp, "Failure responding to request") + return } return @@ -227,6 +229,7 @@ func (client ResourceVaultConfigsClient) Update(ctx context.Context, vaultName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ResourceVaultConfigsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/restores.go b/services/recoveryservices/mgmt/2019-06-15/backup/restores.go index 17aefaddb5a5..48527ea6f0ff 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/restores.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/restores.go @@ -79,6 +79,7 @@ func (client RestoresClient) Trigger(ctx context.Context, vaultName string, reso result, err = client.TriggerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.RestoresClient", "Trigger", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/securitypins.go b/services/recoveryservices/mgmt/2019-06-15/backup/securitypins.go index 475f8c57a132..66b6bee47fa0 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/securitypins.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/securitypins.go @@ -72,6 +72,7 @@ func (client SecurityPINsClient) Get(ctx context.Context, vaultName string, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.SecurityPINsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/status.go b/services/recoveryservices/mgmt/2019-06-15/backup/status.go index 114412d4870c..8a8c4902de54 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/status.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/status.go @@ -72,6 +72,7 @@ func (client StatusClient) Get(ctx context.Context, azureRegion string, paramete result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.StatusClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/usagesummaries.go b/services/recoveryservices/mgmt/2019-06-15/backup/usagesummaries.go index 961ef5b1fc46..a492bd220350 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/usagesummaries.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/usagesummaries.go @@ -74,6 +74,7 @@ func (client UsageSummariesClient) List(ctx context.Context, vaultName string, r result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.UsageSummariesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/workloaditems.go b/services/recoveryservices/mgmt/2019-06-15/backup/workloaditems.go index eba782e9ad8f..ac654b10d646 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/workloaditems.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/workloaditems.go @@ -79,6 +79,7 @@ func (client WorkloadItemsClient) List(ctx context.Context, vaultName string, re result.wirl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.WorkloadItemsClient", "List", resp, "Failure responding to request") + return } if result.wirl.hasNextLink() && result.wirl.IsEmpty() { err = result.NextWithContext(ctx) @@ -151,6 +152,7 @@ func (client WorkloadItemsClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.WorkloadItemsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/backups.go b/services/recoveryservices/mgmt/2020-02-02/backup/backups.go index 686486d702c9..12cad4794e89 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/backups.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/backups.go @@ -77,6 +77,7 @@ func (client BackupsClient) Trigger(ctx context.Context, vaultName string, resou result, err = client.TriggerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.BackupsClient", "Trigger", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/client.go b/services/recoveryservices/mgmt/2020-02-02/backup/client.go index 2f1c245b9f78..b144e35bdd02 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/client.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/client.go @@ -88,6 +88,7 @@ func (client BaseClient) GetOperationStatus(ctx context.Context, vaultName strin result, err = client.GetOperationStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.BaseClient", "GetOperationStatus", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/engines.go b/services/recoveryservices/mgmt/2020-02-02/backup/engines.go index 20350865e0df..bc5cf3595e30 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/engines.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/engines.go @@ -75,6 +75,7 @@ func (client EnginesClient) Get(ctx context.Context, vaultName string, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.EnginesClient", "Get", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client EnginesClient) List(ctx context.Context, vaultName string, resource result.ebrl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.EnginesClient", "List", resp, "Failure responding to request") + return } if result.ebrl.hasNextLink() && result.ebrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -230,6 +232,7 @@ func (client EnginesClient) listNextResults(ctx context.Context, lastResults Eng result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.EnginesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/exportjobsoperationresults.go b/services/recoveryservices/mgmt/2020-02-02/backup/exportjobsoperationresults.go index f6c7fe7a5802..a1d2e762b669 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/exportjobsoperationresults.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/exportjobsoperationresults.go @@ -76,6 +76,7 @@ func (client ExportJobsOperationResultsClient) Get(ctx context.Context, vaultNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ExportJobsOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/featuresupport.go b/services/recoveryservices/mgmt/2020-02-02/backup/featuresupport.go index da9222e6b7cc..dcc1a51e8eba 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/featuresupport.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/featuresupport.go @@ -72,6 +72,7 @@ func (client FeatureSupportClient) Validate(ctx context.Context, azureRegion str result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.FeatureSupportClient", "Validate", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/itemlevelrecoveryconnections.go b/services/recoveryservices/mgmt/2020-02-02/backup/itemlevelrecoveryconnections.go index e9bed21fb440..d93702be8fce 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/itemlevelrecoveryconnections.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/itemlevelrecoveryconnections.go @@ -82,6 +82,7 @@ func (client ItemLevelRecoveryConnectionsClient) Provision(ctx context.Context, result, err = client.ProvisionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ItemLevelRecoveryConnectionsClient", "Provision", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client ItemLevelRecoveryConnectionsClient) Revoke(ctx context.Context, vau result, err = client.RevokeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ItemLevelRecoveryConnectionsClient", "Revoke", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/jobcancellations.go b/services/recoveryservices/mgmt/2020-02-02/backup/jobcancellations.go index a311e07e4459..215d84d262c1 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/jobcancellations.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/jobcancellations.go @@ -75,6 +75,7 @@ func (client JobCancellationsClient) Trigger(ctx context.Context, vaultName stri result, err = client.TriggerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.JobCancellationsClient", "Trigger", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/jobdetails.go b/services/recoveryservices/mgmt/2020-02-02/backup/jobdetails.go index 6e9ac42ebba4..90cdba06b2a7 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/jobdetails.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/jobdetails.go @@ -73,6 +73,7 @@ func (client JobDetailsClient) Get(ctx context.Context, vaultName string, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.JobDetailsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/joboperationresults.go b/services/recoveryservices/mgmt/2020-02-02/backup/joboperationresults.go index 29b9fb71a38a..5dcfe17f07df 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/joboperationresults.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/joboperationresults.go @@ -75,6 +75,7 @@ func (client JobOperationResultsClient) Get(ctx context.Context, vaultName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.JobOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/jobs.go b/services/recoveryservices/mgmt/2020-02-02/backup/jobs.go index 14fdd206c4c6..8a1148471393 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/jobs.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/jobs.go @@ -75,6 +75,7 @@ func (client JobsClient) List(ctx context.Context, vaultName string, resourceGro result.jrl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.JobsClient", "List", resp, "Failure responding to request") + return } if result.jrl.hasNextLink() && result.jrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -145,6 +146,7 @@ func (client JobsClient) listNextResults(ctx context.Context, lastResults JobRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.JobsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/jobsgroup.go b/services/recoveryservices/mgmt/2020-02-02/backup/jobsgroup.go index c11523199ba6..4ee7cb7065bc 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/jobsgroup.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/jobsgroup.go @@ -73,6 +73,7 @@ func (client JobsGroupClient) Export(ctx context.Context, vaultName string, reso result, err = client.ExportResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.JobsGroupClient", "Export", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/operation.go b/services/recoveryservices/mgmt/2020-02-02/backup/operation.go index 8949c521e916..041191f8009e 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/operation.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/operation.go @@ -73,6 +73,7 @@ func (client OperationClient) Validate(ctx context.Context, vaultName string, re result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.OperationClient", "Validate", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/operationresults.go b/services/recoveryservices/mgmt/2020-02-02/backup/operationresults.go index 59fde50edef4..ee0a9296034a 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/operationresults.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/operationresults.go @@ -78,6 +78,7 @@ func (client OperationResultsClient) Get(ctx context.Context, vaultName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.OperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/operations.go b/services/recoveryservices/mgmt/2020-02-02/backup/operations.go index 80aa12f2429b..09fc238e91d2 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/operations.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result ClientDiscovery result.cdr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.OperationsClient", "List", resp, "Failure responding to request") + return } if result.cdr.hasNextLink() && result.cdr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/operationstatuses.go b/services/recoveryservices/mgmt/2020-02-02/backup/operationstatuses.go index 08d9a06925c9..bf4f662ecdaf 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/operationstatuses.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/operationstatuses.go @@ -77,6 +77,7 @@ func (client OperationStatusesClient) Get(ctx context.Context, vaultName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.OperationStatusesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/policies.go b/services/recoveryservices/mgmt/2020-02-02/backup/policies.go index e63d925c0b1d..41675f576f99 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/policies.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/policies.go @@ -75,6 +75,7 @@ func (client PoliciesClient) List(ctx context.Context, vaultName string, resourc result.pprl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.PoliciesClient", "List", resp, "Failure responding to request") + return } if result.pprl.hasNextLink() && result.pprl.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client PoliciesClient) listNextResults(ctx context.Context, lastResults Pr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.PoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/privateendpointconnection.go b/services/recoveryservices/mgmt/2020-02-02/backup/privateendpointconnection.go index 91481369f774..41717c62ad65 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/privateendpointconnection.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/privateendpointconnection.go @@ -150,6 +150,7 @@ func (client PrivateEndpointConnectionClient) Get(ctx context.Context, vaultName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.PrivateEndpointConnectionClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/protectablecontainers.go b/services/recoveryservices/mgmt/2020-02-02/backup/protectablecontainers.go index bfd87b8d9837..6e857d51f094 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/protectablecontainers.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/protectablecontainers.go @@ -75,6 +75,7 @@ func (client ProtectableContainersClient) List(ctx context.Context, vaultName st result.pcrl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectableContainersClient", "List", resp, "Failure responding to request") + return } if result.pcrl.hasNextLink() && result.pcrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client ProtectableContainersClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectableContainersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/protectableitems.go b/services/recoveryservices/mgmt/2020-02-02/backup/protectableitems.go index 7f634fa68506..61eee3cdb2a9 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/protectableitems.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/protectableitems.go @@ -77,6 +77,7 @@ func (client ProtectableItemsClient) List(ctx context.Context, vaultName string, result.wpirl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectableItemsClient", "List", resp, "Failure responding to request") + return } if result.wpirl.hasNextLink() && result.wpirl.IsEmpty() { err = result.NextWithContext(ctx) @@ -147,6 +148,7 @@ func (client ProtectableItemsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectableItemsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/protecteditemoperationresults.go b/services/recoveryservices/mgmt/2020-02-02/backup/protecteditemoperationresults.go index a0aa5afb6d74..d61b3cfa1c2d 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/protecteditemoperationresults.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/protecteditemoperationresults.go @@ -77,6 +77,7 @@ func (client ProtectedItemOperationResultsClient) Get(ctx context.Context, vault result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/protecteditemoperationstatuses.go b/services/recoveryservices/mgmt/2020-02-02/backup/protecteditemoperationstatuses.go index 1012aef84cf1..00f22969346e 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/protecteditemoperationstatuses.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/protecteditemoperationstatuses.go @@ -80,6 +80,7 @@ func (client ProtectedItemOperationStatusesClient) Get(ctx context.Context, vaul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemOperationStatusesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/protecteditems.go b/services/recoveryservices/mgmt/2020-02-02/backup/protecteditems.go index 9f67bda3c414..bcc1d5de6aa4 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/protecteditems.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/protecteditems.go @@ -78,6 +78,7 @@ func (client ProtectedItemsClient) CreateOrUpdate(ctx context.Context, vaultName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client ProtectedItemsClient) Delete(ctx context.Context, vaultName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemsClient", "Delete", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client ProtectedItemsClient) Get(ctx context.Context, vaultName string, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/protecteditemsgroup.go b/services/recoveryservices/mgmt/2020-02-02/backup/protecteditemsgroup.go index c948d5f711cc..8898a8aad3e4 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/protecteditemsgroup.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/protecteditemsgroup.go @@ -76,6 +76,7 @@ func (client ProtectedItemsGroupClient) List(ctx context.Context, vaultName stri result.pirl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemsGroupClient", "List", resp, "Failure responding to request") + return } if result.pirl.hasNextLink() && result.pirl.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client ProtectedItemsGroupClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectedItemsGroupClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/protectioncontaineroperationresults.go b/services/recoveryservices/mgmt/2020-02-02/backup/protectioncontaineroperationresults.go index 498964e56236..e7a3cd78fb31 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/protectioncontaineroperationresults.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/protectioncontaineroperationresults.go @@ -77,6 +77,7 @@ func (client ProtectionContainerOperationResultsClient) Get(ctx context.Context, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainerOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/protectioncontainerrefreshoperationresults.go b/services/recoveryservices/mgmt/2020-02-02/backup/protectioncontainerrefreshoperationresults.go index a9a203d05974..b2dc4d02da1d 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/protectioncontainerrefreshoperationresults.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/protectioncontainerrefreshoperationresults.go @@ -76,6 +76,7 @@ func (client ProtectionContainerRefreshOperationResultsClient) Get(ctx context.C result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainerRefreshOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/protectioncontainers.go b/services/recoveryservices/mgmt/2020-02-02/backup/protectioncontainers.go index ec64be809ed7..9370e1073a41 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/protectioncontainers.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/protectioncontainers.go @@ -75,6 +75,7 @@ func (client ProtectionContainersClient) Get(ctx context.Context, vaultName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client ProtectionContainersClient) Inquire(ctx context.Context, vaultName result, err = client.InquireResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Inquire", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client ProtectionContainersClient) Refresh(ctx context.Context, vaultName result, err = client.RefreshResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Refresh", resp, "Failure responding to request") + return } return @@ -321,6 +324,7 @@ func (client ProtectionContainersClient) Register(ctx context.Context, vaultName result, err = client.RegisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Register", resp, "Failure responding to request") + return } return @@ -404,6 +408,7 @@ func (client ProtectionContainersClient) Unregister(ctx context.Context, vaultNa result, err = client.UnregisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Unregister", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/protectioncontainersgroup.go b/services/recoveryservices/mgmt/2020-02-02/backup/protectioncontainersgroup.go index 56a49ed18ff4..e416d3ea2a29 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/protectioncontainersgroup.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/protectioncontainersgroup.go @@ -75,6 +75,7 @@ func (client ProtectionContainersGroupClient) List(ctx context.Context, vaultNam result.pcrl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersGroupClient", "List", resp, "Failure responding to request") + return } if result.pcrl.hasNextLink() && result.pcrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client ProtectionContainersGroupClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionContainersGroupClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/protectionintent.go b/services/recoveryservices/mgmt/2020-02-02/backup/protectionintent.go index b5123981c77a..0260602eb72b 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/protectionintent.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/protectionintent.go @@ -76,6 +76,7 @@ func (client ProtectionIntentClient) CreateOrUpdate(ctx context.Context, vaultNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionIntentClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client ProtectionIntentClient) Delete(ctx context.Context, vaultName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionIntentClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client ProtectionIntentClient) Get(ctx context.Context, vaultName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionIntentClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +317,7 @@ func (client ProtectionIntentClient) Validate(ctx context.Context, azureRegion s result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionIntentClient", "Validate", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/protectionintentgroup.go b/services/recoveryservices/mgmt/2020-02-02/backup/protectionintentgroup.go index c263f324589b..d6058c240d61 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/protectionintentgroup.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/protectionintentgroup.go @@ -76,6 +76,7 @@ func (client ProtectionIntentGroupClient) List(ctx context.Context, vaultName st result.pirl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionIntentGroupClient", "List", resp, "Failure responding to request") + return } if result.pirl.hasNextLink() && result.pirl.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client ProtectionIntentGroupClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionIntentGroupClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/protectionpolicies.go b/services/recoveryservices/mgmt/2020-02-02/backup/protectionpolicies.go index b8a0b6afe235..87c87abe33ef 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/protectionpolicies.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/protectionpolicies.go @@ -77,6 +77,7 @@ func (client ProtectionPoliciesClient) CreateOrUpdate(ctx context.Context, vault result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client ProtectionPoliciesClient) Delete(ctx context.Context, vaultName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client ProtectionPoliciesClient) Get(ctx context.Context, vaultName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/protectionpolicyoperationresults.go b/services/recoveryservices/mgmt/2020-02-02/backup/protectionpolicyoperationresults.go index 913cb797dd69..eee1c406e8ab 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/protectionpolicyoperationresults.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/protectionpolicyoperationresults.go @@ -75,6 +75,7 @@ func (client ProtectionPolicyOperationResultsClient) Get(ctx context.Context, va result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionPolicyOperationResultsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/protectionpolicyoperationstatuses.go b/services/recoveryservices/mgmt/2020-02-02/backup/protectionpolicyoperationstatuses.go index 724bf928156a..e650ee85d100 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/protectionpolicyoperationstatuses.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/protectionpolicyoperationstatuses.go @@ -79,6 +79,7 @@ func (client ProtectionPolicyOperationStatusesClient) Get(ctx context.Context, v result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ProtectionPolicyOperationStatusesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/recoverypoints.go b/services/recoveryservices/mgmt/2020-02-02/backup/recoverypoints.go index 835894e5de54..82aad0dbbca8 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/recoverypoints.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/recoverypoints.go @@ -78,6 +78,7 @@ func (client RecoveryPointsClient) Get(ctx context.Context, vaultName string, re result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.RecoveryPointsClient", "Get", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client RecoveryPointsClient) List(ctx context.Context, vaultName string, r result.rprl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.RecoveryPointsClient", "List", resp, "Failure responding to request") + return } if result.rprl.hasNextLink() && result.rprl.IsEmpty() { err = result.NextWithContext(ctx) @@ -232,6 +234,7 @@ func (client RecoveryPointsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.RecoveryPointsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/resourcestorageconfigs.go b/services/recoveryservices/mgmt/2020-02-02/backup/resourcestorageconfigs.go index 8993ab371e44..e58461746b67 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/resourcestorageconfigs.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/resourcestorageconfigs.go @@ -73,6 +73,7 @@ func (client ResourceStorageConfigsClient) Get(ctx context.Context, vaultName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ResourceStorageConfigsClient", "Get", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client ResourceStorageConfigsClient) Patch(ctx context.Context, vaultName result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ResourceStorageConfigsClient", "Patch", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client ResourceStorageConfigsClient) Update(ctx context.Context, vaultName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ResourceStorageConfigsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/resourcevaultconfigs.go b/services/recoveryservices/mgmt/2020-02-02/backup/resourcevaultconfigs.go index c0e4ebc5ba94..7e3660a0f6bf 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/resourcevaultconfigs.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/resourcevaultconfigs.go @@ -73,6 +73,7 @@ func (client ResourceVaultConfigsClient) Get(ctx context.Context, vaultName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ResourceVaultConfigsClient", "Get", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client ResourceVaultConfigsClient) Put(ctx context.Context, vaultName stri result, err = client.PutResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ResourceVaultConfigsClient", "Put", resp, "Failure responding to request") + return } return @@ -227,6 +229,7 @@ func (client ResourceVaultConfigsClient) Update(ctx context.Context, vaultName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.ResourceVaultConfigsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/restores.go b/services/recoveryservices/mgmt/2020-02-02/backup/restores.go index 17aefaddb5a5..48527ea6f0ff 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/restores.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/restores.go @@ -79,6 +79,7 @@ func (client RestoresClient) Trigger(ctx context.Context, vaultName string, reso result, err = client.TriggerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.RestoresClient", "Trigger", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/securitypins.go b/services/recoveryservices/mgmt/2020-02-02/backup/securitypins.go index 475f8c57a132..66b6bee47fa0 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/securitypins.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/securitypins.go @@ -72,6 +72,7 @@ func (client SecurityPINsClient) Get(ctx context.Context, vaultName string, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.SecurityPINsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/status.go b/services/recoveryservices/mgmt/2020-02-02/backup/status.go index 114412d4870c..8a8c4902de54 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/status.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/status.go @@ -72,6 +72,7 @@ func (client StatusClient) Get(ctx context.Context, azureRegion string, paramete result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.StatusClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/usagesummaries.go b/services/recoveryservices/mgmt/2020-02-02/backup/usagesummaries.go index 961ef5b1fc46..a492bd220350 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/usagesummaries.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/usagesummaries.go @@ -74,6 +74,7 @@ func (client UsageSummariesClient) List(ctx context.Context, vaultName string, r result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.UsageSummariesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/workloaditems.go b/services/recoveryservices/mgmt/2020-02-02/backup/workloaditems.go index eba782e9ad8f..ac654b10d646 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/workloaditems.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/workloaditems.go @@ -79,6 +79,7 @@ func (client WorkloadItemsClient) List(ctx context.Context, vaultName string, re result.wirl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.WorkloadItemsClient", "List", resp, "Failure responding to request") + return } if result.wirl.hasNextLink() && result.wirl.IsEmpty() { err = result.NextWithContext(ctx) @@ -151,6 +152,7 @@ func (client WorkloadItemsClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "backup.WorkloadItemsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/redhatopenshift/mgmt/2020-04-30/redhatopenshift/openshiftclusters.go b/services/redhatopenshift/mgmt/2020-04-30/redhatopenshift/openshiftclusters.go index 73cbce41f0c2..ed45f3fa5bcc 100644 --- a/services/redhatopenshift/mgmt/2020-04-30/redhatopenshift/openshiftclusters.go +++ b/services/redhatopenshift/mgmt/2020-04-30/redhatopenshift/openshiftclusters.go @@ -256,6 +256,7 @@ func (client OpenShiftClustersClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redhatopenshift.OpenShiftClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -335,6 +336,7 @@ func (client OpenShiftClustersClient) List(ctx context.Context) (result OpenShif result.oscl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redhatopenshift.OpenShiftClustersClient", "List", resp, "Failure responding to request") + return } if result.oscl.hasNextLink() && result.oscl.IsEmpty() { err = result.NextWithContext(ctx) @@ -397,6 +399,7 @@ func (client OpenShiftClustersClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redhatopenshift.OpenShiftClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -458,6 +461,7 @@ func (client OpenShiftClustersClient) ListByResourceGroup(ctx context.Context, r result.oscl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redhatopenshift.OpenShiftClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.oscl.hasNextLink() && result.oscl.IsEmpty() { err = result.NextWithContext(ctx) @@ -521,6 +525,7 @@ func (client OpenShiftClustersClient) listByResourceGroupNextResults(ctx context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redhatopenshift.OpenShiftClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -582,6 +587,7 @@ func (client OpenShiftClustersClient) ListCredentials(ctx context.Context, resou result, err = client.ListCredentialsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redhatopenshift.OpenShiftClustersClient", "ListCredentials", resp, "Failure responding to request") + return } return diff --git a/services/redhatopenshift/mgmt/2020-04-30/redhatopenshift/operations.go b/services/redhatopenshift/mgmt/2020-04-30/redhatopenshift/operations.go index 153b0ab79cd0..dc1b11d5db2a 100644 --- a/services/redhatopenshift/mgmt/2020-04-30/redhatopenshift/operations.go +++ b/services/redhatopenshift/mgmt/2020-04-30/redhatopenshift/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListPa result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redhatopenshift.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redhatopenshift.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/redis/mgmt/2015-08-01/redis/redis.go b/services/redis/mgmt/2015-08-01/redis/redis.go index 903f9af1862b..eeed9a0fbc40 100644 --- a/services/redis/mgmt/2015-08-01/redis/redis.go +++ b/services/redis/mgmt/2015-08-01/redis/redis.go @@ -83,6 +83,7 @@ func (client Client) CreateOrUpdate(ctx context.Context, resourceGroupName strin result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client Client) Delete(ctx context.Context, resourceGroupName string, name result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "Delete", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client Client) ForceReboot(ctx context.Context, resourceGroupName string, result, err = client.ForceRebootResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "ForceReboot", resp, "Failure responding to request") + return } return @@ -312,6 +315,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, name str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "Get", resp, "Failure responding to request") + return } return @@ -385,6 +389,7 @@ func (client Client) List(ctx context.Context) (result ListResultPage, err error result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -447,6 +452,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -498,6 +504,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -561,6 +568,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -612,6 +620,7 @@ func (client Client) ListKeys(ctx context.Context, resourceGroupName string, nam result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "ListKeys", resp, "Failure responding to request") + return } return @@ -689,6 +698,7 @@ func (client Client) RegenerateKey(ctx context.Context, resourceGroupName string result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "RegenerateKey", resp, "Failure responding to request") + return } return diff --git a/services/redis/mgmt/2016-04-01/redis/firewallrule.go b/services/redis/mgmt/2016-04-01/redis/firewallrule.go index 0571ccaba418..c511f5e86125 100644 --- a/services/redis/mgmt/2016-04-01/redis/firewallrule.go +++ b/services/redis/mgmt/2016-04-01/redis/firewallrule.go @@ -84,6 +84,7 @@ func (client FirewallRuleClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.FirewallRuleClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client FirewallRuleClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.FirewallRuleClient", "Delete", resp, "Failure responding to request") + return } return @@ -242,6 +244,7 @@ func (client FirewallRuleClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.FirewallRuleClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/redis/mgmt/2016-04-01/redis/firewallrules.go b/services/redis/mgmt/2016-04-01/redis/firewallrules.go index 1e930284fe9a..04bdfb5f38b1 100644 --- a/services/redis/mgmt/2016-04-01/redis/firewallrules.go +++ b/services/redis/mgmt/2016-04-01/redis/firewallrules.go @@ -73,6 +73,7 @@ func (client FirewallRulesClient) List(ctx context.Context, resourceGroupName st result.frlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "List", resp, "Failure responding to request") + return } if result.frlr.hasNextLink() && result.frlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -137,6 +138,7 @@ func (client FirewallRulesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/redis/mgmt/2016-04-01/redis/operations.go b/services/redis/mgmt/2016-04-01/redis/operations.go index f913c8868c33..d38be8855ff3 100644 --- a/services/redis/mgmt/2016-04-01/redis/operations.go +++ b/services/redis/mgmt/2016-04-01/redis/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/redis/mgmt/2016-04-01/redis/patchschedules.go b/services/redis/mgmt/2016-04-01/redis/patchschedules.go index 6f0981964cf4..f3190c5cc20e 100644 --- a/services/redis/mgmt/2016-04-01/redis/patchschedules.go +++ b/services/redis/mgmt/2016-04-01/redis/patchschedules.go @@ -81,6 +81,7 @@ func (client PatchSchedulesClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client PatchSchedulesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client PatchSchedulesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/redis/mgmt/2016-04-01/redis/redis.go b/services/redis/mgmt/2016-04-01/redis/redis.go index 768e1db84b2c..7cc7c6074125 100644 --- a/services/redis/mgmt/2016-04-01/redis/redis.go +++ b/services/redis/mgmt/2016-04-01/redis/redis.go @@ -320,6 +320,7 @@ func (client Client) ForceReboot(ctx context.Context, resourceGroupName string, result, err = client.ForceRebootResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "ForceReboot", resp, "Failure responding to request") + return } return @@ -397,6 +398,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, name str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "Get", resp, "Failure responding to request") + return } return @@ -553,6 +555,7 @@ func (client Client) List(ctx context.Context) (result ListResultPage, err error result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -615,6 +618,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -666,6 +670,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -729,6 +734,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -780,6 +786,7 @@ func (client Client) ListKeys(ctx context.Context, resourceGroupName string, nam result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "ListKeys", resp, "Failure responding to request") + return } return @@ -856,6 +863,7 @@ func (client Client) RegenerateKey(ctx context.Context, resourceGroupName string result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -934,6 +942,7 @@ func (client Client) Update(ctx context.Context, resourceGroupName string, name result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "Update", resp, "Failure responding to request") + return } return diff --git a/services/redis/mgmt/2017-02-01/redis/firewallrules.go b/services/redis/mgmt/2017-02-01/redis/firewallrules.go index 855d653d86aa..01d2cae23b39 100644 --- a/services/redis/mgmt/2017-02-01/redis/firewallrules.go +++ b/services/redis/mgmt/2017-02-01/redis/firewallrules.go @@ -84,6 +84,7 @@ func (client FirewallRulesClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client FirewallRulesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client FirewallRulesClient) ListByRedisResource(ctx context.Context, resou result.frlr, err = client.ListByRedisResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "ListByRedisResource", resp, "Failure responding to request") + return } if result.frlr.hasNextLink() && result.frlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +384,7 @@ func (client FirewallRulesClient) listByRedisResourceNextResults(ctx context.Con result, err = client.ListByRedisResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "listByRedisResourceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/redis/mgmt/2017-02-01/redis/linkedserver.go b/services/redis/mgmt/2017-02-01/redis/linkedserver.go index 9fafd97d943f..429b5dbfa100 100644 --- a/services/redis/mgmt/2017-02-01/redis/linkedserver.go +++ b/services/redis/mgmt/2017-02-01/redis/linkedserver.go @@ -163,6 +163,7 @@ func (client LinkedServerClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "Delete", resp, "Failure responding to request") + return } return @@ -239,6 +240,7 @@ func (client LinkedServerClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +317,7 @@ func (client LinkedServerClient) List(ctx context.Context, resourceGroupName str result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/redis/mgmt/2017-02-01/redis/operations.go b/services/redis/mgmt/2017-02-01/redis/operations.go index 2eb9dfe3c261..63c6d37f56e7 100644 --- a/services/redis/mgmt/2017-02-01/redis/operations.go +++ b/services/redis/mgmt/2017-02-01/redis/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/redis/mgmt/2017-02-01/redis/patchschedules.go b/services/redis/mgmt/2017-02-01/redis/patchschedules.go index d21e5a689853..af9746b60c3c 100644 --- a/services/redis/mgmt/2017-02-01/redis/patchschedules.go +++ b/services/redis/mgmt/2017-02-01/redis/patchschedules.go @@ -81,6 +81,7 @@ func (client PatchSchedulesClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client PatchSchedulesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client PatchSchedulesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/redis/mgmt/2017-02-01/redis/redis.go b/services/redis/mgmt/2017-02-01/redis/redis.go index 0dab74a62e33..9619764b56c1 100644 --- a/services/redis/mgmt/2017-02-01/redis/redis.go +++ b/services/redis/mgmt/2017-02-01/redis/redis.go @@ -320,6 +320,7 @@ func (client Client) ForceReboot(ctx context.Context, resourceGroupName string, result, err = client.ForceRebootResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "ForceReboot", resp, "Failure responding to request") + return } return @@ -397,6 +398,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, name str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "Get", resp, "Failure responding to request") + return } return @@ -553,6 +555,7 @@ func (client Client) List(ctx context.Context) (result ListResultPage, err error result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -615,6 +618,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -666,6 +670,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -729,6 +734,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -780,6 +786,7 @@ func (client Client) ListKeys(ctx context.Context, resourceGroupName string, nam result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "ListKeys", resp, "Failure responding to request") + return } return @@ -856,6 +863,7 @@ func (client Client) RegenerateKey(ctx context.Context, resourceGroupName string result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -934,6 +942,7 @@ func (client Client) Update(ctx context.Context, resourceGroupName string, name result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "Update", resp, "Failure responding to request") + return } return diff --git a/services/redis/mgmt/2017-10-01/redis/firewallrules.go b/services/redis/mgmt/2017-10-01/redis/firewallrules.go index e4cb4ac9c4a1..e86d30b8d3a4 100644 --- a/services/redis/mgmt/2017-10-01/redis/firewallrules.go +++ b/services/redis/mgmt/2017-10-01/redis/firewallrules.go @@ -84,6 +84,7 @@ func (client FirewallRulesClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client FirewallRulesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client FirewallRulesClient) ListByRedisResource(ctx context.Context, resou result.frlr, err = client.ListByRedisResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "ListByRedisResource", resp, "Failure responding to request") + return } if result.frlr.hasNextLink() && result.frlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +384,7 @@ func (client FirewallRulesClient) listByRedisResourceNextResults(ctx context.Con result, err = client.ListByRedisResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "listByRedisResourceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/redis/mgmt/2017-10-01/redis/linkedserver.go b/services/redis/mgmt/2017-10-01/redis/linkedserver.go index 63554129fc11..9cfd058b2cf3 100644 --- a/services/redis/mgmt/2017-10-01/redis/linkedserver.go +++ b/services/redis/mgmt/2017-10-01/redis/linkedserver.go @@ -163,6 +163,7 @@ func (client LinkedServerClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "Delete", resp, "Failure responding to request") + return } return @@ -239,6 +240,7 @@ func (client LinkedServerClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +318,7 @@ func (client LinkedServerClient) List(ctx context.Context, resourceGroupName str result.lswpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "List", resp, "Failure responding to request") + return } if result.lswpl.hasNextLink() && result.lswpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +383,7 @@ func (client LinkedServerClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/redis/mgmt/2017-10-01/redis/operations.go b/services/redis/mgmt/2017-10-01/redis/operations.go index 34224a65b5e7..443fdffe20f9 100644 --- a/services/redis/mgmt/2017-10-01/redis/operations.go +++ b/services/redis/mgmt/2017-10-01/redis/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/redis/mgmt/2017-10-01/redis/patchschedules.go b/services/redis/mgmt/2017-10-01/redis/patchschedules.go index e219453c875b..53c3a486b2ea 100644 --- a/services/redis/mgmt/2017-10-01/redis/patchschedules.go +++ b/services/redis/mgmt/2017-10-01/redis/patchschedules.go @@ -81,6 +81,7 @@ func (client PatchSchedulesClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client PatchSchedulesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client PatchSchedulesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +314,7 @@ func (client PatchSchedulesClient) ListByRedisResource(ctx context.Context, reso result.pslr, err = client.ListByRedisResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "ListByRedisResource", resp, "Failure responding to request") + return } if result.pslr.hasNextLink() && result.pslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +379,7 @@ func (client PatchSchedulesClient) listByRedisResourceNextResults(ctx context.Co result, err = client.ListByRedisResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "listByRedisResourceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/redis/mgmt/2017-10-01/redis/redis.go b/services/redis/mgmt/2017-10-01/redis/redis.go index 16c4262ae6c3..efad19bfb608 100644 --- a/services/redis/mgmt/2017-10-01/redis/redis.go +++ b/services/redis/mgmt/2017-10-01/redis/redis.go @@ -80,6 +80,7 @@ func (client Client) CheckNameAvailability(ctx context.Context, parameters Check result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -406,6 +407,7 @@ func (client Client) ForceReboot(ctx context.Context, resourceGroupName string, result, err = client.ForceRebootResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "ForceReboot", resp, "Failure responding to request") + return } return @@ -483,6 +485,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, name str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "Get", resp, "Failure responding to request") + return } return @@ -639,6 +642,7 @@ func (client Client) List(ctx context.Context) (result ListResultPage, err error result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -701,6 +705,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -752,6 +757,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -815,6 +821,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -866,6 +873,7 @@ func (client Client) ListKeys(ctx context.Context, resourceGroupName string, nam result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "ListKeys", resp, "Failure responding to request") + return } return @@ -942,6 +950,7 @@ func (client Client) ListUpgradeNotifications(ctx context.Context, resourceGroup result, err = client.ListUpgradeNotificationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "ListUpgradeNotifications", resp, "Failure responding to request") + return } return @@ -1019,6 +1028,7 @@ func (client Client) RegenerateKey(ctx context.Context, resourceGroupName string result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -1097,6 +1107,7 @@ func (client Client) Update(ctx context.Context, resourceGroupName string, name result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "Update", resp, "Failure responding to request") + return } return diff --git a/services/redis/mgmt/2018-03-01/redis/firewallrules.go b/services/redis/mgmt/2018-03-01/redis/firewallrules.go index 71f6ebc59595..b6307cf8c6b5 100644 --- a/services/redis/mgmt/2018-03-01/redis/firewallrules.go +++ b/services/redis/mgmt/2018-03-01/redis/firewallrules.go @@ -84,6 +84,7 @@ func (client FirewallRulesClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client FirewallRulesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client FirewallRulesClient) ListByRedisResource(ctx context.Context, resou result.frlr, err = client.ListByRedisResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "ListByRedisResource", resp, "Failure responding to request") + return } if result.frlr.hasNextLink() && result.frlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +384,7 @@ func (client FirewallRulesClient) listByRedisResourceNextResults(ctx context.Con result, err = client.ListByRedisResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "listByRedisResourceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/redis/mgmt/2018-03-01/redis/linkedserver.go b/services/redis/mgmt/2018-03-01/redis/linkedserver.go index 0ef06eb19b35..c04ca2290edf 100644 --- a/services/redis/mgmt/2018-03-01/redis/linkedserver.go +++ b/services/redis/mgmt/2018-03-01/redis/linkedserver.go @@ -163,6 +163,7 @@ func (client LinkedServerClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "Delete", resp, "Failure responding to request") + return } return @@ -239,6 +240,7 @@ func (client LinkedServerClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +318,7 @@ func (client LinkedServerClient) List(ctx context.Context, resourceGroupName str result.lswpl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "List", resp, "Failure responding to request") + return } if result.lswpl.hasNextLink() && result.lswpl.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +383,7 @@ func (client LinkedServerClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/redis/mgmt/2018-03-01/redis/operations.go b/services/redis/mgmt/2018-03-01/redis/operations.go index 21c76e78cff4..1f88f8359487 100644 --- a/services/redis/mgmt/2018-03-01/redis/operations.go +++ b/services/redis/mgmt/2018-03-01/redis/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/redis/mgmt/2018-03-01/redis/patchschedules.go b/services/redis/mgmt/2018-03-01/redis/patchschedules.go index 0090f6511f46..f8cdb90762f0 100644 --- a/services/redis/mgmt/2018-03-01/redis/patchschedules.go +++ b/services/redis/mgmt/2018-03-01/redis/patchschedules.go @@ -81,6 +81,7 @@ func (client PatchSchedulesClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client PatchSchedulesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client PatchSchedulesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +314,7 @@ func (client PatchSchedulesClient) ListByRedisResource(ctx context.Context, reso result.pslr, err = client.ListByRedisResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "ListByRedisResource", resp, "Failure responding to request") + return } if result.pslr.hasNextLink() && result.pslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -375,6 +379,7 @@ func (client PatchSchedulesClient) listByRedisResourceNextResults(ctx context.Co result, err = client.ListByRedisResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "listByRedisResourceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/redis/mgmt/2018-03-01/redis/redis.go b/services/redis/mgmt/2018-03-01/redis/redis.go index 30bc43588c91..0e112d816eb3 100644 --- a/services/redis/mgmt/2018-03-01/redis/redis.go +++ b/services/redis/mgmt/2018-03-01/redis/redis.go @@ -80,6 +80,7 @@ func (client Client) CheckNameAvailability(ctx context.Context, parameters Check result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -406,6 +407,7 @@ func (client Client) ForceReboot(ctx context.Context, resourceGroupName string, result, err = client.ForceRebootResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "ForceReboot", resp, "Failure responding to request") + return } return @@ -483,6 +485,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, name str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "Get", resp, "Failure responding to request") + return } return @@ -639,6 +642,7 @@ func (client Client) List(ctx context.Context) (result ListResultPage, err error result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -701,6 +705,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -752,6 +757,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -815,6 +821,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -866,6 +873,7 @@ func (client Client) ListKeys(ctx context.Context, resourceGroupName string, nam result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "ListKeys", resp, "Failure responding to request") + return } return @@ -942,6 +950,7 @@ func (client Client) ListUpgradeNotifications(ctx context.Context, resourceGroup result, err = client.ListUpgradeNotificationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "ListUpgradeNotifications", resp, "Failure responding to request") + return } return @@ -1019,6 +1028,7 @@ func (client Client) RegenerateKey(ctx context.Context, resourceGroupName string result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -1097,6 +1107,7 @@ func (client Client) Update(ctx context.Context, resourceGroupName string, name result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "redis.Client", "Update", resp, "Failure responding to request") + return } return diff --git a/services/relay/mgmt/2016-07-01/relay/hybridconnections.go b/services/relay/mgmt/2016-07-01/relay/hybridconnections.go index 6bd16db29613..a9be37e77494 100644 --- a/services/relay/mgmt/2016-07-01/relay/hybridconnections.go +++ b/services/relay/mgmt/2016-07-01/relay/hybridconnections.go @@ -96,6 +96,7 @@ func (client HybridConnectionsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -198,6 +199,7 @@ func (client HybridConnectionsClient) CreateOrUpdateAuthorizationRule(ctx contex result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -291,6 +293,7 @@ func (client HybridConnectionsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -384,6 +387,7 @@ func (client HybridConnectionsClient) DeleteAuthorizationRule(ctx context.Contex result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -474,6 +478,7 @@ func (client HybridConnectionsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -568,6 +573,7 @@ func (client HybridConnectionsClient) GetAuthorizationRule(ctx context.Context, result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -660,6 +666,7 @@ func (client HybridConnectionsClient) ListAuthorizationRules(ctx context.Context result.arlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.arlr.hasNextLink() && result.arlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -725,6 +732,7 @@ func (client HybridConnectionsClient) listAuthorizationRulesNextResults(ctx cont result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -787,6 +795,7 @@ func (client HybridConnectionsClient) ListByNamespace(ctx context.Context, resou result.hclr, err = client.ListByNamespaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "ListByNamespace", resp, "Failure responding to request") + return } if result.hclr.hasNextLink() && result.hclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -851,6 +860,7 @@ func (client HybridConnectionsClient) listByNamespaceNextResults(ctx context.Con result, err = client.ListByNamespaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "listByNamespaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -920,6 +930,7 @@ func (client HybridConnectionsClient) ListKeys(ctx context.Context, resourceGrou result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -1012,6 +1023,7 @@ func (client HybridConnectionsClient) ListPostAuthorizationRules(ctx context.Con result.arlr, err = client.ListPostAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "ListPostAuthorizationRules", resp, "Failure responding to request") + return } if result.arlr.hasNextLink() && result.arlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1077,6 +1089,7 @@ func (client HybridConnectionsClient) listPostAuthorizationRulesNextResults(ctx result, err = client.ListPostAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "listPostAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1146,6 +1159,7 @@ func (client HybridConnectionsClient) PostAuthorizationRule(ctx context.Context, result, err = client.PostAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "PostAuthorizationRule", resp, "Failure responding to request") + return } return @@ -1242,6 +1256,7 @@ func (client HybridConnectionsClient) RegenerateKeys(ctx context.Context, resour result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "RegenerateKeys", resp, "Failure responding to request") + return } return diff --git a/services/relay/mgmt/2016-07-01/relay/namespaces.go b/services/relay/mgmt/2016-07-01/relay/namespaces.go index da3e09f708ff..81c97f50d97c 100644 --- a/services/relay/mgmt/2016-07-01/relay/namespaces.go +++ b/services/relay/mgmt/2016-07-01/relay/namespaces.go @@ -78,6 +78,7 @@ func (client NamespacesClient) CheckNameAvailabilityMethod(ctx context.Context, result, err = client.CheckNameAvailabilityMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "CheckNameAvailabilityMethod", resp, "Failure responding to request") + return } return @@ -266,6 +267,7 @@ func (client NamespacesClient) CreateOrUpdateAuthorizationRule(ctx context.Conte result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -442,6 +444,7 @@ func (client NamespacesClient) DeleteAuthorizationRule(ctx context.Context, reso result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -527,6 +530,7 @@ func (client NamespacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "Get", resp, "Failure responding to request") + return } return @@ -616,6 +620,7 @@ func (client NamespacesClient) GetAuthorizationRule(ctx context.Context, resourc result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -690,6 +695,7 @@ func (client NamespacesClient) List(ctx context.Context) (result NamespaceListRe result.nlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "List", resp, "Failure responding to request") + return } if result.nlr.hasNextLink() && result.nlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -752,6 +758,7 @@ func (client NamespacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -814,6 +821,7 @@ func (client NamespacesClient) ListAuthorizationRules(ctx context.Context, resou result.arlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.arlr.hasNextLink() && result.arlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -878,6 +886,7 @@ func (client NamespacesClient) listAuthorizationRulesNextResults(ctx context.Con result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -936,6 +945,7 @@ func (client NamespacesClient) ListByResourceGroup(ctx context.Context, resource result.nlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.nlr.hasNextLink() && result.nlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -999,6 +1009,7 @@ func (client NamespacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1064,6 +1075,7 @@ func (client NamespacesClient) ListKeys(ctx context.Context, resourceGroupName s result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -1151,6 +1163,7 @@ func (client NamespacesClient) ListPostAuthorizationRules(ctx context.Context, r result.arlr, err = client.ListPostAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "ListPostAuthorizationRules", resp, "Failure responding to request") + return } if result.arlr.hasNextLink() && result.arlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1215,6 +1228,7 @@ func (client NamespacesClient) listPostAuthorizationRulesNextResults(ctx context result, err = client.ListPostAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "listPostAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1280,6 +1294,7 @@ func (client NamespacesClient) PostAuthorizationRule(ctx context.Context, resour result, err = client.PostAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "PostAuthorizationRule", resp, "Failure responding to request") + return } return @@ -1371,6 +1386,7 @@ func (client NamespacesClient) RegenerateKeys(ctx context.Context, resourceGroup result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "RegenerateKeys", resp, "Failure responding to request") + return } return @@ -1461,6 +1477,7 @@ func (client NamespacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/relay/mgmt/2016-07-01/relay/operations.go b/services/relay/mgmt/2016-07-01/relay/operations.go index be7ff6d3061b..f82d841aacdf 100644 --- a/services/relay/mgmt/2016-07-01/relay/operations.go +++ b/services/relay/mgmt/2016-07-01/relay/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/relay/mgmt/2016-07-01/relay/wcfrelays.go b/services/relay/mgmt/2016-07-01/relay/wcfrelays.go index 31d767444676..48040eee9fcb 100644 --- a/services/relay/mgmt/2016-07-01/relay/wcfrelays.go +++ b/services/relay/mgmt/2016-07-01/relay/wcfrelays.go @@ -88,6 +88,7 @@ func (client WCFRelaysClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client WCFRelaysClient) CreateOrUpdateAuthorizationRule(ctx context.Contex result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -283,6 +285,7 @@ func (client WCFRelaysClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "Delete", resp, "Failure responding to request") + return } return @@ -376,6 +379,7 @@ func (client WCFRelaysClient) DeleteAuthorizationRule(ctx context.Context, resou result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -466,6 +470,7 @@ func (client WCFRelaysClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "Get", resp, "Failure responding to request") + return } return @@ -560,6 +565,7 @@ func (client WCFRelaysClient) GetAuthorizationRule(ctx context.Context, resource result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -652,6 +658,7 @@ func (client WCFRelaysClient) ListAuthorizationRules(ctx context.Context, resour result.arlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.arlr.hasNextLink() && result.arlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -717,6 +724,7 @@ func (client WCFRelaysClient) listAuthorizationRulesNextResults(ctx context.Cont result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -779,6 +787,7 @@ func (client WCFRelaysClient) ListByNamespace(ctx context.Context, resourceGroup result.wrlr, err = client.ListByNamespaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "ListByNamespace", resp, "Failure responding to request") + return } if result.wrlr.hasNextLink() && result.wrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -843,6 +852,7 @@ func (client WCFRelaysClient) listByNamespaceNextResults(ctx context.Context, la result, err = client.ListByNamespaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "listByNamespaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -912,6 +922,7 @@ func (client WCFRelaysClient) ListKeys(ctx context.Context, resourceGroupName st result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -1004,6 +1015,7 @@ func (client WCFRelaysClient) ListPostAuthorizationRules(ctx context.Context, re result.arlr, err = client.ListPostAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "ListPostAuthorizationRules", resp, "Failure responding to request") + return } if result.arlr.hasNextLink() && result.arlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1069,6 +1081,7 @@ func (client WCFRelaysClient) listPostAuthorizationRulesNextResults(ctx context. result, err = client.ListPostAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "listPostAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1138,6 +1151,7 @@ func (client WCFRelaysClient) PostAuthorizationRule(ctx context.Context, resourc result, err = client.PostAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "PostAuthorizationRule", resp, "Failure responding to request") + return } return @@ -1234,6 +1248,7 @@ func (client WCFRelaysClient) RegenerateKeys(ctx context.Context, resourceGroupN result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "RegenerateKeys", resp, "Failure responding to request") + return } return diff --git a/services/relay/mgmt/2017-04-01/relay/hybridconnections.go b/services/relay/mgmt/2017-04-01/relay/hybridconnections.go index eec51ec37a93..974466e0a0c8 100644 --- a/services/relay/mgmt/2017-04-01/relay/hybridconnections.go +++ b/services/relay/mgmt/2017-04-01/relay/hybridconnections.go @@ -95,6 +95,7 @@ func (client HybridConnectionsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -195,6 +196,7 @@ func (client HybridConnectionsClient) CreateOrUpdateAuthorizationRule(ctx contex result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -287,6 +289,7 @@ func (client HybridConnectionsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -378,6 +381,7 @@ func (client HybridConnectionsClient) DeleteAuthorizationRule(ctx context.Contex result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -467,6 +471,7 @@ func (client HybridConnectionsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -559,6 +564,7 @@ func (client HybridConnectionsClient) GetAuthorizationRule(ctx context.Context, result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -650,6 +656,7 @@ func (client HybridConnectionsClient) ListAuthorizationRules(ctx context.Context result.arlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.arlr.hasNextLink() && result.arlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -715,6 +722,7 @@ func (client HybridConnectionsClient) listAuthorizationRulesNextResults(ctx cont result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -777,6 +785,7 @@ func (client HybridConnectionsClient) ListByNamespace(ctx context.Context, resou result.hclr, err = client.ListByNamespaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "ListByNamespace", resp, "Failure responding to request") + return } if result.hclr.hasNextLink() && result.hclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -841,6 +850,7 @@ func (client HybridConnectionsClient) listByNamespaceNextResults(ctx context.Con result, err = client.ListByNamespaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "listByNamespaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -908,6 +918,7 @@ func (client HybridConnectionsClient) ListKeys(ctx context.Context, resourceGrou result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -1002,6 +1013,7 @@ func (client HybridConnectionsClient) RegenerateKeys(ctx context.Context, resour result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.HybridConnectionsClient", "RegenerateKeys", resp, "Failure responding to request") + return } return diff --git a/services/relay/mgmt/2017-04-01/relay/namespaces.go b/services/relay/mgmt/2017-04-01/relay/namespaces.go index 605722fcf280..4e24f09b778c 100644 --- a/services/relay/mgmt/2017-04-01/relay/namespaces.go +++ b/services/relay/mgmt/2017-04-01/relay/namespaces.go @@ -78,6 +78,7 @@ func (client NamespacesClient) CheckNameAvailabilityMethod(ctx context.Context, result, err = client.CheckNameAvailabilityMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "CheckNameAvailabilityMethod", resp, "Failure responding to request") + return } return @@ -263,6 +264,7 @@ func (client NamespacesClient) CreateOrUpdateAuthorizationRule(ctx context.Conte result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -438,6 +440,7 @@ func (client NamespacesClient) DeleteAuthorizationRule(ctx context.Context, reso result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -523,6 +526,7 @@ func (client NamespacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "Get", resp, "Failure responding to request") + return } return @@ -611,6 +615,7 @@ func (client NamespacesClient) GetAuthorizationRule(ctx context.Context, resourc result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -685,6 +690,7 @@ func (client NamespacesClient) List(ctx context.Context) (result NamespaceListRe result.nlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "List", resp, "Failure responding to request") + return } if result.nlr.hasNextLink() && result.nlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -747,6 +753,7 @@ func (client NamespacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -809,6 +816,7 @@ func (client NamespacesClient) ListAuthorizationRules(ctx context.Context, resou result.arlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.arlr.hasNextLink() && result.arlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -873,6 +881,7 @@ func (client NamespacesClient) listAuthorizationRulesNextResults(ctx context.Con result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -931,6 +940,7 @@ func (client NamespacesClient) ListByResourceGroup(ctx context.Context, resource result.nlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.nlr.hasNextLink() && result.nlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -994,6 +1004,7 @@ func (client NamespacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1058,6 +1069,7 @@ func (client NamespacesClient) ListKeys(ctx context.Context, resourceGroupName s result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -1148,6 +1160,7 @@ func (client NamespacesClient) RegenerateKeys(ctx context.Context, resourceGroup result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "RegenerateKeys", resp, "Failure responding to request") + return } return @@ -1238,6 +1251,7 @@ func (client NamespacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/relay/mgmt/2017-04-01/relay/operations.go b/services/relay/mgmt/2017-04-01/relay/operations.go index 7c145a0c27c5..dac55900d2fc 100644 --- a/services/relay/mgmt/2017-04-01/relay/operations.go +++ b/services/relay/mgmt/2017-04-01/relay/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/relay/mgmt/2017-04-01/relay/wcfrelays.go b/services/relay/mgmt/2017-04-01/relay/wcfrelays.go index 0ab83a65c48b..13e8e6e24150 100644 --- a/services/relay/mgmt/2017-04-01/relay/wcfrelays.go +++ b/services/relay/mgmt/2017-04-01/relay/wcfrelays.go @@ -94,6 +94,7 @@ func (client WCFRelaysClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -194,6 +195,7 @@ func (client WCFRelaysClient) CreateOrUpdateAuthorizationRule(ctx context.Contex result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -286,6 +288,7 @@ func (client WCFRelaysClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "Delete", resp, "Failure responding to request") + return } return @@ -377,6 +380,7 @@ func (client WCFRelaysClient) DeleteAuthorizationRule(ctx context.Context, resou result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -466,6 +470,7 @@ func (client WCFRelaysClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "Get", resp, "Failure responding to request") + return } return @@ -558,6 +563,7 @@ func (client WCFRelaysClient) GetAuthorizationRule(ctx context.Context, resource result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -649,6 +655,7 @@ func (client WCFRelaysClient) ListAuthorizationRules(ctx context.Context, resour result.arlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.arlr.hasNextLink() && result.arlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -714,6 +721,7 @@ func (client WCFRelaysClient) listAuthorizationRulesNextResults(ctx context.Cont result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -776,6 +784,7 @@ func (client WCFRelaysClient) ListByNamespace(ctx context.Context, resourceGroup result.wrlr, err = client.ListByNamespaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "ListByNamespace", resp, "Failure responding to request") + return } if result.wrlr.hasNextLink() && result.wrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -840,6 +849,7 @@ func (client WCFRelaysClient) listByNamespaceNextResults(ctx context.Context, la result, err = client.ListByNamespaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "listByNamespaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -907,6 +917,7 @@ func (client WCFRelaysClient) ListKeys(ctx context.Context, resourceGroupName st result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -1001,6 +1012,7 @@ func (client WCFRelaysClient) RegenerateKeys(ctx context.Context, resourceGroupN result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "relay.WCFRelaysClient", "RegenerateKeys", resp, "Failure responding to request") + return } return diff --git a/services/reservations/mgmt/2017-11-01/reservations/client.go b/services/reservations/mgmt/2017-11-01/reservations/client.go index efd8692a65bb..89fd5cf39b25 100644 --- a/services/reservations/mgmt/2017-11-01/reservations/client.go +++ b/services/reservations/mgmt/2017-11-01/reservations/client.go @@ -83,6 +83,7 @@ func (client BaseClient) GetAppliedReservationList(ctx context.Context, subscrip result, err = client.GetAppliedReservationListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.BaseClient", "GetAppliedReservationList", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client BaseClient) GetCatalog(ctx context.Context, subscriptionID string) result, err = client.GetCatalogResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.BaseClient", "GetCatalog", resp, "Failure responding to request") + return } return diff --git a/services/reservations/mgmt/2017-11-01/reservations/operation.go b/services/reservations/mgmt/2017-11-01/reservations/operation.go index 45bbb29c4f7d..18c51b63b5de 100644 --- a/services/reservations/mgmt/2017-11-01/reservations/operation.go +++ b/services/reservations/mgmt/2017-11-01/reservations/operation.go @@ -70,6 +70,7 @@ func (client OperationClient) List(ctx context.Context) (result OperationListPag result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.OperationClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationClient) listNextResults(ctx context.Context, lastResults O result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.OperationClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/reservations/mgmt/2017-11-01/reservations/order.go b/services/reservations/mgmt/2017-11-01/reservations/order.go index 1e0fc26ef3e5..e90431df953d 100644 --- a/services/reservations/mgmt/2017-11-01/reservations/order.go +++ b/services/reservations/mgmt/2017-11-01/reservations/order.go @@ -71,6 +71,7 @@ func (client OrderClient) Get(ctx context.Context, reservationOrderID string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.OrderClient", "Get", resp, "Failure responding to request") + return } return @@ -142,6 +143,7 @@ func (client OrderClient) List(ctx context.Context) (result OrderListPage, err e result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.OrderClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -200,6 +202,7 @@ func (client OrderClient) listNextResults(ctx context.Context, lastResults Order result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.OrderClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/reservations/mgmt/2017-11-01/reservations/reservation.go b/services/reservations/mgmt/2017-11-01/reservations/reservation.go index 6dd6909a06ed..f24a7c22ee64 100644 --- a/services/reservations/mgmt/2017-11-01/reservations/reservation.go +++ b/services/reservations/mgmt/2017-11-01/reservations/reservation.go @@ -72,6 +72,7 @@ func (client Client) Get(ctx context.Context, reservationID string, reservationO result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.Client", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client Client) List(ctx context.Context, reservationOrderID string) (resul result.l, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.Client", "List", resp, "Failure responding to request") + return } if result.l.hasNextLink() && result.l.IsEmpty() { err = result.NextWithContext(ctx) @@ -208,6 +210,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults List) (res result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -260,6 +263,7 @@ func (client Client) ListRevisions(ctx context.Context, reservationID string, re result.l, err = client.ListRevisionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.Client", "ListRevisions", resp, "Failure responding to request") + return } if result.l.hasNextLink() && result.l.IsEmpty() { err = result.NextWithContext(ctx) @@ -323,6 +327,7 @@ func (client Client) listRevisionsNextResults(ctx context.Context, lastResults L result, err = client.ListRevisionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "reservations.Client", "listRevisionsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resourcegraph/mgmt/2019-04-01/resourcegraph/client.go b/services/resourcegraph/mgmt/2019-04-01/resourcegraph/client.go index a29b96eca97d..e0895106a4a5 100644 --- a/services/resourcegraph/mgmt/2019-04-01/resourcegraph/client.go +++ b/services/resourcegraph/mgmt/2019-04-01/resourcegraph/client.go @@ -99,6 +99,7 @@ func (client BaseClient) Resources(ctx context.Context, query QueryRequest) (res result, err = client.ResourcesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcegraph.BaseClient", "Resources", resp, "Failure responding to request") + return } return diff --git a/services/resourcegraph/mgmt/2019-04-01/resourcegraph/operations.go b/services/resourcegraph/mgmt/2019-04-01/resourcegraph/operations.go index 63f450b8482d..3adc00189aa9 100644 --- a/services/resourcegraph/mgmt/2019-04-01/resourcegraph/operations.go +++ b/services/resourcegraph/mgmt/2019-04-01/resourcegraph/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcegraph.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/resourcehealth/mgmt/2015-01-01/resourcehealth/availabilitystatuses.go b/services/resourcehealth/mgmt/2015-01-01/resourcehealth/availabilitystatuses.go index f40c74651d34..21df3ea256bc 100644 --- a/services/resourcehealth/mgmt/2015-01-01/resourcehealth/availabilitystatuses.go +++ b/services/resourcehealth/mgmt/2015-01-01/resourcehealth/availabilitystatuses.go @@ -79,6 +79,7 @@ func (client AvailabilityStatusesClient) GetByResource(ctx context.Context, reso result, err = client.GetByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.AvailabilityStatusesClient", "GetByResource", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client AvailabilityStatusesClient) List(ctx context.Context, resourceURI s result.aslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.AvailabilityStatusesClient", "List", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -234,6 +236,7 @@ func (client AvailabilityStatusesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.AvailabilityStatusesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -289,6 +292,7 @@ func (client AvailabilityStatusesClient) ListByResourceGroup(ctx context.Context result.aslr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.AvailabilityStatusesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -358,6 +362,7 @@ func (client AvailabilityStatusesClient) listByResourceGroupNextResults(ctx cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.AvailabilityStatusesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +417,7 @@ func (client AvailabilityStatusesClient) ListBySubscriptionID(ctx context.Contex result.aslr, err = client.ListBySubscriptionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.AvailabilityStatusesClient", "ListBySubscriptionID", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -480,6 +486,7 @@ func (client AvailabilityStatusesClient) listBySubscriptionIDNextResults(ctx con result, err = client.ListBySubscriptionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.AvailabilityStatusesClient", "listBySubscriptionIDNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resourcehealth/mgmt/2015-01-01/resourcehealth/childavailabilitystatuses.go b/services/resourcehealth/mgmt/2015-01-01/resourcehealth/childavailabilitystatuses.go index dbd872042888..f53584bbeada 100644 --- a/services/resourcehealth/mgmt/2015-01-01/resourcehealth/childavailabilitystatuses.go +++ b/services/resourcehealth/mgmt/2015-01-01/resourcehealth/childavailabilitystatuses.go @@ -77,6 +77,7 @@ func (client ChildAvailabilityStatusesClient) GetByResource(ctx context.Context, result, err = client.GetByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.ChildAvailabilityStatusesClient", "GetByResource", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client ChildAvailabilityStatusesClient) List(ctx context.Context, resource result.aslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.ChildAvailabilityStatusesClient", "List", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -230,6 +232,7 @@ func (client ChildAvailabilityStatusesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.ChildAvailabilityStatusesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resourcehealth/mgmt/2015-01-01/resourcehealth/childresources.go b/services/resourcehealth/mgmt/2015-01-01/resourcehealth/childresources.go index 7c7a49bb557c..0ead74ad5e12 100644 --- a/services/resourcehealth/mgmt/2015-01-01/resourcehealth/childresources.go +++ b/services/resourcehealth/mgmt/2015-01-01/resourcehealth/childresources.go @@ -78,6 +78,7 @@ func (client ChildResourcesClient) List(ctx context.Context, resourceURI string, result.aslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.ChildResourcesClient", "List", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client ChildResourcesClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.ChildResourcesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resourcehealth/mgmt/2015-01-01/resourcehealth/operations.go b/services/resourcehealth/mgmt/2015-01-01/resourcehealth/operations.go index dac951adfdd9..823d923bc7e7 100644 --- a/services/resourcehealth/mgmt/2015-01-01/resourcehealth/operations.go +++ b/services/resourcehealth/mgmt/2015-01-01/resourcehealth/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/resourcehealth/mgmt/2017-07-01/resourcehealth/availabilitystatuses.go b/services/resourcehealth/mgmt/2017-07-01/resourcehealth/availabilitystatuses.go index 7721050334d7..935bdd471255 100644 --- a/services/resourcehealth/mgmt/2017-07-01/resourcehealth/availabilitystatuses.go +++ b/services/resourcehealth/mgmt/2017-07-01/resourcehealth/availabilitystatuses.go @@ -79,6 +79,7 @@ func (client AvailabilityStatusesClient) GetByResource(ctx context.Context, reso result, err = client.GetByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.AvailabilityStatusesClient", "GetByResource", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client AvailabilityStatusesClient) List(ctx context.Context, resourceURI s result.aslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.AvailabilityStatusesClient", "List", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -234,6 +236,7 @@ func (client AvailabilityStatusesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.AvailabilityStatusesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -289,6 +292,7 @@ func (client AvailabilityStatusesClient) ListByResourceGroup(ctx context.Context result.aslr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.AvailabilityStatusesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -358,6 +362,7 @@ func (client AvailabilityStatusesClient) listByResourceGroupNextResults(ctx cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.AvailabilityStatusesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -412,6 +417,7 @@ func (client AvailabilityStatusesClient) ListBySubscriptionID(ctx context.Contex result.aslr, err = client.ListBySubscriptionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.AvailabilityStatusesClient", "ListBySubscriptionID", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -480,6 +486,7 @@ func (client AvailabilityStatusesClient) listBySubscriptionIDNextResults(ctx con result, err = client.ListBySubscriptionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.AvailabilityStatusesClient", "listBySubscriptionIDNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resourcehealth/mgmt/2017-07-01/resourcehealth/childavailabilitystatuses.go b/services/resourcehealth/mgmt/2017-07-01/resourcehealth/childavailabilitystatuses.go index e3c68794dbed..8fd1ff91cd1d 100644 --- a/services/resourcehealth/mgmt/2017-07-01/resourcehealth/childavailabilitystatuses.go +++ b/services/resourcehealth/mgmt/2017-07-01/resourcehealth/childavailabilitystatuses.go @@ -77,6 +77,7 @@ func (client ChildAvailabilityStatusesClient) GetByResource(ctx context.Context, result, err = client.GetByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.ChildAvailabilityStatusesClient", "GetByResource", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client ChildAvailabilityStatusesClient) List(ctx context.Context, resource result.aslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.ChildAvailabilityStatusesClient", "List", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -230,6 +232,7 @@ func (client ChildAvailabilityStatusesClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.ChildAvailabilityStatusesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resourcehealth/mgmt/2017-07-01/resourcehealth/childresources.go b/services/resourcehealth/mgmt/2017-07-01/resourcehealth/childresources.go index 7279fcc69c37..6153cdcbea63 100644 --- a/services/resourcehealth/mgmt/2017-07-01/resourcehealth/childresources.go +++ b/services/resourcehealth/mgmt/2017-07-01/resourcehealth/childresources.go @@ -78,6 +78,7 @@ func (client ChildResourcesClient) List(ctx context.Context, resourceURI string, result.aslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.ChildResourcesClient", "List", resp, "Failure responding to request") + return } if result.aslr.hasNextLink() && result.aslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -146,6 +147,7 @@ func (client ChildResourcesClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.ChildResourcesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resourcehealth/mgmt/2017-07-01/resourcehealth/emergingissues.go b/services/resourcehealth/mgmt/2017-07-01/resourcehealth/emergingissues.go index 3b2774361265..0ed5e9b28b5a 100644 --- a/services/resourcehealth/mgmt/2017-07-01/resourcehealth/emergingissues.go +++ b/services/resourcehealth/mgmt/2017-07-01/resourcehealth/emergingissues.go @@ -69,6 +69,7 @@ func (client EmergingIssuesClient) Get(ctx context.Context) (result EmergingIssu result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.EmergingIssuesClient", "Get", resp, "Failure responding to request") + return } return @@ -140,6 +141,7 @@ func (client EmergingIssuesClient) List(ctx context.Context) (result EmergingIss result.eilr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.EmergingIssuesClient", "List", resp, "Failure responding to request") + return } if result.eilr.hasNextLink() && result.eilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -198,6 +200,7 @@ func (client EmergingIssuesClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.EmergingIssuesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resourcehealth/mgmt/2017-07-01/resourcehealth/operations.go b/services/resourcehealth/mgmt/2017-07-01/resourcehealth/operations.go index 650fc3e53337..cb44628afffb 100644 --- a/services/resourcehealth/mgmt/2017-07-01/resourcehealth/operations.go +++ b/services/resourcehealth/mgmt/2017-07-01/resourcehealth/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resourcehealth.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2015-01-01/locks/managementlocks.go b/services/resources/mgmt/2015-01-01/locks/managementlocks.go index 52d2ace198df..456f8c5a751d 100644 --- a/services/resources/mgmt/2015-01-01/locks/managementlocks.go +++ b/services/resources/mgmt/2015-01-01/locks/managementlocks.go @@ -82,6 +82,7 @@ func (client ManagementLocksClient) CreateOrUpdateAtResourceGroupLevel(ctx conte result, err = client.CreateOrUpdateAtResourceGroupLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "CreateOrUpdateAtResourceGroupLevel", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client ManagementLocksClient) CreateOrUpdateAtResourceLevel(ctx context.Co result, err = client.CreateOrUpdateAtResourceLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "CreateOrUpdateAtResourceLevel", resp, "Failure responding to request") + return } return @@ -257,6 +259,7 @@ func (client ManagementLocksClient) CreateOrUpdateAtSubscriptionLevel(ctx contex result, err = client.CreateOrUpdateAtSubscriptionLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "CreateOrUpdateAtSubscriptionLevel", resp, "Failure responding to request") + return } return @@ -343,6 +346,7 @@ func (client ManagementLocksClient) DeleteAtResourceGroupLevel(ctx context.Conte result, err = client.DeleteAtResourceGroupLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "DeleteAtResourceGroupLevel", resp, "Failure responding to request") + return } return @@ -429,6 +433,7 @@ func (client ManagementLocksClient) DeleteAtResourceLevel(ctx context.Context, r result, err = client.DeleteAtResourceLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "DeleteAtResourceLevel", resp, "Failure responding to request") + return } return @@ -506,6 +511,7 @@ func (client ManagementLocksClient) DeleteAtSubscriptionLevel(ctx context.Contex result, err = client.DeleteAtSubscriptionLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "DeleteAtSubscriptionLevel", resp, "Failure responding to request") + return } return @@ -578,6 +584,7 @@ func (client ManagementLocksClient) Get(ctx context.Context, lockName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "Get", resp, "Failure responding to request") + return } return @@ -660,6 +667,7 @@ func (client ManagementLocksClient) GetAtResourceGroupLevel(ctx context.Context, result, err = client.GetAtResourceGroupLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "GetAtResourceGroupLevel", resp, "Failure responding to request") + return } return @@ -744,6 +752,7 @@ func (client ManagementLocksClient) ListAtResourceGroupLevel(ctx context.Context result.mllr, err = client.ListAtResourceGroupLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "ListAtResourceGroupLevel", resp, "Failure responding to request") + return } if result.mllr.hasNextLink() && result.mllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -810,6 +819,7 @@ func (client ManagementLocksClient) listAtResourceGroupLevelNextResults(ctx cont result, err = client.ListAtResourceGroupLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "listAtResourceGroupLevelNextResults", resp, "Failure responding to next results request") + return } return } @@ -874,6 +884,7 @@ func (client ManagementLocksClient) ListAtResourceLevel(ctx context.Context, res result.mllr, err = client.ListAtResourceLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "ListAtResourceLevel", resp, "Failure responding to request") + return } if result.mllr.hasNextLink() && result.mllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -944,6 +955,7 @@ func (client ManagementLocksClient) listAtResourceLevelNextResults(ctx context.C result, err = client.ListAtResourceLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "listAtResourceLevelNextResults", resp, "Failure responding to next results request") + return } return } @@ -995,6 +1007,7 @@ func (client ManagementLocksClient) ListAtSubscriptionLevel(ctx context.Context, result.mllr, err = client.ListAtSubscriptionLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "ListAtSubscriptionLevel", resp, "Failure responding to request") + return } if result.mllr.hasNextLink() && result.mllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1060,6 +1073,7 @@ func (client ManagementLocksClient) listAtSubscriptionLevelNextResults(ctx conte result, err = client.ListAtSubscriptionLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "listAtSubscriptionLevelNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2015-11-01/resources/deploymentoperations.go b/services/resources/mgmt/2015-11-01/resources/deploymentoperations.go index a91abc55d93f..33896dcb9a34 100644 --- a/services/resources/mgmt/2015-11-01/resources/deploymentoperations.go +++ b/services/resources/mgmt/2015-11-01/resources/deploymentoperations.go @@ -83,6 +83,7 @@ func (client DeploymentOperationsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "Get", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client DeploymentOperationsClient) List(ctx context.Context, resourceGroup result.dolr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "List", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -236,6 +238,7 @@ func (client DeploymentOperationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2015-11-01/resources/deployments.go b/services/resources/mgmt/2015-11-01/resources/deployments.go index 6b58becafd33..29f5df9766cb 100644 --- a/services/resources/mgmt/2015-11-01/resources/deployments.go +++ b/services/resources/mgmt/2015-11-01/resources/deployments.go @@ -72,6 +72,7 @@ func (client DeploymentsClient) CalculateTemplateHash(ctx context.Context, templ result, err = client.CalculateTemplateHashResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CalculateTemplateHash", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DeploymentsClient) Cancel(ctx context.Context, resourceGroupName st result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client DeploymentsClient) CheckExistence(ctx context.Context, resourceGrou result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistence", resp, "Failure responding to request") + return } return @@ -491,6 +494,7 @@ func (client DeploymentsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Get", resp, "Failure responding to request") + return } return @@ -576,6 +580,7 @@ func (client DeploymentsClient) List(ctx context.Context, resourceGroupName stri result.dlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "List", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -645,6 +650,7 @@ func (client DeploymentsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -712,6 +718,7 @@ func (client DeploymentsClient) Validate(ctx context.Context, resourceGroupName result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Validate", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2015-11-01/resources/groups.go b/services/resources/mgmt/2015-11-01/resources/groups.go index eb8bb14c3283..6df18f9586ed 100644 --- a/services/resources/mgmt/2015-11-01/resources/groups.go +++ b/services/resources/mgmt/2015-11-01/resources/groups.go @@ -80,6 +80,7 @@ func (client GroupsClient) CheckExistence(ctx context.Context, resourceGroupName result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CheckExistence", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client GroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -328,6 +330,7 @@ func (client GroupsClient) Get(ctx context.Context, resourceGroupName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -403,6 +406,7 @@ func (client GroupsClient) List(ctx context.Context, filter string, top *int32) result.glr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "List", resp, "Failure responding to request") + return } if result.glr.hasNextLink() && result.glr.IsEmpty() { err = result.NextWithContext(ctx) @@ -471,6 +475,7 @@ func (client GroupsClient) listNextResults(ctx context.Context, lastResults Grou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -534,6 +539,7 @@ func (client GroupsClient) ListResources(ctx context.Context, resourceGroupName result.lr, err = client.ListResourcesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "ListResources", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -606,6 +612,7 @@ func (client GroupsClient) listResourcesNextResults(ctx context.Context, lastRes result, err = client.ListResourcesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "listResourcesNextResults", resp, "Failure responding to next results request") + return } return } @@ -667,6 +674,7 @@ func (client GroupsClient) Patch(ctx context.Context, resourceGroupName string, result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Patch", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2015-11-01/resources/policyassignments.go b/services/resources/mgmt/2015-11-01/resources/policyassignments.go index 400b7ce715b5..0cc5311b6dbc 100644 --- a/services/resources/mgmt/2015-11-01/resources/policyassignments.go +++ b/services/resources/mgmt/2015-11-01/resources/policyassignments.go @@ -75,6 +75,7 @@ func (client PolicyAssignmentsClient) Create(ctx context.Context, scope string, result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.PolicyAssignmentsClient", "Create", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client PolicyAssignmentsClient) CreateByID(ctx context.Context, policyAssi result, err = client.CreateByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.PolicyAssignmentsClient", "CreateByID", resp, "Failure responding to request") + return } return @@ -228,6 +230,7 @@ func (client PolicyAssignmentsClient) Delete(ctx context.Context, scope string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.PolicyAssignmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -295,6 +298,7 @@ func (client PolicyAssignmentsClient) DeleteByID(ctx context.Context, policyAssi result, err = client.DeleteByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.PolicyAssignmentsClient", "DeleteByID", resp, "Failure responding to request") + return } return @@ -368,6 +372,7 @@ func (client PolicyAssignmentsClient) Get(ctx context.Context, scope string, pol result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.PolicyAssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -441,6 +446,7 @@ func (client PolicyAssignmentsClient) GetByID(ctx context.Context, policyAssignm result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.PolicyAssignmentsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -514,6 +520,7 @@ func (client PolicyAssignmentsClient) List(ctx context.Context, filter string) ( result.palr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.PolicyAssignmentsClient", "List", resp, "Failure responding to request") + return } if result.palr.hasNextLink() && result.palr.IsEmpty() { err = result.NextWithContext(ctx) @@ -579,6 +586,7 @@ func (client PolicyAssignmentsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.PolicyAssignmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -643,6 +651,7 @@ func (client PolicyAssignmentsClient) ListForResource(ctx context.Context, resou result.palr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.PolicyAssignmentsClient", "ListForResource", resp, "Failure responding to request") + return } if result.palr.hasNextLink() && result.palr.IsEmpty() { err = result.NextWithContext(ctx) @@ -713,6 +722,7 @@ func (client PolicyAssignmentsClient) listForResourceNextResults(ctx context.Con result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.PolicyAssignmentsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -773,6 +783,7 @@ func (client PolicyAssignmentsClient) ListForResourceGroup(ctx context.Context, result.palr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.PolicyAssignmentsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.palr.hasNextLink() && result.palr.IsEmpty() { err = result.NextWithContext(ctx) @@ -839,6 +850,7 @@ func (client PolicyAssignmentsClient) listForResourceGroupNextResults(ctx contex result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.PolicyAssignmentsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -891,6 +903,7 @@ func (client PolicyAssignmentsClient) ListForScope(ctx context.Context, scope st result.palr, err = client.ListForScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.PolicyAssignmentsClient", "ListForScope", resp, "Failure responding to request") + return } if result.palr.hasNextLink() && result.palr.IsEmpty() { err = result.NextWithContext(ctx) @@ -956,6 +969,7 @@ func (client PolicyAssignmentsClient) listForScopeNextResults(ctx context.Contex result, err = client.ListForScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.PolicyAssignmentsClient", "listForScopeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2015-11-01/resources/policydefinitions.go b/services/resources/mgmt/2015-11-01/resources/policydefinitions.go index fe5372d37639..e8740242d877 100644 --- a/services/resources/mgmt/2015-11-01/resources/policydefinitions.go +++ b/services/resources/mgmt/2015-11-01/resources/policydefinitions.go @@ -73,6 +73,7 @@ func (client PolicyDefinitionsClient) CreateOrUpdate(ctx context.Context, policy result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.PolicyDefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client PolicyDefinitionsClient) Delete(ctx context.Context, policyDefiniti result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.PolicyDefinitionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -220,6 +222,7 @@ func (client PolicyDefinitionsClient) Get(ctx context.Context, policyDefinitionN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.PolicyDefinitionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2015-11-01/resources/provideroperationdetails.go b/services/resources/mgmt/2015-11-01/resources/provideroperationdetails.go index db3aefea12d8..d56ba1c46103 100644 --- a/services/resources/mgmt/2015-11-01/resources/provideroperationdetails.go +++ b/services/resources/mgmt/2015-11-01/resources/provideroperationdetails.go @@ -73,6 +73,7 @@ func (client ProviderOperationDetailsClient) List(ctx context.Context, resourceP result.podlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProviderOperationDetailsClient", "List", resp, "Failure responding to request") + return } if result.podlr.hasNextLink() && result.podlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -134,6 +135,7 @@ func (client ProviderOperationDetailsClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProviderOperationDetailsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2015-11-01/resources/providers.go b/services/resources/mgmt/2015-11-01/resources/providers.go index cc11b4a42dab..80ec57976400 100644 --- a/services/resources/mgmt/2015-11-01/resources/providers.go +++ b/services/resources/mgmt/2015-11-01/resources/providers.go @@ -71,6 +71,7 @@ func (client ProvidersClient) Get(ctx context.Context, resourceProviderNamespace result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Get", resp, "Failure responding to request") + return } return @@ -145,6 +146,7 @@ func (client ProvidersClient) List(ctx context.Context, top *int32) (result Prov result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -210,6 +212,7 @@ func (client ProvidersClient) listNextResults(ctx context.Context, lastResults P result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -260,6 +263,7 @@ func (client ProvidersClient) Register(ctx context.Context, resourceProviderName result, err = client.RegisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Register", resp, "Failure responding to request") + return } return @@ -333,6 +337,7 @@ func (client ProvidersClient) Unregister(ctx context.Context, resourceProviderNa result, err = client.UnregisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Unregister", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2015-11-01/resources/resources.go b/services/resources/mgmt/2015-11-01/resources/resources.go index 98e341abb4ed..b840c798b295 100644 --- a/services/resources/mgmt/2015-11-01/resources/resources.go +++ b/services/resources/mgmt/2015-11-01/resources/resources.go @@ -84,6 +84,7 @@ func (client Client) CheckExistence(ctx context.Context, resourceGroupName strin result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "CheckExistence", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client Client) CreateOrUpdate(ctx context.Context, resourceGroupName strin result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -262,6 +264,7 @@ func (client Client) Delete(ctx context.Context, resourceGroupName string, resou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "Delete", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "Get", resp, "Failure responding to request") + return } return @@ -429,6 +433,7 @@ func (client Client) List(ctx context.Context, filter string, expand string, top result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -500,6 +505,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2015-11-01/resources/tags.go b/services/resources/mgmt/2015-11-01/resources/tags.go index 72c25077e2e6..19beb74fa360 100644 --- a/services/resources/mgmt/2015-11-01/resources/tags.go +++ b/services/resources/mgmt/2015-11-01/resources/tags.go @@ -71,6 +71,7 @@ func (client TagsClient) CreateOrUpdate(ctx context.Context, tagName string) (re result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -145,6 +146,7 @@ func (client TagsClient) CreateOrUpdateValue(ctx context.Context, tagName string result, err = client.CreateOrUpdateValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdateValue", resp, "Failure responding to request") + return } return @@ -219,6 +221,7 @@ func (client TagsClient) Delete(ctx context.Context, tagName string) (result aut result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "Delete", resp, "Failure responding to request") + return } return @@ -292,6 +295,7 @@ func (client TagsClient) DeleteValue(ctx context.Context, tagName string, tagVal result, err = client.DeleteValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "DeleteValue", resp, "Failure responding to request") + return } return @@ -364,6 +368,7 @@ func (client TagsClient) List(ctx context.Context) (result TagsListResultPage, e result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -426,6 +431,7 @@ func (client TagsClient) listNextResults(ctx context.Context, lastResults TagsLi result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2015-11-01/subscriptions/client.go b/services/resources/mgmt/2015-11-01/subscriptions/client.go index 21c4e38f45bc..1a8440e040d6 100644 --- a/services/resources/mgmt/2015-11-01/subscriptions/client.go +++ b/services/resources/mgmt/2015-11-01/subscriptions/client.go @@ -94,6 +94,7 @@ func (client BaseClient) CheckResourceName(ctx context.Context, resourceNameDefi result, err = client.CheckResourceNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.BaseClient", "CheckResourceName", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2015-11-01/subscriptions/subscriptions.go b/services/resources/mgmt/2015-11-01/subscriptions/subscriptions.go index fac2d0117561..a742ee1ae025 100644 --- a/services/resources/mgmt/2015-11-01/subscriptions/subscriptions.go +++ b/services/resources/mgmt/2015-11-01/subscriptions/subscriptions.go @@ -71,6 +71,7 @@ func (client Client) Get(ctx context.Context, subscriptionID string) (result Sub result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.Client", "Get", resp, "Failure responding to request") + return } return @@ -142,6 +143,7 @@ func (client Client) List(ctx context.Context) (result ListResultPage, err error result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -200,6 +202,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -250,6 +253,7 @@ func (client Client) ListLocations(ctx context.Context, subscriptionID string) ( result, err = client.ListLocationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.Client", "ListLocations", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2015-11-01/subscriptions/tenants.go b/services/resources/mgmt/2015-11-01/subscriptions/tenants.go index a53f93eb4766..3a072a234d9f 100644 --- a/services/resources/mgmt/2015-11-01/subscriptions/tenants.go +++ b/services/resources/mgmt/2015-11-01/subscriptions/tenants.go @@ -70,6 +70,7 @@ func (client TenantsClient) List(ctx context.Context) (result TenantListResultPa result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.TenantsClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client TenantsClient) listNextResults(ctx context.Context, lastResults Ten result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.TenantsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2015-12-01/features/client.go b/services/resources/mgmt/2015-12-01/features/client.go index 4aa6ac49aa2a..014bd3abf3b2 100644 --- a/services/resources/mgmt/2015-12-01/features/client.go +++ b/services/resources/mgmt/2015-12-01/features/client.go @@ -87,6 +87,7 @@ func (client BaseClient) ListOperations(ctx context.Context) (result OperationLi result.olr, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.BaseClient", "ListOperations", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -145,6 +146,7 @@ func (client BaseClient) listOperationsNextResults(ctx context.Context, lastResu result, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.BaseClient", "listOperationsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2015-12-01/features/features.go b/services/resources/mgmt/2015-12-01/features/features.go index 8be5e8771a86..f879529cd649 100644 --- a/services/resources/mgmt/2015-12-01/features/features.go +++ b/services/resources/mgmt/2015-12-01/features/features.go @@ -75,6 +75,7 @@ func (client Client) Get(ctx context.Context, resourceProviderNamespace string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.Client", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client Client) List(ctx context.Context, resourceProviderNamespace string) result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.Client", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -213,6 +215,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults Operations result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -262,6 +265,7 @@ func (client Client) ListAll(ctx context.Context) (result OperationsListResultPa result.olr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.Client", "ListAll", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -324,6 +328,7 @@ func (client Client) listAllNextResults(ctx context.Context, lastResults Operati result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.Client", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -375,6 +380,7 @@ func (client Client) Register(ctx context.Context, resourceProviderNamespace str result, err = client.RegisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.Client", "Register", resp, "Failure responding to request") + return } return @@ -450,6 +456,7 @@ func (client Client) Unregister(ctx context.Context, resourceProviderNamespace s result, err = client.UnregisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.Client", "Unregister", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2016-02-01/resources/deploymentoperations.go b/services/resources/mgmt/2016-02-01/resources/deploymentoperations.go index 969d58f6f996..134bb408ce62 100644 --- a/services/resources/mgmt/2016-02-01/resources/deploymentoperations.go +++ b/services/resources/mgmt/2016-02-01/resources/deploymentoperations.go @@ -83,6 +83,7 @@ func (client DeploymentOperationsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "Get", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client DeploymentOperationsClient) List(ctx context.Context, resourceGroup result.dolr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "List", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -236,6 +238,7 @@ func (client DeploymentOperationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2016-02-01/resources/deployments.go b/services/resources/mgmt/2016-02-01/resources/deployments.go index dc9b1ad726ba..9b6ddfdd978d 100644 --- a/services/resources/mgmt/2016-02-01/resources/deployments.go +++ b/services/resources/mgmt/2016-02-01/resources/deployments.go @@ -72,6 +72,7 @@ func (client DeploymentsClient) CalculateTemplateHash(ctx context.Context, templ result, err = client.CalculateTemplateHashResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CalculateTemplateHash", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DeploymentsClient) Cancel(ctx context.Context, resourceGroupName st result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client DeploymentsClient) CheckExistence(ctx context.Context, resourceGrou result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistence", resp, "Failure responding to request") + return } return @@ -490,6 +493,7 @@ func (client DeploymentsClient) ExportTemplate(ctx context.Context, resourceGrou result, err = client.ExportTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplate", resp, "Failure responding to request") + return } return @@ -573,6 +577,7 @@ func (client DeploymentsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Get", resp, "Failure responding to request") + return } return @@ -658,6 +663,7 @@ func (client DeploymentsClient) List(ctx context.Context, resourceGroupName stri result.dlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "List", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -727,6 +733,7 @@ func (client DeploymentsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -794,6 +801,7 @@ func (client DeploymentsClient) Validate(ctx context.Context, resourceGroupName result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Validate", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2016-02-01/resources/groups.go b/services/resources/mgmt/2016-02-01/resources/groups.go index cb806dfe4069..34ccbd363eec 100644 --- a/services/resources/mgmt/2016-02-01/resources/groups.go +++ b/services/resources/mgmt/2016-02-01/resources/groups.go @@ -80,6 +80,7 @@ func (client GroupsClient) CheckExistence(ctx context.Context, resourceGroupName result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CheckExistence", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client GroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -328,6 +330,7 @@ func (client GroupsClient) ExportTemplate(ctx context.Context, resourceGroupName result, err = client.ExportTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "ExportTemplate", resp, "Failure responding to request") + return } return @@ -411,6 +414,7 @@ func (client GroupsClient) Get(ctx context.Context, resourceGroupName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -486,6 +490,7 @@ func (client GroupsClient) List(ctx context.Context, filter string, top *int32) result.glr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "List", resp, "Failure responding to request") + return } if result.glr.hasNextLink() && result.glr.IsEmpty() { err = result.NextWithContext(ctx) @@ -554,6 +559,7 @@ func (client GroupsClient) listNextResults(ctx context.Context, lastResults Grou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -617,6 +623,7 @@ func (client GroupsClient) ListResources(ctx context.Context, resourceGroupName result.lr, err = client.ListResourcesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "ListResources", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -689,6 +696,7 @@ func (client GroupsClient) listResourcesNextResults(ctx context.Context, lastRes result, err = client.ListResourcesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "listResourcesNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +758,7 @@ func (client GroupsClient) Patch(ctx context.Context, resourceGroupName string, result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Patch", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2016-02-01/resources/providers.go b/services/resources/mgmt/2016-02-01/resources/providers.go index 3e6eb30cc4cc..f4e4fd0e93fc 100644 --- a/services/resources/mgmt/2016-02-01/resources/providers.go +++ b/services/resources/mgmt/2016-02-01/resources/providers.go @@ -73,6 +73,7 @@ func (client ProvidersClient) Get(ctx context.Context, resourceProviderNamespace result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client ProvidersClient) List(ctx context.Context, top *int32, expand strin result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -220,6 +222,7 @@ func (client ProvidersClient) listNextResults(ctx context.Context, lastResults P result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -270,6 +273,7 @@ func (client ProvidersClient) Register(ctx context.Context, resourceProviderName result, err = client.RegisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Register", resp, "Failure responding to request") + return } return @@ -343,6 +347,7 @@ func (client ProvidersClient) Unregister(ctx context.Context, resourceProviderNa result, err = client.UnregisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Unregister", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2016-02-01/resources/resources.go b/services/resources/mgmt/2016-02-01/resources/resources.go index 2d9ee9d5b0ac..b1cec098414a 100644 --- a/services/resources/mgmt/2016-02-01/resources/resources.go +++ b/services/resources/mgmt/2016-02-01/resources/resources.go @@ -84,6 +84,7 @@ func (client Client) CheckExistence(ctx context.Context, resourceGroupName strin result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "CheckExistence", resp, "Failure responding to request") + return } return @@ -172,6 +173,7 @@ func (client Client) CreateOrUpdate(ctx context.Context, resourceGroupName strin result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -262,6 +264,7 @@ func (client Client) Delete(ctx context.Context, resourceGroupName string, resou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "Delete", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "Get", resp, "Failure responding to request") + return } return @@ -429,6 +433,7 @@ func (client Client) List(ctx context.Context, filter string, expand string, top result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -500,6 +505,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2016-02-01/resources/tags.go b/services/resources/mgmt/2016-02-01/resources/tags.go index 98e7301facf3..d1a76d95a812 100644 --- a/services/resources/mgmt/2016-02-01/resources/tags.go +++ b/services/resources/mgmt/2016-02-01/resources/tags.go @@ -71,6 +71,7 @@ func (client TagsClient) CreateOrUpdate(ctx context.Context, tagName string) (re result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -145,6 +146,7 @@ func (client TagsClient) CreateOrUpdateValue(ctx context.Context, tagName string result, err = client.CreateOrUpdateValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdateValue", resp, "Failure responding to request") + return } return @@ -219,6 +221,7 @@ func (client TagsClient) Delete(ctx context.Context, tagName string) (result aut result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "Delete", resp, "Failure responding to request") + return } return @@ -292,6 +295,7 @@ func (client TagsClient) DeleteValue(ctx context.Context, tagName string, tagVal result, err = client.DeleteValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "DeleteValue", resp, "Failure responding to request") + return } return @@ -364,6 +368,7 @@ func (client TagsClient) List(ctx context.Context) (result TagsListResultPage, e result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -426,6 +431,7 @@ func (client TagsClient) listNextResults(ctx context.Context, lastResults TagsLi result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2016-04-01/policy/assignments.go b/services/resources/mgmt/2016-04-01/policy/assignments.go index a3f93d22696e..c55d64f21742 100644 --- a/services/resources/mgmt/2016-04-01/policy/assignments.go +++ b/services/resources/mgmt/2016-04-01/policy/assignments.go @@ -76,6 +76,7 @@ func (client AssignmentsClient) Create(ctx context.Context, scope string, policy result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Create", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client AssignmentsClient) CreateByID(ctx context.Context, policyAssignment result, err = client.CreateByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "CreateByID", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client AssignmentsClient) Delete(ctx context.Context, scope string, policy result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -310,6 +313,7 @@ func (client AssignmentsClient) DeleteByID(ctx context.Context, policyAssignment result, err = client.DeleteByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "DeleteByID", resp, "Failure responding to request") + return } return @@ -383,6 +387,7 @@ func (client AssignmentsClient) Get(ctx context.Context, scope string, policyAss result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -460,6 +465,7 @@ func (client AssignmentsClient) GetByID(ctx context.Context, policyAssignmentID result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -533,6 +539,7 @@ func (client AssignmentsClient) List(ctx context.Context, filter string) (result result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -598,6 +605,7 @@ func (client AssignmentsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -662,6 +670,7 @@ func (client AssignmentsClient) ListForResource(ctx context.Context, resourceGro result.alr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResource", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -732,6 +741,7 @@ func (client AssignmentsClient) listForResourceNextResults(ctx context.Context, result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -792,6 +802,7 @@ func (client AssignmentsClient) ListForResourceGroup(ctx context.Context, resour result.alr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -858,6 +869,7 @@ func (client AssignmentsClient) listForResourceGroupNextResults(ctx context.Cont result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2016-04-01/policy/definitions.go b/services/resources/mgmt/2016-04-01/policy/definitions.go index 8f8a888bdc5c..fe5e0efbb5d4 100644 --- a/services/resources/mgmt/2016-04-01/policy/definitions.go +++ b/services/resources/mgmt/2016-04-01/policy/definitions.go @@ -73,6 +73,7 @@ func (client DefinitionsClient) CreateOrUpdate(ctx context.Context, policyDefini result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client DefinitionsClient) Delete(ctx context.Context, policyDefinitionName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -221,6 +223,7 @@ func (client DefinitionsClient) Get(ctx context.Context, policyDefinitionName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -295,6 +298,7 @@ func (client DefinitionsClient) List(ctx context.Context, filter string) (result result.dlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "List", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -360,6 +364,7 @@ func (client DefinitionsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2016-06-01/subscriptions/client.go b/services/resources/mgmt/2016-06-01/subscriptions/client.go index 97e54ff96eae..816ea0c3457b 100644 --- a/services/resources/mgmt/2016-06-01/subscriptions/client.go +++ b/services/resources/mgmt/2016-06-01/subscriptions/client.go @@ -96,6 +96,7 @@ func (client BaseClient) CheckResourceName(ctx context.Context, resourceNameDefi result, err = client.CheckResourceNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.BaseClient", "CheckResourceName", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2016-06-01/subscriptions/operations.go b/services/resources/mgmt/2016-06-01/subscriptions/operations.go index 138ce7d30844..c99c2f68b6bd 100644 --- a/services/resources/mgmt/2016-06-01/subscriptions/operations.go +++ b/services/resources/mgmt/2016-06-01/subscriptions/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2016-06-01/subscriptions/subscriptions.go b/services/resources/mgmt/2016-06-01/subscriptions/subscriptions.go index 34870441e115..70415d010ec8 100644 --- a/services/resources/mgmt/2016-06-01/subscriptions/subscriptions.go +++ b/services/resources/mgmt/2016-06-01/subscriptions/subscriptions.go @@ -73,6 +73,7 @@ func (client Client) Get(ctx context.Context, subscriptionID string) (result Sub result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.Client", "Get", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client Client) List(ctx context.Context) (result ListResultPage, err error result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -202,6 +204,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -253,6 +256,7 @@ func (client Client) ListLocations(ctx context.Context, subscriptionID string) ( result, err = client.ListLocationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.Client", "ListLocations", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2016-06-01/subscriptions/tenants.go b/services/resources/mgmt/2016-06-01/subscriptions/tenants.go index 5c02657295f3..5d136668c78c 100644 --- a/services/resources/mgmt/2016-06-01/subscriptions/tenants.go +++ b/services/resources/mgmt/2016-06-01/subscriptions/tenants.go @@ -72,6 +72,7 @@ func (client TenantsClient) List(ctx context.Context) (result TenantListResultPa result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.TenantsClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client TenantsClient) listNextResults(ctx context.Context, lastResults Ten result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.TenantsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2016-07-01/resources/deploymentoperations.go b/services/resources/mgmt/2016-07-01/resources/deploymentoperations.go index fdec084df43b..4a4d037e408d 100644 --- a/services/resources/mgmt/2016-07-01/resources/deploymentoperations.go +++ b/services/resources/mgmt/2016-07-01/resources/deploymentoperations.go @@ -83,6 +83,7 @@ func (client DeploymentOperationsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "Get", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client DeploymentOperationsClient) List(ctx context.Context, resourceGroup result.dolr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "List", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -236,6 +238,7 @@ func (client DeploymentOperationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2016-07-01/resources/deployments.go b/services/resources/mgmt/2016-07-01/resources/deployments.go index a0807ae59dc1..39408fe31d61 100644 --- a/services/resources/mgmt/2016-07-01/resources/deployments.go +++ b/services/resources/mgmt/2016-07-01/resources/deployments.go @@ -72,6 +72,7 @@ func (client DeploymentsClient) CalculateTemplateHash(ctx context.Context, templ result, err = client.CalculateTemplateHashResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CalculateTemplateHash", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client DeploymentsClient) Cancel(ctx context.Context, resourceGroupName st result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client DeploymentsClient) CheckExistence(ctx context.Context, resourceGrou result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistence", resp, "Failure responding to request") + return } return @@ -490,6 +493,7 @@ func (client DeploymentsClient) ExportTemplate(ctx context.Context, resourceGrou result, err = client.ExportTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplate", resp, "Failure responding to request") + return } return @@ -573,6 +577,7 @@ func (client DeploymentsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Get", resp, "Failure responding to request") + return } return @@ -658,6 +663,7 @@ func (client DeploymentsClient) List(ctx context.Context, resourceGroupName stri result.dlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "List", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -727,6 +733,7 @@ func (client DeploymentsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -794,6 +801,7 @@ func (client DeploymentsClient) Validate(ctx context.Context, resourceGroupName result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Validate", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2016-07-01/resources/groups.go b/services/resources/mgmt/2016-07-01/resources/groups.go index 487aa39c967e..a35ba2e8eeeb 100644 --- a/services/resources/mgmt/2016-07-01/resources/groups.go +++ b/services/resources/mgmt/2016-07-01/resources/groups.go @@ -80,6 +80,7 @@ func (client GroupsClient) CheckExistence(ctx context.Context, resourceGroupName result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CheckExistence", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client GroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -328,6 +330,7 @@ func (client GroupsClient) ExportTemplate(ctx context.Context, resourceGroupName result, err = client.ExportTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "ExportTemplate", resp, "Failure responding to request") + return } return @@ -411,6 +414,7 @@ func (client GroupsClient) Get(ctx context.Context, resourceGroupName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -486,6 +490,7 @@ func (client GroupsClient) List(ctx context.Context, filter string, top *int32) result.glr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "List", resp, "Failure responding to request") + return } if result.glr.hasNextLink() && result.glr.IsEmpty() { err = result.NextWithContext(ctx) @@ -554,6 +559,7 @@ func (client GroupsClient) listNextResults(ctx context.Context, lastResults Grou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -617,6 +623,7 @@ func (client GroupsClient) ListResources(ctx context.Context, resourceGroupName result.lr, err = client.ListResourcesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "ListResources", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -689,6 +696,7 @@ func (client GroupsClient) listResourcesNextResults(ctx context.Context, lastRes result, err = client.ListResourcesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "listResourcesNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +758,7 @@ func (client GroupsClient) Patch(ctx context.Context, resourceGroupName string, result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Patch", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2016-07-01/resources/providers.go b/services/resources/mgmt/2016-07-01/resources/providers.go index b6df471a7f6c..c2f59f8dc319 100644 --- a/services/resources/mgmt/2016-07-01/resources/providers.go +++ b/services/resources/mgmt/2016-07-01/resources/providers.go @@ -73,6 +73,7 @@ func (client ProvidersClient) Get(ctx context.Context, resourceProviderNamespace result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client ProvidersClient) List(ctx context.Context, top *int32, expand strin result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -220,6 +222,7 @@ func (client ProvidersClient) listNextResults(ctx context.Context, lastResults P result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -270,6 +273,7 @@ func (client ProvidersClient) Register(ctx context.Context, resourceProviderName result, err = client.RegisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Register", resp, "Failure responding to request") + return } return @@ -343,6 +347,7 @@ func (client ProvidersClient) Unregister(ctx context.Context, resourceProviderNa result, err = client.UnregisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Unregister", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2016-07-01/resources/resources.go b/services/resources/mgmt/2016-07-01/resources/resources.go index 36fba31afd13..a37c348ad754 100644 --- a/services/resources/mgmt/2016-07-01/resources/resources.go +++ b/services/resources/mgmt/2016-07-01/resources/resources.go @@ -85,6 +85,7 @@ func (client Client) CheckExistence(ctx context.Context, resourceGroupName strin result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "CheckExistence", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client Client) CreateOrUpdate(ctx context.Context, resourceGroupName strin result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -265,6 +267,7 @@ func (client Client) Delete(ctx context.Context, resourceGroupName string, resou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "Delete", resp, "Failure responding to request") + return } return @@ -353,6 +356,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "Get", resp, "Failure responding to request") + return } return @@ -433,6 +437,7 @@ func (client Client) List(ctx context.Context, filter string, expand string, top result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -504,6 +509,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2016-07-01/resources/tags.go b/services/resources/mgmt/2016-07-01/resources/tags.go index acd81af07b14..b51271a081de 100644 --- a/services/resources/mgmt/2016-07-01/resources/tags.go +++ b/services/resources/mgmt/2016-07-01/resources/tags.go @@ -71,6 +71,7 @@ func (client TagsClient) CreateOrUpdate(ctx context.Context, tagName string) (re result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -145,6 +146,7 @@ func (client TagsClient) CreateOrUpdateValue(ctx context.Context, tagName string result, err = client.CreateOrUpdateValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdateValue", resp, "Failure responding to request") + return } return @@ -219,6 +221,7 @@ func (client TagsClient) Delete(ctx context.Context, tagName string) (result aut result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "Delete", resp, "Failure responding to request") + return } return @@ -292,6 +295,7 @@ func (client TagsClient) DeleteValue(ctx context.Context, tagName string, tagVal result, err = client.DeleteValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "DeleteValue", resp, "Failure responding to request") + return } return @@ -364,6 +368,7 @@ func (client TagsClient) List(ctx context.Context) (result TagsListResultPage, e result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -426,6 +431,7 @@ func (client TagsClient) listNextResults(ctx context.Context, lastResults TagsLi result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2016-09-01/links/operations.go b/services/resources/mgmt/2016-09-01/links/operations.go index 7c81e1697f13..21aba6545d60 100644 --- a/services/resources/mgmt/2016-09-01/links/operations.go +++ b/services/resources/mgmt/2016-09-01/links/operations.go @@ -73,6 +73,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "links.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -131,6 +132,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "links.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2016-09-01/links/resourcelinks.go b/services/resources/mgmt/2016-09-01/links/resourcelinks.go index 381c09da99f7..7ffbcf17f736 100644 --- a/services/resources/mgmt/2016-09-01/links/resourcelinks.go +++ b/services/resources/mgmt/2016-09-01/links/resourcelinks.go @@ -86,6 +86,7 @@ func (client ResourceLinksClient) CreateOrUpdate(ctx context.Context, linkID str result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "links.ResourceLinksClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client ResourceLinksClient) Delete(ctx context.Context, linkID string) (re result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "links.ResourceLinksClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client ResourceLinksClient) Get(ctx context.Context, linkID string) (resul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "links.ResourceLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +318,7 @@ func (client ResourceLinksClient) ListAtSourceScope(ctx context.Context, scope s result.rlr, err = client.ListAtSourceScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "links.ResourceLinksClient", "ListAtSourceScope", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -380,6 +384,7 @@ func (client ResourceLinksClient) listAtSourceScopeNextResults(ctx context.Conte result, err = client.ListAtSourceScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "links.ResourceLinksClient", "listAtSourceScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -432,6 +437,7 @@ func (client ResourceLinksClient) ListAtSubscription(ctx context.Context, filter result.rlr, err = client.ListAtSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "links.ResourceLinksClient", "ListAtSubscription", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -497,6 +503,7 @@ func (client ResourceLinksClient) listAtSubscriptionNextResults(ctx context.Cont result, err = client.ListAtSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "links.ResourceLinksClient", "listAtSubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2016-09-01/locks/authorizationoperations.go b/services/resources/mgmt/2016-09-01/locks/authorizationoperations.go index e53454646eb9..16c0df667c82 100644 --- a/services/resources/mgmt/2016-09-01/locks/authorizationoperations.go +++ b/services/resources/mgmt/2016-09-01/locks/authorizationoperations.go @@ -72,6 +72,7 @@ func (client AuthorizationOperationsClient) List(ctx context.Context) (result Op result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.AuthorizationOperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client AuthorizationOperationsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.AuthorizationOperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2016-09-01/locks/managementlocks.go b/services/resources/mgmt/2016-09-01/locks/managementlocks.go index 17b3a85eb15a..e9538c504707 100644 --- a/services/resources/mgmt/2016-09-01/locks/managementlocks.go +++ b/services/resources/mgmt/2016-09-01/locks/managementlocks.go @@ -89,6 +89,7 @@ func (client ManagementLocksClient) CreateOrUpdateAtResourceGroupLevel(ctx conte result, err = client.CreateOrUpdateAtResourceGroupLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "CreateOrUpdateAtResourceGroupLevel", resp, "Failure responding to request") + return } return @@ -187,6 +188,7 @@ func (client ManagementLocksClient) CreateOrUpdateAtResourceLevel(ctx context.Co result, err = client.CreateOrUpdateAtResourceLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "CreateOrUpdateAtResourceLevel", resp, "Failure responding to request") + return } return @@ -281,6 +283,7 @@ func (client ManagementLocksClient) CreateOrUpdateAtSubscriptionLevel(ctx contex result, err = client.CreateOrUpdateAtSubscriptionLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "CreateOrUpdateAtSubscriptionLevel", resp, "Failure responding to request") + return } return @@ -371,6 +374,7 @@ func (client ManagementLocksClient) CreateOrUpdateByScope(ctx context.Context, s result, err = client.CreateOrUpdateByScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "CreateOrUpdateByScope", resp, "Failure responding to request") + return } return @@ -460,6 +464,7 @@ func (client ManagementLocksClient) DeleteAtResourceGroupLevel(ctx context.Conte result, err = client.DeleteAtResourceGroupLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "DeleteAtResourceGroupLevel", resp, "Failure responding to request") + return } return @@ -548,6 +553,7 @@ func (client ManagementLocksClient) DeleteAtResourceLevel(ctx context.Context, r result, err = client.DeleteAtResourceLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "DeleteAtResourceLevel", resp, "Failure responding to request") + return } return @@ -627,6 +633,7 @@ func (client ManagementLocksClient) DeleteAtSubscriptionLevel(ctx context.Contex result, err = client.DeleteAtSubscriptionLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "DeleteAtSubscriptionLevel", resp, "Failure responding to request") + return } return @@ -700,6 +707,7 @@ func (client ManagementLocksClient) DeleteByScope(ctx context.Context, scope str result, err = client.DeleteByScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "DeleteByScope", resp, "Failure responding to request") + return } return @@ -781,6 +789,7 @@ func (client ManagementLocksClient) GetAtResourceGroupLevel(ctx context.Context, result, err = client.GetAtResourceGroupLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "GetAtResourceGroupLevel", resp, "Failure responding to request") + return } return @@ -868,6 +877,7 @@ func (client ManagementLocksClient) GetAtResourceLevel(ctx context.Context, reso result, err = client.GetAtResourceLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "GetAtResourceLevel", resp, "Failure responding to request") + return } return @@ -946,6 +956,7 @@ func (client ManagementLocksClient) GetAtSubscriptionLevel(ctx context.Context, result, err = client.GetAtSubscriptionLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "GetAtSubscriptionLevel", resp, "Failure responding to request") + return } return @@ -1020,6 +1031,7 @@ func (client ManagementLocksClient) GetByScope(ctx context.Context, scope string result, err = client.GetByScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "GetByScope", resp, "Failure responding to request") + return } return @@ -1103,6 +1115,7 @@ func (client ManagementLocksClient) ListAtResourceGroupLevel(ctx context.Context result.mllr, err = client.ListAtResourceGroupLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "ListAtResourceGroupLevel", resp, "Failure responding to request") + return } if result.mllr.hasNextLink() && result.mllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1169,6 +1182,7 @@ func (client ManagementLocksClient) listAtResourceGroupLevelNextResults(ctx cont result, err = client.ListAtResourceGroupLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "listAtResourceGroupLevelNextResults", resp, "Failure responding to next results request") + return } return } @@ -1234,6 +1248,7 @@ func (client ManagementLocksClient) ListAtResourceLevel(ctx context.Context, res result.mllr, err = client.ListAtResourceLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "ListAtResourceLevel", resp, "Failure responding to request") + return } if result.mllr.hasNextLink() && result.mllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1304,6 +1319,7 @@ func (client ManagementLocksClient) listAtResourceLevelNextResults(ctx context.C result, err = client.ListAtResourceLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "listAtResourceLevelNextResults", resp, "Failure responding to next results request") + return } return } @@ -1355,6 +1371,7 @@ func (client ManagementLocksClient) ListAtSubscriptionLevel(ctx context.Context, result.mllr, err = client.ListAtSubscriptionLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "ListAtSubscriptionLevel", resp, "Failure responding to request") + return } if result.mllr.hasNextLink() && result.mllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1420,6 +1437,7 @@ func (client ManagementLocksClient) listAtSubscriptionLevelNextResults(ctx conte result, err = client.ListAtSubscriptionLevelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "listAtSubscriptionLevelNextResults", resp, "Failure responding to next results request") + return } return } @@ -1476,6 +1494,7 @@ func (client ManagementLocksClient) ListByScope(ctx context.Context, scope strin result.mllr, err = client.ListByScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "ListByScope", resp, "Failure responding to request") + return } if result.mllr.hasNextLink() && result.mllr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1541,6 +1560,7 @@ func (client ManagementLocksClient) listByScopeNextResults(ctx context.Context, result, err = client.ListByScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "listByScopeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2016-09-01/resources/deploymentoperations.go b/services/resources/mgmt/2016-09-01/resources/deploymentoperations.go index 27e5ecfadca1..74dc49960878 100644 --- a/services/resources/mgmt/2016-09-01/resources/deploymentoperations.go +++ b/services/resources/mgmt/2016-09-01/resources/deploymentoperations.go @@ -87,6 +87,7 @@ func (client DeploymentOperationsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "Get", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client DeploymentOperationsClient) List(ctx context.Context, resourceGroup result.dolr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "List", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -244,6 +246,7 @@ func (client DeploymentOperationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2016-09-01/resources/deployments.go b/services/resources/mgmt/2016-09-01/resources/deployments.go index 71aa53242898..8a540a0fd8de 100644 --- a/services/resources/mgmt/2016-09-01/resources/deployments.go +++ b/services/resources/mgmt/2016-09-01/resources/deployments.go @@ -72,6 +72,7 @@ func (client DeploymentsClient) CalculateTemplateHash(ctx context.Context, templ result, err = client.CalculateTemplateHashResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CalculateTemplateHash", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client DeploymentsClient) Cancel(ctx context.Context, resourceGroupName st result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client DeploymentsClient) CheckExistence(ctx context.Context, resourceGrou result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistence", resp, "Failure responding to request") + return } return @@ -521,6 +524,7 @@ func (client DeploymentsClient) ExportTemplate(ctx context.Context, resourceGrou result, err = client.ExportTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplate", resp, "Failure responding to request") + return } return @@ -608,6 +612,7 @@ func (client DeploymentsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Get", resp, "Failure responding to request") + return } return @@ -695,6 +700,7 @@ func (client DeploymentsClient) List(ctx context.Context, resourceGroupName stri result.dlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "List", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -764,6 +770,7 @@ func (client DeploymentsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -837,6 +844,7 @@ func (client DeploymentsClient) Validate(ctx context.Context, resourceGroupName result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Validate", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2016-09-01/resources/groups.go b/services/resources/mgmt/2016-09-01/resources/groups.go index 60edbe7ee299..b0766d05ea4e 100644 --- a/services/resources/mgmt/2016-09-01/resources/groups.go +++ b/services/resources/mgmt/2016-09-01/resources/groups.go @@ -80,6 +80,7 @@ func (client GroupsClient) CheckExistence(ctx context.Context, resourceGroupName result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CheckExistence", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client GroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -329,6 +331,7 @@ func (client GroupsClient) ExportTemplate(ctx context.Context, resourceGroupName result, err = client.ExportTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "ExportTemplate", resp, "Failure responding to request") + return } return @@ -412,6 +415,7 @@ func (client GroupsClient) Get(ctx context.Context, resourceGroupName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -487,6 +491,7 @@ func (client GroupsClient) List(ctx context.Context, filter string, top *int32) result.glr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "List", resp, "Failure responding to request") + return } if result.glr.hasNextLink() && result.glr.IsEmpty() { err = result.NextWithContext(ctx) @@ -555,6 +560,7 @@ func (client GroupsClient) listNextResults(ctx context.Context, lastResults Grou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -618,6 +624,7 @@ func (client GroupsClient) ListResources(ctx context.Context, resourceGroupName result.lr, err = client.ListResourcesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "ListResources", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -690,6 +697,7 @@ func (client GroupsClient) listResourcesNextResults(ctx context.Context, lastRes result, err = client.ListResourcesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "listResourcesNextResults", resp, "Failure responding to next results request") + return } return } @@ -750,6 +758,7 @@ func (client GroupsClient) Patch(ctx context.Context, resourceGroupName string, result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Patch", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2016-09-01/resources/providers.go b/services/resources/mgmt/2016-09-01/resources/providers.go index 1c8262e88397..6998f20730ec 100644 --- a/services/resources/mgmt/2016-09-01/resources/providers.go +++ b/services/resources/mgmt/2016-09-01/resources/providers.go @@ -73,6 +73,7 @@ func (client ProvidersClient) Get(ctx context.Context, resourceProviderNamespace result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Get", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client ProvidersClient) List(ctx context.Context, top *int32, expand strin result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -221,6 +223,7 @@ func (client ProvidersClient) listNextResults(ctx context.Context, lastResults P result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -271,6 +274,7 @@ func (client ProvidersClient) Register(ctx context.Context, resourceProviderName result, err = client.RegisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Register", resp, "Failure responding to request") + return } return @@ -344,6 +348,7 @@ func (client ProvidersClient) Unregister(ctx context.Context, resourceProviderNa result, err = client.UnregisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Unregister", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2016-09-01/resources/resources.go b/services/resources/mgmt/2016-09-01/resources/resources.go index 09e74c71bd1c..17eee5370162 100644 --- a/services/resources/mgmt/2016-09-01/resources/resources.go +++ b/services/resources/mgmt/2016-09-01/resources/resources.go @@ -86,6 +86,7 @@ func (client Client) CheckExistence(ctx context.Context, resourceGroupName strin result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "CheckExistence", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client Client) CheckExistenceByID(ctx context.Context, resourceID string, result, err = client.CheckExistenceByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "CheckExistenceByID", resp, "Failure responding to request") + return } return @@ -589,6 +591,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "Get", resp, "Failure responding to request") + return } return @@ -668,6 +671,7 @@ func (client Client) GetByID(ctx context.Context, resourceID string, APIVersion result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "GetByID", resp, "Failure responding to request") + return } return @@ -743,6 +747,7 @@ func (client Client) List(ctx context.Context, filter string, expand string, top result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -814,6 +819,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2016-09-01/resources/tags.go b/services/resources/mgmt/2016-09-01/resources/tags.go index d47c2720faf9..5fdce5818e1e 100644 --- a/services/resources/mgmt/2016-09-01/resources/tags.go +++ b/services/resources/mgmt/2016-09-01/resources/tags.go @@ -72,6 +72,7 @@ func (client TagsClient) CreateOrUpdate(ctx context.Context, tagName string) (re result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client TagsClient) CreateOrUpdateValue(ctx context.Context, tagName string result, err = client.CreateOrUpdateValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdateValue", resp, "Failure responding to request") + return } return @@ -220,6 +222,7 @@ func (client TagsClient) Delete(ctx context.Context, tagName string) (result aut result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "Delete", resp, "Failure responding to request") + return } return @@ -293,6 +296,7 @@ func (client TagsClient) DeleteValue(ctx context.Context, tagName string, tagVal result, err = client.DeleteValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "DeleteValue", resp, "Failure responding to request") + return } return @@ -365,6 +369,7 @@ func (client TagsClient) List(ctx context.Context) (result TagsListResultPage, e result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -427,6 +432,7 @@ func (client TagsClient) listNextResults(ctx context.Context, lastResults TagsLi result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2016-12-01/policy/assignments.go b/services/resources/mgmt/2016-12-01/policy/assignments.go index 08562bba4e30..0a69e56491ef 100644 --- a/services/resources/mgmt/2016-12-01/policy/assignments.go +++ b/services/resources/mgmt/2016-12-01/policy/assignments.go @@ -76,6 +76,7 @@ func (client AssignmentsClient) Create(ctx context.Context, scope string, policy result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Create", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client AssignmentsClient) CreateByID(ctx context.Context, policyAssignment result, err = client.CreateByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "CreateByID", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client AssignmentsClient) Delete(ctx context.Context, scope string, policy result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -312,6 +315,7 @@ func (client AssignmentsClient) DeleteByID(ctx context.Context, policyAssignment result, err = client.DeleteByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "DeleteByID", resp, "Failure responding to request") + return } return @@ -385,6 +389,7 @@ func (client AssignmentsClient) Get(ctx context.Context, scope string, policyAss result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -462,6 +467,7 @@ func (client AssignmentsClient) GetByID(ctx context.Context, policyAssignmentID result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -535,6 +541,7 @@ func (client AssignmentsClient) List(ctx context.Context, filter string) (result result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -600,6 +607,7 @@ func (client AssignmentsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -664,6 +672,7 @@ func (client AssignmentsClient) ListForResource(ctx context.Context, resourceGro result.alr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResource", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -734,6 +743,7 @@ func (client AssignmentsClient) listForResourceNextResults(ctx context.Context, result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -794,6 +804,7 @@ func (client AssignmentsClient) ListForResourceGroup(ctx context.Context, resour result.alr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -860,6 +871,7 @@ func (client AssignmentsClient) listForResourceGroupNextResults(ctx context.Cont result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2016-12-01/policy/definitions.go b/services/resources/mgmt/2016-12-01/policy/definitions.go index 2a145f8d7631..419e8870904d 100644 --- a/services/resources/mgmt/2016-12-01/policy/definitions.go +++ b/services/resources/mgmt/2016-12-01/policy/definitions.go @@ -73,6 +73,7 @@ func (client DefinitionsClient) CreateOrUpdate(ctx context.Context, policyDefini result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client DefinitionsClient) CreateOrUpdateAtManagementGroup(ctx context.Cont result, err = client.CreateOrUpdateAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdateAtManagementGroup", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client DefinitionsClient) Delete(ctx context.Context, policyDefinitionName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -302,6 +305,7 @@ func (client DefinitionsClient) DeleteAtManagementGroup(ctx context.Context, pol result, err = client.DeleteAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "DeleteAtManagementGroup", resp, "Failure responding to request") + return } return @@ -374,6 +378,7 @@ func (client DefinitionsClient) Get(ctx context.Context, policyDefinitionName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -448,6 +453,7 @@ func (client DefinitionsClient) GetAtManagementGroup(ctx context.Context, policy result, err = client.GetAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "GetAtManagementGroup", resp, "Failure responding to request") + return } return @@ -521,6 +527,7 @@ func (client DefinitionsClient) GetBuiltIn(ctx context.Context, policyDefinition result, err = client.GetBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "GetBuiltIn", resp, "Failure responding to request") + return } return @@ -592,6 +599,7 @@ func (client DefinitionsClient) List(ctx context.Context) (result DefinitionList result.dlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "List", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -654,6 +662,7 @@ func (client DefinitionsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -703,6 +712,7 @@ func (client DefinitionsClient) ListBuiltIn(ctx context.Context) (result Definit result.dlr, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "ListBuiltIn", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -761,6 +771,7 @@ func (client DefinitionsClient) listBuiltInNextResults(ctx context.Context, last result, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listBuiltInNextResults", resp, "Failure responding to next results request") + return } return } @@ -812,6 +823,7 @@ func (client DefinitionsClient) ListByManagementGroup(ctx context.Context, manag result.dlr, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "ListByManagementGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -874,6 +886,7 @@ func (client DefinitionsClient) listByManagementGroupNextResults(ctx context.Con result, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listByManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2017-05-10/resources/deploymentoperations.go b/services/resources/mgmt/2017-05-10/resources/deploymentoperations.go index a16502e5303e..c2c658587aa2 100644 --- a/services/resources/mgmt/2017-05-10/resources/deploymentoperations.go +++ b/services/resources/mgmt/2017-05-10/resources/deploymentoperations.go @@ -87,6 +87,7 @@ func (client DeploymentOperationsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "Get", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client DeploymentOperationsClient) List(ctx context.Context, resourceGroup result.dolr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "List", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -244,6 +246,7 @@ func (client DeploymentOperationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2017-05-10/resources/deployments.go b/services/resources/mgmt/2017-05-10/resources/deployments.go index 3a98ae228058..f04e2935263a 100644 --- a/services/resources/mgmt/2017-05-10/resources/deployments.go +++ b/services/resources/mgmt/2017-05-10/resources/deployments.go @@ -72,6 +72,7 @@ func (client DeploymentsClient) CalculateTemplateHash(ctx context.Context, templ result, err = client.CalculateTemplateHashResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CalculateTemplateHash", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client DeploymentsClient) Cancel(ctx context.Context, resourceGroupName st result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client DeploymentsClient) CheckExistence(ctx context.Context, resourceGrou result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistence", resp, "Failure responding to request") + return } return @@ -521,6 +524,7 @@ func (client DeploymentsClient) ExportTemplate(ctx context.Context, resourceGrou result, err = client.ExportTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplate", resp, "Failure responding to request") + return } return @@ -608,6 +612,7 @@ func (client DeploymentsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Get", resp, "Failure responding to request") + return } return @@ -695,6 +700,7 @@ func (client DeploymentsClient) ListByResourceGroup(ctx context.Context, resourc result.dlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -764,6 +770,7 @@ func (client DeploymentsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -837,6 +844,7 @@ func (client DeploymentsClient) Validate(ctx context.Context, resourceGroupName result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Validate", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2017-05-10/resources/groups.go b/services/resources/mgmt/2017-05-10/resources/groups.go index 4449e467f2b3..cfdf11d291a1 100644 --- a/services/resources/mgmt/2017-05-10/resources/groups.go +++ b/services/resources/mgmt/2017-05-10/resources/groups.go @@ -80,6 +80,7 @@ func (client GroupsClient) CheckExistence(ctx context.Context, resourceGroupName result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CheckExistence", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client GroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -329,6 +331,7 @@ func (client GroupsClient) ExportTemplate(ctx context.Context, resourceGroupName result, err = client.ExportTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "ExportTemplate", resp, "Failure responding to request") + return } return @@ -412,6 +415,7 @@ func (client GroupsClient) Get(ctx context.Context, resourceGroupName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -487,6 +491,7 @@ func (client GroupsClient) List(ctx context.Context, filter string, top *int32) result.glr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "List", resp, "Failure responding to request") + return } if result.glr.hasNextLink() && result.glr.IsEmpty() { err = result.NextWithContext(ctx) @@ -555,6 +560,7 @@ func (client GroupsClient) listNextResults(ctx context.Context, lastResults Grou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -615,6 +621,7 @@ func (client GroupsClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2017-05-10/resources/providers.go b/services/resources/mgmt/2017-05-10/resources/providers.go index 39526439c180..b45a74dc50b5 100644 --- a/services/resources/mgmt/2017-05-10/resources/providers.go +++ b/services/resources/mgmt/2017-05-10/resources/providers.go @@ -73,6 +73,7 @@ func (client ProvidersClient) Get(ctx context.Context, resourceProviderNamespace result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Get", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client ProvidersClient) List(ctx context.Context, top *int32, expand strin result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -221,6 +223,7 @@ func (client ProvidersClient) listNextResults(ctx context.Context, lastResults P result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -271,6 +274,7 @@ func (client ProvidersClient) Register(ctx context.Context, resourceProviderName result, err = client.RegisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Register", resp, "Failure responding to request") + return } return @@ -344,6 +348,7 @@ func (client ProvidersClient) Unregister(ctx context.Context, resourceProviderNa result, err = client.UnregisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Unregister", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2017-05-10/resources/resources.go b/services/resources/mgmt/2017-05-10/resources/resources.go index 805394f3e093..19003759879d 100644 --- a/services/resources/mgmt/2017-05-10/resources/resources.go +++ b/services/resources/mgmt/2017-05-10/resources/resources.go @@ -86,6 +86,7 @@ func (client Client) CheckExistence(ctx context.Context, resourceGroupName strin result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "CheckExistence", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client Client) CheckExistenceByID(ctx context.Context, resourceID string, result, err = client.CheckExistenceByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "CheckExistenceByID", resp, "Failure responding to request") + return } return @@ -589,6 +591,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "Get", resp, "Failure responding to request") + return } return @@ -668,6 +671,7 @@ func (client Client) GetByID(ctx context.Context, resourceID string, APIVersion result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "GetByID", resp, "Failure responding to request") + return } return @@ -743,6 +747,7 @@ func (client Client) List(ctx context.Context, filter string, expand string, top result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -814,6 +819,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -877,6 +883,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -949,6 +956,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2017-05-10/resources/tags.go b/services/resources/mgmt/2017-05-10/resources/tags.go index 1ff0e92aebc2..8d144561454e 100644 --- a/services/resources/mgmt/2017-05-10/resources/tags.go +++ b/services/resources/mgmt/2017-05-10/resources/tags.go @@ -72,6 +72,7 @@ func (client TagsClient) CreateOrUpdate(ctx context.Context, tagName string) (re result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client TagsClient) CreateOrUpdateValue(ctx context.Context, tagName string result, err = client.CreateOrUpdateValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdateValue", resp, "Failure responding to request") + return } return @@ -220,6 +222,7 @@ func (client TagsClient) Delete(ctx context.Context, tagName string) (result aut result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "Delete", resp, "Failure responding to request") + return } return @@ -293,6 +296,7 @@ func (client TagsClient) DeleteValue(ctx context.Context, tagName string, tagVal result, err = client.DeleteValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "DeleteValue", resp, "Failure responding to request") + return } return @@ -365,6 +369,7 @@ func (client TagsClient) List(ctx context.Context) (result TagsListResultPage, e result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -427,6 +432,7 @@ func (client TagsClient) listNextResults(ctx context.Context, lastResults TagsLi result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2017-09-01/managedapplications/applicationdefinitions.go b/services/resources/mgmt/2017-09-01/managedapplications/applicationdefinitions.go index 2de2b5df5b84..061ab96ab852 100644 --- a/services/resources/mgmt/2017-09-01/managedapplications/applicationdefinitions.go +++ b/services/resources/mgmt/2017-09-01/managedapplications/applicationdefinitions.go @@ -419,6 +419,7 @@ func (client ApplicationDefinitionsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -495,6 +496,7 @@ func (client ApplicationDefinitionsClient) GetByID(ctx context.Context, applicat result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationDefinitionsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -576,6 +578,7 @@ func (client ApplicationDefinitionsClient) ListByResourceGroup(ctx context.Conte result.adlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationDefinitionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.adlr.hasNextLink() && result.adlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -639,6 +642,7 @@ func (client ApplicationDefinitionsClient) listByResourceGroupNextResults(ctx co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationDefinitionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2017-09-01/managedapplications/applications.go b/services/resources/mgmt/2017-09-01/managedapplications/applications.go index f34e5c369abd..71c58be8e549 100644 --- a/services/resources/mgmt/2017-09-01/managedapplications/applications.go +++ b/services/resources/mgmt/2017-09-01/managedapplications/applications.go @@ -434,6 +434,7 @@ func (client ApplicationsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -510,6 +511,7 @@ func (client ApplicationsClient) GetByID(ctx context.Context, applicationID stri result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -591,6 +593,7 @@ func (client ApplicationsClient) ListByResourceGroup(ctx context.Context, resour result.alr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -654,6 +657,7 @@ func (client ApplicationsClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -703,6 +707,7 @@ func (client ApplicationsClient) ListBySubscription(ctx context.Context) (result result.alr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -765,6 +770,7 @@ func (client ApplicationsClient) listBySubscriptionNextResults(ctx context.Conte result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -828,6 +834,7 @@ func (client ApplicationsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationsClient", "Update", resp, "Failure responding to request") + return } return @@ -911,6 +918,7 @@ func (client ApplicationsClient) UpdateByID(ctx context.Context, applicationID s result, err = client.UpdateByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationsClient", "UpdateByID", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2018-02-01/resources/deploymentoperations.go b/services/resources/mgmt/2018-02-01/resources/deploymentoperations.go index e663cee92f75..2d42d87a9af6 100644 --- a/services/resources/mgmt/2018-02-01/resources/deploymentoperations.go +++ b/services/resources/mgmt/2018-02-01/resources/deploymentoperations.go @@ -87,6 +87,7 @@ func (client DeploymentOperationsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "Get", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client DeploymentOperationsClient) List(ctx context.Context, resourceGroup result.dolr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "List", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -244,6 +246,7 @@ func (client DeploymentOperationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2018-02-01/resources/deployments.go b/services/resources/mgmt/2018-02-01/resources/deployments.go index c0263c4bcbc4..05ac82291c2b 100644 --- a/services/resources/mgmt/2018-02-01/resources/deployments.go +++ b/services/resources/mgmt/2018-02-01/resources/deployments.go @@ -72,6 +72,7 @@ func (client DeploymentsClient) CalculateTemplateHash(ctx context.Context, templ result, err = client.CalculateTemplateHashResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CalculateTemplateHash", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client DeploymentsClient) Cancel(ctx context.Context, resourceGroupName st result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client DeploymentsClient) CheckExistence(ctx context.Context, resourceGrou result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistence", resp, "Failure responding to request") + return } return @@ -521,6 +524,7 @@ func (client DeploymentsClient) ExportTemplate(ctx context.Context, resourceGrou result, err = client.ExportTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplate", resp, "Failure responding to request") + return } return @@ -608,6 +612,7 @@ func (client DeploymentsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Get", resp, "Failure responding to request") + return } return @@ -695,6 +700,7 @@ func (client DeploymentsClient) ListByResourceGroup(ctx context.Context, resourc result.dlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -764,6 +770,7 @@ func (client DeploymentsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -837,6 +844,7 @@ func (client DeploymentsClient) Validate(ctx context.Context, resourceGroupName result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Validate", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2018-02-01/resources/groups.go b/services/resources/mgmt/2018-02-01/resources/groups.go index acdf9f80b1b8..a5dee928a123 100644 --- a/services/resources/mgmt/2018-02-01/resources/groups.go +++ b/services/resources/mgmt/2018-02-01/resources/groups.go @@ -80,6 +80,7 @@ func (client GroupsClient) CheckExistence(ctx context.Context, resourceGroupName result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CheckExistence", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client GroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -329,6 +331,7 @@ func (client GroupsClient) ExportTemplate(ctx context.Context, resourceGroupName result, err = client.ExportTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "ExportTemplate", resp, "Failure responding to request") + return } return @@ -412,6 +415,7 @@ func (client GroupsClient) Get(ctx context.Context, resourceGroupName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -487,6 +491,7 @@ func (client GroupsClient) List(ctx context.Context, filter string, top *int32) result.glr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "List", resp, "Failure responding to request") + return } if result.glr.hasNextLink() && result.glr.IsEmpty() { err = result.NextWithContext(ctx) @@ -555,6 +560,7 @@ func (client GroupsClient) listNextResults(ctx context.Context, lastResults Grou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -615,6 +621,7 @@ func (client GroupsClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2018-02-01/resources/providers.go b/services/resources/mgmt/2018-02-01/resources/providers.go index a89042e81ec6..9e8f9309df23 100644 --- a/services/resources/mgmt/2018-02-01/resources/providers.go +++ b/services/resources/mgmt/2018-02-01/resources/providers.go @@ -73,6 +73,7 @@ func (client ProvidersClient) Get(ctx context.Context, resourceProviderNamespace result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Get", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client ProvidersClient) List(ctx context.Context, top *int32, expand strin result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -221,6 +223,7 @@ func (client ProvidersClient) listNextResults(ctx context.Context, lastResults P result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -271,6 +274,7 @@ func (client ProvidersClient) Register(ctx context.Context, resourceProviderName result, err = client.RegisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Register", resp, "Failure responding to request") + return } return @@ -344,6 +348,7 @@ func (client ProvidersClient) Unregister(ctx context.Context, resourceProviderNa result, err = client.UnregisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Unregister", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2018-02-01/resources/resources.go b/services/resources/mgmt/2018-02-01/resources/resources.go index ac4f953ae7a3..316ad317c0a9 100644 --- a/services/resources/mgmt/2018-02-01/resources/resources.go +++ b/services/resources/mgmt/2018-02-01/resources/resources.go @@ -86,6 +86,7 @@ func (client Client) CheckExistence(ctx context.Context, resourceGroupName strin result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "CheckExistence", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client Client) CheckExistenceByID(ctx context.Context, resourceID string, result, err = client.CheckExistenceByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "CheckExistenceByID", resp, "Failure responding to request") + return } return @@ -589,6 +591,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "Get", resp, "Failure responding to request") + return } return @@ -668,6 +671,7 @@ func (client Client) GetByID(ctx context.Context, resourceID string, APIVersion result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "GetByID", resp, "Failure responding to request") + return } return @@ -742,6 +746,7 @@ func (client Client) List(ctx context.Context, filter string, expand string, top result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -813,6 +818,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -876,6 +882,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -948,6 +955,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2018-02-01/resources/tags.go b/services/resources/mgmt/2018-02-01/resources/tags.go index 103ef7c3092e..e1e1fc56a2c5 100644 --- a/services/resources/mgmt/2018-02-01/resources/tags.go +++ b/services/resources/mgmt/2018-02-01/resources/tags.go @@ -72,6 +72,7 @@ func (client TagsClient) CreateOrUpdate(ctx context.Context, tagName string) (re result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client TagsClient) CreateOrUpdateValue(ctx context.Context, tagName string result, err = client.CreateOrUpdateValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdateValue", resp, "Failure responding to request") + return } return @@ -220,6 +222,7 @@ func (client TagsClient) Delete(ctx context.Context, tagName string) (result aut result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "Delete", resp, "Failure responding to request") + return } return @@ -293,6 +296,7 @@ func (client TagsClient) DeleteValue(ctx context.Context, tagName string, tagVal result, err = client.DeleteValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "DeleteValue", resp, "Failure responding to request") + return } return @@ -365,6 +369,7 @@ func (client TagsClient) List(ctx context.Context) (result TagsListResultPage, e result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -427,6 +432,7 @@ func (client TagsClient) listNextResults(ctx context.Context, lastResults TagsLi result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2018-03-01/policy/assignments.go b/services/resources/mgmt/2018-03-01/policy/assignments.go index 09a95e380307..0a379816080c 100644 --- a/services/resources/mgmt/2018-03-01/policy/assignments.go +++ b/services/resources/mgmt/2018-03-01/policy/assignments.go @@ -88,6 +88,7 @@ func (client AssignmentsClient) Create(ctx context.Context, scope string, policy result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Create", resp, "Failure responding to request") + return } return @@ -182,6 +183,7 @@ func (client AssignmentsClient) CreateByID(ctx context.Context, policyAssignment result, err = client.CreateByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "CreateByID", resp, "Failure responding to request") + return } return @@ -266,6 +268,7 @@ func (client AssignmentsClient) Delete(ctx context.Context, scope string, policy result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -346,6 +349,7 @@ func (client AssignmentsClient) DeleteByID(ctx context.Context, policyAssignment result, err = client.DeleteByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "DeleteByID", resp, "Failure responding to request") + return } return @@ -423,6 +427,7 @@ func (client AssignmentsClient) Get(ctx context.Context, scope string, policyAss result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -502,6 +507,7 @@ func (client AssignmentsClient) GetByID(ctx context.Context, policyAssignmentID result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -583,6 +589,7 @@ func (client AssignmentsClient) List(ctx context.Context, filter string) (result result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -648,6 +655,7 @@ func (client AssignmentsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -732,6 +740,7 @@ func (client AssignmentsClient) ListForResource(ctx context.Context, resourceGro result.alr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResource", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -802,6 +811,7 @@ func (client AssignmentsClient) listForResourceNextResults(ctx context.Context, result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -871,6 +881,7 @@ func (client AssignmentsClient) ListForResourceGroup(ctx context.Context, resour result.alr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -937,6 +948,7 @@ func (client AssignmentsClient) listForResourceGroupNextResults(ctx context.Cont result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2018-03-01/policy/definitions.go b/services/resources/mgmt/2018-03-01/policy/definitions.go index ccd4519c4606..1ae0330b8aaa 100644 --- a/services/resources/mgmt/2018-03-01/policy/definitions.go +++ b/services/resources/mgmt/2018-03-01/policy/definitions.go @@ -73,6 +73,7 @@ func (client DefinitionsClient) CreateOrUpdate(ctx context.Context, policyDefini result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client DefinitionsClient) CreateOrUpdateAtManagementGroup(ctx context.Cont result, err = client.CreateOrUpdateAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdateAtManagementGroup", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client DefinitionsClient) Delete(ctx context.Context, policyDefinitionName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -306,6 +309,7 @@ func (client DefinitionsClient) DeleteAtManagementGroup(ctx context.Context, pol result, err = client.DeleteAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "DeleteAtManagementGroup", resp, "Failure responding to request") + return } return @@ -378,6 +382,7 @@ func (client DefinitionsClient) Get(ctx context.Context, policyDefinitionName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -453,6 +458,7 @@ func (client DefinitionsClient) GetAtManagementGroup(ctx context.Context, policy result, err = client.GetAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "GetAtManagementGroup", resp, "Failure responding to request") + return } return @@ -526,6 +532,7 @@ func (client DefinitionsClient) GetBuiltIn(ctx context.Context, policyDefinition result, err = client.GetBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "GetBuiltIn", resp, "Failure responding to request") + return } return @@ -597,6 +604,7 @@ func (client DefinitionsClient) List(ctx context.Context) (result DefinitionList result.dlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "List", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -659,6 +667,7 @@ func (client DefinitionsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -708,6 +717,7 @@ func (client DefinitionsClient) ListBuiltIn(ctx context.Context) (result Definit result.dlr, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "ListBuiltIn", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -766,6 +776,7 @@ func (client DefinitionsClient) listBuiltInNextResults(ctx context.Context, last result, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listBuiltInNextResults", resp, "Failure responding to next results request") + return } return } @@ -817,6 +828,7 @@ func (client DefinitionsClient) ListByManagementGroup(ctx context.Context, manag result.dlr, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "ListByManagementGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -879,6 +891,7 @@ func (client DefinitionsClient) listByManagementGroupNextResults(ctx context.Con result, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listByManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2018-03-01/policy/setdefinitions.go b/services/resources/mgmt/2018-03-01/policy/setdefinitions.go index 3468ffa641ed..0d34de53a389 100644 --- a/services/resources/mgmt/2018-03-01/policy/setdefinitions.go +++ b/services/resources/mgmt/2018-03-01/policy/setdefinitions.go @@ -82,6 +82,7 @@ func (client SetDefinitionsClient) CreateOrUpdate(ctx context.Context, policySet result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client SetDefinitionsClient) CreateOrUpdateAtManagementGroup(ctx context.C result, err = client.CreateOrUpdateAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "CreateOrUpdateAtManagementGroup", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client SetDefinitionsClient) Delete(ctx context.Context, policySetDefiniti result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -322,6 +325,7 @@ func (client SetDefinitionsClient) DeleteAtManagementGroup(ctx context.Context, result, err = client.DeleteAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "DeleteAtManagementGroup", resp, "Failure responding to request") + return } return @@ -394,6 +398,7 @@ func (client SetDefinitionsClient) Get(ctx context.Context, policySetDefinitionN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -469,6 +474,7 @@ func (client SetDefinitionsClient) GetAtManagementGroup(ctx context.Context, pol result, err = client.GetAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "GetAtManagementGroup", resp, "Failure responding to request") + return } return @@ -542,6 +548,7 @@ func (client SetDefinitionsClient) GetBuiltIn(ctx context.Context, policySetDefi result, err = client.GetBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "GetBuiltIn", resp, "Failure responding to request") + return } return @@ -613,6 +620,7 @@ func (client SetDefinitionsClient) List(ctx context.Context) (result SetDefiniti result.sdlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "List", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -675,6 +683,7 @@ func (client SetDefinitionsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -724,6 +733,7 @@ func (client SetDefinitionsClient) ListBuiltIn(ctx context.Context) (result SetD result.sdlr, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "ListBuiltIn", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -782,6 +792,7 @@ func (client SetDefinitionsClient) listBuiltInNextResults(ctx context.Context, l result, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listBuiltInNextResults", resp, "Failure responding to next results request") + return } return } @@ -834,6 +845,7 @@ func (client SetDefinitionsClient) ListByManagementGroup(ctx context.Context, ma result.sdlr, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "ListByManagementGroup", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -896,6 +908,7 @@ func (client SetDefinitionsClient) listByManagementGroupNextResults(ctx context. result, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listByManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2018-05-01/policy/assignments.go b/services/resources/mgmt/2018-05-01/policy/assignments.go index 94eff670f0cf..72eb100276f9 100644 --- a/services/resources/mgmt/2018-05-01/policy/assignments.go +++ b/services/resources/mgmt/2018-05-01/policy/assignments.go @@ -88,6 +88,7 @@ func (client AssignmentsClient) Create(ctx context.Context, scope string, policy result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Create", resp, "Failure responding to request") + return } return @@ -182,6 +183,7 @@ func (client AssignmentsClient) CreateByID(ctx context.Context, policyAssignment result, err = client.CreateByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "CreateByID", resp, "Failure responding to request") + return } return @@ -266,6 +268,7 @@ func (client AssignmentsClient) Delete(ctx context.Context, scope string, policy result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -346,6 +349,7 @@ func (client AssignmentsClient) DeleteByID(ctx context.Context, policyAssignment result, err = client.DeleteByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "DeleteByID", resp, "Failure responding to request") + return } return @@ -423,6 +427,7 @@ func (client AssignmentsClient) Get(ctx context.Context, scope string, policyAss result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -502,6 +507,7 @@ func (client AssignmentsClient) GetByID(ctx context.Context, policyAssignmentID result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -583,6 +589,7 @@ func (client AssignmentsClient) List(ctx context.Context, filter string) (result result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -648,6 +655,7 @@ func (client AssignmentsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -732,6 +740,7 @@ func (client AssignmentsClient) ListForResource(ctx context.Context, resourceGro result.alr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResource", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -802,6 +811,7 @@ func (client AssignmentsClient) listForResourceNextResults(ctx context.Context, result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -871,6 +881,7 @@ func (client AssignmentsClient) ListForResourceGroup(ctx context.Context, resour result.alr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -937,6 +948,7 @@ func (client AssignmentsClient) listForResourceGroupNextResults(ctx context.Cont result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2018-05-01/policy/definitions.go b/services/resources/mgmt/2018-05-01/policy/definitions.go index 3281dadd19c6..e454e2c22c16 100644 --- a/services/resources/mgmt/2018-05-01/policy/definitions.go +++ b/services/resources/mgmt/2018-05-01/policy/definitions.go @@ -73,6 +73,7 @@ func (client DefinitionsClient) CreateOrUpdate(ctx context.Context, policyDefini result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client DefinitionsClient) CreateOrUpdateAtManagementGroup(ctx context.Cont result, err = client.CreateOrUpdateAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdateAtManagementGroup", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client DefinitionsClient) Delete(ctx context.Context, policyDefinitionName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -306,6 +309,7 @@ func (client DefinitionsClient) DeleteAtManagementGroup(ctx context.Context, pol result, err = client.DeleteAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "DeleteAtManagementGroup", resp, "Failure responding to request") + return } return @@ -378,6 +382,7 @@ func (client DefinitionsClient) Get(ctx context.Context, policyDefinitionName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -453,6 +458,7 @@ func (client DefinitionsClient) GetAtManagementGroup(ctx context.Context, policy result, err = client.GetAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "GetAtManagementGroup", resp, "Failure responding to request") + return } return @@ -526,6 +532,7 @@ func (client DefinitionsClient) GetBuiltIn(ctx context.Context, policyDefinition result, err = client.GetBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "GetBuiltIn", resp, "Failure responding to request") + return } return @@ -597,6 +604,7 @@ func (client DefinitionsClient) List(ctx context.Context) (result DefinitionList result.dlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "List", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -659,6 +667,7 @@ func (client DefinitionsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -708,6 +717,7 @@ func (client DefinitionsClient) ListBuiltIn(ctx context.Context) (result Definit result.dlr, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "ListBuiltIn", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -766,6 +776,7 @@ func (client DefinitionsClient) listBuiltInNextResults(ctx context.Context, last result, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listBuiltInNextResults", resp, "Failure responding to next results request") + return } return } @@ -817,6 +828,7 @@ func (client DefinitionsClient) ListByManagementGroup(ctx context.Context, manag result.dlr, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "ListByManagementGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -879,6 +891,7 @@ func (client DefinitionsClient) listByManagementGroupNextResults(ctx context.Con result, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listByManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2018-05-01/policy/setdefinitions.go b/services/resources/mgmt/2018-05-01/policy/setdefinitions.go index 13924bee8da4..76bf672eda91 100644 --- a/services/resources/mgmt/2018-05-01/policy/setdefinitions.go +++ b/services/resources/mgmt/2018-05-01/policy/setdefinitions.go @@ -82,6 +82,7 @@ func (client SetDefinitionsClient) CreateOrUpdate(ctx context.Context, policySet result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client SetDefinitionsClient) CreateOrUpdateAtManagementGroup(ctx context.C result, err = client.CreateOrUpdateAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "CreateOrUpdateAtManagementGroup", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client SetDefinitionsClient) Delete(ctx context.Context, policySetDefiniti result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -322,6 +325,7 @@ func (client SetDefinitionsClient) DeleteAtManagementGroup(ctx context.Context, result, err = client.DeleteAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "DeleteAtManagementGroup", resp, "Failure responding to request") + return } return @@ -394,6 +398,7 @@ func (client SetDefinitionsClient) Get(ctx context.Context, policySetDefinitionN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -469,6 +474,7 @@ func (client SetDefinitionsClient) GetAtManagementGroup(ctx context.Context, pol result, err = client.GetAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "GetAtManagementGroup", resp, "Failure responding to request") + return } return @@ -542,6 +548,7 @@ func (client SetDefinitionsClient) GetBuiltIn(ctx context.Context, policySetDefi result, err = client.GetBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "GetBuiltIn", resp, "Failure responding to request") + return } return @@ -613,6 +620,7 @@ func (client SetDefinitionsClient) List(ctx context.Context) (result SetDefiniti result.sdlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "List", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -675,6 +683,7 @@ func (client SetDefinitionsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -724,6 +733,7 @@ func (client SetDefinitionsClient) ListBuiltIn(ctx context.Context) (result SetD result.sdlr, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "ListBuiltIn", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -782,6 +792,7 @@ func (client SetDefinitionsClient) listBuiltInNextResults(ctx context.Context, l result, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listBuiltInNextResults", resp, "Failure responding to next results request") + return } return } @@ -834,6 +845,7 @@ func (client SetDefinitionsClient) ListByManagementGroup(ctx context.Context, ma result.sdlr, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "ListByManagementGroup", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -896,6 +908,7 @@ func (client SetDefinitionsClient) listByManagementGroupNextResults(ctx context. result, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listByManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2018-05-01/resources/deploymentoperations.go b/services/resources/mgmt/2018-05-01/resources/deploymentoperations.go index fda4ba61d183..5009a8c0c3f0 100644 --- a/services/resources/mgmt/2018-05-01/resources/deploymentoperations.go +++ b/services/resources/mgmt/2018-05-01/resources/deploymentoperations.go @@ -87,6 +87,7 @@ func (client DeploymentOperationsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "Get", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client DeploymentOperationsClient) GetAtSubscriptionScope(ctx context.Cont result, err = client.GetAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "GetAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client DeploymentOperationsClient) List(ctx context.Context, resourceGroup result.dolr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "List", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -327,6 +330,7 @@ func (client DeploymentOperationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -387,6 +391,7 @@ func (client DeploymentOperationsClient) ListAtSubscriptionScope(ctx context.Con result.dolr, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "ListAtSubscriptionScope", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -453,6 +458,7 @@ func (client DeploymentOperationsClient) listAtSubscriptionScopeNextResults(ctx result, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listAtSubscriptionScopeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2018-05-01/resources/deployments.go b/services/resources/mgmt/2018-05-01/resources/deployments.go index da9b0ceaea0e..82d08b69e877 100644 --- a/services/resources/mgmt/2018-05-01/resources/deployments.go +++ b/services/resources/mgmt/2018-05-01/resources/deployments.go @@ -72,6 +72,7 @@ func (client DeploymentsClient) CalculateTemplateHash(ctx context.Context, templ result, err = client.CalculateTemplateHashResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CalculateTemplateHash", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client DeploymentsClient) Cancel(ctx context.Context, resourceGroupName st result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client DeploymentsClient) CancelAtSubscriptionScope(ctx context.Context, d result, err = client.CancelAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CancelAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -326,6 +329,7 @@ func (client DeploymentsClient) CheckExistence(ctx context.Context, resourceGrou result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistence", resp, "Failure responding to request") + return } return @@ -407,6 +411,7 @@ func (client DeploymentsClient) CheckExistenceAtSubscriptionScope(ctx context.Co result, err = client.CheckExistenceAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistenceAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -860,6 +865,7 @@ func (client DeploymentsClient) ExportTemplate(ctx context.Context, resourceGrou result, err = client.ExportTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplate", resp, "Failure responding to request") + return } return @@ -942,6 +948,7 @@ func (client DeploymentsClient) ExportTemplateAtSubscriptionScope(ctx context.Co result, err = client.ExportTemplateAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplateAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -1028,6 +1035,7 @@ func (client DeploymentsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Get", resp, "Failure responding to request") + return } return @@ -1110,6 +1118,7 @@ func (client DeploymentsClient) GetAtSubscriptionScope(ctx context.Context, depl result, err = client.GetAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "GetAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -1186,6 +1195,7 @@ func (client DeploymentsClient) ListAtSubscriptionScope(ctx context.Context, fil result.dlr, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ListAtSubscriptionScope", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1254,6 +1264,7 @@ func (client DeploymentsClient) listAtSubscriptionScopeNextResults(ctx context.C result, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listAtSubscriptionScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -1317,6 +1328,7 @@ func (client DeploymentsClient) ListByResourceGroup(ctx context.Context, resourc result.dlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1386,6 +1398,7 @@ func (client DeploymentsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1459,6 +1472,7 @@ func (client DeploymentsClient) Validate(ctx context.Context, resourceGroupName result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Validate", resp, "Failure responding to request") + return } return @@ -1552,6 +1566,7 @@ func (client DeploymentsClient) ValidateAtSubscriptionScope(ctx context.Context, result, err = client.ValidateAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ValidateAtSubscriptionScope", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2018-05-01/resources/groups.go b/services/resources/mgmt/2018-05-01/resources/groups.go index cfe1ba2b98b8..4ea77b0b0e83 100644 --- a/services/resources/mgmt/2018-05-01/resources/groups.go +++ b/services/resources/mgmt/2018-05-01/resources/groups.go @@ -80,6 +80,7 @@ func (client GroupsClient) CheckExistence(ctx context.Context, resourceGroupName result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CheckExistence", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client GroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -333,6 +335,7 @@ func (client GroupsClient) ExportTemplate(ctx context.Context, resourceGroupName result, err = client.ExportTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "ExportTemplate", resp, "Failure responding to request") + return } return @@ -416,6 +419,7 @@ func (client GroupsClient) Get(ctx context.Context, resourceGroupName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -492,6 +496,7 @@ func (client GroupsClient) List(ctx context.Context, filter string, top *int32) result.glr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "List", resp, "Failure responding to request") + return } if result.glr.hasNextLink() && result.glr.IsEmpty() { err = result.NextWithContext(ctx) @@ -560,6 +565,7 @@ func (client GroupsClient) listNextResults(ctx context.Context, lastResults Grou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -620,6 +626,7 @@ func (client GroupsClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2018-05-01/resources/operations.go b/services/resources/mgmt/2018-05-01/resources/operations.go index 4a58f5079d9c..92cc8e0a77c9 100644 --- a/services/resources/mgmt/2018-05-01/resources/operations.go +++ b/services/resources/mgmt/2018-05-01/resources/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2018-05-01/resources/providers.go b/services/resources/mgmt/2018-05-01/resources/providers.go index 049b14a67953..c1ead63560a6 100644 --- a/services/resources/mgmt/2018-05-01/resources/providers.go +++ b/services/resources/mgmt/2018-05-01/resources/providers.go @@ -73,6 +73,7 @@ func (client ProvidersClient) Get(ctx context.Context, resourceProviderNamespace result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Get", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client ProvidersClient) List(ctx context.Context, top *int32, expand strin result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -221,6 +223,7 @@ func (client ProvidersClient) listNextResults(ctx context.Context, lastResults P result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -271,6 +274,7 @@ func (client ProvidersClient) Register(ctx context.Context, resourceProviderName result, err = client.RegisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Register", resp, "Failure responding to request") + return } return @@ -344,6 +348,7 @@ func (client ProvidersClient) Unregister(ctx context.Context, resourceProviderNa result, err = client.UnregisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Unregister", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2018-05-01/resources/resources.go b/services/resources/mgmt/2018-05-01/resources/resources.go index d38870f8427b..60026bbce6e0 100644 --- a/services/resources/mgmt/2018-05-01/resources/resources.go +++ b/services/resources/mgmt/2018-05-01/resources/resources.go @@ -86,6 +86,7 @@ func (client Client) CheckExistence(ctx context.Context, resourceGroupName strin result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "CheckExistence", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client Client) CheckExistenceByID(ctx context.Context, resourceID string, result, err = client.CheckExistenceByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "CheckExistenceByID", resp, "Failure responding to request") + return } return @@ -589,6 +591,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "Get", resp, "Failure responding to request") + return } return @@ -668,6 +671,7 @@ func (client Client) GetByID(ctx context.Context, resourceID string, APIVersion result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "GetByID", resp, "Failure responding to request") + return } return @@ -753,6 +757,7 @@ func (client Client) List(ctx context.Context, filter string, expand string, top result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -824,6 +829,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -897,6 +903,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -969,6 +976,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2018-05-01/resources/tags.go b/services/resources/mgmt/2018-05-01/resources/tags.go index c7986420ef63..b381fe456e71 100644 --- a/services/resources/mgmt/2018-05-01/resources/tags.go +++ b/services/resources/mgmt/2018-05-01/resources/tags.go @@ -72,6 +72,7 @@ func (client TagsClient) CreateOrUpdate(ctx context.Context, tagName string) (re result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client TagsClient) CreateOrUpdateValue(ctx context.Context, tagName string result, err = client.CreateOrUpdateValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdateValue", resp, "Failure responding to request") + return } return @@ -220,6 +222,7 @@ func (client TagsClient) Delete(ctx context.Context, tagName string) (result aut result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "Delete", resp, "Failure responding to request") + return } return @@ -293,6 +296,7 @@ func (client TagsClient) DeleteValue(ctx context.Context, tagName string, tagVal result, err = client.DeleteValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "DeleteValue", resp, "Failure responding to request") + return } return @@ -365,6 +369,7 @@ func (client TagsClient) List(ctx context.Context) (result TagsListResultPage, e result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -427,6 +432,7 @@ func (client TagsClient) listNextResults(ctx context.Context, lastResults TagsLi result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2018-06-01/managedapplications/applicationdefinitions.go b/services/resources/mgmt/2018-06-01/managedapplications/applicationdefinitions.go index 4df3035d1619..ffd859be7048 100644 --- a/services/resources/mgmt/2018-06-01/managedapplications/applicationdefinitions.go +++ b/services/resources/mgmt/2018-06-01/managedapplications/applicationdefinitions.go @@ -439,6 +439,7 @@ func (client ApplicationDefinitionsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -525,6 +526,7 @@ func (client ApplicationDefinitionsClient) GetByID(ctx context.Context, resource result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationDefinitionsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -608,6 +610,7 @@ func (client ApplicationDefinitionsClient) ListByResourceGroup(ctx context.Conte result.adlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationDefinitionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.adlr.hasNextLink() && result.adlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -671,6 +674,7 @@ func (client ApplicationDefinitionsClient) listByResourceGroupNextResults(ctx co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationDefinitionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2018-06-01/managedapplications/applications.go b/services/resources/mgmt/2018-06-01/managedapplications/applications.go index cf500caa4bdb..83238ac8c37a 100644 --- a/services/resources/mgmt/2018-06-01/managedapplications/applications.go +++ b/services/resources/mgmt/2018-06-01/managedapplications/applications.go @@ -434,6 +434,7 @@ func (client ApplicationsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -510,6 +511,7 @@ func (client ApplicationsClient) GetByID(ctx context.Context, applicationID stri result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -591,6 +593,7 @@ func (client ApplicationsClient) ListByResourceGroup(ctx context.Context, resour result.alr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -654,6 +657,7 @@ func (client ApplicationsClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -703,6 +707,7 @@ func (client ApplicationsClient) ListBySubscription(ctx context.Context) (result result.alr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -765,6 +770,7 @@ func (client ApplicationsClient) listBySubscriptionNextResults(ctx context.Conte result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -828,6 +834,7 @@ func (client ApplicationsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationsClient", "Update", resp, "Failure responding to request") + return } return @@ -911,6 +918,7 @@ func (client ApplicationsClient) UpdateByID(ctx context.Context, applicationID s result, err = client.UpdateByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationsClient", "UpdateByID", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2018-06-01/managedapplications/client.go b/services/resources/mgmt/2018-06-01/managedapplications/client.go index 2620e80c9305..48b663d548fa 100644 --- a/services/resources/mgmt/2018-06-01/managedapplications/client.go +++ b/services/resources/mgmt/2018-06-01/managedapplications/client.go @@ -84,6 +84,7 @@ func (client BaseClient) ListOperations(ctx context.Context) (result OperationLi result.olr, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.BaseClient", "ListOperations", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client BaseClient) listOperationsNextResults(ctx context.Context, lastResu result, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.BaseClient", "listOperationsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2018-06-01/subscriptions/client.go b/services/resources/mgmt/2018-06-01/subscriptions/client.go index b08823b124e3..d7b5a4c0f9f2 100644 --- a/services/resources/mgmt/2018-06-01/subscriptions/client.go +++ b/services/resources/mgmt/2018-06-01/subscriptions/client.go @@ -96,6 +96,7 @@ func (client BaseClient) CheckResourceName(ctx context.Context, resourceNameDefi result, err = client.CheckResourceNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.BaseClient", "CheckResourceName", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2018-06-01/subscriptions/operations.go b/services/resources/mgmt/2018-06-01/subscriptions/operations.go index dc8365150ee1..06d42c161c36 100644 --- a/services/resources/mgmt/2018-06-01/subscriptions/operations.go +++ b/services/resources/mgmt/2018-06-01/subscriptions/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2018-06-01/subscriptions/subscriptions.go b/services/resources/mgmt/2018-06-01/subscriptions/subscriptions.go index bfa8dd11231c..7ad233d29829 100644 --- a/services/resources/mgmt/2018-06-01/subscriptions/subscriptions.go +++ b/services/resources/mgmt/2018-06-01/subscriptions/subscriptions.go @@ -73,6 +73,7 @@ func (client Client) Get(ctx context.Context, subscriptionID string) (result Sub result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.Client", "Get", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client Client) List(ctx context.Context) (result ListResultPage, err error result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -202,6 +204,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -253,6 +256,7 @@ func (client Client) ListLocations(ctx context.Context, subscriptionID string) ( result, err = client.ListLocationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.Client", "ListLocations", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2018-06-01/subscriptions/tenants.go b/services/resources/mgmt/2018-06-01/subscriptions/tenants.go index c7c94423b537..7ba5064ff46b 100644 --- a/services/resources/mgmt/2018-06-01/subscriptions/tenants.go +++ b/services/resources/mgmt/2018-06-01/subscriptions/tenants.go @@ -72,6 +72,7 @@ func (client TenantsClient) List(ctx context.Context) (result TenantListResultPa result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.TenantsClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client TenantsClient) listNextResults(ctx context.Context, lastResults Ten result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.TenantsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-01-01/policy/assignments.go b/services/resources/mgmt/2019-01-01/policy/assignments.go index 23cd5996d123..b24c5896baa1 100644 --- a/services/resources/mgmt/2019-01-01/policy/assignments.go +++ b/services/resources/mgmt/2019-01-01/policy/assignments.go @@ -88,6 +88,7 @@ func (client AssignmentsClient) Create(ctx context.Context, scope string, policy result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Create", resp, "Failure responding to request") + return } return @@ -182,6 +183,7 @@ func (client AssignmentsClient) CreateByID(ctx context.Context, policyAssignment result, err = client.CreateByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "CreateByID", resp, "Failure responding to request") + return } return @@ -266,6 +268,7 @@ func (client AssignmentsClient) Delete(ctx context.Context, scope string, policy result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -346,6 +349,7 @@ func (client AssignmentsClient) DeleteByID(ctx context.Context, policyAssignment result, err = client.DeleteByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "DeleteByID", resp, "Failure responding to request") + return } return @@ -423,6 +427,7 @@ func (client AssignmentsClient) Get(ctx context.Context, scope string, policyAss result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -502,6 +507,7 @@ func (client AssignmentsClient) GetByID(ctx context.Context, policyAssignmentID result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -583,6 +589,7 @@ func (client AssignmentsClient) List(ctx context.Context, filter string) (result result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -648,6 +655,7 @@ func (client AssignmentsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -732,6 +740,7 @@ func (client AssignmentsClient) ListForResource(ctx context.Context, resourceGro result.alr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResource", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -802,6 +811,7 @@ func (client AssignmentsClient) listForResourceNextResults(ctx context.Context, result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -871,6 +881,7 @@ func (client AssignmentsClient) ListForResourceGroup(ctx context.Context, resour result.alr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -937,6 +948,7 @@ func (client AssignmentsClient) listForResourceGroupNextResults(ctx context.Cont result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-01-01/policy/definitions.go b/services/resources/mgmt/2019-01-01/policy/definitions.go index fc442121be1f..e41d28bec6a3 100644 --- a/services/resources/mgmt/2019-01-01/policy/definitions.go +++ b/services/resources/mgmt/2019-01-01/policy/definitions.go @@ -73,6 +73,7 @@ func (client DefinitionsClient) CreateOrUpdate(ctx context.Context, policyDefini result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client DefinitionsClient) CreateOrUpdateAtManagementGroup(ctx context.Cont result, err = client.CreateOrUpdateAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdateAtManagementGroup", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client DefinitionsClient) Delete(ctx context.Context, policyDefinitionName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -306,6 +309,7 @@ func (client DefinitionsClient) DeleteAtManagementGroup(ctx context.Context, pol result, err = client.DeleteAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "DeleteAtManagementGroup", resp, "Failure responding to request") + return } return @@ -378,6 +382,7 @@ func (client DefinitionsClient) Get(ctx context.Context, policyDefinitionName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -453,6 +458,7 @@ func (client DefinitionsClient) GetAtManagementGroup(ctx context.Context, policy result, err = client.GetAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "GetAtManagementGroup", resp, "Failure responding to request") + return } return @@ -526,6 +532,7 @@ func (client DefinitionsClient) GetBuiltIn(ctx context.Context, policyDefinition result, err = client.GetBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "GetBuiltIn", resp, "Failure responding to request") + return } return @@ -597,6 +604,7 @@ func (client DefinitionsClient) List(ctx context.Context) (result DefinitionList result.dlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "List", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -659,6 +667,7 @@ func (client DefinitionsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -708,6 +717,7 @@ func (client DefinitionsClient) ListBuiltIn(ctx context.Context) (result Definit result.dlr, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "ListBuiltIn", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -766,6 +776,7 @@ func (client DefinitionsClient) listBuiltInNextResults(ctx context.Context, last result, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listBuiltInNextResults", resp, "Failure responding to next results request") + return } return } @@ -817,6 +828,7 @@ func (client DefinitionsClient) ListByManagementGroup(ctx context.Context, manag result.dlr, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "ListByManagementGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -879,6 +891,7 @@ func (client DefinitionsClient) listByManagementGroupNextResults(ctx context.Con result, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listByManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-01-01/policy/setdefinitions.go b/services/resources/mgmt/2019-01-01/policy/setdefinitions.go index 373eb6020b67..acf818b4ce35 100644 --- a/services/resources/mgmt/2019-01-01/policy/setdefinitions.go +++ b/services/resources/mgmt/2019-01-01/policy/setdefinitions.go @@ -82,6 +82,7 @@ func (client SetDefinitionsClient) CreateOrUpdate(ctx context.Context, policySet result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client SetDefinitionsClient) CreateOrUpdateAtManagementGroup(ctx context.C result, err = client.CreateOrUpdateAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "CreateOrUpdateAtManagementGroup", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client SetDefinitionsClient) Delete(ctx context.Context, policySetDefiniti result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -322,6 +325,7 @@ func (client SetDefinitionsClient) DeleteAtManagementGroup(ctx context.Context, result, err = client.DeleteAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "DeleteAtManagementGroup", resp, "Failure responding to request") + return } return @@ -394,6 +398,7 @@ func (client SetDefinitionsClient) Get(ctx context.Context, policySetDefinitionN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -469,6 +474,7 @@ func (client SetDefinitionsClient) GetAtManagementGroup(ctx context.Context, pol result, err = client.GetAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "GetAtManagementGroup", resp, "Failure responding to request") + return } return @@ -542,6 +548,7 @@ func (client SetDefinitionsClient) GetBuiltIn(ctx context.Context, policySetDefi result, err = client.GetBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "GetBuiltIn", resp, "Failure responding to request") + return } return @@ -613,6 +620,7 @@ func (client SetDefinitionsClient) List(ctx context.Context) (result SetDefiniti result.sdlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "List", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -675,6 +683,7 @@ func (client SetDefinitionsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -724,6 +733,7 @@ func (client SetDefinitionsClient) ListBuiltIn(ctx context.Context) (result SetD result.sdlr, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "ListBuiltIn", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -782,6 +792,7 @@ func (client SetDefinitionsClient) listBuiltInNextResults(ctx context.Context, l result, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listBuiltInNextResults", resp, "Failure responding to next results request") + return } return } @@ -834,6 +845,7 @@ func (client SetDefinitionsClient) ListByManagementGroup(ctx context.Context, ma result.sdlr, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "ListByManagementGroup", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -896,6 +908,7 @@ func (client SetDefinitionsClient) listByManagementGroupNextResults(ctx context. result, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listByManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-03-01/resources/deploymentoperations.go b/services/resources/mgmt/2019-03-01/resources/deploymentoperations.go index f3ee762a85c8..5e0673e38c1d 100644 --- a/services/resources/mgmt/2019-03-01/resources/deploymentoperations.go +++ b/services/resources/mgmt/2019-03-01/resources/deploymentoperations.go @@ -87,6 +87,7 @@ func (client DeploymentOperationsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "Get", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client DeploymentOperationsClient) GetAtSubscriptionScope(ctx context.Cont result, err = client.GetAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "GetAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client DeploymentOperationsClient) List(ctx context.Context, resourceGroup result.dolr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "List", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -327,6 +330,7 @@ func (client DeploymentOperationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -387,6 +391,7 @@ func (client DeploymentOperationsClient) ListAtSubscriptionScope(ctx context.Con result.dolr, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "ListAtSubscriptionScope", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -453,6 +458,7 @@ func (client DeploymentOperationsClient) listAtSubscriptionScopeNextResults(ctx result, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listAtSubscriptionScopeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-03-01/resources/deployments.go b/services/resources/mgmt/2019-03-01/resources/deployments.go index ce44e4202e87..63387c6dde8c 100644 --- a/services/resources/mgmt/2019-03-01/resources/deployments.go +++ b/services/resources/mgmt/2019-03-01/resources/deployments.go @@ -72,6 +72,7 @@ func (client DeploymentsClient) CalculateTemplateHash(ctx context.Context, templ result, err = client.CalculateTemplateHashResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CalculateTemplateHash", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client DeploymentsClient) Cancel(ctx context.Context, resourceGroupName st result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client DeploymentsClient) CancelAtSubscriptionScope(ctx context.Context, d result, err = client.CancelAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CancelAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -326,6 +329,7 @@ func (client DeploymentsClient) CheckExistence(ctx context.Context, resourceGrou result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistence", resp, "Failure responding to request") + return } return @@ -407,6 +411,7 @@ func (client DeploymentsClient) CheckExistenceAtSubscriptionScope(ctx context.Co result, err = client.CheckExistenceAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistenceAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -860,6 +865,7 @@ func (client DeploymentsClient) ExportTemplate(ctx context.Context, resourceGrou result, err = client.ExportTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplate", resp, "Failure responding to request") + return } return @@ -942,6 +948,7 @@ func (client DeploymentsClient) ExportTemplateAtSubscriptionScope(ctx context.Co result, err = client.ExportTemplateAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplateAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -1028,6 +1035,7 @@ func (client DeploymentsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Get", resp, "Failure responding to request") + return } return @@ -1110,6 +1118,7 @@ func (client DeploymentsClient) GetAtSubscriptionScope(ctx context.Context, depl result, err = client.GetAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "GetAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -1186,6 +1195,7 @@ func (client DeploymentsClient) ListAtSubscriptionScope(ctx context.Context, fil result.dlr, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ListAtSubscriptionScope", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1254,6 +1264,7 @@ func (client DeploymentsClient) listAtSubscriptionScopeNextResults(ctx context.C result, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listAtSubscriptionScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -1317,6 +1328,7 @@ func (client DeploymentsClient) ListByResourceGroup(ctx context.Context, resourc result.dlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1386,6 +1398,7 @@ func (client DeploymentsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1459,6 +1472,7 @@ func (client DeploymentsClient) Validate(ctx context.Context, resourceGroupName result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Validate", resp, "Failure responding to request") + return } return @@ -1552,6 +1566,7 @@ func (client DeploymentsClient) ValidateAtSubscriptionScope(ctx context.Context, result, err = client.ValidateAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ValidateAtSubscriptionScope", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2019-03-01/resources/groups.go b/services/resources/mgmt/2019-03-01/resources/groups.go index 7e66c727dee8..3d517e8033ca 100644 --- a/services/resources/mgmt/2019-03-01/resources/groups.go +++ b/services/resources/mgmt/2019-03-01/resources/groups.go @@ -80,6 +80,7 @@ func (client GroupsClient) CheckExistence(ctx context.Context, resourceGroupName result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CheckExistence", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client GroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -333,6 +335,7 @@ func (client GroupsClient) ExportTemplate(ctx context.Context, resourceGroupName result, err = client.ExportTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "ExportTemplate", resp, "Failure responding to request") + return } return @@ -416,6 +419,7 @@ func (client GroupsClient) Get(ctx context.Context, resourceGroupName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -492,6 +496,7 @@ func (client GroupsClient) List(ctx context.Context, filter string, top *int32) result.glr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "List", resp, "Failure responding to request") + return } if result.glr.hasNextLink() && result.glr.IsEmpty() { err = result.NextWithContext(ctx) @@ -560,6 +565,7 @@ func (client GroupsClient) listNextResults(ctx context.Context, lastResults Grou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -620,6 +626,7 @@ func (client GroupsClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2019-03-01/resources/operations.go b/services/resources/mgmt/2019-03-01/resources/operations.go index 53826660a8f0..0fb2d87d6dd8 100644 --- a/services/resources/mgmt/2019-03-01/resources/operations.go +++ b/services/resources/mgmt/2019-03-01/resources/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-03-01/resources/providers.go b/services/resources/mgmt/2019-03-01/resources/providers.go index c26cdb6d6f41..2b5502df5686 100644 --- a/services/resources/mgmt/2019-03-01/resources/providers.go +++ b/services/resources/mgmt/2019-03-01/resources/providers.go @@ -73,6 +73,7 @@ func (client ProvidersClient) Get(ctx context.Context, resourceProviderNamespace result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Get", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client ProvidersClient) List(ctx context.Context, top *int32, expand strin result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -221,6 +223,7 @@ func (client ProvidersClient) listNextResults(ctx context.Context, lastResults P result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -271,6 +274,7 @@ func (client ProvidersClient) Register(ctx context.Context, resourceProviderName result, err = client.RegisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Register", resp, "Failure responding to request") + return } return @@ -344,6 +348,7 @@ func (client ProvidersClient) Unregister(ctx context.Context, resourceProviderNa result, err = client.UnregisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Unregister", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2019-03-01/resources/resources.go b/services/resources/mgmt/2019-03-01/resources/resources.go index a5ccf084fcde..b0f8d31b0889 100644 --- a/services/resources/mgmt/2019-03-01/resources/resources.go +++ b/services/resources/mgmt/2019-03-01/resources/resources.go @@ -86,6 +86,7 @@ func (client Client) CheckExistence(ctx context.Context, resourceGroupName strin result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "CheckExistence", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client Client) CheckExistenceByID(ctx context.Context, resourceID string, result, err = client.CheckExistenceByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "CheckExistenceByID", resp, "Failure responding to request") + return } return @@ -589,6 +591,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "Get", resp, "Failure responding to request") + return } return @@ -668,6 +671,7 @@ func (client Client) GetByID(ctx context.Context, resourceID string, APIVersion result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "GetByID", resp, "Failure responding to request") + return } return @@ -753,6 +757,7 @@ func (client Client) List(ctx context.Context, filter string, expand string, top result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -824,6 +829,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -897,6 +903,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -969,6 +976,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-03-01/resources/tags.go b/services/resources/mgmt/2019-03-01/resources/tags.go index 847376103193..7d3e02aef06f 100644 --- a/services/resources/mgmt/2019-03-01/resources/tags.go +++ b/services/resources/mgmt/2019-03-01/resources/tags.go @@ -72,6 +72,7 @@ func (client TagsClient) CreateOrUpdate(ctx context.Context, tagName string) (re result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client TagsClient) CreateOrUpdateValue(ctx context.Context, tagName string result, err = client.CreateOrUpdateValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdateValue", resp, "Failure responding to request") + return } return @@ -220,6 +222,7 @@ func (client TagsClient) Delete(ctx context.Context, tagName string) (result aut result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "Delete", resp, "Failure responding to request") + return } return @@ -293,6 +296,7 @@ func (client TagsClient) DeleteValue(ctx context.Context, tagName string, tagVal result, err = client.DeleteValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "DeleteValue", resp, "Failure responding to request") + return } return @@ -365,6 +369,7 @@ func (client TagsClient) List(ctx context.Context) (result TagsListResultPage, e result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -427,6 +432,7 @@ func (client TagsClient) listNextResults(ctx context.Context, lastResults TagsLi result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-05-01/resources/deploymentoperations.go b/services/resources/mgmt/2019-05-01/resources/deploymentoperations.go index 0e713d214ad4..424d98109563 100644 --- a/services/resources/mgmt/2019-05-01/resources/deploymentoperations.go +++ b/services/resources/mgmt/2019-05-01/resources/deploymentoperations.go @@ -87,6 +87,7 @@ func (client DeploymentOperationsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "Get", resp, "Failure responding to request") + return } return @@ -175,6 +176,7 @@ func (client DeploymentOperationsClient) GetAtManagementGroupScope(ctx context.C result, err = client.GetAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "GetAtManagementGroupScope", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client DeploymentOperationsClient) GetAtSubscriptionScope(ctx context.Cont result, err = client.GetAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "GetAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -347,6 +350,7 @@ func (client DeploymentOperationsClient) List(ctx context.Context, resourceGroup result.dolr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "List", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -414,6 +418,7 @@ func (client DeploymentOperationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -478,6 +483,7 @@ func (client DeploymentOperationsClient) ListAtManagementGroupScope(ctx context. result.dolr, err = client.ListAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "ListAtManagementGroupScope", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -544,6 +550,7 @@ func (client DeploymentOperationsClient) listAtManagementGroupScopeNextResults(c result, err = client.ListAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listAtManagementGroupScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -604,6 +611,7 @@ func (client DeploymentOperationsClient) ListAtSubscriptionScope(ctx context.Con result.dolr, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "ListAtSubscriptionScope", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -670,6 +678,7 @@ func (client DeploymentOperationsClient) listAtSubscriptionScopeNextResults(ctx result, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listAtSubscriptionScopeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-05-01/resources/deployments.go b/services/resources/mgmt/2019-05-01/resources/deployments.go index 3ed5f77e6e0b..7c901cf2469b 100644 --- a/services/resources/mgmt/2019-05-01/resources/deployments.go +++ b/services/resources/mgmt/2019-05-01/resources/deployments.go @@ -72,6 +72,7 @@ func (client DeploymentsClient) CalculateTemplateHash(ctx context.Context, templ result, err = client.CalculateTemplateHashResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CalculateTemplateHash", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client DeploymentsClient) Cancel(ctx context.Context, resourceGroupName st result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client DeploymentsClient) CancelAtManagementGroupScope(ctx context.Context result, err = client.CancelAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CancelAtManagementGroupScope", resp, "Failure responding to request") + return } return @@ -326,6 +329,7 @@ func (client DeploymentsClient) CancelAtSubscriptionScope(ctx context.Context, d result, err = client.CancelAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CancelAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -412,6 +416,7 @@ func (client DeploymentsClient) CheckExistence(ctx context.Context, resourceGrou result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistence", resp, "Failure responding to request") + return } return @@ -497,6 +502,7 @@ func (client DeploymentsClient) CheckExistenceAtManagementGroupScope(ctx context result, err = client.CheckExistenceAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistenceAtManagementGroupScope", resp, "Failure responding to request") + return } return @@ -577,6 +583,7 @@ func (client DeploymentsClient) CheckExistenceAtSubscriptionScope(ctx context.Co result, err = client.CheckExistenceAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistenceAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -1215,6 +1222,7 @@ func (client DeploymentsClient) ExportTemplate(ctx context.Context, resourceGrou result, err = client.ExportTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplate", resp, "Failure responding to request") + return } return @@ -1301,6 +1309,7 @@ func (client DeploymentsClient) ExportTemplateAtManagementGroupScope(ctx context result, err = client.ExportTemplateAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplateAtManagementGroupScope", resp, "Failure responding to request") + return } return @@ -1382,6 +1391,7 @@ func (client DeploymentsClient) ExportTemplateAtSubscriptionScope(ctx context.Co result, err = client.ExportTemplateAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplateAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -1468,6 +1478,7 @@ func (client DeploymentsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Get", resp, "Failure responding to request") + return } return @@ -1554,6 +1565,7 @@ func (client DeploymentsClient) GetAtManagementGroupScope(ctx context.Context, g result, err = client.GetAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "GetAtManagementGroupScope", resp, "Failure responding to request") + return } return @@ -1635,6 +1647,7 @@ func (client DeploymentsClient) GetAtSubscriptionScope(ctx context.Context, depl result, err = client.GetAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "GetAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -1719,6 +1732,7 @@ func (client DeploymentsClient) ListAtManagementGroupScope(ctx context.Context, result.dlr, err = client.ListAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ListAtManagementGroupScope", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1787,6 +1801,7 @@ func (client DeploymentsClient) listAtManagementGroupScopeNextResults(ctx contex result, err = client.ListAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listAtManagementGroupScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -1840,6 +1855,7 @@ func (client DeploymentsClient) ListAtSubscriptionScope(ctx context.Context, fil result.dlr, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ListAtSubscriptionScope", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1908,6 +1924,7 @@ func (client DeploymentsClient) listAtSubscriptionScopeNextResults(ctx context.C result, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listAtSubscriptionScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -1971,6 +1988,7 @@ func (client DeploymentsClient) ListByResourceGroup(ctx context.Context, resourc result.dlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2040,6 +2058,7 @@ func (client DeploymentsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -2113,6 +2132,7 @@ func (client DeploymentsClient) Validate(ctx context.Context, resourceGroupName result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Validate", resp, "Failure responding to request") + return } return @@ -2210,6 +2230,7 @@ func (client DeploymentsClient) ValidateAtManagementGroupScope(ctx context.Conte result, err = client.ValidateAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ValidateAtManagementGroupScope", resp, "Failure responding to request") + return } return @@ -2302,6 +2323,7 @@ func (client DeploymentsClient) ValidateAtSubscriptionScope(ctx context.Context, result, err = client.ValidateAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ValidateAtSubscriptionScope", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2019-05-01/resources/groups.go b/services/resources/mgmt/2019-05-01/resources/groups.go index afc6eec85a85..60cadc2a7999 100644 --- a/services/resources/mgmt/2019-05-01/resources/groups.go +++ b/services/resources/mgmt/2019-05-01/resources/groups.go @@ -80,6 +80,7 @@ func (client GroupsClient) CheckExistence(ctx context.Context, resourceGroupName result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CheckExistence", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client GroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -333,6 +335,7 @@ func (client GroupsClient) ExportTemplate(ctx context.Context, resourceGroupName result, err = client.ExportTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "ExportTemplate", resp, "Failure responding to request") + return } return @@ -416,6 +419,7 @@ func (client GroupsClient) Get(ctx context.Context, resourceGroupName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -492,6 +496,7 @@ func (client GroupsClient) List(ctx context.Context, filter string, top *int32) result.glr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "List", resp, "Failure responding to request") + return } if result.glr.hasNextLink() && result.glr.IsEmpty() { err = result.NextWithContext(ctx) @@ -560,6 +565,7 @@ func (client GroupsClient) listNextResults(ctx context.Context, lastResults Grou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -620,6 +626,7 @@ func (client GroupsClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2019-05-01/resources/operations.go b/services/resources/mgmt/2019-05-01/resources/operations.go index 58f10b9ce11c..590efe91b77b 100644 --- a/services/resources/mgmt/2019-05-01/resources/operations.go +++ b/services/resources/mgmt/2019-05-01/resources/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-05-01/resources/providers.go b/services/resources/mgmt/2019-05-01/resources/providers.go index 29f37f4205cc..3a654df78085 100644 --- a/services/resources/mgmt/2019-05-01/resources/providers.go +++ b/services/resources/mgmt/2019-05-01/resources/providers.go @@ -73,6 +73,7 @@ func (client ProvidersClient) Get(ctx context.Context, resourceProviderNamespace result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Get", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client ProvidersClient) List(ctx context.Context, top *int32, expand strin result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -221,6 +223,7 @@ func (client ProvidersClient) listNextResults(ctx context.Context, lastResults P result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -271,6 +274,7 @@ func (client ProvidersClient) Register(ctx context.Context, resourceProviderName result, err = client.RegisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Register", resp, "Failure responding to request") + return } return @@ -344,6 +348,7 @@ func (client ProvidersClient) Unregister(ctx context.Context, resourceProviderNa result, err = client.UnregisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Unregister", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2019-05-01/resources/resources.go b/services/resources/mgmt/2019-05-01/resources/resources.go index 63e1d9ab5650..47bb9dfe6314 100644 --- a/services/resources/mgmt/2019-05-01/resources/resources.go +++ b/services/resources/mgmt/2019-05-01/resources/resources.go @@ -86,6 +86,7 @@ func (client Client) CheckExistence(ctx context.Context, resourceGroupName strin result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "CheckExistence", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client Client) CheckExistenceByID(ctx context.Context, resourceID string, result, err = client.CheckExistenceByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "CheckExistenceByID", resp, "Failure responding to request") + return } return @@ -589,6 +591,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "Get", resp, "Failure responding to request") + return } return @@ -668,6 +671,7 @@ func (client Client) GetByID(ctx context.Context, resourceID string, APIVersion result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "GetByID", resp, "Failure responding to request") + return } return @@ -753,6 +757,7 @@ func (client Client) List(ctx context.Context, filter string, expand string, top result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -824,6 +829,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -897,6 +903,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -969,6 +976,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-05-01/resources/tags.go b/services/resources/mgmt/2019-05-01/resources/tags.go index cfea53cd68ae..ec4f7cf12ea8 100644 --- a/services/resources/mgmt/2019-05-01/resources/tags.go +++ b/services/resources/mgmt/2019-05-01/resources/tags.go @@ -72,6 +72,7 @@ func (client TagsClient) CreateOrUpdate(ctx context.Context, tagName string) (re result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client TagsClient) CreateOrUpdateValue(ctx context.Context, tagName string result, err = client.CreateOrUpdateValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdateValue", resp, "Failure responding to request") + return } return @@ -220,6 +222,7 @@ func (client TagsClient) Delete(ctx context.Context, tagName string) (result aut result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "Delete", resp, "Failure responding to request") + return } return @@ -293,6 +296,7 @@ func (client TagsClient) DeleteValue(ctx context.Context, tagName string, tagVal result, err = client.DeleteValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "DeleteValue", resp, "Failure responding to request") + return } return @@ -365,6 +369,7 @@ func (client TagsClient) List(ctx context.Context) (result TagsListResultPage, e result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -427,6 +432,7 @@ func (client TagsClient) listNextResults(ctx context.Context, lastResults TagsLi result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-06-01/policy/assignments.go b/services/resources/mgmt/2019-06-01/policy/assignments.go index e8f72db93d31..5aad554c21f5 100644 --- a/services/resources/mgmt/2019-06-01/policy/assignments.go +++ b/services/resources/mgmt/2019-06-01/policy/assignments.go @@ -88,6 +88,7 @@ func (client AssignmentsClient) Create(ctx context.Context, scope string, policy result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Create", resp, "Failure responding to request") + return } return @@ -182,6 +183,7 @@ func (client AssignmentsClient) CreateByID(ctx context.Context, policyAssignment result, err = client.CreateByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "CreateByID", resp, "Failure responding to request") + return } return @@ -266,6 +268,7 @@ func (client AssignmentsClient) Delete(ctx context.Context, scope string, policy result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -346,6 +349,7 @@ func (client AssignmentsClient) DeleteByID(ctx context.Context, policyAssignment result, err = client.DeleteByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "DeleteByID", resp, "Failure responding to request") + return } return @@ -423,6 +427,7 @@ func (client AssignmentsClient) Get(ctx context.Context, scope string, policyAss result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -502,6 +507,7 @@ func (client AssignmentsClient) GetByID(ctx context.Context, policyAssignmentID result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -583,6 +589,7 @@ func (client AssignmentsClient) List(ctx context.Context, filter string) (result result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -648,6 +655,7 @@ func (client AssignmentsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -732,6 +740,7 @@ func (client AssignmentsClient) ListForResource(ctx context.Context, resourceGro result.alr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResource", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -802,6 +811,7 @@ func (client AssignmentsClient) listForResourceNextResults(ctx context.Context, result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -871,6 +881,7 @@ func (client AssignmentsClient) ListForResourceGroup(ctx context.Context, resour result.alr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -937,6 +948,7 @@ func (client AssignmentsClient) listForResourceGroupNextResults(ctx context.Cont result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-06-01/policy/definitions.go b/services/resources/mgmt/2019-06-01/policy/definitions.go index d3c9dc1ca4b8..45611394ce76 100644 --- a/services/resources/mgmt/2019-06-01/policy/definitions.go +++ b/services/resources/mgmt/2019-06-01/policy/definitions.go @@ -73,6 +73,7 @@ func (client DefinitionsClient) CreateOrUpdate(ctx context.Context, policyDefini result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client DefinitionsClient) CreateOrUpdateAtManagementGroup(ctx context.Cont result, err = client.CreateOrUpdateAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdateAtManagementGroup", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client DefinitionsClient) Delete(ctx context.Context, policyDefinitionName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -306,6 +309,7 @@ func (client DefinitionsClient) DeleteAtManagementGroup(ctx context.Context, pol result, err = client.DeleteAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "DeleteAtManagementGroup", resp, "Failure responding to request") + return } return @@ -378,6 +382,7 @@ func (client DefinitionsClient) Get(ctx context.Context, policyDefinitionName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -453,6 +458,7 @@ func (client DefinitionsClient) GetAtManagementGroup(ctx context.Context, policy result, err = client.GetAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "GetAtManagementGroup", resp, "Failure responding to request") + return } return @@ -526,6 +532,7 @@ func (client DefinitionsClient) GetBuiltIn(ctx context.Context, policyDefinition result, err = client.GetBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "GetBuiltIn", resp, "Failure responding to request") + return } return @@ -597,6 +604,7 @@ func (client DefinitionsClient) List(ctx context.Context) (result DefinitionList result.dlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "List", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -659,6 +667,7 @@ func (client DefinitionsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -708,6 +717,7 @@ func (client DefinitionsClient) ListBuiltIn(ctx context.Context) (result Definit result.dlr, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "ListBuiltIn", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -766,6 +776,7 @@ func (client DefinitionsClient) listBuiltInNextResults(ctx context.Context, last result, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listBuiltInNextResults", resp, "Failure responding to next results request") + return } return } @@ -817,6 +828,7 @@ func (client DefinitionsClient) ListByManagementGroup(ctx context.Context, manag result.dlr, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "ListByManagementGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -879,6 +891,7 @@ func (client DefinitionsClient) listByManagementGroupNextResults(ctx context.Con result, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listByManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-06-01/policy/setdefinitions.go b/services/resources/mgmt/2019-06-01/policy/setdefinitions.go index e8ed6044063e..1172ee4ca830 100644 --- a/services/resources/mgmt/2019-06-01/policy/setdefinitions.go +++ b/services/resources/mgmt/2019-06-01/policy/setdefinitions.go @@ -82,6 +82,7 @@ func (client SetDefinitionsClient) CreateOrUpdate(ctx context.Context, policySet result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client SetDefinitionsClient) CreateOrUpdateAtManagementGroup(ctx context.C result, err = client.CreateOrUpdateAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "CreateOrUpdateAtManagementGroup", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client SetDefinitionsClient) Delete(ctx context.Context, policySetDefiniti result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -322,6 +325,7 @@ func (client SetDefinitionsClient) DeleteAtManagementGroup(ctx context.Context, result, err = client.DeleteAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "DeleteAtManagementGroup", resp, "Failure responding to request") + return } return @@ -394,6 +398,7 @@ func (client SetDefinitionsClient) Get(ctx context.Context, policySetDefinitionN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -469,6 +474,7 @@ func (client SetDefinitionsClient) GetAtManagementGroup(ctx context.Context, pol result, err = client.GetAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "GetAtManagementGroup", resp, "Failure responding to request") + return } return @@ -542,6 +548,7 @@ func (client SetDefinitionsClient) GetBuiltIn(ctx context.Context, policySetDefi result, err = client.GetBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "GetBuiltIn", resp, "Failure responding to request") + return } return @@ -613,6 +620,7 @@ func (client SetDefinitionsClient) List(ctx context.Context) (result SetDefiniti result.sdlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "List", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -675,6 +683,7 @@ func (client SetDefinitionsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -724,6 +733,7 @@ func (client SetDefinitionsClient) ListBuiltIn(ctx context.Context) (result SetD result.sdlr, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "ListBuiltIn", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -782,6 +792,7 @@ func (client SetDefinitionsClient) listBuiltInNextResults(ctx context.Context, l result, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listBuiltInNextResults", resp, "Failure responding to next results request") + return } return } @@ -834,6 +845,7 @@ func (client SetDefinitionsClient) ListByManagementGroup(ctx context.Context, ma result.sdlr, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "ListByManagementGroup", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -896,6 +908,7 @@ func (client SetDefinitionsClient) listByManagementGroupNextResults(ctx context. result, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listByManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-06-01/subscriptions/client.go b/services/resources/mgmt/2019-06-01/subscriptions/client.go index 07236533b494..4fc1de4ff82c 100644 --- a/services/resources/mgmt/2019-06-01/subscriptions/client.go +++ b/services/resources/mgmt/2019-06-01/subscriptions/client.go @@ -96,6 +96,7 @@ func (client BaseClient) CheckResourceName(ctx context.Context, resourceNameDefi result, err = client.CheckResourceNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.BaseClient", "CheckResourceName", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2019-06-01/subscriptions/operations.go b/services/resources/mgmt/2019-06-01/subscriptions/operations.go index f28d149b1b48..b0b36b9f457f 100644 --- a/services/resources/mgmt/2019-06-01/subscriptions/operations.go +++ b/services/resources/mgmt/2019-06-01/subscriptions/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-06-01/subscriptions/subscriptions.go b/services/resources/mgmt/2019-06-01/subscriptions/subscriptions.go index 45ab06176e02..f01afe1fa9e5 100644 --- a/services/resources/mgmt/2019-06-01/subscriptions/subscriptions.go +++ b/services/resources/mgmt/2019-06-01/subscriptions/subscriptions.go @@ -73,6 +73,7 @@ func (client Client) Get(ctx context.Context, subscriptionID string) (result Sub result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.Client", "Get", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client Client) List(ctx context.Context) (result ListResultPage, err error result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -202,6 +204,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -253,6 +256,7 @@ func (client Client) ListLocations(ctx context.Context, subscriptionID string) ( result, err = client.ListLocationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.Client", "ListLocations", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2019-06-01/subscriptions/tenants.go b/services/resources/mgmt/2019-06-01/subscriptions/tenants.go index 0d753917020b..6e94e29fe858 100644 --- a/services/resources/mgmt/2019-06-01/subscriptions/tenants.go +++ b/services/resources/mgmt/2019-06-01/subscriptions/tenants.go @@ -72,6 +72,7 @@ func (client TenantsClient) List(ctx context.Context) (result TenantListResultPa result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.TenantsClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client TenantsClient) listNextResults(ctx context.Context, lastResults Ten result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.TenantsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-07-01/features/deploymentoperations.go b/services/resources/mgmt/2019-07-01/features/deploymentoperations.go index 43a9591a80ad..ee96c6eb822c 100644 --- a/services/resources/mgmt/2019-07-01/features/deploymentoperations.go +++ b/services/resources/mgmt/2019-07-01/features/deploymentoperations.go @@ -87,6 +87,7 @@ func (client DeploymentOperationsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentOperationsClient", "Get", resp, "Failure responding to request") + return } return @@ -175,6 +176,7 @@ func (client DeploymentOperationsClient) GetAtManagementGroupScope(ctx context.C result, err = client.GetAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentOperationsClient", "GetAtManagementGroupScope", resp, "Failure responding to request") + return } return @@ -259,6 +261,7 @@ func (client DeploymentOperationsClient) GetAtScope(ctx context.Context, scope s result, err = client.GetAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentOperationsClient", "GetAtScope", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client DeploymentOperationsClient) GetAtSubscriptionScope(ctx context.Cont result, err = client.GetAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentOperationsClient", "GetAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -425,6 +429,7 @@ func (client DeploymentOperationsClient) GetAtTenantScope(ctx context.Context, d result, err = client.GetAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentOperationsClient", "GetAtTenantScope", resp, "Failure responding to request") + return } return @@ -513,6 +518,7 @@ func (client DeploymentOperationsClient) List(ctx context.Context, resourceGroup result.dolr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentOperationsClient", "List", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -580,6 +586,7 @@ func (client DeploymentOperationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentOperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -644,6 +651,7 @@ func (client DeploymentOperationsClient) ListAtManagementGroupScope(ctx context. result.dolr, err = client.ListAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentOperationsClient", "ListAtManagementGroupScope", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -710,6 +718,7 @@ func (client DeploymentOperationsClient) listAtManagementGroupScopeNextResults(c result, err = client.ListAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentOperationsClient", "listAtManagementGroupScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -771,6 +780,7 @@ func (client DeploymentOperationsClient) ListAtScope(ctx context.Context, scope result.dolr, err = client.ListAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentOperationsClient", "ListAtScope", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -837,6 +847,7 @@ func (client DeploymentOperationsClient) listAtScopeNextResults(ctx context.Cont result, err = client.ListAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentOperationsClient", "listAtScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -897,6 +908,7 @@ func (client DeploymentOperationsClient) ListAtSubscriptionScope(ctx context.Con result.dolr, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentOperationsClient", "ListAtSubscriptionScope", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -963,6 +975,7 @@ func (client DeploymentOperationsClient) listAtSubscriptionScopeNextResults(ctx result, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentOperationsClient", "listAtSubscriptionScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -1023,6 +1036,7 @@ func (client DeploymentOperationsClient) ListAtTenantScope(ctx context.Context, result.dolr, err = client.ListAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentOperationsClient", "ListAtTenantScope", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1088,6 +1102,7 @@ func (client DeploymentOperationsClient) listAtTenantScopeNextResults(ctx contex result, err = client.ListAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentOperationsClient", "listAtTenantScopeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-07-01/features/deployments.go b/services/resources/mgmt/2019-07-01/features/deployments.go index 0358d3de7fdc..92fe9152ff3b 100644 --- a/services/resources/mgmt/2019-07-01/features/deployments.go +++ b/services/resources/mgmt/2019-07-01/features/deployments.go @@ -72,6 +72,7 @@ func (client DeploymentsClient) CalculateTemplateHash(ctx context.Context, templ result, err = client.CalculateTemplateHashResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "CalculateTemplateHash", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client DeploymentsClient) Cancel(ctx context.Context, resourceGroupName st result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client DeploymentsClient) CancelAtManagementGroupScope(ctx context.Context result, err = client.CancelAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "CancelAtManagementGroupScope", resp, "Failure responding to request") + return } return @@ -327,6 +330,7 @@ func (client DeploymentsClient) CancelAtScope(ctx context.Context, scope string, result, err = client.CancelAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "CancelAtScope", resp, "Failure responding to request") + return } return @@ -409,6 +413,7 @@ func (client DeploymentsClient) CancelAtSubscriptionScope(ctx context.Context, d result, err = client.CancelAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "CancelAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -491,6 +496,7 @@ func (client DeploymentsClient) CancelAtTenantScope(ctx context.Context, deploym result, err = client.CancelAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "CancelAtTenantScope", resp, "Failure responding to request") + return } return @@ -576,6 +582,7 @@ func (client DeploymentsClient) CheckExistence(ctx context.Context, resourceGrou result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "CheckExistence", resp, "Failure responding to request") + return } return @@ -661,6 +668,7 @@ func (client DeploymentsClient) CheckExistenceAtManagementGroupScope(ctx context result, err = client.CheckExistenceAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "CheckExistenceAtManagementGroupScope", resp, "Failure responding to request") + return } return @@ -742,6 +750,7 @@ func (client DeploymentsClient) CheckExistenceAtScope(ctx context.Context, scope result, err = client.CheckExistenceAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "CheckExistenceAtScope", resp, "Failure responding to request") + return } return @@ -822,6 +831,7 @@ func (client DeploymentsClient) CheckExistenceAtSubscriptionScope(ctx context.Co result, err = client.CheckExistenceAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "CheckExistenceAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -902,6 +912,7 @@ func (client DeploymentsClient) CheckExistenceAtTenantScope(ctx context.Context, result, err = client.CheckExistenceAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "CheckExistenceAtTenantScope", resp, "Failure responding to request") + return } return @@ -1892,6 +1903,7 @@ func (client DeploymentsClient) ExportTemplate(ctx context.Context, resourceGrou result, err = client.ExportTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "ExportTemplate", resp, "Failure responding to request") + return } return @@ -1978,6 +1990,7 @@ func (client DeploymentsClient) ExportTemplateAtManagementGroupScope(ctx context result, err = client.ExportTemplateAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "ExportTemplateAtManagementGroupScope", resp, "Failure responding to request") + return } return @@ -2060,6 +2073,7 @@ func (client DeploymentsClient) ExportTemplateAtScope(ctx context.Context, scope result, err = client.ExportTemplateAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "ExportTemplateAtScope", resp, "Failure responding to request") + return } return @@ -2141,6 +2155,7 @@ func (client DeploymentsClient) ExportTemplateAtSubscriptionScope(ctx context.Co result, err = client.ExportTemplateAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "ExportTemplateAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -2222,6 +2237,7 @@ func (client DeploymentsClient) ExportTemplateAtTenantScope(ctx context.Context, result, err = client.ExportTemplateAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "ExportTemplateAtTenantScope", resp, "Failure responding to request") + return } return @@ -2307,6 +2323,7 @@ func (client DeploymentsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "Get", resp, "Failure responding to request") + return } return @@ -2393,6 +2410,7 @@ func (client DeploymentsClient) GetAtManagementGroupScope(ctx context.Context, g result, err = client.GetAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "GetAtManagementGroupScope", resp, "Failure responding to request") + return } return @@ -2475,6 +2493,7 @@ func (client DeploymentsClient) GetAtScope(ctx context.Context, scope string, de result, err = client.GetAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "GetAtScope", resp, "Failure responding to request") + return } return @@ -2556,6 +2575,7 @@ func (client DeploymentsClient) GetAtSubscriptionScope(ctx context.Context, depl result, err = client.GetAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "GetAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -2637,6 +2657,7 @@ func (client DeploymentsClient) GetAtTenantScope(ctx context.Context, deployment result, err = client.GetAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "GetAtTenantScope", resp, "Failure responding to request") + return } return @@ -2720,6 +2741,7 @@ func (client DeploymentsClient) ListAtManagementGroupScope(ctx context.Context, result.dlr, err = client.ListAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "ListAtManagementGroupScope", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2788,6 +2810,7 @@ func (client DeploymentsClient) listAtManagementGroupScopeNextResults(ctx contex result, err = client.ListAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "listAtManagementGroupScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -2842,6 +2865,7 @@ func (client DeploymentsClient) ListAtScope(ctx context.Context, scope string, f result.dlr, err = client.ListAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "ListAtScope", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2910,6 +2934,7 @@ func (client DeploymentsClient) listAtScopeNextResults(ctx context.Context, last result, err = client.ListAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "listAtScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -2963,6 +2988,7 @@ func (client DeploymentsClient) ListAtSubscriptionScope(ctx context.Context, fil result.dlr, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "ListAtSubscriptionScope", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3031,6 +3057,7 @@ func (client DeploymentsClient) listAtSubscriptionScopeNextResults(ctx context.C result, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "listAtSubscriptionScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -3084,6 +3111,7 @@ func (client DeploymentsClient) ListAtTenantScope(ctx context.Context, filter st result.dlr, err = client.ListAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "ListAtTenantScope", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3148,6 +3176,7 @@ func (client DeploymentsClient) listAtTenantScopeNextResults(ctx context.Context result, err = client.ListAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "listAtTenantScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -3211,6 +3240,7 @@ func (client DeploymentsClient) ListByResourceGroup(ctx context.Context, resourc result.dlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3280,6 +3310,7 @@ func (client DeploymentsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -3353,6 +3384,7 @@ func (client DeploymentsClient) Validate(ctx context.Context, resourceGroupName result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "Validate", resp, "Failure responding to request") + return } return @@ -3450,6 +3482,7 @@ func (client DeploymentsClient) ValidateAtManagementGroupScope(ctx context.Conte result, err = client.ValidateAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "ValidateAtManagementGroupScope", resp, "Failure responding to request") + return } return @@ -3543,6 +3576,7 @@ func (client DeploymentsClient) ValidateAtScope(ctx context.Context, scope strin result, err = client.ValidateAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "ValidateAtScope", resp, "Failure responding to request") + return } return @@ -3635,6 +3669,7 @@ func (client DeploymentsClient) ValidateAtSubscriptionScope(ctx context.Context, result, err = client.ValidateAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "ValidateAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -3727,6 +3762,7 @@ func (client DeploymentsClient) ValidateAtTenantScope(ctx context.Context, deplo result, err = client.ValidateAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.DeploymentsClient", "ValidateAtTenantScope", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2019-07-01/features/operations.go b/services/resources/mgmt/2019-07-01/features/operations.go index 76b0d3899e6c..222b0b1ba058 100644 --- a/services/resources/mgmt/2019-07-01/features/operations.go +++ b/services/resources/mgmt/2019-07-01/features/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-07-01/features/providers.go b/services/resources/mgmt/2019-07-01/features/providers.go index 6add3c0d8143..14d0d5b2e136 100644 --- a/services/resources/mgmt/2019-07-01/features/providers.go +++ b/services/resources/mgmt/2019-07-01/features/providers.go @@ -73,6 +73,7 @@ func (client ProvidersClient) Get(ctx context.Context, resourceProviderNamespace result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.ProvidersClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ProvidersClient) GetAtTenantScope(ctx context.Context, resourceProv result, err = client.GetAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.ProvidersClient", "GetAtTenantScope", resp, "Failure responding to request") + return } return @@ -230,6 +232,7 @@ func (client ProvidersClient) List(ctx context.Context, top *int32, expand strin result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.ProvidersClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -298,6 +301,7 @@ func (client ProvidersClient) listNextResults(ctx context.Context, lastResults P result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.ProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -352,6 +356,7 @@ func (client ProvidersClient) ListAtTenantScope(ctx context.Context, top *int32, result.plr, err = client.ListAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.ProvidersClient", "ListAtTenantScope", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -416,6 +421,7 @@ func (client ProvidersClient) listAtTenantScopeNextResults(ctx context.Context, result, err = client.ListAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.ProvidersClient", "listAtTenantScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -466,6 +472,7 @@ func (client ProvidersClient) Register(ctx context.Context, resourceProviderName result, err = client.RegisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.ProvidersClient", "Register", resp, "Failure responding to request") + return } return @@ -539,6 +546,7 @@ func (client ProvidersClient) Unregister(ctx context.Context, resourceProviderNa result, err = client.UnregisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.ProvidersClient", "Unregister", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2019-07-01/features/resourcegroups.go b/services/resources/mgmt/2019-07-01/features/resourcegroups.go index 43a61c50a553..01d18ce2c160 100644 --- a/services/resources/mgmt/2019-07-01/features/resourcegroups.go +++ b/services/resources/mgmt/2019-07-01/features/resourcegroups.go @@ -80,6 +80,7 @@ func (client ResourceGroupsClient) CheckExistence(ctx context.Context, resourceG result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.ResourceGroupsClient", "CheckExistence", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client ResourceGroupsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.ResourceGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -333,6 +335,7 @@ func (client ResourceGroupsClient) ExportTemplate(ctx context.Context, resourceG result, err = client.ExportTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.ResourceGroupsClient", "ExportTemplate", resp, "Failure responding to request") + return } return @@ -416,6 +419,7 @@ func (client ResourceGroupsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.ResourceGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -492,6 +496,7 @@ func (client ResourceGroupsClient) List(ctx context.Context, filter string, top result.rglr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.ResourceGroupsClient", "List", resp, "Failure responding to request") + return } if result.rglr.hasNextLink() && result.rglr.IsEmpty() { err = result.NextWithContext(ctx) @@ -560,6 +565,7 @@ func (client ResourceGroupsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.ResourceGroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -620,6 +626,7 @@ func (client ResourceGroupsClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.ResourceGroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2019-07-01/features/resources.go b/services/resources/mgmt/2019-07-01/features/resources.go index 72d16a394ca4..79e00288e683 100644 --- a/services/resources/mgmt/2019-07-01/features/resources.go +++ b/services/resources/mgmt/2019-07-01/features/resources.go @@ -86,6 +86,7 @@ func (client ResourcesClient) CheckExistence(ctx context.Context, resourceGroupN result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.ResourcesClient", "CheckExistence", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client ResourcesClient) CheckExistenceByID(ctx context.Context, resourceID result, err = client.CheckExistenceByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.ResourcesClient", "CheckExistenceByID", resp, "Failure responding to request") + return } return @@ -589,6 +591,7 @@ func (client ResourcesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.ResourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -668,6 +671,7 @@ func (client ResourcesClient) GetByID(ctx context.Context, resourceID string, AP result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.ResourcesClient", "GetByID", resp, "Failure responding to request") + return } return @@ -753,6 +757,7 @@ func (client ResourcesClient) List(ctx context.Context, filter string, expand st result.rlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.ResourcesClient", "List", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -824,6 +829,7 @@ func (client ResourcesClient) listNextResults(ctx context.Context, lastResults R result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.ResourcesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -897,6 +903,7 @@ func (client ResourcesClient) ListByResourceGroup(ctx context.Context, resourceG result.rlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.ResourcesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -969,6 +976,7 @@ func (client ResourcesClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.ResourcesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-07-01/features/tags.go b/services/resources/mgmt/2019-07-01/features/tags.go index 4bad976d73b4..29a5a598020d 100644 --- a/services/resources/mgmt/2019-07-01/features/tags.go +++ b/services/resources/mgmt/2019-07-01/features/tags.go @@ -72,6 +72,7 @@ func (client TagsClient) CreateOrUpdate(ctx context.Context, tagName string) (re result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.TagsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client TagsClient) CreateOrUpdateValue(ctx context.Context, tagName string result, err = client.CreateOrUpdateValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.TagsClient", "CreateOrUpdateValue", resp, "Failure responding to request") + return } return @@ -220,6 +222,7 @@ func (client TagsClient) Delete(ctx context.Context, tagName string) (result aut result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.TagsClient", "Delete", resp, "Failure responding to request") + return } return @@ -293,6 +296,7 @@ func (client TagsClient) DeleteValue(ctx context.Context, tagName string, tagVal result, err = client.DeleteValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.TagsClient", "DeleteValue", resp, "Failure responding to request") + return } return @@ -365,6 +369,7 @@ func (client TagsClient) List(ctx context.Context) (result TagsListResultPage, e result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.TagsClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -427,6 +432,7 @@ func (client TagsClient) listNextResults(ctx context.Context, lastResults TagsLi result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "features.TagsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-07-01/managedapplications/applicationdefinitions.go b/services/resources/mgmt/2019-07-01/managedapplications/applicationdefinitions.go index 3e4d9cc96ff6..019a80ce2288 100644 --- a/services/resources/mgmt/2019-07-01/managedapplications/applicationdefinitions.go +++ b/services/resources/mgmt/2019-07-01/managedapplications/applicationdefinitions.go @@ -443,6 +443,7 @@ func (client ApplicationDefinitionsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -529,6 +530,7 @@ func (client ApplicationDefinitionsClient) GetByID(ctx context.Context, resource result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationDefinitionsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -612,6 +614,7 @@ func (client ApplicationDefinitionsClient) ListByResourceGroup(ctx context.Conte result.adlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationDefinitionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.adlr.hasNextLink() && result.adlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -675,6 +678,7 @@ func (client ApplicationDefinitionsClient) listByResourceGroupNextResults(ctx co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationDefinitionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-07-01/managedapplications/applications.go b/services/resources/mgmt/2019-07-01/managedapplications/applications.go index deae89907809..5e4898cc0867 100644 --- a/services/resources/mgmt/2019-07-01/managedapplications/applications.go +++ b/services/resources/mgmt/2019-07-01/managedapplications/applications.go @@ -446,6 +446,7 @@ func (client ApplicationsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -522,6 +523,7 @@ func (client ApplicationsClient) GetByID(ctx context.Context, applicationID stri result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -603,6 +605,7 @@ func (client ApplicationsClient) ListByResourceGroup(ctx context.Context, resour result.alr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -666,6 +669,7 @@ func (client ApplicationsClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -715,6 +719,7 @@ func (client ApplicationsClient) ListBySubscription(ctx context.Context) (result result.alr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -777,6 +782,7 @@ func (client ApplicationsClient) listBySubscriptionNextResults(ctx context.Conte result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -925,6 +931,7 @@ func (client ApplicationsClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationsClient", "Update", resp, "Failure responding to request") + return } return @@ -1008,6 +1015,7 @@ func (client ApplicationsClient) UpdateByID(ctx context.Context, applicationID s result, err = client.UpdateByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.ApplicationsClient", "UpdateByID", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2019-07-01/managedapplications/client.go b/services/resources/mgmt/2019-07-01/managedapplications/client.go index fc3b73e6367b..bb620df97b9a 100644 --- a/services/resources/mgmt/2019-07-01/managedapplications/client.go +++ b/services/resources/mgmt/2019-07-01/managedapplications/client.go @@ -84,6 +84,7 @@ func (client BaseClient) ListOperations(ctx context.Context) (result OperationLi result.olr, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.BaseClient", "ListOperations", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -142,6 +143,7 @@ func (client BaseClient) listOperationsNextResults(ctx context.Context, lastResu result, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.BaseClient", "listOperationsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-07-01/managedapplications/jitrequests.go b/services/resources/mgmt/2019-07-01/managedapplications/jitrequests.go index 0e7eaf346104..310903af694a 100644 --- a/services/resources/mgmt/2019-07-01/managedapplications/jitrequests.go +++ b/services/resources/mgmt/2019-07-01/managedapplications/jitrequests.go @@ -176,6 +176,7 @@ func (client JitRequestsClient) Delete(ctx context.Context, resourceGroupName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.JitRequestsClient", "Delete", resp, "Failure responding to request") + return } return @@ -258,6 +259,7 @@ func (client JitRequestsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.JitRequestsClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +342,7 @@ func (client JitRequestsClient) ListByResourceGroup(ctx context.Context, resourc result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.JitRequestsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -411,6 +414,7 @@ func (client JitRequestsClient) ListBySubscription(ctx context.Context) (result result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.JitRequestsClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -493,6 +497,7 @@ func (client JitRequestsClient) Update(ctx context.Context, resourceGroupName st result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managedapplications.JitRequestsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2019-09-01/policy/assignments.go b/services/resources/mgmt/2019-09-01/policy/assignments.go index ccf183b11346..114d105de979 100644 --- a/services/resources/mgmt/2019-09-01/policy/assignments.go +++ b/services/resources/mgmt/2019-09-01/policy/assignments.go @@ -88,6 +88,7 @@ func (client AssignmentsClient) Create(ctx context.Context, scope string, policy result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Create", resp, "Failure responding to request") + return } return @@ -182,6 +183,7 @@ func (client AssignmentsClient) CreateByID(ctx context.Context, policyAssignment result, err = client.CreateByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "CreateByID", resp, "Failure responding to request") + return } return @@ -266,6 +268,7 @@ func (client AssignmentsClient) Delete(ctx context.Context, scope string, policy result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -346,6 +349,7 @@ func (client AssignmentsClient) DeleteByID(ctx context.Context, policyAssignment result, err = client.DeleteByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "DeleteByID", resp, "Failure responding to request") + return } return @@ -423,6 +427,7 @@ func (client AssignmentsClient) Get(ctx context.Context, scope string, policyAss result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -502,6 +507,7 @@ func (client AssignmentsClient) GetByID(ctx context.Context, policyAssignmentID result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "GetByID", resp, "Failure responding to request") + return } return @@ -583,6 +589,7 @@ func (client AssignmentsClient) List(ctx context.Context, filter string) (result result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -648,6 +655,7 @@ func (client AssignmentsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -707,6 +715,7 @@ func (client AssignmentsClient) ListForManagementGroup(ctx context.Context, mana result.alr, err = client.ListForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForManagementGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -770,6 +779,7 @@ func (client AssignmentsClient) listForManagementGroupNextResults(ctx context.Co result, err = client.ListForManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -854,6 +864,7 @@ func (client AssignmentsClient) ListForResource(ctx context.Context, resourceGro result.alr, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResource", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -924,6 +935,7 @@ func (client AssignmentsClient) listForResourceNextResults(ctx context.Context, result, err = client.ListForResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceNextResults", resp, "Failure responding to next results request") + return } return } @@ -993,6 +1005,7 @@ func (client AssignmentsClient) ListForResourceGroup(ctx context.Context, resour result.alr, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResourceGroup", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1059,6 +1072,7 @@ func (client AssignmentsClient) listForResourceGroupNextResults(ctx context.Cont result, err = client.ListForResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-09-01/policy/definitions.go b/services/resources/mgmt/2019-09-01/policy/definitions.go index 869a2920c3cf..b0d8ce096c61 100644 --- a/services/resources/mgmt/2019-09-01/policy/definitions.go +++ b/services/resources/mgmt/2019-09-01/policy/definitions.go @@ -73,6 +73,7 @@ func (client DefinitionsClient) CreateOrUpdate(ctx context.Context, policyDefini result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client DefinitionsClient) CreateOrUpdateAtManagementGroup(ctx context.Cont result, err = client.CreateOrUpdateAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdateAtManagementGroup", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client DefinitionsClient) Delete(ctx context.Context, policyDefinitionName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -306,6 +309,7 @@ func (client DefinitionsClient) DeleteAtManagementGroup(ctx context.Context, pol result, err = client.DeleteAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "DeleteAtManagementGroup", resp, "Failure responding to request") + return } return @@ -378,6 +382,7 @@ func (client DefinitionsClient) Get(ctx context.Context, policyDefinitionName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -453,6 +458,7 @@ func (client DefinitionsClient) GetAtManagementGroup(ctx context.Context, policy result, err = client.GetAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "GetAtManagementGroup", resp, "Failure responding to request") + return } return @@ -526,6 +532,7 @@ func (client DefinitionsClient) GetBuiltIn(ctx context.Context, policyDefinition result, err = client.GetBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "GetBuiltIn", resp, "Failure responding to request") + return } return @@ -597,6 +604,7 @@ func (client DefinitionsClient) List(ctx context.Context) (result DefinitionList result.dlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "List", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -659,6 +667,7 @@ func (client DefinitionsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -708,6 +717,7 @@ func (client DefinitionsClient) ListBuiltIn(ctx context.Context) (result Definit result.dlr, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "ListBuiltIn", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -766,6 +776,7 @@ func (client DefinitionsClient) listBuiltInNextResults(ctx context.Context, last result, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listBuiltInNextResults", resp, "Failure responding to next results request") + return } return } @@ -817,6 +828,7 @@ func (client DefinitionsClient) ListByManagementGroup(ctx context.Context, manag result.dlr, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "ListByManagementGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -879,6 +891,7 @@ func (client DefinitionsClient) listByManagementGroupNextResults(ctx context.Con result, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listByManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-09-01/policy/setdefinitions.go b/services/resources/mgmt/2019-09-01/policy/setdefinitions.go index 3504f11c4074..5ddc56ff4b99 100644 --- a/services/resources/mgmt/2019-09-01/policy/setdefinitions.go +++ b/services/resources/mgmt/2019-09-01/policy/setdefinitions.go @@ -82,6 +82,7 @@ func (client SetDefinitionsClient) CreateOrUpdate(ctx context.Context, policySet result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client SetDefinitionsClient) CreateOrUpdateAtManagementGroup(ctx context.C result, err = client.CreateOrUpdateAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "CreateOrUpdateAtManagementGroup", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client SetDefinitionsClient) Delete(ctx context.Context, policySetDefiniti result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -322,6 +325,7 @@ func (client SetDefinitionsClient) DeleteAtManagementGroup(ctx context.Context, result, err = client.DeleteAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "DeleteAtManagementGroup", resp, "Failure responding to request") + return } return @@ -394,6 +398,7 @@ func (client SetDefinitionsClient) Get(ctx context.Context, policySetDefinitionN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "Get", resp, "Failure responding to request") + return } return @@ -469,6 +474,7 @@ func (client SetDefinitionsClient) GetAtManagementGroup(ctx context.Context, pol result, err = client.GetAtManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "GetAtManagementGroup", resp, "Failure responding to request") + return } return @@ -542,6 +548,7 @@ func (client SetDefinitionsClient) GetBuiltIn(ctx context.Context, policySetDefi result, err = client.GetBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "GetBuiltIn", resp, "Failure responding to request") + return } return @@ -613,6 +620,7 @@ func (client SetDefinitionsClient) List(ctx context.Context) (result SetDefiniti result.sdlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "List", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -675,6 +683,7 @@ func (client SetDefinitionsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -724,6 +733,7 @@ func (client SetDefinitionsClient) ListBuiltIn(ctx context.Context) (result SetD result.sdlr, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "ListBuiltIn", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -782,6 +792,7 @@ func (client SetDefinitionsClient) listBuiltInNextResults(ctx context.Context, l result, err = client.ListBuiltInResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listBuiltInNextResults", resp, "Failure responding to next results request") + return } return } @@ -834,6 +845,7 @@ func (client SetDefinitionsClient) ListByManagementGroup(ctx context.Context, ma result.sdlr, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "ListByManagementGroup", resp, "Failure responding to request") + return } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -896,6 +908,7 @@ func (client SetDefinitionsClient) listByManagementGroupNextResults(ctx context. result, err = client.ListByManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listByManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-10-01/resources/deploymentoperations.go b/services/resources/mgmt/2019-10-01/resources/deploymentoperations.go index b90931c7d042..1ddd38ab1358 100644 --- a/services/resources/mgmt/2019-10-01/resources/deploymentoperations.go +++ b/services/resources/mgmt/2019-10-01/resources/deploymentoperations.go @@ -87,6 +87,7 @@ func (client DeploymentOperationsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "Get", resp, "Failure responding to request") + return } return @@ -175,6 +176,7 @@ func (client DeploymentOperationsClient) GetAtManagementGroupScope(ctx context.C result, err = client.GetAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "GetAtManagementGroupScope", resp, "Failure responding to request") + return } return @@ -259,6 +261,7 @@ func (client DeploymentOperationsClient) GetAtScope(ctx context.Context, scope s result, err = client.GetAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "GetAtScope", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client DeploymentOperationsClient) GetAtSubscriptionScope(ctx context.Cont result, err = client.GetAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "GetAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -425,6 +429,7 @@ func (client DeploymentOperationsClient) GetAtTenantScope(ctx context.Context, d result, err = client.GetAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "GetAtTenantScope", resp, "Failure responding to request") + return } return @@ -513,6 +518,7 @@ func (client DeploymentOperationsClient) List(ctx context.Context, resourceGroup result.dolr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "List", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -580,6 +586,7 @@ func (client DeploymentOperationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -644,6 +651,7 @@ func (client DeploymentOperationsClient) ListAtManagementGroupScope(ctx context. result.dolr, err = client.ListAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "ListAtManagementGroupScope", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -710,6 +718,7 @@ func (client DeploymentOperationsClient) listAtManagementGroupScopeNextResults(c result, err = client.ListAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listAtManagementGroupScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -771,6 +780,7 @@ func (client DeploymentOperationsClient) ListAtScope(ctx context.Context, scope result.dolr, err = client.ListAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "ListAtScope", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -837,6 +847,7 @@ func (client DeploymentOperationsClient) listAtScopeNextResults(ctx context.Cont result, err = client.ListAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listAtScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -897,6 +908,7 @@ func (client DeploymentOperationsClient) ListAtSubscriptionScope(ctx context.Con result.dolr, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "ListAtSubscriptionScope", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -963,6 +975,7 @@ func (client DeploymentOperationsClient) listAtSubscriptionScopeNextResults(ctx result, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listAtSubscriptionScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -1023,6 +1036,7 @@ func (client DeploymentOperationsClient) ListAtTenantScope(ctx context.Context, result.dolr, err = client.ListAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "ListAtTenantScope", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1088,6 +1102,7 @@ func (client DeploymentOperationsClient) listAtTenantScopeNextResults(ctx contex result, err = client.ListAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listAtTenantScopeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-10-01/resources/deployments.go b/services/resources/mgmt/2019-10-01/resources/deployments.go index bcd2ad0b2bbc..f74325106f56 100644 --- a/services/resources/mgmt/2019-10-01/resources/deployments.go +++ b/services/resources/mgmt/2019-10-01/resources/deployments.go @@ -72,6 +72,7 @@ func (client DeploymentsClient) CalculateTemplateHash(ctx context.Context, templ result, err = client.CalculateTemplateHashResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CalculateTemplateHash", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client DeploymentsClient) Cancel(ctx context.Context, resourceGroupName st result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client DeploymentsClient) CancelAtManagementGroupScope(ctx context.Context result, err = client.CancelAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CancelAtManagementGroupScope", resp, "Failure responding to request") + return } return @@ -327,6 +330,7 @@ func (client DeploymentsClient) CancelAtScope(ctx context.Context, scope string, result, err = client.CancelAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CancelAtScope", resp, "Failure responding to request") + return } return @@ -409,6 +413,7 @@ func (client DeploymentsClient) CancelAtSubscriptionScope(ctx context.Context, d result, err = client.CancelAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CancelAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -491,6 +496,7 @@ func (client DeploymentsClient) CancelAtTenantScope(ctx context.Context, deploym result, err = client.CancelAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CancelAtTenantScope", resp, "Failure responding to request") + return } return @@ -576,6 +582,7 @@ func (client DeploymentsClient) CheckExistence(ctx context.Context, resourceGrou result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistence", resp, "Failure responding to request") + return } return @@ -661,6 +668,7 @@ func (client DeploymentsClient) CheckExistenceAtManagementGroupScope(ctx context result, err = client.CheckExistenceAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistenceAtManagementGroupScope", resp, "Failure responding to request") + return } return @@ -742,6 +750,7 @@ func (client DeploymentsClient) CheckExistenceAtScope(ctx context.Context, scope result, err = client.CheckExistenceAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistenceAtScope", resp, "Failure responding to request") + return } return @@ -822,6 +831,7 @@ func (client DeploymentsClient) CheckExistenceAtSubscriptionScope(ctx context.Co result, err = client.CheckExistenceAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistenceAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -902,6 +912,7 @@ func (client DeploymentsClient) CheckExistenceAtTenantScope(ctx context.Context, result, err = client.CheckExistenceAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistenceAtTenantScope", resp, "Failure responding to request") + return } return @@ -1894,6 +1905,7 @@ func (client DeploymentsClient) ExportTemplate(ctx context.Context, resourceGrou result, err = client.ExportTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplate", resp, "Failure responding to request") + return } return @@ -1980,6 +1992,7 @@ func (client DeploymentsClient) ExportTemplateAtManagementGroupScope(ctx context result, err = client.ExportTemplateAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplateAtManagementGroupScope", resp, "Failure responding to request") + return } return @@ -2062,6 +2075,7 @@ func (client DeploymentsClient) ExportTemplateAtScope(ctx context.Context, scope result, err = client.ExportTemplateAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplateAtScope", resp, "Failure responding to request") + return } return @@ -2143,6 +2157,7 @@ func (client DeploymentsClient) ExportTemplateAtSubscriptionScope(ctx context.Co result, err = client.ExportTemplateAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplateAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -2224,6 +2239,7 @@ func (client DeploymentsClient) ExportTemplateAtTenantScope(ctx context.Context, result, err = client.ExportTemplateAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplateAtTenantScope", resp, "Failure responding to request") + return } return @@ -2309,6 +2325,7 @@ func (client DeploymentsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Get", resp, "Failure responding to request") + return } return @@ -2395,6 +2412,7 @@ func (client DeploymentsClient) GetAtManagementGroupScope(ctx context.Context, g result, err = client.GetAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "GetAtManagementGroupScope", resp, "Failure responding to request") + return } return @@ -2477,6 +2495,7 @@ func (client DeploymentsClient) GetAtScope(ctx context.Context, scope string, de result, err = client.GetAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "GetAtScope", resp, "Failure responding to request") + return } return @@ -2558,6 +2577,7 @@ func (client DeploymentsClient) GetAtSubscriptionScope(ctx context.Context, depl result, err = client.GetAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "GetAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -2639,6 +2659,7 @@ func (client DeploymentsClient) GetAtTenantScope(ctx context.Context, deployment result, err = client.GetAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "GetAtTenantScope", resp, "Failure responding to request") + return } return @@ -2722,6 +2743,7 @@ func (client DeploymentsClient) ListAtManagementGroupScope(ctx context.Context, result.dlr, err = client.ListAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ListAtManagementGroupScope", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2790,6 +2812,7 @@ func (client DeploymentsClient) listAtManagementGroupScopeNextResults(ctx contex result, err = client.ListAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listAtManagementGroupScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -2844,6 +2867,7 @@ func (client DeploymentsClient) ListAtScope(ctx context.Context, scope string, f result.dlr, err = client.ListAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ListAtScope", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2912,6 +2936,7 @@ func (client DeploymentsClient) listAtScopeNextResults(ctx context.Context, last result, err = client.ListAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listAtScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -2965,6 +2990,7 @@ func (client DeploymentsClient) ListAtSubscriptionScope(ctx context.Context, fil result.dlr, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ListAtSubscriptionScope", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3033,6 +3059,7 @@ func (client DeploymentsClient) listAtSubscriptionScopeNextResults(ctx context.C result, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listAtSubscriptionScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -3086,6 +3113,7 @@ func (client DeploymentsClient) ListAtTenantScope(ctx context.Context, filter st result.dlr, err = client.ListAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ListAtTenantScope", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3150,6 +3178,7 @@ func (client DeploymentsClient) listAtTenantScopeNextResults(ctx context.Context result, err = client.ListAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listAtTenantScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -3213,6 +3242,7 @@ func (client DeploymentsClient) ListByResourceGroup(ctx context.Context, resourc result.dlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3282,6 +3312,7 @@ func (client DeploymentsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-10-01/resources/groups.go b/services/resources/mgmt/2019-10-01/resources/groups.go index 8e44b27c830d..ecf7b1f71e4e 100644 --- a/services/resources/mgmt/2019-10-01/resources/groups.go +++ b/services/resources/mgmt/2019-10-01/resources/groups.go @@ -80,6 +80,7 @@ func (client GroupsClient) CheckExistence(ctx context.Context, resourceGroupName result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CheckExistence", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client GroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -416,6 +418,7 @@ func (client GroupsClient) Get(ctx context.Context, resourceGroupName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -492,6 +495,7 @@ func (client GroupsClient) List(ctx context.Context, filter string, top *int32) result.glr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "List", resp, "Failure responding to request") + return } if result.glr.hasNextLink() && result.glr.IsEmpty() { err = result.NextWithContext(ctx) @@ -560,6 +564,7 @@ func (client GroupsClient) listNextResults(ctx context.Context, lastResults Grou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -620,6 +625,7 @@ func (client GroupsClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2019-10-01/resources/operations.go b/services/resources/mgmt/2019-10-01/resources/operations.go index 168211890f0d..95ec3477d690 100644 --- a/services/resources/mgmt/2019-10-01/resources/operations.go +++ b/services/resources/mgmt/2019-10-01/resources/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-10-01/resources/providers.go b/services/resources/mgmt/2019-10-01/resources/providers.go index c6066edbd333..2ccd3884d536 100644 --- a/services/resources/mgmt/2019-10-01/resources/providers.go +++ b/services/resources/mgmt/2019-10-01/resources/providers.go @@ -73,6 +73,7 @@ func (client ProvidersClient) Get(ctx context.Context, resourceProviderNamespace result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ProvidersClient) GetAtTenantScope(ctx context.Context, resourceProv result, err = client.GetAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "GetAtTenantScope", resp, "Failure responding to request") + return } return @@ -230,6 +232,7 @@ func (client ProvidersClient) List(ctx context.Context, top *int32, expand strin result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -298,6 +301,7 @@ func (client ProvidersClient) listNextResults(ctx context.Context, lastResults P result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -352,6 +356,7 @@ func (client ProvidersClient) ListAtTenantScope(ctx context.Context, top *int32, result.plr, err = client.ListAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "ListAtTenantScope", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -416,6 +421,7 @@ func (client ProvidersClient) listAtTenantScopeNextResults(ctx context.Context, result, err = client.ListAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "listAtTenantScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -466,6 +472,7 @@ func (client ProvidersClient) Register(ctx context.Context, resourceProviderName result, err = client.RegisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Register", resp, "Failure responding to request") + return } return @@ -539,6 +546,7 @@ func (client ProvidersClient) Unregister(ctx context.Context, resourceProviderNa result, err = client.UnregisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Unregister", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2019-10-01/resources/resources.go b/services/resources/mgmt/2019-10-01/resources/resources.go index dc96b91d9b57..27fd074f118d 100644 --- a/services/resources/mgmt/2019-10-01/resources/resources.go +++ b/services/resources/mgmt/2019-10-01/resources/resources.go @@ -86,6 +86,7 @@ func (client Client) CheckExistence(ctx context.Context, resourceGroupName strin result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "CheckExistence", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client Client) CheckExistenceByID(ctx context.Context, resourceID string, result, err = client.CheckExistenceByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "CheckExistenceByID", resp, "Failure responding to request") + return } return @@ -589,6 +591,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "Get", resp, "Failure responding to request") + return } return @@ -668,6 +671,7 @@ func (client Client) GetByID(ctx context.Context, resourceID string, APIVersion result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "GetByID", resp, "Failure responding to request") + return } return @@ -754,6 +758,7 @@ func (client Client) List(ctx context.Context, filter string, expand string, top result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -825,6 +830,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -899,6 +905,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -971,6 +978,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-10-01/resources/tags.go b/services/resources/mgmt/2019-10-01/resources/tags.go index 06081645b8fc..79d9f8971174 100644 --- a/services/resources/mgmt/2019-10-01/resources/tags.go +++ b/services/resources/mgmt/2019-10-01/resources/tags.go @@ -74,6 +74,7 @@ func (client TagsClient) CreateOrUpdate(ctx context.Context, tagName string) (re result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client TagsClient) CreateOrUpdateAtScope(ctx context.Context, scope string result, err = client.CreateOrUpdateAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdateAtScope", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client TagsClient) CreateOrUpdateValue(ctx context.Context, tagName string result, err = client.CreateOrUpdateValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdateValue", resp, "Failure responding to request") + return } return @@ -309,6 +312,7 @@ func (client TagsClient) Delete(ctx context.Context, tagName string) (result aut result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "Delete", resp, "Failure responding to request") + return } return @@ -381,6 +385,7 @@ func (client TagsClient) DeleteAtScope(ctx context.Context, scope string) (resul result, err = client.DeleteAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "DeleteAtScope", resp, "Failure responding to request") + return } return @@ -454,6 +459,7 @@ func (client TagsClient) DeleteValue(ctx context.Context, tagName string, tagVal result, err = client.DeleteValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "DeleteValue", resp, "Failure responding to request") + return } return @@ -527,6 +533,7 @@ func (client TagsClient) GetAtScope(ctx context.Context, scope string) (result T result, err = client.GetAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "GetAtScope", resp, "Failure responding to request") + return } return @@ -600,6 +607,7 @@ func (client TagsClient) List(ctx context.Context) (result TagsListResultPage, e result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -662,6 +670,7 @@ func (client TagsClient) listNextResults(ctx context.Context, lastResults TagsLi result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -716,6 +725,7 @@ func (client TagsClient) UpdateAtScope(ctx context.Context, scope string, parame result, err = client.UpdateAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "UpdateAtScope", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2019-11-01/managementgroups/client.go b/services/resources/mgmt/2019-11-01/managementgroups/client.go index 48e59294f710..ed46a76fb991 100644 --- a/services/resources/mgmt/2019-11-01/managementgroups/client.go +++ b/services/resources/mgmt/2019-11-01/managementgroups/client.go @@ -84,6 +84,7 @@ func (client BaseClient) CheckNameAvailability(ctx context.Context, checkNameAva result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.BaseClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client BaseClient) StartTenantBackfill(ctx context.Context) (result Tenant result, err = client.StartTenantBackfillResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.BaseClient", "StartTenantBackfill", resp, "Failure responding to request") + return } return @@ -218,6 +220,7 @@ func (client BaseClient) TenantBackfillStatus(ctx context.Context) (result Tenan result, err = client.TenantBackfillStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.BaseClient", "TenantBackfillStatus", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2019-11-01/managementgroups/entities.go b/services/resources/mgmt/2019-11-01/managementgroups/entities.go index 5b11d2f2ab35..c17e14bbddf9 100644 --- a/services/resources/mgmt/2019-11-01/managementgroups/entities.go +++ b/services/resources/mgmt/2019-11-01/managementgroups/entities.go @@ -102,6 +102,7 @@ func (client EntitiesClient) List(ctx context.Context, skiptoken string, skip *i result.elr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.EntitiesClient", "List", resp, "Failure responding to request") + return } if result.elr.hasNextLink() && result.elr.IsEmpty() { err = result.NextWithContext(ctx) @@ -191,6 +192,7 @@ func (client EntitiesClient) listNextResults(ctx context.Context, lastResults En result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.EntitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-11-01/managementgroups/managementgroups.go b/services/resources/mgmt/2019-11-01/managementgroups/managementgroups.go index deb92274ea99..53667c34e7a3 100644 --- a/services/resources/mgmt/2019-11-01/managementgroups/managementgroups.go +++ b/services/resources/mgmt/2019-11-01/managementgroups/managementgroups.go @@ -245,6 +245,7 @@ func (client Client) Get(ctx context.Context, groupID string, expand string, rec result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "Get", resp, "Failure responding to request") + return } return @@ -338,6 +339,7 @@ func (client Client) GetDescendants(ctx context.Context, groupID string, skiptok result.dlr, err = client.GetDescendantsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "GetDescendants", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -406,6 +408,7 @@ func (client Client) getDescendantsNextResults(ctx context.Context, lastResults result, err = client.GetDescendantsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "getDescendantsNextResults", resp, "Failure responding to next results request") + return } return } @@ -460,6 +463,7 @@ func (client Client) List(ctx context.Context, cacheControl string, skiptoken st result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -528,6 +532,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -580,6 +585,7 @@ func (client Client) Update(ctx context.Context, groupID string, patchGroupReque result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "Update", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2019-11-01/managementgroups/operations.go b/services/resources/mgmt/2019-11-01/managementgroups/operations.go index 5efb8cb50633..7af51173940f 100644 --- a/services/resources/mgmt/2019-11-01/managementgroups/operations.go +++ b/services/resources/mgmt/2019-11-01/managementgroups/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-11-01/managementgroups/subscriptions.go b/services/resources/mgmt/2019-11-01/managementgroups/subscriptions.go index 94dc263afe65..009da6d8bb0c 100644 --- a/services/resources/mgmt/2019-11-01/managementgroups/subscriptions.go +++ b/services/resources/mgmt/2019-11-01/managementgroups/subscriptions.go @@ -75,6 +75,7 @@ func (client SubscriptionsClient) Create(ctx context.Context, groupID string, su result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.SubscriptionsClient", "Create", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client SubscriptionsClient) Delete(ctx context.Context, groupID string, su result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.SubscriptionsClient", "Delete", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2019-11-01/subscriptions/client.go b/services/resources/mgmt/2019-11-01/subscriptions/client.go index a900c8f8ca92..a1de5845b780 100644 --- a/services/resources/mgmt/2019-11-01/subscriptions/client.go +++ b/services/resources/mgmt/2019-11-01/subscriptions/client.go @@ -96,6 +96,7 @@ func (client BaseClient) CheckResourceName(ctx context.Context, resourceNameDefi result, err = client.CheckResourceNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.BaseClient", "CheckResourceName", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2019-11-01/subscriptions/operations.go b/services/resources/mgmt/2019-11-01/subscriptions/operations.go index 381289b26554..5ca8a3b025a0 100644 --- a/services/resources/mgmt/2019-11-01/subscriptions/operations.go +++ b/services/resources/mgmt/2019-11-01/subscriptions/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2019-11-01/subscriptions/subscriptions.go b/services/resources/mgmt/2019-11-01/subscriptions/subscriptions.go index 4d62f96ad999..16c28d6e265f 100644 --- a/services/resources/mgmt/2019-11-01/subscriptions/subscriptions.go +++ b/services/resources/mgmt/2019-11-01/subscriptions/subscriptions.go @@ -73,6 +73,7 @@ func (client Client) Get(ctx context.Context, subscriptionID string) (result Sub result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.Client", "Get", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client Client) List(ctx context.Context) (result ListResultPage, err error result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -202,6 +204,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -253,6 +256,7 @@ func (client Client) ListLocations(ctx context.Context, subscriptionID string) ( result, err = client.ListLocationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.Client", "ListLocations", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2019-11-01/subscriptions/tenants.go b/services/resources/mgmt/2019-11-01/subscriptions/tenants.go index a01de3f114dd..bf0e5d5ab15a 100644 --- a/services/resources/mgmt/2019-11-01/subscriptions/tenants.go +++ b/services/resources/mgmt/2019-11-01/subscriptions/tenants.go @@ -72,6 +72,7 @@ func (client TenantsClient) List(ctx context.Context) (result TenantListResultPa result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.TenantsClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client TenantsClient) listNextResults(ctx context.Context, lastResults Ten result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscriptions.TenantsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2020-02-01/managementgroups/client.go b/services/resources/mgmt/2020-02-01/managementgroups/client.go index c4e3038bb0fc..245a56719df8 100644 --- a/services/resources/mgmt/2020-02-01/managementgroups/client.go +++ b/services/resources/mgmt/2020-02-01/managementgroups/client.go @@ -94,6 +94,7 @@ func (client BaseClient) CheckNameAvailability(ctx context.Context, checkNameAva result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.BaseClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client BaseClient) StartTenantBackfill(ctx context.Context) (result Tenant result, err = client.StartTenantBackfillResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.BaseClient", "StartTenantBackfill", resp, "Failure responding to request") + return } return @@ -228,6 +230,7 @@ func (client BaseClient) TenantBackfillStatus(ctx context.Context) (result Tenan result, err = client.TenantBackfillStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.BaseClient", "TenantBackfillStatus", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2020-02-01/managementgroups/entities.go b/services/resources/mgmt/2020-02-01/managementgroups/entities.go index b9f9fa02d723..3d9a73bf1daf 100644 --- a/services/resources/mgmt/2020-02-01/managementgroups/entities.go +++ b/services/resources/mgmt/2020-02-01/managementgroups/entities.go @@ -100,6 +100,7 @@ func (client EntitiesClient) List(ctx context.Context, selectParameter string, s result.elr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.EntitiesClient", "List", resp, "Failure responding to request") + return } if result.elr.hasNextLink() && result.elr.IsEmpty() { err = result.NextWithContext(ctx) @@ -189,6 +190,7 @@ func (client EntitiesClient) listNextResults(ctx context.Context, lastResults En result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.EntitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2020-02-01/managementgroups/hierarchysettings.go b/services/resources/mgmt/2020-02-01/managementgroups/hierarchysettings.go index 90b36d051302..fe5e871052fc 100644 --- a/services/resources/mgmt/2020-02-01/managementgroups/hierarchysettings.go +++ b/services/resources/mgmt/2020-02-01/managementgroups/hierarchysettings.go @@ -75,6 +75,7 @@ func (client HierarchySettingsClient) CreateOrUpdate(ctx context.Context, groupI result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.HierarchySettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client HierarchySettingsClient) Delete(ctx context.Context, groupID string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.HierarchySettingsClient", "Delete", resp, "Failure responding to request") + return } return @@ -221,6 +223,7 @@ func (client HierarchySettingsClient) Get(ctx context.Context, groupID string) ( result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.HierarchySettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -294,6 +297,7 @@ func (client HierarchySettingsClient) List(ctx context.Context, groupID string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.HierarchySettingsClient", "List", resp, "Failure responding to request") + return } return @@ -367,6 +371,7 @@ func (client HierarchySettingsClient) Update(ctx context.Context, groupID string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.HierarchySettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2020-02-01/managementgroups/managementgroups.go b/services/resources/mgmt/2020-02-01/managementgroups/managementgroups.go index 6caa2b26d483..09c64098fa6a 100644 --- a/services/resources/mgmt/2020-02-01/managementgroups/managementgroups.go +++ b/services/resources/mgmt/2020-02-01/managementgroups/managementgroups.go @@ -248,6 +248,7 @@ func (client Client) Get(ctx context.Context, groupID string, expand string, rec result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "Get", resp, "Failure responding to request") + return } return @@ -337,6 +338,7 @@ func (client Client) GetDescendants(ctx context.Context, groupID string) (result result.dlr, err = client.GetDescendantsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "GetDescendants", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -405,6 +407,7 @@ func (client Client) getDescendantsNextResults(ctx context.Context, lastResults result, err = client.GetDescendantsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "getDescendantsNextResults", resp, "Failure responding to next results request") + return } return } @@ -456,6 +459,7 @@ func (client Client) List(ctx context.Context, cacheControl string) (result List result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -524,6 +528,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -576,6 +581,7 @@ func (client Client) Update(ctx context.Context, groupID string, patchGroupReque result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "Update", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2020-02-01/managementgroups/operations.go b/services/resources/mgmt/2020-02-01/managementgroups/operations.go index 30cf514a6045..465e589c70ad 100644 --- a/services/resources/mgmt/2020-02-01/managementgroups/operations.go +++ b/services/resources/mgmt/2020-02-01/managementgroups/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2020-02-01/managementgroups/subscriptions.go b/services/resources/mgmt/2020-02-01/managementgroups/subscriptions.go index b3a0a995977a..3ed3f37b7787 100644 --- a/services/resources/mgmt/2020-02-01/managementgroups/subscriptions.go +++ b/services/resources/mgmt/2020-02-01/managementgroups/subscriptions.go @@ -75,6 +75,7 @@ func (client SubscriptionsClient) Create(ctx context.Context, groupID string, su result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.SubscriptionsClient", "Create", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client SubscriptionsClient) Delete(ctx context.Context, groupID string, su result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.SubscriptionsClient", "Delete", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2020-05-01/managementgroups/client.go b/services/resources/mgmt/2020-05-01/managementgroups/client.go index 542646a964ca..14e869496e58 100644 --- a/services/resources/mgmt/2020-05-01/managementgroups/client.go +++ b/services/resources/mgmt/2020-05-01/managementgroups/client.go @@ -94,6 +94,7 @@ func (client BaseClient) CheckNameAvailability(ctx context.Context, checkNameAva result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.BaseClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client BaseClient) StartTenantBackfill(ctx context.Context) (result Tenant result, err = client.StartTenantBackfillResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.BaseClient", "StartTenantBackfill", resp, "Failure responding to request") + return } return @@ -228,6 +230,7 @@ func (client BaseClient) TenantBackfillStatus(ctx context.Context) (result Tenan result, err = client.TenantBackfillStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.BaseClient", "TenantBackfillStatus", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2020-05-01/managementgroups/entities.go b/services/resources/mgmt/2020-05-01/managementgroups/entities.go index 124668eb6af6..c5e2ac440fc0 100644 --- a/services/resources/mgmt/2020-05-01/managementgroups/entities.go +++ b/services/resources/mgmt/2020-05-01/managementgroups/entities.go @@ -100,6 +100,7 @@ func (client EntitiesClient) List(ctx context.Context, selectParameter string, s result.elr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.EntitiesClient", "List", resp, "Failure responding to request") + return } if result.elr.hasNextLink() && result.elr.IsEmpty() { err = result.NextWithContext(ctx) @@ -189,6 +190,7 @@ func (client EntitiesClient) listNextResults(ctx context.Context, lastResults En result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.EntitiesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2020-05-01/managementgroups/hierarchysettings.go b/services/resources/mgmt/2020-05-01/managementgroups/hierarchysettings.go index 8da7383a746d..82d3b0052f44 100644 --- a/services/resources/mgmt/2020-05-01/managementgroups/hierarchysettings.go +++ b/services/resources/mgmt/2020-05-01/managementgroups/hierarchysettings.go @@ -75,6 +75,7 @@ func (client HierarchySettingsClient) CreateOrUpdate(ctx context.Context, groupI result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.HierarchySettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client HierarchySettingsClient) Delete(ctx context.Context, groupID string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.HierarchySettingsClient", "Delete", resp, "Failure responding to request") + return } return @@ -221,6 +223,7 @@ func (client HierarchySettingsClient) Get(ctx context.Context, groupID string) ( result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.HierarchySettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -294,6 +297,7 @@ func (client HierarchySettingsClient) List(ctx context.Context, groupID string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.HierarchySettingsClient", "List", resp, "Failure responding to request") + return } return @@ -367,6 +371,7 @@ func (client HierarchySettingsClient) Update(ctx context.Context, groupID string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.HierarchySettingsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2020-05-01/managementgroups/managementgroups.go b/services/resources/mgmt/2020-05-01/managementgroups/managementgroups.go index 7e43042c2e64..6ce033323266 100644 --- a/services/resources/mgmt/2020-05-01/managementgroups/managementgroups.go +++ b/services/resources/mgmt/2020-05-01/managementgroups/managementgroups.go @@ -248,6 +248,7 @@ func (client Client) Get(ctx context.Context, groupID string, expand string, rec result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "Get", resp, "Failure responding to request") + return } return @@ -337,6 +338,7 @@ func (client Client) GetDescendants(ctx context.Context, groupID string) (result result.dlr, err = client.GetDescendantsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "GetDescendants", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -405,6 +407,7 @@ func (client Client) getDescendantsNextResults(ctx context.Context, lastResults result, err = client.GetDescendantsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "getDescendantsNextResults", resp, "Failure responding to next results request") + return } return } @@ -456,6 +459,7 @@ func (client Client) List(ctx context.Context, cacheControl string) (result List result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -524,6 +528,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -576,6 +581,7 @@ func (client Client) Update(ctx context.Context, groupID string, patchGroupReque result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.Client", "Update", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2020-05-01/managementgroups/operations.go b/services/resources/mgmt/2020-05-01/managementgroups/operations.go index 656ba1868ca6..8d2ce66001f5 100644 --- a/services/resources/mgmt/2020-05-01/managementgroups/operations.go +++ b/services/resources/mgmt/2020-05-01/managementgroups/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2020-05-01/managementgroups/subscriptions.go b/services/resources/mgmt/2020-05-01/managementgroups/subscriptions.go index e388c4046a54..f0557b3d21ee 100644 --- a/services/resources/mgmt/2020-05-01/managementgroups/subscriptions.go +++ b/services/resources/mgmt/2020-05-01/managementgroups/subscriptions.go @@ -75,6 +75,7 @@ func (client SubscriptionsClient) Create(ctx context.Context, groupID string, su result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.SubscriptionsClient", "Create", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client SubscriptionsClient) Delete(ctx context.Context, groupID string, su result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.SubscriptionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -238,6 +240,7 @@ func (client SubscriptionsClient) GetSubscription(ctx context.Context, groupID s result, err = client.GetSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.SubscriptionsClient", "GetSubscription", resp, "Failure responding to request") + return } return @@ -320,6 +323,7 @@ func (client SubscriptionsClient) GetSubscriptionsUnderManagementGroup(ctx conte result.lsumg, err = client.GetSubscriptionsUnderManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.SubscriptionsClient", "GetSubscriptionsUnderManagementGroup", resp, "Failure responding to request") + return } if result.lsumg.hasNextLink() && result.lsumg.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +389,7 @@ func (client SubscriptionsClient) getSubscriptionsUnderManagementGroupNextResult result, err = client.GetSubscriptionsUnderManagementGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.SubscriptionsClient", "getSubscriptionsUnderManagementGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2020-06-01/resources/deploymentoperations.go b/services/resources/mgmt/2020-06-01/resources/deploymentoperations.go index 867eff623d76..3f94779b3b52 100644 --- a/services/resources/mgmt/2020-06-01/resources/deploymentoperations.go +++ b/services/resources/mgmt/2020-06-01/resources/deploymentoperations.go @@ -87,6 +87,7 @@ func (client DeploymentOperationsClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "Get", resp, "Failure responding to request") + return } return @@ -175,6 +176,7 @@ func (client DeploymentOperationsClient) GetAtManagementGroupScope(ctx context.C result, err = client.GetAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "GetAtManagementGroupScope", resp, "Failure responding to request") + return } return @@ -259,6 +261,7 @@ func (client DeploymentOperationsClient) GetAtScope(ctx context.Context, scope s result, err = client.GetAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "GetAtScope", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client DeploymentOperationsClient) GetAtSubscriptionScope(ctx context.Cont result, err = client.GetAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "GetAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -425,6 +429,7 @@ func (client DeploymentOperationsClient) GetAtTenantScope(ctx context.Context, d result, err = client.GetAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "GetAtTenantScope", resp, "Failure responding to request") + return } return @@ -513,6 +518,7 @@ func (client DeploymentOperationsClient) List(ctx context.Context, resourceGroup result.dolr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "List", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -580,6 +586,7 @@ func (client DeploymentOperationsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -644,6 +651,7 @@ func (client DeploymentOperationsClient) ListAtManagementGroupScope(ctx context. result.dolr, err = client.ListAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "ListAtManagementGroupScope", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -710,6 +718,7 @@ func (client DeploymentOperationsClient) listAtManagementGroupScopeNextResults(c result, err = client.ListAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listAtManagementGroupScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -771,6 +780,7 @@ func (client DeploymentOperationsClient) ListAtScope(ctx context.Context, scope result.dolr, err = client.ListAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "ListAtScope", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -837,6 +847,7 @@ func (client DeploymentOperationsClient) listAtScopeNextResults(ctx context.Cont result, err = client.ListAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listAtScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -897,6 +908,7 @@ func (client DeploymentOperationsClient) ListAtSubscriptionScope(ctx context.Con result.dolr, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "ListAtSubscriptionScope", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -963,6 +975,7 @@ func (client DeploymentOperationsClient) listAtSubscriptionScopeNextResults(ctx result, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listAtSubscriptionScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -1023,6 +1036,7 @@ func (client DeploymentOperationsClient) ListAtTenantScope(ctx context.Context, result.dolr, err = client.ListAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "ListAtTenantScope", resp, "Failure responding to request") + return } if result.dolr.hasNextLink() && result.dolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1088,6 +1102,7 @@ func (client DeploymentOperationsClient) listAtTenantScopeNextResults(ctx contex result, err = client.ListAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listAtTenantScopeNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2020-06-01/resources/deployments.go b/services/resources/mgmt/2020-06-01/resources/deployments.go index 09667ecad4b6..7f4604b6f092 100644 --- a/services/resources/mgmt/2020-06-01/resources/deployments.go +++ b/services/resources/mgmt/2020-06-01/resources/deployments.go @@ -72,6 +72,7 @@ func (client DeploymentsClient) CalculateTemplateHash(ctx context.Context, templ result, err = client.CalculateTemplateHashResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CalculateTemplateHash", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client DeploymentsClient) Cancel(ctx context.Context, resourceGroupName st result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Cancel", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client DeploymentsClient) CancelAtManagementGroupScope(ctx context.Context result, err = client.CancelAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CancelAtManagementGroupScope", resp, "Failure responding to request") + return } return @@ -327,6 +330,7 @@ func (client DeploymentsClient) CancelAtScope(ctx context.Context, scope string, result, err = client.CancelAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CancelAtScope", resp, "Failure responding to request") + return } return @@ -409,6 +413,7 @@ func (client DeploymentsClient) CancelAtSubscriptionScope(ctx context.Context, d result, err = client.CancelAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CancelAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -491,6 +496,7 @@ func (client DeploymentsClient) CancelAtTenantScope(ctx context.Context, deploym result, err = client.CancelAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CancelAtTenantScope", resp, "Failure responding to request") + return } return @@ -576,6 +582,7 @@ func (client DeploymentsClient) CheckExistence(ctx context.Context, resourceGrou result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistence", resp, "Failure responding to request") + return } return @@ -661,6 +668,7 @@ func (client DeploymentsClient) CheckExistenceAtManagementGroupScope(ctx context result, err = client.CheckExistenceAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistenceAtManagementGroupScope", resp, "Failure responding to request") + return } return @@ -742,6 +750,7 @@ func (client DeploymentsClient) CheckExistenceAtScope(ctx context.Context, scope result, err = client.CheckExistenceAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistenceAtScope", resp, "Failure responding to request") + return } return @@ -822,6 +831,7 @@ func (client DeploymentsClient) CheckExistenceAtSubscriptionScope(ctx context.Co result, err = client.CheckExistenceAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistenceAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -902,6 +912,7 @@ func (client DeploymentsClient) CheckExistenceAtTenantScope(ctx context.Context, result, err = client.CheckExistenceAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistenceAtTenantScope", resp, "Failure responding to request") + return } return @@ -1884,6 +1895,7 @@ func (client DeploymentsClient) ExportTemplate(ctx context.Context, resourceGrou result, err = client.ExportTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplate", resp, "Failure responding to request") + return } return @@ -1970,6 +1982,7 @@ func (client DeploymentsClient) ExportTemplateAtManagementGroupScope(ctx context result, err = client.ExportTemplateAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplateAtManagementGroupScope", resp, "Failure responding to request") + return } return @@ -2052,6 +2065,7 @@ func (client DeploymentsClient) ExportTemplateAtScope(ctx context.Context, scope result, err = client.ExportTemplateAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplateAtScope", resp, "Failure responding to request") + return } return @@ -2133,6 +2147,7 @@ func (client DeploymentsClient) ExportTemplateAtSubscriptionScope(ctx context.Co result, err = client.ExportTemplateAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplateAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -2214,6 +2229,7 @@ func (client DeploymentsClient) ExportTemplateAtTenantScope(ctx context.Context, result, err = client.ExportTemplateAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplateAtTenantScope", resp, "Failure responding to request") + return } return @@ -2299,6 +2315,7 @@ func (client DeploymentsClient) Get(ctx context.Context, resourceGroupName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Get", resp, "Failure responding to request") + return } return @@ -2385,6 +2402,7 @@ func (client DeploymentsClient) GetAtManagementGroupScope(ctx context.Context, g result, err = client.GetAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "GetAtManagementGroupScope", resp, "Failure responding to request") + return } return @@ -2467,6 +2485,7 @@ func (client DeploymentsClient) GetAtScope(ctx context.Context, scope string, de result, err = client.GetAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "GetAtScope", resp, "Failure responding to request") + return } return @@ -2548,6 +2567,7 @@ func (client DeploymentsClient) GetAtSubscriptionScope(ctx context.Context, depl result, err = client.GetAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "GetAtSubscriptionScope", resp, "Failure responding to request") + return } return @@ -2629,6 +2649,7 @@ func (client DeploymentsClient) GetAtTenantScope(ctx context.Context, deployment result, err = client.GetAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "GetAtTenantScope", resp, "Failure responding to request") + return } return @@ -2712,6 +2733,7 @@ func (client DeploymentsClient) ListAtManagementGroupScope(ctx context.Context, result.dlr, err = client.ListAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ListAtManagementGroupScope", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2780,6 +2802,7 @@ func (client DeploymentsClient) listAtManagementGroupScopeNextResults(ctx contex result, err = client.ListAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listAtManagementGroupScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -2834,6 +2857,7 @@ func (client DeploymentsClient) ListAtScope(ctx context.Context, scope string, f result.dlr, err = client.ListAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ListAtScope", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -2902,6 +2926,7 @@ func (client DeploymentsClient) listAtScopeNextResults(ctx context.Context, last result, err = client.ListAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listAtScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -2955,6 +2980,7 @@ func (client DeploymentsClient) ListAtSubscriptionScope(ctx context.Context, fil result.dlr, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ListAtSubscriptionScope", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3023,6 +3049,7 @@ func (client DeploymentsClient) listAtSubscriptionScopeNextResults(ctx context.C result, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listAtSubscriptionScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -3076,6 +3103,7 @@ func (client DeploymentsClient) ListAtTenantScope(ctx context.Context, filter st result.dlr, err = client.ListAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ListAtTenantScope", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3140,6 +3168,7 @@ func (client DeploymentsClient) listAtTenantScopeNextResults(ctx context.Context result, err = client.ListAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listAtTenantScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -3203,6 +3232,7 @@ func (client DeploymentsClient) ListByResourceGroup(ctx context.Context, resourc result.dlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -3272,6 +3302,7 @@ func (client DeploymentsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2020-06-01/resources/groups.go b/services/resources/mgmt/2020-06-01/resources/groups.go index 860b55c171e2..99a37339eb1e 100644 --- a/services/resources/mgmt/2020-06-01/resources/groups.go +++ b/services/resources/mgmt/2020-06-01/resources/groups.go @@ -80,6 +80,7 @@ func (client GroupsClient) CheckExistence(ctx context.Context, resourceGroupName result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CheckExistence", resp, "Failure responding to request") + return } return @@ -165,6 +166,7 @@ func (client GroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -416,6 +418,7 @@ func (client GroupsClient) Get(ctx context.Context, resourceGroupName string) (r result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -492,6 +495,7 @@ func (client GroupsClient) List(ctx context.Context, filter string, top *int32) result.glr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "List", resp, "Failure responding to request") + return } if result.glr.hasNextLink() && result.glr.IsEmpty() { err = result.NextWithContext(ctx) @@ -560,6 +564,7 @@ func (client GroupsClient) listNextResults(ctx context.Context, lastResults Grou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -620,6 +625,7 @@ func (client GroupsClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2020-06-01/resources/operations.go b/services/resources/mgmt/2020-06-01/resources/operations.go index ed5abf4c05d0..92d99d46e458 100644 --- a/services/resources/mgmt/2020-06-01/resources/operations.go +++ b/services/resources/mgmt/2020-06-01/resources/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2020-06-01/resources/providers.go b/services/resources/mgmt/2020-06-01/resources/providers.go index 6b372ff2d69c..dd95d97e7a59 100644 --- a/services/resources/mgmt/2020-06-01/resources/providers.go +++ b/services/resources/mgmt/2020-06-01/resources/providers.go @@ -74,6 +74,7 @@ func (client ProvidersClient) Get(ctx context.Context, resourceProviderNamespace result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client ProvidersClient) GetAtTenantScope(ctx context.Context, resourceProv result, err = client.GetAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "GetAtTenantScope", resp, "Failure responding to request") + return } return @@ -231,6 +233,7 @@ func (client ProvidersClient) List(ctx context.Context, top *int32, expand strin result.plr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "List", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -299,6 +302,7 @@ func (client ProvidersClient) listNextResults(ctx context.Context, lastResults P result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -353,6 +357,7 @@ func (client ProvidersClient) ListAtTenantScope(ctx context.Context, top *int32, result.plr, err = client.ListAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "ListAtTenantScope", resp, "Failure responding to request") + return } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) @@ -417,6 +422,7 @@ func (client ProvidersClient) listAtTenantScopeNextResults(ctx context.Context, result, err = client.ListAtTenantScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "listAtTenantScopeNextResults", resp, "Failure responding to next results request") + return } return } @@ -467,6 +473,7 @@ func (client ProvidersClient) Register(ctx context.Context, resourceProviderName result, err = client.RegisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Register", resp, "Failure responding to request") + return } return @@ -548,6 +555,7 @@ func (client ProvidersClient) RegisterAtManagementGroupScope(ctx context.Context result, err = client.RegisterAtManagementGroupScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "RegisterAtManagementGroupScope", resp, "Failure responding to request") + return } return @@ -620,6 +628,7 @@ func (client ProvidersClient) Unregister(ctx context.Context, resourceProviderNa result, err = client.UnregisterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Unregister", resp, "Failure responding to request") + return } return diff --git a/services/resources/mgmt/2020-06-01/resources/resources.go b/services/resources/mgmt/2020-06-01/resources/resources.go index 90693cb5679f..26445e553178 100644 --- a/services/resources/mgmt/2020-06-01/resources/resources.go +++ b/services/resources/mgmt/2020-06-01/resources/resources.go @@ -86,6 +86,7 @@ func (client Client) CheckExistence(ctx context.Context, resourceGroupName strin result, err = client.CheckExistenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "CheckExistence", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client Client) CheckExistenceByID(ctx context.Context, resourceID string, result, err = client.CheckExistenceByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "CheckExistenceByID", resp, "Failure responding to request") + return } return @@ -589,6 +591,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "Get", resp, "Failure responding to request") + return } return @@ -668,6 +671,7 @@ func (client Client) GetByID(ctx context.Context, resourceID string, APIVersion result, err = client.GetByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "GetByID", resp, "Failure responding to request") + return } return @@ -754,6 +758,7 @@ func (client Client) List(ctx context.Context, filter string, expand string, top result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -825,6 +830,7 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -899,6 +905,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -971,6 +978,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/resources/mgmt/2020-06-01/resources/tags.go b/services/resources/mgmt/2020-06-01/resources/tags.go index 6a0b0ce4fc13..cc1b68c249c7 100644 --- a/services/resources/mgmt/2020-06-01/resources/tags.go +++ b/services/resources/mgmt/2020-06-01/resources/tags.go @@ -74,6 +74,7 @@ func (client TagsClient) CreateOrUpdate(ctx context.Context, tagName string) (re result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client TagsClient) CreateOrUpdateAtScope(ctx context.Context, scope string result, err = client.CreateOrUpdateAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdateAtScope", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client TagsClient) CreateOrUpdateValue(ctx context.Context, tagName string result, err = client.CreateOrUpdateValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdateValue", resp, "Failure responding to request") + return } return @@ -309,6 +312,7 @@ func (client TagsClient) Delete(ctx context.Context, tagName string) (result aut result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "Delete", resp, "Failure responding to request") + return } return @@ -381,6 +385,7 @@ func (client TagsClient) DeleteAtScope(ctx context.Context, scope string) (resul result, err = client.DeleteAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "DeleteAtScope", resp, "Failure responding to request") + return } return @@ -454,6 +459,7 @@ func (client TagsClient) DeleteValue(ctx context.Context, tagName string, tagVal result, err = client.DeleteValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "DeleteValue", resp, "Failure responding to request") + return } return @@ -527,6 +533,7 @@ func (client TagsClient) GetAtScope(ctx context.Context, scope string) (result T result, err = client.GetAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "GetAtScope", resp, "Failure responding to request") + return } return @@ -600,6 +607,7 @@ func (client TagsClient) List(ctx context.Context) (result TagsListResultPage, e result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -662,6 +670,7 @@ func (client TagsClient) listNextResults(ctx context.Context, lastResults TagsLi result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -716,6 +725,7 @@ func (client TagsClient) UpdateAtScope(ctx context.Context, scope string, parame result, err = client.UpdateAtScopeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "resources.TagsClient", "UpdateAtScope", resp, "Failure responding to request") + return } return diff --git a/services/scheduler/mgmt/2016-01-01/scheduler/jobcollections.go b/services/scheduler/mgmt/2016-01-01/scheduler/jobcollections.go index b4b4f08b14d4..f0d1bd4bcc5e 100644 --- a/services/scheduler/mgmt/2016-01-01/scheduler/jobcollections.go +++ b/services/scheduler/mgmt/2016-01-01/scheduler/jobcollections.go @@ -73,6 +73,7 @@ func (client JobCollectionsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client JobCollectionsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -226,6 +228,7 @@ func (client JobCollectionsClient) Disable(ctx context.Context, resourceGroupNam result, err = client.DisableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "Disable", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client JobCollectionsClient) Enable(ctx context.Context, resourceGroupName result, err = client.EnableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "Enable", resp, "Failure responding to request") + return } return @@ -374,6 +378,7 @@ func (client JobCollectionsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -449,6 +454,7 @@ func (client JobCollectionsClient) ListByResourceGroup(ctx context.Context, reso result.jclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.jclr.hasNextLink() && result.jclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -512,6 +518,7 @@ func (client JobCollectionsClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -561,6 +568,7 @@ func (client JobCollectionsClient) ListBySubscription(ctx context.Context) (resu result.jclr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.jclr.hasNextLink() && result.jclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -623,6 +631,7 @@ func (client JobCollectionsClient) listBySubscriptionNextResults(ctx context.Con result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -675,6 +684,7 @@ func (client JobCollectionsClient) Patch(ctx context.Context, resourceGroupName result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "Patch", resp, "Failure responding to request") + return } return diff --git a/services/scheduler/mgmt/2016-01-01/scheduler/jobs.go b/services/scheduler/mgmt/2016-01-01/scheduler/jobs.go index 29a2d6432d00..da6a9ed8bb6c 100644 --- a/services/scheduler/mgmt/2016-01-01/scheduler/jobs.go +++ b/services/scheduler/mgmt/2016-01-01/scheduler/jobs.go @@ -74,6 +74,7 @@ func (client JobsClient) CreateOrUpdate(ctx context.Context, resourceGroupName s result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client JobsClient) Delete(ctx context.Context, resourceGroupName string, j result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "Delete", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client JobsClient) Get(ctx context.Context, resourceGroupName string, jobC result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +315,7 @@ func (client JobsClient) List(ctx context.Context, resourceGroupName string, job result.jlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "List", resp, "Failure responding to request") + return } if result.jlr.hasNextLink() && result.jlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -385,6 +389,7 @@ func (client JobsClient) listNextResults(ctx context.Context, lastResults JobLis result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -441,6 +446,7 @@ func (client JobsClient) ListJobHistory(ctx context.Context, resourceGroupName s result.jhlr, err = client.ListJobHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "ListJobHistory", resp, "Failure responding to request") + return } if result.jhlr.hasNextLink() && result.jhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -515,6 +521,7 @@ func (client JobsClient) listJobHistoryNextResults(ctx context.Context, lastResu result, err = client.ListJobHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "listJobHistoryNextResults", resp, "Failure responding to next results request") + return } return } @@ -568,6 +575,7 @@ func (client JobsClient) Patch(ctx context.Context, resourceGroupName string, jo result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "Patch", resp, "Failure responding to request") + return } return @@ -650,6 +658,7 @@ func (client JobsClient) Run(ctx context.Context, resourceGroupName string, jobC result, err = client.RunResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "Run", resp, "Failure responding to request") + return } return diff --git a/services/scheduler/mgmt/2016-03-01/scheduler/jobcollections.go b/services/scheduler/mgmt/2016-03-01/scheduler/jobcollections.go index 8a10e0482aa6..c305a30a7870 100644 --- a/services/scheduler/mgmt/2016-03-01/scheduler/jobcollections.go +++ b/services/scheduler/mgmt/2016-03-01/scheduler/jobcollections.go @@ -73,6 +73,7 @@ func (client JobCollectionsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -374,6 +375,7 @@ func (client JobCollectionsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -449,6 +451,7 @@ func (client JobCollectionsClient) ListByResourceGroup(ctx context.Context, reso result.jclr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.jclr.hasNextLink() && result.jclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -512,6 +515,7 @@ func (client JobCollectionsClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -561,6 +565,7 @@ func (client JobCollectionsClient) ListBySubscription(ctx context.Context) (resu result.jclr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.jclr.hasNextLink() && result.jclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -623,6 +628,7 @@ func (client JobCollectionsClient) listBySubscriptionNextResults(ctx context.Con result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -675,6 +681,7 @@ func (client JobCollectionsClient) Patch(ctx context.Context, resourceGroupName result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsClient", "Patch", resp, "Failure responding to request") + return } return diff --git a/services/scheduler/mgmt/2016-03-01/scheduler/jobs.go b/services/scheduler/mgmt/2016-03-01/scheduler/jobs.go index 85353c25d61f..9090cc962bbe 100644 --- a/services/scheduler/mgmt/2016-03-01/scheduler/jobs.go +++ b/services/scheduler/mgmt/2016-03-01/scheduler/jobs.go @@ -75,6 +75,7 @@ func (client JobsClient) CreateOrUpdate(ctx context.Context, resourceGroupName s result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client JobsClient) Delete(ctx context.Context, resourceGroupName string, j result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "Delete", resp, "Failure responding to request") + return } return @@ -233,6 +235,7 @@ func (client JobsClient) Get(ctx context.Context, resourceGroupName string, jobC result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +325,7 @@ func (client JobsClient) List(ctx context.Context, resourceGroupName string, job result.jlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "List", resp, "Failure responding to request") + return } if result.jlr.hasNextLink() && result.jlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -395,6 +399,7 @@ func (client JobsClient) listNextResults(ctx context.Context, lastResults JobLis result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -460,6 +465,7 @@ func (client JobsClient) ListJobHistory(ctx context.Context, resourceGroupName s result.jhlr, err = client.ListJobHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "ListJobHistory", resp, "Failure responding to request") + return } if result.jhlr.hasNextLink() && result.jhlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -534,6 +540,7 @@ func (client JobsClient) listJobHistoryNextResults(ctx context.Context, lastResu result, err = client.ListJobHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "listJobHistoryNextResults", resp, "Failure responding to next results request") + return } return } @@ -587,6 +594,7 @@ func (client JobsClient) Patch(ctx context.Context, resourceGroupName string, jo result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "Patch", resp, "Failure responding to request") + return } return @@ -669,6 +677,7 @@ func (client JobsClient) Run(ctx context.Context, resourceGroupName string, jobC result, err = client.RunResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobsClient", "Run", resp, "Failure responding to request") + return } return diff --git a/services/search/mgmt/2015-02-28/search/adminkeys.go b/services/search/mgmt/2015-02-28/search/adminkeys.go index 692bedf1ac90..b5d56ae26afb 100644 --- a/services/search/mgmt/2015-02-28/search/adminkeys.go +++ b/services/search/mgmt/2015-02-28/search/adminkeys.go @@ -72,6 +72,7 @@ func (client AdminKeysClient) List(ctx context.Context, resourceGroupName string result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.AdminKeysClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/search/mgmt/2015-02-28/search/querykeys.go b/services/search/mgmt/2015-02-28/search/querykeys.go index 59b1f25373d0..b547ae0a9065 100644 --- a/services/search/mgmt/2015-02-28/search/querykeys.go +++ b/services/search/mgmt/2015-02-28/search/querykeys.go @@ -72,6 +72,7 @@ func (client QueryKeysClient) List(ctx context.Context, resourceGroupName string result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.QueryKeysClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/search/mgmt/2015-02-28/search/services.go b/services/search/mgmt/2015-02-28/search/services.go index 8292628e6cea..290b25263959 100644 --- a/services/search/mgmt/2015-02-28/search/services.go +++ b/services/search/mgmt/2015-02-28/search/services.go @@ -74,6 +74,7 @@ func (client ServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.ServicesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client ServicesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.ServicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -224,6 +226,7 @@ func (client ServicesClient) List(ctx context.Context, resourceGroupName string) result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.ServicesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/search/mgmt/2015-08-19/search/adminkeys.go b/services/search/mgmt/2015-08-19/search/adminkeys.go index 8a4dcc733f2c..14f74c454e16 100644 --- a/services/search/mgmt/2015-08-19/search/adminkeys.go +++ b/services/search/mgmt/2015-08-19/search/adminkeys.go @@ -77,6 +77,7 @@ func (client AdminKeysClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.AdminKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client AdminKeysClient) Regenerate(ctx context.Context, resourceGroupName result, err = client.RegenerateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.AdminKeysClient", "Regenerate", resp, "Failure responding to request") + return } return diff --git a/services/search/mgmt/2015-08-19/search/operations.go b/services/search/mgmt/2015-08-19/search/operations.go index e4ed4e80d2bf..5f64f1d68c45 100644 --- a/services/search/mgmt/2015-08-19/search/operations.go +++ b/services/search/mgmt/2015-08-19/search/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/search/mgmt/2015-08-19/search/querykeys.go b/services/search/mgmt/2015-08-19/search/querykeys.go index e5862e8da999..cf136575c86d 100644 --- a/services/search/mgmt/2015-08-19/search/querykeys.go +++ b/services/search/mgmt/2015-08-19/search/querykeys.go @@ -78,6 +78,7 @@ func (client QueryKeysClient) Create(ctx context.Context, resourceGroupName stri result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.QueryKeysClient", "Create", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client QueryKeysClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.QueryKeysClient", "Delete", resp, "Failure responding to request") + return } return @@ -247,6 +249,7 @@ func (client QueryKeysClient) ListBySearchService(ctx context.Context, resourceG result, err = client.ListBySearchServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.QueryKeysClient", "ListBySearchService", resp, "Failure responding to request") + return } return @@ -330,6 +333,7 @@ func (client QueryKeysClient) ListBySearchServiceGet(ctx context.Context, resour result, err = client.ListBySearchServiceGetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.QueryKeysClient", "ListBySearchServiceGet", resp, "Failure responding to request") + return } return diff --git a/services/search/mgmt/2015-08-19/search/services.go b/services/search/mgmt/2015-08-19/search/services.go index f6d5d1d6f175..9f477cff917e 100644 --- a/services/search/mgmt/2015-08-19/search/services.go +++ b/services/search/mgmt/2015-08-19/search/services.go @@ -83,6 +83,7 @@ func (client ServicesClient) CheckNameAvailability(ctx context.Context, checkNam result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.ServicesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -271,6 +272,7 @@ func (client ServicesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.ServicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -353,6 +355,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -434,6 +437,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -512,6 +516,7 @@ func (client ServicesClient) ListBySubscription(ctx context.Context, clientReque result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.ServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -593,6 +598,7 @@ func (client ServicesClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.ServicesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/search/mgmt/2020-03-13/search/adminkeys.go b/services/search/mgmt/2020-03-13/search/adminkeys.go index 540f5ca823e0..693dc9cd7548 100644 --- a/services/search/mgmt/2020-03-13/search/adminkeys.go +++ b/services/search/mgmt/2020-03-13/search/adminkeys.go @@ -77,6 +77,7 @@ func (client AdminKeysClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.AdminKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client AdminKeysClient) Regenerate(ctx context.Context, resourceGroupName result, err = client.RegenerateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.AdminKeysClient", "Regenerate", resp, "Failure responding to request") + return } return diff --git a/services/search/mgmt/2020-03-13/search/operations.go b/services/search/mgmt/2020-03-13/search/operations.go index e651e396fcf9..c1594bb72195 100644 --- a/services/search/mgmt/2020-03-13/search/operations.go +++ b/services/search/mgmt/2020-03-13/search/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/search/mgmt/2020-03-13/search/privateendpointconnections.go b/services/search/mgmt/2020-03-13/search/privateendpointconnections.go index fc7e06531814..67d741a33fb8 100644 --- a/services/search/mgmt/2020-03-13/search/privateendpointconnections.go +++ b/services/search/mgmt/2020-03-13/search/privateendpointconnections.go @@ -81,6 +81,7 @@ func (client PrivateEndpointConnectionsClient) Delete(ctx context.Context, resou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.PrivateEndpointConnectionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -252,6 +254,7 @@ func (client PrivateEndpointConnectionsClient) ListByService(ctx context.Context result.peclr, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.PrivateEndpointConnectionsClient", "ListByService", resp, "Failure responding to request") + return } if result.peclr.hasNextLink() && result.peclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -320,6 +323,7 @@ func (client PrivateEndpointConnectionsClient) listByServiceNextResults(ctx cont result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.PrivateEndpointConnectionsClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -378,6 +382,7 @@ func (client PrivateEndpointConnectionsClient) Update(ctx context.Context, resou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.PrivateEndpointConnectionsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/search/mgmt/2020-03-13/search/privatelinkresources.go b/services/search/mgmt/2020-03-13/search/privatelinkresources.go index d5ee7d0fb95b..19814b874d86 100644 --- a/services/search/mgmt/2020-03-13/search/privatelinkresources.go +++ b/services/search/mgmt/2020-03-13/search/privatelinkresources.go @@ -78,6 +78,7 @@ func (client PrivateLinkResourcesClient) ListSupported(ctx context.Context, reso result, err = client.ListSupportedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.PrivateLinkResourcesClient", "ListSupported", resp, "Failure responding to request") + return } return diff --git a/services/search/mgmt/2020-03-13/search/querykeys.go b/services/search/mgmt/2020-03-13/search/querykeys.go index e7baa0fb5c4a..8b782d2f8366 100644 --- a/services/search/mgmt/2020-03-13/search/querykeys.go +++ b/services/search/mgmt/2020-03-13/search/querykeys.go @@ -78,6 +78,7 @@ func (client QueryKeysClient) Create(ctx context.Context, resourceGroupName stri result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.QueryKeysClient", "Create", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client QueryKeysClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.QueryKeysClient", "Delete", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client QueryKeysClient) ListBySearchService(ctx context.Context, resourceG result.lqkr, err = client.ListBySearchServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.QueryKeysClient", "ListBySearchService", resp, "Failure responding to request") + return } if result.lqkr.hasNextLink() && result.lqkr.IsEmpty() { err = result.NextWithContext(ctx) @@ -316,6 +319,7 @@ func (client QueryKeysClient) listBySearchServiceNextResults(ctx context.Context result, err = client.ListBySearchServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.QueryKeysClient", "listBySearchServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/search/mgmt/2020-03-13/search/services.go b/services/search/mgmt/2020-03-13/search/services.go index 16d0fc239cf9..84afdb8f66f3 100644 --- a/services/search/mgmt/2020-03-13/search/services.go +++ b/services/search/mgmt/2020-03-13/search/services.go @@ -83,6 +83,7 @@ func (client ServicesClient) CheckNameAvailability(ctx context.Context, checkNam result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.ServicesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -271,6 +272,7 @@ func (client ServicesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.ServicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -353,6 +355,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -435,6 +438,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGr result.slr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -502,6 +506,7 @@ func (client ServicesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.ServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -554,6 +559,7 @@ func (client ServicesClient) ListBySubscription(ctx context.Context, clientReque result.slr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.ServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -620,6 +626,7 @@ func (client ServicesClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.ServicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -675,6 +682,7 @@ func (client ServicesClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.ServicesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/search/mgmt/2020-08-01/search/adminkeys.go b/services/search/mgmt/2020-08-01/search/adminkeys.go index 2f55af60aed7..ba036cb174c7 100644 --- a/services/search/mgmt/2020-08-01/search/adminkeys.go +++ b/services/search/mgmt/2020-08-01/search/adminkeys.go @@ -77,6 +77,7 @@ func (client AdminKeysClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.AdminKeysClient", "Get", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client AdminKeysClient) Regenerate(ctx context.Context, resourceGroupName result, err = client.RegenerateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.AdminKeysClient", "Regenerate", resp, "Failure responding to request") + return } return diff --git a/services/search/mgmt/2020-08-01/search/operations.go b/services/search/mgmt/2020-08-01/search/operations.go index 130547380797..a30c5adaba94 100644 --- a/services/search/mgmt/2020-08-01/search/operations.go +++ b/services/search/mgmt/2020-08-01/search/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/search/mgmt/2020-08-01/search/privateendpointconnections.go b/services/search/mgmt/2020-08-01/search/privateendpointconnections.go index 6d21653aadc3..eb6bba9dcedd 100644 --- a/services/search/mgmt/2020-08-01/search/privateendpointconnections.go +++ b/services/search/mgmt/2020-08-01/search/privateendpointconnections.go @@ -81,6 +81,7 @@ func (client PrivateEndpointConnectionsClient) Delete(ctx context.Context, resou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.PrivateEndpointConnectionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -167,6 +168,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -252,6 +254,7 @@ func (client PrivateEndpointConnectionsClient) ListByService(ctx context.Context result.peclr, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.PrivateEndpointConnectionsClient", "ListByService", resp, "Failure responding to request") + return } if result.peclr.hasNextLink() && result.peclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -320,6 +323,7 @@ func (client PrivateEndpointConnectionsClient) listByServiceNextResults(ctx cont result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.PrivateEndpointConnectionsClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } @@ -378,6 +382,7 @@ func (client PrivateEndpointConnectionsClient) Update(ctx context.Context, resou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.PrivateEndpointConnectionsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/search/mgmt/2020-08-01/search/privatelinkresources.go b/services/search/mgmt/2020-08-01/search/privatelinkresources.go index 068980c2a71d..023069f29669 100644 --- a/services/search/mgmt/2020-08-01/search/privatelinkresources.go +++ b/services/search/mgmt/2020-08-01/search/privatelinkresources.go @@ -78,6 +78,7 @@ func (client PrivateLinkResourcesClient) ListSupported(ctx context.Context, reso result, err = client.ListSupportedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.PrivateLinkResourcesClient", "ListSupported", resp, "Failure responding to request") + return } return diff --git a/services/search/mgmt/2020-08-01/search/querykeys.go b/services/search/mgmt/2020-08-01/search/querykeys.go index 366c45e99418..b3c3aca40605 100644 --- a/services/search/mgmt/2020-08-01/search/querykeys.go +++ b/services/search/mgmt/2020-08-01/search/querykeys.go @@ -78,6 +78,7 @@ func (client QueryKeysClient) Create(ctx context.Context, resourceGroupName stri result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.QueryKeysClient", "Create", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client QueryKeysClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.QueryKeysClient", "Delete", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client QueryKeysClient) ListBySearchService(ctx context.Context, resourceG result.lqkr, err = client.ListBySearchServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.QueryKeysClient", "ListBySearchService", resp, "Failure responding to request") + return } if result.lqkr.hasNextLink() && result.lqkr.IsEmpty() { err = result.NextWithContext(ctx) @@ -316,6 +319,7 @@ func (client QueryKeysClient) listBySearchServiceNextResults(ctx context.Context result, err = client.ListBySearchServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.QueryKeysClient", "listBySearchServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/search/mgmt/2020-08-01/search/services.go b/services/search/mgmt/2020-08-01/search/services.go index d6725c3d34c5..03d662ca00be 100644 --- a/services/search/mgmt/2020-08-01/search/services.go +++ b/services/search/mgmt/2020-08-01/search/services.go @@ -83,6 +83,7 @@ func (client ServicesClient) CheckNameAvailability(ctx context.Context, checkNam result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.ServicesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -271,6 +272,7 @@ func (client ServicesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.ServicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -353,6 +355,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -435,6 +438,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGr result.slr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -502,6 +506,7 @@ func (client ServicesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.ServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -554,6 +559,7 @@ func (client ServicesClient) ListBySubscription(ctx context.Context, clientReque result.slr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.ServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -620,6 +626,7 @@ func (client ServicesClient) listBySubscriptionNextResults(ctx context.Context, result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.ServicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -675,6 +682,7 @@ func (client ServicesClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.ServicesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/search/mgmt/2020-08-01/search/sharedprivatelinkresources.go b/services/search/mgmt/2020-08-01/search/sharedprivatelinkresources.go index b46fe87cd0a7..b37d0c04213f 100644 --- a/services/search/mgmt/2020-08-01/search/sharedprivatelinkresources.go +++ b/services/search/mgmt/2020-08-01/search/sharedprivatelinkresources.go @@ -256,6 +256,7 @@ func (client SharedPrivateLinkResourcesClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.SharedPrivateLinkResourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -341,6 +342,7 @@ func (client SharedPrivateLinkResourcesClient) ListByService(ctx context.Context result.splrlr, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.SharedPrivateLinkResourcesClient", "ListByService", resp, "Failure responding to request") + return } if result.splrlr.hasNextLink() && result.splrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -409,6 +411,7 @@ func (client SharedPrivateLinkResourcesClient) listByServiceNextResults(ctx cont result, err = client.ListByServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "search.SharedPrivateLinkResourcesClient", "listByServiceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/securityinsight/mgmt/v1.0/securityinsight/actions.go b/services/securityinsight/mgmt/v1.0/securityinsight/actions.go index ca7c5606d959..2ae2fee2b7f1 100644 --- a/services/securityinsight/mgmt/v1.0/securityinsight/actions.go +++ b/services/securityinsight/mgmt/v1.0/securityinsight/actions.go @@ -89,6 +89,7 @@ func (client ActionsClient) ListByAlertRule(ctx context.Context, resourceGroupNa result.al, err = client.ListByAlertRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.ActionsClient", "ListByAlertRule", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -154,6 +155,7 @@ func (client ActionsClient) listByAlertRuleNextResults(ctx context.Context, last result, err = client.ListByAlertRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.ActionsClient", "listByAlertRuleNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/securityinsight/mgmt/v1.0/securityinsight/alertrules.go b/services/securityinsight/mgmt/v1.0/securityinsight/alertrules.go index 40753f406fab..382816bd7b4e 100644 --- a/services/securityinsight/mgmt/v1.0/securityinsight/alertrules.go +++ b/services/securityinsight/mgmt/v1.0/securityinsight/alertrules.go @@ -89,6 +89,7 @@ func (client AlertRulesClient) CreateOrUpdate(ctx context.Context, resourceGroup result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.AlertRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -184,6 +185,7 @@ func (client AlertRulesClient) CreateOrUpdateAction(ctx context.Context, resourc result, err = client.CreateOrUpdateActionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.AlertRulesClient", "CreateOrUpdateAction", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client AlertRulesClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.AlertRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -369,6 +372,7 @@ func (client AlertRulesClient) DeleteAction(ctx context.Context, resourceGroupNa result, err = client.DeleteActionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.AlertRulesClient", "DeleteAction", resp, "Failure responding to request") + return } return @@ -460,6 +464,7 @@ func (client AlertRulesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.AlertRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -552,6 +557,7 @@ func (client AlertRulesClient) GetAction(ctx context.Context, resourceGroupName result, err = client.GetActionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.AlertRulesClient", "GetAction", resp, "Failure responding to request") + return } return @@ -644,6 +650,7 @@ func (client AlertRulesClient) List(ctx context.Context, resourceGroupName strin result.arl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.AlertRulesClient", "List", resp, "Failure responding to request") + return } if result.arl.hasNextLink() && result.arl.IsEmpty() { err = result.NextWithContext(ctx) @@ -708,6 +715,7 @@ func (client AlertRulesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.AlertRulesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/securityinsight/mgmt/v1.0/securityinsight/alertruletemplates.go b/services/securityinsight/mgmt/v1.0/securityinsight/alertruletemplates.go index 95473b8dfe0e..12c88ec6c5c2 100644 --- a/services/securityinsight/mgmt/v1.0/securityinsight/alertruletemplates.go +++ b/services/securityinsight/mgmt/v1.0/securityinsight/alertruletemplates.go @@ -89,6 +89,7 @@ func (client AlertRuleTemplatesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.AlertRuleTemplatesClient", "Get", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client AlertRuleTemplatesClient) List(ctx context.Context, resourceGroupNa result.artl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.AlertRuleTemplatesClient", "List", resp, "Failure responding to request") + return } if result.artl.hasNextLink() && result.artl.IsEmpty() { err = result.NextWithContext(ctx) @@ -244,6 +246,7 @@ func (client AlertRuleTemplatesClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.AlertRuleTemplatesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/securityinsight/mgmt/v1.0/securityinsight/bookmarks.go b/services/securityinsight/mgmt/v1.0/securityinsight/bookmarks.go index d82c32337b51..2dfe1a42d5e7 100644 --- a/services/securityinsight/mgmt/v1.0/securityinsight/bookmarks.go +++ b/services/securityinsight/mgmt/v1.0/securityinsight/bookmarks.go @@ -103,6 +103,7 @@ func (client BookmarksClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.BookmarksClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -196,6 +197,7 @@ func (client BookmarksClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.BookmarksClient", "Delete", resp, "Failure responding to request") + return } return @@ -286,6 +288,7 @@ func (client BookmarksClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.BookmarksClient", "Get", resp, "Failure responding to request") + return } return @@ -377,6 +380,7 @@ func (client BookmarksClient) List(ctx context.Context, resourceGroupName string result.bl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.BookmarksClient", "List", resp, "Failure responding to request") + return } if result.bl.hasNextLink() && result.bl.IsEmpty() { err = result.NextWithContext(ctx) @@ -441,6 +445,7 @@ func (client BookmarksClient) listNextResults(ctx context.Context, lastResults B result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.BookmarksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/securityinsight/mgmt/v1.0/securityinsight/dataconnectors.go b/services/securityinsight/mgmt/v1.0/securityinsight/dataconnectors.go index 85f00d0556f6..536ba8328736 100644 --- a/services/securityinsight/mgmt/v1.0/securityinsight/dataconnectors.go +++ b/services/securityinsight/mgmt/v1.0/securityinsight/dataconnectors.go @@ -89,6 +89,7 @@ func (client DataConnectorsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.DataConnectorsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -182,6 +183,7 @@ func (client DataConnectorsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.DataConnectorsClient", "Delete", resp, "Failure responding to request") + return } return @@ -272,6 +274,7 @@ func (client DataConnectorsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.DataConnectorsClient", "Get", resp, "Failure responding to request") + return } return @@ -363,6 +366,7 @@ func (client DataConnectorsClient) List(ctx context.Context, resourceGroupName s result.dcl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.DataConnectorsClient", "List", resp, "Failure responding to request") + return } if result.dcl.hasNextLink() && result.dcl.IsEmpty() { err = result.NextWithContext(ctx) @@ -427,6 +431,7 @@ func (client DataConnectorsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.DataConnectorsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/securityinsight/mgmt/v1.0/securityinsight/incidentcomments.go b/services/securityinsight/mgmt/v1.0/securityinsight/incidentcomments.go index 52fdb0b7d2fa..eb40aa2c768f 100644 --- a/services/securityinsight/mgmt/v1.0/securityinsight/incidentcomments.go +++ b/services/securityinsight/mgmt/v1.0/securityinsight/incidentcomments.go @@ -94,6 +94,7 @@ func (client IncidentCommentsClient) CreateComment(ctx context.Context, resource result, err = client.CreateCommentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentCommentsClient", "CreateComment", resp, "Failure responding to request") + return } return @@ -189,6 +190,7 @@ func (client IncidentCommentsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentCommentsClient", "Get", resp, "Failure responding to request") + return } return @@ -288,6 +290,7 @@ func (client IncidentCommentsClient) ListByIncident(ctx context.Context, resourc result.icl, err = client.ListByIncidentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentCommentsClient", "ListByIncident", resp, "Failure responding to request") + return } if result.icl.hasNextLink() && result.icl.IsEmpty() { err = result.NextWithContext(ctx) @@ -365,6 +368,7 @@ func (client IncidentCommentsClient) listByIncidentNextResults(ctx context.Conte result, err = client.ListByIncidentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentCommentsClient", "listByIncidentNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/securityinsight/mgmt/v1.0/securityinsight/incidents.go b/services/securityinsight/mgmt/v1.0/securityinsight/incidents.go index d6074aec021e..dbfc746aa059 100644 --- a/services/securityinsight/mgmt/v1.0/securityinsight/incidents.go +++ b/services/securityinsight/mgmt/v1.0/securityinsight/incidents.go @@ -92,6 +92,7 @@ func (client IncidentsClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -185,6 +186,7 @@ func (client IncidentsClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -275,6 +277,7 @@ func (client IncidentsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentsClient", "Get", resp, "Failure responding to request") + return } return @@ -372,6 +375,7 @@ func (client IncidentsClient) List(ctx context.Context, resourceGroupName string result.il, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentsClient", "List", resp, "Failure responding to request") + return } if result.il.hasNextLink() && result.il.IsEmpty() { err = result.NextWithContext(ctx) @@ -448,6 +452,7 @@ func (client IncidentsClient) listNextResults(ctx context.Context, lastResults I result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.IncidentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/securityinsight/mgmt/v1.0/securityinsight/operations.go b/services/securityinsight/mgmt/v1.0/securityinsight/operations.go index 1aa373debeda..c98a2b329a62 100644 --- a/services/securityinsight/mgmt/v1.0/securityinsight/operations.go +++ b/services/securityinsight/mgmt/v1.0/securityinsight/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListP result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "securityinsight.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/serialconsole/mgmt/2018-05-01/serialconsole/client.go b/services/serialconsole/mgmt/2018-05-01/serialconsole/client.go index 5b95f22918ff..3ce972d394f6 100644 --- a/services/serialconsole/mgmt/2018-05-01/serialconsole/client.go +++ b/services/serialconsole/mgmt/2018-05-01/serialconsole/client.go @@ -85,6 +85,7 @@ func (client BaseClient) DisableConsole(ctx context.Context, defaultParameter st result, err = client.DisableConsoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "serialconsole.BaseClient", "DisableConsole", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client BaseClient) EnableConsole(ctx context.Context, defaultParameter str result, err = client.EnableConsoleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "serialconsole.BaseClient", "EnableConsole", resp, "Failure responding to request") + return } return @@ -231,6 +233,7 @@ func (client BaseClient) GetConsoleStatus(ctx context.Context, defaultParameter result, err = client.GetConsoleStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "serialconsole.BaseClient", "GetConsoleStatus", resp, "Failure responding to request") + return } return @@ -302,6 +305,7 @@ func (client BaseClient) ListOperations(ctx context.Context) (result Operations, result, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "serialconsole.BaseClient", "ListOperations", resp, "Failure responding to request") + return } return diff --git a/services/servicebus/mgmt/2015-08-01/servicebus/namespaces.go b/services/servicebus/mgmt/2015-08-01/servicebus/namespaces.go index 07b7f38b95a1..3a75567a24f5 100644 --- a/services/servicebus/mgmt/2015-08-01/servicebus/namespaces.go +++ b/services/servicebus/mgmt/2015-08-01/servicebus/namespaces.go @@ -78,6 +78,7 @@ func (client NamespacesClient) CheckNameAvailabilityMethod(ctx context.Context, result, err = client.CheckNameAvailabilityMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "CheckNameAvailabilityMethod", resp, "Failure responding to request") + return } return @@ -259,6 +260,7 @@ func (client NamespacesClient) CreateOrUpdateAuthorizationRule(ctx context.Conte result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -435,6 +437,7 @@ func (client NamespacesClient) DeleteAuthorizationRule(ctx context.Context, reso result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -520,6 +523,7 @@ func (client NamespacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "Get", resp, "Failure responding to request") + return } return @@ -609,6 +613,7 @@ func (client NamespacesClient) GetAuthorizationRule(ctx context.Context, resourc result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -696,6 +701,7 @@ func (client NamespacesClient) ListAuthorizationRules(ctx context.Context, resou result.saarlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.saarlr.hasNextLink() && result.saarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -760,6 +766,7 @@ func (client NamespacesClient) listAuthorizationRulesNextResults(ctx context.Con result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -818,6 +825,7 @@ func (client NamespacesClient) ListByResourceGroup(ctx context.Context, resource result.nlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.nlr.hasNextLink() && result.nlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -881,6 +889,7 @@ func (client NamespacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -930,6 +939,7 @@ func (client NamespacesClient) ListBySubscription(ctx context.Context) (result N result.nlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.nlr.hasNextLink() && result.nlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -992,6 +1002,7 @@ func (client NamespacesClient) listBySubscriptionNextResults(ctx context.Context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -1057,6 +1068,7 @@ func (client NamespacesClient) ListKeys(ctx context.Context, resourceGroupName s result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -1148,6 +1160,7 @@ func (client NamespacesClient) RegenerateKeys(ctx context.Context, resourceGroup result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "RegenerateKeys", resp, "Failure responding to request") + return } return @@ -1238,6 +1251,7 @@ func (client NamespacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/servicebus/mgmt/2015-08-01/servicebus/operations.go b/services/servicebus/mgmt/2015-08-01/servicebus/operations.go index ebc550d0349c..3cceb8bb3094 100644 --- a/services/servicebus/mgmt/2015-08-01/servicebus/operations.go +++ b/services/servicebus/mgmt/2015-08-01/servicebus/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/servicebus/mgmt/2015-08-01/servicebus/queues.go b/services/servicebus/mgmt/2015-08-01/servicebus/queues.go index 4595eaec3633..f6081776af12 100644 --- a/services/servicebus/mgmt/2015-08-01/servicebus/queues.go +++ b/services/servicebus/mgmt/2015-08-01/servicebus/queues.go @@ -90,6 +90,7 @@ func (client QueuesClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client QueuesClient) CreateOrUpdateAuthorizationRule(ctx context.Context, result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -283,6 +285,7 @@ func (client QueuesClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "Delete", resp, "Failure responding to request") + return } return @@ -376,6 +379,7 @@ func (client QueuesClient) DeleteAuthorizationRule(ctx context.Context, resource result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -466,6 +470,7 @@ func (client QueuesClient) Get(ctx context.Context, resourceGroupName string, na result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "Get", resp, "Failure responding to request") + return } return @@ -560,6 +565,7 @@ func (client QueuesClient) GetAuthorizationRule(ctx context.Context, resourceGro result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -648,6 +654,7 @@ func (client QueuesClient) ListAll(ctx context.Context, resourceGroupName string result.qlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "ListAll", resp, "Failure responding to request") + return } if result.qlr.hasNextLink() && result.qlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -712,6 +719,7 @@ func (client QueuesClient) listAllNextResults(ctx context.Context, lastResults Q result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -778,6 +786,7 @@ func (client QueuesClient) ListAuthorizationRules(ctx context.Context, resourceG result.saarlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.saarlr.hasNextLink() && result.saarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -843,6 +852,7 @@ func (client QueuesClient) listAuthorizationRulesNextResults(ctx context.Context result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -912,6 +922,7 @@ func (client QueuesClient) ListKeys(ctx context.Context, resourceGroupName strin result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -1007,6 +1018,7 @@ func (client QueuesClient) PostAuthorizationRule(ctx context.Context, resourceGr result, err = client.PostAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "PostAuthorizationRule", resp, "Failure responding to request") + return } return @@ -1103,6 +1115,7 @@ func (client QueuesClient) RegenerateKeys(ctx context.Context, resourceGroupName result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "RegenerateKeys", resp, "Failure responding to request") + return } return diff --git a/services/servicebus/mgmt/2015-08-01/servicebus/subscriptions.go b/services/servicebus/mgmt/2015-08-01/servicebus/subscriptions.go index 0c52380b90a6..943f46ae7696 100644 --- a/services/servicebus/mgmt/2015-08-01/servicebus/subscriptions.go +++ b/services/servicebus/mgmt/2015-08-01/servicebus/subscriptions.go @@ -94,6 +94,7 @@ func (client SubscriptionsClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.SubscriptionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -191,6 +192,7 @@ func (client SubscriptionsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.SubscriptionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -285,6 +287,7 @@ func (client SubscriptionsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.SubscriptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -377,6 +380,7 @@ func (client SubscriptionsClient) ListAll(ctx context.Context, resourceGroupName result.slr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.SubscriptionsClient", "ListAll", resp, "Failure responding to request") + return } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) @@ -442,6 +446,7 @@ func (client SubscriptionsClient) listAllNextResults(ctx context.Context, lastRe result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.SubscriptionsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/servicebus/mgmt/2015-08-01/servicebus/topics.go b/services/servicebus/mgmt/2015-08-01/servicebus/topics.go index 3951111c821c..1f4339f03669 100644 --- a/services/servicebus/mgmt/2015-08-01/servicebus/topics.go +++ b/services/servicebus/mgmt/2015-08-01/servicebus/topics.go @@ -90,6 +90,7 @@ func (client TopicsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -190,6 +191,7 @@ func (client TopicsClient) CreateOrUpdateAuthorizationRule(ctx context.Context, result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -283,6 +285,7 @@ func (client TopicsClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "Delete", resp, "Failure responding to request") + return } return @@ -376,6 +379,7 @@ func (client TopicsClient) DeleteAuthorizationRule(ctx context.Context, resource result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -466,6 +470,7 @@ func (client TopicsClient) Get(ctx context.Context, resourceGroupName string, na result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "Get", resp, "Failure responding to request") + return } return @@ -560,6 +565,7 @@ func (client TopicsClient) GetAuthorizationRule(ctx context.Context, resourceGro result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -648,6 +654,7 @@ func (client TopicsClient) ListAll(ctx context.Context, resourceGroupName string result.tlr, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "ListAll", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -712,6 +719,7 @@ func (client TopicsClient) listAllNextResults(ctx context.Context, lastResults T result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "listAllNextResults", resp, "Failure responding to next results request") + return } return } @@ -778,6 +786,7 @@ func (client TopicsClient) ListAuthorizationRules(ctx context.Context, resourceG result.saarlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.saarlr.hasNextLink() && result.saarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -843,6 +852,7 @@ func (client TopicsClient) listAuthorizationRulesNextResults(ctx context.Context result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -912,6 +922,7 @@ func (client TopicsClient) ListKeys(ctx context.Context, resourceGroupName strin result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -1007,6 +1018,7 @@ func (client TopicsClient) PostAuthorizationRule(ctx context.Context, resourceGr result, err = client.PostAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "PostAuthorizationRule", resp, "Failure responding to request") + return } return @@ -1103,6 +1115,7 @@ func (client TopicsClient) RegenerateKeys(ctx context.Context, resourceGroupName result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "RegenerateKeys", resp, "Failure responding to request") + return } return diff --git a/services/servicebus/mgmt/2017-04-01/servicebus/disasterrecoveryconfigs.go b/services/servicebus/mgmt/2017-04-01/servicebus/disasterrecoveryconfigs.go index 9913a52a782b..0b82cdd16466 100644 --- a/services/servicebus/mgmt/2017-04-01/servicebus/disasterrecoveryconfigs.go +++ b/services/servicebus/mgmt/2017-04-01/servicebus/disasterrecoveryconfigs.go @@ -89,6 +89,7 @@ func (client DisasterRecoveryConfigsClient) BreakPairing(ctx context.Context, re result, err = client.BreakPairingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.DisasterRecoveryConfigsClient", "BreakPairing", resp, "Failure responding to request") + return } return @@ -177,6 +178,7 @@ func (client DisasterRecoveryConfigsClient) CheckNameAvailabilityMethod(ctx cont result, err = client.CheckNameAvailabilityMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.DisasterRecoveryConfigsClient", "CheckNameAvailabilityMethod", resp, "Failure responding to request") + return } return @@ -269,6 +271,7 @@ func (client DisasterRecoveryConfigsClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.DisasterRecoveryConfigsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -361,6 +364,7 @@ func (client DisasterRecoveryConfigsClient) Delete(ctx context.Context, resource result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.DisasterRecoveryConfigsClient", "Delete", resp, "Failure responding to request") + return } return @@ -450,6 +454,7 @@ func (client DisasterRecoveryConfigsClient) FailOver(ctx context.Context, resour result, err = client.FailOverResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.DisasterRecoveryConfigsClient", "FailOver", resp, "Failure responding to request") + return } return @@ -539,6 +544,7 @@ func (client DisasterRecoveryConfigsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.DisasterRecoveryConfigsClient", "Get", resp, "Failure responding to request") + return } return @@ -633,6 +639,7 @@ func (client DisasterRecoveryConfigsClient) GetAuthorizationRule(ctx context.Con result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.DisasterRecoveryConfigsClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -721,6 +728,7 @@ func (client DisasterRecoveryConfigsClient) List(ctx context.Context, resourceGr result.adrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.DisasterRecoveryConfigsClient", "List", resp, "Failure responding to request") + return } if result.adrlr.hasNextLink() && result.adrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -785,6 +793,7 @@ func (client DisasterRecoveryConfigsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.DisasterRecoveryConfigsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -851,6 +860,7 @@ func (client DisasterRecoveryConfigsClient) ListAuthorizationRules(ctx context.C result.sarlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.DisasterRecoveryConfigsClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.sarlr.hasNextLink() && result.sarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -916,6 +926,7 @@ func (client DisasterRecoveryConfigsClient) listAuthorizationRulesNextResults(ct result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.DisasterRecoveryConfigsClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -985,6 +996,7 @@ func (client DisasterRecoveryConfigsClient) ListKeys(ctx context.Context, resour result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.DisasterRecoveryConfigsClient", "ListKeys", resp, "Failure responding to request") + return } return diff --git a/services/servicebus/mgmt/2017-04-01/servicebus/eventhubs.go b/services/servicebus/mgmt/2017-04-01/servicebus/eventhubs.go index e0812221268f..96d73ab9f473 100644 --- a/services/servicebus/mgmt/2017-04-01/servicebus/eventhubs.go +++ b/services/servicebus/mgmt/2017-04-01/servicebus/eventhubs.go @@ -84,6 +84,7 @@ func (client EventHubsClient) ListByNamespace(ctx context.Context, resourceGroup result.ehlr, err = client.ListByNamespaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.EventHubsClient", "ListByNamespace", resp, "Failure responding to request") + return } if result.ehlr.hasNextLink() && result.ehlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -148,6 +149,7 @@ func (client EventHubsClient) listByNamespaceNextResults(ctx context.Context, la result, err = client.ListByNamespaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.EventHubsClient", "listByNamespaceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/servicebus/mgmt/2017-04-01/servicebus/migrationconfigs.go b/services/servicebus/mgmt/2017-04-01/servicebus/migrationconfigs.go index 46fabce82958..3626a62b5bac 100644 --- a/services/servicebus/mgmt/2017-04-01/servicebus/migrationconfigs.go +++ b/services/servicebus/mgmt/2017-04-01/servicebus/migrationconfigs.go @@ -86,6 +86,7 @@ func (client MigrationConfigsClient) CompleteMigration(ctx context.Context, reso result, err = client.CompleteMigrationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.MigrationConfigsClient", "CompleteMigration", resp, "Failure responding to request") + return } return @@ -266,6 +267,7 @@ func (client MigrationConfigsClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.MigrationConfigsClient", "Delete", resp, "Failure responding to request") + return } return @@ -351,6 +353,7 @@ func (client MigrationConfigsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.MigrationConfigsClient", "Get", resp, "Failure responding to request") + return } return @@ -438,6 +441,7 @@ func (client MigrationConfigsClient) List(ctx context.Context, resourceGroupName result.mclr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.MigrationConfigsClient", "List", resp, "Failure responding to request") + return } if result.mclr.hasNextLink() && result.mclr.IsEmpty() { err = result.NextWithContext(ctx) @@ -502,6 +506,7 @@ func (client MigrationConfigsClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.MigrationConfigsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -563,6 +568,7 @@ func (client MigrationConfigsClient) Revert(ctx context.Context, resourceGroupNa result, err = client.RevertResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.MigrationConfigsClient", "Revert", resp, "Failure responding to request") + return } return diff --git a/services/servicebus/mgmt/2017-04-01/servicebus/namespaces.go b/services/servicebus/mgmt/2017-04-01/servicebus/namespaces.go index 7d0697664550..8aae93788e26 100644 --- a/services/servicebus/mgmt/2017-04-01/servicebus/namespaces.go +++ b/services/servicebus/mgmt/2017-04-01/servicebus/namespaces.go @@ -78,6 +78,7 @@ func (client NamespacesClient) CheckNameAvailabilityMethod(ctx context.Context, result, err = client.CheckNameAvailabilityMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "CheckNameAvailabilityMethod", resp, "Failure responding to request") + return } return @@ -257,6 +258,7 @@ func (client NamespacesClient) CreateOrUpdateAuthorizationRule(ctx context.Conte result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -346,6 +348,7 @@ func (client NamespacesClient) CreateOrUpdateNetworkRuleSet(ctx context.Context, result, err = client.CreateOrUpdateNetworkRuleSetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "CreateOrUpdateNetworkRuleSet", resp, "Failure responding to request") + return } return @@ -521,6 +524,7 @@ func (client NamespacesClient) DeleteAuthorizationRule(ctx context.Context, reso result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -606,6 +610,7 @@ func (client NamespacesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "Get", resp, "Failure responding to request") + return } return @@ -695,6 +700,7 @@ func (client NamespacesClient) GetAuthorizationRule(ctx context.Context, resourc result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -781,6 +787,7 @@ func (client NamespacesClient) GetNetworkRuleSet(ctx context.Context, resourceGr result, err = client.GetNetworkRuleSetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "GetNetworkRuleSet", resp, "Failure responding to request") + return } return @@ -854,6 +861,7 @@ func (client NamespacesClient) List(ctx context.Context) (result SBNamespaceList result.snlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "List", resp, "Failure responding to request") + return } if result.snlr.hasNextLink() && result.snlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -916,6 +924,7 @@ func (client NamespacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -978,6 +987,7 @@ func (client NamespacesClient) ListAuthorizationRules(ctx context.Context, resou result.sarlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.sarlr.hasNextLink() && result.sarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1042,6 +1052,7 @@ func (client NamespacesClient) listAuthorizationRulesNextResults(ctx context.Con result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1100,6 +1111,7 @@ func (client NamespacesClient) ListByResourceGroup(ctx context.Context, resource result.snlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.snlr.hasNextLink() && result.snlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1163,6 +1175,7 @@ func (client NamespacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1228,6 +1241,7 @@ func (client NamespacesClient) ListKeys(ctx context.Context, resourceGroupName s result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -1315,6 +1329,7 @@ func (client NamespacesClient) ListNetworkRuleSets(ctx context.Context, resource result.nrslr, err = client.ListNetworkRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "ListNetworkRuleSets", resp, "Failure responding to request") + return } if result.nrslr.hasNextLink() && result.nrslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -1379,6 +1394,7 @@ func (client NamespacesClient) listNetworkRuleSetsNextResults(ctx context.Contex result, err = client.ListNetworkRuleSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "listNetworkRuleSetsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1441,6 +1457,7 @@ func (client NamespacesClient) Migrate(ctx context.Context, resourceGroupName st result, err = client.MigrateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "Migrate", resp, "Failure responding to request") + return } return @@ -1532,6 +1549,7 @@ func (client NamespacesClient) RegenerateKeys(ctx context.Context, resourceGroup result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "RegenerateKeys", resp, "Failure responding to request") + return } return @@ -1622,6 +1640,7 @@ func (client NamespacesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/servicebus/mgmt/2017-04-01/servicebus/operations.go b/services/servicebus/mgmt/2017-04-01/servicebus/operations.go index 5bc56446f1d8..b49ed70ca933 100644 --- a/services/servicebus/mgmt/2017-04-01/servicebus/operations.go +++ b/services/servicebus/mgmt/2017-04-01/servicebus/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/servicebus/mgmt/2017-04-01/servicebus/premiummessagingregions.go b/services/servicebus/mgmt/2017-04-01/servicebus/premiummessagingregions.go index d38e8ac99530..ec039e62e96b 100644 --- a/services/servicebus/mgmt/2017-04-01/servicebus/premiummessagingregions.go +++ b/services/servicebus/mgmt/2017-04-01/servicebus/premiummessagingregions.go @@ -71,6 +71,7 @@ func (client PremiumMessagingRegionsClient) List(ctx context.Context) (result Pr result.pmrlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.PremiumMessagingRegionsClient", "List", resp, "Failure responding to request") + return } if result.pmrlr.hasNextLink() && result.pmrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client PremiumMessagingRegionsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.PremiumMessagingRegionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/servicebus/mgmt/2017-04-01/servicebus/queues.go b/services/servicebus/mgmt/2017-04-01/servicebus/queues.go index 4a0c27fa8877..925978c7344f 100644 --- a/services/servicebus/mgmt/2017-04-01/servicebus/queues.go +++ b/services/servicebus/mgmt/2017-04-01/servicebus/queues.go @@ -87,6 +87,7 @@ func (client QueuesClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client QueuesClient) CreateOrUpdateAuthorizationRule(ctx context.Context, result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client QueuesClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "Delete", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client QueuesClient) DeleteAuthorizationRule(ctx context.Context, resource result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -459,6 +463,7 @@ func (client QueuesClient) Get(ctx context.Context, resourceGroupName string, na result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "Get", resp, "Failure responding to request") + return } return @@ -552,6 +557,7 @@ func (client QueuesClient) GetAuthorizationRule(ctx context.Context, resourceGro result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -643,6 +649,7 @@ func (client QueuesClient) ListAuthorizationRules(ctx context.Context, resourceG result.sarlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.sarlr.hasNextLink() && result.sarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -708,6 +715,7 @@ func (client QueuesClient) listAuthorizationRulesNextResults(ctx context.Context result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -784,6 +792,7 @@ func (client QueuesClient) ListByNamespace(ctx context.Context, resourceGroupNam result.sqlr, err = client.ListByNamespaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "ListByNamespace", resp, "Failure responding to request") + return } if result.sqlr.hasNextLink() && result.sqlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -854,6 +863,7 @@ func (client QueuesClient) listByNamespaceNextResults(ctx context.Context, lastR result, err = client.ListByNamespaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "listByNamespaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -922,6 +932,7 @@ func (client QueuesClient) ListKeys(ctx context.Context, resourceGroupName strin result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -1017,6 +1028,7 @@ func (client QueuesClient) RegenerateKeys(ctx context.Context, resourceGroupName result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "RegenerateKeys", resp, "Failure responding to request") + return } return diff --git a/services/servicebus/mgmt/2017-04-01/servicebus/regions.go b/services/servicebus/mgmt/2017-04-01/servicebus/regions.go index dca0c6dea903..1a410f278604 100644 --- a/services/servicebus/mgmt/2017-04-01/servicebus/regions.go +++ b/services/servicebus/mgmt/2017-04-01/servicebus/regions.go @@ -80,6 +80,7 @@ func (client RegionsClient) ListBySku(ctx context.Context, sku string) (result P result.pmrlr, err = client.ListBySkuResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.RegionsClient", "ListBySku", resp, "Failure responding to request") + return } if result.pmrlr.hasNextLink() && result.pmrlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -143,6 +144,7 @@ func (client RegionsClient) listBySkuNextResults(ctx context.Context, lastResult result, err = client.ListBySkuResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.RegionsClient", "listBySkuNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/servicebus/mgmt/2017-04-01/servicebus/rules.go b/services/servicebus/mgmt/2017-04-01/servicebus/rules.go index b9df9af8a9d8..5f0879a153b0 100644 --- a/services/servicebus/mgmt/2017-04-01/servicebus/rules.go +++ b/services/servicebus/mgmt/2017-04-01/servicebus/rules.go @@ -104,6 +104,7 @@ func (client RulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.RulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -205,6 +206,7 @@ func (client RulesClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.RulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -303,6 +305,7 @@ func (client RulesClient) Get(ctx context.Context, resourceGroupName string, nam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.RulesClient", "Get", resp, "Failure responding to request") + return } return @@ -413,6 +416,7 @@ func (client RulesClient) ListBySubscriptions(ctx context.Context, resourceGroup result.rlr, err = client.ListBySubscriptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.RulesClient", "ListBySubscriptions", resp, "Failure responding to request") + return } if result.rlr.hasNextLink() && result.rlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -485,6 +489,7 @@ func (client RulesClient) listBySubscriptionsNextResults(ctx context.Context, la result, err = client.ListBySubscriptionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.RulesClient", "listBySubscriptionsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/servicebus/mgmt/2017-04-01/servicebus/subscriptions.go b/services/servicebus/mgmt/2017-04-01/servicebus/subscriptions.go index 380847dd9c5f..3e5f3ecd8daa 100644 --- a/services/servicebus/mgmt/2017-04-01/servicebus/subscriptions.go +++ b/services/servicebus/mgmt/2017-04-01/servicebus/subscriptions.go @@ -91,6 +91,7 @@ func (client SubscriptionsClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.SubscriptionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -187,6 +188,7 @@ func (client SubscriptionsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.SubscriptionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -280,6 +282,7 @@ func (client SubscriptionsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.SubscriptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -385,6 +388,7 @@ func (client SubscriptionsClient) ListByTopic(ctx context.Context, resourceGroup result.sslr, err = client.ListByTopicResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.SubscriptionsClient", "ListByTopic", resp, "Failure responding to request") + return } if result.sslr.hasNextLink() && result.sslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -456,6 +460,7 @@ func (client SubscriptionsClient) listByTopicNextResults(ctx context.Context, la result, err = client.ListByTopicResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.SubscriptionsClient", "listByTopicNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/servicebus/mgmt/2017-04-01/servicebus/topics.go b/services/servicebus/mgmt/2017-04-01/servicebus/topics.go index 9e00bd1ece82..ec8e5f04746d 100644 --- a/services/servicebus/mgmt/2017-04-01/servicebus/topics.go +++ b/services/servicebus/mgmt/2017-04-01/servicebus/topics.go @@ -87,6 +87,7 @@ func (client TopicsClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -186,6 +187,7 @@ func (client TopicsClient) CreateOrUpdateAuthorizationRule(ctx context.Context, result, err = client.CreateOrUpdateAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "CreateOrUpdateAuthorizationRule", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client TopicsClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "Delete", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client TopicsClient) DeleteAuthorizationRule(ctx context.Context, resource result, err = client.DeleteAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "DeleteAuthorizationRule", resp, "Failure responding to request") + return } return @@ -459,6 +463,7 @@ func (client TopicsClient) Get(ctx context.Context, resourceGroupName string, na result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "Get", resp, "Failure responding to request") + return } return @@ -552,6 +557,7 @@ func (client TopicsClient) GetAuthorizationRule(ctx context.Context, resourceGro result, err = client.GetAuthorizationRuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "GetAuthorizationRule", resp, "Failure responding to request") + return } return @@ -643,6 +649,7 @@ func (client TopicsClient) ListAuthorizationRules(ctx context.Context, resourceG result.sarlr, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "ListAuthorizationRules", resp, "Failure responding to request") + return } if result.sarlr.hasNextLink() && result.sarlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -708,6 +715,7 @@ func (client TopicsClient) listAuthorizationRulesNextResults(ctx context.Context result, err = client.ListAuthorizationRulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "listAuthorizationRulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -784,6 +792,7 @@ func (client TopicsClient) ListByNamespace(ctx context.Context, resourceGroupNam result.stlr, err = client.ListByNamespaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "ListByNamespace", resp, "Failure responding to request") + return } if result.stlr.hasNextLink() && result.stlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -854,6 +863,7 @@ func (client TopicsClient) listByNamespaceNextResults(ctx context.Context, lastR result, err = client.ListByNamespaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "listByNamespaceNextResults", resp, "Failure responding to next results request") + return } return } @@ -922,6 +932,7 @@ func (client TopicsClient) ListKeys(ctx context.Context, resourceGroupName strin result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -1017,6 +1028,7 @@ func (client TopicsClient) RegenerateKeys(ctx context.Context, resourceGroupName result, err = client.RegenerateKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "RegenerateKeys", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/6.2/servicefabric/client.go b/services/servicefabric/6.2/servicefabric/client.go index 1c3e67ef5dd9..bd65546892a5 100644 --- a/services/servicefabric/6.2/servicefabric/client.go +++ b/services/servicefabric/6.2/servicefabric/client.go @@ -109,6 +109,7 @@ func (client BaseClient) BackupPartition(ctx context.Context, partitionID uuid.U result, err = client.BackupPartitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "BackupPartition", resp, "Failure responding to request") + return } return @@ -229,6 +230,7 @@ func (client BaseClient) CancelOperation(ctx context.Context, operationID uuid.U result, err = client.CancelOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelOperation", resp, "Failure responding to request") + return } return @@ -309,6 +311,7 @@ func (client BaseClient) CancelRepairTask(ctx context.Context, repairTaskCancelD result, err = client.CancelRepairTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelRepairTask", resp, "Failure responding to request") + return } return @@ -394,6 +397,7 @@ func (client BaseClient) CommitImageStoreUploadSession(ctx context.Context, sess result, err = client.CommitImageStoreUploadSessionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CommitImageStoreUploadSession", resp, "Failure responding to request") + return } return @@ -483,6 +487,7 @@ func (client BaseClient) CopyImageStoreContent(ctx context.Context, imageStoreCo result, err = client.CopyImageStoreContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CopyImageStoreContent", resp, "Failure responding to request") + return } return @@ -579,6 +584,7 @@ func (client BaseClient) CreateApplication(ctx context.Context, applicationDescr result, err = client.CreateApplicationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateApplication", resp, "Failure responding to request") + return } return @@ -675,6 +681,7 @@ func (client BaseClient) CreateBackupPolicy(ctx context.Context, backupPolicyDes result, err = client.CreateBackupPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateBackupPolicy", resp, "Failure responding to request") + return } return @@ -766,6 +773,7 @@ func (client BaseClient) CreateComposeDeployment(ctx context.Context, createComp result, err = client.CreateComposeDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateComposeDeployment", resp, "Failure responding to request") + return } return @@ -854,6 +862,7 @@ func (client BaseClient) CreateName(ctx context.Context, nameDescription NameDes result, err = client.CreateNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateName", resp, "Failure responding to request") + return } return @@ -945,6 +954,7 @@ func (client BaseClient) CreateRepairTask(ctx context.Context, repairTask Repair result, err = client.CreateRepairTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateRepairTask", resp, "Failure responding to request") + return } return @@ -1038,6 +1048,7 @@ func (client BaseClient) CreateService(ctx context.Context, applicationID string result, err = client.CreateServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateService", resp, "Failure responding to request") + return } return @@ -1140,6 +1151,7 @@ func (client BaseClient) CreateServiceFromTemplate(ctx context.Context, applicat result, err = client.CreateServiceFromTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateServiceFromTemplate", resp, "Failure responding to request") + return } return @@ -1242,6 +1254,7 @@ func (client BaseClient) DeleteApplication(ctx context.Context, applicationID st result, err = client.DeleteApplicationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteApplication", resp, "Failure responding to request") + return } return @@ -1335,6 +1348,7 @@ func (client BaseClient) DeleteBackupPolicy(ctx context.Context, backupPolicyNam result, err = client.DeleteBackupPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteBackupPolicy", resp, "Failure responding to request") + return } return @@ -1424,6 +1438,7 @@ func (client BaseClient) DeleteImageStoreContent(ctx context.Context, contentPat result, err = client.DeleteImageStoreContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteImageStoreContent", resp, "Failure responding to request") + return } return @@ -1514,6 +1529,7 @@ func (client BaseClient) DeleteImageStoreUploadSession(ctx context.Context, sess result, err = client.DeleteImageStoreUploadSessionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteImageStoreUploadSession", resp, "Failure responding to request") + return } return @@ -1600,6 +1616,7 @@ func (client BaseClient) DeleteName(ctx context.Context, nameID string, timeout result, err = client.DeleteNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteName", resp, "Failure responding to request") + return } return @@ -1690,6 +1707,7 @@ func (client BaseClient) DeleteProperty(ctx context.Context, nameID string, prop result, err = client.DeletePropertyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteProperty", resp, "Failure responding to request") + return } return @@ -1773,6 +1791,7 @@ func (client BaseClient) DeleteRepairTask(ctx context.Context, repairTaskDeleteD result, err = client.DeleteRepairTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteRepairTask", resp, "Failure responding to request") + return } return @@ -1865,6 +1884,7 @@ func (client BaseClient) DeleteService(ctx context.Context, serviceID string, fo result, err = client.DeleteServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteService", resp, "Failure responding to request") + return } return @@ -1966,6 +1986,7 @@ func (client BaseClient) DeployServicePackageToNode(ctx context.Context, nodeNam result, err = client.DeployServicePackageToNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeployServicePackageToNode", resp, "Failure responding to request") + return } return @@ -2060,6 +2081,7 @@ func (client BaseClient) DisableApplicationBackup(ctx context.Context, applicati result, err = client.DisableApplicationBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableApplicationBackup", resp, "Failure responding to request") + return } return @@ -2154,6 +2176,7 @@ func (client BaseClient) DisableNode(ctx context.Context, nodeName string, deact result, err = client.DisableNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableNode", resp, "Failure responding to request") + return } return @@ -2247,6 +2270,7 @@ func (client BaseClient) DisablePartitionBackup(ctx context.Context, partitionID result, err = client.DisablePartitionBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisablePartitionBackup", resp, "Failure responding to request") + return } return @@ -2342,6 +2366,7 @@ func (client BaseClient) DisableServiceBackup(ctx context.Context, serviceID str result, err = client.DisableServiceBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableServiceBackup", resp, "Failure responding to request") + return } return @@ -2439,6 +2464,7 @@ func (client BaseClient) EnableApplicationBackup(ctx context.Context, applicatio result, err = client.EnableApplicationBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableApplicationBackup", resp, "Failure responding to request") + return } return @@ -2531,6 +2557,7 @@ func (client BaseClient) EnableNode(ctx context.Context, nodeName string, timeou result, err = client.EnableNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableNode", resp, "Failure responding to request") + return } return @@ -2626,6 +2653,7 @@ func (client BaseClient) EnablePartitionBackup(ctx context.Context, partitionID result, err = client.EnablePartitionBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnablePartitionBackup", resp, "Failure responding to request") + return } return @@ -2728,6 +2756,7 @@ func (client BaseClient) EnableServiceBackup(ctx context.Context, serviceID stri result, err = client.EnableServiceBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableServiceBackup", resp, "Failure responding to request") + return } return @@ -2813,6 +2842,7 @@ func (client BaseClient) ForceApproveRepairTask(ctx context.Context, repairTaskA result, err = client.ForceApproveRepairTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ForceApproveRepairTask", resp, "Failure responding to request") + return } return @@ -2896,6 +2926,7 @@ func (client BaseClient) GetAadMetadata(ctx context.Context, timeout *int64) (re result, err = client.GetAadMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetAadMetadata", resp, "Failure responding to request") + return } return @@ -2995,6 +3026,7 @@ func (client BaseClient) GetAllEntitiesBackedUpByPolicy(ctx context.Context, bac result, err = client.GetAllEntitiesBackedUpByPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetAllEntitiesBackedUpByPolicy", resp, "Failure responding to request") + return } return @@ -3110,6 +3142,7 @@ func (client BaseClient) GetApplicationBackupConfigurationInfo(ctx context.Conte result, err = client.GetApplicationBackupConfigurationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationBackupConfigurationInfo", resp, "Failure responding to request") + return } return @@ -3235,6 +3268,7 @@ func (client BaseClient) GetApplicationBackupList(ctx context.Context, applicati result, err = client.GetApplicationBackupListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationBackupList", resp, "Failure responding to request") + return } return @@ -3355,6 +3389,7 @@ func (client BaseClient) GetApplicationEventList(ctx context.Context, applicatio result, err = client.GetApplicationEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationEventList", resp, "Failure responding to request") + return } return @@ -3513,6 +3548,7 @@ func (client BaseClient) GetApplicationHealth(ctx context.Context, applicationID result, err = client.GetApplicationHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealth", resp, "Failure responding to request") + return } return @@ -3685,6 +3721,7 @@ func (client BaseClient) GetApplicationHealthUsingPolicy(ctx context.Context, ap result, err = client.GetApplicationHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -3807,6 +3844,7 @@ func (client BaseClient) GetApplicationInfo(ctx context.Context, applicationID s result, err = client.GetApplicationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfo", resp, "Failure responding to request") + return } return @@ -3928,6 +3966,7 @@ func (client BaseClient) GetApplicationInfoList(ctx context.Context, application result, err = client.GetApplicationInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfoList", resp, "Failure responding to request") + return } return @@ -4041,6 +4080,7 @@ func (client BaseClient) GetApplicationLoadInfo(ctx context.Context, application result, err = client.GetApplicationLoadInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationLoadInfo", resp, "Failure responding to request") + return } return @@ -4132,6 +4172,7 @@ func (client BaseClient) GetApplicationManifest(ctx context.Context, application result, err = client.GetApplicationManifestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationManifest", resp, "Failure responding to request") + return } return @@ -4227,6 +4268,7 @@ func (client BaseClient) GetApplicationNameInfo(ctx context.Context, serviceID s result, err = client.GetApplicationNameInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationNameInfo", resp, "Failure responding to request") + return } return @@ -4323,6 +4365,7 @@ func (client BaseClient) GetApplicationsEventList(ctx context.Context, startTime result, err = client.GetApplicationsEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationsEventList", resp, "Failure responding to request") + return } return @@ -4447,6 +4490,7 @@ func (client BaseClient) GetApplicationTypeInfoList(ctx context.Context, applica result, err = client.GetApplicationTypeInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoList", resp, "Failure responding to request") + return } return @@ -4575,6 +4619,7 @@ func (client BaseClient) GetApplicationTypeInfoListByName(ctx context.Context, a result, err = client.GetApplicationTypeInfoListByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoListByName", resp, "Failure responding to request") + return } return @@ -4685,6 +4730,7 @@ func (client BaseClient) GetApplicationUpgrade(ctx context.Context, applicationI result, err = client.GetApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -4774,6 +4820,7 @@ func (client BaseClient) GetBackupPolicyByName(ctx context.Context, backupPolicy result, err = client.GetBackupPolicyByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetBackupPolicyByName", resp, "Failure responding to request") + return } return @@ -4875,6 +4922,7 @@ func (client BaseClient) GetBackupPolicyList(ctx context.Context, continuationTo result, err = client.GetBackupPolicyListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetBackupPolicyList", resp, "Failure responding to request") + return } return @@ -4986,6 +5034,7 @@ func (client BaseClient) GetBackupsFromBackupLocation(ctx context.Context, getBa result, err = client.GetBackupsFromBackupLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetBackupsFromBackupLocation", resp, "Failure responding to request") + return } return @@ -5081,6 +5130,7 @@ func (client BaseClient) GetChaos(ctx context.Context, timeout *int64) (result C result, err = client.GetChaosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaos", resp, "Failure responding to request") + return } return @@ -5190,6 +5240,7 @@ func (client BaseClient) GetChaosEvents(ctx context.Context, continuationToken s result, err = client.GetChaosEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaosEvents", resp, "Failure responding to request") + return } return @@ -5276,6 +5327,7 @@ func (client BaseClient) GetChaosSchedule(ctx context.Context) (result ChaosSche result, err = client.GetChaosScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaosSchedule", resp, "Failure responding to request") + return } return @@ -5358,6 +5410,7 @@ func (client BaseClient) GetClusterConfiguration(ctx context.Context, configurat result, err = client.GetClusterConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterConfiguration", resp, "Failure responding to request") + return } return @@ -5444,6 +5497,7 @@ func (client BaseClient) GetClusterConfigurationUpgradeStatus(ctx context.Contex result, err = client.GetClusterConfigurationUpgradeStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterConfigurationUpgradeStatus", resp, "Failure responding to request") + return } return @@ -5536,6 +5590,7 @@ func (client BaseClient) GetClusterEventList(ctx context.Context, startTimeUtc s result, err = client.GetClusterEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterEventList", resp, "Failure responding to request") + return } return @@ -5696,6 +5751,7 @@ func (client BaseClient) GetClusterHealth(ctx context.Context, nodesHealthStateF result, err = client.GetClusterHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealth", resp, "Failure responding to request") + return } return @@ -5808,6 +5864,7 @@ func (client BaseClient) GetClusterHealthChunk(ctx context.Context, timeout *int result, err = client.GetClusterHealthChunkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunk", resp, "Failure responding to request") + return } return @@ -5914,6 +5971,7 @@ func (client BaseClient) GetClusterHealthChunkUsingPolicyAndAdvancedFilters(ctx result, err = client.GetClusterHealthChunkUsingPolicyAndAdvancedFiltersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunkUsingPolicyAndAdvancedFilters", resp, "Failure responding to request") + return } return @@ -6077,6 +6135,7 @@ func (client BaseClient) GetClusterHealthUsingPolicy(ctx context.Context, nodesH result, err = client.GetClusterHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -6201,6 +6260,7 @@ func (client BaseClient) GetClusterManifest(ctx context.Context, timeout *int64) result, err = client.GetClusterManifestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterManifest", resp, "Failure responding to request") + return } return @@ -6286,6 +6346,7 @@ func (client BaseClient) GetClusterUpgradeProgress(ctx context.Context, timeout result, err = client.GetClusterUpgradeProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterUpgradeProgress", resp, "Failure responding to request") + return } return @@ -6373,6 +6434,7 @@ func (client BaseClient) GetComposeDeploymentStatus(ctx context.Context, deploym result, err = client.GetComposeDeploymentStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentStatus", resp, "Failure responding to request") + return } return @@ -6477,6 +6539,7 @@ func (client BaseClient) GetComposeDeploymentStatusList(ctx context.Context, con result, err = client.GetComposeDeploymentStatusListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentStatusList", resp, "Failure responding to request") + return } return @@ -6571,6 +6634,7 @@ func (client BaseClient) GetComposeDeploymentUpgradeProgress(ctx context.Context result, err = client.GetComposeDeploymentUpgradeProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentUpgradeProgress", resp, "Failure responding to request") + return } return @@ -6672,6 +6736,7 @@ func (client BaseClient) GetContainerLogsDeployedOnNode(ctx context.Context, nod result, err = client.GetContainerLogsDeployedOnNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetContainerLogsDeployedOnNode", resp, "Failure responding to request") + return } return @@ -6779,6 +6844,7 @@ func (client BaseClient) GetContainersEventList(ctx context.Context, startTimeUt result, err = client.GetContainersEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetContainersEventList", resp, "Failure responding to request") + return } return @@ -6875,6 +6941,7 @@ func (client BaseClient) GetCorrelatedEventList(ctx context.Context, eventInstan result, err = client.GetCorrelatedEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetCorrelatedEventList", resp, "Failure responding to request") + return } return @@ -6971,6 +7038,7 @@ func (client BaseClient) GetDataLossProgress(ctx context.Context, serviceID stri result, err = client.GetDataLossProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDataLossProgress", resp, "Failure responding to request") + return } return @@ -7106,6 +7174,7 @@ func (client BaseClient) GetDeployedApplicationHealth(ctx context.Context, nodeN result, err = client.GetDeployedApplicationHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealth", resp, "Failure responding to request") + return } return @@ -7262,6 +7331,7 @@ func (client BaseClient) GetDeployedApplicationHealthUsingPolicy(ctx context.Con result, err = client.GetDeployedApplicationHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -7386,6 +7456,7 @@ func (client BaseClient) GetDeployedApplicationInfo(ctx context.Context, nodeNam result, err = client.GetDeployedApplicationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfo", resp, "Failure responding to request") + return } return @@ -7503,6 +7574,7 @@ func (client BaseClient) GetDeployedApplicationInfoList(ctx context.Context, nod result, err = client.GetDeployedApplicationInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfoList", resp, "Failure responding to request") + return } return @@ -7615,6 +7687,7 @@ func (client BaseClient) GetDeployedCodePackageInfoList(ctx context.Context, nod result, err = client.GetDeployedCodePackageInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedCodePackageInfoList", resp, "Failure responding to request") + return } return @@ -7734,6 +7807,7 @@ func (client BaseClient) GetDeployedServicePackageHealth(ctx context.Context, no result, err = client.GetDeployedServicePackageHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealth", resp, "Failure responding to request") + return } return @@ -7860,6 +7934,7 @@ func (client BaseClient) GetDeployedServicePackageHealthUsingPolicy(ctx context. result, err = client.GetDeployedServicePackageHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -7967,6 +8042,7 @@ func (client BaseClient) GetDeployedServicePackageInfoList(ctx context.Context, result, err = client.GetDeployedServicePackageInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoList", resp, "Failure responding to request") + return } return @@ -8065,6 +8141,7 @@ func (client BaseClient) GetDeployedServicePackageInfoListByName(ctx context.Con result, err = client.GetDeployedServicePackageInfoListByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoListByName", resp, "Failure responding to request") + return } return @@ -8160,6 +8237,7 @@ func (client BaseClient) GetDeployedServiceReplicaDetailInfo(ctx context.Context result, err = client.GetDeployedServiceReplicaDetailInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfo", resp, "Failure responding to request") + return } return @@ -8254,6 +8332,7 @@ func (client BaseClient) GetDeployedServiceReplicaDetailInfoByPartitionID(ctx co result, err = client.GetDeployedServiceReplicaDetailInfoByPartitionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfoByPartitionID", resp, "Failure responding to request") + return } return @@ -8355,6 +8434,7 @@ func (client BaseClient) GetDeployedServiceReplicaInfoList(ctx context.Context, result, err = client.GetDeployedServiceReplicaInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaInfoList", resp, "Failure responding to request") + return } return @@ -8463,6 +8543,7 @@ func (client BaseClient) GetDeployedServiceTypeInfoByName(ctx context.Context, n result, err = client.GetDeployedServiceTypeInfoByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoByName", resp, "Failure responding to request") + return } return @@ -8567,6 +8648,7 @@ func (client BaseClient) GetDeployedServiceTypeInfoList(ctx context.Context, nod result, err = client.GetDeployedServiceTypeInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoList", resp, "Failure responding to request") + return } return @@ -8673,6 +8755,7 @@ func (client BaseClient) GetFaultOperationList(ctx context.Context, typeFilter i result, err = client.GetFaultOperationListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetFaultOperationList", resp, "Failure responding to request") + return } return @@ -8761,6 +8844,7 @@ func (client BaseClient) GetImageStoreContent(ctx context.Context, contentPath s result, err = client.GetImageStoreContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreContent", resp, "Failure responding to request") + return } return @@ -8849,6 +8933,7 @@ func (client BaseClient) GetImageStoreRootContent(ctx context.Context, timeout * result, err = client.GetImageStoreRootContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreRootContent", resp, "Failure responding to request") + return } return @@ -8936,6 +9021,7 @@ func (client BaseClient) GetImageStoreUploadSessionByID(ctx context.Context, ses result, err = client.GetImageStoreUploadSessionByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreUploadSessionByID", resp, "Failure responding to request") + return } return @@ -9023,6 +9109,7 @@ func (client BaseClient) GetImageStoreUploadSessionByPath(ctx context.Context, c result, err = client.GetImageStoreUploadSessionByPathResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreUploadSessionByPath", resp, "Failure responding to request") + return } return @@ -9112,6 +9199,7 @@ func (client BaseClient) GetNameExistsInfo(ctx context.Context, nameID string, t result, err = client.GetNameExistsInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNameExistsInfo", resp, "Failure responding to request") + return } return @@ -9208,6 +9296,7 @@ func (client BaseClient) GetNodeEventList(ctx context.Context, nodeName string, result, err = client.GetNodeEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeEventList", resp, "Failure responding to request") + return } return @@ -9325,6 +9414,7 @@ func (client BaseClient) GetNodeHealth(ctx context.Context, nodeName string, eve result, err = client.GetNodeHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealth", resp, "Failure responding to request") + return } return @@ -9439,6 +9529,7 @@ func (client BaseClient) GetNodeHealthUsingPolicy(ctx context.Context, nodeName result, err = client.GetNodeHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -9539,6 +9630,7 @@ func (client BaseClient) GetNodeInfo(ctx context.Context, nodeName string, timeo result, err = client.GetNodeInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfo", resp, "Failure responding to request") + return } return @@ -9635,6 +9727,7 @@ func (client BaseClient) GetNodeInfoList(ctx context.Context, continuationToken result, err = client.GetNodeInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfoList", resp, "Failure responding to request") + return } return @@ -9729,6 +9822,7 @@ func (client BaseClient) GetNodeLoadInfo(ctx context.Context, nodeName string, t result, err = client.GetNodeLoadInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeLoadInfo", resp, "Failure responding to request") + return } return @@ -9825,6 +9919,7 @@ func (client BaseClient) GetNodesEventList(ctx context.Context, startTimeUtc str result, err = client.GetNodesEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodesEventList", resp, "Failure responding to request") + return } return @@ -9924,6 +10019,7 @@ func (client BaseClient) GetNodeTransitionProgress(ctx context.Context, nodeName result, err = client.GetNodeTransitionProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeTransitionProgress", resp, "Failure responding to request") + return } return @@ -10015,6 +10111,7 @@ func (client BaseClient) GetPartitionBackupConfigurationInfo(ctx context.Context result, err = client.GetPartitionBackupConfigurationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionBackupConfigurationInfo", resp, "Failure responding to request") + return } return @@ -10114,6 +10211,7 @@ func (client BaseClient) GetPartitionBackupList(ctx context.Context, partitionID result, err = client.GetPartitionBackupListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionBackupList", resp, "Failure responding to request") + return } return @@ -10215,6 +10313,7 @@ func (client BaseClient) GetPartitionBackupProgress(ctx context.Context, partiti result, err = client.GetPartitionBackupProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionBackupProgress", resp, "Failure responding to request") + return } return @@ -10312,6 +10411,7 @@ func (client BaseClient) GetPartitionEventList(ctx context.Context, partitionID result, err = client.GetPartitionEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionEventList", resp, "Failure responding to request") + return } return @@ -10449,6 +10549,7 @@ func (client BaseClient) GetPartitionHealth(ctx context.Context, partitionID uui result, err = client.GetPartitionHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealth", resp, "Failure responding to request") + return } return @@ -10598,6 +10699,7 @@ func (client BaseClient) GetPartitionHealthUsingPolicy(ctx context.Context, part result, err = client.GetPartitionHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -10709,6 +10811,7 @@ func (client BaseClient) GetPartitionInfo(ctx context.Context, partitionID uuid. result, err = client.GetPartitionInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfo", resp, "Failure responding to request") + return } return @@ -10809,6 +10912,7 @@ func (client BaseClient) GetPartitionInfoList(ctx context.Context, serviceID str result, err = client.GetPartitionInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfoList", resp, "Failure responding to request") + return } return @@ -10903,6 +11007,7 @@ func (client BaseClient) GetPartitionLoadInformation(ctx context.Context, partit result, err = client.GetPartitionLoadInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionLoadInformation", resp, "Failure responding to request") + return } return @@ -11001,6 +11106,7 @@ func (client BaseClient) GetPartitionReplicaEventList(ctx context.Context, parti result, err = client.GetPartitionReplicaEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionReplicaEventList", resp, "Failure responding to request") + return } return @@ -11110,6 +11216,7 @@ func (client BaseClient) GetPartitionReplicasEventList(ctx context.Context, part result, err = client.GetPartitionReplicasEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionReplicasEventList", resp, "Failure responding to request") + return } return @@ -11218,6 +11325,7 @@ func (client BaseClient) GetPartitionRestartProgress(ctx context.Context, servic result, err = client.GetPartitionRestartProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionRestartProgress", resp, "Failure responding to request") + return } return @@ -11310,6 +11418,7 @@ func (client BaseClient) GetPartitionRestoreProgress(ctx context.Context, partit result, err = client.GetPartitionRestoreProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionRestoreProgress", resp, "Failure responding to request") + return } return @@ -11406,6 +11515,7 @@ func (client BaseClient) GetPartitionsEventList(ctx context.Context, startTimeUt result, err = client.GetPartitionsEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionsEventList", resp, "Failure responding to request") + return } return @@ -11504,6 +11614,7 @@ func (client BaseClient) GetPropertyInfo(ctx context.Context, nameID string, pro result, err = client.GetPropertyInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPropertyInfo", resp, "Failure responding to request") + return } return @@ -11603,6 +11714,7 @@ func (client BaseClient) GetPropertyInfoList(ctx context.Context, nameID string, result, err = client.GetPropertyInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPropertyInfoList", resp, "Failure responding to request") + return } return @@ -11702,6 +11814,7 @@ func (client BaseClient) GetProvisionedFabricCodeVersionInfoList(ctx context.Con result, err = client.GetProvisionedFabricCodeVersionInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricCodeVersionInfoList", resp, "Failure responding to request") + return } return @@ -11792,6 +11905,7 @@ func (client BaseClient) GetProvisionedFabricConfigVersionInfoList(ctx context.C result, err = client.GetProvisionedFabricConfigVersionInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricConfigVersionInfoList", resp, "Failure responding to request") + return } return @@ -11888,6 +12002,7 @@ func (client BaseClient) GetQuorumLossProgress(ctx context.Context, serviceID st result, err = client.GetQuorumLossProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetQuorumLossProgress", resp, "Failure responding to request") + return } return @@ -11977,6 +12092,7 @@ func (client BaseClient) GetRepairTaskList(ctx context.Context, taskIDFilter str result, err = client.GetRepairTaskListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetRepairTaskList", resp, "Failure responding to request") + return } return @@ -12084,6 +12200,7 @@ func (client BaseClient) GetReplicaHealth(ctx context.Context, partitionID uuid. result, err = client.GetReplicaHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealth", resp, "Failure responding to request") + return } return @@ -12205,6 +12322,7 @@ func (client BaseClient) GetReplicaHealthUsingPolicy(ctx context.Context, partit result, err = client.GetReplicaHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -12307,6 +12425,7 @@ func (client BaseClient) GetReplicaInfo(ctx context.Context, partitionID uuid.UU result, err = client.GetReplicaInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfo", resp, "Failure responding to request") + return } return @@ -12403,6 +12522,7 @@ func (client BaseClient) GetReplicaInfoList(ctx context.Context, partitionID uui result, err = client.GetReplicaInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfoList", resp, "Failure responding to request") + return } return @@ -12513,6 +12633,7 @@ func (client BaseClient) GetServiceBackupConfigurationInfo(ctx context.Context, result, err = client.GetServiceBackupConfigurationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceBackupConfigurationInfo", resp, "Failure responding to request") + return } return @@ -12638,6 +12759,7 @@ func (client BaseClient) GetServiceBackupList(ctx context.Context, serviceID str result, err = client.GetServiceBackupListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceBackupList", resp, "Failure responding to request") + return } return @@ -12751,6 +12873,7 @@ func (client BaseClient) GetServiceDescription(ctx context.Context, serviceID st result, err = client.GetServiceDescriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceDescription", resp, "Failure responding to request") + return } return @@ -12852,6 +12975,7 @@ func (client BaseClient) GetServiceEventList(ctx context.Context, serviceID stri result, err = client.GetServiceEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceEventList", resp, "Failure responding to request") + return } return @@ -12995,6 +13119,7 @@ func (client BaseClient) GetServiceHealth(ctx context.Context, serviceID string, result, err = client.GetServiceHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealth", resp, "Failure responding to request") + return } return @@ -13149,6 +13274,7 @@ func (client BaseClient) GetServiceHealthUsingPolicy(ctx context.Context, servic result, err = client.GetServiceHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -13268,6 +13394,7 @@ func (client BaseClient) GetServiceInfo(ctx context.Context, applicationID strin result, err = client.GetServiceInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfo", resp, "Failure responding to request") + return } return @@ -13369,6 +13496,7 @@ func (client BaseClient) GetServiceInfoList(ctx context.Context, applicationID s result, err = client.GetServiceInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfoList", resp, "Failure responding to request") + return } return @@ -13468,6 +13596,7 @@ func (client BaseClient) GetServiceManifest(ctx context.Context, applicationType result, err = client.GetServiceManifestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceManifest", resp, "Failure responding to request") + return } return @@ -13560,6 +13689,7 @@ func (client BaseClient) GetServiceNameInfo(ctx context.Context, partitionID uui result, err = client.GetServiceNameInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceNameInfo", resp, "Failure responding to request") + return } return @@ -13656,6 +13786,7 @@ func (client BaseClient) GetServicesEventList(ctx context.Context, startTimeUtc result, err = client.GetServicesEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServicesEventList", resp, "Failure responding to request") + return } return @@ -13756,6 +13887,7 @@ func (client BaseClient) GetServiceTypeInfoByName(ctx context.Context, applicati result, err = client.GetServiceTypeInfoByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceTypeInfoByName", resp, "Failure responding to request") + return } return @@ -13850,6 +13982,7 @@ func (client BaseClient) GetServiceTypeInfoList(ctx context.Context, application result, err = client.GetServiceTypeInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceTypeInfoList", resp, "Failure responding to request") + return } return @@ -13948,6 +14081,7 @@ func (client BaseClient) GetSubNameInfoList(ctx context.Context, nameID string, result, err = client.GetSubNameInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetSubNameInfoList", resp, "Failure responding to request") + return } return @@ -14045,6 +14179,7 @@ func (client BaseClient) GetUpgradeOrchestrationServiceState(ctx context.Context result, err = client.GetUpgradeOrchestrationServiceStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetUpgradeOrchestrationServiceState", resp, "Failure responding to request") + return } return @@ -14144,6 +14279,7 @@ func (client BaseClient) InvokeContainerAPI(ctx context.Context, nodeName string result, err = client.InvokeContainerAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeContainerAPI", resp, "Failure responding to request") + return } return @@ -14249,6 +14385,7 @@ func (client BaseClient) InvokeInfrastructureCommand(ctx context.Context, comman result, err = client.InvokeInfrastructureCommandResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureCommand", resp, "Failure responding to request") + return } return @@ -14348,6 +14485,7 @@ func (client BaseClient) InvokeInfrastructureQuery(ctx context.Context, command result, err = client.InvokeInfrastructureQueryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureQuery", resp, "Failure responding to request") + return } return @@ -14438,6 +14576,7 @@ func (client BaseClient) PostChaosSchedule(ctx context.Context, chaosSchedule Ch result, err = client.PostChaosScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "PostChaosSchedule", resp, "Failure responding to request") + return } return @@ -14525,6 +14664,7 @@ func (client BaseClient) ProvisionApplicationType(ctx context.Context, provision result, err = client.ProvisionApplicationTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionApplicationType", resp, "Failure responding to request") + return } return @@ -14611,6 +14751,7 @@ func (client BaseClient) ProvisionCluster(ctx context.Context, provisionFabricDe result, err = client.ProvisionClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionCluster", resp, "Failure responding to request") + return } return @@ -14701,6 +14842,7 @@ func (client BaseClient) PutProperty(ctx context.Context, nameID string, propert result, err = client.PutPropertyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "PutProperty", resp, "Failure responding to request") + return } return @@ -14793,6 +14935,7 @@ func (client BaseClient) RecoverAllPartitions(ctx context.Context, timeout *int6 result, err = client.RecoverAllPartitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverAllPartitions", resp, "Failure responding to request") + return } return @@ -14879,6 +15022,7 @@ func (client BaseClient) RecoverPartition(ctx context.Context, partitionID uuid. result, err = client.RecoverPartitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverPartition", resp, "Failure responding to request") + return } return @@ -14973,6 +15117,7 @@ func (client BaseClient) RecoverServicePartitions(ctx context.Context, serviceID result, err = client.RecoverServicePartitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverServicePartitions", resp, "Failure responding to request") + return } return @@ -15062,6 +15207,7 @@ func (client BaseClient) RecoverSystemPartitions(ctx context.Context, timeout *i result, err = client.RecoverSystemPartitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverSystemPartitions", resp, "Failure responding to request") + return } return @@ -15146,6 +15292,7 @@ func (client BaseClient) RemoveComposeDeployment(ctx context.Context, deployment result, err = client.RemoveComposeDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveComposeDeployment", resp, "Failure responding to request") + return } return @@ -15239,6 +15386,7 @@ func (client BaseClient) RemoveNodeState(ctx context.Context, nodeName string, t result, err = client.RemoveNodeStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveNodeState", resp, "Failure responding to request") + return } return @@ -15337,6 +15485,7 @@ func (client BaseClient) RemoveReplica(ctx context.Context, nodeName string, par result, err = client.RemoveReplicaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveReplica", resp, "Failure responding to request") + return } return @@ -15457,6 +15606,7 @@ func (client BaseClient) ReportApplicationHealth(ctx context.Context, applicatio result, err = client.ReportApplicationHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportApplicationHealth", resp, "Failure responding to request") + return } return @@ -15574,6 +15724,7 @@ func (client BaseClient) ReportClusterHealth(ctx context.Context, healthInformat result, err = client.ReportClusterHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportClusterHealth", resp, "Failure responding to request") + return } return @@ -15693,6 +15844,7 @@ func (client BaseClient) ReportDeployedApplicationHealth(ctx context.Context, no result, err = client.ReportDeployedApplicationHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedApplicationHealth", resp, "Failure responding to request") + return } return @@ -15819,6 +15971,7 @@ func (client BaseClient) ReportDeployedServicePackageHealth(ctx context.Context, result, err = client.ReportDeployedServicePackageHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedServicePackageHealth", resp, "Failure responding to request") + return } return @@ -15939,6 +16092,7 @@ func (client BaseClient) ReportNodeHealth(ctx context.Context, nodeName string, result, err = client.ReportNodeHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportNodeHealth", resp, "Failure responding to request") + return } return @@ -16057,6 +16211,7 @@ func (client BaseClient) ReportPartitionHealth(ctx context.Context, partitionID result, err = client.ReportPartitionHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportPartitionHealth", resp, "Failure responding to request") + return } return @@ -16178,6 +16333,7 @@ func (client BaseClient) ReportReplicaHealth(ctx context.Context, partitionID uu result, err = client.ReportReplicaHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportReplicaHealth", resp, "Failure responding to request") + return } return @@ -16302,6 +16458,7 @@ func (client BaseClient) ReportServiceHealth(ctx context.Context, serviceID stri result, err = client.ReportServiceHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportServiceHealth", resp, "Failure responding to request") + return } return @@ -16397,6 +16554,7 @@ func (client BaseClient) ResetPartitionLoad(ctx context.Context, partitionID uui result, err = client.ResetPartitionLoadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResetPartitionLoad", resp, "Failure responding to request") + return } return @@ -16501,6 +16659,7 @@ func (client BaseClient) ResolveService(ctx context.Context, serviceID string, p result, err = client.ResolveServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResolveService", resp, "Failure responding to request") + return } return @@ -16611,6 +16770,7 @@ func (client BaseClient) RestartDeployedCodePackage(ctx context.Context, nodeNam result, err = client.RestartDeployedCodePackageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartDeployedCodePackage", resp, "Failure responding to request") + return } return @@ -16706,6 +16866,7 @@ func (client BaseClient) RestartNode(ctx context.Context, nodeName string, resta result, err = client.RestartNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartNode", resp, "Failure responding to request") + return } return @@ -16800,6 +16961,7 @@ func (client BaseClient) RestartReplica(ctx context.Context, nodeName string, pa result, err = client.RestartReplicaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartReplica", resp, "Failure responding to request") + return } return @@ -16904,6 +17066,7 @@ func (client BaseClient) RestorePartition(ctx context.Context, partitionID uuid. result, err = client.RestorePartitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestorePartition", resp, "Failure responding to request") + return } return @@ -17004,6 +17167,7 @@ func (client BaseClient) ResumeApplicationBackup(ctx context.Context, applicatio result, err = client.ResumeApplicationBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeApplicationBackup", resp, "Failure responding to request") + return } return @@ -17101,6 +17265,7 @@ func (client BaseClient) ResumeApplicationUpgrade(ctx context.Context, applicati result, err = client.ResumeApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -17194,6 +17359,7 @@ func (client BaseClient) ResumeClusterUpgrade(ctx context.Context, resumeCluster result, err = client.ResumeClusterUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeClusterUpgrade", resp, "Failure responding to request") + return } return @@ -17281,6 +17447,7 @@ func (client BaseClient) ResumePartitionBackup(ctx context.Context, partitionID result, err = client.ResumePartitionBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumePartitionBackup", resp, "Failure responding to request") + return } return @@ -17374,6 +17541,7 @@ func (client BaseClient) ResumeServiceBackup(ctx context.Context, serviceID stri result, err = client.ResumeServiceBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeServiceBackup", resp, "Failure responding to request") + return } return @@ -17469,6 +17637,7 @@ func (client BaseClient) RollbackApplicationUpgrade(ctx context.Context, applica result, err = client.RollbackApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -17556,6 +17725,7 @@ func (client BaseClient) RollbackClusterUpgrade(ctx context.Context, timeout *in result, err = client.RollbackClusterUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackClusterUpgrade", resp, "Failure responding to request") + return } return @@ -17641,6 +17811,7 @@ func (client BaseClient) SetUpgradeOrchestrationServiceState(ctx context.Context result, err = client.SetUpgradeOrchestrationServiceStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SetUpgradeOrchestrationServiceState", resp, "Failure responding to request") + return } return @@ -17738,6 +17909,7 @@ func (client BaseClient) StartApplicationUpgrade(ctx context.Context, applicatio result, err = client.StartApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -17849,6 +18021,7 @@ func (client BaseClient) StartChaos(ctx context.Context, chaosParameters ChaosPa result, err = client.StartChaosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartChaos", resp, "Failure responding to request") + return } return @@ -17938,6 +18111,7 @@ func (client BaseClient) StartClusterConfigurationUpgrade(ctx context.Context, c result, err = client.StartClusterConfigurationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartClusterConfigurationUpgrade", resp, "Failure responding to request") + return } return @@ -18036,6 +18210,7 @@ func (client BaseClient) StartClusterUpgrade(ctx context.Context, startClusterUp result, err = client.StartClusterUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartClusterUpgrade", resp, "Failure responding to request") + return } return @@ -18127,6 +18302,7 @@ func (client BaseClient) StartComposeDeploymentUpgrade(ctx context.Context, depl result, err = client.StartComposeDeploymentUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartComposeDeploymentUpgrade", resp, "Failure responding to request") + return } return @@ -18241,6 +18417,7 @@ func (client BaseClient) StartDataLoss(ctx context.Context, serviceID string, pa result, err = client.StartDataLossResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartDataLoss", resp, "Failure responding to request") + return } return @@ -18345,6 +18522,7 @@ func (client BaseClient) StartNodeTransition(ctx context.Context, nodeName strin result, err = client.StartNodeTransitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartNodeTransition", resp, "Failure responding to request") + return } return @@ -18449,6 +18627,7 @@ func (client BaseClient) StartPartitionRestart(ctx context.Context, serviceID st result, err = client.StartPartitionRestartResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartPartitionRestart", resp, "Failure responding to request") + return } return @@ -18558,6 +18737,7 @@ func (client BaseClient) StartQuorumLoss(ctx context.Context, serviceID string, result, err = client.StartQuorumLossResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartQuorumLoss", resp, "Failure responding to request") + return } return @@ -18652,6 +18832,7 @@ func (client BaseClient) StopChaos(ctx context.Context, timeout *int64) (result result, err = client.StopChaosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StopChaos", resp, "Failure responding to request") + return } return @@ -18737,6 +18918,7 @@ func (client BaseClient) SubmitPropertyBatch(ctx context.Context, nameID string, result, err = client.SubmitPropertyBatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SubmitPropertyBatch", resp, "Failure responding to request") + return } return @@ -18834,6 +19016,7 @@ func (client BaseClient) SuspendApplicationBackup(ctx context.Context, applicati result, err = client.SuspendApplicationBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SuspendApplicationBackup", resp, "Failure responding to request") + return } return @@ -18923,6 +19106,7 @@ func (client BaseClient) SuspendPartitionBackup(ctx context.Context, partitionID result, err = client.SuspendPartitionBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SuspendPartitionBackup", resp, "Failure responding to request") + return } return @@ -19017,6 +19201,7 @@ func (client BaseClient) SuspendServiceBackup(ctx context.Context, serviceID str result, err = client.SuspendServiceBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SuspendServiceBackup", resp, "Failure responding to request") + return } return @@ -19111,6 +19296,7 @@ func (client BaseClient) UnprovisionApplicationType(ctx context.Context, applica result, err = client.UnprovisionApplicationTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionApplicationType", resp, "Failure responding to request") + return } return @@ -19202,6 +19388,7 @@ func (client BaseClient) UnprovisionCluster(ctx context.Context, unprovisionFabr result, err = client.UnprovisionClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionCluster", resp, "Failure responding to request") + return } return @@ -19297,6 +19484,7 @@ func (client BaseClient) UpdateApplicationUpgrade(ctx context.Context, applicati result, err = client.UpdateApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -19397,6 +19585,7 @@ func (client BaseClient) UpdateBackupPolicy(ctx context.Context, backupPolicyDes result, err = client.UpdateBackupPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateBackupPolicy", resp, "Failure responding to request") + return } return @@ -19498,6 +19687,7 @@ func (client BaseClient) UpdateClusterUpgrade(ctx context.Context, updateCluster result, err = client.UpdateClusterUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateClusterUpgrade", resp, "Failure responding to request") + return } return @@ -19580,6 +19770,7 @@ func (client BaseClient) UpdateRepairExecutionState(ctx context.Context, repairT result, err = client.UpdateRepairExecutionStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateRepairExecutionState", resp, "Failure responding to request") + return } return @@ -19657,6 +19848,7 @@ func (client BaseClient) UpdateRepairTaskHealthPolicy(ctx context.Context, repai result, err = client.UpdateRepairTaskHealthPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateRepairTaskHealthPolicy", resp, "Failure responding to request") + return } return @@ -19749,6 +19941,7 @@ func (client BaseClient) UpdateService(ctx context.Context, serviceID string, se result, err = client.UpdateServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateService", resp, "Failure responding to request") + return } return @@ -19845,6 +20038,7 @@ func (client BaseClient) UploadFile(ctx context.Context, contentPath string, tim result, err = client.UploadFileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UploadFile", resp, "Failure responding to request") + return } return @@ -19945,6 +20139,7 @@ func (client BaseClient) UploadFileChunk(ctx context.Context, contentPath string result, err = client.UploadFileChunkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UploadFileChunk", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/6.3/servicefabric/client.go b/services/servicefabric/6.3/servicefabric/client.go index 8647efabfd11..abc1e1f0096c 100644 --- a/services/servicefabric/6.3/servicefabric/client.go +++ b/services/servicefabric/6.3/servicefabric/client.go @@ -109,6 +109,7 @@ func (client BaseClient) BackupPartition(ctx context.Context, partitionID uuid.U result, err = client.BackupPartitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "BackupPartition", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client BaseClient) CancelOperation(ctx context.Context, operationID uuid.U result, err = client.CancelOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelOperation", resp, "Failure responding to request") + return } return @@ -305,6 +307,7 @@ func (client BaseClient) CancelRepairTask(ctx context.Context, repairTaskCancelD result, err = client.CancelRepairTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelRepairTask", resp, "Failure responding to request") + return } return @@ -390,6 +393,7 @@ func (client BaseClient) CommitImageStoreUploadSession(ctx context.Context, sess result, err = client.CommitImageStoreUploadSessionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CommitImageStoreUploadSession", resp, "Failure responding to request") + return } return @@ -479,6 +483,7 @@ func (client BaseClient) CopyImageStoreContent(ctx context.Context, imageStoreCo result, err = client.CopyImageStoreContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CopyImageStoreContent", resp, "Failure responding to request") + return } return @@ -575,6 +580,7 @@ func (client BaseClient) CreateApplication(ctx context.Context, applicationDescr result, err = client.CreateApplicationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateApplication", resp, "Failure responding to request") + return } return @@ -658,6 +664,7 @@ func (client BaseClient) CreateApplicationResource(ctx context.Context, applicat result, err = client.CreateApplicationResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateApplicationResource", resp, "Failure responding to request") + return } return @@ -753,6 +760,7 @@ func (client BaseClient) CreateBackupPolicy(ctx context.Context, backupPolicyDes result, err = client.CreateBackupPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateBackupPolicy", resp, "Failure responding to request") + return } return @@ -844,6 +852,7 @@ func (client BaseClient) CreateComposeDeployment(ctx context.Context, createComp result, err = client.CreateComposeDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateComposeDeployment", resp, "Failure responding to request") + return } return @@ -932,6 +941,7 @@ func (client BaseClient) CreateName(ctx context.Context, nameDescription NameDes result, err = client.CreateNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateName", resp, "Failure responding to request") + return } return @@ -1023,6 +1033,7 @@ func (client BaseClient) CreateRepairTask(ctx context.Context, repairTask Repair result, err = client.CreateRepairTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateRepairTask", resp, "Failure responding to request") + return } return @@ -1116,6 +1127,7 @@ func (client BaseClient) CreateService(ctx context.Context, applicationID string result, err = client.CreateServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateService", resp, "Failure responding to request") + return } return @@ -1218,6 +1230,7 @@ func (client BaseClient) CreateServiceFromTemplate(ctx context.Context, applicat result, err = client.CreateServiceFromTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateServiceFromTemplate", resp, "Failure responding to request") + return } return @@ -1311,6 +1324,7 @@ func (client BaseClient) CreateVolumeResource(ctx context.Context, volumeResourc result, err = client.CreateVolumeResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateVolumeResource", resp, "Failure responding to request") + return } return @@ -1407,6 +1421,7 @@ func (client BaseClient) DeleteApplication(ctx context.Context, applicationID st result, err = client.DeleteApplicationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteApplication", resp, "Failure responding to request") + return } return @@ -1486,6 +1501,7 @@ func (client BaseClient) DeleteApplicationResource(ctx context.Context, applicat result, err = client.DeleteApplicationResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteApplicationResource", resp, "Failure responding to request") + return } return @@ -1571,6 +1587,7 @@ func (client BaseClient) DeleteBackupPolicy(ctx context.Context, backupPolicyNam result, err = client.DeleteBackupPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteBackupPolicy", resp, "Failure responding to request") + return } return @@ -1660,6 +1677,7 @@ func (client BaseClient) DeleteImageStoreContent(ctx context.Context, contentPat result, err = client.DeleteImageStoreContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteImageStoreContent", resp, "Failure responding to request") + return } return @@ -1750,6 +1768,7 @@ func (client BaseClient) DeleteImageStoreUploadSession(ctx context.Context, sess result, err = client.DeleteImageStoreUploadSessionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteImageStoreUploadSession", resp, "Failure responding to request") + return } return @@ -1836,6 +1855,7 @@ func (client BaseClient) DeleteName(ctx context.Context, nameID string, timeout result, err = client.DeleteNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteName", resp, "Failure responding to request") + return } return @@ -1926,6 +1946,7 @@ func (client BaseClient) DeleteProperty(ctx context.Context, nameID string, prop result, err = client.DeletePropertyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteProperty", resp, "Failure responding to request") + return } return @@ -2009,6 +2030,7 @@ func (client BaseClient) DeleteRepairTask(ctx context.Context, repairTaskDeleteD result, err = client.DeleteRepairTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteRepairTask", resp, "Failure responding to request") + return } return @@ -2100,6 +2122,7 @@ func (client BaseClient) DeleteService(ctx context.Context, serviceID string, fo result, err = client.DeleteServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteService", resp, "Failure responding to request") + return } return @@ -2179,6 +2202,7 @@ func (client BaseClient) DeleteVolumeResource(ctx context.Context, volumeResourc result, err = client.DeleteVolumeResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteVolumeResource", resp, "Failure responding to request") + return } return @@ -2272,6 +2296,7 @@ func (client BaseClient) DeployServicePackageToNode(ctx context.Context, nodeNam result, err = client.DeployServicePackageToNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeployServicePackageToNode", resp, "Failure responding to request") + return } return @@ -2366,6 +2391,7 @@ func (client BaseClient) DisableApplicationBackup(ctx context.Context, applicati result, err = client.DisableApplicationBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableApplicationBackup", resp, "Failure responding to request") + return } return @@ -2460,6 +2486,7 @@ func (client BaseClient) DisableNode(ctx context.Context, nodeName string, deact result, err = client.DisableNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableNode", resp, "Failure responding to request") + return } return @@ -2553,6 +2580,7 @@ func (client BaseClient) DisablePartitionBackup(ctx context.Context, partitionID result, err = client.DisablePartitionBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisablePartitionBackup", resp, "Failure responding to request") + return } return @@ -2648,6 +2676,7 @@ func (client BaseClient) DisableServiceBackup(ctx context.Context, serviceID str result, err = client.DisableServiceBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableServiceBackup", resp, "Failure responding to request") + return } return @@ -2745,6 +2774,7 @@ func (client BaseClient) EnableApplicationBackup(ctx context.Context, applicatio result, err = client.EnableApplicationBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableApplicationBackup", resp, "Failure responding to request") + return } return @@ -2837,6 +2867,7 @@ func (client BaseClient) EnableNode(ctx context.Context, nodeName string, timeou result, err = client.EnableNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableNode", resp, "Failure responding to request") + return } return @@ -2932,6 +2963,7 @@ func (client BaseClient) EnablePartitionBackup(ctx context.Context, partitionID result, err = client.EnablePartitionBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnablePartitionBackup", resp, "Failure responding to request") + return } return @@ -3034,6 +3066,7 @@ func (client BaseClient) EnableServiceBackup(ctx context.Context, serviceID stri result, err = client.EnableServiceBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableServiceBackup", resp, "Failure responding to request") + return } return @@ -3119,6 +3152,7 @@ func (client BaseClient) ForceApproveRepairTask(ctx context.Context, repairTaskA result, err = client.ForceApproveRepairTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ForceApproveRepairTask", resp, "Failure responding to request") + return } return @@ -3202,6 +3236,7 @@ func (client BaseClient) GetAadMetadata(ctx context.Context, timeout *int64) (re result, err = client.GetAadMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetAadMetadata", resp, "Failure responding to request") + return } return @@ -3301,6 +3336,7 @@ func (client BaseClient) GetAllEntitiesBackedUpByPolicy(ctx context.Context, bac result, err = client.GetAllEntitiesBackedUpByPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetAllEntitiesBackedUpByPolicy", resp, "Failure responding to request") + return } return @@ -3416,6 +3452,7 @@ func (client BaseClient) GetApplicationBackupConfigurationInfo(ctx context.Conte result, err = client.GetApplicationBackupConfigurationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationBackupConfigurationInfo", resp, "Failure responding to request") + return } return @@ -3541,6 +3578,7 @@ func (client BaseClient) GetApplicationBackupList(ctx context.Context, applicati result, err = client.GetApplicationBackupListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationBackupList", resp, "Failure responding to request") + return } return @@ -3661,6 +3699,7 @@ func (client BaseClient) GetApplicationEventList(ctx context.Context, applicatio result, err = client.GetApplicationEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationEventList", resp, "Failure responding to request") + return } return @@ -3819,6 +3858,7 @@ func (client BaseClient) GetApplicationHealth(ctx context.Context, applicationID result, err = client.GetApplicationHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealth", resp, "Failure responding to request") + return } return @@ -3991,6 +4031,7 @@ func (client BaseClient) GetApplicationHealthUsingPolicy(ctx context.Context, ap result, err = client.GetApplicationHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -4113,6 +4154,7 @@ func (client BaseClient) GetApplicationInfo(ctx context.Context, applicationID s result, err = client.GetApplicationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfo", resp, "Failure responding to request") + return } return @@ -4234,6 +4276,7 @@ func (client BaseClient) GetApplicationInfoList(ctx context.Context, application result, err = client.GetApplicationInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfoList", resp, "Failure responding to request") + return } return @@ -4347,6 +4390,7 @@ func (client BaseClient) GetApplicationLoadInfo(ctx context.Context, application result, err = client.GetApplicationLoadInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationLoadInfo", resp, "Failure responding to request") + return } return @@ -4437,6 +4481,7 @@ func (client BaseClient) GetApplicationManifest(ctx context.Context, application result, err = client.GetApplicationManifestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationManifest", resp, "Failure responding to request") + return } return @@ -4532,6 +4577,7 @@ func (client BaseClient) GetApplicationNameInfo(ctx context.Context, serviceID s result, err = client.GetApplicationNameInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationNameInfo", resp, "Failure responding to request") + return } return @@ -4610,6 +4656,7 @@ func (client BaseClient) GetApplicationResource(ctx context.Context, application result, err = client.GetApplicationResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationResource", resp, "Failure responding to request") + return } return @@ -4701,6 +4748,7 @@ func (client BaseClient) GetApplicationsEventList(ctx context.Context, startTime result, err = client.GetApplicationsEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationsEventList", resp, "Failure responding to request") + return } return @@ -4825,6 +4873,7 @@ func (client BaseClient) GetApplicationTypeInfoList(ctx context.Context, applica result, err = client.GetApplicationTypeInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoList", resp, "Failure responding to request") + return } return @@ -4953,6 +5002,7 @@ func (client BaseClient) GetApplicationTypeInfoListByName(ctx context.Context, a result, err = client.GetApplicationTypeInfoListByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoListByName", resp, "Failure responding to request") + return } return @@ -5063,6 +5113,7 @@ func (client BaseClient) GetApplicationUpgrade(ctx context.Context, applicationI result, err = client.GetApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -5152,6 +5203,7 @@ func (client BaseClient) GetBackupPolicyByName(ctx context.Context, backupPolicy result, err = client.GetBackupPolicyByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetBackupPolicyByName", resp, "Failure responding to request") + return } return @@ -5253,6 +5305,7 @@ func (client BaseClient) GetBackupPolicyList(ctx context.Context, continuationTo result, err = client.GetBackupPolicyListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetBackupPolicyList", resp, "Failure responding to request") + return } return @@ -5364,6 +5417,7 @@ func (client BaseClient) GetBackupsFromBackupLocation(ctx context.Context, getBa result, err = client.GetBackupsFromBackupLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetBackupsFromBackupLocation", resp, "Failure responding to request") + return } return @@ -5459,6 +5513,7 @@ func (client BaseClient) GetChaos(ctx context.Context, timeout *int64) (result C result, err = client.GetChaosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaos", resp, "Failure responding to request") + return } return @@ -5568,6 +5623,7 @@ func (client BaseClient) GetChaosEvents(ctx context.Context, continuationToken s result, err = client.GetChaosEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaosEvents", resp, "Failure responding to request") + return } return @@ -5667,6 +5723,7 @@ func (client BaseClient) GetChaosSchedule(ctx context.Context, timeout *int64) ( result, err = client.GetChaosScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaosSchedule", resp, "Failure responding to request") + return } return @@ -5754,6 +5811,7 @@ func (client BaseClient) GetClusterConfiguration(ctx context.Context, configurat result, err = client.GetClusterConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterConfiguration", resp, "Failure responding to request") + return } return @@ -5840,6 +5898,7 @@ func (client BaseClient) GetClusterConfigurationUpgradeStatus(ctx context.Contex result, err = client.GetClusterConfigurationUpgradeStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterConfigurationUpgradeStatus", resp, "Failure responding to request") + return } return @@ -5932,6 +5991,7 @@ func (client BaseClient) GetClusterEventList(ctx context.Context, startTimeUtc s result, err = client.GetClusterEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterEventList", resp, "Failure responding to request") + return } return @@ -6091,6 +6151,7 @@ func (client BaseClient) GetClusterHealth(ctx context.Context, nodesHealthStateF result, err = client.GetClusterHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealth", resp, "Failure responding to request") + return } return @@ -6203,6 +6264,7 @@ func (client BaseClient) GetClusterHealthChunk(ctx context.Context, timeout *int result, err = client.GetClusterHealthChunkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunk", resp, "Failure responding to request") + return } return @@ -6309,6 +6371,7 @@ func (client BaseClient) GetClusterHealthChunkUsingPolicyAndAdvancedFilters(ctx result, err = client.GetClusterHealthChunkUsingPolicyAndAdvancedFiltersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunkUsingPolicyAndAdvancedFilters", resp, "Failure responding to request") + return } return @@ -6471,6 +6534,7 @@ func (client BaseClient) GetClusterHealthUsingPolicy(ctx context.Context, nodesH result, err = client.GetClusterHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -6595,6 +6659,7 @@ func (client BaseClient) GetClusterManifest(ctx context.Context, timeout *int64) result, err = client.GetClusterManifestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterManifest", resp, "Failure responding to request") + return } return @@ -6680,6 +6745,7 @@ func (client BaseClient) GetClusterUpgradeProgress(ctx context.Context, timeout result, err = client.GetClusterUpgradeProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterUpgradeProgress", resp, "Failure responding to request") + return } return @@ -6767,6 +6833,7 @@ func (client BaseClient) GetComposeDeploymentStatus(ctx context.Context, deploym result, err = client.GetComposeDeploymentStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentStatus", resp, "Failure responding to request") + return } return @@ -6871,6 +6938,7 @@ func (client BaseClient) GetComposeDeploymentStatusList(ctx context.Context, con result, err = client.GetComposeDeploymentStatusListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentStatusList", resp, "Failure responding to request") + return } return @@ -6965,6 +7033,7 @@ func (client BaseClient) GetComposeDeploymentUpgradeProgress(ctx context.Context result, err = client.GetComposeDeploymentUpgradeProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentUpgradeProgress", resp, "Failure responding to request") + return } return @@ -7066,6 +7135,7 @@ func (client BaseClient) GetContainerLogsDeployedOnNode(ctx context.Context, nod result, err = client.GetContainerLogsDeployedOnNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetContainerLogsDeployedOnNode", resp, "Failure responding to request") + return } return @@ -7173,6 +7243,7 @@ func (client BaseClient) GetContainersEventList(ctx context.Context, startTimeUt result, err = client.GetContainersEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetContainersEventList", resp, "Failure responding to request") + return } return @@ -7269,6 +7340,7 @@ func (client BaseClient) GetCorrelatedEventList(ctx context.Context, eventInstan result, err = client.GetCorrelatedEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetCorrelatedEventList", resp, "Failure responding to request") + return } return @@ -7365,6 +7437,7 @@ func (client BaseClient) GetDataLossProgress(ctx context.Context, serviceID stri result, err = client.GetDataLossProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDataLossProgress", resp, "Failure responding to request") + return } return @@ -7500,6 +7573,7 @@ func (client BaseClient) GetDeployedApplicationHealth(ctx context.Context, nodeN result, err = client.GetDeployedApplicationHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealth", resp, "Failure responding to request") + return } return @@ -7656,6 +7730,7 @@ func (client BaseClient) GetDeployedApplicationHealthUsingPolicy(ctx context.Con result, err = client.GetDeployedApplicationHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -7779,6 +7854,7 @@ func (client BaseClient) GetDeployedApplicationInfo(ctx context.Context, nodeNam result, err = client.GetDeployedApplicationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfo", resp, "Failure responding to request") + return } return @@ -7896,6 +7972,7 @@ func (client BaseClient) GetDeployedApplicationInfoList(ctx context.Context, nod result, err = client.GetDeployedApplicationInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfoList", resp, "Failure responding to request") + return } return @@ -8008,6 +8085,7 @@ func (client BaseClient) GetDeployedCodePackageInfoList(ctx context.Context, nod result, err = client.GetDeployedCodePackageInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedCodePackageInfoList", resp, "Failure responding to request") + return } return @@ -8127,6 +8205,7 @@ func (client BaseClient) GetDeployedServicePackageHealth(ctx context.Context, no result, err = client.GetDeployedServicePackageHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealth", resp, "Failure responding to request") + return } return @@ -8253,6 +8332,7 @@ func (client BaseClient) GetDeployedServicePackageHealthUsingPolicy(ctx context. result, err = client.GetDeployedServicePackageHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -8360,6 +8440,7 @@ func (client BaseClient) GetDeployedServicePackageInfoList(ctx context.Context, result, err = client.GetDeployedServicePackageInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoList", resp, "Failure responding to request") + return } return @@ -8458,6 +8539,7 @@ func (client BaseClient) GetDeployedServicePackageInfoListByName(ctx context.Con result, err = client.GetDeployedServicePackageInfoListByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoListByName", resp, "Failure responding to request") + return } return @@ -8553,6 +8635,7 @@ func (client BaseClient) GetDeployedServiceReplicaDetailInfo(ctx context.Context result, err = client.GetDeployedServiceReplicaDetailInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfo", resp, "Failure responding to request") + return } return @@ -8647,6 +8730,7 @@ func (client BaseClient) GetDeployedServiceReplicaDetailInfoByPartitionID(ctx co result, err = client.GetDeployedServiceReplicaDetailInfoByPartitionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfoByPartitionID", resp, "Failure responding to request") + return } return @@ -8748,6 +8832,7 @@ func (client BaseClient) GetDeployedServiceReplicaInfoList(ctx context.Context, result, err = client.GetDeployedServiceReplicaInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaInfoList", resp, "Failure responding to request") + return } return @@ -8856,6 +8941,7 @@ func (client BaseClient) GetDeployedServiceTypeInfoByName(ctx context.Context, n result, err = client.GetDeployedServiceTypeInfoByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoByName", resp, "Failure responding to request") + return } return @@ -8960,6 +9046,7 @@ func (client BaseClient) GetDeployedServiceTypeInfoList(ctx context.Context, nod result, err = client.GetDeployedServiceTypeInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoList", resp, "Failure responding to request") + return } return @@ -9068,6 +9155,7 @@ func (client BaseClient) GetFaultOperationList(ctx context.Context, typeFilter i result, err = client.GetFaultOperationListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetFaultOperationList", resp, "Failure responding to request") + return } return @@ -9156,6 +9244,7 @@ func (client BaseClient) GetImageStoreContent(ctx context.Context, contentPath s result, err = client.GetImageStoreContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreContent", resp, "Failure responding to request") + return } return @@ -9244,6 +9333,7 @@ func (client BaseClient) GetImageStoreRootContent(ctx context.Context, timeout * result, err = client.GetImageStoreRootContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreRootContent", resp, "Failure responding to request") + return } return @@ -9331,6 +9421,7 @@ func (client BaseClient) GetImageStoreUploadSessionByID(ctx context.Context, ses result, err = client.GetImageStoreUploadSessionByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreUploadSessionByID", resp, "Failure responding to request") + return } return @@ -9418,6 +9509,7 @@ func (client BaseClient) GetImageStoreUploadSessionByPath(ctx context.Context, c result, err = client.GetImageStoreUploadSessionByPathResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreUploadSessionByPath", resp, "Failure responding to request") + return } return @@ -9507,6 +9599,7 @@ func (client BaseClient) GetNameExistsInfo(ctx context.Context, nameID string, t result, err = client.GetNameExistsInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNameExistsInfo", resp, "Failure responding to request") + return } return @@ -9603,6 +9696,7 @@ func (client BaseClient) GetNodeEventList(ctx context.Context, nodeName string, result, err = client.GetNodeEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeEventList", resp, "Failure responding to request") + return } return @@ -9720,6 +9814,7 @@ func (client BaseClient) GetNodeHealth(ctx context.Context, nodeName string, eve result, err = client.GetNodeHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealth", resp, "Failure responding to request") + return } return @@ -9834,6 +9929,7 @@ func (client BaseClient) GetNodeHealthUsingPolicy(ctx context.Context, nodeName result, err = client.GetNodeHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -9933,6 +10029,7 @@ func (client BaseClient) GetNodeInfo(ctx context.Context, nodeName string, timeo result, err = client.GetNodeInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfo", resp, "Failure responding to request") + return } return @@ -10036,6 +10133,7 @@ func (client BaseClient) GetNodeInfoList(ctx context.Context, continuationToken result, err = client.GetNodeInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfoList", resp, "Failure responding to request") + return } return @@ -10135,6 +10233,7 @@ func (client BaseClient) GetNodeLoadInfo(ctx context.Context, nodeName string, t result, err = client.GetNodeLoadInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeLoadInfo", resp, "Failure responding to request") + return } return @@ -10231,6 +10330,7 @@ func (client BaseClient) GetNodesEventList(ctx context.Context, startTimeUtc str result, err = client.GetNodesEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodesEventList", resp, "Failure responding to request") + return } return @@ -10330,6 +10430,7 @@ func (client BaseClient) GetNodeTransitionProgress(ctx context.Context, nodeName result, err = client.GetNodeTransitionProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeTransitionProgress", resp, "Failure responding to request") + return } return @@ -10421,6 +10522,7 @@ func (client BaseClient) GetPartitionBackupConfigurationInfo(ctx context.Context result, err = client.GetPartitionBackupConfigurationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionBackupConfigurationInfo", resp, "Failure responding to request") + return } return @@ -10520,6 +10622,7 @@ func (client BaseClient) GetPartitionBackupList(ctx context.Context, partitionID result, err = client.GetPartitionBackupListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionBackupList", resp, "Failure responding to request") + return } return @@ -10621,6 +10724,7 @@ func (client BaseClient) GetPartitionBackupProgress(ctx context.Context, partiti result, err = client.GetPartitionBackupProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionBackupProgress", resp, "Failure responding to request") + return } return @@ -10718,6 +10822,7 @@ func (client BaseClient) GetPartitionEventList(ctx context.Context, partitionID result, err = client.GetPartitionEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionEventList", resp, "Failure responding to request") + return } return @@ -10854,6 +10959,7 @@ func (client BaseClient) GetPartitionHealth(ctx context.Context, partitionID uui result, err = client.GetPartitionHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealth", resp, "Failure responding to request") + return } return @@ -11003,6 +11109,7 @@ func (client BaseClient) GetPartitionHealthUsingPolicy(ctx context.Context, part result, err = client.GetPartitionHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -11114,6 +11221,7 @@ func (client BaseClient) GetPartitionInfo(ctx context.Context, partitionID uuid. result, err = client.GetPartitionInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfo", resp, "Failure responding to request") + return } return @@ -11213,6 +11321,7 @@ func (client BaseClient) GetPartitionInfoList(ctx context.Context, serviceID str result, err = client.GetPartitionInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfoList", resp, "Failure responding to request") + return } return @@ -11307,6 +11416,7 @@ func (client BaseClient) GetPartitionLoadInformation(ctx context.Context, partit result, err = client.GetPartitionLoadInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionLoadInformation", resp, "Failure responding to request") + return } return @@ -11405,6 +11515,7 @@ func (client BaseClient) GetPartitionReplicaEventList(ctx context.Context, parti result, err = client.GetPartitionReplicaEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionReplicaEventList", resp, "Failure responding to request") + return } return @@ -11514,6 +11625,7 @@ func (client BaseClient) GetPartitionReplicasEventList(ctx context.Context, part result, err = client.GetPartitionReplicasEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionReplicasEventList", resp, "Failure responding to request") + return } return @@ -11622,6 +11734,7 @@ func (client BaseClient) GetPartitionRestartProgress(ctx context.Context, servic result, err = client.GetPartitionRestartProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionRestartProgress", resp, "Failure responding to request") + return } return @@ -11714,6 +11827,7 @@ func (client BaseClient) GetPartitionRestoreProgress(ctx context.Context, partit result, err = client.GetPartitionRestoreProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionRestoreProgress", resp, "Failure responding to request") + return } return @@ -11810,6 +11924,7 @@ func (client BaseClient) GetPartitionsEventList(ctx context.Context, startTimeUt result, err = client.GetPartitionsEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionsEventList", resp, "Failure responding to request") + return } return @@ -11908,6 +12023,7 @@ func (client BaseClient) GetPropertyInfo(ctx context.Context, nameID string, pro result, err = client.GetPropertyInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPropertyInfo", resp, "Failure responding to request") + return } return @@ -12007,6 +12123,7 @@ func (client BaseClient) GetPropertyInfoList(ctx context.Context, nameID string, result, err = client.GetPropertyInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPropertyInfoList", resp, "Failure responding to request") + return } return @@ -12106,6 +12223,7 @@ func (client BaseClient) GetProvisionedFabricCodeVersionInfoList(ctx context.Con result, err = client.GetProvisionedFabricCodeVersionInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricCodeVersionInfoList", resp, "Failure responding to request") + return } return @@ -12196,6 +12314,7 @@ func (client BaseClient) GetProvisionedFabricConfigVersionInfoList(ctx context.C result, err = client.GetProvisionedFabricConfigVersionInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricConfigVersionInfoList", resp, "Failure responding to request") + return } return @@ -12292,6 +12411,7 @@ func (client BaseClient) GetQuorumLossProgress(ctx context.Context, serviceID st result, err = client.GetQuorumLossProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetQuorumLossProgress", resp, "Failure responding to request") + return } return @@ -12382,6 +12502,7 @@ func (client BaseClient) GetRepairTaskList(ctx context.Context, taskIDFilter str result, err = client.GetRepairTaskListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetRepairTaskList", resp, "Failure responding to request") + return } return @@ -12462,6 +12583,7 @@ func (client BaseClient) GetReplica(ctx context.Context, applicationResourceName result, err = client.GetReplicaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplica", resp, "Failure responding to request") + return } return @@ -12566,6 +12688,7 @@ func (client BaseClient) GetReplicaHealth(ctx context.Context, partitionID uuid. result, err = client.GetReplicaHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealth", resp, "Failure responding to request") + return } return @@ -12687,6 +12810,7 @@ func (client BaseClient) GetReplicaHealthUsingPolicy(ctx context.Context, partit result, err = client.GetReplicaHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -12789,6 +12913,7 @@ func (client BaseClient) GetReplicaInfo(ctx context.Context, partitionID uuid.UU result, err = client.GetReplicaInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfo", resp, "Failure responding to request") + return } return @@ -12885,6 +13010,7 @@ func (client BaseClient) GetReplicaInfoList(ctx context.Context, partitionID uui result, err = client.GetReplicaInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfoList", resp, "Failure responding to request") + return } return @@ -12967,6 +13093,7 @@ func (client BaseClient) GetReplicas(ctx context.Context, applicationResourceNam result, err = client.GetReplicasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicas", resp, "Failure responding to request") + return } return @@ -13041,6 +13168,7 @@ func (client BaseClient) GetService(ctx context.Context, applicationResourceName result, err = client.GetServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetService", resp, "Failure responding to request") + return } return @@ -13144,6 +13272,7 @@ func (client BaseClient) GetServiceBackupConfigurationInfo(ctx context.Context, result, err = client.GetServiceBackupConfigurationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceBackupConfigurationInfo", resp, "Failure responding to request") + return } return @@ -13269,6 +13398,7 @@ func (client BaseClient) GetServiceBackupList(ctx context.Context, serviceID str result, err = client.GetServiceBackupListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceBackupList", resp, "Failure responding to request") + return } return @@ -13382,6 +13512,7 @@ func (client BaseClient) GetServiceDescription(ctx context.Context, serviceID st result, err = client.GetServiceDescriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceDescription", resp, "Failure responding to request") + return } return @@ -13483,6 +13614,7 @@ func (client BaseClient) GetServiceEventList(ctx context.Context, serviceID stri result, err = client.GetServiceEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceEventList", resp, "Failure responding to request") + return } return @@ -13626,6 +13758,7 @@ func (client BaseClient) GetServiceHealth(ctx context.Context, serviceID string, result, err = client.GetServiceHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealth", resp, "Failure responding to request") + return } return @@ -13780,6 +13913,7 @@ func (client BaseClient) GetServiceHealthUsingPolicy(ctx context.Context, servic result, err = client.GetServiceHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -13899,6 +14033,7 @@ func (client BaseClient) GetServiceInfo(ctx context.Context, applicationID strin result, err = client.GetServiceInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfo", resp, "Failure responding to request") + return } return @@ -14000,6 +14135,7 @@ func (client BaseClient) GetServiceInfoList(ctx context.Context, applicationID s result, err = client.GetServiceInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfoList", resp, "Failure responding to request") + return } return @@ -14099,6 +14235,7 @@ func (client BaseClient) GetServiceManifest(ctx context.Context, applicationType result, err = client.GetServiceManifestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceManifest", resp, "Failure responding to request") + return } return @@ -14191,6 +14328,7 @@ func (client BaseClient) GetServiceNameInfo(ctx context.Context, partitionID uui result, err = client.GetServiceNameInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceNameInfo", resp, "Failure responding to request") + return } return @@ -14268,6 +14406,7 @@ func (client BaseClient) GetServices(ctx context.Context, applicationResourceNam result, err = client.GetServicesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServices", resp, "Failure responding to request") + return } return @@ -14359,6 +14498,7 @@ func (client BaseClient) GetServicesEventList(ctx context.Context, startTimeUtc result, err = client.GetServicesEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServicesEventList", resp, "Failure responding to request") + return } return @@ -14459,6 +14599,7 @@ func (client BaseClient) GetServiceTypeInfoByName(ctx context.Context, applicati result, err = client.GetServiceTypeInfoByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceTypeInfoByName", resp, "Failure responding to request") + return } return @@ -14553,6 +14694,7 @@ func (client BaseClient) GetServiceTypeInfoList(ctx context.Context, application result, err = client.GetServiceTypeInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceTypeInfoList", resp, "Failure responding to request") + return } return @@ -14651,6 +14793,7 @@ func (client BaseClient) GetSubNameInfoList(ctx context.Context, nameID string, result, err = client.GetSubNameInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetSubNameInfoList", resp, "Failure responding to request") + return } return @@ -14748,6 +14891,7 @@ func (client BaseClient) GetUpgradeOrchestrationServiceState(ctx context.Context result, err = client.GetUpgradeOrchestrationServiceStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetUpgradeOrchestrationServiceState", resp, "Failure responding to request") + return } return @@ -14822,6 +14966,7 @@ func (client BaseClient) GetVolumeResource(ctx context.Context, volumeResourceNa result, err = client.GetVolumeResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetVolumeResource", resp, "Failure responding to request") + return } return @@ -14920,6 +15065,7 @@ func (client BaseClient) InvokeContainerAPI(ctx context.Context, nodeName string result, err = client.InvokeContainerAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeContainerAPI", resp, "Failure responding to request") + return } return @@ -15025,6 +15171,7 @@ func (client BaseClient) InvokeInfrastructureCommand(ctx context.Context, comman result, err = client.InvokeInfrastructureCommandResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureCommand", resp, "Failure responding to request") + return } return @@ -15124,6 +15271,7 @@ func (client BaseClient) InvokeInfrastructureQuery(ctx context.Context, command result, err = client.InvokeInfrastructureQueryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureQuery", resp, "Failure responding to request") + return } return @@ -15220,6 +15368,7 @@ func (client BaseClient) PostChaosSchedule(ctx context.Context, chaosSchedule Ch result, err = client.PostChaosScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "PostChaosSchedule", resp, "Failure responding to request") + return } return @@ -15312,6 +15461,7 @@ func (client BaseClient) ProvisionApplicationType(ctx context.Context, provision result, err = client.ProvisionApplicationTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionApplicationType", resp, "Failure responding to request") + return } return @@ -15398,6 +15548,7 @@ func (client BaseClient) ProvisionCluster(ctx context.Context, provisionFabricDe result, err = client.ProvisionClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionCluster", resp, "Failure responding to request") + return } return @@ -15488,6 +15639,7 @@ func (client BaseClient) PutProperty(ctx context.Context, nameID string, propert result, err = client.PutPropertyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "PutProperty", resp, "Failure responding to request") + return } return @@ -15578,6 +15730,7 @@ func (client BaseClient) RecoverAllPartitions(ctx context.Context, timeout *int6 result, err = client.RecoverAllPartitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverAllPartitions", resp, "Failure responding to request") + return } return @@ -15663,6 +15816,7 @@ func (client BaseClient) RecoverPartition(ctx context.Context, partitionID uuid. result, err = client.RecoverPartitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverPartition", resp, "Failure responding to request") + return } return @@ -15757,6 +15911,7 @@ func (client BaseClient) RecoverServicePartitions(ctx context.Context, serviceID result, err = client.RecoverServicePartitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverServicePartitions", resp, "Failure responding to request") + return } return @@ -15846,6 +16001,7 @@ func (client BaseClient) RecoverSystemPartitions(ctx context.Context, timeout *i result, err = client.RecoverSystemPartitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverSystemPartitions", resp, "Failure responding to request") + return } return @@ -15930,6 +16086,7 @@ func (client BaseClient) RemoveComposeDeployment(ctx context.Context, deployment result, err = client.RemoveComposeDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveComposeDeployment", resp, "Failure responding to request") + return } return @@ -16022,6 +16179,7 @@ func (client BaseClient) RemoveNodeState(ctx context.Context, nodeName string, t result, err = client.RemoveNodeStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveNodeState", resp, "Failure responding to request") + return } return @@ -16120,6 +16278,7 @@ func (client BaseClient) RemoveReplica(ctx context.Context, nodeName string, par result, err = client.RemoveReplicaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveReplica", resp, "Failure responding to request") + return } return @@ -16240,6 +16399,7 @@ func (client BaseClient) ReportApplicationHealth(ctx context.Context, applicatio result, err = client.ReportApplicationHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportApplicationHealth", resp, "Failure responding to request") + return } return @@ -16357,6 +16517,7 @@ func (client BaseClient) ReportClusterHealth(ctx context.Context, healthInformat result, err = client.ReportClusterHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportClusterHealth", resp, "Failure responding to request") + return } return @@ -16476,6 +16637,7 @@ func (client BaseClient) ReportDeployedApplicationHealth(ctx context.Context, no result, err = client.ReportDeployedApplicationHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedApplicationHealth", resp, "Failure responding to request") + return } return @@ -16602,6 +16764,7 @@ func (client BaseClient) ReportDeployedServicePackageHealth(ctx context.Context, result, err = client.ReportDeployedServicePackageHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedServicePackageHealth", resp, "Failure responding to request") + return } return @@ -16722,6 +16885,7 @@ func (client BaseClient) ReportNodeHealth(ctx context.Context, nodeName string, result, err = client.ReportNodeHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportNodeHealth", resp, "Failure responding to request") + return } return @@ -16840,6 +17004,7 @@ func (client BaseClient) ReportPartitionHealth(ctx context.Context, partitionID result, err = client.ReportPartitionHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportPartitionHealth", resp, "Failure responding to request") + return } return @@ -16961,6 +17126,7 @@ func (client BaseClient) ReportReplicaHealth(ctx context.Context, partitionID uu result, err = client.ReportReplicaHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportReplicaHealth", resp, "Failure responding to request") + return } return @@ -17085,6 +17251,7 @@ func (client BaseClient) ReportServiceHealth(ctx context.Context, serviceID stri result, err = client.ReportServiceHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportServiceHealth", resp, "Failure responding to request") + return } return @@ -17180,6 +17347,7 @@ func (client BaseClient) ResetPartitionLoad(ctx context.Context, partitionID uui result, err = client.ResetPartitionLoadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResetPartitionLoad", resp, "Failure responding to request") + return } return @@ -17284,6 +17452,7 @@ func (client BaseClient) ResolveService(ctx context.Context, serviceID string, p result, err = client.ResolveServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResolveService", resp, "Failure responding to request") + return } return @@ -17394,6 +17563,7 @@ func (client BaseClient) RestartDeployedCodePackage(ctx context.Context, nodeNam result, err = client.RestartDeployedCodePackageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartDeployedCodePackage", resp, "Failure responding to request") + return } return @@ -17489,6 +17659,7 @@ func (client BaseClient) RestartNode(ctx context.Context, nodeName string, resta result, err = client.RestartNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartNode", resp, "Failure responding to request") + return } return @@ -17583,6 +17754,7 @@ func (client BaseClient) RestartReplica(ctx context.Context, nodeName string, pa result, err = client.RestartReplicaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartReplica", resp, "Failure responding to request") + return } return @@ -17687,6 +17859,7 @@ func (client BaseClient) RestorePartition(ctx context.Context, partitionID uuid. result, err = client.RestorePartitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestorePartition", resp, "Failure responding to request") + return } return @@ -17787,6 +17960,7 @@ func (client BaseClient) ResumeApplicationBackup(ctx context.Context, applicatio result, err = client.ResumeApplicationBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeApplicationBackup", resp, "Failure responding to request") + return } return @@ -17884,6 +18058,7 @@ func (client BaseClient) ResumeApplicationUpgrade(ctx context.Context, applicati result, err = client.ResumeApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -17977,6 +18152,7 @@ func (client BaseClient) ResumeClusterUpgrade(ctx context.Context, resumeCluster result, err = client.ResumeClusterUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeClusterUpgrade", resp, "Failure responding to request") + return } return @@ -18064,6 +18240,7 @@ func (client BaseClient) ResumePartitionBackup(ctx context.Context, partitionID result, err = client.ResumePartitionBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumePartitionBackup", resp, "Failure responding to request") + return } return @@ -18157,6 +18334,7 @@ func (client BaseClient) ResumeServiceBackup(ctx context.Context, serviceID stri result, err = client.ResumeServiceBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeServiceBackup", resp, "Failure responding to request") + return } return @@ -18252,6 +18430,7 @@ func (client BaseClient) RollbackApplicationUpgrade(ctx context.Context, applica result, err = client.RollbackApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -18339,6 +18518,7 @@ func (client BaseClient) RollbackClusterUpgrade(ctx context.Context, timeout *in result, err = client.RollbackClusterUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackClusterUpgrade", resp, "Failure responding to request") + return } return @@ -18424,6 +18604,7 @@ func (client BaseClient) SetUpgradeOrchestrationServiceState(ctx context.Context result, err = client.SetUpgradeOrchestrationServiceStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SetUpgradeOrchestrationServiceState", resp, "Failure responding to request") + return } return @@ -18521,6 +18702,7 @@ func (client BaseClient) StartApplicationUpgrade(ctx context.Context, applicatio result, err = client.StartApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -18632,6 +18814,7 @@ func (client BaseClient) StartChaos(ctx context.Context, chaosParameters ChaosPa result, err = client.StartChaosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartChaos", resp, "Failure responding to request") + return } return @@ -18721,6 +18904,7 @@ func (client BaseClient) StartClusterConfigurationUpgrade(ctx context.Context, c result, err = client.StartClusterConfigurationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartClusterConfigurationUpgrade", resp, "Failure responding to request") + return } return @@ -18819,6 +19003,7 @@ func (client BaseClient) StartClusterUpgrade(ctx context.Context, startClusterUp result, err = client.StartClusterUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartClusterUpgrade", resp, "Failure responding to request") + return } return @@ -18910,6 +19095,7 @@ func (client BaseClient) StartComposeDeploymentUpgrade(ctx context.Context, depl result, err = client.StartComposeDeploymentUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartComposeDeploymentUpgrade", resp, "Failure responding to request") + return } return @@ -19025,6 +19211,7 @@ func (client BaseClient) StartDataLoss(ctx context.Context, serviceID string, pa result, err = client.StartDataLossResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartDataLoss", resp, "Failure responding to request") + return } return @@ -19129,6 +19316,7 @@ func (client BaseClient) StartNodeTransition(ctx context.Context, nodeName strin result, err = client.StartNodeTransitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartNodeTransition", resp, "Failure responding to request") + return } return @@ -19233,6 +19421,7 @@ func (client BaseClient) StartPartitionRestart(ctx context.Context, serviceID st result, err = client.StartPartitionRestartResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartPartitionRestart", resp, "Failure responding to request") + return } return @@ -19341,6 +19530,7 @@ func (client BaseClient) StartQuorumLoss(ctx context.Context, serviceID string, result, err = client.StartQuorumLossResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartQuorumLoss", resp, "Failure responding to request") + return } return @@ -19435,6 +19625,7 @@ func (client BaseClient) StopChaos(ctx context.Context, timeout *int64) (result result, err = client.StopChaosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StopChaos", resp, "Failure responding to request") + return } return @@ -19520,6 +19711,7 @@ func (client BaseClient) SubmitPropertyBatch(ctx context.Context, nameID string, result, err = client.SubmitPropertyBatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SubmitPropertyBatch", resp, "Failure responding to request") + return } return @@ -19617,6 +19809,7 @@ func (client BaseClient) SuspendApplicationBackup(ctx context.Context, applicati result, err = client.SuspendApplicationBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SuspendApplicationBackup", resp, "Failure responding to request") + return } return @@ -19706,6 +19899,7 @@ func (client BaseClient) SuspendPartitionBackup(ctx context.Context, partitionID result, err = client.SuspendPartitionBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SuspendPartitionBackup", resp, "Failure responding to request") + return } return @@ -19800,6 +19994,7 @@ func (client BaseClient) SuspendServiceBackup(ctx context.Context, serviceID str result, err = client.SuspendServiceBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SuspendServiceBackup", resp, "Failure responding to request") + return } return @@ -19894,6 +20089,7 @@ func (client BaseClient) UnprovisionApplicationType(ctx context.Context, applica result, err = client.UnprovisionApplicationTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionApplicationType", resp, "Failure responding to request") + return } return @@ -19984,6 +20180,7 @@ func (client BaseClient) UnprovisionCluster(ctx context.Context, unprovisionFabr result, err = client.UnprovisionClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionCluster", resp, "Failure responding to request") + return } return @@ -20079,6 +20276,7 @@ func (client BaseClient) UpdateApplicationUpgrade(ctx context.Context, applicati result, err = client.UpdateApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -20179,6 +20377,7 @@ func (client BaseClient) UpdateBackupPolicy(ctx context.Context, backupPolicyDes result, err = client.UpdateBackupPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateBackupPolicy", resp, "Failure responding to request") + return } return @@ -20280,6 +20479,7 @@ func (client BaseClient) UpdateClusterUpgrade(ctx context.Context, updateCluster result, err = client.UpdateClusterUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateClusterUpgrade", resp, "Failure responding to request") + return } return @@ -20362,6 +20562,7 @@ func (client BaseClient) UpdateRepairExecutionState(ctx context.Context, repairT result, err = client.UpdateRepairExecutionStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateRepairExecutionState", resp, "Failure responding to request") + return } return @@ -20439,6 +20640,7 @@ func (client BaseClient) UpdateRepairTaskHealthPolicy(ctx context.Context, repai result, err = client.UpdateRepairTaskHealthPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateRepairTaskHealthPolicy", resp, "Failure responding to request") + return } return @@ -20531,6 +20733,7 @@ func (client BaseClient) UpdateService(ctx context.Context, serviceID string, se result, err = client.UpdateServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateService", resp, "Failure responding to request") + return } return @@ -20627,6 +20830,7 @@ func (client BaseClient) UploadFile(ctx context.Context, contentPath string, tim result, err = client.UploadFileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UploadFile", resp, "Failure responding to request") + return } return @@ -20727,6 +20931,7 @@ func (client BaseClient) UploadFileChunk(ctx context.Context, contentPath string result, err = client.UploadFileChunkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UploadFileChunk", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/6.4/servicefabric/client.go b/services/servicefabric/6.4/servicefabric/client.go index 4ab9e746867a..77ad091452dd 100644 --- a/services/servicefabric/6.4/servicefabric/client.go +++ b/services/servicefabric/6.4/servicefabric/client.go @@ -109,6 +109,7 @@ func (client BaseClient) BackupPartition(ctx context.Context, partitionID uuid.U result, err = client.BackupPartitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "BackupPartition", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client BaseClient) CancelOperation(ctx context.Context, operationID uuid.U result, err = client.CancelOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelOperation", resp, "Failure responding to request") + return } return @@ -305,6 +307,7 @@ func (client BaseClient) CancelRepairTask(ctx context.Context, repairTaskCancelD result, err = client.CancelRepairTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelRepairTask", resp, "Failure responding to request") + return } return @@ -390,6 +393,7 @@ func (client BaseClient) CommitImageStoreUploadSession(ctx context.Context, sess result, err = client.CommitImageStoreUploadSessionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CommitImageStoreUploadSession", resp, "Failure responding to request") + return } return @@ -479,6 +483,7 @@ func (client BaseClient) CopyImageStoreContent(ctx context.Context, imageStoreCo result, err = client.CopyImageStoreContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CopyImageStoreContent", resp, "Failure responding to request") + return } return @@ -575,6 +580,7 @@ func (client BaseClient) CreateApplication(ctx context.Context, applicationDescr result, err = client.CreateApplicationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateApplication", resp, "Failure responding to request") + return } return @@ -671,6 +677,7 @@ func (client BaseClient) CreateBackupPolicy(ctx context.Context, backupPolicyDes result, err = client.CreateBackupPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateBackupPolicy", resp, "Failure responding to request") + return } return @@ -762,6 +769,7 @@ func (client BaseClient) CreateComposeDeployment(ctx context.Context, createComp result, err = client.CreateComposeDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateComposeDeployment", resp, "Failure responding to request") + return } return @@ -850,6 +858,7 @@ func (client BaseClient) CreateName(ctx context.Context, nameDescription NameDes result, err = client.CreateNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateName", resp, "Failure responding to request") + return } return @@ -941,6 +950,7 @@ func (client BaseClient) CreateRepairTask(ctx context.Context, repairTask Repair result, err = client.CreateRepairTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateRepairTask", resp, "Failure responding to request") + return } return @@ -1034,6 +1044,7 @@ func (client BaseClient) CreateService(ctx context.Context, applicationID string result, err = client.CreateServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateService", resp, "Failure responding to request") + return } return @@ -1136,6 +1147,7 @@ func (client BaseClient) CreateServiceFromTemplate(ctx context.Context, applicat result, err = client.CreateServiceFromTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateServiceFromTemplate", resp, "Failure responding to request") + return } return @@ -1237,6 +1249,7 @@ func (client BaseClient) DeleteApplication(ctx context.Context, applicationID st result, err = client.DeleteApplicationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteApplication", resp, "Failure responding to request") + return } return @@ -1330,6 +1343,7 @@ func (client BaseClient) DeleteBackupPolicy(ctx context.Context, backupPolicyNam result, err = client.DeleteBackupPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteBackupPolicy", resp, "Failure responding to request") + return } return @@ -1419,6 +1433,7 @@ func (client BaseClient) DeleteImageStoreContent(ctx context.Context, contentPat result, err = client.DeleteImageStoreContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteImageStoreContent", resp, "Failure responding to request") + return } return @@ -1509,6 +1524,7 @@ func (client BaseClient) DeleteImageStoreUploadSession(ctx context.Context, sess result, err = client.DeleteImageStoreUploadSessionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteImageStoreUploadSession", resp, "Failure responding to request") + return } return @@ -1595,6 +1611,7 @@ func (client BaseClient) DeleteName(ctx context.Context, nameID string, timeout result, err = client.DeleteNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteName", resp, "Failure responding to request") + return } return @@ -1685,6 +1702,7 @@ func (client BaseClient) DeleteProperty(ctx context.Context, nameID string, prop result, err = client.DeletePropertyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteProperty", resp, "Failure responding to request") + return } return @@ -1768,6 +1786,7 @@ func (client BaseClient) DeleteRepairTask(ctx context.Context, repairTaskDeleteD result, err = client.DeleteRepairTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteRepairTask", resp, "Failure responding to request") + return } return @@ -1859,6 +1878,7 @@ func (client BaseClient) DeleteService(ctx context.Context, serviceID string, fo result, err = client.DeleteServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteService", resp, "Failure responding to request") + return } return @@ -1960,6 +1980,7 @@ func (client BaseClient) DeployServicePackageToNode(ctx context.Context, nodeNam result, err = client.DeployServicePackageToNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeployServicePackageToNode", resp, "Failure responding to request") + return } return @@ -2058,6 +2079,7 @@ func (client BaseClient) DisableApplicationBackup(ctx context.Context, applicati result, err = client.DisableApplicationBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableApplicationBackup", resp, "Failure responding to request") + return } return @@ -2157,6 +2179,7 @@ func (client BaseClient) DisableNode(ctx context.Context, nodeName string, deact result, err = client.DisableNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableNode", resp, "Failure responding to request") + return } return @@ -2254,6 +2277,7 @@ func (client BaseClient) DisablePartitionBackup(ctx context.Context, partitionID result, err = client.DisablePartitionBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisablePartitionBackup", resp, "Failure responding to request") + return } return @@ -2358,6 +2382,7 @@ func (client BaseClient) DisableServiceBackup(ctx context.Context, serviceID str result, err = client.DisableServiceBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableServiceBackup", resp, "Failure responding to request") + return } return @@ -2460,6 +2485,7 @@ func (client BaseClient) EnableApplicationBackup(ctx context.Context, applicatio result, err = client.EnableApplicationBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableApplicationBackup", resp, "Failure responding to request") + return } return @@ -2552,6 +2578,7 @@ func (client BaseClient) EnableNode(ctx context.Context, nodeName string, timeou result, err = client.EnableNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableNode", resp, "Failure responding to request") + return } return @@ -2647,6 +2674,7 @@ func (client BaseClient) EnablePartitionBackup(ctx context.Context, partitionID result, err = client.EnablePartitionBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnablePartitionBackup", resp, "Failure responding to request") + return } return @@ -2749,6 +2777,7 @@ func (client BaseClient) EnableServiceBackup(ctx context.Context, serviceID stri result, err = client.EnableServiceBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableServiceBackup", resp, "Failure responding to request") + return } return @@ -2834,6 +2863,7 @@ func (client BaseClient) ForceApproveRepairTask(ctx context.Context, repairTaskA result, err = client.ForceApproveRepairTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ForceApproveRepairTask", resp, "Failure responding to request") + return } return @@ -2917,6 +2947,7 @@ func (client BaseClient) GetAadMetadata(ctx context.Context, timeout *int64) (re result, err = client.GetAadMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetAadMetadata", resp, "Failure responding to request") + return } return @@ -3016,6 +3047,7 @@ func (client BaseClient) GetAllEntitiesBackedUpByPolicy(ctx context.Context, bac result, err = client.GetAllEntitiesBackedUpByPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetAllEntitiesBackedUpByPolicy", resp, "Failure responding to request") + return } return @@ -3131,6 +3163,7 @@ func (client BaseClient) GetApplicationBackupConfigurationInfo(ctx context.Conte result, err = client.GetApplicationBackupConfigurationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationBackupConfigurationInfo", resp, "Failure responding to request") + return } return @@ -3256,6 +3289,7 @@ func (client BaseClient) GetApplicationBackupList(ctx context.Context, applicati result, err = client.GetApplicationBackupListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationBackupList", resp, "Failure responding to request") + return } return @@ -3376,6 +3410,7 @@ func (client BaseClient) GetApplicationEventList(ctx context.Context, applicatio result, err = client.GetApplicationEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationEventList", resp, "Failure responding to request") + return } return @@ -3534,6 +3569,7 @@ func (client BaseClient) GetApplicationHealth(ctx context.Context, applicationID result, err = client.GetApplicationHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealth", resp, "Failure responding to request") + return } return @@ -3706,6 +3742,7 @@ func (client BaseClient) GetApplicationHealthUsingPolicy(ctx context.Context, ap result, err = client.GetApplicationHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -3828,6 +3865,7 @@ func (client BaseClient) GetApplicationInfo(ctx context.Context, applicationID s result, err = client.GetApplicationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfo", resp, "Failure responding to request") + return } return @@ -3949,6 +3987,7 @@ func (client BaseClient) GetApplicationInfoList(ctx context.Context, application result, err = client.GetApplicationInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfoList", resp, "Failure responding to request") + return } return @@ -4062,6 +4101,7 @@ func (client BaseClient) GetApplicationLoadInfo(ctx context.Context, application result, err = client.GetApplicationLoadInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationLoadInfo", resp, "Failure responding to request") + return } return @@ -4152,6 +4192,7 @@ func (client BaseClient) GetApplicationManifest(ctx context.Context, application result, err = client.GetApplicationManifestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationManifest", resp, "Failure responding to request") + return } return @@ -4247,6 +4288,7 @@ func (client BaseClient) GetApplicationNameInfo(ctx context.Context, serviceID s result, err = client.GetApplicationNameInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationNameInfo", resp, "Failure responding to request") + return } return @@ -4343,6 +4385,7 @@ func (client BaseClient) GetApplicationsEventList(ctx context.Context, startTime result, err = client.GetApplicationsEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationsEventList", resp, "Failure responding to request") + return } return @@ -4467,6 +4510,7 @@ func (client BaseClient) GetApplicationTypeInfoList(ctx context.Context, applica result, err = client.GetApplicationTypeInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoList", resp, "Failure responding to request") + return } return @@ -4595,6 +4639,7 @@ func (client BaseClient) GetApplicationTypeInfoListByName(ctx context.Context, a result, err = client.GetApplicationTypeInfoListByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoListByName", resp, "Failure responding to request") + return } return @@ -4705,6 +4750,7 @@ func (client BaseClient) GetApplicationUpgrade(ctx context.Context, applicationI result, err = client.GetApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -4794,6 +4840,7 @@ func (client BaseClient) GetBackupPolicyByName(ctx context.Context, backupPolicy result, err = client.GetBackupPolicyByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetBackupPolicyByName", resp, "Failure responding to request") + return } return @@ -4895,6 +4942,7 @@ func (client BaseClient) GetBackupPolicyList(ctx context.Context, continuationTo result, err = client.GetBackupPolicyListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetBackupPolicyList", resp, "Failure responding to request") + return } return @@ -5006,6 +5054,7 @@ func (client BaseClient) GetBackupsFromBackupLocation(ctx context.Context, getBa result, err = client.GetBackupsFromBackupLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetBackupsFromBackupLocation", resp, "Failure responding to request") + return } return @@ -5101,6 +5150,7 @@ func (client BaseClient) GetChaos(ctx context.Context, timeout *int64) (result C result, err = client.GetChaosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaos", resp, "Failure responding to request") + return } return @@ -5210,6 +5260,7 @@ func (client BaseClient) GetChaosEvents(ctx context.Context, continuationToken s result, err = client.GetChaosEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaosEvents", resp, "Failure responding to request") + return } return @@ -5309,6 +5360,7 @@ func (client BaseClient) GetChaosSchedule(ctx context.Context, timeout *int64) ( result, err = client.GetChaosScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaosSchedule", resp, "Failure responding to request") + return } return @@ -5396,6 +5448,7 @@ func (client BaseClient) GetClusterConfiguration(ctx context.Context, configurat result, err = client.GetClusterConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterConfiguration", resp, "Failure responding to request") + return } return @@ -5482,6 +5535,7 @@ func (client BaseClient) GetClusterConfigurationUpgradeStatus(ctx context.Contex result, err = client.GetClusterConfigurationUpgradeStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterConfigurationUpgradeStatus", resp, "Failure responding to request") + return } return @@ -5574,6 +5628,7 @@ func (client BaseClient) GetClusterEventList(ctx context.Context, startTimeUtc s result, err = client.GetClusterEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterEventList", resp, "Failure responding to request") + return } return @@ -5733,6 +5788,7 @@ func (client BaseClient) GetClusterHealth(ctx context.Context, nodesHealthStateF result, err = client.GetClusterHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealth", resp, "Failure responding to request") + return } return @@ -5845,6 +5901,7 @@ func (client BaseClient) GetClusterHealthChunk(ctx context.Context, timeout *int result, err = client.GetClusterHealthChunkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunk", resp, "Failure responding to request") + return } return @@ -5951,6 +6008,7 @@ func (client BaseClient) GetClusterHealthChunkUsingPolicyAndAdvancedFilters(ctx result, err = client.GetClusterHealthChunkUsingPolicyAndAdvancedFiltersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunkUsingPolicyAndAdvancedFilters", resp, "Failure responding to request") + return } return @@ -6113,6 +6171,7 @@ func (client BaseClient) GetClusterHealthUsingPolicy(ctx context.Context, nodesH result, err = client.GetClusterHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -6237,6 +6296,7 @@ func (client BaseClient) GetClusterManifest(ctx context.Context, timeout *int64) result, err = client.GetClusterManifestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterManifest", resp, "Failure responding to request") + return } return @@ -6322,6 +6382,7 @@ func (client BaseClient) GetClusterUpgradeProgress(ctx context.Context, timeout result, err = client.GetClusterUpgradeProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterUpgradeProgress", resp, "Failure responding to request") + return } return @@ -6407,6 +6468,7 @@ func (client BaseClient) GetClusterVersion(ctx context.Context, timeout *int64) result, err = client.GetClusterVersionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterVersion", resp, "Failure responding to request") + return } return @@ -6494,6 +6556,7 @@ func (client BaseClient) GetComposeDeploymentStatus(ctx context.Context, deploym result, err = client.GetComposeDeploymentStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentStatus", resp, "Failure responding to request") + return } return @@ -6598,6 +6661,7 @@ func (client BaseClient) GetComposeDeploymentStatusList(ctx context.Context, con result, err = client.GetComposeDeploymentStatusListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentStatusList", resp, "Failure responding to request") + return } return @@ -6692,6 +6756,7 @@ func (client BaseClient) GetComposeDeploymentUpgradeProgress(ctx context.Context result, err = client.GetComposeDeploymentUpgradeProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentUpgradeProgress", resp, "Failure responding to request") + return } return @@ -6793,6 +6858,7 @@ func (client BaseClient) GetContainerLogsDeployedOnNode(ctx context.Context, nod result, err = client.GetContainerLogsDeployedOnNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetContainerLogsDeployedOnNode", resp, "Failure responding to request") + return } return @@ -6900,6 +6966,7 @@ func (client BaseClient) GetContainersEventList(ctx context.Context, startTimeUt result, err = client.GetContainersEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetContainersEventList", resp, "Failure responding to request") + return } return @@ -6996,6 +7063,7 @@ func (client BaseClient) GetCorrelatedEventList(ctx context.Context, eventInstan result, err = client.GetCorrelatedEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetCorrelatedEventList", resp, "Failure responding to request") + return } return @@ -7092,6 +7160,7 @@ func (client BaseClient) GetDataLossProgress(ctx context.Context, serviceID stri result, err = client.GetDataLossProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDataLossProgress", resp, "Failure responding to request") + return } return @@ -7227,6 +7296,7 @@ func (client BaseClient) GetDeployedApplicationHealth(ctx context.Context, nodeN result, err = client.GetDeployedApplicationHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealth", resp, "Failure responding to request") + return } return @@ -7383,6 +7453,7 @@ func (client BaseClient) GetDeployedApplicationHealthUsingPolicy(ctx context.Con result, err = client.GetDeployedApplicationHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -7506,6 +7577,7 @@ func (client BaseClient) GetDeployedApplicationInfo(ctx context.Context, nodeNam result, err = client.GetDeployedApplicationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfo", resp, "Failure responding to request") + return } return @@ -7623,6 +7695,7 @@ func (client BaseClient) GetDeployedApplicationInfoList(ctx context.Context, nod result, err = client.GetDeployedApplicationInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfoList", resp, "Failure responding to request") + return } return @@ -7735,6 +7808,7 @@ func (client BaseClient) GetDeployedCodePackageInfoList(ctx context.Context, nod result, err = client.GetDeployedCodePackageInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedCodePackageInfoList", resp, "Failure responding to request") + return } return @@ -7854,6 +7928,7 @@ func (client BaseClient) GetDeployedServicePackageHealth(ctx context.Context, no result, err = client.GetDeployedServicePackageHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealth", resp, "Failure responding to request") + return } return @@ -7980,6 +8055,7 @@ func (client BaseClient) GetDeployedServicePackageHealthUsingPolicy(ctx context. result, err = client.GetDeployedServicePackageHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -8087,6 +8163,7 @@ func (client BaseClient) GetDeployedServicePackageInfoList(ctx context.Context, result, err = client.GetDeployedServicePackageInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoList", resp, "Failure responding to request") + return } return @@ -8185,6 +8262,7 @@ func (client BaseClient) GetDeployedServicePackageInfoListByName(ctx context.Con result, err = client.GetDeployedServicePackageInfoListByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoListByName", resp, "Failure responding to request") + return } return @@ -8280,6 +8358,7 @@ func (client BaseClient) GetDeployedServiceReplicaDetailInfo(ctx context.Context result, err = client.GetDeployedServiceReplicaDetailInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfo", resp, "Failure responding to request") + return } return @@ -8374,6 +8453,7 @@ func (client BaseClient) GetDeployedServiceReplicaDetailInfoByPartitionID(ctx co result, err = client.GetDeployedServiceReplicaDetailInfoByPartitionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfoByPartitionID", resp, "Failure responding to request") + return } return @@ -8475,6 +8555,7 @@ func (client BaseClient) GetDeployedServiceReplicaInfoList(ctx context.Context, result, err = client.GetDeployedServiceReplicaInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaInfoList", resp, "Failure responding to request") + return } return @@ -8583,6 +8664,7 @@ func (client BaseClient) GetDeployedServiceTypeInfoByName(ctx context.Context, n result, err = client.GetDeployedServiceTypeInfoByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoByName", resp, "Failure responding to request") + return } return @@ -8687,6 +8769,7 @@ func (client BaseClient) GetDeployedServiceTypeInfoList(ctx context.Context, nod result, err = client.GetDeployedServiceTypeInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoList", resp, "Failure responding to request") + return } return @@ -8795,6 +8878,7 @@ func (client BaseClient) GetFaultOperationList(ctx context.Context, typeFilter i result, err = client.GetFaultOperationListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetFaultOperationList", resp, "Failure responding to request") + return } return @@ -8883,6 +8967,7 @@ func (client BaseClient) GetImageStoreContent(ctx context.Context, contentPath s result, err = client.GetImageStoreContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreContent", resp, "Failure responding to request") + return } return @@ -8971,6 +9056,7 @@ func (client BaseClient) GetImageStoreRootContent(ctx context.Context, timeout * result, err = client.GetImageStoreRootContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreRootContent", resp, "Failure responding to request") + return } return @@ -9058,6 +9144,7 @@ func (client BaseClient) GetImageStoreUploadSessionByID(ctx context.Context, ses result, err = client.GetImageStoreUploadSessionByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreUploadSessionByID", resp, "Failure responding to request") + return } return @@ -9145,6 +9232,7 @@ func (client BaseClient) GetImageStoreUploadSessionByPath(ctx context.Context, c result, err = client.GetImageStoreUploadSessionByPathResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreUploadSessionByPath", resp, "Failure responding to request") + return } return @@ -9234,6 +9322,7 @@ func (client BaseClient) GetNameExistsInfo(ctx context.Context, nameID string, t result, err = client.GetNameExistsInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNameExistsInfo", resp, "Failure responding to request") + return } return @@ -9330,6 +9419,7 @@ func (client BaseClient) GetNodeEventList(ctx context.Context, nodeName string, result, err = client.GetNodeEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeEventList", resp, "Failure responding to request") + return } return @@ -9447,6 +9537,7 @@ func (client BaseClient) GetNodeHealth(ctx context.Context, nodeName string, eve result, err = client.GetNodeHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealth", resp, "Failure responding to request") + return } return @@ -9561,6 +9652,7 @@ func (client BaseClient) GetNodeHealthUsingPolicy(ctx context.Context, nodeName result, err = client.GetNodeHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -9660,6 +9752,7 @@ func (client BaseClient) GetNodeInfo(ctx context.Context, nodeName string, timeo result, err = client.GetNodeInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfo", resp, "Failure responding to request") + return } return @@ -9763,6 +9856,7 @@ func (client BaseClient) GetNodeInfoList(ctx context.Context, continuationToken result, err = client.GetNodeInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfoList", resp, "Failure responding to request") + return } return @@ -9862,6 +9956,7 @@ func (client BaseClient) GetNodeLoadInfo(ctx context.Context, nodeName string, t result, err = client.GetNodeLoadInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeLoadInfo", resp, "Failure responding to request") + return } return @@ -9958,6 +10053,7 @@ func (client BaseClient) GetNodesEventList(ctx context.Context, startTimeUtc str result, err = client.GetNodesEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodesEventList", resp, "Failure responding to request") + return } return @@ -10057,6 +10153,7 @@ func (client BaseClient) GetNodeTransitionProgress(ctx context.Context, nodeName result, err = client.GetNodeTransitionProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeTransitionProgress", resp, "Failure responding to request") + return } return @@ -10148,6 +10245,7 @@ func (client BaseClient) GetPartitionBackupConfigurationInfo(ctx context.Context result, err = client.GetPartitionBackupConfigurationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionBackupConfigurationInfo", resp, "Failure responding to request") + return } return @@ -10247,6 +10345,7 @@ func (client BaseClient) GetPartitionBackupList(ctx context.Context, partitionID result, err = client.GetPartitionBackupListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionBackupList", resp, "Failure responding to request") + return } return @@ -10348,6 +10447,7 @@ func (client BaseClient) GetPartitionBackupProgress(ctx context.Context, partiti result, err = client.GetPartitionBackupProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionBackupProgress", resp, "Failure responding to request") + return } return @@ -10445,6 +10545,7 @@ func (client BaseClient) GetPartitionEventList(ctx context.Context, partitionID result, err = client.GetPartitionEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionEventList", resp, "Failure responding to request") + return } return @@ -10581,6 +10682,7 @@ func (client BaseClient) GetPartitionHealth(ctx context.Context, partitionID uui result, err = client.GetPartitionHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealth", resp, "Failure responding to request") + return } return @@ -10730,6 +10832,7 @@ func (client BaseClient) GetPartitionHealthUsingPolicy(ctx context.Context, part result, err = client.GetPartitionHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -10841,6 +10944,7 @@ func (client BaseClient) GetPartitionInfo(ctx context.Context, partitionID uuid. result, err = client.GetPartitionInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfo", resp, "Failure responding to request") + return } return @@ -10940,6 +11044,7 @@ func (client BaseClient) GetPartitionInfoList(ctx context.Context, serviceID str result, err = client.GetPartitionInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfoList", resp, "Failure responding to request") + return } return @@ -11034,6 +11139,7 @@ func (client BaseClient) GetPartitionLoadInformation(ctx context.Context, partit result, err = client.GetPartitionLoadInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionLoadInformation", resp, "Failure responding to request") + return } return @@ -11132,6 +11238,7 @@ func (client BaseClient) GetPartitionReplicaEventList(ctx context.Context, parti result, err = client.GetPartitionReplicaEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionReplicaEventList", resp, "Failure responding to request") + return } return @@ -11241,6 +11348,7 @@ func (client BaseClient) GetPartitionReplicasEventList(ctx context.Context, part result, err = client.GetPartitionReplicasEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionReplicasEventList", resp, "Failure responding to request") + return } return @@ -11349,6 +11457,7 @@ func (client BaseClient) GetPartitionRestartProgress(ctx context.Context, servic result, err = client.GetPartitionRestartProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionRestartProgress", resp, "Failure responding to request") + return } return @@ -11441,6 +11550,7 @@ func (client BaseClient) GetPartitionRestoreProgress(ctx context.Context, partit result, err = client.GetPartitionRestoreProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionRestoreProgress", resp, "Failure responding to request") + return } return @@ -11537,6 +11647,7 @@ func (client BaseClient) GetPartitionsEventList(ctx context.Context, startTimeUt result, err = client.GetPartitionsEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionsEventList", resp, "Failure responding to request") + return } return @@ -11635,6 +11746,7 @@ func (client BaseClient) GetPropertyInfo(ctx context.Context, nameID string, pro result, err = client.GetPropertyInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPropertyInfo", resp, "Failure responding to request") + return } return @@ -11734,6 +11846,7 @@ func (client BaseClient) GetPropertyInfoList(ctx context.Context, nameID string, result, err = client.GetPropertyInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPropertyInfoList", resp, "Failure responding to request") + return } return @@ -11833,6 +11946,7 @@ func (client BaseClient) GetProvisionedFabricCodeVersionInfoList(ctx context.Con result, err = client.GetProvisionedFabricCodeVersionInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricCodeVersionInfoList", resp, "Failure responding to request") + return } return @@ -11923,6 +12037,7 @@ func (client BaseClient) GetProvisionedFabricConfigVersionInfoList(ctx context.C result, err = client.GetProvisionedFabricConfigVersionInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricConfigVersionInfoList", resp, "Failure responding to request") + return } return @@ -12019,6 +12134,7 @@ func (client BaseClient) GetQuorumLossProgress(ctx context.Context, serviceID st result, err = client.GetQuorumLossProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetQuorumLossProgress", resp, "Failure responding to request") + return } return @@ -12109,6 +12225,7 @@ func (client BaseClient) GetRepairTaskList(ctx context.Context, taskIDFilter str result, err = client.GetRepairTaskListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetRepairTaskList", resp, "Failure responding to request") + return } return @@ -12216,6 +12333,7 @@ func (client BaseClient) GetReplicaHealth(ctx context.Context, partitionID uuid. result, err = client.GetReplicaHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealth", resp, "Failure responding to request") + return } return @@ -12337,6 +12455,7 @@ func (client BaseClient) GetReplicaHealthUsingPolicy(ctx context.Context, partit result, err = client.GetReplicaHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -12439,6 +12558,7 @@ func (client BaseClient) GetReplicaInfo(ctx context.Context, partitionID uuid.UU result, err = client.GetReplicaInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfo", resp, "Failure responding to request") + return } return @@ -12535,6 +12655,7 @@ func (client BaseClient) GetReplicaInfoList(ctx context.Context, partitionID uui result, err = client.GetReplicaInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfoList", resp, "Failure responding to request") + return } return @@ -12645,6 +12766,7 @@ func (client BaseClient) GetServiceBackupConfigurationInfo(ctx context.Context, result, err = client.GetServiceBackupConfigurationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceBackupConfigurationInfo", resp, "Failure responding to request") + return } return @@ -12770,6 +12892,7 @@ func (client BaseClient) GetServiceBackupList(ctx context.Context, serviceID str result, err = client.GetServiceBackupListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceBackupList", resp, "Failure responding to request") + return } return @@ -12883,6 +13006,7 @@ func (client BaseClient) GetServiceDescription(ctx context.Context, serviceID st result, err = client.GetServiceDescriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceDescription", resp, "Failure responding to request") + return } return @@ -12984,6 +13108,7 @@ func (client BaseClient) GetServiceEventList(ctx context.Context, serviceID stri result, err = client.GetServiceEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceEventList", resp, "Failure responding to request") + return } return @@ -13127,6 +13252,7 @@ func (client BaseClient) GetServiceHealth(ctx context.Context, serviceID string, result, err = client.GetServiceHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealth", resp, "Failure responding to request") + return } return @@ -13281,6 +13407,7 @@ func (client BaseClient) GetServiceHealthUsingPolicy(ctx context.Context, servic result, err = client.GetServiceHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -13400,6 +13527,7 @@ func (client BaseClient) GetServiceInfo(ctx context.Context, applicationID strin result, err = client.GetServiceInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfo", resp, "Failure responding to request") + return } return @@ -13501,6 +13629,7 @@ func (client BaseClient) GetServiceInfoList(ctx context.Context, applicationID s result, err = client.GetServiceInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfoList", resp, "Failure responding to request") + return } return @@ -13600,6 +13729,7 @@ func (client BaseClient) GetServiceManifest(ctx context.Context, applicationType result, err = client.GetServiceManifestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceManifest", resp, "Failure responding to request") + return } return @@ -13692,6 +13822,7 @@ func (client BaseClient) GetServiceNameInfo(ctx context.Context, partitionID uui result, err = client.GetServiceNameInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceNameInfo", resp, "Failure responding to request") + return } return @@ -13788,6 +13919,7 @@ func (client BaseClient) GetServicesEventList(ctx context.Context, startTimeUtc result, err = client.GetServicesEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServicesEventList", resp, "Failure responding to request") + return } return @@ -13888,6 +14020,7 @@ func (client BaseClient) GetServiceTypeInfoByName(ctx context.Context, applicati result, err = client.GetServiceTypeInfoByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceTypeInfoByName", resp, "Failure responding to request") + return } return @@ -13982,6 +14115,7 @@ func (client BaseClient) GetServiceTypeInfoList(ctx context.Context, application result, err = client.GetServiceTypeInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceTypeInfoList", resp, "Failure responding to request") + return } return @@ -14080,6 +14214,7 @@ func (client BaseClient) GetSubNameInfoList(ctx context.Context, nameID string, result, err = client.GetSubNameInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetSubNameInfoList", resp, "Failure responding to request") + return } return @@ -14177,6 +14312,7 @@ func (client BaseClient) GetUpgradeOrchestrationServiceState(ctx context.Context result, err = client.GetUpgradeOrchestrationServiceStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetUpgradeOrchestrationServiceState", resp, "Failure responding to request") + return } return @@ -14276,6 +14412,7 @@ func (client BaseClient) InvokeContainerAPI(ctx context.Context, nodeName string result, err = client.InvokeContainerAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeContainerAPI", resp, "Failure responding to request") + return } return @@ -14381,6 +14518,7 @@ func (client BaseClient) InvokeInfrastructureCommand(ctx context.Context, comman result, err = client.InvokeInfrastructureCommandResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureCommand", resp, "Failure responding to request") + return } return @@ -14480,6 +14618,7 @@ func (client BaseClient) InvokeInfrastructureQuery(ctx context.Context, command result, err = client.InvokeInfrastructureQueryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureQuery", resp, "Failure responding to request") + return } return @@ -14576,6 +14715,7 @@ func (client BaseClient) PostChaosSchedule(ctx context.Context, chaosSchedule Ch result, err = client.PostChaosScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "PostChaosSchedule", resp, "Failure responding to request") + return } return @@ -14668,6 +14808,7 @@ func (client BaseClient) ProvisionApplicationType(ctx context.Context, provision result, err = client.ProvisionApplicationTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionApplicationType", resp, "Failure responding to request") + return } return @@ -14754,6 +14895,7 @@ func (client BaseClient) ProvisionCluster(ctx context.Context, provisionFabricDe result, err = client.ProvisionClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionCluster", resp, "Failure responding to request") + return } return @@ -14844,6 +14986,7 @@ func (client BaseClient) PutProperty(ctx context.Context, nameID string, propert result, err = client.PutPropertyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "PutProperty", resp, "Failure responding to request") + return } return @@ -14934,6 +15077,7 @@ func (client BaseClient) RecoverAllPartitions(ctx context.Context, timeout *int6 result, err = client.RecoverAllPartitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverAllPartitions", resp, "Failure responding to request") + return } return @@ -15019,6 +15163,7 @@ func (client BaseClient) RecoverPartition(ctx context.Context, partitionID uuid. result, err = client.RecoverPartitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverPartition", resp, "Failure responding to request") + return } return @@ -15113,6 +15258,7 @@ func (client BaseClient) RecoverServicePartitions(ctx context.Context, serviceID result, err = client.RecoverServicePartitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverServicePartitions", resp, "Failure responding to request") + return } return @@ -15202,6 +15348,7 @@ func (client BaseClient) RecoverSystemPartitions(ctx context.Context, timeout *i result, err = client.RecoverSystemPartitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverSystemPartitions", resp, "Failure responding to request") + return } return @@ -15286,6 +15433,7 @@ func (client BaseClient) RemoveComposeDeployment(ctx context.Context, deployment result, err = client.RemoveComposeDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveComposeDeployment", resp, "Failure responding to request") + return } return @@ -15378,6 +15526,7 @@ func (client BaseClient) RemoveNodeState(ctx context.Context, nodeName string, t result, err = client.RemoveNodeStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveNodeState", resp, "Failure responding to request") + return } return @@ -15476,6 +15625,7 @@ func (client BaseClient) RemoveReplica(ctx context.Context, nodeName string, par result, err = client.RemoveReplicaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveReplica", resp, "Failure responding to request") + return } return @@ -15596,6 +15746,7 @@ func (client BaseClient) ReportApplicationHealth(ctx context.Context, applicatio result, err = client.ReportApplicationHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportApplicationHealth", resp, "Failure responding to request") + return } return @@ -15713,6 +15864,7 @@ func (client BaseClient) ReportClusterHealth(ctx context.Context, healthInformat result, err = client.ReportClusterHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportClusterHealth", resp, "Failure responding to request") + return } return @@ -15832,6 +15984,7 @@ func (client BaseClient) ReportDeployedApplicationHealth(ctx context.Context, no result, err = client.ReportDeployedApplicationHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedApplicationHealth", resp, "Failure responding to request") + return } return @@ -15958,6 +16111,7 @@ func (client BaseClient) ReportDeployedServicePackageHealth(ctx context.Context, result, err = client.ReportDeployedServicePackageHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedServicePackageHealth", resp, "Failure responding to request") + return } return @@ -16078,6 +16232,7 @@ func (client BaseClient) ReportNodeHealth(ctx context.Context, nodeName string, result, err = client.ReportNodeHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportNodeHealth", resp, "Failure responding to request") + return } return @@ -16196,6 +16351,7 @@ func (client BaseClient) ReportPartitionHealth(ctx context.Context, partitionID result, err = client.ReportPartitionHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportPartitionHealth", resp, "Failure responding to request") + return } return @@ -16317,6 +16473,7 @@ func (client BaseClient) ReportReplicaHealth(ctx context.Context, partitionID uu result, err = client.ReportReplicaHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportReplicaHealth", resp, "Failure responding to request") + return } return @@ -16441,6 +16598,7 @@ func (client BaseClient) ReportServiceHealth(ctx context.Context, serviceID stri result, err = client.ReportServiceHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportServiceHealth", resp, "Failure responding to request") + return } return @@ -16536,6 +16694,7 @@ func (client BaseClient) ResetPartitionLoad(ctx context.Context, partitionID uui result, err = client.ResetPartitionLoadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResetPartitionLoad", resp, "Failure responding to request") + return } return @@ -16644,6 +16803,7 @@ func (client BaseClient) ResolveService(ctx context.Context, serviceID string, p result, err = client.ResolveServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResolveService", resp, "Failure responding to request") + return } return @@ -16754,6 +16914,7 @@ func (client BaseClient) RestartDeployedCodePackage(ctx context.Context, nodeNam result, err = client.RestartDeployedCodePackageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartDeployedCodePackage", resp, "Failure responding to request") + return } return @@ -16849,6 +17010,7 @@ func (client BaseClient) RestartNode(ctx context.Context, nodeName string, resta result, err = client.RestartNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartNode", resp, "Failure responding to request") + return } return @@ -16943,6 +17105,7 @@ func (client BaseClient) RestartReplica(ctx context.Context, nodeName string, pa result, err = client.RestartReplicaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartReplica", resp, "Failure responding to request") + return } return @@ -17047,6 +17210,7 @@ func (client BaseClient) RestorePartition(ctx context.Context, partitionID uuid. result, err = client.RestorePartitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestorePartition", resp, "Failure responding to request") + return } return @@ -17147,6 +17311,7 @@ func (client BaseClient) ResumeApplicationBackup(ctx context.Context, applicatio result, err = client.ResumeApplicationBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeApplicationBackup", resp, "Failure responding to request") + return } return @@ -17244,6 +17409,7 @@ func (client BaseClient) ResumeApplicationUpgrade(ctx context.Context, applicati result, err = client.ResumeApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -17337,6 +17503,7 @@ func (client BaseClient) ResumeClusterUpgrade(ctx context.Context, resumeCluster result, err = client.ResumeClusterUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeClusterUpgrade", resp, "Failure responding to request") + return } return @@ -17424,6 +17591,7 @@ func (client BaseClient) ResumePartitionBackup(ctx context.Context, partitionID result, err = client.ResumePartitionBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumePartitionBackup", resp, "Failure responding to request") + return } return @@ -17517,6 +17685,7 @@ func (client BaseClient) ResumeServiceBackup(ctx context.Context, serviceID stri result, err = client.ResumeServiceBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeServiceBackup", resp, "Failure responding to request") + return } return @@ -17612,6 +17781,7 @@ func (client BaseClient) RollbackApplicationUpgrade(ctx context.Context, applica result, err = client.RollbackApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -17699,6 +17869,7 @@ func (client BaseClient) RollbackClusterUpgrade(ctx context.Context, timeout *in result, err = client.RollbackClusterUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackClusterUpgrade", resp, "Failure responding to request") + return } return @@ -17784,6 +17955,7 @@ func (client BaseClient) SetUpgradeOrchestrationServiceState(ctx context.Context result, err = client.SetUpgradeOrchestrationServiceStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SetUpgradeOrchestrationServiceState", resp, "Failure responding to request") + return } return @@ -17881,6 +18053,7 @@ func (client BaseClient) StartApplicationUpgrade(ctx context.Context, applicatio result, err = client.StartApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -17992,6 +18165,7 @@ func (client BaseClient) StartChaos(ctx context.Context, chaosParameters ChaosPa result, err = client.StartChaosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartChaos", resp, "Failure responding to request") + return } return @@ -18081,6 +18255,7 @@ func (client BaseClient) StartClusterConfigurationUpgrade(ctx context.Context, c result, err = client.StartClusterConfigurationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartClusterConfigurationUpgrade", resp, "Failure responding to request") + return } return @@ -18179,6 +18354,7 @@ func (client BaseClient) StartClusterUpgrade(ctx context.Context, startClusterUp result, err = client.StartClusterUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartClusterUpgrade", resp, "Failure responding to request") + return } return @@ -18270,6 +18446,7 @@ func (client BaseClient) StartComposeDeploymentUpgrade(ctx context.Context, depl result, err = client.StartComposeDeploymentUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartComposeDeploymentUpgrade", resp, "Failure responding to request") + return } return @@ -18385,6 +18562,7 @@ func (client BaseClient) StartDataLoss(ctx context.Context, serviceID string, pa result, err = client.StartDataLossResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartDataLoss", resp, "Failure responding to request") + return } return @@ -18489,6 +18667,7 @@ func (client BaseClient) StartNodeTransition(ctx context.Context, nodeName strin result, err = client.StartNodeTransitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartNodeTransition", resp, "Failure responding to request") + return } return @@ -18593,6 +18772,7 @@ func (client BaseClient) StartPartitionRestart(ctx context.Context, serviceID st result, err = client.StartPartitionRestartResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartPartitionRestart", resp, "Failure responding to request") + return } return @@ -18701,6 +18881,7 @@ func (client BaseClient) StartQuorumLoss(ctx context.Context, serviceID string, result, err = client.StartQuorumLossResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartQuorumLoss", resp, "Failure responding to request") + return } return @@ -18793,6 +18974,7 @@ func (client BaseClient) StartRollbackComposeDeploymentUpgrade(ctx context.Conte result, err = client.StartRollbackComposeDeploymentUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartRollbackComposeDeploymentUpgrade", resp, "Failure responding to request") + return } return @@ -18883,6 +19065,7 @@ func (client BaseClient) StopChaos(ctx context.Context, timeout *int64) (result result, err = client.StopChaosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StopChaos", resp, "Failure responding to request") + return } return @@ -18968,6 +19151,7 @@ func (client BaseClient) SubmitPropertyBatch(ctx context.Context, nameID string, result, err = client.SubmitPropertyBatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SubmitPropertyBatch", resp, "Failure responding to request") + return } return @@ -19065,6 +19249,7 @@ func (client BaseClient) SuspendApplicationBackup(ctx context.Context, applicati result, err = client.SuspendApplicationBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SuspendApplicationBackup", resp, "Failure responding to request") + return } return @@ -19154,6 +19339,7 @@ func (client BaseClient) SuspendPartitionBackup(ctx context.Context, partitionID result, err = client.SuspendPartitionBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SuspendPartitionBackup", resp, "Failure responding to request") + return } return @@ -19248,6 +19434,7 @@ func (client BaseClient) SuspendServiceBackup(ctx context.Context, serviceID str result, err = client.SuspendServiceBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SuspendServiceBackup", resp, "Failure responding to request") + return } return @@ -19342,6 +19529,7 @@ func (client BaseClient) UnprovisionApplicationType(ctx context.Context, applica result, err = client.UnprovisionApplicationTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionApplicationType", resp, "Failure responding to request") + return } return @@ -19432,6 +19620,7 @@ func (client BaseClient) UnprovisionCluster(ctx context.Context, unprovisionFabr result, err = client.UnprovisionClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionCluster", resp, "Failure responding to request") + return } return @@ -19527,6 +19716,7 @@ func (client BaseClient) UpdateApplicationUpgrade(ctx context.Context, applicati result, err = client.UpdateApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -19627,6 +19817,7 @@ func (client BaseClient) UpdateBackupPolicy(ctx context.Context, backupPolicyDes result, err = client.UpdateBackupPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateBackupPolicy", resp, "Failure responding to request") + return } return @@ -19728,6 +19919,7 @@ func (client BaseClient) UpdateClusterUpgrade(ctx context.Context, updateCluster result, err = client.UpdateClusterUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateClusterUpgrade", resp, "Failure responding to request") + return } return @@ -19810,6 +20002,7 @@ func (client BaseClient) UpdateRepairExecutionState(ctx context.Context, repairT result, err = client.UpdateRepairExecutionStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateRepairExecutionState", resp, "Failure responding to request") + return } return @@ -19887,6 +20080,7 @@ func (client BaseClient) UpdateRepairTaskHealthPolicy(ctx context.Context, repai result, err = client.UpdateRepairTaskHealthPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateRepairTaskHealthPolicy", resp, "Failure responding to request") + return } return @@ -19979,6 +20173,7 @@ func (client BaseClient) UpdateService(ctx context.Context, serviceID string, se result, err = client.UpdateServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateService", resp, "Failure responding to request") + return } return @@ -20075,6 +20270,7 @@ func (client BaseClient) UploadFile(ctx context.Context, contentPath string, tim result, err = client.UploadFileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UploadFile", resp, "Failure responding to request") + return } return @@ -20175,6 +20371,7 @@ func (client BaseClient) UploadFileChunk(ctx context.Context, contentPath string result, err = client.UploadFileChunkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UploadFileChunk", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/6.4/servicefabric/meshapplication.go b/services/servicefabric/6.4/servicefabric/meshapplication.go index 210066f6d8fb..75fe89c28458 100644 --- a/services/servicefabric/6.4/servicefabric/meshapplication.go +++ b/services/servicefabric/6.4/servicefabric/meshapplication.go @@ -82,6 +82,7 @@ func (client MeshApplicationClient) CreateOrUpdate(ctx context.Context, applicat result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshApplicationClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -156,6 +157,7 @@ func (client MeshApplicationClient) Delete(ctx context.Context, applicationResou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshApplicationClient", "Delete", resp, "Failure responding to request") + return } return @@ -228,6 +230,7 @@ func (client MeshApplicationClient) Get(ctx context.Context, applicationResource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshApplicationClient", "Get", resp, "Failure responding to request") + return } return @@ -299,6 +302,7 @@ func (client MeshApplicationClient) List(ctx context.Context) (result PagedAppli result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshApplicationClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/6.4/servicefabric/meshcodepackage.go b/services/servicefabric/6.4/servicefabric/meshcodepackage.go index 766bd0b2bf4e..0c3600f9fd92 100644 --- a/services/servicefabric/6.4/servicefabric/meshcodepackage.go +++ b/services/servicefabric/6.4/servicefabric/meshcodepackage.go @@ -76,6 +76,7 @@ func (client MeshCodePackageClient) GetContainerLogs(ctx context.Context, applic result, err = client.GetContainerLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshCodePackageClient", "GetContainerLogs", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/6.4/servicefabric/meshgateway.go b/services/servicefabric/6.4/servicefabric/meshgateway.go index 6a83327ff827..ec9190e904c6 100644 --- a/services/servicefabric/6.4/servicefabric/meshgateway.go +++ b/services/servicefabric/6.4/servicefabric/meshgateway.go @@ -86,6 +86,7 @@ func (client MeshGatewayClient) CreateOrUpdate(ctx context.Context, gatewayResou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshGatewayClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client MeshGatewayClient) Delete(ctx context.Context, gatewayResourceName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshGatewayClient", "Delete", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client MeshGatewayClient) Get(ctx context.Context, gatewayResourceName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshGatewayClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +306,7 @@ func (client MeshGatewayClient) List(ctx context.Context) (result PagedGatewayRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshGatewayClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/6.4/servicefabric/meshnetwork.go b/services/servicefabric/6.4/servicefabric/meshnetwork.go index 5aac20936c3d..05885b1f8f32 100644 --- a/services/servicefabric/6.4/servicefabric/meshnetwork.go +++ b/services/servicefabric/6.4/servicefabric/meshnetwork.go @@ -83,6 +83,7 @@ func (client MeshNetworkClient) CreateOrUpdate(ctx context.Context, networkResou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshNetworkClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client MeshNetworkClient) Delete(ctx context.Context, networkResourceName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshNetworkClient", "Delete", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client MeshNetworkClient) Get(ctx context.Context, networkResourceName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshNetworkClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client MeshNetworkClient) List(ctx context.Context) (result PagedNetworkRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshNetworkClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/6.4/servicefabric/meshsecret.go b/services/servicefabric/6.4/servicefabric/meshsecret.go index db7630d5bde8..78b7146805f2 100644 --- a/services/servicefabric/6.4/servicefabric/meshsecret.go +++ b/services/servicefabric/6.4/servicefabric/meshsecret.go @@ -83,6 +83,7 @@ func (client MeshSecretClient) CreateOrUpdate(ctx context.Context, secretResourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client MeshSecretClient) Delete(ctx context.Context, secretResourceName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretClient", "Delete", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client MeshSecretClient) Get(ctx context.Context, secretResourceName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client MeshSecretClient) List(ctx context.Context) (result PagedSecretReso result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/6.4/servicefabric/meshsecretvalue.go b/services/servicefabric/6.4/servicefabric/meshsecretvalue.go index 567adb3455d9..cc0c9d03ecde 100644 --- a/services/servicefabric/6.4/servicefabric/meshsecretvalue.go +++ b/services/servicefabric/6.4/servicefabric/meshsecretvalue.go @@ -84,6 +84,7 @@ func (client MeshSecretValueClient) AddValue(ctx context.Context, secretResource result, err = client.AddValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretValueClient", "AddValue", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client MeshSecretValueClient) Delete(ctx context.Context, secretResourceNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretValueClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client MeshSecretValueClient) Get(ctx context.Context, secretResourceName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretValueClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +314,7 @@ func (client MeshSecretValueClient) List(ctx context.Context, secretResourceName result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretValueClient", "List", resp, "Failure responding to request") + return } return @@ -385,6 +389,7 @@ func (client MeshSecretValueClient) Show(ctx context.Context, secretResourceName result, err = client.ShowResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretValueClient", "Show", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/6.4/servicefabric/meshservice.go b/services/servicefabric/6.4/servicefabric/meshservice.go index 28b7b1f8d53e..98582ec66fbc 100644 --- a/services/servicefabric/6.4/servicefabric/meshservice.go +++ b/services/servicefabric/6.4/servicefabric/meshservice.go @@ -74,6 +74,7 @@ func (client MeshServiceClient) Get(ctx context.Context, applicationResourceName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshServiceClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client MeshServiceClient) List(ctx context.Context, applicationResourceNam result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshServiceClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/6.4/servicefabric/meshservicereplica.go b/services/servicefabric/6.4/servicefabric/meshservicereplica.go index 1f7a5a114571..5c647bb1d216 100644 --- a/services/servicefabric/6.4/servicefabric/meshservicereplica.go +++ b/services/servicefabric/6.4/servicefabric/meshservicereplica.go @@ -76,6 +76,7 @@ func (client MeshServiceReplicaClient) Get(ctx context.Context, applicationResou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshServiceReplicaClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client MeshServiceReplicaClient) List(ctx context.Context, applicationReso result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshServiceReplicaClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/6.4/servicefabric/meshvolume.go b/services/servicefabric/6.4/servicefabric/meshvolume.go index cdd32eaf7aed..56e89ede9688 100644 --- a/services/servicefabric/6.4/servicefabric/meshvolume.go +++ b/services/servicefabric/6.4/servicefabric/meshvolume.go @@ -88,6 +88,7 @@ func (client MeshVolumeClient) CreateOrUpdate(ctx context.Context, volumeResourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshVolumeClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client MeshVolumeClient) Delete(ctx context.Context, volumeResourceName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshVolumeClient", "Delete", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client MeshVolumeClient) Get(ctx context.Context, volumeResourceName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshVolumeClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +308,7 @@ func (client MeshVolumeClient) List(ctx context.Context) (result PagedVolumeReso result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshVolumeClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/6.5/servicefabric/client.go b/services/servicefabric/6.5/servicefabric/client.go index 546773b34261..fef9e156189b 100644 --- a/services/servicefabric/6.5/servicefabric/client.go +++ b/services/servicefabric/6.5/servicefabric/client.go @@ -109,6 +109,7 @@ func (client BaseClient) BackupPartition(ctx context.Context, partitionID uuid.U result, err = client.BackupPartitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "BackupPartition", resp, "Failure responding to request") + return } return @@ -225,6 +226,7 @@ func (client BaseClient) CancelOperation(ctx context.Context, operationID uuid.U result, err = client.CancelOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelOperation", resp, "Failure responding to request") + return } return @@ -305,6 +307,7 @@ func (client BaseClient) CancelRepairTask(ctx context.Context, repairTaskCancelD result, err = client.CancelRepairTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelRepairTask", resp, "Failure responding to request") + return } return @@ -390,6 +393,7 @@ func (client BaseClient) CommitImageStoreUploadSession(ctx context.Context, sess result, err = client.CommitImageStoreUploadSessionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CommitImageStoreUploadSession", resp, "Failure responding to request") + return } return @@ -479,6 +483,7 @@ func (client BaseClient) CopyImageStoreContent(ctx context.Context, imageStoreCo result, err = client.CopyImageStoreContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CopyImageStoreContent", resp, "Failure responding to request") + return } return @@ -575,6 +580,7 @@ func (client BaseClient) CreateApplication(ctx context.Context, applicationDescr result, err = client.CreateApplicationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateApplication", resp, "Failure responding to request") + return } return @@ -671,6 +677,7 @@ func (client BaseClient) CreateBackupPolicy(ctx context.Context, backupPolicyDes result, err = client.CreateBackupPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateBackupPolicy", resp, "Failure responding to request") + return } return @@ -762,6 +769,7 @@ func (client BaseClient) CreateComposeDeployment(ctx context.Context, createComp result, err = client.CreateComposeDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateComposeDeployment", resp, "Failure responding to request") + return } return @@ -850,6 +858,7 @@ func (client BaseClient) CreateName(ctx context.Context, nameDescription NameDes result, err = client.CreateNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateName", resp, "Failure responding to request") + return } return @@ -941,6 +950,7 @@ func (client BaseClient) CreateRepairTask(ctx context.Context, repairTask Repair result, err = client.CreateRepairTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateRepairTask", resp, "Failure responding to request") + return } return @@ -1034,6 +1044,7 @@ func (client BaseClient) CreateService(ctx context.Context, applicationID string result, err = client.CreateServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateService", resp, "Failure responding to request") + return } return @@ -1136,6 +1147,7 @@ func (client BaseClient) CreateServiceFromTemplate(ctx context.Context, applicat result, err = client.CreateServiceFromTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateServiceFromTemplate", resp, "Failure responding to request") + return } return @@ -1237,6 +1249,7 @@ func (client BaseClient) DeleteApplication(ctx context.Context, applicationID st result, err = client.DeleteApplicationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteApplication", resp, "Failure responding to request") + return } return @@ -1330,6 +1343,7 @@ func (client BaseClient) DeleteBackupPolicy(ctx context.Context, backupPolicyNam result, err = client.DeleteBackupPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteBackupPolicy", resp, "Failure responding to request") + return } return @@ -1419,6 +1433,7 @@ func (client BaseClient) DeleteImageStoreContent(ctx context.Context, contentPat result, err = client.DeleteImageStoreContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteImageStoreContent", resp, "Failure responding to request") + return } return @@ -1509,6 +1524,7 @@ func (client BaseClient) DeleteImageStoreUploadSession(ctx context.Context, sess result, err = client.DeleteImageStoreUploadSessionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteImageStoreUploadSession", resp, "Failure responding to request") + return } return @@ -1595,6 +1611,7 @@ func (client BaseClient) DeleteName(ctx context.Context, nameID string, timeout result, err = client.DeleteNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteName", resp, "Failure responding to request") + return } return @@ -1685,6 +1702,7 @@ func (client BaseClient) DeleteProperty(ctx context.Context, nameID string, prop result, err = client.DeletePropertyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteProperty", resp, "Failure responding to request") + return } return @@ -1768,6 +1786,7 @@ func (client BaseClient) DeleteRepairTask(ctx context.Context, repairTaskDeleteD result, err = client.DeleteRepairTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteRepairTask", resp, "Failure responding to request") + return } return @@ -1859,6 +1878,7 @@ func (client BaseClient) DeleteService(ctx context.Context, serviceID string, fo result, err = client.DeleteServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteService", resp, "Failure responding to request") + return } return @@ -1960,6 +1980,7 @@ func (client BaseClient) DeployServicePackageToNode(ctx context.Context, nodeNam result, err = client.DeployServicePackageToNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeployServicePackageToNode", resp, "Failure responding to request") + return } return @@ -2058,6 +2079,7 @@ func (client BaseClient) DisableApplicationBackup(ctx context.Context, applicati result, err = client.DisableApplicationBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableApplicationBackup", resp, "Failure responding to request") + return } return @@ -2157,6 +2179,7 @@ func (client BaseClient) DisableNode(ctx context.Context, nodeName string, deact result, err = client.DisableNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableNode", resp, "Failure responding to request") + return } return @@ -2254,6 +2277,7 @@ func (client BaseClient) DisablePartitionBackup(ctx context.Context, partitionID result, err = client.DisablePartitionBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisablePartitionBackup", resp, "Failure responding to request") + return } return @@ -2358,6 +2382,7 @@ func (client BaseClient) DisableServiceBackup(ctx context.Context, serviceID str result, err = client.DisableServiceBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableServiceBackup", resp, "Failure responding to request") + return } return @@ -2460,6 +2485,7 @@ func (client BaseClient) EnableApplicationBackup(ctx context.Context, applicatio result, err = client.EnableApplicationBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableApplicationBackup", resp, "Failure responding to request") + return } return @@ -2552,6 +2578,7 @@ func (client BaseClient) EnableNode(ctx context.Context, nodeName string, timeou result, err = client.EnableNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableNode", resp, "Failure responding to request") + return } return @@ -2647,6 +2674,7 @@ func (client BaseClient) EnablePartitionBackup(ctx context.Context, partitionID result, err = client.EnablePartitionBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnablePartitionBackup", resp, "Failure responding to request") + return } return @@ -2749,6 +2777,7 @@ func (client BaseClient) EnableServiceBackup(ctx context.Context, serviceID stri result, err = client.EnableServiceBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableServiceBackup", resp, "Failure responding to request") + return } return @@ -2834,6 +2863,7 @@ func (client BaseClient) ForceApproveRepairTask(ctx context.Context, repairTaskA result, err = client.ForceApproveRepairTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ForceApproveRepairTask", resp, "Failure responding to request") + return } return @@ -2917,6 +2947,7 @@ func (client BaseClient) GetAadMetadata(ctx context.Context, timeout *int64) (re result, err = client.GetAadMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetAadMetadata", resp, "Failure responding to request") + return } return @@ -3016,6 +3047,7 @@ func (client BaseClient) GetAllEntitiesBackedUpByPolicy(ctx context.Context, bac result, err = client.GetAllEntitiesBackedUpByPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetAllEntitiesBackedUpByPolicy", resp, "Failure responding to request") + return } return @@ -3131,6 +3163,7 @@ func (client BaseClient) GetApplicationBackupConfigurationInfo(ctx context.Conte result, err = client.GetApplicationBackupConfigurationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationBackupConfigurationInfo", resp, "Failure responding to request") + return } return @@ -3256,6 +3289,7 @@ func (client BaseClient) GetApplicationBackupList(ctx context.Context, applicati result, err = client.GetApplicationBackupListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationBackupList", resp, "Failure responding to request") + return } return @@ -3376,6 +3410,7 @@ func (client BaseClient) GetApplicationEventList(ctx context.Context, applicatio result, err = client.GetApplicationEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationEventList", resp, "Failure responding to request") + return } return @@ -3534,6 +3569,7 @@ func (client BaseClient) GetApplicationHealth(ctx context.Context, applicationID result, err = client.GetApplicationHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealth", resp, "Failure responding to request") + return } return @@ -3706,6 +3742,7 @@ func (client BaseClient) GetApplicationHealthUsingPolicy(ctx context.Context, ap result, err = client.GetApplicationHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -3828,6 +3865,7 @@ func (client BaseClient) GetApplicationInfo(ctx context.Context, applicationID s result, err = client.GetApplicationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfo", resp, "Failure responding to request") + return } return @@ -3949,6 +3987,7 @@ func (client BaseClient) GetApplicationInfoList(ctx context.Context, application result, err = client.GetApplicationInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfoList", resp, "Failure responding to request") + return } return @@ -4062,6 +4101,7 @@ func (client BaseClient) GetApplicationLoadInfo(ctx context.Context, application result, err = client.GetApplicationLoadInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationLoadInfo", resp, "Failure responding to request") + return } return @@ -4152,6 +4192,7 @@ func (client BaseClient) GetApplicationManifest(ctx context.Context, application result, err = client.GetApplicationManifestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationManifest", resp, "Failure responding to request") + return } return @@ -4247,6 +4288,7 @@ func (client BaseClient) GetApplicationNameInfo(ctx context.Context, serviceID s result, err = client.GetApplicationNameInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationNameInfo", resp, "Failure responding to request") + return } return @@ -4343,6 +4385,7 @@ func (client BaseClient) GetApplicationsEventList(ctx context.Context, startTime result, err = client.GetApplicationsEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationsEventList", resp, "Failure responding to request") + return } return @@ -4467,6 +4510,7 @@ func (client BaseClient) GetApplicationTypeInfoList(ctx context.Context, applica result, err = client.GetApplicationTypeInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoList", resp, "Failure responding to request") + return } return @@ -4595,6 +4639,7 @@ func (client BaseClient) GetApplicationTypeInfoListByName(ctx context.Context, a result, err = client.GetApplicationTypeInfoListByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoListByName", resp, "Failure responding to request") + return } return @@ -4705,6 +4750,7 @@ func (client BaseClient) GetApplicationUpgrade(ctx context.Context, applicationI result, err = client.GetApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -4794,6 +4840,7 @@ func (client BaseClient) GetBackupPolicyByName(ctx context.Context, backupPolicy result, err = client.GetBackupPolicyByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetBackupPolicyByName", resp, "Failure responding to request") + return } return @@ -4895,6 +4942,7 @@ func (client BaseClient) GetBackupPolicyList(ctx context.Context, continuationTo result, err = client.GetBackupPolicyListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetBackupPolicyList", resp, "Failure responding to request") + return } return @@ -5006,6 +5054,7 @@ func (client BaseClient) GetBackupsFromBackupLocation(ctx context.Context, getBa result, err = client.GetBackupsFromBackupLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetBackupsFromBackupLocation", resp, "Failure responding to request") + return } return @@ -5101,6 +5150,7 @@ func (client BaseClient) GetChaos(ctx context.Context, timeout *int64) (result C result, err = client.GetChaosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaos", resp, "Failure responding to request") + return } return @@ -5210,6 +5260,7 @@ func (client BaseClient) GetChaosEvents(ctx context.Context, continuationToken s result, err = client.GetChaosEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaosEvents", resp, "Failure responding to request") + return } return @@ -5309,6 +5360,7 @@ func (client BaseClient) GetChaosSchedule(ctx context.Context, timeout *int64) ( result, err = client.GetChaosScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaosSchedule", resp, "Failure responding to request") + return } return @@ -5396,6 +5448,7 @@ func (client BaseClient) GetClusterConfiguration(ctx context.Context, configurat result, err = client.GetClusterConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterConfiguration", resp, "Failure responding to request") + return } return @@ -5482,6 +5535,7 @@ func (client BaseClient) GetClusterConfigurationUpgradeStatus(ctx context.Contex result, err = client.GetClusterConfigurationUpgradeStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterConfigurationUpgradeStatus", resp, "Failure responding to request") + return } return @@ -5574,6 +5628,7 @@ func (client BaseClient) GetClusterEventList(ctx context.Context, startTimeUtc s result, err = client.GetClusterEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterEventList", resp, "Failure responding to request") + return } return @@ -5733,6 +5788,7 @@ func (client BaseClient) GetClusterHealth(ctx context.Context, nodesHealthStateF result, err = client.GetClusterHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealth", resp, "Failure responding to request") + return } return @@ -5845,6 +5901,7 @@ func (client BaseClient) GetClusterHealthChunk(ctx context.Context, timeout *int result, err = client.GetClusterHealthChunkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunk", resp, "Failure responding to request") + return } return @@ -5951,6 +6008,7 @@ func (client BaseClient) GetClusterHealthChunkUsingPolicyAndAdvancedFilters(ctx result, err = client.GetClusterHealthChunkUsingPolicyAndAdvancedFiltersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunkUsingPolicyAndAdvancedFilters", resp, "Failure responding to request") + return } return @@ -6113,6 +6171,7 @@ func (client BaseClient) GetClusterHealthUsingPolicy(ctx context.Context, nodesH result, err = client.GetClusterHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -6228,6 +6287,7 @@ func (client BaseClient) GetClusterLoad(ctx context.Context, timeout *int64) (re result, err = client.GetClusterLoadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterLoad", resp, "Failure responding to request") + return } return @@ -6322,6 +6382,7 @@ func (client BaseClient) GetClusterManifest(ctx context.Context, timeout *int64) result, err = client.GetClusterManifestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterManifest", resp, "Failure responding to request") + return } return @@ -6407,6 +6468,7 @@ func (client BaseClient) GetClusterUpgradeProgress(ctx context.Context, timeout result, err = client.GetClusterUpgradeProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterUpgradeProgress", resp, "Failure responding to request") + return } return @@ -6492,6 +6554,7 @@ func (client BaseClient) GetClusterVersion(ctx context.Context, timeout *int64) result, err = client.GetClusterVersionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterVersion", resp, "Failure responding to request") + return } return @@ -6579,6 +6642,7 @@ func (client BaseClient) GetComposeDeploymentStatus(ctx context.Context, deploym result, err = client.GetComposeDeploymentStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentStatus", resp, "Failure responding to request") + return } return @@ -6683,6 +6747,7 @@ func (client BaseClient) GetComposeDeploymentStatusList(ctx context.Context, con result, err = client.GetComposeDeploymentStatusListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentStatusList", resp, "Failure responding to request") + return } return @@ -6777,6 +6842,7 @@ func (client BaseClient) GetComposeDeploymentUpgradeProgress(ctx context.Context result, err = client.GetComposeDeploymentUpgradeProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentUpgradeProgress", resp, "Failure responding to request") + return } return @@ -6878,6 +6944,7 @@ func (client BaseClient) GetContainerLogsDeployedOnNode(ctx context.Context, nod result, err = client.GetContainerLogsDeployedOnNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetContainerLogsDeployedOnNode", resp, "Failure responding to request") + return } return @@ -6985,6 +7052,7 @@ func (client BaseClient) GetContainersEventList(ctx context.Context, startTimeUt result, err = client.GetContainersEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetContainersEventList", resp, "Failure responding to request") + return } return @@ -7081,6 +7149,7 @@ func (client BaseClient) GetCorrelatedEventList(ctx context.Context, eventInstan result, err = client.GetCorrelatedEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetCorrelatedEventList", resp, "Failure responding to request") + return } return @@ -7177,6 +7246,7 @@ func (client BaseClient) GetDataLossProgress(ctx context.Context, serviceID stri result, err = client.GetDataLossProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDataLossProgress", resp, "Failure responding to request") + return } return @@ -7312,6 +7382,7 @@ func (client BaseClient) GetDeployedApplicationHealth(ctx context.Context, nodeN result, err = client.GetDeployedApplicationHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealth", resp, "Failure responding to request") + return } return @@ -7468,6 +7539,7 @@ func (client BaseClient) GetDeployedApplicationHealthUsingPolicy(ctx context.Con result, err = client.GetDeployedApplicationHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -7591,6 +7663,7 @@ func (client BaseClient) GetDeployedApplicationInfo(ctx context.Context, nodeNam result, err = client.GetDeployedApplicationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfo", resp, "Failure responding to request") + return } return @@ -7708,6 +7781,7 @@ func (client BaseClient) GetDeployedApplicationInfoList(ctx context.Context, nod result, err = client.GetDeployedApplicationInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfoList", resp, "Failure responding to request") + return } return @@ -7820,6 +7894,7 @@ func (client BaseClient) GetDeployedCodePackageInfoList(ctx context.Context, nod result, err = client.GetDeployedCodePackageInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedCodePackageInfoList", resp, "Failure responding to request") + return } return @@ -7939,6 +8014,7 @@ func (client BaseClient) GetDeployedServicePackageHealth(ctx context.Context, no result, err = client.GetDeployedServicePackageHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealth", resp, "Failure responding to request") + return } return @@ -8065,6 +8141,7 @@ func (client BaseClient) GetDeployedServicePackageHealthUsingPolicy(ctx context. result, err = client.GetDeployedServicePackageHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -8172,6 +8249,7 @@ func (client BaseClient) GetDeployedServicePackageInfoList(ctx context.Context, result, err = client.GetDeployedServicePackageInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoList", resp, "Failure responding to request") + return } return @@ -8270,6 +8348,7 @@ func (client BaseClient) GetDeployedServicePackageInfoListByName(ctx context.Con result, err = client.GetDeployedServicePackageInfoListByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoListByName", resp, "Failure responding to request") + return } return @@ -8365,6 +8444,7 @@ func (client BaseClient) GetDeployedServiceReplicaDetailInfo(ctx context.Context result, err = client.GetDeployedServiceReplicaDetailInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfo", resp, "Failure responding to request") + return } return @@ -8459,6 +8539,7 @@ func (client BaseClient) GetDeployedServiceReplicaDetailInfoByPartitionID(ctx co result, err = client.GetDeployedServiceReplicaDetailInfoByPartitionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfoByPartitionID", resp, "Failure responding to request") + return } return @@ -8560,6 +8641,7 @@ func (client BaseClient) GetDeployedServiceReplicaInfoList(ctx context.Context, result, err = client.GetDeployedServiceReplicaInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaInfoList", resp, "Failure responding to request") + return } return @@ -8668,6 +8750,7 @@ func (client BaseClient) GetDeployedServiceTypeInfoByName(ctx context.Context, n result, err = client.GetDeployedServiceTypeInfoByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoByName", resp, "Failure responding to request") + return } return @@ -8772,6 +8855,7 @@ func (client BaseClient) GetDeployedServiceTypeInfoList(ctx context.Context, nod result, err = client.GetDeployedServiceTypeInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoList", resp, "Failure responding to request") + return } return @@ -8880,6 +8964,7 @@ func (client BaseClient) GetFaultOperationList(ctx context.Context, typeFilter i result, err = client.GetFaultOperationListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetFaultOperationList", resp, "Failure responding to request") + return } return @@ -8968,6 +9053,7 @@ func (client BaseClient) GetImageStoreContent(ctx context.Context, contentPath s result, err = client.GetImageStoreContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreContent", resp, "Failure responding to request") + return } return @@ -9058,6 +9144,7 @@ func (client BaseClient) GetImageStoreFolderSize(ctx context.Context, contentPat result, err = client.GetImageStoreFolderSizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreFolderSize", resp, "Failure responding to request") + return } return @@ -9146,6 +9233,7 @@ func (client BaseClient) GetImageStoreRootContent(ctx context.Context, timeout * result, err = client.GetImageStoreRootContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreRootContent", resp, "Failure responding to request") + return } return @@ -9230,6 +9318,7 @@ func (client BaseClient) GetImageStoreRootFolderSize(ctx context.Context, timeou result, err = client.GetImageStoreRootFolderSizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreRootFolderSize", resp, "Failure responding to request") + return } return @@ -9317,6 +9406,7 @@ func (client BaseClient) GetImageStoreUploadSessionByID(ctx context.Context, ses result, err = client.GetImageStoreUploadSessionByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreUploadSessionByID", resp, "Failure responding to request") + return } return @@ -9404,6 +9494,7 @@ func (client BaseClient) GetImageStoreUploadSessionByPath(ctx context.Context, c result, err = client.GetImageStoreUploadSessionByPathResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreUploadSessionByPath", resp, "Failure responding to request") + return } return @@ -9493,6 +9584,7 @@ func (client BaseClient) GetNameExistsInfo(ctx context.Context, nameID string, t result, err = client.GetNameExistsInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNameExistsInfo", resp, "Failure responding to request") + return } return @@ -9589,6 +9681,7 @@ func (client BaseClient) GetNodeEventList(ctx context.Context, nodeName string, result, err = client.GetNodeEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeEventList", resp, "Failure responding to request") + return } return @@ -9706,6 +9799,7 @@ func (client BaseClient) GetNodeHealth(ctx context.Context, nodeName string, eve result, err = client.GetNodeHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealth", resp, "Failure responding to request") + return } return @@ -9820,6 +9914,7 @@ func (client BaseClient) GetNodeHealthUsingPolicy(ctx context.Context, nodeName result, err = client.GetNodeHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -9919,6 +10014,7 @@ func (client BaseClient) GetNodeInfo(ctx context.Context, nodeName string, timeo result, err = client.GetNodeInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfo", resp, "Failure responding to request") + return } return @@ -10022,6 +10118,7 @@ func (client BaseClient) GetNodeInfoList(ctx context.Context, continuationToken result, err = client.GetNodeInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfoList", resp, "Failure responding to request") + return } return @@ -10121,6 +10218,7 @@ func (client BaseClient) GetNodeLoadInfo(ctx context.Context, nodeName string, t result, err = client.GetNodeLoadInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeLoadInfo", resp, "Failure responding to request") + return } return @@ -10217,6 +10315,7 @@ func (client BaseClient) GetNodesEventList(ctx context.Context, startTimeUtc str result, err = client.GetNodesEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodesEventList", resp, "Failure responding to request") + return } return @@ -10316,6 +10415,7 @@ func (client BaseClient) GetNodeTransitionProgress(ctx context.Context, nodeName result, err = client.GetNodeTransitionProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeTransitionProgress", resp, "Failure responding to request") + return } return @@ -10407,6 +10507,7 @@ func (client BaseClient) GetPartitionBackupConfigurationInfo(ctx context.Context result, err = client.GetPartitionBackupConfigurationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionBackupConfigurationInfo", resp, "Failure responding to request") + return } return @@ -10506,6 +10607,7 @@ func (client BaseClient) GetPartitionBackupList(ctx context.Context, partitionID result, err = client.GetPartitionBackupListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionBackupList", resp, "Failure responding to request") + return } return @@ -10607,6 +10709,7 @@ func (client BaseClient) GetPartitionBackupProgress(ctx context.Context, partiti result, err = client.GetPartitionBackupProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionBackupProgress", resp, "Failure responding to request") + return } return @@ -10704,6 +10807,7 @@ func (client BaseClient) GetPartitionEventList(ctx context.Context, partitionID result, err = client.GetPartitionEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionEventList", resp, "Failure responding to request") + return } return @@ -10840,6 +10944,7 @@ func (client BaseClient) GetPartitionHealth(ctx context.Context, partitionID uui result, err = client.GetPartitionHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealth", resp, "Failure responding to request") + return } return @@ -10989,6 +11094,7 @@ func (client BaseClient) GetPartitionHealthUsingPolicy(ctx context.Context, part result, err = client.GetPartitionHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -11100,6 +11206,7 @@ func (client BaseClient) GetPartitionInfo(ctx context.Context, partitionID uuid. result, err = client.GetPartitionInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfo", resp, "Failure responding to request") + return } return @@ -11199,6 +11306,7 @@ func (client BaseClient) GetPartitionInfoList(ctx context.Context, serviceID str result, err = client.GetPartitionInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfoList", resp, "Failure responding to request") + return } return @@ -11293,6 +11401,7 @@ func (client BaseClient) GetPartitionLoadInformation(ctx context.Context, partit result, err = client.GetPartitionLoadInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionLoadInformation", resp, "Failure responding to request") + return } return @@ -11391,6 +11500,7 @@ func (client BaseClient) GetPartitionReplicaEventList(ctx context.Context, parti result, err = client.GetPartitionReplicaEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionReplicaEventList", resp, "Failure responding to request") + return } return @@ -11500,6 +11610,7 @@ func (client BaseClient) GetPartitionReplicasEventList(ctx context.Context, part result, err = client.GetPartitionReplicasEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionReplicasEventList", resp, "Failure responding to request") + return } return @@ -11608,6 +11719,7 @@ func (client BaseClient) GetPartitionRestartProgress(ctx context.Context, servic result, err = client.GetPartitionRestartProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionRestartProgress", resp, "Failure responding to request") + return } return @@ -11700,6 +11812,7 @@ func (client BaseClient) GetPartitionRestoreProgress(ctx context.Context, partit result, err = client.GetPartitionRestoreProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionRestoreProgress", resp, "Failure responding to request") + return } return @@ -11796,6 +11909,7 @@ func (client BaseClient) GetPartitionsEventList(ctx context.Context, startTimeUt result, err = client.GetPartitionsEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionsEventList", resp, "Failure responding to request") + return } return @@ -11894,6 +12008,7 @@ func (client BaseClient) GetPropertyInfo(ctx context.Context, nameID string, pro result, err = client.GetPropertyInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPropertyInfo", resp, "Failure responding to request") + return } return @@ -11993,6 +12108,7 @@ func (client BaseClient) GetPropertyInfoList(ctx context.Context, nameID string, result, err = client.GetPropertyInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPropertyInfoList", resp, "Failure responding to request") + return } return @@ -12092,6 +12208,7 @@ func (client BaseClient) GetProvisionedFabricCodeVersionInfoList(ctx context.Con result, err = client.GetProvisionedFabricCodeVersionInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricCodeVersionInfoList", resp, "Failure responding to request") + return } return @@ -12182,6 +12299,7 @@ func (client BaseClient) GetProvisionedFabricConfigVersionInfoList(ctx context.C result, err = client.GetProvisionedFabricConfigVersionInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricConfigVersionInfoList", resp, "Failure responding to request") + return } return @@ -12278,6 +12396,7 @@ func (client BaseClient) GetQuorumLossProgress(ctx context.Context, serviceID st result, err = client.GetQuorumLossProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetQuorumLossProgress", resp, "Failure responding to request") + return } return @@ -12368,6 +12487,7 @@ func (client BaseClient) GetRepairTaskList(ctx context.Context, taskIDFilter str result, err = client.GetRepairTaskListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetRepairTaskList", resp, "Failure responding to request") + return } return @@ -12475,6 +12595,7 @@ func (client BaseClient) GetReplicaHealth(ctx context.Context, partitionID uuid. result, err = client.GetReplicaHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealth", resp, "Failure responding to request") + return } return @@ -12596,6 +12717,7 @@ func (client BaseClient) GetReplicaHealthUsingPolicy(ctx context.Context, partit result, err = client.GetReplicaHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -12698,6 +12820,7 @@ func (client BaseClient) GetReplicaInfo(ctx context.Context, partitionID uuid.UU result, err = client.GetReplicaInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfo", resp, "Failure responding to request") + return } return @@ -12794,6 +12917,7 @@ func (client BaseClient) GetReplicaInfoList(ctx context.Context, partitionID uui result, err = client.GetReplicaInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfoList", resp, "Failure responding to request") + return } return @@ -12904,6 +13028,7 @@ func (client BaseClient) GetServiceBackupConfigurationInfo(ctx context.Context, result, err = client.GetServiceBackupConfigurationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceBackupConfigurationInfo", resp, "Failure responding to request") + return } return @@ -13029,6 +13154,7 @@ func (client BaseClient) GetServiceBackupList(ctx context.Context, serviceID str result, err = client.GetServiceBackupListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceBackupList", resp, "Failure responding to request") + return } return @@ -13142,6 +13268,7 @@ func (client BaseClient) GetServiceDescription(ctx context.Context, serviceID st result, err = client.GetServiceDescriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceDescription", resp, "Failure responding to request") + return } return @@ -13243,6 +13370,7 @@ func (client BaseClient) GetServiceEventList(ctx context.Context, serviceID stri result, err = client.GetServiceEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceEventList", resp, "Failure responding to request") + return } return @@ -13386,6 +13514,7 @@ func (client BaseClient) GetServiceHealth(ctx context.Context, serviceID string, result, err = client.GetServiceHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealth", resp, "Failure responding to request") + return } return @@ -13540,6 +13669,7 @@ func (client BaseClient) GetServiceHealthUsingPolicy(ctx context.Context, servic result, err = client.GetServiceHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -13659,6 +13789,7 @@ func (client BaseClient) GetServiceInfo(ctx context.Context, applicationID strin result, err = client.GetServiceInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfo", resp, "Failure responding to request") + return } return @@ -13760,6 +13891,7 @@ func (client BaseClient) GetServiceInfoList(ctx context.Context, applicationID s result, err = client.GetServiceInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfoList", resp, "Failure responding to request") + return } return @@ -13859,6 +13991,7 @@ func (client BaseClient) GetServiceManifest(ctx context.Context, applicationType result, err = client.GetServiceManifestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceManifest", resp, "Failure responding to request") + return } return @@ -13951,6 +14084,7 @@ func (client BaseClient) GetServiceNameInfo(ctx context.Context, partitionID uui result, err = client.GetServiceNameInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceNameInfo", resp, "Failure responding to request") + return } return @@ -14047,6 +14181,7 @@ func (client BaseClient) GetServicesEventList(ctx context.Context, startTimeUtc result, err = client.GetServicesEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServicesEventList", resp, "Failure responding to request") + return } return @@ -14147,6 +14282,7 @@ func (client BaseClient) GetServiceTypeInfoByName(ctx context.Context, applicati result, err = client.GetServiceTypeInfoByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceTypeInfoByName", resp, "Failure responding to request") + return } return @@ -14241,6 +14377,7 @@ func (client BaseClient) GetServiceTypeInfoList(ctx context.Context, application result, err = client.GetServiceTypeInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceTypeInfoList", resp, "Failure responding to request") + return } return @@ -14339,6 +14476,7 @@ func (client BaseClient) GetSubNameInfoList(ctx context.Context, nameID string, result, err = client.GetSubNameInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetSubNameInfoList", resp, "Failure responding to request") + return } return @@ -14447,6 +14585,7 @@ func (client BaseClient) GetUnplacedReplicaInformation(ctx context.Context, serv result, err = client.GetUnplacedReplicaInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetUnplacedReplicaInformation", resp, "Failure responding to request") + return } return @@ -14544,6 +14683,7 @@ func (client BaseClient) GetUpgradeOrchestrationServiceState(ctx context.Context result, err = client.GetUpgradeOrchestrationServiceStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetUpgradeOrchestrationServiceState", resp, "Failure responding to request") + return } return @@ -14643,6 +14783,7 @@ func (client BaseClient) InvokeContainerAPI(ctx context.Context, nodeName string result, err = client.InvokeContainerAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeContainerAPI", resp, "Failure responding to request") + return } return @@ -14748,6 +14889,7 @@ func (client BaseClient) InvokeInfrastructureCommand(ctx context.Context, comman result, err = client.InvokeInfrastructureCommandResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureCommand", resp, "Failure responding to request") + return } return @@ -14847,6 +14989,7 @@ func (client BaseClient) InvokeInfrastructureQuery(ctx context.Context, command result, err = client.InvokeInfrastructureQueryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureQuery", resp, "Failure responding to request") + return } return @@ -14944,6 +15087,7 @@ func (client BaseClient) MovePrimaryReplica(ctx context.Context, partitionID uui result, err = client.MovePrimaryReplicaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "MovePrimaryReplica", resp, "Failure responding to request") + return } return @@ -15051,6 +15195,7 @@ func (client BaseClient) MoveSecondaryReplica(ctx context.Context, partitionID u result, err = client.MoveSecondaryReplicaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "MoveSecondaryReplica", resp, "Failure responding to request") + return } return @@ -15155,6 +15300,7 @@ func (client BaseClient) PostChaosSchedule(ctx context.Context, chaosSchedule Ch result, err = client.PostChaosScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "PostChaosSchedule", resp, "Failure responding to request") + return } return @@ -15247,6 +15393,7 @@ func (client BaseClient) ProvisionApplicationType(ctx context.Context, provision result, err = client.ProvisionApplicationTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionApplicationType", resp, "Failure responding to request") + return } return @@ -15333,6 +15480,7 @@ func (client BaseClient) ProvisionCluster(ctx context.Context, provisionFabricDe result, err = client.ProvisionClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionCluster", resp, "Failure responding to request") + return } return @@ -15423,6 +15571,7 @@ func (client BaseClient) PutProperty(ctx context.Context, nameID string, propert result, err = client.PutPropertyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "PutProperty", resp, "Failure responding to request") + return } return @@ -15513,6 +15662,7 @@ func (client BaseClient) RecoverAllPartitions(ctx context.Context, timeout *int6 result, err = client.RecoverAllPartitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverAllPartitions", resp, "Failure responding to request") + return } return @@ -15598,6 +15748,7 @@ func (client BaseClient) RecoverPartition(ctx context.Context, partitionID uuid. result, err = client.RecoverPartitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverPartition", resp, "Failure responding to request") + return } return @@ -15692,6 +15843,7 @@ func (client BaseClient) RecoverServicePartitions(ctx context.Context, serviceID result, err = client.RecoverServicePartitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverServicePartitions", resp, "Failure responding to request") + return } return @@ -15781,6 +15933,7 @@ func (client BaseClient) RecoverSystemPartitions(ctx context.Context, timeout *i result, err = client.RecoverSystemPartitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverSystemPartitions", resp, "Failure responding to request") + return } return @@ -15865,6 +16018,7 @@ func (client BaseClient) RemoveComposeDeployment(ctx context.Context, deployment result, err = client.RemoveComposeDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveComposeDeployment", resp, "Failure responding to request") + return } return @@ -15964,6 +16118,7 @@ func (client BaseClient) RemoveNodeState(ctx context.Context, nodeName string, t result, err = client.RemoveNodeStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveNodeState", resp, "Failure responding to request") + return } return @@ -16062,6 +16217,7 @@ func (client BaseClient) RemoveReplica(ctx context.Context, nodeName string, par result, err = client.RemoveReplicaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveReplica", resp, "Failure responding to request") + return } return @@ -16182,6 +16338,7 @@ func (client BaseClient) ReportApplicationHealth(ctx context.Context, applicatio result, err = client.ReportApplicationHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportApplicationHealth", resp, "Failure responding to request") + return } return @@ -16299,6 +16456,7 @@ func (client BaseClient) ReportClusterHealth(ctx context.Context, healthInformat result, err = client.ReportClusterHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportClusterHealth", resp, "Failure responding to request") + return } return @@ -16418,6 +16576,7 @@ func (client BaseClient) ReportDeployedApplicationHealth(ctx context.Context, no result, err = client.ReportDeployedApplicationHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedApplicationHealth", resp, "Failure responding to request") + return } return @@ -16544,6 +16703,7 @@ func (client BaseClient) ReportDeployedServicePackageHealth(ctx context.Context, result, err = client.ReportDeployedServicePackageHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedServicePackageHealth", resp, "Failure responding to request") + return } return @@ -16664,6 +16824,7 @@ func (client BaseClient) ReportNodeHealth(ctx context.Context, nodeName string, result, err = client.ReportNodeHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportNodeHealth", resp, "Failure responding to request") + return } return @@ -16782,6 +16943,7 @@ func (client BaseClient) ReportPartitionHealth(ctx context.Context, partitionID result, err = client.ReportPartitionHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportPartitionHealth", resp, "Failure responding to request") + return } return @@ -16903,6 +17065,7 @@ func (client BaseClient) ReportReplicaHealth(ctx context.Context, partitionID uu result, err = client.ReportReplicaHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportReplicaHealth", resp, "Failure responding to request") + return } return @@ -17027,6 +17190,7 @@ func (client BaseClient) ReportServiceHealth(ctx context.Context, serviceID stri result, err = client.ReportServiceHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportServiceHealth", resp, "Failure responding to request") + return } return @@ -17122,6 +17286,7 @@ func (client BaseClient) ResetPartitionLoad(ctx context.Context, partitionID uui result, err = client.ResetPartitionLoadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResetPartitionLoad", resp, "Failure responding to request") + return } return @@ -17230,6 +17395,7 @@ func (client BaseClient) ResolveService(ctx context.Context, serviceID string, p result, err = client.ResolveServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResolveService", resp, "Failure responding to request") + return } return @@ -17340,6 +17506,7 @@ func (client BaseClient) RestartDeployedCodePackage(ctx context.Context, nodeNam result, err = client.RestartDeployedCodePackageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartDeployedCodePackage", resp, "Failure responding to request") + return } return @@ -17435,6 +17602,7 @@ func (client BaseClient) RestartNode(ctx context.Context, nodeName string, resta result, err = client.RestartNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartNode", resp, "Failure responding to request") + return } return @@ -17529,6 +17697,7 @@ func (client BaseClient) RestartReplica(ctx context.Context, nodeName string, pa result, err = client.RestartReplicaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartReplica", resp, "Failure responding to request") + return } return @@ -17633,6 +17802,7 @@ func (client BaseClient) RestorePartition(ctx context.Context, partitionID uuid. result, err = client.RestorePartitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestorePartition", resp, "Failure responding to request") + return } return @@ -17733,6 +17903,7 @@ func (client BaseClient) ResumeApplicationBackup(ctx context.Context, applicatio result, err = client.ResumeApplicationBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeApplicationBackup", resp, "Failure responding to request") + return } return @@ -17830,6 +18001,7 @@ func (client BaseClient) ResumeApplicationUpgrade(ctx context.Context, applicati result, err = client.ResumeApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -17923,6 +18095,7 @@ func (client BaseClient) ResumeClusterUpgrade(ctx context.Context, resumeCluster result, err = client.ResumeClusterUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeClusterUpgrade", resp, "Failure responding to request") + return } return @@ -18010,6 +18183,7 @@ func (client BaseClient) ResumePartitionBackup(ctx context.Context, partitionID result, err = client.ResumePartitionBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumePartitionBackup", resp, "Failure responding to request") + return } return @@ -18103,6 +18277,7 @@ func (client BaseClient) ResumeServiceBackup(ctx context.Context, serviceID stri result, err = client.ResumeServiceBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeServiceBackup", resp, "Failure responding to request") + return } return @@ -18198,6 +18373,7 @@ func (client BaseClient) RollbackApplicationUpgrade(ctx context.Context, applica result, err = client.RollbackApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -18285,6 +18461,7 @@ func (client BaseClient) RollbackClusterUpgrade(ctx context.Context, timeout *in result, err = client.RollbackClusterUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackClusterUpgrade", resp, "Failure responding to request") + return } return @@ -18370,6 +18547,7 @@ func (client BaseClient) SetUpgradeOrchestrationServiceState(ctx context.Context result, err = client.SetUpgradeOrchestrationServiceStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SetUpgradeOrchestrationServiceState", resp, "Failure responding to request") + return } return @@ -18466,6 +18644,7 @@ func (client BaseClient) StartApplicationUpgrade(ctx context.Context, applicatio result, err = client.StartApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -18577,6 +18756,7 @@ func (client BaseClient) StartChaos(ctx context.Context, chaosParameters ChaosPa result, err = client.StartChaosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartChaos", resp, "Failure responding to request") + return } return @@ -18666,6 +18846,7 @@ func (client BaseClient) StartClusterConfigurationUpgrade(ctx context.Context, c result, err = client.StartClusterConfigurationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartClusterConfigurationUpgrade", resp, "Failure responding to request") + return } return @@ -18764,6 +18945,7 @@ func (client BaseClient) StartClusterUpgrade(ctx context.Context, startClusterUp result, err = client.StartClusterUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartClusterUpgrade", resp, "Failure responding to request") + return } return @@ -18855,6 +19037,7 @@ func (client BaseClient) StartComposeDeploymentUpgrade(ctx context.Context, depl result, err = client.StartComposeDeploymentUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartComposeDeploymentUpgrade", resp, "Failure responding to request") + return } return @@ -18970,6 +19153,7 @@ func (client BaseClient) StartDataLoss(ctx context.Context, serviceID string, pa result, err = client.StartDataLossResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartDataLoss", resp, "Failure responding to request") + return } return @@ -19074,6 +19258,7 @@ func (client BaseClient) StartNodeTransition(ctx context.Context, nodeName strin result, err = client.StartNodeTransitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartNodeTransition", resp, "Failure responding to request") + return } return @@ -19178,6 +19363,7 @@ func (client BaseClient) StartPartitionRestart(ctx context.Context, serviceID st result, err = client.StartPartitionRestartResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartPartitionRestart", resp, "Failure responding to request") + return } return @@ -19286,6 +19472,7 @@ func (client BaseClient) StartQuorumLoss(ctx context.Context, serviceID string, result, err = client.StartQuorumLossResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartQuorumLoss", resp, "Failure responding to request") + return } return @@ -19378,6 +19565,7 @@ func (client BaseClient) StartRollbackComposeDeploymentUpgrade(ctx context.Conte result, err = client.StartRollbackComposeDeploymentUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartRollbackComposeDeploymentUpgrade", resp, "Failure responding to request") + return } return @@ -19468,6 +19656,7 @@ func (client BaseClient) StopChaos(ctx context.Context, timeout *int64) (result result, err = client.StopChaosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StopChaos", resp, "Failure responding to request") + return } return @@ -19553,6 +19742,7 @@ func (client BaseClient) SubmitPropertyBatch(ctx context.Context, nameID string, result, err = client.SubmitPropertyBatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SubmitPropertyBatch", resp, "Failure responding to request") + return } return @@ -19650,6 +19840,7 @@ func (client BaseClient) SuspendApplicationBackup(ctx context.Context, applicati result, err = client.SuspendApplicationBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SuspendApplicationBackup", resp, "Failure responding to request") + return } return @@ -19739,6 +19930,7 @@ func (client BaseClient) SuspendPartitionBackup(ctx context.Context, partitionID result, err = client.SuspendPartitionBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SuspendPartitionBackup", resp, "Failure responding to request") + return } return @@ -19833,6 +20025,7 @@ func (client BaseClient) SuspendServiceBackup(ctx context.Context, serviceID str result, err = client.SuspendServiceBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SuspendServiceBackup", resp, "Failure responding to request") + return } return @@ -19923,6 +20116,7 @@ func (client BaseClient) ToggleVerboseServicePlacementHealthReporting(ctx contex result, err = client.ToggleVerboseServicePlacementHealthReportingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ToggleVerboseServicePlacementHealthReporting", resp, "Failure responding to request") + return } return @@ -20014,6 +20208,7 @@ func (client BaseClient) UnprovisionApplicationType(ctx context.Context, applica result, err = client.UnprovisionApplicationTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionApplicationType", resp, "Failure responding to request") + return } return @@ -20104,6 +20299,7 @@ func (client BaseClient) UnprovisionCluster(ctx context.Context, unprovisionFabr result, err = client.UnprovisionClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionCluster", resp, "Failure responding to request") + return } return @@ -20199,6 +20395,7 @@ func (client BaseClient) UpdateApplicationUpgrade(ctx context.Context, applicati result, err = client.UpdateApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -20299,6 +20496,7 @@ func (client BaseClient) UpdateBackupPolicy(ctx context.Context, backupPolicyDes result, err = client.UpdateBackupPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateBackupPolicy", resp, "Failure responding to request") + return } return @@ -20400,6 +20598,7 @@ func (client BaseClient) UpdateClusterUpgrade(ctx context.Context, updateCluster result, err = client.UpdateClusterUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateClusterUpgrade", resp, "Failure responding to request") + return } return @@ -20482,6 +20681,7 @@ func (client BaseClient) UpdateRepairExecutionState(ctx context.Context, repairT result, err = client.UpdateRepairExecutionStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateRepairExecutionState", resp, "Failure responding to request") + return } return @@ -20559,6 +20759,7 @@ func (client BaseClient) UpdateRepairTaskHealthPolicy(ctx context.Context, repai result, err = client.UpdateRepairTaskHealthPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateRepairTaskHealthPolicy", resp, "Failure responding to request") + return } return @@ -20651,6 +20852,7 @@ func (client BaseClient) UpdateService(ctx context.Context, serviceID string, se result, err = client.UpdateServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateService", resp, "Failure responding to request") + return } return @@ -20747,6 +20949,7 @@ func (client BaseClient) UploadFile(ctx context.Context, contentPath string, tim result, err = client.UploadFileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UploadFile", resp, "Failure responding to request") + return } return @@ -20847,6 +21050,7 @@ func (client BaseClient) UploadFileChunk(ctx context.Context, contentPath string result, err = client.UploadFileChunkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UploadFileChunk", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/6.5/servicefabric/meshapplication.go b/services/servicefabric/6.5/servicefabric/meshapplication.go index a4bfb2fbf72e..0caec4a309f1 100644 --- a/services/servicefabric/6.5/servicefabric/meshapplication.go +++ b/services/servicefabric/6.5/servicefabric/meshapplication.go @@ -84,6 +84,7 @@ func (client MeshApplicationClient) CreateOrUpdate(ctx context.Context, applicat result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshApplicationClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client MeshApplicationClient) Delete(ctx context.Context, applicationResou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshApplicationClient", "Delete", resp, "Failure responding to request") + return } return @@ -230,6 +232,7 @@ func (client MeshApplicationClient) Get(ctx context.Context, applicationResource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshApplicationClient", "Get", resp, "Failure responding to request") + return } return @@ -301,6 +304,7 @@ func (client MeshApplicationClient) List(ctx context.Context) (result PagedAppli result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshApplicationClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/6.5/servicefabric/meshcodepackage.go b/services/servicefabric/6.5/servicefabric/meshcodepackage.go index 766bd0b2bf4e..0c3600f9fd92 100644 --- a/services/servicefabric/6.5/servicefabric/meshcodepackage.go +++ b/services/servicefabric/6.5/servicefabric/meshcodepackage.go @@ -76,6 +76,7 @@ func (client MeshCodePackageClient) GetContainerLogs(ctx context.Context, applic result, err = client.GetContainerLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshCodePackageClient", "GetContainerLogs", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/6.5/servicefabric/meshgateway.go b/services/servicefabric/6.5/servicefabric/meshgateway.go index 6a83327ff827..ec9190e904c6 100644 --- a/services/servicefabric/6.5/servicefabric/meshgateway.go +++ b/services/servicefabric/6.5/servicefabric/meshgateway.go @@ -86,6 +86,7 @@ func (client MeshGatewayClient) CreateOrUpdate(ctx context.Context, gatewayResou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshGatewayClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client MeshGatewayClient) Delete(ctx context.Context, gatewayResourceName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshGatewayClient", "Delete", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client MeshGatewayClient) Get(ctx context.Context, gatewayResourceName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshGatewayClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +306,7 @@ func (client MeshGatewayClient) List(ctx context.Context) (result PagedGatewayRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshGatewayClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/6.5/servicefabric/meshnetwork.go b/services/servicefabric/6.5/servicefabric/meshnetwork.go index 5aac20936c3d..05885b1f8f32 100644 --- a/services/servicefabric/6.5/servicefabric/meshnetwork.go +++ b/services/servicefabric/6.5/servicefabric/meshnetwork.go @@ -83,6 +83,7 @@ func (client MeshNetworkClient) CreateOrUpdate(ctx context.Context, networkResou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshNetworkClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client MeshNetworkClient) Delete(ctx context.Context, networkResourceName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshNetworkClient", "Delete", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client MeshNetworkClient) Get(ctx context.Context, networkResourceName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshNetworkClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client MeshNetworkClient) List(ctx context.Context) (result PagedNetworkRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshNetworkClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/6.5/servicefabric/meshsecret.go b/services/servicefabric/6.5/servicefabric/meshsecret.go index db7630d5bde8..78b7146805f2 100644 --- a/services/servicefabric/6.5/servicefabric/meshsecret.go +++ b/services/servicefabric/6.5/servicefabric/meshsecret.go @@ -83,6 +83,7 @@ func (client MeshSecretClient) CreateOrUpdate(ctx context.Context, secretResourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client MeshSecretClient) Delete(ctx context.Context, secretResourceName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretClient", "Delete", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client MeshSecretClient) Get(ctx context.Context, secretResourceName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client MeshSecretClient) List(ctx context.Context) (result PagedSecretReso result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/6.5/servicefabric/meshsecretvalue.go b/services/servicefabric/6.5/servicefabric/meshsecretvalue.go index 567adb3455d9..cc0c9d03ecde 100644 --- a/services/servicefabric/6.5/servicefabric/meshsecretvalue.go +++ b/services/servicefabric/6.5/servicefabric/meshsecretvalue.go @@ -84,6 +84,7 @@ func (client MeshSecretValueClient) AddValue(ctx context.Context, secretResource result, err = client.AddValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretValueClient", "AddValue", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client MeshSecretValueClient) Delete(ctx context.Context, secretResourceNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretValueClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client MeshSecretValueClient) Get(ctx context.Context, secretResourceName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretValueClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +314,7 @@ func (client MeshSecretValueClient) List(ctx context.Context, secretResourceName result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretValueClient", "List", resp, "Failure responding to request") + return } return @@ -385,6 +389,7 @@ func (client MeshSecretValueClient) Show(ctx context.Context, secretResourceName result, err = client.ShowResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretValueClient", "Show", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/6.5/servicefabric/meshservice.go b/services/servicefabric/6.5/servicefabric/meshservice.go index 28b7b1f8d53e..98582ec66fbc 100644 --- a/services/servicefabric/6.5/servicefabric/meshservice.go +++ b/services/servicefabric/6.5/servicefabric/meshservice.go @@ -74,6 +74,7 @@ func (client MeshServiceClient) Get(ctx context.Context, applicationResourceName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshServiceClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client MeshServiceClient) List(ctx context.Context, applicationResourceNam result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshServiceClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/6.5/servicefabric/meshservicereplica.go b/services/servicefabric/6.5/servicefabric/meshservicereplica.go index 1f7a5a114571..5c647bb1d216 100644 --- a/services/servicefabric/6.5/servicefabric/meshservicereplica.go +++ b/services/servicefabric/6.5/servicefabric/meshservicereplica.go @@ -76,6 +76,7 @@ func (client MeshServiceReplicaClient) Get(ctx context.Context, applicationResou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshServiceReplicaClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client MeshServiceReplicaClient) List(ctx context.Context, applicationReso result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshServiceReplicaClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/6.5/servicefabric/meshvolume.go b/services/servicefabric/6.5/servicefabric/meshvolume.go index cdd32eaf7aed..56e89ede9688 100644 --- a/services/servicefabric/6.5/servicefabric/meshvolume.go +++ b/services/servicefabric/6.5/servicefabric/meshvolume.go @@ -88,6 +88,7 @@ func (client MeshVolumeClient) CreateOrUpdate(ctx context.Context, volumeResourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshVolumeClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client MeshVolumeClient) Delete(ctx context.Context, volumeResourceName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshVolumeClient", "Delete", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client MeshVolumeClient) Get(ctx context.Context, volumeResourceName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshVolumeClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +308,7 @@ func (client MeshVolumeClient) List(ctx context.Context) (result PagedVolumeReso result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshVolumeClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/7.0/servicefabric/client.go b/services/servicefabric/7.0/servicefabric/client.go index 32c1735b5a80..10ab1b1b8ae9 100644 --- a/services/servicefabric/7.0/servicefabric/client.go +++ b/services/servicefabric/7.0/servicefabric/client.go @@ -103,6 +103,7 @@ func (client BaseClient) AddConfigurationParameterOverrides(ctx context.Context, result, err = client.AddConfigurationParameterOverridesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "AddConfigurationParameterOverrides", resp, "Failure responding to request") + return } return @@ -207,6 +208,7 @@ func (client BaseClient) BackupPartition(ctx context.Context, partitionID uuid.U result, err = client.BackupPartitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "BackupPartition", resp, "Failure responding to request") + return } return @@ -323,6 +325,7 @@ func (client BaseClient) CancelOperation(ctx context.Context, operationID uuid.U result, err = client.CancelOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelOperation", resp, "Failure responding to request") + return } return @@ -403,6 +406,7 @@ func (client BaseClient) CancelRepairTask(ctx context.Context, repairTaskCancelD result, err = client.CancelRepairTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelRepairTask", resp, "Failure responding to request") + return } return @@ -488,6 +492,7 @@ func (client BaseClient) CommitImageStoreUploadSession(ctx context.Context, sess result, err = client.CommitImageStoreUploadSessionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CommitImageStoreUploadSession", resp, "Failure responding to request") + return } return @@ -577,6 +582,7 @@ func (client BaseClient) CopyImageStoreContent(ctx context.Context, imageStoreCo result, err = client.CopyImageStoreContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CopyImageStoreContent", resp, "Failure responding to request") + return } return @@ -673,6 +679,7 @@ func (client BaseClient) CreateApplication(ctx context.Context, applicationDescr result, err = client.CreateApplicationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateApplication", resp, "Failure responding to request") + return } return @@ -769,6 +776,7 @@ func (client BaseClient) CreateBackupPolicy(ctx context.Context, backupPolicyDes result, err = client.CreateBackupPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateBackupPolicy", resp, "Failure responding to request") + return } return @@ -860,6 +868,7 @@ func (client BaseClient) CreateComposeDeployment(ctx context.Context, createComp result, err = client.CreateComposeDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateComposeDeployment", resp, "Failure responding to request") + return } return @@ -948,6 +957,7 @@ func (client BaseClient) CreateName(ctx context.Context, nameDescription NameDes result, err = client.CreateNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateName", resp, "Failure responding to request") + return } return @@ -1039,6 +1049,7 @@ func (client BaseClient) CreateRepairTask(ctx context.Context, repairTask Repair result, err = client.CreateRepairTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateRepairTask", resp, "Failure responding to request") + return } return @@ -1132,6 +1143,7 @@ func (client BaseClient) CreateService(ctx context.Context, applicationID string result, err = client.CreateServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateService", resp, "Failure responding to request") + return } return @@ -1234,6 +1246,7 @@ func (client BaseClient) CreateServiceFromTemplate(ctx context.Context, applicat result, err = client.CreateServiceFromTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateServiceFromTemplate", resp, "Failure responding to request") + return } return @@ -1335,6 +1348,7 @@ func (client BaseClient) DeleteApplication(ctx context.Context, applicationID st result, err = client.DeleteApplicationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteApplication", resp, "Failure responding to request") + return } return @@ -1428,6 +1442,7 @@ func (client BaseClient) DeleteBackupPolicy(ctx context.Context, backupPolicyNam result, err = client.DeleteBackupPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteBackupPolicy", resp, "Failure responding to request") + return } return @@ -1517,6 +1532,7 @@ func (client BaseClient) DeleteImageStoreContent(ctx context.Context, contentPat result, err = client.DeleteImageStoreContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteImageStoreContent", resp, "Failure responding to request") + return } return @@ -1607,6 +1623,7 @@ func (client BaseClient) DeleteImageStoreUploadSession(ctx context.Context, sess result, err = client.DeleteImageStoreUploadSessionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteImageStoreUploadSession", resp, "Failure responding to request") + return } return @@ -1693,6 +1710,7 @@ func (client BaseClient) DeleteName(ctx context.Context, nameID string, timeout result, err = client.DeleteNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteName", resp, "Failure responding to request") + return } return @@ -1783,6 +1801,7 @@ func (client BaseClient) DeleteProperty(ctx context.Context, nameID string, prop result, err = client.DeletePropertyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteProperty", resp, "Failure responding to request") + return } return @@ -1866,6 +1885,7 @@ func (client BaseClient) DeleteRepairTask(ctx context.Context, repairTaskDeleteD result, err = client.DeleteRepairTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteRepairTask", resp, "Failure responding to request") + return } return @@ -1957,6 +1977,7 @@ func (client BaseClient) DeleteService(ctx context.Context, serviceID string, fo result, err = client.DeleteServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteService", resp, "Failure responding to request") + return } return @@ -2058,6 +2079,7 @@ func (client BaseClient) DeployServicePackageToNode(ctx context.Context, nodeNam result, err = client.DeployServicePackageToNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeployServicePackageToNode", resp, "Failure responding to request") + return } return @@ -2156,6 +2178,7 @@ func (client BaseClient) DisableApplicationBackup(ctx context.Context, applicati result, err = client.DisableApplicationBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableApplicationBackup", resp, "Failure responding to request") + return } return @@ -2255,6 +2278,7 @@ func (client BaseClient) DisableNode(ctx context.Context, nodeName string, deact result, err = client.DisableNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableNode", resp, "Failure responding to request") + return } return @@ -2352,6 +2376,7 @@ func (client BaseClient) DisablePartitionBackup(ctx context.Context, partitionID result, err = client.DisablePartitionBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisablePartitionBackup", resp, "Failure responding to request") + return } return @@ -2456,6 +2481,7 @@ func (client BaseClient) DisableServiceBackup(ctx context.Context, serviceID str result, err = client.DisableServiceBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableServiceBackup", resp, "Failure responding to request") + return } return @@ -2558,6 +2584,7 @@ func (client BaseClient) EnableApplicationBackup(ctx context.Context, applicatio result, err = client.EnableApplicationBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableApplicationBackup", resp, "Failure responding to request") + return } return @@ -2650,6 +2677,7 @@ func (client BaseClient) EnableNode(ctx context.Context, nodeName string, timeou result, err = client.EnableNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableNode", resp, "Failure responding to request") + return } return @@ -2745,6 +2773,7 @@ func (client BaseClient) EnablePartitionBackup(ctx context.Context, partitionID result, err = client.EnablePartitionBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnablePartitionBackup", resp, "Failure responding to request") + return } return @@ -2847,6 +2876,7 @@ func (client BaseClient) EnableServiceBackup(ctx context.Context, serviceID stri result, err = client.EnableServiceBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableServiceBackup", resp, "Failure responding to request") + return } return @@ -2932,6 +2962,7 @@ func (client BaseClient) ForceApproveRepairTask(ctx context.Context, repairTaskA result, err = client.ForceApproveRepairTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ForceApproveRepairTask", resp, "Failure responding to request") + return } return @@ -3015,6 +3046,7 @@ func (client BaseClient) GetAadMetadata(ctx context.Context, timeout *int64) (re result, err = client.GetAadMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetAadMetadata", resp, "Failure responding to request") + return } return @@ -3114,6 +3146,7 @@ func (client BaseClient) GetAllEntitiesBackedUpByPolicy(ctx context.Context, bac result, err = client.GetAllEntitiesBackedUpByPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetAllEntitiesBackedUpByPolicy", resp, "Failure responding to request") + return } return @@ -3229,6 +3262,7 @@ func (client BaseClient) GetApplicationBackupConfigurationInfo(ctx context.Conte result, err = client.GetApplicationBackupConfigurationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationBackupConfigurationInfo", resp, "Failure responding to request") + return } return @@ -3354,6 +3388,7 @@ func (client BaseClient) GetApplicationBackupList(ctx context.Context, applicati result, err = client.GetApplicationBackupListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationBackupList", resp, "Failure responding to request") + return } return @@ -3474,6 +3509,7 @@ func (client BaseClient) GetApplicationEventList(ctx context.Context, applicatio result, err = client.GetApplicationEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationEventList", resp, "Failure responding to request") + return } return @@ -3632,6 +3668,7 @@ func (client BaseClient) GetApplicationHealth(ctx context.Context, applicationID result, err = client.GetApplicationHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealth", resp, "Failure responding to request") + return } return @@ -3804,6 +3841,7 @@ func (client BaseClient) GetApplicationHealthUsingPolicy(ctx context.Context, ap result, err = client.GetApplicationHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -3926,6 +3964,7 @@ func (client BaseClient) GetApplicationInfo(ctx context.Context, applicationID s result, err = client.GetApplicationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfo", resp, "Failure responding to request") + return } return @@ -4047,6 +4086,7 @@ func (client BaseClient) GetApplicationInfoList(ctx context.Context, application result, err = client.GetApplicationInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfoList", resp, "Failure responding to request") + return } return @@ -4160,6 +4200,7 @@ func (client BaseClient) GetApplicationLoadInfo(ctx context.Context, application result, err = client.GetApplicationLoadInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationLoadInfo", resp, "Failure responding to request") + return } return @@ -4250,6 +4291,7 @@ func (client BaseClient) GetApplicationManifest(ctx context.Context, application result, err = client.GetApplicationManifestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationManifest", resp, "Failure responding to request") + return } return @@ -4345,6 +4387,7 @@ func (client BaseClient) GetApplicationNameInfo(ctx context.Context, serviceID s result, err = client.GetApplicationNameInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationNameInfo", resp, "Failure responding to request") + return } return @@ -4441,6 +4484,7 @@ func (client BaseClient) GetApplicationsEventList(ctx context.Context, startTime result, err = client.GetApplicationsEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationsEventList", resp, "Failure responding to request") + return } return @@ -4565,6 +4609,7 @@ func (client BaseClient) GetApplicationTypeInfoList(ctx context.Context, applica result, err = client.GetApplicationTypeInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoList", resp, "Failure responding to request") + return } return @@ -4693,6 +4738,7 @@ func (client BaseClient) GetApplicationTypeInfoListByName(ctx context.Context, a result, err = client.GetApplicationTypeInfoListByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoListByName", resp, "Failure responding to request") + return } return @@ -4803,6 +4849,7 @@ func (client BaseClient) GetApplicationUpgrade(ctx context.Context, applicationI result, err = client.GetApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -4892,6 +4939,7 @@ func (client BaseClient) GetBackupPolicyByName(ctx context.Context, backupPolicy result, err = client.GetBackupPolicyByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetBackupPolicyByName", resp, "Failure responding to request") + return } return @@ -4993,6 +5041,7 @@ func (client BaseClient) GetBackupPolicyList(ctx context.Context, continuationTo result, err = client.GetBackupPolicyListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetBackupPolicyList", resp, "Failure responding to request") + return } return @@ -5104,6 +5153,7 @@ func (client BaseClient) GetBackupsFromBackupLocation(ctx context.Context, getBa result, err = client.GetBackupsFromBackupLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetBackupsFromBackupLocation", resp, "Failure responding to request") + return } return @@ -5199,6 +5249,7 @@ func (client BaseClient) GetChaos(ctx context.Context, timeout *int64) (result C result, err = client.GetChaosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaos", resp, "Failure responding to request") + return } return @@ -5308,6 +5359,7 @@ func (client BaseClient) GetChaosEvents(ctx context.Context, continuationToken s result, err = client.GetChaosEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaosEvents", resp, "Failure responding to request") + return } return @@ -5407,6 +5459,7 @@ func (client BaseClient) GetChaosSchedule(ctx context.Context, timeout *int64) ( result, err = client.GetChaosScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaosSchedule", resp, "Failure responding to request") + return } return @@ -5494,6 +5547,7 @@ func (client BaseClient) GetClusterConfiguration(ctx context.Context, configurat result, err = client.GetClusterConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterConfiguration", resp, "Failure responding to request") + return } return @@ -5580,6 +5634,7 @@ func (client BaseClient) GetClusterConfigurationUpgradeStatus(ctx context.Contex result, err = client.GetClusterConfigurationUpgradeStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterConfigurationUpgradeStatus", resp, "Failure responding to request") + return } return @@ -5672,6 +5727,7 @@ func (client BaseClient) GetClusterEventList(ctx context.Context, startTimeUtc s result, err = client.GetClusterEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterEventList", resp, "Failure responding to request") + return } return @@ -5831,6 +5887,7 @@ func (client BaseClient) GetClusterHealth(ctx context.Context, nodesHealthStateF result, err = client.GetClusterHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealth", resp, "Failure responding to request") + return } return @@ -5943,6 +6000,7 @@ func (client BaseClient) GetClusterHealthChunk(ctx context.Context, timeout *int result, err = client.GetClusterHealthChunkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunk", resp, "Failure responding to request") + return } return @@ -6049,6 +6107,7 @@ func (client BaseClient) GetClusterHealthChunkUsingPolicyAndAdvancedFilters(ctx result, err = client.GetClusterHealthChunkUsingPolicyAndAdvancedFiltersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunkUsingPolicyAndAdvancedFilters", resp, "Failure responding to request") + return } return @@ -6211,6 +6270,7 @@ func (client BaseClient) GetClusterHealthUsingPolicy(ctx context.Context, nodesH result, err = client.GetClusterHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -6326,6 +6386,7 @@ func (client BaseClient) GetClusterLoad(ctx context.Context, timeout *int64) (re result, err = client.GetClusterLoadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterLoad", resp, "Failure responding to request") + return } return @@ -6420,6 +6481,7 @@ func (client BaseClient) GetClusterManifest(ctx context.Context, timeout *int64) result, err = client.GetClusterManifestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterManifest", resp, "Failure responding to request") + return } return @@ -6505,6 +6567,7 @@ func (client BaseClient) GetClusterUpgradeProgress(ctx context.Context, timeout result, err = client.GetClusterUpgradeProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterUpgradeProgress", resp, "Failure responding to request") + return } return @@ -6590,6 +6653,7 @@ func (client BaseClient) GetClusterVersion(ctx context.Context, timeout *int64) result, err = client.GetClusterVersionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterVersion", resp, "Failure responding to request") + return } return @@ -6677,6 +6741,7 @@ func (client BaseClient) GetComposeDeploymentStatus(ctx context.Context, deploym result, err = client.GetComposeDeploymentStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentStatus", resp, "Failure responding to request") + return } return @@ -6781,6 +6846,7 @@ func (client BaseClient) GetComposeDeploymentStatusList(ctx context.Context, con result, err = client.GetComposeDeploymentStatusListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentStatusList", resp, "Failure responding to request") + return } return @@ -6875,6 +6941,7 @@ func (client BaseClient) GetComposeDeploymentUpgradeProgress(ctx context.Context result, err = client.GetComposeDeploymentUpgradeProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentUpgradeProgress", resp, "Failure responding to request") + return } return @@ -6964,6 +7031,7 @@ func (client BaseClient) GetConfigurationOverrides(ctx context.Context, nodeName result, err = client.GetConfigurationOverridesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetConfigurationOverrides", resp, "Failure responding to request") + return } return @@ -7065,6 +7133,7 @@ func (client BaseClient) GetContainerLogsDeployedOnNode(ctx context.Context, nod result, err = client.GetContainerLogsDeployedOnNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetContainerLogsDeployedOnNode", resp, "Failure responding to request") + return } return @@ -7172,6 +7241,7 @@ func (client BaseClient) GetContainersEventList(ctx context.Context, startTimeUt result, err = client.GetContainersEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetContainersEventList", resp, "Failure responding to request") + return } return @@ -7268,6 +7338,7 @@ func (client BaseClient) GetCorrelatedEventList(ctx context.Context, eventInstan result, err = client.GetCorrelatedEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetCorrelatedEventList", resp, "Failure responding to request") + return } return @@ -7364,6 +7435,7 @@ func (client BaseClient) GetDataLossProgress(ctx context.Context, serviceID stri result, err = client.GetDataLossProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDataLossProgress", resp, "Failure responding to request") + return } return @@ -7499,6 +7571,7 @@ func (client BaseClient) GetDeployedApplicationHealth(ctx context.Context, nodeN result, err = client.GetDeployedApplicationHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealth", resp, "Failure responding to request") + return } return @@ -7655,6 +7728,7 @@ func (client BaseClient) GetDeployedApplicationHealthUsingPolicy(ctx context.Con result, err = client.GetDeployedApplicationHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -7778,6 +7852,7 @@ func (client BaseClient) GetDeployedApplicationInfo(ctx context.Context, nodeNam result, err = client.GetDeployedApplicationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfo", resp, "Failure responding to request") + return } return @@ -7895,6 +7970,7 @@ func (client BaseClient) GetDeployedApplicationInfoList(ctx context.Context, nod result, err = client.GetDeployedApplicationInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfoList", resp, "Failure responding to request") + return } return @@ -8007,6 +8083,7 @@ func (client BaseClient) GetDeployedCodePackageInfoList(ctx context.Context, nod result, err = client.GetDeployedCodePackageInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedCodePackageInfoList", resp, "Failure responding to request") + return } return @@ -8126,6 +8203,7 @@ func (client BaseClient) GetDeployedServicePackageHealth(ctx context.Context, no result, err = client.GetDeployedServicePackageHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealth", resp, "Failure responding to request") + return } return @@ -8252,6 +8330,7 @@ func (client BaseClient) GetDeployedServicePackageHealthUsingPolicy(ctx context. result, err = client.GetDeployedServicePackageHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -8359,6 +8438,7 @@ func (client BaseClient) GetDeployedServicePackageInfoList(ctx context.Context, result, err = client.GetDeployedServicePackageInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoList", resp, "Failure responding to request") + return } return @@ -8457,6 +8537,7 @@ func (client BaseClient) GetDeployedServicePackageInfoListByName(ctx context.Con result, err = client.GetDeployedServicePackageInfoListByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoListByName", resp, "Failure responding to request") + return } return @@ -8552,6 +8633,7 @@ func (client BaseClient) GetDeployedServiceReplicaDetailInfo(ctx context.Context result, err = client.GetDeployedServiceReplicaDetailInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfo", resp, "Failure responding to request") + return } return @@ -8646,6 +8728,7 @@ func (client BaseClient) GetDeployedServiceReplicaDetailInfoByPartitionID(ctx co result, err = client.GetDeployedServiceReplicaDetailInfoByPartitionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfoByPartitionID", resp, "Failure responding to request") + return } return @@ -8747,6 +8830,7 @@ func (client BaseClient) GetDeployedServiceReplicaInfoList(ctx context.Context, result, err = client.GetDeployedServiceReplicaInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaInfoList", resp, "Failure responding to request") + return } return @@ -8855,6 +8939,7 @@ func (client BaseClient) GetDeployedServiceTypeInfoByName(ctx context.Context, n result, err = client.GetDeployedServiceTypeInfoByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoByName", resp, "Failure responding to request") + return } return @@ -8959,6 +9044,7 @@ func (client BaseClient) GetDeployedServiceTypeInfoList(ctx context.Context, nod result, err = client.GetDeployedServiceTypeInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoList", resp, "Failure responding to request") + return } return @@ -9067,6 +9153,7 @@ func (client BaseClient) GetFaultOperationList(ctx context.Context, typeFilter i result, err = client.GetFaultOperationListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetFaultOperationList", resp, "Failure responding to request") + return } return @@ -9155,6 +9242,7 @@ func (client BaseClient) GetImageStoreContent(ctx context.Context, contentPath s result, err = client.GetImageStoreContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreContent", resp, "Failure responding to request") + return } return @@ -9245,6 +9333,7 @@ func (client BaseClient) GetImageStoreFolderSize(ctx context.Context, contentPat result, err = client.GetImageStoreFolderSizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreFolderSize", resp, "Failure responding to request") + return } return @@ -9334,6 +9423,7 @@ func (client BaseClient) GetImageStoreInfo(ctx context.Context, timeout *int64) result, err = client.GetImageStoreInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreInfo", resp, "Failure responding to request") + return } return @@ -9418,6 +9508,7 @@ func (client BaseClient) GetImageStoreRootContent(ctx context.Context, timeout * result, err = client.GetImageStoreRootContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreRootContent", resp, "Failure responding to request") + return } return @@ -9502,6 +9593,7 @@ func (client BaseClient) GetImageStoreRootFolderSize(ctx context.Context, timeou result, err = client.GetImageStoreRootFolderSizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreRootFolderSize", resp, "Failure responding to request") + return } return @@ -9589,6 +9681,7 @@ func (client BaseClient) GetImageStoreUploadSessionByID(ctx context.Context, ses result, err = client.GetImageStoreUploadSessionByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreUploadSessionByID", resp, "Failure responding to request") + return } return @@ -9676,6 +9769,7 @@ func (client BaseClient) GetImageStoreUploadSessionByPath(ctx context.Context, c result, err = client.GetImageStoreUploadSessionByPathResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreUploadSessionByPath", resp, "Failure responding to request") + return } return @@ -9765,6 +9859,7 @@ func (client BaseClient) GetNameExistsInfo(ctx context.Context, nameID string, t result, err = client.GetNameExistsInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNameExistsInfo", resp, "Failure responding to request") + return } return @@ -9861,6 +9956,7 @@ func (client BaseClient) GetNodeEventList(ctx context.Context, nodeName string, result, err = client.GetNodeEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeEventList", resp, "Failure responding to request") + return } return @@ -9978,6 +10074,7 @@ func (client BaseClient) GetNodeHealth(ctx context.Context, nodeName string, eve result, err = client.GetNodeHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealth", resp, "Failure responding to request") + return } return @@ -10092,6 +10189,7 @@ func (client BaseClient) GetNodeHealthUsingPolicy(ctx context.Context, nodeName result, err = client.GetNodeHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -10191,6 +10289,7 @@ func (client BaseClient) GetNodeInfo(ctx context.Context, nodeName string, timeo result, err = client.GetNodeInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfo", resp, "Failure responding to request") + return } return @@ -10294,6 +10393,7 @@ func (client BaseClient) GetNodeInfoList(ctx context.Context, continuationToken result, err = client.GetNodeInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfoList", resp, "Failure responding to request") + return } return @@ -10393,6 +10493,7 @@ func (client BaseClient) GetNodeLoadInfo(ctx context.Context, nodeName string, t result, err = client.GetNodeLoadInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeLoadInfo", resp, "Failure responding to request") + return } return @@ -10489,6 +10590,7 @@ func (client BaseClient) GetNodesEventList(ctx context.Context, startTimeUtc str result, err = client.GetNodesEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodesEventList", resp, "Failure responding to request") + return } return @@ -10588,6 +10690,7 @@ func (client BaseClient) GetNodeTransitionProgress(ctx context.Context, nodeName result, err = client.GetNodeTransitionProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeTransitionProgress", resp, "Failure responding to request") + return } return @@ -10679,6 +10782,7 @@ func (client BaseClient) GetPartitionBackupConfigurationInfo(ctx context.Context result, err = client.GetPartitionBackupConfigurationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionBackupConfigurationInfo", resp, "Failure responding to request") + return } return @@ -10778,6 +10882,7 @@ func (client BaseClient) GetPartitionBackupList(ctx context.Context, partitionID result, err = client.GetPartitionBackupListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionBackupList", resp, "Failure responding to request") + return } return @@ -10879,6 +10984,7 @@ func (client BaseClient) GetPartitionBackupProgress(ctx context.Context, partiti result, err = client.GetPartitionBackupProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionBackupProgress", resp, "Failure responding to request") + return } return @@ -10976,6 +11082,7 @@ func (client BaseClient) GetPartitionEventList(ctx context.Context, partitionID result, err = client.GetPartitionEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionEventList", resp, "Failure responding to request") + return } return @@ -11112,6 +11219,7 @@ func (client BaseClient) GetPartitionHealth(ctx context.Context, partitionID uui result, err = client.GetPartitionHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealth", resp, "Failure responding to request") + return } return @@ -11261,6 +11369,7 @@ func (client BaseClient) GetPartitionHealthUsingPolicy(ctx context.Context, part result, err = client.GetPartitionHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -11372,6 +11481,7 @@ func (client BaseClient) GetPartitionInfo(ctx context.Context, partitionID uuid. result, err = client.GetPartitionInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfo", resp, "Failure responding to request") + return } return @@ -11471,6 +11581,7 @@ func (client BaseClient) GetPartitionInfoList(ctx context.Context, serviceID str result, err = client.GetPartitionInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfoList", resp, "Failure responding to request") + return } return @@ -11565,6 +11676,7 @@ func (client BaseClient) GetPartitionLoadInformation(ctx context.Context, partit result, err = client.GetPartitionLoadInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionLoadInformation", resp, "Failure responding to request") + return } return @@ -11663,6 +11775,7 @@ func (client BaseClient) GetPartitionReplicaEventList(ctx context.Context, parti result, err = client.GetPartitionReplicaEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionReplicaEventList", resp, "Failure responding to request") + return } return @@ -11772,6 +11885,7 @@ func (client BaseClient) GetPartitionReplicasEventList(ctx context.Context, part result, err = client.GetPartitionReplicasEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionReplicasEventList", resp, "Failure responding to request") + return } return @@ -11880,6 +11994,7 @@ func (client BaseClient) GetPartitionRestartProgress(ctx context.Context, servic result, err = client.GetPartitionRestartProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionRestartProgress", resp, "Failure responding to request") + return } return @@ -11972,6 +12087,7 @@ func (client BaseClient) GetPartitionRestoreProgress(ctx context.Context, partit result, err = client.GetPartitionRestoreProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionRestoreProgress", resp, "Failure responding to request") + return } return @@ -12068,6 +12184,7 @@ func (client BaseClient) GetPartitionsEventList(ctx context.Context, startTimeUt result, err = client.GetPartitionsEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionsEventList", resp, "Failure responding to request") + return } return @@ -12166,6 +12283,7 @@ func (client BaseClient) GetPropertyInfo(ctx context.Context, nameID string, pro result, err = client.GetPropertyInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPropertyInfo", resp, "Failure responding to request") + return } return @@ -12265,6 +12383,7 @@ func (client BaseClient) GetPropertyInfoList(ctx context.Context, nameID string, result, err = client.GetPropertyInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPropertyInfoList", resp, "Failure responding to request") + return } return @@ -12364,6 +12483,7 @@ func (client BaseClient) GetProvisionedFabricCodeVersionInfoList(ctx context.Con result, err = client.GetProvisionedFabricCodeVersionInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricCodeVersionInfoList", resp, "Failure responding to request") + return } return @@ -12454,6 +12574,7 @@ func (client BaseClient) GetProvisionedFabricConfigVersionInfoList(ctx context.C result, err = client.GetProvisionedFabricConfigVersionInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricConfigVersionInfoList", resp, "Failure responding to request") + return } return @@ -12550,6 +12671,7 @@ func (client BaseClient) GetQuorumLossProgress(ctx context.Context, serviceID st result, err = client.GetQuorumLossProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetQuorumLossProgress", resp, "Failure responding to request") + return } return @@ -12640,6 +12762,7 @@ func (client BaseClient) GetRepairTaskList(ctx context.Context, taskIDFilter str result, err = client.GetRepairTaskListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetRepairTaskList", resp, "Failure responding to request") + return } return @@ -12747,6 +12870,7 @@ func (client BaseClient) GetReplicaHealth(ctx context.Context, partitionID uuid. result, err = client.GetReplicaHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealth", resp, "Failure responding to request") + return } return @@ -12868,6 +12992,7 @@ func (client BaseClient) GetReplicaHealthUsingPolicy(ctx context.Context, partit result, err = client.GetReplicaHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -12970,6 +13095,7 @@ func (client BaseClient) GetReplicaInfo(ctx context.Context, partitionID uuid.UU result, err = client.GetReplicaInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfo", resp, "Failure responding to request") + return } return @@ -13066,6 +13192,7 @@ func (client BaseClient) GetReplicaInfoList(ctx context.Context, partitionID uui result, err = client.GetReplicaInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfoList", resp, "Failure responding to request") + return } return @@ -13176,6 +13303,7 @@ func (client BaseClient) GetServiceBackupConfigurationInfo(ctx context.Context, result, err = client.GetServiceBackupConfigurationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceBackupConfigurationInfo", resp, "Failure responding to request") + return } return @@ -13301,6 +13429,7 @@ func (client BaseClient) GetServiceBackupList(ctx context.Context, serviceID str result, err = client.GetServiceBackupListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceBackupList", resp, "Failure responding to request") + return } return @@ -13414,6 +13543,7 @@ func (client BaseClient) GetServiceDescription(ctx context.Context, serviceID st result, err = client.GetServiceDescriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceDescription", resp, "Failure responding to request") + return } return @@ -13515,6 +13645,7 @@ func (client BaseClient) GetServiceEventList(ctx context.Context, serviceID stri result, err = client.GetServiceEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceEventList", resp, "Failure responding to request") + return } return @@ -13658,6 +13789,7 @@ func (client BaseClient) GetServiceHealth(ctx context.Context, serviceID string, result, err = client.GetServiceHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealth", resp, "Failure responding to request") + return } return @@ -13812,6 +13944,7 @@ func (client BaseClient) GetServiceHealthUsingPolicy(ctx context.Context, servic result, err = client.GetServiceHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -13931,6 +14064,7 @@ func (client BaseClient) GetServiceInfo(ctx context.Context, applicationID strin result, err = client.GetServiceInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfo", resp, "Failure responding to request") + return } return @@ -14032,6 +14166,7 @@ func (client BaseClient) GetServiceInfoList(ctx context.Context, applicationID s result, err = client.GetServiceInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfoList", resp, "Failure responding to request") + return } return @@ -14131,6 +14266,7 @@ func (client BaseClient) GetServiceManifest(ctx context.Context, applicationType result, err = client.GetServiceManifestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceManifest", resp, "Failure responding to request") + return } return @@ -14223,6 +14359,7 @@ func (client BaseClient) GetServiceNameInfo(ctx context.Context, partitionID uui result, err = client.GetServiceNameInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceNameInfo", resp, "Failure responding to request") + return } return @@ -14319,6 +14456,7 @@ func (client BaseClient) GetServicesEventList(ctx context.Context, startTimeUtc result, err = client.GetServicesEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServicesEventList", resp, "Failure responding to request") + return } return @@ -14419,6 +14557,7 @@ func (client BaseClient) GetServiceTypeInfoByName(ctx context.Context, applicati result, err = client.GetServiceTypeInfoByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceTypeInfoByName", resp, "Failure responding to request") + return } return @@ -14513,6 +14652,7 @@ func (client BaseClient) GetServiceTypeInfoList(ctx context.Context, application result, err = client.GetServiceTypeInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceTypeInfoList", resp, "Failure responding to request") + return } return @@ -14611,6 +14751,7 @@ func (client BaseClient) GetSubNameInfoList(ctx context.Context, nameID string, result, err = client.GetSubNameInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetSubNameInfoList", resp, "Failure responding to request") + return } return @@ -14719,6 +14860,7 @@ func (client BaseClient) GetUnplacedReplicaInformation(ctx context.Context, serv result, err = client.GetUnplacedReplicaInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetUnplacedReplicaInformation", resp, "Failure responding to request") + return } return @@ -14816,6 +14958,7 @@ func (client BaseClient) GetUpgradeOrchestrationServiceState(ctx context.Context result, err = client.GetUpgradeOrchestrationServiceStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetUpgradeOrchestrationServiceState", resp, "Failure responding to request") + return } return @@ -14915,6 +15058,7 @@ func (client BaseClient) InvokeContainerAPI(ctx context.Context, nodeName string result, err = client.InvokeContainerAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeContainerAPI", resp, "Failure responding to request") + return } return @@ -15020,6 +15164,7 @@ func (client BaseClient) InvokeInfrastructureCommand(ctx context.Context, comman result, err = client.InvokeInfrastructureCommandResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureCommand", resp, "Failure responding to request") + return } return @@ -15119,6 +15264,7 @@ func (client BaseClient) InvokeInfrastructureQuery(ctx context.Context, command result, err = client.InvokeInfrastructureQueryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureQuery", resp, "Failure responding to request") + return } return @@ -15216,6 +15362,7 @@ func (client BaseClient) MovePrimaryReplica(ctx context.Context, partitionID uui result, err = client.MovePrimaryReplicaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "MovePrimaryReplica", resp, "Failure responding to request") + return } return @@ -15323,6 +15470,7 @@ func (client BaseClient) MoveSecondaryReplica(ctx context.Context, partitionID u result, err = client.MoveSecondaryReplicaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "MoveSecondaryReplica", resp, "Failure responding to request") + return } return @@ -15427,6 +15575,7 @@ func (client BaseClient) PostChaosSchedule(ctx context.Context, chaosSchedule Ch result, err = client.PostChaosScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "PostChaosSchedule", resp, "Failure responding to request") + return } return @@ -15519,6 +15668,7 @@ func (client BaseClient) ProvisionApplicationType(ctx context.Context, provision result, err = client.ProvisionApplicationTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionApplicationType", resp, "Failure responding to request") + return } return @@ -15605,6 +15755,7 @@ func (client BaseClient) ProvisionCluster(ctx context.Context, provisionFabricDe result, err = client.ProvisionClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionCluster", resp, "Failure responding to request") + return } return @@ -15695,6 +15846,7 @@ func (client BaseClient) PutProperty(ctx context.Context, nameID string, propert result, err = client.PutPropertyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "PutProperty", resp, "Failure responding to request") + return } return @@ -15785,6 +15937,7 @@ func (client BaseClient) RecoverAllPartitions(ctx context.Context, timeout *int6 result, err = client.RecoverAllPartitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverAllPartitions", resp, "Failure responding to request") + return } return @@ -15870,6 +16023,7 @@ func (client BaseClient) RecoverPartition(ctx context.Context, partitionID uuid. result, err = client.RecoverPartitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverPartition", resp, "Failure responding to request") + return } return @@ -15964,6 +16118,7 @@ func (client BaseClient) RecoverServicePartitions(ctx context.Context, serviceID result, err = client.RecoverServicePartitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverServicePartitions", resp, "Failure responding to request") + return } return @@ -16053,6 +16208,7 @@ func (client BaseClient) RecoverSystemPartitions(ctx context.Context, timeout *i result, err = client.RecoverSystemPartitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverSystemPartitions", resp, "Failure responding to request") + return } return @@ -16137,6 +16293,7 @@ func (client BaseClient) RemoveComposeDeployment(ctx context.Context, deployment result, err = client.RemoveComposeDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveComposeDeployment", resp, "Failure responding to request") + return } return @@ -16225,6 +16382,7 @@ func (client BaseClient) RemoveConfigurationOverrides(ctx context.Context, nodeN result, err = client.RemoveConfigurationOverridesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveConfigurationOverrides", resp, "Failure responding to request") + return } return @@ -16324,6 +16482,7 @@ func (client BaseClient) RemoveNodeState(ctx context.Context, nodeName string, t result, err = client.RemoveNodeStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveNodeState", resp, "Failure responding to request") + return } return @@ -16422,6 +16581,7 @@ func (client BaseClient) RemoveReplica(ctx context.Context, nodeName string, par result, err = client.RemoveReplicaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveReplica", resp, "Failure responding to request") + return } return @@ -16542,6 +16702,7 @@ func (client BaseClient) ReportApplicationHealth(ctx context.Context, applicatio result, err = client.ReportApplicationHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportApplicationHealth", resp, "Failure responding to request") + return } return @@ -16659,6 +16820,7 @@ func (client BaseClient) ReportClusterHealth(ctx context.Context, healthInformat result, err = client.ReportClusterHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportClusterHealth", resp, "Failure responding to request") + return } return @@ -16778,6 +16940,7 @@ func (client BaseClient) ReportDeployedApplicationHealth(ctx context.Context, no result, err = client.ReportDeployedApplicationHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedApplicationHealth", resp, "Failure responding to request") + return } return @@ -16904,6 +17067,7 @@ func (client BaseClient) ReportDeployedServicePackageHealth(ctx context.Context, result, err = client.ReportDeployedServicePackageHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedServicePackageHealth", resp, "Failure responding to request") + return } return @@ -17024,6 +17188,7 @@ func (client BaseClient) ReportNodeHealth(ctx context.Context, nodeName string, result, err = client.ReportNodeHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportNodeHealth", resp, "Failure responding to request") + return } return @@ -17142,6 +17307,7 @@ func (client BaseClient) ReportPartitionHealth(ctx context.Context, partitionID result, err = client.ReportPartitionHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportPartitionHealth", resp, "Failure responding to request") + return } return @@ -17263,6 +17429,7 @@ func (client BaseClient) ReportReplicaHealth(ctx context.Context, partitionID uu result, err = client.ReportReplicaHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportReplicaHealth", resp, "Failure responding to request") + return } return @@ -17387,6 +17554,7 @@ func (client BaseClient) ReportServiceHealth(ctx context.Context, serviceID stri result, err = client.ReportServiceHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportServiceHealth", resp, "Failure responding to request") + return } return @@ -17482,6 +17650,7 @@ func (client BaseClient) ResetPartitionLoad(ctx context.Context, partitionID uui result, err = client.ResetPartitionLoadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResetPartitionLoad", resp, "Failure responding to request") + return } return @@ -17590,6 +17759,7 @@ func (client BaseClient) ResolveService(ctx context.Context, serviceID string, p result, err = client.ResolveServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResolveService", resp, "Failure responding to request") + return } return @@ -17700,6 +17870,7 @@ func (client BaseClient) RestartDeployedCodePackage(ctx context.Context, nodeNam result, err = client.RestartDeployedCodePackageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartDeployedCodePackage", resp, "Failure responding to request") + return } return @@ -17795,6 +17966,7 @@ func (client BaseClient) RestartNode(ctx context.Context, nodeName string, resta result, err = client.RestartNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartNode", resp, "Failure responding to request") + return } return @@ -17889,6 +18061,7 @@ func (client BaseClient) RestartReplica(ctx context.Context, nodeName string, pa result, err = client.RestartReplicaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartReplica", resp, "Failure responding to request") + return } return @@ -17993,6 +18166,7 @@ func (client BaseClient) RestorePartition(ctx context.Context, partitionID uuid. result, err = client.RestorePartitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestorePartition", resp, "Failure responding to request") + return } return @@ -18093,6 +18267,7 @@ func (client BaseClient) ResumeApplicationBackup(ctx context.Context, applicatio result, err = client.ResumeApplicationBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeApplicationBackup", resp, "Failure responding to request") + return } return @@ -18190,6 +18365,7 @@ func (client BaseClient) ResumeApplicationUpgrade(ctx context.Context, applicati result, err = client.ResumeApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -18283,6 +18459,7 @@ func (client BaseClient) ResumeClusterUpgrade(ctx context.Context, resumeCluster result, err = client.ResumeClusterUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeClusterUpgrade", resp, "Failure responding to request") + return } return @@ -18370,6 +18547,7 @@ func (client BaseClient) ResumePartitionBackup(ctx context.Context, partitionID result, err = client.ResumePartitionBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumePartitionBackup", resp, "Failure responding to request") + return } return @@ -18463,6 +18641,7 @@ func (client BaseClient) ResumeServiceBackup(ctx context.Context, serviceID stri result, err = client.ResumeServiceBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeServiceBackup", resp, "Failure responding to request") + return } return @@ -18558,6 +18737,7 @@ func (client BaseClient) RollbackApplicationUpgrade(ctx context.Context, applica result, err = client.RollbackApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -18645,6 +18825,7 @@ func (client BaseClient) RollbackClusterUpgrade(ctx context.Context, timeout *in result, err = client.RollbackClusterUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackClusterUpgrade", resp, "Failure responding to request") + return } return @@ -18730,6 +18911,7 @@ func (client BaseClient) SetUpgradeOrchestrationServiceState(ctx context.Context result, err = client.SetUpgradeOrchestrationServiceStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SetUpgradeOrchestrationServiceState", resp, "Failure responding to request") + return } return @@ -18826,6 +19008,7 @@ func (client BaseClient) StartApplicationUpgrade(ctx context.Context, applicatio result, err = client.StartApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -18937,6 +19120,7 @@ func (client BaseClient) StartChaos(ctx context.Context, chaosParameters ChaosPa result, err = client.StartChaosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartChaos", resp, "Failure responding to request") + return } return @@ -19026,6 +19210,7 @@ func (client BaseClient) StartClusterConfigurationUpgrade(ctx context.Context, c result, err = client.StartClusterConfigurationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartClusterConfigurationUpgrade", resp, "Failure responding to request") + return } return @@ -19124,6 +19309,7 @@ func (client BaseClient) StartClusterUpgrade(ctx context.Context, startClusterUp result, err = client.StartClusterUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartClusterUpgrade", resp, "Failure responding to request") + return } return @@ -19215,6 +19401,7 @@ func (client BaseClient) StartComposeDeploymentUpgrade(ctx context.Context, depl result, err = client.StartComposeDeploymentUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartComposeDeploymentUpgrade", resp, "Failure responding to request") + return } return @@ -19330,6 +19517,7 @@ func (client BaseClient) StartDataLoss(ctx context.Context, serviceID string, pa result, err = client.StartDataLossResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartDataLoss", resp, "Failure responding to request") + return } return @@ -19434,6 +19622,7 @@ func (client BaseClient) StartNodeTransition(ctx context.Context, nodeName strin result, err = client.StartNodeTransitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartNodeTransition", resp, "Failure responding to request") + return } return @@ -19538,6 +19727,7 @@ func (client BaseClient) StartPartitionRestart(ctx context.Context, serviceID st result, err = client.StartPartitionRestartResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartPartitionRestart", resp, "Failure responding to request") + return } return @@ -19646,6 +19836,7 @@ func (client BaseClient) StartQuorumLoss(ctx context.Context, serviceID string, result, err = client.StartQuorumLossResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartQuorumLoss", resp, "Failure responding to request") + return } return @@ -19738,6 +19929,7 @@ func (client BaseClient) StartRollbackComposeDeploymentUpgrade(ctx context.Conte result, err = client.StartRollbackComposeDeploymentUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartRollbackComposeDeploymentUpgrade", resp, "Failure responding to request") + return } return @@ -19828,6 +20020,7 @@ func (client BaseClient) StopChaos(ctx context.Context, timeout *int64) (result result, err = client.StopChaosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StopChaos", resp, "Failure responding to request") + return } return @@ -19913,6 +20106,7 @@ func (client BaseClient) SubmitPropertyBatch(ctx context.Context, nameID string, result, err = client.SubmitPropertyBatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SubmitPropertyBatch", resp, "Failure responding to request") + return } return @@ -20010,6 +20204,7 @@ func (client BaseClient) SuspendApplicationBackup(ctx context.Context, applicati result, err = client.SuspendApplicationBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SuspendApplicationBackup", resp, "Failure responding to request") + return } return @@ -20099,6 +20294,7 @@ func (client BaseClient) SuspendPartitionBackup(ctx context.Context, partitionID result, err = client.SuspendPartitionBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SuspendPartitionBackup", resp, "Failure responding to request") + return } return @@ -20193,6 +20389,7 @@ func (client BaseClient) SuspendServiceBackup(ctx context.Context, serviceID str result, err = client.SuspendServiceBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SuspendServiceBackup", resp, "Failure responding to request") + return } return @@ -20283,6 +20480,7 @@ func (client BaseClient) ToggleVerboseServicePlacementHealthReporting(ctx contex result, err = client.ToggleVerboseServicePlacementHealthReportingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ToggleVerboseServicePlacementHealthReporting", resp, "Failure responding to request") + return } return @@ -20374,6 +20572,7 @@ func (client BaseClient) UnprovisionApplicationType(ctx context.Context, applica result, err = client.UnprovisionApplicationTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionApplicationType", resp, "Failure responding to request") + return } return @@ -20464,6 +20663,7 @@ func (client BaseClient) UnprovisionCluster(ctx context.Context, unprovisionFabr result, err = client.UnprovisionClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionCluster", resp, "Failure responding to request") + return } return @@ -20559,6 +20759,7 @@ func (client BaseClient) UpdateApplicationUpgrade(ctx context.Context, applicati result, err = client.UpdateApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -20659,6 +20860,7 @@ func (client BaseClient) UpdateBackupPolicy(ctx context.Context, backupPolicyDes result, err = client.UpdateBackupPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateBackupPolicy", resp, "Failure responding to request") + return } return @@ -20760,6 +20962,7 @@ func (client BaseClient) UpdateClusterUpgrade(ctx context.Context, updateCluster result, err = client.UpdateClusterUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateClusterUpgrade", resp, "Failure responding to request") + return } return @@ -20842,6 +21045,7 @@ func (client BaseClient) UpdateRepairExecutionState(ctx context.Context, repairT result, err = client.UpdateRepairExecutionStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateRepairExecutionState", resp, "Failure responding to request") + return } return @@ -20919,6 +21123,7 @@ func (client BaseClient) UpdateRepairTaskHealthPolicy(ctx context.Context, repai result, err = client.UpdateRepairTaskHealthPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateRepairTaskHealthPolicy", resp, "Failure responding to request") + return } return @@ -21011,6 +21216,7 @@ func (client BaseClient) UpdateService(ctx context.Context, serviceID string, se result, err = client.UpdateServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateService", resp, "Failure responding to request") + return } return @@ -21107,6 +21313,7 @@ func (client BaseClient) UploadFile(ctx context.Context, contentPath string, tim result, err = client.UploadFileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UploadFile", resp, "Failure responding to request") + return } return @@ -21207,6 +21414,7 @@ func (client BaseClient) UploadFileChunk(ctx context.Context, contentPath string result, err = client.UploadFileChunkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UploadFileChunk", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/7.0/servicefabric/meshapplication.go b/services/servicefabric/7.0/servicefabric/meshapplication.go index 3d0d404836fb..261d6d380a16 100644 --- a/services/servicefabric/7.0/servicefabric/meshapplication.go +++ b/services/servicefabric/7.0/servicefabric/meshapplication.go @@ -84,6 +84,7 @@ func (client MeshApplicationClient) CreateOrUpdate(ctx context.Context, applicat result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshApplicationClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client MeshApplicationClient) Delete(ctx context.Context, applicationResou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshApplicationClient", "Delete", resp, "Failure responding to request") + return } return @@ -230,6 +232,7 @@ func (client MeshApplicationClient) Get(ctx context.Context, applicationResource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshApplicationClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +306,7 @@ func (client MeshApplicationClient) GetUpgradeProgress(ctx context.Context, appl result, err = client.GetUpgradeProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshApplicationClient", "GetUpgradeProgress", resp, "Failure responding to request") + return } return @@ -374,6 +378,7 @@ func (client MeshApplicationClient) List(ctx context.Context) (result PagedAppli result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshApplicationClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/7.0/servicefabric/meshcodepackage.go b/services/servicefabric/7.0/servicefabric/meshcodepackage.go index 766bd0b2bf4e..0c3600f9fd92 100644 --- a/services/servicefabric/7.0/servicefabric/meshcodepackage.go +++ b/services/servicefabric/7.0/servicefabric/meshcodepackage.go @@ -76,6 +76,7 @@ func (client MeshCodePackageClient) GetContainerLogs(ctx context.Context, applic result, err = client.GetContainerLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshCodePackageClient", "GetContainerLogs", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/7.0/servicefabric/meshgateway.go b/services/servicefabric/7.0/servicefabric/meshgateway.go index 6a83327ff827..ec9190e904c6 100644 --- a/services/servicefabric/7.0/servicefabric/meshgateway.go +++ b/services/servicefabric/7.0/servicefabric/meshgateway.go @@ -86,6 +86,7 @@ func (client MeshGatewayClient) CreateOrUpdate(ctx context.Context, gatewayResou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshGatewayClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client MeshGatewayClient) Delete(ctx context.Context, gatewayResourceName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshGatewayClient", "Delete", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client MeshGatewayClient) Get(ctx context.Context, gatewayResourceName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshGatewayClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +306,7 @@ func (client MeshGatewayClient) List(ctx context.Context) (result PagedGatewayRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshGatewayClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/7.0/servicefabric/meshnetwork.go b/services/servicefabric/7.0/servicefabric/meshnetwork.go index 5aac20936c3d..05885b1f8f32 100644 --- a/services/servicefabric/7.0/servicefabric/meshnetwork.go +++ b/services/servicefabric/7.0/servicefabric/meshnetwork.go @@ -83,6 +83,7 @@ func (client MeshNetworkClient) CreateOrUpdate(ctx context.Context, networkResou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshNetworkClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client MeshNetworkClient) Delete(ctx context.Context, networkResourceName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshNetworkClient", "Delete", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client MeshNetworkClient) Get(ctx context.Context, networkResourceName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshNetworkClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client MeshNetworkClient) List(ctx context.Context) (result PagedNetworkRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshNetworkClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/7.0/servicefabric/meshsecret.go b/services/servicefabric/7.0/servicefabric/meshsecret.go index db7630d5bde8..78b7146805f2 100644 --- a/services/servicefabric/7.0/servicefabric/meshsecret.go +++ b/services/servicefabric/7.0/servicefabric/meshsecret.go @@ -83,6 +83,7 @@ func (client MeshSecretClient) CreateOrUpdate(ctx context.Context, secretResourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client MeshSecretClient) Delete(ctx context.Context, secretResourceName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretClient", "Delete", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client MeshSecretClient) Get(ctx context.Context, secretResourceName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client MeshSecretClient) List(ctx context.Context) (result PagedSecretReso result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/7.0/servicefabric/meshsecretvalue.go b/services/servicefabric/7.0/servicefabric/meshsecretvalue.go index 567adb3455d9..cc0c9d03ecde 100644 --- a/services/servicefabric/7.0/servicefabric/meshsecretvalue.go +++ b/services/servicefabric/7.0/servicefabric/meshsecretvalue.go @@ -84,6 +84,7 @@ func (client MeshSecretValueClient) AddValue(ctx context.Context, secretResource result, err = client.AddValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretValueClient", "AddValue", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client MeshSecretValueClient) Delete(ctx context.Context, secretResourceNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretValueClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client MeshSecretValueClient) Get(ctx context.Context, secretResourceName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretValueClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +314,7 @@ func (client MeshSecretValueClient) List(ctx context.Context, secretResourceName result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretValueClient", "List", resp, "Failure responding to request") + return } return @@ -385,6 +389,7 @@ func (client MeshSecretValueClient) Show(ctx context.Context, secretResourceName result, err = client.ShowResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretValueClient", "Show", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/7.0/servicefabric/meshservice.go b/services/servicefabric/7.0/servicefabric/meshservice.go index 28b7b1f8d53e..98582ec66fbc 100644 --- a/services/servicefabric/7.0/servicefabric/meshservice.go +++ b/services/servicefabric/7.0/servicefabric/meshservice.go @@ -74,6 +74,7 @@ func (client MeshServiceClient) Get(ctx context.Context, applicationResourceName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshServiceClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client MeshServiceClient) List(ctx context.Context, applicationResourceNam result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshServiceClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/7.0/servicefabric/meshservicereplica.go b/services/servicefabric/7.0/servicefabric/meshservicereplica.go index 1f7a5a114571..5c647bb1d216 100644 --- a/services/servicefabric/7.0/servicefabric/meshservicereplica.go +++ b/services/servicefabric/7.0/servicefabric/meshservicereplica.go @@ -76,6 +76,7 @@ func (client MeshServiceReplicaClient) Get(ctx context.Context, applicationResou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshServiceReplicaClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client MeshServiceReplicaClient) List(ctx context.Context, applicationReso result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshServiceReplicaClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/7.0/servicefabric/meshvolume.go b/services/servicefabric/7.0/servicefabric/meshvolume.go index cdd32eaf7aed..56e89ede9688 100644 --- a/services/servicefabric/7.0/servicefabric/meshvolume.go +++ b/services/servicefabric/7.0/servicefabric/meshvolume.go @@ -88,6 +88,7 @@ func (client MeshVolumeClient) CreateOrUpdate(ctx context.Context, volumeResourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshVolumeClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client MeshVolumeClient) Delete(ctx context.Context, volumeResourceName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshVolumeClient", "Delete", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client MeshVolumeClient) Get(ctx context.Context, volumeResourceName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshVolumeClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +308,7 @@ func (client MeshVolumeClient) List(ctx context.Context) (result PagedVolumeReso result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshVolumeClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/7.2/servicefabric/client.go b/services/servicefabric/7.2/servicefabric/client.go index 4c248ec6fa60..e7678f07d60b 100644 --- a/services/servicefabric/7.2/servicefabric/client.go +++ b/services/servicefabric/7.2/servicefabric/client.go @@ -103,6 +103,7 @@ func (client BaseClient) AddConfigurationParameterOverrides(ctx context.Context, result, err = client.AddConfigurationParameterOverridesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "AddConfigurationParameterOverrides", resp, "Failure responding to request") + return } return @@ -207,6 +208,7 @@ func (client BaseClient) BackupPartition(ctx context.Context, partitionID uuid.U result, err = client.BackupPartitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "BackupPartition", resp, "Failure responding to request") + return } return @@ -323,6 +325,7 @@ func (client BaseClient) CancelOperation(ctx context.Context, operationID uuid.U result, err = client.CancelOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelOperation", resp, "Failure responding to request") + return } return @@ -403,6 +406,7 @@ func (client BaseClient) CancelRepairTask(ctx context.Context, repairTaskCancelD result, err = client.CancelRepairTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelRepairTask", resp, "Failure responding to request") + return } return @@ -488,6 +492,7 @@ func (client BaseClient) CommitImageStoreUploadSession(ctx context.Context, sess result, err = client.CommitImageStoreUploadSessionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CommitImageStoreUploadSession", resp, "Failure responding to request") + return } return @@ -577,6 +582,7 @@ func (client BaseClient) CopyImageStoreContent(ctx context.Context, imageStoreCo result, err = client.CopyImageStoreContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CopyImageStoreContent", resp, "Failure responding to request") + return } return @@ -673,6 +679,7 @@ func (client BaseClient) CreateApplication(ctx context.Context, applicationDescr result, err = client.CreateApplicationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateApplication", resp, "Failure responding to request") + return } return @@ -769,6 +776,7 @@ func (client BaseClient) CreateBackupPolicy(ctx context.Context, backupPolicyDes result, err = client.CreateBackupPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateBackupPolicy", resp, "Failure responding to request") + return } return @@ -860,6 +868,7 @@ func (client BaseClient) CreateComposeDeployment(ctx context.Context, createComp result, err = client.CreateComposeDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateComposeDeployment", resp, "Failure responding to request") + return } return @@ -948,6 +957,7 @@ func (client BaseClient) CreateName(ctx context.Context, nameDescription NameDes result, err = client.CreateNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateName", resp, "Failure responding to request") + return } return @@ -1039,6 +1049,7 @@ func (client BaseClient) CreateRepairTask(ctx context.Context, repairTask Repair result, err = client.CreateRepairTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateRepairTask", resp, "Failure responding to request") + return } return @@ -1132,6 +1143,7 @@ func (client BaseClient) CreateService(ctx context.Context, applicationID string result, err = client.CreateServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateService", resp, "Failure responding to request") + return } return @@ -1234,6 +1246,7 @@ func (client BaseClient) CreateServiceFromTemplate(ctx context.Context, applicat result, err = client.CreateServiceFromTemplateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateServiceFromTemplate", resp, "Failure responding to request") + return } return @@ -1335,6 +1348,7 @@ func (client BaseClient) DeleteApplication(ctx context.Context, applicationID st result, err = client.DeleteApplicationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteApplication", resp, "Failure responding to request") + return } return @@ -1428,6 +1442,7 @@ func (client BaseClient) DeleteBackupPolicy(ctx context.Context, backupPolicyNam result, err = client.DeleteBackupPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteBackupPolicy", resp, "Failure responding to request") + return } return @@ -1517,6 +1532,7 @@ func (client BaseClient) DeleteImageStoreContent(ctx context.Context, contentPat result, err = client.DeleteImageStoreContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteImageStoreContent", resp, "Failure responding to request") + return } return @@ -1607,6 +1623,7 @@ func (client BaseClient) DeleteImageStoreUploadSession(ctx context.Context, sess result, err = client.DeleteImageStoreUploadSessionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteImageStoreUploadSession", resp, "Failure responding to request") + return } return @@ -1693,6 +1710,7 @@ func (client BaseClient) DeleteName(ctx context.Context, nameID string, timeout result, err = client.DeleteNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteName", resp, "Failure responding to request") + return } return @@ -1783,6 +1801,7 @@ func (client BaseClient) DeleteProperty(ctx context.Context, nameID string, prop result, err = client.DeletePropertyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteProperty", resp, "Failure responding to request") + return } return @@ -1866,6 +1885,7 @@ func (client BaseClient) DeleteRepairTask(ctx context.Context, repairTaskDeleteD result, err = client.DeleteRepairTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteRepairTask", resp, "Failure responding to request") + return } return @@ -1957,6 +1977,7 @@ func (client BaseClient) DeleteService(ctx context.Context, serviceID string, fo result, err = client.DeleteServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteService", resp, "Failure responding to request") + return } return @@ -2058,6 +2079,7 @@ func (client BaseClient) DeployServicePackageToNode(ctx context.Context, nodeNam result, err = client.DeployServicePackageToNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeployServicePackageToNode", resp, "Failure responding to request") + return } return @@ -2156,6 +2178,7 @@ func (client BaseClient) DisableApplicationBackup(ctx context.Context, applicati result, err = client.DisableApplicationBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableApplicationBackup", resp, "Failure responding to request") + return } return @@ -2255,6 +2278,7 @@ func (client BaseClient) DisableNode(ctx context.Context, nodeName string, deact result, err = client.DisableNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableNode", resp, "Failure responding to request") + return } return @@ -2352,6 +2376,7 @@ func (client BaseClient) DisablePartitionBackup(ctx context.Context, partitionID result, err = client.DisablePartitionBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisablePartitionBackup", resp, "Failure responding to request") + return } return @@ -2456,6 +2481,7 @@ func (client BaseClient) DisableServiceBackup(ctx context.Context, serviceID str result, err = client.DisableServiceBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableServiceBackup", resp, "Failure responding to request") + return } return @@ -2558,6 +2584,7 @@ func (client BaseClient) EnableApplicationBackup(ctx context.Context, applicatio result, err = client.EnableApplicationBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableApplicationBackup", resp, "Failure responding to request") + return } return @@ -2650,6 +2677,7 @@ func (client BaseClient) EnableNode(ctx context.Context, nodeName string, timeou result, err = client.EnableNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableNode", resp, "Failure responding to request") + return } return @@ -2745,6 +2773,7 @@ func (client BaseClient) EnablePartitionBackup(ctx context.Context, partitionID result, err = client.EnablePartitionBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnablePartitionBackup", resp, "Failure responding to request") + return } return @@ -2847,6 +2876,7 @@ func (client BaseClient) EnableServiceBackup(ctx context.Context, serviceID stri result, err = client.EnableServiceBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableServiceBackup", resp, "Failure responding to request") + return } return @@ -2932,6 +2962,7 @@ func (client BaseClient) ForceApproveRepairTask(ctx context.Context, repairTaskA result, err = client.ForceApproveRepairTaskResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ForceApproveRepairTask", resp, "Failure responding to request") + return } return @@ -3015,6 +3046,7 @@ func (client BaseClient) GetAadMetadata(ctx context.Context, timeout *int64) (re result, err = client.GetAadMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetAadMetadata", resp, "Failure responding to request") + return } return @@ -3114,6 +3146,7 @@ func (client BaseClient) GetAllEntitiesBackedUpByPolicy(ctx context.Context, bac result, err = client.GetAllEntitiesBackedUpByPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetAllEntitiesBackedUpByPolicy", resp, "Failure responding to request") + return } return @@ -3229,6 +3262,7 @@ func (client BaseClient) GetApplicationBackupConfigurationInfo(ctx context.Conte result, err = client.GetApplicationBackupConfigurationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationBackupConfigurationInfo", resp, "Failure responding to request") + return } return @@ -3354,6 +3388,7 @@ func (client BaseClient) GetApplicationBackupList(ctx context.Context, applicati result, err = client.GetApplicationBackupListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationBackupList", resp, "Failure responding to request") + return } return @@ -3474,6 +3509,7 @@ func (client BaseClient) GetApplicationEventList(ctx context.Context, applicatio result, err = client.GetApplicationEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationEventList", resp, "Failure responding to request") + return } return @@ -3632,6 +3668,7 @@ func (client BaseClient) GetApplicationHealth(ctx context.Context, applicationID result, err = client.GetApplicationHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealth", resp, "Failure responding to request") + return } return @@ -3804,6 +3841,7 @@ func (client BaseClient) GetApplicationHealthUsingPolicy(ctx context.Context, ap result, err = client.GetApplicationHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -3926,6 +3964,7 @@ func (client BaseClient) GetApplicationInfo(ctx context.Context, applicationID s result, err = client.GetApplicationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfo", resp, "Failure responding to request") + return } return @@ -4047,6 +4086,7 @@ func (client BaseClient) GetApplicationInfoList(ctx context.Context, application result, err = client.GetApplicationInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfoList", resp, "Failure responding to request") + return } return @@ -4160,6 +4200,7 @@ func (client BaseClient) GetApplicationLoadInfo(ctx context.Context, application result, err = client.GetApplicationLoadInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationLoadInfo", resp, "Failure responding to request") + return } return @@ -4250,6 +4291,7 @@ func (client BaseClient) GetApplicationManifest(ctx context.Context, application result, err = client.GetApplicationManifestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationManifest", resp, "Failure responding to request") + return } return @@ -4345,6 +4387,7 @@ func (client BaseClient) GetApplicationNameInfo(ctx context.Context, serviceID s result, err = client.GetApplicationNameInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationNameInfo", resp, "Failure responding to request") + return } return @@ -4441,6 +4484,7 @@ func (client BaseClient) GetApplicationsEventList(ctx context.Context, startTime result, err = client.GetApplicationsEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationsEventList", resp, "Failure responding to request") + return } return @@ -4565,6 +4609,7 @@ func (client BaseClient) GetApplicationTypeInfoList(ctx context.Context, applica result, err = client.GetApplicationTypeInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoList", resp, "Failure responding to request") + return } return @@ -4693,6 +4738,7 @@ func (client BaseClient) GetApplicationTypeInfoListByName(ctx context.Context, a result, err = client.GetApplicationTypeInfoListByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoListByName", resp, "Failure responding to request") + return } return @@ -4803,6 +4849,7 @@ func (client BaseClient) GetApplicationUpgrade(ctx context.Context, applicationI result, err = client.GetApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -4892,6 +4939,7 @@ func (client BaseClient) GetBackupPolicyByName(ctx context.Context, backupPolicy result, err = client.GetBackupPolicyByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetBackupPolicyByName", resp, "Failure responding to request") + return } return @@ -4993,6 +5041,7 @@ func (client BaseClient) GetBackupPolicyList(ctx context.Context, continuationTo result, err = client.GetBackupPolicyListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetBackupPolicyList", resp, "Failure responding to request") + return } return @@ -5104,6 +5153,7 @@ func (client BaseClient) GetBackupsFromBackupLocation(ctx context.Context, getBa result, err = client.GetBackupsFromBackupLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetBackupsFromBackupLocation", resp, "Failure responding to request") + return } return @@ -5199,6 +5249,7 @@ func (client BaseClient) GetChaos(ctx context.Context, timeout *int64) (result C result, err = client.GetChaosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaos", resp, "Failure responding to request") + return } return @@ -5308,6 +5359,7 @@ func (client BaseClient) GetChaosEvents(ctx context.Context, continuationToken s result, err = client.GetChaosEventsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaosEvents", resp, "Failure responding to request") + return } return @@ -5407,6 +5459,7 @@ func (client BaseClient) GetChaosSchedule(ctx context.Context, timeout *int64) ( result, err = client.GetChaosScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaosSchedule", resp, "Failure responding to request") + return } return @@ -5494,6 +5547,7 @@ func (client BaseClient) GetClusterConfiguration(ctx context.Context, configurat result, err = client.GetClusterConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterConfiguration", resp, "Failure responding to request") + return } return @@ -5580,6 +5634,7 @@ func (client BaseClient) GetClusterConfigurationUpgradeStatus(ctx context.Contex result, err = client.GetClusterConfigurationUpgradeStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterConfigurationUpgradeStatus", resp, "Failure responding to request") + return } return @@ -5672,6 +5727,7 @@ func (client BaseClient) GetClusterEventList(ctx context.Context, startTimeUtc s result, err = client.GetClusterEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterEventList", resp, "Failure responding to request") + return } return @@ -5831,6 +5887,7 @@ func (client BaseClient) GetClusterHealth(ctx context.Context, nodesHealthStateF result, err = client.GetClusterHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealth", resp, "Failure responding to request") + return } return @@ -5943,6 +6000,7 @@ func (client BaseClient) GetClusterHealthChunk(ctx context.Context, timeout *int result, err = client.GetClusterHealthChunkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunk", resp, "Failure responding to request") + return } return @@ -6049,6 +6107,7 @@ func (client BaseClient) GetClusterHealthChunkUsingPolicyAndAdvancedFilters(ctx result, err = client.GetClusterHealthChunkUsingPolicyAndAdvancedFiltersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunkUsingPolicyAndAdvancedFilters", resp, "Failure responding to request") + return } return @@ -6211,6 +6270,7 @@ func (client BaseClient) GetClusterHealthUsingPolicy(ctx context.Context, nodesH result, err = client.GetClusterHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -6326,6 +6386,7 @@ func (client BaseClient) GetClusterLoad(ctx context.Context, timeout *int64) (re result, err = client.GetClusterLoadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterLoad", resp, "Failure responding to request") + return } return @@ -6420,6 +6481,7 @@ func (client BaseClient) GetClusterManifest(ctx context.Context, timeout *int64) result, err = client.GetClusterManifestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterManifest", resp, "Failure responding to request") + return } return @@ -6505,6 +6567,7 @@ func (client BaseClient) GetClusterUpgradeProgress(ctx context.Context, timeout result, err = client.GetClusterUpgradeProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterUpgradeProgress", resp, "Failure responding to request") + return } return @@ -6590,6 +6653,7 @@ func (client BaseClient) GetClusterVersion(ctx context.Context, timeout *int64) result, err = client.GetClusterVersionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterVersion", resp, "Failure responding to request") + return } return @@ -6677,6 +6741,7 @@ func (client BaseClient) GetComposeDeploymentStatus(ctx context.Context, deploym result, err = client.GetComposeDeploymentStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentStatus", resp, "Failure responding to request") + return } return @@ -6781,6 +6846,7 @@ func (client BaseClient) GetComposeDeploymentStatusList(ctx context.Context, con result, err = client.GetComposeDeploymentStatusListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentStatusList", resp, "Failure responding to request") + return } return @@ -6875,6 +6941,7 @@ func (client BaseClient) GetComposeDeploymentUpgradeProgress(ctx context.Context result, err = client.GetComposeDeploymentUpgradeProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentUpgradeProgress", resp, "Failure responding to request") + return } return @@ -6964,6 +7031,7 @@ func (client BaseClient) GetConfigurationOverrides(ctx context.Context, nodeName result, err = client.GetConfigurationOverridesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetConfigurationOverrides", resp, "Failure responding to request") + return } return @@ -7065,6 +7133,7 @@ func (client BaseClient) GetContainerLogsDeployedOnNode(ctx context.Context, nod result, err = client.GetContainerLogsDeployedOnNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetContainerLogsDeployedOnNode", resp, "Failure responding to request") + return } return @@ -7172,6 +7241,7 @@ func (client BaseClient) GetContainersEventList(ctx context.Context, startTimeUt result, err = client.GetContainersEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetContainersEventList", resp, "Failure responding to request") + return } return @@ -7268,6 +7338,7 @@ func (client BaseClient) GetCorrelatedEventList(ctx context.Context, eventInstan result, err = client.GetCorrelatedEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetCorrelatedEventList", resp, "Failure responding to request") + return } return @@ -7364,6 +7435,7 @@ func (client BaseClient) GetDataLossProgress(ctx context.Context, serviceID stri result, err = client.GetDataLossProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDataLossProgress", resp, "Failure responding to request") + return } return @@ -7499,6 +7571,7 @@ func (client BaseClient) GetDeployedApplicationHealth(ctx context.Context, nodeN result, err = client.GetDeployedApplicationHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealth", resp, "Failure responding to request") + return } return @@ -7655,6 +7728,7 @@ func (client BaseClient) GetDeployedApplicationHealthUsingPolicy(ctx context.Con result, err = client.GetDeployedApplicationHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -7778,6 +7852,7 @@ func (client BaseClient) GetDeployedApplicationInfo(ctx context.Context, nodeNam result, err = client.GetDeployedApplicationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfo", resp, "Failure responding to request") + return } return @@ -7895,6 +7970,7 @@ func (client BaseClient) GetDeployedApplicationInfoList(ctx context.Context, nod result, err = client.GetDeployedApplicationInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfoList", resp, "Failure responding to request") + return } return @@ -8007,6 +8083,7 @@ func (client BaseClient) GetDeployedCodePackageInfoList(ctx context.Context, nod result, err = client.GetDeployedCodePackageInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedCodePackageInfoList", resp, "Failure responding to request") + return } return @@ -8126,6 +8203,7 @@ func (client BaseClient) GetDeployedServicePackageHealth(ctx context.Context, no result, err = client.GetDeployedServicePackageHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealth", resp, "Failure responding to request") + return } return @@ -8252,6 +8330,7 @@ func (client BaseClient) GetDeployedServicePackageHealthUsingPolicy(ctx context. result, err = client.GetDeployedServicePackageHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -8359,6 +8438,7 @@ func (client BaseClient) GetDeployedServicePackageInfoList(ctx context.Context, result, err = client.GetDeployedServicePackageInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoList", resp, "Failure responding to request") + return } return @@ -8457,6 +8537,7 @@ func (client BaseClient) GetDeployedServicePackageInfoListByName(ctx context.Con result, err = client.GetDeployedServicePackageInfoListByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoListByName", resp, "Failure responding to request") + return } return @@ -8552,6 +8633,7 @@ func (client BaseClient) GetDeployedServiceReplicaDetailInfo(ctx context.Context result, err = client.GetDeployedServiceReplicaDetailInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfo", resp, "Failure responding to request") + return } return @@ -8646,6 +8728,7 @@ func (client BaseClient) GetDeployedServiceReplicaDetailInfoByPartitionID(ctx co result, err = client.GetDeployedServiceReplicaDetailInfoByPartitionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfoByPartitionID", resp, "Failure responding to request") + return } return @@ -8747,6 +8830,7 @@ func (client BaseClient) GetDeployedServiceReplicaInfoList(ctx context.Context, result, err = client.GetDeployedServiceReplicaInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaInfoList", resp, "Failure responding to request") + return } return @@ -8855,6 +8939,7 @@ func (client BaseClient) GetDeployedServiceTypeInfoByName(ctx context.Context, n result, err = client.GetDeployedServiceTypeInfoByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoByName", resp, "Failure responding to request") + return } return @@ -8959,6 +9044,7 @@ func (client BaseClient) GetDeployedServiceTypeInfoList(ctx context.Context, nod result, err = client.GetDeployedServiceTypeInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoList", resp, "Failure responding to request") + return } return @@ -9067,6 +9153,7 @@ func (client BaseClient) GetFaultOperationList(ctx context.Context, typeFilter i result, err = client.GetFaultOperationListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetFaultOperationList", resp, "Failure responding to request") + return } return @@ -9155,6 +9242,7 @@ func (client BaseClient) GetImageStoreContent(ctx context.Context, contentPath s result, err = client.GetImageStoreContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreContent", resp, "Failure responding to request") + return } return @@ -9245,6 +9333,7 @@ func (client BaseClient) GetImageStoreFolderSize(ctx context.Context, contentPat result, err = client.GetImageStoreFolderSizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreFolderSize", resp, "Failure responding to request") + return } return @@ -9334,6 +9423,7 @@ func (client BaseClient) GetImageStoreInfo(ctx context.Context, timeout *int64) result, err = client.GetImageStoreInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreInfo", resp, "Failure responding to request") + return } return @@ -9418,6 +9508,7 @@ func (client BaseClient) GetImageStoreRootContent(ctx context.Context, timeout * result, err = client.GetImageStoreRootContentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreRootContent", resp, "Failure responding to request") + return } return @@ -9502,6 +9593,7 @@ func (client BaseClient) GetImageStoreRootFolderSize(ctx context.Context, timeou result, err = client.GetImageStoreRootFolderSizeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreRootFolderSize", resp, "Failure responding to request") + return } return @@ -9589,6 +9681,7 @@ func (client BaseClient) GetImageStoreUploadSessionByID(ctx context.Context, ses result, err = client.GetImageStoreUploadSessionByIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreUploadSessionByID", resp, "Failure responding to request") + return } return @@ -9676,6 +9769,7 @@ func (client BaseClient) GetImageStoreUploadSessionByPath(ctx context.Context, c result, err = client.GetImageStoreUploadSessionByPathResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreUploadSessionByPath", resp, "Failure responding to request") + return } return @@ -9765,6 +9859,7 @@ func (client BaseClient) GetNameExistsInfo(ctx context.Context, nameID string, t result, err = client.GetNameExistsInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNameExistsInfo", resp, "Failure responding to request") + return } return @@ -9861,6 +9956,7 @@ func (client BaseClient) GetNodeEventList(ctx context.Context, nodeName string, result, err = client.GetNodeEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeEventList", resp, "Failure responding to request") + return } return @@ -9978,6 +10074,7 @@ func (client BaseClient) GetNodeHealth(ctx context.Context, nodeName string, eve result, err = client.GetNodeHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealth", resp, "Failure responding to request") + return } return @@ -10092,6 +10189,7 @@ func (client BaseClient) GetNodeHealthUsingPolicy(ctx context.Context, nodeName result, err = client.GetNodeHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -10191,6 +10289,7 @@ func (client BaseClient) GetNodeInfo(ctx context.Context, nodeName string, timeo result, err = client.GetNodeInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfo", resp, "Failure responding to request") + return } return @@ -10294,6 +10393,7 @@ func (client BaseClient) GetNodeInfoList(ctx context.Context, continuationToken result, err = client.GetNodeInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfoList", resp, "Failure responding to request") + return } return @@ -10393,6 +10493,7 @@ func (client BaseClient) GetNodeLoadInfo(ctx context.Context, nodeName string, t result, err = client.GetNodeLoadInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeLoadInfo", resp, "Failure responding to request") + return } return @@ -10489,6 +10590,7 @@ func (client BaseClient) GetNodesEventList(ctx context.Context, startTimeUtc str result, err = client.GetNodesEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodesEventList", resp, "Failure responding to request") + return } return @@ -10588,6 +10690,7 @@ func (client BaseClient) GetNodeTransitionProgress(ctx context.Context, nodeName result, err = client.GetNodeTransitionProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeTransitionProgress", resp, "Failure responding to request") + return } return @@ -10679,6 +10782,7 @@ func (client BaseClient) GetPartitionBackupConfigurationInfo(ctx context.Context result, err = client.GetPartitionBackupConfigurationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionBackupConfigurationInfo", resp, "Failure responding to request") + return } return @@ -10778,6 +10882,7 @@ func (client BaseClient) GetPartitionBackupList(ctx context.Context, partitionID result, err = client.GetPartitionBackupListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionBackupList", resp, "Failure responding to request") + return } return @@ -10879,6 +10984,7 @@ func (client BaseClient) GetPartitionBackupProgress(ctx context.Context, partiti result, err = client.GetPartitionBackupProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionBackupProgress", resp, "Failure responding to request") + return } return @@ -10976,6 +11082,7 @@ func (client BaseClient) GetPartitionEventList(ctx context.Context, partitionID result, err = client.GetPartitionEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionEventList", resp, "Failure responding to request") + return } return @@ -11112,6 +11219,7 @@ func (client BaseClient) GetPartitionHealth(ctx context.Context, partitionID uui result, err = client.GetPartitionHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealth", resp, "Failure responding to request") + return } return @@ -11261,6 +11369,7 @@ func (client BaseClient) GetPartitionHealthUsingPolicy(ctx context.Context, part result, err = client.GetPartitionHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -11372,6 +11481,7 @@ func (client BaseClient) GetPartitionInfo(ctx context.Context, partitionID uuid. result, err = client.GetPartitionInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfo", resp, "Failure responding to request") + return } return @@ -11471,6 +11581,7 @@ func (client BaseClient) GetPartitionInfoList(ctx context.Context, serviceID str result, err = client.GetPartitionInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfoList", resp, "Failure responding to request") + return } return @@ -11565,6 +11676,7 @@ func (client BaseClient) GetPartitionLoadInformation(ctx context.Context, partit result, err = client.GetPartitionLoadInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionLoadInformation", resp, "Failure responding to request") + return } return @@ -11663,6 +11775,7 @@ func (client BaseClient) GetPartitionReplicaEventList(ctx context.Context, parti result, err = client.GetPartitionReplicaEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionReplicaEventList", resp, "Failure responding to request") + return } return @@ -11772,6 +11885,7 @@ func (client BaseClient) GetPartitionReplicasEventList(ctx context.Context, part result, err = client.GetPartitionReplicasEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionReplicasEventList", resp, "Failure responding to request") + return } return @@ -11880,6 +11994,7 @@ func (client BaseClient) GetPartitionRestartProgress(ctx context.Context, servic result, err = client.GetPartitionRestartProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionRestartProgress", resp, "Failure responding to request") + return } return @@ -11972,6 +12087,7 @@ func (client BaseClient) GetPartitionRestoreProgress(ctx context.Context, partit result, err = client.GetPartitionRestoreProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionRestoreProgress", resp, "Failure responding to request") + return } return @@ -12068,6 +12184,7 @@ func (client BaseClient) GetPartitionsEventList(ctx context.Context, startTimeUt result, err = client.GetPartitionsEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionsEventList", resp, "Failure responding to request") + return } return @@ -12166,6 +12283,7 @@ func (client BaseClient) GetPropertyInfo(ctx context.Context, nameID string, pro result, err = client.GetPropertyInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPropertyInfo", resp, "Failure responding to request") + return } return @@ -12265,6 +12383,7 @@ func (client BaseClient) GetPropertyInfoList(ctx context.Context, nameID string, result, err = client.GetPropertyInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPropertyInfoList", resp, "Failure responding to request") + return } return @@ -12364,6 +12483,7 @@ func (client BaseClient) GetProvisionedFabricCodeVersionInfoList(ctx context.Con result, err = client.GetProvisionedFabricCodeVersionInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricCodeVersionInfoList", resp, "Failure responding to request") + return } return @@ -12454,6 +12574,7 @@ func (client BaseClient) GetProvisionedFabricConfigVersionInfoList(ctx context.C result, err = client.GetProvisionedFabricConfigVersionInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricConfigVersionInfoList", resp, "Failure responding to request") + return } return @@ -12550,6 +12671,7 @@ func (client BaseClient) GetQuorumLossProgress(ctx context.Context, serviceID st result, err = client.GetQuorumLossProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetQuorumLossProgress", resp, "Failure responding to request") + return } return @@ -12640,6 +12762,7 @@ func (client BaseClient) GetRepairTaskList(ctx context.Context, taskIDFilter str result, err = client.GetRepairTaskListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetRepairTaskList", resp, "Failure responding to request") + return } return @@ -12747,6 +12870,7 @@ func (client BaseClient) GetReplicaHealth(ctx context.Context, partitionID uuid. result, err = client.GetReplicaHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealth", resp, "Failure responding to request") + return } return @@ -12868,6 +12992,7 @@ func (client BaseClient) GetReplicaHealthUsingPolicy(ctx context.Context, partit result, err = client.GetReplicaHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -12970,6 +13095,7 @@ func (client BaseClient) GetReplicaInfo(ctx context.Context, partitionID uuid.UU result, err = client.GetReplicaInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfo", resp, "Failure responding to request") + return } return @@ -13066,6 +13192,7 @@ func (client BaseClient) GetReplicaInfoList(ctx context.Context, partitionID uui result, err = client.GetReplicaInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfoList", resp, "Failure responding to request") + return } return @@ -13176,6 +13303,7 @@ func (client BaseClient) GetServiceBackupConfigurationInfo(ctx context.Context, result, err = client.GetServiceBackupConfigurationInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceBackupConfigurationInfo", resp, "Failure responding to request") + return } return @@ -13301,6 +13429,7 @@ func (client BaseClient) GetServiceBackupList(ctx context.Context, serviceID str result, err = client.GetServiceBackupListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceBackupList", resp, "Failure responding to request") + return } return @@ -13414,6 +13543,7 @@ func (client BaseClient) GetServiceDescription(ctx context.Context, serviceID st result, err = client.GetServiceDescriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceDescription", resp, "Failure responding to request") + return } return @@ -13515,6 +13645,7 @@ func (client BaseClient) GetServiceEventList(ctx context.Context, serviceID stri result, err = client.GetServiceEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceEventList", resp, "Failure responding to request") + return } return @@ -13658,6 +13789,7 @@ func (client BaseClient) GetServiceHealth(ctx context.Context, serviceID string, result, err = client.GetServiceHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealth", resp, "Failure responding to request") + return } return @@ -13812,6 +13944,7 @@ func (client BaseClient) GetServiceHealthUsingPolicy(ctx context.Context, servic result, err = client.GetServiceHealthUsingPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealthUsingPolicy", resp, "Failure responding to request") + return } return @@ -13931,6 +14064,7 @@ func (client BaseClient) GetServiceInfo(ctx context.Context, applicationID strin result, err = client.GetServiceInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfo", resp, "Failure responding to request") + return } return @@ -14032,6 +14166,7 @@ func (client BaseClient) GetServiceInfoList(ctx context.Context, applicationID s result, err = client.GetServiceInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfoList", resp, "Failure responding to request") + return } return @@ -14131,6 +14266,7 @@ func (client BaseClient) GetServiceManifest(ctx context.Context, applicationType result, err = client.GetServiceManifestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceManifest", resp, "Failure responding to request") + return } return @@ -14223,6 +14359,7 @@ func (client BaseClient) GetServiceNameInfo(ctx context.Context, partitionID uui result, err = client.GetServiceNameInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceNameInfo", resp, "Failure responding to request") + return } return @@ -14319,6 +14456,7 @@ func (client BaseClient) GetServicesEventList(ctx context.Context, startTimeUtc result, err = client.GetServicesEventListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServicesEventList", resp, "Failure responding to request") + return } return @@ -14419,6 +14557,7 @@ func (client BaseClient) GetServiceTypeInfoByName(ctx context.Context, applicati result, err = client.GetServiceTypeInfoByNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceTypeInfoByName", resp, "Failure responding to request") + return } return @@ -14513,6 +14652,7 @@ func (client BaseClient) GetServiceTypeInfoList(ctx context.Context, application result, err = client.GetServiceTypeInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceTypeInfoList", resp, "Failure responding to request") + return } return @@ -14611,6 +14751,7 @@ func (client BaseClient) GetSubNameInfoList(ctx context.Context, nameID string, result, err = client.GetSubNameInfoListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetSubNameInfoList", resp, "Failure responding to request") + return } return @@ -14719,6 +14860,7 @@ func (client BaseClient) GetUnplacedReplicaInformation(ctx context.Context, serv result, err = client.GetUnplacedReplicaInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetUnplacedReplicaInformation", resp, "Failure responding to request") + return } return @@ -14816,6 +14958,7 @@ func (client BaseClient) GetUpgradeOrchestrationServiceState(ctx context.Context result, err = client.GetUpgradeOrchestrationServiceStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetUpgradeOrchestrationServiceState", resp, "Failure responding to request") + return } return @@ -14915,6 +15058,7 @@ func (client BaseClient) InvokeContainerAPI(ctx context.Context, nodeName string result, err = client.InvokeContainerAPIResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeContainerAPI", resp, "Failure responding to request") + return } return @@ -15020,6 +15164,7 @@ func (client BaseClient) InvokeInfrastructureCommand(ctx context.Context, comman result, err = client.InvokeInfrastructureCommandResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureCommand", resp, "Failure responding to request") + return } return @@ -15119,6 +15264,7 @@ func (client BaseClient) InvokeInfrastructureQuery(ctx context.Context, command result, err = client.InvokeInfrastructureQueryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureQuery", resp, "Failure responding to request") + return } return @@ -15216,6 +15362,7 @@ func (client BaseClient) MovePrimaryReplica(ctx context.Context, partitionID uui result, err = client.MovePrimaryReplicaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "MovePrimaryReplica", resp, "Failure responding to request") + return } return @@ -15323,6 +15470,7 @@ func (client BaseClient) MoveSecondaryReplica(ctx context.Context, partitionID u result, err = client.MoveSecondaryReplicaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "MoveSecondaryReplica", resp, "Failure responding to request") + return } return @@ -15427,6 +15575,7 @@ func (client BaseClient) PostChaosSchedule(ctx context.Context, chaosSchedule Ch result, err = client.PostChaosScheduleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "PostChaosSchedule", resp, "Failure responding to request") + return } return @@ -15519,6 +15668,7 @@ func (client BaseClient) ProvisionApplicationType(ctx context.Context, provision result, err = client.ProvisionApplicationTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionApplicationType", resp, "Failure responding to request") + return } return @@ -15605,6 +15755,7 @@ func (client BaseClient) ProvisionCluster(ctx context.Context, provisionFabricDe result, err = client.ProvisionClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionCluster", resp, "Failure responding to request") + return } return @@ -15695,6 +15846,7 @@ func (client BaseClient) PutProperty(ctx context.Context, nameID string, propert result, err = client.PutPropertyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "PutProperty", resp, "Failure responding to request") + return } return @@ -15785,6 +15937,7 @@ func (client BaseClient) RecoverAllPartitions(ctx context.Context, timeout *int6 result, err = client.RecoverAllPartitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverAllPartitions", resp, "Failure responding to request") + return } return @@ -15870,6 +16023,7 @@ func (client BaseClient) RecoverPartition(ctx context.Context, partitionID uuid. result, err = client.RecoverPartitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverPartition", resp, "Failure responding to request") + return } return @@ -15964,6 +16118,7 @@ func (client BaseClient) RecoverServicePartitions(ctx context.Context, serviceID result, err = client.RecoverServicePartitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverServicePartitions", resp, "Failure responding to request") + return } return @@ -16053,6 +16208,7 @@ func (client BaseClient) RecoverSystemPartitions(ctx context.Context, timeout *i result, err = client.RecoverSystemPartitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverSystemPartitions", resp, "Failure responding to request") + return } return @@ -16137,6 +16293,7 @@ func (client BaseClient) RemoveComposeDeployment(ctx context.Context, deployment result, err = client.RemoveComposeDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveComposeDeployment", resp, "Failure responding to request") + return } return @@ -16225,6 +16382,7 @@ func (client BaseClient) RemoveConfigurationOverrides(ctx context.Context, nodeN result, err = client.RemoveConfigurationOverridesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveConfigurationOverrides", resp, "Failure responding to request") + return } return @@ -16324,6 +16482,7 @@ func (client BaseClient) RemoveNodeState(ctx context.Context, nodeName string, t result, err = client.RemoveNodeStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveNodeState", resp, "Failure responding to request") + return } return @@ -16422,6 +16581,7 @@ func (client BaseClient) RemoveReplica(ctx context.Context, nodeName string, par result, err = client.RemoveReplicaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveReplica", resp, "Failure responding to request") + return } return @@ -16542,6 +16702,7 @@ func (client BaseClient) ReportApplicationHealth(ctx context.Context, applicatio result, err = client.ReportApplicationHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportApplicationHealth", resp, "Failure responding to request") + return } return @@ -16659,6 +16820,7 @@ func (client BaseClient) ReportClusterHealth(ctx context.Context, healthInformat result, err = client.ReportClusterHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportClusterHealth", resp, "Failure responding to request") + return } return @@ -16778,6 +16940,7 @@ func (client BaseClient) ReportDeployedApplicationHealth(ctx context.Context, no result, err = client.ReportDeployedApplicationHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedApplicationHealth", resp, "Failure responding to request") + return } return @@ -16904,6 +17067,7 @@ func (client BaseClient) ReportDeployedServicePackageHealth(ctx context.Context, result, err = client.ReportDeployedServicePackageHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedServicePackageHealth", resp, "Failure responding to request") + return } return @@ -17024,6 +17188,7 @@ func (client BaseClient) ReportNodeHealth(ctx context.Context, nodeName string, result, err = client.ReportNodeHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportNodeHealth", resp, "Failure responding to request") + return } return @@ -17142,6 +17307,7 @@ func (client BaseClient) ReportPartitionHealth(ctx context.Context, partitionID result, err = client.ReportPartitionHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportPartitionHealth", resp, "Failure responding to request") + return } return @@ -17263,6 +17429,7 @@ func (client BaseClient) ReportReplicaHealth(ctx context.Context, partitionID uu result, err = client.ReportReplicaHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportReplicaHealth", resp, "Failure responding to request") + return } return @@ -17387,6 +17554,7 @@ func (client BaseClient) ReportServiceHealth(ctx context.Context, serviceID stri result, err = client.ReportServiceHealthResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportServiceHealth", resp, "Failure responding to request") + return } return @@ -17482,6 +17650,7 @@ func (client BaseClient) ResetPartitionLoad(ctx context.Context, partitionID uui result, err = client.ResetPartitionLoadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResetPartitionLoad", resp, "Failure responding to request") + return } return @@ -17590,6 +17759,7 @@ func (client BaseClient) ResolveService(ctx context.Context, serviceID string, p result, err = client.ResolveServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResolveService", resp, "Failure responding to request") + return } return @@ -17700,6 +17870,7 @@ func (client BaseClient) RestartDeployedCodePackage(ctx context.Context, nodeNam result, err = client.RestartDeployedCodePackageResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartDeployedCodePackage", resp, "Failure responding to request") + return } return @@ -17795,6 +17966,7 @@ func (client BaseClient) RestartNode(ctx context.Context, nodeName string, resta result, err = client.RestartNodeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartNode", resp, "Failure responding to request") + return } return @@ -17889,6 +18061,7 @@ func (client BaseClient) RestartReplica(ctx context.Context, nodeName string, pa result, err = client.RestartReplicaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartReplica", resp, "Failure responding to request") + return } return @@ -17993,6 +18166,7 @@ func (client BaseClient) RestorePartition(ctx context.Context, partitionID uuid. result, err = client.RestorePartitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestorePartition", resp, "Failure responding to request") + return } return @@ -18093,6 +18267,7 @@ func (client BaseClient) ResumeApplicationBackup(ctx context.Context, applicatio result, err = client.ResumeApplicationBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeApplicationBackup", resp, "Failure responding to request") + return } return @@ -18190,6 +18365,7 @@ func (client BaseClient) ResumeApplicationUpgrade(ctx context.Context, applicati result, err = client.ResumeApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -18283,6 +18459,7 @@ func (client BaseClient) ResumeClusterUpgrade(ctx context.Context, resumeCluster result, err = client.ResumeClusterUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeClusterUpgrade", resp, "Failure responding to request") + return } return @@ -18370,6 +18547,7 @@ func (client BaseClient) ResumePartitionBackup(ctx context.Context, partitionID result, err = client.ResumePartitionBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumePartitionBackup", resp, "Failure responding to request") + return } return @@ -18463,6 +18641,7 @@ func (client BaseClient) ResumeServiceBackup(ctx context.Context, serviceID stri result, err = client.ResumeServiceBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeServiceBackup", resp, "Failure responding to request") + return } return @@ -18558,6 +18737,7 @@ func (client BaseClient) RollbackApplicationUpgrade(ctx context.Context, applica result, err = client.RollbackApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -18645,6 +18825,7 @@ func (client BaseClient) RollbackClusterUpgrade(ctx context.Context, timeout *in result, err = client.RollbackClusterUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackClusterUpgrade", resp, "Failure responding to request") + return } return @@ -18730,6 +18911,7 @@ func (client BaseClient) SetUpgradeOrchestrationServiceState(ctx context.Context result, err = client.SetUpgradeOrchestrationServiceStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SetUpgradeOrchestrationServiceState", resp, "Failure responding to request") + return } return @@ -18832,6 +19014,7 @@ func (client BaseClient) StartApplicationUpgrade(ctx context.Context, applicatio result, err = client.StartApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -18943,6 +19126,7 @@ func (client BaseClient) StartChaos(ctx context.Context, chaosParameters ChaosPa result, err = client.StartChaosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartChaos", resp, "Failure responding to request") + return } return @@ -19032,6 +19216,7 @@ func (client BaseClient) StartClusterConfigurationUpgrade(ctx context.Context, c result, err = client.StartClusterConfigurationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartClusterConfigurationUpgrade", resp, "Failure responding to request") + return } return @@ -19130,6 +19315,7 @@ func (client BaseClient) StartClusterUpgrade(ctx context.Context, startClusterUp result, err = client.StartClusterUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartClusterUpgrade", resp, "Failure responding to request") + return } return @@ -19221,6 +19407,7 @@ func (client BaseClient) StartComposeDeploymentUpgrade(ctx context.Context, depl result, err = client.StartComposeDeploymentUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartComposeDeploymentUpgrade", resp, "Failure responding to request") + return } return @@ -19336,6 +19523,7 @@ func (client BaseClient) StartDataLoss(ctx context.Context, serviceID string, pa result, err = client.StartDataLossResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartDataLoss", resp, "Failure responding to request") + return } return @@ -19440,6 +19628,7 @@ func (client BaseClient) StartNodeTransition(ctx context.Context, nodeName strin result, err = client.StartNodeTransitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartNodeTransition", resp, "Failure responding to request") + return } return @@ -19544,6 +19733,7 @@ func (client BaseClient) StartPartitionRestart(ctx context.Context, serviceID st result, err = client.StartPartitionRestartResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartPartitionRestart", resp, "Failure responding to request") + return } return @@ -19652,6 +19842,7 @@ func (client BaseClient) StartQuorumLoss(ctx context.Context, serviceID string, result, err = client.StartQuorumLossResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartQuorumLoss", resp, "Failure responding to request") + return } return @@ -19744,6 +19935,7 @@ func (client BaseClient) StartRollbackComposeDeploymentUpgrade(ctx context.Conte result, err = client.StartRollbackComposeDeploymentUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartRollbackComposeDeploymentUpgrade", resp, "Failure responding to request") + return } return @@ -19834,6 +20026,7 @@ func (client BaseClient) StopChaos(ctx context.Context, timeout *int64) (result result, err = client.StopChaosResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StopChaos", resp, "Failure responding to request") + return } return @@ -19919,6 +20112,7 @@ func (client BaseClient) SubmitPropertyBatch(ctx context.Context, nameID string, result, err = client.SubmitPropertyBatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SubmitPropertyBatch", resp, "Failure responding to request") + return } return @@ -20016,6 +20210,7 @@ func (client BaseClient) SuspendApplicationBackup(ctx context.Context, applicati result, err = client.SuspendApplicationBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SuspendApplicationBackup", resp, "Failure responding to request") + return } return @@ -20105,6 +20300,7 @@ func (client BaseClient) SuspendPartitionBackup(ctx context.Context, partitionID result, err = client.SuspendPartitionBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SuspendPartitionBackup", resp, "Failure responding to request") + return } return @@ -20199,6 +20395,7 @@ func (client BaseClient) SuspendServiceBackup(ctx context.Context, serviceID str result, err = client.SuspendServiceBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SuspendServiceBackup", resp, "Failure responding to request") + return } return @@ -20289,6 +20486,7 @@ func (client BaseClient) ToggleVerboseServicePlacementHealthReporting(ctx contex result, err = client.ToggleVerboseServicePlacementHealthReportingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ToggleVerboseServicePlacementHealthReporting", resp, "Failure responding to request") + return } return @@ -20380,6 +20578,7 @@ func (client BaseClient) UnprovisionApplicationType(ctx context.Context, applica result, err = client.UnprovisionApplicationTypeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionApplicationType", resp, "Failure responding to request") + return } return @@ -20470,6 +20669,7 @@ func (client BaseClient) UnprovisionCluster(ctx context.Context, unprovisionFabr result, err = client.UnprovisionClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionCluster", resp, "Failure responding to request") + return } return @@ -20565,6 +20765,7 @@ func (client BaseClient) UpdateApplicationUpgrade(ctx context.Context, applicati result, err = client.UpdateApplicationUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateApplicationUpgrade", resp, "Failure responding to request") + return } return @@ -20665,6 +20866,7 @@ func (client BaseClient) UpdateBackupPolicy(ctx context.Context, backupPolicyDes result, err = client.UpdateBackupPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateBackupPolicy", resp, "Failure responding to request") + return } return @@ -20766,6 +20968,7 @@ func (client BaseClient) UpdateClusterUpgrade(ctx context.Context, updateCluster result, err = client.UpdateClusterUpgradeResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateClusterUpgrade", resp, "Failure responding to request") + return } return @@ -20868,6 +21071,7 @@ func (client BaseClient) UpdatePartitionLoad(ctx context.Context, partitionMetri result, err = client.UpdatePartitionLoadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdatePartitionLoad", resp, "Failure responding to request") + return } return @@ -20959,6 +21163,7 @@ func (client BaseClient) UpdateRepairExecutionState(ctx context.Context, repairT result, err = client.UpdateRepairExecutionStateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateRepairExecutionState", resp, "Failure responding to request") + return } return @@ -21036,6 +21241,7 @@ func (client BaseClient) UpdateRepairTaskHealthPolicy(ctx context.Context, repai result, err = client.UpdateRepairTaskHealthPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateRepairTaskHealthPolicy", resp, "Failure responding to request") + return } return @@ -21128,6 +21334,7 @@ func (client BaseClient) UpdateService(ctx context.Context, serviceID string, se result, err = client.UpdateServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateService", resp, "Failure responding to request") + return } return @@ -21224,6 +21431,7 @@ func (client BaseClient) UploadFile(ctx context.Context, contentPath string, tim result, err = client.UploadFileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UploadFile", resp, "Failure responding to request") + return } return @@ -21324,6 +21532,7 @@ func (client BaseClient) UploadFileChunk(ctx context.Context, contentPath string result, err = client.UploadFileChunkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UploadFileChunk", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/7.2/servicefabric/meshapplication.go b/services/servicefabric/7.2/servicefabric/meshapplication.go index 3d0d404836fb..261d6d380a16 100644 --- a/services/servicefabric/7.2/servicefabric/meshapplication.go +++ b/services/servicefabric/7.2/servicefabric/meshapplication.go @@ -84,6 +84,7 @@ func (client MeshApplicationClient) CreateOrUpdate(ctx context.Context, applicat result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshApplicationClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client MeshApplicationClient) Delete(ctx context.Context, applicationResou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshApplicationClient", "Delete", resp, "Failure responding to request") + return } return @@ -230,6 +232,7 @@ func (client MeshApplicationClient) Get(ctx context.Context, applicationResource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshApplicationClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +306,7 @@ func (client MeshApplicationClient) GetUpgradeProgress(ctx context.Context, appl result, err = client.GetUpgradeProgressResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshApplicationClient", "GetUpgradeProgress", resp, "Failure responding to request") + return } return @@ -374,6 +378,7 @@ func (client MeshApplicationClient) List(ctx context.Context) (result PagedAppli result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshApplicationClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/7.2/servicefabric/meshcodepackage.go b/services/servicefabric/7.2/servicefabric/meshcodepackage.go index 766bd0b2bf4e..0c3600f9fd92 100644 --- a/services/servicefabric/7.2/servicefabric/meshcodepackage.go +++ b/services/servicefabric/7.2/servicefabric/meshcodepackage.go @@ -76,6 +76,7 @@ func (client MeshCodePackageClient) GetContainerLogs(ctx context.Context, applic result, err = client.GetContainerLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshCodePackageClient", "GetContainerLogs", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/7.2/servicefabric/meshgateway.go b/services/servicefabric/7.2/servicefabric/meshgateway.go index 6a83327ff827..ec9190e904c6 100644 --- a/services/servicefabric/7.2/servicefabric/meshgateway.go +++ b/services/servicefabric/7.2/servicefabric/meshgateway.go @@ -86,6 +86,7 @@ func (client MeshGatewayClient) CreateOrUpdate(ctx context.Context, gatewayResou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshGatewayClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client MeshGatewayClient) Delete(ctx context.Context, gatewayResourceName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshGatewayClient", "Delete", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client MeshGatewayClient) Get(ctx context.Context, gatewayResourceName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshGatewayClient", "Get", resp, "Failure responding to request") + return } return @@ -303,6 +306,7 @@ func (client MeshGatewayClient) List(ctx context.Context) (result PagedGatewayRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshGatewayClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/7.2/servicefabric/meshnetwork.go b/services/servicefabric/7.2/servicefabric/meshnetwork.go index 5aac20936c3d..05885b1f8f32 100644 --- a/services/servicefabric/7.2/servicefabric/meshnetwork.go +++ b/services/servicefabric/7.2/servicefabric/meshnetwork.go @@ -83,6 +83,7 @@ func (client MeshNetworkClient) CreateOrUpdate(ctx context.Context, networkResou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshNetworkClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client MeshNetworkClient) Delete(ctx context.Context, networkResourceName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshNetworkClient", "Delete", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client MeshNetworkClient) Get(ctx context.Context, networkResourceName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshNetworkClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client MeshNetworkClient) List(ctx context.Context) (result PagedNetworkRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshNetworkClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/7.2/servicefabric/meshsecret.go b/services/servicefabric/7.2/servicefabric/meshsecret.go index db7630d5bde8..78b7146805f2 100644 --- a/services/servicefabric/7.2/servicefabric/meshsecret.go +++ b/services/servicefabric/7.2/servicefabric/meshsecret.go @@ -83,6 +83,7 @@ func (client MeshSecretClient) CreateOrUpdate(ctx context.Context, secretResourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client MeshSecretClient) Delete(ctx context.Context, secretResourceName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretClient", "Delete", resp, "Failure responding to request") + return } return @@ -229,6 +231,7 @@ func (client MeshSecretClient) Get(ctx context.Context, secretResourceName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretClient", "Get", resp, "Failure responding to request") + return } return @@ -300,6 +303,7 @@ func (client MeshSecretClient) List(ctx context.Context) (result PagedSecretReso result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/7.2/servicefabric/meshsecretvalue.go b/services/servicefabric/7.2/servicefabric/meshsecretvalue.go index 567adb3455d9..cc0c9d03ecde 100644 --- a/services/servicefabric/7.2/servicefabric/meshsecretvalue.go +++ b/services/servicefabric/7.2/servicefabric/meshsecretvalue.go @@ -84,6 +84,7 @@ func (client MeshSecretValueClient) AddValue(ctx context.Context, secretResource result, err = client.AddValueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretValueClient", "AddValue", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client MeshSecretValueClient) Delete(ctx context.Context, secretResourceNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretValueClient", "Delete", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client MeshSecretValueClient) Get(ctx context.Context, secretResourceName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretValueClient", "Get", resp, "Failure responding to request") + return } return @@ -311,6 +314,7 @@ func (client MeshSecretValueClient) List(ctx context.Context, secretResourceName result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretValueClient", "List", resp, "Failure responding to request") + return } return @@ -385,6 +389,7 @@ func (client MeshSecretValueClient) Show(ctx context.Context, secretResourceName result, err = client.ShowResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshSecretValueClient", "Show", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/7.2/servicefabric/meshservice.go b/services/servicefabric/7.2/servicefabric/meshservice.go index 28b7b1f8d53e..98582ec66fbc 100644 --- a/services/servicefabric/7.2/servicefabric/meshservice.go +++ b/services/servicefabric/7.2/servicefabric/meshservice.go @@ -74,6 +74,7 @@ func (client MeshServiceClient) Get(ctx context.Context, applicationResourceName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshServiceClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client MeshServiceClient) List(ctx context.Context, applicationResourceNam result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshServiceClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/7.2/servicefabric/meshservicereplica.go b/services/servicefabric/7.2/servicefabric/meshservicereplica.go index 1f7a5a114571..5c647bb1d216 100644 --- a/services/servicefabric/7.2/servicefabric/meshservicereplica.go +++ b/services/servicefabric/7.2/servicefabric/meshservicereplica.go @@ -76,6 +76,7 @@ func (client MeshServiceReplicaClient) Get(ctx context.Context, applicationResou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshServiceReplicaClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client MeshServiceReplicaClient) List(ctx context.Context, applicationReso result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshServiceReplicaClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/7.2/servicefabric/meshvolume.go b/services/servicefabric/7.2/servicefabric/meshvolume.go index cdd32eaf7aed..56e89ede9688 100644 --- a/services/servicefabric/7.2/servicefabric/meshvolume.go +++ b/services/servicefabric/7.2/servicefabric/meshvolume.go @@ -88,6 +88,7 @@ func (client MeshVolumeClient) CreateOrUpdate(ctx context.Context, volumeResourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshVolumeClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client MeshVolumeClient) Delete(ctx context.Context, volumeResourceName st result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshVolumeClient", "Delete", resp, "Failure responding to request") + return } return @@ -234,6 +236,7 @@ func (client MeshVolumeClient) Get(ctx context.Context, volumeResourceName strin result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshVolumeClient", "Get", resp, "Failure responding to request") + return } return @@ -305,6 +308,7 @@ func (client MeshVolumeClient) List(ctx context.Context) (result PagedVolumeReso result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.MeshVolumeClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/mgmt/2016-09-01/servicefabric/clusters.go b/services/servicefabric/mgmt/2016-09-01/servicefabric/clusters.go index 772508c258a1..d3cd9d2c053a 100644 --- a/services/servicefabric/mgmt/2016-09-01/servicefabric/clusters.go +++ b/services/servicefabric/mgmt/2016-09-01/servicefabric/clusters.go @@ -203,6 +203,7 @@ func (client ClustersClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClustersClient", "Delete", resp, "Failure responding to request") + return } return @@ -277,6 +278,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -350,6 +352,7 @@ func (client ClustersClient) List(ctx context.Context) (result ClusterListResult result.clr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClustersClient", "List", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -412,6 +415,7 @@ func (client ClustersClient) listNextResults(ctx context.Context, lastResults Cl result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClustersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -463,6 +467,7 @@ func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGr result.clr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -526,6 +531,7 @@ func (client ClustersClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/servicefabric/mgmt/2016-09-01/servicefabric/clusterversions.go b/services/servicefabric/mgmt/2016-09-01/servicefabric/clusterversions.go index a094c6bba1cc..33af16c6d619 100644 --- a/services/servicefabric/mgmt/2016-09-01/servicefabric/clusterversions.go +++ b/services/servicefabric/mgmt/2016-09-01/servicefabric/clusterversions.go @@ -73,6 +73,7 @@ func (client ClusterVersionsClient) Get(ctx context.Context, location string, en result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClusterVersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -149,6 +150,7 @@ func (client ClusterVersionsClient) List(ctx context.Context, location string) ( result.ccvlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClusterVersionsClient", "List", resp, "Failure responding to request") + return } if result.ccvlr.hasNextLink() && result.ccvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -212,6 +214,7 @@ func (client ClusterVersionsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClusterVersionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -264,6 +267,7 @@ func (client ClusterVersionsClient) ListByEnvironment(ctx context.Context, locat result.ccvlr, err = client.ListByEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClusterVersionsClient", "ListByEnvironment", resp, "Failure responding to request") + return } if result.ccvlr.hasNextLink() && result.ccvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -328,6 +332,7 @@ func (client ClusterVersionsClient) listByEnvironmentNextResults(ctx context.Con result, err = client.ListByEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClusterVersionsClient", "listByEnvironmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -380,6 +385,7 @@ func (client ClusterVersionsClient) ListByVersion(ctx context.Context, location result.ccvlr, err = client.ListByVersionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClusterVersionsClient", "ListByVersion", resp, "Failure responding to request") + return } if result.ccvlr.hasNextLink() && result.ccvlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -444,6 +450,7 @@ func (client ClusterVersionsClient) listByVersionNextResults(ctx context.Context result, err = client.ListByVersionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClusterVersionsClient", "listByVersionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/servicefabric/mgmt/2016-09-01/servicefabric/operations.go b/services/servicefabric/mgmt/2016-09-01/servicefabric/operations.go index 1f5a70864012..0f8920639d2f 100644 --- a/services/servicefabric/mgmt/2016-09-01/servicefabric/operations.go +++ b/services/servicefabric/mgmt/2016-09-01/servicefabric/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/servicefabric/mgmt/2019-03-01/servicefabric/applications.go b/services/servicefabric/mgmt/2019-03-01/servicefabric/applications.go index 37ce24337e21..3c63c4d79ff9 100644 --- a/services/servicefabric/mgmt/2019-03-01/servicefabric/applications.go +++ b/services/servicefabric/mgmt/2019-03-01/servicefabric/applications.go @@ -230,6 +230,7 @@ func (client ApplicationsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -307,6 +308,7 @@ func (client ApplicationsClient) List(ctx context.Context, resourceGroupName str result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/mgmt/2019-03-01/servicefabric/applicationtypes.go b/services/servicefabric/mgmt/2019-03-01/servicefabric/applicationtypes.go index 0bd909d30482..e8f9d87935ab 100644 --- a/services/servicefabric/mgmt/2019-03-01/servicefabric/applicationtypes.go +++ b/services/servicefabric/mgmt/2019-03-01/servicefabric/applicationtypes.go @@ -75,6 +75,7 @@ func (client ApplicationTypesClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -231,6 +232,7 @@ func (client ApplicationTypesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypesClient", "Get", resp, "Failure responding to request") + return } return @@ -308,6 +310,7 @@ func (client ApplicationTypesClient) List(ctx context.Context, resourceGroupName result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/mgmt/2019-03-01/servicefabric/applicationtypeversions.go b/services/servicefabric/mgmt/2019-03-01/servicefabric/applicationtypeversions.go index 46f36d069340..2dcc6a0c05bb 100644 --- a/services/servicefabric/mgmt/2019-03-01/servicefabric/applicationtypeversions.go +++ b/services/servicefabric/mgmt/2019-03-01/servicefabric/applicationtypeversions.go @@ -244,6 +244,7 @@ func (client ApplicationTypeVersionsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypeVersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +324,7 @@ func (client ApplicationTypeVersionsClient) List(ctx context.Context, resourceGr result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypeVersionsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/mgmt/2019-03-01/servicefabric/clusters.go b/services/servicefabric/mgmt/2019-03-01/servicefabric/clusters.go index 8ee967d814bb..470554aee2f3 100644 --- a/services/servicefabric/mgmt/2019-03-01/servicefabric/clusters.go +++ b/services/servicefabric/mgmt/2019-03-01/servicefabric/clusters.go @@ -203,6 +203,7 @@ func (client ClustersClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClustersClient", "Delete", resp, "Failure responding to request") + return } return @@ -278,6 +279,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -350,6 +352,7 @@ func (client ClustersClient) List(ctx context.Context) (result ClusterListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClustersClient", "List", resp, "Failure responding to request") + return } return @@ -423,6 +426,7 @@ func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/mgmt/2019-03-01/servicefabric/clusterversions.go b/services/servicefabric/mgmt/2019-03-01/servicefabric/clusterversions.go index e72fef1868a6..e67837139a59 100644 --- a/services/servicefabric/mgmt/2019-03-01/servicefabric/clusterversions.go +++ b/services/servicefabric/mgmt/2019-03-01/servicefabric/clusterversions.go @@ -72,6 +72,7 @@ func (client ClusterVersionsClient) Get(ctx context.Context, location string, cl result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClusterVersionsClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client ClusterVersionsClient) GetByEnvironment(ctx context.Context, locati result, err = client.GetByEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClusterVersionsClient", "GetByEnvironment", resp, "Failure responding to request") + return } return @@ -223,6 +225,7 @@ func (client ClusterVersionsClient) List(ctx context.Context, location string) ( result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClusterVersionsClient", "List", resp, "Failure responding to request") + return } return @@ -297,6 +300,7 @@ func (client ClusterVersionsClient) ListByEnvironment(ctx context.Context, locat result, err = client.ListByEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClusterVersionsClient", "ListByEnvironment", resp, "Failure responding to request") + return } return diff --git a/services/servicefabric/mgmt/2019-03-01/servicefabric/operations.go b/services/servicefabric/mgmt/2019-03-01/servicefabric/operations.go index dff778f68a67..1e1db69b5e0b 100644 --- a/services/servicefabric/mgmt/2019-03-01/servicefabric/operations.go +++ b/services/servicefabric/mgmt/2019-03-01/servicefabric/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) List(ctx context.Context, APIVersion string) (res result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/servicefabric/mgmt/2019-03-01/servicefabric/services.go b/services/servicefabric/mgmt/2019-03-01/servicefabric/services.go index 9f207b5d6982..cf388bc2684e 100644 --- a/services/servicefabric/mgmt/2019-03-01/servicefabric/services.go +++ b/services/servicefabric/mgmt/2019-03-01/servicefabric/services.go @@ -235,6 +235,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -314,6 +315,7 @@ func (client ServicesClient) List(ctx context.Context, resourceGroupName string, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ServicesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/signalr/mgmt/2018-10-01/signalr/operations.go b/services/signalr/mgmt/2018-10-01/signalr/operations.go index 3a48ae199e37..934d3e06af2d 100644 --- a/services/signalr/mgmt/2018-10-01/signalr/operations.go +++ b/services/signalr/mgmt/2018-10-01/signalr/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListPa result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/signalr/mgmt/2018-10-01/signalr/signalr.go b/services/signalr/mgmt/2018-10-01/signalr/signalr.go index 88aa196083d3..931a96a1a230 100644 --- a/services/signalr/mgmt/2018-10-01/signalr/signalr.go +++ b/services/signalr/mgmt/2018-10-01/signalr/signalr.go @@ -82,6 +82,7 @@ func (client Client) CheckNameAvailability(ctx context.Context, location string, result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -326,6 +327,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "Get", resp, "Failure responding to request") + return } return @@ -402,6 +404,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.rl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rl.hasNextLink() && result.rl.IsEmpty() { err = result.NextWithContext(ctx) @@ -465,6 +468,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -514,6 +518,7 @@ func (client Client) ListBySubscription(ctx context.Context) (result ResourceLis result.rl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "ListBySubscription", resp, "Failure responding to request") + return } if result.rl.hasNextLink() && result.rl.IsEmpty() { err = result.NextWithContext(ctx) @@ -576,6 +581,7 @@ func (client Client) listBySubscriptionNextResults(ctx context.Context, lastResu result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -628,6 +634,7 @@ func (client Client) ListKeys(ctx context.Context, resourceGroupName string, res result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "ListKeys", resp, "Failure responding to request") + return } return diff --git a/services/signalr/mgmt/2018-10-01/signalr/usages.go b/services/signalr/mgmt/2018-10-01/signalr/usages.go index 43fe1da3cdb0..052f9f38e443 100644 --- a/services/signalr/mgmt/2018-10-01/signalr/usages.go +++ b/services/signalr/mgmt/2018-10-01/signalr/usages.go @@ -72,6 +72,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ul, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ul.hasNextLink() && result.ul.IsEmpty() { err = result.NextWithContext(ctx) @@ -135,6 +136,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/signalr/mgmt/2020-05-01/signalr/operations.go b/services/signalr/mgmt/2020-05-01/signalr/operations.go index 94a5ad586600..d5895655f65d 100644 --- a/services/signalr/mgmt/2020-05-01/signalr/operations.go +++ b/services/signalr/mgmt/2020-05-01/signalr/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListPa result.ol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.OperationsClient", "List", resp, "Failure responding to request") + return } if result.ol.hasNextLink() && result.ol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/signalr/mgmt/2020-05-01/signalr/privateendpointconnections.go b/services/signalr/mgmt/2020-05-01/signalr/privateendpointconnections.go index 96660b035ba4..faab2191c75e 100644 --- a/services/signalr/mgmt/2020-05-01/signalr/privateendpointconnections.go +++ b/services/signalr/mgmt/2020-05-01/signalr/privateendpointconnections.go @@ -154,6 +154,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, privateE result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -234,6 +235,7 @@ func (client PrivateEndpointConnectionsClient) Update(ctx context.Context, priva result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.PrivateEndpointConnectionsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/signalr/mgmt/2020-05-01/signalr/privatelinkresources.go b/services/signalr/mgmt/2020-05-01/signalr/privatelinkresources.go index cc82550b4c2b..f44ac63394b2 100644 --- a/services/signalr/mgmt/2020-05-01/signalr/privatelinkresources.go +++ b/services/signalr/mgmt/2020-05-01/signalr/privatelinkresources.go @@ -75,6 +75,7 @@ func (client PrivateLinkResourcesClient) List(ctx context.Context, resourceGroup result.plrl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.PrivateLinkResourcesClient", "List", resp, "Failure responding to request") + return } if result.plrl.hasNextLink() && result.plrl.IsEmpty() { err = result.NextWithContext(ctx) @@ -139,6 +140,7 @@ func (client PrivateLinkResourcesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.PrivateLinkResourcesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/signalr/mgmt/2020-05-01/signalr/signalr.go b/services/signalr/mgmt/2020-05-01/signalr/signalr.go index d84a8bc55e4f..2a451b61cfaf 100644 --- a/services/signalr/mgmt/2020-05-01/signalr/signalr.go +++ b/services/signalr/mgmt/2020-05-01/signalr/signalr.go @@ -82,6 +82,7 @@ func (client Client) CheckNameAvailability(ctx context.Context, location string, result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -328,6 +329,7 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "Get", resp, "Failure responding to request") + return } return @@ -404,6 +406,7 @@ func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName result.rl, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rl.hasNextLink() && result.rl.IsEmpty() { err = result.NextWithContext(ctx) @@ -467,6 +470,7 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -516,6 +520,7 @@ func (client Client) ListBySubscription(ctx context.Context) (result ResourceLis result.rl, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "ListBySubscription", resp, "Failure responding to request") + return } if result.rl.hasNextLink() && result.rl.IsEmpty() { err = result.NextWithContext(ctx) @@ -578,6 +583,7 @@ func (client Client) listBySubscriptionNextResults(ctx context.Context, lastResu result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -630,6 +636,7 @@ func (client Client) ListKeys(ctx context.Context, resourceGroupName string, res result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.Client", "ListKeys", resp, "Failure responding to request") + return } return diff --git a/services/signalr/mgmt/2020-05-01/signalr/usages.go b/services/signalr/mgmt/2020-05-01/signalr/usages.go index 20200a354d87..74b0ae0e215c 100644 --- a/services/signalr/mgmt/2020-05-01/signalr/usages.go +++ b/services/signalr/mgmt/2020-05-01/signalr/usages.go @@ -72,6 +72,7 @@ func (client UsagesClient) List(ctx context.Context, location string) (result Us result.ul, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ul.hasNextLink() && result.ul.IsEmpty() { err = result.NextWithContext(ctx) @@ -135,6 +136,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "signalr.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/sql/mgmt/2014-04-01/sql/capabilities.go b/services/sql/mgmt/2014-04-01/sql/capabilities.go index 083d62ba797e..20175670857f 100644 --- a/services/sql/mgmt/2014-04-01/sql/capabilities.go +++ b/services/sql/mgmt/2014-04-01/sql/capabilities.go @@ -73,6 +73,7 @@ func (client CapabilitiesClient) ListByLocation(ctx context.Context, locationID result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.CapabilitiesClient", "ListByLocation", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/databaseadvisors.go b/services/sql/mgmt/2014-04-01/sql/databaseadvisors.go index d376a1bdfda4..ce1d42cd2cbf 100644 --- a/services/sql/mgmt/2014-04-01/sql/databaseadvisors.go +++ b/services/sql/mgmt/2014-04-01/sql/databaseadvisors.go @@ -79,6 +79,7 @@ func (client DatabaseAdvisorsClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseAdvisorsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client DatabaseAdvisorsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseAdvisorsClient", "Get", resp, "Failure responding to request") + return } return @@ -242,6 +244,7 @@ func (client DatabaseAdvisorsClient) ListByDatabase(ctx context.Context, resourc result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseAdvisorsClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/databaseconnectionpolicies.go b/services/sql/mgmt/2014-04-01/sql/databaseconnectionpolicies.go index ead47aaac098..bf06500270e6 100644 --- a/services/sql/mgmt/2014-04-01/sql/databaseconnectionpolicies.go +++ b/services/sql/mgmt/2014-04-01/sql/databaseconnectionpolicies.go @@ -79,6 +79,7 @@ func (client DatabaseConnectionPoliciesClient) CreateOrUpdate(ctx context.Contex result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseConnectionPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client DatabaseConnectionPoliciesClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseConnectionPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/databases.go b/services/sql/mgmt/2014-04-01/sql/databases.go index 6d9baa828e41..de78a93f68d6 100644 --- a/services/sql/mgmt/2014-04-01/sql/databases.go +++ b/services/sql/mgmt/2014-04-01/sql/databases.go @@ -249,6 +249,7 @@ func (client DatabasesClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Delete", resp, "Failure responding to request") + return } return @@ -418,6 +419,7 @@ func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -500,6 +502,7 @@ func (client DatabasesClient) GetByElasticPool(ctx context.Context, resourceGrou result, err = client.GetByElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "GetByElasticPool", resp, "Failure responding to request") + return } return @@ -580,6 +583,7 @@ func (client DatabasesClient) GetByRecommendedElasticPool(ctx context.Context, r result, err = client.GetByRecommendedElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "GetByRecommendedElasticPool", resp, "Failure responding to request") + return } return @@ -745,6 +749,7 @@ func (client DatabasesClient) ListByElasticPool(ctx context.Context, resourceGro result, err = client.ListByElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListByElasticPool", resp, "Failure responding to request") + return } return @@ -823,6 +828,7 @@ func (client DatabasesClient) ListByRecommendedElasticPool(ctx context.Context, result, err = client.ListByRecommendedElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListByRecommendedElasticPool", resp, "Failure responding to request") + return } return @@ -903,6 +909,7 @@ func (client DatabasesClient) ListByServer(ctx context.Context, resourceGroupNam result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListByServer", resp, "Failure responding to request") + return } return @@ -986,6 +993,7 @@ func (client DatabasesClient) ListMetricDefinitions(ctx context.Context, resourc result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -1065,6 +1073,7 @@ func (client DatabasesClient) ListMetrics(ctx context.Context, resourceGroupName result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/databasetableauditingpolicies.go b/services/sql/mgmt/2014-04-01/sql/databasetableauditingpolicies.go index 2486f2b26b42..6edfec902c60 100644 --- a/services/sql/mgmt/2014-04-01/sql/databasetableauditingpolicies.go +++ b/services/sql/mgmt/2014-04-01/sql/databasetableauditingpolicies.go @@ -79,6 +79,7 @@ func (client DatabaseTableAuditingPoliciesClient) CreateOrUpdate(ctx context.Con result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseTableAuditingPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -162,6 +163,7 @@ func (client DatabaseTableAuditingPoliciesClient) Get(ctx context.Context, resou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseTableAuditingPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -241,6 +243,7 @@ func (client DatabaseTableAuditingPoliciesClient) ListByDatabase(ctx context.Con result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseTableAuditingPoliciesClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/databasethreatdetectionpolicies.go b/services/sql/mgmt/2014-04-01/sql/databasethreatdetectionpolicies.go index 33f6aafdecdf..eb9efc3b0f7c 100644 --- a/services/sql/mgmt/2014-04-01/sql/databasethreatdetectionpolicies.go +++ b/services/sql/mgmt/2014-04-01/sql/databasethreatdetectionpolicies.go @@ -78,6 +78,7 @@ func (client DatabaseThreatDetectionPoliciesClient) CreateOrUpdate(ctx context.C result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseThreatDetectionPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client DatabaseThreatDetectionPoliciesClient) Get(ctx context.Context, res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseThreatDetectionPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/databaseusages.go b/services/sql/mgmt/2014-04-01/sql/databaseusages.go index 821f798cc4f8..0f0ba80f8697 100644 --- a/services/sql/mgmt/2014-04-01/sql/databaseusages.go +++ b/services/sql/mgmt/2014-04-01/sql/databaseusages.go @@ -76,6 +76,7 @@ func (client DatabaseUsagesClient) ListByDatabase(ctx context.Context, resourceG result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseUsagesClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/datamaskingpolicies.go b/services/sql/mgmt/2014-04-01/sql/datamaskingpolicies.go index 78e7267705dd..c2542135e170 100644 --- a/services/sql/mgmt/2014-04-01/sql/datamaskingpolicies.go +++ b/services/sql/mgmt/2014-04-01/sql/datamaskingpolicies.go @@ -78,6 +78,7 @@ func (client DataMaskingPoliciesClient) CreateOrUpdate(ctx context.Context, reso result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DataMaskingPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -161,6 +162,7 @@ func (client DataMaskingPoliciesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DataMaskingPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/datamaskingrules.go b/services/sql/mgmt/2014-04-01/sql/datamaskingrules.go index 3b18e7b024a4..8a93097cd0cc 100644 --- a/services/sql/mgmt/2014-04-01/sql/datamaskingrules.go +++ b/services/sql/mgmt/2014-04-01/sql/datamaskingrules.go @@ -90,6 +90,7 @@ func (client DataMaskingRulesClient) CreateOrUpdate(ctx context.Context, resourc result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DataMaskingRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client DataMaskingRulesClient) ListByDatabase(ctx context.Context, resourc result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DataMaskingRulesClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/disasterrecoveryconfigurations.go b/services/sql/mgmt/2014-04-01/sql/disasterrecoveryconfigurations.go index 46ae3d19d93f..5b8064084eb3 100644 --- a/services/sql/mgmt/2014-04-01/sql/disasterrecoveryconfigurations.go +++ b/services/sql/mgmt/2014-04-01/sql/disasterrecoveryconfigurations.go @@ -387,6 +387,7 @@ func (client DisasterRecoveryConfigurationsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DisasterRecoveryConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -464,6 +465,7 @@ func (client DisasterRecoveryConfigurationsClient) List(ctx context.Context, res result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.DisasterRecoveryConfigurationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/elasticpoolactivities.go b/services/sql/mgmt/2014-04-01/sql/elasticpoolactivities.go index c268b9637370..4888ff3ef4a4 100644 --- a/services/sql/mgmt/2014-04-01/sql/elasticpoolactivities.go +++ b/services/sql/mgmt/2014-04-01/sql/elasticpoolactivities.go @@ -77,6 +77,7 @@ func (client ElasticPoolActivitiesClient) ListByElasticPool(ctx context.Context, result, err = client.ListByElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolActivitiesClient", "ListByElasticPool", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/elasticpooldatabaseactivities.go b/services/sql/mgmt/2014-04-01/sql/elasticpooldatabaseactivities.go index 8ef06f4105c6..d08f393060ad 100644 --- a/services/sql/mgmt/2014-04-01/sql/elasticpooldatabaseactivities.go +++ b/services/sql/mgmt/2014-04-01/sql/elasticpooldatabaseactivities.go @@ -77,6 +77,7 @@ func (client ElasticPoolDatabaseActivitiesClient) ListByElasticPool(ctx context. result, err = client.ListByElasticPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolDatabaseActivitiesClient", "ListByElasticPool", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/elasticpools.go b/services/sql/mgmt/2014-04-01/sql/elasticpools.go index f15e17be52b8..9b6efe69b5dd 100644 --- a/services/sql/mgmt/2014-04-01/sql/elasticpools.go +++ b/services/sql/mgmt/2014-04-01/sql/elasticpools.go @@ -158,6 +158,7 @@ func (client ElasticPoolsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "Delete", resp, "Failure responding to request") + return } return @@ -235,6 +236,7 @@ func (client ElasticPoolsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -312,6 +314,7 @@ func (client ElasticPoolsClient) ListByServer(ctx context.Context, resourceGroup result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "ListByServer", resp, "Failure responding to request") + return } return @@ -389,6 +392,7 @@ func (client ElasticPoolsClient) ListMetricDefinitions(ctx context.Context, reso result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -468,6 +472,7 @@ func (client ElasticPoolsClient) ListMetrics(ctx context.Context, resourceGroupN result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/extensions.go b/services/sql/mgmt/2014-04-01/sql/extensions.go index fb62ad907274..a50df423e0ab 100644 --- a/services/sql/mgmt/2014-04-01/sql/extensions.go +++ b/services/sql/mgmt/2014-04-01/sql/extensions.go @@ -76,6 +76,7 @@ func (client ExtensionsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ExtensionsClient", "Get", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client ExtensionsClient) ListByDatabase(ctx context.Context, resourceGroup result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ExtensionsClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/firewallrules.go b/services/sql/mgmt/2014-04-01/sql/firewallrules.go index abe6eb6e3678..533867a68840 100644 --- a/services/sql/mgmt/2014-04-01/sql/firewallrules.go +++ b/services/sql/mgmt/2014-04-01/sql/firewallrules.go @@ -87,6 +87,7 @@ func (client FirewallRulesClient) CreateOrUpdate(ctx context.Context, resourceGr result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.FirewallRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client FirewallRulesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.FirewallRulesClient", "Delete", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.FirewallRulesClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +326,7 @@ func (client FirewallRulesClient) ListByServer(ctx context.Context, resourceGrou result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.FirewallRulesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/geobackuppolicies.go b/services/sql/mgmt/2014-04-01/sql/geobackuppolicies.go index e9abc2b3fc93..0975f0aa33d5 100644 --- a/services/sql/mgmt/2014-04-01/sql/geobackuppolicies.go +++ b/services/sql/mgmt/2014-04-01/sql/geobackuppolicies.go @@ -85,6 +85,7 @@ func (client GeoBackupPoliciesClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.GeoBackupPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client GeoBackupPoliciesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.GeoBackupPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -247,6 +249,7 @@ func (client GeoBackupPoliciesClient) ListByDatabase(ctx context.Context, resour result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.GeoBackupPoliciesClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/operations.go b/services/sql/mgmt/2014-04-01/sql/operations.go index e0b8c8d03a31..386bada057d6 100644 --- a/services/sql/mgmt/2014-04-01/sql/operations.go +++ b/services/sql/mgmt/2014-04-01/sql/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/queries.go b/services/sql/mgmt/2014-04-01/sql/queries.go index 4465bb00080d..6803e13d5830 100644 --- a/services/sql/mgmt/2014-04-01/sql/queries.go +++ b/services/sql/mgmt/2014-04-01/sql/queries.go @@ -76,6 +76,7 @@ func (client QueriesClient) ListByDatabase(ctx context.Context, resourceGroupNam result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.QueriesClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/querystatistics.go b/services/sql/mgmt/2014-04-01/sql/querystatistics.go index 0f8a9dfa5ed8..34c73d8c2b92 100644 --- a/services/sql/mgmt/2014-04-01/sql/querystatistics.go +++ b/services/sql/mgmt/2014-04-01/sql/querystatistics.go @@ -77,6 +77,7 @@ func (client QueryStatisticsClient) ListByQuery(ctx context.Context, resourceGro result, err = client.ListByQueryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.QueryStatisticsClient", "ListByQuery", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/querytexts.go b/services/sql/mgmt/2014-04-01/sql/querytexts.go index c8dbaf098bfc..08c28509d2da 100644 --- a/services/sql/mgmt/2014-04-01/sql/querytexts.go +++ b/services/sql/mgmt/2014-04-01/sql/querytexts.go @@ -77,6 +77,7 @@ func (client QueryTextsClient) ListByQuery(ctx context.Context, resourceGroupNam result, err = client.ListByQueryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.QueryTextsClient", "ListByQuery", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/recommendedelasticpools.go b/services/sql/mgmt/2014-04-01/sql/recommendedelasticpools.go index d53e3e5f998c..80846f72b474 100644 --- a/services/sql/mgmt/2014-04-01/sql/recommendedelasticpools.go +++ b/services/sql/mgmt/2014-04-01/sql/recommendedelasticpools.go @@ -77,6 +77,7 @@ func (client RecommendedElasticPoolsClient) Get(ctx context.Context, resourceGro result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RecommendedElasticPoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client RecommendedElasticPoolsClient) ListByServer(ctx context.Context, re result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RecommendedElasticPoolsClient", "ListByServer", resp, "Failure responding to request") + return } return @@ -231,6 +233,7 @@ func (client RecommendedElasticPoolsClient) ListMetrics(ctx context.Context, res result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RecommendedElasticPoolsClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/recoverabledatabases.go b/services/sql/mgmt/2014-04-01/sql/recoverabledatabases.go index b0975e5b0da6..3f4385532de9 100644 --- a/services/sql/mgmt/2014-04-01/sql/recoverabledatabases.go +++ b/services/sql/mgmt/2014-04-01/sql/recoverabledatabases.go @@ -77,6 +77,7 @@ func (client RecoverableDatabasesClient) Get(ctx context.Context, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RecoverableDatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client RecoverableDatabasesClient) ListByServer(ctx context.Context, resou result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RecoverableDatabasesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/replicationlinks.go b/services/sql/mgmt/2014-04-01/sql/replicationlinks.go index e494bf72327a..0a68fa4952d9 100644 --- a/services/sql/mgmt/2014-04-01/sql/replicationlinks.go +++ b/services/sql/mgmt/2014-04-01/sql/replicationlinks.go @@ -78,6 +78,7 @@ func (client ReplicationLinksClient) Delete(ctx context.Context, resourceGroupNa result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ReplicationLinksClient", "Delete", resp, "Failure responding to request") + return } return @@ -316,6 +317,7 @@ func (client ReplicationLinksClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ReplicationLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -395,6 +397,7 @@ func (client ReplicationLinksClient) ListByDatabase(ctx context.Context, resourc result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ReplicationLinksClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/restorabledroppeddatabases.go b/services/sql/mgmt/2014-04-01/sql/restorabledroppeddatabases.go index 8408a78330ec..e62154c5f421 100644 --- a/services/sql/mgmt/2014-04-01/sql/restorabledroppeddatabases.go +++ b/services/sql/mgmt/2014-04-01/sql/restorabledroppeddatabases.go @@ -78,6 +78,7 @@ func (client RestorableDroppedDatabasesClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RestorableDroppedDatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -155,6 +156,7 @@ func (client RestorableDroppedDatabasesClient) ListByServer(ctx context.Context, result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RestorableDroppedDatabasesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/restorepoints.go b/services/sql/mgmt/2014-04-01/sql/restorepoints.go index a18775e573b4..c8c313a5732e 100644 --- a/services/sql/mgmt/2014-04-01/sql/restorepoints.go +++ b/services/sql/mgmt/2014-04-01/sql/restorepoints.go @@ -76,6 +76,7 @@ func (client RestorePointsClient) ListByDatabase(ctx context.Context, resourceGr result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.RestorePointsClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/serveradvisors.go b/services/sql/mgmt/2014-04-01/sql/serveradvisors.go index ea22e00553bb..9dae755ffff4 100644 --- a/services/sql/mgmt/2014-04-01/sql/serveradvisors.go +++ b/services/sql/mgmt/2014-04-01/sql/serveradvisors.go @@ -77,6 +77,7 @@ func (client ServerAdvisorsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerAdvisorsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client ServerAdvisorsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerAdvisorsClient", "Get", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client ServerAdvisorsClient) ListByServer(ctx context.Context, resourceGro result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerAdvisorsClient", "ListByServer", resp, "Failure responding to request") + return } return @@ -314,6 +317,7 @@ func (client ServerAdvisorsClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerAdvisorsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/serverazureadadministrators.go b/services/sql/mgmt/2014-04-01/sql/serverazureadadministrators.go index 4916ffa36355..c72a9858fd4a 100644 --- a/services/sql/mgmt/2014-04-01/sql/serverazureadadministrators.go +++ b/services/sql/mgmt/2014-04-01/sql/serverazureadadministrators.go @@ -246,6 +246,7 @@ func (client ServerAzureADAdministratorsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerAzureADAdministratorsClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +324,7 @@ func (client ServerAzureADAdministratorsClient) ListByServer(ctx context.Context result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerAzureADAdministratorsClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/servercommunicationlinks.go b/services/sql/mgmt/2014-04-01/sql/servercommunicationlinks.go index 0c5fce09ef4c..16c4bcfea27b 100644 --- a/services/sql/mgmt/2014-04-01/sql/servercommunicationlinks.go +++ b/services/sql/mgmt/2014-04-01/sql/servercommunicationlinks.go @@ -168,6 +168,7 @@ func (client ServerCommunicationLinksClient) Delete(ctx context.Context, resourc result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerCommunicationLinksClient", "Delete", resp, "Failure responding to request") + return } return @@ -245,6 +246,7 @@ func (client ServerCommunicationLinksClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerCommunicationLinksClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +324,7 @@ func (client ServerCommunicationLinksClient) ListByServer(ctx context.Context, r result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerCommunicationLinksClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/serverconnectionpolicies.go b/services/sql/mgmt/2014-04-01/sql/serverconnectionpolicies.go index 21095382288f..599c3e8e1bb7 100644 --- a/services/sql/mgmt/2014-04-01/sql/serverconnectionpolicies.go +++ b/services/sql/mgmt/2014-04-01/sql/serverconnectionpolicies.go @@ -77,6 +77,7 @@ func (client ServerConnectionPoliciesClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerConnectionPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client ServerConnectionPoliciesClient) Get(ctx context.Context, resourceGr result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerConnectionPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/servers.go b/services/sql/mgmt/2014-04-01/sql/servers.go index f72a4520bf99..42f6ce2d34dd 100644 --- a/services/sql/mgmt/2014-04-01/sql/servers.go +++ b/services/sql/mgmt/2014-04-01/sql/servers.go @@ -81,6 +81,7 @@ func (client ServersClient) CheckNameAvailability(ctx context.Context, parameter result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -158,6 +159,7 @@ func (client ServersClient) CreateOrUpdate(ctx context.Context, resourceGroupNam result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -237,6 +239,7 @@ func (client ServersClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersClient", "Delete", resp, "Failure responding to request") + return } return @@ -312,6 +315,7 @@ func (client ServersClient) Get(ctx context.Context, resourceGroupName string, s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersClient", "Get", resp, "Failure responding to request") + return } return @@ -384,6 +388,7 @@ func (client ServersClient) List(ctx context.Context) (result ServerListResult, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersClient", "List", resp, "Failure responding to request") + return } return @@ -457,6 +462,7 @@ func (client ServersClient) ListByResourceGroup(ctx context.Context, resourceGro result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -533,6 +539,7 @@ func (client ServersClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/servertableauditingpolicies.go b/services/sql/mgmt/2014-04-01/sql/servertableauditingpolicies.go index b0d6ae1f1084..80418d62a4fd 100644 --- a/services/sql/mgmt/2014-04-01/sql/servertableauditingpolicies.go +++ b/services/sql/mgmt/2014-04-01/sql/servertableauditingpolicies.go @@ -78,6 +78,7 @@ func (client ServerTableAuditingPoliciesClient) CreateOrUpdate(ctx context.Conte result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerTableAuditingPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -159,6 +160,7 @@ func (client ServerTableAuditingPoliciesClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerTableAuditingPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client ServerTableAuditingPoliciesClient) ListByServer(ctx context.Context result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerTableAuditingPoliciesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/serverusages.go b/services/sql/mgmt/2014-04-01/sql/serverusages.go index b91950ee0677..ee231de0c896 100644 --- a/services/sql/mgmt/2014-04-01/sql/serverusages.go +++ b/services/sql/mgmt/2014-04-01/sql/serverusages.go @@ -75,6 +75,7 @@ func (client ServerUsagesClient) ListByServer(ctx context.Context, resourceGroup result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerUsagesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/serviceobjectives.go b/services/sql/mgmt/2014-04-01/sql/serviceobjectives.go index 5b0d17d9ae87..1a0367f0f935 100644 --- a/services/sql/mgmt/2014-04-01/sql/serviceobjectives.go +++ b/services/sql/mgmt/2014-04-01/sql/serviceobjectives.go @@ -77,6 +77,7 @@ func (client ServiceObjectivesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServiceObjectivesClient", "Get", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client ServiceObjectivesClient) ListByServer(ctx context.Context, resource result, err = client.ListByServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServiceObjectivesClient", "ListByServer", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/servicetieradvisors.go b/services/sql/mgmt/2014-04-01/sql/servicetieradvisors.go index e21177193bb9..17c6a248f19b 100644 --- a/services/sql/mgmt/2014-04-01/sql/servicetieradvisors.go +++ b/services/sql/mgmt/2014-04-01/sql/servicetieradvisors.go @@ -78,6 +78,7 @@ func (client ServiceTierAdvisorsClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServiceTierAdvisorsClient", "Get", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client ServiceTierAdvisorsClient) ListByDatabase(ctx context.Context, reso result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServiceTierAdvisorsClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/transparentdataencryptionactivities.go b/services/sql/mgmt/2014-04-01/sql/transparentdataencryptionactivities.go index 3ddbfabd7144..66565e96e3cc 100644 --- a/services/sql/mgmt/2014-04-01/sql/transparentdataencryptionactivities.go +++ b/services/sql/mgmt/2014-04-01/sql/transparentdataencryptionactivities.go @@ -78,6 +78,7 @@ func (client TransparentDataEncryptionActivitiesClient) ListByConfiguration(ctx result, err = client.ListByConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.TransparentDataEncryptionActivitiesClient", "ListByConfiguration", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/transparentdataencryptionconfigurations.go b/services/sql/mgmt/2014-04-01/sql/transparentdataencryptionconfigurations.go index 9d260b3d82fa..0fdeefffcdf3 100644 --- a/services/sql/mgmt/2014-04-01/sql/transparentdataencryptionconfigurations.go +++ b/services/sql/mgmt/2014-04-01/sql/transparentdataencryptionconfigurations.go @@ -79,6 +79,7 @@ func (client TransparentDataEncryptionConfigurationsClient) ListByDatabase(ctx c result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.TransparentDataEncryptionConfigurationsClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/sql/mgmt/2014-04-01/sql/transparentdataencryptions.go b/services/sql/mgmt/2014-04-01/sql/transparentdataencryptions.go index 8b488f97380a..0b88ca196502 100644 --- a/services/sql/mgmt/2014-04-01/sql/transparentdataencryptions.go +++ b/services/sql/mgmt/2014-04-01/sql/transparentdataencryptions.go @@ -78,6 +78,7 @@ func (client TransparentDataEncryptionsClient) CreateOrUpdate(ctx context.Contex result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.TransparentDataEncryptionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client TransparentDataEncryptionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "sql.TransparentDataEncryptionsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/storage/datalake/2018-11-09/storagedatalake/filesystem.go b/services/storage/datalake/2018-11-09/storagedatalake/filesystem.go index 049dfede9582..96069387a5ec 100644 --- a/services/storage/datalake/2018-11-09/storagedatalake/filesystem.go +++ b/services/storage/datalake/2018-11-09/storagedatalake/filesystem.go @@ -90,6 +90,7 @@ func (client FilesystemClient) Create(ctx context.Context, filesystem string, xM result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.FilesystemClient", "Create", resp, "Failure responding to request") + return } return @@ -215,6 +216,7 @@ func (client FilesystemClient) Delete(ctx context.Context, filesystem string, if result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.FilesystemClient", "Delete", resp, "Failure responding to request") + return } return @@ -333,6 +335,7 @@ func (client FilesystemClient) GetProperties(ctx context.Context, filesystem str result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.FilesystemClient", "GetProperties", resp, "Failure responding to request") + return } return @@ -447,6 +450,7 @@ func (client FilesystemClient) List(ctx context.Context, prefix string, continua result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.FilesystemClient", "List", resp, "Failure responding to request") + return } return @@ -575,6 +579,7 @@ func (client FilesystemClient) SetProperties(ctx context.Context, filesystem str result, err = client.SetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.FilesystemClient", "SetProperties", resp, "Failure responding to request") + return } return diff --git a/services/storage/datalake/2018-11-09/storagedatalake/path.go b/services/storage/datalake/2018-11-09/storagedatalake/path.go index 2da44ac20526..1a03982fb8d5 100644 --- a/services/storage/datalake/2018-11-09/storagedatalake/path.go +++ b/services/storage/datalake/2018-11-09/storagedatalake/path.go @@ -159,6 +159,7 @@ func (client PathClient) Create(ctx context.Context, filesystem string, pathPara result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.PathClient", "Create", resp, "Failure responding to request") + return } return @@ -389,6 +390,7 @@ func (client PathClient) Delete(ctx context.Context, filesystem string, pathPara result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.PathClient", "Delete", resp, "Failure responding to request") + return } return @@ -550,6 +552,7 @@ func (client PathClient) GetProperties(ctx context.Context, filesystem string, p result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.PathClient", "GetProperties", resp, "Failure responding to request") + return } return @@ -718,6 +721,7 @@ func (client PathClient) Lease(ctx context.Context, xMsLeaseAction PathLeaseActi result, err = client.LeaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.PathClient", "Lease", resp, "Failure responding to request") + return } return @@ -878,6 +882,7 @@ func (client PathClient) List(ctx context.Context, recursive bool, filesystem st result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.PathClient", "List", resp, "Failure responding to request") + return } return @@ -1025,6 +1030,7 @@ func (client PathClient) Read(ctx context.Context, filesystem string, pathParame result, err = client.ReadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.PathClient", "Read", resp, "Failure responding to request") + return } return @@ -1264,6 +1270,7 @@ func (client PathClient) Update(ctx context.Context, action PathUpdateAction, fi result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.PathClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storage/datalake/2019-10-31/storagedatalake/filesystem.go b/services/storage/datalake/2019-10-31/storagedatalake/filesystem.go index 049dfede9582..96069387a5ec 100644 --- a/services/storage/datalake/2019-10-31/storagedatalake/filesystem.go +++ b/services/storage/datalake/2019-10-31/storagedatalake/filesystem.go @@ -90,6 +90,7 @@ func (client FilesystemClient) Create(ctx context.Context, filesystem string, xM result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.FilesystemClient", "Create", resp, "Failure responding to request") + return } return @@ -215,6 +216,7 @@ func (client FilesystemClient) Delete(ctx context.Context, filesystem string, if result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.FilesystemClient", "Delete", resp, "Failure responding to request") + return } return @@ -333,6 +335,7 @@ func (client FilesystemClient) GetProperties(ctx context.Context, filesystem str result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.FilesystemClient", "GetProperties", resp, "Failure responding to request") + return } return @@ -447,6 +450,7 @@ func (client FilesystemClient) List(ctx context.Context, prefix string, continua result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.FilesystemClient", "List", resp, "Failure responding to request") + return } return @@ -575,6 +579,7 @@ func (client FilesystemClient) SetProperties(ctx context.Context, filesystem str result, err = client.SetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.FilesystemClient", "SetProperties", resp, "Failure responding to request") + return } return diff --git a/services/storage/datalake/2019-10-31/storagedatalake/path.go b/services/storage/datalake/2019-10-31/storagedatalake/path.go index 834e837fb684..3ec90d2fefa8 100644 --- a/services/storage/datalake/2019-10-31/storagedatalake/path.go +++ b/services/storage/datalake/2019-10-31/storagedatalake/path.go @@ -159,6 +159,7 @@ func (client PathClient) Create(ctx context.Context, filesystem string, pathPara result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.PathClient", "Create", resp, "Failure responding to request") + return } return @@ -389,6 +390,7 @@ func (client PathClient) Delete(ctx context.Context, filesystem string, pathPara result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.PathClient", "Delete", resp, "Failure responding to request") + return } return @@ -552,6 +554,7 @@ func (client PathClient) GetProperties(ctx context.Context, filesystem string, p result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.PathClient", "GetProperties", resp, "Failure responding to request") + return } return @@ -723,6 +726,7 @@ func (client PathClient) Lease(ctx context.Context, xMsLeaseAction PathLeaseActi result, err = client.LeaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.PathClient", "Lease", resp, "Failure responding to request") + return } return @@ -883,6 +887,7 @@ func (client PathClient) List(ctx context.Context, recursive bool, filesystem st result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.PathClient", "List", resp, "Failure responding to request") + return } return @@ -1030,6 +1035,7 @@ func (client PathClient) Read(ctx context.Context, filesystem string, pathParame result, err = client.ReadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.PathClient", "Read", resp, "Failure responding to request") + return } return @@ -1269,6 +1275,7 @@ func (client PathClient) Update(ctx context.Context, action PathUpdateAction, fi result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagedatalake.PathClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2015-06-15/storage/accounts.go b/services/storage/mgmt/2015-06-15/storage/accounts.go index 42a865cf8fd6..811554343c46 100644 --- a/services/storage/mgmt/2015-06-15/storage/accounts.go +++ b/services/storage/mgmt/2015-06-15/storage/accounts.go @@ -79,6 +79,7 @@ func (client AccountsClient) CheckNameAvailability(ctx context.Context, accountN result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -263,6 +264,7 @@ func (client AccountsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -351,6 +353,7 @@ func (client AccountsClient) GetProperties(ctx context.Context, resourceGroupNam result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "GetProperties", resp, "Failure responding to request") + return } return @@ -424,6 +427,7 @@ func (client AccountsClient) List(ctx context.Context) (result AccountListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "List", resp, "Failure responding to request") + return } return @@ -506,6 +510,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -593,6 +598,7 @@ func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName str result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -684,6 +690,7 @@ func (client AccountsClient) RegenerateKey(ctx context.Context, resourceGroupNam result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -780,6 +787,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2015-06-15/storage/usage.go b/services/storage/mgmt/2015-06-15/storage/usage.go index 64d7ec113dc6..b067849e8179 100644 --- a/services/storage/mgmt/2015-06-15/storage/usage.go +++ b/services/storage/mgmt/2015-06-15/storage/usage.go @@ -69,6 +69,7 @@ func (client UsageClient) List(ctx context.Context) (result UsageListResult, err result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.UsageClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2016-01-01/storage/accounts.go b/services/storage/mgmt/2016-01-01/storage/accounts.go index 59e14050e79d..00fdfc25c45e 100644 --- a/services/storage/mgmt/2016-01-01/storage/accounts.go +++ b/services/storage/mgmt/2016-01-01/storage/accounts.go @@ -80,6 +80,7 @@ func (client AccountsClient) CheckNameAvailability(ctx context.Context, accountN result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -261,6 +262,7 @@ func (client AccountsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -344,6 +346,7 @@ func (client AccountsClient) GetProperties(ctx context.Context, resourceGroupNam result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "GetProperties", resp, "Failure responding to request") + return } return @@ -417,6 +420,7 @@ func (client AccountsClient) List(ctx context.Context) (result AccountListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "List", resp, "Failure responding to request") + return } return @@ -490,6 +494,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -572,6 +577,7 @@ func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName str result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -658,6 +664,7 @@ func (client AccountsClient) RegenerateKey(ctx context.Context, resourceGroupNam result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -749,6 +756,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2016-01-01/storage/usage.go b/services/storage/mgmt/2016-01-01/storage/usage.go index 7bf5cdd1e8d0..622baf2cd83f 100644 --- a/services/storage/mgmt/2016-01-01/storage/usage.go +++ b/services/storage/mgmt/2016-01-01/storage/usage.go @@ -69,6 +69,7 @@ func (client UsageClient) List(ctx context.Context) (result UsageListResult, err result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.UsageClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2016-05-01/storage/accounts.go b/services/storage/mgmt/2016-05-01/storage/accounts.go index b912142840a4..45efbcc16721 100644 --- a/services/storage/mgmt/2016-05-01/storage/accounts.go +++ b/services/storage/mgmt/2016-05-01/storage/accounts.go @@ -80,6 +80,7 @@ func (client AccountsClient) CheckNameAvailability(ctx context.Context, accountN result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -271,6 +272,7 @@ func (client AccountsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -359,6 +361,7 @@ func (client AccountsClient) GetProperties(ctx context.Context, resourceGroupNam result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "GetProperties", resp, "Failure responding to request") + return } return @@ -432,6 +435,7 @@ func (client AccountsClient) List(ctx context.Context) (result AccountListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "List", resp, "Failure responding to request") + return } return @@ -521,6 +525,7 @@ func (client AccountsClient) ListAccountSAS(ctx context.Context, resourceGroupNa result, err = client.ListAccountSASResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListAccountSAS", resp, "Failure responding to request") + return } return @@ -607,6 +612,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -694,6 +700,7 @@ func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName str result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -787,6 +794,7 @@ func (client AccountsClient) ListServiceSAS(ctx context.Context, resourceGroupNa result, err = client.ListServiceSASResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListServiceSAS", resp, "Failure responding to request") + return } return @@ -880,6 +888,7 @@ func (client AccountsClient) RegenerateKey(ctx context.Context, resourceGroupNam result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -976,6 +985,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2016-05-01/storage/usage.go b/services/storage/mgmt/2016-05-01/storage/usage.go index 723a26ed2075..21395cd6c417 100644 --- a/services/storage/mgmt/2016-05-01/storage/usage.go +++ b/services/storage/mgmt/2016-05-01/storage/usage.go @@ -69,6 +69,7 @@ func (client UsageClient) List(ctx context.Context) (result UsageListResult, err result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.UsageClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2016-12-01/storage/accounts.go b/services/storage/mgmt/2016-12-01/storage/accounts.go index 1a246ab7a7ef..1538a2094126 100644 --- a/services/storage/mgmt/2016-12-01/storage/accounts.go +++ b/services/storage/mgmt/2016-12-01/storage/accounts.go @@ -80,6 +80,7 @@ func (client AccountsClient) CheckNameAvailability(ctx context.Context, accountN result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -271,6 +272,7 @@ func (client AccountsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -359,6 +361,7 @@ func (client AccountsClient) GetProperties(ctx context.Context, resourceGroupNam result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "GetProperties", resp, "Failure responding to request") + return } return @@ -432,6 +435,7 @@ func (client AccountsClient) List(ctx context.Context) (result AccountListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "List", resp, "Failure responding to request") + return } return @@ -521,6 +525,7 @@ func (client AccountsClient) ListAccountSAS(ctx context.Context, resourceGroupNa result, err = client.ListAccountSASResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListAccountSAS", resp, "Failure responding to request") + return } return @@ -607,6 +612,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -694,6 +700,7 @@ func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName str result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -787,6 +794,7 @@ func (client AccountsClient) ListServiceSAS(ctx context.Context, resourceGroupNa result, err = client.ListServiceSASResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListServiceSAS", resp, "Failure responding to request") + return } return @@ -880,6 +888,7 @@ func (client AccountsClient) RegenerateKey(ctx context.Context, resourceGroupNam result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -976,6 +985,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2016-12-01/storage/usage.go b/services/storage/mgmt/2016-12-01/storage/usage.go index 860bba20f824..8554be49c59c 100644 --- a/services/storage/mgmt/2016-12-01/storage/usage.go +++ b/services/storage/mgmt/2016-12-01/storage/usage.go @@ -69,6 +69,7 @@ func (client UsageClient) List(ctx context.Context) (result UsageListResult, err result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.UsageClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2017-06-01/storage/accounts.go b/services/storage/mgmt/2017-06-01/storage/accounts.go index bbcdde93cfef..14fb5af7b7b4 100644 --- a/services/storage/mgmt/2017-06-01/storage/accounts.go +++ b/services/storage/mgmt/2017-06-01/storage/accounts.go @@ -80,6 +80,7 @@ func (client AccountsClient) CheckNameAvailability(ctx context.Context, accountN result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -271,6 +272,7 @@ func (client AccountsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -359,6 +361,7 @@ func (client AccountsClient) GetProperties(ctx context.Context, resourceGroupNam result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "GetProperties", resp, "Failure responding to request") + return } return @@ -432,6 +435,7 @@ func (client AccountsClient) List(ctx context.Context) (result AccountListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "List", resp, "Failure responding to request") + return } return @@ -521,6 +525,7 @@ func (client AccountsClient) ListAccountSAS(ctx context.Context, resourceGroupNa result, err = client.ListAccountSASResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListAccountSAS", resp, "Failure responding to request") + return } return @@ -607,6 +612,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -694,6 +700,7 @@ func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName str result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -787,6 +794,7 @@ func (client AccountsClient) ListServiceSAS(ctx context.Context, resourceGroupNa result, err = client.ListServiceSASResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListServiceSAS", resp, "Failure responding to request") + return } return @@ -880,6 +888,7 @@ func (client AccountsClient) RegenerateKey(ctx context.Context, resourceGroupNam result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -976,6 +985,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2017-06-01/storage/operations.go b/services/storage/mgmt/2017-06-01/storage/operations.go index 09a1067acad8..7f7d66051235 100644 --- a/services/storage/mgmt/2017-06-01/storage/operations.go +++ b/services/storage/mgmt/2017-06-01/storage/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2017-06-01/storage/skus.go b/services/storage/mgmt/2017-06-01/storage/skus.go index 25dd0fc2642c..6aea289b65f7 100644 --- a/services/storage/mgmt/2017-06-01/storage/skus.go +++ b/services/storage/mgmt/2017-06-01/storage/skus.go @@ -69,6 +69,7 @@ func (client SkusClient) List(ctx context.Context) (result SkuListResult, err er result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.SkusClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2017-06-01/storage/usage.go b/services/storage/mgmt/2017-06-01/storage/usage.go index fb1db90f24eb..7138f86a70ca 100644 --- a/services/storage/mgmt/2017-06-01/storage/usage.go +++ b/services/storage/mgmt/2017-06-01/storage/usage.go @@ -69,6 +69,7 @@ func (client UsageClient) List(ctx context.Context) (result UsageListResult, err result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.UsageClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2017-10-01/storage/accounts.go b/services/storage/mgmt/2017-10-01/storage/accounts.go index 9e76a9ad55f7..9be8e2be4af0 100644 --- a/services/storage/mgmt/2017-10-01/storage/accounts.go +++ b/services/storage/mgmt/2017-10-01/storage/accounts.go @@ -80,6 +80,7 @@ func (client AccountsClient) CheckNameAvailability(ctx context.Context, accountN result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -271,6 +272,7 @@ func (client AccountsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -359,6 +361,7 @@ func (client AccountsClient) GetProperties(ctx context.Context, resourceGroupNam result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "GetProperties", resp, "Failure responding to request") + return } return @@ -432,6 +435,7 @@ func (client AccountsClient) List(ctx context.Context) (result AccountListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "List", resp, "Failure responding to request") + return } return @@ -521,6 +525,7 @@ func (client AccountsClient) ListAccountSAS(ctx context.Context, resourceGroupNa result, err = client.ListAccountSASResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListAccountSAS", resp, "Failure responding to request") + return } return @@ -607,6 +612,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -694,6 +700,7 @@ func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName str result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -787,6 +794,7 @@ func (client AccountsClient) ListServiceSAS(ctx context.Context, resourceGroupNa result, err = client.ListServiceSASResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListServiceSAS", resp, "Failure responding to request") + return } return @@ -880,6 +888,7 @@ func (client AccountsClient) RegenerateKey(ctx context.Context, resourceGroupNam result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -976,6 +985,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2017-10-01/storage/operations.go b/services/storage/mgmt/2017-10-01/storage/operations.go index b9e1ea9eed1e..e093a1a5752d 100644 --- a/services/storage/mgmt/2017-10-01/storage/operations.go +++ b/services/storage/mgmt/2017-10-01/storage/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2017-10-01/storage/skus.go b/services/storage/mgmt/2017-10-01/storage/skus.go index 95b7a7757b02..0c7fc62f5a4e 100644 --- a/services/storage/mgmt/2017-10-01/storage/skus.go +++ b/services/storage/mgmt/2017-10-01/storage/skus.go @@ -69,6 +69,7 @@ func (client SkusClient) List(ctx context.Context) (result SkuListResult, err er result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.SkusClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2017-10-01/storage/usage.go b/services/storage/mgmt/2017-10-01/storage/usage.go index 73e18f34acb5..0613cecf8836 100644 --- a/services/storage/mgmt/2017-10-01/storage/usage.go +++ b/services/storage/mgmt/2017-10-01/storage/usage.go @@ -69,6 +69,7 @@ func (client UsageClient) List(ctx context.Context) (result UsageListResult, err result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.UsageClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2018-02-01/storage/accounts.go b/services/storage/mgmt/2018-02-01/storage/accounts.go index 84f8f6ca4b03..701f65d3cd9e 100644 --- a/services/storage/mgmt/2018-02-01/storage/accounts.go +++ b/services/storage/mgmt/2018-02-01/storage/accounts.go @@ -82,6 +82,7 @@ func (client AccountsClient) CheckNameAvailability(ctx context.Context, accountN result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -277,6 +278,7 @@ func (client AccountsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -367,6 +369,7 @@ func (client AccountsClient) GetProperties(ctx context.Context, resourceGroupNam result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "GetProperties", resp, "Failure responding to request") + return } return @@ -446,6 +449,7 @@ func (client AccountsClient) List(ctx context.Context) (result AccountListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "List", resp, "Failure responding to request") + return } return @@ -537,6 +541,7 @@ func (client AccountsClient) ListAccountSAS(ctx context.Context, resourceGroupNa result, err = client.ListAccountSASResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListAccountSAS", resp, "Failure responding to request") + return } return @@ -625,6 +630,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -714,6 +720,7 @@ func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName str result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -809,6 +816,7 @@ func (client AccountsClient) ListServiceSAS(ctx context.Context, resourceGroupNa result, err = client.ListServiceSASResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListServiceSAS", resp, "Failure responding to request") + return } return @@ -904,6 +912,7 @@ func (client AccountsClient) RegenerateKey(ctx context.Context, resourceGroupNam result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -1002,6 +1011,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2018-02-01/storage/blobcontainers.go b/services/storage/mgmt/2018-02-01/storage/blobcontainers.go index 5078d8198315..361c6b5b043b 100644 --- a/services/storage/mgmt/2018-02-01/storage/blobcontainers.go +++ b/services/storage/mgmt/2018-02-01/storage/blobcontainers.go @@ -98,6 +98,7 @@ func (client BlobContainersClient) ClearLegalHold(ctx context.Context, resourceG result, err = client.ClearLegalHoldResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "ClearLegalHold", resp, "Failure responding to request") + return } return @@ -208,6 +209,7 @@ func (client BlobContainersClient) Create(ctx context.Context, resourceGroupName result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Create", resp, "Failure responding to request") + return } return @@ -317,6 +319,7 @@ func (client BlobContainersClient) CreateOrUpdateImmutabilityPolicy(ctx context. result, err = client.CreateOrUpdateImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "CreateOrUpdateImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -424,6 +427,7 @@ func (client BlobContainersClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Delete", resp, "Failure responding to request") + return } return @@ -526,6 +530,7 @@ func (client BlobContainersClient) DeleteImmutabilityPolicy(ctx context.Context, result, err = client.DeleteImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "DeleteImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -635,6 +640,7 @@ func (client BlobContainersClient) ExtendImmutabilityPolicy(ctx context.Context, result, err = client.ExtendImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "ExtendImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -738,6 +744,7 @@ func (client BlobContainersClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Get", resp, "Failure responding to request") + return } return @@ -839,6 +846,7 @@ func (client BlobContainersClient) GetImmutabilityPolicy(ctx context.Context, re result, err = client.GetImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "GetImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -943,6 +951,7 @@ func (client BlobContainersClient) Lease(ctx context.Context, resourceGroupName result, err = client.LeaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Lease", resp, "Failure responding to request") + return } return @@ -1040,6 +1049,7 @@ func (client BlobContainersClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "List", resp, "Failure responding to request") + return } return @@ -1140,6 +1150,7 @@ func (client BlobContainersClient) LockImmutabilityPolicy(ctx context.Context, r result, err = client.LockImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "LockImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -1242,6 +1253,7 @@ func (client BlobContainersClient) SetLegalHold(ctx context.Context, resourceGro result, err = client.SetLegalHoldResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "SetLegalHold", resp, "Failure responding to request") + return } return @@ -1344,6 +1356,7 @@ func (client BlobContainersClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2018-02-01/storage/operations.go b/services/storage/mgmt/2018-02-01/storage/operations.go index 4e04fe808e82..bb98e2c51f4c 100644 --- a/services/storage/mgmt/2018-02-01/storage/operations.go +++ b/services/storage/mgmt/2018-02-01/storage/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2018-02-01/storage/skus.go b/services/storage/mgmt/2018-02-01/storage/skus.go index fafefd158c43..f6f8dc2ee1a4 100644 --- a/services/storage/mgmt/2018-02-01/storage/skus.go +++ b/services/storage/mgmt/2018-02-01/storage/skus.go @@ -76,6 +76,7 @@ func (client SkusClient) List(ctx context.Context) (result SkuListResult, err er result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.SkusClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2018-02-01/storage/usage.go b/services/storage/mgmt/2018-02-01/storage/usage.go index 836276f4ab8b..2795c0db5592 100644 --- a/services/storage/mgmt/2018-02-01/storage/usage.go +++ b/services/storage/mgmt/2018-02-01/storage/usage.go @@ -76,6 +76,7 @@ func (client UsageClient) List(ctx context.Context) (result UsageListResult, err result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.UsageClient", "List", resp, "Failure responding to request") + return } return @@ -154,6 +155,7 @@ func (client UsageClient) ListByLocation(ctx context.Context, location string) ( result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.UsageClient", "ListByLocation", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2018-11-01/storage/accounts.go b/services/storage/mgmt/2018-11-01/storage/accounts.go index e781ca41bfb3..b5f227382eea 100644 --- a/services/storage/mgmt/2018-11-01/storage/accounts.go +++ b/services/storage/mgmt/2018-11-01/storage/accounts.go @@ -82,6 +82,7 @@ func (client AccountsClient) CheckNameAvailability(ctx context.Context, accountN result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -277,6 +278,7 @@ func (client AccountsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -460,6 +462,7 @@ func (client AccountsClient) GetProperties(ctx context.Context, resourceGroupNam result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "GetProperties", resp, "Failure responding to request") + return } return @@ -542,6 +545,7 @@ func (client AccountsClient) List(ctx context.Context) (result AccountListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "List", resp, "Failure responding to request") + return } return @@ -633,6 +637,7 @@ func (client AccountsClient) ListAccountSAS(ctx context.Context, resourceGroupNa result, err = client.ListAccountSASResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListAccountSAS", resp, "Failure responding to request") + return } return @@ -721,6 +726,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -810,6 +816,7 @@ func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName str result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -905,6 +912,7 @@ func (client AccountsClient) ListServiceSAS(ctx context.Context, resourceGroupNa result, err = client.ListServiceSASResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListServiceSAS", resp, "Failure responding to request") + return } return @@ -1000,6 +1008,7 @@ func (client AccountsClient) RegenerateKey(ctx context.Context, resourceGroupNam result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -1092,6 +1101,7 @@ func (client AccountsClient) RevokeUserDelegationKeys(ctx context.Context, resou result, err = client.RevokeUserDelegationKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "RevokeUserDelegationKeys", resp, "Failure responding to request") + return } return @@ -1187,6 +1197,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2018-11-01/storage/blobcontainers.go b/services/storage/mgmt/2018-11-01/storage/blobcontainers.go index 595b1dcacfdc..eddc3b2360c6 100644 --- a/services/storage/mgmt/2018-11-01/storage/blobcontainers.go +++ b/services/storage/mgmt/2018-11-01/storage/blobcontainers.go @@ -98,6 +98,7 @@ func (client BlobContainersClient) ClearLegalHold(ctx context.Context, resourceG result, err = client.ClearLegalHoldResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "ClearLegalHold", resp, "Failure responding to request") + return } return @@ -208,6 +209,7 @@ func (client BlobContainersClient) Create(ctx context.Context, resourceGroupName result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Create", resp, "Failure responding to request") + return } return @@ -317,6 +319,7 @@ func (client BlobContainersClient) CreateOrUpdateImmutabilityPolicy(ctx context. result, err = client.CreateOrUpdateImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "CreateOrUpdateImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -424,6 +427,7 @@ func (client BlobContainersClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Delete", resp, "Failure responding to request") + return } return @@ -526,6 +530,7 @@ func (client BlobContainersClient) DeleteImmutabilityPolicy(ctx context.Context, result, err = client.DeleteImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "DeleteImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -635,6 +640,7 @@ func (client BlobContainersClient) ExtendImmutabilityPolicy(ctx context.Context, result, err = client.ExtendImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "ExtendImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -738,6 +744,7 @@ func (client BlobContainersClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Get", resp, "Failure responding to request") + return } return @@ -839,6 +846,7 @@ func (client BlobContainersClient) GetImmutabilityPolicy(ctx context.Context, re result, err = client.GetImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "GetImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -943,6 +951,7 @@ func (client BlobContainersClient) Lease(ctx context.Context, resourceGroupName result, err = client.LeaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Lease", resp, "Failure responding to request") + return } return @@ -1040,6 +1049,7 @@ func (client BlobContainersClient) List(ctx context.Context, resourceGroupName s result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "List", resp, "Failure responding to request") + return } return @@ -1140,6 +1150,7 @@ func (client BlobContainersClient) LockImmutabilityPolicy(ctx context.Context, r result, err = client.LockImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "LockImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -1242,6 +1253,7 @@ func (client BlobContainersClient) SetLegalHold(ctx context.Context, resourceGro result, err = client.SetLegalHoldResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "SetLegalHold", resp, "Failure responding to request") + return } return @@ -1344,6 +1356,7 @@ func (client BlobContainersClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2018-11-01/storage/blobservices.go b/services/storage/mgmt/2018-11-01/storage/blobservices.go index 5fb9fcfbf2cb..e7eeb8dacfa0 100644 --- a/services/storage/mgmt/2018-11-01/storage/blobservices.go +++ b/services/storage/mgmt/2018-11-01/storage/blobservices.go @@ -89,6 +89,7 @@ func (client BlobServicesClient) GetServiceProperties(ctx context.Context, resou result, err = client.GetServicePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "GetServiceProperties", resp, "Failure responding to request") + return } return @@ -192,6 +193,7 @@ func (client BlobServicesClient) SetServiceProperties(ctx context.Context, resou result, err = client.SetServicePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "SetServiceProperties", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2018-11-01/storage/managementpolicies.go b/services/storage/mgmt/2018-11-01/storage/managementpolicies.go index 2663b6e79c70..888492433d1e 100644 --- a/services/storage/mgmt/2018-11-01/storage/managementpolicies.go +++ b/services/storage/mgmt/2018-11-01/storage/managementpolicies.go @@ -95,6 +95,7 @@ func (client ManagementPoliciesClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -189,6 +190,7 @@ func (client ManagementPoliciesClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -279,6 +281,7 @@ func (client ManagementPoliciesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2018-11-01/storage/operations.go b/services/storage/mgmt/2018-11-01/storage/operations.go index 4813830914e9..f1689a7257bd 100644 --- a/services/storage/mgmt/2018-11-01/storage/operations.go +++ b/services/storage/mgmt/2018-11-01/storage/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2018-11-01/storage/skus.go b/services/storage/mgmt/2018-11-01/storage/skus.go index a8fc2b0a0e59..64cc63d2129a 100644 --- a/services/storage/mgmt/2018-11-01/storage/skus.go +++ b/services/storage/mgmt/2018-11-01/storage/skus.go @@ -76,6 +76,7 @@ func (client SkusClient) List(ctx context.Context) (result SkuListResult, err er result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.SkusClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2018-11-01/storage/usages.go b/services/storage/mgmt/2018-11-01/storage/usages.go index 09734e957b76..3f7cfa12bbe1 100644 --- a/services/storage/mgmt/2018-11-01/storage/usages.go +++ b/services/storage/mgmt/2018-11-01/storage/usages.go @@ -78,6 +78,7 @@ func (client UsagesClient) ListByLocation(ctx context.Context, location string) result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.UsagesClient", "ListByLocation", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2019-04-01/storage/accounts.go b/services/storage/mgmt/2019-04-01/storage/accounts.go index c26559327fd9..096c2b306449 100644 --- a/services/storage/mgmt/2019-04-01/storage/accounts.go +++ b/services/storage/mgmt/2019-04-01/storage/accounts.go @@ -82,6 +82,7 @@ func (client AccountsClient) CheckNameAvailability(ctx context.Context, accountN result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -287,6 +288,7 @@ func (client AccountsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -470,6 +472,7 @@ func (client AccountsClient) GetProperties(ctx context.Context, resourceGroupNam result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "GetProperties", resp, "Failure responding to request") + return } return @@ -553,6 +556,7 @@ func (client AccountsClient) List(ctx context.Context) (result AccountListResult result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -615,6 +619,7 @@ func (client AccountsClient) listNextResults(ctx context.Context, lastResults Ac result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -684,6 +689,7 @@ func (client AccountsClient) ListAccountSAS(ctx context.Context, resourceGroupNa result, err = client.ListAccountSASResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListAccountSAS", resp, "Failure responding to request") + return } return @@ -772,6 +778,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -862,6 +869,7 @@ func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName str result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -960,6 +968,7 @@ func (client AccountsClient) ListServiceSAS(ctx context.Context, resourceGroupNa result, err = client.ListServiceSASResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListServiceSAS", resp, "Failure responding to request") + return } return @@ -1055,6 +1064,7 @@ func (client AccountsClient) RegenerateKey(ctx context.Context, resourceGroupNam result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -1147,6 +1157,7 @@ func (client AccountsClient) RevokeUserDelegationKeys(ctx context.Context, resou result, err = client.RevokeUserDelegationKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "RevokeUserDelegationKeys", resp, "Failure responding to request") + return } return @@ -1242,6 +1253,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2019-04-01/storage/blobcontainers.go b/services/storage/mgmt/2019-04-01/storage/blobcontainers.go index f4bae24d98aa..8f58df2939cc 100644 --- a/services/storage/mgmt/2019-04-01/storage/blobcontainers.go +++ b/services/storage/mgmt/2019-04-01/storage/blobcontainers.go @@ -98,6 +98,7 @@ func (client BlobContainersClient) ClearLegalHold(ctx context.Context, resourceG result, err = client.ClearLegalHoldResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "ClearLegalHold", resp, "Failure responding to request") + return } return @@ -208,6 +209,7 @@ func (client BlobContainersClient) Create(ctx context.Context, resourceGroupName result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Create", resp, "Failure responding to request") + return } return @@ -317,6 +319,7 @@ func (client BlobContainersClient) CreateOrUpdateImmutabilityPolicy(ctx context. result, err = client.CreateOrUpdateImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "CreateOrUpdateImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -424,6 +427,7 @@ func (client BlobContainersClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Delete", resp, "Failure responding to request") + return } return @@ -526,6 +530,7 @@ func (client BlobContainersClient) DeleteImmutabilityPolicy(ctx context.Context, result, err = client.DeleteImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "DeleteImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -635,6 +640,7 @@ func (client BlobContainersClient) ExtendImmutabilityPolicy(ctx context.Context, result, err = client.ExtendImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "ExtendImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -738,6 +744,7 @@ func (client BlobContainersClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Get", resp, "Failure responding to request") + return } return @@ -839,6 +846,7 @@ func (client BlobContainersClient) GetImmutabilityPolicy(ctx context.Context, re result, err = client.GetImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "GetImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -943,6 +951,7 @@ func (client BlobContainersClient) Lease(ctx context.Context, resourceGroupName result, err = client.LeaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Lease", resp, "Failure responding to request") + return } return @@ -1044,6 +1053,7 @@ func (client BlobContainersClient) List(ctx context.Context, resourceGroupName s result.lci, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "List", resp, "Failure responding to request") + return } if result.lci.hasNextLink() && result.lci.IsEmpty() { err = result.NextWithContext(ctx) @@ -1117,6 +1127,7 @@ func (client BlobContainersClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1193,6 +1204,7 @@ func (client BlobContainersClient) LockImmutabilityPolicy(ctx context.Context, r result, err = client.LockImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "LockImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -1295,6 +1307,7 @@ func (client BlobContainersClient) SetLegalHold(ctx context.Context, resourceGro result, err = client.SetLegalHoldResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "SetLegalHold", resp, "Failure responding to request") + return } return @@ -1397,6 +1410,7 @@ func (client BlobContainersClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2019-04-01/storage/blobservices.go b/services/storage/mgmt/2019-04-01/storage/blobservices.go index f1d52c63e2e3..abb849d4b396 100644 --- a/services/storage/mgmt/2019-04-01/storage/blobservices.go +++ b/services/storage/mgmt/2019-04-01/storage/blobservices.go @@ -89,6 +89,7 @@ func (client BlobServicesClient) GetServiceProperties(ctx context.Context, resou result, err = client.GetServicePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "GetServiceProperties", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client BlobServicesClient) List(ctx context.Context, resourceGroupName str result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "List", resp, "Failure responding to request") + return } return @@ -282,6 +284,7 @@ func (client BlobServicesClient) SetServiceProperties(ctx context.Context, resou result, err = client.SetServicePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "SetServiceProperties", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2019-04-01/storage/fileservices.go b/services/storage/mgmt/2019-04-01/storage/fileservices.go index 34a4a29b3906..5fa4da43f1cf 100644 --- a/services/storage/mgmt/2019-04-01/storage/fileservices.go +++ b/services/storage/mgmt/2019-04-01/storage/fileservices.go @@ -89,6 +89,7 @@ func (client FileServicesClient) GetServiceProperties(ctx context.Context, resou result, err = client.GetServicePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "GetServiceProperties", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client FileServicesClient) List(ctx context.Context, resourceGroupName str result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "List", resp, "Failure responding to request") + return } return @@ -273,6 +275,7 @@ func (client FileServicesClient) SetServiceProperties(ctx context.Context, resou result, err = client.SetServicePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "SetServiceProperties", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2019-04-01/storage/fileshares.go b/services/storage/mgmt/2019-04-01/storage/fileshares.go index c30988aa2521..713993ce3e31 100644 --- a/services/storage/mgmt/2019-04-01/storage/fileshares.go +++ b/services/storage/mgmt/2019-04-01/storage/fileshares.go @@ -103,6 +103,7 @@ func (client FileSharesClient) Create(ctx context.Context, resourceGroupName str result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Create", resp, "Failure responding to request") + return } return @@ -202,6 +203,7 @@ func (client FileSharesClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Delete", resp, "Failure responding to request") + return } return @@ -298,6 +300,7 @@ func (client FileSharesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Get", resp, "Failure responding to request") + return } return @@ -393,6 +396,7 @@ func (client FileSharesClient) List(ctx context.Context, resourceGroupName strin result.fsi, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "List", resp, "Failure responding to request") + return } if result.fsi.hasNextLink() && result.fsi.IsEmpty() { err = result.NextWithContext(ctx) @@ -466,6 +470,7 @@ func (client FileSharesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -540,6 +545,7 @@ func (client FileSharesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2019-04-01/storage/managementpolicies.go b/services/storage/mgmt/2019-04-01/storage/managementpolicies.go index f4600d151abf..45b8f319b944 100644 --- a/services/storage/mgmt/2019-04-01/storage/managementpolicies.go +++ b/services/storage/mgmt/2019-04-01/storage/managementpolicies.go @@ -95,6 +95,7 @@ func (client ManagementPoliciesClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client ManagementPoliciesClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client ManagementPoliciesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2019-04-01/storage/operations.go b/services/storage/mgmt/2019-04-01/storage/operations.go index 01ffdbf16886..147b715d4ab7 100644 --- a/services/storage/mgmt/2019-04-01/storage/operations.go +++ b/services/storage/mgmt/2019-04-01/storage/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2019-04-01/storage/skus.go b/services/storage/mgmt/2019-04-01/storage/skus.go index 45a52df9eba9..1fff42f0bc02 100644 --- a/services/storage/mgmt/2019-04-01/storage/skus.go +++ b/services/storage/mgmt/2019-04-01/storage/skus.go @@ -76,6 +76,7 @@ func (client SkusClient) List(ctx context.Context) (result SkuListResult, err er result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.SkusClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2019-04-01/storage/usages.go b/services/storage/mgmt/2019-04-01/storage/usages.go index 6a76715afba8..d63f7b387583 100644 --- a/services/storage/mgmt/2019-04-01/storage/usages.go +++ b/services/storage/mgmt/2019-04-01/storage/usages.go @@ -78,6 +78,7 @@ func (client UsagesClient) ListByLocation(ctx context.Context, location string) result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.UsagesClient", "ListByLocation", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2019-06-01/storage/accounts.go b/services/storage/mgmt/2019-06-01/storage/accounts.go index 961481fd90cb..a583586daded 100644 --- a/services/storage/mgmt/2019-06-01/storage/accounts.go +++ b/services/storage/mgmt/2019-06-01/storage/accounts.go @@ -82,6 +82,7 @@ func (client AccountsClient) CheckNameAvailability(ctx context.Context, accountN result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -287,6 +288,7 @@ func (client AccountsClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Delete", resp, "Failure responding to request") + return } return @@ -470,6 +472,7 @@ func (client AccountsClient) GetProperties(ctx context.Context, resourceGroupNam result, err = client.GetPropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "GetProperties", resp, "Failure responding to request") + return } return @@ -553,6 +556,7 @@ func (client AccountsClient) List(ctx context.Context) (result AccountListResult result.alr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "List", resp, "Failure responding to request") + return } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) @@ -615,6 +619,7 @@ func (client AccountsClient) listNextResults(ctx context.Context, lastResults Ac result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -684,6 +689,7 @@ func (client AccountsClient) ListAccountSAS(ctx context.Context, resourceGroupNa result, err = client.ListAccountSASResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListAccountSAS", resp, "Failure responding to request") + return } return @@ -772,6 +778,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -862,6 +869,7 @@ func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName str result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListKeys", resp, "Failure responding to request") + return } return @@ -960,6 +968,7 @@ func (client AccountsClient) ListServiceSAS(ctx context.Context, resourceGroupNa result, err = client.ListServiceSASResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListServiceSAS", resp, "Failure responding to request") + return } return @@ -1055,6 +1064,7 @@ func (client AccountsClient) RegenerateKey(ctx context.Context, resourceGroupNam result, err = client.RegenerateKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "RegenerateKey", resp, "Failure responding to request") + return } return @@ -1243,6 +1253,7 @@ func (client AccountsClient) RevokeUserDelegationKeys(ctx context.Context, resou result, err = client.RevokeUserDelegationKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "RevokeUserDelegationKeys", resp, "Failure responding to request") + return } return @@ -1338,6 +1349,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2019-06-01/storage/blobcontainers.go b/services/storage/mgmt/2019-06-01/storage/blobcontainers.go index 0193a9c72fbf..a1351057f765 100644 --- a/services/storage/mgmt/2019-06-01/storage/blobcontainers.go +++ b/services/storage/mgmt/2019-06-01/storage/blobcontainers.go @@ -98,6 +98,7 @@ func (client BlobContainersClient) ClearLegalHold(ctx context.Context, resourceG result, err = client.ClearLegalHoldResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "ClearLegalHold", resp, "Failure responding to request") + return } return @@ -201,6 +202,7 @@ func (client BlobContainersClient) Create(ctx context.Context, resourceGroupName result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Create", resp, "Failure responding to request") + return } return @@ -308,6 +310,7 @@ func (client BlobContainersClient) CreateOrUpdateImmutabilityPolicy(ctx context. result, err = client.CreateOrUpdateImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "CreateOrUpdateImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -415,6 +418,7 @@ func (client BlobContainersClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Delete", resp, "Failure responding to request") + return } return @@ -517,6 +521,7 @@ func (client BlobContainersClient) DeleteImmutabilityPolicy(ctx context.Context, result, err = client.DeleteImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "DeleteImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -624,6 +629,7 @@ func (client BlobContainersClient) ExtendImmutabilityPolicy(ctx context.Context, result, err = client.ExtendImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "ExtendImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -727,6 +733,7 @@ func (client BlobContainersClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Get", resp, "Failure responding to request") + return } return @@ -828,6 +835,7 @@ func (client BlobContainersClient) GetImmutabilityPolicy(ctx context.Context, re result, err = client.GetImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "GetImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -932,6 +940,7 @@ func (client BlobContainersClient) Lease(ctx context.Context, resourceGroupName result, err = client.LeaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Lease", resp, "Failure responding to request") + return } return @@ -1033,6 +1042,7 @@ func (client BlobContainersClient) List(ctx context.Context, resourceGroupName s result.lci, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "List", resp, "Failure responding to request") + return } if result.lci.hasNextLink() && result.lci.IsEmpty() { err = result.NextWithContext(ctx) @@ -1106,6 +1116,7 @@ func (client BlobContainersClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1182,6 +1193,7 @@ func (client BlobContainersClient) LockImmutabilityPolicy(ctx context.Context, r result, err = client.LockImmutabilityPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "LockImmutabilityPolicy", resp, "Failure responding to request") + return } return @@ -1284,6 +1296,7 @@ func (client BlobContainersClient) SetLegalHold(ctx context.Context, resourceGro result, err = client.SetLegalHoldResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "SetLegalHold", resp, "Failure responding to request") + return } return @@ -1386,6 +1399,7 @@ func (client BlobContainersClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2019-06-01/storage/blobservices.go b/services/storage/mgmt/2019-06-01/storage/blobservices.go index 8ea84b5e27a2..95ae7c080c7d 100644 --- a/services/storage/mgmt/2019-06-01/storage/blobservices.go +++ b/services/storage/mgmt/2019-06-01/storage/blobservices.go @@ -89,6 +89,7 @@ func (client BlobServicesClient) GetServiceProperties(ctx context.Context, resou result, err = client.GetServicePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "GetServiceProperties", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client BlobServicesClient) List(ctx context.Context, resourceGroupName str result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "List", resp, "Failure responding to request") + return } return @@ -295,6 +297,7 @@ func (client BlobServicesClient) SetServiceProperties(ctx context.Context, resou result, err = client.SetServicePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "SetServiceProperties", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2019-06-01/storage/encryptionscopes.go b/services/storage/mgmt/2019-06-01/storage/encryptionscopes.go index bfbbc993b4d5..0acd4997958c 100644 --- a/services/storage/mgmt/2019-06-01/storage/encryptionscopes.go +++ b/services/storage/mgmt/2019-06-01/storage/encryptionscopes.go @@ -95,6 +95,7 @@ func (client EncryptionScopesClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "Get", resp, "Failure responding to request") + return } return @@ -187,6 +188,7 @@ func (client EncryptionScopesClient) List(ctx context.Context, resourceGroupName result.eslr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "List", resp, "Failure responding to request") + return } if result.eslr.hasNextLink() && result.eslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -251,6 +253,7 @@ func (client EncryptionScopesClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -325,6 +328,7 @@ func (client EncryptionScopesClient) Patch(ctx context.Context, resourceGroupNam result, err = client.PatchResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "Patch", resp, "Failure responding to request") + return } return @@ -427,6 +431,7 @@ func (client EncryptionScopesClient) Put(ctx context.Context, resourceGroupName result, err = client.PutResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "Put", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2019-06-01/storage/fileservices.go b/services/storage/mgmt/2019-06-01/storage/fileservices.go index da9113561f78..5b17abd7b305 100644 --- a/services/storage/mgmt/2019-06-01/storage/fileservices.go +++ b/services/storage/mgmt/2019-06-01/storage/fileservices.go @@ -89,6 +89,7 @@ func (client FileServicesClient) GetServiceProperties(ctx context.Context, resou result, err = client.GetServicePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "GetServiceProperties", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client FileServicesClient) List(ctx context.Context, resourceGroupName str result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "List", resp, "Failure responding to request") + return } return @@ -282,6 +284,7 @@ func (client FileServicesClient) SetServiceProperties(ctx context.Context, resou result, err = client.SetServicePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "SetServiceProperties", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2019-06-01/storage/fileshares.go b/services/storage/mgmt/2019-06-01/storage/fileshares.go index db685b1008ee..771932103dfa 100644 --- a/services/storage/mgmt/2019-06-01/storage/fileshares.go +++ b/services/storage/mgmt/2019-06-01/storage/fileshares.go @@ -103,6 +103,7 @@ func (client FileSharesClient) Create(ctx context.Context, resourceGroupName str result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Create", resp, "Failure responding to request") + return } return @@ -202,6 +203,7 @@ func (client FileSharesClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Delete", resp, "Failure responding to request") + return } return @@ -299,6 +301,7 @@ func (client FileSharesClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Get", resp, "Failure responding to request") + return } return @@ -397,6 +400,7 @@ func (client FileSharesClient) List(ctx context.Context, resourceGroupName strin result.fsi, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "List", resp, "Failure responding to request") + return } if result.fsi.hasNextLink() && result.fsi.IsEmpty() { err = result.NextWithContext(ctx) @@ -470,6 +474,7 @@ func (client FileSharesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -545,6 +550,7 @@ func (client FileSharesClient) Restore(ctx context.Context, resourceGroupName st result, err = client.RestoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Restore", resp, "Failure responding to request") + return } return @@ -645,6 +651,7 @@ func (client FileSharesClient) Update(ctx context.Context, resourceGroupName str result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2019-06-01/storage/managementpolicies.go b/services/storage/mgmt/2019-06-01/storage/managementpolicies.go index 04f05b945526..2eb496019d8e 100644 --- a/services/storage/mgmt/2019-06-01/storage/managementpolicies.go +++ b/services/storage/mgmt/2019-06-01/storage/managementpolicies.go @@ -95,6 +95,7 @@ func (client ManagementPoliciesClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -188,6 +189,7 @@ func (client ManagementPoliciesClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -278,6 +280,7 @@ func (client ManagementPoliciesClient) Get(ctx context.Context, resourceGroupNam result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2019-06-01/storage/objectreplicationpolicies.go b/services/storage/mgmt/2019-06-01/storage/objectreplicationpolicies.go index 4b766866bbad..961a61725dd0 100644 --- a/services/storage/mgmt/2019-06-01/storage/objectreplicationpolicies.go +++ b/services/storage/mgmt/2019-06-01/storage/objectreplicationpolicies.go @@ -99,6 +99,7 @@ func (client ObjectReplicationPoliciesClient) CreateOrUpdate(ctx context.Context result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -195,6 +196,7 @@ func (client ObjectReplicationPoliciesClient) Delete(ctx context.Context, resour result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -288,6 +290,7 @@ func (client ObjectReplicationPoliciesClient) Get(ctx context.Context, resourceG result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -379,6 +382,7 @@ func (client ObjectReplicationPoliciesClient) List(ctx context.Context, resource result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2019-06-01/storage/operations.go b/services/storage/mgmt/2019-06-01/storage/operations.go index 78091e1e501f..3761d2ec80f9 100644 --- a/services/storage/mgmt/2019-06-01/storage/operations.go +++ b/services/storage/mgmt/2019-06-01/storage/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2019-06-01/storage/privateendpointconnections.go b/services/storage/mgmt/2019-06-01/storage/privateendpointconnections.go index 517880d8810d..b98f386f3ece 100644 --- a/services/storage/mgmt/2019-06-01/storage/privateendpointconnections.go +++ b/services/storage/mgmt/2019-06-01/storage/privateendpointconnections.go @@ -91,6 +91,7 @@ func (client PrivateEndpointConnectionsClient) Delete(ctx context.Context, resou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -183,6 +184,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -274,6 +276,7 @@ func (client PrivateEndpointConnectionsClient) List(ctx context.Context, resourc result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "List", resp, "Failure responding to request") + return } return @@ -370,6 +373,7 @@ func (client PrivateEndpointConnectionsClient) Put(ctx context.Context, resource result, err = client.PutResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "Put", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2019-06-01/storage/privatelinkresources.go b/services/storage/mgmt/2019-06-01/storage/privatelinkresources.go index f9424fc5323f..caeff89a2b6e 100644 --- a/services/storage/mgmt/2019-06-01/storage/privatelinkresources.go +++ b/services/storage/mgmt/2019-06-01/storage/privatelinkresources.go @@ -89,6 +89,7 @@ func (client PrivateLinkResourcesClient) ListByStorageAccount(ctx context.Contex result, err = client.ListByStorageAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.PrivateLinkResourcesClient", "ListByStorageAccount", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2019-06-01/storage/queue.go b/services/storage/mgmt/2019-06-01/storage/queue.go index 18afe375a953..df5ecfe075c6 100644 --- a/services/storage/mgmt/2019-06-01/storage/queue.go +++ b/services/storage/mgmt/2019-06-01/storage/queue.go @@ -95,6 +95,7 @@ func (client QueueClient) Create(ctx context.Context, resourceGroupName string, result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.QueueClient", "Create", resp, "Failure responding to request") + return } return @@ -194,6 +195,7 @@ func (client QueueClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.QueueClient", "Delete", resp, "Failure responding to request") + return } return @@ -290,6 +292,7 @@ func (client QueueClient) Get(ctx context.Context, resourceGroupName string, acc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.QueueClient", "Get", resp, "Failure responding to request") + return } return @@ -385,6 +388,7 @@ func (client QueueClient) List(ctx context.Context, resourceGroupName string, ac result.lqr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.QueueClient", "List", resp, "Failure responding to request") + return } if result.lqr.hasNextLink() && result.lqr.IsEmpty() { err = result.NextWithContext(ctx) @@ -455,6 +459,7 @@ func (client QueueClient) listNextResults(ctx context.Context, lastResults ListQ result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.QueueClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -528,6 +533,7 @@ func (client QueueClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.QueueClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2019-06-01/storage/queueservices.go b/services/storage/mgmt/2019-06-01/storage/queueservices.go index b8b799af5521..88b1824cde6d 100644 --- a/services/storage/mgmt/2019-06-01/storage/queueservices.go +++ b/services/storage/mgmt/2019-06-01/storage/queueservices.go @@ -89,6 +89,7 @@ func (client QueueServicesClient) GetServiceProperties(ctx context.Context, reso result, err = client.GetServicePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.QueueServicesClient", "GetServiceProperties", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client QueueServicesClient) List(ctx context.Context, resourceGroupName st result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.QueueServicesClient", "List", resp, "Failure responding to request") + return } return @@ -273,6 +275,7 @@ func (client QueueServicesClient) SetServiceProperties(ctx context.Context, reso result, err = client.SetServicePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.QueueServicesClient", "SetServiceProperties", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2019-06-01/storage/skus.go b/services/storage/mgmt/2019-06-01/storage/skus.go index 931c0e9a6e50..f7ba31c5bbfa 100644 --- a/services/storage/mgmt/2019-06-01/storage/skus.go +++ b/services/storage/mgmt/2019-06-01/storage/skus.go @@ -76,6 +76,7 @@ func (client SkusClient) List(ctx context.Context) (result SkuListResult, err er result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.SkusClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2019-06-01/storage/table.go b/services/storage/mgmt/2019-06-01/storage/table.go index 045774d6aa6b..f27923774bca 100644 --- a/services/storage/mgmt/2019-06-01/storage/table.go +++ b/services/storage/mgmt/2019-06-01/storage/table.go @@ -94,6 +94,7 @@ func (client TableClient) Create(ctx context.Context, resourceGroupName string, result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.TableClient", "Create", resp, "Failure responding to request") + return } return @@ -191,6 +192,7 @@ func (client TableClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.TableClient", "Delete", resp, "Failure responding to request") + return } return @@ -287,6 +289,7 @@ func (client TableClient) Get(ctx context.Context, resourceGroupName string, acc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.TableClient", "Get", resp, "Failure responding to request") + return } return @@ -379,6 +382,7 @@ func (client TableClient) List(ctx context.Context, resourceGroupName string, ac result.ltr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.TableClient", "List", resp, "Failure responding to request") + return } if result.ltr.hasNextLink() && result.ltr.IsEmpty() { err = result.NextWithContext(ctx) @@ -443,6 +447,7 @@ func (client TableClient) listNextResults(ctx context.Context, lastResults ListT result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.TableClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -515,6 +520,7 @@ func (client TableClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.TableClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2019-06-01/storage/tableservices.go b/services/storage/mgmt/2019-06-01/storage/tableservices.go index 30f43e2ea664..3a6896ded419 100644 --- a/services/storage/mgmt/2019-06-01/storage/tableservices.go +++ b/services/storage/mgmt/2019-06-01/storage/tableservices.go @@ -89,6 +89,7 @@ func (client TableServicesClient) GetServiceProperties(ctx context.Context, reso result, err = client.GetServicePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.TableServicesClient", "GetServiceProperties", resp, "Failure responding to request") + return } return @@ -180,6 +181,7 @@ func (client TableServicesClient) List(ctx context.Context, resourceGroupName st result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.TableServicesClient", "List", resp, "Failure responding to request") + return } return @@ -273,6 +275,7 @@ func (client TableServicesClient) SetServiceProperties(ctx context.Context, reso result, err = client.SetServicePropertiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.TableServicesClient", "SetServiceProperties", resp, "Failure responding to request") + return } return diff --git a/services/storage/mgmt/2019-06-01/storage/usages.go b/services/storage/mgmt/2019-06-01/storage/usages.go index 4aae7198a605..4a2dbee945de 100644 --- a/services/storage/mgmt/2019-06-01/storage/usages.go +++ b/services/storage/mgmt/2019-06-01/storage/usages.go @@ -78,6 +78,7 @@ func (client UsagesClient) ListByLocation(ctx context.Context, location string) result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storage.UsagesClient", "ListByLocation", resp, "Failure responding to request") + return } return diff --git a/services/storagecache/mgmt/2019-11-01/storagecache/caches.go b/services/storagecache/mgmt/2019-11-01/storagecache/caches.go index ecbffeedc269..29fb56ad5687 100644 --- a/services/storagecache/mgmt/2019-11-01/storagecache/caches.go +++ b/services/storagecache/mgmt/2019-11-01/storagecache/caches.go @@ -334,6 +334,7 @@ func (client CachesClient) Get(ctx context.Context, resourceGroupName string, ca result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.CachesClient", "Get", resp, "Failure responding to request") + return } return @@ -407,6 +408,7 @@ func (client CachesClient) List(ctx context.Context) (result CachesListResultPag result.clr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.CachesClient", "List", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -469,6 +471,7 @@ func (client CachesClient) listNextResults(ctx context.Context, lastResults Cach result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.CachesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -520,6 +523,7 @@ func (client CachesClient) ListByResourceGroup(ctx context.Context, resourceGrou result.clr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.CachesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -583,6 +587,7 @@ func (client CachesClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.CachesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -804,6 +809,7 @@ func (client CachesClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.CachesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storagecache/mgmt/2019-11-01/storagecache/operations.go b/services/storagecache/mgmt/2019-11-01/storagecache/operations.go index 25830061798b..1beeac852987 100644 --- a/services/storagecache/mgmt/2019-11-01/storagecache/operations.go +++ b/services/storagecache/mgmt/2019-11-01/storagecache/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result APIOperationLis result.aolr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.OperationsClient", "List", resp, "Failure responding to request") + return } if result.aolr.hasNextLink() && result.aolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/storagecache/mgmt/2019-11-01/storagecache/skus.go b/services/storagecache/mgmt/2019-11-01/storagecache/skus.go index eee99b060ce1..03f3061d0ea5 100644 --- a/services/storagecache/mgmt/2019-11-01/storagecache/skus.go +++ b/services/storagecache/mgmt/2019-11-01/storagecache/skus.go @@ -71,6 +71,7 @@ func (client SkusClient) List(ctx context.Context) (result ResourceSkusResultPag result.rsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.SkusClient", "List", resp, "Failure responding to request") + return } if result.rsr.hasNextLink() && result.rsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client SkusClient) listNextResults(ctx context.Context, lastResults Resour result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.SkusClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/storagecache/mgmt/2019-11-01/storagecache/storagetargets.go b/services/storagecache/mgmt/2019-11-01/storagecache/storagetargets.go index 30edbf31f311..a09194abf485 100644 --- a/services/storagecache/mgmt/2019-11-01/storagecache/storagetargets.go +++ b/services/storagecache/mgmt/2019-11-01/storagecache/storagetargets.go @@ -276,6 +276,7 @@ func (client StorageTargetsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.StorageTargetsClient", "Get", resp, "Failure responding to request") + return } return @@ -359,6 +360,7 @@ func (client StorageTargetsClient) ListByCache(ctx context.Context, resourceGrou result.str, err = client.ListByCacheResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.StorageTargetsClient", "ListByCache", resp, "Failure responding to request") + return } if result.str.hasNextLink() && result.str.IsEmpty() { err = result.NextWithContext(ctx) @@ -423,6 +425,7 @@ func (client StorageTargetsClient) listByCacheNextResults(ctx context.Context, l result, err = client.ListByCacheResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.StorageTargetsClient", "listByCacheNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/storagecache/mgmt/2019-11-01/storagecache/usagemodels.go b/services/storagecache/mgmt/2019-11-01/storagecache/usagemodels.go index 4cd71e19643a..1e924b352d7e 100644 --- a/services/storagecache/mgmt/2019-11-01/storagecache/usagemodels.go +++ b/services/storagecache/mgmt/2019-11-01/storagecache/usagemodels.go @@ -71,6 +71,7 @@ func (client UsageModelsClient) List(ctx context.Context) (result UsageModelsRes result.umr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.UsageModelsClient", "List", resp, "Failure responding to request") + return } if result.umr.hasNextLink() && result.umr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client UsageModelsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.UsageModelsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/storagecache/mgmt/2020-03-01/storagecache/ascoperations.go b/services/storagecache/mgmt/2020-03-01/storagecache/ascoperations.go index e40670c20942..02faf5824acc 100644 --- a/services/storagecache/mgmt/2020-03-01/storagecache/ascoperations.go +++ b/services/storagecache/mgmt/2020-03-01/storagecache/ascoperations.go @@ -74,6 +74,7 @@ func (client AscOperationsClient) Get(ctx context.Context, location string, oper result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.AscOperationsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/storagecache/mgmt/2020-03-01/storagecache/caches.go b/services/storagecache/mgmt/2020-03-01/storagecache/caches.go index d6a5dc615ea5..6ab8b0bcbe89 100644 --- a/services/storagecache/mgmt/2020-03-01/storagecache/caches.go +++ b/services/storagecache/mgmt/2020-03-01/storagecache/caches.go @@ -356,6 +356,7 @@ func (client CachesClient) Get(ctx context.Context, resourceGroupName string, ca result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.CachesClient", "Get", resp, "Failure responding to request") + return } return @@ -429,6 +430,7 @@ func (client CachesClient) List(ctx context.Context) (result CachesListResultPag result.clr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.CachesClient", "List", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -491,6 +493,7 @@ func (client CachesClient) listNextResults(ctx context.Context, lastResults Cach result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.CachesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -542,6 +545,7 @@ func (client CachesClient) ListByResourceGroup(ctx context.Context, resourceGrou result.clr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.CachesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -605,6 +609,7 @@ func (client CachesClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.CachesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -829,6 +834,7 @@ func (client CachesClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.CachesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storagecache/mgmt/2020-03-01/storagecache/operations.go b/services/storagecache/mgmt/2020-03-01/storagecache/operations.go index d01fb59b1c99..1faa6895c64d 100644 --- a/services/storagecache/mgmt/2020-03-01/storagecache/operations.go +++ b/services/storagecache/mgmt/2020-03-01/storagecache/operations.go @@ -71,6 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result APIOperationLis result.aolr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.OperationsClient", "List", resp, "Failure responding to request") + return } if result.aolr.hasNextLink() && result.aolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/storagecache/mgmt/2020-03-01/storagecache/skus.go b/services/storagecache/mgmt/2020-03-01/storagecache/skus.go index bbd451b15797..d4b33f1f7756 100644 --- a/services/storagecache/mgmt/2020-03-01/storagecache/skus.go +++ b/services/storagecache/mgmt/2020-03-01/storagecache/skus.go @@ -71,6 +71,7 @@ func (client SkusClient) List(ctx context.Context) (result ResourceSkusResultPag result.rsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.SkusClient", "List", resp, "Failure responding to request") + return } if result.rsr.hasNextLink() && result.rsr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client SkusClient) listNextResults(ctx context.Context, lastResults Resour result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.SkusClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/storagecache/mgmt/2020-03-01/storagecache/storagetargets.go b/services/storagecache/mgmt/2020-03-01/storagecache/storagetargets.go index 702c9381de87..daf847ba598e 100644 --- a/services/storagecache/mgmt/2020-03-01/storagecache/storagetargets.go +++ b/services/storagecache/mgmt/2020-03-01/storagecache/storagetargets.go @@ -278,6 +278,7 @@ func (client StorageTargetsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.StorageTargetsClient", "Get", resp, "Failure responding to request") + return } return @@ -362,6 +363,7 @@ func (client StorageTargetsClient) ListByCache(ctx context.Context, resourceGrou result.str, err = client.ListByCacheResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.StorageTargetsClient", "ListByCache", resp, "Failure responding to request") + return } if result.str.hasNextLink() && result.str.IsEmpty() { err = result.NextWithContext(ctx) @@ -426,6 +428,7 @@ func (client StorageTargetsClient) listByCacheNextResults(ctx context.Context, l result, err = client.ListByCacheResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.StorageTargetsClient", "listByCacheNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/storagecache/mgmt/2020-03-01/storagecache/usagemodels.go b/services/storagecache/mgmt/2020-03-01/storagecache/usagemodels.go index ce6da10c3b65..3aec3f48428e 100644 --- a/services/storagecache/mgmt/2020-03-01/storagecache/usagemodels.go +++ b/services/storagecache/mgmt/2020-03-01/storagecache/usagemodels.go @@ -71,6 +71,7 @@ func (client UsageModelsClient) List(ctx context.Context) (result UsageModelsRes result.umr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.UsageModelsClient", "List", resp, "Failure responding to request") + return } if result.umr.hasNextLink() && result.umr.IsEmpty() { err = result.NextWithContext(ctx) @@ -133,6 +134,7 @@ func (client UsageModelsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagecache.UsageModelsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/storageimportexport/mgmt/2016-11-01/storageimportexport/bitlockerkeys.go b/services/storageimportexport/mgmt/2016-11-01/storageimportexport/bitlockerkeys.go index bb4a9717a768..3dd8b9e9c97a 100644 --- a/services/storageimportexport/mgmt/2016-11-01/storageimportexport/bitlockerkeys.go +++ b/services/storageimportexport/mgmt/2016-11-01/storageimportexport/bitlockerkeys.go @@ -73,6 +73,7 @@ func (client BitLockerKeysClient) List(ctx context.Context, jobName string, reso result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storageimportexport.BitLockerKeysClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/storageimportexport/mgmt/2016-11-01/storageimportexport/jobs.go b/services/storageimportexport/mgmt/2016-11-01/storageimportexport/jobs.go index 4c81936354a7..3ccc26df196f 100644 --- a/services/storageimportexport/mgmt/2016-11-01/storageimportexport/jobs.go +++ b/services/storageimportexport/mgmt/2016-11-01/storageimportexport/jobs.go @@ -116,6 +116,7 @@ func (client JobsClient) Create(ctx context.Context, jobName string, resourceGro result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storageimportexport.JobsClient", "Create", resp, "Failure responding to request") + return } return @@ -202,6 +203,7 @@ func (client JobsClient) Delete(ctx context.Context, jobName string, resourceGro result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storageimportexport.JobsClient", "Delete", resp, "Failure responding to request") + return } return @@ -281,6 +283,7 @@ func (client JobsClient) Get(ctx context.Context, jobName string, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storageimportexport.JobsClient", "Get", resp, "Failure responding to request") + return } return @@ -363,6 +366,7 @@ func (client JobsClient) ListByResourceGroup(ctx context.Context, resourceGroupN result.ljr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storageimportexport.JobsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ljr.hasNextLink() && result.ljr.IsEmpty() { err = result.NextWithContext(ctx) @@ -436,6 +440,7 @@ func (client JobsClient) listByResourceGroupNextResults(ctx context.Context, las result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storageimportexport.JobsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -488,6 +493,7 @@ func (client JobsClient) ListBySubscription(ctx context.Context, top *int32, fil result.ljr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storageimportexport.JobsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ljr.hasNextLink() && result.ljr.IsEmpty() { err = result.NextWithContext(ctx) @@ -560,6 +566,7 @@ func (client JobsClient) listBySubscriptionNextResults(ctx context.Context, last result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storageimportexport.JobsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -615,6 +622,7 @@ func (client JobsClient) Update(ctx context.Context, jobName string, resourceGro result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storageimportexport.JobsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storageimportexport/mgmt/2016-11-01/storageimportexport/locations.go b/services/storageimportexport/mgmt/2016-11-01/storageimportexport/locations.go index 2deada9b2d7b..6d5e180e931f 100644 --- a/services/storageimportexport/mgmt/2016-11-01/storageimportexport/locations.go +++ b/services/storageimportexport/mgmt/2016-11-01/storageimportexport/locations.go @@ -72,6 +72,7 @@ func (client LocationsClient) Get(ctx context.Context, locationName string) (res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storageimportexport.LocationsClient", "Get", resp, "Failure responding to request") + return } return @@ -147,6 +148,7 @@ func (client LocationsClient) List(ctx context.Context) (result LocationsRespons result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storageimportexport.LocationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/storageimportexport/mgmt/2016-11-01/storageimportexport/operations.go b/services/storageimportexport/mgmt/2016-11-01/storageimportexport/operations.go index 761c7b0ef72e..7c3d1334353a 100644 --- a/services/storageimportexport/mgmt/2016-11-01/storageimportexport/operations.go +++ b/services/storageimportexport/mgmt/2016-11-01/storageimportexport/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result ListOperationsR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storageimportexport.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/storageimportexport/mgmt/2020-08-01/storageimportexport/bitlockerkeys.go b/services/storageimportexport/mgmt/2020-08-01/storageimportexport/bitlockerkeys.go index 0da81a5296b7..3f9ef8f8aec0 100644 --- a/services/storageimportexport/mgmt/2020-08-01/storageimportexport/bitlockerkeys.go +++ b/services/storageimportexport/mgmt/2020-08-01/storageimportexport/bitlockerkeys.go @@ -73,6 +73,7 @@ func (client BitLockerKeysClient) List(ctx context.Context, jobName string, reso result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storageimportexport.BitLockerKeysClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/storageimportexport/mgmt/2020-08-01/storageimportexport/jobs.go b/services/storageimportexport/mgmt/2020-08-01/storageimportexport/jobs.go index 1624864836e6..44f0da2e5f0d 100644 --- a/services/storageimportexport/mgmt/2020-08-01/storageimportexport/jobs.go +++ b/services/storageimportexport/mgmt/2020-08-01/storageimportexport/jobs.go @@ -114,6 +114,7 @@ func (client JobsClient) Create(ctx context.Context, jobName string, resourceGro result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storageimportexport.JobsClient", "Create", resp, "Failure responding to request") + return } return @@ -200,6 +201,7 @@ func (client JobsClient) Delete(ctx context.Context, jobName string, resourceGro result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storageimportexport.JobsClient", "Delete", resp, "Failure responding to request") + return } return @@ -279,6 +281,7 @@ func (client JobsClient) Get(ctx context.Context, jobName string, resourceGroupN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storageimportexport.JobsClient", "Get", resp, "Failure responding to request") + return } return @@ -361,6 +364,7 @@ func (client JobsClient) ListByResourceGroup(ctx context.Context, resourceGroupN result.ljr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storageimportexport.JobsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ljr.hasNextLink() && result.ljr.IsEmpty() { err = result.NextWithContext(ctx) @@ -434,6 +438,7 @@ func (client JobsClient) listByResourceGroupNextResults(ctx context.Context, las result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storageimportexport.JobsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -486,6 +491,7 @@ func (client JobsClient) ListBySubscription(ctx context.Context, top *int32, fil result.ljr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storageimportexport.JobsClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.ljr.hasNextLink() && result.ljr.IsEmpty() { err = result.NextWithContext(ctx) @@ -558,6 +564,7 @@ func (client JobsClient) listBySubscriptionNextResults(ctx context.Context, last result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storageimportexport.JobsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -613,6 +620,7 @@ func (client JobsClient) Update(ctx context.Context, jobName string, resourceGro result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storageimportexport.JobsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storageimportexport/mgmt/2020-08-01/storageimportexport/locations.go b/services/storageimportexport/mgmt/2020-08-01/storageimportexport/locations.go index 5d121aed7f4e..939f400cdba4 100644 --- a/services/storageimportexport/mgmt/2020-08-01/storageimportexport/locations.go +++ b/services/storageimportexport/mgmt/2020-08-01/storageimportexport/locations.go @@ -72,6 +72,7 @@ func (client LocationsClient) Get(ctx context.Context, locationName string) (res result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storageimportexport.LocationsClient", "Get", resp, "Failure responding to request") + return } return @@ -147,6 +148,7 @@ func (client LocationsClient) List(ctx context.Context) (result LocationsRespons result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storageimportexport.LocationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/storageimportexport/mgmt/2020-08-01/storageimportexport/operations.go b/services/storageimportexport/mgmt/2020-08-01/storageimportexport/operations.go index 1d833a2a2d64..70cba902442a 100644 --- a/services/storageimportexport/mgmt/2020-08-01/storageimportexport/operations.go +++ b/services/storageimportexport/mgmt/2020-08-01/storageimportexport/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result ListOperationsR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storageimportexport.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2018-04-02/storagesync/cloudendpoints.go b/services/storagesync/mgmt/2018-04-02/storagesync/cloudendpoints.go index 27acd37fbc6e..90ec2709d177 100644 --- a/services/storagesync/mgmt/2018-04-02/storagesync/cloudendpoints.go +++ b/services/storagesync/mgmt/2018-04-02/storagesync/cloudendpoints.go @@ -265,6 +265,7 @@ func (client CloudEndpointsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.CloudEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -353,6 +354,7 @@ func (client CloudEndpointsClient) ListBySyncGroup(ctx context.Context, resource result, err = client.ListBySyncGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.CloudEndpointsClient", "ListBySyncGroup", resp, "Failure responding to request") + return } return @@ -806,6 +808,7 @@ func (client CloudEndpointsClient) Restoreheartbeat(ctx context.Context, resourc result, err = client.RestoreheartbeatResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.CloudEndpointsClient", "Restoreheartbeat", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2018-04-02/storagesync/operations.go b/services/storagesync/mgmt/2018-04-02/storagesync/operations.go index 68c1536bc94c..b5b84cc413ed 100644 --- a/services/storagesync/mgmt/2018-04-02/storagesync/operations.go +++ b/services/storagesync/mgmt/2018-04-02/storagesync/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationEntity result.oelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.OperationsClient", "List", resp, "Failure responding to request") + return } if result.oelr.hasNextLink() && result.oelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/storagesync/mgmt/2018-04-02/storagesync/registeredservers.go b/services/storagesync/mgmt/2018-04-02/storagesync/registeredservers.go index 3a9e7ed5c7ec..984119eeca6e 100644 --- a/services/storagesync/mgmt/2018-04-02/storagesync/registeredservers.go +++ b/services/storagesync/mgmt/2018-04-02/storagesync/registeredservers.go @@ -261,6 +261,7 @@ func (client RegisteredServersClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.RegisteredServersClient", "Get", resp, "Failure responding to request") + return } return @@ -347,6 +348,7 @@ func (client RegisteredServersClient) ListByStorageSyncService(ctx context.Conte result, err = client.ListByStorageSyncServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.RegisteredServersClient", "ListByStorageSyncService", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2018-04-02/storagesync/serverendpoints.go b/services/storagesync/mgmt/2018-04-02/storagesync/serverendpoints.go index 7cef722e3e16..66e3986edfbc 100644 --- a/services/storagesync/mgmt/2018-04-02/storagesync/serverendpoints.go +++ b/services/storagesync/mgmt/2018-04-02/storagesync/serverendpoints.go @@ -272,6 +272,7 @@ func (client ServerEndpointsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServerEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -360,6 +361,7 @@ func (client ServerEndpointsClient) ListBySyncGroup(ctx context.Context, resourc result, err = client.ListBySyncGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServerEndpointsClient", "ListBySyncGroup", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2018-04-02/storagesync/services.go b/services/storagesync/mgmt/2018-04-02/storagesync/services.go index 48198511b96d..80b61ade0be9 100644 --- a/services/storagesync/mgmt/2018-04-02/storagesync/services.go +++ b/services/storagesync/mgmt/2018-04-02/storagesync/services.go @@ -82,6 +82,7 @@ func (client ServicesClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client ServicesClient) Create(ctx context.Context, resourceGroupName strin result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "Create", resp, "Failure responding to request") + return } return @@ -256,6 +258,7 @@ func (client ServicesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -340,6 +343,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -424,6 +428,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -501,6 +506,7 @@ func (client ServicesClient) ListBySubscription(ctx context.Context) (result Ser result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -585,6 +591,7 @@ func (client ServicesClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2018-04-02/storagesync/syncgroups.go b/services/storagesync/mgmt/2018-04-02/storagesync/syncgroups.go index 6d1701e2d317..815733580740 100644 --- a/services/storagesync/mgmt/2018-04-02/storagesync/syncgroups.go +++ b/services/storagesync/mgmt/2018-04-02/storagesync/syncgroups.go @@ -85,6 +85,7 @@ func (client SyncGroupsClient) Create(ctx context.Context, resourceGroupName str result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "Create", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client SyncGroupsClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client SyncGroupsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +349,7 @@ func (client SyncGroupsClient) ListByStorageSyncService(ctx context.Context, res result, err = client.ListByStorageSyncServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "ListByStorageSyncService", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2018-04-02/storagesync/workflows.go b/services/storagesync/mgmt/2018-04-02/storagesync/workflows.go index 54dbdfef42e0..e04b3b132387 100644 --- a/services/storagesync/mgmt/2018-04-02/storagesync/workflows.go +++ b/services/storagesync/mgmt/2018-04-02/storagesync/workflows.go @@ -84,6 +84,7 @@ func (client WorkflowsClient) Abort(ctx context.Context, resourceGroupName strin result, err = client.AbortResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.WorkflowsClient", "Abort", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client WorkflowsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.WorkflowsClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2018-07-01/storagesync/cloudendpoints.go b/services/storagesync/mgmt/2018-07-01/storagesync/cloudendpoints.go index dc759d1bedb3..acc173dab818 100644 --- a/services/storagesync/mgmt/2018-07-01/storagesync/cloudendpoints.go +++ b/services/storagesync/mgmt/2018-07-01/storagesync/cloudendpoints.go @@ -265,6 +265,7 @@ func (client CloudEndpointsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.CloudEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -353,6 +354,7 @@ func (client CloudEndpointsClient) ListBySyncGroup(ctx context.Context, resource result, err = client.ListBySyncGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.CloudEndpointsClient", "ListBySyncGroup", resp, "Failure responding to request") + return } return @@ -806,6 +808,7 @@ func (client CloudEndpointsClient) Restoreheartbeat(ctx context.Context, resourc result, err = client.RestoreheartbeatResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.CloudEndpointsClient", "Restoreheartbeat", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2018-07-01/storagesync/operations.go b/services/storagesync/mgmt/2018-07-01/storagesync/operations.go index d5d2409a741b..37ded0f50d02 100644 --- a/services/storagesync/mgmt/2018-07-01/storagesync/operations.go +++ b/services/storagesync/mgmt/2018-07-01/storagesync/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationEntity result.oelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.OperationsClient", "List", resp, "Failure responding to request") + return } if result.oelr.hasNextLink() && result.oelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/storagesync/mgmt/2018-07-01/storagesync/registeredservers.go b/services/storagesync/mgmt/2018-07-01/storagesync/registeredservers.go index 2409335ce94d..6d94e070a978 100644 --- a/services/storagesync/mgmt/2018-07-01/storagesync/registeredservers.go +++ b/services/storagesync/mgmt/2018-07-01/storagesync/registeredservers.go @@ -261,6 +261,7 @@ func (client RegisteredServersClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.RegisteredServersClient", "Get", resp, "Failure responding to request") + return } return @@ -347,6 +348,7 @@ func (client RegisteredServersClient) ListByStorageSyncService(ctx context.Conte result, err = client.ListByStorageSyncServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.RegisteredServersClient", "ListByStorageSyncService", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2018-07-01/storagesync/serverendpoints.go b/services/storagesync/mgmt/2018-07-01/storagesync/serverendpoints.go index b89d5797048f..1bc86dc20c50 100644 --- a/services/storagesync/mgmt/2018-07-01/storagesync/serverendpoints.go +++ b/services/storagesync/mgmt/2018-07-01/storagesync/serverendpoints.go @@ -276,6 +276,7 @@ func (client ServerEndpointsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServerEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -364,6 +365,7 @@ func (client ServerEndpointsClient) ListBySyncGroup(ctx context.Context, resourc result, err = client.ListBySyncGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServerEndpointsClient", "ListBySyncGroup", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2018-07-01/storagesync/services.go b/services/storagesync/mgmt/2018-07-01/storagesync/services.go index 8c625dd50b95..94f67cd8414f 100644 --- a/services/storagesync/mgmt/2018-07-01/storagesync/services.go +++ b/services/storagesync/mgmt/2018-07-01/storagesync/services.go @@ -82,6 +82,7 @@ func (client ServicesClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client ServicesClient) Create(ctx context.Context, resourceGroupName strin result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "Create", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client ServicesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -426,6 +430,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -503,6 +508,7 @@ func (client ServicesClient) ListBySubscription(ctx context.Context) (result Ser result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -587,6 +593,7 @@ func (client ServicesClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2018-07-01/storagesync/syncgroups.go b/services/storagesync/mgmt/2018-07-01/storagesync/syncgroups.go index 96b625488f01..c822e4864169 100644 --- a/services/storagesync/mgmt/2018-07-01/storagesync/syncgroups.go +++ b/services/storagesync/mgmt/2018-07-01/storagesync/syncgroups.go @@ -85,6 +85,7 @@ func (client SyncGroupsClient) Create(ctx context.Context, resourceGroupName str result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "Create", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client SyncGroupsClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client SyncGroupsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +349,7 @@ func (client SyncGroupsClient) ListByStorageSyncService(ctx context.Context, res result, err = client.ListByStorageSyncServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "ListByStorageSyncService", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2018-07-01/storagesync/workflows.go b/services/storagesync/mgmt/2018-07-01/storagesync/workflows.go index 4458621a61a0..7f7e320e8655 100644 --- a/services/storagesync/mgmt/2018-07-01/storagesync/workflows.go +++ b/services/storagesync/mgmt/2018-07-01/storagesync/workflows.go @@ -84,6 +84,7 @@ func (client WorkflowsClient) Abort(ctx context.Context, resourceGroupName strin result, err = client.AbortResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.WorkflowsClient", "Abort", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client WorkflowsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.WorkflowsClient", "Get", resp, "Failure responding to request") + return } return @@ -256,6 +258,7 @@ func (client WorkflowsClient) ListByStorageSyncService(ctx context.Context, reso result, err = client.ListByStorageSyncServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.WorkflowsClient", "ListByStorageSyncService", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2018-10-01/storagesync/cloudendpoints.go b/services/storagesync/mgmt/2018-10-01/storagesync/cloudendpoints.go index f14dff9fae89..8b5edc257aa3 100644 --- a/services/storagesync/mgmt/2018-10-01/storagesync/cloudendpoints.go +++ b/services/storagesync/mgmt/2018-10-01/storagesync/cloudendpoints.go @@ -265,6 +265,7 @@ func (client CloudEndpointsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.CloudEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -353,6 +354,7 @@ func (client CloudEndpointsClient) ListBySyncGroup(ctx context.Context, resource result, err = client.ListBySyncGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.CloudEndpointsClient", "ListBySyncGroup", resp, "Failure responding to request") + return } return @@ -806,6 +808,7 @@ func (client CloudEndpointsClient) Restoreheartbeat(ctx context.Context, resourc result, err = client.RestoreheartbeatResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.CloudEndpointsClient", "Restoreheartbeat", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2018-10-01/storagesync/operations.go b/services/storagesync/mgmt/2018-10-01/storagesync/operations.go index 75761af4c281..6c8a1e177e38 100644 --- a/services/storagesync/mgmt/2018-10-01/storagesync/operations.go +++ b/services/storagesync/mgmt/2018-10-01/storagesync/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationEntity result.oelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.OperationsClient", "List", resp, "Failure responding to request") + return } if result.oelr.hasNextLink() && result.oelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/storagesync/mgmt/2018-10-01/storagesync/registeredservers.go b/services/storagesync/mgmt/2018-10-01/storagesync/registeredservers.go index 30666145b97b..75f749122463 100644 --- a/services/storagesync/mgmt/2018-10-01/storagesync/registeredservers.go +++ b/services/storagesync/mgmt/2018-10-01/storagesync/registeredservers.go @@ -261,6 +261,7 @@ func (client RegisteredServersClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.RegisteredServersClient", "Get", resp, "Failure responding to request") + return } return @@ -347,6 +348,7 @@ func (client RegisteredServersClient) ListByStorageSyncService(ctx context.Conte result, err = client.ListByStorageSyncServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.RegisteredServersClient", "ListByStorageSyncService", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2018-10-01/storagesync/serverendpoints.go b/services/storagesync/mgmt/2018-10-01/storagesync/serverendpoints.go index 082264fbf753..d0b4f2abfad1 100644 --- a/services/storagesync/mgmt/2018-10-01/storagesync/serverendpoints.go +++ b/services/storagesync/mgmt/2018-10-01/storagesync/serverendpoints.go @@ -276,6 +276,7 @@ func (client ServerEndpointsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServerEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -364,6 +365,7 @@ func (client ServerEndpointsClient) ListBySyncGroup(ctx context.Context, resourc result, err = client.ListBySyncGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServerEndpointsClient", "ListBySyncGroup", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2018-10-01/storagesync/services.go b/services/storagesync/mgmt/2018-10-01/storagesync/services.go index 1a8b5157df87..603d78913e3b 100644 --- a/services/storagesync/mgmt/2018-10-01/storagesync/services.go +++ b/services/storagesync/mgmt/2018-10-01/storagesync/services.go @@ -82,6 +82,7 @@ func (client ServicesClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client ServicesClient) Create(ctx context.Context, resourceGroupName strin result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "Create", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client ServicesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -426,6 +430,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -503,6 +508,7 @@ func (client ServicesClient) ListBySubscription(ctx context.Context) (result Ser result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -587,6 +593,7 @@ func (client ServicesClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2018-10-01/storagesync/syncgroups.go b/services/storagesync/mgmt/2018-10-01/storagesync/syncgroups.go index 0873508083e3..8e65dc730445 100644 --- a/services/storagesync/mgmt/2018-10-01/storagesync/syncgroups.go +++ b/services/storagesync/mgmt/2018-10-01/storagesync/syncgroups.go @@ -85,6 +85,7 @@ func (client SyncGroupsClient) Create(ctx context.Context, resourceGroupName str result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "Create", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client SyncGroupsClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client SyncGroupsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +349,7 @@ func (client SyncGroupsClient) ListByStorageSyncService(ctx context.Context, res result, err = client.ListByStorageSyncServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "ListByStorageSyncService", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2018-10-01/storagesync/workflows.go b/services/storagesync/mgmt/2018-10-01/storagesync/workflows.go index 63f912f10836..19764444ff01 100644 --- a/services/storagesync/mgmt/2018-10-01/storagesync/workflows.go +++ b/services/storagesync/mgmt/2018-10-01/storagesync/workflows.go @@ -84,6 +84,7 @@ func (client WorkflowsClient) Abort(ctx context.Context, resourceGroupName strin result, err = client.AbortResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.WorkflowsClient", "Abort", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client WorkflowsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.WorkflowsClient", "Get", resp, "Failure responding to request") + return } return @@ -256,6 +258,7 @@ func (client WorkflowsClient) ListByStorageSyncService(ctx context.Context, reso result, err = client.ListByStorageSyncServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.WorkflowsClient", "ListByStorageSyncService", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2019-02-01/storagesync/cloudendpoints.go b/services/storagesync/mgmt/2019-02-01/storagesync/cloudendpoints.go index 4c830fc088aa..de439084463b 100644 --- a/services/storagesync/mgmt/2019-02-01/storagesync/cloudendpoints.go +++ b/services/storagesync/mgmt/2019-02-01/storagesync/cloudendpoints.go @@ -265,6 +265,7 @@ func (client CloudEndpointsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.CloudEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -353,6 +354,7 @@ func (client CloudEndpointsClient) ListBySyncGroup(ctx context.Context, resource result, err = client.ListBySyncGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.CloudEndpointsClient", "ListBySyncGroup", resp, "Failure responding to request") + return } return @@ -806,6 +808,7 @@ func (client CloudEndpointsClient) Restoreheartbeat(ctx context.Context, resourc result, err = client.RestoreheartbeatResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.CloudEndpointsClient", "Restoreheartbeat", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2019-02-01/storagesync/operations.go b/services/storagesync/mgmt/2019-02-01/storagesync/operations.go index 8b18004a9989..7b44169e440d 100644 --- a/services/storagesync/mgmt/2019-02-01/storagesync/operations.go +++ b/services/storagesync/mgmt/2019-02-01/storagesync/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationEntity result.oelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.OperationsClient", "List", resp, "Failure responding to request") + return } if result.oelr.hasNextLink() && result.oelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/storagesync/mgmt/2019-02-01/storagesync/registeredservers.go b/services/storagesync/mgmt/2019-02-01/storagesync/registeredservers.go index 524c5e32b60b..f1beba898df5 100644 --- a/services/storagesync/mgmt/2019-02-01/storagesync/registeredservers.go +++ b/services/storagesync/mgmt/2019-02-01/storagesync/registeredservers.go @@ -261,6 +261,7 @@ func (client RegisteredServersClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.RegisteredServersClient", "Get", resp, "Failure responding to request") + return } return @@ -347,6 +348,7 @@ func (client RegisteredServersClient) ListByStorageSyncService(ctx context.Conte result, err = client.ListByStorageSyncServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.RegisteredServersClient", "ListByStorageSyncService", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2019-02-01/storagesync/serverendpoints.go b/services/storagesync/mgmt/2019-02-01/storagesync/serverendpoints.go index d176adc0cb39..eb8e699bca05 100644 --- a/services/storagesync/mgmt/2019-02-01/storagesync/serverendpoints.go +++ b/services/storagesync/mgmt/2019-02-01/storagesync/serverendpoints.go @@ -276,6 +276,7 @@ func (client ServerEndpointsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServerEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -364,6 +365,7 @@ func (client ServerEndpointsClient) ListBySyncGroup(ctx context.Context, resourc result, err = client.ListBySyncGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServerEndpointsClient", "ListBySyncGroup", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2019-02-01/storagesync/services.go b/services/storagesync/mgmt/2019-02-01/storagesync/services.go index bcfb1ebbe280..a815acfdc0d5 100644 --- a/services/storagesync/mgmt/2019-02-01/storagesync/services.go +++ b/services/storagesync/mgmt/2019-02-01/storagesync/services.go @@ -82,6 +82,7 @@ func (client ServicesClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client ServicesClient) Create(ctx context.Context, resourceGroupName strin result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "Create", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client ServicesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -426,6 +430,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -503,6 +508,7 @@ func (client ServicesClient) ListBySubscription(ctx context.Context) (result Ser result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -587,6 +593,7 @@ func (client ServicesClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2019-02-01/storagesync/syncgroups.go b/services/storagesync/mgmt/2019-02-01/storagesync/syncgroups.go index 2f2a65553fa8..adcf9bb6d39c 100644 --- a/services/storagesync/mgmt/2019-02-01/storagesync/syncgroups.go +++ b/services/storagesync/mgmt/2019-02-01/storagesync/syncgroups.go @@ -85,6 +85,7 @@ func (client SyncGroupsClient) Create(ctx context.Context, resourceGroupName str result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "Create", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client SyncGroupsClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client SyncGroupsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +349,7 @@ func (client SyncGroupsClient) ListByStorageSyncService(ctx context.Context, res result, err = client.ListByStorageSyncServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "ListByStorageSyncService", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2019-02-01/storagesync/workflows.go b/services/storagesync/mgmt/2019-02-01/storagesync/workflows.go index d2d60b37d817..45c23ff0067b 100644 --- a/services/storagesync/mgmt/2019-02-01/storagesync/workflows.go +++ b/services/storagesync/mgmt/2019-02-01/storagesync/workflows.go @@ -84,6 +84,7 @@ func (client WorkflowsClient) Abort(ctx context.Context, resourceGroupName strin result, err = client.AbortResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.WorkflowsClient", "Abort", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client WorkflowsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.WorkflowsClient", "Get", resp, "Failure responding to request") + return } return @@ -256,6 +258,7 @@ func (client WorkflowsClient) ListByStorageSyncService(ctx context.Context, reso result, err = client.ListByStorageSyncServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.WorkflowsClient", "ListByStorageSyncService", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2019-06-01/storagesync/cloudendpoints.go b/services/storagesync/mgmt/2019-06-01/storagesync/cloudendpoints.go index 62b6f4d788ba..0f5e90208888 100644 --- a/services/storagesync/mgmt/2019-06-01/storagesync/cloudendpoints.go +++ b/services/storagesync/mgmt/2019-06-01/storagesync/cloudendpoints.go @@ -265,6 +265,7 @@ func (client CloudEndpointsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.CloudEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -353,6 +354,7 @@ func (client CloudEndpointsClient) ListBySyncGroup(ctx context.Context, resource result, err = client.ListBySyncGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.CloudEndpointsClient", "ListBySyncGroup", resp, "Failure responding to request") + return } return @@ -806,6 +808,7 @@ func (client CloudEndpointsClient) Restoreheartbeat(ctx context.Context, resourc result, err = client.RestoreheartbeatResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.CloudEndpointsClient", "Restoreheartbeat", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2019-06-01/storagesync/operations.go b/services/storagesync/mgmt/2019-06-01/storagesync/operations.go index 1ad03f593f43..ffc9e9989569 100644 --- a/services/storagesync/mgmt/2019-06-01/storagesync/operations.go +++ b/services/storagesync/mgmt/2019-06-01/storagesync/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationEntity result.oelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.OperationsClient", "List", resp, "Failure responding to request") + return } if result.oelr.hasNextLink() && result.oelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/storagesync/mgmt/2019-06-01/storagesync/operationstatus.go b/services/storagesync/mgmt/2019-06-01/storagesync/operationstatus.go index a34eed3afc3e..8972e6b790c3 100644 --- a/services/storagesync/mgmt/2019-06-01/storagesync/operationstatus.go +++ b/services/storagesync/mgmt/2019-06-01/storagesync/operationstatus.go @@ -85,6 +85,7 @@ func (client OperationStatusClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.OperationStatusClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2019-06-01/storagesync/registeredservers.go b/services/storagesync/mgmt/2019-06-01/storagesync/registeredservers.go index daa1189e6795..a90c101b44ad 100644 --- a/services/storagesync/mgmt/2019-06-01/storagesync/registeredservers.go +++ b/services/storagesync/mgmt/2019-06-01/storagesync/registeredservers.go @@ -261,6 +261,7 @@ func (client RegisteredServersClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.RegisteredServersClient", "Get", resp, "Failure responding to request") + return } return @@ -347,6 +348,7 @@ func (client RegisteredServersClient) ListByStorageSyncService(ctx context.Conte result, err = client.ListByStorageSyncServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.RegisteredServersClient", "ListByStorageSyncService", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2019-06-01/storagesync/serverendpoints.go b/services/storagesync/mgmt/2019-06-01/storagesync/serverendpoints.go index 82cb69a26987..5c7f1967fc53 100644 --- a/services/storagesync/mgmt/2019-06-01/storagesync/serverendpoints.go +++ b/services/storagesync/mgmt/2019-06-01/storagesync/serverendpoints.go @@ -276,6 +276,7 @@ func (client ServerEndpointsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServerEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -364,6 +365,7 @@ func (client ServerEndpointsClient) ListBySyncGroup(ctx context.Context, resourc result, err = client.ListBySyncGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServerEndpointsClient", "ListBySyncGroup", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2019-06-01/storagesync/services.go b/services/storagesync/mgmt/2019-06-01/storagesync/services.go index 745231501d01..0a759b316963 100644 --- a/services/storagesync/mgmt/2019-06-01/storagesync/services.go +++ b/services/storagesync/mgmt/2019-06-01/storagesync/services.go @@ -82,6 +82,7 @@ func (client ServicesClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client ServicesClient) Create(ctx context.Context, resourceGroupName strin result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "Create", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client ServicesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -426,6 +430,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -503,6 +508,7 @@ func (client ServicesClient) ListBySubscription(ctx context.Context) (result Ser result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -587,6 +593,7 @@ func (client ServicesClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2019-06-01/storagesync/syncgroups.go b/services/storagesync/mgmt/2019-06-01/storagesync/syncgroups.go index f0197f771bdf..f23773bc3732 100644 --- a/services/storagesync/mgmt/2019-06-01/storagesync/syncgroups.go +++ b/services/storagesync/mgmt/2019-06-01/storagesync/syncgroups.go @@ -85,6 +85,7 @@ func (client SyncGroupsClient) Create(ctx context.Context, resourceGroupName str result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "Create", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client SyncGroupsClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client SyncGroupsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +349,7 @@ func (client SyncGroupsClient) ListByStorageSyncService(ctx context.Context, res result, err = client.ListByStorageSyncServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "ListByStorageSyncService", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2019-06-01/storagesync/workflows.go b/services/storagesync/mgmt/2019-06-01/storagesync/workflows.go index dc91a91e0c33..38e06b4a5b3c 100644 --- a/services/storagesync/mgmt/2019-06-01/storagesync/workflows.go +++ b/services/storagesync/mgmt/2019-06-01/storagesync/workflows.go @@ -84,6 +84,7 @@ func (client WorkflowsClient) Abort(ctx context.Context, resourceGroupName strin result, err = client.AbortResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.WorkflowsClient", "Abort", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client WorkflowsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.WorkflowsClient", "Get", resp, "Failure responding to request") + return } return @@ -256,6 +258,7 @@ func (client WorkflowsClient) ListByStorageSyncService(ctx context.Context, reso result, err = client.ListByStorageSyncServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.WorkflowsClient", "ListByStorageSyncService", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2019-10-01/storagesync/cloudendpoints.go b/services/storagesync/mgmt/2019-10-01/storagesync/cloudendpoints.go index a570f5e1e141..43d77c5be092 100644 --- a/services/storagesync/mgmt/2019-10-01/storagesync/cloudendpoints.go +++ b/services/storagesync/mgmt/2019-10-01/storagesync/cloudendpoints.go @@ -265,6 +265,7 @@ func (client CloudEndpointsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.CloudEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -353,6 +354,7 @@ func (client CloudEndpointsClient) ListBySyncGroup(ctx context.Context, resource result, err = client.ListBySyncGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.CloudEndpointsClient", "ListBySyncGroup", resp, "Failure responding to request") + return } return @@ -806,6 +808,7 @@ func (client CloudEndpointsClient) Restoreheartbeat(ctx context.Context, resourc result, err = client.RestoreheartbeatResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.CloudEndpointsClient", "Restoreheartbeat", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2019-10-01/storagesync/operations.go b/services/storagesync/mgmt/2019-10-01/storagesync/operations.go index 03e6544331ff..f6619ea4ba8b 100644 --- a/services/storagesync/mgmt/2019-10-01/storagesync/operations.go +++ b/services/storagesync/mgmt/2019-10-01/storagesync/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationEntity result.oelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.OperationsClient", "List", resp, "Failure responding to request") + return } if result.oelr.hasNextLink() && result.oelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/storagesync/mgmt/2019-10-01/storagesync/operationstatus.go b/services/storagesync/mgmt/2019-10-01/storagesync/operationstatus.go index 8342774a50c0..f1b4ca695b15 100644 --- a/services/storagesync/mgmt/2019-10-01/storagesync/operationstatus.go +++ b/services/storagesync/mgmt/2019-10-01/storagesync/operationstatus.go @@ -85,6 +85,7 @@ func (client OperationStatusClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.OperationStatusClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2019-10-01/storagesync/registeredservers.go b/services/storagesync/mgmt/2019-10-01/storagesync/registeredservers.go index 0972d20e68f1..1c2679bb88df 100644 --- a/services/storagesync/mgmt/2019-10-01/storagesync/registeredservers.go +++ b/services/storagesync/mgmt/2019-10-01/storagesync/registeredservers.go @@ -261,6 +261,7 @@ func (client RegisteredServersClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.RegisteredServersClient", "Get", resp, "Failure responding to request") + return } return @@ -347,6 +348,7 @@ func (client RegisteredServersClient) ListByStorageSyncService(ctx context.Conte result, err = client.ListByStorageSyncServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.RegisteredServersClient", "ListByStorageSyncService", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2019-10-01/storagesync/serverendpoints.go b/services/storagesync/mgmt/2019-10-01/storagesync/serverendpoints.go index 2037701f9cf1..e7cac744ff6c 100644 --- a/services/storagesync/mgmt/2019-10-01/storagesync/serverendpoints.go +++ b/services/storagesync/mgmt/2019-10-01/storagesync/serverendpoints.go @@ -276,6 +276,7 @@ func (client ServerEndpointsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServerEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -364,6 +365,7 @@ func (client ServerEndpointsClient) ListBySyncGroup(ctx context.Context, resourc result, err = client.ListBySyncGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServerEndpointsClient", "ListBySyncGroup", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2019-10-01/storagesync/services.go b/services/storagesync/mgmt/2019-10-01/storagesync/services.go index cb77d7a9abfe..0353a0ff2952 100644 --- a/services/storagesync/mgmt/2019-10-01/storagesync/services.go +++ b/services/storagesync/mgmt/2019-10-01/storagesync/services.go @@ -82,6 +82,7 @@ func (client ServicesClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -171,6 +172,7 @@ func (client ServicesClient) Create(ctx context.Context, resourceGroupName strin result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "Create", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client ServicesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -342,6 +345,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -426,6 +430,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -503,6 +508,7 @@ func (client ServicesClient) ListBySubscription(ctx context.Context) (result Ser result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -587,6 +593,7 @@ func (client ServicesClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2019-10-01/storagesync/syncgroups.go b/services/storagesync/mgmt/2019-10-01/storagesync/syncgroups.go index 35ff9abe0e35..e887decb77c1 100644 --- a/services/storagesync/mgmt/2019-10-01/storagesync/syncgroups.go +++ b/services/storagesync/mgmt/2019-10-01/storagesync/syncgroups.go @@ -85,6 +85,7 @@ func (client SyncGroupsClient) Create(ctx context.Context, resourceGroupName str result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "Create", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client SyncGroupsClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client SyncGroupsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +349,7 @@ func (client SyncGroupsClient) ListByStorageSyncService(ctx context.Context, res result, err = client.ListByStorageSyncServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "ListByStorageSyncService", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2019-10-01/storagesync/workflows.go b/services/storagesync/mgmt/2019-10-01/storagesync/workflows.go index 490272bf87be..2c1fbd8dbbd8 100644 --- a/services/storagesync/mgmt/2019-10-01/storagesync/workflows.go +++ b/services/storagesync/mgmt/2019-10-01/storagesync/workflows.go @@ -84,6 +84,7 @@ func (client WorkflowsClient) Abort(ctx context.Context, resourceGroupName strin result, err = client.AbortResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.WorkflowsClient", "Abort", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client WorkflowsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.WorkflowsClient", "Get", resp, "Failure responding to request") + return } return @@ -256,6 +258,7 @@ func (client WorkflowsClient) ListByStorageSyncService(ctx context.Context, reso result, err = client.ListByStorageSyncServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.WorkflowsClient", "ListByStorageSyncService", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2020-03-01/storagesync/cloudendpoints.go b/services/storagesync/mgmt/2020-03-01/storagesync/cloudendpoints.go index bf3fd779a469..69f7e2bf6253 100644 --- a/services/storagesync/mgmt/2020-03-01/storagesync/cloudendpoints.go +++ b/services/storagesync/mgmt/2020-03-01/storagesync/cloudendpoints.go @@ -265,6 +265,7 @@ func (client CloudEndpointsClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.CloudEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -353,6 +354,7 @@ func (client CloudEndpointsClient) ListBySyncGroup(ctx context.Context, resource result, err = client.ListBySyncGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.CloudEndpointsClient", "ListBySyncGroup", resp, "Failure responding to request") + return } return @@ -806,6 +808,7 @@ func (client CloudEndpointsClient) Restoreheartbeat(ctx context.Context, resourc result, err = client.RestoreheartbeatResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.CloudEndpointsClient", "Restoreheartbeat", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2020-03-01/storagesync/operations.go b/services/storagesync/mgmt/2020-03-01/storagesync/operations.go index 747288ede923..2ed8f6c1d370 100644 --- a/services/storagesync/mgmt/2020-03-01/storagesync/operations.go +++ b/services/storagesync/mgmt/2020-03-01/storagesync/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationEntity result.oelr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.OperationsClient", "List", resp, "Failure responding to request") + return } if result.oelr.hasNextLink() && result.oelr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/storagesync/mgmt/2020-03-01/storagesync/operationstatus.go b/services/storagesync/mgmt/2020-03-01/storagesync/operationstatus.go index 570f7f87c00c..cc647f362745 100644 --- a/services/storagesync/mgmt/2020-03-01/storagesync/operationstatus.go +++ b/services/storagesync/mgmt/2020-03-01/storagesync/operationstatus.go @@ -85,6 +85,7 @@ func (client OperationStatusClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.OperationStatusClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2020-03-01/storagesync/privateendpointconnections.go b/services/storagesync/mgmt/2020-03-01/storagesync/privateendpointconnections.go index 477df6a6e54d..238d23b9faee 100644 --- a/services/storagesync/mgmt/2020-03-01/storagesync/privateendpointconnections.go +++ b/services/storagesync/mgmt/2020-03-01/storagesync/privateendpointconnections.go @@ -267,6 +267,7 @@ func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -353,6 +354,7 @@ func (client PrivateEndpointConnectionsClient) ListByStorageSyncService(ctx cont result, err = client.ListByStorageSyncServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.PrivateEndpointConnectionsClient", "ListByStorageSyncService", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2020-03-01/storagesync/privatelinkresources.go b/services/storagesync/mgmt/2020-03-01/storagesync/privatelinkresources.go index 8ea9bf6b4e92..1c3747b9fe97 100644 --- a/services/storagesync/mgmt/2020-03-01/storagesync/privatelinkresources.go +++ b/services/storagesync/mgmt/2020-03-01/storagesync/privatelinkresources.go @@ -84,6 +84,7 @@ func (client PrivateLinkResourcesClient) ListByStorageSyncService(ctx context.Co result, err = client.ListByStorageSyncServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.PrivateLinkResourcesClient", "ListByStorageSyncService", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2020-03-01/storagesync/registeredservers.go b/services/storagesync/mgmt/2020-03-01/storagesync/registeredservers.go index 889419472dd4..5a6862f8cfae 100644 --- a/services/storagesync/mgmt/2020-03-01/storagesync/registeredservers.go +++ b/services/storagesync/mgmt/2020-03-01/storagesync/registeredservers.go @@ -261,6 +261,7 @@ func (client RegisteredServersClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.RegisteredServersClient", "Get", resp, "Failure responding to request") + return } return @@ -347,6 +348,7 @@ func (client RegisteredServersClient) ListByStorageSyncService(ctx context.Conte result, err = client.ListByStorageSyncServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.RegisteredServersClient", "ListByStorageSyncService", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2020-03-01/storagesync/serverendpoints.go b/services/storagesync/mgmt/2020-03-01/storagesync/serverendpoints.go index 62ac2d1dcab1..2dabbc185cf2 100644 --- a/services/storagesync/mgmt/2020-03-01/storagesync/serverendpoints.go +++ b/services/storagesync/mgmt/2020-03-01/storagesync/serverendpoints.go @@ -276,6 +276,7 @@ func (client ServerEndpointsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServerEndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -364,6 +365,7 @@ func (client ServerEndpointsClient) ListBySyncGroup(ctx context.Context, resourc result, err = client.ListBySyncGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServerEndpointsClient", "ListBySyncGroup", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2020-03-01/storagesync/services.go b/services/storagesync/mgmt/2020-03-01/storagesync/services.go index ad11c9db1b02..a73ce1be4aa3 100644 --- a/services/storagesync/mgmt/2020-03-01/storagesync/services.go +++ b/services/storagesync/mgmt/2020-03-01/storagesync/services.go @@ -82,6 +82,7 @@ func (client ServicesClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -342,6 +343,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -426,6 +428,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -503,6 +506,7 @@ func (client ServicesClient) ListBySubscription(ctx context.Context) (result Ser result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.ServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2020-03-01/storagesync/syncgroups.go b/services/storagesync/mgmt/2020-03-01/storagesync/syncgroups.go index aa21068a19a1..363e48e46c74 100644 --- a/services/storagesync/mgmt/2020-03-01/storagesync/syncgroups.go +++ b/services/storagesync/mgmt/2020-03-01/storagesync/syncgroups.go @@ -85,6 +85,7 @@ func (client SyncGroupsClient) Create(ctx context.Context, resourceGroupName str result, err = client.CreateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "Create", resp, "Failure responding to request") + return } return @@ -174,6 +175,7 @@ func (client SyncGroupsClient) Delete(ctx context.Context, resourceGroupName str result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "Delete", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client SyncGroupsClient) Get(ctx context.Context, resourceGroupName string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +349,7 @@ func (client SyncGroupsClient) ListByStorageSyncService(ctx context.Context, res result, err = client.ListByStorageSyncServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.SyncGroupsClient", "ListByStorageSyncService", resp, "Failure responding to request") + return } return diff --git a/services/storagesync/mgmt/2020-03-01/storagesync/workflows.go b/services/storagesync/mgmt/2020-03-01/storagesync/workflows.go index 2ee6d8f48c74..fd31cd03155b 100644 --- a/services/storagesync/mgmt/2020-03-01/storagesync/workflows.go +++ b/services/storagesync/mgmt/2020-03-01/storagesync/workflows.go @@ -84,6 +84,7 @@ func (client WorkflowsClient) Abort(ctx context.Context, resourceGroupName strin result, err = client.AbortResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.WorkflowsClient", "Abort", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client WorkflowsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.WorkflowsClient", "Get", resp, "Failure responding to request") + return } return @@ -256,6 +258,7 @@ func (client WorkflowsClient) ListByStorageSyncService(ctx context.Context, reso result, err = client.ListByStorageSyncServiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storagesync.WorkflowsClient", "ListByStorageSyncService", resp, "Failure responding to request") + return } return diff --git a/services/storsimple1200series/mgmt/2016-10-01/storsimple/accesscontrolrecords.go b/services/storsimple1200series/mgmt/2016-10-01/storsimple/accesscontrolrecords.go index b85d68c29f68..61ede6e1be81 100644 --- a/services/storsimple1200series/mgmt/2016-10-01/storsimple/accesscontrolrecords.go +++ b/services/storsimple1200series/mgmt/2016-10-01/storsimple/accesscontrolrecords.go @@ -255,6 +255,7 @@ func (client AccessControlRecordsClient) Get(ctx context.Context, accessControlR result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.AccessControlRecordsClient", "Get", resp, "Failure responding to request") + return } return @@ -338,6 +339,7 @@ func (client AccessControlRecordsClient) ListByManager(ctx context.Context, reso result, err = client.ListByManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.AccessControlRecordsClient", "ListByManager", resp, "Failure responding to request") + return } return diff --git a/services/storsimple1200series/mgmt/2016-10-01/storsimple/alerts.go b/services/storsimple1200series/mgmt/2016-10-01/storsimple/alerts.go index 298cf8a21622..d078dfcd1195 100644 --- a/services/storsimple1200series/mgmt/2016-10-01/storsimple/alerts.go +++ b/services/storsimple1200series/mgmt/2016-10-01/storsimple/alerts.go @@ -83,6 +83,7 @@ func (client AlertsClient) Clear(ctx context.Context, request ClearAlertRequest, result, err = client.ClearResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.AlertsClient", "Clear", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client AlertsClient) ListByManager(ctx context.Context, resourceGroupName result.al, err = client.ListByManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.AlertsClient", "ListByManager", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -235,6 +237,7 @@ func (client AlertsClient) listByManagerNextResults(ctx context.Context, lastRes result, err = client.ListByManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.AlertsClient", "listByManagerNextResults", resp, "Failure responding to next results request") + return } return } @@ -297,6 +300,7 @@ func (client AlertsClient) SendTestEmail(ctx context.Context, deviceName string, result, err = client.SendTestEmailResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.AlertsClient", "SendTestEmail", resp, "Failure responding to request") + return } return diff --git a/services/storsimple1200series/mgmt/2016-10-01/storsimple/availableprovideroperations.go b/services/storsimple1200series/mgmt/2016-10-01/storsimple/availableprovideroperations.go index 74ba1ef2f264..debf4234c899 100644 --- a/services/storsimple1200series/mgmt/2016-10-01/storsimple/availableprovideroperations.go +++ b/services/storsimple1200series/mgmt/2016-10-01/storsimple/availableprovideroperations.go @@ -72,6 +72,7 @@ func (client AvailableProviderOperationsClient) List(ctx context.Context) (resul result.apo, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.AvailableProviderOperationsClient", "List", resp, "Failure responding to request") + return } if result.apo.hasNextLink() && result.apo.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client AvailableProviderOperationsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.AvailableProviderOperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/storsimple1200series/mgmt/2016-10-01/storsimple/backups.go b/services/storsimple1200series/mgmt/2016-10-01/storsimple/backups.go index 8726ce73629f..fc2dfa43e57d 100644 --- a/services/storsimple1200series/mgmt/2016-10-01/storsimple/backups.go +++ b/services/storsimple1200series/mgmt/2016-10-01/storsimple/backups.go @@ -277,6 +277,7 @@ func (client BackupsClient) ListByDevice(ctx context.Context, deviceName string, result.bl, err = client.ListByDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.BackupsClient", "ListByDevice", resp, "Failure responding to request") + return } if result.bl.hasNextLink() && result.bl.IsEmpty() { err = result.NextWithContext(ctx) @@ -348,6 +349,7 @@ func (client BackupsClient) listByDeviceNextResults(ctx context.Context, lastRes result, err = client.ListByDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.BackupsClient", "listByDeviceNextResults", resp, "Failure responding to next results request") + return } return } @@ -408,6 +410,7 @@ func (client BackupsClient) ListByManager(ctx context.Context, resourceGroupName result.bl, err = client.ListByManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.BackupsClient", "ListByManager", resp, "Failure responding to request") + return } if result.bl.hasNextLink() && result.bl.IsEmpty() { err = result.NextWithContext(ctx) @@ -475,6 +478,7 @@ func (client BackupsClient) listByManagerNextResults(ctx context.Context, lastRe result, err = client.ListByManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.BackupsClient", "listByManagerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/storsimple1200series/mgmt/2016-10-01/storsimple/backupschedulegroups.go b/services/storsimple1200series/mgmt/2016-10-01/storsimple/backupschedulegroups.go index 9b84fcc976f2..e7fe4ce8cb68 100644 --- a/services/storsimple1200series/mgmt/2016-10-01/storsimple/backupschedulegroups.go +++ b/services/storsimple1200series/mgmt/2016-10-01/storsimple/backupschedulegroups.go @@ -270,6 +270,7 @@ func (client BackupScheduleGroupsClient) Get(ctx context.Context, deviceName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.BackupScheduleGroupsClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +356,7 @@ func (client BackupScheduleGroupsClient) ListByDevice(ctx context.Context, devic result, err = client.ListByDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.BackupScheduleGroupsClient", "ListByDevice", resp, "Failure responding to request") + return } return diff --git a/services/storsimple1200series/mgmt/2016-10-01/storsimple/chapsettings.go b/services/storsimple1200series/mgmt/2016-10-01/storsimple/chapsettings.go index 08834ccef1b6..293b0c1e00e5 100644 --- a/services/storsimple1200series/mgmt/2016-10-01/storsimple/chapsettings.go +++ b/services/storsimple1200series/mgmt/2016-10-01/storsimple/chapsettings.go @@ -261,6 +261,7 @@ func (client ChapSettingsClient) Get(ctx context.Context, deviceName string, cha result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ChapSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -346,6 +347,7 @@ func (client ChapSettingsClient) ListByDevice(ctx context.Context, deviceName st result, err = client.ListByDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ChapSettingsClient", "ListByDevice", resp, "Failure responding to request") + return } return diff --git a/services/storsimple1200series/mgmt/2016-10-01/storsimple/devices.go b/services/storsimple1200series/mgmt/2016-10-01/storsimple/devices.go index 8e27efe5280c..6506e331af4a 100644 --- a/services/storsimple1200series/mgmt/2016-10-01/storsimple/devices.go +++ b/services/storsimple1200series/mgmt/2016-10-01/storsimple/devices.go @@ -598,6 +598,7 @@ func (client DevicesClient) Get(ctx context.Context, deviceName string, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.DevicesClient", "Get", resp, "Failure responding to request") + return } return @@ -685,6 +686,7 @@ func (client DevicesClient) GetAlertSettings(ctx context.Context, deviceName str result, err = client.GetAlertSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.DevicesClient", "GetAlertSettings", resp, "Failure responding to request") + return } return @@ -769,6 +771,7 @@ func (client DevicesClient) GetNetworkSettings(ctx context.Context, deviceName s result, err = client.GetNetworkSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.DevicesClient", "GetNetworkSettings", resp, "Failure responding to request") + return } return @@ -853,6 +856,7 @@ func (client DevicesClient) GetTimeSettings(ctx context.Context, deviceName stri result, err = client.GetTimeSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.DevicesClient", "GetTimeSettings", resp, "Failure responding to request") + return } return @@ -937,6 +941,7 @@ func (client DevicesClient) GetUpdateSummary(ctx context.Context, deviceName str result, err = client.GetUpdateSummaryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.DevicesClient", "GetUpdateSummary", resp, "Failure responding to request") + return } return @@ -1104,6 +1109,7 @@ func (client DevicesClient) ListByManager(ctx context.Context, resourceGroupName result, err = client.ListByManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.DevicesClient", "ListByManager", resp, "Failure responding to request") + return } return @@ -1191,6 +1197,7 @@ func (client DevicesClient) ListFailoverTarget(ctx context.Context, deviceName s result, err = client.ListFailoverTargetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.DevicesClient", "ListFailoverTarget", resp, "Failure responding to request") + return } return @@ -1278,6 +1285,7 @@ func (client DevicesClient) ListMetricDefinition(ctx context.Context, deviceName result, err = client.ListMetricDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.DevicesClient", "ListMetricDefinition", resp, "Failure responding to request") + return } return @@ -1363,6 +1371,7 @@ func (client DevicesClient) ListMetrics(ctx context.Context, deviceName string, result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.DevicesClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/storsimple1200series/mgmt/2016-10-01/storsimple/fileservers.go b/services/storsimple1200series/mgmt/2016-10-01/storsimple/fileservers.go index 1451c0cd28eb..b06c495b7fad 100644 --- a/services/storsimple1200series/mgmt/2016-10-01/storsimple/fileservers.go +++ b/services/storsimple1200series/mgmt/2016-10-01/storsimple/fileservers.go @@ -347,6 +347,7 @@ func (client FileServersClient) Get(ctx context.Context, deviceName string, file result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.FileServersClient", "Get", resp, "Failure responding to request") + return } return @@ -432,6 +433,7 @@ func (client FileServersClient) ListByDevice(ctx context.Context, deviceName str result, err = client.ListByDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.FileServersClient", "ListByDevice", resp, "Failure responding to request") + return } return @@ -515,6 +517,7 @@ func (client FileServersClient) ListByManager(ctx context.Context, resourceGroup result, err = client.ListByManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.FileServersClient", "ListByManager", resp, "Failure responding to request") + return } return @@ -599,6 +602,7 @@ func (client FileServersClient) ListMetricDefinition(ctx context.Context, device result, err = client.ListMetricDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.FileServersClient", "ListMetricDefinition", resp, "Failure responding to request") + return } return @@ -686,6 +690,7 @@ func (client FileServersClient) ListMetrics(ctx context.Context, deviceName stri result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.FileServersClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/storsimple1200series/mgmt/2016-10-01/storsimple/fileshares.go b/services/storsimple1200series/mgmt/2016-10-01/storsimple/fileshares.go index 248b0edeea9f..34314a865431 100644 --- a/services/storsimple1200series/mgmt/2016-10-01/storsimple/fileshares.go +++ b/services/storsimple1200series/mgmt/2016-10-01/storsimple/fileshares.go @@ -266,6 +266,7 @@ func (client FileSharesClient) Get(ctx context.Context, deviceName string, fileS result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.FileSharesClient", "Get", resp, "Failure responding to request") + return } return @@ -352,6 +353,7 @@ func (client FileSharesClient) ListByDevice(ctx context.Context, deviceName stri result, err = client.ListByDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.FileSharesClient", "ListByDevice", resp, "Failure responding to request") + return } return @@ -437,6 +439,7 @@ func (client FileSharesClient) ListByFileServer(ctx context.Context, deviceName result, err = client.ListByFileServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.FileSharesClient", "ListByFileServer", resp, "Failure responding to request") + return } return @@ -524,6 +527,7 @@ func (client FileSharesClient) ListMetricDefinition(ctx context.Context, deviceN result, err = client.ListMetricDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.FileSharesClient", "ListMetricDefinition", resp, "Failure responding to request") + return } return @@ -613,6 +617,7 @@ func (client FileSharesClient) ListMetrics(ctx context.Context, deviceName strin result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.FileSharesClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/storsimple1200series/mgmt/2016-10-01/storsimple/iscsidisks.go b/services/storsimple1200series/mgmt/2016-10-01/storsimple/iscsidisks.go index a7b0cc5a44ab..9a3ef94b814f 100644 --- a/services/storsimple1200series/mgmt/2016-10-01/storsimple/iscsidisks.go +++ b/services/storsimple1200series/mgmt/2016-10-01/storsimple/iscsidisks.go @@ -266,6 +266,7 @@ func (client IscsiDisksClient) Get(ctx context.Context, deviceName string, iscsi result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.IscsiDisksClient", "Get", resp, "Failure responding to request") + return } return @@ -352,6 +353,7 @@ func (client IscsiDisksClient) ListByDevice(ctx context.Context, deviceName stri result, err = client.ListByDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.IscsiDisksClient", "ListByDevice", resp, "Failure responding to request") + return } return @@ -437,6 +439,7 @@ func (client IscsiDisksClient) ListByIscsiServer(ctx context.Context, deviceName result, err = client.ListByIscsiServerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.IscsiDisksClient", "ListByIscsiServer", resp, "Failure responding to request") + return } return @@ -524,6 +527,7 @@ func (client IscsiDisksClient) ListMetricDefinition(ctx context.Context, deviceN result, err = client.ListMetricDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.IscsiDisksClient", "ListMetricDefinition", resp, "Failure responding to request") + return } return @@ -613,6 +617,7 @@ func (client IscsiDisksClient) ListMetrics(ctx context.Context, deviceName strin result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.IscsiDisksClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/storsimple1200series/mgmt/2016-10-01/storsimple/iscsiservers.go b/services/storsimple1200series/mgmt/2016-10-01/storsimple/iscsiservers.go index 1c9b3be7dcae..f654c51f49ce 100644 --- a/services/storsimple1200series/mgmt/2016-10-01/storsimple/iscsiservers.go +++ b/services/storsimple1200series/mgmt/2016-10-01/storsimple/iscsiservers.go @@ -346,6 +346,7 @@ func (client IscsiServersClient) Get(ctx context.Context, deviceName string, isc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.IscsiServersClient", "Get", resp, "Failure responding to request") + return } return @@ -431,6 +432,7 @@ func (client IscsiServersClient) ListByDevice(ctx context.Context, deviceName st result, err = client.ListByDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.IscsiServersClient", "ListByDevice", resp, "Failure responding to request") + return } return @@ -514,6 +516,7 @@ func (client IscsiServersClient) ListByManager(ctx context.Context, resourceGrou result, err = client.ListByManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.IscsiServersClient", "ListByManager", resp, "Failure responding to request") + return } return @@ -598,6 +601,7 @@ func (client IscsiServersClient) ListMetricDefinition(ctx context.Context, devic result, err = client.ListMetricDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.IscsiServersClient", "ListMetricDefinition", resp, "Failure responding to request") + return } return @@ -685,6 +689,7 @@ func (client IscsiServersClient) ListMetrics(ctx context.Context, deviceName str result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.IscsiServersClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/storsimple1200series/mgmt/2016-10-01/storsimple/jobs.go b/services/storsimple1200series/mgmt/2016-10-01/storsimple/jobs.go index ade2fc16766c..592466647e7e 100644 --- a/services/storsimple1200series/mgmt/2016-10-01/storsimple/jobs.go +++ b/services/storsimple1200series/mgmt/2016-10-01/storsimple/jobs.go @@ -82,6 +82,7 @@ func (client JobsClient) Get(ctx context.Context, deviceName string, jobName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.JobsClient", "Get", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client JobsClient) ListByDevice(ctx context.Context, deviceName string, re result.jl, err = client.ListByDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.JobsClient", "ListByDevice", resp, "Failure responding to request") + return } if result.jl.hasNextLink() && result.jl.IsEmpty() { err = result.NextWithContext(ctx) @@ -237,6 +239,7 @@ func (client JobsClient) listByDeviceNextResults(ctx context.Context, lastResult result, err = client.ListByDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.JobsClient", "listByDeviceNextResults", resp, "Failure responding to next results request") + return } return } @@ -297,6 +300,7 @@ func (client JobsClient) ListByManager(ctx context.Context, resourceGroupName st result.jl, err = client.ListByManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.JobsClient", "ListByManager", resp, "Failure responding to request") + return } if result.jl.hasNextLink() && result.jl.IsEmpty() { err = result.NextWithContext(ctx) @@ -364,6 +368,7 @@ func (client JobsClient) listByManagerNextResults(ctx context.Context, lastResul result, err = client.ListByManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.JobsClient", "listByManagerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/storsimple1200series/mgmt/2016-10-01/storsimple/managers.go b/services/storsimple1200series/mgmt/2016-10-01/storsimple/managers.go index c4b2b0af8912..31b61c7c511b 100644 --- a/services/storsimple1200series/mgmt/2016-10-01/storsimple/managers.go +++ b/services/storsimple1200series/mgmt/2016-10-01/storsimple/managers.go @@ -86,6 +86,7 @@ func (client ManagersClient) CreateExtendedInfo(ctx context.Context, managerExte result, err = client.CreateExtendedInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "CreateExtendedInfo", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client ManagersClient) CreateOrUpdate(ctx context.Context, manager Manager result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client ManagersClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "Delete", resp, "Failure responding to request") + return } return @@ -341,6 +344,7 @@ func (client ManagersClient) DeleteExtendedInfo(ctx context.Context, resourceGro result, err = client.DeleteExtendedInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "DeleteExtendedInfo", resp, "Failure responding to request") + return } return @@ -422,6 +426,7 @@ func (client ManagersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "Get", resp, "Failure responding to request") + return } return @@ -504,6 +509,7 @@ func (client ManagersClient) GetEncryptionKey(ctx context.Context, resourceGroup result, err = client.GetEncryptionKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "GetEncryptionKey", resp, "Failure responding to request") + return } return @@ -586,6 +592,7 @@ func (client ManagersClient) GetEncryptionSettings(ctx context.Context, resource result, err = client.GetEncryptionSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "GetEncryptionSettings", resp, "Failure responding to request") + return } return @@ -668,6 +675,7 @@ func (client ManagersClient) GetExtendedInfo(ctx context.Context, resourceGroupN result, err = client.GetExtendedInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "GetExtendedInfo", resp, "Failure responding to request") + return } return @@ -740,6 +748,7 @@ func (client ManagersClient) List(ctx context.Context) (result ManagerList, err result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "List", resp, "Failure responding to request") + return } return @@ -812,6 +821,7 @@ func (client ManagersClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -893,6 +903,7 @@ func (client ManagersClient) ListMetricDefinition(ctx context.Context, resourceG result, err = client.ListMetricDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "ListMetricDefinition", resp, "Failure responding to request") + return } return @@ -976,6 +987,7 @@ func (client ManagersClient) ListMetrics(ctx context.Context, resourceGroupName result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -1062,6 +1074,7 @@ func (client ManagersClient) Update(ctx context.Context, parameters ManagerPatch result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "Update", resp, "Failure responding to request") + return } return @@ -1148,6 +1161,7 @@ func (client ManagersClient) UpdateExtendedInfo(ctx context.Context, managerExte result, err = client.UpdateExtendedInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "UpdateExtendedInfo", resp, "Failure responding to request") + return } return @@ -1239,6 +1253,7 @@ func (client ManagersClient) UploadRegistrationCertificate(ctx context.Context, result, err = client.UploadRegistrationCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "UploadRegistrationCertificate", resp, "Failure responding to request") + return } return diff --git a/services/storsimple1200series/mgmt/2016-10-01/storsimple/storageaccountcredentials.go b/services/storsimple1200series/mgmt/2016-10-01/storsimple/storageaccountcredentials.go index 853e6658145b..93adaebbfef0 100644 --- a/services/storsimple1200series/mgmt/2016-10-01/storsimple/storageaccountcredentials.go +++ b/services/storsimple1200series/mgmt/2016-10-01/storsimple/storageaccountcredentials.go @@ -259,6 +259,7 @@ func (client StorageAccountCredentialsClient) Get(ctx context.Context, credentia result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.StorageAccountCredentialsClient", "Get", resp, "Failure responding to request") + return } return @@ -342,6 +343,7 @@ func (client StorageAccountCredentialsClient) ListByManager(ctx context.Context, result, err = client.ListByManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.StorageAccountCredentialsClient", "ListByManager", resp, "Failure responding to request") + return } return diff --git a/services/storsimple1200series/mgmt/2016-10-01/storsimple/storagedomains.go b/services/storsimple1200series/mgmt/2016-10-01/storsimple/storagedomains.go index 64c3efea75fd..7f95a5a963c4 100644 --- a/services/storsimple1200series/mgmt/2016-10-01/storsimple/storagedomains.go +++ b/services/storsimple1200series/mgmt/2016-10-01/storsimple/storagedomains.go @@ -257,6 +257,7 @@ func (client StorageDomainsClient) Get(ctx context.Context, storageDomainName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.StorageDomainsClient", "Get", resp, "Failure responding to request") + return } return @@ -340,6 +341,7 @@ func (client StorageDomainsClient) ListByManager(ctx context.Context, resourceGr result, err = client.ListByManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.StorageDomainsClient", "ListByManager", resp, "Failure responding to request") + return } return diff --git a/services/storsimple8000series/mgmt/2017-06-01/storsimple/accesscontrolrecords.go b/services/storsimple8000series/mgmt/2017-06-01/storsimple/accesscontrolrecords.go index ac8e0b9f8060..bc76282a1ac7 100644 --- a/services/storsimple8000series/mgmt/2017-06-01/storsimple/accesscontrolrecords.go +++ b/services/storsimple8000series/mgmt/2017-06-01/storsimple/accesscontrolrecords.go @@ -255,6 +255,7 @@ func (client AccessControlRecordsClient) Get(ctx context.Context, accessControlR result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.AccessControlRecordsClient", "Get", resp, "Failure responding to request") + return } return @@ -338,6 +339,7 @@ func (client AccessControlRecordsClient) ListByManager(ctx context.Context, reso result, err = client.ListByManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.AccessControlRecordsClient", "ListByManager", resp, "Failure responding to request") + return } return diff --git a/services/storsimple8000series/mgmt/2017-06-01/storsimple/alerts.go b/services/storsimple8000series/mgmt/2017-06-01/storsimple/alerts.go index a7b64ff3370f..e2eeb7fe2499 100644 --- a/services/storsimple8000series/mgmt/2017-06-01/storsimple/alerts.go +++ b/services/storsimple8000series/mgmt/2017-06-01/storsimple/alerts.go @@ -83,6 +83,7 @@ func (client AlertsClient) Clear(ctx context.Context, parameters ClearAlertReque result, err = client.ClearResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.AlertsClient", "Clear", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client AlertsClient) ListByManager(ctx context.Context, resourceGroupName result.al, err = client.ListByManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.AlertsClient", "ListByManager", resp, "Failure responding to request") + return } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) @@ -235,6 +237,7 @@ func (client AlertsClient) listByManagerNextResults(ctx context.Context, lastRes result, err = client.ListByManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.AlertsClient", "listByManagerNextResults", resp, "Failure responding to next results request") + return } return } @@ -297,6 +300,7 @@ func (client AlertsClient) SendTestEmail(ctx context.Context, deviceName string, result, err = client.SendTestEmailResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.AlertsClient", "SendTestEmail", resp, "Failure responding to request") + return } return diff --git a/services/storsimple8000series/mgmt/2017-06-01/storsimple/backuppolicies.go b/services/storsimple8000series/mgmt/2017-06-01/storsimple/backuppolicies.go index 3f160726b7c7..b64a74813266 100644 --- a/services/storsimple8000series/mgmt/2017-06-01/storsimple/backuppolicies.go +++ b/services/storsimple8000series/mgmt/2017-06-01/storsimple/backuppolicies.go @@ -346,6 +346,7 @@ func (client BackupPoliciesClient) Get(ctx context.Context, deviceName string, b result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.BackupPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -431,6 +432,7 @@ func (client BackupPoliciesClient) ListByDevice(ctx context.Context, deviceName result, err = client.ListByDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.BackupPoliciesClient", "ListByDevice", resp, "Failure responding to request") + return } return diff --git a/services/storsimple8000series/mgmt/2017-06-01/storsimple/backups.go b/services/storsimple8000series/mgmt/2017-06-01/storsimple/backups.go index f3fc3df178b7..cc7392565de1 100644 --- a/services/storsimple8000series/mgmt/2017-06-01/storsimple/backups.go +++ b/services/storsimple8000series/mgmt/2017-06-01/storsimple/backups.go @@ -270,6 +270,7 @@ func (client BackupsClient) ListByDevice(ctx context.Context, deviceName string, result.bl, err = client.ListByDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.BackupsClient", "ListByDevice", resp, "Failure responding to request") + return } if result.bl.hasNextLink() && result.bl.IsEmpty() { err = result.NextWithContext(ctx) @@ -338,6 +339,7 @@ func (client BackupsClient) listByDeviceNextResults(ctx context.Context, lastRes result, err = client.ListByDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.BackupsClient", "listByDeviceNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/storsimple8000series/mgmt/2017-06-01/storsimple/backupschedules.go b/services/storsimple8000series/mgmt/2017-06-01/storsimple/backupschedules.go index 3feede7f0e90..84764803a44e 100644 --- a/services/storsimple8000series/mgmt/2017-06-01/storsimple/backupschedules.go +++ b/services/storsimple8000series/mgmt/2017-06-01/storsimple/backupschedules.go @@ -268,6 +268,7 @@ func (client BackupSchedulesClient) Get(ctx context.Context, deviceName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.BackupSchedulesClient", "Get", resp, "Failure responding to request") + return } return @@ -355,6 +356,7 @@ func (client BackupSchedulesClient) ListByBackupPolicy(ctx context.Context, devi result, err = client.ListByBackupPolicyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.BackupSchedulesClient", "ListByBackupPolicy", resp, "Failure responding to request") + return } return diff --git a/services/storsimple8000series/mgmt/2017-06-01/storsimple/bandwidthsettings.go b/services/storsimple8000series/mgmt/2017-06-01/storsimple/bandwidthsettings.go index 308696e7d324..1a54867ef53d 100644 --- a/services/storsimple8000series/mgmt/2017-06-01/storsimple/bandwidthsettings.go +++ b/services/storsimple8000series/mgmt/2017-06-01/storsimple/bandwidthsettings.go @@ -255,6 +255,7 @@ func (client BandwidthSettingsClient) Get(ctx context.Context, bandwidthSettingN result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.BandwidthSettingsClient", "Get", resp, "Failure responding to request") + return } return @@ -338,6 +339,7 @@ func (client BandwidthSettingsClient) ListByManager(ctx context.Context, resourc result, err = client.ListByManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.BandwidthSettingsClient", "ListByManager", resp, "Failure responding to request") + return } return diff --git a/services/storsimple8000series/mgmt/2017-06-01/storsimple/cloudappliances.go b/services/storsimple8000series/mgmt/2017-06-01/storsimple/cloudappliances.go index 59d4dc255e6b..04772a397656 100644 --- a/services/storsimple8000series/mgmt/2017-06-01/storsimple/cloudappliances.go +++ b/services/storsimple8000series/mgmt/2017-06-01/storsimple/cloudappliances.go @@ -80,6 +80,7 @@ func (client CloudAppliancesClient) ListSupportedConfigurations(ctx context.Cont result, err = client.ListSupportedConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.CloudAppliancesClient", "ListSupportedConfigurations", resp, "Failure responding to request") + return } return diff --git a/services/storsimple8000series/mgmt/2017-06-01/storsimple/devices.go b/services/storsimple8000series/mgmt/2017-06-01/storsimple/devices.go index 1963c2c4b197..d3d1c919deed 100644 --- a/services/storsimple8000series/mgmt/2017-06-01/storsimple/devices.go +++ b/services/storsimple8000series/mgmt/2017-06-01/storsimple/devices.go @@ -81,6 +81,7 @@ func (client DevicesClient) AuthorizeForServiceEncryptionKeyRollover(ctx context result, err = client.AuthorizeForServiceEncryptionKeyRolloverResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.DevicesClient", "AuthorizeForServiceEncryptionKeyRollover", resp, "Failure responding to request") + return } return @@ -510,6 +511,7 @@ func (client DevicesClient) Get(ctx context.Context, deviceName string, resource result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.DevicesClient", "Get", resp, "Failure responding to request") + return } return @@ -597,6 +599,7 @@ func (client DevicesClient) GetUpdateSummary(ctx context.Context, deviceName str result, err = client.GetUpdateSummaryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.DevicesClient", "GetUpdateSummary", resp, "Failure responding to request") + return } return @@ -766,6 +769,7 @@ func (client DevicesClient) ListByManager(ctx context.Context, resourceGroupName result, err = client.ListByManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.DevicesClient", "ListByManager", resp, "Failure responding to request") + return } return @@ -854,6 +858,7 @@ func (client DevicesClient) ListFailoverSets(ctx context.Context, deviceName str result, err = client.ListFailoverSetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.DevicesClient", "ListFailoverSets", resp, "Failure responding to request") + return } return @@ -940,6 +945,7 @@ func (client DevicesClient) ListFailoverTargets(ctx context.Context, sourceDevic result, err = client.ListFailoverTargetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.DevicesClient", "ListFailoverTargets", resp, "Failure responding to request") + return } return @@ -1026,6 +1032,7 @@ func (client DevicesClient) ListMetricDefinition(ctx context.Context, deviceName result, err = client.ListMetricDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.DevicesClient", "ListMetricDefinition", resp, "Failure responding to request") + return } return @@ -1111,6 +1118,7 @@ func (client DevicesClient) ListMetrics(ctx context.Context, deviceName string, result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.DevicesClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -1280,6 +1288,7 @@ func (client DevicesClient) Update(ctx context.Context, deviceName string, param result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.DevicesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/storsimple8000series/mgmt/2017-06-01/storsimple/devicesettings.go b/services/storsimple8000series/mgmt/2017-06-01/storsimple/devicesettings.go index 12b48fa2d5fb..b76a7972a979 100644 --- a/services/storsimple8000series/mgmt/2017-06-01/storsimple/devicesettings.go +++ b/services/storsimple8000series/mgmt/2017-06-01/storsimple/devicesettings.go @@ -260,6 +260,7 @@ func (client DeviceSettingsClient) GetAlertSettings(ctx context.Context, deviceN result, err = client.GetAlertSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.DeviceSettingsClient", "GetAlertSettings", resp, "Failure responding to request") + return } return @@ -344,6 +345,7 @@ func (client DeviceSettingsClient) GetNetworkSettings(ctx context.Context, devic result, err = client.GetNetworkSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.DeviceSettingsClient", "GetNetworkSettings", resp, "Failure responding to request") + return } return @@ -428,6 +430,7 @@ func (client DeviceSettingsClient) GetSecuritySettings(ctx context.Context, devi result, err = client.GetSecuritySettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.DeviceSettingsClient", "GetSecuritySettings", resp, "Failure responding to request") + return } return @@ -512,6 +515,7 @@ func (client DeviceSettingsClient) GetTimeSettings(ctx context.Context, deviceNa result, err = client.GetTimeSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.DeviceSettingsClient", "GetTimeSettings", resp, "Failure responding to request") + return } return diff --git a/services/storsimple8000series/mgmt/2017-06-01/storsimple/hardwarecomponentgroups.go b/services/storsimple8000series/mgmt/2017-06-01/storsimple/hardwarecomponentgroups.go index 8e13739caecb..e29f51e3b3f0 100644 --- a/services/storsimple8000series/mgmt/2017-06-01/storsimple/hardwarecomponentgroups.go +++ b/services/storsimple8000series/mgmt/2017-06-01/storsimple/hardwarecomponentgroups.go @@ -172,6 +172,7 @@ func (client HardwareComponentGroupsClient) ListByDevice(ctx context.Context, de result, err = client.ListByDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.HardwareComponentGroupsClient", "ListByDevice", resp, "Failure responding to request") + return } return diff --git a/services/storsimple8000series/mgmt/2017-06-01/storsimple/jobs.go b/services/storsimple8000series/mgmt/2017-06-01/storsimple/jobs.go index db39a873212f..3ca8d6071b71 100644 --- a/services/storsimple8000series/mgmt/2017-06-01/storsimple/jobs.go +++ b/services/storsimple8000series/mgmt/2017-06-01/storsimple/jobs.go @@ -167,6 +167,7 @@ func (client JobsClient) Get(ctx context.Context, deviceName string, jobName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.JobsClient", "Get", resp, "Failure responding to request") + return } return @@ -255,6 +256,7 @@ func (client JobsClient) ListByDevice(ctx context.Context, deviceName string, re result.jl, err = client.ListByDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.JobsClient", "ListByDevice", resp, "Failure responding to request") + return } if result.jl.hasNextLink() && result.jl.IsEmpty() { err = result.NextWithContext(ctx) @@ -323,6 +325,7 @@ func (client JobsClient) listByDeviceNextResults(ctx context.Context, lastResult result, err = client.ListByDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.JobsClient", "listByDeviceNextResults", resp, "Failure responding to next results request") + return } return } @@ -384,6 +387,7 @@ func (client JobsClient) ListByManager(ctx context.Context, resourceGroupName st result.jl, err = client.ListByManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.JobsClient", "ListByManager", resp, "Failure responding to request") + return } if result.jl.hasNextLink() && result.jl.IsEmpty() { err = result.NextWithContext(ctx) @@ -451,6 +455,7 @@ func (client JobsClient) listByManagerNextResults(ctx context.Context, lastResul result, err = client.ListByManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.JobsClient", "listByManagerNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/storsimple8000series/mgmt/2017-06-01/storsimple/managers.go b/services/storsimple8000series/mgmt/2017-06-01/storsimple/managers.go index fd34cf763d88..44bb4d89df3e 100644 --- a/services/storsimple8000series/mgmt/2017-06-01/storsimple/managers.go +++ b/services/storsimple8000series/mgmt/2017-06-01/storsimple/managers.go @@ -86,6 +86,7 @@ func (client ManagersClient) CreateExtendedInfo(ctx context.Context, parameters result, err = client.CreateExtendedInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "CreateExtendedInfo", resp, "Failure responding to request") + return } return @@ -176,6 +177,7 @@ func (client ManagersClient) CreateOrUpdate(ctx context.Context, parameters Mana result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -260,6 +262,7 @@ func (client ManagersClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "Delete", resp, "Failure responding to request") + return } return @@ -341,6 +344,7 @@ func (client ManagersClient) DeleteExtendedInfo(ctx context.Context, resourceGro result, err = client.DeleteExtendedInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "DeleteExtendedInfo", resp, "Failure responding to request") + return } return @@ -422,6 +426,7 @@ func (client ManagersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "Get", resp, "Failure responding to request") + return } return @@ -504,6 +509,7 @@ func (client ManagersClient) GetActivationKey(ctx context.Context, resourceGroup result, err = client.GetActivationKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "GetActivationKey", resp, "Failure responding to request") + return } return @@ -587,6 +593,7 @@ func (client ManagersClient) GetDevicePublicEncryptionKey(ctx context.Context, d result, err = client.GetDevicePublicEncryptionKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "GetDevicePublicEncryptionKey", resp, "Failure responding to request") + return } return @@ -670,6 +677,7 @@ func (client ManagersClient) GetEncryptionSettings(ctx context.Context, resource result, err = client.GetEncryptionSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "GetEncryptionSettings", resp, "Failure responding to request") + return } return @@ -752,6 +760,7 @@ func (client ManagersClient) GetExtendedInfo(ctx context.Context, resourceGroupN result, err = client.GetExtendedInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "GetExtendedInfo", resp, "Failure responding to request") + return } return @@ -834,6 +843,7 @@ func (client ManagersClient) GetPublicEncryptionKey(ctx context.Context, resourc result, err = client.GetPublicEncryptionKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "GetPublicEncryptionKey", resp, "Failure responding to request") + return } return @@ -906,6 +916,7 @@ func (client ManagersClient) List(ctx context.Context) (result ManagerList, err result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "List", resp, "Failure responding to request") + return } return @@ -978,6 +989,7 @@ func (client ManagersClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -1060,6 +1072,7 @@ func (client ManagersClient) ListFeatureSupportStatus(ctx context.Context, resou result, err = client.ListFeatureSupportStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "ListFeatureSupportStatus", resp, "Failure responding to request") + return } return @@ -1145,6 +1158,7 @@ func (client ManagersClient) ListMetricDefinition(ctx context.Context, resourceG result, err = client.ListMetricDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "ListMetricDefinition", resp, "Failure responding to request") + return } return @@ -1228,6 +1242,7 @@ func (client ManagersClient) ListMetrics(ctx context.Context, resourceGroupName result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "ListMetrics", resp, "Failure responding to request") + return } return @@ -1311,6 +1326,7 @@ func (client ManagersClient) RegenerateActivationKey(ctx context.Context, resour result, err = client.RegenerateActivationKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "RegenerateActivationKey", resp, "Failure responding to request") + return } return @@ -1394,6 +1410,7 @@ func (client ManagersClient) Update(ctx context.Context, parameters ManagerPatch result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "Update", resp, "Failure responding to request") + return } return @@ -1480,6 +1497,7 @@ func (client ManagersClient) UpdateExtendedInfo(ctx context.Context, parameters result, err = client.UpdateExtendedInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.ManagersClient", "UpdateExtendedInfo", resp, "Failure responding to request") + return } return diff --git a/services/storsimple8000series/mgmt/2017-06-01/storsimple/operations.go b/services/storsimple8000series/mgmt/2017-06-01/storsimple/operations.go index b3d854f815ce..3e91f9aefdd8 100644 --- a/services/storsimple8000series/mgmt/2017-06-01/storsimple/operations.go +++ b/services/storsimple8000series/mgmt/2017-06-01/storsimple/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result AvailableProvid result.apol, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.OperationsClient", "List", resp, "Failure responding to request") + return } if result.apol.hasNextLink() && result.apol.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/storsimple8000series/mgmt/2017-06-01/storsimple/storageaccountcredentials.go b/services/storsimple8000series/mgmt/2017-06-01/storsimple/storageaccountcredentials.go index 0c98bdac99b9..e1f09b313a93 100644 --- a/services/storsimple8000series/mgmt/2017-06-01/storsimple/storageaccountcredentials.go +++ b/services/storsimple8000series/mgmt/2017-06-01/storsimple/storageaccountcredentials.go @@ -258,6 +258,7 @@ func (client StorageAccountCredentialsClient) Get(ctx context.Context, storageAc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.StorageAccountCredentialsClient", "Get", resp, "Failure responding to request") + return } return @@ -341,6 +342,7 @@ func (client StorageAccountCredentialsClient) ListByManager(ctx context.Context, result, err = client.ListByManagerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.StorageAccountCredentialsClient", "ListByManager", resp, "Failure responding to request") + return } return diff --git a/services/storsimple8000series/mgmt/2017-06-01/storsimple/volumecontainers.go b/services/storsimple8000series/mgmt/2017-06-01/storsimple/volumecontainers.go index 8718b1324247..717ab9d81d19 100644 --- a/services/storsimple8000series/mgmt/2017-06-01/storsimple/volumecontainers.go +++ b/services/storsimple8000series/mgmt/2017-06-01/storsimple/volumecontainers.go @@ -263,6 +263,7 @@ func (client VolumeContainersClient) Get(ctx context.Context, deviceName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.VolumeContainersClient", "Get", resp, "Failure responding to request") + return } return @@ -348,6 +349,7 @@ func (client VolumeContainersClient) ListByDevice(ctx context.Context, deviceNam result, err = client.ListByDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.VolumeContainersClient", "ListByDevice", resp, "Failure responding to request") + return } return @@ -433,6 +435,7 @@ func (client VolumeContainersClient) ListMetricDefinition(ctx context.Context, d result, err = client.ListMetricDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.VolumeContainersClient", "ListMetricDefinition", resp, "Failure responding to request") + return } return @@ -520,6 +523,7 @@ func (client VolumeContainersClient) ListMetrics(ctx context.Context, deviceName result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.VolumeContainersClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/storsimple8000series/mgmt/2017-06-01/storsimple/volumes.go b/services/storsimple8000series/mgmt/2017-06-01/storsimple/volumes.go index cd0cfc4fbf05..bc18fa8d4433 100644 --- a/services/storsimple8000series/mgmt/2017-06-01/storsimple/volumes.go +++ b/services/storsimple8000series/mgmt/2017-06-01/storsimple/volumes.go @@ -266,6 +266,7 @@ func (client VolumesClient) Get(ctx context.Context, deviceName string, volumeCo result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.VolumesClient", "Get", resp, "Failure responding to request") + return } return @@ -352,6 +353,7 @@ func (client VolumesClient) ListByDevice(ctx context.Context, deviceName string, result, err = client.ListByDeviceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.VolumesClient", "ListByDevice", resp, "Failure responding to request") + return } return @@ -437,6 +439,7 @@ func (client VolumesClient) ListByVolumeContainer(ctx context.Context, deviceNam result, err = client.ListByVolumeContainerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.VolumesClient", "ListByVolumeContainer", resp, "Failure responding to request") + return } return @@ -524,6 +527,7 @@ func (client VolumesClient) ListMetricDefinition(ctx context.Context, deviceName result, err = client.ListMetricDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.VolumesClient", "ListMetricDefinition", resp, "Failure responding to request") + return } return @@ -613,6 +617,7 @@ func (client VolumesClient) ListMetrics(ctx context.Context, deviceName string, result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "storsimple.VolumesClient", "ListMetrics", resp, "Failure responding to request") + return } return diff --git a/services/streamanalytics/mgmt/2016-03-01/streamanalytics/functions.go b/services/streamanalytics/mgmt/2016-03-01/streamanalytics/functions.go index 5e82b980ec78..7edc74ab355e 100644 --- a/services/streamanalytics/mgmt/2016-03-01/streamanalytics/functions.go +++ b/services/streamanalytics/mgmt/2016-03-01/streamanalytics/functions.go @@ -80,6 +80,7 @@ func (client FunctionsClient) CreateOrReplace(ctx context.Context, function Func result, err = client.CreateOrReplaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.FunctionsClient", "CreateOrReplace", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client FunctionsClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.FunctionsClient", "Delete", resp, "Failure responding to request") + return } return @@ -245,6 +247,7 @@ func (client FunctionsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.FunctionsClient", "Get", resp, "Failure responding to request") + return } return @@ -326,6 +329,7 @@ func (client FunctionsClient) ListByStreamingJob(ctx context.Context, resourceGr result.flr, err = client.ListByStreamingJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.FunctionsClient", "ListByStreamingJob", resp, "Failure responding to request") + return } if result.flr.hasNextLink() && result.flr.IsEmpty() { err = result.NextWithContext(ctx) @@ -393,6 +397,7 @@ func (client FunctionsClient) listByStreamingJobNextResults(ctx context.Context, result, err = client.ListByStreamingJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.FunctionsClient", "listByStreamingJobNextResults", resp, "Failure responding to next results request") + return } return } @@ -448,6 +453,7 @@ func (client FunctionsClient) RetrieveDefaultDefinition(ctx context.Context, res result, err = client.RetrieveDefaultDefinitionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.FunctionsClient", "RetrieveDefaultDefinition", resp, "Failure responding to request") + return } return @@ -627,6 +633,7 @@ func (client FunctionsClient) Update(ctx context.Context, function Function, res result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.FunctionsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/streamanalytics/mgmt/2016-03-01/streamanalytics/inputs.go b/services/streamanalytics/mgmt/2016-03-01/streamanalytics/inputs.go index 85d2c055f28f..dd5363e26fad 100644 --- a/services/streamanalytics/mgmt/2016-03-01/streamanalytics/inputs.go +++ b/services/streamanalytics/mgmt/2016-03-01/streamanalytics/inputs.go @@ -80,6 +80,7 @@ func (client InputsClient) CreateOrReplace(ctx context.Context, input Input, res result, err = client.CreateOrReplaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.InputsClient", "CreateOrReplace", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client InputsClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.InputsClient", "Delete", resp, "Failure responding to request") + return } return @@ -245,6 +247,7 @@ func (client InputsClient) Get(ctx context.Context, resourceGroupName string, jo result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.InputsClient", "Get", resp, "Failure responding to request") + return } return @@ -326,6 +329,7 @@ func (client InputsClient) ListByStreamingJob(ctx context.Context, resourceGroup result.ilr, err = client.ListByStreamingJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.InputsClient", "ListByStreamingJob", resp, "Failure responding to request") + return } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) @@ -393,6 +397,7 @@ func (client InputsClient) listByStreamingJobNextResults(ctx context.Context, la result, err = client.ListByStreamingJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.InputsClient", "listByStreamingJobNextResults", resp, "Failure responding to next results request") + return } return } @@ -540,6 +545,7 @@ func (client InputsClient) Update(ctx context.Context, input Input, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.InputsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/streamanalytics/mgmt/2016-03-01/streamanalytics/operations.go b/services/streamanalytics/mgmt/2016-03-01/streamanalytics/operations.go index 38926b85fd77..85df7f235d47 100644 --- a/services/streamanalytics/mgmt/2016-03-01/streamanalytics/operations.go +++ b/services/streamanalytics/mgmt/2016-03-01/streamanalytics/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/streamanalytics/mgmt/2016-03-01/streamanalytics/outputs.go b/services/streamanalytics/mgmt/2016-03-01/streamanalytics/outputs.go index 1c72ff2e41a5..605857440ded 100644 --- a/services/streamanalytics/mgmt/2016-03-01/streamanalytics/outputs.go +++ b/services/streamanalytics/mgmt/2016-03-01/streamanalytics/outputs.go @@ -80,6 +80,7 @@ func (client OutputsClient) CreateOrReplace(ctx context.Context, output Output, result, err = client.CreateOrReplaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.OutputsClient", "CreateOrReplace", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client OutputsClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.OutputsClient", "Delete", resp, "Failure responding to request") + return } return @@ -245,6 +247,7 @@ func (client OutputsClient) Get(ctx context.Context, resourceGroupName string, j result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.OutputsClient", "Get", resp, "Failure responding to request") + return } return @@ -326,6 +329,7 @@ func (client OutputsClient) ListByStreamingJob(ctx context.Context, resourceGrou result.olr, err = client.ListByStreamingJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.OutputsClient", "ListByStreamingJob", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -393,6 +397,7 @@ func (client OutputsClient) listByStreamingJobNextResults(ctx context.Context, l result, err = client.ListByStreamingJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.OutputsClient", "listByStreamingJobNextResults", resp, "Failure responding to next results request") + return } return } @@ -540,6 +545,7 @@ func (client OutputsClient) Update(ctx context.Context, output Output, resourceG result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.OutputsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/streamanalytics/mgmt/2016-03-01/streamanalytics/streamingjobs.go b/services/streamanalytics/mgmt/2016-03-01/streamanalytics/streamingjobs.go index 803a0bca2fbb..94237047173c 100644 --- a/services/streamanalytics/mgmt/2016-03-01/streamanalytics/streamingjobs.go +++ b/services/streamanalytics/mgmt/2016-03-01/streamanalytics/streamingjobs.go @@ -244,6 +244,7 @@ func (client StreamingJobsClient) Get(ctx context.Context, resourceGroupName str result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.StreamingJobsClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client StreamingJobsClient) List(ctx context.Context, expand string) (resu result.sjlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.StreamingJobsClient", "List", resp, "Failure responding to request") + return } if result.sjlr.hasNextLink() && result.sjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -390,6 +392,7 @@ func (client StreamingJobsClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.StreamingJobsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -446,6 +449,7 @@ func (client StreamingJobsClient) ListByResourceGroup(ctx context.Context, resou result.sjlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.StreamingJobsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.sjlr.hasNextLink() && result.sjlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -512,6 +516,7 @@ func (client StreamingJobsClient) listByResourceGroupNextResults(ctx context.Con result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.StreamingJobsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -728,6 +733,7 @@ func (client StreamingJobsClient) Update(ctx context.Context, streamingJob Strea result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.StreamingJobsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/streamanalytics/mgmt/2016-03-01/streamanalytics/subscriptions.go b/services/streamanalytics/mgmt/2016-03-01/streamanalytics/subscriptions.go index 279c4177d70d..4c571b450fe6 100644 --- a/services/streamanalytics/mgmt/2016-03-01/streamanalytics/subscriptions.go +++ b/services/streamanalytics/mgmt/2016-03-01/streamanalytics/subscriptions.go @@ -72,6 +72,7 @@ func (client SubscriptionsClient) ListQuotas(ctx context.Context, location strin result, err = client.ListQuotasResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.SubscriptionsClient", "ListQuotas", resp, "Failure responding to request") + return } return diff --git a/services/streamanalytics/mgmt/2016-03-01/streamanalytics/transformations.go b/services/streamanalytics/mgmt/2016-03-01/streamanalytics/transformations.go index 8d1866526aab..1d4431a5ec35 100644 --- a/services/streamanalytics/mgmt/2016-03-01/streamanalytics/transformations.go +++ b/services/streamanalytics/mgmt/2016-03-01/streamanalytics/transformations.go @@ -81,6 +81,7 @@ func (client TransformationsClient) CreateOrReplace(ctx context.Context, transfo result, err = client.CreateOrReplaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.TransformationsClient", "CreateOrReplace", resp, "Failure responding to request") + return } return @@ -169,6 +170,7 @@ func (client TransformationsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.TransformationsClient", "Get", resp, "Failure responding to request") + return } return @@ -254,6 +256,7 @@ func (client TransformationsClient) Update(ctx context.Context, transformation T result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.TransformationsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/subscription/mgmt/2020-09-01/subscription/alias.go b/services/subscription/mgmt/2020-09-01/subscription/alias.go index 49167de663f8..ef63b8fd83ce 100644 --- a/services/subscription/mgmt/2020-09-01/subscription/alias.go +++ b/services/subscription/mgmt/2020-09-01/subscription/alias.go @@ -152,6 +152,7 @@ func (client AliasClient) Delete(ctx context.Context, aliasName string) (result result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.AliasClient", "Delete", resp, "Failure responding to request") + return } return @@ -223,6 +224,7 @@ func (client AliasClient) Get(ctx context.Context, aliasName string) (result Put result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.AliasClient", "Get", resp, "Failure responding to request") + return } return @@ -293,6 +295,7 @@ func (client AliasClient) List(ctx context.Context) (result PutAliasListResult, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.AliasClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/subscription/mgmt/2020-09-01/subscription/operations.go b/services/subscription/mgmt/2020-09-01/subscription/operations.go index b3e06497fddc..fc9eb0cf3a8a 100644 --- a/services/subscription/mgmt/2020-09-01/subscription/operations.go +++ b/services/subscription/mgmt/2020-09-01/subscription/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/subscription/mgmt/2020-09-01/subscription/subscription.go b/services/subscription/mgmt/2020-09-01/subscription/subscription.go index d26846749be2..f70d75bbbb52 100644 --- a/services/subscription/mgmt/2020-09-01/subscription/subscription.go +++ b/services/subscription/mgmt/2020-09-01/subscription/subscription.go @@ -71,6 +71,7 @@ func (client Client) Cancel(ctx context.Context, subscriptionID string) (result result, err = client.CancelResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.Client", "Cancel", resp, "Failure responding to request") + return } return @@ -143,6 +144,7 @@ func (client Client) Enable(ctx context.Context, subscriptionID string) (result result, err = client.EnableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.Client", "Enable", resp, "Failure responding to request") + return } return @@ -216,6 +218,7 @@ func (client Client) Rename(ctx context.Context, subscriptionID string, body Nam result, err = client.RenameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.Client", "Rename", resp, "Failure responding to request") + return } return diff --git a/services/subscription/mgmt/2020-09-01/subscription/subscriptions.go b/services/subscription/mgmt/2020-09-01/subscription/subscriptions.go index b62a0faa2e4e..870f0be71b67 100644 --- a/services/subscription/mgmt/2020-09-01/subscription/subscriptions.go +++ b/services/subscription/mgmt/2020-09-01/subscription/subscriptions.go @@ -71,6 +71,7 @@ func (client SubscriptionsClient) Get(ctx context.Context, subscriptionID string result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.SubscriptionsClient", "Get", resp, "Failure responding to request") + return } return @@ -142,6 +143,7 @@ func (client SubscriptionsClient) List(ctx context.Context) (result ListResultPa result.lr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.SubscriptionsClient", "List", resp, "Failure responding to request") + return } if result.lr.hasNextLink() && result.lr.IsEmpty() { err = result.NextWithContext(ctx) @@ -200,6 +202,7 @@ func (client SubscriptionsClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.SubscriptionsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -251,6 +254,7 @@ func (client SubscriptionsClient) ListLocations(ctx context.Context, subscriptio result, err = client.ListLocationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.SubscriptionsClient", "ListLocations", resp, "Failure responding to request") + return } return diff --git a/services/subscription/mgmt/2020-09-01/subscription/tenants.go b/services/subscription/mgmt/2020-09-01/subscription/tenants.go index fe6c381147c1..dc92b5eb3898 100644 --- a/services/subscription/mgmt/2020-09-01/subscription/tenants.go +++ b/services/subscription/mgmt/2020-09-01/subscription/tenants.go @@ -70,6 +70,7 @@ func (client TenantsClient) List(ctx context.Context) (result TenantListResultPa result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.TenantsClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client TenantsClient) listNextResults(ctx context.Context, lastResults Ten result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "subscription.TenantsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/support/mgmt/2020-04-01/support/communications.go b/services/support/mgmt/2020-04-01/support/communications.go index 0b71a4f9cfb4..3b4d148d0f62 100644 --- a/services/support/mgmt/2020-04-01/support/communications.go +++ b/services/support/mgmt/2020-04-01/support/communications.go @@ -80,6 +80,7 @@ func (client CommunicationsClient) CheckNameAvailability(ctx context.Context, su result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.CommunicationsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -246,6 +247,7 @@ func (client CommunicationsClient) Get(ctx context.Context, supportTicketName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.CommunicationsClient", "Get", resp, "Failure responding to request") + return } return @@ -330,6 +332,7 @@ func (client CommunicationsClient) List(ctx context.Context, supportTicketName s result.clr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.CommunicationsClient", "List", resp, "Failure responding to request") + return } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) @@ -399,6 +402,7 @@ func (client CommunicationsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.CommunicationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/support/mgmt/2020-04-01/support/operations.go b/services/support/mgmt/2020-04-01/support/operations.go index a15cb66ce3c8..565dcd0b9e14 100644 --- a/services/support/mgmt/2020-04-01/support/operations.go +++ b/services/support/mgmt/2020-04-01/support/operations.go @@ -69,6 +69,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationsListR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.OperationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/support/mgmt/2020-04-01/support/problemclassifications.go b/services/support/mgmt/2020-04-01/support/problemclassifications.go index 8e36cdb92cdc..661fe4dc16f2 100644 --- a/services/support/mgmt/2020-04-01/support/problemclassifications.go +++ b/services/support/mgmt/2020-04-01/support/problemclassifications.go @@ -73,6 +73,7 @@ func (client ProblemClassificationsClient) Get(ctx context.Context, serviceName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.ProblemClassificationsClient", "Get", resp, "Failure responding to request") + return } return @@ -148,6 +149,7 @@ func (client ProblemClassificationsClient) List(ctx context.Context, serviceName result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.ProblemClassificationsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/support/mgmt/2020-04-01/support/services.go b/services/support/mgmt/2020-04-01/support/services.go index a79af855f0f2..868ecf6cda72 100644 --- a/services/support/mgmt/2020-04-01/support/services.go +++ b/services/support/mgmt/2020-04-01/support/services.go @@ -71,6 +71,7 @@ func (client ServicesClient) Get(ctx context.Context, serviceName string) (resul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client ServicesClient) List(ctx context.Context) (result ServicesListResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.ServicesClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/support/mgmt/2020-04-01/support/tickets.go b/services/support/mgmt/2020-04-01/support/tickets.go index d493a23aa8d1..4fafc75c73e2 100644 --- a/services/support/mgmt/2020-04-01/support/tickets.go +++ b/services/support/mgmt/2020-04-01/support/tickets.go @@ -79,6 +79,7 @@ func (client TicketsClient) CheckNameAvailability(ctx context.Context, checkName result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.TicketsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -266,6 +267,7 @@ func (client TicketsClient) Get(ctx context.Context, supportTicketName string) ( result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.TicketsClient", "Get", resp, "Failure responding to request") + return } return @@ -347,6 +349,7 @@ func (client TicketsClient) List(ctx context.Context, top *int32, filter string) result.tlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.TicketsClient", "List", resp, "Failure responding to request") + return } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -415,6 +418,7 @@ func (client TicketsClient) listNextResults(ctx context.Context, lastResults Tic result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.TicketsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -471,6 +475,7 @@ func (client TicketsClient) Update(ctx context.Context, supportTicketName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "support.TicketsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/accesspolicies.go b/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/accesspolicies.go index 3f88be2554e5..28e751cd9351 100644 --- a/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/accesspolicies.go +++ b/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/accesspolicies.go @@ -86,6 +86,7 @@ func (client AccessPoliciesClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.AccessPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client AccessPoliciesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.AccessPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client AccessPoliciesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.AccessPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +326,7 @@ func (client AccessPoliciesClient) ListByEnvironment(ctx context.Context, resour result, err = client.ListByEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.AccessPoliciesClient", "ListByEnvironment", resp, "Failure responding to request") + return } return @@ -403,6 +407,7 @@ func (client AccessPoliciesClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.AccessPoliciesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/environments.go b/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/environments.go index f5e00ce14eff..11a87ff339d7 100644 --- a/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/environments.go +++ b/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/environments.go @@ -169,6 +169,7 @@ func (client EnvironmentsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EnvironmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -246,6 +247,7 @@ func (client EnvironmentsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EnvironmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -324,6 +326,7 @@ func (client EnvironmentsClient) ListByResourceGroup(ctx context.Context, resour result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EnvironmentsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -395,6 +398,7 @@ func (client EnvironmentsClient) ListBySubscription(ctx context.Context) (result result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EnvironmentsClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/eventsources.go b/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/eventsources.go index d9435a5c7b4e..dcb2f100cf0d 100644 --- a/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/eventsources.go +++ b/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/eventsources.go @@ -84,6 +84,7 @@ func (client EventSourcesClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EventSourcesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client EventSourcesClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EventSourcesClient", "Delete", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client EventSourcesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EventSourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +325,7 @@ func (client EventSourcesClient) ListByEnvironment(ctx context.Context, resource result, err = client.ListByEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EventSourcesClient", "ListByEnvironment", resp, "Failure responding to request") + return } return @@ -402,6 +406,7 @@ func (client EventSourcesClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EventSourcesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/operations.go b/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/operations.go index 2c720bbb938d..62ffcc28506e 100644 --- a/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/operations.go +++ b/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/referencedatasets.go b/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/referencedatasets.go index c137e4e69ea2..d3216f638637 100644 --- a/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/referencedatasets.go +++ b/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/referencedatasets.go @@ -88,6 +88,7 @@ func (client ReferenceDataSetsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.ReferenceDataSetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client ReferenceDataSetsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.ReferenceDataSetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client ReferenceDataSetsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.ReferenceDataSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -326,6 +329,7 @@ func (client ReferenceDataSetsClient) ListByEnvironment(ctx context.Context, res result, err = client.ListByEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.ReferenceDataSetsClient", "ListByEnvironment", resp, "Failure responding to request") + return } return @@ -407,6 +411,7 @@ func (client ReferenceDataSetsClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.ReferenceDataSetsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/accesspolicies.go b/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/accesspolicies.go index 94d0f6de5f1d..e2f46fdfa3a4 100644 --- a/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/accesspolicies.go +++ b/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/accesspolicies.go @@ -86,6 +86,7 @@ func (client AccessPoliciesClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.AccessPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -168,6 +169,7 @@ func (client AccessPoliciesClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.AccessPoliciesClient", "Delete", resp, "Failure responding to request") + return } return @@ -246,6 +248,7 @@ func (client AccessPoliciesClient) Get(ctx context.Context, resourceGroupName st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.AccessPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -323,6 +326,7 @@ func (client AccessPoliciesClient) ListByEnvironment(ctx context.Context, resour result, err = client.ListByEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.AccessPoliciesClient", "ListByEnvironment", resp, "Failure responding to request") + return } return @@ -403,6 +407,7 @@ func (client AccessPoliciesClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.AccessPoliciesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/environments.go b/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/environments.go index 06a0158a47b2..19f5465d9a4e 100644 --- a/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/environments.go +++ b/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/environments.go @@ -167,6 +167,7 @@ func (client EnvironmentsClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EnvironmentsClient", "Delete", resp, "Failure responding to request") + return } return @@ -244,6 +245,7 @@ func (client EnvironmentsClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EnvironmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +324,7 @@ func (client EnvironmentsClient) ListByResourceGroup(ctx context.Context, resour result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EnvironmentsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -393,6 +396,7 @@ func (client EnvironmentsClient) ListBySubscription(ctx context.Context) (result result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EnvironmentsClient", "ListBySubscription", resp, "Failure responding to request") + return } return diff --git a/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/eventsources.go b/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/eventsources.go index 92fe03794e77..7b695a6818ab 100644 --- a/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/eventsources.go +++ b/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/eventsources.go @@ -84,6 +84,7 @@ func (client EventSourcesClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EventSourcesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client EventSourcesClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EventSourcesClient", "Delete", resp, "Failure responding to request") + return } return @@ -244,6 +246,7 @@ func (client EventSourcesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EventSourcesClient", "Get", resp, "Failure responding to request") + return } return @@ -322,6 +325,7 @@ func (client EventSourcesClient) ListByEnvironment(ctx context.Context, resource result, err = client.ListByEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EventSourcesClient", "ListByEnvironment", resp, "Failure responding to request") + return } return @@ -402,6 +406,7 @@ func (client EventSourcesClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.EventSourcesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/operations.go b/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/operations.go index e26079dca926..bee7b89203df 100644 --- a/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/operations.go +++ b/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/referencedatasets.go b/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/referencedatasets.go index d0b70fc98f97..a76eb249c085 100644 --- a/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/referencedatasets.go +++ b/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/referencedatasets.go @@ -88,6 +88,7 @@ func (client ReferenceDataSetsClient) CreateOrUpdate(ctx context.Context, resour result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.ReferenceDataSetsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client ReferenceDataSetsClient) Delete(ctx context.Context, resourceGroupN result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.ReferenceDataSetsClient", "Delete", resp, "Failure responding to request") + return } return @@ -248,6 +250,7 @@ func (client ReferenceDataSetsClient) Get(ctx context.Context, resourceGroupName result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.ReferenceDataSetsClient", "Get", resp, "Failure responding to request") + return } return @@ -326,6 +329,7 @@ func (client ReferenceDataSetsClient) ListByEnvironment(ctx context.Context, res result, err = client.ListByEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.ReferenceDataSetsClient", "ListByEnvironment", resp, "Failure responding to request") + return } return @@ -407,6 +411,7 @@ func (client ReferenceDataSetsClient) Update(ctx context.Context, resourceGroupN result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "timeseriesinsights.ReferenceDataSetsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/trafficmanager/mgmt/2015-11-01/trafficmanager/endpoints.go b/services/trafficmanager/mgmt/2015-11-01/trafficmanager/endpoints.go index 3a7286b82ada..9b7978aa65da 100644 --- a/services/trafficmanager/mgmt/2015-11-01/trafficmanager/endpoints.go +++ b/services/trafficmanager/mgmt/2015-11-01/trafficmanager/endpoints.go @@ -76,6 +76,7 @@ func (client EndpointsClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client EndpointsClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "Delete", resp, "Failure responding to request") + return } return @@ -235,6 +237,7 @@ func (client EndpointsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -315,6 +318,7 @@ func (client EndpointsClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/trafficmanager/mgmt/2015-11-01/trafficmanager/profiles.go b/services/trafficmanager/mgmt/2015-11-01/trafficmanager/profiles.go index 1db4c920e526..6f07a18b6c54 100644 --- a/services/trafficmanager/mgmt/2015-11-01/trafficmanager/profiles.go +++ b/services/trafficmanager/mgmt/2015-11-01/trafficmanager/profiles.go @@ -72,6 +72,7 @@ func (client ProfilesClient) CheckTrafficManagerRelativeDNSNameAvailability(ctx result, err = client.CheckTrafficManagerRelativeDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "CheckTrafficManagerRelativeDNSNameAvailability", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client ProfilesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -221,6 +223,7 @@ func (client ProfilesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "Delete", resp, "Failure responding to request") + return } return @@ -295,6 +298,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -367,6 +371,7 @@ func (client ProfilesClient) ListAll(ctx context.Context) (result ProfileListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "ListAll", resp, "Failure responding to request") + return } return @@ -439,6 +444,7 @@ func (client ProfilesClient) ListAllInResourceGroup(ctx context.Context, resourc result, err = client.ListAllInResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "ListAllInResourceGroup", resp, "Failure responding to request") + return } return @@ -514,6 +520,7 @@ func (client ProfilesClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/trafficmanager/mgmt/2017-03-01/trafficmanager/endpoints.go b/services/trafficmanager/mgmt/2017-03-01/trafficmanager/endpoints.go index a40dee158137..5177350f06b2 100644 --- a/services/trafficmanager/mgmt/2017-03-01/trafficmanager/endpoints.go +++ b/services/trafficmanager/mgmt/2017-03-01/trafficmanager/endpoints.go @@ -76,6 +76,7 @@ func (client EndpointsClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client EndpointsClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "Delete", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client EndpointsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client EndpointsClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/trafficmanager/mgmt/2017-03-01/trafficmanager/geographichierarchies.go b/services/trafficmanager/mgmt/2017-03-01/trafficmanager/geographichierarchies.go index accbb3c485b2..7739ac2550ed 100644 --- a/services/trafficmanager/mgmt/2017-03-01/trafficmanager/geographichierarchies.go +++ b/services/trafficmanager/mgmt/2017-03-01/trafficmanager/geographichierarchies.go @@ -70,6 +70,7 @@ func (client GeographicHierarchiesClient) GetDefault(ctx context.Context) (resul result, err = client.GetDefaultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.GeographicHierarchiesClient", "GetDefault", resp, "Failure responding to request") + return } return diff --git a/services/trafficmanager/mgmt/2017-03-01/trafficmanager/profiles.go b/services/trafficmanager/mgmt/2017-03-01/trafficmanager/profiles.go index 214d34b91909..508a75090c05 100644 --- a/services/trafficmanager/mgmt/2017-03-01/trafficmanager/profiles.go +++ b/services/trafficmanager/mgmt/2017-03-01/trafficmanager/profiles.go @@ -72,6 +72,7 @@ func (client ProfilesClient) CheckTrafficManagerRelativeDNSNameAvailability(ctx result, err = client.CheckTrafficManagerRelativeDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "CheckTrafficManagerRelativeDNSNameAvailability", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client ProfilesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -221,6 +223,7 @@ func (client ProfilesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "Delete", resp, "Failure responding to request") + return } return @@ -296,6 +299,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -368,6 +372,7 @@ func (client ProfilesClient) ListAll(ctx context.Context) (result ProfileListRes result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "ListAll", resp, "Failure responding to request") + return } return @@ -440,6 +445,7 @@ func (client ProfilesClient) ListAllInResourceGroup(ctx context.Context, resourc result, err = client.ListAllInResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "ListAllInResourceGroup", resp, "Failure responding to request") + return } return @@ -515,6 +521,7 @@ func (client ProfilesClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/trafficmanager/mgmt/2017-05-01/trafficmanager/endpoints.go b/services/trafficmanager/mgmt/2017-05-01/trafficmanager/endpoints.go index f1d9d6701217..9799b3d5dc52 100644 --- a/services/trafficmanager/mgmt/2017-05-01/trafficmanager/endpoints.go +++ b/services/trafficmanager/mgmt/2017-05-01/trafficmanager/endpoints.go @@ -76,6 +76,7 @@ func (client EndpointsClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client EndpointsClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "Delete", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client EndpointsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client EndpointsClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/trafficmanager/mgmt/2017-05-01/trafficmanager/geographichierarchies.go b/services/trafficmanager/mgmt/2017-05-01/trafficmanager/geographichierarchies.go index c9ecacf02262..010c9418dce1 100644 --- a/services/trafficmanager/mgmt/2017-05-01/trafficmanager/geographichierarchies.go +++ b/services/trafficmanager/mgmt/2017-05-01/trafficmanager/geographichierarchies.go @@ -70,6 +70,7 @@ func (client GeographicHierarchiesClient) GetDefault(ctx context.Context) (resul result, err = client.GetDefaultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.GeographicHierarchiesClient", "GetDefault", resp, "Failure responding to request") + return } return diff --git a/services/trafficmanager/mgmt/2017-05-01/trafficmanager/profiles.go b/services/trafficmanager/mgmt/2017-05-01/trafficmanager/profiles.go index c7fdff98dda9..39f2c3780405 100644 --- a/services/trafficmanager/mgmt/2017-05-01/trafficmanager/profiles.go +++ b/services/trafficmanager/mgmt/2017-05-01/trafficmanager/profiles.go @@ -72,6 +72,7 @@ func (client ProfilesClient) CheckTrafficManagerRelativeDNSNameAvailability(ctx result, err = client.CheckTrafficManagerRelativeDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "CheckTrafficManagerRelativeDNSNameAvailability", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client ProfilesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -221,6 +223,7 @@ func (client ProfilesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "Delete", resp, "Failure responding to request") + return } return @@ -296,6 +299,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +374,7 @@ func (client ProfilesClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -441,6 +446,7 @@ func (client ProfilesClient) ListBySubscription(ctx context.Context) (result Pro result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -515,6 +521,7 @@ func (client ProfilesClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/trafficmanager/mgmt/2018-03-01/trafficmanager/endpoints.go b/services/trafficmanager/mgmt/2018-03-01/trafficmanager/endpoints.go index 8491c303835f..350f029a75df 100644 --- a/services/trafficmanager/mgmt/2018-03-01/trafficmanager/endpoints.go +++ b/services/trafficmanager/mgmt/2018-03-01/trafficmanager/endpoints.go @@ -76,6 +76,7 @@ func (client EndpointsClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client EndpointsClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "Delete", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client EndpointsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client EndpointsClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/trafficmanager/mgmt/2018-03-01/trafficmanager/geographichierarchies.go b/services/trafficmanager/mgmt/2018-03-01/trafficmanager/geographichierarchies.go index e45cf135b088..d044e61780fb 100644 --- a/services/trafficmanager/mgmt/2018-03-01/trafficmanager/geographichierarchies.go +++ b/services/trafficmanager/mgmt/2018-03-01/trafficmanager/geographichierarchies.go @@ -70,6 +70,7 @@ func (client GeographicHierarchiesClient) GetDefault(ctx context.Context) (resul result, err = client.GetDefaultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.GeographicHierarchiesClient", "GetDefault", resp, "Failure responding to request") + return } return diff --git a/services/trafficmanager/mgmt/2018-03-01/trafficmanager/heatmap.go b/services/trafficmanager/mgmt/2018-03-01/trafficmanager/heatmap.go index f5f79dbe6aa0..458059d6c5c7 100644 --- a/services/trafficmanager/mgmt/2018-03-01/trafficmanager/heatmap.go +++ b/services/trafficmanager/mgmt/2018-03-01/trafficmanager/heatmap.go @@ -89,6 +89,7 @@ func (client HeatMapClient) Get(ctx context.Context, resourceGroupName string, p result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.HeatMapClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/trafficmanager/mgmt/2018-03-01/trafficmanager/profiles.go b/services/trafficmanager/mgmt/2018-03-01/trafficmanager/profiles.go index 273061275348..3294415f02e1 100644 --- a/services/trafficmanager/mgmt/2018-03-01/trafficmanager/profiles.go +++ b/services/trafficmanager/mgmt/2018-03-01/trafficmanager/profiles.go @@ -72,6 +72,7 @@ func (client ProfilesClient) CheckTrafficManagerRelativeDNSNameAvailability(ctx result, err = client.CheckTrafficManagerRelativeDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "CheckTrafficManagerRelativeDNSNameAvailability", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client ProfilesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -221,6 +223,7 @@ func (client ProfilesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "Delete", resp, "Failure responding to request") + return } return @@ -296,6 +299,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +374,7 @@ func (client ProfilesClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -441,6 +446,7 @@ func (client ProfilesClient) ListBySubscription(ctx context.Context) (result Pro result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -515,6 +521,7 @@ func (client ProfilesClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/trafficmanager/mgmt/2018-04-01/trafficmanager/endpoints.go b/services/trafficmanager/mgmt/2018-04-01/trafficmanager/endpoints.go index 57de2438513e..68ecb82bf84c 100644 --- a/services/trafficmanager/mgmt/2018-04-01/trafficmanager/endpoints.go +++ b/services/trafficmanager/mgmt/2018-04-01/trafficmanager/endpoints.go @@ -76,6 +76,7 @@ func (client EndpointsClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -157,6 +158,7 @@ func (client EndpointsClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "Delete", resp, "Failure responding to request") + return } return @@ -236,6 +238,7 @@ func (client EndpointsClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "Get", resp, "Failure responding to request") + return } return @@ -316,6 +319,7 @@ func (client EndpointsClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/trafficmanager/mgmt/2018-04-01/trafficmanager/geographichierarchies.go b/services/trafficmanager/mgmt/2018-04-01/trafficmanager/geographichierarchies.go index 6a8f7c592f24..9bbd559a834e 100644 --- a/services/trafficmanager/mgmt/2018-04-01/trafficmanager/geographichierarchies.go +++ b/services/trafficmanager/mgmt/2018-04-01/trafficmanager/geographichierarchies.go @@ -70,6 +70,7 @@ func (client GeographicHierarchiesClient) GetDefault(ctx context.Context) (resul result, err = client.GetDefaultResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.GeographicHierarchiesClient", "GetDefault", resp, "Failure responding to request") + return } return diff --git a/services/trafficmanager/mgmt/2018-04-01/trafficmanager/heatmap.go b/services/trafficmanager/mgmt/2018-04-01/trafficmanager/heatmap.go index 14dd226e8cb8..f8cf5bce28ff 100644 --- a/services/trafficmanager/mgmt/2018-04-01/trafficmanager/heatmap.go +++ b/services/trafficmanager/mgmt/2018-04-01/trafficmanager/heatmap.go @@ -89,6 +89,7 @@ func (client HeatMapClient) Get(ctx context.Context, resourceGroupName string, p result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.HeatMapClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/trafficmanager/mgmt/2018-04-01/trafficmanager/profiles.go b/services/trafficmanager/mgmt/2018-04-01/trafficmanager/profiles.go index cdd71a12a0ce..3c12532eae47 100644 --- a/services/trafficmanager/mgmt/2018-04-01/trafficmanager/profiles.go +++ b/services/trafficmanager/mgmt/2018-04-01/trafficmanager/profiles.go @@ -72,6 +72,7 @@ func (client ProfilesClient) CheckTrafficManagerRelativeDNSNameAvailability(ctx result, err = client.CheckTrafficManagerRelativeDNSNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "CheckTrafficManagerRelativeDNSNameAvailability", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client ProfilesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -221,6 +223,7 @@ func (client ProfilesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "Delete", resp, "Failure responding to request") + return } return @@ -296,6 +299,7 @@ func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "Get", resp, "Failure responding to request") + return } return @@ -370,6 +374,7 @@ func (client ProfilesClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -441,6 +446,7 @@ func (client ProfilesClient) ListBySubscription(ctx context.Context) (result Pro result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "ListBySubscription", resp, "Failure responding to request") + return } return @@ -515,6 +521,7 @@ func (client ProfilesClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.ProfilesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/trafficmanager/mgmt/2018-04-01/trafficmanager/usermetricskeys.go b/services/trafficmanager/mgmt/2018-04-01/trafficmanager/usermetricskeys.go index a276de9b4f3c..0a7ff51858c6 100644 --- a/services/trafficmanager/mgmt/2018-04-01/trafficmanager/usermetricskeys.go +++ b/services/trafficmanager/mgmt/2018-04-01/trafficmanager/usermetricskeys.go @@ -69,6 +69,7 @@ func (client UserMetricsKeysClient) CreateOrUpdate(ctx context.Context) (result result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.UserMetricsKeysClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -139,6 +140,7 @@ func (client UserMetricsKeysClient) Delete(ctx context.Context) (result DeleteOp result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.UserMetricsKeysClient", "Delete", resp, "Failure responding to request") + return } return @@ -209,6 +211,7 @@ func (client UserMetricsKeysClient) Get(ctx context.Context) (result UserMetrics result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "trafficmanager.UserMetricsKeysClient", "Get", resp, "Failure responding to request") + return } return diff --git a/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/operations.go b/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/operations.go index 58b50c642bec..6f29450a670b 100644 --- a/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/operations.go +++ b/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/virtualmachineimagetemplates.go b/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/virtualmachineimagetemplates.go index 44cf0f9f5ab0..9954bcdff688 100644 --- a/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/virtualmachineimagetemplates.go +++ b/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/virtualmachineimagetemplates.go @@ -338,6 +338,7 @@ func (client VirtualMachineImageTemplatesClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplatesClient", "Get", resp, "Failure responding to request") + return } return @@ -422,6 +423,7 @@ func (client VirtualMachineImageTemplatesClient) GetRunOutput(ctx context.Contex result, err = client.GetRunOutputResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplatesClient", "GetRunOutput", resp, "Failure responding to request") + return } return @@ -496,6 +498,7 @@ func (client VirtualMachineImageTemplatesClient) List(ctx context.Context) (resu result.itlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplatesClient", "List", resp, "Failure responding to request") + return } if result.itlr.hasNextLink() && result.itlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -558,6 +561,7 @@ func (client VirtualMachineImageTemplatesClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplatesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -609,6 +613,7 @@ func (client VirtualMachineImageTemplatesClient) ListByResourceGroup(ctx context result.itlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplatesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.itlr.hasNextLink() && result.itlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -672,6 +677,7 @@ func (client VirtualMachineImageTemplatesClient) listByResourceGroupNextResults( result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplatesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -730,6 +736,7 @@ func (client VirtualMachineImageTemplatesClient) ListRunOutputs(ctx context.Cont result.roc, err = client.ListRunOutputsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplatesClient", "ListRunOutputs", resp, "Failure responding to request") + return } if result.roc.hasNextLink() && result.roc.IsEmpty() { err = result.NextWithContext(ctx) @@ -794,6 +801,7 @@ func (client VirtualMachineImageTemplatesClient) listRunOutputsNextResults(ctx c result, err = client.ListRunOutputsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "virtualmachineimagebuilder.VirtualMachineImageTemplatesClient", "listRunOutputsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/customizationpolicies.go b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/customizationpolicies.go index ac0a40f62f20..934493df76e1 100644 --- a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/customizationpolicies.go +++ b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/customizationpolicies.go @@ -74,6 +74,7 @@ func (client CustomizationPoliciesClient) Get(ctx context.Context, regionID stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.CustomizationPoliciesClient", "Get", resp, "Failure responding to request") + return } return @@ -153,6 +154,7 @@ func (client CustomizationPoliciesClient) List(ctx context.Context, regionID str result.cplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.CustomizationPoliciesClient", "List", resp, "Failure responding to request") + return } if result.cplr.hasNextLink() && result.cplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -220,6 +222,7 @@ func (client CustomizationPoliciesClient) listNextResults(ctx context.Context, l result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.CustomizationPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/dedicatedcloudnodes.go b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/dedicatedcloudnodes.go index 0238340b0761..532a09303b49 100644 --- a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/dedicatedcloudnodes.go +++ b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/dedicatedcloudnodes.go @@ -184,6 +184,7 @@ func (client DedicatedCloudNodesClient) Delete(ctx context.Context, resourceGrou result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.DedicatedCloudNodesClient", "Delete", resp, "Failure responding to request") + return } return @@ -264,6 +265,7 @@ func (client DedicatedCloudNodesClient) Get(ctx context.Context, resourceGroupNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.DedicatedCloudNodesClient", "Get", resp, "Failure responding to request") + return } return @@ -342,6 +344,7 @@ func (client DedicatedCloudNodesClient) ListByResourceGroup(ctx context.Context, result.dcnlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.DedicatedCloudNodesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dcnlr.hasNextLink() && result.dcnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -414,6 +417,7 @@ func (client DedicatedCloudNodesClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.DedicatedCloudNodesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -467,6 +471,7 @@ func (client DedicatedCloudNodesClient) ListBySubscription(ctx context.Context, result.dcnlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.DedicatedCloudNodesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.dcnlr.hasNextLink() && result.dcnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -538,6 +543,7 @@ func (client DedicatedCloudNodesClient) listBySubscriptionNextResults(ctx contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.DedicatedCloudNodesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -596,6 +602,7 @@ func (client DedicatedCloudNodesClient) Update(ctx context.Context, resourceGrou result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.DedicatedCloudNodesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/dedicatedcloudservices.go b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/dedicatedcloudservices.go index 900fd868aced..d3e35a353509 100644 --- a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/dedicatedcloudservices.go +++ b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/dedicatedcloudservices.go @@ -87,6 +87,7 @@ func (client DedicatedCloudServicesClient) CreateOrUpdate(ctx context.Context, r result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.DedicatedCloudServicesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -241,6 +242,7 @@ func (client DedicatedCloudServicesClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.DedicatedCloudServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -319,6 +321,7 @@ func (client DedicatedCloudServicesClient) ListByResourceGroup(ctx context.Conte result.dcslr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.DedicatedCloudServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dcslr.hasNextLink() && result.dcslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -391,6 +394,7 @@ func (client DedicatedCloudServicesClient) listByResourceGroupNextResults(ctx co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.DedicatedCloudServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -444,6 +448,7 @@ func (client DedicatedCloudServicesClient) ListBySubscription(ctx context.Contex result.dcslr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.DedicatedCloudServicesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.dcslr.hasNextLink() && result.dcslr.IsEmpty() { err = result.NextWithContext(ctx) @@ -515,6 +520,7 @@ func (client DedicatedCloudServicesClient) listBySubscriptionNextResults(ctx con result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.DedicatedCloudServicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } @@ -567,6 +573,7 @@ func (client DedicatedCloudServicesClient) Update(ctx context.Context, resourceG result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.DedicatedCloudServicesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/operations.go b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/operations.go index b7e2a2027584..5b6d04207557 100644 --- a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/operations.go +++ b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/operations.go @@ -72,6 +72,7 @@ func (client OperationsClient) Get(ctx context.Context, regionID string, operati result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.OperationsClient", "Get", resp, "Failure responding to request") + return } return @@ -146,6 +147,7 @@ func (client OperationsClient) List(ctx context.Context) (result AvailableOperat result.aolr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.OperationsClient", "List", resp, "Failure responding to request") + return } if result.aolr.hasNextLink() && result.aolr.IsEmpty() { err = result.NextWithContext(ctx) @@ -204,6 +206,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/privateclouds.go b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/privateclouds.go index 99aa1069c536..b41fcf716e27 100644 --- a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/privateclouds.go +++ b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/privateclouds.go @@ -72,6 +72,7 @@ func (client PrivateCloudsClient) Get(ctx context.Context, pcName string, region result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.PrivateCloudsClient", "Get", resp, "Failure responding to request") + return } return @@ -147,6 +148,7 @@ func (client PrivateCloudsClient) List(ctx context.Context, regionID string) (re result.pcl, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.PrivateCloudsClient", "List", resp, "Failure responding to request") + return } if result.pcl.hasNextLink() && result.pcl.IsEmpty() { err = result.NextWithContext(ctx) @@ -210,6 +212,7 @@ func (client PrivateCloudsClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.PrivateCloudsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/resourcepools.go b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/resourcepools.go index f5749d336cbe..c9b6a9c30736 100644 --- a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/resourcepools.go +++ b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/resourcepools.go @@ -73,6 +73,7 @@ func (client ResourcePoolsClient) Get(ctx context.Context, regionID string, pcNa result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.ResourcePoolsClient", "Get", resp, "Failure responding to request") + return } return @@ -150,6 +151,7 @@ func (client ResourcePoolsClient) List(ctx context.Context, regionID string, pcN result.rplr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.ResourcePoolsClient", "List", resp, "Failure responding to request") + return } if result.rplr.hasNextLink() && result.rplr.IsEmpty() { err = result.NextWithContext(ctx) @@ -214,6 +216,7 @@ func (client ResourcePoolsClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.ResourcePoolsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/skusavailability.go b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/skusavailability.go index 15613cc6f549..39512f0b8d9f 100644 --- a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/skusavailability.go +++ b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/skusavailability.go @@ -74,6 +74,7 @@ func (client SkusAvailabilityClient) List(ctx context.Context, regionID string, result.salr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.SkusAvailabilityClient", "List", resp, "Failure responding to request") + return } if result.salr.hasNextLink() && result.salr.IsEmpty() { err = result.NextWithContext(ctx) @@ -140,6 +141,7 @@ func (client SkusAvailabilityClient) listNextResults(ctx context.Context, lastRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.SkusAvailabilityClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/usages.go b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/usages.go index 70ad3e6db622..d74206c05624 100644 --- a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/usages.go +++ b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/usages.go @@ -74,6 +74,7 @@ func (client UsagesClient) List(ctx context.Context, regionID string, filter str result.ulr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.UsagesClient", "List", resp, "Failure responding to request") + return } if result.ulr.hasNextLink() && result.ulr.IsEmpty() { err = result.NextWithContext(ctx) @@ -140,6 +141,7 @@ func (client UsagesClient) listNextResults(ctx context.Context, lastResults Usag result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/virtualmachines.go b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/virtualmachines.go index 9659877e2871..eb600eca680e 100644 --- a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/virtualmachines.go +++ b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/virtualmachines.go @@ -247,6 +247,7 @@ func (client VirtualMachinesClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.VirtualMachinesClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client VirtualMachinesClient) ListByResourceGroup(ctx context.Context, res result.vmlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.VirtualMachinesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -397,6 +399,7 @@ func (client VirtualMachinesClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.VirtualMachinesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -450,6 +453,7 @@ func (client VirtualMachinesClient) ListBySubscription(ctx context.Context, filt result.vmlr, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.VirtualMachinesClient", "ListBySubscription", resp, "Failure responding to request") + return } if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -521,6 +525,7 @@ func (client VirtualMachinesClient) listBySubscriptionNextResults(ctx context.Co result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.VirtualMachinesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/virtualmachinetemplates.go b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/virtualmachinetemplates.go index d0a33df7f511..e269af381487 100644 --- a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/virtualmachinetemplates.go +++ b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/virtualmachinetemplates.go @@ -74,6 +74,7 @@ func (client VirtualMachineTemplatesClient) Get(ctx context.Context, regionID st result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.VirtualMachineTemplatesClient", "Get", resp, "Failure responding to request") + return } return @@ -152,6 +153,7 @@ func (client VirtualMachineTemplatesClient) List(ctx context.Context, pcName str result.vmtlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.VirtualMachineTemplatesClient", "List", resp, "Failure responding to request") + return } if result.vmtlr.hasNextLink() && result.vmtlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -217,6 +219,7 @@ func (client VirtualMachineTemplatesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.VirtualMachineTemplatesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/virtualnetworks.go b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/virtualnetworks.go index 8dd8f681dc00..f7ff22599b80 100644 --- a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/virtualnetworks.go +++ b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/virtualnetworks.go @@ -73,6 +73,7 @@ func (client VirtualNetworksClient) Get(ctx context.Context, regionID string, pc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return } return @@ -151,6 +152,7 @@ func (client VirtualNetworksClient) List(ctx context.Context, regionID string, p result.vnlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.VirtualNetworksClient", "List", resp, "Failure responding to request") + return } if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -216,6 +218,7 @@ func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "vmwarecloudsimple.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2016-09-01/web/apps.go b/services/web/mgmt/2016-09-01/web/apps.go index a7bb47d845ca..335bcb484d10 100644 --- a/services/web/mgmt/2016-09-01/web/apps.go +++ b/services/web/mgmt/2016-09-01/web/apps.go @@ -83,6 +83,7 @@ func (client AppsClient) AddPremierAddOn(ctx context.Context, resourceGroupName result, err = client.AddPremierAddOnResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "AddPremierAddOn", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client AppsClient) AddPremierAddOnSlot(ctx context.Context, resourceGroupN result, err = client.AddPremierAddOnSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "AddPremierAddOnSlot", resp, "Failure responding to request") + return } return @@ -261,6 +263,7 @@ func (client AppsClient) AnalyzeCustomHostname(ctx context.Context, resourceGrou result, err = client.AnalyzeCustomHostnameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "AnalyzeCustomHostname", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client AppsClient) AnalyzeCustomHostnameSlot(ctx context.Context, resource result, err = client.AnalyzeCustomHostnameSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "AnalyzeCustomHostnameSlot", resp, "Failure responding to request") + return } return @@ -440,6 +444,7 @@ func (client AppsClient) ApplySlotConfigToProduction(ctx context.Context, resour result, err = client.ApplySlotConfigToProductionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ApplySlotConfigToProduction", resp, "Failure responding to request") + return } return @@ -529,6 +534,7 @@ func (client AppsClient) ApplySlotConfigurationSlot(ctx context.Context, resourc result, err = client.ApplySlotConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ApplySlotConfigurationSlot", resp, "Failure responding to request") + return } return @@ -625,6 +631,7 @@ func (client AppsClient) Backup(ctx context.Context, resourceGroupName string, n result, err = client.BackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Backup", resp, "Failure responding to request") + return } return @@ -723,6 +730,7 @@ func (client AppsClient) BackupSlot(ctx context.Context, resourceGroupName strin result, err = client.BackupSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "BackupSlot", resp, "Failure responding to request") + return } return @@ -811,6 +819,7 @@ func (client AppsClient) CreateDeployment(ctx context.Context, resourceGroupName result, err = client.CreateDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateDeployment", resp, "Failure responding to request") + return } return @@ -901,6 +910,7 @@ func (client AppsClient) CreateDeploymentSlot(ctx context.Context, resourceGroup result, err = client.CreateDeploymentSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateDeploymentSlot", resp, "Failure responding to request") + return } return @@ -1629,6 +1639,7 @@ func (client AppsClient) CreateOrUpdateConfiguration(ctx context.Context, resour result, err = client.CreateOrUpdateConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateConfiguration", resp, "Failure responding to request") + return } return @@ -1724,6 +1735,7 @@ func (client AppsClient) CreateOrUpdateConfigurationSlot(ctx context.Context, re result, err = client.CreateOrUpdateConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateConfigurationSlot", resp, "Failure responding to request") + return } return @@ -1813,6 +1825,7 @@ func (client AppsClient) CreateOrUpdateDomainOwnershipIdentifier(ctx context.Con result, err = client.CreateOrUpdateDomainOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateDomainOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -1904,6 +1917,7 @@ func (client AppsClient) CreateOrUpdateDomainOwnershipIdentifierSlot(ctx context result, err = client.CreateOrUpdateDomainOwnershipIdentifierSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateDomainOwnershipIdentifierSlot", resp, "Failure responding to request") + return } return @@ -1993,6 +2007,7 @@ func (client AppsClient) CreateOrUpdateHostNameBinding(ctx context.Context, reso result, err = client.CreateOrUpdateHostNameBindingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHostNameBinding", resp, "Failure responding to request") + return } return @@ -2083,6 +2098,7 @@ func (client AppsClient) CreateOrUpdateHostNameBindingSlot(ctx context.Context, result, err = client.CreateOrUpdateHostNameBindingSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHostNameBindingSlot", resp, "Failure responding to request") + return } return @@ -2173,6 +2189,7 @@ func (client AppsClient) CreateOrUpdateHybridConnection(ctx context.Context, res result, err = client.CreateOrUpdateHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHybridConnection", resp, "Failure responding to request") + return } return @@ -2264,6 +2281,7 @@ func (client AppsClient) CreateOrUpdateHybridConnectionSlot(ctx context.Context, result, err = client.CreateOrUpdateHybridConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHybridConnectionSlot", resp, "Failure responding to request") + return } return @@ -2355,6 +2373,7 @@ func (client AppsClient) CreateOrUpdatePublicCertificate(ctx context.Context, re result, err = client.CreateOrUpdatePublicCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdatePublicCertificate", resp, "Failure responding to request") + return } return @@ -2446,6 +2465,7 @@ func (client AppsClient) CreateOrUpdatePublicCertificateSlot(ctx context.Context result, err = client.CreateOrUpdatePublicCertificateSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdatePublicCertificateSlot", resp, "Failure responding to request") + return } return @@ -2536,6 +2556,7 @@ func (client AppsClient) CreateOrUpdateRelayServiceConnection(ctx context.Contex result, err = client.CreateOrUpdateRelayServiceConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateRelayServiceConnection", resp, "Failure responding to request") + return } return @@ -2627,6 +2648,7 @@ func (client AppsClient) CreateOrUpdateRelayServiceConnectionSlot(ctx context.Co result, err = client.CreateOrUpdateRelayServiceConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateRelayServiceConnectionSlot", resp, "Failure responding to request") + return } return @@ -3015,6 +3037,7 @@ func (client AppsClient) CreateOrUpdateVnetConnection(ctx context.Context, resou result, err = client.CreateOrUpdateVnetConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateVnetConnection", resp, "Failure responding to request") + return } return @@ -3107,6 +3130,7 @@ func (client AppsClient) CreateOrUpdateVnetConnectionGateway(ctx context.Context result, err = client.CreateOrUpdateVnetConnectionGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateVnetConnectionGateway", resp, "Failure responding to request") + return } return @@ -3202,6 +3226,7 @@ func (client AppsClient) CreateOrUpdateVnetConnectionGatewaySlot(ctx context.Con result, err = client.CreateOrUpdateVnetConnectionGatewaySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateVnetConnectionGatewaySlot", resp, "Failure responding to request") + return } return @@ -3295,6 +3320,7 @@ func (client AppsClient) CreateOrUpdateVnetConnectionSlot(ctx context.Context, r result, err = client.CreateOrUpdateVnetConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateVnetConnectionSlot", resp, "Failure responding to request") + return } return @@ -3385,6 +3411,7 @@ func (client AppsClient) Delete(ctx context.Context, resourceGroupName string, n result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Delete", resp, "Failure responding to request") + return } return @@ -3474,6 +3501,7 @@ func (client AppsClient) DeleteBackup(ctx context.Context, resourceGroupName str result, err = client.DeleteBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteBackup", resp, "Failure responding to request") + return } return @@ -3557,6 +3585,7 @@ func (client AppsClient) DeleteBackupConfiguration(ctx context.Context, resource result, err = client.DeleteBackupConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteBackupConfiguration", resp, "Failure responding to request") + return } return @@ -3641,6 +3670,7 @@ func (client AppsClient) DeleteBackupConfigurationSlot(ctx context.Context, reso result, err = client.DeleteBackupConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteBackupConfigurationSlot", resp, "Failure responding to request") + return } return @@ -3727,6 +3757,7 @@ func (client AppsClient) DeleteBackupSlot(ctx context.Context, resourceGroupName result, err = client.DeleteBackupSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteBackupSlot", resp, "Failure responding to request") + return } return @@ -3812,6 +3843,7 @@ func (client AppsClient) DeleteContinuousWebJob(ctx context.Context, resourceGro result, err = client.DeleteContinuousWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteContinuousWebJob", resp, "Failure responding to request") + return } return @@ -3898,6 +3930,7 @@ func (client AppsClient) DeleteContinuousWebJobSlot(ctx context.Context, resourc result, err = client.DeleteContinuousWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteContinuousWebJobSlot", resp, "Failure responding to request") + return } return @@ -3983,6 +4016,7 @@ func (client AppsClient) DeleteDeployment(ctx context.Context, resourceGroupName result, err = client.DeleteDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteDeployment", resp, "Failure responding to request") + return } return @@ -4069,6 +4103,7 @@ func (client AppsClient) DeleteDeploymentSlot(ctx context.Context, resourceGroup result, err = client.DeleteDeploymentSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteDeploymentSlot", resp, "Failure responding to request") + return } return @@ -4154,6 +4189,7 @@ func (client AppsClient) DeleteDomainOwnershipIdentifier(ctx context.Context, re result, err = client.DeleteDomainOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteDomainOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -4240,6 +4276,7 @@ func (client AppsClient) DeleteDomainOwnershipIdentifierSlot(ctx context.Context result, err = client.DeleteDomainOwnershipIdentifierSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteDomainOwnershipIdentifierSlot", resp, "Failure responding to request") + return } return @@ -4325,6 +4362,7 @@ func (client AppsClient) DeleteFunction(ctx context.Context, resourceGroupName s result, err = client.DeleteFunctionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteFunction", resp, "Failure responding to request") + return } return @@ -4409,6 +4447,7 @@ func (client AppsClient) DeleteHostNameBinding(ctx context.Context, resourceGrou result, err = client.DeleteHostNameBindingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHostNameBinding", resp, "Failure responding to request") + return } return @@ -4495,6 +4534,7 @@ func (client AppsClient) DeleteHostNameBindingSlot(ctx context.Context, resource result, err = client.DeleteHostNameBindingSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHostNameBindingSlot", resp, "Failure responding to request") + return } return @@ -4581,6 +4621,7 @@ func (client AppsClient) DeleteHybridConnection(ctx context.Context, resourceGro result, err = client.DeleteHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHybridConnection", resp, "Failure responding to request") + return } return @@ -4668,6 +4709,7 @@ func (client AppsClient) DeleteHybridConnectionSlot(ctx context.Context, resourc result, err = client.DeleteHybridConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHybridConnectionSlot", resp, "Failure responding to request") + return } return @@ -4756,6 +4798,7 @@ func (client AppsClient) DeleteInstanceFunctionSlot(ctx context.Context, resourc result, err = client.DeleteInstanceFunctionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteInstanceFunctionSlot", resp, "Failure responding to request") + return } return @@ -4844,6 +4887,7 @@ func (client AppsClient) DeleteInstanceProcess(ctx context.Context, resourceGrou result, err = client.DeleteInstanceProcessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteInstanceProcess", resp, "Failure responding to request") + return } return @@ -4934,6 +4978,7 @@ func (client AppsClient) DeleteInstanceProcessSlot(ctx context.Context, resource result, err = client.DeleteInstanceProcessSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteInstanceProcessSlot", resp, "Failure responding to request") + return } return @@ -5020,6 +5065,7 @@ func (client AppsClient) DeletePremierAddOn(ctx context.Context, resourceGroupNa result, err = client.DeletePremierAddOnResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeletePremierAddOn", resp, "Failure responding to request") + return } return @@ -5106,6 +5152,7 @@ func (client AppsClient) DeletePremierAddOnSlot(ctx context.Context, resourceGro result, err = client.DeletePremierAddOnSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeletePremierAddOnSlot", resp, "Failure responding to request") + return } return @@ -5192,6 +5239,7 @@ func (client AppsClient) DeleteProcess(ctx context.Context, resourceGroupName st result, err = client.DeleteProcessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteProcess", resp, "Failure responding to request") + return } return @@ -5279,6 +5327,7 @@ func (client AppsClient) DeleteProcessSlot(ctx context.Context, resourceGroupNam result, err = client.DeleteProcessSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteProcessSlot", resp, "Failure responding to request") + return } return @@ -5364,6 +5413,7 @@ func (client AppsClient) DeletePublicCertificate(ctx context.Context, resourceGr result, err = client.DeletePublicCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeletePublicCertificate", resp, "Failure responding to request") + return } return @@ -5450,6 +5500,7 @@ func (client AppsClient) DeletePublicCertificateSlot(ctx context.Context, resour result, err = client.DeletePublicCertificateSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeletePublicCertificateSlot", resp, "Failure responding to request") + return } return @@ -5535,6 +5586,7 @@ func (client AppsClient) DeleteRelayServiceConnection(ctx context.Context, resou result, err = client.DeleteRelayServiceConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteRelayServiceConnection", resp, "Failure responding to request") + return } return @@ -5621,6 +5673,7 @@ func (client AppsClient) DeleteRelayServiceConnectionSlot(ctx context.Context, r result, err = client.DeleteRelayServiceConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteRelayServiceConnectionSlot", resp, "Failure responding to request") + return } return @@ -5706,6 +5759,7 @@ func (client AppsClient) DeleteSiteExtension(ctx context.Context, resourceGroupN result, err = client.DeleteSiteExtensionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSiteExtension", resp, "Failure responding to request") + return } return @@ -5792,6 +5846,7 @@ func (client AppsClient) DeleteSiteExtensionSlot(ctx context.Context, resourceGr result, err = client.DeleteSiteExtensionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSiteExtensionSlot", resp, "Failure responding to request") + return } return @@ -5881,6 +5936,7 @@ func (client AppsClient) DeleteSlot(ctx context.Context, resourceGroupName strin result, err = client.DeleteSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSlot", resp, "Failure responding to request") + return } return @@ -5973,6 +6029,7 @@ func (client AppsClient) DeleteSourceControl(ctx context.Context, resourceGroupN result, err = client.DeleteSourceControlResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSourceControl", resp, "Failure responding to request") + return } return @@ -6057,6 +6114,7 @@ func (client AppsClient) DeleteSourceControlSlot(ctx context.Context, resourceGr result, err = client.DeleteSourceControlSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSourceControlSlot", resp, "Failure responding to request") + return } return @@ -6141,6 +6199,7 @@ func (client AppsClient) DeleteTriggeredWebJob(ctx context.Context, resourceGrou result, err = client.DeleteTriggeredWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteTriggeredWebJob", resp, "Failure responding to request") + return } return @@ -6227,6 +6286,7 @@ func (client AppsClient) DeleteTriggeredWebJobSlot(ctx context.Context, resource result, err = client.DeleteTriggeredWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteTriggeredWebJobSlot", resp, "Failure responding to request") + return } return @@ -6312,6 +6372,7 @@ func (client AppsClient) DeleteVnetConnection(ctx context.Context, resourceGroup result, err = client.DeleteVnetConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteVnetConnection", resp, "Failure responding to request") + return } return @@ -6398,6 +6459,7 @@ func (client AppsClient) DeleteVnetConnectionSlot(ctx context.Context, resourceG result, err = client.DeleteVnetConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteVnetConnectionSlot", resp, "Failure responding to request") + return } return @@ -6488,6 +6550,7 @@ func (client AppsClient) DiscoverRestore(ctx context.Context, resourceGroupName result, err = client.DiscoverRestoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DiscoverRestore", resp, "Failure responding to request") + return } return @@ -6581,6 +6644,7 @@ func (client AppsClient) DiscoverRestoreSlot(ctx context.Context, resourceGroupN result, err = client.DiscoverRestoreSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DiscoverRestoreSlot", resp, "Failure responding to request") + return } return @@ -6667,6 +6731,7 @@ func (client AppsClient) GenerateNewSitePublishingPassword(ctx context.Context, result, err = client.GenerateNewSitePublishingPasswordResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GenerateNewSitePublishingPassword", resp, "Failure responding to request") + return } return @@ -6752,6 +6817,7 @@ func (client AppsClient) GenerateNewSitePublishingPasswordSlot(ctx context.Conte result, err = client.GenerateNewSitePublishingPasswordSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GenerateNewSitePublishingPasswordSlot", resp, "Failure responding to request") + return } return @@ -6835,6 +6901,7 @@ func (client AppsClient) Get(ctx context.Context, resourceGroupName string, name result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Get", resp, "Failure responding to request") + return } return @@ -6918,6 +6985,7 @@ func (client AppsClient) GetAuthSettings(ctx context.Context, resourceGroupName result, err = client.GetAuthSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetAuthSettings", resp, "Failure responding to request") + return } return @@ -7003,6 +7071,7 @@ func (client AppsClient) GetAuthSettingsSlot(ctx context.Context, resourceGroupN result, err = client.GetAuthSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetAuthSettingsSlot", resp, "Failure responding to request") + return } return @@ -7087,6 +7156,7 @@ func (client AppsClient) GetBackupConfiguration(ctx context.Context, resourceGro result, err = client.GetBackupConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetBackupConfiguration", resp, "Failure responding to request") + return } return @@ -7172,6 +7242,7 @@ func (client AppsClient) GetBackupConfigurationSlot(ctx context.Context, resourc result, err = client.GetBackupConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetBackupConfigurationSlot", resp, "Failure responding to request") + return } return @@ -7257,6 +7328,7 @@ func (client AppsClient) GetBackupStatus(ctx context.Context, resourceGroupName result, err = client.GetBackupStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetBackupStatus", resp, "Failure responding to request") + return } return @@ -7344,6 +7416,7 @@ func (client AppsClient) GetBackupStatusSlot(ctx context.Context, resourceGroupN result, err = client.GetBackupStatusSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetBackupStatusSlot", resp, "Failure responding to request") + return } return @@ -7430,6 +7503,7 @@ func (client AppsClient) GetConfiguration(ctx context.Context, resourceGroupName result, err = client.GetConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetConfiguration", resp, "Failure responding to request") + return } return @@ -7516,6 +7590,7 @@ func (client AppsClient) GetConfigurationSlot(ctx context.Context, resourceGroup result, err = client.GetConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetConfigurationSlot", resp, "Failure responding to request") + return } return @@ -7601,6 +7676,7 @@ func (client AppsClient) GetConfigurationSnapshot(ctx context.Context, resourceG result, err = client.GetConfigurationSnapshotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetConfigurationSnapshot", resp, "Failure responding to request") + return } return @@ -7688,6 +7764,7 @@ func (client AppsClient) GetConfigurationSnapshotSlot(ctx context.Context, resou result, err = client.GetConfigurationSnapshotSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetConfigurationSnapshotSlot", resp, "Failure responding to request") + return } return @@ -7774,6 +7851,7 @@ func (client AppsClient) GetContinuousWebJob(ctx context.Context, resourceGroupN result, err = client.GetContinuousWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetContinuousWebJob", resp, "Failure responding to request") + return } return @@ -7861,6 +7939,7 @@ func (client AppsClient) GetContinuousWebJobSlot(ctx context.Context, resourceGr result, err = client.GetContinuousWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetContinuousWebJobSlot", resp, "Failure responding to request") + return } return @@ -7947,6 +8026,7 @@ func (client AppsClient) GetDeployment(ctx context.Context, resourceGroupName st result, err = client.GetDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetDeployment", resp, "Failure responding to request") + return } return @@ -8034,6 +8114,7 @@ func (client AppsClient) GetDeploymentSlot(ctx context.Context, resourceGroupNam result, err = client.GetDeploymentSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetDeploymentSlot", resp, "Failure responding to request") + return } return @@ -8119,6 +8200,7 @@ func (client AppsClient) GetDiagnosticLogsConfiguration(ctx context.Context, res result, err = client.GetDiagnosticLogsConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetDiagnosticLogsConfiguration", resp, "Failure responding to request") + return } return @@ -8204,6 +8286,7 @@ func (client AppsClient) GetDiagnosticLogsConfigurationSlot(ctx context.Context, result, err = client.GetDiagnosticLogsConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetDiagnosticLogsConfigurationSlot", resp, "Failure responding to request") + return } return @@ -8289,6 +8372,7 @@ func (client AppsClient) GetDomainOwnershipIdentifier(ctx context.Context, resou result, err = client.GetDomainOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetDomainOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -8376,6 +8460,7 @@ func (client AppsClient) GetDomainOwnershipIdentifierSlot(ctx context.Context, r result, err = client.GetDomainOwnershipIdentifierSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetDomainOwnershipIdentifierSlot", resp, "Failure responding to request") + return } return @@ -8462,6 +8547,7 @@ func (client AppsClient) GetFunction(ctx context.Context, resourceGroupName stri result, err = client.GetFunctionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetFunction", resp, "Failure responding to request") + return } return @@ -8546,6 +8632,7 @@ func (client AppsClient) GetFunctionsAdminToken(ctx context.Context, resourceGro result, err = client.GetFunctionsAdminTokenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetFunctionsAdminToken", resp, "Failure responding to request") + return } return @@ -8630,6 +8717,7 @@ func (client AppsClient) GetFunctionsAdminTokenSlot(ctx context.Context, resourc result, err = client.GetFunctionsAdminTokenSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetFunctionsAdminTokenSlot", resp, "Failure responding to request") + return } return @@ -8715,6 +8803,7 @@ func (client AppsClient) GetHostNameBinding(ctx context.Context, resourceGroupNa result, err = client.GetHostNameBindingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetHostNameBinding", resp, "Failure responding to request") + return } return @@ -8802,6 +8891,7 @@ func (client AppsClient) GetHostNameBindingSlot(ctx context.Context, resourceGro result, err = client.GetHostNameBindingSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetHostNameBindingSlot", resp, "Failure responding to request") + return } return @@ -8889,6 +8979,7 @@ func (client AppsClient) GetHybridConnection(ctx context.Context, resourceGroupN result, err = client.GetHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetHybridConnection", resp, "Failure responding to request") + return } return @@ -8977,6 +9068,7 @@ func (client AppsClient) GetHybridConnectionSlot(ctx context.Context, resourceGr result, err = client.GetHybridConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetHybridConnectionSlot", resp, "Failure responding to request") + return } return @@ -9066,6 +9158,7 @@ func (client AppsClient) GetInstanceFunctionSlot(ctx context.Context, resourceGr result, err = client.GetInstanceFunctionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceFunctionSlot", resp, "Failure responding to request") + return } return @@ -9152,6 +9245,7 @@ func (client AppsClient) GetInstanceMSDeployLog(ctx context.Context, resourceGro result, err = client.GetInstanceMSDeployLogResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceMSDeployLog", resp, "Failure responding to request") + return } return @@ -9238,6 +9332,7 @@ func (client AppsClient) GetInstanceMSDeployLogSlot(ctx context.Context, resourc result, err = client.GetInstanceMSDeployLogSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceMSDeployLogSlot", resp, "Failure responding to request") + return } return @@ -9324,6 +9419,7 @@ func (client AppsClient) GetInstanceMsDeployStatus(ctx context.Context, resource result, err = client.GetInstanceMsDeployStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceMsDeployStatus", resp, "Failure responding to request") + return } return @@ -9410,6 +9506,7 @@ func (client AppsClient) GetInstanceMsDeployStatusSlot(ctx context.Context, reso result, err = client.GetInstanceMsDeployStatusSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceMsDeployStatusSlot", resp, "Failure responding to request") + return } return @@ -9498,6 +9595,7 @@ func (client AppsClient) GetInstanceProcess(ctx context.Context, resourceGroupNa result, err = client.GetInstanceProcessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcess", resp, "Failure responding to request") + return } return @@ -9586,6 +9684,7 @@ func (client AppsClient) GetInstanceProcessDump(ctx context.Context, resourceGro result, err = client.GetInstanceProcessDumpResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessDump", resp, "Failure responding to request") + return } return @@ -9676,6 +9775,7 @@ func (client AppsClient) GetInstanceProcessDumpSlot(ctx context.Context, resourc result, err = client.GetInstanceProcessDumpSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessDumpSlot", resp, "Failure responding to request") + return } return @@ -9765,6 +9865,7 @@ func (client AppsClient) GetInstanceProcessModule(ctx context.Context, resourceG result, err = client.GetInstanceProcessModuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessModule", resp, "Failure responding to request") + return } return @@ -9857,6 +9958,7 @@ func (client AppsClient) GetInstanceProcessModuleSlot(ctx context.Context, resou result, err = client.GetInstanceProcessModuleSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessModuleSlot", resp, "Failure responding to request") + return } return @@ -9949,6 +10051,7 @@ func (client AppsClient) GetInstanceProcessSlot(ctx context.Context, resourceGro result, err = client.GetInstanceProcessSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessSlot", resp, "Failure responding to request") + return } return @@ -10040,6 +10143,7 @@ func (client AppsClient) GetInstanceProcessThread(ctx context.Context, resourceG result, err = client.GetInstanceProcessThreadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessThread", resp, "Failure responding to request") + return } return @@ -10133,6 +10237,7 @@ func (client AppsClient) GetInstanceProcessThreadSlot(ctx context.Context, resou result, err = client.GetInstanceProcessThreadSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessThreadSlot", resp, "Failure responding to request") + return } return @@ -10221,6 +10326,7 @@ func (client AppsClient) GetMigrateMySQLStatus(ctx context.Context, resourceGrou result, err = client.GetMigrateMySQLStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetMigrateMySQLStatus", resp, "Failure responding to request") + return } return @@ -10306,6 +10412,7 @@ func (client AppsClient) GetMigrateMySQLStatusSlot(ctx context.Context, resource result, err = client.GetMigrateMySQLStatusSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetMigrateMySQLStatusSlot", resp, "Failure responding to request") + return } return @@ -10390,6 +10497,7 @@ func (client AppsClient) GetMSDeployLog(ctx context.Context, resourceGroupName s result, err = client.GetMSDeployLogResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetMSDeployLog", resp, "Failure responding to request") + return } return @@ -10474,6 +10582,7 @@ func (client AppsClient) GetMSDeployLogSlot(ctx context.Context, resourceGroupNa result, err = client.GetMSDeployLogSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetMSDeployLogSlot", resp, "Failure responding to request") + return } return @@ -10558,6 +10667,7 @@ func (client AppsClient) GetMSDeployStatus(ctx context.Context, resourceGroupNam result, err = client.GetMSDeployStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetMSDeployStatus", resp, "Failure responding to request") + return } return @@ -10642,6 +10752,7 @@ func (client AppsClient) GetMSDeployStatusSlot(ctx context.Context, resourceGrou result, err = client.GetMSDeployStatusSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetMSDeployStatusSlot", resp, "Failure responding to request") + return } return @@ -10727,6 +10838,7 @@ func (client AppsClient) GetPremierAddOn(ctx context.Context, resourceGroupName result, err = client.GetPremierAddOnResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetPremierAddOn", resp, "Failure responding to request") + return } return @@ -10814,6 +10926,7 @@ func (client AppsClient) GetPremierAddOnSlot(ctx context.Context, resourceGroupN result, err = client.GetPremierAddOnSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetPremierAddOnSlot", resp, "Failure responding to request") + return } return @@ -10900,6 +11013,7 @@ func (client AppsClient) GetProcess(ctx context.Context, resourceGroupName strin result, err = client.GetProcessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcess", resp, "Failure responding to request") + return } return @@ -10985,6 +11099,7 @@ func (client AppsClient) GetProcessDump(ctx context.Context, resourceGroupName s result, err = client.GetProcessDumpResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessDump", resp, "Failure responding to request") + return } return @@ -11071,6 +11186,7 @@ func (client AppsClient) GetProcessDumpSlot(ctx context.Context, resourceGroupNa result, err = client.GetProcessDumpSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessDumpSlot", resp, "Failure responding to request") + return } return @@ -11157,6 +11273,7 @@ func (client AppsClient) GetProcessModule(ctx context.Context, resourceGroupName result, err = client.GetProcessModuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessModule", resp, "Failure responding to request") + return } return @@ -11246,6 +11363,7 @@ func (client AppsClient) GetProcessModuleSlot(ctx context.Context, resourceGroup result, err = client.GetProcessModuleSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessModuleSlot", resp, "Failure responding to request") + return } return @@ -11335,6 +11453,7 @@ func (client AppsClient) GetProcessSlot(ctx context.Context, resourceGroupName s result, err = client.GetProcessSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessSlot", resp, "Failure responding to request") + return } return @@ -11423,6 +11542,7 @@ func (client AppsClient) GetProcessThread(ctx context.Context, resourceGroupName result, err = client.GetProcessThreadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessThread", resp, "Failure responding to request") + return } return @@ -11513,6 +11633,7 @@ func (client AppsClient) GetProcessThreadSlot(ctx context.Context, resourceGroup result, err = client.GetProcessThreadSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessThreadSlot", resp, "Failure responding to request") + return } return @@ -11600,6 +11721,7 @@ func (client AppsClient) GetPublicCertificate(ctx context.Context, resourceGroup result, err = client.GetPublicCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetPublicCertificate", resp, "Failure responding to request") + return } return @@ -11687,6 +11809,7 @@ func (client AppsClient) GetPublicCertificateSlot(ctx context.Context, resourceG result, err = client.GetPublicCertificateSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetPublicCertificateSlot", resp, "Failure responding to request") + return } return @@ -11773,6 +11896,7 @@ func (client AppsClient) GetRelayServiceConnection(ctx context.Context, resource result, err = client.GetRelayServiceConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetRelayServiceConnection", resp, "Failure responding to request") + return } return @@ -11860,6 +11984,7 @@ func (client AppsClient) GetRelayServiceConnectionSlot(ctx context.Context, reso result, err = client.GetRelayServiceConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetRelayServiceConnectionSlot", resp, "Failure responding to request") + return } return @@ -11946,6 +12071,7 @@ func (client AppsClient) GetSiteExtension(ctx context.Context, resourceGroupName result, err = client.GetSiteExtensionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSiteExtension", resp, "Failure responding to request") + return } return @@ -12033,6 +12159,7 @@ func (client AppsClient) GetSiteExtensionSlot(ctx context.Context, resourceGroup result, err = client.GetSiteExtensionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSiteExtensionSlot", resp, "Failure responding to request") + return } return @@ -12118,6 +12245,7 @@ func (client AppsClient) GetSitePhpErrorLogFlag(ctx context.Context, resourceGro result, err = client.GetSitePhpErrorLogFlagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSitePhpErrorLogFlag", resp, "Failure responding to request") + return } return @@ -12202,6 +12330,7 @@ func (client AppsClient) GetSitePhpErrorLogFlagSlot(ctx context.Context, resourc result, err = client.GetSitePhpErrorLogFlagSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSitePhpErrorLogFlagSlot", resp, "Failure responding to request") + return } return @@ -12287,6 +12416,7 @@ func (client AppsClient) GetSlot(ctx context.Context, resourceGroupName string, result, err = client.GetSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSlot", resp, "Failure responding to request") + return } return @@ -12371,6 +12501,7 @@ func (client AppsClient) GetSourceControl(ctx context.Context, resourceGroupName result, err = client.GetSourceControlResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSourceControl", resp, "Failure responding to request") + return } return @@ -12456,6 +12587,7 @@ func (client AppsClient) GetSourceControlSlot(ctx context.Context, resourceGroup result, err = client.GetSourceControlSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSourceControlSlot", resp, "Failure responding to request") + return } return @@ -12541,6 +12673,7 @@ func (client AppsClient) GetTriggeredWebJob(ctx context.Context, resourceGroupNa result, err = client.GetTriggeredWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJob", resp, "Failure responding to request") + return } return @@ -12627,6 +12760,7 @@ func (client AppsClient) GetTriggeredWebJobHistory(ctx context.Context, resource result, err = client.GetTriggeredWebJobHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJobHistory", resp, "Failure responding to request") + return } return @@ -12716,6 +12850,7 @@ func (client AppsClient) GetTriggeredWebJobHistorySlot(ctx context.Context, reso result, err = client.GetTriggeredWebJobHistorySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJobHistorySlot", resp, "Failure responding to request") + return } return @@ -12805,6 +12940,7 @@ func (client AppsClient) GetTriggeredWebJobSlot(ctx context.Context, resourceGro result, err = client.GetTriggeredWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJobSlot", resp, "Failure responding to request") + return } return @@ -12891,6 +13027,7 @@ func (client AppsClient) GetVnetConnection(ctx context.Context, resourceGroupNam result, err = client.GetVnetConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetVnetConnection", resp, "Failure responding to request") + return } return @@ -12977,6 +13114,7 @@ func (client AppsClient) GetVnetConnectionGateway(ctx context.Context, resourceG result, err = client.GetVnetConnectionGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetVnetConnectionGateway", resp, "Failure responding to request") + return } return @@ -13066,6 +13204,7 @@ func (client AppsClient) GetVnetConnectionGatewaySlot(ctx context.Context, resou result, err = client.GetVnetConnectionGatewaySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetVnetConnectionGatewaySlot", resp, "Failure responding to request") + return } return @@ -13155,6 +13294,7 @@ func (client AppsClient) GetVnetConnectionSlot(ctx context.Context, resourceGrou result, err = client.GetVnetConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetVnetConnectionSlot", resp, "Failure responding to request") + return } return @@ -13241,6 +13381,7 @@ func (client AppsClient) GetWebJob(ctx context.Context, resourceGroupName string result, err = client.GetWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetWebJob", resp, "Failure responding to request") + return } return @@ -13328,6 +13469,7 @@ func (client AppsClient) GetWebJobSlot(ctx context.Context, resourceGroupName st result, err = client.GetWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetWebJobSlot", resp, "Failure responding to request") + return } return @@ -13413,6 +13555,7 @@ func (client AppsClient) GetWebSiteContainerLogs(ctx context.Context, resourceGr result, err = client.GetWebSiteContainerLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetWebSiteContainerLogs", resp, "Failure responding to request") + return } return @@ -13496,6 +13639,7 @@ func (client AppsClient) GetWebSiteContainerLogsSlot(ctx context.Context, resour result, err = client.GetWebSiteContainerLogsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetWebSiteContainerLogsSlot", resp, "Failure responding to request") + return } return @@ -13579,6 +13723,7 @@ func (client AppsClient) GetWebSiteContainerLogsZip(ctx context.Context, resourc result, err = client.GetWebSiteContainerLogsZipResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetWebSiteContainerLogsZip", resp, "Failure responding to request") + return } return @@ -13662,6 +13807,7 @@ func (client AppsClient) GetWebSiteContainerLogsZipSlot(ctx context.Context, res result, err = client.GetWebSiteContainerLogsZipSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetWebSiteContainerLogsZipSlot", resp, "Failure responding to request") + return } return @@ -13918,6 +14064,7 @@ func (client AppsClient) IsCloneable(ctx context.Context, resourceGroupName stri result, err = client.IsCloneableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "IsCloneable", resp, "Failure responding to request") + return } return @@ -14002,6 +14149,7 @@ func (client AppsClient) IsCloneableSlot(ctx context.Context, resourceGroupName result, err = client.IsCloneableSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "IsCloneableSlot", resp, "Failure responding to request") + return } return @@ -14076,6 +14224,7 @@ func (client AppsClient) List(ctx context.Context) (result AppCollectionPage, er result.ac, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "List", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -14138,6 +14287,7 @@ func (client AppsClient) listNextResults(ctx context.Context, lastResults AppCol result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -14197,6 +14347,7 @@ func (client AppsClient) ListApplicationSettings(ctx context.Context, resourceGr result, err = client.ListApplicationSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListApplicationSettings", resp, "Failure responding to request") + return } return @@ -14282,6 +14433,7 @@ func (client AppsClient) ListApplicationSettingsSlot(ctx context.Context, resour result, err = client.ListApplicationSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListApplicationSettingsSlot", resp, "Failure responding to request") + return } return @@ -14367,6 +14519,7 @@ func (client AppsClient) ListBackups(ctx context.Context, resourceGroupName stri result.bic, err = client.ListBackupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListBackups", resp, "Failure responding to request") + return } if result.bic.hasNextLink() && result.bic.IsEmpty() { err = result.NextWithContext(ctx) @@ -14431,6 +14584,7 @@ func (client AppsClient) listBackupsNextResults(ctx context.Context, lastResults result, err = client.ListBackupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listBackupsNextResults", resp, "Failure responding to next results request") + return } return } @@ -14493,6 +14647,7 @@ func (client AppsClient) ListBackupsSlot(ctx context.Context, resourceGroupName result.bic, err = client.ListBackupsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListBackupsSlot", resp, "Failure responding to request") + return } if result.bic.hasNextLink() && result.bic.IsEmpty() { err = result.NextWithContext(ctx) @@ -14558,6 +14713,7 @@ func (client AppsClient) listBackupsSlotNextResults(ctx context.Context, lastRes result, err = client.ListBackupsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listBackupsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -14631,6 +14787,7 @@ func (client AppsClient) ListBackupStatusSecrets(ctx context.Context, resourceGr result, err = client.ListBackupStatusSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListBackupStatusSecrets", resp, "Failure responding to request") + return } return @@ -14732,6 +14889,7 @@ func (client AppsClient) ListBackupStatusSecretsSlot(ctx context.Context, resour result, err = client.ListBackupStatusSecretsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListBackupStatusSecretsSlot", resp, "Failure responding to request") + return } return @@ -14821,6 +14979,7 @@ func (client AppsClient) ListByResourceGroup(ctx context.Context, resourceGroupN result.ac, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -14887,6 +15046,7 @@ func (client AppsClient) listByResourceGroupNextResults(ctx context.Context, las result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -14947,6 +15107,7 @@ func (client AppsClient) ListConfigurations(ctx context.Context, resourceGroupNa result.scrc, err = client.ListConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConfigurations", resp, "Failure responding to request") + return } if result.scrc.hasNextLink() && result.scrc.IsEmpty() { err = result.NextWithContext(ctx) @@ -15011,6 +15172,7 @@ func (client AppsClient) listConfigurationsNextResults(ctx context.Context, last result, err = client.ListConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -15072,6 +15234,7 @@ func (client AppsClient) ListConfigurationSnapshotInfo(ctx context.Context, reso result.scsic, err = client.ListConfigurationSnapshotInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConfigurationSnapshotInfo", resp, "Failure responding to request") + return } if result.scsic.hasNextLink() && result.scsic.IsEmpty() { err = result.NextWithContext(ctx) @@ -15136,6 +15299,7 @@ func (client AppsClient) listConfigurationSnapshotInfoNextResults(ctx context.Co result, err = client.ListConfigurationSnapshotInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listConfigurationSnapshotInfoNextResults", resp, "Failure responding to next results request") + return } return } @@ -15199,6 +15363,7 @@ func (client AppsClient) ListConfigurationSnapshotInfoSlot(ctx context.Context, result.scsic, err = client.ListConfigurationSnapshotInfoSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConfigurationSnapshotInfoSlot", resp, "Failure responding to request") + return } if result.scsic.hasNextLink() && result.scsic.IsEmpty() { err = result.NextWithContext(ctx) @@ -15264,6 +15429,7 @@ func (client AppsClient) listConfigurationSnapshotInfoSlotNextResults(ctx contex result, err = client.ListConfigurationSnapshotInfoSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listConfigurationSnapshotInfoSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -15326,6 +15492,7 @@ func (client AppsClient) ListConfigurationsSlot(ctx context.Context, resourceGro result.scrc, err = client.ListConfigurationsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConfigurationsSlot", resp, "Failure responding to request") + return } if result.scrc.hasNextLink() && result.scrc.IsEmpty() { err = result.NextWithContext(ctx) @@ -15391,6 +15558,7 @@ func (client AppsClient) listConfigurationsSlotNextResults(ctx context.Context, result, err = client.ListConfigurationsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listConfigurationsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -15450,6 +15618,7 @@ func (client AppsClient) ListConnectionStrings(ctx context.Context, resourceGrou result, err = client.ListConnectionStringsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConnectionStrings", resp, "Failure responding to request") + return } return @@ -15535,6 +15704,7 @@ func (client AppsClient) ListConnectionStringsSlot(ctx context.Context, resource result, err = client.ListConnectionStringsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConnectionStringsSlot", resp, "Failure responding to request") + return } return @@ -15620,6 +15790,7 @@ func (client AppsClient) ListContinuousWebJobs(ctx context.Context, resourceGrou result.cwjc, err = client.ListContinuousWebJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListContinuousWebJobs", resp, "Failure responding to request") + return } if result.cwjc.hasNextLink() && result.cwjc.IsEmpty() { err = result.NextWithContext(ctx) @@ -15684,6 +15855,7 @@ func (client AppsClient) listContinuousWebJobsNextResults(ctx context.Context, l result, err = client.ListContinuousWebJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listContinuousWebJobsNextResults", resp, "Failure responding to next results request") + return } return } @@ -15746,6 +15918,7 @@ func (client AppsClient) ListContinuousWebJobsSlot(ctx context.Context, resource result.cwjc, err = client.ListContinuousWebJobsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListContinuousWebJobsSlot", resp, "Failure responding to request") + return } if result.cwjc.hasNextLink() && result.cwjc.IsEmpty() { err = result.NextWithContext(ctx) @@ -15811,6 +15984,7 @@ func (client AppsClient) listContinuousWebJobsSlotNextResults(ctx context.Contex result, err = client.ListContinuousWebJobsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listContinuousWebJobsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -15872,6 +16046,7 @@ func (client AppsClient) ListDeploymentLog(ctx context.Context, resourceGroupNam result, err = client.ListDeploymentLogResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDeploymentLog", resp, "Failure responding to request") + return } return @@ -15960,6 +16135,7 @@ func (client AppsClient) ListDeploymentLogSlot(ctx context.Context, resourceGrou result, err = client.ListDeploymentLogSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDeploymentLogSlot", resp, "Failure responding to request") + return } return @@ -16046,6 +16222,7 @@ func (client AppsClient) ListDeployments(ctx context.Context, resourceGroupName result.dc, err = client.ListDeploymentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDeployments", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -16110,6 +16287,7 @@ func (client AppsClient) listDeploymentsNextResults(ctx context.Context, lastRes result, err = client.ListDeploymentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listDeploymentsNextResults", resp, "Failure responding to next results request") + return } return } @@ -16172,6 +16350,7 @@ func (client AppsClient) ListDeploymentsSlot(ctx context.Context, resourceGroupN result.dc, err = client.ListDeploymentsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDeploymentsSlot", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -16237,6 +16416,7 @@ func (client AppsClient) listDeploymentsSlotNextResults(ctx context.Context, las result, err = client.ListDeploymentsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listDeploymentsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -16297,6 +16477,7 @@ func (client AppsClient) ListDomainOwnershipIdentifiers(ctx context.Context, res result.ic, err = client.ListDomainOwnershipIdentifiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDomainOwnershipIdentifiers", resp, "Failure responding to request") + return } if result.ic.hasNextLink() && result.ic.IsEmpty() { err = result.NextWithContext(ctx) @@ -16361,6 +16542,7 @@ func (client AppsClient) listDomainOwnershipIdentifiersNextResults(ctx context.C result, err = client.ListDomainOwnershipIdentifiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listDomainOwnershipIdentifiersNextResults", resp, "Failure responding to next results request") + return } return } @@ -16423,6 +16605,7 @@ func (client AppsClient) ListDomainOwnershipIdentifiersSlot(ctx context.Context, result.ic, err = client.ListDomainOwnershipIdentifiersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDomainOwnershipIdentifiersSlot", resp, "Failure responding to request") + return } if result.ic.hasNextLink() && result.ic.IsEmpty() { err = result.NextWithContext(ctx) @@ -16488,6 +16671,7 @@ func (client AppsClient) listDomainOwnershipIdentifiersSlotNextResults(ctx conte result, err = client.ListDomainOwnershipIdentifiersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listDomainOwnershipIdentifiersSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -16548,6 +16732,7 @@ func (client AppsClient) ListFunctions(ctx context.Context, resourceGroupName st result.fec, err = client.ListFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListFunctions", resp, "Failure responding to request") + return } if result.fec.hasNextLink() && result.fec.IsEmpty() { err = result.NextWithContext(ctx) @@ -16612,6 +16797,7 @@ func (client AppsClient) listFunctionsNextResults(ctx context.Context, lastResul result, err = client.ListFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listFunctionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -16672,6 +16858,7 @@ func (client AppsClient) ListFunctionSecrets(ctx context.Context, resourceGroupN result, err = client.ListFunctionSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListFunctionSecrets", resp, "Failure responding to request") + return } return @@ -16759,6 +16946,7 @@ func (client AppsClient) ListFunctionSecretsSlot(ctx context.Context, resourceGr result, err = client.ListFunctionSecretsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListFunctionSecretsSlot", resp, "Failure responding to request") + return } return @@ -16845,6 +17033,7 @@ func (client AppsClient) ListHostNameBindings(ctx context.Context, resourceGroup result.hnbc, err = client.ListHostNameBindingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHostNameBindings", resp, "Failure responding to request") + return } if result.hnbc.hasNextLink() && result.hnbc.IsEmpty() { err = result.NextWithContext(ctx) @@ -16909,6 +17098,7 @@ func (client AppsClient) listHostNameBindingsNextResults(ctx context.Context, la result, err = client.ListHostNameBindingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listHostNameBindingsNextResults", resp, "Failure responding to next results request") + return } return } @@ -16971,6 +17161,7 @@ func (client AppsClient) ListHostNameBindingsSlot(ctx context.Context, resourceG result.hnbc, err = client.ListHostNameBindingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHostNameBindingsSlot", resp, "Failure responding to request") + return } if result.hnbc.hasNextLink() && result.hnbc.IsEmpty() { err = result.NextWithContext(ctx) @@ -17036,6 +17227,7 @@ func (client AppsClient) listHostNameBindingsSlotNextResults(ctx context.Context result, err = client.ListHostNameBindingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listHostNameBindingsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -17097,6 +17289,7 @@ func (client AppsClient) ListHybridConnectionKeys(ctx context.Context, resourceG result, err = client.ListHybridConnectionKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHybridConnectionKeys", resp, "Failure responding to request") + return } return @@ -17185,6 +17378,7 @@ func (client AppsClient) ListHybridConnectionKeysSlot(ctx context.Context, resou result, err = client.ListHybridConnectionKeysSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHybridConnectionKeysSlot", resp, "Failure responding to request") + return } return @@ -17271,6 +17465,7 @@ func (client AppsClient) ListHybridConnections(ctx context.Context, resourceGrou result, err = client.ListHybridConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHybridConnections", resp, "Failure responding to request") + return } return @@ -17355,6 +17550,7 @@ func (client AppsClient) ListHybridConnectionsSlot(ctx context.Context, resource result, err = client.ListHybridConnectionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHybridConnectionsSlot", resp, "Failure responding to request") + return } return @@ -17442,6 +17638,7 @@ func (client AppsClient) ListInstanceFunctionsSlot(ctx context.Context, resource result.fec, err = client.ListInstanceFunctionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceFunctionsSlot", resp, "Failure responding to request") + return } if result.fec.hasNextLink() && result.fec.IsEmpty() { err = result.NextWithContext(ctx) @@ -17507,6 +17704,7 @@ func (client AppsClient) listInstanceFunctionsSlotNextResults(ctx context.Contex result, err = client.ListInstanceFunctionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceFunctionsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -17567,6 +17765,7 @@ func (client AppsClient) ListInstanceIdentifiers(ctx context.Context, resourceGr result.aic, err = client.ListInstanceIdentifiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceIdentifiers", resp, "Failure responding to request") + return } if result.aic.hasNextLink() && result.aic.IsEmpty() { err = result.NextWithContext(ctx) @@ -17631,6 +17830,7 @@ func (client AppsClient) listInstanceIdentifiersNextResults(ctx context.Context, result, err = client.ListInstanceIdentifiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceIdentifiersNextResults", resp, "Failure responding to next results request") + return } return } @@ -17692,6 +17892,7 @@ func (client AppsClient) ListInstanceIdentifiersSlot(ctx context.Context, resour result.aic, err = client.ListInstanceIdentifiersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceIdentifiersSlot", resp, "Failure responding to request") + return } if result.aic.hasNextLink() && result.aic.IsEmpty() { err = result.NextWithContext(ctx) @@ -17757,6 +17958,7 @@ func (client AppsClient) listInstanceIdentifiersSlotNextResults(ctx context.Cont result, err = client.ListInstanceIdentifiersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceIdentifiersSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -17820,6 +18022,7 @@ func (client AppsClient) ListInstanceProcesses(ctx context.Context, resourceGrou result.pic, err = client.ListInstanceProcessesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcesses", resp, "Failure responding to request") + return } if result.pic.hasNextLink() && result.pic.IsEmpty() { err = result.NextWithContext(ctx) @@ -17885,6 +18088,7 @@ func (client AppsClient) listInstanceProcessesNextResults(ctx context.Context, l result, err = client.ListInstanceProcessesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceProcessesNextResults", resp, "Failure responding to next results request") + return } return } @@ -17950,6 +18154,7 @@ func (client AppsClient) ListInstanceProcessesSlot(ctx context.Context, resource result.pic, err = client.ListInstanceProcessesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcessesSlot", resp, "Failure responding to request") + return } if result.pic.hasNextLink() && result.pic.IsEmpty() { err = result.NextWithContext(ctx) @@ -18016,6 +18221,7 @@ func (client AppsClient) listInstanceProcessesSlotNextResults(ctx context.Contex result, err = client.ListInstanceProcessesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceProcessesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -18080,6 +18286,7 @@ func (client AppsClient) ListInstanceProcessModules(ctx context.Context, resourc result.pmic, err = client.ListInstanceProcessModulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcessModules", resp, "Failure responding to request") + return } if result.pmic.hasNextLink() && result.pmic.IsEmpty() { err = result.NextWithContext(ctx) @@ -18146,6 +18353,7 @@ func (client AppsClient) listInstanceProcessModulesNextResults(ctx context.Conte result, err = client.ListInstanceProcessModulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceProcessModulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -18212,6 +18420,7 @@ func (client AppsClient) ListInstanceProcessModulesSlot(ctx context.Context, res result.pmic, err = client.ListInstanceProcessModulesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcessModulesSlot", resp, "Failure responding to request") + return } if result.pmic.hasNextLink() && result.pmic.IsEmpty() { err = result.NextWithContext(ctx) @@ -18279,6 +18488,7 @@ func (client AppsClient) listInstanceProcessModulesSlotNextResults(ctx context.C result, err = client.ListInstanceProcessModulesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceProcessModulesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -18342,6 +18552,7 @@ func (client AppsClient) ListInstanceProcessThreads(ctx context.Context, resourc result.ptic, err = client.ListInstanceProcessThreadsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcessThreads", resp, "Failure responding to request") + return } if result.ptic.hasNextLink() && result.ptic.IsEmpty() { err = result.NextWithContext(ctx) @@ -18408,6 +18619,7 @@ func (client AppsClient) listInstanceProcessThreadsNextResults(ctx context.Conte result, err = client.ListInstanceProcessThreadsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceProcessThreadsNextResults", resp, "Failure responding to next results request") + return } return } @@ -18474,6 +18686,7 @@ func (client AppsClient) ListInstanceProcessThreadsSlot(ctx context.Context, res result.ptic, err = client.ListInstanceProcessThreadsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcessThreadsSlot", resp, "Failure responding to request") + return } if result.ptic.hasNextLink() && result.ptic.IsEmpty() { err = result.NextWithContext(ctx) @@ -18541,6 +18754,7 @@ func (client AppsClient) listInstanceProcessThreadsSlotNextResults(ctx context.C result, err = client.ListInstanceProcessThreadsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceProcessThreadsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -18600,6 +18814,7 @@ func (client AppsClient) ListMetadata(ctx context.Context, resourceGroupName str result, err = client.ListMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetadata", resp, "Failure responding to request") + return } return @@ -18685,6 +18900,7 @@ func (client AppsClient) ListMetadataSlot(ctx context.Context, resourceGroupName result, err = client.ListMetadataSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetadataSlot", resp, "Failure responding to request") + return } return @@ -18770,6 +18986,7 @@ func (client AppsClient) ListMetricDefinitions(ctx context.Context, resourceGrou result.rmdc, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -18834,6 +19051,7 @@ func (client AppsClient) listMetricDefinitionsNextResults(ctx context.Context, l result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listMetricDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -18896,6 +19114,7 @@ func (client AppsClient) ListMetricDefinitionsSlot(ctx context.Context, resource result.rmdc, err = client.ListMetricDefinitionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetricDefinitionsSlot", resp, "Failure responding to request") + return } if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -18961,6 +19180,7 @@ func (client AppsClient) listMetricDefinitionsSlotNextResults(ctx context.Contex result, err = client.ListMetricDefinitionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listMetricDefinitionsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -19025,6 +19245,7 @@ func (client AppsClient) ListMetrics(ctx context.Context, resourceGroupName stri result.rmc, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetrics", resp, "Failure responding to request") + return } if result.rmc.hasNextLink() && result.rmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -19095,6 +19316,7 @@ func (client AppsClient) listMetricsNextResults(ctx context.Context, lastResults result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -19161,6 +19383,7 @@ func (client AppsClient) ListMetricsSlot(ctx context.Context, resourceGroupName result.rmc, err = client.ListMetricsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetricsSlot", resp, "Failure responding to request") + return } if result.rmc.hasNextLink() && result.rmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -19232,6 +19455,7 @@ func (client AppsClient) listMetricsSlotNextResults(ctx context.Context, lastRes result, err = client.ListMetricsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listMetricsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -19292,6 +19516,7 @@ func (client AppsClient) ListNetworkFeatures(ctx context.Context, resourceGroupN result, err = client.ListNetworkFeaturesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListNetworkFeatures", resp, "Failure responding to request") + return } return @@ -19379,6 +19604,7 @@ func (client AppsClient) ListNetworkFeaturesSlot(ctx context.Context, resourceGr result, err = client.ListNetworkFeaturesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListNetworkFeaturesSlot", resp, "Failure responding to request") + return } return @@ -19468,6 +19694,7 @@ func (client AppsClient) ListPerfMonCounters(ctx context.Context, resourceGroupN result.pmcc, err = client.ListPerfMonCountersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPerfMonCounters", resp, "Failure responding to request") + return } if result.pmcc.hasNextLink() && result.pmcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -19535,6 +19762,7 @@ func (client AppsClient) listPerfMonCountersNextResults(ctx context.Context, las result, err = client.ListPerfMonCountersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listPerfMonCountersNextResults", resp, "Failure responding to next results request") + return } return } @@ -19599,6 +19827,7 @@ func (client AppsClient) ListPerfMonCountersSlot(ctx context.Context, resourceGr result.pmcc, err = client.ListPerfMonCountersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPerfMonCountersSlot", resp, "Failure responding to request") + return } if result.pmcc.hasNextLink() && result.pmcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -19667,6 +19896,7 @@ func (client AppsClient) listPerfMonCountersSlotNextResults(ctx context.Context, result, err = client.ListPerfMonCountersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listPerfMonCountersSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -19726,6 +19956,7 @@ func (client AppsClient) ListPremierAddOns(ctx context.Context, resourceGroupNam result, err = client.ListPremierAddOnsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPremierAddOns", resp, "Failure responding to request") + return } return @@ -19811,6 +20042,7 @@ func (client AppsClient) ListPremierAddOnsSlot(ctx context.Context, resourceGrou result, err = client.ListPremierAddOnsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPremierAddOnsSlot", resp, "Failure responding to request") + return } return @@ -19897,6 +20129,7 @@ func (client AppsClient) ListProcesses(ctx context.Context, resourceGroupName st result.pic, err = client.ListProcessesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcesses", resp, "Failure responding to request") + return } if result.pic.hasNextLink() && result.pic.IsEmpty() { err = result.NextWithContext(ctx) @@ -19961,6 +20194,7 @@ func (client AppsClient) listProcessesNextResults(ctx context.Context, lastResul result, err = client.ListProcessesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listProcessesNextResults", resp, "Failure responding to next results request") + return } return } @@ -20024,6 +20258,7 @@ func (client AppsClient) ListProcessesSlot(ctx context.Context, resourceGroupNam result.pic, err = client.ListProcessesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcessesSlot", resp, "Failure responding to request") + return } if result.pic.hasNextLink() && result.pic.IsEmpty() { err = result.NextWithContext(ctx) @@ -20089,6 +20324,7 @@ func (client AppsClient) listProcessesSlotNextResults(ctx context.Context, lastR result, err = client.ListProcessesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listProcessesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -20150,6 +20386,7 @@ func (client AppsClient) ListProcessModules(ctx context.Context, resourceGroupNa result.pmic, err = client.ListProcessModulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcessModules", resp, "Failure responding to request") + return } if result.pmic.hasNextLink() && result.pmic.IsEmpty() { err = result.NextWithContext(ctx) @@ -20215,6 +20452,7 @@ func (client AppsClient) listProcessModulesNextResults(ctx context.Context, last result, err = client.ListProcessModulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listProcessModulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -20279,6 +20517,7 @@ func (client AppsClient) ListProcessModulesSlot(ctx context.Context, resourceGro result.pmic, err = client.ListProcessModulesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcessModulesSlot", resp, "Failure responding to request") + return } if result.pmic.hasNextLink() && result.pmic.IsEmpty() { err = result.NextWithContext(ctx) @@ -20345,6 +20584,7 @@ func (client AppsClient) listProcessModulesSlotNextResults(ctx context.Context, result, err = client.ListProcessModulesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listProcessModulesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -20406,6 +20646,7 @@ func (client AppsClient) ListProcessThreads(ctx context.Context, resourceGroupNa result.ptic, err = client.ListProcessThreadsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcessThreads", resp, "Failure responding to request") + return } if result.ptic.hasNextLink() && result.ptic.IsEmpty() { err = result.NextWithContext(ctx) @@ -20471,6 +20712,7 @@ func (client AppsClient) listProcessThreadsNextResults(ctx context.Context, last result, err = client.ListProcessThreadsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listProcessThreadsNextResults", resp, "Failure responding to next results request") + return } return } @@ -20534,6 +20776,7 @@ func (client AppsClient) ListProcessThreadsSlot(ctx context.Context, resourceGro result.ptic, err = client.ListProcessThreadsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcessThreadsSlot", resp, "Failure responding to request") + return } if result.ptic.hasNextLink() && result.ptic.IsEmpty() { err = result.NextWithContext(ctx) @@ -20600,6 +20843,7 @@ func (client AppsClient) listProcessThreadsSlotNextResults(ctx context.Context, result, err = client.ListProcessThreadsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listProcessThreadsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -20660,6 +20904,7 @@ func (client AppsClient) ListPublicCertificates(ctx context.Context, resourceGro result.pcc, err = client.ListPublicCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPublicCertificates", resp, "Failure responding to request") + return } if result.pcc.hasNextLink() && result.pcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -20724,6 +20969,7 @@ func (client AppsClient) listPublicCertificatesNextResults(ctx context.Context, result, err = client.ListPublicCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listPublicCertificatesNextResults", resp, "Failure responding to next results request") + return } return } @@ -20786,6 +21032,7 @@ func (client AppsClient) ListPublicCertificatesSlot(ctx context.Context, resourc result.pcc, err = client.ListPublicCertificatesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPublicCertificatesSlot", resp, "Failure responding to request") + return } if result.pcc.hasNextLink() && result.pcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -20851,6 +21098,7 @@ func (client AppsClient) listPublicCertificatesSlotNextResults(ctx context.Conte result, err = client.ListPublicCertificatesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listPublicCertificatesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -21081,6 +21329,7 @@ func (client AppsClient) ListPublishingProfileXMLWithSecrets(ctx context.Context result, err = client.ListPublishingProfileXMLWithSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPublishingProfileXMLWithSecrets", resp, "Failure responding to request") + return } return @@ -21169,6 +21418,7 @@ func (client AppsClient) ListPublishingProfileXMLWithSecretsSlot(ctx context.Con result, err = client.ListPublishingProfileXMLWithSecretsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPublishingProfileXMLWithSecretsSlot", resp, "Failure responding to request") + return } return @@ -21254,6 +21504,7 @@ func (client AppsClient) ListRelayServiceConnections(ctx context.Context, resour result, err = client.ListRelayServiceConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListRelayServiceConnections", resp, "Failure responding to request") + return } return @@ -21339,6 +21590,7 @@ func (client AppsClient) ListRelayServiceConnectionsSlot(ctx context.Context, re result, err = client.ListRelayServiceConnectionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListRelayServiceConnectionsSlot", resp, "Failure responding to request") + return } return @@ -21424,6 +21676,7 @@ func (client AppsClient) ListSiteExtensions(ctx context.Context, resourceGroupNa result.seic, err = client.ListSiteExtensionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSiteExtensions", resp, "Failure responding to request") + return } if result.seic.hasNextLink() && result.seic.IsEmpty() { err = result.NextWithContext(ctx) @@ -21488,6 +21741,7 @@ func (client AppsClient) listSiteExtensionsNextResults(ctx context.Context, last result, err = client.ListSiteExtensionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSiteExtensionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -21550,6 +21804,7 @@ func (client AppsClient) ListSiteExtensionsSlot(ctx context.Context, resourceGro result.seic, err = client.ListSiteExtensionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSiteExtensionsSlot", resp, "Failure responding to request") + return } if result.seic.hasNextLink() && result.seic.IsEmpty() { err = result.NextWithContext(ctx) @@ -21615,6 +21870,7 @@ func (client AppsClient) listSiteExtensionsSlotNextResults(ctx context.Context, result, err = client.ListSiteExtensionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSiteExtensionsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -21674,6 +21930,7 @@ func (client AppsClient) ListSitePushSettings(ctx context.Context, resourceGroup result, err = client.ListSitePushSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSitePushSettings", resp, "Failure responding to request") + return } return @@ -21758,6 +22015,7 @@ func (client AppsClient) ListSitePushSettingsSlot(ctx context.Context, resourceG result, err = client.ListSitePushSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSitePushSettingsSlot", resp, "Failure responding to request") + return } return @@ -21843,6 +22101,7 @@ func (client AppsClient) ListSlotConfigurationNames(ctx context.Context, resourc result, err = client.ListSlotConfigurationNamesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSlotConfigurationNames", resp, "Failure responding to request") + return } return @@ -21931,6 +22190,7 @@ func (client AppsClient) ListSlotDifferencesFromProduction(ctx context.Context, result.sdc, err = client.ListSlotDifferencesFromProductionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSlotDifferencesFromProduction", resp, "Failure responding to request") + return } if result.sdc.hasNextLink() && result.sdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -21997,6 +22257,7 @@ func (client AppsClient) listSlotDifferencesFromProductionNextResults(ctx contex result, err = client.ListSlotDifferencesFromProductionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSlotDifferencesFromProductionNextResults", resp, "Failure responding to next results request") + return } return } @@ -22062,6 +22323,7 @@ func (client AppsClient) ListSlotDifferencesSlot(ctx context.Context, resourceGr result.sdc, err = client.ListSlotDifferencesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSlotDifferencesSlot", resp, "Failure responding to request") + return } if result.sdc.hasNextLink() && result.sdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -22129,6 +22391,7 @@ func (client AppsClient) listSlotDifferencesSlotNextResults(ctx context.Context, result, err = client.ListSlotDifferencesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSlotDifferencesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -22189,6 +22452,7 @@ func (client AppsClient) ListSlots(ctx context.Context, resourceGroupName string result.ac, err = client.ListSlotsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSlots", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -22253,6 +22517,7 @@ func (client AppsClient) listSlotsNextResults(ctx context.Context, lastResults A result, err = client.ListSlotsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSlotsNextResults", resp, "Failure responding to next results request") + return } return } @@ -22313,6 +22578,7 @@ func (client AppsClient) ListSnapshots(ctx context.Context, resourceGroupName st result.sc, err = client.ListSnapshotsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSnapshots", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -22377,6 +22643,7 @@ func (client AppsClient) listSnapshotsNextResults(ctx context.Context, lastResul result, err = client.ListSnapshotsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSnapshotsNextResults", resp, "Failure responding to next results request") + return } return } @@ -22438,6 +22705,7 @@ func (client AppsClient) ListSnapshotsSlot(ctx context.Context, resourceGroupNam result.sc, err = client.ListSnapshotsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSnapshotsSlot", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -22503,6 +22771,7 @@ func (client AppsClient) listSnapshotsSlotNextResults(ctx context.Context, lastR result, err = client.ListSnapshotsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSnapshotsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -22562,6 +22831,7 @@ func (client AppsClient) ListSyncFunctionTriggers(ctx context.Context, resourceG result, err = client.ListSyncFunctionTriggersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSyncFunctionTriggers", resp, "Failure responding to request") + return } return @@ -22647,6 +22917,7 @@ func (client AppsClient) ListSyncFunctionTriggersSlot(ctx context.Context, resou result, err = client.ListSyncFunctionTriggersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSyncFunctionTriggersSlot", resp, "Failure responding to request") + return } return @@ -22733,6 +23004,7 @@ func (client AppsClient) ListTriggeredWebJobHistory(ctx context.Context, resourc result.tjhc, err = client.ListTriggeredWebJobHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListTriggeredWebJobHistory", resp, "Failure responding to request") + return } if result.tjhc.hasNextLink() && result.tjhc.IsEmpty() { err = result.NextWithContext(ctx) @@ -22798,6 +23070,7 @@ func (client AppsClient) listTriggeredWebJobHistoryNextResults(ctx context.Conte result, err = client.ListTriggeredWebJobHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listTriggeredWebJobHistoryNextResults", resp, "Failure responding to next results request") + return } return } @@ -22861,6 +23134,7 @@ func (client AppsClient) ListTriggeredWebJobHistorySlot(ctx context.Context, res result.tjhc, err = client.ListTriggeredWebJobHistorySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListTriggeredWebJobHistorySlot", resp, "Failure responding to request") + return } if result.tjhc.hasNextLink() && result.tjhc.IsEmpty() { err = result.NextWithContext(ctx) @@ -22927,6 +23201,7 @@ func (client AppsClient) listTriggeredWebJobHistorySlotNextResults(ctx context.C result, err = client.ListTriggeredWebJobHistorySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listTriggeredWebJobHistorySlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -22987,6 +23262,7 @@ func (client AppsClient) ListTriggeredWebJobs(ctx context.Context, resourceGroup result.twjc, err = client.ListTriggeredWebJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListTriggeredWebJobs", resp, "Failure responding to request") + return } if result.twjc.hasNextLink() && result.twjc.IsEmpty() { err = result.NextWithContext(ctx) @@ -23051,6 +23327,7 @@ func (client AppsClient) listTriggeredWebJobsNextResults(ctx context.Context, la result, err = client.ListTriggeredWebJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listTriggeredWebJobsNextResults", resp, "Failure responding to next results request") + return } return } @@ -23113,6 +23390,7 @@ func (client AppsClient) ListTriggeredWebJobsSlot(ctx context.Context, resourceG result.twjc, err = client.ListTriggeredWebJobsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListTriggeredWebJobsSlot", resp, "Failure responding to request") + return } if result.twjc.hasNextLink() && result.twjc.IsEmpty() { err = result.NextWithContext(ctx) @@ -23178,6 +23456,7 @@ func (client AppsClient) listTriggeredWebJobsSlotNextResults(ctx context.Context result, err = client.ListTriggeredWebJobsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listTriggeredWebJobsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -23241,6 +23520,7 @@ func (client AppsClient) ListUsages(ctx context.Context, resourceGroupName strin result.cuqc, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListUsages", resp, "Failure responding to request") + return } if result.cuqc.hasNextLink() && result.cuqc.IsEmpty() { err = result.NextWithContext(ctx) @@ -23308,6 +23588,7 @@ func (client AppsClient) listUsagesNextResults(ctx context.Context, lastResults result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listUsagesNextResults", resp, "Failure responding to next results request") + return } return } @@ -23373,6 +23654,7 @@ func (client AppsClient) ListUsagesSlot(ctx context.Context, resourceGroupName s result.cuqc, err = client.ListUsagesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListUsagesSlot", resp, "Failure responding to request") + return } if result.cuqc.hasNextLink() && result.cuqc.IsEmpty() { err = result.NextWithContext(ctx) @@ -23441,6 +23723,7 @@ func (client AppsClient) listUsagesSlotNextResults(ctx context.Context, lastResu result, err = client.ListUsagesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listUsagesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -23500,6 +23783,7 @@ func (client AppsClient) ListVnetConnections(ctx context.Context, resourceGroupN result, err = client.ListVnetConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListVnetConnections", resp, "Failure responding to request") + return } return @@ -23585,6 +23869,7 @@ func (client AppsClient) ListVnetConnectionsSlot(ctx context.Context, resourceGr result, err = client.ListVnetConnectionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListVnetConnectionsSlot", resp, "Failure responding to request") + return } return @@ -23670,6 +23955,7 @@ func (client AppsClient) ListWebJobs(ctx context.Context, resourceGroupName stri result.jc, err = client.ListWebJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListWebJobs", resp, "Failure responding to request") + return } if result.jc.hasNextLink() && result.jc.IsEmpty() { err = result.NextWithContext(ctx) @@ -23734,6 +24020,7 @@ func (client AppsClient) listWebJobsNextResults(ctx context.Context, lastResults result, err = client.ListWebJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listWebJobsNextResults", resp, "Failure responding to next results request") + return } return } @@ -23796,6 +24083,7 @@ func (client AppsClient) ListWebJobsSlot(ctx context.Context, resourceGroupName result.jc, err = client.ListWebJobsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListWebJobsSlot", resp, "Failure responding to request") + return } if result.jc.hasNextLink() && result.jc.IsEmpty() { err = result.NextWithContext(ctx) @@ -23861,6 +24149,7 @@ func (client AppsClient) listWebJobsSlotNextResults(ctx context.Context, lastRes result, err = client.ListWebJobsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listWebJobsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -24192,6 +24481,7 @@ func (client AppsClient) RecoverSiteConfigurationSnapshot(ctx context.Context, r result, err = client.RecoverSiteConfigurationSnapshotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "RecoverSiteConfigurationSnapshot", resp, "Failure responding to request") + return } return @@ -24278,6 +24568,7 @@ func (client AppsClient) RecoverSiteConfigurationSnapshotSlot(ctx context.Contex result, err = client.RecoverSiteConfigurationSnapshotSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "RecoverSiteConfigurationSnapshotSlot", resp, "Failure responding to request") + return } return @@ -24454,6 +24745,7 @@ func (client AppsClient) ResetProductionSlotConfig(ctx context.Context, resource result, err = client.ResetProductionSlotConfigResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ResetProductionSlotConfig", resp, "Failure responding to request") + return } return @@ -24539,6 +24831,7 @@ func (client AppsClient) ResetSlotConfigurationSlot(ctx context.Context, resourc result, err = client.ResetSlotConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ResetSlotConfigurationSlot", resp, "Failure responding to request") + return } return @@ -24626,6 +24919,7 @@ func (client AppsClient) Restart(ctx context.Context, resourceGroupName string, result, err = client.RestartResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Restart", resp, "Failure responding to request") + return } return @@ -24719,6 +25013,7 @@ func (client AppsClient) RestartSlot(ctx context.Context, resourceGroupName stri result, err = client.RestartSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "RestartSlot", resp, "Failure responding to request") + return } return @@ -24998,6 +25293,7 @@ func (client AppsClient) RunTriggeredWebJob(ctx context.Context, resourceGroupNa result, err = client.RunTriggeredWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "RunTriggeredWebJob", resp, "Failure responding to request") + return } return @@ -25084,6 +25380,7 @@ func (client AppsClient) RunTriggeredWebJobSlot(ctx context.Context, resourceGro result, err = client.RunTriggeredWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "RunTriggeredWebJobSlot", resp, "Failure responding to request") + return } return @@ -25168,6 +25465,7 @@ func (client AppsClient) Start(ctx context.Context, resourceGroupName string, na result, err = client.StartResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Start", resp, "Failure responding to request") + return } return @@ -25251,6 +25549,7 @@ func (client AppsClient) StartContinuousWebJob(ctx context.Context, resourceGrou result, err = client.StartContinuousWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StartContinuousWebJob", resp, "Failure responding to request") + return } return @@ -25337,6 +25636,7 @@ func (client AppsClient) StartContinuousWebJobSlot(ctx context.Context, resource result, err = client.StartContinuousWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StartContinuousWebJobSlot", resp, "Failure responding to request") + return } return @@ -25422,6 +25722,7 @@ func (client AppsClient) StartSlot(ctx context.Context, resourceGroupName string result, err = client.StartSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StartSlot", resp, "Failure responding to request") + return } return @@ -25508,6 +25809,7 @@ func (client AppsClient) StartWebSiteNetworkTrace(ctx context.Context, resourceG result, err = client.StartWebSiteNetworkTraceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StartWebSiteNetworkTrace", resp, "Failure responding to request") + return } return @@ -25604,6 +25906,7 @@ func (client AppsClient) StartWebSiteNetworkTraceSlot(ctx context.Context, resou result, err = client.StartWebSiteNetworkTraceSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StartWebSiteNetworkTraceSlot", resp, "Failure responding to request") + return } return @@ -25697,6 +26000,7 @@ func (client AppsClient) Stop(ctx context.Context, resourceGroupName string, nam result, err = client.StopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Stop", resp, "Failure responding to request") + return } return @@ -25780,6 +26084,7 @@ func (client AppsClient) StopContinuousWebJob(ctx context.Context, resourceGroup result, err = client.StopContinuousWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StopContinuousWebJob", resp, "Failure responding to request") + return } return @@ -25866,6 +26171,7 @@ func (client AppsClient) StopContinuousWebJobSlot(ctx context.Context, resourceG result, err = client.StopContinuousWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StopContinuousWebJobSlot", resp, "Failure responding to request") + return } return @@ -25951,6 +26257,7 @@ func (client AppsClient) StopSlot(ctx context.Context, resourceGroupName string, result, err = client.StopSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StopSlot", resp, "Failure responding to request") + return } return @@ -26034,6 +26341,7 @@ func (client AppsClient) StopWebSiteNetworkTrace(ctx context.Context, resourceGr result, err = client.StopWebSiteNetworkTraceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StopWebSiteNetworkTrace", resp, "Failure responding to request") + return } return @@ -26118,6 +26426,7 @@ func (client AppsClient) StopWebSiteNetworkTraceSlot(ctx context.Context, resour result, err = client.StopWebSiteNetworkTraceSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StopWebSiteNetworkTraceSlot", resp, "Failure responding to request") + return } return @@ -26380,6 +26689,7 @@ func (client AppsClient) SyncFunctionTriggers(ctx context.Context, resourceGroup result, err = client.SyncFunctionTriggersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncFunctionTriggers", resp, "Failure responding to request") + return } return @@ -26464,6 +26774,7 @@ func (client AppsClient) SyncFunctionTriggersSlot(ctx context.Context, resourceG result, err = client.SyncFunctionTriggersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncFunctionTriggersSlot", resp, "Failure responding to request") + return } return @@ -26547,6 +26858,7 @@ func (client AppsClient) SyncRepository(ctx context.Context, resourceGroupName s result, err = client.SyncRepositoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncRepository", resp, "Failure responding to request") + return } return @@ -26630,6 +26942,7 @@ func (client AppsClient) SyncRepositorySlot(ctx context.Context, resourceGroupNa result, err = client.SyncRepositorySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncRepositorySlot", resp, "Failure responding to request") + return } return @@ -26715,6 +27028,7 @@ func (client AppsClient) Update(ctx context.Context, resourceGroupName string, n result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Update", resp, "Failure responding to request") + return } return @@ -26801,6 +27115,7 @@ func (client AppsClient) UpdateApplicationSettings(ctx context.Context, resource result, err = client.UpdateApplicationSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateApplicationSettings", resp, "Failure responding to request") + return } return @@ -26889,6 +27204,7 @@ func (client AppsClient) UpdateApplicationSettingsSlot(ctx context.Context, reso result, err = client.UpdateApplicationSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateApplicationSettingsSlot", resp, "Failure responding to request") + return } return @@ -26976,6 +27292,7 @@ func (client AppsClient) UpdateAuthSettings(ctx context.Context, resourceGroupNa result, err = client.UpdateAuthSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateAuthSettings", resp, "Failure responding to request") + return } return @@ -27063,6 +27380,7 @@ func (client AppsClient) UpdateAuthSettingsSlot(ctx context.Context, resourceGro result, err = client.UpdateAuthSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateAuthSettingsSlot", resp, "Failure responding to request") + return } return @@ -27160,6 +27478,7 @@ func (client AppsClient) UpdateBackupConfiguration(ctx context.Context, resource result, err = client.UpdateBackupConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateBackupConfiguration", resp, "Failure responding to request") + return } return @@ -27258,6 +27577,7 @@ func (client AppsClient) UpdateBackupConfigurationSlot(ctx context.Context, reso result, err = client.UpdateBackupConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateBackupConfigurationSlot", resp, "Failure responding to request") + return } return @@ -27345,6 +27665,7 @@ func (client AppsClient) UpdateConfiguration(ctx context.Context, resourceGroupN result, err = client.UpdateConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateConfiguration", resp, "Failure responding to request") + return } return @@ -27433,6 +27754,7 @@ func (client AppsClient) UpdateConfigurationSlot(ctx context.Context, resourceGr result, err = client.UpdateConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateConfigurationSlot", resp, "Failure responding to request") + return } return @@ -27520,6 +27842,7 @@ func (client AppsClient) UpdateConnectionStrings(ctx context.Context, resourceGr result, err = client.UpdateConnectionStringsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateConnectionStrings", resp, "Failure responding to request") + return } return @@ -27608,6 +27931,7 @@ func (client AppsClient) UpdateConnectionStringsSlot(ctx context.Context, resour result, err = client.UpdateConnectionStringsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateConnectionStringsSlot", resp, "Failure responding to request") + return } return @@ -27711,6 +28035,7 @@ func (client AppsClient) UpdateDiagnosticLogsConfig(ctx context.Context, resourc result, err = client.UpdateDiagnosticLogsConfigResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateDiagnosticLogsConfig", resp, "Failure responding to request") + return } return @@ -27815,6 +28140,7 @@ func (client AppsClient) UpdateDiagnosticLogsConfigSlot(ctx context.Context, res result, err = client.UpdateDiagnosticLogsConfigSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateDiagnosticLogsConfigSlot", resp, "Failure responding to request") + return } return @@ -27904,6 +28230,7 @@ func (client AppsClient) UpdateDomainOwnershipIdentifier(ctx context.Context, re result, err = client.UpdateDomainOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateDomainOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -27995,6 +28322,7 @@ func (client AppsClient) UpdateDomainOwnershipIdentifierSlot(ctx context.Context result, err = client.UpdateDomainOwnershipIdentifierSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateDomainOwnershipIdentifierSlot", resp, "Failure responding to request") + return } return @@ -28085,6 +28413,7 @@ func (client AppsClient) UpdateHybridConnection(ctx context.Context, resourceGro result, err = client.UpdateHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateHybridConnection", resp, "Failure responding to request") + return } return @@ -28176,6 +28505,7 @@ func (client AppsClient) UpdateHybridConnectionSlot(ctx context.Context, resourc result, err = client.UpdateHybridConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateHybridConnectionSlot", resp, "Failure responding to request") + return } return @@ -28265,6 +28595,7 @@ func (client AppsClient) UpdateMetadata(ctx context.Context, resourceGroupName s result, err = client.UpdateMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateMetadata", resp, "Failure responding to request") + return } return @@ -28353,6 +28684,7 @@ func (client AppsClient) UpdateMetadataSlot(ctx context.Context, resourceGroupNa result, err = client.UpdateMetadataSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateMetadataSlot", resp, "Failure responding to request") + return } return @@ -28442,6 +28774,7 @@ func (client AppsClient) UpdateRelayServiceConnection(ctx context.Context, resou result, err = client.UpdateRelayServiceConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateRelayServiceConnection", resp, "Failure responding to request") + return } return @@ -28533,6 +28866,7 @@ func (client AppsClient) UpdateRelayServiceConnectionSlot(ctx context.Context, r result, err = client.UpdateRelayServiceConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateRelayServiceConnectionSlot", resp, "Failure responding to request") + return } return @@ -28624,6 +28958,7 @@ func (client AppsClient) UpdateSitePushSettings(ctx context.Context, resourceGro result, err = client.UpdateSitePushSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSitePushSettings", resp, "Failure responding to request") + return } return @@ -28714,6 +29049,7 @@ func (client AppsClient) UpdateSitePushSettingsSlot(ctx context.Context, resourc result, err = client.UpdateSitePushSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSitePushSettingsSlot", resp, "Failure responding to request") + return } return @@ -28810,6 +29146,7 @@ func (client AppsClient) UpdateSlot(ctx context.Context, resourceGroupName strin result, err = client.UpdateSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSlot", resp, "Failure responding to request") + return } return @@ -28910,6 +29247,7 @@ func (client AppsClient) UpdateSlotConfigurationNames(ctx context.Context, resou result, err = client.UpdateSlotConfigurationNamesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSlotConfigurationNames", resp, "Failure responding to request") + return } return @@ -28996,6 +29334,7 @@ func (client AppsClient) UpdateSourceControl(ctx context.Context, resourceGroupN result, err = client.UpdateSourceControlResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSourceControl", resp, "Failure responding to request") + return } return @@ -29084,6 +29423,7 @@ func (client AppsClient) UpdateSourceControlSlot(ctx context.Context, resourceGr result, err = client.UpdateSourceControlSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSourceControlSlot", resp, "Failure responding to request") + return } return @@ -29173,6 +29513,7 @@ func (client AppsClient) UpdateVnetConnection(ctx context.Context, resourceGroup result, err = client.UpdateVnetConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateVnetConnection", resp, "Failure responding to request") + return } return @@ -29262,6 +29603,7 @@ func (client AppsClient) UpdateVnetConnectionGateway(ctx context.Context, resour result, err = client.UpdateVnetConnectionGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateVnetConnectionGateway", resp, "Failure responding to request") + return } return @@ -29354,6 +29696,7 @@ func (client AppsClient) UpdateVnetConnectionGatewaySlot(ctx context.Context, re result, err = client.UpdateVnetConnectionGatewaySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateVnetConnectionGatewaySlot", resp, "Failure responding to request") + return } return @@ -29447,6 +29790,7 @@ func (client AppsClient) UpdateVnetConnectionSlot(ctx context.Context, resourceG result, err = client.UpdateVnetConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateVnetConnectionSlot", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2016-09-01/web/appservicecertificateorders.go b/services/web/mgmt/2016-09-01/web/appservicecertificateorders.go index 634914129206..fb244bffb1e1 100644 --- a/services/web/mgmt/2016-09-01/web/appservicecertificateorders.go +++ b/services/web/mgmt/2016-09-01/web/appservicecertificateorders.go @@ -263,6 +263,7 @@ func (client AppServiceCertificateOrdersClient) Delete(ctx context.Context, reso result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "Delete", resp, "Failure responding to request") + return } return @@ -346,6 +347,7 @@ func (client AppServiceCertificateOrdersClient) DeleteCertificate(ctx context.Co result, err = client.DeleteCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "DeleteCertificate", resp, "Failure responding to request") + return } return @@ -429,6 +431,7 @@ func (client AppServiceCertificateOrdersClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "Get", resp, "Failure responding to request") + return } return @@ -513,6 +516,7 @@ func (client AppServiceCertificateOrdersClient) GetCertificate(ctx context.Conte result, err = client.GetCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "GetCertificate", resp, "Failure responding to request") + return } return @@ -587,6 +591,7 @@ func (client AppServiceCertificateOrdersClient) List(ctx context.Context) (resul result.ascoc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "List", resp, "Failure responding to request") + return } if result.ascoc.hasNextLink() && result.ascoc.IsEmpty() { err = result.NextWithContext(ctx) @@ -649,6 +654,7 @@ func (client AppServiceCertificateOrdersClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -708,6 +714,7 @@ func (client AppServiceCertificateOrdersClient) ListByResourceGroup(ctx context. result.ascoc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ascoc.hasNextLink() && result.ascoc.IsEmpty() { err = result.NextWithContext(ctx) @@ -771,6 +778,7 @@ func (client AppServiceCertificateOrdersClient) listByResourceGroupNextResults(c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -831,6 +839,7 @@ func (client AppServiceCertificateOrdersClient) ListCertificates(ctx context.Con result.ascc, err = client.ListCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "ListCertificates", resp, "Failure responding to request") + return } if result.ascc.hasNextLink() && result.ascc.IsEmpty() { err = result.NextWithContext(ctx) @@ -895,6 +904,7 @@ func (client AppServiceCertificateOrdersClient) listCertificatesNextResults(ctx result, err = client.ListCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "listCertificatesNextResults", resp, "Failure responding to next results request") + return } return } @@ -955,6 +965,7 @@ func (client AppServiceCertificateOrdersClient) Reissue(ctx context.Context, res result, err = client.ReissueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "Reissue", resp, "Failure responding to request") + return } return @@ -1040,6 +1051,7 @@ func (client AppServiceCertificateOrdersClient) Renew(ctx context.Context, resou result, err = client.RenewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "Renew", resp, "Failure responding to request") + return } return @@ -1124,6 +1136,7 @@ func (client AppServiceCertificateOrdersClient) ResendEmail(ctx context.Context, result, err = client.ResendEmailResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "ResendEmail", resp, "Failure responding to request") + return } return @@ -1207,6 +1220,7 @@ func (client AppServiceCertificateOrdersClient) ResendRequestEmails(ctx context. result, err = client.ResendRequestEmailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "ResendRequestEmails", resp, "Failure responding to request") + return } return @@ -1291,6 +1305,7 @@ func (client AppServiceCertificateOrdersClient) RetrieveCertificateActions(ctx c result, err = client.RetrieveCertificateActionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "RetrieveCertificateActions", resp, "Failure responding to request") + return } return @@ -1374,6 +1389,7 @@ func (client AppServiceCertificateOrdersClient) RetrieveCertificateEmailHistory( result, err = client.RetrieveCertificateEmailHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "RetrieveCertificateEmailHistory", resp, "Failure responding to request") + return } return @@ -1458,6 +1474,7 @@ func (client AppServiceCertificateOrdersClient) RetrieveSiteSeal(ctx context.Con result, err = client.RetrieveSiteSealResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "RetrieveSiteSeal", resp, "Failure responding to request") + return } return @@ -1544,6 +1561,7 @@ func (client AppServiceCertificateOrdersClient) Update(ctx context.Context, reso result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "Update", resp, "Failure responding to request") + return } return @@ -1631,6 +1649,7 @@ func (client AppServiceCertificateOrdersClient) UpdateCertificate(ctx context.Co result, err = client.UpdateCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "UpdateCertificate", resp, "Failure responding to request") + return } return @@ -1719,6 +1738,7 @@ func (client AppServiceCertificateOrdersClient) ValidatePurchaseInformation(ctx result, err = client.ValidatePurchaseInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "ValidatePurchaseInformation", resp, "Failure responding to request") + return } return @@ -1801,6 +1821,7 @@ func (client AppServiceCertificateOrdersClient) VerifyDomainOwnership(ctx contex result, err = client.VerifyDomainOwnershipResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "VerifyDomainOwnership", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2016-09-01/web/appserviceenvironments.go b/services/web/mgmt/2016-09-01/web/appserviceenvironments.go index e8f9da7a7942..b29a1ab1e10c 100644 --- a/services/web/mgmt/2016-09-01/web/appserviceenvironments.go +++ b/services/web/mgmt/2016-09-01/web/appserviceenvironments.go @@ -436,6 +436,7 @@ func (client AppServiceEnvironmentsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -520,6 +521,7 @@ func (client AppServiceEnvironmentsClient) GetDiagnosticsItem(ctx context.Contex result, err = client.GetDiagnosticsItemResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetDiagnosticsItem", resp, "Failure responding to request") + return } return @@ -604,6 +606,7 @@ func (client AppServiceEnvironmentsClient) GetMultiRolePool(ctx context.Context, result, err = client.GetMultiRolePoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetMultiRolePool", resp, "Failure responding to request") + return } return @@ -688,6 +691,7 @@ func (client AppServiceEnvironmentsClient) GetWorkerPool(ctx context.Context, re result, err = client.GetWorkerPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetWorkerPool", resp, "Failure responding to request") + return } return @@ -762,6 +766,7 @@ func (client AppServiceEnvironmentsClient) List(ctx context.Context) (result App result.asec, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "List", resp, "Failure responding to request") + return } if result.asec.hasNextLink() && result.asec.IsEmpty() { err = result.NextWithContext(ctx) @@ -824,6 +829,7 @@ func (client AppServiceEnvironmentsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -884,6 +890,7 @@ func (client AppServiceEnvironmentsClient) ListAppServicePlans(ctx context.Conte result.aspc, err = client.ListAppServicePlansResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListAppServicePlans", resp, "Failure responding to request") + return } if result.aspc.hasNextLink() && result.aspc.IsEmpty() { err = result.NextWithContext(ctx) @@ -948,6 +955,7 @@ func (client AppServiceEnvironmentsClient) listAppServicePlansNextResults(ctx co result, err = client.ListAppServicePlansResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listAppServicePlansNextResults", resp, "Failure responding to next results request") + return } return } @@ -1007,6 +1015,7 @@ func (client AppServiceEnvironmentsClient) ListByResourceGroup(ctx context.Conte result.asec, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.asec.hasNextLink() && result.asec.IsEmpty() { err = result.NextWithContext(ctx) @@ -1070,6 +1079,7 @@ func (client AppServiceEnvironmentsClient) listByResourceGroupNextResults(ctx co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1130,6 +1140,7 @@ func (client AppServiceEnvironmentsClient) ListCapacities(ctx context.Context, r result.scc, err = client.ListCapacitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListCapacities", resp, "Failure responding to request") + return } if result.scc.hasNextLink() && result.scc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1194,6 +1205,7 @@ func (client AppServiceEnvironmentsClient) listCapacitiesNextResults(ctx context result, err = client.ListCapacitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listCapacitiesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1253,6 +1265,7 @@ func (client AppServiceEnvironmentsClient) ListDiagnostics(ctx context.Context, result, err = client.ListDiagnosticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListDiagnostics", resp, "Failure responding to request") + return } return @@ -1336,6 +1349,7 @@ func (client AppServiceEnvironmentsClient) ListMetricDefinitions(ctx context.Con result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -1424,6 +1438,7 @@ func (client AppServiceEnvironmentsClient) ListMetrics(ctx context.Context, reso result.rmc, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMetrics", resp, "Failure responding to request") + return } if result.rmc.hasNextLink() && result.rmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1494,6 +1509,7 @@ func (client AppServiceEnvironmentsClient) listMetricsNextResults(ctx context.Co result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1554,6 +1570,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitions(ctx co result.rmdc, err = client.ListMultiRoleMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRoleMetricDefinitions", resp, "Failure responding to request") + return } if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1618,6 +1635,7 @@ func (client AppServiceEnvironmentsClient) listMultiRoleMetricDefinitionsNextRes result, err = client.ListMultiRoleMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRoleMetricDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1685,6 +1703,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRoleMetrics(ctx context.Cont result.rmc, err = client.ListMultiRoleMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRoleMetrics", resp, "Failure responding to request") + return } if result.rmc.hasNextLink() && result.rmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1764,6 +1783,7 @@ func (client AppServiceEnvironmentsClient) listMultiRoleMetricsNextResults(ctx c result, err = client.ListMultiRoleMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRoleMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1826,6 +1846,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefini result.rmdc, err = client.ListMultiRolePoolInstanceMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolInstanceMetricDefinitions", resp, "Failure responding to request") + return } if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1891,6 +1912,7 @@ func (client AppServiceEnvironmentsClient) listMultiRolePoolInstanceMetricDefini result, err = client.ListMultiRolePoolInstanceMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolInstanceMetricDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1954,6 +1976,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetrics(ctx result.rmc, err = client.ListMultiRolePoolInstanceMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolInstanceMetrics", resp, "Failure responding to request") + return } if result.rmc.hasNextLink() && result.rmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2022,6 +2045,7 @@ func (client AppServiceEnvironmentsClient) listMultiRolePoolInstanceMetricsNextR result, err = client.ListMultiRolePoolInstanceMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolInstanceMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2082,6 +2106,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRolePools(ctx context.Contex result.wpc, err = client.ListMultiRolePoolsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePools", resp, "Failure responding to request") + return } if result.wpc.hasNextLink() && result.wpc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2146,6 +2171,7 @@ func (client AppServiceEnvironmentsClient) listMultiRolePoolsNextResults(ctx con result, err = client.ListMultiRolePoolsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2206,6 +2232,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRolePoolSkus(ctx context.Con result.sic, err = client.ListMultiRolePoolSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolSkus", resp, "Failure responding to request") + return } if result.sic.hasNextLink() && result.sic.IsEmpty() { err = result.NextWithContext(ctx) @@ -2270,6 +2297,7 @@ func (client AppServiceEnvironmentsClient) listMultiRolePoolSkusNextResults(ctx result, err = client.ListMultiRolePoolSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolSkusNextResults", resp, "Failure responding to next results request") + return } return } @@ -2330,6 +2358,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRoleUsages(ctx context.Conte result.uc, err = client.ListMultiRoleUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRoleUsages", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2394,6 +2423,7 @@ func (client AppServiceEnvironmentsClient) listMultiRoleUsagesNextResults(ctx co result, err = client.ListMultiRoleUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRoleUsagesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2453,6 +2483,7 @@ func (client AppServiceEnvironmentsClient) ListOperations(ctx context.Context, r result, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListOperations", resp, "Failure responding to request") + return } return @@ -2540,6 +2571,7 @@ func (client AppServiceEnvironmentsClient) ListUsages(ctx context.Context, resou result.cuqc, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListUsages", resp, "Failure responding to request") + return } if result.cuqc.hasNextLink() && result.cuqc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2607,6 +2639,7 @@ func (client AppServiceEnvironmentsClient) listUsagesNextResults(ctx context.Con result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listUsagesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2666,6 +2699,7 @@ func (client AppServiceEnvironmentsClient) ListVips(ctx context.Context, resourc result, err = client.ListVipsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListVips", resp, "Failure responding to request") + return } return @@ -2751,6 +2785,7 @@ func (client AppServiceEnvironmentsClient) ListWebApps(ctx context.Context, reso result.ac, err = client.ListWebAppsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWebApps", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -2818,6 +2853,7 @@ func (client AppServiceEnvironmentsClient) listWebAppsNextResults(ctx context.Co result, err = client.ListWebAppsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWebAppsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2879,6 +2915,7 @@ func (client AppServiceEnvironmentsClient) ListWebWorkerMetricDefinitions(ctx co result.rmdc, err = client.ListWebWorkerMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWebWorkerMetricDefinitions", resp, "Failure responding to request") + return } if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2944,6 +2981,7 @@ func (client AppServiceEnvironmentsClient) listWebWorkerMetricDefinitionsNextRes result, err = client.ListWebWorkerMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWebWorkerMetricDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3009,6 +3047,7 @@ func (client AppServiceEnvironmentsClient) ListWebWorkerMetrics(ctx context.Cont result.rmc, err = client.ListWebWorkerMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWebWorkerMetrics", resp, "Failure responding to request") + return } if result.rmc.hasNextLink() && result.rmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -3080,6 +3119,7 @@ func (client AppServiceEnvironmentsClient) listWebWorkerMetricsNextResults(ctx c result, err = client.ListWebWorkerMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWebWorkerMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3141,6 +3181,7 @@ func (client AppServiceEnvironmentsClient) ListWebWorkerUsages(ctx context.Conte result.uc, err = client.ListWebWorkerUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWebWorkerUsages", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -3206,6 +3247,7 @@ func (client AppServiceEnvironmentsClient) listWebWorkerUsagesNextResults(ctx co result, err = client.ListWebWorkerUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWebWorkerUsagesNextResults", resp, "Failure responding to next results request") + return } return } @@ -3269,6 +3311,7 @@ func (client AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricDefinitio result.rmdc, err = client.ListWorkerPoolInstanceMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWorkerPoolInstanceMetricDefinitions", resp, "Failure responding to request") + return } if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -3335,6 +3378,7 @@ func (client AppServiceEnvironmentsClient) listWorkerPoolInstanceMetricDefinitio result, err = client.ListWorkerPoolInstanceMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWorkerPoolInstanceMetricDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3401,6 +3445,7 @@ func (client AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetrics(ctx con result.rmc, err = client.ListWorkerPoolInstanceMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWorkerPoolInstanceMetrics", resp, "Failure responding to request") + return } if result.rmc.hasNextLink() && result.rmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -3473,6 +3518,7 @@ func (client AppServiceEnvironmentsClient) listWorkerPoolInstanceMetricsNextResu result, err = client.ListWorkerPoolInstanceMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWorkerPoolInstanceMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3533,6 +3579,7 @@ func (client AppServiceEnvironmentsClient) ListWorkerPools(ctx context.Context, result.wpc, err = client.ListWorkerPoolsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWorkerPools", resp, "Failure responding to request") + return } if result.wpc.hasNextLink() && result.wpc.IsEmpty() { err = result.NextWithContext(ctx) @@ -3597,6 +3644,7 @@ func (client AppServiceEnvironmentsClient) listWorkerPoolsNextResults(ctx contex result, err = client.ListWorkerPoolsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWorkerPoolsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3658,6 +3706,7 @@ func (client AppServiceEnvironmentsClient) ListWorkerPoolSkus(ctx context.Contex result.sic, err = client.ListWorkerPoolSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWorkerPoolSkus", resp, "Failure responding to request") + return } if result.sic.hasNextLink() && result.sic.IsEmpty() { err = result.NextWithContext(ctx) @@ -3723,6 +3772,7 @@ func (client AppServiceEnvironmentsClient) listWorkerPoolSkusNextResults(ctx con result, err = client.ListWorkerPoolSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWorkerPoolSkusNextResults", resp, "Failure responding to next results request") + return } return } @@ -3782,6 +3832,7 @@ func (client AppServiceEnvironmentsClient) Reboot(ctx context.Context, resourceG result, err = client.RebootResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "Reboot", resp, "Failure responding to request") + return } return @@ -4113,6 +4164,7 @@ func (client AppServiceEnvironmentsClient) Update(ctx context.Context, resourceG result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "Update", resp, "Failure responding to request") + return } return @@ -4199,6 +4251,7 @@ func (client AppServiceEnvironmentsClient) UpdateMultiRolePool(ctx context.Conte result, err = client.UpdateMultiRolePoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "UpdateMultiRolePool", resp, "Failure responding to request") + return } return @@ -4286,6 +4339,7 @@ func (client AppServiceEnvironmentsClient) UpdateWorkerPool(ctx context.Context, result, err = client.UpdateWorkerPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "UpdateWorkerPool", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2016-09-01/web/appserviceplans.go b/services/web/mgmt/2016-09-01/web/appserviceplans.go index 5f20f967f6b4..6a6410eb36af 100644 --- a/services/web/mgmt/2016-09-01/web/appserviceplans.go +++ b/services/web/mgmt/2016-09-01/web/appserviceplans.go @@ -173,6 +173,7 @@ func (client AppServicePlansClient) CreateOrUpdateVnetRoute(ctx context.Context, result, err = client.CreateOrUpdateVnetRouteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "CreateOrUpdateVnetRoute", resp, "Failure responding to request") + return } return @@ -260,6 +261,7 @@ func (client AppServicePlansClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "Delete", resp, "Failure responding to request") + return } return @@ -344,6 +346,7 @@ func (client AppServicePlansClient) DeleteHybridConnection(ctx context.Context, result, err = client.DeleteHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "DeleteHybridConnection", resp, "Failure responding to request") + return } return @@ -430,6 +433,7 @@ func (client AppServicePlansClient) DeleteVnetRoute(ctx context.Context, resourc result, err = client.DeleteVnetRouteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "DeleteVnetRoute", resp, "Failure responding to request") + return } return @@ -514,6 +518,7 @@ func (client AppServicePlansClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "Get", resp, "Failure responding to request") + return } return @@ -599,6 +604,7 @@ func (client AppServicePlansClient) GetHybridConnection(ctx context.Context, res result, err = client.GetHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "GetHybridConnection", resp, "Failure responding to request") + return } return @@ -684,6 +690,7 @@ func (client AppServicePlansClient) GetHybridConnectionPlanLimit(ctx context.Con result, err = client.GetHybridConnectionPlanLimitResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "GetHybridConnectionPlanLimit", resp, "Failure responding to request") + return } return @@ -769,6 +776,7 @@ func (client AppServicePlansClient) GetRouteForVnet(ctx context.Context, resourc result, err = client.GetRouteForVnetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "GetRouteForVnet", resp, "Failure responding to request") + return } return @@ -854,6 +862,7 @@ func (client AppServicePlansClient) GetServerFarmSkus(ctx context.Context, resou result, err = client.GetServerFarmSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "GetServerFarmSkus", resp, "Failure responding to request") + return } return @@ -938,6 +947,7 @@ func (client AppServicePlansClient) GetVnetFromServerFarm(ctx context.Context, r result, err = client.GetVnetFromServerFarmResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "GetVnetFromServerFarm", resp, "Failure responding to request") + return } return @@ -1024,6 +1034,7 @@ func (client AppServicePlansClient) GetVnetGateway(ctx context.Context, resource result, err = client.GetVnetGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "GetVnetGateway", resp, "Failure responding to request") + return } return @@ -1103,6 +1114,7 @@ func (client AppServicePlansClient) List(ctx context.Context, detailed *bool) (r result.aspc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "List", resp, "Failure responding to request") + return } if result.aspc.hasNextLink() && result.aspc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1168,6 +1180,7 @@ func (client AppServicePlansClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1227,6 +1240,7 @@ func (client AppServicePlansClient) ListByResourceGroup(ctx context.Context, res result.aspc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.aspc.hasNextLink() && result.aspc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1290,6 +1304,7 @@ func (client AppServicePlansClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1349,6 +1364,7 @@ func (client AppServicePlansClient) ListCapabilities(ctx context.Context, resour result, err = client.ListCapabilitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListCapabilities", resp, "Failure responding to request") + return } return @@ -1434,6 +1450,7 @@ func (client AppServicePlansClient) ListHybridConnectionKeys(ctx context.Context result, err = client.ListHybridConnectionKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListHybridConnectionKeys", resp, "Failure responding to request") + return } return @@ -1520,6 +1537,7 @@ func (client AppServicePlansClient) ListHybridConnections(ctx context.Context, r result.hcc, err = client.ListHybridConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListHybridConnections", resp, "Failure responding to request") + return } if result.hcc.hasNextLink() && result.hcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1584,6 +1602,7 @@ func (client AppServicePlansClient) listHybridConnectionsNextResults(ctx context result, err = client.ListHybridConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listHybridConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1644,6 +1663,7 @@ func (client AppServicePlansClient) ListMetricDefintions(ctx context.Context, re result.rmdc, err = client.ListMetricDefintionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListMetricDefintions", resp, "Failure responding to request") + return } if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1708,6 +1728,7 @@ func (client AppServicePlansClient) listMetricDefintionsNextResults(ctx context. result, err = client.ListMetricDefintionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listMetricDefintionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1772,6 +1793,7 @@ func (client AppServicePlansClient) ListMetrics(ctx context.Context, resourceGro result.rmc, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListMetrics", resp, "Failure responding to request") + return } if result.rmc.hasNextLink() && result.rmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1842,6 +1864,7 @@ func (client AppServicePlansClient) listMetricsNextResults(ctx context.Context, result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1902,6 +1925,7 @@ func (client AppServicePlansClient) ListRoutesForVnet(ctx context.Context, resou result, err = client.ListRoutesForVnetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListRoutesForVnet", resp, "Failure responding to request") + return } return @@ -1989,6 +2013,7 @@ func (client AppServicePlansClient) ListUsages(ctx context.Context, resourceGrou result.cuqc, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListUsages", resp, "Failure responding to request") + return } if result.cuqc.hasNextLink() && result.cuqc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2056,6 +2081,7 @@ func (client AppServicePlansClient) listUsagesNextResults(ctx context.Context, l result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listUsagesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2115,6 +2141,7 @@ func (client AppServicePlansClient) ListVnets(ctx context.Context, resourceGroup result, err = client.ListVnetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListVnets", resp, "Failure responding to request") + return } return @@ -2204,6 +2231,7 @@ func (client AppServicePlansClient) ListWebApps(ctx context.Context, resourceGro result.ac, err = client.ListWebAppsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListWebApps", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -2277,6 +2305,7 @@ func (client AppServicePlansClient) listWebAppsNextResults(ctx context.Context, result, err = client.ListWebAppsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listWebAppsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2339,6 +2368,7 @@ func (client AppServicePlansClient) ListWebAppsByHybridConnection(ctx context.Co result.rc, err = client.ListWebAppsByHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListWebAppsByHybridConnection", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2405,6 +2435,7 @@ func (client AppServicePlansClient) listWebAppsByHybridConnectionNextResults(ctx result, err = client.ListWebAppsByHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listWebAppsByHybridConnectionNextResults", resp, "Failure responding to next results request") + return } return } @@ -2465,6 +2496,7 @@ func (client AppServicePlansClient) RebootWorker(ctx context.Context, resourceGr result, err = client.RebootWorkerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "RebootWorker", resp, "Failure responding to request") + return } return @@ -2551,6 +2583,7 @@ func (client AppServicePlansClient) RestartWebApps(ctx context.Context, resource result, err = client.RestartWebAppsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "RestartWebApps", resp, "Failure responding to request") + return } return @@ -2637,6 +2670,7 @@ func (client AppServicePlansClient) Update(ctx context.Context, resourceGroupNam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "Update", resp, "Failure responding to request") + return } return @@ -2728,6 +2762,7 @@ func (client AppServicePlansClient) UpdateVnetGateway(ctx context.Context, resou result, err = client.UpdateVnetGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "UpdateVnetGateway", resp, "Failure responding to request") + return } return @@ -2818,6 +2853,7 @@ func (client AppServicePlansClient) UpdateVnetRoute(ctx context.Context, resourc result, err = client.UpdateVnetRouteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "UpdateVnetRoute", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2016-09-01/web/billingmeters.go b/services/web/mgmt/2016-09-01/web/billingmeters.go index b6a1d7ecd83f..1e9aa42fb052 100644 --- a/services/web/mgmt/2016-09-01/web/billingmeters.go +++ b/services/web/mgmt/2016-09-01/web/billingmeters.go @@ -72,6 +72,7 @@ func (client BillingMetersClient) List(ctx context.Context, billingLocation stri result.bmc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BillingMetersClient", "List", resp, "Failure responding to request") + return } if result.bmc.hasNextLink() && result.bmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -137,6 +138,7 @@ func (client BillingMetersClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BillingMetersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2016-09-01/web/certificateregistrationprovider.go b/services/web/mgmt/2016-09-01/web/certificateregistrationprovider.go index 7502e734e47b..7560baa7bced 100644 --- a/services/web/mgmt/2016-09-01/web/certificateregistrationprovider.go +++ b/services/web/mgmt/2016-09-01/web/certificateregistrationprovider.go @@ -71,6 +71,7 @@ func (client CertificateRegistrationProviderClient) ListOperations(ctx context.C result.coc, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateRegistrationProviderClient", "ListOperations", resp, "Failure responding to request") + return } if result.coc.hasNextLink() && result.coc.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client CertificateRegistrationProviderClient) listOperationsNextResults(ct result, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateRegistrationProviderClient", "listOperationsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2016-09-01/web/certificates.go b/services/web/mgmt/2016-09-01/web/certificates.go index c33cd4d099aa..438446baebfe 100644 --- a/services/web/mgmt/2016-09-01/web/certificates.go +++ b/services/web/mgmt/2016-09-01/web/certificates.go @@ -85,6 +85,7 @@ func (client CertificatesClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client CertificatesClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "Delete", resp, "Failure responding to request") + return } return @@ -252,6 +254,7 @@ func (client CertificatesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +328,7 @@ func (client CertificatesClient) List(ctx context.Context) (result CertificateCo result.cc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "List", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +391,7 @@ func (client CertificatesClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -446,6 +451,7 @@ func (client CertificatesClient) ListByResourceGroup(ctx context.Context, resour result.cc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -509,6 +515,7 @@ func (client CertificatesClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -569,6 +576,7 @@ func (client CertificatesClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2016-09-01/web/client.go b/services/web/mgmt/2016-09-01/web/client.go index 2e7500c00a38..fe89ec8aec02 100644 --- a/services/web/mgmt/2016-09-01/web/client.go +++ b/services/web/mgmt/2016-09-01/web/client.go @@ -92,6 +92,7 @@ func (client BaseClient) CheckNameAvailability(ctx context.Context, request Reso result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client BaseClient) GetPublishingUser(ctx context.Context) (result User, er result, err = client.GetPublishingUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "GetPublishingUser", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client BaseClient) GetSourceControl(ctx context.Context, sourceControlType result, err = client.GetSourceControlResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "GetSourceControl", resp, "Failure responding to request") + return } return @@ -302,6 +305,7 @@ func (client BaseClient) GetSubscriptionDeploymentLocations(ctx context.Context) result, err = client.GetSubscriptionDeploymentLocationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "GetSubscriptionDeploymentLocations", resp, "Failure responding to request") + return } return @@ -377,6 +381,7 @@ func (client BaseClient) ListGeoRegions(ctx context.Context, sku SkuName, linuxW result.grc, err = client.ListGeoRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListGeoRegions", resp, "Failure responding to request") + return } if result.grc.hasNextLink() && result.grc.IsEmpty() { err = result.NextWithContext(ctx) @@ -445,6 +450,7 @@ func (client BaseClient) listGeoRegionsNextResults(ctx context.Context, lastResu result, err = client.ListGeoRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "listGeoRegionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -494,6 +500,7 @@ func (client BaseClient) ListPremierAddOnOffers(ctx context.Context) (result Pre result.paooc, err = client.ListPremierAddOnOffersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListPremierAddOnOffers", resp, "Failure responding to request") + return } if result.paooc.hasNextLink() && result.paooc.IsEmpty() { err = result.NextWithContext(ctx) @@ -556,6 +563,7 @@ func (client BaseClient) listPremierAddOnOffersNextResults(ctx context.Context, result, err = client.ListPremierAddOnOffersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "listPremierAddOnOffersNextResults", resp, "Failure responding to next results request") + return } return } @@ -607,6 +615,7 @@ func (client BaseClient) ListSiteIdentifiersAssignedToHostName(ctx context.Conte result.ic, err = client.ListSiteIdentifiersAssignedToHostNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListSiteIdentifiersAssignedToHostName", resp, "Failure responding to request") + return } if result.ic.hasNextLink() && result.ic.IsEmpty() { err = result.NextWithContext(ctx) @@ -671,6 +680,7 @@ func (client BaseClient) listSiteIdentifiersAssignedToHostNameNextResults(ctx co result, err = client.ListSiteIdentifiersAssignedToHostNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "listSiteIdentifiersAssignedToHostNameNextResults", resp, "Failure responding to next results request") + return } return } @@ -719,6 +729,7 @@ func (client BaseClient) ListSkus(ctx context.Context) (result SkuInfos, err err result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListSkus", resp, "Failure responding to request") + return } return @@ -790,6 +801,7 @@ func (client BaseClient) ListSourceControls(ctx context.Context) (result SourceC result.scc, err = client.ListSourceControlsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListSourceControls", resp, "Failure responding to request") + return } if result.scc.hasNextLink() && result.scc.IsEmpty() { err = result.NextWithContext(ctx) @@ -848,6 +860,7 @@ func (client BaseClient) listSourceControlsNextResults(ctx context.Context, last result, err = client.ListSourceControlsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "listSourceControlsNextResults", resp, "Failure responding to next results request") + return } return } @@ -913,6 +926,7 @@ func (client BaseClient) Move(ctx context.Context, resourceGroupName string, mov result, err = client.MoveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "Move", resp, "Failure responding to request") + return } return @@ -994,6 +1008,7 @@ func (client BaseClient) UpdatePublishingUser(ctx context.Context, userDetails U result, err = client.UpdatePublishingUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "UpdatePublishingUser", resp, "Failure responding to request") + return } return @@ -1065,6 +1080,7 @@ func (client BaseClient) UpdateSourceControl(ctx context.Context, sourceControlT result, err = client.UpdateSourceControlResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "UpdateSourceControl", resp, "Failure responding to request") + return } return @@ -1155,6 +1171,7 @@ func (client BaseClient) Validate(ctx context.Context, resourceGroupName string, result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "Validate", resp, "Failure responding to request") + return } return @@ -1245,6 +1262,7 @@ func (client BaseClient) ValidateMove(ctx context.Context, resourceGroupName str result, err = client.ValidateMoveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ValidateMove", resp, "Failure responding to request") + return } return @@ -1320,6 +1338,7 @@ func (client BaseClient) VerifyHostingEnvironmentVnet(ctx context.Context, param result, err = client.VerifyHostingEnvironmentVnetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "VerifyHostingEnvironmentVnet", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2016-09-01/web/deletedwebapps.go b/services/web/mgmt/2016-09-01/web/deletedwebapps.go index cf1fa1627837..0b277d8fc7e8 100644 --- a/services/web/mgmt/2016-09-01/web/deletedwebapps.go +++ b/services/web/mgmt/2016-09-01/web/deletedwebapps.go @@ -70,6 +70,7 @@ func (client DeletedWebAppsClient) List(ctx context.Context) (result DeletedWebA result.dwac, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DeletedWebAppsClient", "List", resp, "Failure responding to request") + return } if result.dwac.hasNextLink() && result.dwac.IsEmpty() { err = result.NextWithContext(ctx) @@ -132,6 +133,7 @@ func (client DeletedWebAppsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DeletedWebAppsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2016-09-01/web/diagnostics.go b/services/web/mgmt/2016-09-01/web/diagnostics.go index 6411ea992873..7d2078e7ebca 100644 --- a/services/web/mgmt/2016-09-01/web/diagnostics.go +++ b/services/web/mgmt/2016-09-01/web/diagnostics.go @@ -90,6 +90,7 @@ func (client DiagnosticsClient) ExecuteSiteAnalysis(ctx context.Context, resourc result, err = client.ExecuteSiteAnalysisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ExecuteSiteAnalysis", resp, "Failure responding to request") + return } return @@ -193,6 +194,7 @@ func (client DiagnosticsClient) ExecuteSiteAnalysisSlot(ctx context.Context, res result, err = client.ExecuteSiteAnalysisSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ExecuteSiteAnalysisSlot", resp, "Failure responding to request") + return } return @@ -296,6 +298,7 @@ func (client DiagnosticsClient) ExecuteSiteDetector(ctx context.Context, resourc result, err = client.ExecuteSiteDetectorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ExecuteSiteDetector", resp, "Failure responding to request") + return } return @@ -399,6 +402,7 @@ func (client DiagnosticsClient) ExecuteSiteDetectorSlot(ctx context.Context, res result, err = client.ExecuteSiteDetectorSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ExecuteSiteDetectorSlot", resp, "Failure responding to request") + return } return @@ -501,6 +505,7 @@ func (client DiagnosticsClient) GetHostingEnvironmentDetectorResponse(ctx contex result, err = client.GetHostingEnvironmentDetectorResponseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetHostingEnvironmentDetectorResponse", resp, "Failure responding to request") + return } return @@ -596,6 +601,7 @@ func (client DiagnosticsClient) GetSiteAnalysis(ctx context.Context, resourceGro result, err = client.GetSiteAnalysisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteAnalysis", resp, "Failure responding to request") + return } return @@ -684,6 +690,7 @@ func (client DiagnosticsClient) GetSiteAnalysisSlot(ctx context.Context, resourc result, err = client.GetSiteAnalysisSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteAnalysisSlot", resp, "Failure responding to request") + return } return @@ -773,6 +780,7 @@ func (client DiagnosticsClient) GetSiteDetector(ctx context.Context, resourceGro result.ddc, err = client.GetSiteDetectorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetector", resp, "Failure responding to request") + return } if result.ddc.hasNextLink() && result.ddc.IsEmpty() { err = result.NextWithContext(ctx) @@ -839,6 +847,7 @@ func (client DiagnosticsClient) getSiteDetectorNextResults(ctx context.Context, result, err = client.GetSiteDetectorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "getSiteDetectorNextResults", resp, "Failure responding to next results request") + return } return } @@ -905,6 +914,7 @@ func (client DiagnosticsClient) GetSiteDetectorResponse(ctx context.Context, res result, err = client.GetSiteDetectorResponseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetectorResponse", resp, "Failure responding to request") + return } return @@ -1006,6 +1016,7 @@ func (client DiagnosticsClient) GetSiteDetectorResponseSlot(ctx context.Context, result, err = client.GetSiteDetectorResponseSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetectorResponseSlot", resp, "Failure responding to request") + return } return @@ -1104,6 +1115,7 @@ func (client DiagnosticsClient) GetSiteDetectorSlot(ctx context.Context, resourc result.ddc, err = client.GetSiteDetectorSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetectorSlot", resp, "Failure responding to request") + return } if result.ddc.hasNextLink() && result.ddc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1171,6 +1183,7 @@ func (client DiagnosticsClient) getSiteDetectorSlotNextResults(ctx context.Conte result, err = client.GetSiteDetectorSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "getSiteDetectorSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -1231,6 +1244,7 @@ func (client DiagnosticsClient) GetSiteDiagnosticCategory(ctx context.Context, r result, err = client.GetSiteDiagnosticCategoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDiagnosticCategory", resp, "Failure responding to request") + return } return @@ -1317,6 +1331,7 @@ func (client DiagnosticsClient) GetSiteDiagnosticCategorySlot(ctx context.Contex result, err = client.GetSiteDiagnosticCategorySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDiagnosticCategorySlot", resp, "Failure responding to request") + return } return @@ -1403,6 +1418,7 @@ func (client DiagnosticsClient) ListHostingEnvironmentDetectorResponses(ctx cont result.drc, err = client.ListHostingEnvironmentDetectorResponsesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListHostingEnvironmentDetectorResponses", resp, "Failure responding to request") + return } if result.drc.hasNextLink() && result.drc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1467,6 +1483,7 @@ func (client DiagnosticsClient) listHostingEnvironmentDetectorResponsesNextResul result, err = client.ListHostingEnvironmentDetectorResponsesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listHostingEnvironmentDetectorResponsesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1528,6 +1545,7 @@ func (client DiagnosticsClient) ListSiteAnalyses(ctx context.Context, resourceGr result.dac, err = client.ListSiteAnalysesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteAnalyses", resp, "Failure responding to request") + return } if result.dac.hasNextLink() && result.dac.IsEmpty() { err = result.NextWithContext(ctx) @@ -1593,6 +1611,7 @@ func (client DiagnosticsClient) listSiteAnalysesNextResults(ctx context.Context, result, err = client.ListSiteAnalysesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteAnalysesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1655,6 +1674,7 @@ func (client DiagnosticsClient) ListSiteAnalysesSlot(ctx context.Context, resour result.dac, err = client.ListSiteAnalysesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteAnalysesSlot", resp, "Failure responding to request") + return } if result.dac.hasNextLink() && result.dac.IsEmpty() { err = result.NextWithContext(ctx) @@ -1721,6 +1741,7 @@ func (client DiagnosticsClient) listSiteAnalysesSlotNextResults(ctx context.Cont result, err = client.ListSiteAnalysesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteAnalysesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -1781,6 +1802,7 @@ func (client DiagnosticsClient) ListSiteDetectorResponses(ctx context.Context, r result.drc, err = client.ListSiteDetectorResponsesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDetectorResponses", resp, "Failure responding to request") + return } if result.drc.hasNextLink() && result.drc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1845,6 +1867,7 @@ func (client DiagnosticsClient) listSiteDetectorResponsesNextResults(ctx context result, err = client.ListSiteDetectorResponsesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDetectorResponsesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1906,6 +1929,7 @@ func (client DiagnosticsClient) ListSiteDetectorResponsesSlot(ctx context.Contex result.drc, err = client.ListSiteDetectorResponsesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDetectorResponsesSlot", resp, "Failure responding to request") + return } if result.drc.hasNextLink() && result.drc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1971,6 +1995,7 @@ func (client DiagnosticsClient) listSiteDetectorResponsesSlotNextResults(ctx con result, err = client.ListSiteDetectorResponsesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDetectorResponsesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -2032,6 +2057,7 @@ func (client DiagnosticsClient) ListSiteDetectors(ctx context.Context, resourceG result.ddc, err = client.ListSiteDetectorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDetectors", resp, "Failure responding to request") + return } if result.ddc.hasNextLink() && result.ddc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2097,6 +2123,7 @@ func (client DiagnosticsClient) listSiteDetectorsNextResults(ctx context.Context result, err = client.ListSiteDetectorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDetectorsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2159,6 +2186,7 @@ func (client DiagnosticsClient) ListSiteDetectorsSlot(ctx context.Context, resou result.ddc, err = client.ListSiteDetectorsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDetectorsSlot", resp, "Failure responding to request") + return } if result.ddc.hasNextLink() && result.ddc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2225,6 +2253,7 @@ func (client DiagnosticsClient) listSiteDetectorsSlotNextResults(ctx context.Con result, err = client.ListSiteDetectorsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDetectorsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -2285,6 +2314,7 @@ func (client DiagnosticsClient) ListSiteDiagnosticCategories(ctx context.Context result.dcc, err = client.ListSiteDiagnosticCategoriesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDiagnosticCategories", resp, "Failure responding to request") + return } if result.dcc.hasNextLink() && result.dcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2349,6 +2379,7 @@ func (client DiagnosticsClient) listSiteDiagnosticCategoriesNextResults(ctx cont result, err = client.ListSiteDiagnosticCategoriesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDiagnosticCategoriesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2410,6 +2441,7 @@ func (client DiagnosticsClient) ListSiteDiagnosticCategoriesSlot(ctx context.Con result.dcc, err = client.ListSiteDiagnosticCategoriesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDiagnosticCategoriesSlot", resp, "Failure responding to request") + return } if result.dcc.hasNextLink() && result.dcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2475,6 +2507,7 @@ func (client DiagnosticsClient) listSiteDiagnosticCategoriesSlotNextResults(ctx result, err = client.ListSiteDiagnosticCategoriesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDiagnosticCategoriesSlotNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2016-09-01/web/domainregistrationprovider.go b/services/web/mgmt/2016-09-01/web/domainregistrationprovider.go index 7404c6eaef4a..57fb2e053909 100644 --- a/services/web/mgmt/2016-09-01/web/domainregistrationprovider.go +++ b/services/web/mgmt/2016-09-01/web/domainregistrationprovider.go @@ -71,6 +71,7 @@ func (client DomainRegistrationProviderClient) ListOperations(ctx context.Contex result.coc, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainRegistrationProviderClient", "ListOperations", resp, "Failure responding to request") + return } if result.coc.hasNextLink() && result.coc.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client DomainRegistrationProviderClient) listOperationsNextResults(ctx con result, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainRegistrationProviderClient", "listOperationsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2016-09-01/web/domains.go b/services/web/mgmt/2016-09-01/web/domains.go index 30049a315ec0..cd9e5cef69f3 100644 --- a/services/web/mgmt/2016-09-01/web/domains.go +++ b/services/web/mgmt/2016-09-01/web/domains.go @@ -72,6 +72,7 @@ func (client DomainsClient) CheckAvailability(ctx context.Context, identifier Na result, err = client.CheckAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "CheckAvailability", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DomainsClient) CreateOrUpdateOwnershipIdentifier(ctx context.Contex result, err = client.CreateOrUpdateOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "CreateOrUpdateOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -390,6 +392,7 @@ func (client DomainsClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "Delete", resp, "Failure responding to request") + return } return @@ -476,6 +479,7 @@ func (client DomainsClient) DeleteOwnershipIdentifier(ctx context.Context, resou result, err = client.DeleteOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "DeleteOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -559,6 +563,7 @@ func (client DomainsClient) Get(ctx context.Context, resourceGroupName string, d result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "Get", resp, "Failure responding to request") + return } return @@ -631,6 +636,7 @@ func (client DomainsClient) GetControlCenterSsoRequest(ctx context.Context) (res result, err = client.GetControlCenterSsoRequestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "GetControlCenterSsoRequest", resp, "Failure responding to request") + return } return @@ -713,6 +719,7 @@ func (client DomainsClient) GetOwnershipIdentifier(ctx context.Context, resource result, err = client.GetOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "GetOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -787,6 +794,7 @@ func (client DomainsClient) List(ctx context.Context) (result DomainCollectionPa result.dc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "List", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -849,6 +857,7 @@ func (client DomainsClient) listNextResults(ctx context.Context, lastResults Dom result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -908,6 +917,7 @@ func (client DomainsClient) ListByResourceGroup(ctx context.Context, resourceGro result.dc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -971,6 +981,7 @@ func (client DomainsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1031,6 +1042,7 @@ func (client DomainsClient) ListOwnershipIdentifiers(ctx context.Context, resour result.doic, err = client.ListOwnershipIdentifiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "ListOwnershipIdentifiers", resp, "Failure responding to request") + return } if result.doic.hasNextLink() && result.doic.IsEmpty() { err = result.NextWithContext(ctx) @@ -1095,6 +1107,7 @@ func (client DomainsClient) listOwnershipIdentifiersNextResults(ctx context.Cont result, err = client.ListOwnershipIdentifiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "listOwnershipIdentifiersNextResults", resp, "Failure responding to next results request") + return } return } @@ -1146,6 +1159,7 @@ func (client DomainsClient) ListRecommendations(ctx context.Context, parameters result.nic, err = client.ListRecommendationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "ListRecommendations", resp, "Failure responding to request") + return } if result.nic.hasNextLink() && result.nic.IsEmpty() { err = result.NextWithContext(ctx) @@ -1210,6 +1224,7 @@ func (client DomainsClient) listRecommendationsNextResults(ctx context.Context, result, err = client.ListRecommendationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "listRecommendationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1269,6 +1284,7 @@ func (client DomainsClient) Renew(ctx context.Context, resourceGroupName string, result, err = client.RenewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "Renew", resp, "Failure responding to request") + return } return @@ -1354,6 +1370,7 @@ func (client DomainsClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "Update", resp, "Failure responding to request") + return } return @@ -1442,6 +1459,7 @@ func (client DomainsClient) UpdateOwnershipIdentifier(ctx context.Context, resou result, err = client.UpdateOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "UpdateOwnershipIdentifier", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2016-09-01/web/provider.go b/services/web/mgmt/2016-09-01/web/provider.go index 624fd851d2d6..51e3d0a02992 100644 --- a/services/web/mgmt/2016-09-01/web/provider.go +++ b/services/web/mgmt/2016-09-01/web/provider.go @@ -70,6 +70,7 @@ func (client ProviderClient) GetAvailableStacks(ctx context.Context, osTypeSelec result.asc, err = client.GetAvailableStacksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "GetAvailableStacks", resp, "Failure responding to request") + return } if result.asc.hasNextLink() && result.asc.IsEmpty() { err = result.NextWithContext(ctx) @@ -131,6 +132,7 @@ func (client ProviderClient) getAvailableStacksNextResults(ctx context.Context, result, err = client.GetAvailableStacksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "getAvailableStacksNextResults", resp, "Failure responding to next results request") + return } return } @@ -180,6 +182,7 @@ func (client ProviderClient) GetAvailableStacksOnPrem(ctx context.Context, osTyp result.asc, err = client.GetAvailableStacksOnPremResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "GetAvailableStacksOnPrem", resp, "Failure responding to request") + return } if result.asc.hasNextLink() && result.asc.IsEmpty() { err = result.NextWithContext(ctx) @@ -245,6 +248,7 @@ func (client ProviderClient) getAvailableStacksOnPremNextResults(ctx context.Con result, err = client.GetAvailableStacksOnPremResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "getAvailableStacksOnPremNextResults", resp, "Failure responding to next results request") + return } return } @@ -295,6 +299,7 @@ func (client ProviderClient) ListOperations(ctx context.Context) (result CsmOper result.coc, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "ListOperations", resp, "Failure responding to request") + return } if result.coc.hasNextLink() && result.coc.IsEmpty() { err = result.NextWithContext(ctx) @@ -353,6 +358,7 @@ func (client ProviderClient) listOperationsNextResults(ctx context.Context, last result, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "listOperationsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2016-09-01/web/recommendations.go b/services/web/mgmt/2016-09-01/web/recommendations.go index e505085a10d1..192c46182434 100644 --- a/services/web/mgmt/2016-09-01/web/recommendations.go +++ b/services/web/mgmt/2016-09-01/web/recommendations.go @@ -81,6 +81,7 @@ func (client RecommendationsClient) DisableAllForWebApp(ctx context.Context, res result, err = client.DisableAllForWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "DisableAllForWebApp", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client RecommendationsClient) DisableRecommendationForSite(ctx context.Con result, err = client.DisableRecommendationForSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "DisableRecommendationForSite", resp, "Failure responding to request") + return } return @@ -239,6 +241,7 @@ func (client RecommendationsClient) DisableRecommendationForSubscription(ctx con result, err = client.DisableRecommendationForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "DisableRecommendationForSubscription", resp, "Failure responding to request") + return } return @@ -324,6 +327,7 @@ func (client RecommendationsClient) GetRuleDetailsByWebApp(ctx context.Context, result, err = client.GetRuleDetailsByWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "GetRuleDetailsByWebApp", resp, "Failure responding to request") + return } return @@ -410,6 +414,7 @@ func (client RecommendationsClient) List(ctx context.Context, featured *bool, fi result.rc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "List", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -478,6 +483,7 @@ func (client RecommendationsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -541,6 +547,7 @@ func (client RecommendationsClient) ListHistoryForWebApp(ctx context.Context, re result.rc, err = client.ListHistoryForWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ListHistoryForWebApp", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -608,6 +615,7 @@ func (client RecommendationsClient) listHistoryForWebAppNextResults(ctx context. result, err = client.ListHistoryForWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "listHistoryForWebAppNextResults", resp, "Failure responding to next results request") + return } return } @@ -672,6 +680,7 @@ func (client RecommendationsClient) ListRecommendedRulesForWebApp(ctx context.Co result.rc, err = client.ListRecommendedRulesForWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ListRecommendedRulesForWebApp", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -742,6 +751,7 @@ func (client RecommendationsClient) listRecommendedRulesForWebAppNextResults(ctx result, err = client.ListRecommendedRulesForWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "listRecommendedRulesForWebAppNextResults", resp, "Failure responding to next results request") + return } return } @@ -790,6 +800,7 @@ func (client RecommendationsClient) ResetAllFilters(ctx context.Context) (result result, err = client.ResetAllFiltersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ResetAllFilters", resp, "Failure responding to request") + return } return @@ -870,6 +881,7 @@ func (client RecommendationsClient) ResetAllFiltersForWebApp(ctx context.Context result, err = client.ResetAllFiltersForWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ResetAllFiltersForWebApp", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2016-09-01/web/resourcehealthmetadata.go b/services/web/mgmt/2016-09-01/web/resourcehealthmetadata.go index 60bb1bb28dc4..761afbb3f77e 100644 --- a/services/web/mgmt/2016-09-01/web/resourcehealthmetadata.go +++ b/services/web/mgmt/2016-09-01/web/resourcehealthmetadata.go @@ -82,6 +82,7 @@ func (client ResourceHealthMetadataClient) GetBySite(ctx context.Context, resour result, err = client.GetBySiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "GetBySite", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client ResourceHealthMetadataClient) GetBySiteSlot(ctx context.Context, re result, err = client.GetBySiteSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "GetBySiteSlot", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client ResourceHealthMetadataClient) List(ctx context.Context) (result Res result.rhmc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "List", resp, "Failure responding to request") + return } if result.rhmc.hasNextLink() && result.rhmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -302,6 +305,7 @@ func (client ResourceHealthMetadataClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -361,6 +365,7 @@ func (client ResourceHealthMetadataClient) ListByResourceGroup(ctx context.Conte result.rhmc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rhmc.hasNextLink() && result.rhmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -424,6 +429,7 @@ func (client ResourceHealthMetadataClient) listByResourceGroupNextResults(ctx co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -484,6 +490,7 @@ func (client ResourceHealthMetadataClient) ListBySite(ctx context.Context, resou result.rhmc, err = client.ListBySiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "ListBySite", resp, "Failure responding to request") + return } if result.rhmc.hasNextLink() && result.rhmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -548,6 +555,7 @@ func (client ResourceHealthMetadataClient) listBySiteNextResults(ctx context.Con result, err = client.ListBySiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "listBySiteNextResults", resp, "Failure responding to next results request") + return } return } @@ -609,6 +617,7 @@ func (client ResourceHealthMetadataClient) ListBySiteSlot(ctx context.Context, r result.rhmc, err = client.ListBySiteSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "ListBySiteSlot", resp, "Failure responding to request") + return } if result.rhmc.hasNextLink() && result.rhmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -674,6 +683,7 @@ func (client ResourceHealthMetadataClient) listBySiteSlotNextResults(ctx context result, err = client.ListBySiteSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "listBySiteSlotNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2016-09-01/web/topleveldomains.go b/services/web/mgmt/2016-09-01/web/topleveldomains.go index 2ec6cbbe3d00..1e85c2743e39 100644 --- a/services/web/mgmt/2016-09-01/web/topleveldomains.go +++ b/services/web/mgmt/2016-09-01/web/topleveldomains.go @@ -71,6 +71,7 @@ func (client TopLevelDomainsClient) Get(ctx context.Context, name string) (resul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "Get", resp, "Failure responding to request") + return } return @@ -143,6 +144,7 @@ func (client TopLevelDomainsClient) List(ctx context.Context) (result TopLevelDo result.tldc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "List", resp, "Failure responding to request") + return } if result.tldc.hasNextLink() && result.tldc.IsEmpty() { err = result.NextWithContext(ctx) @@ -205,6 +207,7 @@ func (client TopLevelDomainsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -257,6 +260,7 @@ func (client TopLevelDomainsClient) ListAgreements(ctx context.Context, name str result.tlac, err = client.ListAgreementsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "ListAgreements", resp, "Failure responding to request") + return } if result.tlac.hasNextLink() && result.tlac.IsEmpty() { err = result.NextWithContext(ctx) @@ -322,6 +326,7 @@ func (client TopLevelDomainsClient) listAgreementsNextResults(ctx context.Contex result, err = client.ListAgreementsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "listAgreementsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2018-02-01/web/apps.go b/services/web/mgmt/2018-02-01/web/apps.go index 536e7a838e51..f1a3973da914 100644 --- a/services/web/mgmt/2018-02-01/web/apps.go +++ b/services/web/mgmt/2018-02-01/web/apps.go @@ -83,6 +83,7 @@ func (client AppsClient) AddPremierAddOn(ctx context.Context, resourceGroupName result, err = client.AddPremierAddOnResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "AddPremierAddOn", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client AppsClient) AddPremierAddOnSlot(ctx context.Context, resourceGroupN result, err = client.AddPremierAddOnSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "AddPremierAddOnSlot", resp, "Failure responding to request") + return } return @@ -261,6 +263,7 @@ func (client AppsClient) AnalyzeCustomHostname(ctx context.Context, resourceGrou result, err = client.AnalyzeCustomHostnameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "AnalyzeCustomHostname", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client AppsClient) AnalyzeCustomHostnameSlot(ctx context.Context, resource result, err = client.AnalyzeCustomHostnameSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "AnalyzeCustomHostnameSlot", resp, "Failure responding to request") + return } return @@ -440,6 +444,7 @@ func (client AppsClient) ApplySlotConfigToProduction(ctx context.Context, resour result, err = client.ApplySlotConfigToProductionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ApplySlotConfigToProduction", resp, "Failure responding to request") + return } return @@ -529,6 +534,7 @@ func (client AppsClient) ApplySlotConfigurationSlot(ctx context.Context, resourc result, err = client.ApplySlotConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ApplySlotConfigurationSlot", resp, "Failure responding to request") + return } return @@ -624,6 +630,7 @@ func (client AppsClient) Backup(ctx context.Context, resourceGroupName string, n result, err = client.BackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Backup", resp, "Failure responding to request") + return } return @@ -721,6 +728,7 @@ func (client AppsClient) BackupSlot(ctx context.Context, resourceGroupName strin result, err = client.BackupSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "BackupSlot", resp, "Failure responding to request") + return } return @@ -809,6 +817,7 @@ func (client AppsClient) CreateDeployment(ctx context.Context, resourceGroupName result, err = client.CreateDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateDeployment", resp, "Failure responding to request") + return } return @@ -899,6 +908,7 @@ func (client AppsClient) CreateDeploymentSlot(ctx context.Context, resourceGroup result, err = client.CreateDeploymentSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateDeploymentSlot", resp, "Failure responding to request") + return } return @@ -1630,6 +1640,7 @@ func (client AppsClient) CreateOrUpdateConfiguration(ctx context.Context, resour result, err = client.CreateOrUpdateConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateConfiguration", resp, "Failure responding to request") + return } return @@ -1729,6 +1740,7 @@ func (client AppsClient) CreateOrUpdateConfigurationSlot(ctx context.Context, re result, err = client.CreateOrUpdateConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateConfigurationSlot", resp, "Failure responding to request") + return } return @@ -1818,6 +1830,7 @@ func (client AppsClient) CreateOrUpdateDomainOwnershipIdentifier(ctx context.Con result, err = client.CreateOrUpdateDomainOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateDomainOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -1909,6 +1922,7 @@ func (client AppsClient) CreateOrUpdateDomainOwnershipIdentifierSlot(ctx context result, err = client.CreateOrUpdateDomainOwnershipIdentifierSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateDomainOwnershipIdentifierSlot", resp, "Failure responding to request") + return } return @@ -1999,6 +2013,7 @@ func (client AppsClient) CreateOrUpdateFunctionSecret(ctx context.Context, resou result, err = client.CreateOrUpdateFunctionSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateFunctionSecret", resp, "Failure responding to request") + return } return @@ -2090,6 +2105,7 @@ func (client AppsClient) CreateOrUpdateFunctionSecretSlot(ctx context.Context, r result, err = client.CreateOrUpdateFunctionSecretSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateFunctionSecretSlot", resp, "Failure responding to request") + return } return @@ -2180,6 +2196,7 @@ func (client AppsClient) CreateOrUpdateHostNameBinding(ctx context.Context, reso result, err = client.CreateOrUpdateHostNameBindingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHostNameBinding", resp, "Failure responding to request") + return } return @@ -2270,6 +2287,7 @@ func (client AppsClient) CreateOrUpdateHostNameBindingSlot(ctx context.Context, result, err = client.CreateOrUpdateHostNameBindingSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHostNameBindingSlot", resp, "Failure responding to request") + return } return @@ -2360,6 +2378,7 @@ func (client AppsClient) CreateOrUpdateHostSecret(ctx context.Context, resourceG result, err = client.CreateOrUpdateHostSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHostSecret", resp, "Failure responding to request") + return } return @@ -2451,6 +2470,7 @@ func (client AppsClient) CreateOrUpdateHostSecretSlot(ctx context.Context, resou result, err = client.CreateOrUpdateHostSecretSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHostSecretSlot", resp, "Failure responding to request") + return } return @@ -2542,6 +2562,7 @@ func (client AppsClient) CreateOrUpdateHybridConnection(ctx context.Context, res result, err = client.CreateOrUpdateHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHybridConnection", resp, "Failure responding to request") + return } return @@ -2633,6 +2654,7 @@ func (client AppsClient) CreateOrUpdateHybridConnectionSlot(ctx context.Context, result, err = client.CreateOrUpdateHybridConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHybridConnectionSlot", resp, "Failure responding to request") + return } return @@ -2724,6 +2746,7 @@ func (client AppsClient) CreateOrUpdatePublicCertificate(ctx context.Context, re result, err = client.CreateOrUpdatePublicCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdatePublicCertificate", resp, "Failure responding to request") + return } return @@ -2815,6 +2838,7 @@ func (client AppsClient) CreateOrUpdatePublicCertificateSlot(ctx context.Context result, err = client.CreateOrUpdatePublicCertificateSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdatePublicCertificateSlot", resp, "Failure responding to request") + return } return @@ -2905,6 +2929,7 @@ func (client AppsClient) CreateOrUpdateRelayServiceConnection(ctx context.Contex result, err = client.CreateOrUpdateRelayServiceConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateRelayServiceConnection", resp, "Failure responding to request") + return } return @@ -2996,6 +3021,7 @@ func (client AppsClient) CreateOrUpdateRelayServiceConnectionSlot(ctx context.Co result, err = client.CreateOrUpdateRelayServiceConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateRelayServiceConnectionSlot", resp, "Failure responding to request") + return } return @@ -3367,6 +3393,7 @@ func (client AppsClient) CreateOrUpdateSwiftVirtualNetworkConnection(ctx context result, err = client.CreateOrUpdateSwiftVirtualNetworkConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateSwiftVirtualNetworkConnection", resp, "Failure responding to request") + return } return @@ -3458,6 +3485,7 @@ func (client AppsClient) CreateOrUpdateSwiftVirtualNetworkConnectionSlot(ctx con result, err = client.CreateOrUpdateSwiftVirtualNetworkConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateSwiftVirtualNetworkConnectionSlot", resp, "Failure responding to request") + return } return @@ -3547,6 +3575,7 @@ func (client AppsClient) CreateOrUpdateVnetConnection(ctx context.Context, resou result, err = client.CreateOrUpdateVnetConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateVnetConnection", resp, "Failure responding to request") + return } return @@ -3639,6 +3668,7 @@ func (client AppsClient) CreateOrUpdateVnetConnectionGateway(ctx context.Context result, err = client.CreateOrUpdateVnetConnectionGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateVnetConnectionGateway", resp, "Failure responding to request") + return } return @@ -3734,6 +3764,7 @@ func (client AppsClient) CreateOrUpdateVnetConnectionGatewaySlot(ctx context.Con result, err = client.CreateOrUpdateVnetConnectionGatewaySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateVnetConnectionGatewaySlot", resp, "Failure responding to request") + return } return @@ -3827,6 +3858,7 @@ func (client AppsClient) CreateOrUpdateVnetConnectionSlot(ctx context.Context, r result, err = client.CreateOrUpdateVnetConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateVnetConnectionSlot", resp, "Failure responding to request") + return } return @@ -3917,6 +3949,7 @@ func (client AppsClient) Delete(ctx context.Context, resourceGroupName string, n result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Delete", resp, "Failure responding to request") + return } return @@ -4006,6 +4039,7 @@ func (client AppsClient) DeleteBackup(ctx context.Context, resourceGroupName str result, err = client.DeleteBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteBackup", resp, "Failure responding to request") + return } return @@ -4089,6 +4123,7 @@ func (client AppsClient) DeleteBackupConfiguration(ctx context.Context, resource result, err = client.DeleteBackupConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteBackupConfiguration", resp, "Failure responding to request") + return } return @@ -4173,6 +4208,7 @@ func (client AppsClient) DeleteBackupConfigurationSlot(ctx context.Context, reso result, err = client.DeleteBackupConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteBackupConfigurationSlot", resp, "Failure responding to request") + return } return @@ -4259,6 +4295,7 @@ func (client AppsClient) DeleteBackupSlot(ctx context.Context, resourceGroupName result, err = client.DeleteBackupSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteBackupSlot", resp, "Failure responding to request") + return } return @@ -4344,6 +4381,7 @@ func (client AppsClient) DeleteContinuousWebJob(ctx context.Context, resourceGro result, err = client.DeleteContinuousWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteContinuousWebJob", resp, "Failure responding to request") + return } return @@ -4430,6 +4468,7 @@ func (client AppsClient) DeleteContinuousWebJobSlot(ctx context.Context, resourc result, err = client.DeleteContinuousWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteContinuousWebJobSlot", resp, "Failure responding to request") + return } return @@ -4515,6 +4554,7 @@ func (client AppsClient) DeleteDeployment(ctx context.Context, resourceGroupName result, err = client.DeleteDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteDeployment", resp, "Failure responding to request") + return } return @@ -4601,6 +4641,7 @@ func (client AppsClient) DeleteDeploymentSlot(ctx context.Context, resourceGroup result, err = client.DeleteDeploymentSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteDeploymentSlot", resp, "Failure responding to request") + return } return @@ -4686,6 +4727,7 @@ func (client AppsClient) DeleteDomainOwnershipIdentifier(ctx context.Context, re result, err = client.DeleteDomainOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteDomainOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -4772,6 +4814,7 @@ func (client AppsClient) DeleteDomainOwnershipIdentifierSlot(ctx context.Context result, err = client.DeleteDomainOwnershipIdentifierSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteDomainOwnershipIdentifierSlot", resp, "Failure responding to request") + return } return @@ -4857,6 +4900,7 @@ func (client AppsClient) DeleteFunction(ctx context.Context, resourceGroupName s result, err = client.DeleteFunctionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteFunction", resp, "Failure responding to request") + return } return @@ -4942,6 +4986,7 @@ func (client AppsClient) DeleteFunctionSecret(ctx context.Context, resourceGroup result, err = client.DeleteFunctionSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteFunctionSecret", resp, "Failure responding to request") + return } return @@ -5029,6 +5074,7 @@ func (client AppsClient) DeleteFunctionSecretSlot(ctx context.Context, resourceG result, err = client.DeleteFunctionSecretSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteFunctionSecretSlot", resp, "Failure responding to request") + return } return @@ -5115,6 +5161,7 @@ func (client AppsClient) DeleteHostNameBinding(ctx context.Context, resourceGrou result, err = client.DeleteHostNameBindingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHostNameBinding", resp, "Failure responding to request") + return } return @@ -5201,6 +5248,7 @@ func (client AppsClient) DeleteHostNameBindingSlot(ctx context.Context, resource result, err = client.DeleteHostNameBindingSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHostNameBindingSlot", resp, "Failure responding to request") + return } return @@ -5287,6 +5335,7 @@ func (client AppsClient) DeleteHostSecret(ctx context.Context, resourceGroupName result, err = client.DeleteHostSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHostSecret", resp, "Failure responding to request") + return } return @@ -5374,6 +5423,7 @@ func (client AppsClient) DeleteHostSecretSlot(ctx context.Context, resourceGroup result, err = client.DeleteHostSecretSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHostSecretSlot", resp, "Failure responding to request") + return } return @@ -5461,6 +5511,7 @@ func (client AppsClient) DeleteHybridConnection(ctx context.Context, resourceGro result, err = client.DeleteHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHybridConnection", resp, "Failure responding to request") + return } return @@ -5548,6 +5599,7 @@ func (client AppsClient) DeleteHybridConnectionSlot(ctx context.Context, resourc result, err = client.DeleteHybridConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHybridConnectionSlot", resp, "Failure responding to request") + return } return @@ -5635,6 +5687,7 @@ func (client AppsClient) DeleteInstanceFunctionSlot(ctx context.Context, resourc result, err = client.DeleteInstanceFunctionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteInstanceFunctionSlot", resp, "Failure responding to request") + return } return @@ -5723,6 +5776,7 @@ func (client AppsClient) DeleteInstanceProcess(ctx context.Context, resourceGrou result, err = client.DeleteInstanceProcessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteInstanceProcess", resp, "Failure responding to request") + return } return @@ -5813,6 +5867,7 @@ func (client AppsClient) DeleteInstanceProcessSlot(ctx context.Context, resource result, err = client.DeleteInstanceProcessSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteInstanceProcessSlot", resp, "Failure responding to request") + return } return @@ -5899,6 +5954,7 @@ func (client AppsClient) DeletePremierAddOn(ctx context.Context, resourceGroupNa result, err = client.DeletePremierAddOnResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeletePremierAddOn", resp, "Failure responding to request") + return } return @@ -5985,6 +6041,7 @@ func (client AppsClient) DeletePremierAddOnSlot(ctx context.Context, resourceGro result, err = client.DeletePremierAddOnSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeletePremierAddOnSlot", resp, "Failure responding to request") + return } return @@ -6071,6 +6128,7 @@ func (client AppsClient) DeleteProcess(ctx context.Context, resourceGroupName st result, err = client.DeleteProcessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteProcess", resp, "Failure responding to request") + return } return @@ -6158,6 +6216,7 @@ func (client AppsClient) DeleteProcessSlot(ctx context.Context, resourceGroupNam result, err = client.DeleteProcessSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteProcessSlot", resp, "Failure responding to request") + return } return @@ -6243,6 +6302,7 @@ func (client AppsClient) DeletePublicCertificate(ctx context.Context, resourceGr result, err = client.DeletePublicCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeletePublicCertificate", resp, "Failure responding to request") + return } return @@ -6329,6 +6389,7 @@ func (client AppsClient) DeletePublicCertificateSlot(ctx context.Context, resour result, err = client.DeletePublicCertificateSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeletePublicCertificateSlot", resp, "Failure responding to request") + return } return @@ -6414,6 +6475,7 @@ func (client AppsClient) DeleteRelayServiceConnection(ctx context.Context, resou result, err = client.DeleteRelayServiceConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteRelayServiceConnection", resp, "Failure responding to request") + return } return @@ -6500,6 +6562,7 @@ func (client AppsClient) DeleteRelayServiceConnectionSlot(ctx context.Context, r result, err = client.DeleteRelayServiceConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteRelayServiceConnectionSlot", resp, "Failure responding to request") + return } return @@ -6585,6 +6648,7 @@ func (client AppsClient) DeleteSiteExtension(ctx context.Context, resourceGroupN result, err = client.DeleteSiteExtensionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSiteExtension", resp, "Failure responding to request") + return } return @@ -6671,6 +6735,7 @@ func (client AppsClient) DeleteSiteExtensionSlot(ctx context.Context, resourceGr result, err = client.DeleteSiteExtensionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSiteExtensionSlot", resp, "Failure responding to request") + return } return @@ -6759,6 +6824,7 @@ func (client AppsClient) DeleteSlot(ctx context.Context, resourceGroupName strin result, err = client.DeleteSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSlot", resp, "Failure responding to request") + return } return @@ -6848,6 +6914,7 @@ func (client AppsClient) DeleteSourceControl(ctx context.Context, resourceGroupN result, err = client.DeleteSourceControlResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSourceControl", resp, "Failure responding to request") + return } return @@ -6932,6 +6999,7 @@ func (client AppsClient) DeleteSourceControlSlot(ctx context.Context, resourceGr result, err = client.DeleteSourceControlSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSourceControlSlot", resp, "Failure responding to request") + return } return @@ -7015,6 +7083,7 @@ func (client AppsClient) DeleteSwiftVirtualNetwork(ctx context.Context, resource result, err = client.DeleteSwiftVirtualNetworkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSwiftVirtualNetwork", resp, "Failure responding to request") + return } return @@ -7099,6 +7168,7 @@ func (client AppsClient) DeleteSwiftVirtualNetworkSlot(ctx context.Context, reso result, err = client.DeleteSwiftVirtualNetworkSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSwiftVirtualNetworkSlot", resp, "Failure responding to request") + return } return @@ -7183,6 +7253,7 @@ func (client AppsClient) DeleteTriggeredWebJob(ctx context.Context, resourceGrou result, err = client.DeleteTriggeredWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteTriggeredWebJob", resp, "Failure responding to request") + return } return @@ -7269,6 +7340,7 @@ func (client AppsClient) DeleteTriggeredWebJobSlot(ctx context.Context, resource result, err = client.DeleteTriggeredWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteTriggeredWebJobSlot", resp, "Failure responding to request") + return } return @@ -7354,6 +7426,7 @@ func (client AppsClient) DeleteVnetConnection(ctx context.Context, resourceGroup result, err = client.DeleteVnetConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteVnetConnection", resp, "Failure responding to request") + return } return @@ -7440,6 +7513,7 @@ func (client AppsClient) DeleteVnetConnectionSlot(ctx context.Context, resourceG result, err = client.DeleteVnetConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteVnetConnectionSlot", resp, "Failure responding to request") + return } return @@ -7531,6 +7605,7 @@ func (client AppsClient) DiscoverBackup(ctx context.Context, resourceGroupName s result, err = client.DiscoverBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DiscoverBackup", resp, "Failure responding to request") + return } return @@ -7625,6 +7700,7 @@ func (client AppsClient) DiscoverBackupSlot(ctx context.Context, resourceGroupNa result, err = client.DiscoverBackupSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DiscoverBackupSlot", resp, "Failure responding to request") + return } return @@ -7711,6 +7787,7 @@ func (client AppsClient) GenerateNewSitePublishingPassword(ctx context.Context, result, err = client.GenerateNewSitePublishingPasswordResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GenerateNewSitePublishingPassword", resp, "Failure responding to request") + return } return @@ -7796,6 +7873,7 @@ func (client AppsClient) GenerateNewSitePublishingPasswordSlot(ctx context.Conte result, err = client.GenerateNewSitePublishingPasswordSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GenerateNewSitePublishingPasswordSlot", resp, "Failure responding to request") + return } return @@ -7879,6 +7957,7 @@ func (client AppsClient) Get(ctx context.Context, resourceGroupName string, name result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Get", resp, "Failure responding to request") + return } return @@ -7962,6 +8041,7 @@ func (client AppsClient) GetAuthSettings(ctx context.Context, resourceGroupName result, err = client.GetAuthSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetAuthSettings", resp, "Failure responding to request") + return } return @@ -8047,6 +8127,7 @@ func (client AppsClient) GetAuthSettingsSlot(ctx context.Context, resourceGroupN result, err = client.GetAuthSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetAuthSettingsSlot", resp, "Failure responding to request") + return } return @@ -8131,6 +8212,7 @@ func (client AppsClient) GetBackupConfiguration(ctx context.Context, resourceGro result, err = client.GetBackupConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetBackupConfiguration", resp, "Failure responding to request") + return } return @@ -8216,6 +8298,7 @@ func (client AppsClient) GetBackupConfigurationSlot(ctx context.Context, resourc result, err = client.GetBackupConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetBackupConfigurationSlot", resp, "Failure responding to request") + return } return @@ -8301,6 +8384,7 @@ func (client AppsClient) GetBackupStatus(ctx context.Context, resourceGroupName result, err = client.GetBackupStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetBackupStatus", resp, "Failure responding to request") + return } return @@ -8388,6 +8472,7 @@ func (client AppsClient) GetBackupStatusSlot(ctx context.Context, resourceGroupN result, err = client.GetBackupStatusSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetBackupStatusSlot", resp, "Failure responding to request") + return } return @@ -8474,6 +8559,7 @@ func (client AppsClient) GetConfiguration(ctx context.Context, resourceGroupName result, err = client.GetConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetConfiguration", resp, "Failure responding to request") + return } return @@ -8560,6 +8646,7 @@ func (client AppsClient) GetConfigurationSlot(ctx context.Context, resourceGroup result, err = client.GetConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetConfigurationSlot", resp, "Failure responding to request") + return } return @@ -8645,6 +8732,7 @@ func (client AppsClient) GetConfigurationSnapshot(ctx context.Context, resourceG result, err = client.GetConfigurationSnapshotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetConfigurationSnapshot", resp, "Failure responding to request") + return } return @@ -8732,6 +8820,7 @@ func (client AppsClient) GetConfigurationSnapshotSlot(ctx context.Context, resou result, err = client.GetConfigurationSnapshotSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetConfigurationSnapshotSlot", resp, "Failure responding to request") + return } return @@ -8817,6 +8906,7 @@ func (client AppsClient) GetContainerLogsZip(ctx context.Context, resourceGroupN result, err = client.GetContainerLogsZipResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetContainerLogsZip", resp, "Failure responding to request") + return } return @@ -8900,6 +8990,7 @@ func (client AppsClient) GetContainerLogsZipSlot(ctx context.Context, resourceGr result, err = client.GetContainerLogsZipSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetContainerLogsZipSlot", resp, "Failure responding to request") + return } return @@ -8984,6 +9075,7 @@ func (client AppsClient) GetContinuousWebJob(ctx context.Context, resourceGroupN result, err = client.GetContinuousWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetContinuousWebJob", resp, "Failure responding to request") + return } return @@ -9071,6 +9163,7 @@ func (client AppsClient) GetContinuousWebJobSlot(ctx context.Context, resourceGr result, err = client.GetContinuousWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetContinuousWebJobSlot", resp, "Failure responding to request") + return } return @@ -9157,6 +9250,7 @@ func (client AppsClient) GetDeployment(ctx context.Context, resourceGroupName st result, err = client.GetDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetDeployment", resp, "Failure responding to request") + return } return @@ -9244,6 +9338,7 @@ func (client AppsClient) GetDeploymentSlot(ctx context.Context, resourceGroupNam result, err = client.GetDeploymentSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetDeploymentSlot", resp, "Failure responding to request") + return } return @@ -9329,6 +9424,7 @@ func (client AppsClient) GetDiagnosticLogsConfiguration(ctx context.Context, res result, err = client.GetDiagnosticLogsConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetDiagnosticLogsConfiguration", resp, "Failure responding to request") + return } return @@ -9414,6 +9510,7 @@ func (client AppsClient) GetDiagnosticLogsConfigurationSlot(ctx context.Context, result, err = client.GetDiagnosticLogsConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetDiagnosticLogsConfigurationSlot", resp, "Failure responding to request") + return } return @@ -9499,6 +9596,7 @@ func (client AppsClient) GetDomainOwnershipIdentifier(ctx context.Context, resou result, err = client.GetDomainOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetDomainOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -9586,6 +9684,7 @@ func (client AppsClient) GetDomainOwnershipIdentifierSlot(ctx context.Context, r result, err = client.GetDomainOwnershipIdentifierSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetDomainOwnershipIdentifierSlot", resp, "Failure responding to request") + return } return @@ -9672,6 +9771,7 @@ func (client AppsClient) GetFunction(ctx context.Context, resourceGroupName stri result, err = client.GetFunctionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetFunction", resp, "Failure responding to request") + return } return @@ -9756,6 +9856,7 @@ func (client AppsClient) GetFunctionsAdminToken(ctx context.Context, resourceGro result, err = client.GetFunctionsAdminTokenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetFunctionsAdminToken", resp, "Failure responding to request") + return } return @@ -9840,6 +9941,7 @@ func (client AppsClient) GetFunctionsAdminTokenSlot(ctx context.Context, resourc result, err = client.GetFunctionsAdminTokenSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetFunctionsAdminTokenSlot", resp, "Failure responding to request") + return } return @@ -9925,6 +10027,7 @@ func (client AppsClient) GetHostNameBinding(ctx context.Context, resourceGroupNa result, err = client.GetHostNameBindingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetHostNameBinding", resp, "Failure responding to request") + return } return @@ -10012,6 +10115,7 @@ func (client AppsClient) GetHostNameBindingSlot(ctx context.Context, resourceGro result, err = client.GetHostNameBindingSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetHostNameBindingSlot", resp, "Failure responding to request") + return } return @@ -10099,6 +10203,7 @@ func (client AppsClient) GetHybridConnection(ctx context.Context, resourceGroupN result, err = client.GetHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetHybridConnection", resp, "Failure responding to request") + return } return @@ -10187,6 +10292,7 @@ func (client AppsClient) GetHybridConnectionSlot(ctx context.Context, resourceGr result, err = client.GetHybridConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetHybridConnectionSlot", resp, "Failure responding to request") + return } return @@ -10275,6 +10381,7 @@ func (client AppsClient) GetInstanceFunctionSlot(ctx context.Context, resourceGr result, err = client.GetInstanceFunctionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceFunctionSlot", resp, "Failure responding to request") + return } return @@ -10361,6 +10468,7 @@ func (client AppsClient) GetInstanceMSDeployLog(ctx context.Context, resourceGro result, err = client.GetInstanceMSDeployLogResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceMSDeployLog", resp, "Failure responding to request") + return } return @@ -10447,6 +10555,7 @@ func (client AppsClient) GetInstanceMSDeployLogSlot(ctx context.Context, resourc result, err = client.GetInstanceMSDeployLogSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceMSDeployLogSlot", resp, "Failure responding to request") + return } return @@ -10533,6 +10642,7 @@ func (client AppsClient) GetInstanceMsDeployStatus(ctx context.Context, resource result, err = client.GetInstanceMsDeployStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceMsDeployStatus", resp, "Failure responding to request") + return } return @@ -10619,6 +10729,7 @@ func (client AppsClient) GetInstanceMsDeployStatusSlot(ctx context.Context, reso result, err = client.GetInstanceMsDeployStatusSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceMsDeployStatusSlot", resp, "Failure responding to request") + return } return @@ -10707,6 +10818,7 @@ func (client AppsClient) GetInstanceProcess(ctx context.Context, resourceGroupNa result, err = client.GetInstanceProcessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcess", resp, "Failure responding to request") + return } return @@ -10795,6 +10907,7 @@ func (client AppsClient) GetInstanceProcessDump(ctx context.Context, resourceGro result, err = client.GetInstanceProcessDumpResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessDump", resp, "Failure responding to request") + return } return @@ -10885,6 +10998,7 @@ func (client AppsClient) GetInstanceProcessDumpSlot(ctx context.Context, resourc result, err = client.GetInstanceProcessDumpSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessDumpSlot", resp, "Failure responding to request") + return } return @@ -10974,6 +11088,7 @@ func (client AppsClient) GetInstanceProcessModule(ctx context.Context, resourceG result, err = client.GetInstanceProcessModuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessModule", resp, "Failure responding to request") + return } return @@ -11066,6 +11181,7 @@ func (client AppsClient) GetInstanceProcessModuleSlot(ctx context.Context, resou result, err = client.GetInstanceProcessModuleSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessModuleSlot", resp, "Failure responding to request") + return } return @@ -11158,6 +11274,7 @@ func (client AppsClient) GetInstanceProcessSlot(ctx context.Context, resourceGro result, err = client.GetInstanceProcessSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessSlot", resp, "Failure responding to request") + return } return @@ -11249,6 +11366,7 @@ func (client AppsClient) GetInstanceProcessThread(ctx context.Context, resourceG result, err = client.GetInstanceProcessThreadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessThread", resp, "Failure responding to request") + return } return @@ -11342,6 +11460,7 @@ func (client AppsClient) GetInstanceProcessThreadSlot(ctx context.Context, resou result, err = client.GetInstanceProcessThreadSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessThreadSlot", resp, "Failure responding to request") + return } return @@ -11430,6 +11549,7 @@ func (client AppsClient) GetMigrateMySQLStatus(ctx context.Context, resourceGrou result, err = client.GetMigrateMySQLStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetMigrateMySQLStatus", resp, "Failure responding to request") + return } return @@ -11515,6 +11635,7 @@ func (client AppsClient) GetMigrateMySQLStatusSlot(ctx context.Context, resource result, err = client.GetMigrateMySQLStatusSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetMigrateMySQLStatusSlot", resp, "Failure responding to request") + return } return @@ -11599,6 +11720,7 @@ func (client AppsClient) GetMSDeployLog(ctx context.Context, resourceGroupName s result, err = client.GetMSDeployLogResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetMSDeployLog", resp, "Failure responding to request") + return } return @@ -11683,6 +11805,7 @@ func (client AppsClient) GetMSDeployLogSlot(ctx context.Context, resourceGroupNa result, err = client.GetMSDeployLogSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetMSDeployLogSlot", resp, "Failure responding to request") + return } return @@ -11767,6 +11890,7 @@ func (client AppsClient) GetMSDeployStatus(ctx context.Context, resourceGroupNam result, err = client.GetMSDeployStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetMSDeployStatus", resp, "Failure responding to request") + return } return @@ -11851,6 +11975,7 @@ func (client AppsClient) GetMSDeployStatusSlot(ctx context.Context, resourceGrou result, err = client.GetMSDeployStatusSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetMSDeployStatusSlot", resp, "Failure responding to request") + return } return @@ -11936,6 +12061,7 @@ func (client AppsClient) GetNetworkTraceOperation(ctx context.Context, resourceG result, err = client.GetNetworkTraceOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetNetworkTraceOperation", resp, "Failure responding to request") + return } return @@ -12024,6 +12150,7 @@ func (client AppsClient) GetNetworkTraceOperationSlot(ctx context.Context, resou result, err = client.GetNetworkTraceOperationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetNetworkTraceOperationSlot", resp, "Failure responding to request") + return } return @@ -12113,6 +12240,7 @@ func (client AppsClient) GetNetworkTraceOperationSlotV2(ctx context.Context, res result, err = client.GetNetworkTraceOperationSlotV2Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetNetworkTraceOperationSlotV2", resp, "Failure responding to request") + return } return @@ -12199,6 +12327,7 @@ func (client AppsClient) GetNetworkTraceOperationV2(ctx context.Context, resourc result, err = client.GetNetworkTraceOperationV2Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetNetworkTraceOperationV2", resp, "Failure responding to request") + return } return @@ -12284,6 +12413,7 @@ func (client AppsClient) GetNetworkTraces(ctx context.Context, resourceGroupName result, err = client.GetNetworkTracesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetNetworkTraces", resp, "Failure responding to request") + return } return @@ -12371,6 +12501,7 @@ func (client AppsClient) GetNetworkTracesSlot(ctx context.Context, resourceGroup result, err = client.GetNetworkTracesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetNetworkTracesSlot", resp, "Failure responding to request") + return } return @@ -12459,6 +12590,7 @@ func (client AppsClient) GetNetworkTracesSlotV2(ctx context.Context, resourceGro result, err = client.GetNetworkTracesSlotV2Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetNetworkTracesSlotV2", resp, "Failure responding to request") + return } return @@ -12545,6 +12677,7 @@ func (client AppsClient) GetNetworkTracesV2(ctx context.Context, resourceGroupNa result, err = client.GetNetworkTracesV2Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetNetworkTracesV2", resp, "Failure responding to request") + return } return @@ -12630,6 +12763,7 @@ func (client AppsClient) GetPremierAddOn(ctx context.Context, resourceGroupName result, err = client.GetPremierAddOnResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetPremierAddOn", resp, "Failure responding to request") + return } return @@ -12717,6 +12851,7 @@ func (client AppsClient) GetPremierAddOnSlot(ctx context.Context, resourceGroupN result, err = client.GetPremierAddOnSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetPremierAddOnSlot", resp, "Failure responding to request") + return } return @@ -12803,6 +12938,7 @@ func (client AppsClient) GetPrivateAccess(ctx context.Context, resourceGroupName result, err = client.GetPrivateAccessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetPrivateAccess", resp, "Failure responding to request") + return } return @@ -12888,6 +13024,7 @@ func (client AppsClient) GetPrivateAccessSlot(ctx context.Context, resourceGroup result, err = client.GetPrivateAccessSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetPrivateAccessSlot", resp, "Failure responding to request") + return } return @@ -12973,6 +13110,7 @@ func (client AppsClient) GetProcess(ctx context.Context, resourceGroupName strin result, err = client.GetProcessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcess", resp, "Failure responding to request") + return } return @@ -13058,6 +13196,7 @@ func (client AppsClient) GetProcessDump(ctx context.Context, resourceGroupName s result, err = client.GetProcessDumpResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessDump", resp, "Failure responding to request") + return } return @@ -13144,6 +13283,7 @@ func (client AppsClient) GetProcessDumpSlot(ctx context.Context, resourceGroupNa result, err = client.GetProcessDumpSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessDumpSlot", resp, "Failure responding to request") + return } return @@ -13230,6 +13370,7 @@ func (client AppsClient) GetProcessModule(ctx context.Context, resourceGroupName result, err = client.GetProcessModuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessModule", resp, "Failure responding to request") + return } return @@ -13319,6 +13460,7 @@ func (client AppsClient) GetProcessModuleSlot(ctx context.Context, resourceGroup result, err = client.GetProcessModuleSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessModuleSlot", resp, "Failure responding to request") + return } return @@ -13408,6 +13550,7 @@ func (client AppsClient) GetProcessSlot(ctx context.Context, resourceGroupName s result, err = client.GetProcessSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessSlot", resp, "Failure responding to request") + return } return @@ -13496,6 +13639,7 @@ func (client AppsClient) GetProcessThread(ctx context.Context, resourceGroupName result, err = client.GetProcessThreadResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessThread", resp, "Failure responding to request") + return } return @@ -13586,6 +13730,7 @@ func (client AppsClient) GetProcessThreadSlot(ctx context.Context, resourceGroup result, err = client.GetProcessThreadSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessThreadSlot", resp, "Failure responding to request") + return } return @@ -13673,6 +13818,7 @@ func (client AppsClient) GetPublicCertificate(ctx context.Context, resourceGroup result, err = client.GetPublicCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetPublicCertificate", resp, "Failure responding to request") + return } return @@ -13760,6 +13906,7 @@ func (client AppsClient) GetPublicCertificateSlot(ctx context.Context, resourceG result, err = client.GetPublicCertificateSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetPublicCertificateSlot", resp, "Failure responding to request") + return } return @@ -13846,6 +13993,7 @@ func (client AppsClient) GetRelayServiceConnection(ctx context.Context, resource result, err = client.GetRelayServiceConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetRelayServiceConnection", resp, "Failure responding to request") + return } return @@ -13933,6 +14081,7 @@ func (client AppsClient) GetRelayServiceConnectionSlot(ctx context.Context, reso result, err = client.GetRelayServiceConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetRelayServiceConnectionSlot", resp, "Failure responding to request") + return } return @@ -14019,6 +14168,7 @@ func (client AppsClient) GetSiteExtension(ctx context.Context, resourceGroupName result, err = client.GetSiteExtensionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSiteExtension", resp, "Failure responding to request") + return } return @@ -14106,6 +14256,7 @@ func (client AppsClient) GetSiteExtensionSlot(ctx context.Context, resourceGroup result, err = client.GetSiteExtensionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSiteExtensionSlot", resp, "Failure responding to request") + return } return @@ -14191,6 +14342,7 @@ func (client AppsClient) GetSitePhpErrorLogFlag(ctx context.Context, resourceGro result, err = client.GetSitePhpErrorLogFlagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSitePhpErrorLogFlag", resp, "Failure responding to request") + return } return @@ -14275,6 +14427,7 @@ func (client AppsClient) GetSitePhpErrorLogFlagSlot(ctx context.Context, resourc result, err = client.GetSitePhpErrorLogFlagSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSitePhpErrorLogFlagSlot", resp, "Failure responding to request") + return } return @@ -14360,6 +14513,7 @@ func (client AppsClient) GetSlot(ctx context.Context, resourceGroupName string, result, err = client.GetSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSlot", resp, "Failure responding to request") + return } return @@ -14444,6 +14598,7 @@ func (client AppsClient) GetSourceControl(ctx context.Context, resourceGroupName result, err = client.GetSourceControlResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSourceControl", resp, "Failure responding to request") + return } return @@ -14529,6 +14684,7 @@ func (client AppsClient) GetSourceControlSlot(ctx context.Context, resourceGroup result, err = client.GetSourceControlSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSourceControlSlot", resp, "Failure responding to request") + return } return @@ -14613,6 +14769,7 @@ func (client AppsClient) GetSwiftVirtualNetworkConnection(ctx context.Context, r result, err = client.GetSwiftVirtualNetworkConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSwiftVirtualNetworkConnection", resp, "Failure responding to request") + return } return @@ -14698,6 +14855,7 @@ func (client AppsClient) GetSwiftVirtualNetworkConnectionSlot(ctx context.Contex result, err = client.GetSwiftVirtualNetworkConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSwiftVirtualNetworkConnectionSlot", resp, "Failure responding to request") + return } return @@ -14783,6 +14941,7 @@ func (client AppsClient) GetTriggeredWebJob(ctx context.Context, resourceGroupNa result, err = client.GetTriggeredWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJob", resp, "Failure responding to request") + return } return @@ -14869,6 +15028,7 @@ func (client AppsClient) GetTriggeredWebJobHistory(ctx context.Context, resource result, err = client.GetTriggeredWebJobHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJobHistory", resp, "Failure responding to request") + return } return @@ -14958,6 +15118,7 @@ func (client AppsClient) GetTriggeredWebJobHistorySlot(ctx context.Context, reso result, err = client.GetTriggeredWebJobHistorySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJobHistorySlot", resp, "Failure responding to request") + return } return @@ -15047,6 +15208,7 @@ func (client AppsClient) GetTriggeredWebJobSlot(ctx context.Context, resourceGro result, err = client.GetTriggeredWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJobSlot", resp, "Failure responding to request") + return } return @@ -15133,6 +15295,7 @@ func (client AppsClient) GetVnetConnection(ctx context.Context, resourceGroupNam result, err = client.GetVnetConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetVnetConnection", resp, "Failure responding to request") + return } return @@ -15219,6 +15382,7 @@ func (client AppsClient) GetVnetConnectionGateway(ctx context.Context, resourceG result, err = client.GetVnetConnectionGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetVnetConnectionGateway", resp, "Failure responding to request") + return } return @@ -15308,6 +15472,7 @@ func (client AppsClient) GetVnetConnectionGatewaySlot(ctx context.Context, resou result, err = client.GetVnetConnectionGatewaySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetVnetConnectionGatewaySlot", resp, "Failure responding to request") + return } return @@ -15397,6 +15562,7 @@ func (client AppsClient) GetVnetConnectionSlot(ctx context.Context, resourceGrou result, err = client.GetVnetConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetVnetConnectionSlot", resp, "Failure responding to request") + return } return @@ -15483,6 +15649,7 @@ func (client AppsClient) GetWebJob(ctx context.Context, resourceGroupName string result, err = client.GetWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetWebJob", resp, "Failure responding to request") + return } return @@ -15570,6 +15737,7 @@ func (client AppsClient) GetWebJobSlot(ctx context.Context, resourceGroupName st result, err = client.GetWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetWebJobSlot", resp, "Failure responding to request") + return } return @@ -15655,6 +15823,7 @@ func (client AppsClient) GetWebSiteContainerLogs(ctx context.Context, resourceGr result, err = client.GetWebSiteContainerLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetWebSiteContainerLogs", resp, "Failure responding to request") + return } return @@ -15738,6 +15907,7 @@ func (client AppsClient) GetWebSiteContainerLogsSlot(ctx context.Context, resour result, err = client.GetWebSiteContainerLogsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetWebSiteContainerLogsSlot", resp, "Failure responding to request") + return } return @@ -15994,6 +16164,7 @@ func (client AppsClient) IsCloneable(ctx context.Context, resourceGroupName stri result, err = client.IsCloneableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "IsCloneable", resp, "Failure responding to request") + return } return @@ -16078,6 +16249,7 @@ func (client AppsClient) IsCloneableSlot(ctx context.Context, resourceGroupName result, err = client.IsCloneableSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "IsCloneableSlot", resp, "Failure responding to request") + return } return @@ -16152,6 +16324,7 @@ func (client AppsClient) List(ctx context.Context) (result AppCollectionPage, er result.ac, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "List", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -16214,6 +16387,7 @@ func (client AppsClient) listNextResults(ctx context.Context, lastResults AppCol result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -16273,6 +16447,7 @@ func (client AppsClient) ListApplicationSettings(ctx context.Context, resourceGr result, err = client.ListApplicationSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListApplicationSettings", resp, "Failure responding to request") + return } return @@ -16358,6 +16533,7 @@ func (client AppsClient) ListApplicationSettingsSlot(ctx context.Context, resour result, err = client.ListApplicationSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListApplicationSettingsSlot", resp, "Failure responding to request") + return } return @@ -16442,6 +16618,7 @@ func (client AppsClient) ListAzureStorageAccounts(ctx context.Context, resourceG result, err = client.ListAzureStorageAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListAzureStorageAccounts", resp, "Failure responding to request") + return } return @@ -16527,6 +16704,7 @@ func (client AppsClient) ListAzureStorageAccountsSlot(ctx context.Context, resou result, err = client.ListAzureStorageAccountsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListAzureStorageAccountsSlot", resp, "Failure responding to request") + return } return @@ -16612,6 +16790,7 @@ func (client AppsClient) ListBackups(ctx context.Context, resourceGroupName stri result.bic, err = client.ListBackupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListBackups", resp, "Failure responding to request") + return } if result.bic.hasNextLink() && result.bic.IsEmpty() { err = result.NextWithContext(ctx) @@ -16676,6 +16855,7 @@ func (client AppsClient) listBackupsNextResults(ctx context.Context, lastResults result, err = client.ListBackupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listBackupsNextResults", resp, "Failure responding to next results request") + return } return } @@ -16738,6 +16918,7 @@ func (client AppsClient) ListBackupsSlot(ctx context.Context, resourceGroupName result.bic, err = client.ListBackupsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListBackupsSlot", resp, "Failure responding to request") + return } if result.bic.hasNextLink() && result.bic.IsEmpty() { err = result.NextWithContext(ctx) @@ -16803,6 +16984,7 @@ func (client AppsClient) listBackupsSlotNextResults(ctx context.Context, lastRes result, err = client.ListBackupsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listBackupsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -16875,6 +17057,7 @@ func (client AppsClient) ListBackupStatusSecrets(ctx context.Context, resourceGr result, err = client.ListBackupStatusSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListBackupStatusSecrets", resp, "Failure responding to request") + return } return @@ -16975,6 +17158,7 @@ func (client AppsClient) ListBackupStatusSecretsSlot(ctx context.Context, resour result, err = client.ListBackupStatusSecretsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListBackupStatusSecretsSlot", resp, "Failure responding to request") + return } return @@ -17064,6 +17248,7 @@ func (client AppsClient) ListByResourceGroup(ctx context.Context, resourceGroupN result.ac, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -17130,6 +17315,7 @@ func (client AppsClient) listByResourceGroupNextResults(ctx context.Context, las result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -17190,6 +17376,7 @@ func (client AppsClient) ListConfigurations(ctx context.Context, resourceGroupNa result.scrc, err = client.ListConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConfigurations", resp, "Failure responding to request") + return } if result.scrc.hasNextLink() && result.scrc.IsEmpty() { err = result.NextWithContext(ctx) @@ -17254,6 +17441,7 @@ func (client AppsClient) listConfigurationsNextResults(ctx context.Context, last result, err = client.ListConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -17315,6 +17503,7 @@ func (client AppsClient) ListConfigurationSnapshotInfo(ctx context.Context, reso result.scsic, err = client.ListConfigurationSnapshotInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConfigurationSnapshotInfo", resp, "Failure responding to request") + return } if result.scsic.hasNextLink() && result.scsic.IsEmpty() { err = result.NextWithContext(ctx) @@ -17379,6 +17568,7 @@ func (client AppsClient) listConfigurationSnapshotInfoNextResults(ctx context.Co result, err = client.ListConfigurationSnapshotInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listConfigurationSnapshotInfoNextResults", resp, "Failure responding to next results request") + return } return } @@ -17442,6 +17632,7 @@ func (client AppsClient) ListConfigurationSnapshotInfoSlot(ctx context.Context, result.scsic, err = client.ListConfigurationSnapshotInfoSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConfigurationSnapshotInfoSlot", resp, "Failure responding to request") + return } if result.scsic.hasNextLink() && result.scsic.IsEmpty() { err = result.NextWithContext(ctx) @@ -17507,6 +17698,7 @@ func (client AppsClient) listConfigurationSnapshotInfoSlotNextResults(ctx contex result, err = client.ListConfigurationSnapshotInfoSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listConfigurationSnapshotInfoSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -17569,6 +17761,7 @@ func (client AppsClient) ListConfigurationsSlot(ctx context.Context, resourceGro result.scrc, err = client.ListConfigurationsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConfigurationsSlot", resp, "Failure responding to request") + return } if result.scrc.hasNextLink() && result.scrc.IsEmpty() { err = result.NextWithContext(ctx) @@ -17634,6 +17827,7 @@ func (client AppsClient) listConfigurationsSlotNextResults(ctx context.Context, result, err = client.ListConfigurationsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listConfigurationsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -17693,6 +17887,7 @@ func (client AppsClient) ListConnectionStrings(ctx context.Context, resourceGrou result, err = client.ListConnectionStringsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConnectionStrings", resp, "Failure responding to request") + return } return @@ -17778,6 +17973,7 @@ func (client AppsClient) ListConnectionStringsSlot(ctx context.Context, resource result, err = client.ListConnectionStringsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConnectionStringsSlot", resp, "Failure responding to request") + return } return @@ -17863,6 +18059,7 @@ func (client AppsClient) ListContinuousWebJobs(ctx context.Context, resourceGrou result.cwjc, err = client.ListContinuousWebJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListContinuousWebJobs", resp, "Failure responding to request") + return } if result.cwjc.hasNextLink() && result.cwjc.IsEmpty() { err = result.NextWithContext(ctx) @@ -17927,6 +18124,7 @@ func (client AppsClient) listContinuousWebJobsNextResults(ctx context.Context, l result, err = client.ListContinuousWebJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listContinuousWebJobsNextResults", resp, "Failure responding to next results request") + return } return } @@ -17989,6 +18187,7 @@ func (client AppsClient) ListContinuousWebJobsSlot(ctx context.Context, resource result.cwjc, err = client.ListContinuousWebJobsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListContinuousWebJobsSlot", resp, "Failure responding to request") + return } if result.cwjc.hasNextLink() && result.cwjc.IsEmpty() { err = result.NextWithContext(ctx) @@ -18054,6 +18253,7 @@ func (client AppsClient) listContinuousWebJobsSlotNextResults(ctx context.Contex result, err = client.ListContinuousWebJobsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listContinuousWebJobsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -18115,6 +18315,7 @@ func (client AppsClient) ListDeploymentLog(ctx context.Context, resourceGroupNam result, err = client.ListDeploymentLogResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDeploymentLog", resp, "Failure responding to request") + return } return @@ -18203,6 +18404,7 @@ func (client AppsClient) ListDeploymentLogSlot(ctx context.Context, resourceGrou result, err = client.ListDeploymentLogSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDeploymentLogSlot", resp, "Failure responding to request") + return } return @@ -18289,6 +18491,7 @@ func (client AppsClient) ListDeployments(ctx context.Context, resourceGroupName result.dc, err = client.ListDeploymentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDeployments", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -18353,6 +18556,7 @@ func (client AppsClient) listDeploymentsNextResults(ctx context.Context, lastRes result, err = client.ListDeploymentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listDeploymentsNextResults", resp, "Failure responding to next results request") + return } return } @@ -18415,6 +18619,7 @@ func (client AppsClient) ListDeploymentsSlot(ctx context.Context, resourceGroupN result.dc, err = client.ListDeploymentsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDeploymentsSlot", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -18480,6 +18685,7 @@ func (client AppsClient) listDeploymentsSlotNextResults(ctx context.Context, las result, err = client.ListDeploymentsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listDeploymentsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -18540,6 +18746,7 @@ func (client AppsClient) ListDomainOwnershipIdentifiers(ctx context.Context, res result.ic, err = client.ListDomainOwnershipIdentifiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDomainOwnershipIdentifiers", resp, "Failure responding to request") + return } if result.ic.hasNextLink() && result.ic.IsEmpty() { err = result.NextWithContext(ctx) @@ -18604,6 +18811,7 @@ func (client AppsClient) listDomainOwnershipIdentifiersNextResults(ctx context.C result, err = client.ListDomainOwnershipIdentifiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listDomainOwnershipIdentifiersNextResults", resp, "Failure responding to next results request") + return } return } @@ -18666,6 +18874,7 @@ func (client AppsClient) ListDomainOwnershipIdentifiersSlot(ctx context.Context, result.ic, err = client.ListDomainOwnershipIdentifiersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDomainOwnershipIdentifiersSlot", resp, "Failure responding to request") + return } if result.ic.hasNextLink() && result.ic.IsEmpty() { err = result.NextWithContext(ctx) @@ -18731,6 +18940,7 @@ func (client AppsClient) listDomainOwnershipIdentifiersSlotNextResults(ctx conte result, err = client.ListDomainOwnershipIdentifiersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listDomainOwnershipIdentifiersSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -18791,6 +19001,7 @@ func (client AppsClient) ListFunctionKeys(ctx context.Context, resourceGroupName result, err = client.ListFunctionKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListFunctionKeys", resp, "Failure responding to request") + return } return @@ -18877,6 +19088,7 @@ func (client AppsClient) ListFunctionKeysSlot(ctx context.Context, resourceGroup result, err = client.ListFunctionKeysSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListFunctionKeysSlot", resp, "Failure responding to request") + return } return @@ -18963,6 +19175,7 @@ func (client AppsClient) ListFunctions(ctx context.Context, resourceGroupName st result.fec, err = client.ListFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListFunctions", resp, "Failure responding to request") + return } if result.fec.hasNextLink() && result.fec.IsEmpty() { err = result.NextWithContext(ctx) @@ -19027,6 +19240,7 @@ func (client AppsClient) listFunctionsNextResults(ctx context.Context, lastResul result, err = client.ListFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listFunctionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -19087,6 +19301,7 @@ func (client AppsClient) ListFunctionSecrets(ctx context.Context, resourceGroupN result, err = client.ListFunctionSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListFunctionSecrets", resp, "Failure responding to request") + return } return @@ -19173,6 +19388,7 @@ func (client AppsClient) ListFunctionSecretsSlot(ctx context.Context, resourceGr result, err = client.ListFunctionSecretsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListFunctionSecretsSlot", resp, "Failure responding to request") + return } return @@ -19258,6 +19474,7 @@ func (client AppsClient) ListHostKeys(ctx context.Context, resourceGroupName str result, err = client.ListHostKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHostKeys", resp, "Failure responding to request") + return } return @@ -19342,6 +19559,7 @@ func (client AppsClient) ListHostKeysSlot(ctx context.Context, resourceGroupName result, err = client.ListHostKeysSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHostKeysSlot", resp, "Failure responding to request") + return } return @@ -19427,6 +19645,7 @@ func (client AppsClient) ListHostNameBindings(ctx context.Context, resourceGroup result.hnbc, err = client.ListHostNameBindingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHostNameBindings", resp, "Failure responding to request") + return } if result.hnbc.hasNextLink() && result.hnbc.IsEmpty() { err = result.NextWithContext(ctx) @@ -19491,6 +19710,7 @@ func (client AppsClient) listHostNameBindingsNextResults(ctx context.Context, la result, err = client.ListHostNameBindingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listHostNameBindingsNextResults", resp, "Failure responding to next results request") + return } return } @@ -19553,6 +19773,7 @@ func (client AppsClient) ListHostNameBindingsSlot(ctx context.Context, resourceG result.hnbc, err = client.ListHostNameBindingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHostNameBindingsSlot", resp, "Failure responding to request") + return } if result.hnbc.hasNextLink() && result.hnbc.IsEmpty() { err = result.NextWithContext(ctx) @@ -19618,6 +19839,7 @@ func (client AppsClient) listHostNameBindingsSlotNextResults(ctx context.Context result, err = client.ListHostNameBindingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listHostNameBindingsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -19679,6 +19901,7 @@ func (client AppsClient) ListHybridConnectionKeys(ctx context.Context, resourceG result, err = client.ListHybridConnectionKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHybridConnectionKeys", resp, "Failure responding to request") + return } return @@ -19767,6 +19990,7 @@ func (client AppsClient) ListHybridConnectionKeysSlot(ctx context.Context, resou result, err = client.ListHybridConnectionKeysSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHybridConnectionKeysSlot", resp, "Failure responding to request") + return } return @@ -19853,6 +20077,7 @@ func (client AppsClient) ListHybridConnections(ctx context.Context, resourceGrou result, err = client.ListHybridConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHybridConnections", resp, "Failure responding to request") + return } return @@ -19937,6 +20162,7 @@ func (client AppsClient) ListHybridConnectionsSlot(ctx context.Context, resource result, err = client.ListHybridConnectionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHybridConnectionsSlot", resp, "Failure responding to request") + return } return @@ -20023,6 +20249,7 @@ func (client AppsClient) ListInstanceFunctionsSlot(ctx context.Context, resource result.fec, err = client.ListInstanceFunctionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceFunctionsSlot", resp, "Failure responding to request") + return } if result.fec.hasNextLink() && result.fec.IsEmpty() { err = result.NextWithContext(ctx) @@ -20088,6 +20315,7 @@ func (client AppsClient) listInstanceFunctionsSlotNextResults(ctx context.Contex result, err = client.ListInstanceFunctionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceFunctionsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -20148,6 +20376,7 @@ func (client AppsClient) ListInstanceIdentifiers(ctx context.Context, resourceGr result.aic, err = client.ListInstanceIdentifiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceIdentifiers", resp, "Failure responding to request") + return } if result.aic.hasNextLink() && result.aic.IsEmpty() { err = result.NextWithContext(ctx) @@ -20212,6 +20441,7 @@ func (client AppsClient) listInstanceIdentifiersNextResults(ctx context.Context, result, err = client.ListInstanceIdentifiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceIdentifiersNextResults", resp, "Failure responding to next results request") + return } return } @@ -20273,6 +20503,7 @@ func (client AppsClient) ListInstanceIdentifiersSlot(ctx context.Context, resour result.aic, err = client.ListInstanceIdentifiersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceIdentifiersSlot", resp, "Failure responding to request") + return } if result.aic.hasNextLink() && result.aic.IsEmpty() { err = result.NextWithContext(ctx) @@ -20338,6 +20569,7 @@ func (client AppsClient) listInstanceIdentifiersSlotNextResults(ctx context.Cont result, err = client.ListInstanceIdentifiersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceIdentifiersSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -20401,6 +20633,7 @@ func (client AppsClient) ListInstanceProcesses(ctx context.Context, resourceGrou result.pic, err = client.ListInstanceProcessesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcesses", resp, "Failure responding to request") + return } if result.pic.hasNextLink() && result.pic.IsEmpty() { err = result.NextWithContext(ctx) @@ -20466,6 +20699,7 @@ func (client AppsClient) listInstanceProcessesNextResults(ctx context.Context, l result, err = client.ListInstanceProcessesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceProcessesNextResults", resp, "Failure responding to next results request") + return } return } @@ -20531,6 +20765,7 @@ func (client AppsClient) ListInstanceProcessesSlot(ctx context.Context, resource result.pic, err = client.ListInstanceProcessesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcessesSlot", resp, "Failure responding to request") + return } if result.pic.hasNextLink() && result.pic.IsEmpty() { err = result.NextWithContext(ctx) @@ -20597,6 +20832,7 @@ func (client AppsClient) listInstanceProcessesSlotNextResults(ctx context.Contex result, err = client.ListInstanceProcessesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceProcessesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -20661,6 +20897,7 @@ func (client AppsClient) ListInstanceProcessModules(ctx context.Context, resourc result.pmic, err = client.ListInstanceProcessModulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcessModules", resp, "Failure responding to request") + return } if result.pmic.hasNextLink() && result.pmic.IsEmpty() { err = result.NextWithContext(ctx) @@ -20727,6 +20964,7 @@ func (client AppsClient) listInstanceProcessModulesNextResults(ctx context.Conte result, err = client.ListInstanceProcessModulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceProcessModulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -20793,6 +21031,7 @@ func (client AppsClient) ListInstanceProcessModulesSlot(ctx context.Context, res result.pmic, err = client.ListInstanceProcessModulesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcessModulesSlot", resp, "Failure responding to request") + return } if result.pmic.hasNextLink() && result.pmic.IsEmpty() { err = result.NextWithContext(ctx) @@ -20860,6 +21099,7 @@ func (client AppsClient) listInstanceProcessModulesSlotNextResults(ctx context.C result, err = client.ListInstanceProcessModulesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceProcessModulesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -20923,6 +21163,7 @@ func (client AppsClient) ListInstanceProcessThreads(ctx context.Context, resourc result.ptic, err = client.ListInstanceProcessThreadsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcessThreads", resp, "Failure responding to request") + return } if result.ptic.hasNextLink() && result.ptic.IsEmpty() { err = result.NextWithContext(ctx) @@ -20989,6 +21230,7 @@ func (client AppsClient) listInstanceProcessThreadsNextResults(ctx context.Conte result, err = client.ListInstanceProcessThreadsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceProcessThreadsNextResults", resp, "Failure responding to next results request") + return } return } @@ -21055,6 +21297,7 @@ func (client AppsClient) ListInstanceProcessThreadsSlot(ctx context.Context, res result.ptic, err = client.ListInstanceProcessThreadsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcessThreadsSlot", resp, "Failure responding to request") + return } if result.ptic.hasNextLink() && result.ptic.IsEmpty() { err = result.NextWithContext(ctx) @@ -21122,6 +21365,7 @@ func (client AppsClient) listInstanceProcessThreadsSlotNextResults(ctx context.C result, err = client.ListInstanceProcessThreadsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceProcessThreadsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -21181,6 +21425,7 @@ func (client AppsClient) ListMetadata(ctx context.Context, resourceGroupName str result, err = client.ListMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetadata", resp, "Failure responding to request") + return } return @@ -21266,6 +21511,7 @@ func (client AppsClient) ListMetadataSlot(ctx context.Context, resourceGroupName result, err = client.ListMetadataSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetadataSlot", resp, "Failure responding to request") + return } return @@ -21351,6 +21597,7 @@ func (client AppsClient) ListMetricDefinitions(ctx context.Context, resourceGrou result.rmdc, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -21415,6 +21662,7 @@ func (client AppsClient) listMetricDefinitionsNextResults(ctx context.Context, l result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listMetricDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -21477,6 +21725,7 @@ func (client AppsClient) ListMetricDefinitionsSlot(ctx context.Context, resource result.rmdc, err = client.ListMetricDefinitionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetricDefinitionsSlot", resp, "Failure responding to request") + return } if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -21542,6 +21791,7 @@ func (client AppsClient) listMetricDefinitionsSlotNextResults(ctx context.Contex result, err = client.ListMetricDefinitionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listMetricDefinitionsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -21606,6 +21856,7 @@ func (client AppsClient) ListMetrics(ctx context.Context, resourceGroupName stri result.rmc, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetrics", resp, "Failure responding to request") + return } if result.rmc.hasNextLink() && result.rmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -21676,6 +21927,7 @@ func (client AppsClient) listMetricsNextResults(ctx context.Context, lastResults result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -21742,6 +21994,7 @@ func (client AppsClient) ListMetricsSlot(ctx context.Context, resourceGroupName result.rmc, err = client.ListMetricsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetricsSlot", resp, "Failure responding to request") + return } if result.rmc.hasNextLink() && result.rmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -21813,6 +22066,7 @@ func (client AppsClient) listMetricsSlotNextResults(ctx context.Context, lastRes result, err = client.ListMetricsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listMetricsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -21873,6 +22127,7 @@ func (client AppsClient) ListNetworkFeatures(ctx context.Context, resourceGroupN result, err = client.ListNetworkFeaturesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListNetworkFeatures", resp, "Failure responding to request") + return } return @@ -21960,6 +22215,7 @@ func (client AppsClient) ListNetworkFeaturesSlot(ctx context.Context, resourceGr result, err = client.ListNetworkFeaturesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListNetworkFeaturesSlot", resp, "Failure responding to request") + return } return @@ -22049,6 +22305,7 @@ func (client AppsClient) ListPerfMonCounters(ctx context.Context, resourceGroupN result.pmcc, err = client.ListPerfMonCountersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPerfMonCounters", resp, "Failure responding to request") + return } if result.pmcc.hasNextLink() && result.pmcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -22116,6 +22373,7 @@ func (client AppsClient) listPerfMonCountersNextResults(ctx context.Context, las result, err = client.ListPerfMonCountersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listPerfMonCountersNextResults", resp, "Failure responding to next results request") + return } return } @@ -22180,6 +22438,7 @@ func (client AppsClient) ListPerfMonCountersSlot(ctx context.Context, resourceGr result.pmcc, err = client.ListPerfMonCountersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPerfMonCountersSlot", resp, "Failure responding to request") + return } if result.pmcc.hasNextLink() && result.pmcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -22248,6 +22507,7 @@ func (client AppsClient) listPerfMonCountersSlotNextResults(ctx context.Context, result, err = client.ListPerfMonCountersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listPerfMonCountersSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -22307,6 +22567,7 @@ func (client AppsClient) ListPremierAddOns(ctx context.Context, resourceGroupNam result, err = client.ListPremierAddOnsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPremierAddOns", resp, "Failure responding to request") + return } return @@ -22392,6 +22653,7 @@ func (client AppsClient) ListPremierAddOnsSlot(ctx context.Context, resourceGrou result, err = client.ListPremierAddOnsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPremierAddOnsSlot", resp, "Failure responding to request") + return } return @@ -22478,6 +22740,7 @@ func (client AppsClient) ListProcesses(ctx context.Context, resourceGroupName st result.pic, err = client.ListProcessesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcesses", resp, "Failure responding to request") + return } if result.pic.hasNextLink() && result.pic.IsEmpty() { err = result.NextWithContext(ctx) @@ -22542,6 +22805,7 @@ func (client AppsClient) listProcessesNextResults(ctx context.Context, lastResul result, err = client.ListProcessesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listProcessesNextResults", resp, "Failure responding to next results request") + return } return } @@ -22605,6 +22869,7 @@ func (client AppsClient) ListProcessesSlot(ctx context.Context, resourceGroupNam result.pic, err = client.ListProcessesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcessesSlot", resp, "Failure responding to request") + return } if result.pic.hasNextLink() && result.pic.IsEmpty() { err = result.NextWithContext(ctx) @@ -22670,6 +22935,7 @@ func (client AppsClient) listProcessesSlotNextResults(ctx context.Context, lastR result, err = client.ListProcessesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listProcessesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -22731,6 +22997,7 @@ func (client AppsClient) ListProcessModules(ctx context.Context, resourceGroupNa result.pmic, err = client.ListProcessModulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcessModules", resp, "Failure responding to request") + return } if result.pmic.hasNextLink() && result.pmic.IsEmpty() { err = result.NextWithContext(ctx) @@ -22796,6 +23063,7 @@ func (client AppsClient) listProcessModulesNextResults(ctx context.Context, last result, err = client.ListProcessModulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listProcessModulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -22860,6 +23128,7 @@ func (client AppsClient) ListProcessModulesSlot(ctx context.Context, resourceGro result.pmic, err = client.ListProcessModulesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcessModulesSlot", resp, "Failure responding to request") + return } if result.pmic.hasNextLink() && result.pmic.IsEmpty() { err = result.NextWithContext(ctx) @@ -22926,6 +23195,7 @@ func (client AppsClient) listProcessModulesSlotNextResults(ctx context.Context, result, err = client.ListProcessModulesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listProcessModulesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -22987,6 +23257,7 @@ func (client AppsClient) ListProcessThreads(ctx context.Context, resourceGroupNa result.ptic, err = client.ListProcessThreadsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcessThreads", resp, "Failure responding to request") + return } if result.ptic.hasNextLink() && result.ptic.IsEmpty() { err = result.NextWithContext(ctx) @@ -23052,6 +23323,7 @@ func (client AppsClient) listProcessThreadsNextResults(ctx context.Context, last result, err = client.ListProcessThreadsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listProcessThreadsNextResults", resp, "Failure responding to next results request") + return } return } @@ -23115,6 +23387,7 @@ func (client AppsClient) ListProcessThreadsSlot(ctx context.Context, resourceGro result.ptic, err = client.ListProcessThreadsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcessThreadsSlot", resp, "Failure responding to request") + return } if result.ptic.hasNextLink() && result.ptic.IsEmpty() { err = result.NextWithContext(ctx) @@ -23181,6 +23454,7 @@ func (client AppsClient) listProcessThreadsSlotNextResults(ctx context.Context, result, err = client.ListProcessThreadsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listProcessThreadsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -23241,6 +23515,7 @@ func (client AppsClient) ListPublicCertificates(ctx context.Context, resourceGro result.pcc, err = client.ListPublicCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPublicCertificates", resp, "Failure responding to request") + return } if result.pcc.hasNextLink() && result.pcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -23305,6 +23580,7 @@ func (client AppsClient) listPublicCertificatesNextResults(ctx context.Context, result, err = client.ListPublicCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listPublicCertificatesNextResults", resp, "Failure responding to next results request") + return } return } @@ -23367,6 +23643,7 @@ func (client AppsClient) ListPublicCertificatesSlot(ctx context.Context, resourc result.pcc, err = client.ListPublicCertificatesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPublicCertificatesSlot", resp, "Failure responding to request") + return } if result.pcc.hasNextLink() && result.pcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -23432,6 +23709,7 @@ func (client AppsClient) listPublicCertificatesSlotNextResults(ctx context.Conte result, err = client.ListPublicCertificatesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listPublicCertificatesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -23662,6 +23940,7 @@ func (client AppsClient) ListPublishingProfileXMLWithSecrets(ctx context.Context result, err = client.ListPublishingProfileXMLWithSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPublishingProfileXMLWithSecrets", resp, "Failure responding to request") + return } return @@ -23750,6 +24029,7 @@ func (client AppsClient) ListPublishingProfileXMLWithSecretsSlot(ctx context.Con result, err = client.ListPublishingProfileXMLWithSecretsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPublishingProfileXMLWithSecretsSlot", resp, "Failure responding to request") + return } return @@ -23835,6 +24115,7 @@ func (client AppsClient) ListRelayServiceConnections(ctx context.Context, resour result, err = client.ListRelayServiceConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListRelayServiceConnections", resp, "Failure responding to request") + return } return @@ -23920,6 +24201,7 @@ func (client AppsClient) ListRelayServiceConnectionsSlot(ctx context.Context, re result, err = client.ListRelayServiceConnectionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListRelayServiceConnectionsSlot", resp, "Failure responding to request") + return } return @@ -24005,6 +24287,7 @@ func (client AppsClient) ListSiteExtensions(ctx context.Context, resourceGroupNa result.seic, err = client.ListSiteExtensionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSiteExtensions", resp, "Failure responding to request") + return } if result.seic.hasNextLink() && result.seic.IsEmpty() { err = result.NextWithContext(ctx) @@ -24069,6 +24352,7 @@ func (client AppsClient) listSiteExtensionsNextResults(ctx context.Context, last result, err = client.ListSiteExtensionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSiteExtensionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -24131,6 +24415,7 @@ func (client AppsClient) ListSiteExtensionsSlot(ctx context.Context, resourceGro result.seic, err = client.ListSiteExtensionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSiteExtensionsSlot", resp, "Failure responding to request") + return } if result.seic.hasNextLink() && result.seic.IsEmpty() { err = result.NextWithContext(ctx) @@ -24196,6 +24481,7 @@ func (client AppsClient) listSiteExtensionsSlotNextResults(ctx context.Context, result, err = client.ListSiteExtensionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSiteExtensionsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -24255,6 +24541,7 @@ func (client AppsClient) ListSitePushSettings(ctx context.Context, resourceGroup result, err = client.ListSitePushSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSitePushSettings", resp, "Failure responding to request") + return } return @@ -24339,6 +24626,7 @@ func (client AppsClient) ListSitePushSettingsSlot(ctx context.Context, resourceG result, err = client.ListSitePushSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSitePushSettingsSlot", resp, "Failure responding to request") + return } return @@ -24424,6 +24712,7 @@ func (client AppsClient) ListSlotConfigurationNames(ctx context.Context, resourc result, err = client.ListSlotConfigurationNamesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSlotConfigurationNames", resp, "Failure responding to request") + return } return @@ -24512,6 +24801,7 @@ func (client AppsClient) ListSlotDifferencesFromProduction(ctx context.Context, result.sdc, err = client.ListSlotDifferencesFromProductionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSlotDifferencesFromProduction", resp, "Failure responding to request") + return } if result.sdc.hasNextLink() && result.sdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -24578,6 +24868,7 @@ func (client AppsClient) listSlotDifferencesFromProductionNextResults(ctx contex result, err = client.ListSlotDifferencesFromProductionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSlotDifferencesFromProductionNextResults", resp, "Failure responding to next results request") + return } return } @@ -24643,6 +24934,7 @@ func (client AppsClient) ListSlotDifferencesSlot(ctx context.Context, resourceGr result.sdc, err = client.ListSlotDifferencesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSlotDifferencesSlot", resp, "Failure responding to request") + return } if result.sdc.hasNextLink() && result.sdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -24710,6 +25002,7 @@ func (client AppsClient) listSlotDifferencesSlotNextResults(ctx context.Context, result, err = client.ListSlotDifferencesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSlotDifferencesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -24770,6 +25063,7 @@ func (client AppsClient) ListSlots(ctx context.Context, resourceGroupName string result.ac, err = client.ListSlotsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSlots", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -24834,6 +25128,7 @@ func (client AppsClient) listSlotsNextResults(ctx context.Context, lastResults A result, err = client.ListSlotsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSlotsNextResults", resp, "Failure responding to next results request") + return } return } @@ -24894,6 +25189,7 @@ func (client AppsClient) ListSnapshots(ctx context.Context, resourceGroupName st result.sc, err = client.ListSnapshotsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSnapshots", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -24958,6 +25254,7 @@ func (client AppsClient) listSnapshotsNextResults(ctx context.Context, lastResul result, err = client.ListSnapshotsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSnapshotsNextResults", resp, "Failure responding to next results request") + return } return } @@ -25018,6 +25315,7 @@ func (client AppsClient) ListSnapshotsFromDRSecondary(ctx context.Context, resou result.sc, err = client.ListSnapshotsFromDRSecondaryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSnapshotsFromDRSecondary", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -25082,6 +25380,7 @@ func (client AppsClient) listSnapshotsFromDRSecondaryNextResults(ctx context.Con result, err = client.ListSnapshotsFromDRSecondaryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSnapshotsFromDRSecondaryNextResults", resp, "Failure responding to next results request") + return } return } @@ -25143,6 +25442,7 @@ func (client AppsClient) ListSnapshotsFromDRSecondarySlot(ctx context.Context, r result.sc, err = client.ListSnapshotsFromDRSecondarySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSnapshotsFromDRSecondarySlot", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -25208,6 +25508,7 @@ func (client AppsClient) listSnapshotsFromDRSecondarySlotNextResults(ctx context result, err = client.ListSnapshotsFromDRSecondarySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSnapshotsFromDRSecondarySlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -25269,6 +25570,7 @@ func (client AppsClient) ListSnapshotsSlot(ctx context.Context, resourceGroupNam result.sc, err = client.ListSnapshotsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSnapshotsSlot", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -25334,6 +25636,7 @@ func (client AppsClient) listSnapshotsSlotNextResults(ctx context.Context, lastR result, err = client.ListSnapshotsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSnapshotsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -25393,6 +25696,7 @@ func (client AppsClient) ListSyncFunctionTriggers(ctx context.Context, resourceG result, err = client.ListSyncFunctionTriggersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSyncFunctionTriggers", resp, "Failure responding to request") + return } return @@ -25477,6 +25781,7 @@ func (client AppsClient) ListSyncFunctionTriggersSlot(ctx context.Context, resou result, err = client.ListSyncFunctionTriggersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSyncFunctionTriggersSlot", resp, "Failure responding to request") + return } return @@ -25561,6 +25866,7 @@ func (client AppsClient) ListSyncStatus(ctx context.Context, resourceGroupName s result, err = client.ListSyncStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSyncStatus", resp, "Failure responding to request") + return } return @@ -25644,6 +25950,7 @@ func (client AppsClient) ListSyncStatusSlot(ctx context.Context, resourceGroupNa result, err = client.ListSyncStatusSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSyncStatusSlot", resp, "Failure responding to request") + return } return @@ -25729,6 +26036,7 @@ func (client AppsClient) ListTriggeredWebJobHistory(ctx context.Context, resourc result.tjhc, err = client.ListTriggeredWebJobHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListTriggeredWebJobHistory", resp, "Failure responding to request") + return } if result.tjhc.hasNextLink() && result.tjhc.IsEmpty() { err = result.NextWithContext(ctx) @@ -25794,6 +26102,7 @@ func (client AppsClient) listTriggeredWebJobHistoryNextResults(ctx context.Conte result, err = client.ListTriggeredWebJobHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listTriggeredWebJobHistoryNextResults", resp, "Failure responding to next results request") + return } return } @@ -25857,6 +26166,7 @@ func (client AppsClient) ListTriggeredWebJobHistorySlot(ctx context.Context, res result.tjhc, err = client.ListTriggeredWebJobHistorySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListTriggeredWebJobHistorySlot", resp, "Failure responding to request") + return } if result.tjhc.hasNextLink() && result.tjhc.IsEmpty() { err = result.NextWithContext(ctx) @@ -25923,6 +26233,7 @@ func (client AppsClient) listTriggeredWebJobHistorySlotNextResults(ctx context.C result, err = client.ListTriggeredWebJobHistorySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listTriggeredWebJobHistorySlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -25983,6 +26294,7 @@ func (client AppsClient) ListTriggeredWebJobs(ctx context.Context, resourceGroup result.twjc, err = client.ListTriggeredWebJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListTriggeredWebJobs", resp, "Failure responding to request") + return } if result.twjc.hasNextLink() && result.twjc.IsEmpty() { err = result.NextWithContext(ctx) @@ -26047,6 +26359,7 @@ func (client AppsClient) listTriggeredWebJobsNextResults(ctx context.Context, la result, err = client.ListTriggeredWebJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listTriggeredWebJobsNextResults", resp, "Failure responding to next results request") + return } return } @@ -26109,6 +26422,7 @@ func (client AppsClient) ListTriggeredWebJobsSlot(ctx context.Context, resourceG result.twjc, err = client.ListTriggeredWebJobsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListTriggeredWebJobsSlot", resp, "Failure responding to request") + return } if result.twjc.hasNextLink() && result.twjc.IsEmpty() { err = result.NextWithContext(ctx) @@ -26174,6 +26488,7 @@ func (client AppsClient) listTriggeredWebJobsSlotNextResults(ctx context.Context result, err = client.ListTriggeredWebJobsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listTriggeredWebJobsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -26237,6 +26552,7 @@ func (client AppsClient) ListUsages(ctx context.Context, resourceGroupName strin result.cuqc, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListUsages", resp, "Failure responding to request") + return } if result.cuqc.hasNextLink() && result.cuqc.IsEmpty() { err = result.NextWithContext(ctx) @@ -26304,6 +26620,7 @@ func (client AppsClient) listUsagesNextResults(ctx context.Context, lastResults result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listUsagesNextResults", resp, "Failure responding to next results request") + return } return } @@ -26369,6 +26686,7 @@ func (client AppsClient) ListUsagesSlot(ctx context.Context, resourceGroupName s result.cuqc, err = client.ListUsagesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListUsagesSlot", resp, "Failure responding to request") + return } if result.cuqc.hasNextLink() && result.cuqc.IsEmpty() { err = result.NextWithContext(ctx) @@ -26437,6 +26755,7 @@ func (client AppsClient) listUsagesSlotNextResults(ctx context.Context, lastResu result, err = client.ListUsagesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listUsagesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -26496,6 +26815,7 @@ func (client AppsClient) ListVnetConnections(ctx context.Context, resourceGroupN result, err = client.ListVnetConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListVnetConnections", resp, "Failure responding to request") + return } return @@ -26581,6 +26901,7 @@ func (client AppsClient) ListVnetConnectionsSlot(ctx context.Context, resourceGr result, err = client.ListVnetConnectionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListVnetConnectionsSlot", resp, "Failure responding to request") + return } return @@ -26666,6 +26987,7 @@ func (client AppsClient) ListWebJobs(ctx context.Context, resourceGroupName stri result.jc, err = client.ListWebJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListWebJobs", resp, "Failure responding to request") + return } if result.jc.hasNextLink() && result.jc.IsEmpty() { err = result.NextWithContext(ctx) @@ -26730,6 +27052,7 @@ func (client AppsClient) listWebJobsNextResults(ctx context.Context, lastResults result, err = client.ListWebJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listWebJobsNextResults", resp, "Failure responding to next results request") + return } return } @@ -26792,6 +27115,7 @@ func (client AppsClient) ListWebJobsSlot(ctx context.Context, resourceGroupName result.jc, err = client.ListWebJobsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListWebJobsSlot", resp, "Failure responding to request") + return } if result.jc.hasNextLink() && result.jc.IsEmpty() { err = result.NextWithContext(ctx) @@ -26857,6 +27181,7 @@ func (client AppsClient) listWebJobsSlotNextResults(ctx context.Context, lastRes result, err = client.ListWebJobsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listWebJobsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -27100,6 +27425,7 @@ func (client AppsClient) PutPrivateAccessVnet(ctx context.Context, resourceGroup result, err = client.PutPrivateAccessVnetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "PutPrivateAccessVnet", resp, "Failure responding to request") + return } return @@ -27188,6 +27514,7 @@ func (client AppsClient) PutPrivateAccessVnetSlot(ctx context.Context, resourceG result, err = client.PutPrivateAccessVnetSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "PutPrivateAccessVnetSlot", resp, "Failure responding to request") + return } return @@ -27275,6 +27602,7 @@ func (client AppsClient) RecoverSiteConfigurationSnapshot(ctx context.Context, r result, err = client.RecoverSiteConfigurationSnapshotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "RecoverSiteConfigurationSnapshot", resp, "Failure responding to request") + return } return @@ -27361,6 +27689,7 @@ func (client AppsClient) RecoverSiteConfigurationSnapshotSlot(ctx context.Contex result, err = client.RecoverSiteConfigurationSnapshotSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "RecoverSiteConfigurationSnapshotSlot", resp, "Failure responding to request") + return } return @@ -27446,6 +27775,7 @@ func (client AppsClient) ResetProductionSlotConfig(ctx context.Context, resource result, err = client.ResetProductionSlotConfigResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ResetProductionSlotConfig", resp, "Failure responding to request") + return } return @@ -27531,6 +27861,7 @@ func (client AppsClient) ResetSlotConfigurationSlot(ctx context.Context, resourc result, err = client.ResetSlotConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ResetSlotConfigurationSlot", resp, "Failure responding to request") + return } return @@ -27618,6 +27949,7 @@ func (client AppsClient) Restart(ctx context.Context, resourceGroupName string, result, err = client.RestartResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Restart", resp, "Failure responding to request") + return } return @@ -27711,6 +28043,7 @@ func (client AppsClient) RestartSlot(ctx context.Context, resourceGroupName stri result, err = client.RestartSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "RestartSlot", resp, "Failure responding to request") + return } return @@ -28523,6 +28856,7 @@ func (client AppsClient) RunTriggeredWebJob(ctx context.Context, resourceGroupNa result, err = client.RunTriggeredWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "RunTriggeredWebJob", resp, "Failure responding to request") + return } return @@ -28609,6 +28943,7 @@ func (client AppsClient) RunTriggeredWebJobSlot(ctx context.Context, resourceGro result, err = client.RunTriggeredWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "RunTriggeredWebJobSlot", resp, "Failure responding to request") + return } return @@ -28693,6 +29028,7 @@ func (client AppsClient) Start(ctx context.Context, resourceGroupName string, na result, err = client.StartResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Start", resp, "Failure responding to request") + return } return @@ -28776,6 +29112,7 @@ func (client AppsClient) StartContinuousWebJob(ctx context.Context, resourceGrou result, err = client.StartContinuousWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StartContinuousWebJob", resp, "Failure responding to request") + return } return @@ -28862,6 +29199,7 @@ func (client AppsClient) StartContinuousWebJobSlot(ctx context.Context, resource result, err = client.StartContinuousWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StartContinuousWebJobSlot", resp, "Failure responding to request") + return } return @@ -29139,6 +29477,7 @@ func (client AppsClient) StartSlot(ctx context.Context, resourceGroupName string result, err = client.StartSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StartSlot", resp, "Failure responding to request") + return } return @@ -29225,6 +29564,7 @@ func (client AppsClient) StartWebSiteNetworkTrace(ctx context.Context, resourceG result, err = client.StartWebSiteNetworkTraceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StartWebSiteNetworkTrace", resp, "Failure responding to request") + return } return @@ -29513,6 +29853,7 @@ func (client AppsClient) StartWebSiteNetworkTraceSlot(ctx context.Context, resou result, err = client.StartWebSiteNetworkTraceSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StartWebSiteNetworkTraceSlot", resp, "Failure responding to request") + return } return @@ -29606,6 +29947,7 @@ func (client AppsClient) Stop(ctx context.Context, resourceGroupName string, nam result, err = client.StopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Stop", resp, "Failure responding to request") + return } return @@ -29689,6 +30031,7 @@ func (client AppsClient) StopContinuousWebJob(ctx context.Context, resourceGroup result, err = client.StopContinuousWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StopContinuousWebJob", resp, "Failure responding to request") + return } return @@ -29775,6 +30118,7 @@ func (client AppsClient) StopContinuousWebJobSlot(ctx context.Context, resourceG result, err = client.StopContinuousWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StopContinuousWebJobSlot", resp, "Failure responding to request") + return } return @@ -29859,6 +30203,7 @@ func (client AppsClient) StopNetworkTrace(ctx context.Context, resourceGroupName result, err = client.StopNetworkTraceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StopNetworkTrace", resp, "Failure responding to request") + return } return @@ -29942,6 +30287,7 @@ func (client AppsClient) StopNetworkTraceSlot(ctx context.Context, resourceGroup result, err = client.StopNetworkTraceSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StopNetworkTraceSlot", resp, "Failure responding to request") + return } return @@ -30026,6 +30372,7 @@ func (client AppsClient) StopSlot(ctx context.Context, resourceGroupName string, result, err = client.StopSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StopSlot", resp, "Failure responding to request") + return } return @@ -30109,6 +30456,7 @@ func (client AppsClient) StopWebSiteNetworkTrace(ctx context.Context, resourceGr result, err = client.StopWebSiteNetworkTraceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StopWebSiteNetworkTrace", resp, "Failure responding to request") + return } return @@ -30192,6 +30540,7 @@ func (client AppsClient) StopWebSiteNetworkTraceSlot(ctx context.Context, resour result, err = client.StopWebSiteNetworkTraceSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StopWebSiteNetworkTraceSlot", resp, "Failure responding to request") + return } return @@ -30453,6 +30802,7 @@ func (client AppsClient) SyncFunctions(ctx context.Context, resourceGroupName st result, err = client.SyncFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncFunctions", resp, "Failure responding to request") + return } return @@ -30536,6 +30886,7 @@ func (client AppsClient) SyncFunctionsSlot(ctx context.Context, resourceGroupNam result, err = client.SyncFunctionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncFunctionsSlot", resp, "Failure responding to request") + return } return @@ -30619,6 +30970,7 @@ func (client AppsClient) SyncFunctionTriggers(ctx context.Context, resourceGroup result, err = client.SyncFunctionTriggersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncFunctionTriggers", resp, "Failure responding to request") + return } return @@ -30702,6 +31054,7 @@ func (client AppsClient) SyncFunctionTriggersSlot(ctx context.Context, resourceG result, err = client.SyncFunctionTriggersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncFunctionTriggersSlot", resp, "Failure responding to request") + return } return @@ -30785,6 +31138,7 @@ func (client AppsClient) SyncRepository(ctx context.Context, resourceGroupName s result, err = client.SyncRepositoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncRepository", resp, "Failure responding to request") + return } return @@ -30868,6 +31222,7 @@ func (client AppsClient) SyncRepositorySlot(ctx context.Context, resourceGroupNa result, err = client.SyncRepositorySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncRepositorySlot", resp, "Failure responding to request") + return } return @@ -30953,6 +31308,7 @@ func (client AppsClient) Update(ctx context.Context, resourceGroupName string, n result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Update", resp, "Failure responding to request") + return } return @@ -31039,6 +31395,7 @@ func (client AppsClient) UpdateApplicationSettings(ctx context.Context, resource result, err = client.UpdateApplicationSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateApplicationSettings", resp, "Failure responding to request") + return } return @@ -31127,6 +31484,7 @@ func (client AppsClient) UpdateApplicationSettingsSlot(ctx context.Context, reso result, err = client.UpdateApplicationSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateApplicationSettingsSlot", resp, "Failure responding to request") + return } return @@ -31214,6 +31572,7 @@ func (client AppsClient) UpdateAuthSettings(ctx context.Context, resourceGroupNa result, err = client.UpdateAuthSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateAuthSettings", resp, "Failure responding to request") + return } return @@ -31301,6 +31660,7 @@ func (client AppsClient) UpdateAuthSettingsSlot(ctx context.Context, resourceGro result, err = client.UpdateAuthSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateAuthSettingsSlot", resp, "Failure responding to request") + return } return @@ -31388,6 +31748,7 @@ func (client AppsClient) UpdateAzureStorageAccounts(ctx context.Context, resourc result, err = client.UpdateAzureStorageAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateAzureStorageAccounts", resp, "Failure responding to request") + return } return @@ -31476,6 +31837,7 @@ func (client AppsClient) UpdateAzureStorageAccountsSlot(ctx context.Context, res result, err = client.UpdateAzureStorageAccountsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateAzureStorageAccountsSlot", resp, "Failure responding to request") + return } return @@ -31572,6 +31934,7 @@ func (client AppsClient) UpdateBackupConfiguration(ctx context.Context, resource result, err = client.UpdateBackupConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateBackupConfiguration", resp, "Failure responding to request") + return } return @@ -31669,6 +32032,7 @@ func (client AppsClient) UpdateBackupConfigurationSlot(ctx context.Context, reso result, err = client.UpdateBackupConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateBackupConfigurationSlot", resp, "Failure responding to request") + return } return @@ -31756,6 +32120,7 @@ func (client AppsClient) UpdateConfiguration(ctx context.Context, resourceGroupN result, err = client.UpdateConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateConfiguration", resp, "Failure responding to request") + return } return @@ -31844,6 +32209,7 @@ func (client AppsClient) UpdateConfigurationSlot(ctx context.Context, resourceGr result, err = client.UpdateConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateConfigurationSlot", resp, "Failure responding to request") + return } return @@ -31931,6 +32297,7 @@ func (client AppsClient) UpdateConnectionStrings(ctx context.Context, resourceGr result, err = client.UpdateConnectionStringsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateConnectionStrings", resp, "Failure responding to request") + return } return @@ -32019,6 +32386,7 @@ func (client AppsClient) UpdateConnectionStringsSlot(ctx context.Context, resour result, err = client.UpdateConnectionStringsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateConnectionStringsSlot", resp, "Failure responding to request") + return } return @@ -32122,6 +32490,7 @@ func (client AppsClient) UpdateDiagnosticLogsConfig(ctx context.Context, resourc result, err = client.UpdateDiagnosticLogsConfigResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateDiagnosticLogsConfig", resp, "Failure responding to request") + return } return @@ -32226,6 +32595,7 @@ func (client AppsClient) UpdateDiagnosticLogsConfigSlot(ctx context.Context, res result, err = client.UpdateDiagnosticLogsConfigSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateDiagnosticLogsConfigSlot", resp, "Failure responding to request") + return } return @@ -32315,6 +32685,7 @@ func (client AppsClient) UpdateDomainOwnershipIdentifier(ctx context.Context, re result, err = client.UpdateDomainOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateDomainOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -32406,6 +32777,7 @@ func (client AppsClient) UpdateDomainOwnershipIdentifierSlot(ctx context.Context result, err = client.UpdateDomainOwnershipIdentifierSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateDomainOwnershipIdentifierSlot", resp, "Failure responding to request") + return } return @@ -32496,6 +32868,7 @@ func (client AppsClient) UpdateHybridConnection(ctx context.Context, resourceGro result, err = client.UpdateHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateHybridConnection", resp, "Failure responding to request") + return } return @@ -32587,6 +32960,7 @@ func (client AppsClient) UpdateHybridConnectionSlot(ctx context.Context, resourc result, err = client.UpdateHybridConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateHybridConnectionSlot", resp, "Failure responding to request") + return } return @@ -32676,6 +33050,7 @@ func (client AppsClient) UpdateMetadata(ctx context.Context, resourceGroupName s result, err = client.UpdateMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateMetadata", resp, "Failure responding to request") + return } return @@ -32764,6 +33139,7 @@ func (client AppsClient) UpdateMetadataSlot(ctx context.Context, resourceGroupNa result, err = client.UpdateMetadataSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateMetadataSlot", resp, "Failure responding to request") + return } return @@ -32852,6 +33228,7 @@ func (client AppsClient) UpdatePremierAddOn(ctx context.Context, resourceGroupNa result, err = client.UpdatePremierAddOnResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdatePremierAddOn", resp, "Failure responding to request") + return } return @@ -32942,6 +33319,7 @@ func (client AppsClient) UpdatePremierAddOnSlot(ctx context.Context, resourceGro result, err = client.UpdatePremierAddOnSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdatePremierAddOnSlot", resp, "Failure responding to request") + return } return @@ -33032,6 +33410,7 @@ func (client AppsClient) UpdateRelayServiceConnection(ctx context.Context, resou result, err = client.UpdateRelayServiceConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateRelayServiceConnection", resp, "Failure responding to request") + return } return @@ -33123,6 +33502,7 @@ func (client AppsClient) UpdateRelayServiceConnectionSlot(ctx context.Context, r result, err = client.UpdateRelayServiceConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateRelayServiceConnectionSlot", resp, "Failure responding to request") + return } return @@ -33214,6 +33594,7 @@ func (client AppsClient) UpdateSitePushSettings(ctx context.Context, resourceGro result, err = client.UpdateSitePushSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSitePushSettings", resp, "Failure responding to request") + return } return @@ -33304,6 +33685,7 @@ func (client AppsClient) UpdateSitePushSettingsSlot(ctx context.Context, resourc result, err = client.UpdateSitePushSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSitePushSettingsSlot", resp, "Failure responding to request") + return } return @@ -33394,6 +33776,7 @@ func (client AppsClient) UpdateSlot(ctx context.Context, resourceGroupName strin result, err = client.UpdateSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSlot", resp, "Failure responding to request") + return } return @@ -33482,6 +33865,7 @@ func (client AppsClient) UpdateSlotConfigurationNames(ctx context.Context, resou result, err = client.UpdateSlotConfigurationNamesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSlotConfigurationNames", resp, "Failure responding to request") + return } return @@ -33568,6 +33952,7 @@ func (client AppsClient) UpdateSourceControl(ctx context.Context, resourceGroupN result, err = client.UpdateSourceControlResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSourceControl", resp, "Failure responding to request") + return } return @@ -33656,6 +34041,7 @@ func (client AppsClient) UpdateSourceControlSlot(ctx context.Context, resourceGr result, err = client.UpdateSourceControlSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSourceControlSlot", resp, "Failure responding to request") + return } return @@ -33746,6 +34132,7 @@ func (client AppsClient) UpdateSwiftVirtualNetworkConnection(ctx context.Context result, err = client.UpdateSwiftVirtualNetworkConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSwiftVirtualNetworkConnection", resp, "Failure responding to request") + return } return @@ -33837,6 +34224,7 @@ func (client AppsClient) UpdateSwiftVirtualNetworkConnectionSlot(ctx context.Con result, err = client.UpdateSwiftVirtualNetworkConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSwiftVirtualNetworkConnectionSlot", resp, "Failure responding to request") + return } return @@ -33926,6 +34314,7 @@ func (client AppsClient) UpdateVnetConnection(ctx context.Context, resourceGroup result, err = client.UpdateVnetConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateVnetConnection", resp, "Failure responding to request") + return } return @@ -34015,6 +34404,7 @@ func (client AppsClient) UpdateVnetConnectionGateway(ctx context.Context, resour result, err = client.UpdateVnetConnectionGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateVnetConnectionGateway", resp, "Failure responding to request") + return } return @@ -34107,6 +34497,7 @@ func (client AppsClient) UpdateVnetConnectionGatewaySlot(ctx context.Context, re result, err = client.UpdateVnetConnectionGatewaySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateVnetConnectionGatewaySlot", resp, "Failure responding to request") + return } return @@ -34200,6 +34591,7 @@ func (client AppsClient) UpdateVnetConnectionSlot(ctx context.Context, resourceG result, err = client.UpdateVnetConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateVnetConnectionSlot", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2018-02-01/web/appservicecertificateorders.go b/services/web/mgmt/2018-02-01/web/appservicecertificateorders.go index 6ee08fcf9fdf..d9dad239cf86 100644 --- a/services/web/mgmt/2018-02-01/web/appservicecertificateorders.go +++ b/services/web/mgmt/2018-02-01/web/appservicecertificateorders.go @@ -263,6 +263,7 @@ func (client AppServiceCertificateOrdersClient) Delete(ctx context.Context, reso result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "Delete", resp, "Failure responding to request") + return } return @@ -346,6 +347,7 @@ func (client AppServiceCertificateOrdersClient) DeleteCertificate(ctx context.Co result, err = client.DeleteCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "DeleteCertificate", resp, "Failure responding to request") + return } return @@ -429,6 +431,7 @@ func (client AppServiceCertificateOrdersClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "Get", resp, "Failure responding to request") + return } return @@ -513,6 +516,7 @@ func (client AppServiceCertificateOrdersClient) GetCertificate(ctx context.Conte result, err = client.GetCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "GetCertificate", resp, "Failure responding to request") + return } return @@ -587,6 +591,7 @@ func (client AppServiceCertificateOrdersClient) List(ctx context.Context) (resul result.ascoc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "List", resp, "Failure responding to request") + return } if result.ascoc.hasNextLink() && result.ascoc.IsEmpty() { err = result.NextWithContext(ctx) @@ -649,6 +654,7 @@ func (client AppServiceCertificateOrdersClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -708,6 +714,7 @@ func (client AppServiceCertificateOrdersClient) ListByResourceGroup(ctx context. result.ascoc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ascoc.hasNextLink() && result.ascoc.IsEmpty() { err = result.NextWithContext(ctx) @@ -771,6 +778,7 @@ func (client AppServiceCertificateOrdersClient) listByResourceGroupNextResults(c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -831,6 +839,7 @@ func (client AppServiceCertificateOrdersClient) ListCertificates(ctx context.Con result.ascc, err = client.ListCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "ListCertificates", resp, "Failure responding to request") + return } if result.ascc.hasNextLink() && result.ascc.IsEmpty() { err = result.NextWithContext(ctx) @@ -895,6 +904,7 @@ func (client AppServiceCertificateOrdersClient) listCertificatesNextResults(ctx result, err = client.ListCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "listCertificatesNextResults", resp, "Failure responding to next results request") + return } return } @@ -955,6 +965,7 @@ func (client AppServiceCertificateOrdersClient) Reissue(ctx context.Context, res result, err = client.ReissueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "Reissue", resp, "Failure responding to request") + return } return @@ -1040,6 +1051,7 @@ func (client AppServiceCertificateOrdersClient) Renew(ctx context.Context, resou result, err = client.RenewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "Renew", resp, "Failure responding to request") + return } return @@ -1124,6 +1136,7 @@ func (client AppServiceCertificateOrdersClient) ResendEmail(ctx context.Context, result, err = client.ResendEmailResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "ResendEmail", resp, "Failure responding to request") + return } return @@ -1207,6 +1220,7 @@ func (client AppServiceCertificateOrdersClient) ResendRequestEmails(ctx context. result, err = client.ResendRequestEmailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "ResendRequestEmails", resp, "Failure responding to request") + return } return @@ -1291,6 +1305,7 @@ func (client AppServiceCertificateOrdersClient) RetrieveCertificateActions(ctx c result, err = client.RetrieveCertificateActionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "RetrieveCertificateActions", resp, "Failure responding to request") + return } return @@ -1374,6 +1389,7 @@ func (client AppServiceCertificateOrdersClient) RetrieveCertificateEmailHistory( result, err = client.RetrieveCertificateEmailHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "RetrieveCertificateEmailHistory", resp, "Failure responding to request") + return } return @@ -1458,6 +1474,7 @@ func (client AppServiceCertificateOrdersClient) RetrieveSiteSeal(ctx context.Con result, err = client.RetrieveSiteSealResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "RetrieveSiteSeal", resp, "Failure responding to request") + return } return @@ -1544,6 +1561,7 @@ func (client AppServiceCertificateOrdersClient) Update(ctx context.Context, reso result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "Update", resp, "Failure responding to request") + return } return @@ -1631,6 +1649,7 @@ func (client AppServiceCertificateOrdersClient) UpdateCertificate(ctx context.Co result, err = client.UpdateCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "UpdateCertificate", resp, "Failure responding to request") + return } return @@ -1719,6 +1738,7 @@ func (client AppServiceCertificateOrdersClient) ValidatePurchaseInformation(ctx result, err = client.ValidatePurchaseInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "ValidatePurchaseInformation", resp, "Failure responding to request") + return } return @@ -1801,6 +1821,7 @@ func (client AppServiceCertificateOrdersClient) VerifyDomainOwnership(ctx contex result, err = client.VerifyDomainOwnershipResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "VerifyDomainOwnership", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2018-02-01/web/appserviceenvironments.go b/services/web/mgmt/2018-02-01/web/appserviceenvironments.go index 88e22c2331a7..c5d4f220bea8 100644 --- a/services/web/mgmt/2018-02-01/web/appserviceenvironments.go +++ b/services/web/mgmt/2018-02-01/web/appserviceenvironments.go @@ -565,6 +565,7 @@ func (client AppServiceEnvironmentsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -649,6 +650,7 @@ func (client AppServiceEnvironmentsClient) GetDiagnosticsItem(ctx context.Contex result, err = client.GetDiagnosticsItemResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetDiagnosticsItem", resp, "Failure responding to request") + return } return @@ -735,6 +737,7 @@ func (client AppServiceEnvironmentsClient) GetInboundNetworkDependenciesEndpoint result.ieec, err = client.GetInboundNetworkDependenciesEndpointsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetInboundNetworkDependenciesEndpoints", resp, "Failure responding to request") + return } if result.ieec.hasNextLink() && result.ieec.IsEmpty() { err = result.NextWithContext(ctx) @@ -799,6 +802,7 @@ func (client AppServiceEnvironmentsClient) getInboundNetworkDependenciesEndpoint result, err = client.GetInboundNetworkDependenciesEndpointsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "getInboundNetworkDependenciesEndpointsNextResults", resp, "Failure responding to next results request") + return } return } @@ -858,6 +862,7 @@ func (client AppServiceEnvironmentsClient) GetMultiRolePool(ctx context.Context, result, err = client.GetMultiRolePoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetMultiRolePool", resp, "Failure responding to request") + return } return @@ -943,6 +948,7 @@ func (client AppServiceEnvironmentsClient) GetOutboundNetworkDependenciesEndpoin result.oeec, err = client.GetOutboundNetworkDependenciesEndpointsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetOutboundNetworkDependenciesEndpoints", resp, "Failure responding to request") + return } if result.oeec.hasNextLink() && result.oeec.IsEmpty() { err = result.NextWithContext(ctx) @@ -1007,6 +1013,7 @@ func (client AppServiceEnvironmentsClient) getOutboundNetworkDependenciesEndpoin result, err = client.GetOutboundNetworkDependenciesEndpointsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "getOutboundNetworkDependenciesEndpointsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1067,6 +1074,7 @@ func (client AppServiceEnvironmentsClient) GetWorkerPool(ctx context.Context, re result, err = client.GetWorkerPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetWorkerPool", resp, "Failure responding to request") + return } return @@ -1141,6 +1149,7 @@ func (client AppServiceEnvironmentsClient) List(ctx context.Context) (result App result.asec, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "List", resp, "Failure responding to request") + return } if result.asec.hasNextLink() && result.asec.IsEmpty() { err = result.NextWithContext(ctx) @@ -1203,6 +1212,7 @@ func (client AppServiceEnvironmentsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1263,6 +1273,7 @@ func (client AppServiceEnvironmentsClient) ListAppServicePlans(ctx context.Conte result.aspc, err = client.ListAppServicePlansResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListAppServicePlans", resp, "Failure responding to request") + return } if result.aspc.hasNextLink() && result.aspc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1327,6 +1338,7 @@ func (client AppServiceEnvironmentsClient) listAppServicePlansNextResults(ctx co result, err = client.ListAppServicePlansResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listAppServicePlansNextResults", resp, "Failure responding to next results request") + return } return } @@ -1386,6 +1398,7 @@ func (client AppServiceEnvironmentsClient) ListByResourceGroup(ctx context.Conte result.asec, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.asec.hasNextLink() && result.asec.IsEmpty() { err = result.NextWithContext(ctx) @@ -1449,6 +1462,7 @@ func (client AppServiceEnvironmentsClient) listByResourceGroupNextResults(ctx co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1509,6 +1523,7 @@ func (client AppServiceEnvironmentsClient) ListCapacities(ctx context.Context, r result.scc, err = client.ListCapacitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListCapacities", resp, "Failure responding to request") + return } if result.scc.hasNextLink() && result.scc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1573,6 +1588,7 @@ func (client AppServiceEnvironmentsClient) listCapacitiesNextResults(ctx context result, err = client.ListCapacitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listCapacitiesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1632,6 +1648,7 @@ func (client AppServiceEnvironmentsClient) ListDiagnostics(ctx context.Context, result, err = client.ListDiagnosticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListDiagnostics", resp, "Failure responding to request") + return } return @@ -1715,6 +1732,7 @@ func (client AppServiceEnvironmentsClient) ListMetricDefinitions(ctx context.Con result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMetricDefinitions", resp, "Failure responding to request") + return } return @@ -1803,6 +1821,7 @@ func (client AppServiceEnvironmentsClient) ListMetrics(ctx context.Context, reso result.rmc, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMetrics", resp, "Failure responding to request") + return } if result.rmc.hasNextLink() && result.rmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1873,6 +1892,7 @@ func (client AppServiceEnvironmentsClient) listMetricsNextResults(ctx context.Co result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1933,6 +1953,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitions(ctx co result.rmdc, err = client.ListMultiRoleMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRoleMetricDefinitions", resp, "Failure responding to request") + return } if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1997,6 +2018,7 @@ func (client AppServiceEnvironmentsClient) listMultiRoleMetricDefinitionsNextRes result, err = client.ListMultiRoleMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRoleMetricDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2064,6 +2086,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRoleMetrics(ctx context.Cont result.rmc, err = client.ListMultiRoleMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRoleMetrics", resp, "Failure responding to request") + return } if result.rmc.hasNextLink() && result.rmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2143,6 +2166,7 @@ func (client AppServiceEnvironmentsClient) listMultiRoleMetricsNextResults(ctx c result, err = client.ListMultiRoleMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRoleMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2205,6 +2229,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefini result.rmdc, err = client.ListMultiRolePoolInstanceMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolInstanceMetricDefinitions", resp, "Failure responding to request") + return } if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2270,6 +2295,7 @@ func (client AppServiceEnvironmentsClient) listMultiRolePoolInstanceMetricDefini result, err = client.ListMultiRolePoolInstanceMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolInstanceMetricDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2333,6 +2359,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetrics(ctx result.rmc, err = client.ListMultiRolePoolInstanceMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolInstanceMetrics", resp, "Failure responding to request") + return } if result.rmc.hasNextLink() && result.rmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2401,6 +2428,7 @@ func (client AppServiceEnvironmentsClient) listMultiRolePoolInstanceMetricsNextR result, err = client.ListMultiRolePoolInstanceMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolInstanceMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2461,6 +2489,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRolePools(ctx context.Contex result.wpc, err = client.ListMultiRolePoolsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePools", resp, "Failure responding to request") + return } if result.wpc.hasNextLink() && result.wpc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2525,6 +2554,7 @@ func (client AppServiceEnvironmentsClient) listMultiRolePoolsNextResults(ctx con result, err = client.ListMultiRolePoolsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2585,6 +2615,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRolePoolSkus(ctx context.Con result.sic, err = client.ListMultiRolePoolSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolSkus", resp, "Failure responding to request") + return } if result.sic.hasNextLink() && result.sic.IsEmpty() { err = result.NextWithContext(ctx) @@ -2649,6 +2680,7 @@ func (client AppServiceEnvironmentsClient) listMultiRolePoolSkusNextResults(ctx result, err = client.ListMultiRolePoolSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolSkusNextResults", resp, "Failure responding to next results request") + return } return } @@ -2709,6 +2741,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRoleUsages(ctx context.Conte result.uc, err = client.ListMultiRoleUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRoleUsages", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2773,6 +2806,7 @@ func (client AppServiceEnvironmentsClient) listMultiRoleUsagesNextResults(ctx co result, err = client.ListMultiRoleUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRoleUsagesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2832,6 +2866,7 @@ func (client AppServiceEnvironmentsClient) ListOperations(ctx context.Context, r result, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListOperations", resp, "Failure responding to request") + return } return @@ -2919,6 +2954,7 @@ func (client AppServiceEnvironmentsClient) ListUsages(ctx context.Context, resou result.cuqc, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListUsages", resp, "Failure responding to request") + return } if result.cuqc.hasNextLink() && result.cuqc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2986,6 +3022,7 @@ func (client AppServiceEnvironmentsClient) listUsagesNextResults(ctx context.Con result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listUsagesNextResults", resp, "Failure responding to next results request") + return } return } @@ -3045,6 +3082,7 @@ func (client AppServiceEnvironmentsClient) ListVips(ctx context.Context, resourc result, err = client.ListVipsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListVips", resp, "Failure responding to request") + return } return @@ -3130,6 +3168,7 @@ func (client AppServiceEnvironmentsClient) ListWebApps(ctx context.Context, reso result.ac, err = client.ListWebAppsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWebApps", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -3197,6 +3236,7 @@ func (client AppServiceEnvironmentsClient) listWebAppsNextResults(ctx context.Co result, err = client.ListWebAppsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWebAppsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3258,6 +3298,7 @@ func (client AppServiceEnvironmentsClient) ListWebWorkerMetricDefinitions(ctx co result.rmdc, err = client.ListWebWorkerMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWebWorkerMetricDefinitions", resp, "Failure responding to request") + return } if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -3323,6 +3364,7 @@ func (client AppServiceEnvironmentsClient) listWebWorkerMetricDefinitionsNextRes result, err = client.ListWebWorkerMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWebWorkerMetricDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3388,6 +3430,7 @@ func (client AppServiceEnvironmentsClient) ListWebWorkerMetrics(ctx context.Cont result.rmc, err = client.ListWebWorkerMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWebWorkerMetrics", resp, "Failure responding to request") + return } if result.rmc.hasNextLink() && result.rmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -3459,6 +3502,7 @@ func (client AppServiceEnvironmentsClient) listWebWorkerMetricsNextResults(ctx c result, err = client.ListWebWorkerMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWebWorkerMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3520,6 +3564,7 @@ func (client AppServiceEnvironmentsClient) ListWebWorkerUsages(ctx context.Conte result.uc, err = client.ListWebWorkerUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWebWorkerUsages", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -3585,6 +3630,7 @@ func (client AppServiceEnvironmentsClient) listWebWorkerUsagesNextResults(ctx co result, err = client.ListWebWorkerUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWebWorkerUsagesNextResults", resp, "Failure responding to next results request") + return } return } @@ -3648,6 +3694,7 @@ func (client AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricDefinitio result.rmdc, err = client.ListWorkerPoolInstanceMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWorkerPoolInstanceMetricDefinitions", resp, "Failure responding to request") + return } if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -3714,6 +3761,7 @@ func (client AppServiceEnvironmentsClient) listWorkerPoolInstanceMetricDefinitio result, err = client.ListWorkerPoolInstanceMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWorkerPoolInstanceMetricDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3780,6 +3828,7 @@ func (client AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetrics(ctx con result.rmc, err = client.ListWorkerPoolInstanceMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWorkerPoolInstanceMetrics", resp, "Failure responding to request") + return } if result.rmc.hasNextLink() && result.rmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -3852,6 +3901,7 @@ func (client AppServiceEnvironmentsClient) listWorkerPoolInstanceMetricsNextResu result, err = client.ListWorkerPoolInstanceMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWorkerPoolInstanceMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3912,6 +3962,7 @@ func (client AppServiceEnvironmentsClient) ListWorkerPools(ctx context.Context, result.wpc, err = client.ListWorkerPoolsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWorkerPools", resp, "Failure responding to request") + return } if result.wpc.hasNextLink() && result.wpc.IsEmpty() { err = result.NextWithContext(ctx) @@ -3976,6 +4027,7 @@ func (client AppServiceEnvironmentsClient) listWorkerPoolsNextResults(ctx contex result, err = client.ListWorkerPoolsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWorkerPoolsNextResults", resp, "Failure responding to next results request") + return } return } @@ -4037,6 +4089,7 @@ func (client AppServiceEnvironmentsClient) ListWorkerPoolSkus(ctx context.Contex result.sic, err = client.ListWorkerPoolSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWorkerPoolSkus", resp, "Failure responding to request") + return } if result.sic.hasNextLink() && result.sic.IsEmpty() { err = result.NextWithContext(ctx) @@ -4102,6 +4155,7 @@ func (client AppServiceEnvironmentsClient) listWorkerPoolSkusNextResults(ctx con result, err = client.ListWorkerPoolSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWorkerPoolSkusNextResults", resp, "Failure responding to next results request") + return } return } @@ -4161,6 +4215,7 @@ func (client AppServiceEnvironmentsClient) Reboot(ctx context.Context, resourceG result, err = client.RebootResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "Reboot", resp, "Failure responding to request") + return } return @@ -4492,6 +4547,7 @@ func (client AppServiceEnvironmentsClient) Update(ctx context.Context, resourceG result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "Update", resp, "Failure responding to request") + return } return @@ -4578,6 +4634,7 @@ func (client AppServiceEnvironmentsClient) UpdateMultiRolePool(ctx context.Conte result, err = client.UpdateMultiRolePoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "UpdateMultiRolePool", resp, "Failure responding to request") + return } return @@ -4665,6 +4722,7 @@ func (client AppServiceEnvironmentsClient) UpdateWorkerPool(ctx context.Context, result, err = client.UpdateWorkerPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "UpdateWorkerPool", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2018-02-01/web/appserviceplans.go b/services/web/mgmt/2018-02-01/web/appserviceplans.go index c017fb5b9035..6bce7f4a98e0 100644 --- a/services/web/mgmt/2018-02-01/web/appserviceplans.go +++ b/services/web/mgmt/2018-02-01/web/appserviceplans.go @@ -170,6 +170,7 @@ func (client AppServicePlansClient) CreateOrUpdateVnetRoute(ctx context.Context, result, err = client.CreateOrUpdateVnetRouteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "CreateOrUpdateVnetRoute", resp, "Failure responding to request") + return } return @@ -257,6 +258,7 @@ func (client AppServicePlansClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "Delete", resp, "Failure responding to request") + return } return @@ -341,6 +343,7 @@ func (client AppServicePlansClient) DeleteHybridConnection(ctx context.Context, result, err = client.DeleteHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "DeleteHybridConnection", resp, "Failure responding to request") + return } return @@ -427,6 +430,7 @@ func (client AppServicePlansClient) DeleteVnetRoute(ctx context.Context, resourc result, err = client.DeleteVnetRouteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "DeleteVnetRoute", resp, "Failure responding to request") + return } return @@ -511,6 +515,7 @@ func (client AppServicePlansClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "Get", resp, "Failure responding to request") + return } return @@ -596,6 +601,7 @@ func (client AppServicePlansClient) GetHybridConnection(ctx context.Context, res result, err = client.GetHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "GetHybridConnection", resp, "Failure responding to request") + return } return @@ -681,6 +687,7 @@ func (client AppServicePlansClient) GetHybridConnectionPlanLimit(ctx context.Con result, err = client.GetHybridConnectionPlanLimitResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "GetHybridConnectionPlanLimit", resp, "Failure responding to request") + return } return @@ -766,6 +773,7 @@ func (client AppServicePlansClient) GetRouteForVnet(ctx context.Context, resourc result, err = client.GetRouteForVnetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "GetRouteForVnet", resp, "Failure responding to request") + return } return @@ -851,6 +859,7 @@ func (client AppServicePlansClient) GetServerFarmSkus(ctx context.Context, resou result, err = client.GetServerFarmSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "GetServerFarmSkus", resp, "Failure responding to request") + return } return @@ -935,6 +944,7 @@ func (client AppServicePlansClient) GetVnetFromServerFarm(ctx context.Context, r result, err = client.GetVnetFromServerFarmResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "GetVnetFromServerFarm", resp, "Failure responding to request") + return } return @@ -1021,6 +1031,7 @@ func (client AppServicePlansClient) GetVnetGateway(ctx context.Context, resource result, err = client.GetVnetGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "GetVnetGateway", resp, "Failure responding to request") + return } return @@ -1100,6 +1111,7 @@ func (client AppServicePlansClient) List(ctx context.Context, detailed *bool) (r result.aspc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "List", resp, "Failure responding to request") + return } if result.aspc.hasNextLink() && result.aspc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1165,6 +1177,7 @@ func (client AppServicePlansClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1224,6 +1237,7 @@ func (client AppServicePlansClient) ListByResourceGroup(ctx context.Context, res result.aspc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.aspc.hasNextLink() && result.aspc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1287,6 +1301,7 @@ func (client AppServicePlansClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1346,6 +1361,7 @@ func (client AppServicePlansClient) ListCapabilities(ctx context.Context, resour result, err = client.ListCapabilitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListCapabilities", resp, "Failure responding to request") + return } return @@ -1431,6 +1447,7 @@ func (client AppServicePlansClient) ListHybridConnectionKeys(ctx context.Context result, err = client.ListHybridConnectionKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListHybridConnectionKeys", resp, "Failure responding to request") + return } return @@ -1517,6 +1534,7 @@ func (client AppServicePlansClient) ListHybridConnections(ctx context.Context, r result.hcc, err = client.ListHybridConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListHybridConnections", resp, "Failure responding to request") + return } if result.hcc.hasNextLink() && result.hcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1581,6 +1599,7 @@ func (client AppServicePlansClient) listHybridConnectionsNextResults(ctx context result, err = client.ListHybridConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listHybridConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1641,6 +1660,7 @@ func (client AppServicePlansClient) ListMetricDefintions(ctx context.Context, re result.rmdc, err = client.ListMetricDefintionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListMetricDefintions", resp, "Failure responding to request") + return } if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1705,6 +1725,7 @@ func (client AppServicePlansClient) listMetricDefintionsNextResults(ctx context. result, err = client.ListMetricDefintionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listMetricDefintionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1769,6 +1790,7 @@ func (client AppServicePlansClient) ListMetrics(ctx context.Context, resourceGro result.rmc, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListMetrics", resp, "Failure responding to request") + return } if result.rmc.hasNextLink() && result.rmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1839,6 +1861,7 @@ func (client AppServicePlansClient) listMetricsNextResults(ctx context.Context, result, err = client.ListMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listMetricsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1899,6 +1922,7 @@ func (client AppServicePlansClient) ListRoutesForVnet(ctx context.Context, resou result, err = client.ListRoutesForVnetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListRoutesForVnet", resp, "Failure responding to request") + return } return @@ -1986,6 +2010,7 @@ func (client AppServicePlansClient) ListUsages(ctx context.Context, resourceGrou result.cuqc, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListUsages", resp, "Failure responding to request") + return } if result.cuqc.hasNextLink() && result.cuqc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2053,6 +2078,7 @@ func (client AppServicePlansClient) listUsagesNextResults(ctx context.Context, l result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listUsagesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2112,6 +2138,7 @@ func (client AppServicePlansClient) ListVnets(ctx context.Context, resourceGroup result, err = client.ListVnetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListVnets", resp, "Failure responding to request") + return } return @@ -2201,6 +2228,7 @@ func (client AppServicePlansClient) ListWebApps(ctx context.Context, resourceGro result.ac, err = client.ListWebAppsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListWebApps", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -2274,6 +2302,7 @@ func (client AppServicePlansClient) listWebAppsNextResults(ctx context.Context, result, err = client.ListWebAppsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listWebAppsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2336,6 +2365,7 @@ func (client AppServicePlansClient) ListWebAppsByHybridConnection(ctx context.Co result.rc, err = client.ListWebAppsByHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListWebAppsByHybridConnection", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2402,6 +2432,7 @@ func (client AppServicePlansClient) listWebAppsByHybridConnectionNextResults(ctx result, err = client.ListWebAppsByHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listWebAppsByHybridConnectionNextResults", resp, "Failure responding to next results request") + return } return } @@ -2462,6 +2493,7 @@ func (client AppServicePlansClient) RebootWorker(ctx context.Context, resourceGr result, err = client.RebootWorkerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "RebootWorker", resp, "Failure responding to request") + return } return @@ -2548,6 +2580,7 @@ func (client AppServicePlansClient) RestartWebApps(ctx context.Context, resource result, err = client.RestartWebAppsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "RestartWebApps", resp, "Failure responding to request") + return } return @@ -2634,6 +2667,7 @@ func (client AppServicePlansClient) Update(ctx context.Context, resourceGroupNam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "Update", resp, "Failure responding to request") + return } return @@ -2725,6 +2759,7 @@ func (client AppServicePlansClient) UpdateVnetGateway(ctx context.Context, resou result, err = client.UpdateVnetGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "UpdateVnetGateway", resp, "Failure responding to request") + return } return @@ -2815,6 +2850,7 @@ func (client AppServicePlansClient) UpdateVnetRoute(ctx context.Context, resourc result, err = client.UpdateVnetRouteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "UpdateVnetRoute", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2018-02-01/web/certificateregistrationprovider.go b/services/web/mgmt/2018-02-01/web/certificateregistrationprovider.go index e83adcc64039..99dfc7232c07 100644 --- a/services/web/mgmt/2018-02-01/web/certificateregistrationprovider.go +++ b/services/web/mgmt/2018-02-01/web/certificateregistrationprovider.go @@ -71,6 +71,7 @@ func (client CertificateRegistrationProviderClient) ListOperations(ctx context.C result.coc, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateRegistrationProviderClient", "ListOperations", resp, "Failure responding to request") + return } if result.coc.hasNextLink() && result.coc.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client CertificateRegistrationProviderClient) listOperationsNextResults(ct result, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateRegistrationProviderClient", "listOperationsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2018-02-01/web/certificates.go b/services/web/mgmt/2018-02-01/web/certificates.go index 0bdbd73a49ff..af2aa6052ab5 100644 --- a/services/web/mgmt/2018-02-01/web/certificates.go +++ b/services/web/mgmt/2018-02-01/web/certificates.go @@ -85,6 +85,7 @@ func (client CertificatesClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client CertificatesClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "Delete", resp, "Failure responding to request") + return } return @@ -252,6 +254,7 @@ func (client CertificatesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +328,7 @@ func (client CertificatesClient) List(ctx context.Context) (result CertificateCo result.cc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "List", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +391,7 @@ func (client CertificatesClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -446,6 +451,7 @@ func (client CertificatesClient) ListByResourceGroup(ctx context.Context, resour result.cc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -509,6 +515,7 @@ func (client CertificatesClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -569,6 +576,7 @@ func (client CertificatesClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2018-02-01/web/client.go b/services/web/mgmt/2018-02-01/web/client.go index 5cfbd45f82c6..28e0da9e1fc5 100644 --- a/services/web/mgmt/2018-02-01/web/client.go +++ b/services/web/mgmt/2018-02-01/web/client.go @@ -92,6 +92,7 @@ func (client BaseClient) CheckNameAvailability(ctx context.Context, request Reso result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client BaseClient) GetPublishingUser(ctx context.Context) (result User, er result, err = client.GetPublishingUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "GetPublishingUser", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client BaseClient) GetSourceControl(ctx context.Context, sourceControlType result, err = client.GetSourceControlResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "GetSourceControl", resp, "Failure responding to request") + return } return @@ -302,6 +305,7 @@ func (client BaseClient) GetSubscriptionDeploymentLocations(ctx context.Context) result, err = client.GetSubscriptionDeploymentLocationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "GetSubscriptionDeploymentLocations", resp, "Failure responding to request") + return } return @@ -376,6 +380,7 @@ func (client BaseClient) ListBillingMeters(ctx context.Context, billingLocation result.bmc, err = client.ListBillingMetersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListBillingMeters", resp, "Failure responding to request") + return } if result.bmc.hasNextLink() && result.bmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -444,6 +449,7 @@ func (client BaseClient) listBillingMetersNextResults(ctx context.Context, lastR result, err = client.ListBillingMetersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "listBillingMetersNextResults", resp, "Failure responding to next results request") + return } return } @@ -501,6 +507,7 @@ func (client BaseClient) ListGeoRegions(ctx context.Context, sku SkuName, linuxW result.grc, err = client.ListGeoRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListGeoRegions", resp, "Failure responding to request") + return } if result.grc.hasNextLink() && result.grc.IsEmpty() { err = result.NextWithContext(ctx) @@ -575,6 +582,7 @@ func (client BaseClient) listGeoRegionsNextResults(ctx context.Context, lastResu result, err = client.ListGeoRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "listGeoRegionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -624,6 +632,7 @@ func (client BaseClient) ListPremierAddOnOffers(ctx context.Context) (result Pre result.paooc, err = client.ListPremierAddOnOffersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListPremierAddOnOffers", resp, "Failure responding to request") + return } if result.paooc.hasNextLink() && result.paooc.IsEmpty() { err = result.NextWithContext(ctx) @@ -686,6 +695,7 @@ func (client BaseClient) listPremierAddOnOffersNextResults(ctx context.Context, result, err = client.ListPremierAddOnOffersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "listPremierAddOnOffersNextResults", resp, "Failure responding to next results request") + return } return } @@ -737,6 +747,7 @@ func (client BaseClient) ListSiteIdentifiersAssignedToHostName(ctx context.Conte result.ic, err = client.ListSiteIdentifiersAssignedToHostNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListSiteIdentifiersAssignedToHostName", resp, "Failure responding to request") + return } if result.ic.hasNextLink() && result.ic.IsEmpty() { err = result.NextWithContext(ctx) @@ -801,6 +812,7 @@ func (client BaseClient) listSiteIdentifiersAssignedToHostNameNextResults(ctx co result, err = client.ListSiteIdentifiersAssignedToHostNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "listSiteIdentifiersAssignedToHostNameNextResults", resp, "Failure responding to next results request") + return } return } @@ -849,6 +861,7 @@ func (client BaseClient) ListSkus(ctx context.Context) (result SkuInfos, err err result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListSkus", resp, "Failure responding to request") + return } return @@ -920,6 +933,7 @@ func (client BaseClient) ListSourceControls(ctx context.Context) (result SourceC result.scc, err = client.ListSourceControlsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListSourceControls", resp, "Failure responding to request") + return } if result.scc.hasNextLink() && result.scc.IsEmpty() { err = result.NextWithContext(ctx) @@ -978,6 +992,7 @@ func (client BaseClient) listSourceControlsNextResults(ctx context.Context, last result, err = client.ListSourceControlsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "listSourceControlsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1043,6 +1058,7 @@ func (client BaseClient) Move(ctx context.Context, resourceGroupName string, mov result, err = client.MoveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "Move", resp, "Failure responding to request") + return } return @@ -1124,6 +1140,7 @@ func (client BaseClient) UpdatePublishingUser(ctx context.Context, userDetails U result, err = client.UpdatePublishingUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "UpdatePublishingUser", resp, "Failure responding to request") + return } return @@ -1195,6 +1212,7 @@ func (client BaseClient) UpdateSourceControl(ctx context.Context, sourceControlT result, err = client.UpdateSourceControlResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "UpdateSourceControl", resp, "Failure responding to request") + return } return @@ -1285,6 +1303,7 @@ func (client BaseClient) Validate(ctx context.Context, resourceGroupName string, result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "Validate", resp, "Failure responding to request") + return } return @@ -1368,6 +1387,7 @@ func (client BaseClient) ValidateContainerSettings(ctx context.Context, validate result, err = client.ValidateContainerSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ValidateContainerSettings", resp, "Failure responding to request") + return } return @@ -1458,6 +1478,7 @@ func (client BaseClient) ValidateMove(ctx context.Context, resourceGroupName str result, err = client.ValidateMoveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ValidateMove", resp, "Failure responding to request") + return } return @@ -1533,6 +1554,7 @@ func (client BaseClient) VerifyHostingEnvironmentVnet(ctx context.Context, param result, err = client.VerifyHostingEnvironmentVnetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "VerifyHostingEnvironmentVnet", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2018-02-01/web/deletedwebapps.go b/services/web/mgmt/2018-02-01/web/deletedwebapps.go index 9c25529fe118..7e1b58e4c96f 100644 --- a/services/web/mgmt/2018-02-01/web/deletedwebapps.go +++ b/services/web/mgmt/2018-02-01/web/deletedwebapps.go @@ -71,6 +71,7 @@ func (client DeletedWebAppsClient) GetDeletedWebAppByLocation(ctx context.Contex result, err = client.GetDeletedWebAppByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DeletedWebAppsClient", "GetDeletedWebAppByLocation", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client DeletedWebAppsClient) List(ctx context.Context) (result DeletedWebA result.dwac, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DeletedWebAppsClient", "List", resp, "Failure responding to request") + return } if result.dwac.hasNextLink() && result.dwac.IsEmpty() { err = result.NextWithContext(ctx) @@ -206,6 +208,7 @@ func (client DeletedWebAppsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DeletedWebAppsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -255,6 +258,7 @@ func (client DeletedWebAppsClient) ListByLocation(ctx context.Context, location result.dwac, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DeletedWebAppsClient", "ListByLocation", resp, "Failure responding to request") + return } if result.dwac.hasNextLink() && result.dwac.IsEmpty() { err = result.NextWithContext(ctx) @@ -318,6 +322,7 @@ func (client DeletedWebAppsClient) listByLocationNextResults(ctx context.Context result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DeletedWebAppsClient", "listByLocationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2018-02-01/web/diagnostics.go b/services/web/mgmt/2018-02-01/web/diagnostics.go index 47e8059d7119..4aa96ebad77f 100644 --- a/services/web/mgmt/2018-02-01/web/diagnostics.go +++ b/services/web/mgmt/2018-02-01/web/diagnostics.go @@ -90,6 +90,7 @@ func (client DiagnosticsClient) ExecuteSiteAnalysis(ctx context.Context, resourc result, err = client.ExecuteSiteAnalysisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ExecuteSiteAnalysis", resp, "Failure responding to request") + return } return @@ -193,6 +194,7 @@ func (client DiagnosticsClient) ExecuteSiteAnalysisSlot(ctx context.Context, res result, err = client.ExecuteSiteAnalysisSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ExecuteSiteAnalysisSlot", resp, "Failure responding to request") + return } return @@ -296,6 +298,7 @@ func (client DiagnosticsClient) ExecuteSiteDetector(ctx context.Context, resourc result, err = client.ExecuteSiteDetectorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ExecuteSiteDetector", resp, "Failure responding to request") + return } return @@ -399,6 +402,7 @@ func (client DiagnosticsClient) ExecuteSiteDetectorSlot(ctx context.Context, res result, err = client.ExecuteSiteDetectorSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ExecuteSiteDetectorSlot", resp, "Failure responding to request") + return } return @@ -501,6 +505,7 @@ func (client DiagnosticsClient) GetHostingEnvironmentDetectorResponse(ctx contex result, err = client.GetHostingEnvironmentDetectorResponseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetHostingEnvironmentDetectorResponse", resp, "Failure responding to request") + return } return @@ -596,6 +601,7 @@ func (client DiagnosticsClient) GetSiteAnalysis(ctx context.Context, resourceGro result, err = client.GetSiteAnalysisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteAnalysis", resp, "Failure responding to request") + return } return @@ -684,6 +690,7 @@ func (client DiagnosticsClient) GetSiteAnalysisSlot(ctx context.Context, resourc result, err = client.GetSiteAnalysisSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteAnalysisSlot", resp, "Failure responding to request") + return } return @@ -773,6 +780,7 @@ func (client DiagnosticsClient) GetSiteDetector(ctx context.Context, resourceGro result.ddc, err = client.GetSiteDetectorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetector", resp, "Failure responding to request") + return } if result.ddc.hasNextLink() && result.ddc.IsEmpty() { err = result.NextWithContext(ctx) @@ -839,6 +847,7 @@ func (client DiagnosticsClient) getSiteDetectorNextResults(ctx context.Context, result, err = client.GetSiteDetectorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "getSiteDetectorNextResults", resp, "Failure responding to next results request") + return } return } @@ -905,6 +914,7 @@ func (client DiagnosticsClient) GetSiteDetectorResponse(ctx context.Context, res result, err = client.GetSiteDetectorResponseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetectorResponse", resp, "Failure responding to request") + return } return @@ -1006,6 +1016,7 @@ func (client DiagnosticsClient) GetSiteDetectorResponseSlot(ctx context.Context, result, err = client.GetSiteDetectorResponseSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetectorResponseSlot", resp, "Failure responding to request") + return } return @@ -1104,6 +1115,7 @@ func (client DiagnosticsClient) GetSiteDetectorSlot(ctx context.Context, resourc result.ddc, err = client.GetSiteDetectorSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetectorSlot", resp, "Failure responding to request") + return } if result.ddc.hasNextLink() && result.ddc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1171,6 +1183,7 @@ func (client DiagnosticsClient) getSiteDetectorSlotNextResults(ctx context.Conte result, err = client.GetSiteDetectorSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "getSiteDetectorSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -1231,6 +1244,7 @@ func (client DiagnosticsClient) GetSiteDiagnosticCategory(ctx context.Context, r result, err = client.GetSiteDiagnosticCategoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDiagnosticCategory", resp, "Failure responding to request") + return } return @@ -1317,6 +1331,7 @@ func (client DiagnosticsClient) GetSiteDiagnosticCategorySlot(ctx context.Contex result, err = client.GetSiteDiagnosticCategorySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDiagnosticCategorySlot", resp, "Failure responding to request") + return } return @@ -1403,6 +1418,7 @@ func (client DiagnosticsClient) ListHostingEnvironmentDetectorResponses(ctx cont result.drc, err = client.ListHostingEnvironmentDetectorResponsesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListHostingEnvironmentDetectorResponses", resp, "Failure responding to request") + return } if result.drc.hasNextLink() && result.drc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1467,6 +1483,7 @@ func (client DiagnosticsClient) listHostingEnvironmentDetectorResponsesNextResul result, err = client.ListHostingEnvironmentDetectorResponsesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listHostingEnvironmentDetectorResponsesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1528,6 +1545,7 @@ func (client DiagnosticsClient) ListSiteAnalyses(ctx context.Context, resourceGr result.dac, err = client.ListSiteAnalysesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteAnalyses", resp, "Failure responding to request") + return } if result.dac.hasNextLink() && result.dac.IsEmpty() { err = result.NextWithContext(ctx) @@ -1593,6 +1611,7 @@ func (client DiagnosticsClient) listSiteAnalysesNextResults(ctx context.Context, result, err = client.ListSiteAnalysesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteAnalysesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1655,6 +1674,7 @@ func (client DiagnosticsClient) ListSiteAnalysesSlot(ctx context.Context, resour result.dac, err = client.ListSiteAnalysesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteAnalysesSlot", resp, "Failure responding to request") + return } if result.dac.hasNextLink() && result.dac.IsEmpty() { err = result.NextWithContext(ctx) @@ -1721,6 +1741,7 @@ func (client DiagnosticsClient) listSiteAnalysesSlotNextResults(ctx context.Cont result, err = client.ListSiteAnalysesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteAnalysesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -1781,6 +1802,7 @@ func (client DiagnosticsClient) ListSiteDetectorResponses(ctx context.Context, r result.drc, err = client.ListSiteDetectorResponsesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDetectorResponses", resp, "Failure responding to request") + return } if result.drc.hasNextLink() && result.drc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1845,6 +1867,7 @@ func (client DiagnosticsClient) listSiteDetectorResponsesNextResults(ctx context result, err = client.ListSiteDetectorResponsesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDetectorResponsesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1906,6 +1929,7 @@ func (client DiagnosticsClient) ListSiteDetectorResponsesSlot(ctx context.Contex result.drc, err = client.ListSiteDetectorResponsesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDetectorResponsesSlot", resp, "Failure responding to request") + return } if result.drc.hasNextLink() && result.drc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1971,6 +1995,7 @@ func (client DiagnosticsClient) listSiteDetectorResponsesSlotNextResults(ctx con result, err = client.ListSiteDetectorResponsesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDetectorResponsesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -2032,6 +2057,7 @@ func (client DiagnosticsClient) ListSiteDetectors(ctx context.Context, resourceG result.ddc, err = client.ListSiteDetectorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDetectors", resp, "Failure responding to request") + return } if result.ddc.hasNextLink() && result.ddc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2097,6 +2123,7 @@ func (client DiagnosticsClient) listSiteDetectorsNextResults(ctx context.Context result, err = client.ListSiteDetectorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDetectorsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2159,6 +2186,7 @@ func (client DiagnosticsClient) ListSiteDetectorsSlot(ctx context.Context, resou result.ddc, err = client.ListSiteDetectorsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDetectorsSlot", resp, "Failure responding to request") + return } if result.ddc.hasNextLink() && result.ddc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2225,6 +2253,7 @@ func (client DiagnosticsClient) listSiteDetectorsSlotNextResults(ctx context.Con result, err = client.ListSiteDetectorsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDetectorsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -2285,6 +2314,7 @@ func (client DiagnosticsClient) ListSiteDiagnosticCategories(ctx context.Context result.dcc, err = client.ListSiteDiagnosticCategoriesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDiagnosticCategories", resp, "Failure responding to request") + return } if result.dcc.hasNextLink() && result.dcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2349,6 +2379,7 @@ func (client DiagnosticsClient) listSiteDiagnosticCategoriesNextResults(ctx cont result, err = client.ListSiteDiagnosticCategoriesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDiagnosticCategoriesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2410,6 +2441,7 @@ func (client DiagnosticsClient) ListSiteDiagnosticCategoriesSlot(ctx context.Con result.dcc, err = client.ListSiteDiagnosticCategoriesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDiagnosticCategoriesSlot", resp, "Failure responding to request") + return } if result.dcc.hasNextLink() && result.dcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2475,6 +2507,7 @@ func (client DiagnosticsClient) listSiteDiagnosticCategoriesSlotNextResults(ctx result, err = client.ListSiteDiagnosticCategoriesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDiagnosticCategoriesSlotNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2018-02-01/web/domainregistrationprovider.go b/services/web/mgmt/2018-02-01/web/domainregistrationprovider.go index c1fded2ac149..ed041db30ada 100644 --- a/services/web/mgmt/2018-02-01/web/domainregistrationprovider.go +++ b/services/web/mgmt/2018-02-01/web/domainregistrationprovider.go @@ -71,6 +71,7 @@ func (client DomainRegistrationProviderClient) ListOperations(ctx context.Contex result.coc, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainRegistrationProviderClient", "ListOperations", resp, "Failure responding to request") + return } if result.coc.hasNextLink() && result.coc.IsEmpty() { err = result.NextWithContext(ctx) @@ -129,6 +130,7 @@ func (client DomainRegistrationProviderClient) listOperationsNextResults(ctx con result, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainRegistrationProviderClient", "listOperationsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2018-02-01/web/domains.go b/services/web/mgmt/2018-02-01/web/domains.go index 5ca16d2278d1..ec1a8d2d3710 100644 --- a/services/web/mgmt/2018-02-01/web/domains.go +++ b/services/web/mgmt/2018-02-01/web/domains.go @@ -72,6 +72,7 @@ func (client DomainsClient) CheckAvailability(ctx context.Context, identifier Na result, err = client.CheckAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "CheckAvailability", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DomainsClient) CreateOrUpdateOwnershipIdentifier(ctx context.Contex result, err = client.CreateOrUpdateOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "CreateOrUpdateOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -390,6 +392,7 @@ func (client DomainsClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "Delete", resp, "Failure responding to request") + return } return @@ -476,6 +479,7 @@ func (client DomainsClient) DeleteOwnershipIdentifier(ctx context.Context, resou result, err = client.DeleteOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "DeleteOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -559,6 +563,7 @@ func (client DomainsClient) Get(ctx context.Context, resourceGroupName string, d result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "Get", resp, "Failure responding to request") + return } return @@ -631,6 +636,7 @@ func (client DomainsClient) GetControlCenterSsoRequest(ctx context.Context) (res result, err = client.GetControlCenterSsoRequestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "GetControlCenterSsoRequest", resp, "Failure responding to request") + return } return @@ -713,6 +719,7 @@ func (client DomainsClient) GetOwnershipIdentifier(ctx context.Context, resource result, err = client.GetOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "GetOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -787,6 +794,7 @@ func (client DomainsClient) List(ctx context.Context) (result DomainCollectionPa result.dc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "List", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -849,6 +857,7 @@ func (client DomainsClient) listNextResults(ctx context.Context, lastResults Dom result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -908,6 +917,7 @@ func (client DomainsClient) ListByResourceGroup(ctx context.Context, resourceGro result.dc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -971,6 +981,7 @@ func (client DomainsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1031,6 +1042,7 @@ func (client DomainsClient) ListOwnershipIdentifiers(ctx context.Context, resour result.doic, err = client.ListOwnershipIdentifiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "ListOwnershipIdentifiers", resp, "Failure responding to request") + return } if result.doic.hasNextLink() && result.doic.IsEmpty() { err = result.NextWithContext(ctx) @@ -1095,6 +1107,7 @@ func (client DomainsClient) listOwnershipIdentifiersNextResults(ctx context.Cont result, err = client.ListOwnershipIdentifiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "listOwnershipIdentifiersNextResults", resp, "Failure responding to next results request") + return } return } @@ -1146,6 +1159,7 @@ func (client DomainsClient) ListRecommendations(ctx context.Context, parameters result.nic, err = client.ListRecommendationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "ListRecommendations", resp, "Failure responding to request") + return } if result.nic.hasNextLink() && result.nic.IsEmpty() { err = result.NextWithContext(ctx) @@ -1210,6 +1224,7 @@ func (client DomainsClient) listRecommendationsNextResults(ctx context.Context, result, err = client.ListRecommendationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "listRecommendationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1269,6 +1284,7 @@ func (client DomainsClient) Renew(ctx context.Context, resourceGroupName string, result, err = client.RenewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "Renew", resp, "Failure responding to request") + return } return @@ -1354,6 +1370,7 @@ func (client DomainsClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "Update", resp, "Failure responding to request") + return } return @@ -1442,6 +1459,7 @@ func (client DomainsClient) UpdateOwnershipIdentifier(ctx context.Context, resou result, err = client.UpdateOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "UpdateOwnershipIdentifier", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2018-02-01/web/provider.go b/services/web/mgmt/2018-02-01/web/provider.go index 3c182ef1ec33..52f041977374 100644 --- a/services/web/mgmt/2018-02-01/web/provider.go +++ b/services/web/mgmt/2018-02-01/web/provider.go @@ -70,6 +70,7 @@ func (client ProviderClient) GetAvailableStacks(ctx context.Context, osTypeSelec result.asc, err = client.GetAvailableStacksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "GetAvailableStacks", resp, "Failure responding to request") + return } if result.asc.hasNextLink() && result.asc.IsEmpty() { err = result.NextWithContext(ctx) @@ -131,6 +132,7 @@ func (client ProviderClient) getAvailableStacksNextResults(ctx context.Context, result, err = client.GetAvailableStacksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "getAvailableStacksNextResults", resp, "Failure responding to next results request") + return } return } @@ -180,6 +182,7 @@ func (client ProviderClient) GetAvailableStacksOnPrem(ctx context.Context, osTyp result.asc, err = client.GetAvailableStacksOnPremResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "GetAvailableStacksOnPrem", resp, "Failure responding to request") + return } if result.asc.hasNextLink() && result.asc.IsEmpty() { err = result.NextWithContext(ctx) @@ -245,6 +248,7 @@ func (client ProviderClient) getAvailableStacksOnPremNextResults(ctx context.Con result, err = client.GetAvailableStacksOnPremResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "getAvailableStacksOnPremNextResults", resp, "Failure responding to next results request") + return } return } @@ -295,6 +299,7 @@ func (client ProviderClient) ListOperations(ctx context.Context) (result CsmOper result.coc, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "ListOperations", resp, "Failure responding to request") + return } if result.coc.hasNextLink() && result.coc.IsEmpty() { err = result.NextWithContext(ctx) @@ -353,6 +358,7 @@ func (client ProviderClient) listOperationsNextResults(ctx context.Context, last result, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "listOperationsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2018-02-01/web/recommendations.go b/services/web/mgmt/2018-02-01/web/recommendations.go index dfb02153a1bd..c92d61f10283 100644 --- a/services/web/mgmt/2018-02-01/web/recommendations.go +++ b/services/web/mgmt/2018-02-01/web/recommendations.go @@ -81,6 +81,7 @@ func (client RecommendationsClient) DisableAllForHostingEnvironment(ctx context. result, err = client.DisableAllForHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "DisableAllForHostingEnvironment", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client RecommendationsClient) DisableAllForWebApp(ctx context.Context, res result, err = client.DisableAllForWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "DisableAllForWebApp", resp, "Failure responding to request") + return } return @@ -247,6 +249,7 @@ func (client RecommendationsClient) DisableRecommendationForHostingEnvironment(c result, err = client.DisableRecommendationForHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "DisableRecommendationForHostingEnvironment", resp, "Failure responding to request") + return } return @@ -332,6 +335,7 @@ func (client RecommendationsClient) DisableRecommendationForSite(ctx context.Con result, err = client.DisableRecommendationForSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "DisableRecommendationForSite", resp, "Failure responding to request") + return } return @@ -407,6 +411,7 @@ func (client RecommendationsClient) DisableRecommendationForSubscription(ctx con result, err = client.DisableRecommendationForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "DisableRecommendationForSubscription", resp, "Failure responding to request") + return } return @@ -492,6 +497,7 @@ func (client RecommendationsClient) GetRuleDetailsByHostingEnvironment(ctx conte result, err = client.GetRuleDetailsByHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "GetRuleDetailsByHostingEnvironment", resp, "Failure responding to request") + return } return @@ -586,6 +592,7 @@ func (client RecommendationsClient) GetRuleDetailsByWebApp(ctx context.Context, result, err = client.GetRuleDetailsByWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "GetRuleDetailsByWebApp", resp, "Failure responding to request") + return } return @@ -672,6 +679,7 @@ func (client RecommendationsClient) List(ctx context.Context, featured *bool, fi result.rc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "List", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -740,6 +748,7 @@ func (client RecommendationsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -805,6 +814,7 @@ func (client RecommendationsClient) ListHistoryForHostingEnvironment(ctx context result.rc, err = client.ListHistoryForHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ListHistoryForHostingEnvironment", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -875,6 +885,7 @@ func (client RecommendationsClient) listHistoryForHostingEnvironmentNextResults( result, err = client.ListHistoryForHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "listHistoryForHostingEnvironmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -940,6 +951,7 @@ func (client RecommendationsClient) ListHistoryForWebApp(ctx context.Context, re result.rc, err = client.ListHistoryForWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ListHistoryForWebApp", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1010,6 +1022,7 @@ func (client RecommendationsClient) listHistoryForWebAppNextResults(ctx context. result, err = client.ListHistoryForWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "listHistoryForWebAppNextResults", resp, "Failure responding to next results request") + return } return } @@ -1074,6 +1087,7 @@ func (client RecommendationsClient) ListRecommendedRulesForHostingEnvironment(ct result.rc, err = client.ListRecommendedRulesForHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ListRecommendedRulesForHostingEnvironment", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1144,6 +1158,7 @@ func (client RecommendationsClient) listRecommendedRulesForHostingEnvironmentNex result, err = client.ListRecommendedRulesForHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "listRecommendedRulesForHostingEnvironmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -1208,6 +1223,7 @@ func (client RecommendationsClient) ListRecommendedRulesForWebApp(ctx context.Co result.rc, err = client.ListRecommendedRulesForWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ListRecommendedRulesForWebApp", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1278,6 +1294,7 @@ func (client RecommendationsClient) listRecommendedRulesForWebAppNextResults(ctx result, err = client.ListRecommendedRulesForWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "listRecommendedRulesForWebAppNextResults", resp, "Failure responding to next results request") + return } return } @@ -1326,6 +1343,7 @@ func (client RecommendationsClient) ResetAllFilters(ctx context.Context) (result result, err = client.ResetAllFiltersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ResetAllFilters", resp, "Failure responding to request") + return } return @@ -1406,6 +1424,7 @@ func (client RecommendationsClient) ResetAllFiltersForHostingEnvironment(ctx con result, err = client.ResetAllFiltersForHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ResetAllFiltersForHostingEnvironment", resp, "Failure responding to request") + return } return @@ -1489,6 +1508,7 @@ func (client RecommendationsClient) ResetAllFiltersForWebApp(ctx context.Context result, err = client.ResetAllFiltersForWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ResetAllFiltersForWebApp", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2018-02-01/web/resourcehealthmetadata.go b/services/web/mgmt/2018-02-01/web/resourcehealthmetadata.go index 2c50a1040bc3..5bf0bb922751 100644 --- a/services/web/mgmt/2018-02-01/web/resourcehealthmetadata.go +++ b/services/web/mgmt/2018-02-01/web/resourcehealthmetadata.go @@ -82,6 +82,7 @@ func (client ResourceHealthMetadataClient) GetBySite(ctx context.Context, resour result, err = client.GetBySiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "GetBySite", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client ResourceHealthMetadataClient) GetBySiteSlot(ctx context.Context, re result, err = client.GetBySiteSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "GetBySiteSlot", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client ResourceHealthMetadataClient) List(ctx context.Context) (result Res result.rhmc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "List", resp, "Failure responding to request") + return } if result.rhmc.hasNextLink() && result.rhmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -302,6 +305,7 @@ func (client ResourceHealthMetadataClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -361,6 +365,7 @@ func (client ResourceHealthMetadataClient) ListByResourceGroup(ctx context.Conte result.rhmc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rhmc.hasNextLink() && result.rhmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -424,6 +429,7 @@ func (client ResourceHealthMetadataClient) listByResourceGroupNextResults(ctx co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -484,6 +490,7 @@ func (client ResourceHealthMetadataClient) ListBySite(ctx context.Context, resou result.rhmc, err = client.ListBySiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "ListBySite", resp, "Failure responding to request") + return } if result.rhmc.hasNextLink() && result.rhmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -548,6 +555,7 @@ func (client ResourceHealthMetadataClient) listBySiteNextResults(ctx context.Con result, err = client.ListBySiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "listBySiteNextResults", resp, "Failure responding to next results request") + return } return } @@ -609,6 +617,7 @@ func (client ResourceHealthMetadataClient) ListBySiteSlot(ctx context.Context, r result.rhmc, err = client.ListBySiteSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "ListBySiteSlot", resp, "Failure responding to request") + return } if result.rhmc.hasNextLink() && result.rhmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -674,6 +683,7 @@ func (client ResourceHealthMetadataClient) listBySiteSlotNextResults(ctx context result, err = client.ListBySiteSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "listBySiteSlotNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2018-02-01/web/topleveldomains.go b/services/web/mgmt/2018-02-01/web/topleveldomains.go index d2a8d642e723..7ff372feaab2 100644 --- a/services/web/mgmt/2018-02-01/web/topleveldomains.go +++ b/services/web/mgmt/2018-02-01/web/topleveldomains.go @@ -71,6 +71,7 @@ func (client TopLevelDomainsClient) Get(ctx context.Context, name string) (resul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "Get", resp, "Failure responding to request") + return } return @@ -143,6 +144,7 @@ func (client TopLevelDomainsClient) List(ctx context.Context) (result TopLevelDo result.tldc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "List", resp, "Failure responding to request") + return } if result.tldc.hasNextLink() && result.tldc.IsEmpty() { err = result.NextWithContext(ctx) @@ -205,6 +207,7 @@ func (client TopLevelDomainsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -257,6 +260,7 @@ func (client TopLevelDomainsClient) ListAgreements(ctx context.Context, name str result.tlac, err = client.ListAgreementsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "ListAgreements", resp, "Failure responding to request") + return } if result.tlac.hasNextLink() && result.tlac.IsEmpty() { err = result.NextWithContext(ctx) @@ -322,6 +326,7 @@ func (client TopLevelDomainsClient) listAgreementsNextResults(ctx context.Contex result, err = client.ListAgreementsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "listAgreementsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2019-08-01/web/apps.go b/services/web/mgmt/2019-08-01/web/apps.go index e552f5b5053e..de144fd31fa3 100644 --- a/services/web/mgmt/2019-08-01/web/apps.go +++ b/services/web/mgmt/2019-08-01/web/apps.go @@ -83,6 +83,7 @@ func (client AppsClient) AddPremierAddOn(ctx context.Context, resourceGroupName result, err = client.AddPremierAddOnResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "AddPremierAddOn", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client AppsClient) AddPremierAddOnSlot(ctx context.Context, resourceGroupN result, err = client.AddPremierAddOnSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "AddPremierAddOnSlot", resp, "Failure responding to request") + return } return @@ -261,6 +263,7 @@ func (client AppsClient) AnalyzeCustomHostname(ctx context.Context, resourceGrou result, err = client.AnalyzeCustomHostnameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "AnalyzeCustomHostname", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client AppsClient) AnalyzeCustomHostnameSlot(ctx context.Context, resource result, err = client.AnalyzeCustomHostnameSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "AnalyzeCustomHostnameSlot", resp, "Failure responding to request") + return } return @@ -441,6 +445,7 @@ func (client AppsClient) ApplySlotConfigToProduction(ctx context.Context, resour result, err = client.ApplySlotConfigToProductionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ApplySlotConfigToProduction", resp, "Failure responding to request") + return } return @@ -531,6 +536,7 @@ func (client AppsClient) ApplySlotConfigurationSlot(ctx context.Context, resourc result, err = client.ApplySlotConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ApplySlotConfigurationSlot", resp, "Failure responding to request") + return } return @@ -712,6 +718,7 @@ func (client AppsClient) Backup(ctx context.Context, resourceGroupName string, n result, err = client.BackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Backup", resp, "Failure responding to request") + return } return @@ -809,6 +816,7 @@ func (client AppsClient) BackupSlot(ctx context.Context, resourceGroupName strin result, err = client.BackupSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "BackupSlot", resp, "Failure responding to request") + return } return @@ -1095,6 +1103,7 @@ func (client AppsClient) CreateDeployment(ctx context.Context, resourceGroupName result, err = client.CreateDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateDeployment", resp, "Failure responding to request") + return } return @@ -1185,6 +1194,7 @@ func (client AppsClient) CreateDeploymentSlot(ctx context.Context, resourceGroup result, err = client.CreateDeploymentSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateDeploymentSlot", resp, "Failure responding to request") + return } return @@ -1917,6 +1927,7 @@ func (client AppsClient) CreateOrUpdateConfiguration(ctx context.Context, resour result, err = client.CreateOrUpdateConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateConfiguration", resp, "Failure responding to request") + return } return @@ -2016,6 +2027,7 @@ func (client AppsClient) CreateOrUpdateConfigurationSlot(ctx context.Context, re result, err = client.CreateOrUpdateConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateConfigurationSlot", resp, "Failure responding to request") + return } return @@ -2105,6 +2117,7 @@ func (client AppsClient) CreateOrUpdateDomainOwnershipIdentifier(ctx context.Con result, err = client.CreateOrUpdateDomainOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateDomainOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -2196,6 +2209,7 @@ func (client AppsClient) CreateOrUpdateDomainOwnershipIdentifierSlot(ctx context result, err = client.CreateOrUpdateDomainOwnershipIdentifierSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateDomainOwnershipIdentifierSlot", resp, "Failure responding to request") + return } return @@ -2286,6 +2300,7 @@ func (client AppsClient) CreateOrUpdateFunctionSecret(ctx context.Context, resou result, err = client.CreateOrUpdateFunctionSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateFunctionSecret", resp, "Failure responding to request") + return } return @@ -2377,6 +2392,7 @@ func (client AppsClient) CreateOrUpdateFunctionSecretSlot(ctx context.Context, r result, err = client.CreateOrUpdateFunctionSecretSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateFunctionSecretSlot", resp, "Failure responding to request") + return } return @@ -2467,6 +2483,7 @@ func (client AppsClient) CreateOrUpdateHostNameBinding(ctx context.Context, reso result, err = client.CreateOrUpdateHostNameBindingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHostNameBinding", resp, "Failure responding to request") + return } return @@ -2557,6 +2574,7 @@ func (client AppsClient) CreateOrUpdateHostNameBindingSlot(ctx context.Context, result, err = client.CreateOrUpdateHostNameBindingSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHostNameBindingSlot", resp, "Failure responding to request") + return } return @@ -2647,6 +2665,7 @@ func (client AppsClient) CreateOrUpdateHostSecret(ctx context.Context, resourceG result, err = client.CreateOrUpdateHostSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHostSecret", resp, "Failure responding to request") + return } return @@ -2738,6 +2757,7 @@ func (client AppsClient) CreateOrUpdateHostSecretSlot(ctx context.Context, resou result, err = client.CreateOrUpdateHostSecretSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHostSecretSlot", resp, "Failure responding to request") + return } return @@ -2829,6 +2849,7 @@ func (client AppsClient) CreateOrUpdateHybridConnection(ctx context.Context, res result, err = client.CreateOrUpdateHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHybridConnection", resp, "Failure responding to request") + return } return @@ -2920,6 +2941,7 @@ func (client AppsClient) CreateOrUpdateHybridConnectionSlot(ctx context.Context, result, err = client.CreateOrUpdateHybridConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHybridConnectionSlot", resp, "Failure responding to request") + return } return @@ -3011,6 +3033,7 @@ func (client AppsClient) CreateOrUpdatePublicCertificate(ctx context.Context, re result, err = client.CreateOrUpdatePublicCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdatePublicCertificate", resp, "Failure responding to request") + return } return @@ -3102,6 +3125,7 @@ func (client AppsClient) CreateOrUpdatePublicCertificateSlot(ctx context.Context result, err = client.CreateOrUpdatePublicCertificateSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdatePublicCertificateSlot", resp, "Failure responding to request") + return } return @@ -3192,6 +3216,7 @@ func (client AppsClient) CreateOrUpdateRelayServiceConnection(ctx context.Contex result, err = client.CreateOrUpdateRelayServiceConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateRelayServiceConnection", resp, "Failure responding to request") + return } return @@ -3283,6 +3308,7 @@ func (client AppsClient) CreateOrUpdateRelayServiceConnectionSlot(ctx context.Co result, err = client.CreateOrUpdateRelayServiceConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateRelayServiceConnectionSlot", resp, "Failure responding to request") + return } return @@ -3655,6 +3681,7 @@ func (client AppsClient) CreateOrUpdateSwiftVirtualNetworkConnection(ctx context result, err = client.CreateOrUpdateSwiftVirtualNetworkConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateSwiftVirtualNetworkConnection", resp, "Failure responding to request") + return } return @@ -3746,6 +3773,7 @@ func (client AppsClient) CreateOrUpdateSwiftVirtualNetworkConnectionSlot(ctx con result, err = client.CreateOrUpdateSwiftVirtualNetworkConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateSwiftVirtualNetworkConnectionSlot", resp, "Failure responding to request") + return } return @@ -3835,6 +3863,7 @@ func (client AppsClient) CreateOrUpdateVnetConnection(ctx context.Context, resou result, err = client.CreateOrUpdateVnetConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateVnetConnection", resp, "Failure responding to request") + return } return @@ -3928,6 +3957,7 @@ func (client AppsClient) CreateOrUpdateVnetConnectionGateway(ctx context.Context result, err = client.CreateOrUpdateVnetConnectionGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateVnetConnectionGateway", resp, "Failure responding to request") + return } return @@ -4024,6 +4054,7 @@ func (client AppsClient) CreateOrUpdateVnetConnectionGatewaySlot(ctx context.Con result, err = client.CreateOrUpdateVnetConnectionGatewaySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateVnetConnectionGatewaySlot", resp, "Failure responding to request") + return } return @@ -4117,6 +4148,7 @@ func (client AppsClient) CreateOrUpdateVnetConnectionSlot(ctx context.Context, r result, err = client.CreateOrUpdateVnetConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateVnetConnectionSlot", resp, "Failure responding to request") + return } return @@ -4207,6 +4239,7 @@ func (client AppsClient) Delete(ctx context.Context, resourceGroupName string, n result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Delete", resp, "Failure responding to request") + return } return @@ -4296,6 +4329,7 @@ func (client AppsClient) DeleteBackup(ctx context.Context, resourceGroupName str result, err = client.DeleteBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteBackup", resp, "Failure responding to request") + return } return @@ -4379,6 +4413,7 @@ func (client AppsClient) DeleteBackupConfiguration(ctx context.Context, resource result, err = client.DeleteBackupConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteBackupConfiguration", resp, "Failure responding to request") + return } return @@ -4463,6 +4498,7 @@ func (client AppsClient) DeleteBackupConfigurationSlot(ctx context.Context, reso result, err = client.DeleteBackupConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteBackupConfigurationSlot", resp, "Failure responding to request") + return } return @@ -4549,6 +4585,7 @@ func (client AppsClient) DeleteBackupSlot(ctx context.Context, resourceGroupName result, err = client.DeleteBackupSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteBackupSlot", resp, "Failure responding to request") + return } return @@ -4634,6 +4671,7 @@ func (client AppsClient) DeleteContinuousWebJob(ctx context.Context, resourceGro result, err = client.DeleteContinuousWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteContinuousWebJob", resp, "Failure responding to request") + return } return @@ -4720,6 +4758,7 @@ func (client AppsClient) DeleteContinuousWebJobSlot(ctx context.Context, resourc result, err = client.DeleteContinuousWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteContinuousWebJobSlot", resp, "Failure responding to request") + return } return @@ -4805,6 +4844,7 @@ func (client AppsClient) DeleteDeployment(ctx context.Context, resourceGroupName result, err = client.DeleteDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteDeployment", resp, "Failure responding to request") + return } return @@ -4891,6 +4931,7 @@ func (client AppsClient) DeleteDeploymentSlot(ctx context.Context, resourceGroup result, err = client.DeleteDeploymentSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteDeploymentSlot", resp, "Failure responding to request") + return } return @@ -4976,6 +5017,7 @@ func (client AppsClient) DeleteDomainOwnershipIdentifier(ctx context.Context, re result, err = client.DeleteDomainOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteDomainOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -5062,6 +5104,7 @@ func (client AppsClient) DeleteDomainOwnershipIdentifierSlot(ctx context.Context result, err = client.DeleteDomainOwnershipIdentifierSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteDomainOwnershipIdentifierSlot", resp, "Failure responding to request") + return } return @@ -5147,6 +5190,7 @@ func (client AppsClient) DeleteFunction(ctx context.Context, resourceGroupName s result, err = client.DeleteFunctionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteFunction", resp, "Failure responding to request") + return } return @@ -5232,6 +5276,7 @@ func (client AppsClient) DeleteFunctionSecret(ctx context.Context, resourceGroup result, err = client.DeleteFunctionSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteFunctionSecret", resp, "Failure responding to request") + return } return @@ -5319,6 +5364,7 @@ func (client AppsClient) DeleteFunctionSecretSlot(ctx context.Context, resourceG result, err = client.DeleteFunctionSecretSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteFunctionSecretSlot", resp, "Failure responding to request") + return } return @@ -5405,6 +5451,7 @@ func (client AppsClient) DeleteHostNameBinding(ctx context.Context, resourceGrou result, err = client.DeleteHostNameBindingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHostNameBinding", resp, "Failure responding to request") + return } return @@ -5491,6 +5538,7 @@ func (client AppsClient) DeleteHostNameBindingSlot(ctx context.Context, resource result, err = client.DeleteHostNameBindingSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHostNameBindingSlot", resp, "Failure responding to request") + return } return @@ -5577,6 +5625,7 @@ func (client AppsClient) DeleteHostSecret(ctx context.Context, resourceGroupName result, err = client.DeleteHostSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHostSecret", resp, "Failure responding to request") + return } return @@ -5664,6 +5713,7 @@ func (client AppsClient) DeleteHostSecretSlot(ctx context.Context, resourceGroup result, err = client.DeleteHostSecretSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHostSecretSlot", resp, "Failure responding to request") + return } return @@ -5751,6 +5801,7 @@ func (client AppsClient) DeleteHybridConnection(ctx context.Context, resourceGro result, err = client.DeleteHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHybridConnection", resp, "Failure responding to request") + return } return @@ -5838,6 +5889,7 @@ func (client AppsClient) DeleteHybridConnectionSlot(ctx context.Context, resourc result, err = client.DeleteHybridConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHybridConnectionSlot", resp, "Failure responding to request") + return } return @@ -5925,6 +5977,7 @@ func (client AppsClient) DeleteInstanceFunctionSlot(ctx context.Context, resourc result, err = client.DeleteInstanceFunctionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteInstanceFunctionSlot", resp, "Failure responding to request") + return } return @@ -6013,6 +6066,7 @@ func (client AppsClient) DeleteInstanceProcess(ctx context.Context, resourceGrou result, err = client.DeleteInstanceProcessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteInstanceProcess", resp, "Failure responding to request") + return } return @@ -6103,6 +6157,7 @@ func (client AppsClient) DeleteInstanceProcessSlot(ctx context.Context, resource result, err = client.DeleteInstanceProcessSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteInstanceProcessSlot", resp, "Failure responding to request") + return } return @@ -6189,6 +6244,7 @@ func (client AppsClient) DeletePremierAddOn(ctx context.Context, resourceGroupNa result, err = client.DeletePremierAddOnResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeletePremierAddOn", resp, "Failure responding to request") + return } return @@ -6275,6 +6331,7 @@ func (client AppsClient) DeletePremierAddOnSlot(ctx context.Context, resourceGro result, err = client.DeletePremierAddOnSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeletePremierAddOnSlot", resp, "Failure responding to request") + return } return @@ -6445,6 +6502,7 @@ func (client AppsClient) DeleteProcess(ctx context.Context, resourceGroupName st result, err = client.DeleteProcessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteProcess", resp, "Failure responding to request") + return } return @@ -6532,6 +6590,7 @@ func (client AppsClient) DeleteProcessSlot(ctx context.Context, resourceGroupNam result, err = client.DeleteProcessSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteProcessSlot", resp, "Failure responding to request") + return } return @@ -6617,6 +6676,7 @@ func (client AppsClient) DeletePublicCertificate(ctx context.Context, resourceGr result, err = client.DeletePublicCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeletePublicCertificate", resp, "Failure responding to request") + return } return @@ -6703,6 +6763,7 @@ func (client AppsClient) DeletePublicCertificateSlot(ctx context.Context, resour result, err = client.DeletePublicCertificateSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeletePublicCertificateSlot", resp, "Failure responding to request") + return } return @@ -6788,6 +6849,7 @@ func (client AppsClient) DeleteRelayServiceConnection(ctx context.Context, resou result, err = client.DeleteRelayServiceConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteRelayServiceConnection", resp, "Failure responding to request") + return } return @@ -6874,6 +6936,7 @@ func (client AppsClient) DeleteRelayServiceConnectionSlot(ctx context.Context, r result, err = client.DeleteRelayServiceConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteRelayServiceConnectionSlot", resp, "Failure responding to request") + return } return @@ -6959,6 +7022,7 @@ func (client AppsClient) DeleteSiteExtension(ctx context.Context, resourceGroupN result, err = client.DeleteSiteExtensionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSiteExtension", resp, "Failure responding to request") + return } return @@ -7045,6 +7109,7 @@ func (client AppsClient) DeleteSiteExtensionSlot(ctx context.Context, resourceGr result, err = client.DeleteSiteExtensionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSiteExtensionSlot", resp, "Failure responding to request") + return } return @@ -7133,6 +7198,7 @@ func (client AppsClient) DeleteSlot(ctx context.Context, resourceGroupName strin result, err = client.DeleteSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSlot", resp, "Failure responding to request") + return } return @@ -7222,6 +7288,7 @@ func (client AppsClient) DeleteSourceControl(ctx context.Context, resourceGroupN result, err = client.DeleteSourceControlResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSourceControl", resp, "Failure responding to request") + return } return @@ -7306,6 +7373,7 @@ func (client AppsClient) DeleteSourceControlSlot(ctx context.Context, resourceGr result, err = client.DeleteSourceControlSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSourceControlSlot", resp, "Failure responding to request") + return } return @@ -7390,6 +7458,7 @@ func (client AppsClient) DeleteSwiftVirtualNetwork(ctx context.Context, resource result, err = client.DeleteSwiftVirtualNetworkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSwiftVirtualNetwork", resp, "Failure responding to request") + return } return @@ -7475,6 +7544,7 @@ func (client AppsClient) DeleteSwiftVirtualNetworkSlot(ctx context.Context, reso result, err = client.DeleteSwiftVirtualNetworkSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSwiftVirtualNetworkSlot", resp, "Failure responding to request") + return } return @@ -7559,6 +7629,7 @@ func (client AppsClient) DeleteTriggeredWebJob(ctx context.Context, resourceGrou result, err = client.DeleteTriggeredWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteTriggeredWebJob", resp, "Failure responding to request") + return } return @@ -7645,6 +7716,7 @@ func (client AppsClient) DeleteTriggeredWebJobSlot(ctx context.Context, resource result, err = client.DeleteTriggeredWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteTriggeredWebJobSlot", resp, "Failure responding to request") + return } return @@ -7731,6 +7803,7 @@ func (client AppsClient) DeleteVnetConnection(ctx context.Context, resourceGroup result, err = client.DeleteVnetConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteVnetConnection", resp, "Failure responding to request") + return } return @@ -7818,6 +7891,7 @@ func (client AppsClient) DeleteVnetConnectionSlot(ctx context.Context, resourceG result, err = client.DeleteVnetConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteVnetConnectionSlot", resp, "Failure responding to request") + return } return @@ -7909,6 +7983,7 @@ func (client AppsClient) DiscoverBackup(ctx context.Context, resourceGroupName s result, err = client.DiscoverBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DiscoverBackup", resp, "Failure responding to request") + return } return @@ -8003,6 +8078,7 @@ func (client AppsClient) DiscoverBackupSlot(ctx context.Context, resourceGroupNa result, err = client.DiscoverBackupSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DiscoverBackupSlot", resp, "Failure responding to request") + return } return @@ -8090,6 +8166,7 @@ func (client AppsClient) GenerateNewSitePublishingPassword(ctx context.Context, result, err = client.GenerateNewSitePublishingPasswordResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GenerateNewSitePublishingPassword", resp, "Failure responding to request") + return } return @@ -8175,6 +8252,7 @@ func (client AppsClient) GenerateNewSitePublishingPasswordSlot(ctx context.Conte result, err = client.GenerateNewSitePublishingPasswordSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GenerateNewSitePublishingPasswordSlot", resp, "Failure responding to request") + return } return @@ -8258,6 +8336,7 @@ func (client AppsClient) Get(ctx context.Context, resourceGroupName string, name result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Get", resp, "Failure responding to request") + return } return @@ -8342,6 +8421,7 @@ func (client AppsClient) GetAppSettingKeyVaultReference(ctx context.Context, res result, err = client.GetAppSettingKeyVaultReferenceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetAppSettingKeyVaultReference", resp, "Failure responding to request") + return } return @@ -8426,6 +8506,7 @@ func (client AppsClient) GetAppSettingsKeyVaultReferences(ctx context.Context, r result, err = client.GetAppSettingsKeyVaultReferencesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetAppSettingsKeyVaultReferences", resp, "Failure responding to request") + return } return @@ -8509,6 +8590,7 @@ func (client AppsClient) GetAuthSettings(ctx context.Context, resourceGroupName result, err = client.GetAuthSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetAuthSettings", resp, "Failure responding to request") + return } return @@ -8594,6 +8676,7 @@ func (client AppsClient) GetAuthSettingsSlot(ctx context.Context, resourceGroupN result, err = client.GetAuthSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetAuthSettingsSlot", resp, "Failure responding to request") + return } return @@ -8678,6 +8761,7 @@ func (client AppsClient) GetBackupConfiguration(ctx context.Context, resourceGro result, err = client.GetBackupConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetBackupConfiguration", resp, "Failure responding to request") + return } return @@ -8763,6 +8847,7 @@ func (client AppsClient) GetBackupConfigurationSlot(ctx context.Context, resourc result, err = client.GetBackupConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetBackupConfigurationSlot", resp, "Failure responding to request") + return } return @@ -8848,6 +8933,7 @@ func (client AppsClient) GetBackupStatus(ctx context.Context, resourceGroupName result, err = client.GetBackupStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetBackupStatus", resp, "Failure responding to request") + return } return @@ -8935,6 +9021,7 @@ func (client AppsClient) GetBackupStatusSlot(ctx context.Context, resourceGroupN result, err = client.GetBackupStatusSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetBackupStatusSlot", resp, "Failure responding to request") + return } return @@ -9021,6 +9108,7 @@ func (client AppsClient) GetBasicPublishingCredentialsPolicies(ctx context.Conte result, err = client.GetBasicPublishingCredentialsPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetBasicPublishingCredentialsPolicies", resp, "Failure responding to request") + return } return @@ -9105,6 +9193,7 @@ func (client AppsClient) GetConfiguration(ctx context.Context, resourceGroupName result, err = client.GetConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetConfiguration", resp, "Failure responding to request") + return } return @@ -9191,6 +9280,7 @@ func (client AppsClient) GetConfigurationSlot(ctx context.Context, resourceGroup result, err = client.GetConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetConfigurationSlot", resp, "Failure responding to request") + return } return @@ -9276,6 +9366,7 @@ func (client AppsClient) GetConfigurationSnapshot(ctx context.Context, resourceG result, err = client.GetConfigurationSnapshotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetConfigurationSnapshot", resp, "Failure responding to request") + return } return @@ -9364,6 +9455,7 @@ func (client AppsClient) GetConfigurationSnapshotSlot(ctx context.Context, resou result, err = client.GetConfigurationSnapshotSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetConfigurationSnapshotSlot", resp, "Failure responding to request") + return } return @@ -9449,6 +9541,7 @@ func (client AppsClient) GetContainerLogsZip(ctx context.Context, resourceGroupN result, err = client.GetContainerLogsZipResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetContainerLogsZip", resp, "Failure responding to request") + return } return @@ -9532,6 +9625,7 @@ func (client AppsClient) GetContainerLogsZipSlot(ctx context.Context, resourceGr result, err = client.GetContainerLogsZipSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetContainerLogsZipSlot", resp, "Failure responding to request") + return } return @@ -9616,6 +9710,7 @@ func (client AppsClient) GetContinuousWebJob(ctx context.Context, resourceGroupN result, err = client.GetContinuousWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetContinuousWebJob", resp, "Failure responding to request") + return } return @@ -9703,6 +9798,7 @@ func (client AppsClient) GetContinuousWebJobSlot(ctx context.Context, resourceGr result, err = client.GetContinuousWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetContinuousWebJobSlot", resp, "Failure responding to request") + return } return @@ -9789,6 +9885,7 @@ func (client AppsClient) GetDeployment(ctx context.Context, resourceGroupName st result, err = client.GetDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetDeployment", resp, "Failure responding to request") + return } return @@ -9876,6 +9973,7 @@ func (client AppsClient) GetDeploymentSlot(ctx context.Context, resourceGroupNam result, err = client.GetDeploymentSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetDeploymentSlot", resp, "Failure responding to request") + return } return @@ -9961,6 +10059,7 @@ func (client AppsClient) GetDiagnosticLogsConfiguration(ctx context.Context, res result, err = client.GetDiagnosticLogsConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetDiagnosticLogsConfiguration", resp, "Failure responding to request") + return } return @@ -10046,6 +10145,7 @@ func (client AppsClient) GetDiagnosticLogsConfigurationSlot(ctx context.Context, result, err = client.GetDiagnosticLogsConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetDiagnosticLogsConfigurationSlot", resp, "Failure responding to request") + return } return @@ -10131,6 +10231,7 @@ func (client AppsClient) GetDomainOwnershipIdentifier(ctx context.Context, resou result, err = client.GetDomainOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetDomainOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -10218,6 +10319,7 @@ func (client AppsClient) GetDomainOwnershipIdentifierSlot(ctx context.Context, r result, err = client.GetDomainOwnershipIdentifierSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetDomainOwnershipIdentifierSlot", resp, "Failure responding to request") + return } return @@ -10303,6 +10405,7 @@ func (client AppsClient) GetFtpAllowed(ctx context.Context, resourceGroupName st result, err = client.GetFtpAllowedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetFtpAllowed", resp, "Failure responding to request") + return } return @@ -10387,6 +10490,7 @@ func (client AppsClient) GetFunction(ctx context.Context, resourceGroupName stri result, err = client.GetFunctionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetFunction", resp, "Failure responding to request") + return } return @@ -10471,6 +10575,7 @@ func (client AppsClient) GetFunctionsAdminToken(ctx context.Context, resourceGro result, err = client.GetFunctionsAdminTokenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetFunctionsAdminToken", resp, "Failure responding to request") + return } return @@ -10555,6 +10660,7 @@ func (client AppsClient) GetFunctionsAdminTokenSlot(ctx context.Context, resourc result, err = client.GetFunctionsAdminTokenSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetFunctionsAdminTokenSlot", resp, "Failure responding to request") + return } return @@ -10640,6 +10746,7 @@ func (client AppsClient) GetHostNameBinding(ctx context.Context, resourceGroupNa result, err = client.GetHostNameBindingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetHostNameBinding", resp, "Failure responding to request") + return } return @@ -10727,6 +10834,7 @@ func (client AppsClient) GetHostNameBindingSlot(ctx context.Context, resourceGro result, err = client.GetHostNameBindingSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetHostNameBindingSlot", resp, "Failure responding to request") + return } return @@ -10814,6 +10922,7 @@ func (client AppsClient) GetHybridConnection(ctx context.Context, resourceGroupN result, err = client.GetHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetHybridConnection", resp, "Failure responding to request") + return } return @@ -10902,6 +11011,7 @@ func (client AppsClient) GetHybridConnectionSlot(ctx context.Context, resourceGr result, err = client.GetHybridConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetHybridConnectionSlot", resp, "Failure responding to request") + return } return @@ -10990,6 +11100,7 @@ func (client AppsClient) GetInstanceFunctionSlot(ctx context.Context, resourceGr result, err = client.GetInstanceFunctionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceFunctionSlot", resp, "Failure responding to request") + return } return @@ -11075,6 +11186,7 @@ func (client AppsClient) GetInstanceInfo(ctx context.Context, resourceGroupName result, err = client.GetInstanceInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceInfo", resp, "Failure responding to request") + return } return @@ -11160,6 +11272,7 @@ func (client AppsClient) GetInstanceInfoSlot(ctx context.Context, resourceGroupN result, err = client.GetInstanceInfoSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceInfoSlot", resp, "Failure responding to request") + return } return @@ -11246,6 +11359,7 @@ func (client AppsClient) GetInstanceMSDeployLog(ctx context.Context, resourceGro result, err = client.GetInstanceMSDeployLogResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceMSDeployLog", resp, "Failure responding to request") + return } return @@ -11332,6 +11446,7 @@ func (client AppsClient) GetInstanceMSDeployLogSlot(ctx context.Context, resourc result, err = client.GetInstanceMSDeployLogSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceMSDeployLogSlot", resp, "Failure responding to request") + return } return @@ -11418,6 +11533,7 @@ func (client AppsClient) GetInstanceMsDeployStatus(ctx context.Context, resource result, err = client.GetInstanceMsDeployStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceMsDeployStatus", resp, "Failure responding to request") + return } return @@ -11504,6 +11620,7 @@ func (client AppsClient) GetInstanceMsDeployStatusSlot(ctx context.Context, reso result, err = client.GetInstanceMsDeployStatusSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceMsDeployStatusSlot", resp, "Failure responding to request") + return } return @@ -11593,6 +11710,7 @@ func (client AppsClient) GetInstanceProcess(ctx context.Context, resourceGroupNa result, err = client.GetInstanceProcessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcess", resp, "Failure responding to request") + return } return @@ -11682,6 +11800,7 @@ func (client AppsClient) GetInstanceProcessDump(ctx context.Context, resourceGro result, err = client.GetInstanceProcessDumpResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessDump", resp, "Failure responding to request") + return } return @@ -11772,6 +11891,7 @@ func (client AppsClient) GetInstanceProcessDumpSlot(ctx context.Context, resourc result, err = client.GetInstanceProcessDumpSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessDumpSlot", resp, "Failure responding to request") + return } return @@ -11862,6 +11982,7 @@ func (client AppsClient) GetInstanceProcessModule(ctx context.Context, resourceG result, err = client.GetInstanceProcessModuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessModule", resp, "Failure responding to request") + return } return @@ -11955,6 +12076,7 @@ func (client AppsClient) GetInstanceProcessModuleSlot(ctx context.Context, resou result, err = client.GetInstanceProcessModuleSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessModuleSlot", resp, "Failure responding to request") + return } return @@ -12048,6 +12170,7 @@ func (client AppsClient) GetInstanceProcessSlot(ctx context.Context, resourceGro result, err = client.GetInstanceProcessSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessSlot", resp, "Failure responding to request") + return } return @@ -12135,6 +12258,7 @@ func (client AppsClient) GetMigrateMySQLStatus(ctx context.Context, resourceGrou result, err = client.GetMigrateMySQLStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetMigrateMySQLStatus", resp, "Failure responding to request") + return } return @@ -12220,6 +12344,7 @@ func (client AppsClient) GetMigrateMySQLStatusSlot(ctx context.Context, resource result, err = client.GetMigrateMySQLStatusSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetMigrateMySQLStatusSlot", resp, "Failure responding to request") + return } return @@ -12304,6 +12429,7 @@ func (client AppsClient) GetMSDeployLog(ctx context.Context, resourceGroupName s result, err = client.GetMSDeployLogResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetMSDeployLog", resp, "Failure responding to request") + return } return @@ -12388,6 +12514,7 @@ func (client AppsClient) GetMSDeployLogSlot(ctx context.Context, resourceGroupNa result, err = client.GetMSDeployLogSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetMSDeployLogSlot", resp, "Failure responding to request") + return } return @@ -12472,6 +12599,7 @@ func (client AppsClient) GetMSDeployStatus(ctx context.Context, resourceGroupNam result, err = client.GetMSDeployStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetMSDeployStatus", resp, "Failure responding to request") + return } return @@ -12556,6 +12684,7 @@ func (client AppsClient) GetMSDeployStatusSlot(ctx context.Context, resourceGrou result, err = client.GetMSDeployStatusSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetMSDeployStatusSlot", resp, "Failure responding to request") + return } return @@ -12642,6 +12771,7 @@ func (client AppsClient) GetNetworkTraceOperation(ctx context.Context, resourceG result, err = client.GetNetworkTraceOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetNetworkTraceOperation", resp, "Failure responding to request") + return } return @@ -12730,6 +12860,7 @@ func (client AppsClient) GetNetworkTraceOperationSlot(ctx context.Context, resou result, err = client.GetNetworkTraceOperationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetNetworkTraceOperationSlot", resp, "Failure responding to request") + return } return @@ -12819,6 +12950,7 @@ func (client AppsClient) GetNetworkTraceOperationSlotV2(ctx context.Context, res result, err = client.GetNetworkTraceOperationSlotV2Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetNetworkTraceOperationSlotV2", resp, "Failure responding to request") + return } return @@ -12906,6 +13038,7 @@ func (client AppsClient) GetNetworkTraceOperationV2(ctx context.Context, resourc result, err = client.GetNetworkTraceOperationV2Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetNetworkTraceOperationV2", resp, "Failure responding to request") + return } return @@ -12992,6 +13125,7 @@ func (client AppsClient) GetNetworkTraces(ctx context.Context, resourceGroupName result, err = client.GetNetworkTracesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetNetworkTraces", resp, "Failure responding to request") + return } return @@ -13080,6 +13214,7 @@ func (client AppsClient) GetNetworkTracesSlot(ctx context.Context, resourceGroup result, err = client.GetNetworkTracesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetNetworkTracesSlot", resp, "Failure responding to request") + return } return @@ -13169,6 +13304,7 @@ func (client AppsClient) GetNetworkTracesSlotV2(ctx context.Context, resourceGro result, err = client.GetNetworkTracesSlotV2Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetNetworkTracesSlotV2", resp, "Failure responding to request") + return } return @@ -13256,6 +13392,7 @@ func (client AppsClient) GetNetworkTracesV2(ctx context.Context, resourceGroupNa result, err = client.GetNetworkTracesV2Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetNetworkTracesV2", resp, "Failure responding to request") + return } return @@ -13341,6 +13478,7 @@ func (client AppsClient) GetPremierAddOn(ctx context.Context, resourceGroupName result, err = client.GetPremierAddOnResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetPremierAddOn", resp, "Failure responding to request") + return } return @@ -13428,6 +13566,7 @@ func (client AppsClient) GetPremierAddOnSlot(ctx context.Context, resourceGroupN result, err = client.GetPremierAddOnSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetPremierAddOnSlot", resp, "Failure responding to request") + return } return @@ -13514,6 +13653,7 @@ func (client AppsClient) GetPrivateAccess(ctx context.Context, resourceGroupName result, err = client.GetPrivateAccessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetPrivateAccess", resp, "Failure responding to request") + return } return @@ -13599,6 +13739,7 @@ func (client AppsClient) GetPrivateAccessSlot(ctx context.Context, resourceGroup result, err = client.GetPrivateAccessSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetPrivateAccessSlot", resp, "Failure responding to request") + return } return @@ -13683,6 +13824,7 @@ func (client AppsClient) GetPrivateEndpointConnection(ctx context.Context, resou result, err = client.GetPrivateEndpointConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetPrivateEndpointConnection", resp, "Failure responding to request") + return } return @@ -13767,6 +13909,7 @@ func (client AppsClient) GetPrivateLinkResources(ctx context.Context, resourceGr result, err = client.GetPrivateLinkResourcesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetPrivateLinkResources", resp, "Failure responding to request") + return } return @@ -13851,6 +13994,7 @@ func (client AppsClient) GetProcess(ctx context.Context, resourceGroupName strin result, err = client.GetProcessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcess", resp, "Failure responding to request") + return } return @@ -13937,6 +14081,7 @@ func (client AppsClient) GetProcessDump(ctx context.Context, resourceGroupName s result, err = client.GetProcessDumpResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessDump", resp, "Failure responding to request") + return } return @@ -14024,6 +14169,7 @@ func (client AppsClient) GetProcessDumpSlot(ctx context.Context, resourceGroupNa result, err = client.GetProcessDumpSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessDumpSlot", resp, "Failure responding to request") + return } return @@ -14110,6 +14256,7 @@ func (client AppsClient) GetProcessModule(ctx context.Context, resourceGroupName result, err = client.GetProcessModuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessModule", resp, "Failure responding to request") + return } return @@ -14200,6 +14347,7 @@ func (client AppsClient) GetProcessModuleSlot(ctx context.Context, resourceGroup result, err = client.GetProcessModuleSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessModuleSlot", resp, "Failure responding to request") + return } return @@ -14289,6 +14437,7 @@ func (client AppsClient) GetProcessSlot(ctx context.Context, resourceGroupName s result, err = client.GetProcessSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessSlot", resp, "Failure responding to request") + return } return @@ -14375,6 +14524,7 @@ func (client AppsClient) GetPublicCertificate(ctx context.Context, resourceGroup result, err = client.GetPublicCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetPublicCertificate", resp, "Failure responding to request") + return } return @@ -14463,6 +14613,7 @@ func (client AppsClient) GetPublicCertificateSlot(ctx context.Context, resourceG result, err = client.GetPublicCertificateSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetPublicCertificateSlot", resp, "Failure responding to request") + return } return @@ -14549,6 +14700,7 @@ func (client AppsClient) GetRelayServiceConnection(ctx context.Context, resource result, err = client.GetRelayServiceConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetRelayServiceConnection", resp, "Failure responding to request") + return } return @@ -14636,6 +14788,7 @@ func (client AppsClient) GetRelayServiceConnectionSlot(ctx context.Context, reso result, err = client.GetRelayServiceConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetRelayServiceConnectionSlot", resp, "Failure responding to request") + return } return @@ -14721,6 +14874,7 @@ func (client AppsClient) GetScmAllowed(ctx context.Context, resourceGroupName st result, err = client.GetScmAllowedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetScmAllowed", resp, "Failure responding to request") + return } return @@ -14805,6 +14959,7 @@ func (client AppsClient) GetSiteExtension(ctx context.Context, resourceGroupName result, err = client.GetSiteExtensionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSiteExtension", resp, "Failure responding to request") + return } return @@ -14891,6 +15046,7 @@ func (client AppsClient) GetSiteExtensionSlot(ctx context.Context, resourceGroup result, err = client.GetSiteExtensionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSiteExtensionSlot", resp, "Failure responding to request") + return } return @@ -14976,6 +15132,7 @@ func (client AppsClient) GetSitePhpErrorLogFlag(ctx context.Context, resourceGro result, err = client.GetSitePhpErrorLogFlagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSitePhpErrorLogFlag", resp, "Failure responding to request") + return } return @@ -15060,6 +15217,7 @@ func (client AppsClient) GetSitePhpErrorLogFlagSlot(ctx context.Context, resourc result, err = client.GetSitePhpErrorLogFlagSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSitePhpErrorLogFlagSlot", resp, "Failure responding to request") + return } return @@ -15145,6 +15303,7 @@ func (client AppsClient) GetSlot(ctx context.Context, resourceGroupName string, result, err = client.GetSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSlot", resp, "Failure responding to request") + return } return @@ -15229,6 +15388,7 @@ func (client AppsClient) GetSourceControl(ctx context.Context, resourceGroupName result, err = client.GetSourceControlResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSourceControl", resp, "Failure responding to request") + return } return @@ -15314,6 +15474,7 @@ func (client AppsClient) GetSourceControlSlot(ctx context.Context, resourceGroup result, err = client.GetSourceControlSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSourceControlSlot", resp, "Failure responding to request") + return } return @@ -15398,6 +15559,7 @@ func (client AppsClient) GetSwiftVirtualNetworkConnection(ctx context.Context, r result, err = client.GetSwiftVirtualNetworkConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSwiftVirtualNetworkConnection", resp, "Failure responding to request") + return } return @@ -15483,6 +15645,7 @@ func (client AppsClient) GetSwiftVirtualNetworkConnectionSlot(ctx context.Contex result, err = client.GetSwiftVirtualNetworkConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSwiftVirtualNetworkConnectionSlot", resp, "Failure responding to request") + return } return @@ -15568,6 +15731,7 @@ func (client AppsClient) GetTriggeredWebJob(ctx context.Context, resourceGroupNa result, err = client.GetTriggeredWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJob", resp, "Failure responding to request") + return } return @@ -15655,6 +15819,7 @@ func (client AppsClient) GetTriggeredWebJobHistory(ctx context.Context, resource result, err = client.GetTriggeredWebJobHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJobHistory", resp, "Failure responding to request") + return } return @@ -15744,6 +15909,7 @@ func (client AppsClient) GetTriggeredWebJobHistorySlot(ctx context.Context, reso result, err = client.GetTriggeredWebJobHistorySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJobHistorySlot", resp, "Failure responding to request") + return } return @@ -15832,6 +15998,7 @@ func (client AppsClient) GetTriggeredWebJobSlot(ctx context.Context, resourceGro result, err = client.GetTriggeredWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJobSlot", resp, "Failure responding to request") + return } return @@ -15918,6 +16085,7 @@ func (client AppsClient) GetVnetConnection(ctx context.Context, resourceGroupNam result, err = client.GetVnetConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetVnetConnection", resp, "Failure responding to request") + return } return @@ -16004,6 +16172,7 @@ func (client AppsClient) GetVnetConnectionGateway(ctx context.Context, resourceG result, err = client.GetVnetConnectionGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetVnetConnectionGateway", resp, "Failure responding to request") + return } return @@ -16093,6 +16262,7 @@ func (client AppsClient) GetVnetConnectionGatewaySlot(ctx context.Context, resou result, err = client.GetVnetConnectionGatewaySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetVnetConnectionGatewaySlot", resp, "Failure responding to request") + return } return @@ -16182,6 +16352,7 @@ func (client AppsClient) GetVnetConnectionSlot(ctx context.Context, resourceGrou result, err = client.GetVnetConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetVnetConnectionSlot", resp, "Failure responding to request") + return } return @@ -16268,6 +16439,7 @@ func (client AppsClient) GetWebJob(ctx context.Context, resourceGroupName string result, err = client.GetWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetWebJob", resp, "Failure responding to request") + return } return @@ -16355,6 +16527,7 @@ func (client AppsClient) GetWebJobSlot(ctx context.Context, resourceGroupName st result, err = client.GetWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetWebJobSlot", resp, "Failure responding to request") + return } return @@ -16440,6 +16613,7 @@ func (client AppsClient) GetWebSiteContainerLogs(ctx context.Context, resourceGr result, err = client.GetWebSiteContainerLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetWebSiteContainerLogs", resp, "Failure responding to request") + return } return @@ -16523,6 +16697,7 @@ func (client AppsClient) GetWebSiteContainerLogsSlot(ctx context.Context, resour result, err = client.GetWebSiteContainerLogsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetWebSiteContainerLogsSlot", resp, "Failure responding to request") + return } return @@ -16778,6 +16953,7 @@ func (client AppsClient) IsCloneable(ctx context.Context, resourceGroupName stri result, err = client.IsCloneableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "IsCloneable", resp, "Failure responding to request") + return } return @@ -16862,6 +17038,7 @@ func (client AppsClient) IsCloneableSlot(ctx context.Context, resourceGroupName result, err = client.IsCloneableSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "IsCloneableSlot", resp, "Failure responding to request") + return } return @@ -16936,6 +17113,7 @@ func (client AppsClient) List(ctx context.Context) (result AppCollectionPage, er result.ac, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "List", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -16998,6 +17176,7 @@ func (client AppsClient) listNextResults(ctx context.Context, lastResults AppCol result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -17057,6 +17236,7 @@ func (client AppsClient) ListApplicationSettings(ctx context.Context, resourceGr result, err = client.ListApplicationSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListApplicationSettings", resp, "Failure responding to request") + return } return @@ -17142,6 +17322,7 @@ func (client AppsClient) ListApplicationSettingsSlot(ctx context.Context, resour result, err = client.ListApplicationSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListApplicationSettingsSlot", resp, "Failure responding to request") + return } return @@ -17226,6 +17407,7 @@ func (client AppsClient) ListAzureStorageAccounts(ctx context.Context, resourceG result, err = client.ListAzureStorageAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListAzureStorageAccounts", resp, "Failure responding to request") + return } return @@ -17311,6 +17493,7 @@ func (client AppsClient) ListAzureStorageAccountsSlot(ctx context.Context, resou result, err = client.ListAzureStorageAccountsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListAzureStorageAccountsSlot", resp, "Failure responding to request") + return } return @@ -17396,6 +17579,7 @@ func (client AppsClient) ListBackups(ctx context.Context, resourceGroupName stri result.bic, err = client.ListBackupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListBackups", resp, "Failure responding to request") + return } if result.bic.hasNextLink() && result.bic.IsEmpty() { err = result.NextWithContext(ctx) @@ -17460,6 +17644,7 @@ func (client AppsClient) listBackupsNextResults(ctx context.Context, lastResults result, err = client.ListBackupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listBackupsNextResults", resp, "Failure responding to next results request") + return } return } @@ -17522,6 +17707,7 @@ func (client AppsClient) ListBackupsSlot(ctx context.Context, resourceGroupName result.bic, err = client.ListBackupsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListBackupsSlot", resp, "Failure responding to request") + return } if result.bic.hasNextLink() && result.bic.IsEmpty() { err = result.NextWithContext(ctx) @@ -17587,6 +17773,7 @@ func (client AppsClient) listBackupsSlotNextResults(ctx context.Context, lastRes result, err = client.ListBackupsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listBackupsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -17659,6 +17846,7 @@ func (client AppsClient) ListBackupStatusSecrets(ctx context.Context, resourceGr result, err = client.ListBackupStatusSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListBackupStatusSecrets", resp, "Failure responding to request") + return } return @@ -17759,6 +17947,7 @@ func (client AppsClient) ListBackupStatusSecretsSlot(ctx context.Context, resour result, err = client.ListBackupStatusSecretsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListBackupStatusSecretsSlot", resp, "Failure responding to request") + return } return @@ -17848,6 +18037,7 @@ func (client AppsClient) ListByResourceGroup(ctx context.Context, resourceGroupN result.ac, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -17914,6 +18104,7 @@ func (client AppsClient) listByResourceGroupNextResults(ctx context.Context, las result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -17974,6 +18165,7 @@ func (client AppsClient) ListConfigurations(ctx context.Context, resourceGroupNa result.scrc, err = client.ListConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConfigurations", resp, "Failure responding to request") + return } if result.scrc.hasNextLink() && result.scrc.IsEmpty() { err = result.NextWithContext(ctx) @@ -18038,6 +18230,7 @@ func (client AppsClient) listConfigurationsNextResults(ctx context.Context, last result, err = client.ListConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -18099,6 +18292,7 @@ func (client AppsClient) ListConfigurationSnapshotInfo(ctx context.Context, reso result.scsic, err = client.ListConfigurationSnapshotInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConfigurationSnapshotInfo", resp, "Failure responding to request") + return } if result.scsic.hasNextLink() && result.scsic.IsEmpty() { err = result.NextWithContext(ctx) @@ -18163,6 +18357,7 @@ func (client AppsClient) listConfigurationSnapshotInfoNextResults(ctx context.Co result, err = client.ListConfigurationSnapshotInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listConfigurationSnapshotInfoNextResults", resp, "Failure responding to next results request") + return } return } @@ -18226,6 +18421,7 @@ func (client AppsClient) ListConfigurationSnapshotInfoSlot(ctx context.Context, result.scsic, err = client.ListConfigurationSnapshotInfoSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConfigurationSnapshotInfoSlot", resp, "Failure responding to request") + return } if result.scsic.hasNextLink() && result.scsic.IsEmpty() { err = result.NextWithContext(ctx) @@ -18291,6 +18487,7 @@ func (client AppsClient) listConfigurationSnapshotInfoSlotNextResults(ctx contex result, err = client.ListConfigurationSnapshotInfoSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listConfigurationSnapshotInfoSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -18353,6 +18550,7 @@ func (client AppsClient) ListConfigurationsSlot(ctx context.Context, resourceGro result.scrc, err = client.ListConfigurationsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConfigurationsSlot", resp, "Failure responding to request") + return } if result.scrc.hasNextLink() && result.scrc.IsEmpty() { err = result.NextWithContext(ctx) @@ -18418,6 +18616,7 @@ func (client AppsClient) listConfigurationsSlotNextResults(ctx context.Context, result, err = client.ListConfigurationsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listConfigurationsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -18477,6 +18676,7 @@ func (client AppsClient) ListConnectionStrings(ctx context.Context, resourceGrou result, err = client.ListConnectionStringsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConnectionStrings", resp, "Failure responding to request") + return } return @@ -18562,6 +18762,7 @@ func (client AppsClient) ListConnectionStringsSlot(ctx context.Context, resource result, err = client.ListConnectionStringsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConnectionStringsSlot", resp, "Failure responding to request") + return } return @@ -18647,6 +18848,7 @@ func (client AppsClient) ListContinuousWebJobs(ctx context.Context, resourceGrou result.cwjc, err = client.ListContinuousWebJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListContinuousWebJobs", resp, "Failure responding to request") + return } if result.cwjc.hasNextLink() && result.cwjc.IsEmpty() { err = result.NextWithContext(ctx) @@ -18711,6 +18913,7 @@ func (client AppsClient) listContinuousWebJobsNextResults(ctx context.Context, l result, err = client.ListContinuousWebJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listContinuousWebJobsNextResults", resp, "Failure responding to next results request") + return } return } @@ -18773,6 +18976,7 @@ func (client AppsClient) ListContinuousWebJobsSlot(ctx context.Context, resource result.cwjc, err = client.ListContinuousWebJobsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListContinuousWebJobsSlot", resp, "Failure responding to request") + return } if result.cwjc.hasNextLink() && result.cwjc.IsEmpty() { err = result.NextWithContext(ctx) @@ -18838,6 +19042,7 @@ func (client AppsClient) listContinuousWebJobsSlotNextResults(ctx context.Contex result, err = client.ListContinuousWebJobsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listContinuousWebJobsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -18899,6 +19104,7 @@ func (client AppsClient) ListDeploymentLog(ctx context.Context, resourceGroupNam result, err = client.ListDeploymentLogResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDeploymentLog", resp, "Failure responding to request") + return } return @@ -18987,6 +19193,7 @@ func (client AppsClient) ListDeploymentLogSlot(ctx context.Context, resourceGrou result, err = client.ListDeploymentLogSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDeploymentLogSlot", resp, "Failure responding to request") + return } return @@ -19073,6 +19280,7 @@ func (client AppsClient) ListDeployments(ctx context.Context, resourceGroupName result.dc, err = client.ListDeploymentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDeployments", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -19137,6 +19345,7 @@ func (client AppsClient) listDeploymentsNextResults(ctx context.Context, lastRes result, err = client.ListDeploymentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listDeploymentsNextResults", resp, "Failure responding to next results request") + return } return } @@ -19199,6 +19408,7 @@ func (client AppsClient) ListDeploymentsSlot(ctx context.Context, resourceGroupN result.dc, err = client.ListDeploymentsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDeploymentsSlot", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -19264,6 +19474,7 @@ func (client AppsClient) listDeploymentsSlotNextResults(ctx context.Context, las result, err = client.ListDeploymentsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listDeploymentsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -19324,6 +19535,7 @@ func (client AppsClient) ListDomainOwnershipIdentifiers(ctx context.Context, res result.ic, err = client.ListDomainOwnershipIdentifiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDomainOwnershipIdentifiers", resp, "Failure responding to request") + return } if result.ic.hasNextLink() && result.ic.IsEmpty() { err = result.NextWithContext(ctx) @@ -19388,6 +19600,7 @@ func (client AppsClient) listDomainOwnershipIdentifiersNextResults(ctx context.C result, err = client.ListDomainOwnershipIdentifiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listDomainOwnershipIdentifiersNextResults", resp, "Failure responding to next results request") + return } return } @@ -19450,6 +19663,7 @@ func (client AppsClient) ListDomainOwnershipIdentifiersSlot(ctx context.Context, result.ic, err = client.ListDomainOwnershipIdentifiersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDomainOwnershipIdentifiersSlot", resp, "Failure responding to request") + return } if result.ic.hasNextLink() && result.ic.IsEmpty() { err = result.NextWithContext(ctx) @@ -19515,6 +19729,7 @@ func (client AppsClient) listDomainOwnershipIdentifiersSlotNextResults(ctx conte result, err = client.ListDomainOwnershipIdentifiersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listDomainOwnershipIdentifiersSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -19575,6 +19790,7 @@ func (client AppsClient) ListFunctionKeys(ctx context.Context, resourceGroupName result, err = client.ListFunctionKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListFunctionKeys", resp, "Failure responding to request") + return } return @@ -19661,6 +19877,7 @@ func (client AppsClient) ListFunctionKeysSlot(ctx context.Context, resourceGroup result, err = client.ListFunctionKeysSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListFunctionKeysSlot", resp, "Failure responding to request") + return } return @@ -19747,6 +19964,7 @@ func (client AppsClient) ListFunctions(ctx context.Context, resourceGroupName st result.fec, err = client.ListFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListFunctions", resp, "Failure responding to request") + return } if result.fec.hasNextLink() && result.fec.IsEmpty() { err = result.NextWithContext(ctx) @@ -19811,6 +20029,7 @@ func (client AppsClient) listFunctionsNextResults(ctx context.Context, lastResul result, err = client.ListFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listFunctionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -19871,6 +20090,7 @@ func (client AppsClient) ListFunctionSecrets(ctx context.Context, resourceGroupN result, err = client.ListFunctionSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListFunctionSecrets", resp, "Failure responding to request") + return } return @@ -19957,6 +20177,7 @@ func (client AppsClient) ListFunctionSecretsSlot(ctx context.Context, resourceGr result, err = client.ListFunctionSecretsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListFunctionSecretsSlot", resp, "Failure responding to request") + return } return @@ -20042,6 +20263,7 @@ func (client AppsClient) ListHostKeys(ctx context.Context, resourceGroupName str result, err = client.ListHostKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHostKeys", resp, "Failure responding to request") + return } return @@ -20126,6 +20348,7 @@ func (client AppsClient) ListHostKeysSlot(ctx context.Context, resourceGroupName result, err = client.ListHostKeysSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHostKeysSlot", resp, "Failure responding to request") + return } return @@ -20211,6 +20434,7 @@ func (client AppsClient) ListHostNameBindings(ctx context.Context, resourceGroup result.hnbc, err = client.ListHostNameBindingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHostNameBindings", resp, "Failure responding to request") + return } if result.hnbc.hasNextLink() && result.hnbc.IsEmpty() { err = result.NextWithContext(ctx) @@ -20275,6 +20499,7 @@ func (client AppsClient) listHostNameBindingsNextResults(ctx context.Context, la result, err = client.ListHostNameBindingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listHostNameBindingsNextResults", resp, "Failure responding to next results request") + return } return } @@ -20337,6 +20562,7 @@ func (client AppsClient) ListHostNameBindingsSlot(ctx context.Context, resourceG result.hnbc, err = client.ListHostNameBindingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHostNameBindingsSlot", resp, "Failure responding to request") + return } if result.hnbc.hasNextLink() && result.hnbc.IsEmpty() { err = result.NextWithContext(ctx) @@ -20402,6 +20628,7 @@ func (client AppsClient) listHostNameBindingsSlotNextResults(ctx context.Context result, err = client.ListHostNameBindingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listHostNameBindingsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -20461,6 +20688,7 @@ func (client AppsClient) ListHybridConnections(ctx context.Context, resourceGrou result, err = client.ListHybridConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHybridConnections", resp, "Failure responding to request") + return } return @@ -20545,6 +20773,7 @@ func (client AppsClient) ListHybridConnectionsSlot(ctx context.Context, resource result, err = client.ListHybridConnectionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHybridConnectionsSlot", resp, "Failure responding to request") + return } return @@ -20631,6 +20860,7 @@ func (client AppsClient) ListInstanceFunctionsSlot(ctx context.Context, resource result.fec, err = client.ListInstanceFunctionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceFunctionsSlot", resp, "Failure responding to request") + return } if result.fec.hasNextLink() && result.fec.IsEmpty() { err = result.NextWithContext(ctx) @@ -20696,6 +20926,7 @@ func (client AppsClient) listInstanceFunctionsSlotNextResults(ctx context.Contex result, err = client.ListInstanceFunctionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceFunctionsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -20756,6 +20987,7 @@ func (client AppsClient) ListInstanceIdentifiers(ctx context.Context, resourceGr result.aic, err = client.ListInstanceIdentifiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceIdentifiers", resp, "Failure responding to request") + return } if result.aic.hasNextLink() && result.aic.IsEmpty() { err = result.NextWithContext(ctx) @@ -20820,6 +21052,7 @@ func (client AppsClient) listInstanceIdentifiersNextResults(ctx context.Context, result, err = client.ListInstanceIdentifiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceIdentifiersNextResults", resp, "Failure responding to next results request") + return } return } @@ -20881,6 +21114,7 @@ func (client AppsClient) ListInstanceIdentifiersSlot(ctx context.Context, resour result.aic, err = client.ListInstanceIdentifiersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceIdentifiersSlot", resp, "Failure responding to request") + return } if result.aic.hasNextLink() && result.aic.IsEmpty() { err = result.NextWithContext(ctx) @@ -20946,6 +21180,7 @@ func (client AppsClient) listInstanceIdentifiersSlotNextResults(ctx context.Cont result, err = client.ListInstanceIdentifiersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceIdentifiersSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -21009,6 +21244,7 @@ func (client AppsClient) ListInstanceProcesses(ctx context.Context, resourceGrou result.pic, err = client.ListInstanceProcessesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcesses", resp, "Failure responding to request") + return } if result.pic.hasNextLink() && result.pic.IsEmpty() { err = result.NextWithContext(ctx) @@ -21074,6 +21310,7 @@ func (client AppsClient) listInstanceProcessesNextResults(ctx context.Context, l result, err = client.ListInstanceProcessesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceProcessesNextResults", resp, "Failure responding to next results request") + return } return } @@ -21139,6 +21376,7 @@ func (client AppsClient) ListInstanceProcessesSlot(ctx context.Context, resource result.pic, err = client.ListInstanceProcessesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcessesSlot", resp, "Failure responding to request") + return } if result.pic.hasNextLink() && result.pic.IsEmpty() { err = result.NextWithContext(ctx) @@ -21205,6 +21443,7 @@ func (client AppsClient) listInstanceProcessesSlotNextResults(ctx context.Contex result, err = client.ListInstanceProcessesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceProcessesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -21269,6 +21508,7 @@ func (client AppsClient) ListInstanceProcessModules(ctx context.Context, resourc result.pmic, err = client.ListInstanceProcessModulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcessModules", resp, "Failure responding to request") + return } if result.pmic.hasNextLink() && result.pmic.IsEmpty() { err = result.NextWithContext(ctx) @@ -21335,6 +21575,7 @@ func (client AppsClient) listInstanceProcessModulesNextResults(ctx context.Conte result, err = client.ListInstanceProcessModulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceProcessModulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -21401,6 +21642,7 @@ func (client AppsClient) ListInstanceProcessModulesSlot(ctx context.Context, res result.pmic, err = client.ListInstanceProcessModulesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcessModulesSlot", resp, "Failure responding to request") + return } if result.pmic.hasNextLink() && result.pmic.IsEmpty() { err = result.NextWithContext(ctx) @@ -21468,6 +21710,7 @@ func (client AppsClient) listInstanceProcessModulesSlotNextResults(ctx context.C result, err = client.ListInstanceProcessModulesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceProcessModulesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -21532,6 +21775,7 @@ func (client AppsClient) ListInstanceProcessThreads(ctx context.Context, resourc result.ptic, err = client.ListInstanceProcessThreadsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcessThreads", resp, "Failure responding to request") + return } if result.ptic.hasNextLink() && result.ptic.IsEmpty() { err = result.NextWithContext(ctx) @@ -21598,6 +21842,7 @@ func (client AppsClient) listInstanceProcessThreadsNextResults(ctx context.Conte result, err = client.ListInstanceProcessThreadsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceProcessThreadsNextResults", resp, "Failure responding to next results request") + return } return } @@ -21664,6 +21909,7 @@ func (client AppsClient) ListInstanceProcessThreadsSlot(ctx context.Context, res result.ptic, err = client.ListInstanceProcessThreadsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcessThreadsSlot", resp, "Failure responding to request") + return } if result.ptic.hasNextLink() && result.ptic.IsEmpty() { err = result.NextWithContext(ctx) @@ -21731,6 +21977,7 @@ func (client AppsClient) listInstanceProcessThreadsSlotNextResults(ctx context.C result, err = client.ListInstanceProcessThreadsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceProcessThreadsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -21790,6 +22037,7 @@ func (client AppsClient) ListMetadata(ctx context.Context, resourceGroupName str result, err = client.ListMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetadata", resp, "Failure responding to request") + return } return @@ -21875,6 +22123,7 @@ func (client AppsClient) ListMetadataSlot(ctx context.Context, resourceGroupName result, err = client.ListMetadataSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetadataSlot", resp, "Failure responding to request") + return } return @@ -21960,6 +22209,7 @@ func (client AppsClient) ListNetworkFeatures(ctx context.Context, resourceGroupN result, err = client.ListNetworkFeaturesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListNetworkFeatures", resp, "Failure responding to request") + return } return @@ -22048,6 +22298,7 @@ func (client AppsClient) ListNetworkFeaturesSlot(ctx context.Context, resourceGr result, err = client.ListNetworkFeaturesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListNetworkFeaturesSlot", resp, "Failure responding to request") + return } return @@ -22137,6 +22388,7 @@ func (client AppsClient) ListPerfMonCounters(ctx context.Context, resourceGroupN result.pmcc, err = client.ListPerfMonCountersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPerfMonCounters", resp, "Failure responding to request") + return } if result.pmcc.hasNextLink() && result.pmcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -22204,6 +22456,7 @@ func (client AppsClient) listPerfMonCountersNextResults(ctx context.Context, las result, err = client.ListPerfMonCountersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listPerfMonCountersNextResults", resp, "Failure responding to next results request") + return } return } @@ -22268,6 +22521,7 @@ func (client AppsClient) ListPerfMonCountersSlot(ctx context.Context, resourceGr result.pmcc, err = client.ListPerfMonCountersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPerfMonCountersSlot", resp, "Failure responding to request") + return } if result.pmcc.hasNextLink() && result.pmcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -22336,6 +22590,7 @@ func (client AppsClient) listPerfMonCountersSlotNextResults(ctx context.Context, result, err = client.ListPerfMonCountersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listPerfMonCountersSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -22395,6 +22650,7 @@ func (client AppsClient) ListPremierAddOns(ctx context.Context, resourceGroupNam result, err = client.ListPremierAddOnsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPremierAddOns", resp, "Failure responding to request") + return } return @@ -22480,6 +22736,7 @@ func (client AppsClient) ListPremierAddOnsSlot(ctx context.Context, resourceGrou result, err = client.ListPremierAddOnsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPremierAddOnsSlot", resp, "Failure responding to request") + return } return @@ -22566,6 +22823,7 @@ func (client AppsClient) ListProcesses(ctx context.Context, resourceGroupName st result.pic, err = client.ListProcessesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcesses", resp, "Failure responding to request") + return } if result.pic.hasNextLink() && result.pic.IsEmpty() { err = result.NextWithContext(ctx) @@ -22630,6 +22888,7 @@ func (client AppsClient) listProcessesNextResults(ctx context.Context, lastResul result, err = client.ListProcessesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listProcessesNextResults", resp, "Failure responding to next results request") + return } return } @@ -22693,6 +22952,7 @@ func (client AppsClient) ListProcessesSlot(ctx context.Context, resourceGroupNam result.pic, err = client.ListProcessesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcessesSlot", resp, "Failure responding to request") + return } if result.pic.hasNextLink() && result.pic.IsEmpty() { err = result.NextWithContext(ctx) @@ -22758,6 +23018,7 @@ func (client AppsClient) listProcessesSlotNextResults(ctx context.Context, lastR result, err = client.ListProcessesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listProcessesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -22820,6 +23081,7 @@ func (client AppsClient) ListProcessModules(ctx context.Context, resourceGroupNa result.pmic, err = client.ListProcessModulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcessModules", resp, "Failure responding to request") + return } if result.pmic.hasNextLink() && result.pmic.IsEmpty() { err = result.NextWithContext(ctx) @@ -22885,6 +23147,7 @@ func (client AppsClient) listProcessModulesNextResults(ctx context.Context, last result, err = client.ListProcessModulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listProcessModulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -22949,6 +23212,7 @@ func (client AppsClient) ListProcessModulesSlot(ctx context.Context, resourceGro result.pmic, err = client.ListProcessModulesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcessModulesSlot", resp, "Failure responding to request") + return } if result.pmic.hasNextLink() && result.pmic.IsEmpty() { err = result.NextWithContext(ctx) @@ -23015,6 +23279,7 @@ func (client AppsClient) listProcessModulesSlotNextResults(ctx context.Context, result, err = client.ListProcessModulesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listProcessModulesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -23077,6 +23342,7 @@ func (client AppsClient) ListProcessThreads(ctx context.Context, resourceGroupNa result.ptic, err = client.ListProcessThreadsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcessThreads", resp, "Failure responding to request") + return } if result.ptic.hasNextLink() && result.ptic.IsEmpty() { err = result.NextWithContext(ctx) @@ -23142,6 +23408,7 @@ func (client AppsClient) listProcessThreadsNextResults(ctx context.Context, last result, err = client.ListProcessThreadsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listProcessThreadsNextResults", resp, "Failure responding to next results request") + return } return } @@ -23206,6 +23473,7 @@ func (client AppsClient) ListProcessThreadsSlot(ctx context.Context, resourceGro result.ptic, err = client.ListProcessThreadsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcessThreadsSlot", resp, "Failure responding to request") + return } if result.ptic.hasNextLink() && result.ptic.IsEmpty() { err = result.NextWithContext(ctx) @@ -23272,6 +23540,7 @@ func (client AppsClient) listProcessThreadsSlotNextResults(ctx context.Context, result, err = client.ListProcessThreadsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listProcessThreadsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -23332,6 +23601,7 @@ func (client AppsClient) ListPublicCertificates(ctx context.Context, resourceGro result.pcc, err = client.ListPublicCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPublicCertificates", resp, "Failure responding to request") + return } if result.pcc.hasNextLink() && result.pcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -23396,6 +23666,7 @@ func (client AppsClient) listPublicCertificatesNextResults(ctx context.Context, result, err = client.ListPublicCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listPublicCertificatesNextResults", resp, "Failure responding to next results request") + return } return } @@ -23458,6 +23729,7 @@ func (client AppsClient) ListPublicCertificatesSlot(ctx context.Context, resourc result.pcc, err = client.ListPublicCertificatesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPublicCertificatesSlot", resp, "Failure responding to request") + return } if result.pcc.hasNextLink() && result.pcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -23523,6 +23795,7 @@ func (client AppsClient) listPublicCertificatesSlotNextResults(ctx context.Conte result, err = client.ListPublicCertificatesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listPublicCertificatesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -23754,6 +24027,7 @@ func (client AppsClient) ListPublishingProfileXMLWithSecrets(ctx context.Context result, err = client.ListPublishingProfileXMLWithSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPublishingProfileXMLWithSecrets", resp, "Failure responding to request") + return } return @@ -23843,6 +24117,7 @@ func (client AppsClient) ListPublishingProfileXMLWithSecretsSlot(ctx context.Con result, err = client.ListPublishingProfileXMLWithSecretsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPublishingProfileXMLWithSecretsSlot", resp, "Failure responding to request") + return } return @@ -23929,6 +24204,7 @@ func (client AppsClient) ListRelayServiceConnections(ctx context.Context, resour result, err = client.ListRelayServiceConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListRelayServiceConnections", resp, "Failure responding to request") + return } return @@ -24015,6 +24291,7 @@ func (client AppsClient) ListRelayServiceConnectionsSlot(ctx context.Context, re result, err = client.ListRelayServiceConnectionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListRelayServiceConnectionsSlot", resp, "Failure responding to request") + return } return @@ -24100,6 +24377,7 @@ func (client AppsClient) ListSiteBackups(ctx context.Context, resourceGroupName result.bic, err = client.ListSiteBackupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSiteBackups", resp, "Failure responding to request") + return } if result.bic.hasNextLink() && result.bic.IsEmpty() { err = result.NextWithContext(ctx) @@ -24164,6 +24442,7 @@ func (client AppsClient) listSiteBackupsNextResults(ctx context.Context, lastRes result, err = client.ListSiteBackupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSiteBackupsNextResults", resp, "Failure responding to next results request") + return } return } @@ -24226,6 +24505,7 @@ func (client AppsClient) ListSiteBackupsSlot(ctx context.Context, resourceGroupN result.bic, err = client.ListSiteBackupsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSiteBackupsSlot", resp, "Failure responding to request") + return } if result.bic.hasNextLink() && result.bic.IsEmpty() { err = result.NextWithContext(ctx) @@ -24291,6 +24571,7 @@ func (client AppsClient) listSiteBackupsSlotNextResults(ctx context.Context, las result, err = client.ListSiteBackupsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSiteBackupsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -24351,6 +24632,7 @@ func (client AppsClient) ListSiteExtensions(ctx context.Context, resourceGroupNa result.seic, err = client.ListSiteExtensionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSiteExtensions", resp, "Failure responding to request") + return } if result.seic.hasNextLink() && result.seic.IsEmpty() { err = result.NextWithContext(ctx) @@ -24415,6 +24697,7 @@ func (client AppsClient) listSiteExtensionsNextResults(ctx context.Context, last result, err = client.ListSiteExtensionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSiteExtensionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -24476,6 +24759,7 @@ func (client AppsClient) ListSiteExtensionsSlot(ctx context.Context, resourceGro result.seic, err = client.ListSiteExtensionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSiteExtensionsSlot", resp, "Failure responding to request") + return } if result.seic.hasNextLink() && result.seic.IsEmpty() { err = result.NextWithContext(ctx) @@ -24541,6 +24825,7 @@ func (client AppsClient) listSiteExtensionsSlotNextResults(ctx context.Context, result, err = client.ListSiteExtensionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSiteExtensionsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -24600,6 +24885,7 @@ func (client AppsClient) ListSitePushSettings(ctx context.Context, resourceGroup result, err = client.ListSitePushSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSitePushSettings", resp, "Failure responding to request") + return } return @@ -24684,6 +24970,7 @@ func (client AppsClient) ListSitePushSettingsSlot(ctx context.Context, resourceG result, err = client.ListSitePushSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSitePushSettingsSlot", resp, "Failure responding to request") + return } return @@ -24769,6 +25056,7 @@ func (client AppsClient) ListSlotConfigurationNames(ctx context.Context, resourc result, err = client.ListSlotConfigurationNamesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSlotConfigurationNames", resp, "Failure responding to request") + return } return @@ -24858,6 +25146,7 @@ func (client AppsClient) ListSlotDifferencesFromProduction(ctx context.Context, result.sdc, err = client.ListSlotDifferencesFromProductionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSlotDifferencesFromProduction", resp, "Failure responding to request") + return } if result.sdc.hasNextLink() && result.sdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -24924,6 +25213,7 @@ func (client AppsClient) listSlotDifferencesFromProductionNextResults(ctx contex result, err = client.ListSlotDifferencesFromProductionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSlotDifferencesFromProductionNextResults", resp, "Failure responding to next results request") + return } return } @@ -24989,6 +25279,7 @@ func (client AppsClient) ListSlotDifferencesSlot(ctx context.Context, resourceGr result.sdc, err = client.ListSlotDifferencesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSlotDifferencesSlot", resp, "Failure responding to request") + return } if result.sdc.hasNextLink() && result.sdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -25056,6 +25347,7 @@ func (client AppsClient) listSlotDifferencesSlotNextResults(ctx context.Context, result, err = client.ListSlotDifferencesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSlotDifferencesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -25116,6 +25408,7 @@ func (client AppsClient) ListSlots(ctx context.Context, resourceGroupName string result.ac, err = client.ListSlotsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSlots", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -25180,6 +25473,7 @@ func (client AppsClient) listSlotsNextResults(ctx context.Context, lastResults A result, err = client.ListSlotsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSlotsNextResults", resp, "Failure responding to next results request") + return } return } @@ -25240,6 +25534,7 @@ func (client AppsClient) ListSnapshots(ctx context.Context, resourceGroupName st result.sc, err = client.ListSnapshotsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSnapshots", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -25304,6 +25599,7 @@ func (client AppsClient) listSnapshotsNextResults(ctx context.Context, lastResul result, err = client.ListSnapshotsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSnapshotsNextResults", resp, "Failure responding to next results request") + return } return } @@ -25364,6 +25660,7 @@ func (client AppsClient) ListSnapshotsFromDRSecondary(ctx context.Context, resou result.sc, err = client.ListSnapshotsFromDRSecondaryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSnapshotsFromDRSecondary", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -25428,6 +25725,7 @@ func (client AppsClient) listSnapshotsFromDRSecondaryNextResults(ctx context.Con result, err = client.ListSnapshotsFromDRSecondaryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSnapshotsFromDRSecondaryNextResults", resp, "Failure responding to next results request") + return } return } @@ -25489,6 +25787,7 @@ func (client AppsClient) ListSnapshotsFromDRSecondarySlot(ctx context.Context, r result.sc, err = client.ListSnapshotsFromDRSecondarySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSnapshotsFromDRSecondarySlot", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -25554,6 +25853,7 @@ func (client AppsClient) listSnapshotsFromDRSecondarySlotNextResults(ctx context result, err = client.ListSnapshotsFromDRSecondarySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSnapshotsFromDRSecondarySlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -25615,6 +25915,7 @@ func (client AppsClient) ListSnapshotsSlot(ctx context.Context, resourceGroupNam result.sc, err = client.ListSnapshotsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSnapshotsSlot", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -25680,6 +25981,7 @@ func (client AppsClient) listSnapshotsSlotNextResults(ctx context.Context, lastR result, err = client.ListSnapshotsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSnapshotsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -25739,6 +26041,7 @@ func (client AppsClient) ListSyncFunctionTriggers(ctx context.Context, resourceG result, err = client.ListSyncFunctionTriggersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSyncFunctionTriggers", resp, "Failure responding to request") + return } return @@ -25823,6 +26126,7 @@ func (client AppsClient) ListSyncFunctionTriggersSlot(ctx context.Context, resou result, err = client.ListSyncFunctionTriggersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSyncFunctionTriggersSlot", resp, "Failure responding to request") + return } return @@ -25907,6 +26211,7 @@ func (client AppsClient) ListSyncStatus(ctx context.Context, resourceGroupName s result, err = client.ListSyncStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSyncStatus", resp, "Failure responding to request") + return } return @@ -25990,6 +26295,7 @@ func (client AppsClient) ListSyncStatusSlot(ctx context.Context, resourceGroupNa result, err = client.ListSyncStatusSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSyncStatusSlot", resp, "Failure responding to request") + return } return @@ -26075,6 +26381,7 @@ func (client AppsClient) ListTriggeredWebJobHistory(ctx context.Context, resourc result.tjhc, err = client.ListTriggeredWebJobHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListTriggeredWebJobHistory", resp, "Failure responding to request") + return } if result.tjhc.hasNextLink() && result.tjhc.IsEmpty() { err = result.NextWithContext(ctx) @@ -26140,6 +26447,7 @@ func (client AppsClient) listTriggeredWebJobHistoryNextResults(ctx context.Conte result, err = client.ListTriggeredWebJobHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listTriggeredWebJobHistoryNextResults", resp, "Failure responding to next results request") + return } return } @@ -26202,6 +26510,7 @@ func (client AppsClient) ListTriggeredWebJobHistorySlot(ctx context.Context, res result.tjhc, err = client.ListTriggeredWebJobHistorySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListTriggeredWebJobHistorySlot", resp, "Failure responding to request") + return } if result.tjhc.hasNextLink() && result.tjhc.IsEmpty() { err = result.NextWithContext(ctx) @@ -26268,6 +26577,7 @@ func (client AppsClient) listTriggeredWebJobHistorySlotNextResults(ctx context.C result, err = client.ListTriggeredWebJobHistorySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listTriggeredWebJobHistorySlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -26328,6 +26638,7 @@ func (client AppsClient) ListTriggeredWebJobs(ctx context.Context, resourceGroup result.twjc, err = client.ListTriggeredWebJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListTriggeredWebJobs", resp, "Failure responding to request") + return } if result.twjc.hasNextLink() && result.twjc.IsEmpty() { err = result.NextWithContext(ctx) @@ -26392,6 +26703,7 @@ func (client AppsClient) listTriggeredWebJobsNextResults(ctx context.Context, la result, err = client.ListTriggeredWebJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listTriggeredWebJobsNextResults", resp, "Failure responding to next results request") + return } return } @@ -26454,6 +26766,7 @@ func (client AppsClient) ListTriggeredWebJobsSlot(ctx context.Context, resourceG result.twjc, err = client.ListTriggeredWebJobsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListTriggeredWebJobsSlot", resp, "Failure responding to request") + return } if result.twjc.hasNextLink() && result.twjc.IsEmpty() { err = result.NextWithContext(ctx) @@ -26519,6 +26832,7 @@ func (client AppsClient) listTriggeredWebJobsSlotNextResults(ctx context.Context result, err = client.ListTriggeredWebJobsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listTriggeredWebJobsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -26582,6 +26896,7 @@ func (client AppsClient) ListUsages(ctx context.Context, resourceGroupName strin result.cuqc, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListUsages", resp, "Failure responding to request") + return } if result.cuqc.hasNextLink() && result.cuqc.IsEmpty() { err = result.NextWithContext(ctx) @@ -26649,6 +26964,7 @@ func (client AppsClient) listUsagesNextResults(ctx context.Context, lastResults result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listUsagesNextResults", resp, "Failure responding to next results request") + return } return } @@ -26714,6 +27030,7 @@ func (client AppsClient) ListUsagesSlot(ctx context.Context, resourceGroupName s result.cuqc, err = client.ListUsagesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListUsagesSlot", resp, "Failure responding to request") + return } if result.cuqc.hasNextLink() && result.cuqc.IsEmpty() { err = result.NextWithContext(ctx) @@ -26782,6 +27099,7 @@ func (client AppsClient) listUsagesSlotNextResults(ctx context.Context, lastResu result, err = client.ListUsagesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listUsagesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -26841,6 +27159,7 @@ func (client AppsClient) ListVnetConnections(ctx context.Context, resourceGroupN result, err = client.ListVnetConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListVnetConnections", resp, "Failure responding to request") + return } return @@ -26926,6 +27245,7 @@ func (client AppsClient) ListVnetConnectionsSlot(ctx context.Context, resourceGr result, err = client.ListVnetConnectionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListVnetConnectionsSlot", resp, "Failure responding to request") + return } return @@ -27011,6 +27331,7 @@ func (client AppsClient) ListWebJobs(ctx context.Context, resourceGroupName stri result.jc, err = client.ListWebJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListWebJobs", resp, "Failure responding to request") + return } if result.jc.hasNextLink() && result.jc.IsEmpty() { err = result.NextWithContext(ctx) @@ -27075,6 +27396,7 @@ func (client AppsClient) listWebJobsNextResults(ctx context.Context, lastResults result, err = client.ListWebJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listWebJobsNextResults", resp, "Failure responding to next results request") + return } return } @@ -27137,6 +27459,7 @@ func (client AppsClient) ListWebJobsSlot(ctx context.Context, resourceGroupName result.jc, err = client.ListWebJobsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListWebJobsSlot", resp, "Failure responding to request") + return } if result.jc.hasNextLink() && result.jc.IsEmpty() { err = result.NextWithContext(ctx) @@ -27202,6 +27525,7 @@ func (client AppsClient) listWebJobsSlotNextResults(ctx context.Context, lastRes result, err = client.ListWebJobsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listWebJobsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -27445,6 +27769,7 @@ func (client AppsClient) PutPrivateAccessVnet(ctx context.Context, resourceGroup result, err = client.PutPrivateAccessVnetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "PutPrivateAccessVnet", resp, "Failure responding to request") + return } return @@ -27533,6 +27858,7 @@ func (client AppsClient) PutPrivateAccessVnetSlot(ctx context.Context, resourceG result, err = client.PutPrivateAccessVnetSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "PutPrivateAccessVnetSlot", resp, "Failure responding to request") + return } return @@ -27620,6 +27946,7 @@ func (client AppsClient) RecoverSiteConfigurationSnapshot(ctx context.Context, r result, err = client.RecoverSiteConfigurationSnapshotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "RecoverSiteConfigurationSnapshot", resp, "Failure responding to request") + return } return @@ -27706,6 +28033,7 @@ func (client AppsClient) RecoverSiteConfigurationSnapshotSlot(ctx context.Contex result, err = client.RecoverSiteConfigurationSnapshotSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "RecoverSiteConfigurationSnapshotSlot", resp, "Failure responding to request") + return } return @@ -27791,6 +28119,7 @@ func (client AppsClient) ResetProductionSlotConfig(ctx context.Context, resource result, err = client.ResetProductionSlotConfigResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ResetProductionSlotConfig", resp, "Failure responding to request") + return } return @@ -27876,6 +28205,7 @@ func (client AppsClient) ResetSlotConfigurationSlot(ctx context.Context, resourc result, err = client.ResetSlotConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ResetSlotConfigurationSlot", resp, "Failure responding to request") + return } return @@ -27963,6 +28293,7 @@ func (client AppsClient) Restart(ctx context.Context, resourceGroupName string, result, err = client.RestartResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Restart", resp, "Failure responding to request") + return } return @@ -28056,6 +28387,7 @@ func (client AppsClient) RestartSlot(ctx context.Context, resourceGroupName stri result, err = client.RestartSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "RestartSlot", resp, "Failure responding to request") + return } return @@ -28868,6 +29200,7 @@ func (client AppsClient) RunTriggeredWebJob(ctx context.Context, resourceGroupNa result, err = client.RunTriggeredWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "RunTriggeredWebJob", resp, "Failure responding to request") + return } return @@ -28953,6 +29286,7 @@ func (client AppsClient) RunTriggeredWebJobSlot(ctx context.Context, resourceGro result, err = client.RunTriggeredWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "RunTriggeredWebJobSlot", resp, "Failure responding to request") + return } return @@ -29037,6 +29371,7 @@ func (client AppsClient) Start(ctx context.Context, resourceGroupName string, na result, err = client.StartResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Start", resp, "Failure responding to request") + return } return @@ -29120,6 +29455,7 @@ func (client AppsClient) StartContinuousWebJob(ctx context.Context, resourceGrou result, err = client.StartContinuousWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StartContinuousWebJob", resp, "Failure responding to request") + return } return @@ -29206,6 +29542,7 @@ func (client AppsClient) StartContinuousWebJobSlot(ctx context.Context, resource result, err = client.StartContinuousWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StartContinuousWebJobSlot", resp, "Failure responding to request") + return } return @@ -29483,6 +29820,7 @@ func (client AppsClient) StartSlot(ctx context.Context, resourceGroupName string result, err = client.StartSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StartSlot", resp, "Failure responding to request") + return } return @@ -29569,6 +29907,7 @@ func (client AppsClient) StartWebSiteNetworkTrace(ctx context.Context, resourceG result, err = client.StartWebSiteNetworkTraceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StartWebSiteNetworkTrace", resp, "Failure responding to request") + return } return @@ -29857,6 +30196,7 @@ func (client AppsClient) StartWebSiteNetworkTraceSlot(ctx context.Context, resou result, err = client.StartWebSiteNetworkTraceSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StartWebSiteNetworkTraceSlot", resp, "Failure responding to request") + return } return @@ -29950,6 +30290,7 @@ func (client AppsClient) Stop(ctx context.Context, resourceGroupName string, nam result, err = client.StopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Stop", resp, "Failure responding to request") + return } return @@ -30033,6 +30374,7 @@ func (client AppsClient) StopContinuousWebJob(ctx context.Context, resourceGroup result, err = client.StopContinuousWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StopContinuousWebJob", resp, "Failure responding to request") + return } return @@ -30119,6 +30461,7 @@ func (client AppsClient) StopContinuousWebJobSlot(ctx context.Context, resourceG result, err = client.StopContinuousWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StopContinuousWebJobSlot", resp, "Failure responding to request") + return } return @@ -30203,6 +30546,7 @@ func (client AppsClient) StopNetworkTrace(ctx context.Context, resourceGroupName result, err = client.StopNetworkTraceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StopNetworkTrace", resp, "Failure responding to request") + return } return @@ -30286,6 +30630,7 @@ func (client AppsClient) StopNetworkTraceSlot(ctx context.Context, resourceGroup result, err = client.StopNetworkTraceSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StopNetworkTraceSlot", resp, "Failure responding to request") + return } return @@ -30370,6 +30715,7 @@ func (client AppsClient) StopSlot(ctx context.Context, resourceGroupName string, result, err = client.StopSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StopSlot", resp, "Failure responding to request") + return } return @@ -30453,6 +30799,7 @@ func (client AppsClient) StopWebSiteNetworkTrace(ctx context.Context, resourceGr result, err = client.StopWebSiteNetworkTraceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StopWebSiteNetworkTrace", resp, "Failure responding to request") + return } return @@ -30536,6 +30883,7 @@ func (client AppsClient) StopWebSiteNetworkTraceSlot(ctx context.Context, resour result, err = client.StopWebSiteNetworkTraceSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StopWebSiteNetworkTraceSlot", resp, "Failure responding to request") + return } return @@ -30797,6 +31145,7 @@ func (client AppsClient) SyncFunctions(ctx context.Context, resourceGroupName st result, err = client.SyncFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncFunctions", resp, "Failure responding to request") + return } return @@ -30880,6 +31229,7 @@ func (client AppsClient) SyncFunctionsSlot(ctx context.Context, resourceGroupNam result, err = client.SyncFunctionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncFunctionsSlot", resp, "Failure responding to request") + return } return @@ -30963,6 +31313,7 @@ func (client AppsClient) SyncFunctionTriggers(ctx context.Context, resourceGroup result, err = client.SyncFunctionTriggersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncFunctionTriggers", resp, "Failure responding to request") + return } return @@ -31046,6 +31397,7 @@ func (client AppsClient) SyncFunctionTriggersSlot(ctx context.Context, resourceG result, err = client.SyncFunctionTriggersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncFunctionTriggersSlot", resp, "Failure responding to request") + return } return @@ -31129,6 +31481,7 @@ func (client AppsClient) SyncRepository(ctx context.Context, resourceGroupName s result, err = client.SyncRepositoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncRepository", resp, "Failure responding to request") + return } return @@ -31212,6 +31565,7 @@ func (client AppsClient) SyncRepositorySlot(ctx context.Context, resourceGroupNa result, err = client.SyncRepositorySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncRepositorySlot", resp, "Failure responding to request") + return } return @@ -31298,6 +31652,7 @@ func (client AppsClient) Update(ctx context.Context, resourceGroupName string, n result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Update", resp, "Failure responding to request") + return } return @@ -31384,6 +31739,7 @@ func (client AppsClient) UpdateApplicationSettings(ctx context.Context, resource result, err = client.UpdateApplicationSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateApplicationSettings", resp, "Failure responding to request") + return } return @@ -31472,6 +31828,7 @@ func (client AppsClient) UpdateApplicationSettingsSlot(ctx context.Context, reso result, err = client.UpdateApplicationSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateApplicationSettingsSlot", resp, "Failure responding to request") + return } return @@ -31559,6 +31916,7 @@ func (client AppsClient) UpdateAuthSettings(ctx context.Context, resourceGroupNa result, err = client.UpdateAuthSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateAuthSettings", resp, "Failure responding to request") + return } return @@ -31646,6 +32004,7 @@ func (client AppsClient) UpdateAuthSettingsSlot(ctx context.Context, resourceGro result, err = client.UpdateAuthSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateAuthSettingsSlot", resp, "Failure responding to request") + return } return @@ -31733,6 +32092,7 @@ func (client AppsClient) UpdateAzureStorageAccounts(ctx context.Context, resourc result, err = client.UpdateAzureStorageAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateAzureStorageAccounts", resp, "Failure responding to request") + return } return @@ -31821,6 +32181,7 @@ func (client AppsClient) UpdateAzureStorageAccountsSlot(ctx context.Context, res result, err = client.UpdateAzureStorageAccountsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateAzureStorageAccountsSlot", resp, "Failure responding to request") + return } return @@ -31917,6 +32278,7 @@ func (client AppsClient) UpdateBackupConfiguration(ctx context.Context, resource result, err = client.UpdateBackupConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateBackupConfiguration", resp, "Failure responding to request") + return } return @@ -32014,6 +32376,7 @@ func (client AppsClient) UpdateBackupConfigurationSlot(ctx context.Context, reso result, err = client.UpdateBackupConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateBackupConfigurationSlot", resp, "Failure responding to request") + return } return @@ -32101,6 +32464,7 @@ func (client AppsClient) UpdateConfiguration(ctx context.Context, resourceGroupN result, err = client.UpdateConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateConfiguration", resp, "Failure responding to request") + return } return @@ -32189,6 +32553,7 @@ func (client AppsClient) UpdateConfigurationSlot(ctx context.Context, resourceGr result, err = client.UpdateConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateConfigurationSlot", resp, "Failure responding to request") + return } return @@ -32276,6 +32641,7 @@ func (client AppsClient) UpdateConnectionStrings(ctx context.Context, resourceGr result, err = client.UpdateConnectionStringsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateConnectionStrings", resp, "Failure responding to request") + return } return @@ -32364,6 +32730,7 @@ func (client AppsClient) UpdateConnectionStringsSlot(ctx context.Context, resour result, err = client.UpdateConnectionStringsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateConnectionStringsSlot", resp, "Failure responding to request") + return } return @@ -32467,6 +32834,7 @@ func (client AppsClient) UpdateDiagnosticLogsConfig(ctx context.Context, resourc result, err = client.UpdateDiagnosticLogsConfigResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateDiagnosticLogsConfig", resp, "Failure responding to request") + return } return @@ -32571,6 +32939,7 @@ func (client AppsClient) UpdateDiagnosticLogsConfigSlot(ctx context.Context, res result, err = client.UpdateDiagnosticLogsConfigSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateDiagnosticLogsConfigSlot", resp, "Failure responding to request") + return } return @@ -32660,6 +33029,7 @@ func (client AppsClient) UpdateDomainOwnershipIdentifier(ctx context.Context, re result, err = client.UpdateDomainOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateDomainOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -32751,6 +33121,7 @@ func (client AppsClient) UpdateDomainOwnershipIdentifierSlot(ctx context.Context result, err = client.UpdateDomainOwnershipIdentifierSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateDomainOwnershipIdentifierSlot", resp, "Failure responding to request") + return } return @@ -32841,6 +33212,7 @@ func (client AppsClient) UpdateFtpAllowed(ctx context.Context, resourceGroupName result, err = client.UpdateFtpAllowedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateFtpAllowed", resp, "Failure responding to request") + return } return @@ -32929,6 +33301,7 @@ func (client AppsClient) UpdateHybridConnection(ctx context.Context, resourceGro result, err = client.UpdateHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateHybridConnection", resp, "Failure responding to request") + return } return @@ -33020,6 +33393,7 @@ func (client AppsClient) UpdateHybridConnectionSlot(ctx context.Context, resourc result, err = client.UpdateHybridConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateHybridConnectionSlot", resp, "Failure responding to request") + return } return @@ -33109,6 +33483,7 @@ func (client AppsClient) UpdateMetadata(ctx context.Context, resourceGroupName s result, err = client.UpdateMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateMetadata", resp, "Failure responding to request") + return } return @@ -33197,6 +33572,7 @@ func (client AppsClient) UpdateMetadataSlot(ctx context.Context, resourceGroupNa result, err = client.UpdateMetadataSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateMetadataSlot", resp, "Failure responding to request") + return } return @@ -33285,6 +33661,7 @@ func (client AppsClient) UpdatePremierAddOn(ctx context.Context, resourceGroupNa result, err = client.UpdatePremierAddOnResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdatePremierAddOn", resp, "Failure responding to request") + return } return @@ -33375,6 +33752,7 @@ func (client AppsClient) UpdatePremierAddOnSlot(ctx context.Context, resourceGro result, err = client.UpdatePremierAddOnSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdatePremierAddOnSlot", resp, "Failure responding to request") + return } return @@ -33465,6 +33843,7 @@ func (client AppsClient) UpdateRelayServiceConnection(ctx context.Context, resou result, err = client.UpdateRelayServiceConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateRelayServiceConnection", resp, "Failure responding to request") + return } return @@ -33556,6 +33935,7 @@ func (client AppsClient) UpdateRelayServiceConnectionSlot(ctx context.Context, r result, err = client.UpdateRelayServiceConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateRelayServiceConnectionSlot", resp, "Failure responding to request") + return } return @@ -33646,6 +34026,7 @@ func (client AppsClient) UpdateScmAllowed(ctx context.Context, resourceGroupName result, err = client.UpdateScmAllowedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateScmAllowed", resp, "Failure responding to request") + return } return @@ -33735,6 +34116,7 @@ func (client AppsClient) UpdateSitePushSettings(ctx context.Context, resourceGro result, err = client.UpdateSitePushSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSitePushSettings", resp, "Failure responding to request") + return } return @@ -33825,6 +34207,7 @@ func (client AppsClient) UpdateSitePushSettingsSlot(ctx context.Context, resourc result, err = client.UpdateSitePushSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSitePushSettingsSlot", resp, "Failure responding to request") + return } return @@ -33916,6 +34299,7 @@ func (client AppsClient) UpdateSlot(ctx context.Context, resourceGroupName strin result, err = client.UpdateSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSlot", resp, "Failure responding to request") + return } return @@ -34004,6 +34388,7 @@ func (client AppsClient) UpdateSlotConfigurationNames(ctx context.Context, resou result, err = client.UpdateSlotConfigurationNamesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSlotConfigurationNames", resp, "Failure responding to request") + return } return @@ -34090,6 +34475,7 @@ func (client AppsClient) UpdateSourceControl(ctx context.Context, resourceGroupN result, err = client.UpdateSourceControlResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSourceControl", resp, "Failure responding to request") + return } return @@ -34178,6 +34564,7 @@ func (client AppsClient) UpdateSourceControlSlot(ctx context.Context, resourceGr result, err = client.UpdateSourceControlSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSourceControlSlot", resp, "Failure responding to request") + return } return @@ -34268,6 +34655,7 @@ func (client AppsClient) UpdateSwiftVirtualNetworkConnection(ctx context.Context result, err = client.UpdateSwiftVirtualNetworkConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSwiftVirtualNetworkConnection", resp, "Failure responding to request") + return } return @@ -34359,6 +34747,7 @@ func (client AppsClient) UpdateSwiftVirtualNetworkConnectionSlot(ctx context.Con result, err = client.UpdateSwiftVirtualNetworkConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSwiftVirtualNetworkConnectionSlot", resp, "Failure responding to request") + return } return @@ -34448,6 +34837,7 @@ func (client AppsClient) UpdateVnetConnection(ctx context.Context, resourceGroup result, err = client.UpdateVnetConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateVnetConnection", resp, "Failure responding to request") + return } return @@ -34538,6 +34928,7 @@ func (client AppsClient) UpdateVnetConnectionGateway(ctx context.Context, resour result, err = client.UpdateVnetConnectionGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateVnetConnectionGateway", resp, "Failure responding to request") + return } return @@ -34631,6 +35022,7 @@ func (client AppsClient) UpdateVnetConnectionGatewaySlot(ctx context.Context, re result, err = client.UpdateVnetConnectionGatewaySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateVnetConnectionGatewaySlot", resp, "Failure responding to request") + return } return @@ -34724,6 +35116,7 @@ func (client AppsClient) UpdateVnetConnectionSlot(ctx context.Context, resourceG result, err = client.UpdateVnetConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateVnetConnectionSlot", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2019-08-01/web/appservicecertificateorders.go b/services/web/mgmt/2019-08-01/web/appservicecertificateorders.go index 685a42c51c63..c222b6e22e8d 100644 --- a/services/web/mgmt/2019-08-01/web/appservicecertificateorders.go +++ b/services/web/mgmt/2019-08-01/web/appservicecertificateorders.go @@ -263,6 +263,7 @@ func (client AppServiceCertificateOrdersClient) Delete(ctx context.Context, reso result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "Delete", resp, "Failure responding to request") + return } return @@ -346,6 +347,7 @@ func (client AppServiceCertificateOrdersClient) DeleteCertificate(ctx context.Co result, err = client.DeleteCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "DeleteCertificate", resp, "Failure responding to request") + return } return @@ -429,6 +431,7 @@ func (client AppServiceCertificateOrdersClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "Get", resp, "Failure responding to request") + return } return @@ -513,6 +516,7 @@ func (client AppServiceCertificateOrdersClient) GetCertificate(ctx context.Conte result, err = client.GetCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "GetCertificate", resp, "Failure responding to request") + return } return @@ -587,6 +591,7 @@ func (client AppServiceCertificateOrdersClient) List(ctx context.Context) (resul result.ascoc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "List", resp, "Failure responding to request") + return } if result.ascoc.hasNextLink() && result.ascoc.IsEmpty() { err = result.NextWithContext(ctx) @@ -649,6 +654,7 @@ func (client AppServiceCertificateOrdersClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -708,6 +714,7 @@ func (client AppServiceCertificateOrdersClient) ListByResourceGroup(ctx context. result.ascoc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ascoc.hasNextLink() && result.ascoc.IsEmpty() { err = result.NextWithContext(ctx) @@ -771,6 +778,7 @@ func (client AppServiceCertificateOrdersClient) listByResourceGroupNextResults(c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -831,6 +839,7 @@ func (client AppServiceCertificateOrdersClient) ListCertificates(ctx context.Con result.ascc, err = client.ListCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "ListCertificates", resp, "Failure responding to request") + return } if result.ascc.hasNextLink() && result.ascc.IsEmpty() { err = result.NextWithContext(ctx) @@ -895,6 +904,7 @@ func (client AppServiceCertificateOrdersClient) listCertificatesNextResults(ctx result, err = client.ListCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "listCertificatesNextResults", resp, "Failure responding to next results request") + return } return } @@ -955,6 +965,7 @@ func (client AppServiceCertificateOrdersClient) Reissue(ctx context.Context, res result, err = client.ReissueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "Reissue", resp, "Failure responding to request") + return } return @@ -1040,6 +1051,7 @@ func (client AppServiceCertificateOrdersClient) Renew(ctx context.Context, resou result, err = client.RenewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "Renew", resp, "Failure responding to request") + return } return @@ -1124,6 +1136,7 @@ func (client AppServiceCertificateOrdersClient) ResendEmail(ctx context.Context, result, err = client.ResendEmailResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "ResendEmail", resp, "Failure responding to request") + return } return @@ -1207,6 +1220,7 @@ func (client AppServiceCertificateOrdersClient) ResendRequestEmails(ctx context. result, err = client.ResendRequestEmailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "ResendRequestEmails", resp, "Failure responding to request") + return } return @@ -1291,6 +1305,7 @@ func (client AppServiceCertificateOrdersClient) RetrieveCertificateActions(ctx c result, err = client.RetrieveCertificateActionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "RetrieveCertificateActions", resp, "Failure responding to request") + return } return @@ -1374,6 +1389,7 @@ func (client AppServiceCertificateOrdersClient) RetrieveCertificateEmailHistory( result, err = client.RetrieveCertificateEmailHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "RetrieveCertificateEmailHistory", resp, "Failure responding to request") + return } return @@ -1458,6 +1474,7 @@ func (client AppServiceCertificateOrdersClient) RetrieveSiteSeal(ctx context.Con result, err = client.RetrieveSiteSealResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "RetrieveSiteSeal", resp, "Failure responding to request") + return } return @@ -1544,6 +1561,7 @@ func (client AppServiceCertificateOrdersClient) Update(ctx context.Context, reso result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "Update", resp, "Failure responding to request") + return } return @@ -1631,6 +1649,7 @@ func (client AppServiceCertificateOrdersClient) UpdateCertificate(ctx context.Co result, err = client.UpdateCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "UpdateCertificate", resp, "Failure responding to request") + return } return @@ -1719,6 +1738,7 @@ func (client AppServiceCertificateOrdersClient) ValidatePurchaseInformation(ctx result, err = client.ValidatePurchaseInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "ValidatePurchaseInformation", resp, "Failure responding to request") + return } return @@ -1801,6 +1821,7 @@ func (client AppServiceCertificateOrdersClient) VerifyDomainOwnership(ctx contex result, err = client.VerifyDomainOwnershipResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "VerifyDomainOwnership", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2019-08-01/web/appserviceenvironments.go b/services/web/mgmt/2019-08-01/web/appserviceenvironments.go index ea713fdd7b76..2b5f6834752d 100644 --- a/services/web/mgmt/2019-08-01/web/appserviceenvironments.go +++ b/services/web/mgmt/2019-08-01/web/appserviceenvironments.go @@ -565,6 +565,7 @@ func (client AppServiceEnvironmentsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -649,6 +650,7 @@ func (client AppServiceEnvironmentsClient) GetDiagnosticsItem(ctx context.Contex result, err = client.GetDiagnosticsItemResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetDiagnosticsItem", resp, "Failure responding to request") + return } return @@ -735,6 +737,7 @@ func (client AppServiceEnvironmentsClient) GetInboundNetworkDependenciesEndpoint result.ieec, err = client.GetInboundNetworkDependenciesEndpointsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetInboundNetworkDependenciesEndpoints", resp, "Failure responding to request") + return } if result.ieec.hasNextLink() && result.ieec.IsEmpty() { err = result.NextWithContext(ctx) @@ -799,6 +802,7 @@ func (client AppServiceEnvironmentsClient) getInboundNetworkDependenciesEndpoint result, err = client.GetInboundNetworkDependenciesEndpointsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "getInboundNetworkDependenciesEndpointsNextResults", resp, "Failure responding to next results request") + return } return } @@ -858,6 +862,7 @@ func (client AppServiceEnvironmentsClient) GetMultiRolePool(ctx context.Context, result, err = client.GetMultiRolePoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetMultiRolePool", resp, "Failure responding to request") + return } return @@ -943,6 +948,7 @@ func (client AppServiceEnvironmentsClient) GetOutboundNetworkDependenciesEndpoin result.oeec, err = client.GetOutboundNetworkDependenciesEndpointsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetOutboundNetworkDependenciesEndpoints", resp, "Failure responding to request") + return } if result.oeec.hasNextLink() && result.oeec.IsEmpty() { err = result.NextWithContext(ctx) @@ -1007,6 +1013,7 @@ func (client AppServiceEnvironmentsClient) getOutboundNetworkDependenciesEndpoin result, err = client.GetOutboundNetworkDependenciesEndpointsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "getOutboundNetworkDependenciesEndpointsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1066,6 +1073,7 @@ func (client AppServiceEnvironmentsClient) GetVipInfo(ctx context.Context, resou result, err = client.GetVipInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetVipInfo", resp, "Failure responding to request") + return } return @@ -1150,6 +1158,7 @@ func (client AppServiceEnvironmentsClient) GetWorkerPool(ctx context.Context, re result, err = client.GetWorkerPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetWorkerPool", resp, "Failure responding to request") + return } return @@ -1224,6 +1233,7 @@ func (client AppServiceEnvironmentsClient) List(ctx context.Context) (result App result.asec, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "List", resp, "Failure responding to request") + return } if result.asec.hasNextLink() && result.asec.IsEmpty() { err = result.NextWithContext(ctx) @@ -1286,6 +1296,7 @@ func (client AppServiceEnvironmentsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1346,6 +1357,7 @@ func (client AppServiceEnvironmentsClient) ListAppServicePlans(ctx context.Conte result.aspc, err = client.ListAppServicePlansResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListAppServicePlans", resp, "Failure responding to request") + return } if result.aspc.hasNextLink() && result.aspc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1410,6 +1422,7 @@ func (client AppServiceEnvironmentsClient) listAppServicePlansNextResults(ctx co result, err = client.ListAppServicePlansResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listAppServicePlansNextResults", resp, "Failure responding to next results request") + return } return } @@ -1469,6 +1482,7 @@ func (client AppServiceEnvironmentsClient) ListByResourceGroup(ctx context.Conte result.asec, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.asec.hasNextLink() && result.asec.IsEmpty() { err = result.NextWithContext(ctx) @@ -1532,6 +1546,7 @@ func (client AppServiceEnvironmentsClient) listByResourceGroupNextResults(ctx co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1592,6 +1607,7 @@ func (client AppServiceEnvironmentsClient) ListCapacities(ctx context.Context, r result.scc, err = client.ListCapacitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListCapacities", resp, "Failure responding to request") + return } if result.scc.hasNextLink() && result.scc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1656,6 +1672,7 @@ func (client AppServiceEnvironmentsClient) listCapacitiesNextResults(ctx context result, err = client.ListCapacitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listCapacitiesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1715,6 +1732,7 @@ func (client AppServiceEnvironmentsClient) ListDiagnostics(ctx context.Context, result, err = client.ListDiagnosticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListDiagnostics", resp, "Failure responding to request") + return } return @@ -1800,6 +1818,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitions(ctx co result.rmdc, err = client.ListMultiRoleMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRoleMetricDefinitions", resp, "Failure responding to request") + return } if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1864,6 +1883,7 @@ func (client AppServiceEnvironmentsClient) listMultiRoleMetricDefinitionsNextRes result, err = client.ListMultiRoleMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRoleMetricDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1926,6 +1946,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefini result.rmdc, err = client.ListMultiRolePoolInstanceMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolInstanceMetricDefinitions", resp, "Failure responding to request") + return } if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1991,6 +2012,7 @@ func (client AppServiceEnvironmentsClient) listMultiRolePoolInstanceMetricDefini result, err = client.ListMultiRolePoolInstanceMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolInstanceMetricDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2051,6 +2073,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRolePools(ctx context.Contex result.wpc, err = client.ListMultiRolePoolsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePools", resp, "Failure responding to request") + return } if result.wpc.hasNextLink() && result.wpc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2115,6 +2138,7 @@ func (client AppServiceEnvironmentsClient) listMultiRolePoolsNextResults(ctx con result, err = client.ListMultiRolePoolsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2175,6 +2199,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRolePoolSkus(ctx context.Con result.sic, err = client.ListMultiRolePoolSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolSkus", resp, "Failure responding to request") + return } if result.sic.hasNextLink() && result.sic.IsEmpty() { err = result.NextWithContext(ctx) @@ -2239,6 +2264,7 @@ func (client AppServiceEnvironmentsClient) listMultiRolePoolSkusNextResults(ctx result, err = client.ListMultiRolePoolSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolSkusNextResults", resp, "Failure responding to next results request") + return } return } @@ -2299,6 +2325,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRoleUsages(ctx context.Conte result.uc, err = client.ListMultiRoleUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRoleUsages", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2363,6 +2390,7 @@ func (client AppServiceEnvironmentsClient) listMultiRoleUsagesNextResults(ctx co result, err = client.ListMultiRoleUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRoleUsagesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2422,6 +2450,7 @@ func (client AppServiceEnvironmentsClient) ListOperations(ctx context.Context, r result, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListOperations", resp, "Failure responding to request") + return } return @@ -2509,6 +2538,7 @@ func (client AppServiceEnvironmentsClient) ListUsages(ctx context.Context, resou result.cuqc, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListUsages", resp, "Failure responding to request") + return } if result.cuqc.hasNextLink() && result.cuqc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2576,6 +2606,7 @@ func (client AppServiceEnvironmentsClient) listUsagesNextResults(ctx context.Con result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listUsagesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2637,6 +2668,7 @@ func (client AppServiceEnvironmentsClient) ListWebApps(ctx context.Context, reso result.ac, err = client.ListWebAppsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWebApps", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -2704,6 +2736,7 @@ func (client AppServiceEnvironmentsClient) listWebAppsNextResults(ctx context.Co result, err = client.ListWebAppsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWebAppsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2766,6 +2799,7 @@ func (client AppServiceEnvironmentsClient) ListWebWorkerMetricDefinitions(ctx co result.rmdc, err = client.ListWebWorkerMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWebWorkerMetricDefinitions", resp, "Failure responding to request") + return } if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2831,6 +2865,7 @@ func (client AppServiceEnvironmentsClient) listWebWorkerMetricDefinitionsNextRes result, err = client.ListWebWorkerMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWebWorkerMetricDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2892,6 +2927,7 @@ func (client AppServiceEnvironmentsClient) ListWebWorkerUsages(ctx context.Conte result.uc, err = client.ListWebWorkerUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWebWorkerUsages", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2957,6 +2993,7 @@ func (client AppServiceEnvironmentsClient) listWebWorkerUsagesNextResults(ctx co result, err = client.ListWebWorkerUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWebWorkerUsagesNextResults", resp, "Failure responding to next results request") + return } return } @@ -3020,6 +3057,7 @@ func (client AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricDefinitio result.rmdc, err = client.ListWorkerPoolInstanceMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWorkerPoolInstanceMetricDefinitions", resp, "Failure responding to request") + return } if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -3086,6 +3124,7 @@ func (client AppServiceEnvironmentsClient) listWorkerPoolInstanceMetricDefinitio result, err = client.ListWorkerPoolInstanceMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWorkerPoolInstanceMetricDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3146,6 +3185,7 @@ func (client AppServiceEnvironmentsClient) ListWorkerPools(ctx context.Context, result.wpc, err = client.ListWorkerPoolsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWorkerPools", resp, "Failure responding to request") + return } if result.wpc.hasNextLink() && result.wpc.IsEmpty() { err = result.NextWithContext(ctx) @@ -3210,6 +3250,7 @@ func (client AppServiceEnvironmentsClient) listWorkerPoolsNextResults(ctx contex result, err = client.ListWorkerPoolsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWorkerPoolsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3271,6 +3312,7 @@ func (client AppServiceEnvironmentsClient) ListWorkerPoolSkus(ctx context.Contex result.sic, err = client.ListWorkerPoolSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWorkerPoolSkus", resp, "Failure responding to request") + return } if result.sic.hasNextLink() && result.sic.IsEmpty() { err = result.NextWithContext(ctx) @@ -3336,6 +3378,7 @@ func (client AppServiceEnvironmentsClient) listWorkerPoolSkusNextResults(ctx con result, err = client.ListWorkerPoolSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWorkerPoolSkusNextResults", resp, "Failure responding to next results request") + return } return } @@ -3395,6 +3438,7 @@ func (client AppServiceEnvironmentsClient) Reboot(ctx context.Context, resourceG result, err = client.RebootResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "Reboot", resp, "Failure responding to request") + return } return @@ -3726,6 +3770,7 @@ func (client AppServiceEnvironmentsClient) Update(ctx context.Context, resourceG result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "Update", resp, "Failure responding to request") + return } return @@ -3812,6 +3857,7 @@ func (client AppServiceEnvironmentsClient) UpdateMultiRolePool(ctx context.Conte result, err = client.UpdateMultiRolePoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "UpdateMultiRolePool", resp, "Failure responding to request") + return } return @@ -3899,6 +3945,7 @@ func (client AppServiceEnvironmentsClient) UpdateWorkerPool(ctx context.Context, result, err = client.UpdateWorkerPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "UpdateWorkerPool", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2019-08-01/web/appserviceplans.go b/services/web/mgmt/2019-08-01/web/appserviceplans.go index e976cab5211c..2f887adcdd62 100644 --- a/services/web/mgmt/2019-08-01/web/appserviceplans.go +++ b/services/web/mgmt/2019-08-01/web/appserviceplans.go @@ -170,6 +170,7 @@ func (client AppServicePlansClient) CreateOrUpdateVnetRoute(ctx context.Context, result, err = client.CreateOrUpdateVnetRouteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "CreateOrUpdateVnetRoute", resp, "Failure responding to request") + return } return @@ -257,6 +258,7 @@ func (client AppServicePlansClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "Delete", resp, "Failure responding to request") + return } return @@ -341,6 +343,7 @@ func (client AppServicePlansClient) DeleteHybridConnection(ctx context.Context, result, err = client.DeleteHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "DeleteHybridConnection", resp, "Failure responding to request") + return } return @@ -427,6 +430,7 @@ func (client AppServicePlansClient) DeleteVnetRoute(ctx context.Context, resourc result, err = client.DeleteVnetRouteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "DeleteVnetRoute", resp, "Failure responding to request") + return } return @@ -511,6 +515,7 @@ func (client AppServicePlansClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "Get", resp, "Failure responding to request") + return } return @@ -596,6 +601,7 @@ func (client AppServicePlansClient) GetHybridConnection(ctx context.Context, res result, err = client.GetHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "GetHybridConnection", resp, "Failure responding to request") + return } return @@ -682,6 +688,7 @@ func (client AppServicePlansClient) GetHybridConnectionPlanLimit(ctx context.Con result, err = client.GetHybridConnectionPlanLimitResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "GetHybridConnectionPlanLimit", resp, "Failure responding to request") + return } return @@ -767,6 +774,7 @@ func (client AppServicePlansClient) GetRouteForVnet(ctx context.Context, resourc result, err = client.GetRouteForVnetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "GetRouteForVnet", resp, "Failure responding to request") + return } return @@ -852,6 +860,7 @@ func (client AppServicePlansClient) GetServerFarmSkus(ctx context.Context, resou result, err = client.GetServerFarmSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "GetServerFarmSkus", resp, "Failure responding to request") + return } return @@ -936,6 +945,7 @@ func (client AppServicePlansClient) GetVnetFromServerFarm(ctx context.Context, r result, err = client.GetVnetFromServerFarmResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "GetVnetFromServerFarm", resp, "Failure responding to request") + return } return @@ -1022,6 +1032,7 @@ func (client AppServicePlansClient) GetVnetGateway(ctx context.Context, resource result, err = client.GetVnetGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "GetVnetGateway", resp, "Failure responding to request") + return } return @@ -1101,6 +1112,7 @@ func (client AppServicePlansClient) List(ctx context.Context, detailed *bool) (r result.aspc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "List", resp, "Failure responding to request") + return } if result.aspc.hasNextLink() && result.aspc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1166,6 +1178,7 @@ func (client AppServicePlansClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1225,6 +1238,7 @@ func (client AppServicePlansClient) ListByResourceGroup(ctx context.Context, res result.aspc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.aspc.hasNextLink() && result.aspc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1288,6 +1302,7 @@ func (client AppServicePlansClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1347,6 +1362,7 @@ func (client AppServicePlansClient) ListCapabilities(ctx context.Context, resour result, err = client.ListCapabilitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListCapabilities", resp, "Failure responding to request") + return } return @@ -1432,6 +1448,7 @@ func (client AppServicePlansClient) ListHybridConnectionKeys(ctx context.Context result, err = client.ListHybridConnectionKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListHybridConnectionKeys", resp, "Failure responding to request") + return } return @@ -1518,6 +1535,7 @@ func (client AppServicePlansClient) ListHybridConnections(ctx context.Context, r result.hcc, err = client.ListHybridConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListHybridConnections", resp, "Failure responding to request") + return } if result.hcc.hasNextLink() && result.hcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1582,6 +1600,7 @@ func (client AppServicePlansClient) listHybridConnectionsNextResults(ctx context result, err = client.ListHybridConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listHybridConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1642,6 +1661,7 @@ func (client AppServicePlansClient) ListRoutesForVnet(ctx context.Context, resou result, err = client.ListRoutesForVnetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListRoutesForVnet", resp, "Failure responding to request") + return } return @@ -1729,6 +1749,7 @@ func (client AppServicePlansClient) ListUsages(ctx context.Context, resourceGrou result.cuqc, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListUsages", resp, "Failure responding to request") + return } if result.cuqc.hasNextLink() && result.cuqc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1796,6 +1817,7 @@ func (client AppServicePlansClient) listUsagesNextResults(ctx context.Context, l result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listUsagesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1855,6 +1877,7 @@ func (client AppServicePlansClient) ListVnets(ctx context.Context, resourceGroup result, err = client.ListVnetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListVnets", resp, "Failure responding to request") + return } return @@ -1944,6 +1967,7 @@ func (client AppServicePlansClient) ListWebApps(ctx context.Context, resourceGro result.ac, err = client.ListWebAppsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListWebApps", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -2017,6 +2041,7 @@ func (client AppServicePlansClient) listWebAppsNextResults(ctx context.Context, result, err = client.ListWebAppsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listWebAppsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2079,6 +2104,7 @@ func (client AppServicePlansClient) ListWebAppsByHybridConnection(ctx context.Co result.rc, err = client.ListWebAppsByHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListWebAppsByHybridConnection", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2145,6 +2171,7 @@ func (client AppServicePlansClient) listWebAppsByHybridConnectionNextResults(ctx result, err = client.ListWebAppsByHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listWebAppsByHybridConnectionNextResults", resp, "Failure responding to next results request") + return } return } @@ -2205,6 +2232,7 @@ func (client AppServicePlansClient) RebootWorker(ctx context.Context, resourceGr result, err = client.RebootWorkerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "RebootWorker", resp, "Failure responding to request") + return } return @@ -2291,6 +2319,7 @@ func (client AppServicePlansClient) RestartWebApps(ctx context.Context, resource result, err = client.RestartWebAppsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "RestartWebApps", resp, "Failure responding to request") + return } return @@ -2377,6 +2406,7 @@ func (client AppServicePlansClient) Update(ctx context.Context, resourceGroupNam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "Update", resp, "Failure responding to request") + return } return @@ -2468,6 +2498,7 @@ func (client AppServicePlansClient) UpdateVnetGateway(ctx context.Context, resou result, err = client.UpdateVnetGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "UpdateVnetGateway", resp, "Failure responding to request") + return } return @@ -2558,6 +2589,7 @@ func (client AppServicePlansClient) UpdateVnetRoute(ctx context.Context, resourc result, err = client.UpdateVnetRouteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "UpdateVnetRoute", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2019-08-01/web/certificateregistrationprovider.go b/services/web/mgmt/2019-08-01/web/certificateregistrationprovider.go index c6da52ca4274..0f35e6c8b3c6 100644 --- a/services/web/mgmt/2019-08-01/web/certificateregistrationprovider.go +++ b/services/web/mgmt/2019-08-01/web/certificateregistrationprovider.go @@ -72,6 +72,7 @@ func (client CertificateRegistrationProviderClient) ListOperations(ctx context.C result.coc, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateRegistrationProviderClient", "ListOperations", resp, "Failure responding to request") + return } if result.coc.hasNextLink() && result.coc.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client CertificateRegistrationProviderClient) listOperationsNextResults(ct result, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateRegistrationProviderClient", "listOperationsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2019-08-01/web/certificates.go b/services/web/mgmt/2019-08-01/web/certificates.go index 33f9ed9c2505..4c7c0b8102ed 100644 --- a/services/web/mgmt/2019-08-01/web/certificates.go +++ b/services/web/mgmt/2019-08-01/web/certificates.go @@ -85,6 +85,7 @@ func (client CertificatesClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client CertificatesClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "Delete", resp, "Failure responding to request") + return } return @@ -252,6 +254,7 @@ func (client CertificatesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +328,7 @@ func (client CertificatesClient) List(ctx context.Context) (result CertificateCo result.cc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "List", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +391,7 @@ func (client CertificatesClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -446,6 +451,7 @@ func (client CertificatesClient) ListByResourceGroup(ctx context.Context, resour result.cc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -509,6 +515,7 @@ func (client CertificatesClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -569,6 +576,7 @@ func (client CertificatesClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2019-08-01/web/client.go b/services/web/mgmt/2019-08-01/web/client.go index f392f3b372b6..cd3af2abec85 100644 --- a/services/web/mgmt/2019-08-01/web/client.go +++ b/services/web/mgmt/2019-08-01/web/client.go @@ -92,6 +92,7 @@ func (client BaseClient) CheckNameAvailability(ctx context.Context, request Reso result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client BaseClient) GetPublishingUser(ctx context.Context) (result User, er result, err = client.GetPublishingUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "GetPublishingUser", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client BaseClient) GetSourceControl(ctx context.Context, sourceControlType result, err = client.GetSourceControlResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "GetSourceControl", resp, "Failure responding to request") + return } return @@ -302,6 +305,7 @@ func (client BaseClient) GetSubscriptionDeploymentLocations(ctx context.Context) result, err = client.GetSubscriptionDeploymentLocationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "GetSubscriptionDeploymentLocations", resp, "Failure responding to request") + return } return @@ -376,6 +380,7 @@ func (client BaseClient) ListBillingMeters(ctx context.Context, billingLocation result.bmc, err = client.ListBillingMetersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListBillingMeters", resp, "Failure responding to request") + return } if result.bmc.hasNextLink() && result.bmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -444,6 +449,7 @@ func (client BaseClient) listBillingMetersNextResults(ctx context.Context, lastR result, err = client.ListBillingMetersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "listBillingMetersNextResults", resp, "Failure responding to next results request") + return } return } @@ -501,6 +507,7 @@ func (client BaseClient) ListGeoRegions(ctx context.Context, sku SkuName, linuxW result.grc, err = client.ListGeoRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListGeoRegions", resp, "Failure responding to request") + return } if result.grc.hasNextLink() && result.grc.IsEmpty() { err = result.NextWithContext(ctx) @@ -575,6 +582,7 @@ func (client BaseClient) listGeoRegionsNextResults(ctx context.Context, lastResu result, err = client.ListGeoRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "listGeoRegionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -624,6 +632,7 @@ func (client BaseClient) ListPremierAddOnOffers(ctx context.Context) (result Pre result.paooc, err = client.ListPremierAddOnOffersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListPremierAddOnOffers", resp, "Failure responding to request") + return } if result.paooc.hasNextLink() && result.paooc.IsEmpty() { err = result.NextWithContext(ctx) @@ -686,6 +695,7 @@ func (client BaseClient) listPremierAddOnOffersNextResults(ctx context.Context, result, err = client.ListPremierAddOnOffersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "listPremierAddOnOffersNextResults", resp, "Failure responding to next results request") + return } return } @@ -737,6 +747,7 @@ func (client BaseClient) ListSiteIdentifiersAssignedToHostName(ctx context.Conte result.ic, err = client.ListSiteIdentifiersAssignedToHostNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListSiteIdentifiersAssignedToHostName", resp, "Failure responding to request") + return } if result.ic.hasNextLink() && result.ic.IsEmpty() { err = result.NextWithContext(ctx) @@ -801,6 +812,7 @@ func (client BaseClient) listSiteIdentifiersAssignedToHostNameNextResults(ctx co result, err = client.ListSiteIdentifiersAssignedToHostNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "listSiteIdentifiersAssignedToHostNameNextResults", resp, "Failure responding to next results request") + return } return } @@ -849,6 +861,7 @@ func (client BaseClient) ListSkus(ctx context.Context) (result SkuInfos, err err result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListSkus", resp, "Failure responding to request") + return } return @@ -920,6 +933,7 @@ func (client BaseClient) ListSourceControls(ctx context.Context) (result SourceC result.scc, err = client.ListSourceControlsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListSourceControls", resp, "Failure responding to request") + return } if result.scc.hasNextLink() && result.scc.IsEmpty() { err = result.NextWithContext(ctx) @@ -978,6 +992,7 @@ func (client BaseClient) listSourceControlsNextResults(ctx context.Context, last result, err = client.ListSourceControlsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "listSourceControlsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1043,6 +1058,7 @@ func (client BaseClient) Move(ctx context.Context, resourceGroupName string, mov result, err = client.MoveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "Move", resp, "Failure responding to request") + return } return @@ -1124,6 +1140,7 @@ func (client BaseClient) UpdatePublishingUser(ctx context.Context, userDetails U result, err = client.UpdatePublishingUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "UpdatePublishingUser", resp, "Failure responding to request") + return } return @@ -1195,6 +1212,7 @@ func (client BaseClient) UpdateSourceControl(ctx context.Context, sourceControlT result, err = client.UpdateSourceControlResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "UpdateSourceControl", resp, "Failure responding to request") + return } return @@ -1285,6 +1303,7 @@ func (client BaseClient) Validate(ctx context.Context, resourceGroupName string, result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "Validate", resp, "Failure responding to request") + return } return @@ -1375,6 +1394,7 @@ func (client BaseClient) ValidateMove(ctx context.Context, resourceGroupName str result, err = client.ValidateMoveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ValidateMove", resp, "Failure responding to request") + return } return @@ -1450,6 +1470,7 @@ func (client BaseClient) VerifyHostingEnvironmentVnet(ctx context.Context, param result, err = client.VerifyHostingEnvironmentVnetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "VerifyHostingEnvironmentVnet", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2019-08-01/web/deletedwebapps.go b/services/web/mgmt/2019-08-01/web/deletedwebapps.go index f0a06bbc6bd5..67da00ba9f7e 100644 --- a/services/web/mgmt/2019-08-01/web/deletedwebapps.go +++ b/services/web/mgmt/2019-08-01/web/deletedwebapps.go @@ -71,6 +71,7 @@ func (client DeletedWebAppsClient) GetDeletedWebAppByLocation(ctx context.Contex result, err = client.GetDeletedWebAppByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DeletedWebAppsClient", "GetDeletedWebAppByLocation", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client DeletedWebAppsClient) List(ctx context.Context) (result DeletedWebA result.dwac, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DeletedWebAppsClient", "List", resp, "Failure responding to request") + return } if result.dwac.hasNextLink() && result.dwac.IsEmpty() { err = result.NextWithContext(ctx) @@ -206,6 +208,7 @@ func (client DeletedWebAppsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DeletedWebAppsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -255,6 +258,7 @@ func (client DeletedWebAppsClient) ListByLocation(ctx context.Context, location result.dwac, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DeletedWebAppsClient", "ListByLocation", resp, "Failure responding to request") + return } if result.dwac.hasNextLink() && result.dwac.IsEmpty() { err = result.NextWithContext(ctx) @@ -318,6 +322,7 @@ func (client DeletedWebAppsClient) listByLocationNextResults(ctx context.Context result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DeletedWebAppsClient", "listByLocationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2019-08-01/web/diagnostics.go b/services/web/mgmt/2019-08-01/web/diagnostics.go index 83f8da6c4637..62ea38ee2105 100644 --- a/services/web/mgmt/2019-08-01/web/diagnostics.go +++ b/services/web/mgmt/2019-08-01/web/diagnostics.go @@ -90,6 +90,7 @@ func (client DiagnosticsClient) ExecuteSiteAnalysis(ctx context.Context, resourc result, err = client.ExecuteSiteAnalysisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ExecuteSiteAnalysis", resp, "Failure responding to request") + return } return @@ -193,6 +194,7 @@ func (client DiagnosticsClient) ExecuteSiteAnalysisSlot(ctx context.Context, res result, err = client.ExecuteSiteAnalysisSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ExecuteSiteAnalysisSlot", resp, "Failure responding to request") + return } return @@ -296,6 +298,7 @@ func (client DiagnosticsClient) ExecuteSiteDetector(ctx context.Context, resourc result, err = client.ExecuteSiteDetectorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ExecuteSiteDetector", resp, "Failure responding to request") + return } return @@ -399,6 +402,7 @@ func (client DiagnosticsClient) ExecuteSiteDetectorSlot(ctx context.Context, res result, err = client.ExecuteSiteDetectorSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ExecuteSiteDetectorSlot", resp, "Failure responding to request") + return } return @@ -501,6 +505,7 @@ func (client DiagnosticsClient) GetHostingEnvironmentDetectorResponse(ctx contex result, err = client.GetHostingEnvironmentDetectorResponseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetHostingEnvironmentDetectorResponse", resp, "Failure responding to request") + return } return @@ -596,6 +601,7 @@ func (client DiagnosticsClient) GetSiteAnalysis(ctx context.Context, resourceGro result, err = client.GetSiteAnalysisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteAnalysis", resp, "Failure responding to request") + return } return @@ -684,6 +690,7 @@ func (client DiagnosticsClient) GetSiteAnalysisSlot(ctx context.Context, resourc result, err = client.GetSiteAnalysisSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteAnalysisSlot", resp, "Failure responding to request") + return } return @@ -772,6 +779,7 @@ func (client DiagnosticsClient) GetSiteDetector(ctx context.Context, resourceGro result, err = client.GetSiteDetectorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetector", resp, "Failure responding to request") + return } return @@ -864,6 +872,7 @@ func (client DiagnosticsClient) GetSiteDetectorResponse(ctx context.Context, res result, err = client.GetSiteDetectorResponseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetectorResponse", resp, "Failure responding to request") + return } return @@ -965,6 +974,7 @@ func (client DiagnosticsClient) GetSiteDetectorResponseSlot(ctx context.Context, result, err = client.GetSiteDetectorResponseSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetectorResponseSlot", resp, "Failure responding to request") + return } return @@ -1062,6 +1072,7 @@ func (client DiagnosticsClient) GetSiteDetectorSlot(ctx context.Context, resourc result, err = client.GetSiteDetectorSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetectorSlot", resp, "Failure responding to request") + return } return @@ -1149,6 +1160,7 @@ func (client DiagnosticsClient) GetSiteDiagnosticCategory(ctx context.Context, r result, err = client.GetSiteDiagnosticCategoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDiagnosticCategory", resp, "Failure responding to request") + return } return @@ -1235,6 +1247,7 @@ func (client DiagnosticsClient) GetSiteDiagnosticCategorySlot(ctx context.Contex result, err = client.GetSiteDiagnosticCategorySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDiagnosticCategorySlot", resp, "Failure responding to request") + return } return @@ -1321,6 +1334,7 @@ func (client DiagnosticsClient) ListHostingEnvironmentDetectorResponses(ctx cont result.drc, err = client.ListHostingEnvironmentDetectorResponsesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListHostingEnvironmentDetectorResponses", resp, "Failure responding to request") + return } if result.drc.hasNextLink() && result.drc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1385,6 +1399,7 @@ func (client DiagnosticsClient) listHostingEnvironmentDetectorResponsesNextResul result, err = client.ListHostingEnvironmentDetectorResponsesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listHostingEnvironmentDetectorResponsesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1446,6 +1461,7 @@ func (client DiagnosticsClient) ListSiteAnalyses(ctx context.Context, resourceGr result.dac, err = client.ListSiteAnalysesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteAnalyses", resp, "Failure responding to request") + return } if result.dac.hasNextLink() && result.dac.IsEmpty() { err = result.NextWithContext(ctx) @@ -1511,6 +1527,7 @@ func (client DiagnosticsClient) listSiteAnalysesNextResults(ctx context.Context, result, err = client.ListSiteAnalysesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteAnalysesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1573,6 +1590,7 @@ func (client DiagnosticsClient) ListSiteAnalysesSlot(ctx context.Context, resour result.dac, err = client.ListSiteAnalysesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteAnalysesSlot", resp, "Failure responding to request") + return } if result.dac.hasNextLink() && result.dac.IsEmpty() { err = result.NextWithContext(ctx) @@ -1639,6 +1657,7 @@ func (client DiagnosticsClient) listSiteAnalysesSlotNextResults(ctx context.Cont result, err = client.ListSiteAnalysesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteAnalysesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -1699,6 +1718,7 @@ func (client DiagnosticsClient) ListSiteDetectorResponses(ctx context.Context, r result.drc, err = client.ListSiteDetectorResponsesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDetectorResponses", resp, "Failure responding to request") + return } if result.drc.hasNextLink() && result.drc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1763,6 +1783,7 @@ func (client DiagnosticsClient) listSiteDetectorResponsesNextResults(ctx context result, err = client.ListSiteDetectorResponsesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDetectorResponsesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1824,6 +1845,7 @@ func (client DiagnosticsClient) ListSiteDetectorResponsesSlot(ctx context.Contex result.drc, err = client.ListSiteDetectorResponsesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDetectorResponsesSlot", resp, "Failure responding to request") + return } if result.drc.hasNextLink() && result.drc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1889,6 +1911,7 @@ func (client DiagnosticsClient) listSiteDetectorResponsesSlotNextResults(ctx con result, err = client.ListSiteDetectorResponsesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDetectorResponsesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -1950,6 +1973,7 @@ func (client DiagnosticsClient) ListSiteDetectors(ctx context.Context, resourceG result.ddc, err = client.ListSiteDetectorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDetectors", resp, "Failure responding to request") + return } if result.ddc.hasNextLink() && result.ddc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2015,6 +2039,7 @@ func (client DiagnosticsClient) listSiteDetectorsNextResults(ctx context.Context result, err = client.ListSiteDetectorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDetectorsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2077,6 +2102,7 @@ func (client DiagnosticsClient) ListSiteDetectorsSlot(ctx context.Context, resou result.ddc, err = client.ListSiteDetectorsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDetectorsSlot", resp, "Failure responding to request") + return } if result.ddc.hasNextLink() && result.ddc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2143,6 +2169,7 @@ func (client DiagnosticsClient) listSiteDetectorsSlotNextResults(ctx context.Con result, err = client.ListSiteDetectorsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDetectorsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -2203,6 +2230,7 @@ func (client DiagnosticsClient) ListSiteDiagnosticCategories(ctx context.Context result.dcc, err = client.ListSiteDiagnosticCategoriesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDiagnosticCategories", resp, "Failure responding to request") + return } if result.dcc.hasNextLink() && result.dcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2267,6 +2295,7 @@ func (client DiagnosticsClient) listSiteDiagnosticCategoriesNextResults(ctx cont result, err = client.ListSiteDiagnosticCategoriesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDiagnosticCategoriesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2328,6 +2357,7 @@ func (client DiagnosticsClient) ListSiteDiagnosticCategoriesSlot(ctx context.Con result.dcc, err = client.ListSiteDiagnosticCategoriesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDiagnosticCategoriesSlot", resp, "Failure responding to request") + return } if result.dcc.hasNextLink() && result.dcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2393,6 +2423,7 @@ func (client DiagnosticsClient) listSiteDiagnosticCategoriesSlotNextResults(ctx result, err = client.ListSiteDiagnosticCategoriesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDiagnosticCategoriesSlotNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2019-08-01/web/domainregistrationprovider.go b/services/web/mgmt/2019-08-01/web/domainregistrationprovider.go index 3ce6b98d00fc..677fcf17cb04 100644 --- a/services/web/mgmt/2019-08-01/web/domainregistrationprovider.go +++ b/services/web/mgmt/2019-08-01/web/domainregistrationprovider.go @@ -72,6 +72,7 @@ func (client DomainRegistrationProviderClient) ListOperations(ctx context.Contex result.coc, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainRegistrationProviderClient", "ListOperations", resp, "Failure responding to request") + return } if result.coc.hasNextLink() && result.coc.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client DomainRegistrationProviderClient) listOperationsNextResults(ctx con result, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainRegistrationProviderClient", "listOperationsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2019-08-01/web/domains.go b/services/web/mgmt/2019-08-01/web/domains.go index 5a3a55c73636..8d6492f47a2e 100644 --- a/services/web/mgmt/2019-08-01/web/domains.go +++ b/services/web/mgmt/2019-08-01/web/domains.go @@ -72,6 +72,7 @@ func (client DomainsClient) CheckAvailability(ctx context.Context, identifier Na result, err = client.CheckAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "CheckAvailability", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DomainsClient) CreateOrUpdateOwnershipIdentifier(ctx context.Contex result, err = client.CreateOrUpdateOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "CreateOrUpdateOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -390,6 +392,7 @@ func (client DomainsClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "Delete", resp, "Failure responding to request") + return } return @@ -476,6 +479,7 @@ func (client DomainsClient) DeleteOwnershipIdentifier(ctx context.Context, resou result, err = client.DeleteOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "DeleteOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -559,6 +563,7 @@ func (client DomainsClient) Get(ctx context.Context, resourceGroupName string, d result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "Get", resp, "Failure responding to request") + return } return @@ -631,6 +636,7 @@ func (client DomainsClient) GetControlCenterSsoRequest(ctx context.Context) (res result, err = client.GetControlCenterSsoRequestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "GetControlCenterSsoRequest", resp, "Failure responding to request") + return } return @@ -713,6 +719,7 @@ func (client DomainsClient) GetOwnershipIdentifier(ctx context.Context, resource result, err = client.GetOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "GetOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -787,6 +794,7 @@ func (client DomainsClient) List(ctx context.Context) (result DomainCollectionPa result.dc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "List", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -849,6 +857,7 @@ func (client DomainsClient) listNextResults(ctx context.Context, lastResults Dom result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -908,6 +917,7 @@ func (client DomainsClient) ListByResourceGroup(ctx context.Context, resourceGro result.dc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -971,6 +981,7 @@ func (client DomainsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1031,6 +1042,7 @@ func (client DomainsClient) ListOwnershipIdentifiers(ctx context.Context, resour result.doic, err = client.ListOwnershipIdentifiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "ListOwnershipIdentifiers", resp, "Failure responding to request") + return } if result.doic.hasNextLink() && result.doic.IsEmpty() { err = result.NextWithContext(ctx) @@ -1095,6 +1107,7 @@ func (client DomainsClient) listOwnershipIdentifiersNextResults(ctx context.Cont result, err = client.ListOwnershipIdentifiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "listOwnershipIdentifiersNextResults", resp, "Failure responding to next results request") + return } return } @@ -1146,6 +1159,7 @@ func (client DomainsClient) ListRecommendations(ctx context.Context, parameters result.nic, err = client.ListRecommendationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "ListRecommendations", resp, "Failure responding to request") + return } if result.nic.hasNextLink() && result.nic.IsEmpty() { err = result.NextWithContext(ctx) @@ -1210,6 +1224,7 @@ func (client DomainsClient) listRecommendationsNextResults(ctx context.Context, result, err = client.ListRecommendationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "listRecommendationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1269,6 +1284,7 @@ func (client DomainsClient) Renew(ctx context.Context, resourceGroupName string, result, err = client.RenewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "Renew", resp, "Failure responding to request") + return } return @@ -1354,6 +1370,7 @@ func (client DomainsClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "Update", resp, "Failure responding to request") + return } return @@ -1442,6 +1459,7 @@ func (client DomainsClient) UpdateOwnershipIdentifier(ctx context.Context, resou result, err = client.UpdateOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "UpdateOwnershipIdentifier", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2019-08-01/web/provider.go b/services/web/mgmt/2019-08-01/web/provider.go index 977255694a00..5590add9b3a2 100644 --- a/services/web/mgmt/2019-08-01/web/provider.go +++ b/services/web/mgmt/2019-08-01/web/provider.go @@ -70,6 +70,7 @@ func (client ProviderClient) GetAvailableStacks(ctx context.Context, osTypeSelec result.asc, err = client.GetAvailableStacksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "GetAvailableStacks", resp, "Failure responding to request") + return } if result.asc.hasNextLink() && result.asc.IsEmpty() { err = result.NextWithContext(ctx) @@ -131,6 +132,7 @@ func (client ProviderClient) getAvailableStacksNextResults(ctx context.Context, result, err = client.GetAvailableStacksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "getAvailableStacksNextResults", resp, "Failure responding to next results request") + return } return } @@ -180,6 +182,7 @@ func (client ProviderClient) GetAvailableStacksOnPrem(ctx context.Context, osTyp result.asc, err = client.GetAvailableStacksOnPremResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "GetAvailableStacksOnPrem", resp, "Failure responding to request") + return } if result.asc.hasNextLink() && result.asc.IsEmpty() { err = result.NextWithContext(ctx) @@ -245,6 +248,7 @@ func (client ProviderClient) getAvailableStacksOnPremNextResults(ctx context.Con result, err = client.GetAvailableStacksOnPremResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "getAvailableStacksOnPremNextResults", resp, "Failure responding to next results request") + return } return } @@ -295,6 +299,7 @@ func (client ProviderClient) ListOperations(ctx context.Context) (result CsmOper result.coc, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "ListOperations", resp, "Failure responding to request") + return } if result.coc.hasNextLink() && result.coc.IsEmpty() { err = result.NextWithContext(ctx) @@ -353,6 +358,7 @@ func (client ProviderClient) listOperationsNextResults(ctx context.Context, last result, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "listOperationsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2019-08-01/web/recommendations.go b/services/web/mgmt/2019-08-01/web/recommendations.go index 227638e8521e..4232d3cac192 100644 --- a/services/web/mgmt/2019-08-01/web/recommendations.go +++ b/services/web/mgmt/2019-08-01/web/recommendations.go @@ -81,6 +81,7 @@ func (client RecommendationsClient) DisableAllForHostingEnvironment(ctx context. result, err = client.DisableAllForHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "DisableAllForHostingEnvironment", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client RecommendationsClient) DisableAllForWebApp(ctx context.Context, res result, err = client.DisableAllForWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "DisableAllForWebApp", resp, "Failure responding to request") + return } return @@ -247,6 +249,7 @@ func (client RecommendationsClient) DisableRecommendationForHostingEnvironment(c result, err = client.DisableRecommendationForHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "DisableRecommendationForHostingEnvironment", resp, "Failure responding to request") + return } return @@ -332,6 +335,7 @@ func (client RecommendationsClient) DisableRecommendationForSite(ctx context.Con result, err = client.DisableRecommendationForSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "DisableRecommendationForSite", resp, "Failure responding to request") + return } return @@ -407,6 +411,7 @@ func (client RecommendationsClient) DisableRecommendationForSubscription(ctx con result, err = client.DisableRecommendationForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "DisableRecommendationForSubscription", resp, "Failure responding to request") + return } return @@ -492,6 +497,7 @@ func (client RecommendationsClient) GetRuleDetailsByHostingEnvironment(ctx conte result, err = client.GetRuleDetailsByHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "GetRuleDetailsByHostingEnvironment", resp, "Failure responding to request") + return } return @@ -586,6 +592,7 @@ func (client RecommendationsClient) GetRuleDetailsByWebApp(ctx context.Context, result, err = client.GetRuleDetailsByWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "GetRuleDetailsByWebApp", resp, "Failure responding to request") + return } return @@ -672,6 +679,7 @@ func (client RecommendationsClient) List(ctx context.Context, featured *bool, fi result.rc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "List", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -740,6 +748,7 @@ func (client RecommendationsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -806,6 +815,7 @@ func (client RecommendationsClient) ListHistoryForHostingEnvironment(ctx context result.rc, err = client.ListHistoryForHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ListHistoryForHostingEnvironment", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -876,6 +886,7 @@ func (client RecommendationsClient) listHistoryForHostingEnvironmentNextResults( result, err = client.ListHistoryForHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "listHistoryForHostingEnvironmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -941,6 +952,7 @@ func (client RecommendationsClient) ListHistoryForWebApp(ctx context.Context, re result.rc, err = client.ListHistoryForWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ListHistoryForWebApp", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1011,6 +1023,7 @@ func (client RecommendationsClient) listHistoryForWebAppNextResults(ctx context. result, err = client.ListHistoryForWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "listHistoryForWebAppNextResults", resp, "Failure responding to next results request") + return } return } @@ -1075,6 +1088,7 @@ func (client RecommendationsClient) ListRecommendedRulesForHostingEnvironment(ct result.rc, err = client.ListRecommendedRulesForHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ListRecommendedRulesForHostingEnvironment", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1145,6 +1159,7 @@ func (client RecommendationsClient) listRecommendedRulesForHostingEnvironmentNex result, err = client.ListRecommendedRulesForHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "listRecommendedRulesForHostingEnvironmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -1209,6 +1224,7 @@ func (client RecommendationsClient) ListRecommendedRulesForWebApp(ctx context.Co result.rc, err = client.ListRecommendedRulesForWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ListRecommendedRulesForWebApp", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1279,6 +1295,7 @@ func (client RecommendationsClient) listRecommendedRulesForWebAppNextResults(ctx result, err = client.ListRecommendedRulesForWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "listRecommendedRulesForWebAppNextResults", resp, "Failure responding to next results request") + return } return } @@ -1327,6 +1344,7 @@ func (client RecommendationsClient) ResetAllFilters(ctx context.Context) (result result, err = client.ResetAllFiltersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ResetAllFilters", resp, "Failure responding to request") + return } return @@ -1407,6 +1425,7 @@ func (client RecommendationsClient) ResetAllFiltersForHostingEnvironment(ctx con result, err = client.ResetAllFiltersForHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ResetAllFiltersForHostingEnvironment", resp, "Failure responding to request") + return } return @@ -1490,6 +1509,7 @@ func (client RecommendationsClient) ResetAllFiltersForWebApp(ctx context.Context result, err = client.ResetAllFiltersForWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ResetAllFiltersForWebApp", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2019-08-01/web/resourcehealthmetadata.go b/services/web/mgmt/2019-08-01/web/resourcehealthmetadata.go index 1fc387918bda..2230bf97bf7c 100644 --- a/services/web/mgmt/2019-08-01/web/resourcehealthmetadata.go +++ b/services/web/mgmt/2019-08-01/web/resourcehealthmetadata.go @@ -82,6 +82,7 @@ func (client ResourceHealthMetadataClient) GetBySite(ctx context.Context, resour result, err = client.GetBySiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "GetBySite", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client ResourceHealthMetadataClient) GetBySiteSlot(ctx context.Context, re result, err = client.GetBySiteSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "GetBySiteSlot", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client ResourceHealthMetadataClient) List(ctx context.Context) (result Res result.rhmc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "List", resp, "Failure responding to request") + return } if result.rhmc.hasNextLink() && result.rhmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -302,6 +305,7 @@ func (client ResourceHealthMetadataClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -362,6 +366,7 @@ func (client ResourceHealthMetadataClient) ListByResourceGroup(ctx context.Conte result.rhmc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rhmc.hasNextLink() && result.rhmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -425,6 +430,7 @@ func (client ResourceHealthMetadataClient) listByResourceGroupNextResults(ctx co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -485,6 +491,7 @@ func (client ResourceHealthMetadataClient) ListBySite(ctx context.Context, resou result.rhmc, err = client.ListBySiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "ListBySite", resp, "Failure responding to request") + return } if result.rhmc.hasNextLink() && result.rhmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -549,6 +556,7 @@ func (client ResourceHealthMetadataClient) listBySiteNextResults(ctx context.Con result, err = client.ListBySiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "listBySiteNextResults", resp, "Failure responding to next results request") + return } return } @@ -610,6 +618,7 @@ func (client ResourceHealthMetadataClient) ListBySiteSlot(ctx context.Context, r result.rhmc, err = client.ListBySiteSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "ListBySiteSlot", resp, "Failure responding to request") + return } if result.rhmc.hasNextLink() && result.rhmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -675,6 +684,7 @@ func (client ResourceHealthMetadataClient) listBySiteSlotNextResults(ctx context result, err = client.ListBySiteSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "listBySiteSlotNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2019-08-01/web/staticsites.go b/services/web/mgmt/2019-08-01/web/staticsites.go index 3dd66c5ae717..f73401675075 100644 --- a/services/web/mgmt/2019-08-01/web/staticsites.go +++ b/services/web/mgmt/2019-08-01/web/staticsites.go @@ -83,6 +83,7 @@ func (client StaticSitesClient) CreateOrUpdateStaticSite(ctx context.Context, re result, err = client.CreateOrUpdateStaticSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "CreateOrUpdateStaticSite", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client StaticSitesClient) CreateOrUpdateStaticSiteBuildFunctionAppSettings result, err = client.CreateOrUpdateStaticSiteBuildFunctionAppSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "CreateOrUpdateStaticSiteBuildFunctionAppSettings", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client StaticSitesClient) CreateOrUpdateStaticSiteCustomDomain(ctx context result, err = client.CreateOrUpdateStaticSiteCustomDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "CreateOrUpdateStaticSiteCustomDomain", resp, "Failure responding to request") + return } return @@ -343,6 +346,7 @@ func (client StaticSitesClient) CreateOrUpdateStaticSiteFunctionAppSettings(ctx result, err = client.CreateOrUpdateStaticSiteFunctionAppSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "CreateOrUpdateStaticSiteFunctionAppSettings", resp, "Failure responding to request") + return } return @@ -428,6 +432,7 @@ func (client StaticSitesClient) CreateUserRolesInvitationLink(ctx context.Contex result, err = client.CreateUserRolesInvitationLinkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "CreateUserRolesInvitationLink", resp, "Failure responding to request") + return } return @@ -513,6 +518,7 @@ func (client StaticSitesClient) DeleteStaticSite(ctx context.Context, resourceGr result, err = client.DeleteStaticSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "DeleteStaticSite", resp, "Failure responding to request") + return } return @@ -596,6 +602,7 @@ func (client StaticSitesClient) DeleteStaticSiteBuild(ctx context.Context, resou result, err = client.DeleteStaticSiteBuildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "DeleteStaticSiteBuild", resp, "Failure responding to request") + return } return @@ -680,6 +687,7 @@ func (client StaticSitesClient) DeleteStaticSiteCustomDomain(ctx context.Context result, err = client.DeleteStaticSiteCustomDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "DeleteStaticSiteCustomDomain", resp, "Failure responding to request") + return } return @@ -765,6 +773,7 @@ func (client StaticSitesClient) DeleteStaticSiteUser(ctx context.Context, resour result, err = client.DeleteStaticSiteUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "DeleteStaticSiteUser", resp, "Failure responding to request") + return } return @@ -849,6 +858,7 @@ func (client StaticSitesClient) DetachStaticSite(ctx context.Context, resourceGr result, err = client.DetachStaticSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "DetachStaticSite", resp, "Failure responding to request") + return } return @@ -931,6 +941,7 @@ func (client StaticSitesClient) GetStaticSite(ctx context.Context, resourceGroup result, err = client.GetStaticSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "GetStaticSite", resp, "Failure responding to request") + return } return @@ -1015,6 +1026,7 @@ func (client StaticSitesClient) GetStaticSiteBuild(ctx context.Context, resource result, err = client.GetStaticSiteBuildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "GetStaticSiteBuild", resp, "Failure responding to request") + return } return @@ -1100,6 +1112,7 @@ func (client StaticSitesClient) GetStaticSiteBuilds(ctx context.Context, resourc result.ssbc, err = client.GetStaticSiteBuildsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "GetStaticSiteBuilds", resp, "Failure responding to request") + return } if result.ssbc.hasNextLink() && result.ssbc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1164,6 +1177,7 @@ func (client StaticSitesClient) getStaticSiteBuildsNextResults(ctx context.Conte result, err = client.GetStaticSiteBuildsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "getStaticSiteBuildsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1223,6 +1237,7 @@ func (client StaticSitesClient) GetStaticSitesByResourceGroup(ctx context.Contex result.ssc, err = client.GetStaticSitesByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "GetStaticSitesByResourceGroup", resp, "Failure responding to request") + return } if result.ssc.hasNextLink() && result.ssc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1286,6 +1301,7 @@ func (client StaticSitesClient) getStaticSitesByResourceGroupNextResults(ctx con result, err = client.GetStaticSitesByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "getStaticSitesByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1335,6 +1351,7 @@ func (client StaticSitesClient) List(ctx context.Context) (result StaticSiteColl result.ssc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "List", resp, "Failure responding to request") + return } if result.ssc.hasNextLink() && result.ssc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1397,6 +1414,7 @@ func (client StaticSitesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1457,6 +1475,7 @@ func (client StaticSitesClient) ListStaticSiteBuildFunctionAppSettings(ctx conte result, err = client.ListStaticSiteBuildFunctionAppSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "ListStaticSiteBuildFunctionAppSettings", resp, "Failure responding to request") + return } return @@ -1543,6 +1562,7 @@ func (client StaticSitesClient) ListStaticSiteBuildFunctions(ctx context.Context result.ssfoc, err = client.ListStaticSiteBuildFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "ListStaticSiteBuildFunctions", resp, "Failure responding to request") + return } if result.ssfoc.hasNextLink() && result.ssfoc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1608,6 +1628,7 @@ func (client StaticSitesClient) listStaticSiteBuildFunctionsNextResults(ctx cont result, err = client.ListStaticSiteBuildFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "listStaticSiteBuildFunctionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1668,6 +1689,7 @@ func (client StaticSitesClient) ListStaticSiteCustomDomains(ctx context.Context, result.sscdoc, err = client.ListStaticSiteCustomDomainsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "ListStaticSiteCustomDomains", resp, "Failure responding to request") + return } if result.sscdoc.hasNextLink() && result.sscdoc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1732,6 +1754,7 @@ func (client StaticSitesClient) listStaticSiteCustomDomainsNextResults(ctx conte result, err = client.ListStaticSiteCustomDomainsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "listStaticSiteCustomDomainsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1791,6 +1814,7 @@ func (client StaticSitesClient) ListStaticSiteFunctionAppSettings(ctx context.Co result, err = client.ListStaticSiteFunctionAppSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "ListStaticSiteFunctionAppSettings", resp, "Failure responding to request") + return } return @@ -1875,6 +1899,7 @@ func (client StaticSitesClient) ListStaticSiteFunctions(ctx context.Context, res result.ssfoc, err = client.ListStaticSiteFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "ListStaticSiteFunctions", resp, "Failure responding to request") + return } if result.ssfoc.hasNextLink() && result.ssfoc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1939,6 +1964,7 @@ func (client StaticSitesClient) listStaticSiteFunctionsNextResults(ctx context.C result, err = client.ListStaticSiteFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "listStaticSiteFunctionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1998,6 +2024,7 @@ func (client StaticSitesClient) ListStaticSiteSecrets(ctx context.Context, resou result, err = client.ListStaticSiteSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "ListStaticSiteSecrets", resp, "Failure responding to request") + return } return @@ -2083,6 +2110,7 @@ func (client StaticSitesClient) ListStaticSiteUsers(ctx context.Context, resourc result.ssuc, err = client.ListStaticSiteUsersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "ListStaticSiteUsers", resp, "Failure responding to request") + return } if result.ssuc.hasNextLink() && result.ssuc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2148,6 +2176,7 @@ func (client StaticSitesClient) listStaticSiteUsersNextResults(ctx context.Conte result, err = client.ListStaticSiteUsersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "listStaticSiteUsersNextResults", resp, "Failure responding to next results request") + return } return } @@ -2207,6 +2236,7 @@ func (client StaticSitesClient) ResetStaticSiteAPIKey(ctx context.Context, resou result, err = client.ResetStaticSiteAPIKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "ResetStaticSiteAPIKey", resp, "Failure responding to request") + return } return @@ -2293,6 +2323,7 @@ func (client StaticSitesClient) UpdateStaticSite(ctx context.Context, resourceGr result, err = client.UpdateStaticSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "UpdateStaticSite", resp, "Failure responding to request") + return } return @@ -2381,6 +2412,7 @@ func (client StaticSitesClient) UpdateStaticSiteUser(ctx context.Context, resour result, err = client.UpdateStaticSiteUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "UpdateStaticSiteUser", resp, "Failure responding to request") + return } return @@ -2470,6 +2502,7 @@ func (client StaticSitesClient) ValidateCustomDomainCanBeAddedToStaticSite(ctx c result, err = client.ValidateCustomDomainCanBeAddedToStaticSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "ValidateCustomDomainCanBeAddedToStaticSite", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2019-08-01/web/topleveldomains.go b/services/web/mgmt/2019-08-01/web/topleveldomains.go index dc28bbe370fa..d0885f4a04a6 100644 --- a/services/web/mgmt/2019-08-01/web/topleveldomains.go +++ b/services/web/mgmt/2019-08-01/web/topleveldomains.go @@ -71,6 +71,7 @@ func (client TopLevelDomainsClient) Get(ctx context.Context, name string) (resul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "Get", resp, "Failure responding to request") + return } return @@ -143,6 +144,7 @@ func (client TopLevelDomainsClient) List(ctx context.Context) (result TopLevelDo result.tldc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "List", resp, "Failure responding to request") + return } if result.tldc.hasNextLink() && result.tldc.IsEmpty() { err = result.NextWithContext(ctx) @@ -205,6 +207,7 @@ func (client TopLevelDomainsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -257,6 +260,7 @@ func (client TopLevelDomainsClient) ListAgreements(ctx context.Context, name str result.tlac, err = client.ListAgreementsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "ListAgreements", resp, "Failure responding to request") + return } if result.tlac.hasNextLink() && result.tlac.IsEmpty() { err = result.NextWithContext(ctx) @@ -322,6 +326,7 @@ func (client TopLevelDomainsClient) listAgreementsNextResults(ctx context.Contex result, err = client.ListAgreementsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "listAgreementsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2020-06-01/web/apps.go b/services/web/mgmt/2020-06-01/web/apps.go index 6421ff102d71..5a54efc35824 100644 --- a/services/web/mgmt/2020-06-01/web/apps.go +++ b/services/web/mgmt/2020-06-01/web/apps.go @@ -83,6 +83,7 @@ func (client AppsClient) AddPremierAddOn(ctx context.Context, resourceGroupName result, err = client.AddPremierAddOnResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "AddPremierAddOn", resp, "Failure responding to request") + return } return @@ -173,6 +174,7 @@ func (client AppsClient) AddPremierAddOnSlot(ctx context.Context, resourceGroupN result, err = client.AddPremierAddOnSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "AddPremierAddOnSlot", resp, "Failure responding to request") + return } return @@ -261,6 +263,7 @@ func (client AppsClient) AnalyzeCustomHostname(ctx context.Context, resourceGrou result, err = client.AnalyzeCustomHostnameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "AnalyzeCustomHostname", resp, "Failure responding to request") + return } return @@ -349,6 +352,7 @@ func (client AppsClient) AnalyzeCustomHostnameSlot(ctx context.Context, resource result, err = client.AnalyzeCustomHostnameSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "AnalyzeCustomHostnameSlot", resp, "Failure responding to request") + return } return @@ -441,6 +445,7 @@ func (client AppsClient) ApplySlotConfigToProduction(ctx context.Context, resour result, err = client.ApplySlotConfigToProductionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ApplySlotConfigToProduction", resp, "Failure responding to request") + return } return @@ -531,6 +536,7 @@ func (client AppsClient) ApplySlotConfigurationSlot(ctx context.Context, resourc result, err = client.ApplySlotConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ApplySlotConfigurationSlot", resp, "Failure responding to request") + return } return @@ -712,6 +718,7 @@ func (client AppsClient) Backup(ctx context.Context, resourceGroupName string, n result, err = client.BackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Backup", resp, "Failure responding to request") + return } return @@ -809,6 +816,7 @@ func (client AppsClient) BackupSlot(ctx context.Context, resourceGroupName strin result, err = client.BackupSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "BackupSlot", resp, "Failure responding to request") + return } return @@ -1095,6 +1103,7 @@ func (client AppsClient) CreateDeployment(ctx context.Context, resourceGroupName result, err = client.CreateDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateDeployment", resp, "Failure responding to request") + return } return @@ -1185,6 +1194,7 @@ func (client AppsClient) CreateDeploymentSlot(ctx context.Context, resourceGroup result, err = client.CreateDeploymentSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateDeploymentSlot", resp, "Failure responding to request") + return } return @@ -1917,6 +1927,7 @@ func (client AppsClient) CreateOrUpdateConfiguration(ctx context.Context, resour result, err = client.CreateOrUpdateConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateConfiguration", resp, "Failure responding to request") + return } return @@ -2016,6 +2027,7 @@ func (client AppsClient) CreateOrUpdateConfigurationSlot(ctx context.Context, re result, err = client.CreateOrUpdateConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateConfigurationSlot", resp, "Failure responding to request") + return } return @@ -2105,6 +2117,7 @@ func (client AppsClient) CreateOrUpdateDomainOwnershipIdentifier(ctx context.Con result, err = client.CreateOrUpdateDomainOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateDomainOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -2196,6 +2209,7 @@ func (client AppsClient) CreateOrUpdateDomainOwnershipIdentifierSlot(ctx context result, err = client.CreateOrUpdateDomainOwnershipIdentifierSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateDomainOwnershipIdentifierSlot", resp, "Failure responding to request") + return } return @@ -2286,6 +2300,7 @@ func (client AppsClient) CreateOrUpdateFunctionSecret(ctx context.Context, resou result, err = client.CreateOrUpdateFunctionSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateFunctionSecret", resp, "Failure responding to request") + return } return @@ -2377,6 +2392,7 @@ func (client AppsClient) CreateOrUpdateFunctionSecretSlot(ctx context.Context, r result, err = client.CreateOrUpdateFunctionSecretSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateFunctionSecretSlot", resp, "Failure responding to request") + return } return @@ -2467,6 +2483,7 @@ func (client AppsClient) CreateOrUpdateHostNameBinding(ctx context.Context, reso result, err = client.CreateOrUpdateHostNameBindingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHostNameBinding", resp, "Failure responding to request") + return } return @@ -2557,6 +2574,7 @@ func (client AppsClient) CreateOrUpdateHostNameBindingSlot(ctx context.Context, result, err = client.CreateOrUpdateHostNameBindingSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHostNameBindingSlot", resp, "Failure responding to request") + return } return @@ -2647,6 +2665,7 @@ func (client AppsClient) CreateOrUpdateHostSecret(ctx context.Context, resourceG result, err = client.CreateOrUpdateHostSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHostSecret", resp, "Failure responding to request") + return } return @@ -2738,6 +2757,7 @@ func (client AppsClient) CreateOrUpdateHostSecretSlot(ctx context.Context, resou result, err = client.CreateOrUpdateHostSecretSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHostSecretSlot", resp, "Failure responding to request") + return } return @@ -2829,6 +2849,7 @@ func (client AppsClient) CreateOrUpdateHybridConnection(ctx context.Context, res result, err = client.CreateOrUpdateHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHybridConnection", resp, "Failure responding to request") + return } return @@ -2920,6 +2941,7 @@ func (client AppsClient) CreateOrUpdateHybridConnectionSlot(ctx context.Context, result, err = client.CreateOrUpdateHybridConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHybridConnectionSlot", resp, "Failure responding to request") + return } return @@ -3011,6 +3033,7 @@ func (client AppsClient) CreateOrUpdatePublicCertificate(ctx context.Context, re result, err = client.CreateOrUpdatePublicCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdatePublicCertificate", resp, "Failure responding to request") + return } return @@ -3102,6 +3125,7 @@ func (client AppsClient) CreateOrUpdatePublicCertificateSlot(ctx context.Context result, err = client.CreateOrUpdatePublicCertificateSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdatePublicCertificateSlot", resp, "Failure responding to request") + return } return @@ -3192,6 +3216,7 @@ func (client AppsClient) CreateOrUpdateRelayServiceConnection(ctx context.Contex result, err = client.CreateOrUpdateRelayServiceConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateRelayServiceConnection", resp, "Failure responding to request") + return } return @@ -3283,6 +3308,7 @@ func (client AppsClient) CreateOrUpdateRelayServiceConnectionSlot(ctx context.Co result, err = client.CreateOrUpdateRelayServiceConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateRelayServiceConnectionSlot", resp, "Failure responding to request") + return } return @@ -3655,6 +3681,7 @@ func (client AppsClient) CreateOrUpdateSwiftVirtualNetworkConnection(ctx context result, err = client.CreateOrUpdateSwiftVirtualNetworkConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateSwiftVirtualNetworkConnection", resp, "Failure responding to request") + return } return @@ -3746,6 +3773,7 @@ func (client AppsClient) CreateOrUpdateSwiftVirtualNetworkConnectionSlot(ctx con result, err = client.CreateOrUpdateSwiftVirtualNetworkConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateSwiftVirtualNetworkConnectionSlot", resp, "Failure responding to request") + return } return @@ -3835,6 +3863,7 @@ func (client AppsClient) CreateOrUpdateVnetConnection(ctx context.Context, resou result, err = client.CreateOrUpdateVnetConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateVnetConnection", resp, "Failure responding to request") + return } return @@ -3928,6 +3957,7 @@ func (client AppsClient) CreateOrUpdateVnetConnectionGateway(ctx context.Context result, err = client.CreateOrUpdateVnetConnectionGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateVnetConnectionGateway", resp, "Failure responding to request") + return } return @@ -4024,6 +4054,7 @@ func (client AppsClient) CreateOrUpdateVnetConnectionGatewaySlot(ctx context.Con result, err = client.CreateOrUpdateVnetConnectionGatewaySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateVnetConnectionGatewaySlot", resp, "Failure responding to request") + return } return @@ -4117,6 +4148,7 @@ func (client AppsClient) CreateOrUpdateVnetConnectionSlot(ctx context.Context, r result, err = client.CreateOrUpdateVnetConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateVnetConnectionSlot", resp, "Failure responding to request") + return } return @@ -4207,6 +4239,7 @@ func (client AppsClient) Delete(ctx context.Context, resourceGroupName string, n result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Delete", resp, "Failure responding to request") + return } return @@ -4296,6 +4329,7 @@ func (client AppsClient) DeleteBackup(ctx context.Context, resourceGroupName str result, err = client.DeleteBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteBackup", resp, "Failure responding to request") + return } return @@ -4379,6 +4413,7 @@ func (client AppsClient) DeleteBackupConfiguration(ctx context.Context, resource result, err = client.DeleteBackupConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteBackupConfiguration", resp, "Failure responding to request") + return } return @@ -4463,6 +4498,7 @@ func (client AppsClient) DeleteBackupConfigurationSlot(ctx context.Context, reso result, err = client.DeleteBackupConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteBackupConfigurationSlot", resp, "Failure responding to request") + return } return @@ -4549,6 +4585,7 @@ func (client AppsClient) DeleteBackupSlot(ctx context.Context, resourceGroupName result, err = client.DeleteBackupSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteBackupSlot", resp, "Failure responding to request") + return } return @@ -4634,6 +4671,7 @@ func (client AppsClient) DeleteContinuousWebJob(ctx context.Context, resourceGro result, err = client.DeleteContinuousWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteContinuousWebJob", resp, "Failure responding to request") + return } return @@ -4720,6 +4758,7 @@ func (client AppsClient) DeleteContinuousWebJobSlot(ctx context.Context, resourc result, err = client.DeleteContinuousWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteContinuousWebJobSlot", resp, "Failure responding to request") + return } return @@ -4805,6 +4844,7 @@ func (client AppsClient) DeleteDeployment(ctx context.Context, resourceGroupName result, err = client.DeleteDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteDeployment", resp, "Failure responding to request") + return } return @@ -4891,6 +4931,7 @@ func (client AppsClient) DeleteDeploymentSlot(ctx context.Context, resourceGroup result, err = client.DeleteDeploymentSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteDeploymentSlot", resp, "Failure responding to request") + return } return @@ -4976,6 +5017,7 @@ func (client AppsClient) DeleteDomainOwnershipIdentifier(ctx context.Context, re result, err = client.DeleteDomainOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteDomainOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -5062,6 +5104,7 @@ func (client AppsClient) DeleteDomainOwnershipIdentifierSlot(ctx context.Context result, err = client.DeleteDomainOwnershipIdentifierSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteDomainOwnershipIdentifierSlot", resp, "Failure responding to request") + return } return @@ -5147,6 +5190,7 @@ func (client AppsClient) DeleteFunction(ctx context.Context, resourceGroupName s result, err = client.DeleteFunctionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteFunction", resp, "Failure responding to request") + return } return @@ -5232,6 +5276,7 @@ func (client AppsClient) DeleteFunctionSecret(ctx context.Context, resourceGroup result, err = client.DeleteFunctionSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteFunctionSecret", resp, "Failure responding to request") + return } return @@ -5319,6 +5364,7 @@ func (client AppsClient) DeleteFunctionSecretSlot(ctx context.Context, resourceG result, err = client.DeleteFunctionSecretSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteFunctionSecretSlot", resp, "Failure responding to request") + return } return @@ -5405,6 +5451,7 @@ func (client AppsClient) DeleteHostNameBinding(ctx context.Context, resourceGrou result, err = client.DeleteHostNameBindingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHostNameBinding", resp, "Failure responding to request") + return } return @@ -5491,6 +5538,7 @@ func (client AppsClient) DeleteHostNameBindingSlot(ctx context.Context, resource result, err = client.DeleteHostNameBindingSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHostNameBindingSlot", resp, "Failure responding to request") + return } return @@ -5577,6 +5625,7 @@ func (client AppsClient) DeleteHostSecret(ctx context.Context, resourceGroupName result, err = client.DeleteHostSecretResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHostSecret", resp, "Failure responding to request") + return } return @@ -5664,6 +5713,7 @@ func (client AppsClient) DeleteHostSecretSlot(ctx context.Context, resourceGroup result, err = client.DeleteHostSecretSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHostSecretSlot", resp, "Failure responding to request") + return } return @@ -5751,6 +5801,7 @@ func (client AppsClient) DeleteHybridConnection(ctx context.Context, resourceGro result, err = client.DeleteHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHybridConnection", resp, "Failure responding to request") + return } return @@ -5838,6 +5889,7 @@ func (client AppsClient) DeleteHybridConnectionSlot(ctx context.Context, resourc result, err = client.DeleteHybridConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHybridConnectionSlot", resp, "Failure responding to request") + return } return @@ -5925,6 +5977,7 @@ func (client AppsClient) DeleteInstanceFunctionSlot(ctx context.Context, resourc result, err = client.DeleteInstanceFunctionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteInstanceFunctionSlot", resp, "Failure responding to request") + return } return @@ -6013,6 +6066,7 @@ func (client AppsClient) DeleteInstanceProcess(ctx context.Context, resourceGrou result, err = client.DeleteInstanceProcessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteInstanceProcess", resp, "Failure responding to request") + return } return @@ -6103,6 +6157,7 @@ func (client AppsClient) DeleteInstanceProcessSlot(ctx context.Context, resource result, err = client.DeleteInstanceProcessSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteInstanceProcessSlot", resp, "Failure responding to request") + return } return @@ -6189,6 +6244,7 @@ func (client AppsClient) DeletePremierAddOn(ctx context.Context, resourceGroupNa result, err = client.DeletePremierAddOnResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeletePremierAddOn", resp, "Failure responding to request") + return } return @@ -6275,6 +6331,7 @@ func (client AppsClient) DeletePremierAddOnSlot(ctx context.Context, resourceGro result, err = client.DeletePremierAddOnSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeletePremierAddOnSlot", resp, "Failure responding to request") + return } return @@ -6445,6 +6502,7 @@ func (client AppsClient) DeleteProcess(ctx context.Context, resourceGroupName st result, err = client.DeleteProcessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteProcess", resp, "Failure responding to request") + return } return @@ -6532,6 +6590,7 @@ func (client AppsClient) DeleteProcessSlot(ctx context.Context, resourceGroupNam result, err = client.DeleteProcessSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteProcessSlot", resp, "Failure responding to request") + return } return @@ -6617,6 +6676,7 @@ func (client AppsClient) DeletePublicCertificate(ctx context.Context, resourceGr result, err = client.DeletePublicCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeletePublicCertificate", resp, "Failure responding to request") + return } return @@ -6703,6 +6763,7 @@ func (client AppsClient) DeletePublicCertificateSlot(ctx context.Context, resour result, err = client.DeletePublicCertificateSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeletePublicCertificateSlot", resp, "Failure responding to request") + return } return @@ -6788,6 +6849,7 @@ func (client AppsClient) DeleteRelayServiceConnection(ctx context.Context, resou result, err = client.DeleteRelayServiceConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteRelayServiceConnection", resp, "Failure responding to request") + return } return @@ -6874,6 +6936,7 @@ func (client AppsClient) DeleteRelayServiceConnectionSlot(ctx context.Context, r result, err = client.DeleteRelayServiceConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteRelayServiceConnectionSlot", resp, "Failure responding to request") + return } return @@ -6959,6 +7022,7 @@ func (client AppsClient) DeleteSiteExtension(ctx context.Context, resourceGroupN result, err = client.DeleteSiteExtensionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSiteExtension", resp, "Failure responding to request") + return } return @@ -7045,6 +7109,7 @@ func (client AppsClient) DeleteSiteExtensionSlot(ctx context.Context, resourceGr result, err = client.DeleteSiteExtensionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSiteExtensionSlot", resp, "Failure responding to request") + return } return @@ -7133,6 +7198,7 @@ func (client AppsClient) DeleteSlot(ctx context.Context, resourceGroupName strin result, err = client.DeleteSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSlot", resp, "Failure responding to request") + return } return @@ -7222,6 +7288,7 @@ func (client AppsClient) DeleteSourceControl(ctx context.Context, resourceGroupN result, err = client.DeleteSourceControlResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSourceControl", resp, "Failure responding to request") + return } return @@ -7306,6 +7373,7 @@ func (client AppsClient) DeleteSourceControlSlot(ctx context.Context, resourceGr result, err = client.DeleteSourceControlSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSourceControlSlot", resp, "Failure responding to request") + return } return @@ -7390,6 +7458,7 @@ func (client AppsClient) DeleteSwiftVirtualNetwork(ctx context.Context, resource result, err = client.DeleteSwiftVirtualNetworkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSwiftVirtualNetwork", resp, "Failure responding to request") + return } return @@ -7475,6 +7544,7 @@ func (client AppsClient) DeleteSwiftVirtualNetworkSlot(ctx context.Context, reso result, err = client.DeleteSwiftVirtualNetworkSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSwiftVirtualNetworkSlot", resp, "Failure responding to request") + return } return @@ -7559,6 +7629,7 @@ func (client AppsClient) DeleteTriggeredWebJob(ctx context.Context, resourceGrou result, err = client.DeleteTriggeredWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteTriggeredWebJob", resp, "Failure responding to request") + return } return @@ -7645,6 +7716,7 @@ func (client AppsClient) DeleteTriggeredWebJobSlot(ctx context.Context, resource result, err = client.DeleteTriggeredWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteTriggeredWebJobSlot", resp, "Failure responding to request") + return } return @@ -7731,6 +7803,7 @@ func (client AppsClient) DeleteVnetConnection(ctx context.Context, resourceGroup result, err = client.DeleteVnetConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteVnetConnection", resp, "Failure responding to request") + return } return @@ -7818,6 +7891,7 @@ func (client AppsClient) DeleteVnetConnectionSlot(ctx context.Context, resourceG result, err = client.DeleteVnetConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteVnetConnectionSlot", resp, "Failure responding to request") + return } return @@ -7909,6 +7983,7 @@ func (client AppsClient) DiscoverBackup(ctx context.Context, resourceGroupName s result, err = client.DiscoverBackupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DiscoverBackup", resp, "Failure responding to request") + return } return @@ -8003,6 +8078,7 @@ func (client AppsClient) DiscoverBackupSlot(ctx context.Context, resourceGroupNa result, err = client.DiscoverBackupSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "DiscoverBackupSlot", resp, "Failure responding to request") + return } return @@ -8090,6 +8166,7 @@ func (client AppsClient) GenerateNewSitePublishingPassword(ctx context.Context, result, err = client.GenerateNewSitePublishingPasswordResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GenerateNewSitePublishingPassword", resp, "Failure responding to request") + return } return @@ -8175,6 +8252,7 @@ func (client AppsClient) GenerateNewSitePublishingPasswordSlot(ctx context.Conte result, err = client.GenerateNewSitePublishingPasswordSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GenerateNewSitePublishingPasswordSlot", resp, "Failure responding to request") + return } return @@ -8258,6 +8336,7 @@ func (client AppsClient) Get(ctx context.Context, resourceGroupName string, name result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Get", resp, "Failure responding to request") + return } return @@ -8341,6 +8420,7 @@ func (client AppsClient) GetAuthSettings(ctx context.Context, resourceGroupName result, err = client.GetAuthSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetAuthSettings", resp, "Failure responding to request") + return } return @@ -8426,6 +8506,7 @@ func (client AppsClient) GetAuthSettingsSlot(ctx context.Context, resourceGroupN result, err = client.GetAuthSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetAuthSettingsSlot", resp, "Failure responding to request") + return } return @@ -8510,6 +8591,7 @@ func (client AppsClient) GetAuthSettingsV2(ctx context.Context, resourceGroupNam result, err = client.GetAuthSettingsV2Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetAuthSettingsV2", resp, "Failure responding to request") + return } return @@ -8595,6 +8677,7 @@ func (client AppsClient) GetAuthSettingsV2Slot(ctx context.Context, resourceGrou result, err = client.GetAuthSettingsV2SlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetAuthSettingsV2Slot", resp, "Failure responding to request") + return } return @@ -8679,6 +8762,7 @@ func (client AppsClient) GetBackupConfiguration(ctx context.Context, resourceGro result, err = client.GetBackupConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetBackupConfiguration", resp, "Failure responding to request") + return } return @@ -8764,6 +8848,7 @@ func (client AppsClient) GetBackupConfigurationSlot(ctx context.Context, resourc result, err = client.GetBackupConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetBackupConfigurationSlot", resp, "Failure responding to request") + return } return @@ -8849,6 +8934,7 @@ func (client AppsClient) GetBackupStatus(ctx context.Context, resourceGroupName result, err = client.GetBackupStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetBackupStatus", resp, "Failure responding to request") + return } return @@ -8936,6 +9022,7 @@ func (client AppsClient) GetBackupStatusSlot(ctx context.Context, resourceGroupN result, err = client.GetBackupStatusSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetBackupStatusSlot", resp, "Failure responding to request") + return } return @@ -9022,6 +9109,7 @@ func (client AppsClient) GetBasicPublishingCredentialsPolicies(ctx context.Conte result, err = client.GetBasicPublishingCredentialsPoliciesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetBasicPublishingCredentialsPolicies", resp, "Failure responding to request") + return } return @@ -9106,6 +9194,7 @@ func (client AppsClient) GetConfiguration(ctx context.Context, resourceGroupName result, err = client.GetConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetConfiguration", resp, "Failure responding to request") + return } return @@ -9192,6 +9281,7 @@ func (client AppsClient) GetConfigurationSlot(ctx context.Context, resourceGroup result, err = client.GetConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetConfigurationSlot", resp, "Failure responding to request") + return } return @@ -9277,6 +9367,7 @@ func (client AppsClient) GetConfigurationSnapshot(ctx context.Context, resourceG result, err = client.GetConfigurationSnapshotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetConfigurationSnapshot", resp, "Failure responding to request") + return } return @@ -9365,6 +9456,7 @@ func (client AppsClient) GetConfigurationSnapshotSlot(ctx context.Context, resou result, err = client.GetConfigurationSnapshotSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetConfigurationSnapshotSlot", resp, "Failure responding to request") + return } return @@ -9450,6 +9542,7 @@ func (client AppsClient) GetContainerLogsZip(ctx context.Context, resourceGroupN result, err = client.GetContainerLogsZipResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetContainerLogsZip", resp, "Failure responding to request") + return } return @@ -9533,6 +9626,7 @@ func (client AppsClient) GetContainerLogsZipSlot(ctx context.Context, resourceGr result, err = client.GetContainerLogsZipSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetContainerLogsZipSlot", resp, "Failure responding to request") + return } return @@ -9617,6 +9711,7 @@ func (client AppsClient) GetContinuousWebJob(ctx context.Context, resourceGroupN result, err = client.GetContinuousWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetContinuousWebJob", resp, "Failure responding to request") + return } return @@ -9704,6 +9799,7 @@ func (client AppsClient) GetContinuousWebJobSlot(ctx context.Context, resourceGr result, err = client.GetContinuousWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetContinuousWebJobSlot", resp, "Failure responding to request") + return } return @@ -9790,6 +9886,7 @@ func (client AppsClient) GetDeployment(ctx context.Context, resourceGroupName st result, err = client.GetDeploymentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetDeployment", resp, "Failure responding to request") + return } return @@ -9877,6 +9974,7 @@ func (client AppsClient) GetDeploymentSlot(ctx context.Context, resourceGroupNam result, err = client.GetDeploymentSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetDeploymentSlot", resp, "Failure responding to request") + return } return @@ -9962,6 +10060,7 @@ func (client AppsClient) GetDiagnosticLogsConfiguration(ctx context.Context, res result, err = client.GetDiagnosticLogsConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetDiagnosticLogsConfiguration", resp, "Failure responding to request") + return } return @@ -10047,6 +10146,7 @@ func (client AppsClient) GetDiagnosticLogsConfigurationSlot(ctx context.Context, result, err = client.GetDiagnosticLogsConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetDiagnosticLogsConfigurationSlot", resp, "Failure responding to request") + return } return @@ -10132,6 +10232,7 @@ func (client AppsClient) GetDomainOwnershipIdentifier(ctx context.Context, resou result, err = client.GetDomainOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetDomainOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -10219,6 +10320,7 @@ func (client AppsClient) GetDomainOwnershipIdentifierSlot(ctx context.Context, r result, err = client.GetDomainOwnershipIdentifierSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetDomainOwnershipIdentifierSlot", resp, "Failure responding to request") + return } return @@ -10304,6 +10406,7 @@ func (client AppsClient) GetFtpAllowed(ctx context.Context, resourceGroupName st result, err = client.GetFtpAllowedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetFtpAllowed", resp, "Failure responding to request") + return } return @@ -10388,6 +10491,7 @@ func (client AppsClient) GetFunction(ctx context.Context, resourceGroupName stri result, err = client.GetFunctionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetFunction", resp, "Failure responding to request") + return } return @@ -10472,6 +10576,7 @@ func (client AppsClient) GetFunctionsAdminToken(ctx context.Context, resourceGro result, err = client.GetFunctionsAdminTokenResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetFunctionsAdminToken", resp, "Failure responding to request") + return } return @@ -10556,6 +10661,7 @@ func (client AppsClient) GetFunctionsAdminTokenSlot(ctx context.Context, resourc result, err = client.GetFunctionsAdminTokenSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetFunctionsAdminTokenSlot", resp, "Failure responding to request") + return } return @@ -10641,6 +10747,7 @@ func (client AppsClient) GetHostNameBinding(ctx context.Context, resourceGroupNa result, err = client.GetHostNameBindingResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetHostNameBinding", resp, "Failure responding to request") + return } return @@ -10728,6 +10835,7 @@ func (client AppsClient) GetHostNameBindingSlot(ctx context.Context, resourceGro result, err = client.GetHostNameBindingSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetHostNameBindingSlot", resp, "Failure responding to request") + return } return @@ -10815,6 +10923,7 @@ func (client AppsClient) GetHybridConnection(ctx context.Context, resourceGroupN result, err = client.GetHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetHybridConnection", resp, "Failure responding to request") + return } return @@ -10903,6 +11012,7 @@ func (client AppsClient) GetHybridConnectionSlot(ctx context.Context, resourceGr result, err = client.GetHybridConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetHybridConnectionSlot", resp, "Failure responding to request") + return } return @@ -10991,6 +11101,7 @@ func (client AppsClient) GetInstanceFunctionSlot(ctx context.Context, resourceGr result, err = client.GetInstanceFunctionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceFunctionSlot", resp, "Failure responding to request") + return } return @@ -11076,6 +11187,7 @@ func (client AppsClient) GetInstanceInfo(ctx context.Context, resourceGroupName result, err = client.GetInstanceInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceInfo", resp, "Failure responding to request") + return } return @@ -11161,6 +11273,7 @@ func (client AppsClient) GetInstanceInfoSlot(ctx context.Context, resourceGroupN result, err = client.GetInstanceInfoSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceInfoSlot", resp, "Failure responding to request") + return } return @@ -11247,6 +11360,7 @@ func (client AppsClient) GetInstanceMSDeployLog(ctx context.Context, resourceGro result, err = client.GetInstanceMSDeployLogResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceMSDeployLog", resp, "Failure responding to request") + return } return @@ -11333,6 +11447,7 @@ func (client AppsClient) GetInstanceMSDeployLogSlot(ctx context.Context, resourc result, err = client.GetInstanceMSDeployLogSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceMSDeployLogSlot", resp, "Failure responding to request") + return } return @@ -11419,6 +11534,7 @@ func (client AppsClient) GetInstanceMsDeployStatus(ctx context.Context, resource result, err = client.GetInstanceMsDeployStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceMsDeployStatus", resp, "Failure responding to request") + return } return @@ -11505,6 +11621,7 @@ func (client AppsClient) GetInstanceMsDeployStatusSlot(ctx context.Context, reso result, err = client.GetInstanceMsDeployStatusSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceMsDeployStatusSlot", resp, "Failure responding to request") + return } return @@ -11594,6 +11711,7 @@ func (client AppsClient) GetInstanceProcess(ctx context.Context, resourceGroupNa result, err = client.GetInstanceProcessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcess", resp, "Failure responding to request") + return } return @@ -11683,6 +11801,7 @@ func (client AppsClient) GetInstanceProcessDump(ctx context.Context, resourceGro result, err = client.GetInstanceProcessDumpResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessDump", resp, "Failure responding to request") + return } return @@ -11773,6 +11892,7 @@ func (client AppsClient) GetInstanceProcessDumpSlot(ctx context.Context, resourc result, err = client.GetInstanceProcessDumpSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessDumpSlot", resp, "Failure responding to request") + return } return @@ -11863,6 +11983,7 @@ func (client AppsClient) GetInstanceProcessModule(ctx context.Context, resourceG result, err = client.GetInstanceProcessModuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessModule", resp, "Failure responding to request") + return } return @@ -11956,6 +12077,7 @@ func (client AppsClient) GetInstanceProcessModuleSlot(ctx context.Context, resou result, err = client.GetInstanceProcessModuleSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessModuleSlot", resp, "Failure responding to request") + return } return @@ -12049,6 +12171,7 @@ func (client AppsClient) GetInstanceProcessSlot(ctx context.Context, resourceGro result, err = client.GetInstanceProcessSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessSlot", resp, "Failure responding to request") + return } return @@ -12136,6 +12259,7 @@ func (client AppsClient) GetMigrateMySQLStatus(ctx context.Context, resourceGrou result, err = client.GetMigrateMySQLStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetMigrateMySQLStatus", resp, "Failure responding to request") + return } return @@ -12221,6 +12345,7 @@ func (client AppsClient) GetMigrateMySQLStatusSlot(ctx context.Context, resource result, err = client.GetMigrateMySQLStatusSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetMigrateMySQLStatusSlot", resp, "Failure responding to request") + return } return @@ -12305,6 +12430,7 @@ func (client AppsClient) GetMSDeployLog(ctx context.Context, resourceGroupName s result, err = client.GetMSDeployLogResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetMSDeployLog", resp, "Failure responding to request") + return } return @@ -12389,6 +12515,7 @@ func (client AppsClient) GetMSDeployLogSlot(ctx context.Context, resourceGroupNa result, err = client.GetMSDeployLogSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetMSDeployLogSlot", resp, "Failure responding to request") + return } return @@ -12473,6 +12600,7 @@ func (client AppsClient) GetMSDeployStatus(ctx context.Context, resourceGroupNam result, err = client.GetMSDeployStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetMSDeployStatus", resp, "Failure responding to request") + return } return @@ -12557,6 +12685,7 @@ func (client AppsClient) GetMSDeployStatusSlot(ctx context.Context, resourceGrou result, err = client.GetMSDeployStatusSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetMSDeployStatusSlot", resp, "Failure responding to request") + return } return @@ -12643,6 +12772,7 @@ func (client AppsClient) GetNetworkTraceOperation(ctx context.Context, resourceG result, err = client.GetNetworkTraceOperationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetNetworkTraceOperation", resp, "Failure responding to request") + return } return @@ -12731,6 +12861,7 @@ func (client AppsClient) GetNetworkTraceOperationSlot(ctx context.Context, resou result, err = client.GetNetworkTraceOperationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetNetworkTraceOperationSlot", resp, "Failure responding to request") + return } return @@ -12820,6 +12951,7 @@ func (client AppsClient) GetNetworkTraceOperationSlotV2(ctx context.Context, res result, err = client.GetNetworkTraceOperationSlotV2Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetNetworkTraceOperationSlotV2", resp, "Failure responding to request") + return } return @@ -12907,6 +13039,7 @@ func (client AppsClient) GetNetworkTraceOperationV2(ctx context.Context, resourc result, err = client.GetNetworkTraceOperationV2Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetNetworkTraceOperationV2", resp, "Failure responding to request") + return } return @@ -12993,6 +13126,7 @@ func (client AppsClient) GetNetworkTraces(ctx context.Context, resourceGroupName result, err = client.GetNetworkTracesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetNetworkTraces", resp, "Failure responding to request") + return } return @@ -13081,6 +13215,7 @@ func (client AppsClient) GetNetworkTracesSlot(ctx context.Context, resourceGroup result, err = client.GetNetworkTracesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetNetworkTracesSlot", resp, "Failure responding to request") + return } return @@ -13170,6 +13305,7 @@ func (client AppsClient) GetNetworkTracesSlotV2(ctx context.Context, resourceGro result, err = client.GetNetworkTracesSlotV2Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetNetworkTracesSlotV2", resp, "Failure responding to request") + return } return @@ -13257,6 +13393,7 @@ func (client AppsClient) GetNetworkTracesV2(ctx context.Context, resourceGroupNa result, err = client.GetNetworkTracesV2Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetNetworkTracesV2", resp, "Failure responding to request") + return } return @@ -13342,6 +13479,7 @@ func (client AppsClient) GetPremierAddOn(ctx context.Context, resourceGroupName result, err = client.GetPremierAddOnResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetPremierAddOn", resp, "Failure responding to request") + return } return @@ -13429,6 +13567,7 @@ func (client AppsClient) GetPremierAddOnSlot(ctx context.Context, resourceGroupN result, err = client.GetPremierAddOnSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetPremierAddOnSlot", resp, "Failure responding to request") + return } return @@ -13515,6 +13654,7 @@ func (client AppsClient) GetPrivateAccess(ctx context.Context, resourceGroupName result, err = client.GetPrivateAccessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetPrivateAccess", resp, "Failure responding to request") + return } return @@ -13600,6 +13740,7 @@ func (client AppsClient) GetPrivateAccessSlot(ctx context.Context, resourceGroup result, err = client.GetPrivateAccessSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetPrivateAccessSlot", resp, "Failure responding to request") + return } return @@ -13684,6 +13825,7 @@ func (client AppsClient) GetPrivateEndpointConnection(ctx context.Context, resou result, err = client.GetPrivateEndpointConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetPrivateEndpointConnection", resp, "Failure responding to request") + return } return @@ -13768,6 +13910,7 @@ func (client AppsClient) GetPrivateLinkResources(ctx context.Context, resourceGr result, err = client.GetPrivateLinkResourcesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetPrivateLinkResources", resp, "Failure responding to request") + return } return @@ -13852,6 +13995,7 @@ func (client AppsClient) GetProcess(ctx context.Context, resourceGroupName strin result, err = client.GetProcessResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcess", resp, "Failure responding to request") + return } return @@ -13938,6 +14082,7 @@ func (client AppsClient) GetProcessDump(ctx context.Context, resourceGroupName s result, err = client.GetProcessDumpResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessDump", resp, "Failure responding to request") + return } return @@ -14025,6 +14170,7 @@ func (client AppsClient) GetProcessDumpSlot(ctx context.Context, resourceGroupNa result, err = client.GetProcessDumpSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessDumpSlot", resp, "Failure responding to request") + return } return @@ -14111,6 +14257,7 @@ func (client AppsClient) GetProcessModule(ctx context.Context, resourceGroupName result, err = client.GetProcessModuleResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessModule", resp, "Failure responding to request") + return } return @@ -14201,6 +14348,7 @@ func (client AppsClient) GetProcessModuleSlot(ctx context.Context, resourceGroup result, err = client.GetProcessModuleSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessModuleSlot", resp, "Failure responding to request") + return } return @@ -14290,6 +14438,7 @@ func (client AppsClient) GetProcessSlot(ctx context.Context, resourceGroupName s result, err = client.GetProcessSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessSlot", resp, "Failure responding to request") + return } return @@ -14376,6 +14525,7 @@ func (client AppsClient) GetPublicCertificate(ctx context.Context, resourceGroup result, err = client.GetPublicCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetPublicCertificate", resp, "Failure responding to request") + return } return @@ -14464,6 +14614,7 @@ func (client AppsClient) GetPublicCertificateSlot(ctx context.Context, resourceG result, err = client.GetPublicCertificateSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetPublicCertificateSlot", resp, "Failure responding to request") + return } return @@ -14550,6 +14701,7 @@ func (client AppsClient) GetRelayServiceConnection(ctx context.Context, resource result, err = client.GetRelayServiceConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetRelayServiceConnection", resp, "Failure responding to request") + return } return @@ -14637,6 +14789,7 @@ func (client AppsClient) GetRelayServiceConnectionSlot(ctx context.Context, reso result, err = client.GetRelayServiceConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetRelayServiceConnectionSlot", resp, "Failure responding to request") + return } return @@ -14722,6 +14875,7 @@ func (client AppsClient) GetScmAllowed(ctx context.Context, resourceGroupName st result, err = client.GetScmAllowedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetScmAllowed", resp, "Failure responding to request") + return } return @@ -14806,6 +14960,7 @@ func (client AppsClient) GetSiteExtension(ctx context.Context, resourceGroupName result, err = client.GetSiteExtensionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSiteExtension", resp, "Failure responding to request") + return } return @@ -14892,6 +15047,7 @@ func (client AppsClient) GetSiteExtensionSlot(ctx context.Context, resourceGroup result, err = client.GetSiteExtensionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSiteExtensionSlot", resp, "Failure responding to request") + return } return @@ -14977,6 +15133,7 @@ func (client AppsClient) GetSitePhpErrorLogFlag(ctx context.Context, resourceGro result, err = client.GetSitePhpErrorLogFlagResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSitePhpErrorLogFlag", resp, "Failure responding to request") + return } return @@ -15061,6 +15218,7 @@ func (client AppsClient) GetSitePhpErrorLogFlagSlot(ctx context.Context, resourc result, err = client.GetSitePhpErrorLogFlagSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSitePhpErrorLogFlagSlot", resp, "Failure responding to request") + return } return @@ -15146,6 +15304,7 @@ func (client AppsClient) GetSlot(ctx context.Context, resourceGroupName string, result, err = client.GetSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSlot", resp, "Failure responding to request") + return } return @@ -15230,6 +15389,7 @@ func (client AppsClient) GetSourceControl(ctx context.Context, resourceGroupName result, err = client.GetSourceControlResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSourceControl", resp, "Failure responding to request") + return } return @@ -15315,6 +15475,7 @@ func (client AppsClient) GetSourceControlSlot(ctx context.Context, resourceGroup result, err = client.GetSourceControlSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSourceControlSlot", resp, "Failure responding to request") + return } return @@ -15399,6 +15560,7 @@ func (client AppsClient) GetSwiftVirtualNetworkConnection(ctx context.Context, r result, err = client.GetSwiftVirtualNetworkConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSwiftVirtualNetworkConnection", resp, "Failure responding to request") + return } return @@ -15484,6 +15646,7 @@ func (client AppsClient) GetSwiftVirtualNetworkConnectionSlot(ctx context.Contex result, err = client.GetSwiftVirtualNetworkConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSwiftVirtualNetworkConnectionSlot", resp, "Failure responding to request") + return } return @@ -15569,6 +15732,7 @@ func (client AppsClient) GetTriggeredWebJob(ctx context.Context, resourceGroupNa result, err = client.GetTriggeredWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJob", resp, "Failure responding to request") + return } return @@ -15656,6 +15820,7 @@ func (client AppsClient) GetTriggeredWebJobHistory(ctx context.Context, resource result, err = client.GetTriggeredWebJobHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJobHistory", resp, "Failure responding to request") + return } return @@ -15745,6 +15910,7 @@ func (client AppsClient) GetTriggeredWebJobHistorySlot(ctx context.Context, reso result, err = client.GetTriggeredWebJobHistorySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJobHistorySlot", resp, "Failure responding to request") + return } return @@ -15833,6 +15999,7 @@ func (client AppsClient) GetTriggeredWebJobSlot(ctx context.Context, resourceGro result, err = client.GetTriggeredWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJobSlot", resp, "Failure responding to request") + return } return @@ -15919,6 +16086,7 @@ func (client AppsClient) GetVnetConnection(ctx context.Context, resourceGroupNam result, err = client.GetVnetConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetVnetConnection", resp, "Failure responding to request") + return } return @@ -16005,6 +16173,7 @@ func (client AppsClient) GetVnetConnectionGateway(ctx context.Context, resourceG result, err = client.GetVnetConnectionGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetVnetConnectionGateway", resp, "Failure responding to request") + return } return @@ -16094,6 +16263,7 @@ func (client AppsClient) GetVnetConnectionGatewaySlot(ctx context.Context, resou result, err = client.GetVnetConnectionGatewaySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetVnetConnectionGatewaySlot", resp, "Failure responding to request") + return } return @@ -16183,6 +16353,7 @@ func (client AppsClient) GetVnetConnectionSlot(ctx context.Context, resourceGrou result, err = client.GetVnetConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetVnetConnectionSlot", resp, "Failure responding to request") + return } return @@ -16269,6 +16440,7 @@ func (client AppsClient) GetWebJob(ctx context.Context, resourceGroupName string result, err = client.GetWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetWebJob", resp, "Failure responding to request") + return } return @@ -16356,6 +16528,7 @@ func (client AppsClient) GetWebJobSlot(ctx context.Context, resourceGroupName st result, err = client.GetWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetWebJobSlot", resp, "Failure responding to request") + return } return @@ -16441,6 +16614,7 @@ func (client AppsClient) GetWebSiteContainerLogs(ctx context.Context, resourceGr result, err = client.GetWebSiteContainerLogsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetWebSiteContainerLogs", resp, "Failure responding to request") + return } return @@ -16524,6 +16698,7 @@ func (client AppsClient) GetWebSiteContainerLogsSlot(ctx context.Context, resour result, err = client.GetWebSiteContainerLogsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "GetWebSiteContainerLogsSlot", resp, "Failure responding to request") + return } return @@ -16779,6 +16954,7 @@ func (client AppsClient) IsCloneable(ctx context.Context, resourceGroupName stri result, err = client.IsCloneableResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "IsCloneable", resp, "Failure responding to request") + return } return @@ -16863,6 +17039,7 @@ func (client AppsClient) IsCloneableSlot(ctx context.Context, resourceGroupName result, err = client.IsCloneableSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "IsCloneableSlot", resp, "Failure responding to request") + return } return @@ -16937,6 +17114,7 @@ func (client AppsClient) List(ctx context.Context) (result AppCollectionPage, er result.ac, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "List", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -16999,6 +17177,7 @@ func (client AppsClient) listNextResults(ctx context.Context, lastResults AppCol result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -17058,6 +17237,7 @@ func (client AppsClient) ListApplicationSettings(ctx context.Context, resourceGr result, err = client.ListApplicationSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListApplicationSettings", resp, "Failure responding to request") + return } return @@ -17143,6 +17323,7 @@ func (client AppsClient) ListApplicationSettingsSlot(ctx context.Context, resour result, err = client.ListApplicationSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListApplicationSettingsSlot", resp, "Failure responding to request") + return } return @@ -17227,6 +17408,7 @@ func (client AppsClient) ListAzureStorageAccounts(ctx context.Context, resourceG result, err = client.ListAzureStorageAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListAzureStorageAccounts", resp, "Failure responding to request") + return } return @@ -17312,6 +17494,7 @@ func (client AppsClient) ListAzureStorageAccountsSlot(ctx context.Context, resou result, err = client.ListAzureStorageAccountsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListAzureStorageAccountsSlot", resp, "Failure responding to request") + return } return @@ -17397,6 +17580,7 @@ func (client AppsClient) ListBackups(ctx context.Context, resourceGroupName stri result.bic, err = client.ListBackupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListBackups", resp, "Failure responding to request") + return } if result.bic.hasNextLink() && result.bic.IsEmpty() { err = result.NextWithContext(ctx) @@ -17461,6 +17645,7 @@ func (client AppsClient) listBackupsNextResults(ctx context.Context, lastResults result, err = client.ListBackupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listBackupsNextResults", resp, "Failure responding to next results request") + return } return } @@ -17523,6 +17708,7 @@ func (client AppsClient) ListBackupsSlot(ctx context.Context, resourceGroupName result.bic, err = client.ListBackupsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListBackupsSlot", resp, "Failure responding to request") + return } if result.bic.hasNextLink() && result.bic.IsEmpty() { err = result.NextWithContext(ctx) @@ -17588,6 +17774,7 @@ func (client AppsClient) listBackupsSlotNextResults(ctx context.Context, lastRes result, err = client.ListBackupsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listBackupsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -17660,6 +17847,7 @@ func (client AppsClient) ListBackupStatusSecrets(ctx context.Context, resourceGr result, err = client.ListBackupStatusSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListBackupStatusSecrets", resp, "Failure responding to request") + return } return @@ -17760,6 +17948,7 @@ func (client AppsClient) ListBackupStatusSecretsSlot(ctx context.Context, resour result, err = client.ListBackupStatusSecretsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListBackupStatusSecretsSlot", resp, "Failure responding to request") + return } return @@ -17849,6 +18038,7 @@ func (client AppsClient) ListByResourceGroup(ctx context.Context, resourceGroupN result.ac, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -17915,6 +18105,7 @@ func (client AppsClient) listByResourceGroupNextResults(ctx context.Context, las result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -17975,6 +18166,7 @@ func (client AppsClient) ListConfigurations(ctx context.Context, resourceGroupNa result.scrc, err = client.ListConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConfigurations", resp, "Failure responding to request") + return } if result.scrc.hasNextLink() && result.scrc.IsEmpty() { err = result.NextWithContext(ctx) @@ -18039,6 +18231,7 @@ func (client AppsClient) listConfigurationsNextResults(ctx context.Context, last result, err = client.ListConfigurationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listConfigurationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -18100,6 +18293,7 @@ func (client AppsClient) ListConfigurationSnapshotInfo(ctx context.Context, reso result.scsic, err = client.ListConfigurationSnapshotInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConfigurationSnapshotInfo", resp, "Failure responding to request") + return } if result.scsic.hasNextLink() && result.scsic.IsEmpty() { err = result.NextWithContext(ctx) @@ -18164,6 +18358,7 @@ func (client AppsClient) listConfigurationSnapshotInfoNextResults(ctx context.Co result, err = client.ListConfigurationSnapshotInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listConfigurationSnapshotInfoNextResults", resp, "Failure responding to next results request") + return } return } @@ -18227,6 +18422,7 @@ func (client AppsClient) ListConfigurationSnapshotInfoSlot(ctx context.Context, result.scsic, err = client.ListConfigurationSnapshotInfoSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConfigurationSnapshotInfoSlot", resp, "Failure responding to request") + return } if result.scsic.hasNextLink() && result.scsic.IsEmpty() { err = result.NextWithContext(ctx) @@ -18292,6 +18488,7 @@ func (client AppsClient) listConfigurationSnapshotInfoSlotNextResults(ctx contex result, err = client.ListConfigurationSnapshotInfoSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listConfigurationSnapshotInfoSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -18354,6 +18551,7 @@ func (client AppsClient) ListConfigurationsSlot(ctx context.Context, resourceGro result.scrc, err = client.ListConfigurationsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConfigurationsSlot", resp, "Failure responding to request") + return } if result.scrc.hasNextLink() && result.scrc.IsEmpty() { err = result.NextWithContext(ctx) @@ -18419,6 +18617,7 @@ func (client AppsClient) listConfigurationsSlotNextResults(ctx context.Context, result, err = client.ListConfigurationsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listConfigurationsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -18478,6 +18677,7 @@ func (client AppsClient) ListConnectionStrings(ctx context.Context, resourceGrou result, err = client.ListConnectionStringsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConnectionStrings", resp, "Failure responding to request") + return } return @@ -18563,6 +18763,7 @@ func (client AppsClient) ListConnectionStringsSlot(ctx context.Context, resource result, err = client.ListConnectionStringsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConnectionStringsSlot", resp, "Failure responding to request") + return } return @@ -18648,6 +18849,7 @@ func (client AppsClient) ListContinuousWebJobs(ctx context.Context, resourceGrou result.cwjc, err = client.ListContinuousWebJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListContinuousWebJobs", resp, "Failure responding to request") + return } if result.cwjc.hasNextLink() && result.cwjc.IsEmpty() { err = result.NextWithContext(ctx) @@ -18712,6 +18914,7 @@ func (client AppsClient) listContinuousWebJobsNextResults(ctx context.Context, l result, err = client.ListContinuousWebJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listContinuousWebJobsNextResults", resp, "Failure responding to next results request") + return } return } @@ -18774,6 +18977,7 @@ func (client AppsClient) ListContinuousWebJobsSlot(ctx context.Context, resource result.cwjc, err = client.ListContinuousWebJobsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListContinuousWebJobsSlot", resp, "Failure responding to request") + return } if result.cwjc.hasNextLink() && result.cwjc.IsEmpty() { err = result.NextWithContext(ctx) @@ -18839,6 +19043,7 @@ func (client AppsClient) listContinuousWebJobsSlotNextResults(ctx context.Contex result, err = client.ListContinuousWebJobsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listContinuousWebJobsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -18900,6 +19105,7 @@ func (client AppsClient) ListDeploymentLog(ctx context.Context, resourceGroupNam result, err = client.ListDeploymentLogResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDeploymentLog", resp, "Failure responding to request") + return } return @@ -18988,6 +19194,7 @@ func (client AppsClient) ListDeploymentLogSlot(ctx context.Context, resourceGrou result, err = client.ListDeploymentLogSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDeploymentLogSlot", resp, "Failure responding to request") + return } return @@ -19074,6 +19281,7 @@ func (client AppsClient) ListDeployments(ctx context.Context, resourceGroupName result.dc, err = client.ListDeploymentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDeployments", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -19138,6 +19346,7 @@ func (client AppsClient) listDeploymentsNextResults(ctx context.Context, lastRes result, err = client.ListDeploymentsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listDeploymentsNextResults", resp, "Failure responding to next results request") + return } return } @@ -19200,6 +19409,7 @@ func (client AppsClient) ListDeploymentsSlot(ctx context.Context, resourceGroupN result.dc, err = client.ListDeploymentsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDeploymentsSlot", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -19265,6 +19475,7 @@ func (client AppsClient) listDeploymentsSlotNextResults(ctx context.Context, las result, err = client.ListDeploymentsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listDeploymentsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -19325,6 +19536,7 @@ func (client AppsClient) ListDomainOwnershipIdentifiers(ctx context.Context, res result.ic, err = client.ListDomainOwnershipIdentifiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDomainOwnershipIdentifiers", resp, "Failure responding to request") + return } if result.ic.hasNextLink() && result.ic.IsEmpty() { err = result.NextWithContext(ctx) @@ -19389,6 +19601,7 @@ func (client AppsClient) listDomainOwnershipIdentifiersNextResults(ctx context.C result, err = client.ListDomainOwnershipIdentifiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listDomainOwnershipIdentifiersNextResults", resp, "Failure responding to next results request") + return } return } @@ -19451,6 +19664,7 @@ func (client AppsClient) ListDomainOwnershipIdentifiersSlot(ctx context.Context, result.ic, err = client.ListDomainOwnershipIdentifiersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDomainOwnershipIdentifiersSlot", resp, "Failure responding to request") + return } if result.ic.hasNextLink() && result.ic.IsEmpty() { err = result.NextWithContext(ctx) @@ -19516,6 +19730,7 @@ func (client AppsClient) listDomainOwnershipIdentifiersSlotNextResults(ctx conte result, err = client.ListDomainOwnershipIdentifiersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listDomainOwnershipIdentifiersSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -19576,6 +19791,7 @@ func (client AppsClient) ListFunctionKeys(ctx context.Context, resourceGroupName result, err = client.ListFunctionKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListFunctionKeys", resp, "Failure responding to request") + return } return @@ -19662,6 +19878,7 @@ func (client AppsClient) ListFunctionKeysSlot(ctx context.Context, resourceGroup result, err = client.ListFunctionKeysSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListFunctionKeysSlot", resp, "Failure responding to request") + return } return @@ -19748,6 +19965,7 @@ func (client AppsClient) ListFunctions(ctx context.Context, resourceGroupName st result.fec, err = client.ListFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListFunctions", resp, "Failure responding to request") + return } if result.fec.hasNextLink() && result.fec.IsEmpty() { err = result.NextWithContext(ctx) @@ -19812,6 +20030,7 @@ func (client AppsClient) listFunctionsNextResults(ctx context.Context, lastResul result, err = client.ListFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listFunctionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -19872,6 +20091,7 @@ func (client AppsClient) ListFunctionSecrets(ctx context.Context, resourceGroupN result, err = client.ListFunctionSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListFunctionSecrets", resp, "Failure responding to request") + return } return @@ -19958,6 +20178,7 @@ func (client AppsClient) ListFunctionSecretsSlot(ctx context.Context, resourceGr result, err = client.ListFunctionSecretsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListFunctionSecretsSlot", resp, "Failure responding to request") + return } return @@ -20043,6 +20264,7 @@ func (client AppsClient) ListHostKeys(ctx context.Context, resourceGroupName str result, err = client.ListHostKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHostKeys", resp, "Failure responding to request") + return } return @@ -20127,6 +20349,7 @@ func (client AppsClient) ListHostKeysSlot(ctx context.Context, resourceGroupName result, err = client.ListHostKeysSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHostKeysSlot", resp, "Failure responding to request") + return } return @@ -20212,6 +20435,7 @@ func (client AppsClient) ListHostNameBindings(ctx context.Context, resourceGroup result.hnbc, err = client.ListHostNameBindingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHostNameBindings", resp, "Failure responding to request") + return } if result.hnbc.hasNextLink() && result.hnbc.IsEmpty() { err = result.NextWithContext(ctx) @@ -20276,6 +20500,7 @@ func (client AppsClient) listHostNameBindingsNextResults(ctx context.Context, la result, err = client.ListHostNameBindingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listHostNameBindingsNextResults", resp, "Failure responding to next results request") + return } return } @@ -20338,6 +20563,7 @@ func (client AppsClient) ListHostNameBindingsSlot(ctx context.Context, resourceG result.hnbc, err = client.ListHostNameBindingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHostNameBindingsSlot", resp, "Failure responding to request") + return } if result.hnbc.hasNextLink() && result.hnbc.IsEmpty() { err = result.NextWithContext(ctx) @@ -20403,6 +20629,7 @@ func (client AppsClient) listHostNameBindingsSlotNextResults(ctx context.Context result, err = client.ListHostNameBindingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listHostNameBindingsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -20462,6 +20689,7 @@ func (client AppsClient) ListHybridConnections(ctx context.Context, resourceGrou result, err = client.ListHybridConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHybridConnections", resp, "Failure responding to request") + return } return @@ -20546,6 +20774,7 @@ func (client AppsClient) ListHybridConnectionsSlot(ctx context.Context, resource result, err = client.ListHybridConnectionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHybridConnectionsSlot", resp, "Failure responding to request") + return } return @@ -20632,6 +20861,7 @@ func (client AppsClient) ListInstanceFunctionsSlot(ctx context.Context, resource result.fec, err = client.ListInstanceFunctionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceFunctionsSlot", resp, "Failure responding to request") + return } if result.fec.hasNextLink() && result.fec.IsEmpty() { err = result.NextWithContext(ctx) @@ -20697,6 +20927,7 @@ func (client AppsClient) listInstanceFunctionsSlotNextResults(ctx context.Contex result, err = client.ListInstanceFunctionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceFunctionsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -20757,6 +20988,7 @@ func (client AppsClient) ListInstanceIdentifiers(ctx context.Context, resourceGr result.aisc, err = client.ListInstanceIdentifiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceIdentifiers", resp, "Failure responding to request") + return } if result.aisc.hasNextLink() && result.aisc.IsEmpty() { err = result.NextWithContext(ctx) @@ -20821,6 +21053,7 @@ func (client AppsClient) listInstanceIdentifiersNextResults(ctx context.Context, result, err = client.ListInstanceIdentifiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceIdentifiersNextResults", resp, "Failure responding to next results request") + return } return } @@ -20882,6 +21115,7 @@ func (client AppsClient) ListInstanceIdentifiersSlot(ctx context.Context, resour result.aisc, err = client.ListInstanceIdentifiersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceIdentifiersSlot", resp, "Failure responding to request") + return } if result.aisc.hasNextLink() && result.aisc.IsEmpty() { err = result.NextWithContext(ctx) @@ -20947,6 +21181,7 @@ func (client AppsClient) listInstanceIdentifiersSlotNextResults(ctx context.Cont result, err = client.ListInstanceIdentifiersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceIdentifiersSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -21010,6 +21245,7 @@ func (client AppsClient) ListInstanceProcesses(ctx context.Context, resourceGrou result.pic, err = client.ListInstanceProcessesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcesses", resp, "Failure responding to request") + return } if result.pic.hasNextLink() && result.pic.IsEmpty() { err = result.NextWithContext(ctx) @@ -21075,6 +21311,7 @@ func (client AppsClient) listInstanceProcessesNextResults(ctx context.Context, l result, err = client.ListInstanceProcessesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceProcessesNextResults", resp, "Failure responding to next results request") + return } return } @@ -21140,6 +21377,7 @@ func (client AppsClient) ListInstanceProcessesSlot(ctx context.Context, resource result.pic, err = client.ListInstanceProcessesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcessesSlot", resp, "Failure responding to request") + return } if result.pic.hasNextLink() && result.pic.IsEmpty() { err = result.NextWithContext(ctx) @@ -21206,6 +21444,7 @@ func (client AppsClient) listInstanceProcessesSlotNextResults(ctx context.Contex result, err = client.ListInstanceProcessesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceProcessesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -21270,6 +21509,7 @@ func (client AppsClient) ListInstanceProcessModules(ctx context.Context, resourc result.pmic, err = client.ListInstanceProcessModulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcessModules", resp, "Failure responding to request") + return } if result.pmic.hasNextLink() && result.pmic.IsEmpty() { err = result.NextWithContext(ctx) @@ -21336,6 +21576,7 @@ func (client AppsClient) listInstanceProcessModulesNextResults(ctx context.Conte result, err = client.ListInstanceProcessModulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceProcessModulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -21402,6 +21643,7 @@ func (client AppsClient) ListInstanceProcessModulesSlot(ctx context.Context, res result.pmic, err = client.ListInstanceProcessModulesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcessModulesSlot", resp, "Failure responding to request") + return } if result.pmic.hasNextLink() && result.pmic.IsEmpty() { err = result.NextWithContext(ctx) @@ -21469,6 +21711,7 @@ func (client AppsClient) listInstanceProcessModulesSlotNextResults(ctx context.C result, err = client.ListInstanceProcessModulesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceProcessModulesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -21533,6 +21776,7 @@ func (client AppsClient) ListInstanceProcessThreads(ctx context.Context, resourc result.ptic, err = client.ListInstanceProcessThreadsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcessThreads", resp, "Failure responding to request") + return } if result.ptic.hasNextLink() && result.ptic.IsEmpty() { err = result.NextWithContext(ctx) @@ -21599,6 +21843,7 @@ func (client AppsClient) listInstanceProcessThreadsNextResults(ctx context.Conte result, err = client.ListInstanceProcessThreadsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceProcessThreadsNextResults", resp, "Failure responding to next results request") + return } return } @@ -21665,6 +21910,7 @@ func (client AppsClient) ListInstanceProcessThreadsSlot(ctx context.Context, res result.ptic, err = client.ListInstanceProcessThreadsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcessThreadsSlot", resp, "Failure responding to request") + return } if result.ptic.hasNextLink() && result.ptic.IsEmpty() { err = result.NextWithContext(ctx) @@ -21732,6 +21978,7 @@ func (client AppsClient) listInstanceProcessThreadsSlotNextResults(ctx context.C result, err = client.ListInstanceProcessThreadsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listInstanceProcessThreadsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -21791,6 +22038,7 @@ func (client AppsClient) ListMetadata(ctx context.Context, resourceGroupName str result, err = client.ListMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetadata", resp, "Failure responding to request") + return } return @@ -21876,6 +22124,7 @@ func (client AppsClient) ListMetadataSlot(ctx context.Context, resourceGroupName result, err = client.ListMetadataSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetadataSlot", resp, "Failure responding to request") + return } return @@ -21961,6 +22210,7 @@ func (client AppsClient) ListNetworkFeatures(ctx context.Context, resourceGroupN result, err = client.ListNetworkFeaturesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListNetworkFeatures", resp, "Failure responding to request") + return } return @@ -22049,6 +22299,7 @@ func (client AppsClient) ListNetworkFeaturesSlot(ctx context.Context, resourceGr result, err = client.ListNetworkFeaturesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListNetworkFeaturesSlot", resp, "Failure responding to request") + return } return @@ -22138,6 +22389,7 @@ func (client AppsClient) ListPerfMonCounters(ctx context.Context, resourceGroupN result.pmcc, err = client.ListPerfMonCountersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPerfMonCounters", resp, "Failure responding to request") + return } if result.pmcc.hasNextLink() && result.pmcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -22205,6 +22457,7 @@ func (client AppsClient) listPerfMonCountersNextResults(ctx context.Context, las result, err = client.ListPerfMonCountersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listPerfMonCountersNextResults", resp, "Failure responding to next results request") + return } return } @@ -22269,6 +22522,7 @@ func (client AppsClient) ListPerfMonCountersSlot(ctx context.Context, resourceGr result.pmcc, err = client.ListPerfMonCountersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPerfMonCountersSlot", resp, "Failure responding to request") + return } if result.pmcc.hasNextLink() && result.pmcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -22337,6 +22591,7 @@ func (client AppsClient) listPerfMonCountersSlotNextResults(ctx context.Context, result, err = client.ListPerfMonCountersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listPerfMonCountersSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -22396,6 +22651,7 @@ func (client AppsClient) ListPremierAddOns(ctx context.Context, resourceGroupNam result, err = client.ListPremierAddOnsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPremierAddOns", resp, "Failure responding to request") + return } return @@ -22481,6 +22737,7 @@ func (client AppsClient) ListPremierAddOnsSlot(ctx context.Context, resourceGrou result, err = client.ListPremierAddOnsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPremierAddOnsSlot", resp, "Failure responding to request") + return } return @@ -22567,6 +22824,7 @@ func (client AppsClient) ListProcesses(ctx context.Context, resourceGroupName st result.pic, err = client.ListProcessesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcesses", resp, "Failure responding to request") + return } if result.pic.hasNextLink() && result.pic.IsEmpty() { err = result.NextWithContext(ctx) @@ -22631,6 +22889,7 @@ func (client AppsClient) listProcessesNextResults(ctx context.Context, lastResul result, err = client.ListProcessesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listProcessesNextResults", resp, "Failure responding to next results request") + return } return } @@ -22694,6 +22953,7 @@ func (client AppsClient) ListProcessesSlot(ctx context.Context, resourceGroupNam result.pic, err = client.ListProcessesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcessesSlot", resp, "Failure responding to request") + return } if result.pic.hasNextLink() && result.pic.IsEmpty() { err = result.NextWithContext(ctx) @@ -22759,6 +23019,7 @@ func (client AppsClient) listProcessesSlotNextResults(ctx context.Context, lastR result, err = client.ListProcessesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listProcessesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -22821,6 +23082,7 @@ func (client AppsClient) ListProcessModules(ctx context.Context, resourceGroupNa result.pmic, err = client.ListProcessModulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcessModules", resp, "Failure responding to request") + return } if result.pmic.hasNextLink() && result.pmic.IsEmpty() { err = result.NextWithContext(ctx) @@ -22886,6 +23148,7 @@ func (client AppsClient) listProcessModulesNextResults(ctx context.Context, last result, err = client.ListProcessModulesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listProcessModulesNextResults", resp, "Failure responding to next results request") + return } return } @@ -22950,6 +23213,7 @@ func (client AppsClient) ListProcessModulesSlot(ctx context.Context, resourceGro result.pmic, err = client.ListProcessModulesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcessModulesSlot", resp, "Failure responding to request") + return } if result.pmic.hasNextLink() && result.pmic.IsEmpty() { err = result.NextWithContext(ctx) @@ -23016,6 +23280,7 @@ func (client AppsClient) listProcessModulesSlotNextResults(ctx context.Context, result, err = client.ListProcessModulesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listProcessModulesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -23078,6 +23343,7 @@ func (client AppsClient) ListProcessThreads(ctx context.Context, resourceGroupNa result.ptic, err = client.ListProcessThreadsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcessThreads", resp, "Failure responding to request") + return } if result.ptic.hasNextLink() && result.ptic.IsEmpty() { err = result.NextWithContext(ctx) @@ -23143,6 +23409,7 @@ func (client AppsClient) listProcessThreadsNextResults(ctx context.Context, last result, err = client.ListProcessThreadsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listProcessThreadsNextResults", resp, "Failure responding to next results request") + return } return } @@ -23207,6 +23474,7 @@ func (client AppsClient) ListProcessThreadsSlot(ctx context.Context, resourceGro result.ptic, err = client.ListProcessThreadsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcessThreadsSlot", resp, "Failure responding to request") + return } if result.ptic.hasNextLink() && result.ptic.IsEmpty() { err = result.NextWithContext(ctx) @@ -23273,6 +23541,7 @@ func (client AppsClient) listProcessThreadsSlotNextResults(ctx context.Context, result, err = client.ListProcessThreadsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listProcessThreadsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -23333,6 +23602,7 @@ func (client AppsClient) ListPublicCertificates(ctx context.Context, resourceGro result.pcc, err = client.ListPublicCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPublicCertificates", resp, "Failure responding to request") + return } if result.pcc.hasNextLink() && result.pcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -23397,6 +23667,7 @@ func (client AppsClient) listPublicCertificatesNextResults(ctx context.Context, result, err = client.ListPublicCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listPublicCertificatesNextResults", resp, "Failure responding to next results request") + return } return } @@ -23459,6 +23730,7 @@ func (client AppsClient) ListPublicCertificatesSlot(ctx context.Context, resourc result.pcc, err = client.ListPublicCertificatesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPublicCertificatesSlot", resp, "Failure responding to request") + return } if result.pcc.hasNextLink() && result.pcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -23524,6 +23796,7 @@ func (client AppsClient) listPublicCertificatesSlotNextResults(ctx context.Conte result, err = client.ListPublicCertificatesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listPublicCertificatesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -23755,6 +24028,7 @@ func (client AppsClient) ListPublishingProfileXMLWithSecrets(ctx context.Context result, err = client.ListPublishingProfileXMLWithSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPublishingProfileXMLWithSecrets", resp, "Failure responding to request") + return } return @@ -23844,6 +24118,7 @@ func (client AppsClient) ListPublishingProfileXMLWithSecretsSlot(ctx context.Con result, err = client.ListPublishingProfileXMLWithSecretsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPublishingProfileXMLWithSecretsSlot", resp, "Failure responding to request") + return } return @@ -23930,6 +24205,7 @@ func (client AppsClient) ListRelayServiceConnections(ctx context.Context, resour result, err = client.ListRelayServiceConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListRelayServiceConnections", resp, "Failure responding to request") + return } return @@ -24016,6 +24292,7 @@ func (client AppsClient) ListRelayServiceConnectionsSlot(ctx context.Context, re result, err = client.ListRelayServiceConnectionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListRelayServiceConnectionsSlot", resp, "Failure responding to request") + return } return @@ -24101,6 +24378,7 @@ func (client AppsClient) ListSiteBackups(ctx context.Context, resourceGroupName result.bic, err = client.ListSiteBackupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSiteBackups", resp, "Failure responding to request") + return } if result.bic.hasNextLink() && result.bic.IsEmpty() { err = result.NextWithContext(ctx) @@ -24165,6 +24443,7 @@ func (client AppsClient) listSiteBackupsNextResults(ctx context.Context, lastRes result, err = client.ListSiteBackupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSiteBackupsNextResults", resp, "Failure responding to next results request") + return } return } @@ -24227,6 +24506,7 @@ func (client AppsClient) ListSiteBackupsSlot(ctx context.Context, resourceGroupN result.bic, err = client.ListSiteBackupsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSiteBackupsSlot", resp, "Failure responding to request") + return } if result.bic.hasNextLink() && result.bic.IsEmpty() { err = result.NextWithContext(ctx) @@ -24292,6 +24572,7 @@ func (client AppsClient) listSiteBackupsSlotNextResults(ctx context.Context, las result, err = client.ListSiteBackupsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSiteBackupsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -24352,6 +24633,7 @@ func (client AppsClient) ListSiteExtensions(ctx context.Context, resourceGroupNa result.seic, err = client.ListSiteExtensionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSiteExtensions", resp, "Failure responding to request") + return } if result.seic.hasNextLink() && result.seic.IsEmpty() { err = result.NextWithContext(ctx) @@ -24416,6 +24698,7 @@ func (client AppsClient) listSiteExtensionsNextResults(ctx context.Context, last result, err = client.ListSiteExtensionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSiteExtensionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -24477,6 +24760,7 @@ func (client AppsClient) ListSiteExtensionsSlot(ctx context.Context, resourceGro result.seic, err = client.ListSiteExtensionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSiteExtensionsSlot", resp, "Failure responding to request") + return } if result.seic.hasNextLink() && result.seic.IsEmpty() { err = result.NextWithContext(ctx) @@ -24542,6 +24826,7 @@ func (client AppsClient) listSiteExtensionsSlotNextResults(ctx context.Context, result, err = client.ListSiteExtensionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSiteExtensionsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -24601,6 +24886,7 @@ func (client AppsClient) ListSitePushSettings(ctx context.Context, resourceGroup result, err = client.ListSitePushSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSitePushSettings", resp, "Failure responding to request") + return } return @@ -24685,6 +24971,7 @@ func (client AppsClient) ListSitePushSettingsSlot(ctx context.Context, resourceG result, err = client.ListSitePushSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSitePushSettingsSlot", resp, "Failure responding to request") + return } return @@ -24770,6 +25057,7 @@ func (client AppsClient) ListSlotConfigurationNames(ctx context.Context, resourc result, err = client.ListSlotConfigurationNamesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSlotConfigurationNames", resp, "Failure responding to request") + return } return @@ -24859,6 +25147,7 @@ func (client AppsClient) ListSlotDifferencesFromProduction(ctx context.Context, result.sdc, err = client.ListSlotDifferencesFromProductionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSlotDifferencesFromProduction", resp, "Failure responding to request") + return } if result.sdc.hasNextLink() && result.sdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -24925,6 +25214,7 @@ func (client AppsClient) listSlotDifferencesFromProductionNextResults(ctx contex result, err = client.ListSlotDifferencesFromProductionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSlotDifferencesFromProductionNextResults", resp, "Failure responding to next results request") + return } return } @@ -24990,6 +25280,7 @@ func (client AppsClient) ListSlotDifferencesSlot(ctx context.Context, resourceGr result.sdc, err = client.ListSlotDifferencesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSlotDifferencesSlot", resp, "Failure responding to request") + return } if result.sdc.hasNextLink() && result.sdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -25057,6 +25348,7 @@ func (client AppsClient) listSlotDifferencesSlotNextResults(ctx context.Context, result, err = client.ListSlotDifferencesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSlotDifferencesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -25117,6 +25409,7 @@ func (client AppsClient) ListSlots(ctx context.Context, resourceGroupName string result.ac, err = client.ListSlotsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSlots", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -25181,6 +25474,7 @@ func (client AppsClient) listSlotsNextResults(ctx context.Context, lastResults A result, err = client.ListSlotsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSlotsNextResults", resp, "Failure responding to next results request") + return } return } @@ -25241,6 +25535,7 @@ func (client AppsClient) ListSnapshots(ctx context.Context, resourceGroupName st result.sc, err = client.ListSnapshotsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSnapshots", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -25305,6 +25600,7 @@ func (client AppsClient) listSnapshotsNextResults(ctx context.Context, lastResul result, err = client.ListSnapshotsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSnapshotsNextResults", resp, "Failure responding to next results request") + return } return } @@ -25365,6 +25661,7 @@ func (client AppsClient) ListSnapshotsFromDRSecondary(ctx context.Context, resou result.sc, err = client.ListSnapshotsFromDRSecondaryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSnapshotsFromDRSecondary", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -25429,6 +25726,7 @@ func (client AppsClient) listSnapshotsFromDRSecondaryNextResults(ctx context.Con result, err = client.ListSnapshotsFromDRSecondaryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSnapshotsFromDRSecondaryNextResults", resp, "Failure responding to next results request") + return } return } @@ -25490,6 +25788,7 @@ func (client AppsClient) ListSnapshotsFromDRSecondarySlot(ctx context.Context, r result.sc, err = client.ListSnapshotsFromDRSecondarySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSnapshotsFromDRSecondarySlot", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -25555,6 +25854,7 @@ func (client AppsClient) listSnapshotsFromDRSecondarySlotNextResults(ctx context result, err = client.ListSnapshotsFromDRSecondarySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSnapshotsFromDRSecondarySlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -25616,6 +25916,7 @@ func (client AppsClient) ListSnapshotsSlot(ctx context.Context, resourceGroupNam result.sc, err = client.ListSnapshotsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSnapshotsSlot", resp, "Failure responding to request") + return } if result.sc.hasNextLink() && result.sc.IsEmpty() { err = result.NextWithContext(ctx) @@ -25681,6 +25982,7 @@ func (client AppsClient) listSnapshotsSlotNextResults(ctx context.Context, lastR result, err = client.ListSnapshotsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listSnapshotsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -25740,6 +26042,7 @@ func (client AppsClient) ListSyncFunctionTriggers(ctx context.Context, resourceG result, err = client.ListSyncFunctionTriggersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSyncFunctionTriggers", resp, "Failure responding to request") + return } return @@ -25824,6 +26127,7 @@ func (client AppsClient) ListSyncFunctionTriggersSlot(ctx context.Context, resou result, err = client.ListSyncFunctionTriggersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSyncFunctionTriggersSlot", resp, "Failure responding to request") + return } return @@ -25908,6 +26212,7 @@ func (client AppsClient) ListSyncStatus(ctx context.Context, resourceGroupName s result, err = client.ListSyncStatusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSyncStatus", resp, "Failure responding to request") + return } return @@ -25991,6 +26296,7 @@ func (client AppsClient) ListSyncStatusSlot(ctx context.Context, resourceGroupNa result, err = client.ListSyncStatusSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSyncStatusSlot", resp, "Failure responding to request") + return } return @@ -26076,6 +26382,7 @@ func (client AppsClient) ListTriggeredWebJobHistory(ctx context.Context, resourc result.tjhc, err = client.ListTriggeredWebJobHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListTriggeredWebJobHistory", resp, "Failure responding to request") + return } if result.tjhc.hasNextLink() && result.tjhc.IsEmpty() { err = result.NextWithContext(ctx) @@ -26141,6 +26448,7 @@ func (client AppsClient) listTriggeredWebJobHistoryNextResults(ctx context.Conte result, err = client.ListTriggeredWebJobHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listTriggeredWebJobHistoryNextResults", resp, "Failure responding to next results request") + return } return } @@ -26203,6 +26511,7 @@ func (client AppsClient) ListTriggeredWebJobHistorySlot(ctx context.Context, res result.tjhc, err = client.ListTriggeredWebJobHistorySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListTriggeredWebJobHistorySlot", resp, "Failure responding to request") + return } if result.tjhc.hasNextLink() && result.tjhc.IsEmpty() { err = result.NextWithContext(ctx) @@ -26269,6 +26578,7 @@ func (client AppsClient) listTriggeredWebJobHistorySlotNextResults(ctx context.C result, err = client.ListTriggeredWebJobHistorySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listTriggeredWebJobHistorySlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -26329,6 +26639,7 @@ func (client AppsClient) ListTriggeredWebJobs(ctx context.Context, resourceGroup result.twjc, err = client.ListTriggeredWebJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListTriggeredWebJobs", resp, "Failure responding to request") + return } if result.twjc.hasNextLink() && result.twjc.IsEmpty() { err = result.NextWithContext(ctx) @@ -26393,6 +26704,7 @@ func (client AppsClient) listTriggeredWebJobsNextResults(ctx context.Context, la result, err = client.ListTriggeredWebJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listTriggeredWebJobsNextResults", resp, "Failure responding to next results request") + return } return } @@ -26455,6 +26767,7 @@ func (client AppsClient) ListTriggeredWebJobsSlot(ctx context.Context, resourceG result.twjc, err = client.ListTriggeredWebJobsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListTriggeredWebJobsSlot", resp, "Failure responding to request") + return } if result.twjc.hasNextLink() && result.twjc.IsEmpty() { err = result.NextWithContext(ctx) @@ -26520,6 +26833,7 @@ func (client AppsClient) listTriggeredWebJobsSlotNextResults(ctx context.Context result, err = client.ListTriggeredWebJobsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listTriggeredWebJobsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -26583,6 +26897,7 @@ func (client AppsClient) ListUsages(ctx context.Context, resourceGroupName strin result.cuqc, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListUsages", resp, "Failure responding to request") + return } if result.cuqc.hasNextLink() && result.cuqc.IsEmpty() { err = result.NextWithContext(ctx) @@ -26650,6 +26965,7 @@ func (client AppsClient) listUsagesNextResults(ctx context.Context, lastResults result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listUsagesNextResults", resp, "Failure responding to next results request") + return } return } @@ -26715,6 +27031,7 @@ func (client AppsClient) ListUsagesSlot(ctx context.Context, resourceGroupName s result.cuqc, err = client.ListUsagesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListUsagesSlot", resp, "Failure responding to request") + return } if result.cuqc.hasNextLink() && result.cuqc.IsEmpty() { err = result.NextWithContext(ctx) @@ -26783,6 +27100,7 @@ func (client AppsClient) listUsagesSlotNextResults(ctx context.Context, lastResu result, err = client.ListUsagesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listUsagesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -26842,6 +27160,7 @@ func (client AppsClient) ListVnetConnections(ctx context.Context, resourceGroupN result, err = client.ListVnetConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListVnetConnections", resp, "Failure responding to request") + return } return @@ -26927,6 +27246,7 @@ func (client AppsClient) ListVnetConnectionsSlot(ctx context.Context, resourceGr result, err = client.ListVnetConnectionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListVnetConnectionsSlot", resp, "Failure responding to request") + return } return @@ -27012,6 +27332,7 @@ func (client AppsClient) ListWebJobs(ctx context.Context, resourceGroupName stri result.jc, err = client.ListWebJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListWebJobs", resp, "Failure responding to request") + return } if result.jc.hasNextLink() && result.jc.IsEmpty() { err = result.NextWithContext(ctx) @@ -27076,6 +27397,7 @@ func (client AppsClient) listWebJobsNextResults(ctx context.Context, lastResults result, err = client.ListWebJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listWebJobsNextResults", resp, "Failure responding to next results request") + return } return } @@ -27138,6 +27460,7 @@ func (client AppsClient) ListWebJobsSlot(ctx context.Context, resourceGroupName result.jc, err = client.ListWebJobsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListWebJobsSlot", resp, "Failure responding to request") + return } if result.jc.hasNextLink() && result.jc.IsEmpty() { err = result.NextWithContext(ctx) @@ -27203,6 +27526,7 @@ func (client AppsClient) listWebJobsSlotNextResults(ctx context.Context, lastRes result, err = client.ListWebJobsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "listWebJobsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -27446,6 +27770,7 @@ func (client AppsClient) PutPrivateAccessVnet(ctx context.Context, resourceGroup result, err = client.PutPrivateAccessVnetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "PutPrivateAccessVnet", resp, "Failure responding to request") + return } return @@ -27534,6 +27859,7 @@ func (client AppsClient) PutPrivateAccessVnetSlot(ctx context.Context, resourceG result, err = client.PutPrivateAccessVnetSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "PutPrivateAccessVnetSlot", resp, "Failure responding to request") + return } return @@ -27621,6 +27947,7 @@ func (client AppsClient) RecoverSiteConfigurationSnapshot(ctx context.Context, r result, err = client.RecoverSiteConfigurationSnapshotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "RecoverSiteConfigurationSnapshot", resp, "Failure responding to request") + return } return @@ -27707,6 +28034,7 @@ func (client AppsClient) RecoverSiteConfigurationSnapshotSlot(ctx context.Contex result, err = client.RecoverSiteConfigurationSnapshotSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "RecoverSiteConfigurationSnapshotSlot", resp, "Failure responding to request") + return } return @@ -27792,6 +28120,7 @@ func (client AppsClient) ResetProductionSlotConfig(ctx context.Context, resource result, err = client.ResetProductionSlotConfigResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ResetProductionSlotConfig", resp, "Failure responding to request") + return } return @@ -27877,6 +28206,7 @@ func (client AppsClient) ResetSlotConfigurationSlot(ctx context.Context, resourc result, err = client.ResetSlotConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ResetSlotConfigurationSlot", resp, "Failure responding to request") + return } return @@ -27964,6 +28294,7 @@ func (client AppsClient) Restart(ctx context.Context, resourceGroupName string, result, err = client.RestartResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Restart", resp, "Failure responding to request") + return } return @@ -28057,6 +28388,7 @@ func (client AppsClient) RestartSlot(ctx context.Context, resourceGroupName stri result, err = client.RestartSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "RestartSlot", resp, "Failure responding to request") + return } return @@ -28869,6 +29201,7 @@ func (client AppsClient) RunTriggeredWebJob(ctx context.Context, resourceGroupNa result, err = client.RunTriggeredWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "RunTriggeredWebJob", resp, "Failure responding to request") + return } return @@ -28954,6 +29287,7 @@ func (client AppsClient) RunTriggeredWebJobSlot(ctx context.Context, resourceGro result, err = client.RunTriggeredWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "RunTriggeredWebJobSlot", resp, "Failure responding to request") + return } return @@ -29038,6 +29372,7 @@ func (client AppsClient) Start(ctx context.Context, resourceGroupName string, na result, err = client.StartResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Start", resp, "Failure responding to request") + return } return @@ -29121,6 +29456,7 @@ func (client AppsClient) StartContinuousWebJob(ctx context.Context, resourceGrou result, err = client.StartContinuousWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StartContinuousWebJob", resp, "Failure responding to request") + return } return @@ -29207,6 +29543,7 @@ func (client AppsClient) StartContinuousWebJobSlot(ctx context.Context, resource result, err = client.StartContinuousWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StartContinuousWebJobSlot", resp, "Failure responding to request") + return } return @@ -29484,6 +29821,7 @@ func (client AppsClient) StartSlot(ctx context.Context, resourceGroupName string result, err = client.StartSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StartSlot", resp, "Failure responding to request") + return } return @@ -29570,6 +29908,7 @@ func (client AppsClient) StartWebSiteNetworkTrace(ctx context.Context, resourceG result, err = client.StartWebSiteNetworkTraceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StartWebSiteNetworkTrace", resp, "Failure responding to request") + return } return @@ -29858,6 +30197,7 @@ func (client AppsClient) StartWebSiteNetworkTraceSlot(ctx context.Context, resou result, err = client.StartWebSiteNetworkTraceSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StartWebSiteNetworkTraceSlot", resp, "Failure responding to request") + return } return @@ -29951,6 +30291,7 @@ func (client AppsClient) Stop(ctx context.Context, resourceGroupName string, nam result, err = client.StopResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Stop", resp, "Failure responding to request") + return } return @@ -30034,6 +30375,7 @@ func (client AppsClient) StopContinuousWebJob(ctx context.Context, resourceGroup result, err = client.StopContinuousWebJobResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StopContinuousWebJob", resp, "Failure responding to request") + return } return @@ -30120,6 +30462,7 @@ func (client AppsClient) StopContinuousWebJobSlot(ctx context.Context, resourceG result, err = client.StopContinuousWebJobSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StopContinuousWebJobSlot", resp, "Failure responding to request") + return } return @@ -30204,6 +30547,7 @@ func (client AppsClient) StopNetworkTrace(ctx context.Context, resourceGroupName result, err = client.StopNetworkTraceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StopNetworkTrace", resp, "Failure responding to request") + return } return @@ -30287,6 +30631,7 @@ func (client AppsClient) StopNetworkTraceSlot(ctx context.Context, resourceGroup result, err = client.StopNetworkTraceSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StopNetworkTraceSlot", resp, "Failure responding to request") + return } return @@ -30371,6 +30716,7 @@ func (client AppsClient) StopSlot(ctx context.Context, resourceGroupName string, result, err = client.StopSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StopSlot", resp, "Failure responding to request") + return } return @@ -30454,6 +30800,7 @@ func (client AppsClient) StopWebSiteNetworkTrace(ctx context.Context, resourceGr result, err = client.StopWebSiteNetworkTraceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StopWebSiteNetworkTrace", resp, "Failure responding to request") + return } return @@ -30537,6 +30884,7 @@ func (client AppsClient) StopWebSiteNetworkTraceSlot(ctx context.Context, resour result, err = client.StopWebSiteNetworkTraceSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "StopWebSiteNetworkTraceSlot", resp, "Failure responding to request") + return } return @@ -30798,6 +31146,7 @@ func (client AppsClient) SyncFunctions(ctx context.Context, resourceGroupName st result, err = client.SyncFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncFunctions", resp, "Failure responding to request") + return } return @@ -30881,6 +31230,7 @@ func (client AppsClient) SyncFunctionsSlot(ctx context.Context, resourceGroupNam result, err = client.SyncFunctionsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncFunctionsSlot", resp, "Failure responding to request") + return } return @@ -30964,6 +31314,7 @@ func (client AppsClient) SyncFunctionTriggers(ctx context.Context, resourceGroup result, err = client.SyncFunctionTriggersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncFunctionTriggers", resp, "Failure responding to request") + return } return @@ -31047,6 +31398,7 @@ func (client AppsClient) SyncFunctionTriggersSlot(ctx context.Context, resourceG result, err = client.SyncFunctionTriggersSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncFunctionTriggersSlot", resp, "Failure responding to request") + return } return @@ -31130,6 +31482,7 @@ func (client AppsClient) SyncRepository(ctx context.Context, resourceGroupName s result, err = client.SyncRepositoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncRepository", resp, "Failure responding to request") + return } return @@ -31213,6 +31566,7 @@ func (client AppsClient) SyncRepositorySlot(ctx context.Context, resourceGroupNa result, err = client.SyncRepositorySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncRepositorySlot", resp, "Failure responding to request") + return } return @@ -31299,6 +31653,7 @@ func (client AppsClient) Update(ctx context.Context, resourceGroupName string, n result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "Update", resp, "Failure responding to request") + return } return @@ -31385,6 +31740,7 @@ func (client AppsClient) UpdateApplicationSettings(ctx context.Context, resource result, err = client.UpdateApplicationSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateApplicationSettings", resp, "Failure responding to request") + return } return @@ -31473,6 +31829,7 @@ func (client AppsClient) UpdateApplicationSettingsSlot(ctx context.Context, reso result, err = client.UpdateApplicationSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateApplicationSettingsSlot", resp, "Failure responding to request") + return } return @@ -31560,6 +31917,7 @@ func (client AppsClient) UpdateAuthSettings(ctx context.Context, resourceGroupNa result, err = client.UpdateAuthSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateAuthSettings", resp, "Failure responding to request") + return } return @@ -31647,6 +32005,7 @@ func (client AppsClient) UpdateAuthSettingsSlot(ctx context.Context, resourceGro result, err = client.UpdateAuthSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateAuthSettingsSlot", resp, "Failure responding to request") + return } return @@ -31735,6 +32094,7 @@ func (client AppsClient) UpdateAuthSettingsV2(ctx context.Context, resourceGroup result, err = client.UpdateAuthSettingsV2Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateAuthSettingsV2", resp, "Failure responding to request") + return } return @@ -31823,6 +32183,7 @@ func (client AppsClient) UpdateAuthSettingsV2Slot(ctx context.Context, resourceG result, err = client.UpdateAuthSettingsV2SlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateAuthSettingsV2Slot", resp, "Failure responding to request") + return } return @@ -31910,6 +32271,7 @@ func (client AppsClient) UpdateAzureStorageAccounts(ctx context.Context, resourc result, err = client.UpdateAzureStorageAccountsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateAzureStorageAccounts", resp, "Failure responding to request") + return } return @@ -31998,6 +32360,7 @@ func (client AppsClient) UpdateAzureStorageAccountsSlot(ctx context.Context, res result, err = client.UpdateAzureStorageAccountsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateAzureStorageAccountsSlot", resp, "Failure responding to request") + return } return @@ -32094,6 +32457,7 @@ func (client AppsClient) UpdateBackupConfiguration(ctx context.Context, resource result, err = client.UpdateBackupConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateBackupConfiguration", resp, "Failure responding to request") + return } return @@ -32191,6 +32555,7 @@ func (client AppsClient) UpdateBackupConfigurationSlot(ctx context.Context, reso result, err = client.UpdateBackupConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateBackupConfigurationSlot", resp, "Failure responding to request") + return } return @@ -32278,6 +32643,7 @@ func (client AppsClient) UpdateConfiguration(ctx context.Context, resourceGroupN result, err = client.UpdateConfigurationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateConfiguration", resp, "Failure responding to request") + return } return @@ -32366,6 +32732,7 @@ func (client AppsClient) UpdateConfigurationSlot(ctx context.Context, resourceGr result, err = client.UpdateConfigurationSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateConfigurationSlot", resp, "Failure responding to request") + return } return @@ -32453,6 +32820,7 @@ func (client AppsClient) UpdateConnectionStrings(ctx context.Context, resourceGr result, err = client.UpdateConnectionStringsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateConnectionStrings", resp, "Failure responding to request") + return } return @@ -32541,6 +32909,7 @@ func (client AppsClient) UpdateConnectionStringsSlot(ctx context.Context, resour result, err = client.UpdateConnectionStringsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateConnectionStringsSlot", resp, "Failure responding to request") + return } return @@ -32644,6 +33013,7 @@ func (client AppsClient) UpdateDiagnosticLogsConfig(ctx context.Context, resourc result, err = client.UpdateDiagnosticLogsConfigResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateDiagnosticLogsConfig", resp, "Failure responding to request") + return } return @@ -32748,6 +33118,7 @@ func (client AppsClient) UpdateDiagnosticLogsConfigSlot(ctx context.Context, res result, err = client.UpdateDiagnosticLogsConfigSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateDiagnosticLogsConfigSlot", resp, "Failure responding to request") + return } return @@ -32837,6 +33208,7 @@ func (client AppsClient) UpdateDomainOwnershipIdentifier(ctx context.Context, re result, err = client.UpdateDomainOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateDomainOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -32928,6 +33300,7 @@ func (client AppsClient) UpdateDomainOwnershipIdentifierSlot(ctx context.Context result, err = client.UpdateDomainOwnershipIdentifierSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateDomainOwnershipIdentifierSlot", resp, "Failure responding to request") + return } return @@ -33018,6 +33391,7 @@ func (client AppsClient) UpdateFtpAllowed(ctx context.Context, resourceGroupName result, err = client.UpdateFtpAllowedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateFtpAllowed", resp, "Failure responding to request") + return } return @@ -33106,6 +33480,7 @@ func (client AppsClient) UpdateHybridConnection(ctx context.Context, resourceGro result, err = client.UpdateHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateHybridConnection", resp, "Failure responding to request") + return } return @@ -33197,6 +33572,7 @@ func (client AppsClient) UpdateHybridConnectionSlot(ctx context.Context, resourc result, err = client.UpdateHybridConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateHybridConnectionSlot", resp, "Failure responding to request") + return } return @@ -33286,6 +33662,7 @@ func (client AppsClient) UpdateMetadata(ctx context.Context, resourceGroupName s result, err = client.UpdateMetadataResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateMetadata", resp, "Failure responding to request") + return } return @@ -33374,6 +33751,7 @@ func (client AppsClient) UpdateMetadataSlot(ctx context.Context, resourceGroupNa result, err = client.UpdateMetadataSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateMetadataSlot", resp, "Failure responding to request") + return } return @@ -33462,6 +33840,7 @@ func (client AppsClient) UpdatePremierAddOn(ctx context.Context, resourceGroupNa result, err = client.UpdatePremierAddOnResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdatePremierAddOn", resp, "Failure responding to request") + return } return @@ -33552,6 +33931,7 @@ func (client AppsClient) UpdatePremierAddOnSlot(ctx context.Context, resourceGro result, err = client.UpdatePremierAddOnSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdatePremierAddOnSlot", resp, "Failure responding to request") + return } return @@ -33642,6 +34022,7 @@ func (client AppsClient) UpdateRelayServiceConnection(ctx context.Context, resou result, err = client.UpdateRelayServiceConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateRelayServiceConnection", resp, "Failure responding to request") + return } return @@ -33733,6 +34114,7 @@ func (client AppsClient) UpdateRelayServiceConnectionSlot(ctx context.Context, r result, err = client.UpdateRelayServiceConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateRelayServiceConnectionSlot", resp, "Failure responding to request") + return } return @@ -33823,6 +34205,7 @@ func (client AppsClient) UpdateScmAllowed(ctx context.Context, resourceGroupName result, err = client.UpdateScmAllowedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateScmAllowed", resp, "Failure responding to request") + return } return @@ -33912,6 +34295,7 @@ func (client AppsClient) UpdateSitePushSettings(ctx context.Context, resourceGro result, err = client.UpdateSitePushSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSitePushSettings", resp, "Failure responding to request") + return } return @@ -34002,6 +34386,7 @@ func (client AppsClient) UpdateSitePushSettingsSlot(ctx context.Context, resourc result, err = client.UpdateSitePushSettingsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSitePushSettingsSlot", resp, "Failure responding to request") + return } return @@ -34093,6 +34478,7 @@ func (client AppsClient) UpdateSlot(ctx context.Context, resourceGroupName strin result, err = client.UpdateSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSlot", resp, "Failure responding to request") + return } return @@ -34181,6 +34567,7 @@ func (client AppsClient) UpdateSlotConfigurationNames(ctx context.Context, resou result, err = client.UpdateSlotConfigurationNamesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSlotConfigurationNames", resp, "Failure responding to request") + return } return @@ -34267,6 +34654,7 @@ func (client AppsClient) UpdateSourceControl(ctx context.Context, resourceGroupN result, err = client.UpdateSourceControlResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSourceControl", resp, "Failure responding to request") + return } return @@ -34355,6 +34743,7 @@ func (client AppsClient) UpdateSourceControlSlot(ctx context.Context, resourceGr result, err = client.UpdateSourceControlSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSourceControlSlot", resp, "Failure responding to request") + return } return @@ -34445,6 +34834,7 @@ func (client AppsClient) UpdateSwiftVirtualNetworkConnection(ctx context.Context result, err = client.UpdateSwiftVirtualNetworkConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSwiftVirtualNetworkConnection", resp, "Failure responding to request") + return } return @@ -34536,6 +34926,7 @@ func (client AppsClient) UpdateSwiftVirtualNetworkConnectionSlot(ctx context.Con result, err = client.UpdateSwiftVirtualNetworkConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSwiftVirtualNetworkConnectionSlot", resp, "Failure responding to request") + return } return @@ -34625,6 +35016,7 @@ func (client AppsClient) UpdateVnetConnection(ctx context.Context, resourceGroup result, err = client.UpdateVnetConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateVnetConnection", resp, "Failure responding to request") + return } return @@ -34715,6 +35107,7 @@ func (client AppsClient) UpdateVnetConnectionGateway(ctx context.Context, resour result, err = client.UpdateVnetConnectionGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateVnetConnectionGateway", resp, "Failure responding to request") + return } return @@ -34808,6 +35201,7 @@ func (client AppsClient) UpdateVnetConnectionGatewaySlot(ctx context.Context, re result, err = client.UpdateVnetConnectionGatewaySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateVnetConnectionGatewaySlot", resp, "Failure responding to request") + return } return @@ -34901,6 +35295,7 @@ func (client AppsClient) UpdateVnetConnectionSlot(ctx context.Context, resourceG result, err = client.UpdateVnetConnectionSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateVnetConnectionSlot", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2020-06-01/web/appservicecertificateorders.go b/services/web/mgmt/2020-06-01/web/appservicecertificateorders.go index 5cfac7fca98a..d9e5e5b30e1f 100644 --- a/services/web/mgmt/2020-06-01/web/appservicecertificateorders.go +++ b/services/web/mgmt/2020-06-01/web/appservicecertificateorders.go @@ -263,6 +263,7 @@ func (client AppServiceCertificateOrdersClient) Delete(ctx context.Context, reso result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "Delete", resp, "Failure responding to request") + return } return @@ -346,6 +347,7 @@ func (client AppServiceCertificateOrdersClient) DeleteCertificate(ctx context.Co result, err = client.DeleteCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "DeleteCertificate", resp, "Failure responding to request") + return } return @@ -429,6 +431,7 @@ func (client AppServiceCertificateOrdersClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "Get", resp, "Failure responding to request") + return } return @@ -513,6 +516,7 @@ func (client AppServiceCertificateOrdersClient) GetCertificate(ctx context.Conte result, err = client.GetCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "GetCertificate", resp, "Failure responding to request") + return } return @@ -587,6 +591,7 @@ func (client AppServiceCertificateOrdersClient) List(ctx context.Context) (resul result.ascoc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "List", resp, "Failure responding to request") + return } if result.ascoc.hasNextLink() && result.ascoc.IsEmpty() { err = result.NextWithContext(ctx) @@ -649,6 +654,7 @@ func (client AppServiceCertificateOrdersClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -708,6 +714,7 @@ func (client AppServiceCertificateOrdersClient) ListByResourceGroup(ctx context. result.ascoc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.ascoc.hasNextLink() && result.ascoc.IsEmpty() { err = result.NextWithContext(ctx) @@ -771,6 +778,7 @@ func (client AppServiceCertificateOrdersClient) listByResourceGroupNextResults(c result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -831,6 +839,7 @@ func (client AppServiceCertificateOrdersClient) ListCertificates(ctx context.Con result.ascc, err = client.ListCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "ListCertificates", resp, "Failure responding to request") + return } if result.ascc.hasNextLink() && result.ascc.IsEmpty() { err = result.NextWithContext(ctx) @@ -895,6 +904,7 @@ func (client AppServiceCertificateOrdersClient) listCertificatesNextResults(ctx result, err = client.ListCertificatesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "listCertificatesNextResults", resp, "Failure responding to next results request") + return } return } @@ -955,6 +965,7 @@ func (client AppServiceCertificateOrdersClient) Reissue(ctx context.Context, res result, err = client.ReissueResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "Reissue", resp, "Failure responding to request") + return } return @@ -1040,6 +1051,7 @@ func (client AppServiceCertificateOrdersClient) Renew(ctx context.Context, resou result, err = client.RenewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "Renew", resp, "Failure responding to request") + return } return @@ -1124,6 +1136,7 @@ func (client AppServiceCertificateOrdersClient) ResendEmail(ctx context.Context, result, err = client.ResendEmailResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "ResendEmail", resp, "Failure responding to request") + return } return @@ -1207,6 +1220,7 @@ func (client AppServiceCertificateOrdersClient) ResendRequestEmails(ctx context. result, err = client.ResendRequestEmailsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "ResendRequestEmails", resp, "Failure responding to request") + return } return @@ -1291,6 +1305,7 @@ func (client AppServiceCertificateOrdersClient) RetrieveCertificateActions(ctx c result, err = client.RetrieveCertificateActionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "RetrieveCertificateActions", resp, "Failure responding to request") + return } return @@ -1374,6 +1389,7 @@ func (client AppServiceCertificateOrdersClient) RetrieveCertificateEmailHistory( result, err = client.RetrieveCertificateEmailHistoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "RetrieveCertificateEmailHistory", resp, "Failure responding to request") + return } return @@ -1458,6 +1474,7 @@ func (client AppServiceCertificateOrdersClient) RetrieveSiteSeal(ctx context.Con result, err = client.RetrieveSiteSealResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "RetrieveSiteSeal", resp, "Failure responding to request") + return } return @@ -1544,6 +1561,7 @@ func (client AppServiceCertificateOrdersClient) Update(ctx context.Context, reso result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "Update", resp, "Failure responding to request") + return } return @@ -1631,6 +1649,7 @@ func (client AppServiceCertificateOrdersClient) UpdateCertificate(ctx context.Co result, err = client.UpdateCertificateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "UpdateCertificate", resp, "Failure responding to request") + return } return @@ -1719,6 +1738,7 @@ func (client AppServiceCertificateOrdersClient) ValidatePurchaseInformation(ctx result, err = client.ValidatePurchaseInformationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "ValidatePurchaseInformation", resp, "Failure responding to request") + return } return @@ -1801,6 +1821,7 @@ func (client AppServiceCertificateOrdersClient) VerifyDomainOwnership(ctx contex result, err = client.VerifyDomainOwnershipResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "VerifyDomainOwnership", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2020-06-01/web/appserviceenvironments.go b/services/web/mgmt/2020-06-01/web/appserviceenvironments.go index 3938aac527ee..4504251ba1da 100644 --- a/services/web/mgmt/2020-06-01/web/appserviceenvironments.go +++ b/services/web/mgmt/2020-06-01/web/appserviceenvironments.go @@ -565,6 +565,7 @@ func (client AppServiceEnvironmentsClient) Get(ctx context.Context, resourceGrou result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -649,6 +650,7 @@ func (client AppServiceEnvironmentsClient) GetDiagnosticsItem(ctx context.Contex result, err = client.GetDiagnosticsItemResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetDiagnosticsItem", resp, "Failure responding to request") + return } return @@ -735,6 +737,7 @@ func (client AppServiceEnvironmentsClient) GetInboundNetworkDependenciesEndpoint result.ieec, err = client.GetInboundNetworkDependenciesEndpointsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetInboundNetworkDependenciesEndpoints", resp, "Failure responding to request") + return } if result.ieec.hasNextLink() && result.ieec.IsEmpty() { err = result.NextWithContext(ctx) @@ -799,6 +802,7 @@ func (client AppServiceEnvironmentsClient) getInboundNetworkDependenciesEndpoint result, err = client.GetInboundNetworkDependenciesEndpointsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "getInboundNetworkDependenciesEndpointsNextResults", resp, "Failure responding to next results request") + return } return } @@ -858,6 +862,7 @@ func (client AppServiceEnvironmentsClient) GetMultiRolePool(ctx context.Context, result, err = client.GetMultiRolePoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetMultiRolePool", resp, "Failure responding to request") + return } return @@ -943,6 +948,7 @@ func (client AppServiceEnvironmentsClient) GetOutboundNetworkDependenciesEndpoin result.oeec, err = client.GetOutboundNetworkDependenciesEndpointsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetOutboundNetworkDependenciesEndpoints", resp, "Failure responding to request") + return } if result.oeec.hasNextLink() && result.oeec.IsEmpty() { err = result.NextWithContext(ctx) @@ -1007,6 +1013,7 @@ func (client AppServiceEnvironmentsClient) getOutboundNetworkDependenciesEndpoin result, err = client.GetOutboundNetworkDependenciesEndpointsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "getOutboundNetworkDependenciesEndpointsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1066,6 +1073,7 @@ func (client AppServiceEnvironmentsClient) GetVipInfo(ctx context.Context, resou result, err = client.GetVipInfoResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetVipInfo", resp, "Failure responding to request") + return } return @@ -1150,6 +1158,7 @@ func (client AppServiceEnvironmentsClient) GetWorkerPool(ctx context.Context, re result, err = client.GetWorkerPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetWorkerPool", resp, "Failure responding to request") + return } return @@ -1224,6 +1233,7 @@ func (client AppServiceEnvironmentsClient) List(ctx context.Context) (result App result.asec, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "List", resp, "Failure responding to request") + return } if result.asec.hasNextLink() && result.asec.IsEmpty() { err = result.NextWithContext(ctx) @@ -1286,6 +1296,7 @@ func (client AppServiceEnvironmentsClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1346,6 +1357,7 @@ func (client AppServiceEnvironmentsClient) ListAppServicePlans(ctx context.Conte result.aspc, err = client.ListAppServicePlansResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListAppServicePlans", resp, "Failure responding to request") + return } if result.aspc.hasNextLink() && result.aspc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1410,6 +1422,7 @@ func (client AppServiceEnvironmentsClient) listAppServicePlansNextResults(ctx co result, err = client.ListAppServicePlansResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listAppServicePlansNextResults", resp, "Failure responding to next results request") + return } return } @@ -1469,6 +1482,7 @@ func (client AppServiceEnvironmentsClient) ListByResourceGroup(ctx context.Conte result.asec, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.asec.hasNextLink() && result.asec.IsEmpty() { err = result.NextWithContext(ctx) @@ -1532,6 +1546,7 @@ func (client AppServiceEnvironmentsClient) listByResourceGroupNextResults(ctx co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1592,6 +1607,7 @@ func (client AppServiceEnvironmentsClient) ListCapacities(ctx context.Context, r result.scc, err = client.ListCapacitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListCapacities", resp, "Failure responding to request") + return } if result.scc.hasNextLink() && result.scc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1656,6 +1672,7 @@ func (client AppServiceEnvironmentsClient) listCapacitiesNextResults(ctx context result, err = client.ListCapacitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listCapacitiesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1715,6 +1732,7 @@ func (client AppServiceEnvironmentsClient) ListDiagnostics(ctx context.Context, result, err = client.ListDiagnosticsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListDiagnostics", resp, "Failure responding to request") + return } return @@ -1800,6 +1818,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitions(ctx co result.rmdc, err = client.ListMultiRoleMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRoleMetricDefinitions", resp, "Failure responding to request") + return } if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1864,6 +1883,7 @@ func (client AppServiceEnvironmentsClient) listMultiRoleMetricDefinitionsNextRes result, err = client.ListMultiRoleMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRoleMetricDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1926,6 +1946,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefini result.rmdc, err = client.ListMultiRolePoolInstanceMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolInstanceMetricDefinitions", resp, "Failure responding to request") + return } if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1991,6 +2012,7 @@ func (client AppServiceEnvironmentsClient) listMultiRolePoolInstanceMetricDefini result, err = client.ListMultiRolePoolInstanceMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolInstanceMetricDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2051,6 +2073,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRolePools(ctx context.Contex result.wpc, err = client.ListMultiRolePoolsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePools", resp, "Failure responding to request") + return } if result.wpc.hasNextLink() && result.wpc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2115,6 +2138,7 @@ func (client AppServiceEnvironmentsClient) listMultiRolePoolsNextResults(ctx con result, err = client.ListMultiRolePoolsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2175,6 +2199,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRolePoolSkus(ctx context.Con result.sic, err = client.ListMultiRolePoolSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolSkus", resp, "Failure responding to request") + return } if result.sic.hasNextLink() && result.sic.IsEmpty() { err = result.NextWithContext(ctx) @@ -2239,6 +2264,7 @@ func (client AppServiceEnvironmentsClient) listMultiRolePoolSkusNextResults(ctx result, err = client.ListMultiRolePoolSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolSkusNextResults", resp, "Failure responding to next results request") + return } return } @@ -2299,6 +2325,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRoleUsages(ctx context.Conte result.uc, err = client.ListMultiRoleUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRoleUsages", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2363,6 +2390,7 @@ func (client AppServiceEnvironmentsClient) listMultiRoleUsagesNextResults(ctx co result, err = client.ListMultiRoleUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRoleUsagesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2422,6 +2450,7 @@ func (client AppServiceEnvironmentsClient) ListOperations(ctx context.Context, r result, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListOperations", resp, "Failure responding to request") + return } return @@ -2509,6 +2538,7 @@ func (client AppServiceEnvironmentsClient) ListUsages(ctx context.Context, resou result.cuqc, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListUsages", resp, "Failure responding to request") + return } if result.cuqc.hasNextLink() && result.cuqc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2576,6 +2606,7 @@ func (client AppServiceEnvironmentsClient) listUsagesNextResults(ctx context.Con result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listUsagesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2637,6 +2668,7 @@ func (client AppServiceEnvironmentsClient) ListWebApps(ctx context.Context, reso result.ac, err = client.ListWebAppsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWebApps", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -2704,6 +2736,7 @@ func (client AppServiceEnvironmentsClient) listWebAppsNextResults(ctx context.Co result, err = client.ListWebAppsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWebAppsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2766,6 +2799,7 @@ func (client AppServiceEnvironmentsClient) ListWebWorkerMetricDefinitions(ctx co result.rmdc, err = client.ListWebWorkerMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWebWorkerMetricDefinitions", resp, "Failure responding to request") + return } if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2831,6 +2865,7 @@ func (client AppServiceEnvironmentsClient) listWebWorkerMetricDefinitionsNextRes result, err = client.ListWebWorkerMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWebWorkerMetricDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2892,6 +2927,7 @@ func (client AppServiceEnvironmentsClient) ListWebWorkerUsages(ctx context.Conte result.uc, err = client.ListWebWorkerUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWebWorkerUsages", resp, "Failure responding to request") + return } if result.uc.hasNextLink() && result.uc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2957,6 +2993,7 @@ func (client AppServiceEnvironmentsClient) listWebWorkerUsagesNextResults(ctx co result, err = client.ListWebWorkerUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWebWorkerUsagesNextResults", resp, "Failure responding to next results request") + return } return } @@ -3020,6 +3057,7 @@ func (client AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricDefinitio result.rmdc, err = client.ListWorkerPoolInstanceMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWorkerPoolInstanceMetricDefinitions", resp, "Failure responding to request") + return } if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { err = result.NextWithContext(ctx) @@ -3086,6 +3124,7 @@ func (client AppServiceEnvironmentsClient) listWorkerPoolInstanceMetricDefinitio result, err = client.ListWorkerPoolInstanceMetricDefinitionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWorkerPoolInstanceMetricDefinitionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3146,6 +3185,7 @@ func (client AppServiceEnvironmentsClient) ListWorkerPools(ctx context.Context, result.wpc, err = client.ListWorkerPoolsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWorkerPools", resp, "Failure responding to request") + return } if result.wpc.hasNextLink() && result.wpc.IsEmpty() { err = result.NextWithContext(ctx) @@ -3210,6 +3250,7 @@ func (client AppServiceEnvironmentsClient) listWorkerPoolsNextResults(ctx contex result, err = client.ListWorkerPoolsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWorkerPoolsNextResults", resp, "Failure responding to next results request") + return } return } @@ -3271,6 +3312,7 @@ func (client AppServiceEnvironmentsClient) ListWorkerPoolSkus(ctx context.Contex result.sic, err = client.ListWorkerPoolSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWorkerPoolSkus", resp, "Failure responding to request") + return } if result.sic.hasNextLink() && result.sic.IsEmpty() { err = result.NextWithContext(ctx) @@ -3336,6 +3378,7 @@ func (client AppServiceEnvironmentsClient) listWorkerPoolSkusNextResults(ctx con result, err = client.ListWorkerPoolSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWorkerPoolSkusNextResults", resp, "Failure responding to next results request") + return } return } @@ -3395,6 +3438,7 @@ func (client AppServiceEnvironmentsClient) Reboot(ctx context.Context, resourceG result, err = client.RebootResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "Reboot", resp, "Failure responding to request") + return } return @@ -3726,6 +3770,7 @@ func (client AppServiceEnvironmentsClient) Update(ctx context.Context, resourceG result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "Update", resp, "Failure responding to request") + return } return @@ -3812,6 +3857,7 @@ func (client AppServiceEnvironmentsClient) UpdateMultiRolePool(ctx context.Conte result, err = client.UpdateMultiRolePoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "UpdateMultiRolePool", resp, "Failure responding to request") + return } return @@ -3899,6 +3945,7 @@ func (client AppServiceEnvironmentsClient) UpdateWorkerPool(ctx context.Context, result, err = client.UpdateWorkerPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "UpdateWorkerPool", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2020-06-01/web/appserviceplans.go b/services/web/mgmt/2020-06-01/web/appserviceplans.go index c6f2bba6c185..0441c70ba9ac 100644 --- a/services/web/mgmt/2020-06-01/web/appserviceplans.go +++ b/services/web/mgmt/2020-06-01/web/appserviceplans.go @@ -170,6 +170,7 @@ func (client AppServicePlansClient) CreateOrUpdateVnetRoute(ctx context.Context, result, err = client.CreateOrUpdateVnetRouteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "CreateOrUpdateVnetRoute", resp, "Failure responding to request") + return } return @@ -257,6 +258,7 @@ func (client AppServicePlansClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "Delete", resp, "Failure responding to request") + return } return @@ -341,6 +343,7 @@ func (client AppServicePlansClient) DeleteHybridConnection(ctx context.Context, result, err = client.DeleteHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "DeleteHybridConnection", resp, "Failure responding to request") + return } return @@ -427,6 +430,7 @@ func (client AppServicePlansClient) DeleteVnetRoute(ctx context.Context, resourc result, err = client.DeleteVnetRouteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "DeleteVnetRoute", resp, "Failure responding to request") + return } return @@ -511,6 +515,7 @@ func (client AppServicePlansClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "Get", resp, "Failure responding to request") + return } return @@ -596,6 +601,7 @@ func (client AppServicePlansClient) GetHybridConnection(ctx context.Context, res result, err = client.GetHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "GetHybridConnection", resp, "Failure responding to request") + return } return @@ -682,6 +688,7 @@ func (client AppServicePlansClient) GetHybridConnectionPlanLimit(ctx context.Con result, err = client.GetHybridConnectionPlanLimitResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "GetHybridConnectionPlanLimit", resp, "Failure responding to request") + return } return @@ -767,6 +774,7 @@ func (client AppServicePlansClient) GetRouteForVnet(ctx context.Context, resourc result, err = client.GetRouteForVnetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "GetRouteForVnet", resp, "Failure responding to request") + return } return @@ -852,6 +860,7 @@ func (client AppServicePlansClient) GetServerFarmSkus(ctx context.Context, resou result, err = client.GetServerFarmSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "GetServerFarmSkus", resp, "Failure responding to request") + return } return @@ -936,6 +945,7 @@ func (client AppServicePlansClient) GetVnetFromServerFarm(ctx context.Context, r result, err = client.GetVnetFromServerFarmResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "GetVnetFromServerFarm", resp, "Failure responding to request") + return } return @@ -1022,6 +1032,7 @@ func (client AppServicePlansClient) GetVnetGateway(ctx context.Context, resource result, err = client.GetVnetGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "GetVnetGateway", resp, "Failure responding to request") + return } return @@ -1101,6 +1112,7 @@ func (client AppServicePlansClient) List(ctx context.Context, detailed *bool) (r result.aspc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "List", resp, "Failure responding to request") + return } if result.aspc.hasNextLink() && result.aspc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1166,6 +1178,7 @@ func (client AppServicePlansClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1225,6 +1238,7 @@ func (client AppServicePlansClient) ListByResourceGroup(ctx context.Context, res result.aspc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.aspc.hasNextLink() && result.aspc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1288,6 +1302,7 @@ func (client AppServicePlansClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1347,6 +1362,7 @@ func (client AppServicePlansClient) ListCapabilities(ctx context.Context, resour result, err = client.ListCapabilitiesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListCapabilities", resp, "Failure responding to request") + return } return @@ -1432,6 +1448,7 @@ func (client AppServicePlansClient) ListHybridConnectionKeys(ctx context.Context result, err = client.ListHybridConnectionKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListHybridConnectionKeys", resp, "Failure responding to request") + return } return @@ -1518,6 +1535,7 @@ func (client AppServicePlansClient) ListHybridConnections(ctx context.Context, r result.hcc, err = client.ListHybridConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListHybridConnections", resp, "Failure responding to request") + return } if result.hcc.hasNextLink() && result.hcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1582,6 +1600,7 @@ func (client AppServicePlansClient) listHybridConnectionsNextResults(ctx context result, err = client.ListHybridConnectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listHybridConnectionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1642,6 +1661,7 @@ func (client AppServicePlansClient) ListRoutesForVnet(ctx context.Context, resou result, err = client.ListRoutesForVnetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListRoutesForVnet", resp, "Failure responding to request") + return } return @@ -1729,6 +1749,7 @@ func (client AppServicePlansClient) ListUsages(ctx context.Context, resourceGrou result.cuqc, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListUsages", resp, "Failure responding to request") + return } if result.cuqc.hasNextLink() && result.cuqc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1796,6 +1817,7 @@ func (client AppServicePlansClient) listUsagesNextResults(ctx context.Context, l result, err = client.ListUsagesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listUsagesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1855,6 +1877,7 @@ func (client AppServicePlansClient) ListVnets(ctx context.Context, resourceGroup result, err = client.ListVnetsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListVnets", resp, "Failure responding to request") + return } return @@ -1944,6 +1967,7 @@ func (client AppServicePlansClient) ListWebApps(ctx context.Context, resourceGro result.ac, err = client.ListWebAppsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListWebApps", resp, "Failure responding to request") + return } if result.ac.hasNextLink() && result.ac.IsEmpty() { err = result.NextWithContext(ctx) @@ -2017,6 +2041,7 @@ func (client AppServicePlansClient) listWebAppsNextResults(ctx context.Context, result, err = client.ListWebAppsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listWebAppsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2079,6 +2104,7 @@ func (client AppServicePlansClient) ListWebAppsByHybridConnection(ctx context.Co result.rc, err = client.ListWebAppsByHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListWebAppsByHybridConnection", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2145,6 +2171,7 @@ func (client AppServicePlansClient) listWebAppsByHybridConnectionNextResults(ctx result, err = client.ListWebAppsByHybridConnectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listWebAppsByHybridConnectionNextResults", resp, "Failure responding to next results request") + return } return } @@ -2205,6 +2232,7 @@ func (client AppServicePlansClient) RebootWorker(ctx context.Context, resourceGr result, err = client.RebootWorkerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "RebootWorker", resp, "Failure responding to request") + return } return @@ -2291,6 +2319,7 @@ func (client AppServicePlansClient) RestartWebApps(ctx context.Context, resource result, err = client.RestartWebAppsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "RestartWebApps", resp, "Failure responding to request") + return } return @@ -2377,6 +2406,7 @@ func (client AppServicePlansClient) Update(ctx context.Context, resourceGroupNam result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "Update", resp, "Failure responding to request") + return } return @@ -2468,6 +2498,7 @@ func (client AppServicePlansClient) UpdateVnetGateway(ctx context.Context, resou result, err = client.UpdateVnetGatewayResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "UpdateVnetGateway", resp, "Failure responding to request") + return } return @@ -2558,6 +2589,7 @@ func (client AppServicePlansClient) UpdateVnetRoute(ctx context.Context, resourc result, err = client.UpdateVnetRouteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "UpdateVnetRoute", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2020-06-01/web/certificateregistrationprovider.go b/services/web/mgmt/2020-06-01/web/certificateregistrationprovider.go index 69d5c878db8b..3ed340122960 100644 --- a/services/web/mgmt/2020-06-01/web/certificateregistrationprovider.go +++ b/services/web/mgmt/2020-06-01/web/certificateregistrationprovider.go @@ -72,6 +72,7 @@ func (client CertificateRegistrationProviderClient) ListOperations(ctx context.C result.coc, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateRegistrationProviderClient", "ListOperations", resp, "Failure responding to request") + return } if result.coc.hasNextLink() && result.coc.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client CertificateRegistrationProviderClient) listOperationsNextResults(ct result, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateRegistrationProviderClient", "listOperationsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2020-06-01/web/certificates.go b/services/web/mgmt/2020-06-01/web/certificates.go index 78ef14807a87..d12b3f18b2f9 100644 --- a/services/web/mgmt/2020-06-01/web/certificates.go +++ b/services/web/mgmt/2020-06-01/web/certificates.go @@ -85,6 +85,7 @@ func (client CertificatesClient) CreateOrUpdate(ctx context.Context, resourceGro result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client CertificatesClient) Delete(ctx context.Context, resourceGroupName s result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "Delete", resp, "Failure responding to request") + return } return @@ -252,6 +254,7 @@ func (client CertificatesClient) Get(ctx context.Context, resourceGroupName stri result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "Get", resp, "Failure responding to request") + return } return @@ -325,6 +328,7 @@ func (client CertificatesClient) List(ctx context.Context) (result CertificateCo result.cc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "List", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -387,6 +391,7 @@ func (client CertificatesClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -446,6 +451,7 @@ func (client CertificatesClient) ListByResourceGroup(ctx context.Context, resour result.cc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.cc.hasNextLink() && result.cc.IsEmpty() { err = result.NextWithContext(ctx) @@ -509,6 +515,7 @@ func (client CertificatesClient) listByResourceGroupNextResults(ctx context.Cont result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -569,6 +576,7 @@ func (client CertificatesClient) Update(ctx context.Context, resourceGroupName s result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "Update", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2020-06-01/web/client.go b/services/web/mgmt/2020-06-01/web/client.go index 1aaa974b7ad7..e8fb4849eed4 100644 --- a/services/web/mgmt/2020-06-01/web/client.go +++ b/services/web/mgmt/2020-06-01/web/client.go @@ -92,6 +92,7 @@ func (client BaseClient) CheckNameAvailability(ctx context.Context, request Reso result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client BaseClient) GetPublishingUser(ctx context.Context) (result User, er result, err = client.GetPublishingUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "GetPublishingUser", resp, "Failure responding to request") + return } return @@ -232,6 +234,7 @@ func (client BaseClient) GetSourceControl(ctx context.Context, sourceControlType result, err = client.GetSourceControlResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "GetSourceControl", resp, "Failure responding to request") + return } return @@ -302,6 +305,7 @@ func (client BaseClient) GetSubscriptionDeploymentLocations(ctx context.Context) result, err = client.GetSubscriptionDeploymentLocationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "GetSubscriptionDeploymentLocations", resp, "Failure responding to request") + return } return @@ -376,6 +380,7 @@ func (client BaseClient) ListBillingMeters(ctx context.Context, billingLocation result.bmc, err = client.ListBillingMetersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListBillingMeters", resp, "Failure responding to request") + return } if result.bmc.hasNextLink() && result.bmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -444,6 +449,7 @@ func (client BaseClient) listBillingMetersNextResults(ctx context.Context, lastR result, err = client.ListBillingMetersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "listBillingMetersNextResults", resp, "Failure responding to next results request") + return } return } @@ -501,6 +507,7 @@ func (client BaseClient) ListGeoRegions(ctx context.Context, sku SkuName, linuxW result.grc, err = client.ListGeoRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListGeoRegions", resp, "Failure responding to request") + return } if result.grc.hasNextLink() && result.grc.IsEmpty() { err = result.NextWithContext(ctx) @@ -575,6 +582,7 @@ func (client BaseClient) listGeoRegionsNextResults(ctx context.Context, lastResu result, err = client.ListGeoRegionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "listGeoRegionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -624,6 +632,7 @@ func (client BaseClient) ListPremierAddOnOffers(ctx context.Context) (result Pre result.paooc, err = client.ListPremierAddOnOffersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListPremierAddOnOffers", resp, "Failure responding to request") + return } if result.paooc.hasNextLink() && result.paooc.IsEmpty() { err = result.NextWithContext(ctx) @@ -686,6 +695,7 @@ func (client BaseClient) listPremierAddOnOffersNextResults(ctx context.Context, result, err = client.ListPremierAddOnOffersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "listPremierAddOnOffersNextResults", resp, "Failure responding to next results request") + return } return } @@ -737,6 +747,7 @@ func (client BaseClient) ListSiteIdentifiersAssignedToHostName(ctx context.Conte result.ic, err = client.ListSiteIdentifiersAssignedToHostNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListSiteIdentifiersAssignedToHostName", resp, "Failure responding to request") + return } if result.ic.hasNextLink() && result.ic.IsEmpty() { err = result.NextWithContext(ctx) @@ -801,6 +812,7 @@ func (client BaseClient) listSiteIdentifiersAssignedToHostNameNextResults(ctx co result, err = client.ListSiteIdentifiersAssignedToHostNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "listSiteIdentifiersAssignedToHostNameNextResults", resp, "Failure responding to next results request") + return } return } @@ -849,6 +861,7 @@ func (client BaseClient) ListSkus(ctx context.Context) (result SkuInfos, err err result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListSkus", resp, "Failure responding to request") + return } return @@ -920,6 +933,7 @@ func (client BaseClient) ListSourceControls(ctx context.Context) (result SourceC result.scc, err = client.ListSourceControlsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListSourceControls", resp, "Failure responding to request") + return } if result.scc.hasNextLink() && result.scc.IsEmpty() { err = result.NextWithContext(ctx) @@ -978,6 +992,7 @@ func (client BaseClient) listSourceControlsNextResults(ctx context.Context, last result, err = client.ListSourceControlsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "listSourceControlsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1043,6 +1058,7 @@ func (client BaseClient) Move(ctx context.Context, resourceGroupName string, mov result, err = client.MoveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "Move", resp, "Failure responding to request") + return } return @@ -1124,6 +1140,7 @@ func (client BaseClient) UpdatePublishingUser(ctx context.Context, userDetails U result, err = client.UpdatePublishingUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "UpdatePublishingUser", resp, "Failure responding to request") + return } return @@ -1195,6 +1212,7 @@ func (client BaseClient) UpdateSourceControl(ctx context.Context, sourceControlT result, err = client.UpdateSourceControlResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "UpdateSourceControl", resp, "Failure responding to request") + return } return @@ -1285,6 +1303,7 @@ func (client BaseClient) Validate(ctx context.Context, resourceGroupName string, result, err = client.ValidateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "Validate", resp, "Failure responding to request") + return } return @@ -1375,6 +1394,7 @@ func (client BaseClient) ValidateMove(ctx context.Context, resourceGroupName str result, err = client.ValidateMoveResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ValidateMove", resp, "Failure responding to request") + return } return @@ -1450,6 +1470,7 @@ func (client BaseClient) VerifyHostingEnvironmentVnet(ctx context.Context, param result, err = client.VerifyHostingEnvironmentVnetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "VerifyHostingEnvironmentVnet", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2020-06-01/web/deletedwebapps.go b/services/web/mgmt/2020-06-01/web/deletedwebapps.go index 5bb8232763b3..a279fae44581 100644 --- a/services/web/mgmt/2020-06-01/web/deletedwebapps.go +++ b/services/web/mgmt/2020-06-01/web/deletedwebapps.go @@ -71,6 +71,7 @@ func (client DeletedWebAppsClient) GetDeletedWebAppByLocation(ctx context.Contex result, err = client.GetDeletedWebAppByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DeletedWebAppsClient", "GetDeletedWebAppByLocation", resp, "Failure responding to request") + return } return @@ -144,6 +145,7 @@ func (client DeletedWebAppsClient) List(ctx context.Context) (result DeletedWebA result.dwac, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DeletedWebAppsClient", "List", resp, "Failure responding to request") + return } if result.dwac.hasNextLink() && result.dwac.IsEmpty() { err = result.NextWithContext(ctx) @@ -206,6 +208,7 @@ func (client DeletedWebAppsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DeletedWebAppsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -255,6 +258,7 @@ func (client DeletedWebAppsClient) ListByLocation(ctx context.Context, location result.dwac, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DeletedWebAppsClient", "ListByLocation", resp, "Failure responding to request") + return } if result.dwac.hasNextLink() && result.dwac.IsEmpty() { err = result.NextWithContext(ctx) @@ -318,6 +322,7 @@ func (client DeletedWebAppsClient) listByLocationNextResults(ctx context.Context result, err = client.ListByLocationResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DeletedWebAppsClient", "listByLocationNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2020-06-01/web/diagnostics.go b/services/web/mgmt/2020-06-01/web/diagnostics.go index d505f66eb100..59afe672a437 100644 --- a/services/web/mgmt/2020-06-01/web/diagnostics.go +++ b/services/web/mgmt/2020-06-01/web/diagnostics.go @@ -90,6 +90,7 @@ func (client DiagnosticsClient) ExecuteSiteAnalysis(ctx context.Context, resourc result, err = client.ExecuteSiteAnalysisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ExecuteSiteAnalysis", resp, "Failure responding to request") + return } return @@ -193,6 +194,7 @@ func (client DiagnosticsClient) ExecuteSiteAnalysisSlot(ctx context.Context, res result, err = client.ExecuteSiteAnalysisSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ExecuteSiteAnalysisSlot", resp, "Failure responding to request") + return } return @@ -296,6 +298,7 @@ func (client DiagnosticsClient) ExecuteSiteDetector(ctx context.Context, resourc result, err = client.ExecuteSiteDetectorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ExecuteSiteDetector", resp, "Failure responding to request") + return } return @@ -399,6 +402,7 @@ func (client DiagnosticsClient) ExecuteSiteDetectorSlot(ctx context.Context, res result, err = client.ExecuteSiteDetectorSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ExecuteSiteDetectorSlot", resp, "Failure responding to request") + return } return @@ -501,6 +505,7 @@ func (client DiagnosticsClient) GetHostingEnvironmentDetectorResponse(ctx contex result, err = client.GetHostingEnvironmentDetectorResponseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetHostingEnvironmentDetectorResponse", resp, "Failure responding to request") + return } return @@ -596,6 +601,7 @@ func (client DiagnosticsClient) GetSiteAnalysis(ctx context.Context, resourceGro result, err = client.GetSiteAnalysisResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteAnalysis", resp, "Failure responding to request") + return } return @@ -684,6 +690,7 @@ func (client DiagnosticsClient) GetSiteAnalysisSlot(ctx context.Context, resourc result, err = client.GetSiteAnalysisSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteAnalysisSlot", resp, "Failure responding to request") + return } return @@ -772,6 +779,7 @@ func (client DiagnosticsClient) GetSiteDetector(ctx context.Context, resourceGro result, err = client.GetSiteDetectorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetector", resp, "Failure responding to request") + return } return @@ -864,6 +872,7 @@ func (client DiagnosticsClient) GetSiteDetectorResponse(ctx context.Context, res result, err = client.GetSiteDetectorResponseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetectorResponse", resp, "Failure responding to request") + return } return @@ -965,6 +974,7 @@ func (client DiagnosticsClient) GetSiteDetectorResponseSlot(ctx context.Context, result, err = client.GetSiteDetectorResponseSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetectorResponseSlot", resp, "Failure responding to request") + return } return @@ -1062,6 +1072,7 @@ func (client DiagnosticsClient) GetSiteDetectorSlot(ctx context.Context, resourc result, err = client.GetSiteDetectorSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetectorSlot", resp, "Failure responding to request") + return } return @@ -1149,6 +1160,7 @@ func (client DiagnosticsClient) GetSiteDiagnosticCategory(ctx context.Context, r result, err = client.GetSiteDiagnosticCategoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDiagnosticCategory", resp, "Failure responding to request") + return } return @@ -1235,6 +1247,7 @@ func (client DiagnosticsClient) GetSiteDiagnosticCategorySlot(ctx context.Contex result, err = client.GetSiteDiagnosticCategorySlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDiagnosticCategorySlot", resp, "Failure responding to request") + return } return @@ -1321,6 +1334,7 @@ func (client DiagnosticsClient) ListHostingEnvironmentDetectorResponses(ctx cont result.drc, err = client.ListHostingEnvironmentDetectorResponsesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListHostingEnvironmentDetectorResponses", resp, "Failure responding to request") + return } if result.drc.hasNextLink() && result.drc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1385,6 +1399,7 @@ func (client DiagnosticsClient) listHostingEnvironmentDetectorResponsesNextResul result, err = client.ListHostingEnvironmentDetectorResponsesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listHostingEnvironmentDetectorResponsesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1446,6 +1461,7 @@ func (client DiagnosticsClient) ListSiteAnalyses(ctx context.Context, resourceGr result.dac, err = client.ListSiteAnalysesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteAnalyses", resp, "Failure responding to request") + return } if result.dac.hasNextLink() && result.dac.IsEmpty() { err = result.NextWithContext(ctx) @@ -1511,6 +1527,7 @@ func (client DiagnosticsClient) listSiteAnalysesNextResults(ctx context.Context, result, err = client.ListSiteAnalysesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteAnalysesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1573,6 +1590,7 @@ func (client DiagnosticsClient) ListSiteAnalysesSlot(ctx context.Context, resour result.dac, err = client.ListSiteAnalysesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteAnalysesSlot", resp, "Failure responding to request") + return } if result.dac.hasNextLink() && result.dac.IsEmpty() { err = result.NextWithContext(ctx) @@ -1639,6 +1657,7 @@ func (client DiagnosticsClient) listSiteAnalysesSlotNextResults(ctx context.Cont result, err = client.ListSiteAnalysesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteAnalysesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -1699,6 +1718,7 @@ func (client DiagnosticsClient) ListSiteDetectorResponses(ctx context.Context, r result.drc, err = client.ListSiteDetectorResponsesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDetectorResponses", resp, "Failure responding to request") + return } if result.drc.hasNextLink() && result.drc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1763,6 +1783,7 @@ func (client DiagnosticsClient) listSiteDetectorResponsesNextResults(ctx context result, err = client.ListSiteDetectorResponsesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDetectorResponsesNextResults", resp, "Failure responding to next results request") + return } return } @@ -1824,6 +1845,7 @@ func (client DiagnosticsClient) ListSiteDetectorResponsesSlot(ctx context.Contex result.drc, err = client.ListSiteDetectorResponsesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDetectorResponsesSlot", resp, "Failure responding to request") + return } if result.drc.hasNextLink() && result.drc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1889,6 +1911,7 @@ func (client DiagnosticsClient) listSiteDetectorResponsesSlotNextResults(ctx con result, err = client.ListSiteDetectorResponsesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDetectorResponsesSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -1950,6 +1973,7 @@ func (client DiagnosticsClient) ListSiteDetectors(ctx context.Context, resourceG result.ddc, err = client.ListSiteDetectorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDetectors", resp, "Failure responding to request") + return } if result.ddc.hasNextLink() && result.ddc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2015,6 +2039,7 @@ func (client DiagnosticsClient) listSiteDetectorsNextResults(ctx context.Context result, err = client.ListSiteDetectorsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDetectorsNextResults", resp, "Failure responding to next results request") + return } return } @@ -2077,6 +2102,7 @@ func (client DiagnosticsClient) ListSiteDetectorsSlot(ctx context.Context, resou result.ddc, err = client.ListSiteDetectorsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDetectorsSlot", resp, "Failure responding to request") + return } if result.ddc.hasNextLink() && result.ddc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2143,6 +2169,7 @@ func (client DiagnosticsClient) listSiteDetectorsSlotNextResults(ctx context.Con result, err = client.ListSiteDetectorsSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDetectorsSlotNextResults", resp, "Failure responding to next results request") + return } return } @@ -2203,6 +2230,7 @@ func (client DiagnosticsClient) ListSiteDiagnosticCategories(ctx context.Context result.dcc, err = client.ListSiteDiagnosticCategoriesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDiagnosticCategories", resp, "Failure responding to request") + return } if result.dcc.hasNextLink() && result.dcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2267,6 +2295,7 @@ func (client DiagnosticsClient) listSiteDiagnosticCategoriesNextResults(ctx cont result, err = client.ListSiteDiagnosticCategoriesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDiagnosticCategoriesNextResults", resp, "Failure responding to next results request") + return } return } @@ -2328,6 +2357,7 @@ func (client DiagnosticsClient) ListSiteDiagnosticCategoriesSlot(ctx context.Con result.dcc, err = client.ListSiteDiagnosticCategoriesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDiagnosticCategoriesSlot", resp, "Failure responding to request") + return } if result.dcc.hasNextLink() && result.dcc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2393,6 +2423,7 @@ func (client DiagnosticsClient) listSiteDiagnosticCategoriesSlotNextResults(ctx result, err = client.ListSiteDiagnosticCategoriesSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDiagnosticCategoriesSlotNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2020-06-01/web/domainregistrationprovider.go b/services/web/mgmt/2020-06-01/web/domainregistrationprovider.go index 04f26653b607..99bb1cc26fa2 100644 --- a/services/web/mgmt/2020-06-01/web/domainregistrationprovider.go +++ b/services/web/mgmt/2020-06-01/web/domainregistrationprovider.go @@ -72,6 +72,7 @@ func (client DomainRegistrationProviderClient) ListOperations(ctx context.Contex result.coc, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainRegistrationProviderClient", "ListOperations", resp, "Failure responding to request") + return } if result.coc.hasNextLink() && result.coc.IsEmpty() { err = result.NextWithContext(ctx) @@ -130,6 +131,7 @@ func (client DomainRegistrationProviderClient) listOperationsNextResults(ctx con result, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainRegistrationProviderClient", "listOperationsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2020-06-01/web/domains.go b/services/web/mgmt/2020-06-01/web/domains.go index 104e55173e81..d231538f742e 100644 --- a/services/web/mgmt/2020-06-01/web/domains.go +++ b/services/web/mgmt/2020-06-01/web/domains.go @@ -72,6 +72,7 @@ func (client DomainsClient) CheckAvailability(ctx context.Context, identifier Na result, err = client.CheckAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "CheckAvailability", resp, "Failure responding to request") + return } return @@ -302,6 +303,7 @@ func (client DomainsClient) CreateOrUpdateOwnershipIdentifier(ctx context.Contex result, err = client.CreateOrUpdateOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "CreateOrUpdateOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -390,6 +392,7 @@ func (client DomainsClient) Delete(ctx context.Context, resourceGroupName string result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "Delete", resp, "Failure responding to request") + return } return @@ -476,6 +479,7 @@ func (client DomainsClient) DeleteOwnershipIdentifier(ctx context.Context, resou result, err = client.DeleteOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "DeleteOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -559,6 +563,7 @@ func (client DomainsClient) Get(ctx context.Context, resourceGroupName string, d result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "Get", resp, "Failure responding to request") + return } return @@ -631,6 +636,7 @@ func (client DomainsClient) GetControlCenterSsoRequest(ctx context.Context) (res result, err = client.GetControlCenterSsoRequestResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "GetControlCenterSsoRequest", resp, "Failure responding to request") + return } return @@ -713,6 +719,7 @@ func (client DomainsClient) GetOwnershipIdentifier(ctx context.Context, resource result, err = client.GetOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "GetOwnershipIdentifier", resp, "Failure responding to request") + return } return @@ -787,6 +794,7 @@ func (client DomainsClient) List(ctx context.Context) (result DomainCollectionPa result.dc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "List", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -849,6 +857,7 @@ func (client DomainsClient) listNextResults(ctx context.Context, lastResults Dom result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -908,6 +917,7 @@ func (client DomainsClient) ListByResourceGroup(ctx context.Context, resourceGro result.dc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dc.hasNextLink() && result.dc.IsEmpty() { err = result.NextWithContext(ctx) @@ -971,6 +981,7 @@ func (client DomainsClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1031,6 +1042,7 @@ func (client DomainsClient) ListOwnershipIdentifiers(ctx context.Context, resour result.doic, err = client.ListOwnershipIdentifiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "ListOwnershipIdentifiers", resp, "Failure responding to request") + return } if result.doic.hasNextLink() && result.doic.IsEmpty() { err = result.NextWithContext(ctx) @@ -1095,6 +1107,7 @@ func (client DomainsClient) listOwnershipIdentifiersNextResults(ctx context.Cont result, err = client.ListOwnershipIdentifiersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "listOwnershipIdentifiersNextResults", resp, "Failure responding to next results request") + return } return } @@ -1146,6 +1159,7 @@ func (client DomainsClient) ListRecommendations(ctx context.Context, parameters result.nic, err = client.ListRecommendationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "ListRecommendations", resp, "Failure responding to request") + return } if result.nic.hasNextLink() && result.nic.IsEmpty() { err = result.NextWithContext(ctx) @@ -1210,6 +1224,7 @@ func (client DomainsClient) listRecommendationsNextResults(ctx context.Context, result, err = client.ListRecommendationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "listRecommendationsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1269,6 +1284,7 @@ func (client DomainsClient) Renew(ctx context.Context, resourceGroupName string, result, err = client.RenewResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "Renew", resp, "Failure responding to request") + return } return @@ -1354,6 +1370,7 @@ func (client DomainsClient) Update(ctx context.Context, resourceGroupName string result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "Update", resp, "Failure responding to request") + return } return @@ -1442,6 +1459,7 @@ func (client DomainsClient) UpdateOwnershipIdentifier(ctx context.Context, resou result, err = client.UpdateOwnershipIdentifierResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "UpdateOwnershipIdentifier", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2020-06-01/web/provider.go b/services/web/mgmt/2020-06-01/web/provider.go index ee2b7acf8b6c..8a64c64ac8ca 100644 --- a/services/web/mgmt/2020-06-01/web/provider.go +++ b/services/web/mgmt/2020-06-01/web/provider.go @@ -70,6 +70,7 @@ func (client ProviderClient) GetAvailableStacks(ctx context.Context, osTypeSelec result.asc, err = client.GetAvailableStacksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "GetAvailableStacks", resp, "Failure responding to request") + return } if result.asc.hasNextLink() && result.asc.IsEmpty() { err = result.NextWithContext(ctx) @@ -131,6 +132,7 @@ func (client ProviderClient) getAvailableStacksNextResults(ctx context.Context, result, err = client.GetAvailableStacksResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "getAvailableStacksNextResults", resp, "Failure responding to next results request") + return } return } @@ -180,6 +182,7 @@ func (client ProviderClient) GetAvailableStacksOnPrem(ctx context.Context, osTyp result.asc, err = client.GetAvailableStacksOnPremResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "GetAvailableStacksOnPrem", resp, "Failure responding to request") + return } if result.asc.hasNextLink() && result.asc.IsEmpty() { err = result.NextWithContext(ctx) @@ -245,6 +248,7 @@ func (client ProviderClient) getAvailableStacksOnPremNextResults(ctx context.Con result, err = client.GetAvailableStacksOnPremResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "getAvailableStacksOnPremNextResults", resp, "Failure responding to next results request") + return } return } @@ -295,6 +299,7 @@ func (client ProviderClient) ListOperations(ctx context.Context) (result CsmOper result.coc, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "ListOperations", resp, "Failure responding to request") + return } if result.coc.hasNextLink() && result.coc.IsEmpty() { err = result.NextWithContext(ctx) @@ -353,6 +358,7 @@ func (client ProviderClient) listOperationsNextResults(ctx context.Context, last result, err = client.ListOperationsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "listOperationsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2020-06-01/web/recommendations.go b/services/web/mgmt/2020-06-01/web/recommendations.go index 501a85d79247..36c557851901 100644 --- a/services/web/mgmt/2020-06-01/web/recommendations.go +++ b/services/web/mgmt/2020-06-01/web/recommendations.go @@ -81,6 +81,7 @@ func (client RecommendationsClient) DisableAllForHostingEnvironment(ctx context. result, err = client.DisableAllForHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "DisableAllForHostingEnvironment", resp, "Failure responding to request") + return } return @@ -164,6 +165,7 @@ func (client RecommendationsClient) DisableAllForWebApp(ctx context.Context, res result, err = client.DisableAllForWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "DisableAllForWebApp", resp, "Failure responding to request") + return } return @@ -247,6 +249,7 @@ func (client RecommendationsClient) DisableRecommendationForHostingEnvironment(c result, err = client.DisableRecommendationForHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "DisableRecommendationForHostingEnvironment", resp, "Failure responding to request") + return } return @@ -332,6 +335,7 @@ func (client RecommendationsClient) DisableRecommendationForSite(ctx context.Con result, err = client.DisableRecommendationForSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "DisableRecommendationForSite", resp, "Failure responding to request") + return } return @@ -407,6 +411,7 @@ func (client RecommendationsClient) DisableRecommendationForSubscription(ctx con result, err = client.DisableRecommendationForSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "DisableRecommendationForSubscription", resp, "Failure responding to request") + return } return @@ -492,6 +497,7 @@ func (client RecommendationsClient) GetRuleDetailsByHostingEnvironment(ctx conte result, err = client.GetRuleDetailsByHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "GetRuleDetailsByHostingEnvironment", resp, "Failure responding to request") + return } return @@ -586,6 +592,7 @@ func (client RecommendationsClient) GetRuleDetailsByWebApp(ctx context.Context, result, err = client.GetRuleDetailsByWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "GetRuleDetailsByWebApp", resp, "Failure responding to request") + return } return @@ -672,6 +679,7 @@ func (client RecommendationsClient) List(ctx context.Context, featured *bool, fi result.rc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "List", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -740,6 +748,7 @@ func (client RecommendationsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -806,6 +815,7 @@ func (client RecommendationsClient) ListHistoryForHostingEnvironment(ctx context result.rc, err = client.ListHistoryForHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ListHistoryForHostingEnvironment", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -876,6 +886,7 @@ func (client RecommendationsClient) listHistoryForHostingEnvironmentNextResults( result, err = client.ListHistoryForHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "listHistoryForHostingEnvironmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -941,6 +952,7 @@ func (client RecommendationsClient) ListHistoryForWebApp(ctx context.Context, re result.rc, err = client.ListHistoryForWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ListHistoryForWebApp", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1011,6 +1023,7 @@ func (client RecommendationsClient) listHistoryForWebAppNextResults(ctx context. result, err = client.ListHistoryForWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "listHistoryForWebAppNextResults", resp, "Failure responding to next results request") + return } return } @@ -1075,6 +1088,7 @@ func (client RecommendationsClient) ListRecommendedRulesForHostingEnvironment(ct result.rc, err = client.ListRecommendedRulesForHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ListRecommendedRulesForHostingEnvironment", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1145,6 +1159,7 @@ func (client RecommendationsClient) listRecommendedRulesForHostingEnvironmentNex result, err = client.ListRecommendedRulesForHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "listRecommendedRulesForHostingEnvironmentNextResults", resp, "Failure responding to next results request") + return } return } @@ -1209,6 +1224,7 @@ func (client RecommendationsClient) ListRecommendedRulesForWebApp(ctx context.Co result.rc, err = client.ListRecommendedRulesForWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ListRecommendedRulesForWebApp", resp, "Failure responding to request") + return } if result.rc.hasNextLink() && result.rc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1279,6 +1295,7 @@ func (client RecommendationsClient) listRecommendedRulesForWebAppNextResults(ctx result, err = client.ListRecommendedRulesForWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "listRecommendedRulesForWebAppNextResults", resp, "Failure responding to next results request") + return } return } @@ -1327,6 +1344,7 @@ func (client RecommendationsClient) ResetAllFilters(ctx context.Context) (result result, err = client.ResetAllFiltersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ResetAllFilters", resp, "Failure responding to request") + return } return @@ -1407,6 +1425,7 @@ func (client RecommendationsClient) ResetAllFiltersForHostingEnvironment(ctx con result, err = client.ResetAllFiltersForHostingEnvironmentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ResetAllFiltersForHostingEnvironment", resp, "Failure responding to request") + return } return @@ -1490,6 +1509,7 @@ func (client RecommendationsClient) ResetAllFiltersForWebApp(ctx context.Context result, err = client.ResetAllFiltersForWebAppResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ResetAllFiltersForWebApp", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2020-06-01/web/resourcehealthmetadata.go b/services/web/mgmt/2020-06-01/web/resourcehealthmetadata.go index 98c2a91135cc..51c53c79961e 100644 --- a/services/web/mgmt/2020-06-01/web/resourcehealthmetadata.go +++ b/services/web/mgmt/2020-06-01/web/resourcehealthmetadata.go @@ -82,6 +82,7 @@ func (client ResourceHealthMetadataClient) GetBySite(ctx context.Context, resour result, err = client.GetBySiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "GetBySite", resp, "Failure responding to request") + return } return @@ -166,6 +167,7 @@ func (client ResourceHealthMetadataClient) GetBySiteSlot(ctx context.Context, re result, err = client.GetBySiteSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "GetBySiteSlot", resp, "Failure responding to request") + return } return @@ -240,6 +242,7 @@ func (client ResourceHealthMetadataClient) List(ctx context.Context) (result Res result.rhmc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "List", resp, "Failure responding to request") + return } if result.rhmc.hasNextLink() && result.rhmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -302,6 +305,7 @@ func (client ResourceHealthMetadataClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -362,6 +366,7 @@ func (client ResourceHealthMetadataClient) ListByResourceGroup(ctx context.Conte result.rhmc, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.rhmc.hasNextLink() && result.rhmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -425,6 +430,7 @@ func (client ResourceHealthMetadataClient) listByResourceGroupNextResults(ctx co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -485,6 +491,7 @@ func (client ResourceHealthMetadataClient) ListBySite(ctx context.Context, resou result.rhmc, err = client.ListBySiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "ListBySite", resp, "Failure responding to request") + return } if result.rhmc.hasNextLink() && result.rhmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -549,6 +556,7 @@ func (client ResourceHealthMetadataClient) listBySiteNextResults(ctx context.Con result, err = client.ListBySiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "listBySiteNextResults", resp, "Failure responding to next results request") + return } return } @@ -610,6 +618,7 @@ func (client ResourceHealthMetadataClient) ListBySiteSlot(ctx context.Context, r result.rhmc, err = client.ListBySiteSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "ListBySiteSlot", resp, "Failure responding to request") + return } if result.rhmc.hasNextLink() && result.rhmc.IsEmpty() { err = result.NextWithContext(ctx) @@ -675,6 +684,7 @@ func (client ResourceHealthMetadataClient) listBySiteSlotNextResults(ctx context result, err = client.ListBySiteSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "listBySiteSlotNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/web/mgmt/2020-06-01/web/staticsites.go b/services/web/mgmt/2020-06-01/web/staticsites.go index 3540a725049b..3f0085d1e1d6 100644 --- a/services/web/mgmt/2020-06-01/web/staticsites.go +++ b/services/web/mgmt/2020-06-01/web/staticsites.go @@ -83,6 +83,7 @@ func (client StaticSitesClient) CreateOrUpdateStaticSite(ctx context.Context, re result, err = client.CreateOrUpdateStaticSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "CreateOrUpdateStaticSite", resp, "Failure responding to request") + return } return @@ -170,6 +171,7 @@ func (client StaticSitesClient) CreateOrUpdateStaticSiteBuildFunctionAppSettings result, err = client.CreateOrUpdateStaticSiteBuildFunctionAppSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "CreateOrUpdateStaticSiteBuildFunctionAppSettings", resp, "Failure responding to request") + return } return @@ -258,6 +260,7 @@ func (client StaticSitesClient) CreateOrUpdateStaticSiteCustomDomain(ctx context result, err = client.CreateOrUpdateStaticSiteCustomDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "CreateOrUpdateStaticSiteCustomDomain", resp, "Failure responding to request") + return } return @@ -343,6 +346,7 @@ func (client StaticSitesClient) CreateOrUpdateStaticSiteFunctionAppSettings(ctx result, err = client.CreateOrUpdateStaticSiteFunctionAppSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "CreateOrUpdateStaticSiteFunctionAppSettings", resp, "Failure responding to request") + return } return @@ -428,6 +432,7 @@ func (client StaticSitesClient) CreateUserRolesInvitationLink(ctx context.Contex result, err = client.CreateUserRolesInvitationLinkResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "CreateUserRolesInvitationLink", resp, "Failure responding to request") + return } return @@ -513,6 +518,7 @@ func (client StaticSitesClient) DeleteStaticSite(ctx context.Context, resourceGr result, err = client.DeleteStaticSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "DeleteStaticSite", resp, "Failure responding to request") + return } return @@ -596,6 +602,7 @@ func (client StaticSitesClient) DeleteStaticSiteBuild(ctx context.Context, resou result, err = client.DeleteStaticSiteBuildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "DeleteStaticSiteBuild", resp, "Failure responding to request") + return } return @@ -680,6 +687,7 @@ func (client StaticSitesClient) DeleteStaticSiteCustomDomain(ctx context.Context result, err = client.DeleteStaticSiteCustomDomainResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "DeleteStaticSiteCustomDomain", resp, "Failure responding to request") + return } return @@ -765,6 +773,7 @@ func (client StaticSitesClient) DeleteStaticSiteUser(ctx context.Context, resour result, err = client.DeleteStaticSiteUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "DeleteStaticSiteUser", resp, "Failure responding to request") + return } return @@ -849,6 +858,7 @@ func (client StaticSitesClient) DetachStaticSite(ctx context.Context, resourceGr result, err = client.DetachStaticSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "DetachStaticSite", resp, "Failure responding to request") + return } return @@ -931,6 +941,7 @@ func (client StaticSitesClient) GetStaticSite(ctx context.Context, resourceGroup result, err = client.GetStaticSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "GetStaticSite", resp, "Failure responding to request") + return } return @@ -1015,6 +1026,7 @@ func (client StaticSitesClient) GetStaticSiteBuild(ctx context.Context, resource result, err = client.GetStaticSiteBuildResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "GetStaticSiteBuild", resp, "Failure responding to request") + return } return @@ -1100,6 +1112,7 @@ func (client StaticSitesClient) GetStaticSiteBuilds(ctx context.Context, resourc result.ssbc, err = client.GetStaticSiteBuildsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "GetStaticSiteBuilds", resp, "Failure responding to request") + return } if result.ssbc.hasNextLink() && result.ssbc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1164,6 +1177,7 @@ func (client StaticSitesClient) getStaticSiteBuildsNextResults(ctx context.Conte result, err = client.GetStaticSiteBuildsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "getStaticSiteBuildsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1223,6 +1237,7 @@ func (client StaticSitesClient) GetStaticSitesByResourceGroup(ctx context.Contex result.ssc, err = client.GetStaticSitesByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "GetStaticSitesByResourceGroup", resp, "Failure responding to request") + return } if result.ssc.hasNextLink() && result.ssc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1286,6 +1301,7 @@ func (client StaticSitesClient) getStaticSitesByResourceGroupNextResults(ctx con result, err = client.GetStaticSitesByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "getStaticSitesByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -1335,6 +1351,7 @@ func (client StaticSitesClient) List(ctx context.Context) (result StaticSiteColl result.ssc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "List", resp, "Failure responding to request") + return } if result.ssc.hasNextLink() && result.ssc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1397,6 +1414,7 @@ func (client StaticSitesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -1457,6 +1475,7 @@ func (client StaticSitesClient) ListStaticSiteBuildFunctionAppSettings(ctx conte result, err = client.ListStaticSiteBuildFunctionAppSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "ListStaticSiteBuildFunctionAppSettings", resp, "Failure responding to request") + return } return @@ -1543,6 +1562,7 @@ func (client StaticSitesClient) ListStaticSiteBuildFunctions(ctx context.Context result.ssfoc, err = client.ListStaticSiteBuildFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "ListStaticSiteBuildFunctions", resp, "Failure responding to request") + return } if result.ssfoc.hasNextLink() && result.ssfoc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1608,6 +1628,7 @@ func (client StaticSitesClient) listStaticSiteBuildFunctionsNextResults(ctx cont result, err = client.ListStaticSiteBuildFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "listStaticSiteBuildFunctionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1668,6 +1689,7 @@ func (client StaticSitesClient) ListStaticSiteCustomDomains(ctx context.Context, result.sscdoc, err = client.ListStaticSiteCustomDomainsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "ListStaticSiteCustomDomains", resp, "Failure responding to request") + return } if result.sscdoc.hasNextLink() && result.sscdoc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1732,6 +1754,7 @@ func (client StaticSitesClient) listStaticSiteCustomDomainsNextResults(ctx conte result, err = client.ListStaticSiteCustomDomainsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "listStaticSiteCustomDomainsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1791,6 +1814,7 @@ func (client StaticSitesClient) ListStaticSiteFunctionAppSettings(ctx context.Co result, err = client.ListStaticSiteFunctionAppSettingsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "ListStaticSiteFunctionAppSettings", resp, "Failure responding to request") + return } return @@ -1875,6 +1899,7 @@ func (client StaticSitesClient) ListStaticSiteFunctions(ctx context.Context, res result.ssfoc, err = client.ListStaticSiteFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "ListStaticSiteFunctions", resp, "Failure responding to request") + return } if result.ssfoc.hasNextLink() && result.ssfoc.IsEmpty() { err = result.NextWithContext(ctx) @@ -1939,6 +1964,7 @@ func (client StaticSitesClient) listStaticSiteFunctionsNextResults(ctx context.C result, err = client.ListStaticSiteFunctionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "listStaticSiteFunctionsNextResults", resp, "Failure responding to next results request") + return } return } @@ -1998,6 +2024,7 @@ func (client StaticSitesClient) ListStaticSiteSecrets(ctx context.Context, resou result, err = client.ListStaticSiteSecretsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "ListStaticSiteSecrets", resp, "Failure responding to request") + return } return @@ -2083,6 +2110,7 @@ func (client StaticSitesClient) ListStaticSiteUsers(ctx context.Context, resourc result.ssuc, err = client.ListStaticSiteUsersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "ListStaticSiteUsers", resp, "Failure responding to request") + return } if result.ssuc.hasNextLink() && result.ssuc.IsEmpty() { err = result.NextWithContext(ctx) @@ -2148,6 +2176,7 @@ func (client StaticSitesClient) listStaticSiteUsersNextResults(ctx context.Conte result, err = client.ListStaticSiteUsersResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "listStaticSiteUsersNextResults", resp, "Failure responding to next results request") + return } return } @@ -2200,6 +2229,7 @@ func (client StaticSitesClient) PreviewWorkflow(ctx context.Context, location st result, err = client.PreviewWorkflowResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "PreviewWorkflow", resp, "Failure responding to request") + return } return @@ -2284,6 +2314,7 @@ func (client StaticSitesClient) ResetStaticSiteAPIKey(ctx context.Context, resou result, err = client.ResetStaticSiteAPIKeyResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "ResetStaticSiteAPIKey", resp, "Failure responding to request") + return } return @@ -2370,6 +2401,7 @@ func (client StaticSitesClient) UpdateStaticSite(ctx context.Context, resourceGr result, err = client.UpdateStaticSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "UpdateStaticSite", resp, "Failure responding to request") + return } return @@ -2458,6 +2490,7 @@ func (client StaticSitesClient) UpdateStaticSiteUser(ctx context.Context, resour result, err = client.UpdateStaticSiteUserResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "UpdateStaticSiteUser", resp, "Failure responding to request") + return } return @@ -2547,6 +2580,7 @@ func (client StaticSitesClient) ValidateCustomDomainCanBeAddedToStaticSite(ctx c result, err = client.ValidateCustomDomainCanBeAddedToStaticSiteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "ValidateCustomDomainCanBeAddedToStaticSite", resp, "Failure responding to request") + return } return diff --git a/services/web/mgmt/2020-06-01/web/topleveldomains.go b/services/web/mgmt/2020-06-01/web/topleveldomains.go index 2d861d5232fd..c80d95989249 100644 --- a/services/web/mgmt/2020-06-01/web/topleveldomains.go +++ b/services/web/mgmt/2020-06-01/web/topleveldomains.go @@ -71,6 +71,7 @@ func (client TopLevelDomainsClient) Get(ctx context.Context, name string) (resul result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "Get", resp, "Failure responding to request") + return } return @@ -143,6 +144,7 @@ func (client TopLevelDomainsClient) List(ctx context.Context) (result TopLevelDo result.tldc, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "List", resp, "Failure responding to request") + return } if result.tldc.hasNextLink() && result.tldc.IsEmpty() { err = result.NextWithContext(ctx) @@ -205,6 +207,7 @@ func (client TopLevelDomainsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -257,6 +260,7 @@ func (client TopLevelDomainsClient) ListAgreements(ctx context.Context, name str result.tlac, err = client.ListAgreementsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "ListAgreements", resp, "Failure responding to request") + return } if result.tlac.hasNextLink() && result.tlac.IsEmpty() { err = result.NextWithContext(ctx) @@ -322,6 +326,7 @@ func (client TopLevelDomainsClient) listAgreementsNextResults(ctx context.Contex result, err = client.ListAgreementsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "listAgreementsNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/windowsiot/mgmt/2019-06-01/windowsiot/operations.go b/services/windowsiot/mgmt/2019-06-01/windowsiot/operations.go index c5e0ac1883c8..d3d6847a4147 100644 --- a/services/windowsiot/mgmt/2019-06-01/windowsiot/operations.go +++ b/services/windowsiot/mgmt/2019-06-01/windowsiot/operations.go @@ -70,6 +70,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "windowsiot.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) @@ -128,6 +129,7 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "windowsiot.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + return } return } diff --git a/services/windowsiot/mgmt/2019-06-01/windowsiot/services.go b/services/windowsiot/mgmt/2019-06-01/windowsiot/services.go index b36afb1e3764..ab75fbed4c71 100644 --- a/services/windowsiot/mgmt/2019-06-01/windowsiot/services.go +++ b/services/windowsiot/mgmt/2019-06-01/windowsiot/services.go @@ -80,6 +80,7 @@ func (client ServicesClient) CheckDeviceServiceNameAvailability(ctx context.Cont result, err = client.CheckDeviceServiceNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "windowsiot.ServicesClient", "CheckDeviceServiceNameAvailability", resp, "Failure responding to request") + return } return @@ -160,6 +161,7 @@ func (client ServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "windowsiot.ServicesClient", "CreateOrUpdate", resp, "Failure responding to request") + return } return @@ -242,6 +244,7 @@ func (client ServicesClient) Delete(ctx context.Context, resourceGroupName strin result, err = client.DeleteResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "windowsiot.ServicesClient", "Delete", resp, "Failure responding to request") + return } return @@ -317,6 +320,7 @@ func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "windowsiot.ServicesClient", "Get", resp, "Failure responding to request") + return } return @@ -390,6 +394,7 @@ func (client ServicesClient) List(ctx context.Context) (result DeviceServiceDesc result.dsdlr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "windowsiot.ServicesClient", "List", resp, "Failure responding to request") + return } if result.dsdlr.hasNextLink() && result.dsdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -452,6 +457,7 @@ func (client ServicesClient) listNextResults(ctx context.Context, lastResults De result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "windowsiot.ServicesClient", "listNextResults", resp, "Failure responding to next results request") + return } return } @@ -503,6 +509,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGr result.dsdlr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "windowsiot.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request") + return } if result.dsdlr.hasNextLink() && result.dsdlr.IsEmpty() { err = result.NextWithContext(ctx) @@ -566,6 +573,7 @@ func (client ServicesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "windowsiot.ServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + return } return } @@ -622,6 +630,7 @@ func (client ServicesClient) Update(ctx context.Context, resourceGroupName strin result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "windowsiot.ServicesClient", "Update", resp, "Failure responding to request") + return } return From 73a2f73f15855a18bd32149feec0e0c70bb4b072 Mon Sep 17 00:00:00 2001 From: arcturusZhang Date: Thu, 17 Dec 2020 12:12:59 +0800 Subject: [PATCH 03/12] Generated from tags [package-2020-09] of specification/cdn/resource-manager/readme.md (commit hash: 3a3a9452f965a227ce43e6b545035b99dd175f23) --- profiles/latest/cdn/mgmt/cdn/cdnapi/models.go | 14 +- profiles/latest/cdn/mgmt/cdn/models.go | 701 +- .../preview/cdn/mgmt/cdn/cdnapi/models.go | 14 +- profiles/preview/cdn/mgmt/cdn/models.go | 701 +- services/cdn/mgmt/2020-09-01/cdn/CHANGELOG.md | 5 + .../mgmt/2020-09-01/cdn/afdcustomdomains.go | 606 + .../cdn/mgmt/2020-09-01/cdn/afdendpoints.go | 836 ++ .../mgmt/2020-09-01/cdn/afdorigingroups.go | 662 + .../cdn/mgmt/2020-09-01/cdn/afdorigins.go | 545 + .../cdn/mgmt/2020-09-01/cdn/afdprofiles.go | 258 + .../mgmt/2020-09-01/cdn/cdnapi/interfaces.go | 296 + services/cdn/mgmt/2020-09-01/cdn/client.go | 304 + .../cdn/mgmt/2020-09-01/cdn/customdomains.go | 623 + services/cdn/mgmt/2020-09-01/cdn/edgenodes.go | 151 + services/cdn/mgmt/2020-09-01/cdn/endpoints.go | 1094 ++ services/cdn/mgmt/2020-09-01/cdn/enums.go | 1486 ++ .../cdn/mgmt/2020-09-01/cdn/loganalytics.go | 613 + .../mgmt/2020-09-01/cdn/managedrulesets.go | 155 + services/cdn/mgmt/2020-09-01/cdn/models.go | 11727 ++++++++++++++++ .../cdn/mgmt/2020-09-01/cdn/operations.go | 151 + .../cdn/mgmt/2020-09-01/cdn/origingroups.go | 525 + services/cdn/mgmt/2020-09-01/cdn/origins.go | 525 + services/cdn/mgmt/2020-09-01/cdn/policies.go | 523 + services/cdn/mgmt/2020-09-01/cdn/profiles.go | 920 ++ .../cdn/mgmt/2020-09-01/cdn/resourceusage.go | 155 + services/cdn/mgmt/2020-09-01/cdn/routes.go | 532 + services/cdn/mgmt/2020-09-01/cdn/rules.go | 530 + services/cdn/mgmt/2020-09-01/cdn/rulesets.go | 557 + services/cdn/mgmt/2020-09-01/cdn/secrets.go | 515 + .../mgmt/2020-09-01/cdn/securitypolicies.go | 516 + services/cdn/mgmt/2020-09-01/cdn/validate.go | 124 + services/cdn/mgmt/2020-09-01/cdn/version.go | 30 + 32 files changed, 26222 insertions(+), 172 deletions(-) create mode 100644 services/cdn/mgmt/2020-09-01/cdn/CHANGELOG.md create mode 100644 services/cdn/mgmt/2020-09-01/cdn/afdcustomdomains.go create mode 100644 services/cdn/mgmt/2020-09-01/cdn/afdendpoints.go create mode 100644 services/cdn/mgmt/2020-09-01/cdn/afdorigingroups.go create mode 100644 services/cdn/mgmt/2020-09-01/cdn/afdorigins.go create mode 100644 services/cdn/mgmt/2020-09-01/cdn/afdprofiles.go create mode 100644 services/cdn/mgmt/2020-09-01/cdn/cdnapi/interfaces.go create mode 100644 services/cdn/mgmt/2020-09-01/cdn/client.go create mode 100644 services/cdn/mgmt/2020-09-01/cdn/customdomains.go create mode 100644 services/cdn/mgmt/2020-09-01/cdn/edgenodes.go create mode 100644 services/cdn/mgmt/2020-09-01/cdn/endpoints.go create mode 100644 services/cdn/mgmt/2020-09-01/cdn/enums.go create mode 100644 services/cdn/mgmt/2020-09-01/cdn/loganalytics.go create mode 100644 services/cdn/mgmt/2020-09-01/cdn/managedrulesets.go create mode 100644 services/cdn/mgmt/2020-09-01/cdn/models.go create mode 100644 services/cdn/mgmt/2020-09-01/cdn/operations.go create mode 100644 services/cdn/mgmt/2020-09-01/cdn/origingroups.go create mode 100644 services/cdn/mgmt/2020-09-01/cdn/origins.go create mode 100644 services/cdn/mgmt/2020-09-01/cdn/policies.go create mode 100644 services/cdn/mgmt/2020-09-01/cdn/profiles.go create mode 100644 services/cdn/mgmt/2020-09-01/cdn/resourceusage.go create mode 100644 services/cdn/mgmt/2020-09-01/cdn/routes.go create mode 100644 services/cdn/mgmt/2020-09-01/cdn/rules.go create mode 100644 services/cdn/mgmt/2020-09-01/cdn/rulesets.go create mode 100644 services/cdn/mgmt/2020-09-01/cdn/secrets.go create mode 100644 services/cdn/mgmt/2020-09-01/cdn/securitypolicies.go create mode 100644 services/cdn/mgmt/2020-09-01/cdn/validate.go create mode 100644 services/cdn/mgmt/2020-09-01/cdn/version.go diff --git a/profiles/latest/cdn/mgmt/cdn/cdnapi/models.go b/profiles/latest/cdn/mgmt/cdn/cdnapi/models.go index 13228aacb8ee..7d7e5331d48a 100644 --- a/profiles/latest/cdn/mgmt/cdn/cdnapi/models.go +++ b/profiles/latest/cdn/mgmt/cdn/cdnapi/models.go @@ -19,12 +19,18 @@ package cdnapi -import original "github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2020-04-15/cdn/cdnapi" +import original "github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2020-09-01/cdn/cdnapi" +type AFDCustomDomainsClientAPI = original.AFDCustomDomainsClientAPI +type AFDEndpointsClientAPI = original.AFDEndpointsClientAPI +type AFDOriginGroupsClientAPI = original.AFDOriginGroupsClientAPI +type AFDOriginsClientAPI = original.AFDOriginsClientAPI +type AFDProfilesClientAPI = original.AFDProfilesClientAPI type BaseClientAPI = original.BaseClientAPI type CustomDomainsClientAPI = original.CustomDomainsClientAPI type EdgeNodesClientAPI = original.EdgeNodesClientAPI type EndpointsClientAPI = original.EndpointsClientAPI +type LogAnalyticsClientAPI = original.LogAnalyticsClientAPI type ManagedRuleSetsClientAPI = original.ManagedRuleSetsClientAPI type OperationsClientAPI = original.OperationsClientAPI type OriginGroupsClientAPI = original.OriginGroupsClientAPI @@ -32,3 +38,9 @@ type OriginsClientAPI = original.OriginsClientAPI type PoliciesClientAPI = original.PoliciesClientAPI type ProfilesClientAPI = original.ProfilesClientAPI type ResourceUsageClientAPI = original.ResourceUsageClientAPI +type RoutesClientAPI = original.RoutesClientAPI +type RuleSetsClientAPI = original.RuleSetsClientAPI +type RulesClientAPI = original.RulesClientAPI +type SecretsClientAPI = original.SecretsClientAPI +type SecurityPoliciesClientAPI = original.SecurityPoliciesClientAPI +type ValidateClientAPI = original.ValidateClientAPI diff --git a/profiles/latest/cdn/mgmt/cdn/models.go b/profiles/latest/cdn/mgmt/cdn/models.go index 575ba8be3076..74d3e6a3b439 100644 --- a/profiles/latest/cdn/mgmt/cdn/models.go +++ b/profiles/latest/cdn/mgmt/cdn/models.go @@ -22,13 +22,20 @@ package cdn import ( "context" - original "github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2020-04-15/cdn" + original "github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2020-09-01/cdn" ) const ( DefaultBaseURI = original.DefaultBaseURI ) +type AFDEndpointProtocols = original.AFDEndpointProtocols + +const ( + HTTP AFDEndpointProtocols = original.HTTP + HTTPS AFDEndpointProtocols = original.HTTPS +) + type ActionType = original.ActionType const ( @@ -38,6 +45,30 @@ const ( Redirect ActionType = original.Redirect ) +type AfdCertificateType = original.AfdCertificateType + +const ( + AfdCertificateTypeCustomerCertificate AfdCertificateType = original.AfdCertificateTypeCustomerCertificate + AfdCertificateTypeManagedCertificate AfdCertificateType = original.AfdCertificateTypeManagedCertificate +) + +type AfdMinimumTLSVersion = original.AfdMinimumTLSVersion + +const ( + TLS10 AfdMinimumTLSVersion = original.TLS10 + TLS12 AfdMinimumTLSVersion = original.TLS12 +) + +type AfdProvisioningState = original.AfdProvisioningState + +const ( + Creating AfdProvisioningState = original.Creating + Deleting AfdProvisioningState = original.Deleting + Failed AfdProvisioningState = original.Failed + Succeeded AfdProvisioningState = original.Succeeded + Updating AfdProvisioningState = original.Updating +) + type Algorithm = original.Algorithm const ( @@ -79,24 +110,25 @@ const ( GreaterThanOrEqual CookiesOperator = original.GreaterThanOrEqual LessThan CookiesOperator = original.LessThan LessThanOrEqual CookiesOperator = original.LessThanOrEqual + RegEx CookiesOperator = original.RegEx ) type CustomDomainResourceState = original.CustomDomainResourceState const ( - Active CustomDomainResourceState = original.Active - Creating CustomDomainResourceState = original.Creating - Deleting CustomDomainResourceState = original.Deleting + CustomDomainResourceStateActive CustomDomainResourceState = original.CustomDomainResourceStateActive + CustomDomainResourceStateCreating CustomDomainResourceState = original.CustomDomainResourceStateCreating + CustomDomainResourceStateDeleting CustomDomainResourceState = original.CustomDomainResourceStateDeleting ) type CustomHTTPSProvisioningState = original.CustomHTTPSProvisioningState const ( - Disabled CustomHTTPSProvisioningState = original.Disabled - Disabling CustomHTTPSProvisioningState = original.Disabling - Enabled CustomHTTPSProvisioningState = original.Enabled - Enabling CustomHTTPSProvisioningState = original.Enabling - Failed CustomHTTPSProvisioningState = original.Failed + CustomHTTPSProvisioningStateDisabled CustomHTTPSProvisioningState = original.CustomHTTPSProvisioningStateDisabled + CustomHTTPSProvisioningStateDisabling CustomHTTPSProvisioningState = original.CustomHTTPSProvisioningStateDisabling + CustomHTTPSProvisioningStateEnabled CustomHTTPSProvisioningState = original.CustomHTTPSProvisioningStateEnabled + CustomHTTPSProvisioningStateEnabling CustomHTTPSProvisioningState = original.CustomHTTPSProvisioningStateEnabling + CustomHTTPSProvisioningStateFailed CustomHTTPSProvisioningState = original.CustomHTTPSProvisioningStateFailed ) type CustomHTTPSProvisioningSubstate = original.CustomHTTPSProvisioningSubstate @@ -117,16 +149,43 @@ const ( type CustomRuleEnabledState = original.CustomRuleEnabledState const ( - CustomRuleEnabledStateDisabled CustomRuleEnabledState = original.CustomRuleEnabledStateDisabled - CustomRuleEnabledStateEnabled CustomRuleEnabledState = original.CustomRuleEnabledStateEnabled + Disabled CustomRuleEnabledState = original.Disabled + Enabled CustomRuleEnabledState = original.Enabled +) + +type DeploymentStatus = original.DeploymentStatus + +const ( + DeploymentStatusFailed DeploymentStatus = original.DeploymentStatusFailed + DeploymentStatusInProgress DeploymentStatus = original.DeploymentStatusInProgress + DeploymentStatusNotStarted DeploymentStatus = original.DeploymentStatusNotStarted + DeploymentStatusSucceeded DeploymentStatus = original.DeploymentStatusSucceeded ) type DestinationProtocol = original.DestinationProtocol const ( - HTTP DestinationProtocol = original.HTTP - HTTPS DestinationProtocol = original.HTTPS - MatchRequest DestinationProtocol = original.MatchRequest + DestinationProtocolHTTP DestinationProtocol = original.DestinationProtocolHTTP + DestinationProtocolHTTPS DestinationProtocol = original.DestinationProtocolHTTPS + DestinationProtocolMatchRequest DestinationProtocol = original.DestinationProtocolMatchRequest +) + +type DomainValidationState = original.DomainValidationState + +const ( + Approved DomainValidationState = original.Approved + Pending DomainValidationState = original.Pending + PendingRevalidation DomainValidationState = original.PendingRevalidation + Submitting DomainValidationState = original.Submitting + TimedOut DomainValidationState = original.TimedOut + Unknown DomainValidationState = original.Unknown +) + +type EnabledState = original.EnabledState + +const ( + EnabledStateDisabled EnabledState = original.EnabledStateDisabled + EnabledStateEnabled EnabledState = original.EnabledStateEnabled ) type EndpointResourceState = original.EndpointResourceState @@ -140,6 +199,14 @@ const ( EndpointResourceStateStopping EndpointResourceState = original.EndpointResourceStateStopping ) +type ForwardingProtocol = original.ForwardingProtocol + +const ( + HTTPOnly ForwardingProtocol = original.HTTPOnly + HTTPSOnly ForwardingProtocol = original.HTTPSOnly + MatchRequest ForwardingProtocol = original.MatchRequest +) + type GeoFilterActions = original.GeoFilterActions const ( @@ -147,6 +214,29 @@ const ( GeoFilterActionsBlock GeoFilterActions = original.GeoFilterActionsBlock ) +type Granularity = original.Granularity + +const ( + P1D Granularity = original.P1D + PT1H Granularity = original.PT1H + PT5M Granularity = original.PT5M +) + +type Granularity1 = original.Granularity1 + +const ( + Granularity1P1D Granularity1 = original.Granularity1P1D + Granularity1PT1H Granularity1 = original.Granularity1PT1H + Granularity1PT5M Granularity1 = original.Granularity1PT5M +) + +type HTTPSRedirect = original.HTTPSRedirect + +const ( + HTTPSRedirectDisabled HTTPSRedirect = original.HTTPSRedirectDisabled + HTTPSRedirectEnabled HTTPSRedirect = original.HTTPSRedirectEnabled +) + type HeaderAction = original.HeaderAction const ( @@ -163,6 +253,22 @@ const ( NotSet HealthProbeRequestType = original.NotSet ) +type IdentityType = original.IdentityType + +const ( + Application IdentityType = original.Application + Key IdentityType = original.Key + ManagedIdentity IdentityType = original.ManagedIdentity + User IdentityType = original.User +) + +type LinkToDefaultDomain = original.LinkToDefaultDomain + +const ( + LinkToDefaultDomainDisabled LinkToDefaultDomain = original.LinkToDefaultDomainDisabled + LinkToDefaultDomainEnabled LinkToDefaultDomain = original.LinkToDefaultDomainEnabled +) + type ManagedRuleEnabledState = original.ManagedRuleEnabledState const ( @@ -170,6 +276,13 @@ const ( ManagedRuleEnabledStateEnabled ManagedRuleEnabledState = original.ManagedRuleEnabledStateEnabled ) +type MatchProcessingBehavior = original.MatchProcessingBehavior + +const ( + Continue MatchProcessingBehavior = original.Continue + Stop MatchProcessingBehavior = original.Stop +) + type MatchVariable = original.MatchVariable const ( @@ -187,9 +300,9 @@ const ( type MinimumTLSVersion = original.MinimumTLSVersion const ( - None MinimumTLSVersion = original.None - TLS10 MinimumTLSVersion = original.TLS10 - TLS12 MinimumTLSVersion = original.TLS12 + MinimumTLSVersionNone MinimumTLSVersion = original.MinimumTLSVersionNone + MinimumTLSVersionTLS10 MinimumTLSVersion = original.MinimumTLSVersionTLS10 + MinimumTLSVersionTLS12 MinimumTLSVersion = original.MinimumTLSVersionTLS12 ) type Name = original.Name @@ -220,17 +333,12 @@ const ( NameDeliveryRuleAction NameBasicDeliveryRuleAction = original.NameDeliveryRuleAction NameModifyRequestHeader NameBasicDeliveryRuleAction = original.NameModifyRequestHeader NameModifyResponseHeader NameBasicDeliveryRuleAction = original.NameModifyResponseHeader + NameOriginGroupOverride NameBasicDeliveryRuleAction = original.NameOriginGroupOverride NameURLRedirect NameBasicDeliveryRuleAction = original.NameURLRedirect NameURLRewrite NameBasicDeliveryRuleAction = original.NameURLRewrite NameURLSigning NameBasicDeliveryRuleAction = original.NameURLSigning ) -type OdataType = original.OdataType - -const ( - MicrosoftAzureCdnModelsDeliveryRuleURLSigningActionParameters OdataType = original.MicrosoftAzureCdnModelsDeliveryRuleURLSigningActionParameters -) - type Operator = original.Operator const ( @@ -319,16 +427,17 @@ const ( PostArgsOperatorGreaterThanOrEqual PostArgsOperator = original.PostArgsOperatorGreaterThanOrEqual PostArgsOperatorLessThan PostArgsOperator = original.PostArgsOperatorLessThan PostArgsOperatorLessThanOrEqual PostArgsOperator = original.PostArgsOperatorLessThanOrEqual + PostArgsOperatorRegEx PostArgsOperator = original.PostArgsOperatorRegEx ) type PrivateEndpointStatus = original.PrivateEndpointStatus const ( - Approved PrivateEndpointStatus = original.Approved - Disconnected PrivateEndpointStatus = original.Disconnected - Pending PrivateEndpointStatus = original.Pending - Rejected PrivateEndpointStatus = original.Rejected - Timeout PrivateEndpointStatus = original.Timeout + PrivateEndpointStatusApproved PrivateEndpointStatus = original.PrivateEndpointStatusApproved + PrivateEndpointStatusDisconnected PrivateEndpointStatus = original.PrivateEndpointStatusDisconnected + PrivateEndpointStatusPending PrivateEndpointStatus = original.PrivateEndpointStatusPending + PrivateEndpointStatusRejected PrivateEndpointStatus = original.PrivateEndpointStatusRejected + PrivateEndpointStatusTimeout PrivateEndpointStatus = original.PrivateEndpointStatusTimeout ) type ProbeProtocol = original.ProbeProtocol @@ -393,6 +502,7 @@ const ( QueryStringOperatorGreaterThanOrEqual QueryStringOperator = original.QueryStringOperatorGreaterThanOrEqual QueryStringOperatorLessThan QueryStringOperator = original.QueryStringOperatorLessThan QueryStringOperatorLessThanOrEqual QueryStringOperator = original.QueryStringOperatorLessThanOrEqual + QueryStringOperatorRegEx QueryStringOperator = original.QueryStringOperatorRegEx ) type RedirectType = original.RedirectType @@ -424,6 +534,7 @@ const ( RequestBodyOperatorGreaterThanOrEqual RequestBodyOperator = original.RequestBodyOperatorGreaterThanOrEqual RequestBodyOperatorLessThan RequestBodyOperator = original.RequestBodyOperatorLessThan RequestBodyOperatorLessThanOrEqual RequestBodyOperator = original.RequestBodyOperatorLessThanOrEqual + RequestBodyOperatorRegEx RequestBodyOperator = original.RequestBodyOperatorRegEx ) type RequestHeaderOperator = original.RequestHeaderOperator @@ -438,6 +549,7 @@ const ( RequestHeaderOperatorGreaterThanOrEqual RequestHeaderOperator = original.RequestHeaderOperatorGreaterThanOrEqual RequestHeaderOperatorLessThan RequestHeaderOperator = original.RequestHeaderOperatorLessThan RequestHeaderOperatorLessThanOrEqual RequestHeaderOperator = original.RequestHeaderOperatorLessThanOrEqual + RequestHeaderOperatorRegEx RequestHeaderOperator = original.RequestHeaderOperatorRegEx ) type RequestURIOperator = original.RequestURIOperator @@ -452,6 +564,7 @@ const ( RequestURIOperatorGreaterThanOrEqual RequestURIOperator = original.RequestURIOperatorGreaterThanOrEqual RequestURIOperatorLessThan RequestURIOperator = original.RequestURIOperatorLessThan RequestURIOperatorLessThanOrEqual RequestURIOperator = original.RequestURIOperatorLessThanOrEqual + RequestURIOperatorRegEx RequestURIOperator = original.RequestURIOperatorRegEx ) type ResourceType = original.ResourceType @@ -463,21 +576,55 @@ const ( type ResponseBasedDetectedErrorTypes = original.ResponseBasedDetectedErrorTypes const ( - ResponseBasedDetectedErrorTypesNone ResponseBasedDetectedErrorTypes = original.ResponseBasedDetectedErrorTypesNone - ResponseBasedDetectedErrorTypesTCPAndHTTPErrors ResponseBasedDetectedErrorTypes = original.ResponseBasedDetectedErrorTypesTCPAndHTTPErrors - ResponseBasedDetectedErrorTypesTCPErrorsOnly ResponseBasedDetectedErrorTypes = original.ResponseBasedDetectedErrorTypesTCPErrorsOnly + None ResponseBasedDetectedErrorTypes = original.None + TCPAndHTTPErrors ResponseBasedDetectedErrorTypes = original.TCPAndHTTPErrors + TCPErrorsOnly ResponseBasedDetectedErrorTypes = original.TCPErrorsOnly +) + +type SecretType = original.SecretType + +const ( + SecretTypeCustomerCertificate SecretType = original.SecretTypeCustomerCertificate + SecretTypeManagedCertificate SecretType = original.SecretTypeManagedCertificate + SecretTypeURLSigningKey SecretType = original.SecretTypeURLSigningKey +) + +type SharedPrivateLinkResourceStatus = original.SharedPrivateLinkResourceStatus + +const ( + SharedPrivateLinkResourceStatusApproved SharedPrivateLinkResourceStatus = original.SharedPrivateLinkResourceStatusApproved + SharedPrivateLinkResourceStatusDisconnected SharedPrivateLinkResourceStatus = original.SharedPrivateLinkResourceStatusDisconnected + SharedPrivateLinkResourceStatusPending SharedPrivateLinkResourceStatus = original.SharedPrivateLinkResourceStatusPending + SharedPrivateLinkResourceStatusRejected SharedPrivateLinkResourceStatus = original.SharedPrivateLinkResourceStatusRejected + SharedPrivateLinkResourceStatusTimeout SharedPrivateLinkResourceStatus = original.SharedPrivateLinkResourceStatusTimeout ) type SkuName = original.SkuName const ( - CustomVerizon SkuName = original.CustomVerizon - PremiumChinaCdn SkuName = original.PremiumChinaCdn - PremiumVerizon SkuName = original.PremiumVerizon - StandardAkamai SkuName = original.StandardAkamai - StandardChinaCdn SkuName = original.StandardChinaCdn - StandardMicrosoft SkuName = original.StandardMicrosoft - StandardVerizon SkuName = original.StandardVerizon + CustomVerizon SkuName = original.CustomVerizon + PremiumAzureFrontDoor SkuName = original.PremiumAzureFrontDoor + PremiumChinaCdn SkuName = original.PremiumChinaCdn + PremiumVerizon SkuName = original.PremiumVerizon + Standard955BandWidthChinaCdn SkuName = original.Standard955BandWidthChinaCdn + StandardAkamai SkuName = original.StandardAkamai + StandardAvgBandWidthChinaCdn SkuName = original.StandardAvgBandWidthChinaCdn + StandardAzureFrontDoor SkuName = original.StandardAzureFrontDoor + StandardChinaCdn SkuName = original.StandardChinaCdn + StandardMicrosoft SkuName = original.StandardMicrosoft + StandardPlus955BandWidthChinaCdn SkuName = original.StandardPlus955BandWidthChinaCdn + StandardPlusAvgBandWidthChinaCdn SkuName = original.StandardPlusAvgBandWidthChinaCdn + StandardPlusChinaCdn SkuName = original.StandardPlusChinaCdn + StandardVerizon SkuName = original.StandardVerizon +) + +type Status = original.Status + +const ( + AccessDenied Status = original.AccessDenied + CertificateExpired Status = original.CertificateExpired + Invalid Status = original.Invalid + Valid Status = original.Valid ) type Transform = original.Transform @@ -498,6 +645,20 @@ const ( TransformTypeURLEncode TransformType = original.TransformTypeURLEncode ) +type Type = original.Type + +const ( + TypeSecurityPolicyParameters Type = original.TypeSecurityPolicyParameters + TypeWebApplicationFirewall Type = original.TypeWebApplicationFirewall +) + +type TypeBasicSecretParameters = original.TypeBasicSecretParameters + +const ( + TypeSecretParameters TypeBasicSecretParameters = original.TypeSecretParameters + TypeURLSigningKey TypeBasicSecretParameters = original.TypeURLSigningKey +) + type URLFileExtensionOperator = original.URLFileExtensionOperator const ( @@ -510,6 +671,7 @@ const ( URLFileExtensionOperatorGreaterThanOrEqual URLFileExtensionOperator = original.URLFileExtensionOperatorGreaterThanOrEqual URLFileExtensionOperatorLessThan URLFileExtensionOperator = original.URLFileExtensionOperatorLessThan URLFileExtensionOperatorLessThanOrEqual URLFileExtensionOperator = original.URLFileExtensionOperatorLessThanOrEqual + URLFileExtensionOperatorRegEx URLFileExtensionOperator = original.URLFileExtensionOperatorRegEx ) type URLFileNameOperator = original.URLFileNameOperator @@ -524,6 +686,7 @@ const ( URLFileNameOperatorGreaterThanOrEqual URLFileNameOperator = original.URLFileNameOperatorGreaterThanOrEqual URLFileNameOperatorLessThan URLFileNameOperator = original.URLFileNameOperatorLessThan URLFileNameOperatorLessThanOrEqual URLFileNameOperator = original.URLFileNameOperatorLessThanOrEqual + URLFileNameOperatorRegEx URLFileNameOperator = original.URLFileNameOperatorRegEx ) type URLPathOperator = original.URLPathOperator @@ -538,19 +701,100 @@ const ( URLPathOperatorGreaterThanOrEqual URLPathOperator = original.URLPathOperatorGreaterThanOrEqual URLPathOperatorLessThan URLPathOperator = original.URLPathOperatorLessThan URLPathOperatorLessThanOrEqual URLPathOperator = original.URLPathOperatorLessThanOrEqual + URLPathOperatorRegEx URLPathOperator = original.URLPathOperatorRegEx URLPathOperatorWildcard URLPathOperator = original.URLPathOperatorWildcard ) +type Unit = original.Unit + +const ( + BitsPerSecond Unit = original.BitsPerSecond + Bytes Unit = original.Bytes + Count Unit = original.Count +) + +type Unit1 = original.Unit1 + +const ( + Unit1Count Unit1 = original.Unit1Count +) + +type ValidateSecretType = original.ValidateSecretType + +const ( + ValidateSecretTypeCustomerCertificate ValidateSecretType = original.ValidateSecretTypeCustomerCertificate + ValidateSecretTypeManagedCertificate ValidateSecretType = original.ValidateSecretTypeManagedCertificate + ValidateSecretTypeURLSigningKey ValidateSecretType = original.ValidateSecretTypeURLSigningKey +) + +type AFDCustomDomainsClient = original.AFDCustomDomainsClient +type AFDCustomDomainsCreateFuture = original.AFDCustomDomainsCreateFuture +type AFDCustomDomainsDeleteFuture = original.AFDCustomDomainsDeleteFuture +type AFDCustomDomainsRefreshValidationTokenFuture = original.AFDCustomDomainsRefreshValidationTokenFuture +type AFDCustomDomainsUpdateFuture = original.AFDCustomDomainsUpdateFuture +type AFDDomain = original.AFDDomain +type AFDDomainHTTPSParameters = original.AFDDomainHTTPSParameters +type AFDDomainListResult = original.AFDDomainListResult +type AFDDomainListResultIterator = original.AFDDomainListResultIterator +type AFDDomainListResultPage = original.AFDDomainListResultPage +type AFDDomainProperties = original.AFDDomainProperties +type AFDDomainUpdateParameters = original.AFDDomainUpdateParameters +type AFDDomainUpdatePropertiesParameters = original.AFDDomainUpdatePropertiesParameters +type AFDEndpoint = original.AFDEndpoint +type AFDEndpointListResult = original.AFDEndpointListResult +type AFDEndpointListResultIterator = original.AFDEndpointListResultIterator +type AFDEndpointListResultPage = original.AFDEndpointListResultPage +type AFDEndpointProperties = original.AFDEndpointProperties +type AFDEndpointPropertiesUpdateParameters = original.AFDEndpointPropertiesUpdateParameters +type AFDEndpointUpdateParameters = original.AFDEndpointUpdateParameters +type AFDEndpointsClient = original.AFDEndpointsClient +type AFDEndpointsCreateFuture = original.AFDEndpointsCreateFuture +type AFDEndpointsDeleteFuture = original.AFDEndpointsDeleteFuture +type AFDEndpointsPurgeContentFuture = original.AFDEndpointsPurgeContentFuture +type AFDEndpointsUpdateFuture = original.AFDEndpointsUpdateFuture +type AFDOrigin = original.AFDOrigin +type AFDOriginGroup = original.AFDOriginGroup +type AFDOriginGroupListResult = original.AFDOriginGroupListResult +type AFDOriginGroupListResultIterator = original.AFDOriginGroupListResultIterator +type AFDOriginGroupListResultPage = original.AFDOriginGroupListResultPage +type AFDOriginGroupProperties = original.AFDOriginGroupProperties +type AFDOriginGroupUpdateParameters = original.AFDOriginGroupUpdateParameters +type AFDOriginGroupUpdatePropertiesParameters = original.AFDOriginGroupUpdatePropertiesParameters +type AFDOriginGroupsClient = original.AFDOriginGroupsClient +type AFDOriginGroupsCreateFuture = original.AFDOriginGroupsCreateFuture +type AFDOriginGroupsDeleteFuture = original.AFDOriginGroupsDeleteFuture +type AFDOriginGroupsUpdateFuture = original.AFDOriginGroupsUpdateFuture +type AFDOriginListResult = original.AFDOriginListResult +type AFDOriginListResultIterator = original.AFDOriginListResultIterator +type AFDOriginListResultPage = original.AFDOriginListResultPage +type AFDOriginProperties = original.AFDOriginProperties +type AFDOriginUpdateParameters = original.AFDOriginUpdateParameters +type AFDOriginUpdatePropertiesParameters = original.AFDOriginUpdatePropertiesParameters +type AFDOriginsClient = original.AFDOriginsClient +type AFDOriginsCreateFuture = original.AFDOriginsCreateFuture +type AFDOriginsDeleteFuture = original.AFDOriginsDeleteFuture +type AFDOriginsUpdateFuture = original.AFDOriginsUpdateFuture +type AFDProfilesClient = original.AFDProfilesClient +type AFDStateProperties = original.AFDStateProperties +type AfdErrorResponse = original.AfdErrorResponse +type AfdPurgeParameters = original.AfdPurgeParameters type BaseClient = original.BaseClient type BasicCustomDomainHTTPSParameters = original.BasicCustomDomainHTTPSParameters type BasicDeliveryRuleAction = original.BasicDeliveryRuleAction type BasicDeliveryRuleCondition = original.BasicDeliveryRuleCondition +type BasicSecretParameters = original.BasicSecretParameters +type BasicSecurityPolicyParameters = original.BasicSecurityPolicyParameters type CacheExpirationActionParameters = original.CacheExpirationActionParameters type CacheKeyQueryStringActionParameters = original.CacheKeyQueryStringActionParameters +type Certificate = original.Certificate type CertificateSourceParameters = original.CertificateSourceParameters type CheckNameAvailabilityInput = original.CheckNameAvailabilityInput type CheckNameAvailabilityOutput = original.CheckNameAvailabilityOutput type CidrIPAddress = original.CidrIPAddress +type CompressionSettings = original.CompressionSettings +type ContinentsResponse = original.ContinentsResponse +type ContinentsResponseContinentsItem = original.ContinentsResponseContinentsItem +type ContinentsResponseCountryOrRegionsItem = original.ContinentsResponseCountryOrRegionsItem type CookiesMatchConditionParameters = original.CookiesMatchConditionParameters type CustomDomain = original.CustomDomain type CustomDomainHTTPSParameters = original.CustomDomainHTTPSParameters @@ -565,6 +809,8 @@ type CustomDomainsCreateFuture = original.CustomDomainsCreateFuture type CustomDomainsDeleteFuture = original.CustomDomainsDeleteFuture type CustomRule = original.CustomRule type CustomRuleList = original.CustomRuleList +type CustomerCertificate = original.CustomerCertificate +type CustomerCertificateParameters = original.CustomerCertificateParameters type DeepCreatedOrigin = original.DeepCreatedOrigin type DeepCreatedOriginGroup = original.DeepCreatedOriginGroup type DeepCreatedOriginGroupProperties = original.DeepCreatedOriginGroupProperties @@ -590,6 +836,7 @@ type DeliveryRuleResponseHeaderAction = original.DeliveryRuleResponseHeaderActio type DeliveryRuleURLFileExtensionCondition = original.DeliveryRuleURLFileExtensionCondition type DeliveryRuleURLFileNameCondition = original.DeliveryRuleURLFileNameCondition type DeliveryRuleURLPathCondition = original.DeliveryRuleURLPathCondition +type DomainValidationProperties = original.DomainValidationProperties type EdgeNode = original.EdgeNode type EdgeNodeProperties = original.EdgeNodeProperties type EdgeNodesClient = original.EdgeNodesClient @@ -624,7 +871,11 @@ type IPAddressGroup = original.IPAddressGroup type IsDeviceMatchConditionParameters = original.IsDeviceMatchConditionParameters type KeyVaultCertificateSourceParameters = original.KeyVaultCertificateSourceParameters type KeyVaultSigningKeyParameters = original.KeyVaultSigningKeyParameters +type LoadBalancingSettingsParameters = original.LoadBalancingSettingsParameters type LoadParameters = original.LoadParameters +type LogAnalyticsClient = original.LogAnalyticsClient +type ManagedCertificate = original.ManagedCertificate +type ManagedCertificateParameters = original.ManagedCertificateParameters type ManagedHTTPSParameters = original.ManagedHTTPSParameters type ManagedRuleDefinition = original.ManagedRuleDefinition type ManagedRuleGroupDefinition = original.ManagedRuleGroupDefinition @@ -639,6 +890,10 @@ type ManagedRuleSetDefinitionProperties = original.ManagedRuleSetDefinitionPrope type ManagedRuleSetList = original.ManagedRuleSetList type ManagedRuleSetsClient = original.ManagedRuleSetsClient type MatchCondition = original.MatchCondition +type MetricsResponse = original.MetricsResponse +type MetricsResponseSeriesItem = original.MetricsResponseSeriesItem +type MetricsResponseSeriesItemDataItem = original.MetricsResponseSeriesItemDataItem +type MetricsResponseSeriesItemGroupsItem = original.MetricsResponseSeriesItemGroupsItem type Operation = original.Operation type OperationDisplay = original.OperationDisplay type OperationsClient = original.OperationsClient @@ -650,6 +905,8 @@ type OriginGroup = original.OriginGroup type OriginGroupListResult = original.OriginGroupListResult type OriginGroupListResultIterator = original.OriginGroupListResultIterator type OriginGroupListResultPage = original.OriginGroupListResultPage +type OriginGroupOverrideAction = original.OriginGroupOverrideAction +type OriginGroupOverrideActionParameters = original.OriginGroupOverrideActionParameters type OriginGroupProperties = original.OriginGroupProperties type OriginGroupUpdateParameters = original.OriginGroupUpdateParameters type OriginGroupUpdatePropertiesParameters = original.OriginGroupUpdatePropertiesParameters @@ -685,6 +942,10 @@ type ProfilesUpdateFuture = original.ProfilesUpdateFuture type ProxyResource = original.ProxyResource type PurgeParameters = original.PurgeParameters type QueryStringMatchConditionParameters = original.QueryStringMatchConditionParameters +type RankingsResponse = original.RankingsResponse +type RankingsResponseTablesItem = original.RankingsResponseTablesItem +type RankingsResponseTablesItemDataItem = original.RankingsResponseTablesItemDataItem +type RankingsResponseTablesItemDataItemMetricsItem = original.RankingsResponseTablesItemDataItemMetricsItem type RateLimitRule = original.RateLimitRule type RateLimitRuleList = original.RateLimitRuleList type RemoteAddressMatchConditionParameters = original.RemoteAddressMatchConditionParameters @@ -700,10 +961,68 @@ type ResourceUsageClient = original.ResourceUsageClient type ResourceUsageListResult = original.ResourceUsageListResult type ResourceUsageListResultIterator = original.ResourceUsageListResultIterator type ResourceUsageListResultPage = original.ResourceUsageListResultPage +type ResourcesResponse = original.ResourcesResponse +type ResourcesResponseCustomDomainsItem = original.ResourcesResponseCustomDomainsItem +type ResourcesResponseEndpointsItem = original.ResourcesResponseEndpointsItem +type ResourcesResponseEndpointsItemCustomDomainsItem = original.ResourcesResponseEndpointsItemCustomDomainsItem type ResponseBasedOriginErrorDetectionParameters = original.ResponseBasedOriginErrorDetectionParameters +type Route = original.Route +type RouteListResult = original.RouteListResult +type RouteListResultIterator = original.RouteListResultIterator +type RouteListResultPage = original.RouteListResultPage +type RouteProperties = original.RouteProperties +type RouteUpdateParameters = original.RouteUpdateParameters +type RouteUpdatePropertiesParameters = original.RouteUpdatePropertiesParameters +type RoutesClient = original.RoutesClient +type RoutesCreateFuture = original.RoutesCreateFuture +type RoutesDeleteFuture = original.RoutesDeleteFuture +type RoutesUpdateFuture = original.RoutesUpdateFuture +type Rule = original.Rule +type RuleListResult = original.RuleListResult +type RuleListResultIterator = original.RuleListResultIterator +type RuleListResultPage = original.RuleListResultPage +type RuleProperties = original.RuleProperties +type RuleSet = original.RuleSet +type RuleSetListResult = original.RuleSetListResult +type RuleSetListResultIterator = original.RuleSetListResultIterator +type RuleSetListResultPage = original.RuleSetListResultPage +type RuleSetProperties = original.RuleSetProperties +type RuleSetsClient = original.RuleSetsClient +type RuleSetsCreateFuture = original.RuleSetsCreateFuture +type RuleSetsDeleteFuture = original.RuleSetsDeleteFuture +type RuleUpdateParameters = original.RuleUpdateParameters +type RuleUpdatePropertiesParameters = original.RuleUpdatePropertiesParameters +type RulesClient = original.RulesClient +type RulesCreateFuture = original.RulesCreateFuture +type RulesDeleteFuture = original.RulesDeleteFuture +type RulesUpdateFuture = original.RulesUpdateFuture +type Secret = original.Secret +type SecretListResult = original.SecretListResult +type SecretListResultIterator = original.SecretListResultIterator +type SecretListResultPage = original.SecretListResultPage +type SecretParameters = original.SecretParameters +type SecretProperties = original.SecretProperties +type SecretsClient = original.SecretsClient +type SecretsCreateFuture = original.SecretsCreateFuture +type SecretsDeleteFuture = original.SecretsDeleteFuture +type SecretsUpdateFuture = original.SecretsUpdateFuture +type SecurityPoliciesClient = original.SecurityPoliciesClient +type SecurityPoliciesCreateFuture = original.SecurityPoliciesCreateFuture +type SecurityPoliciesDeleteFuture = original.SecurityPoliciesDeleteFuture +type SecurityPoliciesPatchFuture = original.SecurityPoliciesPatchFuture +type SecurityPolicy = original.SecurityPolicy +type SecurityPolicyListResult = original.SecurityPolicyListResult +type SecurityPolicyListResultIterator = original.SecurityPolicyListResultIterator +type SecurityPolicyListResultPage = original.SecurityPolicyListResultPage +type SecurityPolicyParameters = original.SecurityPolicyParameters +type SecurityPolicyProperties = original.SecurityPolicyProperties +type SecurityPolicyWebApplicationFirewallAssociation = original.SecurityPolicyWebApplicationFirewallAssociation +type SecurityPolicyWebApplicationFirewallParameters = original.SecurityPolicyWebApplicationFirewallParameters +type SharedPrivateLinkResourceProperties = original.SharedPrivateLinkResourceProperties type Sku = original.Sku type SsoURI = original.SsoURI type SupportedOptimizationTypesListResult = original.SupportedOptimizationTypesListResult +type SystemData = original.SystemData type TrackedResource = original.TrackedResource type URLFileExtensionMatchConditionParameters = original.URLFileExtensionMatchConditionParameters type URLFileNameMatchConditionParameters = original.URLFileNameMatchConditionParameters @@ -715,12 +1034,29 @@ type URLRewriteActionParameters = original.URLRewriteActionParameters type URLSigningAction = original.URLSigningAction type URLSigningActionParameters = original.URLSigningActionParameters type URLSigningKey = original.URLSigningKey +type URLSigningKeyParameters = original.URLSigningKeyParameters type URLSigningParamIdentifier = original.URLSigningParamIdentifier +type Usage = original.Usage +type UsageName = original.UsageName +type UsagesListResult = original.UsagesListResult +type UsagesListResultIterator = original.UsagesListResultIterator +type UsagesListResultPage = original.UsagesListResultPage type UserManagedHTTPSParameters = original.UserManagedHTTPSParameters +type ValidateClient = original.ValidateClient type ValidateCustomDomainInput = original.ValidateCustomDomainInput type ValidateCustomDomainOutput = original.ValidateCustomDomainOutput type ValidateProbeInput = original.ValidateProbeInput type ValidateProbeOutput = original.ValidateProbeOutput +type ValidateSecretInput = original.ValidateSecretInput +type ValidateSecretOutput = original.ValidateSecretOutput +type ValidationToken = original.ValidationToken +type WafMetricsResponse = original.WafMetricsResponse +type WafMetricsResponseSeriesItem = original.WafMetricsResponseSeriesItem +type WafMetricsResponseSeriesItemDataItem = original.WafMetricsResponseSeriesItemDataItem +type WafMetricsResponseSeriesItemGroupsItem = original.WafMetricsResponseSeriesItemGroupsItem +type WafRankingsResponse = original.WafRankingsResponse +type WafRankingsResponseDataItem = original.WafRankingsResponseDataItem +type WafRankingsResponseDataItemMetricsItem = original.WafRankingsResponseDataItemMetricsItem type WebApplicationFirewallPolicy = original.WebApplicationFirewallPolicy type WebApplicationFirewallPolicyList = original.WebApplicationFirewallPolicyList type WebApplicationFirewallPolicyListIterator = original.WebApplicationFirewallPolicyListIterator @@ -728,8 +1064,62 @@ type WebApplicationFirewallPolicyListPage = original.WebApplicationFirewallPolic type WebApplicationFirewallPolicyPatchParameters = original.WebApplicationFirewallPolicyPatchParameters type WebApplicationFirewallPolicyProperties = original.WebApplicationFirewallPolicyProperties -func New(subscriptionID string) BaseClient { - return original.New(subscriptionID) +func New(subscriptionID string, subscriptionID1 string) BaseClient { + return original.New(subscriptionID, subscriptionID1) +} +func NewAFDCustomDomainsClient(subscriptionID string, subscriptionID1 string) AFDCustomDomainsClient { + return original.NewAFDCustomDomainsClient(subscriptionID, subscriptionID1) +} +func NewAFDCustomDomainsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) AFDCustomDomainsClient { + return original.NewAFDCustomDomainsClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) +} +func NewAFDDomainListResultIterator(page AFDDomainListResultPage) AFDDomainListResultIterator { + return original.NewAFDDomainListResultIterator(page) +} +func NewAFDDomainListResultPage(cur AFDDomainListResult, getNextPage func(context.Context, AFDDomainListResult) (AFDDomainListResult, error)) AFDDomainListResultPage { + return original.NewAFDDomainListResultPage(cur, getNextPage) +} +func NewAFDEndpointListResultIterator(page AFDEndpointListResultPage) AFDEndpointListResultIterator { + return original.NewAFDEndpointListResultIterator(page) +} +func NewAFDEndpointListResultPage(cur AFDEndpointListResult, getNextPage func(context.Context, AFDEndpointListResult) (AFDEndpointListResult, error)) AFDEndpointListResultPage { + return original.NewAFDEndpointListResultPage(cur, getNextPage) +} +func NewAFDEndpointsClient(subscriptionID string, subscriptionID1 string) AFDEndpointsClient { + return original.NewAFDEndpointsClient(subscriptionID, subscriptionID1) +} +func NewAFDEndpointsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) AFDEndpointsClient { + return original.NewAFDEndpointsClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) +} +func NewAFDOriginGroupListResultIterator(page AFDOriginGroupListResultPage) AFDOriginGroupListResultIterator { + return original.NewAFDOriginGroupListResultIterator(page) +} +func NewAFDOriginGroupListResultPage(cur AFDOriginGroupListResult, getNextPage func(context.Context, AFDOriginGroupListResult) (AFDOriginGroupListResult, error)) AFDOriginGroupListResultPage { + return original.NewAFDOriginGroupListResultPage(cur, getNextPage) +} +func NewAFDOriginGroupsClient(subscriptionID string, subscriptionID1 string) AFDOriginGroupsClient { + return original.NewAFDOriginGroupsClient(subscriptionID, subscriptionID1) +} +func NewAFDOriginGroupsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) AFDOriginGroupsClient { + return original.NewAFDOriginGroupsClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) +} +func NewAFDOriginListResultIterator(page AFDOriginListResultPage) AFDOriginListResultIterator { + return original.NewAFDOriginListResultIterator(page) +} +func NewAFDOriginListResultPage(cur AFDOriginListResult, getNextPage func(context.Context, AFDOriginListResult) (AFDOriginListResult, error)) AFDOriginListResultPage { + return original.NewAFDOriginListResultPage(cur, getNextPage) +} +func NewAFDOriginsClient(subscriptionID string, subscriptionID1 string) AFDOriginsClient { + return original.NewAFDOriginsClient(subscriptionID, subscriptionID1) +} +func NewAFDOriginsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) AFDOriginsClient { + return original.NewAFDOriginsClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) +} +func NewAFDProfilesClient(subscriptionID string, subscriptionID1 string) AFDProfilesClient { + return original.NewAFDProfilesClient(subscriptionID, subscriptionID1) +} +func NewAFDProfilesClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) AFDProfilesClient { + return original.NewAFDProfilesClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) } func NewCustomDomainListResultIterator(page CustomDomainListResultPage) CustomDomainListResultIterator { return original.NewCustomDomainListResultIterator(page) @@ -737,17 +1127,17 @@ func NewCustomDomainListResultIterator(page CustomDomainListResultPage) CustomDo func NewCustomDomainListResultPage(cur CustomDomainListResult, getNextPage func(context.Context, CustomDomainListResult) (CustomDomainListResult, error)) CustomDomainListResultPage { return original.NewCustomDomainListResultPage(cur, getNextPage) } -func NewCustomDomainsClient(subscriptionID string) CustomDomainsClient { - return original.NewCustomDomainsClient(subscriptionID) +func NewCustomDomainsClient(subscriptionID string, subscriptionID1 string) CustomDomainsClient { + return original.NewCustomDomainsClient(subscriptionID, subscriptionID1) } -func NewCustomDomainsClientWithBaseURI(baseURI string, subscriptionID string) CustomDomainsClient { - return original.NewCustomDomainsClientWithBaseURI(baseURI, subscriptionID) +func NewCustomDomainsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) CustomDomainsClient { + return original.NewCustomDomainsClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) } -func NewEdgeNodesClient(subscriptionID string) EdgeNodesClient { - return original.NewEdgeNodesClient(subscriptionID) +func NewEdgeNodesClient(subscriptionID string, subscriptionID1 string) EdgeNodesClient { + return original.NewEdgeNodesClient(subscriptionID, subscriptionID1) } -func NewEdgeNodesClientWithBaseURI(baseURI string, subscriptionID string) EdgeNodesClient { - return original.NewEdgeNodesClientWithBaseURI(baseURI, subscriptionID) +func NewEdgeNodesClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) EdgeNodesClient { + return original.NewEdgeNodesClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) } func NewEdgenodeResultIterator(page EdgenodeResultPage) EdgenodeResultIterator { return original.NewEdgenodeResultIterator(page) @@ -761,11 +1151,17 @@ func NewEndpointListResultIterator(page EndpointListResultPage) EndpointListResu func NewEndpointListResultPage(cur EndpointListResult, getNextPage func(context.Context, EndpointListResult) (EndpointListResult, error)) EndpointListResultPage { return original.NewEndpointListResultPage(cur, getNextPage) } -func NewEndpointsClient(subscriptionID string) EndpointsClient { - return original.NewEndpointsClient(subscriptionID) +func NewEndpointsClient(subscriptionID string, subscriptionID1 string) EndpointsClient { + return original.NewEndpointsClient(subscriptionID, subscriptionID1) } -func NewEndpointsClientWithBaseURI(baseURI string, subscriptionID string) EndpointsClient { - return original.NewEndpointsClientWithBaseURI(baseURI, subscriptionID) +func NewEndpointsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) EndpointsClient { + return original.NewEndpointsClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) +} +func NewLogAnalyticsClient(subscriptionID string, subscriptionID1 string) LogAnalyticsClient { + return original.NewLogAnalyticsClient(subscriptionID, subscriptionID1) +} +func NewLogAnalyticsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) LogAnalyticsClient { + return original.NewLogAnalyticsClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) } func NewManagedRuleSetDefinitionListIterator(page ManagedRuleSetDefinitionListPage) ManagedRuleSetDefinitionListIterator { return original.NewManagedRuleSetDefinitionListIterator(page) @@ -773,17 +1169,17 @@ func NewManagedRuleSetDefinitionListIterator(page ManagedRuleSetDefinitionListPa func NewManagedRuleSetDefinitionListPage(cur ManagedRuleSetDefinitionList, getNextPage func(context.Context, ManagedRuleSetDefinitionList) (ManagedRuleSetDefinitionList, error)) ManagedRuleSetDefinitionListPage { return original.NewManagedRuleSetDefinitionListPage(cur, getNextPage) } -func NewManagedRuleSetsClient(subscriptionID string) ManagedRuleSetsClient { - return original.NewManagedRuleSetsClient(subscriptionID) +func NewManagedRuleSetsClient(subscriptionID string, subscriptionID1 string) ManagedRuleSetsClient { + return original.NewManagedRuleSetsClient(subscriptionID, subscriptionID1) } -func NewManagedRuleSetsClientWithBaseURI(baseURI string, subscriptionID string) ManagedRuleSetsClient { - return original.NewManagedRuleSetsClientWithBaseURI(baseURI, subscriptionID) +func NewManagedRuleSetsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) ManagedRuleSetsClient { + return original.NewManagedRuleSetsClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) } -func NewOperationsClient(subscriptionID string) OperationsClient { - return original.NewOperationsClient(subscriptionID) +func NewOperationsClient(subscriptionID string, subscriptionID1 string) OperationsClient { + return original.NewOperationsClient(subscriptionID, subscriptionID1) } -func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { - return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID) +func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) OperationsClient { + return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) } func NewOperationsListResultIterator(page OperationsListResultPage) OperationsListResultIterator { return original.NewOperationsListResultIterator(page) @@ -797,11 +1193,11 @@ func NewOriginGroupListResultIterator(page OriginGroupListResultPage) OriginGrou func NewOriginGroupListResultPage(cur OriginGroupListResult, getNextPage func(context.Context, OriginGroupListResult) (OriginGroupListResult, error)) OriginGroupListResultPage { return original.NewOriginGroupListResultPage(cur, getNextPage) } -func NewOriginGroupsClient(subscriptionID string) OriginGroupsClient { - return original.NewOriginGroupsClient(subscriptionID) +func NewOriginGroupsClient(subscriptionID string, subscriptionID1 string) OriginGroupsClient { + return original.NewOriginGroupsClient(subscriptionID, subscriptionID1) } -func NewOriginGroupsClientWithBaseURI(baseURI string, subscriptionID string) OriginGroupsClient { - return original.NewOriginGroupsClientWithBaseURI(baseURI, subscriptionID) +func NewOriginGroupsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) OriginGroupsClient { + return original.NewOriginGroupsClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) } func NewOriginListResultIterator(page OriginListResultPage) OriginListResultIterator { return original.NewOriginListResultIterator(page) @@ -809,17 +1205,17 @@ func NewOriginListResultIterator(page OriginListResultPage) OriginListResultIter func NewOriginListResultPage(cur OriginListResult, getNextPage func(context.Context, OriginListResult) (OriginListResult, error)) OriginListResultPage { return original.NewOriginListResultPage(cur, getNextPage) } -func NewOriginsClient(subscriptionID string) OriginsClient { - return original.NewOriginsClient(subscriptionID) +func NewOriginsClient(subscriptionID string, subscriptionID1 string) OriginsClient { + return original.NewOriginsClient(subscriptionID, subscriptionID1) } -func NewOriginsClientWithBaseURI(baseURI string, subscriptionID string) OriginsClient { - return original.NewOriginsClientWithBaseURI(baseURI, subscriptionID) +func NewOriginsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) OriginsClient { + return original.NewOriginsClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) } -func NewPoliciesClient(subscriptionID string) PoliciesClient { - return original.NewPoliciesClient(subscriptionID) +func NewPoliciesClient(subscriptionID string, subscriptionID1 string) PoliciesClient { + return original.NewPoliciesClient(subscriptionID, subscriptionID1) } -func NewPoliciesClientWithBaseURI(baseURI string, subscriptionID string) PoliciesClient { - return original.NewPoliciesClientWithBaseURI(baseURI, subscriptionID) +func NewPoliciesClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) PoliciesClient { + return original.NewPoliciesClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) } func NewProfileListResultIterator(page ProfileListResultPage) ProfileListResultIterator { return original.NewProfileListResultIterator(page) @@ -827,17 +1223,17 @@ func NewProfileListResultIterator(page ProfileListResultPage) ProfileListResultI func NewProfileListResultPage(cur ProfileListResult, getNextPage func(context.Context, ProfileListResult) (ProfileListResult, error)) ProfileListResultPage { return original.NewProfileListResultPage(cur, getNextPage) } -func NewProfilesClient(subscriptionID string) ProfilesClient { - return original.NewProfilesClient(subscriptionID) +func NewProfilesClient(subscriptionID string, subscriptionID1 string) ProfilesClient { + return original.NewProfilesClient(subscriptionID, subscriptionID1) } -func NewProfilesClientWithBaseURI(baseURI string, subscriptionID string) ProfilesClient { - return original.NewProfilesClientWithBaseURI(baseURI, subscriptionID) +func NewProfilesClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) ProfilesClient { + return original.NewProfilesClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) } -func NewResourceUsageClient(subscriptionID string) ResourceUsageClient { - return original.NewResourceUsageClient(subscriptionID) +func NewResourceUsageClient(subscriptionID string, subscriptionID1 string) ResourceUsageClient { + return original.NewResourceUsageClient(subscriptionID, subscriptionID1) } -func NewResourceUsageClientWithBaseURI(baseURI string, subscriptionID string) ResourceUsageClient { - return original.NewResourceUsageClientWithBaseURI(baseURI, subscriptionID) +func NewResourceUsageClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) ResourceUsageClient { + return original.NewResourceUsageClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) } func NewResourceUsageListResultIterator(page ResourceUsageListResultPage) ResourceUsageListResultIterator { return original.NewResourceUsageListResultIterator(page) @@ -845,18 +1241,102 @@ func NewResourceUsageListResultIterator(page ResourceUsageListResultPage) Resour func NewResourceUsageListResultPage(cur ResourceUsageListResult, getNextPage func(context.Context, ResourceUsageListResult) (ResourceUsageListResult, error)) ResourceUsageListResultPage { return original.NewResourceUsageListResultPage(cur, getNextPage) } +func NewRouteListResultIterator(page RouteListResultPage) RouteListResultIterator { + return original.NewRouteListResultIterator(page) +} +func NewRouteListResultPage(cur RouteListResult, getNextPage func(context.Context, RouteListResult) (RouteListResult, error)) RouteListResultPage { + return original.NewRouteListResultPage(cur, getNextPage) +} +func NewRoutesClient(subscriptionID string, subscriptionID1 string) RoutesClient { + return original.NewRoutesClient(subscriptionID, subscriptionID1) +} +func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) RoutesClient { + return original.NewRoutesClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) +} +func NewRuleListResultIterator(page RuleListResultPage) RuleListResultIterator { + return original.NewRuleListResultIterator(page) +} +func NewRuleListResultPage(cur RuleListResult, getNextPage func(context.Context, RuleListResult) (RuleListResult, error)) RuleListResultPage { + return original.NewRuleListResultPage(cur, getNextPage) +} +func NewRuleSetListResultIterator(page RuleSetListResultPage) RuleSetListResultIterator { + return original.NewRuleSetListResultIterator(page) +} +func NewRuleSetListResultPage(cur RuleSetListResult, getNextPage func(context.Context, RuleSetListResult) (RuleSetListResult, error)) RuleSetListResultPage { + return original.NewRuleSetListResultPage(cur, getNextPage) +} +func NewRuleSetsClient(subscriptionID string, subscriptionID1 string) RuleSetsClient { + return original.NewRuleSetsClient(subscriptionID, subscriptionID1) +} +func NewRuleSetsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) RuleSetsClient { + return original.NewRuleSetsClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) +} +func NewRulesClient(subscriptionID string, subscriptionID1 string) RulesClient { + return original.NewRulesClient(subscriptionID, subscriptionID1) +} +func NewRulesClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) RulesClient { + return original.NewRulesClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) +} +func NewSecretListResultIterator(page SecretListResultPage) SecretListResultIterator { + return original.NewSecretListResultIterator(page) +} +func NewSecretListResultPage(cur SecretListResult, getNextPage func(context.Context, SecretListResult) (SecretListResult, error)) SecretListResultPage { + return original.NewSecretListResultPage(cur, getNextPage) +} +func NewSecretsClient(subscriptionID string, subscriptionID1 string) SecretsClient { + return original.NewSecretsClient(subscriptionID, subscriptionID1) +} +func NewSecretsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) SecretsClient { + return original.NewSecretsClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) +} +func NewSecurityPoliciesClient(subscriptionID string, subscriptionID1 string) SecurityPoliciesClient { + return original.NewSecurityPoliciesClient(subscriptionID, subscriptionID1) +} +func NewSecurityPoliciesClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) SecurityPoliciesClient { + return original.NewSecurityPoliciesClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) +} +func NewSecurityPolicyListResultIterator(page SecurityPolicyListResultPage) SecurityPolicyListResultIterator { + return original.NewSecurityPolicyListResultIterator(page) +} +func NewSecurityPolicyListResultPage(cur SecurityPolicyListResult, getNextPage func(context.Context, SecurityPolicyListResult) (SecurityPolicyListResult, error)) SecurityPolicyListResultPage { + return original.NewSecurityPolicyListResultPage(cur, getNextPage) +} +func NewUsagesListResultIterator(page UsagesListResultPage) UsagesListResultIterator { + return original.NewUsagesListResultIterator(page) +} +func NewUsagesListResultPage(cur UsagesListResult, getNextPage func(context.Context, UsagesListResult) (UsagesListResult, error)) UsagesListResultPage { + return original.NewUsagesListResultPage(cur, getNextPage) +} +func NewValidateClient(subscriptionID string, subscriptionID1 string) ValidateClient { + return original.NewValidateClient(subscriptionID, subscriptionID1) +} +func NewValidateClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) ValidateClient { + return original.NewValidateClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) +} func NewWebApplicationFirewallPolicyListIterator(page WebApplicationFirewallPolicyListPage) WebApplicationFirewallPolicyListIterator { return original.NewWebApplicationFirewallPolicyListIterator(page) } func NewWebApplicationFirewallPolicyListPage(cur WebApplicationFirewallPolicyList, getNextPage func(context.Context, WebApplicationFirewallPolicyList) (WebApplicationFirewallPolicyList, error)) WebApplicationFirewallPolicyListPage { return original.NewWebApplicationFirewallPolicyListPage(cur, getNextPage) } -func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { - return original.NewWithBaseURI(baseURI, subscriptionID) +func NewWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) BaseClient { + return original.NewWithBaseURI(baseURI, subscriptionID, subscriptionID1) +} +func PossibleAFDEndpointProtocolsValues() []AFDEndpointProtocols { + return original.PossibleAFDEndpointProtocolsValues() } func PossibleActionTypeValues() []ActionType { return original.PossibleActionTypeValues() } +func PossibleAfdCertificateTypeValues() []AfdCertificateType { + return original.PossibleAfdCertificateTypeValues() +} +func PossibleAfdMinimumTLSVersionValues() []AfdMinimumTLSVersion { + return original.PossibleAfdMinimumTLSVersionValues() +} +func PossibleAfdProvisioningStateValues() []AfdProvisioningState { + return original.PossibleAfdProvisioningStateValues() +} func PossibleAlgorithmValues() []Algorithm { return original.PossibleAlgorithmValues() } @@ -884,24 +1364,54 @@ func PossibleCustomHTTPSProvisioningSubstateValues() []CustomHTTPSProvisioningSu func PossibleCustomRuleEnabledStateValues() []CustomRuleEnabledState { return original.PossibleCustomRuleEnabledStateValues() } +func PossibleDeploymentStatusValues() []DeploymentStatus { + return original.PossibleDeploymentStatusValues() +} func PossibleDestinationProtocolValues() []DestinationProtocol { return original.PossibleDestinationProtocolValues() } +func PossibleDomainValidationStateValues() []DomainValidationState { + return original.PossibleDomainValidationStateValues() +} +func PossibleEnabledStateValues() []EnabledState { + return original.PossibleEnabledStateValues() +} func PossibleEndpointResourceStateValues() []EndpointResourceState { return original.PossibleEndpointResourceStateValues() } +func PossibleForwardingProtocolValues() []ForwardingProtocol { + return original.PossibleForwardingProtocolValues() +} func PossibleGeoFilterActionsValues() []GeoFilterActions { return original.PossibleGeoFilterActionsValues() } +func PossibleGranularity1Values() []Granularity1 { + return original.PossibleGranularity1Values() +} +func PossibleGranularityValues() []Granularity { + return original.PossibleGranularityValues() +} +func PossibleHTTPSRedirectValues() []HTTPSRedirect { + return original.PossibleHTTPSRedirectValues() +} func PossibleHeaderActionValues() []HeaderAction { return original.PossibleHeaderActionValues() } func PossibleHealthProbeRequestTypeValues() []HealthProbeRequestType { return original.PossibleHealthProbeRequestTypeValues() } +func PossibleIdentityTypeValues() []IdentityType { + return original.PossibleIdentityTypeValues() +} +func PossibleLinkToDefaultDomainValues() []LinkToDefaultDomain { + return original.PossibleLinkToDefaultDomainValues() +} func PossibleManagedRuleEnabledStateValues() []ManagedRuleEnabledState { return original.PossibleManagedRuleEnabledStateValues() } +func PossibleMatchProcessingBehaviorValues() []MatchProcessingBehavior { + return original.PossibleMatchProcessingBehaviorValues() +} func PossibleMatchVariableValues() []MatchVariable { return original.PossibleMatchVariableValues() } @@ -914,9 +1424,6 @@ func PossibleNameBasicDeliveryRuleActionValues() []NameBasicDeliveryRuleAction { func PossibleNameValues() []Name { return original.PossibleNameValues() } -func PossibleOdataTypeValues() []OdataType { - return original.PossibleOdataTypeValues() -} func PossibleOperatorValues() []Operator { return original.PossibleOperatorValues() } @@ -989,15 +1496,30 @@ func PossibleResourceTypeValues() []ResourceType { func PossibleResponseBasedDetectedErrorTypesValues() []ResponseBasedDetectedErrorTypes { return original.PossibleResponseBasedDetectedErrorTypesValues() } +func PossibleSecretTypeValues() []SecretType { + return original.PossibleSecretTypeValues() +} +func PossibleSharedPrivateLinkResourceStatusValues() []SharedPrivateLinkResourceStatus { + return original.PossibleSharedPrivateLinkResourceStatusValues() +} func PossibleSkuNameValues() []SkuName { return original.PossibleSkuNameValues() } +func PossibleStatusValues() []Status { + return original.PossibleStatusValues() +} func PossibleTransformTypeValues() []TransformType { return original.PossibleTransformTypeValues() } func PossibleTransformValues() []Transform { return original.PossibleTransformValues() } +func PossibleTypeBasicSecretParametersValues() []TypeBasicSecretParameters { + return original.PossibleTypeBasicSecretParametersValues() +} +func PossibleTypeValues() []Type { + return original.PossibleTypeValues() +} func PossibleURLFileExtensionOperatorValues() []URLFileExtensionOperator { return original.PossibleURLFileExtensionOperatorValues() } @@ -1007,6 +1529,15 @@ func PossibleURLFileNameOperatorValues() []URLFileNameOperator { func PossibleURLPathOperatorValues() []URLPathOperator { return original.PossibleURLPathOperatorValues() } +func PossibleUnit1Values() []Unit1 { + return original.PossibleUnit1Values() +} +func PossibleUnitValues() []Unit { + return original.PossibleUnitValues() +} +func PossibleValidateSecretTypeValues() []ValidateSecretType { + return original.PossibleValidateSecretTypeValues() +} func UserAgent() string { return original.UserAgent() + " profiles/latest" } diff --git a/profiles/preview/cdn/mgmt/cdn/cdnapi/models.go b/profiles/preview/cdn/mgmt/cdn/cdnapi/models.go index 13228aacb8ee..7d7e5331d48a 100644 --- a/profiles/preview/cdn/mgmt/cdn/cdnapi/models.go +++ b/profiles/preview/cdn/mgmt/cdn/cdnapi/models.go @@ -19,12 +19,18 @@ package cdnapi -import original "github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2020-04-15/cdn/cdnapi" +import original "github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2020-09-01/cdn/cdnapi" +type AFDCustomDomainsClientAPI = original.AFDCustomDomainsClientAPI +type AFDEndpointsClientAPI = original.AFDEndpointsClientAPI +type AFDOriginGroupsClientAPI = original.AFDOriginGroupsClientAPI +type AFDOriginsClientAPI = original.AFDOriginsClientAPI +type AFDProfilesClientAPI = original.AFDProfilesClientAPI type BaseClientAPI = original.BaseClientAPI type CustomDomainsClientAPI = original.CustomDomainsClientAPI type EdgeNodesClientAPI = original.EdgeNodesClientAPI type EndpointsClientAPI = original.EndpointsClientAPI +type LogAnalyticsClientAPI = original.LogAnalyticsClientAPI type ManagedRuleSetsClientAPI = original.ManagedRuleSetsClientAPI type OperationsClientAPI = original.OperationsClientAPI type OriginGroupsClientAPI = original.OriginGroupsClientAPI @@ -32,3 +38,9 @@ type OriginsClientAPI = original.OriginsClientAPI type PoliciesClientAPI = original.PoliciesClientAPI type ProfilesClientAPI = original.ProfilesClientAPI type ResourceUsageClientAPI = original.ResourceUsageClientAPI +type RoutesClientAPI = original.RoutesClientAPI +type RuleSetsClientAPI = original.RuleSetsClientAPI +type RulesClientAPI = original.RulesClientAPI +type SecretsClientAPI = original.SecretsClientAPI +type SecurityPoliciesClientAPI = original.SecurityPoliciesClientAPI +type ValidateClientAPI = original.ValidateClientAPI diff --git a/profiles/preview/cdn/mgmt/cdn/models.go b/profiles/preview/cdn/mgmt/cdn/models.go index d182f0ca4f49..ff2bf13692fa 100644 --- a/profiles/preview/cdn/mgmt/cdn/models.go +++ b/profiles/preview/cdn/mgmt/cdn/models.go @@ -22,13 +22,20 @@ package cdn import ( "context" - original "github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2020-04-15/cdn" + original "github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2020-09-01/cdn" ) const ( DefaultBaseURI = original.DefaultBaseURI ) +type AFDEndpointProtocols = original.AFDEndpointProtocols + +const ( + HTTP AFDEndpointProtocols = original.HTTP + HTTPS AFDEndpointProtocols = original.HTTPS +) + type ActionType = original.ActionType const ( @@ -38,6 +45,30 @@ const ( Redirect ActionType = original.Redirect ) +type AfdCertificateType = original.AfdCertificateType + +const ( + AfdCertificateTypeCustomerCertificate AfdCertificateType = original.AfdCertificateTypeCustomerCertificate + AfdCertificateTypeManagedCertificate AfdCertificateType = original.AfdCertificateTypeManagedCertificate +) + +type AfdMinimumTLSVersion = original.AfdMinimumTLSVersion + +const ( + TLS10 AfdMinimumTLSVersion = original.TLS10 + TLS12 AfdMinimumTLSVersion = original.TLS12 +) + +type AfdProvisioningState = original.AfdProvisioningState + +const ( + Creating AfdProvisioningState = original.Creating + Deleting AfdProvisioningState = original.Deleting + Failed AfdProvisioningState = original.Failed + Succeeded AfdProvisioningState = original.Succeeded + Updating AfdProvisioningState = original.Updating +) + type Algorithm = original.Algorithm const ( @@ -79,24 +110,25 @@ const ( GreaterThanOrEqual CookiesOperator = original.GreaterThanOrEqual LessThan CookiesOperator = original.LessThan LessThanOrEqual CookiesOperator = original.LessThanOrEqual + RegEx CookiesOperator = original.RegEx ) type CustomDomainResourceState = original.CustomDomainResourceState const ( - Active CustomDomainResourceState = original.Active - Creating CustomDomainResourceState = original.Creating - Deleting CustomDomainResourceState = original.Deleting + CustomDomainResourceStateActive CustomDomainResourceState = original.CustomDomainResourceStateActive + CustomDomainResourceStateCreating CustomDomainResourceState = original.CustomDomainResourceStateCreating + CustomDomainResourceStateDeleting CustomDomainResourceState = original.CustomDomainResourceStateDeleting ) type CustomHTTPSProvisioningState = original.CustomHTTPSProvisioningState const ( - Disabled CustomHTTPSProvisioningState = original.Disabled - Disabling CustomHTTPSProvisioningState = original.Disabling - Enabled CustomHTTPSProvisioningState = original.Enabled - Enabling CustomHTTPSProvisioningState = original.Enabling - Failed CustomHTTPSProvisioningState = original.Failed + CustomHTTPSProvisioningStateDisabled CustomHTTPSProvisioningState = original.CustomHTTPSProvisioningStateDisabled + CustomHTTPSProvisioningStateDisabling CustomHTTPSProvisioningState = original.CustomHTTPSProvisioningStateDisabling + CustomHTTPSProvisioningStateEnabled CustomHTTPSProvisioningState = original.CustomHTTPSProvisioningStateEnabled + CustomHTTPSProvisioningStateEnabling CustomHTTPSProvisioningState = original.CustomHTTPSProvisioningStateEnabling + CustomHTTPSProvisioningStateFailed CustomHTTPSProvisioningState = original.CustomHTTPSProvisioningStateFailed ) type CustomHTTPSProvisioningSubstate = original.CustomHTTPSProvisioningSubstate @@ -117,16 +149,43 @@ const ( type CustomRuleEnabledState = original.CustomRuleEnabledState const ( - CustomRuleEnabledStateDisabled CustomRuleEnabledState = original.CustomRuleEnabledStateDisabled - CustomRuleEnabledStateEnabled CustomRuleEnabledState = original.CustomRuleEnabledStateEnabled + Disabled CustomRuleEnabledState = original.Disabled + Enabled CustomRuleEnabledState = original.Enabled +) + +type DeploymentStatus = original.DeploymentStatus + +const ( + DeploymentStatusFailed DeploymentStatus = original.DeploymentStatusFailed + DeploymentStatusInProgress DeploymentStatus = original.DeploymentStatusInProgress + DeploymentStatusNotStarted DeploymentStatus = original.DeploymentStatusNotStarted + DeploymentStatusSucceeded DeploymentStatus = original.DeploymentStatusSucceeded ) type DestinationProtocol = original.DestinationProtocol const ( - HTTP DestinationProtocol = original.HTTP - HTTPS DestinationProtocol = original.HTTPS - MatchRequest DestinationProtocol = original.MatchRequest + DestinationProtocolHTTP DestinationProtocol = original.DestinationProtocolHTTP + DestinationProtocolHTTPS DestinationProtocol = original.DestinationProtocolHTTPS + DestinationProtocolMatchRequest DestinationProtocol = original.DestinationProtocolMatchRequest +) + +type DomainValidationState = original.DomainValidationState + +const ( + Approved DomainValidationState = original.Approved + Pending DomainValidationState = original.Pending + PendingRevalidation DomainValidationState = original.PendingRevalidation + Submitting DomainValidationState = original.Submitting + TimedOut DomainValidationState = original.TimedOut + Unknown DomainValidationState = original.Unknown +) + +type EnabledState = original.EnabledState + +const ( + EnabledStateDisabled EnabledState = original.EnabledStateDisabled + EnabledStateEnabled EnabledState = original.EnabledStateEnabled ) type EndpointResourceState = original.EndpointResourceState @@ -140,6 +199,14 @@ const ( EndpointResourceStateStopping EndpointResourceState = original.EndpointResourceStateStopping ) +type ForwardingProtocol = original.ForwardingProtocol + +const ( + HTTPOnly ForwardingProtocol = original.HTTPOnly + HTTPSOnly ForwardingProtocol = original.HTTPSOnly + MatchRequest ForwardingProtocol = original.MatchRequest +) + type GeoFilterActions = original.GeoFilterActions const ( @@ -147,6 +214,29 @@ const ( GeoFilterActionsBlock GeoFilterActions = original.GeoFilterActionsBlock ) +type Granularity = original.Granularity + +const ( + P1D Granularity = original.P1D + PT1H Granularity = original.PT1H + PT5M Granularity = original.PT5M +) + +type Granularity1 = original.Granularity1 + +const ( + Granularity1P1D Granularity1 = original.Granularity1P1D + Granularity1PT1H Granularity1 = original.Granularity1PT1H + Granularity1PT5M Granularity1 = original.Granularity1PT5M +) + +type HTTPSRedirect = original.HTTPSRedirect + +const ( + HTTPSRedirectDisabled HTTPSRedirect = original.HTTPSRedirectDisabled + HTTPSRedirectEnabled HTTPSRedirect = original.HTTPSRedirectEnabled +) + type HeaderAction = original.HeaderAction const ( @@ -163,6 +253,22 @@ const ( NotSet HealthProbeRequestType = original.NotSet ) +type IdentityType = original.IdentityType + +const ( + Application IdentityType = original.Application + Key IdentityType = original.Key + ManagedIdentity IdentityType = original.ManagedIdentity + User IdentityType = original.User +) + +type LinkToDefaultDomain = original.LinkToDefaultDomain + +const ( + LinkToDefaultDomainDisabled LinkToDefaultDomain = original.LinkToDefaultDomainDisabled + LinkToDefaultDomainEnabled LinkToDefaultDomain = original.LinkToDefaultDomainEnabled +) + type ManagedRuleEnabledState = original.ManagedRuleEnabledState const ( @@ -170,6 +276,13 @@ const ( ManagedRuleEnabledStateEnabled ManagedRuleEnabledState = original.ManagedRuleEnabledStateEnabled ) +type MatchProcessingBehavior = original.MatchProcessingBehavior + +const ( + Continue MatchProcessingBehavior = original.Continue + Stop MatchProcessingBehavior = original.Stop +) + type MatchVariable = original.MatchVariable const ( @@ -187,9 +300,9 @@ const ( type MinimumTLSVersion = original.MinimumTLSVersion const ( - None MinimumTLSVersion = original.None - TLS10 MinimumTLSVersion = original.TLS10 - TLS12 MinimumTLSVersion = original.TLS12 + MinimumTLSVersionNone MinimumTLSVersion = original.MinimumTLSVersionNone + MinimumTLSVersionTLS10 MinimumTLSVersion = original.MinimumTLSVersionTLS10 + MinimumTLSVersionTLS12 MinimumTLSVersion = original.MinimumTLSVersionTLS12 ) type Name = original.Name @@ -220,17 +333,12 @@ const ( NameDeliveryRuleAction NameBasicDeliveryRuleAction = original.NameDeliveryRuleAction NameModifyRequestHeader NameBasicDeliveryRuleAction = original.NameModifyRequestHeader NameModifyResponseHeader NameBasicDeliveryRuleAction = original.NameModifyResponseHeader + NameOriginGroupOverride NameBasicDeliveryRuleAction = original.NameOriginGroupOverride NameURLRedirect NameBasicDeliveryRuleAction = original.NameURLRedirect NameURLRewrite NameBasicDeliveryRuleAction = original.NameURLRewrite NameURLSigning NameBasicDeliveryRuleAction = original.NameURLSigning ) -type OdataType = original.OdataType - -const ( - MicrosoftAzureCdnModelsDeliveryRuleURLSigningActionParameters OdataType = original.MicrosoftAzureCdnModelsDeliveryRuleURLSigningActionParameters -) - type Operator = original.Operator const ( @@ -319,16 +427,17 @@ const ( PostArgsOperatorGreaterThanOrEqual PostArgsOperator = original.PostArgsOperatorGreaterThanOrEqual PostArgsOperatorLessThan PostArgsOperator = original.PostArgsOperatorLessThan PostArgsOperatorLessThanOrEqual PostArgsOperator = original.PostArgsOperatorLessThanOrEqual + PostArgsOperatorRegEx PostArgsOperator = original.PostArgsOperatorRegEx ) type PrivateEndpointStatus = original.PrivateEndpointStatus const ( - Approved PrivateEndpointStatus = original.Approved - Disconnected PrivateEndpointStatus = original.Disconnected - Pending PrivateEndpointStatus = original.Pending - Rejected PrivateEndpointStatus = original.Rejected - Timeout PrivateEndpointStatus = original.Timeout + PrivateEndpointStatusApproved PrivateEndpointStatus = original.PrivateEndpointStatusApproved + PrivateEndpointStatusDisconnected PrivateEndpointStatus = original.PrivateEndpointStatusDisconnected + PrivateEndpointStatusPending PrivateEndpointStatus = original.PrivateEndpointStatusPending + PrivateEndpointStatusRejected PrivateEndpointStatus = original.PrivateEndpointStatusRejected + PrivateEndpointStatusTimeout PrivateEndpointStatus = original.PrivateEndpointStatusTimeout ) type ProbeProtocol = original.ProbeProtocol @@ -393,6 +502,7 @@ const ( QueryStringOperatorGreaterThanOrEqual QueryStringOperator = original.QueryStringOperatorGreaterThanOrEqual QueryStringOperatorLessThan QueryStringOperator = original.QueryStringOperatorLessThan QueryStringOperatorLessThanOrEqual QueryStringOperator = original.QueryStringOperatorLessThanOrEqual + QueryStringOperatorRegEx QueryStringOperator = original.QueryStringOperatorRegEx ) type RedirectType = original.RedirectType @@ -424,6 +534,7 @@ const ( RequestBodyOperatorGreaterThanOrEqual RequestBodyOperator = original.RequestBodyOperatorGreaterThanOrEqual RequestBodyOperatorLessThan RequestBodyOperator = original.RequestBodyOperatorLessThan RequestBodyOperatorLessThanOrEqual RequestBodyOperator = original.RequestBodyOperatorLessThanOrEqual + RequestBodyOperatorRegEx RequestBodyOperator = original.RequestBodyOperatorRegEx ) type RequestHeaderOperator = original.RequestHeaderOperator @@ -438,6 +549,7 @@ const ( RequestHeaderOperatorGreaterThanOrEqual RequestHeaderOperator = original.RequestHeaderOperatorGreaterThanOrEqual RequestHeaderOperatorLessThan RequestHeaderOperator = original.RequestHeaderOperatorLessThan RequestHeaderOperatorLessThanOrEqual RequestHeaderOperator = original.RequestHeaderOperatorLessThanOrEqual + RequestHeaderOperatorRegEx RequestHeaderOperator = original.RequestHeaderOperatorRegEx ) type RequestURIOperator = original.RequestURIOperator @@ -452,6 +564,7 @@ const ( RequestURIOperatorGreaterThanOrEqual RequestURIOperator = original.RequestURIOperatorGreaterThanOrEqual RequestURIOperatorLessThan RequestURIOperator = original.RequestURIOperatorLessThan RequestURIOperatorLessThanOrEqual RequestURIOperator = original.RequestURIOperatorLessThanOrEqual + RequestURIOperatorRegEx RequestURIOperator = original.RequestURIOperatorRegEx ) type ResourceType = original.ResourceType @@ -463,21 +576,55 @@ const ( type ResponseBasedDetectedErrorTypes = original.ResponseBasedDetectedErrorTypes const ( - ResponseBasedDetectedErrorTypesNone ResponseBasedDetectedErrorTypes = original.ResponseBasedDetectedErrorTypesNone - ResponseBasedDetectedErrorTypesTCPAndHTTPErrors ResponseBasedDetectedErrorTypes = original.ResponseBasedDetectedErrorTypesTCPAndHTTPErrors - ResponseBasedDetectedErrorTypesTCPErrorsOnly ResponseBasedDetectedErrorTypes = original.ResponseBasedDetectedErrorTypesTCPErrorsOnly + None ResponseBasedDetectedErrorTypes = original.None + TCPAndHTTPErrors ResponseBasedDetectedErrorTypes = original.TCPAndHTTPErrors + TCPErrorsOnly ResponseBasedDetectedErrorTypes = original.TCPErrorsOnly +) + +type SecretType = original.SecretType + +const ( + SecretTypeCustomerCertificate SecretType = original.SecretTypeCustomerCertificate + SecretTypeManagedCertificate SecretType = original.SecretTypeManagedCertificate + SecretTypeURLSigningKey SecretType = original.SecretTypeURLSigningKey +) + +type SharedPrivateLinkResourceStatus = original.SharedPrivateLinkResourceStatus + +const ( + SharedPrivateLinkResourceStatusApproved SharedPrivateLinkResourceStatus = original.SharedPrivateLinkResourceStatusApproved + SharedPrivateLinkResourceStatusDisconnected SharedPrivateLinkResourceStatus = original.SharedPrivateLinkResourceStatusDisconnected + SharedPrivateLinkResourceStatusPending SharedPrivateLinkResourceStatus = original.SharedPrivateLinkResourceStatusPending + SharedPrivateLinkResourceStatusRejected SharedPrivateLinkResourceStatus = original.SharedPrivateLinkResourceStatusRejected + SharedPrivateLinkResourceStatusTimeout SharedPrivateLinkResourceStatus = original.SharedPrivateLinkResourceStatusTimeout ) type SkuName = original.SkuName const ( - CustomVerizon SkuName = original.CustomVerizon - PremiumChinaCdn SkuName = original.PremiumChinaCdn - PremiumVerizon SkuName = original.PremiumVerizon - StandardAkamai SkuName = original.StandardAkamai - StandardChinaCdn SkuName = original.StandardChinaCdn - StandardMicrosoft SkuName = original.StandardMicrosoft - StandardVerizon SkuName = original.StandardVerizon + CustomVerizon SkuName = original.CustomVerizon + PremiumAzureFrontDoor SkuName = original.PremiumAzureFrontDoor + PremiumChinaCdn SkuName = original.PremiumChinaCdn + PremiumVerizon SkuName = original.PremiumVerizon + Standard955BandWidthChinaCdn SkuName = original.Standard955BandWidthChinaCdn + StandardAkamai SkuName = original.StandardAkamai + StandardAvgBandWidthChinaCdn SkuName = original.StandardAvgBandWidthChinaCdn + StandardAzureFrontDoor SkuName = original.StandardAzureFrontDoor + StandardChinaCdn SkuName = original.StandardChinaCdn + StandardMicrosoft SkuName = original.StandardMicrosoft + StandardPlus955BandWidthChinaCdn SkuName = original.StandardPlus955BandWidthChinaCdn + StandardPlusAvgBandWidthChinaCdn SkuName = original.StandardPlusAvgBandWidthChinaCdn + StandardPlusChinaCdn SkuName = original.StandardPlusChinaCdn + StandardVerizon SkuName = original.StandardVerizon +) + +type Status = original.Status + +const ( + AccessDenied Status = original.AccessDenied + CertificateExpired Status = original.CertificateExpired + Invalid Status = original.Invalid + Valid Status = original.Valid ) type Transform = original.Transform @@ -498,6 +645,20 @@ const ( TransformTypeURLEncode TransformType = original.TransformTypeURLEncode ) +type Type = original.Type + +const ( + TypeSecurityPolicyParameters Type = original.TypeSecurityPolicyParameters + TypeWebApplicationFirewall Type = original.TypeWebApplicationFirewall +) + +type TypeBasicSecretParameters = original.TypeBasicSecretParameters + +const ( + TypeSecretParameters TypeBasicSecretParameters = original.TypeSecretParameters + TypeURLSigningKey TypeBasicSecretParameters = original.TypeURLSigningKey +) + type URLFileExtensionOperator = original.URLFileExtensionOperator const ( @@ -510,6 +671,7 @@ const ( URLFileExtensionOperatorGreaterThanOrEqual URLFileExtensionOperator = original.URLFileExtensionOperatorGreaterThanOrEqual URLFileExtensionOperatorLessThan URLFileExtensionOperator = original.URLFileExtensionOperatorLessThan URLFileExtensionOperatorLessThanOrEqual URLFileExtensionOperator = original.URLFileExtensionOperatorLessThanOrEqual + URLFileExtensionOperatorRegEx URLFileExtensionOperator = original.URLFileExtensionOperatorRegEx ) type URLFileNameOperator = original.URLFileNameOperator @@ -524,6 +686,7 @@ const ( URLFileNameOperatorGreaterThanOrEqual URLFileNameOperator = original.URLFileNameOperatorGreaterThanOrEqual URLFileNameOperatorLessThan URLFileNameOperator = original.URLFileNameOperatorLessThan URLFileNameOperatorLessThanOrEqual URLFileNameOperator = original.URLFileNameOperatorLessThanOrEqual + URLFileNameOperatorRegEx URLFileNameOperator = original.URLFileNameOperatorRegEx ) type URLPathOperator = original.URLPathOperator @@ -538,19 +701,100 @@ const ( URLPathOperatorGreaterThanOrEqual URLPathOperator = original.URLPathOperatorGreaterThanOrEqual URLPathOperatorLessThan URLPathOperator = original.URLPathOperatorLessThan URLPathOperatorLessThanOrEqual URLPathOperator = original.URLPathOperatorLessThanOrEqual + URLPathOperatorRegEx URLPathOperator = original.URLPathOperatorRegEx URLPathOperatorWildcard URLPathOperator = original.URLPathOperatorWildcard ) +type Unit = original.Unit + +const ( + BitsPerSecond Unit = original.BitsPerSecond + Bytes Unit = original.Bytes + Count Unit = original.Count +) + +type Unit1 = original.Unit1 + +const ( + Unit1Count Unit1 = original.Unit1Count +) + +type ValidateSecretType = original.ValidateSecretType + +const ( + ValidateSecretTypeCustomerCertificate ValidateSecretType = original.ValidateSecretTypeCustomerCertificate + ValidateSecretTypeManagedCertificate ValidateSecretType = original.ValidateSecretTypeManagedCertificate + ValidateSecretTypeURLSigningKey ValidateSecretType = original.ValidateSecretTypeURLSigningKey +) + +type AFDCustomDomainsClient = original.AFDCustomDomainsClient +type AFDCustomDomainsCreateFuture = original.AFDCustomDomainsCreateFuture +type AFDCustomDomainsDeleteFuture = original.AFDCustomDomainsDeleteFuture +type AFDCustomDomainsRefreshValidationTokenFuture = original.AFDCustomDomainsRefreshValidationTokenFuture +type AFDCustomDomainsUpdateFuture = original.AFDCustomDomainsUpdateFuture +type AFDDomain = original.AFDDomain +type AFDDomainHTTPSParameters = original.AFDDomainHTTPSParameters +type AFDDomainListResult = original.AFDDomainListResult +type AFDDomainListResultIterator = original.AFDDomainListResultIterator +type AFDDomainListResultPage = original.AFDDomainListResultPage +type AFDDomainProperties = original.AFDDomainProperties +type AFDDomainUpdateParameters = original.AFDDomainUpdateParameters +type AFDDomainUpdatePropertiesParameters = original.AFDDomainUpdatePropertiesParameters +type AFDEndpoint = original.AFDEndpoint +type AFDEndpointListResult = original.AFDEndpointListResult +type AFDEndpointListResultIterator = original.AFDEndpointListResultIterator +type AFDEndpointListResultPage = original.AFDEndpointListResultPage +type AFDEndpointProperties = original.AFDEndpointProperties +type AFDEndpointPropertiesUpdateParameters = original.AFDEndpointPropertiesUpdateParameters +type AFDEndpointUpdateParameters = original.AFDEndpointUpdateParameters +type AFDEndpointsClient = original.AFDEndpointsClient +type AFDEndpointsCreateFuture = original.AFDEndpointsCreateFuture +type AFDEndpointsDeleteFuture = original.AFDEndpointsDeleteFuture +type AFDEndpointsPurgeContentFuture = original.AFDEndpointsPurgeContentFuture +type AFDEndpointsUpdateFuture = original.AFDEndpointsUpdateFuture +type AFDOrigin = original.AFDOrigin +type AFDOriginGroup = original.AFDOriginGroup +type AFDOriginGroupListResult = original.AFDOriginGroupListResult +type AFDOriginGroupListResultIterator = original.AFDOriginGroupListResultIterator +type AFDOriginGroupListResultPage = original.AFDOriginGroupListResultPage +type AFDOriginGroupProperties = original.AFDOriginGroupProperties +type AFDOriginGroupUpdateParameters = original.AFDOriginGroupUpdateParameters +type AFDOriginGroupUpdatePropertiesParameters = original.AFDOriginGroupUpdatePropertiesParameters +type AFDOriginGroupsClient = original.AFDOriginGroupsClient +type AFDOriginGroupsCreateFuture = original.AFDOriginGroupsCreateFuture +type AFDOriginGroupsDeleteFuture = original.AFDOriginGroupsDeleteFuture +type AFDOriginGroupsUpdateFuture = original.AFDOriginGroupsUpdateFuture +type AFDOriginListResult = original.AFDOriginListResult +type AFDOriginListResultIterator = original.AFDOriginListResultIterator +type AFDOriginListResultPage = original.AFDOriginListResultPage +type AFDOriginProperties = original.AFDOriginProperties +type AFDOriginUpdateParameters = original.AFDOriginUpdateParameters +type AFDOriginUpdatePropertiesParameters = original.AFDOriginUpdatePropertiesParameters +type AFDOriginsClient = original.AFDOriginsClient +type AFDOriginsCreateFuture = original.AFDOriginsCreateFuture +type AFDOriginsDeleteFuture = original.AFDOriginsDeleteFuture +type AFDOriginsUpdateFuture = original.AFDOriginsUpdateFuture +type AFDProfilesClient = original.AFDProfilesClient +type AFDStateProperties = original.AFDStateProperties +type AfdErrorResponse = original.AfdErrorResponse +type AfdPurgeParameters = original.AfdPurgeParameters type BaseClient = original.BaseClient type BasicCustomDomainHTTPSParameters = original.BasicCustomDomainHTTPSParameters type BasicDeliveryRuleAction = original.BasicDeliveryRuleAction type BasicDeliveryRuleCondition = original.BasicDeliveryRuleCondition +type BasicSecretParameters = original.BasicSecretParameters +type BasicSecurityPolicyParameters = original.BasicSecurityPolicyParameters type CacheExpirationActionParameters = original.CacheExpirationActionParameters type CacheKeyQueryStringActionParameters = original.CacheKeyQueryStringActionParameters +type Certificate = original.Certificate type CertificateSourceParameters = original.CertificateSourceParameters type CheckNameAvailabilityInput = original.CheckNameAvailabilityInput type CheckNameAvailabilityOutput = original.CheckNameAvailabilityOutput type CidrIPAddress = original.CidrIPAddress +type CompressionSettings = original.CompressionSettings +type ContinentsResponse = original.ContinentsResponse +type ContinentsResponseContinentsItem = original.ContinentsResponseContinentsItem +type ContinentsResponseCountryOrRegionsItem = original.ContinentsResponseCountryOrRegionsItem type CookiesMatchConditionParameters = original.CookiesMatchConditionParameters type CustomDomain = original.CustomDomain type CustomDomainHTTPSParameters = original.CustomDomainHTTPSParameters @@ -565,6 +809,8 @@ type CustomDomainsCreateFuture = original.CustomDomainsCreateFuture type CustomDomainsDeleteFuture = original.CustomDomainsDeleteFuture type CustomRule = original.CustomRule type CustomRuleList = original.CustomRuleList +type CustomerCertificate = original.CustomerCertificate +type CustomerCertificateParameters = original.CustomerCertificateParameters type DeepCreatedOrigin = original.DeepCreatedOrigin type DeepCreatedOriginGroup = original.DeepCreatedOriginGroup type DeepCreatedOriginGroupProperties = original.DeepCreatedOriginGroupProperties @@ -590,6 +836,7 @@ type DeliveryRuleResponseHeaderAction = original.DeliveryRuleResponseHeaderActio type DeliveryRuleURLFileExtensionCondition = original.DeliveryRuleURLFileExtensionCondition type DeliveryRuleURLFileNameCondition = original.DeliveryRuleURLFileNameCondition type DeliveryRuleURLPathCondition = original.DeliveryRuleURLPathCondition +type DomainValidationProperties = original.DomainValidationProperties type EdgeNode = original.EdgeNode type EdgeNodeProperties = original.EdgeNodeProperties type EdgeNodesClient = original.EdgeNodesClient @@ -624,7 +871,11 @@ type IPAddressGroup = original.IPAddressGroup type IsDeviceMatchConditionParameters = original.IsDeviceMatchConditionParameters type KeyVaultCertificateSourceParameters = original.KeyVaultCertificateSourceParameters type KeyVaultSigningKeyParameters = original.KeyVaultSigningKeyParameters +type LoadBalancingSettingsParameters = original.LoadBalancingSettingsParameters type LoadParameters = original.LoadParameters +type LogAnalyticsClient = original.LogAnalyticsClient +type ManagedCertificate = original.ManagedCertificate +type ManagedCertificateParameters = original.ManagedCertificateParameters type ManagedHTTPSParameters = original.ManagedHTTPSParameters type ManagedRuleDefinition = original.ManagedRuleDefinition type ManagedRuleGroupDefinition = original.ManagedRuleGroupDefinition @@ -639,6 +890,10 @@ type ManagedRuleSetDefinitionProperties = original.ManagedRuleSetDefinitionPrope type ManagedRuleSetList = original.ManagedRuleSetList type ManagedRuleSetsClient = original.ManagedRuleSetsClient type MatchCondition = original.MatchCondition +type MetricsResponse = original.MetricsResponse +type MetricsResponseSeriesItem = original.MetricsResponseSeriesItem +type MetricsResponseSeriesItemDataItem = original.MetricsResponseSeriesItemDataItem +type MetricsResponseSeriesItemGroupsItem = original.MetricsResponseSeriesItemGroupsItem type Operation = original.Operation type OperationDisplay = original.OperationDisplay type OperationsClient = original.OperationsClient @@ -650,6 +905,8 @@ type OriginGroup = original.OriginGroup type OriginGroupListResult = original.OriginGroupListResult type OriginGroupListResultIterator = original.OriginGroupListResultIterator type OriginGroupListResultPage = original.OriginGroupListResultPage +type OriginGroupOverrideAction = original.OriginGroupOverrideAction +type OriginGroupOverrideActionParameters = original.OriginGroupOverrideActionParameters type OriginGroupProperties = original.OriginGroupProperties type OriginGroupUpdateParameters = original.OriginGroupUpdateParameters type OriginGroupUpdatePropertiesParameters = original.OriginGroupUpdatePropertiesParameters @@ -685,6 +942,10 @@ type ProfilesUpdateFuture = original.ProfilesUpdateFuture type ProxyResource = original.ProxyResource type PurgeParameters = original.PurgeParameters type QueryStringMatchConditionParameters = original.QueryStringMatchConditionParameters +type RankingsResponse = original.RankingsResponse +type RankingsResponseTablesItem = original.RankingsResponseTablesItem +type RankingsResponseTablesItemDataItem = original.RankingsResponseTablesItemDataItem +type RankingsResponseTablesItemDataItemMetricsItem = original.RankingsResponseTablesItemDataItemMetricsItem type RateLimitRule = original.RateLimitRule type RateLimitRuleList = original.RateLimitRuleList type RemoteAddressMatchConditionParameters = original.RemoteAddressMatchConditionParameters @@ -700,10 +961,68 @@ type ResourceUsageClient = original.ResourceUsageClient type ResourceUsageListResult = original.ResourceUsageListResult type ResourceUsageListResultIterator = original.ResourceUsageListResultIterator type ResourceUsageListResultPage = original.ResourceUsageListResultPage +type ResourcesResponse = original.ResourcesResponse +type ResourcesResponseCustomDomainsItem = original.ResourcesResponseCustomDomainsItem +type ResourcesResponseEndpointsItem = original.ResourcesResponseEndpointsItem +type ResourcesResponseEndpointsItemCustomDomainsItem = original.ResourcesResponseEndpointsItemCustomDomainsItem type ResponseBasedOriginErrorDetectionParameters = original.ResponseBasedOriginErrorDetectionParameters +type Route = original.Route +type RouteListResult = original.RouteListResult +type RouteListResultIterator = original.RouteListResultIterator +type RouteListResultPage = original.RouteListResultPage +type RouteProperties = original.RouteProperties +type RouteUpdateParameters = original.RouteUpdateParameters +type RouteUpdatePropertiesParameters = original.RouteUpdatePropertiesParameters +type RoutesClient = original.RoutesClient +type RoutesCreateFuture = original.RoutesCreateFuture +type RoutesDeleteFuture = original.RoutesDeleteFuture +type RoutesUpdateFuture = original.RoutesUpdateFuture +type Rule = original.Rule +type RuleListResult = original.RuleListResult +type RuleListResultIterator = original.RuleListResultIterator +type RuleListResultPage = original.RuleListResultPage +type RuleProperties = original.RuleProperties +type RuleSet = original.RuleSet +type RuleSetListResult = original.RuleSetListResult +type RuleSetListResultIterator = original.RuleSetListResultIterator +type RuleSetListResultPage = original.RuleSetListResultPage +type RuleSetProperties = original.RuleSetProperties +type RuleSetsClient = original.RuleSetsClient +type RuleSetsCreateFuture = original.RuleSetsCreateFuture +type RuleSetsDeleteFuture = original.RuleSetsDeleteFuture +type RuleUpdateParameters = original.RuleUpdateParameters +type RuleUpdatePropertiesParameters = original.RuleUpdatePropertiesParameters +type RulesClient = original.RulesClient +type RulesCreateFuture = original.RulesCreateFuture +type RulesDeleteFuture = original.RulesDeleteFuture +type RulesUpdateFuture = original.RulesUpdateFuture +type Secret = original.Secret +type SecretListResult = original.SecretListResult +type SecretListResultIterator = original.SecretListResultIterator +type SecretListResultPage = original.SecretListResultPage +type SecretParameters = original.SecretParameters +type SecretProperties = original.SecretProperties +type SecretsClient = original.SecretsClient +type SecretsCreateFuture = original.SecretsCreateFuture +type SecretsDeleteFuture = original.SecretsDeleteFuture +type SecretsUpdateFuture = original.SecretsUpdateFuture +type SecurityPoliciesClient = original.SecurityPoliciesClient +type SecurityPoliciesCreateFuture = original.SecurityPoliciesCreateFuture +type SecurityPoliciesDeleteFuture = original.SecurityPoliciesDeleteFuture +type SecurityPoliciesPatchFuture = original.SecurityPoliciesPatchFuture +type SecurityPolicy = original.SecurityPolicy +type SecurityPolicyListResult = original.SecurityPolicyListResult +type SecurityPolicyListResultIterator = original.SecurityPolicyListResultIterator +type SecurityPolicyListResultPage = original.SecurityPolicyListResultPage +type SecurityPolicyParameters = original.SecurityPolicyParameters +type SecurityPolicyProperties = original.SecurityPolicyProperties +type SecurityPolicyWebApplicationFirewallAssociation = original.SecurityPolicyWebApplicationFirewallAssociation +type SecurityPolicyWebApplicationFirewallParameters = original.SecurityPolicyWebApplicationFirewallParameters +type SharedPrivateLinkResourceProperties = original.SharedPrivateLinkResourceProperties type Sku = original.Sku type SsoURI = original.SsoURI type SupportedOptimizationTypesListResult = original.SupportedOptimizationTypesListResult +type SystemData = original.SystemData type TrackedResource = original.TrackedResource type URLFileExtensionMatchConditionParameters = original.URLFileExtensionMatchConditionParameters type URLFileNameMatchConditionParameters = original.URLFileNameMatchConditionParameters @@ -715,12 +1034,29 @@ type URLRewriteActionParameters = original.URLRewriteActionParameters type URLSigningAction = original.URLSigningAction type URLSigningActionParameters = original.URLSigningActionParameters type URLSigningKey = original.URLSigningKey +type URLSigningKeyParameters = original.URLSigningKeyParameters type URLSigningParamIdentifier = original.URLSigningParamIdentifier +type Usage = original.Usage +type UsageName = original.UsageName +type UsagesListResult = original.UsagesListResult +type UsagesListResultIterator = original.UsagesListResultIterator +type UsagesListResultPage = original.UsagesListResultPage type UserManagedHTTPSParameters = original.UserManagedHTTPSParameters +type ValidateClient = original.ValidateClient type ValidateCustomDomainInput = original.ValidateCustomDomainInput type ValidateCustomDomainOutput = original.ValidateCustomDomainOutput type ValidateProbeInput = original.ValidateProbeInput type ValidateProbeOutput = original.ValidateProbeOutput +type ValidateSecretInput = original.ValidateSecretInput +type ValidateSecretOutput = original.ValidateSecretOutput +type ValidationToken = original.ValidationToken +type WafMetricsResponse = original.WafMetricsResponse +type WafMetricsResponseSeriesItem = original.WafMetricsResponseSeriesItem +type WafMetricsResponseSeriesItemDataItem = original.WafMetricsResponseSeriesItemDataItem +type WafMetricsResponseSeriesItemGroupsItem = original.WafMetricsResponseSeriesItemGroupsItem +type WafRankingsResponse = original.WafRankingsResponse +type WafRankingsResponseDataItem = original.WafRankingsResponseDataItem +type WafRankingsResponseDataItemMetricsItem = original.WafRankingsResponseDataItemMetricsItem type WebApplicationFirewallPolicy = original.WebApplicationFirewallPolicy type WebApplicationFirewallPolicyList = original.WebApplicationFirewallPolicyList type WebApplicationFirewallPolicyListIterator = original.WebApplicationFirewallPolicyListIterator @@ -728,8 +1064,62 @@ type WebApplicationFirewallPolicyListPage = original.WebApplicationFirewallPolic type WebApplicationFirewallPolicyPatchParameters = original.WebApplicationFirewallPolicyPatchParameters type WebApplicationFirewallPolicyProperties = original.WebApplicationFirewallPolicyProperties -func New(subscriptionID string) BaseClient { - return original.New(subscriptionID) +func New(subscriptionID string, subscriptionID1 string) BaseClient { + return original.New(subscriptionID, subscriptionID1) +} +func NewAFDCustomDomainsClient(subscriptionID string, subscriptionID1 string) AFDCustomDomainsClient { + return original.NewAFDCustomDomainsClient(subscriptionID, subscriptionID1) +} +func NewAFDCustomDomainsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) AFDCustomDomainsClient { + return original.NewAFDCustomDomainsClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) +} +func NewAFDDomainListResultIterator(page AFDDomainListResultPage) AFDDomainListResultIterator { + return original.NewAFDDomainListResultIterator(page) +} +func NewAFDDomainListResultPage(cur AFDDomainListResult, getNextPage func(context.Context, AFDDomainListResult) (AFDDomainListResult, error)) AFDDomainListResultPage { + return original.NewAFDDomainListResultPage(cur, getNextPage) +} +func NewAFDEndpointListResultIterator(page AFDEndpointListResultPage) AFDEndpointListResultIterator { + return original.NewAFDEndpointListResultIterator(page) +} +func NewAFDEndpointListResultPage(cur AFDEndpointListResult, getNextPage func(context.Context, AFDEndpointListResult) (AFDEndpointListResult, error)) AFDEndpointListResultPage { + return original.NewAFDEndpointListResultPage(cur, getNextPage) +} +func NewAFDEndpointsClient(subscriptionID string, subscriptionID1 string) AFDEndpointsClient { + return original.NewAFDEndpointsClient(subscriptionID, subscriptionID1) +} +func NewAFDEndpointsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) AFDEndpointsClient { + return original.NewAFDEndpointsClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) +} +func NewAFDOriginGroupListResultIterator(page AFDOriginGroupListResultPage) AFDOriginGroupListResultIterator { + return original.NewAFDOriginGroupListResultIterator(page) +} +func NewAFDOriginGroupListResultPage(cur AFDOriginGroupListResult, getNextPage func(context.Context, AFDOriginGroupListResult) (AFDOriginGroupListResult, error)) AFDOriginGroupListResultPage { + return original.NewAFDOriginGroupListResultPage(cur, getNextPage) +} +func NewAFDOriginGroupsClient(subscriptionID string, subscriptionID1 string) AFDOriginGroupsClient { + return original.NewAFDOriginGroupsClient(subscriptionID, subscriptionID1) +} +func NewAFDOriginGroupsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) AFDOriginGroupsClient { + return original.NewAFDOriginGroupsClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) +} +func NewAFDOriginListResultIterator(page AFDOriginListResultPage) AFDOriginListResultIterator { + return original.NewAFDOriginListResultIterator(page) +} +func NewAFDOriginListResultPage(cur AFDOriginListResult, getNextPage func(context.Context, AFDOriginListResult) (AFDOriginListResult, error)) AFDOriginListResultPage { + return original.NewAFDOriginListResultPage(cur, getNextPage) +} +func NewAFDOriginsClient(subscriptionID string, subscriptionID1 string) AFDOriginsClient { + return original.NewAFDOriginsClient(subscriptionID, subscriptionID1) +} +func NewAFDOriginsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) AFDOriginsClient { + return original.NewAFDOriginsClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) +} +func NewAFDProfilesClient(subscriptionID string, subscriptionID1 string) AFDProfilesClient { + return original.NewAFDProfilesClient(subscriptionID, subscriptionID1) +} +func NewAFDProfilesClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) AFDProfilesClient { + return original.NewAFDProfilesClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) } func NewCustomDomainListResultIterator(page CustomDomainListResultPage) CustomDomainListResultIterator { return original.NewCustomDomainListResultIterator(page) @@ -737,17 +1127,17 @@ func NewCustomDomainListResultIterator(page CustomDomainListResultPage) CustomDo func NewCustomDomainListResultPage(cur CustomDomainListResult, getNextPage func(context.Context, CustomDomainListResult) (CustomDomainListResult, error)) CustomDomainListResultPage { return original.NewCustomDomainListResultPage(cur, getNextPage) } -func NewCustomDomainsClient(subscriptionID string) CustomDomainsClient { - return original.NewCustomDomainsClient(subscriptionID) +func NewCustomDomainsClient(subscriptionID string, subscriptionID1 string) CustomDomainsClient { + return original.NewCustomDomainsClient(subscriptionID, subscriptionID1) } -func NewCustomDomainsClientWithBaseURI(baseURI string, subscriptionID string) CustomDomainsClient { - return original.NewCustomDomainsClientWithBaseURI(baseURI, subscriptionID) +func NewCustomDomainsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) CustomDomainsClient { + return original.NewCustomDomainsClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) } -func NewEdgeNodesClient(subscriptionID string) EdgeNodesClient { - return original.NewEdgeNodesClient(subscriptionID) +func NewEdgeNodesClient(subscriptionID string, subscriptionID1 string) EdgeNodesClient { + return original.NewEdgeNodesClient(subscriptionID, subscriptionID1) } -func NewEdgeNodesClientWithBaseURI(baseURI string, subscriptionID string) EdgeNodesClient { - return original.NewEdgeNodesClientWithBaseURI(baseURI, subscriptionID) +func NewEdgeNodesClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) EdgeNodesClient { + return original.NewEdgeNodesClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) } func NewEdgenodeResultIterator(page EdgenodeResultPage) EdgenodeResultIterator { return original.NewEdgenodeResultIterator(page) @@ -761,11 +1151,17 @@ func NewEndpointListResultIterator(page EndpointListResultPage) EndpointListResu func NewEndpointListResultPage(cur EndpointListResult, getNextPage func(context.Context, EndpointListResult) (EndpointListResult, error)) EndpointListResultPage { return original.NewEndpointListResultPage(cur, getNextPage) } -func NewEndpointsClient(subscriptionID string) EndpointsClient { - return original.NewEndpointsClient(subscriptionID) +func NewEndpointsClient(subscriptionID string, subscriptionID1 string) EndpointsClient { + return original.NewEndpointsClient(subscriptionID, subscriptionID1) } -func NewEndpointsClientWithBaseURI(baseURI string, subscriptionID string) EndpointsClient { - return original.NewEndpointsClientWithBaseURI(baseURI, subscriptionID) +func NewEndpointsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) EndpointsClient { + return original.NewEndpointsClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) +} +func NewLogAnalyticsClient(subscriptionID string, subscriptionID1 string) LogAnalyticsClient { + return original.NewLogAnalyticsClient(subscriptionID, subscriptionID1) +} +func NewLogAnalyticsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) LogAnalyticsClient { + return original.NewLogAnalyticsClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) } func NewManagedRuleSetDefinitionListIterator(page ManagedRuleSetDefinitionListPage) ManagedRuleSetDefinitionListIterator { return original.NewManagedRuleSetDefinitionListIterator(page) @@ -773,17 +1169,17 @@ func NewManagedRuleSetDefinitionListIterator(page ManagedRuleSetDefinitionListPa func NewManagedRuleSetDefinitionListPage(cur ManagedRuleSetDefinitionList, getNextPage func(context.Context, ManagedRuleSetDefinitionList) (ManagedRuleSetDefinitionList, error)) ManagedRuleSetDefinitionListPage { return original.NewManagedRuleSetDefinitionListPage(cur, getNextPage) } -func NewManagedRuleSetsClient(subscriptionID string) ManagedRuleSetsClient { - return original.NewManagedRuleSetsClient(subscriptionID) +func NewManagedRuleSetsClient(subscriptionID string, subscriptionID1 string) ManagedRuleSetsClient { + return original.NewManagedRuleSetsClient(subscriptionID, subscriptionID1) } -func NewManagedRuleSetsClientWithBaseURI(baseURI string, subscriptionID string) ManagedRuleSetsClient { - return original.NewManagedRuleSetsClientWithBaseURI(baseURI, subscriptionID) +func NewManagedRuleSetsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) ManagedRuleSetsClient { + return original.NewManagedRuleSetsClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) } -func NewOperationsClient(subscriptionID string) OperationsClient { - return original.NewOperationsClient(subscriptionID) +func NewOperationsClient(subscriptionID string, subscriptionID1 string) OperationsClient { + return original.NewOperationsClient(subscriptionID, subscriptionID1) } -func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { - return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID) +func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) OperationsClient { + return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) } func NewOperationsListResultIterator(page OperationsListResultPage) OperationsListResultIterator { return original.NewOperationsListResultIterator(page) @@ -797,11 +1193,11 @@ func NewOriginGroupListResultIterator(page OriginGroupListResultPage) OriginGrou func NewOriginGroupListResultPage(cur OriginGroupListResult, getNextPage func(context.Context, OriginGroupListResult) (OriginGroupListResult, error)) OriginGroupListResultPage { return original.NewOriginGroupListResultPage(cur, getNextPage) } -func NewOriginGroupsClient(subscriptionID string) OriginGroupsClient { - return original.NewOriginGroupsClient(subscriptionID) +func NewOriginGroupsClient(subscriptionID string, subscriptionID1 string) OriginGroupsClient { + return original.NewOriginGroupsClient(subscriptionID, subscriptionID1) } -func NewOriginGroupsClientWithBaseURI(baseURI string, subscriptionID string) OriginGroupsClient { - return original.NewOriginGroupsClientWithBaseURI(baseURI, subscriptionID) +func NewOriginGroupsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) OriginGroupsClient { + return original.NewOriginGroupsClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) } func NewOriginListResultIterator(page OriginListResultPage) OriginListResultIterator { return original.NewOriginListResultIterator(page) @@ -809,17 +1205,17 @@ func NewOriginListResultIterator(page OriginListResultPage) OriginListResultIter func NewOriginListResultPage(cur OriginListResult, getNextPage func(context.Context, OriginListResult) (OriginListResult, error)) OriginListResultPage { return original.NewOriginListResultPage(cur, getNextPage) } -func NewOriginsClient(subscriptionID string) OriginsClient { - return original.NewOriginsClient(subscriptionID) +func NewOriginsClient(subscriptionID string, subscriptionID1 string) OriginsClient { + return original.NewOriginsClient(subscriptionID, subscriptionID1) } -func NewOriginsClientWithBaseURI(baseURI string, subscriptionID string) OriginsClient { - return original.NewOriginsClientWithBaseURI(baseURI, subscriptionID) +func NewOriginsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) OriginsClient { + return original.NewOriginsClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) } -func NewPoliciesClient(subscriptionID string) PoliciesClient { - return original.NewPoliciesClient(subscriptionID) +func NewPoliciesClient(subscriptionID string, subscriptionID1 string) PoliciesClient { + return original.NewPoliciesClient(subscriptionID, subscriptionID1) } -func NewPoliciesClientWithBaseURI(baseURI string, subscriptionID string) PoliciesClient { - return original.NewPoliciesClientWithBaseURI(baseURI, subscriptionID) +func NewPoliciesClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) PoliciesClient { + return original.NewPoliciesClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) } func NewProfileListResultIterator(page ProfileListResultPage) ProfileListResultIterator { return original.NewProfileListResultIterator(page) @@ -827,17 +1223,17 @@ func NewProfileListResultIterator(page ProfileListResultPage) ProfileListResultI func NewProfileListResultPage(cur ProfileListResult, getNextPage func(context.Context, ProfileListResult) (ProfileListResult, error)) ProfileListResultPage { return original.NewProfileListResultPage(cur, getNextPage) } -func NewProfilesClient(subscriptionID string) ProfilesClient { - return original.NewProfilesClient(subscriptionID) +func NewProfilesClient(subscriptionID string, subscriptionID1 string) ProfilesClient { + return original.NewProfilesClient(subscriptionID, subscriptionID1) } -func NewProfilesClientWithBaseURI(baseURI string, subscriptionID string) ProfilesClient { - return original.NewProfilesClientWithBaseURI(baseURI, subscriptionID) +func NewProfilesClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) ProfilesClient { + return original.NewProfilesClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) } -func NewResourceUsageClient(subscriptionID string) ResourceUsageClient { - return original.NewResourceUsageClient(subscriptionID) +func NewResourceUsageClient(subscriptionID string, subscriptionID1 string) ResourceUsageClient { + return original.NewResourceUsageClient(subscriptionID, subscriptionID1) } -func NewResourceUsageClientWithBaseURI(baseURI string, subscriptionID string) ResourceUsageClient { - return original.NewResourceUsageClientWithBaseURI(baseURI, subscriptionID) +func NewResourceUsageClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) ResourceUsageClient { + return original.NewResourceUsageClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) } func NewResourceUsageListResultIterator(page ResourceUsageListResultPage) ResourceUsageListResultIterator { return original.NewResourceUsageListResultIterator(page) @@ -845,18 +1241,102 @@ func NewResourceUsageListResultIterator(page ResourceUsageListResultPage) Resour func NewResourceUsageListResultPage(cur ResourceUsageListResult, getNextPage func(context.Context, ResourceUsageListResult) (ResourceUsageListResult, error)) ResourceUsageListResultPage { return original.NewResourceUsageListResultPage(cur, getNextPage) } +func NewRouteListResultIterator(page RouteListResultPage) RouteListResultIterator { + return original.NewRouteListResultIterator(page) +} +func NewRouteListResultPage(cur RouteListResult, getNextPage func(context.Context, RouteListResult) (RouteListResult, error)) RouteListResultPage { + return original.NewRouteListResultPage(cur, getNextPage) +} +func NewRoutesClient(subscriptionID string, subscriptionID1 string) RoutesClient { + return original.NewRoutesClient(subscriptionID, subscriptionID1) +} +func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) RoutesClient { + return original.NewRoutesClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) +} +func NewRuleListResultIterator(page RuleListResultPage) RuleListResultIterator { + return original.NewRuleListResultIterator(page) +} +func NewRuleListResultPage(cur RuleListResult, getNextPage func(context.Context, RuleListResult) (RuleListResult, error)) RuleListResultPage { + return original.NewRuleListResultPage(cur, getNextPage) +} +func NewRuleSetListResultIterator(page RuleSetListResultPage) RuleSetListResultIterator { + return original.NewRuleSetListResultIterator(page) +} +func NewRuleSetListResultPage(cur RuleSetListResult, getNextPage func(context.Context, RuleSetListResult) (RuleSetListResult, error)) RuleSetListResultPage { + return original.NewRuleSetListResultPage(cur, getNextPage) +} +func NewRuleSetsClient(subscriptionID string, subscriptionID1 string) RuleSetsClient { + return original.NewRuleSetsClient(subscriptionID, subscriptionID1) +} +func NewRuleSetsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) RuleSetsClient { + return original.NewRuleSetsClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) +} +func NewRulesClient(subscriptionID string, subscriptionID1 string) RulesClient { + return original.NewRulesClient(subscriptionID, subscriptionID1) +} +func NewRulesClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) RulesClient { + return original.NewRulesClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) +} +func NewSecretListResultIterator(page SecretListResultPage) SecretListResultIterator { + return original.NewSecretListResultIterator(page) +} +func NewSecretListResultPage(cur SecretListResult, getNextPage func(context.Context, SecretListResult) (SecretListResult, error)) SecretListResultPage { + return original.NewSecretListResultPage(cur, getNextPage) +} +func NewSecretsClient(subscriptionID string, subscriptionID1 string) SecretsClient { + return original.NewSecretsClient(subscriptionID, subscriptionID1) +} +func NewSecretsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) SecretsClient { + return original.NewSecretsClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) +} +func NewSecurityPoliciesClient(subscriptionID string, subscriptionID1 string) SecurityPoliciesClient { + return original.NewSecurityPoliciesClient(subscriptionID, subscriptionID1) +} +func NewSecurityPoliciesClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) SecurityPoliciesClient { + return original.NewSecurityPoliciesClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) +} +func NewSecurityPolicyListResultIterator(page SecurityPolicyListResultPage) SecurityPolicyListResultIterator { + return original.NewSecurityPolicyListResultIterator(page) +} +func NewSecurityPolicyListResultPage(cur SecurityPolicyListResult, getNextPage func(context.Context, SecurityPolicyListResult) (SecurityPolicyListResult, error)) SecurityPolicyListResultPage { + return original.NewSecurityPolicyListResultPage(cur, getNextPage) +} +func NewUsagesListResultIterator(page UsagesListResultPage) UsagesListResultIterator { + return original.NewUsagesListResultIterator(page) +} +func NewUsagesListResultPage(cur UsagesListResult, getNextPage func(context.Context, UsagesListResult) (UsagesListResult, error)) UsagesListResultPage { + return original.NewUsagesListResultPage(cur, getNextPage) +} +func NewValidateClient(subscriptionID string, subscriptionID1 string) ValidateClient { + return original.NewValidateClient(subscriptionID, subscriptionID1) +} +func NewValidateClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) ValidateClient { + return original.NewValidateClientWithBaseURI(baseURI, subscriptionID, subscriptionID1) +} func NewWebApplicationFirewallPolicyListIterator(page WebApplicationFirewallPolicyListPage) WebApplicationFirewallPolicyListIterator { return original.NewWebApplicationFirewallPolicyListIterator(page) } func NewWebApplicationFirewallPolicyListPage(cur WebApplicationFirewallPolicyList, getNextPage func(context.Context, WebApplicationFirewallPolicyList) (WebApplicationFirewallPolicyList, error)) WebApplicationFirewallPolicyListPage { return original.NewWebApplicationFirewallPolicyListPage(cur, getNextPage) } -func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { - return original.NewWithBaseURI(baseURI, subscriptionID) +func NewWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) BaseClient { + return original.NewWithBaseURI(baseURI, subscriptionID, subscriptionID1) +} +func PossibleAFDEndpointProtocolsValues() []AFDEndpointProtocols { + return original.PossibleAFDEndpointProtocolsValues() } func PossibleActionTypeValues() []ActionType { return original.PossibleActionTypeValues() } +func PossibleAfdCertificateTypeValues() []AfdCertificateType { + return original.PossibleAfdCertificateTypeValues() +} +func PossibleAfdMinimumTLSVersionValues() []AfdMinimumTLSVersion { + return original.PossibleAfdMinimumTLSVersionValues() +} +func PossibleAfdProvisioningStateValues() []AfdProvisioningState { + return original.PossibleAfdProvisioningStateValues() +} func PossibleAlgorithmValues() []Algorithm { return original.PossibleAlgorithmValues() } @@ -884,24 +1364,54 @@ func PossibleCustomHTTPSProvisioningSubstateValues() []CustomHTTPSProvisioningSu func PossibleCustomRuleEnabledStateValues() []CustomRuleEnabledState { return original.PossibleCustomRuleEnabledStateValues() } +func PossibleDeploymentStatusValues() []DeploymentStatus { + return original.PossibleDeploymentStatusValues() +} func PossibleDestinationProtocolValues() []DestinationProtocol { return original.PossibleDestinationProtocolValues() } +func PossibleDomainValidationStateValues() []DomainValidationState { + return original.PossibleDomainValidationStateValues() +} +func PossibleEnabledStateValues() []EnabledState { + return original.PossibleEnabledStateValues() +} func PossibleEndpointResourceStateValues() []EndpointResourceState { return original.PossibleEndpointResourceStateValues() } +func PossibleForwardingProtocolValues() []ForwardingProtocol { + return original.PossibleForwardingProtocolValues() +} func PossibleGeoFilterActionsValues() []GeoFilterActions { return original.PossibleGeoFilterActionsValues() } +func PossibleGranularity1Values() []Granularity1 { + return original.PossibleGranularity1Values() +} +func PossibleGranularityValues() []Granularity { + return original.PossibleGranularityValues() +} +func PossibleHTTPSRedirectValues() []HTTPSRedirect { + return original.PossibleHTTPSRedirectValues() +} func PossibleHeaderActionValues() []HeaderAction { return original.PossibleHeaderActionValues() } func PossibleHealthProbeRequestTypeValues() []HealthProbeRequestType { return original.PossibleHealthProbeRequestTypeValues() } +func PossibleIdentityTypeValues() []IdentityType { + return original.PossibleIdentityTypeValues() +} +func PossibleLinkToDefaultDomainValues() []LinkToDefaultDomain { + return original.PossibleLinkToDefaultDomainValues() +} func PossibleManagedRuleEnabledStateValues() []ManagedRuleEnabledState { return original.PossibleManagedRuleEnabledStateValues() } +func PossibleMatchProcessingBehaviorValues() []MatchProcessingBehavior { + return original.PossibleMatchProcessingBehaviorValues() +} func PossibleMatchVariableValues() []MatchVariable { return original.PossibleMatchVariableValues() } @@ -914,9 +1424,6 @@ func PossibleNameBasicDeliveryRuleActionValues() []NameBasicDeliveryRuleAction { func PossibleNameValues() []Name { return original.PossibleNameValues() } -func PossibleOdataTypeValues() []OdataType { - return original.PossibleOdataTypeValues() -} func PossibleOperatorValues() []Operator { return original.PossibleOperatorValues() } @@ -989,15 +1496,30 @@ func PossibleResourceTypeValues() []ResourceType { func PossibleResponseBasedDetectedErrorTypesValues() []ResponseBasedDetectedErrorTypes { return original.PossibleResponseBasedDetectedErrorTypesValues() } +func PossibleSecretTypeValues() []SecretType { + return original.PossibleSecretTypeValues() +} +func PossibleSharedPrivateLinkResourceStatusValues() []SharedPrivateLinkResourceStatus { + return original.PossibleSharedPrivateLinkResourceStatusValues() +} func PossibleSkuNameValues() []SkuName { return original.PossibleSkuNameValues() } +func PossibleStatusValues() []Status { + return original.PossibleStatusValues() +} func PossibleTransformTypeValues() []TransformType { return original.PossibleTransformTypeValues() } func PossibleTransformValues() []Transform { return original.PossibleTransformValues() } +func PossibleTypeBasicSecretParametersValues() []TypeBasicSecretParameters { + return original.PossibleTypeBasicSecretParametersValues() +} +func PossibleTypeValues() []Type { + return original.PossibleTypeValues() +} func PossibleURLFileExtensionOperatorValues() []URLFileExtensionOperator { return original.PossibleURLFileExtensionOperatorValues() } @@ -1007,6 +1529,15 @@ func PossibleURLFileNameOperatorValues() []URLFileNameOperator { func PossibleURLPathOperatorValues() []URLPathOperator { return original.PossibleURLPathOperatorValues() } +func PossibleUnit1Values() []Unit1 { + return original.PossibleUnit1Values() +} +func PossibleUnitValues() []Unit { + return original.PossibleUnitValues() +} +func PossibleValidateSecretTypeValues() []ValidateSecretType { + return original.PossibleValidateSecretTypeValues() +} func UserAgent() string { return original.UserAgent() + " profiles/preview" } diff --git a/services/cdn/mgmt/2020-09-01/cdn/CHANGELOG.md b/services/cdn/mgmt/2020-09-01/cdn/CHANGELOG.md new file mode 100644 index 000000000000..3501309e5585 --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/CHANGELOG.md @@ -0,0 +1,5 @@ +Generated from https://github.com/Azure/azure-rest-api-specs/tree/3a3a9452f965a227ce43e6b545035b99dd175f23 + +Code generator @microsoft.azure/autorest.go@~2.1.165 + +This is a new package \ No newline at end of file diff --git a/services/cdn/mgmt/2020-09-01/cdn/afdcustomdomains.go b/services/cdn/mgmt/2020-09-01/cdn/afdcustomdomains.go new file mode 100644 index 000000000000..9684f5540a4f --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/afdcustomdomains.go @@ -0,0 +1,606 @@ +package cdn + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// AFDCustomDomainsClient is the cdn Management Client +type AFDCustomDomainsClient struct { + BaseClient +} + +// NewAFDCustomDomainsClient creates an instance of the AFDCustomDomainsClient client. +func NewAFDCustomDomainsClient(subscriptionID string, subscriptionID1 string) AFDCustomDomainsClient { + return NewAFDCustomDomainsClientWithBaseURI(DefaultBaseURI, subscriptionID, subscriptionID1) +} + +// NewAFDCustomDomainsClientWithBaseURI creates an instance of the AFDCustomDomainsClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewAFDCustomDomainsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) AFDCustomDomainsClient { + return AFDCustomDomainsClient{NewWithBaseURI(baseURI, subscriptionID, subscriptionID1)} +} + +// Create creates a new domain within the specified profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// customDomainName - name of the domain under the profile which is unique globally +// customDomain - domain properties +func (client AFDCustomDomainsClient) Create(ctx context.Context, resourceGroupName string, profileName string, customDomainName string, customDomain AFDDomain) (result AFDCustomDomainsCreateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDCustomDomainsClient.Create") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: customDomain, + Constraints: []validation.Constraint{{Target: "customDomain.AFDDomainProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "customDomain.AFDDomainProperties.HostName", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { + return result, validation.NewError("cdn.AFDCustomDomainsClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, profileName, customDomainName, customDomain) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDCustomDomainsClient", "Create", nil, "Failure preparing request") + return + } + + result, err = client.CreateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDCustomDomainsClient", "Create", result.Response(), "Failure sending request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client AFDCustomDomainsClient) CreatePreparer(ctx context.Context, resourceGroupName string, profileName string, customDomainName string, customDomain AFDDomain) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "customDomainName": autorest.Encode("path", customDomainName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/customDomains/{customDomainName}", pathParameters), + autorest.WithJSON(customDomain), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client AFDCustomDomainsClient) CreateSender(req *http.Request) (future AFDCustomDomainsCreateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client AFDCustomDomainsClient) CreateResponder(resp *http.Response) (result AFDDomain, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes an existing AzureFrontDoor domain with the specified domain name under the specified subscription, +// resource group and profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// customDomainName - name of the domain under the profile which is unique globally. +func (client AFDCustomDomainsClient) Delete(ctx context.Context, resourceGroupName string, profileName string, customDomainName string) (result AFDCustomDomainsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDCustomDomainsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.AFDCustomDomainsClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, profileName, customDomainName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDCustomDomainsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDCustomDomainsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client AFDCustomDomainsClient) DeletePreparer(ctx context.Context, resourceGroupName string, profileName string, customDomainName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "customDomainName": autorest.Encode("path", customDomainName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/customDomains/{customDomainName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client AFDCustomDomainsClient) DeleteSender(req *http.Request) (future AFDCustomDomainsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client AFDCustomDomainsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets an existing AzureFrontDoor domain with the specified domain name under the specified subscription, resource +// group and profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// customDomainName - name of the domain under the profile which is unique globally. +func (client AFDCustomDomainsClient) Get(ctx context.Context, resourceGroupName string, profileName string, customDomainName string) (result AFDDomain, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDCustomDomainsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.AFDCustomDomainsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, profileName, customDomainName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDCustomDomainsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.AFDCustomDomainsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDCustomDomainsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client AFDCustomDomainsClient) GetPreparer(ctx context.Context, resourceGroupName string, profileName string, customDomainName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "customDomainName": autorest.Encode("path", customDomainName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/customDomains/{customDomainName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client AFDCustomDomainsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client AFDCustomDomainsClient) GetResponder(resp *http.Response) (result AFDDomain, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByProfile lists existing AzureFrontDoor domains. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +func (client AFDCustomDomainsClient) ListByProfile(ctx context.Context, resourceGroupName string, profileName string) (result AFDDomainListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDCustomDomainsClient.ListByProfile") + defer func() { + sc := -1 + if result.adlr.Response.Response != nil { + sc = result.adlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.AFDCustomDomainsClient", "ListByProfile", err.Error()) + } + + result.fn = client.listByProfileNextResults + req, err := client.ListByProfilePreparer(ctx, resourceGroupName, profileName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDCustomDomainsClient", "ListByProfile", nil, "Failure preparing request") + return + } + + resp, err := client.ListByProfileSender(req) + if err != nil { + result.adlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.AFDCustomDomainsClient", "ListByProfile", resp, "Failure sending request") + return + } + + result.adlr, err = client.ListByProfileResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDCustomDomainsClient", "ListByProfile", resp, "Failure responding to request") + return + } + if result.adlr.hasNextLink() && result.adlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByProfilePreparer prepares the ListByProfile request. +func (client AFDCustomDomainsClient) ListByProfilePreparer(ctx context.Context, resourceGroupName string, profileName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/customDomains", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByProfileSender sends the ListByProfile request. The method will close the +// http.Response Body if it receives an error. +func (client AFDCustomDomainsClient) ListByProfileSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByProfileResponder handles the response to the ListByProfile request. The method always +// closes the http.Response Body. +func (client AFDCustomDomainsClient) ListByProfileResponder(resp *http.Response) (result AFDDomainListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByProfileNextResults retrieves the next set of results, if any. +func (client AFDCustomDomainsClient) listByProfileNextResults(ctx context.Context, lastResults AFDDomainListResult) (result AFDDomainListResult, err error) { + req, err := lastResults.aFDDomainListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cdn.AFDCustomDomainsClient", "listByProfileNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByProfileSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cdn.AFDCustomDomainsClient", "listByProfileNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByProfileResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDCustomDomainsClient", "listByProfileNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByProfileComplete enumerates all values, automatically crossing page boundaries as required. +func (client AFDCustomDomainsClient) ListByProfileComplete(ctx context.Context, resourceGroupName string, profileName string) (result AFDDomainListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDCustomDomainsClient.ListByProfile") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByProfile(ctx, resourceGroupName, profileName) + return +} + +// RefreshValidationToken updates the domain validation token. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// customDomainName - name of the domain under the profile which is unique globally. +func (client AFDCustomDomainsClient) RefreshValidationToken(ctx context.Context, resourceGroupName string, profileName string, customDomainName string) (result AFDCustomDomainsRefreshValidationTokenFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDCustomDomainsClient.RefreshValidationToken") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.AFDCustomDomainsClient", "RefreshValidationToken", err.Error()) + } + + req, err := client.RefreshValidationTokenPreparer(ctx, resourceGroupName, profileName, customDomainName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDCustomDomainsClient", "RefreshValidationToken", nil, "Failure preparing request") + return + } + + result, err = client.RefreshValidationTokenSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDCustomDomainsClient", "RefreshValidationToken", result.Response(), "Failure sending request") + return + } + + return +} + +// RefreshValidationTokenPreparer prepares the RefreshValidationToken request. +func (client AFDCustomDomainsClient) RefreshValidationTokenPreparer(ctx context.Context, resourceGroupName string, profileName string, customDomainName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "customDomainName": autorest.Encode("path", customDomainName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/customDomains/{customDomainName}/refreshValidationToken", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// RefreshValidationTokenSender sends the RefreshValidationToken request. The method will close the +// http.Response Body if it receives an error. +func (client AFDCustomDomainsClient) RefreshValidationTokenSender(req *http.Request) (future AFDCustomDomainsRefreshValidationTokenFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// RefreshValidationTokenResponder handles the response to the RefreshValidationToken request. The method always +// closes the http.Response Body. +func (client AFDCustomDomainsClient) RefreshValidationTokenResponder(resp *http.Response) (result ValidationToken, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Update updates an existing domain within a profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// customDomainName - name of the domain under the profile which is unique globally +// customDomainUpdateProperties - domain properties +func (client AFDCustomDomainsClient) Update(ctx context.Context, resourceGroupName string, profileName string, customDomainName string, customDomainUpdateProperties AFDDomainUpdateParameters) (result AFDCustomDomainsUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDCustomDomainsClient.Update") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.AFDCustomDomainsClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, profileName, customDomainName, customDomainUpdateProperties) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDCustomDomainsClient", "Update", nil, "Failure preparing request") + return + } + + result, err = client.UpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDCustomDomainsClient", "Update", result.Response(), "Failure sending request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client AFDCustomDomainsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, profileName string, customDomainName string, customDomainUpdateProperties AFDDomainUpdateParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "customDomainName": autorest.Encode("path", customDomainName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/customDomains/{customDomainName}", pathParameters), + autorest.WithJSON(customDomainUpdateProperties), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client AFDCustomDomainsClient) UpdateSender(req *http.Request) (future AFDCustomDomainsUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client AFDCustomDomainsClient) UpdateResponder(resp *http.Response) (result AFDDomain, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/cdn/mgmt/2020-09-01/cdn/afdendpoints.go b/services/cdn/mgmt/2020-09-01/cdn/afdendpoints.go new file mode 100644 index 000000000000..30ac3be62311 --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/afdendpoints.go @@ -0,0 +1,836 @@ +package cdn + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// AFDEndpointsClient is the cdn Management Client +type AFDEndpointsClient struct { + BaseClient +} + +// NewAFDEndpointsClient creates an instance of the AFDEndpointsClient client. +func NewAFDEndpointsClient(subscriptionID string, subscriptionID1 string) AFDEndpointsClient { + return NewAFDEndpointsClientWithBaseURI(DefaultBaseURI, subscriptionID, subscriptionID1) +} + +// NewAFDEndpointsClientWithBaseURI creates an instance of the AFDEndpointsClient client using a custom endpoint. Use +// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewAFDEndpointsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) AFDEndpointsClient { + return AFDEndpointsClient{NewWithBaseURI(baseURI, subscriptionID, subscriptionID1)} +} + +// Create creates a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, +// resource group and profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +// endpoint - endpoint properties +func (client AFDEndpointsClient) Create(ctx context.Context, resourceGroupName string, profileName string, endpointName string, endpoint AFDEndpoint) (result AFDEndpointsCreateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDEndpointsClient.Create") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: endpoint, + Constraints: []validation.Constraint{{Target: "endpoint.AFDEndpointProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "endpoint.AFDEndpointProperties.OriginResponseTimeoutSeconds", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "endpoint.AFDEndpointProperties.OriginResponseTimeoutSeconds", Name: validation.InclusiveMinimum, Rule: int64(16), Chain: nil}}}, + }}}}}); err != nil { + return result, validation.NewError("cdn.AFDEndpointsClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, profileName, endpointName, endpoint) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsClient", "Create", nil, "Failure preparing request") + return + } + + result, err = client.CreateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsClient", "Create", result.Response(), "Failure sending request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client AFDEndpointsClient) CreatePreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, endpoint AFDEndpoint) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}", pathParameters), + autorest.WithJSON(endpoint), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client AFDEndpointsClient) CreateSender(req *http.Request) (future AFDEndpointsCreateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client AFDEndpointsClient) CreateResponder(resp *http.Response) (result AFDEndpoint, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes an existing AzureFrontDoor endpoint with the specified endpoint name under the specified +// subscription, resource group and profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +func (client AFDEndpointsClient) Delete(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result AFDEndpointsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDEndpointsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.AFDEndpointsClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, profileName, endpointName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client AFDEndpointsClient) DeletePreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client AFDEndpointsClient) DeleteSender(req *http.Request) (future AFDEndpointsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client AFDEndpointsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, +// resource group and profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +func (client AFDEndpointsClient) Get(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result AFDEndpoint, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDEndpointsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.AFDEndpointsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, profileName, endpointName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client AFDEndpointsClient) GetPreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client AFDEndpointsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client AFDEndpointsClient) GetResponder(resp *http.Response) (result AFDEndpoint, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByProfile lists existing AzureFrontDoor endpoints. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +func (client AFDEndpointsClient) ListByProfile(ctx context.Context, resourceGroupName string, profileName string) (result AFDEndpointListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDEndpointsClient.ListByProfile") + defer func() { + sc := -1 + if result.aelr.Response.Response != nil { + sc = result.aelr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.AFDEndpointsClient", "ListByProfile", err.Error()) + } + + result.fn = client.listByProfileNextResults + req, err := client.ListByProfilePreparer(ctx, resourceGroupName, profileName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsClient", "ListByProfile", nil, "Failure preparing request") + return + } + + resp, err := client.ListByProfileSender(req) + if err != nil { + result.aelr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsClient", "ListByProfile", resp, "Failure sending request") + return + } + + result.aelr, err = client.ListByProfileResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsClient", "ListByProfile", resp, "Failure responding to request") + return + } + if result.aelr.hasNextLink() && result.aelr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByProfilePreparer prepares the ListByProfile request. +func (client AFDEndpointsClient) ListByProfilePreparer(ctx context.Context, resourceGroupName string, profileName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByProfileSender sends the ListByProfile request. The method will close the +// http.Response Body if it receives an error. +func (client AFDEndpointsClient) ListByProfileSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByProfileResponder handles the response to the ListByProfile request. The method always +// closes the http.Response Body. +func (client AFDEndpointsClient) ListByProfileResponder(resp *http.Response) (result AFDEndpointListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByProfileNextResults retrieves the next set of results, if any. +func (client AFDEndpointsClient) listByProfileNextResults(ctx context.Context, lastResults AFDEndpointListResult) (result AFDEndpointListResult, err error) { + req, err := lastResults.aFDEndpointListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cdn.AFDEndpointsClient", "listByProfileNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByProfileSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cdn.AFDEndpointsClient", "listByProfileNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByProfileResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsClient", "listByProfileNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByProfileComplete enumerates all values, automatically crossing page boundaries as required. +func (client AFDEndpointsClient) ListByProfileComplete(ctx context.Context, resourceGroupName string, profileName string) (result AFDEndpointListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDEndpointsClient.ListByProfile") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByProfile(ctx, resourceGroupName, profileName) + return +} + +// ListResourceUsage checks the quota and actual usage of endpoints under the given CDN profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +func (client AFDEndpointsClient) ListResourceUsage(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result UsagesListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDEndpointsClient.ListResourceUsage") + defer func() { + sc := -1 + if result.ulr.Response.Response != nil { + sc = result.ulr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.AFDEndpointsClient", "ListResourceUsage", err.Error()) + } + + result.fn = client.listResourceUsageNextResults + req, err := client.ListResourceUsagePreparer(ctx, resourceGroupName, profileName, endpointName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsClient", "ListResourceUsage", nil, "Failure preparing request") + return + } + + resp, err := client.ListResourceUsageSender(req) + if err != nil { + result.ulr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsClient", "ListResourceUsage", resp, "Failure sending request") + return + } + + result.ulr, err = client.ListResourceUsageResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsClient", "ListResourceUsage", resp, "Failure responding to request") + return + } + if result.ulr.hasNextLink() && result.ulr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListResourceUsagePreparer prepares the ListResourceUsage request. +func (client AFDEndpointsClient) ListResourceUsagePreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/usages", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListResourceUsageSender sends the ListResourceUsage request. The method will close the +// http.Response Body if it receives an error. +func (client AFDEndpointsClient) ListResourceUsageSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResourceUsageResponder handles the response to the ListResourceUsage request. The method always +// closes the http.Response Body. +func (client AFDEndpointsClient) ListResourceUsageResponder(resp *http.Response) (result UsagesListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listResourceUsageNextResults retrieves the next set of results, if any. +func (client AFDEndpointsClient) listResourceUsageNextResults(ctx context.Context, lastResults UsagesListResult) (result UsagesListResult, err error) { + req, err := lastResults.usagesListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cdn.AFDEndpointsClient", "listResourceUsageNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListResourceUsageSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cdn.AFDEndpointsClient", "listResourceUsageNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResourceUsageResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsClient", "listResourceUsageNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListResourceUsageComplete enumerates all values, automatically crossing page boundaries as required. +func (client AFDEndpointsClient) ListResourceUsageComplete(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result UsagesListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDEndpointsClient.ListResourceUsage") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListResourceUsage(ctx, resourceGroupName, profileName, endpointName) + return +} + +// PurgeContent removes a content from AzureFrontDoor. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +// contents - the list of paths to the content and the list of linked domains to be purged. Path can be a full +// URL, e.g. '/pictures/city.png' which removes a single file, or a directory with a wildcard, e.g. +// '/pictures/*' which removes all folders and files in the directory. +func (client AFDEndpointsClient) PurgeContent(ctx context.Context, resourceGroupName string, profileName string, endpointName string, contents AfdPurgeParameters) (result AFDEndpointsPurgeContentFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDEndpointsClient.PurgeContent") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: contents, + Constraints: []validation.Constraint{{Target: "contents.ContentPaths", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.AFDEndpointsClient", "PurgeContent", err.Error()) + } + + req, err := client.PurgeContentPreparer(ctx, resourceGroupName, profileName, endpointName, contents) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsClient", "PurgeContent", nil, "Failure preparing request") + return + } + + result, err = client.PurgeContentSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsClient", "PurgeContent", result.Response(), "Failure sending request") + return + } + + return +} + +// PurgeContentPreparer prepares the PurgeContent request. +func (client AFDEndpointsClient) PurgeContentPreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, contents AfdPurgeParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/purge", pathParameters), + autorest.WithJSON(contents), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// PurgeContentSender sends the PurgeContent request. The method will close the +// http.Response Body if it receives an error. +func (client AFDEndpointsClient) PurgeContentSender(req *http.Request) (future AFDEndpointsPurgeContentFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// PurgeContentResponder handles the response to the PurgeContent request. The method always +// closes the http.Response Body. +func (client AFDEndpointsClient) PurgeContentResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// Update updates an existing AzureFrontDoor endpoint with the specified endpoint name under the specified +// subscription, resource group and profile. Only tags can be updated after creating an endpoint. To update origins, +// use the Update Origin operation. To update origin groups, use the Update Origin group operation. To update domains, +// use the Update Custom Domain operation. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +// endpointUpdateProperties - endpoint update properties +func (client AFDEndpointsClient) Update(ctx context.Context, resourceGroupName string, profileName string, endpointName string, endpointUpdateProperties AFDEndpointUpdateParameters) (result AFDEndpointsUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDEndpointsClient.Update") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.AFDEndpointsClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, profileName, endpointName, endpointUpdateProperties) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsClient", "Update", nil, "Failure preparing request") + return + } + + result, err = client.UpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsClient", "Update", result.Response(), "Failure sending request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client AFDEndpointsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, endpointUpdateProperties AFDEndpointUpdateParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}", pathParameters), + autorest.WithJSON(endpointUpdateProperties), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client AFDEndpointsClient) UpdateSender(req *http.Request) (future AFDEndpointsUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client AFDEndpointsClient) UpdateResponder(resp *http.Response) (result AFDEndpoint, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ValidateCustomDomain validates the custom domain mapping to ensure it maps to the correct CDN endpoint in DNS. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +// customDomainProperties - custom domain to be validated. +func (client AFDEndpointsClient) ValidateCustomDomain(ctx context.Context, resourceGroupName string, profileName string, endpointName string, customDomainProperties ValidateCustomDomainInput) (result ValidateCustomDomainOutput, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDEndpointsClient.ValidateCustomDomain") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: customDomainProperties, + Constraints: []validation.Constraint{{Target: "customDomainProperties.HostName", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.AFDEndpointsClient", "ValidateCustomDomain", err.Error()) + } + + req, err := client.ValidateCustomDomainPreparer(ctx, resourceGroupName, profileName, endpointName, customDomainProperties) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsClient", "ValidateCustomDomain", nil, "Failure preparing request") + return + } + + resp, err := client.ValidateCustomDomainSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsClient", "ValidateCustomDomain", resp, "Failure sending request") + return + } + + result, err = client.ValidateCustomDomainResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsClient", "ValidateCustomDomain", resp, "Failure responding to request") + return + } + + return +} + +// ValidateCustomDomainPreparer prepares the ValidateCustomDomain request. +func (client AFDEndpointsClient) ValidateCustomDomainPreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, customDomainProperties ValidateCustomDomainInput) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/validateCustomDomain", pathParameters), + autorest.WithJSON(customDomainProperties), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ValidateCustomDomainSender sends the ValidateCustomDomain request. The method will close the +// http.Response Body if it receives an error. +func (client AFDEndpointsClient) ValidateCustomDomainSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ValidateCustomDomainResponder handles the response to the ValidateCustomDomain request. The method always +// closes the http.Response Body. +func (client AFDEndpointsClient) ValidateCustomDomainResponder(resp *http.Response) (result ValidateCustomDomainOutput, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/cdn/mgmt/2020-09-01/cdn/afdorigingroups.go b/services/cdn/mgmt/2020-09-01/cdn/afdorigingroups.go new file mode 100644 index 000000000000..0f0c5599564c --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/afdorigingroups.go @@ -0,0 +1,662 @@ +package cdn + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// AFDOriginGroupsClient is the cdn Management Client +type AFDOriginGroupsClient struct { + BaseClient +} + +// NewAFDOriginGroupsClient creates an instance of the AFDOriginGroupsClient client. +func NewAFDOriginGroupsClient(subscriptionID string, subscriptionID1 string) AFDOriginGroupsClient { + return NewAFDOriginGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID, subscriptionID1) +} + +// NewAFDOriginGroupsClientWithBaseURI creates an instance of the AFDOriginGroupsClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewAFDOriginGroupsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) AFDOriginGroupsClient { + return AFDOriginGroupsClient{NewWithBaseURI(baseURI, subscriptionID, subscriptionID1)} +} + +// Create creates a new origin group within the specified profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// originGroupName - name of the origin group which is unique within the endpoint. +// originGroup - origin group properties +func (client AFDOriginGroupsClient) Create(ctx context.Context, resourceGroupName string, profileName string, originGroupName string, originGroup AFDOriginGroup) (result AFDOriginGroupsCreateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDOriginGroupsClient.Create") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: originGroup, + Constraints: []validation.Constraint{{Target: "originGroup.AFDOriginGroupProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "originGroup.AFDOriginGroupProperties.HealthProbeSettings", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "originGroup.AFDOriginGroupProperties.HealthProbeSettings.ProbeIntervalInSeconds", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "originGroup.AFDOriginGroupProperties.HealthProbeSettings.ProbeIntervalInSeconds", Name: validation.InclusiveMaximum, Rule: int64(255), Chain: nil}, + {Target: "originGroup.AFDOriginGroupProperties.HealthProbeSettings.ProbeIntervalInSeconds", Name: validation.InclusiveMinimum, Rule: int64(1), Chain: nil}, + }}, + }}, + {Target: "originGroup.AFDOriginGroupProperties.TrafficRestorationTimeToHealedOrNewEndpointsInMinutes", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "originGroup.AFDOriginGroupProperties.TrafficRestorationTimeToHealedOrNewEndpointsInMinutes", Name: validation.InclusiveMaximum, Rule: int64(50), Chain: nil}, + {Target: "originGroup.AFDOriginGroupProperties.TrafficRestorationTimeToHealedOrNewEndpointsInMinutes", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + }}, + {Target: "originGroup.AFDOriginGroupProperties.ResponseBasedAfdOriginErrorDetectionSettings", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "originGroup.AFDOriginGroupProperties.ResponseBasedAfdOriginErrorDetectionSettings.ResponseBasedFailoverThresholdPercentage", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "originGroup.AFDOriginGroupProperties.ResponseBasedAfdOriginErrorDetectionSettings.ResponseBasedFailoverThresholdPercentage", Name: validation.InclusiveMaximum, Rule: int64(100), Chain: nil}, + {Target: "originGroup.AFDOriginGroupProperties.ResponseBasedAfdOriginErrorDetectionSettings.ResponseBasedFailoverThresholdPercentage", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + }}, + }}, + }}}}}); err != nil { + return result, validation.NewError("cdn.AFDOriginGroupsClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, profileName, originGroupName, originGroup) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginGroupsClient", "Create", nil, "Failure preparing request") + return + } + + result, err = client.CreateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginGroupsClient", "Create", result.Response(), "Failure sending request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client AFDOriginGroupsClient) CreatePreparer(ctx context.Context, resourceGroupName string, profileName string, originGroupName string, originGroup AFDOriginGroup) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "originGroupName": autorest.Encode("path", originGroupName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}", pathParameters), + autorest.WithJSON(originGroup), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client AFDOriginGroupsClient) CreateSender(req *http.Request) (future AFDOriginGroupsCreateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client AFDOriginGroupsClient) CreateResponder(resp *http.Response) (result AFDOriginGroup, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes an existing origin group within a profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// originGroupName - name of the origin group which is unique within the profile. +func (client AFDOriginGroupsClient) Delete(ctx context.Context, resourceGroupName string, profileName string, originGroupName string) (result AFDOriginGroupsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDOriginGroupsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.AFDOriginGroupsClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, profileName, originGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginGroupsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginGroupsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client AFDOriginGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, profileName string, originGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "originGroupName": autorest.Encode("path", originGroupName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client AFDOriginGroupsClient) DeleteSender(req *http.Request) (future AFDOriginGroupsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client AFDOriginGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets an existing origin group within a profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// originGroupName - name of the origin group which is unique within the endpoint. +func (client AFDOriginGroupsClient) Get(ctx context.Context, resourceGroupName string, profileName string, originGroupName string) (result AFDOriginGroup, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDOriginGroupsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.AFDOriginGroupsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, profileName, originGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginGroupsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.AFDOriginGroupsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginGroupsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client AFDOriginGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, profileName string, originGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "originGroupName": autorest.Encode("path", originGroupName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client AFDOriginGroupsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client AFDOriginGroupsClient) GetResponder(resp *http.Response) (result AFDOriginGroup, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByProfile lists all of the existing origin groups within a profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +func (client AFDOriginGroupsClient) ListByProfile(ctx context.Context, resourceGroupName string, profileName string) (result AFDOriginGroupListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDOriginGroupsClient.ListByProfile") + defer func() { + sc := -1 + if result.aoglr.Response.Response != nil { + sc = result.aoglr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.AFDOriginGroupsClient", "ListByProfile", err.Error()) + } + + result.fn = client.listByProfileNextResults + req, err := client.ListByProfilePreparer(ctx, resourceGroupName, profileName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginGroupsClient", "ListByProfile", nil, "Failure preparing request") + return + } + + resp, err := client.ListByProfileSender(req) + if err != nil { + result.aoglr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.AFDOriginGroupsClient", "ListByProfile", resp, "Failure sending request") + return + } + + result.aoglr, err = client.ListByProfileResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginGroupsClient", "ListByProfile", resp, "Failure responding to request") + return + } + if result.aoglr.hasNextLink() && result.aoglr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByProfilePreparer prepares the ListByProfile request. +func (client AFDOriginGroupsClient) ListByProfilePreparer(ctx context.Context, resourceGroupName string, profileName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByProfileSender sends the ListByProfile request. The method will close the +// http.Response Body if it receives an error. +func (client AFDOriginGroupsClient) ListByProfileSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByProfileResponder handles the response to the ListByProfile request. The method always +// closes the http.Response Body. +func (client AFDOriginGroupsClient) ListByProfileResponder(resp *http.Response) (result AFDOriginGroupListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByProfileNextResults retrieves the next set of results, if any. +func (client AFDOriginGroupsClient) listByProfileNextResults(ctx context.Context, lastResults AFDOriginGroupListResult) (result AFDOriginGroupListResult, err error) { + req, err := lastResults.aFDOriginGroupListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cdn.AFDOriginGroupsClient", "listByProfileNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByProfileSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cdn.AFDOriginGroupsClient", "listByProfileNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByProfileResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginGroupsClient", "listByProfileNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByProfileComplete enumerates all values, automatically crossing page boundaries as required. +func (client AFDOriginGroupsClient) ListByProfileComplete(ctx context.Context, resourceGroupName string, profileName string) (result AFDOriginGroupListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDOriginGroupsClient.ListByProfile") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByProfile(ctx, resourceGroupName, profileName) + return +} + +// ListResourceUsage checks the quota and actual usage of endpoints under the given CDN profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// originGroupName - name of the origin group which is unique within the endpoint. +func (client AFDOriginGroupsClient) ListResourceUsage(ctx context.Context, resourceGroupName string, profileName string, originGroupName string) (result UsagesListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDOriginGroupsClient.ListResourceUsage") + defer func() { + sc := -1 + if result.ulr.Response.Response != nil { + sc = result.ulr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.AFDOriginGroupsClient", "ListResourceUsage", err.Error()) + } + + result.fn = client.listResourceUsageNextResults + req, err := client.ListResourceUsagePreparer(ctx, resourceGroupName, profileName, originGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginGroupsClient", "ListResourceUsage", nil, "Failure preparing request") + return + } + + resp, err := client.ListResourceUsageSender(req) + if err != nil { + result.ulr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.AFDOriginGroupsClient", "ListResourceUsage", resp, "Failure sending request") + return + } + + result.ulr, err = client.ListResourceUsageResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginGroupsClient", "ListResourceUsage", resp, "Failure responding to request") + return + } + if result.ulr.hasNextLink() && result.ulr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListResourceUsagePreparer prepares the ListResourceUsage request. +func (client AFDOriginGroupsClient) ListResourceUsagePreparer(ctx context.Context, resourceGroupName string, profileName string, originGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "originGroupName": autorest.Encode("path", originGroupName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}/usages", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListResourceUsageSender sends the ListResourceUsage request. The method will close the +// http.Response Body if it receives an error. +func (client AFDOriginGroupsClient) ListResourceUsageSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResourceUsageResponder handles the response to the ListResourceUsage request. The method always +// closes the http.Response Body. +func (client AFDOriginGroupsClient) ListResourceUsageResponder(resp *http.Response) (result UsagesListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listResourceUsageNextResults retrieves the next set of results, if any. +func (client AFDOriginGroupsClient) listResourceUsageNextResults(ctx context.Context, lastResults UsagesListResult) (result UsagesListResult, err error) { + req, err := lastResults.usagesListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cdn.AFDOriginGroupsClient", "listResourceUsageNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListResourceUsageSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cdn.AFDOriginGroupsClient", "listResourceUsageNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResourceUsageResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginGroupsClient", "listResourceUsageNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListResourceUsageComplete enumerates all values, automatically crossing page boundaries as required. +func (client AFDOriginGroupsClient) ListResourceUsageComplete(ctx context.Context, resourceGroupName string, profileName string, originGroupName string) (result UsagesListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDOriginGroupsClient.ListResourceUsage") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListResourceUsage(ctx, resourceGroupName, profileName, originGroupName) + return +} + +// Update updates an existing origin group within a profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// originGroupName - name of the origin group which is unique within the profile. +// originGroupUpdateProperties - origin group properties +func (client AFDOriginGroupsClient) Update(ctx context.Context, resourceGroupName string, profileName string, originGroupName string, originGroupUpdateProperties AFDOriginGroupUpdateParameters) (result AFDOriginGroupsUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDOriginGroupsClient.Update") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.AFDOriginGroupsClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, profileName, originGroupName, originGroupUpdateProperties) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginGroupsClient", "Update", nil, "Failure preparing request") + return + } + + result, err = client.UpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginGroupsClient", "Update", result.Response(), "Failure sending request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client AFDOriginGroupsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, profileName string, originGroupName string, originGroupUpdateProperties AFDOriginGroupUpdateParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "originGroupName": autorest.Encode("path", originGroupName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}", pathParameters), + autorest.WithJSON(originGroupUpdateProperties), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client AFDOriginGroupsClient) UpdateSender(req *http.Request) (future AFDOriginGroupsUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client AFDOriginGroupsClient) UpdateResponder(resp *http.Response) (result AFDOriginGroup, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/cdn/mgmt/2020-09-01/cdn/afdorigins.go b/services/cdn/mgmt/2020-09-01/cdn/afdorigins.go new file mode 100644 index 000000000000..068f6f0ae9f8 --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/afdorigins.go @@ -0,0 +1,545 @@ +package cdn + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// AFDOriginsClient is the cdn Management Client +type AFDOriginsClient struct { + BaseClient +} + +// NewAFDOriginsClient creates an instance of the AFDOriginsClient client. +func NewAFDOriginsClient(subscriptionID string, subscriptionID1 string) AFDOriginsClient { + return NewAFDOriginsClientWithBaseURI(DefaultBaseURI, subscriptionID, subscriptionID1) +} + +// NewAFDOriginsClientWithBaseURI creates an instance of the AFDOriginsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewAFDOriginsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) AFDOriginsClient { + return AFDOriginsClient{NewWithBaseURI(baseURI, subscriptionID, subscriptionID1)} +} + +// Create creates a new origin within the specified origin group. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// originGroupName - name of the origin group which is unique within the profile. +// originName - name of the origin that is unique within the profile. +// origin - origin properties +func (client AFDOriginsClient) Create(ctx context.Context, resourceGroupName string, profileName string, originGroupName string, originName string, origin AFDOrigin) (result AFDOriginsCreateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDOriginsClient.Create") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: origin, + Constraints: []validation.Constraint{{Target: "origin.AFDOriginProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "origin.AFDOriginProperties.HostName", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "origin.AFDOriginProperties.HTTPPort", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "origin.AFDOriginProperties.HTTPPort", Name: validation.InclusiveMaximum, Rule: int64(65535), Chain: nil}, + {Target: "origin.AFDOriginProperties.HTTPPort", Name: validation.InclusiveMinimum, Rule: int64(1), Chain: nil}, + }}, + {Target: "origin.AFDOriginProperties.HTTPSPort", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "origin.AFDOriginProperties.HTTPSPort", Name: validation.InclusiveMaximum, Rule: int64(65535), Chain: nil}, + {Target: "origin.AFDOriginProperties.HTTPSPort", Name: validation.InclusiveMinimum, Rule: int64(1), Chain: nil}, + }}, + {Target: "origin.AFDOriginProperties.Priority", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "origin.AFDOriginProperties.Priority", Name: validation.InclusiveMaximum, Rule: int64(5), Chain: nil}, + {Target: "origin.AFDOriginProperties.Priority", Name: validation.InclusiveMinimum, Rule: int64(1), Chain: nil}, + }}, + {Target: "origin.AFDOriginProperties.Weight", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "origin.AFDOriginProperties.Weight", Name: validation.InclusiveMaximum, Rule: int64(1000), Chain: nil}, + {Target: "origin.AFDOriginProperties.Weight", Name: validation.InclusiveMinimum, Rule: int64(1), Chain: nil}, + }}, + }}}}}); err != nil { + return result, validation.NewError("cdn.AFDOriginsClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, profileName, originGroupName, originName, origin) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginsClient", "Create", nil, "Failure preparing request") + return + } + + result, err = client.CreateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginsClient", "Create", result.Response(), "Failure sending request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client AFDOriginsClient) CreatePreparer(ctx context.Context, resourceGroupName string, profileName string, originGroupName string, originName string, origin AFDOrigin) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "originGroupName": autorest.Encode("path", originGroupName), + "originName": autorest.Encode("path", originName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}/origins/{originName}", pathParameters), + autorest.WithJSON(origin), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client AFDOriginsClient) CreateSender(req *http.Request) (future AFDOriginsCreateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client AFDOriginsClient) CreateResponder(resp *http.Response) (result AFDOrigin, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes an existing origin within an origin group. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// originGroupName - name of the origin group which is unique within the profile. +// originName - name of the origin which is unique within the profile. +func (client AFDOriginsClient) Delete(ctx context.Context, resourceGroupName string, profileName string, originGroupName string, originName string) (result AFDOriginsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDOriginsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.AFDOriginsClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, profileName, originGroupName, originName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client AFDOriginsClient) DeletePreparer(ctx context.Context, resourceGroupName string, profileName string, originGroupName string, originName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "originGroupName": autorest.Encode("path", originGroupName), + "originName": autorest.Encode("path", originName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}/origins/{originName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client AFDOriginsClient) DeleteSender(req *http.Request) (future AFDOriginsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client AFDOriginsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets an existing origin within an origin group. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// originGroupName - name of the origin group which is unique within the profile. +// originName - name of the origin which is unique within the profile. +func (client AFDOriginsClient) Get(ctx context.Context, resourceGroupName string, profileName string, originGroupName string, originName string) (result AFDOrigin, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDOriginsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.AFDOriginsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, profileName, originGroupName, originName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.AFDOriginsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client AFDOriginsClient) GetPreparer(ctx context.Context, resourceGroupName string, profileName string, originGroupName string, originName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "originGroupName": autorest.Encode("path", originGroupName), + "originName": autorest.Encode("path", originName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}/origins/{originName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client AFDOriginsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client AFDOriginsClient) GetResponder(resp *http.Response) (result AFDOrigin, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByOriginGroup lists all of the existing origins within an origin group. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// originGroupName - name of the origin group which is unique within the profile. +func (client AFDOriginsClient) ListByOriginGroup(ctx context.Context, resourceGroupName string, profileName string, originGroupName string) (result AFDOriginListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDOriginsClient.ListByOriginGroup") + defer func() { + sc := -1 + if result.aolr.Response.Response != nil { + sc = result.aolr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.AFDOriginsClient", "ListByOriginGroup", err.Error()) + } + + result.fn = client.listByOriginGroupNextResults + req, err := client.ListByOriginGroupPreparer(ctx, resourceGroupName, profileName, originGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginsClient", "ListByOriginGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByOriginGroupSender(req) + if err != nil { + result.aolr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.AFDOriginsClient", "ListByOriginGroup", resp, "Failure sending request") + return + } + + result.aolr, err = client.ListByOriginGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginsClient", "ListByOriginGroup", resp, "Failure responding to request") + return + } + if result.aolr.hasNextLink() && result.aolr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByOriginGroupPreparer prepares the ListByOriginGroup request. +func (client AFDOriginsClient) ListByOriginGroupPreparer(ctx context.Context, resourceGroupName string, profileName string, originGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "originGroupName": autorest.Encode("path", originGroupName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}/origins", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByOriginGroupSender sends the ListByOriginGroup request. The method will close the +// http.Response Body if it receives an error. +func (client AFDOriginsClient) ListByOriginGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByOriginGroupResponder handles the response to the ListByOriginGroup request. The method always +// closes the http.Response Body. +func (client AFDOriginsClient) ListByOriginGroupResponder(resp *http.Response) (result AFDOriginListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByOriginGroupNextResults retrieves the next set of results, if any. +func (client AFDOriginsClient) listByOriginGroupNextResults(ctx context.Context, lastResults AFDOriginListResult) (result AFDOriginListResult, err error) { + req, err := lastResults.aFDOriginListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cdn.AFDOriginsClient", "listByOriginGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByOriginGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cdn.AFDOriginsClient", "listByOriginGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByOriginGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginsClient", "listByOriginGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByOriginGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client AFDOriginsClient) ListByOriginGroupComplete(ctx context.Context, resourceGroupName string, profileName string, originGroupName string) (result AFDOriginListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDOriginsClient.ListByOriginGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByOriginGroup(ctx, resourceGroupName, profileName, originGroupName) + return +} + +// Update updates an existing origin within an origin group. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// originGroupName - name of the origin group which is unique within the profile. +// originName - name of the origin which is unique within the profile. +// originUpdateProperties - origin properties +func (client AFDOriginsClient) Update(ctx context.Context, resourceGroupName string, profileName string, originGroupName string, originName string, originUpdateProperties AFDOriginUpdateParameters) (result AFDOriginsUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDOriginsClient.Update") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.AFDOriginsClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, profileName, originGroupName, originName, originUpdateProperties) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginsClient", "Update", nil, "Failure preparing request") + return + } + + result, err = client.UpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginsClient", "Update", result.Response(), "Failure sending request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client AFDOriginsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, profileName string, originGroupName string, originName string, originUpdateProperties AFDOriginUpdateParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "originGroupName": autorest.Encode("path", originGroupName), + "originName": autorest.Encode("path", originName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}/origins/{originName}", pathParameters), + autorest.WithJSON(originUpdateProperties), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client AFDOriginsClient) UpdateSender(req *http.Request) (future AFDOriginsUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client AFDOriginsClient) UpdateResponder(resp *http.Response) (result AFDOrigin, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/cdn/mgmt/2020-09-01/cdn/afdprofiles.go b/services/cdn/mgmt/2020-09-01/cdn/afdprofiles.go new file mode 100644 index 000000000000..9059f7e1dd0d --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/afdprofiles.go @@ -0,0 +1,258 @@ +package cdn + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// AFDProfilesClient is the cdn Management Client +type AFDProfilesClient struct { + BaseClient +} + +// NewAFDProfilesClient creates an instance of the AFDProfilesClient client. +func NewAFDProfilesClient(subscriptionID string, subscriptionID1 string) AFDProfilesClient { + return NewAFDProfilesClientWithBaseURI(DefaultBaseURI, subscriptionID, subscriptionID1) +} + +// NewAFDProfilesClientWithBaseURI creates an instance of the AFDProfilesClient client using a custom endpoint. Use +// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewAFDProfilesClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) AFDProfilesClient { + return AFDProfilesClient{NewWithBaseURI(baseURI, subscriptionID, subscriptionID1)} +} + +// CheckHostNameAvailability validates the custom domain mapping to ensure it maps to the correct CDN endpoint in DNS. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// checkHostNameAvailabilityInput - custom domain to be validated. +func (client AFDProfilesClient) CheckHostNameAvailability(ctx context.Context, resourceGroupName string, profileName string, checkHostNameAvailabilityInput ValidateCustomDomainInput) (result ValidateCustomDomainOutput, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDProfilesClient.CheckHostNameAvailability") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: checkHostNameAvailabilityInput, + Constraints: []validation.Constraint{{Target: "checkHostNameAvailabilityInput.HostName", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.AFDProfilesClient", "CheckHostNameAvailability", err.Error()) + } + + req, err := client.CheckHostNameAvailabilityPreparer(ctx, resourceGroupName, profileName, checkHostNameAvailabilityInput) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDProfilesClient", "CheckHostNameAvailability", nil, "Failure preparing request") + return + } + + resp, err := client.CheckHostNameAvailabilitySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.AFDProfilesClient", "CheckHostNameAvailability", resp, "Failure sending request") + return + } + + result, err = client.CheckHostNameAvailabilityResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDProfilesClient", "CheckHostNameAvailability", resp, "Failure responding to request") + return + } + + return +} + +// CheckHostNameAvailabilityPreparer prepares the CheckHostNameAvailability request. +func (client AFDProfilesClient) CheckHostNameAvailabilityPreparer(ctx context.Context, resourceGroupName string, profileName string, checkHostNameAvailabilityInput ValidateCustomDomainInput) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/checkHostNameAvailability", pathParameters), + autorest.WithJSON(checkHostNameAvailabilityInput), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CheckHostNameAvailabilitySender sends the CheckHostNameAvailability request. The method will close the +// http.Response Body if it receives an error. +func (client AFDProfilesClient) CheckHostNameAvailabilitySender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CheckHostNameAvailabilityResponder handles the response to the CheckHostNameAvailability request. The method always +// closes the http.Response Body. +func (client AFDProfilesClient) CheckHostNameAvailabilityResponder(resp *http.Response) (result ValidateCustomDomainOutput, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListResourceUsage checks the quota and actual usage of endpoints under the given CDN profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +func (client AFDProfilesClient) ListResourceUsage(ctx context.Context, resourceGroupName string, profileName string) (result UsagesListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDProfilesClient.ListResourceUsage") + defer func() { + sc := -1 + if result.ulr.Response.Response != nil { + sc = result.ulr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.AFDProfilesClient", "ListResourceUsage", err.Error()) + } + + result.fn = client.listResourceUsageNextResults + req, err := client.ListResourceUsagePreparer(ctx, resourceGroupName, profileName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDProfilesClient", "ListResourceUsage", nil, "Failure preparing request") + return + } + + resp, err := client.ListResourceUsageSender(req) + if err != nil { + result.ulr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.AFDProfilesClient", "ListResourceUsage", resp, "Failure sending request") + return + } + + result.ulr, err = client.ListResourceUsageResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDProfilesClient", "ListResourceUsage", resp, "Failure responding to request") + return + } + if result.ulr.hasNextLink() && result.ulr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListResourceUsagePreparer prepares the ListResourceUsage request. +func (client AFDProfilesClient) ListResourceUsagePreparer(ctx context.Context, resourceGroupName string, profileName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/usages", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListResourceUsageSender sends the ListResourceUsage request. The method will close the +// http.Response Body if it receives an error. +func (client AFDProfilesClient) ListResourceUsageSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResourceUsageResponder handles the response to the ListResourceUsage request. The method always +// closes the http.Response Body. +func (client AFDProfilesClient) ListResourceUsageResponder(resp *http.Response) (result UsagesListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listResourceUsageNextResults retrieves the next set of results, if any. +func (client AFDProfilesClient) listResourceUsageNextResults(ctx context.Context, lastResults UsagesListResult) (result UsagesListResult, err error) { + req, err := lastResults.usagesListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cdn.AFDProfilesClient", "listResourceUsageNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListResourceUsageSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cdn.AFDProfilesClient", "listResourceUsageNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResourceUsageResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDProfilesClient", "listResourceUsageNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListResourceUsageComplete enumerates all values, automatically crossing page boundaries as required. +func (client AFDProfilesClient) ListResourceUsageComplete(ctx context.Context, resourceGroupName string, profileName string) (result UsagesListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDProfilesClient.ListResourceUsage") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListResourceUsage(ctx, resourceGroupName, profileName) + return +} diff --git a/services/cdn/mgmt/2020-09-01/cdn/cdnapi/interfaces.go b/services/cdn/mgmt/2020-09-01/cdn/cdnapi/interfaces.go new file mode 100644 index 000000000000..db7ddf57c4e5 --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/cdnapi/interfaces.go @@ -0,0 +1,296 @@ +package cdnapi + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2020-09-01/cdn" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/date" +) + +// BaseClientAPI contains the set of methods on the BaseClient type. +type BaseClientAPI interface { + CheckNameAvailability(ctx context.Context, checkNameAvailabilityInput cdn.CheckNameAvailabilityInput) (result cdn.CheckNameAvailabilityOutput, err error) + CheckNameAvailabilityWithSubscription(ctx context.Context, checkNameAvailabilityInput cdn.CheckNameAvailabilityInput) (result cdn.CheckNameAvailabilityOutput, err error) + ValidateProbe(ctx context.Context, validateProbeInput cdn.ValidateProbeInput) (result cdn.ValidateProbeOutput, err error) +} + +var _ BaseClientAPI = (*cdn.BaseClient)(nil) + +// ProfilesClientAPI contains the set of methods on the ProfilesClient type. +type ProfilesClientAPI interface { + Create(ctx context.Context, resourceGroupName string, profileName string, profile cdn.Profile) (result cdn.ProfilesCreateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, profileName string) (result cdn.ProfilesDeleteFuture, err error) + GenerateSsoURI(ctx context.Context, resourceGroupName string, profileName string) (result cdn.SsoURI, err error) + Get(ctx context.Context, resourceGroupName string, profileName string) (result cdn.Profile, err error) + List(ctx context.Context) (result cdn.ProfileListResultPage, err error) + ListComplete(ctx context.Context) (result cdn.ProfileListResultIterator, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result cdn.ProfileListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result cdn.ProfileListResultIterator, err error) + ListResourceUsage(ctx context.Context, resourceGroupName string, profileName string) (result cdn.ResourceUsageListResultPage, err error) + ListResourceUsageComplete(ctx context.Context, resourceGroupName string, profileName string) (result cdn.ResourceUsageListResultIterator, err error) + ListSupportedOptimizationTypes(ctx context.Context, resourceGroupName string, profileName string) (result cdn.SupportedOptimizationTypesListResult, err error) + Update(ctx context.Context, resourceGroupName string, profileName string, profileUpdateParameters cdn.ProfileUpdateParameters) (result cdn.ProfilesUpdateFuture, err error) +} + +var _ ProfilesClientAPI = (*cdn.ProfilesClient)(nil) + +// EndpointsClientAPI contains the set of methods on the EndpointsClient type. +type EndpointsClientAPI interface { + Create(ctx context.Context, resourceGroupName string, profileName string, endpointName string, endpoint cdn.Endpoint) (result cdn.EndpointsCreateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result cdn.EndpointsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result cdn.Endpoint, err error) + ListByProfile(ctx context.Context, resourceGroupName string, profileName string) (result cdn.EndpointListResultPage, err error) + ListByProfileComplete(ctx context.Context, resourceGroupName string, profileName string) (result cdn.EndpointListResultIterator, err error) + ListResourceUsage(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result cdn.ResourceUsageListResultPage, err error) + ListResourceUsageComplete(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result cdn.ResourceUsageListResultIterator, err error) + LoadContent(ctx context.Context, resourceGroupName string, profileName string, endpointName string, contentFilePaths cdn.LoadParameters) (result cdn.EndpointsLoadContentFuture, err error) + PurgeContent(ctx context.Context, resourceGroupName string, profileName string, endpointName string, contentFilePaths cdn.PurgeParameters) (result cdn.EndpointsPurgeContentFuture, err error) + Start(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result cdn.EndpointsStartFuture, err error) + Stop(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result cdn.EndpointsStopFuture, err error) + Update(ctx context.Context, resourceGroupName string, profileName string, endpointName string, endpointUpdateProperties cdn.EndpointUpdateParameters) (result cdn.EndpointsUpdateFuture, err error) + ValidateCustomDomain(ctx context.Context, resourceGroupName string, profileName string, endpointName string, customDomainProperties cdn.ValidateCustomDomainInput) (result cdn.ValidateCustomDomainOutput, err error) +} + +var _ EndpointsClientAPI = (*cdn.EndpointsClient)(nil) + +// OriginsClientAPI contains the set of methods on the OriginsClient type. +type OriginsClientAPI interface { + Create(ctx context.Context, resourceGroupName string, profileName string, endpointName string, originName string, origin cdn.Origin) (result cdn.OriginsCreateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, profileName string, endpointName string, originName string) (result cdn.OriginsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, profileName string, endpointName string, originName string) (result cdn.Origin, err error) + ListByEndpoint(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result cdn.OriginListResultPage, err error) + ListByEndpointComplete(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result cdn.OriginListResultIterator, err error) + Update(ctx context.Context, resourceGroupName string, profileName string, endpointName string, originName string, originUpdateProperties cdn.OriginUpdateParameters) (result cdn.OriginsUpdateFuture, err error) +} + +var _ OriginsClientAPI = (*cdn.OriginsClient)(nil) + +// OriginGroupsClientAPI contains the set of methods on the OriginGroupsClient type. +type OriginGroupsClientAPI interface { + Create(ctx context.Context, resourceGroupName string, profileName string, endpointName string, originGroupName string, originGroup cdn.OriginGroup) (result cdn.OriginGroupsCreateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, profileName string, endpointName string, originGroupName string) (result cdn.OriginGroupsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, profileName string, endpointName string, originGroupName string) (result cdn.OriginGroup, err error) + ListByEndpoint(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result cdn.OriginGroupListResultPage, err error) + ListByEndpointComplete(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result cdn.OriginGroupListResultIterator, err error) + Update(ctx context.Context, resourceGroupName string, profileName string, endpointName string, originGroupName string, originGroupUpdateProperties cdn.OriginGroupUpdateParameters) (result cdn.OriginGroupsUpdateFuture, err error) +} + +var _ OriginGroupsClientAPI = (*cdn.OriginGroupsClient)(nil) + +// CustomDomainsClientAPI contains the set of methods on the CustomDomainsClient type. +type CustomDomainsClientAPI interface { + Create(ctx context.Context, resourceGroupName string, profileName string, endpointName string, customDomainName string, customDomainProperties cdn.CustomDomainParameters) (result cdn.CustomDomainsCreateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, profileName string, endpointName string, customDomainName string) (result cdn.CustomDomainsDeleteFuture, err error) + DisableCustomHTTPS(ctx context.Context, resourceGroupName string, profileName string, endpointName string, customDomainName string) (result cdn.CustomDomain, err error) + EnableCustomHTTPS(ctx context.Context, resourceGroupName string, profileName string, endpointName string, customDomainName string, customDomainHTTPSParameters *cdn.BasicCustomDomainHTTPSParameters) (result cdn.CustomDomain, err error) + Get(ctx context.Context, resourceGroupName string, profileName string, endpointName string, customDomainName string) (result cdn.CustomDomain, err error) + ListByEndpoint(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result cdn.CustomDomainListResultPage, err error) + ListByEndpointComplete(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result cdn.CustomDomainListResultIterator, err error) +} + +var _ CustomDomainsClientAPI = (*cdn.CustomDomainsClient)(nil) + +// ResourceUsageClientAPI contains the set of methods on the ResourceUsageClient type. +type ResourceUsageClientAPI interface { + List(ctx context.Context) (result cdn.ResourceUsageListResultPage, err error) + ListComplete(ctx context.Context) (result cdn.ResourceUsageListResultIterator, err error) +} + +var _ ResourceUsageClientAPI = (*cdn.ResourceUsageClient)(nil) + +// OperationsClientAPI contains the set of methods on the OperationsClient type. +type OperationsClientAPI interface { + List(ctx context.Context) (result cdn.OperationsListResultPage, err error) + ListComplete(ctx context.Context) (result cdn.OperationsListResultIterator, err error) +} + +var _ OperationsClientAPI = (*cdn.OperationsClient)(nil) + +// EdgeNodesClientAPI contains the set of methods on the EdgeNodesClient type. +type EdgeNodesClientAPI interface { + List(ctx context.Context) (result cdn.EdgenodeResultPage, err error) + ListComplete(ctx context.Context) (result cdn.EdgenodeResultIterator, err error) +} + +var _ EdgeNodesClientAPI = (*cdn.EdgeNodesClient)(nil) + +// AFDProfilesClientAPI contains the set of methods on the AFDProfilesClient type. +type AFDProfilesClientAPI interface { + CheckHostNameAvailability(ctx context.Context, resourceGroupName string, profileName string, checkHostNameAvailabilityInput cdn.ValidateCustomDomainInput) (result cdn.ValidateCustomDomainOutput, err error) + ListResourceUsage(ctx context.Context, resourceGroupName string, profileName string) (result cdn.UsagesListResultPage, err error) + ListResourceUsageComplete(ctx context.Context, resourceGroupName string, profileName string) (result cdn.UsagesListResultIterator, err error) +} + +var _ AFDProfilesClientAPI = (*cdn.AFDProfilesClient)(nil) + +// AFDCustomDomainsClientAPI contains the set of methods on the AFDCustomDomainsClient type. +type AFDCustomDomainsClientAPI interface { + Create(ctx context.Context, resourceGroupName string, profileName string, customDomainName string, customDomain cdn.AFDDomain) (result cdn.AFDCustomDomainsCreateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, profileName string, customDomainName string) (result cdn.AFDCustomDomainsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, profileName string, customDomainName string) (result cdn.AFDDomain, err error) + ListByProfile(ctx context.Context, resourceGroupName string, profileName string) (result cdn.AFDDomainListResultPage, err error) + ListByProfileComplete(ctx context.Context, resourceGroupName string, profileName string) (result cdn.AFDDomainListResultIterator, err error) + RefreshValidationToken(ctx context.Context, resourceGroupName string, profileName string, customDomainName string) (result cdn.AFDCustomDomainsRefreshValidationTokenFuture, err error) + Update(ctx context.Context, resourceGroupName string, profileName string, customDomainName string, customDomainUpdateProperties cdn.AFDDomainUpdateParameters) (result cdn.AFDCustomDomainsUpdateFuture, err error) +} + +var _ AFDCustomDomainsClientAPI = (*cdn.AFDCustomDomainsClient)(nil) + +// AFDEndpointsClientAPI contains the set of methods on the AFDEndpointsClient type. +type AFDEndpointsClientAPI interface { + Create(ctx context.Context, resourceGroupName string, profileName string, endpointName string, endpoint cdn.AFDEndpoint) (result cdn.AFDEndpointsCreateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result cdn.AFDEndpointsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result cdn.AFDEndpoint, err error) + ListByProfile(ctx context.Context, resourceGroupName string, profileName string) (result cdn.AFDEndpointListResultPage, err error) + ListByProfileComplete(ctx context.Context, resourceGroupName string, profileName string) (result cdn.AFDEndpointListResultIterator, err error) + ListResourceUsage(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result cdn.UsagesListResultPage, err error) + ListResourceUsageComplete(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result cdn.UsagesListResultIterator, err error) + PurgeContent(ctx context.Context, resourceGroupName string, profileName string, endpointName string, contents cdn.AfdPurgeParameters) (result cdn.AFDEndpointsPurgeContentFuture, err error) + Update(ctx context.Context, resourceGroupName string, profileName string, endpointName string, endpointUpdateProperties cdn.AFDEndpointUpdateParameters) (result cdn.AFDEndpointsUpdateFuture, err error) + ValidateCustomDomain(ctx context.Context, resourceGroupName string, profileName string, endpointName string, customDomainProperties cdn.ValidateCustomDomainInput) (result cdn.ValidateCustomDomainOutput, err error) +} + +var _ AFDEndpointsClientAPI = (*cdn.AFDEndpointsClient)(nil) + +// AFDOriginGroupsClientAPI contains the set of methods on the AFDOriginGroupsClient type. +type AFDOriginGroupsClientAPI interface { + Create(ctx context.Context, resourceGroupName string, profileName string, originGroupName string, originGroup cdn.AFDOriginGroup) (result cdn.AFDOriginGroupsCreateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, profileName string, originGroupName string) (result cdn.AFDOriginGroupsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, profileName string, originGroupName string) (result cdn.AFDOriginGroup, err error) + ListByProfile(ctx context.Context, resourceGroupName string, profileName string) (result cdn.AFDOriginGroupListResultPage, err error) + ListByProfileComplete(ctx context.Context, resourceGroupName string, profileName string) (result cdn.AFDOriginGroupListResultIterator, err error) + ListResourceUsage(ctx context.Context, resourceGroupName string, profileName string, originGroupName string) (result cdn.UsagesListResultPage, err error) + ListResourceUsageComplete(ctx context.Context, resourceGroupName string, profileName string, originGroupName string) (result cdn.UsagesListResultIterator, err error) + Update(ctx context.Context, resourceGroupName string, profileName string, originGroupName string, originGroupUpdateProperties cdn.AFDOriginGroupUpdateParameters) (result cdn.AFDOriginGroupsUpdateFuture, err error) +} + +var _ AFDOriginGroupsClientAPI = (*cdn.AFDOriginGroupsClient)(nil) + +// AFDOriginsClientAPI contains the set of methods on the AFDOriginsClient type. +type AFDOriginsClientAPI interface { + Create(ctx context.Context, resourceGroupName string, profileName string, originGroupName string, originName string, origin cdn.AFDOrigin) (result cdn.AFDOriginsCreateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, profileName string, originGroupName string, originName string) (result cdn.AFDOriginsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, profileName string, originGroupName string, originName string) (result cdn.AFDOrigin, err error) + ListByOriginGroup(ctx context.Context, resourceGroupName string, profileName string, originGroupName string) (result cdn.AFDOriginListResultPage, err error) + ListByOriginGroupComplete(ctx context.Context, resourceGroupName string, profileName string, originGroupName string) (result cdn.AFDOriginListResultIterator, err error) + Update(ctx context.Context, resourceGroupName string, profileName string, originGroupName string, originName string, originUpdateProperties cdn.AFDOriginUpdateParameters) (result cdn.AFDOriginsUpdateFuture, err error) +} + +var _ AFDOriginsClientAPI = (*cdn.AFDOriginsClient)(nil) + +// RoutesClientAPI contains the set of methods on the RoutesClient type. +type RoutesClientAPI interface { + Create(ctx context.Context, resourceGroupName string, profileName string, endpointName string, routeName string, route cdn.Route) (result cdn.RoutesCreateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, profileName string, endpointName string, routeName string) (result cdn.RoutesDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, profileName string, endpointName string, routeName string) (result cdn.Route, err error) + ListByEndpoint(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result cdn.RouteListResultPage, err error) + ListByEndpointComplete(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result cdn.RouteListResultIterator, err error) + Update(ctx context.Context, resourceGroupName string, profileName string, endpointName string, routeName string, routeUpdateProperties cdn.RouteUpdateParameters) (result cdn.RoutesUpdateFuture, err error) +} + +var _ RoutesClientAPI = (*cdn.RoutesClient)(nil) + +// RuleSetsClientAPI contains the set of methods on the RuleSetsClient type. +type RuleSetsClientAPI interface { + Create(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string, ruleSet cdn.RuleSet) (result cdn.RuleSetsCreateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string) (result cdn.RuleSetsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string) (result cdn.RuleSet, err error) + ListByProfile(ctx context.Context, resourceGroupName string, profileName string) (result cdn.RuleSetListResultPage, err error) + ListByProfileComplete(ctx context.Context, resourceGroupName string, profileName string) (result cdn.RuleSetListResultIterator, err error) + ListResourceUsage(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string) (result cdn.UsagesListResultPage, err error) + ListResourceUsageComplete(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string) (result cdn.UsagesListResultIterator, err error) +} + +var _ RuleSetsClientAPI = (*cdn.RuleSetsClient)(nil) + +// RulesClientAPI contains the set of methods on the RulesClient type. +type RulesClientAPI interface { + Create(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string, ruleName string, rule cdn.Rule) (result cdn.RulesCreateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string, ruleName string) (result cdn.RulesDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string, ruleName string) (result cdn.Rule, err error) + ListByRuleSet(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string) (result cdn.RuleListResultPage, err error) + ListByRuleSetComplete(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string) (result cdn.RuleListResultIterator, err error) + Update(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string, ruleName string, ruleUpdateProperties cdn.RuleUpdateParameters) (result cdn.RulesUpdateFuture, err error) +} + +var _ RulesClientAPI = (*cdn.RulesClient)(nil) + +// SecurityPoliciesClientAPI contains the set of methods on the SecurityPoliciesClient type. +type SecurityPoliciesClientAPI interface { + Create(ctx context.Context, resourceGroupName string, profileName string, securityPolicyName string, securityPolicy cdn.SecurityPolicy) (result cdn.SecurityPoliciesCreateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, profileName string, securityPolicyName string) (result cdn.SecurityPoliciesDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, profileName string, securityPolicyName string) (result cdn.SecurityPolicy, err error) + ListByProfile(ctx context.Context, resourceGroupName string, profileName string) (result cdn.SecurityPolicyListResultPage, err error) + ListByProfileComplete(ctx context.Context, resourceGroupName string, profileName string) (result cdn.SecurityPolicyListResultIterator, err error) + Patch(ctx context.Context, resourceGroupName string, profileName string, securityPolicyName string, securityPolicyParameters cdn.SecurityPolicyWebApplicationFirewallParameters) (result cdn.SecurityPoliciesPatchFuture, err error) +} + +var _ SecurityPoliciesClientAPI = (*cdn.SecurityPoliciesClient)(nil) + +// SecretsClientAPI contains the set of methods on the SecretsClient type. +type SecretsClientAPI interface { + Create(ctx context.Context, resourceGroupName string, profileName string, secretName string, secret cdn.Secret) (result cdn.SecretsCreateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, profileName string, secretName string) (result cdn.SecretsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, profileName string, secretName string) (result cdn.Secret, err error) + ListByProfile(ctx context.Context, resourceGroupName string, profileName string) (result cdn.SecretListResultPage, err error) + ListByProfileComplete(ctx context.Context, resourceGroupName string, profileName string) (result cdn.SecretListResultIterator, err error) + Update(ctx context.Context, resourceGroupName string, profileName string, secretName string, secretProperties cdn.SecretProperties) (result cdn.SecretsUpdateFuture, err error) +} + +var _ SecretsClientAPI = (*cdn.SecretsClient)(nil) + +// ValidateClientAPI contains the set of methods on the ValidateClient type. +type ValidateClientAPI interface { + SecretMethod(ctx context.Context, validateSecretInput cdn.ValidateSecretInput) (result cdn.ValidateSecretOutput, err error) +} + +var _ ValidateClientAPI = (*cdn.ValidateClient)(nil) + +// LogAnalyticsClientAPI contains the set of methods on the LogAnalyticsClient type. +type LogAnalyticsClientAPI interface { + GetLogAnalyticsLocations(ctx context.Context, resourceGroupName string, profileName string) (result cdn.ContinentsResponse, err error) + GetLogAnalyticsMetrics(ctx context.Context, resourceGroupName string, profileName string, metrics []string, dateTimeBegin date.Time, dateTimeEnd date.Time, granularity string, groupBy []string, continents []string, countryOrRegions []string, customDomains []string, protocols []string) (result cdn.MetricsResponse, err error) + GetLogAnalyticsRankings(ctx context.Context, resourceGroupName string, profileName string, rankings []string, metrics []string, maxRanking float64, dateTimeBegin date.Time, dateTimeEnd date.Time, customDomains []string) (result cdn.RankingsResponse, err error) + GetLogAnalyticsResources(ctx context.Context, resourceGroupName string, profileName string) (result cdn.ResourcesResponse, err error) + GetWafLogAnalyticsMetrics(ctx context.Context, resourceGroupName string, profileName string, metrics []string, dateTimeBegin date.Time, dateTimeEnd date.Time, granularity string, actions []string, groupBy []string, ruleTypes []string) (result cdn.WafMetricsResponse, err error) + GetWafLogAnalyticsRankings(ctx context.Context, resourceGroupName string, profileName string, metrics []string, dateTimeBegin date.Time, dateTimeEnd date.Time, maxRanking float64, rankings []string, actions []string, ruleTypes []string) (result cdn.WafRankingsResponse, err error) +} + +var _ LogAnalyticsClientAPI = (*cdn.LogAnalyticsClient)(nil) + +// PoliciesClientAPI contains the set of methods on the PoliciesClient type. +type PoliciesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, policyName string, cdnWebApplicationFirewallPolicy cdn.WebApplicationFirewallPolicy) (result cdn.PoliciesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, policyName string) (result autorest.Response, err error) + Get(ctx context.Context, resourceGroupName string, policyName string) (result cdn.WebApplicationFirewallPolicy, err error) + List(ctx context.Context, resourceGroupName string) (result cdn.WebApplicationFirewallPolicyListPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result cdn.WebApplicationFirewallPolicyListIterator, err error) + Update(ctx context.Context, resourceGroupName string, policyName string, cdnWebApplicationFirewallPolicyPatchParameters cdn.WebApplicationFirewallPolicyPatchParameters) (result cdn.PoliciesUpdateFuture, err error) +} + +var _ PoliciesClientAPI = (*cdn.PoliciesClient)(nil) + +// ManagedRuleSetsClientAPI contains the set of methods on the ManagedRuleSetsClient type. +type ManagedRuleSetsClientAPI interface { + List(ctx context.Context) (result cdn.ManagedRuleSetDefinitionListPage, err error) + ListComplete(ctx context.Context) (result cdn.ManagedRuleSetDefinitionListIterator, err error) +} + +var _ ManagedRuleSetsClientAPI = (*cdn.ManagedRuleSetsClient)(nil) diff --git a/services/cdn/mgmt/2020-09-01/cdn/client.go b/services/cdn/mgmt/2020-09-01/cdn/client.go new file mode 100644 index 000000000000..4c8f758e157c --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/client.go @@ -0,0 +1,304 @@ +// Package cdn implements the Azure ARM Cdn service API version 2020-09-01. +// +// Cdn Management Client +package cdn + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +const ( + // DefaultBaseURI is the default URI used for the service Cdn + DefaultBaseURI = "https://management.azure.com" +) + +// BaseClient is the base client for Cdn. +type BaseClient struct { + autorest.Client + BaseURI string + SubscriptionID string + SubscriptionID1 string +} + +// New creates an instance of the BaseClient client. +func New(subscriptionID string, subscriptionID1 string) BaseClient { + return NewWithBaseURI(DefaultBaseURI, subscriptionID, subscriptionID1) +} + +// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with +// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) BaseClient { + return BaseClient{ + Client: autorest.NewClientWithUserAgent(UserAgent()), + BaseURI: baseURI, + SubscriptionID: subscriptionID, + SubscriptionID1: subscriptionID1, + } +} + +// CheckNameAvailability check the availability of a resource name. This is needed for resources where name is globally +// unique, such as a CDN endpoint. +// Parameters: +// checkNameAvailabilityInput - input to check. +func (client BaseClient) CheckNameAvailability(ctx context.Context, checkNameAvailabilityInput CheckNameAvailabilityInput) (result CheckNameAvailabilityOutput, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.CheckNameAvailability") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: checkNameAvailabilityInput, + Constraints: []validation.Constraint{{Target: "checkNameAvailabilityInput.Name", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "checkNameAvailabilityInput.Type", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.BaseClient", "CheckNameAvailability", err.Error()) + } + + req, err := client.CheckNameAvailabilityPreparer(ctx, checkNameAvailabilityInput) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.BaseClient", "CheckNameAvailability", nil, "Failure preparing request") + return + } + + resp, err := client.CheckNameAvailabilitySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.BaseClient", "CheckNameAvailability", resp, "Failure sending request") + return + } + + result, err = client.CheckNameAvailabilityResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.BaseClient", "CheckNameAvailability", resp, "Failure responding to request") + return + } + + return +} + +// CheckNameAvailabilityPreparer prepares the CheckNameAvailability request. +func (client BaseClient) CheckNameAvailabilityPreparer(ctx context.Context, checkNameAvailabilityInput CheckNameAvailabilityInput) (*http.Request, error) { + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPath("/providers/Microsoft.Cdn/checkNameAvailability"), + autorest.WithJSON(checkNameAvailabilityInput), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CheckNameAvailabilitySender sends the CheckNameAvailability request. The method will close the +// http.Response Body if it receives an error. +func (client BaseClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error) { + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always +// closes the http.Response Body. +func (client BaseClient) CheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityOutput, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// CheckNameAvailabilityWithSubscription check the availability of a resource name. This is needed for resources where +// name is globally unique, such as a CDN endpoint. +// Parameters: +// checkNameAvailabilityInput - input to check. +func (client BaseClient) CheckNameAvailabilityWithSubscription(ctx context.Context, checkNameAvailabilityInput CheckNameAvailabilityInput) (result CheckNameAvailabilityOutput, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.CheckNameAvailabilityWithSubscription") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: checkNameAvailabilityInput, + Constraints: []validation.Constraint{{Target: "checkNameAvailabilityInput.Name", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "checkNameAvailabilityInput.Type", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.BaseClient", "CheckNameAvailabilityWithSubscription", err.Error()) + } + + req, err := client.CheckNameAvailabilityWithSubscriptionPreparer(ctx, checkNameAvailabilityInput) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.BaseClient", "CheckNameAvailabilityWithSubscription", nil, "Failure preparing request") + return + } + + resp, err := client.CheckNameAvailabilityWithSubscriptionSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.BaseClient", "CheckNameAvailabilityWithSubscription", resp, "Failure sending request") + return + } + + result, err = client.CheckNameAvailabilityWithSubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.BaseClient", "CheckNameAvailabilityWithSubscription", resp, "Failure responding to request") + return + } + + return +} + +// CheckNameAvailabilityWithSubscriptionPreparer prepares the CheckNameAvailabilityWithSubscription request. +func (client BaseClient) CheckNameAvailabilityWithSubscriptionPreparer(ctx context.Context, checkNameAvailabilityInput CheckNameAvailabilityInput) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/checkNameAvailability", pathParameters), + autorest.WithJSON(checkNameAvailabilityInput), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CheckNameAvailabilityWithSubscriptionSender sends the CheckNameAvailabilityWithSubscription request. The method will close the +// http.Response Body if it receives an error. +func (client BaseClient) CheckNameAvailabilityWithSubscriptionSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CheckNameAvailabilityWithSubscriptionResponder handles the response to the CheckNameAvailabilityWithSubscription request. The method always +// closes the http.Response Body. +func (client BaseClient) CheckNameAvailabilityWithSubscriptionResponder(resp *http.Response) (result CheckNameAvailabilityOutput, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ValidateProbe check if the probe path is a valid path and the file can be accessed. Probe path is the path to a file +// hosted on the origin server to help accelerate the delivery of dynamic content via the CDN endpoint. This path is +// relative to the origin path specified in the endpoint configuration. +// Parameters: +// validateProbeInput - input to check. +func (client BaseClient) ValidateProbe(ctx context.Context, validateProbeInput ValidateProbeInput) (result ValidateProbeOutput, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.ValidateProbe") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: validateProbeInput, + Constraints: []validation.Constraint{{Target: "validateProbeInput.ProbeURL", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.BaseClient", "ValidateProbe", err.Error()) + } + + req, err := client.ValidateProbePreparer(ctx, validateProbeInput) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.BaseClient", "ValidateProbe", nil, "Failure preparing request") + return + } + + resp, err := client.ValidateProbeSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.BaseClient", "ValidateProbe", resp, "Failure sending request") + return + } + + result, err = client.ValidateProbeResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.BaseClient", "ValidateProbe", resp, "Failure responding to request") + return + } + + return +} + +// ValidateProbePreparer prepares the ValidateProbe request. +func (client BaseClient) ValidateProbePreparer(ctx context.Context, validateProbeInput ValidateProbeInput) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/validateProbe", pathParameters), + autorest.WithJSON(validateProbeInput), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ValidateProbeSender sends the ValidateProbe request. The method will close the +// http.Response Body if it receives an error. +func (client BaseClient) ValidateProbeSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ValidateProbeResponder handles the response to the ValidateProbe request. The method always +// closes the http.Response Body. +func (client BaseClient) ValidateProbeResponder(resp *http.Response) (result ValidateProbeOutput, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/cdn/mgmt/2020-09-01/cdn/customdomains.go b/services/cdn/mgmt/2020-09-01/cdn/customdomains.go new file mode 100644 index 000000000000..fbe15cdb2168 --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/customdomains.go @@ -0,0 +1,623 @@ +package cdn + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// CustomDomainsClient is the cdn Management Client +type CustomDomainsClient struct { + BaseClient +} + +// NewCustomDomainsClient creates an instance of the CustomDomainsClient client. +func NewCustomDomainsClient(subscriptionID string, subscriptionID1 string) CustomDomainsClient { + return NewCustomDomainsClientWithBaseURI(DefaultBaseURI, subscriptionID, subscriptionID1) +} + +// NewCustomDomainsClientWithBaseURI creates an instance of the CustomDomainsClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewCustomDomainsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) CustomDomainsClient { + return CustomDomainsClient{NewWithBaseURI(baseURI, subscriptionID, subscriptionID1)} +} + +// Create creates a new custom domain within an endpoint. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +// customDomainName - name of the custom domain within an endpoint. +// customDomainProperties - properties required to create a new custom domain. +func (client CustomDomainsClient) Create(ctx context.Context, resourceGroupName string, profileName string, endpointName string, customDomainName string, customDomainProperties CustomDomainParameters) (result CustomDomainsCreateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CustomDomainsClient.Create") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: customDomainProperties, + Constraints: []validation.Constraint{{Target: "customDomainProperties.CustomDomainPropertiesParameters", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "customDomainProperties.CustomDomainPropertiesParameters.HostName", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { + return result, validation.NewError("cdn.CustomDomainsClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, profileName, endpointName, customDomainName, customDomainProperties) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "Create", nil, "Failure preparing request") + return + } + + result, err = client.CreateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "Create", result.Response(), "Failure sending request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client CustomDomainsClient) CreatePreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, customDomainName string, customDomainProperties CustomDomainParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "customDomainName": autorest.Encode("path", customDomainName), + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}", pathParameters), + autorest.WithJSON(customDomainProperties), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client CustomDomainsClient) CreateSender(req *http.Request) (future CustomDomainsCreateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client CustomDomainsClient) CreateResponder(resp *http.Response) (result CustomDomain, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes an existing custom domain within an endpoint. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +// customDomainName - name of the custom domain within an endpoint. +func (client CustomDomainsClient) Delete(ctx context.Context, resourceGroupName string, profileName string, endpointName string, customDomainName string) (result CustomDomainsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CustomDomainsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.CustomDomainsClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, profileName, endpointName, customDomainName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client CustomDomainsClient) DeletePreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, customDomainName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "customDomainName": autorest.Encode("path", customDomainName), + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client CustomDomainsClient) DeleteSender(req *http.Request) (future CustomDomainsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client CustomDomainsClient) DeleteResponder(resp *http.Response) (result CustomDomain, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// DisableCustomHTTPS disable https delivery of the custom domain. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +// customDomainName - name of the custom domain within an endpoint. +func (client CustomDomainsClient) DisableCustomHTTPS(ctx context.Context, resourceGroupName string, profileName string, endpointName string, customDomainName string) (result CustomDomain, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CustomDomainsClient.DisableCustomHTTPS") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.CustomDomainsClient", "DisableCustomHTTPS", err.Error()) + } + + req, err := client.DisableCustomHTTPSPreparer(ctx, resourceGroupName, profileName, endpointName, customDomainName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "DisableCustomHTTPS", nil, "Failure preparing request") + return + } + + resp, err := client.DisableCustomHTTPSSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "DisableCustomHTTPS", resp, "Failure sending request") + return + } + + result, err = client.DisableCustomHTTPSResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "DisableCustomHTTPS", resp, "Failure responding to request") + return + } + + return +} + +// DisableCustomHTTPSPreparer prepares the DisableCustomHTTPS request. +func (client CustomDomainsClient) DisableCustomHTTPSPreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, customDomainName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "customDomainName": autorest.Encode("path", customDomainName), + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}/disableCustomHttps", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DisableCustomHTTPSSender sends the DisableCustomHTTPS request. The method will close the +// http.Response Body if it receives an error. +func (client CustomDomainsClient) DisableCustomHTTPSSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// DisableCustomHTTPSResponder handles the response to the DisableCustomHTTPS request. The method always +// closes the http.Response Body. +func (client CustomDomainsClient) DisableCustomHTTPSResponder(resp *http.Response) (result CustomDomain, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// EnableCustomHTTPS enable https delivery of the custom domain. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +// customDomainName - name of the custom domain within an endpoint. +// customDomainHTTPSParameters - the configuration specifying how to enable HTTPS for the custom domain - using +// CDN managed certificate or user's own certificate. If not specified, enabling ssl uses CDN managed +// certificate by default. +func (client CustomDomainsClient) EnableCustomHTTPS(ctx context.Context, resourceGroupName string, profileName string, endpointName string, customDomainName string, customDomainHTTPSParameters *BasicCustomDomainHTTPSParameters) (result CustomDomain, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CustomDomainsClient.EnableCustomHTTPS") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.CustomDomainsClient", "EnableCustomHTTPS", err.Error()) + } + + req, err := client.EnableCustomHTTPSPreparer(ctx, resourceGroupName, profileName, endpointName, customDomainName, customDomainHTTPSParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "EnableCustomHTTPS", nil, "Failure preparing request") + return + } + + resp, err := client.EnableCustomHTTPSSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "EnableCustomHTTPS", resp, "Failure sending request") + return + } + + result, err = client.EnableCustomHTTPSResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "EnableCustomHTTPS", resp, "Failure responding to request") + return + } + + return +} + +// EnableCustomHTTPSPreparer prepares the EnableCustomHTTPS request. +func (client CustomDomainsClient) EnableCustomHTTPSPreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, customDomainName string, customDomainHTTPSParameters *BasicCustomDomainHTTPSParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "customDomainName": autorest.Encode("path", customDomainName), + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}/enableCustomHttps", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if customDomainHTTPSParameters != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(customDomainHTTPSParameters)) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// EnableCustomHTTPSSender sends the EnableCustomHTTPS request. The method will close the +// http.Response Body if it receives an error. +func (client CustomDomainsClient) EnableCustomHTTPSSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// EnableCustomHTTPSResponder handles the response to the EnableCustomHTTPS request. The method always +// closes the http.Response Body. +func (client CustomDomainsClient) EnableCustomHTTPSResponder(resp *http.Response) (result CustomDomain, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Get gets an existing custom domain within an endpoint. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +// customDomainName - name of the custom domain within an endpoint. +func (client CustomDomainsClient) Get(ctx context.Context, resourceGroupName string, profileName string, endpointName string, customDomainName string) (result CustomDomain, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CustomDomainsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.CustomDomainsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, profileName, endpointName, customDomainName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client CustomDomainsClient) GetPreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, customDomainName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "customDomainName": autorest.Encode("path", customDomainName), + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client CustomDomainsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client CustomDomainsClient) GetResponder(resp *http.Response) (result CustomDomain, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByEndpoint lists all of the existing custom domains within an endpoint. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +func (client CustomDomainsClient) ListByEndpoint(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result CustomDomainListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CustomDomainsClient.ListByEndpoint") + defer func() { + sc := -1 + if result.cdlr.Response.Response != nil { + sc = result.cdlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.CustomDomainsClient", "ListByEndpoint", err.Error()) + } + + result.fn = client.listByEndpointNextResults + req, err := client.ListByEndpointPreparer(ctx, resourceGroupName, profileName, endpointName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "ListByEndpoint", nil, "Failure preparing request") + return + } + + resp, err := client.ListByEndpointSender(req) + if err != nil { + result.cdlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "ListByEndpoint", resp, "Failure sending request") + return + } + + result.cdlr, err = client.ListByEndpointResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "ListByEndpoint", resp, "Failure responding to request") + return + } + if result.cdlr.hasNextLink() && result.cdlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByEndpointPreparer prepares the ListByEndpoint request. +func (client CustomDomainsClient) ListByEndpointPreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByEndpointSender sends the ListByEndpoint request. The method will close the +// http.Response Body if it receives an error. +func (client CustomDomainsClient) ListByEndpointSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByEndpointResponder handles the response to the ListByEndpoint request. The method always +// closes the http.Response Body. +func (client CustomDomainsClient) ListByEndpointResponder(resp *http.Response) (result CustomDomainListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByEndpointNextResults retrieves the next set of results, if any. +func (client CustomDomainsClient) listByEndpointNextResults(ctx context.Context, lastResults CustomDomainListResult) (result CustomDomainListResult, err error) { + req, err := lastResults.customDomainListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "listByEndpointNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByEndpointSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "listByEndpointNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByEndpointResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "listByEndpointNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByEndpointComplete enumerates all values, automatically crossing page boundaries as required. +func (client CustomDomainsClient) ListByEndpointComplete(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result CustomDomainListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CustomDomainsClient.ListByEndpoint") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByEndpoint(ctx, resourceGroupName, profileName, endpointName) + return +} diff --git a/services/cdn/mgmt/2020-09-01/cdn/edgenodes.go b/services/cdn/mgmt/2020-09-01/cdn/edgenodes.go new file mode 100644 index 000000000000..f7e23393ec39 --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/edgenodes.go @@ -0,0 +1,151 @@ +package cdn + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// EdgeNodesClient is the cdn Management Client +type EdgeNodesClient struct { + BaseClient +} + +// NewEdgeNodesClient creates an instance of the EdgeNodesClient client. +func NewEdgeNodesClient(subscriptionID string, subscriptionID1 string) EdgeNodesClient { + return NewEdgeNodesClientWithBaseURI(DefaultBaseURI, subscriptionID, subscriptionID1) +} + +// NewEdgeNodesClientWithBaseURI creates an instance of the EdgeNodesClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewEdgeNodesClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) EdgeNodesClient { + return EdgeNodesClient{NewWithBaseURI(baseURI, subscriptionID, subscriptionID1)} +} + +// List edgenodes are the global Point of Presence (POP) locations used to deliver CDN content to end users. +func (client EdgeNodesClient) List(ctx context.Context) (result EdgenodeResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EdgeNodesClient.List") + defer func() { + sc := -1 + if result.er.Response.Response != nil { + sc = result.er.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EdgeNodesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.er.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.EdgeNodesClient", "List", resp, "Failure sending request") + return + } + + result.er, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EdgeNodesClient", "List", resp, "Failure responding to request") + return + } + if result.er.hasNextLink() && result.er.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client EdgeNodesClient) ListPreparer(ctx context.Context) (*http.Request, error) { + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPath("/providers/Microsoft.Cdn/edgenodes"), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client EdgeNodesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client EdgeNodesClient) ListResponder(resp *http.Response) (result EdgenodeResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client EdgeNodesClient) listNextResults(ctx context.Context, lastResults EdgenodeResult) (result EdgenodeResult, err error) { + req, err := lastResults.edgenodeResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cdn.EdgeNodesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cdn.EdgeNodesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EdgeNodesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client EdgeNodesClient) ListComplete(ctx context.Context) (result EdgenodeResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EdgeNodesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} diff --git a/services/cdn/mgmt/2020-09-01/cdn/endpoints.go b/services/cdn/mgmt/2020-09-01/cdn/endpoints.go new file mode 100644 index 000000000000..acd00716582c --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/endpoints.go @@ -0,0 +1,1094 @@ +package cdn + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// EndpointsClient is the cdn Management Client +type EndpointsClient struct { + BaseClient +} + +// NewEndpointsClient creates an instance of the EndpointsClient client. +func NewEndpointsClient(subscriptionID string, subscriptionID1 string) EndpointsClient { + return NewEndpointsClientWithBaseURI(DefaultBaseURI, subscriptionID, subscriptionID1) +} + +// NewEndpointsClientWithBaseURI creates an instance of the EndpointsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewEndpointsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) EndpointsClient { + return EndpointsClient{NewWithBaseURI(baseURI, subscriptionID, subscriptionID1)} +} + +// Create creates a new CDN endpoint with the specified endpoint name under the specified subscription, resource group +// and profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +// endpoint - endpoint properties +func (client EndpointsClient) Create(ctx context.Context, resourceGroupName string, profileName string, endpointName string, endpoint Endpoint) (result EndpointsCreateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EndpointsClient.Create") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: endpoint, + Constraints: []validation.Constraint{{Target: "endpoint.EndpointProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "endpoint.EndpointProperties.Origins", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { + return result, validation.NewError("cdn.EndpointsClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, profileName, endpointName, endpoint) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "Create", nil, "Failure preparing request") + return + } + + result, err = client.CreateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "Create", result.Response(), "Failure sending request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client EndpointsClient) CreatePreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, endpoint Endpoint) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}", pathParameters), + autorest.WithJSON(endpoint), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client EndpointsClient) CreateSender(req *http.Request) (future EndpointsCreateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client EndpointsClient) CreateResponder(resp *http.Response) (result Endpoint, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes an existing CDN endpoint with the specified endpoint name under the specified subscription, resource +// group and profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +func (client EndpointsClient) Delete(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result EndpointsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EndpointsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.EndpointsClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, profileName, endpointName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client EndpointsClient) DeletePreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client EndpointsClient) DeleteSender(req *http.Request) (future EndpointsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client EndpointsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group +// and profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +func (client EndpointsClient) Get(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result Endpoint, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EndpointsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.EndpointsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, profileName, endpointName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client EndpointsClient) GetPreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client EndpointsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client EndpointsClient) GetResponder(resp *http.Response) (result Endpoint, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByProfile lists existing CDN endpoints. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +func (client EndpointsClient) ListByProfile(ctx context.Context, resourceGroupName string, profileName string) (result EndpointListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EndpointsClient.ListByProfile") + defer func() { + sc := -1 + if result.elr.Response.Response != nil { + sc = result.elr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.EndpointsClient", "ListByProfile", err.Error()) + } + + result.fn = client.listByProfileNextResults + req, err := client.ListByProfilePreparer(ctx, resourceGroupName, profileName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ListByProfile", nil, "Failure preparing request") + return + } + + resp, err := client.ListByProfileSender(req) + if err != nil { + result.elr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ListByProfile", resp, "Failure sending request") + return + } + + result.elr, err = client.ListByProfileResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ListByProfile", resp, "Failure responding to request") + return + } + if result.elr.hasNextLink() && result.elr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByProfilePreparer prepares the ListByProfile request. +func (client EndpointsClient) ListByProfilePreparer(ctx context.Context, resourceGroupName string, profileName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByProfileSender sends the ListByProfile request. The method will close the +// http.Response Body if it receives an error. +func (client EndpointsClient) ListByProfileSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByProfileResponder handles the response to the ListByProfile request. The method always +// closes the http.Response Body. +func (client EndpointsClient) ListByProfileResponder(resp *http.Response) (result EndpointListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByProfileNextResults retrieves the next set of results, if any. +func (client EndpointsClient) listByProfileNextResults(ctx context.Context, lastResults EndpointListResult) (result EndpointListResult, err error) { + req, err := lastResults.endpointListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cdn.EndpointsClient", "listByProfileNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByProfileSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cdn.EndpointsClient", "listByProfileNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByProfileResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "listByProfileNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByProfileComplete enumerates all values, automatically crossing page boundaries as required. +func (client EndpointsClient) ListByProfileComplete(ctx context.Context, resourceGroupName string, profileName string) (result EndpointListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EndpointsClient.ListByProfile") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByProfile(ctx, resourceGroupName, profileName) + return +} + +// ListResourceUsage checks the quota and usage of geo filters and custom domains under the given endpoint. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +func (client EndpointsClient) ListResourceUsage(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result ResourceUsageListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EndpointsClient.ListResourceUsage") + defer func() { + sc := -1 + if result.rulr.Response.Response != nil { + sc = result.rulr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.EndpointsClient", "ListResourceUsage", err.Error()) + } + + result.fn = client.listResourceUsageNextResults + req, err := client.ListResourceUsagePreparer(ctx, resourceGroupName, profileName, endpointName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ListResourceUsage", nil, "Failure preparing request") + return + } + + resp, err := client.ListResourceUsageSender(req) + if err != nil { + result.rulr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ListResourceUsage", resp, "Failure sending request") + return + } + + result.rulr, err = client.ListResourceUsageResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ListResourceUsage", resp, "Failure responding to request") + return + } + if result.rulr.hasNextLink() && result.rulr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListResourceUsagePreparer prepares the ListResourceUsage request. +func (client EndpointsClient) ListResourceUsagePreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/checkResourceUsage", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListResourceUsageSender sends the ListResourceUsage request. The method will close the +// http.Response Body if it receives an error. +func (client EndpointsClient) ListResourceUsageSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResourceUsageResponder handles the response to the ListResourceUsage request. The method always +// closes the http.Response Body. +func (client EndpointsClient) ListResourceUsageResponder(resp *http.Response) (result ResourceUsageListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listResourceUsageNextResults retrieves the next set of results, if any. +func (client EndpointsClient) listResourceUsageNextResults(ctx context.Context, lastResults ResourceUsageListResult) (result ResourceUsageListResult, err error) { + req, err := lastResults.resourceUsageListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cdn.EndpointsClient", "listResourceUsageNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListResourceUsageSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cdn.EndpointsClient", "listResourceUsageNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResourceUsageResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "listResourceUsageNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListResourceUsageComplete enumerates all values, automatically crossing page boundaries as required. +func (client EndpointsClient) ListResourceUsageComplete(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result ResourceUsageListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EndpointsClient.ListResourceUsage") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListResourceUsage(ctx, resourceGroupName, profileName, endpointName) + return +} + +// LoadContent pre-loads a content to CDN. Available for Verizon Profiles. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +// contentFilePaths - the path to the content to be loaded. Path should be a full URL, e.g. +// ‘/pictures/city.png' which loads a single file +func (client EndpointsClient) LoadContent(ctx context.Context, resourceGroupName string, profileName string, endpointName string, contentFilePaths LoadParameters) (result EndpointsLoadContentFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EndpointsClient.LoadContent") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: contentFilePaths, + Constraints: []validation.Constraint{{Target: "contentFilePaths.ContentPaths", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.EndpointsClient", "LoadContent", err.Error()) + } + + req, err := client.LoadContentPreparer(ctx, resourceGroupName, profileName, endpointName, contentFilePaths) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "LoadContent", nil, "Failure preparing request") + return + } + + result, err = client.LoadContentSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "LoadContent", result.Response(), "Failure sending request") + return + } + + return +} + +// LoadContentPreparer prepares the LoadContent request. +func (client EndpointsClient) LoadContentPreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, contentFilePaths LoadParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/load", pathParameters), + autorest.WithJSON(contentFilePaths), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// LoadContentSender sends the LoadContent request. The method will close the +// http.Response Body if it receives an error. +func (client EndpointsClient) LoadContentSender(req *http.Request) (future EndpointsLoadContentFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// LoadContentResponder handles the response to the LoadContent request. The method always +// closes the http.Response Body. +func (client EndpointsClient) LoadContentResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// PurgeContent removes a content from CDN. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +// contentFilePaths - the path to the content to be purged. Path can be a full URL, e.g. '/pictures/city.png' +// which removes a single file, or a directory with a wildcard, e.g. '/pictures/*' which removes all folders +// and files in the directory. +func (client EndpointsClient) PurgeContent(ctx context.Context, resourceGroupName string, profileName string, endpointName string, contentFilePaths PurgeParameters) (result EndpointsPurgeContentFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EndpointsClient.PurgeContent") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: contentFilePaths, + Constraints: []validation.Constraint{{Target: "contentFilePaths.ContentPaths", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.EndpointsClient", "PurgeContent", err.Error()) + } + + req, err := client.PurgeContentPreparer(ctx, resourceGroupName, profileName, endpointName, contentFilePaths) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "PurgeContent", nil, "Failure preparing request") + return + } + + result, err = client.PurgeContentSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "PurgeContent", result.Response(), "Failure sending request") + return + } + + return +} + +// PurgeContentPreparer prepares the PurgeContent request. +func (client EndpointsClient) PurgeContentPreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, contentFilePaths PurgeParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/purge", pathParameters), + autorest.WithJSON(contentFilePaths), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// PurgeContentSender sends the PurgeContent request. The method will close the +// http.Response Body if it receives an error. +func (client EndpointsClient) PurgeContentSender(req *http.Request) (future EndpointsPurgeContentFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// PurgeContentResponder handles the response to the PurgeContent request. The method always +// closes the http.Response Body. +func (client EndpointsClient) PurgeContentResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// Start starts an existing CDN endpoint that is on a stopped state. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +func (client EndpointsClient) Start(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result EndpointsStartFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EndpointsClient.Start") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.EndpointsClient", "Start", err.Error()) + } + + req, err := client.StartPreparer(ctx, resourceGroupName, profileName, endpointName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "Start", nil, "Failure preparing request") + return + } + + result, err = client.StartSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "Start", result.Response(), "Failure sending request") + return + } + + return +} + +// StartPreparer prepares the Start request. +func (client EndpointsClient) StartPreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/start", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// StartSender sends the Start request. The method will close the +// http.Response Body if it receives an error. +func (client EndpointsClient) StartSender(req *http.Request) (future EndpointsStartFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// StartResponder handles the response to the Start request. The method always +// closes the http.Response Body. +func (client EndpointsClient) StartResponder(resp *http.Response) (result Endpoint, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Stop stops an existing running CDN endpoint. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +func (client EndpointsClient) Stop(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result EndpointsStopFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EndpointsClient.Stop") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.EndpointsClient", "Stop", err.Error()) + } + + req, err := client.StopPreparer(ctx, resourceGroupName, profileName, endpointName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "Stop", nil, "Failure preparing request") + return + } + + result, err = client.StopSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "Stop", result.Response(), "Failure sending request") + return + } + + return +} + +// StopPreparer prepares the Stop request. +func (client EndpointsClient) StopPreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/stop", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// StopSender sends the Stop request. The method will close the +// http.Response Body if it receives an error. +func (client EndpointsClient) StopSender(req *http.Request) (future EndpointsStopFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// StopResponder handles the response to the Stop request. The method always +// closes the http.Response Body. +func (client EndpointsClient) StopResponder(resp *http.Response) (result Endpoint, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Update updates an existing CDN endpoint with the specified endpoint name under the specified subscription, resource +// group and profile. Only tags can be updated after creating an endpoint. To update origins, use the Update Origin +// operation. To update origin groups, use the Update Origin group operation. To update custom domains, use the Update +// Custom Domain operation. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +// endpointUpdateProperties - endpoint update properties +func (client EndpointsClient) Update(ctx context.Context, resourceGroupName string, profileName string, endpointName string, endpointUpdateProperties EndpointUpdateParameters) (result EndpointsUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EndpointsClient.Update") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.EndpointsClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, profileName, endpointName, endpointUpdateProperties) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "Update", nil, "Failure preparing request") + return + } + + result, err = client.UpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "Update", result.Response(), "Failure sending request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client EndpointsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, endpointUpdateProperties EndpointUpdateParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}", pathParameters), + autorest.WithJSON(endpointUpdateProperties), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client EndpointsClient) UpdateSender(req *http.Request) (future EndpointsUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client EndpointsClient) UpdateResponder(resp *http.Response) (result Endpoint, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ValidateCustomDomain validates the custom domain mapping to ensure it maps to the correct CDN endpoint in DNS. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +// customDomainProperties - custom domain to be validated. +func (client EndpointsClient) ValidateCustomDomain(ctx context.Context, resourceGroupName string, profileName string, endpointName string, customDomainProperties ValidateCustomDomainInput) (result ValidateCustomDomainOutput, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EndpointsClient.ValidateCustomDomain") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: customDomainProperties, + Constraints: []validation.Constraint{{Target: "customDomainProperties.HostName", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.EndpointsClient", "ValidateCustomDomain", err.Error()) + } + + req, err := client.ValidateCustomDomainPreparer(ctx, resourceGroupName, profileName, endpointName, customDomainProperties) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ValidateCustomDomain", nil, "Failure preparing request") + return + } + + resp, err := client.ValidateCustomDomainSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ValidateCustomDomain", resp, "Failure sending request") + return + } + + result, err = client.ValidateCustomDomainResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsClient", "ValidateCustomDomain", resp, "Failure responding to request") + return + } + + return +} + +// ValidateCustomDomainPreparer prepares the ValidateCustomDomain request. +func (client EndpointsClient) ValidateCustomDomainPreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, customDomainProperties ValidateCustomDomainInput) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/validateCustomDomain", pathParameters), + autorest.WithJSON(customDomainProperties), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ValidateCustomDomainSender sends the ValidateCustomDomain request. The method will close the +// http.Response Body if it receives an error. +func (client EndpointsClient) ValidateCustomDomainSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ValidateCustomDomainResponder handles the response to the ValidateCustomDomain request. The method always +// closes the http.Response Body. +func (client EndpointsClient) ValidateCustomDomainResponder(resp *http.Response) (result ValidateCustomDomainOutput, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/cdn/mgmt/2020-09-01/cdn/enums.go b/services/cdn/mgmt/2020-09-01/cdn/enums.go new file mode 100644 index 000000000000..d230bf4184b9 --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/enums.go @@ -0,0 +1,1486 @@ +package cdn + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ActionType enumerates the values for action type. +type ActionType string + +const ( + // Allow ... + Allow ActionType = "Allow" + // Block ... + Block ActionType = "Block" + // Log ... + Log ActionType = "Log" + // Redirect ... + Redirect ActionType = "Redirect" +) + +// PossibleActionTypeValues returns an array of possible values for the ActionType const type. +func PossibleActionTypeValues() []ActionType { + return []ActionType{Allow, Block, Log, Redirect} +} + +// AfdCertificateType enumerates the values for afd certificate type. +type AfdCertificateType string + +const ( + // AfdCertificateTypeCustomerCertificate ... + AfdCertificateTypeCustomerCertificate AfdCertificateType = "CustomerCertificate" + // AfdCertificateTypeManagedCertificate ... + AfdCertificateTypeManagedCertificate AfdCertificateType = "ManagedCertificate" +) + +// PossibleAfdCertificateTypeValues returns an array of possible values for the AfdCertificateType const type. +func PossibleAfdCertificateTypeValues() []AfdCertificateType { + return []AfdCertificateType{AfdCertificateTypeCustomerCertificate, AfdCertificateTypeManagedCertificate} +} + +// AFDEndpointProtocols enumerates the values for afd endpoint protocols. +type AFDEndpointProtocols string + +const ( + // HTTP ... + HTTP AFDEndpointProtocols = "Http" + // HTTPS ... + HTTPS AFDEndpointProtocols = "Https" +) + +// PossibleAFDEndpointProtocolsValues returns an array of possible values for the AFDEndpointProtocols const type. +func PossibleAFDEndpointProtocolsValues() []AFDEndpointProtocols { + return []AFDEndpointProtocols{HTTP, HTTPS} +} + +// AfdMinimumTLSVersion enumerates the values for afd minimum tls version. +type AfdMinimumTLSVersion string + +const ( + // TLS10 ... + TLS10 AfdMinimumTLSVersion = "TLS10" + // TLS12 ... + TLS12 AfdMinimumTLSVersion = "TLS12" +) + +// PossibleAfdMinimumTLSVersionValues returns an array of possible values for the AfdMinimumTLSVersion const type. +func PossibleAfdMinimumTLSVersionValues() []AfdMinimumTLSVersion { + return []AfdMinimumTLSVersion{TLS10, TLS12} +} + +// AfdProvisioningState enumerates the values for afd provisioning state. +type AfdProvisioningState string + +const ( + // Creating ... + Creating AfdProvisioningState = "Creating" + // Deleting ... + Deleting AfdProvisioningState = "Deleting" + // Failed ... + Failed AfdProvisioningState = "Failed" + // Succeeded ... + Succeeded AfdProvisioningState = "Succeeded" + // Updating ... + Updating AfdProvisioningState = "Updating" +) + +// PossibleAfdProvisioningStateValues returns an array of possible values for the AfdProvisioningState const type. +func PossibleAfdProvisioningStateValues() []AfdProvisioningState { + return []AfdProvisioningState{Creating, Deleting, Failed, Succeeded, Updating} +} + +// Algorithm enumerates the values for algorithm. +type Algorithm string + +const ( + // SHA256 ... + SHA256 Algorithm = "SHA256" +) + +// PossibleAlgorithmValues returns an array of possible values for the Algorithm const type. +func PossibleAlgorithmValues() []Algorithm { + return []Algorithm{SHA256} +} + +// CacheBehavior enumerates the values for cache behavior. +type CacheBehavior string + +const ( + // BypassCache ... + BypassCache CacheBehavior = "BypassCache" + // Override ... + Override CacheBehavior = "Override" + // SetIfMissing ... + SetIfMissing CacheBehavior = "SetIfMissing" +) + +// PossibleCacheBehaviorValues returns an array of possible values for the CacheBehavior const type. +func PossibleCacheBehaviorValues() []CacheBehavior { + return []CacheBehavior{BypassCache, Override, SetIfMissing} +} + +// CertificateSource enumerates the values for certificate source. +type CertificateSource string + +const ( + // CertificateSourceAzureKeyVault ... + CertificateSourceAzureKeyVault CertificateSource = "AzureKeyVault" + // CertificateSourceCdn ... + CertificateSourceCdn CertificateSource = "Cdn" + // CertificateSourceCustomDomainHTTPSParameters ... + CertificateSourceCustomDomainHTTPSParameters CertificateSource = "CustomDomainHttpsParameters" +) + +// PossibleCertificateSourceValues returns an array of possible values for the CertificateSource const type. +func PossibleCertificateSourceValues() []CertificateSource { + return []CertificateSource{CertificateSourceAzureKeyVault, CertificateSourceCdn, CertificateSourceCustomDomainHTTPSParameters} +} + +// CertificateType enumerates the values for certificate type. +type CertificateType string + +const ( + // Dedicated ... + Dedicated CertificateType = "Dedicated" + // Shared ... + Shared CertificateType = "Shared" +) + +// PossibleCertificateTypeValues returns an array of possible values for the CertificateType const type. +func PossibleCertificateTypeValues() []CertificateType { + return []CertificateType{Dedicated, Shared} +} + +// CookiesOperator enumerates the values for cookies operator. +type CookiesOperator string + +const ( + // Any ... + Any CookiesOperator = "Any" + // BeginsWith ... + BeginsWith CookiesOperator = "BeginsWith" + // Contains ... + Contains CookiesOperator = "Contains" + // EndsWith ... + EndsWith CookiesOperator = "EndsWith" + // Equal ... + Equal CookiesOperator = "Equal" + // GreaterThan ... + GreaterThan CookiesOperator = "GreaterThan" + // GreaterThanOrEqual ... + GreaterThanOrEqual CookiesOperator = "GreaterThanOrEqual" + // LessThan ... + LessThan CookiesOperator = "LessThan" + // LessThanOrEqual ... + LessThanOrEqual CookiesOperator = "LessThanOrEqual" + // RegEx ... + RegEx CookiesOperator = "RegEx" +) + +// PossibleCookiesOperatorValues returns an array of possible values for the CookiesOperator const type. +func PossibleCookiesOperatorValues() []CookiesOperator { + return []CookiesOperator{Any, BeginsWith, Contains, EndsWith, Equal, GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual, RegEx} +} + +// CustomDomainResourceState enumerates the values for custom domain resource state. +type CustomDomainResourceState string + +const ( + // CustomDomainResourceStateActive ... + CustomDomainResourceStateActive CustomDomainResourceState = "Active" + // CustomDomainResourceStateCreating ... + CustomDomainResourceStateCreating CustomDomainResourceState = "Creating" + // CustomDomainResourceStateDeleting ... + CustomDomainResourceStateDeleting CustomDomainResourceState = "Deleting" +) + +// PossibleCustomDomainResourceStateValues returns an array of possible values for the CustomDomainResourceState const type. +func PossibleCustomDomainResourceStateValues() []CustomDomainResourceState { + return []CustomDomainResourceState{CustomDomainResourceStateActive, CustomDomainResourceStateCreating, CustomDomainResourceStateDeleting} +} + +// CustomHTTPSProvisioningState enumerates the values for custom https provisioning state. +type CustomHTTPSProvisioningState string + +const ( + // CustomHTTPSProvisioningStateDisabled ... + CustomHTTPSProvisioningStateDisabled CustomHTTPSProvisioningState = "Disabled" + // CustomHTTPSProvisioningStateDisabling ... + CustomHTTPSProvisioningStateDisabling CustomHTTPSProvisioningState = "Disabling" + // CustomHTTPSProvisioningStateEnabled ... + CustomHTTPSProvisioningStateEnabled CustomHTTPSProvisioningState = "Enabled" + // CustomHTTPSProvisioningStateEnabling ... + CustomHTTPSProvisioningStateEnabling CustomHTTPSProvisioningState = "Enabling" + // CustomHTTPSProvisioningStateFailed ... + CustomHTTPSProvisioningStateFailed CustomHTTPSProvisioningState = "Failed" +) + +// PossibleCustomHTTPSProvisioningStateValues returns an array of possible values for the CustomHTTPSProvisioningState const type. +func PossibleCustomHTTPSProvisioningStateValues() []CustomHTTPSProvisioningState { + return []CustomHTTPSProvisioningState{CustomHTTPSProvisioningStateDisabled, CustomHTTPSProvisioningStateDisabling, CustomHTTPSProvisioningStateEnabled, CustomHTTPSProvisioningStateEnabling, CustomHTTPSProvisioningStateFailed} +} + +// CustomHTTPSProvisioningSubstate enumerates the values for custom https provisioning substate. +type CustomHTTPSProvisioningSubstate string + +const ( + // CertificateDeleted ... + CertificateDeleted CustomHTTPSProvisioningSubstate = "CertificateDeleted" + // CertificateDeployed ... + CertificateDeployed CustomHTTPSProvisioningSubstate = "CertificateDeployed" + // DeletingCertificate ... + DeletingCertificate CustomHTTPSProvisioningSubstate = "DeletingCertificate" + // DeployingCertificate ... + DeployingCertificate CustomHTTPSProvisioningSubstate = "DeployingCertificate" + // DomainControlValidationRequestApproved ... + DomainControlValidationRequestApproved CustomHTTPSProvisioningSubstate = "DomainControlValidationRequestApproved" + // DomainControlValidationRequestRejected ... + DomainControlValidationRequestRejected CustomHTTPSProvisioningSubstate = "DomainControlValidationRequestRejected" + // DomainControlValidationRequestTimedOut ... + DomainControlValidationRequestTimedOut CustomHTTPSProvisioningSubstate = "DomainControlValidationRequestTimedOut" + // IssuingCertificate ... + IssuingCertificate CustomHTTPSProvisioningSubstate = "IssuingCertificate" + // PendingDomainControlValidationREquestApproval ... + PendingDomainControlValidationREquestApproval CustomHTTPSProvisioningSubstate = "PendingDomainControlValidationREquestApproval" + // SubmittingDomainControlValidationRequest ... + SubmittingDomainControlValidationRequest CustomHTTPSProvisioningSubstate = "SubmittingDomainControlValidationRequest" +) + +// PossibleCustomHTTPSProvisioningSubstateValues returns an array of possible values for the CustomHTTPSProvisioningSubstate const type. +func PossibleCustomHTTPSProvisioningSubstateValues() []CustomHTTPSProvisioningSubstate { + return []CustomHTTPSProvisioningSubstate{CertificateDeleted, CertificateDeployed, DeletingCertificate, DeployingCertificate, DomainControlValidationRequestApproved, DomainControlValidationRequestRejected, DomainControlValidationRequestTimedOut, IssuingCertificate, PendingDomainControlValidationREquestApproval, SubmittingDomainControlValidationRequest} +} + +// CustomRuleEnabledState enumerates the values for custom rule enabled state. +type CustomRuleEnabledState string + +const ( + // Disabled ... + Disabled CustomRuleEnabledState = "Disabled" + // Enabled ... + Enabled CustomRuleEnabledState = "Enabled" +) + +// PossibleCustomRuleEnabledStateValues returns an array of possible values for the CustomRuleEnabledState const type. +func PossibleCustomRuleEnabledStateValues() []CustomRuleEnabledState { + return []CustomRuleEnabledState{Disabled, Enabled} +} + +// DeploymentStatus enumerates the values for deployment status. +type DeploymentStatus string + +const ( + // DeploymentStatusFailed ... + DeploymentStatusFailed DeploymentStatus = "Failed" + // DeploymentStatusInProgress ... + DeploymentStatusInProgress DeploymentStatus = "InProgress" + // DeploymentStatusNotStarted ... + DeploymentStatusNotStarted DeploymentStatus = "NotStarted" + // DeploymentStatusSucceeded ... + DeploymentStatusSucceeded DeploymentStatus = "Succeeded" +) + +// PossibleDeploymentStatusValues returns an array of possible values for the DeploymentStatus const type. +func PossibleDeploymentStatusValues() []DeploymentStatus { + return []DeploymentStatus{DeploymentStatusFailed, DeploymentStatusInProgress, DeploymentStatusNotStarted, DeploymentStatusSucceeded} +} + +// DestinationProtocol enumerates the values for destination protocol. +type DestinationProtocol string + +const ( + // DestinationProtocolHTTP ... + DestinationProtocolHTTP DestinationProtocol = "Http" + // DestinationProtocolHTTPS ... + DestinationProtocolHTTPS DestinationProtocol = "Https" + // DestinationProtocolMatchRequest ... + DestinationProtocolMatchRequest DestinationProtocol = "MatchRequest" +) + +// PossibleDestinationProtocolValues returns an array of possible values for the DestinationProtocol const type. +func PossibleDestinationProtocolValues() []DestinationProtocol { + return []DestinationProtocol{DestinationProtocolHTTP, DestinationProtocolHTTPS, DestinationProtocolMatchRequest} +} + +// DomainValidationState enumerates the values for domain validation state. +type DomainValidationState string + +const ( + // Approved ... + Approved DomainValidationState = "Approved" + // Pending ... + Pending DomainValidationState = "Pending" + // PendingRevalidation ... + PendingRevalidation DomainValidationState = "PendingRevalidation" + // Submitting ... + Submitting DomainValidationState = "Submitting" + // TimedOut ... + TimedOut DomainValidationState = "TimedOut" + // Unknown ... + Unknown DomainValidationState = "Unknown" +) + +// PossibleDomainValidationStateValues returns an array of possible values for the DomainValidationState const type. +func PossibleDomainValidationStateValues() []DomainValidationState { + return []DomainValidationState{Approved, Pending, PendingRevalidation, Submitting, TimedOut, Unknown} +} + +// EnabledState enumerates the values for enabled state. +type EnabledState string + +const ( + // EnabledStateDisabled ... + EnabledStateDisabled EnabledState = "Disabled" + // EnabledStateEnabled ... + EnabledStateEnabled EnabledState = "Enabled" +) + +// PossibleEnabledStateValues returns an array of possible values for the EnabledState const type. +func PossibleEnabledStateValues() []EnabledState { + return []EnabledState{EnabledStateDisabled, EnabledStateEnabled} +} + +// EndpointResourceState enumerates the values for endpoint resource state. +type EndpointResourceState string + +const ( + // EndpointResourceStateCreating ... + EndpointResourceStateCreating EndpointResourceState = "Creating" + // EndpointResourceStateDeleting ... + EndpointResourceStateDeleting EndpointResourceState = "Deleting" + // EndpointResourceStateRunning ... + EndpointResourceStateRunning EndpointResourceState = "Running" + // EndpointResourceStateStarting ... + EndpointResourceStateStarting EndpointResourceState = "Starting" + // EndpointResourceStateStopped ... + EndpointResourceStateStopped EndpointResourceState = "Stopped" + // EndpointResourceStateStopping ... + EndpointResourceStateStopping EndpointResourceState = "Stopping" +) + +// PossibleEndpointResourceStateValues returns an array of possible values for the EndpointResourceState const type. +func PossibleEndpointResourceStateValues() []EndpointResourceState { + return []EndpointResourceState{EndpointResourceStateCreating, EndpointResourceStateDeleting, EndpointResourceStateRunning, EndpointResourceStateStarting, EndpointResourceStateStopped, EndpointResourceStateStopping} +} + +// ForwardingProtocol enumerates the values for forwarding protocol. +type ForwardingProtocol string + +const ( + // HTTPOnly ... + HTTPOnly ForwardingProtocol = "HttpOnly" + // HTTPSOnly ... + HTTPSOnly ForwardingProtocol = "HttpsOnly" + // MatchRequest ... + MatchRequest ForwardingProtocol = "MatchRequest" +) + +// PossibleForwardingProtocolValues returns an array of possible values for the ForwardingProtocol const type. +func PossibleForwardingProtocolValues() []ForwardingProtocol { + return []ForwardingProtocol{HTTPOnly, HTTPSOnly, MatchRequest} +} + +// GeoFilterActions enumerates the values for geo filter actions. +type GeoFilterActions string + +const ( + // GeoFilterActionsAllow ... + GeoFilterActionsAllow GeoFilterActions = "Allow" + // GeoFilterActionsBlock ... + GeoFilterActionsBlock GeoFilterActions = "Block" +) + +// PossibleGeoFilterActionsValues returns an array of possible values for the GeoFilterActions const type. +func PossibleGeoFilterActionsValues() []GeoFilterActions { + return []GeoFilterActions{GeoFilterActionsAllow, GeoFilterActionsBlock} +} + +// Granularity enumerates the values for granularity. +type Granularity string + +const ( + // P1D ... + P1D Granularity = "P1D" + // PT1H ... + PT1H Granularity = "PT1H" + // PT5M ... + PT5M Granularity = "PT5M" +) + +// PossibleGranularityValues returns an array of possible values for the Granularity const type. +func PossibleGranularityValues() []Granularity { + return []Granularity{P1D, PT1H, PT5M} +} + +// Granularity1 enumerates the values for granularity 1. +type Granularity1 string + +const ( + // Granularity1P1D ... + Granularity1P1D Granularity1 = "P1D" + // Granularity1PT1H ... + Granularity1PT1H Granularity1 = "PT1H" + // Granularity1PT5M ... + Granularity1PT5M Granularity1 = "PT5M" +) + +// PossibleGranularity1Values returns an array of possible values for the Granularity1 const type. +func PossibleGranularity1Values() []Granularity1 { + return []Granularity1{Granularity1P1D, Granularity1PT1H, Granularity1PT5M} +} + +// HeaderAction enumerates the values for header action. +type HeaderAction string + +const ( + // Append ... + Append HeaderAction = "Append" + // Delete ... + Delete HeaderAction = "Delete" + // Overwrite ... + Overwrite HeaderAction = "Overwrite" +) + +// PossibleHeaderActionValues returns an array of possible values for the HeaderAction const type. +func PossibleHeaderActionValues() []HeaderAction { + return []HeaderAction{Append, Delete, Overwrite} +} + +// HealthProbeRequestType enumerates the values for health probe request type. +type HealthProbeRequestType string + +const ( + // GET ... + GET HealthProbeRequestType = "GET" + // HEAD ... + HEAD HealthProbeRequestType = "HEAD" + // NotSet ... + NotSet HealthProbeRequestType = "NotSet" +) + +// PossibleHealthProbeRequestTypeValues returns an array of possible values for the HealthProbeRequestType const type. +func PossibleHealthProbeRequestTypeValues() []HealthProbeRequestType { + return []HealthProbeRequestType{GET, HEAD, NotSet} +} + +// HTTPSRedirect enumerates the values for https redirect. +type HTTPSRedirect string + +const ( + // HTTPSRedirectDisabled ... + HTTPSRedirectDisabled HTTPSRedirect = "Disabled" + // HTTPSRedirectEnabled ... + HTTPSRedirectEnabled HTTPSRedirect = "Enabled" +) + +// PossibleHTTPSRedirectValues returns an array of possible values for the HTTPSRedirect const type. +func PossibleHTTPSRedirectValues() []HTTPSRedirect { + return []HTTPSRedirect{HTTPSRedirectDisabled, HTTPSRedirectEnabled} +} + +// IdentityType enumerates the values for identity type. +type IdentityType string + +const ( + // Application ... + Application IdentityType = "application" + // Key ... + Key IdentityType = "key" + // ManagedIdentity ... + ManagedIdentity IdentityType = "managedIdentity" + // User ... + User IdentityType = "user" +) + +// PossibleIdentityTypeValues returns an array of possible values for the IdentityType const type. +func PossibleIdentityTypeValues() []IdentityType { + return []IdentityType{Application, Key, ManagedIdentity, User} +} + +// LinkToDefaultDomain enumerates the values for link to default domain. +type LinkToDefaultDomain string + +const ( + // LinkToDefaultDomainDisabled ... + LinkToDefaultDomainDisabled LinkToDefaultDomain = "Disabled" + // LinkToDefaultDomainEnabled ... + LinkToDefaultDomainEnabled LinkToDefaultDomain = "Enabled" +) + +// PossibleLinkToDefaultDomainValues returns an array of possible values for the LinkToDefaultDomain const type. +func PossibleLinkToDefaultDomainValues() []LinkToDefaultDomain { + return []LinkToDefaultDomain{LinkToDefaultDomainDisabled, LinkToDefaultDomainEnabled} +} + +// ManagedRuleEnabledState enumerates the values for managed rule enabled state. +type ManagedRuleEnabledState string + +const ( + // ManagedRuleEnabledStateDisabled ... + ManagedRuleEnabledStateDisabled ManagedRuleEnabledState = "Disabled" + // ManagedRuleEnabledStateEnabled ... + ManagedRuleEnabledStateEnabled ManagedRuleEnabledState = "Enabled" +) + +// PossibleManagedRuleEnabledStateValues returns an array of possible values for the ManagedRuleEnabledState const type. +func PossibleManagedRuleEnabledStateValues() []ManagedRuleEnabledState { + return []ManagedRuleEnabledState{ManagedRuleEnabledStateDisabled, ManagedRuleEnabledStateEnabled} +} + +// MatchProcessingBehavior enumerates the values for match processing behavior. +type MatchProcessingBehavior string + +const ( + // Continue ... + Continue MatchProcessingBehavior = "Continue" + // Stop ... + Stop MatchProcessingBehavior = "Stop" +) + +// PossibleMatchProcessingBehaviorValues returns an array of possible values for the MatchProcessingBehavior const type. +func PossibleMatchProcessingBehaviorValues() []MatchProcessingBehavior { + return []MatchProcessingBehavior{Continue, Stop} +} + +// MatchVariable enumerates the values for match variable. +type MatchVariable string + +const ( + // Cookies ... + Cookies MatchVariable = "Cookies" + // PostArgs ... + PostArgs MatchVariable = "PostArgs" + // QueryString ... + QueryString MatchVariable = "QueryString" + // RemoteAddr ... + RemoteAddr MatchVariable = "RemoteAddr" + // RequestBody ... + RequestBody MatchVariable = "RequestBody" + // RequestHeader ... + RequestHeader MatchVariable = "RequestHeader" + // RequestMethod ... + RequestMethod MatchVariable = "RequestMethod" + // RequestURI ... + RequestURI MatchVariable = "RequestUri" + // SocketAddr ... + SocketAddr MatchVariable = "SocketAddr" +) + +// PossibleMatchVariableValues returns an array of possible values for the MatchVariable const type. +func PossibleMatchVariableValues() []MatchVariable { + return []MatchVariable{Cookies, PostArgs, QueryString, RemoteAddr, RequestBody, RequestHeader, RequestMethod, RequestURI, SocketAddr} +} + +// MinimumTLSVersion enumerates the values for minimum tls version. +type MinimumTLSVersion string + +const ( + // MinimumTLSVersionNone ... + MinimumTLSVersionNone MinimumTLSVersion = "None" + // MinimumTLSVersionTLS10 ... + MinimumTLSVersionTLS10 MinimumTLSVersion = "TLS10" + // MinimumTLSVersionTLS12 ... + MinimumTLSVersionTLS12 MinimumTLSVersion = "TLS12" +) + +// PossibleMinimumTLSVersionValues returns an array of possible values for the MinimumTLSVersion const type. +func PossibleMinimumTLSVersionValues() []MinimumTLSVersion { + return []MinimumTLSVersion{MinimumTLSVersionNone, MinimumTLSVersionTLS10, MinimumTLSVersionTLS12} +} + +// Name enumerates the values for name. +type Name string + +const ( + // NameCookies ... + NameCookies Name = "Cookies" + // NameDeliveryRuleCondition ... + NameDeliveryRuleCondition Name = "DeliveryRuleCondition" + // NameHTTPVersion ... + NameHTTPVersion Name = "HttpVersion" + // NameIsDevice ... + NameIsDevice Name = "IsDevice" + // NamePostArgs ... + NamePostArgs Name = "PostArgs" + // NameQueryString ... + NameQueryString Name = "QueryString" + // NameRemoteAddress ... + NameRemoteAddress Name = "RemoteAddress" + // NameRequestBody ... + NameRequestBody Name = "RequestBody" + // NameRequestHeader ... + NameRequestHeader Name = "RequestHeader" + // NameRequestMethod ... + NameRequestMethod Name = "RequestMethod" + // NameRequestScheme ... + NameRequestScheme Name = "RequestScheme" + // NameRequestURI ... + NameRequestURI Name = "RequestUri" + // NameURLFileExtension ... + NameURLFileExtension Name = "UrlFileExtension" + // NameURLFileName ... + NameURLFileName Name = "UrlFileName" + // NameURLPath ... + NameURLPath Name = "UrlPath" +) + +// PossibleNameValues returns an array of possible values for the Name const type. +func PossibleNameValues() []Name { + return []Name{NameCookies, NameDeliveryRuleCondition, NameHTTPVersion, NameIsDevice, NamePostArgs, NameQueryString, NameRemoteAddress, NameRequestBody, NameRequestHeader, NameRequestMethod, NameRequestScheme, NameRequestURI, NameURLFileExtension, NameURLFileName, NameURLPath} +} + +// NameBasicDeliveryRuleAction enumerates the values for name basic delivery rule action. +type NameBasicDeliveryRuleAction string + +const ( + // NameCacheExpiration ... + NameCacheExpiration NameBasicDeliveryRuleAction = "CacheExpiration" + // NameCacheKeyQueryString ... + NameCacheKeyQueryString NameBasicDeliveryRuleAction = "CacheKeyQueryString" + // NameDeliveryRuleAction ... + NameDeliveryRuleAction NameBasicDeliveryRuleAction = "DeliveryRuleAction" + // NameModifyRequestHeader ... + NameModifyRequestHeader NameBasicDeliveryRuleAction = "ModifyRequestHeader" + // NameModifyResponseHeader ... + NameModifyResponseHeader NameBasicDeliveryRuleAction = "ModifyResponseHeader" + // NameOriginGroupOverride ... + NameOriginGroupOverride NameBasicDeliveryRuleAction = "OriginGroupOverride" + // NameURLRedirect ... + NameURLRedirect NameBasicDeliveryRuleAction = "UrlRedirect" + // NameURLRewrite ... + NameURLRewrite NameBasicDeliveryRuleAction = "UrlRewrite" + // NameURLSigning ... + NameURLSigning NameBasicDeliveryRuleAction = "UrlSigning" +) + +// PossibleNameBasicDeliveryRuleActionValues returns an array of possible values for the NameBasicDeliveryRuleAction const type. +func PossibleNameBasicDeliveryRuleActionValues() []NameBasicDeliveryRuleAction { + return []NameBasicDeliveryRuleAction{NameCacheExpiration, NameCacheKeyQueryString, NameDeliveryRuleAction, NameModifyRequestHeader, NameModifyResponseHeader, NameOriginGroupOverride, NameURLRedirect, NameURLRewrite, NameURLSigning} +} + +// Operator enumerates the values for operator. +type Operator string + +const ( + // OperatorAny ... + OperatorAny Operator = "Any" + // OperatorBeginsWith ... + OperatorBeginsWith Operator = "BeginsWith" + // OperatorContains ... + OperatorContains Operator = "Contains" + // OperatorEndsWith ... + OperatorEndsWith Operator = "EndsWith" + // OperatorEqual ... + OperatorEqual Operator = "Equal" + // OperatorGeoMatch ... + OperatorGeoMatch Operator = "GeoMatch" + // OperatorGreaterThan ... + OperatorGreaterThan Operator = "GreaterThan" + // OperatorGreaterThanOrEqual ... + OperatorGreaterThanOrEqual Operator = "GreaterThanOrEqual" + // OperatorIPMatch ... + OperatorIPMatch Operator = "IPMatch" + // OperatorLessThan ... + OperatorLessThan Operator = "LessThan" + // OperatorLessThanOrEqual ... + OperatorLessThanOrEqual Operator = "LessThanOrEqual" + // OperatorRegEx ... + OperatorRegEx Operator = "RegEx" +) + +// PossibleOperatorValues returns an array of possible values for the Operator const type. +func PossibleOperatorValues() []Operator { + return []Operator{OperatorAny, OperatorBeginsWith, OperatorContains, OperatorEndsWith, OperatorEqual, OperatorGeoMatch, OperatorGreaterThan, OperatorGreaterThanOrEqual, OperatorIPMatch, OperatorLessThan, OperatorLessThanOrEqual, OperatorRegEx} +} + +// OptimizationType enumerates the values for optimization type. +type OptimizationType string + +const ( + // DynamicSiteAcceleration ... + DynamicSiteAcceleration OptimizationType = "DynamicSiteAcceleration" + // GeneralMediaStreaming ... + GeneralMediaStreaming OptimizationType = "GeneralMediaStreaming" + // GeneralWebDelivery ... + GeneralWebDelivery OptimizationType = "GeneralWebDelivery" + // LargeFileDownload ... + LargeFileDownload OptimizationType = "LargeFileDownload" + // VideoOnDemandMediaStreaming ... + VideoOnDemandMediaStreaming OptimizationType = "VideoOnDemandMediaStreaming" +) + +// PossibleOptimizationTypeValues returns an array of possible values for the OptimizationType const type. +func PossibleOptimizationTypeValues() []OptimizationType { + return []OptimizationType{DynamicSiteAcceleration, GeneralMediaStreaming, GeneralWebDelivery, LargeFileDownload, VideoOnDemandMediaStreaming} +} + +// OriginGroupResourceState enumerates the values for origin group resource state. +type OriginGroupResourceState string + +const ( + // OriginGroupResourceStateActive ... + OriginGroupResourceStateActive OriginGroupResourceState = "Active" + // OriginGroupResourceStateCreating ... + OriginGroupResourceStateCreating OriginGroupResourceState = "Creating" + // OriginGroupResourceStateDeleting ... + OriginGroupResourceStateDeleting OriginGroupResourceState = "Deleting" +) + +// PossibleOriginGroupResourceStateValues returns an array of possible values for the OriginGroupResourceState const type. +func PossibleOriginGroupResourceStateValues() []OriginGroupResourceState { + return []OriginGroupResourceState{OriginGroupResourceStateActive, OriginGroupResourceStateCreating, OriginGroupResourceStateDeleting} +} + +// OriginResourceState enumerates the values for origin resource state. +type OriginResourceState string + +const ( + // OriginResourceStateActive ... + OriginResourceStateActive OriginResourceState = "Active" + // OriginResourceStateCreating ... + OriginResourceStateCreating OriginResourceState = "Creating" + // OriginResourceStateDeleting ... + OriginResourceStateDeleting OriginResourceState = "Deleting" +) + +// PossibleOriginResourceStateValues returns an array of possible values for the OriginResourceState const type. +func PossibleOriginResourceStateValues() []OriginResourceState { + return []OriginResourceState{OriginResourceStateActive, OriginResourceStateCreating, OriginResourceStateDeleting} +} + +// ParamIndicator enumerates the values for param indicator. +type ParamIndicator string + +const ( + // Expires ... + Expires ParamIndicator = "Expires" + // KeyID ... + KeyID ParamIndicator = "KeyId" + // Signature ... + Signature ParamIndicator = "Signature" +) + +// PossibleParamIndicatorValues returns an array of possible values for the ParamIndicator const type. +func PossibleParamIndicatorValues() []ParamIndicator { + return []ParamIndicator{Expires, KeyID, Signature} +} + +// PolicyEnabledState enumerates the values for policy enabled state. +type PolicyEnabledState string + +const ( + // PolicyEnabledStateDisabled ... + PolicyEnabledStateDisabled PolicyEnabledState = "Disabled" + // PolicyEnabledStateEnabled ... + PolicyEnabledStateEnabled PolicyEnabledState = "Enabled" +) + +// PossiblePolicyEnabledStateValues returns an array of possible values for the PolicyEnabledState const type. +func PossiblePolicyEnabledStateValues() []PolicyEnabledState { + return []PolicyEnabledState{PolicyEnabledStateDisabled, PolicyEnabledStateEnabled} +} + +// PolicyMode enumerates the values for policy mode. +type PolicyMode string + +const ( + // Detection ... + Detection PolicyMode = "Detection" + // Prevention ... + Prevention PolicyMode = "Prevention" +) + +// PossiblePolicyModeValues returns an array of possible values for the PolicyMode const type. +func PossiblePolicyModeValues() []PolicyMode { + return []PolicyMode{Detection, Prevention} +} + +// PolicyResourceState enumerates the values for policy resource state. +type PolicyResourceState string + +const ( + // PolicyResourceStateCreating ... + PolicyResourceStateCreating PolicyResourceState = "Creating" + // PolicyResourceStateDeleting ... + PolicyResourceStateDeleting PolicyResourceState = "Deleting" + // PolicyResourceStateDisabled ... + PolicyResourceStateDisabled PolicyResourceState = "Disabled" + // PolicyResourceStateDisabling ... + PolicyResourceStateDisabling PolicyResourceState = "Disabling" + // PolicyResourceStateEnabled ... + PolicyResourceStateEnabled PolicyResourceState = "Enabled" + // PolicyResourceStateEnabling ... + PolicyResourceStateEnabling PolicyResourceState = "Enabling" +) + +// PossiblePolicyResourceStateValues returns an array of possible values for the PolicyResourceState const type. +func PossiblePolicyResourceStateValues() []PolicyResourceState { + return []PolicyResourceState{PolicyResourceStateCreating, PolicyResourceStateDeleting, PolicyResourceStateDisabled, PolicyResourceStateDisabling, PolicyResourceStateEnabled, PolicyResourceStateEnabling} +} + +// PostArgsOperator enumerates the values for post args operator. +type PostArgsOperator string + +const ( + // PostArgsOperatorAny ... + PostArgsOperatorAny PostArgsOperator = "Any" + // PostArgsOperatorBeginsWith ... + PostArgsOperatorBeginsWith PostArgsOperator = "BeginsWith" + // PostArgsOperatorContains ... + PostArgsOperatorContains PostArgsOperator = "Contains" + // PostArgsOperatorEndsWith ... + PostArgsOperatorEndsWith PostArgsOperator = "EndsWith" + // PostArgsOperatorEqual ... + PostArgsOperatorEqual PostArgsOperator = "Equal" + // PostArgsOperatorGreaterThan ... + PostArgsOperatorGreaterThan PostArgsOperator = "GreaterThan" + // PostArgsOperatorGreaterThanOrEqual ... + PostArgsOperatorGreaterThanOrEqual PostArgsOperator = "GreaterThanOrEqual" + // PostArgsOperatorLessThan ... + PostArgsOperatorLessThan PostArgsOperator = "LessThan" + // PostArgsOperatorLessThanOrEqual ... + PostArgsOperatorLessThanOrEqual PostArgsOperator = "LessThanOrEqual" + // PostArgsOperatorRegEx ... + PostArgsOperatorRegEx PostArgsOperator = "RegEx" +) + +// PossiblePostArgsOperatorValues returns an array of possible values for the PostArgsOperator const type. +func PossiblePostArgsOperatorValues() []PostArgsOperator { + return []PostArgsOperator{PostArgsOperatorAny, PostArgsOperatorBeginsWith, PostArgsOperatorContains, PostArgsOperatorEndsWith, PostArgsOperatorEqual, PostArgsOperatorGreaterThan, PostArgsOperatorGreaterThanOrEqual, PostArgsOperatorLessThan, PostArgsOperatorLessThanOrEqual, PostArgsOperatorRegEx} +} + +// PrivateEndpointStatus enumerates the values for private endpoint status. +type PrivateEndpointStatus string + +const ( + // PrivateEndpointStatusApproved ... + PrivateEndpointStatusApproved PrivateEndpointStatus = "Approved" + // PrivateEndpointStatusDisconnected ... + PrivateEndpointStatusDisconnected PrivateEndpointStatus = "Disconnected" + // PrivateEndpointStatusPending ... + PrivateEndpointStatusPending PrivateEndpointStatus = "Pending" + // PrivateEndpointStatusRejected ... + PrivateEndpointStatusRejected PrivateEndpointStatus = "Rejected" + // PrivateEndpointStatusTimeout ... + PrivateEndpointStatusTimeout PrivateEndpointStatus = "Timeout" +) + +// PossiblePrivateEndpointStatusValues returns an array of possible values for the PrivateEndpointStatus const type. +func PossiblePrivateEndpointStatusValues() []PrivateEndpointStatus { + return []PrivateEndpointStatus{PrivateEndpointStatusApproved, PrivateEndpointStatusDisconnected, PrivateEndpointStatusPending, PrivateEndpointStatusRejected, PrivateEndpointStatusTimeout} +} + +// ProbeProtocol enumerates the values for probe protocol. +type ProbeProtocol string + +const ( + // ProbeProtocolHTTP ... + ProbeProtocolHTTP ProbeProtocol = "Http" + // ProbeProtocolHTTPS ... + ProbeProtocolHTTPS ProbeProtocol = "Https" + // ProbeProtocolNotSet ... + ProbeProtocolNotSet ProbeProtocol = "NotSet" +) + +// PossibleProbeProtocolValues returns an array of possible values for the ProbeProtocol const type. +func PossibleProbeProtocolValues() []ProbeProtocol { + return []ProbeProtocol{ProbeProtocolHTTP, ProbeProtocolHTTPS, ProbeProtocolNotSet} +} + +// ProfileResourceState enumerates the values for profile resource state. +type ProfileResourceState string + +const ( + // ProfileResourceStateActive ... + ProfileResourceStateActive ProfileResourceState = "Active" + // ProfileResourceStateCreating ... + ProfileResourceStateCreating ProfileResourceState = "Creating" + // ProfileResourceStateDeleting ... + ProfileResourceStateDeleting ProfileResourceState = "Deleting" + // ProfileResourceStateDisabled ... + ProfileResourceStateDisabled ProfileResourceState = "Disabled" +) + +// PossibleProfileResourceStateValues returns an array of possible values for the ProfileResourceState const type. +func PossibleProfileResourceStateValues() []ProfileResourceState { + return []ProfileResourceState{ProfileResourceStateActive, ProfileResourceStateCreating, ProfileResourceStateDeleting, ProfileResourceStateDisabled} +} + +// ProtocolType enumerates the values for protocol type. +type ProtocolType string + +const ( + // IPBased ... + IPBased ProtocolType = "IPBased" + // ServerNameIndication ... + ServerNameIndication ProtocolType = "ServerNameIndication" +) + +// PossibleProtocolTypeValues returns an array of possible values for the ProtocolType const type. +func PossibleProtocolTypeValues() []ProtocolType { + return []ProtocolType{IPBased, ServerNameIndication} +} + +// ProvisioningState enumerates the values for provisioning state. +type ProvisioningState string + +const ( + // ProvisioningStateCreating ... + ProvisioningStateCreating ProvisioningState = "Creating" + // ProvisioningStateFailed ... + ProvisioningStateFailed ProvisioningState = "Failed" + // ProvisioningStateSucceeded ... + ProvisioningStateSucceeded ProvisioningState = "Succeeded" +) + +// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. +func PossibleProvisioningStateValues() []ProvisioningState { + return []ProvisioningState{ProvisioningStateCreating, ProvisioningStateFailed, ProvisioningStateSucceeded} +} + +// QueryStringBehavior enumerates the values for query string behavior. +type QueryStringBehavior string + +const ( + // Exclude ... + Exclude QueryStringBehavior = "Exclude" + // ExcludeAll ... + ExcludeAll QueryStringBehavior = "ExcludeAll" + // Include ... + Include QueryStringBehavior = "Include" + // IncludeAll ... + IncludeAll QueryStringBehavior = "IncludeAll" +) + +// PossibleQueryStringBehaviorValues returns an array of possible values for the QueryStringBehavior const type. +func PossibleQueryStringBehaviorValues() []QueryStringBehavior { + return []QueryStringBehavior{Exclude, ExcludeAll, Include, IncludeAll} +} + +// QueryStringCachingBehavior enumerates the values for query string caching behavior. +type QueryStringCachingBehavior string + +const ( + // QueryStringCachingBehaviorBypassCaching ... + QueryStringCachingBehaviorBypassCaching QueryStringCachingBehavior = "BypassCaching" + // QueryStringCachingBehaviorIgnoreQueryString ... + QueryStringCachingBehaviorIgnoreQueryString QueryStringCachingBehavior = "IgnoreQueryString" + // QueryStringCachingBehaviorNotSet ... + QueryStringCachingBehaviorNotSet QueryStringCachingBehavior = "NotSet" + // QueryStringCachingBehaviorUseQueryString ... + QueryStringCachingBehaviorUseQueryString QueryStringCachingBehavior = "UseQueryString" +) + +// PossibleQueryStringCachingBehaviorValues returns an array of possible values for the QueryStringCachingBehavior const type. +func PossibleQueryStringCachingBehaviorValues() []QueryStringCachingBehavior { + return []QueryStringCachingBehavior{QueryStringCachingBehaviorBypassCaching, QueryStringCachingBehaviorIgnoreQueryString, QueryStringCachingBehaviorNotSet, QueryStringCachingBehaviorUseQueryString} +} + +// QueryStringOperator enumerates the values for query string operator. +type QueryStringOperator string + +const ( + // QueryStringOperatorAny ... + QueryStringOperatorAny QueryStringOperator = "Any" + // QueryStringOperatorBeginsWith ... + QueryStringOperatorBeginsWith QueryStringOperator = "BeginsWith" + // QueryStringOperatorContains ... + QueryStringOperatorContains QueryStringOperator = "Contains" + // QueryStringOperatorEndsWith ... + QueryStringOperatorEndsWith QueryStringOperator = "EndsWith" + // QueryStringOperatorEqual ... + QueryStringOperatorEqual QueryStringOperator = "Equal" + // QueryStringOperatorGreaterThan ... + QueryStringOperatorGreaterThan QueryStringOperator = "GreaterThan" + // QueryStringOperatorGreaterThanOrEqual ... + QueryStringOperatorGreaterThanOrEqual QueryStringOperator = "GreaterThanOrEqual" + // QueryStringOperatorLessThan ... + QueryStringOperatorLessThan QueryStringOperator = "LessThan" + // QueryStringOperatorLessThanOrEqual ... + QueryStringOperatorLessThanOrEqual QueryStringOperator = "LessThanOrEqual" + // QueryStringOperatorRegEx ... + QueryStringOperatorRegEx QueryStringOperator = "RegEx" +) + +// PossibleQueryStringOperatorValues returns an array of possible values for the QueryStringOperator const type. +func PossibleQueryStringOperatorValues() []QueryStringOperator { + return []QueryStringOperator{QueryStringOperatorAny, QueryStringOperatorBeginsWith, QueryStringOperatorContains, QueryStringOperatorEndsWith, QueryStringOperatorEqual, QueryStringOperatorGreaterThan, QueryStringOperatorGreaterThanOrEqual, QueryStringOperatorLessThan, QueryStringOperatorLessThanOrEqual, QueryStringOperatorRegEx} +} + +// RedirectType enumerates the values for redirect type. +type RedirectType string + +const ( + // Found ... + Found RedirectType = "Found" + // Moved ... + Moved RedirectType = "Moved" + // PermanentRedirect ... + PermanentRedirect RedirectType = "PermanentRedirect" + // TemporaryRedirect ... + TemporaryRedirect RedirectType = "TemporaryRedirect" +) + +// PossibleRedirectTypeValues returns an array of possible values for the RedirectType const type. +func PossibleRedirectTypeValues() []RedirectType { + return []RedirectType{Found, Moved, PermanentRedirect, TemporaryRedirect} +} + +// RemoteAddressOperator enumerates the values for remote address operator. +type RemoteAddressOperator string + +const ( + // RemoteAddressOperatorAny ... + RemoteAddressOperatorAny RemoteAddressOperator = "Any" + // RemoteAddressOperatorGeoMatch ... + RemoteAddressOperatorGeoMatch RemoteAddressOperator = "GeoMatch" + // RemoteAddressOperatorIPMatch ... + RemoteAddressOperatorIPMatch RemoteAddressOperator = "IPMatch" +) + +// PossibleRemoteAddressOperatorValues returns an array of possible values for the RemoteAddressOperator const type. +func PossibleRemoteAddressOperatorValues() []RemoteAddressOperator { + return []RemoteAddressOperator{RemoteAddressOperatorAny, RemoteAddressOperatorGeoMatch, RemoteAddressOperatorIPMatch} +} + +// RequestBodyOperator enumerates the values for request body operator. +type RequestBodyOperator string + +const ( + // RequestBodyOperatorAny ... + RequestBodyOperatorAny RequestBodyOperator = "Any" + // RequestBodyOperatorBeginsWith ... + RequestBodyOperatorBeginsWith RequestBodyOperator = "BeginsWith" + // RequestBodyOperatorContains ... + RequestBodyOperatorContains RequestBodyOperator = "Contains" + // RequestBodyOperatorEndsWith ... + RequestBodyOperatorEndsWith RequestBodyOperator = "EndsWith" + // RequestBodyOperatorEqual ... + RequestBodyOperatorEqual RequestBodyOperator = "Equal" + // RequestBodyOperatorGreaterThan ... + RequestBodyOperatorGreaterThan RequestBodyOperator = "GreaterThan" + // RequestBodyOperatorGreaterThanOrEqual ... + RequestBodyOperatorGreaterThanOrEqual RequestBodyOperator = "GreaterThanOrEqual" + // RequestBodyOperatorLessThan ... + RequestBodyOperatorLessThan RequestBodyOperator = "LessThan" + // RequestBodyOperatorLessThanOrEqual ... + RequestBodyOperatorLessThanOrEqual RequestBodyOperator = "LessThanOrEqual" + // RequestBodyOperatorRegEx ... + RequestBodyOperatorRegEx RequestBodyOperator = "RegEx" +) + +// PossibleRequestBodyOperatorValues returns an array of possible values for the RequestBodyOperator const type. +func PossibleRequestBodyOperatorValues() []RequestBodyOperator { + return []RequestBodyOperator{RequestBodyOperatorAny, RequestBodyOperatorBeginsWith, RequestBodyOperatorContains, RequestBodyOperatorEndsWith, RequestBodyOperatorEqual, RequestBodyOperatorGreaterThan, RequestBodyOperatorGreaterThanOrEqual, RequestBodyOperatorLessThan, RequestBodyOperatorLessThanOrEqual, RequestBodyOperatorRegEx} +} + +// RequestHeaderOperator enumerates the values for request header operator. +type RequestHeaderOperator string + +const ( + // RequestHeaderOperatorAny ... + RequestHeaderOperatorAny RequestHeaderOperator = "Any" + // RequestHeaderOperatorBeginsWith ... + RequestHeaderOperatorBeginsWith RequestHeaderOperator = "BeginsWith" + // RequestHeaderOperatorContains ... + RequestHeaderOperatorContains RequestHeaderOperator = "Contains" + // RequestHeaderOperatorEndsWith ... + RequestHeaderOperatorEndsWith RequestHeaderOperator = "EndsWith" + // RequestHeaderOperatorEqual ... + RequestHeaderOperatorEqual RequestHeaderOperator = "Equal" + // RequestHeaderOperatorGreaterThan ... + RequestHeaderOperatorGreaterThan RequestHeaderOperator = "GreaterThan" + // RequestHeaderOperatorGreaterThanOrEqual ... + RequestHeaderOperatorGreaterThanOrEqual RequestHeaderOperator = "GreaterThanOrEqual" + // RequestHeaderOperatorLessThan ... + RequestHeaderOperatorLessThan RequestHeaderOperator = "LessThan" + // RequestHeaderOperatorLessThanOrEqual ... + RequestHeaderOperatorLessThanOrEqual RequestHeaderOperator = "LessThanOrEqual" + // RequestHeaderOperatorRegEx ... + RequestHeaderOperatorRegEx RequestHeaderOperator = "RegEx" +) + +// PossibleRequestHeaderOperatorValues returns an array of possible values for the RequestHeaderOperator const type. +func PossibleRequestHeaderOperatorValues() []RequestHeaderOperator { + return []RequestHeaderOperator{RequestHeaderOperatorAny, RequestHeaderOperatorBeginsWith, RequestHeaderOperatorContains, RequestHeaderOperatorEndsWith, RequestHeaderOperatorEqual, RequestHeaderOperatorGreaterThan, RequestHeaderOperatorGreaterThanOrEqual, RequestHeaderOperatorLessThan, RequestHeaderOperatorLessThanOrEqual, RequestHeaderOperatorRegEx} +} + +// RequestURIOperator enumerates the values for request uri operator. +type RequestURIOperator string + +const ( + // RequestURIOperatorAny ... + RequestURIOperatorAny RequestURIOperator = "Any" + // RequestURIOperatorBeginsWith ... + RequestURIOperatorBeginsWith RequestURIOperator = "BeginsWith" + // RequestURIOperatorContains ... + RequestURIOperatorContains RequestURIOperator = "Contains" + // RequestURIOperatorEndsWith ... + RequestURIOperatorEndsWith RequestURIOperator = "EndsWith" + // RequestURIOperatorEqual ... + RequestURIOperatorEqual RequestURIOperator = "Equal" + // RequestURIOperatorGreaterThan ... + RequestURIOperatorGreaterThan RequestURIOperator = "GreaterThan" + // RequestURIOperatorGreaterThanOrEqual ... + RequestURIOperatorGreaterThanOrEqual RequestURIOperator = "GreaterThanOrEqual" + // RequestURIOperatorLessThan ... + RequestURIOperatorLessThan RequestURIOperator = "LessThan" + // RequestURIOperatorLessThanOrEqual ... + RequestURIOperatorLessThanOrEqual RequestURIOperator = "LessThanOrEqual" + // RequestURIOperatorRegEx ... + RequestURIOperatorRegEx RequestURIOperator = "RegEx" +) + +// PossibleRequestURIOperatorValues returns an array of possible values for the RequestURIOperator const type. +func PossibleRequestURIOperatorValues() []RequestURIOperator { + return []RequestURIOperator{RequestURIOperatorAny, RequestURIOperatorBeginsWith, RequestURIOperatorContains, RequestURIOperatorEndsWith, RequestURIOperatorEqual, RequestURIOperatorGreaterThan, RequestURIOperatorGreaterThanOrEqual, RequestURIOperatorLessThan, RequestURIOperatorLessThanOrEqual, RequestURIOperatorRegEx} +} + +// ResourceType enumerates the values for resource type. +type ResourceType string + +const ( + // MicrosoftCdnProfilesEndpoints ... + MicrosoftCdnProfilesEndpoints ResourceType = "Microsoft.Cdn/Profiles/Endpoints" +) + +// PossibleResourceTypeValues returns an array of possible values for the ResourceType const type. +func PossibleResourceTypeValues() []ResourceType { + return []ResourceType{MicrosoftCdnProfilesEndpoints} +} + +// ResponseBasedDetectedErrorTypes enumerates the values for response based detected error types. +type ResponseBasedDetectedErrorTypes string + +const ( + // None ... + None ResponseBasedDetectedErrorTypes = "None" + // TCPAndHTTPErrors ... + TCPAndHTTPErrors ResponseBasedDetectedErrorTypes = "TcpAndHttpErrors" + // TCPErrorsOnly ... + TCPErrorsOnly ResponseBasedDetectedErrorTypes = "TcpErrorsOnly" +) + +// PossibleResponseBasedDetectedErrorTypesValues returns an array of possible values for the ResponseBasedDetectedErrorTypes const type. +func PossibleResponseBasedDetectedErrorTypesValues() []ResponseBasedDetectedErrorTypes { + return []ResponseBasedDetectedErrorTypes{None, TCPAndHTTPErrors, TCPErrorsOnly} +} + +// SecretType enumerates the values for secret type. +type SecretType string + +const ( + // SecretTypeCustomerCertificate ... + SecretTypeCustomerCertificate SecretType = "CustomerCertificate" + // SecretTypeManagedCertificate ... + SecretTypeManagedCertificate SecretType = "ManagedCertificate" + // SecretTypeURLSigningKey ... + SecretTypeURLSigningKey SecretType = "UrlSigningKey" +) + +// PossibleSecretTypeValues returns an array of possible values for the SecretType const type. +func PossibleSecretTypeValues() []SecretType { + return []SecretType{SecretTypeCustomerCertificate, SecretTypeManagedCertificate, SecretTypeURLSigningKey} +} + +// SharedPrivateLinkResourceStatus enumerates the values for shared private link resource status. +type SharedPrivateLinkResourceStatus string + +const ( + // SharedPrivateLinkResourceStatusApproved ... + SharedPrivateLinkResourceStatusApproved SharedPrivateLinkResourceStatus = "Approved" + // SharedPrivateLinkResourceStatusDisconnected ... + SharedPrivateLinkResourceStatusDisconnected SharedPrivateLinkResourceStatus = "Disconnected" + // SharedPrivateLinkResourceStatusPending ... + SharedPrivateLinkResourceStatusPending SharedPrivateLinkResourceStatus = "Pending" + // SharedPrivateLinkResourceStatusRejected ... + SharedPrivateLinkResourceStatusRejected SharedPrivateLinkResourceStatus = "Rejected" + // SharedPrivateLinkResourceStatusTimeout ... + SharedPrivateLinkResourceStatusTimeout SharedPrivateLinkResourceStatus = "Timeout" +) + +// PossibleSharedPrivateLinkResourceStatusValues returns an array of possible values for the SharedPrivateLinkResourceStatus const type. +func PossibleSharedPrivateLinkResourceStatusValues() []SharedPrivateLinkResourceStatus { + return []SharedPrivateLinkResourceStatus{SharedPrivateLinkResourceStatusApproved, SharedPrivateLinkResourceStatusDisconnected, SharedPrivateLinkResourceStatusPending, SharedPrivateLinkResourceStatusRejected, SharedPrivateLinkResourceStatusTimeout} +} + +// SkuName enumerates the values for sku name. +type SkuName string + +const ( + // CustomVerizon ... + CustomVerizon SkuName = "Custom_Verizon" + // PremiumAzureFrontDoor ... + PremiumAzureFrontDoor SkuName = "Premium_AzureFrontDoor" + // PremiumChinaCdn ... + PremiumChinaCdn SkuName = "Premium_ChinaCdn" + // PremiumVerizon ... + PremiumVerizon SkuName = "Premium_Verizon" + // Standard955BandWidthChinaCdn ... + Standard955BandWidthChinaCdn SkuName = "Standard_955BandWidth_ChinaCdn" + // StandardAkamai ... + StandardAkamai SkuName = "Standard_Akamai" + // StandardAvgBandWidthChinaCdn ... + StandardAvgBandWidthChinaCdn SkuName = "Standard_AvgBandWidth_ChinaCdn" + // StandardAzureFrontDoor ... + StandardAzureFrontDoor SkuName = "Standard_AzureFrontDoor" + // StandardChinaCdn ... + StandardChinaCdn SkuName = "Standard_ChinaCdn" + // StandardMicrosoft ... + StandardMicrosoft SkuName = "Standard_Microsoft" + // StandardPlus955BandWidthChinaCdn ... + StandardPlus955BandWidthChinaCdn SkuName = "StandardPlus_955BandWidth_ChinaCdn" + // StandardPlusAvgBandWidthChinaCdn ... + StandardPlusAvgBandWidthChinaCdn SkuName = "StandardPlus_AvgBandWidth_ChinaCdn" + // StandardPlusChinaCdn ... + StandardPlusChinaCdn SkuName = "StandardPlus_ChinaCdn" + // StandardVerizon ... + StandardVerizon SkuName = "Standard_Verizon" +) + +// PossibleSkuNameValues returns an array of possible values for the SkuName const type. +func PossibleSkuNameValues() []SkuName { + return []SkuName{CustomVerizon, PremiumAzureFrontDoor, PremiumChinaCdn, PremiumVerizon, Standard955BandWidthChinaCdn, StandardAkamai, StandardAvgBandWidthChinaCdn, StandardAzureFrontDoor, StandardChinaCdn, StandardMicrosoft, StandardPlus955BandWidthChinaCdn, StandardPlusAvgBandWidthChinaCdn, StandardPlusChinaCdn, StandardVerizon} +} + +// Status enumerates the values for status. +type Status string + +const ( + // AccessDenied ... + AccessDenied Status = "AccessDenied" + // CertificateExpired ... + CertificateExpired Status = "CertificateExpired" + // Invalid ... + Invalid Status = "Invalid" + // Valid ... + Valid Status = "Valid" +) + +// PossibleStatusValues returns an array of possible values for the Status const type. +func PossibleStatusValues() []Status { + return []Status{AccessDenied, CertificateExpired, Invalid, Valid} +} + +// Transform enumerates the values for transform. +type Transform string + +const ( + // Lowercase ... + Lowercase Transform = "Lowercase" + // Uppercase ... + Uppercase Transform = "Uppercase" +) + +// PossibleTransformValues returns an array of possible values for the Transform const type. +func PossibleTransformValues() []Transform { + return []Transform{Lowercase, Uppercase} +} + +// TransformType enumerates the values for transform type. +type TransformType string + +const ( + // TransformTypeLowercase ... + TransformTypeLowercase TransformType = "Lowercase" + // TransformTypeRemoveNulls ... + TransformTypeRemoveNulls TransformType = "RemoveNulls" + // TransformTypeTrim ... + TransformTypeTrim TransformType = "Trim" + // TransformTypeUppercase ... + TransformTypeUppercase TransformType = "Uppercase" + // TransformTypeURLDecode ... + TransformTypeURLDecode TransformType = "UrlDecode" + // TransformTypeURLEncode ... + TransformTypeURLEncode TransformType = "UrlEncode" +) + +// PossibleTransformTypeValues returns an array of possible values for the TransformType const type. +func PossibleTransformTypeValues() []TransformType { + return []TransformType{TransformTypeLowercase, TransformTypeRemoveNulls, TransformTypeTrim, TransformTypeUppercase, TransformTypeURLDecode, TransformTypeURLEncode} +} + +// Type enumerates the values for type. +type Type string + +const ( + // TypeSecurityPolicyParameters ... + TypeSecurityPolicyParameters Type = "SecurityPolicyParameters" + // TypeWebApplicationFirewall ... + TypeWebApplicationFirewall Type = "WebApplicationFirewall" +) + +// PossibleTypeValues returns an array of possible values for the Type const type. +func PossibleTypeValues() []Type { + return []Type{TypeSecurityPolicyParameters, TypeWebApplicationFirewall} +} + +// TypeBasicSecretParameters enumerates the values for type basic secret parameters. +type TypeBasicSecretParameters string + +const ( + // TypeSecretParameters ... + TypeSecretParameters TypeBasicSecretParameters = "SecretParameters" + // TypeURLSigningKey ... + TypeURLSigningKey TypeBasicSecretParameters = "UrlSigningKey" +) + +// PossibleTypeBasicSecretParametersValues returns an array of possible values for the TypeBasicSecretParameters const type. +func PossibleTypeBasicSecretParametersValues() []TypeBasicSecretParameters { + return []TypeBasicSecretParameters{TypeSecretParameters, TypeURLSigningKey} +} + +// Unit enumerates the values for unit. +type Unit string + +const ( + // BitsPerSecond ... + BitsPerSecond Unit = "bitsPerSecond" + // Bytes ... + Bytes Unit = "bytes" + // Count ... + Count Unit = "count" +) + +// PossibleUnitValues returns an array of possible values for the Unit const type. +func PossibleUnitValues() []Unit { + return []Unit{BitsPerSecond, Bytes, Count} +} + +// Unit1 enumerates the values for unit 1. +type Unit1 string + +const ( + // Unit1Count ... + Unit1Count Unit1 = "count" +) + +// PossibleUnit1Values returns an array of possible values for the Unit1 const type. +func PossibleUnit1Values() []Unit1 { + return []Unit1{Unit1Count} +} + +// URLFileExtensionOperator enumerates the values for url file extension operator. +type URLFileExtensionOperator string + +const ( + // URLFileExtensionOperatorAny ... + URLFileExtensionOperatorAny URLFileExtensionOperator = "Any" + // URLFileExtensionOperatorBeginsWith ... + URLFileExtensionOperatorBeginsWith URLFileExtensionOperator = "BeginsWith" + // URLFileExtensionOperatorContains ... + URLFileExtensionOperatorContains URLFileExtensionOperator = "Contains" + // URLFileExtensionOperatorEndsWith ... + URLFileExtensionOperatorEndsWith URLFileExtensionOperator = "EndsWith" + // URLFileExtensionOperatorEqual ... + URLFileExtensionOperatorEqual URLFileExtensionOperator = "Equal" + // URLFileExtensionOperatorGreaterThan ... + URLFileExtensionOperatorGreaterThan URLFileExtensionOperator = "GreaterThan" + // URLFileExtensionOperatorGreaterThanOrEqual ... + URLFileExtensionOperatorGreaterThanOrEqual URLFileExtensionOperator = "GreaterThanOrEqual" + // URLFileExtensionOperatorLessThan ... + URLFileExtensionOperatorLessThan URLFileExtensionOperator = "LessThan" + // URLFileExtensionOperatorLessThanOrEqual ... + URLFileExtensionOperatorLessThanOrEqual URLFileExtensionOperator = "LessThanOrEqual" + // URLFileExtensionOperatorRegEx ... + URLFileExtensionOperatorRegEx URLFileExtensionOperator = "RegEx" +) + +// PossibleURLFileExtensionOperatorValues returns an array of possible values for the URLFileExtensionOperator const type. +func PossibleURLFileExtensionOperatorValues() []URLFileExtensionOperator { + return []URLFileExtensionOperator{URLFileExtensionOperatorAny, URLFileExtensionOperatorBeginsWith, URLFileExtensionOperatorContains, URLFileExtensionOperatorEndsWith, URLFileExtensionOperatorEqual, URLFileExtensionOperatorGreaterThan, URLFileExtensionOperatorGreaterThanOrEqual, URLFileExtensionOperatorLessThan, URLFileExtensionOperatorLessThanOrEqual, URLFileExtensionOperatorRegEx} +} + +// URLFileNameOperator enumerates the values for url file name operator. +type URLFileNameOperator string + +const ( + // URLFileNameOperatorAny ... + URLFileNameOperatorAny URLFileNameOperator = "Any" + // URLFileNameOperatorBeginsWith ... + URLFileNameOperatorBeginsWith URLFileNameOperator = "BeginsWith" + // URLFileNameOperatorContains ... + URLFileNameOperatorContains URLFileNameOperator = "Contains" + // URLFileNameOperatorEndsWith ... + URLFileNameOperatorEndsWith URLFileNameOperator = "EndsWith" + // URLFileNameOperatorEqual ... + URLFileNameOperatorEqual URLFileNameOperator = "Equal" + // URLFileNameOperatorGreaterThan ... + URLFileNameOperatorGreaterThan URLFileNameOperator = "GreaterThan" + // URLFileNameOperatorGreaterThanOrEqual ... + URLFileNameOperatorGreaterThanOrEqual URLFileNameOperator = "GreaterThanOrEqual" + // URLFileNameOperatorLessThan ... + URLFileNameOperatorLessThan URLFileNameOperator = "LessThan" + // URLFileNameOperatorLessThanOrEqual ... + URLFileNameOperatorLessThanOrEqual URLFileNameOperator = "LessThanOrEqual" + // URLFileNameOperatorRegEx ... + URLFileNameOperatorRegEx URLFileNameOperator = "RegEx" +) + +// PossibleURLFileNameOperatorValues returns an array of possible values for the URLFileNameOperator const type. +func PossibleURLFileNameOperatorValues() []URLFileNameOperator { + return []URLFileNameOperator{URLFileNameOperatorAny, URLFileNameOperatorBeginsWith, URLFileNameOperatorContains, URLFileNameOperatorEndsWith, URLFileNameOperatorEqual, URLFileNameOperatorGreaterThan, URLFileNameOperatorGreaterThanOrEqual, URLFileNameOperatorLessThan, URLFileNameOperatorLessThanOrEqual, URLFileNameOperatorRegEx} +} + +// URLPathOperator enumerates the values for url path operator. +type URLPathOperator string + +const ( + // URLPathOperatorAny ... + URLPathOperatorAny URLPathOperator = "Any" + // URLPathOperatorBeginsWith ... + URLPathOperatorBeginsWith URLPathOperator = "BeginsWith" + // URLPathOperatorContains ... + URLPathOperatorContains URLPathOperator = "Contains" + // URLPathOperatorEndsWith ... + URLPathOperatorEndsWith URLPathOperator = "EndsWith" + // URLPathOperatorEqual ... + URLPathOperatorEqual URLPathOperator = "Equal" + // URLPathOperatorGreaterThan ... + URLPathOperatorGreaterThan URLPathOperator = "GreaterThan" + // URLPathOperatorGreaterThanOrEqual ... + URLPathOperatorGreaterThanOrEqual URLPathOperator = "GreaterThanOrEqual" + // URLPathOperatorLessThan ... + URLPathOperatorLessThan URLPathOperator = "LessThan" + // URLPathOperatorLessThanOrEqual ... + URLPathOperatorLessThanOrEqual URLPathOperator = "LessThanOrEqual" + // URLPathOperatorRegEx ... + URLPathOperatorRegEx URLPathOperator = "RegEx" + // URLPathOperatorWildcard ... + URLPathOperatorWildcard URLPathOperator = "Wildcard" +) + +// PossibleURLPathOperatorValues returns an array of possible values for the URLPathOperator const type. +func PossibleURLPathOperatorValues() []URLPathOperator { + return []URLPathOperator{URLPathOperatorAny, URLPathOperatorBeginsWith, URLPathOperatorContains, URLPathOperatorEndsWith, URLPathOperatorEqual, URLPathOperatorGreaterThan, URLPathOperatorGreaterThanOrEqual, URLPathOperatorLessThan, URLPathOperatorLessThanOrEqual, URLPathOperatorRegEx, URLPathOperatorWildcard} +} + +// ValidateSecretType enumerates the values for validate secret type. +type ValidateSecretType string + +const ( + // ValidateSecretTypeCustomerCertificate ... + ValidateSecretTypeCustomerCertificate ValidateSecretType = "CustomerCertificate" + // ValidateSecretTypeManagedCertificate ... + ValidateSecretTypeManagedCertificate ValidateSecretType = "ManagedCertificate" + // ValidateSecretTypeURLSigningKey ... + ValidateSecretTypeURLSigningKey ValidateSecretType = "UrlSigningKey" +) + +// PossibleValidateSecretTypeValues returns an array of possible values for the ValidateSecretType const type. +func PossibleValidateSecretTypeValues() []ValidateSecretType { + return []ValidateSecretType{ValidateSecretTypeCustomerCertificate, ValidateSecretTypeManagedCertificate, ValidateSecretTypeURLSigningKey} +} diff --git a/services/cdn/mgmt/2020-09-01/cdn/loganalytics.go b/services/cdn/mgmt/2020-09-01/cdn/loganalytics.go new file mode 100644 index 000000000000..477dc87a4afa --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/loganalytics.go @@ -0,0 +1,613 @@ +package cdn + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/date" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// LogAnalyticsClient is the cdn Management Client +type LogAnalyticsClient struct { + BaseClient +} + +// NewLogAnalyticsClient creates an instance of the LogAnalyticsClient client. +func NewLogAnalyticsClient(subscriptionID string, subscriptionID1 string) LogAnalyticsClient { + return NewLogAnalyticsClientWithBaseURI(DefaultBaseURI, subscriptionID, subscriptionID1) +} + +// NewLogAnalyticsClientWithBaseURI creates an instance of the LogAnalyticsClient client using a custom endpoint. Use +// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewLogAnalyticsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) LogAnalyticsClient { + return LogAnalyticsClient{NewWithBaseURI(baseURI, subscriptionID, subscriptionID1)} +} + +// GetLogAnalyticsLocations get all available location names for AFD log analytics report. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +func (client LogAnalyticsClient) GetLogAnalyticsLocations(ctx context.Context, resourceGroupName string, profileName string) (result ContinentsResponse, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LogAnalyticsClient.GetLogAnalyticsLocations") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.LogAnalyticsClient", "GetLogAnalyticsLocations", err.Error()) + } + + req, err := client.GetLogAnalyticsLocationsPreparer(ctx, resourceGroupName, profileName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.LogAnalyticsClient", "GetLogAnalyticsLocations", nil, "Failure preparing request") + return + } + + resp, err := client.GetLogAnalyticsLocationsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.LogAnalyticsClient", "GetLogAnalyticsLocations", resp, "Failure sending request") + return + } + + result, err = client.GetLogAnalyticsLocationsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.LogAnalyticsClient", "GetLogAnalyticsLocations", resp, "Failure responding to request") + return + } + + return +} + +// GetLogAnalyticsLocationsPreparer prepares the GetLogAnalyticsLocations request. +func (client LogAnalyticsClient) GetLogAnalyticsLocationsPreparer(ctx context.Context, resourceGroupName string, profileName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/getLogAnalyticsLocations", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetLogAnalyticsLocationsSender sends the GetLogAnalyticsLocations request. The method will close the +// http.Response Body if it receives an error. +func (client LogAnalyticsClient) GetLogAnalyticsLocationsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetLogAnalyticsLocationsResponder handles the response to the GetLogAnalyticsLocations request. The method always +// closes the http.Response Body. +func (client LogAnalyticsClient) GetLogAnalyticsLocationsResponder(resp *http.Response) (result ContinentsResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetLogAnalyticsMetrics get log report for AFD profile +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// granularity - +func (client LogAnalyticsClient) GetLogAnalyticsMetrics(ctx context.Context, resourceGroupName string, profileName string, metrics []string, dateTimeBegin date.Time, dateTimeEnd date.Time, granularity string, groupBy []string, continents []string, countryOrRegions []string, customDomains []string, protocols []string) (result MetricsResponse, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LogAnalyticsClient.GetLogAnalyticsMetrics") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: metrics, + Constraints: []validation.Constraint{{Target: "metrics", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.LogAnalyticsClient", "GetLogAnalyticsMetrics", err.Error()) + } + + req, err := client.GetLogAnalyticsMetricsPreparer(ctx, resourceGroupName, profileName, metrics, dateTimeBegin, dateTimeEnd, granularity, groupBy, continents, countryOrRegions, customDomains, protocols) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.LogAnalyticsClient", "GetLogAnalyticsMetrics", nil, "Failure preparing request") + return + } + + resp, err := client.GetLogAnalyticsMetricsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.LogAnalyticsClient", "GetLogAnalyticsMetrics", resp, "Failure sending request") + return + } + + result, err = client.GetLogAnalyticsMetricsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.LogAnalyticsClient", "GetLogAnalyticsMetrics", resp, "Failure responding to request") + return + } + + return +} + +// GetLogAnalyticsMetricsPreparer prepares the GetLogAnalyticsMetrics request. +func (client LogAnalyticsClient) GetLogAnalyticsMetricsPreparer(ctx context.Context, resourceGroupName string, profileName string, metrics []string, dateTimeBegin date.Time, dateTimeEnd date.Time, granularity string, groupBy []string, continents []string, countryOrRegions []string, customDomains []string, protocols []string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + "dateTimeBegin": autorest.Encode("query", dateTimeBegin), + "dateTimeEnd": autorest.Encode("query", dateTimeEnd), + "granularity": autorest.Encode("query", granularity), + "metrics": autorest.Encode("query", metrics, ","), + } + if groupBy != nil && len(groupBy) > 0 { + queryParameters["groupBy"] = autorest.Encode("query", groupBy, ",") + } + if continents != nil && len(continents) > 0 { + queryParameters["continents"] = autorest.Encode("query", continents, ",") + } + if countryOrRegions != nil && len(countryOrRegions) > 0 { + queryParameters["countryOrRegions"] = autorest.Encode("query", countryOrRegions, ",") + } + if customDomains != nil && len(customDomains) > 0 { + queryParameters["customDomains"] = autorest.Encode("query", customDomains, ",") + } + if protocols != nil && len(protocols) > 0 { + queryParameters["protocols"] = autorest.Encode("query", protocols, ",") + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/getLogAnalyticsMetrics", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetLogAnalyticsMetricsSender sends the GetLogAnalyticsMetrics request. The method will close the +// http.Response Body if it receives an error. +func (client LogAnalyticsClient) GetLogAnalyticsMetricsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetLogAnalyticsMetricsResponder handles the response to the GetLogAnalyticsMetrics request. The method always +// closes the http.Response Body. +func (client LogAnalyticsClient) GetLogAnalyticsMetricsResponder(resp *http.Response) (result MetricsResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetLogAnalyticsRankings get log analytics ranking report for AFD profile +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +func (client LogAnalyticsClient) GetLogAnalyticsRankings(ctx context.Context, resourceGroupName string, profileName string, rankings []string, metrics []string, maxRanking float64, dateTimeBegin date.Time, dateTimeEnd date.Time, customDomains []string) (result RankingsResponse, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LogAnalyticsClient.GetLogAnalyticsRankings") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: rankings, + Constraints: []validation.Constraint{{Target: "rankings", Name: validation.Null, Rule: true, Chain: nil}}}, + {TargetValue: metrics, + Constraints: []validation.Constraint{{Target: "metrics", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.LogAnalyticsClient", "GetLogAnalyticsRankings", err.Error()) + } + + req, err := client.GetLogAnalyticsRankingsPreparer(ctx, resourceGroupName, profileName, rankings, metrics, maxRanking, dateTimeBegin, dateTimeEnd, customDomains) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.LogAnalyticsClient", "GetLogAnalyticsRankings", nil, "Failure preparing request") + return + } + + resp, err := client.GetLogAnalyticsRankingsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.LogAnalyticsClient", "GetLogAnalyticsRankings", resp, "Failure sending request") + return + } + + result, err = client.GetLogAnalyticsRankingsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.LogAnalyticsClient", "GetLogAnalyticsRankings", resp, "Failure responding to request") + return + } + + return +} + +// GetLogAnalyticsRankingsPreparer prepares the GetLogAnalyticsRankings request. +func (client LogAnalyticsClient) GetLogAnalyticsRankingsPreparer(ctx context.Context, resourceGroupName string, profileName string, rankings []string, metrics []string, maxRanking float64, dateTimeBegin date.Time, dateTimeEnd date.Time, customDomains []string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + "dateTimeBegin": autorest.Encode("query", dateTimeBegin), + "dateTimeEnd": autorest.Encode("query", dateTimeEnd), + "maxRanking": autorest.Encode("query", maxRanking), + "metrics": autorest.Encode("query", metrics, ","), + "rankings": autorest.Encode("query", rankings, ","), + } + if customDomains != nil && len(customDomains) > 0 { + queryParameters["customDomains"] = autorest.Encode("query", customDomains, ",") + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/getLogAnalyticsRankings", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetLogAnalyticsRankingsSender sends the GetLogAnalyticsRankings request. The method will close the +// http.Response Body if it receives an error. +func (client LogAnalyticsClient) GetLogAnalyticsRankingsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetLogAnalyticsRankingsResponder handles the response to the GetLogAnalyticsRankings request. The method always +// closes the http.Response Body. +func (client LogAnalyticsClient) GetLogAnalyticsRankingsResponder(resp *http.Response) (result RankingsResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetLogAnalyticsResources get all endpoints and custom domains available for AFD log report +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +func (client LogAnalyticsClient) GetLogAnalyticsResources(ctx context.Context, resourceGroupName string, profileName string) (result ResourcesResponse, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LogAnalyticsClient.GetLogAnalyticsResources") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.LogAnalyticsClient", "GetLogAnalyticsResources", err.Error()) + } + + req, err := client.GetLogAnalyticsResourcesPreparer(ctx, resourceGroupName, profileName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.LogAnalyticsClient", "GetLogAnalyticsResources", nil, "Failure preparing request") + return + } + + resp, err := client.GetLogAnalyticsResourcesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.LogAnalyticsClient", "GetLogAnalyticsResources", resp, "Failure sending request") + return + } + + result, err = client.GetLogAnalyticsResourcesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.LogAnalyticsClient", "GetLogAnalyticsResources", resp, "Failure responding to request") + return + } + + return +} + +// GetLogAnalyticsResourcesPreparer prepares the GetLogAnalyticsResources request. +func (client LogAnalyticsClient) GetLogAnalyticsResourcesPreparer(ctx context.Context, resourceGroupName string, profileName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/getLogAnalyticsResources", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetLogAnalyticsResourcesSender sends the GetLogAnalyticsResources request. The method will close the +// http.Response Body if it receives an error. +func (client LogAnalyticsClient) GetLogAnalyticsResourcesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetLogAnalyticsResourcesResponder handles the response to the GetLogAnalyticsResources request. The method always +// closes the http.Response Body. +func (client LogAnalyticsClient) GetLogAnalyticsResourcesResponder(resp *http.Response) (result ResourcesResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetWafLogAnalyticsMetrics get Waf related log analytics report for AFD profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// granularity - +func (client LogAnalyticsClient) GetWafLogAnalyticsMetrics(ctx context.Context, resourceGroupName string, profileName string, metrics []string, dateTimeBegin date.Time, dateTimeEnd date.Time, granularity string, actions []string, groupBy []string, ruleTypes []string) (result WafMetricsResponse, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LogAnalyticsClient.GetWafLogAnalyticsMetrics") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: metrics, + Constraints: []validation.Constraint{{Target: "metrics", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.LogAnalyticsClient", "GetWafLogAnalyticsMetrics", err.Error()) + } + + req, err := client.GetWafLogAnalyticsMetricsPreparer(ctx, resourceGroupName, profileName, metrics, dateTimeBegin, dateTimeEnd, granularity, actions, groupBy, ruleTypes) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.LogAnalyticsClient", "GetWafLogAnalyticsMetrics", nil, "Failure preparing request") + return + } + + resp, err := client.GetWafLogAnalyticsMetricsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.LogAnalyticsClient", "GetWafLogAnalyticsMetrics", resp, "Failure sending request") + return + } + + result, err = client.GetWafLogAnalyticsMetricsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.LogAnalyticsClient", "GetWafLogAnalyticsMetrics", resp, "Failure responding to request") + return + } + + return +} + +// GetWafLogAnalyticsMetricsPreparer prepares the GetWafLogAnalyticsMetrics request. +func (client LogAnalyticsClient) GetWafLogAnalyticsMetricsPreparer(ctx context.Context, resourceGroupName string, profileName string, metrics []string, dateTimeBegin date.Time, dateTimeEnd date.Time, granularity string, actions []string, groupBy []string, ruleTypes []string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + "dateTimeBegin": autorest.Encode("query", dateTimeBegin), + "dateTimeEnd": autorest.Encode("query", dateTimeEnd), + "granularity": autorest.Encode("query", granularity), + "metrics": autorest.Encode("query", metrics, ","), + } + if actions != nil && len(actions) > 0 { + queryParameters["actions"] = autorest.Encode("query", actions, ",") + } + if groupBy != nil && len(groupBy) > 0 { + queryParameters["groupBy"] = autorest.Encode("query", groupBy, ",") + } + if ruleTypes != nil && len(ruleTypes) > 0 { + queryParameters["ruleTypes"] = autorest.Encode("query", ruleTypes, ",") + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/getWafLogAnalyticsMetrics", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetWafLogAnalyticsMetricsSender sends the GetWafLogAnalyticsMetrics request. The method will close the +// http.Response Body if it receives an error. +func (client LogAnalyticsClient) GetWafLogAnalyticsMetricsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetWafLogAnalyticsMetricsResponder handles the response to the GetWafLogAnalyticsMetrics request. The method always +// closes the http.Response Body. +func (client LogAnalyticsClient) GetWafLogAnalyticsMetricsResponder(resp *http.Response) (result WafMetricsResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetWafLogAnalyticsRankings get WAF log analytics charts for AFD profile +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +func (client LogAnalyticsClient) GetWafLogAnalyticsRankings(ctx context.Context, resourceGroupName string, profileName string, metrics []string, dateTimeBegin date.Time, dateTimeEnd date.Time, maxRanking float64, rankings []string, actions []string, ruleTypes []string) (result WafRankingsResponse, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LogAnalyticsClient.GetWafLogAnalyticsRankings") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: metrics, + Constraints: []validation.Constraint{{Target: "metrics", Name: validation.Null, Rule: true, Chain: nil}}}, + {TargetValue: rankings, + Constraints: []validation.Constraint{{Target: "rankings", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.LogAnalyticsClient", "GetWafLogAnalyticsRankings", err.Error()) + } + + req, err := client.GetWafLogAnalyticsRankingsPreparer(ctx, resourceGroupName, profileName, metrics, dateTimeBegin, dateTimeEnd, maxRanking, rankings, actions, ruleTypes) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.LogAnalyticsClient", "GetWafLogAnalyticsRankings", nil, "Failure preparing request") + return + } + + resp, err := client.GetWafLogAnalyticsRankingsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.LogAnalyticsClient", "GetWafLogAnalyticsRankings", resp, "Failure sending request") + return + } + + result, err = client.GetWafLogAnalyticsRankingsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.LogAnalyticsClient", "GetWafLogAnalyticsRankings", resp, "Failure responding to request") + return + } + + return +} + +// GetWafLogAnalyticsRankingsPreparer prepares the GetWafLogAnalyticsRankings request. +func (client LogAnalyticsClient) GetWafLogAnalyticsRankingsPreparer(ctx context.Context, resourceGroupName string, profileName string, metrics []string, dateTimeBegin date.Time, dateTimeEnd date.Time, maxRanking float64, rankings []string, actions []string, ruleTypes []string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + "dateTimeBegin": autorest.Encode("query", dateTimeBegin), + "dateTimeEnd": autorest.Encode("query", dateTimeEnd), + "maxRanking": autorest.Encode("query", maxRanking), + "metrics": autorest.Encode("query", metrics, ","), + "rankings": autorest.Encode("query", rankings, ","), + } + if actions != nil && len(actions) > 0 { + queryParameters["actions"] = autorest.Encode("query", actions, ",") + } + if ruleTypes != nil && len(ruleTypes) > 0 { + queryParameters["ruleTypes"] = autorest.Encode("query", ruleTypes, ",") + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/getWafLogAnalyticsRankings", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetWafLogAnalyticsRankingsSender sends the GetWafLogAnalyticsRankings request. The method will close the +// http.Response Body if it receives an error. +func (client LogAnalyticsClient) GetWafLogAnalyticsRankingsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetWafLogAnalyticsRankingsResponder handles the response to the GetWafLogAnalyticsRankings request. The method always +// closes the http.Response Body. +func (client LogAnalyticsClient) GetWafLogAnalyticsRankingsResponder(resp *http.Response) (result WafRankingsResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/cdn/mgmt/2020-09-01/cdn/managedrulesets.go b/services/cdn/mgmt/2020-09-01/cdn/managedrulesets.go new file mode 100644 index 000000000000..d3bd6c53b4a9 --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/managedrulesets.go @@ -0,0 +1,155 @@ +package cdn + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ManagedRuleSetsClient is the cdn Management Client +type ManagedRuleSetsClient struct { + BaseClient +} + +// NewManagedRuleSetsClient creates an instance of the ManagedRuleSetsClient client. +func NewManagedRuleSetsClient(subscriptionID string, subscriptionID1 string) ManagedRuleSetsClient { + return NewManagedRuleSetsClientWithBaseURI(DefaultBaseURI, subscriptionID, subscriptionID1) +} + +// NewManagedRuleSetsClientWithBaseURI creates an instance of the ManagedRuleSetsClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewManagedRuleSetsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) ManagedRuleSetsClient { + return ManagedRuleSetsClient{NewWithBaseURI(baseURI, subscriptionID, subscriptionID1)} +} + +// List lists all available managed rule sets. +func (client ManagedRuleSetsClient) List(ctx context.Context) (result ManagedRuleSetDefinitionListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ManagedRuleSetsClient.List") + defer func() { + sc := -1 + if result.mrsdl.Response.Response != nil { + sc = result.mrsdl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ManagedRuleSetsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.mrsdl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.ManagedRuleSetsClient", "List", resp, "Failure sending request") + return + } + + result.mrsdl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ManagedRuleSetsClient", "List", resp, "Failure responding to request") + return + } + if result.mrsdl.hasNextLink() && result.mrsdl.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ManagedRuleSetsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/CdnWebApplicationFirewallManagedRuleSets", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ManagedRuleSetsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ManagedRuleSetsClient) ListResponder(resp *http.Response) (result ManagedRuleSetDefinitionList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client ManagedRuleSetsClient) listNextResults(ctx context.Context, lastResults ManagedRuleSetDefinitionList) (result ManagedRuleSetDefinitionList, err error) { + req, err := lastResults.managedRuleSetDefinitionListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cdn.ManagedRuleSetsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cdn.ManagedRuleSetsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ManagedRuleSetsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ManagedRuleSetsClient) ListComplete(ctx context.Context) (result ManagedRuleSetDefinitionListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ManagedRuleSetsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} diff --git a/services/cdn/mgmt/2020-09-01/cdn/models.go b/services/cdn/mgmt/2020-09-01/cdn/models.go new file mode 100644 index 000000000000..ef204f071395 --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/models.go @@ -0,0 +1,11727 @@ +package cdn + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "encoding/json" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/date" + "github.com/Azure/go-autorest/autorest/to" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// The package's fully qualified name. +const fqdn = "github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2020-09-01/cdn" + +// AFDCustomDomainsCreateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type AFDCustomDomainsCreateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *AFDCustomDomainsCreateFuture) Result(client AFDCustomDomainsClient) (ad AFDDomain, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDCustomDomainsCreateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.AFDCustomDomainsCreateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if ad.Response.Response, err = future.GetResult(sender); err == nil && ad.Response.Response.StatusCode != http.StatusNoContent { + ad, err = client.CreateResponder(ad.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDCustomDomainsCreateFuture", "Result", ad.Response.Response, "Failure responding to request") + } + } + return +} + +// AFDCustomDomainsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type AFDCustomDomainsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *AFDCustomDomainsDeleteFuture) Result(client AFDCustomDomainsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDCustomDomainsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.AFDCustomDomainsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// AFDCustomDomainsRefreshValidationTokenFuture an abstraction for monitoring and retrieving the results of +// a long-running operation. +type AFDCustomDomainsRefreshValidationTokenFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *AFDCustomDomainsRefreshValidationTokenFuture) Result(client AFDCustomDomainsClient) (vt ValidationToken, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDCustomDomainsRefreshValidationTokenFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.AFDCustomDomainsRefreshValidationTokenFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vt.Response.Response, err = future.GetResult(sender); err == nil && vt.Response.Response.StatusCode != http.StatusNoContent { + vt, err = client.RefreshValidationTokenResponder(vt.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDCustomDomainsRefreshValidationTokenFuture", "Result", vt.Response.Response, "Failure responding to request") + } + } + return +} + +// AFDCustomDomainsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type AFDCustomDomainsUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *AFDCustomDomainsUpdateFuture) Result(client AFDCustomDomainsClient) (ad AFDDomain, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDCustomDomainsUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.AFDCustomDomainsUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if ad.Response.Response, err = future.GetResult(sender); err == nil && ad.Response.Response.StatusCode != http.StatusNoContent { + ad, err = client.UpdateResponder(ad.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDCustomDomainsUpdateFuture", "Result", ad.Response.Response, "Failure responding to request") + } + } + return +} + +// AFDDomain friendly domain name mapping to the endpoint hostname that the customer provides for branding +// purposes, e.g. www.contoso.com. +type AFDDomain struct { + autorest.Response `json:"-"` + *AFDDomainProperties `json:"properties,omitempty"` + // SystemData - READ-ONLY + SystemData *SystemData `json:"systemData,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AFDDomain. +func (ad AFDDomain) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ad.AFDDomainProperties != nil { + objectMap["properties"] = ad.AFDDomainProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for AFDDomain struct. +func (ad *AFDDomain) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var aFDDomainProperties AFDDomainProperties + err = json.Unmarshal(*v, &aFDDomainProperties) + if err != nil { + return err + } + ad.AFDDomainProperties = &aFDDomainProperties + } + case "systemData": + if v != nil { + var systemData SystemData + err = json.Unmarshal(*v, &systemData) + if err != nil { + return err + } + ad.SystemData = &systemData + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + ad.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ad.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ad.Type = &typeVar + } + } + } + + return nil +} + +// AFDDomainHTTPSParameters the JSON object that contains the properties to secure a domain. +type AFDDomainHTTPSParameters struct { + // CertificateType - Defines the source of the SSL certificate. Possible values include: 'AfdCertificateTypeCustomerCertificate', 'AfdCertificateTypeManagedCertificate' + CertificateType AfdCertificateType `json:"certificateType,omitempty"` + // MinimumTLSVersion - TLS protocol version that will be used for Https. Possible values include: 'TLS10', 'TLS12' + MinimumTLSVersion AfdMinimumTLSVersion `json:"minimumTlsVersion,omitempty"` + // Secret - Resource reference to the secret. ie. subs/rg/profile/secret + Secret *ResourceReference `json:"secret,omitempty"` +} + +// AFDDomainListResult result of the request to list domains. It contains a list of domain objects and a +// URL link to get the next set of results. +type AFDDomainListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of AzureFrontDoor domains within a profile. + Value *[]AFDDomain `json:"value,omitempty"` + // NextLink - URL to get the next set of domain objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for AFDDomainListResult. +func (adlr AFDDomainListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if adlr.NextLink != nil { + objectMap["nextLink"] = adlr.NextLink + } + return json.Marshal(objectMap) +} + +// AFDDomainListResultIterator provides access to a complete listing of AFDDomain values. +type AFDDomainListResultIterator struct { + i int + page AFDDomainListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *AFDDomainListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDDomainListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *AFDDomainListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter AFDDomainListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter AFDDomainListResultIterator) Response() AFDDomainListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter AFDDomainListResultIterator) Value() AFDDomain { + if !iter.page.NotDone() { + return AFDDomain{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the AFDDomainListResultIterator type. +func NewAFDDomainListResultIterator(page AFDDomainListResultPage) AFDDomainListResultIterator { + return AFDDomainListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (adlr AFDDomainListResult) IsEmpty() bool { + return adlr.Value == nil || len(*adlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (adlr AFDDomainListResult) hasNextLink() bool { + return adlr.NextLink != nil && len(*adlr.NextLink) != 0 +} + +// aFDDomainListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (adlr AFDDomainListResult) aFDDomainListResultPreparer(ctx context.Context) (*http.Request, error) { + if !adlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(adlr.NextLink))) +} + +// AFDDomainListResultPage contains a page of AFDDomain values. +type AFDDomainListResultPage struct { + fn func(context.Context, AFDDomainListResult) (AFDDomainListResult, error) + adlr AFDDomainListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *AFDDomainListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDDomainListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.adlr) + if err != nil { + return err + } + page.adlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *AFDDomainListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page AFDDomainListResultPage) NotDone() bool { + return !page.adlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page AFDDomainListResultPage) Response() AFDDomainListResult { + return page.adlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page AFDDomainListResultPage) Values() []AFDDomain { + if page.adlr.IsEmpty() { + return nil + } + return *page.adlr.Value +} + +// Creates a new instance of the AFDDomainListResultPage type. +func NewAFDDomainListResultPage(cur AFDDomainListResult, getNextPage func(context.Context, AFDDomainListResult) (AFDDomainListResult, error)) AFDDomainListResultPage { + return AFDDomainListResultPage{ + fn: getNextPage, + adlr: cur, + } +} + +// AFDDomainProperties the JSON object that contains the properties of the domain to create. +type AFDDomainProperties struct { + // TLSSettings - The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default. + TLSSettings *AFDDomainHTTPSParameters `json:"tlsSettings,omitempty"` + // AzureDNSZone - Resource reference to the Azure DNS zone + AzureDNSZone *ResourceReference `json:"azureDnsZone,omitempty"` + // ProvisioningState - READ-ONLY; Provisioning status. Possible values include: 'Succeeded', 'Failed', 'Updating', 'Deleting', 'Creating' + ProvisioningState AfdProvisioningState `json:"provisioningState,omitempty"` + // DeploymentStatus - READ-ONLY; Possible values include: 'DeploymentStatusNotStarted', 'DeploymentStatusInProgress', 'DeploymentStatusSucceeded', 'DeploymentStatusFailed' + DeploymentStatus DeploymentStatus `json:"deploymentStatus,omitempty"` + // DomainValidationState - READ-ONLY; Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. DCV stands for DomainControlValidation. Possible values include: 'Unknown', 'Submitting', 'Pending', 'TimedOut', 'PendingRevalidation', 'Approved' + DomainValidationState DomainValidationState `json:"domainValidationState,omitempty"` + // HostName - The host name of the domain. Must be a domain name. + HostName *string `json:"hostName,omitempty"` + // ValidationProperties - READ-ONLY; Values the customer needs to validate domain ownership + ValidationProperties *DomainValidationProperties `json:"validationProperties,omitempty"` +} + +// MarshalJSON is the custom marshaler for AFDDomainProperties. +func (adp AFDDomainProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if adp.TLSSettings != nil { + objectMap["tlsSettings"] = adp.TLSSettings + } + if adp.AzureDNSZone != nil { + objectMap["azureDnsZone"] = adp.AzureDNSZone + } + if adp.HostName != nil { + objectMap["hostName"] = adp.HostName + } + return json.Marshal(objectMap) +} + +// AFDDomainUpdateParameters the domain JSON object required for domain creation or update. +type AFDDomainUpdateParameters struct { + *AFDDomainUpdatePropertiesParameters `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for AFDDomainUpdateParameters. +func (adup AFDDomainUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if adup.AFDDomainUpdatePropertiesParameters != nil { + objectMap["properties"] = adup.AFDDomainUpdatePropertiesParameters + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for AFDDomainUpdateParameters struct. +func (adup *AFDDomainUpdateParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var aFDDomainUpdatePropertiesParameters AFDDomainUpdatePropertiesParameters + err = json.Unmarshal(*v, &aFDDomainUpdatePropertiesParameters) + if err != nil { + return err + } + adup.AFDDomainUpdatePropertiesParameters = &aFDDomainUpdatePropertiesParameters + } + } + } + + return nil +} + +// AFDDomainUpdatePropertiesParameters the JSON object that contains the properties of the domain to +// create. +type AFDDomainUpdatePropertiesParameters struct { + // TLSSettings - The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default. + TLSSettings *AFDDomainHTTPSParameters `json:"tlsSettings,omitempty"` + // AzureDNSZone - Resource reference to the Azure DNS zone + AzureDNSZone *ResourceReference `json:"azureDnsZone,omitempty"` +} + +// AFDEndpoint CDN endpoint is the entity within a CDN profile containing configuration information such as +// origin, protocol, content caching and delivery behavior. The AzureFrontDoor endpoint uses the URL format +// .azureedge.net. +type AFDEndpoint struct { + autorest.Response `json:"-"` + *AFDEndpointProperties `json:"properties,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // SystemData - READ-ONLY + SystemData *SystemData `json:"systemData,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AFDEndpoint. +func (ae AFDEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ae.AFDEndpointProperties != nil { + objectMap["properties"] = ae.AFDEndpointProperties + } + if ae.Location != nil { + objectMap["location"] = ae.Location + } + if ae.Tags != nil { + objectMap["tags"] = ae.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for AFDEndpoint struct. +func (ae *AFDEndpoint) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var aFDEndpointProperties AFDEndpointProperties + err = json.Unmarshal(*v, &aFDEndpointProperties) + if err != nil { + return err + } + ae.AFDEndpointProperties = &aFDEndpointProperties + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + ae.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + ae.Tags = tags + } + case "systemData": + if v != nil { + var systemData SystemData + err = json.Unmarshal(*v, &systemData) + if err != nil { + return err + } + ae.SystemData = &systemData + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + ae.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ae.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ae.Type = &typeVar + } + } + } + + return nil +} + +// AFDEndpointListResult result of the request to list endpoints. It contains a list of endpoint objects +// and a URL link to get the next set of results. +type AFDEndpointListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of AzureFrontDoor endpoints within a profile + Value *[]AFDEndpoint `json:"value,omitempty"` + // NextLink - URL to get the next set of endpoint objects if there is any. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for AFDEndpointListResult. +func (aelr AFDEndpointListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if aelr.NextLink != nil { + objectMap["nextLink"] = aelr.NextLink + } + return json.Marshal(objectMap) +} + +// AFDEndpointListResultIterator provides access to a complete listing of AFDEndpoint values. +type AFDEndpointListResultIterator struct { + i int + page AFDEndpointListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *AFDEndpointListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDEndpointListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *AFDEndpointListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter AFDEndpointListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter AFDEndpointListResultIterator) Response() AFDEndpointListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter AFDEndpointListResultIterator) Value() AFDEndpoint { + if !iter.page.NotDone() { + return AFDEndpoint{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the AFDEndpointListResultIterator type. +func NewAFDEndpointListResultIterator(page AFDEndpointListResultPage) AFDEndpointListResultIterator { + return AFDEndpointListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (aelr AFDEndpointListResult) IsEmpty() bool { + return aelr.Value == nil || len(*aelr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (aelr AFDEndpointListResult) hasNextLink() bool { + return aelr.NextLink != nil && len(*aelr.NextLink) != 0 +} + +// aFDEndpointListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (aelr AFDEndpointListResult) aFDEndpointListResultPreparer(ctx context.Context) (*http.Request, error) { + if !aelr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(aelr.NextLink))) +} + +// AFDEndpointListResultPage contains a page of AFDEndpoint values. +type AFDEndpointListResultPage struct { + fn func(context.Context, AFDEndpointListResult) (AFDEndpointListResult, error) + aelr AFDEndpointListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *AFDEndpointListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDEndpointListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.aelr) + if err != nil { + return err + } + page.aelr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *AFDEndpointListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page AFDEndpointListResultPage) NotDone() bool { + return !page.aelr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page AFDEndpointListResultPage) Response() AFDEndpointListResult { + return page.aelr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page AFDEndpointListResultPage) Values() []AFDEndpoint { + if page.aelr.IsEmpty() { + return nil + } + return *page.aelr.Value +} + +// Creates a new instance of the AFDEndpointListResultPage type. +func NewAFDEndpointListResultPage(cur AFDEndpointListResult, getNextPage func(context.Context, AFDEndpointListResult) (AFDEndpointListResult, error)) AFDEndpointListResultPage { + return AFDEndpointListResultPage{ + fn: getNextPage, + aelr: cur, + } +} + +// AFDEndpointProperties the JSON object that contains the properties required to create an endpoint. +type AFDEndpointProperties struct { + // OriginResponseTimeoutSeconds - Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns. + OriginResponseTimeoutSeconds *int32 `json:"originResponseTimeoutSeconds,omitempty"` + // EnabledState - Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'EnabledStateEnabled', 'EnabledStateDisabled' + EnabledState EnabledState `json:"enabledState,omitempty"` + // ProvisioningState - READ-ONLY; Provisioning status. Possible values include: 'Succeeded', 'Failed', 'Updating', 'Deleting', 'Creating' + ProvisioningState AfdProvisioningState `json:"provisioningState,omitempty"` + // DeploymentStatus - READ-ONLY; Possible values include: 'DeploymentStatusNotStarted', 'DeploymentStatusInProgress', 'DeploymentStatusSucceeded', 'DeploymentStatusFailed' + DeploymentStatus DeploymentStatus `json:"deploymentStatus,omitempty"` + // HostName - READ-ONLY; The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net + HostName *string `json:"hostName,omitempty"` +} + +// MarshalJSON is the custom marshaler for AFDEndpointProperties. +func (aep AFDEndpointProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if aep.OriginResponseTimeoutSeconds != nil { + objectMap["originResponseTimeoutSeconds"] = aep.OriginResponseTimeoutSeconds + } + if aep.EnabledState != "" { + objectMap["enabledState"] = aep.EnabledState + } + return json.Marshal(objectMap) +} + +// AFDEndpointPropertiesUpdateParameters the JSON object containing endpoint update parameters. +type AFDEndpointPropertiesUpdateParameters struct { + // OriginResponseTimeoutSeconds - Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns. + OriginResponseTimeoutSeconds *int32 `json:"originResponseTimeoutSeconds,omitempty"` + // EnabledState - Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'EnabledStateEnabled', 'EnabledStateDisabled' + EnabledState EnabledState `json:"enabledState,omitempty"` +} + +// AFDEndpointsCreateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type AFDEndpointsCreateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *AFDEndpointsCreateFuture) Result(client AFDEndpointsClient) (ae AFDEndpoint, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsCreateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.AFDEndpointsCreateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if ae.Response.Response, err = future.GetResult(sender); err == nil && ae.Response.Response.StatusCode != http.StatusNoContent { + ae, err = client.CreateResponder(ae.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsCreateFuture", "Result", ae.Response.Response, "Failure responding to request") + } + } + return +} + +// AFDEndpointsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type AFDEndpointsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *AFDEndpointsDeleteFuture) Result(client AFDEndpointsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.AFDEndpointsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// AFDEndpointsPurgeContentFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type AFDEndpointsPurgeContentFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *AFDEndpointsPurgeContentFuture) Result(client AFDEndpointsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsPurgeContentFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.AFDEndpointsPurgeContentFuture") + return + } + ar.Response = future.Response() + return +} + +// AFDEndpointsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type AFDEndpointsUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *AFDEndpointsUpdateFuture) Result(client AFDEndpointsClient) (ae AFDEndpoint, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.AFDEndpointsUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if ae.Response.Response, err = future.GetResult(sender); err == nil && ae.Response.Response.StatusCode != http.StatusNoContent { + ae, err = client.UpdateResponder(ae.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDEndpointsUpdateFuture", "Result", ae.Response.Response, "Failure responding to request") + } + } + return +} + +// AFDEndpointUpdateParameters properties required to create or update an endpoint. +type AFDEndpointUpdateParameters struct { + // Tags - Endpoint tags. + Tags map[string]*string `json:"tags"` + *AFDEndpointPropertiesUpdateParameters `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for AFDEndpointUpdateParameters. +func (aeup AFDEndpointUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if aeup.Tags != nil { + objectMap["tags"] = aeup.Tags + } + if aeup.AFDEndpointPropertiesUpdateParameters != nil { + objectMap["properties"] = aeup.AFDEndpointPropertiesUpdateParameters + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for AFDEndpointUpdateParameters struct. +func (aeup *AFDEndpointUpdateParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + aeup.Tags = tags + } + case "properties": + if v != nil { + var aFDEndpointPropertiesUpdateParameters AFDEndpointPropertiesUpdateParameters + err = json.Unmarshal(*v, &aFDEndpointPropertiesUpdateParameters) + if err != nil { + return err + } + aeup.AFDEndpointPropertiesUpdateParameters = &aFDEndpointPropertiesUpdateParameters + } + } + } + + return nil +} + +// AfdErrorResponse common error response for all Azure Resource Manager APIs to return error details for +// failed operations. (This also follows the OData error response format.). +type AfdErrorResponse struct { + // Error - The error object. + Error *ErrorResponse `json:"error,omitempty"` +} + +// AFDOrigin CDN origin is the source of the content being delivered via CDN. When the edge nodes +// represented by an endpoint do not have the requested content cached, they attempt to fetch it from one +// or more of the configured origins. +type AFDOrigin struct { + autorest.Response `json:"-"` + *AFDOriginProperties `json:"properties,omitempty"` + // SystemData - READ-ONLY + SystemData *SystemData `json:"systemData,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AFDOrigin. +func (ao AFDOrigin) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ao.AFDOriginProperties != nil { + objectMap["properties"] = ao.AFDOriginProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for AFDOrigin struct. +func (ao *AFDOrigin) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var aFDOriginProperties AFDOriginProperties + err = json.Unmarshal(*v, &aFDOriginProperties) + if err != nil { + return err + } + ao.AFDOriginProperties = &aFDOriginProperties + } + case "systemData": + if v != nil { + var systemData SystemData + err = json.Unmarshal(*v, &systemData) + if err != nil { + return err + } + ao.SystemData = &systemData + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + ao.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ao.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ao.Type = &typeVar + } + } + } + + return nil +} + +// AFDOriginGroup aFDOrigin group comprising of origins is used for load balancing to origins when the +// content cannot be served from CDN. +type AFDOriginGroup struct { + autorest.Response `json:"-"` + *AFDOriginGroupProperties `json:"properties,omitempty"` + // SystemData - READ-ONLY + SystemData *SystemData `json:"systemData,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AFDOriginGroup. +func (aog AFDOriginGroup) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if aog.AFDOriginGroupProperties != nil { + objectMap["properties"] = aog.AFDOriginGroupProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for AFDOriginGroup struct. +func (aog *AFDOriginGroup) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var aFDOriginGroupProperties AFDOriginGroupProperties + err = json.Unmarshal(*v, &aFDOriginGroupProperties) + if err != nil { + return err + } + aog.AFDOriginGroupProperties = &aFDOriginGroupProperties + } + case "systemData": + if v != nil { + var systemData SystemData + err = json.Unmarshal(*v, &systemData) + if err != nil { + return err + } + aog.SystemData = &systemData + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + aog.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + aog.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + aog.Type = &typeVar + } + } + } + + return nil +} + +// AFDOriginGroupListResult result of the request to list origin groups. It contains a list of origin +// groups objects and a URL link to get the next set of results. +type AFDOriginGroupListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of CDN origin groups within an endpoint + Value *[]AFDOriginGroup `json:"value,omitempty"` + // NextLink - URL to get the next set of origin objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for AFDOriginGroupListResult. +func (aoglr AFDOriginGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if aoglr.NextLink != nil { + objectMap["nextLink"] = aoglr.NextLink + } + return json.Marshal(objectMap) +} + +// AFDOriginGroupListResultIterator provides access to a complete listing of AFDOriginGroup values. +type AFDOriginGroupListResultIterator struct { + i int + page AFDOriginGroupListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *AFDOriginGroupListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDOriginGroupListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *AFDOriginGroupListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter AFDOriginGroupListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter AFDOriginGroupListResultIterator) Response() AFDOriginGroupListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter AFDOriginGroupListResultIterator) Value() AFDOriginGroup { + if !iter.page.NotDone() { + return AFDOriginGroup{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the AFDOriginGroupListResultIterator type. +func NewAFDOriginGroupListResultIterator(page AFDOriginGroupListResultPage) AFDOriginGroupListResultIterator { + return AFDOriginGroupListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (aoglr AFDOriginGroupListResult) IsEmpty() bool { + return aoglr.Value == nil || len(*aoglr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (aoglr AFDOriginGroupListResult) hasNextLink() bool { + return aoglr.NextLink != nil && len(*aoglr.NextLink) != 0 +} + +// aFDOriginGroupListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (aoglr AFDOriginGroupListResult) aFDOriginGroupListResultPreparer(ctx context.Context) (*http.Request, error) { + if !aoglr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(aoglr.NextLink))) +} + +// AFDOriginGroupListResultPage contains a page of AFDOriginGroup values. +type AFDOriginGroupListResultPage struct { + fn func(context.Context, AFDOriginGroupListResult) (AFDOriginGroupListResult, error) + aoglr AFDOriginGroupListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *AFDOriginGroupListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDOriginGroupListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.aoglr) + if err != nil { + return err + } + page.aoglr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *AFDOriginGroupListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page AFDOriginGroupListResultPage) NotDone() bool { + return !page.aoglr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page AFDOriginGroupListResultPage) Response() AFDOriginGroupListResult { + return page.aoglr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page AFDOriginGroupListResultPage) Values() []AFDOriginGroup { + if page.aoglr.IsEmpty() { + return nil + } + return *page.aoglr.Value +} + +// Creates a new instance of the AFDOriginGroupListResultPage type. +func NewAFDOriginGroupListResultPage(cur AFDOriginGroupListResult, getNextPage func(context.Context, AFDOriginGroupListResult) (AFDOriginGroupListResult, error)) AFDOriginGroupListResultPage { + return AFDOriginGroupListResultPage{ + fn: getNextPage, + aoglr: cur, + } +} + +// AFDOriginGroupProperties the JSON object that contains the properties of the origin group. +type AFDOriginGroupProperties struct { + // LoadBalancingSettings - Load balancing settings for a backend pool + LoadBalancingSettings *LoadBalancingSettingsParameters `json:"loadBalancingSettings,omitempty"` + // HealthProbeSettings - Health probe settings to the origin that is used to determine the health of the origin. + HealthProbeSettings *HealthProbeParameters `json:"healthProbeSettings,omitempty"` + // TrafficRestorationTimeToHealedOrNewEndpointsInMinutes - Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported. + TrafficRestorationTimeToHealedOrNewEndpointsInMinutes *int32 `json:"trafficRestorationTimeToHealedOrNewEndpointsInMinutes,omitempty"` + // ResponseBasedAfdOriginErrorDetectionSettings - The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported. + ResponseBasedAfdOriginErrorDetectionSettings *ResponseBasedOriginErrorDetectionParameters `json:"responseBasedAfdOriginErrorDetectionSettings,omitempty"` + // SessionAffinityState - Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'. Possible values include: 'EnabledStateEnabled', 'EnabledStateDisabled' + SessionAffinityState EnabledState `json:"sessionAffinityState,omitempty"` + // ProvisioningState - READ-ONLY; Provisioning status. Possible values include: 'Succeeded', 'Failed', 'Updating', 'Deleting', 'Creating' + ProvisioningState AfdProvisioningState `json:"provisioningState,omitempty"` + // DeploymentStatus - READ-ONLY; Possible values include: 'DeploymentStatusNotStarted', 'DeploymentStatusInProgress', 'DeploymentStatusSucceeded', 'DeploymentStatusFailed' + DeploymentStatus DeploymentStatus `json:"deploymentStatus,omitempty"` +} + +// MarshalJSON is the custom marshaler for AFDOriginGroupProperties. +func (aogp AFDOriginGroupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if aogp.LoadBalancingSettings != nil { + objectMap["loadBalancingSettings"] = aogp.LoadBalancingSettings + } + if aogp.HealthProbeSettings != nil { + objectMap["healthProbeSettings"] = aogp.HealthProbeSettings + } + if aogp.TrafficRestorationTimeToHealedOrNewEndpointsInMinutes != nil { + objectMap["trafficRestorationTimeToHealedOrNewEndpointsInMinutes"] = aogp.TrafficRestorationTimeToHealedOrNewEndpointsInMinutes + } + if aogp.ResponseBasedAfdOriginErrorDetectionSettings != nil { + objectMap["responseBasedAfdOriginErrorDetectionSettings"] = aogp.ResponseBasedAfdOriginErrorDetectionSettings + } + if aogp.SessionAffinityState != "" { + objectMap["sessionAffinityState"] = aogp.SessionAffinityState + } + return json.Marshal(objectMap) +} + +// AFDOriginGroupsCreateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type AFDOriginGroupsCreateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *AFDOriginGroupsCreateFuture) Result(client AFDOriginGroupsClient) (aog AFDOriginGroup, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginGroupsCreateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.AFDOriginGroupsCreateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if aog.Response.Response, err = future.GetResult(sender); err == nil && aog.Response.Response.StatusCode != http.StatusNoContent { + aog, err = client.CreateResponder(aog.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginGroupsCreateFuture", "Result", aog.Response.Response, "Failure responding to request") + } + } + return +} + +// AFDOriginGroupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type AFDOriginGroupsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *AFDOriginGroupsDeleteFuture) Result(client AFDOriginGroupsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginGroupsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.AFDOriginGroupsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// AFDOriginGroupsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type AFDOriginGroupsUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *AFDOriginGroupsUpdateFuture) Result(client AFDOriginGroupsClient) (aog AFDOriginGroup, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginGroupsUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.AFDOriginGroupsUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if aog.Response.Response, err = future.GetResult(sender); err == nil && aog.Response.Response.StatusCode != http.StatusNoContent { + aog, err = client.UpdateResponder(aog.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginGroupsUpdateFuture", "Result", aog.Response.Response, "Failure responding to request") + } + } + return +} + +// AFDOriginGroupUpdateParameters aFDOrigin group properties needed for origin group creation or update. +type AFDOriginGroupUpdateParameters struct { + *AFDOriginGroupUpdatePropertiesParameters `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for AFDOriginGroupUpdateParameters. +func (aogup AFDOriginGroupUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if aogup.AFDOriginGroupUpdatePropertiesParameters != nil { + objectMap["properties"] = aogup.AFDOriginGroupUpdatePropertiesParameters + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for AFDOriginGroupUpdateParameters struct. +func (aogup *AFDOriginGroupUpdateParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var aFDOriginGroupUpdatePropertiesParameters AFDOriginGroupUpdatePropertiesParameters + err = json.Unmarshal(*v, &aFDOriginGroupUpdatePropertiesParameters) + if err != nil { + return err + } + aogup.AFDOriginGroupUpdatePropertiesParameters = &aFDOriginGroupUpdatePropertiesParameters + } + } + } + + return nil +} + +// AFDOriginGroupUpdatePropertiesParameters the JSON object that contains the properties of the origin +// group. +type AFDOriginGroupUpdatePropertiesParameters struct { + // LoadBalancingSettings - Load balancing settings for a backend pool + LoadBalancingSettings *LoadBalancingSettingsParameters `json:"loadBalancingSettings,omitempty"` + // HealthProbeSettings - Health probe settings to the origin that is used to determine the health of the origin. + HealthProbeSettings *HealthProbeParameters `json:"healthProbeSettings,omitempty"` + // TrafficRestorationTimeToHealedOrNewEndpointsInMinutes - Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported. + TrafficRestorationTimeToHealedOrNewEndpointsInMinutes *int32 `json:"trafficRestorationTimeToHealedOrNewEndpointsInMinutes,omitempty"` + // ResponseBasedAfdOriginErrorDetectionSettings - The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported. + ResponseBasedAfdOriginErrorDetectionSettings *ResponseBasedOriginErrorDetectionParameters `json:"responseBasedAfdOriginErrorDetectionSettings,omitempty"` + // SessionAffinityState - Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'. Possible values include: 'EnabledStateEnabled', 'EnabledStateDisabled' + SessionAffinityState EnabledState `json:"sessionAffinityState,omitempty"` +} + +// AFDOriginListResult result of the request to list origins. It contains a list of origin objects and a +// URL link to get the next set of results. +type AFDOriginListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of CDN origins within an endpoint + Value *[]AFDOrigin `json:"value,omitempty"` + // NextLink - URL to get the next set of origin objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for AFDOriginListResult. +func (aolr AFDOriginListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if aolr.NextLink != nil { + objectMap["nextLink"] = aolr.NextLink + } + return json.Marshal(objectMap) +} + +// AFDOriginListResultIterator provides access to a complete listing of AFDOrigin values. +type AFDOriginListResultIterator struct { + i int + page AFDOriginListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *AFDOriginListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDOriginListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *AFDOriginListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter AFDOriginListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter AFDOriginListResultIterator) Response() AFDOriginListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter AFDOriginListResultIterator) Value() AFDOrigin { + if !iter.page.NotDone() { + return AFDOrigin{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the AFDOriginListResultIterator type. +func NewAFDOriginListResultIterator(page AFDOriginListResultPage) AFDOriginListResultIterator { + return AFDOriginListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (aolr AFDOriginListResult) IsEmpty() bool { + return aolr.Value == nil || len(*aolr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (aolr AFDOriginListResult) hasNextLink() bool { + return aolr.NextLink != nil && len(*aolr.NextLink) != 0 +} + +// aFDOriginListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (aolr AFDOriginListResult) aFDOriginListResultPreparer(ctx context.Context) (*http.Request, error) { + if !aolr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(aolr.NextLink))) +} + +// AFDOriginListResultPage contains a page of AFDOrigin values. +type AFDOriginListResultPage struct { + fn func(context.Context, AFDOriginListResult) (AFDOriginListResult, error) + aolr AFDOriginListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *AFDOriginListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AFDOriginListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.aolr) + if err != nil { + return err + } + page.aolr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *AFDOriginListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page AFDOriginListResultPage) NotDone() bool { + return !page.aolr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page AFDOriginListResultPage) Response() AFDOriginListResult { + return page.aolr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page AFDOriginListResultPage) Values() []AFDOrigin { + if page.aolr.IsEmpty() { + return nil + } + return *page.aolr.Value +} + +// Creates a new instance of the AFDOriginListResultPage type. +func NewAFDOriginListResultPage(cur AFDOriginListResult, getNextPage func(context.Context, AFDOriginListResult) (AFDOriginListResult, error)) AFDOriginListResultPage { + return AFDOriginListResultPage{ + fn: getNextPage, + aolr: cur, + } +} + +// AFDOriginProperties the JSON object that contains the properties of the origin. +type AFDOriginProperties struct { + // AzureOrigin - Resource reference to the Azure origin resource. + AzureOrigin *ResourceReference `json:"azureOrigin,omitempty"` + // HostName - The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint. + HostName *string `json:"hostName,omitempty"` + // HTTPPort - The value of the HTTP port. Must be between 1 and 65535. + HTTPPort *int32 `json:"httpPort,omitempty"` + // HTTPSPort - The value of the HTTPS port. Must be between 1 and 65535. + HTTPSPort *int32 `json:"httpsPort,omitempty"` + // OriginHostHeader - The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint + OriginHostHeader *string `json:"originHostHeader,omitempty"` + // Priority - Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5 + Priority *int32 `json:"priority,omitempty"` + // Weight - Weight of the origin in given origin group for load balancing. Must be between 1 and 1000 + Weight *int32 `json:"weight,omitempty"` + // SharedPrivateLinkResource - The properties of the private link resource for private origin. + SharedPrivateLinkResource interface{} `json:"sharedPrivateLinkResource,omitempty"` + // EnabledState - Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. Possible values include: 'EnabledStateEnabled', 'EnabledStateDisabled' + EnabledState EnabledState `json:"enabledState,omitempty"` + // ProvisioningState - READ-ONLY; Provisioning status. Possible values include: 'Succeeded', 'Failed', 'Updating', 'Deleting', 'Creating' + ProvisioningState AfdProvisioningState `json:"provisioningState,omitempty"` + // DeploymentStatus - READ-ONLY; Possible values include: 'DeploymentStatusNotStarted', 'DeploymentStatusInProgress', 'DeploymentStatusSucceeded', 'DeploymentStatusFailed' + DeploymentStatus DeploymentStatus `json:"deploymentStatus,omitempty"` +} + +// MarshalJSON is the custom marshaler for AFDOriginProperties. +func (aop AFDOriginProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if aop.AzureOrigin != nil { + objectMap["azureOrigin"] = aop.AzureOrigin + } + if aop.HostName != nil { + objectMap["hostName"] = aop.HostName + } + if aop.HTTPPort != nil { + objectMap["httpPort"] = aop.HTTPPort + } + if aop.HTTPSPort != nil { + objectMap["httpsPort"] = aop.HTTPSPort + } + if aop.OriginHostHeader != nil { + objectMap["originHostHeader"] = aop.OriginHostHeader + } + if aop.Priority != nil { + objectMap["priority"] = aop.Priority + } + if aop.Weight != nil { + objectMap["weight"] = aop.Weight + } + if aop.SharedPrivateLinkResource != nil { + objectMap["sharedPrivateLinkResource"] = aop.SharedPrivateLinkResource + } + if aop.EnabledState != "" { + objectMap["enabledState"] = aop.EnabledState + } + return json.Marshal(objectMap) +} + +// AFDOriginsCreateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type AFDOriginsCreateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *AFDOriginsCreateFuture) Result(client AFDOriginsClient) (ao AFDOrigin, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginsCreateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.AFDOriginsCreateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if ao.Response.Response, err = future.GetResult(sender); err == nil && ao.Response.Response.StatusCode != http.StatusNoContent { + ao, err = client.CreateResponder(ao.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginsCreateFuture", "Result", ao.Response.Response, "Failure responding to request") + } + } + return +} + +// AFDOriginsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type AFDOriginsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *AFDOriginsDeleteFuture) Result(client AFDOriginsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.AFDOriginsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// AFDOriginsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type AFDOriginsUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *AFDOriginsUpdateFuture) Result(client AFDOriginsClient) (ao AFDOrigin, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginsUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.AFDOriginsUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if ao.Response.Response, err = future.GetResult(sender); err == nil && ao.Response.Response.StatusCode != http.StatusNoContent { + ao, err = client.UpdateResponder(ao.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.AFDOriginsUpdateFuture", "Result", ao.Response.Response, "Failure responding to request") + } + } + return +} + +// AFDOriginUpdateParameters aFDOrigin properties needed for origin update. +type AFDOriginUpdateParameters struct { + *AFDOriginUpdatePropertiesParameters `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for AFDOriginUpdateParameters. +func (aoup AFDOriginUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if aoup.AFDOriginUpdatePropertiesParameters != nil { + objectMap["properties"] = aoup.AFDOriginUpdatePropertiesParameters + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for AFDOriginUpdateParameters struct. +func (aoup *AFDOriginUpdateParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var aFDOriginUpdatePropertiesParameters AFDOriginUpdatePropertiesParameters + err = json.Unmarshal(*v, &aFDOriginUpdatePropertiesParameters) + if err != nil { + return err + } + aoup.AFDOriginUpdatePropertiesParameters = &aFDOriginUpdatePropertiesParameters + } + } + } + + return nil +} + +// AFDOriginUpdatePropertiesParameters the JSON object that contains the properties of the origin. +type AFDOriginUpdatePropertiesParameters struct { + // AzureOrigin - Resource reference to the Azure origin resource. + AzureOrigin *ResourceReference `json:"azureOrigin,omitempty"` + // HostName - The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint. + HostName *string `json:"hostName,omitempty"` + // HTTPPort - The value of the HTTP port. Must be between 1 and 65535. + HTTPPort *int32 `json:"httpPort,omitempty"` + // HTTPSPort - The value of the HTTPS port. Must be between 1 and 65535. + HTTPSPort *int32 `json:"httpsPort,omitempty"` + // OriginHostHeader - The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint + OriginHostHeader *string `json:"originHostHeader,omitempty"` + // Priority - Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5 + Priority *int32 `json:"priority,omitempty"` + // Weight - Weight of the origin in given origin group for load balancing. Must be between 1 and 1000 + Weight *int32 `json:"weight,omitempty"` + // SharedPrivateLinkResource - The properties of the private link resource for private origin. + SharedPrivateLinkResource interface{} `json:"sharedPrivateLinkResource,omitempty"` + // EnabledState - Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. Possible values include: 'EnabledStateEnabled', 'EnabledStateDisabled' + EnabledState EnabledState `json:"enabledState,omitempty"` +} + +// AfdPurgeParameters parameters required for content purge. +type AfdPurgeParameters struct { + // ContentPaths - The path to the content to be purged. Can describe a file path or a wild card directory. + ContentPaths *[]string `json:"contentPaths,omitempty"` + // Domains - List of domains. + Domains *[]string `json:"domains,omitempty"` +} + +// AFDStateProperties the tracking states for afd resources. +type AFDStateProperties struct { + // ProvisioningState - READ-ONLY; Provisioning status. Possible values include: 'Succeeded', 'Failed', 'Updating', 'Deleting', 'Creating' + ProvisioningState AfdProvisioningState `json:"provisioningState,omitempty"` + // DeploymentStatus - READ-ONLY; Possible values include: 'DeploymentStatusNotStarted', 'DeploymentStatusInProgress', 'DeploymentStatusSucceeded', 'DeploymentStatusFailed' + DeploymentStatus DeploymentStatus `json:"deploymentStatus,omitempty"` +} + +// CacheExpirationActionParameters defines the parameters for the cache expiration action. +type CacheExpirationActionParameters struct { + OdataType *string `json:"@odata.type,omitempty"` + // CacheBehavior - Caching behavior for the requests. Possible values include: 'BypassCache', 'Override', 'SetIfMissing' + CacheBehavior CacheBehavior `json:"cacheBehavior,omitempty"` + // CacheType - The level at which the content needs to be cached. + CacheType *string `json:"cacheType,omitempty"` + // CacheDuration - The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss + CacheDuration *string `json:"cacheDuration,omitempty"` +} + +// CacheKeyQueryStringActionParameters defines the parameters for the cache-key query string action. +type CacheKeyQueryStringActionParameters struct { + OdataType *string `json:"@odata.type,omitempty"` + // QueryStringBehavior - Caching behavior for the requests. Possible values include: 'Include', 'IncludeAll', 'Exclude', 'ExcludeAll' + QueryStringBehavior QueryStringBehavior `json:"queryStringBehavior,omitempty"` + // QueryParameters - query parameters to include or exclude (comma separated). + QueryParameters *string `json:"queryParameters,omitempty"` +} + +// Certificate certificate used for https +type Certificate struct { + // Subject - Subject name in the certificate. + Subject *string `json:"subject,omitempty"` + // ExpirationDate - Certificate expiration date. + ExpirationDate *string `json:"expirationDate,omitempty"` + // Thumbprint - Certificate thumbprint. + Thumbprint *string `json:"thumbprint,omitempty"` +} + +// CertificateSourceParameters defines the parameters for using CDN managed certificate for securing custom +// domain. +type CertificateSourceParameters struct { + OdataType *string `json:"@odata.type,omitempty"` + // CertificateType - Type of certificate used. Possible values include: 'Shared', 'Dedicated' + CertificateType CertificateType `json:"certificateType,omitempty"` +} + +// CheckNameAvailabilityInput input of CheckNameAvailability API. +type CheckNameAvailabilityInput struct { + // Name - The resource name to validate. + Name *string `json:"name,omitempty"` + // Type - The type of the resource whose name is to be validated. + Type *string `json:"type,omitempty"` +} + +// CheckNameAvailabilityOutput output of check name availability API. +type CheckNameAvailabilityOutput struct { + autorest.Response `json:"-"` + // NameAvailable - READ-ONLY; Indicates whether the name is available. + NameAvailable *bool `json:"nameAvailable,omitempty"` + // Reason - READ-ONLY; The reason why the name is not available. + Reason *string `json:"reason,omitempty"` + // Message - READ-ONLY; The detailed error message describing why the name is not available. + Message *string `json:"message,omitempty"` +} + +// CidrIPAddress CIDR Ip address +type CidrIPAddress struct { + // BaseIPAddress - Ip address itself. + BaseIPAddress *string `json:"baseIpAddress,omitempty"` + // PrefixLength - The length of the prefix of the ip address. + PrefixLength *int32 `json:"prefixLength,omitempty"` +} + +// CompressionSettings settings for compression. +type CompressionSettings struct { + // ContentTypesToCompress - List of content types on which compression applies. The value should be a valid MIME type. + ContentTypesToCompress *[]string `json:"contentTypesToCompress,omitempty"` + // IsCompressionEnabled - Indicates whether content compression is enabled on AzureFrontDoor. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB. + IsCompressionEnabled *bool `json:"isCompressionEnabled,omitempty"` +} + +// ContinentsResponse continents Response +type ContinentsResponse struct { + autorest.Response `json:"-"` + Continents *[]ContinentsResponseContinentsItem `json:"continents,omitempty"` + CountryOrRegions *[]ContinentsResponseCountryOrRegionsItem `json:"countryOrRegions,omitempty"` +} + +// ContinentsResponseContinentsItem ... +type ContinentsResponseContinentsItem struct { + ID *string `json:"id,omitempty"` +} + +// ContinentsResponseCountryOrRegionsItem ... +type ContinentsResponseCountryOrRegionsItem struct { + ID *string `json:"id,omitempty"` + ContinentID *string `json:"continentId,omitempty"` +} + +// CookiesMatchConditionParameters defines the parameters for Cookies match conditions +type CookiesMatchConditionParameters struct { + OdataType *string `json:"@odata.type,omitempty"` + // Selector - Name of Cookies to be matched + Selector *string `json:"selector,omitempty"` + // Operator - Describes operator to be matched. Possible values include: 'Any', 'Equal', 'Contains', 'BeginsWith', 'EndsWith', 'LessThan', 'LessThanOrEqual', 'GreaterThan', 'GreaterThanOrEqual', 'RegEx' + Operator CookiesOperator `json:"operator,omitempty"` + // NegateCondition - Describes if this is negate condition or not + NegateCondition *bool `json:"negateCondition,omitempty"` + // MatchValues - The match value for the condition of the delivery rule + MatchValues *[]string `json:"matchValues,omitempty"` + // Transforms - List of transforms + Transforms *[]Transform `json:"transforms,omitempty"` +} + +// CustomDomain friendly domain name mapping to the endpoint hostname that the customer provides for +// branding purposes, e.g. www.contoso.com. +type CustomDomain struct { + autorest.Response `json:"-"` + *CustomDomainProperties `json:"properties,omitempty"` + // SystemData - READ-ONLY + SystemData *SystemData `json:"systemData,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CustomDomain. +func (cd CustomDomain) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if cd.CustomDomainProperties != nil { + objectMap["properties"] = cd.CustomDomainProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for CustomDomain struct. +func (cd *CustomDomain) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var customDomainProperties CustomDomainProperties + err = json.Unmarshal(*v, &customDomainProperties) + if err != nil { + return err + } + cd.CustomDomainProperties = &customDomainProperties + } + case "systemData": + if v != nil { + var systemData SystemData + err = json.Unmarshal(*v, &systemData) + if err != nil { + return err + } + cd.SystemData = &systemData + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + cd.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + cd.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cd.Type = &typeVar + } + } + } + + return nil +} + +// BasicCustomDomainHTTPSParameters the JSON object that contains the properties to secure a custom domain. +type BasicCustomDomainHTTPSParameters interface { + AsManagedHTTPSParameters() (*ManagedHTTPSParameters, bool) + AsUserManagedHTTPSParameters() (*UserManagedHTTPSParameters, bool) + AsCustomDomainHTTPSParameters() (*CustomDomainHTTPSParameters, bool) +} + +// CustomDomainHTTPSParameters the JSON object that contains the properties to secure a custom domain. +type CustomDomainHTTPSParameters struct { + // ProtocolType - Defines the TLS extension protocol that is used for secure delivery. Possible values include: 'ServerNameIndication', 'IPBased' + ProtocolType ProtocolType `json:"protocolType,omitempty"` + // MinimumTLSVersion - TLS protocol version that will be used for Https. Possible values include: 'MinimumTLSVersionNone', 'MinimumTLSVersionTLS10', 'MinimumTLSVersionTLS12' + MinimumTLSVersion MinimumTLSVersion `json:"minimumTlsVersion,omitempty"` + // CertificateSource - Possible values include: 'CertificateSourceCustomDomainHTTPSParameters', 'CertificateSourceCdn', 'CertificateSourceAzureKeyVault' + CertificateSource CertificateSource `json:"certificateSource,omitempty"` +} + +func unmarshalBasicCustomDomainHTTPSParameters(body []byte) (BasicCustomDomainHTTPSParameters, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["certificateSource"] { + case string(CertificateSourceCdn): + var mhp ManagedHTTPSParameters + err := json.Unmarshal(body, &mhp) + return mhp, err + case string(CertificateSourceAzureKeyVault): + var umhp UserManagedHTTPSParameters + err := json.Unmarshal(body, &umhp) + return umhp, err + default: + var cdhp CustomDomainHTTPSParameters + err := json.Unmarshal(body, &cdhp) + return cdhp, err + } +} +func unmarshalBasicCustomDomainHTTPSParametersArray(body []byte) ([]BasicCustomDomainHTTPSParameters, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + cdhpArray := make([]BasicCustomDomainHTTPSParameters, len(rawMessages)) + + for index, rawMessage := range rawMessages { + cdhp, err := unmarshalBasicCustomDomainHTTPSParameters(*rawMessage) + if err != nil { + return nil, err + } + cdhpArray[index] = cdhp + } + return cdhpArray, nil +} + +// MarshalJSON is the custom marshaler for CustomDomainHTTPSParameters. +func (cdhp CustomDomainHTTPSParameters) MarshalJSON() ([]byte, error) { + cdhp.CertificateSource = CertificateSourceCustomDomainHTTPSParameters + objectMap := make(map[string]interface{}) + if cdhp.ProtocolType != "" { + objectMap["protocolType"] = cdhp.ProtocolType + } + if cdhp.MinimumTLSVersion != "" { + objectMap["minimumTlsVersion"] = cdhp.MinimumTLSVersion + } + if cdhp.CertificateSource != "" { + objectMap["certificateSource"] = cdhp.CertificateSource + } + return json.Marshal(objectMap) +} + +// AsManagedHTTPSParameters is the BasicCustomDomainHTTPSParameters implementation for CustomDomainHTTPSParameters. +func (cdhp CustomDomainHTTPSParameters) AsManagedHTTPSParameters() (*ManagedHTTPSParameters, bool) { + return nil, false +} + +// AsUserManagedHTTPSParameters is the BasicCustomDomainHTTPSParameters implementation for CustomDomainHTTPSParameters. +func (cdhp CustomDomainHTTPSParameters) AsUserManagedHTTPSParameters() (*UserManagedHTTPSParameters, bool) { + return nil, false +} + +// AsCustomDomainHTTPSParameters is the BasicCustomDomainHTTPSParameters implementation for CustomDomainHTTPSParameters. +func (cdhp CustomDomainHTTPSParameters) AsCustomDomainHTTPSParameters() (*CustomDomainHTTPSParameters, bool) { + return &cdhp, true +} + +// AsBasicCustomDomainHTTPSParameters is the BasicCustomDomainHTTPSParameters implementation for CustomDomainHTTPSParameters. +func (cdhp CustomDomainHTTPSParameters) AsBasicCustomDomainHTTPSParameters() (BasicCustomDomainHTTPSParameters, bool) { + return &cdhp, true +} + +// CustomDomainListResult result of the request to list custom domains. It contains a list of custom domain +// objects and a URL link to get the next set of results. +type CustomDomainListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of CDN CustomDomains within an endpoint. + Value *[]CustomDomain `json:"value,omitempty"` + // NextLink - URL to get the next set of custom domain objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for CustomDomainListResult. +func (cdlr CustomDomainListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if cdlr.NextLink != nil { + objectMap["nextLink"] = cdlr.NextLink + } + return json.Marshal(objectMap) +} + +// CustomDomainListResultIterator provides access to a complete listing of CustomDomain values. +type CustomDomainListResultIterator struct { + i int + page CustomDomainListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *CustomDomainListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CustomDomainListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *CustomDomainListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter CustomDomainListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter CustomDomainListResultIterator) Response() CustomDomainListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter CustomDomainListResultIterator) Value() CustomDomain { + if !iter.page.NotDone() { + return CustomDomain{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the CustomDomainListResultIterator type. +func NewCustomDomainListResultIterator(page CustomDomainListResultPage) CustomDomainListResultIterator { + return CustomDomainListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (cdlr CustomDomainListResult) IsEmpty() bool { + return cdlr.Value == nil || len(*cdlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (cdlr CustomDomainListResult) hasNextLink() bool { + return cdlr.NextLink != nil && len(*cdlr.NextLink) != 0 +} + +// customDomainListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (cdlr CustomDomainListResult) customDomainListResultPreparer(ctx context.Context) (*http.Request, error) { + if !cdlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(cdlr.NextLink))) +} + +// CustomDomainListResultPage contains a page of CustomDomain values. +type CustomDomainListResultPage struct { + fn func(context.Context, CustomDomainListResult) (CustomDomainListResult, error) + cdlr CustomDomainListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *CustomDomainListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CustomDomainListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.cdlr) + if err != nil { + return err + } + page.cdlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *CustomDomainListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page CustomDomainListResultPage) NotDone() bool { + return !page.cdlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page CustomDomainListResultPage) Response() CustomDomainListResult { + return page.cdlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page CustomDomainListResultPage) Values() []CustomDomain { + if page.cdlr.IsEmpty() { + return nil + } + return *page.cdlr.Value +} + +// Creates a new instance of the CustomDomainListResultPage type. +func NewCustomDomainListResultPage(cur CustomDomainListResult, getNextPage func(context.Context, CustomDomainListResult) (CustomDomainListResult, error)) CustomDomainListResultPage { + return CustomDomainListResultPage{ + fn: getNextPage, + cdlr: cur, + } +} + +// CustomDomainParameters the customDomain JSON object required for custom domain creation or update. +type CustomDomainParameters struct { + *CustomDomainPropertiesParameters `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for CustomDomainParameters. +func (cdp CustomDomainParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if cdp.CustomDomainPropertiesParameters != nil { + objectMap["properties"] = cdp.CustomDomainPropertiesParameters + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for CustomDomainParameters struct. +func (cdp *CustomDomainParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var customDomainPropertiesParameters CustomDomainPropertiesParameters + err = json.Unmarshal(*v, &customDomainPropertiesParameters) + if err != nil { + return err + } + cdp.CustomDomainPropertiesParameters = &customDomainPropertiesParameters + } + } + } + + return nil +} + +// CustomDomainProperties the JSON object that contains the properties of the custom domain to create. +type CustomDomainProperties struct { + // HostName - The host name of the custom domain. Must be a domain name. + HostName *string `json:"hostName,omitempty"` + // ResourceState - READ-ONLY; Resource status of the custom domain. Possible values include: 'CustomDomainResourceStateCreating', 'CustomDomainResourceStateActive', 'CustomDomainResourceStateDeleting' + ResourceState CustomDomainResourceState `json:"resourceState,omitempty"` + // CustomHTTPSProvisioningState - READ-ONLY; Provisioning status of Custom Https of the custom domain. Possible values include: 'CustomHTTPSProvisioningStateEnabling', 'CustomHTTPSProvisioningStateEnabled', 'CustomHTTPSProvisioningStateDisabling', 'CustomHTTPSProvisioningStateDisabled', 'CustomHTTPSProvisioningStateFailed' + CustomHTTPSProvisioningState CustomHTTPSProvisioningState `json:"customHttpsProvisioningState,omitempty"` + // CustomHTTPSProvisioningSubstate - READ-ONLY; Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. Possible values include: 'SubmittingDomainControlValidationRequest', 'PendingDomainControlValidationREquestApproval', 'DomainControlValidationRequestApproved', 'DomainControlValidationRequestRejected', 'DomainControlValidationRequestTimedOut', 'IssuingCertificate', 'DeployingCertificate', 'CertificateDeployed', 'DeletingCertificate', 'CertificateDeleted' + CustomHTTPSProvisioningSubstate CustomHTTPSProvisioningSubstate `json:"customHttpsProvisioningSubstate,omitempty"` + // ValidationData - Special validation or data may be required when delivering CDN to some regions due to local compliance reasons. E.g. ICP license number of a custom domain is required to deliver content in China. + ValidationData *string `json:"validationData,omitempty"` + // ProvisioningState - READ-ONLY; Provisioning status of the custom domain. + ProvisioningState *string `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for CustomDomainProperties. +func (cdp CustomDomainProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if cdp.HostName != nil { + objectMap["hostName"] = cdp.HostName + } + if cdp.ValidationData != nil { + objectMap["validationData"] = cdp.ValidationData + } + return json.Marshal(objectMap) +} + +// CustomDomainPropertiesParameters the JSON object that contains the properties of the custom domain to +// create. +type CustomDomainPropertiesParameters struct { + // HostName - The host name of the custom domain. Must be a domain name. + HostName *string `json:"hostName,omitempty"` +} + +// CustomDomainsCreateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type CustomDomainsCreateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *CustomDomainsCreateFuture) Result(client CustomDomainsClient) (cd CustomDomain, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.CustomDomainsCreateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.CustomDomainsCreateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if cd.Response.Response, err = future.GetResult(sender); err == nil && cd.Response.Response.StatusCode != http.StatusNoContent { + cd, err = client.CreateResponder(cd.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.CustomDomainsCreateFuture", "Result", cd.Response.Response, "Failure responding to request") + } + } + return +} + +// CustomDomainsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type CustomDomainsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *CustomDomainsDeleteFuture) Result(client CustomDomainsClient) (cd CustomDomain, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.CustomDomainsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.CustomDomainsDeleteFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if cd.Response.Response, err = future.GetResult(sender); err == nil && cd.Response.Response.StatusCode != http.StatusNoContent { + cd, err = client.DeleteResponder(cd.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.CustomDomainsDeleteFuture", "Result", cd.Response.Response, "Failure responding to request") + } + } + return +} + +// CustomerCertificate customer Certificate used for https +type CustomerCertificate struct { + // Version - Certificate version. + Version *string `json:"version,omitempty"` + // CertificateAuthority - Certificate issuing authority. + CertificateAuthority *string `json:"certificateAuthority,omitempty"` + // CertificateURL - Complete Url to the certificate + CertificateURL *string `json:"certificateUrl,omitempty"` + // UseLatestVersion - Whether to use the latest version for the certificate + UseLatestVersion *bool `json:"useLatestVersion,omitempty"` + // SubjectAlternativeNames - The list of SANs. + SubjectAlternativeNames *[]string `json:"subjectAlternativeNames,omitempty"` + // Subject - Subject name in the certificate. + Subject *string `json:"subject,omitempty"` + // ExpirationDate - Certificate expiration date. + ExpirationDate *string `json:"expirationDate,omitempty"` + // Thumbprint - Certificate thumbprint. + Thumbprint *string `json:"thumbprint,omitempty"` +} + +// CustomerCertificateParameters customer Certificate used for https +type CustomerCertificateParameters struct { + // Type - The type of the Secret to create. Possible values include: 'SecretTypeURLSigningKey', 'SecretTypeCustomerCertificate', 'SecretTypeManagedCertificate' + Type SecretType `json:"type,omitempty"` + // Subject - Subject name in the certificate. + Subject *string `json:"subject,omitempty"` + // ExpirationDate - Certificate expiration date. + ExpirationDate *string `json:"expirationDate,omitempty"` + // Thumbprint - Certificate thumbprint. + Thumbprint *string `json:"thumbprint,omitempty"` + // SecretSource - Resource reference to the KV secret + SecretSource *ResourceReference `json:"secretSource,omitempty"` + // SecretVersion - Version of the secret to be used + SecretVersion *string `json:"secretVersion,omitempty"` + // CertificateAuthority - Certificate issuing authority. + CertificateAuthority *string `json:"certificateAuthority,omitempty"` + // UseLatestVersion - Whether to use the latest version for the certificate + UseLatestVersion *bool `json:"useLatestVersion,omitempty"` + // SubjectAlternativeNames - The list of SANs. + SubjectAlternativeNames *[]string `json:"subjectAlternativeNames,omitempty"` +} + +// CustomRule defines the common attributes for a custom rule that can be included in a waf policy +type CustomRule struct { + // Name - Defines the name of the custom rule + Name *string `json:"name,omitempty"` + // EnabledState - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. Possible values include: 'Disabled', 'Enabled' + EnabledState CustomRuleEnabledState `json:"enabledState,omitempty"` + // Priority - Defines in what order this rule be evaluated in the overall list of custom rules + Priority *int32 `json:"priority,omitempty"` + // MatchConditions - List of match conditions. + MatchConditions *[]MatchCondition `json:"matchConditions,omitempty"` + // Action - Describes what action to be applied when rule matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect' + Action ActionType `json:"action,omitempty"` +} + +// CustomRuleList defines contents of custom rules +type CustomRuleList struct { + // Rules - List of rules + Rules *[]CustomRule `json:"rules,omitempty"` +} + +// DeepCreatedOrigin the main origin of CDN content which is added when creating a CDN endpoint. +type DeepCreatedOrigin struct { + // Name - Origin name which must be unique within the endpoint. + Name *string `json:"name,omitempty"` + *DeepCreatedOriginProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for DeepCreatedOrigin. +func (dco DeepCreatedOrigin) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dco.Name != nil { + objectMap["name"] = dco.Name + } + if dco.DeepCreatedOriginProperties != nil { + objectMap["properties"] = dco.DeepCreatedOriginProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for DeepCreatedOrigin struct. +func (dco *DeepCreatedOrigin) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + dco.Name = &name + } + case "properties": + if v != nil { + var deepCreatedOriginProperties DeepCreatedOriginProperties + err = json.Unmarshal(*v, &deepCreatedOriginProperties) + if err != nil { + return err + } + dco.DeepCreatedOriginProperties = &deepCreatedOriginProperties + } + } + } + + return nil +} + +// DeepCreatedOriginGroup the origin group for CDN content which is added when creating a CDN endpoint. +// Traffic is sent to the origins within the origin group based on origin health. +type DeepCreatedOriginGroup struct { + // Name - Origin group name which must be unique within the endpoint. + Name *string `json:"name,omitempty"` + *DeepCreatedOriginGroupProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for DeepCreatedOriginGroup. +func (dcog DeepCreatedOriginGroup) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dcog.Name != nil { + objectMap["name"] = dcog.Name + } + if dcog.DeepCreatedOriginGroupProperties != nil { + objectMap["properties"] = dcog.DeepCreatedOriginGroupProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for DeepCreatedOriginGroup struct. +func (dcog *DeepCreatedOriginGroup) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + dcog.Name = &name + } + case "properties": + if v != nil { + var deepCreatedOriginGroupProperties DeepCreatedOriginGroupProperties + err = json.Unmarshal(*v, &deepCreatedOriginGroupProperties) + if err != nil { + return err + } + dcog.DeepCreatedOriginGroupProperties = &deepCreatedOriginGroupProperties + } + } + } + + return nil +} + +// DeepCreatedOriginGroupProperties properties of the origin group created on the CDN endpoint. +type DeepCreatedOriginGroupProperties struct { + // HealthProbeSettings - Health probe settings to the origin that is used to determine the health of the origin. + HealthProbeSettings *HealthProbeParameters `json:"healthProbeSettings,omitempty"` + // Origins - The source of the content being delivered via CDN within given origin group. + Origins *[]ResourceReference `json:"origins,omitempty"` + // TrafficRestorationTimeToHealedOrNewEndpointsInMinutes - Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported. + TrafficRestorationTimeToHealedOrNewEndpointsInMinutes *int32 `json:"trafficRestorationTimeToHealedOrNewEndpointsInMinutes,omitempty"` + // ResponseBasedOriginErrorDetectionSettings - The JSON object that contains the properties to determine origin health using real requests/responses.This property is currently not supported. + ResponseBasedOriginErrorDetectionSettings *ResponseBasedOriginErrorDetectionParameters `json:"responseBasedOriginErrorDetectionSettings,omitempty"` +} + +// DeepCreatedOriginProperties properties of the origin created on the CDN endpoint. +type DeepCreatedOriginProperties struct { + // HostName - The address of the origin. It can be a domain name, IPv4 address, or IPv6 address. This should be unique across all origins in an endpoint. + HostName *string `json:"hostName,omitempty"` + // HTTPPort - The value of the HTTP port. Must be between 1 and 65535. + HTTPPort *int32 `json:"httpPort,omitempty"` + // HTTPSPort - The value of the HTTPS port. Must be between 1 and 65535. + HTTPSPort *int32 `json:"httpsPort,omitempty"` + // OriginHostHeader - The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. + OriginHostHeader *string `json:"originHostHeader,omitempty"` + // Priority - Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5. + Priority *int32 `json:"priority,omitempty"` + // Weight - Weight of the origin in given origin group for load balancing. Must be between 1 and 1000 + Weight *int32 `json:"weight,omitempty"` + // Enabled - Origin is enabled for load balancing or not. By default, origin is always enabled. + Enabled *bool `json:"enabled,omitempty"` + // PrivateLinkAlias - The Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private' + PrivateLinkAlias *string `json:"privateLinkAlias,omitempty"` + // PrivateLinkResourceID - The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + PrivateLinkResourceID *string `json:"privateLinkResourceId,omitempty"` + // PrivateLinkLocation - The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated + PrivateLinkLocation *string `json:"privateLinkLocation,omitempty"` + // PrivateLinkApprovalMessage - A custom message to be included in the approval request to connect to the Private Link. + PrivateLinkApprovalMessage *string `json:"privateLinkApprovalMessage,omitempty"` +} + +// DeliveryRule a rule that specifies a set of actions and conditions +type DeliveryRule struct { + // Name - Name of the rule + Name *string `json:"name,omitempty"` + // Order - The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied. + Order *int32 `json:"order,omitempty"` + // Conditions - A list of conditions that must be matched for the actions to be executed + Conditions *[]BasicDeliveryRuleCondition `json:"conditions,omitempty"` + // Actions - A list of actions that are executed when all the conditions of a rule are satisfied. + Actions *[]BasicDeliveryRuleAction `json:"actions,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for DeliveryRule struct. +func (dr *DeliveryRule) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + dr.Name = &name + } + case "order": + if v != nil { + var order int32 + err = json.Unmarshal(*v, &order) + if err != nil { + return err + } + dr.Order = &order + } + case "conditions": + if v != nil { + conditions, err := unmarshalBasicDeliveryRuleConditionArray(*v) + if err != nil { + return err + } + dr.Conditions = &conditions + } + case "actions": + if v != nil { + actions, err := unmarshalBasicDeliveryRuleActionArray(*v) + if err != nil { + return err + } + dr.Actions = &actions + } + } + } + + return nil +} + +// BasicDeliveryRuleAction an action for the delivery rule. +type BasicDeliveryRuleAction interface { + AsURLRedirectAction() (*URLRedirectAction, bool) + AsURLSigningAction() (*URLSigningAction, bool) + AsOriginGroupOverrideAction() (*OriginGroupOverrideAction, bool) + AsURLRewriteAction() (*URLRewriteAction, bool) + AsDeliveryRuleRequestHeaderAction() (*DeliveryRuleRequestHeaderAction, bool) + AsDeliveryRuleResponseHeaderAction() (*DeliveryRuleResponseHeaderAction, bool) + AsDeliveryRuleCacheExpirationAction() (*DeliveryRuleCacheExpirationAction, bool) + AsDeliveryRuleCacheKeyQueryStringAction() (*DeliveryRuleCacheKeyQueryStringAction, bool) + AsDeliveryRuleAction() (*DeliveryRuleAction, bool) +} + +// DeliveryRuleAction an action for the delivery rule. +type DeliveryRuleAction struct { + // Name - Possible values include: 'NameDeliveryRuleAction', 'NameURLRedirect', 'NameURLSigning', 'NameOriginGroupOverride', 'NameURLRewrite', 'NameModifyRequestHeader', 'NameModifyResponseHeader', 'NameCacheExpiration', 'NameCacheKeyQueryString' + Name NameBasicDeliveryRuleAction `json:"name,omitempty"` +} + +func unmarshalBasicDeliveryRuleAction(body []byte) (BasicDeliveryRuleAction, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["name"] { + case string(NameURLRedirect): + var ura URLRedirectAction + err := json.Unmarshal(body, &ura) + return ura, err + case string(NameURLSigning): + var usa URLSigningAction + err := json.Unmarshal(body, &usa) + return usa, err + case string(NameOriginGroupOverride): + var ogoa OriginGroupOverrideAction + err := json.Unmarshal(body, &ogoa) + return ogoa, err + case string(NameURLRewrite): + var ura URLRewriteAction + err := json.Unmarshal(body, &ura) + return ura, err + case string(NameModifyRequestHeader): + var drrha DeliveryRuleRequestHeaderAction + err := json.Unmarshal(body, &drrha) + return drrha, err + case string(NameModifyResponseHeader): + var drrha DeliveryRuleResponseHeaderAction + err := json.Unmarshal(body, &drrha) + return drrha, err + case string(NameCacheExpiration): + var drcea DeliveryRuleCacheExpirationAction + err := json.Unmarshal(body, &drcea) + return drcea, err + case string(NameCacheKeyQueryString): + var drckqsa DeliveryRuleCacheKeyQueryStringAction + err := json.Unmarshal(body, &drckqsa) + return drckqsa, err + default: + var dra DeliveryRuleAction + err := json.Unmarshal(body, &dra) + return dra, err + } +} +func unmarshalBasicDeliveryRuleActionArray(body []byte) ([]BasicDeliveryRuleAction, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + draArray := make([]BasicDeliveryRuleAction, len(rawMessages)) + + for index, rawMessage := range rawMessages { + dra, err := unmarshalBasicDeliveryRuleAction(*rawMessage) + if err != nil { + return nil, err + } + draArray[index] = dra + } + return draArray, nil +} + +// MarshalJSON is the custom marshaler for DeliveryRuleAction. +func (dra DeliveryRuleAction) MarshalJSON() ([]byte, error) { + dra.Name = NameDeliveryRuleAction + objectMap := make(map[string]interface{}) + if dra.Name != "" { + objectMap["name"] = dra.Name + } + return json.Marshal(objectMap) +} + +// AsURLRedirectAction is the BasicDeliveryRuleAction implementation for DeliveryRuleAction. +func (dra DeliveryRuleAction) AsURLRedirectAction() (*URLRedirectAction, bool) { + return nil, false +} + +// AsURLSigningAction is the BasicDeliveryRuleAction implementation for DeliveryRuleAction. +func (dra DeliveryRuleAction) AsURLSigningAction() (*URLSigningAction, bool) { + return nil, false +} + +// AsOriginGroupOverrideAction is the BasicDeliveryRuleAction implementation for DeliveryRuleAction. +func (dra DeliveryRuleAction) AsOriginGroupOverrideAction() (*OriginGroupOverrideAction, bool) { + return nil, false +} + +// AsURLRewriteAction is the BasicDeliveryRuleAction implementation for DeliveryRuleAction. +func (dra DeliveryRuleAction) AsURLRewriteAction() (*URLRewriteAction, bool) { + return nil, false +} + +// AsDeliveryRuleRequestHeaderAction is the BasicDeliveryRuleAction implementation for DeliveryRuleAction. +func (dra DeliveryRuleAction) AsDeliveryRuleRequestHeaderAction() (*DeliveryRuleRequestHeaderAction, bool) { + return nil, false +} + +// AsDeliveryRuleResponseHeaderAction is the BasicDeliveryRuleAction implementation for DeliveryRuleAction. +func (dra DeliveryRuleAction) AsDeliveryRuleResponseHeaderAction() (*DeliveryRuleResponseHeaderAction, bool) { + return nil, false +} + +// AsDeliveryRuleCacheExpirationAction is the BasicDeliveryRuleAction implementation for DeliveryRuleAction. +func (dra DeliveryRuleAction) AsDeliveryRuleCacheExpirationAction() (*DeliveryRuleCacheExpirationAction, bool) { + return nil, false +} + +// AsDeliveryRuleCacheKeyQueryStringAction is the BasicDeliveryRuleAction implementation for DeliveryRuleAction. +func (dra DeliveryRuleAction) AsDeliveryRuleCacheKeyQueryStringAction() (*DeliveryRuleCacheKeyQueryStringAction, bool) { + return nil, false +} + +// AsDeliveryRuleAction is the BasicDeliveryRuleAction implementation for DeliveryRuleAction. +func (dra DeliveryRuleAction) AsDeliveryRuleAction() (*DeliveryRuleAction, bool) { + return &dra, true +} + +// AsBasicDeliveryRuleAction is the BasicDeliveryRuleAction implementation for DeliveryRuleAction. +func (dra DeliveryRuleAction) AsBasicDeliveryRuleAction() (BasicDeliveryRuleAction, bool) { + return &dra, true +} + +// DeliveryRuleCacheExpirationAction defines the cache expiration action for the delivery rule. +type DeliveryRuleCacheExpirationAction struct { + // Parameters - Defines the parameters for the action. + Parameters *CacheExpirationActionParameters `json:"parameters,omitempty"` + // Name - Possible values include: 'NameDeliveryRuleAction', 'NameURLRedirect', 'NameURLSigning', 'NameOriginGroupOverride', 'NameURLRewrite', 'NameModifyRequestHeader', 'NameModifyResponseHeader', 'NameCacheExpiration', 'NameCacheKeyQueryString' + Name NameBasicDeliveryRuleAction `json:"name,omitempty"` +} + +// MarshalJSON is the custom marshaler for DeliveryRuleCacheExpirationAction. +func (drcea DeliveryRuleCacheExpirationAction) MarshalJSON() ([]byte, error) { + drcea.Name = NameCacheExpiration + objectMap := make(map[string]interface{}) + if drcea.Parameters != nil { + objectMap["parameters"] = drcea.Parameters + } + if drcea.Name != "" { + objectMap["name"] = drcea.Name + } + return json.Marshal(objectMap) +} + +// AsURLRedirectAction is the BasicDeliveryRuleAction implementation for DeliveryRuleCacheExpirationAction. +func (drcea DeliveryRuleCacheExpirationAction) AsURLRedirectAction() (*URLRedirectAction, bool) { + return nil, false +} + +// AsURLSigningAction is the BasicDeliveryRuleAction implementation for DeliveryRuleCacheExpirationAction. +func (drcea DeliveryRuleCacheExpirationAction) AsURLSigningAction() (*URLSigningAction, bool) { + return nil, false +} + +// AsOriginGroupOverrideAction is the BasicDeliveryRuleAction implementation for DeliveryRuleCacheExpirationAction. +func (drcea DeliveryRuleCacheExpirationAction) AsOriginGroupOverrideAction() (*OriginGroupOverrideAction, bool) { + return nil, false +} + +// AsURLRewriteAction is the BasicDeliveryRuleAction implementation for DeliveryRuleCacheExpirationAction. +func (drcea DeliveryRuleCacheExpirationAction) AsURLRewriteAction() (*URLRewriteAction, bool) { + return nil, false +} + +// AsDeliveryRuleRequestHeaderAction is the BasicDeliveryRuleAction implementation for DeliveryRuleCacheExpirationAction. +func (drcea DeliveryRuleCacheExpirationAction) AsDeliveryRuleRequestHeaderAction() (*DeliveryRuleRequestHeaderAction, bool) { + return nil, false +} + +// AsDeliveryRuleResponseHeaderAction is the BasicDeliveryRuleAction implementation for DeliveryRuleCacheExpirationAction. +func (drcea DeliveryRuleCacheExpirationAction) AsDeliveryRuleResponseHeaderAction() (*DeliveryRuleResponseHeaderAction, bool) { + return nil, false +} + +// AsDeliveryRuleCacheExpirationAction is the BasicDeliveryRuleAction implementation for DeliveryRuleCacheExpirationAction. +func (drcea DeliveryRuleCacheExpirationAction) AsDeliveryRuleCacheExpirationAction() (*DeliveryRuleCacheExpirationAction, bool) { + return &drcea, true +} + +// AsDeliveryRuleCacheKeyQueryStringAction is the BasicDeliveryRuleAction implementation for DeliveryRuleCacheExpirationAction. +func (drcea DeliveryRuleCacheExpirationAction) AsDeliveryRuleCacheKeyQueryStringAction() (*DeliveryRuleCacheKeyQueryStringAction, bool) { + return nil, false +} + +// AsDeliveryRuleAction is the BasicDeliveryRuleAction implementation for DeliveryRuleCacheExpirationAction. +func (drcea DeliveryRuleCacheExpirationAction) AsDeliveryRuleAction() (*DeliveryRuleAction, bool) { + return nil, false +} + +// AsBasicDeliveryRuleAction is the BasicDeliveryRuleAction implementation for DeliveryRuleCacheExpirationAction. +func (drcea DeliveryRuleCacheExpirationAction) AsBasicDeliveryRuleAction() (BasicDeliveryRuleAction, bool) { + return &drcea, true +} + +// DeliveryRuleCacheKeyQueryStringAction defines the cache-key query string action for the delivery rule. +type DeliveryRuleCacheKeyQueryStringAction struct { + // Parameters - Defines the parameters for the action. + Parameters *CacheKeyQueryStringActionParameters `json:"parameters,omitempty"` + // Name - Possible values include: 'NameDeliveryRuleAction', 'NameURLRedirect', 'NameURLSigning', 'NameOriginGroupOverride', 'NameURLRewrite', 'NameModifyRequestHeader', 'NameModifyResponseHeader', 'NameCacheExpiration', 'NameCacheKeyQueryString' + Name NameBasicDeliveryRuleAction `json:"name,omitempty"` +} + +// MarshalJSON is the custom marshaler for DeliveryRuleCacheKeyQueryStringAction. +func (drckqsa DeliveryRuleCacheKeyQueryStringAction) MarshalJSON() ([]byte, error) { + drckqsa.Name = NameCacheKeyQueryString + objectMap := make(map[string]interface{}) + if drckqsa.Parameters != nil { + objectMap["parameters"] = drckqsa.Parameters + } + if drckqsa.Name != "" { + objectMap["name"] = drckqsa.Name + } + return json.Marshal(objectMap) +} + +// AsURLRedirectAction is the BasicDeliveryRuleAction implementation for DeliveryRuleCacheKeyQueryStringAction. +func (drckqsa DeliveryRuleCacheKeyQueryStringAction) AsURLRedirectAction() (*URLRedirectAction, bool) { + return nil, false +} + +// AsURLSigningAction is the BasicDeliveryRuleAction implementation for DeliveryRuleCacheKeyQueryStringAction. +func (drckqsa DeliveryRuleCacheKeyQueryStringAction) AsURLSigningAction() (*URLSigningAction, bool) { + return nil, false +} + +// AsOriginGroupOverrideAction is the BasicDeliveryRuleAction implementation for DeliveryRuleCacheKeyQueryStringAction. +func (drckqsa DeliveryRuleCacheKeyQueryStringAction) AsOriginGroupOverrideAction() (*OriginGroupOverrideAction, bool) { + return nil, false +} + +// AsURLRewriteAction is the BasicDeliveryRuleAction implementation for DeliveryRuleCacheKeyQueryStringAction. +func (drckqsa DeliveryRuleCacheKeyQueryStringAction) AsURLRewriteAction() (*URLRewriteAction, bool) { + return nil, false +} + +// AsDeliveryRuleRequestHeaderAction is the BasicDeliveryRuleAction implementation for DeliveryRuleCacheKeyQueryStringAction. +func (drckqsa DeliveryRuleCacheKeyQueryStringAction) AsDeliveryRuleRequestHeaderAction() (*DeliveryRuleRequestHeaderAction, bool) { + return nil, false +} + +// AsDeliveryRuleResponseHeaderAction is the BasicDeliveryRuleAction implementation for DeliveryRuleCacheKeyQueryStringAction. +func (drckqsa DeliveryRuleCacheKeyQueryStringAction) AsDeliveryRuleResponseHeaderAction() (*DeliveryRuleResponseHeaderAction, bool) { + return nil, false +} + +// AsDeliveryRuleCacheExpirationAction is the BasicDeliveryRuleAction implementation for DeliveryRuleCacheKeyQueryStringAction. +func (drckqsa DeliveryRuleCacheKeyQueryStringAction) AsDeliveryRuleCacheExpirationAction() (*DeliveryRuleCacheExpirationAction, bool) { + return nil, false +} + +// AsDeliveryRuleCacheKeyQueryStringAction is the BasicDeliveryRuleAction implementation for DeliveryRuleCacheKeyQueryStringAction. +func (drckqsa DeliveryRuleCacheKeyQueryStringAction) AsDeliveryRuleCacheKeyQueryStringAction() (*DeliveryRuleCacheKeyQueryStringAction, bool) { + return &drckqsa, true +} + +// AsDeliveryRuleAction is the BasicDeliveryRuleAction implementation for DeliveryRuleCacheKeyQueryStringAction. +func (drckqsa DeliveryRuleCacheKeyQueryStringAction) AsDeliveryRuleAction() (*DeliveryRuleAction, bool) { + return nil, false +} + +// AsBasicDeliveryRuleAction is the BasicDeliveryRuleAction implementation for DeliveryRuleCacheKeyQueryStringAction. +func (drckqsa DeliveryRuleCacheKeyQueryStringAction) AsBasicDeliveryRuleAction() (BasicDeliveryRuleAction, bool) { + return &drckqsa, true +} + +// BasicDeliveryRuleCondition a condition for the delivery rule. +type BasicDeliveryRuleCondition interface { + AsDeliveryRuleRemoteAddressCondition() (*DeliveryRuleRemoteAddressCondition, bool) + AsDeliveryRuleRequestMethodCondition() (*DeliveryRuleRequestMethodCondition, bool) + AsDeliveryRuleQueryStringCondition() (*DeliveryRuleQueryStringCondition, bool) + AsDeliveryRulePostArgsCondition() (*DeliveryRulePostArgsCondition, bool) + AsDeliveryRuleRequestURICondition() (*DeliveryRuleRequestURICondition, bool) + AsDeliveryRuleRequestHeaderCondition() (*DeliveryRuleRequestHeaderCondition, bool) + AsDeliveryRuleRequestBodyCondition() (*DeliveryRuleRequestBodyCondition, bool) + AsDeliveryRuleRequestSchemeCondition() (*DeliveryRuleRequestSchemeCondition, bool) + AsDeliveryRuleURLPathCondition() (*DeliveryRuleURLPathCondition, bool) + AsDeliveryRuleURLFileExtensionCondition() (*DeliveryRuleURLFileExtensionCondition, bool) + AsDeliveryRuleURLFileNameCondition() (*DeliveryRuleURLFileNameCondition, bool) + AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) + AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) + AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) + AsDeliveryRuleCondition() (*DeliveryRuleCondition, bool) +} + +// DeliveryRuleCondition a condition for the delivery rule. +type DeliveryRuleCondition struct { + // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice' + Name Name `json:"name,omitempty"` +} + +func unmarshalBasicDeliveryRuleCondition(body []byte) (BasicDeliveryRuleCondition, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["name"] { + case string(NameRemoteAddress): + var drrac DeliveryRuleRemoteAddressCondition + err := json.Unmarshal(body, &drrac) + return drrac, err + case string(NameRequestMethod): + var drrmc DeliveryRuleRequestMethodCondition + err := json.Unmarshal(body, &drrmc) + return drrmc, err + case string(NameQueryString): + var drqsc DeliveryRuleQueryStringCondition + err := json.Unmarshal(body, &drqsc) + return drqsc, err + case string(NamePostArgs): + var drpac DeliveryRulePostArgsCondition + err := json.Unmarshal(body, &drpac) + return drpac, err + case string(NameRequestURI): + var drruc DeliveryRuleRequestURICondition + err := json.Unmarshal(body, &drruc) + return drruc, err + case string(NameRequestHeader): + var drrhc DeliveryRuleRequestHeaderCondition + err := json.Unmarshal(body, &drrhc) + return drrhc, err + case string(NameRequestBody): + var drrbc DeliveryRuleRequestBodyCondition + err := json.Unmarshal(body, &drrbc) + return drrbc, err + case string(NameRequestScheme): + var drrsc DeliveryRuleRequestSchemeCondition + err := json.Unmarshal(body, &drrsc) + return drrsc, err + case string(NameURLPath): + var drupc DeliveryRuleURLPathCondition + err := json.Unmarshal(body, &drupc) + return drupc, err + case string(NameURLFileExtension): + var drufec DeliveryRuleURLFileExtensionCondition + err := json.Unmarshal(body, &drufec) + return drufec, err + case string(NameURLFileName): + var drufnc DeliveryRuleURLFileNameCondition + err := json.Unmarshal(body, &drufnc) + return drufnc, err + case string(NameHTTPVersion): + var drhvc DeliveryRuleHTTPVersionCondition + err := json.Unmarshal(body, &drhvc) + return drhvc, err + case string(NameCookies): + var drcc DeliveryRuleCookiesCondition + err := json.Unmarshal(body, &drcc) + return drcc, err + case string(NameIsDevice): + var dridc DeliveryRuleIsDeviceCondition + err := json.Unmarshal(body, &dridc) + return dridc, err + default: + var drc DeliveryRuleCondition + err := json.Unmarshal(body, &drc) + return drc, err + } +} +func unmarshalBasicDeliveryRuleConditionArray(body []byte) ([]BasicDeliveryRuleCondition, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + drcArray := make([]BasicDeliveryRuleCondition, len(rawMessages)) + + for index, rawMessage := range rawMessages { + drc, err := unmarshalBasicDeliveryRuleCondition(*rawMessage) + if err != nil { + return nil, err + } + drcArray[index] = drc + } + return drcArray, nil +} + +// MarshalJSON is the custom marshaler for DeliveryRuleCondition. +func (drc DeliveryRuleCondition) MarshalJSON() ([]byte, error) { + drc.Name = NameDeliveryRuleCondition + objectMap := make(map[string]interface{}) + if drc.Name != "" { + objectMap["name"] = drc.Name + } + return json.Marshal(objectMap) +} + +// AsDeliveryRuleRemoteAddressCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCondition. +func (drc DeliveryRuleCondition) AsDeliveryRuleRemoteAddressCondition() (*DeliveryRuleRemoteAddressCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestMethodCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCondition. +func (drc DeliveryRuleCondition) AsDeliveryRuleRequestMethodCondition() (*DeliveryRuleRequestMethodCondition, bool) { + return nil, false +} + +// AsDeliveryRuleQueryStringCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCondition. +func (drc DeliveryRuleCondition) AsDeliveryRuleQueryStringCondition() (*DeliveryRuleQueryStringCondition, bool) { + return nil, false +} + +// AsDeliveryRulePostArgsCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCondition. +func (drc DeliveryRuleCondition) AsDeliveryRulePostArgsCondition() (*DeliveryRulePostArgsCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestURICondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCondition. +func (drc DeliveryRuleCondition) AsDeliveryRuleRequestURICondition() (*DeliveryRuleRequestURICondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestHeaderCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCondition. +func (drc DeliveryRuleCondition) AsDeliveryRuleRequestHeaderCondition() (*DeliveryRuleRequestHeaderCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestBodyCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCondition. +func (drc DeliveryRuleCondition) AsDeliveryRuleRequestBodyCondition() (*DeliveryRuleRequestBodyCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestSchemeCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCondition. +func (drc DeliveryRuleCondition) AsDeliveryRuleRequestSchemeCondition() (*DeliveryRuleRequestSchemeCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLPathCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCondition. +func (drc DeliveryRuleCondition) AsDeliveryRuleURLPathCondition() (*DeliveryRuleURLPathCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileExtensionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCondition. +func (drc DeliveryRuleCondition) AsDeliveryRuleURLFileExtensionCondition() (*DeliveryRuleURLFileExtensionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileNameCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCondition. +func (drc DeliveryRuleCondition) AsDeliveryRuleURLFileNameCondition() (*DeliveryRuleURLFileNameCondition, bool) { + return nil, false +} + +// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCondition. +func (drc DeliveryRuleCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCondition. +func (drc DeliveryRuleCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) { + return nil, false +} + +// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCondition. +func (drc DeliveryRuleCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCondition. +func (drc DeliveryRuleCondition) AsDeliveryRuleCondition() (*DeliveryRuleCondition, bool) { + return &drc, true +} + +// AsBasicDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCondition. +func (drc DeliveryRuleCondition) AsBasicDeliveryRuleCondition() (BasicDeliveryRuleCondition, bool) { + return &drc, true +} + +// DeliveryRuleCookiesCondition defines the Cookies condition for the delivery rule. +type DeliveryRuleCookiesCondition struct { + // Parameters - Defines the parameters for the condition. + Parameters *CookiesMatchConditionParameters `json:"parameters,omitempty"` + // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice' + Name Name `json:"name,omitempty"` +} + +// MarshalJSON is the custom marshaler for DeliveryRuleCookiesCondition. +func (drcc DeliveryRuleCookiesCondition) MarshalJSON() ([]byte, error) { + drcc.Name = NameCookies + objectMap := make(map[string]interface{}) + if drcc.Parameters != nil { + objectMap["parameters"] = drcc.Parameters + } + if drcc.Name != "" { + objectMap["name"] = drcc.Name + } + return json.Marshal(objectMap) +} + +// AsDeliveryRuleRemoteAddressCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition. +func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleRemoteAddressCondition() (*DeliveryRuleRemoteAddressCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestMethodCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition. +func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleRequestMethodCondition() (*DeliveryRuleRequestMethodCondition, bool) { + return nil, false +} + +// AsDeliveryRuleQueryStringCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition. +func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleQueryStringCondition() (*DeliveryRuleQueryStringCondition, bool) { + return nil, false +} + +// AsDeliveryRulePostArgsCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition. +func (drcc DeliveryRuleCookiesCondition) AsDeliveryRulePostArgsCondition() (*DeliveryRulePostArgsCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestURICondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition. +func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleRequestURICondition() (*DeliveryRuleRequestURICondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestHeaderCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition. +func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleRequestHeaderCondition() (*DeliveryRuleRequestHeaderCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestBodyCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition. +func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleRequestBodyCondition() (*DeliveryRuleRequestBodyCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestSchemeCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition. +func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleRequestSchemeCondition() (*DeliveryRuleRequestSchemeCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLPathCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition. +func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleURLPathCondition() (*DeliveryRuleURLPathCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileExtensionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition. +func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleURLFileExtensionCondition() (*DeliveryRuleURLFileExtensionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileNameCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition. +func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleURLFileNameCondition() (*DeliveryRuleURLFileNameCondition, bool) { + return nil, false +} + +// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition. +func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition. +func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) { + return &drcc, true +} + +// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition. +func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition. +func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleCondition() (*DeliveryRuleCondition, bool) { + return nil, false +} + +// AsBasicDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition. +func (drcc DeliveryRuleCookiesCondition) AsBasicDeliveryRuleCondition() (BasicDeliveryRuleCondition, bool) { + return &drcc, true +} + +// DeliveryRuleHTTPVersionCondition defines the HttpVersion condition for the delivery rule. +type DeliveryRuleHTTPVersionCondition struct { + // Parameters - Defines the parameters for the condition. + Parameters *HTTPVersionMatchConditionParameters `json:"parameters,omitempty"` + // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice' + Name Name `json:"name,omitempty"` +} + +// MarshalJSON is the custom marshaler for DeliveryRuleHTTPVersionCondition. +func (drhvc DeliveryRuleHTTPVersionCondition) MarshalJSON() ([]byte, error) { + drhvc.Name = NameHTTPVersion + objectMap := make(map[string]interface{}) + if drhvc.Parameters != nil { + objectMap["parameters"] = drhvc.Parameters + } + if drhvc.Name != "" { + objectMap["name"] = drhvc.Name + } + return json.Marshal(objectMap) +} + +// AsDeliveryRuleRemoteAddressCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition. +func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleRemoteAddressCondition() (*DeliveryRuleRemoteAddressCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestMethodCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition. +func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleRequestMethodCondition() (*DeliveryRuleRequestMethodCondition, bool) { + return nil, false +} + +// AsDeliveryRuleQueryStringCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition. +func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleQueryStringCondition() (*DeliveryRuleQueryStringCondition, bool) { + return nil, false +} + +// AsDeliveryRulePostArgsCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition. +func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRulePostArgsCondition() (*DeliveryRulePostArgsCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestURICondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition. +func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleRequestURICondition() (*DeliveryRuleRequestURICondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestHeaderCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition. +func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleRequestHeaderCondition() (*DeliveryRuleRequestHeaderCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestBodyCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition. +func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleRequestBodyCondition() (*DeliveryRuleRequestBodyCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestSchemeCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition. +func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleRequestSchemeCondition() (*DeliveryRuleRequestSchemeCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLPathCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition. +func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleURLPathCondition() (*DeliveryRuleURLPathCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileExtensionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition. +func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleURLFileExtensionCondition() (*DeliveryRuleURLFileExtensionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileNameCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition. +func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleURLFileNameCondition() (*DeliveryRuleURLFileNameCondition, bool) { + return nil, false +} + +// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition. +func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) { + return &drhvc, true +} + +// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition. +func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) { + return nil, false +} + +// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition. +func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition. +func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleCondition() (*DeliveryRuleCondition, bool) { + return nil, false +} + +// AsBasicDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition. +func (drhvc DeliveryRuleHTTPVersionCondition) AsBasicDeliveryRuleCondition() (BasicDeliveryRuleCondition, bool) { + return &drhvc, true +} + +// DeliveryRuleIsDeviceCondition defines the IsDevice condition for the delivery rule. +type DeliveryRuleIsDeviceCondition struct { + // Parameters - Defines the parameters for the condition. + Parameters *IsDeviceMatchConditionParameters `json:"parameters,omitempty"` + // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice' + Name Name `json:"name,omitempty"` +} + +// MarshalJSON is the custom marshaler for DeliveryRuleIsDeviceCondition. +func (dridc DeliveryRuleIsDeviceCondition) MarshalJSON() ([]byte, error) { + dridc.Name = NameIsDevice + objectMap := make(map[string]interface{}) + if dridc.Parameters != nil { + objectMap["parameters"] = dridc.Parameters + } + if dridc.Name != "" { + objectMap["name"] = dridc.Name + } + return json.Marshal(objectMap) +} + +// AsDeliveryRuleRemoteAddressCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleIsDeviceCondition. +func (dridc DeliveryRuleIsDeviceCondition) AsDeliveryRuleRemoteAddressCondition() (*DeliveryRuleRemoteAddressCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestMethodCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleIsDeviceCondition. +func (dridc DeliveryRuleIsDeviceCondition) AsDeliveryRuleRequestMethodCondition() (*DeliveryRuleRequestMethodCondition, bool) { + return nil, false +} + +// AsDeliveryRuleQueryStringCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleIsDeviceCondition. +func (dridc DeliveryRuleIsDeviceCondition) AsDeliveryRuleQueryStringCondition() (*DeliveryRuleQueryStringCondition, bool) { + return nil, false +} + +// AsDeliveryRulePostArgsCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleIsDeviceCondition. +func (dridc DeliveryRuleIsDeviceCondition) AsDeliveryRulePostArgsCondition() (*DeliveryRulePostArgsCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestURICondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleIsDeviceCondition. +func (dridc DeliveryRuleIsDeviceCondition) AsDeliveryRuleRequestURICondition() (*DeliveryRuleRequestURICondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestHeaderCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleIsDeviceCondition. +func (dridc DeliveryRuleIsDeviceCondition) AsDeliveryRuleRequestHeaderCondition() (*DeliveryRuleRequestHeaderCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestBodyCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleIsDeviceCondition. +func (dridc DeliveryRuleIsDeviceCondition) AsDeliveryRuleRequestBodyCondition() (*DeliveryRuleRequestBodyCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestSchemeCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleIsDeviceCondition. +func (dridc DeliveryRuleIsDeviceCondition) AsDeliveryRuleRequestSchemeCondition() (*DeliveryRuleRequestSchemeCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLPathCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleIsDeviceCondition. +func (dridc DeliveryRuleIsDeviceCondition) AsDeliveryRuleURLPathCondition() (*DeliveryRuleURLPathCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileExtensionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleIsDeviceCondition. +func (dridc DeliveryRuleIsDeviceCondition) AsDeliveryRuleURLFileExtensionCondition() (*DeliveryRuleURLFileExtensionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileNameCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleIsDeviceCondition. +func (dridc DeliveryRuleIsDeviceCondition) AsDeliveryRuleURLFileNameCondition() (*DeliveryRuleURLFileNameCondition, bool) { + return nil, false +} + +// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleIsDeviceCondition. +func (dridc DeliveryRuleIsDeviceCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleIsDeviceCondition. +func (dridc DeliveryRuleIsDeviceCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) { + return nil, false +} + +// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleIsDeviceCondition. +func (dridc DeliveryRuleIsDeviceCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) { + return &dridc, true +} + +// AsDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleIsDeviceCondition. +func (dridc DeliveryRuleIsDeviceCondition) AsDeliveryRuleCondition() (*DeliveryRuleCondition, bool) { + return nil, false +} + +// AsBasicDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleIsDeviceCondition. +func (dridc DeliveryRuleIsDeviceCondition) AsBasicDeliveryRuleCondition() (BasicDeliveryRuleCondition, bool) { + return &dridc, true +} + +// DeliveryRulePostArgsCondition defines the PostArgs condition for the delivery rule. +type DeliveryRulePostArgsCondition struct { + // Parameters - Defines the parameters for the condition. + Parameters *PostArgsMatchConditionParameters `json:"parameters,omitempty"` + // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice' + Name Name `json:"name,omitempty"` +} + +// MarshalJSON is the custom marshaler for DeliveryRulePostArgsCondition. +func (drpac DeliveryRulePostArgsCondition) MarshalJSON() ([]byte, error) { + drpac.Name = NamePostArgs + objectMap := make(map[string]interface{}) + if drpac.Parameters != nil { + objectMap["parameters"] = drpac.Parameters + } + if drpac.Name != "" { + objectMap["name"] = drpac.Name + } + return json.Marshal(objectMap) +} + +// AsDeliveryRuleRemoteAddressCondition is the BasicDeliveryRuleCondition implementation for DeliveryRulePostArgsCondition. +func (drpac DeliveryRulePostArgsCondition) AsDeliveryRuleRemoteAddressCondition() (*DeliveryRuleRemoteAddressCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestMethodCondition is the BasicDeliveryRuleCondition implementation for DeliveryRulePostArgsCondition. +func (drpac DeliveryRulePostArgsCondition) AsDeliveryRuleRequestMethodCondition() (*DeliveryRuleRequestMethodCondition, bool) { + return nil, false +} + +// AsDeliveryRuleQueryStringCondition is the BasicDeliveryRuleCondition implementation for DeliveryRulePostArgsCondition. +func (drpac DeliveryRulePostArgsCondition) AsDeliveryRuleQueryStringCondition() (*DeliveryRuleQueryStringCondition, bool) { + return nil, false +} + +// AsDeliveryRulePostArgsCondition is the BasicDeliveryRuleCondition implementation for DeliveryRulePostArgsCondition. +func (drpac DeliveryRulePostArgsCondition) AsDeliveryRulePostArgsCondition() (*DeliveryRulePostArgsCondition, bool) { + return &drpac, true +} + +// AsDeliveryRuleRequestURICondition is the BasicDeliveryRuleCondition implementation for DeliveryRulePostArgsCondition. +func (drpac DeliveryRulePostArgsCondition) AsDeliveryRuleRequestURICondition() (*DeliveryRuleRequestURICondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestHeaderCondition is the BasicDeliveryRuleCondition implementation for DeliveryRulePostArgsCondition. +func (drpac DeliveryRulePostArgsCondition) AsDeliveryRuleRequestHeaderCondition() (*DeliveryRuleRequestHeaderCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestBodyCondition is the BasicDeliveryRuleCondition implementation for DeliveryRulePostArgsCondition. +func (drpac DeliveryRulePostArgsCondition) AsDeliveryRuleRequestBodyCondition() (*DeliveryRuleRequestBodyCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestSchemeCondition is the BasicDeliveryRuleCondition implementation for DeliveryRulePostArgsCondition. +func (drpac DeliveryRulePostArgsCondition) AsDeliveryRuleRequestSchemeCondition() (*DeliveryRuleRequestSchemeCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLPathCondition is the BasicDeliveryRuleCondition implementation for DeliveryRulePostArgsCondition. +func (drpac DeliveryRulePostArgsCondition) AsDeliveryRuleURLPathCondition() (*DeliveryRuleURLPathCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileExtensionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRulePostArgsCondition. +func (drpac DeliveryRulePostArgsCondition) AsDeliveryRuleURLFileExtensionCondition() (*DeliveryRuleURLFileExtensionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileNameCondition is the BasicDeliveryRuleCondition implementation for DeliveryRulePostArgsCondition. +func (drpac DeliveryRulePostArgsCondition) AsDeliveryRuleURLFileNameCondition() (*DeliveryRuleURLFileNameCondition, bool) { + return nil, false +} + +// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRulePostArgsCondition. +func (drpac DeliveryRulePostArgsCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRulePostArgsCondition. +func (drpac DeliveryRulePostArgsCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) { + return nil, false +} + +// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRulePostArgsCondition. +func (drpac DeliveryRulePostArgsCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRulePostArgsCondition. +func (drpac DeliveryRulePostArgsCondition) AsDeliveryRuleCondition() (*DeliveryRuleCondition, bool) { + return nil, false +} + +// AsBasicDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRulePostArgsCondition. +func (drpac DeliveryRulePostArgsCondition) AsBasicDeliveryRuleCondition() (BasicDeliveryRuleCondition, bool) { + return &drpac, true +} + +// DeliveryRuleQueryStringCondition defines the QueryString condition for the delivery rule. +type DeliveryRuleQueryStringCondition struct { + // Parameters - Defines the parameters for the condition. + Parameters *QueryStringMatchConditionParameters `json:"parameters,omitempty"` + // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice' + Name Name `json:"name,omitempty"` +} + +// MarshalJSON is the custom marshaler for DeliveryRuleQueryStringCondition. +func (drqsc DeliveryRuleQueryStringCondition) MarshalJSON() ([]byte, error) { + drqsc.Name = NameQueryString + objectMap := make(map[string]interface{}) + if drqsc.Parameters != nil { + objectMap["parameters"] = drqsc.Parameters + } + if drqsc.Name != "" { + objectMap["name"] = drqsc.Name + } + return json.Marshal(objectMap) +} + +// AsDeliveryRuleRemoteAddressCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleQueryStringCondition. +func (drqsc DeliveryRuleQueryStringCondition) AsDeliveryRuleRemoteAddressCondition() (*DeliveryRuleRemoteAddressCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestMethodCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleQueryStringCondition. +func (drqsc DeliveryRuleQueryStringCondition) AsDeliveryRuleRequestMethodCondition() (*DeliveryRuleRequestMethodCondition, bool) { + return nil, false +} + +// AsDeliveryRuleQueryStringCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleQueryStringCondition. +func (drqsc DeliveryRuleQueryStringCondition) AsDeliveryRuleQueryStringCondition() (*DeliveryRuleQueryStringCondition, bool) { + return &drqsc, true +} + +// AsDeliveryRulePostArgsCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleQueryStringCondition. +func (drqsc DeliveryRuleQueryStringCondition) AsDeliveryRulePostArgsCondition() (*DeliveryRulePostArgsCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestURICondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleQueryStringCondition. +func (drqsc DeliveryRuleQueryStringCondition) AsDeliveryRuleRequestURICondition() (*DeliveryRuleRequestURICondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestHeaderCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleQueryStringCondition. +func (drqsc DeliveryRuleQueryStringCondition) AsDeliveryRuleRequestHeaderCondition() (*DeliveryRuleRequestHeaderCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestBodyCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleQueryStringCondition. +func (drqsc DeliveryRuleQueryStringCondition) AsDeliveryRuleRequestBodyCondition() (*DeliveryRuleRequestBodyCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestSchemeCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleQueryStringCondition. +func (drqsc DeliveryRuleQueryStringCondition) AsDeliveryRuleRequestSchemeCondition() (*DeliveryRuleRequestSchemeCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLPathCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleQueryStringCondition. +func (drqsc DeliveryRuleQueryStringCondition) AsDeliveryRuleURLPathCondition() (*DeliveryRuleURLPathCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileExtensionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleQueryStringCondition. +func (drqsc DeliveryRuleQueryStringCondition) AsDeliveryRuleURLFileExtensionCondition() (*DeliveryRuleURLFileExtensionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileNameCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleQueryStringCondition. +func (drqsc DeliveryRuleQueryStringCondition) AsDeliveryRuleURLFileNameCondition() (*DeliveryRuleURLFileNameCondition, bool) { + return nil, false +} + +// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleQueryStringCondition. +func (drqsc DeliveryRuleQueryStringCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleQueryStringCondition. +func (drqsc DeliveryRuleQueryStringCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) { + return nil, false +} + +// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleQueryStringCondition. +func (drqsc DeliveryRuleQueryStringCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleQueryStringCondition. +func (drqsc DeliveryRuleQueryStringCondition) AsDeliveryRuleCondition() (*DeliveryRuleCondition, bool) { + return nil, false +} + +// AsBasicDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleQueryStringCondition. +func (drqsc DeliveryRuleQueryStringCondition) AsBasicDeliveryRuleCondition() (BasicDeliveryRuleCondition, bool) { + return &drqsc, true +} + +// DeliveryRuleRemoteAddressCondition defines the RemoteAddress condition for the delivery rule. +type DeliveryRuleRemoteAddressCondition struct { + // Parameters - Defines the parameters for the condition. + Parameters *RemoteAddressMatchConditionParameters `json:"parameters,omitempty"` + // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice' + Name Name `json:"name,omitempty"` +} + +// MarshalJSON is the custom marshaler for DeliveryRuleRemoteAddressCondition. +func (drrac DeliveryRuleRemoteAddressCondition) MarshalJSON() ([]byte, error) { + drrac.Name = NameRemoteAddress + objectMap := make(map[string]interface{}) + if drrac.Parameters != nil { + objectMap["parameters"] = drrac.Parameters + } + if drrac.Name != "" { + objectMap["name"] = drrac.Name + } + return json.Marshal(objectMap) +} + +// AsDeliveryRuleRemoteAddressCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRemoteAddressCondition. +func (drrac DeliveryRuleRemoteAddressCondition) AsDeliveryRuleRemoteAddressCondition() (*DeliveryRuleRemoteAddressCondition, bool) { + return &drrac, true +} + +// AsDeliveryRuleRequestMethodCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRemoteAddressCondition. +func (drrac DeliveryRuleRemoteAddressCondition) AsDeliveryRuleRequestMethodCondition() (*DeliveryRuleRequestMethodCondition, bool) { + return nil, false +} + +// AsDeliveryRuleQueryStringCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRemoteAddressCondition. +func (drrac DeliveryRuleRemoteAddressCondition) AsDeliveryRuleQueryStringCondition() (*DeliveryRuleQueryStringCondition, bool) { + return nil, false +} + +// AsDeliveryRulePostArgsCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRemoteAddressCondition. +func (drrac DeliveryRuleRemoteAddressCondition) AsDeliveryRulePostArgsCondition() (*DeliveryRulePostArgsCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestURICondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRemoteAddressCondition. +func (drrac DeliveryRuleRemoteAddressCondition) AsDeliveryRuleRequestURICondition() (*DeliveryRuleRequestURICondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestHeaderCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRemoteAddressCondition. +func (drrac DeliveryRuleRemoteAddressCondition) AsDeliveryRuleRequestHeaderCondition() (*DeliveryRuleRequestHeaderCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestBodyCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRemoteAddressCondition. +func (drrac DeliveryRuleRemoteAddressCondition) AsDeliveryRuleRequestBodyCondition() (*DeliveryRuleRequestBodyCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestSchemeCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRemoteAddressCondition. +func (drrac DeliveryRuleRemoteAddressCondition) AsDeliveryRuleRequestSchemeCondition() (*DeliveryRuleRequestSchemeCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLPathCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRemoteAddressCondition. +func (drrac DeliveryRuleRemoteAddressCondition) AsDeliveryRuleURLPathCondition() (*DeliveryRuleURLPathCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileExtensionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRemoteAddressCondition. +func (drrac DeliveryRuleRemoteAddressCondition) AsDeliveryRuleURLFileExtensionCondition() (*DeliveryRuleURLFileExtensionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileNameCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRemoteAddressCondition. +func (drrac DeliveryRuleRemoteAddressCondition) AsDeliveryRuleURLFileNameCondition() (*DeliveryRuleURLFileNameCondition, bool) { + return nil, false +} + +// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRemoteAddressCondition. +func (drrac DeliveryRuleRemoteAddressCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRemoteAddressCondition. +func (drrac DeliveryRuleRemoteAddressCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) { + return nil, false +} + +// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRemoteAddressCondition. +func (drrac DeliveryRuleRemoteAddressCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRemoteAddressCondition. +func (drrac DeliveryRuleRemoteAddressCondition) AsDeliveryRuleCondition() (*DeliveryRuleCondition, bool) { + return nil, false +} + +// AsBasicDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRemoteAddressCondition. +func (drrac DeliveryRuleRemoteAddressCondition) AsBasicDeliveryRuleCondition() (BasicDeliveryRuleCondition, bool) { + return &drrac, true +} + +// DeliveryRuleRequestBodyCondition defines the RequestBody condition for the delivery rule. +type DeliveryRuleRequestBodyCondition struct { + // Parameters - Defines the parameters for the condition. + Parameters *RequestBodyMatchConditionParameters `json:"parameters,omitempty"` + // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice' + Name Name `json:"name,omitempty"` +} + +// MarshalJSON is the custom marshaler for DeliveryRuleRequestBodyCondition. +func (drrbc DeliveryRuleRequestBodyCondition) MarshalJSON() ([]byte, error) { + drrbc.Name = NameRequestBody + objectMap := make(map[string]interface{}) + if drrbc.Parameters != nil { + objectMap["parameters"] = drrbc.Parameters + } + if drrbc.Name != "" { + objectMap["name"] = drrbc.Name + } + return json.Marshal(objectMap) +} + +// AsDeliveryRuleRemoteAddressCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestBodyCondition. +func (drrbc DeliveryRuleRequestBodyCondition) AsDeliveryRuleRemoteAddressCondition() (*DeliveryRuleRemoteAddressCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestMethodCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestBodyCondition. +func (drrbc DeliveryRuleRequestBodyCondition) AsDeliveryRuleRequestMethodCondition() (*DeliveryRuleRequestMethodCondition, bool) { + return nil, false +} + +// AsDeliveryRuleQueryStringCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestBodyCondition. +func (drrbc DeliveryRuleRequestBodyCondition) AsDeliveryRuleQueryStringCondition() (*DeliveryRuleQueryStringCondition, bool) { + return nil, false +} + +// AsDeliveryRulePostArgsCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestBodyCondition. +func (drrbc DeliveryRuleRequestBodyCondition) AsDeliveryRulePostArgsCondition() (*DeliveryRulePostArgsCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestURICondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestBodyCondition. +func (drrbc DeliveryRuleRequestBodyCondition) AsDeliveryRuleRequestURICondition() (*DeliveryRuleRequestURICondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestHeaderCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestBodyCondition. +func (drrbc DeliveryRuleRequestBodyCondition) AsDeliveryRuleRequestHeaderCondition() (*DeliveryRuleRequestHeaderCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestBodyCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestBodyCondition. +func (drrbc DeliveryRuleRequestBodyCondition) AsDeliveryRuleRequestBodyCondition() (*DeliveryRuleRequestBodyCondition, bool) { + return &drrbc, true +} + +// AsDeliveryRuleRequestSchemeCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestBodyCondition. +func (drrbc DeliveryRuleRequestBodyCondition) AsDeliveryRuleRequestSchemeCondition() (*DeliveryRuleRequestSchemeCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLPathCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestBodyCondition. +func (drrbc DeliveryRuleRequestBodyCondition) AsDeliveryRuleURLPathCondition() (*DeliveryRuleURLPathCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileExtensionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestBodyCondition. +func (drrbc DeliveryRuleRequestBodyCondition) AsDeliveryRuleURLFileExtensionCondition() (*DeliveryRuleURLFileExtensionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileNameCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestBodyCondition. +func (drrbc DeliveryRuleRequestBodyCondition) AsDeliveryRuleURLFileNameCondition() (*DeliveryRuleURLFileNameCondition, bool) { + return nil, false +} + +// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestBodyCondition. +func (drrbc DeliveryRuleRequestBodyCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestBodyCondition. +func (drrbc DeliveryRuleRequestBodyCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) { + return nil, false +} + +// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestBodyCondition. +func (drrbc DeliveryRuleRequestBodyCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestBodyCondition. +func (drrbc DeliveryRuleRequestBodyCondition) AsDeliveryRuleCondition() (*DeliveryRuleCondition, bool) { + return nil, false +} + +// AsBasicDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestBodyCondition. +func (drrbc DeliveryRuleRequestBodyCondition) AsBasicDeliveryRuleCondition() (BasicDeliveryRuleCondition, bool) { + return &drrbc, true +} + +// DeliveryRuleRequestHeaderAction defines the request header action for the delivery rule. +type DeliveryRuleRequestHeaderAction struct { + // Parameters - Defines the parameters for the action. + Parameters *HeaderActionParameters `json:"parameters,omitempty"` + // Name - Possible values include: 'NameDeliveryRuleAction', 'NameURLRedirect', 'NameURLSigning', 'NameOriginGroupOverride', 'NameURLRewrite', 'NameModifyRequestHeader', 'NameModifyResponseHeader', 'NameCacheExpiration', 'NameCacheKeyQueryString' + Name NameBasicDeliveryRuleAction `json:"name,omitempty"` +} + +// MarshalJSON is the custom marshaler for DeliveryRuleRequestHeaderAction. +func (drrha DeliveryRuleRequestHeaderAction) MarshalJSON() ([]byte, error) { + drrha.Name = NameModifyRequestHeader + objectMap := make(map[string]interface{}) + if drrha.Parameters != nil { + objectMap["parameters"] = drrha.Parameters + } + if drrha.Name != "" { + objectMap["name"] = drrha.Name + } + return json.Marshal(objectMap) +} + +// AsURLRedirectAction is the BasicDeliveryRuleAction implementation for DeliveryRuleRequestHeaderAction. +func (drrha DeliveryRuleRequestHeaderAction) AsURLRedirectAction() (*URLRedirectAction, bool) { + return nil, false +} + +// AsURLSigningAction is the BasicDeliveryRuleAction implementation for DeliveryRuleRequestHeaderAction. +func (drrha DeliveryRuleRequestHeaderAction) AsURLSigningAction() (*URLSigningAction, bool) { + return nil, false +} + +// AsOriginGroupOverrideAction is the BasicDeliveryRuleAction implementation for DeliveryRuleRequestHeaderAction. +func (drrha DeliveryRuleRequestHeaderAction) AsOriginGroupOverrideAction() (*OriginGroupOverrideAction, bool) { + return nil, false +} + +// AsURLRewriteAction is the BasicDeliveryRuleAction implementation for DeliveryRuleRequestHeaderAction. +func (drrha DeliveryRuleRequestHeaderAction) AsURLRewriteAction() (*URLRewriteAction, bool) { + return nil, false +} + +// AsDeliveryRuleRequestHeaderAction is the BasicDeliveryRuleAction implementation for DeliveryRuleRequestHeaderAction. +func (drrha DeliveryRuleRequestHeaderAction) AsDeliveryRuleRequestHeaderAction() (*DeliveryRuleRequestHeaderAction, bool) { + return &drrha, true +} + +// AsDeliveryRuleResponseHeaderAction is the BasicDeliveryRuleAction implementation for DeliveryRuleRequestHeaderAction. +func (drrha DeliveryRuleRequestHeaderAction) AsDeliveryRuleResponseHeaderAction() (*DeliveryRuleResponseHeaderAction, bool) { + return nil, false +} + +// AsDeliveryRuleCacheExpirationAction is the BasicDeliveryRuleAction implementation for DeliveryRuleRequestHeaderAction. +func (drrha DeliveryRuleRequestHeaderAction) AsDeliveryRuleCacheExpirationAction() (*DeliveryRuleCacheExpirationAction, bool) { + return nil, false +} + +// AsDeliveryRuleCacheKeyQueryStringAction is the BasicDeliveryRuleAction implementation for DeliveryRuleRequestHeaderAction. +func (drrha DeliveryRuleRequestHeaderAction) AsDeliveryRuleCacheKeyQueryStringAction() (*DeliveryRuleCacheKeyQueryStringAction, bool) { + return nil, false +} + +// AsDeliveryRuleAction is the BasicDeliveryRuleAction implementation for DeliveryRuleRequestHeaderAction. +func (drrha DeliveryRuleRequestHeaderAction) AsDeliveryRuleAction() (*DeliveryRuleAction, bool) { + return nil, false +} + +// AsBasicDeliveryRuleAction is the BasicDeliveryRuleAction implementation for DeliveryRuleRequestHeaderAction. +func (drrha DeliveryRuleRequestHeaderAction) AsBasicDeliveryRuleAction() (BasicDeliveryRuleAction, bool) { + return &drrha, true +} + +// DeliveryRuleRequestHeaderCondition defines the RequestHeader condition for the delivery rule. +type DeliveryRuleRequestHeaderCondition struct { + // Parameters - Defines the parameters for the condition. + Parameters *RequestHeaderMatchConditionParameters `json:"parameters,omitempty"` + // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice' + Name Name `json:"name,omitempty"` +} + +// MarshalJSON is the custom marshaler for DeliveryRuleRequestHeaderCondition. +func (drrhc DeliveryRuleRequestHeaderCondition) MarshalJSON() ([]byte, error) { + drrhc.Name = NameRequestHeader + objectMap := make(map[string]interface{}) + if drrhc.Parameters != nil { + objectMap["parameters"] = drrhc.Parameters + } + if drrhc.Name != "" { + objectMap["name"] = drrhc.Name + } + return json.Marshal(objectMap) +} + +// AsDeliveryRuleRemoteAddressCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestHeaderCondition. +func (drrhc DeliveryRuleRequestHeaderCondition) AsDeliveryRuleRemoteAddressCondition() (*DeliveryRuleRemoteAddressCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestMethodCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestHeaderCondition. +func (drrhc DeliveryRuleRequestHeaderCondition) AsDeliveryRuleRequestMethodCondition() (*DeliveryRuleRequestMethodCondition, bool) { + return nil, false +} + +// AsDeliveryRuleQueryStringCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestHeaderCondition. +func (drrhc DeliveryRuleRequestHeaderCondition) AsDeliveryRuleQueryStringCondition() (*DeliveryRuleQueryStringCondition, bool) { + return nil, false +} + +// AsDeliveryRulePostArgsCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestHeaderCondition. +func (drrhc DeliveryRuleRequestHeaderCondition) AsDeliveryRulePostArgsCondition() (*DeliveryRulePostArgsCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestURICondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestHeaderCondition. +func (drrhc DeliveryRuleRequestHeaderCondition) AsDeliveryRuleRequestURICondition() (*DeliveryRuleRequestURICondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestHeaderCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestHeaderCondition. +func (drrhc DeliveryRuleRequestHeaderCondition) AsDeliveryRuleRequestHeaderCondition() (*DeliveryRuleRequestHeaderCondition, bool) { + return &drrhc, true +} + +// AsDeliveryRuleRequestBodyCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestHeaderCondition. +func (drrhc DeliveryRuleRequestHeaderCondition) AsDeliveryRuleRequestBodyCondition() (*DeliveryRuleRequestBodyCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestSchemeCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestHeaderCondition. +func (drrhc DeliveryRuleRequestHeaderCondition) AsDeliveryRuleRequestSchemeCondition() (*DeliveryRuleRequestSchemeCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLPathCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestHeaderCondition. +func (drrhc DeliveryRuleRequestHeaderCondition) AsDeliveryRuleURLPathCondition() (*DeliveryRuleURLPathCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileExtensionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestHeaderCondition. +func (drrhc DeliveryRuleRequestHeaderCondition) AsDeliveryRuleURLFileExtensionCondition() (*DeliveryRuleURLFileExtensionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileNameCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestHeaderCondition. +func (drrhc DeliveryRuleRequestHeaderCondition) AsDeliveryRuleURLFileNameCondition() (*DeliveryRuleURLFileNameCondition, bool) { + return nil, false +} + +// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestHeaderCondition. +func (drrhc DeliveryRuleRequestHeaderCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestHeaderCondition. +func (drrhc DeliveryRuleRequestHeaderCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) { + return nil, false +} + +// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestHeaderCondition. +func (drrhc DeliveryRuleRequestHeaderCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestHeaderCondition. +func (drrhc DeliveryRuleRequestHeaderCondition) AsDeliveryRuleCondition() (*DeliveryRuleCondition, bool) { + return nil, false +} + +// AsBasicDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestHeaderCondition. +func (drrhc DeliveryRuleRequestHeaderCondition) AsBasicDeliveryRuleCondition() (BasicDeliveryRuleCondition, bool) { + return &drrhc, true +} + +// DeliveryRuleRequestMethodCondition defines the RequestMethod condition for the delivery rule. +type DeliveryRuleRequestMethodCondition struct { + // Parameters - Defines the parameters for the condition. + Parameters *RequestMethodMatchConditionParameters `json:"parameters,omitempty"` + // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice' + Name Name `json:"name,omitempty"` +} + +// MarshalJSON is the custom marshaler for DeliveryRuleRequestMethodCondition. +func (drrmc DeliveryRuleRequestMethodCondition) MarshalJSON() ([]byte, error) { + drrmc.Name = NameRequestMethod + objectMap := make(map[string]interface{}) + if drrmc.Parameters != nil { + objectMap["parameters"] = drrmc.Parameters + } + if drrmc.Name != "" { + objectMap["name"] = drrmc.Name + } + return json.Marshal(objectMap) +} + +// AsDeliveryRuleRemoteAddressCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestMethodCondition. +func (drrmc DeliveryRuleRequestMethodCondition) AsDeliveryRuleRemoteAddressCondition() (*DeliveryRuleRemoteAddressCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestMethodCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestMethodCondition. +func (drrmc DeliveryRuleRequestMethodCondition) AsDeliveryRuleRequestMethodCondition() (*DeliveryRuleRequestMethodCondition, bool) { + return &drrmc, true +} + +// AsDeliveryRuleQueryStringCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestMethodCondition. +func (drrmc DeliveryRuleRequestMethodCondition) AsDeliveryRuleQueryStringCondition() (*DeliveryRuleQueryStringCondition, bool) { + return nil, false +} + +// AsDeliveryRulePostArgsCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestMethodCondition. +func (drrmc DeliveryRuleRequestMethodCondition) AsDeliveryRulePostArgsCondition() (*DeliveryRulePostArgsCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestURICondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestMethodCondition. +func (drrmc DeliveryRuleRequestMethodCondition) AsDeliveryRuleRequestURICondition() (*DeliveryRuleRequestURICondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestHeaderCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestMethodCondition. +func (drrmc DeliveryRuleRequestMethodCondition) AsDeliveryRuleRequestHeaderCondition() (*DeliveryRuleRequestHeaderCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestBodyCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestMethodCondition. +func (drrmc DeliveryRuleRequestMethodCondition) AsDeliveryRuleRequestBodyCondition() (*DeliveryRuleRequestBodyCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestSchemeCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestMethodCondition. +func (drrmc DeliveryRuleRequestMethodCondition) AsDeliveryRuleRequestSchemeCondition() (*DeliveryRuleRequestSchemeCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLPathCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestMethodCondition. +func (drrmc DeliveryRuleRequestMethodCondition) AsDeliveryRuleURLPathCondition() (*DeliveryRuleURLPathCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileExtensionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestMethodCondition. +func (drrmc DeliveryRuleRequestMethodCondition) AsDeliveryRuleURLFileExtensionCondition() (*DeliveryRuleURLFileExtensionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileNameCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestMethodCondition. +func (drrmc DeliveryRuleRequestMethodCondition) AsDeliveryRuleURLFileNameCondition() (*DeliveryRuleURLFileNameCondition, bool) { + return nil, false +} + +// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestMethodCondition. +func (drrmc DeliveryRuleRequestMethodCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestMethodCondition. +func (drrmc DeliveryRuleRequestMethodCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) { + return nil, false +} + +// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestMethodCondition. +func (drrmc DeliveryRuleRequestMethodCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestMethodCondition. +func (drrmc DeliveryRuleRequestMethodCondition) AsDeliveryRuleCondition() (*DeliveryRuleCondition, bool) { + return nil, false +} + +// AsBasicDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestMethodCondition. +func (drrmc DeliveryRuleRequestMethodCondition) AsBasicDeliveryRuleCondition() (BasicDeliveryRuleCondition, bool) { + return &drrmc, true +} + +// DeliveryRuleRequestSchemeCondition defines the RequestScheme condition for the delivery rule. +type DeliveryRuleRequestSchemeCondition struct { + // Parameters - Defines the parameters for the condition. + Parameters *RequestSchemeMatchConditionParameters `json:"parameters,omitempty"` + // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice' + Name Name `json:"name,omitempty"` +} + +// MarshalJSON is the custom marshaler for DeliveryRuleRequestSchemeCondition. +func (drrsc DeliveryRuleRequestSchemeCondition) MarshalJSON() ([]byte, error) { + drrsc.Name = NameRequestScheme + objectMap := make(map[string]interface{}) + if drrsc.Parameters != nil { + objectMap["parameters"] = drrsc.Parameters + } + if drrsc.Name != "" { + objectMap["name"] = drrsc.Name + } + return json.Marshal(objectMap) +} + +// AsDeliveryRuleRemoteAddressCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestSchemeCondition. +func (drrsc DeliveryRuleRequestSchemeCondition) AsDeliveryRuleRemoteAddressCondition() (*DeliveryRuleRemoteAddressCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestMethodCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestSchemeCondition. +func (drrsc DeliveryRuleRequestSchemeCondition) AsDeliveryRuleRequestMethodCondition() (*DeliveryRuleRequestMethodCondition, bool) { + return nil, false +} + +// AsDeliveryRuleQueryStringCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestSchemeCondition. +func (drrsc DeliveryRuleRequestSchemeCondition) AsDeliveryRuleQueryStringCondition() (*DeliveryRuleQueryStringCondition, bool) { + return nil, false +} + +// AsDeliveryRulePostArgsCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestSchemeCondition. +func (drrsc DeliveryRuleRequestSchemeCondition) AsDeliveryRulePostArgsCondition() (*DeliveryRulePostArgsCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestURICondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestSchemeCondition. +func (drrsc DeliveryRuleRequestSchemeCondition) AsDeliveryRuleRequestURICondition() (*DeliveryRuleRequestURICondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestHeaderCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestSchemeCondition. +func (drrsc DeliveryRuleRequestSchemeCondition) AsDeliveryRuleRequestHeaderCondition() (*DeliveryRuleRequestHeaderCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestBodyCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestSchemeCondition. +func (drrsc DeliveryRuleRequestSchemeCondition) AsDeliveryRuleRequestBodyCondition() (*DeliveryRuleRequestBodyCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestSchemeCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestSchemeCondition. +func (drrsc DeliveryRuleRequestSchemeCondition) AsDeliveryRuleRequestSchemeCondition() (*DeliveryRuleRequestSchemeCondition, bool) { + return &drrsc, true +} + +// AsDeliveryRuleURLPathCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestSchemeCondition. +func (drrsc DeliveryRuleRequestSchemeCondition) AsDeliveryRuleURLPathCondition() (*DeliveryRuleURLPathCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileExtensionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestSchemeCondition. +func (drrsc DeliveryRuleRequestSchemeCondition) AsDeliveryRuleURLFileExtensionCondition() (*DeliveryRuleURLFileExtensionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileNameCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestSchemeCondition. +func (drrsc DeliveryRuleRequestSchemeCondition) AsDeliveryRuleURLFileNameCondition() (*DeliveryRuleURLFileNameCondition, bool) { + return nil, false +} + +// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestSchemeCondition. +func (drrsc DeliveryRuleRequestSchemeCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestSchemeCondition. +func (drrsc DeliveryRuleRequestSchemeCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) { + return nil, false +} + +// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestSchemeCondition. +func (drrsc DeliveryRuleRequestSchemeCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestSchemeCondition. +func (drrsc DeliveryRuleRequestSchemeCondition) AsDeliveryRuleCondition() (*DeliveryRuleCondition, bool) { + return nil, false +} + +// AsBasicDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestSchemeCondition. +func (drrsc DeliveryRuleRequestSchemeCondition) AsBasicDeliveryRuleCondition() (BasicDeliveryRuleCondition, bool) { + return &drrsc, true +} + +// DeliveryRuleRequestURICondition defines the RequestUri condition for the delivery rule. +type DeliveryRuleRequestURICondition struct { + // Parameters - Defines the parameters for the condition. + Parameters *RequestURIMatchConditionParameters `json:"parameters,omitempty"` + // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice' + Name Name `json:"name,omitempty"` +} + +// MarshalJSON is the custom marshaler for DeliveryRuleRequestURICondition. +func (drruc DeliveryRuleRequestURICondition) MarshalJSON() ([]byte, error) { + drruc.Name = NameRequestURI + objectMap := make(map[string]interface{}) + if drruc.Parameters != nil { + objectMap["parameters"] = drruc.Parameters + } + if drruc.Name != "" { + objectMap["name"] = drruc.Name + } + return json.Marshal(objectMap) +} + +// AsDeliveryRuleRemoteAddressCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestURICondition. +func (drruc DeliveryRuleRequestURICondition) AsDeliveryRuleRemoteAddressCondition() (*DeliveryRuleRemoteAddressCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestMethodCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestURICondition. +func (drruc DeliveryRuleRequestURICondition) AsDeliveryRuleRequestMethodCondition() (*DeliveryRuleRequestMethodCondition, bool) { + return nil, false +} + +// AsDeliveryRuleQueryStringCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestURICondition. +func (drruc DeliveryRuleRequestURICondition) AsDeliveryRuleQueryStringCondition() (*DeliveryRuleQueryStringCondition, bool) { + return nil, false +} + +// AsDeliveryRulePostArgsCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestURICondition. +func (drruc DeliveryRuleRequestURICondition) AsDeliveryRulePostArgsCondition() (*DeliveryRulePostArgsCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestURICondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestURICondition. +func (drruc DeliveryRuleRequestURICondition) AsDeliveryRuleRequestURICondition() (*DeliveryRuleRequestURICondition, bool) { + return &drruc, true +} + +// AsDeliveryRuleRequestHeaderCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestURICondition. +func (drruc DeliveryRuleRequestURICondition) AsDeliveryRuleRequestHeaderCondition() (*DeliveryRuleRequestHeaderCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestBodyCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestURICondition. +func (drruc DeliveryRuleRequestURICondition) AsDeliveryRuleRequestBodyCondition() (*DeliveryRuleRequestBodyCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestSchemeCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestURICondition. +func (drruc DeliveryRuleRequestURICondition) AsDeliveryRuleRequestSchemeCondition() (*DeliveryRuleRequestSchemeCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLPathCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestURICondition. +func (drruc DeliveryRuleRequestURICondition) AsDeliveryRuleURLPathCondition() (*DeliveryRuleURLPathCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileExtensionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestURICondition. +func (drruc DeliveryRuleRequestURICondition) AsDeliveryRuleURLFileExtensionCondition() (*DeliveryRuleURLFileExtensionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileNameCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestURICondition. +func (drruc DeliveryRuleRequestURICondition) AsDeliveryRuleURLFileNameCondition() (*DeliveryRuleURLFileNameCondition, bool) { + return nil, false +} + +// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestURICondition. +func (drruc DeliveryRuleRequestURICondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestURICondition. +func (drruc DeliveryRuleRequestURICondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) { + return nil, false +} + +// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestURICondition. +func (drruc DeliveryRuleRequestURICondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestURICondition. +func (drruc DeliveryRuleRequestURICondition) AsDeliveryRuleCondition() (*DeliveryRuleCondition, bool) { + return nil, false +} + +// AsBasicDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestURICondition. +func (drruc DeliveryRuleRequestURICondition) AsBasicDeliveryRuleCondition() (BasicDeliveryRuleCondition, bool) { + return &drruc, true +} + +// DeliveryRuleResponseHeaderAction defines the response header action for the delivery rule. +type DeliveryRuleResponseHeaderAction struct { + // Parameters - Defines the parameters for the action. + Parameters *HeaderActionParameters `json:"parameters,omitempty"` + // Name - Possible values include: 'NameDeliveryRuleAction', 'NameURLRedirect', 'NameURLSigning', 'NameOriginGroupOverride', 'NameURLRewrite', 'NameModifyRequestHeader', 'NameModifyResponseHeader', 'NameCacheExpiration', 'NameCacheKeyQueryString' + Name NameBasicDeliveryRuleAction `json:"name,omitempty"` +} + +// MarshalJSON is the custom marshaler for DeliveryRuleResponseHeaderAction. +func (drrha DeliveryRuleResponseHeaderAction) MarshalJSON() ([]byte, error) { + drrha.Name = NameModifyResponseHeader + objectMap := make(map[string]interface{}) + if drrha.Parameters != nil { + objectMap["parameters"] = drrha.Parameters + } + if drrha.Name != "" { + objectMap["name"] = drrha.Name + } + return json.Marshal(objectMap) +} + +// AsURLRedirectAction is the BasicDeliveryRuleAction implementation for DeliveryRuleResponseHeaderAction. +func (drrha DeliveryRuleResponseHeaderAction) AsURLRedirectAction() (*URLRedirectAction, bool) { + return nil, false +} + +// AsURLSigningAction is the BasicDeliveryRuleAction implementation for DeliveryRuleResponseHeaderAction. +func (drrha DeliveryRuleResponseHeaderAction) AsURLSigningAction() (*URLSigningAction, bool) { + return nil, false +} + +// AsOriginGroupOverrideAction is the BasicDeliveryRuleAction implementation for DeliveryRuleResponseHeaderAction. +func (drrha DeliveryRuleResponseHeaderAction) AsOriginGroupOverrideAction() (*OriginGroupOverrideAction, bool) { + return nil, false +} + +// AsURLRewriteAction is the BasicDeliveryRuleAction implementation for DeliveryRuleResponseHeaderAction. +func (drrha DeliveryRuleResponseHeaderAction) AsURLRewriteAction() (*URLRewriteAction, bool) { + return nil, false +} + +// AsDeliveryRuleRequestHeaderAction is the BasicDeliveryRuleAction implementation for DeliveryRuleResponseHeaderAction. +func (drrha DeliveryRuleResponseHeaderAction) AsDeliveryRuleRequestHeaderAction() (*DeliveryRuleRequestHeaderAction, bool) { + return nil, false +} + +// AsDeliveryRuleResponseHeaderAction is the BasicDeliveryRuleAction implementation for DeliveryRuleResponseHeaderAction. +func (drrha DeliveryRuleResponseHeaderAction) AsDeliveryRuleResponseHeaderAction() (*DeliveryRuleResponseHeaderAction, bool) { + return &drrha, true +} + +// AsDeliveryRuleCacheExpirationAction is the BasicDeliveryRuleAction implementation for DeliveryRuleResponseHeaderAction. +func (drrha DeliveryRuleResponseHeaderAction) AsDeliveryRuleCacheExpirationAction() (*DeliveryRuleCacheExpirationAction, bool) { + return nil, false +} + +// AsDeliveryRuleCacheKeyQueryStringAction is the BasicDeliveryRuleAction implementation for DeliveryRuleResponseHeaderAction. +func (drrha DeliveryRuleResponseHeaderAction) AsDeliveryRuleCacheKeyQueryStringAction() (*DeliveryRuleCacheKeyQueryStringAction, bool) { + return nil, false +} + +// AsDeliveryRuleAction is the BasicDeliveryRuleAction implementation for DeliveryRuleResponseHeaderAction. +func (drrha DeliveryRuleResponseHeaderAction) AsDeliveryRuleAction() (*DeliveryRuleAction, bool) { + return nil, false +} + +// AsBasicDeliveryRuleAction is the BasicDeliveryRuleAction implementation for DeliveryRuleResponseHeaderAction. +func (drrha DeliveryRuleResponseHeaderAction) AsBasicDeliveryRuleAction() (BasicDeliveryRuleAction, bool) { + return &drrha, true +} + +// DeliveryRuleURLFileExtensionCondition defines the UrlFileExtension condition for the delivery rule. +type DeliveryRuleURLFileExtensionCondition struct { + // Parameters - Defines the parameters for the condition. + Parameters *URLFileExtensionMatchConditionParameters `json:"parameters,omitempty"` + // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice' + Name Name `json:"name,omitempty"` +} + +// MarshalJSON is the custom marshaler for DeliveryRuleURLFileExtensionCondition. +func (drufec DeliveryRuleURLFileExtensionCondition) MarshalJSON() ([]byte, error) { + drufec.Name = NameURLFileExtension + objectMap := make(map[string]interface{}) + if drufec.Parameters != nil { + objectMap["parameters"] = drufec.Parameters + } + if drufec.Name != "" { + objectMap["name"] = drufec.Name + } + return json.Marshal(objectMap) +} + +// AsDeliveryRuleRemoteAddressCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileExtensionCondition. +func (drufec DeliveryRuleURLFileExtensionCondition) AsDeliveryRuleRemoteAddressCondition() (*DeliveryRuleRemoteAddressCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestMethodCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileExtensionCondition. +func (drufec DeliveryRuleURLFileExtensionCondition) AsDeliveryRuleRequestMethodCondition() (*DeliveryRuleRequestMethodCondition, bool) { + return nil, false +} + +// AsDeliveryRuleQueryStringCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileExtensionCondition. +func (drufec DeliveryRuleURLFileExtensionCondition) AsDeliveryRuleQueryStringCondition() (*DeliveryRuleQueryStringCondition, bool) { + return nil, false +} + +// AsDeliveryRulePostArgsCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileExtensionCondition. +func (drufec DeliveryRuleURLFileExtensionCondition) AsDeliveryRulePostArgsCondition() (*DeliveryRulePostArgsCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestURICondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileExtensionCondition. +func (drufec DeliveryRuleURLFileExtensionCondition) AsDeliveryRuleRequestURICondition() (*DeliveryRuleRequestURICondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestHeaderCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileExtensionCondition. +func (drufec DeliveryRuleURLFileExtensionCondition) AsDeliveryRuleRequestHeaderCondition() (*DeliveryRuleRequestHeaderCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestBodyCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileExtensionCondition. +func (drufec DeliveryRuleURLFileExtensionCondition) AsDeliveryRuleRequestBodyCondition() (*DeliveryRuleRequestBodyCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestSchemeCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileExtensionCondition. +func (drufec DeliveryRuleURLFileExtensionCondition) AsDeliveryRuleRequestSchemeCondition() (*DeliveryRuleRequestSchemeCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLPathCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileExtensionCondition. +func (drufec DeliveryRuleURLFileExtensionCondition) AsDeliveryRuleURLPathCondition() (*DeliveryRuleURLPathCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileExtensionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileExtensionCondition. +func (drufec DeliveryRuleURLFileExtensionCondition) AsDeliveryRuleURLFileExtensionCondition() (*DeliveryRuleURLFileExtensionCondition, bool) { + return &drufec, true +} + +// AsDeliveryRuleURLFileNameCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileExtensionCondition. +func (drufec DeliveryRuleURLFileExtensionCondition) AsDeliveryRuleURLFileNameCondition() (*DeliveryRuleURLFileNameCondition, bool) { + return nil, false +} + +// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileExtensionCondition. +func (drufec DeliveryRuleURLFileExtensionCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileExtensionCondition. +func (drufec DeliveryRuleURLFileExtensionCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) { + return nil, false +} + +// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileExtensionCondition. +func (drufec DeliveryRuleURLFileExtensionCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileExtensionCondition. +func (drufec DeliveryRuleURLFileExtensionCondition) AsDeliveryRuleCondition() (*DeliveryRuleCondition, bool) { + return nil, false +} + +// AsBasicDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileExtensionCondition. +func (drufec DeliveryRuleURLFileExtensionCondition) AsBasicDeliveryRuleCondition() (BasicDeliveryRuleCondition, bool) { + return &drufec, true +} + +// DeliveryRuleURLFileNameCondition defines the UrlFileName condition for the delivery rule. +type DeliveryRuleURLFileNameCondition struct { + // Parameters - Defines the parameters for the condition. + Parameters *URLFileNameMatchConditionParameters `json:"parameters,omitempty"` + // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice' + Name Name `json:"name,omitempty"` +} + +// MarshalJSON is the custom marshaler for DeliveryRuleURLFileNameCondition. +func (drufnc DeliveryRuleURLFileNameCondition) MarshalJSON() ([]byte, error) { + drufnc.Name = NameURLFileName + objectMap := make(map[string]interface{}) + if drufnc.Parameters != nil { + objectMap["parameters"] = drufnc.Parameters + } + if drufnc.Name != "" { + objectMap["name"] = drufnc.Name + } + return json.Marshal(objectMap) +} + +// AsDeliveryRuleRemoteAddressCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileNameCondition. +func (drufnc DeliveryRuleURLFileNameCondition) AsDeliveryRuleRemoteAddressCondition() (*DeliveryRuleRemoteAddressCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestMethodCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileNameCondition. +func (drufnc DeliveryRuleURLFileNameCondition) AsDeliveryRuleRequestMethodCondition() (*DeliveryRuleRequestMethodCondition, bool) { + return nil, false +} + +// AsDeliveryRuleQueryStringCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileNameCondition. +func (drufnc DeliveryRuleURLFileNameCondition) AsDeliveryRuleQueryStringCondition() (*DeliveryRuleQueryStringCondition, bool) { + return nil, false +} + +// AsDeliveryRulePostArgsCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileNameCondition. +func (drufnc DeliveryRuleURLFileNameCondition) AsDeliveryRulePostArgsCondition() (*DeliveryRulePostArgsCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestURICondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileNameCondition. +func (drufnc DeliveryRuleURLFileNameCondition) AsDeliveryRuleRequestURICondition() (*DeliveryRuleRequestURICondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestHeaderCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileNameCondition. +func (drufnc DeliveryRuleURLFileNameCondition) AsDeliveryRuleRequestHeaderCondition() (*DeliveryRuleRequestHeaderCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestBodyCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileNameCondition. +func (drufnc DeliveryRuleURLFileNameCondition) AsDeliveryRuleRequestBodyCondition() (*DeliveryRuleRequestBodyCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestSchemeCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileNameCondition. +func (drufnc DeliveryRuleURLFileNameCondition) AsDeliveryRuleRequestSchemeCondition() (*DeliveryRuleRequestSchemeCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLPathCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileNameCondition. +func (drufnc DeliveryRuleURLFileNameCondition) AsDeliveryRuleURLPathCondition() (*DeliveryRuleURLPathCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileExtensionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileNameCondition. +func (drufnc DeliveryRuleURLFileNameCondition) AsDeliveryRuleURLFileExtensionCondition() (*DeliveryRuleURLFileExtensionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileNameCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileNameCondition. +func (drufnc DeliveryRuleURLFileNameCondition) AsDeliveryRuleURLFileNameCondition() (*DeliveryRuleURLFileNameCondition, bool) { + return &drufnc, true +} + +// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileNameCondition. +func (drufnc DeliveryRuleURLFileNameCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileNameCondition. +func (drufnc DeliveryRuleURLFileNameCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) { + return nil, false +} + +// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileNameCondition. +func (drufnc DeliveryRuleURLFileNameCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileNameCondition. +func (drufnc DeliveryRuleURLFileNameCondition) AsDeliveryRuleCondition() (*DeliveryRuleCondition, bool) { + return nil, false +} + +// AsBasicDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileNameCondition. +func (drufnc DeliveryRuleURLFileNameCondition) AsBasicDeliveryRuleCondition() (BasicDeliveryRuleCondition, bool) { + return &drufnc, true +} + +// DeliveryRuleURLPathCondition defines the UrlPath condition for the delivery rule. +type DeliveryRuleURLPathCondition struct { + // Parameters - Defines the parameters for the condition. + Parameters *URLPathMatchConditionParameters `json:"parameters,omitempty"` + // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice' + Name Name `json:"name,omitempty"` +} + +// MarshalJSON is the custom marshaler for DeliveryRuleURLPathCondition. +func (drupc DeliveryRuleURLPathCondition) MarshalJSON() ([]byte, error) { + drupc.Name = NameURLPath + objectMap := make(map[string]interface{}) + if drupc.Parameters != nil { + objectMap["parameters"] = drupc.Parameters + } + if drupc.Name != "" { + objectMap["name"] = drupc.Name + } + return json.Marshal(objectMap) +} + +// AsDeliveryRuleRemoteAddressCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLPathCondition. +func (drupc DeliveryRuleURLPathCondition) AsDeliveryRuleRemoteAddressCondition() (*DeliveryRuleRemoteAddressCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestMethodCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLPathCondition. +func (drupc DeliveryRuleURLPathCondition) AsDeliveryRuleRequestMethodCondition() (*DeliveryRuleRequestMethodCondition, bool) { + return nil, false +} + +// AsDeliveryRuleQueryStringCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLPathCondition. +func (drupc DeliveryRuleURLPathCondition) AsDeliveryRuleQueryStringCondition() (*DeliveryRuleQueryStringCondition, bool) { + return nil, false +} + +// AsDeliveryRulePostArgsCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLPathCondition. +func (drupc DeliveryRuleURLPathCondition) AsDeliveryRulePostArgsCondition() (*DeliveryRulePostArgsCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestURICondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLPathCondition. +func (drupc DeliveryRuleURLPathCondition) AsDeliveryRuleRequestURICondition() (*DeliveryRuleRequestURICondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestHeaderCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLPathCondition. +func (drupc DeliveryRuleURLPathCondition) AsDeliveryRuleRequestHeaderCondition() (*DeliveryRuleRequestHeaderCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestBodyCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLPathCondition. +func (drupc DeliveryRuleURLPathCondition) AsDeliveryRuleRequestBodyCondition() (*DeliveryRuleRequestBodyCondition, bool) { + return nil, false +} + +// AsDeliveryRuleRequestSchemeCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLPathCondition. +func (drupc DeliveryRuleURLPathCondition) AsDeliveryRuleRequestSchemeCondition() (*DeliveryRuleRequestSchemeCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLPathCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLPathCondition. +func (drupc DeliveryRuleURLPathCondition) AsDeliveryRuleURLPathCondition() (*DeliveryRuleURLPathCondition, bool) { + return &drupc, true +} + +// AsDeliveryRuleURLFileExtensionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLPathCondition. +func (drupc DeliveryRuleURLPathCondition) AsDeliveryRuleURLFileExtensionCondition() (*DeliveryRuleURLFileExtensionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleURLFileNameCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLPathCondition. +func (drupc DeliveryRuleURLPathCondition) AsDeliveryRuleURLFileNameCondition() (*DeliveryRuleURLFileNameCondition, bool) { + return nil, false +} + +// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLPathCondition. +func (drupc DeliveryRuleURLPathCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLPathCondition. +func (drupc DeliveryRuleURLPathCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) { + return nil, false +} + +// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLPathCondition. +func (drupc DeliveryRuleURLPathCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) { + return nil, false +} + +// AsDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLPathCondition. +func (drupc DeliveryRuleURLPathCondition) AsDeliveryRuleCondition() (*DeliveryRuleCondition, bool) { + return nil, false +} + +// AsBasicDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLPathCondition. +func (drupc DeliveryRuleURLPathCondition) AsBasicDeliveryRuleCondition() (BasicDeliveryRuleCondition, bool) { + return &drupc, true +} + +// DomainValidationProperties the JSON object that contains the properties to validate a domain. +type DomainValidationProperties struct { + // ValidationToken - READ-ONLY; Challenge used for DNS TXT record or file based validation + ValidationToken *string `json:"validationToken,omitempty"` + // ExpirationDate - READ-ONLY; The date time that the token expires + ExpirationDate *string `json:"expirationDate,omitempty"` +} + +// EdgeNode edgenode is a global Point of Presence (POP) location used to deliver CDN content to end users. +type EdgeNode struct { + *EdgeNodeProperties `json:"properties,omitempty"` + // SystemData - READ-ONLY + SystemData *SystemData `json:"systemData,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for EdgeNode. +func (en EdgeNode) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if en.EdgeNodeProperties != nil { + objectMap["properties"] = en.EdgeNodeProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for EdgeNode struct. +func (en *EdgeNode) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var edgeNodeProperties EdgeNodeProperties + err = json.Unmarshal(*v, &edgeNodeProperties) + if err != nil { + return err + } + en.EdgeNodeProperties = &edgeNodeProperties + } + case "systemData": + if v != nil { + var systemData SystemData + err = json.Unmarshal(*v, &systemData) + if err != nil { + return err + } + en.SystemData = &systemData + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + en.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + en.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + en.Type = &typeVar + } + } + } + + return nil +} + +// EdgeNodeProperties the JSON object that contains the properties required to create an edgenode. +type EdgeNodeProperties struct { + // IPAddressGroups - List of ip address groups. + IPAddressGroups *[]IPAddressGroup `json:"ipAddressGroups,omitempty"` +} + +// EdgenodeResult result of the request to list CDN edgenodes. It contains a list of ip address group and a +// URL link to get the next set of results. +type EdgenodeResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; Edge node of CDN service. + Value *[]EdgeNode `json:"value,omitempty"` + // NextLink - URL to get the next set of edgenode list results if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for EdgenodeResult. +func (er EdgenodeResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if er.NextLink != nil { + objectMap["nextLink"] = er.NextLink + } + return json.Marshal(objectMap) +} + +// EdgenodeResultIterator provides access to a complete listing of EdgeNode values. +type EdgenodeResultIterator struct { + i int + page EdgenodeResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *EdgenodeResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EdgenodeResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *EdgenodeResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter EdgenodeResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter EdgenodeResultIterator) Response() EdgenodeResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter EdgenodeResultIterator) Value() EdgeNode { + if !iter.page.NotDone() { + return EdgeNode{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the EdgenodeResultIterator type. +func NewEdgenodeResultIterator(page EdgenodeResultPage) EdgenodeResultIterator { + return EdgenodeResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (er EdgenodeResult) IsEmpty() bool { + return er.Value == nil || len(*er.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (er EdgenodeResult) hasNextLink() bool { + return er.NextLink != nil && len(*er.NextLink) != 0 +} + +// edgenodeResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (er EdgenodeResult) edgenodeResultPreparer(ctx context.Context) (*http.Request, error) { + if !er.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(er.NextLink))) +} + +// EdgenodeResultPage contains a page of EdgeNode values. +type EdgenodeResultPage struct { + fn func(context.Context, EdgenodeResult) (EdgenodeResult, error) + er EdgenodeResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *EdgenodeResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EdgenodeResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.er) + if err != nil { + return err + } + page.er = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *EdgenodeResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page EdgenodeResultPage) NotDone() bool { + return !page.er.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page EdgenodeResultPage) Response() EdgenodeResult { + return page.er +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page EdgenodeResultPage) Values() []EdgeNode { + if page.er.IsEmpty() { + return nil + } + return *page.er.Value +} + +// Creates a new instance of the EdgenodeResultPage type. +func NewEdgenodeResultPage(cur EdgenodeResult, getNextPage func(context.Context, EdgenodeResult) (EdgenodeResult, error)) EdgenodeResultPage { + return EdgenodeResultPage{ + fn: getNextPage, + er: cur, + } +} + +// Endpoint CDN endpoint is the entity within a CDN profile containing configuration information such as +// origin, protocol, content caching and delivery behavior. The CDN endpoint uses the URL format +// .azureedge.net. +type Endpoint struct { + autorest.Response `json:"-"` + *EndpointProperties `json:"properties,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // SystemData - READ-ONLY + SystemData *SystemData `json:"systemData,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for Endpoint. +func (e Endpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if e.EndpointProperties != nil { + objectMap["properties"] = e.EndpointProperties + } + if e.Location != nil { + objectMap["location"] = e.Location + } + if e.Tags != nil { + objectMap["tags"] = e.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Endpoint struct. +func (e *Endpoint) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var endpointProperties EndpointProperties + err = json.Unmarshal(*v, &endpointProperties) + if err != nil { + return err + } + e.EndpointProperties = &endpointProperties + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + e.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + e.Tags = tags + } + case "systemData": + if v != nil { + var systemData SystemData + err = json.Unmarshal(*v, &systemData) + if err != nil { + return err + } + e.SystemData = &systemData + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + e.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + e.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + e.Type = &typeVar + } + } + } + + return nil +} + +// EndpointListResult result of the request to list endpoints. It contains a list of endpoint objects and a +// URL link to get the next set of results. +type EndpointListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of CDN endpoints within a profile + Value *[]Endpoint `json:"value,omitempty"` + // NextLink - URL to get the next set of endpoint objects if there is any. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for EndpointListResult. +func (elr EndpointListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if elr.NextLink != nil { + objectMap["nextLink"] = elr.NextLink + } + return json.Marshal(objectMap) +} + +// EndpointListResultIterator provides access to a complete listing of Endpoint values. +type EndpointListResultIterator struct { + i int + page EndpointListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *EndpointListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EndpointListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *EndpointListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter EndpointListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter EndpointListResultIterator) Response() EndpointListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter EndpointListResultIterator) Value() Endpoint { + if !iter.page.NotDone() { + return Endpoint{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the EndpointListResultIterator type. +func NewEndpointListResultIterator(page EndpointListResultPage) EndpointListResultIterator { + return EndpointListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (elr EndpointListResult) IsEmpty() bool { + return elr.Value == nil || len(*elr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (elr EndpointListResult) hasNextLink() bool { + return elr.NextLink != nil && len(*elr.NextLink) != 0 +} + +// endpointListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (elr EndpointListResult) endpointListResultPreparer(ctx context.Context) (*http.Request, error) { + if !elr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(elr.NextLink))) +} + +// EndpointListResultPage contains a page of Endpoint values. +type EndpointListResultPage struct { + fn func(context.Context, EndpointListResult) (EndpointListResult, error) + elr EndpointListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *EndpointListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EndpointListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.elr) + if err != nil { + return err + } + page.elr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *EndpointListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page EndpointListResultPage) NotDone() bool { + return !page.elr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page EndpointListResultPage) Response() EndpointListResult { + return page.elr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page EndpointListResultPage) Values() []Endpoint { + if page.elr.IsEmpty() { + return nil + } + return *page.elr.Value +} + +// Creates a new instance of the EndpointListResultPage type. +func NewEndpointListResultPage(cur EndpointListResult, getNextPage func(context.Context, EndpointListResult) (EndpointListResult, error)) EndpointListResultPage { + return EndpointListResultPage{ + fn: getNextPage, + elr: cur, + } +} + +// EndpointProperties the JSON object that contains the properties required to create an endpoint. +type EndpointProperties struct { + // HostName - READ-ONLY; The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net + HostName *string `json:"hostName,omitempty"` + // Origins - The source of the content being delivered via CDN. + Origins *[]DeepCreatedOrigin `json:"origins,omitempty"` + // OriginGroups - The origin groups comprising of origins that are used for load balancing the traffic based on availability. + OriginGroups *[]DeepCreatedOriginGroup `json:"originGroups,omitempty"` + // ResourceState - READ-ONLY; Resource status of the endpoint. Possible values include: 'EndpointResourceStateCreating', 'EndpointResourceStateDeleting', 'EndpointResourceStateRunning', 'EndpointResourceStateStarting', 'EndpointResourceStateStopped', 'EndpointResourceStateStopping' + ResourceState EndpointResourceState `json:"resourceState,omitempty"` + // ProvisioningState - READ-ONLY; Provisioning status of the endpoint. + ProvisioningState *string `json:"provisioningState,omitempty"` + // OriginPath - A directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. + OriginPath *string `json:"originPath,omitempty"` + // ContentTypesToCompress - List of content types on which compression applies. The value should be a valid MIME type. + ContentTypesToCompress *[]string `json:"contentTypesToCompress,omitempty"` + // OriginHostHeader - The host header value sent to the origin with each request. This property at Endpoint is only allowed when endpoint uses single origin and can be overridden by the same property specified at origin.If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. + OriginHostHeader *string `json:"originHostHeader,omitempty"` + // IsCompressionEnabled - Indicates whether content compression is enabled on CDN. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on CDN when requested content is smaller than 1 byte or larger than 1 MB. + IsCompressionEnabled *bool `json:"isCompressionEnabled,omitempty"` + // IsHTTPAllowed - Indicates whether HTTP traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed. + IsHTTPAllowed *bool `json:"isHttpAllowed,omitempty"` + // IsHTTPSAllowed - Indicates whether HTTPS traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed. + IsHTTPSAllowed *bool `json:"isHttpsAllowed,omitempty"` + // QueryStringCachingBehavior - Defines how CDN caches requests that include query strings. You can ignore any query strings when caching, bypass caching to prevent requests that contain query strings from being cached, or cache every request with a unique URL. Possible values include: 'QueryStringCachingBehaviorIgnoreQueryString', 'QueryStringCachingBehaviorBypassCaching', 'QueryStringCachingBehaviorUseQueryString', 'QueryStringCachingBehaviorNotSet' + QueryStringCachingBehavior QueryStringCachingBehavior `json:"queryStringCachingBehavior,omitempty"` + // OptimizationType - Specifies what scenario the customer wants this CDN endpoint to optimize for, e.g. Download, Media services. With this information, CDN can apply scenario driven optimization. Possible values include: 'GeneralWebDelivery', 'GeneralMediaStreaming', 'VideoOnDemandMediaStreaming', 'LargeFileDownload', 'DynamicSiteAcceleration' + OptimizationType OptimizationType `json:"optimizationType,omitempty"` + // ProbePath - Path to a file hosted on the origin which helps accelerate delivery of the dynamic content and calculate the most optimal routes for the CDN. This is relative to the origin path. This property is only relevant when using a single origin. + ProbePath *string `json:"probePath,omitempty"` + // GeoFilters - List of rules defining the user's geo access within a CDN endpoint. Each geo filter defines an access rule to a specified path or content, e.g. block APAC for path /pictures/ + GeoFilters *[]GeoFilter `json:"geoFilters,omitempty"` + // DefaultOriginGroup - A reference to the origin group. + DefaultOriginGroup *ResourceReference `json:"defaultOriginGroup,omitempty"` + // URLSigningKeys - List of keys used to validate the signed URL hashes. + URLSigningKeys *[]URLSigningKey `json:"urlSigningKeys,omitempty"` + // DeliveryPolicy - A policy that specifies the delivery rules to be used for an endpoint. + DeliveryPolicy *EndpointPropertiesUpdateParametersDeliveryPolicy `json:"deliveryPolicy,omitempty"` + // WebApplicationFirewallPolicyLink - Defines the Web Application Firewall policy for the endpoint (if applicable) + WebApplicationFirewallPolicyLink *EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink `json:"webApplicationFirewallPolicyLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for EndpointProperties. +func (ep EndpointProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ep.Origins != nil { + objectMap["origins"] = ep.Origins + } + if ep.OriginGroups != nil { + objectMap["originGroups"] = ep.OriginGroups + } + if ep.OriginPath != nil { + objectMap["originPath"] = ep.OriginPath + } + if ep.ContentTypesToCompress != nil { + objectMap["contentTypesToCompress"] = ep.ContentTypesToCompress + } + if ep.OriginHostHeader != nil { + objectMap["originHostHeader"] = ep.OriginHostHeader + } + if ep.IsCompressionEnabled != nil { + objectMap["isCompressionEnabled"] = ep.IsCompressionEnabled + } + if ep.IsHTTPAllowed != nil { + objectMap["isHttpAllowed"] = ep.IsHTTPAllowed + } + if ep.IsHTTPSAllowed != nil { + objectMap["isHttpsAllowed"] = ep.IsHTTPSAllowed + } + if ep.QueryStringCachingBehavior != "" { + objectMap["queryStringCachingBehavior"] = ep.QueryStringCachingBehavior + } + if ep.OptimizationType != "" { + objectMap["optimizationType"] = ep.OptimizationType + } + if ep.ProbePath != nil { + objectMap["probePath"] = ep.ProbePath + } + if ep.GeoFilters != nil { + objectMap["geoFilters"] = ep.GeoFilters + } + if ep.DefaultOriginGroup != nil { + objectMap["defaultOriginGroup"] = ep.DefaultOriginGroup + } + if ep.URLSigningKeys != nil { + objectMap["urlSigningKeys"] = ep.URLSigningKeys + } + if ep.DeliveryPolicy != nil { + objectMap["deliveryPolicy"] = ep.DeliveryPolicy + } + if ep.WebApplicationFirewallPolicyLink != nil { + objectMap["webApplicationFirewallPolicyLink"] = ep.WebApplicationFirewallPolicyLink + } + return json.Marshal(objectMap) +} + +// EndpointPropertiesUpdateParameters the JSON object containing endpoint update parameters. +type EndpointPropertiesUpdateParameters struct { + // OriginPath - A directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. + OriginPath *string `json:"originPath,omitempty"` + // ContentTypesToCompress - List of content types on which compression applies. The value should be a valid MIME type. + ContentTypesToCompress *[]string `json:"contentTypesToCompress,omitempty"` + // OriginHostHeader - The host header value sent to the origin with each request. This property at Endpoint is only allowed when endpoint uses single origin and can be overridden by the same property specified at origin.If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. + OriginHostHeader *string `json:"originHostHeader,omitempty"` + // IsCompressionEnabled - Indicates whether content compression is enabled on CDN. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on CDN when requested content is smaller than 1 byte or larger than 1 MB. + IsCompressionEnabled *bool `json:"isCompressionEnabled,omitempty"` + // IsHTTPAllowed - Indicates whether HTTP traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed. + IsHTTPAllowed *bool `json:"isHttpAllowed,omitempty"` + // IsHTTPSAllowed - Indicates whether HTTPS traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed. + IsHTTPSAllowed *bool `json:"isHttpsAllowed,omitempty"` + // QueryStringCachingBehavior - Defines how CDN caches requests that include query strings. You can ignore any query strings when caching, bypass caching to prevent requests that contain query strings from being cached, or cache every request with a unique URL. Possible values include: 'QueryStringCachingBehaviorIgnoreQueryString', 'QueryStringCachingBehaviorBypassCaching', 'QueryStringCachingBehaviorUseQueryString', 'QueryStringCachingBehaviorNotSet' + QueryStringCachingBehavior QueryStringCachingBehavior `json:"queryStringCachingBehavior,omitempty"` + // OptimizationType - Specifies what scenario the customer wants this CDN endpoint to optimize for, e.g. Download, Media services. With this information, CDN can apply scenario driven optimization. Possible values include: 'GeneralWebDelivery', 'GeneralMediaStreaming', 'VideoOnDemandMediaStreaming', 'LargeFileDownload', 'DynamicSiteAcceleration' + OptimizationType OptimizationType `json:"optimizationType,omitempty"` + // ProbePath - Path to a file hosted on the origin which helps accelerate delivery of the dynamic content and calculate the most optimal routes for the CDN. This is relative to the origin path. This property is only relevant when using a single origin. + ProbePath *string `json:"probePath,omitempty"` + // GeoFilters - List of rules defining the user's geo access within a CDN endpoint. Each geo filter defines an access rule to a specified path or content, e.g. block APAC for path /pictures/ + GeoFilters *[]GeoFilter `json:"geoFilters,omitempty"` + // DefaultOriginGroup - A reference to the origin group. + DefaultOriginGroup *ResourceReference `json:"defaultOriginGroup,omitempty"` + // URLSigningKeys - List of keys used to validate the signed URL hashes. + URLSigningKeys *[]URLSigningKey `json:"urlSigningKeys,omitempty"` + // DeliveryPolicy - A policy that specifies the delivery rules to be used for an endpoint. + DeliveryPolicy *EndpointPropertiesUpdateParametersDeliveryPolicy `json:"deliveryPolicy,omitempty"` + // WebApplicationFirewallPolicyLink - Defines the Web Application Firewall policy for the endpoint (if applicable) + WebApplicationFirewallPolicyLink *EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink `json:"webApplicationFirewallPolicyLink,omitempty"` +} + +// EndpointPropertiesUpdateParametersDeliveryPolicy a policy that specifies the delivery rules to be used +// for an endpoint. +type EndpointPropertiesUpdateParametersDeliveryPolicy struct { + // Description - User-friendly description of the policy. + Description *string `json:"description,omitempty"` + // Rules - A list of the delivery rules. + Rules *[]DeliveryRule `json:"rules,omitempty"` +} + +// EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink defines the Web Application Firewall +// policy for the endpoint (if applicable) +type EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink struct { + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// EndpointsCreateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type EndpointsCreateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *EndpointsCreateFuture) Result(client EndpointsClient) (e Endpoint, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsCreateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.EndpointsCreateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if e.Response.Response, err = future.GetResult(sender); err == nil && e.Response.Response.StatusCode != http.StatusNoContent { + e, err = client.CreateResponder(e.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsCreateFuture", "Result", e.Response.Response, "Failure responding to request") + } + } + return +} + +// EndpointsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type EndpointsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *EndpointsDeleteFuture) Result(client EndpointsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.EndpointsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// EndpointsLoadContentFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type EndpointsLoadContentFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *EndpointsLoadContentFuture) Result(client EndpointsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsLoadContentFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.EndpointsLoadContentFuture") + return + } + ar.Response = future.Response() + return +} + +// EndpointsPurgeContentFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type EndpointsPurgeContentFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *EndpointsPurgeContentFuture) Result(client EndpointsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsPurgeContentFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.EndpointsPurgeContentFuture") + return + } + ar.Response = future.Response() + return +} + +// EndpointsStartFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type EndpointsStartFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *EndpointsStartFuture) Result(client EndpointsClient) (e Endpoint, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsStartFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.EndpointsStartFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if e.Response.Response, err = future.GetResult(sender); err == nil && e.Response.Response.StatusCode != http.StatusNoContent { + e, err = client.StartResponder(e.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsStartFuture", "Result", e.Response.Response, "Failure responding to request") + } + } + return +} + +// EndpointsStopFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type EndpointsStopFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *EndpointsStopFuture) Result(client EndpointsClient) (e Endpoint, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsStopFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.EndpointsStopFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if e.Response.Response, err = future.GetResult(sender); err == nil && e.Response.Response.StatusCode != http.StatusNoContent { + e, err = client.StopResponder(e.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsStopFuture", "Result", e.Response.Response, "Failure responding to request") + } + } + return +} + +// EndpointsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type EndpointsUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *EndpointsUpdateFuture) Result(client EndpointsClient) (e Endpoint, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.EndpointsUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if e.Response.Response, err = future.GetResult(sender); err == nil && e.Response.Response.StatusCode != http.StatusNoContent { + e, err = client.UpdateResponder(e.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.EndpointsUpdateFuture", "Result", e.Response.Response, "Failure responding to request") + } + } + return +} + +// EndpointType defines the ARM Resource ID for the linked endpoints +type EndpointType struct { + // ID - ARM Resource ID string. + ID *string `json:"id,omitempty"` +} + +// EndpointUpdateParameters properties required to create or update an endpoint. +type EndpointUpdateParameters struct { + // Tags - Endpoint tags. + Tags map[string]*string `json:"tags"` + *EndpointPropertiesUpdateParameters `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for EndpointUpdateParameters. +func (eup EndpointUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if eup.Tags != nil { + objectMap["tags"] = eup.Tags + } + if eup.EndpointPropertiesUpdateParameters != nil { + objectMap["properties"] = eup.EndpointPropertiesUpdateParameters + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for EndpointUpdateParameters struct. +func (eup *EndpointUpdateParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + eup.Tags = tags + } + case "properties": + if v != nil { + var endpointPropertiesUpdateParameters EndpointPropertiesUpdateParameters + err = json.Unmarshal(*v, &endpointPropertiesUpdateParameters) + if err != nil { + return err + } + eup.EndpointPropertiesUpdateParameters = &endpointPropertiesUpdateParameters + } + } + } + + return nil +} + +// ErrorResponse error response indicates CDN service is not able to process the incoming request. The +// reason is provided in the error message. +type ErrorResponse struct { + // Code - READ-ONLY; Error code. + Code *string `json:"code,omitempty"` + // Message - READ-ONLY; Error message indicating why the operation failed. + Message *string `json:"message,omitempty"` +} + +// GeoFilter rules defining user's geo access within a CDN endpoint. +type GeoFilter struct { + // RelativePath - Relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.) + RelativePath *string `json:"relativePath,omitempty"` + // Action - Action of the geo filter, i.e. allow or block access. Possible values include: 'GeoFilterActionsBlock', 'GeoFilterActionsAllow' + Action GeoFilterActions `json:"action,omitempty"` + // CountryCodes - Two letter country codes defining user country access in a geo filter, e.g. AU, MX, US. + CountryCodes *[]string `json:"countryCodes,omitempty"` +} + +// HeaderActionParameters defines the parameters for the request header action. +type HeaderActionParameters struct { + OdataType *string `json:"@odata.type,omitempty"` + // HeaderAction - Action to perform. Possible values include: 'Append', 'Overwrite', 'Delete' + HeaderAction HeaderAction `json:"headerAction,omitempty"` + // HeaderName - Name of the header to modify + HeaderName *string `json:"headerName,omitempty"` + // Value - Value for the specified action + Value *string `json:"value,omitempty"` +} + +// HealthProbeParameters the JSON object that contains the properties to send health probes to origin. +type HealthProbeParameters struct { + // ProbePath - The path relative to the origin that is used to determine the health of the origin. + ProbePath *string `json:"probePath,omitempty"` + // ProbeRequestType - The type of health probe request that is made. Possible values include: 'NotSet', 'GET', 'HEAD' + ProbeRequestType HealthProbeRequestType `json:"probeRequestType,omitempty"` + // ProbeProtocol - Protocol to use for health probe. Possible values include: 'ProbeProtocolNotSet', 'ProbeProtocolHTTP', 'ProbeProtocolHTTPS' + ProbeProtocol ProbeProtocol `json:"probeProtocol,omitempty"` + // ProbeIntervalInSeconds - The number of seconds between health probes.Default is 240sec. + ProbeIntervalInSeconds *int32 `json:"probeIntervalInSeconds,omitempty"` +} + +// HTTPErrorRangeParameters the JSON object that represents the range for http status codes +type HTTPErrorRangeParameters struct { + // Begin - The inclusive start of the http status code range. + Begin *int32 `json:"begin,omitempty"` + // End - The inclusive end of the http status code range. + End *int32 `json:"end,omitempty"` +} + +// HTTPVersionMatchConditionParameters defines the parameters for HttpVersion match conditions +type HTTPVersionMatchConditionParameters struct { + OdataType *string `json:"@odata.type,omitempty"` + // Operator - Describes operator to be matched + Operator *string `json:"operator,omitempty"` + // NegateCondition - Describes if this is negate condition or not + NegateCondition *bool `json:"negateCondition,omitempty"` + // MatchValues - The match value for the condition of the delivery rule + MatchValues *[]string `json:"matchValues,omitempty"` +} + +// IPAddressGroup CDN Ip address group +type IPAddressGroup struct { + // DeliveryRegion - The delivery region of the ip address group + DeliveryRegion *string `json:"deliveryRegion,omitempty"` + // Ipv4Addresses - The list of ip v4 addresses. + Ipv4Addresses *[]CidrIPAddress `json:"ipv4Addresses,omitempty"` + // Ipv6Addresses - The list of ip v6 addresses. + Ipv6Addresses *[]CidrIPAddress `json:"ipv6Addresses,omitempty"` +} + +// IsDeviceMatchConditionParameters defines the parameters for IsDevice match conditions +type IsDeviceMatchConditionParameters struct { + OdataType *string `json:"@odata.type,omitempty"` + // Operator - Describes operator to be matched + Operator *string `json:"operator,omitempty"` + // NegateCondition - Describes if this is negate condition or not + NegateCondition *bool `json:"negateCondition,omitempty"` + // MatchValues - The match value for the condition of the delivery rule + MatchValues *[]string `json:"matchValues,omitempty"` + // Transforms - List of transforms + Transforms *[]Transform `json:"transforms,omitempty"` +} + +// KeyVaultCertificateSourceParameters describes the parameters for using a user's KeyVault certificate for +// securing custom domain. +type KeyVaultCertificateSourceParameters struct { + OdataType *string `json:"@odata.type,omitempty"` + // SubscriptionID - Subscription Id of the user's Key Vault containing the SSL certificate + SubscriptionID *string `json:"subscriptionId,omitempty"` + // ResourceGroupName - Resource group of the user's Key Vault containing the SSL certificate + ResourceGroupName *string `json:"resourceGroupName,omitempty"` + // VaultName - The name of the user's Key Vault containing the SSL certificate + VaultName *string `json:"vaultName,omitempty"` + // SecretName - The name of Key Vault Secret (representing the full certificate PFX) in Key Vault. + SecretName *string `json:"secretName,omitempty"` + // SecretVersion - The version(GUID) of Key Vault Secret in Key Vault. + SecretVersion *string `json:"secretVersion,omitempty"` + // UpdateRule - Describes the action that shall be taken when the certificate is updated in Key Vault. + UpdateRule *string `json:"updateRule,omitempty"` + // DeleteRule - Describes the action that shall be taken when the certificate is removed from Key Vault. + DeleteRule *string `json:"deleteRule,omitempty"` +} + +// KeyVaultSigningKeyParameters describes the parameters for using a user's KeyVault for URL Signing Key. +type KeyVaultSigningKeyParameters struct { + OdataType *string `json:"@odata.type,omitempty"` + // SubscriptionID - Subscription Id of the user's Key Vault containing the secret + SubscriptionID *string `json:"subscriptionId,omitempty"` + // ResourceGroupName - Resource group of the user's Key Vault containing the secret + ResourceGroupName *string `json:"resourceGroupName,omitempty"` + // VaultName - The name of the user's Key Vault containing the secret + VaultName *string `json:"vaultName,omitempty"` + // SecretName - The name of secret in Key Vault. + SecretName *string `json:"secretName,omitempty"` + // SecretVersion - The version(GUID) of secret in Key Vault. + SecretVersion *string `json:"secretVersion,omitempty"` +} + +// LoadBalancingSettingsParameters round-Robin load balancing settings for a backend pool +type LoadBalancingSettingsParameters struct { + // SampleSize - The number of samples to consider for load balancing decisions + SampleSize *int32 `json:"sampleSize,omitempty"` + // SuccessfulSamplesRequired - The number of samples within the sample period that must succeed + SuccessfulSamplesRequired *int32 `json:"successfulSamplesRequired,omitempty"` + // AdditionalLatencyInMilliseconds - The additional latency in milliseconds for probes to fall into the lowest latency bucket + AdditionalLatencyInMilliseconds *int32 `json:"additionalLatencyInMilliseconds,omitempty"` +} + +// LoadParameters parameters required for content load. +type LoadParameters struct { + // ContentPaths - The path to the content to be loaded. Path should be a relative file URL of the origin. + ContentPaths *[]string `json:"contentPaths,omitempty"` +} + +// ManagedCertificate managed Certificate used for https +type ManagedCertificate struct { + // Subject - Subject name in the certificate. + Subject *string `json:"subject,omitempty"` + // ExpirationDate - Certificate expiration date. + ExpirationDate *string `json:"expirationDate,omitempty"` + // Thumbprint - Certificate thumbprint. + Thumbprint *string `json:"thumbprint,omitempty"` +} + +// ManagedCertificateParameters managed Certificate used for https +type ManagedCertificateParameters struct { + // Type - The type of the Secret to create. Possible values include: 'SecretTypeURLSigningKey', 'SecretTypeCustomerCertificate', 'SecretTypeManagedCertificate' + Type SecretType `json:"type,omitempty"` + // Subject - Subject name in the certificate. + Subject *string `json:"subject,omitempty"` + // ExpirationDate - Certificate expiration date. + ExpirationDate *string `json:"expirationDate,omitempty"` + // Thumbprint - Certificate thumbprint. + Thumbprint *string `json:"thumbprint,omitempty"` +} + +// ManagedHTTPSParameters defines the certificate source parameters using CDN managed certificate for +// enabling SSL. +type ManagedHTTPSParameters struct { + // CertificateSourceParameters - Defines the certificate source parameters using CDN managed certificate for enabling SSL. + CertificateSourceParameters *CertificateSourceParameters `json:"certificateSourceParameters,omitempty"` + // ProtocolType - Defines the TLS extension protocol that is used for secure delivery. Possible values include: 'ServerNameIndication', 'IPBased' + ProtocolType ProtocolType `json:"protocolType,omitempty"` + // MinimumTLSVersion - TLS protocol version that will be used for Https. Possible values include: 'MinimumTLSVersionNone', 'MinimumTLSVersionTLS10', 'MinimumTLSVersionTLS12' + MinimumTLSVersion MinimumTLSVersion `json:"minimumTlsVersion,omitempty"` + // CertificateSource - Possible values include: 'CertificateSourceCustomDomainHTTPSParameters', 'CertificateSourceCdn', 'CertificateSourceAzureKeyVault' + CertificateSource CertificateSource `json:"certificateSource,omitempty"` +} + +// MarshalJSON is the custom marshaler for ManagedHTTPSParameters. +func (mhp ManagedHTTPSParameters) MarshalJSON() ([]byte, error) { + mhp.CertificateSource = CertificateSourceCdn + objectMap := make(map[string]interface{}) + if mhp.CertificateSourceParameters != nil { + objectMap["certificateSourceParameters"] = mhp.CertificateSourceParameters + } + if mhp.ProtocolType != "" { + objectMap["protocolType"] = mhp.ProtocolType + } + if mhp.MinimumTLSVersion != "" { + objectMap["minimumTlsVersion"] = mhp.MinimumTLSVersion + } + if mhp.CertificateSource != "" { + objectMap["certificateSource"] = mhp.CertificateSource + } + return json.Marshal(objectMap) +} + +// AsManagedHTTPSParameters is the BasicCustomDomainHTTPSParameters implementation for ManagedHTTPSParameters. +func (mhp ManagedHTTPSParameters) AsManagedHTTPSParameters() (*ManagedHTTPSParameters, bool) { + return &mhp, true +} + +// AsUserManagedHTTPSParameters is the BasicCustomDomainHTTPSParameters implementation for ManagedHTTPSParameters. +func (mhp ManagedHTTPSParameters) AsUserManagedHTTPSParameters() (*UserManagedHTTPSParameters, bool) { + return nil, false +} + +// AsCustomDomainHTTPSParameters is the BasicCustomDomainHTTPSParameters implementation for ManagedHTTPSParameters. +func (mhp ManagedHTTPSParameters) AsCustomDomainHTTPSParameters() (*CustomDomainHTTPSParameters, bool) { + return nil, false +} + +// AsBasicCustomDomainHTTPSParameters is the BasicCustomDomainHTTPSParameters implementation for ManagedHTTPSParameters. +func (mhp ManagedHTTPSParameters) AsBasicCustomDomainHTTPSParameters() (BasicCustomDomainHTTPSParameters, bool) { + return &mhp, true +} + +// ManagedRuleDefinition describes a managed rule definition. +type ManagedRuleDefinition struct { + // RuleID - READ-ONLY; Identifier for the managed rule. + RuleID *string `json:"ruleId,omitempty"` + // Description - READ-ONLY; Describes the functionality of the managed rule. + Description *string `json:"description,omitempty"` +} + +// ManagedRuleGroupDefinition describes a managed rule group. +type ManagedRuleGroupDefinition struct { + // RuleGroupName - READ-ONLY; Name of the managed rule group. + RuleGroupName *string `json:"ruleGroupName,omitempty"` + // Description - READ-ONLY; Description of the managed rule group. + Description *string `json:"description,omitempty"` + // Rules - READ-ONLY; List of rules within the managed rule group. + Rules *[]ManagedRuleDefinition `json:"rules,omitempty"` +} + +// ManagedRuleGroupOverride defines a managed rule group override setting. +type ManagedRuleGroupOverride struct { + // RuleGroupName - Describes the managed rule group within the rule set to override + RuleGroupName *string `json:"ruleGroupName,omitempty"` + // Rules - List of rules that will be disabled. If none specified, all rules in the group will be disabled. + Rules *[]ManagedRuleOverride `json:"rules,omitempty"` +} + +// ManagedRuleOverride defines a managed rule group override setting. +type ManagedRuleOverride struct { + // RuleID - Identifier for the managed rule. + RuleID *string `json:"ruleId,omitempty"` + // EnabledState - Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. Possible values include: 'ManagedRuleEnabledStateDisabled', 'ManagedRuleEnabledStateEnabled' + EnabledState ManagedRuleEnabledState `json:"enabledState,omitempty"` + // Action - Describes the override action to be applied when rule matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect' + Action ActionType `json:"action,omitempty"` +} + +// ManagedRuleSet defines a managed rule set. +type ManagedRuleSet struct { + // RuleSetType - Defines the rule set type to use. + RuleSetType *string `json:"ruleSetType,omitempty"` + // RuleSetVersion - Defines the version of the rule set to use. + RuleSetVersion *string `json:"ruleSetVersion,omitempty"` + // AnomalyScore - Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests. + AnomalyScore *int32 `json:"anomalyScore,omitempty"` + // RuleGroupOverrides - Defines the rule overrides to apply to the rule set. + RuleGroupOverrides *[]ManagedRuleGroupOverride `json:"ruleGroupOverrides,omitempty"` +} + +// ManagedRuleSetDefinition describes a managed rule set definition. +type ManagedRuleSetDefinition struct { + // ManagedRuleSetDefinitionProperties - Describes managed rule set definition properties. + *ManagedRuleSetDefinitionProperties `json:"properties,omitempty"` + // Sku - The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy. + Sku *Sku `json:"sku,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ManagedRuleSetDefinition. +func (mrsd ManagedRuleSetDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mrsd.ManagedRuleSetDefinitionProperties != nil { + objectMap["properties"] = mrsd.ManagedRuleSetDefinitionProperties + } + if mrsd.Sku != nil { + objectMap["sku"] = mrsd.Sku + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ManagedRuleSetDefinition struct. +func (mrsd *ManagedRuleSetDefinition) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var managedRuleSetDefinitionProperties ManagedRuleSetDefinitionProperties + err = json.Unmarshal(*v, &managedRuleSetDefinitionProperties) + if err != nil { + return err + } + mrsd.ManagedRuleSetDefinitionProperties = &managedRuleSetDefinitionProperties + } + case "sku": + if v != nil { + var sku Sku + err = json.Unmarshal(*v, &sku) + if err != nil { + return err + } + mrsd.Sku = &sku + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + mrsd.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + mrsd.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mrsd.Type = &typeVar + } + } + } + + return nil +} + +// ManagedRuleSetDefinitionList list of managed rule set definitions available for use in a policy. +type ManagedRuleSetDefinitionList struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of managed rule set definitions. + Value *[]ManagedRuleSetDefinition `json:"value,omitempty"` + // NextLink - URL to retrieve next set of managed rule set definitions. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for ManagedRuleSetDefinitionList. +func (mrsdl ManagedRuleSetDefinitionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mrsdl.NextLink != nil { + objectMap["nextLink"] = mrsdl.NextLink + } + return json.Marshal(objectMap) +} + +// ManagedRuleSetDefinitionListIterator provides access to a complete listing of ManagedRuleSetDefinition +// values. +type ManagedRuleSetDefinitionListIterator struct { + i int + page ManagedRuleSetDefinitionListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ManagedRuleSetDefinitionListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ManagedRuleSetDefinitionListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ManagedRuleSetDefinitionListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ManagedRuleSetDefinitionListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ManagedRuleSetDefinitionListIterator) Response() ManagedRuleSetDefinitionList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ManagedRuleSetDefinitionListIterator) Value() ManagedRuleSetDefinition { + if !iter.page.NotDone() { + return ManagedRuleSetDefinition{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ManagedRuleSetDefinitionListIterator type. +func NewManagedRuleSetDefinitionListIterator(page ManagedRuleSetDefinitionListPage) ManagedRuleSetDefinitionListIterator { + return ManagedRuleSetDefinitionListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (mrsdl ManagedRuleSetDefinitionList) IsEmpty() bool { + return mrsdl.Value == nil || len(*mrsdl.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (mrsdl ManagedRuleSetDefinitionList) hasNextLink() bool { + return mrsdl.NextLink != nil && len(*mrsdl.NextLink) != 0 +} + +// managedRuleSetDefinitionListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (mrsdl ManagedRuleSetDefinitionList) managedRuleSetDefinitionListPreparer(ctx context.Context) (*http.Request, error) { + if !mrsdl.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(mrsdl.NextLink))) +} + +// ManagedRuleSetDefinitionListPage contains a page of ManagedRuleSetDefinition values. +type ManagedRuleSetDefinitionListPage struct { + fn func(context.Context, ManagedRuleSetDefinitionList) (ManagedRuleSetDefinitionList, error) + mrsdl ManagedRuleSetDefinitionList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ManagedRuleSetDefinitionListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ManagedRuleSetDefinitionListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.mrsdl) + if err != nil { + return err + } + page.mrsdl = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ManagedRuleSetDefinitionListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ManagedRuleSetDefinitionListPage) NotDone() bool { + return !page.mrsdl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ManagedRuleSetDefinitionListPage) Response() ManagedRuleSetDefinitionList { + return page.mrsdl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ManagedRuleSetDefinitionListPage) Values() []ManagedRuleSetDefinition { + if page.mrsdl.IsEmpty() { + return nil + } + return *page.mrsdl.Value +} + +// Creates a new instance of the ManagedRuleSetDefinitionListPage type. +func NewManagedRuleSetDefinitionListPage(cur ManagedRuleSetDefinitionList, getNextPage func(context.Context, ManagedRuleSetDefinitionList) (ManagedRuleSetDefinitionList, error)) ManagedRuleSetDefinitionListPage { + return ManagedRuleSetDefinitionListPage{ + fn: getNextPage, + mrsdl: cur, + } +} + +// ManagedRuleSetDefinitionProperties properties for a managed rule set definition. +type ManagedRuleSetDefinitionProperties struct { + // ProvisioningState - READ-ONLY; Provisioning state of the managed rule set. + ProvisioningState *string `json:"provisioningState,omitempty"` + // RuleSetType - READ-ONLY; Type of the managed rule set. + RuleSetType *string `json:"ruleSetType,omitempty"` + // RuleSetVersion - READ-ONLY; Version of the managed rule set type. + RuleSetVersion *string `json:"ruleSetVersion,omitempty"` + // RuleGroups - READ-ONLY; Rule groups of the managed rule set. + RuleGroups *[]ManagedRuleGroupDefinition `json:"ruleGroups,omitempty"` +} + +// ManagedRuleSetList defines the list of managed rule sets for the policy. +type ManagedRuleSetList struct { + // ManagedRuleSets - List of rule sets. + ManagedRuleSets *[]ManagedRuleSet `json:"managedRuleSets,omitempty"` +} + +// MatchCondition define match conditions +type MatchCondition struct { + // MatchVariable - Match variable to compare against. Possible values include: 'RemoteAddr', 'SocketAddr', 'RequestMethod', 'RequestHeader', 'RequestURI', 'QueryString', 'RequestBody', 'Cookies', 'PostArgs' + MatchVariable MatchVariable `json:"matchVariable,omitempty"` + // Selector - Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs. + Selector *string `json:"selector,omitempty"` + // Operator - Describes operator to be matched. Possible values include: 'OperatorAny', 'OperatorIPMatch', 'OperatorGeoMatch', 'OperatorEqual', 'OperatorContains', 'OperatorLessThan', 'OperatorGreaterThan', 'OperatorLessThanOrEqual', 'OperatorGreaterThanOrEqual', 'OperatorBeginsWith', 'OperatorEndsWith', 'OperatorRegEx' + Operator Operator `json:"operator,omitempty"` + // NegateCondition - Describes if the result of this condition should be negated. + NegateCondition *bool `json:"negateCondition,omitempty"` + // MatchValue - List of possible match values. + MatchValue *[]string `json:"matchValue,omitempty"` + // Transforms - List of transforms. + Transforms *[]TransformType `json:"transforms,omitempty"` +} + +// MetricsResponse metrics Response +type MetricsResponse struct { + autorest.Response `json:"-"` + DateTimeBegin *date.Time `json:"dateTimeBegin,omitempty"` + DateTimeEnd *date.Time `json:"dateTimeEnd,omitempty"` + // Granularity - Possible values include: 'PT5M', 'PT1H', 'P1D' + Granularity Granularity `json:"granularity,omitempty"` + Series *[]MetricsResponseSeriesItem `json:"series,omitempty"` +} + +// MetricsResponseSeriesItem ... +type MetricsResponseSeriesItem struct { + Metric *string `json:"metric,omitempty"` + // Unit - Possible values include: 'Count', 'Bytes', 'BitsPerSecond' + Unit Unit `json:"unit,omitempty"` + Groups *[]MetricsResponseSeriesItemGroupsItem `json:"groups,omitempty"` + Data *[]MetricsResponseSeriesItemDataItem `json:"data,omitempty"` +} + +// MetricsResponseSeriesItemDataItem ... +type MetricsResponseSeriesItemDataItem struct { + DateTime *date.Time `json:"dateTime,omitempty"` + Value *float64 `json:"value,omitempty"` +} + +// MetricsResponseSeriesItemGroupsItem ... +type MetricsResponseSeriesItemGroupsItem struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` +} + +// Operation CDN REST API operation +type Operation struct { + // Name - READ-ONLY; Operation name: {provider}/{resource}/{operation} + Name *string `json:"name,omitempty"` + // Display - The object that represents the operation. + Display *OperationDisplay `json:"display,omitempty"` +} + +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if o.Display != nil { + objectMap["display"] = o.Display + } + return json.Marshal(objectMap) +} + +// OperationDisplay the object that represents the operation. +type OperationDisplay struct { + // Provider - READ-ONLY; Service provider: Microsoft.Cdn + Provider *string `json:"provider,omitempty"` + // Resource - READ-ONLY; Resource on which the operation is performed: Profile, endpoint, etc. + Resource *string `json:"resource,omitempty"` + // Operation - READ-ONLY; Operation type: Read, write, delete, etc. + Operation *string `json:"operation,omitempty"` +} + +// OperationsListResult result of the request to list CDN operations. It contains a list of operations and +// a URL link to get the next set of results. +type OperationsListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of CDN operations supported by the CDN resource provider. + Value *[]Operation `json:"value,omitempty"` + // NextLink - URL to get the next set of operation list results if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for OperationsListResult. +func (olr OperationsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if olr.NextLink != nil { + objectMap["nextLink"] = olr.NextLink + } + return json.Marshal(objectMap) +} + +// OperationsListResultIterator provides access to a complete listing of Operation values. +type OperationsListResultIterator struct { + i int + page OperationsListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *OperationsListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *OperationsListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter OperationsListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter OperationsListResultIterator) Response() OperationsListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter OperationsListResultIterator) Value() Operation { + if !iter.page.NotDone() { + return Operation{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the OperationsListResultIterator type. +func NewOperationsListResultIterator(page OperationsListResultPage) OperationsListResultIterator { + return OperationsListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (olr OperationsListResult) IsEmpty() bool { + return olr.Value == nil || len(*olr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (olr OperationsListResult) hasNextLink() bool { + return olr.NextLink != nil && len(*olr.NextLink) != 0 +} + +// operationsListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (olr OperationsListResult) operationsListResultPreparer(ctx context.Context) (*http.Request, error) { + if !olr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(olr.NextLink))) +} + +// OperationsListResultPage contains a page of Operation values. +type OperationsListResultPage struct { + fn func(context.Context, OperationsListResult) (OperationsListResult, error) + olr OperationsListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *OperationsListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.olr) + if err != nil { + return err + } + page.olr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *OperationsListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page OperationsListResultPage) NotDone() bool { + return !page.olr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page OperationsListResultPage) Response() OperationsListResult { + return page.olr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page OperationsListResultPage) Values() []Operation { + if page.olr.IsEmpty() { + return nil + } + return *page.olr.Value +} + +// Creates a new instance of the OperationsListResultPage type. +func NewOperationsListResultPage(cur OperationsListResult, getNextPage func(context.Context, OperationsListResult) (OperationsListResult, error)) OperationsListResultPage { + return OperationsListResultPage{ + fn: getNextPage, + olr: cur, + } +} + +// Origin CDN origin is the source of the content being delivered via CDN. When the edge nodes represented +// by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of +// the configured origins. +type Origin struct { + autorest.Response `json:"-"` + *OriginProperties `json:"properties,omitempty"` + // SystemData - READ-ONLY + SystemData *SystemData `json:"systemData,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for Origin. +func (o Origin) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if o.OriginProperties != nil { + objectMap["properties"] = o.OriginProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Origin struct. +func (o *Origin) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var originProperties OriginProperties + err = json.Unmarshal(*v, &originProperties) + if err != nil { + return err + } + o.OriginProperties = &originProperties + } + case "systemData": + if v != nil { + var systemData SystemData + err = json.Unmarshal(*v, &systemData) + if err != nil { + return err + } + o.SystemData = &systemData + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + o.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + o.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + o.Type = &typeVar + } + } + } + + return nil +} + +// OriginGroup origin group comprising of origins is used for load balancing to origins when the content +// cannot be served from CDN. +type OriginGroup struct { + autorest.Response `json:"-"` + *OriginGroupProperties `json:"properties,omitempty"` + // SystemData - READ-ONLY + SystemData *SystemData `json:"systemData,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for OriginGroup. +func (og OriginGroup) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if og.OriginGroupProperties != nil { + objectMap["properties"] = og.OriginGroupProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for OriginGroup struct. +func (og *OriginGroup) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var originGroupProperties OriginGroupProperties + err = json.Unmarshal(*v, &originGroupProperties) + if err != nil { + return err + } + og.OriginGroupProperties = &originGroupProperties + } + case "systemData": + if v != nil { + var systemData SystemData + err = json.Unmarshal(*v, &systemData) + if err != nil { + return err + } + og.SystemData = &systemData + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + og.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + og.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + og.Type = &typeVar + } + } + } + + return nil +} + +// OriginGroupListResult result of the request to list origin groups. It contains a list of origin groups +// objects and a URL link to get the next set of results. +type OriginGroupListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of CDN origin groups within an endpoint + Value *[]OriginGroup `json:"value,omitempty"` + // NextLink - URL to get the next set of origin objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for OriginGroupListResult. +func (oglr OriginGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if oglr.NextLink != nil { + objectMap["nextLink"] = oglr.NextLink + } + return json.Marshal(objectMap) +} + +// OriginGroupListResultIterator provides access to a complete listing of OriginGroup values. +type OriginGroupListResultIterator struct { + i int + page OriginGroupListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *OriginGroupListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OriginGroupListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *OriginGroupListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter OriginGroupListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter OriginGroupListResultIterator) Response() OriginGroupListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter OriginGroupListResultIterator) Value() OriginGroup { + if !iter.page.NotDone() { + return OriginGroup{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the OriginGroupListResultIterator type. +func NewOriginGroupListResultIterator(page OriginGroupListResultPage) OriginGroupListResultIterator { + return OriginGroupListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (oglr OriginGroupListResult) IsEmpty() bool { + return oglr.Value == nil || len(*oglr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (oglr OriginGroupListResult) hasNextLink() bool { + return oglr.NextLink != nil && len(*oglr.NextLink) != 0 +} + +// originGroupListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (oglr OriginGroupListResult) originGroupListResultPreparer(ctx context.Context) (*http.Request, error) { + if !oglr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(oglr.NextLink))) +} + +// OriginGroupListResultPage contains a page of OriginGroup values. +type OriginGroupListResultPage struct { + fn func(context.Context, OriginGroupListResult) (OriginGroupListResult, error) + oglr OriginGroupListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *OriginGroupListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OriginGroupListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.oglr) + if err != nil { + return err + } + page.oglr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *OriginGroupListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page OriginGroupListResultPage) NotDone() bool { + return !page.oglr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page OriginGroupListResultPage) Response() OriginGroupListResult { + return page.oglr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page OriginGroupListResultPage) Values() []OriginGroup { + if page.oglr.IsEmpty() { + return nil + } + return *page.oglr.Value +} + +// Creates a new instance of the OriginGroupListResultPage type. +func NewOriginGroupListResultPage(cur OriginGroupListResult, getNextPage func(context.Context, OriginGroupListResult) (OriginGroupListResult, error)) OriginGroupListResultPage { + return OriginGroupListResultPage{ + fn: getNextPage, + oglr: cur, + } +} + +// OriginGroupOverrideAction defines the origin group override action for the delivery rule. +type OriginGroupOverrideAction struct { + // Parameters - Defines the parameters for the action. + Parameters *OriginGroupOverrideActionParameters `json:"parameters,omitempty"` + // Name - Possible values include: 'NameDeliveryRuleAction', 'NameURLRedirect', 'NameURLSigning', 'NameOriginGroupOverride', 'NameURLRewrite', 'NameModifyRequestHeader', 'NameModifyResponseHeader', 'NameCacheExpiration', 'NameCacheKeyQueryString' + Name NameBasicDeliveryRuleAction `json:"name,omitempty"` +} + +// MarshalJSON is the custom marshaler for OriginGroupOverrideAction. +func (ogoa OriginGroupOverrideAction) MarshalJSON() ([]byte, error) { + ogoa.Name = NameOriginGroupOverride + objectMap := make(map[string]interface{}) + if ogoa.Parameters != nil { + objectMap["parameters"] = ogoa.Parameters + } + if ogoa.Name != "" { + objectMap["name"] = ogoa.Name + } + return json.Marshal(objectMap) +} + +// AsURLRedirectAction is the BasicDeliveryRuleAction implementation for OriginGroupOverrideAction. +func (ogoa OriginGroupOverrideAction) AsURLRedirectAction() (*URLRedirectAction, bool) { + return nil, false +} + +// AsURLSigningAction is the BasicDeliveryRuleAction implementation for OriginGroupOverrideAction. +func (ogoa OriginGroupOverrideAction) AsURLSigningAction() (*URLSigningAction, bool) { + return nil, false +} + +// AsOriginGroupOverrideAction is the BasicDeliveryRuleAction implementation for OriginGroupOverrideAction. +func (ogoa OriginGroupOverrideAction) AsOriginGroupOverrideAction() (*OriginGroupOverrideAction, bool) { + return &ogoa, true +} + +// AsURLRewriteAction is the BasicDeliveryRuleAction implementation for OriginGroupOverrideAction. +func (ogoa OriginGroupOverrideAction) AsURLRewriteAction() (*URLRewriteAction, bool) { + return nil, false +} + +// AsDeliveryRuleRequestHeaderAction is the BasicDeliveryRuleAction implementation for OriginGroupOverrideAction. +func (ogoa OriginGroupOverrideAction) AsDeliveryRuleRequestHeaderAction() (*DeliveryRuleRequestHeaderAction, bool) { + return nil, false +} + +// AsDeliveryRuleResponseHeaderAction is the BasicDeliveryRuleAction implementation for OriginGroupOverrideAction. +func (ogoa OriginGroupOverrideAction) AsDeliveryRuleResponseHeaderAction() (*DeliveryRuleResponseHeaderAction, bool) { + return nil, false +} + +// AsDeliveryRuleCacheExpirationAction is the BasicDeliveryRuleAction implementation for OriginGroupOverrideAction. +func (ogoa OriginGroupOverrideAction) AsDeliveryRuleCacheExpirationAction() (*DeliveryRuleCacheExpirationAction, bool) { + return nil, false +} + +// AsDeliveryRuleCacheKeyQueryStringAction is the BasicDeliveryRuleAction implementation for OriginGroupOverrideAction. +func (ogoa OriginGroupOverrideAction) AsDeliveryRuleCacheKeyQueryStringAction() (*DeliveryRuleCacheKeyQueryStringAction, bool) { + return nil, false +} + +// AsDeliveryRuleAction is the BasicDeliveryRuleAction implementation for OriginGroupOverrideAction. +func (ogoa OriginGroupOverrideAction) AsDeliveryRuleAction() (*DeliveryRuleAction, bool) { + return nil, false +} + +// AsBasicDeliveryRuleAction is the BasicDeliveryRuleAction implementation for OriginGroupOverrideAction. +func (ogoa OriginGroupOverrideAction) AsBasicDeliveryRuleAction() (BasicDeliveryRuleAction, bool) { + return &ogoa, true +} + +// OriginGroupOverrideActionParameters defines the parameters for the origin group override action. +type OriginGroupOverrideActionParameters struct { + OdataType *string `json:"@odata.type,omitempty"` + // OriginGroup - defines the OriginGroup that would override the DefaultOriginGroup. + OriginGroup *ResourceReference `json:"originGroup,omitempty"` +} + +// OriginGroupProperties the JSON object that contains the properties of the origin group. +type OriginGroupProperties struct { + // ResourceState - READ-ONLY; Resource status of the origin group. Possible values include: 'OriginGroupResourceStateCreating', 'OriginGroupResourceStateActive', 'OriginGroupResourceStateDeleting' + ResourceState OriginGroupResourceState `json:"resourceState,omitempty"` + // ProvisioningState - READ-ONLY; Provisioning status of the origin group. + ProvisioningState *string `json:"provisioningState,omitempty"` + // HealthProbeSettings - Health probe settings to the origin that is used to determine the health of the origin. + HealthProbeSettings *HealthProbeParameters `json:"healthProbeSettings,omitempty"` + // Origins - The source of the content being delivered via CDN within given origin group. + Origins *[]ResourceReference `json:"origins,omitempty"` + // TrafficRestorationTimeToHealedOrNewEndpointsInMinutes - Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported. + TrafficRestorationTimeToHealedOrNewEndpointsInMinutes *int32 `json:"trafficRestorationTimeToHealedOrNewEndpointsInMinutes,omitempty"` + // ResponseBasedOriginErrorDetectionSettings - The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported. + ResponseBasedOriginErrorDetectionSettings *ResponseBasedOriginErrorDetectionParameters `json:"responseBasedOriginErrorDetectionSettings,omitempty"` +} + +// MarshalJSON is the custom marshaler for OriginGroupProperties. +func (ogp OriginGroupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ogp.HealthProbeSettings != nil { + objectMap["healthProbeSettings"] = ogp.HealthProbeSettings + } + if ogp.Origins != nil { + objectMap["origins"] = ogp.Origins + } + if ogp.TrafficRestorationTimeToHealedOrNewEndpointsInMinutes != nil { + objectMap["trafficRestorationTimeToHealedOrNewEndpointsInMinutes"] = ogp.TrafficRestorationTimeToHealedOrNewEndpointsInMinutes + } + if ogp.ResponseBasedOriginErrorDetectionSettings != nil { + objectMap["responseBasedOriginErrorDetectionSettings"] = ogp.ResponseBasedOriginErrorDetectionSettings + } + return json.Marshal(objectMap) +} + +// OriginGroupsCreateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type OriginGroupsCreateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *OriginGroupsCreateFuture) Result(client OriginGroupsClient) (og OriginGroup, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginGroupsCreateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.OriginGroupsCreateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if og.Response.Response, err = future.GetResult(sender); err == nil && og.Response.Response.StatusCode != http.StatusNoContent { + og, err = client.CreateResponder(og.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginGroupsCreateFuture", "Result", og.Response.Response, "Failure responding to request") + } + } + return +} + +// OriginGroupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type OriginGroupsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *OriginGroupsDeleteFuture) Result(client OriginGroupsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginGroupsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.OriginGroupsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// OriginGroupsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type OriginGroupsUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *OriginGroupsUpdateFuture) Result(client OriginGroupsClient) (og OriginGroup, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginGroupsUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.OriginGroupsUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if og.Response.Response, err = future.GetResult(sender); err == nil && og.Response.Response.StatusCode != http.StatusNoContent { + og, err = client.UpdateResponder(og.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginGroupsUpdateFuture", "Result", og.Response.Response, "Failure responding to request") + } + } + return +} + +// OriginGroupUpdateParameters origin group properties needed for origin group creation or update. +type OriginGroupUpdateParameters struct { + *OriginGroupUpdatePropertiesParameters `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for OriginGroupUpdateParameters. +func (ogup OriginGroupUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ogup.OriginGroupUpdatePropertiesParameters != nil { + objectMap["properties"] = ogup.OriginGroupUpdatePropertiesParameters + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for OriginGroupUpdateParameters struct. +func (ogup *OriginGroupUpdateParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var originGroupUpdatePropertiesParameters OriginGroupUpdatePropertiesParameters + err = json.Unmarshal(*v, &originGroupUpdatePropertiesParameters) + if err != nil { + return err + } + ogup.OriginGroupUpdatePropertiesParameters = &originGroupUpdatePropertiesParameters + } + } + } + + return nil +} + +// OriginGroupUpdatePropertiesParameters the JSON object that contains the properties of the origin group. +type OriginGroupUpdatePropertiesParameters struct { + // HealthProbeSettings - Health probe settings to the origin that is used to determine the health of the origin. + HealthProbeSettings *HealthProbeParameters `json:"healthProbeSettings,omitempty"` + // Origins - The source of the content being delivered via CDN within given origin group. + Origins *[]ResourceReference `json:"origins,omitempty"` + // TrafficRestorationTimeToHealedOrNewEndpointsInMinutes - Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported. + TrafficRestorationTimeToHealedOrNewEndpointsInMinutes *int32 `json:"trafficRestorationTimeToHealedOrNewEndpointsInMinutes,omitempty"` + // ResponseBasedOriginErrorDetectionSettings - The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported. + ResponseBasedOriginErrorDetectionSettings *ResponseBasedOriginErrorDetectionParameters `json:"responseBasedOriginErrorDetectionSettings,omitempty"` +} + +// OriginListResult result of the request to list origins. It contains a list of origin objects and a URL +// link to get the next set of results. +type OriginListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of CDN origins within an endpoint + Value *[]Origin `json:"value,omitempty"` + // NextLink - URL to get the next set of origin objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for OriginListResult. +func (olr OriginListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if olr.NextLink != nil { + objectMap["nextLink"] = olr.NextLink + } + return json.Marshal(objectMap) +} + +// OriginListResultIterator provides access to a complete listing of Origin values. +type OriginListResultIterator struct { + i int + page OriginListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *OriginListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OriginListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *OriginListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter OriginListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter OriginListResultIterator) Response() OriginListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter OriginListResultIterator) Value() Origin { + if !iter.page.NotDone() { + return Origin{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the OriginListResultIterator type. +func NewOriginListResultIterator(page OriginListResultPage) OriginListResultIterator { + return OriginListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (olr OriginListResult) IsEmpty() bool { + return olr.Value == nil || len(*olr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (olr OriginListResult) hasNextLink() bool { + return olr.NextLink != nil && len(*olr.NextLink) != 0 +} + +// originListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (olr OriginListResult) originListResultPreparer(ctx context.Context) (*http.Request, error) { + if !olr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(olr.NextLink))) +} + +// OriginListResultPage contains a page of Origin values. +type OriginListResultPage struct { + fn func(context.Context, OriginListResult) (OriginListResult, error) + olr OriginListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *OriginListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OriginListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.olr) + if err != nil { + return err + } + page.olr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *OriginListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page OriginListResultPage) NotDone() bool { + return !page.olr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page OriginListResultPage) Response() OriginListResult { + return page.olr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page OriginListResultPage) Values() []Origin { + if page.olr.IsEmpty() { + return nil + } + return *page.olr.Value +} + +// Creates a new instance of the OriginListResultPage type. +func NewOriginListResultPage(cur OriginListResult, getNextPage func(context.Context, OriginListResult) (OriginListResult, error)) OriginListResultPage { + return OriginListResultPage{ + fn: getNextPage, + olr: cur, + } +} + +// OriginProperties the JSON object that contains the properties of the origin. +type OriginProperties struct { + // ResourceState - READ-ONLY; Resource status of the origin. Possible values include: 'OriginResourceStateCreating', 'OriginResourceStateActive', 'OriginResourceStateDeleting' + ResourceState OriginResourceState `json:"resourceState,omitempty"` + // ProvisioningState - READ-ONLY; Provisioning status of the origin. + ProvisioningState *string `json:"provisioningState,omitempty"` + // PrivateEndpointStatus - READ-ONLY; The approval status for the connection to the Private Link. Possible values include: 'PrivateEndpointStatusPending', 'PrivateEndpointStatusApproved', 'PrivateEndpointStatusRejected', 'PrivateEndpointStatusDisconnected', 'PrivateEndpointStatusTimeout' + PrivateEndpointStatus PrivateEndpointStatus `json:"privateEndpointStatus,omitempty"` + // HostName - The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint. + HostName *string `json:"hostName,omitempty"` + // HTTPPort - The value of the HTTP port. Must be between 1 and 65535. + HTTPPort *int32 `json:"httpPort,omitempty"` + // HTTPSPort - The value of the HTTPS port. Must be between 1 and 65535. + HTTPSPort *int32 `json:"httpsPort,omitempty"` + // OriginHostHeader - The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint + OriginHostHeader *string `json:"originHostHeader,omitempty"` + // Priority - Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5 + Priority *int32 `json:"priority,omitempty"` + // Weight - Weight of the origin in given origin group for load balancing. Must be between 1 and 1000 + Weight *int32 `json:"weight,omitempty"` + // Enabled - Origin is enabled for load balancing or not + Enabled *bool `json:"enabled,omitempty"` + // PrivateLinkAlias - The Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private' + PrivateLinkAlias *string `json:"privateLinkAlias,omitempty"` + // PrivateLinkResourceID - The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + PrivateLinkResourceID *string `json:"privateLinkResourceId,omitempty"` + // PrivateLinkLocation - The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated + PrivateLinkLocation *string `json:"privateLinkLocation,omitempty"` + // PrivateLinkApprovalMessage - A custom message to be included in the approval request to connect to the Private Link. + PrivateLinkApprovalMessage *string `json:"privateLinkApprovalMessage,omitempty"` +} + +// MarshalJSON is the custom marshaler for OriginProperties. +func (op OriginProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if op.HostName != nil { + objectMap["hostName"] = op.HostName + } + if op.HTTPPort != nil { + objectMap["httpPort"] = op.HTTPPort + } + if op.HTTPSPort != nil { + objectMap["httpsPort"] = op.HTTPSPort + } + if op.OriginHostHeader != nil { + objectMap["originHostHeader"] = op.OriginHostHeader + } + if op.Priority != nil { + objectMap["priority"] = op.Priority + } + if op.Weight != nil { + objectMap["weight"] = op.Weight + } + if op.Enabled != nil { + objectMap["enabled"] = op.Enabled + } + if op.PrivateLinkAlias != nil { + objectMap["privateLinkAlias"] = op.PrivateLinkAlias + } + if op.PrivateLinkResourceID != nil { + objectMap["privateLinkResourceId"] = op.PrivateLinkResourceID + } + if op.PrivateLinkLocation != nil { + objectMap["privateLinkLocation"] = op.PrivateLinkLocation + } + if op.PrivateLinkApprovalMessage != nil { + objectMap["privateLinkApprovalMessage"] = op.PrivateLinkApprovalMessage + } + return json.Marshal(objectMap) +} + +// OriginsCreateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type OriginsCreateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *OriginsCreateFuture) Result(client OriginsClient) (o Origin, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginsCreateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.OriginsCreateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if o.Response.Response, err = future.GetResult(sender); err == nil && o.Response.Response.StatusCode != http.StatusNoContent { + o, err = client.CreateResponder(o.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginsCreateFuture", "Result", o.Response.Response, "Failure responding to request") + } + } + return +} + +// OriginsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type OriginsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *OriginsDeleteFuture) Result(client OriginsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.OriginsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// OriginsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type OriginsUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *OriginsUpdateFuture) Result(client OriginsClient) (o Origin, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginsUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.OriginsUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if o.Response.Response, err = future.GetResult(sender); err == nil && o.Response.Response.StatusCode != http.StatusNoContent { + o, err = client.UpdateResponder(o.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginsUpdateFuture", "Result", o.Response.Response, "Failure responding to request") + } + } + return +} + +// OriginUpdateParameters origin properties needed for origin update. +type OriginUpdateParameters struct { + *OriginUpdatePropertiesParameters `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for OriginUpdateParameters. +func (oup OriginUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if oup.OriginUpdatePropertiesParameters != nil { + objectMap["properties"] = oup.OriginUpdatePropertiesParameters + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for OriginUpdateParameters struct. +func (oup *OriginUpdateParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var originUpdatePropertiesParameters OriginUpdatePropertiesParameters + err = json.Unmarshal(*v, &originUpdatePropertiesParameters) + if err != nil { + return err + } + oup.OriginUpdatePropertiesParameters = &originUpdatePropertiesParameters + } + } + } + + return nil +} + +// OriginUpdatePropertiesParameters the JSON object that contains the properties of the origin. +type OriginUpdatePropertiesParameters struct { + // HostName - The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint. + HostName *string `json:"hostName,omitempty"` + // HTTPPort - The value of the HTTP port. Must be between 1 and 65535. + HTTPPort *int32 `json:"httpPort,omitempty"` + // HTTPSPort - The value of the HTTPS port. Must be between 1 and 65535. + HTTPSPort *int32 `json:"httpsPort,omitempty"` + // OriginHostHeader - The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint + OriginHostHeader *string `json:"originHostHeader,omitempty"` + // Priority - Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5 + Priority *int32 `json:"priority,omitempty"` + // Weight - Weight of the origin in given origin group for load balancing. Must be between 1 and 1000 + Weight *int32 `json:"weight,omitempty"` + // Enabled - Origin is enabled for load balancing or not + Enabled *bool `json:"enabled,omitempty"` + // PrivateLinkAlias - The Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private' + PrivateLinkAlias *string `json:"privateLinkAlias,omitempty"` + // PrivateLinkResourceID - The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + PrivateLinkResourceID *string `json:"privateLinkResourceId,omitempty"` + // PrivateLinkLocation - The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated + PrivateLinkLocation *string `json:"privateLinkLocation,omitempty"` + // PrivateLinkApprovalMessage - A custom message to be included in the approval request to connect to the Private Link. + PrivateLinkApprovalMessage *string `json:"privateLinkApprovalMessage,omitempty"` +} + +// PoliciesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type PoliciesCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *PoliciesCreateOrUpdateFuture) Result(client PoliciesClient) (wafp WebApplicationFirewallPolicy, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.PoliciesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.PoliciesCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if wafp.Response.Response, err = future.GetResult(sender); err == nil && wafp.Response.Response.StatusCode != http.StatusNoContent { + wafp, err = client.CreateOrUpdateResponder(wafp.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.PoliciesCreateOrUpdateFuture", "Result", wafp.Response.Response, "Failure responding to request") + } + } + return +} + +// PoliciesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type PoliciesUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *PoliciesUpdateFuture) Result(client PoliciesClient) (wafp WebApplicationFirewallPolicy, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.PoliciesUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.PoliciesUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if wafp.Response.Response, err = future.GetResult(sender); err == nil && wafp.Response.Response.StatusCode != http.StatusNoContent { + wafp, err = client.UpdateResponder(wafp.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.PoliciesUpdateFuture", "Result", wafp.Response.Response, "Failure responding to request") + } + } + return +} + +// PolicySettings defines contents of a web application firewall global configuration +type PolicySettings struct { + // EnabledState - describes if the policy is in enabled state or disabled state. Possible values include: 'PolicyEnabledStateDisabled', 'PolicyEnabledStateEnabled' + EnabledState PolicyEnabledState `json:"enabledState,omitempty"` + // Mode - Describes if it is in detection mode or prevention mode at policy level. Possible values include: 'Prevention', 'Detection' + Mode PolicyMode `json:"mode,omitempty"` + // DefaultRedirectURL - If action type is redirect, this field represents the default redirect URL for the client. + DefaultRedirectURL *string `json:"defaultRedirectUrl,omitempty"` + // DefaultCustomBlockResponseStatusCode - If the action type is block, this field defines the default customer overridable http response status code. + DefaultCustomBlockResponseStatusCode *int32 `json:"defaultCustomBlockResponseStatusCode,omitempty"` + // DefaultCustomBlockResponseBody - If the action type is block, customer can override the response body. The body must be specified in base64 encoding. + DefaultCustomBlockResponseBody *string `json:"defaultCustomBlockResponseBody,omitempty"` +} + +// PostArgsMatchConditionParameters defines the parameters for PostArgs match conditions +type PostArgsMatchConditionParameters struct { + OdataType *string `json:"@odata.type,omitempty"` + // Selector - Name of PostArg to be matched + Selector *string `json:"selector,omitempty"` + // Operator - Describes operator to be matched. Possible values include: 'PostArgsOperatorAny', 'PostArgsOperatorEqual', 'PostArgsOperatorContains', 'PostArgsOperatorBeginsWith', 'PostArgsOperatorEndsWith', 'PostArgsOperatorLessThan', 'PostArgsOperatorLessThanOrEqual', 'PostArgsOperatorGreaterThan', 'PostArgsOperatorGreaterThanOrEqual', 'PostArgsOperatorRegEx' + Operator PostArgsOperator `json:"operator,omitempty"` + // NegateCondition - Describes if this is negate condition or not + NegateCondition *bool `json:"negateCondition,omitempty"` + // MatchValues - The match value for the condition of the delivery rule + MatchValues *[]string `json:"matchValues,omitempty"` + // Transforms - List of transforms + Transforms *[]Transform `json:"transforms,omitempty"` +} + +// Profile CDN profile is a logical grouping of endpoints that share the same settings, such as CDN +// provider and pricing tier. +type Profile struct { + autorest.Response `json:"-"` + // Sku - The pricing tier (defines a CDN provider, feature list and rate) of the CDN profile. + Sku *Sku `json:"sku,omitempty"` + *ProfileProperties `json:"properties,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // SystemData - READ-ONLY + SystemData *SystemData `json:"systemData,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for Profile. +func (p Profile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if p.Sku != nil { + objectMap["sku"] = p.Sku + } + if p.ProfileProperties != nil { + objectMap["properties"] = p.ProfileProperties + } + if p.Location != nil { + objectMap["location"] = p.Location + } + if p.Tags != nil { + objectMap["tags"] = p.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Profile struct. +func (p *Profile) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "sku": + if v != nil { + var sku Sku + err = json.Unmarshal(*v, &sku) + if err != nil { + return err + } + p.Sku = &sku + } + case "properties": + if v != nil { + var profileProperties ProfileProperties + err = json.Unmarshal(*v, &profileProperties) + if err != nil { + return err + } + p.ProfileProperties = &profileProperties + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + p.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + p.Tags = tags + } + case "systemData": + if v != nil { + var systemData SystemData + err = json.Unmarshal(*v, &systemData) + if err != nil { + return err + } + p.SystemData = &systemData + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + p.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + p.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + p.Type = &typeVar + } + } + } + + return nil +} + +// ProfileListResult result of the request to list profiles. It contains a list of profile objects and a +// URL link to get the next set of results. +type ProfileListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of CDN profiles within a resource group. + Value *[]Profile `json:"value,omitempty"` + // NextLink - URL to get the next set of profile objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for ProfileListResult. +func (plr ProfileListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if plr.NextLink != nil { + objectMap["nextLink"] = plr.NextLink + } + return json.Marshal(objectMap) +} + +// ProfileListResultIterator provides access to a complete listing of Profile values. +type ProfileListResultIterator struct { + i int + page ProfileListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ProfileListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProfileListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ProfileListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ProfileListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ProfileListResultIterator) Response() ProfileListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ProfileListResultIterator) Value() Profile { + if !iter.page.NotDone() { + return Profile{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ProfileListResultIterator type. +func NewProfileListResultIterator(page ProfileListResultPage) ProfileListResultIterator { + return ProfileListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (plr ProfileListResult) IsEmpty() bool { + return plr.Value == nil || len(*plr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (plr ProfileListResult) hasNextLink() bool { + return plr.NextLink != nil && len(*plr.NextLink) != 0 +} + +// profileListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (plr ProfileListResult) profileListResultPreparer(ctx context.Context) (*http.Request, error) { + if !plr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(plr.NextLink))) +} + +// ProfileListResultPage contains a page of Profile values. +type ProfileListResultPage struct { + fn func(context.Context, ProfileListResult) (ProfileListResult, error) + plr ProfileListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ProfileListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProfileListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.plr) + if err != nil { + return err + } + page.plr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ProfileListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ProfileListResultPage) NotDone() bool { + return !page.plr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ProfileListResultPage) Response() ProfileListResult { + return page.plr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ProfileListResultPage) Values() []Profile { + if page.plr.IsEmpty() { + return nil + } + return *page.plr.Value +} + +// Creates a new instance of the ProfileListResultPage type. +func NewProfileListResultPage(cur ProfileListResult, getNextPage func(context.Context, ProfileListResult) (ProfileListResult, error)) ProfileListResultPage { + return ProfileListResultPage{ + fn: getNextPage, + plr: cur, + } +} + +// ProfileProperties the JSON object that contains the properties required to create a profile. +type ProfileProperties struct { + // ResourceState - READ-ONLY; Resource status of the profile. Possible values include: 'ProfileResourceStateCreating', 'ProfileResourceStateActive', 'ProfileResourceStateDeleting', 'ProfileResourceStateDisabled' + ResourceState ProfileResourceState `json:"resourceState,omitempty"` + // ProvisioningState - READ-ONLY; Provisioning status of the profile. + ProvisioningState *string `json:"provisioningState,omitempty"` + // FrontdoorID - READ-ONLY; The Id of the frontdoor. + FrontdoorID *string `json:"frontdoorId,omitempty"` +} + +// ProfilesCreateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type ProfilesCreateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ProfilesCreateFuture) Result(client ProfilesClient) (p Profile, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ProfilesCreateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.ProfilesCreateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if p.Response.Response, err = future.GetResult(sender); err == nil && p.Response.Response.StatusCode != http.StatusNoContent { + p, err = client.CreateResponder(p.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ProfilesCreateFuture", "Result", p.Response.Response, "Failure responding to request") + } + } + return +} + +// ProfilesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type ProfilesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ProfilesDeleteFuture) Result(client ProfilesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ProfilesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.ProfilesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// ProfilesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type ProfilesUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ProfilesUpdateFuture) Result(client ProfilesClient) (p Profile, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ProfilesUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.ProfilesUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if p.Response.Response, err = future.GetResult(sender); err == nil && p.Response.Response.StatusCode != http.StatusNoContent { + p, err = client.UpdateResponder(p.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ProfilesUpdateFuture", "Result", p.Response.Response, "Failure responding to request") + } + } + return +} + +// ProfileUpdateParameters properties required to update a profile. +type ProfileUpdateParameters struct { + // Tags - Profile tags + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for ProfileUpdateParameters. +func (pup ProfileUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pup.Tags != nil { + objectMap["tags"] = pup.Tags + } + return json.Marshal(objectMap) +} + +// ProxyResource the resource model definition for a ARM proxy resource. It will have everything other than +// required location and tags +type ProxyResource struct { + // SystemData - READ-ONLY + SystemData *SystemData `json:"systemData,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// PurgeParameters parameters required for content purge. +type PurgeParameters struct { + // ContentPaths - The path to the content to be purged. Can describe a file path or a wild card directory. + ContentPaths *[]string `json:"contentPaths,omitempty"` +} + +// QueryStringMatchConditionParameters defines the parameters for QueryString match conditions +type QueryStringMatchConditionParameters struct { + OdataType *string `json:"@odata.type,omitempty"` + // Operator - Describes operator to be matched. Possible values include: 'QueryStringOperatorAny', 'QueryStringOperatorEqual', 'QueryStringOperatorContains', 'QueryStringOperatorBeginsWith', 'QueryStringOperatorEndsWith', 'QueryStringOperatorLessThan', 'QueryStringOperatorLessThanOrEqual', 'QueryStringOperatorGreaterThan', 'QueryStringOperatorGreaterThanOrEqual', 'QueryStringOperatorRegEx' + Operator QueryStringOperator `json:"operator,omitempty"` + // NegateCondition - Describes if this is negate condition or not + NegateCondition *bool `json:"negateCondition,omitempty"` + // MatchValues - The match value for the condition of the delivery rule + MatchValues *[]string `json:"matchValues,omitempty"` + // Transforms - List of transforms + Transforms *[]Transform `json:"transforms,omitempty"` +} + +// RankingsResponse rankings Response +type RankingsResponse struct { + autorest.Response `json:"-"` + DateTimeBegin *date.Time `json:"dateTimeBegin,omitempty"` + DateTimeEnd *date.Time `json:"dateTimeEnd,omitempty"` + Tables *[]RankingsResponseTablesItem `json:"tables,omitempty"` +} + +// RankingsResponseTablesItem ... +type RankingsResponseTablesItem struct { + Ranking *string `json:"ranking,omitempty"` + Data *[]RankingsResponseTablesItemDataItem `json:"data,omitempty"` +} + +// RankingsResponseTablesItemDataItem ... +type RankingsResponseTablesItemDataItem struct { + Name *string `json:"name,omitempty"` + Metrics *[]RankingsResponseTablesItemDataItemMetricsItem `json:"metrics,omitempty"` +} + +// RankingsResponseTablesItemDataItemMetricsItem ... +type RankingsResponseTablesItemDataItemMetricsItem struct { + Metric *string `json:"metric,omitempty"` + Value *int64 `json:"value,omitempty"` + Percentage *float64 `json:"percentage,omitempty"` +} + +// RateLimitRule defines a rate limiting rule that can be included in a waf policy +type RateLimitRule struct { + // RateLimitThreshold - Defines rate limit threshold. + RateLimitThreshold *int32 `json:"rateLimitThreshold,omitempty"` + // RateLimitDurationInMinutes - Defines rate limit duration. Default is 1 minute. + RateLimitDurationInMinutes *int32 `json:"rateLimitDurationInMinutes,omitempty"` + // Name - Defines the name of the custom rule + Name *string `json:"name,omitempty"` + // EnabledState - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. Possible values include: 'Disabled', 'Enabled' + EnabledState CustomRuleEnabledState `json:"enabledState,omitempty"` + // Priority - Defines in what order this rule be evaluated in the overall list of custom rules + Priority *int32 `json:"priority,omitempty"` + // MatchConditions - List of match conditions. + MatchConditions *[]MatchCondition `json:"matchConditions,omitempty"` + // Action - Describes what action to be applied when rule matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect' + Action ActionType `json:"action,omitempty"` +} + +// RateLimitRuleList defines contents of rate limit rules +type RateLimitRuleList struct { + // Rules - List of rules + Rules *[]RateLimitRule `json:"rules,omitempty"` +} + +// RemoteAddressMatchConditionParameters defines the parameters for RemoteAddress match conditions +type RemoteAddressMatchConditionParameters struct { + OdataType *string `json:"@odata.type,omitempty"` + // Operator - Describes operator to be matched. Possible values include: 'RemoteAddressOperatorAny', 'RemoteAddressOperatorIPMatch', 'RemoteAddressOperatorGeoMatch' + Operator RemoteAddressOperator `json:"operator,omitempty"` + // NegateCondition - Describes if this is negate condition or not + NegateCondition *bool `json:"negateCondition,omitempty"` + // MatchValues - Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match. + MatchValues *[]string `json:"matchValues,omitempty"` + // Transforms - List of transforms + Transforms *[]Transform `json:"transforms,omitempty"` +} + +// RequestBodyMatchConditionParameters defines the parameters for RequestBody match conditions +type RequestBodyMatchConditionParameters struct { + OdataType *string `json:"@odata.type,omitempty"` + // Operator - Describes operator to be matched. Possible values include: 'RequestBodyOperatorAny', 'RequestBodyOperatorEqual', 'RequestBodyOperatorContains', 'RequestBodyOperatorBeginsWith', 'RequestBodyOperatorEndsWith', 'RequestBodyOperatorLessThan', 'RequestBodyOperatorLessThanOrEqual', 'RequestBodyOperatorGreaterThan', 'RequestBodyOperatorGreaterThanOrEqual', 'RequestBodyOperatorRegEx' + Operator RequestBodyOperator `json:"operator,omitempty"` + // NegateCondition - Describes if this is negate condition or not + NegateCondition *bool `json:"negateCondition,omitempty"` + // MatchValues - The match value for the condition of the delivery rule + MatchValues *[]string `json:"matchValues,omitempty"` + // Transforms - List of transforms + Transforms *[]Transform `json:"transforms,omitempty"` +} + +// RequestHeaderMatchConditionParameters defines the parameters for RequestHeader match conditions +type RequestHeaderMatchConditionParameters struct { + OdataType *string `json:"@odata.type,omitempty"` + // Selector - Name of Header to be matched + Selector *string `json:"selector,omitempty"` + // Operator - Describes operator to be matched. Possible values include: 'RequestHeaderOperatorAny', 'RequestHeaderOperatorEqual', 'RequestHeaderOperatorContains', 'RequestHeaderOperatorBeginsWith', 'RequestHeaderOperatorEndsWith', 'RequestHeaderOperatorLessThan', 'RequestHeaderOperatorLessThanOrEqual', 'RequestHeaderOperatorGreaterThan', 'RequestHeaderOperatorGreaterThanOrEqual', 'RequestHeaderOperatorRegEx' + Operator RequestHeaderOperator `json:"operator,omitempty"` + // NegateCondition - Describes if this is negate condition or not + NegateCondition *bool `json:"negateCondition,omitempty"` + // MatchValues - The match value for the condition of the delivery rule + MatchValues *[]string `json:"matchValues,omitempty"` + // Transforms - List of transforms + Transforms *[]Transform `json:"transforms,omitempty"` +} + +// RequestMethodMatchConditionParameters defines the parameters for RequestMethod match conditions +type RequestMethodMatchConditionParameters struct { + OdataType *string `json:"@odata.type,omitempty"` + // Operator - Describes operator to be matched + Operator *string `json:"operator,omitempty"` + // NegateCondition - Describes if this is negate condition or not + NegateCondition *bool `json:"negateCondition,omitempty"` + // MatchValues - The match value for the condition of the delivery rule + MatchValues *[]string `json:"matchValues,omitempty"` +} + +// RequestSchemeMatchConditionParameters defines the parameters for RequestScheme match conditions +type RequestSchemeMatchConditionParameters struct { + OdataType *string `json:"@odata.type,omitempty"` + // Operator - Describes operator to be matched + Operator *string `json:"operator,omitempty"` + // NegateCondition - Describes if this is negate condition or not + NegateCondition *bool `json:"negateCondition,omitempty"` + // MatchValues - The match value for the condition of the delivery rule + MatchValues *[]string `json:"matchValues,omitempty"` +} + +// RequestURIMatchConditionParameters defines the parameters for RequestUri match conditions +type RequestURIMatchConditionParameters struct { + OdataType *string `json:"@odata.type,omitempty"` + // Operator - Describes operator to be matched. Possible values include: 'RequestURIOperatorAny', 'RequestURIOperatorEqual', 'RequestURIOperatorContains', 'RequestURIOperatorBeginsWith', 'RequestURIOperatorEndsWith', 'RequestURIOperatorLessThan', 'RequestURIOperatorLessThanOrEqual', 'RequestURIOperatorGreaterThan', 'RequestURIOperatorGreaterThanOrEqual', 'RequestURIOperatorRegEx' + Operator RequestURIOperator `json:"operator,omitempty"` + // NegateCondition - Describes if this is negate condition or not + NegateCondition *bool `json:"negateCondition,omitempty"` + // MatchValues - The match value for the condition of the delivery rule + MatchValues *[]string `json:"matchValues,omitempty"` + // Transforms - List of transforms + Transforms *[]Transform `json:"transforms,omitempty"` +} + +// Resource the core properties of ARM resources +type Resource struct { + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// ResourceReference reference to another resource. +type ResourceReference struct { + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// ResourcesResponse resources Response +type ResourcesResponse struct { + autorest.Response `json:"-"` + Endpoints *[]ResourcesResponseEndpointsItem `json:"endpoints,omitempty"` + CustomDomains *[]ResourcesResponseCustomDomainsItem `json:"customDomains,omitempty"` +} + +// ResourcesResponseCustomDomainsItem ... +type ResourcesResponseCustomDomainsItem struct { + ID *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + EndpointID *string `json:"endpointId,omitempty"` + History *bool `json:"history,omitempty"` +} + +// ResourcesResponseEndpointsItem ... +type ResourcesResponseEndpointsItem struct { + ID *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + History *bool `json:"history,omitempty"` + CustomDomains *[]ResourcesResponseEndpointsItemCustomDomainsItem `json:"customDomains,omitempty"` +} + +// ResourcesResponseEndpointsItemCustomDomainsItem ... +type ResourcesResponseEndpointsItemCustomDomainsItem struct { + ID *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + EndpointID *string `json:"endpointId,omitempty"` + History *bool `json:"history,omitempty"` +} + +// ResourceUsage output of check resource usage API. +type ResourceUsage struct { + // ResourceType - READ-ONLY; Resource type for which the usage is provided. + ResourceType *string `json:"resourceType,omitempty"` + // Unit - READ-ONLY; Unit of the usage. e.g. Count. + Unit *string `json:"unit,omitempty"` + // CurrentValue - READ-ONLY; Actual value of usage on the specified resource type. + CurrentValue *int32 `json:"currentValue,omitempty"` + // Limit - READ-ONLY; Quota of the specified resource type. + Limit *int32 `json:"limit,omitempty"` +} + +// ResourceUsageListResult output of check resource usage API. +type ResourceUsageListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of resource usages. + Value *[]ResourceUsage `json:"value,omitempty"` + // NextLink - URL to get the next set of custom domain objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for ResourceUsageListResult. +func (rulr ResourceUsageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rulr.NextLink != nil { + objectMap["nextLink"] = rulr.NextLink + } + return json.Marshal(objectMap) +} + +// ResourceUsageListResultIterator provides access to a complete listing of ResourceUsage values. +type ResourceUsageListResultIterator struct { + i int + page ResourceUsageListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ResourceUsageListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ResourceUsageListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ResourceUsageListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ResourceUsageListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ResourceUsageListResultIterator) Response() ResourceUsageListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ResourceUsageListResultIterator) Value() ResourceUsage { + if !iter.page.NotDone() { + return ResourceUsage{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ResourceUsageListResultIterator type. +func NewResourceUsageListResultIterator(page ResourceUsageListResultPage) ResourceUsageListResultIterator { + return ResourceUsageListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (rulr ResourceUsageListResult) IsEmpty() bool { + return rulr.Value == nil || len(*rulr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (rulr ResourceUsageListResult) hasNextLink() bool { + return rulr.NextLink != nil && len(*rulr.NextLink) != 0 +} + +// resourceUsageListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (rulr ResourceUsageListResult) resourceUsageListResultPreparer(ctx context.Context) (*http.Request, error) { + if !rulr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(rulr.NextLink))) +} + +// ResourceUsageListResultPage contains a page of ResourceUsage values. +type ResourceUsageListResultPage struct { + fn func(context.Context, ResourceUsageListResult) (ResourceUsageListResult, error) + rulr ResourceUsageListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ResourceUsageListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ResourceUsageListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.rulr) + if err != nil { + return err + } + page.rulr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ResourceUsageListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ResourceUsageListResultPage) NotDone() bool { + return !page.rulr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ResourceUsageListResultPage) Response() ResourceUsageListResult { + return page.rulr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ResourceUsageListResultPage) Values() []ResourceUsage { + if page.rulr.IsEmpty() { + return nil + } + return *page.rulr.Value +} + +// Creates a new instance of the ResourceUsageListResultPage type. +func NewResourceUsageListResultPage(cur ResourceUsageListResult, getNextPage func(context.Context, ResourceUsageListResult) (ResourceUsageListResult, error)) ResourceUsageListResultPage { + return ResourceUsageListResultPage{ + fn: getNextPage, + rulr: cur, + } +} + +// ResponseBasedOriginErrorDetectionParameters the JSON object that contains the properties to determine +// origin health using real requests/responses. +type ResponseBasedOriginErrorDetectionParameters struct { + // ResponseBasedDetectedErrorTypes - Type of response errors for real user requests for which origin will be deemed unhealthy. Possible values include: 'None', 'TCPErrorsOnly', 'TCPAndHTTPErrors' + ResponseBasedDetectedErrorTypes ResponseBasedDetectedErrorTypes `json:"responseBasedDetectedErrorTypes,omitempty"` + // ResponseBasedFailoverThresholdPercentage - The percentage of failed requests in the sample where failover should trigger. + ResponseBasedFailoverThresholdPercentage *int32 `json:"responseBasedFailoverThresholdPercentage,omitempty"` + // HTTPErrorRanges - The list of Http status code ranges that are considered as server errors for origin and it is marked as unhealthy. + HTTPErrorRanges *[]HTTPErrorRangeParameters `json:"httpErrorRanges,omitempty"` +} + +// Route friendly Routes name mapping to the any Routes or secret related information. +type Route struct { + autorest.Response `json:"-"` + *RouteProperties `json:"properties,omitempty"` + // SystemData - READ-ONLY + SystemData *SystemData `json:"systemData,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for Route. +func (r Route) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if r.RouteProperties != nil { + objectMap["properties"] = r.RouteProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Route struct. +func (r *Route) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var routeProperties RouteProperties + err = json.Unmarshal(*v, &routeProperties) + if err != nil { + return err + } + r.RouteProperties = &routeProperties + } + case "systemData": + if v != nil { + var systemData SystemData + err = json.Unmarshal(*v, &systemData) + if err != nil { + return err + } + r.SystemData = &systemData + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + r.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + r.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + r.Type = &typeVar + } + } + } + + return nil +} + +// RouteListResult result of the request to list routes. It contains a list of route objects and a URL link +// to get the next set of results. +type RouteListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of AzureFrontDoor routes within a profile. + Value *[]Route `json:"value,omitempty"` + // NextLink - URL to get the next set of route objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for RouteListResult. +func (rlr RouteListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rlr.NextLink != nil { + objectMap["nextLink"] = rlr.NextLink + } + return json.Marshal(objectMap) +} + +// RouteListResultIterator provides access to a complete listing of Route values. +type RouteListResultIterator struct { + i int + page RouteListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *RouteListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *RouteListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter RouteListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter RouteListResultIterator) Response() RouteListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter RouteListResultIterator) Value() Route { + if !iter.page.NotDone() { + return Route{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the RouteListResultIterator type. +func NewRouteListResultIterator(page RouteListResultPage) RouteListResultIterator { + return RouteListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (rlr RouteListResult) IsEmpty() bool { + return rlr.Value == nil || len(*rlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (rlr RouteListResult) hasNextLink() bool { + return rlr.NextLink != nil && len(*rlr.NextLink) != 0 +} + +// routeListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (rlr RouteListResult) routeListResultPreparer(ctx context.Context) (*http.Request, error) { + if !rlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(rlr.NextLink))) +} + +// RouteListResultPage contains a page of Route values. +type RouteListResultPage struct { + fn func(context.Context, RouteListResult) (RouteListResult, error) + rlr RouteListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *RouteListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.rlr) + if err != nil { + return err + } + page.rlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *RouteListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page RouteListResultPage) NotDone() bool { + return !page.rlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page RouteListResultPage) Response() RouteListResult { + return page.rlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page RouteListResultPage) Values() []Route { + if page.rlr.IsEmpty() { + return nil + } + return *page.rlr.Value +} + +// Creates a new instance of the RouteListResultPage type. +func NewRouteListResultPage(cur RouteListResult, getNextPage func(context.Context, RouteListResult) (RouteListResult, error)) RouteListResultPage { + return RouteListResultPage{ + fn: getNextPage, + rlr: cur, + } +} + +// RouteProperties the JSON object that contains the properties of the Routes to create. +type RouteProperties struct { + // CustomDomains - Domains referenced by this endpoint. + CustomDomains *[]ResourceReference `json:"customDomains,omitempty"` + // OriginGroup - A reference to the origin group. + OriginGroup *ResourceReference `json:"originGroup,omitempty"` + // OriginPath - A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. + OriginPath *string `json:"originPath,omitempty"` + // RuleSets - rule sets referenced by this endpoint. + RuleSets *[]ResourceReference `json:"ruleSets,omitempty"` + // SupportedProtocols - List of supported protocols for this route. + SupportedProtocols *[]AFDEndpointProtocols `json:"supportedProtocols,omitempty"` + // PatternsToMatch - The route patterns of the rule. + PatternsToMatch *[]string `json:"patternsToMatch,omitempty"` + // CompressionSettings - compression settings. + CompressionSettings interface{} `json:"compressionSettings,omitempty"` + // QueryStringCachingBehavior - Defines how AzureFrontDoor caches requests that include query strings. You can ignore any query strings when caching, bypass caching to prevent requests that contain query strings from being cached, or cache every request with a unique URL. Possible values include: 'QueryStringCachingBehaviorIgnoreQueryString', 'QueryStringCachingBehaviorBypassCaching', 'QueryStringCachingBehaviorUseQueryString', 'QueryStringCachingBehaviorNotSet' + QueryStringCachingBehavior QueryStringCachingBehavior `json:"queryStringCachingBehavior,omitempty"` + // OptimizationType - Specifies what scenario the customer wants this AzureFrontDoor endpoint to optimize for, e.g. Download, Media services. With this information, AzureFrontDoor can apply scenario driven optimization. Possible values include: 'GeneralWebDelivery', 'GeneralMediaStreaming', 'VideoOnDemandMediaStreaming', 'LargeFileDownload', 'DynamicSiteAcceleration' + OptimizationType OptimizationType `json:"optimizationType,omitempty"` + // ForwardingProtocol - Protocol this rule will use when forwarding traffic to backends. Possible values include: 'HTTPOnly', 'HTTPSOnly', 'MatchRequest' + ForwardingProtocol ForwardingProtocol `json:"forwardingProtocol,omitempty"` + // LinkToDefaultDomain - whether this route will be linked to the default endpoint domain. Possible values include: 'LinkToDefaultDomainEnabled', 'LinkToDefaultDomainDisabled' + LinkToDefaultDomain LinkToDefaultDomain `json:"linkToDefaultDomain,omitempty"` + // HTTPSRedirect - Whether to automatically redirect HTTP traffic to HTTPS traffic. Note that this is a easy way to set up this rule and it will be the first rule that gets executed. Possible values include: 'HTTPSRedirectEnabled', 'HTTPSRedirectDisabled' + HTTPSRedirect HTTPSRedirect `json:"httpsRedirect,omitempty"` + // EnabledState - Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'EnabledStateEnabled', 'EnabledStateDisabled' + EnabledState EnabledState `json:"enabledState,omitempty"` + // ProvisioningState - READ-ONLY; Provisioning status. Possible values include: 'Succeeded', 'Failed', 'Updating', 'Deleting', 'Creating' + ProvisioningState AfdProvisioningState `json:"provisioningState,omitempty"` + // DeploymentStatus - READ-ONLY; Possible values include: 'DeploymentStatusNotStarted', 'DeploymentStatusInProgress', 'DeploymentStatusSucceeded', 'DeploymentStatusFailed' + DeploymentStatus DeploymentStatus `json:"deploymentStatus,omitempty"` +} + +// MarshalJSON is the custom marshaler for RouteProperties. +func (rp RouteProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rp.CustomDomains != nil { + objectMap["customDomains"] = rp.CustomDomains + } + if rp.OriginGroup != nil { + objectMap["originGroup"] = rp.OriginGroup + } + if rp.OriginPath != nil { + objectMap["originPath"] = rp.OriginPath + } + if rp.RuleSets != nil { + objectMap["ruleSets"] = rp.RuleSets + } + if rp.SupportedProtocols != nil { + objectMap["supportedProtocols"] = rp.SupportedProtocols + } + if rp.PatternsToMatch != nil { + objectMap["patternsToMatch"] = rp.PatternsToMatch + } + if rp.CompressionSettings != nil { + objectMap["compressionSettings"] = rp.CompressionSettings + } + if rp.QueryStringCachingBehavior != "" { + objectMap["queryStringCachingBehavior"] = rp.QueryStringCachingBehavior + } + if rp.OptimizationType != "" { + objectMap["optimizationType"] = rp.OptimizationType + } + if rp.ForwardingProtocol != "" { + objectMap["forwardingProtocol"] = rp.ForwardingProtocol + } + if rp.LinkToDefaultDomain != "" { + objectMap["linkToDefaultDomain"] = rp.LinkToDefaultDomain + } + if rp.HTTPSRedirect != "" { + objectMap["httpsRedirect"] = rp.HTTPSRedirect + } + if rp.EnabledState != "" { + objectMap["enabledState"] = rp.EnabledState + } + return json.Marshal(objectMap) +} + +// RoutesCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation. +type RoutesCreateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *RoutesCreateFuture) Result(client RoutesClient) (r Route, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RoutesCreateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.RoutesCreateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if r.Response.Response, err = future.GetResult(sender); err == nil && r.Response.Response.StatusCode != http.StatusNoContent { + r, err = client.CreateResponder(r.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RoutesCreateFuture", "Result", r.Response.Response, "Failure responding to request") + } + } + return +} + +// RoutesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. +type RoutesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *RoutesDeleteFuture) Result(client RoutesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RoutesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.RoutesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// RoutesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation. +type RoutesUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *RoutesUpdateFuture) Result(client RoutesClient) (r Route, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RoutesUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.RoutesUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if r.Response.Response, err = future.GetResult(sender); err == nil && r.Response.Response.StatusCode != http.StatusNoContent { + r, err = client.UpdateResponder(r.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RoutesUpdateFuture", "Result", r.Response.Response, "Failure responding to request") + } + } + return +} + +// RouteUpdateParameters the domain JSON object required for domain creation or update. +type RouteUpdateParameters struct { + *RouteUpdatePropertiesParameters `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for RouteUpdateParameters. +func (rup RouteUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rup.RouteUpdatePropertiesParameters != nil { + objectMap["properties"] = rup.RouteUpdatePropertiesParameters + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for RouteUpdateParameters struct. +func (rup *RouteUpdateParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var routeUpdatePropertiesParameters RouteUpdatePropertiesParameters + err = json.Unmarshal(*v, &routeUpdatePropertiesParameters) + if err != nil { + return err + } + rup.RouteUpdatePropertiesParameters = &routeUpdatePropertiesParameters + } + } + } + + return nil +} + +// RouteUpdatePropertiesParameters the JSON object that contains the properties of the domain to create. +type RouteUpdatePropertiesParameters struct { + // CustomDomains - Domains referenced by this endpoint. + CustomDomains *[]ResourceReference `json:"customDomains,omitempty"` + // OriginGroup - A reference to the origin group. + OriginGroup *ResourceReference `json:"originGroup,omitempty"` + // OriginPath - A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. + OriginPath *string `json:"originPath,omitempty"` + // RuleSets - rule sets referenced by this endpoint. + RuleSets *[]ResourceReference `json:"ruleSets,omitempty"` + // SupportedProtocols - List of supported protocols for this route. + SupportedProtocols *[]AFDEndpointProtocols `json:"supportedProtocols,omitempty"` + // PatternsToMatch - The route patterns of the rule. + PatternsToMatch *[]string `json:"patternsToMatch,omitempty"` + // CompressionSettings - compression settings. + CompressionSettings interface{} `json:"compressionSettings,omitempty"` + // QueryStringCachingBehavior - Defines how AzureFrontDoor caches requests that include query strings. You can ignore any query strings when caching, bypass caching to prevent requests that contain query strings from being cached, or cache every request with a unique URL. Possible values include: 'QueryStringCachingBehaviorIgnoreQueryString', 'QueryStringCachingBehaviorBypassCaching', 'QueryStringCachingBehaviorUseQueryString', 'QueryStringCachingBehaviorNotSet' + QueryStringCachingBehavior QueryStringCachingBehavior `json:"queryStringCachingBehavior,omitempty"` + // OptimizationType - Specifies what scenario the customer wants this AzureFrontDoor endpoint to optimize for, e.g. Download, Media services. With this information, AzureFrontDoor can apply scenario driven optimization. Possible values include: 'GeneralWebDelivery', 'GeneralMediaStreaming', 'VideoOnDemandMediaStreaming', 'LargeFileDownload', 'DynamicSiteAcceleration' + OptimizationType OptimizationType `json:"optimizationType,omitempty"` + // ForwardingProtocol - Protocol this rule will use when forwarding traffic to backends. Possible values include: 'HTTPOnly', 'HTTPSOnly', 'MatchRequest' + ForwardingProtocol ForwardingProtocol `json:"forwardingProtocol,omitempty"` + // LinkToDefaultDomain - whether this route will be linked to the default endpoint domain. Possible values include: 'LinkToDefaultDomainEnabled', 'LinkToDefaultDomainDisabled' + LinkToDefaultDomain LinkToDefaultDomain `json:"linkToDefaultDomain,omitempty"` + // HTTPSRedirect - Whether to automatically redirect HTTP traffic to HTTPS traffic. Note that this is a easy way to set up this rule and it will be the first rule that gets executed. Possible values include: 'HTTPSRedirectEnabled', 'HTTPSRedirectDisabled' + HTTPSRedirect HTTPSRedirect `json:"httpsRedirect,omitempty"` + // EnabledState - Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'EnabledStateEnabled', 'EnabledStateDisabled' + EnabledState EnabledState `json:"enabledState,omitempty"` +} + +// Rule friendly Rules name mapping to the any Rules or secret related information. +type Rule struct { + autorest.Response `json:"-"` + *RuleProperties `json:"properties,omitempty"` + // SystemData - READ-ONLY + SystemData *SystemData `json:"systemData,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for Rule. +func (r Rule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if r.RuleProperties != nil { + objectMap["properties"] = r.RuleProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Rule struct. +func (r *Rule) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var ruleProperties RuleProperties + err = json.Unmarshal(*v, &ruleProperties) + if err != nil { + return err + } + r.RuleProperties = &ruleProperties + } + case "systemData": + if v != nil { + var systemData SystemData + err = json.Unmarshal(*v, &systemData) + if err != nil { + return err + } + r.SystemData = &systemData + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + r.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + r.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + r.Type = &typeVar + } + } + } + + return nil +} + +// RuleListResult result of the request to list rules. It contains a list of rule objects and a URL link to +// get the next set of results. +type RuleListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of AzureFrontDoor rules within a rule set. + Value *[]Rule `json:"value,omitempty"` + // NextLink - URL to get the next set of rule objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for RuleListResult. +func (rlr RuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rlr.NextLink != nil { + objectMap["nextLink"] = rlr.NextLink + } + return json.Marshal(objectMap) +} + +// RuleListResultIterator provides access to a complete listing of Rule values. +type RuleListResultIterator struct { + i int + page RuleListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *RuleListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RuleListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *RuleListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter RuleListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter RuleListResultIterator) Response() RuleListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter RuleListResultIterator) Value() Rule { + if !iter.page.NotDone() { + return Rule{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the RuleListResultIterator type. +func NewRuleListResultIterator(page RuleListResultPage) RuleListResultIterator { + return RuleListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (rlr RuleListResult) IsEmpty() bool { + return rlr.Value == nil || len(*rlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (rlr RuleListResult) hasNextLink() bool { + return rlr.NextLink != nil && len(*rlr.NextLink) != 0 +} + +// ruleListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (rlr RuleListResult) ruleListResultPreparer(ctx context.Context) (*http.Request, error) { + if !rlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(rlr.NextLink))) +} + +// RuleListResultPage contains a page of Rule values. +type RuleListResultPage struct { + fn func(context.Context, RuleListResult) (RuleListResult, error) + rlr RuleListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *RuleListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RuleListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.rlr) + if err != nil { + return err + } + page.rlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *RuleListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page RuleListResultPage) NotDone() bool { + return !page.rlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page RuleListResultPage) Response() RuleListResult { + return page.rlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page RuleListResultPage) Values() []Rule { + if page.rlr.IsEmpty() { + return nil + } + return *page.rlr.Value +} + +// Creates a new instance of the RuleListResultPage type. +func NewRuleListResultPage(cur RuleListResult, getNextPage func(context.Context, RuleListResult) (RuleListResult, error)) RuleListResultPage { + return RuleListResultPage{ + fn: getNextPage, + rlr: cur, + } +} + +// RuleProperties the JSON object that contains the properties of the Rules to create. +type RuleProperties struct { + // Order - The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied. + Order *int32 `json:"order,omitempty"` + // Conditions - A list of conditions that must be matched for the actions to be executed + Conditions *[]BasicDeliveryRuleCondition `json:"conditions,omitempty"` + // Actions - A list of actions that are executed when all the conditions of a rule are satisfied. + Actions *[]BasicDeliveryRuleAction `json:"actions,omitempty"` + // MatchProcessingBehavior - If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. Possible values include: 'Continue', 'Stop' + MatchProcessingBehavior MatchProcessingBehavior `json:"matchProcessingBehavior,omitempty"` + // ProvisioningState - READ-ONLY; Provisioning status. Possible values include: 'Succeeded', 'Failed', 'Updating', 'Deleting', 'Creating' + ProvisioningState AfdProvisioningState `json:"provisioningState,omitempty"` + // DeploymentStatus - READ-ONLY; Possible values include: 'DeploymentStatusNotStarted', 'DeploymentStatusInProgress', 'DeploymentStatusSucceeded', 'DeploymentStatusFailed' + DeploymentStatus DeploymentStatus `json:"deploymentStatus,omitempty"` +} + +// MarshalJSON is the custom marshaler for RuleProperties. +func (rp RuleProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rp.Order != nil { + objectMap["order"] = rp.Order + } + if rp.Conditions != nil { + objectMap["conditions"] = rp.Conditions + } + if rp.Actions != nil { + objectMap["actions"] = rp.Actions + } + if rp.MatchProcessingBehavior != "" { + objectMap["matchProcessingBehavior"] = rp.MatchProcessingBehavior + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for RuleProperties struct. +func (rp *RuleProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "order": + if v != nil { + var order int32 + err = json.Unmarshal(*v, &order) + if err != nil { + return err + } + rp.Order = &order + } + case "conditions": + if v != nil { + conditions, err := unmarshalBasicDeliveryRuleConditionArray(*v) + if err != nil { + return err + } + rp.Conditions = &conditions + } + case "actions": + if v != nil { + actions, err := unmarshalBasicDeliveryRuleActionArray(*v) + if err != nil { + return err + } + rp.Actions = &actions + } + case "matchProcessingBehavior": + if v != nil { + var matchProcessingBehavior MatchProcessingBehavior + err = json.Unmarshal(*v, &matchProcessingBehavior) + if err != nil { + return err + } + rp.MatchProcessingBehavior = matchProcessingBehavior + } + case "provisioningState": + if v != nil { + var provisioningState AfdProvisioningState + err = json.Unmarshal(*v, &provisioningState) + if err != nil { + return err + } + rp.ProvisioningState = provisioningState + } + case "deploymentStatus": + if v != nil { + var deploymentStatus DeploymentStatus + err = json.Unmarshal(*v, &deploymentStatus) + if err != nil { + return err + } + rp.DeploymentStatus = deploymentStatus + } + } + } + + return nil +} + +// RulesCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation. +type RulesCreateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *RulesCreateFuture) Result(client RulesClient) (r Rule, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RulesCreateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.RulesCreateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if r.Response.Response, err = future.GetResult(sender); err == nil && r.Response.Response.StatusCode != http.StatusNoContent { + r, err = client.CreateResponder(r.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RulesCreateFuture", "Result", r.Response.Response, "Failure responding to request") + } + } + return +} + +// RulesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. +type RulesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *RulesDeleteFuture) Result(client RulesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RulesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.RulesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// RuleSet friendly RuleSet name mapping to the any RuleSet or secret related information. +type RuleSet struct { + autorest.Response `json:"-"` + *RuleSetProperties `json:"properties,omitempty"` + // SystemData - READ-ONLY + SystemData *SystemData `json:"systemData,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for RuleSet. +func (rs RuleSet) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rs.RuleSetProperties != nil { + objectMap["properties"] = rs.RuleSetProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for RuleSet struct. +func (rs *RuleSet) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var ruleSetProperties RuleSetProperties + err = json.Unmarshal(*v, &ruleSetProperties) + if err != nil { + return err + } + rs.RuleSetProperties = &ruleSetProperties + } + case "systemData": + if v != nil { + var systemData SystemData + err = json.Unmarshal(*v, &systemData) + if err != nil { + return err + } + rs.SystemData = &systemData + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + rs.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + rs.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + rs.Type = &typeVar + } + } + } + + return nil +} + +// RuleSetListResult result of the request to list rule sets. It contains a list of rule set objects and a +// URL link to get the next set of results. +type RuleSetListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of AzureFrontDoor rule sets within a profile. + Value *[]RuleSet `json:"value,omitempty"` + // NextLink - URL to get the next set of rule set objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for RuleSetListResult. +func (rslr RuleSetListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rslr.NextLink != nil { + objectMap["nextLink"] = rslr.NextLink + } + return json.Marshal(objectMap) +} + +// RuleSetListResultIterator provides access to a complete listing of RuleSet values. +type RuleSetListResultIterator struct { + i int + page RuleSetListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *RuleSetListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RuleSetListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *RuleSetListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter RuleSetListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter RuleSetListResultIterator) Response() RuleSetListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter RuleSetListResultIterator) Value() RuleSet { + if !iter.page.NotDone() { + return RuleSet{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the RuleSetListResultIterator type. +func NewRuleSetListResultIterator(page RuleSetListResultPage) RuleSetListResultIterator { + return RuleSetListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (rslr RuleSetListResult) IsEmpty() bool { + return rslr.Value == nil || len(*rslr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (rslr RuleSetListResult) hasNextLink() bool { + return rslr.NextLink != nil && len(*rslr.NextLink) != 0 +} + +// ruleSetListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (rslr RuleSetListResult) ruleSetListResultPreparer(ctx context.Context) (*http.Request, error) { + if !rslr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(rslr.NextLink))) +} + +// RuleSetListResultPage contains a page of RuleSet values. +type RuleSetListResultPage struct { + fn func(context.Context, RuleSetListResult) (RuleSetListResult, error) + rslr RuleSetListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *RuleSetListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RuleSetListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.rslr) + if err != nil { + return err + } + page.rslr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *RuleSetListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page RuleSetListResultPage) NotDone() bool { + return !page.rslr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page RuleSetListResultPage) Response() RuleSetListResult { + return page.rslr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page RuleSetListResultPage) Values() []RuleSet { + if page.rslr.IsEmpty() { + return nil + } + return *page.rslr.Value +} + +// Creates a new instance of the RuleSetListResultPage type. +func NewRuleSetListResultPage(cur RuleSetListResult, getNextPage func(context.Context, RuleSetListResult) (RuleSetListResult, error)) RuleSetListResultPage { + return RuleSetListResultPage{ + fn: getNextPage, + rslr: cur, + } +} + +// RuleSetProperties the JSON object that contains the properties of the Rule Set to create. +type RuleSetProperties struct { + // ProvisioningState - READ-ONLY; Provisioning status. Possible values include: 'Succeeded', 'Failed', 'Updating', 'Deleting', 'Creating' + ProvisioningState AfdProvisioningState `json:"provisioningState,omitempty"` + // DeploymentStatus - READ-ONLY; Possible values include: 'DeploymentStatusNotStarted', 'DeploymentStatusInProgress', 'DeploymentStatusSucceeded', 'DeploymentStatusFailed' + DeploymentStatus DeploymentStatus `json:"deploymentStatus,omitempty"` +} + +// RuleSetsCreateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type RuleSetsCreateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *RuleSetsCreateFuture) Result(client RuleSetsClient) (rs RuleSet, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RuleSetsCreateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.RuleSetsCreateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if rs.Response.Response, err = future.GetResult(sender); err == nil && rs.Response.Response.StatusCode != http.StatusNoContent { + rs, err = client.CreateResponder(rs.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RuleSetsCreateFuture", "Result", rs.Response.Response, "Failure responding to request") + } + } + return +} + +// RuleSetsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type RuleSetsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *RuleSetsDeleteFuture) Result(client RuleSetsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RuleSetsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.RuleSetsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// RulesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation. +type RulesUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *RulesUpdateFuture) Result(client RulesClient) (r Rule, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RulesUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.RulesUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if r.Response.Response, err = future.GetResult(sender); err == nil && r.Response.Response.StatusCode != http.StatusNoContent { + r, err = client.UpdateResponder(r.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RulesUpdateFuture", "Result", r.Response.Response, "Failure responding to request") + } + } + return +} + +// RuleUpdateParameters the domain JSON object required for domain creation or update. +type RuleUpdateParameters struct { + *RuleUpdatePropertiesParameters `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for RuleUpdateParameters. +func (rup RuleUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rup.RuleUpdatePropertiesParameters != nil { + objectMap["properties"] = rup.RuleUpdatePropertiesParameters + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for RuleUpdateParameters struct. +func (rup *RuleUpdateParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var ruleUpdatePropertiesParameters RuleUpdatePropertiesParameters + err = json.Unmarshal(*v, &ruleUpdatePropertiesParameters) + if err != nil { + return err + } + rup.RuleUpdatePropertiesParameters = &ruleUpdatePropertiesParameters + } + } + } + + return nil +} + +// RuleUpdatePropertiesParameters the JSON object that contains the properties of the domain to create. +type RuleUpdatePropertiesParameters struct { + // Order - The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied. + Order *int32 `json:"order,omitempty"` + // Conditions - A list of conditions that must be matched for the actions to be executed + Conditions *[]BasicDeliveryRuleCondition `json:"conditions,omitempty"` + // Actions - A list of actions that are executed when all the conditions of a rule are satisfied. + Actions *[]BasicDeliveryRuleAction `json:"actions,omitempty"` + // MatchProcessingBehavior - If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. Possible values include: 'Continue', 'Stop' + MatchProcessingBehavior MatchProcessingBehavior `json:"matchProcessingBehavior,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for RuleUpdatePropertiesParameters struct. +func (rupp *RuleUpdatePropertiesParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "order": + if v != nil { + var order int32 + err = json.Unmarshal(*v, &order) + if err != nil { + return err + } + rupp.Order = &order + } + case "conditions": + if v != nil { + conditions, err := unmarshalBasicDeliveryRuleConditionArray(*v) + if err != nil { + return err + } + rupp.Conditions = &conditions + } + case "actions": + if v != nil { + actions, err := unmarshalBasicDeliveryRuleActionArray(*v) + if err != nil { + return err + } + rupp.Actions = &actions + } + case "matchProcessingBehavior": + if v != nil { + var matchProcessingBehavior MatchProcessingBehavior + err = json.Unmarshal(*v, &matchProcessingBehavior) + if err != nil { + return err + } + rupp.MatchProcessingBehavior = matchProcessingBehavior + } + } + } + + return nil +} + +// Secret friendly Secret name mapping to the any Secret or secret related information. +type Secret struct { + autorest.Response `json:"-"` + *SecretProperties `json:"properties,omitempty"` + // SystemData - READ-ONLY + SystemData *SystemData `json:"systemData,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for Secret. +func (s Secret) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if s.SecretProperties != nil { + objectMap["properties"] = s.SecretProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Secret struct. +func (s *Secret) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var secretProperties SecretProperties + err = json.Unmarshal(*v, &secretProperties) + if err != nil { + return err + } + s.SecretProperties = &secretProperties + } + case "systemData": + if v != nil { + var systemData SystemData + err = json.Unmarshal(*v, &systemData) + if err != nil { + return err + } + s.SystemData = &systemData + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + s.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + s.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + s.Type = &typeVar + } + } + } + + return nil +} + +// SecretListResult result of the request to list secrets. It contains a list of Secret objects and a URL +// link to get the next set of results. +type SecretListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of AzureFrontDoor secrets within a profile. + Value *[]Secret `json:"value,omitempty"` + // NextLink - URL to get the next set of Secret objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for SecretListResult. +func (slr SecretListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if slr.NextLink != nil { + objectMap["nextLink"] = slr.NextLink + } + return json.Marshal(objectMap) +} + +// SecretListResultIterator provides access to a complete listing of Secret values. +type SecretListResultIterator struct { + i int + page SecretListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *SecretListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecretListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *SecretListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter SecretListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter SecretListResultIterator) Response() SecretListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter SecretListResultIterator) Value() Secret { + if !iter.page.NotDone() { + return Secret{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the SecretListResultIterator type. +func NewSecretListResultIterator(page SecretListResultPage) SecretListResultIterator { + return SecretListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (slr SecretListResult) IsEmpty() bool { + return slr.Value == nil || len(*slr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (slr SecretListResult) hasNextLink() bool { + return slr.NextLink != nil && len(*slr.NextLink) != 0 +} + +// secretListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (slr SecretListResult) secretListResultPreparer(ctx context.Context) (*http.Request, error) { + if !slr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(slr.NextLink))) +} + +// SecretListResultPage contains a page of Secret values. +type SecretListResultPage struct { + fn func(context.Context, SecretListResult) (SecretListResult, error) + slr SecretListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *SecretListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecretListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.slr) + if err != nil { + return err + } + page.slr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *SecretListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page SecretListResultPage) NotDone() bool { + return !page.slr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page SecretListResultPage) Response() SecretListResult { + return page.slr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page SecretListResultPage) Values() []Secret { + if page.slr.IsEmpty() { + return nil + } + return *page.slr.Value +} + +// Creates a new instance of the SecretListResultPage type. +func NewSecretListResultPage(cur SecretListResult, getNextPage func(context.Context, SecretListResult) (SecretListResult, error)) SecretListResultPage { + return SecretListResultPage{ + fn: getNextPage, + slr: cur, + } +} + +// BasicSecretParameters the json object containing secret parameters +type BasicSecretParameters interface { + AsURLSigningKeyParameters() (*URLSigningKeyParameters, bool) + AsSecretParameters() (*SecretParameters, bool) +} + +// SecretParameters the json object containing secret parameters +type SecretParameters struct { + // Type - Possible values include: 'TypeSecretParameters', 'TypeURLSigningKey' + Type TypeBasicSecretParameters `json:"type,omitempty"` +} + +func unmarshalBasicSecretParameters(body []byte) (BasicSecretParameters, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeURLSigningKey): + var uskp URLSigningKeyParameters + err := json.Unmarshal(body, &uskp) + return uskp, err + default: + var sp SecretParameters + err := json.Unmarshal(body, &sp) + return sp, err + } +} +func unmarshalBasicSecretParametersArray(body []byte) ([]BasicSecretParameters, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + spArray := make([]BasicSecretParameters, len(rawMessages)) + + for index, rawMessage := range rawMessages { + sp, err := unmarshalBasicSecretParameters(*rawMessage) + if err != nil { + return nil, err + } + spArray[index] = sp + } + return spArray, nil +} + +// MarshalJSON is the custom marshaler for SecretParameters. +func (sp SecretParameters) MarshalJSON() ([]byte, error) { + sp.Type = TypeSecretParameters + objectMap := make(map[string]interface{}) + if sp.Type != "" { + objectMap["type"] = sp.Type + } + return json.Marshal(objectMap) +} + +// AsURLSigningKeyParameters is the BasicSecretParameters implementation for SecretParameters. +func (sp SecretParameters) AsURLSigningKeyParameters() (*URLSigningKeyParameters, bool) { + return nil, false +} + +// AsSecretParameters is the BasicSecretParameters implementation for SecretParameters. +func (sp SecretParameters) AsSecretParameters() (*SecretParameters, bool) { + return &sp, true +} + +// AsBasicSecretParameters is the BasicSecretParameters implementation for SecretParameters. +func (sp SecretParameters) AsBasicSecretParameters() (BasicSecretParameters, bool) { + return &sp, true +} + +// SecretProperties the JSON object that contains the properties of the Secret to create. +type SecretProperties struct { + // Parameters - object which contains secret parameters + Parameters BasicSecretParameters `json:"parameters,omitempty"` + // ProvisioningState - READ-ONLY; Provisioning status. Possible values include: 'Succeeded', 'Failed', 'Updating', 'Deleting', 'Creating' + ProvisioningState AfdProvisioningState `json:"provisioningState,omitempty"` + // DeploymentStatus - READ-ONLY; Possible values include: 'DeploymentStatusNotStarted', 'DeploymentStatusInProgress', 'DeploymentStatusSucceeded', 'DeploymentStatusFailed' + DeploymentStatus DeploymentStatus `json:"deploymentStatus,omitempty"` +} + +// MarshalJSON is the custom marshaler for SecretProperties. +func (sp SecretProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["parameters"] = sp.Parameters + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for SecretProperties struct. +func (sp *SecretProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "parameters": + if v != nil { + parameters, err := unmarshalBasicSecretParameters(*v) + if err != nil { + return err + } + sp.Parameters = parameters + } + case "provisioningState": + if v != nil { + var provisioningState AfdProvisioningState + err = json.Unmarshal(*v, &provisioningState) + if err != nil { + return err + } + sp.ProvisioningState = provisioningState + } + case "deploymentStatus": + if v != nil { + var deploymentStatus DeploymentStatus + err = json.Unmarshal(*v, &deploymentStatus) + if err != nil { + return err + } + sp.DeploymentStatus = deploymentStatus + } + } + } + + return nil +} + +// SecretsCreateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type SecretsCreateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *SecretsCreateFuture) Result(client SecretsClient) (s Secret, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecretsCreateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.SecretsCreateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if s.Response.Response, err = future.GetResult(sender); err == nil && s.Response.Response.StatusCode != http.StatusNoContent { + s, err = client.CreateResponder(s.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecretsCreateFuture", "Result", s.Response.Response, "Failure responding to request") + } + } + return +} + +// SecretsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type SecretsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *SecretsDeleteFuture) Result(client SecretsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecretsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.SecretsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// SecretsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type SecretsUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *SecretsUpdateFuture) Result(client SecretsClient) (s Secret, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecretsUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.SecretsUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if s.Response.Response, err = future.GetResult(sender); err == nil && s.Response.Response.StatusCode != http.StatusNoContent { + s, err = client.UpdateResponder(s.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecretsUpdateFuture", "Result", s.Response.Response, "Failure responding to request") + } + } + return +} + +// SecurityPoliciesCreateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type SecurityPoliciesCreateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *SecurityPoliciesCreateFuture) Result(client SecurityPoliciesClient) (sp SecurityPolicy, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecurityPoliciesCreateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.SecurityPoliciesCreateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if sp.Response.Response, err = future.GetResult(sender); err == nil && sp.Response.Response.StatusCode != http.StatusNoContent { + sp, err = client.CreateResponder(sp.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecurityPoliciesCreateFuture", "Result", sp.Response.Response, "Failure responding to request") + } + } + return +} + +// SecurityPoliciesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type SecurityPoliciesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *SecurityPoliciesDeleteFuture) Result(client SecurityPoliciesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecurityPoliciesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.SecurityPoliciesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// SecurityPoliciesPatchFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type SecurityPoliciesPatchFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *SecurityPoliciesPatchFuture) Result(client SecurityPoliciesClient) (sp SecurityPolicy, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecurityPoliciesPatchFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("cdn.SecurityPoliciesPatchFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if sp.Response.Response, err = future.GetResult(sender); err == nil && sp.Response.Response.StatusCode != http.StatusNoContent { + sp, err = client.PatchResponder(sp.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecurityPoliciesPatchFuture", "Result", sp.Response.Response, "Failure responding to request") + } + } + return +} + +// SecurityPolicy securityPolicy association for AzureFrontDoor profile +type SecurityPolicy struct { + autorest.Response `json:"-"` + *SecurityPolicyProperties `json:"properties,omitempty"` + // SystemData - READ-ONLY + SystemData *SystemData `json:"systemData,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SecurityPolicy. +func (sp SecurityPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sp.SecurityPolicyProperties != nil { + objectMap["properties"] = sp.SecurityPolicyProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for SecurityPolicy struct. +func (sp *SecurityPolicy) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var securityPolicyProperties SecurityPolicyProperties + err = json.Unmarshal(*v, &securityPolicyProperties) + if err != nil { + return err + } + sp.SecurityPolicyProperties = &securityPolicyProperties + } + case "systemData": + if v != nil { + var systemData SystemData + err = json.Unmarshal(*v, &systemData) + if err != nil { + return err + } + sp.SystemData = &systemData + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + sp.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + sp.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sp.Type = &typeVar + } + } + } + + return nil +} + +// SecurityPolicyListResult result of the request to list security policies. It contains a list of security +// policy objects and a URL link to get the next set of results. +type SecurityPolicyListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of Security policies within a profile + Value *[]SecurityPolicy `json:"value,omitempty"` + // NextLink - URL to get the next set of security policy objects if there is any. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for SecurityPolicyListResult. +func (splr SecurityPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if splr.NextLink != nil { + objectMap["nextLink"] = splr.NextLink + } + return json.Marshal(objectMap) +} + +// SecurityPolicyListResultIterator provides access to a complete listing of SecurityPolicy values. +type SecurityPolicyListResultIterator struct { + i int + page SecurityPolicyListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *SecurityPolicyListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityPolicyListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *SecurityPolicyListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter SecurityPolicyListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter SecurityPolicyListResultIterator) Response() SecurityPolicyListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter SecurityPolicyListResultIterator) Value() SecurityPolicy { + if !iter.page.NotDone() { + return SecurityPolicy{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the SecurityPolicyListResultIterator type. +func NewSecurityPolicyListResultIterator(page SecurityPolicyListResultPage) SecurityPolicyListResultIterator { + return SecurityPolicyListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (splr SecurityPolicyListResult) IsEmpty() bool { + return splr.Value == nil || len(*splr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (splr SecurityPolicyListResult) hasNextLink() bool { + return splr.NextLink != nil && len(*splr.NextLink) != 0 +} + +// securityPolicyListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (splr SecurityPolicyListResult) securityPolicyListResultPreparer(ctx context.Context) (*http.Request, error) { + if !splr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(splr.NextLink))) +} + +// SecurityPolicyListResultPage contains a page of SecurityPolicy values. +type SecurityPolicyListResultPage struct { + fn func(context.Context, SecurityPolicyListResult) (SecurityPolicyListResult, error) + splr SecurityPolicyListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *SecurityPolicyListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityPolicyListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.splr) + if err != nil { + return err + } + page.splr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *SecurityPolicyListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page SecurityPolicyListResultPage) NotDone() bool { + return !page.splr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page SecurityPolicyListResultPage) Response() SecurityPolicyListResult { + return page.splr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page SecurityPolicyListResultPage) Values() []SecurityPolicy { + if page.splr.IsEmpty() { + return nil + } + return *page.splr.Value +} + +// Creates a new instance of the SecurityPolicyListResultPage type. +func NewSecurityPolicyListResultPage(cur SecurityPolicyListResult, getNextPage func(context.Context, SecurityPolicyListResult) (SecurityPolicyListResult, error)) SecurityPolicyListResultPage { + return SecurityPolicyListResultPage{ + fn: getNextPage, + splr: cur, + } +} + +// BasicSecurityPolicyParameters the json object containing security policy parameters +type BasicSecurityPolicyParameters interface { + AsSecurityPolicyWebApplicationFirewallParameters() (*SecurityPolicyWebApplicationFirewallParameters, bool) + AsSecurityPolicyParameters() (*SecurityPolicyParameters, bool) +} + +// SecurityPolicyParameters the json object containing security policy parameters +type SecurityPolicyParameters struct { + // Type - Possible values include: 'TypeSecurityPolicyParameters', 'TypeWebApplicationFirewall' + Type Type `json:"type,omitempty"` +} + +func unmarshalBasicSecurityPolicyParameters(body []byte) (BasicSecurityPolicyParameters, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeWebApplicationFirewall): + var spwafp SecurityPolicyWebApplicationFirewallParameters + err := json.Unmarshal(body, &spwafp) + return spwafp, err + default: + var spp SecurityPolicyParameters + err := json.Unmarshal(body, &spp) + return spp, err + } +} +func unmarshalBasicSecurityPolicyParametersArray(body []byte) ([]BasicSecurityPolicyParameters, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + sppArray := make([]BasicSecurityPolicyParameters, len(rawMessages)) + + for index, rawMessage := range rawMessages { + spp, err := unmarshalBasicSecurityPolicyParameters(*rawMessage) + if err != nil { + return nil, err + } + sppArray[index] = spp + } + return sppArray, nil +} + +// MarshalJSON is the custom marshaler for SecurityPolicyParameters. +func (spp SecurityPolicyParameters) MarshalJSON() ([]byte, error) { + spp.Type = TypeSecurityPolicyParameters + objectMap := make(map[string]interface{}) + if spp.Type != "" { + objectMap["type"] = spp.Type + } + return json.Marshal(objectMap) +} + +// AsSecurityPolicyWebApplicationFirewallParameters is the BasicSecurityPolicyParameters implementation for SecurityPolicyParameters. +func (spp SecurityPolicyParameters) AsSecurityPolicyWebApplicationFirewallParameters() (*SecurityPolicyWebApplicationFirewallParameters, bool) { + return nil, false +} + +// AsSecurityPolicyParameters is the BasicSecurityPolicyParameters implementation for SecurityPolicyParameters. +func (spp SecurityPolicyParameters) AsSecurityPolicyParameters() (*SecurityPolicyParameters, bool) { + return &spp, true +} + +// AsBasicSecurityPolicyParameters is the BasicSecurityPolicyParameters implementation for SecurityPolicyParameters. +func (spp SecurityPolicyParameters) AsBasicSecurityPolicyParameters() (BasicSecurityPolicyParameters, bool) { + return &spp, true +} + +// SecurityPolicyProperties the json object that contains properties required to create a security policy +type SecurityPolicyProperties struct { + // Parameters - object which contains security policy parameters + Parameters *SecurityPolicyWebApplicationFirewallParameters `json:"parameters,omitempty"` + // ProvisioningState - READ-ONLY; Provisioning status. Possible values include: 'Succeeded', 'Failed', 'Updating', 'Deleting', 'Creating' + ProvisioningState AfdProvisioningState `json:"provisioningState,omitempty"` + // DeploymentStatus - READ-ONLY; Possible values include: 'DeploymentStatusNotStarted', 'DeploymentStatusInProgress', 'DeploymentStatusSucceeded', 'DeploymentStatusFailed' + DeploymentStatus DeploymentStatus `json:"deploymentStatus,omitempty"` +} + +// MarshalJSON is the custom marshaler for SecurityPolicyProperties. +func (spp SecurityPolicyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if spp.Parameters != nil { + objectMap["parameters"] = spp.Parameters + } + return json.Marshal(objectMap) +} + +// SecurityPolicyWebApplicationFirewallAssociation settings for security policy patterns to match +type SecurityPolicyWebApplicationFirewallAssociation struct { + // Domains - List of domains. + Domains *[]ResourceReference `json:"domains,omitempty"` + // PatternsToMatch - List of paths + PatternsToMatch *[]string `json:"patternsToMatch,omitempty"` +} + +// SecurityPolicyWebApplicationFirewallParameters the json object containing security policy waf parameters +type SecurityPolicyWebApplicationFirewallParameters struct { + // WafPolicy - Resource ID. + WafPolicy *ResourceReference `json:"wafPolicy,omitempty"` + // Associations - Waf associations + Associations *[]SecurityPolicyWebApplicationFirewallAssociation `json:"associations,omitempty"` + // Type - Possible values include: 'TypeSecurityPolicyParameters', 'TypeWebApplicationFirewall' + Type Type `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SecurityPolicyWebApplicationFirewallParameters. +func (spwafp SecurityPolicyWebApplicationFirewallParameters) MarshalJSON() ([]byte, error) { + spwafp.Type = TypeWebApplicationFirewall + objectMap := make(map[string]interface{}) + if spwafp.WafPolicy != nil { + objectMap["wafPolicy"] = spwafp.WafPolicy + } + if spwafp.Associations != nil { + objectMap["associations"] = spwafp.Associations + } + if spwafp.Type != "" { + objectMap["type"] = spwafp.Type + } + return json.Marshal(objectMap) +} + +// AsSecurityPolicyWebApplicationFirewallParameters is the BasicSecurityPolicyParameters implementation for SecurityPolicyWebApplicationFirewallParameters. +func (spwafp SecurityPolicyWebApplicationFirewallParameters) AsSecurityPolicyWebApplicationFirewallParameters() (*SecurityPolicyWebApplicationFirewallParameters, bool) { + return &spwafp, true +} + +// AsSecurityPolicyParameters is the BasicSecurityPolicyParameters implementation for SecurityPolicyWebApplicationFirewallParameters. +func (spwafp SecurityPolicyWebApplicationFirewallParameters) AsSecurityPolicyParameters() (*SecurityPolicyParameters, bool) { + return nil, false +} + +// AsBasicSecurityPolicyParameters is the BasicSecurityPolicyParameters implementation for SecurityPolicyWebApplicationFirewallParameters. +func (spwafp SecurityPolicyWebApplicationFirewallParameters) AsBasicSecurityPolicyParameters() (BasicSecurityPolicyParameters, bool) { + return &spwafp, true +} + +// SharedPrivateLinkResourceProperties describes the properties of an existing Shared Private Link Resource +// to use when connecting to a private origin. +type SharedPrivateLinkResourceProperties struct { + // PrivateLink - The resource id of the resource the shared private link resource is for. + PrivateLink *ResourceReference `json:"privateLink,omitempty"` + // PrivateLinkLocation - The location of the shared private link resource + PrivateLinkLocation *string `json:"privateLinkLocation,omitempty"` + // GroupID - The group id from the provider of resource the shared private link resource is for. + GroupID *string `json:"groupId,omitempty"` + // RequestMessage - The request message for requesting approval of the shared private link resource. + RequestMessage *string `json:"requestMessage,omitempty"` + // Status - Status of the shared private link resource. Can be Pending, Approved, Rejected, Disconnected, or Timeout. Possible values include: 'SharedPrivateLinkResourceStatusPending', 'SharedPrivateLinkResourceStatusApproved', 'SharedPrivateLinkResourceStatusRejected', 'SharedPrivateLinkResourceStatusDisconnected', 'SharedPrivateLinkResourceStatusTimeout' + Status SharedPrivateLinkResourceStatus `json:"status,omitempty"` +} + +// Sku the pricing tier (defines a CDN provider, feature list and rate) of the CDN profile. +type Sku struct { + // Name - Name of the pricing tier. Possible values include: 'StandardVerizon', 'PremiumVerizon', 'CustomVerizon', 'StandardAkamai', 'StandardChinaCdn', 'StandardMicrosoft', 'PremiumChinaCdn', 'StandardAzureFrontDoor', 'PremiumAzureFrontDoor', 'Standard955BandWidthChinaCdn', 'StandardAvgBandWidthChinaCdn', 'StandardPlusChinaCdn', 'StandardPlus955BandWidthChinaCdn', 'StandardPlusAvgBandWidthChinaCdn' + Name SkuName `json:"name,omitempty"` +} + +// SsoURI the URI required to login to the supplemental portal from the Azure portal. +type SsoURI struct { + autorest.Response `json:"-"` + // SsoURIValue - READ-ONLY; The URI used to login to the supplemental portal. + SsoURIValue *string `json:"ssoUriValue,omitempty"` +} + +// SupportedOptimizationTypesListResult the result of the GetSupportedOptimizationTypes API +type SupportedOptimizationTypesListResult struct { + autorest.Response `json:"-"` + // SupportedOptimizationTypes - READ-ONLY; Supported optimization types for a profile. + SupportedOptimizationTypes *[]OptimizationType `json:"supportedOptimizationTypes,omitempty"` +} + +// SystemData read only system data +type SystemData struct { + // CreatedBy - An identifier for the identity that created the resource + CreatedBy *string `json:"createdBy,omitempty"` + // CreatedByType - The type of identity that created the resource. Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + CreatedByType IdentityType `json:"createdByType,omitempty"` + // CreatedAt - The timestamp of resource creation (UTC) + CreatedAt *date.Time `json:"createdAt,omitempty"` + // LastModifiedBy - An identifier for the identity that last modified the resource + LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + LastModifiedByType IdentityType `json:"lastModifiedByType,omitempty"` + // LastModifiedAt - The timestamp of resource last modification (UTC) + LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` +} + +// TrackedResource the resource model definition for a ARM tracked top level resource. +type TrackedResource struct { + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // SystemData - READ-ONLY + SystemData *SystemData `json:"systemData,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for TrackedResource. +func (tr TrackedResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if tr.Location != nil { + objectMap["location"] = tr.Location + } + if tr.Tags != nil { + objectMap["tags"] = tr.Tags + } + return json.Marshal(objectMap) +} + +// URLFileExtensionMatchConditionParameters defines the parameters for UrlFileExtension match conditions +type URLFileExtensionMatchConditionParameters struct { + OdataType *string `json:"@odata.type,omitempty"` + // Operator - Describes operator to be matched. Possible values include: 'URLFileExtensionOperatorAny', 'URLFileExtensionOperatorEqual', 'URLFileExtensionOperatorContains', 'URLFileExtensionOperatorBeginsWith', 'URLFileExtensionOperatorEndsWith', 'URLFileExtensionOperatorLessThan', 'URLFileExtensionOperatorLessThanOrEqual', 'URLFileExtensionOperatorGreaterThan', 'URLFileExtensionOperatorGreaterThanOrEqual', 'URLFileExtensionOperatorRegEx' + Operator URLFileExtensionOperator `json:"operator,omitempty"` + // NegateCondition - Describes if this is negate condition or not + NegateCondition *bool `json:"negateCondition,omitempty"` + // MatchValues - The match value for the condition of the delivery rule + MatchValues *[]string `json:"matchValues,omitempty"` + // Transforms - List of transforms + Transforms *[]Transform `json:"transforms,omitempty"` +} + +// URLFileNameMatchConditionParameters defines the parameters for UrlFilename match conditions +type URLFileNameMatchConditionParameters struct { + OdataType *string `json:"@odata.type,omitempty"` + // Operator - Describes operator to be matched. Possible values include: 'URLFileNameOperatorAny', 'URLFileNameOperatorEqual', 'URLFileNameOperatorContains', 'URLFileNameOperatorBeginsWith', 'URLFileNameOperatorEndsWith', 'URLFileNameOperatorLessThan', 'URLFileNameOperatorLessThanOrEqual', 'URLFileNameOperatorGreaterThan', 'URLFileNameOperatorGreaterThanOrEqual', 'URLFileNameOperatorRegEx' + Operator URLFileNameOperator `json:"operator,omitempty"` + // NegateCondition - Describes if this is negate condition or not + NegateCondition *bool `json:"negateCondition,omitempty"` + // MatchValues - The match value for the condition of the delivery rule + MatchValues *[]string `json:"matchValues,omitempty"` + // Transforms - List of transforms + Transforms *[]Transform `json:"transforms,omitempty"` +} + +// URLPathMatchConditionParameters defines the parameters for UrlPath match conditions +type URLPathMatchConditionParameters struct { + OdataType *string `json:"@odata.type,omitempty"` + // Operator - Describes operator to be matched. Possible values include: 'URLPathOperatorAny', 'URLPathOperatorEqual', 'URLPathOperatorContains', 'URLPathOperatorBeginsWith', 'URLPathOperatorEndsWith', 'URLPathOperatorLessThan', 'URLPathOperatorLessThanOrEqual', 'URLPathOperatorGreaterThan', 'URLPathOperatorGreaterThanOrEqual', 'URLPathOperatorWildcard', 'URLPathOperatorRegEx' + Operator URLPathOperator `json:"operator,omitempty"` + // NegateCondition - Describes if this is negate condition or not + NegateCondition *bool `json:"negateCondition,omitempty"` + // MatchValues - The match value for the condition of the delivery rule + MatchValues *[]string `json:"matchValues,omitempty"` + // Transforms - List of transforms + Transforms *[]Transform `json:"transforms,omitempty"` +} + +// URLRedirectAction defines the url redirect action for the delivery rule. +type URLRedirectAction struct { + // Parameters - Defines the parameters for the action. + Parameters *URLRedirectActionParameters `json:"parameters,omitempty"` + // Name - Possible values include: 'NameDeliveryRuleAction', 'NameURLRedirect', 'NameURLSigning', 'NameOriginGroupOverride', 'NameURLRewrite', 'NameModifyRequestHeader', 'NameModifyResponseHeader', 'NameCacheExpiration', 'NameCacheKeyQueryString' + Name NameBasicDeliveryRuleAction `json:"name,omitempty"` +} + +// MarshalJSON is the custom marshaler for URLRedirectAction. +func (ura URLRedirectAction) MarshalJSON() ([]byte, error) { + ura.Name = NameURLRedirect + objectMap := make(map[string]interface{}) + if ura.Parameters != nil { + objectMap["parameters"] = ura.Parameters + } + if ura.Name != "" { + objectMap["name"] = ura.Name + } + return json.Marshal(objectMap) +} + +// AsURLRedirectAction is the BasicDeliveryRuleAction implementation for URLRedirectAction. +func (ura URLRedirectAction) AsURLRedirectAction() (*URLRedirectAction, bool) { + return &ura, true +} + +// AsURLSigningAction is the BasicDeliveryRuleAction implementation for URLRedirectAction. +func (ura URLRedirectAction) AsURLSigningAction() (*URLSigningAction, bool) { + return nil, false +} + +// AsOriginGroupOverrideAction is the BasicDeliveryRuleAction implementation for URLRedirectAction. +func (ura URLRedirectAction) AsOriginGroupOverrideAction() (*OriginGroupOverrideAction, bool) { + return nil, false +} + +// AsURLRewriteAction is the BasicDeliveryRuleAction implementation for URLRedirectAction. +func (ura URLRedirectAction) AsURLRewriteAction() (*URLRewriteAction, bool) { + return nil, false +} + +// AsDeliveryRuleRequestHeaderAction is the BasicDeliveryRuleAction implementation for URLRedirectAction. +func (ura URLRedirectAction) AsDeliveryRuleRequestHeaderAction() (*DeliveryRuleRequestHeaderAction, bool) { + return nil, false +} + +// AsDeliveryRuleResponseHeaderAction is the BasicDeliveryRuleAction implementation for URLRedirectAction. +func (ura URLRedirectAction) AsDeliveryRuleResponseHeaderAction() (*DeliveryRuleResponseHeaderAction, bool) { + return nil, false +} + +// AsDeliveryRuleCacheExpirationAction is the BasicDeliveryRuleAction implementation for URLRedirectAction. +func (ura URLRedirectAction) AsDeliveryRuleCacheExpirationAction() (*DeliveryRuleCacheExpirationAction, bool) { + return nil, false +} + +// AsDeliveryRuleCacheKeyQueryStringAction is the BasicDeliveryRuleAction implementation for URLRedirectAction. +func (ura URLRedirectAction) AsDeliveryRuleCacheKeyQueryStringAction() (*DeliveryRuleCacheKeyQueryStringAction, bool) { + return nil, false +} + +// AsDeliveryRuleAction is the BasicDeliveryRuleAction implementation for URLRedirectAction. +func (ura URLRedirectAction) AsDeliveryRuleAction() (*DeliveryRuleAction, bool) { + return nil, false +} + +// AsBasicDeliveryRuleAction is the BasicDeliveryRuleAction implementation for URLRedirectAction. +func (ura URLRedirectAction) AsBasicDeliveryRuleAction() (BasicDeliveryRuleAction, bool) { + return &ura, true +} + +// URLRedirectActionParameters defines the parameters for the url redirect action. +type URLRedirectActionParameters struct { + OdataType *string `json:"@odata.type,omitempty"` + // RedirectType - The redirect type the rule will use when redirecting traffic. Possible values include: 'Moved', 'Found', 'TemporaryRedirect', 'PermanentRedirect' + RedirectType RedirectType `json:"redirectType,omitempty"` + // DestinationProtocol - Protocol to use for the redirect. The default value is MatchRequest. Possible values include: 'DestinationProtocolMatchRequest', 'DestinationProtocolHTTP', 'DestinationProtocolHTTPS' + DestinationProtocol DestinationProtocol `json:"destinationProtocol,omitempty"` + // CustomPath - The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path. + CustomPath *string `json:"customPath,omitempty"` + // CustomHostname - Host to redirect. Leave empty to use the incoming host as the destination host. + CustomHostname *string `json:"customHostname,omitempty"` + // CustomQueryString - The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in = format. ? and & will be added automatically so do not include them. + CustomQueryString *string `json:"customQueryString,omitempty"` + // CustomFragment - Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #. + CustomFragment *string `json:"customFragment,omitempty"` +} + +// URLRewriteAction defines the url rewrite action for the delivery rule. +type URLRewriteAction struct { + // Parameters - Defines the parameters for the action. + Parameters *URLRewriteActionParameters `json:"parameters,omitempty"` + // Name - Possible values include: 'NameDeliveryRuleAction', 'NameURLRedirect', 'NameURLSigning', 'NameOriginGroupOverride', 'NameURLRewrite', 'NameModifyRequestHeader', 'NameModifyResponseHeader', 'NameCacheExpiration', 'NameCacheKeyQueryString' + Name NameBasicDeliveryRuleAction `json:"name,omitempty"` +} + +// MarshalJSON is the custom marshaler for URLRewriteAction. +func (ura URLRewriteAction) MarshalJSON() ([]byte, error) { + ura.Name = NameURLRewrite + objectMap := make(map[string]interface{}) + if ura.Parameters != nil { + objectMap["parameters"] = ura.Parameters + } + if ura.Name != "" { + objectMap["name"] = ura.Name + } + return json.Marshal(objectMap) +} + +// AsURLRedirectAction is the BasicDeliveryRuleAction implementation for URLRewriteAction. +func (ura URLRewriteAction) AsURLRedirectAction() (*URLRedirectAction, bool) { + return nil, false +} + +// AsURLSigningAction is the BasicDeliveryRuleAction implementation for URLRewriteAction. +func (ura URLRewriteAction) AsURLSigningAction() (*URLSigningAction, bool) { + return nil, false +} + +// AsOriginGroupOverrideAction is the BasicDeliveryRuleAction implementation for URLRewriteAction. +func (ura URLRewriteAction) AsOriginGroupOverrideAction() (*OriginGroupOverrideAction, bool) { + return nil, false +} + +// AsURLRewriteAction is the BasicDeliveryRuleAction implementation for URLRewriteAction. +func (ura URLRewriteAction) AsURLRewriteAction() (*URLRewriteAction, bool) { + return &ura, true +} + +// AsDeliveryRuleRequestHeaderAction is the BasicDeliveryRuleAction implementation for URLRewriteAction. +func (ura URLRewriteAction) AsDeliveryRuleRequestHeaderAction() (*DeliveryRuleRequestHeaderAction, bool) { + return nil, false +} + +// AsDeliveryRuleResponseHeaderAction is the BasicDeliveryRuleAction implementation for URLRewriteAction. +func (ura URLRewriteAction) AsDeliveryRuleResponseHeaderAction() (*DeliveryRuleResponseHeaderAction, bool) { + return nil, false +} + +// AsDeliveryRuleCacheExpirationAction is the BasicDeliveryRuleAction implementation for URLRewriteAction. +func (ura URLRewriteAction) AsDeliveryRuleCacheExpirationAction() (*DeliveryRuleCacheExpirationAction, bool) { + return nil, false +} + +// AsDeliveryRuleCacheKeyQueryStringAction is the BasicDeliveryRuleAction implementation for URLRewriteAction. +func (ura URLRewriteAction) AsDeliveryRuleCacheKeyQueryStringAction() (*DeliveryRuleCacheKeyQueryStringAction, bool) { + return nil, false +} + +// AsDeliveryRuleAction is the BasicDeliveryRuleAction implementation for URLRewriteAction. +func (ura URLRewriteAction) AsDeliveryRuleAction() (*DeliveryRuleAction, bool) { + return nil, false +} + +// AsBasicDeliveryRuleAction is the BasicDeliveryRuleAction implementation for URLRewriteAction. +func (ura URLRewriteAction) AsBasicDeliveryRuleAction() (BasicDeliveryRuleAction, bool) { + return &ura, true +} + +// URLRewriteActionParameters defines the parameters for the url rewrite action. +type URLRewriteActionParameters struct { + OdataType *string `json:"@odata.type,omitempty"` + // SourcePattern - define a request URI pattern that identifies the type of requests that may be rewritten. If value is blank, all strings are matched. + SourcePattern *string `json:"sourcePattern,omitempty"` + // Destination - Define the relative URL to which the above requests will be rewritten by. + Destination *string `json:"destination,omitempty"` + // PreserveUnmatchedPath - Whether to preserve unmatched path. Default value is true. + PreserveUnmatchedPath *bool `json:"preserveUnmatchedPath,omitempty"` +} + +// URLSigningAction defines the url signing action for the delivery rule. +type URLSigningAction struct { + // Parameters - Defines the parameters for the action. + Parameters *URLSigningActionParameters `json:"parameters,omitempty"` + // Name - Possible values include: 'NameDeliveryRuleAction', 'NameURLRedirect', 'NameURLSigning', 'NameOriginGroupOverride', 'NameURLRewrite', 'NameModifyRequestHeader', 'NameModifyResponseHeader', 'NameCacheExpiration', 'NameCacheKeyQueryString' + Name NameBasicDeliveryRuleAction `json:"name,omitempty"` +} + +// MarshalJSON is the custom marshaler for URLSigningAction. +func (usa URLSigningAction) MarshalJSON() ([]byte, error) { + usa.Name = NameURLSigning + objectMap := make(map[string]interface{}) + if usa.Parameters != nil { + objectMap["parameters"] = usa.Parameters + } + if usa.Name != "" { + objectMap["name"] = usa.Name + } + return json.Marshal(objectMap) +} + +// AsURLRedirectAction is the BasicDeliveryRuleAction implementation for URLSigningAction. +func (usa URLSigningAction) AsURLRedirectAction() (*URLRedirectAction, bool) { + return nil, false +} + +// AsURLSigningAction is the BasicDeliveryRuleAction implementation for URLSigningAction. +func (usa URLSigningAction) AsURLSigningAction() (*URLSigningAction, bool) { + return &usa, true +} + +// AsOriginGroupOverrideAction is the BasicDeliveryRuleAction implementation for URLSigningAction. +func (usa URLSigningAction) AsOriginGroupOverrideAction() (*OriginGroupOverrideAction, bool) { + return nil, false +} + +// AsURLRewriteAction is the BasicDeliveryRuleAction implementation for URLSigningAction. +func (usa URLSigningAction) AsURLRewriteAction() (*URLRewriteAction, bool) { + return nil, false +} + +// AsDeliveryRuleRequestHeaderAction is the BasicDeliveryRuleAction implementation for URLSigningAction. +func (usa URLSigningAction) AsDeliveryRuleRequestHeaderAction() (*DeliveryRuleRequestHeaderAction, bool) { + return nil, false +} + +// AsDeliveryRuleResponseHeaderAction is the BasicDeliveryRuleAction implementation for URLSigningAction. +func (usa URLSigningAction) AsDeliveryRuleResponseHeaderAction() (*DeliveryRuleResponseHeaderAction, bool) { + return nil, false +} + +// AsDeliveryRuleCacheExpirationAction is the BasicDeliveryRuleAction implementation for URLSigningAction. +func (usa URLSigningAction) AsDeliveryRuleCacheExpirationAction() (*DeliveryRuleCacheExpirationAction, bool) { + return nil, false +} + +// AsDeliveryRuleCacheKeyQueryStringAction is the BasicDeliveryRuleAction implementation for URLSigningAction. +func (usa URLSigningAction) AsDeliveryRuleCacheKeyQueryStringAction() (*DeliveryRuleCacheKeyQueryStringAction, bool) { + return nil, false +} + +// AsDeliveryRuleAction is the BasicDeliveryRuleAction implementation for URLSigningAction. +func (usa URLSigningAction) AsDeliveryRuleAction() (*DeliveryRuleAction, bool) { + return nil, false +} + +// AsBasicDeliveryRuleAction is the BasicDeliveryRuleAction implementation for URLSigningAction. +func (usa URLSigningAction) AsBasicDeliveryRuleAction() (BasicDeliveryRuleAction, bool) { + return &usa, true +} + +// URLSigningActionParameters defines the parameters for the Url Signing action. +type URLSigningActionParameters struct { + OdataType *string `json:"@odata.type,omitempty"` + // Algorithm - Algorithm to use for URL signing. Possible values include: 'SHA256' + Algorithm Algorithm `json:"algorithm,omitempty"` + // ParameterNameOverride - Defines which query string parameters in the url to be considered for expires, key id etc. + ParameterNameOverride *[]URLSigningParamIdentifier `json:"parameterNameOverride,omitempty"` +} + +// URLSigningKey url signing key +type URLSigningKey struct { + // KeyID - Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash. + KeyID *string `json:"keyId,omitempty"` + // KeySourceParameters - Defines the parameters for using customer key vault for Url Signing Key. + KeySourceParameters *KeyVaultSigningKeyParameters `json:"keySourceParameters,omitempty"` +} + +// URLSigningKeyParameters url signing key parameters +type URLSigningKeyParameters struct { + // KeyID - Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash. + KeyID *string `json:"keyId,omitempty"` + // SecretSource - Resource reference to the KV secret + SecretSource *ResourceReference `json:"secretSource,omitempty"` + // SecretVersion - Version of the secret to be used + SecretVersion *string `json:"secretVersion,omitempty"` + // Type - Possible values include: 'TypeSecretParameters', 'TypeURLSigningKey' + Type TypeBasicSecretParameters `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for URLSigningKeyParameters. +func (uskp URLSigningKeyParameters) MarshalJSON() ([]byte, error) { + uskp.Type = TypeURLSigningKey + objectMap := make(map[string]interface{}) + if uskp.KeyID != nil { + objectMap["keyId"] = uskp.KeyID + } + if uskp.SecretSource != nil { + objectMap["secretSource"] = uskp.SecretSource + } + if uskp.SecretVersion != nil { + objectMap["secretVersion"] = uskp.SecretVersion + } + if uskp.Type != "" { + objectMap["type"] = uskp.Type + } + return json.Marshal(objectMap) +} + +// AsURLSigningKeyParameters is the BasicSecretParameters implementation for URLSigningKeyParameters. +func (uskp URLSigningKeyParameters) AsURLSigningKeyParameters() (*URLSigningKeyParameters, bool) { + return &uskp, true +} + +// AsSecretParameters is the BasicSecretParameters implementation for URLSigningKeyParameters. +func (uskp URLSigningKeyParameters) AsSecretParameters() (*SecretParameters, bool) { + return nil, false +} + +// AsBasicSecretParameters is the BasicSecretParameters implementation for URLSigningKeyParameters. +func (uskp URLSigningKeyParameters) AsBasicSecretParameters() (BasicSecretParameters, bool) { + return &uskp, true +} + +// URLSigningParamIdentifier defines how to identify a parameter for a specific purpose e.g. expires +type URLSigningParamIdentifier struct { + // ParamIndicator - Indicates the purpose of the parameter. Possible values include: 'Expires', 'KeyID', 'Signature' + ParamIndicator ParamIndicator `json:"paramIndicator,omitempty"` + // ParamName - Parameter name + ParamName *string `json:"paramName,omitempty"` +} + +// Usage describes resource usage. +type Usage struct { + // ID - READ-ONLY; Resource identifier. + ID *string `json:"id,omitempty"` + // Unit - An enum describing the unit of measurement. + Unit *string `json:"unit,omitempty"` + // CurrentValue - The current value of the usage. + CurrentValue *int64 `json:"currentValue,omitempty"` + // Limit - The limit of usage. + Limit *int64 `json:"limit,omitempty"` + // Name - The name of the type of usage. + Name *UsageName `json:"name,omitempty"` +} + +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if u.Unit != nil { + objectMap["unit"] = u.Unit + } + if u.CurrentValue != nil { + objectMap["currentValue"] = u.CurrentValue + } + if u.Limit != nil { + objectMap["limit"] = u.Limit + } + if u.Name != nil { + objectMap["name"] = u.Name + } + return json.Marshal(objectMap) +} + +// UsageName the usage names. +type UsageName struct { + // Value - A string describing the resource name. + Value *string `json:"value,omitempty"` + // LocalizedValue - A localized string describing the resource name. + LocalizedValue *string `json:"localizedValue,omitempty"` +} + +// UsagesListResult the list usages operation response. +type UsagesListResult struct { + autorest.Response `json:"-"` + // Value - The list of resource usages. + Value *[]Usage `json:"value,omitempty"` + // NextLink - URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// UsagesListResultIterator provides access to a complete listing of Usage values. +type UsagesListResultIterator struct { + i int + page UsagesListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *UsagesListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/UsagesListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *UsagesListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter UsagesListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter UsagesListResultIterator) Response() UsagesListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter UsagesListResultIterator) Value() Usage { + if !iter.page.NotDone() { + return Usage{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the UsagesListResultIterator type. +func NewUsagesListResultIterator(page UsagesListResultPage) UsagesListResultIterator { + return UsagesListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (ulr UsagesListResult) IsEmpty() bool { + return ulr.Value == nil || len(*ulr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (ulr UsagesListResult) hasNextLink() bool { + return ulr.NextLink != nil && len(*ulr.NextLink) != 0 +} + +// usagesListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (ulr UsagesListResult) usagesListResultPreparer(ctx context.Context) (*http.Request, error) { + if !ulr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(ulr.NextLink))) +} + +// UsagesListResultPage contains a page of Usage values. +type UsagesListResultPage struct { + fn func(context.Context, UsagesListResult) (UsagesListResult, error) + ulr UsagesListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *UsagesListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/UsagesListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.ulr) + if err != nil { + return err + } + page.ulr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *UsagesListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page UsagesListResultPage) NotDone() bool { + return !page.ulr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page UsagesListResultPage) Response() UsagesListResult { + return page.ulr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page UsagesListResultPage) Values() []Usage { + if page.ulr.IsEmpty() { + return nil + } + return *page.ulr.Value +} + +// Creates a new instance of the UsagesListResultPage type. +func NewUsagesListResultPage(cur UsagesListResult, getNextPage func(context.Context, UsagesListResult) (UsagesListResult, error)) UsagesListResultPage { + return UsagesListResultPage{ + fn: getNextPage, + ulr: cur, + } +} + +// UserManagedHTTPSParameters defines the certificate source parameters using user's keyvault certificate +// for enabling SSL. +type UserManagedHTTPSParameters struct { + // CertificateSourceParameters - Defines the certificate source parameters using user's keyvault certificate for enabling SSL. + CertificateSourceParameters *KeyVaultCertificateSourceParameters `json:"certificateSourceParameters,omitempty"` + // ProtocolType - Defines the TLS extension protocol that is used for secure delivery. Possible values include: 'ServerNameIndication', 'IPBased' + ProtocolType ProtocolType `json:"protocolType,omitempty"` + // MinimumTLSVersion - TLS protocol version that will be used for Https. Possible values include: 'MinimumTLSVersionNone', 'MinimumTLSVersionTLS10', 'MinimumTLSVersionTLS12' + MinimumTLSVersion MinimumTLSVersion `json:"minimumTlsVersion,omitempty"` + // CertificateSource - Possible values include: 'CertificateSourceCustomDomainHTTPSParameters', 'CertificateSourceCdn', 'CertificateSourceAzureKeyVault' + CertificateSource CertificateSource `json:"certificateSource,omitempty"` +} + +// MarshalJSON is the custom marshaler for UserManagedHTTPSParameters. +func (umhp UserManagedHTTPSParameters) MarshalJSON() ([]byte, error) { + umhp.CertificateSource = CertificateSourceAzureKeyVault + objectMap := make(map[string]interface{}) + if umhp.CertificateSourceParameters != nil { + objectMap["certificateSourceParameters"] = umhp.CertificateSourceParameters + } + if umhp.ProtocolType != "" { + objectMap["protocolType"] = umhp.ProtocolType + } + if umhp.MinimumTLSVersion != "" { + objectMap["minimumTlsVersion"] = umhp.MinimumTLSVersion + } + if umhp.CertificateSource != "" { + objectMap["certificateSource"] = umhp.CertificateSource + } + return json.Marshal(objectMap) +} + +// AsManagedHTTPSParameters is the BasicCustomDomainHTTPSParameters implementation for UserManagedHTTPSParameters. +func (umhp UserManagedHTTPSParameters) AsManagedHTTPSParameters() (*ManagedHTTPSParameters, bool) { + return nil, false +} + +// AsUserManagedHTTPSParameters is the BasicCustomDomainHTTPSParameters implementation for UserManagedHTTPSParameters. +func (umhp UserManagedHTTPSParameters) AsUserManagedHTTPSParameters() (*UserManagedHTTPSParameters, bool) { + return &umhp, true +} + +// AsCustomDomainHTTPSParameters is the BasicCustomDomainHTTPSParameters implementation for UserManagedHTTPSParameters. +func (umhp UserManagedHTTPSParameters) AsCustomDomainHTTPSParameters() (*CustomDomainHTTPSParameters, bool) { + return nil, false +} + +// AsBasicCustomDomainHTTPSParameters is the BasicCustomDomainHTTPSParameters implementation for UserManagedHTTPSParameters. +func (umhp UserManagedHTTPSParameters) AsBasicCustomDomainHTTPSParameters() (BasicCustomDomainHTTPSParameters, bool) { + return &umhp, true +} + +// ValidateCustomDomainInput input of the custom domain to be validated for DNS mapping. +type ValidateCustomDomainInput struct { + // HostName - The host name of the custom domain. Must be a domain name. + HostName *string `json:"hostName,omitempty"` +} + +// ValidateCustomDomainOutput output of custom domain validation. +type ValidateCustomDomainOutput struct { + autorest.Response `json:"-"` + // CustomDomainValidated - READ-ONLY; Indicates whether the custom domain is valid or not. + CustomDomainValidated *bool `json:"customDomainValidated,omitempty"` + // Reason - READ-ONLY; The reason why the custom domain is not valid. + Reason *string `json:"reason,omitempty"` + // Message - READ-ONLY; Error message describing why the custom domain is not valid. + Message *string `json:"message,omitempty"` +} + +// ValidateProbeInput input of the validate probe API. +type ValidateProbeInput struct { + // ProbeURL - The probe URL to validate. + ProbeURL *string `json:"probeURL,omitempty"` +} + +// ValidateProbeOutput output of the validate probe API. +type ValidateProbeOutput struct { + autorest.Response `json:"-"` + // IsValid - READ-ONLY; Indicates whether the probe URL is accepted or not. + IsValid *bool `json:"isValid,omitempty"` + // ErrorCode - READ-ONLY; Specifies the error code when the probe url is not accepted. + ErrorCode *string `json:"errorCode,omitempty"` + // Message - READ-ONLY; The detailed error message describing why the probe URL is not accepted. + Message *string `json:"message,omitempty"` +} + +// ValidateSecretInput input of the secret to be validated. +type ValidateSecretInput struct { + // SecretSource - The secret source. + SecretSource *ResourceReference `json:"secretSource,omitempty"` + // SecretType - The secret type. Possible values include: 'ValidateSecretTypeURLSigningKey', 'ValidateSecretTypeManagedCertificate', 'ValidateSecretTypeCustomerCertificate' + SecretType ValidateSecretType `json:"secretType,omitempty"` +} + +// ValidateSecretOutput output of the validated secret. +type ValidateSecretOutput struct { + autorest.Response `json:"-"` + // Status - The validation status. Possible values include: 'Valid', 'Invalid', 'AccessDenied', 'CertificateExpired' + Status Status `json:"status,omitempty"` + // Message - Detailed error message + Message *string `json:"message,omitempty"` +} + +// ValidationToken the validation token. +type ValidationToken struct { + autorest.Response `json:"-"` + // Token - READ-ONLY + Token *string `json:"token,omitempty"` +} + +// WafMetricsResponse waf Metrics Response +type WafMetricsResponse struct { + autorest.Response `json:"-"` + DateTimeBegin *date.Time `json:"dateTimeBegin,omitempty"` + DateTimeEnd *date.Time `json:"dateTimeEnd,omitempty"` + // Granularity - Possible values include: 'Granularity1PT5M', 'Granularity1PT1H', 'Granularity1P1D' + Granularity Granularity1 `json:"granularity,omitempty"` + Series *[]WafMetricsResponseSeriesItem `json:"series,omitempty"` +} + +// WafMetricsResponseSeriesItem ... +type WafMetricsResponseSeriesItem struct { + Metric *string `json:"metric,omitempty"` + // Unit - Possible values include: 'Unit1Count' + Unit Unit1 `json:"unit,omitempty"` + Groups *[]WafMetricsResponseSeriesItemGroupsItem `json:"groups,omitempty"` + Data *[]WafMetricsResponseSeriesItemDataItem `json:"data,omitempty"` +} + +// WafMetricsResponseSeriesItemDataItem ... +type WafMetricsResponseSeriesItemDataItem struct { + DateTime *date.Time `json:"dateTime,omitempty"` + Value *float64 `json:"value,omitempty"` +} + +// WafMetricsResponseSeriesItemGroupsItem ... +type WafMetricsResponseSeriesItemGroupsItem struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` +} + +// WafRankingsResponse waf Rankings Response +type WafRankingsResponse struct { + autorest.Response `json:"-"` + DateTimeBegin *date.Time `json:"dateTimeBegin,omitempty"` + DateTimeEnd *date.Time `json:"dateTimeEnd,omitempty"` + Groups *[]string `json:"groups,omitempty"` + Data *[]WafRankingsResponseDataItem `json:"data,omitempty"` +} + +// WafRankingsResponseDataItem ... +type WafRankingsResponseDataItem struct { + GroupValues *[]string `json:"groupValues,omitempty"` + Metrics *[]WafRankingsResponseDataItemMetricsItem `json:"metrics,omitempty"` +} + +// WafRankingsResponseDataItemMetricsItem ... +type WafRankingsResponseDataItemMetricsItem struct { + Metric *string `json:"metric,omitempty"` + Value *int64 `json:"value,omitempty"` + Percentage *float64 `json:"percentage,omitempty"` +} + +// WebApplicationFirewallPolicy defines web application firewall policy for Azure CDN. +type WebApplicationFirewallPolicy struct { + autorest.Response `json:"-"` + // WebApplicationFirewallPolicyProperties - Properties of the web application firewall policy. + *WebApplicationFirewallPolicyProperties `json:"properties,omitempty"` + // Etag - Gets a unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Sku - The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy. + Sku *Sku `json:"sku,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // SystemData - READ-ONLY + SystemData *SystemData `json:"systemData,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for WebApplicationFirewallPolicy. +func (wafp WebApplicationFirewallPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if wafp.WebApplicationFirewallPolicyProperties != nil { + objectMap["properties"] = wafp.WebApplicationFirewallPolicyProperties + } + if wafp.Etag != nil { + objectMap["etag"] = wafp.Etag + } + if wafp.Sku != nil { + objectMap["sku"] = wafp.Sku + } + if wafp.Location != nil { + objectMap["location"] = wafp.Location + } + if wafp.Tags != nil { + objectMap["tags"] = wafp.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for WebApplicationFirewallPolicy struct. +func (wafp *WebApplicationFirewallPolicy) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var webApplicationFirewallPolicyProperties WebApplicationFirewallPolicyProperties + err = json.Unmarshal(*v, &webApplicationFirewallPolicyProperties) + if err != nil { + return err + } + wafp.WebApplicationFirewallPolicyProperties = &webApplicationFirewallPolicyProperties + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + wafp.Etag = &etag + } + case "sku": + if v != nil { + var sku Sku + err = json.Unmarshal(*v, &sku) + if err != nil { + return err + } + wafp.Sku = &sku + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + wafp.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + wafp.Tags = tags + } + case "systemData": + if v != nil { + var systemData SystemData + err = json.Unmarshal(*v, &systemData) + if err != nil { + return err + } + wafp.SystemData = &systemData + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + wafp.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + wafp.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + wafp.Type = &typeVar + } + } + } + + return nil +} + +// WebApplicationFirewallPolicyList defines a list of WebApplicationFirewallPolicies for Azure CDN. It +// contains a list of WebApplicationFirewallPolicy objects and a URL link to get the next set of results. +type WebApplicationFirewallPolicyList struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of Azure CDN WebApplicationFirewallPolicies within a resource group. + Value *[]WebApplicationFirewallPolicy `json:"value,omitempty"` + // NextLink - URL to get the next set of WebApplicationFirewallPolicy objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for WebApplicationFirewallPolicyList. +func (wafpl WebApplicationFirewallPolicyList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if wafpl.NextLink != nil { + objectMap["nextLink"] = wafpl.NextLink + } + return json.Marshal(objectMap) +} + +// WebApplicationFirewallPolicyListIterator provides access to a complete listing of +// WebApplicationFirewallPolicy values. +type WebApplicationFirewallPolicyListIterator struct { + i int + page WebApplicationFirewallPolicyListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *WebApplicationFirewallPolicyListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WebApplicationFirewallPolicyListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *WebApplicationFirewallPolicyListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter WebApplicationFirewallPolicyListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter WebApplicationFirewallPolicyListIterator) Response() WebApplicationFirewallPolicyList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter WebApplicationFirewallPolicyListIterator) Value() WebApplicationFirewallPolicy { + if !iter.page.NotDone() { + return WebApplicationFirewallPolicy{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the WebApplicationFirewallPolicyListIterator type. +func NewWebApplicationFirewallPolicyListIterator(page WebApplicationFirewallPolicyListPage) WebApplicationFirewallPolicyListIterator { + return WebApplicationFirewallPolicyListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (wafpl WebApplicationFirewallPolicyList) IsEmpty() bool { + return wafpl.Value == nil || len(*wafpl.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (wafpl WebApplicationFirewallPolicyList) hasNextLink() bool { + return wafpl.NextLink != nil && len(*wafpl.NextLink) != 0 +} + +// webApplicationFirewallPolicyListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (wafpl WebApplicationFirewallPolicyList) webApplicationFirewallPolicyListPreparer(ctx context.Context) (*http.Request, error) { + if !wafpl.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(wafpl.NextLink))) +} + +// WebApplicationFirewallPolicyListPage contains a page of WebApplicationFirewallPolicy values. +type WebApplicationFirewallPolicyListPage struct { + fn func(context.Context, WebApplicationFirewallPolicyList) (WebApplicationFirewallPolicyList, error) + wafpl WebApplicationFirewallPolicyList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *WebApplicationFirewallPolicyListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WebApplicationFirewallPolicyListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.wafpl) + if err != nil { + return err + } + page.wafpl = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *WebApplicationFirewallPolicyListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page WebApplicationFirewallPolicyListPage) NotDone() bool { + return !page.wafpl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page WebApplicationFirewallPolicyListPage) Response() WebApplicationFirewallPolicyList { + return page.wafpl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page WebApplicationFirewallPolicyListPage) Values() []WebApplicationFirewallPolicy { + if page.wafpl.IsEmpty() { + return nil + } + return *page.wafpl.Value +} + +// Creates a new instance of the WebApplicationFirewallPolicyListPage type. +func NewWebApplicationFirewallPolicyListPage(cur WebApplicationFirewallPolicyList, getNextPage func(context.Context, WebApplicationFirewallPolicyList) (WebApplicationFirewallPolicyList, error)) WebApplicationFirewallPolicyListPage { + return WebApplicationFirewallPolicyListPage{ + fn: getNextPage, + wafpl: cur, + } +} + +// WebApplicationFirewallPolicyPatchParameters properties required to update a +// CdnWebApplicationFirewallPolicy. +type WebApplicationFirewallPolicyPatchParameters struct { + // Tags - CdnWebApplicationFirewallPolicy tags + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for WebApplicationFirewallPolicyPatchParameters. +func (wafppp WebApplicationFirewallPolicyPatchParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if wafppp.Tags != nil { + objectMap["tags"] = wafppp.Tags + } + return json.Marshal(objectMap) +} + +// WebApplicationFirewallPolicyProperties defines CDN web application firewall policy properties. +type WebApplicationFirewallPolicyProperties struct { + // PolicySettings - Describes policySettings for policy + PolicySettings *PolicySettings `json:"policySettings,omitempty"` + // RateLimitRules - Describes rate limit rules inside the policy. + RateLimitRules *RateLimitRuleList `json:"rateLimitRules,omitempty"` + // CustomRules - Describes custom rules inside the policy. + CustomRules *CustomRuleList `json:"customRules,omitempty"` + // ManagedRules - Describes managed rules inside the policy. + ManagedRules *ManagedRuleSetList `json:"managedRules,omitempty"` + // EndpointLinks - READ-ONLY; Describes Azure CDN endpoints associated with this Web Application Firewall policy. + EndpointLinks *[]EndpointType `json:"endpointLinks,omitempty"` + // ProvisioningState - READ-ONLY; Provisioning state of the WebApplicationFirewallPolicy. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // ResourceState - READ-ONLY; Possible values include: 'PolicyResourceStateCreating', 'PolicyResourceStateEnabling', 'PolicyResourceStateEnabled', 'PolicyResourceStateDisabling', 'PolicyResourceStateDisabled', 'PolicyResourceStateDeleting' + ResourceState PolicyResourceState `json:"resourceState,omitempty"` +} + +// MarshalJSON is the custom marshaler for WebApplicationFirewallPolicyProperties. +func (wafpp WebApplicationFirewallPolicyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if wafpp.PolicySettings != nil { + objectMap["policySettings"] = wafpp.PolicySettings + } + if wafpp.RateLimitRules != nil { + objectMap["rateLimitRules"] = wafpp.RateLimitRules + } + if wafpp.CustomRules != nil { + objectMap["customRules"] = wafpp.CustomRules + } + if wafpp.ManagedRules != nil { + objectMap["managedRules"] = wafpp.ManagedRules + } + return json.Marshal(objectMap) +} diff --git a/services/cdn/mgmt/2020-09-01/cdn/operations.go b/services/cdn/mgmt/2020-09-01/cdn/operations.go new file mode 100644 index 000000000000..dc745f4966b0 --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/operations.go @@ -0,0 +1,151 @@ +package cdn + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// OperationsClient is the cdn Management Client +type OperationsClient struct { + BaseClient +} + +// NewOperationsClient creates an instance of the OperationsClient client. +func NewOperationsClient(subscriptionID string, subscriptionID1 string) OperationsClient { + return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID, subscriptionID1) +} + +// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) OperationsClient { + return OperationsClient{NewWithBaseURI(baseURI, subscriptionID, subscriptionID1)} +} + +// List lists all of the available CDN REST API operations. +func (client OperationsClient) List(ctx context.Context) (result OperationsListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List") + defer func() { + sc := -1 + if result.olr.Response.Response != nil { + sc = result.olr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OperationsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.olr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.OperationsClient", "List", resp, "Failure sending request") + return + } + + result.olr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OperationsClient", "List", resp, "Failure responding to request") + return + } + if result.olr.hasNextLink() && result.olr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPath("/providers/Microsoft.Cdn/operations"), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client OperationsClient) ListResponder(resp *http.Response) (result OperationsListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client OperationsClient) listNextResults(ctx context.Context, lastResults OperationsListResult) (result OperationsListResult, err error) { + req, err := lastResults.operationsListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cdn.OperationsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cdn.OperationsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client OperationsClient) ListComplete(ctx context.Context) (result OperationsListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} diff --git a/services/cdn/mgmt/2020-09-01/cdn/origingroups.go b/services/cdn/mgmt/2020-09-01/cdn/origingroups.go new file mode 100644 index 000000000000..c455f3ae54e2 --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/origingroups.go @@ -0,0 +1,525 @@ +package cdn + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// OriginGroupsClient is the cdn Management Client +type OriginGroupsClient struct { + BaseClient +} + +// NewOriginGroupsClient creates an instance of the OriginGroupsClient client. +func NewOriginGroupsClient(subscriptionID string, subscriptionID1 string) OriginGroupsClient { + return NewOriginGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID, subscriptionID1) +} + +// NewOriginGroupsClientWithBaseURI creates an instance of the OriginGroupsClient client using a custom endpoint. Use +// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewOriginGroupsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) OriginGroupsClient { + return OriginGroupsClient{NewWithBaseURI(baseURI, subscriptionID, subscriptionID1)} +} + +// Create creates a new origin group within the specified endpoint. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +// originGroupName - name of the origin group which is unique within the endpoint. +// originGroup - origin group properties +func (client OriginGroupsClient) Create(ctx context.Context, resourceGroupName string, profileName string, endpointName string, originGroupName string, originGroup OriginGroup) (result OriginGroupsCreateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OriginGroupsClient.Create") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.OriginGroupsClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, profileName, endpointName, originGroupName, originGroup) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginGroupsClient", "Create", nil, "Failure preparing request") + return + } + + result, err = client.CreateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginGroupsClient", "Create", result.Response(), "Failure sending request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client OriginGroupsClient) CreatePreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, originGroupName string, originGroup OriginGroup) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "originGroupName": autorest.Encode("path", originGroupName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/originGroups/{originGroupName}", pathParameters), + autorest.WithJSON(originGroup), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client OriginGroupsClient) CreateSender(req *http.Request) (future OriginGroupsCreateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client OriginGroupsClient) CreateResponder(resp *http.Response) (result OriginGroup, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes an existing origin group within an endpoint. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +// originGroupName - name of the origin group which is unique within the endpoint. +func (client OriginGroupsClient) Delete(ctx context.Context, resourceGroupName string, profileName string, endpointName string, originGroupName string) (result OriginGroupsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OriginGroupsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.OriginGroupsClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, profileName, endpointName, originGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginGroupsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginGroupsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client OriginGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, originGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "originGroupName": autorest.Encode("path", originGroupName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/originGroups/{originGroupName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client OriginGroupsClient) DeleteSender(req *http.Request) (future OriginGroupsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client OriginGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets an existing origin group within an endpoint. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +// originGroupName - name of the origin group which is unique within the endpoint. +func (client OriginGroupsClient) Get(ctx context.Context, resourceGroupName string, profileName string, endpointName string, originGroupName string) (result OriginGroup, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OriginGroupsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.OriginGroupsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, profileName, endpointName, originGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginGroupsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.OriginGroupsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginGroupsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client OriginGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, originGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "originGroupName": autorest.Encode("path", originGroupName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/originGroups/{originGroupName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client OriginGroupsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client OriginGroupsClient) GetResponder(resp *http.Response) (result OriginGroup, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByEndpoint lists all of the existing origin groups within an endpoint. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +func (client OriginGroupsClient) ListByEndpoint(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result OriginGroupListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OriginGroupsClient.ListByEndpoint") + defer func() { + sc := -1 + if result.oglr.Response.Response != nil { + sc = result.oglr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.OriginGroupsClient", "ListByEndpoint", err.Error()) + } + + result.fn = client.listByEndpointNextResults + req, err := client.ListByEndpointPreparer(ctx, resourceGroupName, profileName, endpointName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginGroupsClient", "ListByEndpoint", nil, "Failure preparing request") + return + } + + resp, err := client.ListByEndpointSender(req) + if err != nil { + result.oglr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.OriginGroupsClient", "ListByEndpoint", resp, "Failure sending request") + return + } + + result.oglr, err = client.ListByEndpointResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginGroupsClient", "ListByEndpoint", resp, "Failure responding to request") + return + } + if result.oglr.hasNextLink() && result.oglr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByEndpointPreparer prepares the ListByEndpoint request. +func (client OriginGroupsClient) ListByEndpointPreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/originGroups", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByEndpointSender sends the ListByEndpoint request. The method will close the +// http.Response Body if it receives an error. +func (client OriginGroupsClient) ListByEndpointSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByEndpointResponder handles the response to the ListByEndpoint request. The method always +// closes the http.Response Body. +func (client OriginGroupsClient) ListByEndpointResponder(resp *http.Response) (result OriginGroupListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByEndpointNextResults retrieves the next set of results, if any. +func (client OriginGroupsClient) listByEndpointNextResults(ctx context.Context, lastResults OriginGroupListResult) (result OriginGroupListResult, err error) { + req, err := lastResults.originGroupListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cdn.OriginGroupsClient", "listByEndpointNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByEndpointSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cdn.OriginGroupsClient", "listByEndpointNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByEndpointResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginGroupsClient", "listByEndpointNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByEndpointComplete enumerates all values, automatically crossing page boundaries as required. +func (client OriginGroupsClient) ListByEndpointComplete(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result OriginGroupListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OriginGroupsClient.ListByEndpoint") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByEndpoint(ctx, resourceGroupName, profileName, endpointName) + return +} + +// Update updates an existing origin group within an endpoint. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +// originGroupName - name of the origin group which is unique within the endpoint. +// originGroupUpdateProperties - origin group properties +func (client OriginGroupsClient) Update(ctx context.Context, resourceGroupName string, profileName string, endpointName string, originGroupName string, originGroupUpdateProperties OriginGroupUpdateParameters) (result OriginGroupsUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OriginGroupsClient.Update") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.OriginGroupsClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, profileName, endpointName, originGroupName, originGroupUpdateProperties) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginGroupsClient", "Update", nil, "Failure preparing request") + return + } + + result, err = client.UpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginGroupsClient", "Update", result.Response(), "Failure sending request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client OriginGroupsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, originGroupName string, originGroupUpdateProperties OriginGroupUpdateParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "originGroupName": autorest.Encode("path", originGroupName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/originGroups/{originGroupName}", pathParameters), + autorest.WithJSON(originGroupUpdateProperties), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client OriginGroupsClient) UpdateSender(req *http.Request) (future OriginGroupsUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client OriginGroupsClient) UpdateResponder(resp *http.Response) (result OriginGroup, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/cdn/mgmt/2020-09-01/cdn/origins.go b/services/cdn/mgmt/2020-09-01/cdn/origins.go new file mode 100644 index 000000000000..caea549fbe7e --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/origins.go @@ -0,0 +1,525 @@ +package cdn + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// OriginsClient is the cdn Management Client +type OriginsClient struct { + BaseClient +} + +// NewOriginsClient creates an instance of the OriginsClient client. +func NewOriginsClient(subscriptionID string, subscriptionID1 string) OriginsClient { + return NewOriginsClientWithBaseURI(DefaultBaseURI, subscriptionID, subscriptionID1) +} + +// NewOriginsClientWithBaseURI creates an instance of the OriginsClient client using a custom endpoint. Use this when +// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewOriginsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) OriginsClient { + return OriginsClient{NewWithBaseURI(baseURI, subscriptionID, subscriptionID1)} +} + +// Create creates a new origin within the specified endpoint. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +// originName - name of the origin that is unique within the endpoint. +// origin - origin properties +func (client OriginsClient) Create(ctx context.Context, resourceGroupName string, profileName string, endpointName string, originName string, origin Origin) (result OriginsCreateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OriginsClient.Create") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.OriginsClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, profileName, endpointName, originName, origin) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "Create", nil, "Failure preparing request") + return + } + + result, err = client.CreateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "Create", result.Response(), "Failure sending request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client OriginsClient) CreatePreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, originName string, origin Origin) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "originName": autorest.Encode("path", originName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/origins/{originName}", pathParameters), + autorest.WithJSON(origin), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client OriginsClient) CreateSender(req *http.Request) (future OriginsCreateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client OriginsClient) CreateResponder(resp *http.Response) (result Origin, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes an existing origin within an endpoint. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +// originName - name of the origin which is unique within the endpoint. +func (client OriginsClient) Delete(ctx context.Context, resourceGroupName string, profileName string, endpointName string, originName string) (result OriginsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OriginsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.OriginsClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, profileName, endpointName, originName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client OriginsClient) DeletePreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, originName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "originName": autorest.Encode("path", originName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/origins/{originName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client OriginsClient) DeleteSender(req *http.Request) (future OriginsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client OriginsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets an existing origin within an endpoint. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +// originName - name of the origin which is unique within the endpoint. +func (client OriginsClient) Get(ctx context.Context, resourceGroupName string, profileName string, endpointName string, originName string) (result Origin, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OriginsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.OriginsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, profileName, endpointName, originName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client OriginsClient) GetPreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, originName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "originName": autorest.Encode("path", originName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/origins/{originName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client OriginsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client OriginsClient) GetResponder(resp *http.Response) (result Origin, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByEndpoint lists all of the existing origins within an endpoint. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +func (client OriginsClient) ListByEndpoint(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result OriginListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OriginsClient.ListByEndpoint") + defer func() { + sc := -1 + if result.olr.Response.Response != nil { + sc = result.olr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.OriginsClient", "ListByEndpoint", err.Error()) + } + + result.fn = client.listByEndpointNextResults + req, err := client.ListByEndpointPreparer(ctx, resourceGroupName, profileName, endpointName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "ListByEndpoint", nil, "Failure preparing request") + return + } + + resp, err := client.ListByEndpointSender(req) + if err != nil { + result.olr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "ListByEndpoint", resp, "Failure sending request") + return + } + + result.olr, err = client.ListByEndpointResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "ListByEndpoint", resp, "Failure responding to request") + return + } + if result.olr.hasNextLink() && result.olr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByEndpointPreparer prepares the ListByEndpoint request. +func (client OriginsClient) ListByEndpointPreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/origins", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByEndpointSender sends the ListByEndpoint request. The method will close the +// http.Response Body if it receives an error. +func (client OriginsClient) ListByEndpointSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByEndpointResponder handles the response to the ListByEndpoint request. The method always +// closes the http.Response Body. +func (client OriginsClient) ListByEndpointResponder(resp *http.Response) (result OriginListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByEndpointNextResults retrieves the next set of results, if any. +func (client OriginsClient) listByEndpointNextResults(ctx context.Context, lastResults OriginListResult) (result OriginListResult, err error) { + req, err := lastResults.originListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cdn.OriginsClient", "listByEndpointNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByEndpointSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cdn.OriginsClient", "listByEndpointNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByEndpointResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "listByEndpointNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByEndpointComplete enumerates all values, automatically crossing page boundaries as required. +func (client OriginsClient) ListByEndpointComplete(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result OriginListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OriginsClient.ListByEndpoint") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByEndpoint(ctx, resourceGroupName, profileName, endpointName) + return +} + +// Update updates an existing origin within an endpoint. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +// originName - name of the origin which is unique within the endpoint. +// originUpdateProperties - origin properties +func (client OriginsClient) Update(ctx context.Context, resourceGroupName string, profileName string, endpointName string, originName string, originUpdateProperties OriginUpdateParameters) (result OriginsUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OriginsClient.Update") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.OriginsClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, profileName, endpointName, originName, originUpdateProperties) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "Update", nil, "Failure preparing request") + return + } + + result, err = client.UpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.OriginsClient", "Update", result.Response(), "Failure sending request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client OriginsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, originName string, originUpdateProperties OriginUpdateParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "originName": autorest.Encode("path", originName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/origins/{originName}", pathParameters), + autorest.WithJSON(originUpdateProperties), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client OriginsClient) UpdateSender(req *http.Request) (future OriginsUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client OriginsClient) UpdateResponder(resp *http.Response) (result Origin, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/cdn/mgmt/2020-09-01/cdn/policies.go b/services/cdn/mgmt/2020-09-01/cdn/policies.go new file mode 100644 index 000000000000..8b4416a99171 --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/policies.go @@ -0,0 +1,523 @@ +package cdn + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// PoliciesClient is the cdn Management Client +type PoliciesClient struct { + BaseClient +} + +// NewPoliciesClient creates an instance of the PoliciesClient client. +func NewPoliciesClient(subscriptionID string, subscriptionID1 string) PoliciesClient { + return NewPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID, subscriptionID1) +} + +// NewPoliciesClientWithBaseURI creates an instance of the PoliciesClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewPoliciesClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) PoliciesClient { + return PoliciesClient{NewWithBaseURI(baseURI, subscriptionID, subscriptionID1)} +} + +// CreateOrUpdate create or update policy with specified rule set name within a resource group. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// policyName - the name of the CdnWebApplicationFirewallPolicy. +// cdnWebApplicationFirewallPolicy - policy to be created. +func (client PoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, policyName string, cdnWebApplicationFirewallPolicy WebApplicationFirewallPolicy) (result PoliciesCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PoliciesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: policyName, + Constraints: []validation.Constraint{{Target: "policyName", Name: validation.MaxLength, Rule: 128, Chain: nil}}}, + {TargetValue: cdnWebApplicationFirewallPolicy, + Constraints: []validation.Constraint{{Target: "cdnWebApplicationFirewallPolicy.WebApplicationFirewallPolicyProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "cdnWebApplicationFirewallPolicy.WebApplicationFirewallPolicyProperties.PolicySettings", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "cdnWebApplicationFirewallPolicy.WebApplicationFirewallPolicyProperties.PolicySettings.DefaultCustomBlockResponseBody", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "cdnWebApplicationFirewallPolicy.WebApplicationFirewallPolicyProperties.PolicySettings.DefaultCustomBlockResponseBody", Name: validation.Pattern, Rule: `^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$`, Chain: nil}}}, + }}, + }}, + {Target: "cdnWebApplicationFirewallPolicy.Sku", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.PoliciesClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, policyName, cdnWebApplicationFirewallPolicy) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.PoliciesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.PoliciesClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client PoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, policyName string, cdnWebApplicationFirewallPolicy WebApplicationFirewallPolicy) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "policyName": autorest.Encode("path", policyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/{policyName}", pathParameters), + autorest.WithJSON(cdnWebApplicationFirewallPolicy), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client PoliciesClient) CreateOrUpdateSender(req *http.Request) (future PoliciesCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client PoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result WebApplicationFirewallPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes Policy +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// policyName - the name of the CdnWebApplicationFirewallPolicy. +func (client PoliciesClient) Delete(ctx context.Context, resourceGroupName string, policyName string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PoliciesClient.Delete") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: policyName, + Constraints: []validation.Constraint{{Target: "policyName", Name: validation.MaxLength, Rule: 128, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.PoliciesClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, policyName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.PoliciesClient", "Delete", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "cdn.PoliciesClient", "Delete", resp, "Failure sending request") + return + } + + result, err = client.DeleteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.PoliciesClient", "Delete", resp, "Failure responding to request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client PoliciesClient) DeletePreparer(ctx context.Context, resourceGroupName string, policyName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "policyName": autorest.Encode("path", policyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/{policyName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client PoliciesClient) DeleteSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client PoliciesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get retrieve protection policy with specified name within a resource group. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// policyName - the name of the CdnWebApplicationFirewallPolicy. +func (client PoliciesClient) Get(ctx context.Context, resourceGroupName string, policyName string) (result WebApplicationFirewallPolicy, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PoliciesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: policyName, + Constraints: []validation.Constraint{{Target: "policyName", Name: validation.MaxLength, Rule: 128, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.PoliciesClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, policyName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.PoliciesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.PoliciesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.PoliciesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client PoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, policyName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "policyName": autorest.Encode("path", policyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/{policyName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client PoliciesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client PoliciesClient) GetResponder(resp *http.Response) (result WebApplicationFirewallPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all of the protection policies within a resource group. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +func (client PoliciesClient) List(ctx context.Context, resourceGroupName string) (result WebApplicationFirewallPolicyListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PoliciesClient.List") + defer func() { + sc := -1 + if result.wafpl.Response.Response != nil { + sc = result.wafpl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.PoliciesClient", "List", err.Error()) + } + + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.PoliciesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.wafpl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.PoliciesClient", "List", resp, "Failure sending request") + return + } + + result.wafpl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.PoliciesClient", "List", resp, "Failure responding to request") + return + } + if result.wafpl.hasNextLink() && result.wafpl.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client PoliciesClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client PoliciesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client PoliciesClient) ListResponder(resp *http.Response) (result WebApplicationFirewallPolicyList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client PoliciesClient) listNextResults(ctx context.Context, lastResults WebApplicationFirewallPolicyList) (result WebApplicationFirewallPolicyList, err error) { + req, err := lastResults.webApplicationFirewallPolicyListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cdn.PoliciesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cdn.PoliciesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.PoliciesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client PoliciesClient) ListComplete(ctx context.Context, resourceGroupName string) (result WebApplicationFirewallPolicyListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PoliciesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName) + return +} + +// Update update an existing CdnWebApplicationFirewallPolicy with the specified policy name under the specified +// subscription and resource group +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// policyName - the name of the CdnWebApplicationFirewallPolicy. +// cdnWebApplicationFirewallPolicyPatchParameters - cdnWebApplicationFirewallPolicy parameters to be patched. +func (client PoliciesClient) Update(ctx context.Context, resourceGroupName string, policyName string, cdnWebApplicationFirewallPolicyPatchParameters WebApplicationFirewallPolicyPatchParameters) (result PoliciesUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PoliciesClient.Update") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: policyName, + Constraints: []validation.Constraint{{Target: "policyName", Name: validation.MaxLength, Rule: 128, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.PoliciesClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, policyName, cdnWebApplicationFirewallPolicyPatchParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.PoliciesClient", "Update", nil, "Failure preparing request") + return + } + + result, err = client.UpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.PoliciesClient", "Update", result.Response(), "Failure sending request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client PoliciesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, policyName string, cdnWebApplicationFirewallPolicyPatchParameters WebApplicationFirewallPolicyPatchParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "policyName": autorest.Encode("path", policyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/{policyName}", pathParameters), + autorest.WithJSON(cdnWebApplicationFirewallPolicyPatchParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client PoliciesClient) UpdateSender(req *http.Request) (future PoliciesUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client PoliciesClient) UpdateResponder(resp *http.Response) (result WebApplicationFirewallPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/cdn/mgmt/2020-09-01/cdn/profiles.go b/services/cdn/mgmt/2020-09-01/cdn/profiles.go new file mode 100644 index 000000000000..a6437c70af59 --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/profiles.go @@ -0,0 +1,920 @@ +package cdn + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ProfilesClient is the cdn Management Client +type ProfilesClient struct { + BaseClient +} + +// NewProfilesClient creates an instance of the ProfilesClient client. +func NewProfilesClient(subscriptionID string, subscriptionID1 string) ProfilesClient { + return NewProfilesClientWithBaseURI(DefaultBaseURI, subscriptionID, subscriptionID1) +} + +// NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewProfilesClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) ProfilesClient { + return ProfilesClient{NewWithBaseURI(baseURI, subscriptionID, subscriptionID1)} +} + +// Create creates a new CDN profile with a profile name under the specified subscription and resource group. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// profile - profile properties needed to create a new profile. +func (client ProfilesClient) Create(ctx context.Context, resourceGroupName string, profileName string, profile Profile) (result ProfilesCreateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProfilesClient.Create") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: profile, + Constraints: []validation.Constraint{{Target: "profile.Sku", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.ProfilesClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, profileName, profile) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "Create", nil, "Failure preparing request") + return + } + + result, err = client.CreateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "Create", result.Response(), "Failure sending request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client ProfilesClient) CreatePreparer(ctx context.Context, resourceGroupName string, profileName string, profile Profile) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}", pathParameters), + autorest.WithJSON(profile), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client ProfilesClient) CreateSender(req *http.Request) (future ProfilesCreateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client ProfilesClient) CreateResponder(resp *http.Response) (result Profile, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes an existing CDN profile with the specified parameters. Deleting a profile will result in the deletion +// of all of the sub-resources including endpoints, origins and custom domains. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +func (client ProfilesClient) Delete(ctx context.Context, resourceGroupName string, profileName string) (result ProfilesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProfilesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.ProfilesClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, profileName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client ProfilesClient) DeletePreparer(ctx context.Context, resourceGroupName string, profileName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client ProfilesClient) DeleteSender(req *http.Request) (future ProfilesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client ProfilesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// GenerateSsoURI generates a dynamic SSO URI used to sign in to the CDN supplemental portal. Supplemental portal is +// used to configure advanced feature capabilities that are not yet available in the Azure portal, such as core reports +// in a standard profile; rules engine, advanced HTTP reports, and real-time stats and alerts in a premium profile. The +// SSO URI changes approximately every 10 minutes. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +func (client ProfilesClient) GenerateSsoURI(ctx context.Context, resourceGroupName string, profileName string) (result SsoURI, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProfilesClient.GenerateSsoURI") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.ProfilesClient", "GenerateSsoURI", err.Error()) + } + + req, err := client.GenerateSsoURIPreparer(ctx, resourceGroupName, profileName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "GenerateSsoURI", nil, "Failure preparing request") + return + } + + resp, err := client.GenerateSsoURISender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "GenerateSsoURI", resp, "Failure sending request") + return + } + + result, err = client.GenerateSsoURIResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "GenerateSsoURI", resp, "Failure responding to request") + return + } + + return +} + +// GenerateSsoURIPreparer prepares the GenerateSsoURI request. +func (client ProfilesClient) GenerateSsoURIPreparer(ctx context.Context, resourceGroupName string, profileName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/generateSsoUri", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GenerateSsoURISender sends the GenerateSsoURI request. The method will close the +// http.Response Body if it receives an error. +func (client ProfilesClient) GenerateSsoURISender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GenerateSsoURIResponder handles the response to the GenerateSsoURI request. The method always +// closes the http.Response Body. +func (client ProfilesClient) GenerateSsoURIResponder(resp *http.Response) (result SsoURI, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Get gets a CDN profile with the specified profile name under the specified subscription and resource group. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, profileName string) (result Profile, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProfilesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.ProfilesClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, profileName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ProfilesClient) GetPreparer(ctx context.Context, resourceGroupName string, profileName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ProfilesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ProfilesClient) GetResponder(resp *http.Response) (result Profile, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all of the CDN profiles within an Azure subscription. +func (client ProfilesClient) List(ctx context.Context) (result ProfileListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProfilesClient.List") + defer func() { + sc := -1 + if result.plr.Response.Response != nil { + sc = result.plr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.plr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "List", resp, "Failure sending request") + return + } + + result.plr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "List", resp, "Failure responding to request") + return + } + if result.plr.hasNextLink() && result.plr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ProfilesClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/profiles", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ProfilesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ProfilesClient) ListResponder(resp *http.Response) (result ProfileListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client ProfilesClient) listNextResults(ctx context.Context, lastResults ProfileListResult) (result ProfileListResult, err error) { + req, err := lastResults.profileListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ProfilesClient) ListComplete(ctx context.Context) (result ProfileListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProfilesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} + +// ListByResourceGroup lists all of the CDN profiles within a resource group. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +func (client ProfilesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ProfileListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProfilesClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.plr.Response.Response != nil { + sc = result.plr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.ProfilesClient", "ListByResourceGroup", err.Error()) + } + + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.plr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.plr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.plr.hasNextLink() && result.plr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client ProfilesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client ProfilesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client ProfilesClient) ListByResourceGroupResponder(resp *http.Response) (result ProfileListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client ProfilesClient) listByResourceGroupNextResults(ctx context.Context, lastResults ProfileListResult) (result ProfileListResult, err error) { + req, err := lastResults.profileListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client ProfilesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ProfileListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProfilesClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// ListResourceUsage checks the quota and actual usage of endpoints under the given CDN profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +func (client ProfilesClient) ListResourceUsage(ctx context.Context, resourceGroupName string, profileName string) (result ResourceUsageListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProfilesClient.ListResourceUsage") + defer func() { + sc := -1 + if result.rulr.Response.Response != nil { + sc = result.rulr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.ProfilesClient", "ListResourceUsage", err.Error()) + } + + result.fn = client.listResourceUsageNextResults + req, err := client.ListResourceUsagePreparer(ctx, resourceGroupName, profileName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListResourceUsage", nil, "Failure preparing request") + return + } + + resp, err := client.ListResourceUsageSender(req) + if err != nil { + result.rulr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListResourceUsage", resp, "Failure sending request") + return + } + + result.rulr, err = client.ListResourceUsageResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListResourceUsage", resp, "Failure responding to request") + return + } + if result.rulr.hasNextLink() && result.rulr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListResourceUsagePreparer prepares the ListResourceUsage request. +func (client ProfilesClient) ListResourceUsagePreparer(ctx context.Context, resourceGroupName string, profileName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/checkResourceUsage", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListResourceUsageSender sends the ListResourceUsage request. The method will close the +// http.Response Body if it receives an error. +func (client ProfilesClient) ListResourceUsageSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResourceUsageResponder handles the response to the ListResourceUsage request. The method always +// closes the http.Response Body. +func (client ProfilesClient) ListResourceUsageResponder(resp *http.Response) (result ResourceUsageListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listResourceUsageNextResults retrieves the next set of results, if any. +func (client ProfilesClient) listResourceUsageNextResults(ctx context.Context, lastResults ResourceUsageListResult) (result ResourceUsageListResult, err error) { + req, err := lastResults.resourceUsageListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listResourceUsageNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListResourceUsageSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listResourceUsageNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResourceUsageResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "listResourceUsageNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListResourceUsageComplete enumerates all values, automatically crossing page boundaries as required. +func (client ProfilesClient) ListResourceUsageComplete(ctx context.Context, resourceGroupName string, profileName string) (result ResourceUsageListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProfilesClient.ListResourceUsage") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListResourceUsage(ctx, resourceGroupName, profileName) + return +} + +// ListSupportedOptimizationTypes gets the supported optimization types for the current profile. A user can create an +// endpoint with an optimization type from the listed values. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +func (client ProfilesClient) ListSupportedOptimizationTypes(ctx context.Context, resourceGroupName string, profileName string) (result SupportedOptimizationTypesListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProfilesClient.ListSupportedOptimizationTypes") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.ProfilesClient", "ListSupportedOptimizationTypes", err.Error()) + } + + req, err := client.ListSupportedOptimizationTypesPreparer(ctx, resourceGroupName, profileName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListSupportedOptimizationTypes", nil, "Failure preparing request") + return + } + + resp, err := client.ListSupportedOptimizationTypesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListSupportedOptimizationTypes", resp, "Failure sending request") + return + } + + result, err = client.ListSupportedOptimizationTypesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "ListSupportedOptimizationTypes", resp, "Failure responding to request") + return + } + + return +} + +// ListSupportedOptimizationTypesPreparer prepares the ListSupportedOptimizationTypes request. +func (client ProfilesClient) ListSupportedOptimizationTypesPreparer(ctx context.Context, resourceGroupName string, profileName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/getSupportedOptimizationTypes", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSupportedOptimizationTypesSender sends the ListSupportedOptimizationTypes request. The method will close the +// http.Response Body if it receives an error. +func (client ProfilesClient) ListSupportedOptimizationTypesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListSupportedOptimizationTypesResponder handles the response to the ListSupportedOptimizationTypes request. The method always +// closes the http.Response Body. +func (client ProfilesClient) ListSupportedOptimizationTypesResponder(resp *http.Response) (result SupportedOptimizationTypesListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Update updates an existing CDN profile with the specified profile name under the specified subscription and resource +// group. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// profileUpdateParameters - profile properties needed to update an existing profile. +func (client ProfilesClient) Update(ctx context.Context, resourceGroupName string, profileName string, profileUpdateParameters ProfileUpdateParameters) (result ProfilesUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProfilesClient.Update") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.ProfilesClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, profileName, profileUpdateParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "Update", nil, "Failure preparing request") + return + } + + result, err = client.UpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ProfilesClient", "Update", result.Response(), "Failure sending request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client ProfilesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, profileName string, profileUpdateParameters ProfileUpdateParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}", pathParameters), + autorest.WithJSON(profileUpdateParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client ProfilesClient) UpdateSender(req *http.Request) (future ProfilesUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client ProfilesClient) UpdateResponder(resp *http.Response) (result Profile, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/cdn/mgmt/2020-09-01/cdn/resourceusage.go b/services/cdn/mgmt/2020-09-01/cdn/resourceusage.go new file mode 100644 index 000000000000..bace30cea58c --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/resourceusage.go @@ -0,0 +1,155 @@ +package cdn + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ResourceUsageClient is the cdn Management Client +type ResourceUsageClient struct { + BaseClient +} + +// NewResourceUsageClient creates an instance of the ResourceUsageClient client. +func NewResourceUsageClient(subscriptionID string, subscriptionID1 string) ResourceUsageClient { + return NewResourceUsageClientWithBaseURI(DefaultBaseURI, subscriptionID, subscriptionID1) +} + +// NewResourceUsageClientWithBaseURI creates an instance of the ResourceUsageClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewResourceUsageClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) ResourceUsageClient { + return ResourceUsageClient{NewWithBaseURI(baseURI, subscriptionID, subscriptionID1)} +} + +// List check the quota and actual usage of the CDN profiles under the given subscription. +func (client ResourceUsageClient) List(ctx context.Context) (result ResourceUsageListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ResourceUsageClient.List") + defer func() { + sc := -1 + if result.rulr.Response.Response != nil { + sc = result.rulr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ResourceUsageClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.rulr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.ResourceUsageClient", "List", resp, "Failure sending request") + return + } + + result.rulr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ResourceUsageClient", "List", resp, "Failure responding to request") + return + } + if result.rulr.hasNextLink() && result.rulr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ResourceUsageClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/checkResourceUsage", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ResourceUsageClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ResourceUsageClient) ListResponder(resp *http.Response) (result ResourceUsageListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client ResourceUsageClient) listNextResults(ctx context.Context, lastResults ResourceUsageListResult) (result ResourceUsageListResult, err error) { + req, err := lastResults.resourceUsageListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cdn.ResourceUsageClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cdn.ResourceUsageClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ResourceUsageClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ResourceUsageClient) ListComplete(ctx context.Context) (result ResourceUsageListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ResourceUsageClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} diff --git a/services/cdn/mgmt/2020-09-01/cdn/routes.go b/services/cdn/mgmt/2020-09-01/cdn/routes.go new file mode 100644 index 000000000000..a6f85fc17fe5 --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/routes.go @@ -0,0 +1,532 @@ +package cdn + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// RoutesClient is the cdn Management Client +type RoutesClient struct { + BaseClient +} + +// NewRoutesClient creates an instance of the RoutesClient client. +func NewRoutesClient(subscriptionID string, subscriptionID1 string) RoutesClient { + return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID, subscriptionID1) +} + +// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when +// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) RoutesClient { + return RoutesClient{NewWithBaseURI(baseURI, subscriptionID, subscriptionID1)} +} + +// Create creates a new route with the specified route name under the specified subscription, resource group, profile, +// and AzureFrontDoor endpoint. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +// routeName - name of the routing rule. +// route - route properties +func (client RoutesClient) Create(ctx context.Context, resourceGroupName string, profileName string, endpointName string, routeName string, route Route) (result RoutesCreateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RoutesClient.Create") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: route, + Constraints: []validation.Constraint{{Target: "route.RouteProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "route.RouteProperties.OriginGroup", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { + return result, validation.NewError("cdn.RoutesClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, profileName, endpointName, routeName, route) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RoutesClient", "Create", nil, "Failure preparing request") + return + } + + result, err = client.CreateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RoutesClient", "Create", result.Response(), "Failure sending request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client RoutesClient) CreatePreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, routeName string, route Route) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "routeName": autorest.Encode("path", routeName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/routes/{routeName}", pathParameters), + autorest.WithJSON(route), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client RoutesClient) CreateSender(req *http.Request) (future RoutesCreateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client RoutesClient) CreateResponder(resp *http.Response) (result Route, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes an existing route with the specified route name under the specified subscription, resource group, +// profile, and AzureFrontDoor endpoint. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +// routeName - name of the routing rule. +func (client RoutesClient) Delete(ctx context.Context, resourceGroupName string, profileName string, endpointName string, routeName string) (result RoutesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RoutesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.RoutesClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, profileName, endpointName, routeName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RoutesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RoutesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client RoutesClient) DeletePreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, routeName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "routeName": autorest.Encode("path", routeName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/routes/{routeName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client RoutesClient) DeleteSender(req *http.Request) (future RoutesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client RoutesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets an existing route with the specified route name under the specified subscription, resource group, profile, +// and AzureFrontDoor endpoint. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +// routeName - name of the routing rule. +func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, profileName string, endpointName string, routeName string) (result Route, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RoutesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.RoutesClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, profileName, endpointName, routeName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RoutesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.RoutesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RoutesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client RoutesClient) GetPreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, routeName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "routeName": autorest.Encode("path", routeName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/routes/{routeName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client RoutesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client RoutesClient) GetResponder(resp *http.Response) (result Route, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByEndpoint lists all of the existing origins within a profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +func (client RoutesClient) ListByEndpoint(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result RouteListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RoutesClient.ListByEndpoint") + defer func() { + sc := -1 + if result.rlr.Response.Response != nil { + sc = result.rlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.RoutesClient", "ListByEndpoint", err.Error()) + } + + result.fn = client.listByEndpointNextResults + req, err := client.ListByEndpointPreparer(ctx, resourceGroupName, profileName, endpointName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RoutesClient", "ListByEndpoint", nil, "Failure preparing request") + return + } + + resp, err := client.ListByEndpointSender(req) + if err != nil { + result.rlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.RoutesClient", "ListByEndpoint", resp, "Failure sending request") + return + } + + result.rlr, err = client.ListByEndpointResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RoutesClient", "ListByEndpoint", resp, "Failure responding to request") + return + } + if result.rlr.hasNextLink() && result.rlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByEndpointPreparer prepares the ListByEndpoint request. +func (client RoutesClient) ListByEndpointPreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/routes", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByEndpointSender sends the ListByEndpoint request. The method will close the +// http.Response Body if it receives an error. +func (client RoutesClient) ListByEndpointSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByEndpointResponder handles the response to the ListByEndpoint request. The method always +// closes the http.Response Body. +func (client RoutesClient) ListByEndpointResponder(resp *http.Response) (result RouteListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByEndpointNextResults retrieves the next set of results, if any. +func (client RoutesClient) listByEndpointNextResults(ctx context.Context, lastResults RouteListResult) (result RouteListResult, err error) { + req, err := lastResults.routeListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cdn.RoutesClient", "listByEndpointNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByEndpointSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cdn.RoutesClient", "listByEndpointNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByEndpointResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RoutesClient", "listByEndpointNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByEndpointComplete enumerates all values, automatically crossing page boundaries as required. +func (client RoutesClient) ListByEndpointComplete(ctx context.Context, resourceGroupName string, profileName string, endpointName string) (result RouteListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RoutesClient.ListByEndpoint") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByEndpoint(ctx, resourceGroupName, profileName, endpointName) + return +} + +// Update updates an existing route with the specified route name under the specified subscription, resource group, +// profile, and AzureFrontDoor endpoint. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// endpointName - name of the endpoint under the profile which is unique globally. +// routeName - name of the routing rule. +// routeUpdateProperties - route update properties +func (client RoutesClient) Update(ctx context.Context, resourceGroupName string, profileName string, endpointName string, routeName string, routeUpdateProperties RouteUpdateParameters) (result RoutesUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RoutesClient.Update") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.RoutesClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, profileName, endpointName, routeName, routeUpdateProperties) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RoutesClient", "Update", nil, "Failure preparing request") + return + } + + result, err = client.UpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RoutesClient", "Update", result.Response(), "Failure sending request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client RoutesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, routeName string, routeUpdateProperties RouteUpdateParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "endpointName": autorest.Encode("path", endpointName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "routeName": autorest.Encode("path", routeName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/routes/{routeName}", pathParameters), + autorest.WithJSON(routeUpdateProperties), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client RoutesClient) UpdateSender(req *http.Request) (future RoutesUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client RoutesClient) UpdateResponder(resp *http.Response) (result Route, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/cdn/mgmt/2020-09-01/cdn/rules.go b/services/cdn/mgmt/2020-09-01/cdn/rules.go new file mode 100644 index 000000000000..1fc013b6a166 --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/rules.go @@ -0,0 +1,530 @@ +package cdn + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// RulesClient is the cdn Management Client +type RulesClient struct { + BaseClient +} + +// NewRulesClient creates an instance of the RulesClient client. +func NewRulesClient(subscriptionID string, subscriptionID1 string) RulesClient { + return NewRulesClientWithBaseURI(DefaultBaseURI, subscriptionID, subscriptionID1) +} + +// NewRulesClientWithBaseURI creates an instance of the RulesClient client using a custom endpoint. Use this when +// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewRulesClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) RulesClient { + return RulesClient{NewWithBaseURI(baseURI, subscriptionID, subscriptionID1)} +} + +// Create creates a new delivery rule within the specified rule set. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// ruleSetName - name of the rule set under the profile. +// ruleName - name of the delivery rule which is unique within the endpoint. +// rule - the delivery rule properties. +func (client RulesClient) Create(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string, ruleName string, rule Rule) (result RulesCreateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RulesClient.Create") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: rule, + Constraints: []validation.Constraint{{Target: "rule.RuleProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "rule.RuleProperties.Order", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "rule.RuleProperties.Actions", Name: validation.Null, Rule: true, Chain: nil}, + }}}}}); err != nil { + return result, validation.NewError("cdn.RulesClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, profileName, ruleSetName, ruleName, rule) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RulesClient", "Create", nil, "Failure preparing request") + return + } + + result, err = client.CreateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RulesClient", "Create", result.Response(), "Failure sending request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client RulesClient) CreatePreparer(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string, ruleName string, rule Rule) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "ruleName": autorest.Encode("path", ruleName), + "ruleSetName": autorest.Encode("path", ruleSetName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}/rules/{ruleName}", pathParameters), + autorest.WithJSON(rule), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client RulesClient) CreateSender(req *http.Request) (future RulesCreateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client RulesClient) CreateResponder(resp *http.Response) (result Rule, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes an existing delivery rule within a rule set. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// ruleSetName - name of the rule set under the profile. +// ruleName - name of the delivery rule which is unique within the endpoint. +func (client RulesClient) Delete(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string, ruleName string) (result RulesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RulesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.RulesClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, profileName, ruleSetName, ruleName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RulesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RulesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client RulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string, ruleName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "ruleName": autorest.Encode("path", ruleName), + "ruleSetName": autorest.Encode("path", ruleSetName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}/rules/{ruleName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client RulesClient) DeleteSender(req *http.Request) (future RulesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client RulesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets an existing delivery rule within a rule set. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// ruleSetName - name of the rule set under the profile. +// ruleName - name of the delivery rule which is unique within the endpoint. +func (client RulesClient) Get(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string, ruleName string) (result Rule, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RulesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.RulesClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, profileName, ruleSetName, ruleName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RulesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.RulesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RulesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client RulesClient) GetPreparer(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string, ruleName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "ruleName": autorest.Encode("path", ruleName), + "ruleSetName": autorest.Encode("path", ruleSetName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}/rules/{ruleName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client RulesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client RulesClient) GetResponder(resp *http.Response) (result Rule, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByRuleSet lists all of the existing delivery rules within a rule set. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// ruleSetName - name of the rule set under the profile. +func (client RulesClient) ListByRuleSet(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string) (result RuleListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RulesClient.ListByRuleSet") + defer func() { + sc := -1 + if result.rlr.Response.Response != nil { + sc = result.rlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.RulesClient", "ListByRuleSet", err.Error()) + } + + result.fn = client.listByRuleSetNextResults + req, err := client.ListByRuleSetPreparer(ctx, resourceGroupName, profileName, ruleSetName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RulesClient", "ListByRuleSet", nil, "Failure preparing request") + return + } + + resp, err := client.ListByRuleSetSender(req) + if err != nil { + result.rlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.RulesClient", "ListByRuleSet", resp, "Failure sending request") + return + } + + result.rlr, err = client.ListByRuleSetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RulesClient", "ListByRuleSet", resp, "Failure responding to request") + return + } + if result.rlr.hasNextLink() && result.rlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByRuleSetPreparer prepares the ListByRuleSet request. +func (client RulesClient) ListByRuleSetPreparer(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "ruleSetName": autorest.Encode("path", ruleSetName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}/rules", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByRuleSetSender sends the ListByRuleSet request. The method will close the +// http.Response Body if it receives an error. +func (client RulesClient) ListByRuleSetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByRuleSetResponder handles the response to the ListByRuleSet request. The method always +// closes the http.Response Body. +func (client RulesClient) ListByRuleSetResponder(resp *http.Response) (result RuleListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByRuleSetNextResults retrieves the next set of results, if any. +func (client RulesClient) listByRuleSetNextResults(ctx context.Context, lastResults RuleListResult) (result RuleListResult, err error) { + req, err := lastResults.ruleListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cdn.RulesClient", "listByRuleSetNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByRuleSetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cdn.RulesClient", "listByRuleSetNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByRuleSetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RulesClient", "listByRuleSetNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByRuleSetComplete enumerates all values, automatically crossing page boundaries as required. +func (client RulesClient) ListByRuleSetComplete(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string) (result RuleListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RulesClient.ListByRuleSet") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByRuleSet(ctx, resourceGroupName, profileName, ruleSetName) + return +} + +// Update updates an existing delivery rule within a rule set. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// ruleSetName - name of the rule set under the profile. +// ruleName - name of the delivery rule which is unique within the endpoint. +// ruleUpdateProperties - delivery rule properties +func (client RulesClient) Update(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string, ruleName string, ruleUpdateProperties RuleUpdateParameters) (result RulesUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RulesClient.Update") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.RulesClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, profileName, ruleSetName, ruleName, ruleUpdateProperties) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RulesClient", "Update", nil, "Failure preparing request") + return + } + + result, err = client.UpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RulesClient", "Update", result.Response(), "Failure sending request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client RulesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string, ruleName string, ruleUpdateProperties RuleUpdateParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "ruleName": autorest.Encode("path", ruleName), + "ruleSetName": autorest.Encode("path", ruleSetName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}/rules/{ruleName}", pathParameters), + autorest.WithJSON(ruleUpdateProperties), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client RulesClient) UpdateSender(req *http.Request) (future RulesUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client RulesClient) UpdateResponder(resp *http.Response) (result Rule, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/cdn/mgmt/2020-09-01/cdn/rulesets.go b/services/cdn/mgmt/2020-09-01/cdn/rulesets.go new file mode 100644 index 000000000000..f5bef8c7c908 --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/rulesets.go @@ -0,0 +1,557 @@ +package cdn + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// RuleSetsClient is the cdn Management Client +type RuleSetsClient struct { + BaseClient +} + +// NewRuleSetsClient creates an instance of the RuleSetsClient client. +func NewRuleSetsClient(subscriptionID string, subscriptionID1 string) RuleSetsClient { + return NewRuleSetsClientWithBaseURI(DefaultBaseURI, subscriptionID, subscriptionID1) +} + +// NewRuleSetsClientWithBaseURI creates an instance of the RuleSetsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewRuleSetsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) RuleSetsClient { + return RuleSetsClient{NewWithBaseURI(baseURI, subscriptionID, subscriptionID1)} +} + +// Create creates a new rule set within the specified profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// ruleSetName - name of the rule set under the profile which is unique globally +// ruleSet - ruleSet properties +func (client RuleSetsClient) Create(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string, ruleSet RuleSet) (result RuleSetsCreateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RuleSetsClient.Create") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.RuleSetsClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, profileName, ruleSetName, ruleSet) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RuleSetsClient", "Create", nil, "Failure preparing request") + return + } + + result, err = client.CreateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RuleSetsClient", "Create", result.Response(), "Failure sending request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client RuleSetsClient) CreatePreparer(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string, ruleSet RuleSet) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "ruleSetName": autorest.Encode("path", ruleSetName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}", pathParameters), + autorest.WithJSON(ruleSet), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client RuleSetsClient) CreateSender(req *http.Request) (future RuleSetsCreateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client RuleSetsClient) CreateResponder(resp *http.Response) (result RuleSet, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes an existing AzureFrontDoor rule set with the specified rule set name under the specified +// subscription, resource group and profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// ruleSetName - name of the rule set under the profile which is unique globally. +func (client RuleSetsClient) Delete(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string) (result RuleSetsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RuleSetsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.RuleSetsClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, profileName, ruleSetName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RuleSetsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RuleSetsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client RuleSetsClient) DeletePreparer(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "ruleSetName": autorest.Encode("path", ruleSetName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client RuleSetsClient) DeleteSender(req *http.Request) (future RuleSetsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client RuleSetsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets an existing AzureFrontDoor rule set with the specified rule set name under the specified subscription, +// resource group and profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// ruleSetName - name of the rule set under the profile which is unique globally. +func (client RuleSetsClient) Get(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string) (result RuleSet, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RuleSetsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.RuleSetsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, profileName, ruleSetName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RuleSetsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.RuleSetsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RuleSetsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client RuleSetsClient) GetPreparer(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "ruleSetName": autorest.Encode("path", ruleSetName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client RuleSetsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client RuleSetsClient) GetResponder(resp *http.Response) (result RuleSet, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByProfile lists existing AzureFrontDoor rule sets within a profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +func (client RuleSetsClient) ListByProfile(ctx context.Context, resourceGroupName string, profileName string) (result RuleSetListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RuleSetsClient.ListByProfile") + defer func() { + sc := -1 + if result.rslr.Response.Response != nil { + sc = result.rslr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.RuleSetsClient", "ListByProfile", err.Error()) + } + + result.fn = client.listByProfileNextResults + req, err := client.ListByProfilePreparer(ctx, resourceGroupName, profileName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RuleSetsClient", "ListByProfile", nil, "Failure preparing request") + return + } + + resp, err := client.ListByProfileSender(req) + if err != nil { + result.rslr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.RuleSetsClient", "ListByProfile", resp, "Failure sending request") + return + } + + result.rslr, err = client.ListByProfileResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RuleSetsClient", "ListByProfile", resp, "Failure responding to request") + return + } + if result.rslr.hasNextLink() && result.rslr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByProfilePreparer prepares the ListByProfile request. +func (client RuleSetsClient) ListByProfilePreparer(ctx context.Context, resourceGroupName string, profileName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByProfileSender sends the ListByProfile request. The method will close the +// http.Response Body if it receives an error. +func (client RuleSetsClient) ListByProfileSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByProfileResponder handles the response to the ListByProfile request. The method always +// closes the http.Response Body. +func (client RuleSetsClient) ListByProfileResponder(resp *http.Response) (result RuleSetListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByProfileNextResults retrieves the next set of results, if any. +func (client RuleSetsClient) listByProfileNextResults(ctx context.Context, lastResults RuleSetListResult) (result RuleSetListResult, err error) { + req, err := lastResults.ruleSetListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cdn.RuleSetsClient", "listByProfileNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByProfileSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cdn.RuleSetsClient", "listByProfileNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByProfileResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RuleSetsClient", "listByProfileNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByProfileComplete enumerates all values, automatically crossing page boundaries as required. +func (client RuleSetsClient) ListByProfileComplete(ctx context.Context, resourceGroupName string, profileName string) (result RuleSetListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RuleSetsClient.ListByProfile") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByProfile(ctx, resourceGroupName, profileName) + return +} + +// ListResourceUsage checks the quota and actual usage of endpoints under the given CDN profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// ruleSetName - name of the rule set under the profile which is unique globally. +func (client RuleSetsClient) ListResourceUsage(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string) (result UsagesListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RuleSetsClient.ListResourceUsage") + defer func() { + sc := -1 + if result.ulr.Response.Response != nil { + sc = result.ulr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.RuleSetsClient", "ListResourceUsage", err.Error()) + } + + result.fn = client.listResourceUsageNextResults + req, err := client.ListResourceUsagePreparer(ctx, resourceGroupName, profileName, ruleSetName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RuleSetsClient", "ListResourceUsage", nil, "Failure preparing request") + return + } + + resp, err := client.ListResourceUsageSender(req) + if err != nil { + result.ulr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.RuleSetsClient", "ListResourceUsage", resp, "Failure sending request") + return + } + + result.ulr, err = client.ListResourceUsageResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RuleSetsClient", "ListResourceUsage", resp, "Failure responding to request") + return + } + if result.ulr.hasNextLink() && result.ulr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListResourceUsagePreparer prepares the ListResourceUsage request. +func (client RuleSetsClient) ListResourceUsagePreparer(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "ruleSetName": autorest.Encode("path", ruleSetName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}/usages", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListResourceUsageSender sends the ListResourceUsage request. The method will close the +// http.Response Body if it receives an error. +func (client RuleSetsClient) ListResourceUsageSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResourceUsageResponder handles the response to the ListResourceUsage request. The method always +// closes the http.Response Body. +func (client RuleSetsClient) ListResourceUsageResponder(resp *http.Response) (result UsagesListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listResourceUsageNextResults retrieves the next set of results, if any. +func (client RuleSetsClient) listResourceUsageNextResults(ctx context.Context, lastResults UsagesListResult) (result UsagesListResult, err error) { + req, err := lastResults.usagesListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cdn.RuleSetsClient", "listResourceUsageNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListResourceUsageSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cdn.RuleSetsClient", "listResourceUsageNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResourceUsageResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.RuleSetsClient", "listResourceUsageNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListResourceUsageComplete enumerates all values, automatically crossing page boundaries as required. +func (client RuleSetsClient) ListResourceUsageComplete(ctx context.Context, resourceGroupName string, profileName string, ruleSetName string) (result UsagesListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RuleSetsClient.ListResourceUsage") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListResourceUsage(ctx, resourceGroupName, profileName, ruleSetName) + return +} diff --git a/services/cdn/mgmt/2020-09-01/cdn/secrets.go b/services/cdn/mgmt/2020-09-01/cdn/secrets.go new file mode 100644 index 000000000000..66e0b9974b59 --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/secrets.go @@ -0,0 +1,515 @@ +package cdn + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// SecretsClient is the cdn Management Client +type SecretsClient struct { + BaseClient +} + +// NewSecretsClient creates an instance of the SecretsClient client. +func NewSecretsClient(subscriptionID string, subscriptionID1 string) SecretsClient { + return NewSecretsClientWithBaseURI(DefaultBaseURI, subscriptionID, subscriptionID1) +} + +// NewSecretsClientWithBaseURI creates an instance of the SecretsClient client using a custom endpoint. Use this when +// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewSecretsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) SecretsClient { + return SecretsClient{NewWithBaseURI(baseURI, subscriptionID, subscriptionID1)} +} + +// Create creates a new Secret within the specified profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// secretName - name of the Secret under the profile. +// secret - the Secret properties. +func (client SecretsClient) Create(ctx context.Context, resourceGroupName string, profileName string, secretName string, secret Secret) (result SecretsCreateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecretsClient.Create") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.SecretsClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, profileName, secretName, secret) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecretsClient", "Create", nil, "Failure preparing request") + return + } + + result, err = client.CreateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecretsClient", "Create", result.Response(), "Failure sending request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client SecretsClient) CreatePreparer(ctx context.Context, resourceGroupName string, profileName string, secretName string, secret Secret) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "secretName": autorest.Encode("path", secretName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/secrets/{secretName}", pathParameters), + autorest.WithJSON(secret), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client SecretsClient) CreateSender(req *http.Request) (future SecretsCreateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client SecretsClient) CreateResponder(resp *http.Response) (result Secret, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes an existing Secret within profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// secretName - name of the Secret under the profile. +func (client SecretsClient) Delete(ctx context.Context, resourceGroupName string, profileName string, secretName string) (result SecretsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecretsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.SecretsClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, profileName, secretName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecretsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecretsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client SecretsClient) DeletePreparer(ctx context.Context, resourceGroupName string, profileName string, secretName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "secretName": autorest.Encode("path", secretName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/secrets/{secretName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client SecretsClient) DeleteSender(req *http.Request) (future SecretsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client SecretsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets an existing Secret within a profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// secretName - name of the Secret under the profile. +func (client SecretsClient) Get(ctx context.Context, resourceGroupName string, profileName string, secretName string) (result Secret, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecretsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.SecretsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, profileName, secretName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecretsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.SecretsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecretsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client SecretsClient) GetPreparer(ctx context.Context, resourceGroupName string, profileName string, secretName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "secretName": autorest.Encode("path", secretName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/secrets/{secretName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client SecretsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client SecretsClient) GetResponder(resp *http.Response) (result Secret, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByProfile lists existing AzureFrontDoor secrets. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +func (client SecretsClient) ListByProfile(ctx context.Context, resourceGroupName string, profileName string) (result SecretListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecretsClient.ListByProfile") + defer func() { + sc := -1 + if result.slr.Response.Response != nil { + sc = result.slr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.SecretsClient", "ListByProfile", err.Error()) + } + + result.fn = client.listByProfileNextResults + req, err := client.ListByProfilePreparer(ctx, resourceGroupName, profileName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecretsClient", "ListByProfile", nil, "Failure preparing request") + return + } + + resp, err := client.ListByProfileSender(req) + if err != nil { + result.slr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.SecretsClient", "ListByProfile", resp, "Failure sending request") + return + } + + result.slr, err = client.ListByProfileResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecretsClient", "ListByProfile", resp, "Failure responding to request") + return + } + if result.slr.hasNextLink() && result.slr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByProfilePreparer prepares the ListByProfile request. +func (client SecretsClient) ListByProfilePreparer(ctx context.Context, resourceGroupName string, profileName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/secrets", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByProfileSender sends the ListByProfile request. The method will close the +// http.Response Body if it receives an error. +func (client SecretsClient) ListByProfileSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByProfileResponder handles the response to the ListByProfile request. The method always +// closes the http.Response Body. +func (client SecretsClient) ListByProfileResponder(resp *http.Response) (result SecretListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByProfileNextResults retrieves the next set of results, if any. +func (client SecretsClient) listByProfileNextResults(ctx context.Context, lastResults SecretListResult) (result SecretListResult, err error) { + req, err := lastResults.secretListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cdn.SecretsClient", "listByProfileNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByProfileSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cdn.SecretsClient", "listByProfileNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByProfileResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecretsClient", "listByProfileNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByProfileComplete enumerates all values, automatically crossing page boundaries as required. +func (client SecretsClient) ListByProfileComplete(ctx context.Context, resourceGroupName string, profileName string) (result SecretListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecretsClient.ListByProfile") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByProfile(ctx, resourceGroupName, profileName) + return +} + +// Update updates an existing Secret within a profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// secretName - name of the Secret under the profile. +// secretProperties - secret properties +func (client SecretsClient) Update(ctx context.Context, resourceGroupName string, profileName string, secretName string, secretProperties SecretProperties) (result SecretsUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecretsClient.Update") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.SecretsClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, profileName, secretName, secretProperties) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecretsClient", "Update", nil, "Failure preparing request") + return + } + + result, err = client.UpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecretsClient", "Update", result.Response(), "Failure sending request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client SecretsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, profileName string, secretName string, secretProperties SecretProperties) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "secretName": autorest.Encode("path", secretName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/secrets/{secretName}", pathParameters), + autorest.WithJSON(secretProperties), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client SecretsClient) UpdateSender(req *http.Request) (future SecretsUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client SecretsClient) UpdateResponder(resp *http.Response) (result Secret, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/cdn/mgmt/2020-09-01/cdn/securitypolicies.go b/services/cdn/mgmt/2020-09-01/cdn/securitypolicies.go new file mode 100644 index 000000000000..b16a606014a4 --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/securitypolicies.go @@ -0,0 +1,516 @@ +package cdn + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// SecurityPoliciesClient is the cdn Management Client +type SecurityPoliciesClient struct { + BaseClient +} + +// NewSecurityPoliciesClient creates an instance of the SecurityPoliciesClient client. +func NewSecurityPoliciesClient(subscriptionID string, subscriptionID1 string) SecurityPoliciesClient { + return NewSecurityPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID, subscriptionID1) +} + +// NewSecurityPoliciesClientWithBaseURI creates an instance of the SecurityPoliciesClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewSecurityPoliciesClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) SecurityPoliciesClient { + return SecurityPoliciesClient{NewWithBaseURI(baseURI, subscriptionID, subscriptionID1)} +} + +// Create creates a new security policy within the specified profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// securityPolicyName - name of the security policy under the profile. +// securityPolicy - the security policy properties. +func (client SecurityPoliciesClient) Create(ctx context.Context, resourceGroupName string, profileName string, securityPolicyName string, securityPolicy SecurityPolicy) (result SecurityPoliciesCreateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityPoliciesClient.Create") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.SecurityPoliciesClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, profileName, securityPolicyName, securityPolicy) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecurityPoliciesClient", "Create", nil, "Failure preparing request") + return + } + + result, err = client.CreateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecurityPoliciesClient", "Create", result.Response(), "Failure sending request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client SecurityPoliciesClient) CreatePreparer(ctx context.Context, resourceGroupName string, profileName string, securityPolicyName string, securityPolicy SecurityPolicy) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "securityPolicyName": autorest.Encode("path", securityPolicyName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/securityPolicies/{securityPolicyName}", pathParameters), + autorest.WithJSON(securityPolicy), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client SecurityPoliciesClient) CreateSender(req *http.Request) (future SecurityPoliciesCreateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client SecurityPoliciesClient) CreateResponder(resp *http.Response) (result SecurityPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes an existing security policy within profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// securityPolicyName - name of the Secret under the profile. +func (client SecurityPoliciesClient) Delete(ctx context.Context, resourceGroupName string, profileName string, securityPolicyName string) (result SecurityPoliciesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityPoliciesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.SecurityPoliciesClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, profileName, securityPolicyName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecurityPoliciesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecurityPoliciesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client SecurityPoliciesClient) DeletePreparer(ctx context.Context, resourceGroupName string, profileName string, securityPolicyName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "securityPolicyName": autorest.Encode("path", securityPolicyName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/securityPolicies/{securityPolicyName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client SecurityPoliciesClient) DeleteSender(req *http.Request) (future SecurityPoliciesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client SecurityPoliciesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets an existing security policy within a profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// securityPolicyName - name of the security policy under the profile. +func (client SecurityPoliciesClient) Get(ctx context.Context, resourceGroupName string, profileName string, securityPolicyName string) (result SecurityPolicy, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityPoliciesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.SecurityPoliciesClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, profileName, securityPolicyName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecurityPoliciesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.SecurityPoliciesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecurityPoliciesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client SecurityPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, profileName string, securityPolicyName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "securityPolicyName": autorest.Encode("path", securityPolicyName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/securityPolicies/{securityPolicyName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client SecurityPoliciesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client SecurityPoliciesClient) GetResponder(resp *http.Response) (result SecurityPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByProfile lists security policies associated with the profile +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +func (client SecurityPoliciesClient) ListByProfile(ctx context.Context, resourceGroupName string, profileName string) (result SecurityPolicyListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityPoliciesClient.ListByProfile") + defer func() { + sc := -1 + if result.splr.Response.Response != nil { + sc = result.splr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.SecurityPoliciesClient", "ListByProfile", err.Error()) + } + + result.fn = client.listByProfileNextResults + req, err := client.ListByProfilePreparer(ctx, resourceGroupName, profileName) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecurityPoliciesClient", "ListByProfile", nil, "Failure preparing request") + return + } + + resp, err := client.ListByProfileSender(req) + if err != nil { + result.splr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.SecurityPoliciesClient", "ListByProfile", resp, "Failure sending request") + return + } + + result.splr, err = client.ListByProfileResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecurityPoliciesClient", "ListByProfile", resp, "Failure responding to request") + return + } + if result.splr.hasNextLink() && result.splr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByProfilePreparer prepares the ListByProfile request. +func (client SecurityPoliciesClient) ListByProfilePreparer(ctx context.Context, resourceGroupName string, profileName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/securityPolicies", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByProfileSender sends the ListByProfile request. The method will close the +// http.Response Body if it receives an error. +func (client SecurityPoliciesClient) ListByProfileSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByProfileResponder handles the response to the ListByProfile request. The method always +// closes the http.Response Body. +func (client SecurityPoliciesClient) ListByProfileResponder(resp *http.Response) (result SecurityPolicyListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByProfileNextResults retrieves the next set of results, if any. +func (client SecurityPoliciesClient) listByProfileNextResults(ctx context.Context, lastResults SecurityPolicyListResult) (result SecurityPolicyListResult, err error) { + req, err := lastResults.securityPolicyListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cdn.SecurityPoliciesClient", "listByProfileNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByProfileSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cdn.SecurityPoliciesClient", "listByProfileNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByProfileResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecurityPoliciesClient", "listByProfileNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByProfileComplete enumerates all values, automatically crossing page boundaries as required. +func (client SecurityPoliciesClient) ListByProfileComplete(ctx context.Context, resourceGroupName string, profileName string) (result SecurityPolicyListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityPoliciesClient.ListByProfile") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByProfile(ctx, resourceGroupName, profileName) + return +} + +// Patch updates an existing Secret within a profile. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - name of the CDN profile which is unique within the resource group. +// securityPolicyName - name of the security policy under the profile. +// securityPolicyParameters - security policy update properties +func (client SecurityPoliciesClient) Patch(ctx context.Context, resourceGroupName string, profileName string, securityPolicyName string, securityPolicyParameters SecurityPolicyWebApplicationFirewallParameters) (result SecurityPoliciesPatchFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityPoliciesClient.Patch") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.SecurityPoliciesClient", "Patch", err.Error()) + } + + req, err := client.PatchPreparer(ctx, resourceGroupName, profileName, securityPolicyName, securityPolicyParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecurityPoliciesClient", "Patch", nil, "Failure preparing request") + return + } + + result, err = client.PatchSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.SecurityPoliciesClient", "Patch", result.Response(), "Failure sending request") + return + } + + return +} + +// PatchPreparer prepares the Patch request. +func (client SecurityPoliciesClient) PatchPreparer(ctx context.Context, resourceGroupName string, profileName string, securityPolicyName string, securityPolicyParameters SecurityPolicyWebApplicationFirewallParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "securityPolicyName": autorest.Encode("path", securityPolicyName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/securityPolicies/{securityPolicyName}", pathParameters), + autorest.WithJSON(securityPolicyParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// PatchSender sends the Patch request. The method will close the +// http.Response Body if it receives an error. +func (client SecurityPoliciesClient) PatchSender(req *http.Request) (future SecurityPoliciesPatchFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// PatchResponder handles the response to the Patch request. The method always +// closes the http.Response Body. +func (client SecurityPoliciesClient) PatchResponder(resp *http.Response) (result SecurityPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/cdn/mgmt/2020-09-01/cdn/validate.go b/services/cdn/mgmt/2020-09-01/cdn/validate.go new file mode 100644 index 000000000000..c919ced9c608 --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/validate.go @@ -0,0 +1,124 @@ +package cdn + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ValidateClient is the cdn Management Client +type ValidateClient struct { + BaseClient +} + +// NewValidateClient creates an instance of the ValidateClient client. +func NewValidateClient(subscriptionID string, subscriptionID1 string) ValidateClient { + return NewValidateClientWithBaseURI(DefaultBaseURI, subscriptionID, subscriptionID1) +} + +// NewValidateClientWithBaseURI creates an instance of the ValidateClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewValidateClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) ValidateClient { + return ValidateClient{NewWithBaseURI(baseURI, subscriptionID, subscriptionID1)} +} + +// SecretMethod validate a Secret in the profile. +// Parameters: +// validateSecretInput - the Secret source. +func (client ValidateClient) SecretMethod(ctx context.Context, validateSecretInput ValidateSecretInput) (result ValidateSecretOutput, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ValidateClient.SecretMethod") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: validateSecretInput, + Constraints: []validation.Constraint{{Target: "validateSecretInput.SecretSource", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("cdn.ValidateClient", "SecretMethod", err.Error()) + } + + req, err := client.SecretMethodPreparer(ctx, validateSecretInput) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ValidateClient", "SecretMethod", nil, "Failure preparing request") + return + } + + resp, err := client.SecretMethodSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cdn.ValidateClient", "SecretMethod", resp, "Failure sending request") + return + } + + result, err = client.SecretMethodResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cdn.ValidateClient", "SecretMethod", resp, "Failure responding to request") + return + } + + return +} + +// SecretMethodPreparer prepares the SecretMethod request. +func (client ValidateClient) SecretMethodPreparer(ctx context.Context, validateSecretInput ValidateSecretInput) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/validateSecret", pathParameters), + autorest.WithJSON(validateSecretInput), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// SecretMethodSender sends the SecretMethod request. The method will close the +// http.Response Body if it receives an error. +func (client ValidateClient) SecretMethodSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// SecretMethodResponder handles the response to the SecretMethod request. The method always +// closes the http.Response Body. +func (client ValidateClient) SecretMethodResponder(resp *http.Response) (result ValidateSecretOutput, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/cdn/mgmt/2020-09-01/cdn/version.go b/services/cdn/mgmt/2020-09-01/cdn/version.go new file mode 100644 index 000000000000..e023a5c56e49 --- /dev/null +++ b/services/cdn/mgmt/2020-09-01/cdn/version.go @@ -0,0 +1,30 @@ +package cdn + +import "github.com/Azure/azure-sdk-for-go/version" + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UserAgent returns the UserAgent string to use when sending http.Requests. +func UserAgent() string { + return "Azure-SDK-For-Go/" + Version() + " cdn/2020-09-01" +} + +// Version returns the semantic version (see http://semver.org) of the client. +func Version() string { + return version.Number +} From 9c4e8ab0e63d29412648ebcc31990391d720e8f4 Mon Sep 17 00:00:00 2001 From: arcturusZhang Date: Thu, 17 Dec 2020 12:17:25 +0800 Subject: [PATCH 04/12] Generated from tags [package-2020-07] of specification/network/resource-manager/readme.md (commit hash: 3a3a9452f965a227ce43e6b545035b99dd175f23) --- .../latest/network/mgmt/network/models.go | 112 +- .../network/mgmt/network/networkapi/models.go | 3 +- .../preview/network/mgmt/network/models.go | 112 +- .../network/mgmt/network/networkapi/models.go | 3 +- .../mgmt/2020-07-01/network/CHANGELOG.md | 5 + ...cationgatewayprivateendpointconnections.go | 398 + .../applicationgatewayprivatelinkresources.go | 162 + .../2020-07-01/network/applicationgateways.go | 1461 + .../network/applicationsecuritygroups.go | 580 + .../network/availabledelegations.go | 159 + .../network/availableendpointservices.go | 159 + .../network/availableprivateendpointtypes.go | 278 + .../availableresourcegroupdelegations.go | 162 + .../network/availableservicealiases.go | 277 + .../network/azurefirewallfqdntags.go | 156 + .../mgmt/2020-07-01/network/azurefirewalls.go | 586 + .../mgmt/2020-07-01/network/bastionhosts.go | 500 + .../network/bgpservicecommunities.go | 156 + .../network/mgmt/2020-07-01/network/client.go | 842 + .../2020-07-01/network/connectionmonitors.go | 692 + .../2020-07-01/network/customipprefixes.go | 584 + .../2020-07-01/network/ddoscustompolicies.go | 351 + .../2020-07-01/network/ddosprotectionplans.go | 583 + .../network/defaultsecurityrules.go | 239 + .../2020-07-01/network/dscpconfiguration.go | 501 + .../network/mgmt/2020-07-01/network/enums.go | 2724 + .../expressroutecircuitauthorizations.go | 399 + .../network/expressroutecircuitconnections.go | 406 + .../network/expressroutecircuitpeerings.go | 409 + .../network/expressroutecircuits.go | 973 + .../network/expressrouteconnections.go | 362 + .../expressroutecrossconnectionpeerings.go | 410 + .../network/expressroutecrossconnections.go | 746 + .../network/expressroutegateways.go | 426 + .../2020-07-01/network/expressroutelinks.go | 239 + .../2020-07-01/network/expressrouteports.go | 666 + .../network/expressrouteportslocations.go | 232 + .../network/expressrouteserviceproviders.go | 156 + .../2020-07-01/network/firewallpolicies.go | 505 + .../firewallpolicyrulecollectiongroups.go | 410 + .../mgmt/2020-07-01/network/flowlogs.go | 486 + .../mgmt/2020-07-01/network/hubroutetables.go | 396 + .../network/hubvirtualnetworkconnections.go | 397 + .../2020-07-01/network/inboundnatrules.go | 424 + .../2020-07-01/network/inboundsecurityrule.go | 126 + .../network/interfaceipconfigurations.go | 239 + .../network/interfaceloadbalancers.go | 161 + .../2020-07-01/network/interfacesgroup.go | 1603 + .../network/interfacetapconfigurations.go | 441 + .../mgmt/2020-07-01/network/ipallocations.go | 583 + .../mgmt/2020-07-01/network/ipgroups.go | 584 + .../loadbalancerbackendaddresspools.go | 397 + .../loadbalancerfrontendipconfigurations.go | 240 + .../network/loadbalancerloadbalancingrules.go | 239 + .../network/loadbalancernetworkinterfaces.go | 161 + .../network/loadbalanceroutboundrules.go | 239 + .../2020-07-01/network/loadbalancerprobes.go | 239 + .../mgmt/2020-07-01/network/loadbalancers.go | 593 + .../network/localnetworkgateways.go | 501 + .../network/mgmt/2020-07-01/network/models.go | 44484 ++++++++++++++++ .../mgmt/2020-07-01/network/natgateways.go | 583 + .../network/networkapi/interfaces.go | 1321 + .../mgmt/2020-07-01/network/operations.go | 151 + .../mgmt/2020-07-01/network/p2svpngateways.go | 964 + .../mgmt/2020-07-01/network/packetcaptures.go | 527 + .../peerexpressroutecircuitconnections.go | 244 + .../network/privatednszonegroups.go | 396 + .../2020-07-01/network/privateendpoints.go | 505 + .../2020-07-01/network/privatelinkservices.go | 1257 + .../mgmt/2020-07-01/network/profiles.go | 584 + .../2020-07-01/network/publicipaddresses.go | 1263 + .../2020-07-01/network/publicipprefixes.go | 594 + .../network/resourcenavigationlinks.go | 121 + .../2020-07-01/network/routefilterrules.go | 406 + .../mgmt/2020-07-01/network/routefilters.go | 583 + .../network/mgmt/2020-07-01/network/routes.go | 395 + .../mgmt/2020-07-01/network/routetables.go | 583 + .../mgmt/2020-07-01/network/securitygroups.go | 583 + .../network/securitypartnerproviders.go | 580 + .../mgmt/2020-07-01/network/securityrules.go | 395 + .../network/serviceassociationlinks.go | 121 + .../network/serviceendpointpolicies.go | 584 + .../serviceendpointpolicydefinitions.go | 397 + .../mgmt/2020-07-01/network/servicetags.go | 118 + .../mgmt/2020-07-01/network/subnets.go | 559 + .../network/mgmt/2020-07-01/network/usages.go | 165 + .../mgmt/2020-07-01/network/version.go | 30 + .../2020-07-01/network/virtualappliances.go | 596 + .../network/virtualappliancesites.go | 397 + .../network/virtualapplianceskus.go | 230 + .../network/virtualhubbgpconnection.go | 292 + .../network/virtualhubbgpconnections.go | 315 + .../network/virtualhubipconfiguration.go | 418 + .../network/virtualhubroutetablev2s.go | 397 + .../mgmt/2020-07-01/network/virtualhubs.go | 672 + .../virtualnetworkgatewayconnections.go | 928 + .../network/virtualnetworkgateways.go | 1857 + .../network/virtualnetworkpeerings.go | 407 + .../2020-07-01/network/virtualnetworks.go | 793 + .../2020-07-01/network/virtualnetworktaps.go | 620 + .../network/virtualrouterpeerings.go | 409 + .../mgmt/2020-07-01/network/virtualrouters.go | 516 + .../mgmt/2020-07-01/network/virtualwans.go | 579 + .../mgmt/2020-07-01/network/vpnconnections.go | 563 + .../mgmt/2020-07-01/network/vpngateways.go | 829 + .../2020-07-01/network/vpnlinkconnections.go | 163 + .../network/vpnserverconfigurations.go | 581 + ...rconfigurationsassociatedwithvirtualwan.go | 119 + .../network/vpnsitelinkconnections.go | 123 + .../mgmt/2020-07-01/network/vpnsitelinks.go | 238 + .../mgmt/2020-07-01/network/vpnsites.go | 593 + .../network/vpnsitesconfiguration.go | 127 + .../mgmt/2020-07-01/network/watchers.go | 1531 + .../network/webapplicationfirewallpolicies.go | 534 + .../mgmt/2020-07-01/network/webcategories.go | 233 + 115 files changed, 99722 insertions(+), 4 deletions(-) create mode 100644 services/network/mgmt/2020-07-01/network/CHANGELOG.md create mode 100644 services/network/mgmt/2020-07-01/network/applicationgatewayprivateendpointconnections.go create mode 100644 services/network/mgmt/2020-07-01/network/applicationgatewayprivatelinkresources.go create mode 100644 services/network/mgmt/2020-07-01/network/applicationgateways.go create mode 100644 services/network/mgmt/2020-07-01/network/applicationsecuritygroups.go create mode 100644 services/network/mgmt/2020-07-01/network/availabledelegations.go create mode 100644 services/network/mgmt/2020-07-01/network/availableendpointservices.go create mode 100644 services/network/mgmt/2020-07-01/network/availableprivateendpointtypes.go create mode 100644 services/network/mgmt/2020-07-01/network/availableresourcegroupdelegations.go create mode 100644 services/network/mgmt/2020-07-01/network/availableservicealiases.go create mode 100644 services/network/mgmt/2020-07-01/network/azurefirewallfqdntags.go create mode 100644 services/network/mgmt/2020-07-01/network/azurefirewalls.go create mode 100644 services/network/mgmt/2020-07-01/network/bastionhosts.go create mode 100644 services/network/mgmt/2020-07-01/network/bgpservicecommunities.go create mode 100644 services/network/mgmt/2020-07-01/network/client.go create mode 100644 services/network/mgmt/2020-07-01/network/connectionmonitors.go create mode 100644 services/network/mgmt/2020-07-01/network/customipprefixes.go create mode 100644 services/network/mgmt/2020-07-01/network/ddoscustompolicies.go create mode 100644 services/network/mgmt/2020-07-01/network/ddosprotectionplans.go create mode 100644 services/network/mgmt/2020-07-01/network/defaultsecurityrules.go create mode 100644 services/network/mgmt/2020-07-01/network/dscpconfiguration.go create mode 100644 services/network/mgmt/2020-07-01/network/enums.go create mode 100644 services/network/mgmt/2020-07-01/network/expressroutecircuitauthorizations.go create mode 100644 services/network/mgmt/2020-07-01/network/expressroutecircuitconnections.go create mode 100644 services/network/mgmt/2020-07-01/network/expressroutecircuitpeerings.go create mode 100644 services/network/mgmt/2020-07-01/network/expressroutecircuits.go create mode 100644 services/network/mgmt/2020-07-01/network/expressrouteconnections.go create mode 100644 services/network/mgmt/2020-07-01/network/expressroutecrossconnectionpeerings.go create mode 100644 services/network/mgmt/2020-07-01/network/expressroutecrossconnections.go create mode 100644 services/network/mgmt/2020-07-01/network/expressroutegateways.go create mode 100644 services/network/mgmt/2020-07-01/network/expressroutelinks.go create mode 100644 services/network/mgmt/2020-07-01/network/expressrouteports.go create mode 100644 services/network/mgmt/2020-07-01/network/expressrouteportslocations.go create mode 100644 services/network/mgmt/2020-07-01/network/expressrouteserviceproviders.go create mode 100644 services/network/mgmt/2020-07-01/network/firewallpolicies.go create mode 100644 services/network/mgmt/2020-07-01/network/firewallpolicyrulecollectiongroups.go create mode 100644 services/network/mgmt/2020-07-01/network/flowlogs.go create mode 100644 services/network/mgmt/2020-07-01/network/hubroutetables.go create mode 100644 services/network/mgmt/2020-07-01/network/hubvirtualnetworkconnections.go create mode 100644 services/network/mgmt/2020-07-01/network/inboundnatrules.go create mode 100644 services/network/mgmt/2020-07-01/network/inboundsecurityrule.go create mode 100644 services/network/mgmt/2020-07-01/network/interfaceipconfigurations.go create mode 100644 services/network/mgmt/2020-07-01/network/interfaceloadbalancers.go create mode 100644 services/network/mgmt/2020-07-01/network/interfacesgroup.go create mode 100644 services/network/mgmt/2020-07-01/network/interfacetapconfigurations.go create mode 100644 services/network/mgmt/2020-07-01/network/ipallocations.go create mode 100644 services/network/mgmt/2020-07-01/network/ipgroups.go create mode 100644 services/network/mgmt/2020-07-01/network/loadbalancerbackendaddresspools.go create mode 100644 services/network/mgmt/2020-07-01/network/loadbalancerfrontendipconfigurations.go create mode 100644 services/network/mgmt/2020-07-01/network/loadbalancerloadbalancingrules.go create mode 100644 services/network/mgmt/2020-07-01/network/loadbalancernetworkinterfaces.go create mode 100644 services/network/mgmt/2020-07-01/network/loadbalanceroutboundrules.go create mode 100644 services/network/mgmt/2020-07-01/network/loadbalancerprobes.go create mode 100644 services/network/mgmt/2020-07-01/network/loadbalancers.go create mode 100644 services/network/mgmt/2020-07-01/network/localnetworkgateways.go create mode 100644 services/network/mgmt/2020-07-01/network/models.go create mode 100644 services/network/mgmt/2020-07-01/network/natgateways.go create mode 100644 services/network/mgmt/2020-07-01/network/networkapi/interfaces.go create mode 100644 services/network/mgmt/2020-07-01/network/operations.go create mode 100644 services/network/mgmt/2020-07-01/network/p2svpngateways.go create mode 100644 services/network/mgmt/2020-07-01/network/packetcaptures.go create mode 100644 services/network/mgmt/2020-07-01/network/peerexpressroutecircuitconnections.go create mode 100644 services/network/mgmt/2020-07-01/network/privatednszonegroups.go create mode 100644 services/network/mgmt/2020-07-01/network/privateendpoints.go create mode 100644 services/network/mgmt/2020-07-01/network/privatelinkservices.go create mode 100644 services/network/mgmt/2020-07-01/network/profiles.go create mode 100644 services/network/mgmt/2020-07-01/network/publicipaddresses.go create mode 100644 services/network/mgmt/2020-07-01/network/publicipprefixes.go create mode 100644 services/network/mgmt/2020-07-01/network/resourcenavigationlinks.go create mode 100644 services/network/mgmt/2020-07-01/network/routefilterrules.go create mode 100644 services/network/mgmt/2020-07-01/network/routefilters.go create mode 100644 services/network/mgmt/2020-07-01/network/routes.go create mode 100644 services/network/mgmt/2020-07-01/network/routetables.go create mode 100644 services/network/mgmt/2020-07-01/network/securitygroups.go create mode 100644 services/network/mgmt/2020-07-01/network/securitypartnerproviders.go create mode 100644 services/network/mgmt/2020-07-01/network/securityrules.go create mode 100644 services/network/mgmt/2020-07-01/network/serviceassociationlinks.go create mode 100644 services/network/mgmt/2020-07-01/network/serviceendpointpolicies.go create mode 100644 services/network/mgmt/2020-07-01/network/serviceendpointpolicydefinitions.go create mode 100644 services/network/mgmt/2020-07-01/network/servicetags.go create mode 100644 services/network/mgmt/2020-07-01/network/subnets.go create mode 100644 services/network/mgmt/2020-07-01/network/usages.go create mode 100644 services/network/mgmt/2020-07-01/network/version.go create mode 100644 services/network/mgmt/2020-07-01/network/virtualappliances.go create mode 100644 services/network/mgmt/2020-07-01/network/virtualappliancesites.go create mode 100644 services/network/mgmt/2020-07-01/network/virtualapplianceskus.go create mode 100644 services/network/mgmt/2020-07-01/network/virtualhubbgpconnection.go create mode 100644 services/network/mgmt/2020-07-01/network/virtualhubbgpconnections.go create mode 100644 services/network/mgmt/2020-07-01/network/virtualhubipconfiguration.go create mode 100644 services/network/mgmt/2020-07-01/network/virtualhubroutetablev2s.go create mode 100644 services/network/mgmt/2020-07-01/network/virtualhubs.go create mode 100644 services/network/mgmt/2020-07-01/network/virtualnetworkgatewayconnections.go create mode 100644 services/network/mgmt/2020-07-01/network/virtualnetworkgateways.go create mode 100644 services/network/mgmt/2020-07-01/network/virtualnetworkpeerings.go create mode 100644 services/network/mgmt/2020-07-01/network/virtualnetworks.go create mode 100644 services/network/mgmt/2020-07-01/network/virtualnetworktaps.go create mode 100644 services/network/mgmt/2020-07-01/network/virtualrouterpeerings.go create mode 100644 services/network/mgmt/2020-07-01/network/virtualrouters.go create mode 100644 services/network/mgmt/2020-07-01/network/virtualwans.go create mode 100644 services/network/mgmt/2020-07-01/network/vpnconnections.go create mode 100644 services/network/mgmt/2020-07-01/network/vpngateways.go create mode 100644 services/network/mgmt/2020-07-01/network/vpnlinkconnections.go create mode 100644 services/network/mgmt/2020-07-01/network/vpnserverconfigurations.go create mode 100644 services/network/mgmt/2020-07-01/network/vpnserverconfigurationsassociatedwithvirtualwan.go create mode 100644 services/network/mgmt/2020-07-01/network/vpnsitelinkconnections.go create mode 100644 services/network/mgmt/2020-07-01/network/vpnsitelinks.go create mode 100644 services/network/mgmt/2020-07-01/network/vpnsites.go create mode 100644 services/network/mgmt/2020-07-01/network/vpnsitesconfiguration.go create mode 100644 services/network/mgmt/2020-07-01/network/watchers.go create mode 100644 services/network/mgmt/2020-07-01/network/webapplicationfirewallpolicies.go create mode 100644 services/network/mgmt/2020-07-01/network/webcategories.go diff --git a/profiles/latest/network/mgmt/network/models.go b/profiles/latest/network/mgmt/network/models.go index 3a2d06b926ff..b97aa2a7b6b3 100644 --- a/profiles/latest/network/mgmt/network/models.go +++ b/profiles/latest/network/mgmt/network/models.go @@ -22,7 +22,7 @@ package network import ( "context" - original "github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-06-01/network" + original "github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-07-01/network" ) const ( @@ -527,6 +527,12 @@ const ( QinQ ExpressRoutePortsEncapsulation = original.QinQ ) +type ExtendedLocationTypes = original.ExtendedLocationTypes + +const ( + EdgeZone ExtendedLocationTypes = original.EdgeZone +) + type FirewallPolicyFilterRuleCollectionActionType = original.FirewallPolicyFilterRuleCollectionActionType const ( @@ -534,6 +540,23 @@ const ( FirewallPolicyFilterRuleCollectionActionTypeDeny FirewallPolicyFilterRuleCollectionActionType = original.FirewallPolicyFilterRuleCollectionActionTypeDeny ) +type FirewallPolicyIntrusionDetectionProtocol = original.FirewallPolicyIntrusionDetectionProtocol + +const ( + FirewallPolicyIntrusionDetectionProtocolANY FirewallPolicyIntrusionDetectionProtocol = original.FirewallPolicyIntrusionDetectionProtocolANY + FirewallPolicyIntrusionDetectionProtocolICMP FirewallPolicyIntrusionDetectionProtocol = original.FirewallPolicyIntrusionDetectionProtocolICMP + FirewallPolicyIntrusionDetectionProtocolTCP FirewallPolicyIntrusionDetectionProtocol = original.FirewallPolicyIntrusionDetectionProtocolTCP + FirewallPolicyIntrusionDetectionProtocolUDP FirewallPolicyIntrusionDetectionProtocol = original.FirewallPolicyIntrusionDetectionProtocolUDP +) + +type FirewallPolicyIntrusionDetectionStateType = original.FirewallPolicyIntrusionDetectionStateType + +const ( + FirewallPolicyIntrusionDetectionStateTypeAlert FirewallPolicyIntrusionDetectionStateType = original.FirewallPolicyIntrusionDetectionStateTypeAlert + FirewallPolicyIntrusionDetectionStateTypeDeny FirewallPolicyIntrusionDetectionStateType = original.FirewallPolicyIntrusionDetectionStateTypeDeny + FirewallPolicyIntrusionDetectionStateTypeOff FirewallPolicyIntrusionDetectionStateType = original.FirewallPolicyIntrusionDetectionStateTypeOff +) + type FirewallPolicyNatRuleCollectionActionType = original.FirewallPolicyNatRuleCollectionActionType const ( @@ -556,6 +579,13 @@ const ( FirewallPolicyRuleNetworkProtocolUDP FirewallPolicyRuleNetworkProtocol = original.FirewallPolicyRuleNetworkProtocolUDP ) +type FirewallPolicySkuTier = original.FirewallPolicySkuTier + +const ( + FirewallPolicySkuTierPremium FirewallPolicySkuTier = original.FirewallPolicySkuTierPremium + FirewallPolicySkuTierStandard FirewallPolicySkuTier = original.FirewallPolicySkuTierStandard +) + type FlowLogFormatType = original.FlowLogFormatType const ( @@ -705,6 +735,13 @@ const ( LoadBalancerSkuNameStandard LoadBalancerSkuName = original.LoadBalancerSkuNameStandard ) +type LoadBalancerSkuTier = original.LoadBalancerSkuTier + +const ( + Global LoadBalancerSkuTier = original.Global + Regional LoadBalancerSkuTier = original.Regional +) + type LoadDistribution = original.LoadDistribution const ( @@ -888,12 +925,26 @@ const ( PublicIPAddressSkuNameStandard PublicIPAddressSkuName = original.PublicIPAddressSkuNameStandard ) +type PublicIPAddressSkuTier = original.PublicIPAddressSkuTier + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = original.PublicIPAddressSkuTierGlobal + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = original.PublicIPAddressSkuTierRegional +) + type PublicIPPrefixSkuName = original.PublicIPPrefixSkuName const ( PublicIPPrefixSkuNameStandard PublicIPPrefixSkuName = original.PublicIPPrefixSkuNameStandard ) +type PublicIPPrefixSkuTier = original.PublicIPPrefixSkuTier + +const ( + PublicIPPrefixSkuTierGlobal PublicIPPrefixSkuTier = original.PublicIPPrefixSkuTierGlobal + PublicIPPrefixSkuTierRegional PublicIPPrefixSkuTier = original.PublicIPPrefixSkuTierRegional +) + type ResourceIdentityType = original.ResourceIdentityType const ( @@ -1022,6 +1073,14 @@ const ( VerbosityLevelNormal VerbosityLevel = original.VerbosityLevelNormal ) +type VirtualNetworkGatewayConnectionMode = original.VirtualNetworkGatewayConnectionMode + +const ( + VirtualNetworkGatewayConnectionModeDefault VirtualNetworkGatewayConnectionMode = original.VirtualNetworkGatewayConnectionModeDefault + VirtualNetworkGatewayConnectionModeInitiatorOnly VirtualNetworkGatewayConnectionMode = original.VirtualNetworkGatewayConnectionModeInitiatorOnly + VirtualNetworkGatewayConnectionModeResponderOnly VirtualNetworkGatewayConnectionMode = original.VirtualNetworkGatewayConnectionModeResponderOnly +) + type VirtualNetworkGatewayConnectionProtocol = original.VirtualNetworkGatewayConnectionProtocol const ( @@ -1095,6 +1154,7 @@ type VirtualNetworkGatewayType = original.VirtualNetworkGatewayType const ( VirtualNetworkGatewayTypeExpressRoute VirtualNetworkGatewayType = original.VirtualNetworkGatewayTypeExpressRoute + VirtualNetworkGatewayTypeLocalGateway VirtualNetworkGatewayType = original.VirtualNetworkGatewayTypeLocalGateway VirtualNetworkGatewayTypeVpn VirtualNetworkGatewayType = original.VirtualNetworkGatewayTypeVpn ) @@ -1418,6 +1478,11 @@ type AzureReachabilityReportItem = original.AzureReachabilityReportItem type AzureReachabilityReportLatencyInfo = original.AzureReachabilityReportLatencyInfo type AzureReachabilityReportLocation = original.AzureReachabilityReportLocation type AzureReachabilityReportParameters = original.AzureReachabilityReportParameters +type AzureWebCategory = original.AzureWebCategory +type AzureWebCategoryListResult = original.AzureWebCategoryListResult +type AzureWebCategoryListResultIterator = original.AzureWebCategoryListResultIterator +type AzureWebCategoryListResultPage = original.AzureWebCategoryListResultPage +type AzureWebCategoryPropertiesFormat = original.AzureWebCategoryPropertiesFormat type BGPCommunity = original.BGPCommunity type BackendAddressPool = original.BackendAddressPool type BackendAddressPoolPropertiesFormat = original.BackendAddressPoolPropertiesFormat @@ -1670,12 +1735,18 @@ type ExpressRouteServiceProviderListResultIterator = original.ExpressRouteServic type ExpressRouteServiceProviderListResultPage = original.ExpressRouteServiceProviderListResultPage type ExpressRouteServiceProviderPropertiesFormat = original.ExpressRouteServiceProviderPropertiesFormat type ExpressRouteServiceProvidersClient = original.ExpressRouteServiceProvidersClient +type ExtendedLocation = original.ExtendedLocation type FirewallPoliciesClient = original.FirewallPoliciesClient type FirewallPoliciesCreateOrUpdateFuture = original.FirewallPoliciesCreateOrUpdateFuture type FirewallPoliciesDeleteFuture = original.FirewallPoliciesDeleteFuture type FirewallPolicy = original.FirewallPolicy +type FirewallPolicyCertificateAuthority = original.FirewallPolicyCertificateAuthority type FirewallPolicyFilterRuleCollection = original.FirewallPolicyFilterRuleCollection type FirewallPolicyFilterRuleCollectionAction = original.FirewallPolicyFilterRuleCollectionAction +type FirewallPolicyIntrusionDetection = original.FirewallPolicyIntrusionDetection +type FirewallPolicyIntrusionDetectionBypassTrafficSpecifications = original.FirewallPolicyIntrusionDetectionBypassTrafficSpecifications +type FirewallPolicyIntrusionDetectionConfiguration = original.FirewallPolicyIntrusionDetectionConfiguration +type FirewallPolicyIntrusionDetectionSignatureSpecification = original.FirewallPolicyIntrusionDetectionSignatureSpecification type FirewallPolicyListResult = original.FirewallPolicyListResult type FirewallPolicyListResultIterator = original.FirewallPolicyListResultIterator type FirewallPolicyListResultPage = original.FirewallPolicyListResultPage @@ -1693,7 +1764,9 @@ type FirewallPolicyRuleCollectionGroupProperties = original.FirewallPolicyRuleCo type FirewallPolicyRuleCollectionGroupsClient = original.FirewallPolicyRuleCollectionGroupsClient type FirewallPolicyRuleCollectionGroupsCreateOrUpdateFuture = original.FirewallPolicyRuleCollectionGroupsCreateOrUpdateFuture type FirewallPolicyRuleCollectionGroupsDeleteFuture = original.FirewallPolicyRuleCollectionGroupsDeleteFuture +type FirewallPolicySku = original.FirewallPolicySku type FirewallPolicyThreatIntelWhitelist = original.FirewallPolicyThreatIntelWhitelist +type FirewallPolicyTransportSecurity = original.FirewallPolicyTransportSecurity type FlowLog = original.FlowLog type FlowLogFormatParameters = original.FlowLogFormatParameters type FlowLogInformation = original.FlowLogInformation @@ -2431,6 +2504,7 @@ type WebApplicationFirewallPolicyListResult = original.WebApplicationFirewallPol type WebApplicationFirewallPolicyListResultIterator = original.WebApplicationFirewallPolicyListResultIterator type WebApplicationFirewallPolicyListResultPage = original.WebApplicationFirewallPolicyListResultPage type WebApplicationFirewallPolicyPropertiesFormat = original.WebApplicationFirewallPolicyPropertiesFormat +type WebCategoriesClient = original.WebCategoriesClient func New(subscriptionID string) BaseClient { return original.New(subscriptionID) @@ -2573,6 +2647,12 @@ func NewAzureFirewallsClient(subscriptionID string) AzureFirewallsClient { func NewAzureFirewallsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallsClient { return original.NewAzureFirewallsClientWithBaseURI(baseURI, subscriptionID) } +func NewAzureWebCategoryListResultIterator(page AzureWebCategoryListResultPage) AzureWebCategoryListResultIterator { + return original.NewAzureWebCategoryListResultIterator(page) +} +func NewAzureWebCategoryListResultPage(cur AzureWebCategoryListResult, getNextPage func(context.Context, AzureWebCategoryListResult) (AzureWebCategoryListResult, error)) AzureWebCategoryListResultPage { + return original.NewAzureWebCategoryListResultPage(cur, getNextPage) +} func NewBastionActiveSessionListResultIterator(page BastionActiveSessionListResultPage) BastionActiveSessionListResultIterator { return original.NewBastionActiveSessionListResultIterator(page) } @@ -3629,6 +3709,12 @@ func NewWebApplicationFirewallPolicyListResultIterator(page WebApplicationFirewa func NewWebApplicationFirewallPolicyListResultPage(cur WebApplicationFirewallPolicyListResult, getNextPage func(context.Context, WebApplicationFirewallPolicyListResult) (WebApplicationFirewallPolicyListResult, error)) WebApplicationFirewallPolicyListResultPage { return original.NewWebApplicationFirewallPolicyListResultPage(cur, getNextPage) } +func NewWebCategoriesClient(subscriptionID string) WebCategoriesClient { + return original.NewWebCategoriesClient(subscriptionID) +} +func NewWebCategoriesClientWithBaseURI(baseURI string, subscriptionID string) WebCategoriesClient { + return original.NewWebCategoriesClientWithBaseURI(baseURI, subscriptionID) +} func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { return original.NewWithBaseURI(baseURI, subscriptionID) } @@ -3809,9 +3895,18 @@ func PossibleExpressRoutePeeringTypeValues() []ExpressRoutePeeringType { func PossibleExpressRoutePortsEncapsulationValues() []ExpressRoutePortsEncapsulation { return original.PossibleExpressRoutePortsEncapsulationValues() } +func PossibleExtendedLocationTypesValues() []ExtendedLocationTypes { + return original.PossibleExtendedLocationTypesValues() +} func PossibleFirewallPolicyFilterRuleCollectionActionTypeValues() []FirewallPolicyFilterRuleCollectionActionType { return original.PossibleFirewallPolicyFilterRuleCollectionActionTypeValues() } +func PossibleFirewallPolicyIntrusionDetectionProtocolValues() []FirewallPolicyIntrusionDetectionProtocol { + return original.PossibleFirewallPolicyIntrusionDetectionProtocolValues() +} +func PossibleFirewallPolicyIntrusionDetectionStateTypeValues() []FirewallPolicyIntrusionDetectionStateType { + return original.PossibleFirewallPolicyIntrusionDetectionStateTypeValues() +} func PossibleFirewallPolicyNatRuleCollectionActionTypeValues() []FirewallPolicyNatRuleCollectionActionType { return original.PossibleFirewallPolicyNatRuleCollectionActionTypeValues() } @@ -3821,6 +3916,9 @@ func PossibleFirewallPolicyRuleApplicationProtocolTypeValues() []FirewallPolicyR func PossibleFirewallPolicyRuleNetworkProtocolValues() []FirewallPolicyRuleNetworkProtocol { return original.PossibleFirewallPolicyRuleNetworkProtocolValues() } +func PossibleFirewallPolicySkuTierValues() []FirewallPolicySkuTier { + return original.PossibleFirewallPolicySkuTierValues() +} func PossibleFlowLogFormatTypeValues() []FlowLogFormatType { return original.PossibleFlowLogFormatTypeValues() } @@ -3872,6 +3970,9 @@ func PossibleLoadBalancerOutboundRuleProtocolValues() []LoadBalancerOutboundRule func PossibleLoadBalancerSkuNameValues() []LoadBalancerSkuName { return original.PossibleLoadBalancerSkuNameValues() } +func PossibleLoadBalancerSkuTierValues() []LoadBalancerSkuTier { + return original.PossibleLoadBalancerSkuTierValues() +} func PossibleLoadDistributionValues() []LoadDistribution { return original.PossibleLoadDistributionValues() } @@ -3935,9 +4036,15 @@ func PossibleProvisioningStateValues() []ProvisioningState { func PossiblePublicIPAddressSkuNameValues() []PublicIPAddressSkuName { return original.PossiblePublicIPAddressSkuNameValues() } +func PossiblePublicIPAddressSkuTierValues() []PublicIPAddressSkuTier { + return original.PossiblePublicIPAddressSkuTierValues() +} func PossiblePublicIPPrefixSkuNameValues() []PublicIPPrefixSkuName { return original.PossiblePublicIPPrefixSkuNameValues() } +func PossiblePublicIPPrefixSkuTierValues() []PublicIPPrefixSkuTier { + return original.PossiblePublicIPPrefixSkuTierValues() +} func PossibleResourceIdentityTypeValues() []ResourceIdentityType { return original.PossibleResourceIdentityTypeValues() } @@ -3983,6 +4090,9 @@ func PossibleTunnelConnectionStatusValues() []TunnelConnectionStatus { func PossibleVerbosityLevelValues() []VerbosityLevel { return original.PossibleVerbosityLevelValues() } +func PossibleVirtualNetworkGatewayConnectionModeValues() []VirtualNetworkGatewayConnectionMode { + return original.PossibleVirtualNetworkGatewayConnectionModeValues() +} func PossibleVirtualNetworkGatewayConnectionProtocolValues() []VirtualNetworkGatewayConnectionProtocol { return original.PossibleVirtualNetworkGatewayConnectionProtocolValues() } diff --git a/profiles/latest/network/mgmt/network/networkapi/models.go b/profiles/latest/network/mgmt/network/networkapi/models.go index 2d729d461471..9e07996ef336 100644 --- a/profiles/latest/network/mgmt/network/networkapi/models.go +++ b/profiles/latest/network/mgmt/network/networkapi/models.go @@ -19,7 +19,7 @@ package networkapi -import original "github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-06-01/network/networkapi" +import original "github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-07-01/network/networkapi" type ApplicationGatewayPrivateEndpointConnectionsClientAPI = original.ApplicationGatewayPrivateEndpointConnectionsClientAPI type ApplicationGatewayPrivateLinkResourcesClientAPI = original.ApplicationGatewayPrivateLinkResourcesClientAPI @@ -126,3 +126,4 @@ type VpnSitesClientAPI = original.VpnSitesClientAPI type VpnSitesConfigurationClientAPI = original.VpnSitesConfigurationClientAPI type WatchersClientAPI = original.WatchersClientAPI type WebApplicationFirewallPoliciesClientAPI = original.WebApplicationFirewallPoliciesClientAPI +type WebCategoriesClientAPI = original.WebCategoriesClientAPI diff --git a/profiles/preview/network/mgmt/network/models.go b/profiles/preview/network/mgmt/network/models.go index 659d3d1b41f3..786cb950f2c1 100644 --- a/profiles/preview/network/mgmt/network/models.go +++ b/profiles/preview/network/mgmt/network/models.go @@ -22,7 +22,7 @@ package network import ( "context" - original "github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-06-01/network" + original "github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-07-01/network" ) const ( @@ -527,6 +527,12 @@ const ( QinQ ExpressRoutePortsEncapsulation = original.QinQ ) +type ExtendedLocationTypes = original.ExtendedLocationTypes + +const ( + EdgeZone ExtendedLocationTypes = original.EdgeZone +) + type FirewallPolicyFilterRuleCollectionActionType = original.FirewallPolicyFilterRuleCollectionActionType const ( @@ -534,6 +540,23 @@ const ( FirewallPolicyFilterRuleCollectionActionTypeDeny FirewallPolicyFilterRuleCollectionActionType = original.FirewallPolicyFilterRuleCollectionActionTypeDeny ) +type FirewallPolicyIntrusionDetectionProtocol = original.FirewallPolicyIntrusionDetectionProtocol + +const ( + FirewallPolicyIntrusionDetectionProtocolANY FirewallPolicyIntrusionDetectionProtocol = original.FirewallPolicyIntrusionDetectionProtocolANY + FirewallPolicyIntrusionDetectionProtocolICMP FirewallPolicyIntrusionDetectionProtocol = original.FirewallPolicyIntrusionDetectionProtocolICMP + FirewallPolicyIntrusionDetectionProtocolTCP FirewallPolicyIntrusionDetectionProtocol = original.FirewallPolicyIntrusionDetectionProtocolTCP + FirewallPolicyIntrusionDetectionProtocolUDP FirewallPolicyIntrusionDetectionProtocol = original.FirewallPolicyIntrusionDetectionProtocolUDP +) + +type FirewallPolicyIntrusionDetectionStateType = original.FirewallPolicyIntrusionDetectionStateType + +const ( + FirewallPolicyIntrusionDetectionStateTypeAlert FirewallPolicyIntrusionDetectionStateType = original.FirewallPolicyIntrusionDetectionStateTypeAlert + FirewallPolicyIntrusionDetectionStateTypeDeny FirewallPolicyIntrusionDetectionStateType = original.FirewallPolicyIntrusionDetectionStateTypeDeny + FirewallPolicyIntrusionDetectionStateTypeOff FirewallPolicyIntrusionDetectionStateType = original.FirewallPolicyIntrusionDetectionStateTypeOff +) + type FirewallPolicyNatRuleCollectionActionType = original.FirewallPolicyNatRuleCollectionActionType const ( @@ -556,6 +579,13 @@ const ( FirewallPolicyRuleNetworkProtocolUDP FirewallPolicyRuleNetworkProtocol = original.FirewallPolicyRuleNetworkProtocolUDP ) +type FirewallPolicySkuTier = original.FirewallPolicySkuTier + +const ( + FirewallPolicySkuTierPremium FirewallPolicySkuTier = original.FirewallPolicySkuTierPremium + FirewallPolicySkuTierStandard FirewallPolicySkuTier = original.FirewallPolicySkuTierStandard +) + type FlowLogFormatType = original.FlowLogFormatType const ( @@ -705,6 +735,13 @@ const ( LoadBalancerSkuNameStandard LoadBalancerSkuName = original.LoadBalancerSkuNameStandard ) +type LoadBalancerSkuTier = original.LoadBalancerSkuTier + +const ( + Global LoadBalancerSkuTier = original.Global + Regional LoadBalancerSkuTier = original.Regional +) + type LoadDistribution = original.LoadDistribution const ( @@ -888,12 +925,26 @@ const ( PublicIPAddressSkuNameStandard PublicIPAddressSkuName = original.PublicIPAddressSkuNameStandard ) +type PublicIPAddressSkuTier = original.PublicIPAddressSkuTier + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = original.PublicIPAddressSkuTierGlobal + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = original.PublicIPAddressSkuTierRegional +) + type PublicIPPrefixSkuName = original.PublicIPPrefixSkuName const ( PublicIPPrefixSkuNameStandard PublicIPPrefixSkuName = original.PublicIPPrefixSkuNameStandard ) +type PublicIPPrefixSkuTier = original.PublicIPPrefixSkuTier + +const ( + PublicIPPrefixSkuTierGlobal PublicIPPrefixSkuTier = original.PublicIPPrefixSkuTierGlobal + PublicIPPrefixSkuTierRegional PublicIPPrefixSkuTier = original.PublicIPPrefixSkuTierRegional +) + type ResourceIdentityType = original.ResourceIdentityType const ( @@ -1022,6 +1073,14 @@ const ( VerbosityLevelNormal VerbosityLevel = original.VerbosityLevelNormal ) +type VirtualNetworkGatewayConnectionMode = original.VirtualNetworkGatewayConnectionMode + +const ( + VirtualNetworkGatewayConnectionModeDefault VirtualNetworkGatewayConnectionMode = original.VirtualNetworkGatewayConnectionModeDefault + VirtualNetworkGatewayConnectionModeInitiatorOnly VirtualNetworkGatewayConnectionMode = original.VirtualNetworkGatewayConnectionModeInitiatorOnly + VirtualNetworkGatewayConnectionModeResponderOnly VirtualNetworkGatewayConnectionMode = original.VirtualNetworkGatewayConnectionModeResponderOnly +) + type VirtualNetworkGatewayConnectionProtocol = original.VirtualNetworkGatewayConnectionProtocol const ( @@ -1095,6 +1154,7 @@ type VirtualNetworkGatewayType = original.VirtualNetworkGatewayType const ( VirtualNetworkGatewayTypeExpressRoute VirtualNetworkGatewayType = original.VirtualNetworkGatewayTypeExpressRoute + VirtualNetworkGatewayTypeLocalGateway VirtualNetworkGatewayType = original.VirtualNetworkGatewayTypeLocalGateway VirtualNetworkGatewayTypeVpn VirtualNetworkGatewayType = original.VirtualNetworkGatewayTypeVpn ) @@ -1418,6 +1478,11 @@ type AzureReachabilityReportItem = original.AzureReachabilityReportItem type AzureReachabilityReportLatencyInfo = original.AzureReachabilityReportLatencyInfo type AzureReachabilityReportLocation = original.AzureReachabilityReportLocation type AzureReachabilityReportParameters = original.AzureReachabilityReportParameters +type AzureWebCategory = original.AzureWebCategory +type AzureWebCategoryListResult = original.AzureWebCategoryListResult +type AzureWebCategoryListResultIterator = original.AzureWebCategoryListResultIterator +type AzureWebCategoryListResultPage = original.AzureWebCategoryListResultPage +type AzureWebCategoryPropertiesFormat = original.AzureWebCategoryPropertiesFormat type BGPCommunity = original.BGPCommunity type BackendAddressPool = original.BackendAddressPool type BackendAddressPoolPropertiesFormat = original.BackendAddressPoolPropertiesFormat @@ -1670,12 +1735,18 @@ type ExpressRouteServiceProviderListResultIterator = original.ExpressRouteServic type ExpressRouteServiceProviderListResultPage = original.ExpressRouteServiceProviderListResultPage type ExpressRouteServiceProviderPropertiesFormat = original.ExpressRouteServiceProviderPropertiesFormat type ExpressRouteServiceProvidersClient = original.ExpressRouteServiceProvidersClient +type ExtendedLocation = original.ExtendedLocation type FirewallPoliciesClient = original.FirewallPoliciesClient type FirewallPoliciesCreateOrUpdateFuture = original.FirewallPoliciesCreateOrUpdateFuture type FirewallPoliciesDeleteFuture = original.FirewallPoliciesDeleteFuture type FirewallPolicy = original.FirewallPolicy +type FirewallPolicyCertificateAuthority = original.FirewallPolicyCertificateAuthority type FirewallPolicyFilterRuleCollection = original.FirewallPolicyFilterRuleCollection type FirewallPolicyFilterRuleCollectionAction = original.FirewallPolicyFilterRuleCollectionAction +type FirewallPolicyIntrusionDetection = original.FirewallPolicyIntrusionDetection +type FirewallPolicyIntrusionDetectionBypassTrafficSpecifications = original.FirewallPolicyIntrusionDetectionBypassTrafficSpecifications +type FirewallPolicyIntrusionDetectionConfiguration = original.FirewallPolicyIntrusionDetectionConfiguration +type FirewallPolicyIntrusionDetectionSignatureSpecification = original.FirewallPolicyIntrusionDetectionSignatureSpecification type FirewallPolicyListResult = original.FirewallPolicyListResult type FirewallPolicyListResultIterator = original.FirewallPolicyListResultIterator type FirewallPolicyListResultPage = original.FirewallPolicyListResultPage @@ -1693,7 +1764,9 @@ type FirewallPolicyRuleCollectionGroupProperties = original.FirewallPolicyRuleCo type FirewallPolicyRuleCollectionGroupsClient = original.FirewallPolicyRuleCollectionGroupsClient type FirewallPolicyRuleCollectionGroupsCreateOrUpdateFuture = original.FirewallPolicyRuleCollectionGroupsCreateOrUpdateFuture type FirewallPolicyRuleCollectionGroupsDeleteFuture = original.FirewallPolicyRuleCollectionGroupsDeleteFuture +type FirewallPolicySku = original.FirewallPolicySku type FirewallPolicyThreatIntelWhitelist = original.FirewallPolicyThreatIntelWhitelist +type FirewallPolicyTransportSecurity = original.FirewallPolicyTransportSecurity type FlowLog = original.FlowLog type FlowLogFormatParameters = original.FlowLogFormatParameters type FlowLogInformation = original.FlowLogInformation @@ -2431,6 +2504,7 @@ type WebApplicationFirewallPolicyListResult = original.WebApplicationFirewallPol type WebApplicationFirewallPolicyListResultIterator = original.WebApplicationFirewallPolicyListResultIterator type WebApplicationFirewallPolicyListResultPage = original.WebApplicationFirewallPolicyListResultPage type WebApplicationFirewallPolicyPropertiesFormat = original.WebApplicationFirewallPolicyPropertiesFormat +type WebCategoriesClient = original.WebCategoriesClient func New(subscriptionID string) BaseClient { return original.New(subscriptionID) @@ -2573,6 +2647,12 @@ func NewAzureFirewallsClient(subscriptionID string) AzureFirewallsClient { func NewAzureFirewallsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallsClient { return original.NewAzureFirewallsClientWithBaseURI(baseURI, subscriptionID) } +func NewAzureWebCategoryListResultIterator(page AzureWebCategoryListResultPage) AzureWebCategoryListResultIterator { + return original.NewAzureWebCategoryListResultIterator(page) +} +func NewAzureWebCategoryListResultPage(cur AzureWebCategoryListResult, getNextPage func(context.Context, AzureWebCategoryListResult) (AzureWebCategoryListResult, error)) AzureWebCategoryListResultPage { + return original.NewAzureWebCategoryListResultPage(cur, getNextPage) +} func NewBastionActiveSessionListResultIterator(page BastionActiveSessionListResultPage) BastionActiveSessionListResultIterator { return original.NewBastionActiveSessionListResultIterator(page) } @@ -3629,6 +3709,12 @@ func NewWebApplicationFirewallPolicyListResultIterator(page WebApplicationFirewa func NewWebApplicationFirewallPolicyListResultPage(cur WebApplicationFirewallPolicyListResult, getNextPage func(context.Context, WebApplicationFirewallPolicyListResult) (WebApplicationFirewallPolicyListResult, error)) WebApplicationFirewallPolicyListResultPage { return original.NewWebApplicationFirewallPolicyListResultPage(cur, getNextPage) } +func NewWebCategoriesClient(subscriptionID string) WebCategoriesClient { + return original.NewWebCategoriesClient(subscriptionID) +} +func NewWebCategoriesClientWithBaseURI(baseURI string, subscriptionID string) WebCategoriesClient { + return original.NewWebCategoriesClientWithBaseURI(baseURI, subscriptionID) +} func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { return original.NewWithBaseURI(baseURI, subscriptionID) } @@ -3809,9 +3895,18 @@ func PossibleExpressRoutePeeringTypeValues() []ExpressRoutePeeringType { func PossibleExpressRoutePortsEncapsulationValues() []ExpressRoutePortsEncapsulation { return original.PossibleExpressRoutePortsEncapsulationValues() } +func PossibleExtendedLocationTypesValues() []ExtendedLocationTypes { + return original.PossibleExtendedLocationTypesValues() +} func PossibleFirewallPolicyFilterRuleCollectionActionTypeValues() []FirewallPolicyFilterRuleCollectionActionType { return original.PossibleFirewallPolicyFilterRuleCollectionActionTypeValues() } +func PossibleFirewallPolicyIntrusionDetectionProtocolValues() []FirewallPolicyIntrusionDetectionProtocol { + return original.PossibleFirewallPolicyIntrusionDetectionProtocolValues() +} +func PossibleFirewallPolicyIntrusionDetectionStateTypeValues() []FirewallPolicyIntrusionDetectionStateType { + return original.PossibleFirewallPolicyIntrusionDetectionStateTypeValues() +} func PossibleFirewallPolicyNatRuleCollectionActionTypeValues() []FirewallPolicyNatRuleCollectionActionType { return original.PossibleFirewallPolicyNatRuleCollectionActionTypeValues() } @@ -3821,6 +3916,9 @@ func PossibleFirewallPolicyRuleApplicationProtocolTypeValues() []FirewallPolicyR func PossibleFirewallPolicyRuleNetworkProtocolValues() []FirewallPolicyRuleNetworkProtocol { return original.PossibleFirewallPolicyRuleNetworkProtocolValues() } +func PossibleFirewallPolicySkuTierValues() []FirewallPolicySkuTier { + return original.PossibleFirewallPolicySkuTierValues() +} func PossibleFlowLogFormatTypeValues() []FlowLogFormatType { return original.PossibleFlowLogFormatTypeValues() } @@ -3872,6 +3970,9 @@ func PossibleLoadBalancerOutboundRuleProtocolValues() []LoadBalancerOutboundRule func PossibleLoadBalancerSkuNameValues() []LoadBalancerSkuName { return original.PossibleLoadBalancerSkuNameValues() } +func PossibleLoadBalancerSkuTierValues() []LoadBalancerSkuTier { + return original.PossibleLoadBalancerSkuTierValues() +} func PossibleLoadDistributionValues() []LoadDistribution { return original.PossibleLoadDistributionValues() } @@ -3935,9 +4036,15 @@ func PossibleProvisioningStateValues() []ProvisioningState { func PossiblePublicIPAddressSkuNameValues() []PublicIPAddressSkuName { return original.PossiblePublicIPAddressSkuNameValues() } +func PossiblePublicIPAddressSkuTierValues() []PublicIPAddressSkuTier { + return original.PossiblePublicIPAddressSkuTierValues() +} func PossiblePublicIPPrefixSkuNameValues() []PublicIPPrefixSkuName { return original.PossiblePublicIPPrefixSkuNameValues() } +func PossiblePublicIPPrefixSkuTierValues() []PublicIPPrefixSkuTier { + return original.PossiblePublicIPPrefixSkuTierValues() +} func PossibleResourceIdentityTypeValues() []ResourceIdentityType { return original.PossibleResourceIdentityTypeValues() } @@ -3983,6 +4090,9 @@ func PossibleTunnelConnectionStatusValues() []TunnelConnectionStatus { func PossibleVerbosityLevelValues() []VerbosityLevel { return original.PossibleVerbosityLevelValues() } +func PossibleVirtualNetworkGatewayConnectionModeValues() []VirtualNetworkGatewayConnectionMode { + return original.PossibleVirtualNetworkGatewayConnectionModeValues() +} func PossibleVirtualNetworkGatewayConnectionProtocolValues() []VirtualNetworkGatewayConnectionProtocol { return original.PossibleVirtualNetworkGatewayConnectionProtocolValues() } diff --git a/profiles/preview/network/mgmt/network/networkapi/models.go b/profiles/preview/network/mgmt/network/networkapi/models.go index 2d729d461471..9e07996ef336 100644 --- a/profiles/preview/network/mgmt/network/networkapi/models.go +++ b/profiles/preview/network/mgmt/network/networkapi/models.go @@ -19,7 +19,7 @@ package networkapi -import original "github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-06-01/network/networkapi" +import original "github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-07-01/network/networkapi" type ApplicationGatewayPrivateEndpointConnectionsClientAPI = original.ApplicationGatewayPrivateEndpointConnectionsClientAPI type ApplicationGatewayPrivateLinkResourcesClientAPI = original.ApplicationGatewayPrivateLinkResourcesClientAPI @@ -126,3 +126,4 @@ type VpnSitesClientAPI = original.VpnSitesClientAPI type VpnSitesConfigurationClientAPI = original.VpnSitesConfigurationClientAPI type WatchersClientAPI = original.WatchersClientAPI type WebApplicationFirewallPoliciesClientAPI = original.WebApplicationFirewallPoliciesClientAPI +type WebCategoriesClientAPI = original.WebCategoriesClientAPI diff --git a/services/network/mgmt/2020-07-01/network/CHANGELOG.md b/services/network/mgmt/2020-07-01/network/CHANGELOG.md new file mode 100644 index 000000000000..3501309e5585 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/CHANGELOG.md @@ -0,0 +1,5 @@ +Generated from https://github.com/Azure/azure-rest-api-specs/tree/3a3a9452f965a227ce43e6b545035b99dd175f23 + +Code generator @microsoft.azure/autorest.go@~2.1.165 + +This is a new package \ No newline at end of file diff --git a/services/network/mgmt/2020-07-01/network/applicationgatewayprivateendpointconnections.go b/services/network/mgmt/2020-07-01/network/applicationgatewayprivateendpointconnections.go new file mode 100644 index 000000000000..bbbc3a334ca6 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/applicationgatewayprivateendpointconnections.go @@ -0,0 +1,398 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ApplicationGatewayPrivateEndpointConnectionsClient is the network Client +type ApplicationGatewayPrivateEndpointConnectionsClient struct { + BaseClient +} + +// NewApplicationGatewayPrivateEndpointConnectionsClient creates an instance of the +// ApplicationGatewayPrivateEndpointConnectionsClient client. +func NewApplicationGatewayPrivateEndpointConnectionsClient(subscriptionID string) ApplicationGatewayPrivateEndpointConnectionsClient { + return NewApplicationGatewayPrivateEndpointConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewApplicationGatewayPrivateEndpointConnectionsClientWithBaseURI creates an instance of the +// ApplicationGatewayPrivateEndpointConnectionsClient client using a custom endpoint. Use this when interacting with +// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewApplicationGatewayPrivateEndpointConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewayPrivateEndpointConnectionsClient { + return ApplicationGatewayPrivateEndpointConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Delete deletes the specified private endpoint connection on application gateway. +// Parameters: +// resourceGroupName - the name of the resource group. +// applicationGatewayName - the name of the application gateway. +// connectionName - the name of the application gateway private endpoint connection. +func (client ApplicationGatewayPrivateEndpointConnectionsClient) Delete(ctx context.Context, resourceGroupName string, applicationGatewayName string, connectionName string) (result ApplicationGatewayPrivateEndpointConnectionsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewayPrivateEndpointConnectionsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, applicationGatewayName, connectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateEndpointConnectionsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateEndpointConnectionsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client ApplicationGatewayPrivateEndpointConnectionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, applicationGatewayName string, connectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "applicationGatewayName": autorest.Encode("path", applicationGatewayName), + "connectionName": autorest.Encode("path", connectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/privateEndpointConnections/{connectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationGatewayPrivateEndpointConnectionsClient) DeleteSender(req *http.Request) (future ApplicationGatewayPrivateEndpointConnectionsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client ApplicationGatewayPrivateEndpointConnectionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified private endpoint connection on application gateway. +// Parameters: +// resourceGroupName - the name of the resource group. +// applicationGatewayName - the name of the application gateway. +// connectionName - the name of the application gateway private endpoint connection. +func (client ApplicationGatewayPrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, applicationGatewayName string, connectionName string) (result ApplicationGatewayPrivateEndpointConnection, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewayPrivateEndpointConnectionsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, applicationGatewayName, connectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateEndpointConnectionsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateEndpointConnectionsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ApplicationGatewayPrivateEndpointConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, applicationGatewayName string, connectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "applicationGatewayName": autorest.Encode("path", applicationGatewayName), + "connectionName": autorest.Encode("path", connectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/privateEndpointConnections/{connectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationGatewayPrivateEndpointConnectionsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ApplicationGatewayPrivateEndpointConnectionsClient) GetResponder(resp *http.Response) (result ApplicationGatewayPrivateEndpointConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all private endpoint connections on an application gateway. +// Parameters: +// resourceGroupName - the name of the resource group. +// applicationGatewayName - the name of the application gateway. +func (client ApplicationGatewayPrivateEndpointConnectionsClient) List(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result ApplicationGatewayPrivateEndpointConnectionListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewayPrivateEndpointConnectionsClient.List") + defer func() { + sc := -1 + if result.agpeclr.Response.Response != nil { + sc = result.agpeclr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, applicationGatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateEndpointConnectionsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.agpeclr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateEndpointConnectionsClient", "List", resp, "Failure sending request") + return + } + + result.agpeclr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateEndpointConnectionsClient", "List", resp, "Failure responding to request") + return + } + if result.agpeclr.hasNextLink() && result.agpeclr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ApplicationGatewayPrivateEndpointConnectionsClient) ListPreparer(ctx context.Context, resourceGroupName string, applicationGatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "applicationGatewayName": autorest.Encode("path", applicationGatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/privateEndpointConnections", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationGatewayPrivateEndpointConnectionsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ApplicationGatewayPrivateEndpointConnectionsClient) ListResponder(resp *http.Response) (result ApplicationGatewayPrivateEndpointConnectionListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client ApplicationGatewayPrivateEndpointConnectionsClient) listNextResults(ctx context.Context, lastResults ApplicationGatewayPrivateEndpointConnectionListResult) (result ApplicationGatewayPrivateEndpointConnectionListResult, err error) { + req, err := lastResults.applicationGatewayPrivateEndpointConnectionListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateEndpointConnectionsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateEndpointConnectionsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateEndpointConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ApplicationGatewayPrivateEndpointConnectionsClient) ListComplete(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result ApplicationGatewayPrivateEndpointConnectionListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewayPrivateEndpointConnectionsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, applicationGatewayName) + return +} + +// Update updates the specified private endpoint connection on application gateway. +// Parameters: +// resourceGroupName - the name of the resource group. +// applicationGatewayName - the name of the application gateway. +// connectionName - the name of the application gateway private endpoint connection. +// parameters - parameters supplied to update application gateway private endpoint connection operation. +func (client ApplicationGatewayPrivateEndpointConnectionsClient) Update(ctx context.Context, resourceGroupName string, applicationGatewayName string, connectionName string, parameters ApplicationGatewayPrivateEndpointConnection) (result ApplicationGatewayPrivateEndpointConnectionsUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewayPrivateEndpointConnectionsClient.Update") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdatePreparer(ctx, resourceGroupName, applicationGatewayName, connectionName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateEndpointConnectionsClient", "Update", nil, "Failure preparing request") + return + } + + result, err = client.UpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateEndpointConnectionsClient", "Update", result.Response(), "Failure sending request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client ApplicationGatewayPrivateEndpointConnectionsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, applicationGatewayName string, connectionName string, parameters ApplicationGatewayPrivateEndpointConnection) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "applicationGatewayName": autorest.Encode("path", applicationGatewayName), + "connectionName": autorest.Encode("path", connectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + parameters.Type = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/privateEndpointConnections/{connectionName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationGatewayPrivateEndpointConnectionsClient) UpdateSender(req *http.Request) (future ApplicationGatewayPrivateEndpointConnectionsUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client ApplicationGatewayPrivateEndpointConnectionsClient) UpdateResponder(resp *http.Response) (result ApplicationGatewayPrivateEndpointConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/applicationgatewayprivatelinkresources.go b/services/network/mgmt/2020-07-01/network/applicationgatewayprivatelinkresources.go new file mode 100644 index 000000000000..4be78f920934 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/applicationgatewayprivatelinkresources.go @@ -0,0 +1,162 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ApplicationGatewayPrivateLinkResourcesClient is the network Client +type ApplicationGatewayPrivateLinkResourcesClient struct { + BaseClient +} + +// NewApplicationGatewayPrivateLinkResourcesClient creates an instance of the +// ApplicationGatewayPrivateLinkResourcesClient client. +func NewApplicationGatewayPrivateLinkResourcesClient(subscriptionID string) ApplicationGatewayPrivateLinkResourcesClient { + return NewApplicationGatewayPrivateLinkResourcesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewApplicationGatewayPrivateLinkResourcesClientWithBaseURI creates an instance of the +// ApplicationGatewayPrivateLinkResourcesClient client using a custom endpoint. Use this when interacting with an +// Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewApplicationGatewayPrivateLinkResourcesClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewayPrivateLinkResourcesClient { + return ApplicationGatewayPrivateLinkResourcesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List lists all private link resources on an application gateway. +// Parameters: +// resourceGroupName - the name of the resource group. +// applicationGatewayName - the name of the application gateway. +func (client ApplicationGatewayPrivateLinkResourcesClient) List(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result ApplicationGatewayPrivateLinkResourceListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewayPrivateLinkResourcesClient.List") + defer func() { + sc := -1 + if result.agplrlr.Response.Response != nil { + sc = result.agplrlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, applicationGatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateLinkResourcesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.agplrlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateLinkResourcesClient", "List", resp, "Failure sending request") + return + } + + result.agplrlr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateLinkResourcesClient", "List", resp, "Failure responding to request") + return + } + if result.agplrlr.hasNextLink() && result.agplrlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ApplicationGatewayPrivateLinkResourcesClient) ListPreparer(ctx context.Context, resourceGroupName string, applicationGatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "applicationGatewayName": autorest.Encode("path", applicationGatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/privateLinkResources", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationGatewayPrivateLinkResourcesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ApplicationGatewayPrivateLinkResourcesClient) ListResponder(resp *http.Response) (result ApplicationGatewayPrivateLinkResourceListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client ApplicationGatewayPrivateLinkResourcesClient) listNextResults(ctx context.Context, lastResults ApplicationGatewayPrivateLinkResourceListResult) (result ApplicationGatewayPrivateLinkResourceListResult, err error) { + req, err := lastResults.applicationGatewayPrivateLinkResourceListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateLinkResourcesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateLinkResourcesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateLinkResourcesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ApplicationGatewayPrivateLinkResourcesClient) ListComplete(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result ApplicationGatewayPrivateLinkResourceListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewayPrivateLinkResourcesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, applicationGatewayName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/applicationgateways.go b/services/network/mgmt/2020-07-01/network/applicationgateways.go new file mode 100644 index 000000000000..14f2657a31eb --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/applicationgateways.go @@ -0,0 +1,1461 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ApplicationGatewaysClient is the network Client +type ApplicationGatewaysClient struct { + BaseClient +} + +// NewApplicationGatewaysClient creates an instance of the ApplicationGatewaysClient client. +func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClient { + return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient { + return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// BackendHealth gets the backend health of the specified application gateway in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// applicationGatewayName - the name of the application gateway. +// expand - expands BackendAddressPool and BackendHttpSettings referenced in backend health. +func (client ApplicationGatewaysClient) BackendHealth(ctx context.Context, resourceGroupName string, applicationGatewayName string, expand string) (result ApplicationGatewaysBackendHealthFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.BackendHealth") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.BackendHealthPreparer(ctx, resourceGroupName, applicationGatewayName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "BackendHealth", nil, "Failure preparing request") + return + } + + result, err = client.BackendHealthSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "BackendHealth", result.Response(), "Failure sending request") + return + } + + return +} + +// BackendHealthPreparer prepares the BackendHealth request. +func (client ApplicationGatewaysClient) BackendHealthPreparer(ctx context.Context, resourceGroupName string, applicationGatewayName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "applicationGatewayName": autorest.Encode("path", applicationGatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendhealth", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// BackendHealthSender sends the BackendHealth request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationGatewaysClient) BackendHealthSender(req *http.Request) (future ApplicationGatewaysBackendHealthFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// BackendHealthResponder handles the response to the BackendHealth request. The method always +// closes the http.Response Body. +func (client ApplicationGatewaysClient) BackendHealthResponder(resp *http.Response) (result ApplicationGatewayBackendHealth, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// BackendHealthOnDemand gets the backend health for given combination of backend pool and http setting of the +// specified application gateway in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// applicationGatewayName - the name of the application gateway. +// probeRequest - request body for on-demand test probe operation. +// expand - expands BackendAddressPool and BackendHttpSettings referenced in backend health. +func (client ApplicationGatewaysClient) BackendHealthOnDemand(ctx context.Context, resourceGroupName string, applicationGatewayName string, probeRequest ApplicationGatewayOnDemandProbe, expand string) (result ApplicationGatewaysBackendHealthOnDemandFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.BackendHealthOnDemand") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.BackendHealthOnDemandPreparer(ctx, resourceGroupName, applicationGatewayName, probeRequest, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "BackendHealthOnDemand", nil, "Failure preparing request") + return + } + + result, err = client.BackendHealthOnDemandSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "BackendHealthOnDemand", result.Response(), "Failure sending request") + return + } + + return +} + +// BackendHealthOnDemandPreparer prepares the BackendHealthOnDemand request. +func (client ApplicationGatewaysClient) BackendHealthOnDemandPreparer(ctx context.Context, resourceGroupName string, applicationGatewayName string, probeRequest ApplicationGatewayOnDemandProbe, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "applicationGatewayName": autorest.Encode("path", applicationGatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/getBackendHealthOnDemand", pathParameters), + autorest.WithJSON(probeRequest), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// BackendHealthOnDemandSender sends the BackendHealthOnDemand request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationGatewaysClient) BackendHealthOnDemandSender(req *http.Request) (future ApplicationGatewaysBackendHealthOnDemandFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// BackendHealthOnDemandResponder handles the response to the BackendHealthOnDemand request. The method always +// closes the http.Response Body. +func (client ApplicationGatewaysClient) BackendHealthOnDemandResponder(resp *http.Response) (result ApplicationGatewayBackendHealthOnDemand, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// CreateOrUpdate creates or updates the specified application gateway. +// Parameters: +// resourceGroupName - the name of the resource group. +// applicationGatewayName - the name of the application gateway. +// parameters - parameters supplied to the create or update application gateway operation. +func (client ApplicationGatewaysClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, applicationGatewayName string, parameters ApplicationGateway) (result ApplicationGatewaysCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.ApplicationGatewayPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.ApplicationGatewayPropertiesFormat.WebApplicationFirewallConfiguration", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.ApplicationGatewayPropertiesFormat.WebApplicationFirewallConfiguration.Enabled", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.ApplicationGatewayPropertiesFormat.WebApplicationFirewallConfiguration.RuleSetType", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.ApplicationGatewayPropertiesFormat.WebApplicationFirewallConfiguration.RuleSetVersion", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.ApplicationGatewayPropertiesFormat.WebApplicationFirewallConfiguration.MaxRequestBodySize", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.ApplicationGatewayPropertiesFormat.WebApplicationFirewallConfiguration.MaxRequestBodySize", Name: validation.InclusiveMaximum, Rule: int64(128), Chain: nil}, + {Target: "parameters.ApplicationGatewayPropertiesFormat.WebApplicationFirewallConfiguration.MaxRequestBodySize", Name: validation.InclusiveMinimum, Rule: int64(8), Chain: nil}, + }}, + {Target: "parameters.ApplicationGatewayPropertiesFormat.WebApplicationFirewallConfiguration.MaxRequestBodySizeInKb", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.ApplicationGatewayPropertiesFormat.WebApplicationFirewallConfiguration.MaxRequestBodySizeInKb", Name: validation.InclusiveMaximum, Rule: int64(128), Chain: nil}, + {Target: "parameters.ApplicationGatewayPropertiesFormat.WebApplicationFirewallConfiguration.MaxRequestBodySizeInKb", Name: validation.InclusiveMinimum, Rule: int64(8), Chain: nil}, + }}, + {Target: "parameters.ApplicationGatewayPropertiesFormat.WebApplicationFirewallConfiguration.FileUploadLimitInMb", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.ApplicationGatewayPropertiesFormat.WebApplicationFirewallConfiguration.FileUploadLimitInMb", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}}}, + }}, + {Target: "parameters.ApplicationGatewayPropertiesFormat.AutoscaleConfiguration", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.ApplicationGatewayPropertiesFormat.AutoscaleConfiguration.MinCapacity", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "parameters.ApplicationGatewayPropertiesFormat.AutoscaleConfiguration.MinCapacity", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}}}, + {Target: "parameters.ApplicationGatewayPropertiesFormat.AutoscaleConfiguration.MaxCapacity", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.ApplicationGatewayPropertiesFormat.AutoscaleConfiguration.MaxCapacity", Name: validation.InclusiveMinimum, Rule: int64(2), Chain: nil}}}, + }}, + }}}}}); err != nil { + return result, validation.NewError("network.ApplicationGatewaysClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, applicationGatewayName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client ApplicationGatewaysClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, applicationGatewayName string, parameters ApplicationGateway) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "applicationGatewayName": autorest.Encode("path", applicationGatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationGatewaysClient) CreateOrUpdateSender(req *http.Request) (future ApplicationGatewaysCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client ApplicationGatewaysClient) CreateOrUpdateResponder(resp *http.Response) (result ApplicationGateway, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified application gateway. +// Parameters: +// resourceGroupName - the name of the resource group. +// applicationGatewayName - the name of the application gateway. +func (client ApplicationGatewaysClient) Delete(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result ApplicationGatewaysDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, applicationGatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client ApplicationGatewaysClient) DeletePreparer(ctx context.Context, resourceGroupName string, applicationGatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "applicationGatewayName": autorest.Encode("path", applicationGatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationGatewaysClient) DeleteSender(req *http.Request) (future ApplicationGatewaysDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client ApplicationGatewaysClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified application gateway. +// Parameters: +// resourceGroupName - the name of the resource group. +// applicationGatewayName - the name of the application gateway. +func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result ApplicationGateway, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, applicationGatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ApplicationGatewaysClient) GetPreparer(ctx context.Context, resourceGroupName string, applicationGatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "applicationGatewayName": autorest.Encode("path", applicationGatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationGatewaysClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ApplicationGatewaysClient) GetResponder(resp *http.Response) (result ApplicationGateway, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetSslPredefinedPolicy gets Ssl predefined policy with the specified policy name. +// Parameters: +// predefinedPolicyName - name of Ssl predefined policy. +func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Context, predefinedPolicyName string) (result ApplicationGatewaySslPredefinedPolicy, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.GetSslPredefinedPolicy") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetSslPredefinedPolicyPreparer(ctx, predefinedPolicyName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", nil, "Failure preparing request") + return + } + + resp, err := client.GetSslPredefinedPolicySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure sending request") + return + } + + result, err = client.GetSslPredefinedPolicyResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") + return + } + + return +} + +// GetSslPredefinedPolicyPreparer prepares the GetSslPredefinedPolicy request. +func (client ApplicationGatewaysClient) GetSslPredefinedPolicyPreparer(ctx context.Context, predefinedPolicyName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "predefinedPolicyName": autorest.Encode("path", predefinedPolicyName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies/{predefinedPolicyName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSslPredefinedPolicySender sends the GetSslPredefinedPolicy request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationGatewaysClient) GetSslPredefinedPolicySender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetSslPredefinedPolicyResponder handles the response to the GetSslPredefinedPolicy request. The method always +// closes the http.Response Body. +func (client ApplicationGatewaysClient) GetSslPredefinedPolicyResponder(resp *http.Response) (result ApplicationGatewaySslPredefinedPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all application gateways in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupName string) (result ApplicationGatewayListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.List") + defer func() { + sc := -1 + if result.aglr.Response.Response != nil { + sc = result.aglr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.aglr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure sending request") + return + } + + result.aglr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") + return + } + if result.aglr.hasNextLink() && result.aglr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ApplicationGatewaysClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationGatewaysClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ApplicationGatewaysClient) ListResponder(resp *http.Response) (result ApplicationGatewayListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, lastResults ApplicationGatewayListResult) (result ApplicationGatewayListResult, err error) { + req, err := lastResults.applicationGatewayListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ApplicationGatewaysClient) ListComplete(ctx context.Context, resourceGroupName string) (result ApplicationGatewayListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName) + return +} + +// ListAll gets all the application gateways in a subscription. +func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result ApplicationGatewayListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.ListAll") + defer func() { + sc := -1 + if result.aglr.Response.Response != nil { + sc = result.aglr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listAllNextResults + req, err := client.ListAllPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", nil, "Failure preparing request") + return + } + + resp, err := client.ListAllSender(req) + if err != nil { + result.aglr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure sending request") + return + } + + result.aglr, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") + return + } + if result.aglr.hasNextLink() && result.aglr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListAllPreparer prepares the ListAll request. +func (client ApplicationGatewaysClient) ListAllPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGateways", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAllSender sends the ListAll request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationGatewaysClient) ListAllSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAllResponder handles the response to the ListAll request. The method always +// closes the http.Response Body. +func (client ApplicationGatewaysClient) ListAllResponder(resp *http.Response) (result ApplicationGatewayListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listAllNextResults retrieves the next set of results, if any. +func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, lastResults ApplicationGatewayListResult) (result ApplicationGatewayListResult, err error) { + req, err := lastResults.applicationGatewayListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListAllSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure sending next results request") + } + result, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListAllComplete enumerates all values, automatically crossing page boundaries as required. +func (client ApplicationGatewaysClient) ListAllComplete(ctx context.Context) (result ApplicationGatewayListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.ListAll") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListAll(ctx) + return +} + +// ListAvailableRequestHeaders lists all available request headers. +func (client ApplicationGatewaysClient) ListAvailableRequestHeaders(ctx context.Context) (result ListString, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.ListAvailableRequestHeaders") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListAvailableRequestHeadersPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableRequestHeaders", nil, "Failure preparing request") + return + } + + resp, err := client.ListAvailableRequestHeadersSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableRequestHeaders", resp, "Failure sending request") + return + } + + result, err = client.ListAvailableRequestHeadersResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableRequestHeaders", resp, "Failure responding to request") + return + } + + return +} + +// ListAvailableRequestHeadersPreparer prepares the ListAvailableRequestHeaders request. +func (client ApplicationGatewaysClient) ListAvailableRequestHeadersPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableRequestHeaders", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAvailableRequestHeadersSender sends the ListAvailableRequestHeaders request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationGatewaysClient) ListAvailableRequestHeadersSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAvailableRequestHeadersResponder handles the response to the ListAvailableRequestHeaders request. The method always +// closes the http.Response Body. +func (client ApplicationGatewaysClient) ListAvailableRequestHeadersResponder(resp *http.Response) (result ListString, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Value), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListAvailableResponseHeaders lists all available response headers. +func (client ApplicationGatewaysClient) ListAvailableResponseHeaders(ctx context.Context) (result ListString, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.ListAvailableResponseHeaders") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListAvailableResponseHeadersPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableResponseHeaders", nil, "Failure preparing request") + return + } + + resp, err := client.ListAvailableResponseHeadersSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableResponseHeaders", resp, "Failure sending request") + return + } + + result, err = client.ListAvailableResponseHeadersResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableResponseHeaders", resp, "Failure responding to request") + return + } + + return +} + +// ListAvailableResponseHeadersPreparer prepares the ListAvailableResponseHeaders request. +func (client ApplicationGatewaysClient) ListAvailableResponseHeadersPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableResponseHeaders", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAvailableResponseHeadersSender sends the ListAvailableResponseHeaders request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationGatewaysClient) ListAvailableResponseHeadersSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAvailableResponseHeadersResponder handles the response to the ListAvailableResponseHeaders request. The method always +// closes the http.Response Body. +func (client ApplicationGatewaysClient) ListAvailableResponseHeadersResponder(resp *http.Response) (result ListString, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Value), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListAvailableServerVariables lists all available server variables. +func (client ApplicationGatewaysClient) ListAvailableServerVariables(ctx context.Context) (result ListString, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.ListAvailableServerVariables") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListAvailableServerVariablesPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableServerVariables", nil, "Failure preparing request") + return + } + + resp, err := client.ListAvailableServerVariablesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableServerVariables", resp, "Failure sending request") + return + } + + result, err = client.ListAvailableServerVariablesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableServerVariables", resp, "Failure responding to request") + return + } + + return +} + +// ListAvailableServerVariablesPreparer prepares the ListAvailableServerVariables request. +func (client ApplicationGatewaysClient) ListAvailableServerVariablesPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableServerVariables", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAvailableServerVariablesSender sends the ListAvailableServerVariables request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationGatewaysClient) ListAvailableServerVariablesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAvailableServerVariablesResponder handles the response to the ListAvailableServerVariables request. The method always +// closes the http.Response Body. +func (client ApplicationGatewaysClient) ListAvailableServerVariablesResponder(resp *http.Response) (result ListString, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Value), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListAvailableSslOptions lists available Ssl options for configuring Ssl policy. +func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Context) (result ApplicationGatewayAvailableSslOptions, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.ListAvailableSslOptions") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListAvailableSslOptionsPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", nil, "Failure preparing request") + return + } + + resp, err := client.ListAvailableSslOptionsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure sending request") + return + } + + result, err = client.ListAvailableSslOptionsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") + return + } + + return +} + +// ListAvailableSslOptionsPreparer prepares the ListAvailableSslOptions request. +func (client ApplicationGatewaysClient) ListAvailableSslOptionsPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAvailableSslOptionsSender sends the ListAvailableSslOptions request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationGatewaysClient) ListAvailableSslOptionsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAvailableSslOptionsResponder handles the response to the ListAvailableSslOptions request. The method always +// closes the http.Response Body. +func (client ApplicationGatewaysClient) ListAvailableSslOptionsResponder(resp *http.Response) (result ApplicationGatewayAvailableSslOptions, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListAvailableSslPredefinedPolicies lists all SSL predefined policies for configuring Ssl policy. +func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx context.Context) (result ApplicationGatewayAvailableSslPredefinedPoliciesPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.ListAvailableSslPredefinedPolicies") + defer func() { + sc := -1 + if result.agaspp.Response.Response != nil { + sc = result.agaspp.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listAvailableSslPredefinedPoliciesNextResults + req, err := client.ListAvailableSslPredefinedPoliciesPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", nil, "Failure preparing request") + return + } + + resp, err := client.ListAvailableSslPredefinedPoliciesSender(req) + if err != nil { + result.agaspp.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure sending request") + return + } + + result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") + return + } + if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListAvailableSslPredefinedPoliciesPreparer prepares the ListAvailableSslPredefinedPolicies request. +func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPoliciesPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAvailableSslPredefinedPoliciesSender sends the ListAvailableSslPredefinedPolicies request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPoliciesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAvailableSslPredefinedPoliciesResponder handles the response to the ListAvailableSslPredefinedPolicies request. The method always +// closes the http.Response Body. +func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPoliciesResponder(resp *http.Response) (result ApplicationGatewayAvailableSslPredefinedPolicies, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listAvailableSslPredefinedPoliciesNextResults retrieves the next set of results, if any. +func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextResults(ctx context.Context, lastResults ApplicationGatewayAvailableSslPredefinedPolicies) (result ApplicationGatewayAvailableSslPredefinedPolicies, err error) { + req, err := lastResults.applicationGatewayAvailableSslPredefinedPoliciesPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListAvailableSslPredefinedPoliciesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure sending next results request") + } + result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListAvailableSslPredefinedPoliciesComplete enumerates all values, automatically crossing page boundaries as required. +func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPoliciesComplete(ctx context.Context) (result ApplicationGatewayAvailableSslPredefinedPoliciesIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.ListAvailableSslPredefinedPolicies") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListAvailableSslPredefinedPolicies(ctx) + return +} + +// ListAvailableWafRuleSets lists all available web application firewall rule sets. +func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Context) (result ApplicationGatewayAvailableWafRuleSetsResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.ListAvailableWafRuleSets") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListAvailableWafRuleSetsPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", nil, "Failure preparing request") + return + } + + resp, err := client.ListAvailableWafRuleSetsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure sending request") + return + } + + result, err = client.ListAvailableWafRuleSetsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") + return + } + + return +} + +// ListAvailableWafRuleSetsPreparer prepares the ListAvailableWafRuleSets request. +func (client ApplicationGatewaysClient) ListAvailableWafRuleSetsPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableWafRuleSets", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAvailableWafRuleSetsSender sends the ListAvailableWafRuleSets request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationGatewaysClient) ListAvailableWafRuleSetsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAvailableWafRuleSetsResponder handles the response to the ListAvailableWafRuleSets request. The method always +// closes the http.Response Body. +func (client ApplicationGatewaysClient) ListAvailableWafRuleSetsResponder(resp *http.Response) (result ApplicationGatewayAvailableWafRuleSetsResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Start starts the specified application gateway. +// Parameters: +// resourceGroupName - the name of the resource group. +// applicationGatewayName - the name of the application gateway. +func (client ApplicationGatewaysClient) Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result ApplicationGatewaysStartFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.Start") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.StartPreparer(ctx, resourceGroupName, applicationGatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Start", nil, "Failure preparing request") + return + } + + result, err = client.StartSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Start", result.Response(), "Failure sending request") + return + } + + return +} + +// StartPreparer prepares the Start request. +func (client ApplicationGatewaysClient) StartPreparer(ctx context.Context, resourceGroupName string, applicationGatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "applicationGatewayName": autorest.Encode("path", applicationGatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/start", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// StartSender sends the Start request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationGatewaysClient) StartSender(req *http.Request) (future ApplicationGatewaysStartFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// StartResponder handles the response to the Start request. The method always +// closes the http.Response Body. +func (client ApplicationGatewaysClient) StartResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// Stop stops the specified application gateway in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// applicationGatewayName - the name of the application gateway. +func (client ApplicationGatewaysClient) Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result ApplicationGatewaysStopFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.Stop") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.StopPreparer(ctx, resourceGroupName, applicationGatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Stop", nil, "Failure preparing request") + return + } + + result, err = client.StopSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Stop", result.Response(), "Failure sending request") + return + } + + return +} + +// StopPreparer prepares the Stop request. +func (client ApplicationGatewaysClient) StopPreparer(ctx context.Context, resourceGroupName string, applicationGatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "applicationGatewayName": autorest.Encode("path", applicationGatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/stop", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// StopSender sends the Stop request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationGatewaysClient) StopSender(req *http.Request) (future ApplicationGatewaysStopFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// StopResponder handles the response to the Stop request. The method always +// closes the http.Response Body. +func (client ApplicationGatewaysClient) StopResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// UpdateTags updates the specified application gateway tags. +// Parameters: +// resourceGroupName - the name of the resource group. +// applicationGatewayName - the name of the application gateway. +// parameters - parameters supplied to update application gateway tags. +func (client ApplicationGatewaysClient) UpdateTags(ctx context.Context, resourceGroupName string, applicationGatewayName string, parameters TagsObject) (result ApplicationGateway, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, applicationGatewayName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client ApplicationGatewaysClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, applicationGatewayName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "applicationGatewayName": autorest.Encode("path", applicationGatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationGatewaysClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client ApplicationGatewaysClient) UpdateTagsResponder(resp *http.Response) (result ApplicationGateway, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/applicationsecuritygroups.go b/services/network/mgmt/2020-07-01/network/applicationsecuritygroups.go new file mode 100644 index 000000000000..090bf24791e1 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/applicationsecuritygroups.go @@ -0,0 +1,580 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ApplicationSecurityGroupsClient is the network Client +type ApplicationSecurityGroupsClient struct { + BaseClient +} + +// NewApplicationSecurityGroupsClient creates an instance of the ApplicationSecurityGroupsClient client. +func NewApplicationSecurityGroupsClient(subscriptionID string) ApplicationSecurityGroupsClient { + return NewApplicationSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client +// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign +// clouds, Azure stack). +func NewApplicationSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationSecurityGroupsClient { + return ApplicationSecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates an application security group. +// Parameters: +// resourceGroupName - the name of the resource group. +// applicationSecurityGroupName - the name of the application security group. +// parameters - parameters supplied to the create or update ApplicationSecurityGroup operation. +func (client ApplicationSecurityGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string, parameters ApplicationSecurityGroup) (result ApplicationSecurityGroupsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationSecurityGroupsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, applicationSecurityGroupName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client ApplicationSecurityGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string, parameters ApplicationSecurityGroup) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "applicationSecurityGroupName": autorest.Encode("path", applicationSecurityGroupName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationSecurityGroupsClient) CreateOrUpdateSender(req *http.Request) (future ApplicationSecurityGroupsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client ApplicationSecurityGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result ApplicationSecurityGroup, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified application security group. +// Parameters: +// resourceGroupName - the name of the resource group. +// applicationSecurityGroupName - the name of the application security group. +func (client ApplicationSecurityGroupsClient) Delete(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result ApplicationSecurityGroupsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationSecurityGroupsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, applicationSecurityGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client ApplicationSecurityGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "applicationSecurityGroupName": autorest.Encode("path", applicationSecurityGroupName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationSecurityGroupsClient) DeleteSender(req *http.Request) (future ApplicationSecurityGroupsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client ApplicationSecurityGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets information about the specified application security group. +// Parameters: +// resourceGroupName - the name of the resource group. +// applicationSecurityGroupName - the name of the application security group. +func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result ApplicationSecurityGroup, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationSecurityGroupsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, applicationSecurityGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ApplicationSecurityGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "applicationSecurityGroupName": autorest.Encode("path", applicationSecurityGroupName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationSecurityGroupsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ApplicationSecurityGroupsClient) GetResponder(resp *http.Response) (result ApplicationSecurityGroup, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all the application security groups in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resourceGroupName string) (result ApplicationSecurityGroupListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationSecurityGroupsClient.List") + defer func() { + sc := -1 + if result.asglr.Response.Response != nil { + sc = result.asglr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.asglr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure sending request") + return + } + + result.asglr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request") + return + } + if result.asglr.hasNextLink() && result.asglr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ApplicationSecurityGroupsClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationSecurityGroupsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ApplicationSecurityGroupsClient) ListResponder(resp *http.Response) (result ApplicationSecurityGroupListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client ApplicationSecurityGroupsClient) listNextResults(ctx context.Context, lastResults ApplicationSecurityGroupListResult) (result ApplicationSecurityGroupListResult, err error) { + req, err := lastResults.applicationSecurityGroupListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ApplicationSecurityGroupsClient) ListComplete(ctx context.Context, resourceGroupName string) (result ApplicationSecurityGroupListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationSecurityGroupsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName) + return +} + +// ListAll gets all application security groups in a subscription. +func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (result ApplicationSecurityGroupListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationSecurityGroupsClient.ListAll") + defer func() { + sc := -1 + if result.asglr.Response.Response != nil { + sc = result.asglr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listAllNextResults + req, err := client.ListAllPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", nil, "Failure preparing request") + return + } + + resp, err := client.ListAllSender(req) + if err != nil { + result.asglr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure sending request") + return + } + + result.asglr, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return + } + if result.asglr.hasNextLink() && result.asglr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListAllPreparer prepares the ListAll request. +func (client ApplicationSecurityGroupsClient) ListAllPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationSecurityGroups", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAllSender sends the ListAll request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationSecurityGroupsClient) ListAllSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAllResponder handles the response to the ListAll request. The method always +// closes the http.Response Body. +func (client ApplicationSecurityGroupsClient) ListAllResponder(resp *http.Response) (result ApplicationSecurityGroupListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listAllNextResults retrieves the next set of results, if any. +func (client ApplicationSecurityGroupsClient) listAllNextResults(ctx context.Context, lastResults ApplicationSecurityGroupListResult) (result ApplicationSecurityGroupListResult, err error) { + req, err := lastResults.applicationSecurityGroupListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListAllSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure sending next results request") + } + result, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListAllComplete enumerates all values, automatically crossing page boundaries as required. +func (client ApplicationSecurityGroupsClient) ListAllComplete(ctx context.Context) (result ApplicationSecurityGroupListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationSecurityGroupsClient.ListAll") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListAll(ctx) + return +} + +// UpdateTags updates an application security group's tags. +// Parameters: +// resourceGroupName - the name of the resource group. +// applicationSecurityGroupName - the name of the application security group. +// parameters - parameters supplied to update application security group tags. +func (client ApplicationSecurityGroupsClient) UpdateTags(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string, parameters TagsObject) (result ApplicationSecurityGroup, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationSecurityGroupsClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, applicationSecurityGroupName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client ApplicationSecurityGroupsClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "applicationSecurityGroupName": autorest.Encode("path", applicationSecurityGroupName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationSecurityGroupsClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client ApplicationSecurityGroupsClient) UpdateTagsResponder(resp *http.Response) (result ApplicationSecurityGroup, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/availabledelegations.go b/services/network/mgmt/2020-07-01/network/availabledelegations.go new file mode 100644 index 000000000000..79e7c9edf2a8 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/availabledelegations.go @@ -0,0 +1,159 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// AvailableDelegationsClient is the network Client +type AvailableDelegationsClient struct { + BaseClient +} + +// NewAvailableDelegationsClient creates an instance of the AvailableDelegationsClient client. +func NewAvailableDelegationsClient(subscriptionID string) AvailableDelegationsClient { + return NewAvailableDelegationsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewAvailableDelegationsClientWithBaseURI creates an instance of the AvailableDelegationsClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewAvailableDelegationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableDelegationsClient { + return AvailableDelegationsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List gets all of the available subnet delegations for this subscription in this region. +// Parameters: +// location - the location of the subnet. +func (client AvailableDelegationsClient) List(ctx context.Context, location string) (result AvailableDelegationsResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AvailableDelegationsClient.List") + defer func() { + sc := -1 + if result.adr.Response.Response != nil { + sc = result.adr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, location) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.adr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "List", resp, "Failure sending request") + return + } + + result.adr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "List", resp, "Failure responding to request") + return + } + if result.adr.hasNextLink() && result.adr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client AvailableDelegationsClient) ListPreparer(ctx context.Context, location string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "location": autorest.Encode("path", location), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/availableDelegations", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client AvailableDelegationsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client AvailableDelegationsClient) ListResponder(resp *http.Response) (result AvailableDelegationsResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client AvailableDelegationsClient) listNextResults(ctx context.Context, lastResults AvailableDelegationsResult) (result AvailableDelegationsResult, err error) { + req, err := lastResults.availableDelegationsResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client AvailableDelegationsClient) ListComplete(ctx context.Context, location string) (result AvailableDelegationsResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AvailableDelegationsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, location) + return +} diff --git a/services/network/mgmt/2020-07-01/network/availableendpointservices.go b/services/network/mgmt/2020-07-01/network/availableendpointservices.go new file mode 100644 index 000000000000..00dbc0f48af0 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/availableendpointservices.go @@ -0,0 +1,159 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// AvailableEndpointServicesClient is the network Client +type AvailableEndpointServicesClient struct { + BaseClient +} + +// NewAvailableEndpointServicesClient creates an instance of the AvailableEndpointServicesClient client. +func NewAvailableEndpointServicesClient(subscriptionID string) AvailableEndpointServicesClient { + return NewAvailableEndpointServicesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client +// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign +// clouds, Azure stack). +func NewAvailableEndpointServicesClientWithBaseURI(baseURI string, subscriptionID string) AvailableEndpointServicesClient { + return AvailableEndpointServicesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List list what values of endpoint services are available for use. +// Parameters: +// location - the location to check available endpoint services. +func (client AvailableEndpointServicesClient) List(ctx context.Context, location string) (result EndpointServicesListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AvailableEndpointServicesClient.List") + defer func() { + sc := -1 + if result.eslr.Response.Response != nil { + sc = result.eslr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, location) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.eslr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure sending request") + return + } + + result.eslr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") + return + } + if result.eslr.hasNextLink() && result.eslr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client AvailableEndpointServicesClient) ListPreparer(ctx context.Context, location string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "location": autorest.Encode("path", location), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/virtualNetworkAvailableEndpointServices", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client AvailableEndpointServicesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client AvailableEndpointServicesClient) ListResponder(resp *http.Response) (result EndpointServicesListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client AvailableEndpointServicesClient) listNextResults(ctx context.Context, lastResults EndpointServicesListResult) (result EndpointServicesListResult, err error) { + req, err := lastResults.endpointServicesListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client AvailableEndpointServicesClient) ListComplete(ctx context.Context, location string) (result EndpointServicesListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AvailableEndpointServicesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, location) + return +} diff --git a/services/network/mgmt/2020-07-01/network/availableprivateendpointtypes.go b/services/network/mgmt/2020-07-01/network/availableprivateendpointtypes.go new file mode 100644 index 000000000000..2dd779560c17 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/availableprivateendpointtypes.go @@ -0,0 +1,278 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// AvailablePrivateEndpointTypesClient is the network Client +type AvailablePrivateEndpointTypesClient struct { + BaseClient +} + +// NewAvailablePrivateEndpointTypesClient creates an instance of the AvailablePrivateEndpointTypesClient client. +func NewAvailablePrivateEndpointTypesClient(subscriptionID string) AvailablePrivateEndpointTypesClient { + return NewAvailablePrivateEndpointTypesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewAvailablePrivateEndpointTypesClientWithBaseURI creates an instance of the AvailablePrivateEndpointTypesClient +// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI +// (sovereign clouds, Azure stack). +func NewAvailablePrivateEndpointTypesClientWithBaseURI(baseURI string, subscriptionID string) AvailablePrivateEndpointTypesClient { + return AvailablePrivateEndpointTypesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. +// Parameters: +// location - the location of the domain name. +func (client AvailablePrivateEndpointTypesClient) List(ctx context.Context, location string) (result AvailablePrivateEndpointTypesResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AvailablePrivateEndpointTypesClient.List") + defer func() { + sc := -1 + if result.apetr.Response.Response != nil { + sc = result.apetr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, location) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.apetr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "List", resp, "Failure sending request") + return + } + + result.apetr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "List", resp, "Failure responding to request") + return + } + if result.apetr.hasNextLink() && result.apetr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client AvailablePrivateEndpointTypesClient) ListPreparer(ctx context.Context, location string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "location": autorest.Encode("path", location), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/availablePrivateEndpointTypes", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client AvailablePrivateEndpointTypesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client AvailablePrivateEndpointTypesClient) ListResponder(resp *http.Response) (result AvailablePrivateEndpointTypesResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client AvailablePrivateEndpointTypesClient) listNextResults(ctx context.Context, lastResults AvailablePrivateEndpointTypesResult) (result AvailablePrivateEndpointTypesResult, err error) { + req, err := lastResults.availablePrivateEndpointTypesResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client AvailablePrivateEndpointTypesClient) ListComplete(ctx context.Context, location string) (result AvailablePrivateEndpointTypesResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AvailablePrivateEndpointTypesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, location) + return +} + +// ListByResourceGroup returns all of the resource types that can be linked to a Private Endpoint in this subscription +// in this region. +// Parameters: +// location - the location of the domain name. +// resourceGroupName - the name of the resource group. +func (client AvailablePrivateEndpointTypesClient) ListByResourceGroup(ctx context.Context, location string, resourceGroupName string) (result AvailablePrivateEndpointTypesResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AvailablePrivateEndpointTypesClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.apetr.Response.Response != nil { + sc = result.apetr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, location, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.apetr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.apetr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.apetr.hasNextLink() && result.apetr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client AvailablePrivateEndpointTypesClient) ListByResourceGroupPreparer(ctx context.Context, location string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "location": autorest.Encode("path", location), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/availablePrivateEndpointTypes", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client AvailablePrivateEndpointTypesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client AvailablePrivateEndpointTypesClient) ListByResourceGroupResponder(resp *http.Response) (result AvailablePrivateEndpointTypesResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client AvailablePrivateEndpointTypesClient) listByResourceGroupNextResults(ctx context.Context, lastResults AvailablePrivateEndpointTypesResult) (result AvailablePrivateEndpointTypesResult, err error) { + req, err := lastResults.availablePrivateEndpointTypesResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client AvailablePrivateEndpointTypesClient) ListByResourceGroupComplete(ctx context.Context, location string, resourceGroupName string) (result AvailablePrivateEndpointTypesResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AvailablePrivateEndpointTypesClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, location, resourceGroupName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2020-07-01/network/availableresourcegroupdelegations.go new file mode 100644 index 000000000000..517bad704bfa --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/availableresourcegroupdelegations.go @@ -0,0 +1,162 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// AvailableResourceGroupDelegationsClient is the network Client +type AvailableResourceGroupDelegationsClient struct { + BaseClient +} + +// NewAvailableResourceGroupDelegationsClient creates an instance of the AvailableResourceGroupDelegationsClient +// client. +func NewAvailableResourceGroupDelegationsClient(subscriptionID string) AvailableResourceGroupDelegationsClient { + return NewAvailableResourceGroupDelegationsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewAvailableResourceGroupDelegationsClientWithBaseURI creates an instance of the +// AvailableResourceGroupDelegationsClient client using a custom endpoint. Use this when interacting with an Azure +// cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewAvailableResourceGroupDelegationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableResourceGroupDelegationsClient { + return AvailableResourceGroupDelegationsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List gets all of the available subnet delegations for this resource group in this region. +// Parameters: +// location - the location of the domain name. +// resourceGroupName - the name of the resource group. +func (client AvailableResourceGroupDelegationsClient) List(ctx context.Context, location string, resourceGroupName string) (result AvailableDelegationsResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AvailableResourceGroupDelegationsClient.List") + defer func() { + sc := -1 + if result.adr.Response.Response != nil { + sc = result.adr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, location, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.adr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "List", resp, "Failure sending request") + return + } + + result.adr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "List", resp, "Failure responding to request") + return + } + if result.adr.hasNextLink() && result.adr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client AvailableResourceGroupDelegationsClient) ListPreparer(ctx context.Context, location string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "location": autorest.Encode("path", location), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/availableDelegations", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client AvailableResourceGroupDelegationsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client AvailableResourceGroupDelegationsClient) ListResponder(resp *http.Response) (result AvailableDelegationsResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client AvailableResourceGroupDelegationsClient) listNextResults(ctx context.Context, lastResults AvailableDelegationsResult) (result AvailableDelegationsResult, err error) { + req, err := lastResults.availableDelegationsResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client AvailableResourceGroupDelegationsClient) ListComplete(ctx context.Context, location string, resourceGroupName string) (result AvailableDelegationsResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AvailableResourceGroupDelegationsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, location, resourceGroupName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/availableservicealiases.go b/services/network/mgmt/2020-07-01/network/availableservicealiases.go new file mode 100644 index 000000000000..0b5ee646e2e0 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/availableservicealiases.go @@ -0,0 +1,277 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// AvailableServiceAliasesClient is the network Client +type AvailableServiceAliasesClient struct { + BaseClient +} + +// NewAvailableServiceAliasesClient creates an instance of the AvailableServiceAliasesClient client. +func NewAvailableServiceAliasesClient(subscriptionID string) AvailableServiceAliasesClient { + return NewAvailableServiceAliasesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewAvailableServiceAliasesClientWithBaseURI creates an instance of the AvailableServiceAliasesClient client using a +// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, +// Azure stack). +func NewAvailableServiceAliasesClientWithBaseURI(baseURI string, subscriptionID string) AvailableServiceAliasesClient { + return AvailableServiceAliasesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List gets all available service aliases for this subscription in this region. +// Parameters: +// location - the location. +func (client AvailableServiceAliasesClient) List(ctx context.Context, location string) (result AvailableServiceAliasesResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AvailableServiceAliasesClient.List") + defer func() { + sc := -1 + if result.asar.Response.Response != nil { + sc = result.asar.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, location) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.asar.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "List", resp, "Failure sending request") + return + } + + result.asar, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "List", resp, "Failure responding to request") + return + } + if result.asar.hasNextLink() && result.asar.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client AvailableServiceAliasesClient) ListPreparer(ctx context.Context, location string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "location": autorest.Encode("path", location), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/availableServiceAliases", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client AvailableServiceAliasesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client AvailableServiceAliasesClient) ListResponder(resp *http.Response) (result AvailableServiceAliasesResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client AvailableServiceAliasesClient) listNextResults(ctx context.Context, lastResults AvailableServiceAliasesResult) (result AvailableServiceAliasesResult, err error) { + req, err := lastResults.availableServiceAliasesResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client AvailableServiceAliasesClient) ListComplete(ctx context.Context, location string) (result AvailableServiceAliasesResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AvailableServiceAliasesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, location) + return +} + +// ListByResourceGroup gets all available service aliases for this resource group in this region. +// Parameters: +// resourceGroupName - the name of the resource group. +// location - the location. +func (client AvailableServiceAliasesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, location string) (result AvailableServiceAliasesResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AvailableServiceAliasesClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.asar.Response.Response != nil { + sc = result.asar.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName, location) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.asar.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.asar, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.asar.hasNextLink() && result.asar.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client AvailableServiceAliasesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, location string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "location": autorest.Encode("path", location), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/availableServiceAliases", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client AvailableServiceAliasesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client AvailableServiceAliasesClient) ListByResourceGroupResponder(resp *http.Response) (result AvailableServiceAliasesResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client AvailableServiceAliasesClient) listByResourceGroupNextResults(ctx context.Context, lastResults AvailableServiceAliasesResult) (result AvailableServiceAliasesResult, err error) { + req, err := lastResults.availableServiceAliasesResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client AvailableServiceAliasesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, location string) (result AvailableServiceAliasesResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AvailableServiceAliasesClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName, location) + return +} diff --git a/services/network/mgmt/2020-07-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2020-07-01/network/azurefirewallfqdntags.go new file mode 100644 index 000000000000..d0943b448d2e --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/azurefirewallfqdntags.go @@ -0,0 +1,156 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// AzureFirewallFqdnTagsClient is the network Client +type AzureFirewallFqdnTagsClient struct { + BaseClient +} + +// NewAzureFirewallFqdnTagsClient creates an instance of the AzureFirewallFqdnTagsClient client. +func NewAzureFirewallFqdnTagsClient(subscriptionID string) AzureFirewallFqdnTagsClient { + return NewAzureFirewallFqdnTagsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewAzureFirewallFqdnTagsClientWithBaseURI creates an instance of the AzureFirewallFqdnTagsClient client using a +// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, +// Azure stack). +func NewAzureFirewallFqdnTagsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallFqdnTagsClient { + return AzureFirewallFqdnTagsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// ListAll gets all the Azure Firewall FQDN Tags in a subscription. +func (client AzureFirewallFqdnTagsClient) ListAll(ctx context.Context) (result AzureFirewallFqdnTagListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallFqdnTagsClient.ListAll") + defer func() { + sc := -1 + if result.afftlr.Response.Response != nil { + sc = result.afftlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listAllNextResults + req, err := client.ListAllPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "ListAll", nil, "Failure preparing request") + return + } + + resp, err := client.ListAllSender(req) + if err != nil { + result.afftlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "ListAll", resp, "Failure sending request") + return + } + + result.afftlr, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "ListAll", resp, "Failure responding to request") + return + } + if result.afftlr.hasNextLink() && result.afftlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListAllPreparer prepares the ListAll request. +func (client AzureFirewallFqdnTagsClient) ListAllPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/azureFirewallFqdnTags", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAllSender sends the ListAll request. The method will close the +// http.Response Body if it receives an error. +func (client AzureFirewallFqdnTagsClient) ListAllSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAllResponder handles the response to the ListAll request. The method always +// closes the http.Response Body. +func (client AzureFirewallFqdnTagsClient) ListAllResponder(resp *http.Response) (result AzureFirewallFqdnTagListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listAllNextResults retrieves the next set of results, if any. +func (client AzureFirewallFqdnTagsClient) listAllNextResults(ctx context.Context, lastResults AzureFirewallFqdnTagListResult) (result AzureFirewallFqdnTagListResult, err error) { + req, err := lastResults.azureFirewallFqdnTagListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "listAllNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListAllSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "listAllNextResults", resp, "Failure sending next results request") + } + result, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "listAllNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListAllComplete enumerates all values, automatically crossing page boundaries as required. +func (client AzureFirewallFqdnTagsClient) ListAllComplete(ctx context.Context) (result AzureFirewallFqdnTagListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallFqdnTagsClient.ListAll") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListAll(ctx) + return +} diff --git a/services/network/mgmt/2020-07-01/network/azurefirewalls.go b/services/network/mgmt/2020-07-01/network/azurefirewalls.go new file mode 100644 index 000000000000..e064a82925b2 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/azurefirewalls.go @@ -0,0 +1,586 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// AzureFirewallsClient is the network Client +type AzureFirewallsClient struct { + BaseClient +} + +// NewAzureFirewallsClient creates an instance of the AzureFirewallsClient client. +func NewAzureFirewallsClient(subscriptionID string) AzureFirewallsClient { + return NewAzureFirewallsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewAzureFirewallsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallsClient { + return AzureFirewallsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates the specified Azure Firewall. +// Parameters: +// resourceGroupName - the name of the resource group. +// azureFirewallName - the name of the Azure Firewall. +// parameters - parameters supplied to the create or update Azure Firewall operation. +func (client AzureFirewallsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, azureFirewallName string, parameters AzureFirewall) (result AzureFirewallsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: azureFirewallName, + Constraints: []validation.Constraint{{Target: "azureFirewallName", Name: validation.MaxLength, Rule: 56, Chain: nil}, + {Target: "azureFirewallName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("network.AzureFirewallsClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, azureFirewallName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client AzureFirewallsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, azureFirewallName string, parameters AzureFirewall) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "azureFirewallName": autorest.Encode("path", azureFirewallName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client AzureFirewallsClient) CreateOrUpdateSender(req *http.Request) (future AzureFirewallsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client AzureFirewallsClient) CreateOrUpdateResponder(resp *http.Response) (result AzureFirewall, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified Azure Firewall. +// Parameters: +// resourceGroupName - the name of the resource group. +// azureFirewallName - the name of the Azure Firewall. +func (client AzureFirewallsClient) Delete(ctx context.Context, resourceGroupName string, azureFirewallName string) (result AzureFirewallsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, azureFirewallName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client AzureFirewallsClient) DeletePreparer(ctx context.Context, resourceGroupName string, azureFirewallName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "azureFirewallName": autorest.Encode("path", azureFirewallName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client AzureFirewallsClient) DeleteSender(req *http.Request) (future AzureFirewallsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client AzureFirewallsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified Azure Firewall. +// Parameters: +// resourceGroupName - the name of the resource group. +// azureFirewallName - the name of the Azure Firewall. +func (client AzureFirewallsClient) Get(ctx context.Context, resourceGroupName string, azureFirewallName string) (result AzureFirewall, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, azureFirewallName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client AzureFirewallsClient) GetPreparer(ctx context.Context, resourceGroupName string, azureFirewallName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "azureFirewallName": autorest.Encode("path", azureFirewallName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client AzureFirewallsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client AzureFirewallsClient) GetResponder(resp *http.Response) (result AzureFirewall, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all Azure Firewalls in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client AzureFirewallsClient) List(ctx context.Context, resourceGroupName string) (result AzureFirewallListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallsClient.List") + defer func() { + sc := -1 + if result.aflr.Response.Response != nil { + sc = result.aflr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.aflr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "List", resp, "Failure sending request") + return + } + + result.aflr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "List", resp, "Failure responding to request") + return + } + if result.aflr.hasNextLink() && result.aflr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client AzureFirewallsClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client AzureFirewallsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client AzureFirewallsClient) ListResponder(resp *http.Response) (result AzureFirewallListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client AzureFirewallsClient) listNextResults(ctx context.Context, lastResults AzureFirewallListResult) (result AzureFirewallListResult, err error) { + req, err := lastResults.azureFirewallListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client AzureFirewallsClient) ListComplete(ctx context.Context, resourceGroupName string) (result AzureFirewallListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName) + return +} + +// ListAll gets all the Azure Firewalls in a subscription. +func (client AzureFirewallsClient) ListAll(ctx context.Context) (result AzureFirewallListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallsClient.ListAll") + defer func() { + sc := -1 + if result.aflr.Response.Response != nil { + sc = result.aflr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listAllNextResults + req, err := client.ListAllPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "ListAll", nil, "Failure preparing request") + return + } + + resp, err := client.ListAllSender(req) + if err != nil { + result.aflr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "ListAll", resp, "Failure sending request") + return + } + + result.aflr, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "ListAll", resp, "Failure responding to request") + return + } + if result.aflr.hasNextLink() && result.aflr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListAllPreparer prepares the ListAll request. +func (client AzureFirewallsClient) ListAllPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/azureFirewalls", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAllSender sends the ListAll request. The method will close the +// http.Response Body if it receives an error. +func (client AzureFirewallsClient) ListAllSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAllResponder handles the response to the ListAll request. The method always +// closes the http.Response Body. +func (client AzureFirewallsClient) ListAllResponder(resp *http.Response) (result AzureFirewallListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listAllNextResults retrieves the next set of results, if any. +func (client AzureFirewallsClient) listAllNextResults(ctx context.Context, lastResults AzureFirewallListResult) (result AzureFirewallListResult, err error) { + req, err := lastResults.azureFirewallListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listAllNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListAllSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listAllNextResults", resp, "Failure sending next results request") + } + result, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listAllNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListAllComplete enumerates all values, automatically crossing page boundaries as required. +func (client AzureFirewallsClient) ListAllComplete(ctx context.Context) (result AzureFirewallListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallsClient.ListAll") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListAll(ctx) + return +} + +// UpdateTags updates tags of an Azure Firewall resource. +// Parameters: +// resourceGroupName - the name of the resource group. +// azureFirewallName - the name of the Azure Firewall. +// parameters - parameters supplied to update azure firewall tags. +func (client AzureFirewallsClient) UpdateTags(ctx context.Context, resourceGroupName string, azureFirewallName string, parameters TagsObject) (result AzureFirewallsUpdateTagsFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallsClient.UpdateTags") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, azureFirewallName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "UpdateTags", nil, "Failure preparing request") + return + } + + result, err = client.UpdateTagsSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "UpdateTags", result.Response(), "Failure sending request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client AzureFirewallsClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, azureFirewallName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "azureFirewallName": autorest.Encode("path", azureFirewallName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client AzureFirewallsClient) UpdateTagsSender(req *http.Request) (future AzureFirewallsUpdateTagsFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client AzureFirewallsClient) UpdateTagsResponder(resp *http.Response) (result AzureFirewall, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/bastionhosts.go b/services/network/mgmt/2020-07-01/network/bastionhosts.go new file mode 100644 index 000000000000..5e5d7f868db7 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/bastionhosts.go @@ -0,0 +1,500 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// BastionHostsClient is the network Client +type BastionHostsClient struct { + BaseClient +} + +// NewBastionHostsClient creates an instance of the BastionHostsClient client. +func NewBastionHostsClient(subscriptionID string) BastionHostsClient { + return NewBastionHostsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewBastionHostsClientWithBaseURI creates an instance of the BastionHostsClient client using a custom endpoint. Use +// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewBastionHostsClientWithBaseURI(baseURI string, subscriptionID string) BastionHostsClient { + return BastionHostsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates the specified Bastion Host. +// Parameters: +// resourceGroupName - the name of the resource group. +// bastionHostName - the name of the Bastion Host. +// parameters - parameters supplied to the create or update Bastion Host operation. +func (client BastionHostsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, bastionHostName string, parameters BastionHost) (result BastionHostsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BastionHostsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, bastionHostName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client BastionHostsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, bastionHostName string, parameters BastionHost) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "bastionHostName": autorest.Encode("path", bastionHostName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client BastionHostsClient) CreateOrUpdateSender(req *http.Request) (future BastionHostsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client BastionHostsClient) CreateOrUpdateResponder(resp *http.Response) (result BastionHost, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified Bastion Host. +// Parameters: +// resourceGroupName - the name of the resource group. +// bastionHostName - the name of the Bastion Host. +func (client BastionHostsClient) Delete(ctx context.Context, resourceGroupName string, bastionHostName string) (result BastionHostsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BastionHostsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, bastionHostName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client BastionHostsClient) DeletePreparer(ctx context.Context, resourceGroupName string, bastionHostName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "bastionHostName": autorest.Encode("path", bastionHostName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client BastionHostsClient) DeleteSender(req *http.Request) (future BastionHostsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client BastionHostsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified Bastion Host. +// Parameters: +// resourceGroupName - the name of the resource group. +// bastionHostName - the name of the Bastion Host. +func (client BastionHostsClient) Get(ctx context.Context, resourceGroupName string, bastionHostName string) (result BastionHost, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BastionHostsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, bastionHostName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client BastionHostsClient) GetPreparer(ctx context.Context, resourceGroupName string, bastionHostName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "bastionHostName": autorest.Encode("path", bastionHostName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client BastionHostsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client BastionHostsClient) GetResponder(resp *http.Response) (result BastionHost, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all Bastion Hosts in a subscription. +func (client BastionHostsClient) List(ctx context.Context) (result BastionHostListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BastionHostsClient.List") + defer func() { + sc := -1 + if result.bhlr.Response.Response != nil { + sc = result.bhlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.bhlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "List", resp, "Failure sending request") + return + } + + result.bhlr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "List", resp, "Failure responding to request") + return + } + if result.bhlr.hasNextLink() && result.bhlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client BastionHostsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/bastionHosts", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client BastionHostsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client BastionHostsClient) ListResponder(resp *http.Response) (result BastionHostListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client BastionHostsClient) listNextResults(ctx context.Context, lastResults BastionHostListResult) (result BastionHostListResult, err error) { + req, err := lastResults.bastionHostListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.BastionHostsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.BastionHostsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client BastionHostsClient) ListComplete(ctx context.Context) (result BastionHostListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BastionHostsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} + +// ListByResourceGroup lists all Bastion Hosts in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client BastionHostsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result BastionHostListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BastionHostsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.bhlr.Response.Response != nil { + sc = result.bhlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.bhlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.bhlr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.bhlr.hasNextLink() && result.bhlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client BastionHostsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client BastionHostsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client BastionHostsClient) ListByResourceGroupResponder(resp *http.Response) (result BastionHostListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client BastionHostsClient) listByResourceGroupNextResults(ctx context.Context, lastResults BastionHostListResult) (result BastionHostListResult, err error) { + req, err := lastResults.bastionHostListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.BastionHostsClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.BastionHostsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client BastionHostsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result BastionHostListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BastionHostsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/bgpservicecommunities.go b/services/network/mgmt/2020-07-01/network/bgpservicecommunities.go new file mode 100644 index 000000000000..175e778e1673 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/bgpservicecommunities.go @@ -0,0 +1,156 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// BgpServiceCommunitiesClient is the network Client +type BgpServiceCommunitiesClient struct { + BaseClient +} + +// NewBgpServiceCommunitiesClient creates an instance of the BgpServiceCommunitiesClient client. +func NewBgpServiceCommunitiesClient(subscriptionID string) BgpServiceCommunitiesClient { + return NewBgpServiceCommunitiesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client using a +// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, +// Azure stack). +func NewBgpServiceCommunitiesClientWithBaseURI(baseURI string, subscriptionID string) BgpServiceCommunitiesClient { + return BgpServiceCommunitiesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List gets all the available bgp service communities. +func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpServiceCommunityListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BgpServiceCommunitiesClient.List") + defer func() { + sc := -1 + if result.bsclr.Response.Response != nil { + sc = result.bsclr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.bsclr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure sending request") + return + } + + result.bsclr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") + return + } + if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client BgpServiceCommunitiesClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/bgpServiceCommunities", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client BgpServiceCommunitiesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client BgpServiceCommunitiesClient) ListResponder(resp *http.Response) (result BgpServiceCommunityListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, lastResults BgpServiceCommunityListResult) (result BgpServiceCommunityListResult, err error) { + req, err := lastResults.bgpServiceCommunityListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client BgpServiceCommunitiesClient) ListComplete(ctx context.Context) (result BgpServiceCommunityListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BgpServiceCommunitiesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} diff --git a/services/network/mgmt/2020-07-01/network/client.go b/services/network/mgmt/2020-07-01/network/client.go new file mode 100644 index 000000000000..0c157fd88674 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/client.go @@ -0,0 +1,842 @@ +// Package network implements the Azure ARM Network service API version . +// +// Network Client +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +const ( + // DefaultBaseURI is the default URI used for the service Network + DefaultBaseURI = "https://management.azure.com" +) + +// BaseClient is the base client for Network. +type BaseClient struct { + autorest.Client + BaseURI string + SubscriptionID string +} + +// New creates an instance of the BaseClient client. +func New(subscriptionID string) BaseClient { + return NewWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with +// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { + return BaseClient{ + Client: autorest.NewClientWithUserAgent(UserAgent()), + BaseURI: baseURI, + SubscriptionID: subscriptionID, + } +} + +// CheckDNSNameAvailability checks whether a domain name in the cloudapp.azure.com zone is available for use. +// Parameters: +// location - the location of the domain name. +// domainNameLabel - the domain name to be verified. It must conform to the following regular expression: +// ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. +func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location string, domainNameLabel string) (result DNSNameAvailabilityResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.CheckDNSNameAvailability") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CheckDNSNameAvailabilityPreparer(ctx, location, domainNameLabel) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", nil, "Failure preparing request") + return + } + + resp, err := client.CheckDNSNameAvailabilitySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure sending request") + return + } + + result, err = client.CheckDNSNameAvailabilityResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") + return + } + + return +} + +// CheckDNSNameAvailabilityPreparer prepares the CheckDNSNameAvailability request. +func (client BaseClient) CheckDNSNameAvailabilityPreparer(ctx context.Context, location string, domainNameLabel string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "location": autorest.Encode("path", location), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + "domainNameLabel": autorest.Encode("query", domainNameLabel), + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/CheckDnsNameAvailability", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CheckDNSNameAvailabilitySender sends the CheckDNSNameAvailability request. The method will close the +// http.Response Body if it receives an error. +func (client BaseClient) CheckDNSNameAvailabilitySender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CheckDNSNameAvailabilityResponder handles the response to the CheckDNSNameAvailability request. The method always +// closes the http.Response Body. +func (client BaseClient) CheckDNSNameAvailabilityResponder(resp *http.Response) (result DNSNameAvailabilityResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// DeleteBastionShareableLink deletes the Bastion Shareable Links for all the VMs specified in the request. +// Parameters: +// resourceGroupName - the name of the resource group. +// bastionHostName - the name of the Bastion Host. +// bslRequest - post request for all the Bastion Shareable Link endpoints. +func (client BaseClient) DeleteBastionShareableLink(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest) (result DeleteBastionShareableLinkFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.DeleteBastionShareableLink") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeleteBastionShareableLinkPreparer(ctx, resourceGroupName, bastionHostName, bslRequest) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BaseClient", "DeleteBastionShareableLink", nil, "Failure preparing request") + return + } + + result, err = client.DeleteBastionShareableLinkSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BaseClient", "DeleteBastionShareableLink", result.Response(), "Failure sending request") + return + } + + return +} + +// DeleteBastionShareableLinkPreparer prepares the DeleteBastionShareableLink request. +func (client BaseClient) DeleteBastionShareableLinkPreparer(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "bastionHostName": autorest.Encode("path", bastionHostName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/deleteShareableLinks", pathParameters), + autorest.WithJSON(bslRequest), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteBastionShareableLinkSender sends the DeleteBastionShareableLink request. The method will close the +// http.Response Body if it receives an error. +func (client BaseClient) DeleteBastionShareableLinkSender(req *http.Request) (future DeleteBastionShareableLinkFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteBastionShareableLinkResponder handles the response to the DeleteBastionShareableLink request. The method always +// closes the http.Response Body. +func (client BaseClient) DeleteBastionShareableLinkResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// DisconnectActiveSessions returns the list of currently active sessions on the Bastion. +// Parameters: +// resourceGroupName - the name of the resource group. +// bastionHostName - the name of the Bastion Host. +// sessionIds - the list of sessionids to disconnect. +func (client BaseClient) DisconnectActiveSessions(ctx context.Context, resourceGroupName string, bastionHostName string, sessionIds SessionIds) (result BastionSessionDeleteResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.DisconnectActiveSessions") + defer func() { + sc := -1 + if result.bsdr.Response.Response != nil { + sc = result.bsdr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.disconnectActiveSessionsNextResults + req, err := client.DisconnectActiveSessionsPreparer(ctx, resourceGroupName, bastionHostName, sessionIds) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BaseClient", "DisconnectActiveSessions", nil, "Failure preparing request") + return + } + + resp, err := client.DisconnectActiveSessionsSender(req) + if err != nil { + result.bsdr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.BaseClient", "DisconnectActiveSessions", resp, "Failure sending request") + return + } + + result.bsdr, err = client.DisconnectActiveSessionsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BaseClient", "DisconnectActiveSessions", resp, "Failure responding to request") + return + } + if result.bsdr.hasNextLink() && result.bsdr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// DisconnectActiveSessionsPreparer prepares the DisconnectActiveSessions request. +func (client BaseClient) DisconnectActiveSessionsPreparer(ctx context.Context, resourceGroupName string, bastionHostName string, sessionIds SessionIds) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "bastionHostName": autorest.Encode("path", bastionHostName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/disconnectActiveSessions", pathParameters), + autorest.WithJSON(sessionIds), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DisconnectActiveSessionsSender sends the DisconnectActiveSessions request. The method will close the +// http.Response Body if it receives an error. +func (client BaseClient) DisconnectActiveSessionsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// DisconnectActiveSessionsResponder handles the response to the DisconnectActiveSessions request. The method always +// closes the http.Response Body. +func (client BaseClient) DisconnectActiveSessionsResponder(resp *http.Response) (result BastionSessionDeleteResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// disconnectActiveSessionsNextResults retrieves the next set of results, if any. +func (client BaseClient) disconnectActiveSessionsNextResults(ctx context.Context, lastResults BastionSessionDeleteResult) (result BastionSessionDeleteResult, err error) { + req, err := lastResults.bastionSessionDeleteResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.BaseClient", "disconnectActiveSessionsNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.DisconnectActiveSessionsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.BaseClient", "disconnectActiveSessionsNextResults", resp, "Failure sending next results request") + } + result, err = client.DisconnectActiveSessionsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BaseClient", "disconnectActiveSessionsNextResults", resp, "Failure responding to next results request") + } + return +} + +// DisconnectActiveSessionsComplete enumerates all values, automatically crossing page boundaries as required. +func (client BaseClient) DisconnectActiveSessionsComplete(ctx context.Context, resourceGroupName string, bastionHostName string, sessionIds SessionIds) (result BastionSessionDeleteResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.DisconnectActiveSessions") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.DisconnectActiveSessions(ctx, resourceGroupName, bastionHostName, sessionIds) + return +} + +// Generatevirtualwanvpnserverconfigurationvpnprofile generates a unique VPN profile for P2S clients for VirtualWan and +// associated VpnServerConfiguration combination in the specified resource group. +// Parameters: +// resourceGroupName - the resource group name. +// virtualWANName - the name of the VirtualWAN whose associated VpnServerConfigurations is needed. +// vpnClientParams - parameters supplied to the generate VirtualWan VPN profile generation operation. +func (client BaseClient) Generatevirtualwanvpnserverconfigurationvpnprofile(ctx context.Context, resourceGroupName string, virtualWANName string, vpnClientParams VirtualWanVpnProfileParameters) (result GeneratevirtualwanvpnserverconfigurationvpnprofileFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.Generatevirtualwanvpnserverconfigurationvpnprofile") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GeneratevirtualwanvpnserverconfigurationvpnprofilePreparer(ctx, resourceGroupName, virtualWANName, vpnClientParams) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BaseClient", "Generatevirtualwanvpnserverconfigurationvpnprofile", nil, "Failure preparing request") + return + } + + result, err = client.GeneratevirtualwanvpnserverconfigurationvpnprofileSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BaseClient", "Generatevirtualwanvpnserverconfigurationvpnprofile", result.Response(), "Failure sending request") + return + } + + return +} + +// GeneratevirtualwanvpnserverconfigurationvpnprofilePreparer prepares the Generatevirtualwanvpnserverconfigurationvpnprofile request. +func (client BaseClient) GeneratevirtualwanvpnserverconfigurationvpnprofilePreparer(ctx context.Context, resourceGroupName string, virtualWANName string, vpnClientParams VirtualWanVpnProfileParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualWANName": autorest.Encode("path", virtualWANName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/GenerateVpnProfile", pathParameters), + autorest.WithJSON(vpnClientParams), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GeneratevirtualwanvpnserverconfigurationvpnprofileSender sends the Generatevirtualwanvpnserverconfigurationvpnprofile request. The method will close the +// http.Response Body if it receives an error. +func (client BaseClient) GeneratevirtualwanvpnserverconfigurationvpnprofileSender(req *http.Request) (future GeneratevirtualwanvpnserverconfigurationvpnprofileFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// GeneratevirtualwanvpnserverconfigurationvpnprofileResponder handles the response to the Generatevirtualwanvpnserverconfigurationvpnprofile request. The method always +// closes the http.Response Body. +func (client BaseClient) GeneratevirtualwanvpnserverconfigurationvpnprofileResponder(resp *http.Response) (result VpnProfileResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetActiveSessions returns the list of currently active sessions on the Bastion. +// Parameters: +// resourceGroupName - the name of the resource group. +// bastionHostName - the name of the Bastion Host. +func (client BaseClient) GetActiveSessions(ctx context.Context, resourceGroupName string, bastionHostName string) (result GetActiveSessionsFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetActiveSessions") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetActiveSessionsPreparer(ctx, resourceGroupName, bastionHostName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BaseClient", "GetActiveSessions", nil, "Failure preparing request") + return + } + + result, err = client.GetActiveSessionsSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BaseClient", "GetActiveSessions", result.Response(), "Failure sending request") + return + } + + return +} + +// GetActiveSessionsPreparer prepares the GetActiveSessions request. +func (client BaseClient) GetActiveSessionsPreparer(ctx context.Context, resourceGroupName string, bastionHostName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "bastionHostName": autorest.Encode("path", bastionHostName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/getActiveSessions", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetActiveSessionsSender sends the GetActiveSessions request. The method will close the +// http.Response Body if it receives an error. +func (client BaseClient) GetActiveSessionsSender(req *http.Request) (future GetActiveSessionsFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// GetActiveSessionsResponder handles the response to the GetActiveSessions request. The method always +// closes the http.Response Body. +func (client BaseClient) GetActiveSessionsResponder(resp *http.Response) (result BastionActiveSessionListResultPage, err error) { + result.baslr, err = client.getActiveSessionsResponder(resp) + result.fn = client.getActiveSessionsNextResults + return +} + +func (client BaseClient) getActiveSessionsResponder(resp *http.Response) (result BastionActiveSessionListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// getActiveSessionsNextResults retrieves the next set of results, if any. +func (client BaseClient) getActiveSessionsNextResults(ctx context.Context, lastResults BastionActiveSessionListResult) (result BastionActiveSessionListResult, err error) { + req, err := lastResults.bastionActiveSessionListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.BaseClient", "getActiveSessionsNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + var resp *http.Response + resp, err = client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.BaseClient", "getActiveSessionsNextResults", resp, "Failure sending next results request") + } + return client.getActiveSessionsResponder(resp) +} + +// GetActiveSessionsComplete enumerates all values, automatically crossing page boundaries as required. +func (client BaseClient) GetActiveSessionsComplete(ctx context.Context, resourceGroupName string, bastionHostName string) (result GetActiveSessionsAllFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetActiveSessions") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + var future GetActiveSessionsFuture + future, err = client.GetActiveSessions(ctx, resourceGroupName, bastionHostName) + result.Future = future.Future + return +} + +// GetBastionShareableLink return the Bastion Shareable Links for all the VMs specified in the request. +// Parameters: +// resourceGroupName - the name of the resource group. +// bastionHostName - the name of the Bastion Host. +// bslRequest - post request for all the Bastion Shareable Link endpoints. +func (client BaseClient) GetBastionShareableLink(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest) (result BastionShareableLinkListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetBastionShareableLink") + defer func() { + sc := -1 + if result.bsllr.Response.Response != nil { + sc = result.bsllr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.getBastionShareableLinkNextResults + req, err := client.GetBastionShareableLinkPreparer(ctx, resourceGroupName, bastionHostName, bslRequest) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BaseClient", "GetBastionShareableLink", nil, "Failure preparing request") + return + } + + resp, err := client.GetBastionShareableLinkSender(req) + if err != nil { + result.bsllr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.BaseClient", "GetBastionShareableLink", resp, "Failure sending request") + return + } + + result.bsllr, err = client.GetBastionShareableLinkResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BaseClient", "GetBastionShareableLink", resp, "Failure responding to request") + return + } + if result.bsllr.hasNextLink() && result.bsllr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// GetBastionShareableLinkPreparer prepares the GetBastionShareableLink request. +func (client BaseClient) GetBastionShareableLinkPreparer(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "bastionHostName": autorest.Encode("path", bastionHostName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/getShareableLinks", pathParameters), + autorest.WithJSON(bslRequest), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetBastionShareableLinkSender sends the GetBastionShareableLink request. The method will close the +// http.Response Body if it receives an error. +func (client BaseClient) GetBastionShareableLinkSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetBastionShareableLinkResponder handles the response to the GetBastionShareableLink request. The method always +// closes the http.Response Body. +func (client BaseClient) GetBastionShareableLinkResponder(resp *http.Response) (result BastionShareableLinkListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// getBastionShareableLinkNextResults retrieves the next set of results, if any. +func (client BaseClient) getBastionShareableLinkNextResults(ctx context.Context, lastResults BastionShareableLinkListResult) (result BastionShareableLinkListResult, err error) { + req, err := lastResults.bastionShareableLinkListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.BaseClient", "getBastionShareableLinkNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.GetBastionShareableLinkSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.BaseClient", "getBastionShareableLinkNextResults", resp, "Failure sending next results request") + } + result, err = client.GetBastionShareableLinkResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BaseClient", "getBastionShareableLinkNextResults", resp, "Failure responding to next results request") + } + return +} + +// GetBastionShareableLinkComplete enumerates all values, automatically crossing page boundaries as required. +func (client BaseClient) GetBastionShareableLinkComplete(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest) (result BastionShareableLinkListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetBastionShareableLink") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.GetBastionShareableLink(ctx, resourceGroupName, bastionHostName, bslRequest) + return +} + +// PutBastionShareableLink creates a Bastion Shareable Links for all the VMs specified in the request. +// Parameters: +// resourceGroupName - the name of the resource group. +// bastionHostName - the name of the Bastion Host. +// bslRequest - post request for all the Bastion Shareable Link endpoints. +func (client BaseClient) PutBastionShareableLink(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest) (result PutBastionShareableLinkFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.PutBastionShareableLink") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.PutBastionShareableLinkPreparer(ctx, resourceGroupName, bastionHostName, bslRequest) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BaseClient", "PutBastionShareableLink", nil, "Failure preparing request") + return + } + + result, err = client.PutBastionShareableLinkSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BaseClient", "PutBastionShareableLink", result.Response(), "Failure sending request") + return + } + + return +} + +// PutBastionShareableLinkPreparer prepares the PutBastionShareableLink request. +func (client BaseClient) PutBastionShareableLinkPreparer(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "bastionHostName": autorest.Encode("path", bastionHostName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/createShareableLinks", pathParameters), + autorest.WithJSON(bslRequest), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// PutBastionShareableLinkSender sends the PutBastionShareableLink request. The method will close the +// http.Response Body if it receives an error. +func (client BaseClient) PutBastionShareableLinkSender(req *http.Request) (future PutBastionShareableLinkFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// PutBastionShareableLinkResponder handles the response to the PutBastionShareableLink request. The method always +// closes the http.Response Body. +func (client BaseClient) PutBastionShareableLinkResponder(resp *http.Response) (result BastionShareableLinkListResultPage, err error) { + result.bsllr, err = client.putBastionShareableLinkResponder(resp) + result.fn = client.putBastionShareableLinkNextResults + return +} + +func (client BaseClient) putBastionShareableLinkResponder(resp *http.Response) (result BastionShareableLinkListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// putBastionShareableLinkNextResults retrieves the next set of results, if any. +func (client BaseClient) putBastionShareableLinkNextResults(ctx context.Context, lastResults BastionShareableLinkListResult) (result BastionShareableLinkListResult, err error) { + req, err := lastResults.bastionShareableLinkListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.BaseClient", "putBastionShareableLinkNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + var resp *http.Response + resp, err = client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.BaseClient", "putBastionShareableLinkNextResults", resp, "Failure sending next results request") + } + return client.putBastionShareableLinkResponder(resp) +} + +// PutBastionShareableLinkComplete enumerates all values, automatically crossing page boundaries as required. +func (client BaseClient) PutBastionShareableLinkComplete(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest) (result PutBastionShareableLinkAllFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.PutBastionShareableLink") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + var future PutBastionShareableLinkFuture + future, err = client.PutBastionShareableLink(ctx, resourceGroupName, bastionHostName, bslRequest) + result.Future = future.Future + return +} + +// SupportedSecurityProviders gives the supported security providers for the virtual wan. +// Parameters: +// resourceGroupName - the resource group name. +// virtualWANName - the name of the VirtualWAN for which supported security providers are needed. +func (client BaseClient) SupportedSecurityProviders(ctx context.Context, resourceGroupName string, virtualWANName string) (result VirtualWanSecurityProviders, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.SupportedSecurityProviders") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.SupportedSecurityProvidersPreparer(ctx, resourceGroupName, virtualWANName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BaseClient", "SupportedSecurityProviders", nil, "Failure preparing request") + return + } + + resp, err := client.SupportedSecurityProvidersSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.BaseClient", "SupportedSecurityProviders", resp, "Failure sending request") + return + } + + result, err = client.SupportedSecurityProvidersResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BaseClient", "SupportedSecurityProviders", resp, "Failure responding to request") + return + } + + return +} + +// SupportedSecurityProvidersPreparer prepares the SupportedSecurityProviders request. +func (client BaseClient) SupportedSecurityProvidersPreparer(ctx context.Context, resourceGroupName string, virtualWANName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualWANName": autorest.Encode("path", virtualWANName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/supportedSecurityProviders", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// SupportedSecurityProvidersSender sends the SupportedSecurityProviders request. The method will close the +// http.Response Body if it receives an error. +func (client BaseClient) SupportedSecurityProvidersSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// SupportedSecurityProvidersResponder handles the response to the SupportedSecurityProviders request. The method always +// closes the http.Response Body. +func (client BaseClient) SupportedSecurityProvidersResponder(resp *http.Response) (result VirtualWanSecurityProviders, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/connectionmonitors.go b/services/network/mgmt/2020-07-01/network/connectionmonitors.go new file mode 100644 index 000000000000..7abbdc99042a --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/connectionmonitors.go @@ -0,0 +1,692 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ConnectionMonitorsClient is the network Client +type ConnectionMonitorsClient struct { + BaseClient +} + +// NewConnectionMonitorsClient creates an instance of the ConnectionMonitorsClient client. +func NewConnectionMonitorsClient(subscriptionID string) ConnectionMonitorsClient { + return NewConnectionMonitorsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewConnectionMonitorsClientWithBaseURI(baseURI string, subscriptionID string) ConnectionMonitorsClient { + return ConnectionMonitorsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate create or update a connection monitor. +// Parameters: +// resourceGroupName - the name of the resource group containing Network Watcher. +// networkWatcherName - the name of the Network Watcher resource. +// connectionMonitorName - the name of the connection monitor. +// parameters - parameters that define the operation to create a connection monitor. +// migrate - value indicating whether connection monitor V1 should be migrated to V2 format. +func (client ConnectionMonitorsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string, parameters ConnectionMonitor, migrate string) (result ConnectionMonitorsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ConnectionMonitorsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.ConnectionMonitorParameters", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "parameters.ConnectionMonitorParameters.Source", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.ConnectionMonitorParameters.Source.ResourceID", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.ConnectionMonitorParameters.Source.Port", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.ConnectionMonitorParameters.Source.Port", Name: validation.InclusiveMaximum, Rule: int64(65535), Chain: nil}, + {Target: "parameters.ConnectionMonitorParameters.Source.Port", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + }}, + }}, + {Target: "parameters.ConnectionMonitorParameters.Destination", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.ConnectionMonitorParameters.Destination.Port", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.ConnectionMonitorParameters.Destination.Port", Name: validation.InclusiveMaximum, Rule: int64(65535), Chain: nil}, + {Target: "parameters.ConnectionMonitorParameters.Destination.Port", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + }}, + }}, + {Target: "parameters.ConnectionMonitorParameters.MonitoringIntervalInSeconds", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.ConnectionMonitorParameters.MonitoringIntervalInSeconds", Name: validation.InclusiveMaximum, Rule: int64(1800), Chain: nil}, + {Target: "parameters.ConnectionMonitorParameters.MonitoringIntervalInSeconds", Name: validation.InclusiveMinimum, Rule: int64(30), Chain: nil}, + }}, + }}}}}); err != nil { + return result, validation.NewError("network.ConnectionMonitorsClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, networkWatcherName, connectionMonitorName, parameters, migrate) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client ConnectionMonitorsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string, parameters ConnectionMonitor, migrate string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "connectionMonitorName": autorest.Encode("path", connectionMonitorName), + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(migrate) > 0 { + queryParameters["migrate"] = autorest.Encode("query", migrate) + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client ConnectionMonitorsClient) CreateOrUpdateSender(req *http.Request) (future ConnectionMonitorsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client ConnectionMonitorsClient) CreateOrUpdateResponder(resp *http.Response) (result ConnectionMonitorResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified connection monitor. +// Parameters: +// resourceGroupName - the name of the resource group containing Network Watcher. +// networkWatcherName - the name of the Network Watcher resource. +// connectionMonitorName - the name of the connection monitor. +func (client ConnectionMonitorsClient) Delete(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string) (result ConnectionMonitorsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ConnectionMonitorsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, networkWatcherName, connectionMonitorName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client ConnectionMonitorsClient) DeletePreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "connectionMonitorName": autorest.Encode("path", connectionMonitorName), + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client ConnectionMonitorsClient) DeleteSender(req *http.Request) (future ConnectionMonitorsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client ConnectionMonitorsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets a connection monitor by name. +// Parameters: +// resourceGroupName - the name of the resource group containing Network Watcher. +// networkWatcherName - the name of the Network Watcher resource. +// connectionMonitorName - the name of the connection monitor. +func (client ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string) (result ConnectionMonitorResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ConnectionMonitorsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, networkWatcherName, connectionMonitorName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ConnectionMonitorsClient) GetPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "connectionMonitorName": autorest.Encode("path", connectionMonitorName), + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ConnectionMonitorsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ConnectionMonitorsClient) GetResponder(resp *http.Response) (result ConnectionMonitorResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all connection monitors for the specified Network Watcher. +// Parameters: +// resourceGroupName - the name of the resource group containing Network Watcher. +// networkWatcherName - the name of the Network Watcher resource. +func (client ConnectionMonitorsClient) List(ctx context.Context, resourceGroupName string, networkWatcherName string) (result ConnectionMonitorListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ConnectionMonitorsClient.List") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListPreparer(ctx, resourceGroupName, networkWatcherName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure responding to request") + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ConnectionMonitorsClient) ListPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ConnectionMonitorsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ConnectionMonitorsClient) ListResponder(resp *http.Response) (result ConnectionMonitorListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Query query a snapshot of the most recent connection states. +// Parameters: +// resourceGroupName - the name of the resource group containing Network Watcher. +// networkWatcherName - the name of the Network Watcher resource. +// connectionMonitorName - the name given to the connection monitor. +func (client ConnectionMonitorsClient) Query(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string) (result ConnectionMonitorsQueryFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ConnectionMonitorsClient.Query") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.QueryPreparer(ctx, resourceGroupName, networkWatcherName, connectionMonitorName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Query", nil, "Failure preparing request") + return + } + + result, err = client.QuerySender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Query", result.Response(), "Failure sending request") + return + } + + return +} + +// QueryPreparer prepares the Query request. +func (client ConnectionMonitorsClient) QueryPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "connectionMonitorName": autorest.Encode("path", connectionMonitorName), + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/query", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// QuerySender sends the Query request. The method will close the +// http.Response Body if it receives an error. +func (client ConnectionMonitorsClient) QuerySender(req *http.Request) (future ConnectionMonitorsQueryFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// QueryResponder handles the response to the Query request. The method always +// closes the http.Response Body. +func (client ConnectionMonitorsClient) QueryResponder(resp *http.Response) (result ConnectionMonitorQueryResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Start starts the specified connection monitor. +// Parameters: +// resourceGroupName - the name of the resource group containing Network Watcher. +// networkWatcherName - the name of the Network Watcher resource. +// connectionMonitorName - the name of the connection monitor. +func (client ConnectionMonitorsClient) Start(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string) (result ConnectionMonitorsStartFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ConnectionMonitorsClient.Start") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.StartPreparer(ctx, resourceGroupName, networkWatcherName, connectionMonitorName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Start", nil, "Failure preparing request") + return + } + + result, err = client.StartSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Start", result.Response(), "Failure sending request") + return + } + + return +} + +// StartPreparer prepares the Start request. +func (client ConnectionMonitorsClient) StartPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "connectionMonitorName": autorest.Encode("path", connectionMonitorName), + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/start", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// StartSender sends the Start request. The method will close the +// http.Response Body if it receives an error. +func (client ConnectionMonitorsClient) StartSender(req *http.Request) (future ConnectionMonitorsStartFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// StartResponder handles the response to the Start request. The method always +// closes the http.Response Body. +func (client ConnectionMonitorsClient) StartResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// Stop stops the specified connection monitor. +// Parameters: +// resourceGroupName - the name of the resource group containing Network Watcher. +// networkWatcherName - the name of the Network Watcher resource. +// connectionMonitorName - the name of the connection monitor. +func (client ConnectionMonitorsClient) Stop(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string) (result ConnectionMonitorsStopFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ConnectionMonitorsClient.Stop") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.StopPreparer(ctx, resourceGroupName, networkWatcherName, connectionMonitorName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Stop", nil, "Failure preparing request") + return + } + + result, err = client.StopSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Stop", result.Response(), "Failure sending request") + return + } + + return +} + +// StopPreparer prepares the Stop request. +func (client ConnectionMonitorsClient) StopPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "connectionMonitorName": autorest.Encode("path", connectionMonitorName), + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/stop", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// StopSender sends the Stop request. The method will close the +// http.Response Body if it receives an error. +func (client ConnectionMonitorsClient) StopSender(req *http.Request) (future ConnectionMonitorsStopFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// StopResponder handles the response to the Stop request. The method always +// closes the http.Response Body. +func (client ConnectionMonitorsClient) StopResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// UpdateTags update tags of the specified connection monitor. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkWatcherName - the name of the network watcher. +// connectionMonitorName - the name of the connection monitor. +// parameters - parameters supplied to update connection monitor tags. +func (client ConnectionMonitorsClient) UpdateTags(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string, parameters TagsObject) (result ConnectionMonitorResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ConnectionMonitorsClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, networkWatcherName, connectionMonitorName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client ConnectionMonitorsClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "connectionMonitorName": autorest.Encode("path", connectionMonitorName), + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client ConnectionMonitorsClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client ConnectionMonitorsClient) UpdateTagsResponder(resp *http.Response) (result ConnectionMonitorResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/customipprefixes.go b/services/network/mgmt/2020-07-01/network/customipprefixes.go new file mode 100644 index 000000000000..e0216d892a26 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/customipprefixes.go @@ -0,0 +1,584 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// CustomIPPrefixesClient is the network Client +type CustomIPPrefixesClient struct { + BaseClient +} + +// NewCustomIPPrefixesClient creates an instance of the CustomIPPrefixesClient client. +func NewCustomIPPrefixesClient(subscriptionID string) CustomIPPrefixesClient { + return NewCustomIPPrefixesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewCustomIPPrefixesClientWithBaseURI creates an instance of the CustomIPPrefixesClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewCustomIPPrefixesClientWithBaseURI(baseURI string, subscriptionID string) CustomIPPrefixesClient { + return CustomIPPrefixesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a custom IP prefix. +// Parameters: +// resourceGroupName - the name of the resource group. +// customIPPrefixName - the name of the custom IP prefix. +// parameters - parameters supplied to the create or update custom IP prefix operation. +func (client CustomIPPrefixesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, customIPPrefixName string, parameters CustomIPPrefix) (result CustomIPPrefixesCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CustomIPPrefixesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, customIPPrefixName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client CustomIPPrefixesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, customIPPrefixName string, parameters CustomIPPrefix) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "customIpPrefixName": autorest.Encode("path", customIPPrefixName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/customIpPrefixes/{customIpPrefixName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client CustomIPPrefixesClient) CreateOrUpdateSender(req *http.Request) (future CustomIPPrefixesCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client CustomIPPrefixesClient) CreateOrUpdateResponder(resp *http.Response) (result CustomIPPrefix, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified custom IP prefix. +// Parameters: +// resourceGroupName - the name of the resource group. +// customIPPrefixName - the name of the CustomIpPrefix. +func (client CustomIPPrefixesClient) Delete(ctx context.Context, resourceGroupName string, customIPPrefixName string) (result CustomIPPrefixesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CustomIPPrefixesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, customIPPrefixName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client CustomIPPrefixesClient) DeletePreparer(ctx context.Context, resourceGroupName string, customIPPrefixName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "customIpPrefixName": autorest.Encode("path", customIPPrefixName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/customIpPrefixes/{customIpPrefixName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client CustomIPPrefixesClient) DeleteSender(req *http.Request) (future CustomIPPrefixesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client CustomIPPrefixesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified custom IP prefix in a specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// customIPPrefixName - the name of the custom IP prefix. +// expand - expands referenced resources. +func (client CustomIPPrefixesClient) Get(ctx context.Context, resourceGroupName string, customIPPrefixName string, expand string) (result CustomIPPrefix, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CustomIPPrefixesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, customIPPrefixName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client CustomIPPrefixesClient) GetPreparer(ctx context.Context, resourceGroupName string, customIPPrefixName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "customIpPrefixName": autorest.Encode("path", customIPPrefixName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/customIpPrefixes/{customIpPrefixName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client CustomIPPrefixesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client CustomIPPrefixesClient) GetResponder(resp *http.Response) (result CustomIPPrefix, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all custom IP prefixes in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client CustomIPPrefixesClient) List(ctx context.Context, resourceGroupName string) (result CustomIPPrefixListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CustomIPPrefixesClient.List") + defer func() { + sc := -1 + if result.ciplr.Response.Response != nil { + sc = result.ciplr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.ciplr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "List", resp, "Failure sending request") + return + } + + result.ciplr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "List", resp, "Failure responding to request") + return + } + if result.ciplr.hasNextLink() && result.ciplr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client CustomIPPrefixesClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/customIpPrefixes", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client CustomIPPrefixesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client CustomIPPrefixesClient) ListResponder(resp *http.Response) (result CustomIPPrefixListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client CustomIPPrefixesClient) listNextResults(ctx context.Context, lastResults CustomIPPrefixListResult) (result CustomIPPrefixListResult, err error) { + req, err := lastResults.customIPPrefixListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client CustomIPPrefixesClient) ListComplete(ctx context.Context, resourceGroupName string) (result CustomIPPrefixListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CustomIPPrefixesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName) + return +} + +// ListAll gets all the custom IP prefixes in a subscription. +func (client CustomIPPrefixesClient) ListAll(ctx context.Context) (result CustomIPPrefixListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CustomIPPrefixesClient.ListAll") + defer func() { + sc := -1 + if result.ciplr.Response.Response != nil { + sc = result.ciplr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listAllNextResults + req, err := client.ListAllPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "ListAll", nil, "Failure preparing request") + return + } + + resp, err := client.ListAllSender(req) + if err != nil { + result.ciplr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "ListAll", resp, "Failure sending request") + return + } + + result.ciplr, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "ListAll", resp, "Failure responding to request") + return + } + if result.ciplr.hasNextLink() && result.ciplr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListAllPreparer prepares the ListAll request. +func (client CustomIPPrefixesClient) ListAllPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/customIpPrefixes", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAllSender sends the ListAll request. The method will close the +// http.Response Body if it receives an error. +func (client CustomIPPrefixesClient) ListAllSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAllResponder handles the response to the ListAll request. The method always +// closes the http.Response Body. +func (client CustomIPPrefixesClient) ListAllResponder(resp *http.Response) (result CustomIPPrefixListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listAllNextResults retrieves the next set of results, if any. +func (client CustomIPPrefixesClient) listAllNextResults(ctx context.Context, lastResults CustomIPPrefixListResult) (result CustomIPPrefixListResult, err error) { + req, err := lastResults.customIPPrefixListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "listAllNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListAllSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "listAllNextResults", resp, "Failure sending next results request") + } + result, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "listAllNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListAllComplete enumerates all values, automatically crossing page boundaries as required. +func (client CustomIPPrefixesClient) ListAllComplete(ctx context.Context) (result CustomIPPrefixListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CustomIPPrefixesClient.ListAll") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListAll(ctx) + return +} + +// UpdateTags updates custom IP prefix tags. +// Parameters: +// resourceGroupName - the name of the resource group. +// customIPPrefixName - the name of the custom IP prefix. +// parameters - parameters supplied to update custom IP prefix tags. +func (client CustomIPPrefixesClient) UpdateTags(ctx context.Context, resourceGroupName string, customIPPrefixName string, parameters TagsObject) (result CustomIPPrefix, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CustomIPPrefixesClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, customIPPrefixName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client CustomIPPrefixesClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, customIPPrefixName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "customIpPrefixName": autorest.Encode("path", customIPPrefixName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/customIpPrefixes/{customIpPrefixName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client CustomIPPrefixesClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client CustomIPPrefixesClient) UpdateTagsResponder(resp *http.Response) (result CustomIPPrefix, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/ddoscustompolicies.go b/services/network/mgmt/2020-07-01/network/ddoscustompolicies.go new file mode 100644 index 000000000000..83dab94dfe3d --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/ddoscustompolicies.go @@ -0,0 +1,351 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// DdosCustomPoliciesClient is the network Client +type DdosCustomPoliciesClient struct { + BaseClient +} + +// NewDdosCustomPoliciesClient creates an instance of the DdosCustomPoliciesClient client. +func NewDdosCustomPoliciesClient(subscriptionID string) DdosCustomPoliciesClient { + return NewDdosCustomPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewDdosCustomPoliciesClientWithBaseURI creates an instance of the DdosCustomPoliciesClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewDdosCustomPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DdosCustomPoliciesClient { + return DdosCustomPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a DDoS custom policy. +// Parameters: +// resourceGroupName - the name of the resource group. +// ddosCustomPolicyName - the name of the DDoS custom policy. +// parameters - parameters supplied to the create or update operation. +func (client DdosCustomPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string, parameters DdosCustomPolicy) (result DdosCustomPoliciesCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DdosCustomPoliciesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, ddosCustomPolicyName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client DdosCustomPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string, parameters DdosCustomPolicy) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "ddosCustomPolicyName": autorest.Encode("path", ddosCustomPolicyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client DdosCustomPoliciesClient) CreateOrUpdateSender(req *http.Request) (future DdosCustomPoliciesCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client DdosCustomPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result DdosCustomPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified DDoS custom policy. +// Parameters: +// resourceGroupName - the name of the resource group. +// ddosCustomPolicyName - the name of the DDoS custom policy. +func (client DdosCustomPoliciesClient) Delete(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string) (result DdosCustomPoliciesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DdosCustomPoliciesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, ddosCustomPolicyName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client DdosCustomPoliciesClient) DeletePreparer(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "ddosCustomPolicyName": autorest.Encode("path", ddosCustomPolicyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client DdosCustomPoliciesClient) DeleteSender(req *http.Request) (future DdosCustomPoliciesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client DdosCustomPoliciesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets information about the specified DDoS custom policy. +// Parameters: +// resourceGroupName - the name of the resource group. +// ddosCustomPolicyName - the name of the DDoS custom policy. +func (client DdosCustomPoliciesClient) Get(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string) (result DdosCustomPolicy, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DdosCustomPoliciesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, ddosCustomPolicyName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client DdosCustomPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "ddosCustomPolicyName": autorest.Encode("path", ddosCustomPolicyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client DdosCustomPoliciesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client DdosCustomPoliciesClient) GetResponder(resp *http.Response) (result DdosCustomPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// UpdateTags update a DDoS custom policy tags. +// Parameters: +// resourceGroupName - the name of the resource group. +// ddosCustomPolicyName - the name of the DDoS custom policy. +// parameters - parameters supplied to update DDoS custom policy resource tags. +func (client DdosCustomPoliciesClient) UpdateTags(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string, parameters TagsObject) (result DdosCustomPolicy, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DdosCustomPoliciesClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, ddosCustomPolicyName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client DdosCustomPoliciesClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "ddosCustomPolicyName": autorest.Encode("path", ddosCustomPolicyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client DdosCustomPoliciesClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client DdosCustomPoliciesClient) UpdateTagsResponder(resp *http.Response) (result DdosCustomPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/ddosprotectionplans.go b/services/network/mgmt/2020-07-01/network/ddosprotectionplans.go new file mode 100644 index 000000000000..57f5fc5973ce --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/ddosprotectionplans.go @@ -0,0 +1,583 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// DdosProtectionPlansClient is the network Client +type DdosProtectionPlansClient struct { + BaseClient +} + +// NewDdosProtectionPlansClient creates an instance of the DdosProtectionPlansClient client. +func NewDdosProtectionPlansClient(subscriptionID string) DdosProtectionPlansClient { + return NewDdosProtectionPlansClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewDdosProtectionPlansClientWithBaseURI(baseURI string, subscriptionID string) DdosProtectionPlansClient { + return DdosProtectionPlansClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a DDoS protection plan. +// Parameters: +// resourceGroupName - the name of the resource group. +// ddosProtectionPlanName - the name of the DDoS protection plan. +// parameters - parameters supplied to the create or update operation. +func (client DdosProtectionPlansClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, parameters DdosProtectionPlan) (result DdosProtectionPlansCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DdosProtectionPlansClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, ddosProtectionPlanName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client DdosProtectionPlansClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, parameters DdosProtectionPlan) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "ddosProtectionPlanName": autorest.Encode("path", ddosProtectionPlanName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.ID = nil + parameters.Name = nil + parameters.Type = nil + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client DdosProtectionPlansClient) CreateOrUpdateSender(req *http.Request) (future DdosProtectionPlansCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client DdosProtectionPlansClient) CreateOrUpdateResponder(resp *http.Response) (result DdosProtectionPlan, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified DDoS protection plan. +// Parameters: +// resourceGroupName - the name of the resource group. +// ddosProtectionPlanName - the name of the DDoS protection plan. +func (client DdosProtectionPlansClient) Delete(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result DdosProtectionPlansDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DdosProtectionPlansClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, ddosProtectionPlanName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client DdosProtectionPlansClient) DeletePreparer(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "ddosProtectionPlanName": autorest.Encode("path", ddosProtectionPlanName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client DdosProtectionPlansClient) DeleteSender(req *http.Request) (future DdosProtectionPlansDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client DdosProtectionPlansClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets information about the specified DDoS protection plan. +// Parameters: +// resourceGroupName - the name of the resource group. +// ddosProtectionPlanName - the name of the DDoS protection plan. +func (client DdosProtectionPlansClient) Get(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result DdosProtectionPlan, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DdosProtectionPlansClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, ddosProtectionPlanName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client DdosProtectionPlansClient) GetPreparer(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "ddosProtectionPlanName": autorest.Encode("path", ddosProtectionPlanName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client DdosProtectionPlansClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client DdosProtectionPlansClient) GetResponder(resp *http.Response) (result DdosProtectionPlan, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all DDoS protection plans in a subscription. +func (client DdosProtectionPlansClient) List(ctx context.Context) (result DdosProtectionPlanListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DdosProtectionPlansClient.List") + defer func() { + sc := -1 + if result.dpplr.Response.Response != nil { + sc = result.dpplr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.dpplr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", resp, "Failure sending request") + return + } + + result.dpplr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", resp, "Failure responding to request") + return + } + if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client DdosProtectionPlansClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ddosProtectionPlans", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client DdosProtectionPlansClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client DdosProtectionPlansClient) ListResponder(resp *http.Response) (result DdosProtectionPlanListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client DdosProtectionPlansClient) listNextResults(ctx context.Context, lastResults DdosProtectionPlanListResult) (result DdosProtectionPlanListResult, err error) { + req, err := lastResults.ddosProtectionPlanListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client DdosProtectionPlansClient) ListComplete(ctx context.Context) (result DdosProtectionPlanListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DdosProtectionPlansClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} + +// ListByResourceGroup gets all the DDoS protection plans in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result DdosProtectionPlanListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DdosProtectionPlansClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.dpplr.Response.Response != nil { + sc = result.dpplr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.dpplr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.dpplr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client DdosProtectionPlansClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client DdosProtectionPlansClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client DdosProtectionPlansClient) ListByResourceGroupResponder(resp *http.Response) (result DdosProtectionPlanListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client DdosProtectionPlansClient) listByResourceGroupNextResults(ctx context.Context, lastResults DdosProtectionPlanListResult) (result DdosProtectionPlanListResult, err error) { + req, err := lastResults.ddosProtectionPlanListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client DdosProtectionPlansClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result DdosProtectionPlanListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DdosProtectionPlansClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// UpdateTags update a DDoS protection plan tags. +// Parameters: +// resourceGroupName - the name of the resource group. +// ddosProtectionPlanName - the name of the DDoS protection plan. +// parameters - parameters supplied to the update DDoS protection plan resource tags. +func (client DdosProtectionPlansClient) UpdateTags(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, parameters TagsObject) (result DdosProtectionPlan, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DdosProtectionPlansClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, ddosProtectionPlanName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client DdosProtectionPlansClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "ddosProtectionPlanName": autorest.Encode("path", ddosProtectionPlanName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client DdosProtectionPlansClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client DdosProtectionPlansClient) UpdateTagsResponder(resp *http.Response) (result DdosProtectionPlan, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/defaultsecurityrules.go b/services/network/mgmt/2020-07-01/network/defaultsecurityrules.go new file mode 100644 index 000000000000..d4e82324f934 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/defaultsecurityrules.go @@ -0,0 +1,239 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// DefaultSecurityRulesClient is the network Client +type DefaultSecurityRulesClient struct { + BaseClient +} + +// NewDefaultSecurityRulesClient creates an instance of the DefaultSecurityRulesClient client. +func NewDefaultSecurityRulesClient(subscriptionID string) DefaultSecurityRulesClient { + return NewDefaultSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewDefaultSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) DefaultSecurityRulesClient { + return DefaultSecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get get the specified default network security rule. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkSecurityGroupName - the name of the network security group. +// defaultSecurityRuleName - the name of the default security rule. +func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) (result SecurityRule, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DefaultSecurityRulesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, networkSecurityGroupName, defaultSecurityRuleName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client DefaultSecurityRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "defaultSecurityRuleName": autorest.Encode("path", defaultSecurityRuleName), + "networkSecurityGroupName": autorest.Encode("path", networkSecurityGroupName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules/{defaultSecurityRuleName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client DefaultSecurityRulesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client DefaultSecurityRulesClient) GetResponder(resp *http.Response) (result SecurityRule, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all default security rules in a network security group. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkSecurityGroupName - the name of the network security group. +func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result SecurityRuleListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DefaultSecurityRulesClient.List") + defer func() { + sc := -1 + if result.srlr.Response.Response != nil { + sc = result.srlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, networkSecurityGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.srlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure sending request") + return + } + + result.srlr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") + return + } + if result.srlr.hasNextLink() && result.srlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client DefaultSecurityRulesClient) ListPreparer(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkSecurityGroupName": autorest.Encode("path", networkSecurityGroupName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client DefaultSecurityRulesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client DefaultSecurityRulesClient) ListResponder(resp *http.Response) (result SecurityRuleListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, lastResults SecurityRuleListResult) (result SecurityRuleListResult, err error) { + req, err := lastResults.securityRuleListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client DefaultSecurityRulesClient) ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result SecurityRuleListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DefaultSecurityRulesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, networkSecurityGroupName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/dscpconfiguration.go b/services/network/mgmt/2020-07-01/network/dscpconfiguration.go new file mode 100644 index 000000000000..6af737c0c9ff --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/dscpconfiguration.go @@ -0,0 +1,501 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// DscpConfigurationClient is the network Client +type DscpConfigurationClient struct { + BaseClient +} + +// NewDscpConfigurationClient creates an instance of the DscpConfigurationClient client. +func NewDscpConfigurationClient(subscriptionID string) DscpConfigurationClient { + return NewDscpConfigurationClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewDscpConfigurationClientWithBaseURI creates an instance of the DscpConfigurationClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewDscpConfigurationClientWithBaseURI(baseURI string, subscriptionID string) DscpConfigurationClient { + return DscpConfigurationClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a DSCP Configuration. +// Parameters: +// resourceGroupName - the name of the resource group. +// dscpConfigurationName - the name of the resource. +// parameters - parameters supplied to the create or update dscp configuration operation. +func (client DscpConfigurationClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, dscpConfigurationName string, parameters DscpConfiguration) (result DscpConfigurationCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DscpConfigurationClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, dscpConfigurationName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DscpConfigurationClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DscpConfigurationClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client DscpConfigurationClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, dscpConfigurationName string, parameters DscpConfiguration) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "dscpConfigurationName": autorest.Encode("path", dscpConfigurationName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dscpConfigurations/{dscpConfigurationName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client DscpConfigurationClient) CreateOrUpdateSender(req *http.Request) (future DscpConfigurationCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client DscpConfigurationClient) CreateOrUpdateResponder(resp *http.Response) (result DscpConfiguration, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes a DSCP Configuration. +// Parameters: +// resourceGroupName - the name of the resource group. +// dscpConfigurationName - the name of the resource. +func (client DscpConfigurationClient) Delete(ctx context.Context, resourceGroupName string, dscpConfigurationName string) (result DscpConfigurationDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DscpConfigurationClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, dscpConfigurationName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DscpConfigurationClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DscpConfigurationClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client DscpConfigurationClient) DeletePreparer(ctx context.Context, resourceGroupName string, dscpConfigurationName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "dscpConfigurationName": autorest.Encode("path", dscpConfigurationName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dscpConfigurations/{dscpConfigurationName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client DscpConfigurationClient) DeleteSender(req *http.Request) (future DscpConfigurationDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client DscpConfigurationClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets a DSCP Configuration. +// Parameters: +// resourceGroupName - the name of the resource group. +// dscpConfigurationName - the name of the resource. +func (client DscpConfigurationClient) Get(ctx context.Context, resourceGroupName string, dscpConfigurationName string) (result DscpConfiguration, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DscpConfigurationClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, dscpConfigurationName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DscpConfigurationClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.DscpConfigurationClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DscpConfigurationClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client DscpConfigurationClient) GetPreparer(ctx context.Context, resourceGroupName string, dscpConfigurationName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "dscpConfigurationName": autorest.Encode("path", dscpConfigurationName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dscpConfigurations/{dscpConfigurationName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client DscpConfigurationClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client DscpConfigurationClient) GetResponder(resp *http.Response) (result DscpConfiguration, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets a DSCP Configuration. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client DscpConfigurationClient) List(ctx context.Context, resourceGroupName string) (result DscpConfigurationListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DscpConfigurationClient.List") + defer func() { + sc := -1 + if result.dclr.Response.Response != nil { + sc = result.dclr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DscpConfigurationClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.dclr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.DscpConfigurationClient", "List", resp, "Failure sending request") + return + } + + result.dclr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DscpConfigurationClient", "List", resp, "Failure responding to request") + return + } + if result.dclr.hasNextLink() && result.dclr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client DscpConfigurationClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dscpConfigurations", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client DscpConfigurationClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client DscpConfigurationClient) ListResponder(resp *http.Response) (result DscpConfigurationListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client DscpConfigurationClient) listNextResults(ctx context.Context, lastResults DscpConfigurationListResult) (result DscpConfigurationListResult, err error) { + req, err := lastResults.dscpConfigurationListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.DscpConfigurationClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.DscpConfigurationClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DscpConfigurationClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client DscpConfigurationClient) ListComplete(ctx context.Context, resourceGroupName string) (result DscpConfigurationListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DscpConfigurationClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName) + return +} + +// ListAll gets all dscp configurations in a subscription. +func (client DscpConfigurationClient) ListAll(ctx context.Context) (result DscpConfigurationListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DscpConfigurationClient.ListAll") + defer func() { + sc := -1 + if result.dclr.Response.Response != nil { + sc = result.dclr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listAllNextResults + req, err := client.ListAllPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DscpConfigurationClient", "ListAll", nil, "Failure preparing request") + return + } + + resp, err := client.ListAllSender(req) + if err != nil { + result.dclr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.DscpConfigurationClient", "ListAll", resp, "Failure sending request") + return + } + + result.dclr, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DscpConfigurationClient", "ListAll", resp, "Failure responding to request") + return + } + if result.dclr.hasNextLink() && result.dclr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListAllPreparer prepares the ListAll request. +func (client DscpConfigurationClient) ListAllPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/dscpConfigurations", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAllSender sends the ListAll request. The method will close the +// http.Response Body if it receives an error. +func (client DscpConfigurationClient) ListAllSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAllResponder handles the response to the ListAll request. The method always +// closes the http.Response Body. +func (client DscpConfigurationClient) ListAllResponder(resp *http.Response) (result DscpConfigurationListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listAllNextResults retrieves the next set of results, if any. +func (client DscpConfigurationClient) listAllNextResults(ctx context.Context, lastResults DscpConfigurationListResult) (result DscpConfigurationListResult, err error) { + req, err := lastResults.dscpConfigurationListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.DscpConfigurationClient", "listAllNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListAllSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.DscpConfigurationClient", "listAllNextResults", resp, "Failure sending next results request") + } + result, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DscpConfigurationClient", "listAllNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListAllComplete enumerates all values, automatically crossing page boundaries as required. +func (client DscpConfigurationClient) ListAllComplete(ctx context.Context) (result DscpConfigurationListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DscpConfigurationClient.ListAll") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListAll(ctx) + return +} diff --git a/services/network/mgmt/2020-07-01/network/enums.go b/services/network/mgmt/2020-07-01/network/enums.go new file mode 100644 index 000000000000..010533ea3e41 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/enums.go @@ -0,0 +1,2724 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Access enumerates the values for access. +type Access string + +const ( + // Allow ... + Allow Access = "Allow" + // Deny ... + Deny Access = "Deny" +) + +// PossibleAccessValues returns an array of possible values for the Access const type. +func PossibleAccessValues() []Access { + return []Access{Allow, Deny} +} + +// ApplicationGatewayBackendHealthServerHealth enumerates the values for application gateway backend health +// server health. +type ApplicationGatewayBackendHealthServerHealth string + +const ( + // Down ... + Down ApplicationGatewayBackendHealthServerHealth = "Down" + // Draining ... + Draining ApplicationGatewayBackendHealthServerHealth = "Draining" + // Partial ... + Partial ApplicationGatewayBackendHealthServerHealth = "Partial" + // Unknown ... + Unknown ApplicationGatewayBackendHealthServerHealth = "Unknown" + // Up ... + Up ApplicationGatewayBackendHealthServerHealth = "Up" +) + +// PossibleApplicationGatewayBackendHealthServerHealthValues returns an array of possible values for the ApplicationGatewayBackendHealthServerHealth const type. +func PossibleApplicationGatewayBackendHealthServerHealthValues() []ApplicationGatewayBackendHealthServerHealth { + return []ApplicationGatewayBackendHealthServerHealth{Down, Draining, Partial, Unknown, Up} +} + +// ApplicationGatewayCookieBasedAffinity enumerates the values for application gateway cookie based affinity. +type ApplicationGatewayCookieBasedAffinity string + +const ( + // Disabled ... + Disabled ApplicationGatewayCookieBasedAffinity = "Disabled" + // Enabled ... + Enabled ApplicationGatewayCookieBasedAffinity = "Enabled" +) + +// PossibleApplicationGatewayCookieBasedAffinityValues returns an array of possible values for the ApplicationGatewayCookieBasedAffinity const type. +func PossibleApplicationGatewayCookieBasedAffinityValues() []ApplicationGatewayCookieBasedAffinity { + return []ApplicationGatewayCookieBasedAffinity{Disabled, Enabled} +} + +// ApplicationGatewayCustomErrorStatusCode enumerates the values for application gateway custom error status +// code. +type ApplicationGatewayCustomErrorStatusCode string + +const ( + // HTTPStatus403 ... + HTTPStatus403 ApplicationGatewayCustomErrorStatusCode = "HttpStatus403" + // HTTPStatus502 ... + HTTPStatus502 ApplicationGatewayCustomErrorStatusCode = "HttpStatus502" +) + +// PossibleApplicationGatewayCustomErrorStatusCodeValues returns an array of possible values for the ApplicationGatewayCustomErrorStatusCode const type. +func PossibleApplicationGatewayCustomErrorStatusCodeValues() []ApplicationGatewayCustomErrorStatusCode { + return []ApplicationGatewayCustomErrorStatusCode{HTTPStatus403, HTTPStatus502} +} + +// ApplicationGatewayFirewallMode enumerates the values for application gateway firewall mode. +type ApplicationGatewayFirewallMode string + +const ( + // Detection ... + Detection ApplicationGatewayFirewallMode = "Detection" + // Prevention ... + Prevention ApplicationGatewayFirewallMode = "Prevention" +) + +// PossibleApplicationGatewayFirewallModeValues returns an array of possible values for the ApplicationGatewayFirewallMode const type. +func PossibleApplicationGatewayFirewallModeValues() []ApplicationGatewayFirewallMode { + return []ApplicationGatewayFirewallMode{Detection, Prevention} +} + +// ApplicationGatewayOperationalState enumerates the values for application gateway operational state. +type ApplicationGatewayOperationalState string + +const ( + // Running ... + Running ApplicationGatewayOperationalState = "Running" + // Starting ... + Starting ApplicationGatewayOperationalState = "Starting" + // Stopped ... + Stopped ApplicationGatewayOperationalState = "Stopped" + // Stopping ... + Stopping ApplicationGatewayOperationalState = "Stopping" +) + +// PossibleApplicationGatewayOperationalStateValues returns an array of possible values for the ApplicationGatewayOperationalState const type. +func PossibleApplicationGatewayOperationalStateValues() []ApplicationGatewayOperationalState { + return []ApplicationGatewayOperationalState{Running, Starting, Stopped, Stopping} +} + +// ApplicationGatewayProtocol enumerates the values for application gateway protocol. +type ApplicationGatewayProtocol string + +const ( + // HTTP ... + HTTP ApplicationGatewayProtocol = "Http" + // HTTPS ... + HTTPS ApplicationGatewayProtocol = "Https" +) + +// PossibleApplicationGatewayProtocolValues returns an array of possible values for the ApplicationGatewayProtocol const type. +func PossibleApplicationGatewayProtocolValues() []ApplicationGatewayProtocol { + return []ApplicationGatewayProtocol{HTTP, HTTPS} +} + +// ApplicationGatewayRedirectType enumerates the values for application gateway redirect type. +type ApplicationGatewayRedirectType string + +const ( + // Found ... + Found ApplicationGatewayRedirectType = "Found" + // Permanent ... + Permanent ApplicationGatewayRedirectType = "Permanent" + // SeeOther ... + SeeOther ApplicationGatewayRedirectType = "SeeOther" + // Temporary ... + Temporary ApplicationGatewayRedirectType = "Temporary" +) + +// PossibleApplicationGatewayRedirectTypeValues returns an array of possible values for the ApplicationGatewayRedirectType const type. +func PossibleApplicationGatewayRedirectTypeValues() []ApplicationGatewayRedirectType { + return []ApplicationGatewayRedirectType{Found, Permanent, SeeOther, Temporary} +} + +// ApplicationGatewayRequestRoutingRuleType enumerates the values for application gateway request routing rule +// type. +type ApplicationGatewayRequestRoutingRuleType string + +const ( + // Basic ... + Basic ApplicationGatewayRequestRoutingRuleType = "Basic" + // PathBasedRouting ... + PathBasedRouting ApplicationGatewayRequestRoutingRuleType = "PathBasedRouting" +) + +// PossibleApplicationGatewayRequestRoutingRuleTypeValues returns an array of possible values for the ApplicationGatewayRequestRoutingRuleType const type. +func PossibleApplicationGatewayRequestRoutingRuleTypeValues() []ApplicationGatewayRequestRoutingRuleType { + return []ApplicationGatewayRequestRoutingRuleType{Basic, PathBasedRouting} +} + +// ApplicationGatewaySkuName enumerates the values for application gateway sku name. +type ApplicationGatewaySkuName string + +const ( + // StandardLarge ... + StandardLarge ApplicationGatewaySkuName = "Standard_Large" + // StandardMedium ... + StandardMedium ApplicationGatewaySkuName = "Standard_Medium" + // StandardSmall ... + StandardSmall ApplicationGatewaySkuName = "Standard_Small" + // StandardV2 ... + StandardV2 ApplicationGatewaySkuName = "Standard_v2" + // WAFLarge ... + WAFLarge ApplicationGatewaySkuName = "WAF_Large" + // WAFMedium ... + WAFMedium ApplicationGatewaySkuName = "WAF_Medium" + // WAFV2 ... + WAFV2 ApplicationGatewaySkuName = "WAF_v2" +) + +// PossibleApplicationGatewaySkuNameValues returns an array of possible values for the ApplicationGatewaySkuName const type. +func PossibleApplicationGatewaySkuNameValues() []ApplicationGatewaySkuName { + return []ApplicationGatewaySkuName{StandardLarge, StandardMedium, StandardSmall, StandardV2, WAFLarge, WAFMedium, WAFV2} +} + +// ApplicationGatewaySslCipherSuite enumerates the values for application gateway ssl cipher suite. +type ApplicationGatewaySslCipherSuite string + +const ( + // TLSDHEDSSWITH3DESEDECBCSHA ... + TLSDHEDSSWITH3DESEDECBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA" + // TLSDHEDSSWITHAES128CBCSHA ... + TLSDHEDSSWITHAES128CBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_AES_128_CBC_SHA" + // TLSDHEDSSWITHAES128CBCSHA256 ... + TLSDHEDSSWITHAES128CBCSHA256 ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_AES_128_CBC_SHA256" + // TLSDHEDSSWITHAES256CBCSHA ... + TLSDHEDSSWITHAES256CBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_AES_256_CBC_SHA" + // TLSDHEDSSWITHAES256CBCSHA256 ... + TLSDHEDSSWITHAES256CBCSHA256 ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_AES_256_CBC_SHA256" + // TLSDHERSAWITHAES128CBCSHA ... + TLSDHERSAWITHAES128CBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" + // TLSDHERSAWITHAES128GCMSHA256 ... + TLSDHERSAWITHAES128GCMSHA256 ApplicationGatewaySslCipherSuite = "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256" + // TLSDHERSAWITHAES256CBCSHA ... + TLSDHERSAWITHAES256CBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" + // TLSDHERSAWITHAES256GCMSHA384 ... + TLSDHERSAWITHAES256GCMSHA384 ApplicationGatewaySslCipherSuite = "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384" + // TLSECDHEECDSAWITHAES128CBCSHA ... + TLSECDHEECDSAWITHAES128CBCSHA ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" + // TLSECDHEECDSAWITHAES128CBCSHA256 ... + TLSECDHEECDSAWITHAES128CBCSHA256 ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256" + // TLSECDHEECDSAWITHAES128GCMSHA256 ... + TLSECDHEECDSAWITHAES128GCMSHA256 ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256" + // TLSECDHEECDSAWITHAES256CBCSHA ... + TLSECDHEECDSAWITHAES256CBCSHA ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" + // TLSECDHEECDSAWITHAES256CBCSHA384 ... + TLSECDHEECDSAWITHAES256CBCSHA384 ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384" + // TLSECDHEECDSAWITHAES256GCMSHA384 ... + TLSECDHEECDSAWITHAES256GCMSHA384 ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" + // TLSECDHERSAWITHAES128CBCSHA ... + TLSECDHERSAWITHAES128CBCSHA ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" + // TLSECDHERSAWITHAES128CBCSHA256 ... + TLSECDHERSAWITHAES128CBCSHA256 ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256" + // TLSECDHERSAWITHAES128GCMSHA256 ... + TLSECDHERSAWITHAES128GCMSHA256 ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" + // TLSECDHERSAWITHAES256CBCSHA ... + TLSECDHERSAWITHAES256CBCSHA ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" + // TLSECDHERSAWITHAES256CBCSHA384 ... + TLSECDHERSAWITHAES256CBCSHA384 ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384" + // TLSECDHERSAWITHAES256GCMSHA384 ... + TLSECDHERSAWITHAES256GCMSHA384 ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" + // TLSRSAWITH3DESEDECBCSHA ... + TLSRSAWITH3DESEDECBCSHA ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_3DES_EDE_CBC_SHA" + // TLSRSAWITHAES128CBCSHA ... + TLSRSAWITHAES128CBCSHA ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_128_CBC_SHA" + // TLSRSAWITHAES128CBCSHA256 ... + TLSRSAWITHAES128CBCSHA256 ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_128_CBC_SHA256" + // TLSRSAWITHAES128GCMSHA256 ... + TLSRSAWITHAES128GCMSHA256 ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_128_GCM_SHA256" + // TLSRSAWITHAES256CBCSHA ... + TLSRSAWITHAES256CBCSHA ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_256_CBC_SHA" + // TLSRSAWITHAES256CBCSHA256 ... + TLSRSAWITHAES256CBCSHA256 ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_256_CBC_SHA256" + // TLSRSAWITHAES256GCMSHA384 ... + TLSRSAWITHAES256GCMSHA384 ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_256_GCM_SHA384" +) + +// PossibleApplicationGatewaySslCipherSuiteValues returns an array of possible values for the ApplicationGatewaySslCipherSuite const type. +func PossibleApplicationGatewaySslCipherSuiteValues() []ApplicationGatewaySslCipherSuite { + return []ApplicationGatewaySslCipherSuite{TLSDHEDSSWITH3DESEDECBCSHA, TLSDHEDSSWITHAES128CBCSHA, TLSDHEDSSWITHAES128CBCSHA256, TLSDHEDSSWITHAES256CBCSHA, TLSDHEDSSWITHAES256CBCSHA256, TLSDHERSAWITHAES128CBCSHA, TLSDHERSAWITHAES128GCMSHA256, TLSDHERSAWITHAES256CBCSHA, TLSDHERSAWITHAES256GCMSHA384, TLSECDHEECDSAWITHAES128CBCSHA, TLSECDHEECDSAWITHAES128CBCSHA256, TLSECDHEECDSAWITHAES128GCMSHA256, TLSECDHEECDSAWITHAES256CBCSHA, TLSECDHEECDSAWITHAES256CBCSHA384, TLSECDHEECDSAWITHAES256GCMSHA384, TLSECDHERSAWITHAES128CBCSHA, TLSECDHERSAWITHAES128CBCSHA256, TLSECDHERSAWITHAES128GCMSHA256, TLSECDHERSAWITHAES256CBCSHA, TLSECDHERSAWITHAES256CBCSHA384, TLSECDHERSAWITHAES256GCMSHA384, TLSRSAWITH3DESEDECBCSHA, TLSRSAWITHAES128CBCSHA, TLSRSAWITHAES128CBCSHA256, TLSRSAWITHAES128GCMSHA256, TLSRSAWITHAES256CBCSHA, TLSRSAWITHAES256CBCSHA256, TLSRSAWITHAES256GCMSHA384} +} + +// ApplicationGatewaySslPolicyName enumerates the values for application gateway ssl policy name. +type ApplicationGatewaySslPolicyName string + +const ( + // AppGwSslPolicy20150501 ... + AppGwSslPolicy20150501 ApplicationGatewaySslPolicyName = "AppGwSslPolicy20150501" + // AppGwSslPolicy20170401 ... + AppGwSslPolicy20170401 ApplicationGatewaySslPolicyName = "AppGwSslPolicy20170401" + // AppGwSslPolicy20170401S ... + AppGwSslPolicy20170401S ApplicationGatewaySslPolicyName = "AppGwSslPolicy20170401S" +) + +// PossibleApplicationGatewaySslPolicyNameValues returns an array of possible values for the ApplicationGatewaySslPolicyName const type. +func PossibleApplicationGatewaySslPolicyNameValues() []ApplicationGatewaySslPolicyName { + return []ApplicationGatewaySslPolicyName{AppGwSslPolicy20150501, AppGwSslPolicy20170401, AppGwSslPolicy20170401S} +} + +// ApplicationGatewaySslPolicyType enumerates the values for application gateway ssl policy type. +type ApplicationGatewaySslPolicyType string + +const ( + // Custom ... + Custom ApplicationGatewaySslPolicyType = "Custom" + // Predefined ... + Predefined ApplicationGatewaySslPolicyType = "Predefined" +) + +// PossibleApplicationGatewaySslPolicyTypeValues returns an array of possible values for the ApplicationGatewaySslPolicyType const type. +func PossibleApplicationGatewaySslPolicyTypeValues() []ApplicationGatewaySslPolicyType { + return []ApplicationGatewaySslPolicyType{Custom, Predefined} +} + +// ApplicationGatewaySslProtocol enumerates the values for application gateway ssl protocol. +type ApplicationGatewaySslProtocol string + +const ( + // TLSv10 ... + TLSv10 ApplicationGatewaySslProtocol = "TLSv1_0" + // TLSv11 ... + TLSv11 ApplicationGatewaySslProtocol = "TLSv1_1" + // TLSv12 ... + TLSv12 ApplicationGatewaySslProtocol = "TLSv1_2" +) + +// PossibleApplicationGatewaySslProtocolValues returns an array of possible values for the ApplicationGatewaySslProtocol const type. +func PossibleApplicationGatewaySslProtocolValues() []ApplicationGatewaySslProtocol { + return []ApplicationGatewaySslProtocol{TLSv10, TLSv11, TLSv12} +} + +// ApplicationGatewayTier enumerates the values for application gateway tier. +type ApplicationGatewayTier string + +const ( + // ApplicationGatewayTierStandard ... + ApplicationGatewayTierStandard ApplicationGatewayTier = "Standard" + // ApplicationGatewayTierStandardV2 ... + ApplicationGatewayTierStandardV2 ApplicationGatewayTier = "Standard_v2" + // ApplicationGatewayTierWAF ... + ApplicationGatewayTierWAF ApplicationGatewayTier = "WAF" + // ApplicationGatewayTierWAFV2 ... + ApplicationGatewayTierWAFV2 ApplicationGatewayTier = "WAF_v2" +) + +// PossibleApplicationGatewayTierValues returns an array of possible values for the ApplicationGatewayTier const type. +func PossibleApplicationGatewayTierValues() []ApplicationGatewayTier { + return []ApplicationGatewayTier{ApplicationGatewayTierStandard, ApplicationGatewayTierStandardV2, ApplicationGatewayTierWAF, ApplicationGatewayTierWAFV2} +} + +// AssociationType enumerates the values for association type. +type AssociationType string + +const ( + // Associated ... + Associated AssociationType = "Associated" + // Contains ... + Contains AssociationType = "Contains" +) + +// PossibleAssociationTypeValues returns an array of possible values for the AssociationType const type. +func PossibleAssociationTypeValues() []AssociationType { + return []AssociationType{Associated, Contains} +} + +// AuthenticationMethod enumerates the values for authentication method. +type AuthenticationMethod string + +const ( + // EAPMSCHAPv2 ... + EAPMSCHAPv2 AuthenticationMethod = "EAPMSCHAPv2" + // EAPTLS ... + EAPTLS AuthenticationMethod = "EAPTLS" +) + +// PossibleAuthenticationMethodValues returns an array of possible values for the AuthenticationMethod const type. +func PossibleAuthenticationMethodValues() []AuthenticationMethod { + return []AuthenticationMethod{EAPMSCHAPv2, EAPTLS} +} + +// AuthorizationUseStatus enumerates the values for authorization use status. +type AuthorizationUseStatus string + +const ( + // Available ... + Available AuthorizationUseStatus = "Available" + // InUse ... + InUse AuthorizationUseStatus = "InUse" +) + +// PossibleAuthorizationUseStatusValues returns an array of possible values for the AuthorizationUseStatus const type. +func PossibleAuthorizationUseStatusValues() []AuthorizationUseStatus { + return []AuthorizationUseStatus{Available, InUse} +} + +// AzureFirewallApplicationRuleProtocolType enumerates the values for azure firewall application rule protocol +// type. +type AzureFirewallApplicationRuleProtocolType string + +const ( + // AzureFirewallApplicationRuleProtocolTypeHTTP ... + AzureFirewallApplicationRuleProtocolTypeHTTP AzureFirewallApplicationRuleProtocolType = "Http" + // AzureFirewallApplicationRuleProtocolTypeHTTPS ... + AzureFirewallApplicationRuleProtocolTypeHTTPS AzureFirewallApplicationRuleProtocolType = "Https" + // AzureFirewallApplicationRuleProtocolTypeMssql ... + AzureFirewallApplicationRuleProtocolTypeMssql AzureFirewallApplicationRuleProtocolType = "Mssql" +) + +// PossibleAzureFirewallApplicationRuleProtocolTypeValues returns an array of possible values for the AzureFirewallApplicationRuleProtocolType const type. +func PossibleAzureFirewallApplicationRuleProtocolTypeValues() []AzureFirewallApplicationRuleProtocolType { + return []AzureFirewallApplicationRuleProtocolType{AzureFirewallApplicationRuleProtocolTypeHTTP, AzureFirewallApplicationRuleProtocolTypeHTTPS, AzureFirewallApplicationRuleProtocolTypeMssql} +} + +// AzureFirewallNatRCActionType enumerates the values for azure firewall nat rc action type. +type AzureFirewallNatRCActionType string + +const ( + // Dnat ... + Dnat AzureFirewallNatRCActionType = "Dnat" + // Snat ... + Snat AzureFirewallNatRCActionType = "Snat" +) + +// PossibleAzureFirewallNatRCActionTypeValues returns an array of possible values for the AzureFirewallNatRCActionType const type. +func PossibleAzureFirewallNatRCActionTypeValues() []AzureFirewallNatRCActionType { + return []AzureFirewallNatRCActionType{Dnat, Snat} +} + +// AzureFirewallNetworkRuleProtocol enumerates the values for azure firewall network rule protocol. +type AzureFirewallNetworkRuleProtocol string + +const ( + // Any ... + Any AzureFirewallNetworkRuleProtocol = "Any" + // ICMP ... + ICMP AzureFirewallNetworkRuleProtocol = "ICMP" + // TCP ... + TCP AzureFirewallNetworkRuleProtocol = "TCP" + // UDP ... + UDP AzureFirewallNetworkRuleProtocol = "UDP" +) + +// PossibleAzureFirewallNetworkRuleProtocolValues returns an array of possible values for the AzureFirewallNetworkRuleProtocol const type. +func PossibleAzureFirewallNetworkRuleProtocolValues() []AzureFirewallNetworkRuleProtocol { + return []AzureFirewallNetworkRuleProtocol{Any, ICMP, TCP, UDP} +} + +// AzureFirewallRCActionType enumerates the values for azure firewall rc action type. +type AzureFirewallRCActionType string + +const ( + // AzureFirewallRCActionTypeAllow ... + AzureFirewallRCActionTypeAllow AzureFirewallRCActionType = "Allow" + // AzureFirewallRCActionTypeDeny ... + AzureFirewallRCActionTypeDeny AzureFirewallRCActionType = "Deny" +) + +// PossibleAzureFirewallRCActionTypeValues returns an array of possible values for the AzureFirewallRCActionType const type. +func PossibleAzureFirewallRCActionTypeValues() []AzureFirewallRCActionType { + return []AzureFirewallRCActionType{AzureFirewallRCActionTypeAllow, AzureFirewallRCActionTypeDeny} +} + +// AzureFirewallSkuName enumerates the values for azure firewall sku name. +type AzureFirewallSkuName string + +const ( + // AZFWHub ... + AZFWHub AzureFirewallSkuName = "AZFW_Hub" + // AZFWVNet ... + AZFWVNet AzureFirewallSkuName = "AZFW_VNet" +) + +// PossibleAzureFirewallSkuNameValues returns an array of possible values for the AzureFirewallSkuName const type. +func PossibleAzureFirewallSkuNameValues() []AzureFirewallSkuName { + return []AzureFirewallSkuName{AZFWHub, AZFWVNet} +} + +// AzureFirewallSkuTier enumerates the values for azure firewall sku tier. +type AzureFirewallSkuTier string + +const ( + // Premium ... + Premium AzureFirewallSkuTier = "Premium" + // Standard ... + Standard AzureFirewallSkuTier = "Standard" +) + +// PossibleAzureFirewallSkuTierValues returns an array of possible values for the AzureFirewallSkuTier const type. +func PossibleAzureFirewallSkuTierValues() []AzureFirewallSkuTier { + return []AzureFirewallSkuTier{Premium, Standard} +} + +// AzureFirewallThreatIntelMode enumerates the values for azure firewall threat intel mode. +type AzureFirewallThreatIntelMode string + +const ( + // AzureFirewallThreatIntelModeAlert ... + AzureFirewallThreatIntelModeAlert AzureFirewallThreatIntelMode = "Alert" + // AzureFirewallThreatIntelModeDeny ... + AzureFirewallThreatIntelModeDeny AzureFirewallThreatIntelMode = "Deny" + // AzureFirewallThreatIntelModeOff ... + AzureFirewallThreatIntelModeOff AzureFirewallThreatIntelMode = "Off" +) + +// PossibleAzureFirewallThreatIntelModeValues returns an array of possible values for the AzureFirewallThreatIntelMode const type. +func PossibleAzureFirewallThreatIntelModeValues() []AzureFirewallThreatIntelMode { + return []AzureFirewallThreatIntelMode{AzureFirewallThreatIntelModeAlert, AzureFirewallThreatIntelModeDeny, AzureFirewallThreatIntelModeOff} +} + +// BastionConnectProtocol enumerates the values for bastion connect protocol. +type BastionConnectProtocol string + +const ( + // RDP ... + RDP BastionConnectProtocol = "RDP" + // SSH ... + SSH BastionConnectProtocol = "SSH" +) + +// PossibleBastionConnectProtocolValues returns an array of possible values for the BastionConnectProtocol const type. +func PossibleBastionConnectProtocolValues() []BastionConnectProtocol { + return []BastionConnectProtocol{RDP, SSH} +} + +// BgpPeerState enumerates the values for bgp peer state. +type BgpPeerState string + +const ( + // BgpPeerStateConnected ... + BgpPeerStateConnected BgpPeerState = "Connected" + // BgpPeerStateConnecting ... + BgpPeerStateConnecting BgpPeerState = "Connecting" + // BgpPeerStateIdle ... + BgpPeerStateIdle BgpPeerState = "Idle" + // BgpPeerStateStopped ... + BgpPeerStateStopped BgpPeerState = "Stopped" + // BgpPeerStateUnknown ... + BgpPeerStateUnknown BgpPeerState = "Unknown" +) + +// PossibleBgpPeerStateValues returns an array of possible values for the BgpPeerState const type. +func PossibleBgpPeerStateValues() []BgpPeerState { + return []BgpPeerState{BgpPeerStateConnected, BgpPeerStateConnecting, BgpPeerStateIdle, BgpPeerStateStopped, BgpPeerStateUnknown} +} + +// CircuitConnectionStatus enumerates the values for circuit connection status. +type CircuitConnectionStatus string + +const ( + // Connected ... + Connected CircuitConnectionStatus = "Connected" + // Connecting ... + Connecting CircuitConnectionStatus = "Connecting" + // Disconnected ... + Disconnected CircuitConnectionStatus = "Disconnected" +) + +// PossibleCircuitConnectionStatusValues returns an array of possible values for the CircuitConnectionStatus const type. +func PossibleCircuitConnectionStatusValues() []CircuitConnectionStatus { + return []CircuitConnectionStatus{Connected, Connecting, Disconnected} +} + +// CommissionedState enumerates the values for commissioned state. +type CommissionedState string + +const ( + // Commissioned ... + Commissioned CommissionedState = "Commissioned" + // Commissioning ... + Commissioning CommissionedState = "Commissioning" + // Decommissioning ... + Decommissioning CommissionedState = "Decommissioning" + // Deprovisioning ... + Deprovisioning CommissionedState = "Deprovisioning" + // Provisioned ... + Provisioned CommissionedState = "Provisioned" + // Provisioning ... + Provisioning CommissionedState = "Provisioning" +) + +// PossibleCommissionedStateValues returns an array of possible values for the CommissionedState const type. +func PossibleCommissionedStateValues() []CommissionedState { + return []CommissionedState{Commissioned, Commissioning, Decommissioning, Deprovisioning, Provisioned, Provisioning} +} + +// ConnectionMonitorEndpointFilterItemType enumerates the values for connection monitor endpoint filter item +// type. +type ConnectionMonitorEndpointFilterItemType string + +const ( + // AgentAddress ... + AgentAddress ConnectionMonitorEndpointFilterItemType = "AgentAddress" +) + +// PossibleConnectionMonitorEndpointFilterItemTypeValues returns an array of possible values for the ConnectionMonitorEndpointFilterItemType const type. +func PossibleConnectionMonitorEndpointFilterItemTypeValues() []ConnectionMonitorEndpointFilterItemType { + return []ConnectionMonitorEndpointFilterItemType{AgentAddress} +} + +// ConnectionMonitorEndpointFilterType enumerates the values for connection monitor endpoint filter type. +type ConnectionMonitorEndpointFilterType string + +const ( + // Include ... + Include ConnectionMonitorEndpointFilterType = "Include" +) + +// PossibleConnectionMonitorEndpointFilterTypeValues returns an array of possible values for the ConnectionMonitorEndpointFilterType const type. +func PossibleConnectionMonitorEndpointFilterTypeValues() []ConnectionMonitorEndpointFilterType { + return []ConnectionMonitorEndpointFilterType{Include} +} + +// ConnectionMonitorSourceStatus enumerates the values for connection monitor source status. +type ConnectionMonitorSourceStatus string + +const ( + // ConnectionMonitorSourceStatusActive ... + ConnectionMonitorSourceStatusActive ConnectionMonitorSourceStatus = "Active" + // ConnectionMonitorSourceStatusInactive ... + ConnectionMonitorSourceStatusInactive ConnectionMonitorSourceStatus = "Inactive" + // ConnectionMonitorSourceStatusUnknown ... + ConnectionMonitorSourceStatusUnknown ConnectionMonitorSourceStatus = "Unknown" +) + +// PossibleConnectionMonitorSourceStatusValues returns an array of possible values for the ConnectionMonitorSourceStatus const type. +func PossibleConnectionMonitorSourceStatusValues() []ConnectionMonitorSourceStatus { + return []ConnectionMonitorSourceStatus{ConnectionMonitorSourceStatusActive, ConnectionMonitorSourceStatusInactive, ConnectionMonitorSourceStatusUnknown} +} + +// ConnectionMonitorTestConfigurationProtocol enumerates the values for connection monitor test configuration +// protocol. +type ConnectionMonitorTestConfigurationProtocol string + +const ( + // ConnectionMonitorTestConfigurationProtocolHTTP ... + ConnectionMonitorTestConfigurationProtocolHTTP ConnectionMonitorTestConfigurationProtocol = "Http" + // ConnectionMonitorTestConfigurationProtocolIcmp ... + ConnectionMonitorTestConfigurationProtocolIcmp ConnectionMonitorTestConfigurationProtocol = "Icmp" + // ConnectionMonitorTestConfigurationProtocolTCP ... + ConnectionMonitorTestConfigurationProtocolTCP ConnectionMonitorTestConfigurationProtocol = "Tcp" +) + +// PossibleConnectionMonitorTestConfigurationProtocolValues returns an array of possible values for the ConnectionMonitorTestConfigurationProtocol const type. +func PossibleConnectionMonitorTestConfigurationProtocolValues() []ConnectionMonitorTestConfigurationProtocol { + return []ConnectionMonitorTestConfigurationProtocol{ConnectionMonitorTestConfigurationProtocolHTTP, ConnectionMonitorTestConfigurationProtocolIcmp, ConnectionMonitorTestConfigurationProtocolTCP} +} + +// ConnectionMonitorType enumerates the values for connection monitor type. +type ConnectionMonitorType string + +const ( + // MultiEndpoint ... + MultiEndpoint ConnectionMonitorType = "MultiEndpoint" + // SingleSourceDestination ... + SingleSourceDestination ConnectionMonitorType = "SingleSourceDestination" +) + +// PossibleConnectionMonitorTypeValues returns an array of possible values for the ConnectionMonitorType const type. +func PossibleConnectionMonitorTypeValues() []ConnectionMonitorType { + return []ConnectionMonitorType{MultiEndpoint, SingleSourceDestination} +} + +// ConnectionState enumerates the values for connection state. +type ConnectionState string + +const ( + // ConnectionStateReachable ... + ConnectionStateReachable ConnectionState = "Reachable" + // ConnectionStateUnknown ... + ConnectionStateUnknown ConnectionState = "Unknown" + // ConnectionStateUnreachable ... + ConnectionStateUnreachable ConnectionState = "Unreachable" +) + +// PossibleConnectionStateValues returns an array of possible values for the ConnectionState const type. +func PossibleConnectionStateValues() []ConnectionState { + return []ConnectionState{ConnectionStateReachable, ConnectionStateUnknown, ConnectionStateUnreachable} +} + +// ConnectionStatus enumerates the values for connection status. +type ConnectionStatus string + +const ( + // ConnectionStatusConnected ... + ConnectionStatusConnected ConnectionStatus = "Connected" + // ConnectionStatusDegraded ... + ConnectionStatusDegraded ConnectionStatus = "Degraded" + // ConnectionStatusDisconnected ... + ConnectionStatusDisconnected ConnectionStatus = "Disconnected" + // ConnectionStatusUnknown ... + ConnectionStatusUnknown ConnectionStatus = "Unknown" +) + +// PossibleConnectionStatusValues returns an array of possible values for the ConnectionStatus const type. +func PossibleConnectionStatusValues() []ConnectionStatus { + return []ConnectionStatus{ConnectionStatusConnected, ConnectionStatusDegraded, ConnectionStatusDisconnected, ConnectionStatusUnknown} +} + +// CoverageLevel enumerates the values for coverage level. +type CoverageLevel string + +const ( + // AboveAverage ... + AboveAverage CoverageLevel = "AboveAverage" + // Average ... + Average CoverageLevel = "Average" + // BelowAverage ... + BelowAverage CoverageLevel = "BelowAverage" + // Default ... + Default CoverageLevel = "Default" + // Full ... + Full CoverageLevel = "Full" + // Low ... + Low CoverageLevel = "Low" +) + +// PossibleCoverageLevelValues returns an array of possible values for the CoverageLevel const type. +func PossibleCoverageLevelValues() []CoverageLevel { + return []CoverageLevel{AboveAverage, Average, BelowAverage, Default, Full, Low} +} + +// DdosCustomPolicyProtocol enumerates the values for ddos custom policy protocol. +type DdosCustomPolicyProtocol string + +const ( + // DdosCustomPolicyProtocolSyn ... + DdosCustomPolicyProtocolSyn DdosCustomPolicyProtocol = "Syn" + // DdosCustomPolicyProtocolTCP ... + DdosCustomPolicyProtocolTCP DdosCustomPolicyProtocol = "Tcp" + // DdosCustomPolicyProtocolUDP ... + DdosCustomPolicyProtocolUDP DdosCustomPolicyProtocol = "Udp" +) + +// PossibleDdosCustomPolicyProtocolValues returns an array of possible values for the DdosCustomPolicyProtocol const type. +func PossibleDdosCustomPolicyProtocolValues() []DdosCustomPolicyProtocol { + return []DdosCustomPolicyProtocol{DdosCustomPolicyProtocolSyn, DdosCustomPolicyProtocolTCP, DdosCustomPolicyProtocolUDP} +} + +// DdosCustomPolicyTriggerSensitivityOverride enumerates the values for ddos custom policy trigger sensitivity +// override. +type DdosCustomPolicyTriggerSensitivityOverride string + +const ( + // DdosCustomPolicyTriggerSensitivityOverrideDefault ... + DdosCustomPolicyTriggerSensitivityOverrideDefault DdosCustomPolicyTriggerSensitivityOverride = "Default" + // DdosCustomPolicyTriggerSensitivityOverrideHigh ... + DdosCustomPolicyTriggerSensitivityOverrideHigh DdosCustomPolicyTriggerSensitivityOverride = "High" + // DdosCustomPolicyTriggerSensitivityOverrideLow ... + DdosCustomPolicyTriggerSensitivityOverrideLow DdosCustomPolicyTriggerSensitivityOverride = "Low" + // DdosCustomPolicyTriggerSensitivityOverrideRelaxed ... + DdosCustomPolicyTriggerSensitivityOverrideRelaxed DdosCustomPolicyTriggerSensitivityOverride = "Relaxed" +) + +// PossibleDdosCustomPolicyTriggerSensitivityOverrideValues returns an array of possible values for the DdosCustomPolicyTriggerSensitivityOverride const type. +func PossibleDdosCustomPolicyTriggerSensitivityOverrideValues() []DdosCustomPolicyTriggerSensitivityOverride { + return []DdosCustomPolicyTriggerSensitivityOverride{DdosCustomPolicyTriggerSensitivityOverrideDefault, DdosCustomPolicyTriggerSensitivityOverrideHigh, DdosCustomPolicyTriggerSensitivityOverrideLow, DdosCustomPolicyTriggerSensitivityOverrideRelaxed} +} + +// DdosSettingsProtectionCoverage enumerates the values for ddos settings protection coverage. +type DdosSettingsProtectionCoverage string + +const ( + // DdosSettingsProtectionCoverageBasic ... + DdosSettingsProtectionCoverageBasic DdosSettingsProtectionCoverage = "Basic" + // DdosSettingsProtectionCoverageStandard ... + DdosSettingsProtectionCoverageStandard DdosSettingsProtectionCoverage = "Standard" +) + +// PossibleDdosSettingsProtectionCoverageValues returns an array of possible values for the DdosSettingsProtectionCoverage const type. +func PossibleDdosSettingsProtectionCoverageValues() []DdosSettingsProtectionCoverage { + return []DdosSettingsProtectionCoverage{DdosSettingsProtectionCoverageBasic, DdosSettingsProtectionCoverageStandard} +} + +// DestinationPortBehavior enumerates the values for destination port behavior. +type DestinationPortBehavior string + +const ( + // ListenIfAvailable ... + ListenIfAvailable DestinationPortBehavior = "ListenIfAvailable" + // None ... + None DestinationPortBehavior = "None" +) + +// PossibleDestinationPortBehaviorValues returns an array of possible values for the DestinationPortBehavior const type. +func PossibleDestinationPortBehaviorValues() []DestinationPortBehavior { + return []DestinationPortBehavior{ListenIfAvailable, None} +} + +// DhGroup enumerates the values for dh group. +type DhGroup string + +const ( + // DhGroupDHGroup1 ... + DhGroupDHGroup1 DhGroup = "DHGroup1" + // DhGroupDHGroup14 ... + DhGroupDHGroup14 DhGroup = "DHGroup14" + // DhGroupDHGroup2 ... + DhGroupDHGroup2 DhGroup = "DHGroup2" + // DhGroupDHGroup2048 ... + DhGroupDHGroup2048 DhGroup = "DHGroup2048" + // DhGroupDHGroup24 ... + DhGroupDHGroup24 DhGroup = "DHGroup24" + // DhGroupECP256 ... + DhGroupECP256 DhGroup = "ECP256" + // DhGroupECP384 ... + DhGroupECP384 DhGroup = "ECP384" + // DhGroupNone ... + DhGroupNone DhGroup = "None" +) + +// PossibleDhGroupValues returns an array of possible values for the DhGroup const type. +func PossibleDhGroupValues() []DhGroup { + return []DhGroup{DhGroupDHGroup1, DhGroupDHGroup14, DhGroupDHGroup2, DhGroupDHGroup2048, DhGroupDHGroup24, DhGroupECP256, DhGroupECP384, DhGroupNone} +} + +// Direction enumerates the values for direction. +type Direction string + +const ( + // Inbound ... + Inbound Direction = "Inbound" + // Outbound ... + Outbound Direction = "Outbound" +) + +// PossibleDirectionValues returns an array of possible values for the Direction const type. +func PossibleDirectionValues() []Direction { + return []Direction{Inbound, Outbound} +} + +// EffectiveRouteSource enumerates the values for effective route source. +type EffectiveRouteSource string + +const ( + // EffectiveRouteSourceDefault ... + EffectiveRouteSourceDefault EffectiveRouteSource = "Default" + // EffectiveRouteSourceUnknown ... + EffectiveRouteSourceUnknown EffectiveRouteSource = "Unknown" + // EffectiveRouteSourceUser ... + EffectiveRouteSourceUser EffectiveRouteSource = "User" + // EffectiveRouteSourceVirtualNetworkGateway ... + EffectiveRouteSourceVirtualNetworkGateway EffectiveRouteSource = "VirtualNetworkGateway" +) + +// PossibleEffectiveRouteSourceValues returns an array of possible values for the EffectiveRouteSource const type. +func PossibleEffectiveRouteSourceValues() []EffectiveRouteSource { + return []EffectiveRouteSource{EffectiveRouteSourceDefault, EffectiveRouteSourceUnknown, EffectiveRouteSourceUser, EffectiveRouteSourceVirtualNetworkGateway} +} + +// EffectiveRouteState enumerates the values for effective route state. +type EffectiveRouteState string + +const ( + // Active ... + Active EffectiveRouteState = "Active" + // Invalid ... + Invalid EffectiveRouteState = "Invalid" +) + +// PossibleEffectiveRouteStateValues returns an array of possible values for the EffectiveRouteState const type. +func PossibleEffectiveRouteStateValues() []EffectiveRouteState { + return []EffectiveRouteState{Active, Invalid} +} + +// EffectiveSecurityRuleProtocol enumerates the values for effective security rule protocol. +type EffectiveSecurityRuleProtocol string + +const ( + // EffectiveSecurityRuleProtocolAll ... + EffectiveSecurityRuleProtocolAll EffectiveSecurityRuleProtocol = "All" + // EffectiveSecurityRuleProtocolTCP ... + EffectiveSecurityRuleProtocolTCP EffectiveSecurityRuleProtocol = "Tcp" + // EffectiveSecurityRuleProtocolUDP ... + EffectiveSecurityRuleProtocolUDP EffectiveSecurityRuleProtocol = "Udp" +) + +// PossibleEffectiveSecurityRuleProtocolValues returns an array of possible values for the EffectiveSecurityRuleProtocol const type. +func PossibleEffectiveSecurityRuleProtocolValues() []EffectiveSecurityRuleProtocol { + return []EffectiveSecurityRuleProtocol{EffectiveSecurityRuleProtocolAll, EffectiveSecurityRuleProtocolTCP, EffectiveSecurityRuleProtocolUDP} +} + +// EndpointType enumerates the values for endpoint type. +type EndpointType string + +const ( + // AzureSubnet ... + AzureSubnet EndpointType = "AzureSubnet" + // AzureVM ... + AzureVM EndpointType = "AzureVM" + // AzureVNet ... + AzureVNet EndpointType = "AzureVNet" + // ExternalAddress ... + ExternalAddress EndpointType = "ExternalAddress" + // MMAWorkspaceMachine ... + MMAWorkspaceMachine EndpointType = "MMAWorkspaceMachine" + // MMAWorkspaceNetwork ... + MMAWorkspaceNetwork EndpointType = "MMAWorkspaceNetwork" +) + +// PossibleEndpointTypeValues returns an array of possible values for the EndpointType const type. +func PossibleEndpointTypeValues() []EndpointType { + return []EndpointType{AzureSubnet, AzureVM, AzureVNet, ExternalAddress, MMAWorkspaceMachine, MMAWorkspaceNetwork} +} + +// EvaluationState enumerates the values for evaluation state. +type EvaluationState string + +const ( + // Completed ... + Completed EvaluationState = "Completed" + // InProgress ... + InProgress EvaluationState = "InProgress" + // NotStarted ... + NotStarted EvaluationState = "NotStarted" +) + +// PossibleEvaluationStateValues returns an array of possible values for the EvaluationState const type. +func PossibleEvaluationStateValues() []EvaluationState { + return []EvaluationState{Completed, InProgress, NotStarted} +} + +// ExpressRouteCircuitPeeringAdvertisedPublicPrefixState enumerates the values for express route circuit +// peering advertised public prefix state. +type ExpressRouteCircuitPeeringAdvertisedPublicPrefixState string + +const ( + // Configured ... + Configured ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "Configured" + // Configuring ... + Configuring ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "Configuring" + // NotConfigured ... + NotConfigured ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "NotConfigured" + // ValidationNeeded ... + ValidationNeeded ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "ValidationNeeded" +) + +// PossibleExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValues returns an array of possible values for the ExpressRouteCircuitPeeringAdvertisedPublicPrefixState const type. +func PossibleExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValues() []ExpressRouteCircuitPeeringAdvertisedPublicPrefixState { + return []ExpressRouteCircuitPeeringAdvertisedPublicPrefixState{Configured, Configuring, NotConfigured, ValidationNeeded} +} + +// ExpressRouteCircuitPeeringState enumerates the values for express route circuit peering state. +type ExpressRouteCircuitPeeringState string + +const ( + // ExpressRouteCircuitPeeringStateDisabled ... + ExpressRouteCircuitPeeringStateDisabled ExpressRouteCircuitPeeringState = "Disabled" + // ExpressRouteCircuitPeeringStateEnabled ... + ExpressRouteCircuitPeeringStateEnabled ExpressRouteCircuitPeeringState = "Enabled" +) + +// PossibleExpressRouteCircuitPeeringStateValues returns an array of possible values for the ExpressRouteCircuitPeeringState const type. +func PossibleExpressRouteCircuitPeeringStateValues() []ExpressRouteCircuitPeeringState { + return []ExpressRouteCircuitPeeringState{ExpressRouteCircuitPeeringStateDisabled, ExpressRouteCircuitPeeringStateEnabled} +} + +// ExpressRouteCircuitSkuFamily enumerates the values for express route circuit sku family. +type ExpressRouteCircuitSkuFamily string + +const ( + // MeteredData ... + MeteredData ExpressRouteCircuitSkuFamily = "MeteredData" + // UnlimitedData ... + UnlimitedData ExpressRouteCircuitSkuFamily = "UnlimitedData" +) + +// PossibleExpressRouteCircuitSkuFamilyValues returns an array of possible values for the ExpressRouteCircuitSkuFamily const type. +func PossibleExpressRouteCircuitSkuFamilyValues() []ExpressRouteCircuitSkuFamily { + return []ExpressRouteCircuitSkuFamily{MeteredData, UnlimitedData} +} + +// ExpressRouteCircuitSkuTier enumerates the values for express route circuit sku tier. +type ExpressRouteCircuitSkuTier string + +const ( + // ExpressRouteCircuitSkuTierBasic ... + ExpressRouteCircuitSkuTierBasic ExpressRouteCircuitSkuTier = "Basic" + // ExpressRouteCircuitSkuTierLocal ... + ExpressRouteCircuitSkuTierLocal ExpressRouteCircuitSkuTier = "Local" + // ExpressRouteCircuitSkuTierPremium ... + ExpressRouteCircuitSkuTierPremium ExpressRouteCircuitSkuTier = "Premium" + // ExpressRouteCircuitSkuTierStandard ... + ExpressRouteCircuitSkuTierStandard ExpressRouteCircuitSkuTier = "Standard" +) + +// PossibleExpressRouteCircuitSkuTierValues returns an array of possible values for the ExpressRouteCircuitSkuTier const type. +func PossibleExpressRouteCircuitSkuTierValues() []ExpressRouteCircuitSkuTier { + return []ExpressRouteCircuitSkuTier{ExpressRouteCircuitSkuTierBasic, ExpressRouteCircuitSkuTierLocal, ExpressRouteCircuitSkuTierPremium, ExpressRouteCircuitSkuTierStandard} +} + +// ExpressRouteLinkAdminState enumerates the values for express route link admin state. +type ExpressRouteLinkAdminState string + +const ( + // ExpressRouteLinkAdminStateDisabled ... + ExpressRouteLinkAdminStateDisabled ExpressRouteLinkAdminState = "Disabled" + // ExpressRouteLinkAdminStateEnabled ... + ExpressRouteLinkAdminStateEnabled ExpressRouteLinkAdminState = "Enabled" +) + +// PossibleExpressRouteLinkAdminStateValues returns an array of possible values for the ExpressRouteLinkAdminState const type. +func PossibleExpressRouteLinkAdminStateValues() []ExpressRouteLinkAdminState { + return []ExpressRouteLinkAdminState{ExpressRouteLinkAdminStateDisabled, ExpressRouteLinkAdminStateEnabled} +} + +// ExpressRouteLinkConnectorType enumerates the values for express route link connector type. +type ExpressRouteLinkConnectorType string + +const ( + // LC ... + LC ExpressRouteLinkConnectorType = "LC" + // SC ... + SC ExpressRouteLinkConnectorType = "SC" +) + +// PossibleExpressRouteLinkConnectorTypeValues returns an array of possible values for the ExpressRouteLinkConnectorType const type. +func PossibleExpressRouteLinkConnectorTypeValues() []ExpressRouteLinkConnectorType { + return []ExpressRouteLinkConnectorType{LC, SC} +} + +// ExpressRouteLinkMacSecCipher enumerates the values for express route link mac sec cipher. +type ExpressRouteLinkMacSecCipher string + +const ( + // GcmAes128 ... + GcmAes128 ExpressRouteLinkMacSecCipher = "GcmAes128" + // GcmAes256 ... + GcmAes256 ExpressRouteLinkMacSecCipher = "GcmAes256" + // GcmAesXpn128 ... + GcmAesXpn128 ExpressRouteLinkMacSecCipher = "GcmAesXpn128" + // GcmAesXpn256 ... + GcmAesXpn256 ExpressRouteLinkMacSecCipher = "GcmAesXpn256" +) + +// PossibleExpressRouteLinkMacSecCipherValues returns an array of possible values for the ExpressRouteLinkMacSecCipher const type. +func PossibleExpressRouteLinkMacSecCipherValues() []ExpressRouteLinkMacSecCipher { + return []ExpressRouteLinkMacSecCipher{GcmAes128, GcmAes256, GcmAesXpn128, GcmAesXpn256} +} + +// ExpressRouteLinkMacSecSciState enumerates the values for express route link mac sec sci state. +type ExpressRouteLinkMacSecSciState string + +const ( + // ExpressRouteLinkMacSecSciStateDisabled ... + ExpressRouteLinkMacSecSciStateDisabled ExpressRouteLinkMacSecSciState = "Disabled" + // ExpressRouteLinkMacSecSciStateEnabled ... + ExpressRouteLinkMacSecSciStateEnabled ExpressRouteLinkMacSecSciState = "Enabled" +) + +// PossibleExpressRouteLinkMacSecSciStateValues returns an array of possible values for the ExpressRouteLinkMacSecSciState const type. +func PossibleExpressRouteLinkMacSecSciStateValues() []ExpressRouteLinkMacSecSciState { + return []ExpressRouteLinkMacSecSciState{ExpressRouteLinkMacSecSciStateDisabled, ExpressRouteLinkMacSecSciStateEnabled} +} + +// ExpressRoutePeeringState enumerates the values for express route peering state. +type ExpressRoutePeeringState string + +const ( + // ExpressRoutePeeringStateDisabled ... + ExpressRoutePeeringStateDisabled ExpressRoutePeeringState = "Disabled" + // ExpressRoutePeeringStateEnabled ... + ExpressRoutePeeringStateEnabled ExpressRoutePeeringState = "Enabled" +) + +// PossibleExpressRoutePeeringStateValues returns an array of possible values for the ExpressRoutePeeringState const type. +func PossibleExpressRoutePeeringStateValues() []ExpressRoutePeeringState { + return []ExpressRoutePeeringState{ExpressRoutePeeringStateDisabled, ExpressRoutePeeringStateEnabled} +} + +// ExpressRoutePeeringType enumerates the values for express route peering type. +type ExpressRoutePeeringType string + +const ( + // AzurePrivatePeering ... + AzurePrivatePeering ExpressRoutePeeringType = "AzurePrivatePeering" + // AzurePublicPeering ... + AzurePublicPeering ExpressRoutePeeringType = "AzurePublicPeering" + // MicrosoftPeering ... + MicrosoftPeering ExpressRoutePeeringType = "MicrosoftPeering" +) + +// PossibleExpressRoutePeeringTypeValues returns an array of possible values for the ExpressRoutePeeringType const type. +func PossibleExpressRoutePeeringTypeValues() []ExpressRoutePeeringType { + return []ExpressRoutePeeringType{AzurePrivatePeering, AzurePublicPeering, MicrosoftPeering} +} + +// ExpressRoutePortsEncapsulation enumerates the values for express route ports encapsulation. +type ExpressRoutePortsEncapsulation string + +const ( + // Dot1Q ... + Dot1Q ExpressRoutePortsEncapsulation = "Dot1Q" + // QinQ ... + QinQ ExpressRoutePortsEncapsulation = "QinQ" +) + +// PossibleExpressRoutePortsEncapsulationValues returns an array of possible values for the ExpressRoutePortsEncapsulation const type. +func PossibleExpressRoutePortsEncapsulationValues() []ExpressRoutePortsEncapsulation { + return []ExpressRoutePortsEncapsulation{Dot1Q, QinQ} +} + +// ExtendedLocationTypes enumerates the values for extended location types. +type ExtendedLocationTypes string + +const ( + // EdgeZone ... + EdgeZone ExtendedLocationTypes = "EdgeZone" +) + +// PossibleExtendedLocationTypesValues returns an array of possible values for the ExtendedLocationTypes const type. +func PossibleExtendedLocationTypesValues() []ExtendedLocationTypes { + return []ExtendedLocationTypes{EdgeZone} +} + +// FirewallPolicyFilterRuleCollectionActionType enumerates the values for firewall policy filter rule +// collection action type. +type FirewallPolicyFilterRuleCollectionActionType string + +const ( + // FirewallPolicyFilterRuleCollectionActionTypeAllow ... + FirewallPolicyFilterRuleCollectionActionTypeAllow FirewallPolicyFilterRuleCollectionActionType = "Allow" + // FirewallPolicyFilterRuleCollectionActionTypeDeny ... + FirewallPolicyFilterRuleCollectionActionTypeDeny FirewallPolicyFilterRuleCollectionActionType = "Deny" +) + +// PossibleFirewallPolicyFilterRuleCollectionActionTypeValues returns an array of possible values for the FirewallPolicyFilterRuleCollectionActionType const type. +func PossibleFirewallPolicyFilterRuleCollectionActionTypeValues() []FirewallPolicyFilterRuleCollectionActionType { + return []FirewallPolicyFilterRuleCollectionActionType{FirewallPolicyFilterRuleCollectionActionTypeAllow, FirewallPolicyFilterRuleCollectionActionTypeDeny} +} + +// FirewallPolicyIntrusionDetectionProtocol enumerates the values for firewall policy intrusion detection +// protocol. +type FirewallPolicyIntrusionDetectionProtocol string + +const ( + // FirewallPolicyIntrusionDetectionProtocolANY ... + FirewallPolicyIntrusionDetectionProtocolANY FirewallPolicyIntrusionDetectionProtocol = "ANY" + // FirewallPolicyIntrusionDetectionProtocolICMP ... + FirewallPolicyIntrusionDetectionProtocolICMP FirewallPolicyIntrusionDetectionProtocol = "ICMP" + // FirewallPolicyIntrusionDetectionProtocolTCP ... + FirewallPolicyIntrusionDetectionProtocolTCP FirewallPolicyIntrusionDetectionProtocol = "TCP" + // FirewallPolicyIntrusionDetectionProtocolUDP ... + FirewallPolicyIntrusionDetectionProtocolUDP FirewallPolicyIntrusionDetectionProtocol = "UDP" +) + +// PossibleFirewallPolicyIntrusionDetectionProtocolValues returns an array of possible values for the FirewallPolicyIntrusionDetectionProtocol const type. +func PossibleFirewallPolicyIntrusionDetectionProtocolValues() []FirewallPolicyIntrusionDetectionProtocol { + return []FirewallPolicyIntrusionDetectionProtocol{FirewallPolicyIntrusionDetectionProtocolANY, FirewallPolicyIntrusionDetectionProtocolICMP, FirewallPolicyIntrusionDetectionProtocolTCP, FirewallPolicyIntrusionDetectionProtocolUDP} +} + +// FirewallPolicyIntrusionDetectionStateType enumerates the values for firewall policy intrusion detection +// state type. +type FirewallPolicyIntrusionDetectionStateType string + +const ( + // FirewallPolicyIntrusionDetectionStateTypeAlert ... + FirewallPolicyIntrusionDetectionStateTypeAlert FirewallPolicyIntrusionDetectionStateType = "Alert" + // FirewallPolicyIntrusionDetectionStateTypeDeny ... + FirewallPolicyIntrusionDetectionStateTypeDeny FirewallPolicyIntrusionDetectionStateType = "Deny" + // FirewallPolicyIntrusionDetectionStateTypeOff ... + FirewallPolicyIntrusionDetectionStateTypeOff FirewallPolicyIntrusionDetectionStateType = "Off" +) + +// PossibleFirewallPolicyIntrusionDetectionStateTypeValues returns an array of possible values for the FirewallPolicyIntrusionDetectionStateType const type. +func PossibleFirewallPolicyIntrusionDetectionStateTypeValues() []FirewallPolicyIntrusionDetectionStateType { + return []FirewallPolicyIntrusionDetectionStateType{FirewallPolicyIntrusionDetectionStateTypeAlert, FirewallPolicyIntrusionDetectionStateTypeDeny, FirewallPolicyIntrusionDetectionStateTypeOff} +} + +// FirewallPolicyNatRuleCollectionActionType enumerates the values for firewall policy nat rule collection +// action type. +type FirewallPolicyNatRuleCollectionActionType string + +const ( + // DNAT ... + DNAT FirewallPolicyNatRuleCollectionActionType = "DNAT" +) + +// PossibleFirewallPolicyNatRuleCollectionActionTypeValues returns an array of possible values for the FirewallPolicyNatRuleCollectionActionType const type. +func PossibleFirewallPolicyNatRuleCollectionActionTypeValues() []FirewallPolicyNatRuleCollectionActionType { + return []FirewallPolicyNatRuleCollectionActionType{DNAT} +} + +// FirewallPolicyRuleApplicationProtocolType enumerates the values for firewall policy rule application +// protocol type. +type FirewallPolicyRuleApplicationProtocolType string + +const ( + // FirewallPolicyRuleApplicationProtocolTypeHTTP ... + FirewallPolicyRuleApplicationProtocolTypeHTTP FirewallPolicyRuleApplicationProtocolType = "Http" + // FirewallPolicyRuleApplicationProtocolTypeHTTPS ... + FirewallPolicyRuleApplicationProtocolTypeHTTPS FirewallPolicyRuleApplicationProtocolType = "Https" +) + +// PossibleFirewallPolicyRuleApplicationProtocolTypeValues returns an array of possible values for the FirewallPolicyRuleApplicationProtocolType const type. +func PossibleFirewallPolicyRuleApplicationProtocolTypeValues() []FirewallPolicyRuleApplicationProtocolType { + return []FirewallPolicyRuleApplicationProtocolType{FirewallPolicyRuleApplicationProtocolTypeHTTP, FirewallPolicyRuleApplicationProtocolTypeHTTPS} +} + +// FirewallPolicyRuleNetworkProtocol enumerates the values for firewall policy rule network protocol. +type FirewallPolicyRuleNetworkProtocol string + +const ( + // FirewallPolicyRuleNetworkProtocolAny ... + FirewallPolicyRuleNetworkProtocolAny FirewallPolicyRuleNetworkProtocol = "Any" + // FirewallPolicyRuleNetworkProtocolICMP ... + FirewallPolicyRuleNetworkProtocolICMP FirewallPolicyRuleNetworkProtocol = "ICMP" + // FirewallPolicyRuleNetworkProtocolTCP ... + FirewallPolicyRuleNetworkProtocolTCP FirewallPolicyRuleNetworkProtocol = "TCP" + // FirewallPolicyRuleNetworkProtocolUDP ... + FirewallPolicyRuleNetworkProtocolUDP FirewallPolicyRuleNetworkProtocol = "UDP" +) + +// PossibleFirewallPolicyRuleNetworkProtocolValues returns an array of possible values for the FirewallPolicyRuleNetworkProtocol const type. +func PossibleFirewallPolicyRuleNetworkProtocolValues() []FirewallPolicyRuleNetworkProtocol { + return []FirewallPolicyRuleNetworkProtocol{FirewallPolicyRuleNetworkProtocolAny, FirewallPolicyRuleNetworkProtocolICMP, FirewallPolicyRuleNetworkProtocolTCP, FirewallPolicyRuleNetworkProtocolUDP} +} + +// FirewallPolicySkuTier enumerates the values for firewall policy sku tier. +type FirewallPolicySkuTier string + +const ( + // FirewallPolicySkuTierPremium ... + FirewallPolicySkuTierPremium FirewallPolicySkuTier = "Premium" + // FirewallPolicySkuTierStandard ... + FirewallPolicySkuTierStandard FirewallPolicySkuTier = "Standard" +) + +// PossibleFirewallPolicySkuTierValues returns an array of possible values for the FirewallPolicySkuTier const type. +func PossibleFirewallPolicySkuTierValues() []FirewallPolicySkuTier { + return []FirewallPolicySkuTier{FirewallPolicySkuTierPremium, FirewallPolicySkuTierStandard} +} + +// FlowLogFormatType enumerates the values for flow log format type. +type FlowLogFormatType string + +const ( + // JSON ... + JSON FlowLogFormatType = "JSON" +) + +// PossibleFlowLogFormatTypeValues returns an array of possible values for the FlowLogFormatType const type. +func PossibleFlowLogFormatTypeValues() []FlowLogFormatType { + return []FlowLogFormatType{JSON} +} + +// HTTPConfigurationMethod enumerates the values for http configuration method. +type HTTPConfigurationMethod string + +const ( + // Get ... + Get HTTPConfigurationMethod = "Get" + // Post ... + Post HTTPConfigurationMethod = "Post" +) + +// PossibleHTTPConfigurationMethodValues returns an array of possible values for the HTTPConfigurationMethod const type. +func PossibleHTTPConfigurationMethodValues() []HTTPConfigurationMethod { + return []HTTPConfigurationMethod{Get, Post} +} + +// HTTPMethod enumerates the values for http method. +type HTTPMethod string + +const ( + // HTTPMethodGet ... + HTTPMethodGet HTTPMethod = "Get" +) + +// PossibleHTTPMethodValues returns an array of possible values for the HTTPMethod const type. +func PossibleHTTPMethodValues() []HTTPMethod { + return []HTTPMethod{HTTPMethodGet} +} + +// HubBgpConnectionStatus enumerates the values for hub bgp connection status. +type HubBgpConnectionStatus string + +const ( + // HubBgpConnectionStatusConnected ... + HubBgpConnectionStatusConnected HubBgpConnectionStatus = "Connected" + // HubBgpConnectionStatusConnecting ... + HubBgpConnectionStatusConnecting HubBgpConnectionStatus = "Connecting" + // HubBgpConnectionStatusNotConnected ... + HubBgpConnectionStatusNotConnected HubBgpConnectionStatus = "NotConnected" + // HubBgpConnectionStatusUnknown ... + HubBgpConnectionStatusUnknown HubBgpConnectionStatus = "Unknown" +) + +// PossibleHubBgpConnectionStatusValues returns an array of possible values for the HubBgpConnectionStatus const type. +func PossibleHubBgpConnectionStatusValues() []HubBgpConnectionStatus { + return []HubBgpConnectionStatus{HubBgpConnectionStatusConnected, HubBgpConnectionStatusConnecting, HubBgpConnectionStatusNotConnected, HubBgpConnectionStatusUnknown} +} + +// HubVirtualNetworkConnectionStatus enumerates the values for hub virtual network connection status. +type HubVirtualNetworkConnectionStatus string + +const ( + // HubVirtualNetworkConnectionStatusConnected ... + HubVirtualNetworkConnectionStatusConnected HubVirtualNetworkConnectionStatus = "Connected" + // HubVirtualNetworkConnectionStatusConnecting ... + HubVirtualNetworkConnectionStatusConnecting HubVirtualNetworkConnectionStatus = "Connecting" + // HubVirtualNetworkConnectionStatusNotConnected ... + HubVirtualNetworkConnectionStatusNotConnected HubVirtualNetworkConnectionStatus = "NotConnected" + // HubVirtualNetworkConnectionStatusUnknown ... + HubVirtualNetworkConnectionStatusUnknown HubVirtualNetworkConnectionStatus = "Unknown" +) + +// PossibleHubVirtualNetworkConnectionStatusValues returns an array of possible values for the HubVirtualNetworkConnectionStatus const type. +func PossibleHubVirtualNetworkConnectionStatusValues() []HubVirtualNetworkConnectionStatus { + return []HubVirtualNetworkConnectionStatus{HubVirtualNetworkConnectionStatusConnected, HubVirtualNetworkConnectionStatusConnecting, HubVirtualNetworkConnectionStatusNotConnected, HubVirtualNetworkConnectionStatusUnknown} +} + +// IkeEncryption enumerates the values for ike encryption. +type IkeEncryption string + +const ( + // AES128 ... + AES128 IkeEncryption = "AES128" + // AES192 ... + AES192 IkeEncryption = "AES192" + // AES256 ... + AES256 IkeEncryption = "AES256" + // DES ... + DES IkeEncryption = "DES" + // DES3 ... + DES3 IkeEncryption = "DES3" + // GCMAES128 ... + GCMAES128 IkeEncryption = "GCMAES128" + // GCMAES256 ... + GCMAES256 IkeEncryption = "GCMAES256" +) + +// PossibleIkeEncryptionValues returns an array of possible values for the IkeEncryption const type. +func PossibleIkeEncryptionValues() []IkeEncryption { + return []IkeEncryption{AES128, AES192, AES256, DES, DES3, GCMAES128, GCMAES256} +} + +// IkeIntegrity enumerates the values for ike integrity. +type IkeIntegrity string + +const ( + // IkeIntegrityGCMAES128 ... + IkeIntegrityGCMAES128 IkeIntegrity = "GCMAES128" + // IkeIntegrityGCMAES256 ... + IkeIntegrityGCMAES256 IkeIntegrity = "GCMAES256" + // IkeIntegrityMD5 ... + IkeIntegrityMD5 IkeIntegrity = "MD5" + // IkeIntegritySHA1 ... + IkeIntegritySHA1 IkeIntegrity = "SHA1" + // IkeIntegritySHA256 ... + IkeIntegritySHA256 IkeIntegrity = "SHA256" + // IkeIntegritySHA384 ... + IkeIntegritySHA384 IkeIntegrity = "SHA384" +) + +// PossibleIkeIntegrityValues returns an array of possible values for the IkeIntegrity const type. +func PossibleIkeIntegrityValues() []IkeIntegrity { + return []IkeIntegrity{IkeIntegrityGCMAES128, IkeIntegrityGCMAES256, IkeIntegrityMD5, IkeIntegritySHA1, IkeIntegritySHA256, IkeIntegritySHA384} +} + +// InboundSecurityRulesProtocol enumerates the values for inbound security rules protocol. +type InboundSecurityRulesProtocol string + +const ( + // InboundSecurityRulesProtocolTCP ... + InboundSecurityRulesProtocolTCP InboundSecurityRulesProtocol = "TCP" + // InboundSecurityRulesProtocolUDP ... + InboundSecurityRulesProtocolUDP InboundSecurityRulesProtocol = "UDP" +) + +// PossibleInboundSecurityRulesProtocolValues returns an array of possible values for the InboundSecurityRulesProtocol const type. +func PossibleInboundSecurityRulesProtocolValues() []InboundSecurityRulesProtocol { + return []InboundSecurityRulesProtocol{InboundSecurityRulesProtocolTCP, InboundSecurityRulesProtocolUDP} +} + +// IPAllocationMethod enumerates the values for ip allocation method. +type IPAllocationMethod string + +const ( + // Dynamic ... + Dynamic IPAllocationMethod = "Dynamic" + // Static ... + Static IPAllocationMethod = "Static" +) + +// PossibleIPAllocationMethodValues returns an array of possible values for the IPAllocationMethod const type. +func PossibleIPAllocationMethodValues() []IPAllocationMethod { + return []IPAllocationMethod{Dynamic, Static} +} + +// IPAllocationType enumerates the values for ip allocation type. +type IPAllocationType string + +const ( + // Hypernet ... + Hypernet IPAllocationType = "Hypernet" + // Undefined ... + Undefined IPAllocationType = "Undefined" +) + +// PossibleIPAllocationTypeValues returns an array of possible values for the IPAllocationType const type. +func PossibleIPAllocationTypeValues() []IPAllocationType { + return []IPAllocationType{Hypernet, Undefined} +} + +// IPFlowProtocol enumerates the values for ip flow protocol. +type IPFlowProtocol string + +const ( + // IPFlowProtocolTCP ... + IPFlowProtocolTCP IPFlowProtocol = "TCP" + // IPFlowProtocolUDP ... + IPFlowProtocolUDP IPFlowProtocol = "UDP" +) + +// PossibleIPFlowProtocolValues returns an array of possible values for the IPFlowProtocol const type. +func PossibleIPFlowProtocolValues() []IPFlowProtocol { + return []IPFlowProtocol{IPFlowProtocolTCP, IPFlowProtocolUDP} +} + +// IpsecEncryption enumerates the values for ipsec encryption. +type IpsecEncryption string + +const ( + // IpsecEncryptionAES128 ... + IpsecEncryptionAES128 IpsecEncryption = "AES128" + // IpsecEncryptionAES192 ... + IpsecEncryptionAES192 IpsecEncryption = "AES192" + // IpsecEncryptionAES256 ... + IpsecEncryptionAES256 IpsecEncryption = "AES256" + // IpsecEncryptionDES ... + IpsecEncryptionDES IpsecEncryption = "DES" + // IpsecEncryptionDES3 ... + IpsecEncryptionDES3 IpsecEncryption = "DES3" + // IpsecEncryptionGCMAES128 ... + IpsecEncryptionGCMAES128 IpsecEncryption = "GCMAES128" + // IpsecEncryptionGCMAES192 ... + IpsecEncryptionGCMAES192 IpsecEncryption = "GCMAES192" + // IpsecEncryptionGCMAES256 ... + IpsecEncryptionGCMAES256 IpsecEncryption = "GCMAES256" + // IpsecEncryptionNone ... + IpsecEncryptionNone IpsecEncryption = "None" +) + +// PossibleIpsecEncryptionValues returns an array of possible values for the IpsecEncryption const type. +func PossibleIpsecEncryptionValues() []IpsecEncryption { + return []IpsecEncryption{IpsecEncryptionAES128, IpsecEncryptionAES192, IpsecEncryptionAES256, IpsecEncryptionDES, IpsecEncryptionDES3, IpsecEncryptionGCMAES128, IpsecEncryptionGCMAES192, IpsecEncryptionGCMAES256, IpsecEncryptionNone} +} + +// IpsecIntegrity enumerates the values for ipsec integrity. +type IpsecIntegrity string + +const ( + // IpsecIntegrityGCMAES128 ... + IpsecIntegrityGCMAES128 IpsecIntegrity = "GCMAES128" + // IpsecIntegrityGCMAES192 ... + IpsecIntegrityGCMAES192 IpsecIntegrity = "GCMAES192" + // IpsecIntegrityGCMAES256 ... + IpsecIntegrityGCMAES256 IpsecIntegrity = "GCMAES256" + // IpsecIntegrityMD5 ... + IpsecIntegrityMD5 IpsecIntegrity = "MD5" + // IpsecIntegritySHA1 ... + IpsecIntegritySHA1 IpsecIntegrity = "SHA1" + // IpsecIntegritySHA256 ... + IpsecIntegritySHA256 IpsecIntegrity = "SHA256" +) + +// PossibleIpsecIntegrityValues returns an array of possible values for the IpsecIntegrity const type. +func PossibleIpsecIntegrityValues() []IpsecIntegrity { + return []IpsecIntegrity{IpsecIntegrityGCMAES128, IpsecIntegrityGCMAES192, IpsecIntegrityGCMAES256, IpsecIntegrityMD5, IpsecIntegritySHA1, IpsecIntegritySHA256} +} + +// IPVersion enumerates the values for ip version. +type IPVersion string + +const ( + // IPv4 ... + IPv4 IPVersion = "IPv4" + // IPv6 ... + IPv6 IPVersion = "IPv6" +) + +// PossibleIPVersionValues returns an array of possible values for the IPVersion const type. +func PossibleIPVersionValues() []IPVersion { + return []IPVersion{IPv4, IPv6} +} + +// IssueType enumerates the values for issue type. +type IssueType string + +const ( + // IssueTypeAgentStopped ... + IssueTypeAgentStopped IssueType = "AgentStopped" + // IssueTypeDNSResolution ... + IssueTypeDNSResolution IssueType = "DnsResolution" + // IssueTypeGuestFirewall ... + IssueTypeGuestFirewall IssueType = "GuestFirewall" + // IssueTypeNetworkSecurityRule ... + IssueTypeNetworkSecurityRule IssueType = "NetworkSecurityRule" + // IssueTypePlatform ... + IssueTypePlatform IssueType = "Platform" + // IssueTypePortThrottled ... + IssueTypePortThrottled IssueType = "PortThrottled" + // IssueTypeSocketBind ... + IssueTypeSocketBind IssueType = "SocketBind" + // IssueTypeUnknown ... + IssueTypeUnknown IssueType = "Unknown" + // IssueTypeUserDefinedRoute ... + IssueTypeUserDefinedRoute IssueType = "UserDefinedRoute" +) + +// PossibleIssueTypeValues returns an array of possible values for the IssueType const type. +func PossibleIssueTypeValues() []IssueType { + return []IssueType{IssueTypeAgentStopped, IssueTypeDNSResolution, IssueTypeGuestFirewall, IssueTypeNetworkSecurityRule, IssueTypePlatform, IssueTypePortThrottled, IssueTypeSocketBind, IssueTypeUnknown, IssueTypeUserDefinedRoute} +} + +// LoadBalancerOutboundRuleProtocol enumerates the values for load balancer outbound rule protocol. +type LoadBalancerOutboundRuleProtocol string + +const ( + // LoadBalancerOutboundRuleProtocolAll ... + LoadBalancerOutboundRuleProtocolAll LoadBalancerOutboundRuleProtocol = "All" + // LoadBalancerOutboundRuleProtocolTCP ... + LoadBalancerOutboundRuleProtocolTCP LoadBalancerOutboundRuleProtocol = "Tcp" + // LoadBalancerOutboundRuleProtocolUDP ... + LoadBalancerOutboundRuleProtocolUDP LoadBalancerOutboundRuleProtocol = "Udp" +) + +// PossibleLoadBalancerOutboundRuleProtocolValues returns an array of possible values for the LoadBalancerOutboundRuleProtocol const type. +func PossibleLoadBalancerOutboundRuleProtocolValues() []LoadBalancerOutboundRuleProtocol { + return []LoadBalancerOutboundRuleProtocol{LoadBalancerOutboundRuleProtocolAll, LoadBalancerOutboundRuleProtocolTCP, LoadBalancerOutboundRuleProtocolUDP} +} + +// LoadBalancerSkuName enumerates the values for load balancer sku name. +type LoadBalancerSkuName string + +const ( + // LoadBalancerSkuNameBasic ... + LoadBalancerSkuNameBasic LoadBalancerSkuName = "Basic" + // LoadBalancerSkuNameStandard ... + LoadBalancerSkuNameStandard LoadBalancerSkuName = "Standard" +) + +// PossibleLoadBalancerSkuNameValues returns an array of possible values for the LoadBalancerSkuName const type. +func PossibleLoadBalancerSkuNameValues() []LoadBalancerSkuName { + return []LoadBalancerSkuName{LoadBalancerSkuNameBasic, LoadBalancerSkuNameStandard} +} + +// LoadBalancerSkuTier enumerates the values for load balancer sku tier. +type LoadBalancerSkuTier string + +const ( + // Global ... + Global LoadBalancerSkuTier = "Global" + // Regional ... + Regional LoadBalancerSkuTier = "Regional" +) + +// PossibleLoadBalancerSkuTierValues returns an array of possible values for the LoadBalancerSkuTier const type. +func PossibleLoadBalancerSkuTierValues() []LoadBalancerSkuTier { + return []LoadBalancerSkuTier{Global, Regional} +} + +// LoadDistribution enumerates the values for load distribution. +type LoadDistribution string + +const ( + // LoadDistributionDefault ... + LoadDistributionDefault LoadDistribution = "Default" + // LoadDistributionSourceIP ... + LoadDistributionSourceIP LoadDistribution = "SourceIP" + // LoadDistributionSourceIPProtocol ... + LoadDistributionSourceIPProtocol LoadDistribution = "SourceIPProtocol" +) + +// PossibleLoadDistributionValues returns an array of possible values for the LoadDistribution const type. +func PossibleLoadDistributionValues() []LoadDistribution { + return []LoadDistribution{LoadDistributionDefault, LoadDistributionSourceIP, LoadDistributionSourceIPProtocol} +} + +// ManagedRuleEnabledState enumerates the values for managed rule enabled state. +type ManagedRuleEnabledState string + +const ( + // ManagedRuleEnabledStateDisabled ... + ManagedRuleEnabledStateDisabled ManagedRuleEnabledState = "Disabled" +) + +// PossibleManagedRuleEnabledStateValues returns an array of possible values for the ManagedRuleEnabledState const type. +func PossibleManagedRuleEnabledStateValues() []ManagedRuleEnabledState { + return []ManagedRuleEnabledState{ManagedRuleEnabledStateDisabled} +} + +// NatGatewaySkuName enumerates the values for nat gateway sku name. +type NatGatewaySkuName string + +const ( + // NatGatewaySkuNameStandard ... + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +// PossibleNatGatewaySkuNameValues returns an array of possible values for the NatGatewaySkuName const type. +func PossibleNatGatewaySkuNameValues() []NatGatewaySkuName { + return []NatGatewaySkuName{NatGatewaySkuNameStandard} +} + +// NextHopType enumerates the values for next hop type. +type NextHopType string + +const ( + // NextHopTypeHyperNetGateway ... + NextHopTypeHyperNetGateway NextHopType = "HyperNetGateway" + // NextHopTypeInternet ... + NextHopTypeInternet NextHopType = "Internet" + // NextHopTypeNone ... + NextHopTypeNone NextHopType = "None" + // NextHopTypeVirtualAppliance ... + NextHopTypeVirtualAppliance NextHopType = "VirtualAppliance" + // NextHopTypeVirtualNetworkGateway ... + NextHopTypeVirtualNetworkGateway NextHopType = "VirtualNetworkGateway" + // NextHopTypeVnetLocal ... + NextHopTypeVnetLocal NextHopType = "VnetLocal" +) + +// PossibleNextHopTypeValues returns an array of possible values for the NextHopType const type. +func PossibleNextHopTypeValues() []NextHopType { + return []NextHopType{NextHopTypeHyperNetGateway, NextHopTypeInternet, NextHopTypeNone, NextHopTypeVirtualAppliance, NextHopTypeVirtualNetworkGateway, NextHopTypeVnetLocal} +} + +// OfficeTrafficCategory enumerates the values for office traffic category. +type OfficeTrafficCategory string + +const ( + // OfficeTrafficCategoryAll ... + OfficeTrafficCategoryAll OfficeTrafficCategory = "All" + // OfficeTrafficCategoryNone ... + OfficeTrafficCategoryNone OfficeTrafficCategory = "None" + // OfficeTrafficCategoryOptimize ... + OfficeTrafficCategoryOptimize OfficeTrafficCategory = "Optimize" + // OfficeTrafficCategoryOptimizeAndAllow ... + OfficeTrafficCategoryOptimizeAndAllow OfficeTrafficCategory = "OptimizeAndAllow" +) + +// PossibleOfficeTrafficCategoryValues returns an array of possible values for the OfficeTrafficCategory const type. +func PossibleOfficeTrafficCategoryValues() []OfficeTrafficCategory { + return []OfficeTrafficCategory{OfficeTrafficCategoryAll, OfficeTrafficCategoryNone, OfficeTrafficCategoryOptimize, OfficeTrafficCategoryOptimizeAndAllow} +} + +// OperationStatus enumerates the values for operation status. +type OperationStatus string + +const ( + // OperationStatusFailed ... + OperationStatusFailed OperationStatus = "Failed" + // OperationStatusInProgress ... + OperationStatusInProgress OperationStatus = "InProgress" + // OperationStatusSucceeded ... + OperationStatusSucceeded OperationStatus = "Succeeded" +) + +// PossibleOperationStatusValues returns an array of possible values for the OperationStatus const type. +func PossibleOperationStatusValues() []OperationStatus { + return []OperationStatus{OperationStatusFailed, OperationStatusInProgress, OperationStatusSucceeded} +} + +// Origin enumerates the values for origin. +type Origin string + +const ( + // OriginInbound ... + OriginInbound Origin = "Inbound" + // OriginLocal ... + OriginLocal Origin = "Local" + // OriginOutbound ... + OriginOutbound Origin = "Outbound" +) + +// PossibleOriginValues returns an array of possible values for the Origin const type. +func PossibleOriginValues() []Origin { + return []Origin{OriginInbound, OriginLocal, OriginOutbound} +} + +// OutputType enumerates the values for output type. +type OutputType string + +const ( + // Workspace ... + Workspace OutputType = "Workspace" +) + +// PossibleOutputTypeValues returns an array of possible values for the OutputType const type. +func PossibleOutputTypeValues() []OutputType { + return []OutputType{Workspace} +} + +// OwaspCrsExclusionEntryMatchVariable enumerates the values for owasp crs exclusion entry match variable. +type OwaspCrsExclusionEntryMatchVariable string + +const ( + // RequestArgNames ... + RequestArgNames OwaspCrsExclusionEntryMatchVariable = "RequestArgNames" + // RequestCookieNames ... + RequestCookieNames OwaspCrsExclusionEntryMatchVariable = "RequestCookieNames" + // RequestHeaderNames ... + RequestHeaderNames OwaspCrsExclusionEntryMatchVariable = "RequestHeaderNames" +) + +// PossibleOwaspCrsExclusionEntryMatchVariableValues returns an array of possible values for the OwaspCrsExclusionEntryMatchVariable const type. +func PossibleOwaspCrsExclusionEntryMatchVariableValues() []OwaspCrsExclusionEntryMatchVariable { + return []OwaspCrsExclusionEntryMatchVariable{RequestArgNames, RequestCookieNames, RequestHeaderNames} +} + +// OwaspCrsExclusionEntrySelectorMatchOperator enumerates the values for owasp crs exclusion entry selector +// match operator. +type OwaspCrsExclusionEntrySelectorMatchOperator string + +const ( + // OwaspCrsExclusionEntrySelectorMatchOperatorContains ... + OwaspCrsExclusionEntrySelectorMatchOperatorContains OwaspCrsExclusionEntrySelectorMatchOperator = "Contains" + // OwaspCrsExclusionEntrySelectorMatchOperatorEndsWith ... + OwaspCrsExclusionEntrySelectorMatchOperatorEndsWith OwaspCrsExclusionEntrySelectorMatchOperator = "EndsWith" + // OwaspCrsExclusionEntrySelectorMatchOperatorEquals ... + OwaspCrsExclusionEntrySelectorMatchOperatorEquals OwaspCrsExclusionEntrySelectorMatchOperator = "Equals" + // OwaspCrsExclusionEntrySelectorMatchOperatorEqualsAny ... + OwaspCrsExclusionEntrySelectorMatchOperatorEqualsAny OwaspCrsExclusionEntrySelectorMatchOperator = "EqualsAny" + // OwaspCrsExclusionEntrySelectorMatchOperatorStartsWith ... + OwaspCrsExclusionEntrySelectorMatchOperatorStartsWith OwaspCrsExclusionEntrySelectorMatchOperator = "StartsWith" +) + +// PossibleOwaspCrsExclusionEntrySelectorMatchOperatorValues returns an array of possible values for the OwaspCrsExclusionEntrySelectorMatchOperator const type. +func PossibleOwaspCrsExclusionEntrySelectorMatchOperatorValues() []OwaspCrsExclusionEntrySelectorMatchOperator { + return []OwaspCrsExclusionEntrySelectorMatchOperator{OwaspCrsExclusionEntrySelectorMatchOperatorContains, OwaspCrsExclusionEntrySelectorMatchOperatorEndsWith, OwaspCrsExclusionEntrySelectorMatchOperatorEquals, OwaspCrsExclusionEntrySelectorMatchOperatorEqualsAny, OwaspCrsExclusionEntrySelectorMatchOperatorStartsWith} +} + +// PcError enumerates the values for pc error. +type PcError string + +const ( + // AgentStopped ... + AgentStopped PcError = "AgentStopped" + // CaptureFailed ... + CaptureFailed PcError = "CaptureFailed" + // InternalError ... + InternalError PcError = "InternalError" + // LocalFileFailed ... + LocalFileFailed PcError = "LocalFileFailed" + // StorageFailed ... + StorageFailed PcError = "StorageFailed" +) + +// PossiblePcErrorValues returns an array of possible values for the PcError const type. +func PossiblePcErrorValues() []PcError { + return []PcError{AgentStopped, CaptureFailed, InternalError, LocalFileFailed, StorageFailed} +} + +// PcProtocol enumerates the values for pc protocol. +type PcProtocol string + +const ( + // PcProtocolAny ... + PcProtocolAny PcProtocol = "Any" + // PcProtocolTCP ... + PcProtocolTCP PcProtocol = "TCP" + // PcProtocolUDP ... + PcProtocolUDP PcProtocol = "UDP" +) + +// PossiblePcProtocolValues returns an array of possible values for the PcProtocol const type. +func PossiblePcProtocolValues() []PcProtocol { + return []PcProtocol{PcProtocolAny, PcProtocolTCP, PcProtocolUDP} +} + +// PcStatus enumerates the values for pc status. +type PcStatus string + +const ( + // PcStatusError ... + PcStatusError PcStatus = "Error" + // PcStatusNotStarted ... + PcStatusNotStarted PcStatus = "NotStarted" + // PcStatusRunning ... + PcStatusRunning PcStatus = "Running" + // PcStatusStopped ... + PcStatusStopped PcStatus = "Stopped" + // PcStatusUnknown ... + PcStatusUnknown PcStatus = "Unknown" +) + +// PossiblePcStatusValues returns an array of possible values for the PcStatus const type. +func PossiblePcStatusValues() []PcStatus { + return []PcStatus{PcStatusError, PcStatusNotStarted, PcStatusRunning, PcStatusStopped, PcStatusUnknown} +} + +// PfsGroup enumerates the values for pfs group. +type PfsGroup string + +const ( + // PfsGroupECP256 ... + PfsGroupECP256 PfsGroup = "ECP256" + // PfsGroupECP384 ... + PfsGroupECP384 PfsGroup = "ECP384" + // PfsGroupNone ... + PfsGroupNone PfsGroup = "None" + // PfsGroupPFS1 ... + PfsGroupPFS1 PfsGroup = "PFS1" + // PfsGroupPFS14 ... + PfsGroupPFS14 PfsGroup = "PFS14" + // PfsGroupPFS2 ... + PfsGroupPFS2 PfsGroup = "PFS2" + // PfsGroupPFS2048 ... + PfsGroupPFS2048 PfsGroup = "PFS2048" + // PfsGroupPFS24 ... + PfsGroupPFS24 PfsGroup = "PFS24" + // PfsGroupPFSMM ... + PfsGroupPFSMM PfsGroup = "PFSMM" +) + +// PossiblePfsGroupValues returns an array of possible values for the PfsGroup const type. +func PossiblePfsGroupValues() []PfsGroup { + return []PfsGroup{PfsGroupECP256, PfsGroupECP384, PfsGroupNone, PfsGroupPFS1, PfsGroupPFS14, PfsGroupPFS2, PfsGroupPFS2048, PfsGroupPFS24, PfsGroupPFSMM} +} + +// PreferredIPVersion enumerates the values for preferred ip version. +type PreferredIPVersion string + +const ( + // PreferredIPVersionIPv4 ... + PreferredIPVersionIPv4 PreferredIPVersion = "IPv4" + // PreferredIPVersionIPv6 ... + PreferredIPVersionIPv6 PreferredIPVersion = "IPv6" +) + +// PossiblePreferredIPVersionValues returns an array of possible values for the PreferredIPVersion const type. +func PossiblePreferredIPVersionValues() []PreferredIPVersion { + return []PreferredIPVersion{PreferredIPVersionIPv4, PreferredIPVersionIPv6} +} + +// ProbeProtocol enumerates the values for probe protocol. +type ProbeProtocol string + +const ( + // ProbeProtocolHTTP ... + ProbeProtocolHTTP ProbeProtocol = "Http" + // ProbeProtocolHTTPS ... + ProbeProtocolHTTPS ProbeProtocol = "Https" + // ProbeProtocolTCP ... + ProbeProtocolTCP ProbeProtocol = "Tcp" +) + +// PossibleProbeProtocolValues returns an array of possible values for the ProbeProtocol const type. +func PossibleProbeProtocolValues() []ProbeProtocol { + return []ProbeProtocol{ProbeProtocolHTTP, ProbeProtocolHTTPS, ProbeProtocolTCP} +} + +// ProcessorArchitecture enumerates the values for processor architecture. +type ProcessorArchitecture string + +const ( + // Amd64 ... + Amd64 ProcessorArchitecture = "Amd64" + // X86 ... + X86 ProcessorArchitecture = "X86" +) + +// PossibleProcessorArchitectureValues returns an array of possible values for the ProcessorArchitecture const type. +func PossibleProcessorArchitectureValues() []ProcessorArchitecture { + return []ProcessorArchitecture{Amd64, X86} +} + +// Protocol enumerates the values for protocol. +type Protocol string + +const ( + // ProtocolHTTP ... + ProtocolHTTP Protocol = "Http" + // ProtocolHTTPS ... + ProtocolHTTPS Protocol = "Https" + // ProtocolIcmp ... + ProtocolIcmp Protocol = "Icmp" + // ProtocolTCP ... + ProtocolTCP Protocol = "Tcp" +) + +// PossibleProtocolValues returns an array of possible values for the Protocol const type. +func PossibleProtocolValues() []Protocol { + return []Protocol{ProtocolHTTP, ProtocolHTTPS, ProtocolIcmp, ProtocolTCP} +} + +// ProtocolType enumerates the values for protocol type. +type ProtocolType string + +const ( + // ProtocolTypeAh ... + ProtocolTypeAh ProtocolType = "Ah" + // ProtocolTypeAll ... + ProtocolTypeAll ProtocolType = "All" + // ProtocolTypeDoNotUse ... + ProtocolTypeDoNotUse ProtocolType = "DoNotUse" + // ProtocolTypeEsp ... + ProtocolTypeEsp ProtocolType = "Esp" + // ProtocolTypeGre ... + ProtocolTypeGre ProtocolType = "Gre" + // ProtocolTypeIcmp ... + ProtocolTypeIcmp ProtocolType = "Icmp" + // ProtocolTypeTCP ... + ProtocolTypeTCP ProtocolType = "Tcp" + // ProtocolTypeUDP ... + ProtocolTypeUDP ProtocolType = "Udp" + // ProtocolTypeVxlan ... + ProtocolTypeVxlan ProtocolType = "Vxlan" +) + +// PossibleProtocolTypeValues returns an array of possible values for the ProtocolType const type. +func PossibleProtocolTypeValues() []ProtocolType { + return []ProtocolType{ProtocolTypeAh, ProtocolTypeAll, ProtocolTypeDoNotUse, ProtocolTypeEsp, ProtocolTypeGre, ProtocolTypeIcmp, ProtocolTypeTCP, ProtocolTypeUDP, ProtocolTypeVxlan} +} + +// ProvisioningState enumerates the values for provisioning state. +type ProvisioningState string + +const ( + // Deleting ... + Deleting ProvisioningState = "Deleting" + // Failed ... + Failed ProvisioningState = "Failed" + // Succeeded ... + Succeeded ProvisioningState = "Succeeded" + // Updating ... + Updating ProvisioningState = "Updating" +) + +// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. +func PossibleProvisioningStateValues() []ProvisioningState { + return []ProvisioningState{Deleting, Failed, Succeeded, Updating} +} + +// PublicIPAddressSkuName enumerates the values for public ip address sku name. +type PublicIPAddressSkuName string + +const ( + // PublicIPAddressSkuNameBasic ... + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" + // PublicIPAddressSkuNameStandard ... + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" +) + +// PossiblePublicIPAddressSkuNameValues returns an array of possible values for the PublicIPAddressSkuName const type. +func PossiblePublicIPAddressSkuNameValues() []PublicIPAddressSkuName { + return []PublicIPAddressSkuName{PublicIPAddressSkuNameBasic, PublicIPAddressSkuNameStandard} +} + +// PublicIPAddressSkuTier enumerates the values for public ip address sku tier. +type PublicIPAddressSkuTier string + +const ( + // PublicIPAddressSkuTierGlobal ... + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" + // PublicIPAddressSkuTierRegional ... + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" +) + +// PossiblePublicIPAddressSkuTierValues returns an array of possible values for the PublicIPAddressSkuTier const type. +func PossiblePublicIPAddressSkuTierValues() []PublicIPAddressSkuTier { + return []PublicIPAddressSkuTier{PublicIPAddressSkuTierGlobal, PublicIPAddressSkuTierRegional} +} + +// PublicIPPrefixSkuName enumerates the values for public ip prefix sku name. +type PublicIPPrefixSkuName string + +const ( + // PublicIPPrefixSkuNameStandard ... + PublicIPPrefixSkuNameStandard PublicIPPrefixSkuName = "Standard" +) + +// PossiblePublicIPPrefixSkuNameValues returns an array of possible values for the PublicIPPrefixSkuName const type. +func PossiblePublicIPPrefixSkuNameValues() []PublicIPPrefixSkuName { + return []PublicIPPrefixSkuName{PublicIPPrefixSkuNameStandard} +} + +// PublicIPPrefixSkuTier enumerates the values for public ip prefix sku tier. +type PublicIPPrefixSkuTier string + +const ( + // PublicIPPrefixSkuTierGlobal ... + PublicIPPrefixSkuTierGlobal PublicIPPrefixSkuTier = "Global" + // PublicIPPrefixSkuTierRegional ... + PublicIPPrefixSkuTierRegional PublicIPPrefixSkuTier = "Regional" +) + +// PossiblePublicIPPrefixSkuTierValues returns an array of possible values for the PublicIPPrefixSkuTier const type. +func PossiblePublicIPPrefixSkuTierValues() []PublicIPPrefixSkuTier { + return []PublicIPPrefixSkuTier{PublicIPPrefixSkuTierGlobal, PublicIPPrefixSkuTierRegional} +} + +// ResourceIdentityType enumerates the values for resource identity type. +type ResourceIdentityType string + +const ( + // ResourceIdentityTypeNone ... + ResourceIdentityTypeNone ResourceIdentityType = "None" + // ResourceIdentityTypeSystemAssigned ... + ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned" + // ResourceIdentityTypeSystemAssignedUserAssigned ... + ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned, UserAssigned" + // ResourceIdentityTypeUserAssigned ... + ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned" +) + +// PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type. +func PossibleResourceIdentityTypeValues() []ResourceIdentityType { + return []ResourceIdentityType{ResourceIdentityTypeNone, ResourceIdentityTypeSystemAssigned, ResourceIdentityTypeSystemAssignedUserAssigned, ResourceIdentityTypeUserAssigned} +} + +// RouteNextHopType enumerates the values for route next hop type. +type RouteNextHopType string + +const ( + // RouteNextHopTypeInternet ... + RouteNextHopTypeInternet RouteNextHopType = "Internet" + // RouteNextHopTypeNone ... + RouteNextHopTypeNone RouteNextHopType = "None" + // RouteNextHopTypeVirtualAppliance ... + RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" + // RouteNextHopTypeVirtualNetworkGateway ... + RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" + // RouteNextHopTypeVnetLocal ... + RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" +) + +// PossibleRouteNextHopTypeValues returns an array of possible values for the RouteNextHopType const type. +func PossibleRouteNextHopTypeValues() []RouteNextHopType { + return []RouteNextHopType{RouteNextHopTypeInternet, RouteNextHopTypeNone, RouteNextHopTypeVirtualAppliance, RouteNextHopTypeVirtualNetworkGateway, RouteNextHopTypeVnetLocal} +} + +// RoutingState enumerates the values for routing state. +type RoutingState string + +const ( + // RoutingStateFailed ... + RoutingStateFailed RoutingState = "Failed" + // RoutingStateNone ... + RoutingStateNone RoutingState = "None" + // RoutingStateProvisioned ... + RoutingStateProvisioned RoutingState = "Provisioned" + // RoutingStateProvisioning ... + RoutingStateProvisioning RoutingState = "Provisioning" +) + +// PossibleRoutingStateValues returns an array of possible values for the RoutingState const type. +func PossibleRoutingStateValues() []RoutingState { + return []RoutingState{RoutingStateFailed, RoutingStateNone, RoutingStateProvisioned, RoutingStateProvisioning} +} + +// RuleCollectionType enumerates the values for rule collection type. +type RuleCollectionType string + +const ( + // RuleCollectionTypeFirewallPolicyFilterRuleCollection ... + RuleCollectionTypeFirewallPolicyFilterRuleCollection RuleCollectionType = "FirewallPolicyFilterRuleCollection" + // RuleCollectionTypeFirewallPolicyNatRuleCollection ... + RuleCollectionTypeFirewallPolicyNatRuleCollection RuleCollectionType = "FirewallPolicyNatRuleCollection" + // RuleCollectionTypeFirewallPolicyRuleCollection ... + RuleCollectionTypeFirewallPolicyRuleCollection RuleCollectionType = "FirewallPolicyRuleCollection" +) + +// PossibleRuleCollectionTypeValues returns an array of possible values for the RuleCollectionType const type. +func PossibleRuleCollectionTypeValues() []RuleCollectionType { + return []RuleCollectionType{RuleCollectionTypeFirewallPolicyFilterRuleCollection, RuleCollectionTypeFirewallPolicyNatRuleCollection, RuleCollectionTypeFirewallPolicyRuleCollection} +} + +// RuleType enumerates the values for rule type. +type RuleType string + +const ( + // RuleTypeApplicationRule ... + RuleTypeApplicationRule RuleType = "ApplicationRule" + // RuleTypeFirewallPolicyRule ... + RuleTypeFirewallPolicyRule RuleType = "FirewallPolicyRule" + // RuleTypeNatRule ... + RuleTypeNatRule RuleType = "NatRule" + // RuleTypeNetworkRule ... + RuleTypeNetworkRule RuleType = "NetworkRule" +) + +// PossibleRuleTypeValues returns an array of possible values for the RuleType const type. +func PossibleRuleTypeValues() []RuleType { + return []RuleType{RuleTypeApplicationRule, RuleTypeFirewallPolicyRule, RuleTypeNatRule, RuleTypeNetworkRule} +} + +// SecurityPartnerProviderConnectionStatus enumerates the values for security partner provider connection +// status. +type SecurityPartnerProviderConnectionStatus string + +const ( + // SecurityPartnerProviderConnectionStatusConnected ... + SecurityPartnerProviderConnectionStatusConnected SecurityPartnerProviderConnectionStatus = "Connected" + // SecurityPartnerProviderConnectionStatusNotConnected ... + SecurityPartnerProviderConnectionStatusNotConnected SecurityPartnerProviderConnectionStatus = "NotConnected" + // SecurityPartnerProviderConnectionStatusPartiallyConnected ... + SecurityPartnerProviderConnectionStatusPartiallyConnected SecurityPartnerProviderConnectionStatus = "PartiallyConnected" + // SecurityPartnerProviderConnectionStatusUnknown ... + SecurityPartnerProviderConnectionStatusUnknown SecurityPartnerProviderConnectionStatus = "Unknown" +) + +// PossibleSecurityPartnerProviderConnectionStatusValues returns an array of possible values for the SecurityPartnerProviderConnectionStatus const type. +func PossibleSecurityPartnerProviderConnectionStatusValues() []SecurityPartnerProviderConnectionStatus { + return []SecurityPartnerProviderConnectionStatus{SecurityPartnerProviderConnectionStatusConnected, SecurityPartnerProviderConnectionStatusNotConnected, SecurityPartnerProviderConnectionStatusPartiallyConnected, SecurityPartnerProviderConnectionStatusUnknown} +} + +// SecurityProviderName enumerates the values for security provider name. +type SecurityProviderName string + +const ( + // Checkpoint ... + Checkpoint SecurityProviderName = "Checkpoint" + // IBoss ... + IBoss SecurityProviderName = "IBoss" + // ZScaler ... + ZScaler SecurityProviderName = "ZScaler" +) + +// PossibleSecurityProviderNameValues returns an array of possible values for the SecurityProviderName const type. +func PossibleSecurityProviderNameValues() []SecurityProviderName { + return []SecurityProviderName{Checkpoint, IBoss, ZScaler} +} + +// SecurityRuleAccess enumerates the values for security rule access. +type SecurityRuleAccess string + +const ( + // SecurityRuleAccessAllow ... + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + // SecurityRuleAccessDeny ... + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +// PossibleSecurityRuleAccessValues returns an array of possible values for the SecurityRuleAccess const type. +func PossibleSecurityRuleAccessValues() []SecurityRuleAccess { + return []SecurityRuleAccess{SecurityRuleAccessAllow, SecurityRuleAccessDeny} +} + +// SecurityRuleDirection enumerates the values for security rule direction. +type SecurityRuleDirection string + +const ( + // SecurityRuleDirectionInbound ... + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + // SecurityRuleDirectionOutbound ... + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +// PossibleSecurityRuleDirectionValues returns an array of possible values for the SecurityRuleDirection const type. +func PossibleSecurityRuleDirectionValues() []SecurityRuleDirection { + return []SecurityRuleDirection{SecurityRuleDirectionInbound, SecurityRuleDirectionOutbound} +} + +// SecurityRuleProtocol enumerates the values for security rule protocol. +type SecurityRuleProtocol string + +const ( + // SecurityRuleProtocolAh ... + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + // SecurityRuleProtocolAsterisk ... + SecurityRuleProtocolAsterisk SecurityRuleProtocol = "*" + // SecurityRuleProtocolEsp ... + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + // SecurityRuleProtocolIcmp ... + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + // SecurityRuleProtocolTCP ... + SecurityRuleProtocolTCP SecurityRuleProtocol = "Tcp" + // SecurityRuleProtocolUDP ... + SecurityRuleProtocolUDP SecurityRuleProtocol = "Udp" +) + +// PossibleSecurityRuleProtocolValues returns an array of possible values for the SecurityRuleProtocol const type. +func PossibleSecurityRuleProtocolValues() []SecurityRuleProtocol { + return []SecurityRuleProtocol{SecurityRuleProtocolAh, SecurityRuleProtocolAsterisk, SecurityRuleProtocolEsp, SecurityRuleProtocolIcmp, SecurityRuleProtocolTCP, SecurityRuleProtocolUDP} +} + +// ServiceProviderProvisioningState enumerates the values for service provider provisioning state. +type ServiceProviderProvisioningState string + +const ( + // ServiceProviderProvisioningStateDeprovisioning ... + ServiceProviderProvisioningStateDeprovisioning ServiceProviderProvisioningState = "Deprovisioning" + // ServiceProviderProvisioningStateNotProvisioned ... + ServiceProviderProvisioningStateNotProvisioned ServiceProviderProvisioningState = "NotProvisioned" + // ServiceProviderProvisioningStateProvisioned ... + ServiceProviderProvisioningStateProvisioned ServiceProviderProvisioningState = "Provisioned" + // ServiceProviderProvisioningStateProvisioning ... + ServiceProviderProvisioningStateProvisioning ServiceProviderProvisioningState = "Provisioning" +) + +// PossibleServiceProviderProvisioningStateValues returns an array of possible values for the ServiceProviderProvisioningState const type. +func PossibleServiceProviderProvisioningStateValues() []ServiceProviderProvisioningState { + return []ServiceProviderProvisioningState{ServiceProviderProvisioningStateDeprovisioning, ServiceProviderProvisioningStateNotProvisioned, ServiceProviderProvisioningStateProvisioned, ServiceProviderProvisioningStateProvisioning} +} + +// Severity enumerates the values for severity. +type Severity string + +const ( + // SeverityError ... + SeverityError Severity = "Error" + // SeverityWarning ... + SeverityWarning Severity = "Warning" +) + +// PossibleSeverityValues returns an array of possible values for the Severity const type. +func PossibleSeverityValues() []Severity { + return []Severity{SeverityError, SeverityWarning} +} + +// TransportProtocol enumerates the values for transport protocol. +type TransportProtocol string + +const ( + // TransportProtocolAll ... + TransportProtocolAll TransportProtocol = "All" + // TransportProtocolTCP ... + TransportProtocolTCP TransportProtocol = "Tcp" + // TransportProtocolUDP ... + TransportProtocolUDP TransportProtocol = "Udp" +) + +// PossibleTransportProtocolValues returns an array of possible values for the TransportProtocol const type. +func PossibleTransportProtocolValues() []TransportProtocol { + return []TransportProtocol{TransportProtocolAll, TransportProtocolTCP, TransportProtocolUDP} +} + +// TunnelConnectionStatus enumerates the values for tunnel connection status. +type TunnelConnectionStatus string + +const ( + // TunnelConnectionStatusConnected ... + TunnelConnectionStatusConnected TunnelConnectionStatus = "Connected" + // TunnelConnectionStatusConnecting ... + TunnelConnectionStatusConnecting TunnelConnectionStatus = "Connecting" + // TunnelConnectionStatusNotConnected ... + TunnelConnectionStatusNotConnected TunnelConnectionStatus = "NotConnected" + // TunnelConnectionStatusUnknown ... + TunnelConnectionStatusUnknown TunnelConnectionStatus = "Unknown" +) + +// PossibleTunnelConnectionStatusValues returns an array of possible values for the TunnelConnectionStatus const type. +func PossibleTunnelConnectionStatusValues() []TunnelConnectionStatus { + return []TunnelConnectionStatus{TunnelConnectionStatusConnected, TunnelConnectionStatusConnecting, TunnelConnectionStatusNotConnected, TunnelConnectionStatusUnknown} +} + +// VerbosityLevel enumerates the values for verbosity level. +type VerbosityLevel string + +const ( + // VerbosityLevelFull ... + VerbosityLevelFull VerbosityLevel = "Full" + // VerbosityLevelMinimum ... + VerbosityLevelMinimum VerbosityLevel = "Minimum" + // VerbosityLevelNormal ... + VerbosityLevelNormal VerbosityLevel = "Normal" +) + +// PossibleVerbosityLevelValues returns an array of possible values for the VerbosityLevel const type. +func PossibleVerbosityLevelValues() []VerbosityLevel { + return []VerbosityLevel{VerbosityLevelFull, VerbosityLevelMinimum, VerbosityLevelNormal} +} + +// VirtualNetworkGatewayConnectionMode enumerates the values for virtual network gateway connection mode. +type VirtualNetworkGatewayConnectionMode string + +const ( + // VirtualNetworkGatewayConnectionModeDefault ... + VirtualNetworkGatewayConnectionModeDefault VirtualNetworkGatewayConnectionMode = "Default" + // VirtualNetworkGatewayConnectionModeInitiatorOnly ... + VirtualNetworkGatewayConnectionModeInitiatorOnly VirtualNetworkGatewayConnectionMode = "InitiatorOnly" + // VirtualNetworkGatewayConnectionModeResponderOnly ... + VirtualNetworkGatewayConnectionModeResponderOnly VirtualNetworkGatewayConnectionMode = "ResponderOnly" +) + +// PossibleVirtualNetworkGatewayConnectionModeValues returns an array of possible values for the VirtualNetworkGatewayConnectionMode const type. +func PossibleVirtualNetworkGatewayConnectionModeValues() []VirtualNetworkGatewayConnectionMode { + return []VirtualNetworkGatewayConnectionMode{VirtualNetworkGatewayConnectionModeDefault, VirtualNetworkGatewayConnectionModeInitiatorOnly, VirtualNetworkGatewayConnectionModeResponderOnly} +} + +// VirtualNetworkGatewayConnectionProtocol enumerates the values for virtual network gateway connection +// protocol. +type VirtualNetworkGatewayConnectionProtocol string + +const ( + // IKEv1 ... + IKEv1 VirtualNetworkGatewayConnectionProtocol = "IKEv1" + // IKEv2 ... + IKEv2 VirtualNetworkGatewayConnectionProtocol = "IKEv2" +) + +// PossibleVirtualNetworkGatewayConnectionProtocolValues returns an array of possible values for the VirtualNetworkGatewayConnectionProtocol const type. +func PossibleVirtualNetworkGatewayConnectionProtocolValues() []VirtualNetworkGatewayConnectionProtocol { + return []VirtualNetworkGatewayConnectionProtocol{IKEv1, IKEv2} +} + +// VirtualNetworkGatewayConnectionStatus enumerates the values for virtual network gateway connection status. +type VirtualNetworkGatewayConnectionStatus string + +const ( + // VirtualNetworkGatewayConnectionStatusConnected ... + VirtualNetworkGatewayConnectionStatusConnected VirtualNetworkGatewayConnectionStatus = "Connected" + // VirtualNetworkGatewayConnectionStatusConnecting ... + VirtualNetworkGatewayConnectionStatusConnecting VirtualNetworkGatewayConnectionStatus = "Connecting" + // VirtualNetworkGatewayConnectionStatusNotConnected ... + VirtualNetworkGatewayConnectionStatusNotConnected VirtualNetworkGatewayConnectionStatus = "NotConnected" + // VirtualNetworkGatewayConnectionStatusUnknown ... + VirtualNetworkGatewayConnectionStatusUnknown VirtualNetworkGatewayConnectionStatus = "Unknown" +) + +// PossibleVirtualNetworkGatewayConnectionStatusValues returns an array of possible values for the VirtualNetworkGatewayConnectionStatus const type. +func PossibleVirtualNetworkGatewayConnectionStatusValues() []VirtualNetworkGatewayConnectionStatus { + return []VirtualNetworkGatewayConnectionStatus{VirtualNetworkGatewayConnectionStatusConnected, VirtualNetworkGatewayConnectionStatusConnecting, VirtualNetworkGatewayConnectionStatusNotConnected, VirtualNetworkGatewayConnectionStatusUnknown} +} + +// VirtualNetworkGatewayConnectionType enumerates the values for virtual network gateway connection type. +type VirtualNetworkGatewayConnectionType string + +const ( + // ExpressRoute ... + ExpressRoute VirtualNetworkGatewayConnectionType = "ExpressRoute" + // IPsec ... + IPsec VirtualNetworkGatewayConnectionType = "IPsec" + // Vnet2Vnet ... + Vnet2Vnet VirtualNetworkGatewayConnectionType = "Vnet2Vnet" + // VPNClient ... + VPNClient VirtualNetworkGatewayConnectionType = "VPNClient" +) + +// PossibleVirtualNetworkGatewayConnectionTypeValues returns an array of possible values for the VirtualNetworkGatewayConnectionType const type. +func PossibleVirtualNetworkGatewayConnectionTypeValues() []VirtualNetworkGatewayConnectionType { + return []VirtualNetworkGatewayConnectionType{ExpressRoute, IPsec, Vnet2Vnet, VPNClient} +} + +// VirtualNetworkGatewaySkuName enumerates the values for virtual network gateway sku name. +type VirtualNetworkGatewaySkuName string + +const ( + // VirtualNetworkGatewaySkuNameBasic ... + VirtualNetworkGatewaySkuNameBasic VirtualNetworkGatewaySkuName = "Basic" + // VirtualNetworkGatewaySkuNameErGw1AZ ... + VirtualNetworkGatewaySkuNameErGw1AZ VirtualNetworkGatewaySkuName = "ErGw1AZ" + // VirtualNetworkGatewaySkuNameErGw2AZ ... + VirtualNetworkGatewaySkuNameErGw2AZ VirtualNetworkGatewaySkuName = "ErGw2AZ" + // VirtualNetworkGatewaySkuNameErGw3AZ ... + VirtualNetworkGatewaySkuNameErGw3AZ VirtualNetworkGatewaySkuName = "ErGw3AZ" + // VirtualNetworkGatewaySkuNameHighPerformance ... + VirtualNetworkGatewaySkuNameHighPerformance VirtualNetworkGatewaySkuName = "HighPerformance" + // VirtualNetworkGatewaySkuNameStandard ... + VirtualNetworkGatewaySkuNameStandard VirtualNetworkGatewaySkuName = "Standard" + // VirtualNetworkGatewaySkuNameUltraPerformance ... + VirtualNetworkGatewaySkuNameUltraPerformance VirtualNetworkGatewaySkuName = "UltraPerformance" + // VirtualNetworkGatewaySkuNameVpnGw1 ... + VirtualNetworkGatewaySkuNameVpnGw1 VirtualNetworkGatewaySkuName = "VpnGw1" + // VirtualNetworkGatewaySkuNameVpnGw1AZ ... + VirtualNetworkGatewaySkuNameVpnGw1AZ VirtualNetworkGatewaySkuName = "VpnGw1AZ" + // VirtualNetworkGatewaySkuNameVpnGw2 ... + VirtualNetworkGatewaySkuNameVpnGw2 VirtualNetworkGatewaySkuName = "VpnGw2" + // VirtualNetworkGatewaySkuNameVpnGw2AZ ... + VirtualNetworkGatewaySkuNameVpnGw2AZ VirtualNetworkGatewaySkuName = "VpnGw2AZ" + // VirtualNetworkGatewaySkuNameVpnGw3 ... + VirtualNetworkGatewaySkuNameVpnGw3 VirtualNetworkGatewaySkuName = "VpnGw3" + // VirtualNetworkGatewaySkuNameVpnGw3AZ ... + VirtualNetworkGatewaySkuNameVpnGw3AZ VirtualNetworkGatewaySkuName = "VpnGw3AZ" + // VirtualNetworkGatewaySkuNameVpnGw4 ... + VirtualNetworkGatewaySkuNameVpnGw4 VirtualNetworkGatewaySkuName = "VpnGw4" + // VirtualNetworkGatewaySkuNameVpnGw4AZ ... + VirtualNetworkGatewaySkuNameVpnGw4AZ VirtualNetworkGatewaySkuName = "VpnGw4AZ" + // VirtualNetworkGatewaySkuNameVpnGw5 ... + VirtualNetworkGatewaySkuNameVpnGw5 VirtualNetworkGatewaySkuName = "VpnGw5" + // VirtualNetworkGatewaySkuNameVpnGw5AZ ... + VirtualNetworkGatewaySkuNameVpnGw5AZ VirtualNetworkGatewaySkuName = "VpnGw5AZ" +) + +// PossibleVirtualNetworkGatewaySkuNameValues returns an array of possible values for the VirtualNetworkGatewaySkuName const type. +func PossibleVirtualNetworkGatewaySkuNameValues() []VirtualNetworkGatewaySkuName { + return []VirtualNetworkGatewaySkuName{VirtualNetworkGatewaySkuNameBasic, VirtualNetworkGatewaySkuNameErGw1AZ, VirtualNetworkGatewaySkuNameErGw2AZ, VirtualNetworkGatewaySkuNameErGw3AZ, VirtualNetworkGatewaySkuNameHighPerformance, VirtualNetworkGatewaySkuNameStandard, VirtualNetworkGatewaySkuNameUltraPerformance, VirtualNetworkGatewaySkuNameVpnGw1, VirtualNetworkGatewaySkuNameVpnGw1AZ, VirtualNetworkGatewaySkuNameVpnGw2, VirtualNetworkGatewaySkuNameVpnGw2AZ, VirtualNetworkGatewaySkuNameVpnGw3, VirtualNetworkGatewaySkuNameVpnGw3AZ, VirtualNetworkGatewaySkuNameVpnGw4, VirtualNetworkGatewaySkuNameVpnGw4AZ, VirtualNetworkGatewaySkuNameVpnGw5, VirtualNetworkGatewaySkuNameVpnGw5AZ} +} + +// VirtualNetworkGatewaySkuTier enumerates the values for virtual network gateway sku tier. +type VirtualNetworkGatewaySkuTier string + +const ( + // VirtualNetworkGatewaySkuTierBasic ... + VirtualNetworkGatewaySkuTierBasic VirtualNetworkGatewaySkuTier = "Basic" + // VirtualNetworkGatewaySkuTierErGw1AZ ... + VirtualNetworkGatewaySkuTierErGw1AZ VirtualNetworkGatewaySkuTier = "ErGw1AZ" + // VirtualNetworkGatewaySkuTierErGw2AZ ... + VirtualNetworkGatewaySkuTierErGw2AZ VirtualNetworkGatewaySkuTier = "ErGw2AZ" + // VirtualNetworkGatewaySkuTierErGw3AZ ... + VirtualNetworkGatewaySkuTierErGw3AZ VirtualNetworkGatewaySkuTier = "ErGw3AZ" + // VirtualNetworkGatewaySkuTierHighPerformance ... + VirtualNetworkGatewaySkuTierHighPerformance VirtualNetworkGatewaySkuTier = "HighPerformance" + // VirtualNetworkGatewaySkuTierStandard ... + VirtualNetworkGatewaySkuTierStandard VirtualNetworkGatewaySkuTier = "Standard" + // VirtualNetworkGatewaySkuTierUltraPerformance ... + VirtualNetworkGatewaySkuTierUltraPerformance VirtualNetworkGatewaySkuTier = "UltraPerformance" + // VirtualNetworkGatewaySkuTierVpnGw1 ... + VirtualNetworkGatewaySkuTierVpnGw1 VirtualNetworkGatewaySkuTier = "VpnGw1" + // VirtualNetworkGatewaySkuTierVpnGw1AZ ... + VirtualNetworkGatewaySkuTierVpnGw1AZ VirtualNetworkGatewaySkuTier = "VpnGw1AZ" + // VirtualNetworkGatewaySkuTierVpnGw2 ... + VirtualNetworkGatewaySkuTierVpnGw2 VirtualNetworkGatewaySkuTier = "VpnGw2" + // VirtualNetworkGatewaySkuTierVpnGw2AZ ... + VirtualNetworkGatewaySkuTierVpnGw2AZ VirtualNetworkGatewaySkuTier = "VpnGw2AZ" + // VirtualNetworkGatewaySkuTierVpnGw3 ... + VirtualNetworkGatewaySkuTierVpnGw3 VirtualNetworkGatewaySkuTier = "VpnGw3" + // VirtualNetworkGatewaySkuTierVpnGw3AZ ... + VirtualNetworkGatewaySkuTierVpnGw3AZ VirtualNetworkGatewaySkuTier = "VpnGw3AZ" + // VirtualNetworkGatewaySkuTierVpnGw4 ... + VirtualNetworkGatewaySkuTierVpnGw4 VirtualNetworkGatewaySkuTier = "VpnGw4" + // VirtualNetworkGatewaySkuTierVpnGw4AZ ... + VirtualNetworkGatewaySkuTierVpnGw4AZ VirtualNetworkGatewaySkuTier = "VpnGw4AZ" + // VirtualNetworkGatewaySkuTierVpnGw5 ... + VirtualNetworkGatewaySkuTierVpnGw5 VirtualNetworkGatewaySkuTier = "VpnGw5" + // VirtualNetworkGatewaySkuTierVpnGw5AZ ... + VirtualNetworkGatewaySkuTierVpnGw5AZ VirtualNetworkGatewaySkuTier = "VpnGw5AZ" +) + +// PossibleVirtualNetworkGatewaySkuTierValues returns an array of possible values for the VirtualNetworkGatewaySkuTier const type. +func PossibleVirtualNetworkGatewaySkuTierValues() []VirtualNetworkGatewaySkuTier { + return []VirtualNetworkGatewaySkuTier{VirtualNetworkGatewaySkuTierBasic, VirtualNetworkGatewaySkuTierErGw1AZ, VirtualNetworkGatewaySkuTierErGw2AZ, VirtualNetworkGatewaySkuTierErGw3AZ, VirtualNetworkGatewaySkuTierHighPerformance, VirtualNetworkGatewaySkuTierStandard, VirtualNetworkGatewaySkuTierUltraPerformance, VirtualNetworkGatewaySkuTierVpnGw1, VirtualNetworkGatewaySkuTierVpnGw1AZ, VirtualNetworkGatewaySkuTierVpnGw2, VirtualNetworkGatewaySkuTierVpnGw2AZ, VirtualNetworkGatewaySkuTierVpnGw3, VirtualNetworkGatewaySkuTierVpnGw3AZ, VirtualNetworkGatewaySkuTierVpnGw4, VirtualNetworkGatewaySkuTierVpnGw4AZ, VirtualNetworkGatewaySkuTierVpnGw5, VirtualNetworkGatewaySkuTierVpnGw5AZ} +} + +// VirtualNetworkGatewayType enumerates the values for virtual network gateway type. +type VirtualNetworkGatewayType string + +const ( + // VirtualNetworkGatewayTypeExpressRoute ... + VirtualNetworkGatewayTypeExpressRoute VirtualNetworkGatewayType = "ExpressRoute" + // VirtualNetworkGatewayTypeLocalGateway ... + VirtualNetworkGatewayTypeLocalGateway VirtualNetworkGatewayType = "LocalGateway" + // VirtualNetworkGatewayTypeVpn ... + VirtualNetworkGatewayTypeVpn VirtualNetworkGatewayType = "Vpn" +) + +// PossibleVirtualNetworkGatewayTypeValues returns an array of possible values for the VirtualNetworkGatewayType const type. +func PossibleVirtualNetworkGatewayTypeValues() []VirtualNetworkGatewayType { + return []VirtualNetworkGatewayType{VirtualNetworkGatewayTypeExpressRoute, VirtualNetworkGatewayTypeLocalGateway, VirtualNetworkGatewayTypeVpn} +} + +// VirtualNetworkPeeringState enumerates the values for virtual network peering state. +type VirtualNetworkPeeringState string + +const ( + // VirtualNetworkPeeringStateConnected ... + VirtualNetworkPeeringStateConnected VirtualNetworkPeeringState = "Connected" + // VirtualNetworkPeeringStateDisconnected ... + VirtualNetworkPeeringStateDisconnected VirtualNetworkPeeringState = "Disconnected" + // VirtualNetworkPeeringStateInitiated ... + VirtualNetworkPeeringStateInitiated VirtualNetworkPeeringState = "Initiated" +) + +// PossibleVirtualNetworkPeeringStateValues returns an array of possible values for the VirtualNetworkPeeringState const type. +func PossibleVirtualNetworkPeeringStateValues() []VirtualNetworkPeeringState { + return []VirtualNetworkPeeringState{VirtualNetworkPeeringStateConnected, VirtualNetworkPeeringStateDisconnected, VirtualNetworkPeeringStateInitiated} +} + +// VirtualWanSecurityProviderType enumerates the values for virtual wan security provider type. +type VirtualWanSecurityProviderType string + +const ( + // External ... + External VirtualWanSecurityProviderType = "External" + // Native ... + Native VirtualWanSecurityProviderType = "Native" +) + +// PossibleVirtualWanSecurityProviderTypeValues returns an array of possible values for the VirtualWanSecurityProviderType const type. +func PossibleVirtualWanSecurityProviderTypeValues() []VirtualWanSecurityProviderType { + return []VirtualWanSecurityProviderType{External, Native} +} + +// VpnAuthenticationType enumerates the values for vpn authentication type. +type VpnAuthenticationType string + +const ( + // AAD ... + AAD VpnAuthenticationType = "AAD" + // Certificate ... + Certificate VpnAuthenticationType = "Certificate" + // Radius ... + Radius VpnAuthenticationType = "Radius" +) + +// PossibleVpnAuthenticationTypeValues returns an array of possible values for the VpnAuthenticationType const type. +func PossibleVpnAuthenticationTypeValues() []VpnAuthenticationType { + return []VpnAuthenticationType{AAD, Certificate, Radius} +} + +// VpnClientProtocol enumerates the values for vpn client protocol. +type VpnClientProtocol string + +const ( + // IkeV2 ... + IkeV2 VpnClientProtocol = "IkeV2" + // OpenVPN ... + OpenVPN VpnClientProtocol = "OpenVPN" + // SSTP ... + SSTP VpnClientProtocol = "SSTP" +) + +// PossibleVpnClientProtocolValues returns an array of possible values for the VpnClientProtocol const type. +func PossibleVpnClientProtocolValues() []VpnClientProtocol { + return []VpnClientProtocol{IkeV2, OpenVPN, SSTP} +} + +// VpnConnectionStatus enumerates the values for vpn connection status. +type VpnConnectionStatus string + +const ( + // VpnConnectionStatusConnected ... + VpnConnectionStatusConnected VpnConnectionStatus = "Connected" + // VpnConnectionStatusConnecting ... + VpnConnectionStatusConnecting VpnConnectionStatus = "Connecting" + // VpnConnectionStatusNotConnected ... + VpnConnectionStatusNotConnected VpnConnectionStatus = "NotConnected" + // VpnConnectionStatusUnknown ... + VpnConnectionStatusUnknown VpnConnectionStatus = "Unknown" +) + +// PossibleVpnConnectionStatusValues returns an array of possible values for the VpnConnectionStatus const type. +func PossibleVpnConnectionStatusValues() []VpnConnectionStatus { + return []VpnConnectionStatus{VpnConnectionStatusConnected, VpnConnectionStatusConnecting, VpnConnectionStatusNotConnected, VpnConnectionStatusUnknown} +} + +// VpnGatewayGeneration enumerates the values for vpn gateway generation. +type VpnGatewayGeneration string + +const ( + // VpnGatewayGenerationGeneration1 ... + VpnGatewayGenerationGeneration1 VpnGatewayGeneration = "Generation1" + // VpnGatewayGenerationGeneration2 ... + VpnGatewayGenerationGeneration2 VpnGatewayGeneration = "Generation2" + // VpnGatewayGenerationNone ... + VpnGatewayGenerationNone VpnGatewayGeneration = "None" +) + +// PossibleVpnGatewayGenerationValues returns an array of possible values for the VpnGatewayGeneration const type. +func PossibleVpnGatewayGenerationValues() []VpnGatewayGeneration { + return []VpnGatewayGeneration{VpnGatewayGenerationGeneration1, VpnGatewayGenerationGeneration2, VpnGatewayGenerationNone} +} + +// VpnGatewayTunnelingProtocol enumerates the values for vpn gateway tunneling protocol. +type VpnGatewayTunnelingProtocol string + +const ( + // VpnGatewayTunnelingProtocolIkeV2 ... + VpnGatewayTunnelingProtocolIkeV2 VpnGatewayTunnelingProtocol = "IkeV2" + // VpnGatewayTunnelingProtocolOpenVPN ... + VpnGatewayTunnelingProtocolOpenVPN VpnGatewayTunnelingProtocol = "OpenVPN" +) + +// PossibleVpnGatewayTunnelingProtocolValues returns an array of possible values for the VpnGatewayTunnelingProtocol const type. +func PossibleVpnGatewayTunnelingProtocolValues() []VpnGatewayTunnelingProtocol { + return []VpnGatewayTunnelingProtocol{VpnGatewayTunnelingProtocolIkeV2, VpnGatewayTunnelingProtocolOpenVPN} +} + +// VpnType enumerates the values for vpn type. +type VpnType string + +const ( + // PolicyBased ... + PolicyBased VpnType = "PolicyBased" + // RouteBased ... + RouteBased VpnType = "RouteBased" +) + +// PossibleVpnTypeValues returns an array of possible values for the VpnType const type. +func PossibleVpnTypeValues() []VpnType { + return []VpnType{PolicyBased, RouteBased} +} + +// WebApplicationFirewallAction enumerates the values for web application firewall action. +type WebApplicationFirewallAction string + +const ( + // WebApplicationFirewallActionAllow ... + WebApplicationFirewallActionAllow WebApplicationFirewallAction = "Allow" + // WebApplicationFirewallActionBlock ... + WebApplicationFirewallActionBlock WebApplicationFirewallAction = "Block" + // WebApplicationFirewallActionLog ... + WebApplicationFirewallActionLog WebApplicationFirewallAction = "Log" +) + +// PossibleWebApplicationFirewallActionValues returns an array of possible values for the WebApplicationFirewallAction const type. +func PossibleWebApplicationFirewallActionValues() []WebApplicationFirewallAction { + return []WebApplicationFirewallAction{WebApplicationFirewallActionAllow, WebApplicationFirewallActionBlock, WebApplicationFirewallActionLog} +} + +// WebApplicationFirewallEnabledState enumerates the values for web application firewall enabled state. +type WebApplicationFirewallEnabledState string + +const ( + // WebApplicationFirewallEnabledStateDisabled ... + WebApplicationFirewallEnabledStateDisabled WebApplicationFirewallEnabledState = "Disabled" + // WebApplicationFirewallEnabledStateEnabled ... + WebApplicationFirewallEnabledStateEnabled WebApplicationFirewallEnabledState = "Enabled" +) + +// PossibleWebApplicationFirewallEnabledStateValues returns an array of possible values for the WebApplicationFirewallEnabledState const type. +func PossibleWebApplicationFirewallEnabledStateValues() []WebApplicationFirewallEnabledState { + return []WebApplicationFirewallEnabledState{WebApplicationFirewallEnabledStateDisabled, WebApplicationFirewallEnabledStateEnabled} +} + +// WebApplicationFirewallMatchVariable enumerates the values for web application firewall match variable. +type WebApplicationFirewallMatchVariable string + +const ( + // PostArgs ... + PostArgs WebApplicationFirewallMatchVariable = "PostArgs" + // QueryString ... + QueryString WebApplicationFirewallMatchVariable = "QueryString" + // RemoteAddr ... + RemoteAddr WebApplicationFirewallMatchVariable = "RemoteAddr" + // RequestBody ... + RequestBody WebApplicationFirewallMatchVariable = "RequestBody" + // RequestCookies ... + RequestCookies WebApplicationFirewallMatchVariable = "RequestCookies" + // RequestHeaders ... + RequestHeaders WebApplicationFirewallMatchVariable = "RequestHeaders" + // RequestMethod ... + RequestMethod WebApplicationFirewallMatchVariable = "RequestMethod" + // RequestURI ... + RequestURI WebApplicationFirewallMatchVariable = "RequestUri" +) + +// PossibleWebApplicationFirewallMatchVariableValues returns an array of possible values for the WebApplicationFirewallMatchVariable const type. +func PossibleWebApplicationFirewallMatchVariableValues() []WebApplicationFirewallMatchVariable { + return []WebApplicationFirewallMatchVariable{PostArgs, QueryString, RemoteAddr, RequestBody, RequestCookies, RequestHeaders, RequestMethod, RequestURI} +} + +// WebApplicationFirewallMode enumerates the values for web application firewall mode. +type WebApplicationFirewallMode string + +const ( + // WebApplicationFirewallModeDetection ... + WebApplicationFirewallModeDetection WebApplicationFirewallMode = "Detection" + // WebApplicationFirewallModePrevention ... + WebApplicationFirewallModePrevention WebApplicationFirewallMode = "Prevention" +) + +// PossibleWebApplicationFirewallModeValues returns an array of possible values for the WebApplicationFirewallMode const type. +func PossibleWebApplicationFirewallModeValues() []WebApplicationFirewallMode { + return []WebApplicationFirewallMode{WebApplicationFirewallModeDetection, WebApplicationFirewallModePrevention} +} + +// WebApplicationFirewallOperator enumerates the values for web application firewall operator. +type WebApplicationFirewallOperator string + +const ( + // WebApplicationFirewallOperatorBeginsWith ... + WebApplicationFirewallOperatorBeginsWith WebApplicationFirewallOperator = "BeginsWith" + // WebApplicationFirewallOperatorContains ... + WebApplicationFirewallOperatorContains WebApplicationFirewallOperator = "Contains" + // WebApplicationFirewallOperatorEndsWith ... + WebApplicationFirewallOperatorEndsWith WebApplicationFirewallOperator = "EndsWith" + // WebApplicationFirewallOperatorEqual ... + WebApplicationFirewallOperatorEqual WebApplicationFirewallOperator = "Equal" + // WebApplicationFirewallOperatorGeoMatch ... + WebApplicationFirewallOperatorGeoMatch WebApplicationFirewallOperator = "GeoMatch" + // WebApplicationFirewallOperatorGreaterThan ... + WebApplicationFirewallOperatorGreaterThan WebApplicationFirewallOperator = "GreaterThan" + // WebApplicationFirewallOperatorGreaterThanOrEqual ... + WebApplicationFirewallOperatorGreaterThanOrEqual WebApplicationFirewallOperator = "GreaterThanOrEqual" + // WebApplicationFirewallOperatorIPMatch ... + WebApplicationFirewallOperatorIPMatch WebApplicationFirewallOperator = "IPMatch" + // WebApplicationFirewallOperatorLessThan ... + WebApplicationFirewallOperatorLessThan WebApplicationFirewallOperator = "LessThan" + // WebApplicationFirewallOperatorLessThanOrEqual ... + WebApplicationFirewallOperatorLessThanOrEqual WebApplicationFirewallOperator = "LessThanOrEqual" + // WebApplicationFirewallOperatorRegex ... + WebApplicationFirewallOperatorRegex WebApplicationFirewallOperator = "Regex" +) + +// PossibleWebApplicationFirewallOperatorValues returns an array of possible values for the WebApplicationFirewallOperator const type. +func PossibleWebApplicationFirewallOperatorValues() []WebApplicationFirewallOperator { + return []WebApplicationFirewallOperator{WebApplicationFirewallOperatorBeginsWith, WebApplicationFirewallOperatorContains, WebApplicationFirewallOperatorEndsWith, WebApplicationFirewallOperatorEqual, WebApplicationFirewallOperatorGeoMatch, WebApplicationFirewallOperatorGreaterThan, WebApplicationFirewallOperatorGreaterThanOrEqual, WebApplicationFirewallOperatorIPMatch, WebApplicationFirewallOperatorLessThan, WebApplicationFirewallOperatorLessThanOrEqual, WebApplicationFirewallOperatorRegex} +} + +// WebApplicationFirewallPolicyResourceState enumerates the values for web application firewall policy resource +// state. +type WebApplicationFirewallPolicyResourceState string + +const ( + // WebApplicationFirewallPolicyResourceStateCreating ... + WebApplicationFirewallPolicyResourceStateCreating WebApplicationFirewallPolicyResourceState = "Creating" + // WebApplicationFirewallPolicyResourceStateDeleting ... + WebApplicationFirewallPolicyResourceStateDeleting WebApplicationFirewallPolicyResourceState = "Deleting" + // WebApplicationFirewallPolicyResourceStateDisabled ... + WebApplicationFirewallPolicyResourceStateDisabled WebApplicationFirewallPolicyResourceState = "Disabled" + // WebApplicationFirewallPolicyResourceStateDisabling ... + WebApplicationFirewallPolicyResourceStateDisabling WebApplicationFirewallPolicyResourceState = "Disabling" + // WebApplicationFirewallPolicyResourceStateEnabled ... + WebApplicationFirewallPolicyResourceStateEnabled WebApplicationFirewallPolicyResourceState = "Enabled" + // WebApplicationFirewallPolicyResourceStateEnabling ... + WebApplicationFirewallPolicyResourceStateEnabling WebApplicationFirewallPolicyResourceState = "Enabling" +) + +// PossibleWebApplicationFirewallPolicyResourceStateValues returns an array of possible values for the WebApplicationFirewallPolicyResourceState const type. +func PossibleWebApplicationFirewallPolicyResourceStateValues() []WebApplicationFirewallPolicyResourceState { + return []WebApplicationFirewallPolicyResourceState{WebApplicationFirewallPolicyResourceStateCreating, WebApplicationFirewallPolicyResourceStateDeleting, WebApplicationFirewallPolicyResourceStateDisabled, WebApplicationFirewallPolicyResourceStateDisabling, WebApplicationFirewallPolicyResourceStateEnabled, WebApplicationFirewallPolicyResourceStateEnabling} +} + +// WebApplicationFirewallRuleType enumerates the values for web application firewall rule type. +type WebApplicationFirewallRuleType string + +const ( + // WebApplicationFirewallRuleTypeInvalid ... + WebApplicationFirewallRuleTypeInvalid WebApplicationFirewallRuleType = "Invalid" + // WebApplicationFirewallRuleTypeMatchRule ... + WebApplicationFirewallRuleTypeMatchRule WebApplicationFirewallRuleType = "MatchRule" +) + +// PossibleWebApplicationFirewallRuleTypeValues returns an array of possible values for the WebApplicationFirewallRuleType const type. +func PossibleWebApplicationFirewallRuleTypeValues() []WebApplicationFirewallRuleType { + return []WebApplicationFirewallRuleType{WebApplicationFirewallRuleTypeInvalid, WebApplicationFirewallRuleTypeMatchRule} +} + +// WebApplicationFirewallTransform enumerates the values for web application firewall transform. +type WebApplicationFirewallTransform string + +const ( + // HTMLEntityDecode ... + HTMLEntityDecode WebApplicationFirewallTransform = "HtmlEntityDecode" + // Lowercase ... + Lowercase WebApplicationFirewallTransform = "Lowercase" + // RemoveNulls ... + RemoveNulls WebApplicationFirewallTransform = "RemoveNulls" + // Trim ... + Trim WebApplicationFirewallTransform = "Trim" + // URLDecode ... + URLDecode WebApplicationFirewallTransform = "UrlDecode" + // URLEncode ... + URLEncode WebApplicationFirewallTransform = "UrlEncode" +) + +// PossibleWebApplicationFirewallTransformValues returns an array of possible values for the WebApplicationFirewallTransform const type. +func PossibleWebApplicationFirewallTransformValues() []WebApplicationFirewallTransform { + return []WebApplicationFirewallTransform{HTMLEntityDecode, Lowercase, RemoveNulls, Trim, URLDecode, URLEncode} +} diff --git a/services/network/mgmt/2020-07-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2020-07-01/network/expressroutecircuitauthorizations.go new file mode 100644 index 000000000000..be2bd4e44384 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/expressroutecircuitauthorizations.go @@ -0,0 +1,399 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ExpressRouteCircuitAuthorizationsClient is the network Client +type ExpressRouteCircuitAuthorizationsClient struct { + BaseClient +} + +// NewExpressRouteCircuitAuthorizationsClient creates an instance of the ExpressRouteCircuitAuthorizationsClient +// client. +func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRouteCircuitAuthorizationsClient { + return NewExpressRouteCircuitAuthorizationsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the +// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure +// cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient { + return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates an authorization in the specified express route circuit. +// Parameters: +// resourceGroupName - the name of the resource group. +// circuitName - the name of the express route circuit. +// authorizationName - the name of the authorization. +// authorizationParameters - parameters supplied to the create or update express route circuit authorization +// operation. +func (client ExpressRouteCircuitAuthorizationsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string, authorizationParameters ExpressRouteCircuitAuthorization) (result ExpressRouteCircuitAuthorizationsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitAuthorizationsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, circuitName, authorizationName, authorizationParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client ExpressRouteCircuitAuthorizationsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string, authorizationParameters ExpressRouteCircuitAuthorization) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "authorizationName": autorest.Encode("path", authorizationName), + "circuitName": autorest.Encode("path", circuitName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + authorizationParameters.Etag = nil + authorizationParameters.Type = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}", pathParameters), + autorest.WithJSON(authorizationParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCircuitAuthorizationsClient) CreateOrUpdateSender(req *http.Request) (future ExpressRouteCircuitAuthorizationsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client ExpressRouteCircuitAuthorizationsClient) CreateOrUpdateResponder(resp *http.Response) (result ExpressRouteCircuitAuthorization, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified authorization from the specified express route circuit. +// Parameters: +// resourceGroupName - the name of the resource group. +// circuitName - the name of the express route circuit. +// authorizationName - the name of the authorization. +func (client ExpressRouteCircuitAuthorizationsClient) Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result ExpressRouteCircuitAuthorizationsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitAuthorizationsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, circuitName, authorizationName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client ExpressRouteCircuitAuthorizationsClient) DeletePreparer(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "authorizationName": autorest.Encode("path", authorizationName), + "circuitName": autorest.Encode("path", circuitName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCircuitAuthorizationsClient) DeleteSender(req *http.Request) (future ExpressRouteCircuitAuthorizationsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client ExpressRouteCircuitAuthorizationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified authorization from the specified express route circuit. +// Parameters: +// resourceGroupName - the name of the resource group. +// circuitName - the name of the express route circuit. +// authorizationName - the name of the authorization. +func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result ExpressRouteCircuitAuthorization, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitAuthorizationsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, circuitName, authorizationName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ExpressRouteCircuitAuthorizationsClient) GetPreparer(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "authorizationName": autorest.Encode("path", authorizationName), + "circuitName": autorest.Encode("path", circuitName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCircuitAuthorizationsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ExpressRouteCircuitAuthorizationsClient) GetResponder(resp *http.Response) (result ExpressRouteCircuitAuthorization, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all authorizations in an express route circuit. +// Parameters: +// resourceGroupName - the name of the resource group. +// circuitName - the name of the circuit. +func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, resourceGroupName string, circuitName string) (result AuthorizationListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitAuthorizationsClient.List") + defer func() { + sc := -1 + if result.alr.Response.Response != nil { + sc = result.alr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, circuitName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.alr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure sending request") + return + } + + result.alr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request") + return + } + if result.alr.hasNextLink() && result.alr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ExpressRouteCircuitAuthorizationsClient) ListPreparer(ctx context.Context, resourceGroupName string, circuitName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "circuitName": autorest.Encode("path", circuitName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCircuitAuthorizationsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ExpressRouteCircuitAuthorizationsClient) ListResponder(resp *http.Response) (result AuthorizationListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx context.Context, lastResults AuthorizationListResult) (result AuthorizationListResult, err error) { + req, err := lastResults.authorizationListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ExpressRouteCircuitAuthorizationsClient) ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result AuthorizationListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitAuthorizationsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, circuitName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2020-07-01/network/expressroutecircuitconnections.go new file mode 100644 index 000000000000..d6e543536320 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/expressroutecircuitconnections.go @@ -0,0 +1,406 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ExpressRouteCircuitConnectionsClient is the network Client +type ExpressRouteCircuitConnectionsClient struct { + BaseClient +} + +// NewExpressRouteCircuitConnectionsClient creates an instance of the ExpressRouteCircuitConnectionsClient client. +func NewExpressRouteCircuitConnectionsClient(subscriptionID string) ExpressRouteCircuitConnectionsClient { + return NewExpressRouteCircuitConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewExpressRouteCircuitConnectionsClientWithBaseURI creates an instance of the ExpressRouteCircuitConnectionsClient +// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI +// (sovereign clouds, Azure stack). +func NewExpressRouteCircuitConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitConnectionsClient { + return ExpressRouteCircuitConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a Express Route Circuit Connection in the specified express route circuits. +// Parameters: +// resourceGroupName - the name of the resource group. +// circuitName - the name of the express route circuit. +// peeringName - the name of the peering. +// connectionName - the name of the express route circuit connection. +// expressRouteCircuitConnectionParameters - parameters supplied to the create or update express route circuit +// connection operation. +func (client ExpressRouteCircuitConnectionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string, expressRouteCircuitConnectionParameters ExpressRouteCircuitConnection) (result ExpressRouteCircuitConnectionsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitConnectionsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, circuitName, peeringName, connectionName, expressRouteCircuitConnectionParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client ExpressRouteCircuitConnectionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string, expressRouteCircuitConnectionParameters ExpressRouteCircuitConnection) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "circuitName": autorest.Encode("path", circuitName), + "connectionName": autorest.Encode("path", connectionName), + "peeringName": autorest.Encode("path", peeringName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + expressRouteCircuitConnectionParameters.Etag = nil + expressRouteCircuitConnectionParameters.Type = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections/{connectionName}", pathParameters), + autorest.WithJSON(expressRouteCircuitConnectionParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCircuitConnectionsClient) CreateOrUpdateSender(req *http.Request) (future ExpressRouteCircuitConnectionsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client ExpressRouteCircuitConnectionsClient) CreateOrUpdateResponder(resp *http.Response) (result ExpressRouteCircuitConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified Express Route Circuit Connection from the specified express route circuit. +// Parameters: +// resourceGroupName - the name of the resource group. +// circuitName - the name of the express route circuit. +// peeringName - the name of the peering. +// connectionName - the name of the express route circuit connection. +func (client ExpressRouteCircuitConnectionsClient) Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result ExpressRouteCircuitConnectionsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitConnectionsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, circuitName, peeringName, connectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client ExpressRouteCircuitConnectionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "circuitName": autorest.Encode("path", circuitName), + "connectionName": autorest.Encode("path", connectionName), + "peeringName": autorest.Encode("path", peeringName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections/{connectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCircuitConnectionsClient) DeleteSender(req *http.Request) (future ExpressRouteCircuitConnectionsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client ExpressRouteCircuitConnectionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified Express Route Circuit Connection from the specified express route circuit. +// Parameters: +// resourceGroupName - the name of the resource group. +// circuitName - the name of the express route circuit. +// peeringName - the name of the peering. +// connectionName - the name of the express route circuit connection. +func (client ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result ExpressRouteCircuitConnection, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitConnectionsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, circuitName, peeringName, connectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ExpressRouteCircuitConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "circuitName": autorest.Encode("path", circuitName), + "connectionName": autorest.Encode("path", connectionName), + "peeringName": autorest.Encode("path", peeringName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections/{connectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCircuitConnectionsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ExpressRouteCircuitConnectionsClient) GetResponder(resp *http.Response) (result ExpressRouteCircuitConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all global reach connections associated with a private peering in an express route circuit. +// Parameters: +// resourceGroupName - the name of the resource group. +// circuitName - the name of the circuit. +// peeringName - the name of the peering. +func (client ExpressRouteCircuitConnectionsClient) List(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result ExpressRouteCircuitConnectionListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitConnectionsClient.List") + defer func() { + sc := -1 + if result.ercclr.Response.Response != nil { + sc = result.ercclr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, circuitName, peeringName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.ercclr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "List", resp, "Failure sending request") + return + } + + result.ercclr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return + } + if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ExpressRouteCircuitConnectionsClient) ListPreparer(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "circuitName": autorest.Encode("path", circuitName), + "peeringName": autorest.Encode("path", peeringName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCircuitConnectionsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ExpressRouteCircuitConnectionsClient) ListResponder(resp *http.Response) (result ExpressRouteCircuitConnectionListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client ExpressRouteCircuitConnectionsClient) listNextResults(ctx context.Context, lastResults ExpressRouteCircuitConnectionListResult) (result ExpressRouteCircuitConnectionListResult, err error) { + req, err := lastResults.expressRouteCircuitConnectionListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ExpressRouteCircuitConnectionsClient) ListComplete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result ExpressRouteCircuitConnectionListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitConnectionsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, circuitName, peeringName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2020-07-01/network/expressroutecircuitpeerings.go new file mode 100644 index 000000000000..fb750a5807a8 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/expressroutecircuitpeerings.go @@ -0,0 +1,409 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ExpressRouteCircuitPeeringsClient is the network Client +type ExpressRouteCircuitPeeringsClient struct { + BaseClient +} + +// NewExpressRouteCircuitPeeringsClient creates an instance of the ExpressRouteCircuitPeeringsClient client. +func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCircuitPeeringsClient { + return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client +// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign +// clouds, Azure stack). +func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient { + return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a peering in the specified express route circuits. +// Parameters: +// resourceGroupName - the name of the resource group. +// circuitName - the name of the express route circuit. +// peeringName - the name of the peering. +// peeringParameters - parameters supplied to the create or update express route circuit peering operation. +func (client ExpressRouteCircuitPeeringsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, peeringParameters ExpressRouteCircuitPeering) (result ExpressRouteCircuitPeeringsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitPeeringsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: peeringParameters, + Constraints: []validation.Constraint{{Target: "peeringParameters.ExpressRouteCircuitPeeringPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "peeringParameters.ExpressRouteCircuitPeeringPropertiesFormat.PeerASN", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "peeringParameters.ExpressRouteCircuitPeeringPropertiesFormat.PeerASN", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, + {Target: "peeringParameters.ExpressRouteCircuitPeeringPropertiesFormat.PeerASN", Name: validation.InclusiveMinimum, Rule: int64(1), Chain: nil}, + }}, + }}}}}); err != nil { + return result, validation.NewError("network.ExpressRouteCircuitPeeringsClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, circuitName, peeringName, peeringParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client ExpressRouteCircuitPeeringsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, peeringParameters ExpressRouteCircuitPeering) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "circuitName": autorest.Encode("path", circuitName), + "peeringName": autorest.Encode("path", peeringName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + peeringParameters.Etag = nil + peeringParameters.Type = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}", pathParameters), + autorest.WithJSON(peeringParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCircuitPeeringsClient) CreateOrUpdateSender(req *http.Request) (future ExpressRouteCircuitPeeringsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client ExpressRouteCircuitPeeringsClient) CreateOrUpdateResponder(resp *http.Response) (result ExpressRouteCircuitPeering, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified peering from the specified express route circuit. +// Parameters: +// resourceGroupName - the name of the resource group. +// circuitName - the name of the express route circuit. +// peeringName - the name of the peering. +func (client ExpressRouteCircuitPeeringsClient) Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result ExpressRouteCircuitPeeringsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitPeeringsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, circuitName, peeringName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client ExpressRouteCircuitPeeringsClient) DeletePreparer(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "circuitName": autorest.Encode("path", circuitName), + "peeringName": autorest.Encode("path", peeringName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCircuitPeeringsClient) DeleteSender(req *http.Request) (future ExpressRouteCircuitPeeringsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client ExpressRouteCircuitPeeringsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified peering for the express route circuit. +// Parameters: +// resourceGroupName - the name of the resource group. +// circuitName - the name of the express route circuit. +// peeringName - the name of the peering. +func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result ExpressRouteCircuitPeering, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitPeeringsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, circuitName, peeringName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ExpressRouteCircuitPeeringsClient) GetPreparer(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "circuitName": autorest.Encode("path", circuitName), + "peeringName": autorest.Encode("path", peeringName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCircuitPeeringsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ExpressRouteCircuitPeeringsClient) GetResponder(resp *http.Response) (result ExpressRouteCircuitPeering, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all peerings in a specified express route circuit. +// Parameters: +// resourceGroupName - the name of the resource group. +// circuitName - the name of the express route circuit. +func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resourceGroupName string, circuitName string) (result ExpressRouteCircuitPeeringListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitPeeringsClient.List") + defer func() { + sc := -1 + if result.ercplr.Response.Response != nil { + sc = result.ercplr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, circuitName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.ercplr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure sending request") + return + } + + result.ercplr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request") + return + } + if result.ercplr.hasNextLink() && result.ercplr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ExpressRouteCircuitPeeringsClient) ListPreparer(ctx context.Context, resourceGroupName string, circuitName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "circuitName": autorest.Encode("path", circuitName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCircuitPeeringsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ExpressRouteCircuitPeeringsClient) ListResponder(resp *http.Response) (result ExpressRouteCircuitPeeringListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Context, lastResults ExpressRouteCircuitPeeringListResult) (result ExpressRouteCircuitPeeringListResult, err error) { + req, err := lastResults.expressRouteCircuitPeeringListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ExpressRouteCircuitPeeringsClient) ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result ExpressRouteCircuitPeeringListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitPeeringsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, circuitName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/expressroutecircuits.go b/services/network/mgmt/2020-07-01/network/expressroutecircuits.go new file mode 100644 index 000000000000..dd88614ff748 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/expressroutecircuits.go @@ -0,0 +1,973 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ExpressRouteCircuitsClient is the network Client +type ExpressRouteCircuitsClient struct { + BaseClient +} + +// NewExpressRouteCircuitsClient creates an instance of the ExpressRouteCircuitsClient client. +func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsClient { + return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient { + return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates an express route circuit. +// Parameters: +// resourceGroupName - the name of the resource group. +// circuitName - the name of the circuit. +// parameters - parameters supplied to the create or update express route circuit operation. +func (client ExpressRouteCircuitsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, circuitName string, parameters ExpressRouteCircuit) (result ExpressRouteCircuitsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, circuitName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client ExpressRouteCircuitsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, circuitName string, parameters ExpressRouteCircuit) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "circuitName": autorest.Encode("path", circuitName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCircuitsClient) CreateOrUpdateSender(req *http.Request) (future ExpressRouteCircuitsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client ExpressRouteCircuitsClient) CreateOrUpdateResponder(resp *http.Response) (result ExpressRouteCircuit, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified express route circuit. +// Parameters: +// resourceGroupName - the name of the resource group. +// circuitName - the name of the express route circuit. +func (client ExpressRouteCircuitsClient) Delete(ctx context.Context, resourceGroupName string, circuitName string) (result ExpressRouteCircuitsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, circuitName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client ExpressRouteCircuitsClient) DeletePreparer(ctx context.Context, resourceGroupName string, circuitName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "circuitName": autorest.Encode("path", circuitName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCircuitsClient) DeleteSender(req *http.Request) (future ExpressRouteCircuitsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client ExpressRouteCircuitsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets information about the specified express route circuit. +// Parameters: +// resourceGroupName - the name of the resource group. +// circuitName - the name of express route circuit. +func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupName string, circuitName string) (result ExpressRouteCircuit, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, circuitName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ExpressRouteCircuitsClient) GetPreparer(ctx context.Context, resourceGroupName string, circuitName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "circuitName": autorest.Encode("path", circuitName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCircuitsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ExpressRouteCircuitsClient) GetResponder(resp *http.Response) (result ExpressRouteCircuit, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetPeeringStats gets all stats from an express route circuit in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// circuitName - the name of the express route circuit. +// peeringName - the name of the peering. +func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result ExpressRouteCircuitStats, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitsClient.GetPeeringStats") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPeeringStatsPreparer(ctx, resourceGroupName, circuitName, peeringName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", nil, "Failure preparing request") + return + } + + resp, err := client.GetPeeringStatsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure sending request") + return + } + + result, err = client.GetPeeringStatsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request") + return + } + + return +} + +// GetPeeringStatsPreparer prepares the GetPeeringStats request. +func (client ExpressRouteCircuitsClient) GetPeeringStatsPreparer(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "circuitName": autorest.Encode("path", circuitName), + "peeringName": autorest.Encode("path", peeringName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/stats", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetPeeringStatsSender sends the GetPeeringStats request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCircuitsClient) GetPeeringStatsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetPeeringStatsResponder handles the response to the GetPeeringStats request. The method always +// closes the http.Response Body. +func (client ExpressRouteCircuitsClient) GetPeeringStatsResponder(resp *http.Response) (result ExpressRouteCircuitStats, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetStats gets all the stats from an express route circuit in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// circuitName - the name of the express route circuit. +func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result ExpressRouteCircuitStats, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitsClient.GetStats") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetStatsPreparer(ctx, resourceGroupName, circuitName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", nil, "Failure preparing request") + return + } + + resp, err := client.GetStatsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure sending request") + return + } + + result, err = client.GetStatsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request") + return + } + + return +} + +// GetStatsPreparer prepares the GetStats request. +func (client ExpressRouteCircuitsClient) GetStatsPreparer(ctx context.Context, resourceGroupName string, circuitName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "circuitName": autorest.Encode("path", circuitName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/stats", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetStatsSender sends the GetStats request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCircuitsClient) GetStatsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetStatsResponder handles the response to the GetStats request. The method always +// closes the http.Response Body. +func (client ExpressRouteCircuitsClient) GetStatsResponder(resp *http.Response) (result ExpressRouteCircuitStats, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all the express route circuits in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroupName string) (result ExpressRouteCircuitListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitsClient.List") + defer func() { + sc := -1 + if result.erclr.Response.Response != nil { + sc = result.erclr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.erclr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure sending request") + return + } + + result.erclr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request") + return + } + if result.erclr.hasNextLink() && result.erclr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ExpressRouteCircuitsClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCircuitsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ExpressRouteCircuitsClient) ListResponder(resp *http.Response) (result ExpressRouteCircuitListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, lastResults ExpressRouteCircuitListResult) (result ExpressRouteCircuitListResult, err error) { + req, err := lastResults.expressRouteCircuitListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ExpressRouteCircuitsClient) ListComplete(ctx context.Context, resourceGroupName string) (result ExpressRouteCircuitListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName) + return +} + +// ListAll gets all the express route circuits in a subscription. +func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result ExpressRouteCircuitListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitsClient.ListAll") + defer func() { + sc := -1 + if result.erclr.Response.Response != nil { + sc = result.erclr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listAllNextResults + req, err := client.ListAllPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", nil, "Failure preparing request") + return + } + + resp, err := client.ListAllSender(req) + if err != nil { + result.erclr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure sending request") + return + } + + result.erclr, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request") + return + } + if result.erclr.hasNextLink() && result.erclr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListAllPreparer prepares the ListAll request. +func (client ExpressRouteCircuitsClient) ListAllPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteCircuits", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAllSender sends the ListAll request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCircuitsClient) ListAllSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAllResponder handles the response to the ListAll request. The method always +// closes the http.Response Body. +func (client ExpressRouteCircuitsClient) ListAllResponder(resp *http.Response) (result ExpressRouteCircuitListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listAllNextResults retrieves the next set of results, if any. +func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, lastResults ExpressRouteCircuitListResult) (result ExpressRouteCircuitListResult, err error) { + req, err := lastResults.expressRouteCircuitListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListAllSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure sending next results request") + } + result, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListAllComplete enumerates all values, automatically crossing page boundaries as required. +func (client ExpressRouteCircuitsClient) ListAllComplete(ctx context.Context) (result ExpressRouteCircuitListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitsClient.ListAll") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListAll(ctx) + return +} + +// ListArpTable gets the currently advertised ARP table associated with the express route circuit in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// circuitName - the name of the express route circuit. +// peeringName - the name of the peering. +// devicePath - the path of the device. +func (client ExpressRouteCircuitsClient) ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result ExpressRouteCircuitsListArpTableFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitsClient.ListArpTable") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListArpTablePreparer(ctx, resourceGroupName, circuitName, peeringName, devicePath) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListArpTable", nil, "Failure preparing request") + return + } + + result, err = client.ListArpTableSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListArpTable", result.Response(), "Failure sending request") + return + } + + return +} + +// ListArpTablePreparer prepares the ListArpTable request. +func (client ExpressRouteCircuitsClient) ListArpTablePreparer(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "circuitName": autorest.Encode("path", circuitName), + "devicePath": autorest.Encode("path", devicePath), + "peeringName": autorest.Encode("path", peeringName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/arpTables/{devicePath}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListArpTableSender sends the ListArpTable request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCircuitsClient) ListArpTableSender(req *http.Request) (future ExpressRouteCircuitsListArpTableFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// ListArpTableResponder handles the response to the ListArpTable request. The method always +// closes the http.Response Body. +func (client ExpressRouteCircuitsClient) ListArpTableResponder(resp *http.Response) (result ExpressRouteCircuitsArpTableListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListRoutesTable gets the currently advertised routes table associated with the express route circuit in a resource +// group. +// Parameters: +// resourceGroupName - the name of the resource group. +// circuitName - the name of the express route circuit. +// peeringName - the name of the peering. +// devicePath - the path of the device. +func (client ExpressRouteCircuitsClient) ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result ExpressRouteCircuitsListRoutesTableFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitsClient.ListRoutesTable") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListRoutesTablePreparer(ctx, resourceGroupName, circuitName, peeringName, devicePath) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListRoutesTable", nil, "Failure preparing request") + return + } + + result, err = client.ListRoutesTableSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListRoutesTable", result.Response(), "Failure sending request") + return + } + + return +} + +// ListRoutesTablePreparer prepares the ListRoutesTable request. +func (client ExpressRouteCircuitsClient) ListRoutesTablePreparer(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "circuitName": autorest.Encode("path", circuitName), + "devicePath": autorest.Encode("path", devicePath), + "peeringName": autorest.Encode("path", peeringName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/routeTables/{devicePath}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListRoutesTableSender sends the ListRoutesTable request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCircuitsClient) ListRoutesTableSender(req *http.Request) (future ExpressRouteCircuitsListRoutesTableFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// ListRoutesTableResponder handles the response to the ListRoutesTable request. The method always +// closes the http.Response Body. +func (client ExpressRouteCircuitsClient) ListRoutesTableResponder(resp *http.Response) (result ExpressRouteCircuitsRoutesTableListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListRoutesTableSummary gets the currently advertised routes table summary associated with the express route circuit +// in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// circuitName - the name of the express route circuit. +// peeringName - the name of the peering. +// devicePath - the path of the device. +func (client ExpressRouteCircuitsClient) ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result ExpressRouteCircuitsListRoutesTableSummaryFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitsClient.ListRoutesTableSummary") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListRoutesTableSummaryPreparer(ctx, resourceGroupName, circuitName, peeringName, devicePath) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListRoutesTableSummary", nil, "Failure preparing request") + return + } + + result, err = client.ListRoutesTableSummarySender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListRoutesTableSummary", result.Response(), "Failure sending request") + return + } + + return +} + +// ListRoutesTableSummaryPreparer prepares the ListRoutesTableSummary request. +func (client ExpressRouteCircuitsClient) ListRoutesTableSummaryPreparer(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "circuitName": autorest.Encode("path", circuitName), + "devicePath": autorest.Encode("path", devicePath), + "peeringName": autorest.Encode("path", peeringName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/routeTablesSummary/{devicePath}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListRoutesTableSummarySender sends the ListRoutesTableSummary request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCircuitsClient) ListRoutesTableSummarySender(req *http.Request) (future ExpressRouteCircuitsListRoutesTableSummaryFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// ListRoutesTableSummaryResponder handles the response to the ListRoutesTableSummary request. The method always +// closes the http.Response Body. +func (client ExpressRouteCircuitsClient) ListRoutesTableSummaryResponder(resp *http.Response) (result ExpressRouteCircuitsRoutesTableSummaryListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// UpdateTags updates an express route circuit tags. +// Parameters: +// resourceGroupName - the name of the resource group. +// circuitName - the name of the circuit. +// parameters - parameters supplied to update express route circuit tags. +func (client ExpressRouteCircuitsClient) UpdateTags(ctx context.Context, resourceGroupName string, circuitName string, parameters TagsObject) (result ExpressRouteCircuit, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitsClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, circuitName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client ExpressRouteCircuitsClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, circuitName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "circuitName": autorest.Encode("path", circuitName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCircuitsClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client ExpressRouteCircuitsClient) UpdateTagsResponder(resp *http.Response) (result ExpressRouteCircuit, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/expressrouteconnections.go b/services/network/mgmt/2020-07-01/network/expressrouteconnections.go new file mode 100644 index 000000000000..d5e829deb87f --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/expressrouteconnections.go @@ -0,0 +1,362 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ExpressRouteConnectionsClient is the network Client +type ExpressRouteConnectionsClient struct { + BaseClient +} + +// NewExpressRouteConnectionsClient creates an instance of the ExpressRouteConnectionsClient client. +func NewExpressRouteConnectionsClient(subscriptionID string) ExpressRouteConnectionsClient { + return NewExpressRouteConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewExpressRouteConnectionsClientWithBaseURI creates an instance of the ExpressRouteConnectionsClient client using a +// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, +// Azure stack). +func NewExpressRouteConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteConnectionsClient { + return ExpressRouteConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates a connection between an ExpressRoute gateway and an ExpressRoute circuit. +// Parameters: +// resourceGroupName - the name of the resource group. +// expressRouteGatewayName - the name of the ExpressRoute gateway. +// connectionName - the name of the connection subresource. +// putExpressRouteConnectionParameters - parameters required in an ExpressRouteConnection PUT operation. +func (client ExpressRouteConnectionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, connectionName string, putExpressRouteConnectionParameters ExpressRouteConnection) (result ExpressRouteConnectionsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteConnectionsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: putExpressRouteConnectionParameters, + Constraints: []validation.Constraint{{Target: "putExpressRouteConnectionParameters.ExpressRouteConnectionProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "putExpressRouteConnectionParameters.ExpressRouteConnectionProperties.ExpressRouteCircuitPeering", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "putExpressRouteConnectionParameters.Name", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("network.ExpressRouteConnectionsClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, expressRouteGatewayName, connectionName, putExpressRouteConnectionParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client ExpressRouteConnectionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, connectionName string, putExpressRouteConnectionParameters ExpressRouteConnection) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "connectionName": autorest.Encode("path", connectionName), + "expressRouteGatewayName": autorest.Encode("path", expressRouteGatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}/expressRouteConnections/{connectionName}", pathParameters), + autorest.WithJSON(putExpressRouteConnectionParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteConnectionsClient) CreateOrUpdateSender(req *http.Request) (future ExpressRouteConnectionsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client ExpressRouteConnectionsClient) CreateOrUpdateResponder(resp *http.Response) (result ExpressRouteConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes a connection to a ExpressRoute circuit. +// Parameters: +// resourceGroupName - the name of the resource group. +// expressRouteGatewayName - the name of the ExpressRoute gateway. +// connectionName - the name of the connection subresource. +func (client ExpressRouteConnectionsClient) Delete(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, connectionName string) (result ExpressRouteConnectionsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteConnectionsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, expressRouteGatewayName, connectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client ExpressRouteConnectionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, connectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "connectionName": autorest.Encode("path", connectionName), + "expressRouteGatewayName": autorest.Encode("path", expressRouteGatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}/expressRouteConnections/{connectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteConnectionsClient) DeleteSender(req *http.Request) (future ExpressRouteConnectionsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client ExpressRouteConnectionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified ExpressRouteConnection. +// Parameters: +// resourceGroupName - the name of the resource group. +// expressRouteGatewayName - the name of the ExpressRoute gateway. +// connectionName - the name of the ExpressRoute connection. +func (client ExpressRouteConnectionsClient) Get(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, connectionName string) (result ExpressRouteConnection, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteConnectionsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, expressRouteGatewayName, connectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ExpressRouteConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, connectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "connectionName": autorest.Encode("path", connectionName), + "expressRouteGatewayName": autorest.Encode("path", expressRouteGatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}/expressRouteConnections/{connectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteConnectionsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ExpressRouteConnectionsClient) GetResponder(resp *http.Response) (result ExpressRouteConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists ExpressRouteConnections. +// Parameters: +// resourceGroupName - the name of the resource group. +// expressRouteGatewayName - the name of the ExpressRoute gateway. +func (client ExpressRouteConnectionsClient) List(ctx context.Context, resourceGroupName string, expressRouteGatewayName string) (result ExpressRouteConnectionList, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteConnectionsClient.List") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListPreparer(ctx, resourceGroupName, expressRouteGatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "List", resp, "Failure responding to request") + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ExpressRouteConnectionsClient) ListPreparer(ctx context.Context, resourceGroupName string, expressRouteGatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "expressRouteGatewayName": autorest.Encode("path", expressRouteGatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}/expressRouteConnections", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteConnectionsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ExpressRouteConnectionsClient) ListResponder(resp *http.Response) (result ExpressRouteConnectionList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2020-07-01/network/expressroutecrossconnectionpeerings.go new file mode 100644 index 000000000000..27fd6b041b36 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/expressroutecrossconnectionpeerings.go @@ -0,0 +1,410 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ExpressRouteCrossConnectionPeeringsClient is the network Client +type ExpressRouteCrossConnectionPeeringsClient struct { + BaseClient +} + +// NewExpressRouteCrossConnectionPeeringsClient creates an instance of the ExpressRouteCrossConnectionPeeringsClient +// client. +func NewExpressRouteCrossConnectionPeeringsClient(subscriptionID string) ExpressRouteCrossConnectionPeeringsClient { + return NewExpressRouteCrossConnectionPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewExpressRouteCrossConnectionPeeringsClientWithBaseURI creates an instance of the +// ExpressRouteCrossConnectionPeeringsClient client using a custom endpoint. Use this when interacting with an Azure +// cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewExpressRouteCrossConnectionPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionPeeringsClient { + return ExpressRouteCrossConnectionPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a peering in the specified ExpressRouteCrossConnection. +// Parameters: +// resourceGroupName - the name of the resource group. +// crossConnectionName - the name of the ExpressRouteCrossConnection. +// peeringName - the name of the peering. +// peeringParameters - parameters supplied to the create or update ExpressRouteCrossConnection peering +// operation. +func (client ExpressRouteCrossConnectionPeeringsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, peeringParameters ExpressRouteCrossConnectionPeering) (result ExpressRouteCrossConnectionPeeringsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionPeeringsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: peeringParameters, + Constraints: []validation.Constraint{{Target: "peeringParameters.ExpressRouteCrossConnectionPeeringProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "peeringParameters.ExpressRouteCrossConnectionPeeringProperties.PeerASN", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "peeringParameters.ExpressRouteCrossConnectionPeeringProperties.PeerASN", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, + {Target: "peeringParameters.ExpressRouteCrossConnectionPeeringProperties.PeerASN", Name: validation.InclusiveMinimum, Rule: int64(1), Chain: nil}, + }}, + }}}}}); err != nil { + return result, validation.NewError("network.ExpressRouteCrossConnectionPeeringsClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, crossConnectionName, peeringName, peeringParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client ExpressRouteCrossConnectionPeeringsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, peeringParameters ExpressRouteCrossConnectionPeering) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "crossConnectionName": autorest.Encode("path", crossConnectionName), + "peeringName": autorest.Encode("path", peeringName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + peeringParameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}", pathParameters), + autorest.WithJSON(peeringParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCrossConnectionPeeringsClient) CreateOrUpdateSender(req *http.Request) (future ExpressRouteCrossConnectionPeeringsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client ExpressRouteCrossConnectionPeeringsClient) CreateOrUpdateResponder(resp *http.Response) (result ExpressRouteCrossConnectionPeering, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified peering from the ExpressRouteCrossConnection. +// Parameters: +// resourceGroupName - the name of the resource group. +// crossConnectionName - the name of the ExpressRouteCrossConnection. +// peeringName - the name of the peering. +func (client ExpressRouteCrossConnectionPeeringsClient) Delete(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result ExpressRouteCrossConnectionPeeringsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionPeeringsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, crossConnectionName, peeringName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client ExpressRouteCrossConnectionPeeringsClient) DeletePreparer(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "crossConnectionName": autorest.Encode("path", crossConnectionName), + "peeringName": autorest.Encode("path", peeringName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCrossConnectionPeeringsClient) DeleteSender(req *http.Request) (future ExpressRouteCrossConnectionPeeringsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client ExpressRouteCrossConnectionPeeringsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified peering for the ExpressRouteCrossConnection. +// Parameters: +// resourceGroupName - the name of the resource group. +// crossConnectionName - the name of the ExpressRouteCrossConnection. +// peeringName - the name of the peering. +func (client ExpressRouteCrossConnectionPeeringsClient) Get(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result ExpressRouteCrossConnectionPeering, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionPeeringsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, crossConnectionName, peeringName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ExpressRouteCrossConnectionPeeringsClient) GetPreparer(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "crossConnectionName": autorest.Encode("path", crossConnectionName), + "peeringName": autorest.Encode("path", peeringName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCrossConnectionPeeringsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ExpressRouteCrossConnectionPeeringsClient) GetResponder(resp *http.Response) (result ExpressRouteCrossConnectionPeering, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all peerings in a specified ExpressRouteCrossConnection. +// Parameters: +// resourceGroupName - the name of the resource group. +// crossConnectionName - the name of the ExpressRouteCrossConnection. +func (client ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context, resourceGroupName string, crossConnectionName string) (result ExpressRouteCrossConnectionPeeringListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionPeeringsClient.List") + defer func() { + sc := -1 + if result.erccpl.Response.Response != nil { + sc = result.erccpl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, crossConnectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.erccpl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "List", resp, "Failure sending request") + return + } + + result.erccpl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "List", resp, "Failure responding to request") + return + } + if result.erccpl.hasNextLink() && result.erccpl.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ExpressRouteCrossConnectionPeeringsClient) ListPreparer(ctx context.Context, resourceGroupName string, crossConnectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "crossConnectionName": autorest.Encode("path", crossConnectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCrossConnectionPeeringsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ExpressRouteCrossConnectionPeeringsClient) ListResponder(resp *http.Response) (result ExpressRouteCrossConnectionPeeringList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client ExpressRouteCrossConnectionPeeringsClient) listNextResults(ctx context.Context, lastResults ExpressRouteCrossConnectionPeeringList) (result ExpressRouteCrossConnectionPeeringList, err error) { + req, err := lastResults.expressRouteCrossConnectionPeeringListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ExpressRouteCrossConnectionPeeringsClient) ListComplete(ctx context.Context, resourceGroupName string, crossConnectionName string) (result ExpressRouteCrossConnectionPeeringListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionPeeringsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, crossConnectionName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/expressroutecrossconnections.go b/services/network/mgmt/2020-07-01/network/expressroutecrossconnections.go new file mode 100644 index 000000000000..32247f825239 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/expressroutecrossconnections.go @@ -0,0 +1,746 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ExpressRouteCrossConnectionsClient is the network Client +type ExpressRouteCrossConnectionsClient struct { + BaseClient +} + +// NewExpressRouteCrossConnectionsClient creates an instance of the ExpressRouteCrossConnectionsClient client. +func NewExpressRouteCrossConnectionsClient(subscriptionID string) ExpressRouteCrossConnectionsClient { + return NewExpressRouteCrossConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewExpressRouteCrossConnectionsClientWithBaseURI creates an instance of the ExpressRouteCrossConnectionsClient +// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI +// (sovereign clouds, Azure stack). +func NewExpressRouteCrossConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionsClient { + return ExpressRouteCrossConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate update the specified ExpressRouteCrossConnection. +// Parameters: +// resourceGroupName - the name of the resource group. +// crossConnectionName - the name of the ExpressRouteCrossConnection. +// parameters - parameters supplied to the update express route crossConnection operation. +func (client ExpressRouteCrossConnectionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, crossConnectionName string, parameters ExpressRouteCrossConnection) (result ExpressRouteCrossConnectionsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, crossConnectionName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client ExpressRouteCrossConnectionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, crossConnectionName string, parameters ExpressRouteCrossConnection) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "crossConnectionName": autorest.Encode("path", crossConnectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCrossConnectionsClient) CreateOrUpdateSender(req *http.Request) (future ExpressRouteCrossConnectionsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client ExpressRouteCrossConnectionsClient) CreateOrUpdateResponder(resp *http.Response) (result ExpressRouteCrossConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Get gets details about the specified ExpressRouteCrossConnection. +// Parameters: +// resourceGroupName - the name of the resource group (peering location of the circuit). +// crossConnectionName - the name of the ExpressRouteCrossConnection (service key of the circuit). +func (client ExpressRouteCrossConnectionsClient) Get(ctx context.Context, resourceGroupName string, crossConnectionName string) (result ExpressRouteCrossConnection, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, crossConnectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ExpressRouteCrossConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, crossConnectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "crossConnectionName": autorest.Encode("path", crossConnectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCrossConnectionsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ExpressRouteCrossConnectionsClient) GetResponder(resp *http.Response) (result ExpressRouteCrossConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List retrieves all the ExpressRouteCrossConnections in a subscription. +func (client ExpressRouteCrossConnectionsClient) List(ctx context.Context) (result ExpressRouteCrossConnectionListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionsClient.List") + defer func() { + sc := -1 + if result.ercclr.Response.Response != nil { + sc = result.ercclr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.ercclr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "List", resp, "Failure sending request") + return + } + + result.ercclr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "List", resp, "Failure responding to request") + return + } + if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ExpressRouteCrossConnectionsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteCrossConnections", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCrossConnectionsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ExpressRouteCrossConnectionsClient) ListResponder(resp *http.Response) (result ExpressRouteCrossConnectionListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client ExpressRouteCrossConnectionsClient) listNextResults(ctx context.Context, lastResults ExpressRouteCrossConnectionListResult) (result ExpressRouteCrossConnectionListResult, err error) { + req, err := lastResults.expressRouteCrossConnectionListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ExpressRouteCrossConnectionsClient) ListComplete(ctx context.Context) (result ExpressRouteCrossConnectionListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} + +// ListArpTable gets the currently advertised ARP table associated with the express route cross connection in a +// resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// crossConnectionName - the name of the ExpressRouteCrossConnection. +// peeringName - the name of the peering. +// devicePath - the path of the device. +func (client ExpressRouteCrossConnectionsClient) ListArpTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result ExpressRouteCrossConnectionsListArpTableFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionsClient.ListArpTable") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListArpTablePreparer(ctx, resourceGroupName, crossConnectionName, peeringName, devicePath) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListArpTable", nil, "Failure preparing request") + return + } + + result, err = client.ListArpTableSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListArpTable", result.Response(), "Failure sending request") + return + } + + return +} + +// ListArpTablePreparer prepares the ListArpTable request. +func (client ExpressRouteCrossConnectionsClient) ListArpTablePreparer(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "crossConnectionName": autorest.Encode("path", crossConnectionName), + "devicePath": autorest.Encode("path", devicePath), + "peeringName": autorest.Encode("path", peeringName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/arpTables/{devicePath}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListArpTableSender sends the ListArpTable request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCrossConnectionsClient) ListArpTableSender(req *http.Request) (future ExpressRouteCrossConnectionsListArpTableFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// ListArpTableResponder handles the response to the ListArpTable request. The method always +// closes the http.Response Body. +func (client ExpressRouteCrossConnectionsClient) ListArpTableResponder(resp *http.Response) (result ExpressRouteCircuitsArpTableListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByResourceGroup retrieves all the ExpressRouteCrossConnections in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ExpressRouteCrossConnectionListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.ercclr.Response.Response != nil { + sc = result.ercclr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.ercclr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.ercclr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.ercclr.hasNextLink() && result.ercclr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client ExpressRouteCrossConnectionsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCrossConnectionsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client ExpressRouteCrossConnectionsClient) ListByResourceGroupResponder(resp *http.Response) (result ExpressRouteCrossConnectionListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client ExpressRouteCrossConnectionsClient) listByResourceGroupNextResults(ctx context.Context, lastResults ExpressRouteCrossConnectionListResult) (result ExpressRouteCrossConnectionListResult, err error) { + req, err := lastResults.expressRouteCrossConnectionListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client ExpressRouteCrossConnectionsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ExpressRouteCrossConnectionListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// ListRoutesTable gets the currently advertised routes table associated with the express route cross connection in a +// resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// crossConnectionName - the name of the ExpressRouteCrossConnection. +// peeringName - the name of the peering. +// devicePath - the path of the device. +func (client ExpressRouteCrossConnectionsClient) ListRoutesTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result ExpressRouteCrossConnectionsListRoutesTableFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionsClient.ListRoutesTable") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListRoutesTablePreparer(ctx, resourceGroupName, crossConnectionName, peeringName, devicePath) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListRoutesTable", nil, "Failure preparing request") + return + } + + result, err = client.ListRoutesTableSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListRoutesTable", result.Response(), "Failure sending request") + return + } + + return +} + +// ListRoutesTablePreparer prepares the ListRoutesTable request. +func (client ExpressRouteCrossConnectionsClient) ListRoutesTablePreparer(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "crossConnectionName": autorest.Encode("path", crossConnectionName), + "devicePath": autorest.Encode("path", devicePath), + "peeringName": autorest.Encode("path", peeringName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/routeTables/{devicePath}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListRoutesTableSender sends the ListRoutesTable request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCrossConnectionsClient) ListRoutesTableSender(req *http.Request) (future ExpressRouteCrossConnectionsListRoutesTableFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// ListRoutesTableResponder handles the response to the ListRoutesTable request. The method always +// closes the http.Response Body. +func (client ExpressRouteCrossConnectionsClient) ListRoutesTableResponder(resp *http.Response) (result ExpressRouteCircuitsRoutesTableListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListRoutesTableSummary gets the route table summary associated with the express route cross connection in a resource +// group. +// Parameters: +// resourceGroupName - the name of the resource group. +// crossConnectionName - the name of the ExpressRouteCrossConnection. +// peeringName - the name of the peering. +// devicePath - the path of the device. +func (client ExpressRouteCrossConnectionsClient) ListRoutesTableSummary(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result ExpressRouteCrossConnectionsListRoutesTableSummaryFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionsClient.ListRoutesTableSummary") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListRoutesTableSummaryPreparer(ctx, resourceGroupName, crossConnectionName, peeringName, devicePath) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListRoutesTableSummary", nil, "Failure preparing request") + return + } + + result, err = client.ListRoutesTableSummarySender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListRoutesTableSummary", result.Response(), "Failure sending request") + return + } + + return +} + +// ListRoutesTableSummaryPreparer prepares the ListRoutesTableSummary request. +func (client ExpressRouteCrossConnectionsClient) ListRoutesTableSummaryPreparer(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "crossConnectionName": autorest.Encode("path", crossConnectionName), + "devicePath": autorest.Encode("path", devicePath), + "peeringName": autorest.Encode("path", peeringName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/routeTablesSummary/{devicePath}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListRoutesTableSummarySender sends the ListRoutesTableSummary request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCrossConnectionsClient) ListRoutesTableSummarySender(req *http.Request) (future ExpressRouteCrossConnectionsListRoutesTableSummaryFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// ListRoutesTableSummaryResponder handles the response to the ListRoutesTableSummary request. The method always +// closes the http.Response Body. +func (client ExpressRouteCrossConnectionsClient) ListRoutesTableSummaryResponder(resp *http.Response) (result ExpressRouteCrossConnectionsRoutesTableSummaryListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// UpdateTags updates an express route cross connection tags. +// Parameters: +// resourceGroupName - the name of the resource group. +// crossConnectionName - the name of the cross connection. +// crossConnectionParameters - parameters supplied to update express route cross connection tags. +func (client ExpressRouteCrossConnectionsClient) UpdateTags(ctx context.Context, resourceGroupName string, crossConnectionName string, crossConnectionParameters TagsObject) (result ExpressRouteCrossConnection, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionsClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, crossConnectionName, crossConnectionParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client ExpressRouteCrossConnectionsClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, crossConnectionName string, crossConnectionParameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "crossConnectionName": autorest.Encode("path", crossConnectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}", pathParameters), + autorest.WithJSON(crossConnectionParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteCrossConnectionsClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client ExpressRouteCrossConnectionsClient) UpdateTagsResponder(resp *http.Response) (result ExpressRouteCrossConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/expressroutegateways.go b/services/network/mgmt/2020-07-01/network/expressroutegateways.go new file mode 100644 index 000000000000..84fd228aa0ab --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/expressroutegateways.go @@ -0,0 +1,426 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ExpressRouteGatewaysClient is the network Client +type ExpressRouteGatewaysClient struct { + BaseClient +} + +// NewExpressRouteGatewaysClient creates an instance of the ExpressRouteGatewaysClient client. +func NewExpressRouteGatewaysClient(subscriptionID string) ExpressRouteGatewaysClient { + return NewExpressRouteGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewExpressRouteGatewaysClientWithBaseURI creates an instance of the ExpressRouteGatewaysClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewExpressRouteGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteGatewaysClient { + return ExpressRouteGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a ExpressRoute gateway in a specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// expressRouteGatewayName - the name of the ExpressRoute gateway. +// putExpressRouteGatewayParameters - parameters required in an ExpressRoute gateway PUT operation. +func (client ExpressRouteGatewaysClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, putExpressRouteGatewayParameters ExpressRouteGateway) (result ExpressRouteGatewaysCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteGatewaysClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: putExpressRouteGatewayParameters, + Constraints: []validation.Constraint{{Target: "putExpressRouteGatewayParameters.ExpressRouteGatewayProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "putExpressRouteGatewayParameters.ExpressRouteGatewayProperties.VirtualHub", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { + return result, validation.NewError("network.ExpressRouteGatewaysClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, expressRouteGatewayName, putExpressRouteGatewayParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client ExpressRouteGatewaysClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, putExpressRouteGatewayParameters ExpressRouteGateway) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "expressRouteGatewayName": autorest.Encode("path", expressRouteGatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + putExpressRouteGatewayParameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}", pathParameters), + autorest.WithJSON(putExpressRouteGatewayParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteGatewaysClient) CreateOrUpdateSender(req *http.Request) (future ExpressRouteGatewaysCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client ExpressRouteGatewaysClient) CreateOrUpdateResponder(resp *http.Response) (result ExpressRouteGateway, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be +// deleted when there are no connection subresources. +// Parameters: +// resourceGroupName - the name of the resource group. +// expressRouteGatewayName - the name of the ExpressRoute gateway. +func (client ExpressRouteGatewaysClient) Delete(ctx context.Context, resourceGroupName string, expressRouteGatewayName string) (result ExpressRouteGatewaysDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteGatewaysClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, expressRouteGatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client ExpressRouteGatewaysClient) DeletePreparer(ctx context.Context, resourceGroupName string, expressRouteGatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "expressRouteGatewayName": autorest.Encode("path", expressRouteGatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteGatewaysClient) DeleteSender(req *http.Request) (future ExpressRouteGatewaysDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client ExpressRouteGatewaysClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get fetches the details of a ExpressRoute gateway in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// expressRouteGatewayName - the name of the ExpressRoute gateway. +func (client ExpressRouteGatewaysClient) Get(ctx context.Context, resourceGroupName string, expressRouteGatewayName string) (result ExpressRouteGateway, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteGatewaysClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, expressRouteGatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ExpressRouteGatewaysClient) GetPreparer(ctx context.Context, resourceGroupName string, expressRouteGatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "expressRouteGatewayName": autorest.Encode("path", expressRouteGatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteGatewaysClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ExpressRouteGatewaysClient) GetResponder(resp *http.Response) (result ExpressRouteGateway, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByResourceGroup lists ExpressRoute gateways in a given resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client ExpressRouteGatewaysClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ExpressRouteGatewayList, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteGatewaysClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client ExpressRouteGatewaysClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteGatewaysClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client ExpressRouteGatewaysClient) ListByResourceGroupResponder(resp *http.Response) (result ExpressRouteGatewayList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListBySubscription lists ExpressRoute gateways under a given subscription. +func (client ExpressRouteGatewaysClient) ListBySubscription(ctx context.Context) (result ExpressRouteGatewayList, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteGatewaysClient.ListBySubscription") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListBySubscriptionPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListBySubscription", nil, "Failure preparing request") + return + } + + resp, err := client.ListBySubscriptionSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListBySubscription", resp, "Failure sending request") + return + } + + result, err = client.ListBySubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListBySubscription", resp, "Failure responding to request") + return + } + + return +} + +// ListBySubscriptionPreparer prepares the ListBySubscription request. +func (client ExpressRouteGatewaysClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteGateways", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListBySubscriptionSender sends the ListBySubscription request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteGatewaysClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always +// closes the http.Response Body. +func (client ExpressRouteGatewaysClient) ListBySubscriptionResponder(resp *http.Response) (result ExpressRouteGatewayList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/expressroutelinks.go b/services/network/mgmt/2020-07-01/network/expressroutelinks.go new file mode 100644 index 000000000000..9b7376960e63 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/expressroutelinks.go @@ -0,0 +1,239 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ExpressRouteLinksClient is the network Client +type ExpressRouteLinksClient struct { + BaseClient +} + +// NewExpressRouteLinksClient creates an instance of the ExpressRouteLinksClient client. +func NewExpressRouteLinksClient(subscriptionID string) ExpressRouteLinksClient { + return NewExpressRouteLinksClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewExpressRouteLinksClientWithBaseURI creates an instance of the ExpressRouteLinksClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewExpressRouteLinksClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteLinksClient { + return ExpressRouteLinksClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get retrieves the specified ExpressRouteLink resource. +// Parameters: +// resourceGroupName - the name of the resource group. +// expressRoutePortName - the name of the ExpressRoutePort resource. +// linkName - the name of the ExpressRouteLink resource. +func (client ExpressRouteLinksClient) Get(ctx context.Context, resourceGroupName string, expressRoutePortName string, linkName string) (result ExpressRouteLink, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteLinksClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, expressRoutePortName, linkName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ExpressRouteLinksClient) GetPreparer(ctx context.Context, resourceGroupName string, expressRoutePortName string, linkName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "expressRoutePortName": autorest.Encode("path", expressRoutePortName), + "linkName": autorest.Encode("path", linkName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}/links/{linkName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteLinksClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ExpressRouteLinksClient) GetResponder(resp *http.Response) (result ExpressRouteLink, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List retrieve the ExpressRouteLink sub-resources of the specified ExpressRoutePort resource. +// Parameters: +// resourceGroupName - the name of the resource group. +// expressRoutePortName - the name of the ExpressRoutePort resource. +func (client ExpressRouteLinksClient) List(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result ExpressRouteLinkListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteLinksClient.List") + defer func() { + sc := -1 + if result.erllr.Response.Response != nil { + sc = result.erllr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, expressRoutePortName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.erllr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "List", resp, "Failure sending request") + return + } + + result.erllr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "List", resp, "Failure responding to request") + return + } + if result.erllr.hasNextLink() && result.erllr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ExpressRouteLinksClient) ListPreparer(ctx context.Context, resourceGroupName string, expressRoutePortName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "expressRoutePortName": autorest.Encode("path", expressRoutePortName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}/links", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteLinksClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ExpressRouteLinksClient) ListResponder(resp *http.Response) (result ExpressRouteLinkListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client ExpressRouteLinksClient) listNextResults(ctx context.Context, lastResults ExpressRouteLinkListResult) (result ExpressRouteLinkListResult, err error) { + req, err := lastResults.expressRouteLinkListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ExpressRouteLinksClient) ListComplete(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result ExpressRouteLinkListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteLinksClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, expressRoutePortName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/expressrouteports.go b/services/network/mgmt/2020-07-01/network/expressrouteports.go new file mode 100644 index 000000000000..e21545a37281 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/expressrouteports.go @@ -0,0 +1,666 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ExpressRoutePortsClient is the network Client +type ExpressRoutePortsClient struct { + BaseClient +} + +// NewExpressRoutePortsClient creates an instance of the ExpressRoutePortsClient client. +func NewExpressRoutePortsClient(subscriptionID string) ExpressRoutePortsClient { + return NewExpressRoutePortsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewExpressRoutePortsClientWithBaseURI creates an instance of the ExpressRoutePortsClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewExpressRoutePortsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRoutePortsClient { + return ExpressRoutePortsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates the specified ExpressRoutePort resource. +// Parameters: +// resourceGroupName - the name of the resource group. +// expressRoutePortName - the name of the ExpressRoutePort resource. +// parameters - parameters supplied to the create ExpressRoutePort operation. +func (client ExpressRoutePortsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, expressRoutePortName string, parameters ExpressRoutePort) (result ExpressRoutePortsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, expressRoutePortName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client ExpressRoutePortsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, expressRoutePortName string, parameters ExpressRoutePort) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "expressRoutePortName": autorest.Encode("path", expressRoutePortName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRoutePortsClient) CreateOrUpdateSender(req *http.Request) (future ExpressRoutePortsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client ExpressRoutePortsClient) CreateOrUpdateResponder(resp *http.Response) (result ExpressRoutePort, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified ExpressRoutePort resource. +// Parameters: +// resourceGroupName - the name of the resource group. +// expressRoutePortName - the name of the ExpressRoutePort resource. +func (client ExpressRoutePortsClient) Delete(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result ExpressRoutePortsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, expressRoutePortName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client ExpressRoutePortsClient) DeletePreparer(ctx context.Context, resourceGroupName string, expressRoutePortName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "expressRoutePortName": autorest.Encode("path", expressRoutePortName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRoutePortsClient) DeleteSender(req *http.Request) (future ExpressRoutePortsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client ExpressRoutePortsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// GenerateLOA generate a letter of authorization for the requested ExpressRoutePort resource. +// Parameters: +// resourceGroupName - the name of the resource group. +// expressRoutePortName - the name of ExpressRoutePort. +// request - request parameters supplied to generate a letter of authorization. +func (client ExpressRoutePortsClient) GenerateLOA(ctx context.Context, resourceGroupName string, expressRoutePortName string, request GenerateExpressRoutePortsLOARequest) (result GenerateExpressRoutePortsLOAResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortsClient.GenerateLOA") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: request, + Constraints: []validation.Constraint{{Target: "request.CustomerName", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("network.ExpressRoutePortsClient", "GenerateLOA", err.Error()) + } + + req, err := client.GenerateLOAPreparer(ctx, resourceGroupName, expressRoutePortName, request) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "GenerateLOA", nil, "Failure preparing request") + return + } + + resp, err := client.GenerateLOASender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "GenerateLOA", resp, "Failure sending request") + return + } + + result, err = client.GenerateLOAResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "GenerateLOA", resp, "Failure responding to request") + return + } + + return +} + +// GenerateLOAPreparer prepares the GenerateLOA request. +func (client ExpressRoutePortsClient) GenerateLOAPreparer(ctx context.Context, resourceGroupName string, expressRoutePortName string, request GenerateExpressRoutePortsLOARequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "expressRoutePortName": autorest.Encode("path", expressRoutePortName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRoutePorts/{expressRoutePortName}/generateLoa", pathParameters), + autorest.WithJSON(request), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GenerateLOASender sends the GenerateLOA request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRoutePortsClient) GenerateLOASender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GenerateLOAResponder handles the response to the GenerateLOA request. The method always +// closes the http.Response Body. +func (client ExpressRoutePortsClient) GenerateLOAResponder(resp *http.Response) (result GenerateExpressRoutePortsLOAResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Get retrieves the requested ExpressRoutePort resource. +// Parameters: +// resourceGroupName - the name of the resource group. +// expressRoutePortName - the name of ExpressRoutePort. +func (client ExpressRoutePortsClient) Get(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result ExpressRoutePort, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, expressRoutePortName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ExpressRoutePortsClient) GetPreparer(ctx context.Context, resourceGroupName string, expressRoutePortName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "expressRoutePortName": autorest.Encode("path", expressRoutePortName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRoutePortsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ExpressRoutePortsClient) GetResponder(resp *http.Response) (result ExpressRoutePort, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List list all the ExpressRoutePort resources in the specified subscription. +func (client ExpressRoutePortsClient) List(ctx context.Context) (result ExpressRoutePortListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortsClient.List") + defer func() { + sc := -1 + if result.erplr.Response.Response != nil { + sc = result.erplr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.erplr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "List", resp, "Failure sending request") + return + } + + result.erplr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "List", resp, "Failure responding to request") + return + } + if result.erplr.hasNextLink() && result.erplr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ExpressRoutePortsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePorts", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRoutePortsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ExpressRoutePortsClient) ListResponder(resp *http.Response) (result ExpressRoutePortListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client ExpressRoutePortsClient) listNextResults(ctx context.Context, lastResults ExpressRoutePortListResult) (result ExpressRoutePortListResult, err error) { + req, err := lastResults.expressRoutePortListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ExpressRoutePortsClient) ListComplete(ctx context.Context) (result ExpressRoutePortListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} + +// ListByResourceGroup list all the ExpressRoutePort resources in the specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ExpressRoutePortListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.erplr.Response.Response != nil { + sc = result.erplr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.erplr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.erplr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.erplr.hasNextLink() && result.erplr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client ExpressRoutePortsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRoutePortsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client ExpressRoutePortsClient) ListByResourceGroupResponder(resp *http.Response) (result ExpressRoutePortListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client ExpressRoutePortsClient) listByResourceGroupNextResults(ctx context.Context, lastResults ExpressRoutePortListResult) (result ExpressRoutePortListResult, err error) { + req, err := lastResults.expressRoutePortListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client ExpressRoutePortsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ExpressRoutePortListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// UpdateTags update ExpressRoutePort tags. +// Parameters: +// resourceGroupName - the name of the resource group. +// expressRoutePortName - the name of the ExpressRoutePort resource. +// parameters - parameters supplied to update ExpressRoutePort resource tags. +func (client ExpressRoutePortsClient) UpdateTags(ctx context.Context, resourceGroupName string, expressRoutePortName string, parameters TagsObject) (result ExpressRoutePort, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortsClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, expressRoutePortName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client ExpressRoutePortsClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, expressRoutePortName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "expressRoutePortName": autorest.Encode("path", expressRoutePortName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRoutePortsClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client ExpressRoutePortsClient) UpdateTagsResponder(resp *http.Response) (result ExpressRoutePort, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/expressrouteportslocations.go b/services/network/mgmt/2020-07-01/network/expressrouteportslocations.go new file mode 100644 index 000000000000..4cb4171b1568 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/expressrouteportslocations.go @@ -0,0 +1,232 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ExpressRoutePortsLocationsClient is the network Client +type ExpressRoutePortsLocationsClient struct { + BaseClient +} + +// NewExpressRoutePortsLocationsClient creates an instance of the ExpressRoutePortsLocationsClient client. +func NewExpressRoutePortsLocationsClient(subscriptionID string) ExpressRoutePortsLocationsClient { + return NewExpressRoutePortsLocationsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewExpressRoutePortsLocationsClientWithBaseURI creates an instance of the ExpressRoutePortsLocationsClient client +// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign +// clouds, Azure stack). +func NewExpressRoutePortsLocationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRoutePortsLocationsClient { + return ExpressRoutePortsLocationsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get retrieves a single ExpressRoutePort peering location, including the list of available bandwidths available at +// said peering location. +// Parameters: +// locationName - name of the requested ExpressRoutePort peering location. +func (client ExpressRoutePortsLocationsClient) Get(ctx context.Context, locationName string) (result ExpressRoutePortsLocation, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortsLocationsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, locationName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ExpressRoutePortsLocationsClient) GetPreparer(ctx context.Context, locationName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "locationName": autorest.Encode("path", locationName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations/{locationName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRoutePortsLocationsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ExpressRoutePortsLocationsClient) GetResponder(resp *http.Response) (result ExpressRoutePortsLocation, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List retrieves all ExpressRoutePort peering locations. Does not return available bandwidths for each location. +// Available bandwidths can only be obtained when retrieving a specific peering location. +func (client ExpressRoutePortsLocationsClient) List(ctx context.Context) (result ExpressRoutePortsLocationListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortsLocationsClient.List") + defer func() { + sc := -1 + if result.erpllr.Response.Response != nil { + sc = result.erpllr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.erpllr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "List", resp, "Failure sending request") + return + } + + result.erpllr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "List", resp, "Failure responding to request") + return + } + if result.erpllr.hasNextLink() && result.erpllr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ExpressRoutePortsLocationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRoutePortsLocationsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ExpressRoutePortsLocationsClient) ListResponder(resp *http.Response) (result ExpressRoutePortsLocationListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client ExpressRoutePortsLocationsClient) listNextResults(ctx context.Context, lastResults ExpressRoutePortsLocationListResult) (result ExpressRoutePortsLocationListResult, err error) { + req, err := lastResults.expressRoutePortsLocationListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ExpressRoutePortsLocationsClient) ListComplete(ctx context.Context) (result ExpressRoutePortsLocationListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortsLocationsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} diff --git a/services/network/mgmt/2020-07-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2020-07-01/network/expressrouteserviceproviders.go new file mode 100644 index 000000000000..d9b82de16a5b --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/expressrouteserviceproviders.go @@ -0,0 +1,156 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ExpressRouteServiceProvidersClient is the network Client +type ExpressRouteServiceProvidersClient struct { + BaseClient +} + +// NewExpressRouteServiceProvidersClient creates an instance of the ExpressRouteServiceProvidersClient client. +func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteServiceProvidersClient { + return NewExpressRouteServiceProvidersClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient +// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI +// (sovereign clouds, Azure stack). +func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient { + return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List gets all the available express route service providers. +func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (result ExpressRouteServiceProviderListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteServiceProvidersClient.List") + defer func() { + sc := -1 + if result.ersplr.Response.Response != nil { + sc = result.ersplr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.ersplr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure sending request") + return + } + + result.ersplr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request") + return + } + if result.ersplr.hasNextLink() && result.ersplr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ExpressRouteServiceProvidersClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteServiceProviders", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ExpressRouteServiceProvidersClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ExpressRouteServiceProvidersClient) ListResponder(resp *http.Response) (result ExpressRouteServiceProviderListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Context, lastResults ExpressRouteServiceProviderListResult) (result ExpressRouteServiceProviderListResult, err error) { + req, err := lastResults.expressRouteServiceProviderListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ExpressRouteServiceProvidersClient) ListComplete(ctx context.Context) (result ExpressRouteServiceProviderListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteServiceProvidersClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} diff --git a/services/network/mgmt/2020-07-01/network/firewallpolicies.go b/services/network/mgmt/2020-07-01/network/firewallpolicies.go new file mode 100644 index 000000000000..d27477074420 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/firewallpolicies.go @@ -0,0 +1,505 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// FirewallPoliciesClient is the network Client +type FirewallPoliciesClient struct { + BaseClient +} + +// NewFirewallPoliciesClient creates an instance of the FirewallPoliciesClient client. +func NewFirewallPoliciesClient(subscriptionID string) FirewallPoliciesClient { + return NewFirewallPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewFirewallPoliciesClientWithBaseURI creates an instance of the FirewallPoliciesClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewFirewallPoliciesClientWithBaseURI(baseURI string, subscriptionID string) FirewallPoliciesClient { + return FirewallPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates the specified Firewall Policy. +// Parameters: +// resourceGroupName - the name of the resource group. +// firewallPolicyName - the name of the Firewall Policy. +// parameters - parameters supplied to the create or update Firewall Policy operation. +func (client FirewallPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, firewallPolicyName string, parameters FirewallPolicy) (result FirewallPoliciesCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPoliciesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, firewallPolicyName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client FirewallPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, firewallPolicyName string, parameters FirewallPolicy) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "firewallPolicyName": autorest.Encode("path", firewallPolicyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client FirewallPoliciesClient) CreateOrUpdateSender(req *http.Request) (future FirewallPoliciesCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client FirewallPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result FirewallPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified Firewall Policy. +// Parameters: +// resourceGroupName - the name of the resource group. +// firewallPolicyName - the name of the Firewall Policy. +func (client FirewallPoliciesClient) Delete(ctx context.Context, resourceGroupName string, firewallPolicyName string) (result FirewallPoliciesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPoliciesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, firewallPolicyName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client FirewallPoliciesClient) DeletePreparer(ctx context.Context, resourceGroupName string, firewallPolicyName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "firewallPolicyName": autorest.Encode("path", firewallPolicyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client FirewallPoliciesClient) DeleteSender(req *http.Request) (future FirewallPoliciesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client FirewallPoliciesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified Firewall Policy. +// Parameters: +// resourceGroupName - the name of the resource group. +// firewallPolicyName - the name of the Firewall Policy. +// expand - expands referenced resources. +func (client FirewallPoliciesClient) Get(ctx context.Context, resourceGroupName string, firewallPolicyName string, expand string) (result FirewallPolicy, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPoliciesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, firewallPolicyName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client FirewallPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, firewallPolicyName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "firewallPolicyName": autorest.Encode("path", firewallPolicyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client FirewallPoliciesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client FirewallPoliciesClient) GetResponder(resp *http.Response) (result FirewallPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all Firewall Policies in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client FirewallPoliciesClient) List(ctx context.Context, resourceGroupName string) (result FirewallPolicyListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPoliciesClient.List") + defer func() { + sc := -1 + if result.fplr.Response.Response != nil { + sc = result.fplr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.fplr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "List", resp, "Failure sending request") + return + } + + result.fplr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "List", resp, "Failure responding to request") + return + } + if result.fplr.hasNextLink() && result.fplr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client FirewallPoliciesClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client FirewallPoliciesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client FirewallPoliciesClient) ListResponder(resp *http.Response) (result FirewallPolicyListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client FirewallPoliciesClient) listNextResults(ctx context.Context, lastResults FirewallPolicyListResult) (result FirewallPolicyListResult, err error) { + req, err := lastResults.firewallPolicyListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client FirewallPoliciesClient) ListComplete(ctx context.Context, resourceGroupName string) (result FirewallPolicyListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPoliciesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName) + return +} + +// ListAll gets all the Firewall Policies in a subscription. +func (client FirewallPoliciesClient) ListAll(ctx context.Context) (result FirewallPolicyListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPoliciesClient.ListAll") + defer func() { + sc := -1 + if result.fplr.Response.Response != nil { + sc = result.fplr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listAllNextResults + req, err := client.ListAllPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "ListAll", nil, "Failure preparing request") + return + } + + resp, err := client.ListAllSender(req) + if err != nil { + result.fplr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "ListAll", resp, "Failure sending request") + return + } + + result.fplr, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "ListAll", resp, "Failure responding to request") + return + } + if result.fplr.hasNextLink() && result.fplr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListAllPreparer prepares the ListAll request. +func (client FirewallPoliciesClient) ListAllPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/firewallPolicies", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAllSender sends the ListAll request. The method will close the +// http.Response Body if it receives an error. +func (client FirewallPoliciesClient) ListAllSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAllResponder handles the response to the ListAll request. The method always +// closes the http.Response Body. +func (client FirewallPoliciesClient) ListAllResponder(resp *http.Response) (result FirewallPolicyListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listAllNextResults retrieves the next set of results, if any. +func (client FirewallPoliciesClient) listAllNextResults(ctx context.Context, lastResults FirewallPolicyListResult) (result FirewallPolicyListResult, err error) { + req, err := lastResults.firewallPolicyListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listAllNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListAllSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listAllNextResults", resp, "Failure sending next results request") + } + result, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listAllNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListAllComplete enumerates all values, automatically crossing page boundaries as required. +func (client FirewallPoliciesClient) ListAllComplete(ctx context.Context) (result FirewallPolicyListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPoliciesClient.ListAll") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListAll(ctx) + return +} diff --git a/services/network/mgmt/2020-07-01/network/firewallpolicyrulecollectiongroups.go b/services/network/mgmt/2020-07-01/network/firewallpolicyrulecollectiongroups.go new file mode 100644 index 000000000000..cb9ad0966082 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/firewallpolicyrulecollectiongroups.go @@ -0,0 +1,410 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// FirewallPolicyRuleCollectionGroupsClient is the network Client +type FirewallPolicyRuleCollectionGroupsClient struct { + BaseClient +} + +// NewFirewallPolicyRuleCollectionGroupsClient creates an instance of the FirewallPolicyRuleCollectionGroupsClient +// client. +func NewFirewallPolicyRuleCollectionGroupsClient(subscriptionID string) FirewallPolicyRuleCollectionGroupsClient { + return NewFirewallPolicyRuleCollectionGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewFirewallPolicyRuleCollectionGroupsClientWithBaseURI creates an instance of the +// FirewallPolicyRuleCollectionGroupsClient client using a custom endpoint. Use this when interacting with an Azure +// cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewFirewallPolicyRuleCollectionGroupsClientWithBaseURI(baseURI string, subscriptionID string) FirewallPolicyRuleCollectionGroupsClient { + return FirewallPolicyRuleCollectionGroupsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates the specified FirewallPolicyRuleCollectionGroup. +// Parameters: +// resourceGroupName - the name of the resource group. +// firewallPolicyName - the name of the Firewall Policy. +// ruleCollectionGroupName - the name of the FirewallPolicyRuleCollectionGroup. +// parameters - parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. +func (client FirewallPolicyRuleCollectionGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, firewallPolicyName string, ruleCollectionGroupName string, parameters FirewallPolicyRuleCollectionGroup) (result FirewallPolicyRuleCollectionGroupsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPolicyRuleCollectionGroupsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.FirewallPolicyRuleCollectionGroupProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.FirewallPolicyRuleCollectionGroupProperties.Priority", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.FirewallPolicyRuleCollectionGroupProperties.Priority", Name: validation.InclusiveMaximum, Rule: int64(65000), Chain: nil}, + {Target: "parameters.FirewallPolicyRuleCollectionGroupProperties.Priority", Name: validation.InclusiveMinimum, Rule: int64(100), Chain: nil}, + }}, + }}}}}); err != nil { + return result, validation.NewError("network.FirewallPolicyRuleCollectionGroupsClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, firewallPolicyName, ruleCollectionGroupName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleCollectionGroupsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleCollectionGroupsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client FirewallPolicyRuleCollectionGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, firewallPolicyName string, ruleCollectionGroupName string, parameters FirewallPolicyRuleCollectionGroup) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "firewallPolicyName": autorest.Encode("path", firewallPolicyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "ruleCollectionGroupName": autorest.Encode("path", ruleCollectionGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + parameters.Type = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleCollectionGroups/{ruleCollectionGroupName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client FirewallPolicyRuleCollectionGroupsClient) CreateOrUpdateSender(req *http.Request) (future FirewallPolicyRuleCollectionGroupsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client FirewallPolicyRuleCollectionGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result FirewallPolicyRuleCollectionGroup, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified FirewallPolicyRuleCollectionGroup. +// Parameters: +// resourceGroupName - the name of the resource group. +// firewallPolicyName - the name of the Firewall Policy. +// ruleCollectionGroupName - the name of the FirewallPolicyRuleCollectionGroup. +func (client FirewallPolicyRuleCollectionGroupsClient) Delete(ctx context.Context, resourceGroupName string, firewallPolicyName string, ruleCollectionGroupName string) (result FirewallPolicyRuleCollectionGroupsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPolicyRuleCollectionGroupsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, firewallPolicyName, ruleCollectionGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleCollectionGroupsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleCollectionGroupsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client FirewallPolicyRuleCollectionGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, firewallPolicyName string, ruleCollectionGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "firewallPolicyName": autorest.Encode("path", firewallPolicyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "ruleCollectionGroupName": autorest.Encode("path", ruleCollectionGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleCollectionGroups/{ruleCollectionGroupName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client FirewallPolicyRuleCollectionGroupsClient) DeleteSender(req *http.Request) (future FirewallPolicyRuleCollectionGroupsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client FirewallPolicyRuleCollectionGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified FirewallPolicyRuleCollectionGroup. +// Parameters: +// resourceGroupName - the name of the resource group. +// firewallPolicyName - the name of the Firewall Policy. +// ruleCollectionGroupName - the name of the FirewallPolicyRuleCollectionGroup. +func (client FirewallPolicyRuleCollectionGroupsClient) Get(ctx context.Context, resourceGroupName string, firewallPolicyName string, ruleCollectionGroupName string) (result FirewallPolicyRuleCollectionGroup, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPolicyRuleCollectionGroupsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, firewallPolicyName, ruleCollectionGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleCollectionGroupsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleCollectionGroupsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleCollectionGroupsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client FirewallPolicyRuleCollectionGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, firewallPolicyName string, ruleCollectionGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "firewallPolicyName": autorest.Encode("path", firewallPolicyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "ruleCollectionGroupName": autorest.Encode("path", ruleCollectionGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleCollectionGroups/{ruleCollectionGroupName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client FirewallPolicyRuleCollectionGroupsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client FirewallPolicyRuleCollectionGroupsClient) GetResponder(resp *http.Response) (result FirewallPolicyRuleCollectionGroup, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. +// Parameters: +// resourceGroupName - the name of the resource group. +// firewallPolicyName - the name of the Firewall Policy. +func (client FirewallPolicyRuleCollectionGroupsClient) List(ctx context.Context, resourceGroupName string, firewallPolicyName string) (result FirewallPolicyRuleCollectionGroupListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPolicyRuleCollectionGroupsClient.List") + defer func() { + sc := -1 + if result.fprcglr.Response.Response != nil { + sc = result.fprcglr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, firewallPolicyName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleCollectionGroupsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.fprcglr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleCollectionGroupsClient", "List", resp, "Failure sending request") + return + } + + result.fprcglr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleCollectionGroupsClient", "List", resp, "Failure responding to request") + return + } + if result.fprcglr.hasNextLink() && result.fprcglr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client FirewallPolicyRuleCollectionGroupsClient) ListPreparer(ctx context.Context, resourceGroupName string, firewallPolicyName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "firewallPolicyName": autorest.Encode("path", firewallPolicyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleCollectionGroups", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client FirewallPolicyRuleCollectionGroupsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client FirewallPolicyRuleCollectionGroupsClient) ListResponder(resp *http.Response) (result FirewallPolicyRuleCollectionGroupListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client FirewallPolicyRuleCollectionGroupsClient) listNextResults(ctx context.Context, lastResults FirewallPolicyRuleCollectionGroupListResult) (result FirewallPolicyRuleCollectionGroupListResult, err error) { + req, err := lastResults.firewallPolicyRuleCollectionGroupListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.FirewallPolicyRuleCollectionGroupsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.FirewallPolicyRuleCollectionGroupsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleCollectionGroupsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client FirewallPolicyRuleCollectionGroupsClient) ListComplete(ctx context.Context, resourceGroupName string, firewallPolicyName string) (result FirewallPolicyRuleCollectionGroupListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPolicyRuleCollectionGroupsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, firewallPolicyName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/flowlogs.go b/services/network/mgmt/2020-07-01/network/flowlogs.go new file mode 100644 index 000000000000..9c5318de6b33 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/flowlogs.go @@ -0,0 +1,486 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// FlowLogsClient is the network Client +type FlowLogsClient struct { + BaseClient +} + +// NewFlowLogsClient creates an instance of the FlowLogsClient client. +func NewFlowLogsClient(subscriptionID string) FlowLogsClient { + return NewFlowLogsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewFlowLogsClientWithBaseURI creates an instance of the FlowLogsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewFlowLogsClientWithBaseURI(baseURI string, subscriptionID string) FlowLogsClient { + return FlowLogsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate create or update a flow log for the specified network security group. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkWatcherName - the name of the network watcher. +// flowLogName - the name of the flow log. +// parameters - parameters that define the create or update flow log resource. +func (client FlowLogsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, networkWatcherName string, flowLogName string, parameters FlowLog) (result FlowLogsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FlowLogsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.FlowLogPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.FlowLogPropertiesFormat.TargetResourceID", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.FlowLogPropertiesFormat.StorageID", Name: validation.Null, Rule: true, Chain: nil}, + }}}}}); err != nil { + return result, validation.NewError("network.FlowLogsClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, networkWatcherName, flowLogName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client FlowLogsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, flowLogName string, parameters FlowLog) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "flowLogName": autorest.Encode("path", flowLogName), + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client FlowLogsClient) CreateOrUpdateSender(req *http.Request) (future FlowLogsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client FlowLogsClient) CreateOrUpdateResponder(resp *http.Response) (result FlowLog, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified flow log resource. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkWatcherName - the name of the network watcher. +// flowLogName - the name of the flow log resource. +func (client FlowLogsClient) Delete(ctx context.Context, resourceGroupName string, networkWatcherName string, flowLogName string) (result FlowLogsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FlowLogsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, networkWatcherName, flowLogName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client FlowLogsClient) DeletePreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, flowLogName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "flowLogName": autorest.Encode("path", flowLogName), + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client FlowLogsClient) DeleteSender(req *http.Request) (future FlowLogsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client FlowLogsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets a flow log resource by name. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkWatcherName - the name of the network watcher. +// flowLogName - the name of the flow log resource. +func (client FlowLogsClient) Get(ctx context.Context, resourceGroupName string, networkWatcherName string, flowLogName string) (result FlowLog, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FlowLogsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, networkWatcherName, flowLogName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client FlowLogsClient) GetPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, flowLogName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "flowLogName": autorest.Encode("path", flowLogName), + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client FlowLogsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client FlowLogsClient) GetResponder(resp *http.Response) (result FlowLog, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all flow log resources for the specified Network Watcher. +// Parameters: +// resourceGroupName - the name of the resource group containing Network Watcher. +// networkWatcherName - the name of the Network Watcher resource. +func (client FlowLogsClient) List(ctx context.Context, resourceGroupName string, networkWatcherName string) (result FlowLogListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FlowLogsClient.List") + defer func() { + sc := -1 + if result.fllr.Response.Response != nil { + sc = result.fllr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, networkWatcherName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.fllr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "List", resp, "Failure sending request") + return + } + + result.fllr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "List", resp, "Failure responding to request") + return + } + if result.fllr.hasNextLink() && result.fllr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client FlowLogsClient) ListPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client FlowLogsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client FlowLogsClient) ListResponder(resp *http.Response) (result FlowLogListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client FlowLogsClient) listNextResults(ctx context.Context, lastResults FlowLogListResult) (result FlowLogListResult, err error) { + req, err := lastResults.flowLogListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.FlowLogsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.FlowLogsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client FlowLogsClient) ListComplete(ctx context.Context, resourceGroupName string, networkWatcherName string) (result FlowLogListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FlowLogsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, networkWatcherName) + return +} + +// UpdateTags update tags of the specified flow log. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkWatcherName - the name of the network watcher. +// flowLogName - the name of the flow log. +// parameters - parameters supplied to update flow log tags. +func (client FlowLogsClient) UpdateTags(ctx context.Context, resourceGroupName string, networkWatcherName string, flowLogName string, parameters TagsObject) (result FlowLog, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FlowLogsClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, networkWatcherName, flowLogName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client FlowLogsClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, flowLogName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "flowLogName": autorest.Encode("path", flowLogName), + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client FlowLogsClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client FlowLogsClient) UpdateTagsResponder(resp *http.Response) (result FlowLog, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/hubroutetables.go b/services/network/mgmt/2020-07-01/network/hubroutetables.go new file mode 100644 index 000000000000..6aea716f3f7d --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/hubroutetables.go @@ -0,0 +1,396 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// HubRouteTablesClient is the network Client +type HubRouteTablesClient struct { + BaseClient +} + +// NewHubRouteTablesClient creates an instance of the HubRouteTablesClient client. +func NewHubRouteTablesClient(subscriptionID string) HubRouteTablesClient { + return NewHubRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewHubRouteTablesClientWithBaseURI creates an instance of the HubRouteTablesClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewHubRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) HubRouteTablesClient { + return HubRouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. +// Parameters: +// resourceGroupName - the resource group name of the VirtualHub. +// virtualHubName - the name of the VirtualHub. +// routeTableName - the name of the RouteTable. +// routeTableParameters - parameters supplied to create or update RouteTable. +func (client HubRouteTablesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualHubName string, routeTableName string, routeTableParameters HubRouteTable) (result HubRouteTablesCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/HubRouteTablesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, virtualHubName, routeTableName, routeTableParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.HubRouteTablesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.HubRouteTablesClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client HubRouteTablesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, virtualHubName string, routeTableName string, routeTableParameters HubRouteTable) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "routeTableName": autorest.Encode("path", routeTableName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualHubName": autorest.Encode("path", virtualHubName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + routeTableParameters.Etag = nil + routeTableParameters.Type = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubRouteTables/{routeTableName}", pathParameters), + autorest.WithJSON(routeTableParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client HubRouteTablesClient) CreateOrUpdateSender(req *http.Request) (future HubRouteTablesCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client HubRouteTablesClient) CreateOrUpdateResponder(resp *http.Response) (result HubRouteTable, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes a RouteTable. +// Parameters: +// resourceGroupName - the resource group name of the RouteTable. +// virtualHubName - the name of the VirtualHub. +// routeTableName - the name of the RouteTable. +func (client HubRouteTablesClient) Delete(ctx context.Context, resourceGroupName string, virtualHubName string, routeTableName string) (result HubRouteTablesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/HubRouteTablesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, virtualHubName, routeTableName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.HubRouteTablesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.HubRouteTablesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client HubRouteTablesClient) DeletePreparer(ctx context.Context, resourceGroupName string, virtualHubName string, routeTableName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "routeTableName": autorest.Encode("path", routeTableName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualHubName": autorest.Encode("path", virtualHubName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubRouteTables/{routeTableName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client HubRouteTablesClient) DeleteSender(req *http.Request) (future HubRouteTablesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client HubRouteTablesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get retrieves the details of a RouteTable. +// Parameters: +// resourceGroupName - the resource group name of the VirtualHub. +// virtualHubName - the name of the VirtualHub. +// routeTableName - the name of the RouteTable. +func (client HubRouteTablesClient) Get(ctx context.Context, resourceGroupName string, virtualHubName string, routeTableName string) (result HubRouteTable, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/HubRouteTablesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, virtualHubName, routeTableName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.HubRouteTablesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.HubRouteTablesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.HubRouteTablesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client HubRouteTablesClient) GetPreparer(ctx context.Context, resourceGroupName string, virtualHubName string, routeTableName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "routeTableName": autorest.Encode("path", routeTableName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualHubName": autorest.Encode("path", virtualHubName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubRouteTables/{routeTableName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client HubRouteTablesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client HubRouteTablesClient) GetResponder(resp *http.Response) (result HubRouteTable, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List retrieves the details of all RouteTables. +// Parameters: +// resourceGroupName - the resource group name of the VirtualHub. +// virtualHubName - the name of the VirtualHub. +func (client HubRouteTablesClient) List(ctx context.Context, resourceGroupName string, virtualHubName string) (result ListHubRouteTablesResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/HubRouteTablesClient.List") + defer func() { + sc := -1 + if result.lhrtr.Response.Response != nil { + sc = result.lhrtr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, virtualHubName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.HubRouteTablesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.lhrtr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.HubRouteTablesClient", "List", resp, "Failure sending request") + return + } + + result.lhrtr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.HubRouteTablesClient", "List", resp, "Failure responding to request") + return + } + if result.lhrtr.hasNextLink() && result.lhrtr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client HubRouteTablesClient) ListPreparer(ctx context.Context, resourceGroupName string, virtualHubName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualHubName": autorest.Encode("path", virtualHubName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubRouteTables", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client HubRouteTablesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client HubRouteTablesClient) ListResponder(resp *http.Response) (result ListHubRouteTablesResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client HubRouteTablesClient) listNextResults(ctx context.Context, lastResults ListHubRouteTablesResult) (result ListHubRouteTablesResult, err error) { + req, err := lastResults.listHubRouteTablesResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.HubRouteTablesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.HubRouteTablesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.HubRouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client HubRouteTablesClient) ListComplete(ctx context.Context, resourceGroupName string, virtualHubName string) (result ListHubRouteTablesResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/HubRouteTablesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, virtualHubName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2020-07-01/network/hubvirtualnetworkconnections.go new file mode 100644 index 000000000000..c43896f9459e --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/hubvirtualnetworkconnections.go @@ -0,0 +1,397 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// HubVirtualNetworkConnectionsClient is the network Client +type HubVirtualNetworkConnectionsClient struct { + BaseClient +} + +// NewHubVirtualNetworkConnectionsClient creates an instance of the HubVirtualNetworkConnectionsClient client. +func NewHubVirtualNetworkConnectionsClient(subscriptionID string) HubVirtualNetworkConnectionsClient { + return NewHubVirtualNetworkConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewHubVirtualNetworkConnectionsClientWithBaseURI creates an instance of the HubVirtualNetworkConnectionsClient +// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI +// (sovereign clouds, Azure stack). +func NewHubVirtualNetworkConnectionsClientWithBaseURI(baseURI string, subscriptionID string) HubVirtualNetworkConnectionsClient { + return HubVirtualNetworkConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates a hub virtual network connection if it doesn't exist else updates the existing one. +// Parameters: +// resourceGroupName - the resource group name of the HubVirtualNetworkConnection. +// virtualHubName - the name of the VirtualHub. +// connectionName - the name of the HubVirtualNetworkConnection. +// hubVirtualNetworkConnectionParameters - parameters supplied to create or update a hub virtual network +// connection. +func (client HubVirtualNetworkConnectionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string, hubVirtualNetworkConnectionParameters HubVirtualNetworkConnection) (result HubVirtualNetworkConnectionsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/HubVirtualNetworkConnectionsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, virtualHubName, connectionName, hubVirtualNetworkConnectionParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client HubVirtualNetworkConnectionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string, hubVirtualNetworkConnectionParameters HubVirtualNetworkConnection) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "connectionName": autorest.Encode("path", connectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualHubName": autorest.Encode("path", virtualHubName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + hubVirtualNetworkConnectionParameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections/{connectionName}", pathParameters), + autorest.WithJSON(hubVirtualNetworkConnectionParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client HubVirtualNetworkConnectionsClient) CreateOrUpdateSender(req *http.Request) (future HubVirtualNetworkConnectionsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client HubVirtualNetworkConnectionsClient) CreateOrUpdateResponder(resp *http.Response) (result HubVirtualNetworkConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes a HubVirtualNetworkConnection. +// Parameters: +// resourceGroupName - the resource group name of the VirtualHub. +// virtualHubName - the name of the VirtualHub. +// connectionName - the name of the HubVirtualNetworkConnection. +func (client HubVirtualNetworkConnectionsClient) Delete(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (result HubVirtualNetworkConnectionsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/HubVirtualNetworkConnectionsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, virtualHubName, connectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client HubVirtualNetworkConnectionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "connectionName": autorest.Encode("path", connectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualHubName": autorest.Encode("path", virtualHubName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections/{connectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client HubVirtualNetworkConnectionsClient) DeleteSender(req *http.Request) (future HubVirtualNetworkConnectionsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client HubVirtualNetworkConnectionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get retrieves the details of a HubVirtualNetworkConnection. +// Parameters: +// resourceGroupName - the resource group name of the VirtualHub. +// virtualHubName - the name of the VirtualHub. +// connectionName - the name of the vpn connection. +func (client HubVirtualNetworkConnectionsClient) Get(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (result HubVirtualNetworkConnection, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/HubVirtualNetworkConnectionsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, virtualHubName, connectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client HubVirtualNetworkConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "connectionName": autorest.Encode("path", connectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualHubName": autorest.Encode("path", virtualHubName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections/{connectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client HubVirtualNetworkConnectionsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client HubVirtualNetworkConnectionsClient) GetResponder(resp *http.Response) (result HubVirtualNetworkConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List retrieves the details of all HubVirtualNetworkConnections. +// Parameters: +// resourceGroupName - the resource group name of the VirtualHub. +// virtualHubName - the name of the VirtualHub. +func (client HubVirtualNetworkConnectionsClient) List(ctx context.Context, resourceGroupName string, virtualHubName string) (result ListHubVirtualNetworkConnectionsResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/HubVirtualNetworkConnectionsClient.List") + defer func() { + sc := -1 + if result.lhvncr.Response.Response != nil { + sc = result.lhvncr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, virtualHubName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.lhvncr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "List", resp, "Failure sending request") + return + } + + result.lhvncr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "List", resp, "Failure responding to request") + return + } + if result.lhvncr.hasNextLink() && result.lhvncr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client HubVirtualNetworkConnectionsClient) ListPreparer(ctx context.Context, resourceGroupName string, virtualHubName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualHubName": autorest.Encode("path", virtualHubName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client HubVirtualNetworkConnectionsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client HubVirtualNetworkConnectionsClient) ListResponder(resp *http.Response) (result ListHubVirtualNetworkConnectionsResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client HubVirtualNetworkConnectionsClient) listNextResults(ctx context.Context, lastResults ListHubVirtualNetworkConnectionsResult) (result ListHubVirtualNetworkConnectionsResult, err error) { + req, err := lastResults.listHubVirtualNetworkConnectionsResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client HubVirtualNetworkConnectionsClient) ListComplete(ctx context.Context, resourceGroupName string, virtualHubName string) (result ListHubVirtualNetworkConnectionsResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/HubVirtualNetworkConnectionsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, virtualHubName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/inboundnatrules.go b/services/network/mgmt/2020-07-01/network/inboundnatrules.go new file mode 100644 index 000000000000..d20467a6ac1a --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/inboundnatrules.go @@ -0,0 +1,424 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// InboundNatRulesClient is the network Client +type InboundNatRulesClient struct { + BaseClient +} + +// NewInboundNatRulesClient creates an instance of the InboundNatRulesClient client. +func NewInboundNatRulesClient(subscriptionID string) InboundNatRulesClient { + return NewInboundNatRulesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewInboundNatRulesClientWithBaseURI(baseURI string, subscriptionID string) InboundNatRulesClient { + return InboundNatRulesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a load balancer inbound nat rule. +// Parameters: +// resourceGroupName - the name of the resource group. +// loadBalancerName - the name of the load balancer. +// inboundNatRuleName - the name of the inbound nat rule. +// inboundNatRuleParameters - parameters supplied to the create or update inbound nat rule operation. +func (client InboundNatRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, inboundNatRuleParameters InboundNatRule) (result InboundNatRulesCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InboundNatRulesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: inboundNatRuleParameters, + Constraints: []validation.Constraint{{Target: "inboundNatRuleParameters.InboundNatRulePropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "inboundNatRuleParameters.InboundNatRulePropertiesFormat.BackendIPConfiguration", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "inboundNatRuleParameters.InboundNatRulePropertiesFormat.BackendIPConfiguration.InterfaceIPConfigurationPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "inboundNatRuleParameters.InboundNatRulePropertiesFormat.BackendIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "inboundNatRuleParameters.InboundNatRulePropertiesFormat.BackendIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.ExtendedLocation", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "inboundNatRuleParameters.InboundNatRulePropertiesFormat.BackendIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.ExtendedLocation.Name", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "inboundNatRuleParameters.InboundNatRulePropertiesFormat.BackendIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.ExtendedLocation.Type", Name: validation.Null, Rule: true, Chain: nil}, + }}, + {Target: "inboundNatRuleParameters.InboundNatRulePropertiesFormat.BackendIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "inboundNatRuleParameters.InboundNatRulePropertiesFormat.BackendIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "inboundNatRuleParameters.InboundNatRulePropertiesFormat.BackendIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "inboundNatRuleParameters.InboundNatRulePropertiesFormat.BackendIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat.PublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}}}, + }}, + }}, + }}, + }}, + }}, + }}}}}); err != nil { + return result, validation.NewError("network.InboundNatRulesClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, loadBalancerName, inboundNatRuleName, inboundNatRuleParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client InboundNatRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, inboundNatRuleParameters InboundNatRule) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "inboundNatRuleName": autorest.Encode("path", inboundNatRuleName), + "loadBalancerName": autorest.Encode("path", loadBalancerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + inboundNatRuleParameters.Etag = nil + inboundNatRuleParameters.Type = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}", pathParameters), + autorest.WithJSON(inboundNatRuleParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client InboundNatRulesClient) CreateOrUpdateSender(req *http.Request) (future InboundNatRulesCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client InboundNatRulesClient) CreateOrUpdateResponder(resp *http.Response) (result InboundNatRule, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified load balancer inbound nat rule. +// Parameters: +// resourceGroupName - the name of the resource group. +// loadBalancerName - the name of the load balancer. +// inboundNatRuleName - the name of the inbound nat rule. +func (client InboundNatRulesClient) Delete(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string) (result InboundNatRulesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InboundNatRulesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, loadBalancerName, inboundNatRuleName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client InboundNatRulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "inboundNatRuleName": autorest.Encode("path", inboundNatRuleName), + "loadBalancerName": autorest.Encode("path", loadBalancerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client InboundNatRulesClient) DeleteSender(req *http.Request) (future InboundNatRulesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client InboundNatRulesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified load balancer inbound nat rule. +// Parameters: +// resourceGroupName - the name of the resource group. +// loadBalancerName - the name of the load balancer. +// inboundNatRuleName - the name of the inbound nat rule. +// expand - expands referenced resources. +func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, expand string) (result InboundNatRule, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InboundNatRulesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, loadBalancerName, inboundNatRuleName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client InboundNatRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "inboundNatRuleName": autorest.Encode("path", inboundNatRuleName), + "loadBalancerName": autorest.Encode("path", loadBalancerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client InboundNatRulesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client InboundNatRulesClient) GetResponder(resp *http.Response) (result InboundNatRule, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all the inbound nat rules in a load balancer. +// Parameters: +// resourceGroupName - the name of the resource group. +// loadBalancerName - the name of the load balancer. +func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result InboundNatRuleListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InboundNatRulesClient.List") + defer func() { + sc := -1 + if result.inrlr.Response.Response != nil { + sc = result.inrlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, loadBalancerName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.inrlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure sending request") + return + } + + result.inrlr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request") + return + } + if result.inrlr.hasNextLink() && result.inrlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client InboundNatRulesClient) ListPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "loadBalancerName": autorest.Encode("path", loadBalancerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client InboundNatRulesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client InboundNatRulesClient) ListResponder(resp *http.Response) (result InboundNatRuleListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastResults InboundNatRuleListResult) (result InboundNatRuleListResult, err error) { + req, err := lastResults.inboundNatRuleListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client InboundNatRulesClient) ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result InboundNatRuleListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InboundNatRulesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, loadBalancerName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/inboundsecurityrule.go b/services/network/mgmt/2020-07-01/network/inboundsecurityrule.go new file mode 100644 index 000000000000..4098a0b29312 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/inboundsecurityrule.go @@ -0,0 +1,126 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// InboundSecurityRuleClient is the network Client +type InboundSecurityRuleClient struct { + BaseClient +} + +// NewInboundSecurityRuleClient creates an instance of the InboundSecurityRuleClient client. +func NewInboundSecurityRuleClient(subscriptionID string) InboundSecurityRuleClient { + return NewInboundSecurityRuleClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewInboundSecurityRuleClientWithBaseURI creates an instance of the InboundSecurityRuleClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewInboundSecurityRuleClientWithBaseURI(baseURI string, subscriptionID string) InboundSecurityRuleClient { + return InboundSecurityRuleClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates the specified Network Virtual Appliance Inbound Security Rules. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkVirtualApplianceName - the name of the Network Virtual Appliance. +// ruleCollectionName - the name of security rule collection. +// parameters - parameters supplied to the create or update Network Virtual Appliance Inbound Security Rules +// operation. +func (client InboundSecurityRuleClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, ruleCollectionName string, parameters InboundSecurityRule) (result InboundSecurityRuleCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InboundSecurityRuleClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, networkVirtualApplianceName, ruleCollectionName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InboundSecurityRuleClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InboundSecurityRuleClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client InboundSecurityRuleClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, ruleCollectionName string, parameters InboundSecurityRule) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkVirtualApplianceName": autorest.Encode("path", networkVirtualApplianceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "ruleCollectionName": autorest.Encode("path", ruleCollectionName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + parameters.Type = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/inboundSecurityRules/{ruleCollectionName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client InboundSecurityRuleClient) CreateOrUpdateSender(req *http.Request) (future InboundSecurityRuleCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client InboundSecurityRuleClient) CreateOrUpdateResponder(resp *http.Response) (result InboundSecurityRule, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/interfaceipconfigurations.go b/services/network/mgmt/2020-07-01/network/interfaceipconfigurations.go new file mode 100644 index 000000000000..f8637f9cdade --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/interfaceipconfigurations.go @@ -0,0 +1,239 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// InterfaceIPConfigurationsClient is the network Client +type InterfaceIPConfigurationsClient struct { + BaseClient +} + +// NewInterfaceIPConfigurationsClient creates an instance of the InterfaceIPConfigurationsClient client. +func NewInterfaceIPConfigurationsClient(subscriptionID string) InterfaceIPConfigurationsClient { + return NewInterfaceIPConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client +// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign +// clouds, Azure stack). +func NewInterfaceIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceIPConfigurationsClient { + return InterfaceIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get gets the specified network interface ip configuration. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkInterfaceName - the name of the network interface. +// IPConfigurationName - the name of the ip configuration name. +func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, IPConfigurationName string) (result InterfaceIPConfiguration, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceIPConfigurationsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, networkInterfaceName, IPConfigurationName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client InterfaceIPConfigurationsClient) GetPreparer(ctx context.Context, resourceGroupName string, networkInterfaceName string, IPConfigurationName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "ipConfigurationName": autorest.Encode("path", IPConfigurationName), + "networkInterfaceName": autorest.Encode("path", networkInterfaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/ipConfigurations/{ipConfigurationName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client InterfaceIPConfigurationsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client InterfaceIPConfigurationsClient) GetResponder(resp *http.Response) (result InterfaceIPConfiguration, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List get all ip configurations in a network interface. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkInterfaceName - the name of the network interface. +func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result InterfaceIPConfigurationListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceIPConfigurationsClient.List") + defer func() { + sc := -1 + if result.iiclr.Response.Response != nil { + sc = result.iiclr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, networkInterfaceName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.iiclr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure sending request") + return + } + + result.iiclr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request") + return + } + if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client InterfaceIPConfigurationsClient) ListPreparer(ctx context.Context, resourceGroupName string, networkInterfaceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkInterfaceName": autorest.Encode("path", networkInterfaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/ipConfigurations", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client InterfaceIPConfigurationsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client InterfaceIPConfigurationsClient) ListResponder(resp *http.Response) (result InterfaceIPConfigurationListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Context, lastResults InterfaceIPConfigurationListResult) (result InterfaceIPConfigurationListResult, err error) { + req, err := lastResults.interfaceIPConfigurationListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client InterfaceIPConfigurationsClient) ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result InterfaceIPConfigurationListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceIPConfigurationsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, networkInterfaceName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/interfaceloadbalancers.go b/services/network/mgmt/2020-07-01/network/interfaceloadbalancers.go new file mode 100644 index 000000000000..7c4314d89881 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/interfaceloadbalancers.go @@ -0,0 +1,161 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// InterfaceLoadBalancersClient is the network Client +type InterfaceLoadBalancersClient struct { + BaseClient +} + +// NewInterfaceLoadBalancersClient creates an instance of the InterfaceLoadBalancersClient client. +func NewInterfaceLoadBalancersClient(subscriptionID string) InterfaceLoadBalancersClient { + return NewInterfaceLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client using a +// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, +// Azure stack). +func NewInterfaceLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) InterfaceLoadBalancersClient { + return InterfaceLoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List list all load balancers in a network interface. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkInterfaceName - the name of the network interface. +func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result InterfaceLoadBalancerListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceLoadBalancersClient.List") + defer func() { + sc := -1 + if result.ilblr.Response.Response != nil { + sc = result.ilblr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, networkInterfaceName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.ilblr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure sending request") + return + } + + result.ilblr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request") + return + } + if result.ilblr.hasNextLink() && result.ilblr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client InterfaceLoadBalancersClient) ListPreparer(ctx context.Context, resourceGroupName string, networkInterfaceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkInterfaceName": autorest.Encode("path", networkInterfaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/loadBalancers", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client InterfaceLoadBalancersClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client InterfaceLoadBalancersClient) ListResponder(resp *http.Response) (result InterfaceLoadBalancerListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, lastResults InterfaceLoadBalancerListResult) (result InterfaceLoadBalancerListResult, err error) { + req, err := lastResults.interfaceLoadBalancerListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client InterfaceLoadBalancersClient) ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result InterfaceLoadBalancerListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceLoadBalancersClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, networkInterfaceName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/interfacesgroup.go b/services/network/mgmt/2020-07-01/network/interfacesgroup.go new file mode 100644 index 000000000000..e96b533eab64 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/interfacesgroup.go @@ -0,0 +1,1603 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// InterfacesClient is the network Client +type InterfacesClient struct { + BaseClient +} + +// NewInterfacesClient creates an instance of the InterfacesClient client. +func NewInterfacesClient(subscriptionID string) InterfacesClient { + return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient { + return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a network interface. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkInterfaceName - the name of the network interface. +// parameters - parameters supplied to the create or update network interface operation. +func (client InterfacesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters Interface) (result InterfacesCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.ExtendedLocation", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.ExtendedLocation.Name", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.ExtendedLocation.Type", Name: validation.Null, Rule: true, Chain: nil}, + }}}}}); err != nil { + return result, validation.NewError("network.InterfacesClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, networkInterfaceName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client InterfacesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters Interface) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkInterfaceName": autorest.Encode("path", networkInterfaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client InterfacesClient) CreateOrUpdateSender(req *http.Request) (future InterfacesCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client InterfacesClient) CreateOrUpdateResponder(resp *http.Response) (result Interface, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified network interface. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkInterfaceName - the name of the network interface. +func (client InterfacesClient) Delete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result InterfacesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, networkInterfaceName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client InterfacesClient) DeletePreparer(ctx context.Context, resourceGroupName string, networkInterfaceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkInterfaceName": autorest.Encode("path", networkInterfaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client InterfacesClient) DeleteSender(req *http.Request) (future InterfacesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client InterfacesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets information about the specified network interface. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkInterfaceName - the name of the network interface. +// expand - expands referenced resources. +func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, expand string) (result Interface, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, networkInterfaceName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client InterfacesClient) GetPreparer(ctx context.Context, resourceGroupName string, networkInterfaceName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkInterfaceName": autorest.Encode("path", networkInterfaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client InterfacesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client InterfacesClient) GetResponder(resp *http.Response) (result Interface, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetCloudServiceNetworkInterface get the specified network interface in a cloud service. +// Parameters: +// resourceGroupName - the name of the resource group. +// cloudServiceName - the name of the cloud service. +// roleInstanceName - the name of role instance +// networkInterfaceName - the name of the network interface. +// expand - expands referenced resources. +func (client InterfacesClient) GetCloudServiceNetworkInterface(ctx context.Context, resourceGroupName string, cloudServiceName string, roleInstanceName string, networkInterfaceName string, expand string) (result Interface, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.GetCloudServiceNetworkInterface") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetCloudServiceNetworkInterfacePreparer(ctx, resourceGroupName, cloudServiceName, roleInstanceName, networkInterfaceName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetCloudServiceNetworkInterface", nil, "Failure preparing request") + return + } + + resp, err := client.GetCloudServiceNetworkInterfaceSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetCloudServiceNetworkInterface", resp, "Failure sending request") + return + } + + result, err = client.GetCloudServiceNetworkInterfaceResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetCloudServiceNetworkInterface", resp, "Failure responding to request") + return + } + + return +} + +// GetCloudServiceNetworkInterfacePreparer prepares the GetCloudServiceNetworkInterface request. +func (client InterfacesClient) GetCloudServiceNetworkInterfacePreparer(ctx context.Context, resourceGroupName string, cloudServiceName string, roleInstanceName string, networkInterfaceName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "cloudServiceName": autorest.Encode("path", cloudServiceName), + "networkInterfaceName": autorest.Encode("path", networkInterfaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "roleInstanceName": autorest.Encode("path", roleInstanceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/networkInterfaces/{networkInterfaceName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetCloudServiceNetworkInterfaceSender sends the GetCloudServiceNetworkInterface request. The method will close the +// http.Response Body if it receives an error. +func (client InterfacesClient) GetCloudServiceNetworkInterfaceSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetCloudServiceNetworkInterfaceResponder handles the response to the GetCloudServiceNetworkInterface request. The method always +// closes the http.Response Body. +func (client InterfacesClient) GetCloudServiceNetworkInterfaceResponder(resp *http.Response) (result Interface, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetEffectiveRouteTable gets all route tables applied to a network interface. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkInterfaceName - the name of the network interface. +func (client InterfacesClient) GetEffectiveRouteTable(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result InterfacesGetEffectiveRouteTableFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.GetEffectiveRouteTable") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetEffectiveRouteTablePreparer(ctx, resourceGroupName, networkInterfaceName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetEffectiveRouteTable", nil, "Failure preparing request") + return + } + + result, err = client.GetEffectiveRouteTableSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetEffectiveRouteTable", result.Response(), "Failure sending request") + return + } + + return +} + +// GetEffectiveRouteTablePreparer prepares the GetEffectiveRouteTable request. +func (client InterfacesClient) GetEffectiveRouteTablePreparer(ctx context.Context, resourceGroupName string, networkInterfaceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkInterfaceName": autorest.Encode("path", networkInterfaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/effectiveRouteTable", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetEffectiveRouteTableSender sends the GetEffectiveRouteTable request. The method will close the +// http.Response Body if it receives an error. +func (client InterfacesClient) GetEffectiveRouteTableSender(req *http.Request) (future InterfacesGetEffectiveRouteTableFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// GetEffectiveRouteTableResponder handles the response to the GetEffectiveRouteTable request. The method always +// closes the http.Response Body. +func (client InterfacesClient) GetEffectiveRouteTableResponder(resp *http.Response) (result EffectiveRouteListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetVirtualMachineScaleSetIPConfiguration get the specified network interface ip configuration in a virtual machine +// scale set. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualMachineScaleSetName - the name of the virtual machine scale set. +// virtualmachineIndex - the virtual machine index. +// networkInterfaceName - the name of the network interface. +// IPConfigurationName - the name of the ip configuration. +// expand - expands referenced resources. +func (client InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, expand string) (result InterfaceIPConfiguration, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.GetVirtualMachineScaleSetIPConfiguration") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetVirtualMachineScaleSetIPConfigurationPreparer(ctx, resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, IPConfigurationName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", nil, "Failure preparing request") + return + } + + resp, err := client.GetVirtualMachineScaleSetIPConfigurationSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure sending request") + return + } + + result, err = client.GetVirtualMachineScaleSetIPConfigurationResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure responding to request") + return + } + + return +} + +// GetVirtualMachineScaleSetIPConfigurationPreparer prepares the GetVirtualMachineScaleSetIPConfiguration request. +func (client InterfacesClient) GetVirtualMachineScaleSetIPConfigurationPreparer(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "ipConfigurationName": autorest.Encode("path", IPConfigurationName), + "networkInterfaceName": autorest.Encode("path", networkInterfaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualmachineIndex": autorest.Encode("path", virtualmachineIndex), + "virtualMachineScaleSetName": autorest.Encode("path", virtualMachineScaleSetName), + } + + const APIVersion = "2018-10-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipConfigurations/{ipConfigurationName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetVirtualMachineScaleSetIPConfigurationSender sends the GetVirtualMachineScaleSetIPConfiguration request. The method will close the +// http.Response Body if it receives an error. +func (client InterfacesClient) GetVirtualMachineScaleSetIPConfigurationSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetVirtualMachineScaleSetIPConfigurationResponder handles the response to the GetVirtualMachineScaleSetIPConfiguration request. The method always +// closes the http.Response Body. +func (client InterfacesClient) GetVirtualMachineScaleSetIPConfigurationResponder(resp *http.Response) (result InterfaceIPConfiguration, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetVirtualMachineScaleSetNetworkInterface get the specified network interface in a virtual machine scale set. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualMachineScaleSetName - the name of the virtual machine scale set. +// virtualmachineIndex - the virtual machine index. +// networkInterfaceName - the name of the network interface. +// expand - expands referenced resources. +func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result Interface, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.GetVirtualMachineScaleSetNetworkInterface") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetVirtualMachineScaleSetNetworkInterfacePreparer(ctx, resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", nil, "Failure preparing request") + return + } + + resp, err := client.GetVirtualMachineScaleSetNetworkInterfaceSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure sending request") + return + } + + result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request") + return + } + + return +} + +// GetVirtualMachineScaleSetNetworkInterfacePreparer prepares the GetVirtualMachineScaleSetNetworkInterface request. +func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterfacePreparer(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkInterfaceName": autorest.Encode("path", networkInterfaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualmachineIndex": autorest.Encode("path", virtualmachineIndex), + "virtualMachineScaleSetName": autorest.Encode("path", virtualMachineScaleSetName), + } + + const APIVersion = "2018-10-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetVirtualMachineScaleSetNetworkInterfaceSender sends the GetVirtualMachineScaleSetNetworkInterface request. The method will close the +// http.Response Body if it receives an error. +func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterfaceSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetVirtualMachineScaleSetNetworkInterfaceResponder handles the response to the GetVirtualMachineScaleSetNetworkInterface request. The method always +// closes the http.Response Body. +func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterfaceResponder(resp *http.Response) (result Interface, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all network interfaces in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client InterfacesClient) List(ctx context.Context, resourceGroupName string) (result InterfaceListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.List") + defer func() { + sc := -1 + if result.ilr.Response.Response != nil { + sc = result.ilr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.ilr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure sending request") + return + } + + result.ilr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request") + return + } + if result.ilr.hasNextLink() && result.ilr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client InterfacesClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client InterfacesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client InterfacesClient) ListResponder(resp *http.Response) (result InterfaceListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client InterfacesClient) listNextResults(ctx context.Context, lastResults InterfaceListResult) (result InterfaceListResult, err error) { + req, err := lastResults.interfaceListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client InterfacesClient) ListComplete(ctx context.Context, resourceGroupName string) (result InterfaceListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName) + return +} + +// ListAll gets all network interfaces in a subscription. +func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.ListAll") + defer func() { + sc := -1 + if result.ilr.Response.Response != nil { + sc = result.ilr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listAllNextResults + req, err := client.ListAllPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", nil, "Failure preparing request") + return + } + + resp, err := client.ListAllSender(req) + if err != nil { + result.ilr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure sending request") + return + } + + result.ilr, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request") + return + } + if result.ilr.hasNextLink() && result.ilr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListAllPreparer prepares the ListAll request. +func (client InterfacesClient) ListAllPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkInterfaces", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAllSender sends the ListAll request. The method will close the +// http.Response Body if it receives an error. +func (client InterfacesClient) ListAllSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAllResponder handles the response to the ListAll request. The method always +// closes the http.Response Body. +func (client InterfacesClient) ListAllResponder(resp *http.Response) (result InterfaceListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listAllNextResults retrieves the next set of results, if any. +func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResults InterfaceListResult) (result InterfaceListResult, err error) { + req, err := lastResults.interfaceListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListAllSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure sending next results request") + } + result, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListAllComplete enumerates all values, automatically crossing page boundaries as required. +func (client InterfacesClient) ListAllComplete(ctx context.Context) (result InterfaceListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.ListAll") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListAll(ctx) + return +} + +// ListCloudServiceNetworkInterfaces gets all network interfaces in a cloud service. +// Parameters: +// resourceGroupName - the name of the resource group. +// cloudServiceName - the name of the cloud service. +func (client InterfacesClient) ListCloudServiceNetworkInterfaces(ctx context.Context, resourceGroupName string, cloudServiceName string) (result InterfaceListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.ListCloudServiceNetworkInterfaces") + defer func() { + sc := -1 + if result.ilr.Response.Response != nil { + sc = result.ilr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listCloudServiceNetworkInterfacesNextResults + req, err := client.ListCloudServiceNetworkInterfacesPreparer(ctx, resourceGroupName, cloudServiceName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListCloudServiceNetworkInterfaces", nil, "Failure preparing request") + return + } + + resp, err := client.ListCloudServiceNetworkInterfacesSender(req) + if err != nil { + result.ilr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListCloudServiceNetworkInterfaces", resp, "Failure sending request") + return + } + + result.ilr, err = client.ListCloudServiceNetworkInterfacesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListCloudServiceNetworkInterfaces", resp, "Failure responding to request") + return + } + if result.ilr.hasNextLink() && result.ilr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListCloudServiceNetworkInterfacesPreparer prepares the ListCloudServiceNetworkInterfaces request. +func (client InterfacesClient) ListCloudServiceNetworkInterfacesPreparer(ctx context.Context, resourceGroupName string, cloudServiceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "cloudServiceName": autorest.Encode("path", cloudServiceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/networkInterfaces", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListCloudServiceNetworkInterfacesSender sends the ListCloudServiceNetworkInterfaces request. The method will close the +// http.Response Body if it receives an error. +func (client InterfacesClient) ListCloudServiceNetworkInterfacesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListCloudServiceNetworkInterfacesResponder handles the response to the ListCloudServiceNetworkInterfaces request. The method always +// closes the http.Response Body. +func (client InterfacesClient) ListCloudServiceNetworkInterfacesResponder(resp *http.Response) (result InterfaceListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listCloudServiceNetworkInterfacesNextResults retrieves the next set of results, if any. +func (client InterfacesClient) listCloudServiceNetworkInterfacesNextResults(ctx context.Context, lastResults InterfaceListResult) (result InterfaceListResult, err error) { + req, err := lastResults.interfaceListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.InterfacesClient", "listCloudServiceNetworkInterfacesNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListCloudServiceNetworkInterfacesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.InterfacesClient", "listCloudServiceNetworkInterfacesNextResults", resp, "Failure sending next results request") + } + result, err = client.ListCloudServiceNetworkInterfacesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listCloudServiceNetworkInterfacesNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListCloudServiceNetworkInterfacesComplete enumerates all values, automatically crossing page boundaries as required. +func (client InterfacesClient) ListCloudServiceNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, cloudServiceName string) (result InterfaceListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.ListCloudServiceNetworkInterfaces") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListCloudServiceNetworkInterfaces(ctx, resourceGroupName, cloudServiceName) + return +} + +// ListCloudServiceRoleInstanceNetworkInterfaces gets information about all network interfaces in a role instance in a +// cloud service +// Parameters: +// resourceGroupName - the name of the resource group. +// cloudServiceName - the name of the cloud service. +// roleInstanceName - the name of role instance. +func (client InterfacesClient) ListCloudServiceRoleInstanceNetworkInterfaces(ctx context.Context, resourceGroupName string, cloudServiceName string, roleInstanceName string) (result InterfaceListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.ListCloudServiceRoleInstanceNetworkInterfaces") + defer func() { + sc := -1 + if result.ilr.Response.Response != nil { + sc = result.ilr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listCloudServiceRoleInstanceNetworkInterfacesNextResults + req, err := client.ListCloudServiceRoleInstanceNetworkInterfacesPreparer(ctx, resourceGroupName, cloudServiceName, roleInstanceName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListCloudServiceRoleInstanceNetworkInterfaces", nil, "Failure preparing request") + return + } + + resp, err := client.ListCloudServiceRoleInstanceNetworkInterfacesSender(req) + if err != nil { + result.ilr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListCloudServiceRoleInstanceNetworkInterfaces", resp, "Failure sending request") + return + } + + result.ilr, err = client.ListCloudServiceRoleInstanceNetworkInterfacesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListCloudServiceRoleInstanceNetworkInterfaces", resp, "Failure responding to request") + return + } + if result.ilr.hasNextLink() && result.ilr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListCloudServiceRoleInstanceNetworkInterfacesPreparer prepares the ListCloudServiceRoleInstanceNetworkInterfaces request. +func (client InterfacesClient) ListCloudServiceRoleInstanceNetworkInterfacesPreparer(ctx context.Context, resourceGroupName string, cloudServiceName string, roleInstanceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "cloudServiceName": autorest.Encode("path", cloudServiceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "roleInstanceName": autorest.Encode("path", roleInstanceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/networkInterfaces", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListCloudServiceRoleInstanceNetworkInterfacesSender sends the ListCloudServiceRoleInstanceNetworkInterfaces request. The method will close the +// http.Response Body if it receives an error. +func (client InterfacesClient) ListCloudServiceRoleInstanceNetworkInterfacesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListCloudServiceRoleInstanceNetworkInterfacesResponder handles the response to the ListCloudServiceRoleInstanceNetworkInterfaces request. The method always +// closes the http.Response Body. +func (client InterfacesClient) ListCloudServiceRoleInstanceNetworkInterfacesResponder(resp *http.Response) (result InterfaceListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listCloudServiceRoleInstanceNetworkInterfacesNextResults retrieves the next set of results, if any. +func (client InterfacesClient) listCloudServiceRoleInstanceNetworkInterfacesNextResults(ctx context.Context, lastResults InterfaceListResult) (result InterfaceListResult, err error) { + req, err := lastResults.interfaceListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.InterfacesClient", "listCloudServiceRoleInstanceNetworkInterfacesNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListCloudServiceRoleInstanceNetworkInterfacesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.InterfacesClient", "listCloudServiceRoleInstanceNetworkInterfacesNextResults", resp, "Failure sending next results request") + } + result, err = client.ListCloudServiceRoleInstanceNetworkInterfacesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listCloudServiceRoleInstanceNetworkInterfacesNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListCloudServiceRoleInstanceNetworkInterfacesComplete enumerates all values, automatically crossing page boundaries as required. +func (client InterfacesClient) ListCloudServiceRoleInstanceNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, cloudServiceName string, roleInstanceName string) (result InterfaceListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.ListCloudServiceRoleInstanceNetworkInterfaces") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListCloudServiceRoleInstanceNetworkInterfaces(ctx, resourceGroupName, cloudServiceName, roleInstanceName) + return +} + +// ListEffectiveNetworkSecurityGroups gets all network security groups applied to a network interface. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkInterfaceName - the name of the network interface. +func (client InterfacesClient) ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result InterfacesListEffectiveNetworkSecurityGroupsFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.ListEffectiveNetworkSecurityGroups") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListEffectiveNetworkSecurityGroupsPreparer(ctx, resourceGroupName, networkInterfaceName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListEffectiveNetworkSecurityGroups", nil, "Failure preparing request") + return + } + + result, err = client.ListEffectiveNetworkSecurityGroupsSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListEffectiveNetworkSecurityGroups", result.Response(), "Failure sending request") + return + } + + return +} + +// ListEffectiveNetworkSecurityGroupsPreparer prepares the ListEffectiveNetworkSecurityGroups request. +func (client InterfacesClient) ListEffectiveNetworkSecurityGroupsPreparer(ctx context.Context, resourceGroupName string, networkInterfaceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkInterfaceName": autorest.Encode("path", networkInterfaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/effectiveNetworkSecurityGroups", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListEffectiveNetworkSecurityGroupsSender sends the ListEffectiveNetworkSecurityGroups request. The method will close the +// http.Response Body if it receives an error. +func (client InterfacesClient) ListEffectiveNetworkSecurityGroupsSender(req *http.Request) (future InterfacesListEffectiveNetworkSecurityGroupsFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// ListEffectiveNetworkSecurityGroupsResponder handles the response to the ListEffectiveNetworkSecurityGroups request. The method always +// closes the http.Response Body. +func (client InterfacesClient) ListEffectiveNetworkSecurityGroupsResponder(resp *http.Response) (result EffectiveNetworkSecurityGroupListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListVirtualMachineScaleSetIPConfigurations get the specified network interface ip configuration in a virtual machine +// scale set. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualMachineScaleSetName - the name of the virtual machine scale set. +// virtualmachineIndex - the virtual machine index. +// networkInterfaceName - the name of the network interface. +// expand - expands referenced resources. +func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result InterfaceIPConfigurationListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.ListVirtualMachineScaleSetIPConfigurations") + defer func() { + sc := -1 + if result.iiclr.Response.Response != nil { + sc = result.iiclr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listVirtualMachineScaleSetIPConfigurationsNextResults + req, err := client.ListVirtualMachineScaleSetIPConfigurationsPreparer(ctx, resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", nil, "Failure preparing request") + return + } + + resp, err := client.ListVirtualMachineScaleSetIPConfigurationsSender(req) + if err != nil { + result.iiclr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure sending request") + return + } + + result.iiclr, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure responding to request") + return + } + if result.iiclr.hasNextLink() && result.iiclr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListVirtualMachineScaleSetIPConfigurationsPreparer prepares the ListVirtualMachineScaleSetIPConfigurations request. +func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurationsPreparer(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkInterfaceName": autorest.Encode("path", networkInterfaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualmachineIndex": autorest.Encode("path", virtualmachineIndex), + "virtualMachineScaleSetName": autorest.Encode("path", virtualMachineScaleSetName), + } + + const APIVersion = "2018-10-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipConfigurations", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListVirtualMachineScaleSetIPConfigurationsSender sends the ListVirtualMachineScaleSetIPConfigurations request. The method will close the +// http.Response Body if it receives an error. +func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurationsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListVirtualMachineScaleSetIPConfigurationsResponder handles the response to the ListVirtualMachineScaleSetIPConfigurations request. The method always +// closes the http.Response Body. +func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurationsResponder(resp *http.Response) (result InterfaceIPConfigurationListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listVirtualMachineScaleSetIPConfigurationsNextResults retrieves the next set of results, if any. +func (client InterfacesClient) listVirtualMachineScaleSetIPConfigurationsNextResults(ctx context.Context, lastResults InterfaceIPConfigurationListResult) (result InterfaceIPConfigurationListResult, err error) { + req, err := lastResults.interfaceIPConfigurationListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListVirtualMachineScaleSetIPConfigurationsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure sending next results request") + } + result, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListVirtualMachineScaleSetIPConfigurationsComplete enumerates all values, automatically crossing page boundaries as required. +func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurationsComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result InterfaceIPConfigurationListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.ListVirtualMachineScaleSetIPConfigurations") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListVirtualMachineScaleSetIPConfigurations(ctx, resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, expand) + return +} + +// ListVirtualMachineScaleSetNetworkInterfaces gets all network interfaces in a virtual machine scale set. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualMachineScaleSetName - the name of the virtual machine scale set. +func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result InterfaceListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.ListVirtualMachineScaleSetNetworkInterfaces") + defer func() { + sc := -1 + if result.ilr.Response.Response != nil { + sc = result.ilr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listVirtualMachineScaleSetNetworkInterfacesNextResults + req, err := client.ListVirtualMachineScaleSetNetworkInterfacesPreparer(ctx, resourceGroupName, virtualMachineScaleSetName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", nil, "Failure preparing request") + return + } + + resp, err := client.ListVirtualMachineScaleSetNetworkInterfacesSender(req) + if err != nil { + result.ilr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure sending request") + return + } + + result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request") + return + } + if result.ilr.hasNextLink() && result.ilr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListVirtualMachineScaleSetNetworkInterfacesPreparer prepares the ListVirtualMachineScaleSetNetworkInterfaces request. +func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfacesPreparer(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualMachineScaleSetName": autorest.Encode("path", virtualMachineScaleSetName), + } + + const APIVersion = "2018-10-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/networkInterfaces", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListVirtualMachineScaleSetNetworkInterfacesSender sends the ListVirtualMachineScaleSetNetworkInterfaces request. The method will close the +// http.Response Body if it receives an error. +func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfacesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListVirtualMachineScaleSetNetworkInterfacesResponder handles the response to the ListVirtualMachineScaleSetNetworkInterfaces request. The method always +// closes the http.Response Body. +func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfacesResponder(resp *http.Response) (result InterfaceListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listVirtualMachineScaleSetNetworkInterfacesNextResults retrieves the next set of results, if any. +func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextResults(ctx context.Context, lastResults InterfaceListResult) (result InterfaceListResult, err error) { + req, err := lastResults.interfaceListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListVirtualMachineScaleSetNetworkInterfacesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure sending next results request") + } + result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListVirtualMachineScaleSetNetworkInterfacesComplete enumerates all values, automatically crossing page boundaries as required. +func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result InterfaceListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.ListVirtualMachineScaleSetNetworkInterfaces") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListVirtualMachineScaleSetNetworkInterfaces(ctx, resourceGroupName, virtualMachineScaleSetName) + return +} + +// ListVirtualMachineScaleSetVMNetworkInterfaces gets information about all network interfaces in a virtual machine in +// a virtual machine scale set. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualMachineScaleSetName - the name of the virtual machine scale set. +// virtualmachineIndex - the virtual machine index. +func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result InterfaceListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.ListVirtualMachineScaleSetVMNetworkInterfaces") + defer func() { + sc := -1 + if result.ilr.Response.Response != nil { + sc = result.ilr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listVirtualMachineScaleSetVMNetworkInterfacesNextResults + req, err := client.ListVirtualMachineScaleSetVMNetworkInterfacesPreparer(ctx, resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", nil, "Failure preparing request") + return + } + + resp, err := client.ListVirtualMachineScaleSetVMNetworkInterfacesSender(req) + if err != nil { + result.ilr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure sending request") + return + } + + result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request") + return + } + if result.ilr.hasNextLink() && result.ilr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListVirtualMachineScaleSetVMNetworkInterfacesPreparer prepares the ListVirtualMachineScaleSetVMNetworkInterfaces request. +func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfacesPreparer(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualmachineIndex": autorest.Encode("path", virtualmachineIndex), + "virtualMachineScaleSetName": autorest.Encode("path", virtualMachineScaleSetName), + } + + const APIVersion = "2018-10-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListVirtualMachineScaleSetVMNetworkInterfacesSender sends the ListVirtualMachineScaleSetVMNetworkInterfaces request. The method will close the +// http.Response Body if it receives an error. +func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfacesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListVirtualMachineScaleSetVMNetworkInterfacesResponder handles the response to the ListVirtualMachineScaleSetVMNetworkInterfaces request. The method always +// closes the http.Response Body. +func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp *http.Response) (result InterfaceListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listVirtualMachineScaleSetVMNetworkInterfacesNextResults retrieves the next set of results, if any. +func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNextResults(ctx context.Context, lastResults InterfaceListResult) (result InterfaceListResult, err error) { + req, err := lastResults.interfaceListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListVirtualMachineScaleSetVMNetworkInterfacesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure sending next results request") + } + result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListVirtualMachineScaleSetVMNetworkInterfacesComplete enumerates all values, automatically crossing page boundaries as required. +func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result InterfaceListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.ListVirtualMachineScaleSetVMNetworkInterfaces") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListVirtualMachineScaleSetVMNetworkInterfaces(ctx, resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex) + return +} + +// UpdateTags updates a network interface tags. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkInterfaceName - the name of the network interface. +// parameters - parameters supplied to update network interface tags. +func (client InterfacesClient) UpdateTags(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters TagsObject) (result Interface, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, networkInterfaceName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client InterfacesClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkInterfaceName": autorest.Encode("path", networkInterfaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client InterfacesClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client InterfacesClient) UpdateTagsResponder(resp *http.Response) (result Interface, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/interfacetapconfigurations.go b/services/network/mgmt/2020-07-01/network/interfacetapconfigurations.go new file mode 100644 index 000000000000..1429fd563676 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/interfacetapconfigurations.go @@ -0,0 +1,441 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// InterfaceTapConfigurationsClient is the network Client +type InterfaceTapConfigurationsClient struct { + BaseClient +} + +// NewInterfaceTapConfigurationsClient creates an instance of the InterfaceTapConfigurationsClient client. +func NewInterfaceTapConfigurationsClient(subscriptionID string) InterfaceTapConfigurationsClient { + return NewInterfaceTapConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewInterfaceTapConfigurationsClientWithBaseURI creates an instance of the InterfaceTapConfigurationsClient client +// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign +// clouds, Azure stack). +func NewInterfaceTapConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceTapConfigurationsClient { + return InterfaceTapConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a Tap configuration in the specified NetworkInterface. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkInterfaceName - the name of the network interface. +// tapConfigurationName - the name of the tap configuration. +// tapConfigurationParameters - parameters supplied to the create or update tap configuration operation. +func (client InterfaceTapConfigurationsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string, tapConfigurationParameters InterfaceTapConfiguration) (result InterfaceTapConfigurationsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceTapConfigurationsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: tapConfigurationParameters, + Constraints: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.ExtendedLocation", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.ExtendedLocation.Name", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.ExtendedLocation.Type", Name: validation.Null, Rule: true, Chain: nil}, + }}, + {Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat.PublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}}}, + }}, + }}, + }}, + }}, + }}, + {Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress.ExtendedLocation", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress.ExtendedLocation.Name", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress.ExtendedLocation.Type", Name: validation.Null, Rule: true, Chain: nil}, + }}, + {Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat.PublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}}}, + }}, + }}, + }}, + }}, + }}, + }}, + }}, + }}}}}); err != nil { + return result, validation.NewError("network.InterfaceTapConfigurationsClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, networkInterfaceName, tapConfigurationName, tapConfigurationParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client InterfaceTapConfigurationsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string, tapConfigurationParameters InterfaceTapConfiguration) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkInterfaceName": autorest.Encode("path", networkInterfaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "tapConfigurationName": autorest.Encode("path", tapConfigurationName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + tapConfigurationParameters.Etag = nil + tapConfigurationParameters.Type = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/tapConfigurations/{tapConfigurationName}", pathParameters), + autorest.WithJSON(tapConfigurationParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client InterfaceTapConfigurationsClient) CreateOrUpdateSender(req *http.Request) (future InterfaceTapConfigurationsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client InterfaceTapConfigurationsClient) CreateOrUpdateResponder(resp *http.Response) (result InterfaceTapConfiguration, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified tap configuration from the NetworkInterface. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkInterfaceName - the name of the network interface. +// tapConfigurationName - the name of the tap configuration. +func (client InterfaceTapConfigurationsClient) Delete(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (result InterfaceTapConfigurationsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceTapConfigurationsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, networkInterfaceName, tapConfigurationName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client InterfaceTapConfigurationsClient) DeletePreparer(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkInterfaceName": autorest.Encode("path", networkInterfaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "tapConfigurationName": autorest.Encode("path", tapConfigurationName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/tapConfigurations/{tapConfigurationName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client InterfaceTapConfigurationsClient) DeleteSender(req *http.Request) (future InterfaceTapConfigurationsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client InterfaceTapConfigurationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get get the specified tap configuration on a network interface. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkInterfaceName - the name of the network interface. +// tapConfigurationName - the name of the tap configuration. +func (client InterfaceTapConfigurationsClient) Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (result InterfaceTapConfiguration, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceTapConfigurationsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, networkInterfaceName, tapConfigurationName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client InterfaceTapConfigurationsClient) GetPreparer(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkInterfaceName": autorest.Encode("path", networkInterfaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "tapConfigurationName": autorest.Encode("path", tapConfigurationName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/tapConfigurations/{tapConfigurationName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client InterfaceTapConfigurationsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client InterfaceTapConfigurationsClient) GetResponder(resp *http.Response) (result InterfaceTapConfiguration, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List get all Tap configurations in a network interface. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkInterfaceName - the name of the network interface. +func (client InterfaceTapConfigurationsClient) List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result InterfaceTapConfigurationListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceTapConfigurationsClient.List") + defer func() { + sc := -1 + if result.itclr.Response.Response != nil { + sc = result.itclr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, networkInterfaceName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.itclr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "List", resp, "Failure sending request") + return + } + + result.itclr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "List", resp, "Failure responding to request") + return + } + if result.itclr.hasNextLink() && result.itclr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client InterfaceTapConfigurationsClient) ListPreparer(ctx context.Context, resourceGroupName string, networkInterfaceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkInterfaceName": autorest.Encode("path", networkInterfaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/tapConfigurations", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client InterfaceTapConfigurationsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client InterfaceTapConfigurationsClient) ListResponder(resp *http.Response) (result InterfaceTapConfigurationListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client InterfaceTapConfigurationsClient) listNextResults(ctx context.Context, lastResults InterfaceTapConfigurationListResult) (result InterfaceTapConfigurationListResult, err error) { + req, err := lastResults.interfaceTapConfigurationListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client InterfaceTapConfigurationsClient) ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result InterfaceTapConfigurationListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceTapConfigurationsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, networkInterfaceName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/ipallocations.go b/services/network/mgmt/2020-07-01/network/ipallocations.go new file mode 100644 index 000000000000..fc36a9e62eaa --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/ipallocations.go @@ -0,0 +1,583 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// IPAllocationsClient is the network Client +type IPAllocationsClient struct { + BaseClient +} + +// NewIPAllocationsClient creates an instance of the IPAllocationsClient client. +func NewIPAllocationsClient(subscriptionID string) IPAllocationsClient { + return NewIPAllocationsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewIPAllocationsClientWithBaseURI creates an instance of the IPAllocationsClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewIPAllocationsClientWithBaseURI(baseURI string, subscriptionID string) IPAllocationsClient { + return IPAllocationsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates an IpAllocation in the specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// IPAllocationName - the name of the IpAllocation. +// parameters - parameters supplied to the create or update virtual network operation. +func (client IPAllocationsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, IPAllocationName string, parameters IPAllocation) (result IPAllocationsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IPAllocationsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, IPAllocationName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client IPAllocationsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, IPAllocationName string, parameters IPAllocation) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "ipAllocationName": autorest.Encode("path", IPAllocationName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/IpAllocations/{ipAllocationName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client IPAllocationsClient) CreateOrUpdateSender(req *http.Request) (future IPAllocationsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client IPAllocationsClient) CreateOrUpdateResponder(resp *http.Response) (result IPAllocation, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified IpAllocation. +// Parameters: +// resourceGroupName - the name of the resource group. +// IPAllocationName - the name of the IpAllocation. +func (client IPAllocationsClient) Delete(ctx context.Context, resourceGroupName string, IPAllocationName string) (result IPAllocationsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IPAllocationsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, IPAllocationName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client IPAllocationsClient) DeletePreparer(ctx context.Context, resourceGroupName string, IPAllocationName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "ipAllocationName": autorest.Encode("path", IPAllocationName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/IpAllocations/{ipAllocationName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client IPAllocationsClient) DeleteSender(req *http.Request) (future IPAllocationsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client IPAllocationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified IpAllocation by resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// IPAllocationName - the name of the IpAllocation. +// expand - expands referenced resources. +func (client IPAllocationsClient) Get(ctx context.Context, resourceGroupName string, IPAllocationName string, expand string) (result IPAllocation, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IPAllocationsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, IPAllocationName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client IPAllocationsClient) GetPreparer(ctx context.Context, resourceGroupName string, IPAllocationName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "ipAllocationName": autorest.Encode("path", IPAllocationName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/IpAllocations/{ipAllocationName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client IPAllocationsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client IPAllocationsClient) GetResponder(resp *http.Response) (result IPAllocation, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all IpAllocations in a subscription. +func (client IPAllocationsClient) List(ctx context.Context) (result IPAllocationListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IPAllocationsClient.List") + defer func() { + sc := -1 + if result.ialr.Response.Response != nil { + sc = result.ialr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.ialr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "List", resp, "Failure sending request") + return + } + + result.ialr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "List", resp, "Failure responding to request") + return + } + if result.ialr.hasNextLink() && result.ialr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client IPAllocationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/IpAllocations", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client IPAllocationsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client IPAllocationsClient) ListResponder(resp *http.Response) (result IPAllocationListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client IPAllocationsClient) listNextResults(ctx context.Context, lastResults IPAllocationListResult) (result IPAllocationListResult, err error) { + req, err := lastResults.iPAllocationListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.IPAllocationsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.IPAllocationsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client IPAllocationsClient) ListComplete(ctx context.Context) (result IPAllocationListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IPAllocationsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} + +// ListByResourceGroup gets all IpAllocations in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client IPAllocationsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result IPAllocationListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IPAllocationsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.ialr.Response.Response != nil { + sc = result.ialr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.ialr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.ialr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.ialr.hasNextLink() && result.ialr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client IPAllocationsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/IpAllocations", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client IPAllocationsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client IPAllocationsClient) ListByResourceGroupResponder(resp *http.Response) (result IPAllocationListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client IPAllocationsClient) listByResourceGroupNextResults(ctx context.Context, lastResults IPAllocationListResult) (result IPAllocationListResult, err error) { + req, err := lastResults.iPAllocationListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.IPAllocationsClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.IPAllocationsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client IPAllocationsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result IPAllocationListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IPAllocationsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// UpdateTags updates a IpAllocation tags. +// Parameters: +// resourceGroupName - the name of the resource group. +// IPAllocationName - the name of the IpAllocation. +// parameters - parameters supplied to update IpAllocation tags. +func (client IPAllocationsClient) UpdateTags(ctx context.Context, resourceGroupName string, IPAllocationName string, parameters TagsObject) (result IPAllocation, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IPAllocationsClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, IPAllocationName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPAllocationsClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client IPAllocationsClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, IPAllocationName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "ipAllocationName": autorest.Encode("path", IPAllocationName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/IpAllocations/{ipAllocationName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client IPAllocationsClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client IPAllocationsClient) UpdateTagsResponder(resp *http.Response) (result IPAllocation, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/ipgroups.go b/services/network/mgmt/2020-07-01/network/ipgroups.go new file mode 100644 index 000000000000..3001df9489b0 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/ipgroups.go @@ -0,0 +1,584 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// IPGroupsClient is the network Client +type IPGroupsClient struct { + BaseClient +} + +// NewIPGroupsClient creates an instance of the IPGroupsClient client. +func NewIPGroupsClient(subscriptionID string) IPGroupsClient { + return NewIPGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewIPGroupsClientWithBaseURI creates an instance of the IPGroupsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewIPGroupsClientWithBaseURI(baseURI string, subscriptionID string) IPGroupsClient { + return IPGroupsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates an ipGroups in a specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// IPGroupsName - the name of the ipGroups. +// parameters - parameters supplied to the create or update IpGroups operation. +func (client IPGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, IPGroupsName string, parameters IPGroup) (result IPGroupsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IPGroupsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, IPGroupsName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client IPGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, IPGroupsName string, parameters IPGroup) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "ipGroupsName": autorest.Encode("path", IPGroupsName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client IPGroupsClient) CreateOrUpdateSender(req *http.Request) (future IPGroupsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client IPGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result IPGroup, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified ipGroups. +// Parameters: +// resourceGroupName - the name of the resource group. +// IPGroupsName - the name of the ipGroups. +func (client IPGroupsClient) Delete(ctx context.Context, resourceGroupName string, IPGroupsName string) (result IPGroupsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IPGroupsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, IPGroupsName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client IPGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, IPGroupsName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "ipGroupsName": autorest.Encode("path", IPGroupsName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client IPGroupsClient) DeleteSender(req *http.Request) (future IPGroupsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client IPGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified ipGroups. +// Parameters: +// resourceGroupName - the name of the resource group. +// IPGroupsName - the name of the ipGroups. +// expand - expands resourceIds (of Firewalls/Network Security Groups etc.) back referenced by the IpGroups +// resource. +func (client IPGroupsClient) Get(ctx context.Context, resourceGroupName string, IPGroupsName string, expand string) (result IPGroup, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IPGroupsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, IPGroupsName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client IPGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, IPGroupsName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "ipGroupsName": autorest.Encode("path", IPGroupsName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client IPGroupsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client IPGroupsClient) GetResponder(resp *http.Response) (result IPGroup, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all IpGroups in a subscription. +func (client IPGroupsClient) List(ctx context.Context) (result IPGroupListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IPGroupsClient.List") + defer func() { + sc := -1 + if result.iglr.Response.Response != nil { + sc = result.iglr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.iglr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "List", resp, "Failure sending request") + return + } + + result.iglr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "List", resp, "Failure responding to request") + return + } + if result.iglr.hasNextLink() && result.iglr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client IPGroupsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ipGroups", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client IPGroupsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client IPGroupsClient) ListResponder(resp *http.Response) (result IPGroupListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client IPGroupsClient) listNextResults(ctx context.Context, lastResults IPGroupListResult) (result IPGroupListResult, err error) { + req, err := lastResults.iPGroupListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.IPGroupsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.IPGroupsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client IPGroupsClient) ListComplete(ctx context.Context) (result IPGroupListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IPGroupsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} + +// ListByResourceGroup gets all IpGroups in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client IPGroupsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result IPGroupListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IPGroupsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.iglr.Response.Response != nil { + sc = result.iglr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.iglr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.iglr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.iglr.hasNextLink() && result.iglr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client IPGroupsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client IPGroupsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client IPGroupsClient) ListByResourceGroupResponder(resp *http.Response) (result IPGroupListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client IPGroupsClient) listByResourceGroupNextResults(ctx context.Context, lastResults IPGroupListResult) (result IPGroupListResult, err error) { + req, err := lastResults.iPGroupListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.IPGroupsClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.IPGroupsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client IPGroupsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result IPGroupListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IPGroupsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// UpdateGroups updates tags of an IpGroups resource. +// Parameters: +// resourceGroupName - the name of the resource group. +// IPGroupsName - the name of the ipGroups. +// parameters - parameters supplied to the update ipGroups operation. +func (client IPGroupsClient) UpdateGroups(ctx context.Context, resourceGroupName string, IPGroupsName string, parameters TagsObject) (result IPGroup, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IPGroupsClient.UpdateGroups") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateGroupsPreparer(ctx, resourceGroupName, IPGroupsName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "UpdateGroups", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateGroupsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "UpdateGroups", resp, "Failure sending request") + return + } + + result, err = client.UpdateGroupsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "UpdateGroups", resp, "Failure responding to request") + return + } + + return +} + +// UpdateGroupsPreparer prepares the UpdateGroups request. +func (client IPGroupsClient) UpdateGroupsPreparer(ctx context.Context, resourceGroupName string, IPGroupsName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "ipGroupsName": autorest.Encode("path", IPGroupsName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateGroupsSender sends the UpdateGroups request. The method will close the +// http.Response Body if it receives an error. +func (client IPGroupsClient) UpdateGroupsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateGroupsResponder handles the response to the UpdateGroups request. The method always +// closes the http.Response Body. +func (client IPGroupsClient) UpdateGroupsResponder(resp *http.Response) (result IPGroup, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2020-07-01/network/loadbalancerbackendaddresspools.go new file mode 100644 index 000000000000..020714cf584a --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/loadbalancerbackendaddresspools.go @@ -0,0 +1,397 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// LoadBalancerBackendAddressPoolsClient is the network Client +type LoadBalancerBackendAddressPoolsClient struct { + BaseClient +} + +// NewLoadBalancerBackendAddressPoolsClient creates an instance of the LoadBalancerBackendAddressPoolsClient client. +func NewLoadBalancerBackendAddressPoolsClient(subscriptionID string) LoadBalancerBackendAddressPoolsClient { + return NewLoadBalancerBackendAddressPoolsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewLoadBalancerBackendAddressPoolsClientWithBaseURI creates an instance of the LoadBalancerBackendAddressPoolsClient +// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI +// (sovereign clouds, Azure stack). +func NewLoadBalancerBackendAddressPoolsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerBackendAddressPoolsClient { + return LoadBalancerBackendAddressPoolsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a load balancer backend address pool. +// Parameters: +// resourceGroupName - the name of the resource group. +// loadBalancerName - the name of the load balancer. +// backendAddressPoolName - the name of the backend address pool. +// parameters - parameters supplied to the create or update load balancer backend address pool operation. +func (client LoadBalancerBackendAddressPoolsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string, parameters BackendAddressPool) (result LoadBalancerBackendAddressPoolsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerBackendAddressPoolsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, loadBalancerName, backendAddressPoolName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client LoadBalancerBackendAddressPoolsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string, parameters BackendAddressPool) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "backendAddressPoolName": autorest.Encode("path", backendAddressPoolName), + "loadBalancerName": autorest.Encode("path", loadBalancerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + parameters.Type = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client LoadBalancerBackendAddressPoolsClient) CreateOrUpdateSender(req *http.Request) (future LoadBalancerBackendAddressPoolsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client LoadBalancerBackendAddressPoolsClient) CreateOrUpdateResponder(resp *http.Response) (result BackendAddressPool, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified load balancer backend address pool. +// Parameters: +// resourceGroupName - the name of the resource group. +// loadBalancerName - the name of the load balancer. +// backendAddressPoolName - the name of the backend address pool. +func (client LoadBalancerBackendAddressPoolsClient) Delete(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (result LoadBalancerBackendAddressPoolsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerBackendAddressPoolsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, loadBalancerName, backendAddressPoolName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client LoadBalancerBackendAddressPoolsClient) DeletePreparer(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "backendAddressPoolName": autorest.Encode("path", backendAddressPoolName), + "loadBalancerName": autorest.Encode("path", loadBalancerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client LoadBalancerBackendAddressPoolsClient) DeleteSender(req *http.Request) (future LoadBalancerBackendAddressPoolsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client LoadBalancerBackendAddressPoolsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets load balancer backend address pool. +// Parameters: +// resourceGroupName - the name of the resource group. +// loadBalancerName - the name of the load balancer. +// backendAddressPoolName - the name of the backend address pool. +func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (result BackendAddressPool, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerBackendAddressPoolsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, loadBalancerName, backendAddressPoolName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client LoadBalancerBackendAddressPoolsClient) GetPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "backendAddressPoolName": autorest.Encode("path", backendAddressPoolName), + "loadBalancerName": autorest.Encode("path", loadBalancerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client LoadBalancerBackendAddressPoolsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client LoadBalancerBackendAddressPoolsClient) GetResponder(resp *http.Response) (result BackendAddressPool, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all the load balancer backed address pools. +// Parameters: +// resourceGroupName - the name of the resource group. +// loadBalancerName - the name of the load balancer. +func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result LoadBalancerBackendAddressPoolListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerBackendAddressPoolsClient.List") + defer func() { + sc := -1 + if result.lbbaplr.Response.Response != nil { + sc = result.lbbaplr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, loadBalancerName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.lbbaplr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure sending request") + return + } + + result.lbbaplr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request") + return + } + if result.lbbaplr.hasNextLink() && result.lbbaplr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client LoadBalancerBackendAddressPoolsClient) ListPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "loadBalancerName": autorest.Encode("path", loadBalancerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client LoadBalancerBackendAddressPoolsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client LoadBalancerBackendAddressPoolsClient) ListResponder(resp *http.Response) (result LoadBalancerBackendAddressPoolListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context.Context, lastResults LoadBalancerBackendAddressPoolListResult) (result LoadBalancerBackendAddressPoolListResult, err error) { + req, err := lastResults.loadBalancerBackendAddressPoolListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client LoadBalancerBackendAddressPoolsClient) ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result LoadBalancerBackendAddressPoolListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerBackendAddressPoolsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, loadBalancerName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2020-07-01/network/loadbalancerfrontendipconfigurations.go new file mode 100644 index 000000000000..27b7b94197bc --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/loadbalancerfrontendipconfigurations.go @@ -0,0 +1,240 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// LoadBalancerFrontendIPConfigurationsClient is the network Client +type LoadBalancerFrontendIPConfigurationsClient struct { + BaseClient +} + +// NewLoadBalancerFrontendIPConfigurationsClient creates an instance of the LoadBalancerFrontendIPConfigurationsClient +// client. +func NewLoadBalancerFrontendIPConfigurationsClient(subscriptionID string) LoadBalancerFrontendIPConfigurationsClient { + return NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI creates an instance of the +// LoadBalancerFrontendIPConfigurationsClient client using a custom endpoint. Use this when interacting with an Azure +// cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerFrontendIPConfigurationsClient { + return LoadBalancerFrontendIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get gets load balancer frontend IP configuration. +// Parameters: +// resourceGroupName - the name of the resource group. +// loadBalancerName - the name of the load balancer. +// frontendIPConfigurationName - the name of the frontend IP configuration. +func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, frontendIPConfigurationName string) (result FrontendIPConfiguration, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerFrontendIPConfigurationsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, loadBalancerName, frontendIPConfigurationName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client LoadBalancerFrontendIPConfigurationsClient) GetPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string, frontendIPConfigurationName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "frontendIPConfigurationName": autorest.Encode("path", frontendIPConfigurationName), + "loadBalancerName": autorest.Encode("path", loadBalancerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations/{frontendIPConfigurationName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client LoadBalancerFrontendIPConfigurationsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client LoadBalancerFrontendIPConfigurationsClient) GetResponder(resp *http.Response) (result FrontendIPConfiguration, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all the load balancer frontend IP configurations. +// Parameters: +// resourceGroupName - the name of the resource group. +// loadBalancerName - the name of the load balancer. +func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result LoadBalancerFrontendIPConfigurationListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerFrontendIPConfigurationsClient.List") + defer func() { + sc := -1 + if result.lbficlr.Response.Response != nil { + sc = result.lbficlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, loadBalancerName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.lbficlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure sending request") + return + } + + result.lbficlr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request") + return + } + if result.lbficlr.hasNextLink() && result.lbficlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client LoadBalancerFrontendIPConfigurationsClient) ListPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "loadBalancerName": autorest.Encode("path", loadBalancerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client LoadBalancerFrontendIPConfigurationsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client LoadBalancerFrontendIPConfigurationsClient) ListResponder(resp *http.Response) (result LoadBalancerFrontendIPConfigurationListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx context.Context, lastResults LoadBalancerFrontendIPConfigurationListResult) (result LoadBalancerFrontendIPConfigurationListResult, err error) { + req, err := lastResults.loadBalancerFrontendIPConfigurationListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client LoadBalancerFrontendIPConfigurationsClient) ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result LoadBalancerFrontendIPConfigurationListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerFrontendIPConfigurationsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, loadBalancerName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2020-07-01/network/loadbalancerloadbalancingrules.go new file mode 100644 index 000000000000..fbdb8e5561b1 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/loadbalancerloadbalancingrules.go @@ -0,0 +1,239 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// LoadBalancerLoadBalancingRulesClient is the network Client +type LoadBalancerLoadBalancingRulesClient struct { + BaseClient +} + +// NewLoadBalancerLoadBalancingRulesClient creates an instance of the LoadBalancerLoadBalancingRulesClient client. +func NewLoadBalancerLoadBalancingRulesClient(subscriptionID string) LoadBalancerLoadBalancingRulesClient { + return NewLoadBalancerLoadBalancingRulesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewLoadBalancerLoadBalancingRulesClientWithBaseURI creates an instance of the LoadBalancerLoadBalancingRulesClient +// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI +// (sovereign clouds, Azure stack). +func NewLoadBalancerLoadBalancingRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerLoadBalancingRulesClient { + return LoadBalancerLoadBalancingRulesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get gets the specified load balancer load balancing rule. +// Parameters: +// resourceGroupName - the name of the resource group. +// loadBalancerName - the name of the load balancer. +// loadBalancingRuleName - the name of the load balancing rule. +func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, loadBalancingRuleName string) (result LoadBalancingRule, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerLoadBalancingRulesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, loadBalancerName, loadBalancingRuleName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client LoadBalancerLoadBalancingRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string, loadBalancingRuleName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "loadBalancerName": autorest.Encode("path", loadBalancerName), + "loadBalancingRuleName": autorest.Encode("path", loadBalancingRuleName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules/{loadBalancingRuleName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client LoadBalancerLoadBalancingRulesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client LoadBalancerLoadBalancingRulesClient) GetResponder(resp *http.Response) (result LoadBalancingRule, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all the load balancing rules in a load balancer. +// Parameters: +// resourceGroupName - the name of the resource group. +// loadBalancerName - the name of the load balancer. +func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result LoadBalancerLoadBalancingRuleListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerLoadBalancingRulesClient.List") + defer func() { + sc := -1 + if result.lblbrlr.Response.Response != nil { + sc = result.lblbrlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, loadBalancerName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.lblbrlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure sending request") + return + } + + result.lblbrlr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request") + return + } + if result.lblbrlr.hasNextLink() && result.lblbrlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client LoadBalancerLoadBalancingRulesClient) ListPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "loadBalancerName": autorest.Encode("path", loadBalancerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client LoadBalancerLoadBalancingRulesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client LoadBalancerLoadBalancingRulesClient) ListResponder(resp *http.Response) (result LoadBalancerLoadBalancingRuleListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.Context, lastResults LoadBalancerLoadBalancingRuleListResult) (result LoadBalancerLoadBalancingRuleListResult, err error) { + req, err := lastResults.loadBalancerLoadBalancingRuleListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client LoadBalancerLoadBalancingRulesClient) ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result LoadBalancerLoadBalancingRuleListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerLoadBalancingRulesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, loadBalancerName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2020-07-01/network/loadbalancernetworkinterfaces.go new file mode 100644 index 000000000000..af920cbab8f9 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/loadbalancernetworkinterfaces.go @@ -0,0 +1,161 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// LoadBalancerNetworkInterfacesClient is the network Client +type LoadBalancerNetworkInterfacesClient struct { + BaseClient +} + +// NewLoadBalancerNetworkInterfacesClient creates an instance of the LoadBalancerNetworkInterfacesClient client. +func NewLoadBalancerNetworkInterfacesClient(subscriptionID string) LoadBalancerNetworkInterfacesClient { + return NewLoadBalancerNetworkInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewLoadBalancerNetworkInterfacesClientWithBaseURI creates an instance of the LoadBalancerNetworkInterfacesClient +// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI +// (sovereign clouds, Azure stack). +func NewLoadBalancerNetworkInterfacesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerNetworkInterfacesClient { + return LoadBalancerNetworkInterfacesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List gets associated load balancer network interfaces. +// Parameters: +// resourceGroupName - the name of the resource group. +// loadBalancerName - the name of the load balancer. +func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result InterfaceListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerNetworkInterfacesClient.List") + defer func() { + sc := -1 + if result.ilr.Response.Response != nil { + sc = result.ilr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, loadBalancerName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.ilr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure sending request") + return + } + + result.ilr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request") + return + } + if result.ilr.hasNextLink() && result.ilr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client LoadBalancerNetworkInterfacesClient) ListPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "loadBalancerName": autorest.Encode("path", loadBalancerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/networkInterfaces", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client LoadBalancerNetworkInterfacesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client LoadBalancerNetworkInterfacesClient) ListResponder(resp *http.Response) (result InterfaceListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Context, lastResults InterfaceListResult) (result InterfaceListResult, err error) { + req, err := lastResults.interfaceListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client LoadBalancerNetworkInterfacesClient) ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result InterfaceListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerNetworkInterfacesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, loadBalancerName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2020-07-01/network/loadbalanceroutboundrules.go new file mode 100644 index 000000000000..23ad90741000 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/loadbalanceroutboundrules.go @@ -0,0 +1,239 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// LoadBalancerOutboundRulesClient is the network Client +type LoadBalancerOutboundRulesClient struct { + BaseClient +} + +// NewLoadBalancerOutboundRulesClient creates an instance of the LoadBalancerOutboundRulesClient client. +func NewLoadBalancerOutboundRulesClient(subscriptionID string) LoadBalancerOutboundRulesClient { + return NewLoadBalancerOutboundRulesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewLoadBalancerOutboundRulesClientWithBaseURI creates an instance of the LoadBalancerOutboundRulesClient client +// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign +// clouds, Azure stack). +func NewLoadBalancerOutboundRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerOutboundRulesClient { + return LoadBalancerOutboundRulesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get gets the specified load balancer outbound rule. +// Parameters: +// resourceGroupName - the name of the resource group. +// loadBalancerName - the name of the load balancer. +// outboundRuleName - the name of the outbound rule. +func (client LoadBalancerOutboundRulesClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, outboundRuleName string) (result OutboundRule, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerOutboundRulesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, loadBalancerName, outboundRuleName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client LoadBalancerOutboundRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string, outboundRuleName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "loadBalancerName": autorest.Encode("path", loadBalancerName), + "outboundRuleName": autorest.Encode("path", outboundRuleName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/outboundRules/{outboundRuleName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client LoadBalancerOutboundRulesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client LoadBalancerOutboundRulesClient) GetResponder(resp *http.Response) (result OutboundRule, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all the outbound rules in a load balancer. +// Parameters: +// resourceGroupName - the name of the resource group. +// loadBalancerName - the name of the load balancer. +func (client LoadBalancerOutboundRulesClient) List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result LoadBalancerOutboundRuleListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerOutboundRulesClient.List") + defer func() { + sc := -1 + if result.lborlr.Response.Response != nil { + sc = result.lborlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, loadBalancerName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.lborlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "List", resp, "Failure sending request") + return + } + + result.lborlr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "List", resp, "Failure responding to request") + return + } + if result.lborlr.hasNextLink() && result.lborlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client LoadBalancerOutboundRulesClient) ListPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "loadBalancerName": autorest.Encode("path", loadBalancerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/outboundRules", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client LoadBalancerOutboundRulesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client LoadBalancerOutboundRulesClient) ListResponder(resp *http.Response) (result LoadBalancerOutboundRuleListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client LoadBalancerOutboundRulesClient) listNextResults(ctx context.Context, lastResults LoadBalancerOutboundRuleListResult) (result LoadBalancerOutboundRuleListResult, err error) { + req, err := lastResults.loadBalancerOutboundRuleListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client LoadBalancerOutboundRulesClient) ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result LoadBalancerOutboundRuleListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerOutboundRulesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, loadBalancerName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/loadbalancerprobes.go b/services/network/mgmt/2020-07-01/network/loadbalancerprobes.go new file mode 100644 index 000000000000..09b1e8d3b4c6 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/loadbalancerprobes.go @@ -0,0 +1,239 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// LoadBalancerProbesClient is the network Client +type LoadBalancerProbesClient struct { + BaseClient +} + +// NewLoadBalancerProbesClient creates an instance of the LoadBalancerProbesClient client. +func NewLoadBalancerProbesClient(subscriptionID string) LoadBalancerProbesClient { + return NewLoadBalancerProbesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewLoadBalancerProbesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerProbesClient { + return LoadBalancerProbesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get gets load balancer probe. +// Parameters: +// resourceGroupName - the name of the resource group. +// loadBalancerName - the name of the load balancer. +// probeName - the name of the probe. +func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, probeName string) (result Probe, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerProbesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, loadBalancerName, probeName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client LoadBalancerProbesClient) GetPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string, probeName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "loadBalancerName": autorest.Encode("path", loadBalancerName), + "probeName": autorest.Encode("path", probeName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client LoadBalancerProbesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client LoadBalancerProbesClient) GetResponder(resp *http.Response) (result Probe, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all the load balancer probes. +// Parameters: +// resourceGroupName - the name of the resource group. +// loadBalancerName - the name of the load balancer. +func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result LoadBalancerProbeListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerProbesClient.List") + defer func() { + sc := -1 + if result.lbplr.Response.Response != nil { + sc = result.lbplr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, loadBalancerName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.lbplr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure sending request") + return + } + + result.lbplr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request") + return + } + if result.lbplr.hasNextLink() && result.lbplr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client LoadBalancerProbesClient) ListPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "loadBalancerName": autorest.Encode("path", loadBalancerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client LoadBalancerProbesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client LoadBalancerProbesClient) ListResponder(resp *http.Response) (result LoadBalancerProbeListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, lastResults LoadBalancerProbeListResult) (result LoadBalancerProbeListResult, err error) { + req, err := lastResults.loadBalancerProbeListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client LoadBalancerProbesClient) ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result LoadBalancerProbeListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerProbesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, loadBalancerName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/loadbalancers.go b/services/network/mgmt/2020-07-01/network/loadbalancers.go new file mode 100644 index 000000000000..b1d34006aabb --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/loadbalancers.go @@ -0,0 +1,593 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// LoadBalancersClient is the network Client +type LoadBalancersClient struct { + BaseClient +} + +// NewLoadBalancersClient creates an instance of the LoadBalancersClient client. +func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient { + return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient { + return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a load balancer. +// Parameters: +// resourceGroupName - the name of the resource group. +// loadBalancerName - the name of the load balancer. +// parameters - parameters supplied to the create or update load balancer operation. +func (client LoadBalancersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters LoadBalancer) (result LoadBalancersCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancersClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.ExtendedLocation", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.ExtendedLocation.Name", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.ExtendedLocation.Type", Name: validation.Null, Rule: true, Chain: nil}, + }}}}}); err != nil { + return result, validation.NewError("network.LoadBalancersClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, loadBalancerName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client LoadBalancersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters LoadBalancer) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "loadBalancerName": autorest.Encode("path", loadBalancerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client LoadBalancersClient) CreateOrUpdateSender(req *http.Request) (future LoadBalancersCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client LoadBalancersClient) CreateOrUpdateResponder(resp *http.Response) (result LoadBalancer, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified load balancer. +// Parameters: +// resourceGroupName - the name of the resource group. +// loadBalancerName - the name of the load balancer. +func (client LoadBalancersClient) Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result LoadBalancersDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancersClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, loadBalancerName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client LoadBalancersClient) DeletePreparer(ctx context.Context, resourceGroupName string, loadBalancerName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "loadBalancerName": autorest.Encode("path", loadBalancerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client LoadBalancersClient) DeleteSender(req *http.Request) (future LoadBalancersDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client LoadBalancersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified load balancer. +// Parameters: +// resourceGroupName - the name of the resource group. +// loadBalancerName - the name of the load balancer. +// expand - expands referenced resources. +func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result LoadBalancer, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancersClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, loadBalancerName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client LoadBalancersClient) GetPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "loadBalancerName": autorest.Encode("path", loadBalancerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client LoadBalancersClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client LoadBalancersClient) GetResponder(resp *http.Response) (result LoadBalancer, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all the load balancers in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName string) (result LoadBalancerListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancersClient.List") + defer func() { + sc := -1 + if result.lblr.Response.Response != nil { + sc = result.lblr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.lblr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure sending request") + return + } + + result.lblr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request") + return + } + if result.lblr.hasNextLink() && result.lblr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client LoadBalancersClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client LoadBalancersClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client LoadBalancersClient) ListResponder(resp *http.Response) (result LoadBalancerListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResults LoadBalancerListResult) (result LoadBalancerListResult, err error) { + req, err := lastResults.loadBalancerListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client LoadBalancersClient) ListComplete(ctx context.Context, resourceGroupName string) (result LoadBalancerListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancersClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName) + return +} + +// ListAll gets all the load balancers in a subscription. +func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalancerListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancersClient.ListAll") + defer func() { + sc := -1 + if result.lblr.Response.Response != nil { + sc = result.lblr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listAllNextResults + req, err := client.ListAllPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", nil, "Failure preparing request") + return + } + + resp, err := client.ListAllSender(req) + if err != nil { + result.lblr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure sending request") + return + } + + result.lblr, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request") + return + } + if result.lblr.hasNextLink() && result.lblr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListAllPreparer prepares the ListAll request. +func (client LoadBalancersClient) ListAllPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/loadBalancers", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAllSender sends the ListAll request. The method will close the +// http.Response Body if it receives an error. +func (client LoadBalancersClient) ListAllSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAllResponder handles the response to the ListAll request. The method always +// closes the http.Response Body. +func (client LoadBalancersClient) ListAllResponder(resp *http.Response) (result LoadBalancerListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listAllNextResults retrieves the next set of results, if any. +func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastResults LoadBalancerListResult) (result LoadBalancerListResult, err error) { + req, err := lastResults.loadBalancerListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListAllSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure sending next results request") + } + result, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListAllComplete enumerates all values, automatically crossing page boundaries as required. +func (client LoadBalancersClient) ListAllComplete(ctx context.Context) (result LoadBalancerListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancersClient.ListAll") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListAll(ctx) + return +} + +// UpdateTags updates a load balancer tags. +// Parameters: +// resourceGroupName - the name of the resource group. +// loadBalancerName - the name of the load balancer. +// parameters - parameters supplied to update load balancer tags. +func (client LoadBalancersClient) UpdateTags(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters TagsObject) (result LoadBalancer, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancersClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, loadBalancerName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client LoadBalancersClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "loadBalancerName": autorest.Encode("path", loadBalancerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client LoadBalancersClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client LoadBalancersClient) UpdateTagsResponder(resp *http.Response) (result LoadBalancer, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/localnetworkgateways.go b/services/network/mgmt/2020-07-01/network/localnetworkgateways.go new file mode 100644 index 000000000000..678f8d2ad436 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/localnetworkgateways.go @@ -0,0 +1,501 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// LocalNetworkGatewaysClient is the network Client +type LocalNetworkGatewaysClient struct { + BaseClient +} + +// NewLocalNetworkGatewaysClient creates an instance of the LocalNetworkGatewaysClient client. +func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysClient { + return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient { + return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a local network gateway in the specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// localNetworkGatewayName - the name of the local network gateway. +// parameters - parameters supplied to the create or update local network gateway operation. +func (client LocalNetworkGatewaysClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters LocalNetworkGateway) (result LocalNetworkGatewaysCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LocalNetworkGatewaysClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: localNetworkGatewayName, + Constraints: []validation.Constraint{{Target: "localNetworkGatewayName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.LocalNetworkGatewayPropertiesFormat", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "parameters.LocalNetworkGatewayPropertiesFormat.BgpSettings", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.LocalNetworkGatewayPropertiesFormat.BgpSettings.Asn", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.LocalNetworkGatewayPropertiesFormat.BgpSettings.Asn", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, + {Target: "parameters.LocalNetworkGatewayPropertiesFormat.BgpSettings.Asn", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + }}, + }}, + }}}}}); err != nil { + return result, validation.NewError("network.LocalNetworkGatewaysClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, localNetworkGatewayName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client LocalNetworkGatewaysClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters LocalNetworkGateway) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "localNetworkGatewayName": autorest.Encode("path", localNetworkGatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client LocalNetworkGatewaysClient) CreateOrUpdateSender(req *http.Request) (future LocalNetworkGatewaysCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client LocalNetworkGatewaysClient) CreateOrUpdateResponder(resp *http.Response) (result LocalNetworkGateway, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified local network gateway. +// Parameters: +// resourceGroupName - the name of the resource group. +// localNetworkGatewayName - the name of the local network gateway. +func (client LocalNetworkGatewaysClient) Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result LocalNetworkGatewaysDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LocalNetworkGatewaysClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: localNetworkGatewayName, + Constraints: []validation.Constraint{{Target: "localNetworkGatewayName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("network.LocalNetworkGatewaysClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, localNetworkGatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client LocalNetworkGatewaysClient) DeletePreparer(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "localNetworkGatewayName": autorest.Encode("path", localNetworkGatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client LocalNetworkGatewaysClient) DeleteSender(req *http.Request) (future LocalNetworkGatewaysDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client LocalNetworkGatewaysClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified local network gateway in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// localNetworkGatewayName - the name of the local network gateway. +func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result LocalNetworkGateway, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LocalNetworkGatewaysClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: localNetworkGatewayName, + Constraints: []validation.Constraint{{Target: "localNetworkGatewayName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("network.LocalNetworkGatewaysClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, localNetworkGatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client LocalNetworkGatewaysClient) GetPreparer(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "localNetworkGatewayName": autorest.Encode("path", localNetworkGatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client LocalNetworkGatewaysClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client LocalNetworkGatewaysClient) GetResponder(resp *http.Response) (result LocalNetworkGateway, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all the local network gateways in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroupName string) (result LocalNetworkGatewayListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LocalNetworkGatewaysClient.List") + defer func() { + sc := -1 + if result.lnglr.Response.Response != nil { + sc = result.lnglr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.lnglr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure sending request") + return + } + + result.lnglr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request") + return + } + if result.lnglr.hasNextLink() && result.lnglr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client LocalNetworkGatewaysClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client LocalNetworkGatewaysClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client LocalNetworkGatewaysClient) ListResponder(resp *http.Response) (result LocalNetworkGatewayListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, lastResults LocalNetworkGatewayListResult) (result LocalNetworkGatewayListResult, err error) { + req, err := lastResults.localNetworkGatewayListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client LocalNetworkGatewaysClient) ListComplete(ctx context.Context, resourceGroupName string) (result LocalNetworkGatewayListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LocalNetworkGatewaysClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName) + return +} + +// UpdateTags updates a local network gateway tags. +// Parameters: +// resourceGroupName - the name of the resource group. +// localNetworkGatewayName - the name of the local network gateway. +// parameters - parameters supplied to update local network gateway tags. +func (client LocalNetworkGatewaysClient) UpdateTags(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters TagsObject) (result LocalNetworkGateway, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LocalNetworkGatewaysClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: localNetworkGatewayName, + Constraints: []validation.Constraint{{Target: "localNetworkGatewayName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("network.LocalNetworkGatewaysClient", "UpdateTags", err.Error()) + } + + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, localNetworkGatewayName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client LocalNetworkGatewaysClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "localNetworkGatewayName": autorest.Encode("path", localNetworkGatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client LocalNetworkGatewaysClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client LocalNetworkGatewaysClient) UpdateTagsResponder(resp *http.Response) (result LocalNetworkGateway, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/models.go b/services/network/mgmt/2020-07-01/network/models.go new file mode 100644 index 000000000000..ddac840f46c6 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/models.go @@ -0,0 +1,44484 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "encoding/json" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/date" + "github.com/Azure/go-autorest/autorest/to" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// The package's fully qualified name. +const fqdn = "github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-07-01/network" + +// AadAuthenticationParameters AAD Vpn authentication type related parameters. +type AadAuthenticationParameters struct { + // AadTenant - AAD Vpn authentication parameter AAD tenant. + AadTenant *string `json:"aadTenant,omitempty"` + // AadAudience - AAD Vpn authentication parameter AAD audience. + AadAudience *string `json:"aadAudience,omitempty"` + // AadIssuer - AAD Vpn authentication parameter AAD issuer. + AadIssuer *string `json:"aadIssuer,omitempty"` +} + +// AddressSpace addressSpace contains an array of IP address ranges that can be used by subnets of the +// virtual network. +type AddressSpace struct { + // AddressPrefixes - A list of address blocks reserved for this virtual network in CIDR notation. + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` +} + +// ApplicationGateway application gateway resource. +type ApplicationGateway struct { + autorest.Response `json:"-"` + // ApplicationGatewayPropertiesFormat - Properties of the application gateway. + *ApplicationGatewayPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Zones - A list of availability zones denoting where the resource needs to come from. + Zones *[]string `json:"zones,omitempty"` + // Identity - The identity of the application gateway, if configured. + Identity *ManagedServiceIdentity `json:"identity,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for ApplicationGateway. +func (ag ApplicationGateway) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ag.ApplicationGatewayPropertiesFormat != nil { + objectMap["properties"] = ag.ApplicationGatewayPropertiesFormat + } + if ag.Zones != nil { + objectMap["zones"] = ag.Zones + } + if ag.Identity != nil { + objectMap["identity"] = ag.Identity + } + if ag.ID != nil { + objectMap["id"] = ag.ID + } + if ag.Location != nil { + objectMap["location"] = ag.Location + } + if ag.Tags != nil { + objectMap["tags"] = ag.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationGateway struct. +func (ag *ApplicationGateway) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationGatewayPropertiesFormat ApplicationGatewayPropertiesFormat + err = json.Unmarshal(*v, &applicationGatewayPropertiesFormat) + if err != nil { + return err + } + ag.ApplicationGatewayPropertiesFormat = &applicationGatewayPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + ag.Etag = &etag + } + case "zones": + if v != nil { + var zones []string + err = json.Unmarshal(*v, &zones) + if err != nil { + return err + } + ag.Zones = &zones + } + case "identity": + if v != nil { + var identity ManagedServiceIdentity + err = json.Unmarshal(*v, &identity) + if err != nil { + return err + } + ag.Identity = &identity + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + ag.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ag.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ag.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + ag.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + ag.Tags = tags + } + } + } + + return nil +} + +// ApplicationGatewayAuthenticationCertificate authentication certificates of an application gateway. +type ApplicationGatewayAuthenticationCertificate struct { + // ApplicationGatewayAuthenticationCertificatePropertiesFormat - Properties of the application gateway authentication certificate. + *ApplicationGatewayAuthenticationCertificatePropertiesFormat `json:"properties,omitempty"` + // Name - Name of the authentication certificate that is unique within an Application Gateway. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayAuthenticationCertificate. +func (agac ApplicationGatewayAuthenticationCertificate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agac.ApplicationGatewayAuthenticationCertificatePropertiesFormat != nil { + objectMap["properties"] = agac.ApplicationGatewayAuthenticationCertificatePropertiesFormat + } + if agac.Name != nil { + objectMap["name"] = agac.Name + } + if agac.ID != nil { + objectMap["id"] = agac.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayAuthenticationCertificate struct. +func (agac *ApplicationGatewayAuthenticationCertificate) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationGatewayAuthenticationCertificatePropertiesFormat ApplicationGatewayAuthenticationCertificatePropertiesFormat + err = json.Unmarshal(*v, &applicationGatewayAuthenticationCertificatePropertiesFormat) + if err != nil { + return err + } + agac.ApplicationGatewayAuthenticationCertificatePropertiesFormat = &applicationGatewayAuthenticationCertificatePropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + agac.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + agac.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + agac.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + agac.ID = &ID + } + } + } + + return nil +} + +// ApplicationGatewayAuthenticationCertificatePropertiesFormat authentication certificates properties of an +// application gateway. +type ApplicationGatewayAuthenticationCertificatePropertiesFormat struct { + // Data - Certificate public data. + Data *string `json:"data,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the authentication certificate resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayAuthenticationCertificatePropertiesFormat. +func (agacpf ApplicationGatewayAuthenticationCertificatePropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agacpf.Data != nil { + objectMap["data"] = agacpf.Data + } + return json.Marshal(objectMap) +} + +// ApplicationGatewayAutoscaleConfiguration application Gateway autoscale configuration. +type ApplicationGatewayAutoscaleConfiguration struct { + // MinCapacity - Lower bound on number of Application Gateway capacity. + MinCapacity *int32 `json:"minCapacity,omitempty"` + // MaxCapacity - Upper bound on number of Application Gateway capacity. + MaxCapacity *int32 `json:"maxCapacity,omitempty"` +} + +// ApplicationGatewayAvailableSslOptions response for ApplicationGatewayAvailableSslOptions API service +// call. +type ApplicationGatewayAvailableSslOptions struct { + autorest.Response `json:"-"` + // ApplicationGatewayAvailableSslOptionsPropertiesFormat - Properties of the application gateway available SSL options. + *ApplicationGatewayAvailableSslOptionsPropertiesFormat `json:"properties,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayAvailableSslOptions. +func (agaso ApplicationGatewayAvailableSslOptions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agaso.ApplicationGatewayAvailableSslOptionsPropertiesFormat != nil { + objectMap["properties"] = agaso.ApplicationGatewayAvailableSslOptionsPropertiesFormat + } + if agaso.ID != nil { + objectMap["id"] = agaso.ID + } + if agaso.Location != nil { + objectMap["location"] = agaso.Location + } + if agaso.Tags != nil { + objectMap["tags"] = agaso.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayAvailableSslOptions struct. +func (agaso *ApplicationGatewayAvailableSslOptions) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationGatewayAvailableSslOptionsPropertiesFormat ApplicationGatewayAvailableSslOptionsPropertiesFormat + err = json.Unmarshal(*v, &applicationGatewayAvailableSslOptionsPropertiesFormat) + if err != nil { + return err + } + agaso.ApplicationGatewayAvailableSslOptionsPropertiesFormat = &applicationGatewayAvailableSslOptionsPropertiesFormat + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + agaso.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + agaso.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + agaso.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + agaso.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + agaso.Tags = tags + } + } + } + + return nil +} + +// ApplicationGatewayAvailableSslOptionsPropertiesFormat properties of +// ApplicationGatewayAvailableSslOptions. +type ApplicationGatewayAvailableSslOptionsPropertiesFormat struct { + // PredefinedPolicies - List of available Ssl predefined policy. + PredefinedPolicies *[]SubResource `json:"predefinedPolicies,omitempty"` + // DefaultPolicy - Name of the Ssl predefined policy applied by default to application gateway. Possible values include: 'AppGwSslPolicy20150501', 'AppGwSslPolicy20170401', 'AppGwSslPolicy20170401S' + DefaultPolicy ApplicationGatewaySslPolicyName `json:"defaultPolicy,omitempty"` + // AvailableCipherSuites - List of available Ssl cipher suites. + AvailableCipherSuites *[]ApplicationGatewaySslCipherSuite `json:"availableCipherSuites,omitempty"` + // AvailableProtocols - List of available Ssl protocols. + AvailableProtocols *[]ApplicationGatewaySslProtocol `json:"availableProtocols,omitempty"` +} + +// ApplicationGatewayAvailableSslPredefinedPolicies response for ApplicationGatewayAvailableSslOptions API +// service call. +type ApplicationGatewayAvailableSslPredefinedPolicies struct { + autorest.Response `json:"-"` + // Value - List of available Ssl predefined policy. + Value *[]ApplicationGatewaySslPredefinedPolicy `json:"value,omitempty"` + // NextLink - URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// ApplicationGatewayAvailableSslPredefinedPoliciesIterator provides access to a complete listing of +// ApplicationGatewaySslPredefinedPolicy values. +type ApplicationGatewayAvailableSslPredefinedPoliciesIterator struct { + i int + page ApplicationGatewayAvailableSslPredefinedPoliciesPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ApplicationGatewayAvailableSslPredefinedPoliciesIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewayAvailableSslPredefinedPoliciesIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ApplicationGatewayAvailableSslPredefinedPoliciesIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ApplicationGatewayAvailableSslPredefinedPoliciesIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ApplicationGatewayAvailableSslPredefinedPoliciesIterator) Response() ApplicationGatewayAvailableSslPredefinedPolicies { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ApplicationGatewayAvailableSslPredefinedPoliciesIterator) Value() ApplicationGatewaySslPredefinedPolicy { + if !iter.page.NotDone() { + return ApplicationGatewaySslPredefinedPolicy{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ApplicationGatewayAvailableSslPredefinedPoliciesIterator type. +func NewApplicationGatewayAvailableSslPredefinedPoliciesIterator(page ApplicationGatewayAvailableSslPredefinedPoliciesPage) ApplicationGatewayAvailableSslPredefinedPoliciesIterator { + return ApplicationGatewayAvailableSslPredefinedPoliciesIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (agaspp ApplicationGatewayAvailableSslPredefinedPolicies) IsEmpty() bool { + return agaspp.Value == nil || len(*agaspp.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (agaspp ApplicationGatewayAvailableSslPredefinedPolicies) hasNextLink() bool { + return agaspp.NextLink != nil && len(*agaspp.NextLink) != 0 +} + +// applicationGatewayAvailableSslPredefinedPoliciesPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (agaspp ApplicationGatewayAvailableSslPredefinedPolicies) applicationGatewayAvailableSslPredefinedPoliciesPreparer(ctx context.Context) (*http.Request, error) { + if !agaspp.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(agaspp.NextLink))) +} + +// ApplicationGatewayAvailableSslPredefinedPoliciesPage contains a page of +// ApplicationGatewaySslPredefinedPolicy values. +type ApplicationGatewayAvailableSslPredefinedPoliciesPage struct { + fn func(context.Context, ApplicationGatewayAvailableSslPredefinedPolicies) (ApplicationGatewayAvailableSslPredefinedPolicies, error) + agaspp ApplicationGatewayAvailableSslPredefinedPolicies +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ApplicationGatewayAvailableSslPredefinedPoliciesPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewayAvailableSslPredefinedPoliciesPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.agaspp) + if err != nil { + return err + } + page.agaspp = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ApplicationGatewayAvailableSslPredefinedPoliciesPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ApplicationGatewayAvailableSslPredefinedPoliciesPage) NotDone() bool { + return !page.agaspp.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ApplicationGatewayAvailableSslPredefinedPoliciesPage) Response() ApplicationGatewayAvailableSslPredefinedPolicies { + return page.agaspp +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ApplicationGatewayAvailableSslPredefinedPoliciesPage) Values() []ApplicationGatewaySslPredefinedPolicy { + if page.agaspp.IsEmpty() { + return nil + } + return *page.agaspp.Value +} + +// Creates a new instance of the ApplicationGatewayAvailableSslPredefinedPoliciesPage type. +func NewApplicationGatewayAvailableSslPredefinedPoliciesPage(cur ApplicationGatewayAvailableSslPredefinedPolicies, getNextPage func(context.Context, ApplicationGatewayAvailableSslPredefinedPolicies) (ApplicationGatewayAvailableSslPredefinedPolicies, error)) ApplicationGatewayAvailableSslPredefinedPoliciesPage { + return ApplicationGatewayAvailableSslPredefinedPoliciesPage{ + fn: getNextPage, + agaspp: cur, + } +} + +// ApplicationGatewayAvailableWafRuleSetsResult response for ApplicationGatewayAvailableWafRuleSets API +// service call. +type ApplicationGatewayAvailableWafRuleSetsResult struct { + autorest.Response `json:"-"` + // Value - The list of application gateway rule sets. + Value *[]ApplicationGatewayFirewallRuleSet `json:"value,omitempty"` +} + +// ApplicationGatewayBackendAddress backend address of an application gateway. +type ApplicationGatewayBackendAddress struct { + // Fqdn - Fully qualified domain name (FQDN). + Fqdn *string `json:"fqdn,omitempty"` + // IPAddress - IP address. + IPAddress *string `json:"ipAddress,omitempty"` +} + +// ApplicationGatewayBackendAddressPool backend Address Pool of an application gateway. +type ApplicationGatewayBackendAddressPool struct { + // ApplicationGatewayBackendAddressPoolPropertiesFormat - Properties of the application gateway backend address pool. + *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + // Name - Name of the backend address pool that is unique within an Application Gateway. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayBackendAddressPool. +func (agbap ApplicationGatewayBackendAddressPool) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agbap.ApplicationGatewayBackendAddressPoolPropertiesFormat != nil { + objectMap["properties"] = agbap.ApplicationGatewayBackendAddressPoolPropertiesFormat + } + if agbap.Name != nil { + objectMap["name"] = agbap.Name + } + if agbap.ID != nil { + objectMap["id"] = agbap.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayBackendAddressPool struct. +func (agbap *ApplicationGatewayBackendAddressPool) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationGatewayBackendAddressPoolPropertiesFormat ApplicationGatewayBackendAddressPoolPropertiesFormat + err = json.Unmarshal(*v, &applicationGatewayBackendAddressPoolPropertiesFormat) + if err != nil { + return err + } + agbap.ApplicationGatewayBackendAddressPoolPropertiesFormat = &applicationGatewayBackendAddressPoolPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + agbap.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + agbap.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + agbap.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + agbap.ID = &ID + } + } + } + + return nil +} + +// ApplicationGatewayBackendAddressPoolPropertiesFormat properties of Backend Address Pool of an +// application gateway. +type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { + // BackendIPConfigurations - READ-ONLY; Collection of references to IPs defined in network interfaces. + BackendIPConfigurations *[]InterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + // BackendAddresses - Backend addresses. + BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the backend address pool resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayBackendAddressPoolPropertiesFormat. +func (agbappf ApplicationGatewayBackendAddressPoolPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agbappf.BackendAddresses != nil { + objectMap["backendAddresses"] = agbappf.BackendAddresses + } + return json.Marshal(objectMap) +} + +// ApplicationGatewayBackendHealth response for ApplicationGatewayBackendHealth API service call. +type ApplicationGatewayBackendHealth struct { + autorest.Response `json:"-"` + // BackendAddressPools - A list of ApplicationGatewayBackendHealthPool resources. + BackendAddressPools *[]ApplicationGatewayBackendHealthPool `json:"backendAddressPools,omitempty"` +} + +// ApplicationGatewayBackendHealthHTTPSettings application gateway BackendHealthHttp settings. +type ApplicationGatewayBackendHealthHTTPSettings struct { + // BackendHTTPSettings - Reference to an ApplicationGatewayBackendHttpSettings resource. + BackendHTTPSettings *ApplicationGatewayBackendHTTPSettings `json:"backendHttpSettings,omitempty"` + // Servers - List of ApplicationGatewayBackendHealthServer resources. + Servers *[]ApplicationGatewayBackendHealthServer `json:"servers,omitempty"` +} + +// ApplicationGatewayBackendHealthOnDemand result of on demand test probe. +type ApplicationGatewayBackendHealthOnDemand struct { + autorest.Response `json:"-"` + // BackendAddressPool - Reference to an ApplicationGatewayBackendAddressPool resource. + BackendAddressPool *ApplicationGatewayBackendAddressPool `json:"backendAddressPool,omitempty"` + // BackendHealthHTTPSettings - Application gateway BackendHealthHttp settings. + BackendHealthHTTPSettings *ApplicationGatewayBackendHealthHTTPSettings `json:"backendHealthHttpSettings,omitempty"` +} + +// ApplicationGatewayBackendHealthPool application gateway BackendHealth pool. +type ApplicationGatewayBackendHealthPool struct { + // BackendAddressPool - Reference to an ApplicationGatewayBackendAddressPool resource. + BackendAddressPool *ApplicationGatewayBackendAddressPool `json:"backendAddressPool,omitempty"` + // BackendHTTPSettingsCollection - List of ApplicationGatewayBackendHealthHttpSettings resources. + BackendHTTPSettingsCollection *[]ApplicationGatewayBackendHealthHTTPSettings `json:"backendHttpSettingsCollection,omitempty"` +} + +// ApplicationGatewayBackendHealthServer application gateway backendhealth http settings. +type ApplicationGatewayBackendHealthServer struct { + // Address - IP address or FQDN of backend server. + Address *string `json:"address,omitempty"` + // IPConfiguration - Reference to IP configuration of backend server. + IPConfiguration *InterfaceIPConfiguration `json:"ipConfiguration,omitempty"` + // Health - Health of backend server. Possible values include: 'Unknown', 'Up', 'Down', 'Partial', 'Draining' + Health ApplicationGatewayBackendHealthServerHealth `json:"health,omitempty"` + // HealthProbeLog - Health Probe Log. + HealthProbeLog *string `json:"healthProbeLog,omitempty"` +} + +// ApplicationGatewayBackendHTTPSettings backend address pool settings of an application gateway. +type ApplicationGatewayBackendHTTPSettings struct { + // ApplicationGatewayBackendHTTPSettingsPropertiesFormat - Properties of the application gateway backend HTTP settings. + *ApplicationGatewayBackendHTTPSettingsPropertiesFormat `json:"properties,omitempty"` + // Name - Name of the backend http settings that is unique within an Application Gateway. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayBackendHTTPSettings. +func (agbhs ApplicationGatewayBackendHTTPSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agbhs.ApplicationGatewayBackendHTTPSettingsPropertiesFormat != nil { + objectMap["properties"] = agbhs.ApplicationGatewayBackendHTTPSettingsPropertiesFormat + } + if agbhs.Name != nil { + objectMap["name"] = agbhs.Name + } + if agbhs.ID != nil { + objectMap["id"] = agbhs.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayBackendHTTPSettings struct. +func (agbhs *ApplicationGatewayBackendHTTPSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationGatewayBackendHTTPSettingsPropertiesFormat ApplicationGatewayBackendHTTPSettingsPropertiesFormat + err = json.Unmarshal(*v, &applicationGatewayBackendHTTPSettingsPropertiesFormat) + if err != nil { + return err + } + agbhs.ApplicationGatewayBackendHTTPSettingsPropertiesFormat = &applicationGatewayBackendHTTPSettingsPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + agbhs.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + agbhs.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + agbhs.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + agbhs.ID = &ID + } + } + } + + return nil +} + +// ApplicationGatewayBackendHTTPSettingsPropertiesFormat properties of Backend address pool settings of an +// application gateway. +type ApplicationGatewayBackendHTTPSettingsPropertiesFormat struct { + // Port - The destination port on the backend. + Port *int32 `json:"port,omitempty"` + // Protocol - The protocol used to communicate with the backend. Possible values include: 'HTTP', 'HTTPS' + Protocol ApplicationGatewayProtocol `json:"protocol,omitempty"` + // CookieBasedAffinity - Cookie based affinity. Possible values include: 'Enabled', 'Disabled' + CookieBasedAffinity ApplicationGatewayCookieBasedAffinity `json:"cookieBasedAffinity,omitempty"` + // RequestTimeout - Request timeout in seconds. Application Gateway will fail the request if response is not received within RequestTimeout. Acceptable values are from 1 second to 86400 seconds. + RequestTimeout *int32 `json:"requestTimeout,omitempty"` + // Probe - Probe resource of an application gateway. + Probe *SubResource `json:"probe,omitempty"` + // AuthenticationCertificates - Array of references to application gateway authentication certificates. + AuthenticationCertificates *[]SubResource `json:"authenticationCertificates,omitempty"` + // TrustedRootCertificates - Array of references to application gateway trusted root certificates. + TrustedRootCertificates *[]SubResource `json:"trustedRootCertificates,omitempty"` + // ConnectionDraining - Connection draining of the backend http settings resource. + ConnectionDraining *ApplicationGatewayConnectionDraining `json:"connectionDraining,omitempty"` + // HostName - Host header to be sent to the backend servers. + HostName *string `json:"hostName,omitempty"` + // PickHostNameFromBackendAddress - Whether to pick host header should be picked from the host name of the backend server. Default value is false. + PickHostNameFromBackendAddress *bool `json:"pickHostNameFromBackendAddress,omitempty"` + // AffinityCookieName - Cookie name to use for the affinity cookie. + AffinityCookieName *string `json:"affinityCookieName,omitempty"` + // ProbeEnabled - Whether the probe is enabled. Default value is false. + ProbeEnabled *bool `json:"probeEnabled,omitempty"` + // Path - Path which should be used as a prefix for all HTTP requests. Null means no path will be prefixed. Default value is null. + Path *string `json:"path,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the backend HTTP settings resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayBackendHTTPSettingsPropertiesFormat. +func (agbhspf ApplicationGatewayBackendHTTPSettingsPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agbhspf.Port != nil { + objectMap["port"] = agbhspf.Port + } + if agbhspf.Protocol != "" { + objectMap["protocol"] = agbhspf.Protocol + } + if agbhspf.CookieBasedAffinity != "" { + objectMap["cookieBasedAffinity"] = agbhspf.CookieBasedAffinity + } + if agbhspf.RequestTimeout != nil { + objectMap["requestTimeout"] = agbhspf.RequestTimeout + } + if agbhspf.Probe != nil { + objectMap["probe"] = agbhspf.Probe + } + if agbhspf.AuthenticationCertificates != nil { + objectMap["authenticationCertificates"] = agbhspf.AuthenticationCertificates + } + if agbhspf.TrustedRootCertificates != nil { + objectMap["trustedRootCertificates"] = agbhspf.TrustedRootCertificates + } + if agbhspf.ConnectionDraining != nil { + objectMap["connectionDraining"] = agbhspf.ConnectionDraining + } + if agbhspf.HostName != nil { + objectMap["hostName"] = agbhspf.HostName + } + if agbhspf.PickHostNameFromBackendAddress != nil { + objectMap["pickHostNameFromBackendAddress"] = agbhspf.PickHostNameFromBackendAddress + } + if agbhspf.AffinityCookieName != nil { + objectMap["affinityCookieName"] = agbhspf.AffinityCookieName + } + if agbhspf.ProbeEnabled != nil { + objectMap["probeEnabled"] = agbhspf.ProbeEnabled + } + if agbhspf.Path != nil { + objectMap["path"] = agbhspf.Path + } + return json.Marshal(objectMap) +} + +// ApplicationGatewayClientAuthConfiguration application gateway client authentication configuration. +type ApplicationGatewayClientAuthConfiguration struct { + // VerifyClientCertIssuerDN - Verify client certificate issuer name on the application gateway. + VerifyClientCertIssuerDN *bool `json:"verifyClientCertIssuerDN,omitempty"` +} + +// ApplicationGatewayConnectionDraining connection draining allows open connections to a backend server to +// be active for a specified time after the backend server got removed from the configuration. +type ApplicationGatewayConnectionDraining struct { + // Enabled - Whether connection draining is enabled or not. + Enabled *bool `json:"enabled,omitempty"` + // DrainTimeoutInSec - The number of seconds connection draining is active. Acceptable values are from 1 second to 3600 seconds. + DrainTimeoutInSec *int32 `json:"drainTimeoutInSec,omitempty"` +} + +// ApplicationGatewayCustomError customer error of an application gateway. +type ApplicationGatewayCustomError struct { + // StatusCode - Status code of the application gateway customer error. Possible values include: 'HTTPStatus403', 'HTTPStatus502' + StatusCode ApplicationGatewayCustomErrorStatusCode `json:"statusCode,omitempty"` + // CustomErrorPageURL - Error page URL of the application gateway customer error. + CustomErrorPageURL *string `json:"customErrorPageUrl,omitempty"` +} + +// ApplicationGatewayFirewallDisabledRuleGroup allows to disable rules within a rule group or an entire +// rule group. +type ApplicationGatewayFirewallDisabledRuleGroup struct { + // RuleGroupName - The name of the rule group that will be disabled. + RuleGroupName *string `json:"ruleGroupName,omitempty"` + // Rules - The list of rules that will be disabled. If null, all rules of the rule group will be disabled. + Rules *[]int32 `json:"rules,omitempty"` +} + +// ApplicationGatewayFirewallExclusion allow to exclude some variable satisfy the condition for the WAF +// check. +type ApplicationGatewayFirewallExclusion struct { + // MatchVariable - The variable to be excluded. + MatchVariable *string `json:"matchVariable,omitempty"` + // SelectorMatchOperator - When matchVariable is a collection, operate on the selector to specify which elements in the collection this exclusion applies to. + SelectorMatchOperator *string `json:"selectorMatchOperator,omitempty"` + // Selector - When matchVariable is a collection, operator used to specify which elements in the collection this exclusion applies to. + Selector *string `json:"selector,omitempty"` +} + +// ApplicationGatewayFirewallRule a web application firewall rule. +type ApplicationGatewayFirewallRule struct { + // RuleID - The identifier of the web application firewall rule. + RuleID *int32 `json:"ruleId,omitempty"` + // Description - The description of the web application firewall rule. + Description *string `json:"description,omitempty"` +} + +// ApplicationGatewayFirewallRuleGroup a web application firewall rule group. +type ApplicationGatewayFirewallRuleGroup struct { + // RuleGroupName - The name of the web application firewall rule group. + RuleGroupName *string `json:"ruleGroupName,omitempty"` + // Description - The description of the web application firewall rule group. + Description *string `json:"description,omitempty"` + // Rules - The rules of the web application firewall rule group. + Rules *[]ApplicationGatewayFirewallRule `json:"rules,omitempty"` +} + +// ApplicationGatewayFirewallRuleSet a web application firewall rule set. +type ApplicationGatewayFirewallRuleSet struct { + // ApplicationGatewayFirewallRuleSetPropertiesFormat - Properties of the application gateway firewall rule set. + *ApplicationGatewayFirewallRuleSetPropertiesFormat `json:"properties,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayFirewallRuleSet. +func (agfrs ApplicationGatewayFirewallRuleSet) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agfrs.ApplicationGatewayFirewallRuleSetPropertiesFormat != nil { + objectMap["properties"] = agfrs.ApplicationGatewayFirewallRuleSetPropertiesFormat + } + if agfrs.ID != nil { + objectMap["id"] = agfrs.ID + } + if agfrs.Location != nil { + objectMap["location"] = agfrs.Location + } + if agfrs.Tags != nil { + objectMap["tags"] = agfrs.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayFirewallRuleSet struct. +func (agfrs *ApplicationGatewayFirewallRuleSet) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationGatewayFirewallRuleSetPropertiesFormat ApplicationGatewayFirewallRuleSetPropertiesFormat + err = json.Unmarshal(*v, &applicationGatewayFirewallRuleSetPropertiesFormat) + if err != nil { + return err + } + agfrs.ApplicationGatewayFirewallRuleSetPropertiesFormat = &applicationGatewayFirewallRuleSetPropertiesFormat + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + agfrs.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + agfrs.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + agfrs.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + agfrs.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + agfrs.Tags = tags + } + } + } + + return nil +} + +// ApplicationGatewayFirewallRuleSetPropertiesFormat properties of the web application firewall rule set. +type ApplicationGatewayFirewallRuleSetPropertiesFormat struct { + // ProvisioningState - READ-ONLY; The provisioning state of the web application firewall rule set. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // RuleSetType - The type of the web application firewall rule set. + RuleSetType *string `json:"ruleSetType,omitempty"` + // RuleSetVersion - The version of the web application firewall rule set type. + RuleSetVersion *string `json:"ruleSetVersion,omitempty"` + // RuleGroups - The rule groups of the web application firewall rule set. + RuleGroups *[]ApplicationGatewayFirewallRuleGroup `json:"ruleGroups,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayFirewallRuleSetPropertiesFormat. +func (agfrspf ApplicationGatewayFirewallRuleSetPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agfrspf.RuleSetType != nil { + objectMap["ruleSetType"] = agfrspf.RuleSetType + } + if agfrspf.RuleSetVersion != nil { + objectMap["ruleSetVersion"] = agfrspf.RuleSetVersion + } + if agfrspf.RuleGroups != nil { + objectMap["ruleGroups"] = agfrspf.RuleGroups + } + return json.Marshal(objectMap) +} + +// ApplicationGatewayFrontendIPConfiguration frontend IP configuration of an application gateway. +type ApplicationGatewayFrontendIPConfiguration struct { + // ApplicationGatewayFrontendIPConfigurationPropertiesFormat - Properties of the application gateway frontend IP configuration. + *ApplicationGatewayFrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + // Name - Name of the frontend IP configuration that is unique within an Application Gateway. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayFrontendIPConfiguration. +func (agfic ApplicationGatewayFrontendIPConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agfic.ApplicationGatewayFrontendIPConfigurationPropertiesFormat != nil { + objectMap["properties"] = agfic.ApplicationGatewayFrontendIPConfigurationPropertiesFormat + } + if agfic.Name != nil { + objectMap["name"] = agfic.Name + } + if agfic.ID != nil { + objectMap["id"] = agfic.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayFrontendIPConfiguration struct. +func (agfic *ApplicationGatewayFrontendIPConfiguration) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationGatewayFrontendIPConfigurationPropertiesFormat ApplicationGatewayFrontendIPConfigurationPropertiesFormat + err = json.Unmarshal(*v, &applicationGatewayFrontendIPConfigurationPropertiesFormat) + if err != nil { + return err + } + agfic.ApplicationGatewayFrontendIPConfigurationPropertiesFormat = &applicationGatewayFrontendIPConfigurationPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + agfic.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + agfic.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + agfic.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + agfic.ID = &ID + } + } + } + + return nil +} + +// ApplicationGatewayFrontendIPConfigurationPropertiesFormat properties of Frontend IP configuration of an +// application gateway. +type ApplicationGatewayFrontendIPConfigurationPropertiesFormat struct { + // PrivateIPAddress - PrivateIPAddress of the network interface IP Configuration. + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + // PrivateIPAllocationMethod - The private IP address allocation method. Possible values include: 'Static', 'Dynamic' + PrivateIPAllocationMethod IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + // Subnet - Reference to the subnet resource. + Subnet *SubResource `json:"subnet,omitempty"` + // PublicIPAddress - Reference to the PublicIP resource. + PublicIPAddress *SubResource `json:"publicIPAddress,omitempty"` + // PrivateLinkConfiguration - Reference to the application gateway private link configuration. + PrivateLinkConfiguration *SubResource `json:"privateLinkConfiguration,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the frontend IP configuration resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayFrontendIPConfigurationPropertiesFormat. +func (agficpf ApplicationGatewayFrontendIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agficpf.PrivateIPAddress != nil { + objectMap["privateIPAddress"] = agficpf.PrivateIPAddress + } + if agficpf.PrivateIPAllocationMethod != "" { + objectMap["privateIPAllocationMethod"] = agficpf.PrivateIPAllocationMethod + } + if agficpf.Subnet != nil { + objectMap["subnet"] = agficpf.Subnet + } + if agficpf.PublicIPAddress != nil { + objectMap["publicIPAddress"] = agficpf.PublicIPAddress + } + if agficpf.PrivateLinkConfiguration != nil { + objectMap["privateLinkConfiguration"] = agficpf.PrivateLinkConfiguration + } + return json.Marshal(objectMap) +} + +// ApplicationGatewayFrontendPort frontend port of an application gateway. +type ApplicationGatewayFrontendPort struct { + // ApplicationGatewayFrontendPortPropertiesFormat - Properties of the application gateway frontend port. + *ApplicationGatewayFrontendPortPropertiesFormat `json:"properties,omitempty"` + // Name - Name of the frontend port that is unique within an Application Gateway. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayFrontendPort. +func (agfp ApplicationGatewayFrontendPort) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agfp.ApplicationGatewayFrontendPortPropertiesFormat != nil { + objectMap["properties"] = agfp.ApplicationGatewayFrontendPortPropertiesFormat + } + if agfp.Name != nil { + objectMap["name"] = agfp.Name + } + if agfp.ID != nil { + objectMap["id"] = agfp.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayFrontendPort struct. +func (agfp *ApplicationGatewayFrontendPort) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationGatewayFrontendPortPropertiesFormat ApplicationGatewayFrontendPortPropertiesFormat + err = json.Unmarshal(*v, &applicationGatewayFrontendPortPropertiesFormat) + if err != nil { + return err + } + agfp.ApplicationGatewayFrontendPortPropertiesFormat = &applicationGatewayFrontendPortPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + agfp.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + agfp.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + agfp.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + agfp.ID = &ID + } + } + } + + return nil +} + +// ApplicationGatewayFrontendPortPropertiesFormat properties of Frontend port of an application gateway. +type ApplicationGatewayFrontendPortPropertiesFormat struct { + // Port - Frontend port. + Port *int32 `json:"port,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the frontend port resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayFrontendPortPropertiesFormat. +func (agfppf ApplicationGatewayFrontendPortPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agfppf.Port != nil { + objectMap["port"] = agfppf.Port + } + return json.Marshal(objectMap) +} + +// ApplicationGatewayHeaderConfiguration header configuration of the Actions set in Application Gateway. +type ApplicationGatewayHeaderConfiguration struct { + // HeaderName - Header name of the header configuration. + HeaderName *string `json:"headerName,omitempty"` + // HeaderValue - Header value of the header configuration. + HeaderValue *string `json:"headerValue,omitempty"` +} + +// ApplicationGatewayHTTPListener http listener of an application gateway. +type ApplicationGatewayHTTPListener struct { + // ApplicationGatewayHTTPListenerPropertiesFormat - Properties of the application gateway HTTP listener. + *ApplicationGatewayHTTPListenerPropertiesFormat `json:"properties,omitempty"` + // Name - Name of the HTTP listener that is unique within an Application Gateway. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayHTTPListener. +func (aghl ApplicationGatewayHTTPListener) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if aghl.ApplicationGatewayHTTPListenerPropertiesFormat != nil { + objectMap["properties"] = aghl.ApplicationGatewayHTTPListenerPropertiesFormat + } + if aghl.Name != nil { + objectMap["name"] = aghl.Name + } + if aghl.ID != nil { + objectMap["id"] = aghl.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayHTTPListener struct. +func (aghl *ApplicationGatewayHTTPListener) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationGatewayHTTPListenerPropertiesFormat ApplicationGatewayHTTPListenerPropertiesFormat + err = json.Unmarshal(*v, &applicationGatewayHTTPListenerPropertiesFormat) + if err != nil { + return err + } + aghl.ApplicationGatewayHTTPListenerPropertiesFormat = &applicationGatewayHTTPListenerPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + aghl.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + aghl.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + aghl.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + aghl.ID = &ID + } + } + } + + return nil +} + +// ApplicationGatewayHTTPListenerPropertiesFormat properties of HTTP listener of an application gateway. +type ApplicationGatewayHTTPListenerPropertiesFormat struct { + // FrontendIPConfiguration - Frontend IP configuration resource of an application gateway. + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + // FrontendPort - Frontend port resource of an application gateway. + FrontendPort *SubResource `json:"frontendPort,omitempty"` + // Protocol - Protocol of the HTTP listener. Possible values include: 'HTTP', 'HTTPS' + Protocol ApplicationGatewayProtocol `json:"protocol,omitempty"` + // HostName - Host name of HTTP listener. + HostName *string `json:"hostName,omitempty"` + // SslCertificate - SSL certificate resource of an application gateway. + SslCertificate *SubResource `json:"sslCertificate,omitempty"` + // SslProfile - SSL profile resource of the application gateway. + SslProfile *SubResource `json:"sslProfile,omitempty"` + // RequireServerNameIndication - Applicable only if protocol is https. Enables SNI for multi-hosting. + RequireServerNameIndication *bool `json:"requireServerNameIndication,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the HTTP listener resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // CustomErrorConfigurations - Custom error configurations of the HTTP listener. + CustomErrorConfigurations *[]ApplicationGatewayCustomError `json:"customErrorConfigurations,omitempty"` + // FirewallPolicy - Reference to the FirewallPolicy resource. + FirewallPolicy *SubResource `json:"firewallPolicy,omitempty"` + // HostNames - List of Host names for HTTP Listener that allows special wildcard characters as well. + HostNames *[]string `json:"hostNames,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayHTTPListenerPropertiesFormat. +func (aghlpf ApplicationGatewayHTTPListenerPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if aghlpf.FrontendIPConfiguration != nil { + objectMap["frontendIPConfiguration"] = aghlpf.FrontendIPConfiguration + } + if aghlpf.FrontendPort != nil { + objectMap["frontendPort"] = aghlpf.FrontendPort + } + if aghlpf.Protocol != "" { + objectMap["protocol"] = aghlpf.Protocol + } + if aghlpf.HostName != nil { + objectMap["hostName"] = aghlpf.HostName + } + if aghlpf.SslCertificate != nil { + objectMap["sslCertificate"] = aghlpf.SslCertificate + } + if aghlpf.SslProfile != nil { + objectMap["sslProfile"] = aghlpf.SslProfile + } + if aghlpf.RequireServerNameIndication != nil { + objectMap["requireServerNameIndication"] = aghlpf.RequireServerNameIndication + } + if aghlpf.CustomErrorConfigurations != nil { + objectMap["customErrorConfigurations"] = aghlpf.CustomErrorConfigurations + } + if aghlpf.FirewallPolicy != nil { + objectMap["firewallPolicy"] = aghlpf.FirewallPolicy + } + if aghlpf.HostNames != nil { + objectMap["hostNames"] = aghlpf.HostNames + } + return json.Marshal(objectMap) +} + +// ApplicationGatewayIPConfiguration IP configuration of an application gateway. Currently 1 public and 1 +// private IP configuration is allowed. +type ApplicationGatewayIPConfiguration struct { + // ApplicationGatewayIPConfigurationPropertiesFormat - Properties of the application gateway IP configuration. + *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` + // Name - Name of the IP configuration that is unique within an Application Gateway. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayIPConfiguration. +func (agic ApplicationGatewayIPConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agic.ApplicationGatewayIPConfigurationPropertiesFormat != nil { + objectMap["properties"] = agic.ApplicationGatewayIPConfigurationPropertiesFormat + } + if agic.Name != nil { + objectMap["name"] = agic.Name + } + if agic.ID != nil { + objectMap["id"] = agic.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayIPConfiguration struct. +func (agic *ApplicationGatewayIPConfiguration) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationGatewayIPConfigurationPropertiesFormat ApplicationGatewayIPConfigurationPropertiesFormat + err = json.Unmarshal(*v, &applicationGatewayIPConfigurationPropertiesFormat) + if err != nil { + return err + } + agic.ApplicationGatewayIPConfigurationPropertiesFormat = &applicationGatewayIPConfigurationPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + agic.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + agic.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + agic.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + agic.ID = &ID + } + } + } + + return nil +} + +// ApplicationGatewayIPConfigurationPropertiesFormat properties of IP configuration of an application +// gateway. +type ApplicationGatewayIPConfigurationPropertiesFormat struct { + // Subnet - Reference to the subnet resource. A subnet from where application gateway gets its private address. + Subnet *SubResource `json:"subnet,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the application gateway IP configuration resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayIPConfigurationPropertiesFormat. +func (agicpf ApplicationGatewayIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agicpf.Subnet != nil { + objectMap["subnet"] = agicpf.Subnet + } + return json.Marshal(objectMap) +} + +// ApplicationGatewayListResult response for ListApplicationGateways API service call. +type ApplicationGatewayListResult struct { + autorest.Response `json:"-"` + // Value - List of an application gateways in a resource group. + Value *[]ApplicationGateway `json:"value,omitempty"` + // NextLink - URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// ApplicationGatewayListResultIterator provides access to a complete listing of ApplicationGateway values. +type ApplicationGatewayListResultIterator struct { + i int + page ApplicationGatewayListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ApplicationGatewayListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewayListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ApplicationGatewayListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ApplicationGatewayListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ApplicationGatewayListResultIterator) Response() ApplicationGatewayListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ApplicationGatewayListResultIterator) Value() ApplicationGateway { + if !iter.page.NotDone() { + return ApplicationGateway{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ApplicationGatewayListResultIterator type. +func NewApplicationGatewayListResultIterator(page ApplicationGatewayListResultPage) ApplicationGatewayListResultIterator { + return ApplicationGatewayListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (aglr ApplicationGatewayListResult) IsEmpty() bool { + return aglr.Value == nil || len(*aglr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (aglr ApplicationGatewayListResult) hasNextLink() bool { + return aglr.NextLink != nil && len(*aglr.NextLink) != 0 +} + +// applicationGatewayListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (aglr ApplicationGatewayListResult) applicationGatewayListResultPreparer(ctx context.Context) (*http.Request, error) { + if !aglr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(aglr.NextLink))) +} + +// ApplicationGatewayListResultPage contains a page of ApplicationGateway values. +type ApplicationGatewayListResultPage struct { + fn func(context.Context, ApplicationGatewayListResult) (ApplicationGatewayListResult, error) + aglr ApplicationGatewayListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ApplicationGatewayListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewayListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.aglr) + if err != nil { + return err + } + page.aglr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ApplicationGatewayListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ApplicationGatewayListResultPage) NotDone() bool { + return !page.aglr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ApplicationGatewayListResultPage) Response() ApplicationGatewayListResult { + return page.aglr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ApplicationGatewayListResultPage) Values() []ApplicationGateway { + if page.aglr.IsEmpty() { + return nil + } + return *page.aglr.Value +} + +// Creates a new instance of the ApplicationGatewayListResultPage type. +func NewApplicationGatewayListResultPage(cur ApplicationGatewayListResult, getNextPage func(context.Context, ApplicationGatewayListResult) (ApplicationGatewayListResult, error)) ApplicationGatewayListResultPage { + return ApplicationGatewayListResultPage{ + fn: getNextPage, + aglr: cur, + } +} + +// ApplicationGatewayOnDemandProbe details of on demand test probe request. +type ApplicationGatewayOnDemandProbe struct { + // Protocol - The protocol used for the probe. Possible values include: 'HTTP', 'HTTPS' + Protocol ApplicationGatewayProtocol `json:"protocol,omitempty"` + // Host - Host name to send the probe to. + Host *string `json:"host,omitempty"` + // Path - Relative path of probe. Valid path starts from '/'. Probe is sent to ://:. + Path *string `json:"path,omitempty"` + // Timeout - The probe timeout in seconds. Probe marked as failed if valid response is not received with this timeout period. Acceptable values are from 1 second to 86400 seconds. + Timeout *int32 `json:"timeout,omitempty"` + // PickHostNameFromBackendHTTPSettings - Whether the host header should be picked from the backend http settings. Default value is false. + PickHostNameFromBackendHTTPSettings *bool `json:"pickHostNameFromBackendHttpSettings,omitempty"` + // Match - Criterion for classifying a healthy probe response. + Match *ApplicationGatewayProbeHealthResponseMatch `json:"match,omitempty"` + // BackendAddressPool - Reference to backend pool of application gateway to which probe request will be sent. + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + // BackendHTTPSettings - Reference to backend http setting of application gateway to be used for test probe. + BackendHTTPSettings *SubResource `json:"backendHttpSettings,omitempty"` +} + +// ApplicationGatewayPathRule path rule of URL path map of an application gateway. +type ApplicationGatewayPathRule struct { + // ApplicationGatewayPathRulePropertiesFormat - Properties of the application gateway path rule. + *ApplicationGatewayPathRulePropertiesFormat `json:"properties,omitempty"` + // Name - Name of the path rule that is unique within an Application Gateway. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayPathRule. +func (agpr ApplicationGatewayPathRule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agpr.ApplicationGatewayPathRulePropertiesFormat != nil { + objectMap["properties"] = agpr.ApplicationGatewayPathRulePropertiesFormat + } + if agpr.Name != nil { + objectMap["name"] = agpr.Name + } + if agpr.ID != nil { + objectMap["id"] = agpr.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayPathRule struct. +func (agpr *ApplicationGatewayPathRule) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationGatewayPathRulePropertiesFormat ApplicationGatewayPathRulePropertiesFormat + err = json.Unmarshal(*v, &applicationGatewayPathRulePropertiesFormat) + if err != nil { + return err + } + agpr.ApplicationGatewayPathRulePropertiesFormat = &applicationGatewayPathRulePropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + agpr.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + agpr.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + agpr.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + agpr.ID = &ID + } + } + } + + return nil +} + +// ApplicationGatewayPathRulePropertiesFormat properties of path rule of an application gateway. +type ApplicationGatewayPathRulePropertiesFormat struct { + // Paths - Path rules of URL path map. + Paths *[]string `json:"paths,omitempty"` + // BackendAddressPool - Backend address pool resource of URL path map path rule. + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + // BackendHTTPSettings - Backend http settings resource of URL path map path rule. + BackendHTTPSettings *SubResource `json:"backendHttpSettings,omitempty"` + // RedirectConfiguration - Redirect configuration resource of URL path map path rule. + RedirectConfiguration *SubResource `json:"redirectConfiguration,omitempty"` + // RewriteRuleSet - Rewrite rule set resource of URL path map path rule. + RewriteRuleSet *SubResource `json:"rewriteRuleSet,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the path rule resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // FirewallPolicy - Reference to the FirewallPolicy resource. + FirewallPolicy *SubResource `json:"firewallPolicy,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayPathRulePropertiesFormat. +func (agprpf ApplicationGatewayPathRulePropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agprpf.Paths != nil { + objectMap["paths"] = agprpf.Paths + } + if agprpf.BackendAddressPool != nil { + objectMap["backendAddressPool"] = agprpf.BackendAddressPool + } + if agprpf.BackendHTTPSettings != nil { + objectMap["backendHttpSettings"] = agprpf.BackendHTTPSettings + } + if agprpf.RedirectConfiguration != nil { + objectMap["redirectConfiguration"] = agprpf.RedirectConfiguration + } + if agprpf.RewriteRuleSet != nil { + objectMap["rewriteRuleSet"] = agprpf.RewriteRuleSet + } + if agprpf.FirewallPolicy != nil { + objectMap["firewallPolicy"] = agprpf.FirewallPolicy + } + return json.Marshal(objectMap) +} + +// ApplicationGatewayPrivateEndpointConnection private Endpoint connection on an application gateway. +type ApplicationGatewayPrivateEndpointConnection struct { + autorest.Response `json:"-"` + // ApplicationGatewayPrivateEndpointConnectionProperties - Properties of the application gateway private endpoint connection. + *ApplicationGatewayPrivateEndpointConnectionProperties `json:"properties,omitempty"` + // Name - Name of the private endpoint connection on an application gateway. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayPrivateEndpointConnection. +func (agpec ApplicationGatewayPrivateEndpointConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agpec.ApplicationGatewayPrivateEndpointConnectionProperties != nil { + objectMap["properties"] = agpec.ApplicationGatewayPrivateEndpointConnectionProperties + } + if agpec.Name != nil { + objectMap["name"] = agpec.Name + } + if agpec.ID != nil { + objectMap["id"] = agpec.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayPrivateEndpointConnection struct. +func (agpec *ApplicationGatewayPrivateEndpointConnection) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationGatewayPrivateEndpointConnectionProperties ApplicationGatewayPrivateEndpointConnectionProperties + err = json.Unmarshal(*v, &applicationGatewayPrivateEndpointConnectionProperties) + if err != nil { + return err + } + agpec.ApplicationGatewayPrivateEndpointConnectionProperties = &applicationGatewayPrivateEndpointConnectionProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + agpec.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + agpec.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + agpec.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + agpec.ID = &ID + } + } + } + + return nil +} + +// ApplicationGatewayPrivateEndpointConnectionListResult response for +// ListApplicationGatewayPrivateEndpointConnection API service call. Gets all private endpoint connections +// for an application gateway. +type ApplicationGatewayPrivateEndpointConnectionListResult struct { + autorest.Response `json:"-"` + // Value - List of private endpoint connections on an application gateway. + Value *[]ApplicationGatewayPrivateEndpointConnection `json:"value,omitempty"` + // NextLink - URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// ApplicationGatewayPrivateEndpointConnectionListResultIterator provides access to a complete listing of +// ApplicationGatewayPrivateEndpointConnection values. +type ApplicationGatewayPrivateEndpointConnectionListResultIterator struct { + i int + page ApplicationGatewayPrivateEndpointConnectionListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ApplicationGatewayPrivateEndpointConnectionListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewayPrivateEndpointConnectionListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ApplicationGatewayPrivateEndpointConnectionListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ApplicationGatewayPrivateEndpointConnectionListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ApplicationGatewayPrivateEndpointConnectionListResultIterator) Response() ApplicationGatewayPrivateEndpointConnectionListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ApplicationGatewayPrivateEndpointConnectionListResultIterator) Value() ApplicationGatewayPrivateEndpointConnection { + if !iter.page.NotDone() { + return ApplicationGatewayPrivateEndpointConnection{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ApplicationGatewayPrivateEndpointConnectionListResultIterator type. +func NewApplicationGatewayPrivateEndpointConnectionListResultIterator(page ApplicationGatewayPrivateEndpointConnectionListResultPage) ApplicationGatewayPrivateEndpointConnectionListResultIterator { + return ApplicationGatewayPrivateEndpointConnectionListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (agpeclr ApplicationGatewayPrivateEndpointConnectionListResult) IsEmpty() bool { + return agpeclr.Value == nil || len(*agpeclr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (agpeclr ApplicationGatewayPrivateEndpointConnectionListResult) hasNextLink() bool { + return agpeclr.NextLink != nil && len(*agpeclr.NextLink) != 0 +} + +// applicationGatewayPrivateEndpointConnectionListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (agpeclr ApplicationGatewayPrivateEndpointConnectionListResult) applicationGatewayPrivateEndpointConnectionListResultPreparer(ctx context.Context) (*http.Request, error) { + if !agpeclr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(agpeclr.NextLink))) +} + +// ApplicationGatewayPrivateEndpointConnectionListResultPage contains a page of +// ApplicationGatewayPrivateEndpointConnection values. +type ApplicationGatewayPrivateEndpointConnectionListResultPage struct { + fn func(context.Context, ApplicationGatewayPrivateEndpointConnectionListResult) (ApplicationGatewayPrivateEndpointConnectionListResult, error) + agpeclr ApplicationGatewayPrivateEndpointConnectionListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ApplicationGatewayPrivateEndpointConnectionListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewayPrivateEndpointConnectionListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.agpeclr) + if err != nil { + return err + } + page.agpeclr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ApplicationGatewayPrivateEndpointConnectionListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ApplicationGatewayPrivateEndpointConnectionListResultPage) NotDone() bool { + return !page.agpeclr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ApplicationGatewayPrivateEndpointConnectionListResultPage) Response() ApplicationGatewayPrivateEndpointConnectionListResult { + return page.agpeclr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ApplicationGatewayPrivateEndpointConnectionListResultPage) Values() []ApplicationGatewayPrivateEndpointConnection { + if page.agpeclr.IsEmpty() { + return nil + } + return *page.agpeclr.Value +} + +// Creates a new instance of the ApplicationGatewayPrivateEndpointConnectionListResultPage type. +func NewApplicationGatewayPrivateEndpointConnectionListResultPage(cur ApplicationGatewayPrivateEndpointConnectionListResult, getNextPage func(context.Context, ApplicationGatewayPrivateEndpointConnectionListResult) (ApplicationGatewayPrivateEndpointConnectionListResult, error)) ApplicationGatewayPrivateEndpointConnectionListResultPage { + return ApplicationGatewayPrivateEndpointConnectionListResultPage{ + fn: getNextPage, + agpeclr: cur, + } +} + +// ApplicationGatewayPrivateEndpointConnectionProperties properties of Private Link Resource of an +// application gateway. +type ApplicationGatewayPrivateEndpointConnectionProperties struct { + // PrivateEndpoint - READ-ONLY; The resource of private end point. + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + // PrivateLinkServiceConnectionState - A collection of information about the state of the connection between service consumer and provider. + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the application gateway private endpoint connection resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // LinkIdentifier - READ-ONLY; The consumer link id. + LinkIdentifier *string `json:"linkIdentifier,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayPrivateEndpointConnectionProperties. +func (agpecp ApplicationGatewayPrivateEndpointConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agpecp.PrivateLinkServiceConnectionState != nil { + objectMap["privateLinkServiceConnectionState"] = agpecp.PrivateLinkServiceConnectionState + } + return json.Marshal(objectMap) +} + +// ApplicationGatewayPrivateEndpointConnectionsDeleteFuture an abstraction for monitoring and retrieving +// the results of a long-running operation. +type ApplicationGatewayPrivateEndpointConnectionsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ApplicationGatewayPrivateEndpointConnectionsDeleteFuture) Result(client ApplicationGatewayPrivateEndpointConnectionsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateEndpointConnectionsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ApplicationGatewayPrivateEndpointConnectionsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// ApplicationGatewayPrivateEndpointConnectionsUpdateFuture an abstraction for monitoring and retrieving +// the results of a long-running operation. +type ApplicationGatewayPrivateEndpointConnectionsUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ApplicationGatewayPrivateEndpointConnectionsUpdateFuture) Result(client ApplicationGatewayPrivateEndpointConnectionsClient) (agpec ApplicationGatewayPrivateEndpointConnection, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateEndpointConnectionsUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ApplicationGatewayPrivateEndpointConnectionsUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if agpec.Response.Response, err = future.GetResult(sender); err == nil && agpec.Response.Response.StatusCode != http.StatusNoContent { + agpec, err = client.UpdateResponder(agpec.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewayPrivateEndpointConnectionsUpdateFuture", "Result", agpec.Response.Response, "Failure responding to request") + } + } + return +} + +// ApplicationGatewayPrivateLinkConfiguration private Link Configuration on an application gateway. +type ApplicationGatewayPrivateLinkConfiguration struct { + // ApplicationGatewayPrivateLinkConfigurationProperties - Properties of the application gateway private link configuration. + *ApplicationGatewayPrivateLinkConfigurationProperties `json:"properties,omitempty"` + // Name - Name of the private link configuration that is unique within an Application Gateway. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayPrivateLinkConfiguration. +func (agplc ApplicationGatewayPrivateLinkConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agplc.ApplicationGatewayPrivateLinkConfigurationProperties != nil { + objectMap["properties"] = agplc.ApplicationGatewayPrivateLinkConfigurationProperties + } + if agplc.Name != nil { + objectMap["name"] = agplc.Name + } + if agplc.ID != nil { + objectMap["id"] = agplc.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayPrivateLinkConfiguration struct. +func (agplc *ApplicationGatewayPrivateLinkConfiguration) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationGatewayPrivateLinkConfigurationProperties ApplicationGatewayPrivateLinkConfigurationProperties + err = json.Unmarshal(*v, &applicationGatewayPrivateLinkConfigurationProperties) + if err != nil { + return err + } + agplc.ApplicationGatewayPrivateLinkConfigurationProperties = &applicationGatewayPrivateLinkConfigurationProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + agplc.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + agplc.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + agplc.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + agplc.ID = &ID + } + } + } + + return nil +} + +// ApplicationGatewayPrivateLinkConfigurationProperties properties of private link configuration on an +// application gateway. +type ApplicationGatewayPrivateLinkConfigurationProperties struct { + // IPConfigurations - An array of application gateway private link ip configurations. + IPConfigurations *[]ApplicationGatewayPrivateLinkIPConfiguration `json:"ipConfigurations,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the application gateway private link configuration. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayPrivateLinkConfigurationProperties. +func (agplcp ApplicationGatewayPrivateLinkConfigurationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agplcp.IPConfigurations != nil { + objectMap["ipConfigurations"] = agplcp.IPConfigurations + } + return json.Marshal(objectMap) +} + +// ApplicationGatewayPrivateLinkIPConfiguration the application gateway private link ip configuration. +type ApplicationGatewayPrivateLinkIPConfiguration struct { + // ApplicationGatewayPrivateLinkIPConfigurationProperties - Properties of an application gateway private link ip configuration. + *ApplicationGatewayPrivateLinkIPConfigurationProperties `json:"properties,omitempty"` + // Name - The name of application gateway private link ip configuration. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; The resource type. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayPrivateLinkIPConfiguration. +func (agplic ApplicationGatewayPrivateLinkIPConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agplic.ApplicationGatewayPrivateLinkIPConfigurationProperties != nil { + objectMap["properties"] = agplic.ApplicationGatewayPrivateLinkIPConfigurationProperties + } + if agplic.Name != nil { + objectMap["name"] = agplic.Name + } + if agplic.ID != nil { + objectMap["id"] = agplic.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayPrivateLinkIPConfiguration struct. +func (agplic *ApplicationGatewayPrivateLinkIPConfiguration) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationGatewayPrivateLinkIPConfigurationProperties ApplicationGatewayPrivateLinkIPConfigurationProperties + err = json.Unmarshal(*v, &applicationGatewayPrivateLinkIPConfigurationProperties) + if err != nil { + return err + } + agplic.ApplicationGatewayPrivateLinkIPConfigurationProperties = &applicationGatewayPrivateLinkIPConfigurationProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + agplic.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + agplic.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + agplic.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + agplic.ID = &ID + } + } + } + + return nil +} + +// ApplicationGatewayPrivateLinkIPConfigurationProperties properties of an application gateway private link +// IP configuration. +type ApplicationGatewayPrivateLinkIPConfigurationProperties struct { + // PrivateIPAddress - The private IP address of the IP configuration. + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + // PrivateIPAllocationMethod - The private IP address allocation method. Possible values include: 'Static', 'Dynamic' + PrivateIPAllocationMethod IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + // Subnet - Reference to the subnet resource. + Subnet *SubResource `json:"subnet,omitempty"` + // Primary - Whether the ip configuration is primary or not. + Primary *bool `json:"primary,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the application gateway private link IP configuration. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayPrivateLinkIPConfigurationProperties. +func (agplicp ApplicationGatewayPrivateLinkIPConfigurationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agplicp.PrivateIPAddress != nil { + objectMap["privateIPAddress"] = agplicp.PrivateIPAddress + } + if agplicp.PrivateIPAllocationMethod != "" { + objectMap["privateIPAllocationMethod"] = agplicp.PrivateIPAllocationMethod + } + if agplicp.Subnet != nil { + objectMap["subnet"] = agplicp.Subnet + } + if agplicp.Primary != nil { + objectMap["primary"] = agplicp.Primary + } + return json.Marshal(objectMap) +} + +// ApplicationGatewayPrivateLinkResource privateLink Resource of an application gateway. +type ApplicationGatewayPrivateLinkResource struct { + // ApplicationGatewayPrivateLinkResourceProperties - Properties of the application gateway private link resource. + *ApplicationGatewayPrivateLinkResourceProperties `json:"properties,omitempty"` + // Name - Name of the private link resource that is unique within an Application Gateway. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayPrivateLinkResource. +func (agplr ApplicationGatewayPrivateLinkResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agplr.ApplicationGatewayPrivateLinkResourceProperties != nil { + objectMap["properties"] = agplr.ApplicationGatewayPrivateLinkResourceProperties + } + if agplr.Name != nil { + objectMap["name"] = agplr.Name + } + if agplr.ID != nil { + objectMap["id"] = agplr.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayPrivateLinkResource struct. +func (agplr *ApplicationGatewayPrivateLinkResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationGatewayPrivateLinkResourceProperties ApplicationGatewayPrivateLinkResourceProperties + err = json.Unmarshal(*v, &applicationGatewayPrivateLinkResourceProperties) + if err != nil { + return err + } + agplr.ApplicationGatewayPrivateLinkResourceProperties = &applicationGatewayPrivateLinkResourceProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + agplr.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + agplr.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + agplr.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + agplr.ID = &ID + } + } + } + + return nil +} + +// ApplicationGatewayPrivateLinkResourceListResult response for ListApplicationGatewayPrivateLinkResources +// API service call. Gets all private link resources for an application gateway. +type ApplicationGatewayPrivateLinkResourceListResult struct { + autorest.Response `json:"-"` + // Value - List of private link resources of an application gateway. + Value *[]ApplicationGatewayPrivateLinkResource `json:"value,omitempty"` + // NextLink - URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// ApplicationGatewayPrivateLinkResourceListResultIterator provides access to a complete listing of +// ApplicationGatewayPrivateLinkResource values. +type ApplicationGatewayPrivateLinkResourceListResultIterator struct { + i int + page ApplicationGatewayPrivateLinkResourceListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ApplicationGatewayPrivateLinkResourceListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewayPrivateLinkResourceListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ApplicationGatewayPrivateLinkResourceListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ApplicationGatewayPrivateLinkResourceListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ApplicationGatewayPrivateLinkResourceListResultIterator) Response() ApplicationGatewayPrivateLinkResourceListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ApplicationGatewayPrivateLinkResourceListResultIterator) Value() ApplicationGatewayPrivateLinkResource { + if !iter.page.NotDone() { + return ApplicationGatewayPrivateLinkResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ApplicationGatewayPrivateLinkResourceListResultIterator type. +func NewApplicationGatewayPrivateLinkResourceListResultIterator(page ApplicationGatewayPrivateLinkResourceListResultPage) ApplicationGatewayPrivateLinkResourceListResultIterator { + return ApplicationGatewayPrivateLinkResourceListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (agplrlr ApplicationGatewayPrivateLinkResourceListResult) IsEmpty() bool { + return agplrlr.Value == nil || len(*agplrlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (agplrlr ApplicationGatewayPrivateLinkResourceListResult) hasNextLink() bool { + return agplrlr.NextLink != nil && len(*agplrlr.NextLink) != 0 +} + +// applicationGatewayPrivateLinkResourceListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (agplrlr ApplicationGatewayPrivateLinkResourceListResult) applicationGatewayPrivateLinkResourceListResultPreparer(ctx context.Context) (*http.Request, error) { + if !agplrlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(agplrlr.NextLink))) +} + +// ApplicationGatewayPrivateLinkResourceListResultPage contains a page of +// ApplicationGatewayPrivateLinkResource values. +type ApplicationGatewayPrivateLinkResourceListResultPage struct { + fn func(context.Context, ApplicationGatewayPrivateLinkResourceListResult) (ApplicationGatewayPrivateLinkResourceListResult, error) + agplrlr ApplicationGatewayPrivateLinkResourceListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ApplicationGatewayPrivateLinkResourceListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewayPrivateLinkResourceListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.agplrlr) + if err != nil { + return err + } + page.agplrlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ApplicationGatewayPrivateLinkResourceListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ApplicationGatewayPrivateLinkResourceListResultPage) NotDone() bool { + return !page.agplrlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ApplicationGatewayPrivateLinkResourceListResultPage) Response() ApplicationGatewayPrivateLinkResourceListResult { + return page.agplrlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ApplicationGatewayPrivateLinkResourceListResultPage) Values() []ApplicationGatewayPrivateLinkResource { + if page.agplrlr.IsEmpty() { + return nil + } + return *page.agplrlr.Value +} + +// Creates a new instance of the ApplicationGatewayPrivateLinkResourceListResultPage type. +func NewApplicationGatewayPrivateLinkResourceListResultPage(cur ApplicationGatewayPrivateLinkResourceListResult, getNextPage func(context.Context, ApplicationGatewayPrivateLinkResourceListResult) (ApplicationGatewayPrivateLinkResourceListResult, error)) ApplicationGatewayPrivateLinkResourceListResultPage { + return ApplicationGatewayPrivateLinkResourceListResultPage{ + fn: getNextPage, + agplrlr: cur, + } +} + +// ApplicationGatewayPrivateLinkResourceProperties properties of a private link resource. +type ApplicationGatewayPrivateLinkResourceProperties struct { + // GroupID - READ-ONLY; Group identifier of private link resource. + GroupID *string `json:"groupId,omitempty"` + // RequiredMembers - READ-ONLY; Required member names of private link resource. + RequiredMembers *[]string `json:"requiredMembers,omitempty"` + // RequiredZoneNames - Required DNS zone names of the the private link resource. + RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayPrivateLinkResourceProperties. +func (agplrp ApplicationGatewayPrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agplrp.RequiredZoneNames != nil { + objectMap["requiredZoneNames"] = agplrp.RequiredZoneNames + } + return json.Marshal(objectMap) +} + +// ApplicationGatewayProbe probe of the application gateway. +type ApplicationGatewayProbe struct { + // ApplicationGatewayProbePropertiesFormat - Properties of the application gateway probe. + *ApplicationGatewayProbePropertiesFormat `json:"properties,omitempty"` + // Name - Name of the probe that is unique within an Application Gateway. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayProbe. +func (agp ApplicationGatewayProbe) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agp.ApplicationGatewayProbePropertiesFormat != nil { + objectMap["properties"] = agp.ApplicationGatewayProbePropertiesFormat + } + if agp.Name != nil { + objectMap["name"] = agp.Name + } + if agp.ID != nil { + objectMap["id"] = agp.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayProbe struct. +func (agp *ApplicationGatewayProbe) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationGatewayProbePropertiesFormat ApplicationGatewayProbePropertiesFormat + err = json.Unmarshal(*v, &applicationGatewayProbePropertiesFormat) + if err != nil { + return err + } + agp.ApplicationGatewayProbePropertiesFormat = &applicationGatewayProbePropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + agp.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + agp.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + agp.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + agp.ID = &ID + } + } + } + + return nil +} + +// ApplicationGatewayProbeHealthResponseMatch application gateway probe health response match. +type ApplicationGatewayProbeHealthResponseMatch struct { + // Body - Body that must be contained in the health response. Default value is empty. + Body *string `json:"body,omitempty"` + // StatusCodes - Allowed ranges of healthy status codes. Default range of healthy status codes is 200-399. + StatusCodes *[]string `json:"statusCodes,omitempty"` +} + +// ApplicationGatewayProbePropertiesFormat properties of probe of an application gateway. +type ApplicationGatewayProbePropertiesFormat struct { + // Protocol - The protocol used for the probe. Possible values include: 'HTTP', 'HTTPS' + Protocol ApplicationGatewayProtocol `json:"protocol,omitempty"` + // Host - Host name to send the probe to. + Host *string `json:"host,omitempty"` + // Path - Relative path of probe. Valid path starts from '/'. Probe is sent to ://:. + Path *string `json:"path,omitempty"` + // Interval - The probing interval in seconds. This is the time interval between two consecutive probes. Acceptable values are from 1 second to 86400 seconds. + Interval *int32 `json:"interval,omitempty"` + // Timeout - The probe timeout in seconds. Probe marked as failed if valid response is not received with this timeout period. Acceptable values are from 1 second to 86400 seconds. + Timeout *int32 `json:"timeout,omitempty"` + // UnhealthyThreshold - The probe retry count. Backend server is marked down after consecutive probe failure count reaches UnhealthyThreshold. Acceptable values are from 1 second to 20. + UnhealthyThreshold *int32 `json:"unhealthyThreshold,omitempty"` + // PickHostNameFromBackendHTTPSettings - Whether the host header should be picked from the backend http settings. Default value is false. + PickHostNameFromBackendHTTPSettings *bool `json:"pickHostNameFromBackendHttpSettings,omitempty"` + // MinServers - Minimum number of servers that are always marked healthy. Default value is 0. + MinServers *int32 `json:"minServers,omitempty"` + // Match - Criterion for classifying a healthy probe response. + Match *ApplicationGatewayProbeHealthResponseMatch `json:"match,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the probe resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // Port - Custom port which will be used for probing the backend servers. The valid value ranges from 1 to 65535. In case not set, port from http settings will be used. This property is valid for Standard_v2 and WAF_v2 only. + Port *int32 `json:"port,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayProbePropertiesFormat. +func (agppf ApplicationGatewayProbePropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agppf.Protocol != "" { + objectMap["protocol"] = agppf.Protocol + } + if agppf.Host != nil { + objectMap["host"] = agppf.Host + } + if agppf.Path != nil { + objectMap["path"] = agppf.Path + } + if agppf.Interval != nil { + objectMap["interval"] = agppf.Interval + } + if agppf.Timeout != nil { + objectMap["timeout"] = agppf.Timeout + } + if agppf.UnhealthyThreshold != nil { + objectMap["unhealthyThreshold"] = agppf.UnhealthyThreshold + } + if agppf.PickHostNameFromBackendHTTPSettings != nil { + objectMap["pickHostNameFromBackendHttpSettings"] = agppf.PickHostNameFromBackendHTTPSettings + } + if agppf.MinServers != nil { + objectMap["minServers"] = agppf.MinServers + } + if agppf.Match != nil { + objectMap["match"] = agppf.Match + } + if agppf.Port != nil { + objectMap["port"] = agppf.Port + } + return json.Marshal(objectMap) +} + +// ApplicationGatewayPropertiesFormat properties of the application gateway. +type ApplicationGatewayPropertiesFormat struct { + // Sku - SKU of the application gateway resource. + Sku *ApplicationGatewaySku `json:"sku,omitempty"` + // SslPolicy - SSL policy of the application gateway resource. + SslPolicy *ApplicationGatewaySslPolicy `json:"sslPolicy,omitempty"` + // OperationalState - READ-ONLY; Operational state of the application gateway resource. Possible values include: 'Stopped', 'Starting', 'Running', 'Stopping' + OperationalState ApplicationGatewayOperationalState `json:"operationalState,omitempty"` + // GatewayIPConfigurations - Subnets of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + GatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"gatewayIPConfigurations,omitempty"` + // AuthenticationCertificates - Authentication certificates of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + AuthenticationCertificates *[]ApplicationGatewayAuthenticationCertificate `json:"authenticationCertificates,omitempty"` + // TrustedRootCertificates - Trusted Root certificates of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + TrustedRootCertificates *[]ApplicationGatewayTrustedRootCertificate `json:"trustedRootCertificates,omitempty"` + // TrustedClientCertificates - Trusted client certificates of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + TrustedClientCertificates *[]ApplicationGatewayTrustedClientCertificate `json:"trustedClientCertificates,omitempty"` + // SslCertificates - SSL certificates of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + SslCertificates *[]ApplicationGatewaySslCertificate `json:"sslCertificates,omitempty"` + // FrontendIPConfigurations - Frontend IP addresses of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + FrontendIPConfigurations *[]ApplicationGatewayFrontendIPConfiguration `json:"frontendIPConfigurations,omitempty"` + // FrontendPorts - Frontend ports of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + FrontendPorts *[]ApplicationGatewayFrontendPort `json:"frontendPorts,omitempty"` + // Probes - Probes of the application gateway resource. + Probes *[]ApplicationGatewayProbe `json:"probes,omitempty"` + // BackendAddressPools - Backend address pool of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + BackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"backendAddressPools,omitempty"` + // BackendHTTPSettingsCollection - Backend http settings of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + BackendHTTPSettingsCollection *[]ApplicationGatewayBackendHTTPSettings `json:"backendHttpSettingsCollection,omitempty"` + // HTTPListeners - Http listeners of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + HTTPListeners *[]ApplicationGatewayHTTPListener `json:"httpListeners,omitempty"` + // SslProfiles - SSL profiles of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + SslProfiles *[]ApplicationGatewaySslProfile `json:"sslProfiles,omitempty"` + // URLPathMaps - URL path map of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + URLPathMaps *[]ApplicationGatewayURLPathMap `json:"urlPathMaps,omitempty"` + // RequestRoutingRules - Request routing rules of the application gateway resource. + RequestRoutingRules *[]ApplicationGatewayRequestRoutingRule `json:"requestRoutingRules,omitempty"` + // RewriteRuleSets - Rewrite rules for the application gateway resource. + RewriteRuleSets *[]ApplicationGatewayRewriteRuleSet `json:"rewriteRuleSets,omitempty"` + // RedirectConfigurations - Redirect configurations of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + RedirectConfigurations *[]ApplicationGatewayRedirectConfiguration `json:"redirectConfigurations,omitempty"` + // WebApplicationFirewallConfiguration - Web application firewall configuration. + WebApplicationFirewallConfiguration *ApplicationGatewayWebApplicationFirewallConfiguration `json:"webApplicationFirewallConfiguration,omitempty"` + // FirewallPolicy - Reference to the FirewallPolicy resource. + FirewallPolicy *SubResource `json:"firewallPolicy,omitempty"` + // EnableHTTP2 - Whether HTTP2 is enabled on the application gateway resource. + EnableHTTP2 *bool `json:"enableHttp2,omitempty"` + // EnableFips - Whether FIPS is enabled on the application gateway resource. + EnableFips *bool `json:"enableFips,omitempty"` + // AutoscaleConfiguration - Autoscale Configuration. + AutoscaleConfiguration *ApplicationGatewayAutoscaleConfiguration `json:"autoscaleConfiguration,omitempty"` + // PrivateLinkConfigurations - PrivateLink configurations on application gateway. + PrivateLinkConfigurations *[]ApplicationGatewayPrivateLinkConfiguration `json:"privateLinkConfigurations,omitempty"` + // PrivateEndpointConnections - READ-ONLY; Private Endpoint connections on application gateway. + PrivateEndpointConnections *[]ApplicationGatewayPrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + // ResourceGUID - READ-ONLY; The resource GUID property of the application gateway resource. + ResourceGUID *string `json:"resourceGuid,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the application gateway resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // CustomErrorConfigurations - Custom error configurations of the application gateway resource. + CustomErrorConfigurations *[]ApplicationGatewayCustomError `json:"customErrorConfigurations,omitempty"` + // ForceFirewallPolicyAssociation - If true, associates a firewall policy with an application gateway regardless whether the policy differs from the WAF Config. + ForceFirewallPolicyAssociation *bool `json:"forceFirewallPolicyAssociation,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayPropertiesFormat. +func (agpf ApplicationGatewayPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agpf.Sku != nil { + objectMap["sku"] = agpf.Sku + } + if agpf.SslPolicy != nil { + objectMap["sslPolicy"] = agpf.SslPolicy + } + if agpf.GatewayIPConfigurations != nil { + objectMap["gatewayIPConfigurations"] = agpf.GatewayIPConfigurations + } + if agpf.AuthenticationCertificates != nil { + objectMap["authenticationCertificates"] = agpf.AuthenticationCertificates + } + if agpf.TrustedRootCertificates != nil { + objectMap["trustedRootCertificates"] = agpf.TrustedRootCertificates + } + if agpf.TrustedClientCertificates != nil { + objectMap["trustedClientCertificates"] = agpf.TrustedClientCertificates + } + if agpf.SslCertificates != nil { + objectMap["sslCertificates"] = agpf.SslCertificates + } + if agpf.FrontendIPConfigurations != nil { + objectMap["frontendIPConfigurations"] = agpf.FrontendIPConfigurations + } + if agpf.FrontendPorts != nil { + objectMap["frontendPorts"] = agpf.FrontendPorts + } + if agpf.Probes != nil { + objectMap["probes"] = agpf.Probes + } + if agpf.BackendAddressPools != nil { + objectMap["backendAddressPools"] = agpf.BackendAddressPools + } + if agpf.BackendHTTPSettingsCollection != nil { + objectMap["backendHttpSettingsCollection"] = agpf.BackendHTTPSettingsCollection + } + if agpf.HTTPListeners != nil { + objectMap["httpListeners"] = agpf.HTTPListeners + } + if agpf.SslProfiles != nil { + objectMap["sslProfiles"] = agpf.SslProfiles + } + if agpf.URLPathMaps != nil { + objectMap["urlPathMaps"] = agpf.URLPathMaps + } + if agpf.RequestRoutingRules != nil { + objectMap["requestRoutingRules"] = agpf.RequestRoutingRules + } + if agpf.RewriteRuleSets != nil { + objectMap["rewriteRuleSets"] = agpf.RewriteRuleSets + } + if agpf.RedirectConfigurations != nil { + objectMap["redirectConfigurations"] = agpf.RedirectConfigurations + } + if agpf.WebApplicationFirewallConfiguration != nil { + objectMap["webApplicationFirewallConfiguration"] = agpf.WebApplicationFirewallConfiguration + } + if agpf.FirewallPolicy != nil { + objectMap["firewallPolicy"] = agpf.FirewallPolicy + } + if agpf.EnableHTTP2 != nil { + objectMap["enableHttp2"] = agpf.EnableHTTP2 + } + if agpf.EnableFips != nil { + objectMap["enableFips"] = agpf.EnableFips + } + if agpf.AutoscaleConfiguration != nil { + objectMap["autoscaleConfiguration"] = agpf.AutoscaleConfiguration + } + if agpf.PrivateLinkConfigurations != nil { + objectMap["privateLinkConfigurations"] = agpf.PrivateLinkConfigurations + } + if agpf.CustomErrorConfigurations != nil { + objectMap["customErrorConfigurations"] = agpf.CustomErrorConfigurations + } + if agpf.ForceFirewallPolicyAssociation != nil { + objectMap["forceFirewallPolicyAssociation"] = agpf.ForceFirewallPolicyAssociation + } + return json.Marshal(objectMap) +} + +// ApplicationGatewayRedirectConfiguration redirect configuration of an application gateway. +type ApplicationGatewayRedirectConfiguration struct { + // ApplicationGatewayRedirectConfigurationPropertiesFormat - Properties of the application gateway redirect configuration. + *ApplicationGatewayRedirectConfigurationPropertiesFormat `json:"properties,omitempty"` + // Name - Name of the redirect configuration that is unique within an Application Gateway. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayRedirectConfiguration. +func (agrc ApplicationGatewayRedirectConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agrc.ApplicationGatewayRedirectConfigurationPropertiesFormat != nil { + objectMap["properties"] = agrc.ApplicationGatewayRedirectConfigurationPropertiesFormat + } + if agrc.Name != nil { + objectMap["name"] = agrc.Name + } + if agrc.ID != nil { + objectMap["id"] = agrc.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayRedirectConfiguration struct. +func (agrc *ApplicationGatewayRedirectConfiguration) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationGatewayRedirectConfigurationPropertiesFormat ApplicationGatewayRedirectConfigurationPropertiesFormat + err = json.Unmarshal(*v, &applicationGatewayRedirectConfigurationPropertiesFormat) + if err != nil { + return err + } + agrc.ApplicationGatewayRedirectConfigurationPropertiesFormat = &applicationGatewayRedirectConfigurationPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + agrc.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + agrc.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + agrc.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + agrc.ID = &ID + } + } + } + + return nil +} + +// ApplicationGatewayRedirectConfigurationPropertiesFormat properties of redirect configuration of the +// application gateway. +type ApplicationGatewayRedirectConfigurationPropertiesFormat struct { + // RedirectType - HTTP redirection type. Possible values include: 'Permanent', 'Found', 'SeeOther', 'Temporary' + RedirectType ApplicationGatewayRedirectType `json:"redirectType,omitempty"` + // TargetListener - Reference to a listener to redirect the request to. + TargetListener *SubResource `json:"targetListener,omitempty"` + // TargetURL - Url to redirect the request to. + TargetURL *string `json:"targetUrl,omitempty"` + // IncludePath - Include path in the redirected url. + IncludePath *bool `json:"includePath,omitempty"` + // IncludeQueryString - Include query string in the redirected url. + IncludeQueryString *bool `json:"includeQueryString,omitempty"` + // RequestRoutingRules - Request routing specifying redirect configuration. + RequestRoutingRules *[]SubResource `json:"requestRoutingRules,omitempty"` + // URLPathMaps - Url path maps specifying default redirect configuration. + URLPathMaps *[]SubResource `json:"urlPathMaps,omitempty"` + // PathRules - Path rules specifying redirect configuration. + PathRules *[]SubResource `json:"pathRules,omitempty"` +} + +// ApplicationGatewayRequestRoutingRule request routing rule of an application gateway. +type ApplicationGatewayRequestRoutingRule struct { + // ApplicationGatewayRequestRoutingRulePropertiesFormat - Properties of the application gateway request routing rule. + *ApplicationGatewayRequestRoutingRulePropertiesFormat `json:"properties,omitempty"` + // Name - Name of the request routing rule that is unique within an Application Gateway. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayRequestRoutingRule. +func (agrrr ApplicationGatewayRequestRoutingRule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agrrr.ApplicationGatewayRequestRoutingRulePropertiesFormat != nil { + objectMap["properties"] = agrrr.ApplicationGatewayRequestRoutingRulePropertiesFormat + } + if agrrr.Name != nil { + objectMap["name"] = agrrr.Name + } + if agrrr.ID != nil { + objectMap["id"] = agrrr.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayRequestRoutingRule struct. +func (agrrr *ApplicationGatewayRequestRoutingRule) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationGatewayRequestRoutingRulePropertiesFormat ApplicationGatewayRequestRoutingRulePropertiesFormat + err = json.Unmarshal(*v, &applicationGatewayRequestRoutingRulePropertiesFormat) + if err != nil { + return err + } + agrrr.ApplicationGatewayRequestRoutingRulePropertiesFormat = &applicationGatewayRequestRoutingRulePropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + agrrr.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + agrrr.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + agrrr.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + agrrr.ID = &ID + } + } + } + + return nil +} + +// ApplicationGatewayRequestRoutingRulePropertiesFormat properties of request routing rule of the +// application gateway. +type ApplicationGatewayRequestRoutingRulePropertiesFormat struct { + // RuleType - Rule type. Possible values include: 'Basic', 'PathBasedRouting' + RuleType ApplicationGatewayRequestRoutingRuleType `json:"ruleType,omitempty"` + // Priority - Priority of the request routing rule. + Priority *int32 `json:"priority,omitempty"` + // BackendAddressPool - Backend address pool resource of the application gateway. + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + // BackendHTTPSettings - Backend http settings resource of the application gateway. + BackendHTTPSettings *SubResource `json:"backendHttpSettings,omitempty"` + // HTTPListener - Http listener resource of the application gateway. + HTTPListener *SubResource `json:"httpListener,omitempty"` + // URLPathMap - URL path map resource of the application gateway. + URLPathMap *SubResource `json:"urlPathMap,omitempty"` + // RewriteRuleSet - Rewrite Rule Set resource in Basic rule of the application gateway. + RewriteRuleSet *SubResource `json:"rewriteRuleSet,omitempty"` + // RedirectConfiguration - Redirect configuration resource of the application gateway. + RedirectConfiguration *SubResource `json:"redirectConfiguration,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the request routing rule resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayRequestRoutingRulePropertiesFormat. +func (agrrrpf ApplicationGatewayRequestRoutingRulePropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agrrrpf.RuleType != "" { + objectMap["ruleType"] = agrrrpf.RuleType + } + if agrrrpf.Priority != nil { + objectMap["priority"] = agrrrpf.Priority + } + if agrrrpf.BackendAddressPool != nil { + objectMap["backendAddressPool"] = agrrrpf.BackendAddressPool + } + if agrrrpf.BackendHTTPSettings != nil { + objectMap["backendHttpSettings"] = agrrrpf.BackendHTTPSettings + } + if agrrrpf.HTTPListener != nil { + objectMap["httpListener"] = agrrrpf.HTTPListener + } + if agrrrpf.URLPathMap != nil { + objectMap["urlPathMap"] = agrrrpf.URLPathMap + } + if agrrrpf.RewriteRuleSet != nil { + objectMap["rewriteRuleSet"] = agrrrpf.RewriteRuleSet + } + if agrrrpf.RedirectConfiguration != nil { + objectMap["redirectConfiguration"] = agrrrpf.RedirectConfiguration + } + return json.Marshal(objectMap) +} + +// ApplicationGatewayRewriteRule rewrite rule of an application gateway. +type ApplicationGatewayRewriteRule struct { + // Name - Name of the rewrite rule that is unique within an Application Gateway. + Name *string `json:"name,omitempty"` + // RuleSequence - Rule Sequence of the rewrite rule that determines the order of execution of a particular rule in a RewriteRuleSet. + RuleSequence *int32 `json:"ruleSequence,omitempty"` + // Conditions - Conditions based on which the action set execution will be evaluated. + Conditions *[]ApplicationGatewayRewriteRuleCondition `json:"conditions,omitempty"` + // ActionSet - Set of actions to be done as part of the rewrite Rule. + ActionSet *ApplicationGatewayRewriteRuleActionSet `json:"actionSet,omitempty"` +} + +// ApplicationGatewayRewriteRuleActionSet set of actions in the Rewrite Rule in Application Gateway. +type ApplicationGatewayRewriteRuleActionSet struct { + // RequestHeaderConfigurations - Request Header Actions in the Action Set. + RequestHeaderConfigurations *[]ApplicationGatewayHeaderConfiguration `json:"requestHeaderConfigurations,omitempty"` + // ResponseHeaderConfigurations - Response Header Actions in the Action Set. + ResponseHeaderConfigurations *[]ApplicationGatewayHeaderConfiguration `json:"responseHeaderConfigurations,omitempty"` + // URLConfiguration - Url Configuration Action in the Action Set. + URLConfiguration *ApplicationGatewayURLConfiguration `json:"urlConfiguration,omitempty"` +} + +// ApplicationGatewayRewriteRuleCondition set of conditions in the Rewrite Rule in Application Gateway. +type ApplicationGatewayRewriteRuleCondition struct { + // Variable - The condition parameter of the RewriteRuleCondition. + Variable *string `json:"variable,omitempty"` + // Pattern - The pattern, either fixed string or regular expression, that evaluates the truthfulness of the condition. + Pattern *string `json:"pattern,omitempty"` + // IgnoreCase - Setting this paramter to truth value with force the pattern to do a case in-sensitive comparison. + IgnoreCase *bool `json:"ignoreCase,omitempty"` + // Negate - Setting this value as truth will force to check the negation of the condition given by the user. + Negate *bool `json:"negate,omitempty"` +} + +// ApplicationGatewayRewriteRuleSet rewrite rule set of an application gateway. +type ApplicationGatewayRewriteRuleSet struct { + // ApplicationGatewayRewriteRuleSetPropertiesFormat - Properties of the application gateway rewrite rule set. + *ApplicationGatewayRewriteRuleSetPropertiesFormat `json:"properties,omitempty"` + // Name - Name of the rewrite rule set that is unique within an Application Gateway. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayRewriteRuleSet. +func (agrrs ApplicationGatewayRewriteRuleSet) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agrrs.ApplicationGatewayRewriteRuleSetPropertiesFormat != nil { + objectMap["properties"] = agrrs.ApplicationGatewayRewriteRuleSetPropertiesFormat + } + if agrrs.Name != nil { + objectMap["name"] = agrrs.Name + } + if agrrs.ID != nil { + objectMap["id"] = agrrs.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayRewriteRuleSet struct. +func (agrrs *ApplicationGatewayRewriteRuleSet) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationGatewayRewriteRuleSetPropertiesFormat ApplicationGatewayRewriteRuleSetPropertiesFormat + err = json.Unmarshal(*v, &applicationGatewayRewriteRuleSetPropertiesFormat) + if err != nil { + return err + } + agrrs.ApplicationGatewayRewriteRuleSetPropertiesFormat = &applicationGatewayRewriteRuleSetPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + agrrs.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + agrrs.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + agrrs.ID = &ID + } + } + } + + return nil +} + +// ApplicationGatewayRewriteRuleSetPropertiesFormat properties of rewrite rule set of the application +// gateway. +type ApplicationGatewayRewriteRuleSetPropertiesFormat struct { + // RewriteRules - Rewrite rules in the rewrite rule set. + RewriteRules *[]ApplicationGatewayRewriteRule `json:"rewriteRules,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the rewrite rule set resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayRewriteRuleSetPropertiesFormat. +func (agrrspf ApplicationGatewayRewriteRuleSetPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agrrspf.RewriteRules != nil { + objectMap["rewriteRules"] = agrrspf.RewriteRules + } + return json.Marshal(objectMap) +} + +// ApplicationGatewaysBackendHealthFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type ApplicationGatewaysBackendHealthFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ApplicationGatewaysBackendHealthFuture) Result(client ApplicationGatewaysClient) (agbh ApplicationGatewayBackendHealth, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysBackendHealthFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ApplicationGatewaysBackendHealthFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if agbh.Response.Response, err = future.GetResult(sender); err == nil && agbh.Response.Response.StatusCode != http.StatusNoContent { + agbh, err = client.BackendHealthResponder(agbh.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysBackendHealthFuture", "Result", agbh.Response.Response, "Failure responding to request") + } + } + return +} + +// ApplicationGatewaysBackendHealthOnDemandFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type ApplicationGatewaysBackendHealthOnDemandFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ApplicationGatewaysBackendHealthOnDemandFuture) Result(client ApplicationGatewaysClient) (agbhod ApplicationGatewayBackendHealthOnDemand, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysBackendHealthOnDemandFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ApplicationGatewaysBackendHealthOnDemandFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if agbhod.Response.Response, err = future.GetResult(sender); err == nil && agbhod.Response.Response.StatusCode != http.StatusNoContent { + agbhod, err = client.BackendHealthOnDemandResponder(agbhod.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysBackendHealthOnDemandFuture", "Result", agbhod.Response.Response, "Failure responding to request") + } + } + return +} + +// ApplicationGatewaysCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type ApplicationGatewaysCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ApplicationGatewaysCreateOrUpdateFuture) Result(client ApplicationGatewaysClient) (ag ApplicationGateway, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ApplicationGatewaysCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if ag.Response.Response, err = future.GetResult(sender); err == nil && ag.Response.Response.StatusCode != http.StatusNoContent { + ag, err = client.CreateOrUpdateResponder(ag.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysCreateOrUpdateFuture", "Result", ag.Response.Response, "Failure responding to request") + } + } + return +} + +// ApplicationGatewaysDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type ApplicationGatewaysDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ApplicationGatewaysDeleteFuture) Result(client ApplicationGatewaysClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ApplicationGatewaysDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// ApplicationGatewaySku SKU of an application gateway. +type ApplicationGatewaySku struct { + // Name - Name of an application gateway SKU. Possible values include: 'StandardSmall', 'StandardMedium', 'StandardLarge', 'WAFMedium', 'WAFLarge', 'StandardV2', 'WAFV2' + Name ApplicationGatewaySkuName `json:"name,omitempty"` + // Tier - Tier of an application gateway. Possible values include: 'ApplicationGatewayTierStandard', 'ApplicationGatewayTierWAF', 'ApplicationGatewayTierStandardV2', 'ApplicationGatewayTierWAFV2' + Tier ApplicationGatewayTier `json:"tier,omitempty"` + // Capacity - Capacity (instance count) of an application gateway. + Capacity *int32 `json:"capacity,omitempty"` +} + +// ApplicationGatewaySslCertificate SSL certificates of an application gateway. +type ApplicationGatewaySslCertificate struct { + // ApplicationGatewaySslCertificatePropertiesFormat - Properties of the application gateway SSL certificate. + *ApplicationGatewaySslCertificatePropertiesFormat `json:"properties,omitempty"` + // Name - Name of the SSL certificate that is unique within an Application Gateway. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewaySslCertificate. +func (agsc ApplicationGatewaySslCertificate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agsc.ApplicationGatewaySslCertificatePropertiesFormat != nil { + objectMap["properties"] = agsc.ApplicationGatewaySslCertificatePropertiesFormat + } + if agsc.Name != nil { + objectMap["name"] = agsc.Name + } + if agsc.ID != nil { + objectMap["id"] = agsc.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationGatewaySslCertificate struct. +func (agsc *ApplicationGatewaySslCertificate) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationGatewaySslCertificatePropertiesFormat ApplicationGatewaySslCertificatePropertiesFormat + err = json.Unmarshal(*v, &applicationGatewaySslCertificatePropertiesFormat) + if err != nil { + return err + } + agsc.ApplicationGatewaySslCertificatePropertiesFormat = &applicationGatewaySslCertificatePropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + agsc.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + agsc.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + agsc.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + agsc.ID = &ID + } + } + } + + return nil +} + +// ApplicationGatewaySslCertificatePropertiesFormat properties of SSL certificates of an application +// gateway. +type ApplicationGatewaySslCertificatePropertiesFormat struct { + // Data - Base-64 encoded pfx certificate. Only applicable in PUT Request. + Data *string `json:"data,omitempty"` + // Password - Password for the pfx file specified in data. Only applicable in PUT request. + Password *string `json:"password,omitempty"` + // PublicCertData - READ-ONLY; Base-64 encoded Public cert data corresponding to pfx specified in data. Only applicable in GET request. + PublicCertData *string `json:"publicCertData,omitempty"` + // KeyVaultSecretID - Secret Id of (base-64 encoded unencrypted pfx) 'Secret' or 'Certificate' object stored in KeyVault. + KeyVaultSecretID *string `json:"keyVaultSecretId,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the SSL certificate resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewaySslCertificatePropertiesFormat. +func (agscpf ApplicationGatewaySslCertificatePropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agscpf.Data != nil { + objectMap["data"] = agscpf.Data + } + if agscpf.Password != nil { + objectMap["password"] = agscpf.Password + } + if agscpf.KeyVaultSecretID != nil { + objectMap["keyVaultSecretId"] = agscpf.KeyVaultSecretID + } + return json.Marshal(objectMap) +} + +// ApplicationGatewaySslPolicy application Gateway Ssl policy. +type ApplicationGatewaySslPolicy struct { + // DisabledSslProtocols - Ssl protocols to be disabled on application gateway. + DisabledSslProtocols *[]ApplicationGatewaySslProtocol `json:"disabledSslProtocols,omitempty"` + // PolicyType - Type of Ssl Policy. Possible values include: 'Predefined', 'Custom' + PolicyType ApplicationGatewaySslPolicyType `json:"policyType,omitempty"` + // PolicyName - Name of Ssl predefined policy. Possible values include: 'AppGwSslPolicy20150501', 'AppGwSslPolicy20170401', 'AppGwSslPolicy20170401S' + PolicyName ApplicationGatewaySslPolicyName `json:"policyName,omitempty"` + // CipherSuites - Ssl cipher suites to be enabled in the specified order to application gateway. + CipherSuites *[]ApplicationGatewaySslCipherSuite `json:"cipherSuites,omitempty"` + // MinProtocolVersion - Minimum version of Ssl protocol to be supported on application gateway. Possible values include: 'TLSv10', 'TLSv11', 'TLSv12' + MinProtocolVersion ApplicationGatewaySslProtocol `json:"minProtocolVersion,omitempty"` +} + +// ApplicationGatewaySslPredefinedPolicy an Ssl predefined policy. +type ApplicationGatewaySslPredefinedPolicy struct { + autorest.Response `json:"-"` + // Name - Name of the Ssl predefined policy. + Name *string `json:"name,omitempty"` + // ApplicationGatewaySslPredefinedPolicyPropertiesFormat - Properties of the application gateway SSL predefined policy. + *ApplicationGatewaySslPredefinedPolicyPropertiesFormat `json:"properties,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewaySslPredefinedPolicy. +func (agspp ApplicationGatewaySslPredefinedPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agspp.Name != nil { + objectMap["name"] = agspp.Name + } + if agspp.ApplicationGatewaySslPredefinedPolicyPropertiesFormat != nil { + objectMap["properties"] = agspp.ApplicationGatewaySslPredefinedPolicyPropertiesFormat + } + if agspp.ID != nil { + objectMap["id"] = agspp.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationGatewaySslPredefinedPolicy struct. +func (agspp *ApplicationGatewaySslPredefinedPolicy) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + agspp.Name = &name + } + case "properties": + if v != nil { + var applicationGatewaySslPredefinedPolicyPropertiesFormat ApplicationGatewaySslPredefinedPolicyPropertiesFormat + err = json.Unmarshal(*v, &applicationGatewaySslPredefinedPolicyPropertiesFormat) + if err != nil { + return err + } + agspp.ApplicationGatewaySslPredefinedPolicyPropertiesFormat = &applicationGatewaySslPredefinedPolicyPropertiesFormat + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + agspp.ID = &ID + } + } + } + + return nil +} + +// ApplicationGatewaySslPredefinedPolicyPropertiesFormat properties of +// ApplicationGatewaySslPredefinedPolicy. +type ApplicationGatewaySslPredefinedPolicyPropertiesFormat struct { + // CipherSuites - Ssl cipher suites to be enabled in the specified order for application gateway. + CipherSuites *[]ApplicationGatewaySslCipherSuite `json:"cipherSuites,omitempty"` + // MinProtocolVersion - Minimum version of Ssl protocol to be supported on application gateway. Possible values include: 'TLSv10', 'TLSv11', 'TLSv12' + MinProtocolVersion ApplicationGatewaySslProtocol `json:"minProtocolVersion,omitempty"` +} + +// ApplicationGatewaySslProfile SSL profile of an application gateway. +type ApplicationGatewaySslProfile struct { + // ApplicationGatewaySslProfilePropertiesFormat - Properties of the application gateway SSL profile. + *ApplicationGatewaySslProfilePropertiesFormat `json:"properties,omitempty"` + // Name - Name of the SSL profile that is unique within an Application Gateway. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewaySslProfile. +func (agsp ApplicationGatewaySslProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agsp.ApplicationGatewaySslProfilePropertiesFormat != nil { + objectMap["properties"] = agsp.ApplicationGatewaySslProfilePropertiesFormat + } + if agsp.Name != nil { + objectMap["name"] = agsp.Name + } + if agsp.ID != nil { + objectMap["id"] = agsp.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationGatewaySslProfile struct. +func (agsp *ApplicationGatewaySslProfile) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationGatewaySslProfilePropertiesFormat ApplicationGatewaySslProfilePropertiesFormat + err = json.Unmarshal(*v, &applicationGatewaySslProfilePropertiesFormat) + if err != nil { + return err + } + agsp.ApplicationGatewaySslProfilePropertiesFormat = &applicationGatewaySslProfilePropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + agsp.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + agsp.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + agsp.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + agsp.ID = &ID + } + } + } + + return nil +} + +// ApplicationGatewaySslProfilePropertiesFormat properties of SSL profile of an application gateway. +type ApplicationGatewaySslProfilePropertiesFormat struct { + // TrustedClientCertificates - Array of references to application gateway trusted client certificates. + TrustedClientCertificates *[]SubResource `json:"trustedClientCertificates,omitempty"` + // SslPolicy - SSL policy of the application gateway resource. + SslPolicy *ApplicationGatewaySslPolicy `json:"sslPolicy,omitempty"` + // ClientAuthConfiguration - Client authentication configuration of the application gateway resource. + ClientAuthConfiguration *ApplicationGatewayClientAuthConfiguration `json:"clientAuthConfiguration,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the HTTP listener resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewaySslProfilePropertiesFormat. +func (agsppf ApplicationGatewaySslProfilePropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agsppf.TrustedClientCertificates != nil { + objectMap["trustedClientCertificates"] = agsppf.TrustedClientCertificates + } + if agsppf.SslPolicy != nil { + objectMap["sslPolicy"] = agsppf.SslPolicy + } + if agsppf.ClientAuthConfiguration != nil { + objectMap["clientAuthConfiguration"] = agsppf.ClientAuthConfiguration + } + return json.Marshal(objectMap) +} + +// ApplicationGatewaysStartFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type ApplicationGatewaysStartFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ApplicationGatewaysStartFuture) Result(client ApplicationGatewaysClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysStartFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ApplicationGatewaysStartFuture") + return + } + ar.Response = future.Response() + return +} + +// ApplicationGatewaysStopFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type ApplicationGatewaysStopFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ApplicationGatewaysStopFuture) Result(client ApplicationGatewaysClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysStopFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ApplicationGatewaysStopFuture") + return + } + ar.Response = future.Response() + return +} + +// ApplicationGatewayTrustedClientCertificate trusted client certificates of an application gateway. +type ApplicationGatewayTrustedClientCertificate struct { + // ApplicationGatewayTrustedClientCertificatePropertiesFormat - Properties of the application gateway trusted client certificate. + *ApplicationGatewayTrustedClientCertificatePropertiesFormat `json:"properties,omitempty"` + // Name - Name of the trusted client certificate that is unique within an Application Gateway. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayTrustedClientCertificate. +func (agtcc ApplicationGatewayTrustedClientCertificate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agtcc.ApplicationGatewayTrustedClientCertificatePropertiesFormat != nil { + objectMap["properties"] = agtcc.ApplicationGatewayTrustedClientCertificatePropertiesFormat + } + if agtcc.Name != nil { + objectMap["name"] = agtcc.Name + } + if agtcc.ID != nil { + objectMap["id"] = agtcc.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayTrustedClientCertificate struct. +func (agtcc *ApplicationGatewayTrustedClientCertificate) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationGatewayTrustedClientCertificatePropertiesFormat ApplicationGatewayTrustedClientCertificatePropertiesFormat + err = json.Unmarshal(*v, &applicationGatewayTrustedClientCertificatePropertiesFormat) + if err != nil { + return err + } + agtcc.ApplicationGatewayTrustedClientCertificatePropertiesFormat = &applicationGatewayTrustedClientCertificatePropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + agtcc.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + agtcc.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + agtcc.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + agtcc.ID = &ID + } + } + } + + return nil +} + +// ApplicationGatewayTrustedClientCertificatePropertiesFormat trusted client certificates properties of an +// application gateway. +type ApplicationGatewayTrustedClientCertificatePropertiesFormat struct { + // Data - Certificate public data. + Data *string `json:"data,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the trusted client certificate resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayTrustedClientCertificatePropertiesFormat. +func (agtccpf ApplicationGatewayTrustedClientCertificatePropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agtccpf.Data != nil { + objectMap["data"] = agtccpf.Data + } + return json.Marshal(objectMap) +} + +// ApplicationGatewayTrustedRootCertificate trusted Root certificates of an application gateway. +type ApplicationGatewayTrustedRootCertificate struct { + // ApplicationGatewayTrustedRootCertificatePropertiesFormat - Properties of the application gateway trusted root certificate. + *ApplicationGatewayTrustedRootCertificatePropertiesFormat `json:"properties,omitempty"` + // Name - Name of the trusted root certificate that is unique within an Application Gateway. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayTrustedRootCertificate. +func (agtrc ApplicationGatewayTrustedRootCertificate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agtrc.ApplicationGatewayTrustedRootCertificatePropertiesFormat != nil { + objectMap["properties"] = agtrc.ApplicationGatewayTrustedRootCertificatePropertiesFormat + } + if agtrc.Name != nil { + objectMap["name"] = agtrc.Name + } + if agtrc.ID != nil { + objectMap["id"] = agtrc.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayTrustedRootCertificate struct. +func (agtrc *ApplicationGatewayTrustedRootCertificate) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationGatewayTrustedRootCertificatePropertiesFormat ApplicationGatewayTrustedRootCertificatePropertiesFormat + err = json.Unmarshal(*v, &applicationGatewayTrustedRootCertificatePropertiesFormat) + if err != nil { + return err + } + agtrc.ApplicationGatewayTrustedRootCertificatePropertiesFormat = &applicationGatewayTrustedRootCertificatePropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + agtrc.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + agtrc.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + agtrc.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + agtrc.ID = &ID + } + } + } + + return nil +} + +// ApplicationGatewayTrustedRootCertificatePropertiesFormat trusted Root certificates properties of an +// application gateway. +type ApplicationGatewayTrustedRootCertificatePropertiesFormat struct { + // Data - Certificate public data. + Data *string `json:"data,omitempty"` + // KeyVaultSecretID - Secret Id of (base-64 encoded unencrypted pfx) 'Secret' or 'Certificate' object stored in KeyVault. + KeyVaultSecretID *string `json:"keyVaultSecretId,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the trusted root certificate resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayTrustedRootCertificatePropertiesFormat. +func (agtrcpf ApplicationGatewayTrustedRootCertificatePropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agtrcpf.Data != nil { + objectMap["data"] = agtrcpf.Data + } + if agtrcpf.KeyVaultSecretID != nil { + objectMap["keyVaultSecretId"] = agtrcpf.KeyVaultSecretID + } + return json.Marshal(objectMap) +} + +// ApplicationGatewayURLConfiguration url configuration of the Actions set in Application Gateway. +type ApplicationGatewayURLConfiguration struct { + // ModifiedPath - Url path which user has provided for url rewrite. Null means no path will be updated. Default value is null. + ModifiedPath *string `json:"modifiedPath,omitempty"` + // ModifiedQueryString - Query string which user has provided for url rewrite. Null means no query string will be updated. Default value is null. + ModifiedQueryString *string `json:"modifiedQueryString,omitempty"` + // Reroute - If set as true, it will re-evaluate the url path map provided in path based request routing rules using modified path. Default value is false. + Reroute *bool `json:"reroute,omitempty"` +} + +// ApplicationGatewayURLPathMap urlPathMaps give a url path to the backend mapping information for +// PathBasedRouting. +type ApplicationGatewayURLPathMap struct { + // ApplicationGatewayURLPathMapPropertiesFormat - Properties of the application gateway URL path map. + *ApplicationGatewayURLPathMapPropertiesFormat `json:"properties,omitempty"` + // Name - Name of the URL path map that is unique within an Application Gateway. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayURLPathMap. +func (agupm ApplicationGatewayURLPathMap) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agupm.ApplicationGatewayURLPathMapPropertiesFormat != nil { + objectMap["properties"] = agupm.ApplicationGatewayURLPathMapPropertiesFormat + } + if agupm.Name != nil { + objectMap["name"] = agupm.Name + } + if agupm.ID != nil { + objectMap["id"] = agupm.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayURLPathMap struct. +func (agupm *ApplicationGatewayURLPathMap) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationGatewayURLPathMapPropertiesFormat ApplicationGatewayURLPathMapPropertiesFormat + err = json.Unmarshal(*v, &applicationGatewayURLPathMapPropertiesFormat) + if err != nil { + return err + } + agupm.ApplicationGatewayURLPathMapPropertiesFormat = &applicationGatewayURLPathMapPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + agupm.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + agupm.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + agupm.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + agupm.ID = &ID + } + } + } + + return nil +} + +// ApplicationGatewayURLPathMapPropertiesFormat properties of UrlPathMap of the application gateway. +type ApplicationGatewayURLPathMapPropertiesFormat struct { + // DefaultBackendAddressPool - Default backend address pool resource of URL path map. + DefaultBackendAddressPool *SubResource `json:"defaultBackendAddressPool,omitempty"` + // DefaultBackendHTTPSettings - Default backend http settings resource of URL path map. + DefaultBackendHTTPSettings *SubResource `json:"defaultBackendHttpSettings,omitempty"` + // DefaultRewriteRuleSet - Default Rewrite rule set resource of URL path map. + DefaultRewriteRuleSet *SubResource `json:"defaultRewriteRuleSet,omitempty"` + // DefaultRedirectConfiguration - Default redirect configuration resource of URL path map. + DefaultRedirectConfiguration *SubResource `json:"defaultRedirectConfiguration,omitempty"` + // PathRules - Path rule of URL path map resource. + PathRules *[]ApplicationGatewayPathRule `json:"pathRules,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the URL path map resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationGatewayURLPathMapPropertiesFormat. +func (agupmpf ApplicationGatewayURLPathMapPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if agupmpf.DefaultBackendAddressPool != nil { + objectMap["defaultBackendAddressPool"] = agupmpf.DefaultBackendAddressPool + } + if agupmpf.DefaultBackendHTTPSettings != nil { + objectMap["defaultBackendHttpSettings"] = agupmpf.DefaultBackendHTTPSettings + } + if agupmpf.DefaultRewriteRuleSet != nil { + objectMap["defaultRewriteRuleSet"] = agupmpf.DefaultRewriteRuleSet + } + if agupmpf.DefaultRedirectConfiguration != nil { + objectMap["defaultRedirectConfiguration"] = agupmpf.DefaultRedirectConfiguration + } + if agupmpf.PathRules != nil { + objectMap["pathRules"] = agupmpf.PathRules + } + return json.Marshal(objectMap) +} + +// ApplicationGatewayWebApplicationFirewallConfiguration application gateway web application firewall +// configuration. +type ApplicationGatewayWebApplicationFirewallConfiguration struct { + // Enabled - Whether the web application firewall is enabled or not. + Enabled *bool `json:"enabled,omitempty"` + // FirewallMode - Web application firewall mode. Possible values include: 'Detection', 'Prevention' + FirewallMode ApplicationGatewayFirewallMode `json:"firewallMode,omitempty"` + // RuleSetType - The type of the web application firewall rule set. Possible values are: 'OWASP'. + RuleSetType *string `json:"ruleSetType,omitempty"` + // RuleSetVersion - The version of the rule set type. + RuleSetVersion *string `json:"ruleSetVersion,omitempty"` + // DisabledRuleGroups - The disabled rule groups. + DisabledRuleGroups *[]ApplicationGatewayFirewallDisabledRuleGroup `json:"disabledRuleGroups,omitempty"` + // RequestBodyCheck - Whether allow WAF to check request Body. + RequestBodyCheck *bool `json:"requestBodyCheck,omitempty"` + // MaxRequestBodySize - Maximum request body size for WAF. + MaxRequestBodySize *int32 `json:"maxRequestBodySize,omitempty"` + // MaxRequestBodySizeInKb - Maximum request body size in Kb for WAF. + MaxRequestBodySizeInKb *int32 `json:"maxRequestBodySizeInKb,omitempty"` + // FileUploadLimitInMb - Maximum file upload size in Mb for WAF. + FileUploadLimitInMb *int32 `json:"fileUploadLimitInMb,omitempty"` + // Exclusions - The exclusion list. + Exclusions *[]ApplicationGatewayFirewallExclusion `json:"exclusions,omitempty"` +} + +// ApplicationRule rule of type application. +type ApplicationRule struct { + // SourceAddresses - List of source IP addresses for this rule. + SourceAddresses *[]string `json:"sourceAddresses,omitempty"` + // DestinationAddresses - List of destination IP addresses or Service Tags. + DestinationAddresses *[]string `json:"destinationAddresses,omitempty"` + // Protocols - Array of Application Protocols. + Protocols *[]FirewallPolicyRuleApplicationProtocol `json:"protocols,omitempty"` + // TargetFqdns - List of FQDNs for this rule. + TargetFqdns *[]string `json:"targetFqdns,omitempty"` + // TargetUrls - List of Urls for this rule condition. + TargetUrls *[]string `json:"targetUrls,omitempty"` + // FqdnTags - List of FQDN Tags for this rule. + FqdnTags *[]string `json:"fqdnTags,omitempty"` + // SourceIPGroups - List of source IpGroups for this rule. + SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` + // TerminateTLS - Terminate TLS connections for this rule. + TerminateTLS *bool `json:"terminateTLS,omitempty"` + // WebCategories - List of destination azure web categories. + WebCategories *[]string `json:"webCategories,omitempty"` + // Name - Name of the rule. + Name *string `json:"name,omitempty"` + // Description - Description of the rule. + Description *string `json:"description,omitempty"` + // RuleType - Possible values include: 'RuleTypeFirewallPolicyRule', 'RuleTypeApplicationRule', 'RuleTypeNatRule', 'RuleTypeNetworkRule' + RuleType RuleType `json:"ruleType,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationRule. +func (ar ApplicationRule) MarshalJSON() ([]byte, error) { + ar.RuleType = RuleTypeApplicationRule + objectMap := make(map[string]interface{}) + if ar.SourceAddresses != nil { + objectMap["sourceAddresses"] = ar.SourceAddresses + } + if ar.DestinationAddresses != nil { + objectMap["destinationAddresses"] = ar.DestinationAddresses + } + if ar.Protocols != nil { + objectMap["protocols"] = ar.Protocols + } + if ar.TargetFqdns != nil { + objectMap["targetFqdns"] = ar.TargetFqdns + } + if ar.TargetUrls != nil { + objectMap["targetUrls"] = ar.TargetUrls + } + if ar.FqdnTags != nil { + objectMap["fqdnTags"] = ar.FqdnTags + } + if ar.SourceIPGroups != nil { + objectMap["sourceIpGroups"] = ar.SourceIPGroups + } + if ar.TerminateTLS != nil { + objectMap["terminateTLS"] = ar.TerminateTLS + } + if ar.WebCategories != nil { + objectMap["webCategories"] = ar.WebCategories + } + if ar.Name != nil { + objectMap["name"] = ar.Name + } + if ar.Description != nil { + objectMap["description"] = ar.Description + } + if ar.RuleType != "" { + objectMap["ruleType"] = ar.RuleType + } + return json.Marshal(objectMap) +} + +// AsApplicationRule is the BasicFirewallPolicyRule implementation for ApplicationRule. +func (ar ApplicationRule) AsApplicationRule() (*ApplicationRule, bool) { + return &ar, true +} + +// AsNatRule is the BasicFirewallPolicyRule implementation for ApplicationRule. +func (ar ApplicationRule) AsNatRule() (*NatRule, bool) { + return nil, false +} + +// AsRule is the BasicFirewallPolicyRule implementation for ApplicationRule. +func (ar ApplicationRule) AsRule() (*Rule, bool) { + return nil, false +} + +// AsFirewallPolicyRule is the BasicFirewallPolicyRule implementation for ApplicationRule. +func (ar ApplicationRule) AsFirewallPolicyRule() (*FirewallPolicyRule, bool) { + return nil, false +} + +// AsBasicFirewallPolicyRule is the BasicFirewallPolicyRule implementation for ApplicationRule. +func (ar ApplicationRule) AsBasicFirewallPolicyRule() (BasicFirewallPolicyRule, bool) { + return &ar, true +} + +// ApplicationSecurityGroup an application security group in a resource group. +type ApplicationSecurityGroup struct { + autorest.Response `json:"-"` + // ApplicationSecurityGroupPropertiesFormat - Properties of the application security group. + *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for ApplicationSecurityGroup. +func (asg ApplicationSecurityGroup) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if asg.ApplicationSecurityGroupPropertiesFormat != nil { + objectMap["properties"] = asg.ApplicationSecurityGroupPropertiesFormat + } + if asg.ID != nil { + objectMap["id"] = asg.ID + } + if asg.Location != nil { + objectMap["location"] = asg.Location + } + if asg.Tags != nil { + objectMap["tags"] = asg.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationSecurityGroup struct. +func (asg *ApplicationSecurityGroup) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationSecurityGroupPropertiesFormat ApplicationSecurityGroupPropertiesFormat + err = json.Unmarshal(*v, &applicationSecurityGroupPropertiesFormat) + if err != nil { + return err + } + asg.ApplicationSecurityGroupPropertiesFormat = &applicationSecurityGroupPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + asg.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + asg.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + asg.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + asg.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + asg.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + asg.Tags = tags + } + } + } + + return nil +} + +// ApplicationSecurityGroupListResult a list of application security groups. +type ApplicationSecurityGroupListResult struct { + autorest.Response `json:"-"` + // Value - A list of application security groups. + Value *[]ApplicationSecurityGroup `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupListResult. +func (asglr ApplicationSecurityGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if asglr.Value != nil { + objectMap["value"] = asglr.Value + } + return json.Marshal(objectMap) +} + +// ApplicationSecurityGroupListResultIterator provides access to a complete listing of +// ApplicationSecurityGroup values. +type ApplicationSecurityGroupListResultIterator struct { + i int + page ApplicationSecurityGroupListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ApplicationSecurityGroupListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationSecurityGroupListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ApplicationSecurityGroupListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ApplicationSecurityGroupListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ApplicationSecurityGroupListResultIterator) Response() ApplicationSecurityGroupListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ApplicationSecurityGroupListResultIterator) Value() ApplicationSecurityGroup { + if !iter.page.NotDone() { + return ApplicationSecurityGroup{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ApplicationSecurityGroupListResultIterator type. +func NewApplicationSecurityGroupListResultIterator(page ApplicationSecurityGroupListResultPage) ApplicationSecurityGroupListResultIterator { + return ApplicationSecurityGroupListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (asglr ApplicationSecurityGroupListResult) IsEmpty() bool { + return asglr.Value == nil || len(*asglr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (asglr ApplicationSecurityGroupListResult) hasNextLink() bool { + return asglr.NextLink != nil && len(*asglr.NextLink) != 0 +} + +// applicationSecurityGroupListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (asglr ApplicationSecurityGroupListResult) applicationSecurityGroupListResultPreparer(ctx context.Context) (*http.Request, error) { + if !asglr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(asglr.NextLink))) +} + +// ApplicationSecurityGroupListResultPage contains a page of ApplicationSecurityGroup values. +type ApplicationSecurityGroupListResultPage struct { + fn func(context.Context, ApplicationSecurityGroupListResult) (ApplicationSecurityGroupListResult, error) + asglr ApplicationSecurityGroupListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ApplicationSecurityGroupListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationSecurityGroupListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.asglr) + if err != nil { + return err + } + page.asglr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ApplicationSecurityGroupListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ApplicationSecurityGroupListResultPage) NotDone() bool { + return !page.asglr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ApplicationSecurityGroupListResultPage) Response() ApplicationSecurityGroupListResult { + return page.asglr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ApplicationSecurityGroupListResultPage) Values() []ApplicationSecurityGroup { + if page.asglr.IsEmpty() { + return nil + } + return *page.asglr.Value +} + +// Creates a new instance of the ApplicationSecurityGroupListResultPage type. +func NewApplicationSecurityGroupListResultPage(cur ApplicationSecurityGroupListResult, getNextPage func(context.Context, ApplicationSecurityGroupListResult) (ApplicationSecurityGroupListResult, error)) ApplicationSecurityGroupListResultPage { + return ApplicationSecurityGroupListResultPage{ + fn: getNextPage, + asglr: cur, + } +} + +// ApplicationSecurityGroupPropertiesFormat application security group properties. +type ApplicationSecurityGroupPropertiesFormat struct { + // ResourceGUID - READ-ONLY; The resource GUID property of the application security group resource. It uniquely identifies a resource, even if the user changes its name or migrate the resource across subscriptions or resource groups. + ResourceGUID *string `json:"resourceGuid,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the application security group resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type ApplicationSecurityGroupsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ApplicationSecurityGroupsCreateOrUpdateFuture) Result(client ApplicationSecurityGroupsClient) (asg ApplicationSecurityGroup, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ApplicationSecurityGroupsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if asg.Response.Response, err = future.GetResult(sender); err == nil && asg.Response.Response.StatusCode != http.StatusNoContent { + asg, err = client.CreateOrUpdateResponder(asg.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsCreateOrUpdateFuture", "Result", asg.Response.Response, "Failure responding to request") + } + } + return +} + +// ApplicationSecurityGroupsDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type ApplicationSecurityGroupsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ApplicationSecurityGroupsDeleteFuture) Result(client ApplicationSecurityGroupsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ApplicationSecurityGroupsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// AuthorizationListResult response for ListAuthorizations API service call retrieves all authorizations +// that belongs to an ExpressRouteCircuit. +type AuthorizationListResult struct { + autorest.Response `json:"-"` + // Value - The authorizations in an ExpressRoute Circuit. + Value *[]ExpressRouteCircuitAuthorization `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// AuthorizationListResultIterator provides access to a complete listing of +// ExpressRouteCircuitAuthorization values. +type AuthorizationListResultIterator struct { + i int + page AuthorizationListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *AuthorizationListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AuthorizationListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *AuthorizationListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter AuthorizationListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter AuthorizationListResultIterator) Response() AuthorizationListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter AuthorizationListResultIterator) Value() ExpressRouteCircuitAuthorization { + if !iter.page.NotDone() { + return ExpressRouteCircuitAuthorization{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the AuthorizationListResultIterator type. +func NewAuthorizationListResultIterator(page AuthorizationListResultPage) AuthorizationListResultIterator { + return AuthorizationListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (alr AuthorizationListResult) IsEmpty() bool { + return alr.Value == nil || len(*alr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (alr AuthorizationListResult) hasNextLink() bool { + return alr.NextLink != nil && len(*alr.NextLink) != 0 +} + +// authorizationListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (alr AuthorizationListResult) authorizationListResultPreparer(ctx context.Context) (*http.Request, error) { + if !alr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(alr.NextLink))) +} + +// AuthorizationListResultPage contains a page of ExpressRouteCircuitAuthorization values. +type AuthorizationListResultPage struct { + fn func(context.Context, AuthorizationListResult) (AuthorizationListResult, error) + alr AuthorizationListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *AuthorizationListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AuthorizationListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.alr) + if err != nil { + return err + } + page.alr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *AuthorizationListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page AuthorizationListResultPage) NotDone() bool { + return !page.alr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page AuthorizationListResultPage) Response() AuthorizationListResult { + return page.alr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page AuthorizationListResultPage) Values() []ExpressRouteCircuitAuthorization { + if page.alr.IsEmpty() { + return nil + } + return *page.alr.Value +} + +// Creates a new instance of the AuthorizationListResultPage type. +func NewAuthorizationListResultPage(cur AuthorizationListResult, getNextPage func(context.Context, AuthorizationListResult) (AuthorizationListResult, error)) AuthorizationListResultPage { + return AuthorizationListResultPage{ + fn: getNextPage, + alr: cur, + } +} + +// AuthorizationPropertiesFormat properties of ExpressRouteCircuitAuthorization. +type AuthorizationPropertiesFormat struct { + // AuthorizationKey - The authorization key. + AuthorizationKey *string `json:"authorizationKey,omitempty"` + // AuthorizationUseStatus - The authorization use status. Possible values include: 'Available', 'InUse' + AuthorizationUseStatus AuthorizationUseStatus `json:"authorizationUseStatus,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the authorization resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for AuthorizationPropertiesFormat. +func (apf AuthorizationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if apf.AuthorizationKey != nil { + objectMap["authorizationKey"] = apf.AuthorizationKey + } + if apf.AuthorizationUseStatus != "" { + objectMap["authorizationUseStatus"] = apf.AuthorizationUseStatus + } + return json.Marshal(objectMap) +} + +// AutoApprovedPrivateLinkService the information of an AutoApprovedPrivateLinkService. +type AutoApprovedPrivateLinkService struct { + // PrivateLinkService - The id of the private link service resource. + PrivateLinkService *string `json:"privateLinkService,omitempty"` +} + +// AutoApprovedPrivateLinkServicesResult an array of private link service id that can be linked to a +// private end point with auto approved. +type AutoApprovedPrivateLinkServicesResult struct { + autorest.Response `json:"-"` + // Value - An array of auto approved private link service. + Value *[]AutoApprovedPrivateLinkService `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for AutoApprovedPrivateLinkServicesResult. +func (aaplsr AutoApprovedPrivateLinkServicesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if aaplsr.Value != nil { + objectMap["value"] = aaplsr.Value + } + return json.Marshal(objectMap) +} + +// AutoApprovedPrivateLinkServicesResultIterator provides access to a complete listing of +// AutoApprovedPrivateLinkService values. +type AutoApprovedPrivateLinkServicesResultIterator struct { + i int + page AutoApprovedPrivateLinkServicesResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *AutoApprovedPrivateLinkServicesResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AutoApprovedPrivateLinkServicesResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *AutoApprovedPrivateLinkServicesResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter AutoApprovedPrivateLinkServicesResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter AutoApprovedPrivateLinkServicesResultIterator) Response() AutoApprovedPrivateLinkServicesResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter AutoApprovedPrivateLinkServicesResultIterator) Value() AutoApprovedPrivateLinkService { + if !iter.page.NotDone() { + return AutoApprovedPrivateLinkService{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the AutoApprovedPrivateLinkServicesResultIterator type. +func NewAutoApprovedPrivateLinkServicesResultIterator(page AutoApprovedPrivateLinkServicesResultPage) AutoApprovedPrivateLinkServicesResultIterator { + return AutoApprovedPrivateLinkServicesResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (aaplsr AutoApprovedPrivateLinkServicesResult) IsEmpty() bool { + return aaplsr.Value == nil || len(*aaplsr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (aaplsr AutoApprovedPrivateLinkServicesResult) hasNextLink() bool { + return aaplsr.NextLink != nil && len(*aaplsr.NextLink) != 0 +} + +// autoApprovedPrivateLinkServicesResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (aaplsr AutoApprovedPrivateLinkServicesResult) autoApprovedPrivateLinkServicesResultPreparer(ctx context.Context) (*http.Request, error) { + if !aaplsr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(aaplsr.NextLink))) +} + +// AutoApprovedPrivateLinkServicesResultPage contains a page of AutoApprovedPrivateLinkService values. +type AutoApprovedPrivateLinkServicesResultPage struct { + fn func(context.Context, AutoApprovedPrivateLinkServicesResult) (AutoApprovedPrivateLinkServicesResult, error) + aaplsr AutoApprovedPrivateLinkServicesResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *AutoApprovedPrivateLinkServicesResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AutoApprovedPrivateLinkServicesResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.aaplsr) + if err != nil { + return err + } + page.aaplsr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *AutoApprovedPrivateLinkServicesResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page AutoApprovedPrivateLinkServicesResultPage) NotDone() bool { + return !page.aaplsr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page AutoApprovedPrivateLinkServicesResultPage) Response() AutoApprovedPrivateLinkServicesResult { + return page.aaplsr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page AutoApprovedPrivateLinkServicesResultPage) Values() []AutoApprovedPrivateLinkService { + if page.aaplsr.IsEmpty() { + return nil + } + return *page.aaplsr.Value +} + +// Creates a new instance of the AutoApprovedPrivateLinkServicesResultPage type. +func NewAutoApprovedPrivateLinkServicesResultPage(cur AutoApprovedPrivateLinkServicesResult, getNextPage func(context.Context, AutoApprovedPrivateLinkServicesResult) (AutoApprovedPrivateLinkServicesResult, error)) AutoApprovedPrivateLinkServicesResultPage { + return AutoApprovedPrivateLinkServicesResultPage{ + fn: getNextPage, + aaplsr: cur, + } +} + +// Availability availability of the metric. +type Availability struct { + // TimeGrain - The time grain of the availability. + TimeGrain *string `json:"timeGrain,omitempty"` + // Retention - The retention of the availability. + Retention *string `json:"retention,omitempty"` + // BlobDuration - Duration of the availability blob. + BlobDuration *string `json:"blobDuration,omitempty"` +} + +// AvailableDelegation the serviceName of an AvailableDelegation indicates a possible delegation for a +// subnet. +type AvailableDelegation struct { + // Name - The name of the AvailableDelegation resource. + Name *string `json:"name,omitempty"` + // ID - A unique identifier of the AvailableDelegation resource. + ID *string `json:"id,omitempty"` + // Type - Resource type. + Type *string `json:"type,omitempty"` + // ServiceName - The name of the service and resource. + ServiceName *string `json:"serviceName,omitempty"` + // Actions - The actions permitted to the service upon delegation. + Actions *[]string `json:"actions,omitempty"` +} + +// AvailableDelegationsResult an array of available delegations. +type AvailableDelegationsResult struct { + autorest.Response `json:"-"` + // Value - An array of available delegations. + Value *[]AvailableDelegation `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for AvailableDelegationsResult. +func (adr AvailableDelegationsResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if adr.Value != nil { + objectMap["value"] = adr.Value + } + return json.Marshal(objectMap) +} + +// AvailableDelegationsResultIterator provides access to a complete listing of AvailableDelegation values. +type AvailableDelegationsResultIterator struct { + i int + page AvailableDelegationsResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *AvailableDelegationsResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AvailableDelegationsResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *AvailableDelegationsResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter AvailableDelegationsResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter AvailableDelegationsResultIterator) Response() AvailableDelegationsResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter AvailableDelegationsResultIterator) Value() AvailableDelegation { + if !iter.page.NotDone() { + return AvailableDelegation{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the AvailableDelegationsResultIterator type. +func NewAvailableDelegationsResultIterator(page AvailableDelegationsResultPage) AvailableDelegationsResultIterator { + return AvailableDelegationsResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (adr AvailableDelegationsResult) IsEmpty() bool { + return adr.Value == nil || len(*adr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (adr AvailableDelegationsResult) hasNextLink() bool { + return adr.NextLink != nil && len(*adr.NextLink) != 0 +} + +// availableDelegationsResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (adr AvailableDelegationsResult) availableDelegationsResultPreparer(ctx context.Context) (*http.Request, error) { + if !adr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(adr.NextLink))) +} + +// AvailableDelegationsResultPage contains a page of AvailableDelegation values. +type AvailableDelegationsResultPage struct { + fn func(context.Context, AvailableDelegationsResult) (AvailableDelegationsResult, error) + adr AvailableDelegationsResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *AvailableDelegationsResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AvailableDelegationsResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.adr) + if err != nil { + return err + } + page.adr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *AvailableDelegationsResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page AvailableDelegationsResultPage) NotDone() bool { + return !page.adr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page AvailableDelegationsResultPage) Response() AvailableDelegationsResult { + return page.adr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page AvailableDelegationsResultPage) Values() []AvailableDelegation { + if page.adr.IsEmpty() { + return nil + } + return *page.adr.Value +} + +// Creates a new instance of the AvailableDelegationsResultPage type. +func NewAvailableDelegationsResultPage(cur AvailableDelegationsResult, getNextPage func(context.Context, AvailableDelegationsResult) (AvailableDelegationsResult, error)) AvailableDelegationsResultPage { + return AvailableDelegationsResultPage{ + fn: getNextPage, + adr: cur, + } +} + +// AvailablePrivateEndpointType the information of an AvailablePrivateEndpointType. +type AvailablePrivateEndpointType struct { + // Name - The name of the service and resource. + Name *string `json:"name,omitempty"` + // ID - A unique identifier of the AvailablePrivateEndpoint Type resource. + ID *string `json:"id,omitempty"` + // Type - Resource type. + Type *string `json:"type,omitempty"` + // ResourceName - The name of the service and resource. + ResourceName *string `json:"resourceName,omitempty"` +} + +// AvailablePrivateEndpointTypesResult an array of available PrivateEndpoint types. +type AvailablePrivateEndpointTypesResult struct { + autorest.Response `json:"-"` + // Value - An array of available privateEndpoint type. + Value *[]AvailablePrivateEndpointType `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for AvailablePrivateEndpointTypesResult. +func (apetr AvailablePrivateEndpointTypesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if apetr.Value != nil { + objectMap["value"] = apetr.Value + } + return json.Marshal(objectMap) +} + +// AvailablePrivateEndpointTypesResultIterator provides access to a complete listing of +// AvailablePrivateEndpointType values. +type AvailablePrivateEndpointTypesResultIterator struct { + i int + page AvailablePrivateEndpointTypesResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *AvailablePrivateEndpointTypesResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AvailablePrivateEndpointTypesResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *AvailablePrivateEndpointTypesResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter AvailablePrivateEndpointTypesResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter AvailablePrivateEndpointTypesResultIterator) Response() AvailablePrivateEndpointTypesResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter AvailablePrivateEndpointTypesResultIterator) Value() AvailablePrivateEndpointType { + if !iter.page.NotDone() { + return AvailablePrivateEndpointType{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the AvailablePrivateEndpointTypesResultIterator type. +func NewAvailablePrivateEndpointTypesResultIterator(page AvailablePrivateEndpointTypesResultPage) AvailablePrivateEndpointTypesResultIterator { + return AvailablePrivateEndpointTypesResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (apetr AvailablePrivateEndpointTypesResult) IsEmpty() bool { + return apetr.Value == nil || len(*apetr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (apetr AvailablePrivateEndpointTypesResult) hasNextLink() bool { + return apetr.NextLink != nil && len(*apetr.NextLink) != 0 +} + +// availablePrivateEndpointTypesResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (apetr AvailablePrivateEndpointTypesResult) availablePrivateEndpointTypesResultPreparer(ctx context.Context) (*http.Request, error) { + if !apetr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(apetr.NextLink))) +} + +// AvailablePrivateEndpointTypesResultPage contains a page of AvailablePrivateEndpointType values. +type AvailablePrivateEndpointTypesResultPage struct { + fn func(context.Context, AvailablePrivateEndpointTypesResult) (AvailablePrivateEndpointTypesResult, error) + apetr AvailablePrivateEndpointTypesResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *AvailablePrivateEndpointTypesResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AvailablePrivateEndpointTypesResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.apetr) + if err != nil { + return err + } + page.apetr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *AvailablePrivateEndpointTypesResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page AvailablePrivateEndpointTypesResultPage) NotDone() bool { + return !page.apetr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page AvailablePrivateEndpointTypesResultPage) Response() AvailablePrivateEndpointTypesResult { + return page.apetr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page AvailablePrivateEndpointTypesResultPage) Values() []AvailablePrivateEndpointType { + if page.apetr.IsEmpty() { + return nil + } + return *page.apetr.Value +} + +// Creates a new instance of the AvailablePrivateEndpointTypesResultPage type. +func NewAvailablePrivateEndpointTypesResultPage(cur AvailablePrivateEndpointTypesResult, getNextPage func(context.Context, AvailablePrivateEndpointTypesResult) (AvailablePrivateEndpointTypesResult, error)) AvailablePrivateEndpointTypesResultPage { + return AvailablePrivateEndpointTypesResultPage{ + fn: getNextPage, + apetr: cur, + } +} + +// AvailableProvidersList list of available countries with details. +type AvailableProvidersList struct { + autorest.Response `json:"-"` + // Countries - List of available countries. + Countries *[]AvailableProvidersListCountry `json:"countries,omitempty"` +} + +// AvailableProvidersListCity city or town details. +type AvailableProvidersListCity struct { + // CityName - The city or town name. + CityName *string `json:"cityName,omitempty"` + // Providers - A list of Internet service providers. + Providers *[]string `json:"providers,omitempty"` +} + +// AvailableProvidersListCountry country details. +type AvailableProvidersListCountry struct { + // CountryName - The country name. + CountryName *string `json:"countryName,omitempty"` + // Providers - A list of Internet service providers. + Providers *[]string `json:"providers,omitempty"` + // States - List of available states in the country. + States *[]AvailableProvidersListState `json:"states,omitempty"` +} + +// AvailableProvidersListParameters constraints that determine the list of available Internet service +// providers. +type AvailableProvidersListParameters struct { + // AzureLocations - A list of Azure regions. + AzureLocations *[]string `json:"azureLocations,omitempty"` + // Country - The country for available providers list. + Country *string `json:"country,omitempty"` + // State - The state for available providers list. + State *string `json:"state,omitempty"` + // City - The city or town for available providers list. + City *string `json:"city,omitempty"` +} + +// AvailableProvidersListState state details. +type AvailableProvidersListState struct { + // StateName - The state name. + StateName *string `json:"stateName,omitempty"` + // Providers - A list of Internet service providers. + Providers *[]string `json:"providers,omitempty"` + // Cities - List of available cities or towns in the state. + Cities *[]AvailableProvidersListCity `json:"cities,omitempty"` +} + +// AvailableServiceAlias the available service alias. +type AvailableServiceAlias struct { + // Name - The name of the service alias. + Name *string `json:"name,omitempty"` + // ID - The ID of the service alias. + ID *string `json:"id,omitempty"` + // Type - The type of the resource. + Type *string `json:"type,omitempty"` + // ResourceName - The resource name of the service alias. + ResourceName *string `json:"resourceName,omitempty"` +} + +// AvailableServiceAliasesResult an array of available service aliases. +type AvailableServiceAliasesResult struct { + autorest.Response `json:"-"` + // Value - An array of available service aliases. + Value *[]AvailableServiceAlias `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for AvailableServiceAliasesResult. +func (asar AvailableServiceAliasesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if asar.Value != nil { + objectMap["value"] = asar.Value + } + return json.Marshal(objectMap) +} + +// AvailableServiceAliasesResultIterator provides access to a complete listing of AvailableServiceAlias +// values. +type AvailableServiceAliasesResultIterator struct { + i int + page AvailableServiceAliasesResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *AvailableServiceAliasesResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AvailableServiceAliasesResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *AvailableServiceAliasesResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter AvailableServiceAliasesResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter AvailableServiceAliasesResultIterator) Response() AvailableServiceAliasesResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter AvailableServiceAliasesResultIterator) Value() AvailableServiceAlias { + if !iter.page.NotDone() { + return AvailableServiceAlias{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the AvailableServiceAliasesResultIterator type. +func NewAvailableServiceAliasesResultIterator(page AvailableServiceAliasesResultPage) AvailableServiceAliasesResultIterator { + return AvailableServiceAliasesResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (asar AvailableServiceAliasesResult) IsEmpty() bool { + return asar.Value == nil || len(*asar.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (asar AvailableServiceAliasesResult) hasNextLink() bool { + return asar.NextLink != nil && len(*asar.NextLink) != 0 +} + +// availableServiceAliasesResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (asar AvailableServiceAliasesResult) availableServiceAliasesResultPreparer(ctx context.Context) (*http.Request, error) { + if !asar.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(asar.NextLink))) +} + +// AvailableServiceAliasesResultPage contains a page of AvailableServiceAlias values. +type AvailableServiceAliasesResultPage struct { + fn func(context.Context, AvailableServiceAliasesResult) (AvailableServiceAliasesResult, error) + asar AvailableServiceAliasesResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *AvailableServiceAliasesResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AvailableServiceAliasesResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.asar) + if err != nil { + return err + } + page.asar = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *AvailableServiceAliasesResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page AvailableServiceAliasesResultPage) NotDone() bool { + return !page.asar.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page AvailableServiceAliasesResultPage) Response() AvailableServiceAliasesResult { + return page.asar +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page AvailableServiceAliasesResultPage) Values() []AvailableServiceAlias { + if page.asar.IsEmpty() { + return nil + } + return *page.asar.Value +} + +// Creates a new instance of the AvailableServiceAliasesResultPage type. +func NewAvailableServiceAliasesResultPage(cur AvailableServiceAliasesResult, getNextPage func(context.Context, AvailableServiceAliasesResult) (AvailableServiceAliasesResult, error)) AvailableServiceAliasesResultPage { + return AvailableServiceAliasesResultPage{ + fn: getNextPage, + asar: cur, + } +} + +// AzureAsyncOperationResult the response body contains the status of the specified asynchronous operation, +// indicating whether it has succeeded, is in progress, or has failed. Note that this status is distinct +// from the HTTP status code returned for the Get Operation Status operation itself. If the asynchronous +// operation succeeded, the response body includes the HTTP status code for the successful request. If the +// asynchronous operation failed, the response body includes the HTTP status code for the failed request +// and error information regarding the failure. +type AzureAsyncOperationResult struct { + // Status - Status of the Azure async operation. Possible values include: 'OperationStatusInProgress', 'OperationStatusSucceeded', 'OperationStatusFailed' + Status OperationStatus `json:"status,omitempty"` + // Error - Details of the error occurred during specified asynchronous operation. + Error *Error `json:"error,omitempty"` +} + +// AzureFirewall azure Firewall resource. +type AzureFirewall struct { + autorest.Response `json:"-"` + // AzureFirewallPropertiesFormat - Properties of the azure firewall. + *AzureFirewallPropertiesFormat `json:"properties,omitempty"` + // Zones - A list of availability zones denoting where the resource needs to come from. + Zones *[]string `json:"zones,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for AzureFirewall. +func (af AzureFirewall) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if af.AzureFirewallPropertiesFormat != nil { + objectMap["properties"] = af.AzureFirewallPropertiesFormat + } + if af.Zones != nil { + objectMap["zones"] = af.Zones + } + if af.ID != nil { + objectMap["id"] = af.ID + } + if af.Location != nil { + objectMap["location"] = af.Location + } + if af.Tags != nil { + objectMap["tags"] = af.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for AzureFirewall struct. +func (af *AzureFirewall) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var azureFirewallPropertiesFormat AzureFirewallPropertiesFormat + err = json.Unmarshal(*v, &azureFirewallPropertiesFormat) + if err != nil { + return err + } + af.AzureFirewallPropertiesFormat = &azureFirewallPropertiesFormat + } + case "zones": + if v != nil { + var zones []string + err = json.Unmarshal(*v, &zones) + if err != nil { + return err + } + af.Zones = &zones + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + af.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + af.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + af.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + af.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + af.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + af.Tags = tags + } + } + } + + return nil +} + +// AzureFirewallApplicationRule properties of an application rule. +type AzureFirewallApplicationRule struct { + // Name - Name of the application rule. + Name *string `json:"name,omitempty"` + // Description - Description of the rule. + Description *string `json:"description,omitempty"` + // SourceAddresses - List of source IP addresses for this rule. + SourceAddresses *[]string `json:"sourceAddresses,omitempty"` + // Protocols - Array of ApplicationRuleProtocols. + Protocols *[]AzureFirewallApplicationRuleProtocol `json:"protocols,omitempty"` + // TargetFqdns - List of FQDNs for this rule. + TargetFqdns *[]string `json:"targetFqdns,omitempty"` + // FqdnTags - List of FQDN Tags for this rule. + FqdnTags *[]string `json:"fqdnTags,omitempty"` + // SourceIPGroups - List of source IpGroups for this rule. + SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` +} + +// AzureFirewallApplicationRuleCollection application rule collection resource. +type AzureFirewallApplicationRuleCollection struct { + // AzureFirewallApplicationRuleCollectionPropertiesFormat - Properties of the azure firewall application rule collection. + *AzureFirewallApplicationRuleCollectionPropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource that is unique within the Azure firewall. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureFirewallApplicationRuleCollection. +func (afarc AzureFirewallApplicationRuleCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if afarc.AzureFirewallApplicationRuleCollectionPropertiesFormat != nil { + objectMap["properties"] = afarc.AzureFirewallApplicationRuleCollectionPropertiesFormat + } + if afarc.Name != nil { + objectMap["name"] = afarc.Name + } + if afarc.ID != nil { + objectMap["id"] = afarc.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for AzureFirewallApplicationRuleCollection struct. +func (afarc *AzureFirewallApplicationRuleCollection) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var azureFirewallApplicationRuleCollectionPropertiesFormat AzureFirewallApplicationRuleCollectionPropertiesFormat + err = json.Unmarshal(*v, &azureFirewallApplicationRuleCollectionPropertiesFormat) + if err != nil { + return err + } + afarc.AzureFirewallApplicationRuleCollectionPropertiesFormat = &azureFirewallApplicationRuleCollectionPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + afarc.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + afarc.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + afarc.ID = &ID + } + } + } + + return nil +} + +// AzureFirewallApplicationRuleCollectionPropertiesFormat properties of the application rule collection. +type AzureFirewallApplicationRuleCollectionPropertiesFormat struct { + // Priority - Priority of the application rule collection resource. + Priority *int32 `json:"priority,omitempty"` + // Action - The action type of a rule collection. + Action *AzureFirewallRCAction `json:"action,omitempty"` + // Rules - Collection of rules used by a application rule collection. + Rules *[]AzureFirewallApplicationRule `json:"rules,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the application rule collection resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureFirewallApplicationRuleCollectionPropertiesFormat. +func (afarcpf AzureFirewallApplicationRuleCollectionPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if afarcpf.Priority != nil { + objectMap["priority"] = afarcpf.Priority + } + if afarcpf.Action != nil { + objectMap["action"] = afarcpf.Action + } + if afarcpf.Rules != nil { + objectMap["rules"] = afarcpf.Rules + } + return json.Marshal(objectMap) +} + +// AzureFirewallApplicationRuleProtocol properties of the application rule protocol. +type AzureFirewallApplicationRuleProtocol struct { + // ProtocolType - Protocol type. Possible values include: 'AzureFirewallApplicationRuleProtocolTypeHTTP', 'AzureFirewallApplicationRuleProtocolTypeHTTPS', 'AzureFirewallApplicationRuleProtocolTypeMssql' + ProtocolType AzureFirewallApplicationRuleProtocolType `json:"protocolType,omitempty"` + // Port - Port number for the protocol, cannot be greater than 64000. This field is optional. + Port *int32 `json:"port,omitempty"` +} + +// AzureFirewallFqdnTag azure Firewall FQDN Tag Resource. +type AzureFirewallFqdnTag struct { + // AzureFirewallFqdnTagPropertiesFormat - Properties of the azure firewall FQDN tag. + *AzureFirewallFqdnTagPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for AzureFirewallFqdnTag. +func (afft AzureFirewallFqdnTag) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if afft.AzureFirewallFqdnTagPropertiesFormat != nil { + objectMap["properties"] = afft.AzureFirewallFqdnTagPropertiesFormat + } + if afft.ID != nil { + objectMap["id"] = afft.ID + } + if afft.Location != nil { + objectMap["location"] = afft.Location + } + if afft.Tags != nil { + objectMap["tags"] = afft.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for AzureFirewallFqdnTag struct. +func (afft *AzureFirewallFqdnTag) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var azureFirewallFqdnTagPropertiesFormat AzureFirewallFqdnTagPropertiesFormat + err = json.Unmarshal(*v, &azureFirewallFqdnTagPropertiesFormat) + if err != nil { + return err + } + afft.AzureFirewallFqdnTagPropertiesFormat = &azureFirewallFqdnTagPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + afft.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + afft.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + afft.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + afft.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + afft.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + afft.Tags = tags + } + } + } + + return nil +} + +// AzureFirewallFqdnTagListResult response for ListAzureFirewallFqdnTags API service call. +type AzureFirewallFqdnTagListResult struct { + autorest.Response `json:"-"` + // Value - List of Azure Firewall FQDN Tags in a resource group. + Value *[]AzureFirewallFqdnTag `json:"value,omitempty"` + // NextLink - URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// AzureFirewallFqdnTagListResultIterator provides access to a complete listing of AzureFirewallFqdnTag +// values. +type AzureFirewallFqdnTagListResultIterator struct { + i int + page AzureFirewallFqdnTagListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *AzureFirewallFqdnTagListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallFqdnTagListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *AzureFirewallFqdnTagListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter AzureFirewallFqdnTagListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter AzureFirewallFqdnTagListResultIterator) Response() AzureFirewallFqdnTagListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter AzureFirewallFqdnTagListResultIterator) Value() AzureFirewallFqdnTag { + if !iter.page.NotDone() { + return AzureFirewallFqdnTag{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the AzureFirewallFqdnTagListResultIterator type. +func NewAzureFirewallFqdnTagListResultIterator(page AzureFirewallFqdnTagListResultPage) AzureFirewallFqdnTagListResultIterator { + return AzureFirewallFqdnTagListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (afftlr AzureFirewallFqdnTagListResult) IsEmpty() bool { + return afftlr.Value == nil || len(*afftlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (afftlr AzureFirewallFqdnTagListResult) hasNextLink() bool { + return afftlr.NextLink != nil && len(*afftlr.NextLink) != 0 +} + +// azureFirewallFqdnTagListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (afftlr AzureFirewallFqdnTagListResult) azureFirewallFqdnTagListResultPreparer(ctx context.Context) (*http.Request, error) { + if !afftlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(afftlr.NextLink))) +} + +// AzureFirewallFqdnTagListResultPage contains a page of AzureFirewallFqdnTag values. +type AzureFirewallFqdnTagListResultPage struct { + fn func(context.Context, AzureFirewallFqdnTagListResult) (AzureFirewallFqdnTagListResult, error) + afftlr AzureFirewallFqdnTagListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *AzureFirewallFqdnTagListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallFqdnTagListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.afftlr) + if err != nil { + return err + } + page.afftlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *AzureFirewallFqdnTagListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page AzureFirewallFqdnTagListResultPage) NotDone() bool { + return !page.afftlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page AzureFirewallFqdnTagListResultPage) Response() AzureFirewallFqdnTagListResult { + return page.afftlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page AzureFirewallFqdnTagListResultPage) Values() []AzureFirewallFqdnTag { + if page.afftlr.IsEmpty() { + return nil + } + return *page.afftlr.Value +} + +// Creates a new instance of the AzureFirewallFqdnTagListResultPage type. +func NewAzureFirewallFqdnTagListResultPage(cur AzureFirewallFqdnTagListResult, getNextPage func(context.Context, AzureFirewallFqdnTagListResult) (AzureFirewallFqdnTagListResult, error)) AzureFirewallFqdnTagListResultPage { + return AzureFirewallFqdnTagListResultPage{ + fn: getNextPage, + afftlr: cur, + } +} + +// AzureFirewallFqdnTagPropertiesFormat azure Firewall FQDN Tag Properties. +type AzureFirewallFqdnTagPropertiesFormat struct { + // ProvisioningState - READ-ONLY; The provisioning state of the Azure firewall FQDN tag resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // FqdnTagName - READ-ONLY; The name of this FQDN Tag. + FqdnTagName *string `json:"fqdnTagName,omitempty"` +} + +// AzureFirewallIPConfiguration IP configuration of an Azure Firewall. +type AzureFirewallIPConfiguration struct { + // AzureFirewallIPConfigurationPropertiesFormat - Properties of the azure firewall IP configuration. + *AzureFirewallIPConfigurationPropertiesFormat `json:"properties,omitempty"` + // Name - Name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureFirewallIPConfiguration. +func (afic AzureFirewallIPConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if afic.AzureFirewallIPConfigurationPropertiesFormat != nil { + objectMap["properties"] = afic.AzureFirewallIPConfigurationPropertiesFormat + } + if afic.Name != nil { + objectMap["name"] = afic.Name + } + if afic.ID != nil { + objectMap["id"] = afic.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for AzureFirewallIPConfiguration struct. +func (afic *AzureFirewallIPConfiguration) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var azureFirewallIPConfigurationPropertiesFormat AzureFirewallIPConfigurationPropertiesFormat + err = json.Unmarshal(*v, &azureFirewallIPConfigurationPropertiesFormat) + if err != nil { + return err + } + afic.AzureFirewallIPConfigurationPropertiesFormat = &azureFirewallIPConfigurationPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + afic.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + afic.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + afic.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + afic.ID = &ID + } + } + } + + return nil +} + +// AzureFirewallIPConfigurationPropertiesFormat properties of IP configuration of an Azure Firewall. +type AzureFirewallIPConfigurationPropertiesFormat struct { + // PrivateIPAddress - READ-ONLY; The Firewall Internal Load Balancer IP to be used as the next hop in User Defined Routes. + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + // Subnet - Reference to the subnet resource. This resource must be named 'AzureFirewallSubnet' or 'AzureFirewallManagementSubnet'. + Subnet *SubResource `json:"subnet,omitempty"` + // PublicIPAddress - Reference to the PublicIP resource. This field is a mandatory input if subnet is not null. + PublicIPAddress *SubResource `json:"publicIPAddress,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the Azure firewall IP configuration resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureFirewallIPConfigurationPropertiesFormat. +func (aficpf AzureFirewallIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if aficpf.Subnet != nil { + objectMap["subnet"] = aficpf.Subnet + } + if aficpf.PublicIPAddress != nil { + objectMap["publicIPAddress"] = aficpf.PublicIPAddress + } + return json.Marshal(objectMap) +} + +// AzureFirewallIPGroups ipGroups associated with azure firewall. +type AzureFirewallIPGroups struct { + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // ChangeNumber - READ-ONLY; The iteration number. + ChangeNumber *string `json:"changeNumber,omitempty"` +} + +// AzureFirewallListResult response for ListAzureFirewalls API service call. +type AzureFirewallListResult struct { + autorest.Response `json:"-"` + // Value - List of Azure Firewalls in a resource group. + Value *[]AzureFirewall `json:"value,omitempty"` + // NextLink - URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// AzureFirewallListResultIterator provides access to a complete listing of AzureFirewall values. +type AzureFirewallListResultIterator struct { + i int + page AzureFirewallListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *AzureFirewallListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *AzureFirewallListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter AzureFirewallListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter AzureFirewallListResultIterator) Response() AzureFirewallListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter AzureFirewallListResultIterator) Value() AzureFirewall { + if !iter.page.NotDone() { + return AzureFirewall{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the AzureFirewallListResultIterator type. +func NewAzureFirewallListResultIterator(page AzureFirewallListResultPage) AzureFirewallListResultIterator { + return AzureFirewallListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (aflr AzureFirewallListResult) IsEmpty() bool { + return aflr.Value == nil || len(*aflr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (aflr AzureFirewallListResult) hasNextLink() bool { + return aflr.NextLink != nil && len(*aflr.NextLink) != 0 +} + +// azureFirewallListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (aflr AzureFirewallListResult) azureFirewallListResultPreparer(ctx context.Context) (*http.Request, error) { + if !aflr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(aflr.NextLink))) +} + +// AzureFirewallListResultPage contains a page of AzureFirewall values. +type AzureFirewallListResultPage struct { + fn func(context.Context, AzureFirewallListResult) (AzureFirewallListResult, error) + aflr AzureFirewallListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *AzureFirewallListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.aflr) + if err != nil { + return err + } + page.aflr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *AzureFirewallListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page AzureFirewallListResultPage) NotDone() bool { + return !page.aflr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page AzureFirewallListResultPage) Response() AzureFirewallListResult { + return page.aflr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page AzureFirewallListResultPage) Values() []AzureFirewall { + if page.aflr.IsEmpty() { + return nil + } + return *page.aflr.Value +} + +// Creates a new instance of the AzureFirewallListResultPage type. +func NewAzureFirewallListResultPage(cur AzureFirewallListResult, getNextPage func(context.Context, AzureFirewallListResult) (AzureFirewallListResult, error)) AzureFirewallListResultPage { + return AzureFirewallListResultPage{ + fn: getNextPage, + aflr: cur, + } +} + +// AzureFirewallNatRCAction azureFirewall NAT Rule Collection Action. +type AzureFirewallNatRCAction struct { + // Type - The type of action. Possible values include: 'Snat', 'Dnat' + Type AzureFirewallNatRCActionType `json:"type,omitempty"` +} + +// AzureFirewallNatRule properties of a NAT rule. +type AzureFirewallNatRule struct { + // Name - Name of the NAT rule. + Name *string `json:"name,omitempty"` + // Description - Description of the rule. + Description *string `json:"description,omitempty"` + // SourceAddresses - List of source IP addresses for this rule. + SourceAddresses *[]string `json:"sourceAddresses,omitempty"` + // DestinationAddresses - List of destination IP addresses for this rule. Supports IP ranges, prefixes, and service tags. + DestinationAddresses *[]string `json:"destinationAddresses,omitempty"` + // DestinationPorts - List of destination ports. + DestinationPorts *[]string `json:"destinationPorts,omitempty"` + // Protocols - Array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule. + Protocols *[]AzureFirewallNetworkRuleProtocol `json:"protocols,omitempty"` + // TranslatedAddress - The translated address for this NAT rule. + TranslatedAddress *string `json:"translatedAddress,omitempty"` + // TranslatedPort - The translated port for this NAT rule. + TranslatedPort *string `json:"translatedPort,omitempty"` + // TranslatedFqdn - The translated FQDN for this NAT rule. + TranslatedFqdn *string `json:"translatedFqdn,omitempty"` + // SourceIPGroups - List of source IpGroups for this rule. + SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` +} + +// AzureFirewallNatRuleCollection NAT rule collection resource. +type AzureFirewallNatRuleCollection struct { + // AzureFirewallNatRuleCollectionProperties - Properties of the azure firewall NAT rule collection. + *AzureFirewallNatRuleCollectionProperties `json:"properties,omitempty"` + // Name - The name of the resource that is unique within the Azure firewall. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureFirewallNatRuleCollection. +func (afnrc AzureFirewallNatRuleCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if afnrc.AzureFirewallNatRuleCollectionProperties != nil { + objectMap["properties"] = afnrc.AzureFirewallNatRuleCollectionProperties + } + if afnrc.Name != nil { + objectMap["name"] = afnrc.Name + } + if afnrc.ID != nil { + objectMap["id"] = afnrc.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for AzureFirewallNatRuleCollection struct. +func (afnrc *AzureFirewallNatRuleCollection) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var azureFirewallNatRuleCollectionProperties AzureFirewallNatRuleCollectionProperties + err = json.Unmarshal(*v, &azureFirewallNatRuleCollectionProperties) + if err != nil { + return err + } + afnrc.AzureFirewallNatRuleCollectionProperties = &azureFirewallNatRuleCollectionProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + afnrc.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + afnrc.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + afnrc.ID = &ID + } + } + } + + return nil +} + +// AzureFirewallNatRuleCollectionProperties properties of the NAT rule collection. +type AzureFirewallNatRuleCollectionProperties struct { + // Priority - Priority of the NAT rule collection resource. + Priority *int32 `json:"priority,omitempty"` + // Action - The action type of a NAT rule collection. + Action *AzureFirewallNatRCAction `json:"action,omitempty"` + // Rules - Collection of rules used by a NAT rule collection. + Rules *[]AzureFirewallNatRule `json:"rules,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the NAT rule collection resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureFirewallNatRuleCollectionProperties. +func (afnrcp AzureFirewallNatRuleCollectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if afnrcp.Priority != nil { + objectMap["priority"] = afnrcp.Priority + } + if afnrcp.Action != nil { + objectMap["action"] = afnrcp.Action + } + if afnrcp.Rules != nil { + objectMap["rules"] = afnrcp.Rules + } + return json.Marshal(objectMap) +} + +// AzureFirewallNetworkRule properties of the network rule. +type AzureFirewallNetworkRule struct { + // Name - Name of the network rule. + Name *string `json:"name,omitempty"` + // Description - Description of the rule. + Description *string `json:"description,omitempty"` + // Protocols - Array of AzureFirewallNetworkRuleProtocols. + Protocols *[]AzureFirewallNetworkRuleProtocol `json:"protocols,omitempty"` + // SourceAddresses - List of source IP addresses for this rule. + SourceAddresses *[]string `json:"sourceAddresses,omitempty"` + // DestinationAddresses - List of destination IP addresses. + DestinationAddresses *[]string `json:"destinationAddresses,omitempty"` + // DestinationPorts - List of destination ports. + DestinationPorts *[]string `json:"destinationPorts,omitempty"` + // DestinationFqdns - List of destination FQDNs. + DestinationFqdns *[]string `json:"destinationFqdns,omitempty"` + // SourceIPGroups - List of source IpGroups for this rule. + SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` + // DestinationIPGroups - List of destination IpGroups for this rule. + DestinationIPGroups *[]string `json:"destinationIpGroups,omitempty"` +} + +// AzureFirewallNetworkRuleCollection network rule collection resource. +type AzureFirewallNetworkRuleCollection struct { + // AzureFirewallNetworkRuleCollectionPropertiesFormat - Properties of the azure firewall network rule collection. + *AzureFirewallNetworkRuleCollectionPropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource that is unique within the Azure firewall. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureFirewallNetworkRuleCollection. +func (afnrc AzureFirewallNetworkRuleCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if afnrc.AzureFirewallNetworkRuleCollectionPropertiesFormat != nil { + objectMap["properties"] = afnrc.AzureFirewallNetworkRuleCollectionPropertiesFormat + } + if afnrc.Name != nil { + objectMap["name"] = afnrc.Name + } + if afnrc.ID != nil { + objectMap["id"] = afnrc.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for AzureFirewallNetworkRuleCollection struct. +func (afnrc *AzureFirewallNetworkRuleCollection) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var azureFirewallNetworkRuleCollectionPropertiesFormat AzureFirewallNetworkRuleCollectionPropertiesFormat + err = json.Unmarshal(*v, &azureFirewallNetworkRuleCollectionPropertiesFormat) + if err != nil { + return err + } + afnrc.AzureFirewallNetworkRuleCollectionPropertiesFormat = &azureFirewallNetworkRuleCollectionPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + afnrc.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + afnrc.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + afnrc.ID = &ID + } + } + } + + return nil +} + +// AzureFirewallNetworkRuleCollectionPropertiesFormat properties of the network rule collection. +type AzureFirewallNetworkRuleCollectionPropertiesFormat struct { + // Priority - Priority of the network rule collection resource. + Priority *int32 `json:"priority,omitempty"` + // Action - The action type of a rule collection. + Action *AzureFirewallRCAction `json:"action,omitempty"` + // Rules - Collection of rules used by a network rule collection. + Rules *[]AzureFirewallNetworkRule `json:"rules,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the network rule collection resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureFirewallNetworkRuleCollectionPropertiesFormat. +func (afnrcpf AzureFirewallNetworkRuleCollectionPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if afnrcpf.Priority != nil { + objectMap["priority"] = afnrcpf.Priority + } + if afnrcpf.Action != nil { + objectMap["action"] = afnrcpf.Action + } + if afnrcpf.Rules != nil { + objectMap["rules"] = afnrcpf.Rules + } + return json.Marshal(objectMap) +} + +// AzureFirewallPropertiesFormat properties of the Azure Firewall. +type AzureFirewallPropertiesFormat struct { + // ApplicationRuleCollections - Collection of application rule collections used by Azure Firewall. + ApplicationRuleCollections *[]AzureFirewallApplicationRuleCollection `json:"applicationRuleCollections,omitempty"` + // NatRuleCollections - Collection of NAT rule collections used by Azure Firewall. + NatRuleCollections *[]AzureFirewallNatRuleCollection `json:"natRuleCollections,omitempty"` + // NetworkRuleCollections - Collection of network rule collections used by Azure Firewall. + NetworkRuleCollections *[]AzureFirewallNetworkRuleCollection `json:"networkRuleCollections,omitempty"` + // IPConfigurations - IP configuration of the Azure Firewall resource. + IPConfigurations *[]AzureFirewallIPConfiguration `json:"ipConfigurations,omitempty"` + // ManagementIPConfiguration - IP configuration of the Azure Firewall used for management traffic. + ManagementIPConfiguration *AzureFirewallIPConfiguration `json:"managementIpConfiguration,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the Azure firewall resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // ThreatIntelMode - The operation mode for Threat Intelligence. Possible values include: 'AzureFirewallThreatIntelModeAlert', 'AzureFirewallThreatIntelModeDeny', 'AzureFirewallThreatIntelModeOff' + ThreatIntelMode AzureFirewallThreatIntelMode `json:"threatIntelMode,omitempty"` + // VirtualHub - The virtualHub to which the firewall belongs. + VirtualHub *SubResource `json:"virtualHub,omitempty"` + // FirewallPolicy - The firewallPolicy associated with this azure firewall. + FirewallPolicy *SubResource `json:"firewallPolicy,omitempty"` + // HubIPAddresses - IP addresses associated with AzureFirewall. + HubIPAddresses *HubIPAddresses `json:"hubIPAddresses,omitempty"` + // IPGroups - READ-ONLY; IpGroups associated with AzureFirewall. + IPGroups *[]AzureFirewallIPGroups `json:"ipGroups,omitempty"` + // Sku - The Azure Firewall Resource SKU. + Sku *AzureFirewallSku `json:"sku,omitempty"` + // AdditionalProperties - The additional properties used to further config this azure firewall. + AdditionalProperties map[string]*string `json:"additionalProperties"` +} + +// MarshalJSON is the custom marshaler for AzureFirewallPropertiesFormat. +func (afpf AzureFirewallPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if afpf.ApplicationRuleCollections != nil { + objectMap["applicationRuleCollections"] = afpf.ApplicationRuleCollections + } + if afpf.NatRuleCollections != nil { + objectMap["natRuleCollections"] = afpf.NatRuleCollections + } + if afpf.NetworkRuleCollections != nil { + objectMap["networkRuleCollections"] = afpf.NetworkRuleCollections + } + if afpf.IPConfigurations != nil { + objectMap["ipConfigurations"] = afpf.IPConfigurations + } + if afpf.ManagementIPConfiguration != nil { + objectMap["managementIpConfiguration"] = afpf.ManagementIPConfiguration + } + if afpf.ThreatIntelMode != "" { + objectMap["threatIntelMode"] = afpf.ThreatIntelMode + } + if afpf.VirtualHub != nil { + objectMap["virtualHub"] = afpf.VirtualHub + } + if afpf.FirewallPolicy != nil { + objectMap["firewallPolicy"] = afpf.FirewallPolicy + } + if afpf.HubIPAddresses != nil { + objectMap["hubIPAddresses"] = afpf.HubIPAddresses + } + if afpf.Sku != nil { + objectMap["sku"] = afpf.Sku + } + if afpf.AdditionalProperties != nil { + objectMap["additionalProperties"] = afpf.AdditionalProperties + } + return json.Marshal(objectMap) +} + +// AzureFirewallPublicIPAddress public IP Address associated with azure firewall. +type AzureFirewallPublicIPAddress struct { + // Address - Public IP Address value. + Address *string `json:"address,omitempty"` +} + +// AzureFirewallRCAction properties of the AzureFirewallRCAction. +type AzureFirewallRCAction struct { + // Type - The type of action. Possible values include: 'AzureFirewallRCActionTypeAllow', 'AzureFirewallRCActionTypeDeny' + Type AzureFirewallRCActionType `json:"type,omitempty"` +} + +// AzureFirewallsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type AzureFirewallsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *AzureFirewallsCreateOrUpdateFuture) Result(client AzureFirewallsClient) (af AzureFirewall, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AzureFirewallsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.AzureFirewallsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if af.Response.Response, err = future.GetResult(sender); err == nil && af.Response.Response.StatusCode != http.StatusNoContent { + af, err = client.CreateOrUpdateResponder(af.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AzureFirewallsCreateOrUpdateFuture", "Result", af.Response.Response, "Failure responding to request") + } + } + return +} + +// AzureFirewallsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type AzureFirewallsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *AzureFirewallsDeleteFuture) Result(client AzureFirewallsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AzureFirewallsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.AzureFirewallsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// AzureFirewallSku SKU of an Azure Firewall. +type AzureFirewallSku struct { + // Name - Name of an Azure Firewall SKU. Possible values include: 'AZFWVNet', 'AZFWHub' + Name AzureFirewallSkuName `json:"name,omitempty"` + // Tier - Tier of an Azure Firewall. Possible values include: 'Standard', 'Premium' + Tier AzureFirewallSkuTier `json:"tier,omitempty"` +} + +// AzureFirewallsUpdateTagsFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type AzureFirewallsUpdateTagsFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *AzureFirewallsUpdateTagsFuture) Result(client AzureFirewallsClient) (af AzureFirewall, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AzureFirewallsUpdateTagsFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.AzureFirewallsUpdateTagsFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if af.Response.Response, err = future.GetResult(sender); err == nil && af.Response.Response.StatusCode != http.StatusNoContent { + af, err = client.UpdateTagsResponder(af.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.AzureFirewallsUpdateTagsFuture", "Result", af.Response.Response, "Failure responding to request") + } + } + return +} + +// AzureReachabilityReport azure reachability report details. +type AzureReachabilityReport struct { + autorest.Response `json:"-"` + // AggregationLevel - The aggregation level of Azure reachability report. Can be Country, State or City. + AggregationLevel *string `json:"aggregationLevel,omitempty"` + // ProviderLocation - Parameters that define a geographic location. + ProviderLocation *AzureReachabilityReportLocation `json:"providerLocation,omitempty"` + // ReachabilityReport - List of Azure reachability report items. + ReachabilityReport *[]AzureReachabilityReportItem `json:"reachabilityReport,omitempty"` +} + +// AzureReachabilityReportItem azure reachability report details for a given provider location. +type AzureReachabilityReportItem struct { + // Provider - The Internet service provider. + Provider *string `json:"provider,omitempty"` + // AzureLocation - The Azure region. + AzureLocation *string `json:"azureLocation,omitempty"` + // Latencies - List of latency details for each of the time series. + Latencies *[]AzureReachabilityReportLatencyInfo `json:"latencies,omitempty"` +} + +// AzureReachabilityReportLatencyInfo details on latency for a time series. +type AzureReachabilityReportLatencyInfo struct { + // TimeStamp - The time stamp. + TimeStamp *date.Time `json:"timeStamp,omitempty"` + // Score - The relative latency score between 1 and 100, higher values indicating a faster connection. + Score *int32 `json:"score,omitempty"` +} + +// AzureReachabilityReportLocation parameters that define a geographic location. +type AzureReachabilityReportLocation struct { + // Country - The name of the country. + Country *string `json:"country,omitempty"` + // State - The name of the state. + State *string `json:"state,omitempty"` + // City - The name of the city or town. + City *string `json:"city,omitempty"` +} + +// AzureReachabilityReportParameters geographic and time constraints for Azure reachability report. +type AzureReachabilityReportParameters struct { + // ProviderLocation - Parameters that define a geographic location. + ProviderLocation *AzureReachabilityReportLocation `json:"providerLocation,omitempty"` + // Providers - List of Internet service providers. + Providers *[]string `json:"providers,omitempty"` + // AzureLocations - Optional Azure regions to scope the query to. + AzureLocations *[]string `json:"azureLocations,omitempty"` + // StartTime - The start time for the Azure reachability report. + StartTime *date.Time `json:"startTime,omitempty"` + // EndTime - The end time for the Azure reachability report. + EndTime *date.Time `json:"endTime,omitempty"` +} + +// AzureWebCategory azure Web Category Resource. +type AzureWebCategory struct { + autorest.Response `json:"-"` + // AzureWebCategoryPropertiesFormat - Properties of the Azure Web Category. + *AzureWebCategoryPropertiesFormat `json:"properties,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureWebCategory. +func (awc AzureWebCategory) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if awc.AzureWebCategoryPropertiesFormat != nil { + objectMap["properties"] = awc.AzureWebCategoryPropertiesFormat + } + if awc.ID != nil { + objectMap["id"] = awc.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for AzureWebCategory struct. +func (awc *AzureWebCategory) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var azureWebCategoryPropertiesFormat AzureWebCategoryPropertiesFormat + err = json.Unmarshal(*v, &azureWebCategoryPropertiesFormat) + if err != nil { + return err + } + awc.AzureWebCategoryPropertiesFormat = &azureWebCategoryPropertiesFormat + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + awc.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + awc.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + awc.Type = &typeVar + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + awc.Etag = &etag + } + } + } + + return nil +} + +// AzureWebCategoryListResult response for ListAzureWebCategories API service call. +type AzureWebCategoryListResult struct { + autorest.Response `json:"-"` + // Value - List of Azure Web Categories for a given Subscription. + Value *[]AzureWebCategory `json:"value,omitempty"` + // NextLink - URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// AzureWebCategoryListResultIterator provides access to a complete listing of AzureWebCategory values. +type AzureWebCategoryListResultIterator struct { + i int + page AzureWebCategoryListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *AzureWebCategoryListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AzureWebCategoryListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *AzureWebCategoryListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter AzureWebCategoryListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter AzureWebCategoryListResultIterator) Response() AzureWebCategoryListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter AzureWebCategoryListResultIterator) Value() AzureWebCategory { + if !iter.page.NotDone() { + return AzureWebCategory{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the AzureWebCategoryListResultIterator type. +func NewAzureWebCategoryListResultIterator(page AzureWebCategoryListResultPage) AzureWebCategoryListResultIterator { + return AzureWebCategoryListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (awclr AzureWebCategoryListResult) IsEmpty() bool { + return awclr.Value == nil || len(*awclr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (awclr AzureWebCategoryListResult) hasNextLink() bool { + return awclr.NextLink != nil && len(*awclr.NextLink) != 0 +} + +// azureWebCategoryListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (awclr AzureWebCategoryListResult) azureWebCategoryListResultPreparer(ctx context.Context) (*http.Request, error) { + if !awclr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(awclr.NextLink))) +} + +// AzureWebCategoryListResultPage contains a page of AzureWebCategory values. +type AzureWebCategoryListResultPage struct { + fn func(context.Context, AzureWebCategoryListResult) (AzureWebCategoryListResult, error) + awclr AzureWebCategoryListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *AzureWebCategoryListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AzureWebCategoryListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.awclr) + if err != nil { + return err + } + page.awclr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *AzureWebCategoryListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page AzureWebCategoryListResultPage) NotDone() bool { + return !page.awclr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page AzureWebCategoryListResultPage) Response() AzureWebCategoryListResult { + return page.awclr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page AzureWebCategoryListResultPage) Values() []AzureWebCategory { + if page.awclr.IsEmpty() { + return nil + } + return *page.awclr.Value +} + +// Creates a new instance of the AzureWebCategoryListResultPage type. +func NewAzureWebCategoryListResultPage(cur AzureWebCategoryListResult, getNextPage func(context.Context, AzureWebCategoryListResult) (AzureWebCategoryListResult, error)) AzureWebCategoryListResultPage { + return AzureWebCategoryListResultPage{ + fn: getNextPage, + awclr: cur, + } +} + +// AzureWebCategoryPropertiesFormat azure Web Category Properties. +type AzureWebCategoryPropertiesFormat struct { + // Group - READ-ONLY; The name of the group that the category belongs to. + Group *string `json:"group,omitempty"` +} + +// BackendAddressPool pool of backend IP addresses. +type BackendAddressPool struct { + autorest.Response `json:"-"` + // BackendAddressPoolPropertiesFormat - Properties of load balancer backend address pool. + *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource that is unique within the set of backend address pools used by the load balancer. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for BackendAddressPool. +func (bap BackendAddressPool) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if bap.BackendAddressPoolPropertiesFormat != nil { + objectMap["properties"] = bap.BackendAddressPoolPropertiesFormat + } + if bap.Name != nil { + objectMap["name"] = bap.Name + } + if bap.ID != nil { + objectMap["id"] = bap.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for BackendAddressPool struct. +func (bap *BackendAddressPool) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var backendAddressPoolPropertiesFormat BackendAddressPoolPropertiesFormat + err = json.Unmarshal(*v, &backendAddressPoolPropertiesFormat) + if err != nil { + return err + } + bap.BackendAddressPoolPropertiesFormat = &backendAddressPoolPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + bap.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + bap.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + bap.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + bap.ID = &ID + } + } + } + + return nil +} + +// BackendAddressPoolPropertiesFormat properties of the backend address pool. +type BackendAddressPoolPropertiesFormat struct { + // LoadBalancerBackendAddresses - An array of backend addresses. + LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` + // BackendIPConfigurations - READ-ONLY; An array of references to IP addresses defined in network interfaces. + BackendIPConfigurations *[]InterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + // LoadBalancingRules - READ-ONLY; An array of references to load balancing rules that use this backend address pool. + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + // OutboundRule - READ-ONLY; A reference to an outbound rule that uses this backend address pool. + OutboundRule *SubResource `json:"outboundRule,omitempty"` + // OutboundRules - READ-ONLY; An array of references to outbound rules that use this backend address pool. + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the backend address pool resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for BackendAddressPoolPropertiesFormat. +func (bappf BackendAddressPoolPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if bappf.LoadBalancerBackendAddresses != nil { + objectMap["loadBalancerBackendAddresses"] = bappf.LoadBalancerBackendAddresses + } + return json.Marshal(objectMap) +} + +// BastionActiveSession the session detail for a target. +type BastionActiveSession struct { + // SessionID - READ-ONLY; A unique id for the session. + SessionID *string `json:"sessionId,omitempty"` + // StartTime - READ-ONLY; The time when the session started. + StartTime interface{} `json:"startTime,omitempty"` + // TargetSubscriptionID - READ-ONLY; The subscription id for the target virtual machine. + TargetSubscriptionID *string `json:"targetSubscriptionId,omitempty"` + // ResourceType - READ-ONLY; The type of the resource. + ResourceType *string `json:"resourceType,omitempty"` + // TargetHostName - READ-ONLY; The host name of the target. + TargetHostName *string `json:"targetHostName,omitempty"` + // TargetResourceGroup - READ-ONLY; The resource group of the target. + TargetResourceGroup *string `json:"targetResourceGroup,omitempty"` + // UserName - READ-ONLY; The user name who is active on this session. + UserName *string `json:"userName,omitempty"` + // TargetIPAddress - READ-ONLY; The IP Address of the target. + TargetIPAddress *string `json:"targetIpAddress,omitempty"` + // Protocol - READ-ONLY; The protocol used to connect to the target. Possible values include: 'SSH', 'RDP' + Protocol BastionConnectProtocol `json:"protocol,omitempty"` + // TargetResourceID - READ-ONLY; The resource id of the target. + TargetResourceID *string `json:"targetResourceId,omitempty"` + // SessionDurationInMins - READ-ONLY; Duration in mins the session has been active. + SessionDurationInMins *float64 `json:"sessionDurationInMins,omitempty"` +} + +// BastionActiveSessionListResult response for GetActiveSessions. +type BastionActiveSessionListResult struct { + autorest.Response `json:"-"` + // Value - List of active sessions on the bastion. + Value *[]BastionActiveSession `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// BastionActiveSessionListResultIterator provides access to a complete listing of BastionActiveSession +// values. +type BastionActiveSessionListResultIterator struct { + i int + page BastionActiveSessionListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *BastionActiveSessionListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BastionActiveSessionListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *BastionActiveSessionListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter BastionActiveSessionListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter BastionActiveSessionListResultIterator) Response() BastionActiveSessionListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter BastionActiveSessionListResultIterator) Value() BastionActiveSession { + if !iter.page.NotDone() { + return BastionActiveSession{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the BastionActiveSessionListResultIterator type. +func NewBastionActiveSessionListResultIterator(page BastionActiveSessionListResultPage) BastionActiveSessionListResultIterator { + return BastionActiveSessionListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (baslr BastionActiveSessionListResult) IsEmpty() bool { + return baslr.Value == nil || len(*baslr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (baslr BastionActiveSessionListResult) hasNextLink() bool { + return baslr.NextLink != nil && len(*baslr.NextLink) != 0 +} + +// bastionActiveSessionListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (baslr BastionActiveSessionListResult) bastionActiveSessionListResultPreparer(ctx context.Context) (*http.Request, error) { + if !baslr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(baslr.NextLink))) +} + +// BastionActiveSessionListResultPage contains a page of BastionActiveSession values. +type BastionActiveSessionListResultPage struct { + fn func(context.Context, BastionActiveSessionListResult) (BastionActiveSessionListResult, error) + baslr BastionActiveSessionListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *BastionActiveSessionListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BastionActiveSessionListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.baslr) + if err != nil { + return err + } + page.baslr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *BastionActiveSessionListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page BastionActiveSessionListResultPage) NotDone() bool { + return !page.baslr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page BastionActiveSessionListResultPage) Response() BastionActiveSessionListResult { + return page.baslr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page BastionActiveSessionListResultPage) Values() []BastionActiveSession { + if page.baslr.IsEmpty() { + return nil + } + return *page.baslr.Value +} + +// Creates a new instance of the BastionActiveSessionListResultPage type. +func NewBastionActiveSessionListResultPage(cur BastionActiveSessionListResult, getNextPage func(context.Context, BastionActiveSessionListResult) (BastionActiveSessionListResult, error)) BastionActiveSessionListResultPage { + return BastionActiveSessionListResultPage{ + fn: getNextPage, + baslr: cur, + } +} + +// BastionHost bastion Host resource. +type BastionHost struct { + autorest.Response `json:"-"` + // BastionHostPropertiesFormat - Represents the bastion host resource. + *BastionHostPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for BastionHost. +func (bh BastionHost) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if bh.BastionHostPropertiesFormat != nil { + objectMap["properties"] = bh.BastionHostPropertiesFormat + } + if bh.ID != nil { + objectMap["id"] = bh.ID + } + if bh.Location != nil { + objectMap["location"] = bh.Location + } + if bh.Tags != nil { + objectMap["tags"] = bh.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for BastionHost struct. +func (bh *BastionHost) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var bastionHostPropertiesFormat BastionHostPropertiesFormat + err = json.Unmarshal(*v, &bastionHostPropertiesFormat) + if err != nil { + return err + } + bh.BastionHostPropertiesFormat = &bastionHostPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + bh.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + bh.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + bh.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + bh.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + bh.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + bh.Tags = tags + } + } + } + + return nil +} + +// BastionHostIPConfiguration IP configuration of an Bastion Host. +type BastionHostIPConfiguration struct { + // BastionHostIPConfigurationPropertiesFormat - Represents the ip configuration associated with the resource. + *BastionHostIPConfigurationPropertiesFormat `json:"properties,omitempty"` + // Name - Name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Ip configuration type. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for BastionHostIPConfiguration. +func (bhic BastionHostIPConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if bhic.BastionHostIPConfigurationPropertiesFormat != nil { + objectMap["properties"] = bhic.BastionHostIPConfigurationPropertiesFormat + } + if bhic.Name != nil { + objectMap["name"] = bhic.Name + } + if bhic.ID != nil { + objectMap["id"] = bhic.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for BastionHostIPConfiguration struct. +func (bhic *BastionHostIPConfiguration) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var bastionHostIPConfigurationPropertiesFormat BastionHostIPConfigurationPropertiesFormat + err = json.Unmarshal(*v, &bastionHostIPConfigurationPropertiesFormat) + if err != nil { + return err + } + bhic.BastionHostIPConfigurationPropertiesFormat = &bastionHostIPConfigurationPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + bhic.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + bhic.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + bhic.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + bhic.ID = &ID + } + } + } + + return nil +} + +// BastionHostIPConfigurationPropertiesFormat properties of IP configuration of an Bastion Host. +type BastionHostIPConfigurationPropertiesFormat struct { + // Subnet - Reference of the subnet resource. + Subnet *SubResource `json:"subnet,omitempty"` + // PublicIPAddress - Reference of the PublicIP resource. + PublicIPAddress *SubResource `json:"publicIPAddress,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the bastion host IP configuration resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // PrivateIPAllocationMethod - Private IP allocation method. Possible values include: 'Static', 'Dynamic' + PrivateIPAllocationMethod IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` +} + +// MarshalJSON is the custom marshaler for BastionHostIPConfigurationPropertiesFormat. +func (bhicpf BastionHostIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if bhicpf.Subnet != nil { + objectMap["subnet"] = bhicpf.Subnet + } + if bhicpf.PublicIPAddress != nil { + objectMap["publicIPAddress"] = bhicpf.PublicIPAddress + } + if bhicpf.PrivateIPAllocationMethod != "" { + objectMap["privateIPAllocationMethod"] = bhicpf.PrivateIPAllocationMethod + } + return json.Marshal(objectMap) +} + +// BastionHostListResult response for ListBastionHosts API service call. +type BastionHostListResult struct { + autorest.Response `json:"-"` + // Value - List of Bastion Hosts in a resource group. + Value *[]BastionHost `json:"value,omitempty"` + // NextLink - URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// BastionHostListResultIterator provides access to a complete listing of BastionHost values. +type BastionHostListResultIterator struct { + i int + page BastionHostListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *BastionHostListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BastionHostListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *BastionHostListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter BastionHostListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter BastionHostListResultIterator) Response() BastionHostListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter BastionHostListResultIterator) Value() BastionHost { + if !iter.page.NotDone() { + return BastionHost{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the BastionHostListResultIterator type. +func NewBastionHostListResultIterator(page BastionHostListResultPage) BastionHostListResultIterator { + return BastionHostListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (bhlr BastionHostListResult) IsEmpty() bool { + return bhlr.Value == nil || len(*bhlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (bhlr BastionHostListResult) hasNextLink() bool { + return bhlr.NextLink != nil && len(*bhlr.NextLink) != 0 +} + +// bastionHostListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (bhlr BastionHostListResult) bastionHostListResultPreparer(ctx context.Context) (*http.Request, error) { + if !bhlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(bhlr.NextLink))) +} + +// BastionHostListResultPage contains a page of BastionHost values. +type BastionHostListResultPage struct { + fn func(context.Context, BastionHostListResult) (BastionHostListResult, error) + bhlr BastionHostListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *BastionHostListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BastionHostListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.bhlr) + if err != nil { + return err + } + page.bhlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *BastionHostListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page BastionHostListResultPage) NotDone() bool { + return !page.bhlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page BastionHostListResultPage) Response() BastionHostListResult { + return page.bhlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page BastionHostListResultPage) Values() []BastionHost { + if page.bhlr.IsEmpty() { + return nil + } + return *page.bhlr.Value +} + +// Creates a new instance of the BastionHostListResultPage type. +func NewBastionHostListResultPage(cur BastionHostListResult, getNextPage func(context.Context, BastionHostListResult) (BastionHostListResult, error)) BastionHostListResultPage { + return BastionHostListResultPage{ + fn: getNextPage, + bhlr: cur, + } +} + +// BastionHostPropertiesFormat properties of the Bastion Host. +type BastionHostPropertiesFormat struct { + // IPConfigurations - IP configuration of the Bastion Host resource. + IPConfigurations *[]BastionHostIPConfiguration `json:"ipConfigurations,omitempty"` + // DNSName - FQDN for the endpoint on which bastion host is accessible. + DNSName *string `json:"dnsName,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the bastion host resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for BastionHostPropertiesFormat. +func (bhpf BastionHostPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if bhpf.IPConfigurations != nil { + objectMap["ipConfigurations"] = bhpf.IPConfigurations + } + if bhpf.DNSName != nil { + objectMap["dnsName"] = bhpf.DNSName + } + return json.Marshal(objectMap) +} + +// BastionHostsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type BastionHostsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *BastionHostsCreateOrUpdateFuture) Result(client BastionHostsClient) (bh BastionHost, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BastionHostsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.BastionHostsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if bh.Response.Response, err = future.GetResult(sender); err == nil && bh.Response.Response.StatusCode != http.StatusNoContent { + bh, err = client.CreateOrUpdateResponder(bh.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BastionHostsCreateOrUpdateFuture", "Result", bh.Response.Response, "Failure responding to request") + } + } + return +} + +// BastionHostsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type BastionHostsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *BastionHostsDeleteFuture) Result(client BastionHostsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.BastionHostsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.BastionHostsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// BastionSessionDeleteResult response for DisconnectActiveSessions. +type BastionSessionDeleteResult struct { + autorest.Response `json:"-"` + // Value - List of sessions with their corresponding state. + Value *[]BastionSessionState `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// BastionSessionDeleteResultIterator provides access to a complete listing of BastionSessionState values. +type BastionSessionDeleteResultIterator struct { + i int + page BastionSessionDeleteResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *BastionSessionDeleteResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BastionSessionDeleteResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *BastionSessionDeleteResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter BastionSessionDeleteResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter BastionSessionDeleteResultIterator) Response() BastionSessionDeleteResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter BastionSessionDeleteResultIterator) Value() BastionSessionState { + if !iter.page.NotDone() { + return BastionSessionState{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the BastionSessionDeleteResultIterator type. +func NewBastionSessionDeleteResultIterator(page BastionSessionDeleteResultPage) BastionSessionDeleteResultIterator { + return BastionSessionDeleteResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (bsdr BastionSessionDeleteResult) IsEmpty() bool { + return bsdr.Value == nil || len(*bsdr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (bsdr BastionSessionDeleteResult) hasNextLink() bool { + return bsdr.NextLink != nil && len(*bsdr.NextLink) != 0 +} + +// bastionSessionDeleteResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (bsdr BastionSessionDeleteResult) bastionSessionDeleteResultPreparer(ctx context.Context) (*http.Request, error) { + if !bsdr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(bsdr.NextLink))) +} + +// BastionSessionDeleteResultPage contains a page of BastionSessionState values. +type BastionSessionDeleteResultPage struct { + fn func(context.Context, BastionSessionDeleteResult) (BastionSessionDeleteResult, error) + bsdr BastionSessionDeleteResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *BastionSessionDeleteResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BastionSessionDeleteResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.bsdr) + if err != nil { + return err + } + page.bsdr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *BastionSessionDeleteResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page BastionSessionDeleteResultPage) NotDone() bool { + return !page.bsdr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page BastionSessionDeleteResultPage) Response() BastionSessionDeleteResult { + return page.bsdr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page BastionSessionDeleteResultPage) Values() []BastionSessionState { + if page.bsdr.IsEmpty() { + return nil + } + return *page.bsdr.Value +} + +// Creates a new instance of the BastionSessionDeleteResultPage type. +func NewBastionSessionDeleteResultPage(cur BastionSessionDeleteResult, getNextPage func(context.Context, BastionSessionDeleteResult) (BastionSessionDeleteResult, error)) BastionSessionDeleteResultPage { + return BastionSessionDeleteResultPage{ + fn: getNextPage, + bsdr: cur, + } +} + +// BastionSessionState the session state detail for a target. +type BastionSessionState struct { + // SessionID - READ-ONLY; A unique id for the session. + SessionID *string `json:"sessionId,omitempty"` + // Message - READ-ONLY; Used for extra information. + Message *string `json:"message,omitempty"` + // State - READ-ONLY; The state of the session. Disconnected/Failed/NotFound. + State *string `json:"state,omitempty"` +} + +// BastionShareableLink bastion Shareable Link. +type BastionShareableLink struct { + // VM - Reference of the virtual machine resource. + VM *VM `json:"vm,omitempty"` + // Bsl - READ-ONLY; The unique Bastion Shareable Link to the virtual machine. + Bsl *string `json:"bsl,omitempty"` + // CreatedAt - READ-ONLY; The time when the link was created. + CreatedAt *string `json:"createdAt,omitempty"` + // Message - READ-ONLY; Optional field indicating the warning or error message related to the vm in case of partial failure. + Message *string `json:"message,omitempty"` +} + +// MarshalJSON is the custom marshaler for BastionShareableLink. +func (bsl BastionShareableLink) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if bsl.VM != nil { + objectMap["vm"] = bsl.VM + } + return json.Marshal(objectMap) +} + +// BastionShareableLinkListRequest post request for all the Bastion Shareable Link endpoints. +type BastionShareableLinkListRequest struct { + // Vms - List of VM references. + Vms *[]BastionShareableLink `json:"vms,omitempty"` +} + +// BastionShareableLinkListResult response for all the Bastion Shareable Link endpoints. +type BastionShareableLinkListResult struct { + autorest.Response `json:"-"` + // Value - List of Bastion Shareable Links for the request. + Value *[]BastionShareableLink `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// BastionShareableLinkListResultIterator provides access to a complete listing of BastionShareableLink +// values. +type BastionShareableLinkListResultIterator struct { + i int + page BastionShareableLinkListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *BastionShareableLinkListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BastionShareableLinkListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *BastionShareableLinkListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter BastionShareableLinkListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter BastionShareableLinkListResultIterator) Response() BastionShareableLinkListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter BastionShareableLinkListResultIterator) Value() BastionShareableLink { + if !iter.page.NotDone() { + return BastionShareableLink{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the BastionShareableLinkListResultIterator type. +func NewBastionShareableLinkListResultIterator(page BastionShareableLinkListResultPage) BastionShareableLinkListResultIterator { + return BastionShareableLinkListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (bsllr BastionShareableLinkListResult) IsEmpty() bool { + return bsllr.Value == nil || len(*bsllr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (bsllr BastionShareableLinkListResult) hasNextLink() bool { + return bsllr.NextLink != nil && len(*bsllr.NextLink) != 0 +} + +// bastionShareableLinkListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (bsllr BastionShareableLinkListResult) bastionShareableLinkListResultPreparer(ctx context.Context) (*http.Request, error) { + if !bsllr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(bsllr.NextLink))) +} + +// BastionShareableLinkListResultPage contains a page of BastionShareableLink values. +type BastionShareableLinkListResultPage struct { + fn func(context.Context, BastionShareableLinkListResult) (BastionShareableLinkListResult, error) + bsllr BastionShareableLinkListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *BastionShareableLinkListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BastionShareableLinkListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.bsllr) + if err != nil { + return err + } + page.bsllr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *BastionShareableLinkListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page BastionShareableLinkListResultPage) NotDone() bool { + return !page.bsllr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page BastionShareableLinkListResultPage) Response() BastionShareableLinkListResult { + return page.bsllr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page BastionShareableLinkListResultPage) Values() []BastionShareableLink { + if page.bsllr.IsEmpty() { + return nil + } + return *page.bsllr.Value +} + +// Creates a new instance of the BastionShareableLinkListResultPage type. +func NewBastionShareableLinkListResultPage(cur BastionShareableLinkListResult, getNextPage func(context.Context, BastionShareableLinkListResult) (BastionShareableLinkListResult, error)) BastionShareableLinkListResultPage { + return BastionShareableLinkListResultPage{ + fn: getNextPage, + bsllr: cur, + } +} + +// BGPCommunity contains bgp community information offered in Service Community resources. +type BGPCommunity struct { + // ServiceSupportedRegion - The region which the service support. e.g. For O365, region is Global. + ServiceSupportedRegion *string `json:"serviceSupportedRegion,omitempty"` + // CommunityName - The name of the bgp community. e.g. Skype. + CommunityName *string `json:"communityName,omitempty"` + // CommunityValue - The value of the bgp community. For more information: https://docs.microsoft.com/en-us/azure/expressroute/expressroute-routing. + CommunityValue *string `json:"communityValue,omitempty"` + // CommunityPrefixes - The prefixes that the bgp community contains. + CommunityPrefixes *[]string `json:"communityPrefixes,omitempty"` + // IsAuthorizedToUse - Customer is authorized to use bgp community or not. + IsAuthorizedToUse *bool `json:"isAuthorizedToUse,omitempty"` + // ServiceGroup - The service group of the bgp community contains. + ServiceGroup *string `json:"serviceGroup,omitempty"` +} + +// BgpConnection virtual Appliance Site resource. +type BgpConnection struct { + autorest.Response `json:"-"` + // BgpConnectionProperties - The properties of the Bgp connections. + *BgpConnectionProperties `json:"properties,omitempty"` + // Name - Name of the connection. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Connection type. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for BgpConnection. +func (bc BgpConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if bc.BgpConnectionProperties != nil { + objectMap["properties"] = bc.BgpConnectionProperties + } + if bc.Name != nil { + objectMap["name"] = bc.Name + } + if bc.ID != nil { + objectMap["id"] = bc.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for BgpConnection struct. +func (bc *BgpConnection) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var bgpConnectionProperties BgpConnectionProperties + err = json.Unmarshal(*v, &bgpConnectionProperties) + if err != nil { + return err + } + bc.BgpConnectionProperties = &bgpConnectionProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + bc.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + bc.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + bc.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + bc.ID = &ID + } + } + } + + return nil +} + +// BgpConnectionProperties properties of the bgp connection. +type BgpConnectionProperties struct { + // PeerAsn - Peer ASN. + PeerAsn *int64 `json:"peerAsn,omitempty"` + // PeerIP - Peer IP. + PeerIP *string `json:"peerIp,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // ConnectionState - READ-ONLY; The current state of the VirtualHub to Peer. Possible values include: 'HubBgpConnectionStatusUnknown', 'HubBgpConnectionStatusConnecting', 'HubBgpConnectionStatusConnected', 'HubBgpConnectionStatusNotConnected' + ConnectionState HubBgpConnectionStatus `json:"connectionState,omitempty"` +} + +// MarshalJSON is the custom marshaler for BgpConnectionProperties. +func (bcp BgpConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if bcp.PeerAsn != nil { + objectMap["peerAsn"] = bcp.PeerAsn + } + if bcp.PeerIP != nil { + objectMap["peerIp"] = bcp.PeerIP + } + return json.Marshal(objectMap) +} + +// BgpPeerStatus BGP peer status details. +type BgpPeerStatus struct { + // LocalAddress - READ-ONLY; The virtual network gateway's local address. + LocalAddress *string `json:"localAddress,omitempty"` + // Neighbor - READ-ONLY; The remote BGP peer. + Neighbor *string `json:"neighbor,omitempty"` + // Asn - READ-ONLY; The autonomous system number of the remote BGP peer. + Asn *int64 `json:"asn,omitempty"` + // State - READ-ONLY; The BGP peer state. Possible values include: 'BgpPeerStateUnknown', 'BgpPeerStateStopped', 'BgpPeerStateIdle', 'BgpPeerStateConnecting', 'BgpPeerStateConnected' + State BgpPeerState `json:"state,omitempty"` + // ConnectedDuration - READ-ONLY; For how long the peering has been up. + ConnectedDuration *string `json:"connectedDuration,omitempty"` + // RoutesReceived - READ-ONLY; The number of routes learned from this peer. + RoutesReceived *int64 `json:"routesReceived,omitempty"` + // MessagesSent - READ-ONLY; The number of BGP messages sent. + MessagesSent *int64 `json:"messagesSent,omitempty"` + // MessagesReceived - READ-ONLY; The number of BGP messages received. + MessagesReceived *int64 `json:"messagesReceived,omitempty"` +} + +// BgpPeerStatusListResult response for list BGP peer status API service call. +type BgpPeerStatusListResult struct { + autorest.Response `json:"-"` + // Value - List of BGP peers. + Value *[]BgpPeerStatus `json:"value,omitempty"` +} + +// BgpServiceCommunity service Community Properties. +type BgpServiceCommunity struct { + // BgpServiceCommunityPropertiesFormat - Properties of the BGP service community. + *BgpServiceCommunityPropertiesFormat `json:"properties,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for BgpServiceCommunity. +func (bsc BgpServiceCommunity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if bsc.BgpServiceCommunityPropertiesFormat != nil { + objectMap["properties"] = bsc.BgpServiceCommunityPropertiesFormat + } + if bsc.ID != nil { + objectMap["id"] = bsc.ID + } + if bsc.Location != nil { + objectMap["location"] = bsc.Location + } + if bsc.Tags != nil { + objectMap["tags"] = bsc.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for BgpServiceCommunity struct. +func (bsc *BgpServiceCommunity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var bgpServiceCommunityPropertiesFormat BgpServiceCommunityPropertiesFormat + err = json.Unmarshal(*v, &bgpServiceCommunityPropertiesFormat) + if err != nil { + return err + } + bsc.BgpServiceCommunityPropertiesFormat = &bgpServiceCommunityPropertiesFormat + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + bsc.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + bsc.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + bsc.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + bsc.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + bsc.Tags = tags + } + } + } + + return nil +} + +// BgpServiceCommunityListResult response for the ListServiceCommunity API service call. +type BgpServiceCommunityListResult struct { + autorest.Response `json:"-"` + // Value - A list of service community resources. + Value *[]BgpServiceCommunity `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// BgpServiceCommunityListResultIterator provides access to a complete listing of BgpServiceCommunity +// values. +type BgpServiceCommunityListResultIterator struct { + i int + page BgpServiceCommunityListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *BgpServiceCommunityListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BgpServiceCommunityListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *BgpServiceCommunityListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter BgpServiceCommunityListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter BgpServiceCommunityListResultIterator) Response() BgpServiceCommunityListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter BgpServiceCommunityListResultIterator) Value() BgpServiceCommunity { + if !iter.page.NotDone() { + return BgpServiceCommunity{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the BgpServiceCommunityListResultIterator type. +func NewBgpServiceCommunityListResultIterator(page BgpServiceCommunityListResultPage) BgpServiceCommunityListResultIterator { + return BgpServiceCommunityListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (bsclr BgpServiceCommunityListResult) IsEmpty() bool { + return bsclr.Value == nil || len(*bsclr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (bsclr BgpServiceCommunityListResult) hasNextLink() bool { + return bsclr.NextLink != nil && len(*bsclr.NextLink) != 0 +} + +// bgpServiceCommunityListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (bsclr BgpServiceCommunityListResult) bgpServiceCommunityListResultPreparer(ctx context.Context) (*http.Request, error) { + if !bsclr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(bsclr.NextLink))) +} + +// BgpServiceCommunityListResultPage contains a page of BgpServiceCommunity values. +type BgpServiceCommunityListResultPage struct { + fn func(context.Context, BgpServiceCommunityListResult) (BgpServiceCommunityListResult, error) + bsclr BgpServiceCommunityListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *BgpServiceCommunityListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BgpServiceCommunityListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.bsclr) + if err != nil { + return err + } + page.bsclr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *BgpServiceCommunityListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page BgpServiceCommunityListResultPage) NotDone() bool { + return !page.bsclr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page BgpServiceCommunityListResultPage) Response() BgpServiceCommunityListResult { + return page.bsclr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page BgpServiceCommunityListResultPage) Values() []BgpServiceCommunity { + if page.bsclr.IsEmpty() { + return nil + } + return *page.bsclr.Value +} + +// Creates a new instance of the BgpServiceCommunityListResultPage type. +func NewBgpServiceCommunityListResultPage(cur BgpServiceCommunityListResult, getNextPage func(context.Context, BgpServiceCommunityListResult) (BgpServiceCommunityListResult, error)) BgpServiceCommunityListResultPage { + return BgpServiceCommunityListResultPage{ + fn: getNextPage, + bsclr: cur, + } +} + +// BgpServiceCommunityPropertiesFormat properties of Service Community. +type BgpServiceCommunityPropertiesFormat struct { + // ServiceName - The name of the bgp community. e.g. Skype. + ServiceName *string `json:"serviceName,omitempty"` + // BgpCommunities - A list of bgp communities. + BgpCommunities *[]BGPCommunity `json:"bgpCommunities,omitempty"` +} + +// BgpSettings BGP settings details. +type BgpSettings struct { + // Asn - The BGP speaker's ASN. + Asn *int64 `json:"asn,omitempty"` + // BgpPeeringAddress - The BGP peering address and BGP identifier of this BGP speaker. + BgpPeeringAddress *string `json:"bgpPeeringAddress,omitempty"` + // PeerWeight - The weight added to routes learned from this BGP speaker. + PeerWeight *int32 `json:"peerWeight,omitempty"` + // BgpPeeringAddresses - BGP peering address with IP configuration ID for virtual network gateway. + BgpPeeringAddresses *[]IPConfigurationBgpPeeringAddress `json:"bgpPeeringAddresses,omitempty"` +} + +// BreakOutCategoryPolicies network Virtual Appliance Sku Properties. +type BreakOutCategoryPolicies struct { + // Allow - Flag to control breakout of o365 allow category. + Allow *bool `json:"allow,omitempty"` + // Optimize - Flag to control breakout of o365 optimize category. + Optimize *bool `json:"optimize,omitempty"` + // Default - Flag to control breakout of o365 default category. + Default *bool `json:"default,omitempty"` +} + +// CheckPrivateLinkServiceVisibilityRequest request body of the CheckPrivateLinkServiceVisibility API +// service call. +type CheckPrivateLinkServiceVisibilityRequest struct { + // PrivateLinkServiceAlias - The alias of the private link service. + PrivateLinkServiceAlias *string `json:"privateLinkServiceAlias,omitempty"` +} + +// CloudError an error response from the service. +type CloudError struct { + // Error - Cloud error body. + Error *CloudErrorBody `json:"error,omitempty"` +} + +// CloudErrorBody an error response from the service. +type CloudErrorBody struct { + // Code - An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + Code *string `json:"code,omitempty"` + // Message - A message describing the error, intended to be suitable for display in a user interface. + Message *string `json:"message,omitempty"` + // Target - The target of the particular error. For example, the name of the property in error. + Target *string `json:"target,omitempty"` + // Details - A list of additional details about the error. + Details *[]CloudErrorBody `json:"details,omitempty"` +} + +// ConfigurationDiagnosticParameters parameters to get network configuration diagnostic. +type ConfigurationDiagnosticParameters struct { + // TargetResourceID - The ID of the target resource to perform network configuration diagnostic. Valid options are VM, NetworkInterface, VMSS/NetworkInterface and Application Gateway. + TargetResourceID *string `json:"targetResourceId,omitempty"` + // VerbosityLevel - Verbosity level. Possible values include: 'VerbosityLevelNormal', 'VerbosityLevelMinimum', 'VerbosityLevelFull' + VerbosityLevel VerbosityLevel `json:"verbosityLevel,omitempty"` + // Profiles - List of network configuration diagnostic profiles. + Profiles *[]ConfigurationDiagnosticProfile `json:"profiles,omitempty"` +} + +// ConfigurationDiagnosticProfile parameters to compare with network configuration. +type ConfigurationDiagnosticProfile struct { + // Direction - The direction of the traffic. Possible values include: 'Inbound', 'Outbound' + Direction Direction `json:"direction,omitempty"` + // Protocol - Protocol to be verified on. Accepted values are '*', TCP, UDP. + Protocol *string `json:"protocol,omitempty"` + // Source - Traffic source. Accepted values are '*', IP Address/CIDR, Service Tag. + Source *string `json:"source,omitempty"` + // Destination - Traffic destination. Accepted values are: '*', IP Address/CIDR, Service Tag. + Destination *string `json:"destination,omitempty"` + // DestinationPort - Traffic destination port. Accepted values are '*' and a single port in the range (0 - 65535). + DestinationPort *string `json:"destinationPort,omitempty"` +} + +// ConfigurationDiagnosticResponse results of network configuration diagnostic on the target resource. +type ConfigurationDiagnosticResponse struct { + autorest.Response `json:"-"` + // Results - READ-ONLY; List of network configuration diagnostic results. + Results *[]ConfigurationDiagnosticResult `json:"results,omitempty"` +} + +// ConfigurationDiagnosticResult network configuration diagnostic result corresponded to provided traffic +// query. +type ConfigurationDiagnosticResult struct { + // Profile - Network configuration diagnostic profile. + Profile *ConfigurationDiagnosticProfile `json:"profile,omitempty"` + // NetworkSecurityGroupResult - Network security group result. + NetworkSecurityGroupResult *SecurityGroupResult `json:"networkSecurityGroupResult,omitempty"` +} + +// ConnectionMonitor parameters that define the operation to create a connection monitor. +type ConnectionMonitor struct { + // Location - Connection monitor location. + Location *string `json:"location,omitempty"` + // Tags - Connection monitor tags. + Tags map[string]*string `json:"tags"` + // ConnectionMonitorParameters - Properties of the connection monitor. + *ConnectionMonitorParameters `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for ConnectionMonitor. +func (cm ConnectionMonitor) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if cm.Location != nil { + objectMap["location"] = cm.Location + } + if cm.Tags != nil { + objectMap["tags"] = cm.Tags + } + if cm.ConnectionMonitorParameters != nil { + objectMap["properties"] = cm.ConnectionMonitorParameters + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ConnectionMonitor struct. +func (cm *ConnectionMonitor) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + cm.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + cm.Tags = tags + } + case "properties": + if v != nil { + var connectionMonitorParameters ConnectionMonitorParameters + err = json.Unmarshal(*v, &connectionMonitorParameters) + if err != nil { + return err + } + cm.ConnectionMonitorParameters = &connectionMonitorParameters + } + } + } + + return nil +} + +// ConnectionMonitorDestination describes the destination of connection monitor. +type ConnectionMonitorDestination struct { + // ResourceID - The ID of the resource used as the destination by connection monitor. + ResourceID *string `json:"resourceId,omitempty"` + // Address - Address of the connection monitor destination (IP or domain name). + Address *string `json:"address,omitempty"` + // Port - The destination port used by connection monitor. + Port *int32 `json:"port,omitempty"` +} + +// ConnectionMonitorEndpoint describes the connection monitor endpoint. +type ConnectionMonitorEndpoint struct { + // Name - The name of the connection monitor endpoint. + Name *string `json:"name,omitempty"` + // Type - The endpoint type. Possible values include: 'AzureVM', 'AzureVNet', 'AzureSubnet', 'ExternalAddress', 'MMAWorkspaceMachine', 'MMAWorkspaceNetwork' + Type EndpointType `json:"type,omitempty"` + // ResourceID - Resource ID of the connection monitor endpoint. + ResourceID *string `json:"resourceId,omitempty"` + // Address - Address of the connection monitor endpoint (IP or domain name). + Address *string `json:"address,omitempty"` + // Filter - Filter for sub-items within the endpoint. + Filter *ConnectionMonitorEndpointFilter `json:"filter,omitempty"` + // Scope - Endpoint scope. + Scope *ConnectionMonitorEndpointScope `json:"scope,omitempty"` + // CoverageLevel - Test coverage for the endpoint. Possible values include: 'Default', 'Low', 'BelowAverage', 'Average', 'AboveAverage', 'Full' + CoverageLevel CoverageLevel `json:"coverageLevel,omitempty"` +} + +// ConnectionMonitorEndpointFilter describes the connection monitor endpoint filter. +type ConnectionMonitorEndpointFilter struct { + // Type - The behavior of the endpoint filter. Currently only 'Include' is supported. Possible values include: 'Include' + Type ConnectionMonitorEndpointFilterType `json:"type,omitempty"` + // Items - List of items in the filter. + Items *[]ConnectionMonitorEndpointFilterItem `json:"items,omitempty"` +} + +// ConnectionMonitorEndpointFilterItem describes the connection monitor endpoint filter item. +type ConnectionMonitorEndpointFilterItem struct { + // Type - The type of item included in the filter. Currently only 'AgentAddress' is supported. Possible values include: 'AgentAddress' + Type ConnectionMonitorEndpointFilterItemType `json:"type,omitempty"` + // Address - The address of the filter item. + Address *string `json:"address,omitempty"` +} + +// ConnectionMonitorEndpointScope describes the connection monitor endpoint scope. +type ConnectionMonitorEndpointScope struct { + // Include - List of items which needs to be included to the endpoint scope. + Include *[]ConnectionMonitorEndpointScopeItem `json:"include,omitempty"` + // Exclude - List of items which needs to be excluded from the endpoint scope. + Exclude *[]ConnectionMonitorEndpointScopeItem `json:"exclude,omitempty"` +} + +// ConnectionMonitorEndpointScopeItem describes the connection monitor endpoint scope item. +type ConnectionMonitorEndpointScopeItem struct { + // Address - The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address. + Address *string `json:"address,omitempty"` +} + +// ConnectionMonitorHTTPConfiguration describes the HTTP configuration. +type ConnectionMonitorHTTPConfiguration struct { + // Port - The port to connect to. + Port *int32 `json:"port,omitempty"` + // Method - The HTTP method to use. Possible values include: 'Get', 'Post' + Method HTTPConfigurationMethod `json:"method,omitempty"` + // Path - The path component of the URI. For instance, "/dir1/dir2". + Path *string `json:"path,omitempty"` + // RequestHeaders - The HTTP headers to transmit with the request. + RequestHeaders *[]HTTPHeader `json:"requestHeaders,omitempty"` + // ValidStatusCodeRanges - HTTP status codes to consider successful. For instance, "2xx,301-304,418". + ValidStatusCodeRanges *[]string `json:"validStatusCodeRanges,omitempty"` + // PreferHTTPS - Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit. + PreferHTTPS *bool `json:"preferHTTPS,omitempty"` +} + +// ConnectionMonitorIcmpConfiguration describes the ICMP configuration. +type ConnectionMonitorIcmpConfiguration struct { + // DisableTraceRoute - Value indicating whether path evaluation with trace route should be disabled. + DisableTraceRoute *bool `json:"disableTraceRoute,omitempty"` +} + +// ConnectionMonitorListResult list of connection monitors. +type ConnectionMonitorListResult struct { + autorest.Response `json:"-"` + // Value - Information about connection monitors. + Value *[]ConnectionMonitorResult `json:"value,omitempty"` +} + +// ConnectionMonitorOutput describes a connection monitor output destination. +type ConnectionMonitorOutput struct { + // Type - Connection monitor output destination type. Currently, only "Workspace" is supported. Possible values include: 'Workspace' + Type OutputType `json:"type,omitempty"` + // WorkspaceSettings - Describes the settings for producing output into a log analytics workspace. + WorkspaceSettings *ConnectionMonitorWorkspaceSettings `json:"workspaceSettings,omitempty"` +} + +// ConnectionMonitorParameters parameters that define the operation to create a connection monitor. +type ConnectionMonitorParameters struct { + // Source - Describes the source of connection monitor. + Source *ConnectionMonitorSource `json:"source,omitempty"` + // Destination - Describes the destination of connection monitor. + Destination *ConnectionMonitorDestination `json:"destination,omitempty"` + // AutoStart - Determines if the connection monitor will start automatically once created. + AutoStart *bool `json:"autoStart,omitempty"` + // MonitoringIntervalInSeconds - Monitoring interval in seconds. + MonitoringIntervalInSeconds *int32 `json:"monitoringIntervalInSeconds,omitempty"` + // Endpoints - List of connection monitor endpoints. + Endpoints *[]ConnectionMonitorEndpoint `json:"endpoints,omitempty"` + // TestConfigurations - List of connection monitor test configurations. + TestConfigurations *[]ConnectionMonitorTestConfiguration `json:"testConfigurations,omitempty"` + // TestGroups - List of connection monitor test groups. + TestGroups *[]ConnectionMonitorTestGroup `json:"testGroups,omitempty"` + // Outputs - List of connection monitor outputs. + Outputs *[]ConnectionMonitorOutput `json:"outputs,omitempty"` + // Notes - Optional notes to be associated with the connection monitor. + Notes *string `json:"notes,omitempty"` +} + +// ConnectionMonitorQueryResult list of connection states snapshots. +type ConnectionMonitorQueryResult struct { + autorest.Response `json:"-"` + // SourceStatus - Status of connection monitor source. Possible values include: 'ConnectionMonitorSourceStatusUnknown', 'ConnectionMonitorSourceStatusActive', 'ConnectionMonitorSourceStatusInactive' + SourceStatus ConnectionMonitorSourceStatus `json:"sourceStatus,omitempty"` + // States - Information about connection states. + States *[]ConnectionStateSnapshot `json:"states,omitempty"` +} + +// ConnectionMonitorResult information about the connection monitor. +type ConnectionMonitorResult struct { + autorest.Response `json:"-"` + // Name - READ-ONLY; Name of the connection monitor. + Name *string `json:"name,omitempty"` + // ID - READ-ONLY; ID of the connection monitor. + ID *string `json:"id,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Connection monitor type. + Type *string `json:"type,omitempty"` + // Location - Connection monitor location. + Location *string `json:"location,omitempty"` + // Tags - Connection monitor tags. + Tags map[string]*string `json:"tags"` + // ConnectionMonitorResultProperties - Properties of the connection monitor result. + *ConnectionMonitorResultProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for ConnectionMonitorResult. +func (cmr ConnectionMonitorResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if cmr.Location != nil { + objectMap["location"] = cmr.Location + } + if cmr.Tags != nil { + objectMap["tags"] = cmr.Tags + } + if cmr.ConnectionMonitorResultProperties != nil { + objectMap["properties"] = cmr.ConnectionMonitorResultProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ConnectionMonitorResult struct. +func (cmr *ConnectionMonitorResult) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + cmr.Name = &name + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + cmr.ID = &ID + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + cmr.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cmr.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + cmr.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + cmr.Tags = tags + } + case "properties": + if v != nil { + var connectionMonitorResultProperties ConnectionMonitorResultProperties + err = json.Unmarshal(*v, &connectionMonitorResultProperties) + if err != nil { + return err + } + cmr.ConnectionMonitorResultProperties = &connectionMonitorResultProperties + } + } + } + + return nil +} + +// ConnectionMonitorResultProperties describes the properties of a connection monitor. +type ConnectionMonitorResultProperties struct { + // ProvisioningState - READ-ONLY; The provisioning state of the connection monitor. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // StartTime - READ-ONLY; The date and time when the connection monitor was started. + StartTime *date.Time `json:"startTime,omitempty"` + // MonitoringStatus - READ-ONLY; The monitoring status of the connection monitor. + MonitoringStatus *string `json:"monitoringStatus,omitempty"` + // ConnectionMonitorType - READ-ONLY; Type of connection monitor. Possible values include: 'MultiEndpoint', 'SingleSourceDestination' + ConnectionMonitorType ConnectionMonitorType `json:"connectionMonitorType,omitempty"` + // Source - Describes the source of connection monitor. + Source *ConnectionMonitorSource `json:"source,omitempty"` + // Destination - Describes the destination of connection monitor. + Destination *ConnectionMonitorDestination `json:"destination,omitempty"` + // AutoStart - Determines if the connection monitor will start automatically once created. + AutoStart *bool `json:"autoStart,omitempty"` + // MonitoringIntervalInSeconds - Monitoring interval in seconds. + MonitoringIntervalInSeconds *int32 `json:"monitoringIntervalInSeconds,omitempty"` + // Endpoints - List of connection monitor endpoints. + Endpoints *[]ConnectionMonitorEndpoint `json:"endpoints,omitempty"` + // TestConfigurations - List of connection monitor test configurations. + TestConfigurations *[]ConnectionMonitorTestConfiguration `json:"testConfigurations,omitempty"` + // TestGroups - List of connection monitor test groups. + TestGroups *[]ConnectionMonitorTestGroup `json:"testGroups,omitempty"` + // Outputs - List of connection monitor outputs. + Outputs *[]ConnectionMonitorOutput `json:"outputs,omitempty"` + // Notes - Optional notes to be associated with the connection monitor. + Notes *string `json:"notes,omitempty"` +} + +// MarshalJSON is the custom marshaler for ConnectionMonitorResultProperties. +func (cmrp ConnectionMonitorResultProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if cmrp.Source != nil { + objectMap["source"] = cmrp.Source + } + if cmrp.Destination != nil { + objectMap["destination"] = cmrp.Destination + } + if cmrp.AutoStart != nil { + objectMap["autoStart"] = cmrp.AutoStart + } + if cmrp.MonitoringIntervalInSeconds != nil { + objectMap["monitoringIntervalInSeconds"] = cmrp.MonitoringIntervalInSeconds + } + if cmrp.Endpoints != nil { + objectMap["endpoints"] = cmrp.Endpoints + } + if cmrp.TestConfigurations != nil { + objectMap["testConfigurations"] = cmrp.TestConfigurations + } + if cmrp.TestGroups != nil { + objectMap["testGroups"] = cmrp.TestGroups + } + if cmrp.Outputs != nil { + objectMap["outputs"] = cmrp.Outputs + } + if cmrp.Notes != nil { + objectMap["notes"] = cmrp.Notes + } + return json.Marshal(objectMap) +} + +// ConnectionMonitorsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type ConnectionMonitorsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ConnectionMonitorsCreateOrUpdateFuture) Result(client ConnectionMonitorsClient) (cmr ConnectionMonitorResult, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ConnectionMonitorsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if cmr.Response.Response, err = future.GetResult(sender); err == nil && cmr.Response.Response.StatusCode != http.StatusNoContent { + cmr, err = client.CreateOrUpdateResponder(cmr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsCreateOrUpdateFuture", "Result", cmr.Response.Response, "Failure responding to request") + } + } + return +} + +// ConnectionMonitorsDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type ConnectionMonitorsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ConnectionMonitorsDeleteFuture) Result(client ConnectionMonitorsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ConnectionMonitorsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// ConnectionMonitorSource describes the source of connection monitor. +type ConnectionMonitorSource struct { + // ResourceID - The ID of the resource used as the source by connection monitor. + ResourceID *string `json:"resourceId,omitempty"` + // Port - The source port used by connection monitor. + Port *int32 `json:"port,omitempty"` +} + +// ConnectionMonitorsQueryFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type ConnectionMonitorsQueryFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ConnectionMonitorsQueryFuture) Result(client ConnectionMonitorsClient) (cmqr ConnectionMonitorQueryResult, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsQueryFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ConnectionMonitorsQueryFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if cmqr.Response.Response, err = future.GetResult(sender); err == nil && cmqr.Response.Response.StatusCode != http.StatusNoContent { + cmqr, err = client.QueryResponder(cmqr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsQueryFuture", "Result", cmqr.Response.Response, "Failure responding to request") + } + } + return +} + +// ConnectionMonitorsStartFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type ConnectionMonitorsStartFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ConnectionMonitorsStartFuture) Result(client ConnectionMonitorsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsStartFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ConnectionMonitorsStartFuture") + return + } + ar.Response = future.Response() + return +} + +// ConnectionMonitorsStopFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type ConnectionMonitorsStopFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ConnectionMonitorsStopFuture) Result(client ConnectionMonitorsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsStopFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ConnectionMonitorsStopFuture") + return + } + ar.Response = future.Response() + return +} + +// ConnectionMonitorSuccessThreshold describes the threshold for declaring a test successful. +type ConnectionMonitorSuccessThreshold struct { + // ChecksFailedPercent - The maximum percentage of failed checks permitted for a test to evaluate as successful. + ChecksFailedPercent *int32 `json:"checksFailedPercent,omitempty"` + // RoundTripTimeMs - The maximum round-trip time in milliseconds permitted for a test to evaluate as successful. + RoundTripTimeMs *float64 `json:"roundTripTimeMs,omitempty"` +} + +// ConnectionMonitorTCPConfiguration describes the TCP configuration. +type ConnectionMonitorTCPConfiguration struct { + // Port - The port to connect to. + Port *int32 `json:"port,omitempty"` + // DisableTraceRoute - Value indicating whether path evaluation with trace route should be disabled. + DisableTraceRoute *bool `json:"disableTraceRoute,omitempty"` + // DestinationPortBehavior - Destination port behavior. Possible values include: 'None', 'ListenIfAvailable' + DestinationPortBehavior DestinationPortBehavior `json:"destinationPortBehavior,omitempty"` +} + +// ConnectionMonitorTestConfiguration describes a connection monitor test configuration. +type ConnectionMonitorTestConfiguration struct { + // Name - The name of the connection monitor test configuration. + Name *string `json:"name,omitempty"` + // TestFrequencySec - The frequency of test evaluation, in seconds. + TestFrequencySec *int32 `json:"testFrequencySec,omitempty"` + // Protocol - The protocol to use in test evaluation. Possible values include: 'ConnectionMonitorTestConfigurationProtocolTCP', 'ConnectionMonitorTestConfigurationProtocolHTTP', 'ConnectionMonitorTestConfigurationProtocolIcmp' + Protocol ConnectionMonitorTestConfigurationProtocol `json:"protocol,omitempty"` + // PreferredIPVersion - The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters. Possible values include: 'PreferredIPVersionIPv4', 'PreferredIPVersionIPv6' + PreferredIPVersion PreferredIPVersion `json:"preferredIPVersion,omitempty"` + // HTTPConfiguration - The parameters used to perform test evaluation over HTTP. + HTTPConfiguration *ConnectionMonitorHTTPConfiguration `json:"httpConfiguration,omitempty"` + // TCPConfiguration - The parameters used to perform test evaluation over TCP. + TCPConfiguration *ConnectionMonitorTCPConfiguration `json:"tcpConfiguration,omitempty"` + // IcmpConfiguration - The parameters used to perform test evaluation over ICMP. + IcmpConfiguration *ConnectionMonitorIcmpConfiguration `json:"icmpConfiguration,omitempty"` + // SuccessThreshold - The threshold for declaring a test successful. + SuccessThreshold *ConnectionMonitorSuccessThreshold `json:"successThreshold,omitempty"` +} + +// ConnectionMonitorTestGroup describes the connection monitor test group. +type ConnectionMonitorTestGroup struct { + // Name - The name of the connection monitor test group. + Name *string `json:"name,omitempty"` + // Disable - Value indicating whether test group is disabled. + Disable *bool `json:"disable,omitempty"` + // TestConfigurations - List of test configuration names. + TestConfigurations *[]string `json:"testConfigurations,omitempty"` + // Sources - List of source endpoint names. + Sources *[]string `json:"sources,omitempty"` + // Destinations - List of destination endpoint names. + Destinations *[]string `json:"destinations,omitempty"` +} + +// ConnectionMonitorWorkspaceSettings describes the settings for producing output into a log analytics +// workspace. +type ConnectionMonitorWorkspaceSettings struct { + // WorkspaceResourceID - Log analytics workspace resource ID. + WorkspaceResourceID *string `json:"workspaceResourceId,omitempty"` +} + +// ConnectionResetSharedKey the virtual network connection reset shared key. +type ConnectionResetSharedKey struct { + autorest.Response `json:"-"` + // KeyLength - The virtual network connection reset shared key length, should between 1 and 128. + KeyLength *int32 `json:"keyLength,omitempty"` +} + +// ConnectionSharedKey response for GetConnectionSharedKey API service call. +type ConnectionSharedKey struct { + autorest.Response `json:"-"` + // Value - The virtual network connection shared key value. + Value *string `json:"value,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// ConnectionStateSnapshot connection state snapshot. +type ConnectionStateSnapshot struct { + // ConnectionState - The connection state. Possible values include: 'ConnectionStateReachable', 'ConnectionStateUnreachable', 'ConnectionStateUnknown' + ConnectionState ConnectionState `json:"connectionState,omitempty"` + // StartTime - The start time of the connection snapshot. + StartTime *date.Time `json:"startTime,omitempty"` + // EndTime - The end time of the connection snapshot. + EndTime *date.Time `json:"endTime,omitempty"` + // EvaluationState - Connectivity analysis evaluation state. Possible values include: 'NotStarted', 'InProgress', 'Completed' + EvaluationState EvaluationState `json:"evaluationState,omitempty"` + // AvgLatencyInMs - Average latency in ms. + AvgLatencyInMs *int64 `json:"avgLatencyInMs,omitempty"` + // MinLatencyInMs - Minimum latency in ms. + MinLatencyInMs *int64 `json:"minLatencyInMs,omitempty"` + // MaxLatencyInMs - Maximum latency in ms. + MaxLatencyInMs *int64 `json:"maxLatencyInMs,omitempty"` + // ProbesSent - The number of sent probes. + ProbesSent *int64 `json:"probesSent,omitempty"` + // ProbesFailed - The number of failed probes. + ProbesFailed *int64 `json:"probesFailed,omitempty"` + // Hops - READ-ONLY; List of hops between the source and the destination. + Hops *[]ConnectivityHop `json:"hops,omitempty"` +} + +// MarshalJSON is the custom marshaler for ConnectionStateSnapshot. +func (CSS ConnectionStateSnapshot) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if CSS.ConnectionState != "" { + objectMap["connectionState"] = CSS.ConnectionState + } + if CSS.StartTime != nil { + objectMap["startTime"] = CSS.StartTime + } + if CSS.EndTime != nil { + objectMap["endTime"] = CSS.EndTime + } + if CSS.EvaluationState != "" { + objectMap["evaluationState"] = CSS.EvaluationState + } + if CSS.AvgLatencyInMs != nil { + objectMap["avgLatencyInMs"] = CSS.AvgLatencyInMs + } + if CSS.MinLatencyInMs != nil { + objectMap["minLatencyInMs"] = CSS.MinLatencyInMs + } + if CSS.MaxLatencyInMs != nil { + objectMap["maxLatencyInMs"] = CSS.MaxLatencyInMs + } + if CSS.ProbesSent != nil { + objectMap["probesSent"] = CSS.ProbesSent + } + if CSS.ProbesFailed != nil { + objectMap["probesFailed"] = CSS.ProbesFailed + } + return json.Marshal(objectMap) +} + +// ConnectivityDestination parameters that define destination of connection. +type ConnectivityDestination struct { + // ResourceID - The ID of the resource to which a connection attempt will be made. + ResourceID *string `json:"resourceId,omitempty"` + // Address - The IP address or URI the resource to which a connection attempt will be made. + Address *string `json:"address,omitempty"` + // Port - Port on which check connectivity will be performed. + Port *int32 `json:"port,omitempty"` +} + +// ConnectivityHop information about a hop between the source and the destination. +type ConnectivityHop struct { + // Type - READ-ONLY; The type of the hop. + Type *string `json:"type,omitempty"` + // ID - READ-ONLY; The ID of the hop. + ID *string `json:"id,omitempty"` + // Address - READ-ONLY; The IP address of the hop. + Address *string `json:"address,omitempty"` + // ResourceID - READ-ONLY; The ID of the resource corresponding to this hop. + ResourceID *string `json:"resourceId,omitempty"` + // NextHopIds - READ-ONLY; List of next hop identifiers. + NextHopIds *[]string `json:"nextHopIds,omitempty"` + // PreviousHopIds - READ-ONLY; List of previous hop identifiers. + PreviousHopIds *[]string `json:"previousHopIds,omitempty"` + // Links - READ-ONLY; List of hop links. + Links *[]HopLink `json:"links,omitempty"` + // PreviousLinks - READ-ONLY; List of previous hop links. + PreviousLinks *[]HopLink `json:"previousLinks,omitempty"` + // Issues - READ-ONLY; List of issues. + Issues *[]ConnectivityIssue `json:"issues,omitempty"` +} + +// ConnectivityInformation information on the connectivity status. +type ConnectivityInformation struct { + autorest.Response `json:"-"` + // Hops - READ-ONLY; List of hops between the source and the destination. + Hops *[]ConnectivityHop `json:"hops,omitempty"` + // ConnectionStatus - READ-ONLY; The connection status. Possible values include: 'ConnectionStatusUnknown', 'ConnectionStatusConnected', 'ConnectionStatusDisconnected', 'ConnectionStatusDegraded' + ConnectionStatus ConnectionStatus `json:"connectionStatus,omitempty"` + // AvgLatencyInMs - READ-ONLY; Average latency in milliseconds. + AvgLatencyInMs *int32 `json:"avgLatencyInMs,omitempty"` + // MinLatencyInMs - READ-ONLY; Minimum latency in milliseconds. + MinLatencyInMs *int32 `json:"minLatencyInMs,omitempty"` + // MaxLatencyInMs - READ-ONLY; Maximum latency in milliseconds. + MaxLatencyInMs *int32 `json:"maxLatencyInMs,omitempty"` + // ProbesSent - READ-ONLY; Total number of probes sent. + ProbesSent *int32 `json:"probesSent,omitempty"` + // ProbesFailed - READ-ONLY; Number of failed probes. + ProbesFailed *int32 `json:"probesFailed,omitempty"` +} + +// ConnectivityIssue information about an issue encountered in the process of checking for connectivity. +type ConnectivityIssue struct { + // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' + Origin Origin `json:"origin,omitempty"` + // Severity - READ-ONLY; The severity of the issue. Possible values include: 'SeverityError', 'SeverityWarning' + Severity Severity `json:"severity,omitempty"` + // Type - READ-ONLY; The type of issue. Possible values include: 'IssueTypeUnknown', 'IssueTypeAgentStopped', 'IssueTypeGuestFirewall', 'IssueTypeDNSResolution', 'IssueTypeSocketBind', 'IssueTypeNetworkSecurityRule', 'IssueTypeUserDefinedRoute', 'IssueTypePortThrottled', 'IssueTypePlatform' + Type IssueType `json:"type,omitempty"` + // Context - READ-ONLY; Provides additional context on the issue. + Context *[]map[string]*string `json:"context,omitempty"` +} + +// ConnectivityParameters parameters that determine how the connectivity check will be performed. +type ConnectivityParameters struct { + // Source - The source of the connection. + Source *ConnectivitySource `json:"source,omitempty"` + // Destination - The destination of connection. + Destination *ConnectivityDestination `json:"destination,omitempty"` + // Protocol - Network protocol. Possible values include: 'ProtocolTCP', 'ProtocolHTTP', 'ProtocolHTTPS', 'ProtocolIcmp' + Protocol Protocol `json:"protocol,omitempty"` + // ProtocolConfiguration - Configuration of the protocol. + ProtocolConfiguration *ProtocolConfiguration `json:"protocolConfiguration,omitempty"` + // PreferredIPVersion - Preferred IP version of the connection. Possible values include: 'IPv4', 'IPv6' + PreferredIPVersion IPVersion `json:"preferredIPVersion,omitempty"` +} + +// ConnectivitySource parameters that define the source of the connection. +type ConnectivitySource struct { + // ResourceID - The ID of the resource from which a connectivity check will be initiated. + ResourceID *string `json:"resourceId,omitempty"` + // Port - The source port from which a connectivity check will be performed. + Port *int32 `json:"port,omitempty"` +} + +// Container reference to container resource in remote resource provider. +type Container struct { + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// ContainerNetworkInterface container network interface child resource. +type ContainerNetworkInterface struct { + // ContainerNetworkInterfacePropertiesFormat - Container network interface properties. + *ContainerNetworkInterfacePropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Sub Resource type. + Type *string `json:"type,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ContainerNetworkInterface. +func (cni ContainerNetworkInterface) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if cni.ContainerNetworkInterfacePropertiesFormat != nil { + objectMap["properties"] = cni.ContainerNetworkInterfacePropertiesFormat + } + if cni.Name != nil { + objectMap["name"] = cni.Name + } + if cni.ID != nil { + objectMap["id"] = cni.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ContainerNetworkInterface struct. +func (cni *ContainerNetworkInterface) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var containerNetworkInterfacePropertiesFormat ContainerNetworkInterfacePropertiesFormat + err = json.Unmarshal(*v, &containerNetworkInterfacePropertiesFormat) + if err != nil { + return err + } + cni.ContainerNetworkInterfacePropertiesFormat = &containerNetworkInterfacePropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + cni.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cni.Type = &typeVar + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + cni.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + cni.ID = &ID + } + } + } + + return nil +} + +// ContainerNetworkInterfaceConfiguration container network interface configuration child resource. +type ContainerNetworkInterfaceConfiguration struct { + // ContainerNetworkInterfaceConfigurationPropertiesFormat - Container network interface configuration properties. + *ContainerNetworkInterfaceConfigurationPropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Sub Resource type. + Type *string `json:"type,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ContainerNetworkInterfaceConfiguration. +func (cnic ContainerNetworkInterfaceConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if cnic.ContainerNetworkInterfaceConfigurationPropertiesFormat != nil { + objectMap["properties"] = cnic.ContainerNetworkInterfaceConfigurationPropertiesFormat + } + if cnic.Name != nil { + objectMap["name"] = cnic.Name + } + if cnic.ID != nil { + objectMap["id"] = cnic.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ContainerNetworkInterfaceConfiguration struct. +func (cnic *ContainerNetworkInterfaceConfiguration) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var containerNetworkInterfaceConfigurationPropertiesFormat ContainerNetworkInterfaceConfigurationPropertiesFormat + err = json.Unmarshal(*v, &containerNetworkInterfaceConfigurationPropertiesFormat) + if err != nil { + return err + } + cnic.ContainerNetworkInterfaceConfigurationPropertiesFormat = &containerNetworkInterfaceConfigurationPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + cnic.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cnic.Type = &typeVar + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + cnic.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + cnic.ID = &ID + } + } + } + + return nil +} + +// ContainerNetworkInterfaceConfigurationPropertiesFormat container network interface configuration +// properties. +type ContainerNetworkInterfaceConfigurationPropertiesFormat struct { + // IPConfigurations - A list of ip configurations of the container network interface configuration. + IPConfigurations *[]IPConfigurationProfile `json:"ipConfigurations,omitempty"` + // ContainerNetworkInterfaces - A list of container network interfaces created from this container network interface configuration. + ContainerNetworkInterfaces *[]SubResource `json:"containerNetworkInterfaces,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the container network interface configuration resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ContainerNetworkInterfaceConfigurationPropertiesFormat. +func (cnicpf ContainerNetworkInterfaceConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if cnicpf.IPConfigurations != nil { + objectMap["ipConfigurations"] = cnicpf.IPConfigurations + } + if cnicpf.ContainerNetworkInterfaces != nil { + objectMap["containerNetworkInterfaces"] = cnicpf.ContainerNetworkInterfaces + } + return json.Marshal(objectMap) +} + +// ContainerNetworkInterfaceIPConfiguration the ip configuration for a container network interface. +type ContainerNetworkInterfaceIPConfiguration struct { + // ContainerNetworkInterfaceIPConfigurationPropertiesFormat - Properties of the container network interface IP configuration. + *ContainerNetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Sub Resource type. + Type *string `json:"type,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` +} + +// MarshalJSON is the custom marshaler for ContainerNetworkInterfaceIPConfiguration. +func (cniic ContainerNetworkInterfaceIPConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if cniic.ContainerNetworkInterfaceIPConfigurationPropertiesFormat != nil { + objectMap["properties"] = cniic.ContainerNetworkInterfaceIPConfigurationPropertiesFormat + } + if cniic.Name != nil { + objectMap["name"] = cniic.Name + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ContainerNetworkInterfaceIPConfiguration struct. +func (cniic *ContainerNetworkInterfaceIPConfiguration) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var containerNetworkInterfaceIPConfigurationPropertiesFormat ContainerNetworkInterfaceIPConfigurationPropertiesFormat + err = json.Unmarshal(*v, &containerNetworkInterfaceIPConfigurationPropertiesFormat) + if err != nil { + return err + } + cniic.ContainerNetworkInterfaceIPConfigurationPropertiesFormat = &containerNetworkInterfaceIPConfigurationPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + cniic.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cniic.Type = &typeVar + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + cniic.Etag = &etag + } + } + } + + return nil +} + +// ContainerNetworkInterfaceIPConfigurationPropertiesFormat properties of the container network interface +// IP configuration. +type ContainerNetworkInterfaceIPConfigurationPropertiesFormat struct { + // ProvisioningState - READ-ONLY; The provisioning state of the container network interface IP configuration resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// ContainerNetworkInterfacePropertiesFormat properties of container network interface. +type ContainerNetworkInterfacePropertiesFormat struct { + // ContainerNetworkInterfaceConfiguration - READ-ONLY; Container network interface configuration from which this container network interface is created. + ContainerNetworkInterfaceConfiguration *ContainerNetworkInterfaceConfiguration `json:"containerNetworkInterfaceConfiguration,omitempty"` + // Container - Reference to the container to which this container network interface is attached. + Container *Container `json:"container,omitempty"` + // IPConfigurations - READ-ONLY; Reference to the ip configuration on this container nic. + IPConfigurations *[]ContainerNetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the container network interface resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ContainerNetworkInterfacePropertiesFormat. +func (cnipf ContainerNetworkInterfacePropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if cnipf.Container != nil { + objectMap["container"] = cnipf.Container + } + return json.Marshal(objectMap) +} + +// CustomDNSConfigPropertiesFormat contains custom Dns resolution configuration from customer. +type CustomDNSConfigPropertiesFormat struct { + // Fqdn - Fqdn that resolves to private endpoint ip address. + Fqdn *string `json:"fqdn,omitempty"` + // IPAddresses - A list of private ip addresses of the private endpoint. + IPAddresses *[]string `json:"ipAddresses,omitempty"` +} + +// CustomIPPrefix custom IP prefix resource. +type CustomIPPrefix struct { + autorest.Response `json:"-"` + // CustomIPPrefixPropertiesFormat - Custom IP prefix properties. + *CustomIPPrefixPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Zones - A list of availability zones denoting the IP allocated for the resource needs to come from. + Zones *[]string `json:"zones,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for CustomIPPrefix. +func (cip CustomIPPrefix) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if cip.CustomIPPrefixPropertiesFormat != nil { + objectMap["properties"] = cip.CustomIPPrefixPropertiesFormat + } + if cip.Zones != nil { + objectMap["zones"] = cip.Zones + } + if cip.ID != nil { + objectMap["id"] = cip.ID + } + if cip.Location != nil { + objectMap["location"] = cip.Location + } + if cip.Tags != nil { + objectMap["tags"] = cip.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for CustomIPPrefix struct. +func (cip *CustomIPPrefix) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var customIPPrefixPropertiesFormat CustomIPPrefixPropertiesFormat + err = json.Unmarshal(*v, &customIPPrefixPropertiesFormat) + if err != nil { + return err + } + cip.CustomIPPrefixPropertiesFormat = &customIPPrefixPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + cip.Etag = &etag + } + case "zones": + if v != nil { + var zones []string + err = json.Unmarshal(*v, &zones) + if err != nil { + return err + } + cip.Zones = &zones + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + cip.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + cip.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cip.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + cip.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + cip.Tags = tags + } + } + } + + return nil +} + +// CustomIPPrefixesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type CustomIPPrefixesCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *CustomIPPrefixesCreateOrUpdateFuture) Result(client CustomIPPrefixesClient) (cip CustomIPPrefix, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.CustomIPPrefixesCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if cip.Response.Response, err = future.GetResult(sender); err == nil && cip.Response.Response.StatusCode != http.StatusNoContent { + cip, err = client.CreateOrUpdateResponder(cip.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesCreateOrUpdateFuture", "Result", cip.Response.Response, "Failure responding to request") + } + } + return +} + +// CustomIPPrefixesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type CustomIPPrefixesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *CustomIPPrefixesDeleteFuture) Result(client CustomIPPrefixesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.CustomIPPrefixesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.CustomIPPrefixesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// CustomIPPrefixListResult response for ListCustomIpPrefixes API service call. +type CustomIPPrefixListResult struct { + autorest.Response `json:"-"` + // Value - A list of Custom IP prefixes that exists in a resource group. + Value *[]CustomIPPrefix `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// CustomIPPrefixListResultIterator provides access to a complete listing of CustomIPPrefix values. +type CustomIPPrefixListResultIterator struct { + i int + page CustomIPPrefixListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *CustomIPPrefixListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CustomIPPrefixListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *CustomIPPrefixListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter CustomIPPrefixListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter CustomIPPrefixListResultIterator) Response() CustomIPPrefixListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter CustomIPPrefixListResultIterator) Value() CustomIPPrefix { + if !iter.page.NotDone() { + return CustomIPPrefix{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the CustomIPPrefixListResultIterator type. +func NewCustomIPPrefixListResultIterator(page CustomIPPrefixListResultPage) CustomIPPrefixListResultIterator { + return CustomIPPrefixListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (ciplr CustomIPPrefixListResult) IsEmpty() bool { + return ciplr.Value == nil || len(*ciplr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (ciplr CustomIPPrefixListResult) hasNextLink() bool { + return ciplr.NextLink != nil && len(*ciplr.NextLink) != 0 +} + +// customIPPrefixListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (ciplr CustomIPPrefixListResult) customIPPrefixListResultPreparer(ctx context.Context) (*http.Request, error) { + if !ciplr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(ciplr.NextLink))) +} + +// CustomIPPrefixListResultPage contains a page of CustomIPPrefix values. +type CustomIPPrefixListResultPage struct { + fn func(context.Context, CustomIPPrefixListResult) (CustomIPPrefixListResult, error) + ciplr CustomIPPrefixListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *CustomIPPrefixListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CustomIPPrefixListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.ciplr) + if err != nil { + return err + } + page.ciplr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *CustomIPPrefixListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page CustomIPPrefixListResultPage) NotDone() bool { + return !page.ciplr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page CustomIPPrefixListResultPage) Response() CustomIPPrefixListResult { + return page.ciplr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page CustomIPPrefixListResultPage) Values() []CustomIPPrefix { + if page.ciplr.IsEmpty() { + return nil + } + return *page.ciplr.Value +} + +// Creates a new instance of the CustomIPPrefixListResultPage type. +func NewCustomIPPrefixListResultPage(cur CustomIPPrefixListResult, getNextPage func(context.Context, CustomIPPrefixListResult) (CustomIPPrefixListResult, error)) CustomIPPrefixListResultPage { + return CustomIPPrefixListResultPage{ + fn: getNextPage, + ciplr: cur, + } +} + +// CustomIPPrefixPropertiesFormat custom IP prefix properties. +type CustomIPPrefixPropertiesFormat struct { + // Cidr - The prefix range in CIDR notation. Should include the start address and the prefix length. + Cidr *string `json:"cidr,omitempty"` + // CommissionedState - The commissioned state of the Custom IP Prefix. Possible values include: 'Provisioning', 'Provisioned', 'Commissioning', 'Commissioned', 'Decommissioning', 'Deprovisioning' + CommissionedState CommissionedState `json:"commissionedState,omitempty"` + // PublicIPPrefixes - READ-ONLY; The list of all referenced PublicIpPrefixes. + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + // ResourceGUID - READ-ONLY; The resource GUID property of the custom IP prefix resource. + ResourceGUID *string `json:"resourceGuid,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the custom IP prefix resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for CustomIPPrefixPropertiesFormat. +func (cippf CustomIPPrefixPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if cippf.Cidr != nil { + objectMap["cidr"] = cippf.Cidr + } + if cippf.CommissionedState != "" { + objectMap["commissionedState"] = cippf.CommissionedState + } + return json.Marshal(objectMap) +} + +// DdosCustomPoliciesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type DdosCustomPoliciesCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DdosCustomPoliciesCreateOrUpdateFuture) Result(client DdosCustomPoliciesClient) (dcp DdosCustomPolicy, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.DdosCustomPoliciesCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if dcp.Response.Response, err = future.GetResult(sender); err == nil && dcp.Response.Response.StatusCode != http.StatusNoContent { + dcp, err = client.CreateOrUpdateResponder(dcp.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesCreateOrUpdateFuture", "Result", dcp.Response.Response, "Failure responding to request") + } + } + return +} + +// DdosCustomPoliciesDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type DdosCustomPoliciesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DdosCustomPoliciesDeleteFuture) Result(client DdosCustomPoliciesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.DdosCustomPoliciesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// DdosCustomPolicy a DDoS custom policy in a resource group. +type DdosCustomPolicy struct { + autorest.Response `json:"-"` + // DdosCustomPolicyPropertiesFormat - Properties of the DDoS custom policy. + *DdosCustomPolicyPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for DdosCustomPolicy. +func (dcp DdosCustomPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dcp.DdosCustomPolicyPropertiesFormat != nil { + objectMap["properties"] = dcp.DdosCustomPolicyPropertiesFormat + } + if dcp.ID != nil { + objectMap["id"] = dcp.ID + } + if dcp.Location != nil { + objectMap["location"] = dcp.Location + } + if dcp.Tags != nil { + objectMap["tags"] = dcp.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for DdosCustomPolicy struct. +func (dcp *DdosCustomPolicy) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var ddosCustomPolicyPropertiesFormat DdosCustomPolicyPropertiesFormat + err = json.Unmarshal(*v, &ddosCustomPolicyPropertiesFormat) + if err != nil { + return err + } + dcp.DdosCustomPolicyPropertiesFormat = &ddosCustomPolicyPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + dcp.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + dcp.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + dcp.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dcp.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + dcp.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + dcp.Tags = tags + } + } + } + + return nil +} + +// DdosCustomPolicyPropertiesFormat dDoS custom policy properties. +type DdosCustomPolicyPropertiesFormat struct { + // ResourceGUID - READ-ONLY; The resource GUID property of the DDoS custom policy resource. It uniquely identifies the resource, even if the user changes its name or migrate the resource across subscriptions or resource groups. + ResourceGUID *string `json:"resourceGuid,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the DDoS custom policy resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // PublicIPAddresses - READ-ONLY; The list of public IPs associated with the DDoS custom policy resource. This list is read-only. + PublicIPAddresses *[]SubResource `json:"publicIPAddresses,omitempty"` + // ProtocolCustomSettings - The protocol-specific DDoS policy customization parameters. + ProtocolCustomSettings *[]ProtocolCustomSettingsFormat `json:"protocolCustomSettings,omitempty"` +} + +// MarshalJSON is the custom marshaler for DdosCustomPolicyPropertiesFormat. +func (dcppf DdosCustomPolicyPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dcppf.ProtocolCustomSettings != nil { + objectMap["protocolCustomSettings"] = dcppf.ProtocolCustomSettings + } + return json.Marshal(objectMap) +} + +// DdosProtectionPlan a DDoS protection plan in a resource group. +type DdosProtectionPlan struct { + autorest.Response `json:"-"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // DdosProtectionPlanPropertiesFormat - Properties of the DDoS protection plan. + *DdosProtectionPlanPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` +} + +// MarshalJSON is the custom marshaler for DdosProtectionPlan. +func (dpp DdosProtectionPlan) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dpp.Location != nil { + objectMap["location"] = dpp.Location + } + if dpp.Tags != nil { + objectMap["tags"] = dpp.Tags + } + if dpp.DdosProtectionPlanPropertiesFormat != nil { + objectMap["properties"] = dpp.DdosProtectionPlanPropertiesFormat + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for DdosProtectionPlan struct. +func (dpp *DdosProtectionPlan) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + dpp.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + dpp.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dpp.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + dpp.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + dpp.Tags = tags + } + case "properties": + if v != nil { + var ddosProtectionPlanPropertiesFormat DdosProtectionPlanPropertiesFormat + err = json.Unmarshal(*v, &ddosProtectionPlanPropertiesFormat) + if err != nil { + return err + } + dpp.DdosProtectionPlanPropertiesFormat = &ddosProtectionPlanPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + dpp.Etag = &etag + } + } + } + + return nil +} + +// DdosProtectionPlanListResult a list of DDoS protection plans. +type DdosProtectionPlanListResult struct { + autorest.Response `json:"-"` + // Value - A list of DDoS protection plans. + Value *[]DdosProtectionPlan `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for DdosProtectionPlanListResult. +func (dpplr DdosProtectionPlanListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dpplr.Value != nil { + objectMap["value"] = dpplr.Value + } + return json.Marshal(objectMap) +} + +// DdosProtectionPlanListResultIterator provides access to a complete listing of DdosProtectionPlan values. +type DdosProtectionPlanListResultIterator struct { + i int + page DdosProtectionPlanListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *DdosProtectionPlanListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DdosProtectionPlanListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *DdosProtectionPlanListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter DdosProtectionPlanListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter DdosProtectionPlanListResultIterator) Response() DdosProtectionPlanListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter DdosProtectionPlanListResultIterator) Value() DdosProtectionPlan { + if !iter.page.NotDone() { + return DdosProtectionPlan{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the DdosProtectionPlanListResultIterator type. +func NewDdosProtectionPlanListResultIterator(page DdosProtectionPlanListResultPage) DdosProtectionPlanListResultIterator { + return DdosProtectionPlanListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (dpplr DdosProtectionPlanListResult) IsEmpty() bool { + return dpplr.Value == nil || len(*dpplr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (dpplr DdosProtectionPlanListResult) hasNextLink() bool { + return dpplr.NextLink != nil && len(*dpplr.NextLink) != 0 +} + +// ddosProtectionPlanListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (dpplr DdosProtectionPlanListResult) ddosProtectionPlanListResultPreparer(ctx context.Context) (*http.Request, error) { + if !dpplr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(dpplr.NextLink))) +} + +// DdosProtectionPlanListResultPage contains a page of DdosProtectionPlan values. +type DdosProtectionPlanListResultPage struct { + fn func(context.Context, DdosProtectionPlanListResult) (DdosProtectionPlanListResult, error) + dpplr DdosProtectionPlanListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *DdosProtectionPlanListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DdosProtectionPlanListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.dpplr) + if err != nil { + return err + } + page.dpplr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *DdosProtectionPlanListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page DdosProtectionPlanListResultPage) NotDone() bool { + return !page.dpplr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page DdosProtectionPlanListResultPage) Response() DdosProtectionPlanListResult { + return page.dpplr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page DdosProtectionPlanListResultPage) Values() []DdosProtectionPlan { + if page.dpplr.IsEmpty() { + return nil + } + return *page.dpplr.Value +} + +// Creates a new instance of the DdosProtectionPlanListResultPage type. +func NewDdosProtectionPlanListResultPage(cur DdosProtectionPlanListResult, getNextPage func(context.Context, DdosProtectionPlanListResult) (DdosProtectionPlanListResult, error)) DdosProtectionPlanListResultPage { + return DdosProtectionPlanListResultPage{ + fn: getNextPage, + dpplr: cur, + } +} + +// DdosProtectionPlanPropertiesFormat dDoS protection plan properties. +type DdosProtectionPlanPropertiesFormat struct { + // ResourceGUID - READ-ONLY; The resource GUID property of the DDoS protection plan resource. It uniquely identifies the resource, even if the user changes its name or migrate the resource across subscriptions or resource groups. + ResourceGUID *string `json:"resourceGuid,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the DDoS protection plan resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // VirtualNetworks - READ-ONLY; The list of virtual networks associated with the DDoS protection plan resource. This list is read-only. + VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` +} + +// DdosProtectionPlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type DdosProtectionPlansCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DdosProtectionPlansCreateOrUpdateFuture) Result(client DdosProtectionPlansClient) (dpp DdosProtectionPlan, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.DdosProtectionPlansCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if dpp.Response.Response, err = future.GetResult(sender); err == nil && dpp.Response.Response.StatusCode != http.StatusNoContent { + dpp, err = client.CreateOrUpdateResponder(dpp.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansCreateOrUpdateFuture", "Result", dpp.Response.Response, "Failure responding to request") + } + } + return +} + +// DdosProtectionPlansDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type DdosProtectionPlansDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DdosProtectionPlansDeleteFuture) Result(client DdosProtectionPlansClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.DdosProtectionPlansDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// DdosSettings contains the DDoS protection settings of the public IP. +type DdosSettings struct { + // DdosCustomPolicy - The DDoS custom policy associated with the public IP. + DdosCustomPolicy *SubResource `json:"ddosCustomPolicy,omitempty"` + // ProtectionCoverage - The DDoS protection policy customizability of the public IP. Only standard coverage will have the ability to be customized. Possible values include: 'DdosSettingsProtectionCoverageBasic', 'DdosSettingsProtectionCoverageStandard' + ProtectionCoverage DdosSettingsProtectionCoverage `json:"protectionCoverage,omitempty"` + // ProtectedIP - Enables DDoS protection on the public IP. + ProtectedIP *bool `json:"protectedIP,omitempty"` +} + +// Delegation details the service to which the subnet is delegated. +type Delegation struct { + // ServiceDelegationPropertiesFormat - Properties of the subnet. + *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a subnet. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for Delegation. +func (d Delegation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if d.ServiceDelegationPropertiesFormat != nil { + objectMap["properties"] = d.ServiceDelegationPropertiesFormat + } + if d.Name != nil { + objectMap["name"] = d.Name + } + if d.ID != nil { + objectMap["id"] = d.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Delegation struct. +func (d *Delegation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var serviceDelegationPropertiesFormat ServiceDelegationPropertiesFormat + err = json.Unmarshal(*v, &serviceDelegationPropertiesFormat) + if err != nil { + return err + } + d.ServiceDelegationPropertiesFormat = &serviceDelegationPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + d.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + d.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + d.ID = &ID + } + } + } + + return nil +} + +// DeleteBastionShareableLinkFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type DeleteBastionShareableLinkFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DeleteBastionShareableLinkFuture) Result(client BaseClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DeleteBastionShareableLinkFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.DeleteBastionShareableLinkFuture") + return + } + ar.Response = future.Response() + return +} + +// DeviceProperties list of properties of the device. +type DeviceProperties struct { + // DeviceVendor - Name of the device Vendor. + DeviceVendor *string `json:"deviceVendor,omitempty"` + // DeviceModel - Model of the device. + DeviceModel *string `json:"deviceModel,omitempty"` + // LinkSpeedInMbps - Link speed. + LinkSpeedInMbps *int32 `json:"linkSpeedInMbps,omitempty"` +} + +// DhcpOptions dhcpOptions contains an array of DNS servers available to VMs deployed in the virtual +// network. Standard DHCP option for a subnet overrides VNET DHCP options. +type DhcpOptions struct { + // DNSServers - The list of DNS servers IP addresses. + DNSServers *[]string `json:"dnsServers,omitempty"` +} + +// Dimension dimension of the metric. +type Dimension struct { + // Name - The name of the dimension. + Name *string `json:"name,omitempty"` + // DisplayName - The display name of the dimension. + DisplayName *string `json:"displayName,omitempty"` + // InternalName - The internal name of the dimension. + InternalName *string `json:"internalName,omitempty"` +} + +// DNSNameAvailabilityResult response for the CheckDnsNameAvailability API service call. +type DNSNameAvailabilityResult struct { + autorest.Response `json:"-"` + // Available - Domain availability (True/False). + Available *bool `json:"available,omitempty"` +} + +// DNSSettings DNS Proxy Settings in Firewall Policy. +type DNSSettings struct { + // Servers - List of Custom DNS Servers. + Servers *[]string `json:"servers,omitempty"` + // EnableProxy - Enable DNS Proxy on Firewalls attached to the Firewall Policy. + EnableProxy *bool `json:"enableProxy,omitempty"` + // RequireProxyForNetworkRules - FQDNs in Network Rules are supported when set to true. + RequireProxyForNetworkRules *bool `json:"requireProxyForNetworkRules,omitempty"` +} + +// DscpConfiguration DSCP Configuration in a resource group. +type DscpConfiguration struct { + autorest.Response `json:"-"` + // DscpConfigurationPropertiesFormat - Properties of the network interface. + *DscpConfigurationPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for DscpConfiguration. +func (dc DscpConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dc.DscpConfigurationPropertiesFormat != nil { + objectMap["properties"] = dc.DscpConfigurationPropertiesFormat + } + if dc.ID != nil { + objectMap["id"] = dc.ID + } + if dc.Location != nil { + objectMap["location"] = dc.Location + } + if dc.Tags != nil { + objectMap["tags"] = dc.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for DscpConfiguration struct. +func (dc *DscpConfiguration) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var dscpConfigurationPropertiesFormat DscpConfigurationPropertiesFormat + err = json.Unmarshal(*v, &dscpConfigurationPropertiesFormat) + if err != nil { + return err + } + dc.DscpConfigurationPropertiesFormat = &dscpConfigurationPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + dc.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + dc.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + dc.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dc.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + dc.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + dc.Tags = tags + } + } + } + + return nil +} + +// DscpConfigurationCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type DscpConfigurationCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DscpConfigurationCreateOrUpdateFuture) Result(client DscpConfigurationClient) (dc DscpConfiguration, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DscpConfigurationCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.DscpConfigurationCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if dc.Response.Response, err = future.GetResult(sender); err == nil && dc.Response.Response.StatusCode != http.StatusNoContent { + dc, err = client.CreateOrUpdateResponder(dc.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DscpConfigurationCreateOrUpdateFuture", "Result", dc.Response.Response, "Failure responding to request") + } + } + return +} + +// DscpConfigurationDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type DscpConfigurationDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DscpConfigurationDeleteFuture) Result(client DscpConfigurationClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DscpConfigurationDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.DscpConfigurationDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// DscpConfigurationListResult response for the DscpConfigurationList API service call. +type DscpConfigurationListResult struct { + autorest.Response `json:"-"` + // Value - A list of dscp configurations in a resource group. + Value *[]DscpConfiguration `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for DscpConfigurationListResult. +func (dclr DscpConfigurationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dclr.Value != nil { + objectMap["value"] = dclr.Value + } + return json.Marshal(objectMap) +} + +// DscpConfigurationListResultIterator provides access to a complete listing of DscpConfiguration values. +type DscpConfigurationListResultIterator struct { + i int + page DscpConfigurationListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *DscpConfigurationListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DscpConfigurationListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *DscpConfigurationListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter DscpConfigurationListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter DscpConfigurationListResultIterator) Response() DscpConfigurationListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter DscpConfigurationListResultIterator) Value() DscpConfiguration { + if !iter.page.NotDone() { + return DscpConfiguration{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the DscpConfigurationListResultIterator type. +func NewDscpConfigurationListResultIterator(page DscpConfigurationListResultPage) DscpConfigurationListResultIterator { + return DscpConfigurationListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (dclr DscpConfigurationListResult) IsEmpty() bool { + return dclr.Value == nil || len(*dclr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (dclr DscpConfigurationListResult) hasNextLink() bool { + return dclr.NextLink != nil && len(*dclr.NextLink) != 0 +} + +// dscpConfigurationListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (dclr DscpConfigurationListResult) dscpConfigurationListResultPreparer(ctx context.Context) (*http.Request, error) { + if !dclr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(dclr.NextLink))) +} + +// DscpConfigurationListResultPage contains a page of DscpConfiguration values. +type DscpConfigurationListResultPage struct { + fn func(context.Context, DscpConfigurationListResult) (DscpConfigurationListResult, error) + dclr DscpConfigurationListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *DscpConfigurationListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DscpConfigurationListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.dclr) + if err != nil { + return err + } + page.dclr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *DscpConfigurationListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page DscpConfigurationListResultPage) NotDone() bool { + return !page.dclr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page DscpConfigurationListResultPage) Response() DscpConfigurationListResult { + return page.dclr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page DscpConfigurationListResultPage) Values() []DscpConfiguration { + if page.dclr.IsEmpty() { + return nil + } + return *page.dclr.Value +} + +// Creates a new instance of the DscpConfigurationListResultPage type. +func NewDscpConfigurationListResultPage(cur DscpConfigurationListResult, getNextPage func(context.Context, DscpConfigurationListResult) (DscpConfigurationListResult, error)) DscpConfigurationListResultPage { + return DscpConfigurationListResultPage{ + fn: getNextPage, + dclr: cur, + } +} + +// DscpConfigurationPropertiesFormat DSCP Configuration properties. +type DscpConfigurationPropertiesFormat struct { + // Markings - List of markings to be used in the configuration. + Markings *[]int32 `json:"markings,omitempty"` + // SourceIPRanges - Source IP ranges. + SourceIPRanges *[]QosIPRange `json:"sourceIpRanges,omitempty"` + // DestinationIPRanges - Destination IP ranges. + DestinationIPRanges *[]QosIPRange `json:"destinationIpRanges,omitempty"` + // SourcePortRanges - Sources port ranges. + SourcePortRanges *[]QosPortRange `json:"sourcePortRanges,omitempty"` + // DestinationPortRanges - Destination port ranges. + DestinationPortRanges *[]QosPortRange `json:"destinationPortRanges,omitempty"` + // Protocol - RNM supported protocol types. Possible values include: 'ProtocolTypeDoNotUse', 'ProtocolTypeIcmp', 'ProtocolTypeTCP', 'ProtocolTypeUDP', 'ProtocolTypeGre', 'ProtocolTypeEsp', 'ProtocolTypeAh', 'ProtocolTypeVxlan', 'ProtocolTypeAll' + Protocol ProtocolType `json:"protocol,omitempty"` + // QosCollectionID - READ-ONLY; Qos Collection ID generated by RNM. + QosCollectionID *string `json:"qosCollectionId,omitempty"` + // AssociatedNetworkInterfaces - READ-ONLY; Associated Network Interfaces to the DSCP Configuration. + AssociatedNetworkInterfaces *[]Interface `json:"associatedNetworkInterfaces,omitempty"` + // ResourceGUID - READ-ONLY; The resource GUID property of the DSCP Configuration resource. + ResourceGUID *string `json:"resourceGuid,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the DSCP Configuration resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for DscpConfigurationPropertiesFormat. +func (dcpf DscpConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dcpf.Markings != nil { + objectMap["markings"] = dcpf.Markings + } + if dcpf.SourceIPRanges != nil { + objectMap["sourceIpRanges"] = dcpf.SourceIPRanges + } + if dcpf.DestinationIPRanges != nil { + objectMap["destinationIpRanges"] = dcpf.DestinationIPRanges + } + if dcpf.SourcePortRanges != nil { + objectMap["sourcePortRanges"] = dcpf.SourcePortRanges + } + if dcpf.DestinationPortRanges != nil { + objectMap["destinationPortRanges"] = dcpf.DestinationPortRanges + } + if dcpf.Protocol != "" { + objectMap["protocol"] = dcpf.Protocol + } + return json.Marshal(objectMap) +} + +// EffectiveNetworkSecurityGroup effective network security group. +type EffectiveNetworkSecurityGroup struct { + // NetworkSecurityGroup - The ID of network security group that is applied. + NetworkSecurityGroup *SubResource `json:"networkSecurityGroup,omitempty"` + // Association - Associated resources. + Association *EffectiveNetworkSecurityGroupAssociation `json:"association,omitempty"` + // EffectiveSecurityRules - A collection of effective security rules. + EffectiveSecurityRules *[]EffectiveNetworkSecurityRule `json:"effectiveSecurityRules,omitempty"` + // TagMap - Mapping of tags to list of IP Addresses included within the tag. + TagMap map[string][]string `json:"tagMap"` +} + +// MarshalJSON is the custom marshaler for EffectiveNetworkSecurityGroup. +func (ensg EffectiveNetworkSecurityGroup) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ensg.NetworkSecurityGroup != nil { + objectMap["networkSecurityGroup"] = ensg.NetworkSecurityGroup + } + if ensg.Association != nil { + objectMap["association"] = ensg.Association + } + if ensg.EffectiveSecurityRules != nil { + objectMap["effectiveSecurityRules"] = ensg.EffectiveSecurityRules + } + if ensg.TagMap != nil { + objectMap["tagMap"] = ensg.TagMap + } + return json.Marshal(objectMap) +} + +// EffectiveNetworkSecurityGroupAssociation the effective network security group association. +type EffectiveNetworkSecurityGroupAssociation struct { + // Subnet - The ID of the subnet if assigned. + Subnet *SubResource `json:"subnet,omitempty"` + // NetworkInterface - The ID of the network interface if assigned. + NetworkInterface *SubResource `json:"networkInterface,omitempty"` +} + +// EffectiveNetworkSecurityGroupListResult response for list effective network security groups API service +// call. +type EffectiveNetworkSecurityGroupListResult struct { + autorest.Response `json:"-"` + // Value - A list of effective network security groups. + Value *[]EffectiveNetworkSecurityGroup `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for EffectiveNetworkSecurityGroupListResult. +func (ensglr EffectiveNetworkSecurityGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ensglr.Value != nil { + objectMap["value"] = ensglr.Value + } + return json.Marshal(objectMap) +} + +// EffectiveNetworkSecurityRule effective network security rules. +type EffectiveNetworkSecurityRule struct { + // Name - The name of the security rule specified by the user (if created by the user). + Name *string `json:"name,omitempty"` + // Protocol - The network protocol this rule applies to. Possible values include: 'EffectiveSecurityRuleProtocolTCP', 'EffectiveSecurityRuleProtocolUDP', 'EffectiveSecurityRuleProtocolAll' + Protocol EffectiveSecurityRuleProtocol `json:"protocol,omitempty"` + // SourcePortRange - The source port or range. + SourcePortRange *string `json:"sourcePortRange,omitempty"` + // DestinationPortRange - The destination port or range. + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + // SourcePortRanges - The source port ranges. Expected values include a single integer between 0 and 65535, a range using '-' as separator (e.g. 100-400), or an asterisk (*). + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` + // DestinationPortRanges - The destination port ranges. Expected values include a single integer between 0 and 65535, a range using '-' as separator (e.g. 100-400), or an asterisk (*). + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + // SourceAddressPrefix - The source address prefix. + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + // DestinationAddressPrefix - The destination address prefix. + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + // SourceAddressPrefixes - The source address prefixes. Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*). + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + // DestinationAddressPrefixes - The destination address prefixes. Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*). + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + // ExpandedSourceAddressPrefix - The expanded source address prefix. + ExpandedSourceAddressPrefix *[]string `json:"expandedSourceAddressPrefix,omitempty"` + // ExpandedDestinationAddressPrefix - Expanded destination address prefix. + ExpandedDestinationAddressPrefix *[]string `json:"expandedDestinationAddressPrefix,omitempty"` + // Access - Whether network traffic is allowed or denied. Possible values include: 'SecurityRuleAccessAllow', 'SecurityRuleAccessDeny' + Access SecurityRuleAccess `json:"access,omitempty"` + // Priority - The priority of the rule. + Priority *int32 `json:"priority,omitempty"` + // Direction - The direction of the rule. Possible values include: 'SecurityRuleDirectionInbound', 'SecurityRuleDirectionOutbound' + Direction SecurityRuleDirection `json:"direction,omitempty"` +} + +// EffectiveRoute effective Route. +type EffectiveRoute struct { + // Name - The name of the user defined route. This is optional. + Name *string `json:"name,omitempty"` + // DisableBgpRoutePropagation - If true, on-premises routes are not propagated to the network interfaces in the subnet. + DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` + // Source - Who created the route. Possible values include: 'EffectiveRouteSourceUnknown', 'EffectiveRouteSourceUser', 'EffectiveRouteSourceVirtualNetworkGateway', 'EffectiveRouteSourceDefault' + Source EffectiveRouteSource `json:"source,omitempty"` + // State - The value of effective route. Possible values include: 'Active', 'Invalid' + State EffectiveRouteState `json:"state,omitempty"` + // AddressPrefix - The address prefixes of the effective routes in CIDR notation. + AddressPrefix *[]string `json:"addressPrefix,omitempty"` + // NextHopIPAddress - The IP address of the next hop of the effective route. + NextHopIPAddress *[]string `json:"nextHopIpAddress,omitempty"` + // NextHopType - The type of Azure hop the packet should be sent to. Possible values include: 'RouteNextHopTypeVirtualNetworkGateway', 'RouteNextHopTypeVnetLocal', 'RouteNextHopTypeInternet', 'RouteNextHopTypeVirtualAppliance', 'RouteNextHopTypeNone' + NextHopType RouteNextHopType `json:"nextHopType,omitempty"` +} + +// EffectiveRouteListResult response for list effective route API service call. +type EffectiveRouteListResult struct { + autorest.Response `json:"-"` + // Value - A list of effective routes. + Value *[]EffectiveRoute `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for EffectiveRouteListResult. +func (erlr EffectiveRouteListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if erlr.Value != nil { + objectMap["value"] = erlr.Value + } + return json.Marshal(objectMap) +} + +// EffectiveRoutesParameters the parameters specifying the resource whose effective routes are being +// requested. +type EffectiveRoutesParameters struct { + // ResourceID - The resource whose effective routes are being requested. + ResourceID *string `json:"resourceId,omitempty"` + // VirtualWanResourceType - The type of the specified resource like RouteTable, ExpressRouteConnection, HubVirtualNetworkConnection, VpnConnection and P2SConnection. + VirtualWanResourceType *string `json:"virtualWanResourceType,omitempty"` +} + +// EndpointServiceResult endpoint service. +type EndpointServiceResult struct { + // Name - READ-ONLY; Name of the endpoint service. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Type of the endpoint service. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for EndpointServiceResult. +func (esr EndpointServiceResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if esr.ID != nil { + objectMap["id"] = esr.ID + } + return json.Marshal(objectMap) +} + +// EndpointServicesListResult response for the ListAvailableEndpointServices API service call. +type EndpointServicesListResult struct { + autorest.Response `json:"-"` + // Value - List of available endpoint services in a region. + Value *[]EndpointServiceResult `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// EndpointServicesListResultIterator provides access to a complete listing of EndpointServiceResult +// values. +type EndpointServicesListResultIterator struct { + i int + page EndpointServicesListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *EndpointServicesListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EndpointServicesListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *EndpointServicesListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter EndpointServicesListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter EndpointServicesListResultIterator) Response() EndpointServicesListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter EndpointServicesListResultIterator) Value() EndpointServiceResult { + if !iter.page.NotDone() { + return EndpointServiceResult{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the EndpointServicesListResultIterator type. +func NewEndpointServicesListResultIterator(page EndpointServicesListResultPage) EndpointServicesListResultIterator { + return EndpointServicesListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (eslr EndpointServicesListResult) IsEmpty() bool { + return eslr.Value == nil || len(*eslr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (eslr EndpointServicesListResult) hasNextLink() bool { + return eslr.NextLink != nil && len(*eslr.NextLink) != 0 +} + +// endpointServicesListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (eslr EndpointServicesListResult) endpointServicesListResultPreparer(ctx context.Context) (*http.Request, error) { + if !eslr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(eslr.NextLink))) +} + +// EndpointServicesListResultPage contains a page of EndpointServiceResult values. +type EndpointServicesListResultPage struct { + fn func(context.Context, EndpointServicesListResult) (EndpointServicesListResult, error) + eslr EndpointServicesListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *EndpointServicesListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EndpointServicesListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.eslr) + if err != nil { + return err + } + page.eslr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *EndpointServicesListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page EndpointServicesListResultPage) NotDone() bool { + return !page.eslr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page EndpointServicesListResultPage) Response() EndpointServicesListResult { + return page.eslr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page EndpointServicesListResultPage) Values() []EndpointServiceResult { + if page.eslr.IsEmpty() { + return nil + } + return *page.eslr.Value +} + +// Creates a new instance of the EndpointServicesListResultPage type. +func NewEndpointServicesListResultPage(cur EndpointServicesListResult, getNextPage func(context.Context, EndpointServicesListResult) (EndpointServicesListResult, error)) EndpointServicesListResultPage { + return EndpointServicesListResultPage{ + fn: getNextPage, + eslr: cur, + } +} + +// Error common error representation. +type Error struct { + // Code - Error code. + Code *string `json:"code,omitempty"` + // Message - Error message. + Message *string `json:"message,omitempty"` + // Target - Error target. + Target *string `json:"target,omitempty"` + // Details - Error details. + Details *[]ErrorDetails `json:"details,omitempty"` + // InnerError - Inner error message. + InnerError *string `json:"innerError,omitempty"` +} + +// ErrorDetails common error details representation. +type ErrorDetails struct { + // Code - Error code. + Code *string `json:"code,omitempty"` + // Target - Error target. + Target *string `json:"target,omitempty"` + // Message - Error message. + Message *string `json:"message,omitempty"` +} + +// ErrorResponse the error object. +type ErrorResponse struct { + // Error - The error details object. + Error *ErrorDetails `json:"error,omitempty"` +} + +// EvaluatedNetworkSecurityGroup results of network security group evaluation. +type EvaluatedNetworkSecurityGroup struct { + // NetworkSecurityGroupID - Network security group ID. + NetworkSecurityGroupID *string `json:"networkSecurityGroupId,omitempty"` + // AppliedTo - Resource ID of nic or subnet to which network security group is applied. + AppliedTo *string `json:"appliedTo,omitempty"` + // MatchedRule - Matched network security rule. + MatchedRule *MatchedRule `json:"matchedRule,omitempty"` + // RulesEvaluationResult - READ-ONLY; List of network security rules evaluation results. + RulesEvaluationResult *[]SecurityRulesEvaluationResult `json:"rulesEvaluationResult,omitempty"` +} + +// MarshalJSON is the custom marshaler for EvaluatedNetworkSecurityGroup. +func (ensg EvaluatedNetworkSecurityGroup) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ensg.NetworkSecurityGroupID != nil { + objectMap["networkSecurityGroupId"] = ensg.NetworkSecurityGroupID + } + if ensg.AppliedTo != nil { + objectMap["appliedTo"] = ensg.AppliedTo + } + if ensg.MatchedRule != nil { + objectMap["matchedRule"] = ensg.MatchedRule + } + return json.Marshal(objectMap) +} + +// ExpressRouteCircuit expressRouteCircuit resource. +type ExpressRouteCircuit struct { + autorest.Response `json:"-"` + // Sku - The SKU. + Sku *ExpressRouteCircuitSku `json:"sku,omitempty"` + // ExpressRouteCircuitPropertiesFormat - Properties of the express route circuit. + *ExpressRouteCircuitPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for ExpressRouteCircuit. +func (erc ExpressRouteCircuit) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if erc.Sku != nil { + objectMap["sku"] = erc.Sku + } + if erc.ExpressRouteCircuitPropertiesFormat != nil { + objectMap["properties"] = erc.ExpressRouteCircuitPropertiesFormat + } + if erc.ID != nil { + objectMap["id"] = erc.ID + } + if erc.Location != nil { + objectMap["location"] = erc.Location + } + if erc.Tags != nil { + objectMap["tags"] = erc.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ExpressRouteCircuit struct. +func (erc *ExpressRouteCircuit) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "sku": + if v != nil { + var sku ExpressRouteCircuitSku + err = json.Unmarshal(*v, &sku) + if err != nil { + return err + } + erc.Sku = &sku + } + case "properties": + if v != nil { + var expressRouteCircuitPropertiesFormat ExpressRouteCircuitPropertiesFormat + err = json.Unmarshal(*v, &expressRouteCircuitPropertiesFormat) + if err != nil { + return err + } + erc.ExpressRouteCircuitPropertiesFormat = &expressRouteCircuitPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + erc.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + erc.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + erc.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + erc.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + erc.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + erc.Tags = tags + } + } + } + + return nil +} + +// ExpressRouteCircuitArpTable the ARP table associated with the ExpressRouteCircuit. +type ExpressRouteCircuitArpTable struct { + // Age - Entry age in minutes. + Age *int32 `json:"age,omitempty"` + // Interface - Interface address. + Interface *string `json:"interface,omitempty"` + // IPAddress - The IP address. + IPAddress *string `json:"ipAddress,omitempty"` + // MacAddress - The MAC address. + MacAddress *string `json:"macAddress,omitempty"` +} + +// ExpressRouteCircuitAuthorization authorization in an ExpressRouteCircuit resource. +type ExpressRouteCircuitAuthorization struct { + autorest.Response `json:"-"` + // AuthorizationPropertiesFormat - Properties of the express route circuit authorization. + *AuthorizationPropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExpressRouteCircuitAuthorization. +func (erca ExpressRouteCircuitAuthorization) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if erca.AuthorizationPropertiesFormat != nil { + objectMap["properties"] = erca.AuthorizationPropertiesFormat + } + if erca.Name != nil { + objectMap["name"] = erca.Name + } + if erca.ID != nil { + objectMap["id"] = erca.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ExpressRouteCircuitAuthorization struct. +func (erca *ExpressRouteCircuitAuthorization) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var authorizationPropertiesFormat AuthorizationPropertiesFormat + err = json.Unmarshal(*v, &authorizationPropertiesFormat) + if err != nil { + return err + } + erca.AuthorizationPropertiesFormat = &authorizationPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + erca.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + erca.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + erca.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + erca.ID = &ID + } + } + } + + return nil +} + +// ExpressRouteCircuitAuthorizationsCreateOrUpdateFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type ExpressRouteCircuitAuthorizationsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExpressRouteCircuitAuthorizationsCreateOrUpdateFuture) Result(client ExpressRouteCircuitAuthorizationsClient) (erca ExpressRouteCircuitAuthorization, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ExpressRouteCircuitAuthorizationsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if erca.Response.Response, err = future.GetResult(sender); err == nil && erca.Response.Response.StatusCode != http.StatusNoContent { + erca, err = client.CreateOrUpdateResponder(erca.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsCreateOrUpdateFuture", "Result", erca.Response.Response, "Failure responding to request") + } + } + return +} + +// ExpressRouteCircuitAuthorizationsDeleteFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type ExpressRouteCircuitAuthorizationsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExpressRouteCircuitAuthorizationsDeleteFuture) Result(client ExpressRouteCircuitAuthorizationsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ExpressRouteCircuitAuthorizationsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// ExpressRouteCircuitConnection express Route Circuit Connection in an ExpressRouteCircuitPeering +// resource. +type ExpressRouteCircuitConnection struct { + autorest.Response `json:"-"` + // ExpressRouteCircuitConnectionPropertiesFormat - Properties of the express route circuit connection. + *ExpressRouteCircuitConnectionPropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExpressRouteCircuitConnection. +func (ercc ExpressRouteCircuitConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ercc.ExpressRouteCircuitConnectionPropertiesFormat != nil { + objectMap["properties"] = ercc.ExpressRouteCircuitConnectionPropertiesFormat + } + if ercc.Name != nil { + objectMap["name"] = ercc.Name + } + if ercc.ID != nil { + objectMap["id"] = ercc.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ExpressRouteCircuitConnection struct. +func (ercc *ExpressRouteCircuitConnection) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var expressRouteCircuitConnectionPropertiesFormat ExpressRouteCircuitConnectionPropertiesFormat + err = json.Unmarshal(*v, &expressRouteCircuitConnectionPropertiesFormat) + if err != nil { + return err + } + ercc.ExpressRouteCircuitConnectionPropertiesFormat = &expressRouteCircuitConnectionPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ercc.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + ercc.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ercc.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + ercc.ID = &ID + } + } + } + + return nil +} + +// ExpressRouteCircuitConnectionListResult response for ListConnections API service call retrieves all +// global reach connections that belongs to a Private Peering for an ExpressRouteCircuit. +type ExpressRouteCircuitConnectionListResult struct { + autorest.Response `json:"-"` + // Value - The global reach connection associated with Private Peering in an ExpressRoute Circuit. + Value *[]ExpressRouteCircuitConnection `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// ExpressRouteCircuitConnectionListResultIterator provides access to a complete listing of +// ExpressRouteCircuitConnection values. +type ExpressRouteCircuitConnectionListResultIterator struct { + i int + page ExpressRouteCircuitConnectionListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ExpressRouteCircuitConnectionListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitConnectionListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ExpressRouteCircuitConnectionListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ExpressRouteCircuitConnectionListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ExpressRouteCircuitConnectionListResultIterator) Response() ExpressRouteCircuitConnectionListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ExpressRouteCircuitConnectionListResultIterator) Value() ExpressRouteCircuitConnection { + if !iter.page.NotDone() { + return ExpressRouteCircuitConnection{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ExpressRouteCircuitConnectionListResultIterator type. +func NewExpressRouteCircuitConnectionListResultIterator(page ExpressRouteCircuitConnectionListResultPage) ExpressRouteCircuitConnectionListResultIterator { + return ExpressRouteCircuitConnectionListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (ercclr ExpressRouteCircuitConnectionListResult) IsEmpty() bool { + return ercclr.Value == nil || len(*ercclr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (ercclr ExpressRouteCircuitConnectionListResult) hasNextLink() bool { + return ercclr.NextLink != nil && len(*ercclr.NextLink) != 0 +} + +// expressRouteCircuitConnectionListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (ercclr ExpressRouteCircuitConnectionListResult) expressRouteCircuitConnectionListResultPreparer(ctx context.Context) (*http.Request, error) { + if !ercclr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(ercclr.NextLink))) +} + +// ExpressRouteCircuitConnectionListResultPage contains a page of ExpressRouteCircuitConnection values. +type ExpressRouteCircuitConnectionListResultPage struct { + fn func(context.Context, ExpressRouteCircuitConnectionListResult) (ExpressRouteCircuitConnectionListResult, error) + ercclr ExpressRouteCircuitConnectionListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ExpressRouteCircuitConnectionListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitConnectionListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.ercclr) + if err != nil { + return err + } + page.ercclr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ExpressRouteCircuitConnectionListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ExpressRouteCircuitConnectionListResultPage) NotDone() bool { + return !page.ercclr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ExpressRouteCircuitConnectionListResultPage) Response() ExpressRouteCircuitConnectionListResult { + return page.ercclr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ExpressRouteCircuitConnectionListResultPage) Values() []ExpressRouteCircuitConnection { + if page.ercclr.IsEmpty() { + return nil + } + return *page.ercclr.Value +} + +// Creates a new instance of the ExpressRouteCircuitConnectionListResultPage type. +func NewExpressRouteCircuitConnectionListResultPage(cur ExpressRouteCircuitConnectionListResult, getNextPage func(context.Context, ExpressRouteCircuitConnectionListResult) (ExpressRouteCircuitConnectionListResult, error)) ExpressRouteCircuitConnectionListResultPage { + return ExpressRouteCircuitConnectionListResultPage{ + fn: getNextPage, + ercclr: cur, + } +} + +// ExpressRouteCircuitConnectionPropertiesFormat properties of the express route circuit connection. +type ExpressRouteCircuitConnectionPropertiesFormat struct { + // ExpressRouteCircuitPeering - Reference to Express Route Circuit Private Peering Resource of the circuit initiating connection. + ExpressRouteCircuitPeering *SubResource `json:"expressRouteCircuitPeering,omitempty"` + // PeerExpressRouteCircuitPeering - Reference to Express Route Circuit Private Peering Resource of the peered circuit. + PeerExpressRouteCircuitPeering *SubResource `json:"peerExpressRouteCircuitPeering,omitempty"` + // AddressPrefix - /29 IP address space to carve out Customer addresses for tunnels. + AddressPrefix *string `json:"addressPrefix,omitempty"` + // AuthorizationKey - The authorization key. + AuthorizationKey *string `json:"authorizationKey,omitempty"` + // Ipv6CircuitConnectionConfig - IPv6 Address PrefixProperties of the express route circuit connection. + Ipv6CircuitConnectionConfig *Ipv6CircuitConnectionConfig `json:"ipv6CircuitConnectionConfig,omitempty"` + // CircuitConnectionStatus - Express Route Circuit connection state. Possible values include: 'Connected', 'Connecting', 'Disconnected' + CircuitConnectionStatus CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the express route circuit connection resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExpressRouteCircuitConnectionPropertiesFormat. +func (erccpf ExpressRouteCircuitConnectionPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if erccpf.ExpressRouteCircuitPeering != nil { + objectMap["expressRouteCircuitPeering"] = erccpf.ExpressRouteCircuitPeering + } + if erccpf.PeerExpressRouteCircuitPeering != nil { + objectMap["peerExpressRouteCircuitPeering"] = erccpf.PeerExpressRouteCircuitPeering + } + if erccpf.AddressPrefix != nil { + objectMap["addressPrefix"] = erccpf.AddressPrefix + } + if erccpf.AuthorizationKey != nil { + objectMap["authorizationKey"] = erccpf.AuthorizationKey + } + if erccpf.Ipv6CircuitConnectionConfig != nil { + objectMap["ipv6CircuitConnectionConfig"] = erccpf.Ipv6CircuitConnectionConfig + } + if erccpf.CircuitConnectionStatus != "" { + objectMap["circuitConnectionStatus"] = erccpf.CircuitConnectionStatus + } + return json.Marshal(objectMap) +} + +// ExpressRouteCircuitConnectionsCreateOrUpdateFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type ExpressRouteCircuitConnectionsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExpressRouteCircuitConnectionsCreateOrUpdateFuture) Result(client ExpressRouteCircuitConnectionsClient) (ercc ExpressRouteCircuitConnection, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ExpressRouteCircuitConnectionsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if ercc.Response.Response, err = future.GetResult(sender); err == nil && ercc.Response.Response.StatusCode != http.StatusNoContent { + ercc, err = client.CreateOrUpdateResponder(ercc.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsCreateOrUpdateFuture", "Result", ercc.Response.Response, "Failure responding to request") + } + } + return +} + +// ExpressRouteCircuitConnectionsDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type ExpressRouteCircuitConnectionsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExpressRouteCircuitConnectionsDeleteFuture) Result(client ExpressRouteCircuitConnectionsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ExpressRouteCircuitConnectionsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// ExpressRouteCircuitListResult response for ListExpressRouteCircuit API service call. +type ExpressRouteCircuitListResult struct { + autorest.Response `json:"-"` + // Value - A list of ExpressRouteCircuits in a resource group. + Value *[]ExpressRouteCircuit `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// ExpressRouteCircuitListResultIterator provides access to a complete listing of ExpressRouteCircuit +// values. +type ExpressRouteCircuitListResultIterator struct { + i int + page ExpressRouteCircuitListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ExpressRouteCircuitListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ExpressRouteCircuitListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ExpressRouteCircuitListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ExpressRouteCircuitListResultIterator) Response() ExpressRouteCircuitListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ExpressRouteCircuitListResultIterator) Value() ExpressRouteCircuit { + if !iter.page.NotDone() { + return ExpressRouteCircuit{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ExpressRouteCircuitListResultIterator type. +func NewExpressRouteCircuitListResultIterator(page ExpressRouteCircuitListResultPage) ExpressRouteCircuitListResultIterator { + return ExpressRouteCircuitListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (erclr ExpressRouteCircuitListResult) IsEmpty() bool { + return erclr.Value == nil || len(*erclr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (erclr ExpressRouteCircuitListResult) hasNextLink() bool { + return erclr.NextLink != nil && len(*erclr.NextLink) != 0 +} + +// expressRouteCircuitListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (erclr ExpressRouteCircuitListResult) expressRouteCircuitListResultPreparer(ctx context.Context) (*http.Request, error) { + if !erclr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(erclr.NextLink))) +} + +// ExpressRouteCircuitListResultPage contains a page of ExpressRouteCircuit values. +type ExpressRouteCircuitListResultPage struct { + fn func(context.Context, ExpressRouteCircuitListResult) (ExpressRouteCircuitListResult, error) + erclr ExpressRouteCircuitListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ExpressRouteCircuitListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.erclr) + if err != nil { + return err + } + page.erclr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ExpressRouteCircuitListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ExpressRouteCircuitListResultPage) NotDone() bool { + return !page.erclr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ExpressRouteCircuitListResultPage) Response() ExpressRouteCircuitListResult { + return page.erclr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ExpressRouteCircuitListResultPage) Values() []ExpressRouteCircuit { + if page.erclr.IsEmpty() { + return nil + } + return *page.erclr.Value +} + +// Creates a new instance of the ExpressRouteCircuitListResultPage type. +func NewExpressRouteCircuitListResultPage(cur ExpressRouteCircuitListResult, getNextPage func(context.Context, ExpressRouteCircuitListResult) (ExpressRouteCircuitListResult, error)) ExpressRouteCircuitListResultPage { + return ExpressRouteCircuitListResultPage{ + fn: getNextPage, + erclr: cur, + } +} + +// ExpressRouteCircuitPeering peering in an ExpressRouteCircuit resource. +type ExpressRouteCircuitPeering struct { + autorest.Response `json:"-"` + // ExpressRouteCircuitPeeringPropertiesFormat - Properties of the express route circuit peering. + *ExpressRouteCircuitPeeringPropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExpressRouteCircuitPeering. +func (ercp ExpressRouteCircuitPeering) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ercp.ExpressRouteCircuitPeeringPropertiesFormat != nil { + objectMap["properties"] = ercp.ExpressRouteCircuitPeeringPropertiesFormat + } + if ercp.Name != nil { + objectMap["name"] = ercp.Name + } + if ercp.ID != nil { + objectMap["id"] = ercp.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ExpressRouteCircuitPeering struct. +func (ercp *ExpressRouteCircuitPeering) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var expressRouteCircuitPeeringPropertiesFormat ExpressRouteCircuitPeeringPropertiesFormat + err = json.Unmarshal(*v, &expressRouteCircuitPeeringPropertiesFormat) + if err != nil { + return err + } + ercp.ExpressRouteCircuitPeeringPropertiesFormat = &expressRouteCircuitPeeringPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ercp.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + ercp.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ercp.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + ercp.ID = &ID + } + } + } + + return nil +} + +// ExpressRouteCircuitPeeringConfig specifies the peering configuration. +type ExpressRouteCircuitPeeringConfig struct { + // AdvertisedPublicPrefixes - The reference to AdvertisedPublicPrefixes. + AdvertisedPublicPrefixes *[]string `json:"advertisedPublicPrefixes,omitempty"` + // AdvertisedCommunities - The communities of bgp peering. Specified for microsoft peering. + AdvertisedCommunities *[]string `json:"advertisedCommunities,omitempty"` + // AdvertisedPublicPrefixesState - READ-ONLY; The advertised public prefix state of the Peering resource. Possible values include: 'NotConfigured', 'Configuring', 'Configured', 'ValidationNeeded' + AdvertisedPublicPrefixesState ExpressRouteCircuitPeeringAdvertisedPublicPrefixState `json:"advertisedPublicPrefixesState,omitempty"` + // LegacyMode - The legacy mode of the peering. + LegacyMode *int32 `json:"legacyMode,omitempty"` + // CustomerASN - The CustomerASN of the peering. + CustomerASN *int32 `json:"customerASN,omitempty"` + // RoutingRegistryName - The RoutingRegistryName of the configuration. + RoutingRegistryName *string `json:"routingRegistryName,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExpressRouteCircuitPeeringConfig. +func (ercpc ExpressRouteCircuitPeeringConfig) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ercpc.AdvertisedPublicPrefixes != nil { + objectMap["advertisedPublicPrefixes"] = ercpc.AdvertisedPublicPrefixes + } + if ercpc.AdvertisedCommunities != nil { + objectMap["advertisedCommunities"] = ercpc.AdvertisedCommunities + } + if ercpc.LegacyMode != nil { + objectMap["legacyMode"] = ercpc.LegacyMode + } + if ercpc.CustomerASN != nil { + objectMap["customerASN"] = ercpc.CustomerASN + } + if ercpc.RoutingRegistryName != nil { + objectMap["routingRegistryName"] = ercpc.RoutingRegistryName + } + return json.Marshal(objectMap) +} + +// ExpressRouteCircuitPeeringID expressRoute circuit peering identifier. +type ExpressRouteCircuitPeeringID struct { + // ID - The ID of the ExpressRoute circuit peering. + ID *string `json:"id,omitempty"` +} + +// ExpressRouteCircuitPeeringListResult response for ListPeering API service call retrieves all peerings +// that belong to an ExpressRouteCircuit. +type ExpressRouteCircuitPeeringListResult struct { + autorest.Response `json:"-"` + // Value - The peerings in an express route circuit. + Value *[]ExpressRouteCircuitPeering `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// ExpressRouteCircuitPeeringListResultIterator provides access to a complete listing of +// ExpressRouteCircuitPeering values. +type ExpressRouteCircuitPeeringListResultIterator struct { + i int + page ExpressRouteCircuitPeeringListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ExpressRouteCircuitPeeringListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitPeeringListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ExpressRouteCircuitPeeringListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ExpressRouteCircuitPeeringListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ExpressRouteCircuitPeeringListResultIterator) Response() ExpressRouteCircuitPeeringListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ExpressRouteCircuitPeeringListResultIterator) Value() ExpressRouteCircuitPeering { + if !iter.page.NotDone() { + return ExpressRouteCircuitPeering{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ExpressRouteCircuitPeeringListResultIterator type. +func NewExpressRouteCircuitPeeringListResultIterator(page ExpressRouteCircuitPeeringListResultPage) ExpressRouteCircuitPeeringListResultIterator { + return ExpressRouteCircuitPeeringListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (ercplr ExpressRouteCircuitPeeringListResult) IsEmpty() bool { + return ercplr.Value == nil || len(*ercplr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (ercplr ExpressRouteCircuitPeeringListResult) hasNextLink() bool { + return ercplr.NextLink != nil && len(*ercplr.NextLink) != 0 +} + +// expressRouteCircuitPeeringListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (ercplr ExpressRouteCircuitPeeringListResult) expressRouteCircuitPeeringListResultPreparer(ctx context.Context) (*http.Request, error) { + if !ercplr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(ercplr.NextLink))) +} + +// ExpressRouteCircuitPeeringListResultPage contains a page of ExpressRouteCircuitPeering values. +type ExpressRouteCircuitPeeringListResultPage struct { + fn func(context.Context, ExpressRouteCircuitPeeringListResult) (ExpressRouteCircuitPeeringListResult, error) + ercplr ExpressRouteCircuitPeeringListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ExpressRouteCircuitPeeringListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitPeeringListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.ercplr) + if err != nil { + return err + } + page.ercplr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ExpressRouteCircuitPeeringListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ExpressRouteCircuitPeeringListResultPage) NotDone() bool { + return !page.ercplr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ExpressRouteCircuitPeeringListResultPage) Response() ExpressRouteCircuitPeeringListResult { + return page.ercplr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ExpressRouteCircuitPeeringListResultPage) Values() []ExpressRouteCircuitPeering { + if page.ercplr.IsEmpty() { + return nil + } + return *page.ercplr.Value +} + +// Creates a new instance of the ExpressRouteCircuitPeeringListResultPage type. +func NewExpressRouteCircuitPeeringListResultPage(cur ExpressRouteCircuitPeeringListResult, getNextPage func(context.Context, ExpressRouteCircuitPeeringListResult) (ExpressRouteCircuitPeeringListResult, error)) ExpressRouteCircuitPeeringListResultPage { + return ExpressRouteCircuitPeeringListResultPage{ + fn: getNextPage, + ercplr: cur, + } +} + +// ExpressRouteCircuitPeeringPropertiesFormat properties of the express route circuit peering. +type ExpressRouteCircuitPeeringPropertiesFormat struct { + // PeeringType - The peering type. Possible values include: 'AzurePublicPeering', 'AzurePrivatePeering', 'MicrosoftPeering' + PeeringType ExpressRoutePeeringType `json:"peeringType,omitempty"` + // State - The peering state. Possible values include: 'ExpressRoutePeeringStateDisabled', 'ExpressRoutePeeringStateEnabled' + State ExpressRoutePeeringState `json:"state,omitempty"` + // AzureASN - The Azure ASN. + AzureASN *int32 `json:"azureASN,omitempty"` + // PeerASN - The peer ASN. + PeerASN *int64 `json:"peerASN,omitempty"` + // PrimaryPeerAddressPrefix - The primary address prefix. + PrimaryPeerAddressPrefix *string `json:"primaryPeerAddressPrefix,omitempty"` + // SecondaryPeerAddressPrefix - The secondary address prefix. + SecondaryPeerAddressPrefix *string `json:"secondaryPeerAddressPrefix,omitempty"` + // PrimaryAzurePort - The primary port. + PrimaryAzurePort *string `json:"primaryAzurePort,omitempty"` + // SecondaryAzurePort - The secondary port. + SecondaryAzurePort *string `json:"secondaryAzurePort,omitempty"` + // SharedKey - The shared key. + SharedKey *string `json:"sharedKey,omitempty"` + // VlanID - The VLAN ID. + VlanID *int32 `json:"vlanId,omitempty"` + // MicrosoftPeeringConfig - The Microsoft peering configuration. + MicrosoftPeeringConfig *ExpressRouteCircuitPeeringConfig `json:"microsoftPeeringConfig,omitempty"` + // Stats - The peering stats of express route circuit. + Stats *ExpressRouteCircuitStats `json:"stats,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the express route circuit peering resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // GatewayManagerEtag - The GatewayManager Etag. + GatewayManagerEtag *string `json:"gatewayManagerEtag,omitempty"` + // LastModifiedBy - READ-ONLY; Who was the last to modify the peering. + LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + // RouteFilter - The reference to the RouteFilter resource. + RouteFilter *SubResource `json:"routeFilter,omitempty"` + // Ipv6PeeringConfig - The IPv6 peering configuration. + Ipv6PeeringConfig *Ipv6ExpressRouteCircuitPeeringConfig `json:"ipv6PeeringConfig,omitempty"` + // ExpressRouteConnection - The ExpressRoute connection. + ExpressRouteConnection *ExpressRouteConnectionID `json:"expressRouteConnection,omitempty"` + // Connections - The list of circuit connections associated with Azure Private Peering for this circuit. + Connections *[]ExpressRouteCircuitConnection `json:"connections,omitempty"` + // PeeredConnections - READ-ONLY; The list of peered circuit connections associated with Azure Private Peering for this circuit. + PeeredConnections *[]PeerExpressRouteCircuitConnection `json:"peeredConnections,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExpressRouteCircuitPeeringPropertiesFormat. +func (ercppf ExpressRouteCircuitPeeringPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ercppf.PeeringType != "" { + objectMap["peeringType"] = ercppf.PeeringType + } + if ercppf.State != "" { + objectMap["state"] = ercppf.State + } + if ercppf.AzureASN != nil { + objectMap["azureASN"] = ercppf.AzureASN + } + if ercppf.PeerASN != nil { + objectMap["peerASN"] = ercppf.PeerASN + } + if ercppf.PrimaryPeerAddressPrefix != nil { + objectMap["primaryPeerAddressPrefix"] = ercppf.PrimaryPeerAddressPrefix + } + if ercppf.SecondaryPeerAddressPrefix != nil { + objectMap["secondaryPeerAddressPrefix"] = ercppf.SecondaryPeerAddressPrefix + } + if ercppf.PrimaryAzurePort != nil { + objectMap["primaryAzurePort"] = ercppf.PrimaryAzurePort + } + if ercppf.SecondaryAzurePort != nil { + objectMap["secondaryAzurePort"] = ercppf.SecondaryAzurePort + } + if ercppf.SharedKey != nil { + objectMap["sharedKey"] = ercppf.SharedKey + } + if ercppf.VlanID != nil { + objectMap["vlanId"] = ercppf.VlanID + } + if ercppf.MicrosoftPeeringConfig != nil { + objectMap["microsoftPeeringConfig"] = ercppf.MicrosoftPeeringConfig + } + if ercppf.Stats != nil { + objectMap["stats"] = ercppf.Stats + } + if ercppf.GatewayManagerEtag != nil { + objectMap["gatewayManagerEtag"] = ercppf.GatewayManagerEtag + } + if ercppf.RouteFilter != nil { + objectMap["routeFilter"] = ercppf.RouteFilter + } + if ercppf.Ipv6PeeringConfig != nil { + objectMap["ipv6PeeringConfig"] = ercppf.Ipv6PeeringConfig + } + if ercppf.ExpressRouteConnection != nil { + objectMap["expressRouteConnection"] = ercppf.ExpressRouteConnection + } + if ercppf.Connections != nil { + objectMap["connections"] = ercppf.Connections + } + return json.Marshal(objectMap) +} + +// ExpressRouteCircuitPeeringsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type ExpressRouteCircuitPeeringsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExpressRouteCircuitPeeringsCreateOrUpdateFuture) Result(client ExpressRouteCircuitPeeringsClient) (ercp ExpressRouteCircuitPeering, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ExpressRouteCircuitPeeringsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if ercp.Response.Response, err = future.GetResult(sender); err == nil && ercp.Response.Response.StatusCode != http.StatusNoContent { + ercp, err = client.CreateOrUpdateResponder(ercp.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsCreateOrUpdateFuture", "Result", ercp.Response.Response, "Failure responding to request") + } + } + return +} + +// ExpressRouteCircuitPeeringsDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type ExpressRouteCircuitPeeringsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExpressRouteCircuitPeeringsDeleteFuture) Result(client ExpressRouteCircuitPeeringsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ExpressRouteCircuitPeeringsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// ExpressRouteCircuitPropertiesFormat properties of ExpressRouteCircuit. +type ExpressRouteCircuitPropertiesFormat struct { + // AllowClassicOperations - Allow classic operations. + AllowClassicOperations *bool `json:"allowClassicOperations,omitempty"` + // CircuitProvisioningState - The CircuitProvisioningState state of the resource. + CircuitProvisioningState *string `json:"circuitProvisioningState,omitempty"` + // ServiceProviderProvisioningState - The ServiceProviderProvisioningState state of the resource. Possible values include: 'ServiceProviderProvisioningStateNotProvisioned', 'ServiceProviderProvisioningStateProvisioning', 'ServiceProviderProvisioningStateProvisioned', 'ServiceProviderProvisioningStateDeprovisioning' + ServiceProviderProvisioningState ServiceProviderProvisioningState `json:"serviceProviderProvisioningState,omitempty"` + // Authorizations - The list of authorizations. + Authorizations *[]ExpressRouteCircuitAuthorization `json:"authorizations,omitempty"` + // Peerings - The list of peerings. + Peerings *[]ExpressRouteCircuitPeering `json:"peerings,omitempty"` + // ServiceKey - The ServiceKey. + ServiceKey *string `json:"serviceKey,omitempty"` + // ServiceProviderNotes - The ServiceProviderNotes. + ServiceProviderNotes *string `json:"serviceProviderNotes,omitempty"` + // ServiceProviderProperties - The ServiceProviderProperties. + ServiceProviderProperties *ExpressRouteCircuitServiceProviderProperties `json:"serviceProviderProperties,omitempty"` + // ExpressRoutePort - The reference to the ExpressRoutePort resource when the circuit is provisioned on an ExpressRoutePort resource. + ExpressRoutePort *SubResource `json:"expressRoutePort,omitempty"` + // BandwidthInGbps - The bandwidth of the circuit when the circuit is provisioned on an ExpressRoutePort resource. + BandwidthInGbps *float64 `json:"bandwidthInGbps,omitempty"` + // Stag - READ-ONLY; The identifier of the circuit traffic. Outer tag for QinQ encapsulation. + Stag *int32 `json:"stag,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the express route circuit resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // GatewayManagerEtag - The GatewayManager Etag. + GatewayManagerEtag *string `json:"gatewayManagerEtag,omitempty"` + // GlobalReachEnabled - Flag denoting global reach status. + GlobalReachEnabled *bool `json:"globalReachEnabled,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExpressRouteCircuitPropertiesFormat. +func (ercpf ExpressRouteCircuitPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ercpf.AllowClassicOperations != nil { + objectMap["allowClassicOperations"] = ercpf.AllowClassicOperations + } + if ercpf.CircuitProvisioningState != nil { + objectMap["circuitProvisioningState"] = ercpf.CircuitProvisioningState + } + if ercpf.ServiceProviderProvisioningState != "" { + objectMap["serviceProviderProvisioningState"] = ercpf.ServiceProviderProvisioningState + } + if ercpf.Authorizations != nil { + objectMap["authorizations"] = ercpf.Authorizations + } + if ercpf.Peerings != nil { + objectMap["peerings"] = ercpf.Peerings + } + if ercpf.ServiceKey != nil { + objectMap["serviceKey"] = ercpf.ServiceKey + } + if ercpf.ServiceProviderNotes != nil { + objectMap["serviceProviderNotes"] = ercpf.ServiceProviderNotes + } + if ercpf.ServiceProviderProperties != nil { + objectMap["serviceProviderProperties"] = ercpf.ServiceProviderProperties + } + if ercpf.ExpressRoutePort != nil { + objectMap["expressRoutePort"] = ercpf.ExpressRoutePort + } + if ercpf.BandwidthInGbps != nil { + objectMap["bandwidthInGbps"] = ercpf.BandwidthInGbps + } + if ercpf.GatewayManagerEtag != nil { + objectMap["gatewayManagerEtag"] = ercpf.GatewayManagerEtag + } + if ercpf.GlobalReachEnabled != nil { + objectMap["globalReachEnabled"] = ercpf.GlobalReachEnabled + } + return json.Marshal(objectMap) +} + +// ExpressRouteCircuitReference reference to an express route circuit. +type ExpressRouteCircuitReference struct { + // ID - Corresponding Express Route Circuit Id. + ID *string `json:"id,omitempty"` +} + +// ExpressRouteCircuitRoutesTable the routes table associated with the ExpressRouteCircuit. +type ExpressRouteCircuitRoutesTable struct { + // NetworkProperty - IP address of a network entity. + NetworkProperty *string `json:"network,omitempty"` + // NextHop - NextHop address. + NextHop *string `json:"nextHop,omitempty"` + // LocPrf - Local preference value as set with the set local-preference route-map configuration command. + LocPrf *string `json:"locPrf,omitempty"` + // Weight - Route Weight. + Weight *int32 `json:"weight,omitempty"` + // Path - Autonomous system paths to the destination network. + Path *string `json:"path,omitempty"` +} + +// ExpressRouteCircuitRoutesTableSummary the routes table associated with the ExpressRouteCircuit. +type ExpressRouteCircuitRoutesTableSummary struct { + // Neighbor - IP address of the neighbor. + Neighbor *string `json:"neighbor,omitempty"` + // V - BGP version number spoken to the neighbor. + V *int32 `json:"v,omitempty"` + // As - Autonomous system number. + As *int32 `json:"as,omitempty"` + // UpDown - The length of time that the BGP session has been in the Established state, or the current status if not in the Established state. + UpDown *string `json:"upDown,omitempty"` + // StatePfxRcd - Current state of the BGP session, and the number of prefixes that have been received from a neighbor or peer group. + StatePfxRcd *string `json:"statePfxRcd,omitempty"` +} + +// ExpressRouteCircuitsArpTableListResult response for ListArpTable associated with the Express Route +// Circuits API. +type ExpressRouteCircuitsArpTableListResult struct { + autorest.Response `json:"-"` + // Value - A list of the ARP tables. + Value *[]ExpressRouteCircuitArpTable `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// ExpressRouteCircuitsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type ExpressRouteCircuitsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExpressRouteCircuitsCreateOrUpdateFuture) Result(client ExpressRouteCircuitsClient) (erc ExpressRouteCircuit, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ExpressRouteCircuitsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if erc.Response.Response, err = future.GetResult(sender); err == nil && erc.Response.Response.StatusCode != http.StatusNoContent { + erc, err = client.CreateOrUpdateResponder(erc.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsCreateOrUpdateFuture", "Result", erc.Response.Response, "Failure responding to request") + } + } + return +} + +// ExpressRouteCircuitsDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type ExpressRouteCircuitsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExpressRouteCircuitsDeleteFuture) Result(client ExpressRouteCircuitsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ExpressRouteCircuitsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// ExpressRouteCircuitServiceProviderProperties contains ServiceProviderProperties in an +// ExpressRouteCircuit. +type ExpressRouteCircuitServiceProviderProperties struct { + // ServiceProviderName - The serviceProviderName. + ServiceProviderName *string `json:"serviceProviderName,omitempty"` + // PeeringLocation - The peering location. + PeeringLocation *string `json:"peeringLocation,omitempty"` + // BandwidthInMbps - The BandwidthInMbps. + BandwidthInMbps *int32 `json:"bandwidthInMbps,omitempty"` +} + +// ExpressRouteCircuitSku contains SKU in an ExpressRouteCircuit. +type ExpressRouteCircuitSku struct { + // Name - The name of the SKU. + Name *string `json:"name,omitempty"` + // Tier - The tier of the SKU. Possible values include: 'ExpressRouteCircuitSkuTierStandard', 'ExpressRouteCircuitSkuTierPremium', 'ExpressRouteCircuitSkuTierBasic', 'ExpressRouteCircuitSkuTierLocal' + Tier ExpressRouteCircuitSkuTier `json:"tier,omitempty"` + // Family - The family of the SKU. Possible values include: 'UnlimitedData', 'MeteredData' + Family ExpressRouteCircuitSkuFamily `json:"family,omitempty"` +} + +// ExpressRouteCircuitsListArpTableFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type ExpressRouteCircuitsListArpTableFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExpressRouteCircuitsListArpTableFuture) Result(client ExpressRouteCircuitsClient) (ercatlr ExpressRouteCircuitsArpTableListResult, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsListArpTableFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ExpressRouteCircuitsListArpTableFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if ercatlr.Response.Response, err = future.GetResult(sender); err == nil && ercatlr.Response.Response.StatusCode != http.StatusNoContent { + ercatlr, err = client.ListArpTableResponder(ercatlr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsListArpTableFuture", "Result", ercatlr.Response.Response, "Failure responding to request") + } + } + return +} + +// ExpressRouteCircuitsListRoutesTableFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type ExpressRouteCircuitsListRoutesTableFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExpressRouteCircuitsListRoutesTableFuture) Result(client ExpressRouteCircuitsClient) (ercrtlr ExpressRouteCircuitsRoutesTableListResult, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsListRoutesTableFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ExpressRouteCircuitsListRoutesTableFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if ercrtlr.Response.Response, err = future.GetResult(sender); err == nil && ercrtlr.Response.Response.StatusCode != http.StatusNoContent { + ercrtlr, err = client.ListRoutesTableResponder(ercrtlr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsListRoutesTableFuture", "Result", ercrtlr.Response.Response, "Failure responding to request") + } + } + return +} + +// ExpressRouteCircuitsListRoutesTableSummaryFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type ExpressRouteCircuitsListRoutesTableSummaryFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExpressRouteCircuitsListRoutesTableSummaryFuture) Result(client ExpressRouteCircuitsClient) (ercrtslr ExpressRouteCircuitsRoutesTableSummaryListResult, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsListRoutesTableSummaryFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ExpressRouteCircuitsListRoutesTableSummaryFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if ercrtslr.Response.Response, err = future.GetResult(sender); err == nil && ercrtslr.Response.Response.StatusCode != http.StatusNoContent { + ercrtslr, err = client.ListRoutesTableSummaryResponder(ercrtslr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsListRoutesTableSummaryFuture", "Result", ercrtslr.Response.Response, "Failure responding to request") + } + } + return +} + +// ExpressRouteCircuitsRoutesTableListResult response for ListRoutesTable associated with the Express Route +// Circuits API. +type ExpressRouteCircuitsRoutesTableListResult struct { + autorest.Response `json:"-"` + // Value - The list of routes table. + Value *[]ExpressRouteCircuitRoutesTable `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// ExpressRouteCircuitsRoutesTableSummaryListResult response for ListRoutesTable associated with the +// Express Route Circuits API. +type ExpressRouteCircuitsRoutesTableSummaryListResult struct { + autorest.Response `json:"-"` + // Value - A list of the routes table. + Value *[]ExpressRouteCircuitRoutesTableSummary `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// ExpressRouteCircuitStats contains stats associated with the peering. +type ExpressRouteCircuitStats struct { + autorest.Response `json:"-"` + // PrimarybytesIn - The Primary BytesIn of the peering. + PrimarybytesIn *int64 `json:"primarybytesIn,omitempty"` + // PrimarybytesOut - The primary BytesOut of the peering. + PrimarybytesOut *int64 `json:"primarybytesOut,omitempty"` + // SecondarybytesIn - The secondary BytesIn of the peering. + SecondarybytesIn *int64 `json:"secondarybytesIn,omitempty"` + // SecondarybytesOut - The secondary BytesOut of the peering. + SecondarybytesOut *int64 `json:"secondarybytesOut,omitempty"` +} + +// ExpressRouteConnection expressRouteConnection resource. +type ExpressRouteConnection struct { + autorest.Response `json:"-"` + // ExpressRouteConnectionProperties - Properties of the express route connection. + *ExpressRouteConnectionProperties `json:"properties,omitempty"` + // Name - The name of the resource. + Name *string `json:"name,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExpressRouteConnection. +func (erc ExpressRouteConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if erc.ExpressRouteConnectionProperties != nil { + objectMap["properties"] = erc.ExpressRouteConnectionProperties + } + if erc.Name != nil { + objectMap["name"] = erc.Name + } + if erc.ID != nil { + objectMap["id"] = erc.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ExpressRouteConnection struct. +func (erc *ExpressRouteConnection) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var expressRouteConnectionProperties ExpressRouteConnectionProperties + err = json.Unmarshal(*v, &expressRouteConnectionProperties) + if err != nil { + return err + } + erc.ExpressRouteConnectionProperties = &expressRouteConnectionProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + erc.Name = &name + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + erc.ID = &ID + } + } + } + + return nil +} + +// ExpressRouteConnectionID the ID of the ExpressRouteConnection. +type ExpressRouteConnectionID struct { + // ID - READ-ONLY; The ID of the ExpressRouteConnection. + ID *string `json:"id,omitempty"` +} + +// ExpressRouteConnectionList expressRouteConnection list. +type ExpressRouteConnectionList struct { + autorest.Response `json:"-"` + // Value - The list of ExpressRoute connections. + Value *[]ExpressRouteConnection `json:"value,omitempty"` +} + +// ExpressRouteConnectionProperties properties of the ExpressRouteConnection subresource. +type ExpressRouteConnectionProperties struct { + // ProvisioningState - READ-ONLY; The provisioning state of the express route connection resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // ExpressRouteCircuitPeering - The ExpressRoute circuit peering. + ExpressRouteCircuitPeering *ExpressRouteCircuitPeeringID `json:"expressRouteCircuitPeering,omitempty"` + // AuthorizationKey - Authorization key to establish the connection. + AuthorizationKey *string `json:"authorizationKey,omitempty"` + // RoutingWeight - The routing weight associated to the connection. + RoutingWeight *int32 `json:"routingWeight,omitempty"` + // EnableInternetSecurity - Enable internet security. + EnableInternetSecurity *bool `json:"enableInternetSecurity,omitempty"` + // RoutingConfiguration - The Routing Configuration indicating the associated and propagated route tables on this connection. + RoutingConfiguration *RoutingConfiguration `json:"routingConfiguration,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExpressRouteConnectionProperties. +func (ercp ExpressRouteConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ercp.ExpressRouteCircuitPeering != nil { + objectMap["expressRouteCircuitPeering"] = ercp.ExpressRouteCircuitPeering + } + if ercp.AuthorizationKey != nil { + objectMap["authorizationKey"] = ercp.AuthorizationKey + } + if ercp.RoutingWeight != nil { + objectMap["routingWeight"] = ercp.RoutingWeight + } + if ercp.EnableInternetSecurity != nil { + objectMap["enableInternetSecurity"] = ercp.EnableInternetSecurity + } + if ercp.RoutingConfiguration != nil { + objectMap["routingConfiguration"] = ercp.RoutingConfiguration + } + return json.Marshal(objectMap) +} + +// ExpressRouteConnectionsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of +// a long-running operation. +type ExpressRouteConnectionsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExpressRouteConnectionsCreateOrUpdateFuture) Result(client ExpressRouteConnectionsClient) (erc ExpressRouteConnection, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ExpressRouteConnectionsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if erc.Response.Response, err = future.GetResult(sender); err == nil && erc.Response.Response.StatusCode != http.StatusNoContent { + erc, err = client.CreateOrUpdateResponder(erc.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsCreateOrUpdateFuture", "Result", erc.Response.Response, "Failure responding to request") + } + } + return +} + +// ExpressRouteConnectionsDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type ExpressRouteConnectionsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExpressRouteConnectionsDeleteFuture) Result(client ExpressRouteConnectionsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ExpressRouteConnectionsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// ExpressRouteCrossConnection expressRouteCrossConnection resource. +type ExpressRouteCrossConnection struct { + autorest.Response `json:"-"` + // ExpressRouteCrossConnectionProperties - Properties of the express route cross connection. + *ExpressRouteCrossConnectionProperties `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for ExpressRouteCrossConnection. +func (ercc ExpressRouteCrossConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ercc.ExpressRouteCrossConnectionProperties != nil { + objectMap["properties"] = ercc.ExpressRouteCrossConnectionProperties + } + if ercc.ID != nil { + objectMap["id"] = ercc.ID + } + if ercc.Location != nil { + objectMap["location"] = ercc.Location + } + if ercc.Tags != nil { + objectMap["tags"] = ercc.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ExpressRouteCrossConnection struct. +func (ercc *ExpressRouteCrossConnection) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var expressRouteCrossConnectionProperties ExpressRouteCrossConnectionProperties + err = json.Unmarshal(*v, &expressRouteCrossConnectionProperties) + if err != nil { + return err + } + ercc.ExpressRouteCrossConnectionProperties = &expressRouteCrossConnectionProperties + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + ercc.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + ercc.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ercc.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ercc.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + ercc.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + ercc.Tags = tags + } + } + } + + return nil +} + +// ExpressRouteCrossConnectionListResult response for ListExpressRouteCrossConnection API service call. +type ExpressRouteCrossConnectionListResult struct { + autorest.Response `json:"-"` + // Value - A list of ExpressRouteCrossConnection resources. + Value *[]ExpressRouteCrossConnection `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExpressRouteCrossConnectionListResult. +func (ercclr ExpressRouteCrossConnectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ercclr.Value != nil { + objectMap["value"] = ercclr.Value + } + return json.Marshal(objectMap) +} + +// ExpressRouteCrossConnectionListResultIterator provides access to a complete listing of +// ExpressRouteCrossConnection values. +type ExpressRouteCrossConnectionListResultIterator struct { + i int + page ExpressRouteCrossConnectionListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ExpressRouteCrossConnectionListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ExpressRouteCrossConnectionListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ExpressRouteCrossConnectionListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ExpressRouteCrossConnectionListResultIterator) Response() ExpressRouteCrossConnectionListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ExpressRouteCrossConnectionListResultIterator) Value() ExpressRouteCrossConnection { + if !iter.page.NotDone() { + return ExpressRouteCrossConnection{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ExpressRouteCrossConnectionListResultIterator type. +func NewExpressRouteCrossConnectionListResultIterator(page ExpressRouteCrossConnectionListResultPage) ExpressRouteCrossConnectionListResultIterator { + return ExpressRouteCrossConnectionListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (ercclr ExpressRouteCrossConnectionListResult) IsEmpty() bool { + return ercclr.Value == nil || len(*ercclr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (ercclr ExpressRouteCrossConnectionListResult) hasNextLink() bool { + return ercclr.NextLink != nil && len(*ercclr.NextLink) != 0 +} + +// expressRouteCrossConnectionListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (ercclr ExpressRouteCrossConnectionListResult) expressRouteCrossConnectionListResultPreparer(ctx context.Context) (*http.Request, error) { + if !ercclr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(ercclr.NextLink))) +} + +// ExpressRouteCrossConnectionListResultPage contains a page of ExpressRouteCrossConnection values. +type ExpressRouteCrossConnectionListResultPage struct { + fn func(context.Context, ExpressRouteCrossConnectionListResult) (ExpressRouteCrossConnectionListResult, error) + ercclr ExpressRouteCrossConnectionListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ExpressRouteCrossConnectionListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.ercclr) + if err != nil { + return err + } + page.ercclr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ExpressRouteCrossConnectionListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ExpressRouteCrossConnectionListResultPage) NotDone() bool { + return !page.ercclr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ExpressRouteCrossConnectionListResultPage) Response() ExpressRouteCrossConnectionListResult { + return page.ercclr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ExpressRouteCrossConnectionListResultPage) Values() []ExpressRouteCrossConnection { + if page.ercclr.IsEmpty() { + return nil + } + return *page.ercclr.Value +} + +// Creates a new instance of the ExpressRouteCrossConnectionListResultPage type. +func NewExpressRouteCrossConnectionListResultPage(cur ExpressRouteCrossConnectionListResult, getNextPage func(context.Context, ExpressRouteCrossConnectionListResult) (ExpressRouteCrossConnectionListResult, error)) ExpressRouteCrossConnectionListResultPage { + return ExpressRouteCrossConnectionListResultPage{ + fn: getNextPage, + ercclr: cur, + } +} + +// ExpressRouteCrossConnectionPeering peering in an ExpressRoute Cross Connection resource. +type ExpressRouteCrossConnectionPeering struct { + autorest.Response `json:"-"` + // ExpressRouteCrossConnectionPeeringProperties - Properties of the express route cross connection peering. + *ExpressRouteCrossConnectionPeeringProperties `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExpressRouteCrossConnectionPeering. +func (erccp ExpressRouteCrossConnectionPeering) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if erccp.ExpressRouteCrossConnectionPeeringProperties != nil { + objectMap["properties"] = erccp.ExpressRouteCrossConnectionPeeringProperties + } + if erccp.Name != nil { + objectMap["name"] = erccp.Name + } + if erccp.ID != nil { + objectMap["id"] = erccp.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ExpressRouteCrossConnectionPeering struct. +func (erccp *ExpressRouteCrossConnectionPeering) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var expressRouteCrossConnectionPeeringProperties ExpressRouteCrossConnectionPeeringProperties + err = json.Unmarshal(*v, &expressRouteCrossConnectionPeeringProperties) + if err != nil { + return err + } + erccp.ExpressRouteCrossConnectionPeeringProperties = &expressRouteCrossConnectionPeeringProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + erccp.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + erccp.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + erccp.ID = &ID + } + } + } + + return nil +} + +// ExpressRouteCrossConnectionPeeringList response for ListPeering API service call retrieves all peerings +// that belong to an ExpressRouteCrossConnection. +type ExpressRouteCrossConnectionPeeringList struct { + autorest.Response `json:"-"` + // Value - The peerings in an express route cross connection. + Value *[]ExpressRouteCrossConnectionPeering `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExpressRouteCrossConnectionPeeringList. +func (erccpl ExpressRouteCrossConnectionPeeringList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if erccpl.Value != nil { + objectMap["value"] = erccpl.Value + } + return json.Marshal(objectMap) +} + +// ExpressRouteCrossConnectionPeeringListIterator provides access to a complete listing of +// ExpressRouteCrossConnectionPeering values. +type ExpressRouteCrossConnectionPeeringListIterator struct { + i int + page ExpressRouteCrossConnectionPeeringListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ExpressRouteCrossConnectionPeeringListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionPeeringListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ExpressRouteCrossConnectionPeeringListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ExpressRouteCrossConnectionPeeringListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ExpressRouteCrossConnectionPeeringListIterator) Response() ExpressRouteCrossConnectionPeeringList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ExpressRouteCrossConnectionPeeringListIterator) Value() ExpressRouteCrossConnectionPeering { + if !iter.page.NotDone() { + return ExpressRouteCrossConnectionPeering{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ExpressRouteCrossConnectionPeeringListIterator type. +func NewExpressRouteCrossConnectionPeeringListIterator(page ExpressRouteCrossConnectionPeeringListPage) ExpressRouteCrossConnectionPeeringListIterator { + return ExpressRouteCrossConnectionPeeringListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (erccpl ExpressRouteCrossConnectionPeeringList) IsEmpty() bool { + return erccpl.Value == nil || len(*erccpl.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (erccpl ExpressRouteCrossConnectionPeeringList) hasNextLink() bool { + return erccpl.NextLink != nil && len(*erccpl.NextLink) != 0 +} + +// expressRouteCrossConnectionPeeringListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (erccpl ExpressRouteCrossConnectionPeeringList) expressRouteCrossConnectionPeeringListPreparer(ctx context.Context) (*http.Request, error) { + if !erccpl.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(erccpl.NextLink))) +} + +// ExpressRouteCrossConnectionPeeringListPage contains a page of ExpressRouteCrossConnectionPeering values. +type ExpressRouteCrossConnectionPeeringListPage struct { + fn func(context.Context, ExpressRouteCrossConnectionPeeringList) (ExpressRouteCrossConnectionPeeringList, error) + erccpl ExpressRouteCrossConnectionPeeringList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ExpressRouteCrossConnectionPeeringListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionPeeringListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.erccpl) + if err != nil { + return err + } + page.erccpl = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ExpressRouteCrossConnectionPeeringListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ExpressRouteCrossConnectionPeeringListPage) NotDone() bool { + return !page.erccpl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ExpressRouteCrossConnectionPeeringListPage) Response() ExpressRouteCrossConnectionPeeringList { + return page.erccpl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ExpressRouteCrossConnectionPeeringListPage) Values() []ExpressRouteCrossConnectionPeering { + if page.erccpl.IsEmpty() { + return nil + } + return *page.erccpl.Value +} + +// Creates a new instance of the ExpressRouteCrossConnectionPeeringListPage type. +func NewExpressRouteCrossConnectionPeeringListPage(cur ExpressRouteCrossConnectionPeeringList, getNextPage func(context.Context, ExpressRouteCrossConnectionPeeringList) (ExpressRouteCrossConnectionPeeringList, error)) ExpressRouteCrossConnectionPeeringListPage { + return ExpressRouteCrossConnectionPeeringListPage{ + fn: getNextPage, + erccpl: cur, + } +} + +// ExpressRouteCrossConnectionPeeringProperties properties of express route cross connection peering. +type ExpressRouteCrossConnectionPeeringProperties struct { + // PeeringType - The peering type. Possible values include: 'AzurePublicPeering', 'AzurePrivatePeering', 'MicrosoftPeering' + PeeringType ExpressRoutePeeringType `json:"peeringType,omitempty"` + // State - The peering state. Possible values include: 'ExpressRoutePeeringStateDisabled', 'ExpressRoutePeeringStateEnabled' + State ExpressRoutePeeringState `json:"state,omitempty"` + // AzureASN - READ-ONLY; The Azure ASN. + AzureASN *int32 `json:"azureASN,omitempty"` + // PeerASN - The peer ASN. + PeerASN *int64 `json:"peerASN,omitempty"` + // PrimaryPeerAddressPrefix - The primary address prefix. + PrimaryPeerAddressPrefix *string `json:"primaryPeerAddressPrefix,omitempty"` + // SecondaryPeerAddressPrefix - The secondary address prefix. + SecondaryPeerAddressPrefix *string `json:"secondaryPeerAddressPrefix,omitempty"` + // PrimaryAzurePort - READ-ONLY; The primary port. + PrimaryAzurePort *string `json:"primaryAzurePort,omitempty"` + // SecondaryAzurePort - READ-ONLY; The secondary port. + SecondaryAzurePort *string `json:"secondaryAzurePort,omitempty"` + // SharedKey - The shared key. + SharedKey *string `json:"sharedKey,omitempty"` + // VlanID - The VLAN ID. + VlanID *int32 `json:"vlanId,omitempty"` + // MicrosoftPeeringConfig - The Microsoft peering configuration. + MicrosoftPeeringConfig *ExpressRouteCircuitPeeringConfig `json:"microsoftPeeringConfig,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the express route cross connection peering resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // GatewayManagerEtag - The GatewayManager Etag. + GatewayManagerEtag *string `json:"gatewayManagerEtag,omitempty"` + // LastModifiedBy - READ-ONLY; Who was the last to modify the peering. + LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + // Ipv6PeeringConfig - The IPv6 peering configuration. + Ipv6PeeringConfig *Ipv6ExpressRouteCircuitPeeringConfig `json:"ipv6PeeringConfig,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExpressRouteCrossConnectionPeeringProperties. +func (erccpp ExpressRouteCrossConnectionPeeringProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if erccpp.PeeringType != "" { + objectMap["peeringType"] = erccpp.PeeringType + } + if erccpp.State != "" { + objectMap["state"] = erccpp.State + } + if erccpp.PeerASN != nil { + objectMap["peerASN"] = erccpp.PeerASN + } + if erccpp.PrimaryPeerAddressPrefix != nil { + objectMap["primaryPeerAddressPrefix"] = erccpp.PrimaryPeerAddressPrefix + } + if erccpp.SecondaryPeerAddressPrefix != nil { + objectMap["secondaryPeerAddressPrefix"] = erccpp.SecondaryPeerAddressPrefix + } + if erccpp.SharedKey != nil { + objectMap["sharedKey"] = erccpp.SharedKey + } + if erccpp.VlanID != nil { + objectMap["vlanId"] = erccpp.VlanID + } + if erccpp.MicrosoftPeeringConfig != nil { + objectMap["microsoftPeeringConfig"] = erccpp.MicrosoftPeeringConfig + } + if erccpp.GatewayManagerEtag != nil { + objectMap["gatewayManagerEtag"] = erccpp.GatewayManagerEtag + } + if erccpp.Ipv6PeeringConfig != nil { + objectMap["ipv6PeeringConfig"] = erccpp.Ipv6PeeringConfig + } + return json.Marshal(objectMap) +} + +// ExpressRouteCrossConnectionPeeringsCreateOrUpdateFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type ExpressRouteCrossConnectionPeeringsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExpressRouteCrossConnectionPeeringsCreateOrUpdateFuture) Result(client ExpressRouteCrossConnectionPeeringsClient) (erccp ExpressRouteCrossConnectionPeering, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ExpressRouteCrossConnectionPeeringsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if erccp.Response.Response, err = future.GetResult(sender); err == nil && erccp.Response.Response.StatusCode != http.StatusNoContent { + erccp, err = client.CreateOrUpdateResponder(erccp.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsCreateOrUpdateFuture", "Result", erccp.Response.Response, "Failure responding to request") + } + } + return +} + +// ExpressRouteCrossConnectionPeeringsDeleteFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type ExpressRouteCrossConnectionPeeringsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExpressRouteCrossConnectionPeeringsDeleteFuture) Result(client ExpressRouteCrossConnectionPeeringsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ExpressRouteCrossConnectionPeeringsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// ExpressRouteCrossConnectionProperties properties of ExpressRouteCrossConnection. +type ExpressRouteCrossConnectionProperties struct { + // PrimaryAzurePort - READ-ONLY; The name of the primary port. + PrimaryAzurePort *string `json:"primaryAzurePort,omitempty"` + // SecondaryAzurePort - READ-ONLY; The name of the secondary port. + SecondaryAzurePort *string `json:"secondaryAzurePort,omitempty"` + // STag - READ-ONLY; The identifier of the circuit traffic. + STag *int32 `json:"sTag,omitempty"` + // PeeringLocation - READ-ONLY; The peering location of the ExpressRoute circuit. + PeeringLocation *string `json:"peeringLocation,omitempty"` + // BandwidthInMbps - READ-ONLY; The circuit bandwidth In Mbps. + BandwidthInMbps *int32 `json:"bandwidthInMbps,omitempty"` + // ExpressRouteCircuit - The ExpressRouteCircuit. + ExpressRouteCircuit *ExpressRouteCircuitReference `json:"expressRouteCircuit,omitempty"` + // ServiceProviderProvisioningState - The provisioning state of the circuit in the connectivity provider system. Possible values include: 'ServiceProviderProvisioningStateNotProvisioned', 'ServiceProviderProvisioningStateProvisioning', 'ServiceProviderProvisioningStateProvisioned', 'ServiceProviderProvisioningStateDeprovisioning' + ServiceProviderProvisioningState ServiceProviderProvisioningState `json:"serviceProviderProvisioningState,omitempty"` + // ServiceProviderNotes - Additional read only notes set by the connectivity provider. + ServiceProviderNotes *string `json:"serviceProviderNotes,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the express route cross connection resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // Peerings - The list of peerings. + Peerings *[]ExpressRouteCrossConnectionPeering `json:"peerings,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExpressRouteCrossConnectionProperties. +func (erccp ExpressRouteCrossConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if erccp.ExpressRouteCircuit != nil { + objectMap["expressRouteCircuit"] = erccp.ExpressRouteCircuit + } + if erccp.ServiceProviderProvisioningState != "" { + objectMap["serviceProviderProvisioningState"] = erccp.ServiceProviderProvisioningState + } + if erccp.ServiceProviderNotes != nil { + objectMap["serviceProviderNotes"] = erccp.ServiceProviderNotes + } + if erccp.Peerings != nil { + objectMap["peerings"] = erccp.Peerings + } + return json.Marshal(objectMap) +} + +// ExpressRouteCrossConnectionRoutesTableSummary the routes table associated with the ExpressRouteCircuit. +type ExpressRouteCrossConnectionRoutesTableSummary struct { + // Neighbor - IP address of Neighbor router. + Neighbor *string `json:"neighbor,omitempty"` + // Asn - Autonomous system number. + Asn *int32 `json:"asn,omitempty"` + // UpDown - The length of time that the BGP session has been in the Established state, or the current status if not in the Established state. + UpDown *string `json:"upDown,omitempty"` + // StateOrPrefixesReceived - Current state of the BGP session, and the number of prefixes that have been received from a neighbor or peer group. + StateOrPrefixesReceived *string `json:"stateOrPrefixesReceived,omitempty"` +} + +// ExpressRouteCrossConnectionsCreateOrUpdateFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type ExpressRouteCrossConnectionsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExpressRouteCrossConnectionsCreateOrUpdateFuture) Result(client ExpressRouteCrossConnectionsClient) (ercc ExpressRouteCrossConnection, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ExpressRouteCrossConnectionsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if ercc.Response.Response, err = future.GetResult(sender); err == nil && ercc.Response.Response.StatusCode != http.StatusNoContent { + ercc, err = client.CreateOrUpdateResponder(ercc.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsCreateOrUpdateFuture", "Result", ercc.Response.Response, "Failure responding to request") + } + } + return +} + +// ExpressRouteCrossConnectionsListArpTableFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type ExpressRouteCrossConnectionsListArpTableFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExpressRouteCrossConnectionsListArpTableFuture) Result(client ExpressRouteCrossConnectionsClient) (ercatlr ExpressRouteCircuitsArpTableListResult, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsListArpTableFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ExpressRouteCrossConnectionsListArpTableFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if ercatlr.Response.Response, err = future.GetResult(sender); err == nil && ercatlr.Response.Response.StatusCode != http.StatusNoContent { + ercatlr, err = client.ListArpTableResponder(ercatlr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsListArpTableFuture", "Result", ercatlr.Response.Response, "Failure responding to request") + } + } + return +} + +// ExpressRouteCrossConnectionsListRoutesTableFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type ExpressRouteCrossConnectionsListRoutesTableFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExpressRouteCrossConnectionsListRoutesTableFuture) Result(client ExpressRouteCrossConnectionsClient) (ercrtlr ExpressRouteCircuitsRoutesTableListResult, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsListRoutesTableFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ExpressRouteCrossConnectionsListRoutesTableFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if ercrtlr.Response.Response, err = future.GetResult(sender); err == nil && ercrtlr.Response.Response.StatusCode != http.StatusNoContent { + ercrtlr, err = client.ListRoutesTableResponder(ercrtlr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsListRoutesTableFuture", "Result", ercrtlr.Response.Response, "Failure responding to request") + } + } + return +} + +// ExpressRouteCrossConnectionsListRoutesTableSummaryFuture an abstraction for monitoring and retrieving +// the results of a long-running operation. +type ExpressRouteCrossConnectionsListRoutesTableSummaryFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExpressRouteCrossConnectionsListRoutesTableSummaryFuture) Result(client ExpressRouteCrossConnectionsClient) (erccrtslr ExpressRouteCrossConnectionsRoutesTableSummaryListResult, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsListRoutesTableSummaryFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ExpressRouteCrossConnectionsListRoutesTableSummaryFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if erccrtslr.Response.Response, err = future.GetResult(sender); err == nil && erccrtslr.Response.Response.StatusCode != http.StatusNoContent { + erccrtslr, err = client.ListRoutesTableSummaryResponder(erccrtslr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsListRoutesTableSummaryFuture", "Result", erccrtslr.Response.Response, "Failure responding to request") + } + } + return +} + +// ExpressRouteCrossConnectionsRoutesTableSummaryListResult response for ListRoutesTable associated with +// the Express Route Cross Connections. +type ExpressRouteCrossConnectionsRoutesTableSummaryListResult struct { + autorest.Response `json:"-"` + // Value - A list of the routes table. + Value *[]ExpressRouteCrossConnectionRoutesTableSummary `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExpressRouteCrossConnectionsRoutesTableSummaryListResult. +func (erccrtslr ExpressRouteCrossConnectionsRoutesTableSummaryListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if erccrtslr.Value != nil { + objectMap["value"] = erccrtslr.Value + } + return json.Marshal(objectMap) +} + +// ExpressRouteGateway expressRoute gateway resource. +type ExpressRouteGateway struct { + autorest.Response `json:"-"` + // ExpressRouteGatewayProperties - Properties of the express route gateway. + *ExpressRouteGatewayProperties `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for ExpressRouteGateway. +func (erg ExpressRouteGateway) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if erg.ExpressRouteGatewayProperties != nil { + objectMap["properties"] = erg.ExpressRouteGatewayProperties + } + if erg.ID != nil { + objectMap["id"] = erg.ID + } + if erg.Location != nil { + objectMap["location"] = erg.Location + } + if erg.Tags != nil { + objectMap["tags"] = erg.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ExpressRouteGateway struct. +func (erg *ExpressRouteGateway) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var expressRouteGatewayProperties ExpressRouteGatewayProperties + err = json.Unmarshal(*v, &expressRouteGatewayProperties) + if err != nil { + return err + } + erg.ExpressRouteGatewayProperties = &expressRouteGatewayProperties + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + erg.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + erg.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + erg.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + erg.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + erg.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + erg.Tags = tags + } + } + } + + return nil +} + +// ExpressRouteGatewayList list of ExpressRoute gateways. +type ExpressRouteGatewayList struct { + autorest.Response `json:"-"` + // Value - List of ExpressRoute gateways. + Value *[]ExpressRouteGateway `json:"value,omitempty"` +} + +// ExpressRouteGatewayProperties expressRoute gateway resource properties. +type ExpressRouteGatewayProperties struct { + // AutoScaleConfiguration - Configuration for auto scaling. + AutoScaleConfiguration *ExpressRouteGatewayPropertiesAutoScaleConfiguration `json:"autoScaleConfiguration,omitempty"` + // ExpressRouteConnections - READ-ONLY; List of ExpressRoute connections to the ExpressRoute gateway. + ExpressRouteConnections *[]ExpressRouteConnection `json:"expressRouteConnections,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the express route gateway resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // VirtualHub - The Virtual Hub where the ExpressRoute gateway is or will be deployed. + VirtualHub *VirtualHubID `json:"virtualHub,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExpressRouteGatewayProperties. +func (ergp ExpressRouteGatewayProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ergp.AutoScaleConfiguration != nil { + objectMap["autoScaleConfiguration"] = ergp.AutoScaleConfiguration + } + if ergp.VirtualHub != nil { + objectMap["virtualHub"] = ergp.VirtualHub + } + return json.Marshal(objectMap) +} + +// ExpressRouteGatewayPropertiesAutoScaleConfiguration configuration for auto scaling. +type ExpressRouteGatewayPropertiesAutoScaleConfiguration struct { + // Bounds - Minimum and maximum number of scale units to deploy. + Bounds *ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds `json:"bounds,omitempty"` +} + +// ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds minimum and maximum number of scale units to +// deploy. +type ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds struct { + // Min - Minimum number of scale units deployed for ExpressRoute gateway. + Min *int32 `json:"min,omitempty"` + // Max - Maximum number of scale units deployed for ExpressRoute gateway. + Max *int32 `json:"max,omitempty"` +} + +// ExpressRouteGatewaysCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type ExpressRouteGatewaysCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExpressRouteGatewaysCreateOrUpdateFuture) Result(client ExpressRouteGatewaysClient) (erg ExpressRouteGateway, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ExpressRouteGatewaysCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if erg.Response.Response, err = future.GetResult(sender); err == nil && erg.Response.Response.StatusCode != http.StatusNoContent { + erg, err = client.CreateOrUpdateResponder(erg.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysCreateOrUpdateFuture", "Result", erg.Response.Response, "Failure responding to request") + } + } + return +} + +// ExpressRouteGatewaysDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type ExpressRouteGatewaysDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExpressRouteGatewaysDeleteFuture) Result(client ExpressRouteGatewaysClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ExpressRouteGatewaysDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// ExpressRouteLink expressRouteLink child resource definition. +type ExpressRouteLink struct { + autorest.Response `json:"-"` + // ExpressRouteLinkPropertiesFormat - ExpressRouteLink properties. + *ExpressRouteLinkPropertiesFormat `json:"properties,omitempty"` + // Name - Name of child port resource that is unique among child port resources of the parent. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExpressRouteLink. +func (erl ExpressRouteLink) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if erl.ExpressRouteLinkPropertiesFormat != nil { + objectMap["properties"] = erl.ExpressRouteLinkPropertiesFormat + } + if erl.Name != nil { + objectMap["name"] = erl.Name + } + if erl.ID != nil { + objectMap["id"] = erl.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ExpressRouteLink struct. +func (erl *ExpressRouteLink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var expressRouteLinkPropertiesFormat ExpressRouteLinkPropertiesFormat + err = json.Unmarshal(*v, &expressRouteLinkPropertiesFormat) + if err != nil { + return err + } + erl.ExpressRouteLinkPropertiesFormat = &expressRouteLinkPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + erl.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + erl.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + erl.ID = &ID + } + } + } + + return nil +} + +// ExpressRouteLinkListResult response for ListExpressRouteLinks API service call. +type ExpressRouteLinkListResult struct { + autorest.Response `json:"-"` + // Value - The list of ExpressRouteLink sub-resources. + Value *[]ExpressRouteLink `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// ExpressRouteLinkListResultIterator provides access to a complete listing of ExpressRouteLink values. +type ExpressRouteLinkListResultIterator struct { + i int + page ExpressRouteLinkListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ExpressRouteLinkListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteLinkListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ExpressRouteLinkListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ExpressRouteLinkListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ExpressRouteLinkListResultIterator) Response() ExpressRouteLinkListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ExpressRouteLinkListResultIterator) Value() ExpressRouteLink { + if !iter.page.NotDone() { + return ExpressRouteLink{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ExpressRouteLinkListResultIterator type. +func NewExpressRouteLinkListResultIterator(page ExpressRouteLinkListResultPage) ExpressRouteLinkListResultIterator { + return ExpressRouteLinkListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (erllr ExpressRouteLinkListResult) IsEmpty() bool { + return erllr.Value == nil || len(*erllr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (erllr ExpressRouteLinkListResult) hasNextLink() bool { + return erllr.NextLink != nil && len(*erllr.NextLink) != 0 +} + +// expressRouteLinkListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (erllr ExpressRouteLinkListResult) expressRouteLinkListResultPreparer(ctx context.Context) (*http.Request, error) { + if !erllr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(erllr.NextLink))) +} + +// ExpressRouteLinkListResultPage contains a page of ExpressRouteLink values. +type ExpressRouteLinkListResultPage struct { + fn func(context.Context, ExpressRouteLinkListResult) (ExpressRouteLinkListResult, error) + erllr ExpressRouteLinkListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ExpressRouteLinkListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteLinkListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.erllr) + if err != nil { + return err + } + page.erllr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ExpressRouteLinkListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ExpressRouteLinkListResultPage) NotDone() bool { + return !page.erllr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ExpressRouteLinkListResultPage) Response() ExpressRouteLinkListResult { + return page.erllr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ExpressRouteLinkListResultPage) Values() []ExpressRouteLink { + if page.erllr.IsEmpty() { + return nil + } + return *page.erllr.Value +} + +// Creates a new instance of the ExpressRouteLinkListResultPage type. +func NewExpressRouteLinkListResultPage(cur ExpressRouteLinkListResult, getNextPage func(context.Context, ExpressRouteLinkListResult) (ExpressRouteLinkListResult, error)) ExpressRouteLinkListResultPage { + return ExpressRouteLinkListResultPage{ + fn: getNextPage, + erllr: cur, + } +} + +// ExpressRouteLinkMacSecConfig expressRouteLink Mac Security Configuration. +type ExpressRouteLinkMacSecConfig struct { + // CknSecretIdentifier - Keyvault Secret Identifier URL containing Mac security CKN key. + CknSecretIdentifier *string `json:"cknSecretIdentifier,omitempty"` + // CakSecretIdentifier - Keyvault Secret Identifier URL containing Mac security CAK key. + CakSecretIdentifier *string `json:"cakSecretIdentifier,omitempty"` + // Cipher - Mac security cipher. Possible values include: 'GcmAes256', 'GcmAes128', 'GcmAesXpn128', 'GcmAesXpn256' + Cipher ExpressRouteLinkMacSecCipher `json:"cipher,omitempty"` + // SciState - Sci mode enabled/disabled. Possible values include: 'ExpressRouteLinkMacSecSciStateDisabled', 'ExpressRouteLinkMacSecSciStateEnabled' + SciState ExpressRouteLinkMacSecSciState `json:"sciState,omitempty"` +} + +// ExpressRouteLinkPropertiesFormat properties specific to ExpressRouteLink resources. +type ExpressRouteLinkPropertiesFormat struct { + // RouterName - READ-ONLY; Name of Azure router associated with physical port. + RouterName *string `json:"routerName,omitempty"` + // InterfaceName - READ-ONLY; Name of Azure router interface. + InterfaceName *string `json:"interfaceName,omitempty"` + // PatchPanelID - READ-ONLY; Mapping between physical port to patch panel port. + PatchPanelID *string `json:"patchPanelId,omitempty"` + // RackID - READ-ONLY; Mapping of physical patch panel to rack. + RackID *string `json:"rackId,omitempty"` + // ConnectorType - READ-ONLY; Physical fiber port type. Possible values include: 'LC', 'SC' + ConnectorType ExpressRouteLinkConnectorType `json:"connectorType,omitempty"` + // AdminState - Administrative state of the physical port. Possible values include: 'ExpressRouteLinkAdminStateEnabled', 'ExpressRouteLinkAdminStateDisabled' + AdminState ExpressRouteLinkAdminState `json:"adminState,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the express route link resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // MacSecConfig - MacSec configuration. + MacSecConfig *ExpressRouteLinkMacSecConfig `json:"macSecConfig,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExpressRouteLinkPropertiesFormat. +func (erlpf ExpressRouteLinkPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if erlpf.AdminState != "" { + objectMap["adminState"] = erlpf.AdminState + } + if erlpf.MacSecConfig != nil { + objectMap["macSecConfig"] = erlpf.MacSecConfig + } + return json.Marshal(objectMap) +} + +// ExpressRoutePort expressRoutePort resource definition. +type ExpressRoutePort struct { + autorest.Response `json:"-"` + // ExpressRoutePortPropertiesFormat - ExpressRoutePort properties. + *ExpressRoutePortPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Identity - The identity of ExpressRoutePort, if configured. + Identity *ManagedServiceIdentity `json:"identity,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for ExpressRoutePort. +func (erp ExpressRoutePort) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if erp.ExpressRoutePortPropertiesFormat != nil { + objectMap["properties"] = erp.ExpressRoutePortPropertiesFormat + } + if erp.Identity != nil { + objectMap["identity"] = erp.Identity + } + if erp.ID != nil { + objectMap["id"] = erp.ID + } + if erp.Location != nil { + objectMap["location"] = erp.Location + } + if erp.Tags != nil { + objectMap["tags"] = erp.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ExpressRoutePort struct. +func (erp *ExpressRoutePort) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var expressRoutePortPropertiesFormat ExpressRoutePortPropertiesFormat + err = json.Unmarshal(*v, &expressRoutePortPropertiesFormat) + if err != nil { + return err + } + erp.ExpressRoutePortPropertiesFormat = &expressRoutePortPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + erp.Etag = &etag + } + case "identity": + if v != nil { + var identity ManagedServiceIdentity + err = json.Unmarshal(*v, &identity) + if err != nil { + return err + } + erp.Identity = &identity + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + erp.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + erp.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + erp.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + erp.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + erp.Tags = tags + } + } + } + + return nil +} + +// ExpressRoutePortListResult response for ListExpressRoutePorts API service call. +type ExpressRoutePortListResult struct { + autorest.Response `json:"-"` + // Value - A list of ExpressRoutePort resources. + Value *[]ExpressRoutePort `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// ExpressRoutePortListResultIterator provides access to a complete listing of ExpressRoutePort values. +type ExpressRoutePortListResultIterator struct { + i int + page ExpressRoutePortListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ExpressRoutePortListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ExpressRoutePortListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ExpressRoutePortListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ExpressRoutePortListResultIterator) Response() ExpressRoutePortListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ExpressRoutePortListResultIterator) Value() ExpressRoutePort { + if !iter.page.NotDone() { + return ExpressRoutePort{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ExpressRoutePortListResultIterator type. +func NewExpressRoutePortListResultIterator(page ExpressRoutePortListResultPage) ExpressRoutePortListResultIterator { + return ExpressRoutePortListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (erplr ExpressRoutePortListResult) IsEmpty() bool { + return erplr.Value == nil || len(*erplr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (erplr ExpressRoutePortListResult) hasNextLink() bool { + return erplr.NextLink != nil && len(*erplr.NextLink) != 0 +} + +// expressRoutePortListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (erplr ExpressRoutePortListResult) expressRoutePortListResultPreparer(ctx context.Context) (*http.Request, error) { + if !erplr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(erplr.NextLink))) +} + +// ExpressRoutePortListResultPage contains a page of ExpressRoutePort values. +type ExpressRoutePortListResultPage struct { + fn func(context.Context, ExpressRoutePortListResult) (ExpressRoutePortListResult, error) + erplr ExpressRoutePortListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ExpressRoutePortListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.erplr) + if err != nil { + return err + } + page.erplr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ExpressRoutePortListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ExpressRoutePortListResultPage) NotDone() bool { + return !page.erplr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ExpressRoutePortListResultPage) Response() ExpressRoutePortListResult { + return page.erplr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ExpressRoutePortListResultPage) Values() []ExpressRoutePort { + if page.erplr.IsEmpty() { + return nil + } + return *page.erplr.Value +} + +// Creates a new instance of the ExpressRoutePortListResultPage type. +func NewExpressRoutePortListResultPage(cur ExpressRoutePortListResult, getNextPage func(context.Context, ExpressRoutePortListResult) (ExpressRoutePortListResult, error)) ExpressRoutePortListResultPage { + return ExpressRoutePortListResultPage{ + fn: getNextPage, + erplr: cur, + } +} + +// ExpressRoutePortPropertiesFormat properties specific to ExpressRoutePort resources. +type ExpressRoutePortPropertiesFormat struct { + // PeeringLocation - The name of the peering location that the ExpressRoutePort is mapped to physically. + PeeringLocation *string `json:"peeringLocation,omitempty"` + // BandwidthInGbps - Bandwidth of procured ports in Gbps. + BandwidthInGbps *int32 `json:"bandwidthInGbps,omitempty"` + // ProvisionedBandwidthInGbps - READ-ONLY; Aggregate Gbps of associated circuit bandwidths. + ProvisionedBandwidthInGbps *float64 `json:"provisionedBandwidthInGbps,omitempty"` + // Mtu - READ-ONLY; Maximum transmission unit of the physical port pair(s). + Mtu *string `json:"mtu,omitempty"` + // Encapsulation - Encapsulation method on physical ports. Possible values include: 'Dot1Q', 'QinQ' + Encapsulation ExpressRoutePortsEncapsulation `json:"encapsulation,omitempty"` + // EtherType - READ-ONLY; Ether type of the physical port. + EtherType *string `json:"etherType,omitempty"` + // AllocationDate - READ-ONLY; Date of the physical port allocation to be used in Letter of Authorization. + AllocationDate *string `json:"allocationDate,omitempty"` + // Links - The set of physical links of the ExpressRoutePort resource. + Links *[]ExpressRouteLink `json:"links,omitempty"` + // Circuits - READ-ONLY; Reference the ExpressRoute circuit(s) that are provisioned on this ExpressRoutePort resource. + Circuits *[]SubResource `json:"circuits,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the express route port resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // ResourceGUID - READ-ONLY; The resource GUID property of the express route port resource. + ResourceGUID *string `json:"resourceGuid,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExpressRoutePortPropertiesFormat. +func (erppf ExpressRoutePortPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if erppf.PeeringLocation != nil { + objectMap["peeringLocation"] = erppf.PeeringLocation + } + if erppf.BandwidthInGbps != nil { + objectMap["bandwidthInGbps"] = erppf.BandwidthInGbps + } + if erppf.Encapsulation != "" { + objectMap["encapsulation"] = erppf.Encapsulation + } + if erppf.Links != nil { + objectMap["links"] = erppf.Links + } + return json.Marshal(objectMap) +} + +// ExpressRoutePortsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type ExpressRoutePortsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExpressRoutePortsCreateOrUpdateFuture) Result(client ExpressRoutePortsClient) (erp ExpressRoutePort, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ExpressRoutePortsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if erp.Response.Response, err = future.GetResult(sender); err == nil && erp.Response.Response.StatusCode != http.StatusNoContent { + erp, err = client.CreateOrUpdateResponder(erp.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsCreateOrUpdateFuture", "Result", erp.Response.Response, "Failure responding to request") + } + } + return +} + +// ExpressRoutePortsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type ExpressRoutePortsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExpressRoutePortsDeleteFuture) Result(client ExpressRoutePortsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ExpressRoutePortsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// ExpressRoutePortsLocation definition of the ExpressRoutePorts peering location resource. +type ExpressRoutePortsLocation struct { + autorest.Response `json:"-"` + // ExpressRoutePortsLocationPropertiesFormat - ExpressRoutePort peering location properties. + *ExpressRoutePortsLocationPropertiesFormat `json:"properties,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for ExpressRoutePortsLocation. +func (erpl ExpressRoutePortsLocation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if erpl.ExpressRoutePortsLocationPropertiesFormat != nil { + objectMap["properties"] = erpl.ExpressRoutePortsLocationPropertiesFormat + } + if erpl.ID != nil { + objectMap["id"] = erpl.ID + } + if erpl.Location != nil { + objectMap["location"] = erpl.Location + } + if erpl.Tags != nil { + objectMap["tags"] = erpl.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ExpressRoutePortsLocation struct. +func (erpl *ExpressRoutePortsLocation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var expressRoutePortsLocationPropertiesFormat ExpressRoutePortsLocationPropertiesFormat + err = json.Unmarshal(*v, &expressRoutePortsLocationPropertiesFormat) + if err != nil { + return err + } + erpl.ExpressRoutePortsLocationPropertiesFormat = &expressRoutePortsLocationPropertiesFormat + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + erpl.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + erpl.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + erpl.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + erpl.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + erpl.Tags = tags + } + } + } + + return nil +} + +// ExpressRoutePortsLocationBandwidths real-time inventory of available ExpressRoute port bandwidths. +type ExpressRoutePortsLocationBandwidths struct { + // OfferName - READ-ONLY; Bandwidth descriptive name. + OfferName *string `json:"offerName,omitempty"` + // ValueInGbps - READ-ONLY; Bandwidth value in Gbps. + ValueInGbps *int32 `json:"valueInGbps,omitempty"` +} + +// ExpressRoutePortsLocationListResult response for ListExpressRoutePortsLocations API service call. +type ExpressRoutePortsLocationListResult struct { + autorest.Response `json:"-"` + // Value - The list of all ExpressRoutePort peering locations. + Value *[]ExpressRoutePortsLocation `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// ExpressRoutePortsLocationListResultIterator provides access to a complete listing of +// ExpressRoutePortsLocation values. +type ExpressRoutePortsLocationListResultIterator struct { + i int + page ExpressRoutePortsLocationListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ExpressRoutePortsLocationListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortsLocationListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ExpressRoutePortsLocationListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ExpressRoutePortsLocationListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ExpressRoutePortsLocationListResultIterator) Response() ExpressRoutePortsLocationListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ExpressRoutePortsLocationListResultIterator) Value() ExpressRoutePortsLocation { + if !iter.page.NotDone() { + return ExpressRoutePortsLocation{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ExpressRoutePortsLocationListResultIterator type. +func NewExpressRoutePortsLocationListResultIterator(page ExpressRoutePortsLocationListResultPage) ExpressRoutePortsLocationListResultIterator { + return ExpressRoutePortsLocationListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (erpllr ExpressRoutePortsLocationListResult) IsEmpty() bool { + return erpllr.Value == nil || len(*erpllr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (erpllr ExpressRoutePortsLocationListResult) hasNextLink() bool { + return erpllr.NextLink != nil && len(*erpllr.NextLink) != 0 +} + +// expressRoutePortsLocationListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (erpllr ExpressRoutePortsLocationListResult) expressRoutePortsLocationListResultPreparer(ctx context.Context) (*http.Request, error) { + if !erpllr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(erpllr.NextLink))) +} + +// ExpressRoutePortsLocationListResultPage contains a page of ExpressRoutePortsLocation values. +type ExpressRoutePortsLocationListResultPage struct { + fn func(context.Context, ExpressRoutePortsLocationListResult) (ExpressRoutePortsLocationListResult, error) + erpllr ExpressRoutePortsLocationListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ExpressRoutePortsLocationListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortsLocationListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.erpllr) + if err != nil { + return err + } + page.erpllr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ExpressRoutePortsLocationListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ExpressRoutePortsLocationListResultPage) NotDone() bool { + return !page.erpllr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ExpressRoutePortsLocationListResultPage) Response() ExpressRoutePortsLocationListResult { + return page.erpllr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ExpressRoutePortsLocationListResultPage) Values() []ExpressRoutePortsLocation { + if page.erpllr.IsEmpty() { + return nil + } + return *page.erpllr.Value +} + +// Creates a new instance of the ExpressRoutePortsLocationListResultPage type. +func NewExpressRoutePortsLocationListResultPage(cur ExpressRoutePortsLocationListResult, getNextPage func(context.Context, ExpressRoutePortsLocationListResult) (ExpressRoutePortsLocationListResult, error)) ExpressRoutePortsLocationListResultPage { + return ExpressRoutePortsLocationListResultPage{ + fn: getNextPage, + erpllr: cur, + } +} + +// ExpressRoutePortsLocationPropertiesFormat properties specific to ExpressRoutePorts peering location +// resources. +type ExpressRoutePortsLocationPropertiesFormat struct { + // Address - READ-ONLY; Address of peering location. + Address *string `json:"address,omitempty"` + // Contact - READ-ONLY; Contact details of peering locations. + Contact *string `json:"contact,omitempty"` + // AvailableBandwidths - The inventory of available ExpressRoutePort bandwidths. + AvailableBandwidths *[]ExpressRoutePortsLocationBandwidths `json:"availableBandwidths,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the express route port location resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExpressRoutePortsLocationPropertiesFormat. +func (erplpf ExpressRoutePortsLocationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if erplpf.AvailableBandwidths != nil { + objectMap["availableBandwidths"] = erplpf.AvailableBandwidths + } + return json.Marshal(objectMap) +} + +// ExpressRouteServiceProvider a ExpressRouteResourceProvider object. +type ExpressRouteServiceProvider struct { + // ExpressRouteServiceProviderPropertiesFormat - Properties of the express route service provider. + *ExpressRouteServiceProviderPropertiesFormat `json:"properties,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for ExpressRouteServiceProvider. +func (ersp ExpressRouteServiceProvider) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ersp.ExpressRouteServiceProviderPropertiesFormat != nil { + objectMap["properties"] = ersp.ExpressRouteServiceProviderPropertiesFormat + } + if ersp.ID != nil { + objectMap["id"] = ersp.ID + } + if ersp.Location != nil { + objectMap["location"] = ersp.Location + } + if ersp.Tags != nil { + objectMap["tags"] = ersp.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ExpressRouteServiceProvider struct. +func (ersp *ExpressRouteServiceProvider) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var expressRouteServiceProviderPropertiesFormat ExpressRouteServiceProviderPropertiesFormat + err = json.Unmarshal(*v, &expressRouteServiceProviderPropertiesFormat) + if err != nil { + return err + } + ersp.ExpressRouteServiceProviderPropertiesFormat = &expressRouteServiceProviderPropertiesFormat + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + ersp.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ersp.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ersp.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + ersp.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + ersp.Tags = tags + } + } + } + + return nil +} + +// ExpressRouteServiceProviderBandwidthsOffered contains bandwidths offered in ExpressRouteServiceProvider +// resources. +type ExpressRouteServiceProviderBandwidthsOffered struct { + // OfferName - The OfferName. + OfferName *string `json:"offerName,omitempty"` + // ValueInMbps - The ValueInMbps. + ValueInMbps *int32 `json:"valueInMbps,omitempty"` +} + +// ExpressRouteServiceProviderListResult response for the ListExpressRouteServiceProvider API service call. +type ExpressRouteServiceProviderListResult struct { + autorest.Response `json:"-"` + // Value - A list of ExpressRouteResourceProvider resources. + Value *[]ExpressRouteServiceProvider `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// ExpressRouteServiceProviderListResultIterator provides access to a complete listing of +// ExpressRouteServiceProvider values. +type ExpressRouteServiceProviderListResultIterator struct { + i int + page ExpressRouteServiceProviderListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ExpressRouteServiceProviderListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteServiceProviderListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ExpressRouteServiceProviderListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ExpressRouteServiceProviderListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ExpressRouteServiceProviderListResultIterator) Response() ExpressRouteServiceProviderListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ExpressRouteServiceProviderListResultIterator) Value() ExpressRouteServiceProvider { + if !iter.page.NotDone() { + return ExpressRouteServiceProvider{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ExpressRouteServiceProviderListResultIterator type. +func NewExpressRouteServiceProviderListResultIterator(page ExpressRouteServiceProviderListResultPage) ExpressRouteServiceProviderListResultIterator { + return ExpressRouteServiceProviderListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (ersplr ExpressRouteServiceProviderListResult) IsEmpty() bool { + return ersplr.Value == nil || len(*ersplr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (ersplr ExpressRouteServiceProviderListResult) hasNextLink() bool { + return ersplr.NextLink != nil && len(*ersplr.NextLink) != 0 +} + +// expressRouteServiceProviderListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (ersplr ExpressRouteServiceProviderListResult) expressRouteServiceProviderListResultPreparer(ctx context.Context) (*http.Request, error) { + if !ersplr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(ersplr.NextLink))) +} + +// ExpressRouteServiceProviderListResultPage contains a page of ExpressRouteServiceProvider values. +type ExpressRouteServiceProviderListResultPage struct { + fn func(context.Context, ExpressRouteServiceProviderListResult) (ExpressRouteServiceProviderListResult, error) + ersplr ExpressRouteServiceProviderListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ExpressRouteServiceProviderListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteServiceProviderListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.ersplr) + if err != nil { + return err + } + page.ersplr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ExpressRouteServiceProviderListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ExpressRouteServiceProviderListResultPage) NotDone() bool { + return !page.ersplr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ExpressRouteServiceProviderListResultPage) Response() ExpressRouteServiceProviderListResult { + return page.ersplr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ExpressRouteServiceProviderListResultPage) Values() []ExpressRouteServiceProvider { + if page.ersplr.IsEmpty() { + return nil + } + return *page.ersplr.Value +} + +// Creates a new instance of the ExpressRouteServiceProviderListResultPage type. +func NewExpressRouteServiceProviderListResultPage(cur ExpressRouteServiceProviderListResult, getNextPage func(context.Context, ExpressRouteServiceProviderListResult) (ExpressRouteServiceProviderListResult, error)) ExpressRouteServiceProviderListResultPage { + return ExpressRouteServiceProviderListResultPage{ + fn: getNextPage, + ersplr: cur, + } +} + +// ExpressRouteServiceProviderPropertiesFormat properties of ExpressRouteServiceProvider. +type ExpressRouteServiceProviderPropertiesFormat struct { + // PeeringLocations - A list of peering locations. + PeeringLocations *[]string `json:"peeringLocations,omitempty"` + // BandwidthsOffered - A list of bandwidths offered. + BandwidthsOffered *[]ExpressRouteServiceProviderBandwidthsOffered `json:"bandwidthsOffered,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the express route service provider resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExpressRouteServiceProviderPropertiesFormat. +func (ersppf ExpressRouteServiceProviderPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ersppf.PeeringLocations != nil { + objectMap["peeringLocations"] = ersppf.PeeringLocations + } + if ersppf.BandwidthsOffered != nil { + objectMap["bandwidthsOffered"] = ersppf.BandwidthsOffered + } + return json.Marshal(objectMap) +} + +// ExtendedLocation extendedLocation complex type. +type ExtendedLocation struct { + // Name - The name of the extended location. + Name *string `json:"name,omitempty"` + // Type - The type of the extended location. + Type *string `json:"type,omitempty"` +} + +// FirewallPoliciesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type FirewallPoliciesCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *FirewallPoliciesCreateOrUpdateFuture) Result(client FirewallPoliciesClient) (fp FirewallPolicy, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPoliciesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.FirewallPoliciesCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if fp.Response.Response, err = future.GetResult(sender); err == nil && fp.Response.Response.StatusCode != http.StatusNoContent { + fp, err = client.CreateOrUpdateResponder(fp.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPoliciesCreateOrUpdateFuture", "Result", fp.Response.Response, "Failure responding to request") + } + } + return +} + +// FirewallPoliciesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type FirewallPoliciesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *FirewallPoliciesDeleteFuture) Result(client FirewallPoliciesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPoliciesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.FirewallPoliciesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// FirewallPolicy firewallPolicy Resource. +type FirewallPolicy struct { + autorest.Response `json:"-"` + // FirewallPolicyPropertiesFormat - Properties of the firewall policy. + *FirewallPolicyPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Identity - The identity of the firewall policy. + Identity *ManagedServiceIdentity `json:"identity,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for FirewallPolicy. +func (fp FirewallPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if fp.FirewallPolicyPropertiesFormat != nil { + objectMap["properties"] = fp.FirewallPolicyPropertiesFormat + } + if fp.Identity != nil { + objectMap["identity"] = fp.Identity + } + if fp.ID != nil { + objectMap["id"] = fp.ID + } + if fp.Location != nil { + objectMap["location"] = fp.Location + } + if fp.Tags != nil { + objectMap["tags"] = fp.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for FirewallPolicy struct. +func (fp *FirewallPolicy) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var firewallPolicyPropertiesFormat FirewallPolicyPropertiesFormat + err = json.Unmarshal(*v, &firewallPolicyPropertiesFormat) + if err != nil { + return err + } + fp.FirewallPolicyPropertiesFormat = &firewallPolicyPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + fp.Etag = &etag + } + case "identity": + if v != nil { + var identity ManagedServiceIdentity + err = json.Unmarshal(*v, &identity) + if err != nil { + return err + } + fp.Identity = &identity + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + fp.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + fp.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fp.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + fp.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + fp.Tags = tags + } + } + } + + return nil +} + +// FirewallPolicyCertificateAuthority trusted Root certificates properties for tls. +type FirewallPolicyCertificateAuthority struct { + // KeyVaultSecretID - Secret Id of (base-64 encoded unencrypted pfx) 'Secret' or 'Certificate' object stored in KeyVault. + KeyVaultSecretID *string `json:"keyVaultSecretId,omitempty"` + // Name - Name of the CA certificate. + Name *string `json:"name,omitempty"` +} + +// FirewallPolicyFilterRuleCollection firewall Policy Filter Rule Collection. +type FirewallPolicyFilterRuleCollection struct { + // Action - The action type of a Filter rule collection. + Action *FirewallPolicyFilterRuleCollectionAction `json:"action,omitempty"` + // Rules - List of rules included in a rule collection. + Rules *[]BasicFirewallPolicyRule `json:"rules,omitempty"` + // Name - The name of the rule collection. + Name *string `json:"name,omitempty"` + // Priority - Priority of the Firewall Policy Rule Collection resource. + Priority *int32 `json:"priority,omitempty"` + // RuleCollectionType - Possible values include: 'RuleCollectionTypeFirewallPolicyRuleCollection', 'RuleCollectionTypeFirewallPolicyNatRuleCollection', 'RuleCollectionTypeFirewallPolicyFilterRuleCollection' + RuleCollectionType RuleCollectionType `json:"ruleCollectionType,omitempty"` +} + +// MarshalJSON is the custom marshaler for FirewallPolicyFilterRuleCollection. +func (fpfrc FirewallPolicyFilterRuleCollection) MarshalJSON() ([]byte, error) { + fpfrc.RuleCollectionType = RuleCollectionTypeFirewallPolicyFilterRuleCollection + objectMap := make(map[string]interface{}) + if fpfrc.Action != nil { + objectMap["action"] = fpfrc.Action + } + if fpfrc.Rules != nil { + objectMap["rules"] = fpfrc.Rules + } + if fpfrc.Name != nil { + objectMap["name"] = fpfrc.Name + } + if fpfrc.Priority != nil { + objectMap["priority"] = fpfrc.Priority + } + if fpfrc.RuleCollectionType != "" { + objectMap["ruleCollectionType"] = fpfrc.RuleCollectionType + } + return json.Marshal(objectMap) +} + +// AsFirewallPolicyNatRuleCollection is the BasicFirewallPolicyRuleCollection implementation for FirewallPolicyFilterRuleCollection. +func (fpfrc FirewallPolicyFilterRuleCollection) AsFirewallPolicyNatRuleCollection() (*FirewallPolicyNatRuleCollection, bool) { + return nil, false +} + +// AsFirewallPolicyFilterRuleCollection is the BasicFirewallPolicyRuleCollection implementation for FirewallPolicyFilterRuleCollection. +func (fpfrc FirewallPolicyFilterRuleCollection) AsFirewallPolicyFilterRuleCollection() (*FirewallPolicyFilterRuleCollection, bool) { + return &fpfrc, true +} + +// AsFirewallPolicyRuleCollection is the BasicFirewallPolicyRuleCollection implementation for FirewallPolicyFilterRuleCollection. +func (fpfrc FirewallPolicyFilterRuleCollection) AsFirewallPolicyRuleCollection() (*FirewallPolicyRuleCollection, bool) { + return nil, false +} + +// AsBasicFirewallPolicyRuleCollection is the BasicFirewallPolicyRuleCollection implementation for FirewallPolicyFilterRuleCollection. +func (fpfrc FirewallPolicyFilterRuleCollection) AsBasicFirewallPolicyRuleCollection() (BasicFirewallPolicyRuleCollection, bool) { + return &fpfrc, true +} + +// UnmarshalJSON is the custom unmarshaler for FirewallPolicyFilterRuleCollection struct. +func (fpfrc *FirewallPolicyFilterRuleCollection) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "action": + if v != nil { + var action FirewallPolicyFilterRuleCollectionAction + err = json.Unmarshal(*v, &action) + if err != nil { + return err + } + fpfrc.Action = &action + } + case "rules": + if v != nil { + rules, err := unmarshalBasicFirewallPolicyRuleArray(*v) + if err != nil { + return err + } + fpfrc.Rules = &rules + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + fpfrc.Name = &name + } + case "priority": + if v != nil { + var priority int32 + err = json.Unmarshal(*v, &priority) + if err != nil { + return err + } + fpfrc.Priority = &priority + } + case "ruleCollectionType": + if v != nil { + var ruleCollectionType RuleCollectionType + err = json.Unmarshal(*v, &ruleCollectionType) + if err != nil { + return err + } + fpfrc.RuleCollectionType = ruleCollectionType + } + } + } + + return nil +} + +// FirewallPolicyFilterRuleCollectionAction properties of the FirewallPolicyFilterRuleCollectionAction. +type FirewallPolicyFilterRuleCollectionAction struct { + // Type - The type of action. Possible values include: 'FirewallPolicyFilterRuleCollectionActionTypeAllow', 'FirewallPolicyFilterRuleCollectionActionTypeDeny' + Type FirewallPolicyFilterRuleCollectionActionType `json:"type,omitempty"` +} + +// FirewallPolicyIntrusionDetection configuration for intrusion detection mode and rules. +type FirewallPolicyIntrusionDetection struct { + // Mode - Intrusion detection general state. Possible values include: 'FirewallPolicyIntrusionDetectionStateTypeOff', 'FirewallPolicyIntrusionDetectionStateTypeAlert', 'FirewallPolicyIntrusionDetectionStateTypeDeny' + Mode FirewallPolicyIntrusionDetectionStateType `json:"mode,omitempty"` + // Configuration - Intrusion detection configuration properties. + Configuration *FirewallPolicyIntrusionDetectionConfiguration `json:"configuration,omitempty"` +} + +// FirewallPolicyIntrusionDetectionBypassTrafficSpecifications intrusion detection bypass traffic +// specification. +type FirewallPolicyIntrusionDetectionBypassTrafficSpecifications struct { + // Name - Name of the bypass traffic rule. + Name *string `json:"name,omitempty"` + // Description - Description of the bypass traffic rule. + Description *string `json:"description,omitempty"` + // Protocol - The rule bypass protocol. Possible values include: 'FirewallPolicyIntrusionDetectionProtocolTCP', 'FirewallPolicyIntrusionDetectionProtocolUDP', 'FirewallPolicyIntrusionDetectionProtocolICMP', 'FirewallPolicyIntrusionDetectionProtocolANY' + Protocol FirewallPolicyIntrusionDetectionProtocol `json:"protocol,omitempty"` + // SourceAddresses - List of source IP addresses or ranges for this rule. + SourceAddresses *[]string `json:"sourceAddresses,omitempty"` + // DestinationAddresses - List of destination IP addresses or ranges for this rule. + DestinationAddresses *[]string `json:"destinationAddresses,omitempty"` + // DestinationPorts - List of destination ports or ranges. + DestinationPorts *[]string `json:"destinationPorts,omitempty"` + // SourceIPGroups - List of source IpGroups for this rule. + SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` + // DestinationIPGroups - List of destination IpGroups for this rule. + DestinationIPGroups *[]string `json:"destinationIpGroups,omitempty"` +} + +// FirewallPolicyIntrusionDetectionConfiguration the operation for configuring intrusion detection. +type FirewallPolicyIntrusionDetectionConfiguration struct { + // SignatureOverrides - List of specific signatures states. + SignatureOverrides *[]FirewallPolicyIntrusionDetectionSignatureSpecification `json:"signatureOverrides,omitempty"` + // BypassTrafficSettings - List of rules for traffic to bypass. + BypassTrafficSettings *[]FirewallPolicyIntrusionDetectionBypassTrafficSpecifications `json:"bypassTrafficSettings,omitempty"` +} + +// FirewallPolicyIntrusionDetectionSignatureSpecification intrusion detection signatures specification +// states. +type FirewallPolicyIntrusionDetectionSignatureSpecification struct { + // ID - Signature id. + ID *string `json:"id,omitempty"` + // Mode - The signature state. Possible values include: 'FirewallPolicyIntrusionDetectionStateTypeOff', 'FirewallPolicyIntrusionDetectionStateTypeAlert', 'FirewallPolicyIntrusionDetectionStateTypeDeny' + Mode FirewallPolicyIntrusionDetectionStateType `json:"mode,omitempty"` +} + +// FirewallPolicyListResult response for ListFirewallPolicies API service call. +type FirewallPolicyListResult struct { + autorest.Response `json:"-"` + // Value - List of Firewall Policies in a resource group. + Value *[]FirewallPolicy `json:"value,omitempty"` + // NextLink - URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// FirewallPolicyListResultIterator provides access to a complete listing of FirewallPolicy values. +type FirewallPolicyListResultIterator struct { + i int + page FirewallPolicyListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *FirewallPolicyListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPolicyListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *FirewallPolicyListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter FirewallPolicyListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter FirewallPolicyListResultIterator) Response() FirewallPolicyListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter FirewallPolicyListResultIterator) Value() FirewallPolicy { + if !iter.page.NotDone() { + return FirewallPolicy{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the FirewallPolicyListResultIterator type. +func NewFirewallPolicyListResultIterator(page FirewallPolicyListResultPage) FirewallPolicyListResultIterator { + return FirewallPolicyListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (fplr FirewallPolicyListResult) IsEmpty() bool { + return fplr.Value == nil || len(*fplr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (fplr FirewallPolicyListResult) hasNextLink() bool { + return fplr.NextLink != nil && len(*fplr.NextLink) != 0 +} + +// firewallPolicyListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (fplr FirewallPolicyListResult) firewallPolicyListResultPreparer(ctx context.Context) (*http.Request, error) { + if !fplr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(fplr.NextLink))) +} + +// FirewallPolicyListResultPage contains a page of FirewallPolicy values. +type FirewallPolicyListResultPage struct { + fn func(context.Context, FirewallPolicyListResult) (FirewallPolicyListResult, error) + fplr FirewallPolicyListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *FirewallPolicyListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPolicyListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.fplr) + if err != nil { + return err + } + page.fplr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *FirewallPolicyListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page FirewallPolicyListResultPage) NotDone() bool { + return !page.fplr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page FirewallPolicyListResultPage) Response() FirewallPolicyListResult { + return page.fplr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page FirewallPolicyListResultPage) Values() []FirewallPolicy { + if page.fplr.IsEmpty() { + return nil + } + return *page.fplr.Value +} + +// Creates a new instance of the FirewallPolicyListResultPage type. +func NewFirewallPolicyListResultPage(cur FirewallPolicyListResult, getNextPage func(context.Context, FirewallPolicyListResult) (FirewallPolicyListResult, error)) FirewallPolicyListResultPage { + return FirewallPolicyListResultPage{ + fn: getNextPage, + fplr: cur, + } +} + +// FirewallPolicyNatRuleCollection firewall Policy NAT Rule Collection. +type FirewallPolicyNatRuleCollection struct { + // Action - The action type of a Nat rule collection. + Action *FirewallPolicyNatRuleCollectionAction `json:"action,omitempty"` + // Rules - List of rules included in a rule collection. + Rules *[]BasicFirewallPolicyRule `json:"rules,omitempty"` + // Name - The name of the rule collection. + Name *string `json:"name,omitempty"` + // Priority - Priority of the Firewall Policy Rule Collection resource. + Priority *int32 `json:"priority,omitempty"` + // RuleCollectionType - Possible values include: 'RuleCollectionTypeFirewallPolicyRuleCollection', 'RuleCollectionTypeFirewallPolicyNatRuleCollection', 'RuleCollectionTypeFirewallPolicyFilterRuleCollection' + RuleCollectionType RuleCollectionType `json:"ruleCollectionType,omitempty"` +} + +// MarshalJSON is the custom marshaler for FirewallPolicyNatRuleCollection. +func (fpnrc FirewallPolicyNatRuleCollection) MarshalJSON() ([]byte, error) { + fpnrc.RuleCollectionType = RuleCollectionTypeFirewallPolicyNatRuleCollection + objectMap := make(map[string]interface{}) + if fpnrc.Action != nil { + objectMap["action"] = fpnrc.Action + } + if fpnrc.Rules != nil { + objectMap["rules"] = fpnrc.Rules + } + if fpnrc.Name != nil { + objectMap["name"] = fpnrc.Name + } + if fpnrc.Priority != nil { + objectMap["priority"] = fpnrc.Priority + } + if fpnrc.RuleCollectionType != "" { + objectMap["ruleCollectionType"] = fpnrc.RuleCollectionType + } + return json.Marshal(objectMap) +} + +// AsFirewallPolicyNatRuleCollection is the BasicFirewallPolicyRuleCollection implementation for FirewallPolicyNatRuleCollection. +func (fpnrc FirewallPolicyNatRuleCollection) AsFirewallPolicyNatRuleCollection() (*FirewallPolicyNatRuleCollection, bool) { + return &fpnrc, true +} + +// AsFirewallPolicyFilterRuleCollection is the BasicFirewallPolicyRuleCollection implementation for FirewallPolicyNatRuleCollection. +func (fpnrc FirewallPolicyNatRuleCollection) AsFirewallPolicyFilterRuleCollection() (*FirewallPolicyFilterRuleCollection, bool) { + return nil, false +} + +// AsFirewallPolicyRuleCollection is the BasicFirewallPolicyRuleCollection implementation for FirewallPolicyNatRuleCollection. +func (fpnrc FirewallPolicyNatRuleCollection) AsFirewallPolicyRuleCollection() (*FirewallPolicyRuleCollection, bool) { + return nil, false +} + +// AsBasicFirewallPolicyRuleCollection is the BasicFirewallPolicyRuleCollection implementation for FirewallPolicyNatRuleCollection. +func (fpnrc FirewallPolicyNatRuleCollection) AsBasicFirewallPolicyRuleCollection() (BasicFirewallPolicyRuleCollection, bool) { + return &fpnrc, true +} + +// UnmarshalJSON is the custom unmarshaler for FirewallPolicyNatRuleCollection struct. +func (fpnrc *FirewallPolicyNatRuleCollection) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "action": + if v != nil { + var action FirewallPolicyNatRuleCollectionAction + err = json.Unmarshal(*v, &action) + if err != nil { + return err + } + fpnrc.Action = &action + } + case "rules": + if v != nil { + rules, err := unmarshalBasicFirewallPolicyRuleArray(*v) + if err != nil { + return err + } + fpnrc.Rules = &rules + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + fpnrc.Name = &name + } + case "priority": + if v != nil { + var priority int32 + err = json.Unmarshal(*v, &priority) + if err != nil { + return err + } + fpnrc.Priority = &priority + } + case "ruleCollectionType": + if v != nil { + var ruleCollectionType RuleCollectionType + err = json.Unmarshal(*v, &ruleCollectionType) + if err != nil { + return err + } + fpnrc.RuleCollectionType = ruleCollectionType + } + } + } + + return nil +} + +// FirewallPolicyNatRuleCollectionAction properties of the FirewallPolicyNatRuleCollectionAction. +type FirewallPolicyNatRuleCollectionAction struct { + // Type - The type of action. Possible values include: 'DNAT' + Type FirewallPolicyNatRuleCollectionActionType `json:"type,omitempty"` +} + +// FirewallPolicyPropertiesFormat firewall Policy definition. +type FirewallPolicyPropertiesFormat struct { + // RuleCollectionGroups - READ-ONLY; List of references to FirewallPolicyRuleCollectionGroups. + RuleCollectionGroups *[]SubResource `json:"ruleCollectionGroups,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the firewall policy resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // BasePolicy - The parent firewall policy from which rules are inherited. + BasePolicy *SubResource `json:"basePolicy,omitempty"` + // Firewalls - READ-ONLY; List of references to Azure Firewalls that this Firewall Policy is associated with. + Firewalls *[]SubResource `json:"firewalls,omitempty"` + // ChildPolicies - READ-ONLY; List of references to Child Firewall Policies. + ChildPolicies *[]SubResource `json:"childPolicies,omitempty"` + // ThreatIntelMode - The operation mode for Threat Intelligence. Possible values include: 'AzureFirewallThreatIntelModeAlert', 'AzureFirewallThreatIntelModeDeny', 'AzureFirewallThreatIntelModeOff' + ThreatIntelMode AzureFirewallThreatIntelMode `json:"threatIntelMode,omitempty"` + // ThreatIntelWhitelist - ThreatIntel Whitelist for Firewall Policy. + ThreatIntelWhitelist *FirewallPolicyThreatIntelWhitelist `json:"threatIntelWhitelist,omitempty"` + // DNSSettings - DNS Proxy Settings definition. + DNSSettings *DNSSettings `json:"dnsSettings,omitempty"` + // IntrusionDetection - The configuration for Intrusion detection. + IntrusionDetection *FirewallPolicyIntrusionDetection `json:"intrusionDetection,omitempty"` + // TransportSecurity - TLS Configuration definition. + TransportSecurity *FirewallPolicyTransportSecurity `json:"transportSecurity,omitempty"` + // Sku - The Firewall Policy SKU. + Sku *FirewallPolicySku `json:"sku,omitempty"` +} + +// MarshalJSON is the custom marshaler for FirewallPolicyPropertiesFormat. +func (fppf FirewallPolicyPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if fppf.BasePolicy != nil { + objectMap["basePolicy"] = fppf.BasePolicy + } + if fppf.ThreatIntelMode != "" { + objectMap["threatIntelMode"] = fppf.ThreatIntelMode + } + if fppf.ThreatIntelWhitelist != nil { + objectMap["threatIntelWhitelist"] = fppf.ThreatIntelWhitelist + } + if fppf.DNSSettings != nil { + objectMap["dnsSettings"] = fppf.DNSSettings + } + if fppf.IntrusionDetection != nil { + objectMap["intrusionDetection"] = fppf.IntrusionDetection + } + if fppf.TransportSecurity != nil { + objectMap["transportSecurity"] = fppf.TransportSecurity + } + if fppf.Sku != nil { + objectMap["sku"] = fppf.Sku + } + return json.Marshal(objectMap) +} + +// BasicFirewallPolicyRule properties of a rule. +type BasicFirewallPolicyRule interface { + AsApplicationRule() (*ApplicationRule, bool) + AsNatRule() (*NatRule, bool) + AsRule() (*Rule, bool) + AsFirewallPolicyRule() (*FirewallPolicyRule, bool) +} + +// FirewallPolicyRule properties of a rule. +type FirewallPolicyRule struct { + // Name - Name of the rule. + Name *string `json:"name,omitempty"` + // Description - Description of the rule. + Description *string `json:"description,omitempty"` + // RuleType - Possible values include: 'RuleTypeFirewallPolicyRule', 'RuleTypeApplicationRule', 'RuleTypeNatRule', 'RuleTypeNetworkRule' + RuleType RuleType `json:"ruleType,omitempty"` +} + +func unmarshalBasicFirewallPolicyRule(body []byte) (BasicFirewallPolicyRule, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["ruleType"] { + case string(RuleTypeApplicationRule): + var ar ApplicationRule + err := json.Unmarshal(body, &ar) + return ar, err + case string(RuleTypeNatRule): + var nr NatRule + err := json.Unmarshal(body, &nr) + return nr, err + case string(RuleTypeNetworkRule): + var r Rule + err := json.Unmarshal(body, &r) + return r, err + default: + var fpr FirewallPolicyRule + err := json.Unmarshal(body, &fpr) + return fpr, err + } +} +func unmarshalBasicFirewallPolicyRuleArray(body []byte) ([]BasicFirewallPolicyRule, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + fprArray := make([]BasicFirewallPolicyRule, len(rawMessages)) + + for index, rawMessage := range rawMessages { + fpr, err := unmarshalBasicFirewallPolicyRule(*rawMessage) + if err != nil { + return nil, err + } + fprArray[index] = fpr + } + return fprArray, nil +} + +// MarshalJSON is the custom marshaler for FirewallPolicyRule. +func (fpr FirewallPolicyRule) MarshalJSON() ([]byte, error) { + fpr.RuleType = RuleTypeFirewallPolicyRule + objectMap := make(map[string]interface{}) + if fpr.Name != nil { + objectMap["name"] = fpr.Name + } + if fpr.Description != nil { + objectMap["description"] = fpr.Description + } + if fpr.RuleType != "" { + objectMap["ruleType"] = fpr.RuleType + } + return json.Marshal(objectMap) +} + +// AsApplicationRule is the BasicFirewallPolicyRule implementation for FirewallPolicyRule. +func (fpr FirewallPolicyRule) AsApplicationRule() (*ApplicationRule, bool) { + return nil, false +} + +// AsNatRule is the BasicFirewallPolicyRule implementation for FirewallPolicyRule. +func (fpr FirewallPolicyRule) AsNatRule() (*NatRule, bool) { + return nil, false +} + +// AsRule is the BasicFirewallPolicyRule implementation for FirewallPolicyRule. +func (fpr FirewallPolicyRule) AsRule() (*Rule, bool) { + return nil, false +} + +// AsFirewallPolicyRule is the BasicFirewallPolicyRule implementation for FirewallPolicyRule. +func (fpr FirewallPolicyRule) AsFirewallPolicyRule() (*FirewallPolicyRule, bool) { + return &fpr, true +} + +// AsBasicFirewallPolicyRule is the BasicFirewallPolicyRule implementation for FirewallPolicyRule. +func (fpr FirewallPolicyRule) AsBasicFirewallPolicyRule() (BasicFirewallPolicyRule, bool) { + return &fpr, true +} + +// FirewallPolicyRuleApplicationProtocol properties of the application rule protocol. +type FirewallPolicyRuleApplicationProtocol struct { + // ProtocolType - Protocol type. Possible values include: 'FirewallPolicyRuleApplicationProtocolTypeHTTP', 'FirewallPolicyRuleApplicationProtocolTypeHTTPS' + ProtocolType FirewallPolicyRuleApplicationProtocolType `json:"protocolType,omitempty"` + // Port - Port number for the protocol, cannot be greater than 64000. + Port *int32 `json:"port,omitempty"` +} + +// BasicFirewallPolicyRuleCollection properties of the rule collection. +type BasicFirewallPolicyRuleCollection interface { + AsFirewallPolicyNatRuleCollection() (*FirewallPolicyNatRuleCollection, bool) + AsFirewallPolicyFilterRuleCollection() (*FirewallPolicyFilterRuleCollection, bool) + AsFirewallPolicyRuleCollection() (*FirewallPolicyRuleCollection, bool) +} + +// FirewallPolicyRuleCollection properties of the rule collection. +type FirewallPolicyRuleCollection struct { + // Name - The name of the rule collection. + Name *string `json:"name,omitempty"` + // Priority - Priority of the Firewall Policy Rule Collection resource. + Priority *int32 `json:"priority,omitempty"` + // RuleCollectionType - Possible values include: 'RuleCollectionTypeFirewallPolicyRuleCollection', 'RuleCollectionTypeFirewallPolicyNatRuleCollection', 'RuleCollectionTypeFirewallPolicyFilterRuleCollection' + RuleCollectionType RuleCollectionType `json:"ruleCollectionType,omitempty"` +} + +func unmarshalBasicFirewallPolicyRuleCollection(body []byte) (BasicFirewallPolicyRuleCollection, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["ruleCollectionType"] { + case string(RuleCollectionTypeFirewallPolicyNatRuleCollection): + var fpnrc FirewallPolicyNatRuleCollection + err := json.Unmarshal(body, &fpnrc) + return fpnrc, err + case string(RuleCollectionTypeFirewallPolicyFilterRuleCollection): + var fpfrc FirewallPolicyFilterRuleCollection + err := json.Unmarshal(body, &fpfrc) + return fpfrc, err + default: + var fprc FirewallPolicyRuleCollection + err := json.Unmarshal(body, &fprc) + return fprc, err + } +} +func unmarshalBasicFirewallPolicyRuleCollectionArray(body []byte) ([]BasicFirewallPolicyRuleCollection, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + fprcArray := make([]BasicFirewallPolicyRuleCollection, len(rawMessages)) + + for index, rawMessage := range rawMessages { + fprc, err := unmarshalBasicFirewallPolicyRuleCollection(*rawMessage) + if err != nil { + return nil, err + } + fprcArray[index] = fprc + } + return fprcArray, nil +} + +// MarshalJSON is the custom marshaler for FirewallPolicyRuleCollection. +func (fprc FirewallPolicyRuleCollection) MarshalJSON() ([]byte, error) { + fprc.RuleCollectionType = RuleCollectionTypeFirewallPolicyRuleCollection + objectMap := make(map[string]interface{}) + if fprc.Name != nil { + objectMap["name"] = fprc.Name + } + if fprc.Priority != nil { + objectMap["priority"] = fprc.Priority + } + if fprc.RuleCollectionType != "" { + objectMap["ruleCollectionType"] = fprc.RuleCollectionType + } + return json.Marshal(objectMap) +} + +// AsFirewallPolicyNatRuleCollection is the BasicFirewallPolicyRuleCollection implementation for FirewallPolicyRuleCollection. +func (fprc FirewallPolicyRuleCollection) AsFirewallPolicyNatRuleCollection() (*FirewallPolicyNatRuleCollection, bool) { + return nil, false +} + +// AsFirewallPolicyFilterRuleCollection is the BasicFirewallPolicyRuleCollection implementation for FirewallPolicyRuleCollection. +func (fprc FirewallPolicyRuleCollection) AsFirewallPolicyFilterRuleCollection() (*FirewallPolicyFilterRuleCollection, bool) { + return nil, false +} + +// AsFirewallPolicyRuleCollection is the BasicFirewallPolicyRuleCollection implementation for FirewallPolicyRuleCollection. +func (fprc FirewallPolicyRuleCollection) AsFirewallPolicyRuleCollection() (*FirewallPolicyRuleCollection, bool) { + return &fprc, true +} + +// AsBasicFirewallPolicyRuleCollection is the BasicFirewallPolicyRuleCollection implementation for FirewallPolicyRuleCollection. +func (fprc FirewallPolicyRuleCollection) AsBasicFirewallPolicyRuleCollection() (BasicFirewallPolicyRuleCollection, bool) { + return &fprc, true +} + +// FirewallPolicyRuleCollectionGroup rule Collection Group resource. +type FirewallPolicyRuleCollectionGroup struct { + autorest.Response `json:"-"` + // FirewallPolicyRuleCollectionGroupProperties - The properties of the firewall policy rule collection group. + *FirewallPolicyRuleCollectionGroupProperties `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Rule Group type. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for FirewallPolicyRuleCollectionGroup. +func (fprcg FirewallPolicyRuleCollectionGroup) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if fprcg.FirewallPolicyRuleCollectionGroupProperties != nil { + objectMap["properties"] = fprcg.FirewallPolicyRuleCollectionGroupProperties + } + if fprcg.Name != nil { + objectMap["name"] = fprcg.Name + } + if fprcg.ID != nil { + objectMap["id"] = fprcg.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for FirewallPolicyRuleCollectionGroup struct. +func (fprcg *FirewallPolicyRuleCollectionGroup) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var firewallPolicyRuleCollectionGroupProperties FirewallPolicyRuleCollectionGroupProperties + err = json.Unmarshal(*v, &firewallPolicyRuleCollectionGroupProperties) + if err != nil { + return err + } + fprcg.FirewallPolicyRuleCollectionGroupProperties = &firewallPolicyRuleCollectionGroupProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + fprcg.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + fprcg.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fprcg.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + fprcg.ID = &ID + } + } + } + + return nil +} + +// FirewallPolicyRuleCollectionGroupListResult response for ListFirewallPolicyRuleCollectionGroups API +// service call. +type FirewallPolicyRuleCollectionGroupListResult struct { + autorest.Response `json:"-"` + // Value - List of FirewallPolicyRuleCollectionGroups in a FirewallPolicy. + Value *[]FirewallPolicyRuleCollectionGroup `json:"value,omitempty"` + // NextLink - URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// FirewallPolicyRuleCollectionGroupListResultIterator provides access to a complete listing of +// FirewallPolicyRuleCollectionGroup values. +type FirewallPolicyRuleCollectionGroupListResultIterator struct { + i int + page FirewallPolicyRuleCollectionGroupListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *FirewallPolicyRuleCollectionGroupListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPolicyRuleCollectionGroupListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *FirewallPolicyRuleCollectionGroupListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter FirewallPolicyRuleCollectionGroupListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter FirewallPolicyRuleCollectionGroupListResultIterator) Response() FirewallPolicyRuleCollectionGroupListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter FirewallPolicyRuleCollectionGroupListResultIterator) Value() FirewallPolicyRuleCollectionGroup { + if !iter.page.NotDone() { + return FirewallPolicyRuleCollectionGroup{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the FirewallPolicyRuleCollectionGroupListResultIterator type. +func NewFirewallPolicyRuleCollectionGroupListResultIterator(page FirewallPolicyRuleCollectionGroupListResultPage) FirewallPolicyRuleCollectionGroupListResultIterator { + return FirewallPolicyRuleCollectionGroupListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (fprcglr FirewallPolicyRuleCollectionGroupListResult) IsEmpty() bool { + return fprcglr.Value == nil || len(*fprcglr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (fprcglr FirewallPolicyRuleCollectionGroupListResult) hasNextLink() bool { + return fprcglr.NextLink != nil && len(*fprcglr.NextLink) != 0 +} + +// firewallPolicyRuleCollectionGroupListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (fprcglr FirewallPolicyRuleCollectionGroupListResult) firewallPolicyRuleCollectionGroupListResultPreparer(ctx context.Context) (*http.Request, error) { + if !fprcglr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(fprcglr.NextLink))) +} + +// FirewallPolicyRuleCollectionGroupListResultPage contains a page of FirewallPolicyRuleCollectionGroup +// values. +type FirewallPolicyRuleCollectionGroupListResultPage struct { + fn func(context.Context, FirewallPolicyRuleCollectionGroupListResult) (FirewallPolicyRuleCollectionGroupListResult, error) + fprcglr FirewallPolicyRuleCollectionGroupListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *FirewallPolicyRuleCollectionGroupListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPolicyRuleCollectionGroupListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.fprcglr) + if err != nil { + return err + } + page.fprcglr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *FirewallPolicyRuleCollectionGroupListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page FirewallPolicyRuleCollectionGroupListResultPage) NotDone() bool { + return !page.fprcglr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page FirewallPolicyRuleCollectionGroupListResultPage) Response() FirewallPolicyRuleCollectionGroupListResult { + return page.fprcglr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page FirewallPolicyRuleCollectionGroupListResultPage) Values() []FirewallPolicyRuleCollectionGroup { + if page.fprcglr.IsEmpty() { + return nil + } + return *page.fprcglr.Value +} + +// Creates a new instance of the FirewallPolicyRuleCollectionGroupListResultPage type. +func NewFirewallPolicyRuleCollectionGroupListResultPage(cur FirewallPolicyRuleCollectionGroupListResult, getNextPage func(context.Context, FirewallPolicyRuleCollectionGroupListResult) (FirewallPolicyRuleCollectionGroupListResult, error)) FirewallPolicyRuleCollectionGroupListResultPage { + return FirewallPolicyRuleCollectionGroupListResultPage{ + fn: getNextPage, + fprcglr: cur, + } +} + +// FirewallPolicyRuleCollectionGroupProperties properties of the rule collection group. +type FirewallPolicyRuleCollectionGroupProperties struct { + // Priority - Priority of the Firewall Policy Rule Collection Group resource. + Priority *int32 `json:"priority,omitempty"` + // RuleCollections - Group of Firewall Policy rule collections. + RuleCollections *[]BasicFirewallPolicyRuleCollection `json:"ruleCollections,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the firewall policy rule collection group resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for FirewallPolicyRuleCollectionGroupProperties. +func (fprcgp FirewallPolicyRuleCollectionGroupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if fprcgp.Priority != nil { + objectMap["priority"] = fprcgp.Priority + } + if fprcgp.RuleCollections != nil { + objectMap["ruleCollections"] = fprcgp.RuleCollections + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for FirewallPolicyRuleCollectionGroupProperties struct. +func (fprcgp *FirewallPolicyRuleCollectionGroupProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "priority": + if v != nil { + var priority int32 + err = json.Unmarshal(*v, &priority) + if err != nil { + return err + } + fprcgp.Priority = &priority + } + case "ruleCollections": + if v != nil { + ruleCollections, err := unmarshalBasicFirewallPolicyRuleCollectionArray(*v) + if err != nil { + return err + } + fprcgp.RuleCollections = &ruleCollections + } + case "provisioningState": + if v != nil { + var provisioningState ProvisioningState + err = json.Unmarshal(*v, &provisioningState) + if err != nil { + return err + } + fprcgp.ProvisioningState = provisioningState + } + } + } + + return nil +} + +// FirewallPolicyRuleCollectionGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type FirewallPolicyRuleCollectionGroupsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *FirewallPolicyRuleCollectionGroupsCreateOrUpdateFuture) Result(client FirewallPolicyRuleCollectionGroupsClient) (fprcg FirewallPolicyRuleCollectionGroup, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleCollectionGroupsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.FirewallPolicyRuleCollectionGroupsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if fprcg.Response.Response, err = future.GetResult(sender); err == nil && fprcg.Response.Response.StatusCode != http.StatusNoContent { + fprcg, err = client.CreateOrUpdateResponder(fprcg.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleCollectionGroupsCreateOrUpdateFuture", "Result", fprcg.Response.Response, "Failure responding to request") + } + } + return +} + +// FirewallPolicyRuleCollectionGroupsDeleteFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type FirewallPolicyRuleCollectionGroupsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *FirewallPolicyRuleCollectionGroupsDeleteFuture) Result(client FirewallPolicyRuleCollectionGroupsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleCollectionGroupsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.FirewallPolicyRuleCollectionGroupsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// FirewallPolicySku SKU of Firewall policy. +type FirewallPolicySku struct { + // Tier - Tier of Firewall Policy. Possible values include: 'FirewallPolicySkuTierStandard', 'FirewallPolicySkuTierPremium' + Tier FirewallPolicySkuTier `json:"tier,omitempty"` +} + +// FirewallPolicyThreatIntelWhitelist threatIntel Whitelist for Firewall Policy. +type FirewallPolicyThreatIntelWhitelist struct { + // IPAddresses - List of IP addresses for the ThreatIntel Whitelist. + IPAddresses *[]string `json:"ipAddresses,omitempty"` + // Fqdns - List of FQDNs for the ThreatIntel Whitelist. + Fqdns *[]string `json:"fqdns,omitempty"` +} + +// FirewallPolicyTransportSecurity configuration needed to perform TLS termination & initiation. +type FirewallPolicyTransportSecurity struct { + // CertificateAuthority - The CA used for intermediate CA generation. + CertificateAuthority *FirewallPolicyCertificateAuthority `json:"certificateAuthority,omitempty"` +} + +// FlowLog a flow log resource. +type FlowLog struct { + autorest.Response `json:"-"` + // FlowLogPropertiesFormat - Properties of the flow log. + *FlowLogPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for FlowLog. +func (fl FlowLog) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if fl.FlowLogPropertiesFormat != nil { + objectMap["properties"] = fl.FlowLogPropertiesFormat + } + if fl.ID != nil { + objectMap["id"] = fl.ID + } + if fl.Location != nil { + objectMap["location"] = fl.Location + } + if fl.Tags != nil { + objectMap["tags"] = fl.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for FlowLog struct. +func (fl *FlowLog) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var flowLogPropertiesFormat FlowLogPropertiesFormat + err = json.Unmarshal(*v, &flowLogPropertiesFormat) + if err != nil { + return err + } + fl.FlowLogPropertiesFormat = &flowLogPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + fl.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + fl.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + fl.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fl.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + fl.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + fl.Tags = tags + } + } + } + + return nil +} + +// FlowLogFormatParameters parameters that define the flow log format. +type FlowLogFormatParameters struct { + // Type - The file type of flow log. Possible values include: 'JSON' + Type FlowLogFormatType `json:"type,omitempty"` + // Version - The version (revision) of the flow log. + Version *int32 `json:"version,omitempty"` +} + +// FlowLogInformation information on the configuration of flow log and traffic analytics (optional) . +type FlowLogInformation struct { + autorest.Response `json:"-"` + // TargetResourceID - The ID of the resource to configure for flow log and traffic analytics (optional) . + TargetResourceID *string `json:"targetResourceId,omitempty"` + // FlowLogProperties - Properties of the flow log. + *FlowLogProperties `json:"properties,omitempty"` + // FlowAnalyticsConfiguration - Parameters that define the configuration of traffic analytics. + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` +} + +// MarshalJSON is the custom marshaler for FlowLogInformation. +func (fli FlowLogInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if fli.TargetResourceID != nil { + objectMap["targetResourceId"] = fli.TargetResourceID + } + if fli.FlowLogProperties != nil { + objectMap["properties"] = fli.FlowLogProperties + } + if fli.FlowAnalyticsConfiguration != nil { + objectMap["flowAnalyticsConfiguration"] = fli.FlowAnalyticsConfiguration + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for FlowLogInformation struct. +func (fli *FlowLogInformation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "targetResourceId": + if v != nil { + var targetResourceID string + err = json.Unmarshal(*v, &targetResourceID) + if err != nil { + return err + } + fli.TargetResourceID = &targetResourceID + } + case "properties": + if v != nil { + var flowLogProperties FlowLogProperties + err = json.Unmarshal(*v, &flowLogProperties) + if err != nil { + return err + } + fli.FlowLogProperties = &flowLogProperties + } + case "flowAnalyticsConfiguration": + if v != nil { + var flowAnalyticsConfiguration TrafficAnalyticsProperties + err = json.Unmarshal(*v, &flowAnalyticsConfiguration) + if err != nil { + return err + } + fli.FlowAnalyticsConfiguration = &flowAnalyticsConfiguration + } + } + } + + return nil +} + +// FlowLogListResult list of flow logs. +type FlowLogListResult struct { + autorest.Response `json:"-"` + // Value - Information about flow log resource. + Value *[]FlowLog `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for FlowLogListResult. +func (fllr FlowLogListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if fllr.Value != nil { + objectMap["value"] = fllr.Value + } + return json.Marshal(objectMap) +} + +// FlowLogListResultIterator provides access to a complete listing of FlowLog values. +type FlowLogListResultIterator struct { + i int + page FlowLogListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *FlowLogListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FlowLogListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *FlowLogListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter FlowLogListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter FlowLogListResultIterator) Response() FlowLogListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter FlowLogListResultIterator) Value() FlowLog { + if !iter.page.NotDone() { + return FlowLog{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the FlowLogListResultIterator type. +func NewFlowLogListResultIterator(page FlowLogListResultPage) FlowLogListResultIterator { + return FlowLogListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (fllr FlowLogListResult) IsEmpty() bool { + return fllr.Value == nil || len(*fllr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (fllr FlowLogListResult) hasNextLink() bool { + return fllr.NextLink != nil && len(*fllr.NextLink) != 0 +} + +// flowLogListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (fllr FlowLogListResult) flowLogListResultPreparer(ctx context.Context) (*http.Request, error) { + if !fllr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(fllr.NextLink))) +} + +// FlowLogListResultPage contains a page of FlowLog values. +type FlowLogListResultPage struct { + fn func(context.Context, FlowLogListResult) (FlowLogListResult, error) + fllr FlowLogListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *FlowLogListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FlowLogListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.fllr) + if err != nil { + return err + } + page.fllr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *FlowLogListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page FlowLogListResultPage) NotDone() bool { + return !page.fllr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page FlowLogListResultPage) Response() FlowLogListResult { + return page.fllr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page FlowLogListResultPage) Values() []FlowLog { + if page.fllr.IsEmpty() { + return nil + } + return *page.fllr.Value +} + +// Creates a new instance of the FlowLogListResultPage type. +func NewFlowLogListResultPage(cur FlowLogListResult, getNextPage func(context.Context, FlowLogListResult) (FlowLogListResult, error)) FlowLogListResultPage { + return FlowLogListResultPage{ + fn: getNextPage, + fllr: cur, + } +} + +// FlowLogProperties parameters that define the configuration of flow log. +type FlowLogProperties struct { + // StorageID - ID of the storage account which is used to store the flow log. + StorageID *string `json:"storageId,omitempty"` + // Enabled - Flag to enable/disable flow logging. + Enabled *bool `json:"enabled,omitempty"` + // RetentionPolicy - Parameters that define the retention policy for flow log. + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + // Format - Parameters that define the flow log format. + Format *FlowLogFormatParameters `json:"format,omitempty"` +} + +// FlowLogPropertiesFormat parameters that define the configuration of flow log. +type FlowLogPropertiesFormat struct { + // TargetResourceID - ID of network security group to which flow log will be applied. + TargetResourceID *string `json:"targetResourceId,omitempty"` + // TargetResourceGUID - READ-ONLY; Guid of network security group to which flow log will be applied. + TargetResourceGUID *string `json:"targetResourceGuid,omitempty"` + // StorageID - ID of the storage account which is used to store the flow log. + StorageID *string `json:"storageId,omitempty"` + // Enabled - Flag to enable/disable flow logging. + Enabled *bool `json:"enabled,omitempty"` + // RetentionPolicy - Parameters that define the retention policy for flow log. + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + // Format - Parameters that define the flow log format. + Format *FlowLogFormatParameters `json:"format,omitempty"` + // FlowAnalyticsConfiguration - Parameters that define the configuration of traffic analytics. + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the flow log. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for FlowLogPropertiesFormat. +func (flpf FlowLogPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if flpf.TargetResourceID != nil { + objectMap["targetResourceId"] = flpf.TargetResourceID + } + if flpf.StorageID != nil { + objectMap["storageId"] = flpf.StorageID + } + if flpf.Enabled != nil { + objectMap["enabled"] = flpf.Enabled + } + if flpf.RetentionPolicy != nil { + objectMap["retentionPolicy"] = flpf.RetentionPolicy + } + if flpf.Format != nil { + objectMap["format"] = flpf.Format + } + if flpf.FlowAnalyticsConfiguration != nil { + objectMap["flowAnalyticsConfiguration"] = flpf.FlowAnalyticsConfiguration + } + return json.Marshal(objectMap) +} + +// FlowLogsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type FlowLogsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *FlowLogsCreateOrUpdateFuture) Result(client FlowLogsClient) (fl FlowLog, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FlowLogsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.FlowLogsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if fl.Response.Response, err = future.GetResult(sender); err == nil && fl.Response.Response.StatusCode != http.StatusNoContent { + fl, err = client.CreateOrUpdateResponder(fl.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FlowLogsCreateOrUpdateFuture", "Result", fl.Response.Response, "Failure responding to request") + } + } + return +} + +// FlowLogsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type FlowLogsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *FlowLogsDeleteFuture) Result(client FlowLogsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.FlowLogsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.FlowLogsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// FlowLogStatusParameters parameters that define a resource to query flow log and traffic analytics +// (optional) status. +type FlowLogStatusParameters struct { + // TargetResourceID - The target resource where getting the flow log and traffic analytics (optional) status. + TargetResourceID *string `json:"targetResourceId,omitempty"` +} + +// FrontendIPConfiguration frontend IP address of the load balancer. +type FrontendIPConfiguration struct { + autorest.Response `json:"-"` + // FrontendIPConfigurationPropertiesFormat - Properties of the load balancer probe. + *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // Zones - A list of availability zones denoting the IP allocated for the resource needs to come from. + Zones *[]string `json:"zones,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for FrontendIPConfiguration. +func (fic FrontendIPConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if fic.FrontendIPConfigurationPropertiesFormat != nil { + objectMap["properties"] = fic.FrontendIPConfigurationPropertiesFormat + } + if fic.Name != nil { + objectMap["name"] = fic.Name + } + if fic.Zones != nil { + objectMap["zones"] = fic.Zones + } + if fic.ID != nil { + objectMap["id"] = fic.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for FrontendIPConfiguration struct. +func (fic *FrontendIPConfiguration) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var frontendIPConfigurationPropertiesFormat FrontendIPConfigurationPropertiesFormat + err = json.Unmarshal(*v, &frontendIPConfigurationPropertiesFormat) + if err != nil { + return err + } + fic.FrontendIPConfigurationPropertiesFormat = &frontendIPConfigurationPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + fic.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + fic.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fic.Type = &typeVar + } + case "zones": + if v != nil { + var zones []string + err = json.Unmarshal(*v, &zones) + if err != nil { + return err + } + fic.Zones = &zones + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + fic.ID = &ID + } + } + } + + return nil +} + +// FrontendIPConfigurationPropertiesFormat properties of Frontend IP Configuration of the load balancer. +type FrontendIPConfigurationPropertiesFormat struct { + // InboundNatRules - READ-ONLY; An array of references to inbound rules that use this frontend IP. + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + // InboundNatPools - READ-ONLY; An array of references to inbound pools that use this frontend IP. + InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` + // OutboundRules - READ-ONLY; An array of references to outbound rules that use this frontend IP. + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + // LoadBalancingRules - READ-ONLY; An array of references to load balancing rules that use this frontend IP. + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + // PrivateIPAddress - The private IP address of the IP configuration. + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + // PrivateIPAllocationMethod - The Private IP allocation method. Possible values include: 'Static', 'Dynamic' + PrivateIPAllocationMethod IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + // PrivateIPAddressVersion - Whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values include: 'IPv4', 'IPv6' + PrivateIPAddressVersion IPVersion `json:"privateIPAddressVersion,omitempty"` + // Subnet - The reference to the subnet resource. + Subnet *Subnet `json:"subnet,omitempty"` + // PublicIPAddress - The reference to the Public IP resource. + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + // PublicIPPrefix - The reference to the Public IP Prefix resource. + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the frontend IP configuration resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for FrontendIPConfigurationPropertiesFormat. +func (ficpf FrontendIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ficpf.PrivateIPAddress != nil { + objectMap["privateIPAddress"] = ficpf.PrivateIPAddress + } + if ficpf.PrivateIPAllocationMethod != "" { + objectMap["privateIPAllocationMethod"] = ficpf.PrivateIPAllocationMethod + } + if ficpf.PrivateIPAddressVersion != "" { + objectMap["privateIPAddressVersion"] = ficpf.PrivateIPAddressVersion + } + if ficpf.Subnet != nil { + objectMap["subnet"] = ficpf.Subnet + } + if ficpf.PublicIPAddress != nil { + objectMap["publicIPAddress"] = ficpf.PublicIPAddress + } + if ficpf.PublicIPPrefix != nil { + objectMap["publicIPPrefix"] = ficpf.PublicIPPrefix + } + return json.Marshal(objectMap) +} + +// GatewayRoute gateway routing details. +type GatewayRoute struct { + // LocalAddress - READ-ONLY; The gateway's local address. + LocalAddress *string `json:"localAddress,omitempty"` + // NetworkProperty - READ-ONLY; The route's network prefix. + NetworkProperty *string `json:"network,omitempty"` + // NextHop - READ-ONLY; The route's next hop. + NextHop *string `json:"nextHop,omitempty"` + // SourcePeer - READ-ONLY; The peer this route was learned from. + SourcePeer *string `json:"sourcePeer,omitempty"` + // Origin - READ-ONLY; The source this route was learned from. + Origin *string `json:"origin,omitempty"` + // AsPath - READ-ONLY; The route's AS path sequence. + AsPath *string `json:"asPath,omitempty"` + // Weight - READ-ONLY; The route's weight. + Weight *int32 `json:"weight,omitempty"` +} + +// GatewayRouteListResult list of virtual network gateway routes. +type GatewayRouteListResult struct { + autorest.Response `json:"-"` + // Value - List of gateway routes. + Value *[]GatewayRoute `json:"value,omitempty"` +} + +// GenerateExpressRoutePortsLOARequest the customer name to be printed on a letter of authorization. +type GenerateExpressRoutePortsLOARequest struct { + // CustomerName - The customer name. + CustomerName *string `json:"customerName,omitempty"` +} + +// GenerateExpressRoutePortsLOAResult response for GenerateExpressRoutePortsLOA API service call. +type GenerateExpressRoutePortsLOAResult struct { + autorest.Response `json:"-"` + // EncodedContent - The content as a base64 encoded string. + EncodedContent *string `json:"encodedContent,omitempty"` +} + +// GeneratevirtualwanvpnserverconfigurationvpnprofileFuture an abstraction for monitoring and retrieving +// the results of a long-running operation. +type GeneratevirtualwanvpnserverconfigurationvpnprofileFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *GeneratevirtualwanvpnserverconfigurationvpnprofileFuture) Result(client BaseClient) (vpr VpnProfileResponse, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.GeneratevirtualwanvpnserverconfigurationvpnprofileFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.GeneratevirtualwanvpnserverconfigurationvpnprofileFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vpr.Response.Response, err = future.GetResult(sender); err == nil && vpr.Response.Response.StatusCode != http.StatusNoContent { + vpr, err = client.GeneratevirtualwanvpnserverconfigurationvpnprofileResponder(vpr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.GeneratevirtualwanvpnserverconfigurationvpnprofileFuture", "Result", vpr.Response.Response, "Failure responding to request") + } + } + return +} + +// GetActiveSessionsAllFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type GetActiveSessionsAllFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *GetActiveSessionsAllFuture) Result(client BaseClient) (baslrp BastionActiveSessionListResultPage, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.GetActiveSessionsAllFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.GetActiveSessionsAllFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if baslrp.baslr.Response.Response, err = future.GetResult(sender); err == nil && baslrp.baslr.Response.Response.StatusCode != http.StatusNoContent { + baslrp, err = client.GetActiveSessionsResponder(baslrp.baslr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.GetActiveSessionsAllFuture", "Result", baslrp.baslr.Response.Response, "Failure responding to request") + } + } + return +} + +// GetActiveSessionsFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type GetActiveSessionsFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *GetActiveSessionsFuture) Result(client BaseClient) (baslrp BastionActiveSessionListResultPage, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.GetActiveSessionsFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.GetActiveSessionsFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if baslrp.baslr.Response.Response, err = future.GetResult(sender); err == nil && baslrp.baslr.Response.Response.StatusCode != http.StatusNoContent { + baslrp, err = client.GetActiveSessionsResponder(baslrp.baslr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.GetActiveSessionsFuture", "Result", baslrp.baslr.Response.Response, "Failure responding to request") + } + } + return +} + +// GetVpnSitesConfigurationRequest list of Vpn-Sites. +type GetVpnSitesConfigurationRequest struct { + // VpnSites - List of resource-ids of the vpn-sites for which config is to be downloaded. + VpnSites *[]string `json:"vpnSites,omitempty"` + // OutputBlobSasURL - The sas-url to download the configurations for vpn-sites. + OutputBlobSasURL *string `json:"outputBlobSasUrl,omitempty"` +} + +// HopLink hop link. +type HopLink struct { + // NextHopID - READ-ONLY; The ID of the next hop. + NextHopID *string `json:"nextHopId,omitempty"` + // LinkType - READ-ONLY; Link type. + LinkType *string `json:"linkType,omitempty"` + // HopLinkProperties - Hop link properties. + *HopLinkProperties `json:"properties,omitempty"` + // Issues - READ-ONLY; List of issues. + Issues *[]ConnectivityIssue `json:"issues,omitempty"` + // Context - READ-ONLY; Provides additional context on links. + Context map[string]*string `json:"context"` + // ResourceID - READ-ONLY; Resource ID. + ResourceID *string `json:"resourceId,omitempty"` +} + +// MarshalJSON is the custom marshaler for HopLink. +func (hl HopLink) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if hl.HopLinkProperties != nil { + objectMap["properties"] = hl.HopLinkProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for HopLink struct. +func (hl *HopLink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "nextHopId": + if v != nil { + var nextHopID string + err = json.Unmarshal(*v, &nextHopID) + if err != nil { + return err + } + hl.NextHopID = &nextHopID + } + case "linkType": + if v != nil { + var linkType string + err = json.Unmarshal(*v, &linkType) + if err != nil { + return err + } + hl.LinkType = &linkType + } + case "properties": + if v != nil { + var hopLinkProperties HopLinkProperties + err = json.Unmarshal(*v, &hopLinkProperties) + if err != nil { + return err + } + hl.HopLinkProperties = &hopLinkProperties + } + case "issues": + if v != nil { + var issues []ConnectivityIssue + err = json.Unmarshal(*v, &issues) + if err != nil { + return err + } + hl.Issues = &issues + } + case "context": + if v != nil { + var context map[string]*string + err = json.Unmarshal(*v, &context) + if err != nil { + return err + } + hl.Context = context + } + case "resourceId": + if v != nil { + var resourceID string + err = json.Unmarshal(*v, &resourceID) + if err != nil { + return err + } + hl.ResourceID = &resourceID + } + } + } + + return nil +} + +// HopLinkProperties hop link properties. +type HopLinkProperties struct { + // RoundTripTimeMin - READ-ONLY; Minimum roundtrip time in milliseconds. + RoundTripTimeMin *int64 `json:"roundTripTimeMin,omitempty"` + // RoundTripTimeAvg - READ-ONLY; Average roundtrip time in milliseconds. + RoundTripTimeAvg *int64 `json:"roundTripTimeAvg,omitempty"` + // RoundTripTimeMax - READ-ONLY; Maximum roundtrip time in milliseconds. + RoundTripTimeMax *int64 `json:"roundTripTimeMax,omitempty"` +} + +// HTTPConfiguration HTTP configuration of the connectivity check. +type HTTPConfiguration struct { + // Method - HTTP method. Possible values include: 'HTTPMethodGet' + Method HTTPMethod `json:"method,omitempty"` + // Headers - List of HTTP headers. + Headers *[]HTTPHeader `json:"headers,omitempty"` + // ValidStatusCodes - Valid status codes. + ValidStatusCodes *[]int32 `json:"validStatusCodes,omitempty"` +} + +// HTTPHeader the HTTP header. +type HTTPHeader struct { + // Name - The name in HTTP header. + Name *string `json:"name,omitempty"` + // Value - The value in HTTP header. + Value *string `json:"value,omitempty"` +} + +// HubIPAddresses IP addresses associated with azure firewall. +type HubIPAddresses struct { + // PublicIPs - Public IP addresses associated with azure firewall. + PublicIPs *HubPublicIPAddresses `json:"publicIPs,omitempty"` + // PrivateIPAddress - Private IP Address associated with azure firewall. + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` +} + +// HubIPConfiguration ipConfigurations. +type HubIPConfiguration struct { + autorest.Response `json:"-"` + // HubIPConfigurationPropertiesFormat - The properties of the Virtual Hub IPConfigurations. + *HubIPConfigurationPropertiesFormat `json:"properties,omitempty"` + // Name - Name of the Ip Configuration. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Ipconfiguration type. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for HubIPConfiguration. +func (hic HubIPConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if hic.HubIPConfigurationPropertiesFormat != nil { + objectMap["properties"] = hic.HubIPConfigurationPropertiesFormat + } + if hic.Name != nil { + objectMap["name"] = hic.Name + } + if hic.ID != nil { + objectMap["id"] = hic.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for HubIPConfiguration struct. +func (hic *HubIPConfiguration) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var hubIPConfigurationPropertiesFormat HubIPConfigurationPropertiesFormat + err = json.Unmarshal(*v, &hubIPConfigurationPropertiesFormat) + if err != nil { + return err + } + hic.HubIPConfigurationPropertiesFormat = &hubIPConfigurationPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + hic.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + hic.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hic.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + hic.ID = &ID + } + } + } + + return nil +} + +// HubIPConfigurationPropertiesFormat properties of IP configuration. +type HubIPConfigurationPropertiesFormat struct { + // PrivateIPAddress - The private IP address of the IP configuration. + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + // PrivateIPAllocationMethod - The private IP address allocation method. Possible values include: 'Static', 'Dynamic' + PrivateIPAllocationMethod IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + // Subnet - The reference to the subnet resource. + Subnet *Subnet `json:"subnet,omitempty"` + // PublicIPAddress - The reference to the public IP resource. + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the IP configuration resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for HubIPConfigurationPropertiesFormat. +func (hicpf HubIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if hicpf.PrivateIPAddress != nil { + objectMap["privateIPAddress"] = hicpf.PrivateIPAddress + } + if hicpf.PrivateIPAllocationMethod != "" { + objectMap["privateIPAllocationMethod"] = hicpf.PrivateIPAllocationMethod + } + if hicpf.Subnet != nil { + objectMap["subnet"] = hicpf.Subnet + } + if hicpf.PublicIPAddress != nil { + objectMap["publicIPAddress"] = hicpf.PublicIPAddress + } + return json.Marshal(objectMap) +} + +// HubPublicIPAddresses public IP addresses associated with azure firewall. +type HubPublicIPAddresses struct { + // Addresses - The list of Public IP addresses associated with azure firewall or IP addresses to be retained. + Addresses *[]AzureFirewallPublicIPAddress `json:"addresses,omitempty"` + // Count - The number of Public IP addresses associated with azure firewall. + Count *int32 `json:"count,omitempty"` +} + +// HubRoute routeTable route. +type HubRoute struct { + // Name - The name of the Route that is unique within a RouteTable. This name can be used to access this route. + Name *string `json:"name,omitempty"` + // DestinationType - The type of destinations (eg: CIDR, ResourceId, Service). + DestinationType *string `json:"destinationType,omitempty"` + // Destinations - List of all destinations. + Destinations *[]string `json:"destinations,omitempty"` + // NextHopType - The type of next hop (eg: ResourceId). + NextHopType *string `json:"nextHopType,omitempty"` + // NextHop - NextHop resource ID. + NextHop *string `json:"nextHop,omitempty"` +} + +// HubRouteTable routeTable resource in a virtual hub. +type HubRouteTable struct { + autorest.Response `json:"-"` + // HubRouteTableProperties - Properties of the RouteTable resource. + *HubRouteTableProperties `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for HubRouteTable. +func (hrt HubRouteTable) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if hrt.HubRouteTableProperties != nil { + objectMap["properties"] = hrt.HubRouteTableProperties + } + if hrt.Name != nil { + objectMap["name"] = hrt.Name + } + if hrt.ID != nil { + objectMap["id"] = hrt.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for HubRouteTable struct. +func (hrt *HubRouteTable) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var hubRouteTableProperties HubRouteTableProperties + err = json.Unmarshal(*v, &hubRouteTableProperties) + if err != nil { + return err + } + hrt.HubRouteTableProperties = &hubRouteTableProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + hrt.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + hrt.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hrt.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + hrt.ID = &ID + } + } + } + + return nil +} + +// HubRouteTableProperties parameters for RouteTable. +type HubRouteTableProperties struct { + // Routes - List of all routes. + Routes *[]HubRoute `json:"routes,omitempty"` + // Labels - List of labels associated with this route table. + Labels *[]string `json:"labels,omitempty"` + // AssociatedConnections - READ-ONLY; List of all connections associated with this route table. + AssociatedConnections *[]string `json:"associatedConnections,omitempty"` + // PropagatingConnections - READ-ONLY; List of all connections that advertise to this route table. + PropagatingConnections *[]string `json:"propagatingConnections,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the RouteTable resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for HubRouteTableProperties. +func (hrtp HubRouteTableProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if hrtp.Routes != nil { + objectMap["routes"] = hrtp.Routes + } + if hrtp.Labels != nil { + objectMap["labels"] = hrtp.Labels + } + return json.Marshal(objectMap) +} + +// HubRouteTablesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type HubRouteTablesCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *HubRouteTablesCreateOrUpdateFuture) Result(client HubRouteTablesClient) (hrt HubRouteTable, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.HubRouteTablesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.HubRouteTablesCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if hrt.Response.Response, err = future.GetResult(sender); err == nil && hrt.Response.Response.StatusCode != http.StatusNoContent { + hrt, err = client.CreateOrUpdateResponder(hrt.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.HubRouteTablesCreateOrUpdateFuture", "Result", hrt.Response.Response, "Failure responding to request") + } + } + return +} + +// HubRouteTablesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type HubRouteTablesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *HubRouteTablesDeleteFuture) Result(client HubRouteTablesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.HubRouteTablesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.HubRouteTablesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// HubVirtualNetworkConnection hubVirtualNetworkConnection Resource. +type HubVirtualNetworkConnection struct { + autorest.Response `json:"-"` + // HubVirtualNetworkConnectionProperties - Properties of the hub virtual network connection. + *HubVirtualNetworkConnectionProperties `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for HubVirtualNetworkConnection. +func (hvnc HubVirtualNetworkConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if hvnc.HubVirtualNetworkConnectionProperties != nil { + objectMap["properties"] = hvnc.HubVirtualNetworkConnectionProperties + } + if hvnc.Name != nil { + objectMap["name"] = hvnc.Name + } + if hvnc.ID != nil { + objectMap["id"] = hvnc.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for HubVirtualNetworkConnection struct. +func (hvnc *HubVirtualNetworkConnection) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var hubVirtualNetworkConnectionProperties HubVirtualNetworkConnectionProperties + err = json.Unmarshal(*v, &hubVirtualNetworkConnectionProperties) + if err != nil { + return err + } + hvnc.HubVirtualNetworkConnectionProperties = &hubVirtualNetworkConnectionProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + hvnc.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + hvnc.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + hvnc.ID = &ID + } + } + } + + return nil +} + +// HubVirtualNetworkConnectionProperties parameters for HubVirtualNetworkConnection. +type HubVirtualNetworkConnectionProperties struct { + // RemoteVirtualNetwork - Reference to the remote virtual network. + RemoteVirtualNetwork *SubResource `json:"remoteVirtualNetwork,omitempty"` + // AllowHubToRemoteVnetTransit - Deprecated: VirtualHub to RemoteVnet transit to enabled or not. + AllowHubToRemoteVnetTransit *bool `json:"allowHubToRemoteVnetTransit,omitempty"` + // AllowRemoteVnetToUseHubVnetGateways - Deprecated: Allow RemoteVnet to use Virtual Hub's gateways. + AllowRemoteVnetToUseHubVnetGateways *bool `json:"allowRemoteVnetToUseHubVnetGateways,omitempty"` + // EnableInternetSecurity - Enable internet security. + EnableInternetSecurity *bool `json:"enableInternetSecurity,omitempty"` + // RoutingConfiguration - The Routing Configuration indicating the associated and propagated route tables on this connection. + RoutingConfiguration *RoutingConfiguration `json:"routingConfiguration,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the hub virtual network connection resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for HubVirtualNetworkConnectionProperties. +func (hvncp HubVirtualNetworkConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if hvncp.RemoteVirtualNetwork != nil { + objectMap["remoteVirtualNetwork"] = hvncp.RemoteVirtualNetwork + } + if hvncp.AllowHubToRemoteVnetTransit != nil { + objectMap["allowHubToRemoteVnetTransit"] = hvncp.AllowHubToRemoteVnetTransit + } + if hvncp.AllowRemoteVnetToUseHubVnetGateways != nil { + objectMap["allowRemoteVnetToUseHubVnetGateways"] = hvncp.AllowRemoteVnetToUseHubVnetGateways + } + if hvncp.EnableInternetSecurity != nil { + objectMap["enableInternetSecurity"] = hvncp.EnableInternetSecurity + } + if hvncp.RoutingConfiguration != nil { + objectMap["routingConfiguration"] = hvncp.RoutingConfiguration + } + return json.Marshal(objectMap) +} + +// HubVirtualNetworkConnectionsCreateOrUpdateFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type HubVirtualNetworkConnectionsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *HubVirtualNetworkConnectionsCreateOrUpdateFuture) Result(client HubVirtualNetworkConnectionsClient) (hvnc HubVirtualNetworkConnection, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.HubVirtualNetworkConnectionsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if hvnc.Response.Response, err = future.GetResult(sender); err == nil && hvnc.Response.Response.StatusCode != http.StatusNoContent { + hvnc, err = client.CreateOrUpdateResponder(hvnc.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsCreateOrUpdateFuture", "Result", hvnc.Response.Response, "Failure responding to request") + } + } + return +} + +// HubVirtualNetworkConnectionsDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type HubVirtualNetworkConnectionsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *HubVirtualNetworkConnectionsDeleteFuture) Result(client HubVirtualNetworkConnectionsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.HubVirtualNetworkConnectionsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// InboundNatPool inbound NAT pool of the load balancer. +type InboundNatPool struct { + // InboundNatPoolPropertiesFormat - Properties of load balancer inbound nat pool. + *InboundNatPoolPropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource that is unique within the set of inbound NAT pools used by the load balancer. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for InboundNatPool. +func (inp InboundNatPool) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if inp.InboundNatPoolPropertiesFormat != nil { + objectMap["properties"] = inp.InboundNatPoolPropertiesFormat + } + if inp.Name != nil { + objectMap["name"] = inp.Name + } + if inp.ID != nil { + objectMap["id"] = inp.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for InboundNatPool struct. +func (inp *InboundNatPool) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var inboundNatPoolPropertiesFormat InboundNatPoolPropertiesFormat + err = json.Unmarshal(*v, &inboundNatPoolPropertiesFormat) + if err != nil { + return err + } + inp.InboundNatPoolPropertiesFormat = &inboundNatPoolPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + inp.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + inp.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + inp.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + inp.ID = &ID + } + } + } + + return nil +} + +// InboundNatPoolPropertiesFormat properties of Inbound NAT pool. +type InboundNatPoolPropertiesFormat struct { + // FrontendIPConfiguration - A reference to frontend IP addresses. + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + // Protocol - The reference to the transport protocol used by the inbound NAT pool. Possible values include: 'TransportProtocolUDP', 'TransportProtocolTCP', 'TransportProtocolAll' + Protocol TransportProtocol `json:"protocol,omitempty"` + // FrontendPortRangeStart - The first port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with a load balancer. Acceptable values range between 1 and 65534. + FrontendPortRangeStart *int32 `json:"frontendPortRangeStart,omitempty"` + // FrontendPortRangeEnd - The last port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with a load balancer. Acceptable values range between 1 and 65535. + FrontendPortRangeEnd *int32 `json:"frontendPortRangeEnd,omitempty"` + // BackendPort - The port used for internal connections on the endpoint. Acceptable values are between 1 and 65535. + BackendPort *int32 `json:"backendPort,omitempty"` + // IdleTimeoutInMinutes - The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP. + IdleTimeoutInMinutes *int32 `json:"idleTimeoutInMinutes,omitempty"` + // EnableFloatingIP - Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint. + EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` + // EnableTCPReset - Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP. + EnableTCPReset *bool `json:"enableTcpReset,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the inbound NAT pool resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for InboundNatPoolPropertiesFormat. +func (inppf InboundNatPoolPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if inppf.FrontendIPConfiguration != nil { + objectMap["frontendIPConfiguration"] = inppf.FrontendIPConfiguration + } + if inppf.Protocol != "" { + objectMap["protocol"] = inppf.Protocol + } + if inppf.FrontendPortRangeStart != nil { + objectMap["frontendPortRangeStart"] = inppf.FrontendPortRangeStart + } + if inppf.FrontendPortRangeEnd != nil { + objectMap["frontendPortRangeEnd"] = inppf.FrontendPortRangeEnd + } + if inppf.BackendPort != nil { + objectMap["backendPort"] = inppf.BackendPort + } + if inppf.IdleTimeoutInMinutes != nil { + objectMap["idleTimeoutInMinutes"] = inppf.IdleTimeoutInMinutes + } + if inppf.EnableFloatingIP != nil { + objectMap["enableFloatingIP"] = inppf.EnableFloatingIP + } + if inppf.EnableTCPReset != nil { + objectMap["enableTcpReset"] = inppf.EnableTCPReset + } + return json.Marshal(objectMap) +} + +// InboundNatRule inbound NAT rule of the load balancer. +type InboundNatRule struct { + autorest.Response `json:"-"` + // InboundNatRulePropertiesFormat - Properties of load balancer inbound nat rule. + *InboundNatRulePropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource that is unique within the set of inbound NAT rules used by the load balancer. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for InboundNatRule. +func (inr InboundNatRule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if inr.InboundNatRulePropertiesFormat != nil { + objectMap["properties"] = inr.InboundNatRulePropertiesFormat + } + if inr.Name != nil { + objectMap["name"] = inr.Name + } + if inr.ID != nil { + objectMap["id"] = inr.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for InboundNatRule struct. +func (inr *InboundNatRule) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var inboundNatRulePropertiesFormat InboundNatRulePropertiesFormat + err = json.Unmarshal(*v, &inboundNatRulePropertiesFormat) + if err != nil { + return err + } + inr.InboundNatRulePropertiesFormat = &inboundNatRulePropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + inr.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + inr.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + inr.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + inr.ID = &ID + } + } + } + + return nil +} + +// InboundNatRuleListResult response for ListInboundNatRule API service call. +type InboundNatRuleListResult struct { + autorest.Response `json:"-"` + // Value - A list of inbound nat rules in a load balancer. + Value *[]InboundNatRule `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for InboundNatRuleListResult. +func (inrlr InboundNatRuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if inrlr.Value != nil { + objectMap["value"] = inrlr.Value + } + return json.Marshal(objectMap) +} + +// InboundNatRuleListResultIterator provides access to a complete listing of InboundNatRule values. +type InboundNatRuleListResultIterator struct { + i int + page InboundNatRuleListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *InboundNatRuleListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InboundNatRuleListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *InboundNatRuleListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter InboundNatRuleListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter InboundNatRuleListResultIterator) Response() InboundNatRuleListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter InboundNatRuleListResultIterator) Value() InboundNatRule { + if !iter.page.NotDone() { + return InboundNatRule{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the InboundNatRuleListResultIterator type. +func NewInboundNatRuleListResultIterator(page InboundNatRuleListResultPage) InboundNatRuleListResultIterator { + return InboundNatRuleListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (inrlr InboundNatRuleListResult) IsEmpty() bool { + return inrlr.Value == nil || len(*inrlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (inrlr InboundNatRuleListResult) hasNextLink() bool { + return inrlr.NextLink != nil && len(*inrlr.NextLink) != 0 +} + +// inboundNatRuleListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (inrlr InboundNatRuleListResult) inboundNatRuleListResultPreparer(ctx context.Context) (*http.Request, error) { + if !inrlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(inrlr.NextLink))) +} + +// InboundNatRuleListResultPage contains a page of InboundNatRule values. +type InboundNatRuleListResultPage struct { + fn func(context.Context, InboundNatRuleListResult) (InboundNatRuleListResult, error) + inrlr InboundNatRuleListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *InboundNatRuleListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InboundNatRuleListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.inrlr) + if err != nil { + return err + } + page.inrlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *InboundNatRuleListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page InboundNatRuleListResultPage) NotDone() bool { + return !page.inrlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page InboundNatRuleListResultPage) Response() InboundNatRuleListResult { + return page.inrlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page InboundNatRuleListResultPage) Values() []InboundNatRule { + if page.inrlr.IsEmpty() { + return nil + } + return *page.inrlr.Value +} + +// Creates a new instance of the InboundNatRuleListResultPage type. +func NewInboundNatRuleListResultPage(cur InboundNatRuleListResult, getNextPage func(context.Context, InboundNatRuleListResult) (InboundNatRuleListResult, error)) InboundNatRuleListResultPage { + return InboundNatRuleListResultPage{ + fn: getNextPage, + inrlr: cur, + } +} + +// InboundNatRulePropertiesFormat properties of the inbound NAT rule. +type InboundNatRulePropertiesFormat struct { + // FrontendIPConfiguration - A reference to frontend IP addresses. + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + // BackendIPConfiguration - READ-ONLY; A reference to a private IP address defined on a network interface of a VM. Traffic sent to the frontend port of each of the frontend IP configurations is forwarded to the backend IP. + BackendIPConfiguration *InterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` + // Protocol - The reference to the transport protocol used by the load balancing rule. Possible values include: 'TransportProtocolUDP', 'TransportProtocolTCP', 'TransportProtocolAll' + Protocol TransportProtocol `json:"protocol,omitempty"` + // FrontendPort - The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values range from 1 to 65534. + FrontendPort *int32 `json:"frontendPort,omitempty"` + // BackendPort - The port used for the internal endpoint. Acceptable values range from 1 to 65535. + BackendPort *int32 `json:"backendPort,omitempty"` + // IdleTimeoutInMinutes - The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP. + IdleTimeoutInMinutes *int32 `json:"idleTimeoutInMinutes,omitempty"` + // EnableFloatingIP - Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint. + EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` + // EnableTCPReset - Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP. + EnableTCPReset *bool `json:"enableTcpReset,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the inbound NAT rule resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for InboundNatRulePropertiesFormat. +func (inrpf InboundNatRulePropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if inrpf.FrontendIPConfiguration != nil { + objectMap["frontendIPConfiguration"] = inrpf.FrontendIPConfiguration + } + if inrpf.Protocol != "" { + objectMap["protocol"] = inrpf.Protocol + } + if inrpf.FrontendPort != nil { + objectMap["frontendPort"] = inrpf.FrontendPort + } + if inrpf.BackendPort != nil { + objectMap["backendPort"] = inrpf.BackendPort + } + if inrpf.IdleTimeoutInMinutes != nil { + objectMap["idleTimeoutInMinutes"] = inrpf.IdleTimeoutInMinutes + } + if inrpf.EnableFloatingIP != nil { + objectMap["enableFloatingIP"] = inrpf.EnableFloatingIP + } + if inrpf.EnableTCPReset != nil { + objectMap["enableTcpReset"] = inrpf.EnableTCPReset + } + return json.Marshal(objectMap) +} + +// InboundNatRulesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type InboundNatRulesCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *InboundNatRulesCreateOrUpdateFuture) Result(client InboundNatRulesClient) (inr InboundNatRule, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InboundNatRulesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.InboundNatRulesCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if inr.Response.Response, err = future.GetResult(sender); err == nil && inr.Response.Response.StatusCode != http.StatusNoContent { + inr, err = client.CreateOrUpdateResponder(inr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InboundNatRulesCreateOrUpdateFuture", "Result", inr.Response.Response, "Failure responding to request") + } + } + return +} + +// InboundNatRulesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type InboundNatRulesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *InboundNatRulesDeleteFuture) Result(client InboundNatRulesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InboundNatRulesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.InboundNatRulesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// InboundSecurityRule NVA Inbound Security Rule resource. +type InboundSecurityRule struct { + autorest.Response `json:"-"` + // InboundSecurityRuleProperties - The properties of the Inbound Security Rules. + *InboundSecurityRuleProperties `json:"properties,omitempty"` + // Name - Name of security rule collection. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; NVA inbound security rule type. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for InboundSecurityRule. +func (isr InboundSecurityRule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if isr.InboundSecurityRuleProperties != nil { + objectMap["properties"] = isr.InboundSecurityRuleProperties + } + if isr.Name != nil { + objectMap["name"] = isr.Name + } + if isr.ID != nil { + objectMap["id"] = isr.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for InboundSecurityRule struct. +func (isr *InboundSecurityRule) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var inboundSecurityRuleProperties InboundSecurityRuleProperties + err = json.Unmarshal(*v, &inboundSecurityRuleProperties) + if err != nil { + return err + } + isr.InboundSecurityRuleProperties = &inboundSecurityRuleProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + isr.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + isr.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + isr.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + isr.ID = &ID + } + } + } + + return nil +} + +// InboundSecurityRuleCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type InboundSecurityRuleCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *InboundSecurityRuleCreateOrUpdateFuture) Result(client InboundSecurityRuleClient) (isr InboundSecurityRule, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InboundSecurityRuleCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.InboundSecurityRuleCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if isr.Response.Response, err = future.GetResult(sender); err == nil && isr.Response.Response.StatusCode != http.StatusNoContent { + isr, err = client.CreateOrUpdateResponder(isr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InboundSecurityRuleCreateOrUpdateFuture", "Result", isr.Response.Response, "Failure responding to request") + } + } + return +} + +// InboundSecurityRuleProperties properties of the Inbound Security Rules resource. +type InboundSecurityRuleProperties struct { + // Rules - List of allowed rules. + Rules *[]InboundSecurityRules `json:"rules,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for InboundSecurityRuleProperties. +func (isrp InboundSecurityRuleProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if isrp.Rules != nil { + objectMap["rules"] = isrp.Rules + } + return json.Marshal(objectMap) +} + +// InboundSecurityRules properties of the Inbound Security Rules resource. +type InboundSecurityRules struct { + // Protocol - Protocol. This should be either TCP or UDP. Possible values include: 'InboundSecurityRulesProtocolTCP', 'InboundSecurityRulesProtocolUDP' + Protocol InboundSecurityRulesProtocol `json:"protocol,omitempty"` + // SourceAddressPrefix - The CIDR or source IP range. Only /30, /31 and /32 Ip ranges are allowed. + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + // DestinationPortRange - NVA port ranges to be opened up. One needs to provide specific ports. + DestinationPortRange *int32 `json:"destinationPortRange,omitempty"` +} + +// IntentPolicy network Intent Policy resource. +type IntentPolicy struct { + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for IntentPolicy. +func (IP IntentPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if IP.ID != nil { + objectMap["id"] = IP.ID + } + if IP.Location != nil { + objectMap["location"] = IP.Location + } + if IP.Tags != nil { + objectMap["tags"] = IP.Tags + } + return json.Marshal(objectMap) +} + +// IntentPolicyConfiguration details of NetworkIntentPolicyConfiguration for PrepareNetworkPoliciesRequest. +type IntentPolicyConfiguration struct { + // NetworkIntentPolicyName - The name of the Network Intent Policy for storing in target subscription. + NetworkIntentPolicyName *string `json:"networkIntentPolicyName,omitempty"` + // SourceNetworkIntentPolicy - Source network intent policy. + SourceNetworkIntentPolicy *IntentPolicy `json:"sourceNetworkIntentPolicy,omitempty"` +} + +// Interface a network interface in a resource group. +type Interface struct { + autorest.Response `json:"-"` + // ExtendedLocation - The extended location of the network interface. + ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + // InterfacePropertiesFormat - Properties of the network interface. + *InterfacePropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for Interface. +func (i Interface) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if i.ExtendedLocation != nil { + objectMap["extendedLocation"] = i.ExtendedLocation + } + if i.InterfacePropertiesFormat != nil { + objectMap["properties"] = i.InterfacePropertiesFormat + } + if i.ID != nil { + objectMap["id"] = i.ID + } + if i.Location != nil { + objectMap["location"] = i.Location + } + if i.Tags != nil { + objectMap["tags"] = i.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Interface struct. +func (i *Interface) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "extendedLocation": + if v != nil { + var extendedLocation ExtendedLocation + err = json.Unmarshal(*v, &extendedLocation) + if err != nil { + return err + } + i.ExtendedLocation = &extendedLocation + } + case "properties": + if v != nil { + var interfacePropertiesFormat InterfacePropertiesFormat + err = json.Unmarshal(*v, &interfacePropertiesFormat) + if err != nil { + return err + } + i.InterfacePropertiesFormat = &interfacePropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + i.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + i.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + i.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + i.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + i.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + i.Tags = tags + } + } + } + + return nil +} + +// InterfaceAssociation network interface and its custom security rules. +type InterfaceAssociation struct { + // ID - READ-ONLY; Network interface ID. + ID *string `json:"id,omitempty"` + // SecurityRules - Collection of custom security rules. + SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` +} + +// MarshalJSON is the custom marshaler for InterfaceAssociation. +func (ia InterfaceAssociation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ia.SecurityRules != nil { + objectMap["securityRules"] = ia.SecurityRules + } + return json.Marshal(objectMap) +} + +// InterfaceDNSSettings DNS settings of a network interface. +type InterfaceDNSSettings struct { + // DNSServers - List of DNS servers IP addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the only value in dnsServers collection. + DNSServers *[]string `json:"dnsServers,omitempty"` + // AppliedDNSServers - READ-ONLY; If the VM that uses this NIC is part of an Availability Set, then this list will have the union of all DNS servers from all NICs that are part of the Availability Set. This property is what is configured on each of those VMs. + AppliedDNSServers *[]string `json:"appliedDnsServers,omitempty"` + // InternalDNSNameLabel - Relative DNS name for this NIC used for internal communications between VMs in the same virtual network. + InternalDNSNameLabel *string `json:"internalDnsNameLabel,omitempty"` + // InternalFqdn - READ-ONLY; Fully qualified DNS name supporting internal communications between VMs in the same virtual network. + InternalFqdn *string `json:"internalFqdn,omitempty"` + // InternalDomainNameSuffix - READ-ONLY; Even if internalDnsNameLabel is not specified, a DNS entry is created for the primary NIC of the VM. This DNS name can be constructed by concatenating the VM name with the value of internalDomainNameSuffix. + InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` +} + +// MarshalJSON is the custom marshaler for InterfaceDNSSettings. +func (ids InterfaceDNSSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ids.DNSServers != nil { + objectMap["dnsServers"] = ids.DNSServers + } + if ids.InternalDNSNameLabel != nil { + objectMap["internalDnsNameLabel"] = ids.InternalDNSNameLabel + } + return json.Marshal(objectMap) +} + +// InterfaceIPConfiguration iPConfiguration in a network interface. +type InterfaceIPConfiguration struct { + autorest.Response `json:"-"` + // InterfaceIPConfigurationPropertiesFormat - Network interface IP configuration properties. + *InterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for InterfaceIPConfiguration. +func (iic InterfaceIPConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if iic.InterfaceIPConfigurationPropertiesFormat != nil { + objectMap["properties"] = iic.InterfaceIPConfigurationPropertiesFormat + } + if iic.Name != nil { + objectMap["name"] = iic.Name + } + if iic.ID != nil { + objectMap["id"] = iic.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for InterfaceIPConfiguration struct. +func (iic *InterfaceIPConfiguration) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var interfaceIPConfigurationPropertiesFormat InterfaceIPConfigurationPropertiesFormat + err = json.Unmarshal(*v, &interfaceIPConfigurationPropertiesFormat) + if err != nil { + return err + } + iic.InterfaceIPConfigurationPropertiesFormat = &interfaceIPConfigurationPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + iic.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + iic.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + iic.ID = &ID + } + } + } + + return nil +} + +// InterfaceIPConfigurationListResult response for list ip configurations API service call. +type InterfaceIPConfigurationListResult struct { + autorest.Response `json:"-"` + // Value - A list of ip configurations. + Value *[]InterfaceIPConfiguration `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for InterfaceIPConfigurationListResult. +func (iiclr InterfaceIPConfigurationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if iiclr.Value != nil { + objectMap["value"] = iiclr.Value + } + return json.Marshal(objectMap) +} + +// InterfaceIPConfigurationListResultIterator provides access to a complete listing of +// InterfaceIPConfiguration values. +type InterfaceIPConfigurationListResultIterator struct { + i int + page InterfaceIPConfigurationListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *InterfaceIPConfigurationListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceIPConfigurationListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *InterfaceIPConfigurationListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter InterfaceIPConfigurationListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter InterfaceIPConfigurationListResultIterator) Response() InterfaceIPConfigurationListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter InterfaceIPConfigurationListResultIterator) Value() InterfaceIPConfiguration { + if !iter.page.NotDone() { + return InterfaceIPConfiguration{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the InterfaceIPConfigurationListResultIterator type. +func NewInterfaceIPConfigurationListResultIterator(page InterfaceIPConfigurationListResultPage) InterfaceIPConfigurationListResultIterator { + return InterfaceIPConfigurationListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (iiclr InterfaceIPConfigurationListResult) IsEmpty() bool { + return iiclr.Value == nil || len(*iiclr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (iiclr InterfaceIPConfigurationListResult) hasNextLink() bool { + return iiclr.NextLink != nil && len(*iiclr.NextLink) != 0 +} + +// interfaceIPConfigurationListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (iiclr InterfaceIPConfigurationListResult) interfaceIPConfigurationListResultPreparer(ctx context.Context) (*http.Request, error) { + if !iiclr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(iiclr.NextLink))) +} + +// InterfaceIPConfigurationListResultPage contains a page of InterfaceIPConfiguration values. +type InterfaceIPConfigurationListResultPage struct { + fn func(context.Context, InterfaceIPConfigurationListResult) (InterfaceIPConfigurationListResult, error) + iiclr InterfaceIPConfigurationListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *InterfaceIPConfigurationListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceIPConfigurationListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.iiclr) + if err != nil { + return err + } + page.iiclr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *InterfaceIPConfigurationListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page InterfaceIPConfigurationListResultPage) NotDone() bool { + return !page.iiclr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page InterfaceIPConfigurationListResultPage) Response() InterfaceIPConfigurationListResult { + return page.iiclr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page InterfaceIPConfigurationListResultPage) Values() []InterfaceIPConfiguration { + if page.iiclr.IsEmpty() { + return nil + } + return *page.iiclr.Value +} + +// Creates a new instance of the InterfaceIPConfigurationListResultPage type. +func NewInterfaceIPConfigurationListResultPage(cur InterfaceIPConfigurationListResult, getNextPage func(context.Context, InterfaceIPConfigurationListResult) (InterfaceIPConfigurationListResult, error)) InterfaceIPConfigurationListResultPage { + return InterfaceIPConfigurationListResultPage{ + fn: getNextPage, + iiclr: cur, + } +} + +// InterfaceIPConfigurationPrivateLinkConnectionProperties privateLinkConnection properties for the network +// interface. +type InterfaceIPConfigurationPrivateLinkConnectionProperties struct { + // GroupID - READ-ONLY; The group ID for current private link connection. + GroupID *string `json:"groupId,omitempty"` + // RequiredMemberName - READ-ONLY; The required member name for current private link connection. + RequiredMemberName *string `json:"requiredMemberName,omitempty"` + // Fqdns - READ-ONLY; List of FQDNs for current private link connection. + Fqdns *[]string `json:"fqdns,omitempty"` +} + +// InterfaceIPConfigurationPropertiesFormat properties of IP configuration. +type InterfaceIPConfigurationPropertiesFormat struct { + // VirtualNetworkTaps - The reference to Virtual Network Taps. + VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` + // ApplicationGatewayBackendAddressPools - The reference to ApplicationGatewayBackendAddressPool resource. + ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` + // LoadBalancerBackendAddressPools - The reference to LoadBalancerBackendAddressPool resource. + LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` + // LoadBalancerInboundNatRules - A list of references of LoadBalancerInboundNatRules. + LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` + // PrivateIPAddress - Private IP address of the IP configuration. + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + // PrivateIPAllocationMethod - The private IP address allocation method. Possible values include: 'Static', 'Dynamic' + PrivateIPAllocationMethod IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + // PrivateIPAddressVersion - Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4. Possible values include: 'IPv4', 'IPv6' + PrivateIPAddressVersion IPVersion `json:"privateIPAddressVersion,omitempty"` + // Subnet - Subnet bound to the IP configuration. + Subnet *Subnet `json:"subnet,omitempty"` + // Primary - Whether this is a primary customer address on the network interface. + Primary *bool `json:"primary,omitempty"` + // PublicIPAddress - Public IP address bound to the IP configuration. + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + // ApplicationSecurityGroups - Application security groups in which the IP configuration is included. + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the network interface IP configuration. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // PrivateLinkConnectionProperties - READ-ONLY; PrivateLinkConnection properties for the network interface. + PrivateLinkConnectionProperties *InterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` +} + +// MarshalJSON is the custom marshaler for InterfaceIPConfigurationPropertiesFormat. +func (iicpf InterfaceIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if iicpf.VirtualNetworkTaps != nil { + objectMap["virtualNetworkTaps"] = iicpf.VirtualNetworkTaps + } + if iicpf.ApplicationGatewayBackendAddressPools != nil { + objectMap["applicationGatewayBackendAddressPools"] = iicpf.ApplicationGatewayBackendAddressPools + } + if iicpf.LoadBalancerBackendAddressPools != nil { + objectMap["loadBalancerBackendAddressPools"] = iicpf.LoadBalancerBackendAddressPools + } + if iicpf.LoadBalancerInboundNatRules != nil { + objectMap["loadBalancerInboundNatRules"] = iicpf.LoadBalancerInboundNatRules + } + if iicpf.PrivateIPAddress != nil { + objectMap["privateIPAddress"] = iicpf.PrivateIPAddress + } + if iicpf.PrivateIPAllocationMethod != "" { + objectMap["privateIPAllocationMethod"] = iicpf.PrivateIPAllocationMethod + } + if iicpf.PrivateIPAddressVersion != "" { + objectMap["privateIPAddressVersion"] = iicpf.PrivateIPAddressVersion + } + if iicpf.Subnet != nil { + objectMap["subnet"] = iicpf.Subnet + } + if iicpf.Primary != nil { + objectMap["primary"] = iicpf.Primary + } + if iicpf.PublicIPAddress != nil { + objectMap["publicIPAddress"] = iicpf.PublicIPAddress + } + if iicpf.ApplicationSecurityGroups != nil { + objectMap["applicationSecurityGroups"] = iicpf.ApplicationSecurityGroups + } + return json.Marshal(objectMap) +} + +// InterfaceListResult response for the ListNetworkInterface API service call. +type InterfaceListResult struct { + autorest.Response `json:"-"` + // Value - A list of network interfaces in a resource group. + Value *[]Interface `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for InterfaceListResult. +func (ilr InterfaceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ilr.Value != nil { + objectMap["value"] = ilr.Value + } + return json.Marshal(objectMap) +} + +// InterfaceListResultIterator provides access to a complete listing of Interface values. +type InterfaceListResultIterator struct { + i int + page InterfaceListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *InterfaceListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *InterfaceListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter InterfaceListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter InterfaceListResultIterator) Response() InterfaceListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter InterfaceListResultIterator) Value() Interface { + if !iter.page.NotDone() { + return Interface{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the InterfaceListResultIterator type. +func NewInterfaceListResultIterator(page InterfaceListResultPage) InterfaceListResultIterator { + return InterfaceListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (ilr InterfaceListResult) IsEmpty() bool { + return ilr.Value == nil || len(*ilr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (ilr InterfaceListResult) hasNextLink() bool { + return ilr.NextLink != nil && len(*ilr.NextLink) != 0 +} + +// interfaceListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (ilr InterfaceListResult) interfaceListResultPreparer(ctx context.Context) (*http.Request, error) { + if !ilr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(ilr.NextLink))) +} + +// InterfaceListResultPage contains a page of Interface values. +type InterfaceListResultPage struct { + fn func(context.Context, InterfaceListResult) (InterfaceListResult, error) + ilr InterfaceListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *InterfaceListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.ilr) + if err != nil { + return err + } + page.ilr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *InterfaceListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page InterfaceListResultPage) NotDone() bool { + return !page.ilr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page InterfaceListResultPage) Response() InterfaceListResult { + return page.ilr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page InterfaceListResultPage) Values() []Interface { + if page.ilr.IsEmpty() { + return nil + } + return *page.ilr.Value +} + +// Creates a new instance of the InterfaceListResultPage type. +func NewInterfaceListResultPage(cur InterfaceListResult, getNextPage func(context.Context, InterfaceListResult) (InterfaceListResult, error)) InterfaceListResultPage { + return InterfaceListResultPage{ + fn: getNextPage, + ilr: cur, + } +} + +// InterfaceLoadBalancerListResult response for list ip configurations API service call. +type InterfaceLoadBalancerListResult struct { + autorest.Response `json:"-"` + // Value - A list of load balancers. + Value *[]LoadBalancer `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for InterfaceLoadBalancerListResult. +func (ilblr InterfaceLoadBalancerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ilblr.Value != nil { + objectMap["value"] = ilblr.Value + } + return json.Marshal(objectMap) +} + +// InterfaceLoadBalancerListResultIterator provides access to a complete listing of LoadBalancer values. +type InterfaceLoadBalancerListResultIterator struct { + i int + page InterfaceLoadBalancerListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *InterfaceLoadBalancerListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceLoadBalancerListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *InterfaceLoadBalancerListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter InterfaceLoadBalancerListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter InterfaceLoadBalancerListResultIterator) Response() InterfaceLoadBalancerListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter InterfaceLoadBalancerListResultIterator) Value() LoadBalancer { + if !iter.page.NotDone() { + return LoadBalancer{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the InterfaceLoadBalancerListResultIterator type. +func NewInterfaceLoadBalancerListResultIterator(page InterfaceLoadBalancerListResultPage) InterfaceLoadBalancerListResultIterator { + return InterfaceLoadBalancerListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (ilblr InterfaceLoadBalancerListResult) IsEmpty() bool { + return ilblr.Value == nil || len(*ilblr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (ilblr InterfaceLoadBalancerListResult) hasNextLink() bool { + return ilblr.NextLink != nil && len(*ilblr.NextLink) != 0 +} + +// interfaceLoadBalancerListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (ilblr InterfaceLoadBalancerListResult) interfaceLoadBalancerListResultPreparer(ctx context.Context) (*http.Request, error) { + if !ilblr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(ilblr.NextLink))) +} + +// InterfaceLoadBalancerListResultPage contains a page of LoadBalancer values. +type InterfaceLoadBalancerListResultPage struct { + fn func(context.Context, InterfaceLoadBalancerListResult) (InterfaceLoadBalancerListResult, error) + ilblr InterfaceLoadBalancerListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *InterfaceLoadBalancerListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceLoadBalancerListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.ilblr) + if err != nil { + return err + } + page.ilblr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *InterfaceLoadBalancerListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page InterfaceLoadBalancerListResultPage) NotDone() bool { + return !page.ilblr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page InterfaceLoadBalancerListResultPage) Response() InterfaceLoadBalancerListResult { + return page.ilblr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page InterfaceLoadBalancerListResultPage) Values() []LoadBalancer { + if page.ilblr.IsEmpty() { + return nil + } + return *page.ilblr.Value +} + +// Creates a new instance of the InterfaceLoadBalancerListResultPage type. +func NewInterfaceLoadBalancerListResultPage(cur InterfaceLoadBalancerListResult, getNextPage func(context.Context, InterfaceLoadBalancerListResult) (InterfaceLoadBalancerListResult, error)) InterfaceLoadBalancerListResultPage { + return InterfaceLoadBalancerListResultPage{ + fn: getNextPage, + ilblr: cur, + } +} + +// InterfacePropertiesFormat networkInterface properties. +type InterfacePropertiesFormat struct { + // VirtualMachine - READ-ONLY; The reference to a virtual machine. + VirtualMachine *SubResource `json:"virtualMachine,omitempty"` + // NetworkSecurityGroup - The reference to the NetworkSecurityGroup resource. + NetworkSecurityGroup *SecurityGroup `json:"networkSecurityGroup,omitempty"` + // PrivateEndpoint - READ-ONLY; A reference to the private endpoint to which the network interface is linked. + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + // IPConfigurations - A list of IPConfigurations of the network interface. + IPConfigurations *[]InterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + // TapConfigurations - READ-ONLY; A list of TapConfigurations of the network interface. + TapConfigurations *[]InterfaceTapConfiguration `json:"tapConfigurations,omitempty"` + // DNSSettings - The DNS settings in network interface. + DNSSettings *InterfaceDNSSettings `json:"dnsSettings,omitempty"` + // MacAddress - READ-ONLY; The MAC address of the network interface. + MacAddress *string `json:"macAddress,omitempty"` + // Primary - READ-ONLY; Whether this is a primary network interface on a virtual machine. + Primary *bool `json:"primary,omitempty"` + // EnableAcceleratedNetworking - If the network interface is accelerated networking enabled. + EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + // EnableIPForwarding - Indicates whether IP forwarding is enabled on this network interface. + EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + // HostedWorkloads - READ-ONLY; A list of references to linked BareMetal resources. + HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` + // DscpConfiguration - READ-ONLY; A reference to the dscp configuration to which the network interface is linked. + DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` + // ResourceGUID - READ-ONLY; The resource GUID property of the network interface resource. + ResourceGUID *string `json:"resourceGuid,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the network interface resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for InterfacePropertiesFormat. +func (ipf InterfacePropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ipf.NetworkSecurityGroup != nil { + objectMap["networkSecurityGroup"] = ipf.NetworkSecurityGroup + } + if ipf.IPConfigurations != nil { + objectMap["ipConfigurations"] = ipf.IPConfigurations + } + if ipf.DNSSettings != nil { + objectMap["dnsSettings"] = ipf.DNSSettings + } + if ipf.EnableAcceleratedNetworking != nil { + objectMap["enableAcceleratedNetworking"] = ipf.EnableAcceleratedNetworking + } + if ipf.EnableIPForwarding != nil { + objectMap["enableIPForwarding"] = ipf.EnableIPForwarding + } + return json.Marshal(objectMap) +} + +// InterfacesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type InterfacesCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *InterfacesCreateOrUpdateFuture) Result(client InterfacesClient) (i Interface, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.InterfacesCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if i.Response.Response, err = future.GetResult(sender); err == nil && i.Response.Response.StatusCode != http.StatusNoContent { + i, err = client.CreateOrUpdateResponder(i.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesCreateOrUpdateFuture", "Result", i.Response.Response, "Failure responding to request") + } + } + return +} + +// InterfacesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type InterfacesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *InterfacesDeleteFuture) Result(client InterfacesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.InterfacesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// InterfacesGetEffectiveRouteTableFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type InterfacesGetEffectiveRouteTableFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *InterfacesGetEffectiveRouteTableFuture) Result(client InterfacesClient) (erlr EffectiveRouteListResult, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesGetEffectiveRouteTableFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.InterfacesGetEffectiveRouteTableFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if erlr.Response.Response, err = future.GetResult(sender); err == nil && erlr.Response.Response.StatusCode != http.StatusNoContent { + erlr, err = client.GetEffectiveRouteTableResponder(erlr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesGetEffectiveRouteTableFuture", "Result", erlr.Response.Response, "Failure responding to request") + } + } + return +} + +// InterfacesListEffectiveNetworkSecurityGroupsFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type InterfacesListEffectiveNetworkSecurityGroupsFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *InterfacesListEffectiveNetworkSecurityGroupsFuture) Result(client InterfacesClient) (ensglr EffectiveNetworkSecurityGroupListResult, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesListEffectiveNetworkSecurityGroupsFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.InterfacesListEffectiveNetworkSecurityGroupsFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if ensglr.Response.Response, err = future.GetResult(sender); err == nil && ensglr.Response.Response.StatusCode != http.StatusNoContent { + ensglr, err = client.ListEffectiveNetworkSecurityGroupsResponder(ensglr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfacesListEffectiveNetworkSecurityGroupsFuture", "Result", ensglr.Response.Response, "Failure responding to request") + } + } + return +} + +// InterfaceTapConfiguration tap configuration in a Network Interface. +type InterfaceTapConfiguration struct { + autorest.Response `json:"-"` + // InterfaceTapConfigurationPropertiesFormat - Properties of the Virtual Network Tap configuration. + *InterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Sub Resource type. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for InterfaceTapConfiguration. +func (itc InterfaceTapConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if itc.InterfaceTapConfigurationPropertiesFormat != nil { + objectMap["properties"] = itc.InterfaceTapConfigurationPropertiesFormat + } + if itc.Name != nil { + objectMap["name"] = itc.Name + } + if itc.ID != nil { + objectMap["id"] = itc.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for InterfaceTapConfiguration struct. +func (itc *InterfaceTapConfiguration) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var interfaceTapConfigurationPropertiesFormat InterfaceTapConfigurationPropertiesFormat + err = json.Unmarshal(*v, &interfaceTapConfigurationPropertiesFormat) + if err != nil { + return err + } + itc.InterfaceTapConfigurationPropertiesFormat = &interfaceTapConfigurationPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + itc.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + itc.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + itc.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + itc.ID = &ID + } + } + } + + return nil +} + +// InterfaceTapConfigurationListResult response for list tap configurations API service call. +type InterfaceTapConfigurationListResult struct { + autorest.Response `json:"-"` + // Value - A list of tap configurations. + Value *[]InterfaceTapConfiguration `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for InterfaceTapConfigurationListResult. +func (itclr InterfaceTapConfigurationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if itclr.Value != nil { + objectMap["value"] = itclr.Value + } + return json.Marshal(objectMap) +} + +// InterfaceTapConfigurationListResultIterator provides access to a complete listing of +// InterfaceTapConfiguration values. +type InterfaceTapConfigurationListResultIterator struct { + i int + page InterfaceTapConfigurationListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *InterfaceTapConfigurationListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceTapConfigurationListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *InterfaceTapConfigurationListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter InterfaceTapConfigurationListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter InterfaceTapConfigurationListResultIterator) Response() InterfaceTapConfigurationListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter InterfaceTapConfigurationListResultIterator) Value() InterfaceTapConfiguration { + if !iter.page.NotDone() { + return InterfaceTapConfiguration{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the InterfaceTapConfigurationListResultIterator type. +func NewInterfaceTapConfigurationListResultIterator(page InterfaceTapConfigurationListResultPage) InterfaceTapConfigurationListResultIterator { + return InterfaceTapConfigurationListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (itclr InterfaceTapConfigurationListResult) IsEmpty() bool { + return itclr.Value == nil || len(*itclr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (itclr InterfaceTapConfigurationListResult) hasNextLink() bool { + return itclr.NextLink != nil && len(*itclr.NextLink) != 0 +} + +// interfaceTapConfigurationListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (itclr InterfaceTapConfigurationListResult) interfaceTapConfigurationListResultPreparer(ctx context.Context) (*http.Request, error) { + if !itclr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(itclr.NextLink))) +} + +// InterfaceTapConfigurationListResultPage contains a page of InterfaceTapConfiguration values. +type InterfaceTapConfigurationListResultPage struct { + fn func(context.Context, InterfaceTapConfigurationListResult) (InterfaceTapConfigurationListResult, error) + itclr InterfaceTapConfigurationListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *InterfaceTapConfigurationListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceTapConfigurationListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.itclr) + if err != nil { + return err + } + page.itclr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *InterfaceTapConfigurationListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page InterfaceTapConfigurationListResultPage) NotDone() bool { + return !page.itclr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page InterfaceTapConfigurationListResultPage) Response() InterfaceTapConfigurationListResult { + return page.itclr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page InterfaceTapConfigurationListResultPage) Values() []InterfaceTapConfiguration { + if page.itclr.IsEmpty() { + return nil + } + return *page.itclr.Value +} + +// Creates a new instance of the InterfaceTapConfigurationListResultPage type. +func NewInterfaceTapConfigurationListResultPage(cur InterfaceTapConfigurationListResult, getNextPage func(context.Context, InterfaceTapConfigurationListResult) (InterfaceTapConfigurationListResult, error)) InterfaceTapConfigurationListResultPage { + return InterfaceTapConfigurationListResultPage{ + fn: getNextPage, + itclr: cur, + } +} + +// InterfaceTapConfigurationPropertiesFormat properties of Virtual Network Tap configuration. +type InterfaceTapConfigurationPropertiesFormat struct { + // VirtualNetworkTap - The reference to the Virtual Network Tap resource. + VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the network interface tap configuration resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for InterfaceTapConfigurationPropertiesFormat. +func (itcpf InterfaceTapConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if itcpf.VirtualNetworkTap != nil { + objectMap["virtualNetworkTap"] = itcpf.VirtualNetworkTap + } + return json.Marshal(objectMap) +} + +// InterfaceTapConfigurationsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type InterfaceTapConfigurationsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *InterfaceTapConfigurationsCreateOrUpdateFuture) Result(client InterfaceTapConfigurationsClient) (itc InterfaceTapConfiguration, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.InterfaceTapConfigurationsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if itc.Response.Response, err = future.GetResult(sender); err == nil && itc.Response.Response.StatusCode != http.StatusNoContent { + itc, err = client.CreateOrUpdateResponder(itc.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsCreateOrUpdateFuture", "Result", itc.Response.Response, "Failure responding to request") + } + } + return +} + +// InterfaceTapConfigurationsDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type InterfaceTapConfigurationsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *InterfaceTapConfigurationsDeleteFuture) Result(client InterfaceTapConfigurationsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.InterfaceTapConfigurationsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// IPAddressAvailabilityResult response for CheckIPAddressAvailability API service call. +type IPAddressAvailabilityResult struct { + autorest.Response `json:"-"` + // Available - Private IP address availability. + Available *bool `json:"available,omitempty"` + // AvailableIPAddresses - Contains other available private IP addresses if the asked for address is taken. + AvailableIPAddresses *[]string `json:"availableIPAddresses,omitempty"` +} + +// IPAllocation ipAllocation resource. +type IPAllocation struct { + autorest.Response `json:"-"` + // IPAllocationPropertiesFormat - Properties of the IpAllocation. + *IPAllocationPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for IPAllocation. +func (ia IPAllocation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ia.IPAllocationPropertiesFormat != nil { + objectMap["properties"] = ia.IPAllocationPropertiesFormat + } + if ia.ID != nil { + objectMap["id"] = ia.ID + } + if ia.Location != nil { + objectMap["location"] = ia.Location + } + if ia.Tags != nil { + objectMap["tags"] = ia.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for IPAllocation struct. +func (ia *IPAllocation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var IPAllocationPropertiesFormat IPAllocationPropertiesFormat + err = json.Unmarshal(*v, &IPAllocationPropertiesFormat) + if err != nil { + return err + } + ia.IPAllocationPropertiesFormat = &IPAllocationPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + ia.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + ia.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ia.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ia.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + ia.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + ia.Tags = tags + } + } + } + + return nil +} + +// IPAllocationListResult response for the ListIpAllocations API service call. +type IPAllocationListResult struct { + autorest.Response `json:"-"` + // Value - A list of IpAllocation resources. + Value *[]IPAllocation `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// IPAllocationListResultIterator provides access to a complete listing of IPAllocation values. +type IPAllocationListResultIterator struct { + i int + page IPAllocationListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *IPAllocationListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IPAllocationListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *IPAllocationListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter IPAllocationListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter IPAllocationListResultIterator) Response() IPAllocationListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter IPAllocationListResultIterator) Value() IPAllocation { + if !iter.page.NotDone() { + return IPAllocation{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the IPAllocationListResultIterator type. +func NewIPAllocationListResultIterator(page IPAllocationListResultPage) IPAllocationListResultIterator { + return IPAllocationListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (ialr IPAllocationListResult) IsEmpty() bool { + return ialr.Value == nil || len(*ialr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (ialr IPAllocationListResult) hasNextLink() bool { + return ialr.NextLink != nil && len(*ialr.NextLink) != 0 +} + +// iPAllocationListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (ialr IPAllocationListResult) iPAllocationListResultPreparer(ctx context.Context) (*http.Request, error) { + if !ialr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(ialr.NextLink))) +} + +// IPAllocationListResultPage contains a page of IPAllocation values. +type IPAllocationListResultPage struct { + fn func(context.Context, IPAllocationListResult) (IPAllocationListResult, error) + ialr IPAllocationListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *IPAllocationListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IPAllocationListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.ialr) + if err != nil { + return err + } + page.ialr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *IPAllocationListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page IPAllocationListResultPage) NotDone() bool { + return !page.ialr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page IPAllocationListResultPage) Response() IPAllocationListResult { + return page.ialr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page IPAllocationListResultPage) Values() []IPAllocation { + if page.ialr.IsEmpty() { + return nil + } + return *page.ialr.Value +} + +// Creates a new instance of the IPAllocationListResultPage type. +func NewIPAllocationListResultPage(cur IPAllocationListResult, getNextPage func(context.Context, IPAllocationListResult) (IPAllocationListResult, error)) IPAllocationListResultPage { + return IPAllocationListResultPage{ + fn: getNextPage, + ialr: cur, + } +} + +// IPAllocationPropertiesFormat properties of the IpAllocation. +type IPAllocationPropertiesFormat struct { + // Subnet - READ-ONLY; The Subnet that using the prefix of this IpAllocation resource. + Subnet *SubResource `json:"subnet,omitempty"` + // VirtualNetwork - READ-ONLY; The VirtualNetwork that using the prefix of this IpAllocation resource. + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` + // Type - The type for the IpAllocation. Possible values include: 'Undefined', 'Hypernet' + Type IPAllocationType `json:"type,omitempty"` + // Prefix - The address prefix for the IpAllocation. + Prefix *string `json:"prefix,omitempty"` + // PrefixLength - The address prefix length for the IpAllocation. + PrefixLength *int32 `json:"prefixLength,omitempty"` + // PrefixType - The address prefix Type for the IpAllocation. Possible values include: 'IPv4', 'IPv6' + PrefixType IPVersion `json:"prefixType,omitempty"` + // IpamAllocationID - The IPAM allocation ID. + IpamAllocationID *string `json:"ipamAllocationId,omitempty"` + // AllocationTags - IpAllocation tags. + AllocationTags map[string]*string `json:"allocationTags"` +} + +// MarshalJSON is the custom marshaler for IPAllocationPropertiesFormat. +func (iapf IPAllocationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if iapf.Type != "" { + objectMap["type"] = iapf.Type + } + if iapf.Prefix != nil { + objectMap["prefix"] = iapf.Prefix + } + if iapf.PrefixLength != nil { + objectMap["prefixLength"] = iapf.PrefixLength + } + if iapf.PrefixType != "" { + objectMap["prefixType"] = iapf.PrefixType + } + if iapf.IpamAllocationID != nil { + objectMap["ipamAllocationId"] = iapf.IpamAllocationID + } + if iapf.AllocationTags != nil { + objectMap["allocationTags"] = iapf.AllocationTags + } + return json.Marshal(objectMap) +} + +// IPAllocationsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type IPAllocationsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *IPAllocationsCreateOrUpdateFuture) Result(client IPAllocationsClient) (ia IPAllocation, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPAllocationsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.IPAllocationsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if ia.Response.Response, err = future.GetResult(sender); err == nil && ia.Response.Response.StatusCode != http.StatusNoContent { + ia, err = client.CreateOrUpdateResponder(ia.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPAllocationsCreateOrUpdateFuture", "Result", ia.Response.Response, "Failure responding to request") + } + } + return +} + +// IPAllocationsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type IPAllocationsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *IPAllocationsDeleteFuture) Result(client IPAllocationsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPAllocationsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.IPAllocationsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// IPConfiguration IP configuration. +type IPConfiguration struct { + // IPConfigurationPropertiesFormat - Properties of the IP configuration. + *IPConfigurationPropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for IPConfiguration. +func (ic IPConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ic.IPConfigurationPropertiesFormat != nil { + objectMap["properties"] = ic.IPConfigurationPropertiesFormat + } + if ic.Name != nil { + objectMap["name"] = ic.Name + } + if ic.ID != nil { + objectMap["id"] = ic.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for IPConfiguration struct. +func (ic *IPConfiguration) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var IPConfigurationPropertiesFormat IPConfigurationPropertiesFormat + err = json.Unmarshal(*v, &IPConfigurationPropertiesFormat) + if err != nil { + return err + } + ic.IPConfigurationPropertiesFormat = &IPConfigurationPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ic.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + ic.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + ic.ID = &ID + } + } + } + + return nil +} + +// IPConfigurationBgpPeeringAddress properties of IPConfigurationBgpPeeringAddress. +type IPConfigurationBgpPeeringAddress struct { + // IpconfigurationID - The ID of IP configuration which belongs to gateway. + IpconfigurationID *string `json:"ipconfigurationId,omitempty"` + // DefaultBgpIPAddresses - READ-ONLY; The list of default BGP peering addresses which belong to IP configuration. + DefaultBgpIPAddresses *[]string `json:"defaultBgpIpAddresses,omitempty"` + // CustomBgpIPAddresses - The list of custom BGP peering addresses which belong to IP configuration. + CustomBgpIPAddresses *[]string `json:"customBgpIpAddresses,omitempty"` + // TunnelIPAddresses - READ-ONLY; The list of tunnel public IP addresses which belong to IP configuration. + TunnelIPAddresses *[]string `json:"tunnelIpAddresses,omitempty"` +} + +// MarshalJSON is the custom marshaler for IPConfigurationBgpPeeringAddress. +func (icbpa IPConfigurationBgpPeeringAddress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if icbpa.IpconfigurationID != nil { + objectMap["ipconfigurationId"] = icbpa.IpconfigurationID + } + if icbpa.CustomBgpIPAddresses != nil { + objectMap["customBgpIpAddresses"] = icbpa.CustomBgpIPAddresses + } + return json.Marshal(objectMap) +} + +// IPConfigurationProfile IP configuration profile child resource. +type IPConfigurationProfile struct { + // IPConfigurationProfilePropertiesFormat - Properties of the IP configuration profile. + *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Sub Resource type. + Type *string `json:"type,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for IPConfigurationProfile. +func (icp IPConfigurationProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if icp.IPConfigurationProfilePropertiesFormat != nil { + objectMap["properties"] = icp.IPConfigurationProfilePropertiesFormat + } + if icp.Name != nil { + objectMap["name"] = icp.Name + } + if icp.ID != nil { + objectMap["id"] = icp.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for IPConfigurationProfile struct. +func (icp *IPConfigurationProfile) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var IPConfigurationProfilePropertiesFormat IPConfigurationProfilePropertiesFormat + err = json.Unmarshal(*v, &IPConfigurationProfilePropertiesFormat) + if err != nil { + return err + } + icp.IPConfigurationProfilePropertiesFormat = &IPConfigurationProfilePropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + icp.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + icp.Type = &typeVar + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + icp.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + icp.ID = &ID + } + } + } + + return nil +} + +// IPConfigurationProfilePropertiesFormat IP configuration profile properties. +type IPConfigurationProfilePropertiesFormat struct { + // Subnet - The reference to the subnet resource to create a container network interface ip configuration. + Subnet *Subnet `json:"subnet,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the IP configuration profile resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for IPConfigurationProfilePropertiesFormat. +func (icppf IPConfigurationProfilePropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if icppf.Subnet != nil { + objectMap["subnet"] = icppf.Subnet + } + return json.Marshal(objectMap) +} + +// IPConfigurationPropertiesFormat properties of IP configuration. +type IPConfigurationPropertiesFormat struct { + // PrivateIPAddress - The private IP address of the IP configuration. + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + // PrivateIPAllocationMethod - The private IP address allocation method. Possible values include: 'Static', 'Dynamic' + PrivateIPAllocationMethod IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + // Subnet - The reference to the subnet resource. + Subnet *Subnet `json:"subnet,omitempty"` + // PublicIPAddress - The reference to the public IP resource. + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the IP configuration resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for IPConfigurationPropertiesFormat. +func (icpf IPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if icpf.PrivateIPAddress != nil { + objectMap["privateIPAddress"] = icpf.PrivateIPAddress + } + if icpf.PrivateIPAllocationMethod != "" { + objectMap["privateIPAllocationMethod"] = icpf.PrivateIPAllocationMethod + } + if icpf.Subnet != nil { + objectMap["subnet"] = icpf.Subnet + } + if icpf.PublicIPAddress != nil { + objectMap["publicIPAddress"] = icpf.PublicIPAddress + } + return json.Marshal(objectMap) +} + +// IPGroup the IpGroups resource information. +type IPGroup struct { + autorest.Response `json:"-"` + // IPGroupPropertiesFormat - Properties of the IpGroups. + *IPGroupPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for IPGroup. +func (ig IPGroup) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ig.IPGroupPropertiesFormat != nil { + objectMap["properties"] = ig.IPGroupPropertiesFormat + } + if ig.ID != nil { + objectMap["id"] = ig.ID + } + if ig.Location != nil { + objectMap["location"] = ig.Location + } + if ig.Tags != nil { + objectMap["tags"] = ig.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for IPGroup struct. +func (ig *IPGroup) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var IPGroupPropertiesFormat IPGroupPropertiesFormat + err = json.Unmarshal(*v, &IPGroupPropertiesFormat) + if err != nil { + return err + } + ig.IPGroupPropertiesFormat = &IPGroupPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + ig.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + ig.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ig.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ig.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + ig.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + ig.Tags = tags + } + } + } + + return nil +} + +// IPGroupListResult response for the ListIpGroups API service call. +type IPGroupListResult struct { + autorest.Response `json:"-"` + // Value - The list of IpGroups information resources. + Value *[]IPGroup `json:"value,omitempty"` + // NextLink - URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// IPGroupListResultIterator provides access to a complete listing of IPGroup values. +type IPGroupListResultIterator struct { + i int + page IPGroupListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *IPGroupListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IPGroupListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *IPGroupListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter IPGroupListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter IPGroupListResultIterator) Response() IPGroupListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter IPGroupListResultIterator) Value() IPGroup { + if !iter.page.NotDone() { + return IPGroup{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the IPGroupListResultIterator type. +func NewIPGroupListResultIterator(page IPGroupListResultPage) IPGroupListResultIterator { + return IPGroupListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (iglr IPGroupListResult) IsEmpty() bool { + return iglr.Value == nil || len(*iglr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (iglr IPGroupListResult) hasNextLink() bool { + return iglr.NextLink != nil && len(*iglr.NextLink) != 0 +} + +// iPGroupListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (iglr IPGroupListResult) iPGroupListResultPreparer(ctx context.Context) (*http.Request, error) { + if !iglr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(iglr.NextLink))) +} + +// IPGroupListResultPage contains a page of IPGroup values. +type IPGroupListResultPage struct { + fn func(context.Context, IPGroupListResult) (IPGroupListResult, error) + iglr IPGroupListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *IPGroupListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IPGroupListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.iglr) + if err != nil { + return err + } + page.iglr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *IPGroupListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page IPGroupListResultPage) NotDone() bool { + return !page.iglr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page IPGroupListResultPage) Response() IPGroupListResult { + return page.iglr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page IPGroupListResultPage) Values() []IPGroup { + if page.iglr.IsEmpty() { + return nil + } + return *page.iglr.Value +} + +// Creates a new instance of the IPGroupListResultPage type. +func NewIPGroupListResultPage(cur IPGroupListResult, getNextPage func(context.Context, IPGroupListResult) (IPGroupListResult, error)) IPGroupListResultPage { + return IPGroupListResultPage{ + fn: getNextPage, + iglr: cur, + } +} + +// IPGroupPropertiesFormat the IpGroups property information. +type IPGroupPropertiesFormat struct { + // ProvisioningState - READ-ONLY; The provisioning state of the IpGroups resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // IPAddresses - IpAddresses/IpAddressPrefixes in the IpGroups resource. + IPAddresses *[]string `json:"ipAddresses,omitempty"` + // Firewalls - READ-ONLY; List of references to Firewall resources that this IpGroups is associated with. + Firewalls *[]SubResource `json:"firewalls,omitempty"` + // FirewallPolicies - READ-ONLY; List of references to Firewall Policies resources that this IpGroups is associated with. + FirewallPolicies *[]SubResource `json:"firewallPolicies,omitempty"` +} + +// MarshalJSON is the custom marshaler for IPGroupPropertiesFormat. +func (igpf IPGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if igpf.IPAddresses != nil { + objectMap["ipAddresses"] = igpf.IPAddresses + } + return json.Marshal(objectMap) +} + +// IPGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type IPGroupsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *IPGroupsCreateOrUpdateFuture) Result(client IPGroupsClient) (ig IPGroup, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPGroupsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.IPGroupsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if ig.Response.Response, err = future.GetResult(sender); err == nil && ig.Response.Response.StatusCode != http.StatusNoContent { + ig, err = client.CreateOrUpdateResponder(ig.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPGroupsCreateOrUpdateFuture", "Result", ig.Response.Response, "Failure responding to request") + } + } + return +} + +// IPGroupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type IPGroupsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *IPGroupsDeleteFuture) Result(client IPGroupsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.IPGroupsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.IPGroupsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// IpsecPolicy an IPSec Policy configuration for a virtual network gateway connection. +type IpsecPolicy struct { + // SaLifeTimeSeconds - The IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for a site to site VPN tunnel. + SaLifeTimeSeconds *int32 `json:"saLifeTimeSeconds,omitempty"` + // SaDataSizeKilobytes - The IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for a site to site VPN tunnel. + SaDataSizeKilobytes *int32 `json:"saDataSizeKilobytes,omitempty"` + // IpsecEncryption - The IPSec encryption algorithm (IKE phase 1). Possible values include: 'IpsecEncryptionNone', 'IpsecEncryptionDES', 'IpsecEncryptionDES3', 'IpsecEncryptionAES128', 'IpsecEncryptionAES192', 'IpsecEncryptionAES256', 'IpsecEncryptionGCMAES128', 'IpsecEncryptionGCMAES192', 'IpsecEncryptionGCMAES256' + IpsecEncryption IpsecEncryption `json:"ipsecEncryption,omitempty"` + // IpsecIntegrity - The IPSec integrity algorithm (IKE phase 1). Possible values include: 'IpsecIntegrityMD5', 'IpsecIntegritySHA1', 'IpsecIntegritySHA256', 'IpsecIntegrityGCMAES128', 'IpsecIntegrityGCMAES192', 'IpsecIntegrityGCMAES256' + IpsecIntegrity IpsecIntegrity `json:"ipsecIntegrity,omitempty"` + // IkeEncryption - The IKE encryption algorithm (IKE phase 2). Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES256', 'GCMAES128' + IkeEncryption IkeEncryption `json:"ikeEncryption,omitempty"` + // IkeIntegrity - The IKE integrity algorithm (IKE phase 2). Possible values include: 'IkeIntegrityMD5', 'IkeIntegritySHA1', 'IkeIntegritySHA256', 'IkeIntegritySHA384', 'IkeIntegrityGCMAES256', 'IkeIntegrityGCMAES128' + IkeIntegrity IkeIntegrity `json:"ikeIntegrity,omitempty"` + // DhGroup - The DH Group used in IKE Phase 1 for initial SA. Possible values include: 'DhGroupNone', 'DhGroupDHGroup1', 'DhGroupDHGroup2', 'DhGroupDHGroup14', 'DhGroupDHGroup2048', 'DhGroupECP256', 'DhGroupECP384', 'DhGroupDHGroup24' + DhGroup DhGroup `json:"dhGroup,omitempty"` + // PfsGroup - The Pfs Group used in IKE Phase 2 for new child SA. Possible values include: 'PfsGroupNone', 'PfsGroupPFS1', 'PfsGroupPFS2', 'PfsGroupPFS2048', 'PfsGroupECP256', 'PfsGroupECP384', 'PfsGroupPFS24', 'PfsGroupPFS14', 'PfsGroupPFSMM' + PfsGroup PfsGroup `json:"pfsGroup,omitempty"` +} + +// IPTag contains the IpTag associated with the object. +type IPTag struct { + // IPTagType - The IP tag type. Example: FirstPartyUsage. + IPTagType *string `json:"ipTagType,omitempty"` + // Tag - The value of the IP tag associated with the public IP. Example: SQL. + Tag *string `json:"tag,omitempty"` +} + +// Ipv6CircuitConnectionConfig iPv6 Circuit Connection properties for global reach. +type Ipv6CircuitConnectionConfig struct { + // AddressPrefix - /125 IP address space to carve out customer addresses for global reach. + AddressPrefix *string `json:"addressPrefix,omitempty"` + // CircuitConnectionStatus - READ-ONLY; Express Route Circuit connection state. Possible values include: 'Connected', 'Connecting', 'Disconnected' + CircuitConnectionStatus CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` +} + +// MarshalJSON is the custom marshaler for Ipv6CircuitConnectionConfig. +func (i6ccc Ipv6CircuitConnectionConfig) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if i6ccc.AddressPrefix != nil { + objectMap["addressPrefix"] = i6ccc.AddressPrefix + } + return json.Marshal(objectMap) +} + +// Ipv6ExpressRouteCircuitPeeringConfig contains IPv6 peering config. +type Ipv6ExpressRouteCircuitPeeringConfig struct { + // PrimaryPeerAddressPrefix - The primary address prefix. + PrimaryPeerAddressPrefix *string `json:"primaryPeerAddressPrefix,omitempty"` + // SecondaryPeerAddressPrefix - The secondary address prefix. + SecondaryPeerAddressPrefix *string `json:"secondaryPeerAddressPrefix,omitempty"` + // MicrosoftPeeringConfig - The Microsoft peering configuration. + MicrosoftPeeringConfig *ExpressRouteCircuitPeeringConfig `json:"microsoftPeeringConfig,omitempty"` + // RouteFilter - The reference to the RouteFilter resource. + RouteFilter *SubResource `json:"routeFilter,omitempty"` + // State - The state of peering. Possible values include: 'ExpressRouteCircuitPeeringStateDisabled', 'ExpressRouteCircuitPeeringStateEnabled' + State ExpressRouteCircuitPeeringState `json:"state,omitempty"` +} + +// ListHubRouteTablesResult list of RouteTables and a URL nextLink to get the next set of results. +type ListHubRouteTablesResult struct { + autorest.Response `json:"-"` + // Value - List of RouteTables. + Value *[]HubRouteTable `json:"value,omitempty"` + // NextLink - URL to get the next set of operation list results if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// ListHubRouteTablesResultIterator provides access to a complete listing of HubRouteTable values. +type ListHubRouteTablesResultIterator struct { + i int + page ListHubRouteTablesResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ListHubRouteTablesResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListHubRouteTablesResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ListHubRouteTablesResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ListHubRouteTablesResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ListHubRouteTablesResultIterator) Response() ListHubRouteTablesResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ListHubRouteTablesResultIterator) Value() HubRouteTable { + if !iter.page.NotDone() { + return HubRouteTable{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ListHubRouteTablesResultIterator type. +func NewListHubRouteTablesResultIterator(page ListHubRouteTablesResultPage) ListHubRouteTablesResultIterator { + return ListHubRouteTablesResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lhrtr ListHubRouteTablesResult) IsEmpty() bool { + return lhrtr.Value == nil || len(*lhrtr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (lhrtr ListHubRouteTablesResult) hasNextLink() bool { + return lhrtr.NextLink != nil && len(*lhrtr.NextLink) != 0 +} + +// listHubRouteTablesResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lhrtr ListHubRouteTablesResult) listHubRouteTablesResultPreparer(ctx context.Context) (*http.Request, error) { + if !lhrtr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lhrtr.NextLink))) +} + +// ListHubRouteTablesResultPage contains a page of HubRouteTable values. +type ListHubRouteTablesResultPage struct { + fn func(context.Context, ListHubRouteTablesResult) (ListHubRouteTablesResult, error) + lhrtr ListHubRouteTablesResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ListHubRouteTablesResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListHubRouteTablesResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.lhrtr) + if err != nil { + return err + } + page.lhrtr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ListHubRouteTablesResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ListHubRouteTablesResultPage) NotDone() bool { + return !page.lhrtr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ListHubRouteTablesResultPage) Response() ListHubRouteTablesResult { + return page.lhrtr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ListHubRouteTablesResultPage) Values() []HubRouteTable { + if page.lhrtr.IsEmpty() { + return nil + } + return *page.lhrtr.Value +} + +// Creates a new instance of the ListHubRouteTablesResultPage type. +func NewListHubRouteTablesResultPage(cur ListHubRouteTablesResult, getNextPage func(context.Context, ListHubRouteTablesResult) (ListHubRouteTablesResult, error)) ListHubRouteTablesResultPage { + return ListHubRouteTablesResultPage{ + fn: getNextPage, + lhrtr: cur, + } +} + +// ListHubVirtualNetworkConnectionsResult list of HubVirtualNetworkConnections and a URL nextLink to get +// the next set of results. +type ListHubVirtualNetworkConnectionsResult struct { + autorest.Response `json:"-"` + // Value - List of HubVirtualNetworkConnections. + Value *[]HubVirtualNetworkConnection `json:"value,omitempty"` + // NextLink - URL to get the next set of operation list results if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// ListHubVirtualNetworkConnectionsResultIterator provides access to a complete listing of +// HubVirtualNetworkConnection values. +type ListHubVirtualNetworkConnectionsResultIterator struct { + i int + page ListHubVirtualNetworkConnectionsResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ListHubVirtualNetworkConnectionsResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListHubVirtualNetworkConnectionsResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ListHubVirtualNetworkConnectionsResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ListHubVirtualNetworkConnectionsResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ListHubVirtualNetworkConnectionsResultIterator) Response() ListHubVirtualNetworkConnectionsResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ListHubVirtualNetworkConnectionsResultIterator) Value() HubVirtualNetworkConnection { + if !iter.page.NotDone() { + return HubVirtualNetworkConnection{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ListHubVirtualNetworkConnectionsResultIterator type. +func NewListHubVirtualNetworkConnectionsResultIterator(page ListHubVirtualNetworkConnectionsResultPage) ListHubVirtualNetworkConnectionsResultIterator { + return ListHubVirtualNetworkConnectionsResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lhvncr ListHubVirtualNetworkConnectionsResult) IsEmpty() bool { + return lhvncr.Value == nil || len(*lhvncr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (lhvncr ListHubVirtualNetworkConnectionsResult) hasNextLink() bool { + return lhvncr.NextLink != nil && len(*lhvncr.NextLink) != 0 +} + +// listHubVirtualNetworkConnectionsResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lhvncr ListHubVirtualNetworkConnectionsResult) listHubVirtualNetworkConnectionsResultPreparer(ctx context.Context) (*http.Request, error) { + if !lhvncr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lhvncr.NextLink))) +} + +// ListHubVirtualNetworkConnectionsResultPage contains a page of HubVirtualNetworkConnection values. +type ListHubVirtualNetworkConnectionsResultPage struct { + fn func(context.Context, ListHubVirtualNetworkConnectionsResult) (ListHubVirtualNetworkConnectionsResult, error) + lhvncr ListHubVirtualNetworkConnectionsResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ListHubVirtualNetworkConnectionsResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListHubVirtualNetworkConnectionsResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.lhvncr) + if err != nil { + return err + } + page.lhvncr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ListHubVirtualNetworkConnectionsResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ListHubVirtualNetworkConnectionsResultPage) NotDone() bool { + return !page.lhvncr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ListHubVirtualNetworkConnectionsResultPage) Response() ListHubVirtualNetworkConnectionsResult { + return page.lhvncr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ListHubVirtualNetworkConnectionsResultPage) Values() []HubVirtualNetworkConnection { + if page.lhvncr.IsEmpty() { + return nil + } + return *page.lhvncr.Value +} + +// Creates a new instance of the ListHubVirtualNetworkConnectionsResultPage type. +func NewListHubVirtualNetworkConnectionsResultPage(cur ListHubVirtualNetworkConnectionsResult, getNextPage func(context.Context, ListHubVirtualNetworkConnectionsResult) (ListHubVirtualNetworkConnectionsResult, error)) ListHubVirtualNetworkConnectionsResultPage { + return ListHubVirtualNetworkConnectionsResultPage{ + fn: getNextPage, + lhvncr: cur, + } +} + +// ListP2SVpnGatewaysResult result of the request to list P2SVpnGateways. It contains a list of +// P2SVpnGateways and a URL nextLink to get the next set of results. +type ListP2SVpnGatewaysResult struct { + autorest.Response `json:"-"` + // Value - List of P2SVpnGateways. + Value *[]P2SVpnGateway `json:"value,omitempty"` + // NextLink - URL to get the next set of operation list results if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// ListP2SVpnGatewaysResultIterator provides access to a complete listing of P2SVpnGateway values. +type ListP2SVpnGatewaysResultIterator struct { + i int + page ListP2SVpnGatewaysResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ListP2SVpnGatewaysResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListP2SVpnGatewaysResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ListP2SVpnGatewaysResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ListP2SVpnGatewaysResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ListP2SVpnGatewaysResultIterator) Response() ListP2SVpnGatewaysResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ListP2SVpnGatewaysResultIterator) Value() P2SVpnGateway { + if !iter.page.NotDone() { + return P2SVpnGateway{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ListP2SVpnGatewaysResultIterator type. +func NewListP2SVpnGatewaysResultIterator(page ListP2SVpnGatewaysResultPage) ListP2SVpnGatewaysResultIterator { + return ListP2SVpnGatewaysResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lpvgr ListP2SVpnGatewaysResult) IsEmpty() bool { + return lpvgr.Value == nil || len(*lpvgr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (lpvgr ListP2SVpnGatewaysResult) hasNextLink() bool { + return lpvgr.NextLink != nil && len(*lpvgr.NextLink) != 0 +} + +// listP2SVpnGatewaysResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lpvgr ListP2SVpnGatewaysResult) listP2SVpnGatewaysResultPreparer(ctx context.Context) (*http.Request, error) { + if !lpvgr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lpvgr.NextLink))) +} + +// ListP2SVpnGatewaysResultPage contains a page of P2SVpnGateway values. +type ListP2SVpnGatewaysResultPage struct { + fn func(context.Context, ListP2SVpnGatewaysResult) (ListP2SVpnGatewaysResult, error) + lpvgr ListP2SVpnGatewaysResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ListP2SVpnGatewaysResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListP2SVpnGatewaysResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.lpvgr) + if err != nil { + return err + } + page.lpvgr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ListP2SVpnGatewaysResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ListP2SVpnGatewaysResultPage) NotDone() bool { + return !page.lpvgr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ListP2SVpnGatewaysResultPage) Response() ListP2SVpnGatewaysResult { + return page.lpvgr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ListP2SVpnGatewaysResultPage) Values() []P2SVpnGateway { + if page.lpvgr.IsEmpty() { + return nil + } + return *page.lpvgr.Value +} + +// Creates a new instance of the ListP2SVpnGatewaysResultPage type. +func NewListP2SVpnGatewaysResultPage(cur ListP2SVpnGatewaysResult, getNextPage func(context.Context, ListP2SVpnGatewaysResult) (ListP2SVpnGatewaysResult, error)) ListP2SVpnGatewaysResultPage { + return ListP2SVpnGatewaysResultPage{ + fn: getNextPage, + lpvgr: cur, + } +} + +// ListString ... +type ListString struct { + autorest.Response `json:"-"` + Value *[]string `json:"value,omitempty"` +} + +// ListVirtualHubBgpConnectionResults virtualHubBgpConnections list. +type ListVirtualHubBgpConnectionResults struct { + autorest.Response `json:"-"` + // Value - The list of VirtualHubBgpConnections. + Value *[]BgpConnection `json:"value,omitempty"` + // NextLink - URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// ListVirtualHubBgpConnectionResultsIterator provides access to a complete listing of BgpConnection +// values. +type ListVirtualHubBgpConnectionResultsIterator struct { + i int + page ListVirtualHubBgpConnectionResultsPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ListVirtualHubBgpConnectionResultsIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListVirtualHubBgpConnectionResultsIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ListVirtualHubBgpConnectionResultsIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ListVirtualHubBgpConnectionResultsIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ListVirtualHubBgpConnectionResultsIterator) Response() ListVirtualHubBgpConnectionResults { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ListVirtualHubBgpConnectionResultsIterator) Value() BgpConnection { + if !iter.page.NotDone() { + return BgpConnection{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ListVirtualHubBgpConnectionResultsIterator type. +func NewListVirtualHubBgpConnectionResultsIterator(page ListVirtualHubBgpConnectionResultsPage) ListVirtualHubBgpConnectionResultsIterator { + return ListVirtualHubBgpConnectionResultsIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lvhbcr ListVirtualHubBgpConnectionResults) IsEmpty() bool { + return lvhbcr.Value == nil || len(*lvhbcr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (lvhbcr ListVirtualHubBgpConnectionResults) hasNextLink() bool { + return lvhbcr.NextLink != nil && len(*lvhbcr.NextLink) != 0 +} + +// listVirtualHubBgpConnectionResultsPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lvhbcr ListVirtualHubBgpConnectionResults) listVirtualHubBgpConnectionResultsPreparer(ctx context.Context) (*http.Request, error) { + if !lvhbcr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lvhbcr.NextLink))) +} + +// ListVirtualHubBgpConnectionResultsPage contains a page of BgpConnection values. +type ListVirtualHubBgpConnectionResultsPage struct { + fn func(context.Context, ListVirtualHubBgpConnectionResults) (ListVirtualHubBgpConnectionResults, error) + lvhbcr ListVirtualHubBgpConnectionResults +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ListVirtualHubBgpConnectionResultsPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListVirtualHubBgpConnectionResultsPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.lvhbcr) + if err != nil { + return err + } + page.lvhbcr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ListVirtualHubBgpConnectionResultsPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ListVirtualHubBgpConnectionResultsPage) NotDone() bool { + return !page.lvhbcr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ListVirtualHubBgpConnectionResultsPage) Response() ListVirtualHubBgpConnectionResults { + return page.lvhbcr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ListVirtualHubBgpConnectionResultsPage) Values() []BgpConnection { + if page.lvhbcr.IsEmpty() { + return nil + } + return *page.lvhbcr.Value +} + +// Creates a new instance of the ListVirtualHubBgpConnectionResultsPage type. +func NewListVirtualHubBgpConnectionResultsPage(cur ListVirtualHubBgpConnectionResults, getNextPage func(context.Context, ListVirtualHubBgpConnectionResults) (ListVirtualHubBgpConnectionResults, error)) ListVirtualHubBgpConnectionResultsPage { + return ListVirtualHubBgpConnectionResultsPage{ + fn: getNextPage, + lvhbcr: cur, + } +} + +// ListVirtualHubIPConfigurationResults virtualHubIpConfigurations list. +type ListVirtualHubIPConfigurationResults struct { + autorest.Response `json:"-"` + // Value - The list of VirtualHubIpConfigurations. + Value *[]HubIPConfiguration `json:"value,omitempty"` + // NextLink - URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// ListVirtualHubIPConfigurationResultsIterator provides access to a complete listing of HubIPConfiguration +// values. +type ListVirtualHubIPConfigurationResultsIterator struct { + i int + page ListVirtualHubIPConfigurationResultsPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ListVirtualHubIPConfigurationResultsIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListVirtualHubIPConfigurationResultsIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ListVirtualHubIPConfigurationResultsIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ListVirtualHubIPConfigurationResultsIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ListVirtualHubIPConfigurationResultsIterator) Response() ListVirtualHubIPConfigurationResults { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ListVirtualHubIPConfigurationResultsIterator) Value() HubIPConfiguration { + if !iter.page.NotDone() { + return HubIPConfiguration{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ListVirtualHubIPConfigurationResultsIterator type. +func NewListVirtualHubIPConfigurationResultsIterator(page ListVirtualHubIPConfigurationResultsPage) ListVirtualHubIPConfigurationResultsIterator { + return ListVirtualHubIPConfigurationResultsIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lvhicr ListVirtualHubIPConfigurationResults) IsEmpty() bool { + return lvhicr.Value == nil || len(*lvhicr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (lvhicr ListVirtualHubIPConfigurationResults) hasNextLink() bool { + return lvhicr.NextLink != nil && len(*lvhicr.NextLink) != 0 +} + +// listVirtualHubIPConfigurationResultsPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lvhicr ListVirtualHubIPConfigurationResults) listVirtualHubIPConfigurationResultsPreparer(ctx context.Context) (*http.Request, error) { + if !lvhicr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lvhicr.NextLink))) +} + +// ListVirtualHubIPConfigurationResultsPage contains a page of HubIPConfiguration values. +type ListVirtualHubIPConfigurationResultsPage struct { + fn func(context.Context, ListVirtualHubIPConfigurationResults) (ListVirtualHubIPConfigurationResults, error) + lvhicr ListVirtualHubIPConfigurationResults +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ListVirtualHubIPConfigurationResultsPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListVirtualHubIPConfigurationResultsPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.lvhicr) + if err != nil { + return err + } + page.lvhicr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ListVirtualHubIPConfigurationResultsPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ListVirtualHubIPConfigurationResultsPage) NotDone() bool { + return !page.lvhicr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ListVirtualHubIPConfigurationResultsPage) Response() ListVirtualHubIPConfigurationResults { + return page.lvhicr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ListVirtualHubIPConfigurationResultsPage) Values() []HubIPConfiguration { + if page.lvhicr.IsEmpty() { + return nil + } + return *page.lvhicr.Value +} + +// Creates a new instance of the ListVirtualHubIPConfigurationResultsPage type. +func NewListVirtualHubIPConfigurationResultsPage(cur ListVirtualHubIPConfigurationResults, getNextPage func(context.Context, ListVirtualHubIPConfigurationResults) (ListVirtualHubIPConfigurationResults, error)) ListVirtualHubIPConfigurationResultsPage { + return ListVirtualHubIPConfigurationResultsPage{ + fn: getNextPage, + lvhicr: cur, + } +} + +// ListVirtualHubRouteTableV2sResult list of VirtualHubRouteTableV2s and a URL nextLink to get the next set +// of results. +type ListVirtualHubRouteTableV2sResult struct { + autorest.Response `json:"-"` + // Value - List of VirtualHubRouteTableV2s. + Value *[]VirtualHubRouteTableV2 `json:"value,omitempty"` + // NextLink - URL to get the next set of operation list results if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// ListVirtualHubRouteTableV2sResultIterator provides access to a complete listing of +// VirtualHubRouteTableV2 values. +type ListVirtualHubRouteTableV2sResultIterator struct { + i int + page ListVirtualHubRouteTableV2sResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ListVirtualHubRouteTableV2sResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListVirtualHubRouteTableV2sResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ListVirtualHubRouteTableV2sResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ListVirtualHubRouteTableV2sResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ListVirtualHubRouteTableV2sResultIterator) Response() ListVirtualHubRouteTableV2sResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ListVirtualHubRouteTableV2sResultIterator) Value() VirtualHubRouteTableV2 { + if !iter.page.NotDone() { + return VirtualHubRouteTableV2{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ListVirtualHubRouteTableV2sResultIterator type. +func NewListVirtualHubRouteTableV2sResultIterator(page ListVirtualHubRouteTableV2sResultPage) ListVirtualHubRouteTableV2sResultIterator { + return ListVirtualHubRouteTableV2sResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lvhrtvr ListVirtualHubRouteTableV2sResult) IsEmpty() bool { + return lvhrtvr.Value == nil || len(*lvhrtvr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (lvhrtvr ListVirtualHubRouteTableV2sResult) hasNextLink() bool { + return lvhrtvr.NextLink != nil && len(*lvhrtvr.NextLink) != 0 +} + +// listVirtualHubRouteTableV2sResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lvhrtvr ListVirtualHubRouteTableV2sResult) listVirtualHubRouteTableV2sResultPreparer(ctx context.Context) (*http.Request, error) { + if !lvhrtvr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lvhrtvr.NextLink))) +} + +// ListVirtualHubRouteTableV2sResultPage contains a page of VirtualHubRouteTableV2 values. +type ListVirtualHubRouteTableV2sResultPage struct { + fn func(context.Context, ListVirtualHubRouteTableV2sResult) (ListVirtualHubRouteTableV2sResult, error) + lvhrtvr ListVirtualHubRouteTableV2sResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ListVirtualHubRouteTableV2sResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListVirtualHubRouteTableV2sResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.lvhrtvr) + if err != nil { + return err + } + page.lvhrtvr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ListVirtualHubRouteTableV2sResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ListVirtualHubRouteTableV2sResultPage) NotDone() bool { + return !page.lvhrtvr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ListVirtualHubRouteTableV2sResultPage) Response() ListVirtualHubRouteTableV2sResult { + return page.lvhrtvr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ListVirtualHubRouteTableV2sResultPage) Values() []VirtualHubRouteTableV2 { + if page.lvhrtvr.IsEmpty() { + return nil + } + return *page.lvhrtvr.Value +} + +// Creates a new instance of the ListVirtualHubRouteTableV2sResultPage type. +func NewListVirtualHubRouteTableV2sResultPage(cur ListVirtualHubRouteTableV2sResult, getNextPage func(context.Context, ListVirtualHubRouteTableV2sResult) (ListVirtualHubRouteTableV2sResult, error)) ListVirtualHubRouteTableV2sResultPage { + return ListVirtualHubRouteTableV2sResultPage{ + fn: getNextPage, + lvhrtvr: cur, + } +} + +// ListVirtualHubsResult result of the request to list VirtualHubs. It contains a list of VirtualHubs and a +// URL nextLink to get the next set of results. +type ListVirtualHubsResult struct { + autorest.Response `json:"-"` + // Value - List of VirtualHubs. + Value *[]VirtualHub `json:"value,omitempty"` + // NextLink - URL to get the next set of operation list results if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// ListVirtualHubsResultIterator provides access to a complete listing of VirtualHub values. +type ListVirtualHubsResultIterator struct { + i int + page ListVirtualHubsResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ListVirtualHubsResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListVirtualHubsResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ListVirtualHubsResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ListVirtualHubsResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ListVirtualHubsResultIterator) Response() ListVirtualHubsResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ListVirtualHubsResultIterator) Value() VirtualHub { + if !iter.page.NotDone() { + return VirtualHub{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ListVirtualHubsResultIterator type. +func NewListVirtualHubsResultIterator(page ListVirtualHubsResultPage) ListVirtualHubsResultIterator { + return ListVirtualHubsResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lvhr ListVirtualHubsResult) IsEmpty() bool { + return lvhr.Value == nil || len(*lvhr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (lvhr ListVirtualHubsResult) hasNextLink() bool { + return lvhr.NextLink != nil && len(*lvhr.NextLink) != 0 +} + +// listVirtualHubsResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lvhr ListVirtualHubsResult) listVirtualHubsResultPreparer(ctx context.Context) (*http.Request, error) { + if !lvhr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lvhr.NextLink))) +} + +// ListVirtualHubsResultPage contains a page of VirtualHub values. +type ListVirtualHubsResultPage struct { + fn func(context.Context, ListVirtualHubsResult) (ListVirtualHubsResult, error) + lvhr ListVirtualHubsResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ListVirtualHubsResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListVirtualHubsResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.lvhr) + if err != nil { + return err + } + page.lvhr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ListVirtualHubsResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ListVirtualHubsResultPage) NotDone() bool { + return !page.lvhr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ListVirtualHubsResultPage) Response() ListVirtualHubsResult { + return page.lvhr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ListVirtualHubsResultPage) Values() []VirtualHub { + if page.lvhr.IsEmpty() { + return nil + } + return *page.lvhr.Value +} + +// Creates a new instance of the ListVirtualHubsResultPage type. +func NewListVirtualHubsResultPage(cur ListVirtualHubsResult, getNextPage func(context.Context, ListVirtualHubsResult) (ListVirtualHubsResult, error)) ListVirtualHubsResultPage { + return ListVirtualHubsResultPage{ + fn: getNextPage, + lvhr: cur, + } +} + +// ListVirtualWANsResult result of the request to list VirtualWANs. It contains a list of VirtualWANs and a +// URL nextLink to get the next set of results. +type ListVirtualWANsResult struct { + autorest.Response `json:"-"` + // Value - List of VirtualWANs. + Value *[]VirtualWAN `json:"value,omitempty"` + // NextLink - URL to get the next set of operation list results if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// ListVirtualWANsResultIterator provides access to a complete listing of VirtualWAN values. +type ListVirtualWANsResultIterator struct { + i int + page ListVirtualWANsResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ListVirtualWANsResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListVirtualWANsResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ListVirtualWANsResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ListVirtualWANsResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ListVirtualWANsResultIterator) Response() ListVirtualWANsResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ListVirtualWANsResultIterator) Value() VirtualWAN { + if !iter.page.NotDone() { + return VirtualWAN{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ListVirtualWANsResultIterator type. +func NewListVirtualWANsResultIterator(page ListVirtualWANsResultPage) ListVirtualWANsResultIterator { + return ListVirtualWANsResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lvwnr ListVirtualWANsResult) IsEmpty() bool { + return lvwnr.Value == nil || len(*lvwnr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (lvwnr ListVirtualWANsResult) hasNextLink() bool { + return lvwnr.NextLink != nil && len(*lvwnr.NextLink) != 0 +} + +// listVirtualWANsResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lvwnr ListVirtualWANsResult) listVirtualWANsResultPreparer(ctx context.Context) (*http.Request, error) { + if !lvwnr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lvwnr.NextLink))) +} + +// ListVirtualWANsResultPage contains a page of VirtualWAN values. +type ListVirtualWANsResultPage struct { + fn func(context.Context, ListVirtualWANsResult) (ListVirtualWANsResult, error) + lvwnr ListVirtualWANsResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ListVirtualWANsResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListVirtualWANsResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.lvwnr) + if err != nil { + return err + } + page.lvwnr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ListVirtualWANsResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ListVirtualWANsResultPage) NotDone() bool { + return !page.lvwnr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ListVirtualWANsResultPage) Response() ListVirtualWANsResult { + return page.lvwnr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ListVirtualWANsResultPage) Values() []VirtualWAN { + if page.lvwnr.IsEmpty() { + return nil + } + return *page.lvwnr.Value +} + +// Creates a new instance of the ListVirtualWANsResultPage type. +func NewListVirtualWANsResultPage(cur ListVirtualWANsResult, getNextPage func(context.Context, ListVirtualWANsResult) (ListVirtualWANsResult, error)) ListVirtualWANsResultPage { + return ListVirtualWANsResultPage{ + fn: getNextPage, + lvwnr: cur, + } +} + +// ListVpnConnectionsResult result of the request to list all vpn connections to a virtual wan vpn gateway. +// It contains a list of Vpn Connections and a URL nextLink to get the next set of results. +type ListVpnConnectionsResult struct { + autorest.Response `json:"-"` + // Value - List of Vpn Connections. + Value *[]VpnConnection `json:"value,omitempty"` + // NextLink - URL to get the next set of operation list results if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// ListVpnConnectionsResultIterator provides access to a complete listing of VpnConnection values. +type ListVpnConnectionsResultIterator struct { + i int + page ListVpnConnectionsResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ListVpnConnectionsResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListVpnConnectionsResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ListVpnConnectionsResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ListVpnConnectionsResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ListVpnConnectionsResultIterator) Response() ListVpnConnectionsResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ListVpnConnectionsResultIterator) Value() VpnConnection { + if !iter.page.NotDone() { + return VpnConnection{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ListVpnConnectionsResultIterator type. +func NewListVpnConnectionsResultIterator(page ListVpnConnectionsResultPage) ListVpnConnectionsResultIterator { + return ListVpnConnectionsResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lvcr ListVpnConnectionsResult) IsEmpty() bool { + return lvcr.Value == nil || len(*lvcr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (lvcr ListVpnConnectionsResult) hasNextLink() bool { + return lvcr.NextLink != nil && len(*lvcr.NextLink) != 0 +} + +// listVpnConnectionsResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lvcr ListVpnConnectionsResult) listVpnConnectionsResultPreparer(ctx context.Context) (*http.Request, error) { + if !lvcr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lvcr.NextLink))) +} + +// ListVpnConnectionsResultPage contains a page of VpnConnection values. +type ListVpnConnectionsResultPage struct { + fn func(context.Context, ListVpnConnectionsResult) (ListVpnConnectionsResult, error) + lvcr ListVpnConnectionsResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ListVpnConnectionsResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListVpnConnectionsResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.lvcr) + if err != nil { + return err + } + page.lvcr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ListVpnConnectionsResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ListVpnConnectionsResultPage) NotDone() bool { + return !page.lvcr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ListVpnConnectionsResultPage) Response() ListVpnConnectionsResult { + return page.lvcr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ListVpnConnectionsResultPage) Values() []VpnConnection { + if page.lvcr.IsEmpty() { + return nil + } + return *page.lvcr.Value +} + +// Creates a new instance of the ListVpnConnectionsResultPage type. +func NewListVpnConnectionsResultPage(cur ListVpnConnectionsResult, getNextPage func(context.Context, ListVpnConnectionsResult) (ListVpnConnectionsResult, error)) ListVpnConnectionsResultPage { + return ListVpnConnectionsResultPage{ + fn: getNextPage, + lvcr: cur, + } +} + +// ListVpnGatewaysResult result of the request to list VpnGateways. It contains a list of VpnGateways and a +// URL nextLink to get the next set of results. +type ListVpnGatewaysResult struct { + autorest.Response `json:"-"` + // Value - List of VpnGateways. + Value *[]VpnGateway `json:"value,omitempty"` + // NextLink - URL to get the next set of operation list results if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// ListVpnGatewaysResultIterator provides access to a complete listing of VpnGateway values. +type ListVpnGatewaysResultIterator struct { + i int + page ListVpnGatewaysResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ListVpnGatewaysResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListVpnGatewaysResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ListVpnGatewaysResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ListVpnGatewaysResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ListVpnGatewaysResultIterator) Response() ListVpnGatewaysResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ListVpnGatewaysResultIterator) Value() VpnGateway { + if !iter.page.NotDone() { + return VpnGateway{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ListVpnGatewaysResultIterator type. +func NewListVpnGatewaysResultIterator(page ListVpnGatewaysResultPage) ListVpnGatewaysResultIterator { + return ListVpnGatewaysResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lvgr ListVpnGatewaysResult) IsEmpty() bool { + return lvgr.Value == nil || len(*lvgr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (lvgr ListVpnGatewaysResult) hasNextLink() bool { + return lvgr.NextLink != nil && len(*lvgr.NextLink) != 0 +} + +// listVpnGatewaysResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lvgr ListVpnGatewaysResult) listVpnGatewaysResultPreparer(ctx context.Context) (*http.Request, error) { + if !lvgr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lvgr.NextLink))) +} + +// ListVpnGatewaysResultPage contains a page of VpnGateway values. +type ListVpnGatewaysResultPage struct { + fn func(context.Context, ListVpnGatewaysResult) (ListVpnGatewaysResult, error) + lvgr ListVpnGatewaysResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ListVpnGatewaysResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListVpnGatewaysResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.lvgr) + if err != nil { + return err + } + page.lvgr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ListVpnGatewaysResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ListVpnGatewaysResultPage) NotDone() bool { + return !page.lvgr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ListVpnGatewaysResultPage) Response() ListVpnGatewaysResult { + return page.lvgr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ListVpnGatewaysResultPage) Values() []VpnGateway { + if page.lvgr.IsEmpty() { + return nil + } + return *page.lvgr.Value +} + +// Creates a new instance of the ListVpnGatewaysResultPage type. +func NewListVpnGatewaysResultPage(cur ListVpnGatewaysResult, getNextPage func(context.Context, ListVpnGatewaysResult) (ListVpnGatewaysResult, error)) ListVpnGatewaysResultPage { + return ListVpnGatewaysResultPage{ + fn: getNextPage, + lvgr: cur, + } +} + +// ListVpnServerConfigurationsResult result of the request to list all VpnServerConfigurations. It contains +// a list of VpnServerConfigurations and a URL nextLink to get the next set of results. +type ListVpnServerConfigurationsResult struct { + autorest.Response `json:"-"` + // Value - List of VpnServerConfigurations. + Value *[]VpnServerConfiguration `json:"value,omitempty"` + // NextLink - URL to get the next set of operation list results if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// ListVpnServerConfigurationsResultIterator provides access to a complete listing of +// VpnServerConfiguration values. +type ListVpnServerConfigurationsResultIterator struct { + i int + page ListVpnServerConfigurationsResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ListVpnServerConfigurationsResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListVpnServerConfigurationsResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ListVpnServerConfigurationsResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ListVpnServerConfigurationsResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ListVpnServerConfigurationsResultIterator) Response() ListVpnServerConfigurationsResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ListVpnServerConfigurationsResultIterator) Value() VpnServerConfiguration { + if !iter.page.NotDone() { + return VpnServerConfiguration{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ListVpnServerConfigurationsResultIterator type. +func NewListVpnServerConfigurationsResultIterator(page ListVpnServerConfigurationsResultPage) ListVpnServerConfigurationsResultIterator { + return ListVpnServerConfigurationsResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lvscr ListVpnServerConfigurationsResult) IsEmpty() bool { + return lvscr.Value == nil || len(*lvscr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (lvscr ListVpnServerConfigurationsResult) hasNextLink() bool { + return lvscr.NextLink != nil && len(*lvscr.NextLink) != 0 +} + +// listVpnServerConfigurationsResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lvscr ListVpnServerConfigurationsResult) listVpnServerConfigurationsResultPreparer(ctx context.Context) (*http.Request, error) { + if !lvscr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lvscr.NextLink))) +} + +// ListVpnServerConfigurationsResultPage contains a page of VpnServerConfiguration values. +type ListVpnServerConfigurationsResultPage struct { + fn func(context.Context, ListVpnServerConfigurationsResult) (ListVpnServerConfigurationsResult, error) + lvscr ListVpnServerConfigurationsResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ListVpnServerConfigurationsResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListVpnServerConfigurationsResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.lvscr) + if err != nil { + return err + } + page.lvscr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ListVpnServerConfigurationsResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ListVpnServerConfigurationsResultPage) NotDone() bool { + return !page.lvscr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ListVpnServerConfigurationsResultPage) Response() ListVpnServerConfigurationsResult { + return page.lvscr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ListVpnServerConfigurationsResultPage) Values() []VpnServerConfiguration { + if page.lvscr.IsEmpty() { + return nil + } + return *page.lvscr.Value +} + +// Creates a new instance of the ListVpnServerConfigurationsResultPage type. +func NewListVpnServerConfigurationsResultPage(cur ListVpnServerConfigurationsResult, getNextPage func(context.Context, ListVpnServerConfigurationsResult) (ListVpnServerConfigurationsResult, error)) ListVpnServerConfigurationsResultPage { + return ListVpnServerConfigurationsResultPage{ + fn: getNextPage, + lvscr: cur, + } +} + +// ListVpnSiteLinkConnectionsResult result of the request to list all vpn connections to a virtual wan vpn +// gateway. It contains a list of Vpn Connections and a URL nextLink to get the next set of results. +type ListVpnSiteLinkConnectionsResult struct { + autorest.Response `json:"-"` + // Value - List of VpnSiteLinkConnections. + Value *[]VpnSiteLinkConnection `json:"value,omitempty"` + // NextLink - URL to get the next set of operation list results if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// ListVpnSiteLinkConnectionsResultIterator provides access to a complete listing of VpnSiteLinkConnection +// values. +type ListVpnSiteLinkConnectionsResultIterator struct { + i int + page ListVpnSiteLinkConnectionsResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ListVpnSiteLinkConnectionsResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListVpnSiteLinkConnectionsResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ListVpnSiteLinkConnectionsResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ListVpnSiteLinkConnectionsResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ListVpnSiteLinkConnectionsResultIterator) Response() ListVpnSiteLinkConnectionsResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ListVpnSiteLinkConnectionsResultIterator) Value() VpnSiteLinkConnection { + if !iter.page.NotDone() { + return VpnSiteLinkConnection{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ListVpnSiteLinkConnectionsResultIterator type. +func NewListVpnSiteLinkConnectionsResultIterator(page ListVpnSiteLinkConnectionsResultPage) ListVpnSiteLinkConnectionsResultIterator { + return ListVpnSiteLinkConnectionsResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lvslcr ListVpnSiteLinkConnectionsResult) IsEmpty() bool { + return lvslcr.Value == nil || len(*lvslcr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (lvslcr ListVpnSiteLinkConnectionsResult) hasNextLink() bool { + return lvslcr.NextLink != nil && len(*lvslcr.NextLink) != 0 +} + +// listVpnSiteLinkConnectionsResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lvslcr ListVpnSiteLinkConnectionsResult) listVpnSiteLinkConnectionsResultPreparer(ctx context.Context) (*http.Request, error) { + if !lvslcr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lvslcr.NextLink))) +} + +// ListVpnSiteLinkConnectionsResultPage contains a page of VpnSiteLinkConnection values. +type ListVpnSiteLinkConnectionsResultPage struct { + fn func(context.Context, ListVpnSiteLinkConnectionsResult) (ListVpnSiteLinkConnectionsResult, error) + lvslcr ListVpnSiteLinkConnectionsResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ListVpnSiteLinkConnectionsResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListVpnSiteLinkConnectionsResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.lvslcr) + if err != nil { + return err + } + page.lvslcr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ListVpnSiteLinkConnectionsResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ListVpnSiteLinkConnectionsResultPage) NotDone() bool { + return !page.lvslcr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ListVpnSiteLinkConnectionsResultPage) Response() ListVpnSiteLinkConnectionsResult { + return page.lvslcr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ListVpnSiteLinkConnectionsResultPage) Values() []VpnSiteLinkConnection { + if page.lvslcr.IsEmpty() { + return nil + } + return *page.lvslcr.Value +} + +// Creates a new instance of the ListVpnSiteLinkConnectionsResultPage type. +func NewListVpnSiteLinkConnectionsResultPage(cur ListVpnSiteLinkConnectionsResult, getNextPage func(context.Context, ListVpnSiteLinkConnectionsResult) (ListVpnSiteLinkConnectionsResult, error)) ListVpnSiteLinkConnectionsResultPage { + return ListVpnSiteLinkConnectionsResultPage{ + fn: getNextPage, + lvslcr: cur, + } +} + +// ListVpnSiteLinksResult result of the request to list VpnSiteLinks. It contains a list of VpnSiteLinks +// and a URL nextLink to get the next set of results. +type ListVpnSiteLinksResult struct { + autorest.Response `json:"-"` + // Value - List of VpnSitesLinks. + Value *[]VpnSiteLink `json:"value,omitempty"` + // NextLink - URL to get the next set of operation list results if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// ListVpnSiteLinksResultIterator provides access to a complete listing of VpnSiteLink values. +type ListVpnSiteLinksResultIterator struct { + i int + page ListVpnSiteLinksResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ListVpnSiteLinksResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListVpnSiteLinksResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ListVpnSiteLinksResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ListVpnSiteLinksResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ListVpnSiteLinksResultIterator) Response() ListVpnSiteLinksResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ListVpnSiteLinksResultIterator) Value() VpnSiteLink { + if !iter.page.NotDone() { + return VpnSiteLink{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ListVpnSiteLinksResultIterator type. +func NewListVpnSiteLinksResultIterator(page ListVpnSiteLinksResultPage) ListVpnSiteLinksResultIterator { + return ListVpnSiteLinksResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lvslr ListVpnSiteLinksResult) IsEmpty() bool { + return lvslr.Value == nil || len(*lvslr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (lvslr ListVpnSiteLinksResult) hasNextLink() bool { + return lvslr.NextLink != nil && len(*lvslr.NextLink) != 0 +} + +// listVpnSiteLinksResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lvslr ListVpnSiteLinksResult) listVpnSiteLinksResultPreparer(ctx context.Context) (*http.Request, error) { + if !lvslr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lvslr.NextLink))) +} + +// ListVpnSiteLinksResultPage contains a page of VpnSiteLink values. +type ListVpnSiteLinksResultPage struct { + fn func(context.Context, ListVpnSiteLinksResult) (ListVpnSiteLinksResult, error) + lvslr ListVpnSiteLinksResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ListVpnSiteLinksResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListVpnSiteLinksResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.lvslr) + if err != nil { + return err + } + page.lvslr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ListVpnSiteLinksResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ListVpnSiteLinksResultPage) NotDone() bool { + return !page.lvslr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ListVpnSiteLinksResultPage) Response() ListVpnSiteLinksResult { + return page.lvslr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ListVpnSiteLinksResultPage) Values() []VpnSiteLink { + if page.lvslr.IsEmpty() { + return nil + } + return *page.lvslr.Value +} + +// Creates a new instance of the ListVpnSiteLinksResultPage type. +func NewListVpnSiteLinksResultPage(cur ListVpnSiteLinksResult, getNextPage func(context.Context, ListVpnSiteLinksResult) (ListVpnSiteLinksResult, error)) ListVpnSiteLinksResultPage { + return ListVpnSiteLinksResultPage{ + fn: getNextPage, + lvslr: cur, + } +} + +// ListVpnSitesResult result of the request to list VpnSites. It contains a list of VpnSites and a URL +// nextLink to get the next set of results. +type ListVpnSitesResult struct { + autorest.Response `json:"-"` + // Value - List of VpnSites. + Value *[]VpnSite `json:"value,omitempty"` + // NextLink - URL to get the next set of operation list results if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// ListVpnSitesResultIterator provides access to a complete listing of VpnSite values. +type ListVpnSitesResultIterator struct { + i int + page ListVpnSitesResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ListVpnSitesResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListVpnSitesResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ListVpnSitesResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ListVpnSitesResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ListVpnSitesResultIterator) Response() ListVpnSitesResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ListVpnSitesResultIterator) Value() VpnSite { + if !iter.page.NotDone() { + return VpnSite{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ListVpnSitesResultIterator type. +func NewListVpnSitesResultIterator(page ListVpnSitesResultPage) ListVpnSitesResultIterator { + return ListVpnSitesResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lvsr ListVpnSitesResult) IsEmpty() bool { + return lvsr.Value == nil || len(*lvsr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (lvsr ListVpnSitesResult) hasNextLink() bool { + return lvsr.NextLink != nil && len(*lvsr.NextLink) != 0 +} + +// listVpnSitesResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lvsr ListVpnSitesResult) listVpnSitesResultPreparer(ctx context.Context) (*http.Request, error) { + if !lvsr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lvsr.NextLink))) +} + +// ListVpnSitesResultPage contains a page of VpnSite values. +type ListVpnSitesResultPage struct { + fn func(context.Context, ListVpnSitesResult) (ListVpnSitesResult, error) + lvsr ListVpnSitesResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ListVpnSitesResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListVpnSitesResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.lvsr) + if err != nil { + return err + } + page.lvsr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ListVpnSitesResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ListVpnSitesResultPage) NotDone() bool { + return !page.lvsr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ListVpnSitesResultPage) Response() ListVpnSitesResult { + return page.lvsr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ListVpnSitesResultPage) Values() []VpnSite { + if page.lvsr.IsEmpty() { + return nil + } + return *page.lvsr.Value +} + +// Creates a new instance of the ListVpnSitesResultPage type. +func NewListVpnSitesResultPage(cur ListVpnSitesResult, getNextPage func(context.Context, ListVpnSitesResult) (ListVpnSitesResult, error)) ListVpnSitesResultPage { + return ListVpnSitesResultPage{ + fn: getNextPage, + lvsr: cur, + } +} + +// LoadBalancer loadBalancer resource. +type LoadBalancer struct { + autorest.Response `json:"-"` + // ExtendedLocation - The extended location of the load balancer. + ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + // Sku - The load balancer SKU. + Sku *LoadBalancerSku `json:"sku,omitempty"` + // LoadBalancerPropertiesFormat - Properties of load balancer. + *LoadBalancerPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for LoadBalancer. +func (lb LoadBalancer) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lb.ExtendedLocation != nil { + objectMap["extendedLocation"] = lb.ExtendedLocation + } + if lb.Sku != nil { + objectMap["sku"] = lb.Sku + } + if lb.LoadBalancerPropertiesFormat != nil { + objectMap["properties"] = lb.LoadBalancerPropertiesFormat + } + if lb.ID != nil { + objectMap["id"] = lb.ID + } + if lb.Location != nil { + objectMap["location"] = lb.Location + } + if lb.Tags != nil { + objectMap["tags"] = lb.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for LoadBalancer struct. +func (lb *LoadBalancer) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "extendedLocation": + if v != nil { + var extendedLocation ExtendedLocation + err = json.Unmarshal(*v, &extendedLocation) + if err != nil { + return err + } + lb.ExtendedLocation = &extendedLocation + } + case "sku": + if v != nil { + var sku LoadBalancerSku + err = json.Unmarshal(*v, &sku) + if err != nil { + return err + } + lb.Sku = &sku + } + case "properties": + if v != nil { + var loadBalancerPropertiesFormat LoadBalancerPropertiesFormat + err = json.Unmarshal(*v, &loadBalancerPropertiesFormat) + if err != nil { + return err + } + lb.LoadBalancerPropertiesFormat = &loadBalancerPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + lb.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + lb.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + lb.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + lb.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + lb.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + lb.Tags = tags + } + } + } + + return nil +} + +// LoadBalancerBackendAddress load balancer backend addresses. +type LoadBalancerBackendAddress struct { + // LoadBalancerBackendAddressPropertiesFormat - Properties of load balancer backend address pool. + *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` + // Name - Name of the backend address. + Name *string `json:"name,omitempty"` +} + +// MarshalJSON is the custom marshaler for LoadBalancerBackendAddress. +func (lbba LoadBalancerBackendAddress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lbba.LoadBalancerBackendAddressPropertiesFormat != nil { + objectMap["properties"] = lbba.LoadBalancerBackendAddressPropertiesFormat + } + if lbba.Name != nil { + objectMap["name"] = lbba.Name + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for LoadBalancerBackendAddress struct. +func (lbba *LoadBalancerBackendAddress) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var loadBalancerBackendAddressPropertiesFormat LoadBalancerBackendAddressPropertiesFormat + err = json.Unmarshal(*v, &loadBalancerBackendAddressPropertiesFormat) + if err != nil { + return err + } + lbba.LoadBalancerBackendAddressPropertiesFormat = &loadBalancerBackendAddressPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + lbba.Name = &name + } + } + } + + return nil +} + +// LoadBalancerBackendAddressPoolListResult response for ListBackendAddressPool API service call. +type LoadBalancerBackendAddressPoolListResult struct { + autorest.Response `json:"-"` + // Value - A list of backend address pools in a load balancer. + Value *[]BackendAddressPool `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for LoadBalancerBackendAddressPoolListResult. +func (lbbaplr LoadBalancerBackendAddressPoolListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lbbaplr.Value != nil { + objectMap["value"] = lbbaplr.Value + } + return json.Marshal(objectMap) +} + +// LoadBalancerBackendAddressPoolListResultIterator provides access to a complete listing of +// BackendAddressPool values. +type LoadBalancerBackendAddressPoolListResultIterator struct { + i int + page LoadBalancerBackendAddressPoolListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *LoadBalancerBackendAddressPoolListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerBackendAddressPoolListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *LoadBalancerBackendAddressPoolListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter LoadBalancerBackendAddressPoolListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter LoadBalancerBackendAddressPoolListResultIterator) Response() LoadBalancerBackendAddressPoolListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter LoadBalancerBackendAddressPoolListResultIterator) Value() BackendAddressPool { + if !iter.page.NotDone() { + return BackendAddressPool{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the LoadBalancerBackendAddressPoolListResultIterator type. +func NewLoadBalancerBackendAddressPoolListResultIterator(page LoadBalancerBackendAddressPoolListResultPage) LoadBalancerBackendAddressPoolListResultIterator { + return LoadBalancerBackendAddressPoolListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lbbaplr LoadBalancerBackendAddressPoolListResult) IsEmpty() bool { + return lbbaplr.Value == nil || len(*lbbaplr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (lbbaplr LoadBalancerBackendAddressPoolListResult) hasNextLink() bool { + return lbbaplr.NextLink != nil && len(*lbbaplr.NextLink) != 0 +} + +// loadBalancerBackendAddressPoolListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lbbaplr LoadBalancerBackendAddressPoolListResult) loadBalancerBackendAddressPoolListResultPreparer(ctx context.Context) (*http.Request, error) { + if !lbbaplr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lbbaplr.NextLink))) +} + +// LoadBalancerBackendAddressPoolListResultPage contains a page of BackendAddressPool values. +type LoadBalancerBackendAddressPoolListResultPage struct { + fn func(context.Context, LoadBalancerBackendAddressPoolListResult) (LoadBalancerBackendAddressPoolListResult, error) + lbbaplr LoadBalancerBackendAddressPoolListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *LoadBalancerBackendAddressPoolListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerBackendAddressPoolListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.lbbaplr) + if err != nil { + return err + } + page.lbbaplr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *LoadBalancerBackendAddressPoolListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page LoadBalancerBackendAddressPoolListResultPage) NotDone() bool { + return !page.lbbaplr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page LoadBalancerBackendAddressPoolListResultPage) Response() LoadBalancerBackendAddressPoolListResult { + return page.lbbaplr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page LoadBalancerBackendAddressPoolListResultPage) Values() []BackendAddressPool { + if page.lbbaplr.IsEmpty() { + return nil + } + return *page.lbbaplr.Value +} + +// Creates a new instance of the LoadBalancerBackendAddressPoolListResultPage type. +func NewLoadBalancerBackendAddressPoolListResultPage(cur LoadBalancerBackendAddressPoolListResult, getNextPage func(context.Context, LoadBalancerBackendAddressPoolListResult) (LoadBalancerBackendAddressPoolListResult, error)) LoadBalancerBackendAddressPoolListResultPage { + return LoadBalancerBackendAddressPoolListResultPage{ + fn: getNextPage, + lbbaplr: cur, + } +} + +// LoadBalancerBackendAddressPoolsCreateOrUpdateFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type LoadBalancerBackendAddressPoolsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *LoadBalancerBackendAddressPoolsCreateOrUpdateFuture) Result(client LoadBalancerBackendAddressPoolsClient) (bap BackendAddressPool, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.LoadBalancerBackendAddressPoolsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if bap.Response.Response, err = future.GetResult(sender); err == nil && bap.Response.Response.StatusCode != http.StatusNoContent { + bap, err = client.CreateOrUpdateResponder(bap.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsCreateOrUpdateFuture", "Result", bap.Response.Response, "Failure responding to request") + } + } + return +} + +// LoadBalancerBackendAddressPoolsDeleteFuture an abstraction for monitoring and retrieving the results of +// a long-running operation. +type LoadBalancerBackendAddressPoolsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *LoadBalancerBackendAddressPoolsDeleteFuture) Result(client LoadBalancerBackendAddressPoolsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.LoadBalancerBackendAddressPoolsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// LoadBalancerBackendAddressPropertiesFormat properties of the load balancer backend addresses. +type LoadBalancerBackendAddressPropertiesFormat struct { + // VirtualNetwork - Reference to an existing virtual network. + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` + // IPAddress - IP Address belonging to the referenced virtual network. + IPAddress *string `json:"ipAddress,omitempty"` + // NetworkInterfaceIPConfiguration - READ-ONLY; Reference to IP address defined in network interfaces. + NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` + // LoadBalancerFrontendIPConfiguration - Reference to the frontend ip address configuration defined in regional loadbalancer. + LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` +} + +// MarshalJSON is the custom marshaler for LoadBalancerBackendAddressPropertiesFormat. +func (lbbapf LoadBalancerBackendAddressPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lbbapf.VirtualNetwork != nil { + objectMap["virtualNetwork"] = lbbapf.VirtualNetwork + } + if lbbapf.IPAddress != nil { + objectMap["ipAddress"] = lbbapf.IPAddress + } + if lbbapf.LoadBalancerFrontendIPConfiguration != nil { + objectMap["loadBalancerFrontendIPConfiguration"] = lbbapf.LoadBalancerFrontendIPConfiguration + } + return json.Marshal(objectMap) +} + +// LoadBalancerFrontendIPConfigurationListResult response for ListFrontendIPConfiguration API service call. +type LoadBalancerFrontendIPConfigurationListResult struct { + autorest.Response `json:"-"` + // Value - A list of frontend IP configurations in a load balancer. + Value *[]FrontendIPConfiguration `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for LoadBalancerFrontendIPConfigurationListResult. +func (lbficlr LoadBalancerFrontendIPConfigurationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lbficlr.Value != nil { + objectMap["value"] = lbficlr.Value + } + return json.Marshal(objectMap) +} + +// LoadBalancerFrontendIPConfigurationListResultIterator provides access to a complete listing of +// FrontendIPConfiguration values. +type LoadBalancerFrontendIPConfigurationListResultIterator struct { + i int + page LoadBalancerFrontendIPConfigurationListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *LoadBalancerFrontendIPConfigurationListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerFrontendIPConfigurationListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *LoadBalancerFrontendIPConfigurationListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter LoadBalancerFrontendIPConfigurationListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter LoadBalancerFrontendIPConfigurationListResultIterator) Response() LoadBalancerFrontendIPConfigurationListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter LoadBalancerFrontendIPConfigurationListResultIterator) Value() FrontendIPConfiguration { + if !iter.page.NotDone() { + return FrontendIPConfiguration{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the LoadBalancerFrontendIPConfigurationListResultIterator type. +func NewLoadBalancerFrontendIPConfigurationListResultIterator(page LoadBalancerFrontendIPConfigurationListResultPage) LoadBalancerFrontendIPConfigurationListResultIterator { + return LoadBalancerFrontendIPConfigurationListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lbficlr LoadBalancerFrontendIPConfigurationListResult) IsEmpty() bool { + return lbficlr.Value == nil || len(*lbficlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (lbficlr LoadBalancerFrontendIPConfigurationListResult) hasNextLink() bool { + return lbficlr.NextLink != nil && len(*lbficlr.NextLink) != 0 +} + +// loadBalancerFrontendIPConfigurationListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lbficlr LoadBalancerFrontendIPConfigurationListResult) loadBalancerFrontendIPConfigurationListResultPreparer(ctx context.Context) (*http.Request, error) { + if !lbficlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lbficlr.NextLink))) +} + +// LoadBalancerFrontendIPConfigurationListResultPage contains a page of FrontendIPConfiguration values. +type LoadBalancerFrontendIPConfigurationListResultPage struct { + fn func(context.Context, LoadBalancerFrontendIPConfigurationListResult) (LoadBalancerFrontendIPConfigurationListResult, error) + lbficlr LoadBalancerFrontendIPConfigurationListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *LoadBalancerFrontendIPConfigurationListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerFrontendIPConfigurationListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.lbficlr) + if err != nil { + return err + } + page.lbficlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *LoadBalancerFrontendIPConfigurationListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page LoadBalancerFrontendIPConfigurationListResultPage) NotDone() bool { + return !page.lbficlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page LoadBalancerFrontendIPConfigurationListResultPage) Response() LoadBalancerFrontendIPConfigurationListResult { + return page.lbficlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page LoadBalancerFrontendIPConfigurationListResultPage) Values() []FrontendIPConfiguration { + if page.lbficlr.IsEmpty() { + return nil + } + return *page.lbficlr.Value +} + +// Creates a new instance of the LoadBalancerFrontendIPConfigurationListResultPage type. +func NewLoadBalancerFrontendIPConfigurationListResultPage(cur LoadBalancerFrontendIPConfigurationListResult, getNextPage func(context.Context, LoadBalancerFrontendIPConfigurationListResult) (LoadBalancerFrontendIPConfigurationListResult, error)) LoadBalancerFrontendIPConfigurationListResultPage { + return LoadBalancerFrontendIPConfigurationListResultPage{ + fn: getNextPage, + lbficlr: cur, + } +} + +// LoadBalancerListResult response for ListLoadBalancers API service call. +type LoadBalancerListResult struct { + autorest.Response `json:"-"` + // Value - A list of load balancers in a resource group. + Value *[]LoadBalancer `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for LoadBalancerListResult. +func (lblr LoadBalancerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lblr.Value != nil { + objectMap["value"] = lblr.Value + } + return json.Marshal(objectMap) +} + +// LoadBalancerListResultIterator provides access to a complete listing of LoadBalancer values. +type LoadBalancerListResultIterator struct { + i int + page LoadBalancerListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *LoadBalancerListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *LoadBalancerListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter LoadBalancerListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter LoadBalancerListResultIterator) Response() LoadBalancerListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter LoadBalancerListResultIterator) Value() LoadBalancer { + if !iter.page.NotDone() { + return LoadBalancer{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the LoadBalancerListResultIterator type. +func NewLoadBalancerListResultIterator(page LoadBalancerListResultPage) LoadBalancerListResultIterator { + return LoadBalancerListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lblr LoadBalancerListResult) IsEmpty() bool { + return lblr.Value == nil || len(*lblr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (lblr LoadBalancerListResult) hasNextLink() bool { + return lblr.NextLink != nil && len(*lblr.NextLink) != 0 +} + +// loadBalancerListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lblr LoadBalancerListResult) loadBalancerListResultPreparer(ctx context.Context) (*http.Request, error) { + if !lblr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lblr.NextLink))) +} + +// LoadBalancerListResultPage contains a page of LoadBalancer values. +type LoadBalancerListResultPage struct { + fn func(context.Context, LoadBalancerListResult) (LoadBalancerListResult, error) + lblr LoadBalancerListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *LoadBalancerListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.lblr) + if err != nil { + return err + } + page.lblr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *LoadBalancerListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page LoadBalancerListResultPage) NotDone() bool { + return !page.lblr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page LoadBalancerListResultPage) Response() LoadBalancerListResult { + return page.lblr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page LoadBalancerListResultPage) Values() []LoadBalancer { + if page.lblr.IsEmpty() { + return nil + } + return *page.lblr.Value +} + +// Creates a new instance of the LoadBalancerListResultPage type. +func NewLoadBalancerListResultPage(cur LoadBalancerListResult, getNextPage func(context.Context, LoadBalancerListResult) (LoadBalancerListResult, error)) LoadBalancerListResultPage { + return LoadBalancerListResultPage{ + fn: getNextPage, + lblr: cur, + } +} + +// LoadBalancerLoadBalancingRuleListResult response for ListLoadBalancingRule API service call. +type LoadBalancerLoadBalancingRuleListResult struct { + autorest.Response `json:"-"` + // Value - A list of load balancing rules in a load balancer. + Value *[]LoadBalancingRule `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for LoadBalancerLoadBalancingRuleListResult. +func (lblbrlr LoadBalancerLoadBalancingRuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lblbrlr.Value != nil { + objectMap["value"] = lblbrlr.Value + } + return json.Marshal(objectMap) +} + +// LoadBalancerLoadBalancingRuleListResultIterator provides access to a complete listing of +// LoadBalancingRule values. +type LoadBalancerLoadBalancingRuleListResultIterator struct { + i int + page LoadBalancerLoadBalancingRuleListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *LoadBalancerLoadBalancingRuleListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerLoadBalancingRuleListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *LoadBalancerLoadBalancingRuleListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter LoadBalancerLoadBalancingRuleListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter LoadBalancerLoadBalancingRuleListResultIterator) Response() LoadBalancerLoadBalancingRuleListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter LoadBalancerLoadBalancingRuleListResultIterator) Value() LoadBalancingRule { + if !iter.page.NotDone() { + return LoadBalancingRule{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the LoadBalancerLoadBalancingRuleListResultIterator type. +func NewLoadBalancerLoadBalancingRuleListResultIterator(page LoadBalancerLoadBalancingRuleListResultPage) LoadBalancerLoadBalancingRuleListResultIterator { + return LoadBalancerLoadBalancingRuleListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lblbrlr LoadBalancerLoadBalancingRuleListResult) IsEmpty() bool { + return lblbrlr.Value == nil || len(*lblbrlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (lblbrlr LoadBalancerLoadBalancingRuleListResult) hasNextLink() bool { + return lblbrlr.NextLink != nil && len(*lblbrlr.NextLink) != 0 +} + +// loadBalancerLoadBalancingRuleListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lblbrlr LoadBalancerLoadBalancingRuleListResult) loadBalancerLoadBalancingRuleListResultPreparer(ctx context.Context) (*http.Request, error) { + if !lblbrlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lblbrlr.NextLink))) +} + +// LoadBalancerLoadBalancingRuleListResultPage contains a page of LoadBalancingRule values. +type LoadBalancerLoadBalancingRuleListResultPage struct { + fn func(context.Context, LoadBalancerLoadBalancingRuleListResult) (LoadBalancerLoadBalancingRuleListResult, error) + lblbrlr LoadBalancerLoadBalancingRuleListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *LoadBalancerLoadBalancingRuleListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerLoadBalancingRuleListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.lblbrlr) + if err != nil { + return err + } + page.lblbrlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *LoadBalancerLoadBalancingRuleListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page LoadBalancerLoadBalancingRuleListResultPage) NotDone() bool { + return !page.lblbrlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page LoadBalancerLoadBalancingRuleListResultPage) Response() LoadBalancerLoadBalancingRuleListResult { + return page.lblbrlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page LoadBalancerLoadBalancingRuleListResultPage) Values() []LoadBalancingRule { + if page.lblbrlr.IsEmpty() { + return nil + } + return *page.lblbrlr.Value +} + +// Creates a new instance of the LoadBalancerLoadBalancingRuleListResultPage type. +func NewLoadBalancerLoadBalancingRuleListResultPage(cur LoadBalancerLoadBalancingRuleListResult, getNextPage func(context.Context, LoadBalancerLoadBalancingRuleListResult) (LoadBalancerLoadBalancingRuleListResult, error)) LoadBalancerLoadBalancingRuleListResultPage { + return LoadBalancerLoadBalancingRuleListResultPage{ + fn: getNextPage, + lblbrlr: cur, + } +} + +// LoadBalancerOutboundRuleListResult response for ListOutboundRule API service call. +type LoadBalancerOutboundRuleListResult struct { + autorest.Response `json:"-"` + // Value - A list of outbound rules in a load balancer. + Value *[]OutboundRule `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for LoadBalancerOutboundRuleListResult. +func (lborlr LoadBalancerOutboundRuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lborlr.Value != nil { + objectMap["value"] = lborlr.Value + } + return json.Marshal(objectMap) +} + +// LoadBalancerOutboundRuleListResultIterator provides access to a complete listing of OutboundRule values. +type LoadBalancerOutboundRuleListResultIterator struct { + i int + page LoadBalancerOutboundRuleListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *LoadBalancerOutboundRuleListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerOutboundRuleListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *LoadBalancerOutboundRuleListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter LoadBalancerOutboundRuleListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter LoadBalancerOutboundRuleListResultIterator) Response() LoadBalancerOutboundRuleListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter LoadBalancerOutboundRuleListResultIterator) Value() OutboundRule { + if !iter.page.NotDone() { + return OutboundRule{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the LoadBalancerOutboundRuleListResultIterator type. +func NewLoadBalancerOutboundRuleListResultIterator(page LoadBalancerOutboundRuleListResultPage) LoadBalancerOutboundRuleListResultIterator { + return LoadBalancerOutboundRuleListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lborlr LoadBalancerOutboundRuleListResult) IsEmpty() bool { + return lborlr.Value == nil || len(*lborlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (lborlr LoadBalancerOutboundRuleListResult) hasNextLink() bool { + return lborlr.NextLink != nil && len(*lborlr.NextLink) != 0 +} + +// loadBalancerOutboundRuleListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lborlr LoadBalancerOutboundRuleListResult) loadBalancerOutboundRuleListResultPreparer(ctx context.Context) (*http.Request, error) { + if !lborlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lborlr.NextLink))) +} + +// LoadBalancerOutboundRuleListResultPage contains a page of OutboundRule values. +type LoadBalancerOutboundRuleListResultPage struct { + fn func(context.Context, LoadBalancerOutboundRuleListResult) (LoadBalancerOutboundRuleListResult, error) + lborlr LoadBalancerOutboundRuleListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *LoadBalancerOutboundRuleListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerOutboundRuleListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.lborlr) + if err != nil { + return err + } + page.lborlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *LoadBalancerOutboundRuleListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page LoadBalancerOutboundRuleListResultPage) NotDone() bool { + return !page.lborlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page LoadBalancerOutboundRuleListResultPage) Response() LoadBalancerOutboundRuleListResult { + return page.lborlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page LoadBalancerOutboundRuleListResultPage) Values() []OutboundRule { + if page.lborlr.IsEmpty() { + return nil + } + return *page.lborlr.Value +} + +// Creates a new instance of the LoadBalancerOutboundRuleListResultPage type. +func NewLoadBalancerOutboundRuleListResultPage(cur LoadBalancerOutboundRuleListResult, getNextPage func(context.Context, LoadBalancerOutboundRuleListResult) (LoadBalancerOutboundRuleListResult, error)) LoadBalancerOutboundRuleListResultPage { + return LoadBalancerOutboundRuleListResultPage{ + fn: getNextPage, + lborlr: cur, + } +} + +// LoadBalancerProbeListResult response for ListProbe API service call. +type LoadBalancerProbeListResult struct { + autorest.Response `json:"-"` + // Value - A list of probes in a load balancer. + Value *[]Probe `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for LoadBalancerProbeListResult. +func (lbplr LoadBalancerProbeListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lbplr.Value != nil { + objectMap["value"] = lbplr.Value + } + return json.Marshal(objectMap) +} + +// LoadBalancerProbeListResultIterator provides access to a complete listing of Probe values. +type LoadBalancerProbeListResultIterator struct { + i int + page LoadBalancerProbeListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *LoadBalancerProbeListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerProbeListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *LoadBalancerProbeListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter LoadBalancerProbeListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter LoadBalancerProbeListResultIterator) Response() LoadBalancerProbeListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter LoadBalancerProbeListResultIterator) Value() Probe { + if !iter.page.NotDone() { + return Probe{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the LoadBalancerProbeListResultIterator type. +func NewLoadBalancerProbeListResultIterator(page LoadBalancerProbeListResultPage) LoadBalancerProbeListResultIterator { + return LoadBalancerProbeListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lbplr LoadBalancerProbeListResult) IsEmpty() bool { + return lbplr.Value == nil || len(*lbplr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (lbplr LoadBalancerProbeListResult) hasNextLink() bool { + return lbplr.NextLink != nil && len(*lbplr.NextLink) != 0 +} + +// loadBalancerProbeListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lbplr LoadBalancerProbeListResult) loadBalancerProbeListResultPreparer(ctx context.Context) (*http.Request, error) { + if !lbplr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lbplr.NextLink))) +} + +// LoadBalancerProbeListResultPage contains a page of Probe values. +type LoadBalancerProbeListResultPage struct { + fn func(context.Context, LoadBalancerProbeListResult) (LoadBalancerProbeListResult, error) + lbplr LoadBalancerProbeListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *LoadBalancerProbeListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerProbeListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.lbplr) + if err != nil { + return err + } + page.lbplr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *LoadBalancerProbeListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page LoadBalancerProbeListResultPage) NotDone() bool { + return !page.lbplr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page LoadBalancerProbeListResultPage) Response() LoadBalancerProbeListResult { + return page.lbplr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page LoadBalancerProbeListResultPage) Values() []Probe { + if page.lbplr.IsEmpty() { + return nil + } + return *page.lbplr.Value +} + +// Creates a new instance of the LoadBalancerProbeListResultPage type. +func NewLoadBalancerProbeListResultPage(cur LoadBalancerProbeListResult, getNextPage func(context.Context, LoadBalancerProbeListResult) (LoadBalancerProbeListResult, error)) LoadBalancerProbeListResultPage { + return LoadBalancerProbeListResultPage{ + fn: getNextPage, + lbplr: cur, + } +} + +// LoadBalancerPropertiesFormat properties of the load balancer. +type LoadBalancerPropertiesFormat struct { + // FrontendIPConfigurations - Object representing the frontend IPs to be used for the load balancer. + FrontendIPConfigurations *[]FrontendIPConfiguration `json:"frontendIPConfigurations,omitempty"` + // BackendAddressPools - Collection of backend address pools used by a load balancer. + BackendAddressPools *[]BackendAddressPool `json:"backendAddressPools,omitempty"` + // LoadBalancingRules - Object collection representing the load balancing rules Gets the provisioning. + LoadBalancingRules *[]LoadBalancingRule `json:"loadBalancingRules,omitempty"` + // Probes - Collection of probe objects used in the load balancer. + Probes *[]Probe `json:"probes,omitempty"` + // InboundNatRules - Collection of inbound NAT Rules used by a load balancer. Defining inbound NAT rules on your load balancer is mutually exclusive with defining an inbound NAT pool. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an Inbound NAT pool. They have to reference individual inbound NAT rules. + InboundNatRules *[]InboundNatRule `json:"inboundNatRules,omitempty"` + // InboundNatPools - Defines an external port range for inbound NAT to a single backend port on NICs associated with a load balancer. Inbound NAT rules are created automatically for each NIC associated with the Load Balancer using an external port from this range. Defining an Inbound NAT pool on your Load Balancer is mutually exclusive with defining inbound Nat rules. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an inbound NAT pool. They have to reference individual inbound NAT rules. + InboundNatPools *[]InboundNatPool `json:"inboundNatPools,omitempty"` + // OutboundRules - The outbound rules. + OutboundRules *[]OutboundRule `json:"outboundRules,omitempty"` + // ResourceGUID - READ-ONLY; The resource GUID property of the load balancer resource. + ResourceGUID *string `json:"resourceGuid,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the load balancer resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for LoadBalancerPropertiesFormat. +func (lbpf LoadBalancerPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lbpf.FrontendIPConfigurations != nil { + objectMap["frontendIPConfigurations"] = lbpf.FrontendIPConfigurations + } + if lbpf.BackendAddressPools != nil { + objectMap["backendAddressPools"] = lbpf.BackendAddressPools + } + if lbpf.LoadBalancingRules != nil { + objectMap["loadBalancingRules"] = lbpf.LoadBalancingRules + } + if lbpf.Probes != nil { + objectMap["probes"] = lbpf.Probes + } + if lbpf.InboundNatRules != nil { + objectMap["inboundNatRules"] = lbpf.InboundNatRules + } + if lbpf.InboundNatPools != nil { + objectMap["inboundNatPools"] = lbpf.InboundNatPools + } + if lbpf.OutboundRules != nil { + objectMap["outboundRules"] = lbpf.OutboundRules + } + return json.Marshal(objectMap) +} + +// LoadBalancersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type LoadBalancersCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *LoadBalancersCreateOrUpdateFuture) Result(client LoadBalancersClient) (lb LoadBalancer, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancersCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.LoadBalancersCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if lb.Response.Response, err = future.GetResult(sender); err == nil && lb.Response.Response.StatusCode != http.StatusNoContent { + lb, err = client.CreateOrUpdateResponder(lb.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancersCreateOrUpdateFuture", "Result", lb.Response.Response, "Failure responding to request") + } + } + return +} + +// LoadBalancersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type LoadBalancersDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *LoadBalancersDeleteFuture) Result(client LoadBalancersClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LoadBalancersDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.LoadBalancersDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// LoadBalancerSku SKU of a load balancer. +type LoadBalancerSku struct { + // Name - Name of a load balancer SKU. Possible values include: 'LoadBalancerSkuNameBasic', 'LoadBalancerSkuNameStandard' + Name LoadBalancerSkuName `json:"name,omitempty"` + // Tier - Tier of a load balancer SKU. Possible values include: 'Regional', 'Global' + Tier LoadBalancerSkuTier `json:"tier,omitempty"` +} + +// LoadBalancingRule a load balancing rule for a load balancer. +type LoadBalancingRule struct { + autorest.Response `json:"-"` + // LoadBalancingRulePropertiesFormat - Properties of load balancer load balancing rule. + *LoadBalancingRulePropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource that is unique within the set of load balancing rules used by the load balancer. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for LoadBalancingRule. +func (lbr LoadBalancingRule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lbr.LoadBalancingRulePropertiesFormat != nil { + objectMap["properties"] = lbr.LoadBalancingRulePropertiesFormat + } + if lbr.Name != nil { + objectMap["name"] = lbr.Name + } + if lbr.ID != nil { + objectMap["id"] = lbr.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for LoadBalancingRule struct. +func (lbr *LoadBalancingRule) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var loadBalancingRulePropertiesFormat LoadBalancingRulePropertiesFormat + err = json.Unmarshal(*v, &loadBalancingRulePropertiesFormat) + if err != nil { + return err + } + lbr.LoadBalancingRulePropertiesFormat = &loadBalancingRulePropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + lbr.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + lbr.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + lbr.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + lbr.ID = &ID + } + } + } + + return nil +} + +// LoadBalancingRulePropertiesFormat properties of the load balancer. +type LoadBalancingRulePropertiesFormat struct { + // FrontendIPConfiguration - A reference to frontend IP addresses. + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + // BackendAddressPool - A reference to a pool of DIPs. Inbound traffic is randomly load balanced across IPs in the backend IPs. + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + // Probe - The reference to the load balancer probe used by the load balancing rule. + Probe *SubResource `json:"probe,omitempty"` + // Protocol - The reference to the transport protocol used by the load balancing rule. Possible values include: 'TransportProtocolUDP', 'TransportProtocolTCP', 'TransportProtocolAll' + Protocol TransportProtocol `json:"protocol,omitempty"` + // LoadDistribution - The load distribution policy for this rule. Possible values include: 'LoadDistributionDefault', 'LoadDistributionSourceIP', 'LoadDistributionSourceIPProtocol' + LoadDistribution LoadDistribution `json:"loadDistribution,omitempty"` + // FrontendPort - The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values are between 0 and 65534. Note that value 0 enables "Any Port". + FrontendPort *int32 `json:"frontendPort,omitempty"` + // BackendPort - The port used for internal connections on the endpoint. Acceptable values are between 0 and 65535. Note that value 0 enables "Any Port". + BackendPort *int32 `json:"backendPort,omitempty"` + // IdleTimeoutInMinutes - The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP. + IdleTimeoutInMinutes *int32 `json:"idleTimeoutInMinutes,omitempty"` + // EnableFloatingIP - Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint. + EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` + // EnableTCPReset - Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP. + EnableTCPReset *bool `json:"enableTcpReset,omitempty"` + // DisableOutboundSnat - Configures SNAT for the VMs in the backend pool to use the publicIP address specified in the frontend of the load balancing rule. + DisableOutboundSnat *bool `json:"disableOutboundSnat,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the load balancing rule resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for LoadBalancingRulePropertiesFormat. +func (lbrpf LoadBalancingRulePropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lbrpf.FrontendIPConfiguration != nil { + objectMap["frontendIPConfiguration"] = lbrpf.FrontendIPConfiguration + } + if lbrpf.BackendAddressPool != nil { + objectMap["backendAddressPool"] = lbrpf.BackendAddressPool + } + if lbrpf.Probe != nil { + objectMap["probe"] = lbrpf.Probe + } + if lbrpf.Protocol != "" { + objectMap["protocol"] = lbrpf.Protocol + } + if lbrpf.LoadDistribution != "" { + objectMap["loadDistribution"] = lbrpf.LoadDistribution + } + if lbrpf.FrontendPort != nil { + objectMap["frontendPort"] = lbrpf.FrontendPort + } + if lbrpf.BackendPort != nil { + objectMap["backendPort"] = lbrpf.BackendPort + } + if lbrpf.IdleTimeoutInMinutes != nil { + objectMap["idleTimeoutInMinutes"] = lbrpf.IdleTimeoutInMinutes + } + if lbrpf.EnableFloatingIP != nil { + objectMap["enableFloatingIP"] = lbrpf.EnableFloatingIP + } + if lbrpf.EnableTCPReset != nil { + objectMap["enableTcpReset"] = lbrpf.EnableTCPReset + } + if lbrpf.DisableOutboundSnat != nil { + objectMap["disableOutboundSnat"] = lbrpf.DisableOutboundSnat + } + return json.Marshal(objectMap) +} + +// LocalNetworkGateway a common class for general resource information. +type LocalNetworkGateway struct { + autorest.Response `json:"-"` + // LocalNetworkGatewayPropertiesFormat - Properties of the local network gateway. + *LocalNetworkGatewayPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for LocalNetworkGateway. +func (lng LocalNetworkGateway) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lng.LocalNetworkGatewayPropertiesFormat != nil { + objectMap["properties"] = lng.LocalNetworkGatewayPropertiesFormat + } + if lng.ID != nil { + objectMap["id"] = lng.ID + } + if lng.Location != nil { + objectMap["location"] = lng.Location + } + if lng.Tags != nil { + objectMap["tags"] = lng.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for LocalNetworkGateway struct. +func (lng *LocalNetworkGateway) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var localNetworkGatewayPropertiesFormat LocalNetworkGatewayPropertiesFormat + err = json.Unmarshal(*v, &localNetworkGatewayPropertiesFormat) + if err != nil { + return err + } + lng.LocalNetworkGatewayPropertiesFormat = &localNetworkGatewayPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + lng.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + lng.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + lng.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + lng.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + lng.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + lng.Tags = tags + } + } + } + + return nil +} + +// LocalNetworkGatewayListResult response for ListLocalNetworkGateways API service call. +type LocalNetworkGatewayListResult struct { + autorest.Response `json:"-"` + // Value - A list of local network gateways that exists in a resource group. + Value *[]LocalNetworkGateway `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for LocalNetworkGatewayListResult. +func (lnglr LocalNetworkGatewayListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lnglr.Value != nil { + objectMap["value"] = lnglr.Value + } + return json.Marshal(objectMap) +} + +// LocalNetworkGatewayListResultIterator provides access to a complete listing of LocalNetworkGateway +// values. +type LocalNetworkGatewayListResultIterator struct { + i int + page LocalNetworkGatewayListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *LocalNetworkGatewayListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LocalNetworkGatewayListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *LocalNetworkGatewayListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter LocalNetworkGatewayListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter LocalNetworkGatewayListResultIterator) Response() LocalNetworkGatewayListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter LocalNetworkGatewayListResultIterator) Value() LocalNetworkGateway { + if !iter.page.NotDone() { + return LocalNetworkGateway{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the LocalNetworkGatewayListResultIterator type. +func NewLocalNetworkGatewayListResultIterator(page LocalNetworkGatewayListResultPage) LocalNetworkGatewayListResultIterator { + return LocalNetworkGatewayListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lnglr LocalNetworkGatewayListResult) IsEmpty() bool { + return lnglr.Value == nil || len(*lnglr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (lnglr LocalNetworkGatewayListResult) hasNextLink() bool { + return lnglr.NextLink != nil && len(*lnglr.NextLink) != 0 +} + +// localNetworkGatewayListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lnglr LocalNetworkGatewayListResult) localNetworkGatewayListResultPreparer(ctx context.Context) (*http.Request, error) { + if !lnglr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lnglr.NextLink))) +} + +// LocalNetworkGatewayListResultPage contains a page of LocalNetworkGateway values. +type LocalNetworkGatewayListResultPage struct { + fn func(context.Context, LocalNetworkGatewayListResult) (LocalNetworkGatewayListResult, error) + lnglr LocalNetworkGatewayListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *LocalNetworkGatewayListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LocalNetworkGatewayListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.lnglr) + if err != nil { + return err + } + page.lnglr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *LocalNetworkGatewayListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page LocalNetworkGatewayListResultPage) NotDone() bool { + return !page.lnglr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page LocalNetworkGatewayListResultPage) Response() LocalNetworkGatewayListResult { + return page.lnglr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page LocalNetworkGatewayListResultPage) Values() []LocalNetworkGateway { + if page.lnglr.IsEmpty() { + return nil + } + return *page.lnglr.Value +} + +// Creates a new instance of the LocalNetworkGatewayListResultPage type. +func NewLocalNetworkGatewayListResultPage(cur LocalNetworkGatewayListResult, getNextPage func(context.Context, LocalNetworkGatewayListResult) (LocalNetworkGatewayListResult, error)) LocalNetworkGatewayListResultPage { + return LocalNetworkGatewayListResultPage{ + fn: getNextPage, + lnglr: cur, + } +} + +// LocalNetworkGatewayPropertiesFormat localNetworkGateway properties. +type LocalNetworkGatewayPropertiesFormat struct { + // LocalNetworkAddressSpace - Local network site address space. + LocalNetworkAddressSpace *AddressSpace `json:"localNetworkAddressSpace,omitempty"` + // GatewayIPAddress - IP address of local network gateway. + GatewayIPAddress *string `json:"gatewayIpAddress,omitempty"` + // Fqdn - FQDN of local network gateway. + Fqdn *string `json:"fqdn,omitempty"` + // BgpSettings - Local network gateway's BGP speaker settings. + BgpSettings *BgpSettings `json:"bgpSettings,omitempty"` + // ResourceGUID - READ-ONLY; The resource GUID property of the local network gateway resource. + ResourceGUID *string `json:"resourceGuid,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the local network gateway resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for LocalNetworkGatewayPropertiesFormat. +func (lngpf LocalNetworkGatewayPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lngpf.LocalNetworkAddressSpace != nil { + objectMap["localNetworkAddressSpace"] = lngpf.LocalNetworkAddressSpace + } + if lngpf.GatewayIPAddress != nil { + objectMap["gatewayIpAddress"] = lngpf.GatewayIPAddress + } + if lngpf.Fqdn != nil { + objectMap["fqdn"] = lngpf.Fqdn + } + if lngpf.BgpSettings != nil { + objectMap["bgpSettings"] = lngpf.BgpSettings + } + return json.Marshal(objectMap) +} + +// LocalNetworkGatewaysCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type LocalNetworkGatewaysCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *LocalNetworkGatewaysCreateOrUpdateFuture) Result(client LocalNetworkGatewaysClient) (lng LocalNetworkGateway, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.LocalNetworkGatewaysCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if lng.Response.Response, err = future.GetResult(sender); err == nil && lng.Response.Response.StatusCode != http.StatusNoContent { + lng, err = client.CreateOrUpdateResponder(lng.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysCreateOrUpdateFuture", "Result", lng.Response.Response, "Failure responding to request") + } + } + return +} + +// LocalNetworkGatewaysDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type LocalNetworkGatewaysDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *LocalNetworkGatewaysDeleteFuture) Result(client LocalNetworkGatewaysClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.LocalNetworkGatewaysDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// LogSpecification description of logging specification. +type LogSpecification struct { + // Name - The name of the specification. + Name *string `json:"name,omitempty"` + // DisplayName - The display name of the specification. + DisplayName *string `json:"displayName,omitempty"` + // BlobDuration - Duration of the blob. + BlobDuration *string `json:"blobDuration,omitempty"` +} + +// ManagedRuleGroupOverride defines a managed rule group override setting. +type ManagedRuleGroupOverride struct { + // RuleGroupName - The managed rule group to override. + RuleGroupName *string `json:"ruleGroupName,omitempty"` + // Rules - List of rules that will be disabled. If none specified, all rules in the group will be disabled. + Rules *[]ManagedRuleOverride `json:"rules,omitempty"` +} + +// ManagedRuleOverride defines a managed rule group override setting. +type ManagedRuleOverride struct { + // RuleID - Identifier for the managed rule. + RuleID *string `json:"ruleId,omitempty"` + // State - The state of the managed rule. Defaults to Disabled if not specified. Possible values include: 'ManagedRuleEnabledStateDisabled' + State ManagedRuleEnabledState `json:"state,omitempty"` +} + +// ManagedRulesDefinition allow to exclude some variable satisfy the condition for the WAF check. +type ManagedRulesDefinition struct { + // Exclusions - The Exclusions that are applied on the policy. + Exclusions *[]OwaspCrsExclusionEntry `json:"exclusions,omitempty"` + // ManagedRuleSets - The managed rule sets that are associated with the policy. + ManagedRuleSets *[]ManagedRuleSet `json:"managedRuleSets,omitempty"` +} + +// ManagedRuleSet defines a managed rule set. +type ManagedRuleSet struct { + // RuleSetType - Defines the rule set type to use. + RuleSetType *string `json:"ruleSetType,omitempty"` + // RuleSetVersion - Defines the version of the rule set to use. + RuleSetVersion *string `json:"ruleSetVersion,omitempty"` + // RuleGroupOverrides - Defines the rule group overrides to apply to the rule set. + RuleGroupOverrides *[]ManagedRuleGroupOverride `json:"ruleGroupOverrides,omitempty"` +} + +// ManagedServiceIdentity identity for the resource. +type ManagedServiceIdentity struct { + // PrincipalID - READ-ONLY; The principal id of the system assigned identity. This property will only be provided for a system assigned identity. + PrincipalID *string `json:"principalId,omitempty"` + // TenantID - READ-ONLY; The tenant id of the system assigned identity. This property will only be provided for a system assigned identity. + TenantID *string `json:"tenantId,omitempty"` + // Type - The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine. Possible values include: 'ResourceIdentityTypeSystemAssigned', 'ResourceIdentityTypeUserAssigned', 'ResourceIdentityTypeSystemAssignedUserAssigned', 'ResourceIdentityTypeNone' + Type ResourceIdentityType `json:"type,omitempty"` + // UserAssignedIdentities - The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + UserAssignedIdentities map[string]*ManagedServiceIdentityUserAssignedIdentitiesValue `json:"userAssignedIdentities"` +} + +// MarshalJSON is the custom marshaler for ManagedServiceIdentity. +func (msi ManagedServiceIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if msi.Type != "" { + objectMap["type"] = msi.Type + } + if msi.UserAssignedIdentities != nil { + objectMap["userAssignedIdentities"] = msi.UserAssignedIdentities + } + return json.Marshal(objectMap) +} + +// ManagedServiceIdentityUserAssignedIdentitiesValue ... +type ManagedServiceIdentityUserAssignedIdentitiesValue struct { + // PrincipalID - READ-ONLY; The principal id of user assigned identity. + PrincipalID *string `json:"principalId,omitempty"` + // ClientID - READ-ONLY; The client id of user assigned identity. + ClientID *string `json:"clientId,omitempty"` +} + +// MatchCondition define match conditions. +type MatchCondition struct { + // MatchVariables - List of match variables. + MatchVariables *[]MatchVariable `json:"matchVariables,omitempty"` + // Operator - The operator to be matched. Possible values include: 'WebApplicationFirewallOperatorIPMatch', 'WebApplicationFirewallOperatorEqual', 'WebApplicationFirewallOperatorContains', 'WebApplicationFirewallOperatorLessThan', 'WebApplicationFirewallOperatorGreaterThan', 'WebApplicationFirewallOperatorLessThanOrEqual', 'WebApplicationFirewallOperatorGreaterThanOrEqual', 'WebApplicationFirewallOperatorBeginsWith', 'WebApplicationFirewallOperatorEndsWith', 'WebApplicationFirewallOperatorRegex', 'WebApplicationFirewallOperatorGeoMatch' + Operator WebApplicationFirewallOperator `json:"operator,omitempty"` + // NegationConditon - Whether this is negate condition or not. + NegationConditon *bool `json:"negationConditon,omitempty"` + // MatchValues - Match value. + MatchValues *[]string `json:"matchValues,omitempty"` + // Transforms - List of transforms. + Transforms *[]WebApplicationFirewallTransform `json:"transforms,omitempty"` +} + +// MatchedRule matched rule. +type MatchedRule struct { + // RuleName - Name of the matched network security rule. + RuleName *string `json:"ruleName,omitempty"` + // Action - The network traffic is allowed or denied. Possible values are 'Allow' and 'Deny'. + Action *string `json:"action,omitempty"` +} + +// MatchVariable define match variables. +type MatchVariable struct { + // VariableName - Match Variable. Possible values include: 'RemoteAddr', 'RequestMethod', 'QueryString', 'PostArgs', 'RequestURI', 'RequestHeaders', 'RequestBody', 'RequestCookies' + VariableName WebApplicationFirewallMatchVariable `json:"variableName,omitempty"` + // Selector - The selector of match variable. + Selector *string `json:"selector,omitempty"` +} + +// MetricSpecification description of metrics specification. +type MetricSpecification struct { + // Name - The name of the metric. + Name *string `json:"name,omitempty"` + // DisplayName - The display name of the metric. + DisplayName *string `json:"displayName,omitempty"` + // DisplayDescription - The description of the metric. + DisplayDescription *string `json:"displayDescription,omitempty"` + // Unit - Units the metric to be displayed in. + Unit *string `json:"unit,omitempty"` + // AggregationType - The aggregation type. + AggregationType *string `json:"aggregationType,omitempty"` + // Availabilities - List of availability. + Availabilities *[]Availability `json:"availabilities,omitempty"` + // EnableRegionalMdmAccount - Whether regional MDM account enabled. + EnableRegionalMdmAccount *bool `json:"enableRegionalMdmAccount,omitempty"` + // FillGapWithZero - Whether gaps would be filled with zeros. + FillGapWithZero *bool `json:"fillGapWithZero,omitempty"` + // MetricFilterPattern - Pattern for the filter of the metric. + MetricFilterPattern *string `json:"metricFilterPattern,omitempty"` + // Dimensions - List of dimensions. + Dimensions *[]Dimension `json:"dimensions,omitempty"` + // IsInternal - Whether the metric is internal. + IsInternal *bool `json:"isInternal,omitempty"` + // SourceMdmAccount - The source MDM account. + SourceMdmAccount *string `json:"sourceMdmAccount,omitempty"` + // SourceMdmNamespace - The source MDM namespace. + SourceMdmNamespace *string `json:"sourceMdmNamespace,omitempty"` + // ResourceIDDimensionNameOverride - The resource Id dimension name override. + ResourceIDDimensionNameOverride *string `json:"resourceIdDimensionNameOverride,omitempty"` +} + +// NatGateway nat Gateway resource. +type NatGateway struct { + autorest.Response `json:"-"` + // Sku - The nat gateway SKU. + Sku *NatGatewaySku `json:"sku,omitempty"` + // NatGatewayPropertiesFormat - Nat Gateway properties. + *NatGatewayPropertiesFormat `json:"properties,omitempty"` + // Zones - A list of availability zones denoting the zone in which Nat Gateway should be deployed. + Zones *[]string `json:"zones,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for NatGateway. +func (ng NatGateway) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ng.Sku != nil { + objectMap["sku"] = ng.Sku + } + if ng.NatGatewayPropertiesFormat != nil { + objectMap["properties"] = ng.NatGatewayPropertiesFormat + } + if ng.Zones != nil { + objectMap["zones"] = ng.Zones + } + if ng.ID != nil { + objectMap["id"] = ng.ID + } + if ng.Location != nil { + objectMap["location"] = ng.Location + } + if ng.Tags != nil { + objectMap["tags"] = ng.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for NatGateway struct. +func (ng *NatGateway) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "sku": + if v != nil { + var sku NatGatewaySku + err = json.Unmarshal(*v, &sku) + if err != nil { + return err + } + ng.Sku = &sku + } + case "properties": + if v != nil { + var natGatewayPropertiesFormat NatGatewayPropertiesFormat + err = json.Unmarshal(*v, &natGatewayPropertiesFormat) + if err != nil { + return err + } + ng.NatGatewayPropertiesFormat = &natGatewayPropertiesFormat + } + case "zones": + if v != nil { + var zones []string + err = json.Unmarshal(*v, &zones) + if err != nil { + return err + } + ng.Zones = &zones + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + ng.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + ng.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ng.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ng.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + ng.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + ng.Tags = tags + } + } + } + + return nil +} + +// NatGatewayListResult response for ListNatGateways API service call. +type NatGatewayListResult struct { + autorest.Response `json:"-"` + // Value - A list of Nat Gateways that exists in a resource group. + Value *[]NatGateway `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// NatGatewayListResultIterator provides access to a complete listing of NatGateway values. +type NatGatewayListResultIterator struct { + i int + page NatGatewayListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *NatGatewayListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/NatGatewayListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *NatGatewayListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter NatGatewayListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter NatGatewayListResultIterator) Response() NatGatewayListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter NatGatewayListResultIterator) Value() NatGateway { + if !iter.page.NotDone() { + return NatGateway{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the NatGatewayListResultIterator type. +func NewNatGatewayListResultIterator(page NatGatewayListResultPage) NatGatewayListResultIterator { + return NatGatewayListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (nglr NatGatewayListResult) IsEmpty() bool { + return nglr.Value == nil || len(*nglr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (nglr NatGatewayListResult) hasNextLink() bool { + return nglr.NextLink != nil && len(*nglr.NextLink) != 0 +} + +// natGatewayListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (nglr NatGatewayListResult) natGatewayListResultPreparer(ctx context.Context) (*http.Request, error) { + if !nglr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(nglr.NextLink))) +} + +// NatGatewayListResultPage contains a page of NatGateway values. +type NatGatewayListResultPage struct { + fn func(context.Context, NatGatewayListResult) (NatGatewayListResult, error) + nglr NatGatewayListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *NatGatewayListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/NatGatewayListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.nglr) + if err != nil { + return err + } + page.nglr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *NatGatewayListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page NatGatewayListResultPage) NotDone() bool { + return !page.nglr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page NatGatewayListResultPage) Response() NatGatewayListResult { + return page.nglr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page NatGatewayListResultPage) Values() []NatGateway { + if page.nglr.IsEmpty() { + return nil + } + return *page.nglr.Value +} + +// Creates a new instance of the NatGatewayListResultPage type. +func NewNatGatewayListResultPage(cur NatGatewayListResult, getNextPage func(context.Context, NatGatewayListResult) (NatGatewayListResult, error)) NatGatewayListResultPage { + return NatGatewayListResultPage{ + fn: getNextPage, + nglr: cur, + } +} + +// NatGatewayPropertiesFormat nat Gateway properties. +type NatGatewayPropertiesFormat struct { + // IdleTimeoutInMinutes - The idle timeout of the nat gateway. + IdleTimeoutInMinutes *int32 `json:"idleTimeoutInMinutes,omitempty"` + // PublicIPAddresses - An array of public ip addresses associated with the nat gateway resource. + PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` + // PublicIPPrefixes - An array of public ip prefixes associated with the nat gateway resource. + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + // Subnets - READ-ONLY; An array of references to the subnets using this nat gateway resource. + Subnets *[]SubResource `json:"subnets,omitempty"` + // ResourceGUID - READ-ONLY; The resource GUID property of the NAT gateway resource. + ResourceGUID *string `json:"resourceGuid,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the NAT gateway resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for NatGatewayPropertiesFormat. +func (ngpf NatGatewayPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ngpf.IdleTimeoutInMinutes != nil { + objectMap["idleTimeoutInMinutes"] = ngpf.IdleTimeoutInMinutes + } + if ngpf.PublicIPAddresses != nil { + objectMap["publicIpAddresses"] = ngpf.PublicIPAddresses + } + if ngpf.PublicIPPrefixes != nil { + objectMap["publicIpPrefixes"] = ngpf.PublicIPPrefixes + } + return json.Marshal(objectMap) +} + +// NatGatewaysCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type NatGatewaysCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *NatGatewaysCreateOrUpdateFuture) Result(client NatGatewaysClient) (ng NatGateway, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.NatGatewaysCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.NatGatewaysCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if ng.Response.Response, err = future.GetResult(sender); err == nil && ng.Response.Response.StatusCode != http.StatusNoContent { + ng, err = client.CreateOrUpdateResponder(ng.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.NatGatewaysCreateOrUpdateFuture", "Result", ng.Response.Response, "Failure responding to request") + } + } + return +} + +// NatGatewaysDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type NatGatewaysDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *NatGatewaysDeleteFuture) Result(client NatGatewaysClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.NatGatewaysDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.NatGatewaysDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// NatGatewaySku SKU of nat gateway. +type NatGatewaySku struct { + // Name - Name of Nat Gateway SKU. Possible values include: 'NatGatewaySkuNameStandard' + Name NatGatewaySkuName `json:"name,omitempty"` +} + +// NatRule rule of type nat. +type NatRule struct { + // IPProtocols - Array of FirewallPolicyRuleNetworkProtocols. + IPProtocols *[]FirewallPolicyRuleNetworkProtocol `json:"ipProtocols,omitempty"` + // SourceAddresses - List of source IP addresses for this rule. + SourceAddresses *[]string `json:"sourceAddresses,omitempty"` + // DestinationAddresses - List of destination IP addresses or Service Tags. + DestinationAddresses *[]string `json:"destinationAddresses,omitempty"` + // DestinationPorts - List of destination ports. + DestinationPorts *[]string `json:"destinationPorts,omitempty"` + // TranslatedAddress - The translated address for this NAT rule. + TranslatedAddress *string `json:"translatedAddress,omitempty"` + // TranslatedPort - The translated port for this NAT rule. + TranslatedPort *string `json:"translatedPort,omitempty"` + // SourceIPGroups - List of source IpGroups for this rule. + SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` + // TranslatedFqdn - The translated FQDN for this NAT rule. + TranslatedFqdn *string `json:"translatedFqdn,omitempty"` + // Name - Name of the rule. + Name *string `json:"name,omitempty"` + // Description - Description of the rule. + Description *string `json:"description,omitempty"` + // RuleType - Possible values include: 'RuleTypeFirewallPolicyRule', 'RuleTypeApplicationRule', 'RuleTypeNatRule', 'RuleTypeNetworkRule' + RuleType RuleType `json:"ruleType,omitempty"` +} + +// MarshalJSON is the custom marshaler for NatRule. +func (nr NatRule) MarshalJSON() ([]byte, error) { + nr.RuleType = RuleTypeNatRule + objectMap := make(map[string]interface{}) + if nr.IPProtocols != nil { + objectMap["ipProtocols"] = nr.IPProtocols + } + if nr.SourceAddresses != nil { + objectMap["sourceAddresses"] = nr.SourceAddresses + } + if nr.DestinationAddresses != nil { + objectMap["destinationAddresses"] = nr.DestinationAddresses + } + if nr.DestinationPorts != nil { + objectMap["destinationPorts"] = nr.DestinationPorts + } + if nr.TranslatedAddress != nil { + objectMap["translatedAddress"] = nr.TranslatedAddress + } + if nr.TranslatedPort != nil { + objectMap["translatedPort"] = nr.TranslatedPort + } + if nr.SourceIPGroups != nil { + objectMap["sourceIpGroups"] = nr.SourceIPGroups + } + if nr.TranslatedFqdn != nil { + objectMap["translatedFqdn"] = nr.TranslatedFqdn + } + if nr.Name != nil { + objectMap["name"] = nr.Name + } + if nr.Description != nil { + objectMap["description"] = nr.Description + } + if nr.RuleType != "" { + objectMap["ruleType"] = nr.RuleType + } + return json.Marshal(objectMap) +} + +// AsApplicationRule is the BasicFirewallPolicyRule implementation for NatRule. +func (nr NatRule) AsApplicationRule() (*ApplicationRule, bool) { + return nil, false +} + +// AsNatRule is the BasicFirewallPolicyRule implementation for NatRule. +func (nr NatRule) AsNatRule() (*NatRule, bool) { + return &nr, true +} + +// AsRule is the BasicFirewallPolicyRule implementation for NatRule. +func (nr NatRule) AsRule() (*Rule, bool) { + return nil, false +} + +// AsFirewallPolicyRule is the BasicFirewallPolicyRule implementation for NatRule. +func (nr NatRule) AsFirewallPolicyRule() (*FirewallPolicyRule, bool) { + return nil, false +} + +// AsBasicFirewallPolicyRule is the BasicFirewallPolicyRule implementation for NatRule. +func (nr NatRule) AsBasicFirewallPolicyRule() (BasicFirewallPolicyRule, bool) { + return &nr, true +} + +// NextHopParameters parameters that define the source and destination endpoint. +type NextHopParameters struct { + // TargetResourceID - The resource identifier of the target resource against which the action is to be performed. + TargetResourceID *string `json:"targetResourceId,omitempty"` + // SourceIPAddress - The source IP address. + SourceIPAddress *string `json:"sourceIPAddress,omitempty"` + // DestinationIPAddress - The destination IP address. + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + // TargetNicResourceID - The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any of the nics, then this parameter must be specified. Otherwise optional). + TargetNicResourceID *string `json:"targetNicResourceId,omitempty"` +} + +// NextHopResult the information about next hop from the specified VM. +type NextHopResult struct { + autorest.Response `json:"-"` + // NextHopType - Next hop type. Possible values include: 'NextHopTypeInternet', 'NextHopTypeVirtualAppliance', 'NextHopTypeVirtualNetworkGateway', 'NextHopTypeVnetLocal', 'NextHopTypeHyperNetGateway', 'NextHopTypeNone' + NextHopType NextHopType `json:"nextHopType,omitempty"` + // NextHopIPAddress - Next hop IP Address. + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` + // RouteTableID - The resource identifier for the route table associated with the route being returned. If the route being returned does not correspond to any user created routes then this field will be the string 'System Route'. + RouteTableID *string `json:"routeTableId,omitempty"` +} + +// O365BreakOutCategoryPolicies office365 breakout categories. +type O365BreakOutCategoryPolicies struct { + // Allow - Flag to control allow category. + Allow *bool `json:"allow,omitempty"` + // Optimize - Flag to control optimize category. + Optimize *bool `json:"optimize,omitempty"` + // Default - Flag to control default category. + Default *bool `json:"default,omitempty"` +} + +// O365PolicyProperties the Office365 breakout policy. +type O365PolicyProperties struct { + // BreakOutCategories - Office365 breakout categories. + BreakOutCategories *O365BreakOutCategoryPolicies `json:"breakOutCategories,omitempty"` +} + +// Office365PolicyProperties network Virtual Appliance Sku Properties. +type Office365PolicyProperties struct { + // BreakOutCategories - Office 365 breakout categories. + BreakOutCategories *BreakOutCategoryPolicies `json:"breakOutCategories,omitempty"` +} + +// Operation network REST API operation definition. +type Operation struct { + // Name - Operation name: {provider}/{resource}/{operation}. + Name *string `json:"name,omitempty"` + // Display - Display metadata associated with the operation. + Display *OperationDisplay `json:"display,omitempty"` + // Origin - Origin of the operation. + Origin *string `json:"origin,omitempty"` + // OperationPropertiesFormat - Operation properties format. + *OperationPropertiesFormat `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if o.Name != nil { + objectMap["name"] = o.Name + } + if o.Display != nil { + objectMap["display"] = o.Display + } + if o.Origin != nil { + objectMap["origin"] = o.Origin + } + if o.OperationPropertiesFormat != nil { + objectMap["properties"] = o.OperationPropertiesFormat + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Operation struct. +func (o *Operation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + o.Name = &name + } + case "display": + if v != nil { + var display OperationDisplay + err = json.Unmarshal(*v, &display) + if err != nil { + return err + } + o.Display = &display + } + case "origin": + if v != nil { + var origin string + err = json.Unmarshal(*v, &origin) + if err != nil { + return err + } + o.Origin = &origin + } + case "properties": + if v != nil { + var operationPropertiesFormat OperationPropertiesFormat + err = json.Unmarshal(*v, &operationPropertiesFormat) + if err != nil { + return err + } + o.OperationPropertiesFormat = &operationPropertiesFormat + } + } + } + + return nil +} + +// OperationDisplay display metadata associated with the operation. +type OperationDisplay struct { + // Provider - Service provider: Microsoft Network. + Provider *string `json:"provider,omitempty"` + // Resource - Resource on which the operation is performed. + Resource *string `json:"resource,omitempty"` + // Operation - Type of the operation: get, read, delete, etc. + Operation *string `json:"operation,omitempty"` + // Description - Description of the operation. + Description *string `json:"description,omitempty"` +} + +// OperationListResult result of the request to list Network operations. It contains a list of operations +// and a URL link to get the next set of results. +type OperationListResult struct { + autorest.Response `json:"-"` + // Value - List of Network operations supported by the Network resource provider. + Value *[]Operation `json:"value,omitempty"` + // NextLink - URL to get the next set of operation list results if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// OperationListResultIterator provides access to a complete listing of Operation values. +type OperationListResultIterator struct { + i int + page OperationListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *OperationListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter OperationListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter OperationListResultIterator) Response() OperationListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter OperationListResultIterator) Value() Operation { + if !iter.page.NotDone() { + return Operation{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the OperationListResultIterator type. +func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator { + return OperationListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (olr OperationListResult) IsEmpty() bool { + return olr.Value == nil || len(*olr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (olr OperationListResult) hasNextLink() bool { + return olr.NextLink != nil && len(*olr.NextLink) != 0 +} + +// operationListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (olr OperationListResult) operationListResultPreparer(ctx context.Context) (*http.Request, error) { + if !olr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(olr.NextLink))) +} + +// OperationListResultPage contains a page of Operation values. +type OperationListResultPage struct { + fn func(context.Context, OperationListResult) (OperationListResult, error) + olr OperationListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.olr) + if err != nil { + return err + } + page.olr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *OperationListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page OperationListResultPage) NotDone() bool { + return !page.olr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page OperationListResultPage) Response() OperationListResult { + return page.olr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page OperationListResultPage) Values() []Operation { + if page.olr.IsEmpty() { + return nil + } + return *page.olr.Value +} + +// Creates a new instance of the OperationListResultPage type. +func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage { + return OperationListResultPage{ + fn: getNextPage, + olr: cur, + } +} + +// OperationPropertiesFormat description of operation properties format. +type OperationPropertiesFormat struct { + // ServiceSpecification - Specification of the service. + ServiceSpecification *OperationPropertiesFormatServiceSpecification `json:"serviceSpecification,omitempty"` +} + +// OperationPropertiesFormatServiceSpecification specification of the service. +type OperationPropertiesFormatServiceSpecification struct { + // MetricSpecifications - Operation service specification. + MetricSpecifications *[]MetricSpecification `json:"metricSpecifications,omitempty"` + // LogSpecifications - Operation log specification. + LogSpecifications *[]LogSpecification `json:"logSpecifications,omitempty"` +} + +// OutboundRule outbound rule of the load balancer. +type OutboundRule struct { + autorest.Response `json:"-"` + // OutboundRulePropertiesFormat - Properties of load balancer outbound rule. + *OutboundRulePropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource that is unique within the set of outbound rules used by the load balancer. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for OutboundRule. +func (or OutboundRule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if or.OutboundRulePropertiesFormat != nil { + objectMap["properties"] = or.OutboundRulePropertiesFormat + } + if or.Name != nil { + objectMap["name"] = or.Name + } + if or.ID != nil { + objectMap["id"] = or.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for OutboundRule struct. +func (or *OutboundRule) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var outboundRulePropertiesFormat OutboundRulePropertiesFormat + err = json.Unmarshal(*v, &outboundRulePropertiesFormat) + if err != nil { + return err + } + or.OutboundRulePropertiesFormat = &outboundRulePropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + or.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + or.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + or.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + or.ID = &ID + } + } + } + + return nil +} + +// OutboundRulePropertiesFormat outbound rule of the load balancer. +type OutboundRulePropertiesFormat struct { + // AllocatedOutboundPorts - The number of outbound ports to be used for NAT. + AllocatedOutboundPorts *int32 `json:"allocatedOutboundPorts,omitempty"` + // FrontendIPConfigurations - The Frontend IP addresses of the load balancer. + FrontendIPConfigurations *[]SubResource `json:"frontendIPConfigurations,omitempty"` + // BackendAddressPool - A reference to a pool of DIPs. Outbound traffic is randomly load balanced across IPs in the backend IPs. + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the outbound rule resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // Protocol - The protocol for the outbound rule in load balancer. Possible values include: 'LoadBalancerOutboundRuleProtocolTCP', 'LoadBalancerOutboundRuleProtocolUDP', 'LoadBalancerOutboundRuleProtocolAll' + Protocol LoadBalancerOutboundRuleProtocol `json:"protocol,omitempty"` + // EnableTCPReset - Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP. + EnableTCPReset *bool `json:"enableTcpReset,omitempty"` + // IdleTimeoutInMinutes - The timeout for the TCP idle connection. + IdleTimeoutInMinutes *int32 `json:"idleTimeoutInMinutes,omitempty"` +} + +// MarshalJSON is the custom marshaler for OutboundRulePropertiesFormat. +func (orpf OutboundRulePropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if orpf.AllocatedOutboundPorts != nil { + objectMap["allocatedOutboundPorts"] = orpf.AllocatedOutboundPorts + } + if orpf.FrontendIPConfigurations != nil { + objectMap["frontendIPConfigurations"] = orpf.FrontendIPConfigurations + } + if orpf.BackendAddressPool != nil { + objectMap["backendAddressPool"] = orpf.BackendAddressPool + } + if orpf.Protocol != "" { + objectMap["protocol"] = orpf.Protocol + } + if orpf.EnableTCPReset != nil { + objectMap["enableTcpReset"] = orpf.EnableTCPReset + } + if orpf.IdleTimeoutInMinutes != nil { + objectMap["idleTimeoutInMinutes"] = orpf.IdleTimeoutInMinutes + } + return json.Marshal(objectMap) +} + +// OwaspCrsExclusionEntry allow to exclude some variable satisfy the condition for the WAF check. +type OwaspCrsExclusionEntry struct { + // MatchVariable - The variable to be excluded. Possible values include: 'RequestHeaderNames', 'RequestCookieNames', 'RequestArgNames' + MatchVariable OwaspCrsExclusionEntryMatchVariable `json:"matchVariable,omitempty"` + // SelectorMatchOperator - When matchVariable is a collection, operate on the selector to specify which elements in the collection this exclusion applies to. Possible values include: 'OwaspCrsExclusionEntrySelectorMatchOperatorEquals', 'OwaspCrsExclusionEntrySelectorMatchOperatorContains', 'OwaspCrsExclusionEntrySelectorMatchOperatorStartsWith', 'OwaspCrsExclusionEntrySelectorMatchOperatorEndsWith', 'OwaspCrsExclusionEntrySelectorMatchOperatorEqualsAny' + SelectorMatchOperator OwaspCrsExclusionEntrySelectorMatchOperator `json:"selectorMatchOperator,omitempty"` + // Selector - When matchVariable is a collection, operator used to specify which elements in the collection this exclusion applies to. + Selector *string `json:"selector,omitempty"` +} + +// P2SConnectionConfiguration p2SConnectionConfiguration Resource. +type P2SConnectionConfiguration struct { + // P2SConnectionConfigurationProperties - Properties of the P2S connection configuration. + *P2SConnectionConfigurationProperties `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for P2SConnectionConfiguration. +func (pcc P2SConnectionConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pcc.P2SConnectionConfigurationProperties != nil { + objectMap["properties"] = pcc.P2SConnectionConfigurationProperties + } + if pcc.Name != nil { + objectMap["name"] = pcc.Name + } + if pcc.ID != nil { + objectMap["id"] = pcc.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for P2SConnectionConfiguration struct. +func (pcc *P2SConnectionConfiguration) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var p2SConnectionConfigurationProperties P2SConnectionConfigurationProperties + err = json.Unmarshal(*v, &p2SConnectionConfigurationProperties) + if err != nil { + return err + } + pcc.P2SConnectionConfigurationProperties = &p2SConnectionConfigurationProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + pcc.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + pcc.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + pcc.ID = &ID + } + } + } + + return nil +} + +// P2SConnectionConfigurationProperties parameters for P2SConnectionConfiguration. +type P2SConnectionConfigurationProperties struct { + // VpnClientAddressPool - The reference to the address space resource which represents Address space for P2S VpnClient. + VpnClientAddressPool *AddressSpace `json:"vpnClientAddressPool,omitempty"` + // RoutingConfiguration - The Routing Configuration indicating the associated and propagated route tables on this connection. + RoutingConfiguration *RoutingConfiguration `json:"routingConfiguration,omitempty"` + // EnableInternetSecurity - Flag indicating whether the enable internet security flag is turned on for the P2S Connections or not. + EnableInternetSecurity *bool `json:"enableInternetSecurity,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the P2SConnectionConfiguration resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for P2SConnectionConfigurationProperties. +func (pccp P2SConnectionConfigurationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pccp.VpnClientAddressPool != nil { + objectMap["vpnClientAddressPool"] = pccp.VpnClientAddressPool + } + if pccp.RoutingConfiguration != nil { + objectMap["routingConfiguration"] = pccp.RoutingConfiguration + } + if pccp.EnableInternetSecurity != nil { + objectMap["enableInternetSecurity"] = pccp.EnableInternetSecurity + } + return json.Marshal(objectMap) +} + +// P2SVpnConnectionHealth p2S Vpn connection detailed health written to sas url. +type P2SVpnConnectionHealth struct { + autorest.Response `json:"-"` + // SasURL - Returned sas url of the blob to which the p2s vpn connection detailed health will be written. + SasURL *string `json:"sasUrl,omitempty"` +} + +// P2SVpnConnectionHealthRequest list of P2S Vpn connection health request. +type P2SVpnConnectionHealthRequest struct { + // VpnUserNamesFilter - The list of p2s vpn user names whose p2s vpn connection detailed health to retrieve for. + VpnUserNamesFilter *[]string `json:"vpnUserNamesFilter,omitempty"` + // OutputBlobSasURL - The sas-url to download the P2S Vpn connection health detail. + OutputBlobSasURL *string `json:"outputBlobSasUrl,omitempty"` +} + +// P2SVpnConnectionRequest list of p2s vpn connections to be disconnected. +type P2SVpnConnectionRequest struct { + // VpnConnectionIds - List of p2s vpn connection Ids. + VpnConnectionIds *[]string `json:"vpnConnectionIds,omitempty"` +} + +// P2SVpnGateway p2SVpnGateway Resource. +type P2SVpnGateway struct { + autorest.Response `json:"-"` + // P2SVpnGatewayProperties - Properties of the P2SVpnGateway. + *P2SVpnGatewayProperties `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for P2SVpnGateway. +func (pvg P2SVpnGateway) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pvg.P2SVpnGatewayProperties != nil { + objectMap["properties"] = pvg.P2SVpnGatewayProperties + } + if pvg.ID != nil { + objectMap["id"] = pvg.ID + } + if pvg.Location != nil { + objectMap["location"] = pvg.Location + } + if pvg.Tags != nil { + objectMap["tags"] = pvg.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for P2SVpnGateway struct. +func (pvg *P2SVpnGateway) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var p2SVpnGatewayProperties P2SVpnGatewayProperties + err = json.Unmarshal(*v, &p2SVpnGatewayProperties) + if err != nil { + return err + } + pvg.P2SVpnGatewayProperties = &p2SVpnGatewayProperties + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + pvg.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + pvg.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + pvg.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + pvg.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + pvg.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + pvg.Tags = tags + } + } + } + + return nil +} + +// P2SVpnGatewayProperties parameters for P2SVpnGateway. +type P2SVpnGatewayProperties struct { + // VirtualHub - The VirtualHub to which the gateway belongs. + VirtualHub *SubResource `json:"virtualHub,omitempty"` + // P2SConnectionConfigurations - List of all p2s connection configurations of the gateway. + P2SConnectionConfigurations *[]P2SConnectionConfiguration `json:"p2SConnectionConfigurations,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the P2S VPN gateway resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // VpnGatewayScaleUnit - The scale unit for this p2s vpn gateway. + VpnGatewayScaleUnit *int32 `json:"vpnGatewayScaleUnit,omitempty"` + // VpnServerConfiguration - The VpnServerConfiguration to which the p2sVpnGateway is attached to. + VpnServerConfiguration *SubResource `json:"vpnServerConfiguration,omitempty"` + // VpnClientConnectionHealth - READ-ONLY; All P2S VPN clients' connection health status. + VpnClientConnectionHealth *VpnClientConnectionHealth `json:"vpnClientConnectionHealth,omitempty"` + // CustomDNSServers - List of all customer specified DNS servers IP addresses. + CustomDNSServers *[]string `json:"customDnsServers,omitempty"` + // IsRoutingPreferenceInternet - Enable Routing Preference property for the Public IP Interface of the P2SVpnGateway. + IsRoutingPreferenceInternet *bool `json:"isRoutingPreferenceInternet,omitempty"` +} + +// MarshalJSON is the custom marshaler for P2SVpnGatewayProperties. +func (pvgp P2SVpnGatewayProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pvgp.VirtualHub != nil { + objectMap["virtualHub"] = pvgp.VirtualHub + } + if pvgp.P2SConnectionConfigurations != nil { + objectMap["p2SConnectionConfigurations"] = pvgp.P2SConnectionConfigurations + } + if pvgp.VpnGatewayScaleUnit != nil { + objectMap["vpnGatewayScaleUnit"] = pvgp.VpnGatewayScaleUnit + } + if pvgp.VpnServerConfiguration != nil { + objectMap["vpnServerConfiguration"] = pvgp.VpnServerConfiguration + } + if pvgp.CustomDNSServers != nil { + objectMap["customDnsServers"] = pvgp.CustomDNSServers + } + if pvgp.IsRoutingPreferenceInternet != nil { + objectMap["isRoutingPreferenceInternet"] = pvgp.IsRoutingPreferenceInternet + } + return json.Marshal(objectMap) +} + +// P2sVpnGatewaysCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type P2sVpnGatewaysCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *P2sVpnGatewaysCreateOrUpdateFuture) Result(client P2sVpnGatewaysClient) (pvg P2SVpnGateway, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.P2sVpnGatewaysCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if pvg.Response.Response, err = future.GetResult(sender); err == nil && pvg.Response.Response.StatusCode != http.StatusNoContent { + pvg, err = client.CreateOrUpdateResponder(pvg.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysCreateOrUpdateFuture", "Result", pvg.Response.Response, "Failure responding to request") + } + } + return +} + +// P2sVpnGatewaysDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type P2sVpnGatewaysDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *P2sVpnGatewaysDeleteFuture) Result(client P2sVpnGatewaysClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.P2sVpnGatewaysDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// P2sVpnGatewaysDisconnectP2sVpnConnectionsFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type P2sVpnGatewaysDisconnectP2sVpnConnectionsFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *P2sVpnGatewaysDisconnectP2sVpnConnectionsFuture) Result(client P2sVpnGatewaysClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysDisconnectP2sVpnConnectionsFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.P2sVpnGatewaysDisconnectP2sVpnConnectionsFuture") + return + } + ar.Response = future.Response() + return +} + +// P2sVpnGatewaysGenerateVpnProfileFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type P2sVpnGatewaysGenerateVpnProfileFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *P2sVpnGatewaysGenerateVpnProfileFuture) Result(client P2sVpnGatewaysClient) (vpr VpnProfileResponse, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysGenerateVpnProfileFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.P2sVpnGatewaysGenerateVpnProfileFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vpr.Response.Response, err = future.GetResult(sender); err == nil && vpr.Response.Response.StatusCode != http.StatusNoContent { + vpr, err = client.GenerateVpnProfileResponder(vpr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysGenerateVpnProfileFuture", "Result", vpr.Response.Response, "Failure responding to request") + } + } + return +} + +// P2sVpnGatewaysGetP2sVpnConnectionHealthDetailedFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type P2sVpnGatewaysGetP2sVpnConnectionHealthDetailedFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *P2sVpnGatewaysGetP2sVpnConnectionHealthDetailedFuture) Result(client P2sVpnGatewaysClient) (pvch P2SVpnConnectionHealth, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysGetP2sVpnConnectionHealthDetailedFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.P2sVpnGatewaysGetP2sVpnConnectionHealthDetailedFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if pvch.Response.Response, err = future.GetResult(sender); err == nil && pvch.Response.Response.StatusCode != http.StatusNoContent { + pvch, err = client.GetP2sVpnConnectionHealthDetailedResponder(pvch.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysGetP2sVpnConnectionHealthDetailedFuture", "Result", pvch.Response.Response, "Failure responding to request") + } + } + return +} + +// P2sVpnGatewaysGetP2sVpnConnectionHealthFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type P2sVpnGatewaysGetP2sVpnConnectionHealthFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *P2sVpnGatewaysGetP2sVpnConnectionHealthFuture) Result(client P2sVpnGatewaysClient) (pvg P2SVpnGateway, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysGetP2sVpnConnectionHealthFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.P2sVpnGatewaysGetP2sVpnConnectionHealthFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if pvg.Response.Response, err = future.GetResult(sender); err == nil && pvg.Response.Response.StatusCode != http.StatusNoContent { + pvg, err = client.GetP2sVpnConnectionHealthResponder(pvg.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysGetP2sVpnConnectionHealthFuture", "Result", pvg.Response.Response, "Failure responding to request") + } + } + return +} + +// P2SVpnGatewaysResetFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type P2SVpnGatewaysResetFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *P2SVpnGatewaysResetFuture) Result(client P2sVpnGatewaysClient) (pvg P2SVpnGateway, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2SVpnGatewaysResetFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.P2SVpnGatewaysResetFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if pvg.Response.Response, err = future.GetResult(sender); err == nil && pvg.Response.Response.StatusCode != http.StatusNoContent { + pvg, err = client.ResetResponder(pvg.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2SVpnGatewaysResetFuture", "Result", pvg.Response.Response, "Failure responding to request") + } + } + return +} + +// P2sVpnGatewaysUpdateTagsFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type P2sVpnGatewaysUpdateTagsFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *P2sVpnGatewaysUpdateTagsFuture) Result(client P2sVpnGatewaysClient) (pvg P2SVpnGateway, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysUpdateTagsFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.P2sVpnGatewaysUpdateTagsFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if pvg.Response.Response, err = future.GetResult(sender); err == nil && pvg.Response.Response.StatusCode != http.StatusNoContent { + pvg, err = client.UpdateTagsResponder(pvg.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysUpdateTagsFuture", "Result", pvg.Response.Response, "Failure responding to request") + } + } + return +} + +// P2SVpnProfileParameters vpn Client Parameters for package generation. +type P2SVpnProfileParameters struct { + // AuthenticationMethod - VPN client authentication method. Possible values include: 'EAPTLS', 'EAPMSCHAPv2' + AuthenticationMethod AuthenticationMethod `json:"authenticationMethod,omitempty"` +} + +// PacketCapture parameters that define the create packet capture operation. +type PacketCapture struct { + // PacketCaptureParameters - Properties of the packet capture. + *PacketCaptureParameters `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for PacketCapture. +func (pc PacketCapture) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pc.PacketCaptureParameters != nil { + objectMap["properties"] = pc.PacketCaptureParameters + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PacketCapture struct. +func (pc *PacketCapture) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var packetCaptureParameters PacketCaptureParameters + err = json.Unmarshal(*v, &packetCaptureParameters) + if err != nil { + return err + } + pc.PacketCaptureParameters = &packetCaptureParameters + } + } + } + + return nil +} + +// PacketCaptureFilter filter that is applied to packet capture request. Multiple filters can be applied. +type PacketCaptureFilter struct { + // Protocol - Protocol to be filtered on. Possible values include: 'PcProtocolTCP', 'PcProtocolUDP', 'PcProtocolAny' + Protocol PcProtocol `json:"protocol,omitempty"` + // LocalIPAddress - Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null. + LocalIPAddress *string `json:"localIPAddress,omitempty"` + // RemoteIPAddress - Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null. + RemoteIPAddress *string `json:"remoteIPAddress,omitempty"` + // LocalPort - Local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null. + LocalPort *string `json:"localPort,omitempty"` + // RemotePort - Remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null. + RemotePort *string `json:"remotePort,omitempty"` +} + +// PacketCaptureListResult list of packet capture sessions. +type PacketCaptureListResult struct { + autorest.Response `json:"-"` + // Value - Information about packet capture sessions. + Value *[]PacketCaptureResult `json:"value,omitempty"` +} + +// PacketCaptureParameters parameters that define the create packet capture operation. +type PacketCaptureParameters struct { + // Target - The ID of the targeted resource, only VM is currently supported. + Target *string `json:"target,omitempty"` + // BytesToCapturePerPacket - Number of bytes captured per packet, the remaining bytes are truncated. + BytesToCapturePerPacket *int64 `json:"bytesToCapturePerPacket,omitempty"` + // TotalBytesPerSession - Maximum size of the capture output. + TotalBytesPerSession *int64 `json:"totalBytesPerSession,omitempty"` + // TimeLimitInSeconds - Maximum duration of the capture session in seconds. + TimeLimitInSeconds *int32 `json:"timeLimitInSeconds,omitempty"` + // StorageLocation - The storage location for a packet capture session. + StorageLocation *PacketCaptureStorageLocation `json:"storageLocation,omitempty"` + // Filters - A list of packet capture filters. + Filters *[]PacketCaptureFilter `json:"filters,omitempty"` +} + +// PacketCaptureQueryStatusResult status of packet capture session. +type PacketCaptureQueryStatusResult struct { + autorest.Response `json:"-"` + // Name - The name of the packet capture resource. + Name *string `json:"name,omitempty"` + // ID - The ID of the packet capture resource. + ID *string `json:"id,omitempty"` + // CaptureStartTime - The start time of the packet capture session. + CaptureStartTime *date.Time `json:"captureStartTime,omitempty"` + // PacketCaptureStatus - The status of the packet capture session. Possible values include: 'PcStatusNotStarted', 'PcStatusRunning', 'PcStatusStopped', 'PcStatusError', 'PcStatusUnknown' + PacketCaptureStatus PcStatus `json:"packetCaptureStatus,omitempty"` + // StopReason - The reason the current packet capture session was stopped. + StopReason *string `json:"stopReason,omitempty"` + // PacketCaptureError - List of errors of packet capture session. + PacketCaptureError *[]PcError `json:"packetCaptureError,omitempty"` +} + +// PacketCaptureResult information about packet capture session. +type PacketCaptureResult struct { + autorest.Response `json:"-"` + // Name - READ-ONLY; Name of the packet capture session. + Name *string `json:"name,omitempty"` + // ID - READ-ONLY; ID of the packet capture operation. + ID *string `json:"id,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // PacketCaptureResultProperties - Properties of the packet capture result. + *PacketCaptureResultProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for PacketCaptureResult. +func (pcr PacketCaptureResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pcr.PacketCaptureResultProperties != nil { + objectMap["properties"] = pcr.PacketCaptureResultProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PacketCaptureResult struct. +func (pcr *PacketCaptureResult) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + pcr.Name = &name + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + pcr.ID = &ID + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + pcr.Etag = &etag + } + case "properties": + if v != nil { + var packetCaptureResultProperties PacketCaptureResultProperties + err = json.Unmarshal(*v, &packetCaptureResultProperties) + if err != nil { + return err + } + pcr.PacketCaptureResultProperties = &packetCaptureResultProperties + } + } + } + + return nil +} + +// PacketCaptureResultProperties the properties of a packet capture session. +type PacketCaptureResultProperties struct { + // ProvisioningState - READ-ONLY; The provisioning state of the packet capture session. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // Target - The ID of the targeted resource, only VM is currently supported. + Target *string `json:"target,omitempty"` + // BytesToCapturePerPacket - Number of bytes captured per packet, the remaining bytes are truncated. + BytesToCapturePerPacket *int64 `json:"bytesToCapturePerPacket,omitempty"` + // TotalBytesPerSession - Maximum size of the capture output. + TotalBytesPerSession *int64 `json:"totalBytesPerSession,omitempty"` + // TimeLimitInSeconds - Maximum duration of the capture session in seconds. + TimeLimitInSeconds *int32 `json:"timeLimitInSeconds,omitempty"` + // StorageLocation - The storage location for a packet capture session. + StorageLocation *PacketCaptureStorageLocation `json:"storageLocation,omitempty"` + // Filters - A list of packet capture filters. + Filters *[]PacketCaptureFilter `json:"filters,omitempty"` +} + +// MarshalJSON is the custom marshaler for PacketCaptureResultProperties. +func (pcrp PacketCaptureResultProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pcrp.Target != nil { + objectMap["target"] = pcrp.Target + } + if pcrp.BytesToCapturePerPacket != nil { + objectMap["bytesToCapturePerPacket"] = pcrp.BytesToCapturePerPacket + } + if pcrp.TotalBytesPerSession != nil { + objectMap["totalBytesPerSession"] = pcrp.TotalBytesPerSession + } + if pcrp.TimeLimitInSeconds != nil { + objectMap["timeLimitInSeconds"] = pcrp.TimeLimitInSeconds + } + if pcrp.StorageLocation != nil { + objectMap["storageLocation"] = pcrp.StorageLocation + } + if pcrp.Filters != nil { + objectMap["filters"] = pcrp.Filters + } + return json.Marshal(objectMap) +} + +// PacketCapturesCreateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type PacketCapturesCreateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *PacketCapturesCreateFuture) Result(client PacketCapturesClient) (pcr PacketCaptureResult, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PacketCapturesCreateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.PacketCapturesCreateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if pcr.Response.Response, err = future.GetResult(sender); err == nil && pcr.Response.Response.StatusCode != http.StatusNoContent { + pcr, err = client.CreateResponder(pcr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PacketCapturesCreateFuture", "Result", pcr.Response.Response, "Failure responding to request") + } + } + return +} + +// PacketCapturesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type PacketCapturesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *PacketCapturesDeleteFuture) Result(client PacketCapturesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PacketCapturesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.PacketCapturesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// PacketCapturesGetStatusFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type PacketCapturesGetStatusFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *PacketCapturesGetStatusFuture) Result(client PacketCapturesClient) (pcqsr PacketCaptureQueryStatusResult, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PacketCapturesGetStatusFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.PacketCapturesGetStatusFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if pcqsr.Response.Response, err = future.GetResult(sender); err == nil && pcqsr.Response.Response.StatusCode != http.StatusNoContent { + pcqsr, err = client.GetStatusResponder(pcqsr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PacketCapturesGetStatusFuture", "Result", pcqsr.Response.Response, "Failure responding to request") + } + } + return +} + +// PacketCapturesStopFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type PacketCapturesStopFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *PacketCapturesStopFuture) Result(client PacketCapturesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PacketCapturesStopFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.PacketCapturesStopFuture") + return + } + ar.Response = future.Response() + return +} + +// PacketCaptureStorageLocation the storage location for a packet capture session. +type PacketCaptureStorageLocation struct { + // StorageID - The ID of the storage account to save the packet capture session. Required if no local file path is provided. + StorageID *string `json:"storageId,omitempty"` + // StoragePath - The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location to save the packet capture. + StoragePath *string `json:"storagePath,omitempty"` + // FilePath - A valid local path on the targeting VM. Must include the name of the capture file (*.cap). For linux virtual machine it must start with /var/captures. Required if no storage ID is provided, otherwise optional. + FilePath *string `json:"filePath,omitempty"` +} + +// PatchRouteFilter route Filter Resource. +type PatchRouteFilter struct { + // RouteFilterPropertiesFormat - Properties of the route filter. + *RouteFilterPropertiesFormat `json:"properties,omitempty"` + // Name - READ-ONLY; The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for PatchRouteFilter. +func (prf PatchRouteFilter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if prf.RouteFilterPropertiesFormat != nil { + objectMap["properties"] = prf.RouteFilterPropertiesFormat + } + if prf.Tags != nil { + objectMap["tags"] = prf.Tags + } + if prf.ID != nil { + objectMap["id"] = prf.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PatchRouteFilter struct. +func (prf *PatchRouteFilter) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var routeFilterPropertiesFormat RouteFilterPropertiesFormat + err = json.Unmarshal(*v, &routeFilterPropertiesFormat) + if err != nil { + return err + } + prf.RouteFilterPropertiesFormat = &routeFilterPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + prf.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + prf.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + prf.Type = &typeVar + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + prf.Tags = tags + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + prf.ID = &ID + } + } + } + + return nil +} + +// PatchRouteFilterRule route Filter Rule Resource. +type PatchRouteFilterRule struct { + // RouteFilterRulePropertiesFormat - Properties of the route filter rule. + *RouteFilterRulePropertiesFormat `json:"properties,omitempty"` + // Name - READ-ONLY; The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for PatchRouteFilterRule. +func (prfr PatchRouteFilterRule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if prfr.RouteFilterRulePropertiesFormat != nil { + objectMap["properties"] = prfr.RouteFilterRulePropertiesFormat + } + if prfr.ID != nil { + objectMap["id"] = prfr.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PatchRouteFilterRule struct. +func (prfr *PatchRouteFilterRule) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var routeFilterRulePropertiesFormat RouteFilterRulePropertiesFormat + err = json.Unmarshal(*v, &routeFilterRulePropertiesFormat) + if err != nil { + return err + } + prfr.RouteFilterRulePropertiesFormat = &routeFilterRulePropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + prfr.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + prfr.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + prfr.ID = &ID + } + } + } + + return nil +} + +// PeerExpressRouteCircuitConnection peer Express Route Circuit Connection in an ExpressRouteCircuitPeering +// resource. +type PeerExpressRouteCircuitConnection struct { + autorest.Response `json:"-"` + // PeerExpressRouteCircuitConnectionPropertiesFormat - Properties of the peer express route circuit connection. + *PeerExpressRouteCircuitConnectionPropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for PeerExpressRouteCircuitConnection. +func (percc PeerExpressRouteCircuitConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if percc.PeerExpressRouteCircuitConnectionPropertiesFormat != nil { + objectMap["properties"] = percc.PeerExpressRouteCircuitConnectionPropertiesFormat + } + if percc.Name != nil { + objectMap["name"] = percc.Name + } + if percc.ID != nil { + objectMap["id"] = percc.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PeerExpressRouteCircuitConnection struct. +func (percc *PeerExpressRouteCircuitConnection) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var peerExpressRouteCircuitConnectionPropertiesFormat PeerExpressRouteCircuitConnectionPropertiesFormat + err = json.Unmarshal(*v, &peerExpressRouteCircuitConnectionPropertiesFormat) + if err != nil { + return err + } + percc.PeerExpressRouteCircuitConnectionPropertiesFormat = &peerExpressRouteCircuitConnectionPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + percc.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + percc.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + percc.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + percc.ID = &ID + } + } + } + + return nil +} + +// PeerExpressRouteCircuitConnectionListResult response for ListPeeredConnections API service call +// retrieves all global reach peer circuit connections that belongs to a Private Peering for an +// ExpressRouteCircuit. +type PeerExpressRouteCircuitConnectionListResult struct { + autorest.Response `json:"-"` + // Value - The global reach peer circuit connection associated with Private Peering in an ExpressRoute Circuit. + Value *[]PeerExpressRouteCircuitConnection `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// PeerExpressRouteCircuitConnectionListResultIterator provides access to a complete listing of +// PeerExpressRouteCircuitConnection values. +type PeerExpressRouteCircuitConnectionListResultIterator struct { + i int + page PeerExpressRouteCircuitConnectionListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *PeerExpressRouteCircuitConnectionListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PeerExpressRouteCircuitConnectionListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *PeerExpressRouteCircuitConnectionListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter PeerExpressRouteCircuitConnectionListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter PeerExpressRouteCircuitConnectionListResultIterator) Response() PeerExpressRouteCircuitConnectionListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter PeerExpressRouteCircuitConnectionListResultIterator) Value() PeerExpressRouteCircuitConnection { + if !iter.page.NotDone() { + return PeerExpressRouteCircuitConnection{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the PeerExpressRouteCircuitConnectionListResultIterator type. +func NewPeerExpressRouteCircuitConnectionListResultIterator(page PeerExpressRouteCircuitConnectionListResultPage) PeerExpressRouteCircuitConnectionListResultIterator { + return PeerExpressRouteCircuitConnectionListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (percclr PeerExpressRouteCircuitConnectionListResult) IsEmpty() bool { + return percclr.Value == nil || len(*percclr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (percclr PeerExpressRouteCircuitConnectionListResult) hasNextLink() bool { + return percclr.NextLink != nil && len(*percclr.NextLink) != 0 +} + +// peerExpressRouteCircuitConnectionListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (percclr PeerExpressRouteCircuitConnectionListResult) peerExpressRouteCircuitConnectionListResultPreparer(ctx context.Context) (*http.Request, error) { + if !percclr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(percclr.NextLink))) +} + +// PeerExpressRouteCircuitConnectionListResultPage contains a page of PeerExpressRouteCircuitConnection +// values. +type PeerExpressRouteCircuitConnectionListResultPage struct { + fn func(context.Context, PeerExpressRouteCircuitConnectionListResult) (PeerExpressRouteCircuitConnectionListResult, error) + percclr PeerExpressRouteCircuitConnectionListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *PeerExpressRouteCircuitConnectionListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PeerExpressRouteCircuitConnectionListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.percclr) + if err != nil { + return err + } + page.percclr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *PeerExpressRouteCircuitConnectionListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page PeerExpressRouteCircuitConnectionListResultPage) NotDone() bool { + return !page.percclr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page PeerExpressRouteCircuitConnectionListResultPage) Response() PeerExpressRouteCircuitConnectionListResult { + return page.percclr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page PeerExpressRouteCircuitConnectionListResultPage) Values() []PeerExpressRouteCircuitConnection { + if page.percclr.IsEmpty() { + return nil + } + return *page.percclr.Value +} + +// Creates a new instance of the PeerExpressRouteCircuitConnectionListResultPage type. +func NewPeerExpressRouteCircuitConnectionListResultPage(cur PeerExpressRouteCircuitConnectionListResult, getNextPage func(context.Context, PeerExpressRouteCircuitConnectionListResult) (PeerExpressRouteCircuitConnectionListResult, error)) PeerExpressRouteCircuitConnectionListResultPage { + return PeerExpressRouteCircuitConnectionListResultPage{ + fn: getNextPage, + percclr: cur, + } +} + +// PeerExpressRouteCircuitConnectionPropertiesFormat properties of the peer express route circuit +// connection. +type PeerExpressRouteCircuitConnectionPropertiesFormat struct { + // ExpressRouteCircuitPeering - Reference to Express Route Circuit Private Peering Resource of the circuit. + ExpressRouteCircuitPeering *SubResource `json:"expressRouteCircuitPeering,omitempty"` + // PeerExpressRouteCircuitPeering - Reference to Express Route Circuit Private Peering Resource of the peered circuit. + PeerExpressRouteCircuitPeering *SubResource `json:"peerExpressRouteCircuitPeering,omitempty"` + // AddressPrefix - /29 IP address space to carve out Customer addresses for tunnels. + AddressPrefix *string `json:"addressPrefix,omitempty"` + // CircuitConnectionStatus - Express Route Circuit connection state. Possible values include: 'Connected', 'Connecting', 'Disconnected' + CircuitConnectionStatus CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` + // ConnectionName - The name of the express route circuit connection resource. + ConnectionName *string `json:"connectionName,omitempty"` + // AuthResourceGUID - The resource guid of the authorization used for the express route circuit connection. + AuthResourceGUID *string `json:"authResourceGuid,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the peer express route circuit connection resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for PeerExpressRouteCircuitConnectionPropertiesFormat. +func (perccpf PeerExpressRouteCircuitConnectionPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if perccpf.ExpressRouteCircuitPeering != nil { + objectMap["expressRouteCircuitPeering"] = perccpf.ExpressRouteCircuitPeering + } + if perccpf.PeerExpressRouteCircuitPeering != nil { + objectMap["peerExpressRouteCircuitPeering"] = perccpf.PeerExpressRouteCircuitPeering + } + if perccpf.AddressPrefix != nil { + objectMap["addressPrefix"] = perccpf.AddressPrefix + } + if perccpf.CircuitConnectionStatus != "" { + objectMap["circuitConnectionStatus"] = perccpf.CircuitConnectionStatus + } + if perccpf.ConnectionName != nil { + objectMap["connectionName"] = perccpf.ConnectionName + } + if perccpf.AuthResourceGUID != nil { + objectMap["authResourceGuid"] = perccpf.AuthResourceGUID + } + return json.Marshal(objectMap) +} + +// PeerRoute peer routing details. +type PeerRoute struct { + // LocalAddress - READ-ONLY; The peer's local address. + LocalAddress *string `json:"localAddress,omitempty"` + // NetworkProperty - READ-ONLY; The route's network prefix. + NetworkProperty *string `json:"network,omitempty"` + // NextHop - READ-ONLY; The route's next hop. + NextHop *string `json:"nextHop,omitempty"` + // SourcePeer - READ-ONLY; The peer this route was learned from. + SourcePeer *string `json:"sourcePeer,omitempty"` + // Origin - READ-ONLY; The source this route was learned from. + Origin *string `json:"origin,omitempty"` + // AsPath - READ-ONLY; The route's AS path sequence. + AsPath *string `json:"asPath,omitempty"` + // Weight - READ-ONLY; The route's weight. + Weight *int32 `json:"weight,omitempty"` +} + +// PeerRouteList list of virtual router peer routes. +type PeerRouteList struct { + autorest.Response `json:"-"` + // Value - List of peer routes. + Value *[]PeerRoute `json:"value,omitempty"` +} + +// PolicySettings defines contents of a web application firewall global configuration. +type PolicySettings struct { + // State - The state of the policy. Possible values include: 'WebApplicationFirewallEnabledStateDisabled', 'WebApplicationFirewallEnabledStateEnabled' + State WebApplicationFirewallEnabledState `json:"state,omitempty"` + // Mode - The mode of the policy. Possible values include: 'WebApplicationFirewallModePrevention', 'WebApplicationFirewallModeDetection' + Mode WebApplicationFirewallMode `json:"mode,omitempty"` + // RequestBodyCheck - Whether to allow WAF to check request Body. + RequestBodyCheck *bool `json:"requestBodyCheck,omitempty"` + // MaxRequestBodySizeInKb - Maximum request body size in Kb for WAF. + MaxRequestBodySizeInKb *int32 `json:"maxRequestBodySizeInKb,omitempty"` + // FileUploadLimitInMb - Maximum file upload size in Mb for WAF. + FileUploadLimitInMb *int32 `json:"fileUploadLimitInMb,omitempty"` +} + +// PrepareNetworkPoliciesRequest details of PrepareNetworkPolicies for Subnet. +type PrepareNetworkPoliciesRequest struct { + // ServiceName - The name of the service for which subnet is being prepared for. + ServiceName *string `json:"serviceName,omitempty"` + // NetworkIntentPolicyConfigurations - A list of NetworkIntentPolicyConfiguration. + NetworkIntentPolicyConfigurations *[]IntentPolicyConfiguration `json:"networkIntentPolicyConfigurations,omitempty"` +} + +// PrivateDNSZoneConfig privateDnsZoneConfig resource. +type PrivateDNSZoneConfig struct { + // Name - Name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // PrivateDNSZonePropertiesFormat - Properties of the private dns zone configuration. + *PrivateDNSZonePropertiesFormat `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateDNSZoneConfig. +func (pdzc PrivateDNSZoneConfig) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pdzc.Name != nil { + objectMap["name"] = pdzc.Name + } + if pdzc.PrivateDNSZonePropertiesFormat != nil { + objectMap["properties"] = pdzc.PrivateDNSZonePropertiesFormat + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PrivateDNSZoneConfig struct. +func (pdzc *PrivateDNSZoneConfig) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + pdzc.Name = &name + } + case "properties": + if v != nil { + var privateDNSZonePropertiesFormat PrivateDNSZonePropertiesFormat + err = json.Unmarshal(*v, &privateDNSZonePropertiesFormat) + if err != nil { + return err + } + pdzc.PrivateDNSZonePropertiesFormat = &privateDNSZonePropertiesFormat + } + } + } + + return nil +} + +// PrivateDNSZoneGroup private dns zone group resource. +type PrivateDNSZoneGroup struct { + autorest.Response `json:"-"` + // Name - Name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // PrivateDNSZoneGroupPropertiesFormat - Properties of the private dns zone group. + *PrivateDNSZoneGroupPropertiesFormat `json:"properties,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateDNSZoneGroup. +func (pdzg PrivateDNSZoneGroup) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pdzg.Name != nil { + objectMap["name"] = pdzg.Name + } + if pdzg.PrivateDNSZoneGroupPropertiesFormat != nil { + objectMap["properties"] = pdzg.PrivateDNSZoneGroupPropertiesFormat + } + if pdzg.ID != nil { + objectMap["id"] = pdzg.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PrivateDNSZoneGroup struct. +func (pdzg *PrivateDNSZoneGroup) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + pdzg.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + pdzg.Etag = &etag + } + case "properties": + if v != nil { + var privateDNSZoneGroupPropertiesFormat PrivateDNSZoneGroupPropertiesFormat + err = json.Unmarshal(*v, &privateDNSZoneGroupPropertiesFormat) + if err != nil { + return err + } + pdzg.PrivateDNSZoneGroupPropertiesFormat = &privateDNSZoneGroupPropertiesFormat + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + pdzg.ID = &ID + } + } + } + + return nil +} + +// PrivateDNSZoneGroupListResult response for the ListPrivateDnsZoneGroups API service call. +type PrivateDNSZoneGroupListResult struct { + autorest.Response `json:"-"` + // Value - A list of private dns zone group resources in a private endpoint. + Value *[]PrivateDNSZoneGroup `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateDNSZoneGroupListResult. +func (pdzglr PrivateDNSZoneGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pdzglr.Value != nil { + objectMap["value"] = pdzglr.Value + } + return json.Marshal(objectMap) +} + +// PrivateDNSZoneGroupListResultIterator provides access to a complete listing of PrivateDNSZoneGroup +// values. +type PrivateDNSZoneGroupListResultIterator struct { + i int + page PrivateDNSZoneGroupListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *PrivateDNSZoneGroupListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateDNSZoneGroupListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *PrivateDNSZoneGroupListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter PrivateDNSZoneGroupListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter PrivateDNSZoneGroupListResultIterator) Response() PrivateDNSZoneGroupListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter PrivateDNSZoneGroupListResultIterator) Value() PrivateDNSZoneGroup { + if !iter.page.NotDone() { + return PrivateDNSZoneGroup{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the PrivateDNSZoneGroupListResultIterator type. +func NewPrivateDNSZoneGroupListResultIterator(page PrivateDNSZoneGroupListResultPage) PrivateDNSZoneGroupListResultIterator { + return PrivateDNSZoneGroupListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (pdzglr PrivateDNSZoneGroupListResult) IsEmpty() bool { + return pdzglr.Value == nil || len(*pdzglr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (pdzglr PrivateDNSZoneGroupListResult) hasNextLink() bool { + return pdzglr.NextLink != nil && len(*pdzglr.NextLink) != 0 +} + +// privateDNSZoneGroupListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (pdzglr PrivateDNSZoneGroupListResult) privateDNSZoneGroupListResultPreparer(ctx context.Context) (*http.Request, error) { + if !pdzglr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(pdzglr.NextLink))) +} + +// PrivateDNSZoneGroupListResultPage contains a page of PrivateDNSZoneGroup values. +type PrivateDNSZoneGroupListResultPage struct { + fn func(context.Context, PrivateDNSZoneGroupListResult) (PrivateDNSZoneGroupListResult, error) + pdzglr PrivateDNSZoneGroupListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *PrivateDNSZoneGroupListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateDNSZoneGroupListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.pdzglr) + if err != nil { + return err + } + page.pdzglr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *PrivateDNSZoneGroupListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page PrivateDNSZoneGroupListResultPage) NotDone() bool { + return !page.pdzglr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page PrivateDNSZoneGroupListResultPage) Response() PrivateDNSZoneGroupListResult { + return page.pdzglr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page PrivateDNSZoneGroupListResultPage) Values() []PrivateDNSZoneGroup { + if page.pdzglr.IsEmpty() { + return nil + } + return *page.pdzglr.Value +} + +// Creates a new instance of the PrivateDNSZoneGroupListResultPage type. +func NewPrivateDNSZoneGroupListResultPage(cur PrivateDNSZoneGroupListResult, getNextPage func(context.Context, PrivateDNSZoneGroupListResult) (PrivateDNSZoneGroupListResult, error)) PrivateDNSZoneGroupListResultPage { + return PrivateDNSZoneGroupListResultPage{ + fn: getNextPage, + pdzglr: cur, + } +} + +// PrivateDNSZoneGroupPropertiesFormat properties of the private dns zone group. +type PrivateDNSZoneGroupPropertiesFormat struct { + // ProvisioningState - READ-ONLY; The provisioning state of the private dns zone group resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // PrivateDNSZoneConfigs - A collection of private dns zone configurations of the private dns zone group. + PrivateDNSZoneConfigs *[]PrivateDNSZoneConfig `json:"privateDnsZoneConfigs,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateDNSZoneGroupPropertiesFormat. +func (pdzgpf PrivateDNSZoneGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pdzgpf.PrivateDNSZoneConfigs != nil { + objectMap["privateDnsZoneConfigs"] = pdzgpf.PrivateDNSZoneConfigs + } + return json.Marshal(objectMap) +} + +// PrivateDNSZoneGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type PrivateDNSZoneGroupsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *PrivateDNSZoneGroupsCreateOrUpdateFuture) Result(client PrivateDNSZoneGroupsClient) (pdzg PrivateDNSZoneGroup, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.PrivateDNSZoneGroupsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if pdzg.Response.Response, err = future.GetResult(sender); err == nil && pdzg.Response.Response.StatusCode != http.StatusNoContent { + pdzg, err = client.CreateOrUpdateResponder(pdzg.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsCreateOrUpdateFuture", "Result", pdzg.Response.Response, "Failure responding to request") + } + } + return +} + +// PrivateDNSZoneGroupsDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type PrivateDNSZoneGroupsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *PrivateDNSZoneGroupsDeleteFuture) Result(client PrivateDNSZoneGroupsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.PrivateDNSZoneGroupsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// PrivateDNSZonePropertiesFormat properties of the private dns zone configuration resource. +type PrivateDNSZonePropertiesFormat struct { + // PrivateDNSZoneID - The resource id of the private dns zone. + PrivateDNSZoneID *string `json:"privateDnsZoneId,omitempty"` + // RecordSets - READ-ONLY; A collection of information regarding a recordSet, holding information to identify private resources. + RecordSets *[]RecordSet `json:"recordSets,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateDNSZonePropertiesFormat. +func (pdzpf PrivateDNSZonePropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pdzpf.PrivateDNSZoneID != nil { + objectMap["privateDnsZoneId"] = pdzpf.PrivateDNSZoneID + } + return json.Marshal(objectMap) +} + +// PrivateEndpoint private endpoint resource. +type PrivateEndpoint struct { + autorest.Response `json:"-"` + // PrivateEndpointProperties - Properties of the private endpoint. + *PrivateEndpointProperties `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if peVar.PrivateEndpointProperties != nil { + objectMap["properties"] = peVar.PrivateEndpointProperties + } + if peVar.ID != nil { + objectMap["id"] = peVar.ID + } + if peVar.Location != nil { + objectMap["location"] = peVar.Location + } + if peVar.Tags != nil { + objectMap["tags"] = peVar.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PrivateEndpoint struct. +func (peVar *PrivateEndpoint) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var privateEndpointProperties PrivateEndpointProperties + err = json.Unmarshal(*v, &privateEndpointProperties) + if err != nil { + return err + } + peVar.PrivateEndpointProperties = &privateEndpointProperties + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + peVar.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + peVar.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + peVar.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + peVar.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + peVar.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + peVar.Tags = tags + } + } + } + + return nil +} + +// PrivateEndpointConnection privateEndpointConnection resource. +type PrivateEndpointConnection struct { + autorest.Response `json:"-"` + // PrivateEndpointConnectionProperties - Properties of the private end point connection. + *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The resource type. + Type *string `json:"type,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateEndpointConnection. +func (pec PrivateEndpointConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pec.PrivateEndpointConnectionProperties != nil { + objectMap["properties"] = pec.PrivateEndpointConnectionProperties + } + if pec.Name != nil { + objectMap["name"] = pec.Name + } + if pec.ID != nil { + objectMap["id"] = pec.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PrivateEndpointConnection struct. +func (pec *PrivateEndpointConnection) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var privateEndpointConnectionProperties PrivateEndpointConnectionProperties + err = json.Unmarshal(*v, &privateEndpointConnectionProperties) + if err != nil { + return err + } + pec.PrivateEndpointConnectionProperties = &privateEndpointConnectionProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + pec.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + pec.Type = &typeVar + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + pec.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + pec.ID = &ID + } + } + } + + return nil +} + +// PrivateEndpointConnectionListResult response for the ListPrivateEndpointConnection API service call. +type PrivateEndpointConnectionListResult struct { + autorest.Response `json:"-"` + // Value - A list of PrivateEndpointConnection resources for a specific private link service. + Value *[]PrivateEndpointConnection `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateEndpointConnectionListResult. +func (peclr PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if peclr.Value != nil { + objectMap["value"] = peclr.Value + } + return json.Marshal(objectMap) +} + +// PrivateEndpointConnectionListResultIterator provides access to a complete listing of +// PrivateEndpointConnection values. +type PrivateEndpointConnectionListResultIterator struct { + i int + page PrivateEndpointConnectionListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *PrivateEndpointConnectionListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *PrivateEndpointConnectionListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter PrivateEndpointConnectionListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter PrivateEndpointConnectionListResultIterator) Response() PrivateEndpointConnectionListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter PrivateEndpointConnectionListResultIterator) Value() PrivateEndpointConnection { + if !iter.page.NotDone() { + return PrivateEndpointConnection{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the PrivateEndpointConnectionListResultIterator type. +func NewPrivateEndpointConnectionListResultIterator(page PrivateEndpointConnectionListResultPage) PrivateEndpointConnectionListResultIterator { + return PrivateEndpointConnectionListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (peclr PrivateEndpointConnectionListResult) IsEmpty() bool { + return peclr.Value == nil || len(*peclr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (peclr PrivateEndpointConnectionListResult) hasNextLink() bool { + return peclr.NextLink != nil && len(*peclr.NextLink) != 0 +} + +// privateEndpointConnectionListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (peclr PrivateEndpointConnectionListResult) privateEndpointConnectionListResultPreparer(ctx context.Context) (*http.Request, error) { + if !peclr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(peclr.NextLink))) +} + +// PrivateEndpointConnectionListResultPage contains a page of PrivateEndpointConnection values. +type PrivateEndpointConnectionListResultPage struct { + fn func(context.Context, PrivateEndpointConnectionListResult) (PrivateEndpointConnectionListResult, error) + peclr PrivateEndpointConnectionListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *PrivateEndpointConnectionListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.peclr) + if err != nil { + return err + } + page.peclr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *PrivateEndpointConnectionListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page PrivateEndpointConnectionListResultPage) NotDone() bool { + return !page.peclr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page PrivateEndpointConnectionListResultPage) Response() PrivateEndpointConnectionListResult { + return page.peclr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page PrivateEndpointConnectionListResultPage) Values() []PrivateEndpointConnection { + if page.peclr.IsEmpty() { + return nil + } + return *page.peclr.Value +} + +// Creates a new instance of the PrivateEndpointConnectionListResultPage type. +func NewPrivateEndpointConnectionListResultPage(cur PrivateEndpointConnectionListResult, getNextPage func(context.Context, PrivateEndpointConnectionListResult) (PrivateEndpointConnectionListResult, error)) PrivateEndpointConnectionListResultPage { + return PrivateEndpointConnectionListResultPage{ + fn: getNextPage, + peclr: cur, + } +} + +// PrivateEndpointConnectionProperties properties of the PrivateEndpointConnectProperties. +type PrivateEndpointConnectionProperties struct { + // PrivateEndpoint - READ-ONLY; The resource of private end point. + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + // PrivateLinkServiceConnectionState - A collection of information about the state of the connection between service consumer and provider. + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the private endpoint connection resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // LinkIdentifier - READ-ONLY; The consumer link id. + LinkIdentifier *string `json:"linkIdentifier,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateEndpointConnectionProperties. +func (pecp PrivateEndpointConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pecp.PrivateLinkServiceConnectionState != nil { + objectMap["privateLinkServiceConnectionState"] = pecp.PrivateLinkServiceConnectionState + } + return json.Marshal(objectMap) +} + +// PrivateEndpointListResult response for the ListPrivateEndpoints API service call. +type PrivateEndpointListResult struct { + autorest.Response `json:"-"` + // Value - A list of private endpoint resources in a resource group. + Value *[]PrivateEndpoint `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateEndpointListResult. +func (pelr PrivateEndpointListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pelr.Value != nil { + objectMap["value"] = pelr.Value + } + return json.Marshal(objectMap) +} + +// PrivateEndpointListResultIterator provides access to a complete listing of PrivateEndpoint values. +type PrivateEndpointListResultIterator struct { + i int + page PrivateEndpointListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *PrivateEndpointListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *PrivateEndpointListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter PrivateEndpointListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter PrivateEndpointListResultIterator) Response() PrivateEndpointListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter PrivateEndpointListResultIterator) Value() PrivateEndpoint { + if !iter.page.NotDone() { + return PrivateEndpoint{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the PrivateEndpointListResultIterator type. +func NewPrivateEndpointListResultIterator(page PrivateEndpointListResultPage) PrivateEndpointListResultIterator { + return PrivateEndpointListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (pelr PrivateEndpointListResult) IsEmpty() bool { + return pelr.Value == nil || len(*pelr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (pelr PrivateEndpointListResult) hasNextLink() bool { + return pelr.NextLink != nil && len(*pelr.NextLink) != 0 +} + +// privateEndpointListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (pelr PrivateEndpointListResult) privateEndpointListResultPreparer(ctx context.Context) (*http.Request, error) { + if !pelr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(pelr.NextLink))) +} + +// PrivateEndpointListResultPage contains a page of PrivateEndpoint values. +type PrivateEndpointListResultPage struct { + fn func(context.Context, PrivateEndpointListResult) (PrivateEndpointListResult, error) + pelr PrivateEndpointListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *PrivateEndpointListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.pelr) + if err != nil { + return err + } + page.pelr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *PrivateEndpointListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page PrivateEndpointListResultPage) NotDone() bool { + return !page.pelr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page PrivateEndpointListResultPage) Response() PrivateEndpointListResult { + return page.pelr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page PrivateEndpointListResultPage) Values() []PrivateEndpoint { + if page.pelr.IsEmpty() { + return nil + } + return *page.pelr.Value +} + +// Creates a new instance of the PrivateEndpointListResultPage type. +func NewPrivateEndpointListResultPage(cur PrivateEndpointListResult, getNextPage func(context.Context, PrivateEndpointListResult) (PrivateEndpointListResult, error)) PrivateEndpointListResultPage { + return PrivateEndpointListResultPage{ + fn: getNextPage, + pelr: cur, + } +} + +// PrivateEndpointProperties properties of the private endpoint. +type PrivateEndpointProperties struct { + // Subnet - The ID of the subnet from which the private IP will be allocated. + Subnet *Subnet `json:"subnet,omitempty"` + // NetworkInterfaces - READ-ONLY; An array of references to the network interfaces created for this private endpoint. + NetworkInterfaces *[]Interface `json:"networkInterfaces,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the private endpoint resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // PrivateLinkServiceConnections - A grouping of information about the connection to the remote resource. + PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` + // ManualPrivateLinkServiceConnections - A grouping of information about the connection to the remote resource. Used when the network admin does not have access to approve connections to the remote resource. + ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` + // CustomDNSConfigs - An array of custom dns configurations. + CustomDNSConfigs *[]CustomDNSConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateEndpointProperties. +func (pep PrivateEndpointProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pep.Subnet != nil { + objectMap["subnet"] = pep.Subnet + } + if pep.PrivateLinkServiceConnections != nil { + objectMap["privateLinkServiceConnections"] = pep.PrivateLinkServiceConnections + } + if pep.ManualPrivateLinkServiceConnections != nil { + objectMap["manualPrivateLinkServiceConnections"] = pep.ManualPrivateLinkServiceConnections + } + if pep.CustomDNSConfigs != nil { + objectMap["customDnsConfigs"] = pep.CustomDNSConfigs + } + return json.Marshal(objectMap) +} + +// PrivateEndpointsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type PrivateEndpointsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *PrivateEndpointsCreateOrUpdateFuture) Result(client PrivateEndpointsClient) (peVar PrivateEndpoint, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateEndpointsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.PrivateEndpointsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if peVar.Response.Response, err = future.GetResult(sender); err == nil && peVar.Response.Response.StatusCode != http.StatusNoContent { + peVar, err = client.CreateOrUpdateResponder(peVar.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateEndpointsCreateOrUpdateFuture", "Result", peVar.Response.Response, "Failure responding to request") + } + } + return +} + +// PrivateEndpointsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type PrivateEndpointsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *PrivateEndpointsDeleteFuture) Result(client PrivateEndpointsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateEndpointsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.PrivateEndpointsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// PrivateLinkService private link service resource. +type PrivateLinkService struct { + autorest.Response `json:"-"` + // PrivateLinkServiceProperties - Properties of the private link service. + *PrivateLinkServiceProperties `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for PrivateLinkService. +func (pls PrivateLinkService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pls.PrivateLinkServiceProperties != nil { + objectMap["properties"] = pls.PrivateLinkServiceProperties + } + if pls.ID != nil { + objectMap["id"] = pls.ID + } + if pls.Location != nil { + objectMap["location"] = pls.Location + } + if pls.Tags != nil { + objectMap["tags"] = pls.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PrivateLinkService struct. +func (pls *PrivateLinkService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var privateLinkServiceProperties PrivateLinkServiceProperties + err = json.Unmarshal(*v, &privateLinkServiceProperties) + if err != nil { + return err + } + pls.PrivateLinkServiceProperties = &privateLinkServiceProperties + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + pls.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + pls.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + pls.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + pls.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + pls.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + pls.Tags = tags + } + } + } + + return nil +} + +// PrivateLinkServiceConnection privateLinkServiceConnection resource. +type PrivateLinkServiceConnection struct { + // PrivateLinkServiceConnectionProperties - Properties of the private link service connection. + *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The resource type. + Type *string `json:"type,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateLinkServiceConnection. +func (plsc PrivateLinkServiceConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if plsc.PrivateLinkServiceConnectionProperties != nil { + objectMap["properties"] = plsc.PrivateLinkServiceConnectionProperties + } + if plsc.Name != nil { + objectMap["name"] = plsc.Name + } + if plsc.ID != nil { + objectMap["id"] = plsc.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PrivateLinkServiceConnection struct. +func (plsc *PrivateLinkServiceConnection) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var privateLinkServiceConnectionProperties PrivateLinkServiceConnectionProperties + err = json.Unmarshal(*v, &privateLinkServiceConnectionProperties) + if err != nil { + return err + } + plsc.PrivateLinkServiceConnectionProperties = &privateLinkServiceConnectionProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + plsc.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + plsc.Type = &typeVar + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + plsc.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + plsc.ID = &ID + } + } + } + + return nil +} + +// PrivateLinkServiceConnectionProperties properties of the PrivateLinkServiceConnection. +type PrivateLinkServiceConnectionProperties struct { + // ProvisioningState - READ-ONLY; The provisioning state of the private link service connection resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // PrivateLinkServiceID - The resource id of private link service. + PrivateLinkServiceID *string `json:"privateLinkServiceId,omitempty"` + // GroupIds - The ID(s) of the group(s) obtained from the remote resource that this private endpoint should connect to. + GroupIds *[]string `json:"groupIds,omitempty"` + // RequestMessage - A message passed to the owner of the remote resource with this connection request. Restricted to 140 chars. + RequestMessage *string `json:"requestMessage,omitempty"` + // PrivateLinkServiceConnectionState - A collection of read-only information about the state of the connection to the remote resource. + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateLinkServiceConnectionProperties. +func (plscp PrivateLinkServiceConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if plscp.PrivateLinkServiceID != nil { + objectMap["privateLinkServiceId"] = plscp.PrivateLinkServiceID + } + if plscp.GroupIds != nil { + objectMap["groupIds"] = plscp.GroupIds + } + if plscp.RequestMessage != nil { + objectMap["requestMessage"] = plscp.RequestMessage + } + if plscp.PrivateLinkServiceConnectionState != nil { + objectMap["privateLinkServiceConnectionState"] = plscp.PrivateLinkServiceConnectionState + } + return json.Marshal(objectMap) +} + +// PrivateLinkServiceConnectionState a collection of information about the state of the connection between +// service consumer and provider. +type PrivateLinkServiceConnectionState struct { + // Status - Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. + Status *string `json:"status,omitempty"` + // Description - The reason for approval/rejection of the connection. + Description *string `json:"description,omitempty"` + // ActionsRequired - A message indicating if changes on the service provider require any updates on the consumer. + ActionsRequired *string `json:"actionsRequired,omitempty"` +} + +// PrivateLinkServiceIPConfiguration the private link service ip configuration. +type PrivateLinkServiceIPConfiguration struct { + // PrivateLinkServiceIPConfigurationProperties - Properties of the private link service ip configuration. + *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` + // Name - The name of private link service ip configuration. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; The resource type. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateLinkServiceIPConfiguration. +func (plsic PrivateLinkServiceIPConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if plsic.PrivateLinkServiceIPConfigurationProperties != nil { + objectMap["properties"] = plsic.PrivateLinkServiceIPConfigurationProperties + } + if plsic.Name != nil { + objectMap["name"] = plsic.Name + } + if plsic.ID != nil { + objectMap["id"] = plsic.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PrivateLinkServiceIPConfiguration struct. +func (plsic *PrivateLinkServiceIPConfiguration) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var privateLinkServiceIPConfigurationProperties PrivateLinkServiceIPConfigurationProperties + err = json.Unmarshal(*v, &privateLinkServiceIPConfigurationProperties) + if err != nil { + return err + } + plsic.PrivateLinkServiceIPConfigurationProperties = &privateLinkServiceIPConfigurationProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + plsic.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + plsic.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + plsic.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + plsic.ID = &ID + } + } + } + + return nil +} + +// PrivateLinkServiceIPConfigurationProperties properties of private link service IP configuration. +type PrivateLinkServiceIPConfigurationProperties struct { + // PrivateIPAddress - The private IP address of the IP configuration. + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + // PrivateIPAllocationMethod - The private IP address allocation method. Possible values include: 'Static', 'Dynamic' + PrivateIPAllocationMethod IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + // Subnet - The reference to the subnet resource. + Subnet *Subnet `json:"subnet,omitempty"` + // Primary - Whether the ip configuration is primary or not. + Primary *bool `json:"primary,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the private link service IP configuration resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // PrivateIPAddressVersion - Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4. Possible values include: 'IPv4', 'IPv6' + PrivateIPAddressVersion IPVersion `json:"privateIPAddressVersion,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateLinkServiceIPConfigurationProperties. +func (plsicp PrivateLinkServiceIPConfigurationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if plsicp.PrivateIPAddress != nil { + objectMap["privateIPAddress"] = plsicp.PrivateIPAddress + } + if plsicp.PrivateIPAllocationMethod != "" { + objectMap["privateIPAllocationMethod"] = plsicp.PrivateIPAllocationMethod + } + if plsicp.Subnet != nil { + objectMap["subnet"] = plsicp.Subnet + } + if plsicp.Primary != nil { + objectMap["primary"] = plsicp.Primary + } + if plsicp.PrivateIPAddressVersion != "" { + objectMap["privateIPAddressVersion"] = plsicp.PrivateIPAddressVersion + } + return json.Marshal(objectMap) +} + +// PrivateLinkServiceListResult response for the ListPrivateLinkService API service call. +type PrivateLinkServiceListResult struct { + autorest.Response `json:"-"` + // Value - A list of PrivateLinkService resources in a resource group. + Value *[]PrivateLinkService `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateLinkServiceListResult. +func (plslr PrivateLinkServiceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if plslr.Value != nil { + objectMap["value"] = plslr.Value + } + return json.Marshal(objectMap) +} + +// PrivateLinkServiceListResultIterator provides access to a complete listing of PrivateLinkService values. +type PrivateLinkServiceListResultIterator struct { + i int + page PrivateLinkServiceListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *PrivateLinkServiceListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkServiceListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *PrivateLinkServiceListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter PrivateLinkServiceListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter PrivateLinkServiceListResultIterator) Response() PrivateLinkServiceListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter PrivateLinkServiceListResultIterator) Value() PrivateLinkService { + if !iter.page.NotDone() { + return PrivateLinkService{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the PrivateLinkServiceListResultIterator type. +func NewPrivateLinkServiceListResultIterator(page PrivateLinkServiceListResultPage) PrivateLinkServiceListResultIterator { + return PrivateLinkServiceListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (plslr PrivateLinkServiceListResult) IsEmpty() bool { + return plslr.Value == nil || len(*plslr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (plslr PrivateLinkServiceListResult) hasNextLink() bool { + return plslr.NextLink != nil && len(*plslr.NextLink) != 0 +} + +// privateLinkServiceListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (plslr PrivateLinkServiceListResult) privateLinkServiceListResultPreparer(ctx context.Context) (*http.Request, error) { + if !plslr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(plslr.NextLink))) +} + +// PrivateLinkServiceListResultPage contains a page of PrivateLinkService values. +type PrivateLinkServiceListResultPage struct { + fn func(context.Context, PrivateLinkServiceListResult) (PrivateLinkServiceListResult, error) + plslr PrivateLinkServiceListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *PrivateLinkServiceListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkServiceListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.plslr) + if err != nil { + return err + } + page.plslr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *PrivateLinkServiceListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page PrivateLinkServiceListResultPage) NotDone() bool { + return !page.plslr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page PrivateLinkServiceListResultPage) Response() PrivateLinkServiceListResult { + return page.plslr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page PrivateLinkServiceListResultPage) Values() []PrivateLinkService { + if page.plslr.IsEmpty() { + return nil + } + return *page.plslr.Value +} + +// Creates a new instance of the PrivateLinkServiceListResultPage type. +func NewPrivateLinkServiceListResultPage(cur PrivateLinkServiceListResult, getNextPage func(context.Context, PrivateLinkServiceListResult) (PrivateLinkServiceListResult, error)) PrivateLinkServiceListResultPage { + return PrivateLinkServiceListResultPage{ + fn: getNextPage, + plslr: cur, + } +} + +// PrivateLinkServiceProperties properties of the private link service. +type PrivateLinkServiceProperties struct { + // LoadBalancerFrontendIPConfigurations - An array of references to the load balancer IP configurations. + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + // IPConfigurations - An array of private link service IP configurations. + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + // NetworkInterfaces - READ-ONLY; An array of references to the network interfaces created for this private link service. + NetworkInterfaces *[]Interface `json:"networkInterfaces,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the private link service resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // PrivateEndpointConnections - READ-ONLY; An array of list about connections to the private endpoint. + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + // Visibility - The visibility list of the private link service. + Visibility *PrivateLinkServicePropertiesVisibility `json:"visibility,omitempty"` + // AutoApproval - The auto-approval list of the private link service. + AutoApproval *PrivateLinkServicePropertiesAutoApproval `json:"autoApproval,omitempty"` + // Fqdns - The list of Fqdn. + Fqdns *[]string `json:"fqdns,omitempty"` + // Alias - READ-ONLY; The alias of the private link service. + Alias *string `json:"alias,omitempty"` + // EnableProxyProtocol - Whether the private link service is enabled for proxy protocol or not. + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateLinkServiceProperties. +func (plsp PrivateLinkServiceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if plsp.LoadBalancerFrontendIPConfigurations != nil { + objectMap["loadBalancerFrontendIpConfigurations"] = plsp.LoadBalancerFrontendIPConfigurations + } + if plsp.IPConfigurations != nil { + objectMap["ipConfigurations"] = plsp.IPConfigurations + } + if plsp.Visibility != nil { + objectMap["visibility"] = plsp.Visibility + } + if plsp.AutoApproval != nil { + objectMap["autoApproval"] = plsp.AutoApproval + } + if plsp.Fqdns != nil { + objectMap["fqdns"] = plsp.Fqdns + } + if plsp.EnableProxyProtocol != nil { + objectMap["enableProxyProtocol"] = plsp.EnableProxyProtocol + } + return json.Marshal(objectMap) +} + +// PrivateLinkServicePropertiesAutoApproval the auto-approval list of the private link service. +type PrivateLinkServicePropertiesAutoApproval struct { + // Subscriptions - The list of subscriptions. + Subscriptions *[]string `json:"subscriptions,omitempty"` +} + +// PrivateLinkServicePropertiesVisibility the visibility list of the private link service. +type PrivateLinkServicePropertiesVisibility struct { + // Subscriptions - The list of subscriptions. + Subscriptions *[]string `json:"subscriptions,omitempty"` +} + +// PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupFuture an abstraction for monitoring +// and retrieving the results of a long-running operation. +type PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupFuture) Result(client PrivateLinkServicesClient) (plsv PrivateLinkServiceVisibility, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if plsv.Response.Response, err = future.GetResult(sender); err == nil && plsv.Response.Response.StatusCode != http.StatusNoContent { + plsv, err = client.CheckPrivateLinkServiceVisibilityByResourceGroupResponder(plsv.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupFuture", "Result", plsv.Response.Response, "Failure responding to request") + } + } + return +} + +// PrivateLinkServicesCheckPrivateLinkServiceVisibilityFuture an abstraction for monitoring and retrieving +// the results of a long-running operation. +type PrivateLinkServicesCheckPrivateLinkServiceVisibilityFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *PrivateLinkServicesCheckPrivateLinkServiceVisibilityFuture) Result(client PrivateLinkServicesClient) (plsv PrivateLinkServiceVisibility, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesCheckPrivateLinkServiceVisibilityFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.PrivateLinkServicesCheckPrivateLinkServiceVisibilityFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if plsv.Response.Response, err = future.GetResult(sender); err == nil && plsv.Response.Response.StatusCode != http.StatusNoContent { + plsv, err = client.CheckPrivateLinkServiceVisibilityResponder(plsv.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesCheckPrivateLinkServiceVisibilityFuture", "Result", plsv.Response.Response, "Failure responding to request") + } + } + return +} + +// PrivateLinkServicesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type PrivateLinkServicesCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *PrivateLinkServicesCreateOrUpdateFuture) Result(client PrivateLinkServicesClient) (pls PrivateLinkService, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.PrivateLinkServicesCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if pls.Response.Response, err = future.GetResult(sender); err == nil && pls.Response.Response.StatusCode != http.StatusNoContent { + pls, err = client.CreateOrUpdateResponder(pls.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesCreateOrUpdateFuture", "Result", pls.Response.Response, "Failure responding to request") + } + } + return +} + +// PrivateLinkServicesDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type PrivateLinkServicesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *PrivateLinkServicesDeleteFuture) Result(client PrivateLinkServicesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.PrivateLinkServicesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// PrivateLinkServicesDeletePrivateEndpointConnectionFuture an abstraction for monitoring and retrieving +// the results of a long-running operation. +type PrivateLinkServicesDeletePrivateEndpointConnectionFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *PrivateLinkServicesDeletePrivateEndpointConnectionFuture) Result(client PrivateLinkServicesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesDeletePrivateEndpointConnectionFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.PrivateLinkServicesDeletePrivateEndpointConnectionFuture") + return + } + ar.Response = future.Response() + return +} + +// PrivateLinkServiceVisibility response for the CheckPrivateLinkServiceVisibility API service call. +type PrivateLinkServiceVisibility struct { + autorest.Response `json:"-"` + // Visible - Private Link Service Visibility (True/False). + Visible *bool `json:"visible,omitempty"` +} + +// Probe a load balancer probe. +type Probe struct { + autorest.Response `json:"-"` + // ProbePropertiesFormat - Properties of load balancer probe. + *ProbePropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource that is unique within the set of probes used by the load balancer. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Type of the resource. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for Probe. +func (p Probe) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if p.ProbePropertiesFormat != nil { + objectMap["properties"] = p.ProbePropertiesFormat + } + if p.Name != nil { + objectMap["name"] = p.Name + } + if p.ID != nil { + objectMap["id"] = p.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Probe struct. +func (p *Probe) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var probePropertiesFormat ProbePropertiesFormat + err = json.Unmarshal(*v, &probePropertiesFormat) + if err != nil { + return err + } + p.ProbePropertiesFormat = &probePropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + p.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + p.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + p.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + p.ID = &ID + } + } + } + + return nil +} + +// ProbePropertiesFormat load balancer probe resource. +type ProbePropertiesFormat struct { + // LoadBalancingRules - READ-ONLY; The load balancer rules that use this probe. + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + // Protocol - The protocol of the end point. If 'Tcp' is specified, a received ACK is required for the probe to be successful. If 'Http' or 'Https' is specified, a 200 OK response from the specifies URI is required for the probe to be successful. Possible values include: 'ProbeProtocolHTTP', 'ProbeProtocolTCP', 'ProbeProtocolHTTPS' + Protocol ProbeProtocol `json:"protocol,omitempty"` + // Port - The port for communicating the probe. Possible values range from 1 to 65535, inclusive. + Port *int32 `json:"port,omitempty"` + // IntervalInSeconds - The interval, in seconds, for how frequently to probe the endpoint for health status. Typically, the interval is slightly less than half the allocated timeout period (in seconds) which allows two full probes before taking the instance out of rotation. The default value is 15, the minimum value is 5. + IntervalInSeconds *int32 `json:"intervalInSeconds,omitempty"` + // NumberOfProbes - The number of probes where if no response, will result in stopping further traffic from being delivered to the endpoint. This values allows endpoints to be taken out of rotation faster or slower than the typical times used in Azure. + NumberOfProbes *int32 `json:"numberOfProbes,omitempty"` + // RequestPath - The URI used for requesting health status from the VM. Path is required if a protocol is set to http. Otherwise, it is not allowed. There is no default value. + RequestPath *string `json:"requestPath,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the probe resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ProbePropertiesFormat. +func (ppf ProbePropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ppf.Protocol != "" { + objectMap["protocol"] = ppf.Protocol + } + if ppf.Port != nil { + objectMap["port"] = ppf.Port + } + if ppf.IntervalInSeconds != nil { + objectMap["intervalInSeconds"] = ppf.IntervalInSeconds + } + if ppf.NumberOfProbes != nil { + objectMap["numberOfProbes"] = ppf.NumberOfProbes + } + if ppf.RequestPath != nil { + objectMap["requestPath"] = ppf.RequestPath + } + return json.Marshal(objectMap) +} + +// Profile network profile resource. +type Profile struct { + autorest.Response `json:"-"` + // ProfilePropertiesFormat - Network profile properties. + *ProfilePropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for Profile. +func (p Profile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if p.ProfilePropertiesFormat != nil { + objectMap["properties"] = p.ProfilePropertiesFormat + } + if p.ID != nil { + objectMap["id"] = p.ID + } + if p.Location != nil { + objectMap["location"] = p.Location + } + if p.Tags != nil { + objectMap["tags"] = p.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Profile struct. +func (p *Profile) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var profilePropertiesFormat ProfilePropertiesFormat + err = json.Unmarshal(*v, &profilePropertiesFormat) + if err != nil { + return err + } + p.ProfilePropertiesFormat = &profilePropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + p.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + p.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + p.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + p.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + p.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + p.Tags = tags + } + } + } + + return nil +} + +// ProfileListResult response for ListNetworkProfiles API service call. +type ProfileListResult struct { + autorest.Response `json:"-"` + // Value - A list of network profiles that exist in a resource group. + Value *[]Profile `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// ProfileListResultIterator provides access to a complete listing of Profile values. +type ProfileListResultIterator struct { + i int + page ProfileListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ProfileListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProfileListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ProfileListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ProfileListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ProfileListResultIterator) Response() ProfileListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ProfileListResultIterator) Value() Profile { + if !iter.page.NotDone() { + return Profile{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ProfileListResultIterator type. +func NewProfileListResultIterator(page ProfileListResultPage) ProfileListResultIterator { + return ProfileListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (plr ProfileListResult) IsEmpty() bool { + return plr.Value == nil || len(*plr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (plr ProfileListResult) hasNextLink() bool { + return plr.NextLink != nil && len(*plr.NextLink) != 0 +} + +// profileListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (plr ProfileListResult) profileListResultPreparer(ctx context.Context) (*http.Request, error) { + if !plr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(plr.NextLink))) +} + +// ProfileListResultPage contains a page of Profile values. +type ProfileListResultPage struct { + fn func(context.Context, ProfileListResult) (ProfileListResult, error) + plr ProfileListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ProfileListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProfileListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.plr) + if err != nil { + return err + } + page.plr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ProfileListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ProfileListResultPage) NotDone() bool { + return !page.plr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ProfileListResultPage) Response() ProfileListResult { + return page.plr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ProfileListResultPage) Values() []Profile { + if page.plr.IsEmpty() { + return nil + } + return *page.plr.Value +} + +// Creates a new instance of the ProfileListResultPage type. +func NewProfileListResultPage(cur ProfileListResult, getNextPage func(context.Context, ProfileListResult) (ProfileListResult, error)) ProfileListResultPage { + return ProfileListResultPage{ + fn: getNextPage, + plr: cur, + } +} + +// ProfilePropertiesFormat network profile properties. +type ProfilePropertiesFormat struct { + // ContainerNetworkInterfaces - READ-ONLY; List of child container network interfaces. + ContainerNetworkInterfaces *[]ContainerNetworkInterface `json:"containerNetworkInterfaces,omitempty"` + // ContainerNetworkInterfaceConfigurations - List of chid container network interface configurations. + ContainerNetworkInterfaceConfigurations *[]ContainerNetworkInterfaceConfiguration `json:"containerNetworkInterfaceConfigurations,omitempty"` + // ResourceGUID - READ-ONLY; The resource GUID property of the network profile resource. + ResourceGUID *string `json:"resourceGuid,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the network profile resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ProfilePropertiesFormat. +func (ppf ProfilePropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ppf.ContainerNetworkInterfaceConfigurations != nil { + objectMap["containerNetworkInterfaceConfigurations"] = ppf.ContainerNetworkInterfaceConfigurations + } + return json.Marshal(objectMap) +} + +// ProfilesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type ProfilesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ProfilesDeleteFuture) Result(client ProfilesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ProfilesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ProfilesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// PropagatedRouteTable the list of RouteTables to advertise the routes to. +type PropagatedRouteTable struct { + // Labels - The list of labels. + Labels *[]string `json:"labels,omitempty"` + // Ids - The list of resource ids of all the RouteTables. + Ids *[]SubResource `json:"ids,omitempty"` +} + +// ProtocolConfiguration configuration of the protocol. +type ProtocolConfiguration struct { + // HTTPConfiguration - HTTP configuration of the connectivity check. + HTTPConfiguration *HTTPConfiguration `json:"HTTPConfiguration,omitempty"` +} + +// ProtocolCustomSettingsFormat dDoS custom policy properties. +type ProtocolCustomSettingsFormat struct { + // Protocol - The protocol for which the DDoS protection policy is being customized. Possible values include: 'DdosCustomPolicyProtocolTCP', 'DdosCustomPolicyProtocolUDP', 'DdosCustomPolicyProtocolSyn' + Protocol DdosCustomPolicyProtocol `json:"protocol,omitempty"` + // TriggerRateOverride - The customized DDoS protection trigger rate. + TriggerRateOverride *string `json:"triggerRateOverride,omitempty"` + // SourceRateOverride - The customized DDoS protection source rate. + SourceRateOverride *string `json:"sourceRateOverride,omitempty"` + // TriggerSensitivityOverride - The customized DDoS protection trigger rate sensitivity degrees. High: Trigger rate set with most sensitivity w.r.t. normal traffic. Default: Trigger rate set with moderate sensitivity w.r.t. normal traffic. Low: Trigger rate set with less sensitivity w.r.t. normal traffic. Relaxed: Trigger rate set with least sensitivity w.r.t. normal traffic. Possible values include: 'DdosCustomPolicyTriggerSensitivityOverrideRelaxed', 'DdosCustomPolicyTriggerSensitivityOverrideLow', 'DdosCustomPolicyTriggerSensitivityOverrideDefault', 'DdosCustomPolicyTriggerSensitivityOverrideHigh' + TriggerSensitivityOverride DdosCustomPolicyTriggerSensitivityOverride `json:"triggerSensitivityOverride,omitempty"` +} + +// PublicIPAddress public IP address resource. +type PublicIPAddress struct { + autorest.Response `json:"-"` + // ExtendedLocation - The extended location of the public ip address. + ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + // Sku - The public IP address SKU. + Sku *PublicIPAddressSku `json:"sku,omitempty"` + // PublicIPAddressPropertiesFormat - Public IP address properties. + *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Zones - A list of availability zones denoting the IP allocated for the resource needs to come from. + Zones *[]string `json:"zones,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for PublicIPAddress. +func (pia PublicIPAddress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pia.ExtendedLocation != nil { + objectMap["extendedLocation"] = pia.ExtendedLocation + } + if pia.Sku != nil { + objectMap["sku"] = pia.Sku + } + if pia.PublicIPAddressPropertiesFormat != nil { + objectMap["properties"] = pia.PublicIPAddressPropertiesFormat + } + if pia.Zones != nil { + objectMap["zones"] = pia.Zones + } + if pia.ID != nil { + objectMap["id"] = pia.ID + } + if pia.Location != nil { + objectMap["location"] = pia.Location + } + if pia.Tags != nil { + objectMap["tags"] = pia.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PublicIPAddress struct. +func (pia *PublicIPAddress) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "extendedLocation": + if v != nil { + var extendedLocation ExtendedLocation + err = json.Unmarshal(*v, &extendedLocation) + if err != nil { + return err + } + pia.ExtendedLocation = &extendedLocation + } + case "sku": + if v != nil { + var sku PublicIPAddressSku + err = json.Unmarshal(*v, &sku) + if err != nil { + return err + } + pia.Sku = &sku + } + case "properties": + if v != nil { + var publicIPAddressPropertiesFormat PublicIPAddressPropertiesFormat + err = json.Unmarshal(*v, &publicIPAddressPropertiesFormat) + if err != nil { + return err + } + pia.PublicIPAddressPropertiesFormat = &publicIPAddressPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + pia.Etag = &etag + } + case "zones": + if v != nil { + var zones []string + err = json.Unmarshal(*v, &zones) + if err != nil { + return err + } + pia.Zones = &zones + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + pia.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + pia.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + pia.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + pia.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + pia.Tags = tags + } + } + } + + return nil +} + +// PublicIPAddressDNSSettings contains FQDN of the DNS record associated with the public IP address. +type PublicIPAddressDNSSettings struct { + // DomainNameLabel - The domain name label. The concatenation of the domain name label and the regionalized DNS zone make up the fully qualified domain name associated with the public IP address. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system. + DomainNameLabel *string `json:"domainNameLabel,omitempty"` + // Fqdn - The Fully Qualified Domain Name of the A DNS record associated with the public IP. This is the concatenation of the domainNameLabel and the regionalized DNS zone. + Fqdn *string `json:"fqdn,omitempty"` + // ReverseFqdn - The reverse FQDN. A user-visible, fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN. + ReverseFqdn *string `json:"reverseFqdn,omitempty"` +} + +// PublicIPAddressesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type PublicIPAddressesCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *PublicIPAddressesCreateOrUpdateFuture) Result(client PublicIPAddressesClient) (pia PublicIPAddress, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.PublicIPAddressesCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if pia.Response.Response, err = future.GetResult(sender); err == nil && pia.Response.Response.StatusCode != http.StatusNoContent { + pia, err = client.CreateOrUpdateResponder(pia.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesCreateOrUpdateFuture", "Result", pia.Response.Response, "Failure responding to request") + } + } + return +} + +// PublicIPAddressesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type PublicIPAddressesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *PublicIPAddressesDeleteFuture) Result(client PublicIPAddressesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.PublicIPAddressesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// PublicIPAddressListResult response for ListPublicIpAddresses API service call. +type PublicIPAddressListResult struct { + autorest.Response `json:"-"` + // Value - A list of public IP addresses that exists in a resource group. + Value *[]PublicIPAddress `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// PublicIPAddressListResultIterator provides access to a complete listing of PublicIPAddress values. +type PublicIPAddressListResultIterator struct { + i int + page PublicIPAddressListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *PublicIPAddressListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPAddressListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *PublicIPAddressListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter PublicIPAddressListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter PublicIPAddressListResultIterator) Response() PublicIPAddressListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter PublicIPAddressListResultIterator) Value() PublicIPAddress { + if !iter.page.NotDone() { + return PublicIPAddress{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the PublicIPAddressListResultIterator type. +func NewPublicIPAddressListResultIterator(page PublicIPAddressListResultPage) PublicIPAddressListResultIterator { + return PublicIPAddressListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (pialr PublicIPAddressListResult) IsEmpty() bool { + return pialr.Value == nil || len(*pialr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (pialr PublicIPAddressListResult) hasNextLink() bool { + return pialr.NextLink != nil && len(*pialr.NextLink) != 0 +} + +// publicIPAddressListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (pialr PublicIPAddressListResult) publicIPAddressListResultPreparer(ctx context.Context) (*http.Request, error) { + if !pialr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(pialr.NextLink))) +} + +// PublicIPAddressListResultPage contains a page of PublicIPAddress values. +type PublicIPAddressListResultPage struct { + fn func(context.Context, PublicIPAddressListResult) (PublicIPAddressListResult, error) + pialr PublicIPAddressListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *PublicIPAddressListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPAddressListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.pialr) + if err != nil { + return err + } + page.pialr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *PublicIPAddressListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page PublicIPAddressListResultPage) NotDone() bool { + return !page.pialr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page PublicIPAddressListResultPage) Response() PublicIPAddressListResult { + return page.pialr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page PublicIPAddressListResultPage) Values() []PublicIPAddress { + if page.pialr.IsEmpty() { + return nil + } + return *page.pialr.Value +} + +// Creates a new instance of the PublicIPAddressListResultPage type. +func NewPublicIPAddressListResultPage(cur PublicIPAddressListResult, getNextPage func(context.Context, PublicIPAddressListResult) (PublicIPAddressListResult, error)) PublicIPAddressListResultPage { + return PublicIPAddressListResultPage{ + fn: getNextPage, + pialr: cur, + } +} + +// PublicIPAddressPropertiesFormat public IP address properties. +type PublicIPAddressPropertiesFormat struct { + // PublicIPAllocationMethod - The public IP address allocation method. Possible values include: 'Static', 'Dynamic' + PublicIPAllocationMethod IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` + // PublicIPAddressVersion - The public IP address version. Possible values include: 'IPv4', 'IPv6' + PublicIPAddressVersion IPVersion `json:"publicIPAddressVersion,omitempty"` + // IPConfiguration - READ-ONLY; The IP configuration associated with the public IP address. + IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` + // DNSSettings - The FQDN of the DNS record associated with the public IP address. + DNSSettings *PublicIPAddressDNSSettings `json:"dnsSettings,omitempty"` + // DdosSettings - The DDoS protection custom policy associated with the public IP address. + DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` + // IPTags - The list of tags associated with the public IP address. + IPTags *[]IPTag `json:"ipTags,omitempty"` + // IPAddress - The IP address associated with the public IP address resource. + IPAddress *string `json:"ipAddress,omitempty"` + // PublicIPPrefix - The Public IP Prefix this Public IP Address should be allocated from. + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + // IdleTimeoutInMinutes - The idle timeout of the public IP address. + IdleTimeoutInMinutes *int32 `json:"idleTimeoutInMinutes,omitempty"` + // ResourceGUID - READ-ONLY; The resource GUID property of the public IP address resource. + ResourceGUID *string `json:"resourceGuid,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the public IP address resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for PublicIPAddressPropertiesFormat. +func (piapf PublicIPAddressPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if piapf.PublicIPAllocationMethod != "" { + objectMap["publicIPAllocationMethod"] = piapf.PublicIPAllocationMethod + } + if piapf.PublicIPAddressVersion != "" { + objectMap["publicIPAddressVersion"] = piapf.PublicIPAddressVersion + } + if piapf.DNSSettings != nil { + objectMap["dnsSettings"] = piapf.DNSSettings + } + if piapf.DdosSettings != nil { + objectMap["ddosSettings"] = piapf.DdosSettings + } + if piapf.IPTags != nil { + objectMap["ipTags"] = piapf.IPTags + } + if piapf.IPAddress != nil { + objectMap["ipAddress"] = piapf.IPAddress + } + if piapf.PublicIPPrefix != nil { + objectMap["publicIPPrefix"] = piapf.PublicIPPrefix + } + if piapf.IdleTimeoutInMinutes != nil { + objectMap["idleTimeoutInMinutes"] = piapf.IdleTimeoutInMinutes + } + return json.Marshal(objectMap) +} + +// PublicIPAddressSku SKU of a public IP address. +type PublicIPAddressSku struct { + // Name - Name of a public IP address SKU. Possible values include: 'PublicIPAddressSkuNameBasic', 'PublicIPAddressSkuNameStandard' + Name PublicIPAddressSkuName `json:"name,omitempty"` + // Tier - Tier of a public IP address SKU. Possible values include: 'PublicIPAddressSkuTierRegional', 'PublicIPAddressSkuTierGlobal' + Tier PublicIPAddressSkuTier `json:"tier,omitempty"` +} + +// PublicIPPrefix public IP prefix resource. +type PublicIPPrefix struct { + autorest.Response `json:"-"` + // ExtendedLocation - The extended location of the public ip address. + ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + // Sku - The public IP prefix SKU. + Sku *PublicIPPrefixSku `json:"sku,omitempty"` + // PublicIPPrefixPropertiesFormat - Public IP prefix properties. + *PublicIPPrefixPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Zones - A list of availability zones denoting the IP allocated for the resource needs to come from. + Zones *[]string `json:"zones,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for PublicIPPrefix. +func (pip PublicIPPrefix) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pip.ExtendedLocation != nil { + objectMap["extendedLocation"] = pip.ExtendedLocation + } + if pip.Sku != nil { + objectMap["sku"] = pip.Sku + } + if pip.PublicIPPrefixPropertiesFormat != nil { + objectMap["properties"] = pip.PublicIPPrefixPropertiesFormat + } + if pip.Zones != nil { + objectMap["zones"] = pip.Zones + } + if pip.ID != nil { + objectMap["id"] = pip.ID + } + if pip.Location != nil { + objectMap["location"] = pip.Location + } + if pip.Tags != nil { + objectMap["tags"] = pip.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PublicIPPrefix struct. +func (pip *PublicIPPrefix) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "extendedLocation": + if v != nil { + var extendedLocation ExtendedLocation + err = json.Unmarshal(*v, &extendedLocation) + if err != nil { + return err + } + pip.ExtendedLocation = &extendedLocation + } + case "sku": + if v != nil { + var sku PublicIPPrefixSku + err = json.Unmarshal(*v, &sku) + if err != nil { + return err + } + pip.Sku = &sku + } + case "properties": + if v != nil { + var publicIPPrefixPropertiesFormat PublicIPPrefixPropertiesFormat + err = json.Unmarshal(*v, &publicIPPrefixPropertiesFormat) + if err != nil { + return err + } + pip.PublicIPPrefixPropertiesFormat = &publicIPPrefixPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + pip.Etag = &etag + } + case "zones": + if v != nil { + var zones []string + err = json.Unmarshal(*v, &zones) + if err != nil { + return err + } + pip.Zones = &zones + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + pip.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + pip.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + pip.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + pip.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + pip.Tags = tags + } + } + } + + return nil +} + +// PublicIPPrefixesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type PublicIPPrefixesCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *PublicIPPrefixesCreateOrUpdateFuture) Result(client PublicIPPrefixesClient) (pip PublicIPPrefix, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.PublicIPPrefixesCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if pip.Response.Response, err = future.GetResult(sender); err == nil && pip.Response.Response.StatusCode != http.StatusNoContent { + pip, err = client.CreateOrUpdateResponder(pip.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesCreateOrUpdateFuture", "Result", pip.Response.Response, "Failure responding to request") + } + } + return +} + +// PublicIPPrefixesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type PublicIPPrefixesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *PublicIPPrefixesDeleteFuture) Result(client PublicIPPrefixesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.PublicIPPrefixesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// PublicIPPrefixListResult response for ListPublicIpPrefixes API service call. +type PublicIPPrefixListResult struct { + autorest.Response `json:"-"` + // Value - A list of public IP prefixes that exists in a resource group. + Value *[]PublicIPPrefix `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// PublicIPPrefixListResultIterator provides access to a complete listing of PublicIPPrefix values. +type PublicIPPrefixListResultIterator struct { + i int + page PublicIPPrefixListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *PublicIPPrefixListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPPrefixListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *PublicIPPrefixListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter PublicIPPrefixListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter PublicIPPrefixListResultIterator) Response() PublicIPPrefixListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter PublicIPPrefixListResultIterator) Value() PublicIPPrefix { + if !iter.page.NotDone() { + return PublicIPPrefix{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the PublicIPPrefixListResultIterator type. +func NewPublicIPPrefixListResultIterator(page PublicIPPrefixListResultPage) PublicIPPrefixListResultIterator { + return PublicIPPrefixListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (piplr PublicIPPrefixListResult) IsEmpty() bool { + return piplr.Value == nil || len(*piplr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (piplr PublicIPPrefixListResult) hasNextLink() bool { + return piplr.NextLink != nil && len(*piplr.NextLink) != 0 +} + +// publicIPPrefixListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (piplr PublicIPPrefixListResult) publicIPPrefixListResultPreparer(ctx context.Context) (*http.Request, error) { + if !piplr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(piplr.NextLink))) +} + +// PublicIPPrefixListResultPage contains a page of PublicIPPrefix values. +type PublicIPPrefixListResultPage struct { + fn func(context.Context, PublicIPPrefixListResult) (PublicIPPrefixListResult, error) + piplr PublicIPPrefixListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *PublicIPPrefixListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPPrefixListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.piplr) + if err != nil { + return err + } + page.piplr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *PublicIPPrefixListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page PublicIPPrefixListResultPage) NotDone() bool { + return !page.piplr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page PublicIPPrefixListResultPage) Response() PublicIPPrefixListResult { + return page.piplr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page PublicIPPrefixListResultPage) Values() []PublicIPPrefix { + if page.piplr.IsEmpty() { + return nil + } + return *page.piplr.Value +} + +// Creates a new instance of the PublicIPPrefixListResultPage type. +func NewPublicIPPrefixListResultPage(cur PublicIPPrefixListResult, getNextPage func(context.Context, PublicIPPrefixListResult) (PublicIPPrefixListResult, error)) PublicIPPrefixListResultPage { + return PublicIPPrefixListResultPage{ + fn: getNextPage, + piplr: cur, + } +} + +// PublicIPPrefixPropertiesFormat public IP prefix properties. +type PublicIPPrefixPropertiesFormat struct { + // PublicIPAddressVersion - The public IP address version. Possible values include: 'IPv4', 'IPv6' + PublicIPAddressVersion IPVersion `json:"publicIPAddressVersion,omitempty"` + // IPTags - The list of tags associated with the public IP prefix. + IPTags *[]IPTag `json:"ipTags,omitempty"` + // PrefixLength - The Length of the Public IP Prefix. + PrefixLength *int32 `json:"prefixLength,omitempty"` + // IPPrefix - READ-ONLY; The allocated Prefix. + IPPrefix *string `json:"ipPrefix,omitempty"` + // PublicIPAddresses - READ-ONLY; The list of all referenced PublicIPAddresses. + PublicIPAddresses *[]ReferencedPublicIPAddress `json:"publicIPAddresses,omitempty"` + // LoadBalancerFrontendIPConfiguration - READ-ONLY; The reference to load balancer frontend IP configuration associated with the public IP prefix. + LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIpConfiguration,omitempty"` + // CustomIPPrefix - The customIpPrefix that this prefix is associated with. + CustomIPPrefix *SubResource `json:"customIPPrefix,omitempty"` + // ResourceGUID - READ-ONLY; The resource GUID property of the public IP prefix resource. + ResourceGUID *string `json:"resourceGuid,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the public IP prefix resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for PublicIPPrefixPropertiesFormat. +func (pippf PublicIPPrefixPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pippf.PublicIPAddressVersion != "" { + objectMap["publicIPAddressVersion"] = pippf.PublicIPAddressVersion + } + if pippf.IPTags != nil { + objectMap["ipTags"] = pippf.IPTags + } + if pippf.PrefixLength != nil { + objectMap["prefixLength"] = pippf.PrefixLength + } + if pippf.CustomIPPrefix != nil { + objectMap["customIPPrefix"] = pippf.CustomIPPrefix + } + return json.Marshal(objectMap) +} + +// PublicIPPrefixSku SKU of a public IP prefix. +type PublicIPPrefixSku struct { + // Name - Name of a public IP prefix SKU. Possible values include: 'PublicIPPrefixSkuNameStandard' + Name PublicIPPrefixSkuName `json:"name,omitempty"` + // Tier - Tier of a public IP prefix SKU. Possible values include: 'PublicIPPrefixSkuTierRegional', 'PublicIPPrefixSkuTierGlobal' + Tier PublicIPPrefixSkuTier `json:"tier,omitempty"` +} + +// PutBastionShareableLinkAllFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type PutBastionShareableLinkAllFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *PutBastionShareableLinkAllFuture) Result(client BaseClient) (bsllrp BastionShareableLinkListResultPage, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PutBastionShareableLinkAllFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.PutBastionShareableLinkAllFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if bsllrp.bsllr.Response.Response, err = future.GetResult(sender); err == nil && bsllrp.bsllr.Response.Response.StatusCode != http.StatusNoContent { + bsllrp, err = client.PutBastionShareableLinkResponder(bsllrp.bsllr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PutBastionShareableLinkAllFuture", "Result", bsllrp.bsllr.Response.Response, "Failure responding to request") + } + } + return +} + +// PutBastionShareableLinkFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type PutBastionShareableLinkFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *PutBastionShareableLinkFuture) Result(client BaseClient) (bsllrp BastionShareableLinkListResultPage, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PutBastionShareableLinkFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.PutBastionShareableLinkFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if bsllrp.bsllr.Response.Response, err = future.GetResult(sender); err == nil && bsllrp.bsllr.Response.Response.StatusCode != http.StatusNoContent { + bsllrp, err = client.PutBastionShareableLinkResponder(bsllrp.bsllr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PutBastionShareableLinkFuture", "Result", bsllrp.bsllr.Response.Response, "Failure responding to request") + } + } + return +} + +// QosIPRange qos Traffic Profiler IP Range properties. +type QosIPRange struct { + // StartIP - Start IP Address. + StartIP *string `json:"startIP,omitempty"` + // EndIP - End IP Address. + EndIP *string `json:"endIP,omitempty"` +} + +// QosPortRange qos Traffic Profiler Port range properties. +type QosPortRange struct { + // Start - Qos Port Range start. + Start *int32 `json:"start,omitempty"` + // End - Qos Port Range end. + End *int32 `json:"end,omitempty"` +} + +// QueryTroubleshootingParameters parameters that define the resource to query the troubleshooting result. +type QueryTroubleshootingParameters struct { + // TargetResourceID - The target resource ID to query the troubleshooting result. + TargetResourceID *string `json:"targetResourceId,omitempty"` +} + +// RadiusServer radius Server Settings. +type RadiusServer struct { + // RadiusServerAddress - The address of this radius server. + RadiusServerAddress *string `json:"radiusServerAddress,omitempty"` + // RadiusServerScore - The initial score assigned to this radius server. + RadiusServerScore *int64 `json:"radiusServerScore,omitempty"` + // RadiusServerSecret - The secret used for this radius server. + RadiusServerSecret *string `json:"radiusServerSecret,omitempty"` +} + +// RecordSet a collective group of information about the record set information. +type RecordSet struct { + // RecordType - Resource record type. + RecordType *string `json:"recordType,omitempty"` + // RecordSetName - Recordset name. + RecordSetName *string `json:"recordSetName,omitempty"` + // Fqdn - Fqdn that resolves to private endpoint ip address. + Fqdn *string `json:"fqdn,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the recordset. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // TTL - Recordset time to live. + TTL *int32 `json:"ttl,omitempty"` + // IPAddresses - The private ip address of the private endpoint. + IPAddresses *[]string `json:"ipAddresses,omitempty"` +} + +// MarshalJSON is the custom marshaler for RecordSet. +func (rs RecordSet) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rs.RecordType != nil { + objectMap["recordType"] = rs.RecordType + } + if rs.RecordSetName != nil { + objectMap["recordSetName"] = rs.RecordSetName + } + if rs.Fqdn != nil { + objectMap["fqdn"] = rs.Fqdn + } + if rs.TTL != nil { + objectMap["ttl"] = rs.TTL + } + if rs.IPAddresses != nil { + objectMap["ipAddresses"] = rs.IPAddresses + } + return json.Marshal(objectMap) +} + +// ReferencedPublicIPAddress reference to a public IP address. +type ReferencedPublicIPAddress struct { + // ID - The PublicIPAddress Reference. + ID *string `json:"id,omitempty"` +} + +// Resource common resource representation. +type Resource struct { + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if r.ID != nil { + objectMap["id"] = r.ID + } + if r.Location != nil { + objectMap["location"] = r.Location + } + if r.Tags != nil { + objectMap["tags"] = r.Tags + } + return json.Marshal(objectMap) +} + +// ResourceNavigationLink resourceNavigationLink resource. +type ResourceNavigationLink struct { + // ResourceNavigationLinkFormat - Resource navigation link properties format. + *ResourceNavigationLinkFormat `json:"properties,omitempty"` + // Name - Name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ResourceNavigationLink. +func (rnl ResourceNavigationLink) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rnl.ResourceNavigationLinkFormat != nil { + objectMap["properties"] = rnl.ResourceNavigationLinkFormat + } + if rnl.Name != nil { + objectMap["name"] = rnl.Name + } + if rnl.ID != nil { + objectMap["id"] = rnl.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ResourceNavigationLink struct. +func (rnl *ResourceNavigationLink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var resourceNavigationLinkFormat ResourceNavigationLinkFormat + err = json.Unmarshal(*v, &resourceNavigationLinkFormat) + if err != nil { + return err + } + rnl.ResourceNavigationLinkFormat = &resourceNavigationLinkFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + rnl.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + rnl.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + rnl.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + rnl.ID = &ID + } + } + } + + return nil +} + +// ResourceNavigationLinkFormat properties of ResourceNavigationLink. +type ResourceNavigationLinkFormat struct { + // LinkedResourceType - Resource type of the linked resource. + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + // Link - Link to the external resource. + Link *string `json:"link,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the resource navigation link resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ResourceNavigationLinkFormat. +func (rnlf ResourceNavigationLinkFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rnlf.LinkedResourceType != nil { + objectMap["linkedResourceType"] = rnlf.LinkedResourceType + } + if rnlf.Link != nil { + objectMap["link"] = rnlf.Link + } + return json.Marshal(objectMap) +} + +// ResourceNavigationLinksListResult response for ResourceNavigationLinks_List operation. +type ResourceNavigationLinksListResult struct { + autorest.Response `json:"-"` + // Value - The resource navigation links in a subnet. + Value *[]ResourceNavigationLink `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for ResourceNavigationLinksListResult. +func (rnllr ResourceNavigationLinksListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rnllr.Value != nil { + objectMap["value"] = rnllr.Value + } + return json.Marshal(objectMap) +} + +// ResourceSet the base resource set for visibility and auto-approval. +type ResourceSet struct { + // Subscriptions - The list of subscriptions. + Subscriptions *[]string `json:"subscriptions,omitempty"` +} + +// RetentionPolicyParameters parameters that define the retention policy for flow log. +type RetentionPolicyParameters struct { + // Days - Number of days to retain flow log records. + Days *int32 `json:"days,omitempty"` + // Enabled - Flag to enable/disable retention. + Enabled *bool `json:"enabled,omitempty"` +} + +// Route route resource. +type Route struct { + autorest.Response `json:"-"` + // RoutePropertiesFormat - Properties of the route. + *RoutePropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for Route. +func (r Route) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if r.RoutePropertiesFormat != nil { + objectMap["properties"] = r.RoutePropertiesFormat + } + if r.Name != nil { + objectMap["name"] = r.Name + } + if r.ID != nil { + objectMap["id"] = r.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Route struct. +func (r *Route) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var routePropertiesFormat RoutePropertiesFormat + err = json.Unmarshal(*v, &routePropertiesFormat) + if err != nil { + return err + } + r.RoutePropertiesFormat = &routePropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + r.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + r.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + r.ID = &ID + } + } + } + + return nil +} + +// RouteFilter route Filter Resource. +type RouteFilter struct { + autorest.Response `json:"-"` + // RouteFilterPropertiesFormat - Properties of the route filter. + *RouteFilterPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for RouteFilter. +func (rf RouteFilter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rf.RouteFilterPropertiesFormat != nil { + objectMap["properties"] = rf.RouteFilterPropertiesFormat + } + if rf.ID != nil { + objectMap["id"] = rf.ID + } + if rf.Location != nil { + objectMap["location"] = rf.Location + } + if rf.Tags != nil { + objectMap["tags"] = rf.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for RouteFilter struct. +func (rf *RouteFilter) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var routeFilterPropertiesFormat RouteFilterPropertiesFormat + err = json.Unmarshal(*v, &routeFilterPropertiesFormat) + if err != nil { + return err + } + rf.RouteFilterPropertiesFormat = &routeFilterPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + rf.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + rf.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + rf.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + rf.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + rf.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + rf.Tags = tags + } + } + } + + return nil +} + +// RouteFilterListResult response for the ListRouteFilters API service call. +type RouteFilterListResult struct { + autorest.Response `json:"-"` + // Value - A list of route filters in a resource group. + Value *[]RouteFilter `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// RouteFilterListResultIterator provides access to a complete listing of RouteFilter values. +type RouteFilterListResultIterator struct { + i int + page RouteFilterListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *RouteFilterListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteFilterListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *RouteFilterListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter RouteFilterListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter RouteFilterListResultIterator) Response() RouteFilterListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter RouteFilterListResultIterator) Value() RouteFilter { + if !iter.page.NotDone() { + return RouteFilter{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the RouteFilterListResultIterator type. +func NewRouteFilterListResultIterator(page RouteFilterListResultPage) RouteFilterListResultIterator { + return RouteFilterListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (rflr RouteFilterListResult) IsEmpty() bool { + return rflr.Value == nil || len(*rflr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (rflr RouteFilterListResult) hasNextLink() bool { + return rflr.NextLink != nil && len(*rflr.NextLink) != 0 +} + +// routeFilterListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (rflr RouteFilterListResult) routeFilterListResultPreparer(ctx context.Context) (*http.Request, error) { + if !rflr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(rflr.NextLink))) +} + +// RouteFilterListResultPage contains a page of RouteFilter values. +type RouteFilterListResultPage struct { + fn func(context.Context, RouteFilterListResult) (RouteFilterListResult, error) + rflr RouteFilterListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *RouteFilterListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteFilterListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.rflr) + if err != nil { + return err + } + page.rflr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *RouteFilterListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page RouteFilterListResultPage) NotDone() bool { + return !page.rflr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page RouteFilterListResultPage) Response() RouteFilterListResult { + return page.rflr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page RouteFilterListResultPage) Values() []RouteFilter { + if page.rflr.IsEmpty() { + return nil + } + return *page.rflr.Value +} + +// Creates a new instance of the RouteFilterListResultPage type. +func NewRouteFilterListResultPage(cur RouteFilterListResult, getNextPage func(context.Context, RouteFilterListResult) (RouteFilterListResult, error)) RouteFilterListResultPage { + return RouteFilterListResultPage{ + fn: getNextPage, + rflr: cur, + } +} + +// RouteFilterPropertiesFormat route Filter Resource. +type RouteFilterPropertiesFormat struct { + // Rules - Collection of RouteFilterRules contained within a route filter. + Rules *[]RouteFilterRule `json:"rules,omitempty"` + // Peerings - READ-ONLY; A collection of references to express route circuit peerings. + Peerings *[]ExpressRouteCircuitPeering `json:"peerings,omitempty"` + // Ipv6Peerings - READ-ONLY; A collection of references to express route circuit ipv6 peerings. + Ipv6Peerings *[]ExpressRouteCircuitPeering `json:"ipv6Peerings,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the route filter resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for RouteFilterPropertiesFormat. +func (rfpf RouteFilterPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rfpf.Rules != nil { + objectMap["rules"] = rfpf.Rules + } + return json.Marshal(objectMap) +} + +// RouteFilterRule route Filter Rule Resource. +type RouteFilterRule struct { + autorest.Response `json:"-"` + // RouteFilterRulePropertiesFormat - Properties of the route filter rule. + *RouteFilterRulePropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for RouteFilterRule. +func (rfr RouteFilterRule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rfr.RouteFilterRulePropertiesFormat != nil { + objectMap["properties"] = rfr.RouteFilterRulePropertiesFormat + } + if rfr.Name != nil { + objectMap["name"] = rfr.Name + } + if rfr.Location != nil { + objectMap["location"] = rfr.Location + } + if rfr.ID != nil { + objectMap["id"] = rfr.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for RouteFilterRule struct. +func (rfr *RouteFilterRule) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var routeFilterRulePropertiesFormat RouteFilterRulePropertiesFormat + err = json.Unmarshal(*v, &routeFilterRulePropertiesFormat) + if err != nil { + return err + } + rfr.RouteFilterRulePropertiesFormat = &routeFilterRulePropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + rfr.Name = &name + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + rfr.Location = &location + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + rfr.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + rfr.ID = &ID + } + } + } + + return nil +} + +// RouteFilterRuleListResult response for the ListRouteFilterRules API service call. +type RouteFilterRuleListResult struct { + autorest.Response `json:"-"` + // Value - A list of RouteFilterRules in a resource group. + Value *[]RouteFilterRule `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// RouteFilterRuleListResultIterator provides access to a complete listing of RouteFilterRule values. +type RouteFilterRuleListResultIterator struct { + i int + page RouteFilterRuleListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *RouteFilterRuleListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteFilterRuleListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *RouteFilterRuleListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter RouteFilterRuleListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter RouteFilterRuleListResultIterator) Response() RouteFilterRuleListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter RouteFilterRuleListResultIterator) Value() RouteFilterRule { + if !iter.page.NotDone() { + return RouteFilterRule{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the RouteFilterRuleListResultIterator type. +func NewRouteFilterRuleListResultIterator(page RouteFilterRuleListResultPage) RouteFilterRuleListResultIterator { + return RouteFilterRuleListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (rfrlr RouteFilterRuleListResult) IsEmpty() bool { + return rfrlr.Value == nil || len(*rfrlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (rfrlr RouteFilterRuleListResult) hasNextLink() bool { + return rfrlr.NextLink != nil && len(*rfrlr.NextLink) != 0 +} + +// routeFilterRuleListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (rfrlr RouteFilterRuleListResult) routeFilterRuleListResultPreparer(ctx context.Context) (*http.Request, error) { + if !rfrlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(rfrlr.NextLink))) +} + +// RouteFilterRuleListResultPage contains a page of RouteFilterRule values. +type RouteFilterRuleListResultPage struct { + fn func(context.Context, RouteFilterRuleListResult) (RouteFilterRuleListResult, error) + rfrlr RouteFilterRuleListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *RouteFilterRuleListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteFilterRuleListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.rfrlr) + if err != nil { + return err + } + page.rfrlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *RouteFilterRuleListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page RouteFilterRuleListResultPage) NotDone() bool { + return !page.rfrlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page RouteFilterRuleListResultPage) Response() RouteFilterRuleListResult { + return page.rfrlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page RouteFilterRuleListResultPage) Values() []RouteFilterRule { + if page.rfrlr.IsEmpty() { + return nil + } + return *page.rfrlr.Value +} + +// Creates a new instance of the RouteFilterRuleListResultPage type. +func NewRouteFilterRuleListResultPage(cur RouteFilterRuleListResult, getNextPage func(context.Context, RouteFilterRuleListResult) (RouteFilterRuleListResult, error)) RouteFilterRuleListResultPage { + return RouteFilterRuleListResultPage{ + fn: getNextPage, + rfrlr: cur, + } +} + +// RouteFilterRulePropertiesFormat route Filter Rule Resource. +type RouteFilterRulePropertiesFormat struct { + // Access - The access type of the rule. Possible values include: 'Allow', 'Deny' + Access Access `json:"access,omitempty"` + // RouteFilterRuleType - The rule type of the rule. + RouteFilterRuleType *string `json:"routeFilterRuleType,omitempty"` + // Communities - The collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020']. + Communities *[]string `json:"communities,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the route filter rule resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for RouteFilterRulePropertiesFormat. +func (rfrpf RouteFilterRulePropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rfrpf.Access != "" { + objectMap["access"] = rfrpf.Access + } + if rfrpf.RouteFilterRuleType != nil { + objectMap["routeFilterRuleType"] = rfrpf.RouteFilterRuleType + } + if rfrpf.Communities != nil { + objectMap["communities"] = rfrpf.Communities + } + return json.Marshal(objectMap) +} + +// RouteFilterRulesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type RouteFilterRulesCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *RouteFilterRulesCreateOrUpdateFuture) Result(client RouteFilterRulesClient) (rfr RouteFilterRule, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFilterRulesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.RouteFilterRulesCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if rfr.Response.Response, err = future.GetResult(sender); err == nil && rfr.Response.Response.StatusCode != http.StatusNoContent { + rfr, err = client.CreateOrUpdateResponder(rfr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFilterRulesCreateOrUpdateFuture", "Result", rfr.Response.Response, "Failure responding to request") + } + } + return +} + +// RouteFilterRulesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type RouteFilterRulesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *RouteFilterRulesDeleteFuture) Result(client RouteFilterRulesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFilterRulesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.RouteFilterRulesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// RouteFiltersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type RouteFiltersCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *RouteFiltersCreateOrUpdateFuture) Result(client RouteFiltersClient) (rf RouteFilter, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFiltersCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.RouteFiltersCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if rf.Response.Response, err = future.GetResult(sender); err == nil && rf.Response.Response.StatusCode != http.StatusNoContent { + rf, err = client.CreateOrUpdateResponder(rf.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFiltersCreateOrUpdateFuture", "Result", rf.Response.Response, "Failure responding to request") + } + } + return +} + +// RouteFiltersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type RouteFiltersDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *RouteFiltersDeleteFuture) Result(client RouteFiltersClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFiltersDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.RouteFiltersDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// RouteListResult response for the ListRoute API service call. +type RouteListResult struct { + autorest.Response `json:"-"` + // Value - A list of routes in a resource group. + Value *[]Route `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// RouteListResultIterator provides access to a complete listing of Route values. +type RouteListResultIterator struct { + i int + page RouteListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *RouteListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *RouteListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter RouteListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter RouteListResultIterator) Response() RouteListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter RouteListResultIterator) Value() Route { + if !iter.page.NotDone() { + return Route{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the RouteListResultIterator type. +func NewRouteListResultIterator(page RouteListResultPage) RouteListResultIterator { + return RouteListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (rlr RouteListResult) IsEmpty() bool { + return rlr.Value == nil || len(*rlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (rlr RouteListResult) hasNextLink() bool { + return rlr.NextLink != nil && len(*rlr.NextLink) != 0 +} + +// routeListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (rlr RouteListResult) routeListResultPreparer(ctx context.Context) (*http.Request, error) { + if !rlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(rlr.NextLink))) +} + +// RouteListResultPage contains a page of Route values. +type RouteListResultPage struct { + fn func(context.Context, RouteListResult) (RouteListResult, error) + rlr RouteListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *RouteListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.rlr) + if err != nil { + return err + } + page.rlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *RouteListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page RouteListResultPage) NotDone() bool { + return !page.rlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page RouteListResultPage) Response() RouteListResult { + return page.rlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page RouteListResultPage) Values() []Route { + if page.rlr.IsEmpty() { + return nil + } + return *page.rlr.Value +} + +// Creates a new instance of the RouteListResultPage type. +func NewRouteListResultPage(cur RouteListResult, getNextPage func(context.Context, RouteListResult) (RouteListResult, error)) RouteListResultPage { + return RouteListResultPage{ + fn: getNextPage, + rlr: cur, + } +} + +// RoutePropertiesFormat route resource. +type RoutePropertiesFormat struct { + // AddressPrefix - The destination CIDR to which the route applies. + AddressPrefix *string `json:"addressPrefix,omitempty"` + // NextHopType - The type of Azure hop the packet should be sent to. Possible values include: 'RouteNextHopTypeVirtualNetworkGateway', 'RouteNextHopTypeVnetLocal', 'RouteNextHopTypeInternet', 'RouteNextHopTypeVirtualAppliance', 'RouteNextHopTypeNone' + NextHopType RouteNextHopType `json:"nextHopType,omitempty"` + // NextHopIPAddress - The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance. + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the route resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for RoutePropertiesFormat. +func (rpf RoutePropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rpf.AddressPrefix != nil { + objectMap["addressPrefix"] = rpf.AddressPrefix + } + if rpf.NextHopType != "" { + objectMap["nextHopType"] = rpf.NextHopType + } + if rpf.NextHopIPAddress != nil { + objectMap["nextHopIpAddress"] = rpf.NextHopIPAddress + } + return json.Marshal(objectMap) +} + +// RoutesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type RoutesCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *RoutesCreateOrUpdateFuture) Result(client RoutesClient) (r Route, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RoutesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.RoutesCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if r.Response.Response, err = future.GetResult(sender); err == nil && r.Response.Response.StatusCode != http.StatusNoContent { + r, err = client.CreateOrUpdateResponder(r.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RoutesCreateOrUpdateFuture", "Result", r.Response.Response, "Failure responding to request") + } + } + return +} + +// RoutesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. +type RoutesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *RoutesDeleteFuture) Result(client RoutesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RoutesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.RoutesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// RouteTable route table resource. +type RouteTable struct { + autorest.Response `json:"-"` + // RouteTablePropertiesFormat - Properties of the route table. + *RouteTablePropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for RouteTable. +func (rt RouteTable) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rt.RouteTablePropertiesFormat != nil { + objectMap["properties"] = rt.RouteTablePropertiesFormat + } + if rt.ID != nil { + objectMap["id"] = rt.ID + } + if rt.Location != nil { + objectMap["location"] = rt.Location + } + if rt.Tags != nil { + objectMap["tags"] = rt.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for RouteTable struct. +func (rt *RouteTable) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var routeTablePropertiesFormat RouteTablePropertiesFormat + err = json.Unmarshal(*v, &routeTablePropertiesFormat) + if err != nil { + return err + } + rt.RouteTablePropertiesFormat = &routeTablePropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + rt.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + rt.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + rt.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + rt.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + rt.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + rt.Tags = tags + } + } + } + + return nil +} + +// RouteTableListResult response for the ListRouteTable API service call. +type RouteTableListResult struct { + autorest.Response `json:"-"` + // Value - A list of route tables in a resource group. + Value *[]RouteTable `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// RouteTableListResultIterator provides access to a complete listing of RouteTable values. +type RouteTableListResultIterator struct { + i int + page RouteTableListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *RouteTableListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteTableListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *RouteTableListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter RouteTableListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter RouteTableListResultIterator) Response() RouteTableListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter RouteTableListResultIterator) Value() RouteTable { + if !iter.page.NotDone() { + return RouteTable{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the RouteTableListResultIterator type. +func NewRouteTableListResultIterator(page RouteTableListResultPage) RouteTableListResultIterator { + return RouteTableListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (rtlr RouteTableListResult) IsEmpty() bool { + return rtlr.Value == nil || len(*rtlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (rtlr RouteTableListResult) hasNextLink() bool { + return rtlr.NextLink != nil && len(*rtlr.NextLink) != 0 +} + +// routeTableListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (rtlr RouteTableListResult) routeTableListResultPreparer(ctx context.Context) (*http.Request, error) { + if !rtlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(rtlr.NextLink))) +} + +// RouteTableListResultPage contains a page of RouteTable values. +type RouteTableListResultPage struct { + fn func(context.Context, RouteTableListResult) (RouteTableListResult, error) + rtlr RouteTableListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *RouteTableListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteTableListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.rtlr) + if err != nil { + return err + } + page.rtlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *RouteTableListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page RouteTableListResultPage) NotDone() bool { + return !page.rtlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page RouteTableListResultPage) Response() RouteTableListResult { + return page.rtlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page RouteTableListResultPage) Values() []RouteTable { + if page.rtlr.IsEmpty() { + return nil + } + return *page.rtlr.Value +} + +// Creates a new instance of the RouteTableListResultPage type. +func NewRouteTableListResultPage(cur RouteTableListResult, getNextPage func(context.Context, RouteTableListResult) (RouteTableListResult, error)) RouteTableListResultPage { + return RouteTableListResultPage{ + fn: getNextPage, + rtlr: cur, + } +} + +// RouteTablePropertiesFormat route Table resource. +type RouteTablePropertiesFormat struct { + // Routes - Collection of routes contained within a route table. + Routes *[]Route `json:"routes,omitempty"` + // Subnets - READ-ONLY; A collection of references to subnets. + Subnets *[]Subnet `json:"subnets,omitempty"` + // DisableBgpRoutePropagation - Whether to disable the routes learned by BGP on that route table. True means disable. + DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the route table resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for RouteTablePropertiesFormat. +func (rtpf RouteTablePropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rtpf.Routes != nil { + objectMap["routes"] = rtpf.Routes + } + if rtpf.DisableBgpRoutePropagation != nil { + objectMap["disableBgpRoutePropagation"] = rtpf.DisableBgpRoutePropagation + } + return json.Marshal(objectMap) +} + +// RouteTablesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type RouteTablesCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *RouteTablesCreateOrUpdateFuture) Result(client RouteTablesClient) (rt RouteTable, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteTablesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.RouteTablesCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if rt.Response.Response, err = future.GetResult(sender); err == nil && rt.Response.Response.StatusCode != http.StatusNoContent { + rt, err = client.CreateOrUpdateResponder(rt.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteTablesCreateOrUpdateFuture", "Result", rt.Response.Response, "Failure responding to request") + } + } + return +} + +// RouteTablesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type RouteTablesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *RouteTablesDeleteFuture) Result(client RouteTablesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteTablesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.RouteTablesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// RoutingConfiguration routing Configuration indicating the associated and propagated route tables for +// this connection. +type RoutingConfiguration struct { + // AssociatedRouteTable - The resource id RouteTable associated with this RoutingConfiguration. + AssociatedRouteTable *SubResource `json:"associatedRouteTable,omitempty"` + // PropagatedRouteTables - The list of RouteTables to advertise the routes to. + PropagatedRouteTables *PropagatedRouteTable `json:"propagatedRouteTables,omitempty"` + // VnetRoutes - List of routes that control routing from VirtualHub into a virtual network connection. + VnetRoutes *VnetRoute `json:"vnetRoutes,omitempty"` +} + +// Rule rule of type network. +type Rule struct { + // IPProtocols - Array of FirewallPolicyRuleNetworkProtocols. + IPProtocols *[]FirewallPolicyRuleNetworkProtocol `json:"ipProtocols,omitempty"` + // SourceAddresses - List of source IP addresses for this rule. + SourceAddresses *[]string `json:"sourceAddresses,omitempty"` + // DestinationAddresses - List of destination IP addresses or Service Tags. + DestinationAddresses *[]string `json:"destinationAddresses,omitempty"` + // DestinationPorts - List of destination ports. + DestinationPorts *[]string `json:"destinationPorts,omitempty"` + // SourceIPGroups - List of source IpGroups for this rule. + SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` + // DestinationIPGroups - List of destination IpGroups for this rule. + DestinationIPGroups *[]string `json:"destinationIpGroups,omitempty"` + // DestinationFqdns - List of destination FQDNs. + DestinationFqdns *[]string `json:"destinationFqdns,omitempty"` + // Name - Name of the rule. + Name *string `json:"name,omitempty"` + // Description - Description of the rule. + Description *string `json:"description,omitempty"` + // RuleType - Possible values include: 'RuleTypeFirewallPolicyRule', 'RuleTypeApplicationRule', 'RuleTypeNatRule', 'RuleTypeNetworkRule' + RuleType RuleType `json:"ruleType,omitempty"` +} + +// MarshalJSON is the custom marshaler for Rule. +func (r Rule) MarshalJSON() ([]byte, error) { + r.RuleType = RuleTypeNetworkRule + objectMap := make(map[string]interface{}) + if r.IPProtocols != nil { + objectMap["ipProtocols"] = r.IPProtocols + } + if r.SourceAddresses != nil { + objectMap["sourceAddresses"] = r.SourceAddresses + } + if r.DestinationAddresses != nil { + objectMap["destinationAddresses"] = r.DestinationAddresses + } + if r.DestinationPorts != nil { + objectMap["destinationPorts"] = r.DestinationPorts + } + if r.SourceIPGroups != nil { + objectMap["sourceIpGroups"] = r.SourceIPGroups + } + if r.DestinationIPGroups != nil { + objectMap["destinationIpGroups"] = r.DestinationIPGroups + } + if r.DestinationFqdns != nil { + objectMap["destinationFqdns"] = r.DestinationFqdns + } + if r.Name != nil { + objectMap["name"] = r.Name + } + if r.Description != nil { + objectMap["description"] = r.Description + } + if r.RuleType != "" { + objectMap["ruleType"] = r.RuleType + } + return json.Marshal(objectMap) +} + +// AsApplicationRule is the BasicFirewallPolicyRule implementation for Rule. +func (r Rule) AsApplicationRule() (*ApplicationRule, bool) { + return nil, false +} + +// AsNatRule is the BasicFirewallPolicyRule implementation for Rule. +func (r Rule) AsNatRule() (*NatRule, bool) { + return nil, false +} + +// AsRule is the BasicFirewallPolicyRule implementation for Rule. +func (r Rule) AsRule() (*Rule, bool) { + return &r, true +} + +// AsFirewallPolicyRule is the BasicFirewallPolicyRule implementation for Rule. +func (r Rule) AsFirewallPolicyRule() (*FirewallPolicyRule, bool) { + return nil, false +} + +// AsBasicFirewallPolicyRule is the BasicFirewallPolicyRule implementation for Rule. +func (r Rule) AsBasicFirewallPolicyRule() (BasicFirewallPolicyRule, bool) { + return &r, true +} + +// SecurityGroup networkSecurityGroup resource. +type SecurityGroup struct { + autorest.Response `json:"-"` + // SecurityGroupPropertiesFormat - Properties of the network security group. + *SecurityGroupPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for SecurityGroup. +func (sg SecurityGroup) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sg.SecurityGroupPropertiesFormat != nil { + objectMap["properties"] = sg.SecurityGroupPropertiesFormat + } + if sg.ID != nil { + objectMap["id"] = sg.ID + } + if sg.Location != nil { + objectMap["location"] = sg.Location + } + if sg.Tags != nil { + objectMap["tags"] = sg.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for SecurityGroup struct. +func (sg *SecurityGroup) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var securityGroupPropertiesFormat SecurityGroupPropertiesFormat + err = json.Unmarshal(*v, &securityGroupPropertiesFormat) + if err != nil { + return err + } + sg.SecurityGroupPropertiesFormat = &securityGroupPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + sg.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + sg.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + sg.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sg.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + sg.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + sg.Tags = tags + } + } + } + + return nil +} + +// SecurityGroupListResult response for ListNetworkSecurityGroups API service call. +type SecurityGroupListResult struct { + autorest.Response `json:"-"` + // Value - A list of NetworkSecurityGroup resources. + Value *[]SecurityGroup `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// SecurityGroupListResultIterator provides access to a complete listing of SecurityGroup values. +type SecurityGroupListResultIterator struct { + i int + page SecurityGroupListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *SecurityGroupListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityGroupListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *SecurityGroupListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter SecurityGroupListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter SecurityGroupListResultIterator) Response() SecurityGroupListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter SecurityGroupListResultIterator) Value() SecurityGroup { + if !iter.page.NotDone() { + return SecurityGroup{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the SecurityGroupListResultIterator type. +func NewSecurityGroupListResultIterator(page SecurityGroupListResultPage) SecurityGroupListResultIterator { + return SecurityGroupListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (sglr SecurityGroupListResult) IsEmpty() bool { + return sglr.Value == nil || len(*sglr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (sglr SecurityGroupListResult) hasNextLink() bool { + return sglr.NextLink != nil && len(*sglr.NextLink) != 0 +} + +// securityGroupListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (sglr SecurityGroupListResult) securityGroupListResultPreparer(ctx context.Context) (*http.Request, error) { + if !sglr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(sglr.NextLink))) +} + +// SecurityGroupListResultPage contains a page of SecurityGroup values. +type SecurityGroupListResultPage struct { + fn func(context.Context, SecurityGroupListResult) (SecurityGroupListResult, error) + sglr SecurityGroupListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *SecurityGroupListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityGroupListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.sglr) + if err != nil { + return err + } + page.sglr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *SecurityGroupListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page SecurityGroupListResultPage) NotDone() bool { + return !page.sglr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page SecurityGroupListResultPage) Response() SecurityGroupListResult { + return page.sglr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page SecurityGroupListResultPage) Values() []SecurityGroup { + if page.sglr.IsEmpty() { + return nil + } + return *page.sglr.Value +} + +// Creates a new instance of the SecurityGroupListResultPage type. +func NewSecurityGroupListResultPage(cur SecurityGroupListResult, getNextPage func(context.Context, SecurityGroupListResult) (SecurityGroupListResult, error)) SecurityGroupListResultPage { + return SecurityGroupListResultPage{ + fn: getNextPage, + sglr: cur, + } +} + +// SecurityGroupNetworkInterface network interface and all its associated security rules. +type SecurityGroupNetworkInterface struct { + // ID - ID of the network interface. + ID *string `json:"id,omitempty"` + // SecurityRuleAssociations - All security rules associated with the network interface. + SecurityRuleAssociations *SecurityRuleAssociations `json:"securityRuleAssociations,omitempty"` +} + +// SecurityGroupPropertiesFormat network Security Group resource. +type SecurityGroupPropertiesFormat struct { + // SecurityRules - A collection of security rules of the network security group. + SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` + // DefaultSecurityRules - READ-ONLY; The default security rules of network security group. + DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` + // NetworkInterfaces - READ-ONLY; A collection of references to network interfaces. + NetworkInterfaces *[]Interface `json:"networkInterfaces,omitempty"` + // Subnets - READ-ONLY; A collection of references to subnets. + Subnets *[]Subnet `json:"subnets,omitempty"` + // FlowLogs - READ-ONLY; A collection of references to flow log resources. + FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` + // ResourceGUID - READ-ONLY; The resource GUID property of the network security group resource. + ResourceGUID *string `json:"resourceGuid,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the network security group resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for SecurityGroupPropertiesFormat. +func (sgpf SecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sgpf.SecurityRules != nil { + objectMap["securityRules"] = sgpf.SecurityRules + } + return json.Marshal(objectMap) +} + +// SecurityGroupResult network configuration diagnostic result corresponded provided traffic query. +type SecurityGroupResult struct { + // SecurityRuleAccessResult - The network traffic is allowed or denied. Possible values include: 'SecurityRuleAccessAllow', 'SecurityRuleAccessDeny' + SecurityRuleAccessResult SecurityRuleAccess `json:"securityRuleAccessResult,omitempty"` + // EvaluatedNetworkSecurityGroups - READ-ONLY; List of results network security groups diagnostic. + EvaluatedNetworkSecurityGroups *[]EvaluatedNetworkSecurityGroup `json:"evaluatedNetworkSecurityGroups,omitempty"` +} + +// MarshalJSON is the custom marshaler for SecurityGroupResult. +func (sgr SecurityGroupResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sgr.SecurityRuleAccessResult != "" { + objectMap["securityRuleAccessResult"] = sgr.SecurityRuleAccessResult + } + return json.Marshal(objectMap) +} + +// SecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type SecurityGroupsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *SecurityGroupsCreateOrUpdateFuture) Result(client SecurityGroupsClient) (sg SecurityGroup, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityGroupsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.SecurityGroupsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if sg.Response.Response, err = future.GetResult(sender); err == nil && sg.Response.Response.StatusCode != http.StatusNoContent { + sg, err = client.CreateOrUpdateResponder(sg.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityGroupsCreateOrUpdateFuture", "Result", sg.Response.Response, "Failure responding to request") + } + } + return +} + +// SecurityGroupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type SecurityGroupsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *SecurityGroupsDeleteFuture) Result(client SecurityGroupsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityGroupsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.SecurityGroupsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// SecurityGroupViewParameters parameters that define the VM to check security groups for. +type SecurityGroupViewParameters struct { + // TargetResourceID - ID of the target VM. + TargetResourceID *string `json:"targetResourceId,omitempty"` +} + +// SecurityGroupViewResult the information about security rules applied to the specified VM. +type SecurityGroupViewResult struct { + autorest.Response `json:"-"` + // NetworkInterfaces - List of network interfaces on the specified VM. + NetworkInterfaces *[]SecurityGroupNetworkInterface `json:"networkInterfaces,omitempty"` +} + +// SecurityPartnerProvider security Partner Provider resource. +type SecurityPartnerProvider struct { + autorest.Response `json:"-"` + // SecurityPartnerProviderPropertiesFormat - Properties of the Security Partner Provider. + *SecurityPartnerProviderPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for SecurityPartnerProvider. +func (spp SecurityPartnerProvider) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if spp.SecurityPartnerProviderPropertiesFormat != nil { + objectMap["properties"] = spp.SecurityPartnerProviderPropertiesFormat + } + if spp.ID != nil { + objectMap["id"] = spp.ID + } + if spp.Location != nil { + objectMap["location"] = spp.Location + } + if spp.Tags != nil { + objectMap["tags"] = spp.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for SecurityPartnerProvider struct. +func (spp *SecurityPartnerProvider) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var securityPartnerProviderPropertiesFormat SecurityPartnerProviderPropertiesFormat + err = json.Unmarshal(*v, &securityPartnerProviderPropertiesFormat) + if err != nil { + return err + } + spp.SecurityPartnerProviderPropertiesFormat = &securityPartnerProviderPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + spp.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + spp.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + spp.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + spp.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + spp.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + spp.Tags = tags + } + } + } + + return nil +} + +// SecurityPartnerProviderListResult response for ListSecurityPartnerProviders API service call. +type SecurityPartnerProviderListResult struct { + autorest.Response `json:"-"` + // Value - List of Security Partner Providers in a resource group. + Value *[]SecurityPartnerProvider `json:"value,omitempty"` + // NextLink - URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// SecurityPartnerProviderListResultIterator provides access to a complete listing of +// SecurityPartnerProvider values. +type SecurityPartnerProviderListResultIterator struct { + i int + page SecurityPartnerProviderListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *SecurityPartnerProviderListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityPartnerProviderListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *SecurityPartnerProviderListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter SecurityPartnerProviderListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter SecurityPartnerProviderListResultIterator) Response() SecurityPartnerProviderListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter SecurityPartnerProviderListResultIterator) Value() SecurityPartnerProvider { + if !iter.page.NotDone() { + return SecurityPartnerProvider{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the SecurityPartnerProviderListResultIterator type. +func NewSecurityPartnerProviderListResultIterator(page SecurityPartnerProviderListResultPage) SecurityPartnerProviderListResultIterator { + return SecurityPartnerProviderListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (spplr SecurityPartnerProviderListResult) IsEmpty() bool { + return spplr.Value == nil || len(*spplr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (spplr SecurityPartnerProviderListResult) hasNextLink() bool { + return spplr.NextLink != nil && len(*spplr.NextLink) != 0 +} + +// securityPartnerProviderListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (spplr SecurityPartnerProviderListResult) securityPartnerProviderListResultPreparer(ctx context.Context) (*http.Request, error) { + if !spplr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(spplr.NextLink))) +} + +// SecurityPartnerProviderListResultPage contains a page of SecurityPartnerProvider values. +type SecurityPartnerProviderListResultPage struct { + fn func(context.Context, SecurityPartnerProviderListResult) (SecurityPartnerProviderListResult, error) + spplr SecurityPartnerProviderListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *SecurityPartnerProviderListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityPartnerProviderListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.spplr) + if err != nil { + return err + } + page.spplr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *SecurityPartnerProviderListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page SecurityPartnerProviderListResultPage) NotDone() bool { + return !page.spplr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page SecurityPartnerProviderListResultPage) Response() SecurityPartnerProviderListResult { + return page.spplr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page SecurityPartnerProviderListResultPage) Values() []SecurityPartnerProvider { + if page.spplr.IsEmpty() { + return nil + } + return *page.spplr.Value +} + +// Creates a new instance of the SecurityPartnerProviderListResultPage type. +func NewSecurityPartnerProviderListResultPage(cur SecurityPartnerProviderListResult, getNextPage func(context.Context, SecurityPartnerProviderListResult) (SecurityPartnerProviderListResult, error)) SecurityPartnerProviderListResultPage { + return SecurityPartnerProviderListResultPage{ + fn: getNextPage, + spplr: cur, + } +} + +// SecurityPartnerProviderPropertiesFormat properties of the Security Partner Provider. +type SecurityPartnerProviderPropertiesFormat struct { + // ProvisioningState - READ-ONLY; The provisioning state of the Security Partner Provider resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // SecurityProviderName - The security provider name. Possible values include: 'ZScaler', 'IBoss', 'Checkpoint' + SecurityProviderName SecurityProviderName `json:"securityProviderName,omitempty"` + // ConnectionStatus - READ-ONLY; The connection status with the Security Partner Provider. Possible values include: 'SecurityPartnerProviderConnectionStatusUnknown', 'SecurityPartnerProviderConnectionStatusPartiallyConnected', 'SecurityPartnerProviderConnectionStatusConnected', 'SecurityPartnerProviderConnectionStatusNotConnected' + ConnectionStatus SecurityPartnerProviderConnectionStatus `json:"connectionStatus,omitempty"` + // VirtualHub - The virtualHub to which the Security Partner Provider belongs. + VirtualHub *SubResource `json:"virtualHub,omitempty"` +} + +// MarshalJSON is the custom marshaler for SecurityPartnerProviderPropertiesFormat. +func (spppf SecurityPartnerProviderPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if spppf.SecurityProviderName != "" { + objectMap["securityProviderName"] = spppf.SecurityProviderName + } + if spppf.VirtualHub != nil { + objectMap["virtualHub"] = spppf.VirtualHub + } + return json.Marshal(objectMap) +} + +// SecurityPartnerProvidersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of +// a long-running operation. +type SecurityPartnerProvidersCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *SecurityPartnerProvidersCreateOrUpdateFuture) Result(client SecurityPartnerProvidersClient) (spp SecurityPartnerProvider, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.SecurityPartnerProvidersCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if spp.Response.Response, err = future.GetResult(sender); err == nil && spp.Response.Response.StatusCode != http.StatusNoContent { + spp, err = client.CreateOrUpdateResponder(spp.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersCreateOrUpdateFuture", "Result", spp.Response.Response, "Failure responding to request") + } + } + return +} + +// SecurityPartnerProvidersDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type SecurityPartnerProvidersDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *SecurityPartnerProvidersDeleteFuture) Result(client SecurityPartnerProvidersClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.SecurityPartnerProvidersDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// SecurityRule network security rule. +type SecurityRule struct { + autorest.Response `json:"-"` + // SecurityRulePropertiesFormat - Properties of the security rule. + *SecurityRulePropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for SecurityRule. +func (sr SecurityRule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sr.SecurityRulePropertiesFormat != nil { + objectMap["properties"] = sr.SecurityRulePropertiesFormat + } + if sr.Name != nil { + objectMap["name"] = sr.Name + } + if sr.ID != nil { + objectMap["id"] = sr.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for SecurityRule struct. +func (sr *SecurityRule) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var securityRulePropertiesFormat SecurityRulePropertiesFormat + err = json.Unmarshal(*v, &securityRulePropertiesFormat) + if err != nil { + return err + } + sr.SecurityRulePropertiesFormat = &securityRulePropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + sr.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + sr.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + sr.ID = &ID + } + } + } + + return nil +} + +// SecurityRuleAssociations all security rules associated with the network interface. +type SecurityRuleAssociations struct { + // NetworkInterfaceAssociation - Network interface and it's custom security rules. + NetworkInterfaceAssociation *InterfaceAssociation `json:"networkInterfaceAssociation,omitempty"` + // SubnetAssociation - Subnet and it's custom security rules. + SubnetAssociation *SubnetAssociation `json:"subnetAssociation,omitempty"` + // DefaultSecurityRules - Collection of default security rules of the network security group. + DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` + // EffectiveSecurityRules - Collection of effective security rules. + EffectiveSecurityRules *[]EffectiveNetworkSecurityRule `json:"effectiveSecurityRules,omitempty"` +} + +// SecurityRuleListResult response for ListSecurityRule API service call. Retrieves all security rules that +// belongs to a network security group. +type SecurityRuleListResult struct { + autorest.Response `json:"-"` + // Value - The security rules in a network security group. + Value *[]SecurityRule `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// SecurityRuleListResultIterator provides access to a complete listing of SecurityRule values. +type SecurityRuleListResultIterator struct { + i int + page SecurityRuleListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *SecurityRuleListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityRuleListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *SecurityRuleListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter SecurityRuleListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter SecurityRuleListResultIterator) Response() SecurityRuleListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter SecurityRuleListResultIterator) Value() SecurityRule { + if !iter.page.NotDone() { + return SecurityRule{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the SecurityRuleListResultIterator type. +func NewSecurityRuleListResultIterator(page SecurityRuleListResultPage) SecurityRuleListResultIterator { + return SecurityRuleListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (srlr SecurityRuleListResult) IsEmpty() bool { + return srlr.Value == nil || len(*srlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (srlr SecurityRuleListResult) hasNextLink() bool { + return srlr.NextLink != nil && len(*srlr.NextLink) != 0 +} + +// securityRuleListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (srlr SecurityRuleListResult) securityRuleListResultPreparer(ctx context.Context) (*http.Request, error) { + if !srlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(srlr.NextLink))) +} + +// SecurityRuleListResultPage contains a page of SecurityRule values. +type SecurityRuleListResultPage struct { + fn func(context.Context, SecurityRuleListResult) (SecurityRuleListResult, error) + srlr SecurityRuleListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *SecurityRuleListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityRuleListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.srlr) + if err != nil { + return err + } + page.srlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *SecurityRuleListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page SecurityRuleListResultPage) NotDone() bool { + return !page.srlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page SecurityRuleListResultPage) Response() SecurityRuleListResult { + return page.srlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page SecurityRuleListResultPage) Values() []SecurityRule { + if page.srlr.IsEmpty() { + return nil + } + return *page.srlr.Value +} + +// Creates a new instance of the SecurityRuleListResultPage type. +func NewSecurityRuleListResultPage(cur SecurityRuleListResult, getNextPage func(context.Context, SecurityRuleListResult) (SecurityRuleListResult, error)) SecurityRuleListResultPage { + return SecurityRuleListResultPage{ + fn: getNextPage, + srlr: cur, + } +} + +// SecurityRulePropertiesFormat security rule resource. +type SecurityRulePropertiesFormat struct { + // Description - A description for this rule. Restricted to 140 chars. + Description *string `json:"description,omitempty"` + // Protocol - Network protocol this rule applies to. Possible values include: 'SecurityRuleProtocolTCP', 'SecurityRuleProtocolUDP', 'SecurityRuleProtocolIcmp', 'SecurityRuleProtocolEsp', 'SecurityRuleProtocolAsterisk', 'SecurityRuleProtocolAh' + Protocol SecurityRuleProtocol `json:"protocol,omitempty"` + // SourcePortRange - The source port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports. + SourcePortRange *string `json:"sourcePortRange,omitempty"` + // DestinationPortRange - The destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports. + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + // SourceAddressPrefix - The CIDR or source IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If this is an ingress rule, specifies where network traffic originates from. + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + // SourceAddressPrefixes - The CIDR or source IP ranges. + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + // SourceApplicationSecurityGroups - The application security group specified as source. + SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` + // DestinationAddressPrefix - The destination address prefix. CIDR or destination IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + // DestinationAddressPrefixes - The destination address prefixes. CIDR or destination IP ranges. + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + // DestinationApplicationSecurityGroups - The application security group specified as destination. + DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` + // SourcePortRanges - The source port ranges. + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` + // DestinationPortRanges - The destination port ranges. + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + // Access - The network traffic is allowed or denied. Possible values include: 'SecurityRuleAccessAllow', 'SecurityRuleAccessDeny' + Access SecurityRuleAccess `json:"access,omitempty"` + // Priority - The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. + Priority *int32 `json:"priority,omitempty"` + // Direction - The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic. Possible values include: 'SecurityRuleDirectionInbound', 'SecurityRuleDirectionOutbound' + Direction SecurityRuleDirection `json:"direction,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the security rule resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for SecurityRulePropertiesFormat. +func (srpf SecurityRulePropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if srpf.Description != nil { + objectMap["description"] = srpf.Description + } + if srpf.Protocol != "" { + objectMap["protocol"] = srpf.Protocol + } + if srpf.SourcePortRange != nil { + objectMap["sourcePortRange"] = srpf.SourcePortRange + } + if srpf.DestinationPortRange != nil { + objectMap["destinationPortRange"] = srpf.DestinationPortRange + } + if srpf.SourceAddressPrefix != nil { + objectMap["sourceAddressPrefix"] = srpf.SourceAddressPrefix + } + if srpf.SourceAddressPrefixes != nil { + objectMap["sourceAddressPrefixes"] = srpf.SourceAddressPrefixes + } + if srpf.SourceApplicationSecurityGroups != nil { + objectMap["sourceApplicationSecurityGroups"] = srpf.SourceApplicationSecurityGroups + } + if srpf.DestinationAddressPrefix != nil { + objectMap["destinationAddressPrefix"] = srpf.DestinationAddressPrefix + } + if srpf.DestinationAddressPrefixes != nil { + objectMap["destinationAddressPrefixes"] = srpf.DestinationAddressPrefixes + } + if srpf.DestinationApplicationSecurityGroups != nil { + objectMap["destinationApplicationSecurityGroups"] = srpf.DestinationApplicationSecurityGroups + } + if srpf.SourcePortRanges != nil { + objectMap["sourcePortRanges"] = srpf.SourcePortRanges + } + if srpf.DestinationPortRanges != nil { + objectMap["destinationPortRanges"] = srpf.DestinationPortRanges + } + if srpf.Access != "" { + objectMap["access"] = srpf.Access + } + if srpf.Priority != nil { + objectMap["priority"] = srpf.Priority + } + if srpf.Direction != "" { + objectMap["direction"] = srpf.Direction + } + return json.Marshal(objectMap) +} + +// SecurityRulesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type SecurityRulesCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *SecurityRulesCreateOrUpdateFuture) Result(client SecurityRulesClient) (sr SecurityRule, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityRulesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.SecurityRulesCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if sr.Response.Response, err = future.GetResult(sender); err == nil && sr.Response.Response.StatusCode != http.StatusNoContent { + sr, err = client.CreateOrUpdateResponder(sr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityRulesCreateOrUpdateFuture", "Result", sr.Response.Response, "Failure responding to request") + } + } + return +} + +// SecurityRulesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type SecurityRulesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *SecurityRulesDeleteFuture) Result(client SecurityRulesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityRulesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.SecurityRulesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// SecurityRulesEvaluationResult network security rules evaluation result. +type SecurityRulesEvaluationResult struct { + // Name - Name of the network security rule. + Name *string `json:"name,omitempty"` + // ProtocolMatched - Value indicating whether protocol is matched. + ProtocolMatched *bool `json:"protocolMatched,omitempty"` + // SourceMatched - Value indicating whether source is matched. + SourceMatched *bool `json:"sourceMatched,omitempty"` + // SourcePortMatched - Value indicating whether source port is matched. + SourcePortMatched *bool `json:"sourcePortMatched,omitempty"` + // DestinationMatched - Value indicating whether destination is matched. + DestinationMatched *bool `json:"destinationMatched,omitempty"` + // DestinationPortMatched - Value indicating whether destination port is matched. + DestinationPortMatched *bool `json:"destinationPortMatched,omitempty"` +} + +// ServiceAssociationLink serviceAssociationLink resource. +type ServiceAssociationLink struct { + // ServiceAssociationLinkPropertiesFormat - Resource navigation link properties format. + *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` + // Name - Name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ServiceAssociationLink. +func (sal ServiceAssociationLink) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sal.ServiceAssociationLinkPropertiesFormat != nil { + objectMap["properties"] = sal.ServiceAssociationLinkPropertiesFormat + } + if sal.Name != nil { + objectMap["name"] = sal.Name + } + if sal.ID != nil { + objectMap["id"] = sal.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ServiceAssociationLink struct. +func (sal *ServiceAssociationLink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var serviceAssociationLinkPropertiesFormat ServiceAssociationLinkPropertiesFormat + err = json.Unmarshal(*v, &serviceAssociationLinkPropertiesFormat) + if err != nil { + return err + } + sal.ServiceAssociationLinkPropertiesFormat = &serviceAssociationLinkPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + sal.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + sal.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sal.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + sal.ID = &ID + } + } + } + + return nil +} + +// ServiceAssociationLinkPropertiesFormat properties of ServiceAssociationLink. +type ServiceAssociationLinkPropertiesFormat struct { + // LinkedResourceType - Resource type of the linked resource. + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + // Link - Link to the external resource. + Link *string `json:"link,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the service association link resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // AllowDelete - If true, the resource can be deleted. + AllowDelete *bool `json:"allowDelete,omitempty"` + // Locations - A list of locations. + Locations *[]string `json:"locations,omitempty"` +} + +// MarshalJSON is the custom marshaler for ServiceAssociationLinkPropertiesFormat. +func (salpf ServiceAssociationLinkPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if salpf.LinkedResourceType != nil { + objectMap["linkedResourceType"] = salpf.LinkedResourceType + } + if salpf.Link != nil { + objectMap["link"] = salpf.Link + } + if salpf.AllowDelete != nil { + objectMap["allowDelete"] = salpf.AllowDelete + } + if salpf.Locations != nil { + objectMap["locations"] = salpf.Locations + } + return json.Marshal(objectMap) +} + +// ServiceAssociationLinksListResult response for ServiceAssociationLinks_List operation. +type ServiceAssociationLinksListResult struct { + autorest.Response `json:"-"` + // Value - The service association links in a subnet. + Value *[]ServiceAssociationLink `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for ServiceAssociationLinksListResult. +func (sallr ServiceAssociationLinksListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sallr.Value != nil { + objectMap["value"] = sallr.Value + } + return json.Marshal(objectMap) +} + +// ServiceDelegationPropertiesFormat properties of a service delegation. +type ServiceDelegationPropertiesFormat struct { + // ServiceName - The name of the service to whom the subnet should be delegated (e.g. Microsoft.Sql/servers). + ServiceName *string `json:"serviceName,omitempty"` + // Actions - READ-ONLY; The actions permitted to the service upon delegation. + Actions *[]string `json:"actions,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the service delegation resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ServiceDelegationPropertiesFormat. +func (sdpf ServiceDelegationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sdpf.ServiceName != nil { + objectMap["serviceName"] = sdpf.ServiceName + } + return json.Marshal(objectMap) +} + +// ServiceEndpointPoliciesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of +// a long-running operation. +type ServiceEndpointPoliciesCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ServiceEndpointPoliciesCreateOrUpdateFuture) Result(client ServiceEndpointPoliciesClient) (sep ServiceEndpointPolicy, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ServiceEndpointPoliciesCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if sep.Response.Response, err = future.GetResult(sender); err == nil && sep.Response.Response.StatusCode != http.StatusNoContent { + sep, err = client.CreateOrUpdateResponder(sep.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesCreateOrUpdateFuture", "Result", sep.Response.Response, "Failure responding to request") + } + } + return +} + +// ServiceEndpointPoliciesDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type ServiceEndpointPoliciesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ServiceEndpointPoliciesDeleteFuture) Result(client ServiceEndpointPoliciesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ServiceEndpointPoliciesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// ServiceEndpointPolicy service End point policy resource. +type ServiceEndpointPolicy struct { + autorest.Response `json:"-"` + // ServiceEndpointPolicyPropertiesFormat - Properties of the service end point policy. + *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for ServiceEndpointPolicy. +func (sep ServiceEndpointPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sep.ServiceEndpointPolicyPropertiesFormat != nil { + objectMap["properties"] = sep.ServiceEndpointPolicyPropertiesFormat + } + if sep.ID != nil { + objectMap["id"] = sep.ID + } + if sep.Location != nil { + objectMap["location"] = sep.Location + } + if sep.Tags != nil { + objectMap["tags"] = sep.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ServiceEndpointPolicy struct. +func (sep *ServiceEndpointPolicy) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var serviceEndpointPolicyPropertiesFormat ServiceEndpointPolicyPropertiesFormat + err = json.Unmarshal(*v, &serviceEndpointPolicyPropertiesFormat) + if err != nil { + return err + } + sep.ServiceEndpointPolicyPropertiesFormat = &serviceEndpointPolicyPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + sep.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + sep.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + sep.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sep.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + sep.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + sep.Tags = tags + } + } + } + + return nil +} + +// ServiceEndpointPolicyDefinition service Endpoint policy definitions. +type ServiceEndpointPolicyDefinition struct { + autorest.Response `json:"-"` + // ServiceEndpointPolicyDefinitionPropertiesFormat - Properties of the service endpoint policy definition. + *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ServiceEndpointPolicyDefinition. +func (sepd ServiceEndpointPolicyDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sepd.ServiceEndpointPolicyDefinitionPropertiesFormat != nil { + objectMap["properties"] = sepd.ServiceEndpointPolicyDefinitionPropertiesFormat + } + if sepd.Name != nil { + objectMap["name"] = sepd.Name + } + if sepd.ID != nil { + objectMap["id"] = sepd.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ServiceEndpointPolicyDefinition struct. +func (sepd *ServiceEndpointPolicyDefinition) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var serviceEndpointPolicyDefinitionPropertiesFormat ServiceEndpointPolicyDefinitionPropertiesFormat + err = json.Unmarshal(*v, &serviceEndpointPolicyDefinitionPropertiesFormat) + if err != nil { + return err + } + sepd.ServiceEndpointPolicyDefinitionPropertiesFormat = &serviceEndpointPolicyDefinitionPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + sepd.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + sepd.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + sepd.ID = &ID + } + } + } + + return nil +} + +// ServiceEndpointPolicyDefinitionListResult response for ListServiceEndpointPolicyDefinition API service +// call. Retrieves all service endpoint policy definition that belongs to a service endpoint policy. +type ServiceEndpointPolicyDefinitionListResult struct { + autorest.Response `json:"-"` + // Value - The service endpoint policy definition in a service endpoint policy. + Value *[]ServiceEndpointPolicyDefinition `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// ServiceEndpointPolicyDefinitionListResultIterator provides access to a complete listing of +// ServiceEndpointPolicyDefinition values. +type ServiceEndpointPolicyDefinitionListResultIterator struct { + i int + page ServiceEndpointPolicyDefinitionListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ServiceEndpointPolicyDefinitionListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ServiceEndpointPolicyDefinitionListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ServiceEndpointPolicyDefinitionListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ServiceEndpointPolicyDefinitionListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ServiceEndpointPolicyDefinitionListResultIterator) Response() ServiceEndpointPolicyDefinitionListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ServiceEndpointPolicyDefinitionListResultIterator) Value() ServiceEndpointPolicyDefinition { + if !iter.page.NotDone() { + return ServiceEndpointPolicyDefinition{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ServiceEndpointPolicyDefinitionListResultIterator type. +func NewServiceEndpointPolicyDefinitionListResultIterator(page ServiceEndpointPolicyDefinitionListResultPage) ServiceEndpointPolicyDefinitionListResultIterator { + return ServiceEndpointPolicyDefinitionListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (sepdlr ServiceEndpointPolicyDefinitionListResult) IsEmpty() bool { + return sepdlr.Value == nil || len(*sepdlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (sepdlr ServiceEndpointPolicyDefinitionListResult) hasNextLink() bool { + return sepdlr.NextLink != nil && len(*sepdlr.NextLink) != 0 +} + +// serviceEndpointPolicyDefinitionListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (sepdlr ServiceEndpointPolicyDefinitionListResult) serviceEndpointPolicyDefinitionListResultPreparer(ctx context.Context) (*http.Request, error) { + if !sepdlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(sepdlr.NextLink))) +} + +// ServiceEndpointPolicyDefinitionListResultPage contains a page of ServiceEndpointPolicyDefinition values. +type ServiceEndpointPolicyDefinitionListResultPage struct { + fn func(context.Context, ServiceEndpointPolicyDefinitionListResult) (ServiceEndpointPolicyDefinitionListResult, error) + sepdlr ServiceEndpointPolicyDefinitionListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ServiceEndpointPolicyDefinitionListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ServiceEndpointPolicyDefinitionListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.sepdlr) + if err != nil { + return err + } + page.sepdlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ServiceEndpointPolicyDefinitionListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ServiceEndpointPolicyDefinitionListResultPage) NotDone() bool { + return !page.sepdlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ServiceEndpointPolicyDefinitionListResultPage) Response() ServiceEndpointPolicyDefinitionListResult { + return page.sepdlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ServiceEndpointPolicyDefinitionListResultPage) Values() []ServiceEndpointPolicyDefinition { + if page.sepdlr.IsEmpty() { + return nil + } + return *page.sepdlr.Value +} + +// Creates a new instance of the ServiceEndpointPolicyDefinitionListResultPage type. +func NewServiceEndpointPolicyDefinitionListResultPage(cur ServiceEndpointPolicyDefinitionListResult, getNextPage func(context.Context, ServiceEndpointPolicyDefinitionListResult) (ServiceEndpointPolicyDefinitionListResult, error)) ServiceEndpointPolicyDefinitionListResultPage { + return ServiceEndpointPolicyDefinitionListResultPage{ + fn: getNextPage, + sepdlr: cur, + } +} + +// ServiceEndpointPolicyDefinitionPropertiesFormat service Endpoint policy definition resource. +type ServiceEndpointPolicyDefinitionPropertiesFormat struct { + // Description - A description for this rule. Restricted to 140 chars. + Description *string `json:"description,omitempty"` + // Service - Service endpoint name. + Service *string `json:"service,omitempty"` + // ServiceResources - A list of service resources. + ServiceResources *[]string `json:"serviceResources,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the service endpoint policy definition resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ServiceEndpointPolicyDefinitionPropertiesFormat. +func (sepdpf ServiceEndpointPolicyDefinitionPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sepdpf.Description != nil { + objectMap["description"] = sepdpf.Description + } + if sepdpf.Service != nil { + objectMap["service"] = sepdpf.Service + } + if sepdpf.ServiceResources != nil { + objectMap["serviceResources"] = sepdpf.ServiceResources + } + return json.Marshal(objectMap) +} + +// ServiceEndpointPolicyDefinitionsCreateOrUpdateFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type ServiceEndpointPolicyDefinitionsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ServiceEndpointPolicyDefinitionsCreateOrUpdateFuture) Result(client ServiceEndpointPolicyDefinitionsClient) (sepd ServiceEndpointPolicyDefinition, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ServiceEndpointPolicyDefinitionsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if sepd.Response.Response, err = future.GetResult(sender); err == nil && sepd.Response.Response.StatusCode != http.StatusNoContent { + sepd, err = client.CreateOrUpdateResponder(sepd.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsCreateOrUpdateFuture", "Result", sepd.Response.Response, "Failure responding to request") + } + } + return +} + +// ServiceEndpointPolicyDefinitionsDeleteFuture an abstraction for monitoring and retrieving the results of +// a long-running operation. +type ServiceEndpointPolicyDefinitionsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ServiceEndpointPolicyDefinitionsDeleteFuture) Result(client ServiceEndpointPolicyDefinitionsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.ServiceEndpointPolicyDefinitionsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// ServiceEndpointPolicyListResult response for ListServiceEndpointPolicies API service call. +type ServiceEndpointPolicyListResult struct { + autorest.Response `json:"-"` + // Value - A list of ServiceEndpointPolicy resources. + Value *[]ServiceEndpointPolicy `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for ServiceEndpointPolicyListResult. +func (seplr ServiceEndpointPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if seplr.Value != nil { + objectMap["value"] = seplr.Value + } + return json.Marshal(objectMap) +} + +// ServiceEndpointPolicyListResultIterator provides access to a complete listing of ServiceEndpointPolicy +// values. +type ServiceEndpointPolicyListResultIterator struct { + i int + page ServiceEndpointPolicyListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ServiceEndpointPolicyListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ServiceEndpointPolicyListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ServiceEndpointPolicyListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ServiceEndpointPolicyListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ServiceEndpointPolicyListResultIterator) Response() ServiceEndpointPolicyListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ServiceEndpointPolicyListResultIterator) Value() ServiceEndpointPolicy { + if !iter.page.NotDone() { + return ServiceEndpointPolicy{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ServiceEndpointPolicyListResultIterator type. +func NewServiceEndpointPolicyListResultIterator(page ServiceEndpointPolicyListResultPage) ServiceEndpointPolicyListResultIterator { + return ServiceEndpointPolicyListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (seplr ServiceEndpointPolicyListResult) IsEmpty() bool { + return seplr.Value == nil || len(*seplr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (seplr ServiceEndpointPolicyListResult) hasNextLink() bool { + return seplr.NextLink != nil && len(*seplr.NextLink) != 0 +} + +// serviceEndpointPolicyListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (seplr ServiceEndpointPolicyListResult) serviceEndpointPolicyListResultPreparer(ctx context.Context) (*http.Request, error) { + if !seplr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(seplr.NextLink))) +} + +// ServiceEndpointPolicyListResultPage contains a page of ServiceEndpointPolicy values. +type ServiceEndpointPolicyListResultPage struct { + fn func(context.Context, ServiceEndpointPolicyListResult) (ServiceEndpointPolicyListResult, error) + seplr ServiceEndpointPolicyListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ServiceEndpointPolicyListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ServiceEndpointPolicyListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.seplr) + if err != nil { + return err + } + page.seplr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ServiceEndpointPolicyListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ServiceEndpointPolicyListResultPage) NotDone() bool { + return !page.seplr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ServiceEndpointPolicyListResultPage) Response() ServiceEndpointPolicyListResult { + return page.seplr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ServiceEndpointPolicyListResultPage) Values() []ServiceEndpointPolicy { + if page.seplr.IsEmpty() { + return nil + } + return *page.seplr.Value +} + +// Creates a new instance of the ServiceEndpointPolicyListResultPage type. +func NewServiceEndpointPolicyListResultPage(cur ServiceEndpointPolicyListResult, getNextPage func(context.Context, ServiceEndpointPolicyListResult) (ServiceEndpointPolicyListResult, error)) ServiceEndpointPolicyListResultPage { + return ServiceEndpointPolicyListResultPage{ + fn: getNextPage, + seplr: cur, + } +} + +// ServiceEndpointPolicyPropertiesFormat service Endpoint Policy resource. +type ServiceEndpointPolicyPropertiesFormat struct { + // ServiceEndpointPolicyDefinitions - A collection of service endpoint policy definitions of the service endpoint policy. + ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` + // Subnets - READ-ONLY; A collection of references to subnets. + Subnets *[]Subnet `json:"subnets,omitempty"` + // ResourceGUID - READ-ONLY; The resource GUID property of the service endpoint policy resource. + ResourceGUID *string `json:"resourceGuid,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the service endpoint policy resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ServiceEndpointPolicyPropertiesFormat. +func (seppf ServiceEndpointPolicyPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if seppf.ServiceEndpointPolicyDefinitions != nil { + objectMap["serviceEndpointPolicyDefinitions"] = seppf.ServiceEndpointPolicyDefinitions + } + return json.Marshal(objectMap) +} + +// ServiceEndpointPropertiesFormat the service endpoint properties. +type ServiceEndpointPropertiesFormat struct { + // Service - The type of the endpoint service. + Service *string `json:"service,omitempty"` + // Locations - A list of locations. + Locations *[]string `json:"locations,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the service endpoint resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ServiceEndpointPropertiesFormat. +func (sepf ServiceEndpointPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sepf.Service != nil { + objectMap["service"] = sepf.Service + } + if sepf.Locations != nil { + objectMap["locations"] = sepf.Locations + } + return json.Marshal(objectMap) +} + +// ServiceTagInformation the service tag information. +type ServiceTagInformation struct { + // Properties - READ-ONLY; Properties of the service tag information. + Properties *ServiceTagInformationPropertiesFormat `json:"properties,omitempty"` + // Name - READ-ONLY; The name of service tag. + Name *string `json:"name,omitempty"` + // ID - READ-ONLY; The ID of service tag. + ID *string `json:"id,omitempty"` +} + +// ServiceTagInformationPropertiesFormat properties of the service tag information. +type ServiceTagInformationPropertiesFormat struct { + // ChangeNumber - READ-ONLY; The iteration number of service tag. + ChangeNumber *string `json:"changeNumber,omitempty"` + // Region - READ-ONLY; The region of service tag. + Region *string `json:"region,omitempty"` + // SystemService - READ-ONLY; The name of system service. + SystemService *string `json:"systemService,omitempty"` + // AddressPrefixes - READ-ONLY; The list of IP address prefixes. + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` +} + +// ServiceTagsListResult response for the ListServiceTags API service call. +type ServiceTagsListResult struct { + autorest.Response `json:"-"` + // Name - READ-ONLY; The name of the cloud. + Name *string `json:"name,omitempty"` + // ID - READ-ONLY; The ID of the cloud. + ID *string `json:"id,omitempty"` + // Type - READ-ONLY; The azure resource type. + Type *string `json:"type,omitempty"` + // ChangeNumber - READ-ONLY; The iteration number. + ChangeNumber *string `json:"changeNumber,omitempty"` + // Cloud - READ-ONLY; The name of the cloud. + Cloud *string `json:"cloud,omitempty"` + // Values - READ-ONLY; The list of service tag information resources. + Values *[]ServiceTagInformation `json:"values,omitempty"` + // NextLink - READ-ONLY; The URL to get next page of service tag information resources. + NextLink *string `json:"nextLink,omitempty"` +} + +// SessionIds list of session IDs. +type SessionIds struct { + // SessionIds - List of session IDs. + SessionIds *[]string `json:"sessionIds,omitempty"` +} + +// StaticRoute list of all Static Routes. +type StaticRoute struct { + // Name - The name of the StaticRoute that is unique within a VnetRoute. + Name *string `json:"name,omitempty"` + // AddressPrefixes - List of all address prefixes. + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + // NextHopIPAddress - The ip address of the next hop. + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` +} + +// String ... +type String struct { + autorest.Response `json:"-"` + Value *string `json:"value,omitempty"` +} + +// Subnet subnet in a virtual network resource. +type Subnet struct { + autorest.Response `json:"-"` + // SubnetPropertiesFormat - Properties of the subnet. + *SubnetPropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for Subnet. +func (s Subnet) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if s.SubnetPropertiesFormat != nil { + objectMap["properties"] = s.SubnetPropertiesFormat + } + if s.Name != nil { + objectMap["name"] = s.Name + } + if s.ID != nil { + objectMap["id"] = s.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Subnet struct. +func (s *Subnet) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var subnetPropertiesFormat SubnetPropertiesFormat + err = json.Unmarshal(*v, &subnetPropertiesFormat) + if err != nil { + return err + } + s.SubnetPropertiesFormat = &subnetPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + s.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + s.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + s.ID = &ID + } + } + } + + return nil +} + +// SubnetAssociation subnet and it's custom security rules. +type SubnetAssociation struct { + // ID - READ-ONLY; Subnet ID. + ID *string `json:"id,omitempty"` + // SecurityRules - Collection of custom security rules. + SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` +} + +// MarshalJSON is the custom marshaler for SubnetAssociation. +func (sa SubnetAssociation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sa.SecurityRules != nil { + objectMap["securityRules"] = sa.SecurityRules + } + return json.Marshal(objectMap) +} + +// SubnetListResult response for ListSubnets API service callRetrieves all subnet that belongs to a virtual +// network. +type SubnetListResult struct { + autorest.Response `json:"-"` + // Value - The subnets in a virtual network. + Value *[]Subnet `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// SubnetListResultIterator provides access to a complete listing of Subnet values. +type SubnetListResultIterator struct { + i int + page SubnetListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *SubnetListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubnetListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *SubnetListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter SubnetListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter SubnetListResultIterator) Response() SubnetListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter SubnetListResultIterator) Value() Subnet { + if !iter.page.NotDone() { + return Subnet{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the SubnetListResultIterator type. +func NewSubnetListResultIterator(page SubnetListResultPage) SubnetListResultIterator { + return SubnetListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (slr SubnetListResult) IsEmpty() bool { + return slr.Value == nil || len(*slr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (slr SubnetListResult) hasNextLink() bool { + return slr.NextLink != nil && len(*slr.NextLink) != 0 +} + +// subnetListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (slr SubnetListResult) subnetListResultPreparer(ctx context.Context) (*http.Request, error) { + if !slr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(slr.NextLink))) +} + +// SubnetListResultPage contains a page of Subnet values. +type SubnetListResultPage struct { + fn func(context.Context, SubnetListResult) (SubnetListResult, error) + slr SubnetListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *SubnetListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubnetListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.slr) + if err != nil { + return err + } + page.slr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *SubnetListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page SubnetListResultPage) NotDone() bool { + return !page.slr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page SubnetListResultPage) Response() SubnetListResult { + return page.slr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page SubnetListResultPage) Values() []Subnet { + if page.slr.IsEmpty() { + return nil + } + return *page.slr.Value +} + +// Creates a new instance of the SubnetListResultPage type. +func NewSubnetListResultPage(cur SubnetListResult, getNextPage func(context.Context, SubnetListResult) (SubnetListResult, error)) SubnetListResultPage { + return SubnetListResultPage{ + fn: getNextPage, + slr: cur, + } +} + +// SubnetPropertiesFormat properties of the subnet. +type SubnetPropertiesFormat struct { + // AddressPrefix - The address prefix for the subnet. + AddressPrefix *string `json:"addressPrefix,omitempty"` + // AddressPrefixes - List of address prefixes for the subnet. + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + // NetworkSecurityGroup - The reference to the NetworkSecurityGroup resource. + NetworkSecurityGroup *SecurityGroup `json:"networkSecurityGroup,omitempty"` + // RouteTable - The reference to the RouteTable resource. + RouteTable *RouteTable `json:"routeTable,omitempty"` + // NatGateway - Nat gateway associated with this subnet. + NatGateway *SubResource `json:"natGateway,omitempty"` + // ServiceEndpoints - An array of service endpoints. + ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` + // ServiceEndpointPolicies - An array of service endpoint policies. + ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` + // PrivateEndpoints - READ-ONLY; An array of references to private endpoints. + PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` + // IPConfigurations - READ-ONLY; An array of references to the network interface IP configurations using subnet. + IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` + // IPConfigurationProfiles - READ-ONLY; Array of IP configuration profiles which reference this subnet. + IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` + // IPAllocations - Array of IpAllocation which reference this subnet. + IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` + // ResourceNavigationLinks - READ-ONLY; An array of references to the external resources using subnet. + ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` + // ServiceAssociationLinks - READ-ONLY; An array of references to services injecting into this subnet. + ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` + // Delegations - An array of references to the delegations on the subnet. + Delegations *[]Delegation `json:"delegations,omitempty"` + // Purpose - READ-ONLY; A read-only string identifying the intention of use for this subnet based on delegations and other user-defined properties. + Purpose *string `json:"purpose,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the subnet resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // PrivateEndpointNetworkPolicies - Enable or Disable apply network policies on private end point in the subnet. + PrivateEndpointNetworkPolicies *string `json:"privateEndpointNetworkPolicies,omitempty"` + // PrivateLinkServiceNetworkPolicies - Enable or Disable apply network policies on private link service in the subnet. + PrivateLinkServiceNetworkPolicies *string `json:"privateLinkServiceNetworkPolicies,omitempty"` +} + +// MarshalJSON is the custom marshaler for SubnetPropertiesFormat. +func (spf SubnetPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if spf.AddressPrefix != nil { + objectMap["addressPrefix"] = spf.AddressPrefix + } + if spf.AddressPrefixes != nil { + objectMap["addressPrefixes"] = spf.AddressPrefixes + } + if spf.NetworkSecurityGroup != nil { + objectMap["networkSecurityGroup"] = spf.NetworkSecurityGroup + } + if spf.RouteTable != nil { + objectMap["routeTable"] = spf.RouteTable + } + if spf.NatGateway != nil { + objectMap["natGateway"] = spf.NatGateway + } + if spf.ServiceEndpoints != nil { + objectMap["serviceEndpoints"] = spf.ServiceEndpoints + } + if spf.ServiceEndpointPolicies != nil { + objectMap["serviceEndpointPolicies"] = spf.ServiceEndpointPolicies + } + if spf.IPAllocations != nil { + objectMap["ipAllocations"] = spf.IPAllocations + } + if spf.Delegations != nil { + objectMap["delegations"] = spf.Delegations + } + if spf.PrivateEndpointNetworkPolicies != nil { + objectMap["privateEndpointNetworkPolicies"] = spf.PrivateEndpointNetworkPolicies + } + if spf.PrivateLinkServiceNetworkPolicies != nil { + objectMap["privateLinkServiceNetworkPolicies"] = spf.PrivateLinkServiceNetworkPolicies + } + return json.Marshal(objectMap) +} + +// SubnetsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type SubnetsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *SubnetsCreateOrUpdateFuture) Result(client SubnetsClient) (s Subnet, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SubnetsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.SubnetsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if s.Response.Response, err = future.GetResult(sender); err == nil && s.Response.Response.StatusCode != http.StatusNoContent { + s, err = client.CreateOrUpdateResponder(s.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SubnetsCreateOrUpdateFuture", "Result", s.Response.Response, "Failure responding to request") + } + } + return +} + +// SubnetsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type SubnetsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *SubnetsDeleteFuture) Result(client SubnetsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SubnetsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.SubnetsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// SubnetsPrepareNetworkPoliciesFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type SubnetsPrepareNetworkPoliciesFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *SubnetsPrepareNetworkPoliciesFuture) Result(client SubnetsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SubnetsPrepareNetworkPoliciesFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.SubnetsPrepareNetworkPoliciesFuture") + return + } + ar.Response = future.Response() + return +} + +// SubnetsUnprepareNetworkPoliciesFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type SubnetsUnprepareNetworkPoliciesFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *SubnetsUnprepareNetworkPoliciesFuture) Result(client SubnetsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SubnetsUnprepareNetworkPoliciesFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.SubnetsUnprepareNetworkPoliciesFuture") + return + } + ar.Response = future.Response() + return +} + +// SubResource reference to another subresource. +type SubResource struct { + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// TagsObject tags object for patch operations. +type TagsObject struct { + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for TagsObject. +func (toVar TagsObject) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if toVar.Tags != nil { + objectMap["tags"] = toVar.Tags + } + return json.Marshal(objectMap) +} + +// Topology topology of the specified resource group. +type Topology struct { + autorest.Response `json:"-"` + // ID - READ-ONLY; GUID representing the operation id. + ID *string `json:"id,omitempty"` + // CreatedDateTime - READ-ONLY; The datetime when the topology was initially created for the resource group. + CreatedDateTime *date.Time `json:"createdDateTime,omitempty"` + // LastModified - READ-ONLY; The datetime when the topology was last modified. + LastModified *date.Time `json:"lastModified,omitempty"` + // Resources - A list of topology resources. + Resources *[]TopologyResource `json:"resources,omitempty"` +} + +// MarshalJSON is the custom marshaler for Topology. +func (t Topology) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if t.Resources != nil { + objectMap["resources"] = t.Resources + } + return json.Marshal(objectMap) +} + +// TopologyAssociation resources that have an association with the parent resource. +type TopologyAssociation struct { + // Name - The name of the resource that is associated with the parent resource. + Name *string `json:"name,omitempty"` + // ResourceID - The ID of the resource that is associated with the parent resource. + ResourceID *string `json:"resourceId,omitempty"` + // AssociationType - The association type of the child resource to the parent resource. Possible values include: 'Associated', 'Contains' + AssociationType AssociationType `json:"associationType,omitempty"` +} + +// TopologyParameters parameters that define the representation of topology. +type TopologyParameters struct { + // TargetResourceGroupName - The name of the target resource group to perform topology on. + TargetResourceGroupName *string `json:"targetResourceGroupName,omitempty"` + // TargetVirtualNetwork - The reference to the Virtual Network resource. + TargetVirtualNetwork *SubResource `json:"targetVirtualNetwork,omitempty"` + // TargetSubnet - The reference to the Subnet resource. + TargetSubnet *SubResource `json:"targetSubnet,omitempty"` +} + +// TopologyResource the network resource topology information for the given resource group. +type TopologyResource struct { + // Name - Name of the resource. + Name *string `json:"name,omitempty"` + // ID - ID of the resource. + ID *string `json:"id,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Associations - Holds the associations the resource has with other resources in the resource group. + Associations *[]TopologyAssociation `json:"associations,omitempty"` +} + +// TrafficAnalyticsConfigurationProperties parameters that define the configuration of traffic analytics. +type TrafficAnalyticsConfigurationProperties struct { + // Enabled - Flag to enable/disable traffic analytics. + Enabled *bool `json:"enabled,omitempty"` + // WorkspaceID - The resource guid of the attached workspace. + WorkspaceID *string `json:"workspaceId,omitempty"` + // WorkspaceRegion - The location of the attached workspace. + WorkspaceRegion *string `json:"workspaceRegion,omitempty"` + // WorkspaceResourceID - Resource Id of the attached workspace. + WorkspaceResourceID *string `json:"workspaceResourceId,omitempty"` + // TrafficAnalyticsInterval - The interval in minutes which would decide how frequently TA service should do flow analytics. + TrafficAnalyticsInterval *int32 `json:"trafficAnalyticsInterval,omitempty"` +} + +// TrafficAnalyticsProperties parameters that define the configuration of traffic analytics. +type TrafficAnalyticsProperties struct { + // NetworkWatcherFlowAnalyticsConfiguration - Parameters that define the configuration of traffic analytics. + NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` +} + +// TrafficSelectorPolicy an traffic selector policy for a virtual network gateway connection. +type TrafficSelectorPolicy struct { + // LocalAddressRanges - A collection of local address spaces in CIDR format. + LocalAddressRanges *[]string `json:"localAddressRanges,omitempty"` + // RemoteAddressRanges - A collection of remote address spaces in CIDR format. + RemoteAddressRanges *[]string `json:"remoteAddressRanges,omitempty"` +} + +// TroubleshootingDetails information gained from troubleshooting of specified resource. +type TroubleshootingDetails struct { + // ID - The id of the get troubleshoot operation. + ID *string `json:"id,omitempty"` + // ReasonType - Reason type of failure. + ReasonType *string `json:"reasonType,omitempty"` + // Summary - A summary of troubleshooting. + Summary *string `json:"summary,omitempty"` + // Detail - Details on troubleshooting results. + Detail *string `json:"detail,omitempty"` + // RecommendedActions - List of recommended actions. + RecommendedActions *[]TroubleshootingRecommendedActions `json:"recommendedActions,omitempty"` +} + +// TroubleshootingParameters parameters that define the resource to troubleshoot. +type TroubleshootingParameters struct { + // TargetResourceID - The target resource to troubleshoot. + TargetResourceID *string `json:"targetResourceId,omitempty"` + // TroubleshootingProperties - Properties of the troubleshooting resource. + *TroubleshootingProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for TroubleshootingParameters. +func (tp TroubleshootingParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if tp.TargetResourceID != nil { + objectMap["targetResourceId"] = tp.TargetResourceID + } + if tp.TroubleshootingProperties != nil { + objectMap["properties"] = tp.TroubleshootingProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for TroubleshootingParameters struct. +func (tp *TroubleshootingParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "targetResourceId": + if v != nil { + var targetResourceID string + err = json.Unmarshal(*v, &targetResourceID) + if err != nil { + return err + } + tp.TargetResourceID = &targetResourceID + } + case "properties": + if v != nil { + var troubleshootingProperties TroubleshootingProperties + err = json.Unmarshal(*v, &troubleshootingProperties) + if err != nil { + return err + } + tp.TroubleshootingProperties = &troubleshootingProperties + } + } + } + + return nil +} + +// TroubleshootingProperties storage location provided for troubleshoot. +type TroubleshootingProperties struct { + // StorageID - The ID for the storage account to save the troubleshoot result. + StorageID *string `json:"storageId,omitempty"` + // StoragePath - The path to the blob to save the troubleshoot result in. + StoragePath *string `json:"storagePath,omitempty"` +} + +// TroubleshootingRecommendedActions recommended actions based on discovered issues. +type TroubleshootingRecommendedActions struct { + // ActionID - ID of the recommended action. + ActionID *string `json:"actionId,omitempty"` + // ActionText - Description of recommended actions. + ActionText *string `json:"actionText,omitempty"` + // ActionURI - The uri linking to a documentation for the recommended troubleshooting actions. + ActionURI *string `json:"actionUri,omitempty"` + // ActionURIText - The information from the URI for the recommended troubleshooting actions. + ActionURIText *string `json:"actionUriText,omitempty"` +} + +// TroubleshootingResult troubleshooting information gained from specified resource. +type TroubleshootingResult struct { + autorest.Response `json:"-"` + // StartTime - The start time of the troubleshooting. + StartTime *date.Time `json:"startTime,omitempty"` + // EndTime - The end time of the troubleshooting. + EndTime *date.Time `json:"endTime,omitempty"` + // Code - The result code of the troubleshooting. + Code *string `json:"code,omitempty"` + // Results - Information from troubleshooting. + Results *[]TroubleshootingDetails `json:"results,omitempty"` +} + +// TunnelConnectionHealth virtualNetworkGatewayConnection properties. +type TunnelConnectionHealth struct { + // Tunnel - READ-ONLY; Tunnel name. + Tunnel *string `json:"tunnel,omitempty"` + // ConnectionStatus - READ-ONLY; Virtual Network Gateway connection status. Possible values include: 'VirtualNetworkGatewayConnectionStatusUnknown', 'VirtualNetworkGatewayConnectionStatusConnecting', 'VirtualNetworkGatewayConnectionStatusConnected', 'VirtualNetworkGatewayConnectionStatusNotConnected' + ConnectionStatus VirtualNetworkGatewayConnectionStatus `json:"connectionStatus,omitempty"` + // IngressBytesTransferred - READ-ONLY; The Ingress Bytes Transferred in this connection. + IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty"` + // EgressBytesTransferred - READ-ONLY; The Egress Bytes Transferred in this connection. + EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty"` + // LastConnectionEstablishedUtcTime - READ-ONLY; The time at which connection was established in Utc format. + LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` +} + +// UnprepareNetworkPoliciesRequest details of UnprepareNetworkPolicies for Subnet. +type UnprepareNetworkPoliciesRequest struct { + // ServiceName - The name of the service for which subnet is being unprepared for. + ServiceName *string `json:"serviceName,omitempty"` +} + +// Usage the network resource usage. +type Usage struct { + // ID - READ-ONLY; Resource identifier. + ID *string `json:"id,omitempty"` + // Unit - An enum describing the unit of measurement. + Unit *string `json:"unit,omitempty"` + // CurrentValue - The current value of the usage. + CurrentValue *int64 `json:"currentValue,omitempty"` + // Limit - The limit of usage. + Limit *int64 `json:"limit,omitempty"` + // Name - The name of the type of usage. + Name *UsageName `json:"name,omitempty"` +} + +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if u.Unit != nil { + objectMap["unit"] = u.Unit + } + if u.CurrentValue != nil { + objectMap["currentValue"] = u.CurrentValue + } + if u.Limit != nil { + objectMap["limit"] = u.Limit + } + if u.Name != nil { + objectMap["name"] = u.Name + } + return json.Marshal(objectMap) +} + +// UsageName the usage names. +type UsageName struct { + // Value - A string describing the resource name. + Value *string `json:"value,omitempty"` + // LocalizedValue - A localized string describing the resource name. + LocalizedValue *string `json:"localizedValue,omitempty"` +} + +// UsagesListResult the list usages operation response. +type UsagesListResult struct { + autorest.Response `json:"-"` + // Value - The list network resource usages. + Value *[]Usage `json:"value,omitempty"` + // NextLink - URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// UsagesListResultIterator provides access to a complete listing of Usage values. +type UsagesListResultIterator struct { + i int + page UsagesListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *UsagesListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/UsagesListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *UsagesListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter UsagesListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter UsagesListResultIterator) Response() UsagesListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter UsagesListResultIterator) Value() Usage { + if !iter.page.NotDone() { + return Usage{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the UsagesListResultIterator type. +func NewUsagesListResultIterator(page UsagesListResultPage) UsagesListResultIterator { + return UsagesListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (ulr UsagesListResult) IsEmpty() bool { + return ulr.Value == nil || len(*ulr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (ulr UsagesListResult) hasNextLink() bool { + return ulr.NextLink != nil && len(*ulr.NextLink) != 0 +} + +// usagesListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (ulr UsagesListResult) usagesListResultPreparer(ctx context.Context) (*http.Request, error) { + if !ulr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(ulr.NextLink))) +} + +// UsagesListResultPage contains a page of Usage values. +type UsagesListResultPage struct { + fn func(context.Context, UsagesListResult) (UsagesListResult, error) + ulr UsagesListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *UsagesListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/UsagesListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.ulr) + if err != nil { + return err + } + page.ulr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *UsagesListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page UsagesListResultPage) NotDone() bool { + return !page.ulr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page UsagesListResultPage) Response() UsagesListResult { + return page.ulr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page UsagesListResultPage) Values() []Usage { + if page.ulr.IsEmpty() { + return nil + } + return *page.ulr.Value +} + +// Creates a new instance of the UsagesListResultPage type. +func NewUsagesListResultPage(cur UsagesListResult, getNextPage func(context.Context, UsagesListResult) (UsagesListResult, error)) UsagesListResultPage { + return UsagesListResultPage{ + fn: getNextPage, + ulr: cur, + } +} + +// VerificationIPFlowParameters parameters that define the IP flow to be verified. +type VerificationIPFlowParameters struct { + // TargetResourceID - The ID of the target resource to perform next-hop on. + TargetResourceID *string `json:"targetResourceId,omitempty"` + // Direction - The direction of the packet represented as a 5-tuple. Possible values include: 'Inbound', 'Outbound' + Direction Direction `json:"direction,omitempty"` + // Protocol - Protocol to be verified on. Possible values include: 'IPFlowProtocolTCP', 'IPFlowProtocolUDP' + Protocol IPFlowProtocol `json:"protocol,omitempty"` + // LocalPort - The local port. Acceptable values are a single integer in the range (0-65535). Support for * for the source port, which depends on the direction. + LocalPort *string `json:"localPort,omitempty"` + // RemotePort - The remote port. Acceptable values are a single integer in the range (0-65535). Support for * for the source port, which depends on the direction. + RemotePort *string `json:"remotePort,omitempty"` + // LocalIPAddress - The local IP address. Acceptable values are valid IPv4 addresses. + LocalIPAddress *string `json:"localIPAddress,omitempty"` + // RemoteIPAddress - The remote IP address. Acceptable values are valid IPv4 addresses. + RemoteIPAddress *string `json:"remoteIPAddress,omitempty"` + // TargetNicResourceID - The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any of them, then this parameter must be specified. Otherwise optional). + TargetNicResourceID *string `json:"targetNicResourceId,omitempty"` +} + +// VerificationIPFlowResult results of IP flow verification on the target resource. +type VerificationIPFlowResult struct { + autorest.Response `json:"-"` + // Access - Indicates whether the traffic is allowed or denied. Possible values include: 'Allow', 'Deny' + Access Access `json:"access,omitempty"` + // RuleName - Name of the rule. If input is not matched against any security rule, it is not displayed. + RuleName *string `json:"ruleName,omitempty"` +} + +// VirtualAppliance networkVirtualAppliance Resource. +type VirtualAppliance struct { + autorest.Response `json:"-"` + // VirtualAppliancePropertiesFormat - Properties of the Network Virtual Appliance. + *VirtualAppliancePropertiesFormat `json:"properties,omitempty"` + // Identity - The service principal that has read access to cloud-init and config blob. + Identity *ManagedServiceIdentity `json:"identity,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for VirtualAppliance. +func (va VirtualAppliance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if va.VirtualAppliancePropertiesFormat != nil { + objectMap["properties"] = va.VirtualAppliancePropertiesFormat + } + if va.Identity != nil { + objectMap["identity"] = va.Identity + } + if va.ID != nil { + objectMap["id"] = va.ID + } + if va.Location != nil { + objectMap["location"] = va.Location + } + if va.Tags != nil { + objectMap["tags"] = va.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for VirtualAppliance struct. +func (va *VirtualAppliance) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var virtualAppliancePropertiesFormat VirtualAppliancePropertiesFormat + err = json.Unmarshal(*v, &virtualAppliancePropertiesFormat) + if err != nil { + return err + } + va.VirtualAppliancePropertiesFormat = &virtualAppliancePropertiesFormat + } + case "identity": + if v != nil { + var identity ManagedServiceIdentity + err = json.Unmarshal(*v, &identity) + if err != nil { + return err + } + va.Identity = &identity + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + va.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + va.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + va.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + va.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + va.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + va.Tags = tags + } + } + } + + return nil +} + +// VirtualApplianceListResult response for ListNetworkVirtualAppliances API service call. +type VirtualApplianceListResult struct { + autorest.Response `json:"-"` + // Value - List of Network Virtual Appliances. + Value *[]VirtualAppliance `json:"value,omitempty"` + // NextLink - URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// VirtualApplianceListResultIterator provides access to a complete listing of VirtualAppliance values. +type VirtualApplianceListResultIterator struct { + i int + page VirtualApplianceListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *VirtualApplianceListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualApplianceListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *VirtualApplianceListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter VirtualApplianceListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter VirtualApplianceListResultIterator) Response() VirtualApplianceListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter VirtualApplianceListResultIterator) Value() VirtualAppliance { + if !iter.page.NotDone() { + return VirtualAppliance{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the VirtualApplianceListResultIterator type. +func NewVirtualApplianceListResultIterator(page VirtualApplianceListResultPage) VirtualApplianceListResultIterator { + return VirtualApplianceListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (valr VirtualApplianceListResult) IsEmpty() bool { + return valr.Value == nil || len(*valr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (valr VirtualApplianceListResult) hasNextLink() bool { + return valr.NextLink != nil && len(*valr.NextLink) != 0 +} + +// virtualApplianceListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (valr VirtualApplianceListResult) virtualApplianceListResultPreparer(ctx context.Context) (*http.Request, error) { + if !valr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(valr.NextLink))) +} + +// VirtualApplianceListResultPage contains a page of VirtualAppliance values. +type VirtualApplianceListResultPage struct { + fn func(context.Context, VirtualApplianceListResult) (VirtualApplianceListResult, error) + valr VirtualApplianceListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *VirtualApplianceListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualApplianceListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.valr) + if err != nil { + return err + } + page.valr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *VirtualApplianceListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page VirtualApplianceListResultPage) NotDone() bool { + return !page.valr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page VirtualApplianceListResultPage) Response() VirtualApplianceListResult { + return page.valr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page VirtualApplianceListResultPage) Values() []VirtualAppliance { + if page.valr.IsEmpty() { + return nil + } + return *page.valr.Value +} + +// Creates a new instance of the VirtualApplianceListResultPage type. +func NewVirtualApplianceListResultPage(cur VirtualApplianceListResult, getNextPage func(context.Context, VirtualApplianceListResult) (VirtualApplianceListResult, error)) VirtualApplianceListResultPage { + return VirtualApplianceListResultPage{ + fn: getNextPage, + valr: cur, + } +} + +// VirtualApplianceNicProperties network Virtual Appliance NIC properties. +type VirtualApplianceNicProperties struct { + // Name - READ-ONLY; NIC name. + Name *string `json:"name,omitempty"` + // PublicIPAddress - READ-ONLY; Public IP address. + PublicIPAddress *string `json:"publicIpAddress,omitempty"` + // PrivateIPAddress - READ-ONLY; Private IP address. + PrivateIPAddress *string `json:"privateIpAddress,omitempty"` +} + +// VirtualAppliancePropertiesFormat network Virtual Appliance definition. +type VirtualAppliancePropertiesFormat struct { + // NvaSku - Network Virtual Appliance SKU. + NvaSku *VirtualApplianceSkuProperties `json:"nvaSku,omitempty"` + // AddressPrefix - READ-ONLY; Address Prefix. + AddressPrefix *string `json:"addressPrefix,omitempty"` + // BootStrapConfigurationBlobs - BootStrapConfigurationBlobs storage URLs. + BootStrapConfigurationBlobs *[]string `json:"bootStrapConfigurationBlobs,omitempty"` + // VirtualHub - The Virtual Hub where Network Virtual Appliance is being deployed. + VirtualHub *SubResource `json:"virtualHub,omitempty"` + // CloudInitConfigurationBlobs - CloudInitConfigurationBlob storage URLs. + CloudInitConfigurationBlobs *[]string `json:"cloudInitConfigurationBlobs,omitempty"` + // CloudInitConfiguration - CloudInitConfiguration string in plain text. + CloudInitConfiguration *string `json:"cloudInitConfiguration,omitempty"` + // VirtualApplianceAsn - VirtualAppliance ASN. + VirtualApplianceAsn *int64 `json:"virtualApplianceAsn,omitempty"` + // VirtualApplianceNics - READ-ONLY; List of Virtual Appliance Network Interfaces. + VirtualApplianceNics *[]VirtualApplianceNicProperties `json:"virtualApplianceNics,omitempty"` + // VirtualApplianceSites - READ-ONLY; List of references to VirtualApplianceSite. + VirtualApplianceSites *[]SubResource `json:"virtualApplianceSites,omitempty"` + // InboundSecurityRules - READ-ONLY; List of references to InboundSecurityRules. + InboundSecurityRules *[]SubResource `json:"inboundSecurityRules,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualAppliancePropertiesFormat. +func (vapf VirtualAppliancePropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vapf.NvaSku != nil { + objectMap["nvaSku"] = vapf.NvaSku + } + if vapf.BootStrapConfigurationBlobs != nil { + objectMap["bootStrapConfigurationBlobs"] = vapf.BootStrapConfigurationBlobs + } + if vapf.VirtualHub != nil { + objectMap["virtualHub"] = vapf.VirtualHub + } + if vapf.CloudInitConfigurationBlobs != nil { + objectMap["cloudInitConfigurationBlobs"] = vapf.CloudInitConfigurationBlobs + } + if vapf.CloudInitConfiguration != nil { + objectMap["cloudInitConfiguration"] = vapf.CloudInitConfiguration + } + if vapf.VirtualApplianceAsn != nil { + objectMap["virtualApplianceAsn"] = vapf.VirtualApplianceAsn + } + return json.Marshal(objectMap) +} + +// VirtualAppliancesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VirtualAppliancesCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualAppliancesCreateOrUpdateFuture) Result(client VirtualAppliancesClient) (va VirtualAppliance, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualAppliancesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualAppliancesCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if va.Response.Response, err = future.GetResult(sender); err == nil && va.Response.Response.StatusCode != http.StatusNoContent { + va, err = client.CreateOrUpdateResponder(va.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualAppliancesCreateOrUpdateFuture", "Result", va.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualAppliancesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type VirtualAppliancesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualAppliancesDeleteFuture) Result(client VirtualAppliancesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualAppliancesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualAppliancesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// VirtualApplianceSite virtual Appliance Site resource. +type VirtualApplianceSite struct { + autorest.Response `json:"-"` + // VirtualApplianceSiteProperties - The properties of the Virtual Appliance Sites. + *VirtualApplianceSiteProperties `json:"properties,omitempty"` + // Name - Name of the virtual appliance site. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Site type. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualApplianceSite. +func (vas VirtualApplianceSite) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vas.VirtualApplianceSiteProperties != nil { + objectMap["properties"] = vas.VirtualApplianceSiteProperties + } + if vas.Name != nil { + objectMap["name"] = vas.Name + } + if vas.ID != nil { + objectMap["id"] = vas.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for VirtualApplianceSite struct. +func (vas *VirtualApplianceSite) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var virtualApplianceSiteProperties VirtualApplianceSiteProperties + err = json.Unmarshal(*v, &virtualApplianceSiteProperties) + if err != nil { + return err + } + vas.VirtualApplianceSiteProperties = &virtualApplianceSiteProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + vas.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + vas.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + vas.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + vas.ID = &ID + } + } + } + + return nil +} + +// VirtualApplianceSiteListResult response for ListNetworkVirtualApplianceSites API service call. +type VirtualApplianceSiteListResult struct { + autorest.Response `json:"-"` + // Value - List of Network Virtual Appliance sites. + Value *[]VirtualApplianceSite `json:"value,omitempty"` + // NextLink - URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// VirtualApplianceSiteListResultIterator provides access to a complete listing of VirtualApplianceSite +// values. +type VirtualApplianceSiteListResultIterator struct { + i int + page VirtualApplianceSiteListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *VirtualApplianceSiteListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualApplianceSiteListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *VirtualApplianceSiteListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter VirtualApplianceSiteListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter VirtualApplianceSiteListResultIterator) Response() VirtualApplianceSiteListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter VirtualApplianceSiteListResultIterator) Value() VirtualApplianceSite { + if !iter.page.NotDone() { + return VirtualApplianceSite{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the VirtualApplianceSiteListResultIterator type. +func NewVirtualApplianceSiteListResultIterator(page VirtualApplianceSiteListResultPage) VirtualApplianceSiteListResultIterator { + return VirtualApplianceSiteListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (vaslr VirtualApplianceSiteListResult) IsEmpty() bool { + return vaslr.Value == nil || len(*vaslr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (vaslr VirtualApplianceSiteListResult) hasNextLink() bool { + return vaslr.NextLink != nil && len(*vaslr.NextLink) != 0 +} + +// virtualApplianceSiteListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (vaslr VirtualApplianceSiteListResult) virtualApplianceSiteListResultPreparer(ctx context.Context) (*http.Request, error) { + if !vaslr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(vaslr.NextLink))) +} + +// VirtualApplianceSiteListResultPage contains a page of VirtualApplianceSite values. +type VirtualApplianceSiteListResultPage struct { + fn func(context.Context, VirtualApplianceSiteListResult) (VirtualApplianceSiteListResult, error) + vaslr VirtualApplianceSiteListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *VirtualApplianceSiteListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualApplianceSiteListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.vaslr) + if err != nil { + return err + } + page.vaslr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *VirtualApplianceSiteListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page VirtualApplianceSiteListResultPage) NotDone() bool { + return !page.vaslr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page VirtualApplianceSiteListResultPage) Response() VirtualApplianceSiteListResult { + return page.vaslr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page VirtualApplianceSiteListResultPage) Values() []VirtualApplianceSite { + if page.vaslr.IsEmpty() { + return nil + } + return *page.vaslr.Value +} + +// Creates a new instance of the VirtualApplianceSiteListResultPage type. +func NewVirtualApplianceSiteListResultPage(cur VirtualApplianceSiteListResult, getNextPage func(context.Context, VirtualApplianceSiteListResult) (VirtualApplianceSiteListResult, error)) VirtualApplianceSiteListResultPage { + return VirtualApplianceSiteListResultPage{ + fn: getNextPage, + vaslr: cur, + } +} + +// VirtualApplianceSiteProperties properties of the rule group. +type VirtualApplianceSiteProperties struct { + // AddressPrefix - Address Prefix. + AddressPrefix *string `json:"addressPrefix,omitempty"` + // O365Policy - Office 365 Policy. + O365Policy *Office365PolicyProperties `json:"o365Policy,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualApplianceSiteProperties. +func (vasp VirtualApplianceSiteProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vasp.AddressPrefix != nil { + objectMap["addressPrefix"] = vasp.AddressPrefix + } + if vasp.O365Policy != nil { + objectMap["o365Policy"] = vasp.O365Policy + } + return json.Marshal(objectMap) +} + +// VirtualApplianceSitesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VirtualApplianceSitesCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualApplianceSitesCreateOrUpdateFuture) Result(client VirtualApplianceSitesClient) (vas VirtualApplianceSite, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualApplianceSitesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualApplianceSitesCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vas.Response.Response, err = future.GetResult(sender); err == nil && vas.Response.Response.StatusCode != http.StatusNoContent { + vas, err = client.CreateOrUpdateResponder(vas.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualApplianceSitesCreateOrUpdateFuture", "Result", vas.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualApplianceSitesDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VirtualApplianceSitesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualApplianceSitesDeleteFuture) Result(client VirtualApplianceSitesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualApplianceSitesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualApplianceSitesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// VirtualApplianceSku definition of the NetworkVirtualApplianceSkus resource. +type VirtualApplianceSku struct { + autorest.Response `json:"-"` + // VirtualApplianceSkuPropertiesFormat - NetworkVirtualApplianceSku properties. + *VirtualApplianceSkuPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for VirtualApplianceSku. +func (vas VirtualApplianceSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vas.VirtualApplianceSkuPropertiesFormat != nil { + objectMap["properties"] = vas.VirtualApplianceSkuPropertiesFormat + } + if vas.ID != nil { + objectMap["id"] = vas.ID + } + if vas.Location != nil { + objectMap["location"] = vas.Location + } + if vas.Tags != nil { + objectMap["tags"] = vas.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for VirtualApplianceSku struct. +func (vas *VirtualApplianceSku) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var virtualApplianceSkuPropertiesFormat VirtualApplianceSkuPropertiesFormat + err = json.Unmarshal(*v, &virtualApplianceSkuPropertiesFormat) + if err != nil { + return err + } + vas.VirtualApplianceSkuPropertiesFormat = &virtualApplianceSkuPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + vas.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + vas.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + vas.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + vas.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + vas.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + vas.Tags = tags + } + } + } + + return nil +} + +// VirtualApplianceSkuInstances list of available Sku and instances. +type VirtualApplianceSkuInstances struct { + // ScaleUnit - READ-ONLY; Scale Unit. + ScaleUnit *string `json:"scaleUnit,omitempty"` + // InstanceCount - READ-ONLY; Instance Count. + InstanceCount *int32 `json:"instanceCount,omitempty"` +} + +// VirtualApplianceSkuListResult response for ListNetworkVirtualApplianceSkus API service call. +type VirtualApplianceSkuListResult struct { + autorest.Response `json:"-"` + // Value - List of Network Virtual Appliance Skus that are available. + Value *[]VirtualApplianceSku `json:"value,omitempty"` + // NextLink - URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// VirtualApplianceSkuListResultIterator provides access to a complete listing of VirtualApplianceSku +// values. +type VirtualApplianceSkuListResultIterator struct { + i int + page VirtualApplianceSkuListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *VirtualApplianceSkuListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualApplianceSkuListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *VirtualApplianceSkuListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter VirtualApplianceSkuListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter VirtualApplianceSkuListResultIterator) Response() VirtualApplianceSkuListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter VirtualApplianceSkuListResultIterator) Value() VirtualApplianceSku { + if !iter.page.NotDone() { + return VirtualApplianceSku{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the VirtualApplianceSkuListResultIterator type. +func NewVirtualApplianceSkuListResultIterator(page VirtualApplianceSkuListResultPage) VirtualApplianceSkuListResultIterator { + return VirtualApplianceSkuListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (vaslr VirtualApplianceSkuListResult) IsEmpty() bool { + return vaslr.Value == nil || len(*vaslr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (vaslr VirtualApplianceSkuListResult) hasNextLink() bool { + return vaslr.NextLink != nil && len(*vaslr.NextLink) != 0 +} + +// virtualApplianceSkuListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (vaslr VirtualApplianceSkuListResult) virtualApplianceSkuListResultPreparer(ctx context.Context) (*http.Request, error) { + if !vaslr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(vaslr.NextLink))) +} + +// VirtualApplianceSkuListResultPage contains a page of VirtualApplianceSku values. +type VirtualApplianceSkuListResultPage struct { + fn func(context.Context, VirtualApplianceSkuListResult) (VirtualApplianceSkuListResult, error) + vaslr VirtualApplianceSkuListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *VirtualApplianceSkuListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualApplianceSkuListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.vaslr) + if err != nil { + return err + } + page.vaslr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *VirtualApplianceSkuListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page VirtualApplianceSkuListResultPage) NotDone() bool { + return !page.vaslr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page VirtualApplianceSkuListResultPage) Response() VirtualApplianceSkuListResult { + return page.vaslr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page VirtualApplianceSkuListResultPage) Values() []VirtualApplianceSku { + if page.vaslr.IsEmpty() { + return nil + } + return *page.vaslr.Value +} + +// Creates a new instance of the VirtualApplianceSkuListResultPage type. +func NewVirtualApplianceSkuListResultPage(cur VirtualApplianceSkuListResult, getNextPage func(context.Context, VirtualApplianceSkuListResult) (VirtualApplianceSkuListResult, error)) VirtualApplianceSkuListResultPage { + return VirtualApplianceSkuListResultPage{ + fn: getNextPage, + vaslr: cur, + } +} + +// VirtualApplianceSkuProperties network Virtual Appliance Sku Properties. +type VirtualApplianceSkuProperties struct { + // Vendor - Virtual Appliance Vendor. + Vendor *string `json:"vendor,omitempty"` + // BundledScaleUnit - Virtual Appliance Scale Unit. + BundledScaleUnit *string `json:"bundledScaleUnit,omitempty"` + // MarketPlaceVersion - Virtual Appliance Version. + MarketPlaceVersion *string `json:"marketPlaceVersion,omitempty"` +} + +// VirtualApplianceSkuPropertiesFormat properties specific to NetworkVirtualApplianceSkus. +type VirtualApplianceSkuPropertiesFormat struct { + // Vendor - READ-ONLY; Network Virtual Appliance Sku vendor. + Vendor *string `json:"vendor,omitempty"` + // AvailableVersions - READ-ONLY; Available Network Virtual Appliance versions. + AvailableVersions *[]string `json:"availableVersions,omitempty"` + // AvailableScaleUnits - The list of scale units available. + AvailableScaleUnits *[]VirtualApplianceSkuInstances `json:"availableScaleUnits,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualApplianceSkuPropertiesFormat. +func (vaspf VirtualApplianceSkuPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vaspf.AvailableScaleUnits != nil { + objectMap["availableScaleUnits"] = vaspf.AvailableScaleUnits + } + return json.Marshal(objectMap) +} + +// VirtualHub virtualHub Resource. +type VirtualHub struct { + autorest.Response `json:"-"` + // VirtualHubProperties - Properties of the virtual hub. + *VirtualHubProperties `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for VirtualHub. +func (vh VirtualHub) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vh.VirtualHubProperties != nil { + objectMap["properties"] = vh.VirtualHubProperties + } + if vh.ID != nil { + objectMap["id"] = vh.ID + } + if vh.Location != nil { + objectMap["location"] = vh.Location + } + if vh.Tags != nil { + objectMap["tags"] = vh.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for VirtualHub struct. +func (vh *VirtualHub) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var virtualHubProperties VirtualHubProperties + err = json.Unmarshal(*v, &virtualHubProperties) + if err != nil { + return err + } + vh.VirtualHubProperties = &virtualHubProperties + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + vh.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + vh.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + vh.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + vh.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + vh.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + vh.Tags = tags + } + } + } + + return nil +} + +// VirtualHubBgpConnectionCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of +// a long-running operation. +type VirtualHubBgpConnectionCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualHubBgpConnectionCreateOrUpdateFuture) Result(client VirtualHubBgpConnectionClient) (bc BgpConnection, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualHubBgpConnectionCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if bc.Response.Response, err = future.GetResult(sender); err == nil && bc.Response.Response.StatusCode != http.StatusNoContent { + bc, err = client.CreateOrUpdateResponder(bc.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionCreateOrUpdateFuture", "Result", bc.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualHubBgpConnectionDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VirtualHubBgpConnectionDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualHubBgpConnectionDeleteFuture) Result(client VirtualHubBgpConnectionClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualHubBgpConnectionDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// VirtualHubBgpConnectionsListAdvertisedRoutesFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type VirtualHubBgpConnectionsListAdvertisedRoutesFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualHubBgpConnectionsListAdvertisedRoutesFuture) Result(client VirtualHubBgpConnectionsClient) (prl PeerRouteList, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionsListAdvertisedRoutesFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualHubBgpConnectionsListAdvertisedRoutesFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if prl.Response.Response, err = future.GetResult(sender); err == nil && prl.Response.Response.StatusCode != http.StatusNoContent { + prl, err = client.ListAdvertisedRoutesResponder(prl.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionsListAdvertisedRoutesFuture", "Result", prl.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualHubBgpConnectionsListLearnedRoutesFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type VirtualHubBgpConnectionsListLearnedRoutesFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualHubBgpConnectionsListLearnedRoutesFuture) Result(client VirtualHubBgpConnectionsClient) (prl PeerRouteList, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionsListLearnedRoutesFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualHubBgpConnectionsListLearnedRoutesFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if prl.Response.Response, err = future.GetResult(sender); err == nil && prl.Response.Response.StatusCode != http.StatusNoContent { + prl, err = client.ListLearnedRoutesResponder(prl.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionsListLearnedRoutesFuture", "Result", prl.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualHubEffectiveRoute the effective route configured on the virtual hub or specified resource. +type VirtualHubEffectiveRoute struct { + // AddressPrefixes - The list of address prefixes. + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + // NextHops - The list of next hops. + NextHops *[]string `json:"nextHops,omitempty"` + // NextHopType - The type of the next hop. + NextHopType *string `json:"nextHopType,omitempty"` + // AsPath - The ASPath of this route. + AsPath *string `json:"asPath,omitempty"` + // RouteOrigin - The origin of this route. + RouteOrigin *string `json:"routeOrigin,omitempty"` +} + +// VirtualHubEffectiveRouteList effectiveRoutes List. +type VirtualHubEffectiveRouteList struct { + // Value - The list of effective routes configured on the virtual hub or the specified resource. + Value *[]VirtualHubEffectiveRoute `json:"value,omitempty"` +} + +// VirtualHubID virtual Hub identifier. +type VirtualHubID struct { + // ID - The resource URI for the Virtual Hub where the ExpressRoute gateway is or will be deployed. The Virtual Hub resource and the ExpressRoute gateway resource reside in the same subscription. + ID *string `json:"id,omitempty"` +} + +// VirtualHubIPConfigurationCreateOrUpdateFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type VirtualHubIPConfigurationCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualHubIPConfigurationCreateOrUpdateFuture) Result(client VirtualHubIPConfigurationClient) (hic HubIPConfiguration, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubIPConfigurationCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualHubIPConfigurationCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if hic.Response.Response, err = future.GetResult(sender); err == nil && hic.Response.Response.StatusCode != http.StatusNoContent { + hic, err = client.CreateOrUpdateResponder(hic.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubIPConfigurationCreateOrUpdateFuture", "Result", hic.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualHubIPConfigurationDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VirtualHubIPConfigurationDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualHubIPConfigurationDeleteFuture) Result(client VirtualHubIPConfigurationClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubIPConfigurationDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualHubIPConfigurationDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// VirtualHubProperties parameters for VirtualHub. +type VirtualHubProperties struct { + // VirtualWan - The VirtualWAN to which the VirtualHub belongs. + VirtualWan *SubResource `json:"virtualWan,omitempty"` + // VpnGateway - The VpnGateway associated with this VirtualHub. + VpnGateway *SubResource `json:"vpnGateway,omitempty"` + // P2SVpnGateway - The P2SVpnGateway associated with this VirtualHub. + P2SVpnGateway *SubResource `json:"p2SVpnGateway,omitempty"` + // ExpressRouteGateway - The expressRouteGateway associated with this VirtualHub. + ExpressRouteGateway *SubResource `json:"expressRouteGateway,omitempty"` + // AzureFirewall - The azureFirewall associated with this VirtualHub. + AzureFirewall *SubResource `json:"azureFirewall,omitempty"` + // SecurityPartnerProvider - The securityPartnerProvider associated with this VirtualHub. + SecurityPartnerProvider *SubResource `json:"securityPartnerProvider,omitempty"` + // AddressPrefix - Address-prefix for this VirtualHub. + AddressPrefix *string `json:"addressPrefix,omitempty"` + // RouteTable - The routeTable associated with this virtual hub. + RouteTable *VirtualHubRouteTable `json:"routeTable,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the virtual hub resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // SecurityProviderName - The Security Provider name. + SecurityProviderName *string `json:"securityProviderName,omitempty"` + // VirtualHubRouteTableV2s - List of all virtual hub route table v2s associated with this VirtualHub. + VirtualHubRouteTableV2s *[]VirtualHubRouteTableV2 `json:"virtualHubRouteTableV2s,omitempty"` + // Sku - The sku of this VirtualHub. + Sku *string `json:"sku,omitempty"` + // RoutingState - The routing state. Possible values include: 'RoutingStateNone', 'RoutingStateProvisioned', 'RoutingStateProvisioning', 'RoutingStateFailed' + RoutingState RoutingState `json:"routingState,omitempty"` + // BgpConnections - READ-ONLY; List of references to Bgp Connections. + BgpConnections *[]SubResource `json:"bgpConnections,omitempty"` + // IPConfigurations - READ-ONLY; List of references to IpConfigurations. + IPConfigurations *[]SubResource `json:"ipConfigurations,omitempty"` + // VirtualRouterAsn - VirtualRouter ASN. + VirtualRouterAsn *int64 `json:"virtualRouterAsn,omitempty"` + // VirtualRouterIps - VirtualRouter IPs. + VirtualRouterIps *[]string `json:"virtualRouterIps,omitempty"` + // AllowBranchToBranchTraffic - Flag to control transit for VirtualRouter hub. + AllowBranchToBranchTraffic *bool `json:"allowBranchToBranchTraffic,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualHubProperties. +func (vhp VirtualHubProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vhp.VirtualWan != nil { + objectMap["virtualWan"] = vhp.VirtualWan + } + if vhp.VpnGateway != nil { + objectMap["vpnGateway"] = vhp.VpnGateway + } + if vhp.P2SVpnGateway != nil { + objectMap["p2SVpnGateway"] = vhp.P2SVpnGateway + } + if vhp.ExpressRouteGateway != nil { + objectMap["expressRouteGateway"] = vhp.ExpressRouteGateway + } + if vhp.AzureFirewall != nil { + objectMap["azureFirewall"] = vhp.AzureFirewall + } + if vhp.SecurityPartnerProvider != nil { + objectMap["securityPartnerProvider"] = vhp.SecurityPartnerProvider + } + if vhp.AddressPrefix != nil { + objectMap["addressPrefix"] = vhp.AddressPrefix + } + if vhp.RouteTable != nil { + objectMap["routeTable"] = vhp.RouteTable + } + if vhp.SecurityProviderName != nil { + objectMap["securityProviderName"] = vhp.SecurityProviderName + } + if vhp.VirtualHubRouteTableV2s != nil { + objectMap["virtualHubRouteTableV2s"] = vhp.VirtualHubRouteTableV2s + } + if vhp.Sku != nil { + objectMap["sku"] = vhp.Sku + } + if vhp.RoutingState != "" { + objectMap["routingState"] = vhp.RoutingState + } + if vhp.VirtualRouterAsn != nil { + objectMap["virtualRouterAsn"] = vhp.VirtualRouterAsn + } + if vhp.VirtualRouterIps != nil { + objectMap["virtualRouterIps"] = vhp.VirtualRouterIps + } + if vhp.AllowBranchToBranchTraffic != nil { + objectMap["allowBranchToBranchTraffic"] = vhp.AllowBranchToBranchTraffic + } + return json.Marshal(objectMap) +} + +// VirtualHubRoute virtualHub route. +type VirtualHubRoute struct { + // AddressPrefixes - List of all addressPrefixes. + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + // NextHopIPAddress - NextHop ip address. + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` +} + +// VirtualHubRouteTable virtualHub route table. +type VirtualHubRouteTable struct { + // Routes - List of all routes. + Routes *[]VirtualHubRoute `json:"routes,omitempty"` +} + +// VirtualHubRouteTableV2 virtualHubRouteTableV2 Resource. +type VirtualHubRouteTableV2 struct { + autorest.Response `json:"-"` + // VirtualHubRouteTableV2Properties - Properties of the virtual hub route table v2. + *VirtualHubRouteTableV2Properties `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualHubRouteTableV2. +func (vhrtv VirtualHubRouteTableV2) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vhrtv.VirtualHubRouteTableV2Properties != nil { + objectMap["properties"] = vhrtv.VirtualHubRouteTableV2Properties + } + if vhrtv.Name != nil { + objectMap["name"] = vhrtv.Name + } + if vhrtv.ID != nil { + objectMap["id"] = vhrtv.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for VirtualHubRouteTableV2 struct. +func (vhrtv *VirtualHubRouteTableV2) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var virtualHubRouteTableV2Properties VirtualHubRouteTableV2Properties + err = json.Unmarshal(*v, &virtualHubRouteTableV2Properties) + if err != nil { + return err + } + vhrtv.VirtualHubRouteTableV2Properties = &virtualHubRouteTableV2Properties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + vhrtv.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + vhrtv.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + vhrtv.ID = &ID + } + } + } + + return nil +} + +// VirtualHubRouteTableV2Properties parameters for VirtualHubRouteTableV2. +type VirtualHubRouteTableV2Properties struct { + // Routes - List of all routes. + Routes *[]VirtualHubRouteV2 `json:"routes,omitempty"` + // AttachedConnections - List of all connections attached to this route table v2. + AttachedConnections *[]string `json:"attachedConnections,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the virtual hub route table v2 resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualHubRouteTableV2Properties. +func (vhrtvp VirtualHubRouteTableV2Properties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vhrtvp.Routes != nil { + objectMap["routes"] = vhrtvp.Routes + } + if vhrtvp.AttachedConnections != nil { + objectMap["attachedConnections"] = vhrtvp.AttachedConnections + } + return json.Marshal(objectMap) +} + +// VirtualHubRouteTableV2sCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of +// a long-running operation. +type VirtualHubRouteTableV2sCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualHubRouteTableV2sCreateOrUpdateFuture) Result(client VirtualHubRouteTableV2sClient) (vhrtv VirtualHubRouteTableV2, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualHubRouteTableV2sCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vhrtv.Response.Response, err = future.GetResult(sender); err == nil && vhrtv.Response.Response.StatusCode != http.StatusNoContent { + vhrtv, err = client.CreateOrUpdateResponder(vhrtv.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sCreateOrUpdateFuture", "Result", vhrtv.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualHubRouteTableV2sDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VirtualHubRouteTableV2sDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualHubRouteTableV2sDeleteFuture) Result(client VirtualHubRouteTableV2sClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualHubRouteTableV2sDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// VirtualHubRouteV2 virtualHubRouteTableV2 route. +type VirtualHubRouteV2 struct { + // DestinationType - The type of destinations. + DestinationType *string `json:"destinationType,omitempty"` + // Destinations - List of all destinations. + Destinations *[]string `json:"destinations,omitempty"` + // NextHopType - The type of next hops. + NextHopType *string `json:"nextHopType,omitempty"` + // NextHops - NextHops ip address. + NextHops *[]string `json:"nextHops,omitempty"` +} + +// VirtualHubsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VirtualHubsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualHubsCreateOrUpdateFuture) Result(client VirtualHubsClient) (vh VirtualHub, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualHubsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vh.Response.Response, err = future.GetResult(sender); err == nil && vh.Response.Response.StatusCode != http.StatusNoContent { + vh, err = client.CreateOrUpdateResponder(vh.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubsCreateOrUpdateFuture", "Result", vh.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualHubsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type VirtualHubsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualHubsDeleteFuture) Result(client VirtualHubsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualHubsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// VirtualHubsGetEffectiveVirtualHubRoutesFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type VirtualHubsGetEffectiveVirtualHubRoutesFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualHubsGetEffectiveVirtualHubRoutesFuture) Result(client VirtualHubsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubsGetEffectiveVirtualHubRoutesFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualHubsGetEffectiveVirtualHubRoutesFuture") + return + } + ar.Response = future.Response() + return +} + +// VirtualNetwork virtual Network resource. +type VirtualNetwork struct { + autorest.Response `json:"-"` + // ExtendedLocation - The extended location of the virtual network. + ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + // VirtualNetworkPropertiesFormat - Properties of the virtual network. + *VirtualNetworkPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for VirtualNetwork. +func (vn VirtualNetwork) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vn.ExtendedLocation != nil { + objectMap["extendedLocation"] = vn.ExtendedLocation + } + if vn.VirtualNetworkPropertiesFormat != nil { + objectMap["properties"] = vn.VirtualNetworkPropertiesFormat + } + if vn.ID != nil { + objectMap["id"] = vn.ID + } + if vn.Location != nil { + objectMap["location"] = vn.Location + } + if vn.Tags != nil { + objectMap["tags"] = vn.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for VirtualNetwork struct. +func (vn *VirtualNetwork) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "extendedLocation": + if v != nil { + var extendedLocation ExtendedLocation + err = json.Unmarshal(*v, &extendedLocation) + if err != nil { + return err + } + vn.ExtendedLocation = &extendedLocation + } + case "properties": + if v != nil { + var virtualNetworkPropertiesFormat VirtualNetworkPropertiesFormat + err = json.Unmarshal(*v, &virtualNetworkPropertiesFormat) + if err != nil { + return err + } + vn.VirtualNetworkPropertiesFormat = &virtualNetworkPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + vn.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + vn.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + vn.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + vn.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + vn.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + vn.Tags = tags + } + } + } + + return nil +} + +// VirtualNetworkBgpCommunities bgp Communities sent over ExpressRoute with each route corresponding to a +// prefix in this VNET. +type VirtualNetworkBgpCommunities struct { + // VirtualNetworkCommunity - The BGP community associated with the virtual network. + VirtualNetworkCommunity *string `json:"virtualNetworkCommunity,omitempty"` + // RegionalCommunity - READ-ONLY; The BGP community associated with the region of the virtual network. + RegionalCommunity *string `json:"regionalCommunity,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualNetworkBgpCommunities. +func (vnbc VirtualNetworkBgpCommunities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vnbc.VirtualNetworkCommunity != nil { + objectMap["virtualNetworkCommunity"] = vnbc.VirtualNetworkCommunity + } + return json.Marshal(objectMap) +} + +// VirtualNetworkConnectionGatewayReference a reference to VirtualNetworkGateway or LocalNetworkGateway +// resource. +type VirtualNetworkConnectionGatewayReference struct { + // ID - The ID of VirtualNetworkGateway or LocalNetworkGateway resource. + ID *string `json:"id,omitempty"` +} + +// VirtualNetworkGateway a common class for general resource information. +type VirtualNetworkGateway struct { + autorest.Response `json:"-"` + // VirtualNetworkGatewayPropertiesFormat - Properties of the virtual network gateway. + *VirtualNetworkGatewayPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for VirtualNetworkGateway. +func (vng VirtualNetworkGateway) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vng.VirtualNetworkGatewayPropertiesFormat != nil { + objectMap["properties"] = vng.VirtualNetworkGatewayPropertiesFormat + } + if vng.ID != nil { + objectMap["id"] = vng.ID + } + if vng.Location != nil { + objectMap["location"] = vng.Location + } + if vng.Tags != nil { + objectMap["tags"] = vng.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for VirtualNetworkGateway struct. +func (vng *VirtualNetworkGateway) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var virtualNetworkGatewayPropertiesFormat VirtualNetworkGatewayPropertiesFormat + err = json.Unmarshal(*v, &virtualNetworkGatewayPropertiesFormat) + if err != nil { + return err + } + vng.VirtualNetworkGatewayPropertiesFormat = &virtualNetworkGatewayPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + vng.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + vng.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + vng.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + vng.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + vng.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + vng.Tags = tags + } + } + } + + return nil +} + +// VirtualNetworkGatewayConnection a common class for general resource information. +type VirtualNetworkGatewayConnection struct { + autorest.Response `json:"-"` + // VirtualNetworkGatewayConnectionPropertiesFormat - Properties of the virtual network gateway connection. + *VirtualNetworkGatewayConnectionPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for VirtualNetworkGatewayConnection. +func (vngc VirtualNetworkGatewayConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vngc.VirtualNetworkGatewayConnectionPropertiesFormat != nil { + objectMap["properties"] = vngc.VirtualNetworkGatewayConnectionPropertiesFormat + } + if vngc.ID != nil { + objectMap["id"] = vngc.ID + } + if vngc.Location != nil { + objectMap["location"] = vngc.Location + } + if vngc.Tags != nil { + objectMap["tags"] = vngc.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for VirtualNetworkGatewayConnection struct. +func (vngc *VirtualNetworkGatewayConnection) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var virtualNetworkGatewayConnectionPropertiesFormat VirtualNetworkGatewayConnectionPropertiesFormat + err = json.Unmarshal(*v, &virtualNetworkGatewayConnectionPropertiesFormat) + if err != nil { + return err + } + vngc.VirtualNetworkGatewayConnectionPropertiesFormat = &virtualNetworkGatewayConnectionPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + vngc.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + vngc.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + vngc.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + vngc.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + vngc.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + vngc.Tags = tags + } + } + } + + return nil +} + +// VirtualNetworkGatewayConnectionListEntity a common class for general resource information. +type VirtualNetworkGatewayConnectionListEntity struct { + // VirtualNetworkGatewayConnectionListEntityPropertiesFormat - Properties of the virtual network gateway connection. + *VirtualNetworkGatewayConnectionListEntityPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for VirtualNetworkGatewayConnectionListEntity. +func (vngcle VirtualNetworkGatewayConnectionListEntity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vngcle.VirtualNetworkGatewayConnectionListEntityPropertiesFormat != nil { + objectMap["properties"] = vngcle.VirtualNetworkGatewayConnectionListEntityPropertiesFormat + } + if vngcle.ID != nil { + objectMap["id"] = vngcle.ID + } + if vngcle.Location != nil { + objectMap["location"] = vngcle.Location + } + if vngcle.Tags != nil { + objectMap["tags"] = vngcle.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for VirtualNetworkGatewayConnectionListEntity struct. +func (vngcle *VirtualNetworkGatewayConnectionListEntity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var virtualNetworkGatewayConnectionListEntityPropertiesFormat VirtualNetworkGatewayConnectionListEntityPropertiesFormat + err = json.Unmarshal(*v, &virtualNetworkGatewayConnectionListEntityPropertiesFormat) + if err != nil { + return err + } + vngcle.VirtualNetworkGatewayConnectionListEntityPropertiesFormat = &virtualNetworkGatewayConnectionListEntityPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + vngcle.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + vngcle.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + vngcle.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + vngcle.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + vngcle.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + vngcle.Tags = tags + } + } + } + + return nil +} + +// VirtualNetworkGatewayConnectionListEntityPropertiesFormat virtualNetworkGatewayConnection properties. +type VirtualNetworkGatewayConnectionListEntityPropertiesFormat struct { + // AuthorizationKey - The authorizationKey. + AuthorizationKey *string `json:"authorizationKey,omitempty"` + // VirtualNetworkGateway1 - The reference to virtual network gateway resource. + VirtualNetworkGateway1 *VirtualNetworkConnectionGatewayReference `json:"virtualNetworkGateway1,omitempty"` + // VirtualNetworkGateway2 - The reference to virtual network gateway resource. + VirtualNetworkGateway2 *VirtualNetworkConnectionGatewayReference `json:"virtualNetworkGateway2,omitempty"` + // LocalNetworkGateway2 - The reference to local network gateway resource. + LocalNetworkGateway2 *VirtualNetworkConnectionGatewayReference `json:"localNetworkGateway2,omitempty"` + // ConnectionType - Gateway connection type. Possible values include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' + ConnectionType VirtualNetworkGatewayConnectionType `json:"connectionType,omitempty"` + // ConnectionProtocol - Connection protocol used for this connection. Possible values include: 'IKEv2', 'IKEv1' + ConnectionProtocol VirtualNetworkGatewayConnectionProtocol `json:"connectionProtocol,omitempty"` + // RoutingWeight - The routing weight. + RoutingWeight *int32 `json:"routingWeight,omitempty"` + // ConnectionMode - The connection mode for this connection. Possible values include: 'VirtualNetworkGatewayConnectionModeDefault', 'VirtualNetworkGatewayConnectionModeResponderOnly', 'VirtualNetworkGatewayConnectionModeInitiatorOnly' + ConnectionMode VirtualNetworkGatewayConnectionMode `json:"connectionMode,omitempty"` + // SharedKey - The IPSec shared key. + SharedKey *string `json:"sharedKey,omitempty"` + // ConnectionStatus - READ-ONLY; Virtual Network Gateway connection status. Possible values include: 'VirtualNetworkGatewayConnectionStatusUnknown', 'VirtualNetworkGatewayConnectionStatusConnecting', 'VirtualNetworkGatewayConnectionStatusConnected', 'VirtualNetworkGatewayConnectionStatusNotConnected' + ConnectionStatus VirtualNetworkGatewayConnectionStatus `json:"connectionStatus,omitempty"` + // TunnelConnectionStatus - READ-ONLY; Collection of all tunnels' connection health status. + TunnelConnectionStatus *[]TunnelConnectionHealth `json:"tunnelConnectionStatus,omitempty"` + // EgressBytesTransferred - READ-ONLY; The egress bytes transferred in this connection. + EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty"` + // IngressBytesTransferred - READ-ONLY; The ingress bytes transferred in this connection. + IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty"` + // Peer - The reference to peerings resource. + Peer *SubResource `json:"peer,omitempty"` + // EnableBgp - EnableBgp flag. + EnableBgp *bool `json:"enableBgp,omitempty"` + // UsePolicyBasedTrafficSelectors - Enable policy-based traffic selectors. + UsePolicyBasedTrafficSelectors *bool `json:"usePolicyBasedTrafficSelectors,omitempty"` + // IpsecPolicies - The IPSec Policies to be considered by this connection. + IpsecPolicies *[]IpsecPolicy `json:"ipsecPolicies,omitempty"` + // TrafficSelectorPolicies - The Traffic Selector Policies to be considered by this connection. + TrafficSelectorPolicies *[]TrafficSelectorPolicy `json:"trafficSelectorPolicies,omitempty"` + // ResourceGUID - READ-ONLY; The resource GUID property of the virtual network gateway connection resource. + ResourceGUID *string `json:"resourceGuid,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the virtual network gateway connection resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // ExpressRouteGatewayBypass - Bypass ExpressRoute Gateway for data forwarding. + ExpressRouteGatewayBypass *bool `json:"expressRouteGatewayBypass,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualNetworkGatewayConnectionListEntityPropertiesFormat. +func (vngclepf VirtualNetworkGatewayConnectionListEntityPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vngclepf.AuthorizationKey != nil { + objectMap["authorizationKey"] = vngclepf.AuthorizationKey + } + if vngclepf.VirtualNetworkGateway1 != nil { + objectMap["virtualNetworkGateway1"] = vngclepf.VirtualNetworkGateway1 + } + if vngclepf.VirtualNetworkGateway2 != nil { + objectMap["virtualNetworkGateway2"] = vngclepf.VirtualNetworkGateway2 + } + if vngclepf.LocalNetworkGateway2 != nil { + objectMap["localNetworkGateway2"] = vngclepf.LocalNetworkGateway2 + } + if vngclepf.ConnectionType != "" { + objectMap["connectionType"] = vngclepf.ConnectionType + } + if vngclepf.ConnectionProtocol != "" { + objectMap["connectionProtocol"] = vngclepf.ConnectionProtocol + } + if vngclepf.RoutingWeight != nil { + objectMap["routingWeight"] = vngclepf.RoutingWeight + } + if vngclepf.ConnectionMode != "" { + objectMap["connectionMode"] = vngclepf.ConnectionMode + } + if vngclepf.SharedKey != nil { + objectMap["sharedKey"] = vngclepf.SharedKey + } + if vngclepf.Peer != nil { + objectMap["peer"] = vngclepf.Peer + } + if vngclepf.EnableBgp != nil { + objectMap["enableBgp"] = vngclepf.EnableBgp + } + if vngclepf.UsePolicyBasedTrafficSelectors != nil { + objectMap["usePolicyBasedTrafficSelectors"] = vngclepf.UsePolicyBasedTrafficSelectors + } + if vngclepf.IpsecPolicies != nil { + objectMap["ipsecPolicies"] = vngclepf.IpsecPolicies + } + if vngclepf.TrafficSelectorPolicies != nil { + objectMap["trafficSelectorPolicies"] = vngclepf.TrafficSelectorPolicies + } + if vngclepf.ExpressRouteGatewayBypass != nil { + objectMap["expressRouteGatewayBypass"] = vngclepf.ExpressRouteGatewayBypass + } + return json.Marshal(objectMap) +} + +// VirtualNetworkGatewayConnectionListResult response for the ListVirtualNetworkGatewayConnections API +// service call. +type VirtualNetworkGatewayConnectionListResult struct { + autorest.Response `json:"-"` + // Value - A list of VirtualNetworkGatewayConnection resources that exists in a resource group. + Value *[]VirtualNetworkGatewayConnection `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualNetworkGatewayConnectionListResult. +func (vngclr VirtualNetworkGatewayConnectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vngclr.Value != nil { + objectMap["value"] = vngclr.Value + } + return json.Marshal(objectMap) +} + +// VirtualNetworkGatewayConnectionListResultIterator provides access to a complete listing of +// VirtualNetworkGatewayConnection values. +type VirtualNetworkGatewayConnectionListResultIterator struct { + i int + page VirtualNetworkGatewayConnectionListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *VirtualNetworkGatewayConnectionListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewayConnectionListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *VirtualNetworkGatewayConnectionListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter VirtualNetworkGatewayConnectionListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter VirtualNetworkGatewayConnectionListResultIterator) Response() VirtualNetworkGatewayConnectionListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter VirtualNetworkGatewayConnectionListResultIterator) Value() VirtualNetworkGatewayConnection { + if !iter.page.NotDone() { + return VirtualNetworkGatewayConnection{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the VirtualNetworkGatewayConnectionListResultIterator type. +func NewVirtualNetworkGatewayConnectionListResultIterator(page VirtualNetworkGatewayConnectionListResultPage) VirtualNetworkGatewayConnectionListResultIterator { + return VirtualNetworkGatewayConnectionListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (vngclr VirtualNetworkGatewayConnectionListResult) IsEmpty() bool { + return vngclr.Value == nil || len(*vngclr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (vngclr VirtualNetworkGatewayConnectionListResult) hasNextLink() bool { + return vngclr.NextLink != nil && len(*vngclr.NextLink) != 0 +} + +// virtualNetworkGatewayConnectionListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (vngclr VirtualNetworkGatewayConnectionListResult) virtualNetworkGatewayConnectionListResultPreparer(ctx context.Context) (*http.Request, error) { + if !vngclr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(vngclr.NextLink))) +} + +// VirtualNetworkGatewayConnectionListResultPage contains a page of VirtualNetworkGatewayConnection values. +type VirtualNetworkGatewayConnectionListResultPage struct { + fn func(context.Context, VirtualNetworkGatewayConnectionListResult) (VirtualNetworkGatewayConnectionListResult, error) + vngclr VirtualNetworkGatewayConnectionListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *VirtualNetworkGatewayConnectionListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewayConnectionListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.vngclr) + if err != nil { + return err + } + page.vngclr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *VirtualNetworkGatewayConnectionListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page VirtualNetworkGatewayConnectionListResultPage) NotDone() bool { + return !page.vngclr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page VirtualNetworkGatewayConnectionListResultPage) Response() VirtualNetworkGatewayConnectionListResult { + return page.vngclr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page VirtualNetworkGatewayConnectionListResultPage) Values() []VirtualNetworkGatewayConnection { + if page.vngclr.IsEmpty() { + return nil + } + return *page.vngclr.Value +} + +// Creates a new instance of the VirtualNetworkGatewayConnectionListResultPage type. +func NewVirtualNetworkGatewayConnectionListResultPage(cur VirtualNetworkGatewayConnectionListResult, getNextPage func(context.Context, VirtualNetworkGatewayConnectionListResult) (VirtualNetworkGatewayConnectionListResult, error)) VirtualNetworkGatewayConnectionListResultPage { + return VirtualNetworkGatewayConnectionListResultPage{ + fn: getNextPage, + vngclr: cur, + } +} + +// VirtualNetworkGatewayConnectionPropertiesFormat virtualNetworkGatewayConnection properties. +type VirtualNetworkGatewayConnectionPropertiesFormat struct { + // AuthorizationKey - The authorizationKey. + AuthorizationKey *string `json:"authorizationKey,omitempty"` + // VirtualNetworkGateway1 - The reference to virtual network gateway resource. + VirtualNetworkGateway1 *VirtualNetworkGateway `json:"virtualNetworkGateway1,omitempty"` + // VirtualNetworkGateway2 - The reference to virtual network gateway resource. + VirtualNetworkGateway2 *VirtualNetworkGateway `json:"virtualNetworkGateway2,omitempty"` + // LocalNetworkGateway2 - The reference to local network gateway resource. + LocalNetworkGateway2 *LocalNetworkGateway `json:"localNetworkGateway2,omitempty"` + // ConnectionType - Gateway connection type. Possible values include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' + ConnectionType VirtualNetworkGatewayConnectionType `json:"connectionType,omitempty"` + // ConnectionProtocol - Connection protocol used for this connection. Possible values include: 'IKEv2', 'IKEv1' + ConnectionProtocol VirtualNetworkGatewayConnectionProtocol `json:"connectionProtocol,omitempty"` + // RoutingWeight - The routing weight. + RoutingWeight *int32 `json:"routingWeight,omitempty"` + // DpdTimeoutSeconds - The dead peer detection timeout of this connection in seconds. + DpdTimeoutSeconds *int32 `json:"dpdTimeoutSeconds,omitempty"` + // ConnectionMode - The connection mode for this connection. Possible values include: 'VirtualNetworkGatewayConnectionModeDefault', 'VirtualNetworkGatewayConnectionModeResponderOnly', 'VirtualNetworkGatewayConnectionModeInitiatorOnly' + ConnectionMode VirtualNetworkGatewayConnectionMode `json:"connectionMode,omitempty"` + // SharedKey - The IPSec shared key. + SharedKey *string `json:"sharedKey,omitempty"` + // ConnectionStatus - READ-ONLY; Virtual Network Gateway connection status. Possible values include: 'VirtualNetworkGatewayConnectionStatusUnknown', 'VirtualNetworkGatewayConnectionStatusConnecting', 'VirtualNetworkGatewayConnectionStatusConnected', 'VirtualNetworkGatewayConnectionStatusNotConnected' + ConnectionStatus VirtualNetworkGatewayConnectionStatus `json:"connectionStatus,omitempty"` + // TunnelConnectionStatus - READ-ONLY; Collection of all tunnels' connection health status. + TunnelConnectionStatus *[]TunnelConnectionHealth `json:"tunnelConnectionStatus,omitempty"` + // EgressBytesTransferred - READ-ONLY; The egress bytes transferred in this connection. + EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty"` + // IngressBytesTransferred - READ-ONLY; The ingress bytes transferred in this connection. + IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty"` + // Peer - The reference to peerings resource. + Peer *SubResource `json:"peer,omitempty"` + // EnableBgp - EnableBgp flag. + EnableBgp *bool `json:"enableBgp,omitempty"` + // UseLocalAzureIPAddress - Use private local Azure IP for the connection. + UseLocalAzureIPAddress *bool `json:"useLocalAzureIpAddress,omitempty"` + // UsePolicyBasedTrafficSelectors - Enable policy-based traffic selectors. + UsePolicyBasedTrafficSelectors *bool `json:"usePolicyBasedTrafficSelectors,omitempty"` + // IpsecPolicies - The IPSec Policies to be considered by this connection. + IpsecPolicies *[]IpsecPolicy `json:"ipsecPolicies,omitempty"` + // TrafficSelectorPolicies - The Traffic Selector Policies to be considered by this connection. + TrafficSelectorPolicies *[]TrafficSelectorPolicy `json:"trafficSelectorPolicies,omitempty"` + // ResourceGUID - READ-ONLY; The resource GUID property of the virtual network gateway connection resource. + ResourceGUID *string `json:"resourceGuid,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the virtual network gateway connection resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // ExpressRouteGatewayBypass - Bypass ExpressRoute Gateway for data forwarding. + ExpressRouteGatewayBypass *bool `json:"expressRouteGatewayBypass,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualNetworkGatewayConnectionPropertiesFormat. +func (vngcpf VirtualNetworkGatewayConnectionPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vngcpf.AuthorizationKey != nil { + objectMap["authorizationKey"] = vngcpf.AuthorizationKey + } + if vngcpf.VirtualNetworkGateway1 != nil { + objectMap["virtualNetworkGateway1"] = vngcpf.VirtualNetworkGateway1 + } + if vngcpf.VirtualNetworkGateway2 != nil { + objectMap["virtualNetworkGateway2"] = vngcpf.VirtualNetworkGateway2 + } + if vngcpf.LocalNetworkGateway2 != nil { + objectMap["localNetworkGateway2"] = vngcpf.LocalNetworkGateway2 + } + if vngcpf.ConnectionType != "" { + objectMap["connectionType"] = vngcpf.ConnectionType + } + if vngcpf.ConnectionProtocol != "" { + objectMap["connectionProtocol"] = vngcpf.ConnectionProtocol + } + if vngcpf.RoutingWeight != nil { + objectMap["routingWeight"] = vngcpf.RoutingWeight + } + if vngcpf.DpdTimeoutSeconds != nil { + objectMap["dpdTimeoutSeconds"] = vngcpf.DpdTimeoutSeconds + } + if vngcpf.ConnectionMode != "" { + objectMap["connectionMode"] = vngcpf.ConnectionMode + } + if vngcpf.SharedKey != nil { + objectMap["sharedKey"] = vngcpf.SharedKey + } + if vngcpf.Peer != nil { + objectMap["peer"] = vngcpf.Peer + } + if vngcpf.EnableBgp != nil { + objectMap["enableBgp"] = vngcpf.EnableBgp + } + if vngcpf.UseLocalAzureIPAddress != nil { + objectMap["useLocalAzureIpAddress"] = vngcpf.UseLocalAzureIPAddress + } + if vngcpf.UsePolicyBasedTrafficSelectors != nil { + objectMap["usePolicyBasedTrafficSelectors"] = vngcpf.UsePolicyBasedTrafficSelectors + } + if vngcpf.IpsecPolicies != nil { + objectMap["ipsecPolicies"] = vngcpf.IpsecPolicies + } + if vngcpf.TrafficSelectorPolicies != nil { + objectMap["trafficSelectorPolicies"] = vngcpf.TrafficSelectorPolicies + } + if vngcpf.ExpressRouteGatewayBypass != nil { + objectMap["expressRouteGatewayBypass"] = vngcpf.ExpressRouteGatewayBypass + } + return json.Marshal(objectMap) +} + +// VirtualNetworkGatewayConnectionsCreateOrUpdateFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type VirtualNetworkGatewayConnectionsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkGatewayConnectionsCreateOrUpdateFuture) Result(client VirtualNetworkGatewayConnectionsClient) (vngc VirtualNetworkGatewayConnection, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkGatewayConnectionsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vngc.Response.Response, err = future.GetResult(sender); err == nil && vngc.Response.Response.StatusCode != http.StatusNoContent { + vngc, err = client.CreateOrUpdateResponder(vngc.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsCreateOrUpdateFuture", "Result", vngc.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualNetworkGatewayConnectionsDeleteFuture an abstraction for monitoring and retrieving the results of +// a long-running operation. +type VirtualNetworkGatewayConnectionsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkGatewayConnectionsDeleteFuture) Result(client VirtualNetworkGatewayConnectionsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkGatewayConnectionsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// VirtualNetworkGatewayConnectionsResetSharedKeyFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type VirtualNetworkGatewayConnectionsResetSharedKeyFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkGatewayConnectionsResetSharedKeyFuture) Result(client VirtualNetworkGatewayConnectionsClient) (crsk ConnectionResetSharedKey, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if crsk.Response.Response, err = future.GetResult(sender); err == nil && crsk.Response.Response.StatusCode != http.StatusNoContent { + crsk, err = client.ResetSharedKeyResponder(crsk.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture", "Result", crsk.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualNetworkGatewayConnectionsSetSharedKeyFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type VirtualNetworkGatewayConnectionsSetSharedKeyFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkGatewayConnectionsSetSharedKeyFuture) Result(client VirtualNetworkGatewayConnectionsClient) (csk ConnectionSharedKey, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if csk.Response.Response, err = future.GetResult(sender); err == nil && csk.Response.Response.StatusCode != http.StatusNoContent { + csk, err = client.SetSharedKeyResponder(csk.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture", "Result", csk.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualNetworkGatewayConnectionsStartPacketCaptureFuture an abstraction for monitoring and retrieving +// the results of a long-running operation. +type VirtualNetworkGatewayConnectionsStartPacketCaptureFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkGatewayConnectionsStartPacketCaptureFuture) Result(client VirtualNetworkGatewayConnectionsClient) (s String, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsStartPacketCaptureFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkGatewayConnectionsStartPacketCaptureFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if s.Response.Response, err = future.GetResult(sender); err == nil && s.Response.Response.StatusCode != http.StatusNoContent { + s, err = client.StartPacketCaptureResponder(s.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsStartPacketCaptureFuture", "Result", s.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualNetworkGatewayConnectionsStopPacketCaptureFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type VirtualNetworkGatewayConnectionsStopPacketCaptureFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkGatewayConnectionsStopPacketCaptureFuture) Result(client VirtualNetworkGatewayConnectionsClient) (s String, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsStopPacketCaptureFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkGatewayConnectionsStopPacketCaptureFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if s.Response.Response, err = future.GetResult(sender); err == nil && s.Response.Response.StatusCode != http.StatusNoContent { + s, err = client.StopPacketCaptureResponder(s.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsStopPacketCaptureFuture", "Result", s.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualNetworkGatewayConnectionsUpdateTagsFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type VirtualNetworkGatewayConnectionsUpdateTagsFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkGatewayConnectionsUpdateTagsFuture) Result(client VirtualNetworkGatewayConnectionsClient) (vngc VirtualNetworkGatewayConnection, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsUpdateTagsFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkGatewayConnectionsUpdateTagsFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vngc.Response.Response, err = future.GetResult(sender); err == nil && vngc.Response.Response.StatusCode != http.StatusNoContent { + vngc, err = client.UpdateTagsResponder(vngc.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsUpdateTagsFuture", "Result", vngc.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualNetworkGatewayIPConfiguration IP configuration for virtual network gateway. +type VirtualNetworkGatewayIPConfiguration struct { + // VirtualNetworkGatewayIPConfigurationPropertiesFormat - Properties of the virtual network gateway ip configuration. + *VirtualNetworkGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualNetworkGatewayIPConfiguration. +func (vngic VirtualNetworkGatewayIPConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vngic.VirtualNetworkGatewayIPConfigurationPropertiesFormat != nil { + objectMap["properties"] = vngic.VirtualNetworkGatewayIPConfigurationPropertiesFormat + } + if vngic.Name != nil { + objectMap["name"] = vngic.Name + } + if vngic.ID != nil { + objectMap["id"] = vngic.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for VirtualNetworkGatewayIPConfiguration struct. +func (vngic *VirtualNetworkGatewayIPConfiguration) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var virtualNetworkGatewayIPConfigurationPropertiesFormat VirtualNetworkGatewayIPConfigurationPropertiesFormat + err = json.Unmarshal(*v, &virtualNetworkGatewayIPConfigurationPropertiesFormat) + if err != nil { + return err + } + vngic.VirtualNetworkGatewayIPConfigurationPropertiesFormat = &virtualNetworkGatewayIPConfigurationPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + vngic.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + vngic.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + vngic.ID = &ID + } + } + } + + return nil +} + +// VirtualNetworkGatewayIPConfigurationPropertiesFormat properties of VirtualNetworkGatewayIPConfiguration. +type VirtualNetworkGatewayIPConfigurationPropertiesFormat struct { + // PrivateIPAllocationMethod - The private IP address allocation method. Possible values include: 'Static', 'Dynamic' + PrivateIPAllocationMethod IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + // Subnet - The reference to the subnet resource. + Subnet *SubResource `json:"subnet,omitempty"` + // PublicIPAddress - The reference to the public IP resource. + PublicIPAddress *SubResource `json:"publicIPAddress,omitempty"` + // PrivateIPAddress - READ-ONLY; Private IP Address for this gateway. + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the virtual network gateway IP configuration resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualNetworkGatewayIPConfigurationPropertiesFormat. +func (vngicpf VirtualNetworkGatewayIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vngicpf.PrivateIPAllocationMethod != "" { + objectMap["privateIPAllocationMethod"] = vngicpf.PrivateIPAllocationMethod + } + if vngicpf.Subnet != nil { + objectMap["subnet"] = vngicpf.Subnet + } + if vngicpf.PublicIPAddress != nil { + objectMap["publicIPAddress"] = vngicpf.PublicIPAddress + } + return json.Marshal(objectMap) +} + +// VirtualNetworkGatewayListConnectionsResult response for the VirtualNetworkGatewayListConnections API +// service call. +type VirtualNetworkGatewayListConnectionsResult struct { + autorest.Response `json:"-"` + // Value - A list of VirtualNetworkGatewayConnection resources that exists in a resource group. + Value *[]VirtualNetworkGatewayConnectionListEntity `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualNetworkGatewayListConnectionsResult. +func (vnglcr VirtualNetworkGatewayListConnectionsResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vnglcr.Value != nil { + objectMap["value"] = vnglcr.Value + } + return json.Marshal(objectMap) +} + +// VirtualNetworkGatewayListConnectionsResultIterator provides access to a complete listing of +// VirtualNetworkGatewayConnectionListEntity values. +type VirtualNetworkGatewayListConnectionsResultIterator struct { + i int + page VirtualNetworkGatewayListConnectionsResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *VirtualNetworkGatewayListConnectionsResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewayListConnectionsResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *VirtualNetworkGatewayListConnectionsResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter VirtualNetworkGatewayListConnectionsResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter VirtualNetworkGatewayListConnectionsResultIterator) Response() VirtualNetworkGatewayListConnectionsResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter VirtualNetworkGatewayListConnectionsResultIterator) Value() VirtualNetworkGatewayConnectionListEntity { + if !iter.page.NotDone() { + return VirtualNetworkGatewayConnectionListEntity{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the VirtualNetworkGatewayListConnectionsResultIterator type. +func NewVirtualNetworkGatewayListConnectionsResultIterator(page VirtualNetworkGatewayListConnectionsResultPage) VirtualNetworkGatewayListConnectionsResultIterator { + return VirtualNetworkGatewayListConnectionsResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (vnglcr VirtualNetworkGatewayListConnectionsResult) IsEmpty() bool { + return vnglcr.Value == nil || len(*vnglcr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (vnglcr VirtualNetworkGatewayListConnectionsResult) hasNextLink() bool { + return vnglcr.NextLink != nil && len(*vnglcr.NextLink) != 0 +} + +// virtualNetworkGatewayListConnectionsResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (vnglcr VirtualNetworkGatewayListConnectionsResult) virtualNetworkGatewayListConnectionsResultPreparer(ctx context.Context) (*http.Request, error) { + if !vnglcr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(vnglcr.NextLink))) +} + +// VirtualNetworkGatewayListConnectionsResultPage contains a page of +// VirtualNetworkGatewayConnectionListEntity values. +type VirtualNetworkGatewayListConnectionsResultPage struct { + fn func(context.Context, VirtualNetworkGatewayListConnectionsResult) (VirtualNetworkGatewayListConnectionsResult, error) + vnglcr VirtualNetworkGatewayListConnectionsResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *VirtualNetworkGatewayListConnectionsResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewayListConnectionsResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.vnglcr) + if err != nil { + return err + } + page.vnglcr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *VirtualNetworkGatewayListConnectionsResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page VirtualNetworkGatewayListConnectionsResultPage) NotDone() bool { + return !page.vnglcr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page VirtualNetworkGatewayListConnectionsResultPage) Response() VirtualNetworkGatewayListConnectionsResult { + return page.vnglcr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page VirtualNetworkGatewayListConnectionsResultPage) Values() []VirtualNetworkGatewayConnectionListEntity { + if page.vnglcr.IsEmpty() { + return nil + } + return *page.vnglcr.Value +} + +// Creates a new instance of the VirtualNetworkGatewayListConnectionsResultPage type. +func NewVirtualNetworkGatewayListConnectionsResultPage(cur VirtualNetworkGatewayListConnectionsResult, getNextPage func(context.Context, VirtualNetworkGatewayListConnectionsResult) (VirtualNetworkGatewayListConnectionsResult, error)) VirtualNetworkGatewayListConnectionsResultPage { + return VirtualNetworkGatewayListConnectionsResultPage{ + fn: getNextPage, + vnglcr: cur, + } +} + +// VirtualNetworkGatewayListResult response for the ListVirtualNetworkGateways API service call. +type VirtualNetworkGatewayListResult struct { + autorest.Response `json:"-"` + // Value - A list of VirtualNetworkGateway resources that exists in a resource group. + Value *[]VirtualNetworkGateway `json:"value,omitempty"` + // NextLink - READ-ONLY; The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualNetworkGatewayListResult. +func (vnglr VirtualNetworkGatewayListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vnglr.Value != nil { + objectMap["value"] = vnglr.Value + } + return json.Marshal(objectMap) +} + +// VirtualNetworkGatewayListResultIterator provides access to a complete listing of VirtualNetworkGateway +// values. +type VirtualNetworkGatewayListResultIterator struct { + i int + page VirtualNetworkGatewayListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *VirtualNetworkGatewayListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewayListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *VirtualNetworkGatewayListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter VirtualNetworkGatewayListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter VirtualNetworkGatewayListResultIterator) Response() VirtualNetworkGatewayListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter VirtualNetworkGatewayListResultIterator) Value() VirtualNetworkGateway { + if !iter.page.NotDone() { + return VirtualNetworkGateway{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the VirtualNetworkGatewayListResultIterator type. +func NewVirtualNetworkGatewayListResultIterator(page VirtualNetworkGatewayListResultPage) VirtualNetworkGatewayListResultIterator { + return VirtualNetworkGatewayListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (vnglr VirtualNetworkGatewayListResult) IsEmpty() bool { + return vnglr.Value == nil || len(*vnglr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (vnglr VirtualNetworkGatewayListResult) hasNextLink() bool { + return vnglr.NextLink != nil && len(*vnglr.NextLink) != 0 +} + +// virtualNetworkGatewayListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (vnglr VirtualNetworkGatewayListResult) virtualNetworkGatewayListResultPreparer(ctx context.Context) (*http.Request, error) { + if !vnglr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(vnglr.NextLink))) +} + +// VirtualNetworkGatewayListResultPage contains a page of VirtualNetworkGateway values. +type VirtualNetworkGatewayListResultPage struct { + fn func(context.Context, VirtualNetworkGatewayListResult) (VirtualNetworkGatewayListResult, error) + vnglr VirtualNetworkGatewayListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *VirtualNetworkGatewayListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewayListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.vnglr) + if err != nil { + return err + } + page.vnglr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *VirtualNetworkGatewayListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page VirtualNetworkGatewayListResultPage) NotDone() bool { + return !page.vnglr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page VirtualNetworkGatewayListResultPage) Response() VirtualNetworkGatewayListResult { + return page.vnglr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page VirtualNetworkGatewayListResultPage) Values() []VirtualNetworkGateway { + if page.vnglr.IsEmpty() { + return nil + } + return *page.vnglr.Value +} + +// Creates a new instance of the VirtualNetworkGatewayListResultPage type. +func NewVirtualNetworkGatewayListResultPage(cur VirtualNetworkGatewayListResult, getNextPage func(context.Context, VirtualNetworkGatewayListResult) (VirtualNetworkGatewayListResult, error)) VirtualNetworkGatewayListResultPage { + return VirtualNetworkGatewayListResultPage{ + fn: getNextPage, + vnglr: cur, + } +} + +// VirtualNetworkGatewayPropertiesFormat virtualNetworkGateway properties. +type VirtualNetworkGatewayPropertiesFormat struct { + // IPConfigurations - IP configurations for virtual network gateway. + IPConfigurations *[]VirtualNetworkGatewayIPConfiguration `json:"ipConfigurations,omitempty"` + // GatewayType - The type of this virtual network gateway. Possible values include: 'VirtualNetworkGatewayTypeVpn', 'VirtualNetworkGatewayTypeExpressRoute', 'VirtualNetworkGatewayTypeLocalGateway' + GatewayType VirtualNetworkGatewayType `json:"gatewayType,omitempty"` + // VpnType - The type of this virtual network gateway. Possible values include: 'PolicyBased', 'RouteBased' + VpnType VpnType `json:"vpnType,omitempty"` + // VpnGatewayGeneration - The generation for this VirtualNetworkGateway. Must be None if gatewayType is not VPN. Possible values include: 'VpnGatewayGenerationNone', 'VpnGatewayGenerationGeneration1', 'VpnGatewayGenerationGeneration2' + VpnGatewayGeneration VpnGatewayGeneration `json:"vpnGatewayGeneration,omitempty"` + // EnableBgp - Whether BGP is enabled for this virtual network gateway or not. + EnableBgp *bool `json:"enableBgp,omitempty"` + // EnablePrivateIPAddress - Whether private IP needs to be enabled on this gateway for connections or not. + EnablePrivateIPAddress *bool `json:"enablePrivateIpAddress,omitempty"` + // ActiveActive - ActiveActive flag. + ActiveActive *bool `json:"activeActive,omitempty"` + // GatewayDefaultSite - The reference to the LocalNetworkGateway resource which represents local network site having default routes. Assign Null value in case of removing existing default site setting. + GatewayDefaultSite *SubResource `json:"gatewayDefaultSite,omitempty"` + // Sku - The reference to the VirtualNetworkGatewaySku resource which represents the SKU selected for Virtual network gateway. + Sku *VirtualNetworkGatewaySku `json:"sku,omitempty"` + // VpnClientConfiguration - The reference to the VpnClientConfiguration resource which represents the P2S VpnClient configurations. + VpnClientConfiguration *VpnClientConfiguration `json:"vpnClientConfiguration,omitempty"` + // BgpSettings - Virtual network gateway's BGP speaker settings. + BgpSettings *BgpSettings `json:"bgpSettings,omitempty"` + // CustomRoutes - The reference to the address space resource which represents the custom routes address space specified by the customer for virtual network gateway and VpnClient. + CustomRoutes *AddressSpace `json:"customRoutes,omitempty"` + // ResourceGUID - READ-ONLY; The resource GUID property of the virtual network gateway resource. + ResourceGUID *string `json:"resourceGuid,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the virtual network gateway resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // EnableDNSForwarding - Whether dns forwarding is enabled or not. + EnableDNSForwarding *bool `json:"enableDnsForwarding,omitempty"` + // InboundDNSForwardingEndpoint - READ-ONLY; The IP address allocated by the gateway to which dns requests can be sent. + InboundDNSForwardingEndpoint *string `json:"inboundDnsForwardingEndpoint,omitempty"` + // VirtualNetworkExtendedLocationResourceID - MAS FIJI customer vnet resource id. VirtualNetworkGateway of type local gateway is associated with the customer vnet. + VirtualNetworkExtendedLocationResourceID *string `json:"virtualNetworkExtendedLocationResourceId,omitempty"` + // ExtendedLocation - The extended location of type local virtual network gateway. + ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualNetworkGatewayPropertiesFormat. +func (vngpf VirtualNetworkGatewayPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vngpf.IPConfigurations != nil { + objectMap["ipConfigurations"] = vngpf.IPConfigurations + } + if vngpf.GatewayType != "" { + objectMap["gatewayType"] = vngpf.GatewayType + } + if vngpf.VpnType != "" { + objectMap["vpnType"] = vngpf.VpnType + } + if vngpf.VpnGatewayGeneration != "" { + objectMap["vpnGatewayGeneration"] = vngpf.VpnGatewayGeneration + } + if vngpf.EnableBgp != nil { + objectMap["enableBgp"] = vngpf.EnableBgp + } + if vngpf.EnablePrivateIPAddress != nil { + objectMap["enablePrivateIpAddress"] = vngpf.EnablePrivateIPAddress + } + if vngpf.ActiveActive != nil { + objectMap["activeActive"] = vngpf.ActiveActive + } + if vngpf.GatewayDefaultSite != nil { + objectMap["gatewayDefaultSite"] = vngpf.GatewayDefaultSite + } + if vngpf.Sku != nil { + objectMap["sku"] = vngpf.Sku + } + if vngpf.VpnClientConfiguration != nil { + objectMap["vpnClientConfiguration"] = vngpf.VpnClientConfiguration + } + if vngpf.BgpSettings != nil { + objectMap["bgpSettings"] = vngpf.BgpSettings + } + if vngpf.CustomRoutes != nil { + objectMap["customRoutes"] = vngpf.CustomRoutes + } + if vngpf.EnableDNSForwarding != nil { + objectMap["enableDnsForwarding"] = vngpf.EnableDNSForwarding + } + if vngpf.VirtualNetworkExtendedLocationResourceID != nil { + objectMap["virtualNetworkExtendedLocationResourceId"] = vngpf.VirtualNetworkExtendedLocationResourceID + } + if vngpf.ExtendedLocation != nil { + objectMap["extendedLocation"] = vngpf.ExtendedLocation + } + return json.Marshal(objectMap) +} + +// VirtualNetworkGatewaysCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VirtualNetworkGatewaysCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkGatewaysCreateOrUpdateFuture) Result(client VirtualNetworkGatewaysClient) (vng VirtualNetworkGateway, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkGatewaysCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vng.Response.Response, err = future.GetResult(sender); err == nil && vng.Response.Response.StatusCode != http.StatusNoContent { + vng, err = client.CreateOrUpdateResponder(vng.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysCreateOrUpdateFuture", "Result", vng.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualNetworkGatewaysDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VirtualNetworkGatewaysDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkGatewaysDeleteFuture) Result(client VirtualNetworkGatewaysClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkGatewaysDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsFuture an abstraction for monitoring +// and retrieving the results of a long-running operation. +type VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsFuture) Result(client VirtualNetworkGatewaysClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsFuture") + return + } + ar.Response = future.Response() + return +} + +// VirtualNetworkGatewaysGeneratevpnclientpackageFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type VirtualNetworkGatewaysGeneratevpnclientpackageFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkGatewaysGeneratevpnclientpackageFuture) Result(client VirtualNetworkGatewaysClient) (s String, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysGeneratevpnclientpackageFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkGatewaysGeneratevpnclientpackageFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if s.Response.Response, err = future.GetResult(sender); err == nil && s.Response.Response.StatusCode != http.StatusNoContent { + s, err = client.GeneratevpnclientpackageResponder(s.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysGeneratevpnclientpackageFuture", "Result", s.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualNetworkGatewaysGenerateVpnProfileFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type VirtualNetworkGatewaysGenerateVpnProfileFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkGatewaysGenerateVpnProfileFuture) Result(client VirtualNetworkGatewaysClient) (s String, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysGenerateVpnProfileFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkGatewaysGenerateVpnProfileFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if s.Response.Response, err = future.GetResult(sender); err == nil && s.Response.Response.StatusCode != http.StatusNoContent { + s, err = client.GenerateVpnProfileResponder(s.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysGenerateVpnProfileFuture", "Result", s.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualNetworkGatewaysGetAdvertisedRoutesFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type VirtualNetworkGatewaysGetAdvertisedRoutesFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkGatewaysGetAdvertisedRoutesFuture) Result(client VirtualNetworkGatewaysClient) (grlr GatewayRouteListResult, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysGetAdvertisedRoutesFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkGatewaysGetAdvertisedRoutesFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if grlr.Response.Response, err = future.GetResult(sender); err == nil && grlr.Response.Response.StatusCode != http.StatusNoContent { + grlr, err = client.GetAdvertisedRoutesResponder(grlr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysGetAdvertisedRoutesFuture", "Result", grlr.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualNetworkGatewaysGetBgpPeerStatusFuture an abstraction for monitoring and retrieving the results of +// a long-running operation. +type VirtualNetworkGatewaysGetBgpPeerStatusFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkGatewaysGetBgpPeerStatusFuture) Result(client VirtualNetworkGatewaysClient) (bpslr BgpPeerStatusListResult, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysGetBgpPeerStatusFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkGatewaysGetBgpPeerStatusFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if bpslr.Response.Response, err = future.GetResult(sender); err == nil && bpslr.Response.Response.StatusCode != http.StatusNoContent { + bpslr, err = client.GetBgpPeerStatusResponder(bpslr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysGetBgpPeerStatusFuture", "Result", bpslr.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualNetworkGatewaysGetLearnedRoutesFuture an abstraction for monitoring and retrieving the results of +// a long-running operation. +type VirtualNetworkGatewaysGetLearnedRoutesFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkGatewaysGetLearnedRoutesFuture) Result(client VirtualNetworkGatewaysClient) (grlr GatewayRouteListResult, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysGetLearnedRoutesFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkGatewaysGetLearnedRoutesFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if grlr.Response.Response, err = future.GetResult(sender); err == nil && grlr.Response.Response.StatusCode != http.StatusNoContent { + grlr, err = client.GetLearnedRoutesResponder(grlr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysGetLearnedRoutesFuture", "Result", grlr.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualNetworkGatewaysGetVpnclientConnectionHealthFuture an abstraction for monitoring and retrieving +// the results of a long-running operation. +type VirtualNetworkGatewaysGetVpnclientConnectionHealthFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkGatewaysGetVpnclientConnectionHealthFuture) Result(client VirtualNetworkGatewaysClient) (vcchdlr VpnClientConnectionHealthDetailListResult, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysGetVpnclientConnectionHealthFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkGatewaysGetVpnclientConnectionHealthFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vcchdlr.Response.Response, err = future.GetResult(sender); err == nil && vcchdlr.Response.Response.StatusCode != http.StatusNoContent { + vcchdlr, err = client.GetVpnclientConnectionHealthResponder(vcchdlr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysGetVpnclientConnectionHealthFuture", "Result", vcchdlr.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture) Result(client VirtualNetworkGatewaysClient) (vcipp VpnClientIPsecParameters, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vcipp.Response.Response, err = future.GetResult(sender); err == nil && vcipp.Response.Response.StatusCode != http.StatusNoContent { + vcipp, err = client.GetVpnclientIpsecParametersResponder(vcipp.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture", "Result", vcipp.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualNetworkGatewaysGetVpnProfilePackageURLFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type VirtualNetworkGatewaysGetVpnProfilePackageURLFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkGatewaysGetVpnProfilePackageURLFuture) Result(client VirtualNetworkGatewaysClient) (s String, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysGetVpnProfilePackageURLFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkGatewaysGetVpnProfilePackageURLFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if s.Response.Response, err = future.GetResult(sender); err == nil && s.Response.Response.StatusCode != http.StatusNoContent { + s, err = client.GetVpnProfilePackageURLResponder(s.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysGetVpnProfilePackageURLFuture", "Result", s.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualNetworkGatewaySku virtualNetworkGatewaySku details. +type VirtualNetworkGatewaySku struct { + // Name - Gateway SKU name. Possible values include: 'VirtualNetworkGatewaySkuNameBasic', 'VirtualNetworkGatewaySkuNameHighPerformance', 'VirtualNetworkGatewaySkuNameStandard', 'VirtualNetworkGatewaySkuNameUltraPerformance', 'VirtualNetworkGatewaySkuNameVpnGw1', 'VirtualNetworkGatewaySkuNameVpnGw2', 'VirtualNetworkGatewaySkuNameVpnGw3', 'VirtualNetworkGatewaySkuNameVpnGw4', 'VirtualNetworkGatewaySkuNameVpnGw5', 'VirtualNetworkGatewaySkuNameVpnGw1AZ', 'VirtualNetworkGatewaySkuNameVpnGw2AZ', 'VirtualNetworkGatewaySkuNameVpnGw3AZ', 'VirtualNetworkGatewaySkuNameVpnGw4AZ', 'VirtualNetworkGatewaySkuNameVpnGw5AZ', 'VirtualNetworkGatewaySkuNameErGw1AZ', 'VirtualNetworkGatewaySkuNameErGw2AZ', 'VirtualNetworkGatewaySkuNameErGw3AZ' + Name VirtualNetworkGatewaySkuName `json:"name,omitempty"` + // Tier - Gateway SKU tier. Possible values include: 'VirtualNetworkGatewaySkuTierBasic', 'VirtualNetworkGatewaySkuTierHighPerformance', 'VirtualNetworkGatewaySkuTierStandard', 'VirtualNetworkGatewaySkuTierUltraPerformance', 'VirtualNetworkGatewaySkuTierVpnGw1', 'VirtualNetworkGatewaySkuTierVpnGw2', 'VirtualNetworkGatewaySkuTierVpnGw3', 'VirtualNetworkGatewaySkuTierVpnGw4', 'VirtualNetworkGatewaySkuTierVpnGw5', 'VirtualNetworkGatewaySkuTierVpnGw1AZ', 'VirtualNetworkGatewaySkuTierVpnGw2AZ', 'VirtualNetworkGatewaySkuTierVpnGw3AZ', 'VirtualNetworkGatewaySkuTierVpnGw4AZ', 'VirtualNetworkGatewaySkuTierVpnGw5AZ', 'VirtualNetworkGatewaySkuTierErGw1AZ', 'VirtualNetworkGatewaySkuTierErGw2AZ', 'VirtualNetworkGatewaySkuTierErGw3AZ' + Tier VirtualNetworkGatewaySkuTier `json:"tier,omitempty"` + // Capacity - READ-ONLY; The capacity. + Capacity *int32 `json:"capacity,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualNetworkGatewaySku. +func (vngs VirtualNetworkGatewaySku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vngs.Name != "" { + objectMap["name"] = vngs.Name + } + if vngs.Tier != "" { + objectMap["tier"] = vngs.Tier + } + return json.Marshal(objectMap) +} + +// VirtualNetworkGatewaysResetFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VirtualNetworkGatewaysResetFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkGatewaysResetFuture) Result(client VirtualNetworkGatewaysClient) (vng VirtualNetworkGateway, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysResetFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkGatewaysResetFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vng.Response.Response, err = future.GetResult(sender); err == nil && vng.Response.Response.StatusCode != http.StatusNoContent { + vng, err = client.ResetResponder(vng.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysResetFuture", "Result", vng.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualNetworkGatewaysResetVpnClientSharedKeyFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type VirtualNetworkGatewaysResetVpnClientSharedKeyFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkGatewaysResetVpnClientSharedKeyFuture) Result(client VirtualNetworkGatewaysClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysResetVpnClientSharedKeyFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkGatewaysResetVpnClientSharedKeyFuture") + return + } + ar.Response = future.Response() + return +} + +// VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture) Result(client VirtualNetworkGatewaysClient) (vcipp VpnClientIPsecParameters, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vcipp.Response.Response, err = future.GetResult(sender); err == nil && vcipp.Response.Response.StatusCode != http.StatusNoContent { + vcipp, err = client.SetVpnclientIpsecParametersResponder(vcipp.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture", "Result", vcipp.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualNetworkGatewaysStartPacketCaptureFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type VirtualNetworkGatewaysStartPacketCaptureFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkGatewaysStartPacketCaptureFuture) Result(client VirtualNetworkGatewaysClient) (s String, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysStartPacketCaptureFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkGatewaysStartPacketCaptureFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if s.Response.Response, err = future.GetResult(sender); err == nil && s.Response.Response.StatusCode != http.StatusNoContent { + s, err = client.StartPacketCaptureResponder(s.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysStartPacketCaptureFuture", "Result", s.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualNetworkGatewaysStopPacketCaptureFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type VirtualNetworkGatewaysStopPacketCaptureFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkGatewaysStopPacketCaptureFuture) Result(client VirtualNetworkGatewaysClient) (s String, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysStopPacketCaptureFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkGatewaysStopPacketCaptureFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if s.Response.Response, err = future.GetResult(sender); err == nil && s.Response.Response.StatusCode != http.StatusNoContent { + s, err = client.StopPacketCaptureResponder(s.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysStopPacketCaptureFuture", "Result", s.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualNetworkGatewaysUpdateTagsFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VirtualNetworkGatewaysUpdateTagsFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkGatewaysUpdateTagsFuture) Result(client VirtualNetworkGatewaysClient) (vng VirtualNetworkGateway, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysUpdateTagsFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkGatewaysUpdateTagsFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vng.Response.Response, err = future.GetResult(sender); err == nil && vng.Response.Response.StatusCode != http.StatusNoContent { + vng, err = client.UpdateTagsResponder(vng.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysUpdateTagsFuture", "Result", vng.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualNetworkListResult response for the ListVirtualNetworks API service call. +type VirtualNetworkListResult struct { + autorest.Response `json:"-"` + // Value - A list of VirtualNetwork resources in a resource group. + Value *[]VirtualNetwork `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// VirtualNetworkListResultIterator provides access to a complete listing of VirtualNetwork values. +type VirtualNetworkListResultIterator struct { + i int + page VirtualNetworkListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *VirtualNetworkListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *VirtualNetworkListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter VirtualNetworkListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter VirtualNetworkListResultIterator) Response() VirtualNetworkListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter VirtualNetworkListResultIterator) Value() VirtualNetwork { + if !iter.page.NotDone() { + return VirtualNetwork{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the VirtualNetworkListResultIterator type. +func NewVirtualNetworkListResultIterator(page VirtualNetworkListResultPage) VirtualNetworkListResultIterator { + return VirtualNetworkListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (vnlr VirtualNetworkListResult) IsEmpty() bool { + return vnlr.Value == nil || len(*vnlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (vnlr VirtualNetworkListResult) hasNextLink() bool { + return vnlr.NextLink != nil && len(*vnlr.NextLink) != 0 +} + +// virtualNetworkListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (vnlr VirtualNetworkListResult) virtualNetworkListResultPreparer(ctx context.Context) (*http.Request, error) { + if !vnlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(vnlr.NextLink))) +} + +// VirtualNetworkListResultPage contains a page of VirtualNetwork values. +type VirtualNetworkListResultPage struct { + fn func(context.Context, VirtualNetworkListResult) (VirtualNetworkListResult, error) + vnlr VirtualNetworkListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *VirtualNetworkListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.vnlr) + if err != nil { + return err + } + page.vnlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *VirtualNetworkListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page VirtualNetworkListResultPage) NotDone() bool { + return !page.vnlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page VirtualNetworkListResultPage) Response() VirtualNetworkListResult { + return page.vnlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page VirtualNetworkListResultPage) Values() []VirtualNetwork { + if page.vnlr.IsEmpty() { + return nil + } + return *page.vnlr.Value +} + +// Creates a new instance of the VirtualNetworkListResultPage type. +func NewVirtualNetworkListResultPage(cur VirtualNetworkListResult, getNextPage func(context.Context, VirtualNetworkListResult) (VirtualNetworkListResult, error)) VirtualNetworkListResultPage { + return VirtualNetworkListResultPage{ + fn: getNextPage, + vnlr: cur, + } +} + +// VirtualNetworkListUsageResult response for the virtual networks GetUsage API service call. +type VirtualNetworkListUsageResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; VirtualNetwork usage stats. + Value *[]VirtualNetworkUsage `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualNetworkListUsageResult. +func (vnlur VirtualNetworkListUsageResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vnlur.NextLink != nil { + objectMap["nextLink"] = vnlur.NextLink + } + return json.Marshal(objectMap) +} + +// VirtualNetworkListUsageResultIterator provides access to a complete listing of VirtualNetworkUsage +// values. +type VirtualNetworkListUsageResultIterator struct { + i int + page VirtualNetworkListUsageResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *VirtualNetworkListUsageResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkListUsageResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *VirtualNetworkListUsageResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter VirtualNetworkListUsageResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter VirtualNetworkListUsageResultIterator) Response() VirtualNetworkListUsageResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter VirtualNetworkListUsageResultIterator) Value() VirtualNetworkUsage { + if !iter.page.NotDone() { + return VirtualNetworkUsage{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the VirtualNetworkListUsageResultIterator type. +func NewVirtualNetworkListUsageResultIterator(page VirtualNetworkListUsageResultPage) VirtualNetworkListUsageResultIterator { + return VirtualNetworkListUsageResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (vnlur VirtualNetworkListUsageResult) IsEmpty() bool { + return vnlur.Value == nil || len(*vnlur.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (vnlur VirtualNetworkListUsageResult) hasNextLink() bool { + return vnlur.NextLink != nil && len(*vnlur.NextLink) != 0 +} + +// virtualNetworkListUsageResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (vnlur VirtualNetworkListUsageResult) virtualNetworkListUsageResultPreparer(ctx context.Context) (*http.Request, error) { + if !vnlur.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(vnlur.NextLink))) +} + +// VirtualNetworkListUsageResultPage contains a page of VirtualNetworkUsage values. +type VirtualNetworkListUsageResultPage struct { + fn func(context.Context, VirtualNetworkListUsageResult) (VirtualNetworkListUsageResult, error) + vnlur VirtualNetworkListUsageResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *VirtualNetworkListUsageResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkListUsageResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.vnlur) + if err != nil { + return err + } + page.vnlur = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *VirtualNetworkListUsageResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page VirtualNetworkListUsageResultPage) NotDone() bool { + return !page.vnlur.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page VirtualNetworkListUsageResultPage) Response() VirtualNetworkListUsageResult { + return page.vnlur +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page VirtualNetworkListUsageResultPage) Values() []VirtualNetworkUsage { + if page.vnlur.IsEmpty() { + return nil + } + return *page.vnlur.Value +} + +// Creates a new instance of the VirtualNetworkListUsageResultPage type. +func NewVirtualNetworkListUsageResultPage(cur VirtualNetworkListUsageResult, getNextPage func(context.Context, VirtualNetworkListUsageResult) (VirtualNetworkListUsageResult, error)) VirtualNetworkListUsageResultPage { + return VirtualNetworkListUsageResultPage{ + fn: getNextPage, + vnlur: cur, + } +} + +// VirtualNetworkPeering peerings in a virtual network resource. +type VirtualNetworkPeering struct { + autorest.Response `json:"-"` + // VirtualNetworkPeeringPropertiesFormat - Properties of the virtual network peering. + *VirtualNetworkPeeringPropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualNetworkPeering. +func (vnp VirtualNetworkPeering) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vnp.VirtualNetworkPeeringPropertiesFormat != nil { + objectMap["properties"] = vnp.VirtualNetworkPeeringPropertiesFormat + } + if vnp.Name != nil { + objectMap["name"] = vnp.Name + } + if vnp.ID != nil { + objectMap["id"] = vnp.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for VirtualNetworkPeering struct. +func (vnp *VirtualNetworkPeering) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var virtualNetworkPeeringPropertiesFormat VirtualNetworkPeeringPropertiesFormat + err = json.Unmarshal(*v, &virtualNetworkPeeringPropertiesFormat) + if err != nil { + return err + } + vnp.VirtualNetworkPeeringPropertiesFormat = &virtualNetworkPeeringPropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + vnp.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + vnp.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + vnp.ID = &ID + } + } + } + + return nil +} + +// VirtualNetworkPeeringListResult response for ListSubnets API service call. Retrieves all subnets that +// belong to a virtual network. +type VirtualNetworkPeeringListResult struct { + autorest.Response `json:"-"` + // Value - The peerings in a virtual network. + Value *[]VirtualNetworkPeering `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// VirtualNetworkPeeringListResultIterator provides access to a complete listing of VirtualNetworkPeering +// values. +type VirtualNetworkPeeringListResultIterator struct { + i int + page VirtualNetworkPeeringListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *VirtualNetworkPeeringListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkPeeringListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *VirtualNetworkPeeringListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter VirtualNetworkPeeringListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter VirtualNetworkPeeringListResultIterator) Response() VirtualNetworkPeeringListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter VirtualNetworkPeeringListResultIterator) Value() VirtualNetworkPeering { + if !iter.page.NotDone() { + return VirtualNetworkPeering{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the VirtualNetworkPeeringListResultIterator type. +func NewVirtualNetworkPeeringListResultIterator(page VirtualNetworkPeeringListResultPage) VirtualNetworkPeeringListResultIterator { + return VirtualNetworkPeeringListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (vnplr VirtualNetworkPeeringListResult) IsEmpty() bool { + return vnplr.Value == nil || len(*vnplr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (vnplr VirtualNetworkPeeringListResult) hasNextLink() bool { + return vnplr.NextLink != nil && len(*vnplr.NextLink) != 0 +} + +// virtualNetworkPeeringListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (vnplr VirtualNetworkPeeringListResult) virtualNetworkPeeringListResultPreparer(ctx context.Context) (*http.Request, error) { + if !vnplr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(vnplr.NextLink))) +} + +// VirtualNetworkPeeringListResultPage contains a page of VirtualNetworkPeering values. +type VirtualNetworkPeeringListResultPage struct { + fn func(context.Context, VirtualNetworkPeeringListResult) (VirtualNetworkPeeringListResult, error) + vnplr VirtualNetworkPeeringListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *VirtualNetworkPeeringListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkPeeringListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.vnplr) + if err != nil { + return err + } + page.vnplr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *VirtualNetworkPeeringListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page VirtualNetworkPeeringListResultPage) NotDone() bool { + return !page.vnplr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page VirtualNetworkPeeringListResultPage) Response() VirtualNetworkPeeringListResult { + return page.vnplr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page VirtualNetworkPeeringListResultPage) Values() []VirtualNetworkPeering { + if page.vnplr.IsEmpty() { + return nil + } + return *page.vnplr.Value +} + +// Creates a new instance of the VirtualNetworkPeeringListResultPage type. +func NewVirtualNetworkPeeringListResultPage(cur VirtualNetworkPeeringListResult, getNextPage func(context.Context, VirtualNetworkPeeringListResult) (VirtualNetworkPeeringListResult, error)) VirtualNetworkPeeringListResultPage { + return VirtualNetworkPeeringListResultPage{ + fn: getNextPage, + vnplr: cur, + } +} + +// VirtualNetworkPeeringPropertiesFormat properties of the virtual network peering. +type VirtualNetworkPeeringPropertiesFormat struct { + // AllowVirtualNetworkAccess - Whether the VMs in the local virtual network space would be able to access the VMs in remote virtual network space. + AllowVirtualNetworkAccess *bool `json:"allowVirtualNetworkAccess,omitempty"` + // AllowForwardedTraffic - Whether the forwarded traffic from the VMs in the local virtual network will be allowed/disallowed in remote virtual network. + AllowForwardedTraffic *bool `json:"allowForwardedTraffic,omitempty"` + // AllowGatewayTransit - If gateway links can be used in remote virtual networking to link to this virtual network. + AllowGatewayTransit *bool `json:"allowGatewayTransit,omitempty"` + // UseRemoteGateways - If remote gateways can be used on this virtual network. If the flag is set to true, and allowGatewayTransit on remote peering is also true, virtual network will use gateways of remote virtual network for transit. Only one peering can have this flag set to true. This flag cannot be set if virtual network already has a gateway. + UseRemoteGateways *bool `json:"useRemoteGateways,omitempty"` + // RemoteVirtualNetwork - The reference to the remote virtual network. The remote virtual network can be in the same or different region (preview). See here to register for the preview and learn more (https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering). + RemoteVirtualNetwork *SubResource `json:"remoteVirtualNetwork,omitempty"` + // RemoteAddressSpace - The reference to the remote virtual network address space. + RemoteAddressSpace *AddressSpace `json:"remoteAddressSpace,omitempty"` + // RemoteBgpCommunities - The reference to the remote virtual network's Bgp Communities. + RemoteBgpCommunities *VirtualNetworkBgpCommunities `json:"remoteBgpCommunities,omitempty"` + // PeeringState - The status of the virtual network peering. Possible values include: 'VirtualNetworkPeeringStateInitiated', 'VirtualNetworkPeeringStateConnected', 'VirtualNetworkPeeringStateDisconnected' + PeeringState VirtualNetworkPeeringState `json:"peeringState,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the virtual network peering resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualNetworkPeeringPropertiesFormat. +func (vnppf VirtualNetworkPeeringPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vnppf.AllowVirtualNetworkAccess != nil { + objectMap["allowVirtualNetworkAccess"] = vnppf.AllowVirtualNetworkAccess + } + if vnppf.AllowForwardedTraffic != nil { + objectMap["allowForwardedTraffic"] = vnppf.AllowForwardedTraffic + } + if vnppf.AllowGatewayTransit != nil { + objectMap["allowGatewayTransit"] = vnppf.AllowGatewayTransit + } + if vnppf.UseRemoteGateways != nil { + objectMap["useRemoteGateways"] = vnppf.UseRemoteGateways + } + if vnppf.RemoteVirtualNetwork != nil { + objectMap["remoteVirtualNetwork"] = vnppf.RemoteVirtualNetwork + } + if vnppf.RemoteAddressSpace != nil { + objectMap["remoteAddressSpace"] = vnppf.RemoteAddressSpace + } + if vnppf.RemoteBgpCommunities != nil { + objectMap["remoteBgpCommunities"] = vnppf.RemoteBgpCommunities + } + if vnppf.PeeringState != "" { + objectMap["peeringState"] = vnppf.PeeringState + } + return json.Marshal(objectMap) +} + +// VirtualNetworkPeeringsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VirtualNetworkPeeringsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkPeeringsCreateOrUpdateFuture) Result(client VirtualNetworkPeeringsClient) (vnp VirtualNetworkPeering, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkPeeringsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vnp.Response.Response, err = future.GetResult(sender); err == nil && vnp.Response.Response.StatusCode != http.StatusNoContent { + vnp, err = client.CreateOrUpdateResponder(vnp.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsCreateOrUpdateFuture", "Result", vnp.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualNetworkPeeringsDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VirtualNetworkPeeringsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkPeeringsDeleteFuture) Result(client VirtualNetworkPeeringsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkPeeringsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// VirtualNetworkPropertiesFormat properties of the virtual network. +type VirtualNetworkPropertiesFormat struct { + // AddressSpace - The AddressSpace that contains an array of IP address ranges that can be used by subnets. + AddressSpace *AddressSpace `json:"addressSpace,omitempty"` + // DhcpOptions - The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network. + DhcpOptions *DhcpOptions `json:"dhcpOptions,omitempty"` + // Subnets - A list of subnets in a Virtual Network. + Subnets *[]Subnet `json:"subnets,omitempty"` + // VirtualNetworkPeerings - A list of peerings in a Virtual Network. + VirtualNetworkPeerings *[]VirtualNetworkPeering `json:"virtualNetworkPeerings,omitempty"` + // ResourceGUID - READ-ONLY; The resourceGuid property of the Virtual Network resource. + ResourceGUID *string `json:"resourceGuid,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the virtual network resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // EnableDdosProtection - Indicates if DDoS protection is enabled for all the protected resources in the virtual network. It requires a DDoS protection plan associated with the resource. + EnableDdosProtection *bool `json:"enableDdosProtection,omitempty"` + // EnableVMProtection - Indicates if VM protection is enabled for all the subnets in the virtual network. + EnableVMProtection *bool `json:"enableVmProtection,omitempty"` + // DdosProtectionPlan - The DDoS protection plan associated with the virtual network. + DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` + // BgpCommunities - Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET. + BgpCommunities *VirtualNetworkBgpCommunities `json:"bgpCommunities,omitempty"` + // IPAllocations - Array of IpAllocation which reference this VNET. + IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualNetworkPropertiesFormat. +func (vnpf VirtualNetworkPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vnpf.AddressSpace != nil { + objectMap["addressSpace"] = vnpf.AddressSpace + } + if vnpf.DhcpOptions != nil { + objectMap["dhcpOptions"] = vnpf.DhcpOptions + } + if vnpf.Subnets != nil { + objectMap["subnets"] = vnpf.Subnets + } + if vnpf.VirtualNetworkPeerings != nil { + objectMap["virtualNetworkPeerings"] = vnpf.VirtualNetworkPeerings + } + if vnpf.EnableDdosProtection != nil { + objectMap["enableDdosProtection"] = vnpf.EnableDdosProtection + } + if vnpf.EnableVMProtection != nil { + objectMap["enableVmProtection"] = vnpf.EnableVMProtection + } + if vnpf.DdosProtectionPlan != nil { + objectMap["ddosProtectionPlan"] = vnpf.DdosProtectionPlan + } + if vnpf.BgpCommunities != nil { + objectMap["bgpCommunities"] = vnpf.BgpCommunities + } + if vnpf.IPAllocations != nil { + objectMap["ipAllocations"] = vnpf.IPAllocations + } + return json.Marshal(objectMap) +} + +// VirtualNetworksCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VirtualNetworksCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworksCreateOrUpdateFuture) Result(client VirtualNetworksClient) (vn VirtualNetwork, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworksCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworksCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vn.Response.Response, err = future.GetResult(sender); err == nil && vn.Response.Response.StatusCode != http.StatusNoContent { + vn, err = client.CreateOrUpdateResponder(vn.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworksCreateOrUpdateFuture", "Result", vn.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualNetworksDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type VirtualNetworksDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworksDeleteFuture) Result(client VirtualNetworksClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworksDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworksDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// VirtualNetworkTap virtual Network Tap resource. +type VirtualNetworkTap struct { + autorest.Response `json:"-"` + // VirtualNetworkTapPropertiesFormat - Virtual Network Tap Properties. + *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for VirtualNetworkTap. +func (vnt VirtualNetworkTap) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vnt.VirtualNetworkTapPropertiesFormat != nil { + objectMap["properties"] = vnt.VirtualNetworkTapPropertiesFormat + } + if vnt.ID != nil { + objectMap["id"] = vnt.ID + } + if vnt.Location != nil { + objectMap["location"] = vnt.Location + } + if vnt.Tags != nil { + objectMap["tags"] = vnt.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for VirtualNetworkTap struct. +func (vnt *VirtualNetworkTap) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var virtualNetworkTapPropertiesFormat VirtualNetworkTapPropertiesFormat + err = json.Unmarshal(*v, &virtualNetworkTapPropertiesFormat) + if err != nil { + return err + } + vnt.VirtualNetworkTapPropertiesFormat = &virtualNetworkTapPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + vnt.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + vnt.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + vnt.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + vnt.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + vnt.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + vnt.Tags = tags + } + } + } + + return nil +} + +// VirtualNetworkTapListResult response for ListVirtualNetworkTap API service call. +type VirtualNetworkTapListResult struct { + autorest.Response `json:"-"` + // Value - A list of VirtualNetworkTaps in a resource group. + Value *[]VirtualNetworkTap `json:"value,omitempty"` + // NextLink - The URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// VirtualNetworkTapListResultIterator provides access to a complete listing of VirtualNetworkTap values. +type VirtualNetworkTapListResultIterator struct { + i int + page VirtualNetworkTapListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *VirtualNetworkTapListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkTapListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *VirtualNetworkTapListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter VirtualNetworkTapListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter VirtualNetworkTapListResultIterator) Response() VirtualNetworkTapListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter VirtualNetworkTapListResultIterator) Value() VirtualNetworkTap { + if !iter.page.NotDone() { + return VirtualNetworkTap{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the VirtualNetworkTapListResultIterator type. +func NewVirtualNetworkTapListResultIterator(page VirtualNetworkTapListResultPage) VirtualNetworkTapListResultIterator { + return VirtualNetworkTapListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (vntlr VirtualNetworkTapListResult) IsEmpty() bool { + return vntlr.Value == nil || len(*vntlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (vntlr VirtualNetworkTapListResult) hasNextLink() bool { + return vntlr.NextLink != nil && len(*vntlr.NextLink) != 0 +} + +// virtualNetworkTapListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (vntlr VirtualNetworkTapListResult) virtualNetworkTapListResultPreparer(ctx context.Context) (*http.Request, error) { + if !vntlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(vntlr.NextLink))) +} + +// VirtualNetworkTapListResultPage contains a page of VirtualNetworkTap values. +type VirtualNetworkTapListResultPage struct { + fn func(context.Context, VirtualNetworkTapListResult) (VirtualNetworkTapListResult, error) + vntlr VirtualNetworkTapListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *VirtualNetworkTapListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkTapListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.vntlr) + if err != nil { + return err + } + page.vntlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *VirtualNetworkTapListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page VirtualNetworkTapListResultPage) NotDone() bool { + return !page.vntlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page VirtualNetworkTapListResultPage) Response() VirtualNetworkTapListResult { + return page.vntlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page VirtualNetworkTapListResultPage) Values() []VirtualNetworkTap { + if page.vntlr.IsEmpty() { + return nil + } + return *page.vntlr.Value +} + +// Creates a new instance of the VirtualNetworkTapListResultPage type. +func NewVirtualNetworkTapListResultPage(cur VirtualNetworkTapListResult, getNextPage func(context.Context, VirtualNetworkTapListResult) (VirtualNetworkTapListResult, error)) VirtualNetworkTapListResultPage { + return VirtualNetworkTapListResultPage{ + fn: getNextPage, + vntlr: cur, + } +} + +// VirtualNetworkTapPropertiesFormat virtual Network Tap properties. +type VirtualNetworkTapPropertiesFormat struct { + // NetworkInterfaceTapConfigurations - READ-ONLY; Specifies the list of resource IDs for the network interface IP configuration that needs to be tapped. + NetworkInterfaceTapConfigurations *[]InterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` + // ResourceGUID - READ-ONLY; The resource GUID property of the virtual network tap resource. + ResourceGUID *string `json:"resourceGuid,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the virtual network tap resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // DestinationNetworkInterfaceIPConfiguration - The reference to the private IP Address of the collector nic that will receive the tap. + DestinationNetworkInterfaceIPConfiguration *InterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` + // DestinationLoadBalancerFrontEndIPConfiguration - The reference to the private IP address on the internal Load Balancer that will receive the tap. + DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` + // DestinationPort - The VXLAN destination port that will receive the tapped traffic. + DestinationPort *int32 `json:"destinationPort,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualNetworkTapPropertiesFormat. +func (vntpf VirtualNetworkTapPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vntpf.DestinationNetworkInterfaceIPConfiguration != nil { + objectMap["destinationNetworkInterfaceIPConfiguration"] = vntpf.DestinationNetworkInterfaceIPConfiguration + } + if vntpf.DestinationLoadBalancerFrontEndIPConfiguration != nil { + objectMap["destinationLoadBalancerFrontEndIPConfiguration"] = vntpf.DestinationLoadBalancerFrontEndIPConfiguration + } + if vntpf.DestinationPort != nil { + objectMap["destinationPort"] = vntpf.DestinationPort + } + return json.Marshal(objectMap) +} + +// VirtualNetworkTapsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VirtualNetworkTapsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkTapsCreateOrUpdateFuture) Result(client VirtualNetworkTapsClient) (vnt VirtualNetworkTap, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkTapsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vnt.Response.Response, err = future.GetResult(sender); err == nil && vnt.Response.Response.StatusCode != http.StatusNoContent { + vnt, err = client.CreateOrUpdateResponder(vnt.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsCreateOrUpdateFuture", "Result", vnt.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualNetworkTapsDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VirtualNetworkTapsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualNetworkTapsDeleteFuture) Result(client VirtualNetworkTapsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkTapsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// VirtualNetworkUsage usage details for subnet. +type VirtualNetworkUsage struct { + // CurrentValue - READ-ONLY; Indicates number of IPs used from the Subnet. + CurrentValue *float64 `json:"currentValue,omitempty"` + // ID - READ-ONLY; Subnet identifier. + ID *string `json:"id,omitempty"` + // Limit - READ-ONLY; Indicates the size of the subnet. + Limit *float64 `json:"limit,omitempty"` + // Name - READ-ONLY; The name containing common and localized value for usage. + Name *VirtualNetworkUsageName `json:"name,omitempty"` + // Unit - READ-ONLY; Usage units. Returns 'Count'. + Unit *string `json:"unit,omitempty"` +} + +// VirtualNetworkUsageName usage strings container. +type VirtualNetworkUsageName struct { + // LocalizedValue - READ-ONLY; Localized subnet size and usage string. + LocalizedValue *string `json:"localizedValue,omitempty"` + // Value - READ-ONLY; Subnet size and usage string. + Value *string `json:"value,omitempty"` +} + +// VirtualRouter virtualRouter Resource. +type VirtualRouter struct { + autorest.Response `json:"-"` + // VirtualRouterPropertiesFormat - Properties of the Virtual Router. + *VirtualRouterPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for VirtualRouter. +func (vr VirtualRouter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vr.VirtualRouterPropertiesFormat != nil { + objectMap["properties"] = vr.VirtualRouterPropertiesFormat + } + if vr.ID != nil { + objectMap["id"] = vr.ID + } + if vr.Location != nil { + objectMap["location"] = vr.Location + } + if vr.Tags != nil { + objectMap["tags"] = vr.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for VirtualRouter struct. +func (vr *VirtualRouter) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var virtualRouterPropertiesFormat VirtualRouterPropertiesFormat + err = json.Unmarshal(*v, &virtualRouterPropertiesFormat) + if err != nil { + return err + } + vr.VirtualRouterPropertiesFormat = &virtualRouterPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + vr.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + vr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + vr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + vr.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + vr.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + vr.Tags = tags + } + } + } + + return nil +} + +// VirtualRouterListResult response for ListVirtualRouters API service call. +type VirtualRouterListResult struct { + autorest.Response `json:"-"` + // Value - List of Virtual Routers. + Value *[]VirtualRouter `json:"value,omitempty"` + // NextLink - URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// VirtualRouterListResultIterator provides access to a complete listing of VirtualRouter values. +type VirtualRouterListResultIterator struct { + i int + page VirtualRouterListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *VirtualRouterListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualRouterListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *VirtualRouterListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter VirtualRouterListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter VirtualRouterListResultIterator) Response() VirtualRouterListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter VirtualRouterListResultIterator) Value() VirtualRouter { + if !iter.page.NotDone() { + return VirtualRouter{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the VirtualRouterListResultIterator type. +func NewVirtualRouterListResultIterator(page VirtualRouterListResultPage) VirtualRouterListResultIterator { + return VirtualRouterListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (vrlr VirtualRouterListResult) IsEmpty() bool { + return vrlr.Value == nil || len(*vrlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (vrlr VirtualRouterListResult) hasNextLink() bool { + return vrlr.NextLink != nil && len(*vrlr.NextLink) != 0 +} + +// virtualRouterListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (vrlr VirtualRouterListResult) virtualRouterListResultPreparer(ctx context.Context) (*http.Request, error) { + if !vrlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(vrlr.NextLink))) +} + +// VirtualRouterListResultPage contains a page of VirtualRouter values. +type VirtualRouterListResultPage struct { + fn func(context.Context, VirtualRouterListResult) (VirtualRouterListResult, error) + vrlr VirtualRouterListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *VirtualRouterListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualRouterListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.vrlr) + if err != nil { + return err + } + page.vrlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *VirtualRouterListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page VirtualRouterListResultPage) NotDone() bool { + return !page.vrlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page VirtualRouterListResultPage) Response() VirtualRouterListResult { + return page.vrlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page VirtualRouterListResultPage) Values() []VirtualRouter { + if page.vrlr.IsEmpty() { + return nil + } + return *page.vrlr.Value +} + +// Creates a new instance of the VirtualRouterListResultPage type. +func NewVirtualRouterListResultPage(cur VirtualRouterListResult, getNextPage func(context.Context, VirtualRouterListResult) (VirtualRouterListResult, error)) VirtualRouterListResultPage { + return VirtualRouterListResultPage{ + fn: getNextPage, + vrlr: cur, + } +} + +// VirtualRouterPeering virtual Router Peering resource. +type VirtualRouterPeering struct { + autorest.Response `json:"-"` + // VirtualRouterPeeringProperties - The properties of the Virtual Router Peering. + *VirtualRouterPeeringProperties `json:"properties,omitempty"` + // Name - Name of the virtual router peering that is unique within a virtual router. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Peering type. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualRouterPeering. +func (vrp VirtualRouterPeering) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vrp.VirtualRouterPeeringProperties != nil { + objectMap["properties"] = vrp.VirtualRouterPeeringProperties + } + if vrp.Name != nil { + objectMap["name"] = vrp.Name + } + if vrp.ID != nil { + objectMap["id"] = vrp.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for VirtualRouterPeering struct. +func (vrp *VirtualRouterPeering) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var virtualRouterPeeringProperties VirtualRouterPeeringProperties + err = json.Unmarshal(*v, &virtualRouterPeeringProperties) + if err != nil { + return err + } + vrp.VirtualRouterPeeringProperties = &virtualRouterPeeringProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + vrp.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + vrp.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + vrp.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + vrp.ID = &ID + } + } + } + + return nil +} + +// VirtualRouterPeeringListResult response for ListVirtualRouterPeerings API service call. +type VirtualRouterPeeringListResult struct { + autorest.Response `json:"-"` + // Value - List of VirtualRouterPeerings in a VirtualRouter. + Value *[]VirtualRouterPeering `json:"value,omitempty"` + // NextLink - URL to get the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// VirtualRouterPeeringListResultIterator provides access to a complete listing of VirtualRouterPeering +// values. +type VirtualRouterPeeringListResultIterator struct { + i int + page VirtualRouterPeeringListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *VirtualRouterPeeringListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualRouterPeeringListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *VirtualRouterPeeringListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter VirtualRouterPeeringListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter VirtualRouterPeeringListResultIterator) Response() VirtualRouterPeeringListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter VirtualRouterPeeringListResultIterator) Value() VirtualRouterPeering { + if !iter.page.NotDone() { + return VirtualRouterPeering{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the VirtualRouterPeeringListResultIterator type. +func NewVirtualRouterPeeringListResultIterator(page VirtualRouterPeeringListResultPage) VirtualRouterPeeringListResultIterator { + return VirtualRouterPeeringListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (vrplr VirtualRouterPeeringListResult) IsEmpty() bool { + return vrplr.Value == nil || len(*vrplr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (vrplr VirtualRouterPeeringListResult) hasNextLink() bool { + return vrplr.NextLink != nil && len(*vrplr.NextLink) != 0 +} + +// virtualRouterPeeringListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (vrplr VirtualRouterPeeringListResult) virtualRouterPeeringListResultPreparer(ctx context.Context) (*http.Request, error) { + if !vrplr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(vrplr.NextLink))) +} + +// VirtualRouterPeeringListResultPage contains a page of VirtualRouterPeering values. +type VirtualRouterPeeringListResultPage struct { + fn func(context.Context, VirtualRouterPeeringListResult) (VirtualRouterPeeringListResult, error) + vrplr VirtualRouterPeeringListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *VirtualRouterPeeringListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualRouterPeeringListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.vrplr) + if err != nil { + return err + } + page.vrplr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *VirtualRouterPeeringListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page VirtualRouterPeeringListResultPage) NotDone() bool { + return !page.vrplr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page VirtualRouterPeeringListResultPage) Response() VirtualRouterPeeringListResult { + return page.vrplr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page VirtualRouterPeeringListResultPage) Values() []VirtualRouterPeering { + if page.vrplr.IsEmpty() { + return nil + } + return *page.vrplr.Value +} + +// Creates a new instance of the VirtualRouterPeeringListResultPage type. +func NewVirtualRouterPeeringListResultPage(cur VirtualRouterPeeringListResult, getNextPage func(context.Context, VirtualRouterPeeringListResult) (VirtualRouterPeeringListResult, error)) VirtualRouterPeeringListResultPage { + return VirtualRouterPeeringListResultPage{ + fn: getNextPage, + vrplr: cur, + } +} + +// VirtualRouterPeeringProperties properties of the rule group. +type VirtualRouterPeeringProperties struct { + // PeerAsn - Peer ASN. + PeerAsn *int64 `json:"peerAsn,omitempty"` + // PeerIP - Peer IP. + PeerIP *string `json:"peerIp,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualRouterPeeringProperties. +func (vrpp VirtualRouterPeeringProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vrpp.PeerAsn != nil { + objectMap["peerAsn"] = vrpp.PeerAsn + } + if vrpp.PeerIP != nil { + objectMap["peerIp"] = vrpp.PeerIP + } + return json.Marshal(objectMap) +} + +// VirtualRouterPeeringsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VirtualRouterPeeringsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualRouterPeeringsCreateOrUpdateFuture) Result(client VirtualRouterPeeringsClient) (vrp VirtualRouterPeering, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualRouterPeeringsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vrp.Response.Response, err = future.GetResult(sender); err == nil && vrp.Response.Response.StatusCode != http.StatusNoContent { + vrp, err = client.CreateOrUpdateResponder(vrp.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsCreateOrUpdateFuture", "Result", vrp.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualRouterPeeringsDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VirtualRouterPeeringsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualRouterPeeringsDeleteFuture) Result(client VirtualRouterPeeringsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualRouterPeeringsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// VirtualRouterPropertiesFormat virtual Router definition. +type VirtualRouterPropertiesFormat struct { + // VirtualRouterAsn - VirtualRouter ASN. + VirtualRouterAsn *int64 `json:"virtualRouterAsn,omitempty"` + // VirtualRouterIps - VirtualRouter IPs. + VirtualRouterIps *[]string `json:"virtualRouterIps,omitempty"` + // HostedSubnet - The Subnet on which VirtualRouter is hosted. + HostedSubnet *SubResource `json:"hostedSubnet,omitempty"` + // HostedGateway - The Gateway on which VirtualRouter is hosted. + HostedGateway *SubResource `json:"hostedGateway,omitempty"` + // Peerings - READ-ONLY; List of references to VirtualRouterPeerings. + Peerings *[]SubResource `json:"peerings,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualRouterPropertiesFormat. +func (vrpf VirtualRouterPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vrpf.VirtualRouterAsn != nil { + objectMap["virtualRouterAsn"] = vrpf.VirtualRouterAsn + } + if vrpf.VirtualRouterIps != nil { + objectMap["virtualRouterIps"] = vrpf.VirtualRouterIps + } + if vrpf.HostedSubnet != nil { + objectMap["hostedSubnet"] = vrpf.HostedSubnet + } + if vrpf.HostedGateway != nil { + objectMap["hostedGateway"] = vrpf.HostedGateway + } + return json.Marshal(objectMap) +} + +// VirtualRoutersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VirtualRoutersCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualRoutersCreateOrUpdateFuture) Result(client VirtualRoutersClient) (vr VirtualRouter, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRoutersCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualRoutersCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vr.Response.Response, err = future.GetResult(sender); err == nil && vr.Response.Response.StatusCode != http.StatusNoContent { + vr, err = client.CreateOrUpdateResponder(vr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRoutersCreateOrUpdateFuture", "Result", vr.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualRoutersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type VirtualRoutersDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualRoutersDeleteFuture) Result(client VirtualRoutersClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRoutersDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualRoutersDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// VirtualWAN virtualWAN Resource. +type VirtualWAN struct { + autorest.Response `json:"-"` + // VirtualWanProperties - Properties of the virtual WAN. + *VirtualWanProperties `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for VirtualWAN. +func (vw VirtualWAN) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vw.VirtualWanProperties != nil { + objectMap["properties"] = vw.VirtualWanProperties + } + if vw.ID != nil { + objectMap["id"] = vw.ID + } + if vw.Location != nil { + objectMap["location"] = vw.Location + } + if vw.Tags != nil { + objectMap["tags"] = vw.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for VirtualWAN struct. +func (vw *VirtualWAN) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var virtualWanProperties VirtualWanProperties + err = json.Unmarshal(*v, &virtualWanProperties) + if err != nil { + return err + } + vw.VirtualWanProperties = &virtualWanProperties + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + vw.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + vw.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + vw.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + vw.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + vw.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + vw.Tags = tags + } + } + } + + return nil +} + +// VirtualWanProperties parameters for VirtualWAN. +type VirtualWanProperties struct { + // DisableVpnEncryption - Vpn encryption to be disabled or not. + DisableVpnEncryption *bool `json:"disableVpnEncryption,omitempty"` + // VirtualHubs - READ-ONLY; List of VirtualHubs in the VirtualWAN. + VirtualHubs *[]SubResource `json:"virtualHubs,omitempty"` + // VpnSites - READ-ONLY; List of VpnSites in the VirtualWAN. + VpnSites *[]SubResource `json:"vpnSites,omitempty"` + // AllowBranchToBranchTraffic - True if branch to branch traffic is allowed. + AllowBranchToBranchTraffic *bool `json:"allowBranchToBranchTraffic,omitempty"` + // AllowVnetToVnetTraffic - True if Vnet to Vnet traffic is allowed. + AllowVnetToVnetTraffic *bool `json:"allowVnetToVnetTraffic,omitempty"` + // Office365LocalBreakoutCategory - The office local breakout category. Possible values include: 'OfficeTrafficCategoryOptimize', 'OfficeTrafficCategoryOptimizeAndAllow', 'OfficeTrafficCategoryAll', 'OfficeTrafficCategoryNone' + Office365LocalBreakoutCategory OfficeTrafficCategory `json:"office365LocalBreakoutCategory,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the virtual WAN resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // Type - The type of the VirtualWAN. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualWanProperties. +func (vwp VirtualWanProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vwp.DisableVpnEncryption != nil { + objectMap["disableVpnEncryption"] = vwp.DisableVpnEncryption + } + if vwp.AllowBranchToBranchTraffic != nil { + objectMap["allowBranchToBranchTraffic"] = vwp.AllowBranchToBranchTraffic + } + if vwp.AllowVnetToVnetTraffic != nil { + objectMap["allowVnetToVnetTraffic"] = vwp.AllowVnetToVnetTraffic + } + if vwp.Office365LocalBreakoutCategory != "" { + objectMap["office365LocalBreakoutCategory"] = vwp.Office365LocalBreakoutCategory + } + if vwp.Type != nil { + objectMap["type"] = vwp.Type + } + return json.Marshal(objectMap) +} + +// VirtualWansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VirtualWansCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualWansCreateOrUpdateFuture) Result(client VirtualWansClient) (vw VirtualWAN, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualWansCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualWansCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vw.Response.Response, err = future.GetResult(sender); err == nil && vw.Response.Response.StatusCode != http.StatusNoContent { + vw, err = client.CreateOrUpdateResponder(vw.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualWansCreateOrUpdateFuture", "Result", vw.Response.Response, "Failure responding to request") + } + } + return +} + +// VirtualWansDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type VirtualWansDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VirtualWansDeleteFuture) Result(client VirtualWansClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualWansDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VirtualWansDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// VirtualWanSecurityProvider collection of SecurityProviders. +type VirtualWanSecurityProvider struct { + // Name - Name of the security provider. + Name *string `json:"name,omitempty"` + // URL - Url of the security provider. + URL *string `json:"url,omitempty"` + // Type - Name of the security provider. Possible values include: 'External', 'Native' + Type VirtualWanSecurityProviderType `json:"type,omitempty"` +} + +// VirtualWanSecurityProviders collection of SecurityProviders. +type VirtualWanSecurityProviders struct { + autorest.Response `json:"-"` + // SupportedProviders - List of VirtualWAN security providers. + SupportedProviders *[]VirtualWanSecurityProvider `json:"supportedProviders,omitempty"` +} + +// VirtualWanVpnProfileParameters virtual Wan Vpn profile parameters Vpn profile generation. +type VirtualWanVpnProfileParameters struct { + // VpnServerConfigurationResourceID - VpnServerConfiguration partial resource uri with which VirtualWan is associated to. + VpnServerConfigurationResourceID *string `json:"vpnServerConfigurationResourceId,omitempty"` + // AuthenticationMethod - VPN client authentication method. Possible values include: 'EAPTLS', 'EAPMSCHAPv2' + AuthenticationMethod AuthenticationMethod `json:"authenticationMethod,omitempty"` +} + +// VM describes a Virtual Machine. +type VM struct { + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for VM. +func (vVar VM) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vVar.ID != nil { + objectMap["id"] = vVar.ID + } + if vVar.Location != nil { + objectMap["location"] = vVar.Location + } + if vVar.Tags != nil { + objectMap["tags"] = vVar.Tags + } + return json.Marshal(objectMap) +} + +// VnetRoute list of routes that control routing from VirtualHub into a virtual network connection. +type VnetRoute struct { + // StaticRoutes - List of all Static Routes. + StaticRoutes *[]StaticRoute `json:"staticRoutes,omitempty"` +} + +// VpnClientConfiguration vpnClientConfiguration for P2S client. +type VpnClientConfiguration struct { + // VpnClientAddressPool - The reference to the address space resource which represents Address space for P2S VpnClient. + VpnClientAddressPool *AddressSpace `json:"vpnClientAddressPool,omitempty"` + // VpnClientRootCertificates - VpnClientRootCertificate for virtual network gateway. + VpnClientRootCertificates *[]VpnClientRootCertificate `json:"vpnClientRootCertificates,omitempty"` + // VpnClientRevokedCertificates - VpnClientRevokedCertificate for Virtual network gateway. + VpnClientRevokedCertificates *[]VpnClientRevokedCertificate `json:"vpnClientRevokedCertificates,omitempty"` + // VpnClientProtocols - VpnClientProtocols for Virtual network gateway. + VpnClientProtocols *[]VpnClientProtocol `json:"vpnClientProtocols,omitempty"` + // VpnClientIpsecPolicies - VpnClientIpsecPolicies for virtual network gateway P2S client. + VpnClientIpsecPolicies *[]IpsecPolicy `json:"vpnClientIpsecPolicies,omitempty"` + // RadiusServerAddress - The radius server address property of the VirtualNetworkGateway resource for vpn client connection. + RadiusServerAddress *string `json:"radiusServerAddress,omitempty"` + // RadiusServerSecret - The radius secret property of the VirtualNetworkGateway resource for vpn client connection. + RadiusServerSecret *string `json:"radiusServerSecret,omitempty"` + // RadiusServers - The radiusServers property for multiple radius server configuration. + RadiusServers *[]RadiusServer `json:"radiusServers,omitempty"` + // AadTenant - The AADTenant property of the VirtualNetworkGateway resource for vpn client connection used for AAD authentication. + AadTenant *string `json:"aadTenant,omitempty"` + // AadAudience - The AADAudience property of the VirtualNetworkGateway resource for vpn client connection used for AAD authentication. + AadAudience *string `json:"aadAudience,omitempty"` + // AadIssuer - The AADIssuer property of the VirtualNetworkGateway resource for vpn client connection used for AAD authentication. + AadIssuer *string `json:"aadIssuer,omitempty"` +} + +// VpnClientConnectionHealth vpnClientConnectionHealth properties. +type VpnClientConnectionHealth struct { + // TotalIngressBytesTransferred - READ-ONLY; Total of the Ingress Bytes Transferred in this P2S Vpn connection. + TotalIngressBytesTransferred *int64 `json:"totalIngressBytesTransferred,omitempty"` + // TotalEgressBytesTransferred - READ-ONLY; Total of the Egress Bytes Transferred in this connection. + TotalEgressBytesTransferred *int64 `json:"totalEgressBytesTransferred,omitempty"` + // VpnClientConnectionsCount - The total of p2s vpn clients connected at this time to this P2SVpnGateway. + VpnClientConnectionsCount *int32 `json:"vpnClientConnectionsCount,omitempty"` + // AllocatedIPAddresses - List of allocated ip addresses to the connected p2s vpn clients. + AllocatedIPAddresses *[]string `json:"allocatedIpAddresses,omitempty"` +} + +// MarshalJSON is the custom marshaler for VpnClientConnectionHealth. +func (vcch VpnClientConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vcch.VpnClientConnectionsCount != nil { + objectMap["vpnClientConnectionsCount"] = vcch.VpnClientConnectionsCount + } + if vcch.AllocatedIPAddresses != nil { + objectMap["allocatedIpAddresses"] = vcch.AllocatedIPAddresses + } + return json.Marshal(objectMap) +} + +// VpnClientConnectionHealthDetail VPN client connection health detail. +type VpnClientConnectionHealthDetail struct { + // VpnConnectionID - READ-ONLY; The vpn client Id. + VpnConnectionID *string `json:"vpnConnectionId,omitempty"` + // VpnConnectionDuration - READ-ONLY; The duration time of a connected vpn client. + VpnConnectionDuration *int64 `json:"vpnConnectionDuration,omitempty"` + // VpnConnectionTime - READ-ONLY; The start time of a connected vpn client. + VpnConnectionTime *string `json:"vpnConnectionTime,omitempty"` + // PublicIPAddress - READ-ONLY; The public Ip of a connected vpn client. + PublicIPAddress *string `json:"publicIpAddress,omitempty"` + // PrivateIPAddress - READ-ONLY; The assigned private Ip of a connected vpn client. + PrivateIPAddress *string `json:"privateIpAddress,omitempty"` + // VpnUserName - READ-ONLY; The user name of a connected vpn client. + VpnUserName *string `json:"vpnUserName,omitempty"` + // MaxBandwidth - READ-ONLY; The max band width. + MaxBandwidth *int64 `json:"maxBandwidth,omitempty"` + // EgressPacketsTransferred - READ-ONLY; The egress packets per second. + EgressPacketsTransferred *int64 `json:"egressPacketsTransferred,omitempty"` + // EgressBytesTransferred - READ-ONLY; The egress bytes per second. + EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty"` + // IngressPacketsTransferred - READ-ONLY; The ingress packets per second. + IngressPacketsTransferred *int64 `json:"ingressPacketsTransferred,omitempty"` + // IngressBytesTransferred - READ-ONLY; The ingress bytes per second. + IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty"` + // MaxPacketsPerSecond - READ-ONLY; The max packets transferred per second. + MaxPacketsPerSecond *int64 `json:"maxPacketsPerSecond,omitempty"` +} + +// VpnClientConnectionHealthDetailListResult list of virtual network gateway vpn client connection health. +type VpnClientConnectionHealthDetailListResult struct { + autorest.Response `json:"-"` + // Value - List of vpn client connection health. + Value *[]VpnClientConnectionHealthDetail `json:"value,omitempty"` +} + +// VpnClientIPsecParameters an IPSec parameters for a virtual network gateway P2S connection. +type VpnClientIPsecParameters struct { + autorest.Response `json:"-"` + // SaLifeTimeSeconds - The IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for P2S client. + SaLifeTimeSeconds *int32 `json:"saLifeTimeSeconds,omitempty"` + // SaDataSizeKilobytes - The IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for P2S client.. + SaDataSizeKilobytes *int32 `json:"saDataSizeKilobytes,omitempty"` + // IpsecEncryption - The IPSec encryption algorithm (IKE phase 1). Possible values include: 'IpsecEncryptionNone', 'IpsecEncryptionDES', 'IpsecEncryptionDES3', 'IpsecEncryptionAES128', 'IpsecEncryptionAES192', 'IpsecEncryptionAES256', 'IpsecEncryptionGCMAES128', 'IpsecEncryptionGCMAES192', 'IpsecEncryptionGCMAES256' + IpsecEncryption IpsecEncryption `json:"ipsecEncryption,omitempty"` + // IpsecIntegrity - The IPSec integrity algorithm (IKE phase 1). Possible values include: 'IpsecIntegrityMD5', 'IpsecIntegritySHA1', 'IpsecIntegritySHA256', 'IpsecIntegrityGCMAES128', 'IpsecIntegrityGCMAES192', 'IpsecIntegrityGCMAES256' + IpsecIntegrity IpsecIntegrity `json:"ipsecIntegrity,omitempty"` + // IkeEncryption - The IKE encryption algorithm (IKE phase 2). Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES256', 'GCMAES128' + IkeEncryption IkeEncryption `json:"ikeEncryption,omitempty"` + // IkeIntegrity - The IKE integrity algorithm (IKE phase 2). Possible values include: 'IkeIntegrityMD5', 'IkeIntegritySHA1', 'IkeIntegritySHA256', 'IkeIntegritySHA384', 'IkeIntegrityGCMAES256', 'IkeIntegrityGCMAES128' + IkeIntegrity IkeIntegrity `json:"ikeIntegrity,omitempty"` + // DhGroup - The DH Group used in IKE Phase 1 for initial SA. Possible values include: 'DhGroupNone', 'DhGroupDHGroup1', 'DhGroupDHGroup2', 'DhGroupDHGroup14', 'DhGroupDHGroup2048', 'DhGroupECP256', 'DhGroupECP384', 'DhGroupDHGroup24' + DhGroup DhGroup `json:"dhGroup,omitempty"` + // PfsGroup - The Pfs Group used in IKE Phase 2 for new child SA. Possible values include: 'PfsGroupNone', 'PfsGroupPFS1', 'PfsGroupPFS2', 'PfsGroupPFS2048', 'PfsGroupECP256', 'PfsGroupECP384', 'PfsGroupPFS24', 'PfsGroupPFS14', 'PfsGroupPFSMM' + PfsGroup PfsGroup `json:"pfsGroup,omitempty"` +} + +// VpnClientParameters vpn Client Parameters for package generation. +type VpnClientParameters struct { + // ProcessorArchitecture - VPN client Processor Architecture. Possible values include: 'Amd64', 'X86' + ProcessorArchitecture ProcessorArchitecture `json:"processorArchitecture,omitempty"` + // AuthenticationMethod - VPN client authentication method. Possible values include: 'EAPTLS', 'EAPMSCHAPv2' + AuthenticationMethod AuthenticationMethod `json:"authenticationMethod,omitempty"` + // RadiusServerAuthCertificate - The public certificate data for the radius server authentication certificate as a Base-64 encoded string. Required only if external radius authentication has been configured with EAPTLS authentication. + RadiusServerAuthCertificate *string `json:"radiusServerAuthCertificate,omitempty"` + // ClientRootCertificates - A list of client root certificates public certificate data encoded as Base-64 strings. Optional parameter for external radius based authentication with EAPTLS. + ClientRootCertificates *[]string `json:"clientRootCertificates,omitempty"` +} + +// VpnClientRevokedCertificate VPN client revoked certificate of virtual network gateway. +type VpnClientRevokedCertificate struct { + // VpnClientRevokedCertificatePropertiesFormat - Properties of the vpn client revoked certificate. + *VpnClientRevokedCertificatePropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for VpnClientRevokedCertificate. +func (vcrc VpnClientRevokedCertificate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vcrc.VpnClientRevokedCertificatePropertiesFormat != nil { + objectMap["properties"] = vcrc.VpnClientRevokedCertificatePropertiesFormat + } + if vcrc.Name != nil { + objectMap["name"] = vcrc.Name + } + if vcrc.ID != nil { + objectMap["id"] = vcrc.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for VpnClientRevokedCertificate struct. +func (vcrc *VpnClientRevokedCertificate) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var vpnClientRevokedCertificatePropertiesFormat VpnClientRevokedCertificatePropertiesFormat + err = json.Unmarshal(*v, &vpnClientRevokedCertificatePropertiesFormat) + if err != nil { + return err + } + vcrc.VpnClientRevokedCertificatePropertiesFormat = &vpnClientRevokedCertificatePropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + vcrc.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + vcrc.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + vcrc.ID = &ID + } + } + } + + return nil +} + +// VpnClientRevokedCertificatePropertiesFormat properties of the revoked VPN client certificate of virtual +// network gateway. +type VpnClientRevokedCertificatePropertiesFormat struct { + // Thumbprint - The revoked VPN client certificate thumbprint. + Thumbprint *string `json:"thumbprint,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the VPN client revoked certificate resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for VpnClientRevokedCertificatePropertiesFormat. +func (vcrcpf VpnClientRevokedCertificatePropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vcrcpf.Thumbprint != nil { + objectMap["thumbprint"] = vcrcpf.Thumbprint + } + return json.Marshal(objectMap) +} + +// VpnClientRootCertificate VPN client root certificate of virtual network gateway. +type VpnClientRootCertificate struct { + // VpnClientRootCertificatePropertiesFormat - Properties of the vpn client root certificate. + *VpnClientRootCertificatePropertiesFormat `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for VpnClientRootCertificate. +func (vcrc VpnClientRootCertificate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vcrc.VpnClientRootCertificatePropertiesFormat != nil { + objectMap["properties"] = vcrc.VpnClientRootCertificatePropertiesFormat + } + if vcrc.Name != nil { + objectMap["name"] = vcrc.Name + } + if vcrc.ID != nil { + objectMap["id"] = vcrc.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for VpnClientRootCertificate struct. +func (vcrc *VpnClientRootCertificate) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var vpnClientRootCertificatePropertiesFormat VpnClientRootCertificatePropertiesFormat + err = json.Unmarshal(*v, &vpnClientRootCertificatePropertiesFormat) + if err != nil { + return err + } + vcrc.VpnClientRootCertificatePropertiesFormat = &vpnClientRootCertificatePropertiesFormat + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + vcrc.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + vcrc.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + vcrc.ID = &ID + } + } + } + + return nil +} + +// VpnClientRootCertificatePropertiesFormat properties of SSL certificates of application gateway. +type VpnClientRootCertificatePropertiesFormat struct { + // PublicCertData - The certificate public data. + PublicCertData *string `json:"publicCertData,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the VPN client root certificate resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for VpnClientRootCertificatePropertiesFormat. +func (vcrcpf VpnClientRootCertificatePropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vcrcpf.PublicCertData != nil { + objectMap["publicCertData"] = vcrcpf.PublicCertData + } + return json.Marshal(objectMap) +} + +// VpnConnection vpnConnection Resource. +type VpnConnection struct { + autorest.Response `json:"-"` + // VpnConnectionProperties - Properties of the VPN connection. + *VpnConnectionProperties `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for VpnConnection. +func (vc VpnConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vc.VpnConnectionProperties != nil { + objectMap["properties"] = vc.VpnConnectionProperties + } + if vc.Name != nil { + objectMap["name"] = vc.Name + } + if vc.ID != nil { + objectMap["id"] = vc.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for VpnConnection struct. +func (vc *VpnConnection) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var vpnConnectionProperties VpnConnectionProperties + err = json.Unmarshal(*v, &vpnConnectionProperties) + if err != nil { + return err + } + vc.VpnConnectionProperties = &vpnConnectionProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + vc.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + vc.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + vc.ID = &ID + } + } + } + + return nil +} + +// VpnConnectionPacketCaptureStartParameters vpn Connection packet capture parameters supplied to start +// packet capture on gateway connection. +type VpnConnectionPacketCaptureStartParameters struct { + // FilterData - Start Packet capture parameters on vpn connection. + FilterData *string `json:"filterData,omitempty"` + // LinkConnectionNames - List of site link connection names. + LinkConnectionNames *[]string `json:"linkConnectionNames,omitempty"` +} + +// VpnConnectionPacketCaptureStopParameters vpn Connection packet capture parameters supplied to stop +// packet capture on gateway connection. +type VpnConnectionPacketCaptureStopParameters struct { + // SasURL - SAS url for packet capture on vpn connection. + SasURL *string `json:"sasUrl,omitempty"` + // LinkConnectionNames - List of site link connection names. + LinkConnectionNames *[]string `json:"linkConnectionNames,omitempty"` +} + +// VpnConnectionProperties parameters for VpnConnection. +type VpnConnectionProperties struct { + // RemoteVpnSite - Id of the connected vpn site. + RemoteVpnSite *SubResource `json:"remoteVpnSite,omitempty"` + // RoutingWeight - Routing weight for vpn connection. + RoutingWeight *int32 `json:"routingWeight,omitempty"` + // DpdTimeoutSeconds - DPD timeout in seconds for vpn connection. + DpdTimeoutSeconds *int32 `json:"dpdTimeoutSeconds,omitempty"` + // ConnectionStatus - The connection status. Possible values include: 'VpnConnectionStatusUnknown', 'VpnConnectionStatusConnecting', 'VpnConnectionStatusConnected', 'VpnConnectionStatusNotConnected' + ConnectionStatus VpnConnectionStatus `json:"connectionStatus,omitempty"` + // VpnConnectionProtocolType - Connection protocol used for this connection. Possible values include: 'IKEv2', 'IKEv1' + VpnConnectionProtocolType VirtualNetworkGatewayConnectionProtocol `json:"vpnConnectionProtocolType,omitempty"` + // IngressBytesTransferred - READ-ONLY; Ingress bytes transferred. + IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty"` + // EgressBytesTransferred - READ-ONLY; Egress bytes transferred. + EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty"` + // ConnectionBandwidth - Expected bandwidth in MBPS. + ConnectionBandwidth *int32 `json:"connectionBandwidth,omitempty"` + // SharedKey - SharedKey for the vpn connection. + SharedKey *string `json:"sharedKey,omitempty"` + // EnableBgp - EnableBgp flag. + EnableBgp *bool `json:"enableBgp,omitempty"` + // UsePolicyBasedTrafficSelectors - Enable policy-based traffic selectors. + UsePolicyBasedTrafficSelectors *bool `json:"usePolicyBasedTrafficSelectors,omitempty"` + // IpsecPolicies - The IPSec Policies to be considered by this connection. + IpsecPolicies *[]IpsecPolicy `json:"ipsecPolicies,omitempty"` + // EnableRateLimiting - EnableBgp flag. + EnableRateLimiting *bool `json:"enableRateLimiting,omitempty"` + // EnableInternetSecurity - Enable internet security. + EnableInternetSecurity *bool `json:"enableInternetSecurity,omitempty"` + // UseLocalAzureIPAddress - Use local azure ip to initiate connection. + UseLocalAzureIPAddress *bool `json:"useLocalAzureIpAddress,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the VPN connection resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // VpnLinkConnections - List of all vpn site link connections to the gateway. + VpnLinkConnections *[]VpnSiteLinkConnection `json:"vpnLinkConnections,omitempty"` + // RoutingConfiguration - The Routing Configuration indicating the associated and propagated route tables on this connection. + RoutingConfiguration *RoutingConfiguration `json:"routingConfiguration,omitempty"` +} + +// MarshalJSON is the custom marshaler for VpnConnectionProperties. +func (vcp VpnConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vcp.RemoteVpnSite != nil { + objectMap["remoteVpnSite"] = vcp.RemoteVpnSite + } + if vcp.RoutingWeight != nil { + objectMap["routingWeight"] = vcp.RoutingWeight + } + if vcp.DpdTimeoutSeconds != nil { + objectMap["dpdTimeoutSeconds"] = vcp.DpdTimeoutSeconds + } + if vcp.ConnectionStatus != "" { + objectMap["connectionStatus"] = vcp.ConnectionStatus + } + if vcp.VpnConnectionProtocolType != "" { + objectMap["vpnConnectionProtocolType"] = vcp.VpnConnectionProtocolType + } + if vcp.ConnectionBandwidth != nil { + objectMap["connectionBandwidth"] = vcp.ConnectionBandwidth + } + if vcp.SharedKey != nil { + objectMap["sharedKey"] = vcp.SharedKey + } + if vcp.EnableBgp != nil { + objectMap["enableBgp"] = vcp.EnableBgp + } + if vcp.UsePolicyBasedTrafficSelectors != nil { + objectMap["usePolicyBasedTrafficSelectors"] = vcp.UsePolicyBasedTrafficSelectors + } + if vcp.IpsecPolicies != nil { + objectMap["ipsecPolicies"] = vcp.IpsecPolicies + } + if vcp.EnableRateLimiting != nil { + objectMap["enableRateLimiting"] = vcp.EnableRateLimiting + } + if vcp.EnableInternetSecurity != nil { + objectMap["enableInternetSecurity"] = vcp.EnableInternetSecurity + } + if vcp.UseLocalAzureIPAddress != nil { + objectMap["useLocalAzureIpAddress"] = vcp.UseLocalAzureIPAddress + } + if vcp.VpnLinkConnections != nil { + objectMap["vpnLinkConnections"] = vcp.VpnLinkConnections + } + if vcp.RoutingConfiguration != nil { + objectMap["routingConfiguration"] = vcp.RoutingConfiguration + } + return json.Marshal(objectMap) +} + +// VpnConnectionsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VpnConnectionsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VpnConnectionsCreateOrUpdateFuture) Result(client VpnConnectionsClient) (vc VpnConnection, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnConnectionsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VpnConnectionsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vc.Response.Response, err = future.GetResult(sender); err == nil && vc.Response.Response.StatusCode != http.StatusNoContent { + vc, err = client.CreateOrUpdateResponder(vc.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnConnectionsCreateOrUpdateFuture", "Result", vc.Response.Response, "Failure responding to request") + } + } + return +} + +// VpnConnectionsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type VpnConnectionsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VpnConnectionsDeleteFuture) Result(client VpnConnectionsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnConnectionsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VpnConnectionsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// VpnConnectionsStartPacketCaptureFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VpnConnectionsStartPacketCaptureFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VpnConnectionsStartPacketCaptureFuture) Result(client VpnConnectionsClient) (s String, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnConnectionsStartPacketCaptureFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VpnConnectionsStartPacketCaptureFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if s.Response.Response, err = future.GetResult(sender); err == nil && s.Response.Response.StatusCode != http.StatusNoContent { + s, err = client.StartPacketCaptureResponder(s.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnConnectionsStartPacketCaptureFuture", "Result", s.Response.Response, "Failure responding to request") + } + } + return +} + +// VpnConnectionsStopPacketCaptureFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VpnConnectionsStopPacketCaptureFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VpnConnectionsStopPacketCaptureFuture) Result(client VpnConnectionsClient) (s String, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnConnectionsStopPacketCaptureFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VpnConnectionsStopPacketCaptureFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if s.Response.Response, err = future.GetResult(sender); err == nil && s.Response.Response.StatusCode != http.StatusNoContent { + s, err = client.StopPacketCaptureResponder(s.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnConnectionsStopPacketCaptureFuture", "Result", s.Response.Response, "Failure responding to request") + } + } + return +} + +// VpnDeviceScriptParameters vpn device configuration script generation parameters. +type VpnDeviceScriptParameters struct { + // Vendor - The vendor for the vpn device. + Vendor *string `json:"vendor,omitempty"` + // DeviceFamily - The device family for the vpn device. + DeviceFamily *string `json:"deviceFamily,omitempty"` + // FirmwareVersion - The firmware version for the vpn device. + FirmwareVersion *string `json:"firmwareVersion,omitempty"` +} + +// VpnGateway vpnGateway Resource. +type VpnGateway struct { + autorest.Response `json:"-"` + // VpnGatewayProperties - Properties of the VPN gateway. + *VpnGatewayProperties `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for VpnGateway. +func (vg VpnGateway) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vg.VpnGatewayProperties != nil { + objectMap["properties"] = vg.VpnGatewayProperties + } + if vg.ID != nil { + objectMap["id"] = vg.ID + } + if vg.Location != nil { + objectMap["location"] = vg.Location + } + if vg.Tags != nil { + objectMap["tags"] = vg.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for VpnGateway struct. +func (vg *VpnGateway) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var vpnGatewayProperties VpnGatewayProperties + err = json.Unmarshal(*v, &vpnGatewayProperties) + if err != nil { + return err + } + vg.VpnGatewayProperties = &vpnGatewayProperties + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + vg.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + vg.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + vg.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + vg.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + vg.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + vg.Tags = tags + } + } + } + + return nil +} + +// VpnGatewayIPConfiguration IP Configuration of a VPN Gateway Resource. +type VpnGatewayIPConfiguration struct { + // ID - The identifier of the IP configuration for a VPN Gateway. + ID *string `json:"id,omitempty"` + // PublicIPAddress - The public IP address of this IP configuration. + PublicIPAddress *string `json:"publicIpAddress,omitempty"` + // PrivateIPAddress - The private IP address of this IP configuration. + PrivateIPAddress *string `json:"privateIpAddress,omitempty"` +} + +// VpnGatewayPacketCaptureStartParameters start packet capture parameters. +type VpnGatewayPacketCaptureStartParameters struct { + // FilterData - Start Packet capture parameters on vpn gateway. + FilterData *string `json:"filterData,omitempty"` +} + +// VpnGatewayPacketCaptureStopParameters stop packet capture parameters. +type VpnGatewayPacketCaptureStopParameters struct { + // SasURL - SAS url for packet capture on vpn gateway. + SasURL *string `json:"sasUrl,omitempty"` +} + +// VpnGatewayProperties parameters for VpnGateway. +type VpnGatewayProperties struct { + // VirtualHub - The VirtualHub to which the gateway belongs. + VirtualHub *SubResource `json:"virtualHub,omitempty"` + // Connections - List of all vpn connections to the gateway. + Connections *[]VpnConnection `json:"connections,omitempty"` + // BgpSettings - Local network gateway's BGP speaker settings. + BgpSettings *BgpSettings `json:"bgpSettings,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the VPN gateway resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // VpnGatewayScaleUnit - The scale unit for this vpn gateway. + VpnGatewayScaleUnit *int32 `json:"vpnGatewayScaleUnit,omitempty"` + // IPConfigurations - READ-ONLY; List of all IPs configured on the gateway. + IPConfigurations *[]VpnGatewayIPConfiguration `json:"ipConfigurations,omitempty"` + // IsRoutingPreferenceInternet - Enable Routing Preference property for the Public IP Interface of the VpnGateway. + IsRoutingPreferenceInternet *bool `json:"isRoutingPreferenceInternet,omitempty"` +} + +// MarshalJSON is the custom marshaler for VpnGatewayProperties. +func (vgp VpnGatewayProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vgp.VirtualHub != nil { + objectMap["virtualHub"] = vgp.VirtualHub + } + if vgp.Connections != nil { + objectMap["connections"] = vgp.Connections + } + if vgp.BgpSettings != nil { + objectMap["bgpSettings"] = vgp.BgpSettings + } + if vgp.VpnGatewayScaleUnit != nil { + objectMap["vpnGatewayScaleUnit"] = vgp.VpnGatewayScaleUnit + } + if vgp.IsRoutingPreferenceInternet != nil { + objectMap["isRoutingPreferenceInternet"] = vgp.IsRoutingPreferenceInternet + } + return json.Marshal(objectMap) +} + +// VpnGatewaysCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VpnGatewaysCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VpnGatewaysCreateOrUpdateFuture) Result(client VpnGatewaysClient) (vg VpnGateway, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VpnGatewaysCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vg.Response.Response, err = future.GetResult(sender); err == nil && vg.Response.Response.StatusCode != http.StatusNoContent { + vg, err = client.CreateOrUpdateResponder(vg.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysCreateOrUpdateFuture", "Result", vg.Response.Response, "Failure responding to request") + } + } + return +} + +// VpnGatewaysDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type VpnGatewaysDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VpnGatewaysDeleteFuture) Result(client VpnGatewaysClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VpnGatewaysDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// VpnGatewaysResetFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type VpnGatewaysResetFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VpnGatewaysResetFuture) Result(client VpnGatewaysClient) (vg VpnGateway, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysResetFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VpnGatewaysResetFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vg.Response.Response, err = future.GetResult(sender); err == nil && vg.Response.Response.StatusCode != http.StatusNoContent { + vg, err = client.ResetResponder(vg.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysResetFuture", "Result", vg.Response.Response, "Failure responding to request") + } + } + return +} + +// VpnGatewaysStartPacketCaptureFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VpnGatewaysStartPacketCaptureFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VpnGatewaysStartPacketCaptureFuture) Result(client VpnGatewaysClient) (s String, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysStartPacketCaptureFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VpnGatewaysStartPacketCaptureFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if s.Response.Response, err = future.GetResult(sender); err == nil && s.Response.Response.StatusCode != http.StatusNoContent { + s, err = client.StartPacketCaptureResponder(s.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysStartPacketCaptureFuture", "Result", s.Response.Response, "Failure responding to request") + } + } + return +} + +// VpnGatewaysStopPacketCaptureFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VpnGatewaysStopPacketCaptureFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VpnGatewaysStopPacketCaptureFuture) Result(client VpnGatewaysClient) (s String, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysStopPacketCaptureFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VpnGatewaysStopPacketCaptureFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if s.Response.Response, err = future.GetResult(sender); err == nil && s.Response.Response.StatusCode != http.StatusNoContent { + s, err = client.StopPacketCaptureResponder(s.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysStopPacketCaptureFuture", "Result", s.Response.Response, "Failure responding to request") + } + } + return +} + +// VpnGatewaysUpdateTagsFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type VpnGatewaysUpdateTagsFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VpnGatewaysUpdateTagsFuture) Result(client VpnGatewaysClient) (vg VpnGateway, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysUpdateTagsFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VpnGatewaysUpdateTagsFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vg.Response.Response, err = future.GetResult(sender); err == nil && vg.Response.Response.StatusCode != http.StatusNoContent { + vg, err = client.UpdateTagsResponder(vg.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysUpdateTagsFuture", "Result", vg.Response.Response, "Failure responding to request") + } + } + return +} + +// VpnLinkBgpSettings BGP settings details for a link. +type VpnLinkBgpSettings struct { + // Asn - The BGP speaker's ASN. + Asn *int64 `json:"asn,omitempty"` + // BgpPeeringAddress - The BGP peering address and BGP identifier of this BGP speaker. + BgpPeeringAddress *string `json:"bgpPeeringAddress,omitempty"` +} + +// VpnLinkProviderProperties list of properties of a link provider. +type VpnLinkProviderProperties struct { + // LinkProviderName - Name of the link provider. + LinkProviderName *string `json:"linkProviderName,omitempty"` + // LinkSpeedInMbps - Link speed. + LinkSpeedInMbps *int32 `json:"linkSpeedInMbps,omitempty"` +} + +// VpnPacketCaptureStartParameters start packet capture parameters on virtual network gateway. +type VpnPacketCaptureStartParameters struct { + // FilterData - Start Packet capture parameters. + FilterData *string `json:"filterData,omitempty"` +} + +// VpnPacketCaptureStopParameters stop packet capture parameters. +type VpnPacketCaptureStopParameters struct { + // SasURL - SAS url for packet capture on virtual network gateway. + SasURL *string `json:"sasUrl,omitempty"` +} + +// VpnProfileResponse vpn Profile Response for package generation. +type VpnProfileResponse struct { + autorest.Response `json:"-"` + // ProfileURL - URL to the VPN profile. + ProfileURL *string `json:"profileUrl,omitempty"` +} + +// VpnServerConfigRadiusClientRootCertificate properties of the Radius client root certificate of +// VpnServerConfiguration. +type VpnServerConfigRadiusClientRootCertificate struct { + // Name - The certificate name. + Name *string `json:"name,omitempty"` + // Thumbprint - The Radius client root certificate thumbprint. + Thumbprint *string `json:"thumbprint,omitempty"` +} + +// VpnServerConfigRadiusServerRootCertificate properties of Radius Server root certificate of +// VpnServerConfiguration. +type VpnServerConfigRadiusServerRootCertificate struct { + // Name - The certificate name. + Name *string `json:"name,omitempty"` + // PublicCertData - The certificate public data. + PublicCertData *string `json:"publicCertData,omitempty"` +} + +// VpnServerConfiguration vpnServerConfiguration Resource. +type VpnServerConfiguration struct { + autorest.Response `json:"-"` + // VpnServerConfigurationProperties - Properties of the P2SVpnServer configuration. + *VpnServerConfigurationProperties `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for VpnServerConfiguration. +func (vsc VpnServerConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vsc.VpnServerConfigurationProperties != nil { + objectMap["properties"] = vsc.VpnServerConfigurationProperties + } + if vsc.ID != nil { + objectMap["id"] = vsc.ID + } + if vsc.Location != nil { + objectMap["location"] = vsc.Location + } + if vsc.Tags != nil { + objectMap["tags"] = vsc.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for VpnServerConfiguration struct. +func (vsc *VpnServerConfiguration) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var vpnServerConfigurationProperties VpnServerConfigurationProperties + err = json.Unmarshal(*v, &vpnServerConfigurationProperties) + if err != nil { + return err + } + vsc.VpnServerConfigurationProperties = &vpnServerConfigurationProperties + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + vsc.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + vsc.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + vsc.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + vsc.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + vsc.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + vsc.Tags = tags + } + } + } + + return nil +} + +// VpnServerConfigurationProperties parameters for VpnServerConfiguration. +type VpnServerConfigurationProperties struct { + // Name - The name of the VpnServerConfiguration that is unique within a resource group. + Name *string `json:"name,omitempty"` + // VpnProtocols - VPN protocols for the VpnServerConfiguration. + VpnProtocols *[]VpnGatewayTunnelingProtocol `json:"vpnProtocols,omitempty"` + // VpnAuthenticationTypes - VPN authentication types for the VpnServerConfiguration. + VpnAuthenticationTypes *[]VpnAuthenticationType `json:"vpnAuthenticationTypes,omitempty"` + // VpnClientRootCertificates - VPN client root certificate of VpnServerConfiguration. + VpnClientRootCertificates *[]VpnServerConfigVpnClientRootCertificate `json:"vpnClientRootCertificates,omitempty"` + // VpnClientRevokedCertificates - VPN client revoked certificate of VpnServerConfiguration. + VpnClientRevokedCertificates *[]VpnServerConfigVpnClientRevokedCertificate `json:"vpnClientRevokedCertificates,omitempty"` + // RadiusServerRootCertificates - Radius Server root certificate of VpnServerConfiguration. + RadiusServerRootCertificates *[]VpnServerConfigRadiusServerRootCertificate `json:"radiusServerRootCertificates,omitempty"` + // RadiusClientRootCertificates - Radius client root certificate of VpnServerConfiguration. + RadiusClientRootCertificates *[]VpnServerConfigRadiusClientRootCertificate `json:"radiusClientRootCertificates,omitempty"` + // VpnClientIpsecPolicies - VpnClientIpsecPolicies for VpnServerConfiguration. + VpnClientIpsecPolicies *[]IpsecPolicy `json:"vpnClientIpsecPolicies,omitempty"` + // RadiusServerAddress - The radius server address property of the VpnServerConfiguration resource for point to site client connection. + RadiusServerAddress *string `json:"radiusServerAddress,omitempty"` + // RadiusServerSecret - The radius secret property of the VpnServerConfiguration resource for point to site client connection. + RadiusServerSecret *string `json:"radiusServerSecret,omitempty"` + // RadiusServers - Multiple Radius Server configuration for VpnServerConfiguration. + RadiusServers *[]RadiusServer `json:"radiusServers,omitempty"` + // AadAuthenticationParameters - The set of aad vpn authentication parameters. + AadAuthenticationParameters *AadAuthenticationParameters `json:"aadAuthenticationParameters,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the VpnServerConfiguration resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + ProvisioningState *string `json:"provisioningState,omitempty"` + // P2SVpnGateways - READ-ONLY; List of references to P2SVpnGateways. + P2SVpnGateways *[]P2SVpnGateway `json:"p2SVpnGateways,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` +} + +// MarshalJSON is the custom marshaler for VpnServerConfigurationProperties. +func (vscp VpnServerConfigurationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vscp.Name != nil { + objectMap["name"] = vscp.Name + } + if vscp.VpnProtocols != nil { + objectMap["vpnProtocols"] = vscp.VpnProtocols + } + if vscp.VpnAuthenticationTypes != nil { + objectMap["vpnAuthenticationTypes"] = vscp.VpnAuthenticationTypes + } + if vscp.VpnClientRootCertificates != nil { + objectMap["vpnClientRootCertificates"] = vscp.VpnClientRootCertificates + } + if vscp.VpnClientRevokedCertificates != nil { + objectMap["vpnClientRevokedCertificates"] = vscp.VpnClientRevokedCertificates + } + if vscp.RadiusServerRootCertificates != nil { + objectMap["radiusServerRootCertificates"] = vscp.RadiusServerRootCertificates + } + if vscp.RadiusClientRootCertificates != nil { + objectMap["radiusClientRootCertificates"] = vscp.RadiusClientRootCertificates + } + if vscp.VpnClientIpsecPolicies != nil { + objectMap["vpnClientIpsecPolicies"] = vscp.VpnClientIpsecPolicies + } + if vscp.RadiusServerAddress != nil { + objectMap["radiusServerAddress"] = vscp.RadiusServerAddress + } + if vscp.RadiusServerSecret != nil { + objectMap["radiusServerSecret"] = vscp.RadiusServerSecret + } + if vscp.RadiusServers != nil { + objectMap["radiusServers"] = vscp.RadiusServers + } + if vscp.AadAuthenticationParameters != nil { + objectMap["aadAuthenticationParameters"] = vscp.AadAuthenticationParameters + } + return json.Marshal(objectMap) +} + +// VpnServerConfigurationsAssociatedWithVirtualWanListFuture an abstraction for monitoring and retrieving +// the results of a long-running operation. +type VpnServerConfigurationsAssociatedWithVirtualWanListFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VpnServerConfigurationsAssociatedWithVirtualWanListFuture) Result(client VpnServerConfigurationsAssociatedWithVirtualWanClient) (vscr VpnServerConfigurationsResponse, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsAssociatedWithVirtualWanListFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VpnServerConfigurationsAssociatedWithVirtualWanListFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vscr.Response.Response, err = future.GetResult(sender); err == nil && vscr.Response.Response.StatusCode != http.StatusNoContent { + vscr, err = client.ListResponder(vscr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsAssociatedWithVirtualWanListFuture", "Result", vscr.Response.Response, "Failure responding to request") + } + } + return +} + +// VpnServerConfigurationsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of +// a long-running operation. +type VpnServerConfigurationsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VpnServerConfigurationsCreateOrUpdateFuture) Result(client VpnServerConfigurationsClient) (vsc VpnServerConfiguration, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VpnServerConfigurationsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vsc.Response.Response, err = future.GetResult(sender); err == nil && vsc.Response.Response.StatusCode != http.StatusNoContent { + vsc, err = client.CreateOrUpdateResponder(vsc.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsCreateOrUpdateFuture", "Result", vsc.Response.Response, "Failure responding to request") + } + } + return +} + +// VpnServerConfigurationsDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VpnServerConfigurationsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VpnServerConfigurationsDeleteFuture) Result(client VpnServerConfigurationsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VpnServerConfigurationsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// VpnServerConfigurationsResponse vpnServerConfigurations list associated with VirtualWan Response. +type VpnServerConfigurationsResponse struct { + autorest.Response `json:"-"` + // VpnServerConfigurationResourceIds - List of VpnServerConfigurations associated with VirtualWan. + VpnServerConfigurationResourceIds *[]string `json:"vpnServerConfigurationResourceIds,omitempty"` +} + +// VpnServerConfigVpnClientRevokedCertificate properties of the revoked VPN client certificate of +// VpnServerConfiguration. +type VpnServerConfigVpnClientRevokedCertificate struct { + // Name - The certificate name. + Name *string `json:"name,omitempty"` + // Thumbprint - The revoked VPN client certificate thumbprint. + Thumbprint *string `json:"thumbprint,omitempty"` +} + +// VpnServerConfigVpnClientRootCertificate properties of VPN client root certificate of +// VpnServerConfiguration. +type VpnServerConfigVpnClientRootCertificate struct { + // Name - The certificate name. + Name *string `json:"name,omitempty"` + // PublicCertData - The certificate public data. + PublicCertData *string `json:"publicCertData,omitempty"` +} + +// VpnSite vpnSite Resource. +type VpnSite struct { + autorest.Response `json:"-"` + // VpnSiteProperties - Properties of the VPN site. + *VpnSiteProperties `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for VpnSite. +func (vs VpnSite) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vs.VpnSiteProperties != nil { + objectMap["properties"] = vs.VpnSiteProperties + } + if vs.ID != nil { + objectMap["id"] = vs.ID + } + if vs.Location != nil { + objectMap["location"] = vs.Location + } + if vs.Tags != nil { + objectMap["tags"] = vs.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for VpnSite struct. +func (vs *VpnSite) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var vpnSiteProperties VpnSiteProperties + err = json.Unmarshal(*v, &vpnSiteProperties) + if err != nil { + return err + } + vs.VpnSiteProperties = &vpnSiteProperties + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + vs.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + vs.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + vs.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + vs.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + vs.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + vs.Tags = tags + } + } + } + + return nil +} + +// VpnSiteID vpnSite Resource. +type VpnSiteID struct { + // VpnSite - READ-ONLY; The resource-uri of the vpn-site for which config is to be fetched. + VpnSite *string `json:"vpnSite,omitempty"` +} + +// VpnSiteLink vpnSiteLink Resource. +type VpnSiteLink struct { + autorest.Response `json:"-"` + // VpnSiteLinkProperties - Properties of the VPN site link. + *VpnSiteLinkProperties `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for VpnSiteLink. +func (vsl VpnSiteLink) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vsl.VpnSiteLinkProperties != nil { + objectMap["properties"] = vsl.VpnSiteLinkProperties + } + if vsl.Name != nil { + objectMap["name"] = vsl.Name + } + if vsl.ID != nil { + objectMap["id"] = vsl.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for VpnSiteLink struct. +func (vsl *VpnSiteLink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var vpnSiteLinkProperties VpnSiteLinkProperties + err = json.Unmarshal(*v, &vpnSiteLinkProperties) + if err != nil { + return err + } + vsl.VpnSiteLinkProperties = &vpnSiteLinkProperties + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + vsl.Etag = &etag + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + vsl.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + vsl.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + vsl.ID = &ID + } + } + } + + return nil +} + +// VpnSiteLinkConnection vpnSiteLinkConnection Resource. +type VpnSiteLinkConnection struct { + autorest.Response `json:"-"` + // VpnSiteLinkConnectionProperties - Properties of the VPN site link connection. + *VpnSiteLinkConnectionProperties `json:"properties,omitempty"` + // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for VpnSiteLinkConnection. +func (vslc VpnSiteLinkConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vslc.VpnSiteLinkConnectionProperties != nil { + objectMap["properties"] = vslc.VpnSiteLinkConnectionProperties + } + if vslc.Name != nil { + objectMap["name"] = vslc.Name + } + if vslc.ID != nil { + objectMap["id"] = vslc.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for VpnSiteLinkConnection struct. +func (vslc *VpnSiteLinkConnection) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var vpnSiteLinkConnectionProperties VpnSiteLinkConnectionProperties + err = json.Unmarshal(*v, &vpnSiteLinkConnectionProperties) + if err != nil { + return err + } + vslc.VpnSiteLinkConnectionProperties = &vpnSiteLinkConnectionProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + vslc.Name = &name + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + vslc.Etag = &etag + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + vslc.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + vslc.ID = &ID + } + } + } + + return nil +} + +// VpnSiteLinkConnectionProperties parameters for VpnConnection. +type VpnSiteLinkConnectionProperties struct { + // VpnSiteLink - Id of the connected vpn site link. + VpnSiteLink *SubResource `json:"vpnSiteLink,omitempty"` + // RoutingWeight - Routing weight for vpn connection. + RoutingWeight *int32 `json:"routingWeight,omitempty"` + // ConnectionStatus - The connection status. Possible values include: 'VpnConnectionStatusUnknown', 'VpnConnectionStatusConnecting', 'VpnConnectionStatusConnected', 'VpnConnectionStatusNotConnected' + ConnectionStatus VpnConnectionStatus `json:"connectionStatus,omitempty"` + // VpnConnectionProtocolType - Connection protocol used for this connection. Possible values include: 'IKEv2', 'IKEv1' + VpnConnectionProtocolType VirtualNetworkGatewayConnectionProtocol `json:"vpnConnectionProtocolType,omitempty"` + // IngressBytesTransferred - READ-ONLY; Ingress bytes transferred. + IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty"` + // EgressBytesTransferred - READ-ONLY; Egress bytes transferred. + EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty"` + // ConnectionBandwidth - Expected bandwidth in MBPS. + ConnectionBandwidth *int32 `json:"connectionBandwidth,omitempty"` + // SharedKey - SharedKey for the vpn connection. + SharedKey *string `json:"sharedKey,omitempty"` + // EnableBgp - EnableBgp flag. + EnableBgp *bool `json:"enableBgp,omitempty"` + // UsePolicyBasedTrafficSelectors - Enable policy-based traffic selectors. + UsePolicyBasedTrafficSelectors *bool `json:"usePolicyBasedTrafficSelectors,omitempty"` + // IpsecPolicies - The IPSec Policies to be considered by this connection. + IpsecPolicies *[]IpsecPolicy `json:"ipsecPolicies,omitempty"` + // EnableRateLimiting - EnableBgp flag. + EnableRateLimiting *bool `json:"enableRateLimiting,omitempty"` + // UseLocalAzureIPAddress - Use local azure ip to initiate connection. + UseLocalAzureIPAddress *bool `json:"useLocalAzureIpAddress,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the VPN site link connection resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for VpnSiteLinkConnectionProperties. +func (vslcp VpnSiteLinkConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vslcp.VpnSiteLink != nil { + objectMap["vpnSiteLink"] = vslcp.VpnSiteLink + } + if vslcp.RoutingWeight != nil { + objectMap["routingWeight"] = vslcp.RoutingWeight + } + if vslcp.ConnectionStatus != "" { + objectMap["connectionStatus"] = vslcp.ConnectionStatus + } + if vslcp.VpnConnectionProtocolType != "" { + objectMap["vpnConnectionProtocolType"] = vslcp.VpnConnectionProtocolType + } + if vslcp.ConnectionBandwidth != nil { + objectMap["connectionBandwidth"] = vslcp.ConnectionBandwidth + } + if vslcp.SharedKey != nil { + objectMap["sharedKey"] = vslcp.SharedKey + } + if vslcp.EnableBgp != nil { + objectMap["enableBgp"] = vslcp.EnableBgp + } + if vslcp.UsePolicyBasedTrafficSelectors != nil { + objectMap["usePolicyBasedTrafficSelectors"] = vslcp.UsePolicyBasedTrafficSelectors + } + if vslcp.IpsecPolicies != nil { + objectMap["ipsecPolicies"] = vslcp.IpsecPolicies + } + if vslcp.EnableRateLimiting != nil { + objectMap["enableRateLimiting"] = vslcp.EnableRateLimiting + } + if vslcp.UseLocalAzureIPAddress != nil { + objectMap["useLocalAzureIpAddress"] = vslcp.UseLocalAzureIPAddress + } + return json.Marshal(objectMap) +} + +// VpnSiteLinkProperties parameters for VpnSite. +type VpnSiteLinkProperties struct { + // LinkProperties - The link provider properties. + LinkProperties *VpnLinkProviderProperties `json:"linkProperties,omitempty"` + // IPAddress - The ip-address for the vpn-site-link. + IPAddress *string `json:"ipAddress,omitempty"` + // Fqdn - FQDN of vpn-site-link. + Fqdn *string `json:"fqdn,omitempty"` + // BgpProperties - The set of bgp properties. + BgpProperties *VpnLinkBgpSettings `json:"bgpProperties,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the VPN site link resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for VpnSiteLinkProperties. +func (vslp VpnSiteLinkProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vslp.LinkProperties != nil { + objectMap["linkProperties"] = vslp.LinkProperties + } + if vslp.IPAddress != nil { + objectMap["ipAddress"] = vslp.IPAddress + } + if vslp.Fqdn != nil { + objectMap["fqdn"] = vslp.Fqdn + } + if vslp.BgpProperties != nil { + objectMap["bgpProperties"] = vslp.BgpProperties + } + return json.Marshal(objectMap) +} + +// VpnSiteProperties parameters for VpnSite. +type VpnSiteProperties struct { + // VirtualWan - The VirtualWAN to which the vpnSite belongs. + VirtualWan *SubResource `json:"virtualWan,omitempty"` + // DeviceProperties - The device properties. + DeviceProperties *DeviceProperties `json:"deviceProperties,omitempty"` + // IPAddress - The ip-address for the vpn-site. + IPAddress *string `json:"ipAddress,omitempty"` + // SiteKey - The key for vpn-site that can be used for connections. + SiteKey *string `json:"siteKey,omitempty"` + // AddressSpace - The AddressSpace that contains an array of IP address ranges. + AddressSpace *AddressSpace `json:"addressSpace,omitempty"` + // BgpProperties - The set of bgp properties. + BgpProperties *BgpSettings `json:"bgpProperties,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the VPN site resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // IsSecuritySite - IsSecuritySite flag. + IsSecuritySite *bool `json:"isSecuritySite,omitempty"` + // VpnSiteLinks - List of all vpn site links. + VpnSiteLinks *[]VpnSiteLink `json:"vpnSiteLinks,omitempty"` + // O365Policy - Office365 Policy. + O365Policy *O365PolicyProperties `json:"o365Policy,omitempty"` +} + +// MarshalJSON is the custom marshaler for VpnSiteProperties. +func (vsp VpnSiteProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vsp.VirtualWan != nil { + objectMap["virtualWan"] = vsp.VirtualWan + } + if vsp.DeviceProperties != nil { + objectMap["deviceProperties"] = vsp.DeviceProperties + } + if vsp.IPAddress != nil { + objectMap["ipAddress"] = vsp.IPAddress + } + if vsp.SiteKey != nil { + objectMap["siteKey"] = vsp.SiteKey + } + if vsp.AddressSpace != nil { + objectMap["addressSpace"] = vsp.AddressSpace + } + if vsp.BgpProperties != nil { + objectMap["bgpProperties"] = vsp.BgpProperties + } + if vsp.IsSecuritySite != nil { + objectMap["isSecuritySite"] = vsp.IsSecuritySite + } + if vsp.VpnSiteLinks != nil { + objectMap["vpnSiteLinks"] = vsp.VpnSiteLinks + } + if vsp.O365Policy != nil { + objectMap["o365Policy"] = vsp.O365Policy + } + return json.Marshal(objectMap) +} + +// VpnSitesConfigurationDownloadFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type VpnSitesConfigurationDownloadFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VpnSitesConfigurationDownloadFuture) Result(client VpnSitesConfigurationClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSitesConfigurationDownloadFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VpnSitesConfigurationDownloadFuture") + return + } + ar.Response = future.Response() + return +} + +// VpnSitesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type VpnSitesCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VpnSitesCreateOrUpdateFuture) Result(client VpnSitesClient) (vs VpnSite, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSitesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VpnSitesCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vs.Response.Response, err = future.GetResult(sender); err == nil && vs.Response.Response.StatusCode != http.StatusNoContent { + vs, err = client.CreateOrUpdateResponder(vs.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSitesCreateOrUpdateFuture", "Result", vs.Response.Response, "Failure responding to request") + } + } + return +} + +// VpnSitesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type VpnSitesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *VpnSitesDeleteFuture) Result(client VpnSitesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSitesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.VpnSitesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// Watcher network watcher in a resource group. +type Watcher struct { + autorest.Response `json:"-"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // WatcherPropertiesFormat - Properties of the network watcher. + *WatcherPropertiesFormat `json:"properties,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for Watcher. +func (w Watcher) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if w.WatcherPropertiesFormat != nil { + objectMap["properties"] = w.WatcherPropertiesFormat + } + if w.ID != nil { + objectMap["id"] = w.ID + } + if w.Location != nil { + objectMap["location"] = w.Location + } + if w.Tags != nil { + objectMap["tags"] = w.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Watcher struct. +func (w *Watcher) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + w.Etag = &etag + } + case "properties": + if v != nil { + var watcherPropertiesFormat WatcherPropertiesFormat + err = json.Unmarshal(*v, &watcherPropertiesFormat) + if err != nil { + return err + } + w.WatcherPropertiesFormat = &watcherPropertiesFormat + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + w.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + w.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + w.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + w.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + w.Tags = tags + } + } + } + + return nil +} + +// WatcherListResult response for ListNetworkWatchers API service call. +type WatcherListResult struct { + autorest.Response `json:"-"` + // Value - List of network watcher resources. + Value *[]Watcher `json:"value,omitempty"` +} + +// WatcherPropertiesFormat the network watcher properties. +type WatcherPropertiesFormat struct { + // ProvisioningState - READ-ONLY; The provisioning state of the network watcher resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type WatchersCheckConnectivityFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *WatchersCheckConnectivityFuture) Result(client WatchersClient) (ci ConnectivityInformation, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersCheckConnectivityFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.WatchersCheckConnectivityFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if ci.Response.Response, err = future.GetResult(sender); err == nil && ci.Response.Response.StatusCode != http.StatusNoContent { + ci, err = client.CheckConnectivityResponder(ci.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersCheckConnectivityFuture", "Result", ci.Response.Response, "Failure responding to request") + } + } + return +} + +// WatchersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type WatchersDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *WatchersDeleteFuture) Result(client WatchersClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.WatchersDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// WatchersGetAzureReachabilityReportFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type WatchersGetAzureReachabilityReportFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *WatchersGetAzureReachabilityReportFuture) Result(client WatchersClient) (arr AzureReachabilityReport, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersGetAzureReachabilityReportFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.WatchersGetAzureReachabilityReportFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if arr.Response.Response, err = future.GetResult(sender); err == nil && arr.Response.Response.StatusCode != http.StatusNoContent { + arr, err = client.GetAzureReachabilityReportResponder(arr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersGetAzureReachabilityReportFuture", "Result", arr.Response.Response, "Failure responding to request") + } + } + return +} + +// WatchersGetFlowLogStatusFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type WatchersGetFlowLogStatusFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *WatchersGetFlowLogStatusFuture) Result(client WatchersClient) (fli FlowLogInformation, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersGetFlowLogStatusFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.WatchersGetFlowLogStatusFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if fli.Response.Response, err = future.GetResult(sender); err == nil && fli.Response.Response.StatusCode != http.StatusNoContent { + fli, err = client.GetFlowLogStatusResponder(fli.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersGetFlowLogStatusFuture", "Result", fli.Response.Response, "Failure responding to request") + } + } + return +} + +// WatchersGetNetworkConfigurationDiagnosticFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type WatchersGetNetworkConfigurationDiagnosticFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *WatchersGetNetworkConfigurationDiagnosticFuture) Result(client WatchersClient) (cdr ConfigurationDiagnosticResponse, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersGetNetworkConfigurationDiagnosticFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.WatchersGetNetworkConfigurationDiagnosticFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if cdr.Response.Response, err = future.GetResult(sender); err == nil && cdr.Response.Response.StatusCode != http.StatusNoContent { + cdr, err = client.GetNetworkConfigurationDiagnosticResponder(cdr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersGetNetworkConfigurationDiagnosticFuture", "Result", cdr.Response.Response, "Failure responding to request") + } + } + return +} + +// WatchersGetNextHopFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type WatchersGetNextHopFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *WatchersGetNextHopFuture) Result(client WatchersClient) (nhr NextHopResult, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersGetNextHopFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.WatchersGetNextHopFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if nhr.Response.Response, err = future.GetResult(sender); err == nil && nhr.Response.Response.StatusCode != http.StatusNoContent { + nhr, err = client.GetNextHopResponder(nhr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersGetNextHopFuture", "Result", nhr.Response.Response, "Failure responding to request") + } + } + return +} + +// WatchersGetTroubleshootingFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type WatchersGetTroubleshootingFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *WatchersGetTroubleshootingFuture) Result(client WatchersClient) (tr TroubleshootingResult, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersGetTroubleshootingFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.WatchersGetTroubleshootingFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if tr.Response.Response, err = future.GetResult(sender); err == nil && tr.Response.Response.StatusCode != http.StatusNoContent { + tr, err = client.GetTroubleshootingResponder(tr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersGetTroubleshootingFuture", "Result", tr.Response.Response, "Failure responding to request") + } + } + return +} + +// WatchersGetTroubleshootingResultFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type WatchersGetTroubleshootingResultFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *WatchersGetTroubleshootingResultFuture) Result(client WatchersClient) (tr TroubleshootingResult, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersGetTroubleshootingResultFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.WatchersGetTroubleshootingResultFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if tr.Response.Response, err = future.GetResult(sender); err == nil && tr.Response.Response.StatusCode != http.StatusNoContent { + tr, err = client.GetTroubleshootingResultResponder(tr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersGetTroubleshootingResultFuture", "Result", tr.Response.Response, "Failure responding to request") + } + } + return +} + +// WatchersGetVMSecurityRulesFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type WatchersGetVMSecurityRulesFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *WatchersGetVMSecurityRulesFuture) Result(client WatchersClient) (sgvr SecurityGroupViewResult, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersGetVMSecurityRulesFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.WatchersGetVMSecurityRulesFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if sgvr.Response.Response, err = future.GetResult(sender); err == nil && sgvr.Response.Response.StatusCode != http.StatusNoContent { + sgvr, err = client.GetVMSecurityRulesResponder(sgvr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersGetVMSecurityRulesFuture", "Result", sgvr.Response.Response, "Failure responding to request") + } + } + return +} + +// WatchersListAvailableProvidersFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type WatchersListAvailableProvidersFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *WatchersListAvailableProvidersFuture) Result(client WatchersClient) (apl AvailableProvidersList, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersListAvailableProvidersFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.WatchersListAvailableProvidersFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if apl.Response.Response, err = future.GetResult(sender); err == nil && apl.Response.Response.StatusCode != http.StatusNoContent { + apl, err = client.ListAvailableProvidersResponder(apl.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersListAvailableProvidersFuture", "Result", apl.Response.Response, "Failure responding to request") + } + } + return +} + +// WatchersSetFlowLogConfigurationFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type WatchersSetFlowLogConfigurationFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *WatchersSetFlowLogConfigurationFuture) Result(client WatchersClient) (fli FlowLogInformation, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersSetFlowLogConfigurationFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.WatchersSetFlowLogConfigurationFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if fli.Response.Response, err = future.GetResult(sender); err == nil && fli.Response.Response.StatusCode != http.StatusNoContent { + fli, err = client.SetFlowLogConfigurationResponder(fli.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersSetFlowLogConfigurationFuture", "Result", fli.Response.Response, "Failure responding to request") + } + } + return +} + +// WatchersVerifyIPFlowFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type WatchersVerifyIPFlowFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *WatchersVerifyIPFlowFuture) Result(client WatchersClient) (vifr VerificationIPFlowResult, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersVerifyIPFlowFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.WatchersVerifyIPFlowFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if vifr.Response.Response, err = future.GetResult(sender); err == nil && vifr.Response.Response.StatusCode != http.StatusNoContent { + vifr, err = client.VerifyIPFlowResponder(vifr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersVerifyIPFlowFuture", "Result", vifr.Response.Response, "Failure responding to request") + } + } + return +} + +// WebApplicationFirewallCustomRule defines contents of a web application rule. +type WebApplicationFirewallCustomRule struct { + // Name - The name of the resource that is unique within a policy. This name can be used to access the resource. + Name *string `json:"name,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // Priority - Priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. + Priority *int32 `json:"priority,omitempty"` + // RuleType - The rule type. Possible values include: 'WebApplicationFirewallRuleTypeMatchRule', 'WebApplicationFirewallRuleTypeInvalid' + RuleType WebApplicationFirewallRuleType `json:"ruleType,omitempty"` + // MatchConditions - List of match conditions. + MatchConditions *[]MatchCondition `json:"matchConditions,omitempty"` + // Action - Type of Actions. Possible values include: 'WebApplicationFirewallActionAllow', 'WebApplicationFirewallActionBlock', 'WebApplicationFirewallActionLog' + Action WebApplicationFirewallAction `json:"action,omitempty"` +} + +// MarshalJSON is the custom marshaler for WebApplicationFirewallCustomRule. +func (wafcr WebApplicationFirewallCustomRule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if wafcr.Name != nil { + objectMap["name"] = wafcr.Name + } + if wafcr.Priority != nil { + objectMap["priority"] = wafcr.Priority + } + if wafcr.RuleType != "" { + objectMap["ruleType"] = wafcr.RuleType + } + if wafcr.MatchConditions != nil { + objectMap["matchConditions"] = wafcr.MatchConditions + } + if wafcr.Action != "" { + objectMap["action"] = wafcr.Action + } + return json.Marshal(objectMap) +} + +// WebApplicationFirewallPoliciesDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type WebApplicationFirewallPoliciesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *WebApplicationFirewallPoliciesDeleteFuture) Result(client WebApplicationFirewallPoliciesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.WebApplicationFirewallPoliciesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// WebApplicationFirewallPolicy defines web application firewall policy. +type WebApplicationFirewallPolicy struct { + autorest.Response `json:"-"` + // WebApplicationFirewallPolicyPropertiesFormat - Properties of the web application firewall policy. + *WebApplicationFirewallPolicyPropertiesFormat `json:"properties,omitempty"` + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for WebApplicationFirewallPolicy. +func (wafp WebApplicationFirewallPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if wafp.WebApplicationFirewallPolicyPropertiesFormat != nil { + objectMap["properties"] = wafp.WebApplicationFirewallPolicyPropertiesFormat + } + if wafp.ID != nil { + objectMap["id"] = wafp.ID + } + if wafp.Location != nil { + objectMap["location"] = wafp.Location + } + if wafp.Tags != nil { + objectMap["tags"] = wafp.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for WebApplicationFirewallPolicy struct. +func (wafp *WebApplicationFirewallPolicy) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var webApplicationFirewallPolicyPropertiesFormat WebApplicationFirewallPolicyPropertiesFormat + err = json.Unmarshal(*v, &webApplicationFirewallPolicyPropertiesFormat) + if err != nil { + return err + } + wafp.WebApplicationFirewallPolicyPropertiesFormat = &webApplicationFirewallPolicyPropertiesFormat + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + wafp.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + wafp.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + wafp.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + wafp.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + wafp.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + wafp.Tags = tags + } + } + } + + return nil +} + +// WebApplicationFirewallPolicyListResult result of the request to list WebApplicationFirewallPolicies. It +// contains a list of WebApplicationFirewallPolicy objects and a URL link to get the next set of results. +type WebApplicationFirewallPolicyListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of WebApplicationFirewallPolicies within a resource group. + Value *[]WebApplicationFirewallPolicy `json:"value,omitempty"` + // NextLink - READ-ONLY; URL to get the next set of WebApplicationFirewallPolicy objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// WebApplicationFirewallPolicyListResultIterator provides access to a complete listing of +// WebApplicationFirewallPolicy values. +type WebApplicationFirewallPolicyListResultIterator struct { + i int + page WebApplicationFirewallPolicyListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *WebApplicationFirewallPolicyListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WebApplicationFirewallPolicyListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *WebApplicationFirewallPolicyListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter WebApplicationFirewallPolicyListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter WebApplicationFirewallPolicyListResultIterator) Response() WebApplicationFirewallPolicyListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter WebApplicationFirewallPolicyListResultIterator) Value() WebApplicationFirewallPolicy { + if !iter.page.NotDone() { + return WebApplicationFirewallPolicy{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the WebApplicationFirewallPolicyListResultIterator type. +func NewWebApplicationFirewallPolicyListResultIterator(page WebApplicationFirewallPolicyListResultPage) WebApplicationFirewallPolicyListResultIterator { + return WebApplicationFirewallPolicyListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (wafplr WebApplicationFirewallPolicyListResult) IsEmpty() bool { + return wafplr.Value == nil || len(*wafplr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (wafplr WebApplicationFirewallPolicyListResult) hasNextLink() bool { + return wafplr.NextLink != nil && len(*wafplr.NextLink) != 0 +} + +// webApplicationFirewallPolicyListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (wafplr WebApplicationFirewallPolicyListResult) webApplicationFirewallPolicyListResultPreparer(ctx context.Context) (*http.Request, error) { + if !wafplr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(wafplr.NextLink))) +} + +// WebApplicationFirewallPolicyListResultPage contains a page of WebApplicationFirewallPolicy values. +type WebApplicationFirewallPolicyListResultPage struct { + fn func(context.Context, WebApplicationFirewallPolicyListResult) (WebApplicationFirewallPolicyListResult, error) + wafplr WebApplicationFirewallPolicyListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *WebApplicationFirewallPolicyListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WebApplicationFirewallPolicyListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.wafplr) + if err != nil { + return err + } + page.wafplr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *WebApplicationFirewallPolicyListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page WebApplicationFirewallPolicyListResultPage) NotDone() bool { + return !page.wafplr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page WebApplicationFirewallPolicyListResultPage) Response() WebApplicationFirewallPolicyListResult { + return page.wafplr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page WebApplicationFirewallPolicyListResultPage) Values() []WebApplicationFirewallPolicy { + if page.wafplr.IsEmpty() { + return nil + } + return *page.wafplr.Value +} + +// Creates a new instance of the WebApplicationFirewallPolicyListResultPage type. +func NewWebApplicationFirewallPolicyListResultPage(cur WebApplicationFirewallPolicyListResult, getNextPage func(context.Context, WebApplicationFirewallPolicyListResult) (WebApplicationFirewallPolicyListResult, error)) WebApplicationFirewallPolicyListResultPage { + return WebApplicationFirewallPolicyListResultPage{ + fn: getNextPage, + wafplr: cur, + } +} + +// WebApplicationFirewallPolicyPropertiesFormat defines web application firewall policy properties. +type WebApplicationFirewallPolicyPropertiesFormat struct { + // PolicySettings - The PolicySettings for policy. + PolicySettings *PolicySettings `json:"policySettings,omitempty"` + // CustomRules - The custom rules inside the policy. + CustomRules *[]WebApplicationFirewallCustomRule `json:"customRules,omitempty"` + // ApplicationGateways - READ-ONLY; A collection of references to application gateways. + ApplicationGateways *[]ApplicationGateway `json:"applicationGateways,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the web application firewall policy resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // ResourceState - READ-ONLY; Resource status of the policy. Possible values include: 'WebApplicationFirewallPolicyResourceStateCreating', 'WebApplicationFirewallPolicyResourceStateEnabling', 'WebApplicationFirewallPolicyResourceStateEnabled', 'WebApplicationFirewallPolicyResourceStateDisabling', 'WebApplicationFirewallPolicyResourceStateDisabled', 'WebApplicationFirewallPolicyResourceStateDeleting' + ResourceState WebApplicationFirewallPolicyResourceState `json:"resourceState,omitempty"` + // ManagedRules - Describes the managedRules structure. + ManagedRules *ManagedRulesDefinition `json:"managedRules,omitempty"` + // HTTPListeners - READ-ONLY; A collection of references to application gateway http listeners. + HTTPListeners *[]SubResource `json:"httpListeners,omitempty"` + // PathBasedRules - READ-ONLY; A collection of references to application gateway path rules. + PathBasedRules *[]SubResource `json:"pathBasedRules,omitempty"` +} + +// MarshalJSON is the custom marshaler for WebApplicationFirewallPolicyPropertiesFormat. +func (wafppf WebApplicationFirewallPolicyPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if wafppf.PolicySettings != nil { + objectMap["policySettings"] = wafppf.PolicySettings + } + if wafppf.CustomRules != nil { + objectMap["customRules"] = wafppf.CustomRules + } + if wafppf.ManagedRules != nil { + objectMap["managedRules"] = wafppf.ManagedRules + } + return json.Marshal(objectMap) +} diff --git a/services/network/mgmt/2020-07-01/network/natgateways.go b/services/network/mgmt/2020-07-01/network/natgateways.go new file mode 100644 index 000000000000..1bcefb20ac21 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/natgateways.go @@ -0,0 +1,583 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// NatGatewaysClient is the network Client +type NatGatewaysClient struct { + BaseClient +} + +// NewNatGatewaysClient creates an instance of the NatGatewaysClient client. +func NewNatGatewaysClient(subscriptionID string) NatGatewaysClient { + return NewNatGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewNatGatewaysClientWithBaseURI creates an instance of the NatGatewaysClient client using a custom endpoint. Use +// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewNatGatewaysClientWithBaseURI(baseURI string, subscriptionID string) NatGatewaysClient { + return NatGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a nat gateway. +// Parameters: +// resourceGroupName - the name of the resource group. +// natGatewayName - the name of the nat gateway. +// parameters - parameters supplied to the create or update nat gateway operation. +func (client NatGatewaysClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, natGatewayName string, parameters NatGateway) (result NatGatewaysCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/NatGatewaysClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, natGatewayName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client NatGatewaysClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, natGatewayName string, parameters NatGateway) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "natGatewayName": autorest.Encode("path", natGatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways/{natGatewayName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client NatGatewaysClient) CreateOrUpdateSender(req *http.Request) (future NatGatewaysCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client NatGatewaysClient) CreateOrUpdateResponder(resp *http.Response) (result NatGateway, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified nat gateway. +// Parameters: +// resourceGroupName - the name of the resource group. +// natGatewayName - the name of the nat gateway. +func (client NatGatewaysClient) Delete(ctx context.Context, resourceGroupName string, natGatewayName string) (result NatGatewaysDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/NatGatewaysClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, natGatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client NatGatewaysClient) DeletePreparer(ctx context.Context, resourceGroupName string, natGatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "natGatewayName": autorest.Encode("path", natGatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways/{natGatewayName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client NatGatewaysClient) DeleteSender(req *http.Request) (future NatGatewaysDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client NatGatewaysClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified nat gateway in a specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// natGatewayName - the name of the nat gateway. +// expand - expands referenced resources. +func (client NatGatewaysClient) Get(ctx context.Context, resourceGroupName string, natGatewayName string, expand string) (result NatGateway, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/NatGatewaysClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, natGatewayName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client NatGatewaysClient) GetPreparer(ctx context.Context, resourceGroupName string, natGatewayName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "natGatewayName": autorest.Encode("path", natGatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways/{natGatewayName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client NatGatewaysClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client NatGatewaysClient) GetResponder(resp *http.Response) (result NatGateway, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all nat gateways in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client NatGatewaysClient) List(ctx context.Context, resourceGroupName string) (result NatGatewayListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/NatGatewaysClient.List") + defer func() { + sc := -1 + if result.nglr.Response.Response != nil { + sc = result.nglr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.nglr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "List", resp, "Failure sending request") + return + } + + result.nglr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "List", resp, "Failure responding to request") + return + } + if result.nglr.hasNextLink() && result.nglr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client NatGatewaysClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client NatGatewaysClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client NatGatewaysClient) ListResponder(resp *http.Response) (result NatGatewayListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client NatGatewaysClient) listNextResults(ctx context.Context, lastResults NatGatewayListResult) (result NatGatewayListResult, err error) { + req, err := lastResults.natGatewayListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client NatGatewaysClient) ListComplete(ctx context.Context, resourceGroupName string) (result NatGatewayListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/NatGatewaysClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName) + return +} + +// ListAll gets all the Nat Gateways in a subscription. +func (client NatGatewaysClient) ListAll(ctx context.Context) (result NatGatewayListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/NatGatewaysClient.ListAll") + defer func() { + sc := -1 + if result.nglr.Response.Response != nil { + sc = result.nglr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listAllNextResults + req, err := client.ListAllPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "ListAll", nil, "Failure preparing request") + return + } + + resp, err := client.ListAllSender(req) + if err != nil { + result.nglr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "ListAll", resp, "Failure sending request") + return + } + + result.nglr, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "ListAll", resp, "Failure responding to request") + return + } + if result.nglr.hasNextLink() && result.nglr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListAllPreparer prepares the ListAll request. +func (client NatGatewaysClient) ListAllPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/natGateways", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAllSender sends the ListAll request. The method will close the +// http.Response Body if it receives an error. +func (client NatGatewaysClient) ListAllSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAllResponder handles the response to the ListAll request. The method always +// closes the http.Response Body. +func (client NatGatewaysClient) ListAllResponder(resp *http.Response) (result NatGatewayListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listAllNextResults retrieves the next set of results, if any. +func (client NatGatewaysClient) listAllNextResults(ctx context.Context, lastResults NatGatewayListResult) (result NatGatewayListResult, err error) { + req, err := lastResults.natGatewayListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listAllNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListAllSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listAllNextResults", resp, "Failure sending next results request") + } + result, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListAllComplete enumerates all values, automatically crossing page boundaries as required. +func (client NatGatewaysClient) ListAllComplete(ctx context.Context) (result NatGatewayListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/NatGatewaysClient.ListAll") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListAll(ctx) + return +} + +// UpdateTags updates nat gateway tags. +// Parameters: +// resourceGroupName - the name of the resource group. +// natGatewayName - the name of the nat gateway. +// parameters - parameters supplied to update nat gateway tags. +func (client NatGatewaysClient) UpdateTags(ctx context.Context, resourceGroupName string, natGatewayName string, parameters TagsObject) (result NatGateway, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/NatGatewaysClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, natGatewayName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.NatGatewaysClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client NatGatewaysClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, natGatewayName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "natGatewayName": autorest.Encode("path", natGatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways/{natGatewayName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client NatGatewaysClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client NatGatewaysClient) UpdateTagsResponder(resp *http.Response) (result NatGateway, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/networkapi/interfaces.go b/services/network/mgmt/2020-07-01/network/networkapi/interfaces.go new file mode 100644 index 000000000000..aa55ac4f17c9 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/networkapi/interfaces.go @@ -0,0 +1,1321 @@ +package networkapi + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-07-01/network" +) + +// BaseClientAPI contains the set of methods on the BaseClient type. +type BaseClientAPI interface { + CheckDNSNameAvailability(ctx context.Context, location string, domainNameLabel string) (result network.DNSNameAvailabilityResult, err error) + DeleteBastionShareableLink(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest network.BastionShareableLinkListRequest) (result network.DeleteBastionShareableLinkFuture, err error) + DisconnectActiveSessions(ctx context.Context, resourceGroupName string, bastionHostName string, sessionIds network.SessionIds) (result network.BastionSessionDeleteResultPage, err error) + DisconnectActiveSessionsComplete(ctx context.Context, resourceGroupName string, bastionHostName string, sessionIds network.SessionIds) (result network.BastionSessionDeleteResultIterator, err error) + Generatevirtualwanvpnserverconfigurationvpnprofile(ctx context.Context, resourceGroupName string, virtualWANName string, vpnClientParams network.VirtualWanVpnProfileParameters) (result network.GeneratevirtualwanvpnserverconfigurationvpnprofileFuture, err error) + GetActiveSessions(ctx context.Context, resourceGroupName string, bastionHostName string) (result network.GetActiveSessionsFuture, err error) + GetActiveSessionsComplete(ctx context.Context, resourceGroupName string, bastionHostName string) (result network.GetActiveSessionsAllFuture, err error) + GetBastionShareableLink(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest network.BastionShareableLinkListRequest) (result network.BastionShareableLinkListResultPage, err error) + GetBastionShareableLinkComplete(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest network.BastionShareableLinkListRequest) (result network.BastionShareableLinkListResultIterator, err error) + PutBastionShareableLink(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest network.BastionShareableLinkListRequest) (result network.PutBastionShareableLinkFuture, err error) + PutBastionShareableLinkComplete(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest network.BastionShareableLinkListRequest) (result network.PutBastionShareableLinkAllFuture, err error) + SupportedSecurityProviders(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWanSecurityProviders, err error) +} + +var _ BaseClientAPI = (*network.BaseClient)(nil) + +// ApplicationGatewaysClientAPI contains the set of methods on the ApplicationGatewaysClient type. +type ApplicationGatewaysClientAPI interface { + BackendHealth(ctx context.Context, resourceGroupName string, applicationGatewayName string, expand string) (result network.ApplicationGatewaysBackendHealthFuture, err error) + BackendHealthOnDemand(ctx context.Context, resourceGroupName string, applicationGatewayName string, probeRequest network.ApplicationGatewayOnDemandProbe, expand string) (result network.ApplicationGatewaysBackendHealthOnDemandFuture, err error) + CreateOrUpdate(ctx context.Context, resourceGroupName string, applicationGatewayName string, parameters network.ApplicationGateway) (result network.ApplicationGatewaysCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error) + GetSslPredefinedPolicy(ctx context.Context, predefinedPolicyName string) (result network.ApplicationGatewaySslPredefinedPolicy, err error) + List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error) + ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error) + ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error) + ListAvailableRequestHeaders(ctx context.Context) (result network.ListString, err error) + ListAvailableResponseHeaders(ctx context.Context) (result network.ListString, err error) + ListAvailableServerVariables(ctx context.Context) (result network.ListString, err error) + ListAvailableSslOptions(ctx context.Context) (result network.ApplicationGatewayAvailableSslOptions, err error) + ListAvailableSslPredefinedPolicies(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesPage, err error) + ListAvailableSslPredefinedPoliciesComplete(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesIterator, err error) + ListAvailableWafRuleSets(ctx context.Context) (result network.ApplicationGatewayAvailableWafRuleSetsResult, err error) + Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error) + Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error) + UpdateTags(ctx context.Context, resourceGroupName string, applicationGatewayName string, parameters network.TagsObject) (result network.ApplicationGateway, err error) +} + +var _ ApplicationGatewaysClientAPI = (*network.ApplicationGatewaysClient)(nil) + +// ApplicationGatewayPrivateLinkResourcesClientAPI contains the set of methods on the ApplicationGatewayPrivateLinkResourcesClient type. +type ApplicationGatewayPrivateLinkResourcesClientAPI interface { + List(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewayPrivateLinkResourceListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewayPrivateLinkResourceListResultIterator, err error) +} + +var _ ApplicationGatewayPrivateLinkResourcesClientAPI = (*network.ApplicationGatewayPrivateLinkResourcesClient)(nil) + +// ApplicationGatewayPrivateEndpointConnectionsClientAPI contains the set of methods on the ApplicationGatewayPrivateEndpointConnectionsClient type. +type ApplicationGatewayPrivateEndpointConnectionsClientAPI interface { + Delete(ctx context.Context, resourceGroupName string, applicationGatewayName string, connectionName string) (result network.ApplicationGatewayPrivateEndpointConnectionsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, applicationGatewayName string, connectionName string) (result network.ApplicationGatewayPrivateEndpointConnection, err error) + List(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewayPrivateEndpointConnectionListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewayPrivateEndpointConnectionListResultIterator, err error) + Update(ctx context.Context, resourceGroupName string, applicationGatewayName string, connectionName string, parameters network.ApplicationGatewayPrivateEndpointConnection) (result network.ApplicationGatewayPrivateEndpointConnectionsUpdateFuture, err error) +} + +var _ ApplicationGatewayPrivateEndpointConnectionsClientAPI = (*network.ApplicationGatewayPrivateEndpointConnectionsClient)(nil) + +// ApplicationSecurityGroupsClientAPI contains the set of methods on the ApplicationSecurityGroupsClient type. +type ApplicationSecurityGroupsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string, parameters network.ApplicationSecurityGroup) (result network.ApplicationSecurityGroupsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroupsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroup, err error) + List(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultIterator, err error) + ListAll(ctx context.Context) (result network.ApplicationSecurityGroupListResultPage, err error) + ListAllComplete(ctx context.Context) (result network.ApplicationSecurityGroupListResultIterator, err error) + UpdateTags(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string, parameters network.TagsObject) (result network.ApplicationSecurityGroup, err error) +} + +var _ ApplicationSecurityGroupsClientAPI = (*network.ApplicationSecurityGroupsClient)(nil) + +// AvailableDelegationsClientAPI contains the set of methods on the AvailableDelegationsClient type. +type AvailableDelegationsClientAPI interface { + List(ctx context.Context, location string) (result network.AvailableDelegationsResultPage, err error) + ListComplete(ctx context.Context, location string) (result network.AvailableDelegationsResultIterator, err error) +} + +var _ AvailableDelegationsClientAPI = (*network.AvailableDelegationsClient)(nil) + +// AvailableResourceGroupDelegationsClientAPI contains the set of methods on the AvailableResourceGroupDelegationsClient type. +type AvailableResourceGroupDelegationsClientAPI interface { + List(ctx context.Context, location string, resourceGroupName string) (result network.AvailableDelegationsResultPage, err error) + ListComplete(ctx context.Context, location string, resourceGroupName string) (result network.AvailableDelegationsResultIterator, err error) +} + +var _ AvailableResourceGroupDelegationsClientAPI = (*network.AvailableResourceGroupDelegationsClient)(nil) + +// AvailableServiceAliasesClientAPI contains the set of methods on the AvailableServiceAliasesClient type. +type AvailableServiceAliasesClientAPI interface { + List(ctx context.Context, location string) (result network.AvailableServiceAliasesResultPage, err error) + ListComplete(ctx context.Context, location string) (result network.AvailableServiceAliasesResultIterator, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string, location string) (result network.AvailableServiceAliasesResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, location string) (result network.AvailableServiceAliasesResultIterator, err error) +} + +var _ AvailableServiceAliasesClientAPI = (*network.AvailableServiceAliasesClient)(nil) + +// AzureFirewallsClientAPI contains the set of methods on the AzureFirewallsClient type. +type AzureFirewallsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, azureFirewallName string, parameters network.AzureFirewall) (result network.AzureFirewallsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewallsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewall, err error) + List(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultIterator, err error) + ListAll(ctx context.Context) (result network.AzureFirewallListResultPage, err error) + ListAllComplete(ctx context.Context) (result network.AzureFirewallListResultIterator, err error) + UpdateTags(ctx context.Context, resourceGroupName string, azureFirewallName string, parameters network.TagsObject) (result network.AzureFirewallsUpdateTagsFuture, err error) +} + +var _ AzureFirewallsClientAPI = (*network.AzureFirewallsClient)(nil) + +// AzureFirewallFqdnTagsClientAPI contains the set of methods on the AzureFirewallFqdnTagsClient type. +type AzureFirewallFqdnTagsClientAPI interface { + ListAll(ctx context.Context) (result network.AzureFirewallFqdnTagListResultPage, err error) + ListAllComplete(ctx context.Context) (result network.AzureFirewallFqdnTagListResultIterator, err error) +} + +var _ AzureFirewallFqdnTagsClientAPI = (*network.AzureFirewallFqdnTagsClient)(nil) + +// WebCategoriesClientAPI contains the set of methods on the WebCategoriesClient type. +type WebCategoriesClientAPI interface { + Get(ctx context.Context, name string, expand string) (result network.AzureWebCategory, err error) + ListBySubscription(ctx context.Context) (result network.AzureWebCategoryListResultPage, err error) + ListBySubscriptionComplete(ctx context.Context) (result network.AzureWebCategoryListResultIterator, err error) +} + +var _ WebCategoriesClientAPI = (*network.WebCategoriesClient)(nil) + +// BastionHostsClientAPI contains the set of methods on the BastionHostsClient type. +type BastionHostsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, bastionHostName string, parameters network.BastionHost) (result network.BastionHostsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, bastionHostName string) (result network.BastionHostsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, bastionHostName string) (result network.BastionHost, err error) + List(ctx context.Context) (result network.BastionHostListResultPage, err error) + ListComplete(ctx context.Context) (result network.BastionHostListResultIterator, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.BastionHostListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.BastionHostListResultIterator, err error) +} + +var _ BastionHostsClientAPI = (*network.BastionHostsClient)(nil) + +// CustomIPPrefixesClientAPI contains the set of methods on the CustomIPPrefixesClient type. +type CustomIPPrefixesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, customIPPrefixName string, parameters network.CustomIPPrefix) (result network.CustomIPPrefixesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, customIPPrefixName string) (result network.CustomIPPrefixesDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, customIPPrefixName string, expand string) (result network.CustomIPPrefix, err error) + List(ctx context.Context, resourceGroupName string) (result network.CustomIPPrefixListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result network.CustomIPPrefixListResultIterator, err error) + ListAll(ctx context.Context) (result network.CustomIPPrefixListResultPage, err error) + ListAllComplete(ctx context.Context) (result network.CustomIPPrefixListResultIterator, err error) + UpdateTags(ctx context.Context, resourceGroupName string, customIPPrefixName string, parameters network.TagsObject) (result network.CustomIPPrefix, err error) +} + +var _ CustomIPPrefixesClientAPI = (*network.CustomIPPrefixesClient)(nil) + +// DdosCustomPoliciesClientAPI contains the set of methods on the DdosCustomPoliciesClient type. +type DdosCustomPoliciesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string, parameters network.DdosCustomPolicy) (result network.DdosCustomPoliciesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string) (result network.DdosCustomPoliciesDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string) (result network.DdosCustomPolicy, err error) + UpdateTags(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string, parameters network.TagsObject) (result network.DdosCustomPolicy, err error) +} + +var _ DdosCustomPoliciesClientAPI = (*network.DdosCustomPoliciesClient)(nil) + +// DdosProtectionPlansClientAPI contains the set of methods on the DdosProtectionPlansClient type. +type DdosProtectionPlansClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, parameters network.DdosProtectionPlan) (result network.DdosProtectionPlansCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlansDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlan, err error) + List(ctx context.Context) (result network.DdosProtectionPlanListResultPage, err error) + ListComplete(ctx context.Context) (result network.DdosProtectionPlanListResultIterator, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultIterator, err error) + UpdateTags(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, parameters network.TagsObject) (result network.DdosProtectionPlan, err error) +} + +var _ DdosProtectionPlansClientAPI = (*network.DdosProtectionPlansClient)(nil) + +// DscpConfigurationClientAPI contains the set of methods on the DscpConfigurationClient type. +type DscpConfigurationClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, dscpConfigurationName string, parameters network.DscpConfiguration) (result network.DscpConfigurationCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, dscpConfigurationName string) (result network.DscpConfigurationDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, dscpConfigurationName string) (result network.DscpConfiguration, err error) + List(ctx context.Context, resourceGroupName string) (result network.DscpConfigurationListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result network.DscpConfigurationListResultIterator, err error) + ListAll(ctx context.Context) (result network.DscpConfigurationListResultPage, err error) + ListAllComplete(ctx context.Context) (result network.DscpConfigurationListResultIterator, err error) +} + +var _ DscpConfigurationClientAPI = (*network.DscpConfigurationClient)(nil) + +// AvailableEndpointServicesClientAPI contains the set of methods on the AvailableEndpointServicesClient type. +type AvailableEndpointServicesClientAPI interface { + List(ctx context.Context, location string) (result network.EndpointServicesListResultPage, err error) + ListComplete(ctx context.Context, location string) (result network.EndpointServicesListResultIterator, err error) +} + +var _ AvailableEndpointServicesClientAPI = (*network.AvailableEndpointServicesClient)(nil) + +// ExpressRouteCircuitAuthorizationsClientAPI contains the set of methods on the ExpressRouteCircuitAuthorizationsClient type. +type ExpressRouteCircuitAuthorizationsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string, authorizationParameters network.ExpressRouteCircuitAuthorization) (result network.ExpressRouteCircuitAuthorizationsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error) + List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error) +} + +var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil) + +// ExpressRouteCircuitPeeringsClientAPI contains the set of methods on the ExpressRouteCircuitPeeringsClient type. +type ExpressRouteCircuitPeeringsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, peeringParameters network.ExpressRouteCircuitPeering) (result network.ExpressRouteCircuitPeeringsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error) + List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error) +} + +var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil) + +// ExpressRouteCircuitConnectionsClientAPI contains the set of methods on the ExpressRouteCircuitConnectionsClient type. +type ExpressRouteCircuitConnectionsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string, expressRouteCircuitConnectionParameters network.ExpressRouteCircuitConnection) (result network.ExpressRouteCircuitConnectionsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.ExpressRouteCircuitConnectionsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.ExpressRouteCircuitConnection, err error) + List(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitConnectionListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitConnectionListResultIterator, err error) +} + +var _ ExpressRouteCircuitConnectionsClientAPI = (*network.ExpressRouteCircuitConnectionsClient)(nil) + +// PeerExpressRouteCircuitConnectionsClientAPI contains the set of methods on the PeerExpressRouteCircuitConnectionsClient type. +type PeerExpressRouteCircuitConnectionsClientAPI interface { + Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.PeerExpressRouteCircuitConnection, err error) + List(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.PeerExpressRouteCircuitConnectionListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.PeerExpressRouteCircuitConnectionListResultIterator, err error) +} + +var _ PeerExpressRouteCircuitConnectionsClientAPI = (*network.PeerExpressRouteCircuitConnectionsClient)(nil) + +// ExpressRouteCircuitsClientAPI contains the set of methods on the ExpressRouteCircuitsClient type. +type ExpressRouteCircuitsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, circuitName string, parameters network.ExpressRouteCircuit) (result network.ExpressRouteCircuitsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuit, err error) + GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitStats, err error) + GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitStats, err error) + List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error) + ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error) + ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error) + ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListArpTableFuture, err error) + ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableFuture, err error) + ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableSummaryFuture, err error) + UpdateTags(ctx context.Context, resourceGroupName string, circuitName string, parameters network.TagsObject) (result network.ExpressRouteCircuit, err error) +} + +var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil) + +// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type. +type ExpressRouteServiceProvidersClientAPI interface { + List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error) + ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error) +} + +var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil) + +// ExpressRouteCrossConnectionsClientAPI contains the set of methods on the ExpressRouteCrossConnectionsClient type. +type ExpressRouteCrossConnectionsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, crossConnectionName string, parameters network.ExpressRouteCrossConnection) (result network.ExpressRouteCrossConnectionsCreateOrUpdateFuture, err error) + Get(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnection, err error) + List(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultPage, err error) + ListComplete(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultIterator, err error) + ListArpTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListArpTableFuture, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultIterator, err error) + ListRoutesTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableFuture, err error) + ListRoutesTableSummary(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableSummaryFuture, err error) + UpdateTags(ctx context.Context, resourceGroupName string, crossConnectionName string, crossConnectionParameters network.TagsObject) (result network.ExpressRouteCrossConnection, err error) +} + +var _ ExpressRouteCrossConnectionsClientAPI = (*network.ExpressRouteCrossConnectionsClient)(nil) + +// ExpressRouteCrossConnectionPeeringsClientAPI contains the set of methods on the ExpressRouteCrossConnectionPeeringsClient type. +type ExpressRouteCrossConnectionPeeringsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, peeringParameters network.ExpressRouteCrossConnectionPeering) (result network.ExpressRouteCrossConnectionPeeringsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeeringsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeering, err error) + List(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListIterator, err error) +} + +var _ ExpressRouteCrossConnectionPeeringsClientAPI = (*network.ExpressRouteCrossConnectionPeeringsClient)(nil) + +// ExpressRoutePortsLocationsClientAPI contains the set of methods on the ExpressRoutePortsLocationsClient type. +type ExpressRoutePortsLocationsClientAPI interface { + Get(ctx context.Context, locationName string) (result network.ExpressRoutePortsLocation, err error) + List(ctx context.Context) (result network.ExpressRoutePortsLocationListResultPage, err error) + ListComplete(ctx context.Context) (result network.ExpressRoutePortsLocationListResultIterator, err error) +} + +var _ ExpressRoutePortsLocationsClientAPI = (*network.ExpressRoutePortsLocationsClient)(nil) + +// ExpressRoutePortsClientAPI contains the set of methods on the ExpressRoutePortsClient type. +type ExpressRoutePortsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, expressRoutePortName string, parameters network.ExpressRoutePort) (result network.ExpressRoutePortsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRoutePortsDeleteFuture, err error) + GenerateLOA(ctx context.Context, resourceGroupName string, expressRoutePortName string, request network.GenerateExpressRoutePortsLOARequest) (result network.GenerateExpressRoutePortsLOAResult, err error) + Get(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRoutePort, err error) + List(ctx context.Context) (result network.ExpressRoutePortListResultPage, err error) + ListComplete(ctx context.Context) (result network.ExpressRoutePortListResultIterator, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRoutePortListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRoutePortListResultIterator, err error) + UpdateTags(ctx context.Context, resourceGroupName string, expressRoutePortName string, parameters network.TagsObject) (result network.ExpressRoutePort, err error) +} + +var _ ExpressRoutePortsClientAPI = (*network.ExpressRoutePortsClient)(nil) + +// ExpressRouteLinksClientAPI contains the set of methods on the ExpressRouteLinksClient type. +type ExpressRouteLinksClientAPI interface { + Get(ctx context.Context, resourceGroupName string, expressRoutePortName string, linkName string) (result network.ExpressRouteLink, err error) + List(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRouteLinkListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRouteLinkListResultIterator, err error) +} + +var _ ExpressRouteLinksClientAPI = (*network.ExpressRouteLinksClient)(nil) + +// FirewallPoliciesClientAPI contains the set of methods on the FirewallPoliciesClient type. +type FirewallPoliciesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, firewallPolicyName string, parameters network.FirewallPolicy) (result network.FirewallPoliciesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, firewallPolicyName string) (result network.FirewallPoliciesDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, firewallPolicyName string, expand string) (result network.FirewallPolicy, err error) + List(ctx context.Context, resourceGroupName string) (result network.FirewallPolicyListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result network.FirewallPolicyListResultIterator, err error) + ListAll(ctx context.Context) (result network.FirewallPolicyListResultPage, err error) + ListAllComplete(ctx context.Context) (result network.FirewallPolicyListResultIterator, err error) +} + +var _ FirewallPoliciesClientAPI = (*network.FirewallPoliciesClient)(nil) + +// FirewallPolicyRuleCollectionGroupsClientAPI contains the set of methods on the FirewallPolicyRuleCollectionGroupsClient type. +type FirewallPolicyRuleCollectionGroupsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, firewallPolicyName string, ruleCollectionGroupName string, parameters network.FirewallPolicyRuleCollectionGroup) (result network.FirewallPolicyRuleCollectionGroupsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, firewallPolicyName string, ruleCollectionGroupName string) (result network.FirewallPolicyRuleCollectionGroupsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, firewallPolicyName string, ruleCollectionGroupName string) (result network.FirewallPolicyRuleCollectionGroup, err error) + List(ctx context.Context, resourceGroupName string, firewallPolicyName string) (result network.FirewallPolicyRuleCollectionGroupListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, firewallPolicyName string) (result network.FirewallPolicyRuleCollectionGroupListResultIterator, err error) +} + +var _ FirewallPolicyRuleCollectionGroupsClientAPI = (*network.FirewallPolicyRuleCollectionGroupsClient)(nil) + +// IPAllocationsClientAPI contains the set of methods on the IPAllocationsClient type. +type IPAllocationsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, IPAllocationName string, parameters network.IPAllocation) (result network.IPAllocationsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, IPAllocationName string) (result network.IPAllocationsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, IPAllocationName string, expand string) (result network.IPAllocation, err error) + List(ctx context.Context) (result network.IPAllocationListResultPage, err error) + ListComplete(ctx context.Context) (result network.IPAllocationListResultIterator, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.IPAllocationListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.IPAllocationListResultIterator, err error) + UpdateTags(ctx context.Context, resourceGroupName string, IPAllocationName string, parameters network.TagsObject) (result network.IPAllocation, err error) +} + +var _ IPAllocationsClientAPI = (*network.IPAllocationsClient)(nil) + +// IPGroupsClientAPI contains the set of methods on the IPGroupsClient type. +type IPGroupsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, IPGroupsName string, parameters network.IPGroup) (result network.IPGroupsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, IPGroupsName string) (result network.IPGroupsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, IPGroupsName string, expand string) (result network.IPGroup, err error) + List(ctx context.Context) (result network.IPGroupListResultPage, err error) + ListComplete(ctx context.Context) (result network.IPGroupListResultIterator, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.IPGroupListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.IPGroupListResultIterator, err error) + UpdateGroups(ctx context.Context, resourceGroupName string, IPGroupsName string, parameters network.TagsObject) (result network.IPGroup, err error) +} + +var _ IPGroupsClientAPI = (*network.IPGroupsClient)(nil) + +// LoadBalancersClientAPI contains the set of methods on the LoadBalancersClient type. +type LoadBalancersClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters network.LoadBalancer) (result network.LoadBalancersCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error) + List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error) + ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error) + ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error) + UpdateTags(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters network.TagsObject) (result network.LoadBalancer, err error) +} + +var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil) + +// LoadBalancerBackendAddressPoolsClientAPI contains the set of methods on the LoadBalancerBackendAddressPoolsClient type. +type LoadBalancerBackendAddressPoolsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string, parameters network.BackendAddressPool) (result network.LoadBalancerBackendAddressPoolsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (result network.LoadBalancerBackendAddressPoolsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (result network.BackendAddressPool, err error) + List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultIterator, err error) +} + +var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAddressPoolsClient)(nil) + +// LoadBalancerFrontendIPConfigurationsClientAPI contains the set of methods on the LoadBalancerFrontendIPConfigurationsClient type. +type LoadBalancerFrontendIPConfigurationsClientAPI interface { + Get(ctx context.Context, resourceGroupName string, loadBalancerName string, frontendIPConfigurationName string) (result network.FrontendIPConfiguration, err error) + List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultIterator, err error) +} + +var _ LoadBalancerFrontendIPConfigurationsClientAPI = (*network.LoadBalancerFrontendIPConfigurationsClient)(nil) + +// InboundNatRulesClientAPI contains the set of methods on the InboundNatRulesClient type. +type InboundNatRulesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, inboundNatRuleParameters network.InboundNatRule) (result network.InboundNatRulesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string) (result network.InboundNatRulesDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, expand string) (result network.InboundNatRule, err error) + List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultIterator, err error) +} + +var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil) + +// LoadBalancerLoadBalancingRulesClientAPI contains the set of methods on the LoadBalancerLoadBalancingRulesClient type. +type LoadBalancerLoadBalancingRulesClientAPI interface { + Get(ctx context.Context, resourceGroupName string, loadBalancerName string, loadBalancingRuleName string) (result network.LoadBalancingRule, err error) + List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultIterator, err error) +} + +var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalancingRulesClient)(nil) + +// LoadBalancerOutboundRulesClientAPI contains the set of methods on the LoadBalancerOutboundRulesClient type. +type LoadBalancerOutboundRulesClientAPI interface { + Get(ctx context.Context, resourceGroupName string, loadBalancerName string, outboundRuleName string) (result network.OutboundRule, err error) + List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerOutboundRuleListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerOutboundRuleListResultIterator, err error) +} + +var _ LoadBalancerOutboundRulesClientAPI = (*network.LoadBalancerOutboundRulesClient)(nil) + +// LoadBalancerNetworkInterfacesClientAPI contains the set of methods on the LoadBalancerNetworkInterfacesClient type. +type LoadBalancerNetworkInterfacesClientAPI interface { + List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultIterator, err error) +} + +var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInterfacesClient)(nil) + +// LoadBalancerProbesClientAPI contains the set of methods on the LoadBalancerProbesClient type. +type LoadBalancerProbesClientAPI interface { + Get(ctx context.Context, resourceGroupName string, loadBalancerName string, probeName string) (result network.Probe, err error) + List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultIterator, err error) +} + +var _ LoadBalancerProbesClientAPI = (*network.LoadBalancerProbesClient)(nil) + +// NatGatewaysClientAPI contains the set of methods on the NatGatewaysClient type. +type NatGatewaysClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, natGatewayName string, parameters network.NatGateway) (result network.NatGatewaysCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, natGatewayName string) (result network.NatGatewaysDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, natGatewayName string, expand string) (result network.NatGateway, err error) + List(ctx context.Context, resourceGroupName string) (result network.NatGatewayListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result network.NatGatewayListResultIterator, err error) + ListAll(ctx context.Context) (result network.NatGatewayListResultPage, err error) + ListAllComplete(ctx context.Context) (result network.NatGatewayListResultIterator, err error) + UpdateTags(ctx context.Context, resourceGroupName string, natGatewayName string, parameters network.TagsObject) (result network.NatGateway, err error) +} + +var _ NatGatewaysClientAPI = (*network.NatGatewaysClient)(nil) + +// InterfacesClientAPI contains the set of methods on the InterfacesClient type. +type InterfacesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters network.Interface) (result network.InterfacesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, expand string) (result network.Interface, err error) + GetCloudServiceNetworkInterface(ctx context.Context, resourceGroupName string, cloudServiceName string, roleInstanceName string, networkInterfaceName string, expand string) (result network.Interface, err error) + GetEffectiveRouteTable(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesGetEffectiveRouteTableFuture, err error) + GetVirtualMachineScaleSetIPConfiguration(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, expand string) (result network.InterfaceIPConfiguration, err error) + GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error) + List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error) + ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error) + ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error) + ListCloudServiceNetworkInterfaces(ctx context.Context, resourceGroupName string, cloudServiceName string) (result network.InterfaceListResultPage, err error) + ListCloudServiceNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, cloudServiceName string) (result network.InterfaceListResultIterator, err error) + ListCloudServiceRoleInstanceNetworkInterfaces(ctx context.Context, resourceGroupName string, cloudServiceName string, roleInstanceName string) (result network.InterfaceListResultPage, err error) + ListCloudServiceRoleInstanceNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, cloudServiceName string, roleInstanceName string) (result network.InterfaceListResultIterator, err error) + ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesListEffectiveNetworkSecurityGroupsFuture, err error) + ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultPage, err error) + ListVirtualMachineScaleSetIPConfigurationsComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultIterator, err error) + ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error) + ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error) + ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error) + ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error) + UpdateTags(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters network.TagsObject) (result network.Interface, err error) +} + +var _ InterfacesClientAPI = (*network.InterfacesClient)(nil) + +// InterfaceIPConfigurationsClientAPI contains the set of methods on the InterfaceIPConfigurationsClient type. +type InterfaceIPConfigurationsClientAPI interface { + Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, IPConfigurationName string) (result network.InterfaceIPConfiguration, err error) + List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultIterator, err error) +} + +var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsClient)(nil) + +// InterfaceLoadBalancersClientAPI contains the set of methods on the InterfaceLoadBalancersClient type. +type InterfaceLoadBalancersClientAPI interface { + List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultIterator, err error) +} + +var _ InterfaceLoadBalancersClientAPI = (*network.InterfaceLoadBalancersClient)(nil) + +// InterfaceTapConfigurationsClientAPI contains the set of methods on the InterfaceTapConfigurationsClient type. +type InterfaceTapConfigurationsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string, tapConfigurationParameters network.InterfaceTapConfiguration) (result network.InterfaceTapConfigurationsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (result network.InterfaceTapConfigurationsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (result network.InterfaceTapConfiguration, err error) + List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceTapConfigurationListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceTapConfigurationListResultIterator, err error) +} + +var _ InterfaceTapConfigurationsClientAPI = (*network.InterfaceTapConfigurationsClient)(nil) + +// ProfilesClientAPI contains the set of methods on the ProfilesClient type. +type ProfilesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, networkProfileName string, parameters network.Profile) (result network.Profile, err error) + Delete(ctx context.Context, resourceGroupName string, networkProfileName string) (result network.ProfilesDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, networkProfileName string, expand string) (result network.Profile, err error) + List(ctx context.Context, resourceGroupName string) (result network.ProfileListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result network.ProfileListResultIterator, err error) + ListAll(ctx context.Context) (result network.ProfileListResultPage, err error) + ListAllComplete(ctx context.Context) (result network.ProfileListResultIterator, err error) + UpdateTags(ctx context.Context, resourceGroupName string, networkProfileName string, parameters network.TagsObject) (result network.Profile, err error) +} + +var _ ProfilesClientAPI = (*network.ProfilesClient)(nil) + +// SecurityGroupsClientAPI contains the set of methods on the SecurityGroupsClient type. +type SecurityGroupsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, parameters network.SecurityGroup) (result network.SecurityGroupsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error) + List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error) + ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error) + ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error) + UpdateTags(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, parameters network.TagsObject) (result network.SecurityGroup, err error) +} + +var _ SecurityGroupsClientAPI = (*network.SecurityGroupsClient)(nil) + +// SecurityRulesClientAPI contains the set of methods on the SecurityRulesClient type. +type SecurityRulesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string, securityRuleParameters network.SecurityRule) (result network.SecurityRulesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error) + List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error) +} + +var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil) + +// DefaultSecurityRulesClientAPI contains the set of methods on the DefaultSecurityRulesClient type. +type DefaultSecurityRulesClientAPI interface { + Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) (result network.SecurityRule, err error) + List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error) +} + +var _ DefaultSecurityRulesClientAPI = (*network.DefaultSecurityRulesClient)(nil) + +// VirtualAppliancesClientAPI contains the set of methods on the VirtualAppliancesClient type. +type VirtualAppliancesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, parameters network.VirtualAppliance) (result network.VirtualAppliancesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string) (result network.VirtualAppliancesDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, expand string) (result network.VirtualAppliance, err error) + List(ctx context.Context) (result network.VirtualApplianceListResultPage, err error) + ListComplete(ctx context.Context) (result network.VirtualApplianceListResultIterator, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.VirtualApplianceListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.VirtualApplianceListResultIterator, err error) + UpdateTags(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, parameters network.TagsObject) (result network.VirtualAppliance, err error) +} + +var _ VirtualAppliancesClientAPI = (*network.VirtualAppliancesClient)(nil) + +// VirtualApplianceSitesClientAPI contains the set of methods on the VirtualApplianceSitesClient type. +type VirtualApplianceSitesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, siteName string, parameters network.VirtualApplianceSite) (result network.VirtualApplianceSitesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, siteName string) (result network.VirtualApplianceSitesDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, siteName string) (result network.VirtualApplianceSite, err error) + List(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string) (result network.VirtualApplianceSiteListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string) (result network.VirtualApplianceSiteListResultIterator, err error) +} + +var _ VirtualApplianceSitesClientAPI = (*network.VirtualApplianceSitesClient)(nil) + +// VirtualApplianceSkusClientAPI contains the set of methods on the VirtualApplianceSkusClient type. +type VirtualApplianceSkusClientAPI interface { + Get(ctx context.Context, skuName string) (result network.VirtualApplianceSku, err error) + List(ctx context.Context) (result network.VirtualApplianceSkuListResultPage, err error) + ListComplete(ctx context.Context) (result network.VirtualApplianceSkuListResultIterator, err error) +} + +var _ VirtualApplianceSkusClientAPI = (*network.VirtualApplianceSkusClient)(nil) + +// InboundSecurityRuleClientAPI contains the set of methods on the InboundSecurityRuleClient type. +type InboundSecurityRuleClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, ruleCollectionName string, parameters network.InboundSecurityRule) (result network.InboundSecurityRuleCreateOrUpdateFuture, err error) +} + +var _ InboundSecurityRuleClientAPI = (*network.InboundSecurityRuleClient)(nil) + +// WatchersClientAPI contains the set of methods on the WatchersClient type. +type WatchersClientAPI interface { + CheckConnectivity(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters network.ConnectivityParameters) (result network.WatchersCheckConnectivityFuture, err error) + CreateOrUpdate(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters network.Watcher) (result network.Watcher, err error) + Delete(ctx context.Context, resourceGroupName string, networkWatcherName string) (result network.WatchersDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, networkWatcherName string) (result network.Watcher, err error) + GetAzureReachabilityReport(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters network.AzureReachabilityReportParameters) (result network.WatchersGetAzureReachabilityReportFuture, err error) + GetFlowLogStatus(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters network.FlowLogStatusParameters) (result network.WatchersGetFlowLogStatusFuture, err error) + GetNetworkConfigurationDiagnostic(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters network.ConfigurationDiagnosticParameters) (result network.WatchersGetNetworkConfigurationDiagnosticFuture, err error) + GetNextHop(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters network.NextHopParameters) (result network.WatchersGetNextHopFuture, err error) + GetTopology(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters network.TopologyParameters) (result network.Topology, err error) + GetTroubleshooting(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters network.TroubleshootingParameters) (result network.WatchersGetTroubleshootingFuture, err error) + GetTroubleshootingResult(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters network.QueryTroubleshootingParameters) (result network.WatchersGetTroubleshootingResultFuture, err error) + GetVMSecurityRules(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters network.SecurityGroupViewParameters) (result network.WatchersGetVMSecurityRulesFuture, err error) + List(ctx context.Context, resourceGroupName string) (result network.WatcherListResult, err error) + ListAll(ctx context.Context) (result network.WatcherListResult, err error) + ListAvailableProviders(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters network.AvailableProvidersListParameters) (result network.WatchersListAvailableProvidersFuture, err error) + SetFlowLogConfiguration(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters network.FlowLogInformation) (result network.WatchersSetFlowLogConfigurationFuture, err error) + UpdateTags(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters network.TagsObject) (result network.Watcher, err error) + VerifyIPFlow(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters network.VerificationIPFlowParameters) (result network.WatchersVerifyIPFlowFuture, err error) +} + +var _ WatchersClientAPI = (*network.WatchersClient)(nil) + +// PacketCapturesClientAPI contains the set of methods on the PacketCapturesClient type. +type PacketCapturesClientAPI interface { + Create(ctx context.Context, resourceGroupName string, networkWatcherName string, packetCaptureName string, parameters network.PacketCapture) (result network.PacketCapturesCreateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, networkWatcherName string, packetCaptureName string) (result network.PacketCapturesDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, networkWatcherName string, packetCaptureName string) (result network.PacketCaptureResult, err error) + GetStatus(ctx context.Context, resourceGroupName string, networkWatcherName string, packetCaptureName string) (result network.PacketCapturesGetStatusFuture, err error) + List(ctx context.Context, resourceGroupName string, networkWatcherName string) (result network.PacketCaptureListResult, err error) + Stop(ctx context.Context, resourceGroupName string, networkWatcherName string, packetCaptureName string) (result network.PacketCapturesStopFuture, err error) +} + +var _ PacketCapturesClientAPI = (*network.PacketCapturesClient)(nil) + +// ConnectionMonitorsClientAPI contains the set of methods on the ConnectionMonitorsClient type. +type ConnectionMonitorsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string, parameters network.ConnectionMonitor, migrate string) (result network.ConnectionMonitorsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string) (result network.ConnectionMonitorsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string) (result network.ConnectionMonitorResult, err error) + List(ctx context.Context, resourceGroupName string, networkWatcherName string) (result network.ConnectionMonitorListResult, err error) + Query(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string) (result network.ConnectionMonitorsQueryFuture, err error) + Start(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string) (result network.ConnectionMonitorsStartFuture, err error) + Stop(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string) (result network.ConnectionMonitorsStopFuture, err error) + UpdateTags(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string, parameters network.TagsObject) (result network.ConnectionMonitorResult, err error) +} + +var _ ConnectionMonitorsClientAPI = (*network.ConnectionMonitorsClient)(nil) + +// FlowLogsClientAPI contains the set of methods on the FlowLogsClient type. +type FlowLogsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, networkWatcherName string, flowLogName string, parameters network.FlowLog) (result network.FlowLogsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, networkWatcherName string, flowLogName string) (result network.FlowLogsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, networkWatcherName string, flowLogName string) (result network.FlowLog, err error) + List(ctx context.Context, resourceGroupName string, networkWatcherName string) (result network.FlowLogListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, networkWatcherName string) (result network.FlowLogListResultIterator, err error) + UpdateTags(ctx context.Context, resourceGroupName string, networkWatcherName string, flowLogName string, parameters network.TagsObject) (result network.FlowLog, err error) +} + +var _ FlowLogsClientAPI = (*network.FlowLogsClient)(nil) + +// OperationsClientAPI contains the set of methods on the OperationsClient type. +type OperationsClientAPI interface { + List(ctx context.Context) (result network.OperationListResultPage, err error) + ListComplete(ctx context.Context) (result network.OperationListResultIterator, err error) +} + +var _ OperationsClientAPI = (*network.OperationsClient)(nil) + +// PrivateEndpointsClientAPI contains the set of methods on the PrivateEndpointsClient type. +type PrivateEndpointsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, privateEndpointName string, parameters network.PrivateEndpoint) (result network.PrivateEndpointsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, privateEndpointName string) (result network.PrivateEndpointsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, privateEndpointName string, expand string) (result network.PrivateEndpoint, err error) + List(ctx context.Context, resourceGroupName string) (result network.PrivateEndpointListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result network.PrivateEndpointListResultIterator, err error) + ListBySubscription(ctx context.Context) (result network.PrivateEndpointListResultPage, err error) + ListBySubscriptionComplete(ctx context.Context) (result network.PrivateEndpointListResultIterator, err error) +} + +var _ PrivateEndpointsClientAPI = (*network.PrivateEndpointsClient)(nil) + +// AvailablePrivateEndpointTypesClientAPI contains the set of methods on the AvailablePrivateEndpointTypesClient type. +type AvailablePrivateEndpointTypesClientAPI interface { + List(ctx context.Context, location string) (result network.AvailablePrivateEndpointTypesResultPage, err error) + ListComplete(ctx context.Context, location string) (result network.AvailablePrivateEndpointTypesResultIterator, err error) + ListByResourceGroup(ctx context.Context, location string, resourceGroupName string) (result network.AvailablePrivateEndpointTypesResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, location string, resourceGroupName string) (result network.AvailablePrivateEndpointTypesResultIterator, err error) +} + +var _ AvailablePrivateEndpointTypesClientAPI = (*network.AvailablePrivateEndpointTypesClient)(nil) + +// PrivateDNSZoneGroupsClientAPI contains the set of methods on the PrivateDNSZoneGroupsClient type. +type PrivateDNSZoneGroupsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, privateEndpointName string, privateDNSZoneGroupName string, parameters network.PrivateDNSZoneGroup) (result network.PrivateDNSZoneGroupsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, privateEndpointName string, privateDNSZoneGroupName string) (result network.PrivateDNSZoneGroupsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, privateEndpointName string, privateDNSZoneGroupName string) (result network.PrivateDNSZoneGroup, err error) + List(ctx context.Context, privateEndpointName string, resourceGroupName string) (result network.PrivateDNSZoneGroupListResultPage, err error) + ListComplete(ctx context.Context, privateEndpointName string, resourceGroupName string) (result network.PrivateDNSZoneGroupListResultIterator, err error) +} + +var _ PrivateDNSZoneGroupsClientAPI = (*network.PrivateDNSZoneGroupsClient)(nil) + +// PrivateLinkServicesClientAPI contains the set of methods on the PrivateLinkServicesClient type. +type PrivateLinkServicesClientAPI interface { + CheckPrivateLinkServiceVisibility(ctx context.Context, location string, parameters network.CheckPrivateLinkServiceVisibilityRequest) (result network.PrivateLinkServicesCheckPrivateLinkServiceVisibilityFuture, err error) + CheckPrivateLinkServiceVisibilityByResourceGroup(ctx context.Context, location string, resourceGroupName string, parameters network.CheckPrivateLinkServiceVisibilityRequest) (result network.PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupFuture, err error) + CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, parameters network.PrivateLinkService) (result network.PrivateLinkServicesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, serviceName string) (result network.PrivateLinkServicesDeleteFuture, err error) + DeletePrivateEndpointConnection(ctx context.Context, resourceGroupName string, serviceName string, peConnectionName string) (result network.PrivateLinkServicesDeletePrivateEndpointConnectionFuture, err error) + Get(ctx context.Context, resourceGroupName string, serviceName string, expand string) (result network.PrivateLinkService, err error) + GetPrivateEndpointConnection(ctx context.Context, resourceGroupName string, serviceName string, peConnectionName string, expand string) (result network.PrivateEndpointConnection, err error) + List(ctx context.Context, resourceGroupName string) (result network.PrivateLinkServiceListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result network.PrivateLinkServiceListResultIterator, err error) + ListAutoApprovedPrivateLinkServices(ctx context.Context, location string) (result network.AutoApprovedPrivateLinkServicesResultPage, err error) + ListAutoApprovedPrivateLinkServicesComplete(ctx context.Context, location string) (result network.AutoApprovedPrivateLinkServicesResultIterator, err error) + ListAutoApprovedPrivateLinkServicesByResourceGroup(ctx context.Context, location string, resourceGroupName string) (result network.AutoApprovedPrivateLinkServicesResultPage, err error) + ListAutoApprovedPrivateLinkServicesByResourceGroupComplete(ctx context.Context, location string, resourceGroupName string) (result network.AutoApprovedPrivateLinkServicesResultIterator, err error) + ListBySubscription(ctx context.Context) (result network.PrivateLinkServiceListResultPage, err error) + ListBySubscriptionComplete(ctx context.Context) (result network.PrivateLinkServiceListResultIterator, err error) + ListPrivateEndpointConnections(ctx context.Context, resourceGroupName string, serviceName string) (result network.PrivateEndpointConnectionListResultPage, err error) + ListPrivateEndpointConnectionsComplete(ctx context.Context, resourceGroupName string, serviceName string) (result network.PrivateEndpointConnectionListResultIterator, err error) + UpdatePrivateEndpointConnection(ctx context.Context, resourceGroupName string, serviceName string, peConnectionName string, parameters network.PrivateEndpointConnection) (result network.PrivateEndpointConnection, err error) +} + +var _ PrivateLinkServicesClientAPI = (*network.PrivateLinkServicesClient)(nil) + +// PublicIPAddressesClientAPI contains the set of methods on the PublicIPAddressesClient type. +type PublicIPAddressesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters network.PublicIPAddress) (result network.PublicIPAddressesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, publicIPAddressName string) (result network.PublicIPAddressesDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error) + GetCloudServicePublicIPAddress(ctx context.Context, resourceGroupName string, cloudServiceName string, roleInstanceName string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error) + GetVirtualMachineScaleSetPublicIPAddress(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error) + List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error) + ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error) + ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error) + ListCloudServicePublicIPAddresses(ctx context.Context, resourceGroupName string, cloudServiceName string) (result network.PublicIPAddressListResultPage, err error) + ListCloudServicePublicIPAddressesComplete(ctx context.Context, resourceGroupName string, cloudServiceName string) (result network.PublicIPAddressListResultIterator, err error) + ListCloudServiceRoleInstancePublicIPAddresses(ctx context.Context, resourceGroupName string, cloudServiceName string, roleInstanceName string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultPage, err error) + ListCloudServiceRoleInstancePublicIPAddressesComplete(ctx context.Context, resourceGroupName string, cloudServiceName string, roleInstanceName string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultIterator, err error) + ListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultPage, err error) + ListVirtualMachineScaleSetPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultIterator, err error) + ListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultPage, err error) + ListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultIterator, err error) + UpdateTags(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters network.TagsObject) (result network.PublicIPAddress, err error) +} + +var _ PublicIPAddressesClientAPI = (*network.PublicIPAddressesClient)(nil) + +// PublicIPPrefixesClientAPI contains the set of methods on the PublicIPPrefixesClient type. +type PublicIPPrefixesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, publicIPPrefixName string, parameters network.PublicIPPrefix) (result network.PublicIPPrefixesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, publicIPPrefixName string) (result network.PublicIPPrefixesDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, publicIPPrefixName string, expand string) (result network.PublicIPPrefix, err error) + List(ctx context.Context, resourceGroupName string) (result network.PublicIPPrefixListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPPrefixListResultIterator, err error) + ListAll(ctx context.Context) (result network.PublicIPPrefixListResultPage, err error) + ListAllComplete(ctx context.Context) (result network.PublicIPPrefixListResultIterator, err error) + UpdateTags(ctx context.Context, resourceGroupName string, publicIPPrefixName string, parameters network.TagsObject) (result network.PublicIPPrefix, err error) +} + +var _ PublicIPPrefixesClientAPI = (*network.PublicIPPrefixesClient)(nil) + +// RouteFiltersClientAPI contains the set of methods on the RouteFiltersClient type. +type RouteFiltersClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, routeFilterName string, routeFilterParameters network.RouteFilter) (result network.RouteFiltersCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFiltersDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, routeFilterName string, expand string) (result network.RouteFilter, err error) + List(ctx context.Context) (result network.RouteFilterListResultPage, err error) + ListComplete(ctx context.Context) (result network.RouteFilterListResultIterator, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultIterator, err error) + UpdateTags(ctx context.Context, resourceGroupName string, routeFilterName string, parameters network.TagsObject) (result network.RouteFilter, err error) +} + +var _ RouteFiltersClientAPI = (*network.RouteFiltersClient)(nil) + +// RouteFilterRulesClientAPI contains the set of methods on the RouteFilterRulesClient type. +type RouteFilterRulesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, routeFilterRuleParameters network.RouteFilterRule) (result network.RouteFilterRulesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRulesDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRule, err error) + ListByRouteFilter(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultPage, err error) + ListByRouteFilterComplete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultIterator, err error) +} + +var _ RouteFilterRulesClientAPI = (*network.RouteFilterRulesClient)(nil) + +// RouteTablesClientAPI contains the set of methods on the RouteTablesClient type. +type RouteTablesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, routeTableName string, parameters network.RouteTable) (result network.RouteTablesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error) + List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error) + ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error) + ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error) + UpdateTags(ctx context.Context, resourceGroupName string, routeTableName string, parameters network.TagsObject) (result network.RouteTable, err error) +} + +var _ RouteTablesClientAPI = (*network.RouteTablesClient)(nil) + +// RoutesClientAPI contains the set of methods on the RoutesClient type. +type RoutesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, routeTableName string, routeName string, routeParameters network.Route) (result network.RoutesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error) + List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error) +} + +var _ RoutesClientAPI = (*network.RoutesClient)(nil) + +// SecurityPartnerProvidersClientAPI contains the set of methods on the SecurityPartnerProvidersClient type. +type SecurityPartnerProvidersClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, securityPartnerProviderName string, parameters network.SecurityPartnerProvider) (result network.SecurityPartnerProvidersCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, securityPartnerProviderName string) (result network.SecurityPartnerProvidersDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, securityPartnerProviderName string) (result network.SecurityPartnerProvider, err error) + List(ctx context.Context) (result network.SecurityPartnerProviderListResultPage, err error) + ListComplete(ctx context.Context) (result network.SecurityPartnerProviderListResultIterator, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.SecurityPartnerProviderListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.SecurityPartnerProviderListResultIterator, err error) + UpdateTags(ctx context.Context, resourceGroupName string, securityPartnerProviderName string, parameters network.TagsObject) (result network.SecurityPartnerProvider, err error) +} + +var _ SecurityPartnerProvidersClientAPI = (*network.SecurityPartnerProvidersClient)(nil) + +// BgpServiceCommunitiesClientAPI contains the set of methods on the BgpServiceCommunitiesClient type. +type BgpServiceCommunitiesClientAPI interface { + List(ctx context.Context) (result network.BgpServiceCommunityListResultPage, err error) + ListComplete(ctx context.Context) (result network.BgpServiceCommunityListResultIterator, err error) +} + +var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(nil) + +// ServiceEndpointPoliciesClientAPI contains the set of methods on the ServiceEndpointPoliciesClient type. +type ServiceEndpointPoliciesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, parameters network.ServiceEndpointPolicy) (result network.ServiceEndpointPoliciesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPoliciesDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, expand string) (result network.ServiceEndpointPolicy, err error) + List(ctx context.Context) (result network.ServiceEndpointPolicyListResultPage, err error) + ListComplete(ctx context.Context) (result network.ServiceEndpointPolicyListResultIterator, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ServiceEndpointPolicyListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ServiceEndpointPolicyListResultIterator, err error) + UpdateTags(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, parameters network.TagsObject) (result network.ServiceEndpointPolicy, err error) +} + +var _ ServiceEndpointPoliciesClientAPI = (*network.ServiceEndpointPoliciesClient)(nil) + +// ServiceEndpointPolicyDefinitionsClientAPI contains the set of methods on the ServiceEndpointPolicyDefinitionsClient type. +type ServiceEndpointPolicyDefinitionsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string, serviceEndpointPolicyDefinitions network.ServiceEndpointPolicyDefinition) (result network.ServiceEndpointPolicyDefinitionsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (result network.ServiceEndpointPolicyDefinitionsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (result network.ServiceEndpointPolicyDefinition, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPolicyDefinitionListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPolicyDefinitionListResultIterator, err error) +} + +var _ ServiceEndpointPolicyDefinitionsClientAPI = (*network.ServiceEndpointPolicyDefinitionsClient)(nil) + +// ServiceTagsClientAPI contains the set of methods on the ServiceTagsClient type. +type ServiceTagsClientAPI interface { + List(ctx context.Context, location string) (result network.ServiceTagsListResult, err error) +} + +var _ ServiceTagsClientAPI = (*network.ServiceTagsClient)(nil) + +// UsagesClientAPI contains the set of methods on the UsagesClient type. +type UsagesClientAPI interface { + List(ctx context.Context, location string) (result network.UsagesListResultPage, err error) + ListComplete(ctx context.Context, location string) (result network.UsagesListResultIterator, err error) +} + +var _ UsagesClientAPI = (*network.UsagesClient)(nil) + +// VirtualNetworksClientAPI contains the set of methods on the VirtualNetworksClient type. +type VirtualNetworksClientAPI interface { + CheckIPAddressAvailability(ctx context.Context, resourceGroupName string, virtualNetworkName string, IPAddress string) (result network.IPAddressAvailabilityResult, err error) + CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters network.VirtualNetwork) (result network.VirtualNetworksCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error) + List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error) + ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error) + ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error) + ListUsage(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultPage, err error) + ListUsageComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultIterator, err error) + UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters network.TagsObject) (result network.VirtualNetwork, err error) +} + +var _ VirtualNetworksClientAPI = (*network.VirtualNetworksClient)(nil) + +// SubnetsClientAPI contains the set of methods on the SubnetsClient type. +type SubnetsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, subnetParameters network.Subnet) (result network.SubnetsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error) + List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error) + PrepareNetworkPolicies(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, prepareNetworkPoliciesRequestParameters network.PrepareNetworkPoliciesRequest) (result network.SubnetsPrepareNetworkPoliciesFuture, err error) + UnprepareNetworkPolicies(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, unprepareNetworkPoliciesRequestParameters network.UnprepareNetworkPoliciesRequest) (result network.SubnetsUnprepareNetworkPoliciesFuture, err error) +} + +var _ SubnetsClientAPI = (*network.SubnetsClient)(nil) + +// ResourceNavigationLinksClientAPI contains the set of methods on the ResourceNavigationLinksClient type. +type ResourceNavigationLinksClientAPI interface { + List(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.ResourceNavigationLinksListResult, err error) +} + +var _ ResourceNavigationLinksClientAPI = (*network.ResourceNavigationLinksClient)(nil) + +// ServiceAssociationLinksClientAPI contains the set of methods on the ServiceAssociationLinksClient type. +type ServiceAssociationLinksClientAPI interface { + List(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.ServiceAssociationLinksListResult, err error) +} + +var _ ServiceAssociationLinksClientAPI = (*network.ServiceAssociationLinksClient)(nil) + +// VirtualNetworkPeeringsClientAPI contains the set of methods on the VirtualNetworkPeeringsClient type. +type VirtualNetworkPeeringsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string, virtualNetworkPeeringParameters network.VirtualNetworkPeering) (result network.VirtualNetworkPeeringsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeeringsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeering, err error) + List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultIterator, err error) +} + +var _ VirtualNetworkPeeringsClientAPI = (*network.VirtualNetworkPeeringsClient)(nil) + +// VirtualNetworkGatewaysClientAPI contains the set of methods on the VirtualNetworkGatewaysClient type. +type VirtualNetworkGatewaysClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters network.VirtualNetworkGateway) (result network.VirtualNetworkGatewaysCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysDeleteFuture, err error) + DisconnectVirtualNetworkGatewayVpnConnections(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, request network.P2SVpnConnectionRequest) (result network.VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsFuture, err error) + Generatevpnclientpackage(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters network.VpnClientParameters) (result network.VirtualNetworkGatewaysGeneratevpnclientpackageFuture, err error) + GenerateVpnProfile(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters network.VpnClientParameters) (result network.VirtualNetworkGatewaysGenerateVpnProfileFuture, err error) + Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGateway, err error) + GetAdvertisedRoutes(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, peer string) (result network.VirtualNetworkGatewaysGetAdvertisedRoutesFuture, err error) + GetBgpPeerStatus(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, peer string) (result network.VirtualNetworkGatewaysGetBgpPeerStatusFuture, err error) + GetLearnedRoutes(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetLearnedRoutesFuture, err error) + GetVpnclientConnectionHealth(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnclientConnectionHealthFuture, err error) + GetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture, err error) + GetVpnProfilePackageURL(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnProfilePackageURLFuture, err error) + List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error) + ListConnections(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultPage, err error) + ListConnectionsComplete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultIterator, err error) + Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, gatewayVip string) (result network.VirtualNetworkGatewaysResetFuture, err error) + ResetVpnClientSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysResetVpnClientSharedKeyFuture, err error) + SetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, vpnclientIpsecParams network.VpnClientIPsecParameters) (result network.VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture, err error) + StartPacketCapture(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters *network.VpnPacketCaptureStartParameters) (result network.VirtualNetworkGatewaysStartPacketCaptureFuture, err error) + StopPacketCapture(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters network.VpnPacketCaptureStopParameters) (result network.VirtualNetworkGatewaysStopPacketCaptureFuture, err error) + SupportedVpnDevices(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.String, err error) + UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters network.TagsObject) (result network.VirtualNetworkGatewaysUpdateTagsFuture, err error) + VpnDeviceConfigurationScript(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.VpnDeviceScriptParameters) (result network.String, err error) +} + +var _ VirtualNetworkGatewaysClientAPI = (*network.VirtualNetworkGatewaysClient)(nil) + +// VirtualNetworkGatewayConnectionsClientAPI contains the set of methods on the VirtualNetworkGatewayConnectionsClient type. +type VirtualNetworkGatewayConnectionsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.VirtualNetworkGatewayConnection) (result network.VirtualNetworkGatewayConnectionsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnectionsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error) + GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKey, err error) + List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error) + ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error) + SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error) + StartPacketCapture(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters *network.VpnPacketCaptureStartParameters) (result network.VirtualNetworkGatewayConnectionsStartPacketCaptureFuture, err error) + StopPacketCapture(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.VpnPacketCaptureStopParameters) (result network.VirtualNetworkGatewayConnectionsStopPacketCaptureFuture, err error) + UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.TagsObject) (result network.VirtualNetworkGatewayConnectionsUpdateTagsFuture, err error) +} + +var _ VirtualNetworkGatewayConnectionsClientAPI = (*network.VirtualNetworkGatewayConnectionsClient)(nil) + +// LocalNetworkGatewaysClientAPI contains the set of methods on the LocalNetworkGatewaysClient type. +type LocalNetworkGatewaysClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters network.LocalNetworkGateway) (result network.LocalNetworkGatewaysCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error) + List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error) + UpdateTags(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters network.TagsObject) (result network.LocalNetworkGateway, err error) +} + +var _ LocalNetworkGatewaysClientAPI = (*network.LocalNetworkGatewaysClient)(nil) + +// VirtualNetworkTapsClientAPI contains the set of methods on the VirtualNetworkTapsClient type. +type VirtualNetworkTapsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, tapName string, parameters network.VirtualNetworkTap) (result network.VirtualNetworkTapsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, tapName string) (result network.VirtualNetworkTapsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, tapName string) (result network.VirtualNetworkTap, err error) + ListAll(ctx context.Context) (result network.VirtualNetworkTapListResultPage, err error) + ListAllComplete(ctx context.Context) (result network.VirtualNetworkTapListResultIterator, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkTapListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkTapListResultIterator, err error) + UpdateTags(ctx context.Context, resourceGroupName string, tapName string, tapParameters network.TagsObject) (result network.VirtualNetworkTap, err error) +} + +var _ VirtualNetworkTapsClientAPI = (*network.VirtualNetworkTapsClient)(nil) + +// VirtualRoutersClientAPI contains the set of methods on the VirtualRoutersClient type. +type VirtualRoutersClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualRouterName string, parameters network.VirtualRouter) (result network.VirtualRoutersCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, virtualRouterName string) (result network.VirtualRoutersDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, virtualRouterName string, expand string) (result network.VirtualRouter, err error) + List(ctx context.Context) (result network.VirtualRouterListResultPage, err error) + ListComplete(ctx context.Context) (result network.VirtualRouterListResultIterator, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.VirtualRouterListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.VirtualRouterListResultIterator, err error) +} + +var _ VirtualRoutersClientAPI = (*network.VirtualRoutersClient)(nil) + +// VirtualRouterPeeringsClientAPI contains the set of methods on the VirtualRouterPeeringsClient type. +type VirtualRouterPeeringsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualRouterName string, peeringName string, parameters network.VirtualRouterPeering) (result network.VirtualRouterPeeringsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, virtualRouterName string, peeringName string) (result network.VirtualRouterPeeringsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, virtualRouterName string, peeringName string) (result network.VirtualRouterPeering, err error) + List(ctx context.Context, resourceGroupName string, virtualRouterName string) (result network.VirtualRouterPeeringListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, virtualRouterName string) (result network.VirtualRouterPeeringListResultIterator, err error) +} + +var _ VirtualRouterPeeringsClientAPI = (*network.VirtualRouterPeeringsClient)(nil) + +// VirtualWansClientAPI contains the set of methods on the VirtualWansClient type. +type VirtualWansClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualWANName string, wANParameters network.VirtualWAN) (result network.VirtualWansCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWansDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWAN, err error) + List(ctx context.Context) (result network.ListVirtualWANsResultPage, err error) + ListComplete(ctx context.Context) (result network.ListVirtualWANsResultIterator, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultIterator, err error) + UpdateTags(ctx context.Context, resourceGroupName string, virtualWANName string, wANParameters network.TagsObject) (result network.VirtualWAN, err error) +} + +var _ VirtualWansClientAPI = (*network.VirtualWansClient)(nil) + +// VpnSitesClientAPI contains the set of methods on the VpnSitesClient type. +type VpnSitesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters network.VpnSite) (result network.VpnSitesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSitesDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSite, err error) + List(ctx context.Context) (result network.ListVpnSitesResultPage, err error) + ListComplete(ctx context.Context) (result network.ListVpnSitesResultIterator, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultIterator, err error) + UpdateTags(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters network.TagsObject) (result network.VpnSite, err error) +} + +var _ VpnSitesClientAPI = (*network.VpnSitesClient)(nil) + +// VpnSiteLinksClientAPI contains the set of methods on the VpnSiteLinksClient type. +type VpnSiteLinksClientAPI interface { + Get(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteLinkName string) (result network.VpnSiteLink, err error) + ListByVpnSite(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.ListVpnSiteLinksResultPage, err error) + ListByVpnSiteComplete(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.ListVpnSiteLinksResultIterator, err error) +} + +var _ VpnSiteLinksClientAPI = (*network.VpnSiteLinksClient)(nil) + +// VpnSitesConfigurationClientAPI contains the set of methods on the VpnSitesConfigurationClient type. +type VpnSitesConfigurationClientAPI interface { + Download(ctx context.Context, resourceGroupName string, virtualWANName string, request network.GetVpnSitesConfigurationRequest) (result network.VpnSitesConfigurationDownloadFuture, err error) +} + +var _ VpnSitesConfigurationClientAPI = (*network.VpnSitesConfigurationClient)(nil) + +// VpnServerConfigurationsClientAPI contains the set of methods on the VpnServerConfigurationsClient type. +type VpnServerConfigurationsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, vpnServerConfigurationName string, vpnServerConfigurationParameters network.VpnServerConfiguration) (result network.VpnServerConfigurationsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, vpnServerConfigurationName string) (result network.VpnServerConfigurationsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, vpnServerConfigurationName string) (result network.VpnServerConfiguration, err error) + List(ctx context.Context) (result network.ListVpnServerConfigurationsResultPage, err error) + ListComplete(ctx context.Context) (result network.ListVpnServerConfigurationsResultIterator, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnServerConfigurationsResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnServerConfigurationsResultIterator, err error) + UpdateTags(ctx context.Context, resourceGroupName string, vpnServerConfigurationName string, vpnServerConfigurationParameters network.TagsObject) (result network.VpnServerConfiguration, err error) +} + +var _ VpnServerConfigurationsClientAPI = (*network.VpnServerConfigurationsClient)(nil) + +// VirtualHubsClientAPI contains the set of methods on the VirtualHubsClient type. +type VirtualHubsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualHubName string, virtualHubParameters network.VirtualHub) (result network.VirtualHubsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHubsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHub, err error) + GetEffectiveVirtualHubRoutes(ctx context.Context, resourceGroupName string, virtualHubName string, effectiveRoutesParameters *network.EffectiveRoutesParameters) (result network.VirtualHubsGetEffectiveVirtualHubRoutesFuture, err error) + List(ctx context.Context) (result network.ListVirtualHubsResultPage, err error) + ListComplete(ctx context.Context) (result network.ListVirtualHubsResultIterator, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultIterator, err error) + UpdateTags(ctx context.Context, resourceGroupName string, virtualHubName string, virtualHubParameters network.TagsObject) (result network.VirtualHub, err error) +} + +var _ VirtualHubsClientAPI = (*network.VirtualHubsClient)(nil) + +// HubVirtualNetworkConnectionsClientAPI contains the set of methods on the HubVirtualNetworkConnectionsClient type. +type HubVirtualNetworkConnectionsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string, hubVirtualNetworkConnectionParameters network.HubVirtualNetworkConnection) (result network.HubVirtualNetworkConnectionsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (result network.HubVirtualNetworkConnectionsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (result network.HubVirtualNetworkConnection, err error) + List(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultIterator, err error) +} + +var _ HubVirtualNetworkConnectionsClientAPI = (*network.HubVirtualNetworkConnectionsClient)(nil) + +// VpnGatewaysClientAPI contains the set of methods on the VpnGatewaysClient type. +type VpnGatewaysClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, gatewayName string, vpnGatewayParameters network.VpnGateway) (result network.VpnGatewaysCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGatewaysDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGateway, err error) + List(ctx context.Context) (result network.ListVpnGatewaysResultPage, err error) + ListComplete(ctx context.Context) (result network.ListVpnGatewaysResultIterator, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultIterator, err error) + Reset(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGatewaysResetFuture, err error) + StartPacketCapture(ctx context.Context, resourceGroupName string, gatewayName string, parameters *network.VpnGatewayPacketCaptureStartParameters) (result network.VpnGatewaysStartPacketCaptureFuture, err error) + StopPacketCapture(ctx context.Context, resourceGroupName string, gatewayName string, parameters *network.VpnGatewayPacketCaptureStopParameters) (result network.VpnGatewaysStopPacketCaptureFuture, err error) + UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, vpnGatewayParameters network.TagsObject) (result network.VpnGatewaysUpdateTagsFuture, err error) +} + +var _ VpnGatewaysClientAPI = (*network.VpnGatewaysClient)(nil) + +// VpnConnectionsClientAPI contains the set of methods on the VpnConnectionsClient type. +type VpnConnectionsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string, vpnConnectionParameters network.VpnConnection) (result network.VpnConnectionsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnectionsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnection, err error) + ListByVpnGateway(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultPage, err error) + ListByVpnGatewayComplete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultIterator, err error) + StartPacketCapture(ctx context.Context, resourceGroupName string, gatewayName string, vpnConnectionName string, parameters *network.VpnConnectionPacketCaptureStartParameters) (result network.VpnConnectionsStartPacketCaptureFuture, err error) + StopPacketCapture(ctx context.Context, resourceGroupName string, gatewayName string, vpnConnectionName string, parameters *network.VpnConnectionPacketCaptureStopParameters) (result network.VpnConnectionsStopPacketCaptureFuture, err error) +} + +var _ VpnConnectionsClientAPI = (*network.VpnConnectionsClient)(nil) + +// VpnSiteLinkConnectionsClientAPI contains the set of methods on the VpnSiteLinkConnectionsClient type. +type VpnSiteLinkConnectionsClientAPI interface { + Get(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string, linkConnectionName string) (result network.VpnSiteLinkConnection, err error) +} + +var _ VpnSiteLinkConnectionsClientAPI = (*network.VpnSiteLinkConnectionsClient)(nil) + +// VpnLinkConnectionsClientAPI contains the set of methods on the VpnLinkConnectionsClient type. +type VpnLinkConnectionsClientAPI interface { + ListByVpnConnection(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.ListVpnSiteLinkConnectionsResultPage, err error) + ListByVpnConnectionComplete(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.ListVpnSiteLinkConnectionsResultIterator, err error) +} + +var _ VpnLinkConnectionsClientAPI = (*network.VpnLinkConnectionsClient)(nil) + +// P2sVpnGatewaysClientAPI contains the set of methods on the P2sVpnGatewaysClient type. +type P2sVpnGatewaysClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, gatewayName string, p2SVpnGatewayParameters network.P2SVpnGateway) (result network.P2sVpnGatewaysCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.P2sVpnGatewaysDeleteFuture, err error) + DisconnectP2sVpnConnections(ctx context.Context, resourceGroupName string, p2sVpnGatewayName string, request network.P2SVpnConnectionRequest) (result network.P2sVpnGatewaysDisconnectP2sVpnConnectionsFuture, err error) + GenerateVpnProfile(ctx context.Context, resourceGroupName string, gatewayName string, parameters network.P2SVpnProfileParameters) (result network.P2sVpnGatewaysGenerateVpnProfileFuture, err error) + Get(ctx context.Context, resourceGroupName string, gatewayName string) (result network.P2SVpnGateway, err error) + GetP2sVpnConnectionHealth(ctx context.Context, resourceGroupName string, gatewayName string) (result network.P2sVpnGatewaysGetP2sVpnConnectionHealthFuture, err error) + GetP2sVpnConnectionHealthDetailed(ctx context.Context, resourceGroupName string, gatewayName string, request network.P2SVpnConnectionHealthRequest) (result network.P2sVpnGatewaysGetP2sVpnConnectionHealthDetailedFuture, err error) + List(ctx context.Context) (result network.ListP2SVpnGatewaysResultPage, err error) + ListComplete(ctx context.Context) (result network.ListP2SVpnGatewaysResultIterator, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListP2SVpnGatewaysResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListP2SVpnGatewaysResultIterator, err error) + Reset(ctx context.Context, resourceGroupName string, gatewayName string) (result network.P2SVpnGatewaysResetFuture, err error) + UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, p2SVpnGatewayParameters network.TagsObject) (result network.P2sVpnGatewaysUpdateTagsFuture, err error) +} + +var _ P2sVpnGatewaysClientAPI = (*network.P2sVpnGatewaysClient)(nil) + +// VpnServerConfigurationsAssociatedWithVirtualWanClientAPI contains the set of methods on the VpnServerConfigurationsAssociatedWithVirtualWanClient type. +type VpnServerConfigurationsAssociatedWithVirtualWanClientAPI interface { + List(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VpnServerConfigurationsAssociatedWithVirtualWanListFuture, err error) +} + +var _ VpnServerConfigurationsAssociatedWithVirtualWanClientAPI = (*network.VpnServerConfigurationsAssociatedWithVirtualWanClient)(nil) + +// VirtualHubRouteTableV2sClientAPI contains the set of methods on the VirtualHubRouteTableV2sClient type. +type VirtualHubRouteTableV2sClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualHubName string, routeTableName string, virtualHubRouteTableV2Parameters network.VirtualHubRouteTableV2) (result network.VirtualHubRouteTableV2sCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, virtualHubName string, routeTableName string) (result network.VirtualHubRouteTableV2sDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, virtualHubName string, routeTableName string) (result network.VirtualHubRouteTableV2, err error) + List(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListVirtualHubRouteTableV2sResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListVirtualHubRouteTableV2sResultIterator, err error) +} + +var _ VirtualHubRouteTableV2sClientAPI = (*network.VirtualHubRouteTableV2sClient)(nil) + +// ExpressRouteGatewaysClientAPI contains the set of methods on the ExpressRouteGatewaysClient type. +type ExpressRouteGatewaysClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, putExpressRouteGatewayParameters network.ExpressRouteGateway) (result network.ExpressRouteGatewaysCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, expressRouteGatewayName string) (result network.ExpressRouteGatewaysDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, expressRouteGatewayName string) (result network.ExpressRouteGateway, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRouteGatewayList, err error) + ListBySubscription(ctx context.Context) (result network.ExpressRouteGatewayList, err error) +} + +var _ ExpressRouteGatewaysClientAPI = (*network.ExpressRouteGatewaysClient)(nil) + +// ExpressRouteConnectionsClientAPI contains the set of methods on the ExpressRouteConnectionsClient type. +type ExpressRouteConnectionsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, connectionName string, putExpressRouteConnectionParameters network.ExpressRouteConnection) (result network.ExpressRouteConnectionsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, connectionName string) (result network.ExpressRouteConnectionsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, connectionName string) (result network.ExpressRouteConnection, err error) + List(ctx context.Context, resourceGroupName string, expressRouteGatewayName string) (result network.ExpressRouteConnectionList, err error) +} + +var _ ExpressRouteConnectionsClientAPI = (*network.ExpressRouteConnectionsClient)(nil) + +// VirtualHubBgpConnectionClientAPI contains the set of methods on the VirtualHubBgpConnectionClient type. +type VirtualHubBgpConnectionClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string, parameters network.BgpConnection) (result network.VirtualHubBgpConnectionCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (result network.VirtualHubBgpConnectionDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (result network.BgpConnection, err error) +} + +var _ VirtualHubBgpConnectionClientAPI = (*network.VirtualHubBgpConnectionClient)(nil) + +// VirtualHubBgpConnectionsClientAPI contains the set of methods on the VirtualHubBgpConnectionsClient type. +type VirtualHubBgpConnectionsClientAPI interface { + List(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListVirtualHubBgpConnectionResultsPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListVirtualHubBgpConnectionResultsIterator, err error) + ListAdvertisedRoutes(ctx context.Context, resourceGroupName string, hubName string, connectionName string) (result network.VirtualHubBgpConnectionsListAdvertisedRoutesFuture, err error) + ListLearnedRoutes(ctx context.Context, resourceGroupName string, hubName string, connectionName string) (result network.VirtualHubBgpConnectionsListLearnedRoutesFuture, err error) +} + +var _ VirtualHubBgpConnectionsClientAPI = (*network.VirtualHubBgpConnectionsClient)(nil) + +// VirtualHubIPConfigurationClientAPI contains the set of methods on the VirtualHubIPConfigurationClient type. +type VirtualHubIPConfigurationClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualHubName string, IPConfigName string, parameters network.HubIPConfiguration) (result network.VirtualHubIPConfigurationCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, virtualHubName string, IPConfigName string) (result network.VirtualHubIPConfigurationDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, virtualHubName string, IPConfigName string) (result network.HubIPConfiguration, err error) + List(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListVirtualHubIPConfigurationResultsPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListVirtualHubIPConfigurationResultsIterator, err error) +} + +var _ VirtualHubIPConfigurationClientAPI = (*network.VirtualHubIPConfigurationClient)(nil) + +// HubRouteTablesClientAPI contains the set of methods on the HubRouteTablesClient type. +type HubRouteTablesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualHubName string, routeTableName string, routeTableParameters network.HubRouteTable) (result network.HubRouteTablesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, virtualHubName string, routeTableName string) (result network.HubRouteTablesDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, virtualHubName string, routeTableName string) (result network.HubRouteTable, err error) + List(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubRouteTablesResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubRouteTablesResultIterator, err error) +} + +var _ HubRouteTablesClientAPI = (*network.HubRouteTablesClient)(nil) + +// WebApplicationFirewallPoliciesClientAPI contains the set of methods on the WebApplicationFirewallPoliciesClient type. +type WebApplicationFirewallPoliciesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, policyName string, parameters network.WebApplicationFirewallPolicy) (result network.WebApplicationFirewallPolicy, err error) + Delete(ctx context.Context, resourceGroupName string, policyName string) (result network.WebApplicationFirewallPoliciesDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, policyName string) (result network.WebApplicationFirewallPolicy, err error) + List(ctx context.Context, resourceGroupName string) (result network.WebApplicationFirewallPolicyListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result network.WebApplicationFirewallPolicyListResultIterator, err error) + ListAll(ctx context.Context) (result network.WebApplicationFirewallPolicyListResultPage, err error) + ListAllComplete(ctx context.Context) (result network.WebApplicationFirewallPolicyListResultIterator, err error) +} + +var _ WebApplicationFirewallPoliciesClientAPI = (*network.WebApplicationFirewallPoliciesClient)(nil) diff --git a/services/network/mgmt/2020-07-01/network/operations.go b/services/network/mgmt/2020-07-01/network/operations.go new file mode 100644 index 000000000000..8f7eca2f91c0 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/operations.go @@ -0,0 +1,151 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// OperationsClient is the network Client +type OperationsClient struct { + BaseClient +} + +// NewOperationsClient creates an instance of the OperationsClient client. +func NewOperationsClient(subscriptionID string) OperationsClient { + return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { + return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List lists all of the available Network Rest API operations. +func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List") + defer func() { + sc := -1 + if result.olr.Response.Response != nil { + sc = result.olr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.olr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", resp, "Failure sending request") + return + } + + result.olr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.OperationsClient", "List", resp, "Failure responding to request") + return + } + if result.olr.hasNextLink() && result.olr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPath("/providers/Microsoft.Network/operations"), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client OperationsClient) listNextResults(ctx context.Context, lastResults OperationListResult) (result OperationListResult, err error) { + req, err := lastResults.operationListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} diff --git a/services/network/mgmt/2020-07-01/network/p2svpngateways.go b/services/network/mgmt/2020-07-01/network/p2svpngateways.go new file mode 100644 index 000000000000..83b9eec2d162 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/p2svpngateways.go @@ -0,0 +1,964 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// P2sVpnGatewaysClient is the network Client +type P2sVpnGatewaysClient struct { + BaseClient +} + +// NewP2sVpnGatewaysClient creates an instance of the P2sVpnGatewaysClient client. +func NewP2sVpnGatewaysClient(subscriptionID string) P2sVpnGatewaysClient { + return NewP2sVpnGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewP2sVpnGatewaysClientWithBaseURI creates an instance of the P2sVpnGatewaysClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewP2sVpnGatewaysClientWithBaseURI(baseURI string, subscriptionID string) P2sVpnGatewaysClient { + return P2sVpnGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. +// Parameters: +// resourceGroupName - the resource group name of the P2SVpnGateway. +// gatewayName - the name of the gateway. +// p2SVpnGatewayParameters - parameters supplied to create or Update a virtual wan p2s vpn gateway. +func (client P2sVpnGatewaysClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, gatewayName string, p2SVpnGatewayParameters P2SVpnGateway) (result P2sVpnGatewaysCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/P2sVpnGatewaysClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, gatewayName, p2SVpnGatewayParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client P2sVpnGatewaysClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, gatewayName string, p2SVpnGatewayParameters P2SVpnGateway) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "gatewayName": autorest.Encode("path", gatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + p2SVpnGatewayParameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}", pathParameters), + autorest.WithJSON(p2SVpnGatewayParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client P2sVpnGatewaysClient) CreateOrUpdateSender(req *http.Request) (future P2sVpnGatewaysCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client P2sVpnGatewaysClient) CreateOrUpdateResponder(resp *http.Response) (result P2SVpnGateway, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes a virtual wan p2s vpn gateway. +// Parameters: +// resourceGroupName - the resource group name of the P2SVpnGateway. +// gatewayName - the name of the gateway. +func (client P2sVpnGatewaysClient) Delete(ctx context.Context, resourceGroupName string, gatewayName string) (result P2sVpnGatewaysDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/P2sVpnGatewaysClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, gatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client P2sVpnGatewaysClient) DeletePreparer(ctx context.Context, resourceGroupName string, gatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "gatewayName": autorest.Encode("path", gatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client P2sVpnGatewaysClient) DeleteSender(req *http.Request) (future P2sVpnGatewaysDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client P2sVpnGatewaysClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// DisconnectP2sVpnConnections disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified +// resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// p2sVpnGatewayName - the name of the P2S Vpn Gateway. +// request - the parameters are supplied to disconnect p2s vpn connections. +func (client P2sVpnGatewaysClient) DisconnectP2sVpnConnections(ctx context.Context, resourceGroupName string, p2sVpnGatewayName string, request P2SVpnConnectionRequest) (result P2sVpnGatewaysDisconnectP2sVpnConnectionsFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/P2sVpnGatewaysClient.DisconnectP2sVpnConnections") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DisconnectP2sVpnConnectionsPreparer(ctx, resourceGroupName, p2sVpnGatewayName, request) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "DisconnectP2sVpnConnections", nil, "Failure preparing request") + return + } + + result, err = client.DisconnectP2sVpnConnectionsSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "DisconnectP2sVpnConnections", result.Response(), "Failure sending request") + return + } + + return +} + +// DisconnectP2sVpnConnectionsPreparer prepares the DisconnectP2sVpnConnections request. +func (client P2sVpnGatewaysClient) DisconnectP2sVpnConnectionsPreparer(ctx context.Context, resourceGroupName string, p2sVpnGatewayName string, request P2SVpnConnectionRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "p2sVpnGatewayName": autorest.Encode("path", p2sVpnGatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{p2sVpnGatewayName}/disconnectP2sVpnConnections", pathParameters), + autorest.WithJSON(request), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DisconnectP2sVpnConnectionsSender sends the DisconnectP2sVpnConnections request. The method will close the +// http.Response Body if it receives an error. +func (client P2sVpnGatewaysClient) DisconnectP2sVpnConnectionsSender(req *http.Request) (future P2sVpnGatewaysDisconnectP2sVpnConnectionsFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DisconnectP2sVpnConnectionsResponder handles the response to the DisconnectP2sVpnConnections request. The method always +// closes the http.Response Body. +func (client P2sVpnGatewaysClient) DisconnectP2sVpnConnectionsResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// GenerateVpnProfile generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// gatewayName - the name of the P2SVpnGateway. +// parameters - parameters supplied to the generate P2SVpnGateway VPN client package operation. +func (client P2sVpnGatewaysClient) GenerateVpnProfile(ctx context.Context, resourceGroupName string, gatewayName string, parameters P2SVpnProfileParameters) (result P2sVpnGatewaysGenerateVpnProfileFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/P2sVpnGatewaysClient.GenerateVpnProfile") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GenerateVpnProfilePreparer(ctx, resourceGroupName, gatewayName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "GenerateVpnProfile", nil, "Failure preparing request") + return + } + + result, err = client.GenerateVpnProfileSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "GenerateVpnProfile", result.Response(), "Failure sending request") + return + } + + return +} + +// GenerateVpnProfilePreparer prepares the GenerateVpnProfile request. +func (client P2sVpnGatewaysClient) GenerateVpnProfilePreparer(ctx context.Context, resourceGroupName string, gatewayName string, parameters P2SVpnProfileParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "gatewayName": autorest.Encode("path", gatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/generatevpnprofile", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GenerateVpnProfileSender sends the GenerateVpnProfile request. The method will close the +// http.Response Body if it receives an error. +func (client P2sVpnGatewaysClient) GenerateVpnProfileSender(req *http.Request) (future P2sVpnGatewaysGenerateVpnProfileFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// GenerateVpnProfileResponder handles the response to the GenerateVpnProfile request. The method always +// closes the http.Response Body. +func (client P2sVpnGatewaysClient) GenerateVpnProfileResponder(resp *http.Response) (result VpnProfileResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Get retrieves the details of a virtual wan p2s vpn gateway. +// Parameters: +// resourceGroupName - the resource group name of the P2SVpnGateway. +// gatewayName - the name of the gateway. +func (client P2sVpnGatewaysClient) Get(ctx context.Context, resourceGroupName string, gatewayName string) (result P2SVpnGateway, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/P2sVpnGatewaysClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, gatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client P2sVpnGatewaysClient) GetPreparer(ctx context.Context, resourceGroupName string, gatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "gatewayName": autorest.Encode("path", gatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client P2sVpnGatewaysClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client P2sVpnGatewaysClient) GetResponder(resp *http.Response) (result P2SVpnGateway, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetP2sVpnConnectionHealth gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the +// specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// gatewayName - the name of the P2SVpnGateway. +func (client P2sVpnGatewaysClient) GetP2sVpnConnectionHealth(ctx context.Context, resourceGroupName string, gatewayName string) (result P2sVpnGatewaysGetP2sVpnConnectionHealthFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/P2sVpnGatewaysClient.GetP2sVpnConnectionHealth") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetP2sVpnConnectionHealthPreparer(ctx, resourceGroupName, gatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "GetP2sVpnConnectionHealth", nil, "Failure preparing request") + return + } + + result, err = client.GetP2sVpnConnectionHealthSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "GetP2sVpnConnectionHealth", result.Response(), "Failure sending request") + return + } + + return +} + +// GetP2sVpnConnectionHealthPreparer prepares the GetP2sVpnConnectionHealth request. +func (client P2sVpnGatewaysClient) GetP2sVpnConnectionHealthPreparer(ctx context.Context, resourceGroupName string, gatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "gatewayName": autorest.Encode("path", gatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/getP2sVpnConnectionHealth", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetP2sVpnConnectionHealthSender sends the GetP2sVpnConnectionHealth request. The method will close the +// http.Response Body if it receives an error. +func (client P2sVpnGatewaysClient) GetP2sVpnConnectionHealthSender(req *http.Request) (future P2sVpnGatewaysGetP2sVpnConnectionHealthFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// GetP2sVpnConnectionHealthResponder handles the response to the GetP2sVpnConnectionHealth request. The method always +// closes the http.Response Body. +func (client P2sVpnGatewaysClient) GetP2sVpnConnectionHealthResponder(resp *http.Response) (result P2SVpnGateway, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetP2sVpnConnectionHealthDetailed gets the sas url to get the connection health detail of P2S clients of the virtual +// wan P2SVpnGateway in the specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// gatewayName - the name of the P2SVpnGateway. +// request - request parameters supplied to get p2s vpn connections detailed health. +func (client P2sVpnGatewaysClient) GetP2sVpnConnectionHealthDetailed(ctx context.Context, resourceGroupName string, gatewayName string, request P2SVpnConnectionHealthRequest) (result P2sVpnGatewaysGetP2sVpnConnectionHealthDetailedFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/P2sVpnGatewaysClient.GetP2sVpnConnectionHealthDetailed") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetP2sVpnConnectionHealthDetailedPreparer(ctx, resourceGroupName, gatewayName, request) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "GetP2sVpnConnectionHealthDetailed", nil, "Failure preparing request") + return + } + + result, err = client.GetP2sVpnConnectionHealthDetailedSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "GetP2sVpnConnectionHealthDetailed", result.Response(), "Failure sending request") + return + } + + return +} + +// GetP2sVpnConnectionHealthDetailedPreparer prepares the GetP2sVpnConnectionHealthDetailed request. +func (client P2sVpnGatewaysClient) GetP2sVpnConnectionHealthDetailedPreparer(ctx context.Context, resourceGroupName string, gatewayName string, request P2SVpnConnectionHealthRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "gatewayName": autorest.Encode("path", gatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/getP2sVpnConnectionHealthDetailed", pathParameters), + autorest.WithJSON(request), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetP2sVpnConnectionHealthDetailedSender sends the GetP2sVpnConnectionHealthDetailed request. The method will close the +// http.Response Body if it receives an error. +func (client P2sVpnGatewaysClient) GetP2sVpnConnectionHealthDetailedSender(req *http.Request) (future P2sVpnGatewaysGetP2sVpnConnectionHealthDetailedFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// GetP2sVpnConnectionHealthDetailedResponder handles the response to the GetP2sVpnConnectionHealthDetailed request. The method always +// closes the http.Response Body. +func (client P2sVpnGatewaysClient) GetP2sVpnConnectionHealthDetailedResponder(resp *http.Response) (result P2SVpnConnectionHealth, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all the P2SVpnGateways in a subscription. +func (client P2sVpnGatewaysClient) List(ctx context.Context) (result ListP2SVpnGatewaysResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/P2sVpnGatewaysClient.List") + defer func() { + sc := -1 + if result.lpvgr.Response.Response != nil { + sc = result.lpvgr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.lpvgr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "List", resp, "Failure sending request") + return + } + + result.lpvgr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "List", resp, "Failure responding to request") + return + } + if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client P2sVpnGatewaysClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/p2svpnGateways", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client P2sVpnGatewaysClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client P2sVpnGatewaysClient) ListResponder(resp *http.Response) (result ListP2SVpnGatewaysResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client P2sVpnGatewaysClient) listNextResults(ctx context.Context, lastResults ListP2SVpnGatewaysResult) (result ListP2SVpnGatewaysResult, err error) { + req, err := lastResults.listP2SVpnGatewaysResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client P2sVpnGatewaysClient) ListComplete(ctx context.Context) (result ListP2SVpnGatewaysResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/P2sVpnGatewaysClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} + +// ListByResourceGroup lists all the P2SVpnGateways in a resource group. +// Parameters: +// resourceGroupName - the resource group name of the P2SVpnGateway. +func (client P2sVpnGatewaysClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ListP2SVpnGatewaysResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/P2sVpnGatewaysClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.lpvgr.Response.Response != nil { + sc = result.lpvgr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.lpvgr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.lpvgr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.lpvgr.hasNextLink() && result.lpvgr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client P2sVpnGatewaysClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client P2sVpnGatewaysClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client P2sVpnGatewaysClient) ListByResourceGroupResponder(resp *http.Response) (result ListP2SVpnGatewaysResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client P2sVpnGatewaysClient) listByResourceGroupNextResults(ctx context.Context, lastResults ListP2SVpnGatewaysResult) (result ListP2SVpnGatewaysResult, err error) { + req, err := lastResults.listP2SVpnGatewaysResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client P2sVpnGatewaysClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ListP2SVpnGatewaysResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/P2sVpnGatewaysClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// Reset resets the primary of the p2s vpn gateway in the specified resource group. +// Parameters: +// resourceGroupName - the resource group name of the P2SVpnGateway. +// gatewayName - the name of the gateway. +func (client P2sVpnGatewaysClient) Reset(ctx context.Context, resourceGroupName string, gatewayName string) (result P2SVpnGatewaysResetFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/P2sVpnGatewaysClient.Reset") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ResetPreparer(ctx, resourceGroupName, gatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "Reset", nil, "Failure preparing request") + return + } + + result, err = client.ResetSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "Reset", result.Response(), "Failure sending request") + return + } + + return +} + +// ResetPreparer prepares the Reset request. +func (client P2sVpnGatewaysClient) ResetPreparer(ctx context.Context, resourceGroupName string, gatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "gatewayName": autorest.Encode("path", gatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/reset", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ResetSender sends the Reset request. The method will close the +// http.Response Body if it receives an error. +func (client P2sVpnGatewaysClient) ResetSender(req *http.Request) (future P2SVpnGatewaysResetFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// ResetResponder handles the response to the Reset request. The method always +// closes the http.Response Body. +func (client P2sVpnGatewaysClient) ResetResponder(resp *http.Response) (result P2SVpnGateway, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// UpdateTags updates virtual wan p2s vpn gateway tags. +// Parameters: +// resourceGroupName - the resource group name of the P2SVpnGateway. +// gatewayName - the name of the gateway. +// p2SVpnGatewayParameters - parameters supplied to update a virtual wan p2s vpn gateway tags. +func (client P2sVpnGatewaysClient) UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, p2SVpnGatewayParameters TagsObject) (result P2sVpnGatewaysUpdateTagsFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/P2sVpnGatewaysClient.UpdateTags") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, gatewayName, p2SVpnGatewayParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "UpdateTags", nil, "Failure preparing request") + return + } + + result, err = client.UpdateTagsSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysClient", "UpdateTags", result.Response(), "Failure sending request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client P2sVpnGatewaysClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, gatewayName string, p2SVpnGatewayParameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "gatewayName": autorest.Encode("path", gatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}", pathParameters), + autorest.WithJSON(p2SVpnGatewayParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client P2sVpnGatewaysClient) UpdateTagsSender(req *http.Request) (future P2sVpnGatewaysUpdateTagsFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client P2sVpnGatewaysClient) UpdateTagsResponder(resp *http.Response) (result P2SVpnGateway, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/packetcaptures.go b/services/network/mgmt/2020-07-01/network/packetcaptures.go new file mode 100644 index 000000000000..6ca5c5fb399f --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/packetcaptures.go @@ -0,0 +1,527 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// PacketCapturesClient is the network Client +type PacketCapturesClient struct { + BaseClient +} + +// NewPacketCapturesClient creates an instance of the PacketCapturesClient client. +func NewPacketCapturesClient(subscriptionID string) PacketCapturesClient { + return NewPacketCapturesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewPacketCapturesClientWithBaseURI(baseURI string, subscriptionID string) PacketCapturesClient { + return PacketCapturesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Create create and start a packet capture on the specified VM. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkWatcherName - the name of the network watcher. +// packetCaptureName - the name of the packet capture session. +// parameters - parameters that define the create packet capture operation. +func (client PacketCapturesClient) Create(ctx context.Context, resourceGroupName string, networkWatcherName string, packetCaptureName string, parameters PacketCapture) (result PacketCapturesCreateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PacketCapturesClient.Create") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.PacketCaptureParameters", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "parameters.PacketCaptureParameters.Target", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.PacketCaptureParameters.BytesToCapturePerPacket", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.PacketCaptureParameters.BytesToCapturePerPacket", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, + {Target: "parameters.PacketCaptureParameters.BytesToCapturePerPacket", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + }}, + {Target: "parameters.PacketCaptureParameters.TotalBytesPerSession", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.PacketCaptureParameters.TotalBytesPerSession", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, + {Target: "parameters.PacketCaptureParameters.TotalBytesPerSession", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + }}, + {Target: "parameters.PacketCaptureParameters.TimeLimitInSeconds", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.PacketCaptureParameters.TimeLimitInSeconds", Name: validation.InclusiveMaximum, Rule: int64(18000), Chain: nil}, + {Target: "parameters.PacketCaptureParameters.TimeLimitInSeconds", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + }}, + {Target: "parameters.PacketCaptureParameters.StorageLocation", Name: validation.Null, Rule: true, Chain: nil}, + }}}}}); err != nil { + return result, validation.NewError("network.PacketCapturesClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, networkWatcherName, packetCaptureName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Create", nil, "Failure preparing request") + return + } + + result, err = client.CreateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Create", result.Response(), "Failure sending request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client PacketCapturesClient) CreatePreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, packetCaptureName string, parameters PacketCapture) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "packetCaptureName": autorest.Encode("path", packetCaptureName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client PacketCapturesClient) CreateSender(req *http.Request) (future PacketCapturesCreateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client PacketCapturesClient) CreateResponder(resp *http.Response) (result PacketCaptureResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified packet capture session. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkWatcherName - the name of the network watcher. +// packetCaptureName - the name of the packet capture session. +func (client PacketCapturesClient) Delete(ctx context.Context, resourceGroupName string, networkWatcherName string, packetCaptureName string) (result PacketCapturesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PacketCapturesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, networkWatcherName, packetCaptureName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client PacketCapturesClient) DeletePreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, packetCaptureName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "packetCaptureName": autorest.Encode("path", packetCaptureName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client PacketCapturesClient) DeleteSender(req *http.Request) (future PacketCapturesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client PacketCapturesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets a packet capture session by name. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkWatcherName - the name of the network watcher. +// packetCaptureName - the name of the packet capture session. +func (client PacketCapturesClient) Get(ctx context.Context, resourceGroupName string, networkWatcherName string, packetCaptureName string) (result PacketCaptureResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PacketCapturesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, networkWatcherName, packetCaptureName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client PacketCapturesClient) GetPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, packetCaptureName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "packetCaptureName": autorest.Encode("path", packetCaptureName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client PacketCapturesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client PacketCapturesClient) GetResponder(resp *http.Response) (result PacketCaptureResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetStatus query the status of a running packet capture session. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkWatcherName - the name of the Network Watcher resource. +// packetCaptureName - the name given to the packet capture session. +func (client PacketCapturesClient) GetStatus(ctx context.Context, resourceGroupName string, networkWatcherName string, packetCaptureName string) (result PacketCapturesGetStatusFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PacketCapturesClient.GetStatus") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetStatusPreparer(ctx, resourceGroupName, networkWatcherName, packetCaptureName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "GetStatus", nil, "Failure preparing request") + return + } + + result, err = client.GetStatusSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "GetStatus", result.Response(), "Failure sending request") + return + } + + return +} + +// GetStatusPreparer prepares the GetStatus request. +func (client PacketCapturesClient) GetStatusPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, packetCaptureName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "packetCaptureName": autorest.Encode("path", packetCaptureName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}/queryStatus", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetStatusSender sends the GetStatus request. The method will close the +// http.Response Body if it receives an error. +func (client PacketCapturesClient) GetStatusSender(req *http.Request) (future PacketCapturesGetStatusFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// GetStatusResponder handles the response to the GetStatus request. The method always +// closes the http.Response Body. +func (client PacketCapturesClient) GetStatusResponder(resp *http.Response) (result PacketCaptureQueryStatusResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all packet capture sessions within the specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkWatcherName - the name of the Network Watcher resource. +func (client PacketCapturesClient) List(ctx context.Context, resourceGroupName string, networkWatcherName string) (result PacketCaptureListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PacketCapturesClient.List") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListPreparer(ctx, resourceGroupName, networkWatcherName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "List", resp, "Failure responding to request") + return + } + + return +} + +// ListPreparer prepares the List request. +func (client PacketCapturesClient) ListPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client PacketCapturesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client PacketCapturesClient) ListResponder(resp *http.Response) (result PacketCaptureListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Stop stops a specified packet capture session. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkWatcherName - the name of the network watcher. +// packetCaptureName - the name of the packet capture session. +func (client PacketCapturesClient) Stop(ctx context.Context, resourceGroupName string, networkWatcherName string, packetCaptureName string) (result PacketCapturesStopFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PacketCapturesClient.Stop") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.StopPreparer(ctx, resourceGroupName, networkWatcherName, packetCaptureName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Stop", nil, "Failure preparing request") + return + } + + result, err = client.StopSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PacketCapturesClient", "Stop", result.Response(), "Failure sending request") + return + } + + return +} + +// StopPreparer prepares the Stop request. +func (client PacketCapturesClient) StopPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, packetCaptureName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "packetCaptureName": autorest.Encode("path", packetCaptureName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}/stop", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// StopSender sends the Stop request. The method will close the +// http.Response Body if it receives an error. +func (client PacketCapturesClient) StopSender(req *http.Request) (future PacketCapturesStopFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// StopResponder handles the response to the Stop request. The method always +// closes the http.Response Body. +func (client PacketCapturesClient) StopResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} diff --git a/services/network/mgmt/2020-07-01/network/peerexpressroutecircuitconnections.go b/services/network/mgmt/2020-07-01/network/peerexpressroutecircuitconnections.go new file mode 100644 index 000000000000..91edca3ace53 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/peerexpressroutecircuitconnections.go @@ -0,0 +1,244 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// PeerExpressRouteCircuitConnectionsClient is the network Client +type PeerExpressRouteCircuitConnectionsClient struct { + BaseClient +} + +// NewPeerExpressRouteCircuitConnectionsClient creates an instance of the PeerExpressRouteCircuitConnectionsClient +// client. +func NewPeerExpressRouteCircuitConnectionsClient(subscriptionID string) PeerExpressRouteCircuitConnectionsClient { + return NewPeerExpressRouteCircuitConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewPeerExpressRouteCircuitConnectionsClientWithBaseURI creates an instance of the +// PeerExpressRouteCircuitConnectionsClient client using a custom endpoint. Use this when interacting with an Azure +// cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewPeerExpressRouteCircuitConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PeerExpressRouteCircuitConnectionsClient { + return PeerExpressRouteCircuitConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get gets the specified Peer Express Route Circuit Connection from the specified express route circuit. +// Parameters: +// resourceGroupName - the name of the resource group. +// circuitName - the name of the express route circuit. +// peeringName - the name of the peering. +// connectionName - the name of the peer express route circuit connection. +func (client PeerExpressRouteCircuitConnectionsClient) Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result PeerExpressRouteCircuitConnection, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PeerExpressRouteCircuitConnectionsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, circuitName, peeringName, connectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client PeerExpressRouteCircuitConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "circuitName": autorest.Encode("path", circuitName), + "connectionName": autorest.Encode("path", connectionName), + "peeringName": autorest.Encode("path", peeringName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/peerConnections/{connectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client PeerExpressRouteCircuitConnectionsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client PeerExpressRouteCircuitConnectionsClient) GetResponder(resp *http.Response) (result PeerExpressRouteCircuitConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all global reach peer connections associated with a private peering in an express route circuit. +// Parameters: +// resourceGroupName - the name of the resource group. +// circuitName - the name of the circuit. +// peeringName - the name of the peering. +func (client PeerExpressRouteCircuitConnectionsClient) List(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result PeerExpressRouteCircuitConnectionListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PeerExpressRouteCircuitConnectionsClient.List") + defer func() { + sc := -1 + if result.percclr.Response.Response != nil { + sc = result.percclr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, circuitName, peeringName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.percclr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "List", resp, "Failure sending request") + return + } + + result.percclr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request") + return + } + if result.percclr.hasNextLink() && result.percclr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client PeerExpressRouteCircuitConnectionsClient) ListPreparer(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "circuitName": autorest.Encode("path", circuitName), + "peeringName": autorest.Encode("path", peeringName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/peerConnections", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client PeerExpressRouteCircuitConnectionsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client PeerExpressRouteCircuitConnectionsClient) ListResponder(resp *http.Response) (result PeerExpressRouteCircuitConnectionListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client PeerExpressRouteCircuitConnectionsClient) listNextResults(ctx context.Context, lastResults PeerExpressRouteCircuitConnectionListResult) (result PeerExpressRouteCircuitConnectionListResult, err error) { + req, err := lastResults.peerExpressRouteCircuitConnectionListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PeerExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client PeerExpressRouteCircuitConnectionsClient) ListComplete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result PeerExpressRouteCircuitConnectionListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PeerExpressRouteCircuitConnectionsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, circuitName, peeringName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/privatednszonegroups.go b/services/network/mgmt/2020-07-01/network/privatednszonegroups.go new file mode 100644 index 000000000000..5135ab73dfd9 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/privatednszonegroups.go @@ -0,0 +1,396 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// PrivateDNSZoneGroupsClient is the network Client +type PrivateDNSZoneGroupsClient struct { + BaseClient +} + +// NewPrivateDNSZoneGroupsClient creates an instance of the PrivateDNSZoneGroupsClient client. +func NewPrivateDNSZoneGroupsClient(subscriptionID string) PrivateDNSZoneGroupsClient { + return NewPrivateDNSZoneGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewPrivateDNSZoneGroupsClientWithBaseURI creates an instance of the PrivateDNSZoneGroupsClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewPrivateDNSZoneGroupsClientWithBaseURI(baseURI string, subscriptionID string) PrivateDNSZoneGroupsClient { + return PrivateDNSZoneGroupsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a private dns zone group in the specified private endpoint. +// Parameters: +// resourceGroupName - the name of the resource group. +// privateEndpointName - the name of the private endpoint. +// privateDNSZoneGroupName - the name of the private dns zone group. +// parameters - parameters supplied to the create or update private dns zone group operation. +func (client PrivateDNSZoneGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, privateEndpointName string, privateDNSZoneGroupName string, parameters PrivateDNSZoneGroup) (result PrivateDNSZoneGroupsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateDNSZoneGroupsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, privateEndpointName, privateDNSZoneGroupName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client PrivateDNSZoneGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, privateEndpointName string, privateDNSZoneGroupName string, parameters PrivateDNSZoneGroup) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "privateDnsZoneGroupName": autorest.Encode("path", privateDNSZoneGroupName), + "privateEndpointName": autorest.Encode("path", privateEndpointName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}/privateDnsZoneGroups/{privateDnsZoneGroupName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateDNSZoneGroupsClient) CreateOrUpdateSender(req *http.Request) (future PrivateDNSZoneGroupsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client PrivateDNSZoneGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result PrivateDNSZoneGroup, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified private dns zone group. +// Parameters: +// resourceGroupName - the name of the resource group. +// privateEndpointName - the name of the private endpoint. +// privateDNSZoneGroupName - the name of the private dns zone group. +func (client PrivateDNSZoneGroupsClient) Delete(ctx context.Context, resourceGroupName string, privateEndpointName string, privateDNSZoneGroupName string) (result PrivateDNSZoneGroupsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateDNSZoneGroupsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, privateEndpointName, privateDNSZoneGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client PrivateDNSZoneGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, privateEndpointName string, privateDNSZoneGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "privateDnsZoneGroupName": autorest.Encode("path", privateDNSZoneGroupName), + "privateEndpointName": autorest.Encode("path", privateEndpointName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}/privateDnsZoneGroups/{privateDnsZoneGroupName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateDNSZoneGroupsClient) DeleteSender(req *http.Request) (future PrivateDNSZoneGroupsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client PrivateDNSZoneGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the private dns zone group resource by specified private dns zone group name. +// Parameters: +// resourceGroupName - the name of the resource group. +// privateEndpointName - the name of the private endpoint. +// privateDNSZoneGroupName - the name of the private dns zone group. +func (client PrivateDNSZoneGroupsClient) Get(ctx context.Context, resourceGroupName string, privateEndpointName string, privateDNSZoneGroupName string) (result PrivateDNSZoneGroup, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateDNSZoneGroupsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, privateEndpointName, privateDNSZoneGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client PrivateDNSZoneGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, privateEndpointName string, privateDNSZoneGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "privateDnsZoneGroupName": autorest.Encode("path", privateDNSZoneGroupName), + "privateEndpointName": autorest.Encode("path", privateEndpointName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}/privateDnsZoneGroups/{privateDnsZoneGroupName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateDNSZoneGroupsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client PrivateDNSZoneGroupsClient) GetResponder(resp *http.Response) (result PrivateDNSZoneGroup, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all private dns zone groups in a private endpoint. +// Parameters: +// privateEndpointName - the name of the private endpoint. +// resourceGroupName - the name of the resource group. +func (client PrivateDNSZoneGroupsClient) List(ctx context.Context, privateEndpointName string, resourceGroupName string) (result PrivateDNSZoneGroupListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateDNSZoneGroupsClient.List") + defer func() { + sc := -1 + if result.pdzglr.Response.Response != nil { + sc = result.pdzglr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, privateEndpointName, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.pdzglr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsClient", "List", resp, "Failure sending request") + return + } + + result.pdzglr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsClient", "List", resp, "Failure responding to request") + return + } + if result.pdzglr.hasNextLink() && result.pdzglr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client PrivateDNSZoneGroupsClient) ListPreparer(ctx context.Context, privateEndpointName string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "privateEndpointName": autorest.Encode("path", privateEndpointName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}/privateDnsZoneGroups", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateDNSZoneGroupsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client PrivateDNSZoneGroupsClient) ListResponder(resp *http.Response) (result PrivateDNSZoneGroupListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client PrivateDNSZoneGroupsClient) listNextResults(ctx context.Context, lastResults PrivateDNSZoneGroupListResult) (result PrivateDNSZoneGroupListResult, err error) { + req, err := lastResults.privateDNSZoneGroupListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateDNSZoneGroupsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client PrivateDNSZoneGroupsClient) ListComplete(ctx context.Context, privateEndpointName string, resourceGroupName string) (result PrivateDNSZoneGroupListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateDNSZoneGroupsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, privateEndpointName, resourceGroupName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/privateendpoints.go b/services/network/mgmt/2020-07-01/network/privateendpoints.go new file mode 100644 index 000000000000..23b4eafa0a9a --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/privateendpoints.go @@ -0,0 +1,505 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// PrivateEndpointsClient is the network Client +type PrivateEndpointsClient struct { + BaseClient +} + +// NewPrivateEndpointsClient creates an instance of the PrivateEndpointsClient client. +func NewPrivateEndpointsClient(subscriptionID string) PrivateEndpointsClient { + return NewPrivateEndpointsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewPrivateEndpointsClientWithBaseURI creates an instance of the PrivateEndpointsClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewPrivateEndpointsClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointsClient { + return PrivateEndpointsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates an private endpoint in the specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// privateEndpointName - the name of the private endpoint. +// parameters - parameters supplied to the create or update private endpoint operation. +func (client PrivateEndpointsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, privateEndpointName string, parameters PrivateEndpoint) (result PrivateEndpointsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, privateEndpointName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client PrivateEndpointsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, privateEndpointName string, parameters PrivateEndpoint) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "privateEndpointName": autorest.Encode("path", privateEndpointName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateEndpointsClient) CreateOrUpdateSender(req *http.Request) (future PrivateEndpointsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client PrivateEndpointsClient) CreateOrUpdateResponder(resp *http.Response) (result PrivateEndpoint, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified private endpoint. +// Parameters: +// resourceGroupName - the name of the resource group. +// privateEndpointName - the name of the private endpoint. +func (client PrivateEndpointsClient) Delete(ctx context.Context, resourceGroupName string, privateEndpointName string) (result PrivateEndpointsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, privateEndpointName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client PrivateEndpointsClient) DeletePreparer(ctx context.Context, resourceGroupName string, privateEndpointName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "privateEndpointName": autorest.Encode("path", privateEndpointName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateEndpointsClient) DeleteSender(req *http.Request) (future PrivateEndpointsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client PrivateEndpointsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified private endpoint by resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// privateEndpointName - the name of the private endpoint. +// expand - expands referenced resources. +func (client PrivateEndpointsClient) Get(ctx context.Context, resourceGroupName string, privateEndpointName string, expand string) (result PrivateEndpoint, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, privateEndpointName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client PrivateEndpointsClient) GetPreparer(ctx context.Context, resourceGroupName string, privateEndpointName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "privateEndpointName": autorest.Encode("path", privateEndpointName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateEndpointsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client PrivateEndpointsClient) GetResponder(resp *http.Response) (result PrivateEndpoint, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all private endpoints in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client PrivateEndpointsClient) List(ctx context.Context, resourceGroupName string) (result PrivateEndpointListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointsClient.List") + defer func() { + sc := -1 + if result.pelr.Response.Response != nil { + sc = result.pelr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.pelr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "List", resp, "Failure sending request") + return + } + + result.pelr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "List", resp, "Failure responding to request") + return + } + if result.pelr.hasNextLink() && result.pelr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client PrivateEndpointsClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateEndpointsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client PrivateEndpointsClient) ListResponder(resp *http.Response) (result PrivateEndpointListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client PrivateEndpointsClient) listNextResults(ctx context.Context, lastResults PrivateEndpointListResult) (result PrivateEndpointListResult, err error) { + req, err := lastResults.privateEndpointListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client PrivateEndpointsClient) ListComplete(ctx context.Context, resourceGroupName string) (result PrivateEndpointListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName) + return +} + +// ListBySubscription gets all private endpoints in a subscription. +func (client PrivateEndpointsClient) ListBySubscription(ctx context.Context) (result PrivateEndpointListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointsClient.ListBySubscription") + defer func() { + sc := -1 + if result.pelr.Response.Response != nil { + sc = result.pelr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listBySubscriptionNextResults + req, err := client.ListBySubscriptionPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "ListBySubscription", nil, "Failure preparing request") + return + } + + resp, err := client.ListBySubscriptionSender(req) + if err != nil { + result.pelr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "ListBySubscription", resp, "Failure sending request") + return + } + + result.pelr, err = client.ListBySubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "ListBySubscription", resp, "Failure responding to request") + return + } + if result.pelr.hasNextLink() && result.pelr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListBySubscriptionPreparer prepares the ListBySubscription request. +func (client PrivateEndpointsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/privateEndpoints", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListBySubscriptionSender sends the ListBySubscription request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateEndpointsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always +// closes the http.Response Body. +func (client PrivateEndpointsClient) ListBySubscriptionResponder(resp *http.Response) (result PrivateEndpointListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listBySubscriptionNextResults retrieves the next set of results, if any. +func (client PrivateEndpointsClient) listBySubscriptionNextResults(ctx context.Context, lastResults PrivateEndpointListResult) (result PrivateEndpointListResult, err error) { + req, err := lastResults.privateEndpointListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listBySubscriptionNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListBySubscriptionSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listBySubscriptionNextResults", resp, "Failure sending next results request") + } + result, err = client.ListBySubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateEndpointsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required. +func (client PrivateEndpointsClient) ListBySubscriptionComplete(ctx context.Context) (result PrivateEndpointListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointsClient.ListBySubscription") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListBySubscription(ctx) + return +} diff --git a/services/network/mgmt/2020-07-01/network/privatelinkservices.go b/services/network/mgmt/2020-07-01/network/privatelinkservices.go new file mode 100644 index 000000000000..1d96352ac60e --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/privatelinkservices.go @@ -0,0 +1,1257 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// PrivateLinkServicesClient is the network Client +type PrivateLinkServicesClient struct { + BaseClient +} + +// NewPrivateLinkServicesClient creates an instance of the PrivateLinkServicesClient client. +func NewPrivateLinkServicesClient(subscriptionID string) PrivateLinkServicesClient { + return NewPrivateLinkServicesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewPrivateLinkServicesClientWithBaseURI creates an instance of the PrivateLinkServicesClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewPrivateLinkServicesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkServicesClient { + return PrivateLinkServicesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CheckPrivateLinkServiceVisibility checks whether the subscription is visible to private link service. +// Parameters: +// location - the location of the domain name. +// parameters - the request body of CheckPrivateLinkService API call. +func (client PrivateLinkServicesClient) CheckPrivateLinkServiceVisibility(ctx context.Context, location string, parameters CheckPrivateLinkServiceVisibilityRequest) (result PrivateLinkServicesCheckPrivateLinkServiceVisibilityFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkServicesClient.CheckPrivateLinkServiceVisibility") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CheckPrivateLinkServiceVisibilityPreparer(ctx, location, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "CheckPrivateLinkServiceVisibility", nil, "Failure preparing request") + return + } + + result, err = client.CheckPrivateLinkServiceVisibilitySender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "CheckPrivateLinkServiceVisibility", result.Response(), "Failure sending request") + return + } + + return +} + +// CheckPrivateLinkServiceVisibilityPreparer prepares the CheckPrivateLinkServiceVisibility request. +func (client PrivateLinkServicesClient) CheckPrivateLinkServiceVisibilityPreparer(ctx context.Context, location string, parameters CheckPrivateLinkServiceVisibilityRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "location": autorest.Encode("path", location), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/checkPrivateLinkServiceVisibility", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CheckPrivateLinkServiceVisibilitySender sends the CheckPrivateLinkServiceVisibility request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateLinkServicesClient) CheckPrivateLinkServiceVisibilitySender(req *http.Request) (future PrivateLinkServicesCheckPrivateLinkServiceVisibilityFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CheckPrivateLinkServiceVisibilityResponder handles the response to the CheckPrivateLinkServiceVisibility request. The method always +// closes the http.Response Body. +func (client PrivateLinkServicesClient) CheckPrivateLinkServiceVisibilityResponder(resp *http.Response) (result PrivateLinkServiceVisibility, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// CheckPrivateLinkServiceVisibilityByResourceGroup checks whether the subscription is visible to private link service +// in the specified resource group. +// Parameters: +// location - the location of the domain name. +// resourceGroupName - the name of the resource group. +// parameters - the request body of CheckPrivateLinkService API call. +func (client PrivateLinkServicesClient) CheckPrivateLinkServiceVisibilityByResourceGroup(ctx context.Context, location string, resourceGroupName string, parameters CheckPrivateLinkServiceVisibilityRequest) (result PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkServicesClient.CheckPrivateLinkServiceVisibilityByResourceGroup") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CheckPrivateLinkServiceVisibilityByResourceGroupPreparer(ctx, location, resourceGroupName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "CheckPrivateLinkServiceVisibilityByResourceGroup", nil, "Failure preparing request") + return + } + + result, err = client.CheckPrivateLinkServiceVisibilityByResourceGroupSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "CheckPrivateLinkServiceVisibilityByResourceGroup", result.Response(), "Failure sending request") + return + } + + return +} + +// CheckPrivateLinkServiceVisibilityByResourceGroupPreparer prepares the CheckPrivateLinkServiceVisibilityByResourceGroup request. +func (client PrivateLinkServicesClient) CheckPrivateLinkServiceVisibilityByResourceGroupPreparer(ctx context.Context, location string, resourceGroupName string, parameters CheckPrivateLinkServiceVisibilityRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "location": autorest.Encode("path", location), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/checkPrivateLinkServiceVisibility", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CheckPrivateLinkServiceVisibilityByResourceGroupSender sends the CheckPrivateLinkServiceVisibilityByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateLinkServicesClient) CheckPrivateLinkServiceVisibilityByResourceGroupSender(req *http.Request) (future PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CheckPrivateLinkServiceVisibilityByResourceGroupResponder handles the response to the CheckPrivateLinkServiceVisibilityByResourceGroup request. The method always +// closes the http.Response Body. +func (client PrivateLinkServicesClient) CheckPrivateLinkServiceVisibilityByResourceGroupResponder(resp *http.Response) (result PrivateLinkServiceVisibility, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// CreateOrUpdate creates or updates an private link service in the specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// serviceName - the name of the private link service. +// parameters - parameters supplied to the create or update private link service operation. +func (client PrivateLinkServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, parameters PrivateLinkService) (result PrivateLinkServicesCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkServicesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client PrivateLinkServicesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters PrivateLinkService) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceName": autorest.Encode("path", serviceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateLinkServicesClient) CreateOrUpdateSender(req *http.Request) (future PrivateLinkServicesCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client PrivateLinkServicesClient) CreateOrUpdateResponder(resp *http.Response) (result PrivateLinkService, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified private link service. +// Parameters: +// resourceGroupName - the name of the resource group. +// serviceName - the name of the private link service. +func (client PrivateLinkServicesClient) Delete(ctx context.Context, resourceGroupName string, serviceName string) (result PrivateLinkServicesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkServicesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client PrivateLinkServicesClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceName": autorest.Encode("path", serviceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateLinkServicesClient) DeleteSender(req *http.Request) (future PrivateLinkServicesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client PrivateLinkServicesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// DeletePrivateEndpointConnection delete private end point connection for a private link service in a subscription. +// Parameters: +// resourceGroupName - the name of the resource group. +// serviceName - the name of the private link service. +// peConnectionName - the name of the private end point connection. +func (client PrivateLinkServicesClient) DeletePrivateEndpointConnection(ctx context.Context, resourceGroupName string, serviceName string, peConnectionName string) (result PrivateLinkServicesDeletePrivateEndpointConnectionFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkServicesClient.DeletePrivateEndpointConnection") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePrivateEndpointConnectionPreparer(ctx, resourceGroupName, serviceName, peConnectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "DeletePrivateEndpointConnection", nil, "Failure preparing request") + return + } + + result, err = client.DeletePrivateEndpointConnectionSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "DeletePrivateEndpointConnection", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePrivateEndpointConnectionPreparer prepares the DeletePrivateEndpointConnection request. +func (client PrivateLinkServicesClient) DeletePrivateEndpointConnectionPreparer(ctx context.Context, resourceGroupName string, serviceName string, peConnectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "peConnectionName": autorest.Encode("path", peConnectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceName": autorest.Encode("path", serviceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}/privateEndpointConnections/{peConnectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeletePrivateEndpointConnectionSender sends the DeletePrivateEndpointConnection request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateLinkServicesClient) DeletePrivateEndpointConnectionSender(req *http.Request) (future PrivateLinkServicesDeletePrivateEndpointConnectionFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeletePrivateEndpointConnectionResponder handles the response to the DeletePrivateEndpointConnection request. The method always +// closes the http.Response Body. +func (client PrivateLinkServicesClient) DeletePrivateEndpointConnectionResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified private link service by resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// serviceName - the name of the private link service. +// expand - expands referenced resources. +func (client PrivateLinkServicesClient) Get(ctx context.Context, resourceGroupName string, serviceName string, expand string) (result PrivateLinkService, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkServicesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client PrivateLinkServicesClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceName": autorest.Encode("path", serviceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateLinkServicesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client PrivateLinkServicesClient) GetResponder(resp *http.Response) (result PrivateLinkService, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetPrivateEndpointConnection get the specific private end point connection by specific private link service in the +// resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// serviceName - the name of the private link service. +// peConnectionName - the name of the private end point connection. +// expand - expands referenced resources. +func (client PrivateLinkServicesClient) GetPrivateEndpointConnection(ctx context.Context, resourceGroupName string, serviceName string, peConnectionName string, expand string) (result PrivateEndpointConnection, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkServicesClient.GetPrivateEndpointConnection") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPrivateEndpointConnectionPreparer(ctx, resourceGroupName, serviceName, peConnectionName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "GetPrivateEndpointConnection", nil, "Failure preparing request") + return + } + + resp, err := client.GetPrivateEndpointConnectionSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "GetPrivateEndpointConnection", resp, "Failure sending request") + return + } + + result, err = client.GetPrivateEndpointConnectionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "GetPrivateEndpointConnection", resp, "Failure responding to request") + return + } + + return +} + +// GetPrivateEndpointConnectionPreparer prepares the GetPrivateEndpointConnection request. +func (client PrivateLinkServicesClient) GetPrivateEndpointConnectionPreparer(ctx context.Context, resourceGroupName string, serviceName string, peConnectionName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "peConnectionName": autorest.Encode("path", peConnectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceName": autorest.Encode("path", serviceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}/privateEndpointConnections/{peConnectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetPrivateEndpointConnectionSender sends the GetPrivateEndpointConnection request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateLinkServicesClient) GetPrivateEndpointConnectionSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetPrivateEndpointConnectionResponder handles the response to the GetPrivateEndpointConnection request. The method always +// closes the http.Response Body. +func (client PrivateLinkServicesClient) GetPrivateEndpointConnectionResponder(resp *http.Response) (result PrivateEndpointConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all private link services in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client PrivateLinkServicesClient) List(ctx context.Context, resourceGroupName string) (result PrivateLinkServiceListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkServicesClient.List") + defer func() { + sc := -1 + if result.plslr.Response.Response != nil { + sc = result.plslr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.plslr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "List", resp, "Failure sending request") + return + } + + result.plslr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "List", resp, "Failure responding to request") + return + } + if result.plslr.hasNextLink() && result.plslr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client PrivateLinkServicesClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateLinkServicesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client PrivateLinkServicesClient) ListResponder(resp *http.Response) (result PrivateLinkServiceListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client PrivateLinkServicesClient) listNextResults(ctx context.Context, lastResults PrivateLinkServiceListResult) (result PrivateLinkServiceListResult, err error) { + req, err := lastResults.privateLinkServiceListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client PrivateLinkServicesClient) ListComplete(ctx context.Context, resourceGroupName string) (result PrivateLinkServiceListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkServicesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName) + return +} + +// ListAutoApprovedPrivateLinkServices returns all of the private link service ids that can be linked to a Private +// Endpoint with auto approved in this subscription in this region. +// Parameters: +// location - the location of the domain name. +func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServices(ctx context.Context, location string) (result AutoApprovedPrivateLinkServicesResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkServicesClient.ListAutoApprovedPrivateLinkServices") + defer func() { + sc := -1 + if result.aaplsr.Response.Response != nil { + sc = result.aaplsr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listAutoApprovedPrivateLinkServicesNextResults + req, err := client.ListAutoApprovedPrivateLinkServicesPreparer(ctx, location) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServices", nil, "Failure preparing request") + return + } + + resp, err := client.ListAutoApprovedPrivateLinkServicesSender(req) + if err != nil { + result.aaplsr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServices", resp, "Failure sending request") + return + } + + result.aaplsr, err = client.ListAutoApprovedPrivateLinkServicesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServices", resp, "Failure responding to request") + return + } + if result.aaplsr.hasNextLink() && result.aaplsr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListAutoApprovedPrivateLinkServicesPreparer prepares the ListAutoApprovedPrivateLinkServices request. +func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesPreparer(ctx context.Context, location string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "location": autorest.Encode("path", location), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/autoApprovedPrivateLinkServices", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAutoApprovedPrivateLinkServicesSender sends the ListAutoApprovedPrivateLinkServices request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAutoApprovedPrivateLinkServicesResponder handles the response to the ListAutoApprovedPrivateLinkServices request. The method always +// closes the http.Response Body. +func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesResponder(resp *http.Response) (result AutoApprovedPrivateLinkServicesResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listAutoApprovedPrivateLinkServicesNextResults retrieves the next set of results, if any. +func (client PrivateLinkServicesClient) listAutoApprovedPrivateLinkServicesNextResults(ctx context.Context, lastResults AutoApprovedPrivateLinkServicesResult) (result AutoApprovedPrivateLinkServicesResult, err error) { + req, err := lastResults.autoApprovedPrivateLinkServicesResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListAutoApprovedPrivateLinkServicesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesNextResults", resp, "Failure sending next results request") + } + result, err = client.ListAutoApprovedPrivateLinkServicesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListAutoApprovedPrivateLinkServicesComplete enumerates all values, automatically crossing page boundaries as required. +func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesComplete(ctx context.Context, location string) (result AutoApprovedPrivateLinkServicesResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkServicesClient.ListAutoApprovedPrivateLinkServices") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListAutoApprovedPrivateLinkServices(ctx, location) + return +} + +// ListAutoApprovedPrivateLinkServicesByResourceGroup returns all of the private link service ids that can be linked to +// a Private Endpoint with auto approved in this subscription in this region. +// Parameters: +// location - the location of the domain name. +// resourceGroupName - the name of the resource group. +func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByResourceGroup(ctx context.Context, location string, resourceGroupName string) (result AutoApprovedPrivateLinkServicesResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkServicesClient.ListAutoApprovedPrivateLinkServicesByResourceGroup") + defer func() { + sc := -1 + if result.aaplsr.Response.Response != nil { + sc = result.aaplsr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listAutoApprovedPrivateLinkServicesByResourceGroupNextResults + req, err := client.ListAutoApprovedPrivateLinkServicesByResourceGroupPreparer(ctx, location, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServicesByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListAutoApprovedPrivateLinkServicesByResourceGroupSender(req) + if err != nil { + result.aaplsr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServicesByResourceGroup", resp, "Failure sending request") + return + } + + result.aaplsr, err = client.ListAutoApprovedPrivateLinkServicesByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListAutoApprovedPrivateLinkServicesByResourceGroup", resp, "Failure responding to request") + return + } + if result.aaplsr.hasNextLink() && result.aaplsr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListAutoApprovedPrivateLinkServicesByResourceGroupPreparer prepares the ListAutoApprovedPrivateLinkServicesByResourceGroup request. +func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByResourceGroupPreparer(ctx context.Context, location string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "location": autorest.Encode("path", location), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/autoApprovedPrivateLinkServices", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAutoApprovedPrivateLinkServicesByResourceGroupSender sends the ListAutoApprovedPrivateLinkServicesByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAutoApprovedPrivateLinkServicesByResourceGroupResponder handles the response to the ListAutoApprovedPrivateLinkServicesByResourceGroup request. The method always +// closes the http.Response Body. +func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByResourceGroupResponder(resp *http.Response) (result AutoApprovedPrivateLinkServicesResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listAutoApprovedPrivateLinkServicesByResourceGroupNextResults retrieves the next set of results, if any. +func (client PrivateLinkServicesClient) listAutoApprovedPrivateLinkServicesByResourceGroupNextResults(ctx context.Context, lastResults AutoApprovedPrivateLinkServicesResult) (result AutoApprovedPrivateLinkServicesResult, err error) { + req, err := lastResults.autoApprovedPrivateLinkServicesResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListAutoApprovedPrivateLinkServicesByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListAutoApprovedPrivateLinkServicesByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listAutoApprovedPrivateLinkServicesByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListAutoApprovedPrivateLinkServicesByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByResourceGroupComplete(ctx context.Context, location string, resourceGroupName string) (result AutoApprovedPrivateLinkServicesResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkServicesClient.ListAutoApprovedPrivateLinkServicesByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListAutoApprovedPrivateLinkServicesByResourceGroup(ctx, location, resourceGroupName) + return +} + +// ListBySubscription gets all private link service in a subscription. +func (client PrivateLinkServicesClient) ListBySubscription(ctx context.Context) (result PrivateLinkServiceListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkServicesClient.ListBySubscription") + defer func() { + sc := -1 + if result.plslr.Response.Response != nil { + sc = result.plslr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listBySubscriptionNextResults + req, err := client.ListBySubscriptionPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListBySubscription", nil, "Failure preparing request") + return + } + + resp, err := client.ListBySubscriptionSender(req) + if err != nil { + result.plslr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListBySubscription", resp, "Failure sending request") + return + } + + result.plslr, err = client.ListBySubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListBySubscription", resp, "Failure responding to request") + return + } + if result.plslr.hasNextLink() && result.plslr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListBySubscriptionPreparer prepares the ListBySubscription request. +func (client PrivateLinkServicesClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/privateLinkServices", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListBySubscriptionSender sends the ListBySubscription request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateLinkServicesClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always +// closes the http.Response Body. +func (client PrivateLinkServicesClient) ListBySubscriptionResponder(resp *http.Response) (result PrivateLinkServiceListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listBySubscriptionNextResults retrieves the next set of results, if any. +func (client PrivateLinkServicesClient) listBySubscriptionNextResults(ctx context.Context, lastResults PrivateLinkServiceListResult) (result PrivateLinkServiceListResult, err error) { + req, err := lastResults.privateLinkServiceListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listBySubscriptionNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListBySubscriptionSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listBySubscriptionNextResults", resp, "Failure sending next results request") + } + result, err = client.ListBySubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required. +func (client PrivateLinkServicesClient) ListBySubscriptionComplete(ctx context.Context) (result PrivateLinkServiceListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkServicesClient.ListBySubscription") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListBySubscription(ctx) + return +} + +// ListPrivateEndpointConnections gets all private end point connections for a specific private link service. +// Parameters: +// resourceGroupName - the name of the resource group. +// serviceName - the name of the private link service. +func (client PrivateLinkServicesClient) ListPrivateEndpointConnections(ctx context.Context, resourceGroupName string, serviceName string) (result PrivateEndpointConnectionListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkServicesClient.ListPrivateEndpointConnections") + defer func() { + sc := -1 + if result.peclr.Response.Response != nil { + sc = result.peclr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listPrivateEndpointConnectionsNextResults + req, err := client.ListPrivateEndpointConnectionsPreparer(ctx, resourceGroupName, serviceName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListPrivateEndpointConnections", nil, "Failure preparing request") + return + } + + resp, err := client.ListPrivateEndpointConnectionsSender(req) + if err != nil { + result.peclr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListPrivateEndpointConnections", resp, "Failure sending request") + return + } + + result.peclr, err = client.ListPrivateEndpointConnectionsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "ListPrivateEndpointConnections", resp, "Failure responding to request") + return + } + if result.peclr.hasNextLink() && result.peclr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPrivateEndpointConnectionsPreparer prepares the ListPrivateEndpointConnections request. +func (client PrivateLinkServicesClient) ListPrivateEndpointConnectionsPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceName": autorest.Encode("path", serviceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}/privateEndpointConnections", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListPrivateEndpointConnectionsSender sends the ListPrivateEndpointConnections request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateLinkServicesClient) ListPrivateEndpointConnectionsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListPrivateEndpointConnectionsResponder handles the response to the ListPrivateEndpointConnections request. The method always +// closes the http.Response Body. +func (client PrivateLinkServicesClient) ListPrivateEndpointConnectionsResponder(resp *http.Response) (result PrivateEndpointConnectionListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listPrivateEndpointConnectionsNextResults retrieves the next set of results, if any. +func (client PrivateLinkServicesClient) listPrivateEndpointConnectionsNextResults(ctx context.Context, lastResults PrivateEndpointConnectionListResult) (result PrivateEndpointConnectionListResult, err error) { + req, err := lastResults.privateEndpointConnectionListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listPrivateEndpointConnectionsNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListPrivateEndpointConnectionsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listPrivateEndpointConnectionsNextResults", resp, "Failure sending next results request") + } + result, err = client.ListPrivateEndpointConnectionsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "listPrivateEndpointConnectionsNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListPrivateEndpointConnectionsComplete enumerates all values, automatically crossing page boundaries as required. +func (client PrivateLinkServicesClient) ListPrivateEndpointConnectionsComplete(ctx context.Context, resourceGroupName string, serviceName string) (result PrivateEndpointConnectionListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkServicesClient.ListPrivateEndpointConnections") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListPrivateEndpointConnections(ctx, resourceGroupName, serviceName) + return +} + +// UpdatePrivateEndpointConnection approve or reject private end point connection for a private link service in a +// subscription. +// Parameters: +// resourceGroupName - the name of the resource group. +// serviceName - the name of the private link service. +// peConnectionName - the name of the private end point connection. +// parameters - parameters supplied to approve or reject the private end point connection. +func (client PrivateLinkServicesClient) UpdatePrivateEndpointConnection(ctx context.Context, resourceGroupName string, serviceName string, peConnectionName string, parameters PrivateEndpointConnection) (result PrivateEndpointConnection, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkServicesClient.UpdatePrivateEndpointConnection") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdatePrivateEndpointConnectionPreparer(ctx, resourceGroupName, serviceName, peConnectionName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "UpdatePrivateEndpointConnection", nil, "Failure preparing request") + return + } + + resp, err := client.UpdatePrivateEndpointConnectionSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "UpdatePrivateEndpointConnection", resp, "Failure sending request") + return + } + + result, err = client.UpdatePrivateEndpointConnectionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PrivateLinkServicesClient", "UpdatePrivateEndpointConnection", resp, "Failure responding to request") + return + } + + return +} + +// UpdatePrivateEndpointConnectionPreparer prepares the UpdatePrivateEndpointConnection request. +func (client PrivateLinkServicesClient) UpdatePrivateEndpointConnectionPreparer(ctx context.Context, resourceGroupName string, serviceName string, peConnectionName string, parameters PrivateEndpointConnection) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "peConnectionName": autorest.Encode("path", peConnectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceName": autorest.Encode("path", serviceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Type = nil + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}/privateEndpointConnections/{peConnectionName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdatePrivateEndpointConnectionSender sends the UpdatePrivateEndpointConnection request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateLinkServicesClient) UpdatePrivateEndpointConnectionSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdatePrivateEndpointConnectionResponder handles the response to the UpdatePrivateEndpointConnection request. The method always +// closes the http.Response Body. +func (client PrivateLinkServicesClient) UpdatePrivateEndpointConnectionResponder(resp *http.Response) (result PrivateEndpointConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/profiles.go b/services/network/mgmt/2020-07-01/network/profiles.go new file mode 100644 index 000000000000..43790de1bd17 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/profiles.go @@ -0,0 +1,584 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ProfilesClient is the network Client +type ProfilesClient struct { + BaseClient +} + +// NewProfilesClient creates an instance of the ProfilesClient client. +func NewProfilesClient(subscriptionID string) ProfilesClient { + return NewProfilesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewProfilesClientWithBaseURI(baseURI string, subscriptionID string) ProfilesClient { + return ProfilesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a network profile. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkProfileName - the name of the network profile. +// parameters - parameters supplied to the create or update network profile operation. +func (client ProfilesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, networkProfileName string, parameters Profile) (result Profile, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProfilesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, networkProfileName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ProfilesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + resp, err := client.CreateOrUpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ProfilesClient", "CreateOrUpdate", resp, "Failure sending request") + return + } + + result, err = client.CreateOrUpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ProfilesClient", "CreateOrUpdate", resp, "Failure responding to request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client ProfilesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, networkProfileName string, parameters Profile) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkProfileName": autorest.Encode("path", networkProfileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles/{networkProfileName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client ProfilesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client ProfilesClient) CreateOrUpdateResponder(resp *http.Response) (result Profile, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified network profile. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkProfileName - the name of the NetworkProfile. +func (client ProfilesClient) Delete(ctx context.Context, resourceGroupName string, networkProfileName string) (result ProfilesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProfilesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, networkProfileName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ProfilesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ProfilesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client ProfilesClient) DeletePreparer(ctx context.Context, resourceGroupName string, networkProfileName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkProfileName": autorest.Encode("path", networkProfileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles/{networkProfileName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client ProfilesClient) DeleteSender(req *http.Request) (future ProfilesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client ProfilesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified network profile in a specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkProfileName - the name of the public IP prefix. +// expand - expands referenced resources. +func (client ProfilesClient) Get(ctx context.Context, resourceGroupName string, networkProfileName string, expand string) (result Profile, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProfilesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, networkProfileName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ProfilesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ProfilesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ProfilesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ProfilesClient) GetPreparer(ctx context.Context, resourceGroupName string, networkProfileName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkProfileName": autorest.Encode("path", networkProfileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles/{networkProfileName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ProfilesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ProfilesClient) GetResponder(resp *http.Response) (result Profile, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all network profiles in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client ProfilesClient) List(ctx context.Context, resourceGroupName string) (result ProfileListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProfilesClient.List") + defer func() { + sc := -1 + if result.plr.Response.Response != nil { + sc = result.plr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ProfilesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.plr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ProfilesClient", "List", resp, "Failure sending request") + return + } + + result.plr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ProfilesClient", "List", resp, "Failure responding to request") + return + } + if result.plr.hasNextLink() && result.plr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ProfilesClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ProfilesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ProfilesClient) ListResponder(resp *http.Response) (result ProfileListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client ProfilesClient) listNextResults(ctx context.Context, lastResults ProfileListResult) (result ProfileListResult, err error) { + req, err := lastResults.profileListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.ProfilesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.ProfilesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ProfilesClient) ListComplete(ctx context.Context, resourceGroupName string) (result ProfileListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProfilesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName) + return +} + +// ListAll gets all the network profiles in a subscription. +func (client ProfilesClient) ListAll(ctx context.Context) (result ProfileListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProfilesClient.ListAll") + defer func() { + sc := -1 + if result.plr.Response.Response != nil { + sc = result.plr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listAllNextResults + req, err := client.ListAllPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ProfilesClient", "ListAll", nil, "Failure preparing request") + return + } + + resp, err := client.ListAllSender(req) + if err != nil { + result.plr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ProfilesClient", "ListAll", resp, "Failure sending request") + return + } + + result.plr, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ProfilesClient", "ListAll", resp, "Failure responding to request") + return + } + if result.plr.hasNextLink() && result.plr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListAllPreparer prepares the ListAll request. +func (client ProfilesClient) ListAllPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkProfiles", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAllSender sends the ListAll request. The method will close the +// http.Response Body if it receives an error. +func (client ProfilesClient) ListAllSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAllResponder handles the response to the ListAll request. The method always +// closes the http.Response Body. +func (client ProfilesClient) ListAllResponder(resp *http.Response) (result ProfileListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listAllNextResults retrieves the next set of results, if any. +func (client ProfilesClient) listAllNextResults(ctx context.Context, lastResults ProfileListResult) (result ProfileListResult, err error) { + req, err := lastResults.profileListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.ProfilesClient", "listAllNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListAllSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.ProfilesClient", "listAllNextResults", resp, "Failure sending next results request") + } + result, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ProfilesClient", "listAllNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListAllComplete enumerates all values, automatically crossing page boundaries as required. +func (client ProfilesClient) ListAllComplete(ctx context.Context) (result ProfileListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProfilesClient.ListAll") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListAll(ctx) + return +} + +// UpdateTags updates network profile tags. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkProfileName - the name of the network profile. +// parameters - parameters supplied to update network profile tags. +func (client ProfilesClient) UpdateTags(ctx context.Context, resourceGroupName string, networkProfileName string, parameters TagsObject) (result Profile, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProfilesClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, networkProfileName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ProfilesClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ProfilesClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ProfilesClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client ProfilesClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, networkProfileName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkProfileName": autorest.Encode("path", networkProfileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles/{networkProfileName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client ProfilesClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client ProfilesClient) UpdateTagsResponder(resp *http.Response) (result Profile, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/publicipaddresses.go b/services/network/mgmt/2020-07-01/network/publicipaddresses.go new file mode 100644 index 000000000000..631b57ed4a2c --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/publicipaddresses.go @@ -0,0 +1,1263 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// PublicIPAddressesClient is the network Client +type PublicIPAddressesClient struct { + BaseClient +} + +// NewPublicIPAddressesClient creates an instance of the PublicIPAddressesClient client. +func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient { + return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient { + return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a static or dynamic public IP address. +// Parameters: +// resourceGroupName - the name of the resource group. +// publicIPAddressName - the name of the public IP address. +// parameters - parameters supplied to the create or update public IP address operation. +func (client PublicIPAddressesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters PublicIPAddress) (result PublicIPAddressesCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPAddressesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.ExtendedLocation", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.ExtendedLocation.Name", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.ExtendedLocation.Type", Name: validation.Null, Rule: true, Chain: nil}, + }}, + {Target: "parameters.PublicIPAddressPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.PublicIPAddressPropertiesFormat.IPConfiguration", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat.PublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}}}, + }}, + }}}}}); err != nil { + return result, validation.NewError("network.PublicIPAddressesClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, publicIPAddressName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client PublicIPAddressesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters PublicIPAddress) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "publicIpAddressName": autorest.Encode("path", publicIPAddressName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client PublicIPAddressesClient) CreateOrUpdateSender(req *http.Request) (future PublicIPAddressesCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client PublicIPAddressesClient) CreateOrUpdateResponder(resp *http.Response) (result PublicIPAddress, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified public IP address. +// Parameters: +// resourceGroupName - the name of the resource group. +// publicIPAddressName - the name of the public IP address. +func (client PublicIPAddressesClient) Delete(ctx context.Context, resourceGroupName string, publicIPAddressName string) (result PublicIPAddressesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPAddressesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, publicIPAddressName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client PublicIPAddressesClient) DeletePreparer(ctx context.Context, resourceGroupName string, publicIPAddressName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "publicIpAddressName": autorest.Encode("path", publicIPAddressName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client PublicIPAddressesClient) DeleteSender(req *http.Request) (future PublicIPAddressesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client PublicIPAddressesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified public IP address in a specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// publicIPAddressName - the name of the public IP address. +// expand - expands referenced resources. +func (client PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result PublicIPAddress, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPAddressesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, publicIPAddressName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client PublicIPAddressesClient) GetPreparer(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "publicIpAddressName": autorest.Encode("path", publicIPAddressName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client PublicIPAddressesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client PublicIPAddressesClient) GetResponder(resp *http.Response) (result PublicIPAddress, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetCloudServicePublicIPAddress get the specified public IP address in a cloud service. +// Parameters: +// resourceGroupName - the name of the resource group. +// cloudServiceName - the name of the cloud service. +// roleInstanceName - the role instance name. +// networkInterfaceName - the name of the network interface. +// IPConfigurationName - the name of the IP configuration. +// publicIPAddressName - the name of the public IP Address. +// expand - expands referenced resources. +func (client PublicIPAddressesClient) GetCloudServicePublicIPAddress(ctx context.Context, resourceGroupName string, cloudServiceName string, roleInstanceName string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (result PublicIPAddress, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPAddressesClient.GetCloudServicePublicIPAddress") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetCloudServicePublicIPAddressPreparer(ctx, resourceGroupName, cloudServiceName, roleInstanceName, networkInterfaceName, IPConfigurationName, publicIPAddressName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetCloudServicePublicIPAddress", nil, "Failure preparing request") + return + } + + resp, err := client.GetCloudServicePublicIPAddressSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetCloudServicePublicIPAddress", resp, "Failure sending request") + return + } + + result, err = client.GetCloudServicePublicIPAddressResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetCloudServicePublicIPAddress", resp, "Failure responding to request") + return + } + + return +} + +// GetCloudServicePublicIPAddressPreparer prepares the GetCloudServicePublicIPAddress request. +func (client PublicIPAddressesClient) GetCloudServicePublicIPAddressPreparer(ctx context.Context, resourceGroupName string, cloudServiceName string, roleInstanceName string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "cloudServiceName": autorest.Encode("path", cloudServiceName), + "ipConfigurationName": autorest.Encode("path", IPConfigurationName), + "networkInterfaceName": autorest.Encode("path", networkInterfaceName), + "publicIpAddressName": autorest.Encode("path", publicIPAddressName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "roleInstanceName": autorest.Encode("path", roleInstanceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses/{publicIpAddressName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetCloudServicePublicIPAddressSender sends the GetCloudServicePublicIPAddress request. The method will close the +// http.Response Body if it receives an error. +func (client PublicIPAddressesClient) GetCloudServicePublicIPAddressSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetCloudServicePublicIPAddressResponder handles the response to the GetCloudServicePublicIPAddress request. The method always +// closes the http.Response Body. +func (client PublicIPAddressesClient) GetCloudServicePublicIPAddressResponder(resp *http.Response) (result PublicIPAddress, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetVirtualMachineScaleSetPublicIPAddress get the specified public IP address in a virtual machine scale set. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualMachineScaleSetName - the name of the virtual machine scale set. +// virtualmachineIndex - the virtual machine index. +// networkInterfaceName - the name of the network interface. +// IPConfigurationName - the name of the IP configuration. +// publicIPAddressName - the name of the public IP Address. +// expand - expands referenced resources. +func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (result PublicIPAddress, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPAddressesClient.GetVirtualMachineScaleSetPublicIPAddress") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetVirtualMachineScaleSetPublicIPAddressPreparer(ctx, resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, IPConfigurationName, publicIPAddressName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", nil, "Failure preparing request") + return + } + + resp, err := client.GetVirtualMachineScaleSetPublicIPAddressSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure sending request") + return + } + + result, err = client.GetVirtualMachineScaleSetPublicIPAddressResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "GetVirtualMachineScaleSetPublicIPAddress", resp, "Failure responding to request") + return + } + + return +} + +// GetVirtualMachineScaleSetPublicIPAddressPreparer prepares the GetVirtualMachineScaleSetPublicIPAddress request. +func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddressPreparer(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "ipConfigurationName": autorest.Encode("path", IPConfigurationName), + "networkInterfaceName": autorest.Encode("path", networkInterfaceName), + "publicIpAddressName": autorest.Encode("path", publicIPAddressName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualmachineIndex": autorest.Encode("path", virtualmachineIndex), + "virtualMachineScaleSetName": autorest.Encode("path", virtualMachineScaleSetName), + } + + const APIVersion = "2018-10-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses/{publicIpAddressName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetVirtualMachineScaleSetPublicIPAddressSender sends the GetVirtualMachineScaleSetPublicIPAddress request. The method will close the +// http.Response Body if it receives an error. +func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddressSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetVirtualMachineScaleSetPublicIPAddressResponder handles the response to the GetVirtualMachineScaleSetPublicIPAddress request. The method always +// closes the http.Response Body. +func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddressResponder(resp *http.Response) (result PublicIPAddress, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all public IP addresses in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client PublicIPAddressesClient) List(ctx context.Context, resourceGroupName string) (result PublicIPAddressListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPAddressesClient.List") + defer func() { + sc := -1 + if result.pialr.Response.Response != nil { + sc = result.pialr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.pialr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure sending request") + return + } + + result.pialr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "List", resp, "Failure responding to request") + return + } + if result.pialr.hasNextLink() && result.pialr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client PublicIPAddressesClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client PublicIPAddressesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client PublicIPAddressesClient) ListResponder(resp *http.Response) (result PublicIPAddressListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client PublicIPAddressesClient) listNextResults(ctx context.Context, lastResults PublicIPAddressListResult) (result PublicIPAddressListResult, err error) { + req, err := lastResults.publicIPAddressListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client PublicIPAddressesClient) ListComplete(ctx context.Context, resourceGroupName string) (result PublicIPAddressListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPAddressesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName) + return +} + +// ListAll gets all the public IP addresses in a subscription. +func (client PublicIPAddressesClient) ListAll(ctx context.Context) (result PublicIPAddressListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPAddressesClient.ListAll") + defer func() { + sc := -1 + if result.pialr.Response.Response != nil { + sc = result.pialr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listAllNextResults + req, err := client.ListAllPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", nil, "Failure preparing request") + return + } + + resp, err := client.ListAllSender(req) + if err != nil { + result.pialr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure sending request") + return + } + + result.pialr, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListAll", resp, "Failure responding to request") + return + } + if result.pialr.hasNextLink() && result.pialr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListAllPreparer prepares the ListAll request. +func (client PublicIPAddressesClient) ListAllPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/publicIPAddresses", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAllSender sends the ListAll request. The method will close the +// http.Response Body if it receives an error. +func (client PublicIPAddressesClient) ListAllSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAllResponder handles the response to the ListAll request. The method always +// closes the http.Response Body. +func (client PublicIPAddressesClient) ListAllResponder(resp *http.Response) (result PublicIPAddressListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listAllNextResults retrieves the next set of results, if any. +func (client PublicIPAddressesClient) listAllNextResults(ctx context.Context, lastResults PublicIPAddressListResult) (result PublicIPAddressListResult, err error) { + req, err := lastResults.publicIPAddressListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListAllSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure sending next results request") + } + result, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listAllNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListAllComplete enumerates all values, automatically crossing page boundaries as required. +func (client PublicIPAddressesClient) ListAllComplete(ctx context.Context) (result PublicIPAddressListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPAddressesClient.ListAll") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListAll(ctx) + return +} + +// ListCloudServicePublicIPAddresses gets information about all public IP addresses on a cloud service level. +// Parameters: +// resourceGroupName - the name of the resource group. +// cloudServiceName - the name of the cloud service. +func (client PublicIPAddressesClient) ListCloudServicePublicIPAddresses(ctx context.Context, resourceGroupName string, cloudServiceName string) (result PublicIPAddressListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPAddressesClient.ListCloudServicePublicIPAddresses") + defer func() { + sc := -1 + if result.pialr.Response.Response != nil { + sc = result.pialr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listCloudServicePublicIPAddressesNextResults + req, err := client.ListCloudServicePublicIPAddressesPreparer(ctx, resourceGroupName, cloudServiceName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListCloudServicePublicIPAddresses", nil, "Failure preparing request") + return + } + + resp, err := client.ListCloudServicePublicIPAddressesSender(req) + if err != nil { + result.pialr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListCloudServicePublicIPAddresses", resp, "Failure sending request") + return + } + + result.pialr, err = client.ListCloudServicePublicIPAddressesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListCloudServicePublicIPAddresses", resp, "Failure responding to request") + return + } + if result.pialr.hasNextLink() && result.pialr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListCloudServicePublicIPAddressesPreparer prepares the ListCloudServicePublicIPAddresses request. +func (client PublicIPAddressesClient) ListCloudServicePublicIPAddressesPreparer(ctx context.Context, resourceGroupName string, cloudServiceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "cloudServiceName": autorest.Encode("path", cloudServiceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/publicipaddresses", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListCloudServicePublicIPAddressesSender sends the ListCloudServicePublicIPAddresses request. The method will close the +// http.Response Body if it receives an error. +func (client PublicIPAddressesClient) ListCloudServicePublicIPAddressesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListCloudServicePublicIPAddressesResponder handles the response to the ListCloudServicePublicIPAddresses request. The method always +// closes the http.Response Body. +func (client PublicIPAddressesClient) ListCloudServicePublicIPAddressesResponder(resp *http.Response) (result PublicIPAddressListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listCloudServicePublicIPAddressesNextResults retrieves the next set of results, if any. +func (client PublicIPAddressesClient) listCloudServicePublicIPAddressesNextResults(ctx context.Context, lastResults PublicIPAddressListResult) (result PublicIPAddressListResult, err error) { + req, err := lastResults.publicIPAddressListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listCloudServicePublicIPAddressesNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListCloudServicePublicIPAddressesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listCloudServicePublicIPAddressesNextResults", resp, "Failure sending next results request") + } + result, err = client.ListCloudServicePublicIPAddressesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listCloudServicePublicIPAddressesNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListCloudServicePublicIPAddressesComplete enumerates all values, automatically crossing page boundaries as required. +func (client PublicIPAddressesClient) ListCloudServicePublicIPAddressesComplete(ctx context.Context, resourceGroupName string, cloudServiceName string) (result PublicIPAddressListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPAddressesClient.ListCloudServicePublicIPAddresses") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListCloudServicePublicIPAddresses(ctx, resourceGroupName, cloudServiceName) + return +} + +// ListCloudServiceRoleInstancePublicIPAddresses gets information about all public IP addresses in a role instance IP +// configuration in a cloud service. +// Parameters: +// resourceGroupName - the name of the resource group. +// cloudServiceName - the name of the cloud service. +// roleInstanceName - the name of role instance +// networkInterfaceName - the network interface name. +// IPConfigurationName - the IP configuration name. +func (client PublicIPAddressesClient) ListCloudServiceRoleInstancePublicIPAddresses(ctx context.Context, resourceGroupName string, cloudServiceName string, roleInstanceName string, networkInterfaceName string, IPConfigurationName string) (result PublicIPAddressListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPAddressesClient.ListCloudServiceRoleInstancePublicIPAddresses") + defer func() { + sc := -1 + if result.pialr.Response.Response != nil { + sc = result.pialr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listCloudServiceRoleInstancePublicIPAddressesNextResults + req, err := client.ListCloudServiceRoleInstancePublicIPAddressesPreparer(ctx, resourceGroupName, cloudServiceName, roleInstanceName, networkInterfaceName, IPConfigurationName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListCloudServiceRoleInstancePublicIPAddresses", nil, "Failure preparing request") + return + } + + resp, err := client.ListCloudServiceRoleInstancePublicIPAddressesSender(req) + if err != nil { + result.pialr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListCloudServiceRoleInstancePublicIPAddresses", resp, "Failure sending request") + return + } + + result.pialr, err = client.ListCloudServiceRoleInstancePublicIPAddressesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListCloudServiceRoleInstancePublicIPAddresses", resp, "Failure responding to request") + return + } + if result.pialr.hasNextLink() && result.pialr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListCloudServiceRoleInstancePublicIPAddressesPreparer prepares the ListCloudServiceRoleInstancePublicIPAddresses request. +func (client PublicIPAddressesClient) ListCloudServiceRoleInstancePublicIPAddressesPreparer(ctx context.Context, resourceGroupName string, cloudServiceName string, roleInstanceName string, networkInterfaceName string, IPConfigurationName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "cloudServiceName": autorest.Encode("path", cloudServiceName), + "ipConfigurationName": autorest.Encode("path", IPConfigurationName), + "networkInterfaceName": autorest.Encode("path", networkInterfaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "roleInstanceName": autorest.Encode("path", roleInstanceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListCloudServiceRoleInstancePublicIPAddressesSender sends the ListCloudServiceRoleInstancePublicIPAddresses request. The method will close the +// http.Response Body if it receives an error. +func (client PublicIPAddressesClient) ListCloudServiceRoleInstancePublicIPAddressesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListCloudServiceRoleInstancePublicIPAddressesResponder handles the response to the ListCloudServiceRoleInstancePublicIPAddresses request. The method always +// closes the http.Response Body. +func (client PublicIPAddressesClient) ListCloudServiceRoleInstancePublicIPAddressesResponder(resp *http.Response) (result PublicIPAddressListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listCloudServiceRoleInstancePublicIPAddressesNextResults retrieves the next set of results, if any. +func (client PublicIPAddressesClient) listCloudServiceRoleInstancePublicIPAddressesNextResults(ctx context.Context, lastResults PublicIPAddressListResult) (result PublicIPAddressListResult, err error) { + req, err := lastResults.publicIPAddressListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listCloudServiceRoleInstancePublicIPAddressesNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListCloudServiceRoleInstancePublicIPAddressesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listCloudServiceRoleInstancePublicIPAddressesNextResults", resp, "Failure sending next results request") + } + result, err = client.ListCloudServiceRoleInstancePublicIPAddressesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listCloudServiceRoleInstancePublicIPAddressesNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListCloudServiceRoleInstancePublicIPAddressesComplete enumerates all values, automatically crossing page boundaries as required. +func (client PublicIPAddressesClient) ListCloudServiceRoleInstancePublicIPAddressesComplete(ctx context.Context, resourceGroupName string, cloudServiceName string, roleInstanceName string, networkInterfaceName string, IPConfigurationName string) (result PublicIPAddressListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPAddressesClient.ListCloudServiceRoleInstancePublicIPAddresses") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListCloudServiceRoleInstancePublicIPAddresses(ctx, resourceGroupName, cloudServiceName, roleInstanceName, networkInterfaceName, IPConfigurationName) + return +} + +// ListVirtualMachineScaleSetPublicIPAddresses gets information about all public IP addresses on a virtual machine +// scale set level. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualMachineScaleSetName - the name of the virtual machine scale set. +func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result PublicIPAddressListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPAddressesClient.ListVirtualMachineScaleSetPublicIPAddresses") + defer func() { + sc := -1 + if result.pialr.Response.Response != nil { + sc = result.pialr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listVirtualMachineScaleSetPublicIPAddressesNextResults + req, err := client.ListVirtualMachineScaleSetPublicIPAddressesPreparer(ctx, resourceGroupName, virtualMachineScaleSetName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", nil, "Failure preparing request") + return + } + + resp, err := client.ListVirtualMachineScaleSetPublicIPAddressesSender(req) + if err != nil { + result.pialr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure sending request") + return + } + + result.pialr, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetPublicIPAddresses", resp, "Failure responding to request") + return + } + if result.pialr.hasNextLink() && result.pialr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListVirtualMachineScaleSetPublicIPAddressesPreparer prepares the ListVirtualMachineScaleSetPublicIPAddresses request. +func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddressesPreparer(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualMachineScaleSetName": autorest.Encode("path", virtualMachineScaleSetName), + } + + const APIVersion = "2018-10-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/publicipaddresses", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListVirtualMachineScaleSetPublicIPAddressesSender sends the ListVirtualMachineScaleSetPublicIPAddresses request. The method will close the +// http.Response Body if it receives an error. +func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddressesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListVirtualMachineScaleSetPublicIPAddressesResponder handles the response to the ListVirtualMachineScaleSetPublicIPAddresses request. The method always +// closes the http.Response Body. +func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddressesResponder(resp *http.Response) (result PublicIPAddressListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listVirtualMachineScaleSetPublicIPAddressesNextResults retrieves the next set of results, if any. +func (client PublicIPAddressesClient) listVirtualMachineScaleSetPublicIPAddressesNextResults(ctx context.Context, lastResults PublicIPAddressListResult) (result PublicIPAddressListResult, err error) { + req, err := lastResults.publicIPAddressListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListVirtualMachineScaleSetPublicIPAddressesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure sending next results request") + } + result, err = client.ListVirtualMachineScaleSetPublicIPAddressesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetPublicIPAddressesNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListVirtualMachineScaleSetPublicIPAddressesComplete enumerates all values, automatically crossing page boundaries as required. +func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result PublicIPAddressListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPAddressesClient.ListVirtualMachineScaleSetPublicIPAddresses") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListVirtualMachineScaleSetPublicIPAddresses(ctx, resourceGroupName, virtualMachineScaleSetName) + return +} + +// ListVirtualMachineScaleSetVMPublicIPAddresses gets information about all public IP addresses in a virtual machine IP +// configuration in a virtual machine scale set. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualMachineScaleSetName - the name of the virtual machine scale set. +// virtualmachineIndex - the virtual machine index. +// networkInterfaceName - the network interface name. +// IPConfigurationName - the IP configuration name. +func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result PublicIPAddressListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPAddressesClient.ListVirtualMachineScaleSetVMPublicIPAddresses") + defer func() { + sc := -1 + if result.pialr.Response.Response != nil { + sc = result.pialr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listVirtualMachineScaleSetVMPublicIPAddressesNextResults + req, err := client.ListVirtualMachineScaleSetVMPublicIPAddressesPreparer(ctx, resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, IPConfigurationName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", nil, "Failure preparing request") + return + } + + resp, err := client.ListVirtualMachineScaleSetVMPublicIPAddressesSender(req) + if err != nil { + result.pialr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure sending request") + return + } + + result.pialr, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "ListVirtualMachineScaleSetVMPublicIPAddresses", resp, "Failure responding to request") + return + } + if result.pialr.hasNextLink() && result.pialr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListVirtualMachineScaleSetVMPublicIPAddressesPreparer prepares the ListVirtualMachineScaleSetVMPublicIPAddresses request. +func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddressesPreparer(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "ipConfigurationName": autorest.Encode("path", IPConfigurationName), + "networkInterfaceName": autorest.Encode("path", networkInterfaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualmachineIndex": autorest.Encode("path", virtualmachineIndex), + "virtualMachineScaleSetName": autorest.Encode("path", virtualMachineScaleSetName), + } + + const APIVersion = "2018-10-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListVirtualMachineScaleSetVMPublicIPAddressesSender sends the ListVirtualMachineScaleSetVMPublicIPAddresses request. The method will close the +// http.Response Body if it receives an error. +func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddressesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListVirtualMachineScaleSetVMPublicIPAddressesResponder handles the response to the ListVirtualMachineScaleSetVMPublicIPAddresses request. The method always +// closes the http.Response Body. +func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp *http.Response) (result PublicIPAddressListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listVirtualMachineScaleSetVMPublicIPAddressesNextResults retrieves the next set of results, if any. +func (client PublicIPAddressesClient) listVirtualMachineScaleSetVMPublicIPAddressesNextResults(ctx context.Context, lastResults PublicIPAddressListResult) (result PublicIPAddressListResult, err error) { + req, err := lastResults.publicIPAddressListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListVirtualMachineScaleSetVMPublicIPAddressesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure sending next results request") + } + result, err = client.ListVirtualMachineScaleSetVMPublicIPAddressesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "listVirtualMachineScaleSetVMPublicIPAddressesNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListVirtualMachineScaleSetVMPublicIPAddressesComplete enumerates all values, automatically crossing page boundaries as required. +func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result PublicIPAddressListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPAddressesClient.ListVirtualMachineScaleSetVMPublicIPAddresses") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListVirtualMachineScaleSetVMPublicIPAddresses(ctx, resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, IPConfigurationName) + return +} + +// UpdateTags updates public IP address tags. +// Parameters: +// resourceGroupName - the name of the resource group. +// publicIPAddressName - the name of the public IP address. +// parameters - parameters supplied to update public IP address tags. +func (client PublicIPAddressesClient) UpdateTags(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters TagsObject) (result PublicIPAddress, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPAddressesClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, publicIPAddressName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPAddressesClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client PublicIPAddressesClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "publicIpAddressName": autorest.Encode("path", publicIPAddressName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client PublicIPAddressesClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client PublicIPAddressesClient) UpdateTagsResponder(resp *http.Response) (result PublicIPAddress, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/publicipprefixes.go b/services/network/mgmt/2020-07-01/network/publicipprefixes.go new file mode 100644 index 000000000000..7c83a1a05dd0 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/publicipprefixes.go @@ -0,0 +1,594 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// PublicIPPrefixesClient is the network Client +type PublicIPPrefixesClient struct { + BaseClient +} + +// NewPublicIPPrefixesClient creates an instance of the PublicIPPrefixesClient client. +func NewPublicIPPrefixesClient(subscriptionID string) PublicIPPrefixesClient { + return NewPublicIPPrefixesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewPublicIPPrefixesClientWithBaseURI creates an instance of the PublicIPPrefixesClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewPublicIPPrefixesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPPrefixesClient { + return PublicIPPrefixesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a static or dynamic public IP prefix. +// Parameters: +// resourceGroupName - the name of the resource group. +// publicIPPrefixName - the name of the public IP prefix. +// parameters - parameters supplied to the create or update public IP prefix operation. +func (client PublicIPPrefixesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, publicIPPrefixName string, parameters PublicIPPrefix) (result PublicIPPrefixesCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPPrefixesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.ExtendedLocation", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.ExtendedLocation.Name", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.ExtendedLocation.Type", Name: validation.Null, Rule: true, Chain: nil}, + }}}}}); err != nil { + return result, validation.NewError("network.PublicIPPrefixesClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, publicIPPrefixName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client PublicIPPrefixesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, publicIPPrefixName string, parameters PublicIPPrefix) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "publicIpPrefixName": autorest.Encode("path", publicIPPrefixName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIpPrefixName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client PublicIPPrefixesClient) CreateOrUpdateSender(req *http.Request) (future PublicIPPrefixesCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client PublicIPPrefixesClient) CreateOrUpdateResponder(resp *http.Response) (result PublicIPPrefix, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified public IP prefix. +// Parameters: +// resourceGroupName - the name of the resource group. +// publicIPPrefixName - the name of the PublicIpPrefix. +func (client PublicIPPrefixesClient) Delete(ctx context.Context, resourceGroupName string, publicIPPrefixName string) (result PublicIPPrefixesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPPrefixesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, publicIPPrefixName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client PublicIPPrefixesClient) DeletePreparer(ctx context.Context, resourceGroupName string, publicIPPrefixName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "publicIpPrefixName": autorest.Encode("path", publicIPPrefixName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIpPrefixName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client PublicIPPrefixesClient) DeleteSender(req *http.Request) (future PublicIPPrefixesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client PublicIPPrefixesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified public IP prefix in a specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// publicIPPrefixName - the name of the public IP prefix. +// expand - expands referenced resources. +func (client PublicIPPrefixesClient) Get(ctx context.Context, resourceGroupName string, publicIPPrefixName string, expand string) (result PublicIPPrefix, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPPrefixesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, publicIPPrefixName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client PublicIPPrefixesClient) GetPreparer(ctx context.Context, resourceGroupName string, publicIPPrefixName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "publicIpPrefixName": autorest.Encode("path", publicIPPrefixName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIpPrefixName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client PublicIPPrefixesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client PublicIPPrefixesClient) GetResponder(resp *http.Response) (result PublicIPPrefix, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all public IP prefixes in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client PublicIPPrefixesClient) List(ctx context.Context, resourceGroupName string) (result PublicIPPrefixListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPPrefixesClient.List") + defer func() { + sc := -1 + if result.piplr.Response.Response != nil { + sc = result.piplr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.piplr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "List", resp, "Failure sending request") + return + } + + result.piplr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "List", resp, "Failure responding to request") + return + } + if result.piplr.hasNextLink() && result.piplr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client PublicIPPrefixesClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client PublicIPPrefixesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client PublicIPPrefixesClient) ListResponder(resp *http.Response) (result PublicIPPrefixListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client PublicIPPrefixesClient) listNextResults(ctx context.Context, lastResults PublicIPPrefixListResult) (result PublicIPPrefixListResult, err error) { + req, err := lastResults.publicIPPrefixListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client PublicIPPrefixesClient) ListComplete(ctx context.Context, resourceGroupName string) (result PublicIPPrefixListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPPrefixesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName) + return +} + +// ListAll gets all the public IP prefixes in a subscription. +func (client PublicIPPrefixesClient) ListAll(ctx context.Context) (result PublicIPPrefixListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPPrefixesClient.ListAll") + defer func() { + sc := -1 + if result.piplr.Response.Response != nil { + sc = result.piplr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listAllNextResults + req, err := client.ListAllPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "ListAll", nil, "Failure preparing request") + return + } + + resp, err := client.ListAllSender(req) + if err != nil { + result.piplr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "ListAll", resp, "Failure sending request") + return + } + + result.piplr, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "ListAll", resp, "Failure responding to request") + return + } + if result.piplr.hasNextLink() && result.piplr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListAllPreparer prepares the ListAll request. +func (client PublicIPPrefixesClient) ListAllPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/publicIPPrefixes", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAllSender sends the ListAll request. The method will close the +// http.Response Body if it receives an error. +func (client PublicIPPrefixesClient) ListAllSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAllResponder handles the response to the ListAll request. The method always +// closes the http.Response Body. +func (client PublicIPPrefixesClient) ListAllResponder(resp *http.Response) (result PublicIPPrefixListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listAllNextResults retrieves the next set of results, if any. +func (client PublicIPPrefixesClient) listAllNextResults(ctx context.Context, lastResults PublicIPPrefixListResult) (result PublicIPPrefixListResult, err error) { + req, err := lastResults.publicIPPrefixListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listAllNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListAllSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listAllNextResults", resp, "Failure sending next results request") + } + result, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "listAllNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListAllComplete enumerates all values, automatically crossing page boundaries as required. +func (client PublicIPPrefixesClient) ListAllComplete(ctx context.Context) (result PublicIPPrefixListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPPrefixesClient.ListAll") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListAll(ctx) + return +} + +// UpdateTags updates public IP prefix tags. +// Parameters: +// resourceGroupName - the name of the resource group. +// publicIPPrefixName - the name of the public IP prefix. +// parameters - parameters supplied to update public IP prefix tags. +func (client PublicIPPrefixesClient) UpdateTags(ctx context.Context, resourceGroupName string, publicIPPrefixName string, parameters TagsObject) (result PublicIPPrefix, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PublicIPPrefixesClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, publicIPPrefixName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client PublicIPPrefixesClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, publicIPPrefixName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "publicIpPrefixName": autorest.Encode("path", publicIPPrefixName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIpPrefixName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client PublicIPPrefixesClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client PublicIPPrefixesClient) UpdateTagsResponder(resp *http.Response) (result PublicIPPrefix, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/resourcenavigationlinks.go b/services/network/mgmt/2020-07-01/network/resourcenavigationlinks.go new file mode 100644 index 000000000000..6e9b5aad3cf3 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/resourcenavigationlinks.go @@ -0,0 +1,121 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ResourceNavigationLinksClient is the network Client +type ResourceNavigationLinksClient struct { + BaseClient +} + +// NewResourceNavigationLinksClient creates an instance of the ResourceNavigationLinksClient client. +func NewResourceNavigationLinksClient(subscriptionID string) ResourceNavigationLinksClient { + return NewResourceNavigationLinksClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewResourceNavigationLinksClientWithBaseURI creates an instance of the ResourceNavigationLinksClient client using a +// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, +// Azure stack). +func NewResourceNavigationLinksClientWithBaseURI(baseURI string, subscriptionID string) ResourceNavigationLinksClient { + return ResourceNavigationLinksClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List gets a list of resource navigation links for a subnet. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkName - the name of the virtual network. +// subnetName - the name of the subnet. +func (client ResourceNavigationLinksClient) List(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result ResourceNavigationLinksListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ResourceNavigationLinksClient.List") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListPreparer(ctx, resourceGroupName, virtualNetworkName, subnetName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ResourceNavigationLinksClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ResourceNavigationLinksClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ResourceNavigationLinksClient", "List", resp, "Failure responding to request") + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ResourceNavigationLinksClient) ListPreparer(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subnetName": autorest.Encode("path", subnetName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkName": autorest.Encode("path", virtualNetworkName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/ResourceNavigationLinks", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ResourceNavigationLinksClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ResourceNavigationLinksClient) ListResponder(resp *http.Response) (result ResourceNavigationLinksListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/routefilterrules.go b/services/network/mgmt/2020-07-01/network/routefilterrules.go new file mode 100644 index 000000000000..3539c62a7755 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/routefilterrules.go @@ -0,0 +1,406 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// RouteFilterRulesClient is the network Client +type RouteFilterRulesClient struct { + BaseClient +} + +// NewRouteFilterRulesClient creates an instance of the RouteFilterRulesClient client. +func NewRouteFilterRulesClient(subscriptionID string) RouteFilterRulesClient { + return NewRouteFilterRulesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewRouteFilterRulesClientWithBaseURI(baseURI string, subscriptionID string) RouteFilterRulesClient { + return RouteFilterRulesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a route in the specified route filter. +// Parameters: +// resourceGroupName - the name of the resource group. +// routeFilterName - the name of the route filter. +// ruleName - the name of the route filter rule. +// routeFilterRuleParameters - parameters supplied to the create or update route filter rule operation. +func (client RouteFilterRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, routeFilterRuleParameters RouteFilterRule) (result RouteFilterRulesCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteFilterRulesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: routeFilterRuleParameters, + Constraints: []validation.Constraint{{Target: "routeFilterRuleParameters.RouteFilterRulePropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "routeFilterRuleParameters.RouteFilterRulePropertiesFormat.RouteFilterRuleType", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "routeFilterRuleParameters.RouteFilterRulePropertiesFormat.Communities", Name: validation.Null, Rule: true, Chain: nil}, + }}}}}); err != nil { + return result, validation.NewError("network.RouteFilterRulesClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, routeFilterName, ruleName, routeFilterRuleParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client RouteFilterRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, routeFilterRuleParameters RouteFilterRule) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "routeFilterName": autorest.Encode("path", routeFilterName), + "ruleName": autorest.Encode("path", ruleName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + routeFilterRuleParameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules/{ruleName}", pathParameters), + autorest.WithJSON(routeFilterRuleParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client RouteFilterRulesClient) CreateOrUpdateSender(req *http.Request) (future RouteFilterRulesCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client RouteFilterRulesClient) CreateOrUpdateResponder(resp *http.Response) (result RouteFilterRule, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified rule from a route filter. +// Parameters: +// resourceGroupName - the name of the resource group. +// routeFilterName - the name of the route filter. +// ruleName - the name of the rule. +func (client RouteFilterRulesClient) Delete(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result RouteFilterRulesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteFilterRulesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, routeFilterName, ruleName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client RouteFilterRulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "routeFilterName": autorest.Encode("path", routeFilterName), + "ruleName": autorest.Encode("path", ruleName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules/{ruleName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client RouteFilterRulesClient) DeleteSender(req *http.Request) (future RouteFilterRulesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client RouteFilterRulesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified rule from a route filter. +// Parameters: +// resourceGroupName - the name of the resource group. +// routeFilterName - the name of the route filter. +// ruleName - the name of the rule. +func (client RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result RouteFilterRule, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteFilterRulesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, routeFilterName, ruleName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client RouteFilterRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "routeFilterName": autorest.Encode("path", routeFilterName), + "ruleName": autorest.Encode("path", ruleName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules/{ruleName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client RouteFilterRulesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client RouteFilterRulesClient) GetResponder(resp *http.Response) (result RouteFilterRule, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByRouteFilter gets all RouteFilterRules in a route filter. +// Parameters: +// resourceGroupName - the name of the resource group. +// routeFilterName - the name of the route filter. +func (client RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, resourceGroupName string, routeFilterName string) (result RouteFilterRuleListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteFilterRulesClient.ListByRouteFilter") + defer func() { + sc := -1 + if result.rfrlr.Response.Response != nil { + sc = result.rfrlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByRouteFilterNextResults + req, err := client.ListByRouteFilterPreparer(ctx, resourceGroupName, routeFilterName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", nil, "Failure preparing request") + return + } + + resp, err := client.ListByRouteFilterSender(req) + if err != nil { + result.rfrlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure sending request") + return + } + + result.rfrlr, err = client.ListByRouteFilterResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "ListByRouteFilter", resp, "Failure responding to request") + return + } + if result.rfrlr.hasNextLink() && result.rfrlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByRouteFilterPreparer prepares the ListByRouteFilter request. +func (client RouteFilterRulesClient) ListByRouteFilterPreparer(ctx context.Context, resourceGroupName string, routeFilterName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "routeFilterName": autorest.Encode("path", routeFilterName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByRouteFilterSender sends the ListByRouteFilter request. The method will close the +// http.Response Body if it receives an error. +func (client RouteFilterRulesClient) ListByRouteFilterSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByRouteFilterResponder handles the response to the ListByRouteFilter request. The method always +// closes the http.Response Body. +func (client RouteFilterRulesClient) ListByRouteFilterResponder(resp *http.Response) (result RouteFilterRuleListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByRouteFilterNextResults retrieves the next set of results, if any. +func (client RouteFilterRulesClient) listByRouteFilterNextResults(ctx context.Context, lastResults RouteFilterRuleListResult) (result RouteFilterRuleListResult, err error) { + req, err := lastResults.routeFilterRuleListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByRouteFilterSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByRouteFilterResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFilterRulesClient", "listByRouteFilterNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByRouteFilterComplete enumerates all values, automatically crossing page boundaries as required. +func (client RouteFilterRulesClient) ListByRouteFilterComplete(ctx context.Context, resourceGroupName string, routeFilterName string) (result RouteFilterRuleListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteFilterRulesClient.ListByRouteFilter") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByRouteFilter(ctx, resourceGroupName, routeFilterName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/routefilters.go b/services/network/mgmt/2020-07-01/network/routefilters.go new file mode 100644 index 000000000000..2588b7f3c2ed --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/routefilters.go @@ -0,0 +1,583 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// RouteFiltersClient is the network Client +type RouteFiltersClient struct { + BaseClient +} + +// NewRouteFiltersClient creates an instance of the RouteFiltersClient client. +func NewRouteFiltersClient(subscriptionID string) RouteFiltersClient { + return NewRouteFiltersClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client using a custom endpoint. Use +// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewRouteFiltersClientWithBaseURI(baseURI string, subscriptionID string) RouteFiltersClient { + return RouteFiltersClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a route filter in a specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// routeFilterName - the name of the route filter. +// routeFilterParameters - parameters supplied to the create or update route filter operation. +func (client RouteFiltersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, routeFilterName string, routeFilterParameters RouteFilter) (result RouteFiltersCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteFiltersClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, routeFilterName, routeFilterParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client RouteFiltersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, routeFilterName string, routeFilterParameters RouteFilter) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "routeFilterName": autorest.Encode("path", routeFilterName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + routeFilterParameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}", pathParameters), + autorest.WithJSON(routeFilterParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client RouteFiltersClient) CreateOrUpdateSender(req *http.Request) (future RouteFiltersCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client RouteFiltersClient) CreateOrUpdateResponder(resp *http.Response) (result RouteFilter, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified route filter. +// Parameters: +// resourceGroupName - the name of the resource group. +// routeFilterName - the name of the route filter. +func (client RouteFiltersClient) Delete(ctx context.Context, resourceGroupName string, routeFilterName string) (result RouteFiltersDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteFiltersClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, routeFilterName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client RouteFiltersClient) DeletePreparer(ctx context.Context, resourceGroupName string, routeFilterName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "routeFilterName": autorest.Encode("path", routeFilterName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client RouteFiltersClient) DeleteSender(req *http.Request) (future RouteFiltersDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client RouteFiltersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified route filter. +// Parameters: +// resourceGroupName - the name of the resource group. +// routeFilterName - the name of the route filter. +// expand - expands referenced express route bgp peering resources. +func (client RouteFiltersClient) Get(ctx context.Context, resourceGroupName string, routeFilterName string, expand string) (result RouteFilter, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteFiltersClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, routeFilterName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client RouteFiltersClient) GetPreparer(ctx context.Context, resourceGroupName string, routeFilterName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "routeFilterName": autorest.Encode("path", routeFilterName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client RouteFiltersClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client RouteFiltersClient) GetResponder(resp *http.Response) (result RouteFilter, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all route filters in a subscription. +func (client RouteFiltersClient) List(ctx context.Context) (result RouteFilterListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteFiltersClient.List") + defer func() { + sc := -1 + if result.rflr.Response.Response != nil { + sc = result.rflr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.rflr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure sending request") + return + } + + result.rflr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "List", resp, "Failure responding to request") + return + } + if result.rflr.hasNextLink() && result.rflr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client RouteFiltersClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/routeFilters", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client RouteFiltersClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client RouteFiltersClient) ListResponder(resp *http.Response) (result RouteFilterListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client RouteFiltersClient) listNextResults(ctx context.Context, lastResults RouteFilterListResult) (result RouteFilterListResult, err error) { + req, err := lastResults.routeFilterListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client RouteFiltersClient) ListComplete(ctx context.Context) (result RouteFilterListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteFiltersClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} + +// ListByResourceGroup gets all route filters in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client RouteFiltersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result RouteFilterListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteFiltersClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.rflr.Response.Response != nil { + sc = result.rflr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.rflr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.rflr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.rflr.hasNextLink() && result.rflr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client RouteFiltersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client RouteFiltersClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client RouteFiltersClient) ListByResourceGroupResponder(resp *http.Response) (result RouteFilterListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client RouteFiltersClient) listByResourceGroupNextResults(ctx context.Context, lastResults RouteFilterListResult) (result RouteFilterListResult, err error) { + req, err := lastResults.routeFilterListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client RouteFiltersClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result RouteFilterListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteFiltersClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// UpdateTags updates tags of a route filter. +// Parameters: +// resourceGroupName - the name of the resource group. +// routeFilterName - the name of the route filter. +// parameters - parameters supplied to update route filter tags. +func (client RouteFiltersClient) UpdateTags(ctx context.Context, resourceGroupName string, routeFilterName string, parameters TagsObject) (result RouteFilter, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteFiltersClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, routeFilterName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteFiltersClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client RouteFiltersClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, routeFilterName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "routeFilterName": autorest.Encode("path", routeFilterName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client RouteFiltersClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client RouteFiltersClient) UpdateTagsResponder(resp *http.Response) (result RouteFilter, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/routes.go b/services/network/mgmt/2020-07-01/network/routes.go new file mode 100644 index 000000000000..69add6a24693 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/routes.go @@ -0,0 +1,395 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// RoutesClient is the network Client +type RoutesClient struct { + BaseClient +} + +// NewRoutesClient creates an instance of the RoutesClient client. +func NewRoutesClient(subscriptionID string) RoutesClient { + return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when +// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient { + return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a route in the specified route table. +// Parameters: +// resourceGroupName - the name of the resource group. +// routeTableName - the name of the route table. +// routeName - the name of the route. +// routeParameters - parameters supplied to the create or update route operation. +func (client RoutesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, routeTableName string, routeName string, routeParameters Route) (result RoutesCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RoutesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, routeTableName, routeName, routeParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RoutesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RoutesClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client RoutesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, routeTableName string, routeName string, routeParameters Route) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "routeName": autorest.Encode("path", routeName), + "routeTableName": autorest.Encode("path", routeTableName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + routeParameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}", pathParameters), + autorest.WithJSON(routeParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client RoutesClient) CreateOrUpdateSender(req *http.Request) (future RoutesCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client RoutesClient) CreateOrUpdateResponder(resp *http.Response) (result Route, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified route from a route table. +// Parameters: +// resourceGroupName - the name of the resource group. +// routeTableName - the name of the route table. +// routeName - the name of the route. +func (client RoutesClient) Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result RoutesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RoutesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, routeTableName, routeName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RoutesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RoutesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client RoutesClient) DeletePreparer(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "routeName": autorest.Encode("path", routeName), + "routeTableName": autorest.Encode("path", routeTableName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client RoutesClient) DeleteSender(req *http.Request) (future RoutesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client RoutesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified route from a route table. +// Parameters: +// resourceGroupName - the name of the resource group. +// routeTableName - the name of the route table. +// routeName - the name of the route. +func (client RoutesClient) Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result Route, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RoutesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, routeTableName, routeName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RoutesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client RoutesClient) GetPreparer(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "routeName": autorest.Encode("path", routeName), + "routeTableName": autorest.Encode("path", routeTableName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client RoutesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client RoutesClient) GetResponder(resp *http.Response) (result Route, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all routes in a route table. +// Parameters: +// resourceGroupName - the name of the resource group. +// routeTableName - the name of the route table. +func (client RoutesClient) List(ctx context.Context, resourceGroupName string, routeTableName string) (result RouteListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RoutesClient.List") + defer func() { + sc := -1 + if result.rlr.Response.Response != nil { + sc = result.rlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, routeTableName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.rlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure sending request") + return + } + + result.rlr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RoutesClient", "List", resp, "Failure responding to request") + return + } + if result.rlr.hasNextLink() && result.rlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client RoutesClient) ListPreparer(ctx context.Context, resourceGroupName string, routeTableName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "routeTableName": autorest.Encode("path", routeTableName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client RoutesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client RoutesClient) ListResponder(resp *http.Response) (result RouteListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client RoutesClient) listNextResults(ctx context.Context, lastResults RouteListResult) (result RouteListResult, err error) { + req, err := lastResults.routeListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RoutesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client RoutesClient) ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result RouteListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RoutesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, routeTableName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/routetables.go b/services/network/mgmt/2020-07-01/network/routetables.go new file mode 100644 index 000000000000..728d8427ed12 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/routetables.go @@ -0,0 +1,583 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// RouteTablesClient is the network Client +type RouteTablesClient struct { + BaseClient +} + +// NewRouteTablesClient creates an instance of the RouteTablesClient client. +func NewRouteTablesClient(subscriptionID string) RouteTablesClient { + return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use +// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient { + return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate create or updates a route table in a specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// routeTableName - the name of the route table. +// parameters - parameters supplied to the create or update route table operation. +func (client RouteTablesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, routeTableName string, parameters RouteTable) (result RouteTablesCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteTablesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, routeTableName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client RouteTablesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, routeTableName string, parameters RouteTable) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "routeTableName": autorest.Encode("path", routeTableName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client RouteTablesClient) CreateOrUpdateSender(req *http.Request) (future RouteTablesCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client RouteTablesClient) CreateOrUpdateResponder(resp *http.Response) (result RouteTable, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified route table. +// Parameters: +// resourceGroupName - the name of the resource group. +// routeTableName - the name of the route table. +func (client RouteTablesClient) Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result RouteTablesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteTablesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, routeTableName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client RouteTablesClient) DeletePreparer(ctx context.Context, resourceGroupName string, routeTableName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "routeTableName": autorest.Encode("path", routeTableName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client RouteTablesClient) DeleteSender(req *http.Request) (future RouteTablesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client RouteTablesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified route table. +// Parameters: +// resourceGroupName - the name of the resource group. +// routeTableName - the name of the route table. +// expand - expands referenced resources. +func (client RouteTablesClient) Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result RouteTable, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteTablesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, routeTableName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client RouteTablesClient) GetPreparer(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "routeTableName": autorest.Encode("path", routeTableName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client RouteTablesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client RouteTablesClient) GetResponder(resp *http.Response) (result RouteTable, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all route tables in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client RouteTablesClient) List(ctx context.Context, resourceGroupName string) (result RouteTableListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteTablesClient.List") + defer func() { + sc := -1 + if result.rtlr.Response.Response != nil { + sc = result.rtlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.rtlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure sending request") + return + } + + result.rtlr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "List", resp, "Failure responding to request") + return + } + if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client RouteTablesClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client RouteTablesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client RouteTablesClient) ListResponder(resp *http.Response) (result RouteTableListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client RouteTablesClient) listNextResults(ctx context.Context, lastResults RouteTableListResult) (result RouteTableListResult, err error) { + req, err := lastResults.routeTableListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client RouteTablesClient) ListComplete(ctx context.Context, resourceGroupName string) (result RouteTableListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteTablesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName) + return +} + +// ListAll gets all route tables in a subscription. +func (client RouteTablesClient) ListAll(ctx context.Context) (result RouteTableListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteTablesClient.ListAll") + defer func() { + sc := -1 + if result.rtlr.Response.Response != nil { + sc = result.rtlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listAllNextResults + req, err := client.ListAllPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", nil, "Failure preparing request") + return + } + + resp, err := client.ListAllSender(req) + if err != nil { + result.rtlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure sending request") + return + } + + result.rtlr, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "ListAll", resp, "Failure responding to request") + return + } + if result.rtlr.hasNextLink() && result.rtlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListAllPreparer prepares the ListAll request. +func (client RouteTablesClient) ListAllPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/routeTables", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAllSender sends the ListAll request. The method will close the +// http.Response Body if it receives an error. +func (client RouteTablesClient) ListAllSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAllResponder handles the response to the ListAll request. The method always +// closes the http.Response Body. +func (client RouteTablesClient) ListAllResponder(resp *http.Response) (result RouteTableListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listAllNextResults retrieves the next set of results, if any. +func (client RouteTablesClient) listAllNextResults(ctx context.Context, lastResults RouteTableListResult) (result RouteTableListResult, err error) { + req, err := lastResults.routeTableListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListAllSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure sending next results request") + } + result, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "listAllNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListAllComplete enumerates all values, automatically crossing page boundaries as required. +func (client RouteTablesClient) ListAllComplete(ctx context.Context) (result RouteTableListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteTablesClient.ListAll") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListAll(ctx) + return +} + +// UpdateTags updates a route table tags. +// Parameters: +// resourceGroupName - the name of the resource group. +// routeTableName - the name of the route table. +// parameters - parameters supplied to update route table tags. +func (client RouteTablesClient) UpdateTags(ctx context.Context, resourceGroupName string, routeTableName string, parameters TagsObject) (result RouteTable, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RouteTablesClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, routeTableName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.RouteTablesClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client RouteTablesClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, routeTableName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "routeTableName": autorest.Encode("path", routeTableName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client RouteTablesClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client RouteTablesClient) UpdateTagsResponder(resp *http.Response) (result RouteTable, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/securitygroups.go b/services/network/mgmt/2020-07-01/network/securitygroups.go new file mode 100644 index 000000000000..a08bf8dc806f --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/securitygroups.go @@ -0,0 +1,583 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// SecurityGroupsClient is the network Client +type SecurityGroupsClient struct { + BaseClient +} + +// NewSecurityGroupsClient creates an instance of the SecurityGroupsClient client. +func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient { + return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient { + return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a network security group in the specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkSecurityGroupName - the name of the network security group. +// parameters - parameters supplied to the create or update network security group operation. +func (client SecurityGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, parameters SecurityGroup) (result SecurityGroupsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityGroupsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, networkSecurityGroupName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client SecurityGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, parameters SecurityGroup) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkSecurityGroupName": autorest.Encode("path", networkSecurityGroupName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client SecurityGroupsClient) CreateOrUpdateSender(req *http.Request) (future SecurityGroupsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client SecurityGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result SecurityGroup, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified network security group. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkSecurityGroupName - the name of the network security group. +func (client SecurityGroupsClient) Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result SecurityGroupsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityGroupsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, networkSecurityGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client SecurityGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkSecurityGroupName": autorest.Encode("path", networkSecurityGroupName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client SecurityGroupsClient) DeleteSender(req *http.Request) (future SecurityGroupsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client SecurityGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified network security group. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkSecurityGroupName - the name of the network security group. +// expand - expands referenced resources. +func (client SecurityGroupsClient) Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result SecurityGroup, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityGroupsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, networkSecurityGroupName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client SecurityGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkSecurityGroupName": autorest.Encode("path", networkSecurityGroupName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client SecurityGroupsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client SecurityGroupsClient) GetResponder(resp *http.Response) (result SecurityGroup, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all network security groups in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client SecurityGroupsClient) List(ctx context.Context, resourceGroupName string) (result SecurityGroupListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityGroupsClient.List") + defer func() { + sc := -1 + if result.sglr.Response.Response != nil { + sc = result.sglr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.sglr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure sending request") + return + } + + result.sglr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "List", resp, "Failure responding to request") + return + } + if result.sglr.hasNextLink() && result.sglr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client SecurityGroupsClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client SecurityGroupsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client SecurityGroupsClient) ListResponder(resp *http.Response) (result SecurityGroupListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client SecurityGroupsClient) listNextResults(ctx context.Context, lastResults SecurityGroupListResult) (result SecurityGroupListResult, err error) { + req, err := lastResults.securityGroupListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client SecurityGroupsClient) ListComplete(ctx context.Context, resourceGroupName string) (result SecurityGroupListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityGroupsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName) + return +} + +// ListAll gets all network security groups in a subscription. +func (client SecurityGroupsClient) ListAll(ctx context.Context) (result SecurityGroupListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityGroupsClient.ListAll") + defer func() { + sc := -1 + if result.sglr.Response.Response != nil { + sc = result.sglr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listAllNextResults + req, err := client.ListAllPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", nil, "Failure preparing request") + return + } + + resp, err := client.ListAllSender(req) + if err != nil { + result.sglr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure sending request") + return + } + + result.sglr, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "ListAll", resp, "Failure responding to request") + return + } + if result.sglr.hasNextLink() && result.sglr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListAllPreparer prepares the ListAll request. +func (client SecurityGroupsClient) ListAllPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkSecurityGroups", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAllSender sends the ListAll request. The method will close the +// http.Response Body if it receives an error. +func (client SecurityGroupsClient) ListAllSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAllResponder handles the response to the ListAll request. The method always +// closes the http.Response Body. +func (client SecurityGroupsClient) ListAllResponder(resp *http.Response) (result SecurityGroupListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listAllNextResults retrieves the next set of results, if any. +func (client SecurityGroupsClient) listAllNextResults(ctx context.Context, lastResults SecurityGroupListResult) (result SecurityGroupListResult, err error) { + req, err := lastResults.securityGroupListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListAllSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure sending next results request") + } + result, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListAllComplete enumerates all values, automatically crossing page boundaries as required. +func (client SecurityGroupsClient) ListAllComplete(ctx context.Context) (result SecurityGroupListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityGroupsClient.ListAll") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListAll(ctx) + return +} + +// UpdateTags updates a network security group tags. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkSecurityGroupName - the name of the network security group. +// parameters - parameters supplied to update network security group tags. +func (client SecurityGroupsClient) UpdateTags(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, parameters TagsObject) (result SecurityGroup, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityGroupsClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, networkSecurityGroupName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityGroupsClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client SecurityGroupsClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkSecurityGroupName": autorest.Encode("path", networkSecurityGroupName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client SecurityGroupsClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client SecurityGroupsClient) UpdateTagsResponder(resp *http.Response) (result SecurityGroup, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/securitypartnerproviders.go b/services/network/mgmt/2020-07-01/network/securitypartnerproviders.go new file mode 100644 index 000000000000..e524e817bd21 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/securitypartnerproviders.go @@ -0,0 +1,580 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// SecurityPartnerProvidersClient is the network Client +type SecurityPartnerProvidersClient struct { + BaseClient +} + +// NewSecurityPartnerProvidersClient creates an instance of the SecurityPartnerProvidersClient client. +func NewSecurityPartnerProvidersClient(subscriptionID string) SecurityPartnerProvidersClient { + return NewSecurityPartnerProvidersClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewSecurityPartnerProvidersClientWithBaseURI creates an instance of the SecurityPartnerProvidersClient client using +// a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign +// clouds, Azure stack). +func NewSecurityPartnerProvidersClientWithBaseURI(baseURI string, subscriptionID string) SecurityPartnerProvidersClient { + return SecurityPartnerProvidersClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates the specified Security Partner Provider. +// Parameters: +// resourceGroupName - the name of the resource group. +// securityPartnerProviderName - the name of the Security Partner Provider. +// parameters - parameters supplied to the create or update Security Partner Provider operation. +func (client SecurityPartnerProvidersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, securityPartnerProviderName string, parameters SecurityPartnerProvider) (result SecurityPartnerProvidersCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityPartnerProvidersClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, securityPartnerProviderName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client SecurityPartnerProvidersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, securityPartnerProviderName string, parameters SecurityPartnerProvider) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "securityPartnerProviderName": autorest.Encode("path", securityPartnerProviderName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/securityPartnerProviders/{securityPartnerProviderName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client SecurityPartnerProvidersClient) CreateOrUpdateSender(req *http.Request) (future SecurityPartnerProvidersCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client SecurityPartnerProvidersClient) CreateOrUpdateResponder(resp *http.Response) (result SecurityPartnerProvider, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified Security Partner Provider. +// Parameters: +// resourceGroupName - the name of the resource group. +// securityPartnerProviderName - the name of the Security Partner Provider. +func (client SecurityPartnerProvidersClient) Delete(ctx context.Context, resourceGroupName string, securityPartnerProviderName string) (result SecurityPartnerProvidersDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityPartnerProvidersClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, securityPartnerProviderName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client SecurityPartnerProvidersClient) DeletePreparer(ctx context.Context, resourceGroupName string, securityPartnerProviderName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "securityPartnerProviderName": autorest.Encode("path", securityPartnerProviderName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/securityPartnerProviders/{securityPartnerProviderName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client SecurityPartnerProvidersClient) DeleteSender(req *http.Request) (future SecurityPartnerProvidersDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client SecurityPartnerProvidersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified Security Partner Provider. +// Parameters: +// resourceGroupName - the name of the resource group. +// securityPartnerProviderName - the name of the Security Partner Provider. +func (client SecurityPartnerProvidersClient) Get(ctx context.Context, resourceGroupName string, securityPartnerProviderName string) (result SecurityPartnerProvider, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityPartnerProvidersClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, securityPartnerProviderName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client SecurityPartnerProvidersClient) GetPreparer(ctx context.Context, resourceGroupName string, securityPartnerProviderName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "securityPartnerProviderName": autorest.Encode("path", securityPartnerProviderName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/securityPartnerProviders/{securityPartnerProviderName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client SecurityPartnerProvidersClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client SecurityPartnerProvidersClient) GetResponder(resp *http.Response) (result SecurityPartnerProvider, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all the Security Partner Providers in a subscription. +func (client SecurityPartnerProvidersClient) List(ctx context.Context) (result SecurityPartnerProviderListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityPartnerProvidersClient.List") + defer func() { + sc := -1 + if result.spplr.Response.Response != nil { + sc = result.spplr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.spplr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "List", resp, "Failure sending request") + return + } + + result.spplr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "List", resp, "Failure responding to request") + return + } + if result.spplr.hasNextLink() && result.spplr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client SecurityPartnerProvidersClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/securityPartnerProviders", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client SecurityPartnerProvidersClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client SecurityPartnerProvidersClient) ListResponder(resp *http.Response) (result SecurityPartnerProviderListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client SecurityPartnerProvidersClient) listNextResults(ctx context.Context, lastResults SecurityPartnerProviderListResult) (result SecurityPartnerProviderListResult, err error) { + req, err := lastResults.securityPartnerProviderListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client SecurityPartnerProvidersClient) ListComplete(ctx context.Context) (result SecurityPartnerProviderListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityPartnerProvidersClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} + +// ListByResourceGroup lists all Security Partner Providers in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client SecurityPartnerProvidersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result SecurityPartnerProviderListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityPartnerProvidersClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.spplr.Response.Response != nil { + sc = result.spplr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.spplr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.spplr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.spplr.hasNextLink() && result.spplr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client SecurityPartnerProvidersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/securityPartnerProviders", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client SecurityPartnerProvidersClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client SecurityPartnerProvidersClient) ListByResourceGroupResponder(resp *http.Response) (result SecurityPartnerProviderListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client SecurityPartnerProvidersClient) listByResourceGroupNextResults(ctx context.Context, lastResults SecurityPartnerProviderListResult) (result SecurityPartnerProviderListResult, err error) { + req, err := lastResults.securityPartnerProviderListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client SecurityPartnerProvidersClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result SecurityPartnerProviderListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityPartnerProvidersClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// UpdateTags updates tags of a Security Partner Provider resource. +// Parameters: +// resourceGroupName - the name of the resource group. +// securityPartnerProviderName - the name of the Security Partner Provider. +// parameters - parameters supplied to update Security Partner Provider tags. +func (client SecurityPartnerProvidersClient) UpdateTags(ctx context.Context, resourceGroupName string, securityPartnerProviderName string, parameters TagsObject) (result SecurityPartnerProvider, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityPartnerProvidersClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, securityPartnerProviderName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityPartnerProvidersClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client SecurityPartnerProvidersClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, securityPartnerProviderName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "securityPartnerProviderName": autorest.Encode("path", securityPartnerProviderName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/securityPartnerProviders/{securityPartnerProviderName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client SecurityPartnerProvidersClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client SecurityPartnerProvidersClient) UpdateTagsResponder(resp *http.Response) (result SecurityPartnerProvider, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/securityrules.go b/services/network/mgmt/2020-07-01/network/securityrules.go new file mode 100644 index 000000000000..617721874371 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/securityrules.go @@ -0,0 +1,395 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// SecurityRulesClient is the network Client +type SecurityRulesClient struct { + BaseClient +} + +// NewSecurityRulesClient creates an instance of the SecurityRulesClient client. +func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient { + return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient { + return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a security rule in the specified network security group. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkSecurityGroupName - the name of the network security group. +// securityRuleName - the name of the security rule. +// securityRuleParameters - parameters supplied to the create or update network security rule operation. +func (client SecurityRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string, securityRuleParameters SecurityRule) (result SecurityRulesCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityRulesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, networkSecurityGroupName, securityRuleName, securityRuleParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client SecurityRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string, securityRuleParameters SecurityRule) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkSecurityGroupName": autorest.Encode("path", networkSecurityGroupName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "securityRuleName": autorest.Encode("path", securityRuleName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + securityRuleParameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}", pathParameters), + autorest.WithJSON(securityRuleParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client SecurityRulesClient) CreateOrUpdateSender(req *http.Request) (future SecurityRulesCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client SecurityRulesClient) CreateOrUpdateResponder(resp *http.Response) (result SecurityRule, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified network security rule. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkSecurityGroupName - the name of the network security group. +// securityRuleName - the name of the security rule. +func (client SecurityRulesClient) Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result SecurityRulesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityRulesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, networkSecurityGroupName, securityRuleName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client SecurityRulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkSecurityGroupName": autorest.Encode("path", networkSecurityGroupName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "securityRuleName": autorest.Encode("path", securityRuleName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client SecurityRulesClient) DeleteSender(req *http.Request) (future SecurityRulesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client SecurityRulesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get get the specified network security rule. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkSecurityGroupName - the name of the network security group. +// securityRuleName - the name of the security rule. +func (client SecurityRulesClient) Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result SecurityRule, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityRulesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, networkSecurityGroupName, securityRuleName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client SecurityRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkSecurityGroupName": autorest.Encode("path", networkSecurityGroupName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "securityRuleName": autorest.Encode("path", securityRuleName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client SecurityRulesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client SecurityRulesClient) GetResponder(resp *http.Response) (result SecurityRule, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all security rules in a network security group. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkSecurityGroupName - the name of the network security group. +func (client SecurityRulesClient) List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result SecurityRuleListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityRulesClient.List") + defer func() { + sc := -1 + if result.srlr.Response.Response != nil { + sc = result.srlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, networkSecurityGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.srlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure sending request") + return + } + + result.srlr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "List", resp, "Failure responding to request") + return + } + if result.srlr.hasNextLink() && result.srlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client SecurityRulesClient) ListPreparer(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkSecurityGroupName": autorest.Encode("path", networkSecurityGroupName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client SecurityRulesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client SecurityRulesClient) ListResponder(resp *http.Response) (result SecurityRuleListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client SecurityRulesClient) listNextResults(ctx context.Context, lastResults SecurityRuleListResult) (result SecurityRuleListResult, err error) { + req, err := lastResults.securityRuleListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SecurityRulesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client SecurityRulesClient) ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result SecurityRuleListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityRulesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, networkSecurityGroupName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/serviceassociationlinks.go b/services/network/mgmt/2020-07-01/network/serviceassociationlinks.go new file mode 100644 index 000000000000..f0f1661ec87e --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/serviceassociationlinks.go @@ -0,0 +1,121 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ServiceAssociationLinksClient is the network Client +type ServiceAssociationLinksClient struct { + BaseClient +} + +// NewServiceAssociationLinksClient creates an instance of the ServiceAssociationLinksClient client. +func NewServiceAssociationLinksClient(subscriptionID string) ServiceAssociationLinksClient { + return NewServiceAssociationLinksClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewServiceAssociationLinksClientWithBaseURI creates an instance of the ServiceAssociationLinksClient client using a +// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, +// Azure stack). +func NewServiceAssociationLinksClientWithBaseURI(baseURI string, subscriptionID string) ServiceAssociationLinksClient { + return ServiceAssociationLinksClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List gets a list of service association links for a subnet. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkName - the name of the virtual network. +// subnetName - the name of the subnet. +func (client ServiceAssociationLinksClient) List(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result ServiceAssociationLinksListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ServiceAssociationLinksClient.List") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListPreparer(ctx, resourceGroupName, virtualNetworkName, subnetName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceAssociationLinksClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ServiceAssociationLinksClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceAssociationLinksClient", "List", resp, "Failure responding to request") + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ServiceAssociationLinksClient) ListPreparer(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subnetName": autorest.Encode("path", subnetName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkName": autorest.Encode("path", virtualNetworkName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/ServiceAssociationLinks", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ServiceAssociationLinksClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ServiceAssociationLinksClient) ListResponder(resp *http.Response) (result ServiceAssociationLinksListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/serviceendpointpolicies.go b/services/network/mgmt/2020-07-01/network/serviceendpointpolicies.go new file mode 100644 index 000000000000..37a290aafbb9 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/serviceendpointpolicies.go @@ -0,0 +1,584 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ServiceEndpointPoliciesClient is the network Client +type ServiceEndpointPoliciesClient struct { + BaseClient +} + +// NewServiceEndpointPoliciesClient creates an instance of the ServiceEndpointPoliciesClient client. +func NewServiceEndpointPoliciesClient(subscriptionID string) ServiceEndpointPoliciesClient { + return NewServiceEndpointPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewServiceEndpointPoliciesClientWithBaseURI creates an instance of the ServiceEndpointPoliciesClient client using a +// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, +// Azure stack). +func NewServiceEndpointPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ServiceEndpointPoliciesClient { + return ServiceEndpointPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a service Endpoint Policies. +// Parameters: +// resourceGroupName - the name of the resource group. +// serviceEndpointPolicyName - the name of the service endpoint policy. +// parameters - parameters supplied to the create or update service endpoint policy operation. +func (client ServiceEndpointPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, parameters ServiceEndpointPolicy) (result ServiceEndpointPoliciesCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ServiceEndpointPoliciesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceEndpointPolicyName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client ServiceEndpointPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, parameters ServiceEndpointPolicy) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceEndpointPolicyName": autorest.Encode("path", serviceEndpointPolicyName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client ServiceEndpointPoliciesClient) CreateOrUpdateSender(req *http.Request) (future ServiceEndpointPoliciesCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client ServiceEndpointPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result ServiceEndpointPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified service endpoint policy. +// Parameters: +// resourceGroupName - the name of the resource group. +// serviceEndpointPolicyName - the name of the service endpoint policy. +func (client ServiceEndpointPoliciesClient) Delete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result ServiceEndpointPoliciesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ServiceEndpointPoliciesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, serviceEndpointPolicyName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client ServiceEndpointPoliciesClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceEndpointPolicyName": autorest.Encode("path", serviceEndpointPolicyName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client ServiceEndpointPoliciesClient) DeleteSender(req *http.Request) (future ServiceEndpointPoliciesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client ServiceEndpointPoliciesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified service Endpoint Policies in a specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// serviceEndpointPolicyName - the name of the service endpoint policy. +// expand - expands referenced resources. +func (client ServiceEndpointPoliciesClient) Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, expand string) (result ServiceEndpointPolicy, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ServiceEndpointPoliciesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, serviceEndpointPolicyName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ServiceEndpointPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceEndpointPolicyName": autorest.Encode("path", serviceEndpointPolicyName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ServiceEndpointPoliciesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ServiceEndpointPoliciesClient) GetResponder(resp *http.Response) (result ServiceEndpointPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all the service endpoint policies in a subscription. +func (client ServiceEndpointPoliciesClient) List(ctx context.Context) (result ServiceEndpointPolicyListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ServiceEndpointPoliciesClient.List") + defer func() { + sc := -1 + if result.seplr.Response.Response != nil { + sc = result.seplr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.seplr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "List", resp, "Failure sending request") + return + } + + result.seplr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "List", resp, "Failure responding to request") + return + } + if result.seplr.hasNextLink() && result.seplr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ServiceEndpointPoliciesClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ServiceEndpointPolicies", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ServiceEndpointPoliciesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ServiceEndpointPoliciesClient) ListResponder(resp *http.Response) (result ServiceEndpointPolicyListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client ServiceEndpointPoliciesClient) listNextResults(ctx context.Context, lastResults ServiceEndpointPolicyListResult) (result ServiceEndpointPolicyListResult, err error) { + req, err := lastResults.serviceEndpointPolicyListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ServiceEndpointPoliciesClient) ListComplete(ctx context.Context) (result ServiceEndpointPolicyListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ServiceEndpointPoliciesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} + +// ListByResourceGroup gets all service endpoint Policies in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ServiceEndpointPolicyListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ServiceEndpointPoliciesClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.seplr.Response.Response != nil { + sc = result.seplr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.seplr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.seplr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.seplr.hasNextLink() && result.seplr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client ServiceEndpointPoliciesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client ServiceEndpointPoliciesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client ServiceEndpointPoliciesClient) ListByResourceGroupResponder(resp *http.Response) (result ServiceEndpointPolicyListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client ServiceEndpointPoliciesClient) listByResourceGroupNextResults(ctx context.Context, lastResults ServiceEndpointPolicyListResult) (result ServiceEndpointPolicyListResult, err error) { + req, err := lastResults.serviceEndpointPolicyListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client ServiceEndpointPoliciesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ServiceEndpointPolicyListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ServiceEndpointPoliciesClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// UpdateTags updates tags of a service endpoint policy. +// Parameters: +// resourceGroupName - the name of the resource group. +// serviceEndpointPolicyName - the name of the service endpoint policy. +// parameters - parameters supplied to update service endpoint policy tags. +func (client ServiceEndpointPoliciesClient) UpdateTags(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, parameters TagsObject) (result ServiceEndpointPolicy, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ServiceEndpointPoliciesClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, serviceEndpointPolicyName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client ServiceEndpointPoliciesClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceEndpointPolicyName": autorest.Encode("path", serviceEndpointPolicyName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client ServiceEndpointPoliciesClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client ServiceEndpointPoliciesClient) UpdateTagsResponder(resp *http.Response) (result ServiceEndpointPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2020-07-01/network/serviceendpointpolicydefinitions.go new file mode 100644 index 000000000000..9b938efff636 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/serviceendpointpolicydefinitions.go @@ -0,0 +1,397 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ServiceEndpointPolicyDefinitionsClient is the network Client +type ServiceEndpointPolicyDefinitionsClient struct { + BaseClient +} + +// NewServiceEndpointPolicyDefinitionsClient creates an instance of the ServiceEndpointPolicyDefinitionsClient client. +func NewServiceEndpointPolicyDefinitionsClient(subscriptionID string) ServiceEndpointPolicyDefinitionsClient { + return NewServiceEndpointPolicyDefinitionsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewServiceEndpointPolicyDefinitionsClientWithBaseURI creates an instance of the +// ServiceEndpointPolicyDefinitionsClient client using a custom endpoint. Use this when interacting with an Azure +// cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewServiceEndpointPolicyDefinitionsClientWithBaseURI(baseURI string, subscriptionID string) ServiceEndpointPolicyDefinitionsClient { + return ServiceEndpointPolicyDefinitionsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a service endpoint policy definition in the specified service endpoint policy. +// Parameters: +// resourceGroupName - the name of the resource group. +// serviceEndpointPolicyName - the name of the service endpoint policy. +// serviceEndpointPolicyDefinitionName - the name of the service endpoint policy definition name. +// serviceEndpointPolicyDefinitions - parameters supplied to the create or update service endpoint policy +// operation. +func (client ServiceEndpointPolicyDefinitionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string, serviceEndpointPolicyDefinitions ServiceEndpointPolicyDefinition) (result ServiceEndpointPolicyDefinitionsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ServiceEndpointPolicyDefinitionsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName, serviceEndpointPolicyDefinitions) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client ServiceEndpointPolicyDefinitionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string, serviceEndpointPolicyDefinitions ServiceEndpointPolicyDefinition) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceEndpointPolicyDefinitionName": autorest.Encode("path", serviceEndpointPolicyDefinitionName), + "serviceEndpointPolicyName": autorest.Encode("path", serviceEndpointPolicyName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + serviceEndpointPolicyDefinitions.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}/serviceEndpointPolicyDefinitions/{serviceEndpointPolicyDefinitionName}", pathParameters), + autorest.WithJSON(serviceEndpointPolicyDefinitions), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client ServiceEndpointPolicyDefinitionsClient) CreateOrUpdateSender(req *http.Request) (future ServiceEndpointPolicyDefinitionsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client ServiceEndpointPolicyDefinitionsClient) CreateOrUpdateResponder(resp *http.Response) (result ServiceEndpointPolicyDefinition, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified ServiceEndpoint policy definitions. +// Parameters: +// resourceGroupName - the name of the resource group. +// serviceEndpointPolicyName - the name of the Service Endpoint Policy. +// serviceEndpointPolicyDefinitionName - the name of the service endpoint policy definition. +func (client ServiceEndpointPolicyDefinitionsClient) Delete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (result ServiceEndpointPolicyDefinitionsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ServiceEndpointPolicyDefinitionsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client ServiceEndpointPolicyDefinitionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceEndpointPolicyDefinitionName": autorest.Encode("path", serviceEndpointPolicyDefinitionName), + "serviceEndpointPolicyName": autorest.Encode("path", serviceEndpointPolicyName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}/serviceEndpointPolicyDefinitions/{serviceEndpointPolicyDefinitionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client ServiceEndpointPolicyDefinitionsClient) DeleteSender(req *http.Request) (future ServiceEndpointPolicyDefinitionsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client ServiceEndpointPolicyDefinitionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get get the specified service endpoint policy definitions from service endpoint policy. +// Parameters: +// resourceGroupName - the name of the resource group. +// serviceEndpointPolicyName - the name of the service endpoint policy name. +// serviceEndpointPolicyDefinitionName - the name of the service endpoint policy definition name. +func (client ServiceEndpointPolicyDefinitionsClient) Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (result ServiceEndpointPolicyDefinition, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ServiceEndpointPolicyDefinitionsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ServiceEndpointPolicyDefinitionsClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceEndpointPolicyDefinitionName": autorest.Encode("path", serviceEndpointPolicyDefinitionName), + "serviceEndpointPolicyName": autorest.Encode("path", serviceEndpointPolicyName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}/serviceEndpointPolicyDefinitions/{serviceEndpointPolicyDefinitionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ServiceEndpointPolicyDefinitionsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ServiceEndpointPolicyDefinitionsClient) GetResponder(resp *http.Response) (result ServiceEndpointPolicyDefinition, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByResourceGroup gets all service endpoint policy definitions in a service end point policy. +// Parameters: +// resourceGroupName - the name of the resource group. +// serviceEndpointPolicyName - the name of the service endpoint policy name. +func (client ServiceEndpointPolicyDefinitionsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result ServiceEndpointPolicyDefinitionListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ServiceEndpointPolicyDefinitionsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.sepdlr.Response.Response != nil { + sc = result.sepdlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName, serviceEndpointPolicyName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.sepdlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.sepdlr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.sepdlr.hasNextLink() && result.sepdlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client ServiceEndpointPolicyDefinitionsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceEndpointPolicyName": autorest.Encode("path", serviceEndpointPolicyName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}/serviceEndpointPolicyDefinitions", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client ServiceEndpointPolicyDefinitionsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client ServiceEndpointPolicyDefinitionsClient) ListByResourceGroupResponder(resp *http.Response) (result ServiceEndpointPolicyDefinitionListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client ServiceEndpointPolicyDefinitionsClient) listByResourceGroupNextResults(ctx context.Context, lastResults ServiceEndpointPolicyDefinitionListResult) (result ServiceEndpointPolicyDefinitionListResult, err error) { + req, err := lastResults.serviceEndpointPolicyDefinitionListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client ServiceEndpointPolicyDefinitionsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result ServiceEndpointPolicyDefinitionListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ServiceEndpointPolicyDefinitionsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName, serviceEndpointPolicyName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/servicetags.go b/services/network/mgmt/2020-07-01/network/servicetags.go new file mode 100644 index 000000000000..8147e15d84a4 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/servicetags.go @@ -0,0 +1,118 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ServiceTagsClient is the network Client +type ServiceTagsClient struct { + BaseClient +} + +// NewServiceTagsClient creates an instance of the ServiceTagsClient client. +func NewServiceTagsClient(subscriptionID string) ServiceTagsClient { + return NewServiceTagsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewServiceTagsClientWithBaseURI creates an instance of the ServiceTagsClient client using a custom endpoint. Use +// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewServiceTagsClientWithBaseURI(baseURI string, subscriptionID string) ServiceTagsClient { + return ServiceTagsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List gets a list of service tag information resources. +// Parameters: +// location - the location that will be used as a reference for version (not as a filter based on location, you +// will get the list of service tags with prefix details across all regions but limited to the cloud that your +// subscription belongs to). +func (client ServiceTagsClient) List(ctx context.Context, location string) (result ServiceTagsListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ServiceTagsClient.List") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListPreparer(ctx, location) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceTagsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.ServiceTagsClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.ServiceTagsClient", "List", resp, "Failure responding to request") + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ServiceTagsClient) ListPreparer(ctx context.Context, location string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "location": autorest.Encode("path", location), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/serviceTags", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ServiceTagsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ServiceTagsClient) ListResponder(resp *http.Response) (result ServiceTagsListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/subnets.go b/services/network/mgmt/2020-07-01/network/subnets.go new file mode 100644 index 000000000000..8443b5443d67 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/subnets.go @@ -0,0 +1,559 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// SubnetsClient is the network Client +type SubnetsClient struct { + BaseClient +} + +// NewSubnetsClient creates an instance of the SubnetsClient client. +func NewSubnetsClient(subscriptionID string) SubnetsClient { + return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when +// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient { + return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a subnet in the specified virtual network. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkName - the name of the virtual network. +// subnetName - the name of the subnet. +// subnetParameters - parameters supplied to the create or update subnet operation. +func (client SubnetsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, subnetParameters Subnet) (result SubnetsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubnetsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, virtualNetworkName, subnetName, subnetParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SubnetsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SubnetsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client SubnetsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, subnetParameters Subnet) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subnetName": autorest.Encode("path", subnetName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkName": autorest.Encode("path", virtualNetworkName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + subnetParameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}", pathParameters), + autorest.WithJSON(subnetParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client SubnetsClient) CreateOrUpdateSender(req *http.Request) (future SubnetsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client SubnetsClient) CreateOrUpdateResponder(resp *http.Response) (result Subnet, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified subnet. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkName - the name of the virtual network. +// subnetName - the name of the subnet. +func (client SubnetsClient) Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result SubnetsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubnetsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, virtualNetworkName, subnetName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client SubnetsClient) DeletePreparer(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subnetName": autorest.Encode("path", subnetName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkName": autorest.Encode("path", virtualNetworkName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client SubnetsClient) DeleteSender(req *http.Request) (future SubnetsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client SubnetsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified subnet by virtual network and resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkName - the name of the virtual network. +// subnetName - the name of the subnet. +// expand - expands referenced resources. +func (client SubnetsClient) Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result Subnet, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubnetsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, virtualNetworkName, subnetName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SubnetsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client SubnetsClient) GetPreparer(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subnetName": autorest.Encode("path", subnetName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkName": autorest.Encode("path", virtualNetworkName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client SubnetsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client SubnetsClient) GetResponder(resp *http.Response) (result Subnet, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all subnets in a virtual network. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkName - the name of the virtual network. +func (client SubnetsClient) List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result SubnetListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubnetsClient.List") + defer func() { + sc := -1 + if result.slr.Response.Response != nil { + sc = result.slr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, virtualNetworkName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.slr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure sending request") + return + } + + result.slr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SubnetsClient", "List", resp, "Failure responding to request") + return + } + if result.slr.hasNextLink() && result.slr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client SubnetsClient) ListPreparer(ctx context.Context, resourceGroupName string, virtualNetworkName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkName": autorest.Encode("path", virtualNetworkName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client SubnetsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client SubnetsClient) ListResponder(resp *http.Response) (result SubnetListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client SubnetsClient) listNextResults(ctx context.Context, lastResults SubnetListResult) (result SubnetListResult, err error) { + req, err := lastResults.subnetListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SubnetsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client SubnetsClient) ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result SubnetListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubnetsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, virtualNetworkName) + return +} + +// PrepareNetworkPolicies prepares a subnet by applying network intent policies. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkName - the name of the virtual network. +// subnetName - the name of the subnet. +// prepareNetworkPoliciesRequestParameters - parameters supplied to prepare subnet by applying network intent +// policies. +func (client SubnetsClient) PrepareNetworkPolicies(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, prepareNetworkPoliciesRequestParameters PrepareNetworkPoliciesRequest) (result SubnetsPrepareNetworkPoliciesFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubnetsClient.PrepareNetworkPolicies") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.PrepareNetworkPoliciesPreparer(ctx, resourceGroupName, virtualNetworkName, subnetName, prepareNetworkPoliciesRequestParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SubnetsClient", "PrepareNetworkPolicies", nil, "Failure preparing request") + return + } + + result, err = client.PrepareNetworkPoliciesSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SubnetsClient", "PrepareNetworkPolicies", result.Response(), "Failure sending request") + return + } + + return +} + +// PrepareNetworkPoliciesPreparer prepares the PrepareNetworkPolicies request. +func (client SubnetsClient) PrepareNetworkPoliciesPreparer(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, prepareNetworkPoliciesRequestParameters PrepareNetworkPoliciesRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subnetName": autorest.Encode("path", subnetName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkName": autorest.Encode("path", virtualNetworkName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/PrepareNetworkPolicies", pathParameters), + autorest.WithJSON(prepareNetworkPoliciesRequestParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// PrepareNetworkPoliciesSender sends the PrepareNetworkPolicies request. The method will close the +// http.Response Body if it receives an error. +func (client SubnetsClient) PrepareNetworkPoliciesSender(req *http.Request) (future SubnetsPrepareNetworkPoliciesFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// PrepareNetworkPoliciesResponder handles the response to the PrepareNetworkPolicies request. The method always +// closes the http.Response Body. +func (client SubnetsClient) PrepareNetworkPoliciesResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// UnprepareNetworkPolicies unprepares a subnet by removing network intent policies. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkName - the name of the virtual network. +// subnetName - the name of the subnet. +// unprepareNetworkPoliciesRequestParameters - parameters supplied to unprepare subnet to remove network intent +// policies. +func (client SubnetsClient) UnprepareNetworkPolicies(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, unprepareNetworkPoliciesRequestParameters UnprepareNetworkPoliciesRequest) (result SubnetsUnprepareNetworkPoliciesFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubnetsClient.UnprepareNetworkPolicies") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UnprepareNetworkPoliciesPreparer(ctx, resourceGroupName, virtualNetworkName, subnetName, unprepareNetworkPoliciesRequestParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SubnetsClient", "UnprepareNetworkPolicies", nil, "Failure preparing request") + return + } + + result, err = client.UnprepareNetworkPoliciesSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.SubnetsClient", "UnprepareNetworkPolicies", result.Response(), "Failure sending request") + return + } + + return +} + +// UnprepareNetworkPoliciesPreparer prepares the UnprepareNetworkPolicies request. +func (client SubnetsClient) UnprepareNetworkPoliciesPreparer(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, unprepareNetworkPoliciesRequestParameters UnprepareNetworkPoliciesRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subnetName": autorest.Encode("path", subnetName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkName": autorest.Encode("path", virtualNetworkName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/UnprepareNetworkPolicies", pathParameters), + autorest.WithJSON(unprepareNetworkPoliciesRequestParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UnprepareNetworkPoliciesSender sends the UnprepareNetworkPolicies request. The method will close the +// http.Response Body if it receives an error. +func (client SubnetsClient) UnprepareNetworkPoliciesSender(req *http.Request) (future SubnetsUnprepareNetworkPoliciesFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// UnprepareNetworkPoliciesResponder handles the response to the UnprepareNetworkPolicies request. The method always +// closes the http.Response Body. +func (client SubnetsClient) UnprepareNetworkPoliciesResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} diff --git a/services/network/mgmt/2020-07-01/network/usages.go b/services/network/mgmt/2020-07-01/network/usages.go new file mode 100644 index 000000000000..0f65c10e77c5 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/usages.go @@ -0,0 +1,165 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// UsagesClient is the network Client +type UsagesClient struct { + BaseClient +} + +// NewUsagesClient creates an instance of the UsagesClient client. +func NewUsagesClient(subscriptionID string) UsagesClient { + return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when +// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient { + return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List list network usages for a subscription. +// Parameters: +// location - the location where resource usage is queried. +func (client UsagesClient) List(ctx context.Context, location string) (result UsagesListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/UsagesClient.List") + defer func() { + sc := -1 + if result.ulr.Response.Response != nil { + sc = result.ulr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: location, + Constraints: []validation.Constraint{{Target: "location", Name: validation.Pattern, Rule: `^[-\w\._ ]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("network.UsagesClient", "List", err.Error()) + } + + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, location) + if err != nil { + err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.ulr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure sending request") + return + } + + result.ulr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.UsagesClient", "List", resp, "Failure responding to request") + return + } + if result.ulr.hasNextLink() && result.ulr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client UsagesClient) ListPreparer(ctx context.Context, location string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "location": autorest.Encode("path", location), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/usages", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client UsagesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client UsagesClient) ListResponder(resp *http.Response) (result UsagesListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client UsagesClient) listNextResults(ctx context.Context, lastResults UsagesListResult) (result UsagesListResult, err error) { + req, err := lastResults.usagesListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client UsagesClient) ListComplete(ctx context.Context, location string) (result UsagesListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/UsagesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, location) + return +} diff --git a/services/network/mgmt/2020-07-01/network/version.go b/services/network/mgmt/2020-07-01/network/version.go new file mode 100644 index 000000000000..cdd5d308a29b --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/version.go @@ -0,0 +1,30 @@ +package network + +import "github.com/Azure/azure-sdk-for-go/version" + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UserAgent returns the UserAgent string to use when sending http.Requests. +func UserAgent() string { + return "Azure-SDK-For-Go/" + Version() + " network/2020-07-01" +} + +// Version returns the semantic version (see http://semver.org) of the client. +func Version() string { + return version.Number +} diff --git a/services/network/mgmt/2020-07-01/network/virtualappliances.go b/services/network/mgmt/2020-07-01/network/virtualappliances.go new file mode 100644 index 000000000000..3595d011f0f7 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/virtualappliances.go @@ -0,0 +1,596 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// VirtualAppliancesClient is the network Client +type VirtualAppliancesClient struct { + BaseClient +} + +// NewVirtualAppliancesClient creates an instance of the VirtualAppliancesClient client. +func NewVirtualAppliancesClient(subscriptionID string) VirtualAppliancesClient { + return NewVirtualAppliancesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewVirtualAppliancesClientWithBaseURI creates an instance of the VirtualAppliancesClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewVirtualAppliancesClientWithBaseURI(baseURI string, subscriptionID string) VirtualAppliancesClient { + return VirtualAppliancesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates the specified Network Virtual Appliance. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkVirtualApplianceName - the name of Network Virtual Appliance. +// parameters - parameters supplied to the create or update Network Virtual Appliance. +func (client VirtualAppliancesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, parameters VirtualAppliance) (result VirtualAppliancesCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualAppliancesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.VirtualAppliancePropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualAppliancePropertiesFormat.VirtualApplianceAsn", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualAppliancePropertiesFormat.VirtualApplianceAsn", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, + {Target: "parameters.VirtualAppliancePropertiesFormat.VirtualApplianceAsn", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + }}, + }}}}}); err != nil { + return result, validation.NewError("network.VirtualAppliancesClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, networkVirtualApplianceName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client VirtualAppliancesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, parameters VirtualAppliance) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkVirtualApplianceName": autorest.Encode("path", networkVirtualApplianceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualAppliancesClient) CreateOrUpdateSender(req *http.Request) (future VirtualAppliancesCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client VirtualAppliancesClient) CreateOrUpdateResponder(resp *http.Response) (result VirtualAppliance, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified Network Virtual Appliance. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkVirtualApplianceName - the name of Network Virtual Appliance. +func (client VirtualAppliancesClient) Delete(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string) (result VirtualAppliancesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualAppliancesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, networkVirtualApplianceName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client VirtualAppliancesClient) DeletePreparer(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkVirtualApplianceName": autorest.Encode("path", networkVirtualApplianceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualAppliancesClient) DeleteSender(req *http.Request) (future VirtualAppliancesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client VirtualAppliancesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified Network Virtual Appliance. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkVirtualApplianceName - the name of Network Virtual Appliance. +// expand - expands referenced resources. +func (client VirtualAppliancesClient) Get(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, expand string) (result VirtualAppliance, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualAppliancesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, networkVirtualApplianceName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client VirtualAppliancesClient) GetPreparer(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkVirtualApplianceName": autorest.Encode("path", networkVirtualApplianceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualAppliancesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client VirtualAppliancesClient) GetResponder(resp *http.Response) (result VirtualAppliance, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all Network Virtual Appliances in a subscription. +func (client VirtualAppliancesClient) List(ctx context.Context) (result VirtualApplianceListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualAppliancesClient.List") + defer func() { + sc := -1 + if result.valr.Response.Response != nil { + sc = result.valr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.valr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "List", resp, "Failure sending request") + return + } + + result.valr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "List", resp, "Failure responding to request") + return + } + if result.valr.hasNextLink() && result.valr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client VirtualAppliancesClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkVirtualAppliances", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualAppliancesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client VirtualAppliancesClient) ListResponder(resp *http.Response) (result VirtualApplianceListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client VirtualAppliancesClient) listNextResults(ctx context.Context, lastResults VirtualApplianceListResult) (result VirtualApplianceListResult, err error) { + req, err := lastResults.virtualApplianceListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client VirtualAppliancesClient) ListComplete(ctx context.Context) (result VirtualApplianceListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualAppliancesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} + +// ListByResourceGroup lists all Network Virtual Appliances in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client VirtualAppliancesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result VirtualApplianceListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualAppliancesClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.valr.Response.Response != nil { + sc = result.valr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.valr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.valr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.valr.hasNextLink() && result.valr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client VirtualAppliancesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualAppliancesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client VirtualAppliancesClient) ListByResourceGroupResponder(resp *http.Response) (result VirtualApplianceListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client VirtualAppliancesClient) listByResourceGroupNextResults(ctx context.Context, lastResults VirtualApplianceListResult) (result VirtualApplianceListResult, err error) { + req, err := lastResults.virtualApplianceListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client VirtualAppliancesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result VirtualApplianceListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualAppliancesClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// UpdateTags updates a Network Virtual Appliance. +// Parameters: +// resourceGroupName - the resource group name of Network Virtual Appliance. +// networkVirtualApplianceName - the name of Network Virtual Appliance being updated. +// parameters - parameters supplied to Update Network Virtual Appliance Tags. +func (client VirtualAppliancesClient) UpdateTags(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, parameters TagsObject) (result VirtualAppliance, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualAppliancesClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, networkVirtualApplianceName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualAppliancesClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client VirtualAppliancesClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkVirtualApplianceName": autorest.Encode("path", networkVirtualApplianceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualAppliancesClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client VirtualAppliancesClient) UpdateTagsResponder(resp *http.Response) (result VirtualAppliance, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/virtualappliancesites.go b/services/network/mgmt/2020-07-01/network/virtualappliancesites.go new file mode 100644 index 000000000000..18773d92c29d --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/virtualappliancesites.go @@ -0,0 +1,397 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// VirtualApplianceSitesClient is the network Client +type VirtualApplianceSitesClient struct { + BaseClient +} + +// NewVirtualApplianceSitesClient creates an instance of the VirtualApplianceSitesClient client. +func NewVirtualApplianceSitesClient(subscriptionID string) VirtualApplianceSitesClient { + return NewVirtualApplianceSitesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewVirtualApplianceSitesClientWithBaseURI creates an instance of the VirtualApplianceSitesClient client using a +// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, +// Azure stack). +func NewVirtualApplianceSitesClientWithBaseURI(baseURI string, subscriptionID string) VirtualApplianceSitesClient { + return VirtualApplianceSitesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates the specified Network Virtual Appliance Site. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkVirtualApplianceName - the name of the Network Virtual Appliance. +// siteName - the name of the site. +// parameters - parameters supplied to the create or update Network Virtual Appliance Site operation. +func (client VirtualApplianceSitesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, siteName string, parameters VirtualApplianceSite) (result VirtualApplianceSitesCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualApplianceSitesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, networkVirtualApplianceName, siteName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualApplianceSitesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualApplianceSitesClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client VirtualApplianceSitesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, siteName string, parameters VirtualApplianceSite) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkVirtualApplianceName": autorest.Encode("path", networkVirtualApplianceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "siteName": autorest.Encode("path", siteName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + parameters.Type = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/virtualApplianceSites/{siteName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualApplianceSitesClient) CreateOrUpdateSender(req *http.Request) (future VirtualApplianceSitesCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client VirtualApplianceSitesClient) CreateOrUpdateResponder(resp *http.Response) (result VirtualApplianceSite, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified site from a Virtual Appliance. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkVirtualApplianceName - the name of the Network Virtual Appliance. +// siteName - the name of the site. +func (client VirtualApplianceSitesClient) Delete(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, siteName string) (result VirtualApplianceSitesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualApplianceSitesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, networkVirtualApplianceName, siteName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualApplianceSitesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualApplianceSitesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client VirtualApplianceSitesClient) DeletePreparer(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, siteName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkVirtualApplianceName": autorest.Encode("path", networkVirtualApplianceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "siteName": autorest.Encode("path", siteName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/virtualApplianceSites/{siteName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualApplianceSitesClient) DeleteSender(req *http.Request) (future VirtualApplianceSitesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client VirtualApplianceSitesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified Virtual Appliance Site. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkVirtualApplianceName - the name of the Network Virtual Appliance. +// siteName - the name of the site. +func (client VirtualApplianceSitesClient) Get(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, siteName string) (result VirtualApplianceSite, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualApplianceSitesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, networkVirtualApplianceName, siteName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualApplianceSitesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualApplianceSitesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualApplianceSitesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client VirtualApplianceSitesClient) GetPreparer(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, siteName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkVirtualApplianceName": autorest.Encode("path", networkVirtualApplianceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "siteName": autorest.Encode("path", siteName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/virtualApplianceSites/{siteName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualApplianceSitesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client VirtualApplianceSitesClient) GetResponder(resp *http.Response) (result VirtualApplianceSite, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all Network Virtual Appliance Sites in a Network Virtual Appliance resource. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkVirtualApplianceName - the name of the Network Virtual Appliance. +func (client VirtualApplianceSitesClient) List(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string) (result VirtualApplianceSiteListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualApplianceSitesClient.List") + defer func() { + sc := -1 + if result.vaslr.Response.Response != nil { + sc = result.vaslr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, networkVirtualApplianceName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualApplianceSitesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.vaslr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualApplianceSitesClient", "List", resp, "Failure sending request") + return + } + + result.vaslr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualApplianceSitesClient", "List", resp, "Failure responding to request") + return + } + if result.vaslr.hasNextLink() && result.vaslr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client VirtualApplianceSitesClient) ListPreparer(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkVirtualApplianceName": autorest.Encode("path", networkVirtualApplianceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/virtualApplianceSites", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualApplianceSitesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client VirtualApplianceSitesClient) ListResponder(resp *http.Response) (result VirtualApplianceSiteListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client VirtualApplianceSitesClient) listNextResults(ctx context.Context, lastResults VirtualApplianceSiteListResult) (result VirtualApplianceSiteListResult, err error) { + req, err := lastResults.virtualApplianceSiteListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VirtualApplianceSitesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VirtualApplianceSitesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualApplianceSitesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client VirtualApplianceSitesClient) ListComplete(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string) (result VirtualApplianceSiteListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualApplianceSitesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, networkVirtualApplianceName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/virtualapplianceskus.go b/services/network/mgmt/2020-07-01/network/virtualapplianceskus.go new file mode 100644 index 000000000000..447c9edf0003 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/virtualapplianceskus.go @@ -0,0 +1,230 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// VirtualApplianceSkusClient is the network Client +type VirtualApplianceSkusClient struct { + BaseClient +} + +// NewVirtualApplianceSkusClient creates an instance of the VirtualApplianceSkusClient client. +func NewVirtualApplianceSkusClient(subscriptionID string) VirtualApplianceSkusClient { + return NewVirtualApplianceSkusClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewVirtualApplianceSkusClientWithBaseURI creates an instance of the VirtualApplianceSkusClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewVirtualApplianceSkusClientWithBaseURI(baseURI string, subscriptionID string) VirtualApplianceSkusClient { + return VirtualApplianceSkusClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get retrieves a single available sku for network virtual appliance. +// Parameters: +// skuName - name of the Sku. +func (client VirtualApplianceSkusClient) Get(ctx context.Context, skuName string) (result VirtualApplianceSku, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualApplianceSkusClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, skuName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualApplianceSkusClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualApplianceSkusClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualApplianceSkusClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client VirtualApplianceSkusClient) GetPreparer(ctx context.Context, skuName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "skuName": autorest.Encode("path", skuName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkVirtualApplianceSkus/{skuName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualApplianceSkusClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client VirtualApplianceSkusClient) GetResponder(resp *http.Response) (result VirtualApplianceSku, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List list all SKUs available for a virtual appliance. +func (client VirtualApplianceSkusClient) List(ctx context.Context) (result VirtualApplianceSkuListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualApplianceSkusClient.List") + defer func() { + sc := -1 + if result.vaslr.Response.Response != nil { + sc = result.vaslr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualApplianceSkusClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.vaslr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualApplianceSkusClient", "List", resp, "Failure sending request") + return + } + + result.vaslr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualApplianceSkusClient", "List", resp, "Failure responding to request") + return + } + if result.vaslr.hasNextLink() && result.vaslr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client VirtualApplianceSkusClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkVirtualApplianceSkus", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualApplianceSkusClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client VirtualApplianceSkusClient) ListResponder(resp *http.Response) (result VirtualApplianceSkuListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client VirtualApplianceSkusClient) listNextResults(ctx context.Context, lastResults VirtualApplianceSkuListResult) (result VirtualApplianceSkuListResult, err error) { + req, err := lastResults.virtualApplianceSkuListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VirtualApplianceSkusClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VirtualApplianceSkusClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualApplianceSkusClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client VirtualApplianceSkusClient) ListComplete(ctx context.Context) (result VirtualApplianceSkuListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualApplianceSkusClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} diff --git a/services/network/mgmt/2020-07-01/network/virtualhubbgpconnection.go b/services/network/mgmt/2020-07-01/network/virtualhubbgpconnection.go new file mode 100644 index 000000000000..b40a0eb5777d --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/virtualhubbgpconnection.go @@ -0,0 +1,292 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// VirtualHubBgpConnectionClient is the network Client +type VirtualHubBgpConnectionClient struct { + BaseClient +} + +// NewVirtualHubBgpConnectionClient creates an instance of the VirtualHubBgpConnectionClient client. +func NewVirtualHubBgpConnectionClient(subscriptionID string) VirtualHubBgpConnectionClient { + return NewVirtualHubBgpConnectionClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewVirtualHubBgpConnectionClientWithBaseURI creates an instance of the VirtualHubBgpConnectionClient client using a +// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, +// Azure stack). +func NewVirtualHubBgpConnectionClientWithBaseURI(baseURI string, subscriptionID string) VirtualHubBgpConnectionClient { + return VirtualHubBgpConnectionClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing +// VirtualHubBgpConnection. +// Parameters: +// resourceGroupName - the resource group name of the VirtualHub. +// virtualHubName - the name of the VirtualHub. +// connectionName - the name of the connection. +// parameters - parameters of Bgp connection. +func (client VirtualHubBgpConnectionClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string, parameters BgpConnection) (result VirtualHubBgpConnectionCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualHubBgpConnectionClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.BgpConnectionProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.BgpConnectionProperties.PeerAsn", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.BgpConnectionProperties.PeerAsn", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, + {Target: "parameters.BgpConnectionProperties.PeerAsn", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + }}, + }}}}}); err != nil { + return result, validation.NewError("network.VirtualHubBgpConnectionClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, virtualHubName, connectionName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client VirtualHubBgpConnectionClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string, parameters BgpConnection) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "connectionName": autorest.Encode("path", connectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualHubName": autorest.Encode("path", virtualHubName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + parameters.Type = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/bgpConnections/{connectionName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualHubBgpConnectionClient) CreateOrUpdateSender(req *http.Request) (future VirtualHubBgpConnectionCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client VirtualHubBgpConnectionClient) CreateOrUpdateResponder(resp *http.Response) (result BgpConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes a VirtualHubBgpConnection. +// Parameters: +// resourceGroupName - the resource group name of the VirtualHubBgpConnection. +// virtualHubName - the name of the VirtualHub. +// connectionName - the name of the connection. +func (client VirtualHubBgpConnectionClient) Delete(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (result VirtualHubBgpConnectionDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualHubBgpConnectionClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, virtualHubName, connectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client VirtualHubBgpConnectionClient) DeletePreparer(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "connectionName": autorest.Encode("path", connectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualHubName": autorest.Encode("path", virtualHubName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/bgpConnections/{connectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualHubBgpConnectionClient) DeleteSender(req *http.Request) (future VirtualHubBgpConnectionDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client VirtualHubBgpConnectionClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get retrieves the details of a Virtual Hub Bgp Connection. +// Parameters: +// resourceGroupName - the resource group name of the VirtualHub. +// virtualHubName - the name of the VirtualHub. +// connectionName - the name of the connection. +func (client VirtualHubBgpConnectionClient) Get(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (result BgpConnection, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualHubBgpConnectionClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, virtualHubName, connectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client VirtualHubBgpConnectionClient) GetPreparer(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "connectionName": autorest.Encode("path", connectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualHubName": autorest.Encode("path", virtualHubName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/bgpConnections/{connectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualHubBgpConnectionClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client VirtualHubBgpConnectionClient) GetResponder(resp *http.Response) (result BgpConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/virtualhubbgpconnections.go b/services/network/mgmt/2020-07-01/network/virtualhubbgpconnections.go new file mode 100644 index 000000000000..0b03297f4c6a --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/virtualhubbgpconnections.go @@ -0,0 +1,315 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// VirtualHubBgpConnectionsClient is the network Client +type VirtualHubBgpConnectionsClient struct { + BaseClient +} + +// NewVirtualHubBgpConnectionsClient creates an instance of the VirtualHubBgpConnectionsClient client. +func NewVirtualHubBgpConnectionsClient(subscriptionID string) VirtualHubBgpConnectionsClient { + return NewVirtualHubBgpConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewVirtualHubBgpConnectionsClientWithBaseURI creates an instance of the VirtualHubBgpConnectionsClient client using +// a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign +// clouds, Azure stack). +func NewVirtualHubBgpConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualHubBgpConnectionsClient { + return VirtualHubBgpConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List retrieves the details of all VirtualHubBgpConnections. +// Parameters: +// resourceGroupName - the resource group name of the VirtualHub. +// virtualHubName - the name of the VirtualHub. +func (client VirtualHubBgpConnectionsClient) List(ctx context.Context, resourceGroupName string, virtualHubName string) (result ListVirtualHubBgpConnectionResultsPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualHubBgpConnectionsClient.List") + defer func() { + sc := -1 + if result.lvhbcr.Response.Response != nil { + sc = result.lvhbcr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, virtualHubName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.lvhbcr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionsClient", "List", resp, "Failure sending request") + return + } + + result.lvhbcr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionsClient", "List", resp, "Failure responding to request") + return + } + if result.lvhbcr.hasNextLink() && result.lvhbcr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client VirtualHubBgpConnectionsClient) ListPreparer(ctx context.Context, resourceGroupName string, virtualHubName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualHubName": autorest.Encode("path", virtualHubName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/bgpConnections", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualHubBgpConnectionsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client VirtualHubBgpConnectionsClient) ListResponder(resp *http.Response) (result ListVirtualHubBgpConnectionResults, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client VirtualHubBgpConnectionsClient) listNextResults(ctx context.Context, lastResults ListVirtualHubBgpConnectionResults) (result ListVirtualHubBgpConnectionResults, err error) { + req, err := lastResults.listVirtualHubBgpConnectionResultsPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client VirtualHubBgpConnectionsClient) ListComplete(ctx context.Context, resourceGroupName string, virtualHubName string) (result ListVirtualHubBgpConnectionResultsIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualHubBgpConnectionsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, virtualHubName) + return +} + +// ListAdvertisedRoutes retrieves a list of routes the virtual hub bgp connection is advertising to the specified peer. +// Parameters: +// resourceGroupName - the name of the resource group. +// hubName - the name of the virtual hub. +// connectionName - the name of the virtual hub bgp connection. +func (client VirtualHubBgpConnectionsClient) ListAdvertisedRoutes(ctx context.Context, resourceGroupName string, hubName string, connectionName string) (result VirtualHubBgpConnectionsListAdvertisedRoutesFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualHubBgpConnectionsClient.ListAdvertisedRoutes") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListAdvertisedRoutesPreparer(ctx, resourceGroupName, hubName, connectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionsClient", "ListAdvertisedRoutes", nil, "Failure preparing request") + return + } + + result, err = client.ListAdvertisedRoutesSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionsClient", "ListAdvertisedRoutes", result.Response(), "Failure sending request") + return + } + + return +} + +// ListAdvertisedRoutesPreparer prepares the ListAdvertisedRoutes request. +func (client VirtualHubBgpConnectionsClient) ListAdvertisedRoutesPreparer(ctx context.Context, resourceGroupName string, hubName string, connectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "connectionName": autorest.Encode("path", connectionName), + "hubName": autorest.Encode("path", hubName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{hubName}/bgpConnections/{connectionName}/advertisedRoutes", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAdvertisedRoutesSender sends the ListAdvertisedRoutes request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualHubBgpConnectionsClient) ListAdvertisedRoutesSender(req *http.Request) (future VirtualHubBgpConnectionsListAdvertisedRoutesFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// ListAdvertisedRoutesResponder handles the response to the ListAdvertisedRoutes request. The method always +// closes the http.Response Body. +func (client VirtualHubBgpConnectionsClient) ListAdvertisedRoutesResponder(resp *http.Response) (result PeerRouteList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListLearnedRoutes retrieves a list of routes the virtual hub bgp connection has learned. +// Parameters: +// resourceGroupName - the name of the resource group. +// hubName - the name of the virtual hub. +// connectionName - the name of the virtual hub bgp connection. +func (client VirtualHubBgpConnectionsClient) ListLearnedRoutes(ctx context.Context, resourceGroupName string, hubName string, connectionName string) (result VirtualHubBgpConnectionsListLearnedRoutesFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualHubBgpConnectionsClient.ListLearnedRoutes") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListLearnedRoutesPreparer(ctx, resourceGroupName, hubName, connectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionsClient", "ListLearnedRoutes", nil, "Failure preparing request") + return + } + + result, err = client.ListLearnedRoutesSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubBgpConnectionsClient", "ListLearnedRoutes", result.Response(), "Failure sending request") + return + } + + return +} + +// ListLearnedRoutesPreparer prepares the ListLearnedRoutes request. +func (client VirtualHubBgpConnectionsClient) ListLearnedRoutesPreparer(ctx context.Context, resourceGroupName string, hubName string, connectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "connectionName": autorest.Encode("path", connectionName), + "hubName": autorest.Encode("path", hubName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{hubName}/bgpConnections/{connectionName}/learnedRoutes", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListLearnedRoutesSender sends the ListLearnedRoutes request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualHubBgpConnectionsClient) ListLearnedRoutesSender(req *http.Request) (future VirtualHubBgpConnectionsListLearnedRoutesFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// ListLearnedRoutesResponder handles the response to the ListLearnedRoutes request. The method always +// closes the http.Response Body. +func (client VirtualHubBgpConnectionsClient) ListLearnedRoutesResponder(resp *http.Response) (result PeerRouteList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/virtualhubipconfiguration.go b/services/network/mgmt/2020-07-01/network/virtualhubipconfiguration.go new file mode 100644 index 000000000000..2e30b335f079 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/virtualhubipconfiguration.go @@ -0,0 +1,418 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// VirtualHubIPConfigurationClient is the network Client +type VirtualHubIPConfigurationClient struct { + BaseClient +} + +// NewVirtualHubIPConfigurationClient creates an instance of the VirtualHubIPConfigurationClient client. +func NewVirtualHubIPConfigurationClient(subscriptionID string) VirtualHubIPConfigurationClient { + return NewVirtualHubIPConfigurationClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewVirtualHubIPConfigurationClientWithBaseURI creates an instance of the VirtualHubIPConfigurationClient client +// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign +// clouds, Azure stack). +func NewVirtualHubIPConfigurationClientWithBaseURI(baseURI string, subscriptionID string) VirtualHubIPConfigurationClient { + return VirtualHubIPConfigurationClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates a VirtualHubIpConfiguration resource if it doesn't exist else updates the existing +// VirtualHubIpConfiguration. +// Parameters: +// resourceGroupName - the resource group name of the VirtualHub. +// virtualHubName - the name of the VirtualHub. +// IPConfigName - the name of the ipconfig. +// parameters - hub Ip Configuration parameters. +func (client VirtualHubIPConfigurationClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualHubName string, IPConfigName string, parameters HubIPConfiguration) (result VirtualHubIPConfigurationCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualHubIPConfigurationClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.HubIPConfigurationPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.HubIPConfigurationPropertiesFormat.PublicIPAddress", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.HubIPConfigurationPropertiesFormat.PublicIPAddress.ExtendedLocation", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.HubIPConfigurationPropertiesFormat.PublicIPAddress.ExtendedLocation.Name", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.HubIPConfigurationPropertiesFormat.PublicIPAddress.ExtendedLocation.Type", Name: validation.Null, Rule: true, Chain: nil}, + }}, + {Target: "parameters.HubIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.HubIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.HubIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.HubIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat.PublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}}}, + }}, + }}, + }}, + }}}}}); err != nil { + return result, validation.NewError("network.VirtualHubIPConfigurationClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, virtualHubName, IPConfigName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubIPConfigurationClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubIPConfigurationClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client VirtualHubIPConfigurationClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, virtualHubName string, IPConfigName string, parameters HubIPConfiguration) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "ipConfigName": autorest.Encode("path", IPConfigName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualHubName": autorest.Encode("path", virtualHubName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + parameters.Type = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/ipConfigurations/{ipConfigName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualHubIPConfigurationClient) CreateOrUpdateSender(req *http.Request) (future VirtualHubIPConfigurationCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client VirtualHubIPConfigurationClient) CreateOrUpdateResponder(resp *http.Response) (result HubIPConfiguration, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes a VirtualHubIpConfiguration. +// Parameters: +// resourceGroupName - the resource group name of the VirtualHubBgpConnection. +// virtualHubName - the name of the VirtualHub. +// IPConfigName - the name of the ipconfig. +func (client VirtualHubIPConfigurationClient) Delete(ctx context.Context, resourceGroupName string, virtualHubName string, IPConfigName string) (result VirtualHubIPConfigurationDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualHubIPConfigurationClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, virtualHubName, IPConfigName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubIPConfigurationClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubIPConfigurationClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client VirtualHubIPConfigurationClient) DeletePreparer(ctx context.Context, resourceGroupName string, virtualHubName string, IPConfigName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "ipConfigName": autorest.Encode("path", IPConfigName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualHubName": autorest.Encode("path", virtualHubName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/ipConfigurations/{ipConfigName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualHubIPConfigurationClient) DeleteSender(req *http.Request) (future VirtualHubIPConfigurationDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client VirtualHubIPConfigurationClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get retrieves the details of a Virtual Hub Ip configuration. +// Parameters: +// resourceGroupName - the resource group name of the VirtualHub. +// virtualHubName - the name of the VirtualHub. +// IPConfigName - the name of the ipconfig. +func (client VirtualHubIPConfigurationClient) Get(ctx context.Context, resourceGroupName string, virtualHubName string, IPConfigName string) (result HubIPConfiguration, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualHubIPConfigurationClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, virtualHubName, IPConfigName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubIPConfigurationClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualHubIPConfigurationClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubIPConfigurationClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client VirtualHubIPConfigurationClient) GetPreparer(ctx context.Context, resourceGroupName string, virtualHubName string, IPConfigName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "ipConfigName": autorest.Encode("path", IPConfigName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualHubName": autorest.Encode("path", virtualHubName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/ipConfigurations/{ipConfigName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualHubIPConfigurationClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client VirtualHubIPConfigurationClient) GetResponder(resp *http.Response) (result HubIPConfiguration, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List retrieves the details of all VirtualHubIpConfigurations. +// Parameters: +// resourceGroupName - the resource group name of the VirtualHub. +// virtualHubName - the name of the VirtualHub. +func (client VirtualHubIPConfigurationClient) List(ctx context.Context, resourceGroupName string, virtualHubName string) (result ListVirtualHubIPConfigurationResultsPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualHubIPConfigurationClient.List") + defer func() { + sc := -1 + if result.lvhicr.Response.Response != nil { + sc = result.lvhicr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, virtualHubName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubIPConfigurationClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.lvhicr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualHubIPConfigurationClient", "List", resp, "Failure sending request") + return + } + + result.lvhicr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubIPConfigurationClient", "List", resp, "Failure responding to request") + return + } + if result.lvhicr.hasNextLink() && result.lvhicr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client VirtualHubIPConfigurationClient) ListPreparer(ctx context.Context, resourceGroupName string, virtualHubName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualHubName": autorest.Encode("path", virtualHubName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/ipConfigurations", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualHubIPConfigurationClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client VirtualHubIPConfigurationClient) ListResponder(resp *http.Response) (result ListVirtualHubIPConfigurationResults, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client VirtualHubIPConfigurationClient) listNextResults(ctx context.Context, lastResults ListVirtualHubIPConfigurationResults) (result ListVirtualHubIPConfigurationResults, err error) { + req, err := lastResults.listVirtualHubIPConfigurationResultsPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VirtualHubIPConfigurationClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VirtualHubIPConfigurationClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubIPConfigurationClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client VirtualHubIPConfigurationClient) ListComplete(ctx context.Context, resourceGroupName string, virtualHubName string) (result ListVirtualHubIPConfigurationResultsIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualHubIPConfigurationClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, virtualHubName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/virtualhubroutetablev2s.go b/services/network/mgmt/2020-07-01/network/virtualhubroutetablev2s.go new file mode 100644 index 000000000000..2e4d69f840a4 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/virtualhubroutetablev2s.go @@ -0,0 +1,397 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// VirtualHubRouteTableV2sClient is the network Client +type VirtualHubRouteTableV2sClient struct { + BaseClient +} + +// NewVirtualHubRouteTableV2sClient creates an instance of the VirtualHubRouteTableV2sClient client. +func NewVirtualHubRouteTableV2sClient(subscriptionID string) VirtualHubRouteTableV2sClient { + return NewVirtualHubRouteTableV2sClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewVirtualHubRouteTableV2sClientWithBaseURI creates an instance of the VirtualHubRouteTableV2sClient client using a +// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, +// Azure stack). +func NewVirtualHubRouteTableV2sClientWithBaseURI(baseURI string, subscriptionID string) VirtualHubRouteTableV2sClient { + return VirtualHubRouteTableV2sClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates a VirtualHubRouteTableV2 resource if it doesn't exist else updates the existing +// VirtualHubRouteTableV2. +// Parameters: +// resourceGroupName - the resource group name of the VirtualHub. +// virtualHubName - the name of the VirtualHub. +// routeTableName - the name of the VirtualHubRouteTableV2. +// virtualHubRouteTableV2Parameters - parameters supplied to create or update VirtualHubRouteTableV2. +func (client VirtualHubRouteTableV2sClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualHubName string, routeTableName string, virtualHubRouteTableV2Parameters VirtualHubRouteTableV2) (result VirtualHubRouteTableV2sCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualHubRouteTableV2sClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, virtualHubName, routeTableName, virtualHubRouteTableV2Parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client VirtualHubRouteTableV2sClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, virtualHubName string, routeTableName string, virtualHubRouteTableV2Parameters VirtualHubRouteTableV2) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "routeTableName": autorest.Encode("path", routeTableName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualHubName": autorest.Encode("path", virtualHubName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + virtualHubRouteTableV2Parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeTables/{routeTableName}", pathParameters), + autorest.WithJSON(virtualHubRouteTableV2Parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualHubRouteTableV2sClient) CreateOrUpdateSender(req *http.Request) (future VirtualHubRouteTableV2sCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client VirtualHubRouteTableV2sClient) CreateOrUpdateResponder(resp *http.Response) (result VirtualHubRouteTableV2, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes a VirtualHubRouteTableV2. +// Parameters: +// resourceGroupName - the resource group name of the VirtualHubRouteTableV2. +// virtualHubName - the name of the VirtualHub. +// routeTableName - the name of the VirtualHubRouteTableV2. +func (client VirtualHubRouteTableV2sClient) Delete(ctx context.Context, resourceGroupName string, virtualHubName string, routeTableName string) (result VirtualHubRouteTableV2sDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualHubRouteTableV2sClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, virtualHubName, routeTableName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client VirtualHubRouteTableV2sClient) DeletePreparer(ctx context.Context, resourceGroupName string, virtualHubName string, routeTableName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "routeTableName": autorest.Encode("path", routeTableName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualHubName": autorest.Encode("path", virtualHubName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeTables/{routeTableName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualHubRouteTableV2sClient) DeleteSender(req *http.Request) (future VirtualHubRouteTableV2sDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client VirtualHubRouteTableV2sClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get retrieves the details of a VirtualHubRouteTableV2. +// Parameters: +// resourceGroupName - the resource group name of the VirtualHubRouteTableV2. +// virtualHubName - the name of the VirtualHub. +// routeTableName - the name of the VirtualHubRouteTableV2. +func (client VirtualHubRouteTableV2sClient) Get(ctx context.Context, resourceGroupName string, virtualHubName string, routeTableName string) (result VirtualHubRouteTableV2, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualHubRouteTableV2sClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, virtualHubName, routeTableName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client VirtualHubRouteTableV2sClient) GetPreparer(ctx context.Context, resourceGroupName string, virtualHubName string, routeTableName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "routeTableName": autorest.Encode("path", routeTableName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualHubName": autorest.Encode("path", virtualHubName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeTables/{routeTableName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualHubRouteTableV2sClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client VirtualHubRouteTableV2sClient) GetResponder(resp *http.Response) (result VirtualHubRouteTableV2, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List retrieves the details of all VirtualHubRouteTableV2s. +// Parameters: +// resourceGroupName - the resource group name of the VirtualHub. +// virtualHubName - the name of the VirtualHub. +func (client VirtualHubRouteTableV2sClient) List(ctx context.Context, resourceGroupName string, virtualHubName string) (result ListVirtualHubRouteTableV2sResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualHubRouteTableV2sClient.List") + defer func() { + sc := -1 + if result.lvhrtvr.Response.Response != nil { + sc = result.lvhrtvr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, virtualHubName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.lvhrtvr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "List", resp, "Failure sending request") + return + } + + result.lvhrtvr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "List", resp, "Failure responding to request") + return + } + if result.lvhrtvr.hasNextLink() && result.lvhrtvr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client VirtualHubRouteTableV2sClient) ListPreparer(ctx context.Context, resourceGroupName string, virtualHubName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualHubName": autorest.Encode("path", virtualHubName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeTables", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualHubRouteTableV2sClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client VirtualHubRouteTableV2sClient) ListResponder(resp *http.Response) (result ListVirtualHubRouteTableV2sResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client VirtualHubRouteTableV2sClient) listNextResults(ctx context.Context, lastResults ListVirtualHubRouteTableV2sResult) (result ListVirtualHubRouteTableV2sResult, err error) { + req, err := lastResults.listVirtualHubRouteTableV2sResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubRouteTableV2sClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client VirtualHubRouteTableV2sClient) ListComplete(ctx context.Context, resourceGroupName string, virtualHubName string) (result ListVirtualHubRouteTableV2sResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualHubRouteTableV2sClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, virtualHubName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/virtualhubs.go b/services/network/mgmt/2020-07-01/network/virtualhubs.go new file mode 100644 index 000000000000..61fab311d82f --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/virtualhubs.go @@ -0,0 +1,672 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// VirtualHubsClient is the network Client +type VirtualHubsClient struct { + BaseClient +} + +// NewVirtualHubsClient creates an instance of the VirtualHubsClient client. +func NewVirtualHubsClient(subscriptionID string) VirtualHubsClient { + return NewVirtualHubsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client using a custom endpoint. Use +// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewVirtualHubsClientWithBaseURI(baseURI string, subscriptionID string) VirtualHubsClient { + return VirtualHubsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. +// Parameters: +// resourceGroupName - the resource group name of the VirtualHub. +// virtualHubName - the name of the VirtualHub. +// virtualHubParameters - parameters supplied to create or update VirtualHub. +func (client VirtualHubsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualHubName string, virtualHubParameters VirtualHub) (result VirtualHubsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualHubsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: virtualHubParameters, + Constraints: []validation.Constraint{{Target: "virtualHubParameters.VirtualHubProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "virtualHubParameters.VirtualHubProperties.VirtualRouterAsn", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "virtualHubParameters.VirtualHubProperties.VirtualRouterAsn", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, + {Target: "virtualHubParameters.VirtualHubProperties.VirtualRouterAsn", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + }}, + }}}}}); err != nil { + return result, validation.NewError("network.VirtualHubsClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, virtualHubName, virtualHubParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client VirtualHubsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, virtualHubName string, virtualHubParameters VirtualHub) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualHubName": autorest.Encode("path", virtualHubName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + virtualHubParameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}", pathParameters), + autorest.WithJSON(virtualHubParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualHubsClient) CreateOrUpdateSender(req *http.Request) (future VirtualHubsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client VirtualHubsClient) CreateOrUpdateResponder(resp *http.Response) (result VirtualHub, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes a VirtualHub. +// Parameters: +// resourceGroupName - the resource group name of the VirtualHub. +// virtualHubName - the name of the VirtualHub. +func (client VirtualHubsClient) Delete(ctx context.Context, resourceGroupName string, virtualHubName string) (result VirtualHubsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualHubsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, virtualHubName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client VirtualHubsClient) DeletePreparer(ctx context.Context, resourceGroupName string, virtualHubName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualHubName": autorest.Encode("path", virtualHubName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualHubsClient) DeleteSender(req *http.Request) (future VirtualHubsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client VirtualHubsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get retrieves the details of a VirtualHub. +// Parameters: +// resourceGroupName - the resource group name of the VirtualHub. +// virtualHubName - the name of the VirtualHub. +func (client VirtualHubsClient) Get(ctx context.Context, resourceGroupName string, virtualHubName string) (result VirtualHub, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualHubsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, virtualHubName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client VirtualHubsClient) GetPreparer(ctx context.Context, resourceGroupName string, virtualHubName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualHubName": autorest.Encode("path", virtualHubName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualHubsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client VirtualHubsClient) GetResponder(resp *http.Response) (result VirtualHub, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetEffectiveVirtualHubRoutes gets the effective routes configured for the Virtual Hub resource or the specified +// resource . +// Parameters: +// resourceGroupName - the resource group name of the VirtualHub. +// virtualHubName - the name of the VirtualHub. +// effectiveRoutesParameters - parameters supplied to get the effective routes for a specific resource. +func (client VirtualHubsClient) GetEffectiveVirtualHubRoutes(ctx context.Context, resourceGroupName string, virtualHubName string, effectiveRoutesParameters *EffectiveRoutesParameters) (result VirtualHubsGetEffectiveVirtualHubRoutesFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualHubsClient.GetEffectiveVirtualHubRoutes") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetEffectiveVirtualHubRoutesPreparer(ctx, resourceGroupName, virtualHubName, effectiveRoutesParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "GetEffectiveVirtualHubRoutes", nil, "Failure preparing request") + return + } + + result, err = client.GetEffectiveVirtualHubRoutesSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "GetEffectiveVirtualHubRoutes", result.Response(), "Failure sending request") + return + } + + return +} + +// GetEffectiveVirtualHubRoutesPreparer prepares the GetEffectiveVirtualHubRoutes request. +func (client VirtualHubsClient) GetEffectiveVirtualHubRoutesPreparer(ctx context.Context, resourceGroupName string, virtualHubName string, effectiveRoutesParameters *EffectiveRoutesParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualHubName": autorest.Encode("path", virtualHubName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/effectiveRoutes", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if effectiveRoutesParameters != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(effectiveRoutesParameters)) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetEffectiveVirtualHubRoutesSender sends the GetEffectiveVirtualHubRoutes request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualHubsClient) GetEffectiveVirtualHubRoutesSender(req *http.Request) (future VirtualHubsGetEffectiveVirtualHubRoutesFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// GetEffectiveVirtualHubRoutesResponder handles the response to the GetEffectiveVirtualHubRoutes request. The method always +// closes the http.Response Body. +func (client VirtualHubsClient) GetEffectiveVirtualHubRoutesResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// List lists all the VirtualHubs in a subscription. +func (client VirtualHubsClient) List(ctx context.Context) (result ListVirtualHubsResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualHubsClient.List") + defer func() { + sc := -1 + if result.lvhr.Response.Response != nil { + sc = result.lvhr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.lvhr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "List", resp, "Failure sending request") + return + } + + result.lvhr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "List", resp, "Failure responding to request") + return + } + if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client VirtualHubsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualHubs", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualHubsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client VirtualHubsClient) ListResponder(resp *http.Response) (result ListVirtualHubsResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client VirtualHubsClient) listNextResults(ctx context.Context, lastResults ListVirtualHubsResult) (result ListVirtualHubsResult, err error) { + req, err := lastResults.listVirtualHubsResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client VirtualHubsClient) ListComplete(ctx context.Context) (result ListVirtualHubsResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualHubsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} + +// ListByResourceGroup lists all the VirtualHubs in a resource group. +// Parameters: +// resourceGroupName - the resource group name of the VirtualHub. +func (client VirtualHubsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ListVirtualHubsResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualHubsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.lvhr.Response.Response != nil { + sc = result.lvhr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.lvhr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.lvhr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.lvhr.hasNextLink() && result.lvhr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client VirtualHubsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualHubsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client VirtualHubsClient) ListByResourceGroupResponder(resp *http.Response) (result ListVirtualHubsResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client VirtualHubsClient) listByResourceGroupNextResults(ctx context.Context, lastResults ListVirtualHubsResult) (result ListVirtualHubsResult, err error) { + req, err := lastResults.listVirtualHubsResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client VirtualHubsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ListVirtualHubsResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualHubsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// UpdateTags updates VirtualHub tags. +// Parameters: +// resourceGroupName - the resource group name of the VirtualHub. +// virtualHubName - the name of the VirtualHub. +// virtualHubParameters - parameters supplied to update VirtualHub tags. +func (client VirtualHubsClient) UpdateTags(ctx context.Context, resourceGroupName string, virtualHubName string, virtualHubParameters TagsObject) (result VirtualHub, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualHubsClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, virtualHubName, virtualHubParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualHubsClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client VirtualHubsClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, virtualHubName string, virtualHubParameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualHubName": autorest.Encode("path", virtualHubName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}", pathParameters), + autorest.WithJSON(virtualHubParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualHubsClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client VirtualHubsClient) UpdateTagsResponder(resp *http.Response) (result VirtualHub, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2020-07-01/network/virtualnetworkgatewayconnections.go new file mode 100644 index 000000000000..c5e3eecec793 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/virtualnetworkgatewayconnections.go @@ -0,0 +1,928 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// VirtualNetworkGatewayConnectionsClient is the network Client +type VirtualNetworkGatewayConnectionsClient struct { + BaseClient +} + +// NewVirtualNetworkGatewayConnectionsClient creates an instance of the VirtualNetworkGatewayConnectionsClient client. +func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNetworkGatewayConnectionsClient { + return NewVirtualNetworkGatewayConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the +// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure +// cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient { + return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a virtual network gateway connection in the specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayConnectionName - the name of the virtual network gateway connection. +// parameters - parameters supplied to the create or update virtual network gateway connection operation. +func (client VirtualNetworkGatewayConnectionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters VirtualNetworkGatewayConnection) (result VirtualNetworkGatewayConnectionsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewayConnectionsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.VirtualNetworkGatewayConnectionPropertiesFormat", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkGatewayConnectionPropertiesFormat.VirtualNetworkGateway1", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkGatewayConnectionPropertiesFormat.VirtualNetworkGateway1.VirtualNetworkGatewayPropertiesFormat", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkGatewayConnectionPropertiesFormat.VirtualNetworkGateway1.VirtualNetworkGatewayPropertiesFormat.BgpSettings", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkGatewayConnectionPropertiesFormat.VirtualNetworkGateway1.VirtualNetworkGatewayPropertiesFormat.BgpSettings.Asn", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkGatewayConnectionPropertiesFormat.VirtualNetworkGateway1.VirtualNetworkGatewayPropertiesFormat.BgpSettings.Asn", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, + {Target: "parameters.VirtualNetworkGatewayConnectionPropertiesFormat.VirtualNetworkGateway1.VirtualNetworkGatewayPropertiesFormat.BgpSettings.Asn", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + }}, + }}, + {Target: "parameters.VirtualNetworkGatewayConnectionPropertiesFormat.VirtualNetworkGateway1.VirtualNetworkGatewayPropertiesFormat.ExtendedLocation", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkGatewayConnectionPropertiesFormat.VirtualNetworkGateway1.VirtualNetworkGatewayPropertiesFormat.ExtendedLocation.Name", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.VirtualNetworkGatewayConnectionPropertiesFormat.VirtualNetworkGateway1.VirtualNetworkGatewayPropertiesFormat.ExtendedLocation.Type", Name: validation.Null, Rule: true, Chain: nil}, + }}, + }}, + }}, + {Target: "parameters.VirtualNetworkGatewayConnectionPropertiesFormat.VirtualNetworkGateway2", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkGatewayConnectionPropertiesFormat.VirtualNetworkGateway2.VirtualNetworkGatewayPropertiesFormat", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkGatewayConnectionPropertiesFormat.VirtualNetworkGateway2.VirtualNetworkGatewayPropertiesFormat.BgpSettings", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkGatewayConnectionPropertiesFormat.VirtualNetworkGateway2.VirtualNetworkGatewayPropertiesFormat.BgpSettings.Asn", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkGatewayConnectionPropertiesFormat.VirtualNetworkGateway2.VirtualNetworkGatewayPropertiesFormat.BgpSettings.Asn", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, + {Target: "parameters.VirtualNetworkGatewayConnectionPropertiesFormat.VirtualNetworkGateway2.VirtualNetworkGatewayPropertiesFormat.BgpSettings.Asn", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + }}, + }}, + {Target: "parameters.VirtualNetworkGatewayConnectionPropertiesFormat.VirtualNetworkGateway2.VirtualNetworkGatewayPropertiesFormat.ExtendedLocation", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkGatewayConnectionPropertiesFormat.VirtualNetworkGateway2.VirtualNetworkGatewayPropertiesFormat.ExtendedLocation.Name", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.VirtualNetworkGatewayConnectionPropertiesFormat.VirtualNetworkGateway2.VirtualNetworkGatewayPropertiesFormat.ExtendedLocation.Type", Name: validation.Null, Rule: true, Chain: nil}, + }}, + }}, + }}, + {Target: "parameters.VirtualNetworkGatewayConnectionPropertiesFormat.LocalNetworkGateway2", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkGatewayConnectionPropertiesFormat.LocalNetworkGateway2.LocalNetworkGatewayPropertiesFormat", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkGatewayConnectionPropertiesFormat.LocalNetworkGateway2.LocalNetworkGatewayPropertiesFormat.BgpSettings", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkGatewayConnectionPropertiesFormat.LocalNetworkGateway2.LocalNetworkGatewayPropertiesFormat.BgpSettings.Asn", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkGatewayConnectionPropertiesFormat.LocalNetworkGateway2.LocalNetworkGatewayPropertiesFormat.BgpSettings.Asn", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, + {Target: "parameters.VirtualNetworkGatewayConnectionPropertiesFormat.LocalNetworkGateway2.LocalNetworkGatewayPropertiesFormat.BgpSettings.Asn", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + }}, + }}, + }}, + }}, + }}}}}); err != nil { + return result, validation.NewError("network.VirtualNetworkGatewayConnectionsClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, virtualNetworkGatewayConnectionName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client VirtualNetworkGatewayConnectionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters VirtualNetworkGatewayConnection) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayConnectionName": autorest.Encode("path", virtualNetworkGatewayConnectionName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewayConnectionsClient) CreateOrUpdateSender(req *http.Request) (future VirtualNetworkGatewayConnectionsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewayConnectionsClient) CreateOrUpdateResponder(resp *http.Response) (result VirtualNetworkGatewayConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified virtual network Gateway connection. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayConnectionName - the name of the virtual network gateway connection. +func (client VirtualNetworkGatewayConnectionsClient) Delete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result VirtualNetworkGatewayConnectionsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewayConnectionsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, virtualNetworkGatewayConnectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client VirtualNetworkGatewayConnectionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayConnectionName": autorest.Encode("path", virtualNetworkGatewayConnectionName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewayConnectionsClient) DeleteSender(req *http.Request) (future VirtualNetworkGatewayConnectionsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewayConnectionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified virtual network gateway connection by resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayConnectionName - the name of the virtual network gateway connection. +func (client VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result VirtualNetworkGatewayConnection, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewayConnectionsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, virtualNetworkGatewayConnectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client VirtualNetworkGatewayConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayConnectionName": autorest.Encode("path", virtualNetworkGatewayConnectionName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewayConnectionsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewayConnectionsClient) GetResponder(resp *http.Response) (result VirtualNetworkGatewayConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetSharedKey the Get VirtualNetworkGatewayConnectionSharedKey operation retrieves information about the specified +// virtual network gateway connection shared key through Network resource provider. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayConnectionName - the virtual network gateway connection shared key name. +func (client VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result ConnectionSharedKey, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewayConnectionsClient.GetSharedKey") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetSharedKeyPreparer(ctx, resourceGroupName, virtualNetworkGatewayConnectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", nil, "Failure preparing request") + return + } + + resp, err := client.GetSharedKeySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure sending request") + return + } + + result, err = client.GetSharedKeyResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "GetSharedKey", resp, "Failure responding to request") + return + } + + return +} + +// GetSharedKeyPreparer prepares the GetSharedKey request. +func (client VirtualNetworkGatewayConnectionsClient) GetSharedKeyPreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayConnectionName": autorest.Encode("path", virtualNetworkGatewayConnectionName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSharedKeySender sends the GetSharedKey request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewayConnectionsClient) GetSharedKeySender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetSharedKeyResponder handles the response to the GetSharedKey request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewayConnectionsClient) GetSharedKeyResponder(resp *http.Response) (result ConnectionSharedKey, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List the List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways connections +// created. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, resourceGroupName string) (result VirtualNetworkGatewayConnectionListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewayConnectionsClient.List") + defer func() { + sc := -1 + if result.vngclr.Response.Response != nil { + sc = result.vngclr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.vngclr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure sending request") + return + } + + result.vngclr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "List", resp, "Failure responding to request") + return + } + if result.vngclr.hasNextLink() && result.vngclr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client VirtualNetworkGatewayConnectionsClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewayConnectionsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewayConnectionsClient) ListResponder(resp *http.Response) (result VirtualNetworkGatewayConnectionListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client VirtualNetworkGatewayConnectionsClient) listNextResults(ctx context.Context, lastResults VirtualNetworkGatewayConnectionListResult) (result VirtualNetworkGatewayConnectionListResult, err error) { + req, err := lastResults.virtualNetworkGatewayConnectionListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client VirtualNetworkGatewayConnectionsClient) ListComplete(ctx context.Context, resourceGroupName string) (result VirtualNetworkGatewayConnectionListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewayConnectionsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName) + return +} + +// ResetSharedKey the VirtualNetworkGatewayConnectionResetSharedKey operation resets the virtual network gateway +// connection shared key for passed virtual network gateway connection in the specified resource group through Network +// resource provider. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayConnectionName - the virtual network gateway connection reset shared key Name. +// parameters - parameters supplied to the begin reset virtual network gateway connection shared key operation +// through network resource provider. +func (client VirtualNetworkGatewayConnectionsClient) ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters ConnectionResetSharedKey) (result VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewayConnectionsClient.ResetSharedKey") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.KeyLength", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "parameters.KeyLength", Name: validation.InclusiveMaximum, Rule: int64(128), Chain: nil}, + {Target: "parameters.KeyLength", Name: validation.InclusiveMinimum, Rule: int64(1), Chain: nil}, + }}}}}); err != nil { + return result, validation.NewError("network.VirtualNetworkGatewayConnectionsClient", "ResetSharedKey", err.Error()) + } + + req, err := client.ResetSharedKeyPreparer(ctx, resourceGroupName, virtualNetworkGatewayConnectionName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "ResetSharedKey", nil, "Failure preparing request") + return + } + + result, err = client.ResetSharedKeySender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "ResetSharedKey", result.Response(), "Failure sending request") + return + } + + return +} + +// ResetSharedKeyPreparer prepares the ResetSharedKey request. +func (client VirtualNetworkGatewayConnectionsClient) ResetSharedKeyPreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters ConnectionResetSharedKey) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayConnectionName": autorest.Encode("path", virtualNetworkGatewayConnectionName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey/reset", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ResetSharedKeySender sends the ResetSharedKey request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewayConnectionsClient) ResetSharedKeySender(req *http.Request) (future VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// ResetSharedKeyResponder handles the response to the ResetSharedKey request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewayConnectionsClient) ResetSharedKeyResponder(resp *http.Response) (result ConnectionResetSharedKey, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// SetSharedKey the Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection +// shared key for passed virtual network gateway connection in the specified resource group through Network resource +// provider. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayConnectionName - the virtual network gateway connection name. +// parameters - parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation +// throughNetwork resource provider. +func (client VirtualNetworkGatewayConnectionsClient) SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters ConnectionSharedKey) (result VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewayConnectionsClient.SetSharedKey") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Value", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("network.VirtualNetworkGatewayConnectionsClient", "SetSharedKey", err.Error()) + } + + req, err := client.SetSharedKeyPreparer(ctx, resourceGroupName, virtualNetworkGatewayConnectionName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "SetSharedKey", nil, "Failure preparing request") + return + } + + result, err = client.SetSharedKeySender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "SetSharedKey", result.Response(), "Failure sending request") + return + } + + return +} + +// SetSharedKeyPreparer prepares the SetSharedKey request. +func (client VirtualNetworkGatewayConnectionsClient) SetSharedKeyPreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters ConnectionSharedKey) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayConnectionName": autorest.Encode("path", virtualNetworkGatewayConnectionName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// SetSharedKeySender sends the SetSharedKey request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewayConnectionsClient) SetSharedKeySender(req *http.Request) (future VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// SetSharedKeyResponder handles the response to the SetSharedKey request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewayConnectionsClient) SetSharedKeyResponder(resp *http.Response) (result ConnectionSharedKey, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// StartPacketCapture starts packet capture on virtual network gateway connection in the specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayConnectionName - the name of the virtual network gateway connection. +// parameters - virtual network gateway packet capture parameters supplied to start packet capture on gateway +// connection. +func (client VirtualNetworkGatewayConnectionsClient) StartPacketCapture(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters *VpnPacketCaptureStartParameters) (result VirtualNetworkGatewayConnectionsStartPacketCaptureFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewayConnectionsClient.StartPacketCapture") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.StartPacketCapturePreparer(ctx, resourceGroupName, virtualNetworkGatewayConnectionName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "StartPacketCapture", nil, "Failure preparing request") + return + } + + result, err = client.StartPacketCaptureSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "StartPacketCapture", result.Response(), "Failure sending request") + return + } + + return +} + +// StartPacketCapturePreparer prepares the StartPacketCapture request. +func (client VirtualNetworkGatewayConnectionsClient) StartPacketCapturePreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters *VpnPacketCaptureStartParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayConnectionName": autorest.Encode("path", virtualNetworkGatewayConnectionName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/startPacketCapture", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if parameters != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(parameters)) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// StartPacketCaptureSender sends the StartPacketCapture request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewayConnectionsClient) StartPacketCaptureSender(req *http.Request) (future VirtualNetworkGatewayConnectionsStartPacketCaptureFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// StartPacketCaptureResponder handles the response to the StartPacketCapture request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewayConnectionsClient) StartPacketCaptureResponder(resp *http.Response) (result String, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// StopPacketCapture stops packet capture on virtual network gateway connection in the specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayConnectionName - the name of the virtual network gateway Connection. +// parameters - virtual network gateway packet capture parameters supplied to stop packet capture on gateway +// connection. +func (client VirtualNetworkGatewayConnectionsClient) StopPacketCapture(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters VpnPacketCaptureStopParameters) (result VirtualNetworkGatewayConnectionsStopPacketCaptureFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewayConnectionsClient.StopPacketCapture") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.StopPacketCapturePreparer(ctx, resourceGroupName, virtualNetworkGatewayConnectionName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "StopPacketCapture", nil, "Failure preparing request") + return + } + + result, err = client.StopPacketCaptureSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "StopPacketCapture", result.Response(), "Failure sending request") + return + } + + return +} + +// StopPacketCapturePreparer prepares the StopPacketCapture request. +func (client VirtualNetworkGatewayConnectionsClient) StopPacketCapturePreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters VpnPacketCaptureStopParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayConnectionName": autorest.Encode("path", virtualNetworkGatewayConnectionName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/stopPacketCapture", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// StopPacketCaptureSender sends the StopPacketCapture request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewayConnectionsClient) StopPacketCaptureSender(req *http.Request) (future VirtualNetworkGatewayConnectionsStopPacketCaptureFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// StopPacketCaptureResponder handles the response to the StopPacketCapture request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewayConnectionsClient) StopPacketCaptureResponder(resp *http.Response) (result String, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// UpdateTags updates a virtual network gateway connection tags. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayConnectionName - the name of the virtual network gateway connection. +// parameters - parameters supplied to update virtual network gateway connection tags. +func (client VirtualNetworkGatewayConnectionsClient) UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters TagsObject) (result VirtualNetworkGatewayConnectionsUpdateTagsFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewayConnectionsClient.UpdateTags") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, virtualNetworkGatewayConnectionName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "UpdateTags", nil, "Failure preparing request") + return + } + + result, err = client.UpdateTagsSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsClient", "UpdateTags", result.Response(), "Failure sending request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client VirtualNetworkGatewayConnectionsClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayConnectionName": autorest.Encode("path", virtualNetworkGatewayConnectionName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewayConnectionsClient) UpdateTagsSender(req *http.Request) (future VirtualNetworkGatewayConnectionsUpdateTagsFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewayConnectionsClient) UpdateTagsResponder(resp *http.Response) (result VirtualNetworkGatewayConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/virtualnetworkgateways.go b/services/network/mgmt/2020-07-01/network/virtualnetworkgateways.go new file mode 100644 index 000000000000..4fc951f87d4f --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/virtualnetworkgateways.go @@ -0,0 +1,1857 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// VirtualNetworkGatewaysClient is the network Client +type VirtualNetworkGatewaysClient struct { + BaseClient +} + +// NewVirtualNetworkGatewaysClient creates an instance of the VirtualNetworkGatewaysClient client. +func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewaysClient { + return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a +// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, +// Azure stack). +func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient { + return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a virtual network gateway in the specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayName - the name of the virtual network gateway. +// parameters - parameters supplied to create or update virtual network gateway operation. +func (client VirtualNetworkGatewaysClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters VirtualNetworkGateway) (result VirtualNetworkGatewaysCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewaysClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.VirtualNetworkGatewayPropertiesFormat", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkGatewayPropertiesFormat.BgpSettings", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkGatewayPropertiesFormat.BgpSettings.Asn", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkGatewayPropertiesFormat.BgpSettings.Asn", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, + {Target: "parameters.VirtualNetworkGatewayPropertiesFormat.BgpSettings.Asn", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + }}, + }}, + {Target: "parameters.VirtualNetworkGatewayPropertiesFormat.ExtendedLocation", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkGatewayPropertiesFormat.ExtendedLocation.Name", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.VirtualNetworkGatewayPropertiesFormat.ExtendedLocation.Type", Name: validation.Null, Rule: true, Chain: nil}, + }}, + }}}}}); err != nil { + return result, validation.NewError("network.VirtualNetworkGatewaysClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, virtualNetworkGatewayName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client VirtualNetworkGatewaysClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters VirtualNetworkGateway) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayName": autorest.Encode("path", virtualNetworkGatewayName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewaysClient) CreateOrUpdateSender(req *http.Request) (future VirtualNetworkGatewaysCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewaysClient) CreateOrUpdateResponder(resp *http.Response) (result VirtualNetworkGateway, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified virtual network gateway. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayName - the name of the virtual network gateway. +func (client VirtualNetworkGatewaysClient) Delete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result VirtualNetworkGatewaysDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewaysClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, virtualNetworkGatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client VirtualNetworkGatewaysClient) DeletePreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayName": autorest.Encode("path", virtualNetworkGatewayName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewaysClient) DeleteSender(req *http.Request) (future VirtualNetworkGatewaysDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewaysClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// DisconnectVirtualNetworkGatewayVpnConnections disconnect vpn connections of virtual network gateway in the specified +// resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayName - the name of the virtual network gateway. +// request - the parameters are supplied to disconnect vpn connections. +func (client VirtualNetworkGatewaysClient) DisconnectVirtualNetworkGatewayVpnConnections(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, request P2SVpnConnectionRequest) (result VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewaysClient.DisconnectVirtualNetworkGatewayVpnConnections") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DisconnectVirtualNetworkGatewayVpnConnectionsPreparer(ctx, resourceGroupName, virtualNetworkGatewayName, request) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "DisconnectVirtualNetworkGatewayVpnConnections", nil, "Failure preparing request") + return + } + + result, err = client.DisconnectVirtualNetworkGatewayVpnConnectionsSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "DisconnectVirtualNetworkGatewayVpnConnections", result.Response(), "Failure sending request") + return + } + + return +} + +// DisconnectVirtualNetworkGatewayVpnConnectionsPreparer prepares the DisconnectVirtualNetworkGatewayVpnConnections request. +func (client VirtualNetworkGatewaysClient) DisconnectVirtualNetworkGatewayVpnConnectionsPreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, request P2SVpnConnectionRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayName": autorest.Encode("path", virtualNetworkGatewayName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/disconnectVirtualNetworkGatewayVpnConnections", pathParameters), + autorest.WithJSON(request), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DisconnectVirtualNetworkGatewayVpnConnectionsSender sends the DisconnectVirtualNetworkGatewayVpnConnections request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewaysClient) DisconnectVirtualNetworkGatewayVpnConnectionsSender(req *http.Request) (future VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DisconnectVirtualNetworkGatewayVpnConnectionsResponder handles the response to the DisconnectVirtualNetworkGatewayVpnConnections request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewaysClient) DisconnectVirtualNetworkGatewayVpnConnectionsResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// Generatevpnclientpackage generates VPN client package for P2S client of the virtual network gateway in the specified +// resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayName - the name of the virtual network gateway. +// parameters - parameters supplied to the generate virtual network gateway VPN client package operation. +func (client VirtualNetworkGatewaysClient) Generatevpnclientpackage(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters VpnClientParameters) (result VirtualNetworkGatewaysGeneratevpnclientpackageFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewaysClient.Generatevpnclientpackage") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GeneratevpnclientpackagePreparer(ctx, resourceGroupName, virtualNetworkGatewayName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Generatevpnclientpackage", nil, "Failure preparing request") + return + } + + result, err = client.GeneratevpnclientpackageSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Generatevpnclientpackage", result.Response(), "Failure sending request") + return + } + + return +} + +// GeneratevpnclientpackagePreparer prepares the Generatevpnclientpackage request. +func (client VirtualNetworkGatewaysClient) GeneratevpnclientpackagePreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters VpnClientParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayName": autorest.Encode("path", virtualNetworkGatewayName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnclientpackage", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GeneratevpnclientpackageSender sends the Generatevpnclientpackage request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewaysClient) GeneratevpnclientpackageSender(req *http.Request) (future VirtualNetworkGatewaysGeneratevpnclientpackageFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// GeneratevpnclientpackageResponder handles the response to the Generatevpnclientpackage request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewaysClient) GeneratevpnclientpackageResponder(resp *http.Response) (result String, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GenerateVpnProfile generates VPN profile for P2S client of the virtual network gateway in the specified resource +// group. Used for IKEV2 and radius based authentication. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayName - the name of the virtual network gateway. +// parameters - parameters supplied to the generate virtual network gateway VPN client package operation. +func (client VirtualNetworkGatewaysClient) GenerateVpnProfile(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters VpnClientParameters) (result VirtualNetworkGatewaysGenerateVpnProfileFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewaysClient.GenerateVpnProfile") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GenerateVpnProfilePreparer(ctx, resourceGroupName, virtualNetworkGatewayName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "GenerateVpnProfile", nil, "Failure preparing request") + return + } + + result, err = client.GenerateVpnProfileSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "GenerateVpnProfile", result.Response(), "Failure sending request") + return + } + + return +} + +// GenerateVpnProfilePreparer prepares the GenerateVpnProfile request. +func (client VirtualNetworkGatewaysClient) GenerateVpnProfilePreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters VpnClientParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayName": autorest.Encode("path", virtualNetworkGatewayName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnprofile", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GenerateVpnProfileSender sends the GenerateVpnProfile request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewaysClient) GenerateVpnProfileSender(req *http.Request) (future VirtualNetworkGatewaysGenerateVpnProfileFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// GenerateVpnProfileResponder handles the response to the GenerateVpnProfile request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewaysClient) GenerateVpnProfileResponder(resp *http.Response) (result String, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Get gets the specified virtual network gateway by resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayName - the name of the virtual network gateway. +func (client VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result VirtualNetworkGateway, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewaysClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, virtualNetworkGatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client VirtualNetworkGatewaysClient) GetPreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayName": autorest.Encode("path", virtualNetworkGatewayName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewaysClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewaysClient) GetResponder(resp *http.Response) (result VirtualNetworkGateway, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetAdvertisedRoutes this operation retrieves a list of routes the virtual network gateway is advertising to the +// specified peer. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayName - the name of the virtual network gateway. +// peer - the IP address of the peer. +func (client VirtualNetworkGatewaysClient) GetAdvertisedRoutes(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, peer string) (result VirtualNetworkGatewaysGetAdvertisedRoutesFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewaysClient.GetAdvertisedRoutes") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetAdvertisedRoutesPreparer(ctx, resourceGroupName, virtualNetworkGatewayName, peer) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "GetAdvertisedRoutes", nil, "Failure preparing request") + return + } + + result, err = client.GetAdvertisedRoutesSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "GetAdvertisedRoutes", result.Response(), "Failure sending request") + return + } + + return +} + +// GetAdvertisedRoutesPreparer prepares the GetAdvertisedRoutes request. +func (client VirtualNetworkGatewaysClient) GetAdvertisedRoutesPreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, peer string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayName": autorest.Encode("path", virtualNetworkGatewayName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + "peer": autorest.Encode("query", peer), + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getAdvertisedRoutes", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetAdvertisedRoutesSender sends the GetAdvertisedRoutes request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewaysClient) GetAdvertisedRoutesSender(req *http.Request) (future VirtualNetworkGatewaysGetAdvertisedRoutesFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// GetAdvertisedRoutesResponder handles the response to the GetAdvertisedRoutes request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewaysClient) GetAdvertisedRoutesResponder(resp *http.Response) (result GatewayRouteListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetBgpPeerStatus the GetBgpPeerStatus operation retrieves the status of all BGP peers. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayName - the name of the virtual network gateway. +// peer - the IP address of the peer to retrieve the status of. +func (client VirtualNetworkGatewaysClient) GetBgpPeerStatus(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, peer string) (result VirtualNetworkGatewaysGetBgpPeerStatusFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewaysClient.GetBgpPeerStatus") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetBgpPeerStatusPreparer(ctx, resourceGroupName, virtualNetworkGatewayName, peer) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "GetBgpPeerStatus", nil, "Failure preparing request") + return + } + + result, err = client.GetBgpPeerStatusSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "GetBgpPeerStatus", result.Response(), "Failure sending request") + return + } + + return +} + +// GetBgpPeerStatusPreparer prepares the GetBgpPeerStatus request. +func (client VirtualNetworkGatewaysClient) GetBgpPeerStatusPreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, peer string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayName": autorest.Encode("path", virtualNetworkGatewayName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(peer) > 0 { + queryParameters["peer"] = autorest.Encode("query", peer) + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getBgpPeerStatus", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetBgpPeerStatusSender sends the GetBgpPeerStatus request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewaysClient) GetBgpPeerStatusSender(req *http.Request) (future VirtualNetworkGatewaysGetBgpPeerStatusFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// GetBgpPeerStatusResponder handles the response to the GetBgpPeerStatus request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewaysClient) GetBgpPeerStatusResponder(resp *http.Response) (result BgpPeerStatusListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetLearnedRoutes this operation retrieves a list of routes the virtual network gateway has learned, including routes +// learned from BGP peers. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayName - the name of the virtual network gateway. +func (client VirtualNetworkGatewaysClient) GetLearnedRoutes(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result VirtualNetworkGatewaysGetLearnedRoutesFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewaysClient.GetLearnedRoutes") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetLearnedRoutesPreparer(ctx, resourceGroupName, virtualNetworkGatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "GetLearnedRoutes", nil, "Failure preparing request") + return + } + + result, err = client.GetLearnedRoutesSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "GetLearnedRoutes", result.Response(), "Failure sending request") + return + } + + return +} + +// GetLearnedRoutesPreparer prepares the GetLearnedRoutes request. +func (client VirtualNetworkGatewaysClient) GetLearnedRoutesPreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayName": autorest.Encode("path", virtualNetworkGatewayName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getLearnedRoutes", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetLearnedRoutesSender sends the GetLearnedRoutes request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewaysClient) GetLearnedRoutesSender(req *http.Request) (future VirtualNetworkGatewaysGetLearnedRoutesFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// GetLearnedRoutesResponder handles the response to the GetLearnedRoutes request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewaysClient) GetLearnedRoutesResponder(resp *http.Response) (result GatewayRouteListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetVpnclientConnectionHealth get VPN client connection health detail per P2S client connection of the virtual +// network gateway in the specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayName - the name of the virtual network gateway. +func (client VirtualNetworkGatewaysClient) GetVpnclientConnectionHealth(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result VirtualNetworkGatewaysGetVpnclientConnectionHealthFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewaysClient.GetVpnclientConnectionHealth") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetVpnclientConnectionHealthPreparer(ctx, resourceGroupName, virtualNetworkGatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "GetVpnclientConnectionHealth", nil, "Failure preparing request") + return + } + + result, err = client.GetVpnclientConnectionHealthSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "GetVpnclientConnectionHealth", result.Response(), "Failure sending request") + return + } + + return +} + +// GetVpnclientConnectionHealthPreparer prepares the GetVpnclientConnectionHealth request. +func (client VirtualNetworkGatewaysClient) GetVpnclientConnectionHealthPreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayName": autorest.Encode("path", virtualNetworkGatewayName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getVpnClientConnectionHealth", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetVpnclientConnectionHealthSender sends the GetVpnclientConnectionHealth request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewaysClient) GetVpnclientConnectionHealthSender(req *http.Request) (future VirtualNetworkGatewaysGetVpnclientConnectionHealthFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// GetVpnclientConnectionHealthResponder handles the response to the GetVpnclientConnectionHealth request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewaysClient) GetVpnclientConnectionHealthResponder(resp *http.Response) (result VpnClientConnectionHealthDetailListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetVpnclientIpsecParameters the Get VpnclientIpsecParameters operation retrieves information about the vpnclient +// ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource +// provider. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayName - the virtual network gateway name. +func (client VirtualNetworkGatewaysClient) GetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewaysClient.GetVpnclientIpsecParameters") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetVpnclientIpsecParametersPreparer(ctx, resourceGroupName, virtualNetworkGatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "GetVpnclientIpsecParameters", nil, "Failure preparing request") + return + } + + result, err = client.GetVpnclientIpsecParametersSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "GetVpnclientIpsecParameters", result.Response(), "Failure sending request") + return + } + + return +} + +// GetVpnclientIpsecParametersPreparer prepares the GetVpnclientIpsecParameters request. +func (client VirtualNetworkGatewaysClient) GetVpnclientIpsecParametersPreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayName": autorest.Encode("path", virtualNetworkGatewayName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnclientipsecparameters", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetVpnclientIpsecParametersSender sends the GetVpnclientIpsecParameters request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewaysClient) GetVpnclientIpsecParametersSender(req *http.Request) (future VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// GetVpnclientIpsecParametersResponder handles the response to the GetVpnclientIpsecParameters request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewaysClient) GetVpnclientIpsecParametersResponder(resp *http.Response) (result VpnClientIPsecParameters, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetVpnProfilePackageURL gets pre-generated VPN profile for P2S client of the virtual network gateway in the +// specified resource group. The profile needs to be generated first using generateVpnProfile. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayName - the name of the virtual network gateway. +func (client VirtualNetworkGatewaysClient) GetVpnProfilePackageURL(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result VirtualNetworkGatewaysGetVpnProfilePackageURLFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewaysClient.GetVpnProfilePackageURL") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetVpnProfilePackageURLPreparer(ctx, resourceGroupName, virtualNetworkGatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "GetVpnProfilePackageURL", nil, "Failure preparing request") + return + } + + result, err = client.GetVpnProfilePackageURLSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "GetVpnProfilePackageURL", result.Response(), "Failure sending request") + return + } + + return +} + +// GetVpnProfilePackageURLPreparer prepares the GetVpnProfilePackageURL request. +func (client VirtualNetworkGatewaysClient) GetVpnProfilePackageURLPreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayName": autorest.Encode("path", virtualNetworkGatewayName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnprofilepackageurl", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetVpnProfilePackageURLSender sends the GetVpnProfilePackageURL request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewaysClient) GetVpnProfilePackageURLSender(req *http.Request) (future VirtualNetworkGatewaysGetVpnProfilePackageURLFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// GetVpnProfilePackageURLResponder handles the response to the GetVpnProfilePackageURL request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewaysClient) GetVpnProfilePackageURLResponder(resp *http.Response) (result String, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all virtual network gateways by resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client VirtualNetworkGatewaysClient) List(ctx context.Context, resourceGroupName string) (result VirtualNetworkGatewayListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewaysClient.List") + defer func() { + sc := -1 + if result.vnglr.Response.Response != nil { + sc = result.vnglr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.vnglr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure sending request") + return + } + + result.vnglr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "List", resp, "Failure responding to request") + return + } + if result.vnglr.hasNextLink() && result.vnglr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client VirtualNetworkGatewaysClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewaysClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewaysClient) ListResponder(resp *http.Response) (result VirtualNetworkGatewayListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client VirtualNetworkGatewaysClient) listNextResults(ctx context.Context, lastResults VirtualNetworkGatewayListResult) (result VirtualNetworkGatewayListResult, err error) { + req, err := lastResults.virtualNetworkGatewayListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client VirtualNetworkGatewaysClient) ListComplete(ctx context.Context, resourceGroupName string) (result VirtualNetworkGatewayListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewaysClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName) + return +} + +// ListConnections gets all the connections in a virtual network gateway. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayName - the name of the virtual network gateway. +func (client VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result VirtualNetworkGatewayListConnectionsResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewaysClient.ListConnections") + defer func() { + sc := -1 + if result.vnglcr.Response.Response != nil { + sc = result.vnglcr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listConnectionsNextResults + req, err := client.ListConnectionsPreparer(ctx, resourceGroupName, virtualNetworkGatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", nil, "Failure preparing request") + return + } + + resp, err := client.ListConnectionsSender(req) + if err != nil { + result.vnglcr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure sending request") + return + } + + result.vnglcr, err = client.ListConnectionsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ListConnections", resp, "Failure responding to request") + return + } + if result.vnglcr.hasNextLink() && result.vnglcr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListConnectionsPreparer prepares the ListConnections request. +func (client VirtualNetworkGatewaysClient) ListConnectionsPreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayName": autorest.Encode("path", virtualNetworkGatewayName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/connections", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListConnectionsSender sends the ListConnections request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewaysClient) ListConnectionsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListConnectionsResponder handles the response to the ListConnections request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewaysClient) ListConnectionsResponder(resp *http.Response) (result VirtualNetworkGatewayListConnectionsResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listConnectionsNextResults retrieves the next set of results, if any. +func (client VirtualNetworkGatewaysClient) listConnectionsNextResults(ctx context.Context, lastResults VirtualNetworkGatewayListConnectionsResult) (result VirtualNetworkGatewayListConnectionsResult, err error) { + req, err := lastResults.virtualNetworkGatewayListConnectionsResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListConnectionsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure sending next results request") + } + result, err = client.ListConnectionsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "listConnectionsNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListConnectionsComplete enumerates all values, automatically crossing page boundaries as required. +func (client VirtualNetworkGatewaysClient) ListConnectionsComplete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result VirtualNetworkGatewayListConnectionsResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewaysClient.ListConnections") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListConnections(ctx, resourceGroupName, virtualNetworkGatewayName) + return +} + +// Reset resets the primary of the virtual network gateway in the specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayName - the name of the virtual network gateway. +// gatewayVip - virtual network gateway vip address supplied to the begin reset of the active-active feature +// enabled gateway. +func (client VirtualNetworkGatewaysClient) Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, gatewayVip string) (result VirtualNetworkGatewaysResetFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewaysClient.Reset") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ResetPreparer(ctx, resourceGroupName, virtualNetworkGatewayName, gatewayVip) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Reset", nil, "Failure preparing request") + return + } + + result, err = client.ResetSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "Reset", result.Response(), "Failure sending request") + return + } + + return +} + +// ResetPreparer prepares the Reset request. +func (client VirtualNetworkGatewaysClient) ResetPreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, gatewayVip string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayName": autorest.Encode("path", virtualNetworkGatewayName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(gatewayVip) > 0 { + queryParameters["gatewayVip"] = autorest.Encode("query", gatewayVip) + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/reset", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ResetSender sends the Reset request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewaysClient) ResetSender(req *http.Request) (future VirtualNetworkGatewaysResetFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// ResetResponder handles the response to the Reset request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewaysClient) ResetResponder(resp *http.Response) (result VirtualNetworkGateway, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ResetVpnClientSharedKey resets the VPN client shared key of the virtual network gateway in the specified resource +// group. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayName - the name of the virtual network gateway. +func (client VirtualNetworkGatewaysClient) ResetVpnClientSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result VirtualNetworkGatewaysResetVpnClientSharedKeyFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewaysClient.ResetVpnClientSharedKey") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ResetVpnClientSharedKeyPreparer(ctx, resourceGroupName, virtualNetworkGatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ResetVpnClientSharedKey", nil, "Failure preparing request") + return + } + + result, err = client.ResetVpnClientSharedKeySender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "ResetVpnClientSharedKey", result.Response(), "Failure sending request") + return + } + + return +} + +// ResetVpnClientSharedKeyPreparer prepares the ResetVpnClientSharedKey request. +func (client VirtualNetworkGatewaysClient) ResetVpnClientSharedKeyPreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayName": autorest.Encode("path", virtualNetworkGatewayName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/resetvpnclientsharedkey", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ResetVpnClientSharedKeySender sends the ResetVpnClientSharedKey request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewaysClient) ResetVpnClientSharedKeySender(req *http.Request) (future VirtualNetworkGatewaysResetVpnClientSharedKeyFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// ResetVpnClientSharedKeyResponder handles the response to the ResetVpnClientSharedKey request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewaysClient) ResetVpnClientSharedKeyResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// SetVpnclientIpsecParameters the Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S +// client of virtual network gateway in the specified resource group through Network resource provider. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayName - the name of the virtual network gateway. +// vpnclientIpsecParams - parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network +// Gateway P2S client operation through Network resource provider. +func (client VirtualNetworkGatewaysClient) SetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, vpnclientIpsecParams VpnClientIPsecParameters) (result VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewaysClient.SetVpnclientIpsecParameters") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: vpnclientIpsecParams, + Constraints: []validation.Constraint{{Target: "vpnclientIpsecParams.SaLifeTimeSeconds", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "vpnclientIpsecParams.SaDataSizeKilobytes", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("network.VirtualNetworkGatewaysClient", "SetVpnclientIpsecParameters", err.Error()) + } + + req, err := client.SetVpnclientIpsecParametersPreparer(ctx, resourceGroupName, virtualNetworkGatewayName, vpnclientIpsecParams) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SetVpnclientIpsecParameters", nil, "Failure preparing request") + return + } + + result, err = client.SetVpnclientIpsecParametersSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SetVpnclientIpsecParameters", result.Response(), "Failure sending request") + return + } + + return +} + +// SetVpnclientIpsecParametersPreparer prepares the SetVpnclientIpsecParameters request. +func (client VirtualNetworkGatewaysClient) SetVpnclientIpsecParametersPreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, vpnclientIpsecParams VpnClientIPsecParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayName": autorest.Encode("path", virtualNetworkGatewayName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/setvpnclientipsecparameters", pathParameters), + autorest.WithJSON(vpnclientIpsecParams), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// SetVpnclientIpsecParametersSender sends the SetVpnclientIpsecParameters request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewaysClient) SetVpnclientIpsecParametersSender(req *http.Request) (future VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// SetVpnclientIpsecParametersResponder handles the response to the SetVpnclientIpsecParameters request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewaysClient) SetVpnclientIpsecParametersResponder(resp *http.Response) (result VpnClientIPsecParameters, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// StartPacketCapture starts packet capture on virtual network gateway in the specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayName - the name of the virtual network gateway. +// parameters - virtual network gateway packet capture parameters supplied to start packet capture on gateway. +func (client VirtualNetworkGatewaysClient) StartPacketCapture(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters *VpnPacketCaptureStartParameters) (result VirtualNetworkGatewaysStartPacketCaptureFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewaysClient.StartPacketCapture") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.StartPacketCapturePreparer(ctx, resourceGroupName, virtualNetworkGatewayName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "StartPacketCapture", nil, "Failure preparing request") + return + } + + result, err = client.StartPacketCaptureSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "StartPacketCapture", result.Response(), "Failure sending request") + return + } + + return +} + +// StartPacketCapturePreparer prepares the StartPacketCapture request. +func (client VirtualNetworkGatewaysClient) StartPacketCapturePreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters *VpnPacketCaptureStartParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayName": autorest.Encode("path", virtualNetworkGatewayName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/startPacketCapture", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if parameters != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(parameters)) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// StartPacketCaptureSender sends the StartPacketCapture request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewaysClient) StartPacketCaptureSender(req *http.Request) (future VirtualNetworkGatewaysStartPacketCaptureFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// StartPacketCaptureResponder handles the response to the StartPacketCapture request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewaysClient) StartPacketCaptureResponder(resp *http.Response) (result String, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// StopPacketCapture stops packet capture on virtual network gateway in the specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayName - the name of the virtual network gateway. +// parameters - virtual network gateway packet capture parameters supplied to stop packet capture on gateway. +func (client VirtualNetworkGatewaysClient) StopPacketCapture(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters VpnPacketCaptureStopParameters) (result VirtualNetworkGatewaysStopPacketCaptureFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewaysClient.StopPacketCapture") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.StopPacketCapturePreparer(ctx, resourceGroupName, virtualNetworkGatewayName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "StopPacketCapture", nil, "Failure preparing request") + return + } + + result, err = client.StopPacketCaptureSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "StopPacketCapture", result.Response(), "Failure sending request") + return + } + + return +} + +// StopPacketCapturePreparer prepares the StopPacketCapture request. +func (client VirtualNetworkGatewaysClient) StopPacketCapturePreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters VpnPacketCaptureStopParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayName": autorest.Encode("path", virtualNetworkGatewayName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/stopPacketCapture", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// StopPacketCaptureSender sends the StopPacketCapture request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewaysClient) StopPacketCaptureSender(req *http.Request) (future VirtualNetworkGatewaysStopPacketCaptureFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// StopPacketCaptureResponder handles the response to the StopPacketCapture request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewaysClient) StopPacketCaptureResponder(resp *http.Response) (result String, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// SupportedVpnDevices gets a xml format representation for supported vpn devices. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayName - the name of the virtual network gateway. +func (client VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result String, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewaysClient.SupportedVpnDevices") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.SupportedVpnDevicesPreparer(ctx, resourceGroupName, virtualNetworkGatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", nil, "Failure preparing request") + return + } + + resp, err := client.SupportedVpnDevicesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", resp, "Failure sending request") + return + } + + result, err = client.SupportedVpnDevicesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "SupportedVpnDevices", resp, "Failure responding to request") + return + } + + return +} + +// SupportedVpnDevicesPreparer prepares the SupportedVpnDevices request. +func (client VirtualNetworkGatewaysClient) SupportedVpnDevicesPreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayName": autorest.Encode("path", virtualNetworkGatewayName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/supportedvpndevices", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// SupportedVpnDevicesSender sends the SupportedVpnDevices request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewaysClient) SupportedVpnDevicesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// SupportedVpnDevicesResponder handles the response to the SupportedVpnDevices request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewaysClient) SupportedVpnDevicesResponder(resp *http.Response) (result String, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Value), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// UpdateTags updates a virtual network gateway tags. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayName - the name of the virtual network gateway. +// parameters - parameters supplied to update virtual network gateway tags. +func (client VirtualNetworkGatewaysClient) UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters TagsObject) (result VirtualNetworkGatewaysUpdateTagsFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewaysClient.UpdateTags") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, virtualNetworkGatewayName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "UpdateTags", nil, "Failure preparing request") + return + } + + result, err = client.UpdateTagsSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "UpdateTags", result.Response(), "Failure sending request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client VirtualNetworkGatewaysClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayName": autorest.Encode("path", virtualNetworkGatewayName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewaysClient) UpdateTagsSender(req *http.Request) (future VirtualNetworkGatewaysUpdateTagsFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewaysClient) UpdateTagsResponder(resp *http.Response) (result VirtualNetworkGateway, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// VpnDeviceConfigurationScript gets a xml format representation for vpn device configuration script. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkGatewayConnectionName - the name of the virtual network gateway connection for which the +// configuration script is generated. +// parameters - parameters supplied to the generate vpn device script operation. +func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters VpnDeviceScriptParameters) (result String, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewaysClient.VpnDeviceConfigurationScript") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.VpnDeviceConfigurationScriptPreparer(ctx, resourceGroupName, virtualNetworkGatewayConnectionName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", nil, "Failure preparing request") + return + } + + resp, err := client.VpnDeviceConfigurationScriptSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", resp, "Failure sending request") + return + } + + result, err = client.VpnDeviceConfigurationScriptResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "VpnDeviceConfigurationScript", resp, "Failure responding to request") + return + } + + return +} + +// VpnDeviceConfigurationScriptPreparer prepares the VpnDeviceConfigurationScript request. +func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScriptPreparer(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters VpnDeviceScriptParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkGatewayConnectionName": autorest.Encode("path", virtualNetworkGatewayConnectionName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/vpndeviceconfigurationscript", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// VpnDeviceConfigurationScriptSender sends the VpnDeviceConfigurationScript request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScriptSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// VpnDeviceConfigurationScriptResponder handles the response to the VpnDeviceConfigurationScript request. The method always +// closes the http.Response Body. +func (client VirtualNetworkGatewaysClient) VpnDeviceConfigurationScriptResponder(resp *http.Response) (result String, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Value), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2020-07-01/network/virtualnetworkpeerings.go new file mode 100644 index 000000000000..9acc919c280d --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/virtualnetworkpeerings.go @@ -0,0 +1,407 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// VirtualNetworkPeeringsClient is the network Client +type VirtualNetworkPeeringsClient struct { + BaseClient +} + +// NewVirtualNetworkPeeringsClient creates an instance of the VirtualNetworkPeeringsClient client. +func NewVirtualNetworkPeeringsClient(subscriptionID string) VirtualNetworkPeeringsClient { + return NewVirtualNetworkPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client using a +// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, +// Azure stack). +func NewVirtualNetworkPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkPeeringsClient { + return VirtualNetworkPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a peering in the specified virtual network. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkName - the name of the virtual network. +// virtualNetworkPeeringName - the name of the peering. +// virtualNetworkPeeringParameters - parameters supplied to the create or update virtual network peering +// operation. +func (client VirtualNetworkPeeringsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string, virtualNetworkPeeringParameters VirtualNetworkPeering) (result VirtualNetworkPeeringsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkPeeringsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: virtualNetworkPeeringParameters, + Constraints: []validation.Constraint{{Target: "virtualNetworkPeeringParameters.VirtualNetworkPeeringPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "virtualNetworkPeeringParameters.VirtualNetworkPeeringPropertiesFormat.RemoteBgpCommunities", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "virtualNetworkPeeringParameters.VirtualNetworkPeeringPropertiesFormat.RemoteBgpCommunities.VirtualNetworkCommunity", Name: validation.Null, Rule: true, Chain: nil}}}, + }}}}}); err != nil { + return result, validation.NewError("network.VirtualNetworkPeeringsClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, virtualNetworkPeeringParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client VirtualNetworkPeeringsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string, virtualNetworkPeeringParameters VirtualNetworkPeering) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkName": autorest.Encode("path", virtualNetworkName), + "virtualNetworkPeeringName": autorest.Encode("path", virtualNetworkPeeringName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + virtualNetworkPeeringParameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}", pathParameters), + autorest.WithJSON(virtualNetworkPeeringParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkPeeringsClient) CreateOrUpdateSender(req *http.Request) (future VirtualNetworkPeeringsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client VirtualNetworkPeeringsClient) CreateOrUpdateResponder(resp *http.Response) (result VirtualNetworkPeering, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified virtual network peering. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkName - the name of the virtual network. +// virtualNetworkPeeringName - the name of the virtual network peering. +func (client VirtualNetworkPeeringsClient) Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result VirtualNetworkPeeringsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkPeeringsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, virtualNetworkName, virtualNetworkPeeringName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client VirtualNetworkPeeringsClient) DeletePreparer(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkName": autorest.Encode("path", virtualNetworkName), + "virtualNetworkPeeringName": autorest.Encode("path", virtualNetworkPeeringName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkPeeringsClient) DeleteSender(req *http.Request) (future VirtualNetworkPeeringsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client VirtualNetworkPeeringsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified virtual network peering. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkName - the name of the virtual network. +// virtualNetworkPeeringName - the name of the virtual network peering. +func (client VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result VirtualNetworkPeering, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkPeeringsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, virtualNetworkName, virtualNetworkPeeringName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client VirtualNetworkPeeringsClient) GetPreparer(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkName": autorest.Encode("path", virtualNetworkName), + "virtualNetworkPeeringName": autorest.Encode("path", virtualNetworkPeeringName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkPeeringsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client VirtualNetworkPeeringsClient) GetResponder(resp *http.Response) (result VirtualNetworkPeering, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all virtual network peerings in a virtual network. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkName - the name of the virtual network. +func (client VirtualNetworkPeeringsClient) List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result VirtualNetworkPeeringListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkPeeringsClient.List") + defer func() { + sc := -1 + if result.vnplr.Response.Response != nil { + sc = result.vnplr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, virtualNetworkName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.vnplr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure sending request") + return + } + + result.vnplr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "List", resp, "Failure responding to request") + return + } + if result.vnplr.hasNextLink() && result.vnplr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client VirtualNetworkPeeringsClient) ListPreparer(ctx context.Context, resourceGroupName string, virtualNetworkName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkName": autorest.Encode("path", virtualNetworkName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkPeeringsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client VirtualNetworkPeeringsClient) ListResponder(resp *http.Response) (result VirtualNetworkPeeringListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client VirtualNetworkPeeringsClient) listNextResults(ctx context.Context, lastResults VirtualNetworkPeeringListResult) (result VirtualNetworkPeeringListResult, err error) { + req, err := lastResults.virtualNetworkPeeringListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client VirtualNetworkPeeringsClient) ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result VirtualNetworkPeeringListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkPeeringsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, virtualNetworkName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/virtualnetworks.go b/services/network/mgmt/2020-07-01/network/virtualnetworks.go new file mode 100644 index 000000000000..73053fd2c333 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/virtualnetworks.go @@ -0,0 +1,793 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// VirtualNetworksClient is the network Client +type VirtualNetworksClient struct { + BaseClient +} + +// NewVirtualNetworksClient creates an instance of the VirtualNetworksClient client. +func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient { + return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient { + return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CheckIPAddressAvailability checks whether a private IP address is available for use. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkName - the name of the virtual network. +// IPAddress - the private IP address to be verified. +func (client VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Context, resourceGroupName string, virtualNetworkName string, IPAddress string) (result IPAddressAvailabilityResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworksClient.CheckIPAddressAvailability") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CheckIPAddressAvailabilityPreparer(ctx, resourceGroupName, virtualNetworkName, IPAddress) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", nil, "Failure preparing request") + return + } + + resp, err := client.CheckIPAddressAvailabilitySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure sending request") + return + } + + result, err = client.CheckIPAddressAvailabilityResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CheckIPAddressAvailability", resp, "Failure responding to request") + return + } + + return +} + +// CheckIPAddressAvailabilityPreparer prepares the CheckIPAddressAvailability request. +func (client VirtualNetworksClient) CheckIPAddressAvailabilityPreparer(ctx context.Context, resourceGroupName string, virtualNetworkName string, IPAddress string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkName": autorest.Encode("path", virtualNetworkName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + "ipAddress": autorest.Encode("query", IPAddress), + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/CheckIPAddressAvailability", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CheckIPAddressAvailabilitySender sends the CheckIPAddressAvailability request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworksClient) CheckIPAddressAvailabilitySender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CheckIPAddressAvailabilityResponder handles the response to the CheckIPAddressAvailability request. The method always +// closes the http.Response Body. +func (client VirtualNetworksClient) CheckIPAddressAvailabilityResponder(resp *http.Response) (result IPAddressAvailabilityResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// CreateOrUpdate creates or updates a virtual network in the specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkName - the name of the virtual network. +// parameters - parameters supplied to the create or update virtual network operation. +func (client VirtualNetworksClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters VirtualNetwork) (result VirtualNetworksCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworksClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.ExtendedLocation", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.ExtendedLocation.Name", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.ExtendedLocation.Type", Name: validation.Null, Rule: true, Chain: nil}, + }}, + {Target: "parameters.VirtualNetworkPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkPropertiesFormat.BgpCommunities", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkPropertiesFormat.BgpCommunities.VirtualNetworkCommunity", Name: validation.Null, Rule: true, Chain: nil}}}, + }}}}}); err != nil { + return result, validation.NewError("network.VirtualNetworksClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, virtualNetworkName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client VirtualNetworksClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters VirtualNetwork) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkName": autorest.Encode("path", virtualNetworkName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworksClient) CreateOrUpdateSender(req *http.Request) (future VirtualNetworksCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client VirtualNetworksClient) CreateOrUpdateResponder(resp *http.Response) (result VirtualNetwork, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified virtual network. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkName - the name of the virtual network. +func (client VirtualNetworksClient) Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result VirtualNetworksDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworksClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, virtualNetworkName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client VirtualNetworksClient) DeletePreparer(ctx context.Context, resourceGroupName string, virtualNetworkName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkName": autorest.Encode("path", virtualNetworkName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworksClient) DeleteSender(req *http.Request) (future VirtualNetworksDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client VirtualNetworksClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified virtual network by resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkName - the name of the virtual network. +// expand - expands referenced resources. +func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result VirtualNetwork, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworksClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, virtualNetworkName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client VirtualNetworksClient) GetPreparer(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkName": autorest.Encode("path", virtualNetworkName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworksClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client VirtualNetworksClient) GetResponder(resp *http.Response) (result VirtualNetwork, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all virtual networks in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName string) (result VirtualNetworkListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworksClient.List") + defer func() { + sc := -1 + if result.vnlr.Response.Response != nil { + sc = result.vnlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.vnlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure sending request") + return + } + + result.vnlr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "List", resp, "Failure responding to request") + return + } + if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client VirtualNetworksClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworksClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client VirtualNetworksClient) ListResponder(resp *http.Response) (result VirtualNetworkListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client VirtualNetworksClient) listNextResults(ctx context.Context, lastResults VirtualNetworkListResult) (result VirtualNetworkListResult, err error) { + req, err := lastResults.virtualNetworkListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client VirtualNetworksClient) ListComplete(ctx context.Context, resourceGroupName string) (result VirtualNetworkListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworksClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName) + return +} + +// ListAll gets all virtual networks in a subscription. +func (client VirtualNetworksClient) ListAll(ctx context.Context) (result VirtualNetworkListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworksClient.ListAll") + defer func() { + sc := -1 + if result.vnlr.Response.Response != nil { + sc = result.vnlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listAllNextResults + req, err := client.ListAllPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", nil, "Failure preparing request") + return + } + + resp, err := client.ListAllSender(req) + if err != nil { + result.vnlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure sending request") + return + } + + result.vnlr, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListAll", resp, "Failure responding to request") + return + } + if result.vnlr.hasNextLink() && result.vnlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListAllPreparer prepares the ListAll request. +func (client VirtualNetworksClient) ListAllPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworks", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAllSender sends the ListAll request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworksClient) ListAllSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAllResponder handles the response to the ListAll request. The method always +// closes the http.Response Body. +func (client VirtualNetworksClient) ListAllResponder(resp *http.Response) (result VirtualNetworkListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listAllNextResults retrieves the next set of results, if any. +func (client VirtualNetworksClient) listAllNextResults(ctx context.Context, lastResults VirtualNetworkListResult) (result VirtualNetworkListResult, err error) { + req, err := lastResults.virtualNetworkListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListAllSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure sending next results request") + } + result, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listAllNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListAllComplete enumerates all values, automatically crossing page boundaries as required. +func (client VirtualNetworksClient) ListAllComplete(ctx context.Context) (result VirtualNetworkListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworksClient.ListAll") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListAll(ctx) + return +} + +// ListUsage lists usage stats. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkName - the name of the virtual network. +func (client VirtualNetworksClient) ListUsage(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result VirtualNetworkListUsageResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworksClient.ListUsage") + defer func() { + sc := -1 + if result.vnlur.Response.Response != nil { + sc = result.vnlur.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listUsageNextResults + req, err := client.ListUsagePreparer(ctx, resourceGroupName, virtualNetworkName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", nil, "Failure preparing request") + return + } + + resp, err := client.ListUsageSender(req) + if err != nil { + result.vnlur.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure sending request") + return + } + + result.vnlur, err = client.ListUsageResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "ListUsage", resp, "Failure responding to request") + return + } + if result.vnlur.hasNextLink() && result.vnlur.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListUsagePreparer prepares the ListUsage request. +func (client VirtualNetworksClient) ListUsagePreparer(ctx context.Context, resourceGroupName string, virtualNetworkName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkName": autorest.Encode("path", virtualNetworkName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/usages", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListUsageSender sends the ListUsage request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworksClient) ListUsageSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListUsageResponder handles the response to the ListUsage request. The method always +// closes the http.Response Body. +func (client VirtualNetworksClient) ListUsageResponder(resp *http.Response) (result VirtualNetworkListUsageResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listUsageNextResults retrieves the next set of results, if any. +func (client VirtualNetworksClient) listUsageNextResults(ctx context.Context, lastResults VirtualNetworkListUsageResult) (result VirtualNetworkListUsageResult, err error) { + req, err := lastResults.virtualNetworkListUsageResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListUsageSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure sending next results request") + } + result, err = client.ListUsageResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "listUsageNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListUsageComplete enumerates all values, automatically crossing page boundaries as required. +func (client VirtualNetworksClient) ListUsageComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result VirtualNetworkListUsageResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworksClient.ListUsage") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListUsage(ctx, resourceGroupName, virtualNetworkName) + return +} + +// UpdateTags updates a virtual network tags. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualNetworkName - the name of the virtual network. +// parameters - parameters supplied to update virtual network tags. +func (client VirtualNetworksClient) UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters TagsObject) (result VirtualNetwork, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworksClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, virtualNetworkName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworksClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client VirtualNetworksClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualNetworkName": autorest.Encode("path", virtualNetworkName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworksClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client VirtualNetworksClient) UpdateTagsResponder(resp *http.Response) (result VirtualNetwork, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/virtualnetworktaps.go b/services/network/mgmt/2020-07-01/network/virtualnetworktaps.go new file mode 100644 index 000000000000..7ca97e5ee696 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/virtualnetworktaps.go @@ -0,0 +1,620 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// VirtualNetworkTapsClient is the network Client +type VirtualNetworkTapsClient struct { + BaseClient +} + +// NewVirtualNetworkTapsClient creates an instance of the VirtualNetworkTapsClient client. +func NewVirtualNetworkTapsClient(subscriptionID string) VirtualNetworkTapsClient { + return NewVirtualNetworkTapsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewVirtualNetworkTapsClientWithBaseURI creates an instance of the VirtualNetworkTapsClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewVirtualNetworkTapsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkTapsClient { + return VirtualNetworkTapsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a Virtual Network Tap. +// Parameters: +// resourceGroupName - the name of the resource group. +// tapName - the name of the virtual network tap. +// parameters - parameters supplied to the create or update virtual network tap operation. +func (client VirtualNetworkTapsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, tapName string, parameters VirtualNetworkTap) (result VirtualNetworkTapsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkTapsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.VirtualNetworkTapPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.ExtendedLocation", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.ExtendedLocation.Name", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.ExtendedLocation.Type", Name: validation.Null, Rule: true, Chain: nil}, + }}, + {Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat.PublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}}}, + }}, + }}, + }}, + }}, + }}, + {Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress.ExtendedLocation", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress.ExtendedLocation.Name", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress.ExtendedLocation.Type", Name: validation.Null, Rule: true, Chain: nil}, + }}, + {Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat.PublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}}}, + }}, + }}, + }}, + }}, + }}, + }}}}}); err != nil { + return result, validation.NewError("network.VirtualNetworkTapsClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, tapName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client VirtualNetworkTapsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, tapName string, parameters VirtualNetworkTap) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "tapName": autorest.Encode("path", tapName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkTaps/{tapName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkTapsClient) CreateOrUpdateSender(req *http.Request) (future VirtualNetworkTapsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client VirtualNetworkTapsClient) CreateOrUpdateResponder(resp *http.Response) (result VirtualNetworkTap, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified virtual network tap. +// Parameters: +// resourceGroupName - the name of the resource group. +// tapName - the name of the virtual network tap. +func (client VirtualNetworkTapsClient) Delete(ctx context.Context, resourceGroupName string, tapName string) (result VirtualNetworkTapsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkTapsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, tapName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client VirtualNetworkTapsClient) DeletePreparer(ctx context.Context, resourceGroupName string, tapName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "tapName": autorest.Encode("path", tapName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkTaps/{tapName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkTapsClient) DeleteSender(req *http.Request) (future VirtualNetworkTapsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client VirtualNetworkTapsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets information about the specified virtual network tap. +// Parameters: +// resourceGroupName - the name of the resource group. +// tapName - the name of virtual network tap. +func (client VirtualNetworkTapsClient) Get(ctx context.Context, resourceGroupName string, tapName string) (result VirtualNetworkTap, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkTapsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, tapName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client VirtualNetworkTapsClient) GetPreparer(ctx context.Context, resourceGroupName string, tapName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "tapName": autorest.Encode("path", tapName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkTaps/{tapName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkTapsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client VirtualNetworkTapsClient) GetResponder(resp *http.Response) (result VirtualNetworkTap, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListAll gets all the VirtualNetworkTaps in a subscription. +func (client VirtualNetworkTapsClient) ListAll(ctx context.Context) (result VirtualNetworkTapListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkTapsClient.ListAll") + defer func() { + sc := -1 + if result.vntlr.Response.Response != nil { + sc = result.vntlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listAllNextResults + req, err := client.ListAllPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListAll", nil, "Failure preparing request") + return + } + + resp, err := client.ListAllSender(req) + if err != nil { + result.vntlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListAll", resp, "Failure sending request") + return + } + + result.vntlr, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListAll", resp, "Failure responding to request") + return + } + if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListAllPreparer prepares the ListAll request. +func (client VirtualNetworkTapsClient) ListAllPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworkTaps", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAllSender sends the ListAll request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkTapsClient) ListAllSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAllResponder handles the response to the ListAll request. The method always +// closes the http.Response Body. +func (client VirtualNetworkTapsClient) ListAllResponder(resp *http.Response) (result VirtualNetworkTapListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listAllNextResults retrieves the next set of results, if any. +func (client VirtualNetworkTapsClient) listAllNextResults(ctx context.Context, lastResults VirtualNetworkTapListResult) (result VirtualNetworkTapListResult, err error) { + req, err := lastResults.virtualNetworkTapListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listAllNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListAllSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listAllNextResults", resp, "Failure sending next results request") + } + result, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listAllNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListAllComplete enumerates all values, automatically crossing page boundaries as required. +func (client VirtualNetworkTapsClient) ListAllComplete(ctx context.Context) (result VirtualNetworkTapListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkTapsClient.ListAll") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListAll(ctx) + return +} + +// ListByResourceGroup gets all the VirtualNetworkTaps in a subscription. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client VirtualNetworkTapsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result VirtualNetworkTapListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkTapsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.vntlr.Response.Response != nil { + sc = result.vntlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.vntlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.vntlr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.vntlr.hasNextLink() && result.vntlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client VirtualNetworkTapsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkTaps", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkTapsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client VirtualNetworkTapsClient) ListByResourceGroupResponder(resp *http.Response) (result VirtualNetworkTapListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client VirtualNetworkTapsClient) listByResourceGroupNextResults(ctx context.Context, lastResults VirtualNetworkTapListResult) (result VirtualNetworkTapListResult, err error) { + req, err := lastResults.virtualNetworkTapListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client VirtualNetworkTapsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result VirtualNetworkTapListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkTapsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// UpdateTags updates an VirtualNetworkTap tags. +// Parameters: +// resourceGroupName - the name of the resource group. +// tapName - the name of the tap. +// tapParameters - parameters supplied to update VirtualNetworkTap tags. +func (client VirtualNetworkTapsClient) UpdateTags(ctx context.Context, resourceGroupName string, tapName string, tapParameters TagsObject) (result VirtualNetworkTap, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkTapsClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, tapName, tapParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client VirtualNetworkTapsClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, tapName string, tapParameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "tapName": autorest.Encode("path", tapName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkTaps/{tapName}", pathParameters), + autorest.WithJSON(tapParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualNetworkTapsClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client VirtualNetworkTapsClient) UpdateTagsResponder(resp *http.Response) (result VirtualNetworkTap, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/virtualrouterpeerings.go b/services/network/mgmt/2020-07-01/network/virtualrouterpeerings.go new file mode 100644 index 000000000000..d68b4653bd41 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/virtualrouterpeerings.go @@ -0,0 +1,409 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// VirtualRouterPeeringsClient is the network Client +type VirtualRouterPeeringsClient struct { + BaseClient +} + +// NewVirtualRouterPeeringsClient creates an instance of the VirtualRouterPeeringsClient client. +func NewVirtualRouterPeeringsClient(subscriptionID string) VirtualRouterPeeringsClient { + return NewVirtualRouterPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewVirtualRouterPeeringsClientWithBaseURI creates an instance of the VirtualRouterPeeringsClient client using a +// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, +// Azure stack). +func NewVirtualRouterPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualRouterPeeringsClient { + return VirtualRouterPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates the specified Virtual Router Peering. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualRouterName - the name of the Virtual Router. +// peeringName - the name of the Virtual Router Peering. +// parameters - parameters supplied to the create or update Virtual Router Peering operation. +func (client VirtualRouterPeeringsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualRouterName string, peeringName string, parameters VirtualRouterPeering) (result VirtualRouterPeeringsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualRouterPeeringsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.VirtualRouterPeeringProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualRouterPeeringProperties.PeerAsn", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualRouterPeeringProperties.PeerAsn", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, + {Target: "parameters.VirtualRouterPeeringProperties.PeerAsn", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + }}, + }}}}}); err != nil { + return result, validation.NewError("network.VirtualRouterPeeringsClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, virtualRouterName, peeringName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client VirtualRouterPeeringsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, virtualRouterName string, peeringName string, parameters VirtualRouterPeering) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "peeringName": autorest.Encode("path", peeringName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualRouterName": autorest.Encode("path", virtualRouterName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + parameters.Type = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}/peerings/{peeringName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualRouterPeeringsClient) CreateOrUpdateSender(req *http.Request) (future VirtualRouterPeeringsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client VirtualRouterPeeringsClient) CreateOrUpdateResponder(resp *http.Response) (result VirtualRouterPeering, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified peering from a Virtual Router. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualRouterName - the name of the Virtual Router. +// peeringName - the name of the peering. +func (client VirtualRouterPeeringsClient) Delete(ctx context.Context, resourceGroupName string, virtualRouterName string, peeringName string) (result VirtualRouterPeeringsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualRouterPeeringsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, virtualRouterName, peeringName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client VirtualRouterPeeringsClient) DeletePreparer(ctx context.Context, resourceGroupName string, virtualRouterName string, peeringName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "peeringName": autorest.Encode("path", peeringName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualRouterName": autorest.Encode("path", virtualRouterName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}/peerings/{peeringName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualRouterPeeringsClient) DeleteSender(req *http.Request) (future VirtualRouterPeeringsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client VirtualRouterPeeringsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified Virtual Router Peering. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualRouterName - the name of the Virtual Router. +// peeringName - the name of the Virtual Router Peering. +func (client VirtualRouterPeeringsClient) Get(ctx context.Context, resourceGroupName string, virtualRouterName string, peeringName string) (result VirtualRouterPeering, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualRouterPeeringsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, virtualRouterName, peeringName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client VirtualRouterPeeringsClient) GetPreparer(ctx context.Context, resourceGroupName string, virtualRouterName string, peeringName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "peeringName": autorest.Encode("path", peeringName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualRouterName": autorest.Encode("path", virtualRouterName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}/peerings/{peeringName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualRouterPeeringsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client VirtualRouterPeeringsClient) GetResponder(resp *http.Response) (result VirtualRouterPeering, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all Virtual Router Peerings in a Virtual Router resource. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualRouterName - the name of the Virtual Router. +func (client VirtualRouterPeeringsClient) List(ctx context.Context, resourceGroupName string, virtualRouterName string) (result VirtualRouterPeeringListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualRouterPeeringsClient.List") + defer func() { + sc := -1 + if result.vrplr.Response.Response != nil { + sc = result.vrplr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, virtualRouterName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.vrplr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "List", resp, "Failure sending request") + return + } + + result.vrplr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "List", resp, "Failure responding to request") + return + } + if result.vrplr.hasNextLink() && result.vrplr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client VirtualRouterPeeringsClient) ListPreparer(ctx context.Context, resourceGroupName string, virtualRouterName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualRouterName": autorest.Encode("path", virtualRouterName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}/peerings", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualRouterPeeringsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client VirtualRouterPeeringsClient) ListResponder(resp *http.Response) (result VirtualRouterPeeringListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client VirtualRouterPeeringsClient) listNextResults(ctx context.Context, lastResults VirtualRouterPeeringListResult) (result VirtualRouterPeeringListResult, err error) { + req, err := lastResults.virtualRouterPeeringListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRouterPeeringsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client VirtualRouterPeeringsClient) ListComplete(ctx context.Context, resourceGroupName string, virtualRouterName string) (result VirtualRouterPeeringListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualRouterPeeringsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, virtualRouterName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/virtualrouters.go b/services/network/mgmt/2020-07-01/network/virtualrouters.go new file mode 100644 index 000000000000..0f8d20c882c0 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/virtualrouters.go @@ -0,0 +1,516 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// VirtualRoutersClient is the network Client +type VirtualRoutersClient struct { + BaseClient +} + +// NewVirtualRoutersClient creates an instance of the VirtualRoutersClient client. +func NewVirtualRoutersClient(subscriptionID string) VirtualRoutersClient { + return NewVirtualRoutersClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewVirtualRoutersClientWithBaseURI creates an instance of the VirtualRoutersClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewVirtualRoutersClientWithBaseURI(baseURI string, subscriptionID string) VirtualRoutersClient { + return VirtualRoutersClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates the specified Virtual Router. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualRouterName - the name of the Virtual Router. +// parameters - parameters supplied to the create or update Virtual Router. +func (client VirtualRoutersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualRouterName string, parameters VirtualRouter) (result VirtualRoutersCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualRoutersClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.VirtualRouterPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualRouterPropertiesFormat.VirtualRouterAsn", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.VirtualRouterPropertiesFormat.VirtualRouterAsn", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, + {Target: "parameters.VirtualRouterPropertiesFormat.VirtualRouterAsn", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + }}, + }}}}}); err != nil { + return result, validation.NewError("network.VirtualRoutersClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, virtualRouterName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client VirtualRoutersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, virtualRouterName string, parameters VirtualRouter) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualRouterName": autorest.Encode("path", virtualRouterName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualRoutersClient) CreateOrUpdateSender(req *http.Request) (future VirtualRoutersCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client VirtualRoutersClient) CreateOrUpdateResponder(resp *http.Response) (result VirtualRouter, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified Virtual Router. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualRouterName - the name of the Virtual Router. +func (client VirtualRoutersClient) Delete(ctx context.Context, resourceGroupName string, virtualRouterName string) (result VirtualRoutersDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualRoutersClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, virtualRouterName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client VirtualRoutersClient) DeletePreparer(ctx context.Context, resourceGroupName string, virtualRouterName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualRouterName": autorest.Encode("path", virtualRouterName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualRoutersClient) DeleteSender(req *http.Request) (future VirtualRoutersDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client VirtualRoutersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified Virtual Router. +// Parameters: +// resourceGroupName - the name of the resource group. +// virtualRouterName - the name of the Virtual Router. +// expand - expands referenced resources. +func (client VirtualRoutersClient) Get(ctx context.Context, resourceGroupName string, virtualRouterName string, expand string) (result VirtualRouter, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualRoutersClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, virtualRouterName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client VirtualRoutersClient) GetPreparer(ctx context.Context, resourceGroupName string, virtualRouterName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualRouterName": autorest.Encode("path", virtualRouterName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualRoutersClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client VirtualRoutersClient) GetResponder(resp *http.Response) (result VirtualRouter, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all the Virtual Routers in a subscription. +func (client VirtualRoutersClient) List(ctx context.Context) (result VirtualRouterListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualRoutersClient.List") + defer func() { + sc := -1 + if result.vrlr.Response.Response != nil { + sc = result.vrlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.vrlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "List", resp, "Failure sending request") + return + } + + result.vrlr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "List", resp, "Failure responding to request") + return + } + if result.vrlr.hasNextLink() && result.vrlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client VirtualRoutersClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualRouters", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualRoutersClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client VirtualRoutersClient) ListResponder(resp *http.Response) (result VirtualRouterListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client VirtualRoutersClient) listNextResults(ctx context.Context, lastResults VirtualRouterListResult) (result VirtualRouterListResult, err error) { + req, err := lastResults.virtualRouterListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client VirtualRoutersClient) ListComplete(ctx context.Context) (result VirtualRouterListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualRoutersClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} + +// ListByResourceGroup lists all Virtual Routers in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client VirtualRoutersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result VirtualRouterListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualRoutersClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.vrlr.Response.Response != nil { + sc = result.vrlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.vrlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.vrlr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.vrlr.hasNextLink() && result.vrlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client VirtualRoutersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualRoutersClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client VirtualRoutersClient) ListByResourceGroupResponder(resp *http.Response) (result VirtualRouterListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client VirtualRoutersClient) listByResourceGroupNextResults(ctx context.Context, lastResults VirtualRouterListResult) (result VirtualRouterListResult, err error) { + req, err := lastResults.virtualRouterListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualRoutersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client VirtualRoutersClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result VirtualRouterListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualRoutersClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/virtualwans.go b/services/network/mgmt/2020-07-01/network/virtualwans.go new file mode 100644 index 000000000000..412a6af792ff --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/virtualwans.go @@ -0,0 +1,579 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// VirtualWansClient is the network Client +type VirtualWansClient struct { + BaseClient +} + +// NewVirtualWansClient creates an instance of the VirtualWansClient client. +func NewVirtualWansClient(subscriptionID string) VirtualWansClient { + return NewVirtualWansClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewVirtualWansClientWithBaseURI creates an instance of the VirtualWansClient client using a custom endpoint. Use +// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewVirtualWansClientWithBaseURI(baseURI string, subscriptionID string) VirtualWansClient { + return VirtualWansClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. +// Parameters: +// resourceGroupName - the resource group name of the VirtualWan. +// virtualWANName - the name of the VirtualWAN being created or updated. +// wANParameters - parameters supplied to create or update VirtualWAN. +func (client VirtualWansClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualWANName string, wANParameters VirtualWAN) (result VirtualWansCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualWansClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, virtualWANName, wANParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client VirtualWansClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, virtualWANName string, wANParameters VirtualWAN) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "VirtualWANName": autorest.Encode("path", virtualWANName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + wANParameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}", pathParameters), + autorest.WithJSON(wANParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualWansClient) CreateOrUpdateSender(req *http.Request) (future VirtualWansCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client VirtualWansClient) CreateOrUpdateResponder(resp *http.Response) (result VirtualWAN, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes a VirtualWAN. +// Parameters: +// resourceGroupName - the resource group name of the VirtualWan. +// virtualWANName - the name of the VirtualWAN being deleted. +func (client VirtualWansClient) Delete(ctx context.Context, resourceGroupName string, virtualWANName string) (result VirtualWansDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualWansClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, virtualWANName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client VirtualWansClient) DeletePreparer(ctx context.Context, resourceGroupName string, virtualWANName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "VirtualWANName": autorest.Encode("path", virtualWANName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualWansClient) DeleteSender(req *http.Request) (future VirtualWansDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client VirtualWansClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get retrieves the details of a VirtualWAN. +// Parameters: +// resourceGroupName - the resource group name of the VirtualWan. +// virtualWANName - the name of the VirtualWAN being retrieved. +func (client VirtualWansClient) Get(ctx context.Context, resourceGroupName string, virtualWANName string) (result VirtualWAN, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualWansClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, virtualWANName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client VirtualWansClient) GetPreparer(ctx context.Context, resourceGroupName string, virtualWANName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "VirtualWANName": autorest.Encode("path", virtualWANName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualWansClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client VirtualWansClient) GetResponder(resp *http.Response) (result VirtualWAN, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all the VirtualWANs in a subscription. +func (client VirtualWansClient) List(ctx context.Context) (result ListVirtualWANsResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualWansClient.List") + defer func() { + sc := -1 + if result.lvwnr.Response.Response != nil { + sc = result.lvwnr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.lvwnr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "List", resp, "Failure sending request") + return + } + + result.lvwnr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "List", resp, "Failure responding to request") + return + } + if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client VirtualWansClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualWans", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualWansClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client VirtualWansClient) ListResponder(resp *http.Response) (result ListVirtualWANsResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client VirtualWansClient) listNextResults(ctx context.Context, lastResults ListVirtualWANsResult) (result ListVirtualWANsResult, err error) { + req, err := lastResults.listVirtualWANsResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VirtualWansClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VirtualWansClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client VirtualWansClient) ListComplete(ctx context.Context) (result ListVirtualWANsResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualWansClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} + +// ListByResourceGroup lists all the VirtualWANs in a resource group. +// Parameters: +// resourceGroupName - the resource group name of the VirtualWan. +func (client VirtualWansClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ListVirtualWANsResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualWansClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.lvwnr.Response.Response != nil { + sc = result.lvwnr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.lvwnr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.lvwnr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.lvwnr.hasNextLink() && result.lvwnr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client VirtualWansClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualWansClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client VirtualWansClient) ListByResourceGroupResponder(resp *http.Response) (result ListVirtualWANsResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client VirtualWansClient) listByResourceGroupNextResults(ctx context.Context, lastResults ListVirtualWANsResult) (result ListVirtualWANsResult, err error) { + req, err := lastResults.listVirtualWANsResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VirtualWansClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VirtualWansClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client VirtualWansClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ListVirtualWANsResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualWansClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// UpdateTags updates a VirtualWAN tags. +// Parameters: +// resourceGroupName - the resource group name of the VirtualWan. +// virtualWANName - the name of the VirtualWAN being updated. +// wANParameters - parameters supplied to Update VirtualWAN tags. +func (client VirtualWansClient) UpdateTags(ctx context.Context, resourceGroupName string, virtualWANName string, wANParameters TagsObject) (result VirtualWAN, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VirtualWansClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, virtualWANName, wANParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualWansClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client VirtualWansClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, virtualWANName string, wANParameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "VirtualWANName": autorest.Encode("path", virtualWANName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}", pathParameters), + autorest.WithJSON(wANParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client VirtualWansClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client VirtualWansClient) UpdateTagsResponder(resp *http.Response) (result VirtualWAN, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/vpnconnections.go b/services/network/mgmt/2020-07-01/network/vpnconnections.go new file mode 100644 index 000000000000..723254201856 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/vpnconnections.go @@ -0,0 +1,563 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// VpnConnectionsClient is the network Client +type VpnConnectionsClient struct { + BaseClient +} + +// NewVpnConnectionsClient creates an instance of the VpnConnectionsClient client. +func NewVpnConnectionsClient(subscriptionID string) VpnConnectionsClient { + return NewVpnConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewVpnConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VpnConnectionsClient { + return VpnConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing +// connection. +// Parameters: +// resourceGroupName - the resource group name of the VpnGateway. +// gatewayName - the name of the gateway. +// connectionName - the name of the connection. +// vpnConnectionParameters - parameters supplied to create or Update a VPN Connection. +func (client VpnConnectionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string, vpnConnectionParameters VpnConnection) (result VpnConnectionsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnConnectionsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, gatewayName, connectionName, vpnConnectionParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client VpnConnectionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string, vpnConnectionParameters VpnConnection) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "connectionName": autorest.Encode("path", connectionName), + "gatewayName": autorest.Encode("path", gatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + vpnConnectionParameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}", pathParameters), + autorest.WithJSON(vpnConnectionParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client VpnConnectionsClient) CreateOrUpdateSender(req *http.Request) (future VpnConnectionsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client VpnConnectionsClient) CreateOrUpdateResponder(resp *http.Response) (result VpnConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes a vpn connection. +// Parameters: +// resourceGroupName - the resource group name of the VpnGateway. +// gatewayName - the name of the gateway. +// connectionName - the name of the connection. +func (client VpnConnectionsClient) Delete(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result VpnConnectionsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnConnectionsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, gatewayName, connectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client VpnConnectionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "connectionName": autorest.Encode("path", connectionName), + "gatewayName": autorest.Encode("path", gatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client VpnConnectionsClient) DeleteSender(req *http.Request) (future VpnConnectionsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client VpnConnectionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get retrieves the details of a vpn connection. +// Parameters: +// resourceGroupName - the resource group name of the VpnGateway. +// gatewayName - the name of the gateway. +// connectionName - the name of the vpn connection. +func (client VpnConnectionsClient) Get(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result VpnConnection, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnConnectionsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, gatewayName, connectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client VpnConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "connectionName": autorest.Encode("path", connectionName), + "gatewayName": autorest.Encode("path", gatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client VpnConnectionsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client VpnConnectionsClient) GetResponder(resp *http.Response) (result VpnConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByVpnGateway retrieves all vpn connections for a particular virtual wan vpn gateway. +// Parameters: +// resourceGroupName - the resource group name of the VpnGateway. +// gatewayName - the name of the gateway. +func (client VpnConnectionsClient) ListByVpnGateway(ctx context.Context, resourceGroupName string, gatewayName string) (result ListVpnConnectionsResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnConnectionsClient.ListByVpnGateway") + defer func() { + sc := -1 + if result.lvcr.Response.Response != nil { + sc = result.lvcr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByVpnGatewayNextResults + req, err := client.ListByVpnGatewayPreparer(ctx, resourceGroupName, gatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "ListByVpnGateway", nil, "Failure preparing request") + return + } + + resp, err := client.ListByVpnGatewaySender(req) + if err != nil { + result.lvcr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "ListByVpnGateway", resp, "Failure sending request") + return + } + + result.lvcr, err = client.ListByVpnGatewayResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "ListByVpnGateway", resp, "Failure responding to request") + return + } + if result.lvcr.hasNextLink() && result.lvcr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByVpnGatewayPreparer prepares the ListByVpnGateway request. +func (client VpnConnectionsClient) ListByVpnGatewayPreparer(ctx context.Context, resourceGroupName string, gatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "gatewayName": autorest.Encode("path", gatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByVpnGatewaySender sends the ListByVpnGateway request. The method will close the +// http.Response Body if it receives an error. +func (client VpnConnectionsClient) ListByVpnGatewaySender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByVpnGatewayResponder handles the response to the ListByVpnGateway request. The method always +// closes the http.Response Body. +func (client VpnConnectionsClient) ListByVpnGatewayResponder(resp *http.Response) (result ListVpnConnectionsResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByVpnGatewayNextResults retrieves the next set of results, if any. +func (client VpnConnectionsClient) listByVpnGatewayNextResults(ctx context.Context, lastResults ListVpnConnectionsResult) (result ListVpnConnectionsResult, err error) { + req, err := lastResults.listVpnConnectionsResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "listByVpnGatewayNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByVpnGatewaySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "listByVpnGatewayNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByVpnGatewayResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "listByVpnGatewayNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByVpnGatewayComplete enumerates all values, automatically crossing page boundaries as required. +func (client VpnConnectionsClient) ListByVpnGatewayComplete(ctx context.Context, resourceGroupName string, gatewayName string) (result ListVpnConnectionsResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnConnectionsClient.ListByVpnGateway") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByVpnGateway(ctx, resourceGroupName, gatewayName) + return +} + +// StartPacketCapture starts packet capture on Vpn connection in the specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// gatewayName - the name of the gateway. +// vpnConnectionName - the name of the vpn connection. +// parameters - vpn Connection packet capture parameters supplied to start packet capture on gateway +// connection. +func (client VpnConnectionsClient) StartPacketCapture(ctx context.Context, resourceGroupName string, gatewayName string, vpnConnectionName string, parameters *VpnConnectionPacketCaptureStartParameters) (result VpnConnectionsStartPacketCaptureFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnConnectionsClient.StartPacketCapture") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.StartPacketCapturePreparer(ctx, resourceGroupName, gatewayName, vpnConnectionName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "StartPacketCapture", nil, "Failure preparing request") + return + } + + result, err = client.StartPacketCaptureSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "StartPacketCapture", result.Response(), "Failure sending request") + return + } + + return +} + +// StartPacketCapturePreparer prepares the StartPacketCapture request. +func (client VpnConnectionsClient) StartPacketCapturePreparer(ctx context.Context, resourceGroupName string, gatewayName string, vpnConnectionName string, parameters *VpnConnectionPacketCaptureStartParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "gatewayName": autorest.Encode("path", gatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vpnConnectionName": autorest.Encode("path", vpnConnectionName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{vpnConnectionName}/startpacketcapture", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if parameters != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(parameters)) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// StartPacketCaptureSender sends the StartPacketCapture request. The method will close the +// http.Response Body if it receives an error. +func (client VpnConnectionsClient) StartPacketCaptureSender(req *http.Request) (future VpnConnectionsStartPacketCaptureFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// StartPacketCaptureResponder handles the response to the StartPacketCapture request. The method always +// closes the http.Response Body. +func (client VpnConnectionsClient) StartPacketCaptureResponder(resp *http.Response) (result String, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// StopPacketCapture stops packet capture on Vpn connection in the specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// gatewayName - the name of the gateway. +// vpnConnectionName - the name of the vpn connection. +// parameters - vpn Connection packet capture parameters supplied to stop packet capture on gateway connection. +func (client VpnConnectionsClient) StopPacketCapture(ctx context.Context, resourceGroupName string, gatewayName string, vpnConnectionName string, parameters *VpnConnectionPacketCaptureStopParameters) (result VpnConnectionsStopPacketCaptureFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnConnectionsClient.StopPacketCapture") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.StopPacketCapturePreparer(ctx, resourceGroupName, gatewayName, vpnConnectionName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "StopPacketCapture", nil, "Failure preparing request") + return + } + + result, err = client.StopPacketCaptureSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "StopPacketCapture", result.Response(), "Failure sending request") + return + } + + return +} + +// StopPacketCapturePreparer prepares the StopPacketCapture request. +func (client VpnConnectionsClient) StopPacketCapturePreparer(ctx context.Context, resourceGroupName string, gatewayName string, vpnConnectionName string, parameters *VpnConnectionPacketCaptureStopParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "gatewayName": autorest.Encode("path", gatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vpnConnectionName": autorest.Encode("path", vpnConnectionName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{vpnConnectionName}/stoppacketcapture", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if parameters != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(parameters)) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// StopPacketCaptureSender sends the StopPacketCapture request. The method will close the +// http.Response Body if it receives an error. +func (client VpnConnectionsClient) StopPacketCaptureSender(req *http.Request) (future VpnConnectionsStopPacketCaptureFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// StopPacketCaptureResponder handles the response to the StopPacketCapture request. The method always +// closes the http.Response Body. +func (client VpnConnectionsClient) StopPacketCaptureResponder(resp *http.Response) (result String, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/vpngateways.go b/services/network/mgmt/2020-07-01/network/vpngateways.go new file mode 100644 index 000000000000..f7619b2cc27c --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/vpngateways.go @@ -0,0 +1,829 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// VpnGatewaysClient is the network Client +type VpnGatewaysClient struct { + BaseClient +} + +// NewVpnGatewaysClient creates an instance of the VpnGatewaysClient client. +func NewVpnGatewaysClient(subscriptionID string) VpnGatewaysClient { + return NewVpnGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client using a custom endpoint. Use +// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewVpnGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VpnGatewaysClient { + return VpnGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. +// Parameters: +// resourceGroupName - the resource group name of the VpnGateway. +// gatewayName - the name of the gateway. +// vpnGatewayParameters - parameters supplied to create or Update a virtual wan vpn gateway. +func (client VpnGatewaysClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, gatewayName string, vpnGatewayParameters VpnGateway) (result VpnGatewaysCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnGatewaysClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: vpnGatewayParameters, + Constraints: []validation.Constraint{{Target: "vpnGatewayParameters.VpnGatewayProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "vpnGatewayParameters.VpnGatewayProperties.BgpSettings", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "vpnGatewayParameters.VpnGatewayProperties.BgpSettings.Asn", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "vpnGatewayParameters.VpnGatewayProperties.BgpSettings.Asn", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, + {Target: "vpnGatewayParameters.VpnGatewayProperties.BgpSettings.Asn", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + }}, + }}, + }}}}}); err != nil { + return result, validation.NewError("network.VpnGatewaysClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, gatewayName, vpnGatewayParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client VpnGatewaysClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, gatewayName string, vpnGatewayParameters VpnGateway) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "gatewayName": autorest.Encode("path", gatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + vpnGatewayParameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}", pathParameters), + autorest.WithJSON(vpnGatewayParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client VpnGatewaysClient) CreateOrUpdateSender(req *http.Request) (future VpnGatewaysCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client VpnGatewaysClient) CreateOrUpdateResponder(resp *http.Response) (result VpnGateway, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes a virtual wan vpn gateway. +// Parameters: +// resourceGroupName - the resource group name of the VpnGateway. +// gatewayName - the name of the gateway. +func (client VpnGatewaysClient) Delete(ctx context.Context, resourceGroupName string, gatewayName string) (result VpnGatewaysDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnGatewaysClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, gatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client VpnGatewaysClient) DeletePreparer(ctx context.Context, resourceGroupName string, gatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "gatewayName": autorest.Encode("path", gatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client VpnGatewaysClient) DeleteSender(req *http.Request) (future VpnGatewaysDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client VpnGatewaysClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get retrieves the details of a virtual wan vpn gateway. +// Parameters: +// resourceGroupName - the resource group name of the VpnGateway. +// gatewayName - the name of the gateway. +func (client VpnGatewaysClient) Get(ctx context.Context, resourceGroupName string, gatewayName string) (result VpnGateway, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnGatewaysClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, gatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client VpnGatewaysClient) GetPreparer(ctx context.Context, resourceGroupName string, gatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "gatewayName": autorest.Encode("path", gatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client VpnGatewaysClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client VpnGatewaysClient) GetResponder(resp *http.Response) (result VpnGateway, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all the VpnGateways in a subscription. +func (client VpnGatewaysClient) List(ctx context.Context) (result ListVpnGatewaysResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnGatewaysClient.List") + defer func() { + sc := -1 + if result.lvgr.Response.Response != nil { + sc = result.lvgr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.lvgr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "List", resp, "Failure sending request") + return + } + + result.lvgr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "List", resp, "Failure responding to request") + return + } + if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client VpnGatewaysClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnGateways", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client VpnGatewaysClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client VpnGatewaysClient) ListResponder(resp *http.Response) (result ListVpnGatewaysResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client VpnGatewaysClient) listNextResults(ctx context.Context, lastResults ListVpnGatewaysResult) (result ListVpnGatewaysResult, err error) { + req, err := lastResults.listVpnGatewaysResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client VpnGatewaysClient) ListComplete(ctx context.Context) (result ListVpnGatewaysResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnGatewaysClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} + +// ListByResourceGroup lists all the VpnGateways in a resource group. +// Parameters: +// resourceGroupName - the resource group name of the VpnGateway. +func (client VpnGatewaysClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ListVpnGatewaysResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnGatewaysClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.lvgr.Response.Response != nil { + sc = result.lvgr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.lvgr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.lvgr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.lvgr.hasNextLink() && result.lvgr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client VpnGatewaysClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client VpnGatewaysClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client VpnGatewaysClient) ListByResourceGroupResponder(resp *http.Response) (result ListVpnGatewaysResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client VpnGatewaysClient) listByResourceGroupNextResults(ctx context.Context, lastResults ListVpnGatewaysResult) (result ListVpnGatewaysResult, err error) { + req, err := lastResults.listVpnGatewaysResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client VpnGatewaysClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ListVpnGatewaysResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnGatewaysClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// Reset resets the primary of the vpn gateway in the specified resource group. +// Parameters: +// resourceGroupName - the resource group name of the VpnGateway. +// gatewayName - the name of the gateway. +func (client VpnGatewaysClient) Reset(ctx context.Context, resourceGroupName string, gatewayName string) (result VpnGatewaysResetFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnGatewaysClient.Reset") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ResetPreparer(ctx, resourceGroupName, gatewayName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "Reset", nil, "Failure preparing request") + return + } + + result, err = client.ResetSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "Reset", result.Response(), "Failure sending request") + return + } + + return +} + +// ResetPreparer prepares the Reset request. +func (client VpnGatewaysClient) ResetPreparer(ctx context.Context, resourceGroupName string, gatewayName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "gatewayName": autorest.Encode("path", gatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/reset", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ResetSender sends the Reset request. The method will close the +// http.Response Body if it receives an error. +func (client VpnGatewaysClient) ResetSender(req *http.Request) (future VpnGatewaysResetFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// ResetResponder handles the response to the Reset request. The method always +// closes the http.Response Body. +func (client VpnGatewaysClient) ResetResponder(resp *http.Response) (result VpnGateway, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// StartPacketCapture starts packet capture on vpn gateway in the specified resource group. +// Parameters: +// resourceGroupName - the resource group name of the VpnGateway. +// gatewayName - the name of the gateway. +// parameters - vpn gateway packet capture parameters supplied to start packet capture on vpn gateway. +func (client VpnGatewaysClient) StartPacketCapture(ctx context.Context, resourceGroupName string, gatewayName string, parameters *VpnGatewayPacketCaptureStartParameters) (result VpnGatewaysStartPacketCaptureFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnGatewaysClient.StartPacketCapture") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.StartPacketCapturePreparer(ctx, resourceGroupName, gatewayName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "StartPacketCapture", nil, "Failure preparing request") + return + } + + result, err = client.StartPacketCaptureSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "StartPacketCapture", result.Response(), "Failure sending request") + return + } + + return +} + +// StartPacketCapturePreparer prepares the StartPacketCapture request. +func (client VpnGatewaysClient) StartPacketCapturePreparer(ctx context.Context, resourceGroupName string, gatewayName string, parameters *VpnGatewayPacketCaptureStartParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "gatewayName": autorest.Encode("path", gatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/startpacketcapture", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if parameters != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(parameters)) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// StartPacketCaptureSender sends the StartPacketCapture request. The method will close the +// http.Response Body if it receives an error. +func (client VpnGatewaysClient) StartPacketCaptureSender(req *http.Request) (future VpnGatewaysStartPacketCaptureFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// StartPacketCaptureResponder handles the response to the StartPacketCapture request. The method always +// closes the http.Response Body. +func (client VpnGatewaysClient) StartPacketCaptureResponder(resp *http.Response) (result String, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// StopPacketCapture stops packet capture on vpn gateway in the specified resource group. +// Parameters: +// resourceGroupName - the resource group name of the VpnGateway. +// gatewayName - the name of the gateway. +// parameters - vpn gateway packet capture parameters supplied to stop packet capture on vpn gateway. +func (client VpnGatewaysClient) StopPacketCapture(ctx context.Context, resourceGroupName string, gatewayName string, parameters *VpnGatewayPacketCaptureStopParameters) (result VpnGatewaysStopPacketCaptureFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnGatewaysClient.StopPacketCapture") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.StopPacketCapturePreparer(ctx, resourceGroupName, gatewayName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "StopPacketCapture", nil, "Failure preparing request") + return + } + + result, err = client.StopPacketCaptureSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "StopPacketCapture", result.Response(), "Failure sending request") + return + } + + return +} + +// StopPacketCapturePreparer prepares the StopPacketCapture request. +func (client VpnGatewaysClient) StopPacketCapturePreparer(ctx context.Context, resourceGroupName string, gatewayName string, parameters *VpnGatewayPacketCaptureStopParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "gatewayName": autorest.Encode("path", gatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/stoppacketcapture", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if parameters != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(parameters)) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// StopPacketCaptureSender sends the StopPacketCapture request. The method will close the +// http.Response Body if it receives an error. +func (client VpnGatewaysClient) StopPacketCaptureSender(req *http.Request) (future VpnGatewaysStopPacketCaptureFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// StopPacketCaptureResponder handles the response to the StopPacketCapture request. The method always +// closes the http.Response Body. +func (client VpnGatewaysClient) StopPacketCaptureResponder(resp *http.Response) (result String, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// UpdateTags updates virtual wan vpn gateway tags. +// Parameters: +// resourceGroupName - the resource group name of the VpnGateway. +// gatewayName - the name of the gateway. +// vpnGatewayParameters - parameters supplied to update a virtual wan vpn gateway tags. +func (client VpnGatewaysClient) UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, vpnGatewayParameters TagsObject) (result VpnGatewaysUpdateTagsFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnGatewaysClient.UpdateTags") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, gatewayName, vpnGatewayParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "UpdateTags", nil, "Failure preparing request") + return + } + + result, err = client.UpdateTagsSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnGatewaysClient", "UpdateTags", result.Response(), "Failure sending request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client VpnGatewaysClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, gatewayName string, vpnGatewayParameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "gatewayName": autorest.Encode("path", gatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}", pathParameters), + autorest.WithJSON(vpnGatewayParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client VpnGatewaysClient) UpdateTagsSender(req *http.Request) (future VpnGatewaysUpdateTagsFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client VpnGatewaysClient) UpdateTagsResponder(resp *http.Response) (result VpnGateway, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/vpnlinkconnections.go b/services/network/mgmt/2020-07-01/network/vpnlinkconnections.go new file mode 100644 index 000000000000..eca6e54e654a --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/vpnlinkconnections.go @@ -0,0 +1,163 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// VpnLinkConnectionsClient is the network Client +type VpnLinkConnectionsClient struct { + BaseClient +} + +// NewVpnLinkConnectionsClient creates an instance of the VpnLinkConnectionsClient client. +func NewVpnLinkConnectionsClient(subscriptionID string) VpnLinkConnectionsClient { + return NewVpnLinkConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewVpnLinkConnectionsClientWithBaseURI creates an instance of the VpnLinkConnectionsClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewVpnLinkConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VpnLinkConnectionsClient { + return VpnLinkConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// ListByVpnConnection retrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection. +// Parameters: +// resourceGroupName - the resource group name of the vpn gateway. +// gatewayName - the name of the gateway. +// connectionName - the name of the vpn connection. +func (client VpnLinkConnectionsClient) ListByVpnConnection(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result ListVpnSiteLinkConnectionsResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnLinkConnectionsClient.ListByVpnConnection") + defer func() { + sc := -1 + if result.lvslcr.Response.Response != nil { + sc = result.lvslcr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByVpnConnectionNextResults + req, err := client.ListByVpnConnectionPreparer(ctx, resourceGroupName, gatewayName, connectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnLinkConnectionsClient", "ListByVpnConnection", nil, "Failure preparing request") + return + } + + resp, err := client.ListByVpnConnectionSender(req) + if err != nil { + result.lvslcr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VpnLinkConnectionsClient", "ListByVpnConnection", resp, "Failure sending request") + return + } + + result.lvslcr, err = client.ListByVpnConnectionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnLinkConnectionsClient", "ListByVpnConnection", resp, "Failure responding to request") + return + } + if result.lvslcr.hasNextLink() && result.lvslcr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByVpnConnectionPreparer prepares the ListByVpnConnection request. +func (client VpnLinkConnectionsClient) ListByVpnConnectionPreparer(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "connectionName": autorest.Encode("path", connectionName), + "gatewayName": autorest.Encode("path", gatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}/vpnLinkConnections", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByVpnConnectionSender sends the ListByVpnConnection request. The method will close the +// http.Response Body if it receives an error. +func (client VpnLinkConnectionsClient) ListByVpnConnectionSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByVpnConnectionResponder handles the response to the ListByVpnConnection request. The method always +// closes the http.Response Body. +func (client VpnLinkConnectionsClient) ListByVpnConnectionResponder(resp *http.Response) (result ListVpnSiteLinkConnectionsResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByVpnConnectionNextResults retrieves the next set of results, if any. +func (client VpnLinkConnectionsClient) listByVpnConnectionNextResults(ctx context.Context, lastResults ListVpnSiteLinkConnectionsResult) (result ListVpnSiteLinkConnectionsResult, err error) { + req, err := lastResults.listVpnSiteLinkConnectionsResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VpnLinkConnectionsClient", "listByVpnConnectionNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByVpnConnectionSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VpnLinkConnectionsClient", "listByVpnConnectionNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByVpnConnectionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnLinkConnectionsClient", "listByVpnConnectionNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByVpnConnectionComplete enumerates all values, automatically crossing page boundaries as required. +func (client VpnLinkConnectionsClient) ListByVpnConnectionComplete(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result ListVpnSiteLinkConnectionsResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnLinkConnectionsClient.ListByVpnConnection") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByVpnConnection(ctx, resourceGroupName, gatewayName, connectionName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/vpnserverconfigurations.go b/services/network/mgmt/2020-07-01/network/vpnserverconfigurations.go new file mode 100644 index 000000000000..262aa79836ac --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/vpnserverconfigurations.go @@ -0,0 +1,581 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// VpnServerConfigurationsClient is the network Client +type VpnServerConfigurationsClient struct { + BaseClient +} + +// NewVpnServerConfigurationsClient creates an instance of the VpnServerConfigurationsClient client. +func NewVpnServerConfigurationsClient(subscriptionID string) VpnServerConfigurationsClient { + return NewVpnServerConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewVpnServerConfigurationsClientWithBaseURI creates an instance of the VpnServerConfigurationsClient client using a +// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, +// Azure stack). +func NewVpnServerConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) VpnServerConfigurationsClient { + return VpnServerConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates a VpnServerConfiguration resource if it doesn't exist else updates the existing +// VpnServerConfiguration. +// Parameters: +// resourceGroupName - the resource group name of the VpnServerConfiguration. +// vpnServerConfigurationName - the name of the VpnServerConfiguration being created or updated. +// vpnServerConfigurationParameters - parameters supplied to create or update VpnServerConfiguration. +func (client VpnServerConfigurationsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, vpnServerConfigurationName string, vpnServerConfigurationParameters VpnServerConfiguration) (result VpnServerConfigurationsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnServerConfigurationsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, vpnServerConfigurationName, vpnServerConfigurationParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client VpnServerConfigurationsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, vpnServerConfigurationName string, vpnServerConfigurationParameters VpnServerConfiguration) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vpnServerConfigurationName": autorest.Encode("path", vpnServerConfigurationName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + vpnServerConfigurationParameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}", pathParameters), + autorest.WithJSON(vpnServerConfigurationParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client VpnServerConfigurationsClient) CreateOrUpdateSender(req *http.Request) (future VpnServerConfigurationsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client VpnServerConfigurationsClient) CreateOrUpdateResponder(resp *http.Response) (result VpnServerConfiguration, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes a VpnServerConfiguration. +// Parameters: +// resourceGroupName - the resource group name of the VpnServerConfiguration. +// vpnServerConfigurationName - the name of the VpnServerConfiguration being deleted. +func (client VpnServerConfigurationsClient) Delete(ctx context.Context, resourceGroupName string, vpnServerConfigurationName string) (result VpnServerConfigurationsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnServerConfigurationsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, vpnServerConfigurationName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client VpnServerConfigurationsClient) DeletePreparer(ctx context.Context, resourceGroupName string, vpnServerConfigurationName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vpnServerConfigurationName": autorest.Encode("path", vpnServerConfigurationName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client VpnServerConfigurationsClient) DeleteSender(req *http.Request) (future VpnServerConfigurationsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client VpnServerConfigurationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get retrieves the details of a VpnServerConfiguration. +// Parameters: +// resourceGroupName - the resource group name of the VpnServerConfiguration. +// vpnServerConfigurationName - the name of the VpnServerConfiguration being retrieved. +func (client VpnServerConfigurationsClient) Get(ctx context.Context, resourceGroupName string, vpnServerConfigurationName string) (result VpnServerConfiguration, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnServerConfigurationsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, vpnServerConfigurationName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client VpnServerConfigurationsClient) GetPreparer(ctx context.Context, resourceGroupName string, vpnServerConfigurationName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vpnServerConfigurationName": autorest.Encode("path", vpnServerConfigurationName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client VpnServerConfigurationsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client VpnServerConfigurationsClient) GetResponder(resp *http.Response) (result VpnServerConfiguration, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all the VpnServerConfigurations in a subscription. +func (client VpnServerConfigurationsClient) List(ctx context.Context) (result ListVpnServerConfigurationsResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnServerConfigurationsClient.List") + defer func() { + sc := -1 + if result.lvscr.Response.Response != nil { + sc = result.lvscr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.lvscr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "List", resp, "Failure sending request") + return + } + + result.lvscr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "List", resp, "Failure responding to request") + return + } + if result.lvscr.hasNextLink() && result.lvscr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client VpnServerConfigurationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnServerConfigurations", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client VpnServerConfigurationsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client VpnServerConfigurationsClient) ListResponder(resp *http.Response) (result ListVpnServerConfigurationsResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client VpnServerConfigurationsClient) listNextResults(ctx context.Context, lastResults ListVpnServerConfigurationsResult) (result ListVpnServerConfigurationsResult, err error) { + req, err := lastResults.listVpnServerConfigurationsResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client VpnServerConfigurationsClient) ListComplete(ctx context.Context) (result ListVpnServerConfigurationsResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnServerConfigurationsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} + +// ListByResourceGroup lists all the vpnServerConfigurations in a resource group. +// Parameters: +// resourceGroupName - the resource group name of the VpnServerConfiguration. +func (client VpnServerConfigurationsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ListVpnServerConfigurationsResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnServerConfigurationsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.lvscr.Response.Response != nil { + sc = result.lvscr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.lvscr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.lvscr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.lvscr.hasNextLink() && result.lvscr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client VpnServerConfigurationsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client VpnServerConfigurationsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client VpnServerConfigurationsClient) ListByResourceGroupResponder(resp *http.Response) (result ListVpnServerConfigurationsResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client VpnServerConfigurationsClient) listByResourceGroupNextResults(ctx context.Context, lastResults ListVpnServerConfigurationsResult) (result ListVpnServerConfigurationsResult, err error) { + req, err := lastResults.listVpnServerConfigurationsResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client VpnServerConfigurationsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ListVpnServerConfigurationsResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnServerConfigurationsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// UpdateTags updates VpnServerConfiguration tags. +// Parameters: +// resourceGroupName - the resource group name of the VpnServerConfiguration. +// vpnServerConfigurationName - the name of the VpnServerConfiguration being updated. +// vpnServerConfigurationParameters - parameters supplied to update VpnServerConfiguration tags. +func (client VpnServerConfigurationsClient) UpdateTags(ctx context.Context, resourceGroupName string, vpnServerConfigurationName string, vpnServerConfigurationParameters TagsObject) (result VpnServerConfiguration, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnServerConfigurationsClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, vpnServerConfigurationName, vpnServerConfigurationParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client VpnServerConfigurationsClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, vpnServerConfigurationName string, vpnServerConfigurationParameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vpnServerConfigurationName": autorest.Encode("path", vpnServerConfigurationName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}", pathParameters), + autorest.WithJSON(vpnServerConfigurationParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client VpnServerConfigurationsClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client VpnServerConfigurationsClient) UpdateTagsResponder(resp *http.Response) (result VpnServerConfiguration, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/vpnserverconfigurationsassociatedwithvirtualwan.go b/services/network/mgmt/2020-07-01/network/vpnserverconfigurationsassociatedwithvirtualwan.go new file mode 100644 index 000000000000..63026a85274a --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/vpnserverconfigurationsassociatedwithvirtualwan.go @@ -0,0 +1,119 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// VpnServerConfigurationsAssociatedWithVirtualWanClient is the network Client +type VpnServerConfigurationsAssociatedWithVirtualWanClient struct { + BaseClient +} + +// NewVpnServerConfigurationsAssociatedWithVirtualWanClient creates an instance of the +// VpnServerConfigurationsAssociatedWithVirtualWanClient client. +func NewVpnServerConfigurationsAssociatedWithVirtualWanClient(subscriptionID string) VpnServerConfigurationsAssociatedWithVirtualWanClient { + return NewVpnServerConfigurationsAssociatedWithVirtualWanClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewVpnServerConfigurationsAssociatedWithVirtualWanClientWithBaseURI creates an instance of the +// VpnServerConfigurationsAssociatedWithVirtualWanClient client using a custom endpoint. Use this when interacting +// with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewVpnServerConfigurationsAssociatedWithVirtualWanClientWithBaseURI(baseURI string, subscriptionID string) VpnServerConfigurationsAssociatedWithVirtualWanClient { + return VpnServerConfigurationsAssociatedWithVirtualWanClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List gives the list of VpnServerConfigurations associated with Virtual Wan in a resource group. +// Parameters: +// resourceGroupName - the resource group name. +// virtualWANName - the name of the VirtualWAN whose associated VpnServerConfigurations is needed. +func (client VpnServerConfigurationsAssociatedWithVirtualWanClient) List(ctx context.Context, resourceGroupName string, virtualWANName string) (result VpnServerConfigurationsAssociatedWithVirtualWanListFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnServerConfigurationsAssociatedWithVirtualWanClient.List") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListPreparer(ctx, resourceGroupName, virtualWANName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsAssociatedWithVirtualWanClient", "List", nil, "Failure preparing request") + return + } + + result, err = client.ListSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnServerConfigurationsAssociatedWithVirtualWanClient", "List", result.Response(), "Failure sending request") + return + } + + return +} + +// ListPreparer prepares the List request. +func (client VpnServerConfigurationsAssociatedWithVirtualWanClient) ListPreparer(ctx context.Context, resourceGroupName string, virtualWANName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualWANName": autorest.Encode("path", virtualWANName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/vpnServerConfigurations", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client VpnServerConfigurationsAssociatedWithVirtualWanClient) ListSender(req *http.Request) (future VpnServerConfigurationsAssociatedWithVirtualWanListFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client VpnServerConfigurationsAssociatedWithVirtualWanClient) ListResponder(resp *http.Response) (result VpnServerConfigurationsResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/vpnsitelinkconnections.go b/services/network/mgmt/2020-07-01/network/vpnsitelinkconnections.go new file mode 100644 index 000000000000..6799c36694a0 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/vpnsitelinkconnections.go @@ -0,0 +1,123 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// VpnSiteLinkConnectionsClient is the network Client +type VpnSiteLinkConnectionsClient struct { + BaseClient +} + +// NewVpnSiteLinkConnectionsClient creates an instance of the VpnSiteLinkConnectionsClient client. +func NewVpnSiteLinkConnectionsClient(subscriptionID string) VpnSiteLinkConnectionsClient { + return NewVpnSiteLinkConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewVpnSiteLinkConnectionsClientWithBaseURI creates an instance of the VpnSiteLinkConnectionsClient client using a +// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, +// Azure stack). +func NewVpnSiteLinkConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VpnSiteLinkConnectionsClient { + return VpnSiteLinkConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get retrieves the details of a vpn site link connection. +// Parameters: +// resourceGroupName - the resource group name of the VpnGateway. +// gatewayName - the name of the gateway. +// connectionName - the name of the vpn connection. +// linkConnectionName - the name of the vpn connection. +func (client VpnSiteLinkConnectionsClient) Get(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string, linkConnectionName string) (result VpnSiteLinkConnection, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnSiteLinkConnectionsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, gatewayName, connectionName, linkConnectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSiteLinkConnectionsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VpnSiteLinkConnectionsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSiteLinkConnectionsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client VpnSiteLinkConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string, linkConnectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "connectionName": autorest.Encode("path", connectionName), + "gatewayName": autorest.Encode("path", gatewayName), + "linkConnectionName": autorest.Encode("path", linkConnectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}/vpnLinkConnections/{linkConnectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client VpnSiteLinkConnectionsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client VpnSiteLinkConnectionsClient) GetResponder(resp *http.Response) (result VpnSiteLinkConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/vpnsitelinks.go b/services/network/mgmt/2020-07-01/network/vpnsitelinks.go new file mode 100644 index 000000000000..bca32f0d33bf --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/vpnsitelinks.go @@ -0,0 +1,238 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// VpnSiteLinksClient is the network Client +type VpnSiteLinksClient struct { + BaseClient +} + +// NewVpnSiteLinksClient creates an instance of the VpnSiteLinksClient client. +func NewVpnSiteLinksClient(subscriptionID string) VpnSiteLinksClient { + return NewVpnSiteLinksClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewVpnSiteLinksClientWithBaseURI creates an instance of the VpnSiteLinksClient client using a custom endpoint. Use +// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewVpnSiteLinksClientWithBaseURI(baseURI string, subscriptionID string) VpnSiteLinksClient { + return VpnSiteLinksClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get retrieves the details of a VPN site link. +// Parameters: +// resourceGroupName - the resource group name of the VpnSite. +// vpnSiteName - the name of the VpnSite. +// vpnSiteLinkName - the name of the VpnSiteLink being retrieved. +func (client VpnSiteLinksClient) Get(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteLinkName string) (result VpnSiteLink, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnSiteLinksClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, vpnSiteName, vpnSiteLinkName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client VpnSiteLinksClient) GetPreparer(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteLinkName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vpnSiteLinkName": autorest.Encode("path", vpnSiteLinkName), + "vpnSiteName": autorest.Encode("path", vpnSiteName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}/vpnSiteLinks/{vpnSiteLinkName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client VpnSiteLinksClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client VpnSiteLinksClient) GetResponder(resp *http.Response) (result VpnSiteLink, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByVpnSite lists all the vpnSiteLinks in a resource group for a vpn site. +// Parameters: +// resourceGroupName - the resource group name of the VpnSite. +// vpnSiteName - the name of the VpnSite. +func (client VpnSiteLinksClient) ListByVpnSite(ctx context.Context, resourceGroupName string, vpnSiteName string) (result ListVpnSiteLinksResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnSiteLinksClient.ListByVpnSite") + defer func() { + sc := -1 + if result.lvslr.Response.Response != nil { + sc = result.lvslr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByVpnSiteNextResults + req, err := client.ListByVpnSitePreparer(ctx, resourceGroupName, vpnSiteName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "ListByVpnSite", nil, "Failure preparing request") + return + } + + resp, err := client.ListByVpnSiteSender(req) + if err != nil { + result.lvslr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "ListByVpnSite", resp, "Failure sending request") + return + } + + result.lvslr, err = client.ListByVpnSiteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "ListByVpnSite", resp, "Failure responding to request") + return + } + if result.lvslr.hasNextLink() && result.lvslr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByVpnSitePreparer prepares the ListByVpnSite request. +func (client VpnSiteLinksClient) ListByVpnSitePreparer(ctx context.Context, resourceGroupName string, vpnSiteName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vpnSiteName": autorest.Encode("path", vpnSiteName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}/vpnSiteLinks", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByVpnSiteSender sends the ListByVpnSite request. The method will close the +// http.Response Body if it receives an error. +func (client VpnSiteLinksClient) ListByVpnSiteSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByVpnSiteResponder handles the response to the ListByVpnSite request. The method always +// closes the http.Response Body. +func (client VpnSiteLinksClient) ListByVpnSiteResponder(resp *http.Response) (result ListVpnSiteLinksResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByVpnSiteNextResults retrieves the next set of results, if any. +func (client VpnSiteLinksClient) listByVpnSiteNextResults(ctx context.Context, lastResults ListVpnSiteLinksResult) (result ListVpnSiteLinksResult, err error) { + req, err := lastResults.listVpnSiteLinksResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "listByVpnSiteNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByVpnSiteSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "listByVpnSiteNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByVpnSiteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSiteLinksClient", "listByVpnSiteNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByVpnSiteComplete enumerates all values, automatically crossing page boundaries as required. +func (client VpnSiteLinksClient) ListByVpnSiteComplete(ctx context.Context, resourceGroupName string, vpnSiteName string) (result ListVpnSiteLinksResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnSiteLinksClient.ListByVpnSite") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByVpnSite(ctx, resourceGroupName, vpnSiteName) + return +} diff --git a/services/network/mgmt/2020-07-01/network/vpnsites.go b/services/network/mgmt/2020-07-01/network/vpnsites.go new file mode 100644 index 000000000000..686096f73d10 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/vpnsites.go @@ -0,0 +1,593 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// VpnSitesClient is the network Client +type VpnSitesClient struct { + BaseClient +} + +// NewVpnSitesClient creates an instance of the VpnSitesClient client. +func NewVpnSitesClient(subscriptionID string) VpnSitesClient { + return NewVpnSitesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewVpnSitesClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesClient { + return VpnSitesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. +// Parameters: +// resourceGroupName - the resource group name of the VpnSite. +// vpnSiteName - the name of the VpnSite being created or updated. +// vpnSiteParameters - parameters supplied to create or update VpnSite. +func (client VpnSitesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters VpnSite) (result VpnSitesCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnSitesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: vpnSiteParameters, + Constraints: []validation.Constraint{{Target: "vpnSiteParameters.VpnSiteProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "vpnSiteParameters.VpnSiteProperties.BgpProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "vpnSiteParameters.VpnSiteProperties.BgpProperties.Asn", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "vpnSiteParameters.VpnSiteProperties.BgpProperties.Asn", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, + {Target: "vpnSiteParameters.VpnSiteProperties.BgpProperties.Asn", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + }}, + }}, + }}}}}); err != nil { + return result, validation.NewError("network.VpnSitesClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, vpnSiteName, vpnSiteParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client VpnSitesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters VpnSite) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vpnSiteName": autorest.Encode("path", vpnSiteName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + vpnSiteParameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}", pathParameters), + autorest.WithJSON(vpnSiteParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client VpnSitesClient) CreateOrUpdateSender(req *http.Request) (future VpnSitesCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client VpnSitesClient) CreateOrUpdateResponder(resp *http.Response) (result VpnSite, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes a VpnSite. +// Parameters: +// resourceGroupName - the resource group name of the VpnSite. +// vpnSiteName - the name of the VpnSite being deleted. +func (client VpnSitesClient) Delete(ctx context.Context, resourceGroupName string, vpnSiteName string) (result VpnSitesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnSitesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, vpnSiteName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client VpnSitesClient) DeletePreparer(ctx context.Context, resourceGroupName string, vpnSiteName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vpnSiteName": autorest.Encode("path", vpnSiteName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client VpnSitesClient) DeleteSender(req *http.Request) (future VpnSitesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client VpnSitesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get retrieves the details of a VPN site. +// Parameters: +// resourceGroupName - the resource group name of the VpnSite. +// vpnSiteName - the name of the VpnSite being retrieved. +func (client VpnSitesClient) Get(ctx context.Context, resourceGroupName string, vpnSiteName string) (result VpnSite, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnSitesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, vpnSiteName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client VpnSitesClient) GetPreparer(ctx context.Context, resourceGroupName string, vpnSiteName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vpnSiteName": autorest.Encode("path", vpnSiteName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client VpnSitesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client VpnSitesClient) GetResponder(resp *http.Response) (result VpnSite, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all the VpnSites in a subscription. +func (client VpnSitesClient) List(ctx context.Context) (result ListVpnSitesResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnSitesClient.List") + defer func() { + sc := -1 + if result.lvsr.Response.Response != nil { + sc = result.lvsr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.lvsr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "List", resp, "Failure sending request") + return + } + + result.lvsr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "List", resp, "Failure responding to request") + return + } + if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client VpnSitesClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnSites", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client VpnSitesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client VpnSitesClient) ListResponder(resp *http.Response) (result ListVpnSitesResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client VpnSitesClient) listNextResults(ctx context.Context, lastResults ListVpnSitesResult) (result ListVpnSitesResult, err error) { + req, err := lastResults.listVpnSitesResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VpnSitesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VpnSitesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client VpnSitesClient) ListComplete(ctx context.Context) (result ListVpnSitesResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnSitesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} + +// ListByResourceGroup lists all the vpnSites in a resource group. +// Parameters: +// resourceGroupName - the resource group name of the VpnSite. +func (client VpnSitesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ListVpnSitesResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnSitesClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.lvsr.Response.Response != nil { + sc = result.lvsr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.lvsr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.lvsr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.lvsr.hasNextLink() && result.lvsr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client VpnSitesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client VpnSitesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client VpnSitesClient) ListByResourceGroupResponder(resp *http.Response) (result ListVpnSitesResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client VpnSitesClient) listByResourceGroupNextResults(ctx context.Context, lastResults ListVpnSitesResult) (result ListVpnSitesResult, err error) { + req, err := lastResults.listVpnSitesResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.VpnSitesClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.VpnSitesClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client VpnSitesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ListVpnSitesResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnSitesClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// UpdateTags updates VpnSite tags. +// Parameters: +// resourceGroupName - the resource group name of the VpnSite. +// vpnSiteName - the name of the VpnSite being updated. +// vpnSiteParameters - parameters supplied to update VpnSite tags. +func (client VpnSitesClient) UpdateTags(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters TagsObject) (result VpnSite, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnSitesClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, vpnSiteName, vpnSiteParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client VpnSitesClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vpnSiteName": autorest.Encode("path", vpnSiteName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}", pathParameters), + autorest.WithJSON(vpnSiteParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client VpnSitesClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client VpnSitesClient) UpdateTagsResponder(resp *http.Response) (result VpnSite, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/vpnsitesconfiguration.go b/services/network/mgmt/2020-07-01/network/vpnsitesconfiguration.go new file mode 100644 index 000000000000..2010ae81129b --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/vpnsitesconfiguration.go @@ -0,0 +1,127 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// VpnSitesConfigurationClient is the network Client +type VpnSitesConfigurationClient struct { + BaseClient +} + +// NewVpnSitesConfigurationClient creates an instance of the VpnSitesConfigurationClient client. +func NewVpnSitesConfigurationClient(subscriptionID string) VpnSitesConfigurationClient { + return NewVpnSitesConfigurationClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client using a +// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, +// Azure stack). +func NewVpnSitesConfigurationClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesConfigurationClient { + return VpnSitesConfigurationClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Download gives the sas-url to download the configurations for vpn-sites in a resource group. +// Parameters: +// resourceGroupName - the resource group name. +// virtualWANName - the name of the VirtualWAN for which configuration of all vpn-sites is needed. +// request - parameters supplied to download vpn-sites configuration. +func (client VpnSitesConfigurationClient) Download(ctx context.Context, resourceGroupName string, virtualWANName string, request GetVpnSitesConfigurationRequest) (result VpnSitesConfigurationDownloadFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VpnSitesConfigurationClient.Download") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: request, + Constraints: []validation.Constraint{{Target: "request.OutputBlobSasURL", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("network.VpnSitesConfigurationClient", "Download", err.Error()) + } + + req, err := client.DownloadPreparer(ctx, resourceGroupName, virtualWANName, request) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSitesConfigurationClient", "Download", nil, "Failure preparing request") + return + } + + result, err = client.DownloadSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VpnSitesConfigurationClient", "Download", result.Response(), "Failure sending request") + return + } + + return +} + +// DownloadPreparer prepares the Download request. +func (client VpnSitesConfigurationClient) DownloadPreparer(ctx context.Context, resourceGroupName string, virtualWANName string, request GetVpnSitesConfigurationRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "virtualWANName": autorest.Encode("path", virtualWANName), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/vpnConfiguration", pathParameters), + autorest.WithJSON(request), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DownloadSender sends the Download request. The method will close the +// http.Response Body if it receives an error. +func (client VpnSitesConfigurationClient) DownloadSender(req *http.Request) (future VpnSitesConfigurationDownloadFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DownloadResponder handles the response to the Download request. The method always +// closes the http.Response Body. +func (client VpnSitesConfigurationClient) DownloadResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} diff --git a/services/network/mgmt/2020-07-01/network/watchers.go b/services/network/mgmt/2020-07-01/network/watchers.go new file mode 100644 index 000000000000..793da6806d7a --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/watchers.go @@ -0,0 +1,1531 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// WatchersClient is the network Client +type WatchersClient struct { + BaseClient +} + +// NewWatchersClient creates an instance of the WatchersClient client. +func NewWatchersClient(subscriptionID string) WatchersClient { + return NewWatchersClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewWatchersClientWithBaseURI(baseURI string, subscriptionID string) WatchersClient { + return WatchersClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CheckConnectivity verifies the possibility of establishing a direct TCP connection from a virtual machine to a given +// endpoint including another VM or an arbitrary remote server. +// Parameters: +// resourceGroupName - the name of the network watcher resource group. +// networkWatcherName - the name of the network watcher resource. +// parameters - parameters that determine how the connectivity check will be performed. +func (client WatchersClient) CheckConnectivity(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters ConnectivityParameters) (result WatchersCheckConnectivityFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WatchersClient.CheckConnectivity") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Source", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "parameters.Source.ResourceID", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.Source.Port", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Source.Port", Name: validation.InclusiveMaximum, Rule: int64(65535), Chain: nil}, + {Target: "parameters.Source.Port", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + }}, + }}, + {Target: "parameters.Destination", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "parameters.Destination.Port", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Destination.Port", Name: validation.InclusiveMaximum, Rule: int64(65535), Chain: nil}, + {Target: "parameters.Destination.Port", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + }}, + }}}}}); err != nil { + return result, validation.NewError("network.WatchersClient", "CheckConnectivity", err.Error()) + } + + req, err := client.CheckConnectivityPreparer(ctx, resourceGroupName, networkWatcherName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "CheckConnectivity", nil, "Failure preparing request") + return + } + + result, err = client.CheckConnectivitySender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "CheckConnectivity", result.Response(), "Failure sending request") + return + } + + return +} + +// CheckConnectivityPreparer prepares the CheckConnectivity request. +func (client WatchersClient) CheckConnectivityPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters ConnectivityParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectivityCheck", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CheckConnectivitySender sends the CheckConnectivity request. The method will close the +// http.Response Body if it receives an error. +func (client WatchersClient) CheckConnectivitySender(req *http.Request) (future WatchersCheckConnectivityFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CheckConnectivityResponder handles the response to the CheckConnectivity request. The method always +// closes the http.Response Body. +func (client WatchersClient) CheckConnectivityResponder(resp *http.Response) (result ConnectivityInformation, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// CreateOrUpdate creates or updates a network watcher in the specified resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkWatcherName - the name of the network watcher. +// parameters - parameters that define the network watcher resource. +func (client WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters Watcher) (result Watcher, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WatchersClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, networkWatcherName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + resp, err := client.CreateOrUpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure sending request") + return + } + + result, err = client.CreateOrUpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "CreateOrUpdate", resp, "Failure responding to request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client WatchersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters Watcher) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client WatchersClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client WatchersClient) CreateOrUpdateResponder(resp *http.Response) (result Watcher, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified network watcher resource. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkWatcherName - the name of the network watcher. +func (client WatchersClient) Delete(ctx context.Context, resourceGroupName string, networkWatcherName string) (result WatchersDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WatchersClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, networkWatcherName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client WatchersClient) DeletePreparer(ctx context.Context, resourceGroupName string, networkWatcherName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client WatchersClient) DeleteSender(req *http.Request) (future WatchersDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client WatchersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified network watcher by resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkWatcherName - the name of the network watcher. +func (client WatchersClient) Get(ctx context.Context, resourceGroupName string, networkWatcherName string) (result Watcher, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WatchersClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, networkWatcherName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client WatchersClient) GetPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client WatchersClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client WatchersClient) GetResponder(resp *http.Response) (result Watcher, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetAzureReachabilityReport nOTE: This feature is currently in preview and still being tested for stability. Gets the +// relative latency score for internet service providers from a specified location to Azure regions. +// Parameters: +// resourceGroupName - the name of the network watcher resource group. +// networkWatcherName - the name of the network watcher resource. +// parameters - parameters that determine Azure reachability report configuration. +func (client WatchersClient) GetAzureReachabilityReport(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters AzureReachabilityReportParameters) (result WatchersGetAzureReachabilityReportFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WatchersClient.GetAzureReachabilityReport") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.ProviderLocation", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "parameters.ProviderLocation.Country", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "parameters.StartTime", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.EndTime", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("network.WatchersClient", "GetAzureReachabilityReport", err.Error()) + } + + req, err := client.GetAzureReachabilityReportPreparer(ctx, resourceGroupName, networkWatcherName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetAzureReachabilityReport", nil, "Failure preparing request") + return + } + + result, err = client.GetAzureReachabilityReportSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetAzureReachabilityReport", result.Response(), "Failure sending request") + return + } + + return +} + +// GetAzureReachabilityReportPreparer prepares the GetAzureReachabilityReport request. +func (client WatchersClient) GetAzureReachabilityReportPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters AzureReachabilityReportParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/azureReachabilityReport", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetAzureReachabilityReportSender sends the GetAzureReachabilityReport request. The method will close the +// http.Response Body if it receives an error. +func (client WatchersClient) GetAzureReachabilityReportSender(req *http.Request) (future WatchersGetAzureReachabilityReportFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// GetAzureReachabilityReportResponder handles the response to the GetAzureReachabilityReport request. The method always +// closes the http.Response Body. +func (client WatchersClient) GetAzureReachabilityReportResponder(resp *http.Response) (result AzureReachabilityReport, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetFlowLogStatus queries status of flow log and traffic analytics (optional) on a specified resource. +// Parameters: +// resourceGroupName - the name of the network watcher resource group. +// networkWatcherName - the name of the network watcher resource. +// parameters - parameters that define a resource to query flow log and traffic analytics (optional) status. +func (client WatchersClient) GetFlowLogStatus(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters FlowLogStatusParameters) (result WatchersGetFlowLogStatusFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WatchersClient.GetFlowLogStatus") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.TargetResourceID", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("network.WatchersClient", "GetFlowLogStatus", err.Error()) + } + + req, err := client.GetFlowLogStatusPreparer(ctx, resourceGroupName, networkWatcherName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetFlowLogStatus", nil, "Failure preparing request") + return + } + + result, err = client.GetFlowLogStatusSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetFlowLogStatus", result.Response(), "Failure sending request") + return + } + + return +} + +// GetFlowLogStatusPreparer prepares the GetFlowLogStatus request. +func (client WatchersClient) GetFlowLogStatusPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters FlowLogStatusParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryFlowLogStatus", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetFlowLogStatusSender sends the GetFlowLogStatus request. The method will close the +// http.Response Body if it receives an error. +func (client WatchersClient) GetFlowLogStatusSender(req *http.Request) (future WatchersGetFlowLogStatusFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// GetFlowLogStatusResponder handles the response to the GetFlowLogStatus request. The method always +// closes the http.Response Body. +func (client WatchersClient) GetFlowLogStatusResponder(resp *http.Response) (result FlowLogInformation, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetNetworkConfigurationDiagnostic gets Network Configuration Diagnostic data to help customers understand and debug +// network behavior. It provides detailed information on what security rules were applied to a specified traffic flow +// and the result of evaluating these rules. Customers must provide details of a flow like source, destination, +// protocol, etc. The API returns whether traffic was allowed or denied, the rules evaluated for the specified flow and +// the evaluation results. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkWatcherName - the name of the network watcher. +// parameters - parameters to get network configuration diagnostic. +func (client WatchersClient) GetNetworkConfigurationDiagnostic(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters ConfigurationDiagnosticParameters) (result WatchersGetNetworkConfigurationDiagnosticFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WatchersClient.GetNetworkConfigurationDiagnostic") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.TargetResourceID", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.Profiles", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("network.WatchersClient", "GetNetworkConfigurationDiagnostic", err.Error()) + } + + req, err := client.GetNetworkConfigurationDiagnosticPreparer(ctx, resourceGroupName, networkWatcherName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetNetworkConfigurationDiagnostic", nil, "Failure preparing request") + return + } + + result, err = client.GetNetworkConfigurationDiagnosticSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetNetworkConfigurationDiagnostic", result.Response(), "Failure sending request") + return + } + + return +} + +// GetNetworkConfigurationDiagnosticPreparer prepares the GetNetworkConfigurationDiagnostic request. +func (client WatchersClient) GetNetworkConfigurationDiagnosticPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters ConfigurationDiagnosticParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/networkConfigurationDiagnostic", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetNetworkConfigurationDiagnosticSender sends the GetNetworkConfigurationDiagnostic request. The method will close the +// http.Response Body if it receives an error. +func (client WatchersClient) GetNetworkConfigurationDiagnosticSender(req *http.Request) (future WatchersGetNetworkConfigurationDiagnosticFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// GetNetworkConfigurationDiagnosticResponder handles the response to the GetNetworkConfigurationDiagnostic request. The method always +// closes the http.Response Body. +func (client WatchersClient) GetNetworkConfigurationDiagnosticResponder(resp *http.Response) (result ConfigurationDiagnosticResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetNextHop gets the next hop from the specified VM. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkWatcherName - the name of the network watcher. +// parameters - parameters that define the source and destination endpoint. +func (client WatchersClient) GetNextHop(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters NextHopParameters) (result WatchersGetNextHopFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WatchersClient.GetNextHop") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.TargetResourceID", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.SourceIPAddress", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.DestinationIPAddress", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("network.WatchersClient", "GetNextHop", err.Error()) + } + + req, err := client.GetNextHopPreparer(ctx, resourceGroupName, networkWatcherName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetNextHop", nil, "Failure preparing request") + return + } + + result, err = client.GetNextHopSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetNextHop", result.Response(), "Failure sending request") + return + } + + return +} + +// GetNextHopPreparer prepares the GetNextHop request. +func (client WatchersClient) GetNextHopPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters NextHopParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/nextHop", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetNextHopSender sends the GetNextHop request. The method will close the +// http.Response Body if it receives an error. +func (client WatchersClient) GetNextHopSender(req *http.Request) (future WatchersGetNextHopFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// GetNextHopResponder handles the response to the GetNextHop request. The method always +// closes the http.Response Body. +func (client WatchersClient) GetNextHopResponder(resp *http.Response) (result NextHopResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetTopology gets the current network topology by resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkWatcherName - the name of the network watcher. +// parameters - parameters that define the representation of topology. +func (client WatchersClient) GetTopology(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters TopologyParameters) (result Topology, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WatchersClient.GetTopology") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetTopologyPreparer(ctx, resourceGroupName, networkWatcherName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", nil, "Failure preparing request") + return + } + + resp, err := client.GetTopologySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure sending request") + return + } + + result, err = client.GetTopologyResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTopology", resp, "Failure responding to request") + return + } + + return +} + +// GetTopologyPreparer prepares the GetTopology request. +func (client WatchersClient) GetTopologyPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters TopologyParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/topology", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetTopologySender sends the GetTopology request. The method will close the +// http.Response Body if it receives an error. +func (client WatchersClient) GetTopologySender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetTopologyResponder handles the response to the GetTopology request. The method always +// closes the http.Response Body. +func (client WatchersClient) GetTopologyResponder(resp *http.Response) (result Topology, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetTroubleshooting initiate troubleshooting on a specified resource. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkWatcherName - the name of the network watcher resource. +// parameters - parameters that define the resource to troubleshoot. +func (client WatchersClient) GetTroubleshooting(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters TroubleshootingParameters) (result WatchersGetTroubleshootingFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WatchersClient.GetTroubleshooting") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.TargetResourceID", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.TroubleshootingProperties", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "parameters.TroubleshootingProperties.StorageID", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.TroubleshootingProperties.StoragePath", Name: validation.Null, Rule: true, Chain: nil}, + }}}}}); err != nil { + return result, validation.NewError("network.WatchersClient", "GetTroubleshooting", err.Error()) + } + + req, err := client.GetTroubleshootingPreparer(ctx, resourceGroupName, networkWatcherName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTroubleshooting", nil, "Failure preparing request") + return + } + + result, err = client.GetTroubleshootingSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTroubleshooting", result.Response(), "Failure sending request") + return + } + + return +} + +// GetTroubleshootingPreparer prepares the GetTroubleshooting request. +func (client WatchersClient) GetTroubleshootingPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters TroubleshootingParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/troubleshoot", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetTroubleshootingSender sends the GetTroubleshooting request. The method will close the +// http.Response Body if it receives an error. +func (client WatchersClient) GetTroubleshootingSender(req *http.Request) (future WatchersGetTroubleshootingFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// GetTroubleshootingResponder handles the response to the GetTroubleshooting request. The method always +// closes the http.Response Body. +func (client WatchersClient) GetTroubleshootingResponder(resp *http.Response) (result TroubleshootingResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetTroubleshootingResult get the last completed troubleshooting result on a specified resource. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkWatcherName - the name of the network watcher resource. +// parameters - parameters that define the resource to query the troubleshooting result. +func (client WatchersClient) GetTroubleshootingResult(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters QueryTroubleshootingParameters) (result WatchersGetTroubleshootingResultFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WatchersClient.GetTroubleshootingResult") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.TargetResourceID", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("network.WatchersClient", "GetTroubleshootingResult", err.Error()) + } + + req, err := client.GetTroubleshootingResultPreparer(ctx, resourceGroupName, networkWatcherName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTroubleshootingResult", nil, "Failure preparing request") + return + } + + result, err = client.GetTroubleshootingResultSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetTroubleshootingResult", result.Response(), "Failure sending request") + return + } + + return +} + +// GetTroubleshootingResultPreparer prepares the GetTroubleshootingResult request. +func (client WatchersClient) GetTroubleshootingResultPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters QueryTroubleshootingParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryTroubleshootResult", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetTroubleshootingResultSender sends the GetTroubleshootingResult request. The method will close the +// http.Response Body if it receives an error. +func (client WatchersClient) GetTroubleshootingResultSender(req *http.Request) (future WatchersGetTroubleshootingResultFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// GetTroubleshootingResultResponder handles the response to the GetTroubleshootingResult request. The method always +// closes the http.Response Body. +func (client WatchersClient) GetTroubleshootingResultResponder(resp *http.Response) (result TroubleshootingResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetVMSecurityRules gets the configured and effective security group rules on the specified VM. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkWatcherName - the name of the network watcher. +// parameters - parameters that define the VM to check security groups for. +func (client WatchersClient) GetVMSecurityRules(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters SecurityGroupViewParameters) (result WatchersGetVMSecurityRulesFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WatchersClient.GetVMSecurityRules") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.TargetResourceID", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("network.WatchersClient", "GetVMSecurityRules", err.Error()) + } + + req, err := client.GetVMSecurityRulesPreparer(ctx, resourceGroupName, networkWatcherName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetVMSecurityRules", nil, "Failure preparing request") + return + } + + result, err = client.GetVMSecurityRulesSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "GetVMSecurityRules", result.Response(), "Failure sending request") + return + } + + return +} + +// GetVMSecurityRulesPreparer prepares the GetVMSecurityRules request. +func (client WatchersClient) GetVMSecurityRulesPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters SecurityGroupViewParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/securityGroupView", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetVMSecurityRulesSender sends the GetVMSecurityRules request. The method will close the +// http.Response Body if it receives an error. +func (client WatchersClient) GetVMSecurityRulesSender(req *http.Request) (future WatchersGetVMSecurityRulesFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// GetVMSecurityRulesResponder handles the response to the GetVMSecurityRules request. The method always +// closes the http.Response Body. +func (client WatchersClient) GetVMSecurityRulesResponder(resp *http.Response) (result SecurityGroupViewResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all network watchers by resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client WatchersClient) List(ctx context.Context, resourceGroupName string) (result WatcherListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WatchersClient.List") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "List", resp, "Failure responding to request") + return + } + + return +} + +// ListPreparer prepares the List request. +func (client WatchersClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client WatchersClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client WatchersClient) ListResponder(resp *http.Response) (result WatcherListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListAll gets all network watchers by subscription. +func (client WatchersClient) ListAll(ctx context.Context) (result WatcherListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WatchersClient.ListAll") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListAllPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", nil, "Failure preparing request") + return + } + + resp, err := client.ListAllSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure sending request") + return + } + + result, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAll", resp, "Failure responding to request") + return + } + + return +} + +// ListAllPreparer prepares the ListAll request. +func (client WatchersClient) ListAllPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkWatchers", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAllSender sends the ListAll request. The method will close the +// http.Response Body if it receives an error. +func (client WatchersClient) ListAllSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAllResponder handles the response to the ListAll request. The method always +// closes the http.Response Body. +func (client WatchersClient) ListAllResponder(resp *http.Response) (result WatcherListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListAvailableProviders nOTE: This feature is currently in preview and still being tested for stability. Lists all +// available internet service providers for a specified Azure region. +// Parameters: +// resourceGroupName - the name of the network watcher resource group. +// networkWatcherName - the name of the network watcher resource. +// parameters - parameters that scope the list of available providers. +func (client WatchersClient) ListAvailableProviders(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters AvailableProvidersListParameters) (result WatchersListAvailableProvidersFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WatchersClient.ListAvailableProviders") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListAvailableProvidersPreparer(ctx, resourceGroupName, networkWatcherName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAvailableProviders", nil, "Failure preparing request") + return + } + + result, err = client.ListAvailableProvidersSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "ListAvailableProviders", result.Response(), "Failure sending request") + return + } + + return +} + +// ListAvailableProvidersPreparer prepares the ListAvailableProviders request. +func (client WatchersClient) ListAvailableProvidersPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters AvailableProvidersListParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/availableProvidersList", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAvailableProvidersSender sends the ListAvailableProviders request. The method will close the +// http.Response Body if it receives an error. +func (client WatchersClient) ListAvailableProvidersSender(req *http.Request) (future WatchersListAvailableProvidersFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// ListAvailableProvidersResponder handles the response to the ListAvailableProviders request. The method always +// closes the http.Response Body. +func (client WatchersClient) ListAvailableProvidersResponder(resp *http.Response) (result AvailableProvidersList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// SetFlowLogConfiguration configures flow log and traffic analytics (optional) on a specified resource. +// Parameters: +// resourceGroupName - the name of the network watcher resource group. +// networkWatcherName - the name of the network watcher resource. +// parameters - parameters that define the configuration of flow log. +func (client WatchersClient) SetFlowLogConfiguration(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters FlowLogInformation) (result WatchersSetFlowLogConfigurationFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WatchersClient.SetFlowLogConfiguration") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.TargetResourceID", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.FlowLogProperties", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "parameters.FlowLogProperties.StorageID", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.FlowLogProperties.Enabled", Name: validation.Null, Rule: true, Chain: nil}, + }}}}}); err != nil { + return result, validation.NewError("network.WatchersClient", "SetFlowLogConfiguration", err.Error()) + } + + req, err := client.SetFlowLogConfigurationPreparer(ctx, resourceGroupName, networkWatcherName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "SetFlowLogConfiguration", nil, "Failure preparing request") + return + } + + result, err = client.SetFlowLogConfigurationSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "SetFlowLogConfiguration", result.Response(), "Failure sending request") + return + } + + return +} + +// SetFlowLogConfigurationPreparer prepares the SetFlowLogConfiguration request. +func (client WatchersClient) SetFlowLogConfigurationPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters FlowLogInformation) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/configureFlowLog", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// SetFlowLogConfigurationSender sends the SetFlowLogConfiguration request. The method will close the +// http.Response Body if it receives an error. +func (client WatchersClient) SetFlowLogConfigurationSender(req *http.Request) (future WatchersSetFlowLogConfigurationFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// SetFlowLogConfigurationResponder handles the response to the SetFlowLogConfiguration request. The method always +// closes the http.Response Body. +func (client WatchersClient) SetFlowLogConfigurationResponder(resp *http.Response) (result FlowLogInformation, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// UpdateTags updates a network watcher tags. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkWatcherName - the name of the network watcher. +// parameters - parameters supplied to update network watcher tags. +func (client WatchersClient) UpdateTags(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters TagsObject) (result Watcher, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WatchersClient.UpdateTags") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, networkWatcherName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateTagsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", resp, "Failure sending request") + return + } + + result, err = client.UpdateTagsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "UpdateTags", resp, "Failure responding to request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client WatchersClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client WatchersClient) UpdateTagsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client WatchersClient) UpdateTagsResponder(resp *http.Response) (result Watcher, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// VerifyIPFlow verify IP flow from the specified VM to a location given the currently configured NSG rules. +// Parameters: +// resourceGroupName - the name of the resource group. +// networkWatcherName - the name of the network watcher. +// parameters - parameters that define the IP flow to be verified. +func (client WatchersClient) VerifyIPFlow(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters VerificationIPFlowParameters) (result WatchersVerifyIPFlowFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WatchersClient.VerifyIPFlow") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.TargetResourceID", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.LocalPort", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.RemotePort", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.LocalIPAddress", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.RemoteIPAddress", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("network.WatchersClient", "VerifyIPFlow", err.Error()) + } + + req, err := client.VerifyIPFlowPreparer(ctx, resourceGroupName, networkWatcherName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "VerifyIPFlow", nil, "Failure preparing request") + return + } + + result, err = client.VerifyIPFlowSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WatchersClient", "VerifyIPFlow", result.Response(), "Failure sending request") + return + } + + return +} + +// VerifyIPFlowPreparer prepares the VerifyIPFlow request. +func (client WatchersClient) VerifyIPFlowPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters VerificationIPFlowParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkWatcherName": autorest.Encode("path", networkWatcherName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/ipFlowVerify", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// VerifyIPFlowSender sends the VerifyIPFlow request. The method will close the +// http.Response Body if it receives an error. +func (client WatchersClient) VerifyIPFlowSender(req *http.Request) (future WatchersVerifyIPFlowFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// VerifyIPFlowResponder handles the response to the VerifyIPFlow request. The method always +// closes the http.Response Body. +func (client WatchersClient) VerifyIPFlowResponder(resp *http.Response) (result VerificationIPFlowResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/network/mgmt/2020-07-01/network/webapplicationfirewallpolicies.go b/services/network/mgmt/2020-07-01/network/webapplicationfirewallpolicies.go new file mode 100644 index 000000000000..f09e2e7e498a --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/webapplicationfirewallpolicies.go @@ -0,0 +1,534 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// WebApplicationFirewallPoliciesClient is the network Client +type WebApplicationFirewallPoliciesClient struct { + BaseClient +} + +// NewWebApplicationFirewallPoliciesClient creates an instance of the WebApplicationFirewallPoliciesClient client. +func NewWebApplicationFirewallPoliciesClient(subscriptionID string) WebApplicationFirewallPoliciesClient { + return NewWebApplicationFirewallPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewWebApplicationFirewallPoliciesClientWithBaseURI creates an instance of the WebApplicationFirewallPoliciesClient +// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI +// (sovereign clouds, Azure stack). +func NewWebApplicationFirewallPoliciesClientWithBaseURI(baseURI string, subscriptionID string) WebApplicationFirewallPoliciesClient { + return WebApplicationFirewallPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or update policy with specified rule set name within a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// policyName - the name of the policy. +// parameters - policy to be created. +func (client WebApplicationFirewallPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, policyName string, parameters WebApplicationFirewallPolicy) (result WebApplicationFirewallPolicy, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WebApplicationFirewallPoliciesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: policyName, + Constraints: []validation.Constraint{{Target: "policyName", Name: validation.MaxLength, Rule: 128, Chain: nil}}}, + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.WebApplicationFirewallPolicyPropertiesFormat", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.WebApplicationFirewallPolicyPropertiesFormat.PolicySettings", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.WebApplicationFirewallPolicyPropertiesFormat.PolicySettings.MaxRequestBodySizeInKb", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.WebApplicationFirewallPolicyPropertiesFormat.PolicySettings.MaxRequestBodySizeInKb", Name: validation.InclusiveMaximum, Rule: int64(128), Chain: nil}, + {Target: "parameters.WebApplicationFirewallPolicyPropertiesFormat.PolicySettings.MaxRequestBodySizeInKb", Name: validation.InclusiveMinimum, Rule: int64(8), Chain: nil}, + }}, + {Target: "parameters.WebApplicationFirewallPolicyPropertiesFormat.PolicySettings.FileUploadLimitInMb", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.WebApplicationFirewallPolicyPropertiesFormat.PolicySettings.FileUploadLimitInMb", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}}}, + }}, + {Target: "parameters.WebApplicationFirewallPolicyPropertiesFormat.ManagedRules", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "parameters.WebApplicationFirewallPolicyPropertiesFormat.ManagedRules.ManagedRuleSets", Name: validation.Null, Rule: true, Chain: nil}}}, + }}}}}); err != nil { + return result, validation.NewError("network.WebApplicationFirewallPoliciesClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, policyName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + resp, err := client.CreateOrUpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "CreateOrUpdate", resp, "Failure sending request") + return + } + + result, err = client.CreateOrUpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client WebApplicationFirewallPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, policyName string, parameters WebApplicationFirewallPolicy) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "policyName": autorest.Encode("path", policyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Etag = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/{policyName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client WebApplicationFirewallPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client WebApplicationFirewallPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result WebApplicationFirewallPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes Policy. +// Parameters: +// resourceGroupName - the name of the resource group. +// policyName - the name of the policy. +func (client WebApplicationFirewallPoliciesClient) Delete(ctx context.Context, resourceGroupName string, policyName string) (result WebApplicationFirewallPoliciesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WebApplicationFirewallPoliciesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: policyName, + Constraints: []validation.Constraint{{Target: "policyName", Name: validation.MaxLength, Rule: 128, Chain: nil}}}}); err != nil { + return result, validation.NewError("network.WebApplicationFirewallPoliciesClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, policyName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client WebApplicationFirewallPoliciesClient) DeletePreparer(ctx context.Context, resourceGroupName string, policyName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "policyName": autorest.Encode("path", policyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/{policyName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client WebApplicationFirewallPoliciesClient) DeleteSender(req *http.Request) (future WebApplicationFirewallPoliciesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client WebApplicationFirewallPoliciesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get retrieve protection policy with specified name within a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +// policyName - the name of the policy. +func (client WebApplicationFirewallPoliciesClient) Get(ctx context.Context, resourceGroupName string, policyName string) (result WebApplicationFirewallPolicy, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WebApplicationFirewallPoliciesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: policyName, + Constraints: []validation.Constraint{{Target: "policyName", Name: validation.MaxLength, Rule: 128, Chain: nil}}}}); err != nil { + return result, validation.NewError("network.WebApplicationFirewallPoliciesClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, policyName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client WebApplicationFirewallPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, policyName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "policyName": autorest.Encode("path", policyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/{policyName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client WebApplicationFirewallPoliciesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client WebApplicationFirewallPoliciesClient) GetResponder(resp *http.Response) (result WebApplicationFirewallPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all of the protection policies within a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client WebApplicationFirewallPoliciesClient) List(ctx context.Context, resourceGroupName string) (result WebApplicationFirewallPolicyListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WebApplicationFirewallPoliciesClient.List") + defer func() { + sc := -1 + if result.wafplr.Response.Response != nil { + sc = result.wafplr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.wafplr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "List", resp, "Failure sending request") + return + } + + result.wafplr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "List", resp, "Failure responding to request") + return + } + if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client WebApplicationFirewallPoliciesClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client WebApplicationFirewallPoliciesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client WebApplicationFirewallPoliciesClient) ListResponder(resp *http.Response) (result WebApplicationFirewallPolicyListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client WebApplicationFirewallPoliciesClient) listNextResults(ctx context.Context, lastResults WebApplicationFirewallPolicyListResult) (result WebApplicationFirewallPolicyListResult, err error) { + req, err := lastResults.webApplicationFirewallPolicyListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client WebApplicationFirewallPoliciesClient) ListComplete(ctx context.Context, resourceGroupName string) (result WebApplicationFirewallPolicyListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WebApplicationFirewallPoliciesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName) + return +} + +// ListAll gets all the WAF policies in a subscription. +func (client WebApplicationFirewallPoliciesClient) ListAll(ctx context.Context) (result WebApplicationFirewallPolicyListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WebApplicationFirewallPoliciesClient.ListAll") + defer func() { + sc := -1 + if result.wafplr.Response.Response != nil { + sc = result.wafplr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listAllNextResults + req, err := client.ListAllPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "ListAll", nil, "Failure preparing request") + return + } + + resp, err := client.ListAllSender(req) + if err != nil { + result.wafplr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "ListAll", resp, "Failure sending request") + return + } + + result.wafplr, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "ListAll", resp, "Failure responding to request") + return + } + if result.wafplr.hasNextLink() && result.wafplr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListAllPreparer prepares the ListAll request. +func (client WebApplicationFirewallPoliciesClient) ListAllPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAllSender sends the ListAll request. The method will close the +// http.Response Body if it receives an error. +func (client WebApplicationFirewallPoliciesClient) ListAllSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAllResponder handles the response to the ListAll request. The method always +// closes the http.Response Body. +func (client WebApplicationFirewallPoliciesClient) ListAllResponder(resp *http.Response) (result WebApplicationFirewallPolicyListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listAllNextResults retrieves the next set of results, if any. +func (client WebApplicationFirewallPoliciesClient) listAllNextResults(ctx context.Context, lastResults WebApplicationFirewallPolicyListResult) (result WebApplicationFirewallPolicyListResult, err error) { + req, err := lastResults.webApplicationFirewallPolicyListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listAllNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListAllSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listAllNextResults", resp, "Failure sending next results request") + } + result, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesClient", "listAllNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListAllComplete enumerates all values, automatically crossing page boundaries as required. +func (client WebApplicationFirewallPoliciesClient) ListAllComplete(ctx context.Context) (result WebApplicationFirewallPolicyListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WebApplicationFirewallPoliciesClient.ListAll") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListAll(ctx) + return +} diff --git a/services/network/mgmt/2020-07-01/network/webcategories.go b/services/network/mgmt/2020-07-01/network/webcategories.go new file mode 100644 index 000000000000..a9497ea240c8 --- /dev/null +++ b/services/network/mgmt/2020-07-01/network/webcategories.go @@ -0,0 +1,233 @@ +package network + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// WebCategoriesClient is the network Client +type WebCategoriesClient struct { + BaseClient +} + +// NewWebCategoriesClient creates an instance of the WebCategoriesClient client. +func NewWebCategoriesClient(subscriptionID string) WebCategoriesClient { + return NewWebCategoriesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewWebCategoriesClientWithBaseURI creates an instance of the WebCategoriesClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewWebCategoriesClientWithBaseURI(baseURI string, subscriptionID string) WebCategoriesClient { + return WebCategoriesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get gets the specified Azure Web Category. +// Parameters: +// name - the name of the azureWebCategory. +// expand - expands resourceIds back referenced by the azureWebCategory resource. +func (client WebCategoriesClient) Get(ctx context.Context, name string, expand string) (result AzureWebCategory, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WebCategoriesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, name, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WebCategoriesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.WebCategoriesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WebCategoriesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client WebCategoriesClient) GetPreparer(ctx context.Context, name string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "name": autorest.Encode("path", name), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/azureWebCategories/{name}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client WebCategoriesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client WebCategoriesClient) GetResponder(resp *http.Response) (result AzureWebCategory, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListBySubscription gets all the Azure Web Categories in a subscription. +func (client WebCategoriesClient) ListBySubscription(ctx context.Context) (result AzureWebCategoryListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WebCategoriesClient.ListBySubscription") + defer func() { + sc := -1 + if result.awclr.Response.Response != nil { + sc = result.awclr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listBySubscriptionNextResults + req, err := client.ListBySubscriptionPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WebCategoriesClient", "ListBySubscription", nil, "Failure preparing request") + return + } + + resp, err := client.ListBySubscriptionSender(req) + if err != nil { + result.awclr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.WebCategoriesClient", "ListBySubscription", resp, "Failure sending request") + return + } + + result.awclr, err = client.ListBySubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WebCategoriesClient", "ListBySubscription", resp, "Failure responding to request") + return + } + if result.awclr.hasNextLink() && result.awclr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListBySubscriptionPreparer prepares the ListBySubscription request. +func (client WebCategoriesClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/azureWebCategories", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListBySubscriptionSender sends the ListBySubscription request. The method will close the +// http.Response Body if it receives an error. +func (client WebCategoriesClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always +// closes the http.Response Body. +func (client WebCategoriesClient) ListBySubscriptionResponder(resp *http.Response) (result AzureWebCategoryListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listBySubscriptionNextResults retrieves the next set of results, if any. +func (client WebCategoriesClient) listBySubscriptionNextResults(ctx context.Context, lastResults AzureWebCategoryListResult) (result AzureWebCategoryListResult, err error) { + req, err := lastResults.azureWebCategoryListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "network.WebCategoriesClient", "listBySubscriptionNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListBySubscriptionSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "network.WebCategoriesClient", "listBySubscriptionNextResults", resp, "Failure sending next results request") + } + result, err = client.ListBySubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.WebCategoriesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required. +func (client WebCategoriesClient) ListBySubscriptionComplete(ctx context.Context) (result AzureWebCategoryListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WebCategoriesClient.ListBySubscription") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListBySubscription(ctx) + return +} From 881d0143d48357d90328e96102d8a6c4f24b94b3 Mon Sep 17 00:00:00 2001 From: arcturusZhang Date: Thu, 17 Dec 2020 12:18:50 +0800 Subject: [PATCH 05/12] Generated from tags [package-composite-v3] of specification/security/resource-manager/readme.md (commit hash: 3a3a9452f965a227ce43e6b545035b99dd175f23) --- .../preview/security/mgmt/security/models.go | 40 +- .../mgmt/security/securityapi/models.go | 1 + .../security/mgmt/v3.0/security/CHANGELOG.md | 560 ++++-------------- .../security/adaptivenetworkhardenings.go | 2 +- .../security/mgmt/v3.0/security/alerts.go | 8 +- .../v3.0/security/alertssuppressionrules.go | 2 +- .../mgmt/v3.0/security/allowedconnections.go | 4 +- .../mgmt/v3.0/security/assessments.go | 5 +- .../mgmt/v3.0/security/assessmentsmetadata.go | 4 +- .../mgmt/v3.0/security/automations.go | 4 +- .../v3.0/security/autoprovisioningsettings.go | 2 +- .../mgmt/v3.0/security/complianceresults.go | 2 +- .../mgmt/v3.0/security/compliances.go | 2 +- .../security/mgmt/v3.0/security/connectors.go | 2 +- .../security/mgmt/v3.0/security/contacts.go | 2 +- .../v3.0/security/devicesecuritygroups.go | 2 +- .../mgmt/v3.0/security/devicesforhub.go | 2 +- .../v3.0/security/devicesforsubscription.go | 2 +- .../security/discoveredsecuritysolutions.go | 4 +- .../security/mgmt/v3.0/security/enums.go | 40 +- .../security/externalsecuritysolutions.go | 4 +- .../security/informationprotectionpolicies.go | 2 +- .../security/mgmt/v3.0/security/iotalerts.go | 4 +- .../mgmt/v3.0/security/iotrecommendations.go | 4 +- .../mgmt/v3.0/security/iotsecuritysolution.go | 4 +- ...curitysolutionsanalyticsaggregatedalert.go | 2 +- ...ecuritysolutionsanalyticsrecommendation.go | 2 +- .../security/mgmt/v3.0/security/iotsensors.go | 89 ++- .../security/mgmt/v3.0/security/iotsites.go | 344 +++++++++++ .../v3.0/security/jitnetworkaccesspolicies.go | 8 +- .../security/mgmt/v3.0/security/locations.go | 2 +- .../security/mgmt/v3.0/security/models.go | 362 ++++++----- .../security/mgmt/v3.0/security/operations.go | 2 +- .../regulatorycomplianceassessments.go | 2 +- .../security/regulatorycompliancecontrols.go | 2 +- .../security/regulatorycompliancestandards.go | 2 +- .../security/securescorecontroldefinitions.go | 4 +- .../mgmt/v3.0/security/securescorecontrols.go | 4 +- .../mgmt/v3.0/security/securescores.go | 2 +- .../v3.0/security/securityapi/interfaces.go | 19 +- .../security/mgmt/v3.0/security/settings.go | 10 +- .../security/mgmt/v3.0/security/solutions.go | 2 +- .../mgmt/v3.0/security/subassessments.go | 4 +- .../security/mgmt/v3.0/security/tasks.go | 6 +- .../security/mgmt/v3.0/security/topology.go | 4 +- .../mgmt/v3.0/security/workspacesettings.go | 2 +- 46 files changed, 932 insertions(+), 650 deletions(-) create mode 100644 services/preview/security/mgmt/v3.0/security/iotsites.go diff --git a/profiles/preview/preview/security/mgmt/security/models.go b/profiles/preview/preview/security/mgmt/security/models.go index 9ab1656c70bc..3996cdd6387e 100644 --- a/profiles/preview/preview/security/mgmt/security/models.go +++ b/profiles/preview/preview/security/mgmt/security/models.go @@ -387,7 +387,6 @@ type KindEnum = original.KindEnum const ( KindDataExportSettings KindEnum = original.KindDataExportSettings KindSetting KindEnum = original.KindSetting - KindSettingResource KindEnum = original.KindSettingResource ) type KindEnum1 = original.KindEnum1 @@ -697,6 +696,14 @@ const ( ScriptNone Script = original.ScriptNone ) +type SensorStatus = original.SensorStatus + +const ( + Disconnected SensorStatus = original.Disconnected + Ok SensorStatus = original.Ok + Unavailable SensorStatus = original.Unavailable +) + type Severity = original.Severity const ( @@ -776,6 +783,15 @@ const ( ThreatResistance Threats = original.ThreatResistance ) +type TiStatus = original.TiStatus + +const ( + TiStatusFailed TiStatus = original.TiStatusFailed + TiStatusInProgress TiStatus = original.TiStatusInProgress + TiStatusOk TiStatus = original.TiStatusOk + TiStatusUpdateAvailable TiStatus = original.TiStatusUpdateAvailable +) + type TransportProtocol = original.TransportProtocol const ( @@ -940,7 +956,6 @@ type BasicOnPremiseResourceDetails = original.BasicOnPremiseResourceDetails type BasicResourceDetails = original.BasicResourceDetails type BasicResourceIdentifier = original.BasicResourceIdentifier type BasicSetting = original.BasicSetting -type BasicSettingResource = original.BasicSettingResource type BasicThresholdCustomAlertRule = original.BasicThresholdCustomAlertRule type BasicTimeWindowCustomAlertRule = original.BasicTimeWindowCustomAlertRule type BenchmarkReference = original.BenchmarkReference @@ -1094,9 +1109,14 @@ type IotSecuritySolutionAnalyticsClient = original.IotSecuritySolutionAnalyticsC type IotSecuritySolutionClient = original.IotSecuritySolutionClient type IotSecuritySolutionsAnalyticsAggregatedAlertClient = original.IotSecuritySolutionsAnalyticsAggregatedAlertClient type IotSecuritySolutionsAnalyticsRecommendationClient = original.IotSecuritySolutionsAnalyticsRecommendationClient -type IotSensor = original.IotSensor +type IotSensorProperties = original.IotSensorProperties type IotSensorsClient = original.IotSensorsClient type IotSensorsList = original.IotSensorsList +type IotSensorsModel = original.IotSensorsModel +type IotSiteProperties = original.IotSiteProperties +type IotSitesClient = original.IotSitesClient +type IotSitesList = original.IotSitesList +type IotSitesModel = original.IotSitesModel type JitNetworkAccessPoliciesClient = original.JitNetworkAccessPoliciesClient type JitNetworkAccessPoliciesList = original.JitNetworkAccessPoliciesList type JitNetworkAccessPoliciesListIterator = original.JitNetworkAccessPoliciesListIterator @@ -1225,7 +1245,7 @@ type ServerVulnerabilityAssessmentsList = original.ServerVulnerabilityAssessment type ServerVulnerabilityProperties = original.ServerVulnerabilityProperties type ServicePrincipalProperties = original.ServicePrincipalProperties type Setting = original.Setting -type SettingResource = original.SettingResource +type SettingModel = original.SettingModel type SettingsClient = original.SettingsClient type SettingsList = original.SettingsList type SettingsListIterator = original.SettingsListIterator @@ -1626,6 +1646,12 @@ func NewIotSensorsClient(subscriptionID string, ascLocation string) IotSensorsCl func NewIotSensorsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) IotSensorsClient { return original.NewIotSensorsClientWithBaseURI(baseURI, subscriptionID, ascLocation) } +func NewIotSitesClient(subscriptionID string, ascLocation string) IotSitesClient { + return original.NewIotSitesClient(subscriptionID, ascLocation) +} +func NewIotSitesClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) IotSitesClient { + return original.NewIotSitesClientWithBaseURI(baseURI, subscriptionID, ascLocation) +} func NewJitNetworkAccessPoliciesClient(subscriptionID string, ascLocation string) JitNetworkAccessPoliciesClient { return original.NewJitNetworkAccessPoliciesClient(subscriptionID, ascLocation) } @@ -2064,6 +2090,9 @@ func PossibleScanningFunctionalityValues() []ScanningFunctionality { func PossibleScriptValues() []Script { return original.PossibleScriptValues() } +func PossibleSensorStatusValues() []SensorStatus { + return original.PossibleSensorStatusValues() +} func PossibleSeverityValues() []Severity { return original.PossibleSeverityValues() } @@ -2091,6 +2120,9 @@ func PossibleSubAssessmentStatusCodeValues() []SubAssessmentStatusCode { func PossibleThreatsValues() []Threats { return original.PossibleThreatsValues() } +func PossibleTiStatusValues() []TiStatus { + return original.PossibleTiStatusValues() +} func PossibleTransportProtocolValues() []TransportProtocol { return original.PossibleTransportProtocolValues() } diff --git a/profiles/preview/preview/security/mgmt/security/securityapi/models.go b/profiles/preview/preview/security/mgmt/security/securityapi/models.go index 230b6d632fa2..62244635f671 100644 --- a/profiles/preview/preview/security/mgmt/security/securityapi/models.go +++ b/profiles/preview/preview/security/mgmt/security/securityapi/models.go @@ -52,6 +52,7 @@ type IotSecuritySolutionClientAPI = original.IotSecuritySolutionClientAPI type IotSecuritySolutionsAnalyticsAggregatedAlertClientAPI = original.IotSecuritySolutionsAnalyticsAggregatedAlertClientAPI type IotSecuritySolutionsAnalyticsRecommendationClientAPI = original.IotSecuritySolutionsAnalyticsRecommendationClientAPI type IotSensorsClientAPI = original.IotSensorsClientAPI +type IotSitesClientAPI = original.IotSitesClientAPI type JitNetworkAccessPoliciesClientAPI = original.JitNetworkAccessPoliciesClientAPI type LocationsClientAPI = original.LocationsClientAPI type OnPremiseIotSensorsClientAPI = original.OnPremiseIotSensorsClientAPI diff --git a/services/preview/security/mgmt/v3.0/security/CHANGELOG.md b/services/preview/security/mgmt/v3.0/security/CHANGELOG.md index c87af6fb332c..fc931ca8b419 100644 --- a/services/preview/security/mgmt/v3.0/security/CHANGELOG.md +++ b/services/preview/security/mgmt/v3.0/security/CHANGELOG.md @@ -1,438 +1,134 @@ -Generated from https://github.com/Azure/azure-rest-api-specs/tree/3c764635e7d442b3e74caf593029fcd440b3ef82 +Generated from https://github.com/Azure/azure-rest-api-specs/tree/3a3a9452f965a227ce43e6b545035b99dd175f23 -Code generator @microsoft.azure/autorest.go@~2.1.161 +Code generator @microsoft.azure/autorest.go@~2.1.165 ## Breaking Changes -- Const `RuleTypeHTTPC2DRejectedMessagesNotInAllowedRange` type has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Const `RuleTypeMqttC2DMessagesNotInAllowedRange` type has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Const `RuleTypeTimeWindowCustomAlertRule` type has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Const `RuleTypeFailedLocalLoginsNotInAllowedRange` type has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Const `RuleTypeAmqpC2DRejectedMessagesNotInAllowedRange` type has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Const `RuleTypeTwinUpdatesNotInAllowedRange` type has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Const `Standard` type has been changed from `PricingTier` to `DeviceCriticality` -- Const `RuleTypeUnauthorizedOperationsNotInAllowedRange` type has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Const `RuleTypeCustomAlertRule` type has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Const `RuleTypeActiveConnectionsNotInAllowedRange` type has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Const `RuleTypeListCustomAlertRule` type has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Const `RuleTypeAmqpC2DMessagesNotInAllowedRange` type has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Const `RuleTypeAllowlistCustomAlertRule` type has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Const `RuleTypeThresholdCustomAlertRule` type has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Const `RuleTypeAmqpD2CMessagesNotInAllowedRange` type has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Const `RuleTypeHTTPD2CMessagesNotInAllowedRange` type has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Const `RuleTypeConnectionToIPNotAllowed` type has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Const `RuleTypeProcessNotAllowed` type has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Const `RuleTypeMqttD2CMessagesNotInAllowedRange` type has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Const `RuleTypeFileUploadsNotInAllowedRange` type has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Const `RuleTypeQueuePurgesNotInAllowedRange` type has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Const `RuleTypeDenylistCustomAlertRule` type has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Const `RuleTypeMqttC2DRejectedMessagesNotInAllowedRange` type has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Const `RuleTypeDirectMethodInvokesNotInAllowedRange` type has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Const `RuleTypeHTTPC2DMessagesNotInAllowedRange` type has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Const `RuleTypeLocalUserNotAllowed` type has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Function `NewAllowedConnectionsListPage` parameter(s) have been changed from `(func(context.Context, AllowedConnectionsList) (AllowedConnectionsList, error))` to `(AllowedConnectionsList, func(context.Context, AllowedConnectionsList) (AllowedConnectionsList, error))` -- Function `NewAutoProvisioningSettingListPage` parameter(s) have been changed from `(func(context.Context, AutoProvisioningSettingList) (AutoProvisioningSettingList, error))` to `(AutoProvisioningSettingList, func(context.Context, AutoProvisioningSettingList) (AutoProvisioningSettingList, error))` -- Function `NewAlertListPage` parameter(s) have been changed from `(func(context.Context, AlertList) (AlertList, error))` to `(AlertList, func(context.Context, AlertList) (AlertList, error))` -- Function `NewExternalSecuritySolutionListPage` parameter(s) have been changed from `(func(context.Context, ExternalSecuritySolutionList) (ExternalSecuritySolutionList, error))` to `(ExternalSecuritySolutionList, func(context.Context, ExternalSecuritySolutionList) (ExternalSecuritySolutionList, error))` -- Function `NewComplianceListPage` parameter(s) have been changed from `(func(context.Context, ComplianceList) (ComplianceList, error))` to `(ComplianceList, func(context.Context, ComplianceList) (ComplianceList, error))` -- Function `NewRegulatoryComplianceAssessmentListPage` parameter(s) have been changed from `(func(context.Context, RegulatoryComplianceAssessmentList) (RegulatoryComplianceAssessmentList, error))` to `(RegulatoryComplianceAssessmentList, func(context.Context, RegulatoryComplianceAssessmentList) (RegulatoryComplianceAssessmentList, error))` -- Function `NewAscLocationListPage` parameter(s) have been changed from `(func(context.Context, AscLocationList) (AscLocationList, error))` to `(AscLocationList, func(context.Context, AscLocationList) (AscLocationList, error))` -- Function `NewIotAlertListPage` parameter(s) have been changed from `(func(context.Context, IotAlertList) (IotAlertList, error))` to `(IotAlertList, func(context.Context, IotAlertList) (IotAlertList, error))` -- Function `NewSettingsListPage` parameter(s) have been changed from `(func(context.Context, SettingsList) (SettingsList, error))` to `(SettingsList, func(context.Context, SettingsList) (SettingsList, error))` -- Function `NewSecureScoreControlListPage` parameter(s) have been changed from `(func(context.Context, SecureScoreControlList) (SecureScoreControlList, error))` to `(SecureScoreControlList, func(context.Context, SecureScoreControlList) (SecureScoreControlList, error))` -- Function `NewTaskListPage` parameter(s) have been changed from `(func(context.Context, TaskList) (TaskList, error))` to `(TaskList, func(context.Context, TaskList) (TaskList, error))` -- Function `NewSecureScoresListPage` parameter(s) have been changed from `(func(context.Context, SecureScoresList) (SecureScoresList, error))` to `(SecureScoresList, func(context.Context, SecureScoresList) (SecureScoresList, error))` -- Function `NewInformationProtectionPolicyListPage` parameter(s) have been changed from `(func(context.Context, InformationProtectionPolicyList) (InformationProtectionPolicyList, error))` to `(InformationProtectionPolicyList, func(context.Context, InformationProtectionPolicyList) (InformationProtectionPolicyList, error))` -- Function `NewContactListPage` parameter(s) have been changed from `(func(context.Context, ContactList) (ContactList, error))` to `(ContactList, func(context.Context, ContactList) (ContactList, error))` -- Function `NewAlertsSuppressionRulesListPage` parameter(s) have been changed from `(func(context.Context, AlertsSuppressionRulesList) (AlertsSuppressionRulesList, error))` to `(AlertsSuppressionRulesList, func(context.Context, AlertsSuppressionRulesList) (AlertsSuppressionRulesList, error))` -- Function `NewSecureScoreControlDefinitionListPage` parameter(s) have been changed from `(func(context.Context, SecureScoreControlDefinitionList) (SecureScoreControlDefinitionList, error))` to `(SecureScoreControlDefinitionList, func(context.Context, SecureScoreControlDefinitionList) (SecureScoreControlDefinitionList, error))` -- Function `NewComplianceResultListPage` parameter(s) have been changed from `(func(context.Context, ComplianceResultList) (ComplianceResultList, error))` to `(ComplianceResultList, func(context.Context, ComplianceResultList) (ComplianceResultList, error))` -- Function `NewRegulatoryComplianceStandardListPage` parameter(s) have been changed from `(func(context.Context, RegulatoryComplianceStandardList) (RegulatoryComplianceStandardList, error))` to `(RegulatoryComplianceStandardList, func(context.Context, RegulatoryComplianceStandardList) (RegulatoryComplianceStandardList, error))` -- Function `NewOperationListPage` parameter(s) have been changed from `(func(context.Context, OperationList) (OperationList, error))` to `(OperationList, func(context.Context, OperationList) (OperationList, error))` -- Function `NewSubAssessmentListPage` parameter(s) have been changed from `(func(context.Context, SubAssessmentList) (SubAssessmentList, error))` to `(SubAssessmentList, func(context.Context, SubAssessmentList) (SubAssessmentList, error))` -- Function `NewSolutionListPage` parameter(s) have been changed from `(func(context.Context, SolutionList) (SolutionList, error))` to `(SolutionList, func(context.Context, SolutionList) (SolutionList, error))` -- Function `NewJitNetworkAccessPoliciesListPage` parameter(s) have been changed from `(func(context.Context, JitNetworkAccessPoliciesList) (JitNetworkAccessPoliciesList, error))` to `(JitNetworkAccessPoliciesList, func(context.Context, JitNetworkAccessPoliciesList) (JitNetworkAccessPoliciesList, error))` -- Function `NewIotRecommendationListPage` parameter(s) have been changed from `(func(context.Context, IotRecommendationList) (IotRecommendationList, error))` to `(IotRecommendationList, func(context.Context, IotRecommendationList) (IotRecommendationList, error))` -- Function `NewAutomationListPage` parameter(s) have been changed from `(func(context.Context, AutomationList) (AutomationList, error))` to `(AutomationList, func(context.Context, AutomationList) (AutomationList, error))` -- Function `NewConnectorSettingListPage` parameter(s) have been changed from `(func(context.Context, ConnectorSettingList) (ConnectorSettingList, error))` to `(ConnectorSettingList, func(context.Context, ConnectorSettingList) (ConnectorSettingList, error))` -- Function `NewAssessmentListPage` parameter(s) have been changed from `(func(context.Context, AssessmentList) (AssessmentList, error))` to `(AssessmentList, func(context.Context, AssessmentList) (AssessmentList, error))` -- Function `NewIoTSecurityAggregatedRecommendationListPage` parameter(s) have been changed from `(func(context.Context, IoTSecurityAggregatedRecommendationList) (IoTSecurityAggregatedRecommendationList, error))` to `(IoTSecurityAggregatedRecommendationList, func(context.Context, IoTSecurityAggregatedRecommendationList) (IoTSecurityAggregatedRecommendationList, error))` -- Function `NewAdaptiveNetworkHardeningsListPage` parameter(s) have been changed from `(func(context.Context, AdaptiveNetworkHardeningsList) (AdaptiveNetworkHardeningsList, error))` to `(AdaptiveNetworkHardeningsList, func(context.Context, AdaptiveNetworkHardeningsList) (AdaptiveNetworkHardeningsList, error))` -- Function `NewTopologyListPage` parameter(s) have been changed from `(func(context.Context, TopologyList) (TopologyList, error))` to `(TopologyList, func(context.Context, TopologyList) (TopologyList, error))` -- Function `NewAssessmentMetadataListPage` parameter(s) have been changed from `(func(context.Context, AssessmentMetadataList) (AssessmentMetadataList, error))` to `(AssessmentMetadataList, func(context.Context, AssessmentMetadataList) (AssessmentMetadataList, error))` -- Function `NewIoTSecurityAggregatedAlertListPage` parameter(s) have been changed from `(func(context.Context, IoTSecurityAggregatedAlertList) (IoTSecurityAggregatedAlertList, error))` to `(IoTSecurityAggregatedAlertList, func(context.Context, IoTSecurityAggregatedAlertList) (IoTSecurityAggregatedAlertList, error))` -- Function `NewRegulatoryComplianceControlListPage` parameter(s) have been changed from `(func(context.Context, RegulatoryComplianceControlList) (RegulatoryComplianceControlList, error))` to `(RegulatoryComplianceControlList, func(context.Context, RegulatoryComplianceControlList) (RegulatoryComplianceControlList, error))` -- Function `NewWorkspaceSettingListPage` parameter(s) have been changed from `(func(context.Context, WorkspaceSettingList) (WorkspaceSettingList, error))` to `(WorkspaceSettingList, func(context.Context, WorkspaceSettingList) (WorkspaceSettingList, error))` -- Function `NewIoTSecuritySolutionsListPage` parameter(s) have been changed from `(func(context.Context, IoTSecuritySolutionsList) (IoTSecuritySolutionsList, error))` to `(IoTSecuritySolutionsList, func(context.Context, IoTSecuritySolutionsList) (IoTSecuritySolutionsList, error))` -- Function `NewDeviceSecurityGroupListPage` parameter(s) have been changed from `(func(context.Context, DeviceSecurityGroupList) (DeviceSecurityGroupList, error))` to `(DeviceSecurityGroupList, func(context.Context, DeviceSecurityGroupList) (DeviceSecurityGroupList, error))` -- Function `NewDiscoveredSecuritySolutionListPage` parameter(s) have been changed from `(func(context.Context, DiscoveredSecuritySolutionList) (DiscoveredSecuritySolutionList, error))` to `(DiscoveredSecuritySolutionList, func(context.Context, DiscoveredSecuritySolutionList) (DiscoveredSecuritySolutionList, error))` -- Type of `MqttD2CMessagesNotInAllowedRange.RuleType` has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Type of `QueuePurgesNotInAllowedRange.RuleType` has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Type of `DirectMethodInvokesNotInAllowedRange.RuleType` has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Type of `CustomAlertRule.RuleType` has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Type of `FailedLocalLoginsNotInAllowedRange.RuleType` has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Type of `AmqpC2DMessagesNotInAllowedRange.RuleType` has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Type of `ListCustomAlertRule.RuleType` has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Type of `FileUploadsNotInAllowedRange.RuleType` has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Type of `LocalUserNotAllowed.RuleType` has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Type of `AmqpC2DRejectedMessagesNotInAllowedRange.RuleType` has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Type of `HTTPC2DMessagesNotInAllowedRange.RuleType` has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Type of `AllowlistCustomAlertRule.RuleType` has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Type of `MqttC2DRejectedMessagesNotInAllowedRange.RuleType` has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Type of `TimeWindowCustomAlertRule.RuleType` has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Type of `PackageDownloadsCentralManager.Upgrade` has been changed from `*[]PackageDownloadInfo` to `*[]UpgradePackageDownloadInfo` -- Type of `ActiveConnectionsNotInAllowedRange.RuleType` has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Type of `TwinUpdatesNotInAllowedRange.RuleType` has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Type of `DenylistCustomAlertRule.RuleType` has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Type of `ProcessNotAllowed.RuleType` has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Type of `AmqpD2CMessagesNotInAllowedRange.RuleType` has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Type of `ConnectionToIPNotAllowed.RuleType` has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Type of `HTTPD2CMessagesNotInAllowedRange.RuleType` has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Type of `PackageDownloadsSensor.Upgrade` has been changed from `*[]PackageDownloadInfo` to `*[]UpgradePackageDownloadInfo` -- Type of `MqttC2DMessagesNotInAllowedRange.RuleType` has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Type of `UnauthorizedOperationsNotInAllowedRange.RuleType` has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Type of `PackageDownloads.ThreatIntelligence` has been changed from `*PackageDownloadsThreatIntelligence` to `*[]PackageDownloadInfo` -- Type of `HTTPC2DRejectedMessagesNotInAllowedRange.RuleType` has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Type of `ThresholdCustomAlertRule.RuleType` has been changed from `RuleType` to `RuleTypeBasicCustomAlertRule` -- Const `Free` has been removed -- Function `AlertsClient.ListResourceGroupLevelByRegionPreparer` has been removed -- Function `AlertsClient.UpdateSubscriptionLevelStateToActivateResponder` has been removed -- Function `AlertsClient.GetSubscriptionLevelResponder` has been removed -- Function `AlertsClient.UpdateSubscriptionLevelStateToDismissSender` has been removed -- Function `AlertsClient.UpdateResourceGroupLevelStateToActivateResponder` has been removed -- Function `AlertsClient.ListSubscriptionLevelByRegionPreparer` has been removed -- Function `AlertsClient.ListResourceGroupLevelByRegionResponder` has been removed -- Function `AlertsClient.UpdateSubscriptionLevelStateToActivate` has been removed -- Function `AlertsClient.ListResourceGroupLevelByRegion` has been removed -- Function `AlertsClient.GetSubscriptionLevelPreparer` has been removed -- Function `AlertsClient.ListResourceGroupLevelByRegionComplete` has been removed -- Function `AlertsClient.UpdateSubscriptionLevelStateToActivatePreparer` has been removed -- Function `AlertsClient.UpdateResourceGroupLevelStateToDismissPreparer` has been removed -- Function `AlertsClient.GetResourceGroupLevelSender` has been removed -- Function `AlertsClient.UpdateResourceGroupLevelStateToActivateSender` has been removed -- Function `AlertsClient.UpdateResourceGroupLevelStateToDismissSender` has been removed -- Function `AlertsClient.ListSubscriptionLevelByRegion` has been removed -- Function `AlertsClient.ListResourceGroupLevelByRegionSender` has been removed -- Function `AlertsClient.ListSubscriptionLevelByRegionResponder` has been removed -- Function `AlertsClient.UpdateSubscriptionLevelStateToActivateSender` has been removed -- Function `AlertsClient.UpdateResourceGroupLevelStateToDismiss` has been removed -- Function `AlertsClient.UpdateResourceGroupLevelStateToActivatePreparer` has been removed -- Function `AlertsClient.ListSubscriptionLevelByRegionComplete` has been removed -- Function `AlertsClient.UpdateSubscriptionLevelStateToDismiss` has been removed -- Function `AlertsClient.GetResourceGroupLevelResponder` has been removed -- Function `AlertsClient.GetSubscriptionLevel` has been removed -- Function `AlertsClient.GetResourceGroupLevel` has been removed -- Function `AlertsClient.ListSubscriptionLevelByRegionSender` has been removed -- Function `AlertsClient.UpdateSubscriptionLevelStateToDismissResponder` has been removed -- Function `AlertsClient.GetSubscriptionLevelSender` has been removed -- Function `AlertsClient.UpdateSubscriptionLevelStateToDismissPreparer` has been removed -- Function `AlertsClient.UpdateResourceGroupLevelStateToActivate` has been removed -- Function `AlertsClient.UpdateResourceGroupLevelStateToDismissResponder` has been removed -- Function `AlertsClient.GetResourceGroupLevelPreparer` has been removed -- Struct `PackageDownloadsThreatIntelligence` has been removed +### Removed Constants -## New Content +1. KindEnum.KindSettingResource -- New const `Guess` -- New const `DeviceStatusActive` -- New const `Managed` -- New const `Certain` -- New const `Secondary` -- New const `ProgrammingDevice` -- New const `Finding` -- New const `PricingTierFree` -- New const `ScanStateFailedToRun` -- New const `NonFinding` -- New const `SecureScores` -- New const `Important` -- New const `ProcessControl` -- New const `Binary` -- New const `InternalError` -- New const `RuleSeverityObsolete` -- New const `ScannerDevice` -- New const `Unmanaged` -- New const `NotProgrammingDevice` -- New const `ScanStateFailed` -- New const `Supervisory` -- New const `ScanStatePassed` -- New const `SecureScoreControls` -- New const `Recurring` -- New const `RuleSeverityHigh` -- New const `OnDemand` -- New const `PositiveList` -- New const `DeviceStatusRemoved` -- New const `PricingTierStandard` -- New const `Enterprise` -- New const `RuleSeverityInformational` -- New const `Unauthorized` -- New const `RuleSeverityLow` -- New const `BaselineExpected` -- New const `ScanStateInProgress` -- New const `RuleSeverityMedium` -- New const `NegativeList` -- New const `Authorized` -- New const `NotScannerDevice` -- New const `Primary` -- New function `*IotAlertListModelIterator.Next() error` -- New function `PossibleAuthorizationStateValues() []AuthorizationState` -- New function `DevicesForHubClient.ListComplete(context.Context, string, *int32, string, ManagementState) (DeviceListIterator, error)` -- New function `DeviceClient.GetPreparer(context.Context, string, string) (*http.Request, error)` -- New function `IotAlertsClient.List1Preparer(context.Context, string, string, string, string, ManagementState, string, *int32, string) (*http.Request, error)` -- New function `DeviceListIterator.Value() Device` -- New function `SQLVulnerabilityAssessmentBaselineRulesClient.GetPreparer(context.Context, string, string, string, string) (*http.Request, error)` -- New function `Scan.MarshalJSON() ([]byte, error)` -- New function `AlertsClient.UpdateResourceGroupLevelAlertStateToReactivateResponder(*http.Response) (autorest.Response, error)` -- New function `SQLVulnerabilityAssessmentScansClient.Get(context.Context, string, string, string, string) (Scan, error)` -- New function `IotAlertsClient.List1Responder(*http.Response) (IotAlertListModel, error)` -- New function `AlertsClient.GetSubscriptionLevelAlertPreparer(context.Context, string) (*http.Request, error)` -- New function `AlertsClient.GetResourceGroupLevelAlertsResponder(*http.Response) (Alert, error)` -- New function `SQLVulnerabilityAssessmentScanResultsClient.List(context.Context, string, string, string, string) (ScanResults, error)` -- New function `NewSQLVulnerabilityAssessmentScansClient(string, string) SQLVulnerabilityAssessmentScansClient` -- New function `IotAlertListModelIterator.Response() IotAlertListModel` -- New function `AlertsClient.GetSubscriptionLevelAlertSender(*http.Request) (*http.Response, error)` -- New function `NewDevicesForSubscriptionClient(string, string) DevicesForSubscriptionClient` -- New function `IotRecommendationTypesClient.Get1Responder(*http.Response) (IotRecommendationType, error)` -- New function `SQLVulnerabilityAssessmentScanResultsClient.GetResponder(*http.Response) (ScanResult, error)` -- New function `AlertsClient.ListSubscriptionLevelAlertsByRegionComplete(context.Context) (AlertListIterator, error)` -- New function `SQLVulnerabilityAssessmentBaselineRulesClient.Add(context.Context, string, string, string, *RulesResultsInput) (RulesResults, error)` -- New function `IotAlertTypesClient.Get1(context.Context, string) (IotAlertType, error)` -- New function `IotRecommendationListModelPage.Values() []IotRecommendationModel` -- New function `*Device.UnmarshalJSON([]byte) error` -- New function `SQLVulnerabilityAssessmentBaselineRulesClient.Delete(context.Context, string, string, string, string) (autorest.Response, error)` -- New function `AlertsClient.ListSubscriptionLevelAlertsByRegionSender(*http.Request) (*http.Response, error)` -- New function `IotAlertListModelPage.Values() []IotAlertModel` -- New function `PossiblePurdueLevelValues() []PurdueLevel` -- New function `SQLVulnerabilityAssessmentBaselineRulesClient.AddResponder(*http.Response) (RulesResults, error)` -- New function `AlertsClient.UpdateResourceGroupLevelAlertStateToReactivateSender(*http.Request) (*http.Response, error)` -- New function `*DeviceListPage.NextWithContext(context.Context) error` -- New function `AlertsClient.UpdateSubscriptionLevelAlertStateToDismissSender(*http.Request) (*http.Response, error)` -- New function `PossibleManagementStateValues() []ManagementState` -- New function `SQLVulnerabilityAssessmentScansClient.ListSender(*http.Request) (*http.Response, error)` -- New function `AlertsClient.UpdateSubscriptionLevelAlertStateToReactivateResponder(*http.Response) (autorest.Response, error)` -- New function `IotRecommendationTypesClient.List1Sender(*http.Request) (*http.Response, error)` -- New function `PossibleScanTriggerTypeValues() []ScanTriggerType` -- New function `IotRecommendationListModelIterator.Response() IotRecommendationListModel` -- New function `IotRecommendationsClient.List1Complete(context.Context, string, string, string, *int32, string) (IotRecommendationListModelIterator, error)` -- New function `IotDefenderSettingsClient.DownloadManagerActivationResponder(*http.Response) (ReadCloser, error)` -- New function `AlertsClient.UpdateSubscriptionLevelAlertStateToDismissPreparer(context.Context, string) (*http.Request, error)` -- New function `SQLVulnerabilityAssessmentBaselineRulesClient.CreateOrUpdateSender(*http.Request) (*http.Response, error)` -- New function `SQLVulnerabilityAssessmentBaselineRulesClient.GetResponder(*http.Response) (RuleResults, error)` -- New function `IotRecommendationsClient.Get1Preparer(context.Context, string, string) (*http.Request, error)` -- New function `IotRecommendationPropertiesModel.MarshalJSON() ([]byte, error)` -- New function `IotRecommendationTypesClient.Get1(context.Context, string) (IotRecommendationType, error)` -- New function `IotSensorsClient.DownloadResetPasswordResponder(*http.Response) (ReadCloser, error)` -- New function `IotRecommendationsClient.List1Sender(*http.Request) (*http.Response, error)` -- New function `IotAlertTypesClient.List1(context.Context) (IotAlertTypeList, error)` -- New function `AlertsClient.ListResourceGroupLevelAlertsByRegion(context.Context, string) (AlertListPage, error)` -- New function `UpgradePackageDownloadInfo.MarshalJSON() ([]byte, error)` -- New function `IotRecommendationListModelPage.NotDone() bool` -- New function `AlertsClient.UpdateSubscriptionLevelAlertStateToReactivatePreparer(context.Context, string) (*http.Request, error)` -- New function `NewDeviceListPage(DeviceList, func(context.Context, DeviceList) (DeviceList, error)) DeviceListPage` -- New function `PossibleRuleSeverityValues() []RuleSeverity` -- New function `Protocol1.MarshalJSON() ([]byte, error)` -- New function `NetworkInterface.MarshalJSON() ([]byte, error)` -- New function `AlertsClient.GetSubscriptionLevelAlertResponder(*http.Response) (Alert, error)` -- New function `*IotAlertListModelIterator.NextWithContext(context.Context) error` -- New function `PossibleScanningFunctionalityValues() []ScanningFunctionality` -- New function `PossibleRelationToIPStatusValues() []RelationToIPStatus` -- New function `SQLVulnerabilityAssessmentBaselineRulesClient.DeleteResponder(*http.Response) (autorest.Response, error)` -- New function `NewDeviceClient(string, string) DeviceClient` -- New function `DeviceListIterator.NotDone() bool` -- New function `AlertsClient.ListResourceGroupLevelAlertsByRegionSender(*http.Request) (*http.Response, error)` -- New function `PossibleMacSignificanceValues() []MacSignificance` -- New function `IotSensorsClient.DownloadResetPasswordPreparer(context.Context, string, string, ResetPasswordInput) (*http.Request, error)` -- New function `SQLVulnerabilityAssessmentScanResultsClient.GetPreparer(context.Context, string, string, string, string, string) (*http.Request, error)` -- New function `PossibleDeviceCriticalityValues() []DeviceCriticality` -- New function `IotRecommendationTypesClient.List1Preparer(context.Context) (*http.Request, error)` -- New function `IotSensorsClient.DownloadResetPasswordSender(*http.Request) (*http.Response, error)` -- New function `DevicesForSubscriptionClient.ListComplete(context.Context, *int32, string, ManagementState) (DeviceListIterator, error)` -- New function `IotAlertTypesClient.Get1Sender(*http.Request) (*http.Response, error)` -- New function `NewSQLVulnerabilityAssessmentScansClientWithBaseURI(string, string, string) SQLVulnerabilityAssessmentScansClient` -- New function `SQLVulnerabilityAssessmentBaselineRulesClient.CreateOrUpdatePreparer(context.Context, string, string, string, string, *RuleResultsInput) (*http.Request, error)` -- New function `PossibleDeviceStatusValues() []DeviceStatus` -- New function `SQLVulnerabilityAssessmentBaselineRulesClient.CreateOrUpdateResponder(*http.Response) (RuleResults, error)` -- New function `*DeviceListIterator.Next() error` -- New function `IotAlertTypesClient.Get1Responder(*http.Response) (IotAlertType, error)` -- New function `DeviceProperties.MarshalJSON() ([]byte, error)` -- New function `DevicesForHubClient.ListResponder(*http.Response) (DeviceList, error)` -- New function `DevicesForHubClient.ListPreparer(context.Context, string, *int32, string, ManagementState) (*http.Request, error)` -- New function `AlertsClient.ListSubscriptionLevelAlertsByRegion(context.Context) (AlertListPage, error)` -- New function `DeviceListPage.NotDone() bool` -- New function `AlertsClient.UpdateSubscriptionLevelAlertStateToReactivate(context.Context, string) (autorest.Response, error)` -- New function `IotRecommendationModel.MarshalJSON() ([]byte, error)` -- New function `RuleResults.MarshalJSON() ([]byte, error)` -- New function `*IotRecommendationModel.UnmarshalJSON([]byte) error` -- New function `PossibleScanStateValues() []ScanState` -- New function `IotAlertsClient.List1Complete(context.Context, string, string, string, string, ManagementState, string, *int32, string) (IotAlertListModelIterator, error)` -- New function `IotRecommendationListModel.IsEmpty() bool` -- New function `SQLVulnerabilityAssessmentBaselineRulesClient.GetSender(*http.Request) (*http.Response, error)` -- New function `IotAlertsClient.List1Sender(*http.Request) (*http.Response, error)` -- New function `IotAlertListModel.IsEmpty() bool` -- New function `NewSQLVulnerabilityAssessmentScanResultsClientWithBaseURI(string, string, string) SQLVulnerabilityAssessmentScanResultsClient` -- New function `IotRecommendationListModelPage.Response() IotRecommendationListModel` -- New function `*IotRecommendationListModelPage.Next() error` -- New function `DevicesForSubscriptionClient.List(context.Context, *int32, string, ManagementState) (DeviceListPage, error)` -- New function `AlertsClient.ListSubscriptionLevelAlertsByRegionResponder(*http.Response) (AlertList, error)` -- New function `SQLVulnerabilityAssessmentScansClient.ListResponder(*http.Response) (Scans, error)` -- New function `SQLVulnerabilityAssessmentBaselineRulesClient.List(context.Context, string, string, string) (RulesResults, error)` -- New function `Device.MarshalJSON() ([]byte, error)` -- New function `IotAlertsClient.List1(context.Context, string, string, string, string, ManagementState, string, *int32, string) (IotAlertListModelPage, error)` -- New function `SQLVulnerabilityAssessmentScanResultsClient.ListSender(*http.Request) (*http.Response, error)` -- New function `IotAlertsClient.Get1Preparer(context.Context, string, string) (*http.Request, error)` -- New function `DevicesForSubscriptionClient.ListPreparer(context.Context, *int32, string, ManagementState) (*http.Request, error)` -- New function `IotDefenderSettingsClient.DownloadManagerActivation(context.Context) (ReadCloser, error)` -- New function `PossibleProgrammingStateValues() []ProgrammingState` -- New function `IotRecommendationTypesClient.Get1Preparer(context.Context, string) (*http.Request, error)` -- New function `SQLVulnerabilityAssessmentScansClient.List(context.Context, string, string, string) (Scans, error)` -- New function `IotRecommendationListModelIterator.NotDone() bool` -- New function `SQLVulnerabilityAssessmentScansClient.GetPreparer(context.Context, string, string, string, string) (*http.Request, error)` -- New function `AlertsClient.GetSubscriptionLevelAlert(context.Context, string) (Alert, error)` -- New function `DeviceClient.GetSender(*http.Request) (*http.Response, error)` -- New function `SQLVulnerabilityAssessmentBaselineRulesClient.DeletePreparer(context.Context, string, string, string, string) (*http.Request, error)` -- New function `SQLVulnerabilityAssessmentBaselineRulesClient.Get(context.Context, string, string, string, string) (RuleResults, error)` -- New function `SQLVulnerabilityAssessmentScanResultsClient.Get(context.Context, string, string, string, string, string) (ScanResult, error)` -- New function `ScanResult.MarshalJSON() ([]byte, error)` -- New function `DeviceClient.GetResponder(*http.Response) (Device, error)` -- New function `*IotRecommendationListModelPage.NextWithContext(context.Context) error` -- New function `SQLVulnerabilityAssessmentBaselineRulesClient.AddSender(*http.Request) (*http.Response, error)` -- New function `*IotAlertListModelPage.NextWithContext(context.Context) error` -- New function `IotDefenderSettingsClient.DownloadManagerActivationPreparer(context.Context) (*http.Request, error)` -- New function `AlertsClient.UpdateSubscriptionLevelAlertStateToDismiss(context.Context, string) (autorest.Response, error)` -- New function `NewSQLVulnerabilityAssessmentBaselineRulesClient(string, string) SQLVulnerabilityAssessmentBaselineRulesClient` -- New function `OnPremiseIotSensorsClient.DownloadResetPasswordPreparer(context.Context, string, ResetPasswordInput) (*http.Request, error)` -- New function `AlertsClient.GetResourceGroupLevelAlertsPreparer(context.Context, string, string) (*http.Request, error)` -- New function `IotRecommendationTypesClient.Get1Sender(*http.Request) (*http.Response, error)` -- New function `NewIotAlertListModelIterator(IotAlertListModelPage) IotAlertListModelIterator` -- New function `AlertsClient.UpdateResourceGroupLevelAlertStateToDismissResponder(*http.Response) (autorest.Response, error)` -- New function `NewSQLVulnerabilityAssessmentBaselineRulesClientWithBaseURI(string, string, string) SQLVulnerabilityAssessmentBaselineRulesClient` -- New function `NewDeviceClientWithBaseURI(string, string, string) DeviceClient` -- New function `NewDeviceListIterator(DeviceListPage) DeviceListIterator` -- New function `IotAlertsClient.Get1Sender(*http.Request) (*http.Response, error)` -- New function `IotSensorsClient.DownloadResetPassword(context.Context, string, string, ResetPasswordInput) (ReadCloser, error)` -- New function `AlertsClient.UpdateResourceGroupLevelAlertStateToReactivatePreparer(context.Context, string, string) (*http.Request, error)` -- New function `IotRecommendationsClient.Get1Sender(*http.Request) (*http.Response, error)` -- New function `DeviceList.MarshalJSON() ([]byte, error)` -- New function `AlertsClient.UpdateSubscriptionLevelAlertStateToReactivateSender(*http.Request) (*http.Response, error)` -- New function `IotAlertTypesClient.Get1Preparer(context.Context, string) (*http.Request, error)` -- New function `*IotRecommendationListModelIterator.NextWithContext(context.Context) error` -- New function `*IotAlertModel.UnmarshalJSON([]byte) error` -- New function `PossibleRuleTypeBasicCustomAlertRuleValues() []RuleTypeBasicCustomAlertRule` -- New function `SQLVulnerabilityAssessmentScansClient.ListPreparer(context.Context, string, string, string) (*http.Request, error)` -- New function `IotRecommendationsClient.List1Preparer(context.Context, string, string, string, *int32, string) (*http.Request, error)` -- New function `IotDefenderSettingsClient.DownloadManagerActivationSender(*http.Request) (*http.Response, error)` -- New function `IotAlertTypesClient.List1Responder(*http.Response) (IotAlertTypeList, error)` -- New function `DeviceListPage.Values() []Device` -- New function `*DeviceListPage.Next() error` -- New function `DeviceListIterator.Response() DeviceList` -- New function `AlertsClient.ListSubscriptionLevelAlertsByRegionPreparer(context.Context) (*http.Request, error)` -- New function `SQLVulnerabilityAssessmentScanResultsClient.ListResponder(*http.Response) (ScanResults, error)` -- New function `AlertsClient.ListResourceGroupLevelAlertsByRegionComplete(context.Context, string) (AlertListIterator, error)` -- New function `AlertsClient.GetResourceGroupLevelAlerts(context.Context, string, string) (Alert, error)` -- New function `NewSQLVulnerabilityAssessmentScanResultsClient(string, string) SQLVulnerabilityAssessmentScanResultsClient` -- New function `SQLVulnerabilityAssessmentScanResultsClient.ListPreparer(context.Context, string, string, string, string) (*http.Request, error)` -- New function `*DeviceListIterator.NextWithContext(context.Context) error` -- New function `NewIotRecommendationListModelPage(IotRecommendationListModel, func(context.Context, IotRecommendationListModel) (IotRecommendationListModel, error)) IotRecommendationListModelPage` -- New function `*IotAlertListModelPage.Next() error` -- New function `AlertsClient.UpdateResourceGroupLevelAlertStateToReactivate(context.Context, string, string) (autorest.Response, error)` -- New function `SQLVulnerabilityAssessmentBaselineRulesClient.CreateOrUpdate(context.Context, string, string, string, string, *RuleResultsInput) (RuleResults, error)` -- New function `AlertsClient.UpdateResourceGroupLevelAlertStateToDismissPreparer(context.Context, string, string) (*http.Request, error)` -- New function `DeviceListPage.Response() DeviceList` -- New function `AlertsClient.ListResourceGroupLevelAlertsByRegionPreparer(context.Context, string) (*http.Request, error)` -- New function `AlertsClient.UpdateSubscriptionLevelAlertStateToDismissResponder(*http.Response) (autorest.Response, error)` -- New function `NewIotAlertListModelPage(IotAlertListModel, func(context.Context, IotAlertListModel) (IotAlertListModel, error)) IotAlertListModelPage` -- New function `SQLVulnerabilityAssessmentBaselineRulesClient.ListResponder(*http.Response) (RulesResults, error)` -- New function `SQLVulnerabilityAssessmentScansClient.GetSender(*http.Request) (*http.Response, error)` -- New function `NewDevicesForSubscriptionClientWithBaseURI(string, string, string) DevicesForSubscriptionClient` -- New function `IotAlertsClient.Get1(context.Context, string, string) (IotAlertModel, error)` -- New function `IotRecommendationListModelIterator.Value() IotRecommendationModel` -- New function `AlertsClient.GetResourceGroupLevelAlertsSender(*http.Request) (*http.Response, error)` -- New function `IotAlertPropertiesModel.MarshalJSON() ([]byte, error)` -- New function `NewDevicesForHubClient(string, string) DevicesForHubClient` -- New function `PossibleRuleStatusValues() []RuleStatus` -- New function `IotAlertsClient.Get1Responder(*http.Response) (IotAlertModel, error)` -- New function `SQLVulnerabilityAssessmentBaselineRulesClient.DeleteSender(*http.Request) (*http.Response, error)` -- New function `DevicesForSubscriptionClient.ListResponder(*http.Response) (DeviceList, error)` -- New function `IotRecommendationTypesClient.List1Responder(*http.Response) (IotRecommendationTypeList, error)` -- New function `NewIotRecommendationListModelIterator(IotRecommendationListModelPage) IotRecommendationListModelIterator` -- New function `AlertsClient.UpdateResourceGroupLevelAlertStateToDismissSender(*http.Request) (*http.Response, error)` -- New function `IotRecommendationsClient.List1(context.Context, string, string, string, *int32, string) (IotRecommendationListModelPage, error)` -- New function `IotRecommendationsClient.Get1Responder(*http.Response) (IotRecommendationModel, error)` -- New function `SQLVulnerabilityAssessmentBaselineRulesClient.ListSender(*http.Request) (*http.Response, error)` -- New function `SQLVulnerabilityAssessmentBaselineRulesClient.ListPreparer(context.Context, string, string, string) (*http.Request, error)` -- New function `IotAlertListModelIterator.NotDone() bool` -- New function `IotAlertListModelPage.Response() IotAlertListModel` -- New function `IotAlertListModelIterator.Value() IotAlertModel` -- New function `NewDevicesForHubClientWithBaseURI(string, string, string) DevicesForHubClient` -- New function `IotAlertListModelPage.NotDone() bool` -- New function `OnPremiseIotSensorsClient.DownloadResetPassword(context.Context, string, ResetPasswordInput) (ReadCloser, error)` -- New function `AlertsClient.ListResourceGroupLevelAlertsByRegionResponder(*http.Response) (AlertList, error)` -- New function `DeviceList.IsEmpty() bool` -- New function `DevicesForHubClient.ListSender(*http.Request) (*http.Response, error)` -- New function `RulesResultsInput.MarshalJSON() ([]byte, error)` -- New function `IotAlertTypesClient.List1Sender(*http.Request) (*http.Response, error)` -- New function `DeviceClient.Get(context.Context, string, string) (Device, error)` -- New function `IotRecommendationTypesClient.List1(context.Context) (IotRecommendationTypeList, error)` -- New function `IotRecommendationsClient.List1Responder(*http.Response) (IotRecommendationListModel, error)` -- New function `IotAlertModel.MarshalJSON() ([]byte, error)` -- New function `*IotRecommendationListModelIterator.Next() error` -- New function `IotRecommendationsClient.Get1(context.Context, string, string) (IotRecommendationModel, error)` -- New function `SQLVulnerabilityAssessmentScanResultsClient.GetSender(*http.Request) (*http.Response, error)` -- New function `OnPremiseIotSensorsClient.DownloadResetPasswordResponder(*http.Response) (ReadCloser, error)` -- New function `OnPremiseIotSensorsClient.DownloadResetPasswordSender(*http.Request) (*http.Response, error)` -- New function `SQLVulnerabilityAssessmentScansClient.GetResponder(*http.Response) (Scan, error)` -- New function `DevicesForHubClient.List(context.Context, string, *int32, string, ManagementState) (DeviceListPage, error)` -- New function `AlertsClient.UpdateResourceGroupLevelAlertStateToDismiss(context.Context, string, string) (autorest.Response, error)` -- New function `DevicesForSubscriptionClient.ListSender(*http.Request) (*http.Response, error)` -- New function `SQLVulnerabilityAssessmentBaselineRulesClient.AddPreparer(context.Context, string, string, string, *RulesResultsInput) (*http.Request, error)` -- New function `IotAlertTypesClient.List1Preparer(context.Context) (*http.Request, error)` -- New struct `Baseline` -- New struct `BaselineAdjustedResult` -- New struct `BenchmarkReference` -- New struct `Device` -- New struct `DeviceClient` -- New struct `DeviceList` -- New struct `DeviceListIterator` -- New struct `DeviceListPage` -- New struct `DeviceProperties` -- New struct `DevicesForHubClient` -- New struct `DevicesForSubscriptionClient` -- New struct `Firmware` -- New struct `IPAddress` -- New struct `IotAlertListModel` -- New struct `IotAlertListModelIterator` -- New struct `IotAlertListModelPage` -- New struct `IotAlertModel` -- New struct `IotAlertPropertiesModel` -- New struct `IotRecommendationListModel` -- New struct `IotRecommendationListModelIterator` -- New struct `IotRecommendationListModelPage` -- New struct `IotRecommendationModel` -- New struct `IotRecommendationPropertiesModel` -- New struct `MacAddress` -- New struct `NetworkInterface` -- New struct `Protocol1` -- New struct `QueryCheck` -- New struct `Remediation` -- New struct `ResetPasswordInput` -- New struct `RuleResults` -- New struct `RuleResultsInput` -- New struct `RuleResultsProperties` -- New struct `RulesResults` -- New struct `RulesResultsInput` -- New struct `SQLVulnerabilityAssessmentBaselineRulesClient` -- New struct `SQLVulnerabilityAssessmentScanResultsClient` -- New struct `SQLVulnerabilityAssessmentScansClient` -- New struct `Scan` -- New struct `ScanProperties` -- New struct `ScanResult` -- New struct `ScanResultProperties` -- New struct `ScanResults` -- New struct `Scans` -- New struct `Sensor` -- New struct `Site` -- New struct `UpgradePackageDownloadInfo` -- New struct `VaRule` -- New field `WmiTool` in struct `PackageDownloads` -- New field `AuthorizedDevicesImportTemplate` in struct `PackageDownloads` -- New field `DeviceInformationUpdateImportTemplate` in struct `PackageDownloads` -- New field `Snmp` in struct `PackageDownloads` +### Removed Funcs + +1. DataExportSettings.AsBasicSettingResource() (BasicSettingResource, bool) +1. DataExportSettings.AsSettingResource() (*SettingResource, bool) +1. IotSensor.MarshalJSON() ([]byte, error) +1. Setting.AsBasicSettingResource() (BasicSettingResource, bool) +1. Setting.AsSettingResource() (*SettingResource, bool) +1. SettingResource.AsBasicSetting() (BasicSetting, bool) +1. SettingResource.AsBasicSettingResource() (BasicSettingResource, bool) +1. SettingResource.AsDataExportSettings() (*DataExportSettings, bool) +1. SettingResource.AsSetting() (*Setting, bool) +1. SettingResource.AsSettingResource() (*SettingResource, bool) +1. SettingResource.MarshalJSON() ([]byte, error) + +## Struct Changes + +### Removed Structs + +1. IotSensor +1. SettingResource + +## Signature Changes + +### Funcs + +1. IotSensorsClient.CreateOrUpdate + - Params + - From: context.Context, string, string + - To: context.Context, string, string, IotSensorsModel + - Returns + - From: IotSensor, error + - To: IotSensorsModel, error +1. IotSensorsClient.CreateOrUpdatePreparer + - Params + - From: context.Context, string, string + - To: context.Context, string, string, IotSensorsModel +1. IotSensorsClient.CreateOrUpdateResponder + - Returns + - From: IotSensor, error + - To: IotSensorsModel, error +1. IotSensorsClient.Get + - Returns + - From: IotSensor, error + - To: IotSensorsModel, error +1. IotSensorsClient.GetResponder + - Returns + - From: IotSensor, error + - To: IotSensorsModel, error +1. SettingsClient.Get + - Returns + - From: Setting, error + - To: SettingModel, error +1. SettingsClient.GetResponder + - Returns + - From: Setting, error + - To: SettingModel, error +1. SettingsClient.Update + - Returns + - From: Setting, error + - To: SettingModel, error +1. SettingsClient.UpdateResponder + - Returns + - From: Setting, error + - To: SettingModel, error + +### Struct Fields + +1. IotSensorsList.Value changed type from *[]IotSensor to *[]IotSensorsModel + +### New Constants + +1. SensorStatus.Disconnected +1. SensorStatus.Ok +1. SensorStatus.Unavailable +1. TiStatus.TiStatusFailed +1. TiStatus.TiStatusInProgress +1. TiStatus.TiStatusOk +1. TiStatus.TiStatusUpdateAvailable + +### New Funcs + +1. *IotSensorsModel.UnmarshalJSON([]byte) error +1. *IotSitesModel.UnmarshalJSON([]byte) error +1. *SettingModel.UnmarshalJSON([]byte) error +1. IotSensorProperties.MarshalJSON() ([]byte, error) +1. IotSensorsClient.TriggerTiPackageUpdate(context.Context, string, string) (autorest.Response, error) +1. IotSensorsClient.TriggerTiPackageUpdatePreparer(context.Context, string, string) (*http.Request, error) +1. IotSensorsClient.TriggerTiPackageUpdateResponder(*http.Response) (autorest.Response, error) +1. IotSensorsClient.TriggerTiPackageUpdateSender(*http.Request) (*http.Response, error) +1. IotSensorsModel.MarshalJSON() ([]byte, error) +1. IotSiteProperties.MarshalJSON() ([]byte, error) +1. IotSitesClient.CreateOrUpdate(context.Context, string, IotSitesModel) (IotSitesModel, error) +1. IotSitesClient.CreateOrUpdatePreparer(context.Context, string, IotSitesModel) (*http.Request, error) +1. IotSitesClient.CreateOrUpdateResponder(*http.Response) (IotSitesModel, error) +1. IotSitesClient.CreateOrUpdateSender(*http.Request) (*http.Response, error) +1. IotSitesClient.Delete(context.Context, string) (autorest.Response, error) +1. IotSitesClient.DeletePreparer(context.Context, string) (*http.Request, error) +1. IotSitesClient.DeleteResponder(*http.Response) (autorest.Response, error) +1. IotSitesClient.DeleteSender(*http.Request) (*http.Response, error) +1. IotSitesClient.Get(context.Context, string) (IotSitesModel, error) +1. IotSitesClient.GetPreparer(context.Context, string) (*http.Request, error) +1. IotSitesClient.GetResponder(*http.Response) (IotSitesModel, error) +1. IotSitesClient.GetSender(*http.Request) (*http.Response, error) +1. IotSitesClient.List(context.Context, string) (IotSitesList, error) +1. IotSitesClient.ListPreparer(context.Context, string) (*http.Request, error) +1. IotSitesClient.ListResponder(*http.Response) (IotSitesList, error) +1. IotSitesClient.ListSender(*http.Request) (*http.Response, error) +1. IotSitesModel.MarshalJSON() ([]byte, error) +1. NewIotSitesClient(string, string) IotSitesClient +1. NewIotSitesClientWithBaseURI(string, string, string) IotSitesClient +1. PossibleSensorStatusValues() []SensorStatus +1. PossibleTiStatusValues() []TiStatus + +## Struct Changes + +### New Structs + +1. IotSensorProperties +1. IotSensorsModel +1. IotSiteProperties +1. IotSitesClient +1. IotSitesList +1. IotSitesModel +1. SettingModel diff --git a/services/preview/security/mgmt/v3.0/security/adaptivenetworkhardenings.go b/services/preview/security/mgmt/v3.0/security/adaptivenetworkhardenings.go index 8e1a80c75bb1..c3161f5bfc4d 100644 --- a/services/preview/security/mgmt/v3.0/security/adaptivenetworkhardenings.go +++ b/services/preview/security/mgmt/v3.0/security/adaptivenetworkhardenings.go @@ -282,6 +282,7 @@ func (client AdaptiveNetworkHardeningsClient) ListByExtendedResource(ctx context } if result.anhl.hasNextLink() && result.anhl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -345,7 +346,6 @@ func (client AdaptiveNetworkHardeningsClient) listByExtendedResourceNextResults( result, err = client.ListByExtendedResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AdaptiveNetworkHardeningsClient", "listByExtendedResourceNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/alerts.go b/services/preview/security/mgmt/v3.0/security/alerts.go index f236c786ec8c..6ce8f0a7c83d 100644 --- a/services/preview/security/mgmt/v3.0/security/alerts.go +++ b/services/preview/security/mgmt/v3.0/security/alerts.go @@ -250,6 +250,7 @@ func (client AlertsClient) List(ctx context.Context) (result AlertListPage, err } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -309,7 +310,6 @@ func (client AlertsClient) listNextResults(ctx context.Context, lastResults Aler result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } @@ -376,6 +376,7 @@ func (client AlertsClient) ListByResourceGroup(ctx context.Context, resourceGrou } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -436,7 +437,6 @@ func (client AlertsClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") - return } return } @@ -504,6 +504,7 @@ func (client AlertsClient) ListResourceGroupLevelAlertsByRegion(ctx context.Cont } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -565,7 +566,6 @@ func (client AlertsClient) listResourceGroupLevelAlertsByRegionNextResults(ctx c result, err = client.ListResourceGroupLevelAlertsByRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "listResourceGroupLevelAlertsByRegionNextResults", resp, "Failure responding to next results request") - return } return } @@ -626,6 +626,7 @@ func (client AlertsClient) ListSubscriptionLevelAlertsByRegion(ctx context.Conte } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -686,7 +687,6 @@ func (client AlertsClient) listSubscriptionLevelAlertsByRegionNextResults(ctx co result, err = client.ListSubscriptionLevelAlertsByRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsClient", "listSubscriptionLevelAlertsByRegionNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/alertssuppressionrules.go b/services/preview/security/mgmt/v3.0/security/alertssuppressionrules.go index 7ce77cd1e95e..df8187781541 100644 --- a/services/preview/security/mgmt/v3.0/security/alertssuppressionrules.go +++ b/services/preview/security/mgmt/v3.0/security/alertssuppressionrules.go @@ -243,6 +243,7 @@ func (client AlertsSuppressionRulesClient) List(ctx context.Context, alertType s } if result.asrl.hasNextLink() && result.asrl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -305,7 +306,6 @@ func (client AlertsSuppressionRulesClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AlertsSuppressionRulesClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/allowedconnections.go b/services/preview/security/mgmt/v3.0/security/allowedconnections.go index 7e91b2b5e8dc..9ba7e40795e9 100644 --- a/services/preview/security/mgmt/v3.0/security/allowedconnections.go +++ b/services/preview/security/mgmt/v3.0/security/allowedconnections.go @@ -171,6 +171,7 @@ func (client AllowedConnectionsClient) List(ctx context.Context) (result Allowed } if result.ACL.hasNextLink() && result.ACL.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -230,7 +231,6 @@ func (client AllowedConnectionsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AllowedConnectionsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } @@ -290,6 +290,7 @@ func (client AllowedConnectionsClient) ListByHomeRegion(ctx context.Context) (re } if result.ACL.hasNextLink() && result.ACL.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -350,7 +351,6 @@ func (client AllowedConnectionsClient) listByHomeRegionNextResults(ctx context.C result, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AllowedConnectionsClient", "listByHomeRegionNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/assessments.go b/services/preview/security/mgmt/v3.0/security/assessments.go index 566cca8c2752..c68642a35709 100644 --- a/services/preview/security/mgmt/v3.0/security/assessments.go +++ b/services/preview/security/mgmt/v3.0/security/assessments.go @@ -62,8 +62,7 @@ func (client AssessmentsClient) CreateOrUpdate(ctx context.Context, resourceID s if err := validation.Validate([]validation.Validation{ {TargetValue: assessment, Constraints: []validation.Constraint{{Target: "assessment.AssessmentProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "assessment.AssessmentProperties.ResourceDetails", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "assessment.AssessmentProperties.Status", Name: validation.Null, Rule: true, Chain: nil}, + Chain: []validation.Constraint{{Target: "assessment.AssessmentProperties.Status", Name: validation.Null, Rule: true, Chain: nil}, {Target: "assessment.AssessmentProperties.Metadata", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "assessment.AssessmentProperties.Metadata.DisplayName", Name: validation.Null, Rule: true, Chain: nil}, {Target: "assessment.AssessmentProperties.Metadata.PartnerData", Name: validation.Null, Rule: false, @@ -331,6 +330,7 @@ func (client AssessmentsClient) List(ctx context.Context, scope string) (result } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -390,7 +390,6 @@ func (client AssessmentsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AssessmentsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/assessmentsmetadata.go b/services/preview/security/mgmt/v3.0/security/assessmentsmetadata.go index d10cce60df41..01e8044bea9a 100644 --- a/services/preview/security/mgmt/v3.0/security/assessmentsmetadata.go +++ b/services/preview/security/mgmt/v3.0/security/assessmentsmetadata.go @@ -400,6 +400,7 @@ func (client AssessmentsMetadataClient) List(ctx context.Context) (result Assess } if result.aml.hasNextLink() && result.aml.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -455,7 +456,6 @@ func (client AssessmentsMetadataClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AssessmentsMetadataClient", "listNextResults", resp, "Failure responding to next results request") - return } return } @@ -515,6 +515,7 @@ func (client AssessmentsMetadataClient) ListBySubscription(ctx context.Context) } if result.aml.hasNextLink() && result.aml.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -574,7 +575,6 @@ func (client AssessmentsMetadataClient) listBySubscriptionNextResults(ctx contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AssessmentsMetadataClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/automations.go b/services/preview/security/mgmt/v3.0/security/automations.go index 3ca2e3eb25b8..b77a1a2d8fb4 100644 --- a/services/preview/security/mgmt/v3.0/security/automations.go +++ b/services/preview/security/mgmt/v3.0/security/automations.go @@ -346,6 +346,7 @@ func (client AutomationsClient) List(ctx context.Context) (result AutomationList } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -405,7 +406,6 @@ func (client AutomationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutomationsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } @@ -473,6 +473,7 @@ func (client AutomationsClient) ListByResourceGroup(ctx context.Context, resourc } if result.al.hasNextLink() && result.al.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -533,7 +534,6 @@ func (client AutomationsClient) listByResourceGroupNextResults(ctx context.Conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutomationsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/autoprovisioningsettings.go b/services/preview/security/mgmt/v3.0/security/autoprovisioningsettings.go index ce77a756c41b..8d0a0eb2c3eb 100644 --- a/services/preview/security/mgmt/v3.0/security/autoprovisioningsettings.go +++ b/services/preview/security/mgmt/v3.0/security/autoprovisioningsettings.go @@ -245,6 +245,7 @@ func (client AutoProvisioningSettingsClient) List(ctx context.Context) (result A } if result.apsl.hasNextLink() && result.apsl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -304,7 +305,6 @@ func (client AutoProvisioningSettingsClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.AutoProvisioningSettingsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/complianceresults.go b/services/preview/security/mgmt/v3.0/security/complianceresults.go index 44cdaebe34f2..87619f9639c5 100644 --- a/services/preview/security/mgmt/v3.0/security/complianceresults.go +++ b/services/preview/security/mgmt/v3.0/security/complianceresults.go @@ -153,6 +153,7 @@ func (client ComplianceResultsClient) List(ctx context.Context, scope string) (r } if result.crl.hasNextLink() && result.crl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -212,7 +213,6 @@ func (client ComplianceResultsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ComplianceResultsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/compliances.go b/services/preview/security/mgmt/v3.0/security/compliances.go index c8440f34ffe2..161bf5105853 100644 --- a/services/preview/security/mgmt/v3.0/security/compliances.go +++ b/services/preview/security/mgmt/v3.0/security/compliances.go @@ -153,6 +153,7 @@ func (client CompliancesClient) List(ctx context.Context, scope string) (result } if result.cl.hasNextLink() && result.cl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -212,7 +213,6 @@ func (client CompliancesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.CompliancesClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/connectors.go b/services/preview/security/mgmt/v3.0/security/connectors.go index 9cca36e79d81..9173da352419 100644 --- a/services/preview/security/mgmt/v3.0/security/connectors.go +++ b/services/preview/security/mgmt/v3.0/security/connectors.go @@ -324,6 +324,7 @@ func (client ConnectorsClient) List(ctx context.Context) (result ConnectorSettin } if result.csl.hasNextLink() && result.csl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -383,7 +384,6 @@ func (client ConnectorsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ConnectorsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/contacts.go b/services/preview/security/mgmt/v3.0/security/contacts.go index ceeae541210b..f859f458739f 100644 --- a/services/preview/security/mgmt/v3.0/security/contacts.go +++ b/services/preview/security/mgmt/v3.0/security/contacts.go @@ -326,6 +326,7 @@ func (client ContactsClient) List(ctx context.Context) (result ContactListPage, } if result.cl.hasNextLink() && result.cl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -385,7 +386,6 @@ func (client ContactsClient) listNextResults(ctx context.Context, lastResults Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ContactsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/devicesecuritygroups.go b/services/preview/security/mgmt/v3.0/security/devicesecuritygroups.go index e424f40d9bb8..40442d4320e2 100644 --- a/services/preview/security/mgmt/v3.0/security/devicesecuritygroups.go +++ b/services/preview/security/mgmt/v3.0/security/devicesecuritygroups.go @@ -307,6 +307,7 @@ func (client DeviceSecurityGroupsClient) List(ctx context.Context, resourceID st } if result.dsgl.hasNextLink() && result.dsgl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -366,7 +367,6 @@ func (client DeviceSecurityGroupsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/devicesforhub.go b/services/preview/security/mgmt/v3.0/security/devicesforhub.go index 7aeb43015f86..7b43edd86e2b 100644 --- a/services/preview/security/mgmt/v3.0/security/devicesforhub.go +++ b/services/preview/security/mgmt/v3.0/security/devicesforhub.go @@ -79,6 +79,7 @@ func (client DevicesForHubClient) List(ctx context.Context, resourceID string, l } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -147,7 +148,6 @@ func (client DevicesForHubClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DevicesForHubClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/devicesforsubscription.go b/services/preview/security/mgmt/v3.0/security/devicesforsubscription.go index 5edd2ac28d49..6e22c1e56757 100644 --- a/services/preview/security/mgmt/v3.0/security/devicesforsubscription.go +++ b/services/preview/security/mgmt/v3.0/security/devicesforsubscription.go @@ -86,6 +86,7 @@ func (client DevicesForSubscriptionClient) List(ctx context.Context, limit *int3 } if result.dl.hasNextLink() && result.dl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -154,7 +155,6 @@ func (client DevicesForSubscriptionClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DevicesForSubscriptionClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/discoveredsecuritysolutions.go b/services/preview/security/mgmt/v3.0/security/discoveredsecuritysolutions.go index 9e6a0494166c..62d31105dc1b 100644 --- a/services/preview/security/mgmt/v3.0/security/discoveredsecuritysolutions.go +++ b/services/preview/security/mgmt/v3.0/security/discoveredsecuritysolutions.go @@ -170,6 +170,7 @@ func (client DiscoveredSecuritySolutionsClient) List(ctx context.Context) (resul } if result.dssl.hasNextLink() && result.dssl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -229,7 +230,6 @@ func (client DiscoveredSecuritySolutionsClient) listNextResults(ctx context.Cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DiscoveredSecuritySolutionsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } @@ -289,6 +289,7 @@ func (client DiscoveredSecuritySolutionsClient) ListByHomeRegion(ctx context.Con } if result.dssl.hasNextLink() && result.dssl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -349,7 +350,6 @@ func (client DiscoveredSecuritySolutionsClient) listByHomeRegionNextResults(ctx result, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.DiscoveredSecuritySolutionsClient", "listByHomeRegionNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/enums.go b/services/preview/security/mgmt/v3.0/security/enums.go index 28f2efb55d0b..502736ad2458 100644 --- a/services/preview/security/mgmt/v3.0/security/enums.go +++ b/services/preview/security/mgmt/v3.0/security/enums.go @@ -794,13 +794,11 @@ const ( KindDataExportSettings KindEnum = "DataExportSettings" // KindSetting ... KindSetting KindEnum = "Setting" - // KindSettingResource ... - KindSettingResource KindEnum = "SettingResource" ) // PossibleKindEnumValues returns an array of possible values for the KindEnum const type. func PossibleKindEnumValues() []KindEnum { - return []KindEnum{KindDataExportSettings, KindSetting, KindSettingResource} + return []KindEnum{KindDataExportSettings, KindSetting} } // KindEnum1 enumerates the values for kind enum 1. @@ -1462,6 +1460,23 @@ func PossibleScriptValues() []Script { return []Script{ScriptAudit, ScriptEnforce, ScriptNone} } +// SensorStatus enumerates the values for sensor status. +type SensorStatus string + +const ( + // Disconnected ... + Disconnected SensorStatus = "Disconnected" + // Ok ... + Ok SensorStatus = "Ok" + // Unavailable ... + Unavailable SensorStatus = "Unavailable" +) + +// PossibleSensorStatusValues returns an array of possible values for the SensorStatus const type. +func PossibleSensorStatusValues() []SensorStatus { + return []SensorStatus{Disconnected, Ok, Unavailable} +} + // Severity enumerates the values for severity. type Severity string @@ -1630,6 +1645,25 @@ func PossibleThreatsValues() []Threats { return []Threats{AccountBreach, DataExfiltration, DataSpillage, DenialOfService, ElevationOfPrivilege, MaliciousInsider, MissingCoverage, ThreatResistance} } +// TiStatus enumerates the values for ti status. +type TiStatus string + +const ( + // TiStatusFailed ... + TiStatusFailed TiStatus = "Failed" + // TiStatusInProgress ... + TiStatusInProgress TiStatus = "InProgress" + // TiStatusOk ... + TiStatusOk TiStatus = "Ok" + // TiStatusUpdateAvailable ... + TiStatusUpdateAvailable TiStatus = "UpdateAvailable" +) + +// PossibleTiStatusValues returns an array of possible values for the TiStatus const type. +func PossibleTiStatusValues() []TiStatus { + return []TiStatus{TiStatusFailed, TiStatusInProgress, TiStatusOk, TiStatusUpdateAvailable} +} + // TransportProtocol enumerates the values for transport protocol. type TransportProtocol string diff --git a/services/preview/security/mgmt/v3.0/security/externalsecuritysolutions.go b/services/preview/security/mgmt/v3.0/security/externalsecuritysolutions.go index 0ad44839737a..56a076d83444 100644 --- a/services/preview/security/mgmt/v3.0/security/externalsecuritysolutions.go +++ b/services/preview/security/mgmt/v3.0/security/externalsecuritysolutions.go @@ -170,6 +170,7 @@ func (client ExternalSecuritySolutionsClient) List(ctx context.Context) (result } if result.essl.hasNextLink() && result.essl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -229,7 +230,6 @@ func (client ExternalSecuritySolutionsClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ExternalSecuritySolutionsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } @@ -289,6 +289,7 @@ func (client ExternalSecuritySolutionsClient) ListByHomeRegion(ctx context.Conte } if result.essl.hasNextLink() && result.essl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -349,7 +350,6 @@ func (client ExternalSecuritySolutionsClient) listByHomeRegionNextResults(ctx co result, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.ExternalSecuritySolutionsClient", "listByHomeRegionNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/informationprotectionpolicies.go b/services/preview/security/mgmt/v3.0/security/informationprotectionpolicies.go index 763996043ce7..bf3a9ef5afcf 100644 --- a/services/preview/security/mgmt/v3.0/security/informationprotectionpolicies.go +++ b/services/preview/security/mgmt/v3.0/security/informationprotectionpolicies.go @@ -233,6 +233,7 @@ func (client InformationProtectionPoliciesClient) List(ctx context.Context, scop } if result.ippl.hasNextLink() && result.ippl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -292,7 +293,6 @@ func (client InformationProtectionPoliciesClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.InformationProtectionPoliciesClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/iotalerts.go b/services/preview/security/mgmt/v3.0/security/iotalerts.go index 123a6710eb60..04fa06f9d5d6 100644 --- a/services/preview/security/mgmt/v3.0/security/iotalerts.go +++ b/services/preview/security/mgmt/v3.0/security/iotalerts.go @@ -260,6 +260,7 @@ func (client IotAlertsClient) List(ctx context.Context, resourceGroupName string } if result.ial.hasNextLink() && result.ial.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -339,7 +340,6 @@ func (client IotAlertsClient) listNextResults(ctx context.Context, lastResults I result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotAlertsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } @@ -403,6 +403,7 @@ func (client IotAlertsClient) List1(ctx context.Context, scope string, minStartT } if result.ialm.hasNextLink() && result.ialm.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -483,7 +484,6 @@ func (client IotAlertsClient) list1NextResults(ctx context.Context, lastResults result, err = client.List1Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotAlertsClient", "list1NextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/iotrecommendations.go b/services/preview/security/mgmt/v3.0/security/iotrecommendations.go index b14e6b0e2671..9cafa59185b6 100644 --- a/services/preview/security/mgmt/v3.0/security/iotrecommendations.go +++ b/services/preview/security/mgmt/v3.0/security/iotrecommendations.go @@ -259,6 +259,7 @@ func (client IotRecommendationsClient) List(ctx context.Context, resourceGroupNa } if result.irl.hasNextLink() && result.irl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -332,7 +333,6 @@ func (client IotRecommendationsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotRecommendationsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } @@ -393,6 +393,7 @@ func (client IotRecommendationsClient) List1(ctx context.Context, scope string, } if result.irlm.hasNextLink() && result.irlm.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -464,7 +465,6 @@ func (client IotRecommendationsClient) list1NextResults(ctx context.Context, las result, err = client.List1Responder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotRecommendationsClient", "list1NextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/iotsecuritysolution.go b/services/preview/security/mgmt/v3.0/security/iotsecuritysolution.go index b885bb70f874..ea6d947b69a9 100644 --- a/services/preview/security/mgmt/v3.0/security/iotsecuritysolution.go +++ b/services/preview/security/mgmt/v3.0/security/iotsecuritysolution.go @@ -365,6 +365,7 @@ func (client IotSecuritySolutionClient) ListByResourceGroup(ctx context.Context, } if result.itssl.hasNextLink() && result.itssl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -428,7 +429,6 @@ func (client IotSecuritySolutionClient) listByResourceGroupNextResults(ctx conte result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSecuritySolutionClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") - return } return } @@ -490,6 +490,7 @@ func (client IotSecuritySolutionClient) ListBySubscription(ctx context.Context, } if result.itssl.hasNextLink() && result.itssl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -552,7 +553,6 @@ func (client IotSecuritySolutionClient) listBySubscriptionNextResults(ctx contex result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSecuritySolutionClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsanalyticsaggregatedalert.go b/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsanalyticsaggregatedalert.go index 83a889c63119..4d78f12731f8 100644 --- a/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsanalyticsaggregatedalert.go +++ b/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsanalyticsaggregatedalert.go @@ -271,6 +271,7 @@ func (client IotSecuritySolutionsAnalyticsAggregatedAlertClient) List(ctx contex } if result.itsaal.hasNextLink() && result.itsaal.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -335,7 +336,6 @@ func (client IotSecuritySolutionsAnalyticsAggregatedAlertClient) listNextResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSecuritySolutionsAnalyticsAggregatedAlertClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsanalyticsrecommendation.go b/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsanalyticsrecommendation.go index ed936611285f..faa3c0316a89 100644 --- a/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsanalyticsrecommendation.go +++ b/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsanalyticsrecommendation.go @@ -184,6 +184,7 @@ func (client IotSecuritySolutionsAnalyticsRecommendationClient) List(ctx context } if result.itsarl.hasNextLink() && result.itsarl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -248,7 +249,6 @@ func (client IotSecuritySolutionsAnalyticsRecommendationClient) listNextResults( result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSecuritySolutionsAnalyticsRecommendationClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/iotsensors.go b/services/preview/security/mgmt/v3.0/security/iotsensors.go index 4259e956e4d8..52a7aff11b17 100644 --- a/services/preview/security/mgmt/v3.0/security/iotsensors.go +++ b/services/preview/security/mgmt/v3.0/security/iotsensors.go @@ -45,7 +45,8 @@ func NewIotSensorsClientWithBaseURI(baseURI string, subscriptionID string, ascLo // Parameters: // scope - scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) // iotSensorName - name of the IoT sensor -func (client IotSensorsClient) CreateOrUpdate(ctx context.Context, scope string, iotSensorName string) (result IotSensor, err error) { +// iotSensorsModel - the IoT sensor model +func (client IotSensorsClient) CreateOrUpdate(ctx context.Context, scope string, iotSensorName string, iotSensorsModel IotSensorsModel) (result IotSensorsModel, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/IotSensorsClient.CreateOrUpdate") defer func() { @@ -56,7 +57,7 @@ func (client IotSensorsClient) CreateOrUpdate(ctx context.Context, scope string, tracing.EndSpan(ctx, sc, err) }() } - req, err := client.CreateOrUpdatePreparer(ctx, scope, iotSensorName) + req, err := client.CreateOrUpdatePreparer(ctx, scope, iotSensorName, iotSensorsModel) if err != nil { err = autorest.NewErrorWithError(err, "security.IotSensorsClient", "CreateOrUpdate", nil, "Failure preparing request") return @@ -79,7 +80,7 @@ func (client IotSensorsClient) CreateOrUpdate(ctx context.Context, scope string, } // CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client IotSensorsClient) CreateOrUpdatePreparer(ctx context.Context, scope string, iotSensorName string) (*http.Request, error) { +func (client IotSensorsClient) CreateOrUpdatePreparer(ctx context.Context, scope string, iotSensorName string, iotSensorsModel IotSensorsModel) (*http.Request, error) { pathParameters := map[string]interface{}{ "iotSensorName": autorest.Encode("path", iotSensorName), "scope": scope, @@ -91,9 +92,11 @@ func (client IotSensorsClient) CreateOrUpdatePreparer(ctx context.Context, scope } preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/{scope}/providers/Microsoft.Security/iotSensors/{iotSensorName}", pathParameters), + autorest.WithJSON(iotSensorsModel), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } @@ -106,7 +109,7 @@ func (client IotSensorsClient) CreateOrUpdateSender(req *http.Request) (*http.Re // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. -func (client IotSensorsClient) CreateOrUpdateResponder(resp *http.Response) (result IotSensor, err error) { +func (client IotSensorsClient) CreateOrUpdateResponder(resp *http.Response) (result IotSensorsModel, err error) { err = autorest.Respond( resp, azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), @@ -345,7 +348,7 @@ func (client IotSensorsClient) DownloadResetPasswordResponder(resp *http.Respons // Parameters: // scope - scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) // iotSensorName - name of the IoT sensor -func (client IotSensorsClient) Get(ctx context.Context, scope string, iotSensorName string) (result IotSensor, err error) { +func (client IotSensorsClient) Get(ctx context.Context, scope string, iotSensorName string) (result IotSensorsModel, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/IotSensorsClient.Get") defer func() { @@ -406,7 +409,7 @@ func (client IotSensorsClient) GetSender(req *http.Request) (*http.Response, err // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. -func (client IotSensorsClient) GetResponder(resp *http.Response) (result IotSensor, err error) { +func (client IotSensorsClient) GetResponder(resp *http.Response) (result IotSensorsModel, err error) { err = autorest.Respond( resp, azure.WithErrorUnlessStatusCode(http.StatusOK), @@ -488,3 +491,77 @@ func (client IotSensorsClient) ListResponder(resp *http.Response) (result IotSen result.Response = autorest.Response{Response: resp} return } + +// TriggerTiPackageUpdate trigger threat intelligence package update +// Parameters: +// scope - scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) +// iotSensorName - name of the IoT sensor +func (client IotSensorsClient) TriggerTiPackageUpdate(ctx context.Context, scope string, iotSensorName string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IotSensorsClient.TriggerTiPackageUpdate") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.TriggerTiPackageUpdatePreparer(ctx, scope, iotSensorName) + if err != nil { + err = autorest.NewErrorWithError(err, "security.IotSensorsClient", "TriggerTiPackageUpdate", nil, "Failure preparing request") + return + } + + resp, err := client.TriggerTiPackageUpdateSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "security.IotSensorsClient", "TriggerTiPackageUpdate", resp, "Failure sending request") + return + } + + result, err = client.TriggerTiPackageUpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "security.IotSensorsClient", "TriggerTiPackageUpdate", resp, "Failure responding to request") + return + } + + return +} + +// TriggerTiPackageUpdatePreparer prepares the TriggerTiPackageUpdate request. +func (client IotSensorsClient) TriggerTiPackageUpdatePreparer(ctx context.Context, scope string, iotSensorName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "iotSensorName": autorest.Encode("path", iotSensorName), + "scope": scope, + } + + const APIVersion = "2020-08-06-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/{scope}/providers/Microsoft.Security/iotSensors/{iotSensorName}/triggerTiPackageUpdate", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// TriggerTiPackageUpdateSender sends the TriggerTiPackageUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client IotSensorsClient) TriggerTiPackageUpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// TriggerTiPackageUpdateResponder handles the response to the TriggerTiPackageUpdate request. The method always +// closes the http.Response Body. +func (client IotSensorsClient) TriggerTiPackageUpdateResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByClosing()) + result.Response = resp + return +} diff --git a/services/preview/security/mgmt/v3.0/security/iotsites.go b/services/preview/security/mgmt/v3.0/security/iotsites.go new file mode 100644 index 000000000000..7ecee81545a0 --- /dev/null +++ b/services/preview/security/mgmt/v3.0/security/iotsites.go @@ -0,0 +1,344 @@ +package security + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// IotSitesClient is the API spec for Microsoft.Security (Azure Security Center) resource provider +type IotSitesClient struct { + BaseClient +} + +// NewIotSitesClient creates an instance of the IotSitesClient client. +func NewIotSitesClient(subscriptionID string, ascLocation string) IotSitesClient { + return NewIotSitesClientWithBaseURI(DefaultBaseURI, subscriptionID, ascLocation) +} + +// NewIotSitesClientWithBaseURI creates an instance of the IotSitesClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewIotSitesClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) IotSitesClient { + return IotSitesClient{NewWithBaseURI(baseURI, subscriptionID, ascLocation)} +} + +// CreateOrUpdate create or update IoT site +// Parameters: +// scope - scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) +// iotSitesModel - the IoT sites model +func (client IotSitesClient) CreateOrUpdate(ctx context.Context, scope string, iotSitesModel IotSitesModel) (result IotSitesModel, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IotSitesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: iotSitesModel, + Constraints: []validation.Constraint{{Target: "iotSitesModel.IotSiteProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "iotSitesModel.IotSiteProperties.DisplayName", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { + return result, validation.NewError("security.IotSitesClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, scope, iotSitesModel) + if err != nil { + err = autorest.NewErrorWithError(err, "security.IotSitesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + resp, err := client.CreateOrUpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "security.IotSitesClient", "CreateOrUpdate", resp, "Failure sending request") + return + } + + result, err = client.CreateOrUpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "security.IotSitesClient", "CreateOrUpdate", resp, "Failure responding to request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client IotSitesClient) CreateOrUpdatePreparer(ctx context.Context, scope string, iotSitesModel IotSitesModel) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "scope": scope, + } + + const APIVersion = "2020-08-06-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/{scope}/providers/Microsoft.Security/iotSites/default", pathParameters), + autorest.WithJSON(iotSitesModel), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client IotSitesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client IotSitesClient) CreateOrUpdateResponder(resp *http.Response) (result IotSitesModel, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete delete IoT site +// Parameters: +// scope - scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) +func (client IotSitesClient) Delete(ctx context.Context, scope string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IotSitesClient.Delete") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, scope) + if err != nil { + err = autorest.NewErrorWithError(err, "security.IotSitesClient", "Delete", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "security.IotSitesClient", "Delete", resp, "Failure sending request") + return + } + + result, err = client.DeleteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "security.IotSitesClient", "Delete", resp, "Failure responding to request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client IotSitesClient) DeletePreparer(ctx context.Context, scope string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "scope": scope, + } + + const APIVersion = "2020-08-06-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/{scope}/providers/Microsoft.Security/iotSites/default", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client IotSitesClient) DeleteSender(req *http.Request) (*http.Response, error) { + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client IotSitesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get get IoT site +// Parameters: +// scope - scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) +func (client IotSitesClient) Get(ctx context.Context, scope string) (result IotSitesModel, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IotSitesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, scope) + if err != nil { + err = autorest.NewErrorWithError(err, "security.IotSitesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "security.IotSitesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "security.IotSitesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client IotSitesClient) GetPreparer(ctx context.Context, scope string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "scope": scope, + } + + const APIVersion = "2020-08-06-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/{scope}/providers/Microsoft.Security/iotSites/default", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client IotSitesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client IotSitesClient) GetResponder(resp *http.Response) (result IotSitesModel, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List list IoT sites +// Parameters: +// scope - scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) +func (client IotSitesClient) List(ctx context.Context, scope string) (result IotSitesList, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IotSitesClient.List") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListPreparer(ctx, scope) + if err != nil { + err = autorest.NewErrorWithError(err, "security.IotSitesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "security.IotSitesClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "security.IotSitesClient", "List", resp, "Failure responding to request") + return + } + + return +} + +// ListPreparer prepares the List request. +func (client IotSitesClient) ListPreparer(ctx context.Context, scope string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "scope": scope, + } + + const APIVersion = "2020-08-06-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/{scope}/providers/Microsoft.Security/iotSites", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client IotSitesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client IotSitesClient) ListResponder(resp *http.Response) (result IotSitesList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/preview/security/mgmt/v3.0/security/jitnetworkaccesspolicies.go b/services/preview/security/mgmt/v3.0/security/jitnetworkaccesspolicies.go index 17eeb2a18fd5..23cdcd7c3ad8 100644 --- a/services/preview/security/mgmt/v3.0/security/jitnetworkaccesspolicies.go +++ b/services/preview/security/mgmt/v3.0/security/jitnetworkaccesspolicies.go @@ -447,6 +447,7 @@ func (client JitNetworkAccessPoliciesClient) List(ctx context.Context) (result J } if result.jnapl.hasNextLink() && result.jnapl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -506,7 +507,6 @@ func (client JitNetworkAccessPoliciesClient) listNextResults(ctx context.Context result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "listNextResults", resp, "Failure responding to next results request") - return } return } @@ -566,6 +566,7 @@ func (client JitNetworkAccessPoliciesClient) ListByRegion(ctx context.Context) ( } if result.jnapl.hasNextLink() && result.jnapl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -626,7 +627,6 @@ func (client JitNetworkAccessPoliciesClient) listByRegionNextResults(ctx context result, err = client.ListByRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "listByRegionNextResults", resp, "Failure responding to next results request") - return } return } @@ -694,6 +694,7 @@ func (client JitNetworkAccessPoliciesClient) ListByResourceGroup(ctx context.Con } if result.jnapl.hasNextLink() && result.jnapl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -754,7 +755,6 @@ func (client JitNetworkAccessPoliciesClient) listByResourceGroupNextResults(ctx result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") - return } return } @@ -822,6 +822,7 @@ func (client JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegion(ctx co } if result.jnapl.hasNextLink() && result.jnapl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -883,7 +884,6 @@ func (client JitNetworkAccessPoliciesClient) listByResourceGroupAndRegionNextRes result, err = client.ListByResourceGroupAndRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.JitNetworkAccessPoliciesClient", "listByResourceGroupAndRegionNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/locations.go b/services/preview/security/mgmt/v3.0/security/locations.go index 3da6b15d7f0c..a902ca151a67 100644 --- a/services/preview/security/mgmt/v3.0/security/locations.go +++ b/services/preview/security/mgmt/v3.0/security/locations.go @@ -161,6 +161,7 @@ func (client LocationsClient) List(ctx context.Context) (result AscLocationListP } if result.all.hasNextLink() && result.all.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -220,7 +221,6 @@ func (client LocationsClient) listNextResults(ctx context.Context, lastResults A result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.LocationsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/models.go b/services/preview/security/mgmt/v3.0/security/models.go index 1a3f26233bf3..9c6dd0b478c4 100644 --- a/services/preview/security/mgmt/v3.0/security/models.go +++ b/services/preview/security/mgmt/v3.0/security/models.go @@ -6937,7 +6937,7 @@ type DataExportSettings struct { Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` - // Kind - Possible values include: 'KindSettingResource', 'KindSetting', 'KindDataExportSettings' + // Kind - Possible values include: 'KindSetting', 'KindDataExportSettings' Kind KindEnum `json:"kind,omitempty"` } @@ -6954,28 +6954,18 @@ func (desVar DataExportSettings) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// AsSetting is the BasicSettingResource implementation for DataExportSettings. -func (desVar DataExportSettings) AsSetting() (*Setting, bool) { - return nil, false -} - -// AsBasicSetting is the BasicSettingResource implementation for DataExportSettings. -func (desVar DataExportSettings) AsBasicSetting() (BasicSetting, bool) { - return &desVar, true -} - -// AsDataExportSettings is the BasicSettingResource implementation for DataExportSettings. +// AsDataExportSettings is the BasicSetting implementation for DataExportSettings. func (desVar DataExportSettings) AsDataExportSettings() (*DataExportSettings, bool) { return &desVar, true } -// AsSettingResource is the BasicSettingResource implementation for DataExportSettings. -func (desVar DataExportSettings) AsSettingResource() (*SettingResource, bool) { +// AsSetting is the BasicSetting implementation for DataExportSettings. +func (desVar DataExportSettings) AsSetting() (*Setting, bool) { return nil, false } -// AsBasicSettingResource is the BasicSettingResource implementation for DataExportSettings. -func (desVar DataExportSettings) AsBasicSettingResource() (BasicSettingResource, bool) { +// AsBasicSetting is the BasicSetting implementation for DataExportSettings. +func (desVar DataExportSettings) AsBasicSetting() (BasicSetting, bool) { return &desVar, true } @@ -12458,11 +12448,54 @@ func NewIoTSecuritySolutionsListPage(cur IoTSecuritySolutionsList, getNextPage f } } -// IotSensor ioT sensor -type IotSensor struct { +// IotSensorProperties ioT sensor properties +type IotSensorProperties struct { + // ConnectivityTime - READ-ONLY; Last connectivity time of the IoT sensor + ConnectivityTime *string `json:"connectivityTime,omitempty"` + // CreationTime - READ-ONLY; Creation time of the IoT sensor + CreationTime *string `json:"creationTime,omitempty"` + // DynamicLearning - READ-ONLY; Dynamic mode status of the IoT sensor + DynamicLearning *bool `json:"dynamicLearning,omitempty"` + // LearningMode - READ-ONLY; Learning mode status of the IoT sensor + LearningMode *bool `json:"learningMode,omitempty"` + // SensorStatus - READ-ONLY; Status of the IoT sensor. Possible values include: 'Ok', 'Disconnected', 'Unavailable' + SensorStatus SensorStatus `json:"sensorStatus,omitempty"` + // SensorVersion - READ-ONLY; Version of the IoT sensor + SensorVersion *string `json:"sensorVersion,omitempty"` + // TiAutomaticUpdates - TI Automatic mode status of the IoT sensor + TiAutomaticUpdates *bool `json:"tiAutomaticUpdates,omitempty"` + // TiStatus - READ-ONLY; TI Status of the IoT sensor. Possible values include: 'TiStatusOk', 'TiStatusFailed', 'TiStatusInProgress', 'TiStatusUpdateAvailable' + TiStatus TiStatus `json:"tiStatus,omitempty"` + // TiVersion - READ-ONLY; TI Version of the IoT sensor + TiVersion *string `json:"tiVersion,omitempty"` + // Zone - Zone of the IoT sensor + Zone *string `json:"zone,omitempty"` +} + +// MarshalJSON is the custom marshaler for IotSensorProperties. +func (isp IotSensorProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if isp.TiAutomaticUpdates != nil { + objectMap["tiAutomaticUpdates"] = isp.TiAutomaticUpdates + } + if isp.Zone != nil { + objectMap["zone"] = isp.Zone + } + return json.Marshal(objectMap) +} + +// IotSensorsList list of IoT sensors +type IotSensorsList struct { autorest.Response `json:"-"` - // Properties - IoT sensor properties - Properties interface{} `json:"properties,omitempty"` + // Value - READ-ONLY; List data + Value *[]IotSensorsModel `json:"value,omitempty"` +} + +// IotSensorsModel ioT sensor model +type IotSensorsModel struct { + autorest.Response `json:"-"` + // IotSensorProperties - IoT sensor properties + *IotSensorProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name @@ -12471,20 +12504,64 @@ type IotSensor struct { Type *string `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for IotSensor. -func (is IotSensor) MarshalJSON() ([]byte, error) { +// MarshalJSON is the custom marshaler for IotSensorsModel. +func (ism IotSensorsModel) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if is.Properties != nil { - objectMap["properties"] = is.Properties + if ism.IotSensorProperties != nil { + objectMap["properties"] = ism.IotSensorProperties } return json.Marshal(objectMap) } -// IotSensorsList list of IoT sensors -type IotSensorsList struct { - autorest.Response `json:"-"` - // Value - READ-ONLY; List data - Value *[]IotSensor `json:"value,omitempty"` +// UnmarshalJSON is the custom unmarshaler for IotSensorsModel struct. +func (ism *IotSensorsModel) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var iotSensorProperties IotSensorProperties + err = json.Unmarshal(*v, &iotSensorProperties) + if err != nil { + return err + } + ism.IotSensorProperties = &iotSensorProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + ism.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ism.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ism.Type = &typeVar + } + } + } + + return nil } // IoTSeverityMetrics ioT Security solution analytics severity metrics. @@ -12497,6 +12574,106 @@ type IoTSeverityMetrics struct { Low *int32 `json:"low,omitempty"` } +// IotSiteProperties ioT site properties +type IotSiteProperties struct { + // DisplayName - Display name of the IoT site + DisplayName *string `json:"displayName,omitempty"` + // Tags - Tags of the IoT site + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for IotSiteProperties. +func (isp IotSiteProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if isp.DisplayName != nil { + objectMap["displayName"] = isp.DisplayName + } + if isp.Tags != nil { + objectMap["tags"] = isp.Tags + } + return json.Marshal(objectMap) +} + +// IotSitesList list of IoT sites +type IotSitesList struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List data + Value *[]IotSitesModel `json:"value,omitempty"` +} + +// IotSitesModel ioT site model +type IotSitesModel struct { + autorest.Response `json:"-"` + // IotSiteProperties - IoT site properties + *IotSiteProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for IotSitesModel. +func (ism IotSitesModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ism.IotSiteProperties != nil { + objectMap["properties"] = ism.IotSiteProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for IotSitesModel struct. +func (ism *IotSitesModel) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var iotSiteProperties IotSiteProperties + err = json.Unmarshal(*v, &iotSiteProperties) + if err != nil { + return err + } + ism.IotSiteProperties = &iotSiteProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + ism.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ism.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ism.Type = &typeVar + } + } + } + + return nil +} + // IPAddress IP Address information type IPAddress struct { // V4Address - READ-ONLY; IPV4 address @@ -17387,16 +17564,16 @@ type ServicePrincipalProperties struct { Secret *string `json:"secret,omitempty"` } -// BasicSetting represents a security setting in Azure Security Center. +// BasicSetting the kind of the security setting type BasicSetting interface { AsDataExportSettings() (*DataExportSettings, bool) AsSetting() (*Setting, bool) } -// Setting represents a security setting in Azure Security Center. +// Setting the kind of the security setting type Setting struct { autorest.Response `json:"-"` - // Kind - Possible values include: 'KindSettingResource', 'KindSetting', 'KindDataExportSettings' + // Kind - Possible values include: 'KindSetting', 'KindDataExportSettings' Kind KindEnum `json:"kind,omitempty"` // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` @@ -17453,125 +17630,36 @@ func (s Setting) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// AsSetting is the BasicSettingResource implementation for Setting. -func (s Setting) AsSetting() (*Setting, bool) { - return &s, true -} - -// AsBasicSetting is the BasicSettingResource implementation for Setting. -func (s Setting) AsBasicSetting() (BasicSetting, bool) { - return &s, true -} - -// AsDataExportSettings is the BasicSettingResource implementation for Setting. +// AsDataExportSettings is the BasicSetting implementation for Setting. func (s Setting) AsDataExportSettings() (*DataExportSettings, bool) { return nil, false } -// AsSettingResource is the BasicSettingResource implementation for Setting. -func (s Setting) AsSettingResource() (*SettingResource, bool) { - return nil, false -} - -// AsBasicSettingResource is the BasicSettingResource implementation for Setting. -func (s Setting) AsBasicSettingResource() (BasicSettingResource, bool) { +// AsSetting is the BasicSetting implementation for Setting. +func (s Setting) AsSetting() (*Setting, bool) { return &s, true } -// BasicSettingResource the kind of the security setting -type BasicSettingResource interface { - AsSetting() (*Setting, bool) - AsBasicSetting() (BasicSetting, bool) - AsDataExportSettings() (*DataExportSettings, bool) - AsSettingResource() (*SettingResource, bool) +// AsBasicSetting is the BasicSetting implementation for Setting. +func (s Setting) AsBasicSetting() (BasicSetting, bool) { + return &s, true } -// SettingResource the kind of the security setting -type SettingResource struct { - // Kind - Possible values include: 'KindSettingResource', 'KindSetting', 'KindDataExportSettings' - Kind KindEnum `json:"kind,omitempty"` - // ID - READ-ONLY; Resource Id - ID *string `json:"id,omitempty"` - // Name - READ-ONLY; Resource name - Name *string `json:"name,omitempty"` - // Type - READ-ONLY; Resource type - Type *string `json:"type,omitempty"` +// SettingModel ... +type SettingModel struct { + autorest.Response `json:"-"` + Value BasicSetting `json:"value,omitempty"` } -func unmarshalBasicSettingResource(body []byte) (BasicSettingResource, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) +// UnmarshalJSON is the custom unmarshaler for SettingModel struct. +func (sm *SettingModel) UnmarshalJSON(body []byte) error { + s, err := unmarshalBasicSetting(body) if err != nil { - return nil, err - } - - switch m["kind"] { - case string(KindSetting): - var s Setting - err := json.Unmarshal(body, &s) - return s, err - case string(KindDataExportSettings): - var desVar DataExportSettings - err := json.Unmarshal(body, &desVar) - return desVar, err - default: - var sr SettingResource - err := json.Unmarshal(body, &sr) - return sr, err - } -} -func unmarshalBasicSettingResourceArray(body []byte) ([]BasicSettingResource, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - srArray := make([]BasicSettingResource, len(rawMessages)) - - for index, rawMessage := range rawMessages { - sr, err := unmarshalBasicSettingResource(*rawMessage) - if err != nil { - return nil, err - } - srArray[index] = sr - } - return srArray, nil -} - -// MarshalJSON is the custom marshaler for SettingResource. -func (sr SettingResource) MarshalJSON() ([]byte, error) { - sr.Kind = KindSettingResource - objectMap := make(map[string]interface{}) - if sr.Kind != "" { - objectMap["kind"] = sr.Kind + return err } - return json.Marshal(objectMap) -} - -// AsSetting is the BasicSettingResource implementation for SettingResource. -func (sr SettingResource) AsSetting() (*Setting, bool) { - return nil, false -} - -// AsBasicSetting is the BasicSettingResource implementation for SettingResource. -func (sr SettingResource) AsBasicSetting() (BasicSetting, bool) { - return nil, false -} + sm.Value = s -// AsDataExportSettings is the BasicSettingResource implementation for SettingResource. -func (sr SettingResource) AsDataExportSettings() (*DataExportSettings, bool) { - return nil, false -} - -// AsSettingResource is the BasicSettingResource implementation for SettingResource. -func (sr SettingResource) AsSettingResource() (*SettingResource, bool) { - return &sr, true -} - -// AsBasicSettingResource is the BasicSettingResource implementation for SettingResource. -func (sr SettingResource) AsBasicSettingResource() (BasicSettingResource, bool) { - return &sr, true + return nil } // SettingsList subscription settings list. diff --git a/services/preview/security/mgmt/v3.0/security/operations.go b/services/preview/security/mgmt/v3.0/security/operations.go index 182e56dac878..2dee8919ecd9 100644 --- a/services/preview/security/mgmt/v3.0/security/operations.go +++ b/services/preview/security/mgmt/v3.0/security/operations.go @@ -74,6 +74,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListPa } if result.ol.hasNextLink() && result.ol.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, "security.OperationsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/regulatorycomplianceassessments.go b/services/preview/security/mgmt/v3.0/security/regulatorycomplianceassessments.go index 2ac9c4c141cd..813409522be2 100644 --- a/services/preview/security/mgmt/v3.0/security/regulatorycomplianceassessments.go +++ b/services/preview/security/mgmt/v3.0/security/regulatorycomplianceassessments.go @@ -171,6 +171,7 @@ func (client RegulatoryComplianceAssessmentsClient) List(ctx context.Context, re } if result.rcal.hasNextLink() && result.rcal.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -235,7 +236,6 @@ func (client RegulatoryComplianceAssessmentsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceAssessmentsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/regulatorycompliancecontrols.go b/services/preview/security/mgmt/v3.0/security/regulatorycompliancecontrols.go index 70a6470c3498..c592afc5ed07 100644 --- a/services/preview/security/mgmt/v3.0/security/regulatorycompliancecontrols.go +++ b/services/preview/security/mgmt/v3.0/security/regulatorycompliancecontrols.go @@ -167,6 +167,7 @@ func (client RegulatoryComplianceControlsClient) List(ctx context.Context, regul } if result.rccl.hasNextLink() && result.rccl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -230,7 +231,6 @@ func (client RegulatoryComplianceControlsClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceControlsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/regulatorycompliancestandards.go b/services/preview/security/mgmt/v3.0/security/regulatorycompliancestandards.go index 1c2bf9f19d8e..c22885a30f14 100644 --- a/services/preview/security/mgmt/v3.0/security/regulatorycompliancestandards.go +++ b/services/preview/security/mgmt/v3.0/security/regulatorycompliancestandards.go @@ -164,6 +164,7 @@ func (client RegulatoryComplianceStandardsClient) List(ctx context.Context, filt } if result.rcsl.hasNextLink() && result.rcsl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -226,7 +227,6 @@ func (client RegulatoryComplianceStandardsClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceStandardsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/securescorecontroldefinitions.go b/services/preview/security/mgmt/v3.0/security/securescorecontroldefinitions.go index 871d3cdb0c41..ddaaba51a998 100644 --- a/services/preview/security/mgmt/v3.0/security/securescorecontroldefinitions.go +++ b/services/preview/security/mgmt/v3.0/security/securescorecontroldefinitions.go @@ -76,6 +76,7 @@ func (client SecureScoreControlDefinitionsClient) List(ctx context.Context) (res } if result.sscdl.hasNextLink() && result.sscdl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -131,7 +132,6 @@ func (client SecureScoreControlDefinitionsClient) listNextResults(ctx context.Co result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlDefinitionsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } @@ -192,6 +192,7 @@ func (client SecureScoreControlDefinitionsClient) ListBySubscription(ctx context } if result.sscdl.hasNextLink() && result.sscdl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -251,7 +252,6 @@ func (client SecureScoreControlDefinitionsClient) listBySubscriptionNextResults( result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlDefinitionsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/securescorecontrols.go b/services/preview/security/mgmt/v3.0/security/securescorecontrols.go index 767f93dfc790..5853934891cf 100644 --- a/services/preview/security/mgmt/v3.0/security/securescorecontrols.go +++ b/services/preview/security/mgmt/v3.0/security/securescorecontrols.go @@ -84,6 +84,7 @@ func (client SecureScoreControlsClient) List(ctx context.Context, expand ExpandC } if result.sscl.hasNextLink() && result.sscl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -146,7 +147,6 @@ func (client SecureScoreControlsClient) listNextResults(ctx context.Context, las result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } @@ -210,6 +210,7 @@ func (client SecureScoreControlsClient) ListBySecureScore(ctx context.Context, s } if result.sscl.hasNextLink() && result.sscl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -273,7 +274,6 @@ func (client SecureScoreControlsClient) listBySecureScoreNextResults(ctx context result, err = client.ListBySecureScoreResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoreControlsClient", "listBySecureScoreNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/securescores.go b/services/preview/security/mgmt/v3.0/security/securescores.go index 666196d1f46a..5b58a65addc5 100644 --- a/services/preview/security/mgmt/v3.0/security/securescores.go +++ b/services/preview/security/mgmt/v3.0/security/securescores.go @@ -163,6 +163,7 @@ func (client SecureScoresClient) List(ctx context.Context) (result SecureScoresL } if result.ssl.hasNextLink() && result.ssl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -222,7 +223,6 @@ func (client SecureScoresClient) listNextResults(ctx context.Context, lastResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SecureScoresClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/securityapi/interfaces.go b/services/preview/security/mgmt/v3.0/security/securityapi/interfaces.go index 94145163fbd0..b5c00eb30864 100644 --- a/services/preview/security/mgmt/v3.0/security/securityapi/interfaces.go +++ b/services/preview/security/mgmt/v3.0/security/securityapi/interfaces.go @@ -43,10 +43,10 @@ var _ PricingsClientAPI = (*security.PricingsClient)(nil) // SettingsClientAPI contains the set of methods on the SettingsClient type. type SettingsClientAPI interface { - Get(ctx context.Context, settingName string) (result security.Setting, err error) + Get(ctx context.Context, settingName string) (result security.SettingModel, err error) List(ctx context.Context) (result security.SettingsListPage, err error) ListComplete(ctx context.Context) (result security.SettingsListIterator, err error) - Update(ctx context.Context, settingName string, setting security.BasicSetting) (result security.Setting, err error) + Update(ctx context.Context, settingName string, setting security.BasicSetting) (result security.SettingModel, err error) } var _ SettingsClientAPI = (*security.SettingsClient)(nil) @@ -541,12 +541,13 @@ var _ IotDefenderSettingsClientAPI = (*security.IotDefenderSettingsClient)(nil) // IotSensorsClientAPI contains the set of methods on the IotSensorsClient type. type IotSensorsClientAPI interface { - CreateOrUpdate(ctx context.Context, scope string, iotSensorName string) (result security.IotSensor, err error) + CreateOrUpdate(ctx context.Context, scope string, iotSensorName string, iotSensorsModel security.IotSensorsModel) (result security.IotSensorsModel, err error) Delete(ctx context.Context, scope string, iotSensorName string) (result autorest.Response, err error) DownloadActivation(ctx context.Context, scope string, iotSensorName string) (result security.ReadCloser, err error) DownloadResetPassword(ctx context.Context, scope string, iotSensorName string, body security.ResetPasswordInput) (result security.ReadCloser, err error) - Get(ctx context.Context, scope string, iotSensorName string) (result security.IotSensor, err error) + Get(ctx context.Context, scope string, iotSensorName string) (result security.IotSensorsModel, err error) List(ctx context.Context, scope string) (result security.IotSensorsList, err error) + TriggerTiPackageUpdate(ctx context.Context, scope string, iotSensorName string) (result autorest.Response, err error) } var _ IotSensorsClientAPI = (*security.IotSensorsClient)(nil) @@ -585,3 +586,13 @@ type OnPremiseIotSensorsClientAPI interface { } var _ OnPremiseIotSensorsClientAPI = (*security.OnPremiseIotSensorsClient)(nil) + +// IotSitesClientAPI contains the set of methods on the IotSitesClient type. +type IotSitesClientAPI interface { + CreateOrUpdate(ctx context.Context, scope string, iotSitesModel security.IotSitesModel) (result security.IotSitesModel, err error) + Delete(ctx context.Context, scope string) (result autorest.Response, err error) + Get(ctx context.Context, scope string) (result security.IotSitesModel, err error) + List(ctx context.Context, scope string) (result security.IotSitesList, err error) +} + +var _ IotSitesClientAPI = (*security.IotSitesClient)(nil) diff --git a/services/preview/security/mgmt/v3.0/security/settings.go b/services/preview/security/mgmt/v3.0/security/settings.go index dee8ddd5dc2b..29489f1e4dd1 100644 --- a/services/preview/security/mgmt/v3.0/security/settings.go +++ b/services/preview/security/mgmt/v3.0/security/settings.go @@ -45,7 +45,7 @@ func NewSettingsClientWithBaseURI(baseURI string, subscriptionID string, ascLoca // Get settings of different configurations in security center // Parameters: // settingName - name of setting: (MCAS/WDATP) -func (client SettingsClient) Get(ctx context.Context, settingName string) (result Setting, err error) { +func (client SettingsClient) Get(ctx context.Context, settingName string) (result SettingModel, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/SettingsClient.Get") defer func() { @@ -112,7 +112,7 @@ func (client SettingsClient) GetSender(req *http.Request) (*http.Response, error // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. -func (client SettingsClient) GetResponder(resp *http.Response) (result Setting, err error) { +func (client SettingsClient) GetResponder(resp *http.Response) (result SettingModel, err error) { err = autorest.Respond( resp, azure.WithErrorUnlessStatusCode(http.StatusOK), @@ -161,6 +161,7 @@ func (client SettingsClient) List(ctx context.Context) (result SettingsListPage, } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -220,7 +221,6 @@ func (client SettingsClient) listNextResults(ctx context.Context, lastResults Se result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SettingsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } @@ -245,7 +245,7 @@ func (client SettingsClient) ListComplete(ctx context.Context) (result SettingsL // Parameters: // settingName - name of setting: (MCAS/WDATP) // setting - setting object -func (client SettingsClient) Update(ctx context.Context, settingName string, setting BasicSetting) (result Setting, err error) { +func (client SettingsClient) Update(ctx context.Context, settingName string, setting BasicSetting) (result SettingModel, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/SettingsClient.Update") defer func() { @@ -314,7 +314,7 @@ func (client SettingsClient) UpdateSender(req *http.Request) (*http.Response, er // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. -func (client SettingsClient) UpdateResponder(resp *http.Response) (result Setting, err error) { +func (client SettingsClient) UpdateResponder(resp *http.Response) (result SettingModel, err error) { err = autorest.Respond( resp, azure.WithErrorUnlessStatusCode(http.StatusOK), diff --git a/services/preview/security/mgmt/v3.0/security/solutions.go b/services/preview/security/mgmt/v3.0/security/solutions.go index 6f1f7e24ca83..0a21be7ec60c 100644 --- a/services/preview/security/mgmt/v3.0/security/solutions.go +++ b/services/preview/security/mgmt/v3.0/security/solutions.go @@ -169,6 +169,7 @@ func (client SolutionsClient) List(ctx context.Context) (result SolutionListPage } if result.sl.hasNextLink() && result.sl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -228,7 +229,6 @@ func (client SolutionsClient) listNextResults(ctx context.Context, lastResults S result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SolutionsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/subassessments.go b/services/preview/security/mgmt/v3.0/security/subassessments.go index 5ad0f914731b..bfe836da2aee 100644 --- a/services/preview/security/mgmt/v3.0/security/subassessments.go +++ b/services/preview/security/mgmt/v3.0/security/subassessments.go @@ -156,6 +156,7 @@ func (client SubAssessmentsClient) List(ctx context.Context, scope string, asses } if result.sal.hasNextLink() && result.sal.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -216,7 +217,6 @@ func (client SubAssessmentsClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SubAssessmentsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } @@ -273,6 +273,7 @@ func (client SubAssessmentsClient) ListAll(ctx context.Context, scope string) (r } if result.sal.hasNextLink() && result.sal.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -332,7 +333,6 @@ func (client SubAssessmentsClient) listAllNextResults(ctx context.Context, lastR result, err = client.ListAllResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.SubAssessmentsClient", "listAllNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/tasks.go b/services/preview/security/mgmt/v3.0/security/tasks.go index a7fc1430a58c..95a2989a4bfd 100644 --- a/services/preview/security/mgmt/v3.0/security/tasks.go +++ b/services/preview/security/mgmt/v3.0/security/tasks.go @@ -252,6 +252,7 @@ func (client TasksClient) List(ctx context.Context, filter string) (result TaskL } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -314,7 +315,6 @@ func (client TasksClient) listNextResults(ctx context.Context, lastResults TaskL result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "listNextResults", resp, "Failure responding to next results request") - return } return } @@ -376,6 +376,7 @@ func (client TasksClient) ListByHomeRegion(ctx context.Context, filter string) ( } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -439,7 +440,6 @@ func (client TasksClient) listByHomeRegionNextResults(ctx context.Context, lastR result, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "listByHomeRegionNextResults", resp, "Failure responding to next results request") - return } return } @@ -507,6 +507,7 @@ func (client TasksClient) ListByResourceGroup(ctx context.Context, resourceGroup } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -571,7 +572,6 @@ func (client TasksClient) listByResourceGroupNextResults(ctx context.Context, la result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TasksClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/topology.go b/services/preview/security/mgmt/v3.0/security/topology.go index 549078056432..821d0dcd595d 100644 --- a/services/preview/security/mgmt/v3.0/security/topology.go +++ b/services/preview/security/mgmt/v3.0/security/topology.go @@ -169,6 +169,7 @@ func (client TopologyClient) List(ctx context.Context) (result TopologyListPage, } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -228,7 +229,6 @@ func (client TopologyClient) listNextResults(ctx context.Context, lastResults To result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TopologyClient", "listNextResults", resp, "Failure responding to next results request") - return } return } @@ -288,6 +288,7 @@ func (client TopologyClient) ListByHomeRegion(ctx context.Context) (result Topol } if result.tl.hasNextLink() && result.tl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -348,7 +349,6 @@ func (client TopologyClient) listByHomeRegionNextResults(ctx context.Context, la result, err = client.ListByHomeRegionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.TopologyClient", "listByHomeRegionNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/security/mgmt/v3.0/security/workspacesettings.go b/services/preview/security/mgmt/v3.0/security/workspacesettings.go index 41f3137c7d4d..b3af9d3dee72 100644 --- a/services/preview/security/mgmt/v3.0/security/workspacesettings.go +++ b/services/preview/security/mgmt/v3.0/security/workspacesettings.go @@ -331,6 +331,7 @@ func (client WorkspaceSettingsClient) List(ctx context.Context) (result Workspac } if result.wsl.hasNextLink() && result.wsl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -390,7 +391,6 @@ func (client WorkspaceSettingsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "security.WorkspaceSettingsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } From 754bf9094b1eafb26b5242c93c257d8e9f4727ca Mon Sep 17 00:00:00 2001 From: arcturusZhang Date: Thu, 17 Dec 2020 12:19:59 +0800 Subject: [PATCH 06/12] Generated from tags [package-2019-06-01-preview] of specification/synapse/resource-manager/readme.md (commit hash: 3a3a9452f965a227ce43e6b545035b99dd175f23) --- .../preview/synapse/mgmt/synapse/models.go | 1 + .../2019-06-01-preview/synapse/CHANGELOG.md | 742 +----------------- .../synapse/bigdatapools.go | 2 +- .../extendedsqlpoolblobauditingpolicies.go | 2 +- .../synapse/integrationruntimes.go | 6 +- .../synapse/ipfirewallrules.go | 2 +- .../mgmt/2019-06-01-preview/synapse/keys.go | 2 +- .../mgmt/2019-06-01-preview/synapse/models.go | 34 + .../synapse/privateendpointconnections.go | 2 +- ...rivateendpointconnectionsprivatelinkhub.go | 2 +- .../synapse/privatelinkhubs.go | 4 +- .../synapse/privatelinkresources.go | 2 +- .../synapse/sqlpoolblobauditingpolicies.go | 2 +- .../synapse/sqlpooloperations.go | 2 +- .../synapse/sqlpoolreplicationlinks.go | 2 +- .../synapse/sqlpoolrestorepoints.go | 2 +- .../2019-06-01-preview/synapse/sqlpools.go | 2 +- .../synapse/sqlpoolschemas.go | 2 +- .../synapse/sqlpoolsecurityalertpolicies.go | 2 +- .../synapse/sqlpoolsensitivitylabels.go | 4 +- .../synapse/sqlpooltablecolumns.go | 2 +- .../synapse/sqlpooltables.go | 2 +- .../sqlpooltransparentdataencryptions.go | 2 +- .../synapse/sqlpoolusages.go | 2 +- .../sqlpoolvulnerabilityassessments.go | 2 +- .../sqlpoolvulnerabilityassessmentscans.go | 2 +- .../synapse/sqlpoolworkloadclassifier.go | 2 +- .../synapse/sqlpoolworkloadgroup.go | 2 +- .../synapse/synapseapi/interfaces.go | 2 +- ...kspacemanagedidentitysqlcontrolsettings.go | 27 +- ...acemanagedsqlserverblobauditingpolicies.go | 2 +- ...edsqlserverextendedblobauditingpolicies.go | 2 +- ...pacemanagedsqlserverrecoverablesqlpools.go | 2 +- ...pacemanagedsqlserversecurityalertpolicy.go | 2 +- .../workspacemanagedsqlserverusages.go | 2 +- ...anagedsqlservervulnerabilityassessments.go | 2 +- .../2019-06-01-preview/synapse/workspaces.go | 4 +- 37 files changed, 111 insertions(+), 769 deletions(-) diff --git a/profiles/preview/preview/synapse/mgmt/synapse/models.go b/profiles/preview/preview/synapse/mgmt/synapse/models.go index a785f2288df5..8d7b65a37618 100644 --- a/profiles/preview/preview/synapse/mgmt/synapse/models.go +++ b/profiles/preview/preview/synapse/mgmt/synapse/models.go @@ -824,6 +824,7 @@ type WorkspaceInfoListResultIterator = original.WorkspaceInfoListResultIterator type WorkspaceInfoListResultPage = original.WorkspaceInfoListResultPage type WorkspaceKeyDetails = original.WorkspaceKeyDetails type WorkspaceManagedIdentitySQLControlSettingsClient = original.WorkspaceManagedIdentitySQLControlSettingsClient +type WorkspaceManagedIdentitySQLControlSettingsCreateOrUpdateFuture = original.WorkspaceManagedIdentitySQLControlSettingsCreateOrUpdateFuture type WorkspaceManagedSQLServerBlobAuditingPoliciesClient = original.WorkspaceManagedSQLServerBlobAuditingPoliciesClient type WorkspaceManagedSQLServerBlobAuditingPoliciesCreateOrUpdateFuture = original.WorkspaceManagedSQLServerBlobAuditingPoliciesCreateOrUpdateFuture type WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient = original.WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/CHANGELOG.md b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/CHANGELOG.md index 830e861988ba..c785d30e4991 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/CHANGELOG.md +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/CHANGELOG.md @@ -1,722 +1,32 @@ -Generated from https://github.com/Azure/azure-rest-api-specs/tree/3c764635e7d442b3e74caf593029fcd440b3ef82 +Generated from https://github.com/Azure/azure-rest-api-specs/tree/3a3a9452f965a227ce43e6b545035b99dd175f23 -Code generator @microsoft.azure/autorest.go@~2.1.161 +Code generator @microsoft.azure/autorest.go@~2.1.165 ## Breaking Changes -- Function `IntegrationRuntimeObjectMetadataClient.RefreshSender` return value(s) have been changed from `(*http.Response, error)` to `(IntegrationRuntimeObjectMetadataRefreshFuture, error)` -- Function `OperationsClient.GetAzureAsyncHeaderResult` return value(s) have been changed from `(SetObject, error)` to `(OperationResource, error)` -- Function `OperationsClient.GetAzureAsyncHeaderResultResponder` return value(s) have been changed from `(SetObject, error)` to `(OperationResource, error)` -- Function `NewReplicationLinkListResultPage` parameter(s) have been changed from `(func(context.Context, ReplicationLinkListResult) (ReplicationLinkListResult, error))` to `(ReplicationLinkListResult, func(context.Context, ReplicationLinkListResult) (ReplicationLinkListResult, error))` -- Function `PrivateLinkHubsClient.CreateOrUpdatePreparer` parameter(s) have been changed from `(context.Context, string, string, PrivateLinkHub)` to `(context.Context, PrivateLinkHub, string, string)` -- Function `NewWorkspaceInfoListResultPage` parameter(s) have been changed from `(func(context.Context, WorkspaceInfoListResult) (WorkspaceInfoListResult, error))` to `(WorkspaceInfoListResult, func(context.Context, WorkspaceInfoListResult) (WorkspaceInfoListResult, error))` -- Function `NewSQLPoolTableListResultPage` parameter(s) have been changed from `(func(context.Context, SQLPoolTableListResult) (SQLPoolTableListResult, error))` to `(SQLPoolTableListResult, func(context.Context, SQLPoolTableListResult) (SQLPoolTableListResult, error))` -- Function `PrivateLinkHubsClient.Update` parameter(s) have been changed from `(context.Context, string, string, PrivateLinkHubPatchInfo)` to `(context.Context, PrivateLinkHubPatchInfo, string, string)` -- Function `PrivateEndpointConnectionsClient.CreatePreparer` parameter(s) have been changed from `(context.Context, string, string, string)` to `(context.Context, PrivateEndpointConnection, string, string, string)` -- Function `PrivateEndpointConnectionsClient.Create` parameter(s) have been changed from `(context.Context, string, string, string)` to `(context.Context, PrivateEndpointConnection, string, string, string)` -- Function `NewIntegrationRuntimeListResponsePage` parameter(s) have been changed from `(func(context.Context, IntegrationRuntimeListResponse) (IntegrationRuntimeListResponse, error))` to `(IntegrationRuntimeListResponse, func(context.Context, IntegrationRuntimeListResponse) (IntegrationRuntimeListResponse, error))` -- Function `NewSQLPoolVulnerabilityAssessmentListResultPage` parameter(s) have been changed from `(func(context.Context, SQLPoolVulnerabilityAssessmentListResult) (SQLPoolVulnerabilityAssessmentListResult, error))` to `(SQLPoolVulnerabilityAssessmentListResult, func(context.Context, SQLPoolVulnerabilityAssessmentListResult) (SQLPoolVulnerabilityAssessmentListResult, error))` -- Function `PrivateLinkHubsClient.Delete` return value(s) have been changed from `(autorest.Response, error)` to `(PrivateLinkHubsDeleteFuture, error)` -- Function `PrivateLinkHubsClient.UpdatePreparer` parameter(s) have been changed from `(context.Context, string, string, PrivateLinkHubPatchInfo)` to `(context.Context, PrivateLinkHubPatchInfo, string, string)` -- Function `NewPrivateEndpointConnectionListPage` parameter(s) have been changed from `(func(context.Context, PrivateEndpointConnectionList) (PrivateEndpointConnectionList, error))` to `(PrivateEndpointConnectionList, func(context.Context, PrivateEndpointConnectionList) (PrivateEndpointConnectionList, error))` -- Function `NewSQLPoolColumnListResultPage` parameter(s) have been changed from `(func(context.Context, SQLPoolColumnListResult) (SQLPoolColumnListResult, error))` to `(SQLPoolColumnListResult, func(context.Context, SQLPoolColumnListResult) (SQLPoolColumnListResult, error))` -- Function `NewSQLPoolSchemaListResultPage` parameter(s) have been changed from `(func(context.Context, SQLPoolSchemaListResult) (SQLPoolSchemaListResult, error))` to `(SQLPoolSchemaListResult, func(context.Context, SQLPoolSchemaListResult) (SQLPoolSchemaListResult, error))` -- Function `NewSQLPoolInfoListResultPage` parameter(s) have been changed from `(func(context.Context, SQLPoolInfoListResult) (SQLPoolInfoListResult, error))` to `(SQLPoolInfoListResult, func(context.Context, SQLPoolInfoListResult) (SQLPoolInfoListResult, error))` -- Function `NewIPFirewallRuleInfoListResultPage` parameter(s) have been changed from `(func(context.Context, IPFirewallRuleInfoListResult) (IPFirewallRuleInfoListResult, error))` to `(IPFirewallRuleInfoListResult, func(context.Context, IPFirewallRuleInfoListResult) (IPFirewallRuleInfoListResult, error))` -- Function `NewSQLPoolBlobAuditingPolicySQLPoolOperationListResultPage` parameter(s) have been changed from `(func(context.Context, SQLPoolBlobAuditingPolicySQLPoolOperationListResult) (SQLPoolBlobAuditingPolicySQLPoolOperationListResult, error))` to `(SQLPoolBlobAuditingPolicySQLPoolOperationListResult, func(context.Context, SQLPoolBlobAuditingPolicySQLPoolOperationListResult) (SQLPoolBlobAuditingPolicySQLPoolOperationListResult, error))` -- Function `NewPrivateLinkHubInfoListResultPage` parameter(s) have been changed from `(func(context.Context, PrivateLinkHubInfoListResult) (PrivateLinkHubInfoListResult, error))` to `(PrivateLinkHubInfoListResult, func(context.Context, PrivateLinkHubInfoListResult) (PrivateLinkHubInfoListResult, error))` -- Function `NewRestorePointListResultPage` parameter(s) have been changed from `(func(context.Context, RestorePointListResult) (RestorePointListResult, error))` to `(RestorePointListResult, func(context.Context, RestorePointListResult) (RestorePointListResult, error))` -- Function `NewSQLPoolUsageListResultPage` parameter(s) have been changed from `(func(context.Context, SQLPoolUsageListResult) (SQLPoolUsageListResult, error))` to `(SQLPoolUsageListResult, func(context.Context, SQLPoolUsageListResult) (SQLPoolUsageListResult, error))` -- Function `IntegrationRuntimesClient.Stop` return value(s) have been changed from `(autorest.Response, error)` to `(IntegrationRuntimesStopFuture, error)` -- Function `NewSensitivityLabelListResultPage` parameter(s) have been changed from `(func(context.Context, SensitivityLabelListResult) (SensitivityLabelListResult, error))` to `(SensitivityLabelListResult, func(context.Context, SensitivityLabelListResult) (SensitivityLabelListResult, error))` -- Function `IntegrationRuntimeObjectMetadataClient.Refresh` return value(s) have been changed from `(SsisObjectMetadataStatusResponse, error)` to `(IntegrationRuntimeObjectMetadataRefreshFuture, error)` -- Function `IntegrationRuntimesClient.StopSender` return value(s) have been changed from `(*http.Response, error)` to `(IntegrationRuntimesStopFuture, error)` -- Function `PrivateLinkHubsClient.DeleteSender` return value(s) have been changed from `(*http.Response, error)` to `(PrivateLinkHubsDeleteFuture, error)` -- Function `NewBigDataPoolResourceInfoListResultPage` parameter(s) have been changed from `(func(context.Context, BigDataPoolResourceInfoListResult) (BigDataPoolResourceInfoListResult, error))` to `(BigDataPoolResourceInfoListResult, func(context.Context, BigDataPoolResourceInfoListResult) (BigDataPoolResourceInfoListResult, error))` -- Function `PrivateLinkHubsClient.CreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, PrivateLinkHub)` to `(context.Context, PrivateLinkHub, string, string)` -- Function `NewVulnerabilityAssessmentScanRecordListResultPage` parameter(s) have been changed from `(func(context.Context, VulnerabilityAssessmentScanRecordListResult) (VulnerabilityAssessmentScanRecordListResult, error))` to `(VulnerabilityAssessmentScanRecordListResult, func(context.Context, VulnerabilityAssessmentScanRecordListResult) (VulnerabilityAssessmentScanRecordListResult, error))` -- Function `IntegrationRuntimesClient.Start` return value(s) have been changed from `(IntegrationRuntimeStatusResponse, error)` to `(IntegrationRuntimesStartFuture, error)` -- Function `IntegrationRuntimesClient.StartSender` return value(s) have been changed from `(*http.Response, error)` to `(IntegrationRuntimesStartFuture, error)` -- Function `NewPrivateLinkResourceListResultPage` parameter(s) have been changed from `(func(context.Context, PrivateLinkResourceListResult) (PrivateLinkResourceListResult, error))` to `(PrivateLinkResourceListResult, func(context.Context, PrivateLinkResourceListResult) (PrivateLinkResourceListResult, error))` -- Type of `PrivateLinkServiceConnectionState.Status` has been changed from `Status` to `*string` -- Type of `SQLPoolResourceProperties.RestorePointInTime` has been changed from `*date.Time` to `*string` -- Type of `PrivateLinkHubProperties.ProvisioningState` has been changed from `ProvisioningState1` to `*string` -- Type of `ManagedIdentity.TenantID` has been changed from `*string` to `*uuid.UUID` -- Const `StatusApproved` has been removed -- Const `StatusDisconnected` has been removed -- Const `ProvisioningState1Failed` has been removed -- Const `StatusPending` has been removed -- Const `ProvisioningState1Succeeded` has been removed -- Const `StatusRejected` has been removed -- Function `PossibleStatusValues` has been removed -- Function `IntegrationRuntimeObjectMetadataClient.GetSender` has been removed -- Function `IntegrationRuntimeMonitoringDataClient.GetPreparer` has been removed -- Function `IntegrationRuntimeObjectMetadataClient.GetResponder` has been removed -- Function `SQLPoolsClient.Rename` has been removed -- Function `IntegrationRuntimeMonitoringDataClient.GetResponder` has been removed -- Function `IntegrationRuntimeObjectMetadataClient.GetPreparer` has been removed -- Function `SQLPoolsClient.RenameResponder` has been removed -- Function `SQLPoolsClient.RenamePreparer` has been removed -- Function `IntegrationRuntimeMonitoringDataClient.GetSender` has been removed -- Function `PossibleProvisioningState1Values` has been removed -- Function `SQLPoolsClient.RenameSender` has been removed -- Function `IntegrationRuntimeMonitoringDataClient.Get` has been removed -- Function `IntegrationRuntimeObjectMetadataClient.Get` has been removed -- Struct `ResourceMoveDefinition` has been removed +## Signature Changes -## New Content +### Funcs -- New const `Recommended` -- New const `NodeSizeXXXLarge` -- New const `Current` -- New const `DataMaskingFunctionSSN` -- New const `DataMaskingFunctionText` -- New const `DataMaskingFunctionCCN` -- New const `DataMaskingFunctionDefault` -- New const `DataMaskingFunctionEmail` -- New const `DataMaskingRuleStateEnabled` -- New const `DataMaskingStateDisabled` -- New const `DataMaskingRuleStateDisabled` -- New const `DataMaskingStateEnabled` -- New const `DataMaskingFunctionNumber` -- New function `ServerVulnerabilityAssessmentListResultIterator.NotDone() bool` -- New function `PrivateEndpointConnectionsPrivateLinkHubClient.ListResponder(*http.Response) (PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse, error)` -- New function `WorkspaceSQLAadAdminsClient.CreateOrUpdateResponder(*http.Response) (WorkspaceAadAdminInfo, error)` -- New function `ServerSecurityAlertPolicyListResultPage.Response() ServerSecurityAlertPolicyListResult` -- New function `NewWorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClientWithBaseURI(string, string) WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient` -- New function `*SQLPoolBlobAuditingPolicyListResultPage.NextWithContext(context.Context) error` -- New function `SQLPoolWorkloadClassifierClient.Delete(context.Context, string, string, string, string, string) (SQLPoolWorkloadClassifierDeleteFuture, error)` -- New function `ServerBlobAuditingPolicyListResultIterator.Response() ServerBlobAuditingPolicyListResult` -- New function `NewPrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponseIterator(PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponsePage) PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponseIterator` -- New function `WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient.GetSender(*http.Request) (*http.Response, error)` -- New function `WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.Get(context.Context, string, string) (ServerVulnerabilityAssessment, error)` -- New function `*ExtendedServerBlobAuditingPolicy.UnmarshalJSON([]byte) error` -- New function `NewExtendedSQLPoolBlobAuditingPoliciesClientWithBaseURI(string, string) ExtendedSQLPoolBlobAuditingPoliciesClient` -- New function `ExtendedSQLPoolBlobAuditingPoliciesClient.ListBySQLPoolSender(*http.Request) (*http.Response, error)` -- New function `KeysClient.ListByWorkspaceComplete(context.Context, string, string) (KeyInfoListResultIterator, error)` -- New function `SQLPoolBlobAuditingPoliciesClient.ListBySQLPoolSender(*http.Request) (*http.Response, error)` -- New function `PrivateEndpointConnectionsPrivateLinkHubClient.List(context.Context, string, string) (PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponsePage, error)` -- New function `ServerBlobAuditingPolicy.MarshalJSON() ([]byte, error)` -- New function `WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient.ListByWorkspaceSender(*http.Request) (*http.Response, error)` -- New function `DataMaskingRule.MarshalJSON() ([]byte, error)` -- New function `WorkspaceManagedSQLServerRecoverableSqlpoolsClient.ListSender(*http.Request) (*http.Response, error)` -- New function `SQLPoolTablesClient.GetSender(*http.Request) (*http.Response, error)` -- New function `SQLPoolTransparentDataEncryptionsClient.ListComplete(context.Context, string, string, string) (TransparentDataEncryptionListResultIterator, error)` -- New function `TransparentDataEncryptionListResultIterator.Response() TransparentDataEncryptionListResult` -- New function `WorkspaceSQLAadAdminsClient.Delete(context.Context, string, string) (WorkspaceSQLAadAdminsDeleteFuture, error)` -- New function `*RecoverableSQLPoolListResultPage.NextWithContext(context.Context) error` -- New function `ExtendedSQLPoolBlobAuditingPolicyListResultIterator.Response() ExtendedSQLPoolBlobAuditingPolicyListResult` -- New function `WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.CreateOrUpdatePreparer(context.Context, string, string, ServerVulnerabilityAssessment) (*http.Request, error)` -- New function `NewSQLPoolWorkloadGroupClient(string) SQLPoolWorkloadGroupClient` -- New function `DataMaskingPoliciesClient.CreateOrUpdateSender(*http.Request) (*http.Response, error)` -- New function `PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponseIterator.NotDone() bool` -- New function `*WorkloadGroupListResultPage.NextWithContext(context.Context) error` -- New function `WorkspaceManagedSQLServerSecurityAlertPolicyClient.List(context.Context, string, string) (ServerSecurityAlertPolicyListResultPage, error)` -- New function `ServerVulnerabilityAssessmentListResultPage.Response() ServerVulnerabilityAssessmentListResult` -- New function `*IntegrationRuntimeObjectMetadataRefreshFuture.Result(IntegrationRuntimeObjectMetadataClient) (SsisObjectMetadataStatusResponse, error)` -- New function `*SQLPoolWorkloadGroupDeleteFuture.Result(SQLPoolWorkloadGroupClient) (autorest.Response, error)` -- New function `SQLPoolGeoBackupPoliciesClient.ListPreparer(context.Context, string, string, string) (*http.Request, error)` -- New function `SQLPoolWorkloadGroupClient.GetResponder(*http.Response) (WorkloadGroup, error)` -- New function `KeysClient.Delete(context.Context, string, string, string) (Key, error)` -- New function `ServerBlobAuditingPolicyListResultPage.Values() []ServerBlobAuditingPolicy` -- New function `SQLPoolWorkloadGroupClient.GetSender(*http.Request) (*http.Response, error)` -- New function `PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponsePage.NotDone() bool` -- New function `NewKeysClientWithBaseURI(string, string) KeysClient` -- New function `RecoverableSQLPoolListResultPage.Values() []RecoverableSQLPool` -- New function `ExtendedSQLPoolBlobAuditingPoliciesClient.CreateOrUpdateResponder(*http.Response) (ExtendedSQLPoolBlobAuditingPolicy, error)` -- New function `WorkloadGroupListResultPage.Values() []WorkloadGroup` -- New function `SQLPoolRestorePointsClient.Delete(context.Context, string, string, string, string) (autorest.Response, error)` -- New function `*TransparentDataEncryptionListResultPage.Next() error` -- New function `KeyInfoListResultIterator.NotDone() bool` -- New function `WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient.CreateOrUpdatePreparer(context.Context, string, string, ExtendedServerBlobAuditingPolicy) (*http.Request, error)` -- New function `RecoverableSQLPool.MarshalJSON() ([]byte, error)` -- New function `NewSQLPoolBlobAuditingPolicyListResultIterator(SQLPoolBlobAuditingPolicyListResultPage) SQLPoolBlobAuditingPolicyListResultIterator` -- New function `*IntegrationRuntimesStopFuture.Result(IntegrationRuntimesClient) (autorest.Response, error)` -- New function `SQLPoolWorkloadGroupClient.Delete(context.Context, string, string, string, string) (SQLPoolWorkloadGroupDeleteFuture, error)` -- New function `ExtendedSQLPoolBlobAuditingPoliciesClient.CreateOrUpdateSender(*http.Request) (*http.Response, error)` -- New function `ServerSecurityAlertPolicyListResult.IsEmpty() bool` -- New function `ListSQLPoolSecurityAlertPoliciesIterator.NotDone() bool` -- New function `IntegrationRuntimesClient.EnableInteractiveQuery(context.Context, string, string, string) (IntegrationRuntimesEnableInteractiveQueryFuture, error)` -- New function `ExtendedSQLPoolBlobAuditingPolicyListResultPage.Values() []ExtendedSQLPoolBlobAuditingPolicy` -- New function `NewRestorableDroppedSQLPoolsClientWithBaseURI(string, string) RestorableDroppedSQLPoolsClient` -- New function `NewWorkspaceManagedSQLServerSecurityAlertPolicyClientWithBaseURI(string, string) WorkspaceManagedSQLServerSecurityAlertPolicyClient` -- New function `SQLPoolWorkloadClassifierClient.ListSender(*http.Request) (*http.Response, error)` -- New function `ServerBlobAuditingPolicyListResultIterator.NotDone() bool` -- New function `*ServerBlobAuditingPolicyListResultPage.NextWithContext(context.Context) error` -- New function `RestorableDroppedSQLPoolsClient.ListByWorkspaceResponder(*http.Response) (RestorableDroppedSQLPoolListResult, error)` -- New function `IntegrationRuntimesClient.DisableInteractiveQuerySender(*http.Request) (IntegrationRuntimesDisableInteractiveQueryFuture, error)` -- New function `DataMaskingRulesClient.ListBySQLPoolSender(*http.Request) (*http.Response, error)` -- New function `KeyInfoListResult.IsEmpty() bool` -- New function `DataMaskingRulesClient.CreateOrUpdate(context.Context, string, string, string, string, DataMaskingRule) (DataMaskingRule, error)` -- New function `*WorkloadClassifierListResultPage.NextWithContext(context.Context) error` -- New function `WorkspaceManagedSQLServerSecurityAlertPolicyClient.ListComplete(context.Context, string, string) (ServerSecurityAlertPolicyListResultIterator, error)` -- New function `SQLPoolSchemasClient.GetSender(*http.Request) (*http.Response, error)` -- New function `KeyInfoListResultPage.Response() KeyInfoListResult` -- New function `WorkspaceManagedSQLServerUsagesClient.ListResponder(*http.Response) (ServerUsageListResult, error)` -- New function `SQLPoolVulnerabilityAssessmentScansClient.GetResponder(*http.Response) (VulnerabilityAssessmentScanRecord, error)` -- New function `ExtendedSQLPoolBlobAuditingPoliciesClient.Get(context.Context, string, string, string) (ExtendedSQLPoolBlobAuditingPolicy, error)` -- New function `WorkspaceManagedSQLServerBlobAuditingPoliciesClient.GetSender(*http.Request) (*http.Response, error)` -- New function `ExtendedSQLPoolBlobAuditingPolicyListResultPage.NotDone() bool` -- New function `SQLPoolColumnsClient.Get(context.Context, string, string, string, string, string, string) (SQLPoolColumn, error)` -- New function `WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.List(context.Context, string, string) (ServerVulnerabilityAssessmentListResultPage, error)` -- New function `IntegrationRuntimeObjectMetadataClient.ListSender(*http.Request) (*http.Response, error)` -- New function `SQLPoolWorkloadGroupClient.CreateOrUpdateResponder(*http.Response) (WorkloadGroup, error)` -- New function `WorkloadGroupListResultIterator.NotDone() bool` -- New function `*ServerBlobAuditingPolicyListResultPage.Next() error` -- New function `KeysClient.GetResponder(*http.Response) (Key, error)` -- New function `IntegrationRuntimeMonitoringDataClient.ListSender(*http.Request) (*http.Response, error)` -- New function `SQLPoolVulnerabilityAssessmentRuleBaselinesClient.Get(context.Context, string, string, string, string, VulnerabilityAssessmentPolicyBaselineName) (SQLPoolVulnerabilityAssessmentRuleBaseline, error)` -- New function `KeysClient.CreateOrUpdateResponder(*http.Response) (Key, error)` -- New function `NewTransparentDataEncryptionListResultPage(TransparentDataEncryptionListResult, func(context.Context, TransparentDataEncryptionListResult) (TransparentDataEncryptionListResult, error)) TransparentDataEncryptionListResultPage` -- New function `NewServerVulnerabilityAssessmentListResultIterator(ServerVulnerabilityAssessmentListResultPage) ServerVulnerabilityAssessmentListResultIterator` -- New function `NewPrivateEndpointConnectionsPrivateLinkHubClientWithBaseURI(string, string) PrivateEndpointConnectionsPrivateLinkHubClient` -- New function `ExtendedSQLPoolBlobAuditingPoliciesClient.CreateOrUpdatePreparer(context.Context, string, string, string, ExtendedSQLPoolBlobAuditingPolicy) (*http.Request, error)` -- New function `SQLPoolWorkloadClassifierClient.GetPreparer(context.Context, string, string, string, string, string) (*http.Request, error)` -- New function `WorkspaceManagedSQLServerRecoverableSqlpoolsClient.ListPreparer(context.Context, string, string) (*http.Request, error)` -- New function `DataMaskingRulesClient.CreateOrUpdateSender(*http.Request) (*http.Response, error)` -- New function `WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.DeleteSender(*http.Request) (*http.Response, error)` -- New function `ServerSecurityAlertPolicyListResultIterator.Value() ServerSecurityAlertPolicy` -- New function `WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.GetPreparer(context.Context, string, string) (*http.Request, error)` -- New function `NewListSQLPoolSecurityAlertPoliciesIterator(ListSQLPoolSecurityAlertPoliciesPage) ListSQLPoolSecurityAlertPoliciesIterator` -- New function `*PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponsePage.Next() error` -- New function `ServerVulnerabilityAssessmentListResultPage.Values() []ServerVulnerabilityAssessment` -- New function `SQLPoolSecurityAlertPoliciesClient.List(context.Context, string, string, string) (ListSQLPoolSecurityAlertPoliciesPage, error)` -- New function `*Key.UnmarshalJSON([]byte) error` -- New function `NewServerVulnerabilityAssessmentListResultPage(ServerVulnerabilityAssessmentListResult, func(context.Context, ServerVulnerabilityAssessmentListResult) (ServerVulnerabilityAssessmentListResult, error)) ServerVulnerabilityAssessmentListResultPage` -- New function `*ExtendedSQLPoolBlobAuditingPolicyListResultPage.Next() error` -- New function `DataMaskingRulesClient.ListBySQLPoolPreparer(context.Context, string, string, string) (*http.Request, error)` -- New function `WorkloadClassifierListResultPage.Response() WorkloadClassifierListResult` -- New function `WorkspaceSQLAadAdminsClient.DeleteResponder(*http.Response) (autorest.Response, error)` -- New function `SQLPoolWorkloadClassifierClient.ListResponder(*http.Response) (WorkloadClassifierListResult, error)` -- New function `SQLPoolWorkloadClassifierClient.ListComplete(context.Context, string, string, string, string) (WorkloadClassifierListResultIterator, error)` -- New function `*RecoverableSQLPoolListResultPage.Next() error` -- New function `ServerSecurityAlertPolicy.MarshalJSON() ([]byte, error)` -- New function `WorkspaceManagedSQLServerUsagesClient.List(context.Context, string, string) (ServerUsageListResultPage, error)` -- New function `WorkspaceSQLAadAdminsClient.GetSender(*http.Request) (*http.Response, error)` -- New function `WorkspaceManagedSQLServerRecoverableSqlpoolsClient.List(context.Context, string, string) (RecoverableSQLPoolListResultPage, error)` -- New function `NewKeyInfoListResultPage(KeyInfoListResult, func(context.Context, KeyInfoListResult) (KeyInfoListResult, error)) KeyInfoListResultPage` -- New function `*WorkloadGroupListResultPage.Next() error` -- New function `*WorkloadClassifierListResultIterator.Next() error` -- New function `PrivateEndpointConnectionForPrivateLinkHub.MarshalJSON() ([]byte, error)` -- New function `ExtendedSQLPoolBlobAuditingPolicyListResultIterator.Value() ExtendedSQLPoolBlobAuditingPolicy` -- New function `SQLPoolWorkloadGroupClient.ListResponder(*http.Response) (WorkloadGroupListResult, error)` -- New function `*WorkloadClassifierListResultIterator.NextWithContext(context.Context) error` -- New function `NewExtendedSQLPoolBlobAuditingPoliciesClient(string) ExtendedSQLPoolBlobAuditingPoliciesClient` -- New function `PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponseIterator.Response() PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse` -- New function `SQLPoolGeoBackupPoliciesClient.List(context.Context, string, string, string) (GeoBackupPolicyListResult, error)` -- New function `NewServerUsageListResultPage(ServerUsageListResult, func(context.Context, ServerUsageListResult) (ServerUsageListResult, error)) ServerUsageListResultPage` -- New function `Key.MarshalJSON() ([]byte, error)` -- New function `SQLPoolSensitivityLabelsClient.GetPreparer(context.Context, string, string, string, string, string, string, SensitivityLabelSource) (*http.Request, error)` -- New function `SQLPoolVulnerabilityAssessmentRuleBaselinesClient.GetSender(*http.Request) (*http.Response, error)` -- New function `*ListSQLPoolSecurityAlertPoliciesIterator.Next() error` -- New function `IntegrationRuntimesClient.EnableInteractiveQueryPreparer(context.Context, string, string, string) (*http.Request, error)` -- New function `ServerVulnerabilityAssessmentListResult.IsEmpty() bool` -- New function `WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient.CreateOrUpdateSender(*http.Request) (WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesCreateOrUpdateFuture, error)` -- New function `WorkspaceManagedSQLServerRecoverableSqlpoolsClient.GetPreparer(context.Context, string, string, string) (*http.Request, error)` -- New function `RestorableDroppedSQLPoolsClient.ListByWorkspaceSender(*http.Request) (*http.Response, error)` -- New function `SQLPoolBlobAuditingPolicyListResultPage.Values() []SQLPoolBlobAuditingPolicy` -- New function `KeysClient.ListByWorkspace(context.Context, string, string) (KeyInfoListResultPage, error)` -- New function `ListSQLPoolSecurityAlertPoliciesIterator.Response() ListSQLPoolSecurityAlertPolicies` -- New function `ExtendedServerBlobAuditingPolicy.MarshalJSON() ([]byte, error)` -- New function `WorkloadClassifierListResultIterator.NotDone() bool` -- New function `KeysClient.DeleteSender(*http.Request) (*http.Response, error)` -- New function `*KeyInfoListResultIterator.Next() error` -- New function `KeysClient.Get(context.Context, string, string, string) (Key, error)` -- New function `NewWorkspaceSQLAadAdminsClient(string) WorkspaceSQLAadAdminsClient` -- New function `WorkspaceManagedSQLServerBlobAuditingPoliciesClient.CreateOrUpdateResponder(*http.Response) (ServerBlobAuditingPolicy, error)` -- New function `*ServerVulnerabilityAssessmentListResultPage.NextWithContext(context.Context) error` -- New function `WorkspaceManagedSQLServerBlobAuditingPoliciesClient.Get(context.Context, string, string) (ServerBlobAuditingPolicy, error)` -- New function `ExtendedSQLPoolBlobAuditingPoliciesClient.GetResponder(*http.Response) (ExtendedSQLPoolBlobAuditingPolicy, error)` -- New function `SQLPoolReplicationLinksClient.GetByNameResponder(*http.Response) (ReplicationLink, error)` -- New function `ExtendedSQLPoolBlobAuditingPoliciesClient.ListBySQLPool(context.Context, string, string, string) (ExtendedSQLPoolBlobAuditingPolicyListResultPage, error)` -- New function `*ExtendedSQLPoolBlobAuditingPolicy.UnmarshalJSON([]byte) error` -- New function `DataMaskingPoliciesClient.CreateOrUpdateResponder(*http.Response) (DataMaskingPolicy, error)` -- New function `ExtendedSQLPoolBlobAuditingPoliciesClient.ListBySQLPoolResponder(*http.Response) (ExtendedSQLPoolBlobAuditingPolicyListResult, error)` -- New function `DataMaskingRulesClient.ListBySQLPoolResponder(*http.Response) (DataMaskingRuleListResult, error)` -- New function `ServerSecurityAlertPolicyListResultIterator.Response() ServerSecurityAlertPolicyListResult` -- New function `SQLPoolWorkloadClassifierClient.DeleteResponder(*http.Response) (autorest.Response, error)` -- New function `ExtendedSQLPoolBlobAuditingPoliciesClient.GetSender(*http.Request) (*http.Response, error)` -- New function `WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient.CreateOrUpdate(context.Context, string, string, ExtendedServerBlobAuditingPolicy) (WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesCreateOrUpdateFuture, error)` -- New function `RecoverableSQLPoolListResultIterator.Value() RecoverableSQLPool` -- New function `WorkloadGroupListResult.IsEmpty() bool` -- New function `*WorkloadGroupListResultIterator.Next() error` -- New function `*ServerVulnerabilityAssessmentListResultIterator.Next() error` -- New function `*PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponsePage.NextWithContext(context.Context) error` -- New function `SQLPoolWorkloadClassifierClient.DeletePreparer(context.Context, string, string, string, string, string) (*http.Request, error)` -- New function `DataMaskingRulesClient.CreateOrUpdateResponder(*http.Response) (DataMaskingRule, error)` -- New function `WorkspaceManagedSQLServerSecurityAlertPolicyClient.CreateOrUpdate(context.Context, string, string, ServerSecurityAlertPolicy) (WorkspaceManagedSQLServerSecurityAlertPolicyCreateOrUpdateFuture, error)` -- New function `WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient.ListByWorkspaceComplete(context.Context, string, string) (ExtendedServerBlobAuditingPolicyListResultIterator, error)` -- New function `SQLPoolBlobAuditingPoliciesClient.ListBySQLPool(context.Context, string, string, string) (SQLPoolBlobAuditingPolicyListResultPage, error)` -- New function `NewWorkloadGroupListResultIterator(WorkloadGroupListResultPage) WorkloadGroupListResultIterator` -- New function `*WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesCreateOrUpdateFuture.Result(WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient) (ExtendedServerBlobAuditingPolicy, error)` -- New function `IntegrationRuntimeObjectMetadataClient.ListResponder(*http.Response) (SsisObjectMetadataListResponse, error)` -- New function `DataMaskingPoliciesClient.Get(context.Context, string, string, string) (DataMaskingPolicy, error)` -- New function `NewWorkspaceManagedSQLServerBlobAuditingPoliciesClient(string) WorkspaceManagedSQLServerBlobAuditingPoliciesClient` -- New function `KeyInfoListResultIterator.Response() KeyInfoListResult` -- New function `SQLPoolRestorePointsClient.DeleteResponder(*http.Response) (autorest.Response, error)` -- New function `WorkspaceSQLAadAdminsClient.CreateOrUpdate(context.Context, string, string, WorkspaceAadAdminInfo) (WorkspaceSQLAadAdminsCreateOrUpdateFuture, error)` -- New function `NewExtendedSQLPoolBlobAuditingPolicyListResultPage(ExtendedSQLPoolBlobAuditingPolicyListResult, func(context.Context, ExtendedSQLPoolBlobAuditingPolicyListResult) (ExtendedSQLPoolBlobAuditingPolicyListResult, error)) ExtendedSQLPoolBlobAuditingPolicyListResultPage` -- New function `SQLPoolSchemasClient.GetResponder(*http.Response) (SQLPoolSchema, error)` -- New function `NewWorkloadClassifierListResultIterator(WorkloadClassifierListResultPage) WorkloadClassifierListResultIterator` -- New function `NewWorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient(string) WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient` -- New function `ServerBlobAuditingPolicyListResultPage.NotDone() bool` -- New function `ServerBlobAuditingPolicyListResultPage.Response() ServerBlobAuditingPolicyListResult` -- New function `RestorableDroppedSQLPoolsClient.Get(context.Context, string, string, string) (RestorableDroppedSQLPool, error)` -- New function `DataMaskingRulesClient.CreateOrUpdatePreparer(context.Context, string, string, string, string, DataMaskingRule) (*http.Request, error)` -- New function `PrivateLinkHubProperties.MarshalJSON() ([]byte, error)` -- New function `PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponsePage.Values() []PrivateEndpointConnectionForPrivateLinkHub` -- New function `WorkspaceManagedSQLServerBlobAuditingPoliciesClient.ListByWorkspacePreparer(context.Context, string, string) (*http.Request, error)` -- New function `PossibleDataMaskingRuleStateValues() []DataMaskingRuleState` -- New function `WorkspaceManagedSQLServerRecoverableSqlpoolsClient.GetResponder(*http.Response) (RecoverableSQLPool, error)` -- New function `WorkloadGroupListResultIterator.Response() WorkloadGroupListResult` -- New function `KeysClient.CreateOrUpdatePreparer(context.Context, string, string, string, Key) (*http.Request, error)` -- New function `*ServerSecurityAlertPolicyListResultIterator.Next() error` -- New function `PrivateEndpointConnectionForPrivateLinkHubBasic.MarshalJSON() ([]byte, error)` -- New function `NewExtendedSQLPoolBlobAuditingPolicyListResultIterator(ExtendedSQLPoolBlobAuditingPolicyListResultPage) ExtendedSQLPoolBlobAuditingPolicyListResultIterator` -- New function `*ServerVulnerabilityAssessmentListResultPage.Next() error` -- New function `SQLPoolBlobAuditingPolicyListResultPage.Response() SQLPoolBlobAuditingPolicyListResult` -- New function `NewSQLPoolColumnsClientWithBaseURI(string, string) SQLPoolColumnsClient` -- New function `SQLPoolWorkloadGroupClient.CreateOrUpdateSender(*http.Request) (SQLPoolWorkloadGroupCreateOrUpdateFuture, error)` -- New function `SQLPoolRestorePointsClient.GetResponder(*http.Response) (RestorePoint, error)` -- New function `WorkloadGroup.MarshalJSON() ([]byte, error)` -- New function `SQLPoolBlobAuditingPoliciesClient.ListBySQLPoolComplete(context.Context, string, string, string) (SQLPoolBlobAuditingPolicyListResultIterator, error)` -- New function `SQLPoolWorkloadGroupClient.ListComplete(context.Context, string, string, string) (WorkloadGroupListResultIterator, error)` -- New function `SQLPoolBlobAuditingPolicyListResultIterator.Response() SQLPoolBlobAuditingPolicyListResult` -- New function `RestorableDroppedSQLPoolsClient.ListByWorkspace(context.Context, string, string) (RestorableDroppedSQLPoolListResult, error)` -- New function `DataMaskingPolicyProperties.MarshalJSON() ([]byte, error)` -- New function `RecoverableSQLPoolListResultIterator.Response() RecoverableSQLPoolListResult` -- New function `WorkspaceSQLAadAdminsClient.Get(context.Context, string, string) (WorkspaceAadAdminInfo, error)` -- New function `WorkspaceSQLAadAdminsClient.DeleteSender(*http.Request) (WorkspaceSQLAadAdminsDeleteFuture, error)` -- New function `WorkspaceManagedSQLServerSecurityAlertPolicyClient.ListSender(*http.Request) (*http.Response, error)` -- New function `SQLPoolWorkloadGroupClient.CreateOrUpdate(context.Context, string, string, string, string, WorkloadGroup) (SQLPoolWorkloadGroupCreateOrUpdateFuture, error)` -- New function `SQLPoolWorkloadClassifierClient.CreateOrUpdateResponder(*http.Response) (WorkloadClassifier, error)` -- New function `PrivateEndpointConnectionsPrivateLinkHubClient.ListPreparer(context.Context, string, string) (*http.Request, error)` -- New function `SQLPoolSecurityAlertPoliciesClient.ListSender(*http.Request) (*http.Response, error)` -- New function `SQLPoolWorkloadClassifierClient.ListPreparer(context.Context, string, string, string, string) (*http.Request, error)` -- New function `ExtendedSQLPoolBlobAuditingPoliciesClient.ListBySQLPoolPreparer(context.Context, string, string, string) (*http.Request, error)` -- New function `WorkspaceManagedSQLServerSecurityAlertPolicyClient.GetPreparer(context.Context, string, string) (*http.Request, error)` -- New function `*SQLPoolWorkloadGroupCreateOrUpdateFuture.Result(SQLPoolWorkloadGroupClient) (WorkloadGroup, error)` -- New function `SQLPoolColumnsClient.GetPreparer(context.Context, string, string, string, string, string, string) (*http.Request, error)` -- New function `NewDataMaskingPoliciesClientWithBaseURI(string, string) DataMaskingPoliciesClient` -- New function `SQLPoolVulnerabilityAssessmentRuleBaselinesClient.GetPreparer(context.Context, string, string, string, string, VulnerabilityAssessmentPolicyBaselineName) (*http.Request, error)` -- New function `WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient.ListByWorkspaceResponder(*http.Response) (ExtendedServerBlobAuditingPolicyListResult, error)` -- New function `NewServerSecurityAlertPolicyListResultPage(ServerSecurityAlertPolicyListResult, func(context.Context, ServerSecurityAlertPolicyListResult) (ServerSecurityAlertPolicyListResult, error)) ServerSecurityAlertPolicyListResultPage` -- New function `SQLPoolSchemasClient.GetPreparer(context.Context, string, string, string, string) (*http.Request, error)` -- New function `IntegrationRuntimeObjectMetadataClient.ListPreparer(context.Context, string, string, string, *GetSsisObjectMetadataRequest) (*http.Request, error)` -- New function `ExtendedServerBlobAuditingPolicyListResultIterator.NotDone() bool` -- New function `WorkloadGroupListResultPage.NotDone() bool` -- New function `SQLPoolRestorePointsClient.GetPreparer(context.Context, string, string, string, string) (*http.Request, error)` -- New function `DataMaskingRuleProperties.MarshalJSON() ([]byte, error)` -- New function `NewPrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponsePage(PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse, func(context.Context, PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse) (PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse, error)) PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponsePage` -- New function `DataMaskingPoliciesClient.GetResponder(*http.Response) (DataMaskingPolicy, error)` -- New function `NewDataMaskingRulesClient(string) DataMaskingRulesClient` -- New function `ExtendedServerBlobAuditingPolicyListResultIterator.Value() ExtendedServerBlobAuditingPolicy` -- New function `SQLPoolBlobAuditingPolicyListResult.IsEmpty() bool` -- New function `*SQLPoolBlobAuditingPolicyListResultIterator.NextWithContext(context.Context) error` -- New function `WorkspaceManagedSQLServerSecurityAlertPolicyClient.Get(context.Context, string, string) (ServerSecurityAlertPolicy, error)` -- New function `NewSQLPoolWorkloadClassifierClient(string) SQLPoolWorkloadClassifierClient` -- New function `SQLPoolWorkloadGroupClient.DeletePreparer(context.Context, string, string, string, string) (*http.Request, error)` -- New function `SQLPoolTablesClient.GetResponder(*http.Response) (SQLPoolTable, error)` -- New function `TransparentDataEncryptionListResultPage.Response() TransparentDataEncryptionListResult` -- New function `WorkspaceSQLAadAdminsClient.GetPreparer(context.Context, string, string) (*http.Request, error)` -- New function `WorkspaceManagedSQLServerSecurityAlertPolicyClient.ListPreparer(context.Context, string, string) (*http.Request, error)` -- New function `SQLPoolReplicationLinksClient.GetByNameSender(*http.Request) (*http.Response, error)` -- New function `SQLPoolWorkloadGroupClient.CreateOrUpdatePreparer(context.Context, string, string, string, string, WorkloadGroup) (*http.Request, error)` -- New function `RestorableDroppedSQLPoolsClient.GetResponder(*http.Response) (RestorableDroppedSQLPool, error)` -- New function `WorkspaceManagedSQLServerSecurityAlertPolicyClient.CreateOrUpdatePreparer(context.Context, string, string, ServerSecurityAlertPolicy) (*http.Request, error)` -- New function `SQLPoolWorkloadClassifierClient.CreateOrUpdate(context.Context, string, string, string, string, string, WorkloadClassifier) (SQLPoolWorkloadClassifierCreateOrUpdateFuture, error)` -- New function `ServerUsageListResultPage.Values() []ServerUsage` -- New function `SQLPoolTablesClient.GetPreparer(context.Context, string, string, string, string, string) (*http.Request, error)` -- New function `WorkspaceManagedSQLServerRecoverableSqlpoolsClient.Get(context.Context, string, string, string) (RecoverableSQLPool, error)` -- New function `*KeyInfoListResultPage.NextWithContext(context.Context) error` -- New function `SQLPoolWorkloadClassifierClient.List(context.Context, string, string, string, string) (WorkloadClassifierListResultPage, error)` -- New function `*ExtendedServerBlobAuditingPolicyListResultIterator.Next() error` -- New function `ServerVulnerabilityAssessmentListResultIterator.Response() ServerVulnerabilityAssessmentListResult` -- New function `NewSQLPoolWorkloadClassifierClientWithBaseURI(string, string) SQLPoolWorkloadClassifierClient` -- New function `*WorkloadClassifierListResultPage.Next() error` -- New function `WorkspaceManagedSQLServerBlobAuditingPoliciesClient.CreateOrUpdatePreparer(context.Context, string, string, ServerBlobAuditingPolicy) (*http.Request, error)` -- New function `*ListSQLPoolSecurityAlertPoliciesPage.NextWithContext(context.Context) error` -- New function `*ServerUsageListResultPage.NextWithContext(context.Context) error` -- New function `*ExtendedServerBlobAuditingPolicyListResultPage.Next() error` -- New function `*ServerBlobAuditingPolicyListResultIterator.Next() error` -- New function `WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.GetResponder(*http.Response) (ServerVulnerabilityAssessment, error)` -- New function `*ExtendedServerBlobAuditingPolicyListResultIterator.NextWithContext(context.Context) error` -- New function `PrivateEndpointConnectionsPrivateLinkHubClient.ListComplete(context.Context, string, string) (PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponseIterator, error)` -- New function `SQLPoolTablesClient.Get(context.Context, string, string, string, string, string) (SQLPoolTable, error)` -- New function `*ServerVulnerabilityAssessment.UnmarshalJSON([]byte) error` -- New function `NewRecoverableSQLPoolListResultPage(RecoverableSQLPoolListResult, func(context.Context, RecoverableSQLPoolListResult) (RecoverableSQLPoolListResult, error)) RecoverableSQLPoolListResultPage` -- New function `ExtendedSQLPoolBlobAuditingPolicyListResultPage.Response() ExtendedSQLPoolBlobAuditingPolicyListResult` -- New function `SQLPoolBlobAuditingPoliciesClient.ListBySQLPoolPreparer(context.Context, string, string, string) (*http.Request, error)` -- New function `*ServerVulnerabilityAssessmentListResultIterator.NextWithContext(context.Context) error` -- New function `NewRecoverableSQLPoolListResultIterator(RecoverableSQLPoolListResultPage) RecoverableSQLPoolListResultIterator` -- New function `IntegrationRuntimesClient.EnableInteractiveQuerySender(*http.Request) (IntegrationRuntimesEnableInteractiveQueryFuture, error)` -- New function `WorkspaceSQLAadAdminsClient.GetResponder(*http.Response) (WorkspaceAadAdminInfo, error)` -- New function `NewWorkloadClassifierListResultPage(WorkloadClassifierListResult, func(context.Context, WorkloadClassifierListResult) (WorkloadClassifierListResult, error)) WorkloadClassifierListResultPage` -- New function `SQLPoolSensitivityLabelsClient.GetSender(*http.Request) (*http.Response, error)` -- New function `SQLPoolWorkloadClassifierClient.Get(context.Context, string, string, string, string, string) (WorkloadClassifier, error)` -- New function `ExtendedSQLPoolBlobAuditingPolicy.MarshalJSON() ([]byte, error)` -- New function `*RecoverableSQLPool.UnmarshalJSON([]byte) error` -- New function `*ExtendedServerBlobAuditingPolicyListResultPage.NextWithContext(context.Context) error` -- New function `*ServerSecurityAlertPolicyListResultPage.Next() error` -- New function `DataMaskingPoliciesClient.CreateOrUpdatePreparer(context.Context, string, string, string, DataMaskingPolicy) (*http.Request, error)` -- New function `DataMaskingPolicy.MarshalJSON() ([]byte, error)` -- New function `WorkspaceSQLAadAdminsClient.CreateOrUpdateSender(*http.Request) (WorkspaceSQLAadAdminsCreateOrUpdateFuture, error)` -- New function `WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.GetSender(*http.Request) (*http.Response, error)` -- New function `NewKeysClient(string) KeysClient` -- New function `SQLPoolBlobAuditingPolicyListResultIterator.NotDone() bool` -- New function `SQLPoolBlobAuditingPolicyListResultIterator.Value() SQLPoolBlobAuditingPolicy` -- New function `*ExtendedSQLPoolBlobAuditingPolicyListResultPage.NextWithContext(context.Context) error` -- New function `*WorkspaceManagedSQLServerSecurityAlertPolicyCreateOrUpdateFuture.Result(WorkspaceManagedSQLServerSecurityAlertPolicyClient) (ServerSecurityAlertPolicy, error)` -- New function `NewDataMaskingRulesClientWithBaseURI(string, string) DataMaskingRulesClient` -- New function `SQLPoolTransparentDataEncryptionsClient.List(context.Context, string, string, string) (TransparentDataEncryptionListResultPage, error)` -- New function `KeysClient.ListByWorkspaceSender(*http.Request) (*http.Response, error)` -- New function `*WorkloadGroupListResultIterator.NextWithContext(context.Context) error` -- New function `NewTransparentDataEncryptionListResultIterator(TransparentDataEncryptionListResultPage) TransparentDataEncryptionListResultIterator` -- New function `ServerUsageListResultPage.NotDone() bool` -- New function `WorkspaceManagedSQLServerUsagesClient.ListSender(*http.Request) (*http.Response, error)` -- New function `NewServerSecurityAlertPolicyListResultIterator(ServerSecurityAlertPolicyListResultPage) ServerSecurityAlertPolicyListResultIterator` -- New function `TransparentDataEncryptionListResultIterator.Value() TransparentDataEncryption` -- New function `RecoverableSQLPoolListResultPage.Response() RecoverableSQLPoolListResult` -- New function `PossibleSensitivityLabelSourceValues() []SensitivityLabelSource` -- New function `WorkloadGroupListResultIterator.Value() WorkloadGroup` -- New function `WorkspaceManagedSQLServerSecurityAlertPolicyClient.GetSender(*http.Request) (*http.Response, error)` -- New function `NewWorkspaceManagedSQLServerRecoverableSqlpoolsClientWithBaseURI(string, string) WorkspaceManagedSQLServerRecoverableSqlpoolsClient` -- New function `ServerUsageListResultPage.Response() ServerUsageListResult` -- New function `TransparentDataEncryptionListResultPage.NotDone() bool` -- New function `SQLPoolVulnerabilityAssessmentScansClient.GetSender(*http.Request) (*http.Response, error)` -- New function `IntegrationRuntimeObjectMetadataClient.List(context.Context, string, string, string, *GetSsisObjectMetadataRequest) (SsisObjectMetadataListResponse, error)` -- New function `*KeyInfoListResultPage.Next() error` -- New function `NewWorkspaceManagedSQLServerRecoverableSqlpoolsClient(string) WorkspaceManagedSQLServerRecoverableSqlpoolsClient` -- New function `NewServerBlobAuditingPolicyListResultIterator(ServerBlobAuditingPolicyListResultPage) ServerBlobAuditingPolicyListResultIterator` -- New function `SQLPoolRestorePointsClient.GetSender(*http.Request) (*http.Response, error)` -- New function `*ExtendedSQLPoolBlobAuditingPolicyListResultIterator.Next() error` -- New function `ListSQLPoolSecurityAlertPolicies.IsEmpty() bool` -- New function `WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.CreateOrUpdateResponder(*http.Response) (ServerVulnerabilityAssessment, error)` -- New function `SQLPoolGeoBackupPoliciesClient.ListResponder(*http.Response) (GeoBackupPolicyListResult, error)` -- New function `SQLPoolReplicationLinksClient.GetByName(context.Context, string, string, string, string) (ReplicationLink, error)` -- New function `WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.ListPreparer(context.Context, string, string) (*http.Request, error)` -- New function `KeysClient.ListByWorkspaceResponder(*http.Response) (KeyInfoListResult, error)` -- New function `WorkspaceManagedSQLServerSecurityAlertPolicyClient.GetResponder(*http.Response) (ServerSecurityAlertPolicy, error)` -- New function `NewWorkspaceManagedSQLServerBlobAuditingPoliciesClientWithBaseURI(string, string) WorkspaceManagedSQLServerBlobAuditingPoliciesClient` -- New function `WorkspaceManagedSQLServerBlobAuditingPoliciesClient.ListByWorkspaceComplete(context.Context, string, string) (ServerBlobAuditingPolicyListResultIterator, error)` -- New function `SQLPoolSecurityAlertPoliciesClient.ListResponder(*http.Response) (ListSQLPoolSecurityAlertPolicies, error)` -- New function `*ExtendedSQLPoolBlobAuditingPolicyListResultIterator.NextWithContext(context.Context) error` -- New function `SQLPoolBlobAuditingPoliciesClient.ListBySQLPoolResponder(*http.Response) (SQLPoolBlobAuditingPolicyListResult, error)` -- New function `WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.DeleteResponder(*http.Response) (autorest.Response, error)` -- New function `SQLPoolSensitivityLabelsClient.GetResponder(*http.Response) (SensitivityLabel, error)` -- New function `WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.ListSender(*http.Request) (*http.Response, error)` -- New function `NewWorkspaceManagedSQLServerUsagesClient(string) WorkspaceManagedSQLServerUsagesClient` -- New function `KeysClient.ListByWorkspacePreparer(context.Context, string, string) (*http.Request, error)` -- New function `*ServerUsageListResultPage.Next() error` -- New function `*SQLPoolBlobAuditingPolicyListResultIterator.Next() error` -- New function `WorkspaceSQLAadAdminsClient.DeletePreparer(context.Context, string, string) (*http.Request, error)` -- New function `SQLPoolRestorePointsClient.Get(context.Context, string, string, string, string) (RestorePoint, error)` -- New function `SQLPoolWorkloadGroupClient.DeleteResponder(*http.Response) (autorest.Response, error)` -- New function `NewExtendedServerBlobAuditingPolicyListResultPage(ExtendedServerBlobAuditingPolicyListResult, func(context.Context, ExtendedServerBlobAuditingPolicyListResult) (ExtendedServerBlobAuditingPolicyListResult, error)) ExtendedServerBlobAuditingPolicyListResultPage` -- New function `SQLPoolTransparentDataEncryptionsClient.ListPreparer(context.Context, string, string, string) (*http.Request, error)` -- New function `SQLPoolTransparentDataEncryptionsClient.ListResponder(*http.Response) (TransparentDataEncryptionListResult, error)` -- New function `CustomerManagedKeyDetails.MarshalJSON() ([]byte, error)` -- New function `NewServerBlobAuditingPolicyListResultPage(ServerBlobAuditingPolicyListResult, func(context.Context, ServerBlobAuditingPolicyListResult) (ServerBlobAuditingPolicyListResult, error)) ServerBlobAuditingPolicyListResultPage` -- New function `IntegrationRuntimeMonitoringDataClient.List(context.Context, string, string, string) (IntegrationRuntimeMonitoringData, error)` -- New function `SQLPoolRestorePointsClient.DeleteSender(*http.Request) (*http.Response, error)` -- New function `ExtendedSQLPoolBlobAuditingPoliciesClient.ListBySQLPoolComplete(context.Context, string, string, string) (ExtendedSQLPoolBlobAuditingPolicyListResultIterator, error)` -- New function `SQLPoolBlobAuditingPolicyListResultPage.NotDone() bool` -- New function `ServerUsageListResultIterator.Response() ServerUsageListResult` -- New function `IntegrationRuntimesClient.EnableInteractiveQueryResponder(*http.Response) (autorest.Response, error)` -- New function `*WorkspaceSQLAadAdminsDeleteFuture.Result(WorkspaceSQLAadAdminsClient) (autorest.Response, error)` -- New function `*PrivateLinkHubsDeleteFuture.Result(PrivateLinkHubsClient) (autorest.Response, error)` -- New function `*SQLPoolWorkloadClassifierDeleteFuture.Result(SQLPoolWorkloadClassifierClient) (autorest.Response, error)` -- New function `PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponseIterator.Value() PrivateEndpointConnectionForPrivateLinkHub` -- New function `WorkloadClassifierListResultIterator.Response() WorkloadClassifierListResult` -- New function `SQLPoolColumnsClient.GetResponder(*http.Response) (SQLPoolColumn, error)` -- New function `WorkspaceManagedSQLServerUsagesClient.ListPreparer(context.Context, string, string) (*http.Request, error)` -- New function `ServerSecurityAlertPolicyListResultIterator.NotDone() bool` -- New function `NewSQLPoolColumnsClient(string) SQLPoolColumnsClient` -- New function `WorkloadClassifier.MarshalJSON() ([]byte, error)` -- New function `SQLPoolWorkloadGroupClient.List(context.Context, string, string, string) (WorkloadGroupListResultPage, error)` -- New function `NewWorkspaceManagedSQLServerVulnerabilityAssessmentsClient(string) WorkspaceManagedSQLServerVulnerabilityAssessmentsClient` -- New function `SQLPoolSensitivityLabelsClient.Get(context.Context, string, string, string, string, string, string, SensitivityLabelSource) (SensitivityLabel, error)` -- New function `WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.ListResponder(*http.Response) (ServerVulnerabilityAssessmentListResult, error)` -- New function `WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.CreateOrUpdate(context.Context, string, string, ServerVulnerabilityAssessment) (ServerVulnerabilityAssessment, error)` -- New function `DataMaskingPoliciesClient.GetPreparer(context.Context, string, string, string) (*http.Request, error)` -- New function `ExtendedServerBlobAuditingPolicyListResultIterator.Response() ExtendedServerBlobAuditingPolicyListResult` -- New function `WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.CreateOrUpdateSender(*http.Request) (*http.Response, error)` -- New function `NewSQLPoolBlobAuditingPolicyListResultPage(SQLPoolBlobAuditingPolicyListResult, func(context.Context, SQLPoolBlobAuditingPolicyListResult) (SQLPoolBlobAuditingPolicyListResult, error)) SQLPoolBlobAuditingPolicyListResultPage` -- New function `WorkloadClassifierListResultPage.Values() []WorkloadClassifier` -- New function `ExtendedSQLPoolBlobAuditingPoliciesClient.GetPreparer(context.Context, string, string, string) (*http.Request, error)` -- New function `ServerUsageListResultIterator.Value() ServerUsage` -- New function `SQLPoolVulnerabilityAssessmentScansClient.Get(context.Context, string, string, string, string) (VulnerabilityAssessmentScanRecord, error)` -- New function `WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient.GetResponder(*http.Response) (ExtendedServerBlobAuditingPolicy, error)` -- New function `KeyInfoListResultIterator.Value() Key` -- New function `SQLPoolWorkloadGroupClient.ListPreparer(context.Context, string, string, string) (*http.Request, error)` -- New function `SQLPoolSecurityAlertPoliciesClient.ListPreparer(context.Context, string, string, string) (*http.Request, error)` -- New function `ServerUsageListResultIterator.NotDone() bool` -- New function `SQLPoolSchemasClient.Get(context.Context, string, string, string, string) (SQLPoolSchema, error)` -- New function `*ServerBlobAuditingPolicy.UnmarshalJSON([]byte) error` -- New function `*WorkspaceManagedSQLServerBlobAuditingPoliciesCreateOrUpdateFuture.Result(WorkspaceManagedSQLServerBlobAuditingPoliciesClient) (ServerBlobAuditingPolicy, error)` -- New function `*TransparentDataEncryptionListResultIterator.Next() error` -- New function `WorkspaceManagedSQLServerSecurityAlertPolicyClient.ListResponder(*http.Response) (ServerSecurityAlertPolicyListResult, error)` -- New function `PossibleDataMaskingFunctionValues() []DataMaskingFunction` -- New function `EncryptionDetails.MarshalJSON() ([]byte, error)` -- New function `WorkspaceManagedSQLServerSecurityAlertPolicyClient.CreateOrUpdateResponder(*http.Response) (ServerSecurityAlertPolicy, error)` -- New function `KeysClient.GetPreparer(context.Context, string, string, string) (*http.Request, error)` -- New function `SQLPoolWorkloadGroupClient.GetPreparer(context.Context, string, string, string, string) (*http.Request, error)` -- New function `ExtendedServerBlobAuditingPolicyListResultPage.Response() ExtendedServerBlobAuditingPolicyListResult` -- New function `WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient.CreateOrUpdateResponder(*http.Response) (ExtendedServerBlobAuditingPolicy, error)` -- New function `*RestorableDroppedSQLPool.UnmarshalJSON([]byte) error` -- New function `WorkloadClassifierListResult.IsEmpty() bool` -- New function `NewKeyInfoListResultIterator(KeyInfoListResultPage) KeyInfoListResultIterator` -- New function `ListSQLPoolSecurityAlertPoliciesPage.Response() ListSQLPoolSecurityAlertPolicies` -- New function `*SQLPoolBlobAuditingPolicyListResultPage.Next() error` -- New function `NewSQLPoolWorkloadGroupClientWithBaseURI(string, string) SQLPoolWorkloadGroupClient` -- New function `KeysClient.DeletePreparer(context.Context, string, string, string) (*http.Request, error)` -- New function `PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponsePage.Response() PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse` -- New function `NewWorkloadGroupListResultPage(WorkloadGroupListResult, func(context.Context, WorkloadGroupListResult) (WorkloadGroupListResult, error)) WorkloadGroupListResultPage` -- New function `SQLPoolWorkloadGroupClient.DeleteSender(*http.Request) (SQLPoolWorkloadGroupDeleteFuture, error)` -- New function `SQLPoolTransparentDataEncryptionsClient.ListSender(*http.Request) (*http.Response, error)` -- New function `RestorableDroppedSQLPoolsClient.ListByWorkspacePreparer(context.Context, string, string) (*http.Request, error)` -- New function `*TransparentDataEncryptionListResultIterator.NextWithContext(context.Context) error` -- New function `KeysClient.CreateOrUpdate(context.Context, string, string, string, Key) (Key, error)` -- New function `TransparentDataEncryptionListResultPage.Values() []TransparentDataEncryption` -- New function `SQLPoolVulnerabilityAssessmentRuleBaselinesClient.GetResponder(*http.Response) (SQLPoolVulnerabilityAssessmentRuleBaseline, error)` -- New function `IntegrationRuntimesClient.DisableInteractiveQueryPreparer(context.Context, string, string, string) (*http.Request, error)` -- New function `ListSQLPoolSecurityAlertPoliciesPage.Values() []SQLPoolSecurityAlertPolicy` -- New function `ExtendedSQLPoolBlobAuditingPolicyListResult.IsEmpty() bool` -- New function `*PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponseIterator.Next() error` -- New function `ServerVulnerabilityAssessmentListResultIterator.Value() ServerVulnerabilityAssessment` -- New function `ServerBlobAuditingPolicyListResult.IsEmpty() bool` -- New function `NewDataMaskingPoliciesClient(string) DataMaskingPoliciesClient` -- New function `ServerVulnerabilityAssessment.MarshalJSON() ([]byte, error)` -- New function `SQLPoolWorkloadClassifierClient.CreateOrUpdateSender(*http.Request) (SQLPoolWorkloadClassifierCreateOrUpdateFuture, error)` -- New function `WorkspaceManagedSQLServerBlobAuditingPoliciesClient.ListByWorkspace(context.Context, string, string) (ServerBlobAuditingPolicyListResultPage, error)` -- New function `NewServerUsageListResultIterator(ServerUsageListResultPage) ServerUsageListResultIterator` -- New function `*PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponseIterator.NextWithContext(context.Context) error` -- New function `*WorkspaceSQLAadAdminsCreateOrUpdateFuture.Result(WorkspaceSQLAadAdminsClient) (WorkspaceAadAdminInfo, error)` -- New function `SQLPoolWorkloadClassifierClient.CreateOrUpdatePreparer(context.Context, string, string, string, string, string, WorkloadClassifier) (*http.Request, error)` -- New function `WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient.ListByWorkspace(context.Context, string, string) (ExtendedServerBlobAuditingPolicyListResultPage, error)` -- New function `KeysClient.GetSender(*http.Request) (*http.Response, error)` -- New function `ServerSecurityAlertPolicyProperties.MarshalJSON() ([]byte, error)` -- New function `SQLPoolWorkloadGroupClient.Get(context.Context, string, string, string, string) (WorkloadGroup, error)` -- New function `RecoverableSQLPoolListResult.IsEmpty() bool` -- New function `WorkspaceManagedSQLServerBlobAuditingPoliciesClient.CreateOrUpdate(context.Context, string, string, ServerBlobAuditingPolicy) (WorkspaceManagedSQLServerBlobAuditingPoliciesCreateOrUpdateFuture, error)` -- New function `NewRestorableDroppedSQLPoolsClient(string) RestorableDroppedSQLPoolsClient` -- New function `*SQLPoolWorkloadClassifierCreateOrUpdateFuture.Result(SQLPoolWorkloadClassifierClient) (WorkloadClassifier, error)` -- New function `ServerUsageListResult.IsEmpty() bool` -- New function `SQLPoolSecurityAlertPoliciesClient.ListComplete(context.Context, string, string, string) (ListSQLPoolSecurityAlertPoliciesIterator, error)` -- New function `PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse.IsEmpty() bool` -- New function `RestorableDroppedSQLPool.MarshalJSON() ([]byte, error)` -- New function `WorkspaceSQLAadAdminsClient.CreateOrUpdatePreparer(context.Context, string, string, WorkspaceAadAdminInfo) (*http.Request, error)` -- New function `SQLPoolWorkloadClassifierClient.GetResponder(*http.Response) (WorkloadClassifier, error)` -- New function `WorkspaceManagedSQLServerBlobAuditingPoliciesClient.ListByWorkspaceResponder(*http.Response) (ServerBlobAuditingPolicyListResult, error)` -- New function `WorkspaceManagedSQLServerBlobAuditingPoliciesClient.GetPreparer(context.Context, string, string) (*http.Request, error)` -- New function `IntegrationRuntimesClient.DisableInteractiveQueryResponder(*http.Response) (autorest.Response, error)` -- New function `*ServerSecurityAlertPolicy.UnmarshalJSON([]byte) error` -- New function `WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.Delete(context.Context, string, string) (autorest.Response, error)` -- New function `ServerSecurityAlertPolicyListResultPage.NotDone() bool` -- New function `WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient.GetPreparer(context.Context, string, string) (*http.Request, error)` -- New function `RestorableDroppedSQLPoolsClient.GetPreparer(context.Context, string, string, string) (*http.Request, error)` -- New function `SQLPoolReplicationLinksClient.GetByNamePreparer(context.Context, string, string, string, string) (*http.Request, error)` -- New function `NewPrivateEndpointConnectionsPrivateLinkHubClient(string) PrivateEndpointConnectionsPrivateLinkHubClient` -- New function `NewWorkspaceSQLAadAdminsClientWithBaseURI(string, string) WorkspaceSQLAadAdminsClient` -- New function `SQLPoolVulnerabilityAssessmentScansClient.GetPreparer(context.Context, string, string, string, string) (*http.Request, error)` -- New function `TransparentDataEncryptionListResult.IsEmpty() bool` -- New function `SQLPoolWorkloadGroupClient.ListSender(*http.Request) (*http.Response, error)` -- New function `*DataMaskingPolicy.UnmarshalJSON([]byte) error` -- New function `IntegrationRuntimesClient.DisableInteractiveQuery(context.Context, string, string, string) (IntegrationRuntimesDisableInteractiveQueryFuture, error)` -- New function `KeysClient.CreateOrUpdateSender(*http.Request) (*http.Response, error)` -- New function `SQLPoolWorkloadClassifierClient.DeleteSender(*http.Request) (SQLPoolWorkloadClassifierDeleteFuture, error)` -- New function `ListSQLPoolSecurityAlertPoliciesPage.NotDone() bool` -- New function `*ServerUsageListResultIterator.NextWithContext(context.Context) error` -- New function `IntegrationRuntimeMonitoringDataClient.ListResponder(*http.Response) (IntegrationRuntimeMonitoringData, error)` -- New function `NewWorkspaceManagedSQLServerVulnerabilityAssessmentsClientWithBaseURI(string, string) WorkspaceManagedSQLServerVulnerabilityAssessmentsClient` -- New function `WorkloadClassifierListResultPage.NotDone() bool` -- New function `PossibleDataMaskingStateValues() []DataMaskingState` -- New function `SQLPoolRestorePointsClient.DeletePreparer(context.Context, string, string, string, string) (*http.Request, error)` -- New function `WorkspaceManagedSQLServerBlobAuditingPoliciesClient.CreateOrUpdateSender(*http.Request) (WorkspaceManagedSQLServerBlobAuditingPoliciesCreateOrUpdateFuture, error)` -- New function `WorkspaceManagedSQLServerBlobAuditingPoliciesClient.GetResponder(*http.Response) (ServerBlobAuditingPolicy, error)` -- New function `DataMaskingPoliciesClient.CreateOrUpdate(context.Context, string, string, string, DataMaskingPolicy) (DataMaskingPolicy, error)` -- New function `DataMaskingPoliciesClient.GetSender(*http.Request) (*http.Response, error)` -- New function `WorkspaceManagedSQLServerRecoverableSqlpoolsClient.ListResponder(*http.Response) (RecoverableSQLPoolListResult, error)` -- New function `*RecoverableSQLPoolListResultIterator.NextWithContext(context.Context) error` -- New function `WorkspaceManagedSQLServerRecoverableSqlpoolsClient.ListComplete(context.Context, string, string) (RecoverableSQLPoolListResultIterator, error)` -- New function `NewExtendedServerBlobAuditingPolicyListResultIterator(ExtendedServerBlobAuditingPolicyListResultPage) ExtendedServerBlobAuditingPolicyListResultIterator` -- New function `*IntegrationRuntimesDisableInteractiveQueryFuture.Result(IntegrationRuntimesClient) (autorest.Response, error)` -- New function `NewWorkspaceManagedSQLServerUsagesClientWithBaseURI(string, string) WorkspaceManagedSQLServerUsagesClient` -- New function `WorkloadGroupListResultPage.Response() WorkloadGroupListResult` -- New function `*ListSQLPoolSecurityAlertPoliciesPage.Next() error` -- New function `DataMaskingRulesClient.ListBySQLPool(context.Context, string, string, string) (DataMaskingRuleListResult, error)` -- New function `SQLPoolColumnsClient.GetSender(*http.Request) (*http.Response, error)` -- New function `*DataMaskingRule.UnmarshalJSON([]byte) error` -- New function `*RecoverableSQLPoolListResultIterator.Next() error` -- New function `*PrivateEndpointConnectionForPrivateLinkHubBasic.UnmarshalJSON([]byte) error` -- New function `WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.DeletePreparer(context.Context, string, string) (*http.Request, error)` -- New function `*TransparentDataEncryptionListResultPage.NextWithContext(context.Context) error` -- New function `ServerVulnerabilityAssessmentListResultPage.NotDone() bool` -- New function `ServerSecurityAlertPolicyListResultPage.Values() []ServerSecurityAlertPolicy` -- New function `IntegrationRuntimeMonitoringDataClient.ListPreparer(context.Context, string, string, string) (*http.Request, error)` -- New function `KeysClient.DeleteResponder(*http.Response) (Key, error)` -- New function `*IntegrationRuntimesStartFuture.Result(IntegrationRuntimesClient) (IntegrationRuntimeStatusResponse, error)` -- New function `SQLPoolWorkloadClassifierClient.GetSender(*http.Request) (*http.Response, error)` -- New function `WorkspaceManagedSQLServerBlobAuditingPoliciesClient.ListByWorkspaceSender(*http.Request) (*http.Response, error)` -- New function `WorkspaceManagedSQLServerUsagesClient.ListComplete(context.Context, string, string) (ServerUsageListResultIterator, error)` -- New function `*ServerUsageListResultIterator.Next() error` -- New function `KeyInfoListResultPage.Values() []Key` -- New function `WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient.Get(context.Context, string, string) (ExtendedServerBlobAuditingPolicy, error)` -- New function `RecoverableSQLPoolListResultPage.NotDone() bool` -- New function `WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient.ListByWorkspacePreparer(context.Context, string, string) (*http.Request, error)` -- New function `WorkspaceManagedSQLServerSecurityAlertPolicyClient.CreateOrUpdateSender(*http.Request) (WorkspaceManagedSQLServerSecurityAlertPolicyCreateOrUpdateFuture, error)` -- New function `ListSQLPoolSecurityAlertPoliciesIterator.Value() SQLPoolSecurityAlertPolicy` -- New function `ExtendedSQLPoolBlobAuditingPolicyListResultIterator.NotDone() bool` -- New function `NewWorkspaceManagedSQLServerSecurityAlertPolicyClient(string) WorkspaceManagedSQLServerSecurityAlertPolicyClient` -- New function `*ListSQLPoolSecurityAlertPoliciesIterator.NextWithContext(context.Context) error` -- New function `RecoverableSQLPoolListResultIterator.NotDone() bool` -- New function `RestorableDroppedSQLPoolsClient.GetSender(*http.Request) (*http.Response, error)` -- New function `ExtendedServerBlobAuditingPolicyListResult.IsEmpty() bool` -- New function `*ServerSecurityAlertPolicyListResultIterator.NextWithContext(context.Context) error` -- New function `*WorkloadGroup.UnmarshalJSON([]byte) error` -- New function `WorkspaceManagedSQLServerRecoverableSqlpoolsClient.GetSender(*http.Request) (*http.Response, error)` -- New function `*ServerSecurityAlertPolicyListResultPage.NextWithContext(context.Context) error` -- New function `*IntegrationRuntimesEnableInteractiveQueryFuture.Result(IntegrationRuntimesClient) (autorest.Response, error)` -- New function `SQLPoolGeoBackupPoliciesClient.ListSender(*http.Request) (*http.Response, error)` -- New function `*ServerBlobAuditingPolicyListResultIterator.NextWithContext(context.Context) error` -- New function `WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.ListComplete(context.Context, string, string) (ServerVulnerabilityAssessmentListResultIterator, error)` -- New function `WorkloadClassifierListResultIterator.Value() WorkloadClassifier` -- New function `ServerBlobAuditingPolicyListResultIterator.Value() ServerBlobAuditingPolicy` -- New function `ExtendedServerBlobAuditingPolicyListResultPage.Values() []ExtendedServerBlobAuditingPolicy` -- New function `ExtendedServerBlobAuditingPolicyListResultPage.NotDone() bool` -- New function `TransparentDataEncryptionListResultIterator.NotDone() bool` -- New function `*WorkloadClassifier.UnmarshalJSON([]byte) error` -- New function `ExtendedSQLPoolBlobAuditingPoliciesClient.CreateOrUpdate(context.Context, string, string, string, ExtendedSQLPoolBlobAuditingPolicy) (ExtendedSQLPoolBlobAuditingPolicy, error)` -- New function `PrivateEndpointConnectionsPrivateLinkHubClient.ListSender(*http.Request) (*http.Response, error)` -- New function `KeyInfoListResultPage.NotDone() bool` -- New function `NewListSQLPoolSecurityAlertPoliciesPage(ListSQLPoolSecurityAlertPolicies, func(context.Context, ListSQLPoolSecurityAlertPolicies) (ListSQLPoolSecurityAlertPolicies, error)) ListSQLPoolSecurityAlertPoliciesPage` -- New function `*KeyInfoListResultIterator.NextWithContext(context.Context) error` -- New function `ServerUsageListResult.MarshalJSON() ([]byte, error)` -- New struct `CustomerManagedKeyDetails` -- New struct `DataMaskingPoliciesClient` -- New struct `DataMaskingPolicy` -- New struct `DataMaskingPolicyProperties` -- New struct `DataMaskingRule` -- New struct `DataMaskingRuleListResult` -- New struct `DataMaskingRuleProperties` -- New struct `DataMaskingRulesClient` -- New struct `EncryptionDetails` -- New struct `ExtendedSQLPoolBlobAuditingPoliciesClient` -- New struct `ExtendedSQLPoolBlobAuditingPolicy` -- New struct `ExtendedSQLPoolBlobAuditingPolicyListResult` -- New struct `ExtendedSQLPoolBlobAuditingPolicyListResultIterator` -- New struct `ExtendedSQLPoolBlobAuditingPolicyListResultPage` -- New struct `ExtendedSQLPoolBlobAuditingPolicyProperties` -- New struct `ExtendedServerBlobAuditingPolicy` -- New struct `ExtendedServerBlobAuditingPolicyListResult` -- New struct `ExtendedServerBlobAuditingPolicyListResultIterator` -- New struct `ExtendedServerBlobAuditingPolicyListResultPage` -- New struct `ExtendedServerBlobAuditingPolicyProperties` -- New struct `GeoBackupPolicyListResult` -- New struct `IntegrationRuntimeObjectMetadataRefreshFuture` -- New struct `IntegrationRuntimesDisableInteractiveQueryFuture` -- New struct `IntegrationRuntimesEnableInteractiveQueryFuture` -- New struct `IntegrationRuntimesStartFuture` -- New struct `IntegrationRuntimesStopFuture` -- New struct `Key` -- New struct `KeyInfoListResult` -- New struct `KeyInfoListResultIterator` -- New struct `KeyInfoListResultPage` -- New struct `KeyProperties` -- New struct `KeysClient` -- New struct `ListSQLPoolSecurityAlertPolicies` -- New struct `ListSQLPoolSecurityAlertPoliciesIterator` -- New struct `ListSQLPoolSecurityAlertPoliciesPage` -- New struct `ManagedVirtualNetworkSettings` -- New struct `PrivateEndpointConnectionForPrivateLinkHub` -- New struct `PrivateEndpointConnectionForPrivateLinkHubBasic` -- New struct `PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse` -- New struct `PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponseIterator` -- New struct `PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponsePage` -- New struct `PrivateEndpointConnectionsPrivateLinkHubClient` -- New struct `PrivateLinkHubsDeleteFuture` -- New struct `PurviewConfiguration` -- New struct `RecoverableSQLPool` -- New struct `RecoverableSQLPoolListResult` -- New struct `RecoverableSQLPoolListResultIterator` -- New struct `RecoverableSQLPoolListResultPage` -- New struct `RecoverableSQLPoolProperties` -- New struct `RestorableDroppedSQLPool` -- New struct `RestorableDroppedSQLPoolListResult` -- New struct `RestorableDroppedSQLPoolProperties` -- New struct `RestorableDroppedSQLPoolsClient` -- New struct `SQLPoolBlobAuditingPolicyListResult` -- New struct `SQLPoolBlobAuditingPolicyListResultIterator` -- New struct `SQLPoolBlobAuditingPolicyListResultPage` -- New struct `SQLPoolColumnsClient` -- New struct `SQLPoolWorkloadClassifierClient` -- New struct `SQLPoolWorkloadClassifierCreateOrUpdateFuture` -- New struct `SQLPoolWorkloadClassifierDeleteFuture` -- New struct `SQLPoolWorkloadGroupClient` -- New struct `SQLPoolWorkloadGroupCreateOrUpdateFuture` -- New struct `SQLPoolWorkloadGroupDeleteFuture` -- New struct `ServerBlobAuditingPolicy` -- New struct `ServerBlobAuditingPolicyListResult` -- New struct `ServerBlobAuditingPolicyListResultIterator` -- New struct `ServerBlobAuditingPolicyListResultPage` -- New struct `ServerBlobAuditingPolicyProperties` -- New struct `ServerSecurityAlertPolicy` -- New struct `ServerSecurityAlertPolicyListResult` -- New struct `ServerSecurityAlertPolicyListResultIterator` -- New struct `ServerSecurityAlertPolicyListResultPage` -- New struct `ServerSecurityAlertPolicyProperties` -- New struct `ServerUsage` -- New struct `ServerUsageListResult` -- New struct `ServerUsageListResultIterator` -- New struct `ServerUsageListResultPage` -- New struct `ServerVulnerabilityAssessment` -- New struct `ServerVulnerabilityAssessmentListResult` -- New struct `ServerVulnerabilityAssessmentListResultIterator` -- New struct `ServerVulnerabilityAssessmentListResultPage` -- New struct `ServerVulnerabilityAssessmentProperties` -- New struct `TransparentDataEncryptionListResult` -- New struct `TransparentDataEncryptionListResultIterator` -- New struct `TransparentDataEncryptionListResultPage` -- New struct `WorkloadClassifier` -- New struct `WorkloadClassifierListResult` -- New struct `WorkloadClassifierListResultIterator` -- New struct `WorkloadClassifierListResultPage` -- New struct `WorkloadClassifierProperties` -- New struct `WorkloadGroup` -- New struct `WorkloadGroupListResult` -- New struct `WorkloadGroupListResultIterator` -- New struct `WorkloadGroupListResultPage` -- New struct `WorkloadGroupProperties` -- New struct `WorkspaceKeyDetails` -- New struct `WorkspaceManagedSQLServerBlobAuditingPoliciesClient` -- New struct `WorkspaceManagedSQLServerBlobAuditingPoliciesCreateOrUpdateFuture` -- New struct `WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient` -- New struct `WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesCreateOrUpdateFuture` -- New struct `WorkspaceManagedSQLServerRecoverableSqlpoolsClient` -- New struct `WorkspaceManagedSQLServerSecurityAlertPolicyClient` -- New struct `WorkspaceManagedSQLServerSecurityAlertPolicyCreateOrUpdateFuture` -- New struct `WorkspaceManagedSQLServerUsagesClient` -- New struct `WorkspaceManagedSQLServerVulnerabilityAssessmentsClient` -- New struct `WorkspaceRepositoryConfiguration` -- New struct `WorkspaceSQLAadAdminsClient` -- New struct `WorkspaceSQLAadAdminsCreateOrUpdateFuture` -- New struct `WorkspaceSQLAadAdminsDeleteFuture` -- New field `SessionLevelPackagesEnabled` in struct `BigDataPoolResourceProperties` -- New field `SparkConfigProperties` in struct `BigDataPoolResourceProperties` -- New field `HaveLibraryRequirementsChanged` in struct `BigDataPoolResourceProperties` -- New field `PurviewConfiguration` in struct `WorkspaceProperties` -- New field `Encryption` in struct `WorkspaceProperties` -- New field `WorkspaceUID` in struct `WorkspaceProperties` -- New field `ManagedVirtualNetworkSettings` in struct `WorkspaceProperties` -- New field `WorkspaceRepositoryConfiguration` in struct `WorkspaceProperties` -- New field `SyncIntervalInMinutes` in struct `MetadataSyncConfigProperties` -- New anonymous field `autorest.Response` in struct `SQLPoolTable` -- New anonymous field `autorest.Response` in struct `ReplicationLink` -- New anonymous field `autorest.Response` in struct `SQLPoolSchema` -- New anonymous field `autorest.Response` in struct `VulnerabilityAssessmentScanRecord` -- New field `PurviewConfiguration` in struct `WorkspacePatchProperties` -- New field `ManagedVirtualNetworkSettings` in struct `WorkspacePatchProperties` -- New field `WorkspaceRepositoryConfiguration` in struct `WorkspacePatchProperties` -- New anonymous field `autorest.Response` in struct `SQLPoolColumn` -- New field `PrivateEndpointConnections` in struct `PrivateLinkHubProperties` -- New field `NodeCommunicationChannelEncryptionMode` in struct `SelfHostedIntegrationRuntimeStatusTypeProperties` +1. WorkspaceManagedIdentitySQLControlSettingsClient.CreateOrUpdate + - Returns + - From: ManagedIdentitySQLControlSettingsModel, error + - To: WorkspaceManagedIdentitySQLControlSettingsCreateOrUpdateFuture, error +1. WorkspaceManagedIdentitySQLControlSettingsClient.CreateOrUpdateSender + - Returns + - From: *http.Response, error + - To: WorkspaceManagedIdentitySQLControlSettingsCreateOrUpdateFuture, error + +### New Funcs + +1. *WorkspaceManagedIdentitySQLControlSettingsCreateOrUpdateFuture.Result(WorkspaceManagedIdentitySQLControlSettingsClient) (ManagedIdentitySQLControlSettingsModel, error) + +## Struct Changes + +### New Structs + +1. WorkspaceManagedIdentitySQLControlSettingsCreateOrUpdateFuture + +### New Struct Fields + +1. WorkspacePatchProperties.Encryption diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/bigdatapools.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/bigdatapools.go index 5aca2b315f42..1a1c85075537 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/bigdatapools.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/bigdatapools.go @@ -359,6 +359,7 @@ func (client BigDataPoolsClient) ListByWorkspace(ctx context.Context, resourceGr } if result.bdprilr.hasNextLink() && result.bdprilr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -420,7 +421,6 @@ func (client BigDataPoolsClient) listByWorkspaceNextResults(ctx context.Context, result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.BigDataPoolsClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/extendedsqlpoolblobauditingpolicies.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/extendedsqlpoolblobauditingpolicies.go index 193fc014e967..5d2c8e312cc6 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/extendedsqlpoolblobauditingpolicies.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/extendedsqlpoolblobauditingpolicies.go @@ -272,6 +272,7 @@ func (client ExtendedSQLPoolBlobAuditingPoliciesClient) ListBySQLPool(ctx contex } if result.espbaplr.hasNextLink() && result.espbaplr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -334,7 +335,6 @@ func (client ExtendedSQLPoolBlobAuditingPoliciesClient) listBySQLPoolNextResults result, err = client.ListBySQLPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.ExtendedSQLPoolBlobAuditingPoliciesClient", "listBySQLPoolNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimes.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimes.go index 193f33070ff2..33457b893dc8 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimes.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/integrationruntimes.go @@ -68,9 +68,7 @@ func (client IntegrationRuntimesClient) Create(ctx context.Context, resourceGrou {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, - {TargetValue: integrationRuntime, - Constraints: []validation.Constraint{{Target: "integrationRuntime.Properties", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { return result, validation.NewError("synapse.IntegrationRuntimesClient", "Create", err.Error()) } @@ -539,6 +537,7 @@ func (client IntegrationRuntimesClient) ListByWorkspace(ctx context.Context, res } if result.irlr.hasNextLink() && result.irlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -600,7 +599,6 @@ func (client IntegrationRuntimesClient) listByWorkspaceNextResults(ctx context.C result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.IntegrationRuntimesClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/ipfirewallrules.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/ipfirewallrules.go index 732ff82601a0..ec04e4df33e1 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/ipfirewallrules.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/ipfirewallrules.go @@ -353,6 +353,7 @@ func (client IPFirewallRulesClient) ListByWorkspace(ctx context.Context, resourc } if result.ifrilr.hasNextLink() && result.ifrilr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -414,7 +415,6 @@ func (client IPFirewallRulesClient) listByWorkspaceNextResults(ctx context.Conte result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.IPFirewallRulesClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/keys.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/keys.go index ddcefaed405a..0785f8e3b6cd 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/keys.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/keys.go @@ -355,6 +355,7 @@ func (client KeysClient) ListByWorkspace(ctx context.Context, resourceGroupName } if result.kilr.hasNextLink() && result.kilr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -416,7 +417,6 @@ func (client KeysClient) listByWorkspaceNextResults(ctx context.Context, lastRes result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.KeysClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/models.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/models.go index 3d4d8ab69912..38c9b36ab808 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/models.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/models.go @@ -13909,6 +13909,35 @@ type WorkspaceKeyDetails struct { KeyVaultURL *string `json:"keyVaultUrl,omitempty"` } +// WorkspaceManagedIdentitySQLControlSettingsCreateOrUpdateFuture an abstraction for monitoring and +// retrieving the results of a long-running operation. +type WorkspaceManagedIdentitySQLControlSettingsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *WorkspaceManagedIdentitySQLControlSettingsCreateOrUpdateFuture) Result(client WorkspaceManagedIdentitySQLControlSettingsClient) (miscsm ManagedIdentitySQLControlSettingsModel, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedIdentitySQLControlSettingsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("synapse.WorkspaceManagedIdentitySQLControlSettingsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if miscsm.Response.Response, err = future.GetResult(sender); err == nil && miscsm.Response.Response.StatusCode != http.StatusNoContent { + miscsm, err = client.CreateOrUpdateResponder(miscsm.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedIdentitySQLControlSettingsCreateOrUpdateFuture", "Result", miscsm.Response.Response, "Failure responding to request") + } + } + return +} + // WorkspaceManagedSQLServerBlobAuditingPoliciesCreateOrUpdateFuture an abstraction for monitoring and // retrieving the results of a long-running operation. type WorkspaceManagedSQLServerBlobAuditingPoliciesCreateOrUpdateFuture struct { @@ -14075,6 +14104,8 @@ type WorkspacePatchProperties struct { PurviewConfiguration *PurviewConfiguration `json:"purviewConfiguration,omitempty"` // ProvisioningState - READ-ONLY; Resource provisioning state ProvisioningState *string `json:"provisioningState,omitempty"` + // Encryption - The encryption details of the workspace + Encryption *EncryptionDetails `json:"encryption,omitempty"` } // MarshalJSON is the custom marshaler for WorkspacePatchProperties. @@ -14092,6 +14123,9 @@ func (wpp WorkspacePatchProperties) MarshalJSON() ([]byte, error) { if wpp.PurviewConfiguration != nil { objectMap["purviewConfiguration"] = wpp.PurviewConfiguration } + if wpp.Encryption != nil { + objectMap["encryption"] = wpp.Encryption + } return json.Marshal(objectMap) } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privateendpointconnections.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privateendpointconnections.go index 07e631042881..a3b8f54ba8d0 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privateendpointconnections.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privateendpointconnections.go @@ -354,6 +354,7 @@ func (client PrivateEndpointConnectionsClient) List(ctx context.Context, resourc } if result.pecl.hasNextLink() && result.pecl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -415,7 +416,6 @@ func (client PrivateEndpointConnectionsClient) listNextResults(ctx context.Conte result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.PrivateEndpointConnectionsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privateendpointconnectionsprivatelinkhub.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privateendpointconnectionsprivatelinkhub.go index 840b5c0ddc6e..b5ef2669fb54 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privateendpointconnectionsprivatelinkhub.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privateendpointconnectionsprivatelinkhub.go @@ -90,6 +90,7 @@ func (client PrivateEndpointConnectionsPrivateLinkHubClient) List(ctx context.Co } if result.pecfplhrcr.hasNextLink() && result.pecfplhrcr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -151,7 +152,6 @@ func (client PrivateEndpointConnectionsPrivateLinkHubClient) listNextResults(ctx result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.PrivateEndpointConnectionsPrivateLinkHubClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privatelinkhubs.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privatelinkhubs.go index bef83fac132b..cc9b4450d486 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privatelinkhubs.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privatelinkhubs.go @@ -340,6 +340,7 @@ func (client PrivateLinkHubsClient) List(ctx context.Context) (result PrivateLin } if result.plhilr.hasNextLink() && result.plhilr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -399,7 +400,6 @@ func (client PrivateLinkHubsClient) listNextResults(ctx context.Context, lastRes result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.PrivateLinkHubsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } @@ -465,6 +465,7 @@ func (client PrivateLinkHubsClient) ListByResourceGroup(ctx context.Context, res } if result.plhilr.hasNextLink() && result.plhilr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -525,7 +526,6 @@ func (client PrivateLinkHubsClient) listByResourceGroupNextResults(ctx context.C result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.PrivateLinkHubsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privatelinkresources.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privatelinkresources.go index 7cca08373b27..3af98e4bca4e 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privatelinkresources.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/privatelinkresources.go @@ -177,6 +177,7 @@ func (client PrivateLinkResourcesClient) List(ctx context.Context, resourceGroup } if result.plrlr.hasNextLink() && result.plrlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -238,7 +239,6 @@ func (client PrivateLinkResourcesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.PrivateLinkResourcesClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolblobauditingpolicies.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolblobauditingpolicies.go index 01ded21c1ab4..11e2d7181dce 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolblobauditingpolicies.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolblobauditingpolicies.go @@ -272,6 +272,7 @@ func (client SQLPoolBlobAuditingPoliciesClient) ListBySQLPool(ctx context.Contex } if result.spbaplr.hasNextLink() && result.spbaplr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -334,7 +335,6 @@ func (client SQLPoolBlobAuditingPoliciesClient) listBySQLPoolNextResults(ctx con result, err = client.ListBySQLPoolResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolBlobAuditingPoliciesClient", "listBySQLPoolNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooloperations.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooloperations.go index bf0c747a9663..e0c276805f87 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooloperations.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooloperations.go @@ -90,6 +90,7 @@ func (client SQLPoolOperationsClient) List(ctx context.Context, resourceGroupNam } if result.spbapspolr.hasNextLink() && result.spbapspolr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -152,7 +153,6 @@ func (client SQLPoolOperationsClient) listNextResults(ctx context.Context, lastR result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolOperationsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolreplicationlinks.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolreplicationlinks.go index 5527e1b6ffda..90ffbf88edae 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolreplicationlinks.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolreplicationlinks.go @@ -180,6 +180,7 @@ func (client SQLPoolReplicationLinksClient) List(ctx context.Context, resourceGr } if result.rllr.hasNextLink() && result.rllr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -242,7 +243,6 @@ func (client SQLPoolReplicationLinksClient) listNextResults(ctx context.Context, result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolReplicationLinksClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolrestorepoints.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolrestorepoints.go index 2d4ce3b01c33..64ed58375ae6 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolrestorepoints.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolrestorepoints.go @@ -361,6 +361,7 @@ func (client SQLPoolRestorePointsClient) List(ctx context.Context, resourceGroup } if result.rplr.hasNextLink() && result.rplr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -423,7 +424,6 @@ func (client SQLPoolRestorePointsClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolRestorePointsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpools.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpools.go index 7b8b01bf72b5..64ff194cacd4 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpools.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpools.go @@ -353,6 +353,7 @@ func (client SQLPoolsClient) ListByWorkspace(ctx context.Context, resourceGroupN } if result.spilr.hasNextLink() && result.spilr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -414,7 +415,6 @@ func (client SQLPoolsClient) listByWorkspaceNextResults(ctx context.Context, las result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolsClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolschemas.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolschemas.go index ddb4298d1771..6a5cda668961 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolschemas.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolschemas.go @@ -180,6 +180,7 @@ func (client SQLPoolSchemasClient) List(ctx context.Context, resourceGroupName s } if result.spslr.hasNextLink() && result.spslr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -245,7 +246,6 @@ func (client SQLPoolSchemasClient) listNextResults(ctx context.Context, lastResu result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolSchemasClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolsecurityalertpolicies.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolsecurityalertpolicies.go index 731314c038cb..afc9c464e9e5 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolsecurityalertpolicies.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolsecurityalertpolicies.go @@ -271,6 +271,7 @@ func (client SQLPoolSecurityAlertPoliciesClient) List(ctx context.Context, resou } if result.lspsap.hasNextLink() && result.lspsap.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -333,7 +334,6 @@ func (client SQLPoolSecurityAlertPoliciesClient) listNextResults(ctx context.Con result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolSecurityAlertPoliciesClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolsensitivitylabels.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolsensitivitylabels.go index ce9344156d8b..2ee52db58daa 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolsensitivitylabels.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolsensitivitylabels.go @@ -568,6 +568,7 @@ func (client SQLPoolSensitivityLabelsClient) ListCurrent(ctx context.Context, re } if result.sllr.hasNextLink() && result.sllr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -633,7 +634,6 @@ func (client SQLPoolSensitivityLabelsClient) listCurrentNextResults(ctx context. result, err = client.ListCurrentResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolSensitivityLabelsClient", "listCurrentNextResults", resp, "Failure responding to next results request") - return } return } @@ -704,6 +704,7 @@ func (client SQLPoolSensitivityLabelsClient) ListRecommended(ctx context.Context } if result.sllr.hasNextLink() && result.sllr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -775,7 +776,6 @@ func (client SQLPoolSensitivityLabelsClient) listRecommendedNextResults(ctx cont result, err = client.ListRecommendedResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolSensitivityLabelsClient", "listRecommendedNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooltablecolumns.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooltablecolumns.go index 52fab180b7c1..eb287650674d 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooltablecolumns.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooltablecolumns.go @@ -93,6 +93,7 @@ func (client SQLPoolTableColumnsClient) ListByTableName(ctx context.Context, res } if result.spclr.hasNextLink() && result.spclr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -160,7 +161,6 @@ func (client SQLPoolTableColumnsClient) listByTableNameNextResults(ctx context.C result, err = client.ListByTableNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolTableColumnsClient", "listByTableNameNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooltables.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooltables.go index 99b44c6360a9..2ce59d42fc2e 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooltables.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooltables.go @@ -183,6 +183,7 @@ func (client SQLPoolTablesClient) ListBySchema(ctx context.Context, resourceGrou } if result.sptlr.hasNextLink() && result.sptlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -249,7 +250,6 @@ func (client SQLPoolTablesClient) listBySchemaNextResults(ctx context.Context, l result, err = client.ListBySchemaResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolTablesClient", "listBySchemaNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooltransparentdataencryptions.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooltransparentdataencryptions.go index e267f0aa049e..3e2dda3d9f9a 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooltransparentdataencryptions.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpooltransparentdataencryptions.go @@ -273,6 +273,7 @@ func (client SQLPoolTransparentDataEncryptionsClient) List(ctx context.Context, } if result.tdelr.hasNextLink() && result.tdelr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -335,7 +336,6 @@ func (client SQLPoolTransparentDataEncryptionsClient) listNextResults(ctx contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolTransparentDataEncryptionsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolusages.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolusages.go index 28b75f781078..c18aeb963cb2 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolusages.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolusages.go @@ -89,6 +89,7 @@ func (client SQLPoolUsagesClient) List(ctx context.Context, resourceGroupName st } if result.spulr.hasNextLink() && result.spulr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -151,7 +152,6 @@ func (client SQLPoolUsagesClient) listNextResults(ctx context.Context, lastResul result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolUsagesClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolvulnerabilityassessments.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolvulnerabilityassessments.go index a78fc6f804e1..b26fbb21413b 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolvulnerabilityassessments.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolvulnerabilityassessments.go @@ -359,6 +359,7 @@ func (client SQLPoolVulnerabilityAssessmentsClient) List(ctx context.Context, re } if result.spvalr.hasNextLink() && result.spvalr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -421,7 +422,6 @@ func (client SQLPoolVulnerabilityAssessmentsClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolVulnerabilityAssessmentsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolvulnerabilityassessmentscans.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolvulnerabilityassessmentscans.go index 93ecc62fc5c8..995093e4abd7 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolvulnerabilityassessmentscans.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolvulnerabilityassessmentscans.go @@ -362,6 +362,7 @@ func (client SQLPoolVulnerabilityAssessmentScansClient) List(ctx context.Context } if result.vasrlr.hasNextLink() && result.vasrlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -425,7 +426,6 @@ func (client SQLPoolVulnerabilityAssessmentScansClient) listNextResults(ctx cont result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolVulnerabilityAssessmentScansClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolworkloadclassifier.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolworkloadclassifier.go index 4f76bcf986bc..25a8e1e713bf 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolworkloadclassifier.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolworkloadclassifier.go @@ -370,6 +370,7 @@ func (client SQLPoolWorkloadClassifierClient) List(ctx context.Context, resource } if result.wclr.hasNextLink() && result.wclr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -433,7 +434,6 @@ func (client SQLPoolWorkloadClassifierClient) listNextResults(ctx context.Contex result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolWorkloadClassifierClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolworkloadgroup.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolworkloadgroup.go index 6c10952d09be..789db0e6757e 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolworkloadgroup.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/sqlpoolworkloadgroup.go @@ -366,6 +366,7 @@ func (client SQLPoolWorkloadGroupClient) List(ctx context.Context, resourceGroup } if result.wglr.hasNextLink() && result.wglr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -428,7 +429,6 @@ func (client SQLPoolWorkloadGroupClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.SQLPoolWorkloadGroupClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/synapseapi/interfaces.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/synapseapi/interfaces.go index dcc0921c7a9d..61973a76b982 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/synapseapi/interfaces.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/synapseapi/interfaces.go @@ -335,7 +335,7 @@ var _ WorkspaceSQLAadAdminsClientAPI = (*synapse.WorkspaceSQLAadAdminsClient)(ni // WorkspaceManagedIdentitySQLControlSettingsClientAPI contains the set of methods on the WorkspaceManagedIdentitySQLControlSettingsClient type. type WorkspaceManagedIdentitySQLControlSettingsClientAPI interface { - CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, managedIdentitySQLControlSettings synapse.ManagedIdentitySQLControlSettingsModel) (result synapse.ManagedIdentitySQLControlSettingsModel, err error) + CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, managedIdentitySQLControlSettings synapse.ManagedIdentitySQLControlSettingsModel) (result synapse.WorkspaceManagedIdentitySQLControlSettingsCreateOrUpdateFuture, err error) Get(ctx context.Context, resourceGroupName string, workspaceName string) (result synapse.ManagedIdentitySQLControlSettingsModel, err error) } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedidentitysqlcontrolsettings.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedidentitysqlcontrolsettings.go index 88937fb659b0..029cd369a58d 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedidentitysqlcontrolsettings.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedidentitysqlcontrolsettings.go @@ -49,13 +49,13 @@ func NewWorkspaceManagedIdentitySQLControlSettingsClientWithBaseURI(baseURI stri // resourceGroupName - the name of the resource group. The name is case insensitive. // workspaceName - the name of the workspace // managedIdentitySQLControlSettings - managed Identity Sql Control Settings -func (client WorkspaceManagedIdentitySQLControlSettingsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, managedIdentitySQLControlSettings ManagedIdentitySQLControlSettingsModel) (result ManagedIdentitySQLControlSettingsModel, err error) { +func (client WorkspaceManagedIdentitySQLControlSettingsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, managedIdentitySQLControlSettings ManagedIdentitySQLControlSettingsModel) (result WorkspaceManagedIdentitySQLControlSettingsCreateOrUpdateFuture, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/WorkspaceManagedIdentitySQLControlSettingsClient.CreateOrUpdate") defer func() { sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode + if result.Response() != nil { + sc = result.Response().StatusCode } tracing.EndSpan(ctx, sc, err) }() @@ -76,16 +76,9 @@ func (client WorkspaceManagedIdentitySQLControlSettingsClient) CreateOrUpdate(ct return } - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedIdentitySQLControlSettingsClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) + result, err = client.CreateOrUpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedIdentitySQLControlSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedIdentitySQLControlSettingsClient", "CreateOrUpdate", result.Response(), "Failure sending request") return } @@ -117,8 +110,14 @@ func (client WorkspaceManagedIdentitySQLControlSettingsClient) CreateOrUpdatePre // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. -func (client WorkspaceManagedIdentitySQLControlSettingsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +func (client WorkspaceManagedIdentitySQLControlSettingsClient) CreateOrUpdateSender(req *http.Request) (future WorkspaceManagedIdentitySQLControlSettingsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return } // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverblobauditingpolicies.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverblobauditingpolicies.go index e92da2790263..c25e91c7491e 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverblobauditingpolicies.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverblobauditingpolicies.go @@ -266,6 +266,7 @@ func (client WorkspaceManagedSQLServerBlobAuditingPoliciesClient) ListByWorkspac } if result.sbaplr.hasNextLink() && result.sbaplr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -327,7 +328,6 @@ func (client WorkspaceManagedSQLServerBlobAuditingPoliciesClient) listByWorkspac result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedSQLServerBlobAuditingPoliciesClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverextendedblobauditingpolicies.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverextendedblobauditingpolicies.go index 33d965bd1a14..e0e49223d0c4 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverextendedblobauditingpolicies.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverextendedblobauditingpolicies.go @@ -266,6 +266,7 @@ func (client WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient) ListBy } if result.esbaplr.hasNextLink() && result.esbaplr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -327,7 +328,6 @@ func (client WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient) listBy result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverrecoverablesqlpools.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverrecoverablesqlpools.go index 23f59d058534..12eb5a6bb366 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverrecoverablesqlpools.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverrecoverablesqlpools.go @@ -178,6 +178,7 @@ func (client WorkspaceManagedSQLServerRecoverableSqlpoolsClient) List(ctx contex } if result.rsplr.hasNextLink() && result.rsplr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -239,7 +240,6 @@ func (client WorkspaceManagedSQLServerRecoverableSqlpoolsClient) listNextResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedSQLServerRecoverableSqlpoolsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserversecurityalertpolicy.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserversecurityalertpolicy.go index 9ff154da6985..9f1cf2267189 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserversecurityalertpolicy.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserversecurityalertpolicy.go @@ -266,6 +266,7 @@ func (client WorkspaceManagedSQLServerSecurityAlertPolicyClient) List(ctx contex } if result.ssaplr.hasNextLink() && result.ssaplr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -327,7 +328,6 @@ func (client WorkspaceManagedSQLServerSecurityAlertPolicyClient) listNextResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedSQLServerSecurityAlertPolicyClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverusages.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverusages.go index 8aadb61cb236..c073288736e6 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverusages.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlserverusages.go @@ -89,6 +89,7 @@ func (client WorkspaceManagedSQLServerUsagesClient) List(ctx context.Context, re } if result.sulr.hasNextLink() && result.sulr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -150,7 +151,6 @@ func (client WorkspaceManagedSQLServerUsagesClient) listNextResults(ctx context. result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedSQLServerUsagesClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlservervulnerabilityassessments.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlservervulnerabilityassessments.go index 7739e033902d..14cf57e74f14 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlservervulnerabilityassessments.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspacemanagedsqlservervulnerabilityassessments.go @@ -356,6 +356,7 @@ func (client WorkspaceManagedSQLServerVulnerabilityAssessmentsClient) List(ctx c } if result.svalr.hasNextLink() && result.svalr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -417,7 +418,6 @@ func (client WorkspaceManagedSQLServerVulnerabilityAssessmentsClient) listNextRe result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspaceManagedSQLServerVulnerabilityAssessmentsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspaces.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspaces.go index 5ccca609f3ce..20421ffced67 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspaces.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/workspaces.go @@ -340,6 +340,7 @@ func (client WorkspacesClient) List(ctx context.Context) (result WorkspaceInfoLi } if result.wilr.hasNextLink() && result.wilr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -399,7 +400,6 @@ func (client WorkspacesClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspacesClient", "listNextResults", resp, "Failure responding to next results request") - return } return } @@ -465,6 +465,7 @@ func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resource } if result.wilr.hasNextLink() && result.wilr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -525,7 +526,6 @@ func (client WorkspacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "synapse.WorkspacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") - return } return } From 0198a247228529a89368013c17968bff719a36d9 Mon Sep 17 00:00:00 2001 From: arcturusZhang Date: Thu, 17 Dec 2020 12:20:40 +0800 Subject: [PATCH 07/12] Generated from tags [package-2020-05-01-preview] of specification/cpim/resource-manager/readme.md (commit hash: 3a3a9452f965a227ce43e6b545035b99dd175f23) --- .../mgmt/azureadb2c/azureadb2capi/models.go | 25 + .../azureadb2c/mgmt/azureadb2c/models.go | 65 +++ .../azureadb2c/CHANGELOG.md | 5 + .../azureadb2c/azureadb2capi/interfaces.go | 43 ++ .../2020-05-01-preview/azureadb2c/client.go | 52 ++ .../azureadb2c/guestusages.go | 507 ++++++++++++++++++ .../2020-05-01-preview/azureadb2c/models.go | 228 ++++++++ .../azureadb2c/operations.go | 109 ++++ .../2020-05-01-preview/azureadb2c/version.go | 30 ++ 9 files changed, 1064 insertions(+) create mode 100644 profiles/preview/preview/azureadb2c/mgmt/azureadb2c/azureadb2capi/models.go create mode 100644 profiles/preview/preview/azureadb2c/mgmt/azureadb2c/models.go create mode 100644 services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/CHANGELOG.md create mode 100644 services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/azureadb2capi/interfaces.go create mode 100644 services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/client.go create mode 100644 services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/guestusages.go create mode 100644 services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/models.go create mode 100644 services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/operations.go create mode 100644 services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/version.go diff --git a/profiles/preview/preview/azureadb2c/mgmt/azureadb2c/azureadb2capi/models.go b/profiles/preview/preview/azureadb2c/mgmt/azureadb2c/azureadb2capi/models.go new file mode 100644 index 000000000000..662276cf1e42 --- /dev/null +++ b/profiles/preview/preview/azureadb2c/mgmt/azureadb2c/azureadb2capi/models.go @@ -0,0 +1,25 @@ +// +build go1.9 + +// Copyright 2020 Microsoft Corporation +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// This code was auto-generated by: +// github.com/Azure/azure-sdk-for-go/tools/profileBuilder + +package azureadb2capi + +import original "github.com/Azure/azure-sdk-for-go/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/azureadb2capi" + +type GuestUsagesClientAPI = original.GuestUsagesClientAPI +type OperationsClientAPI = original.OperationsClientAPI diff --git a/profiles/preview/preview/azureadb2c/mgmt/azureadb2c/models.go b/profiles/preview/preview/azureadb2c/mgmt/azureadb2c/models.go new file mode 100644 index 000000000000..195b9b8c248c --- /dev/null +++ b/profiles/preview/preview/azureadb2c/mgmt/azureadb2c/models.go @@ -0,0 +1,65 @@ +// +build go1.9 + +// Copyright 2020 Microsoft Corporation +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// This code was auto-generated by: +// github.com/Azure/azure-sdk-for-go/tools/profileBuilder + +package azureadb2c + +import original "github.com/Azure/azure-sdk-for-go/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c" + +const ( + DefaultBaseURI = original.DefaultBaseURI +) + +type BaseClient = original.BaseClient +type CloudError = original.CloudError +type ErrorAdditionalInfo = original.ErrorAdditionalInfo +type ErrorResponse = original.ErrorResponse +type GuestUsagesClient = original.GuestUsagesClient +type GuestUsagesResource = original.GuestUsagesResource +type GuestUsagesResourceList = original.GuestUsagesResourceList +type GuestUsagesResourcePatch = original.GuestUsagesResourcePatch +type GuestUsagesResourceProperties = original.GuestUsagesResourceProperties +type Operation = original.Operation +type OperationDisplay = original.OperationDisplay +type OperationListResult = original.OperationListResult +type OperationsClient = original.OperationsClient + +func New(subscriptionID string) BaseClient { + return original.New(subscriptionID) +} +func NewGuestUsagesClient(subscriptionID string) GuestUsagesClient { + return original.NewGuestUsagesClient(subscriptionID) +} +func NewGuestUsagesClientWithBaseURI(baseURI string, subscriptionID string) GuestUsagesClient { + return original.NewGuestUsagesClientWithBaseURI(baseURI, subscriptionID) +} +func NewOperationsClient(subscriptionID string) OperationsClient { + return original.NewOperationsClient(subscriptionID) +} +func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { + return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID) +} +func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { + return original.NewWithBaseURI(baseURI, subscriptionID) +} +func UserAgent() string { + return original.UserAgent() + " profiles/preview" +} +func Version() string { + return original.Version() +} diff --git a/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/CHANGELOG.md b/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/CHANGELOG.md new file mode 100644 index 000000000000..3501309e5585 --- /dev/null +++ b/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/CHANGELOG.md @@ -0,0 +1,5 @@ +Generated from https://github.com/Azure/azure-rest-api-specs/tree/3a3a9452f965a227ce43e6b545035b99dd175f23 + +Code generator @microsoft.azure/autorest.go@~2.1.165 + +This is a new package \ No newline at end of file diff --git a/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/azureadb2capi/interfaces.go b/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/azureadb2capi/interfaces.go new file mode 100644 index 000000000000..f204897b9a07 --- /dev/null +++ b/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/azureadb2capi/interfaces.go @@ -0,0 +1,43 @@ +package azureadb2capi + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/azure-sdk-for-go/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c" + "github.com/Azure/go-autorest/autorest" +) + +// OperationsClientAPI contains the set of methods on the OperationsClient type. +type OperationsClientAPI interface { + List(ctx context.Context) (result azureadb2c.OperationListResult, err error) +} + +var _ OperationsClientAPI = (*azureadb2c.OperationsClient)(nil) + +// GuestUsagesClientAPI contains the set of methods on the GuestUsagesClient type. +type GuestUsagesClientAPI interface { + Create(ctx context.Context, resourceGroupName string, resourceName string, resource *azureadb2c.GuestUsagesResource) (result azureadb2c.GuestUsagesResource, err error) + Delete(ctx context.Context, resourceGroupName string, resourceName string) (result autorest.Response, err error) + Get(ctx context.Context, resourceGroupName string, resourceName string) (result azureadb2c.GuestUsagesResource, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result azureadb2c.GuestUsagesResourceList, err error) + ListBySubscription(ctx context.Context) (result azureadb2c.GuestUsagesResourceList, err error) + Update(ctx context.Context, resourceGroupName string, resourceName string, resourcePatch *azureadb2c.GuestUsagesResourcePatch) (result azureadb2c.GuestUsagesResource, err error) +} + +var _ GuestUsagesClientAPI = (*azureadb2c.GuestUsagesClient)(nil) diff --git a/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/client.go b/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/client.go new file mode 100644 index 000000000000..5ba7c8ea4040 --- /dev/null +++ b/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/client.go @@ -0,0 +1,52 @@ +// Package azureadb2c implements the Azure ARM Azureadb2c service API version 2020-05-01-preview. +// +// CPIM Configuration Client +package azureadb2c + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/Azure/go-autorest/autorest" +) + +const ( + // DefaultBaseURI is the default URI used for the service Azureadb2c + DefaultBaseURI = "https://management.azure.com" +) + +// BaseClient is the base client for Azureadb2c. +type BaseClient struct { + autorest.Client + BaseURI string + SubscriptionID string +} + +// New creates an instance of the BaseClient client. +func New(subscriptionID string) BaseClient { + return NewWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with +// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { + return BaseClient{ + Client: autorest.NewClientWithUserAgent(UserAgent()), + BaseURI: baseURI, + SubscriptionID: subscriptionID, + } +} diff --git a/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/guestusages.go b/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/guestusages.go new file mode 100644 index 000000000000..ee9c213ace31 --- /dev/null +++ b/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/guestusages.go @@ -0,0 +1,507 @@ +package azureadb2c + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// GuestUsagesClient is the CPIM Configuration Client +type GuestUsagesClient struct { + BaseClient +} + +// NewGuestUsagesClient creates an instance of the GuestUsagesClient client. +func NewGuestUsagesClient(subscriptionID string) GuestUsagesClient { + return NewGuestUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewGuestUsagesClientWithBaseURI creates an instance of the GuestUsagesClient client using a custom endpoint. Use +// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewGuestUsagesClientWithBaseURI(baseURI string, subscriptionID string) GuestUsagesClient { + return GuestUsagesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Create creates a Guest Usages resource for the Microsoft.AzureActiveDirectory resource provider +// Parameters: +// resourceGroupName - the name of the resource group. +// resourceName - the initial domain name of the AAD tenant. +// resource - guest Usages resource to be created +func (client GuestUsagesClient) Create(ctx context.Context, resourceGroupName string, resourceName string, resource *GuestUsagesResource) (result GuestUsagesResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/GuestUsagesClient.Create") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreatePreparer(ctx, resourceGroupName, resourceName, resource) + if err != nil { + err = autorest.NewErrorWithError(err, "azureadb2c.GuestUsagesClient", "Create", nil, "Failure preparing request") + return + } + + resp, err := client.CreateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "azureadb2c.GuestUsagesClient", "Create", resp, "Failure sending request") + return + } + + result, err = client.CreateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "azureadb2c.GuestUsagesClient", "Create", resp, "Failure responding to request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client GuestUsagesClient) CreatePreparer(ctx context.Context, resourceGroupName string, resourceName string, resource *GuestUsagesResource) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "resourceName": autorest.Encode("path", resourceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-05-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + resource.ID = nil + resource.Name = nil + resource.Type = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureActiveDirectory/guestUsages/{resourceName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if resource != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(resource)) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client GuestUsagesClient) CreateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client GuestUsagesClient) CreateResponder(resp *http.Response) (result GuestUsagesResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes a Guest Usages resource for the Microsoft.AzureActiveDirectory resource provider +// Parameters: +// resourceGroupName - the name of the resource group. +// resourceName - the initial domain name of the AAD tenant. +func (client GuestUsagesClient) Delete(ctx context.Context, resourceGroupName string, resourceName string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/GuestUsagesClient.Delete") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName) + if err != nil { + err = autorest.NewErrorWithError(err, "azureadb2c.GuestUsagesClient", "Delete", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "azureadb2c.GuestUsagesClient", "Delete", resp, "Failure sending request") + return + } + + result, err = client.DeleteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "azureadb2c.GuestUsagesClient", "Delete", resp, "Failure responding to request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client GuestUsagesClient) DeletePreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "resourceName": autorest.Encode("path", resourceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-05-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureActiveDirectory/guestUsages/{resourceName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client GuestUsagesClient) DeleteSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client GuestUsagesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets a Guest Usages resource for the Microsoft.AzureActiveDirectory resource provider +// Parameters: +// resourceGroupName - the name of the resource group. +// resourceName - the initial domain name of the AAD tenant. +func (client GuestUsagesClient) Get(ctx context.Context, resourceGroupName string, resourceName string) (result GuestUsagesResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/GuestUsagesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, resourceName) + if err != nil { + err = autorest.NewErrorWithError(err, "azureadb2c.GuestUsagesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "azureadb2c.GuestUsagesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "azureadb2c.GuestUsagesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client GuestUsagesClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "resourceName": autorest.Encode("path", resourceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-05-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureActiveDirectory/guestUsages/{resourceName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client GuestUsagesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client GuestUsagesClient) GetResponder(resp *http.Response) (result GuestUsagesResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByResourceGroup gets Guest Usages resources under a resource group for the Microsoft.AzureActiveDirectory +// resource provider +// Parameters: +// resourceGroupName - the name of the resource group. +func (client GuestUsagesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result GuestUsagesResourceList, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/GuestUsagesClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "azureadb2c.GuestUsagesClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "azureadb2c.GuestUsagesClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "azureadb2c.GuestUsagesClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client GuestUsagesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-05-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureActiveDirectory/guestUsages", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client GuestUsagesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client GuestUsagesClient) ListByResourceGroupResponder(resp *http.Response) (result GuestUsagesResourceList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListBySubscription gets Guest Usages resources under a subscription for the Microsoft.AzureActiveDirectory resource +// provider +func (client GuestUsagesClient) ListBySubscription(ctx context.Context) (result GuestUsagesResourceList, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/GuestUsagesClient.ListBySubscription") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListBySubscriptionPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "azureadb2c.GuestUsagesClient", "ListBySubscription", nil, "Failure preparing request") + return + } + + resp, err := client.ListBySubscriptionSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "azureadb2c.GuestUsagesClient", "ListBySubscription", resp, "Failure sending request") + return + } + + result, err = client.ListBySubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "azureadb2c.GuestUsagesClient", "ListBySubscription", resp, "Failure responding to request") + return + } + + return +} + +// ListBySubscriptionPreparer prepares the ListBySubscription request. +func (client GuestUsagesClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-05-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.AzureActiveDirectory/guestUsages", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListBySubscriptionSender sends the ListBySubscription request. The method will close the +// http.Response Body if it receives an error. +func (client GuestUsagesClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always +// closes the http.Response Body. +func (client GuestUsagesClient) ListBySubscriptionResponder(resp *http.Response) (result GuestUsagesResourceList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Update updates a Guest Usages resource for the Microsoft.AzureActiveDirectory resource provider +// Parameters: +// resourceGroupName - the name of the resource group. +// resourceName - the initial domain name of the AAD tenant. +// resourcePatch - guest Usages Resource to be updated +func (client GuestUsagesClient) Update(ctx context.Context, resourceGroupName string, resourceName string, resourcePatch *GuestUsagesResourcePatch) (result GuestUsagesResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/GuestUsagesClient.Update") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdatePreparer(ctx, resourceGroupName, resourceName, resourcePatch) + if err != nil { + err = autorest.NewErrorWithError(err, "azureadb2c.GuestUsagesClient", "Update", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "azureadb2c.GuestUsagesClient", "Update", resp, "Failure sending request") + return + } + + result, err = client.UpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "azureadb2c.GuestUsagesClient", "Update", resp, "Failure responding to request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client GuestUsagesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, resourcePatch *GuestUsagesResourcePatch) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "resourceName": autorest.Encode("path", resourceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-05-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureActiveDirectory/guestUsages/{resourceName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if resourcePatch != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(resourcePatch)) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client GuestUsagesClient) UpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client GuestUsagesClient) UpdateResponder(resp *http.Response) (result GuestUsagesResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/models.go b/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/models.go new file mode 100644 index 000000000000..063e32d9f15a --- /dev/null +++ b/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/models.go @@ -0,0 +1,228 @@ +package azureadb2c + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "encoding/json" + "github.com/Azure/go-autorest/autorest" +) + +// The package's fully qualified name. +const fqdn = "github.com/Azure/azure-sdk-for-go/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c" + +// CloudError an error response for a resource management request. +type CloudError struct { + Error *ErrorResponse `json:"error,omitempty"` +} + +// ErrorAdditionalInfo the resource management error additional info. +type ErrorAdditionalInfo struct { + // Type - READ-ONLY; The additional info type. + Type *string `json:"type,omitempty"` + // Info - READ-ONLY; The additional info. + Info interface{} `json:"info,omitempty"` +} + +// ErrorResponse common error response for all Azure Resource Manager APIs to return error details for +// failed operations. (This also follows the OData error response format.) +type ErrorResponse struct { + // Code - READ-ONLY; The error code. + Code *string `json:"code,omitempty"` + // Message - READ-ONLY; The error message. + Message *string `json:"message,omitempty"` + // Target - READ-ONLY; The error target. + Target *string `json:"target,omitempty"` + // Details - READ-ONLY; The error details. + Details *[]ErrorResponse `json:"details,omitempty"` + // AdditionalInfo - READ-ONLY; The error additional info. + AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` +} + +// GuestUsagesResource guest Usages Resource +type GuestUsagesResource struct { + autorest.Response `json:"-"` + // ID - READ-ONLY; An identifier that represents the Guest Usages resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the Guest Usages resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the Guest Usages resource. + Type *string `json:"type,omitempty"` + // Location - Location of the Guest Usages resource. + Location *string `json:"location,omitempty"` + // Tags - Key-value pairs of additional resource provisioning properties. + Tags map[string]*string `json:"tags"` + // GuestUsagesResourceProperties - The Guest Usages Resource Properties + *GuestUsagesResourceProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for GuestUsagesResource. +func (gur GuestUsagesResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if gur.Location != nil { + objectMap["location"] = gur.Location + } + if gur.Tags != nil { + objectMap["tags"] = gur.Tags + } + if gur.GuestUsagesResourceProperties != nil { + objectMap["properties"] = gur.GuestUsagesResourceProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for GuestUsagesResource struct. +func (gur *GuestUsagesResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + gur.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + gur.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + gur.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + gur.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + gur.Tags = tags + } + case "properties": + if v != nil { + var guestUsagesResourceProperties GuestUsagesResourceProperties + err = json.Unmarshal(*v, &guestUsagesResourceProperties) + if err != nil { + return err + } + gur.GuestUsagesResourceProperties = &guestUsagesResourceProperties + } + } + } + + return nil +} + +// GuestUsagesResourceList the collection of guest usages resources +type GuestUsagesResourceList struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of guest usages resources + Value *[]GuestUsagesResource `json:"value,omitempty"` +} + +// GuestUsagesResourcePatch guest Usages Resource for Patch +type GuestUsagesResourcePatch struct { + // Tags - Key-value pairs of additional resource provisioning properties. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for GuestUsagesResourcePatch. +func (gurp GuestUsagesResourcePatch) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if gurp.Tags != nil { + objectMap["tags"] = gurp.Tags + } + return json.Marshal(objectMap) +} + +// GuestUsagesResourceProperties guest Usages Resource Properties +type GuestUsagesResourceProperties struct { + // TenantID - An identifier for the tenant for which the resource is being created + TenantID *string `json:"tenantId,omitempty"` +} + +// Operation microsoft.AzureActiveDirectory REST API operation. +type Operation struct { + // Name - READ-ONLY; Operation name: {provider}/{resource}/{operation}. + Name *string `json:"name,omitempty"` + // Display - The object that represents the operation. + Display *OperationDisplay `json:"display,omitempty"` +} + +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if o.Display != nil { + objectMap["display"] = o.Display + } + return json.Marshal(objectMap) +} + +// OperationDisplay the object that represents the operation. +type OperationDisplay struct { + // Provider - READ-ONLY; Service provider: Microsoft.AzureActiveDirectory. + Provider *string `json:"provider,omitempty"` + // Resource - READ-ONLY; Resource on which the operation is performed: GuestUsages, etc. + Resource *string `json:"resource,omitempty"` + // Operation - READ-ONLY; Operation type: Read, write, delete, etc. + Operation *string `json:"operation,omitempty"` + // Description - Friendly name of the operation + Description *string `json:"description,omitempty"` +} + +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if o.Description != nil { + objectMap["description"] = o.Description + } + return json.Marshal(objectMap) +} + +// OperationListResult result of listing operations for the resourceProvider +type OperationListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of cpim service operations supported by the Microsoft.AzureActiveDirectory resource provider. + Value *[]Operation `json:"value,omitempty"` +} diff --git a/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/operations.go b/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/operations.go new file mode 100644 index 000000000000..a9581f29f7c6 --- /dev/null +++ b/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/operations.go @@ -0,0 +1,109 @@ +package azureadb2c + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// OperationsClient is the CPIM Configuration Client +type OperationsClient struct { + BaseClient +} + +// NewOperationsClient creates an instance of the OperationsClient client. +func NewOperationsClient(subscriptionID string) OperationsClient { + return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { + return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List lists the operations available from this provider. +func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "azureadb2c.OperationsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "azureadb2c.OperationsClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "azureadb2c.OperationsClient", "List", resp, "Failure responding to request") + return + } + + return +} + +// ListPreparer prepares the List request. +func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + const APIVersion = "2020-05-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPath("/providers/Microsoft.AzureActiveDirectory/operations"), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/version.go b/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/version.go new file mode 100644 index 000000000000..502a6d6c0265 --- /dev/null +++ b/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/version.go @@ -0,0 +1,30 @@ +package azureadb2c + +import "github.com/Azure/azure-sdk-for-go/version" + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UserAgent returns the UserAgent string to use when sending http.Requests. +func UserAgent() string { + return "Azure-SDK-For-Go/" + Version() + " azureadb2c/2020-05-01-preview" +} + +// Version returns the semantic version (see http://semver.org) of the client. +func Version() string { + return version.Number +} From e99588fdad8b9c20e30af72b49ed32ed31d6027a Mon Sep 17 00:00:00 2001 From: arcturusZhang Date: Thu, 17 Dec 2020 12:24:16 +0800 Subject: [PATCH 08/12] Generated from tags [package-2018-06] of specification/datafactory/resource-manager/readme.md (commit hash: 3a3a9452f965a227ce43e6b545035b99dd175f23) --- .../datafactory/mgmt/datafactory/models.go | 2 + .../datafactory/mgmt/datafactory/models.go | 2 + .../mgmt/2018-06-01/datafactory/CHANGELOG.md | 48 ++++--------------- .../datafactory/dataflowdebugsession.go | 21 ++++---- .../mgmt/2018-06-01/datafactory/dataflows.go | 6 +-- .../mgmt/2018-06-01/datafactory/datasets.go | 11 +---- .../mgmt/2018-06-01/datafactory/factories.go | 23 ++------- .../datafactory/integrationruntimes.go | 6 +-- .../2018-06-01/datafactory/linkedservices.go | 11 +---- .../datafactory/managedprivateendpoints.go | 2 +- .../datafactory/managedvirtualnetworks.go | 2 +- .../mgmt/2018-06-01/datafactory/models.go | 39 ++++++++++++++- .../mgmt/2018-06-01/datafactory/operations.go | 2 +- .../mgmt/2018-06-01/datafactory/pipelines.go | 2 +- .../mgmt/2018-06-01/datafactory/triggers.go | 6 +-- 15 files changed, 79 insertions(+), 104 deletions(-) diff --git a/profiles/latest/datafactory/mgmt/datafactory/models.go b/profiles/latest/datafactory/mgmt/datafactory/models.go index e6df9910c675..bf5401b2a239 100644 --- a/profiles/latest/datafactory/mgmt/datafactory/models.go +++ b/profiles/latest/datafactory/mgmt/datafactory/models.go @@ -1523,6 +1523,7 @@ type BlobSink = original.BlobSink type BlobSource = original.BlobSource type BlobTrigger = original.BlobTrigger type BlobTriggerTypeProperties = original.BlobTriggerTypeProperties +type CMKIdentityDefinition = original.CMKIdentityDefinition type CassandraLinkedService = original.CassandraLinkedService type CassandraLinkedServiceTypeProperties = original.CassandraLinkedServiceTypeProperties type CassandraSource = original.CassandraSource @@ -1678,6 +1679,7 @@ type EloquaLinkedService = original.EloquaLinkedService type EloquaLinkedServiceTypeProperties = original.EloquaLinkedServiceTypeProperties type EloquaObjectDataset = original.EloquaObjectDataset type EloquaSource = original.EloquaSource +type EncryptionConfiguration = original.EncryptionConfiguration type EntityReference = original.EntityReference type EnvironmentVariableSetup = original.EnvironmentVariableSetup type EnvironmentVariableSetupTypeProperties = original.EnvironmentVariableSetupTypeProperties diff --git a/profiles/preview/datafactory/mgmt/datafactory/models.go b/profiles/preview/datafactory/mgmt/datafactory/models.go index afa6653c0c47..dae501e876be 100644 --- a/profiles/preview/datafactory/mgmt/datafactory/models.go +++ b/profiles/preview/datafactory/mgmt/datafactory/models.go @@ -1523,6 +1523,7 @@ type BlobSink = original.BlobSink type BlobSource = original.BlobSource type BlobTrigger = original.BlobTrigger type BlobTriggerTypeProperties = original.BlobTriggerTypeProperties +type CMKIdentityDefinition = original.CMKIdentityDefinition type CassandraLinkedService = original.CassandraLinkedService type CassandraLinkedServiceTypeProperties = original.CassandraLinkedServiceTypeProperties type CassandraSource = original.CassandraSource @@ -1678,6 +1679,7 @@ type EloquaLinkedService = original.EloquaLinkedService type EloquaLinkedServiceTypeProperties = original.EloquaLinkedServiceTypeProperties type EloquaObjectDataset = original.EloquaObjectDataset type EloquaSource = original.EloquaSource +type EncryptionConfiguration = original.EncryptionConfiguration type EntityReference = original.EntityReference type EnvironmentVariableSetup = original.EnvironmentVariableSetup type EnvironmentVariableSetupTypeProperties = original.EnvironmentVariableSetupTypeProperties diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/CHANGELOG.md b/services/datafactory/mgmt/2018-06-01/datafactory/CHANGELOG.md index 42abe2561cb3..9ad829681080 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/CHANGELOG.md +++ b/services/datafactory/mgmt/2018-06-01/datafactory/CHANGELOG.md @@ -1,43 +1,15 @@ -Generated from https://github.com/Azure/azure-rest-api-specs/tree/3c764635e7d442b3e74caf593029fcd440b3ef82 +Generated from https://github.com/Azure/azure-rest-api-specs/tree/3a3a9452f965a227ce43e6b545035b99dd175f23 -Code generator @microsoft.azure/autorest.go@~2.1.161 +Code generator @microsoft.azure/autorest.go@~2.1.165 -## Breaking Changes +## Struct Changes -- Function `NewOperationListResponsePage` parameter(s) have been changed from `(func(context.Context, OperationListResponse) (OperationListResponse, error))` to `(OperationListResponse, func(context.Context, OperationListResponse) (OperationListResponse, error))` -- Function `NewFactoryListResponsePage` parameter(s) have been changed from `(func(context.Context, FactoryListResponse) (FactoryListResponse, error))` to `(FactoryListResponse, func(context.Context, FactoryListResponse) (FactoryListResponse, error))` -- Function `NewLinkedServiceListResponsePage` parameter(s) have been changed from `(func(context.Context, LinkedServiceListResponse) (LinkedServiceListResponse, error))` to `(LinkedServiceListResponse, func(context.Context, LinkedServiceListResponse) (LinkedServiceListResponse, error))` -- Function `NewTriggerListResponsePage` parameter(s) have been changed from `(func(context.Context, TriggerListResponse) (TriggerListResponse, error))` to `(TriggerListResponse, func(context.Context, TriggerListResponse) (TriggerListResponse, error))` -- Function `NewManagedVirtualNetworkListResponsePage` parameter(s) have been changed from `(func(context.Context, ManagedVirtualNetworkListResponse) (ManagedVirtualNetworkListResponse, error))` to `(ManagedVirtualNetworkListResponse, func(context.Context, ManagedVirtualNetworkListResponse) (ManagedVirtualNetworkListResponse, error))` -- Function `NewIntegrationRuntimeListResponsePage` parameter(s) have been changed from `(func(context.Context, IntegrationRuntimeListResponse) (IntegrationRuntimeListResponse, error))` to `(IntegrationRuntimeListResponse, func(context.Context, IntegrationRuntimeListResponse) (IntegrationRuntimeListResponse, error))` -- Function `NewDatasetListResponsePage` parameter(s) have been changed from `(func(context.Context, DatasetListResponse) (DatasetListResponse, error))` to `(DatasetListResponse, func(context.Context, DatasetListResponse) (DatasetListResponse, error))` -- Function `NewPipelineListResponsePage` parameter(s) have been changed from `(func(context.Context, PipelineListResponse) (PipelineListResponse, error))` to `(PipelineListResponse, func(context.Context, PipelineListResponse) (PipelineListResponse, error))` -- Function `NewQueryDataFlowDebugSessionsResponsePage` parameter(s) have been changed from `(func(context.Context, QueryDataFlowDebugSessionsResponse) (QueryDataFlowDebugSessionsResponse, error))` to `(QueryDataFlowDebugSessionsResponse, func(context.Context, QueryDataFlowDebugSessionsResponse) (QueryDataFlowDebugSessionsResponse, error))` -- Function `NewManagedPrivateEndpointListResponsePage` parameter(s) have been changed from `(func(context.Context, ManagedPrivateEndpointListResponse) (ManagedPrivateEndpointListResponse, error))` to `(ManagedPrivateEndpointListResponse, func(context.Context, ManagedPrivateEndpointListResponse) (ManagedPrivateEndpointListResponse, error))` -- Function `NewDataFlowListResponsePage` parameter(s) have been changed from `(func(context.Context, DataFlowListResponse) (DataFlowListResponse, error))` to `(DataFlowListResponse, func(context.Context, DataFlowListResponse) (DataFlowListResponse, error))` -- Type of `NetezzaSource.PartitionOption` has been changed from `NetezzaPartitionOption` to `interface{}` -- Type of `SapHanaSource.PartitionOption` has been changed from `SapHanaPartitionOption` to `interface{}` -- Type of `SQLSource.PartitionOption` has been changed from `SQLPartitionOption` to `interface{}` -- Type of `AzureSQLSource.PartitionOption` has been changed from `SQLPartitionOption` to `interface{}` -- Type of `OracleSource.PartitionOption` has been changed from `OraclePartitionOption` to `interface{}` -- Type of `TeradataSource.PartitionOption` has been changed from `TeradataPartitionOption` to `interface{}` -- Type of `SapTableSource.PartitionOption` has been changed from `SapTablePartitionOption` to `interface{}` -- Type of `SQLMISource.PartitionOption` has been changed from `SQLPartitionOption` to `interface{}` -- Type of `SQLDWSource.PartitionOption` has been changed from `SQLPartitionOption` to `interface{}` -- Type of `SQLServerSource.PartitionOption` has been changed from `SQLPartitionOption` to `interface{}` -- Type of `ExecuteDataFlowActivityTypePropertiesCompute.ComputeType` has been changed from `DataFlowComputeType` to `interface{}` -- Type of `ExecuteDataFlowActivityTypePropertiesCompute.CoreCount` has been changed from `*int32` to `interface{}` +### New Structs -## New Content +1. CMKIdentityDefinition +1. EncryptionConfiguration -- New const `TumblingWindowFrequencyMonth` -- New struct `CopyActivityLogSettings` -- New struct `LogLocationSettings` -- New struct `LogSettings` -- New field `ContinueOnError` in struct `ExecuteDataFlowActivityTypeProperties` -- New field `RunConcurrently` in struct `ExecuteDataFlowActivityTypeProperties` -- New field `TraceLevel` in struct `ExecuteDataFlowActivityTypeProperties` -- New field `ConnectionProperties` in struct `ConcurLinkedServiceTypeProperties` -- New field `LogSettings` in struct `CopyActivityTypeProperties` -- New field `AuthenticationType` in struct `AmazonS3LinkedServiceTypeProperties` -- New field `SessionToken` in struct `AmazonS3LinkedServiceTypeProperties` +### New Struct Fields + +1. FactoryIdentity.UserAssignedIdentities +1. FactoryProperties.Encryption diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/dataflowdebugsession.go b/services/datafactory/mgmt/2018-06-01/datafactory/dataflowdebugsession.go index 1cc9f3ef594c..d7c3b665487b 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/dataflowdebugsession.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/dataflowdebugsession.go @@ -70,14 +70,12 @@ func (client DataFlowDebugSessionClient) AddDataFlow(ctx context.Context, resour {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, {TargetValue: request, - Constraints: []validation.Constraint{{Target: "request.DataFlow", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "request.DataFlow.Properties", Name: validation.Null, Rule: true, Chain: nil}}}, - {Target: "request.Staging", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "request.Staging.LinkedService", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "request.Staging.LinkedService.Type", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "request.Staging.LinkedService.ReferenceName", Name: validation.Null, Rule: true, Chain: nil}, - }}, - }}}}}); err != nil { + Constraints: []validation.Constraint{{Target: "request.Staging", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "request.Staging.LinkedService", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "request.Staging.LinkedService.Type", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "request.Staging.LinkedService.ReferenceName", Name: validation.Null, Rule: true, Chain: nil}, + }}, + }}}}}); err != nil { return result, validation.NewError("datafactory.DataFlowDebugSessionClient", "AddDataFlow", err.Error()) } @@ -168,10 +166,7 @@ func (client DataFlowDebugSessionClient) Create(ctx context.Context, resourceGro {TargetValue: factoryName, Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: request, - Constraints: []validation.Constraint{{Target: "request.IntegrationRuntime", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "request.IntegrationRuntime.Properties", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { + {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}}); err != nil { return result, validation.NewError("datafactory.DataFlowDebugSessionClient", "Create", err.Error()) } @@ -468,6 +463,7 @@ func (client DataFlowDebugSessionClient) QueryByFactory(ctx context.Context, res } if result.qdfdsr.hasNextLink() && result.qdfdsr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -529,7 +525,6 @@ func (client DataFlowDebugSessionClient) queryByFactoryNextResults(ctx context.C result, err = client.QueryByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.DataFlowDebugSessionClient", "queryByFactoryNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/dataflows.go b/services/datafactory/mgmt/2018-06-01/datafactory/dataflows.go index 3c3cc4a63935..d0294d56ea6b 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/dataflows.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/dataflows.go @@ -74,9 +74,7 @@ func (client DataFlowsClient) CreateOrUpdate(ctx context.Context, resourceGroupN {TargetValue: dataFlowName, Constraints: []validation.Constraint{{Target: "dataFlowName", Name: validation.MaxLength, Rule: 260, Chain: nil}, {Target: "dataFlowName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "dataFlowName", Name: validation.Pattern, Rule: `^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$`, Chain: nil}}}, - {TargetValue: dataFlow, - Constraints: []validation.Constraint{{Target: "dataFlow.Properties", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + {Target: "dataFlowName", Name: validation.Pattern, Rule: `^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$`, Chain: nil}}}}); err != nil { return result, validation.NewError("datafactory.DataFlowsClient", "CreateOrUpdate", err.Error()) } @@ -389,6 +387,7 @@ func (client DataFlowsClient) ListByFactory(ctx context.Context, resourceGroupNa } if result.dflr.hasNextLink() && result.dflr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -450,7 +449,6 @@ func (client DataFlowsClient) listByFactoryNextResults(ctx context.Context, last result, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.DataFlowsClient", "listByFactoryNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/datasets.go b/services/datafactory/mgmt/2018-06-01/datafactory/datasets.go index bd2378259f66..6e5cd8700ad6 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/datasets.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/datasets.go @@ -74,14 +74,7 @@ func (client DatasetsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa {TargetValue: datasetName, Constraints: []validation.Constraint{{Target: "datasetName", Name: validation.MaxLength, Rule: 260, Chain: nil}, {Target: "datasetName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "datasetName", Name: validation.Pattern, Rule: `^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$`, Chain: nil}}}, - {TargetValue: dataset, - Constraints: []validation.Constraint{{Target: "dataset.Properties", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "dataset.Properties.LinkedServiceName", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "dataset.Properties.LinkedServiceName.Type", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "dataset.Properties.LinkedServiceName.ReferenceName", Name: validation.Null, Rule: true, Chain: nil}, - }}, - }}}}}); err != nil { + {Target: "datasetName", Name: validation.Pattern, Rule: `^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$`, Chain: nil}}}}); err != nil { return result, validation.NewError("datafactory.DatasetsClient", "CreateOrUpdate", err.Error()) } @@ -394,6 +387,7 @@ func (client DatasetsClient) ListByFactory(ctx context.Context, resourceGroupNam } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -455,7 +449,6 @@ func (client DatasetsClient) listByFactoryNextResults(ctx context.Context, lastR result, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.DatasetsClient", "listByFactoryNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/factories.go b/services/datafactory/mgmt/2018-06-01/datafactory/factories.go index 24f959133801..b137c8aa0c8a 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/factories.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/factories.go @@ -58,17 +58,6 @@ func (client FactoriesClient) ConfigureFactoryRepo(ctx context.Context, location tracing.EndSpan(ctx, sc, err) }() } - if err := validation.Validate([]validation.Validation{ - {TargetValue: factoryRepoUpdate, - Constraints: []validation.Constraint{{Target: "factoryRepoUpdate.RepoConfiguration", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "factoryRepoUpdate.RepoConfiguration.AccountName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "factoryRepoUpdate.RepoConfiguration.RepositoryName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "factoryRepoUpdate.RepoConfiguration.CollaborationBranch", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "factoryRepoUpdate.RepoConfiguration.RootFolder", Name: validation.Null, Rule: true, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("datafactory.FactoriesClient", "ConfigureFactoryRepo", err.Error()) - } - req, err := client.ConfigureFactoryRepoPreparer(ctx, locationID, factoryRepoUpdate) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "ConfigureFactoryRepo", nil, "Failure preparing request") @@ -162,11 +151,9 @@ func (client FactoriesClient) CreateOrUpdate(ctx context.Context, resourceGroupN Constraints: []validation.Constraint{{Target: "factory.Identity", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "factory.Identity.Type", Name: validation.Null, Rule: true, Chain: nil}}}, {Target: "factory.FactoryProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "factory.FactoryProperties.RepoConfiguration", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "factory.FactoryProperties.RepoConfiguration.AccountName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "factory.FactoryProperties.RepoConfiguration.RepositoryName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "factory.FactoryProperties.RepoConfiguration.CollaborationBranch", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "factory.FactoryProperties.RepoConfiguration.RootFolder", Name: validation.Null, Rule: true, Chain: nil}, + Chain: []validation.Constraint{{Target: "factory.FactoryProperties.Encryption", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "factory.FactoryProperties.Encryption.KeyName", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "factory.FactoryProperties.Encryption.VaultBaseURL", Name: validation.Null, Rule: true, Chain: nil}, }}, }}}}}); err != nil { return result, validation.NewError("datafactory.FactoriesClient", "CreateOrUpdate", err.Error()) @@ -638,6 +625,7 @@ func (client FactoriesClient) List(ctx context.Context) (result FactoryListRespo } if result.flr.hasNextLink() && result.flr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -697,7 +685,6 @@ func (client FactoriesClient) listNextResults(ctx context.Context, lastResults F result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "listNextResults", resp, "Failure responding to next results request") - return } return } @@ -761,6 +748,7 @@ func (client FactoriesClient) ListByResourceGroup(ctx context.Context, resourceG } if result.flr.hasNextLink() && result.flr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -821,7 +809,6 @@ func (client FactoriesClient) listByResourceGroupNextResults(ctx context.Context result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/integrationruntimes.go b/services/datafactory/mgmt/2018-06-01/datafactory/integrationruntimes.go index ffe500a1d3db..dd0389396753 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/integrationruntimes.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/integrationruntimes.go @@ -172,9 +172,7 @@ func (client IntegrationRuntimesClient) CreateOrUpdate(ctx context.Context, reso {TargetValue: integrationRuntimeName, Constraints: []validation.Constraint{{Target: "integrationRuntimeName", Name: validation.MaxLength, Rule: 63, Chain: nil}, {Target: "integrationRuntimeName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: integrationRuntime, - Constraints: []validation.Constraint{{Target: "integrationRuntime.Properties", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + {Target: "integrationRuntimeName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}}); err != nil { return result, validation.NewError("datafactory.IntegrationRuntimesClient", "CreateOrUpdate", err.Error()) } @@ -865,6 +863,7 @@ func (client IntegrationRuntimesClient) ListByFactory(ctx context.Context, resou } if result.irlr.hasNextLink() && result.irlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -926,7 +925,6 @@ func (client IntegrationRuntimesClient) listByFactoryNextResults(ctx context.Con result, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "listByFactoryNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/linkedservices.go b/services/datafactory/mgmt/2018-06-01/datafactory/linkedservices.go index f093a1ff144c..229cc9be2182 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/linkedservices.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/linkedservices.go @@ -74,14 +74,7 @@ func (client LinkedServicesClient) CreateOrUpdate(ctx context.Context, resourceG {TargetValue: linkedServiceName, Constraints: []validation.Constraint{{Target: "linkedServiceName", Name: validation.MaxLength, Rule: 260, Chain: nil}, {Target: "linkedServiceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "linkedServiceName", Name: validation.Pattern, Rule: `^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$`, Chain: nil}}}, - {TargetValue: linkedService, - Constraints: []validation.Constraint{{Target: "linkedService.Properties", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "linkedService.Properties.ConnectVia", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "linkedService.Properties.ConnectVia.Type", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "linkedService.Properties.ConnectVia.ReferenceName", Name: validation.Null, Rule: true, Chain: nil}, - }}, - }}}}}); err != nil { + {Target: "linkedServiceName", Name: validation.Pattern, Rule: `^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$`, Chain: nil}}}}); err != nil { return result, validation.NewError("datafactory.LinkedServicesClient", "CreateOrUpdate", err.Error()) } @@ -394,6 +387,7 @@ func (client LinkedServicesClient) ListByFactory(ctx context.Context, resourceGr } if result.lslr.hasNextLink() && result.lslr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -455,7 +449,6 @@ func (client LinkedServicesClient) listByFactoryNextResults(ctx context.Context, result, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.LinkedServicesClient", "listByFactoryNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/managedprivateendpoints.go b/services/datafactory/mgmt/2018-06-01/datafactory/managedprivateendpoints.go index ded336867cc9..e4cf3ace2930 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/managedprivateendpoints.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/managedprivateendpoints.go @@ -413,6 +413,7 @@ func (client ManagedPrivateEndpointsClient) ListByFactory(ctx context.Context, r } if result.mpelr.hasNextLink() && result.mpelr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -475,7 +476,6 @@ func (client ManagedPrivateEndpointsClient) listByFactoryNextResults(ctx context result, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.ManagedPrivateEndpointsClient", "listByFactoryNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/managedvirtualnetworks.go b/services/datafactory/mgmt/2018-06-01/datafactory/managedvirtualnetworks.go index 7dd2042f54a0..fd47665f703a 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/managedvirtualnetworks.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/managedvirtualnetworks.go @@ -297,6 +297,7 @@ func (client ManagedVirtualNetworksClient) ListByFactory(ctx context.Context, re } if result.mvnlr.hasNextLink() && result.mvnlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -358,7 +359,6 @@ func (client ManagedVirtualNetworksClient) listByFactoryNextResults(ctx context. result, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.ManagedVirtualNetworksClient", "listByFactoryNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/models.go b/services/datafactory/mgmt/2018-06-01/datafactory/models.go index 390d8198ab57..a34721a6f74c 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/models.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/models.go @@ -52349,6 +52349,12 @@ func (cstp *CmdkeySetupTypeProperties) UnmarshalJSON(body []byte) error { return nil } +// CMKIdentityDefinition managed Identity used for CMK. +type CMKIdentityDefinition struct { + // UserAssignedIdentity - The resource id of the user assigned identity to authenticate to customer's key vault. + UserAssignedIdentity *string `json:"userAssignedIdentity,omitempty"` +} + // CommonDataServiceForAppsEntityDataset the Common Data Service for Apps entity dataset. type CommonDataServiceForAppsEntityDataset struct { // CommonDataServiceForAppsEntityDatasetTypeProperties - Common Data Service for Apps entity dataset properties. @@ -90109,6 +90115,18 @@ func (es *EloquaSource) UnmarshalJSON(body []byte) error { return nil } +// EncryptionConfiguration definition of CMK for the factory. +type EncryptionConfiguration struct { + // KeyName - The name of the key in Azure Key Vault to use as Customer Managed Key. + KeyName *string `json:"keyName,omitempty"` + // VaultBaseURL - The url of the Azure Key Vault used for CMK. + VaultBaseURL *string `json:"vaultBaseUrl,omitempty"` + // KeyVersion - The version of the key used for CMK. If not provided, latest version will be used. + KeyVersion *string `json:"keyVersion,omitempty"` + // Identity - User assigned identity to use to authenticate to customer's key vault. If not provided Managed Service Identity will be used. + Identity *CMKIdentityDefinition `json:"identity,omitempty"` +} + // EntityReference the entity reference. type EntityReference struct { // Type - The type of this referenced entity. Possible values include: 'IntegrationRuntimeEntityReferenceTypeIntegrationRuntimeReference', 'IntegrationRuntimeEntityReferenceTypeLinkedServiceReference' @@ -93566,12 +93584,14 @@ func (fghc FactoryGitHubConfiguration) AsBasicFactoryRepoConfiguration() (BasicF // FactoryIdentity identity properties of the factory resource. type FactoryIdentity struct { - // Type - The identity type. Currently the only supported type is 'SystemAssigned'. + // Type - The identity type. Type *string `json:"type,omitempty"` // PrincipalID - READ-ONLY; The principal id of the identity. PrincipalID *uuid.UUID `json:"principalId,omitempty"` // TenantID - READ-ONLY; The client tenant id of the identity. TenantID *uuid.UUID `json:"tenantId,omitempty"` + // UserAssignedIdentities - List of user assigned identities for the factory. + UserAssignedIdentities map[string]interface{} `json:"userAssignedIdentities"` } // MarshalJSON is the custom marshaler for FactoryIdentity. @@ -93580,6 +93600,9 @@ func (fi FactoryIdentity) MarshalJSON() ([]byte, error) { if fi.Type != nil { objectMap["type"] = fi.Type } + if fi.UserAssignedIdentities != nil { + objectMap["userAssignedIdentities"] = fi.UserAssignedIdentities + } return json.Marshal(objectMap) } @@ -93754,6 +93777,8 @@ type FactoryProperties struct { RepoConfiguration BasicFactoryRepoConfiguration `json:"repoConfiguration,omitempty"` // GlobalParameters - List of parameters for factory. GlobalParameters map[string]*GlobalParameterSpecification `json:"globalParameters"` + // Encryption - Properties to enable Customer Managed Key for the factory. + Encryption *EncryptionConfiguration `json:"encryption,omitempty"` // PublicNetworkAccess - Whether or not public network access is allowed for the data factory. Possible values include: 'PublicNetworkAccessEnabled', 'PublicNetworkAccessDisabled' PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` } @@ -93765,6 +93790,9 @@ func (fp FactoryProperties) MarshalJSON() ([]byte, error) { if fp.GlobalParameters != nil { objectMap["globalParameters"] = fp.GlobalParameters } + if fp.Encryption != nil { + objectMap["encryption"] = fp.Encryption + } if fp.PublicNetworkAccess != "" { objectMap["publicNetworkAccess"] = fp.PublicNetworkAccess } @@ -93824,6 +93852,15 @@ func (fp *FactoryProperties) UnmarshalJSON(body []byte) error { } fp.GlobalParameters = globalParameters } + case "encryption": + if v != nil { + var encryption EncryptionConfiguration + err = json.Unmarshal(*v, &encryption) + if err != nil { + return err + } + fp.Encryption = &encryption + } case "publicNetworkAccess": if v != nil { var publicNetworkAccess PublicNetworkAccess diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/operations.go b/services/datafactory/mgmt/2018-06-01/datafactory/operations.go index 389f786c718f..33180a8e1653 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/operations.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/operations.go @@ -75,6 +75,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -130,7 +131,6 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.OperationsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/pipelines.go b/services/datafactory/mgmt/2018-06-01/datafactory/pipelines.go index 1c0d920190f1..bc2c8d48d269 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/pipelines.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/pipelines.go @@ -513,6 +513,7 @@ func (client PipelinesClient) ListByFactory(ctx context.Context, resourceGroupNa } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -574,7 +575,6 @@ func (client PipelinesClient) listByFactoryNextResults(ctx context.Context, last result, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "listByFactoryNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/triggers.go b/services/datafactory/mgmt/2018-06-01/datafactory/triggers.go index d02cc2ab46fc..e9afb0d73205 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/triggers.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/triggers.go @@ -74,9 +74,7 @@ func (client TriggersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa {TargetValue: triggerName, Constraints: []validation.Constraint{{Target: "triggerName", Name: validation.MaxLength, Rule: 260, Chain: nil}, {Target: "triggerName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "triggerName", Name: validation.Pattern, Rule: `^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$`, Chain: nil}}}, - {TargetValue: trigger, - Constraints: []validation.Constraint{{Target: "trigger.Properties", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + {Target: "triggerName", Name: validation.Pattern, Rule: `^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$`, Chain: nil}}}}); err != nil { return result, validation.NewError("datafactory.TriggersClient", "CreateOrUpdate", err.Error()) } @@ -483,6 +481,7 @@ func (client TriggersClient) ListByFactory(ctx context.Context, resourceGroupNam } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -544,7 +543,6 @@ func (client TriggersClient) listByFactoryNextResults(ctx context.Context, lastR result, err = client.ListByFactoryResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "listByFactoryNextResults", resp, "Failure responding to next results request") - return } return } From 01d17d4f198dc71849b1fa36f93af79242a71dcb Mon Sep 17 00:00:00 2001 From: arcturusZhang Date: Thu, 17 Dec 2020 12:25:01 +0800 Subject: [PATCH 09/12] Generated from tags [package-2020-06] of specification/redis/resource-manager/readme.md (commit hash: 3a3a9452f965a227ce43e6b545035b99dd175f23) --- profiles/latest/redis/mgmt/redis/models.go | 86 +- .../redis/mgmt/redis/redisapi/models.go | 4 +- profiles/preview/redis/mgmt/redis/models.go | 86 +- .../redis/mgmt/redis/redisapi/models.go | 4 +- .../redis/mgmt/2020-06-01/redis/CHANGELOG.md | 5 + .../redis/mgmt/2020-06-01/redis/client.go | 52 + services/redis/mgmt/2020-06-01/redis/enums.go | 230 ++ .../mgmt/2020-06-01/redis/firewallrules.go | 406 +++ .../mgmt/2020-06-01/redis/linkedserver.go | 405 +++ .../redis/mgmt/2020-06-01/redis/models.go | 2291 +++++++++++++++++ .../redis/mgmt/2020-06-01/redis/operations.go | 151 ++ .../mgmt/2020-06-01/redis/patchschedules.go | 401 +++ .../redis/privateendpointconnections.go | 365 +++ .../2020-06-01/redis/privatelinkresources.go | 119 + services/redis/mgmt/2020-06-01/redis/redis.go | 1155 +++++++++ .../2020-06-01/redis/redisapi/interfaces.go | 103 + .../redis/mgmt/2020-06-01/redis/version.go | 30 + 17 files changed, 5865 insertions(+), 28 deletions(-) create mode 100644 services/redis/mgmt/2020-06-01/redis/CHANGELOG.md create mode 100644 services/redis/mgmt/2020-06-01/redis/client.go create mode 100644 services/redis/mgmt/2020-06-01/redis/enums.go create mode 100644 services/redis/mgmt/2020-06-01/redis/firewallrules.go create mode 100644 services/redis/mgmt/2020-06-01/redis/linkedserver.go create mode 100644 services/redis/mgmt/2020-06-01/redis/models.go create mode 100644 services/redis/mgmt/2020-06-01/redis/operations.go create mode 100644 services/redis/mgmt/2020-06-01/redis/patchschedules.go create mode 100644 services/redis/mgmt/2020-06-01/redis/privateendpointconnections.go create mode 100644 services/redis/mgmt/2020-06-01/redis/privatelinkresources.go create mode 100644 services/redis/mgmt/2020-06-01/redis/redis.go create mode 100644 services/redis/mgmt/2020-06-01/redis/redisapi/interfaces.go create mode 100644 services/redis/mgmt/2020-06-01/redis/version.go diff --git a/profiles/latest/redis/mgmt/redis/models.go b/profiles/latest/redis/mgmt/redis/models.go index 3356613a0e8f..e891c7da07a8 100644 --- a/profiles/latest/redis/mgmt/redis/models.go +++ b/profiles/latest/redis/mgmt/redis/models.go @@ -22,7 +22,7 @@ package redis import ( "context" - original "github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2018-03-01/redis" + original "github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2020-06-01/redis" ) const ( @@ -50,21 +50,45 @@ const ( Secondary KeyType = original.Secondary ) +type PrivateEndpointConnectionProvisioningState = original.PrivateEndpointConnectionProvisioningState + +const ( + Creating PrivateEndpointConnectionProvisioningState = original.Creating + Deleting PrivateEndpointConnectionProvisioningState = original.Deleting + Failed PrivateEndpointConnectionProvisioningState = original.Failed + Succeeded PrivateEndpointConnectionProvisioningState = original.Succeeded +) + +type PrivateEndpointServiceConnectionStatus = original.PrivateEndpointServiceConnectionStatus + +const ( + Approved PrivateEndpointServiceConnectionStatus = original.Approved + Pending PrivateEndpointServiceConnectionStatus = original.Pending + Rejected PrivateEndpointServiceConnectionStatus = original.Rejected +) + type ProvisioningState = original.ProvisioningState const ( - Creating ProvisioningState = original.Creating - Deleting ProvisioningState = original.Deleting - Disabled ProvisioningState = original.Disabled - Failed ProvisioningState = original.Failed - Linking ProvisioningState = original.Linking - Provisioning ProvisioningState = original.Provisioning - RecoveringScaleFailure ProvisioningState = original.RecoveringScaleFailure - Scaling ProvisioningState = original.Scaling - Succeeded ProvisioningState = original.Succeeded - Unlinking ProvisioningState = original.Unlinking - Unprovisioning ProvisioningState = original.Unprovisioning - Updating ProvisioningState = original.Updating + ProvisioningStateCreating ProvisioningState = original.ProvisioningStateCreating + ProvisioningStateDeleting ProvisioningState = original.ProvisioningStateDeleting + ProvisioningStateDisabled ProvisioningState = original.ProvisioningStateDisabled + ProvisioningStateFailed ProvisioningState = original.ProvisioningStateFailed + ProvisioningStateLinking ProvisioningState = original.ProvisioningStateLinking + ProvisioningStateProvisioning ProvisioningState = original.ProvisioningStateProvisioning + ProvisioningStateRecoveringScaleFailure ProvisioningState = original.ProvisioningStateRecoveringScaleFailure + ProvisioningStateScaling ProvisioningState = original.ProvisioningStateScaling + ProvisioningStateSucceeded ProvisioningState = original.ProvisioningStateSucceeded + ProvisioningStateUnlinking ProvisioningState = original.ProvisioningStateUnlinking + ProvisioningStateUnprovisioning ProvisioningState = original.ProvisioningStateUnprovisioning + ProvisioningStateUpdating ProvisioningState = original.ProvisioningStateUpdating +) + +type PublicNetworkAccess = original.PublicNetworkAccess + +const ( + Disabled PublicNetworkAccess = original.Disabled + Enabled PublicNetworkAccess = original.Enabled ) type RebootType = original.RebootType @@ -114,6 +138,9 @@ type CreateFuture = original.CreateFuture type CreateParameters = original.CreateParameters type CreateProperties = original.CreateProperties type DeleteFuture = original.DeleteFuture +type ErrorAdditionalInfo = original.ErrorAdditionalInfo +type ErrorDetail = original.ErrorDetail +type ErrorResponse = original.ErrorResponse type ExportDataFuture = original.ExportDataFuture type ExportRDBParameters = original.ExportRDBParameters type FirewallRule = original.FirewallRule @@ -126,6 +153,7 @@ type FirewallRulesClient = original.FirewallRulesClient type ForceRebootResponse = original.ForceRebootResponse type ImportDataFuture = original.ImportDataFuture type ImportRDBParameters = original.ImportRDBParameters +type InstanceDetails = original.InstanceDetails type LinkedServer = original.LinkedServer type LinkedServerClient = original.LinkedServerClient type LinkedServerCreateFuture = original.LinkedServerCreateFuture @@ -151,6 +179,17 @@ type PatchScheduleListResult = original.PatchScheduleListResult type PatchScheduleListResultIterator = original.PatchScheduleListResultIterator type PatchScheduleListResultPage = original.PatchScheduleListResultPage type PatchSchedulesClient = original.PatchSchedulesClient +type PrivateEndpoint = original.PrivateEndpoint +type PrivateEndpointConnection = original.PrivateEndpointConnection +type PrivateEndpointConnectionListResult = original.PrivateEndpointConnectionListResult +type PrivateEndpointConnectionProperties = original.PrivateEndpointConnectionProperties +type PrivateEndpointConnectionsClient = original.PrivateEndpointConnectionsClient +type PrivateEndpointConnectionsPutFuture = original.PrivateEndpointConnectionsPutFuture +type PrivateLinkResource = original.PrivateLinkResource +type PrivateLinkResourceListResult = original.PrivateLinkResourceListResult +type PrivateLinkResourceProperties = original.PrivateLinkResourceProperties +type PrivateLinkResourcesClient = original.PrivateLinkResourcesClient +type PrivateLinkServiceConnectionState = original.PrivateLinkServiceConnectionState type Properties = original.Properties type ProxyResource = original.ProxyResource type RebootParameters = original.RebootParameters @@ -228,6 +267,18 @@ func NewPatchSchedulesClient(subscriptionID string) PatchSchedulesClient { func NewPatchSchedulesClientWithBaseURI(baseURI string, subscriptionID string) PatchSchedulesClient { return original.NewPatchSchedulesClientWithBaseURI(baseURI, subscriptionID) } +func NewPrivateEndpointConnectionsClient(subscriptionID string) PrivateEndpointConnectionsClient { + return original.NewPrivateEndpointConnectionsClient(subscriptionID) +} +func NewPrivateEndpointConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointConnectionsClient { + return original.NewPrivateEndpointConnectionsClientWithBaseURI(baseURI, subscriptionID) +} +func NewPrivateLinkResourcesClient(subscriptionID string) PrivateLinkResourcesClient { + return original.NewPrivateLinkResourcesClient(subscriptionID) +} +func NewPrivateLinkResourcesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkResourcesClient { + return original.NewPrivateLinkResourcesClientWithBaseURI(baseURI, subscriptionID) +} func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { return original.NewWithBaseURI(baseURI, subscriptionID) } @@ -237,9 +288,18 @@ func PossibleDayOfWeekValues() []DayOfWeek { func PossibleKeyTypeValues() []KeyType { return original.PossibleKeyTypeValues() } +func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState { + return original.PossiblePrivateEndpointConnectionProvisioningStateValues() +} +func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus { + return original.PossiblePrivateEndpointServiceConnectionStatusValues() +} func PossibleProvisioningStateValues() []ProvisioningState { return original.PossibleProvisioningStateValues() } +func PossiblePublicNetworkAccessValues() []PublicNetworkAccess { + return original.PossiblePublicNetworkAccessValues() +} func PossibleRebootTypeValues() []RebootType { return original.PossibleRebootTypeValues() } diff --git a/profiles/latest/redis/mgmt/redis/redisapi/models.go b/profiles/latest/redis/mgmt/redis/redisapi/models.go index 42af71fb8234..9af3a5b444d2 100644 --- a/profiles/latest/redis/mgmt/redis/redisapi/models.go +++ b/profiles/latest/redis/mgmt/redis/redisapi/models.go @@ -19,10 +19,12 @@ package redisapi -import original "github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2018-03-01/redis/redisapi" +import original "github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2020-06-01/redis/redisapi" type ClientAPI = original.ClientAPI type FirewallRulesClientAPI = original.FirewallRulesClientAPI type LinkedServerClientAPI = original.LinkedServerClientAPI type OperationsClientAPI = original.OperationsClientAPI type PatchSchedulesClientAPI = original.PatchSchedulesClientAPI +type PrivateEndpointConnectionsClientAPI = original.PrivateEndpointConnectionsClientAPI +type PrivateLinkResourcesClientAPI = original.PrivateLinkResourcesClientAPI diff --git a/profiles/preview/redis/mgmt/redis/models.go b/profiles/preview/redis/mgmt/redis/models.go index 52dea1bb975a..ffd9656e12ec 100644 --- a/profiles/preview/redis/mgmt/redis/models.go +++ b/profiles/preview/redis/mgmt/redis/models.go @@ -22,7 +22,7 @@ package redis import ( "context" - original "github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2018-03-01/redis" + original "github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2020-06-01/redis" ) const ( @@ -50,21 +50,45 @@ const ( Secondary KeyType = original.Secondary ) +type PrivateEndpointConnectionProvisioningState = original.PrivateEndpointConnectionProvisioningState + +const ( + Creating PrivateEndpointConnectionProvisioningState = original.Creating + Deleting PrivateEndpointConnectionProvisioningState = original.Deleting + Failed PrivateEndpointConnectionProvisioningState = original.Failed + Succeeded PrivateEndpointConnectionProvisioningState = original.Succeeded +) + +type PrivateEndpointServiceConnectionStatus = original.PrivateEndpointServiceConnectionStatus + +const ( + Approved PrivateEndpointServiceConnectionStatus = original.Approved + Pending PrivateEndpointServiceConnectionStatus = original.Pending + Rejected PrivateEndpointServiceConnectionStatus = original.Rejected +) + type ProvisioningState = original.ProvisioningState const ( - Creating ProvisioningState = original.Creating - Deleting ProvisioningState = original.Deleting - Disabled ProvisioningState = original.Disabled - Failed ProvisioningState = original.Failed - Linking ProvisioningState = original.Linking - Provisioning ProvisioningState = original.Provisioning - RecoveringScaleFailure ProvisioningState = original.RecoveringScaleFailure - Scaling ProvisioningState = original.Scaling - Succeeded ProvisioningState = original.Succeeded - Unlinking ProvisioningState = original.Unlinking - Unprovisioning ProvisioningState = original.Unprovisioning - Updating ProvisioningState = original.Updating + ProvisioningStateCreating ProvisioningState = original.ProvisioningStateCreating + ProvisioningStateDeleting ProvisioningState = original.ProvisioningStateDeleting + ProvisioningStateDisabled ProvisioningState = original.ProvisioningStateDisabled + ProvisioningStateFailed ProvisioningState = original.ProvisioningStateFailed + ProvisioningStateLinking ProvisioningState = original.ProvisioningStateLinking + ProvisioningStateProvisioning ProvisioningState = original.ProvisioningStateProvisioning + ProvisioningStateRecoveringScaleFailure ProvisioningState = original.ProvisioningStateRecoveringScaleFailure + ProvisioningStateScaling ProvisioningState = original.ProvisioningStateScaling + ProvisioningStateSucceeded ProvisioningState = original.ProvisioningStateSucceeded + ProvisioningStateUnlinking ProvisioningState = original.ProvisioningStateUnlinking + ProvisioningStateUnprovisioning ProvisioningState = original.ProvisioningStateUnprovisioning + ProvisioningStateUpdating ProvisioningState = original.ProvisioningStateUpdating +) + +type PublicNetworkAccess = original.PublicNetworkAccess + +const ( + Disabled PublicNetworkAccess = original.Disabled + Enabled PublicNetworkAccess = original.Enabled ) type RebootType = original.RebootType @@ -114,6 +138,9 @@ type CreateFuture = original.CreateFuture type CreateParameters = original.CreateParameters type CreateProperties = original.CreateProperties type DeleteFuture = original.DeleteFuture +type ErrorAdditionalInfo = original.ErrorAdditionalInfo +type ErrorDetail = original.ErrorDetail +type ErrorResponse = original.ErrorResponse type ExportDataFuture = original.ExportDataFuture type ExportRDBParameters = original.ExportRDBParameters type FirewallRule = original.FirewallRule @@ -126,6 +153,7 @@ type FirewallRulesClient = original.FirewallRulesClient type ForceRebootResponse = original.ForceRebootResponse type ImportDataFuture = original.ImportDataFuture type ImportRDBParameters = original.ImportRDBParameters +type InstanceDetails = original.InstanceDetails type LinkedServer = original.LinkedServer type LinkedServerClient = original.LinkedServerClient type LinkedServerCreateFuture = original.LinkedServerCreateFuture @@ -151,6 +179,17 @@ type PatchScheduleListResult = original.PatchScheduleListResult type PatchScheduleListResultIterator = original.PatchScheduleListResultIterator type PatchScheduleListResultPage = original.PatchScheduleListResultPage type PatchSchedulesClient = original.PatchSchedulesClient +type PrivateEndpoint = original.PrivateEndpoint +type PrivateEndpointConnection = original.PrivateEndpointConnection +type PrivateEndpointConnectionListResult = original.PrivateEndpointConnectionListResult +type PrivateEndpointConnectionProperties = original.PrivateEndpointConnectionProperties +type PrivateEndpointConnectionsClient = original.PrivateEndpointConnectionsClient +type PrivateEndpointConnectionsPutFuture = original.PrivateEndpointConnectionsPutFuture +type PrivateLinkResource = original.PrivateLinkResource +type PrivateLinkResourceListResult = original.PrivateLinkResourceListResult +type PrivateLinkResourceProperties = original.PrivateLinkResourceProperties +type PrivateLinkResourcesClient = original.PrivateLinkResourcesClient +type PrivateLinkServiceConnectionState = original.PrivateLinkServiceConnectionState type Properties = original.Properties type ProxyResource = original.ProxyResource type RebootParameters = original.RebootParameters @@ -228,6 +267,18 @@ func NewPatchSchedulesClient(subscriptionID string) PatchSchedulesClient { func NewPatchSchedulesClientWithBaseURI(baseURI string, subscriptionID string) PatchSchedulesClient { return original.NewPatchSchedulesClientWithBaseURI(baseURI, subscriptionID) } +func NewPrivateEndpointConnectionsClient(subscriptionID string) PrivateEndpointConnectionsClient { + return original.NewPrivateEndpointConnectionsClient(subscriptionID) +} +func NewPrivateEndpointConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointConnectionsClient { + return original.NewPrivateEndpointConnectionsClientWithBaseURI(baseURI, subscriptionID) +} +func NewPrivateLinkResourcesClient(subscriptionID string) PrivateLinkResourcesClient { + return original.NewPrivateLinkResourcesClient(subscriptionID) +} +func NewPrivateLinkResourcesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkResourcesClient { + return original.NewPrivateLinkResourcesClientWithBaseURI(baseURI, subscriptionID) +} func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { return original.NewWithBaseURI(baseURI, subscriptionID) } @@ -237,9 +288,18 @@ func PossibleDayOfWeekValues() []DayOfWeek { func PossibleKeyTypeValues() []KeyType { return original.PossibleKeyTypeValues() } +func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState { + return original.PossiblePrivateEndpointConnectionProvisioningStateValues() +} +func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus { + return original.PossiblePrivateEndpointServiceConnectionStatusValues() +} func PossibleProvisioningStateValues() []ProvisioningState { return original.PossibleProvisioningStateValues() } +func PossiblePublicNetworkAccessValues() []PublicNetworkAccess { + return original.PossiblePublicNetworkAccessValues() +} func PossibleRebootTypeValues() []RebootType { return original.PossibleRebootTypeValues() } diff --git a/profiles/preview/redis/mgmt/redis/redisapi/models.go b/profiles/preview/redis/mgmt/redis/redisapi/models.go index 42af71fb8234..9af3a5b444d2 100644 --- a/profiles/preview/redis/mgmt/redis/redisapi/models.go +++ b/profiles/preview/redis/mgmt/redis/redisapi/models.go @@ -19,10 +19,12 @@ package redisapi -import original "github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2018-03-01/redis/redisapi" +import original "github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2020-06-01/redis/redisapi" type ClientAPI = original.ClientAPI type FirewallRulesClientAPI = original.FirewallRulesClientAPI type LinkedServerClientAPI = original.LinkedServerClientAPI type OperationsClientAPI = original.OperationsClientAPI type PatchSchedulesClientAPI = original.PatchSchedulesClientAPI +type PrivateEndpointConnectionsClientAPI = original.PrivateEndpointConnectionsClientAPI +type PrivateLinkResourcesClientAPI = original.PrivateLinkResourcesClientAPI diff --git a/services/redis/mgmt/2020-06-01/redis/CHANGELOG.md b/services/redis/mgmt/2020-06-01/redis/CHANGELOG.md new file mode 100644 index 000000000000..3501309e5585 --- /dev/null +++ b/services/redis/mgmt/2020-06-01/redis/CHANGELOG.md @@ -0,0 +1,5 @@ +Generated from https://github.com/Azure/azure-rest-api-specs/tree/3a3a9452f965a227ce43e6b545035b99dd175f23 + +Code generator @microsoft.azure/autorest.go@~2.1.165 + +This is a new package \ No newline at end of file diff --git a/services/redis/mgmt/2020-06-01/redis/client.go b/services/redis/mgmt/2020-06-01/redis/client.go new file mode 100644 index 000000000000..3d1e76fe0c24 --- /dev/null +++ b/services/redis/mgmt/2020-06-01/redis/client.go @@ -0,0 +1,52 @@ +// Package redis implements the Azure ARM Redis service API version 2020-06-01. +// +// REST API for Azure Redis Cache Service. +package redis + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/Azure/go-autorest/autorest" +) + +const ( + // DefaultBaseURI is the default URI used for the service Redis + DefaultBaseURI = "https://management.azure.com" +) + +// BaseClient is the base client for Redis. +type BaseClient struct { + autorest.Client + BaseURI string + SubscriptionID string +} + +// New creates an instance of the BaseClient client. +func New(subscriptionID string) BaseClient { + return NewWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with +// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { + return BaseClient{ + Client: autorest.NewClientWithUserAgent(UserAgent()), + BaseURI: baseURI, + SubscriptionID: subscriptionID, + } +} diff --git a/services/redis/mgmt/2020-06-01/redis/enums.go b/services/redis/mgmt/2020-06-01/redis/enums.go new file mode 100644 index 000000000000..caa4eeceef63 --- /dev/null +++ b/services/redis/mgmt/2020-06-01/redis/enums.go @@ -0,0 +1,230 @@ +package redis + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DayOfWeek enumerates the values for day of week. +type DayOfWeek string + +const ( + // Everyday ... + Everyday DayOfWeek = "Everyday" + // Friday ... + Friday DayOfWeek = "Friday" + // Monday ... + Monday DayOfWeek = "Monday" + // Saturday ... + Saturday DayOfWeek = "Saturday" + // Sunday ... + Sunday DayOfWeek = "Sunday" + // Thursday ... + Thursday DayOfWeek = "Thursday" + // Tuesday ... + Tuesday DayOfWeek = "Tuesday" + // Wednesday ... + Wednesday DayOfWeek = "Wednesday" + // Weekend ... + Weekend DayOfWeek = "Weekend" +) + +// PossibleDayOfWeekValues returns an array of possible values for the DayOfWeek const type. +func PossibleDayOfWeekValues() []DayOfWeek { + return []DayOfWeek{Everyday, Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday, Weekend} +} + +// KeyType enumerates the values for key type. +type KeyType string + +const ( + // Primary ... + Primary KeyType = "Primary" + // Secondary ... + Secondary KeyType = "Secondary" +) + +// PossibleKeyTypeValues returns an array of possible values for the KeyType const type. +func PossibleKeyTypeValues() []KeyType { + return []KeyType{Primary, Secondary} +} + +// PrivateEndpointConnectionProvisioningState enumerates the values for private endpoint connection +// provisioning state. +type PrivateEndpointConnectionProvisioningState string + +const ( + // Creating ... + Creating PrivateEndpointConnectionProvisioningState = "Creating" + // Deleting ... + Deleting PrivateEndpointConnectionProvisioningState = "Deleting" + // Failed ... + Failed PrivateEndpointConnectionProvisioningState = "Failed" + // Succeeded ... + Succeeded PrivateEndpointConnectionProvisioningState = "Succeeded" +) + +// PossiblePrivateEndpointConnectionProvisioningStateValues returns an array of possible values for the PrivateEndpointConnectionProvisioningState const type. +func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState { + return []PrivateEndpointConnectionProvisioningState{Creating, Deleting, Failed, Succeeded} +} + +// PrivateEndpointServiceConnectionStatus enumerates the values for private endpoint service connection status. +type PrivateEndpointServiceConnectionStatus string + +const ( + // Approved ... + Approved PrivateEndpointServiceConnectionStatus = "Approved" + // Pending ... + Pending PrivateEndpointServiceConnectionStatus = "Pending" + // Rejected ... + Rejected PrivateEndpointServiceConnectionStatus = "Rejected" +) + +// PossiblePrivateEndpointServiceConnectionStatusValues returns an array of possible values for the PrivateEndpointServiceConnectionStatus const type. +func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus { + return []PrivateEndpointServiceConnectionStatus{Approved, Pending, Rejected} +} + +// ProvisioningState enumerates the values for provisioning state. +type ProvisioningState string + +const ( + // ProvisioningStateCreating ... + ProvisioningStateCreating ProvisioningState = "Creating" + // ProvisioningStateDeleting ... + ProvisioningStateDeleting ProvisioningState = "Deleting" + // ProvisioningStateDisabled ... + ProvisioningStateDisabled ProvisioningState = "Disabled" + // ProvisioningStateFailed ... + ProvisioningStateFailed ProvisioningState = "Failed" + // ProvisioningStateLinking ... + ProvisioningStateLinking ProvisioningState = "Linking" + // ProvisioningStateProvisioning ... + ProvisioningStateProvisioning ProvisioningState = "Provisioning" + // ProvisioningStateRecoveringScaleFailure ... + ProvisioningStateRecoveringScaleFailure ProvisioningState = "RecoveringScaleFailure" + // ProvisioningStateScaling ... + ProvisioningStateScaling ProvisioningState = "Scaling" + // ProvisioningStateSucceeded ... + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + // ProvisioningStateUnlinking ... + ProvisioningStateUnlinking ProvisioningState = "Unlinking" + // ProvisioningStateUnprovisioning ... + ProvisioningStateUnprovisioning ProvisioningState = "Unprovisioning" + // ProvisioningStateUpdating ... + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. +func PossibleProvisioningStateValues() []ProvisioningState { + return []ProvisioningState{ProvisioningStateCreating, ProvisioningStateDeleting, ProvisioningStateDisabled, ProvisioningStateFailed, ProvisioningStateLinking, ProvisioningStateProvisioning, ProvisioningStateRecoveringScaleFailure, ProvisioningStateScaling, ProvisioningStateSucceeded, ProvisioningStateUnlinking, ProvisioningStateUnprovisioning, ProvisioningStateUpdating} +} + +// PublicNetworkAccess enumerates the values for public network access. +type PublicNetworkAccess string + +const ( + // Disabled ... + Disabled PublicNetworkAccess = "Disabled" + // Enabled ... + Enabled PublicNetworkAccess = "Enabled" +) + +// PossiblePublicNetworkAccessValues returns an array of possible values for the PublicNetworkAccess const type. +func PossiblePublicNetworkAccessValues() []PublicNetworkAccess { + return []PublicNetworkAccess{Disabled, Enabled} +} + +// RebootType enumerates the values for reboot type. +type RebootType string + +const ( + // AllNodes ... + AllNodes RebootType = "AllNodes" + // PrimaryNode ... + PrimaryNode RebootType = "PrimaryNode" + // SecondaryNode ... + SecondaryNode RebootType = "SecondaryNode" +) + +// PossibleRebootTypeValues returns an array of possible values for the RebootType const type. +func PossibleRebootTypeValues() []RebootType { + return []RebootType{AllNodes, PrimaryNode, SecondaryNode} +} + +// ReplicationRole enumerates the values for replication role. +type ReplicationRole string + +const ( + // ReplicationRolePrimary ... + ReplicationRolePrimary ReplicationRole = "Primary" + // ReplicationRoleSecondary ... + ReplicationRoleSecondary ReplicationRole = "Secondary" +) + +// PossibleReplicationRoleValues returns an array of possible values for the ReplicationRole const type. +func PossibleReplicationRoleValues() []ReplicationRole { + return []ReplicationRole{ReplicationRolePrimary, ReplicationRoleSecondary} +} + +// SkuFamily enumerates the values for sku family. +type SkuFamily string + +const ( + // C ... + C SkuFamily = "C" + // P ... + P SkuFamily = "P" +) + +// PossibleSkuFamilyValues returns an array of possible values for the SkuFamily const type. +func PossibleSkuFamilyValues() []SkuFamily { + return []SkuFamily{C, P} +} + +// SkuName enumerates the values for sku name. +type SkuName string + +const ( + // Basic ... + Basic SkuName = "Basic" + // Premium ... + Premium SkuName = "Premium" + // Standard ... + Standard SkuName = "Standard" +) + +// PossibleSkuNameValues returns an array of possible values for the SkuName const type. +func PossibleSkuNameValues() []SkuName { + return []SkuName{Basic, Premium, Standard} +} + +// TLSVersion enumerates the values for tls version. +type TLSVersion string + +const ( + // OneFullStopOne ... + OneFullStopOne TLSVersion = "1.1" + // OneFullStopTwo ... + OneFullStopTwo TLSVersion = "1.2" + // OneFullStopZero ... + OneFullStopZero TLSVersion = "1.0" +) + +// PossibleTLSVersionValues returns an array of possible values for the TLSVersion const type. +func PossibleTLSVersionValues() []TLSVersion { + return []TLSVersion{OneFullStopOne, OneFullStopTwo, OneFullStopZero} +} diff --git a/services/redis/mgmt/2020-06-01/redis/firewallrules.go b/services/redis/mgmt/2020-06-01/redis/firewallrules.go new file mode 100644 index 000000000000..016227ee0b25 --- /dev/null +++ b/services/redis/mgmt/2020-06-01/redis/firewallrules.go @@ -0,0 +1,406 @@ +package redis + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// FirewallRulesClient is the REST API for Azure Redis Cache Service. +type FirewallRulesClient struct { + BaseClient +} + +// NewFirewallRulesClient creates an instance of the FirewallRulesClient client. +func NewFirewallRulesClient(subscriptionID string) FirewallRulesClient { + return NewFirewallRulesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewFirewallRulesClientWithBaseURI creates an instance of the FirewallRulesClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewFirewallRulesClientWithBaseURI(baseURI string, subscriptionID string) FirewallRulesClient { + return FirewallRulesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate create or update a redis cache firewall rule +// Parameters: +// resourceGroupName - the name of the resource group. +// cacheName - the name of the Redis cache. +// ruleName - the name of the firewall rule. +// parameters - parameters supplied to the create or update redis firewall rule operation. +func (client FirewallRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, cacheName string, ruleName string, parameters FirewallRuleCreateParameters) (result FirewallRule, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FirewallRulesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.FirewallRuleProperties", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "parameters.FirewallRuleProperties.StartIP", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.FirewallRuleProperties.EndIP", Name: validation.Null, Rule: true, Chain: nil}, + }}}}}); err != nil { + return result, validation.NewError("redis.FirewallRulesClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, cacheName, ruleName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + resp, err := client.CreateOrUpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "CreateOrUpdate", resp, "Failure sending request") + return + } + + result, err = client.CreateOrUpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client FirewallRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, cacheName string, ruleName string, parameters FirewallRuleCreateParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "cacheName": autorest.Encode("path", cacheName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "ruleName": autorest.Encode("path", ruleName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/firewallRules/{ruleName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client FirewallRulesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client FirewallRulesClient) CreateOrUpdateResponder(resp *http.Response) (result FirewallRule, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes a single firewall rule in a specified redis cache. +// Parameters: +// resourceGroupName - the name of the resource group. +// cacheName - the name of the Redis cache. +// ruleName - the name of the firewall rule. +func (client FirewallRulesClient) Delete(ctx context.Context, resourceGroupName string, cacheName string, ruleName string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FirewallRulesClient.Delete") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, cacheName, ruleName) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "Delete", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "Delete", resp, "Failure sending request") + return + } + + result, err = client.DeleteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "Delete", resp, "Failure responding to request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client FirewallRulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, cacheName string, ruleName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "cacheName": autorest.Encode("path", cacheName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "ruleName": autorest.Encode("path", ruleName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/firewallRules/{ruleName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client FirewallRulesClient) DeleteSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client FirewallRulesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets a single firewall rule in a specified redis cache. +// Parameters: +// resourceGroupName - the name of the resource group. +// cacheName - the name of the Redis cache. +// ruleName - the name of the firewall rule. +func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName string, cacheName string, ruleName string) (result FirewallRule, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FirewallRulesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, cacheName, ruleName) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client FirewallRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, cacheName string, ruleName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "cacheName": autorest.Encode("path", cacheName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "ruleName": autorest.Encode("path", ruleName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/firewallRules/{ruleName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client FirewallRulesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client FirewallRulesClient) GetResponder(resp *http.Response) (result FirewallRule, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets all firewall rules in the specified redis cache. +// Parameters: +// resourceGroupName - the name of the resource group. +// cacheName - the name of the Redis cache. +func (client FirewallRulesClient) List(ctx context.Context, resourceGroupName string, cacheName string) (result FirewallRuleListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FirewallRulesClient.List") + defer func() { + sc := -1 + if result.frlr.Response.Response != nil { + sc = result.frlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, cacheName) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.frlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "List", resp, "Failure sending request") + return + } + + result.frlr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "List", resp, "Failure responding to request") + return + } + if result.frlr.hasNextLink() && result.frlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client FirewallRulesClient) ListPreparer(ctx context.Context, resourceGroupName string, cacheName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "cacheName": autorest.Encode("path", cacheName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/firewallRules", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client FirewallRulesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client FirewallRulesClient) ListResponder(resp *http.Response) (result FirewallRuleListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client FirewallRulesClient) listNextResults(ctx context.Context, lastResults FirewallRuleListResult) (result FirewallRuleListResult, err error) { + req, err := lastResults.firewallRuleListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.FirewallRulesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client FirewallRulesClient) ListComplete(ctx context.Context, resourceGroupName string, cacheName string) (result FirewallRuleListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FirewallRulesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, cacheName) + return +} diff --git a/services/redis/mgmt/2020-06-01/redis/linkedserver.go b/services/redis/mgmt/2020-06-01/redis/linkedserver.go new file mode 100644 index 000000000000..9ee14d8401e9 --- /dev/null +++ b/services/redis/mgmt/2020-06-01/redis/linkedserver.go @@ -0,0 +1,405 @@ +package redis + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// LinkedServerClient is the REST API for Azure Redis Cache Service. +type LinkedServerClient struct { + BaseClient +} + +// NewLinkedServerClient creates an instance of the LinkedServerClient client. +func NewLinkedServerClient(subscriptionID string) LinkedServerClient { + return NewLinkedServerClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewLinkedServerClientWithBaseURI creates an instance of the LinkedServerClient client using a custom endpoint. Use +// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewLinkedServerClientWithBaseURI(baseURI string, subscriptionID string) LinkedServerClient { + return LinkedServerClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Create adds a linked server to the Redis cache (requires Premium SKU). +// Parameters: +// resourceGroupName - the name of the resource group. +// name - the name of the Redis cache. +// linkedServerName - the name of the linked server that is being added to the Redis cache. +// parameters - parameters supplied to the Create Linked server operation. +func (client LinkedServerClient) Create(ctx context.Context, resourceGroupName string, name string, linkedServerName string, parameters LinkedServerCreateParameters) (result LinkedServerCreateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LinkedServerClient.Create") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.LinkedServerCreateProperties", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "parameters.LinkedServerCreateProperties.LinkedRedisCacheID", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.LinkedServerCreateProperties.LinkedRedisCacheLocation", Name: validation.Null, Rule: true, Chain: nil}, + }}}}}); err != nil { + return result, validation.NewError("redis.LinkedServerClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, name, linkedServerName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "Create", nil, "Failure preparing request") + return + } + + result, err = client.CreateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "Create", result.Response(), "Failure sending request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client LinkedServerClient) CreatePreparer(ctx context.Context, resourceGroupName string, name string, linkedServerName string, parameters LinkedServerCreateParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "linkedServerName": autorest.Encode("path", linkedServerName), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/linkedServers/{linkedServerName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client LinkedServerClient) CreateSender(req *http.Request) (future LinkedServerCreateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client LinkedServerClient) CreateResponder(resp *http.Response) (result LinkedServerWithProperties, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the linked server from a redis cache (requires Premium SKU). +// Parameters: +// resourceGroupName - the name of the resource group. +// name - the name of the redis cache. +// linkedServerName - the name of the linked server that is being added to the Redis cache. +func (client LinkedServerClient) Delete(ctx context.Context, resourceGroupName string, name string, linkedServerName string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LinkedServerClient.Delete") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, name, linkedServerName) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "Delete", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "Delete", resp, "Failure sending request") + return + } + + result, err = client.DeleteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "Delete", resp, "Failure responding to request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client LinkedServerClient) DeletePreparer(ctx context.Context, resourceGroupName string, name string, linkedServerName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "linkedServerName": autorest.Encode("path", linkedServerName), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/linkedServers/{linkedServerName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client LinkedServerClient) DeleteSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client LinkedServerClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the detailed information about a linked server of a redis cache (requires Premium SKU). +// Parameters: +// resourceGroupName - the name of the resource group. +// name - the name of the redis cache. +// linkedServerName - the name of the linked server. +func (client LinkedServerClient) Get(ctx context.Context, resourceGroupName string, name string, linkedServerName string) (result LinkedServerWithProperties, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LinkedServerClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, name, linkedServerName) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client LinkedServerClient) GetPreparer(ctx context.Context, resourceGroupName string, name string, linkedServerName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "linkedServerName": autorest.Encode("path", linkedServerName), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/linkedServers/{linkedServerName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client LinkedServerClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client LinkedServerClient) GetResponder(resp *http.Response) (result LinkedServerWithProperties, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets the list of linked servers associated with this redis cache (requires Premium SKU). +// Parameters: +// resourceGroupName - the name of the resource group. +// name - the name of the redis cache. +func (client LinkedServerClient) List(ctx context.Context, resourceGroupName string, name string) (result LinkedServerWithPropertiesListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LinkedServerClient.List") + defer func() { + sc := -1 + if result.lswpl.Response.Response != nil { + sc = result.lswpl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, name) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.lswpl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "List", resp, "Failure sending request") + return + } + + result.lswpl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "List", resp, "Failure responding to request") + return + } + if result.lswpl.hasNextLink() && result.lswpl.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client LinkedServerClient) ListPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/linkedServers", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client LinkedServerClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client LinkedServerClient) ListResponder(resp *http.Response) (result LinkedServerWithPropertiesList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client LinkedServerClient) listNextResults(ctx context.Context, lastResults LinkedServerWithPropertiesList) (result LinkedServerWithPropertiesList, err error) { + req, err := lastResults.linkedServerWithPropertiesListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "redis.LinkedServerClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "redis.LinkedServerClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.LinkedServerClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client LinkedServerClient) ListComplete(ctx context.Context, resourceGroupName string, name string) (result LinkedServerWithPropertiesListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LinkedServerClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, name) + return +} diff --git a/services/redis/mgmt/2020-06-01/redis/models.go b/services/redis/mgmt/2020-06-01/redis/models.go new file mode 100644 index 000000000000..9138fefc4ed8 --- /dev/null +++ b/services/redis/mgmt/2020-06-01/redis/models.go @@ -0,0 +1,2291 @@ +package redis + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "encoding/json" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/date" + "github.com/Azure/go-autorest/autorest/to" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// The package's fully qualified name. +const fqdn = "github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2020-06-01/redis" + +// AccessKeys redis cache access keys. +type AccessKeys struct { + autorest.Response `json:"-"` + // PrimaryKey - READ-ONLY; The current primary key that clients can use to authenticate with Redis cache. + PrimaryKey *string `json:"primaryKey,omitempty"` + // SecondaryKey - READ-ONLY; The current secondary key that clients can use to authenticate with Redis cache. + SecondaryKey *string `json:"secondaryKey,omitempty"` +} + +// CheckNameAvailabilityParameters parameters body to pass for resource name availability check. +type CheckNameAvailabilityParameters struct { + // Name - Resource name. + Name *string `json:"name,omitempty"` + // Type - Resource type. The only legal value of this property for checking redis cache name availability is 'Microsoft.Cache/redis'. + Type *string `json:"type,omitempty"` +} + +// CommonProperties create/Update/Get common properties of the redis cache. +type CommonProperties struct { + // RedisConfiguration - All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value etc. + RedisConfiguration map[string]*string `json:"redisConfiguration"` + // EnableNonSslPort - Specifies whether the non-ssl Redis server port (6379) is enabled. + EnableNonSslPort *bool `json:"enableNonSslPort,omitempty"` + // ReplicasPerMaster - The number of replicas to be created per master. + ReplicasPerMaster *int32 `json:"replicasPerMaster,omitempty"` + // TenantSettings - A dictionary of tenant settings + TenantSettings map[string]*string `json:"tenantSettings"` + // ShardCount - The number of shards to be created on a Premium Cluster Cache. + ShardCount *int32 `json:"shardCount,omitempty"` + // MinimumTLSVersion - Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2'). Possible values include: 'OneFullStopZero', 'OneFullStopOne', 'OneFullStopTwo' + MinimumTLSVersion TLSVersion `json:"minimumTlsVersion,omitempty"` + // PublicNetworkAccess - Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'. Possible values include: 'Enabled', 'Disabled' + PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` +} + +// MarshalJSON is the custom marshaler for CommonProperties. +func (cp CommonProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if cp.RedisConfiguration != nil { + objectMap["redisConfiguration"] = cp.RedisConfiguration + } + if cp.EnableNonSslPort != nil { + objectMap["enableNonSslPort"] = cp.EnableNonSslPort + } + if cp.ReplicasPerMaster != nil { + objectMap["replicasPerMaster"] = cp.ReplicasPerMaster + } + if cp.TenantSettings != nil { + objectMap["tenantSettings"] = cp.TenantSettings + } + if cp.ShardCount != nil { + objectMap["shardCount"] = cp.ShardCount + } + if cp.MinimumTLSVersion != "" { + objectMap["minimumTlsVersion"] = cp.MinimumTLSVersion + } + if cp.PublicNetworkAccess != "" { + objectMap["publicNetworkAccess"] = cp.PublicNetworkAccess + } + return json.Marshal(objectMap) +} + +// CreateFuture an abstraction for monitoring and retrieving the results of a long-running operation. +type CreateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *CreateFuture) Result(client Client) (rt ResourceType, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.CreateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("redis.CreateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if rt.Response.Response, err = future.GetResult(sender); err == nil && rt.Response.Response.StatusCode != http.StatusNoContent { + rt, err = client.CreateResponder(rt.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.CreateFuture", "Result", rt.Response.Response, "Failure responding to request") + } + } + return +} + +// CreateParameters parameters supplied to the Create Redis operation. +type CreateParameters struct { + // CreateProperties - Redis cache properties. + *CreateProperties `json:"properties,omitempty"` + // Zones - A list of availability zones denoting where the resource needs to come from. + Zones *[]string `json:"zones,omitempty"` + // Location - The geo-location where the resource lives + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for CreateParameters. +func (cp CreateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if cp.CreateProperties != nil { + objectMap["properties"] = cp.CreateProperties + } + if cp.Zones != nil { + objectMap["zones"] = cp.Zones + } + if cp.Location != nil { + objectMap["location"] = cp.Location + } + if cp.Tags != nil { + objectMap["tags"] = cp.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for CreateParameters struct. +func (cp *CreateParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var createProperties CreateProperties + err = json.Unmarshal(*v, &createProperties) + if err != nil { + return err + } + cp.CreateProperties = &createProperties + } + case "zones": + if v != nil { + var zones []string + err = json.Unmarshal(*v, &zones) + if err != nil { + return err + } + cp.Zones = &zones + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + cp.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + cp.Tags = tags + } + } + } + + return nil +} + +// CreateProperties properties supplied to Create Redis operation. +type CreateProperties struct { + // Sku - The SKU of the Redis cache to deploy. + Sku *Sku `json:"sku,omitempty"` + // SubnetID - The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1 + SubnetID *string `json:"subnetId,omitempty"` + // StaticIP - Static IP address. Required when deploying a Redis cache inside an existing Azure Virtual Network. + StaticIP *string `json:"staticIP,omitempty"` + // RedisConfiguration - All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value etc. + RedisConfiguration map[string]*string `json:"redisConfiguration"` + // EnableNonSslPort - Specifies whether the non-ssl Redis server port (6379) is enabled. + EnableNonSslPort *bool `json:"enableNonSslPort,omitempty"` + // ReplicasPerMaster - The number of replicas to be created per master. + ReplicasPerMaster *int32 `json:"replicasPerMaster,omitempty"` + // TenantSettings - A dictionary of tenant settings + TenantSettings map[string]*string `json:"tenantSettings"` + // ShardCount - The number of shards to be created on a Premium Cluster Cache. + ShardCount *int32 `json:"shardCount,omitempty"` + // MinimumTLSVersion - Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2'). Possible values include: 'OneFullStopZero', 'OneFullStopOne', 'OneFullStopTwo' + MinimumTLSVersion TLSVersion `json:"minimumTlsVersion,omitempty"` + // PublicNetworkAccess - Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'. Possible values include: 'Enabled', 'Disabled' + PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` +} + +// MarshalJSON is the custom marshaler for CreateProperties. +func (cp CreateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if cp.Sku != nil { + objectMap["sku"] = cp.Sku + } + if cp.SubnetID != nil { + objectMap["subnetId"] = cp.SubnetID + } + if cp.StaticIP != nil { + objectMap["staticIP"] = cp.StaticIP + } + if cp.RedisConfiguration != nil { + objectMap["redisConfiguration"] = cp.RedisConfiguration + } + if cp.EnableNonSslPort != nil { + objectMap["enableNonSslPort"] = cp.EnableNonSslPort + } + if cp.ReplicasPerMaster != nil { + objectMap["replicasPerMaster"] = cp.ReplicasPerMaster + } + if cp.TenantSettings != nil { + objectMap["tenantSettings"] = cp.TenantSettings + } + if cp.ShardCount != nil { + objectMap["shardCount"] = cp.ShardCount + } + if cp.MinimumTLSVersion != "" { + objectMap["minimumTlsVersion"] = cp.MinimumTLSVersion + } + if cp.PublicNetworkAccess != "" { + objectMap["publicNetworkAccess"] = cp.PublicNetworkAccess + } + return json.Marshal(objectMap) +} + +// DeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. +type DeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DeleteFuture) Result(client Client) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.DeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("redis.DeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// ErrorAdditionalInfo the resource management error additional info. +type ErrorAdditionalInfo struct { + // Type - READ-ONLY; The additional info type. + Type *string `json:"type,omitempty"` + // Info - READ-ONLY; The additional info. + Info interface{} `json:"info,omitempty"` +} + +// ErrorDetail the error detail. +type ErrorDetail struct { + // Code - READ-ONLY; The error code. + Code *string `json:"code,omitempty"` + // Message - READ-ONLY; The error message. + Message *string `json:"message,omitempty"` + // Target - READ-ONLY; The error target. + Target *string `json:"target,omitempty"` + // Details - READ-ONLY; The error details. + Details *[]ErrorDetail `json:"details,omitempty"` + // AdditionalInfo - READ-ONLY; The error additional info. + AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` +} + +// ErrorResponse common error response for all Azure Resource Manager APIs to return error details for +// failed operations. (This also follows the OData error response format.). +type ErrorResponse struct { + // Error - The error object. + Error *ErrorDetail `json:"error,omitempty"` +} + +// ExportDataFuture an abstraction for monitoring and retrieving the results of a long-running operation. +type ExportDataFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExportDataFuture) Result(client Client) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.ExportDataFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("redis.ExportDataFuture") + return + } + ar.Response = future.Response() + return +} + +// ExportRDBParameters parameters for Redis export operation. +type ExportRDBParameters struct { + // Format - File format. + Format *string `json:"format,omitempty"` + // Prefix - Prefix to use for exported files. + Prefix *string `json:"prefix,omitempty"` + // Container - Container name to export to. + Container *string `json:"container,omitempty"` +} + +// FirewallRule a firewall rule on a redis cache has a name, and describes a contiguous range of IP +// addresses permitted to connect +type FirewallRule struct { + autorest.Response `json:"-"` + // FirewallRuleProperties - redis cache firewall rule properties + *FirewallRuleProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for FirewallRule. +func (fr FirewallRule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if fr.FirewallRuleProperties != nil { + objectMap["properties"] = fr.FirewallRuleProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for FirewallRule struct. +func (fr *FirewallRule) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var firewallRuleProperties FirewallRuleProperties + err = json.Unmarshal(*v, &firewallRuleProperties) + if err != nil { + return err + } + fr.FirewallRuleProperties = &firewallRuleProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + fr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + fr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fr.Type = &typeVar + } + } + } + + return nil +} + +// FirewallRuleCreateParameters parameters required for creating a firewall rule on redis cache. +type FirewallRuleCreateParameters struct { + // FirewallRuleProperties - Properties required to create a firewall rule . + *FirewallRuleProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for FirewallRuleCreateParameters. +func (frcp FirewallRuleCreateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if frcp.FirewallRuleProperties != nil { + objectMap["properties"] = frcp.FirewallRuleProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for FirewallRuleCreateParameters struct. +func (frcp *FirewallRuleCreateParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var firewallRuleProperties FirewallRuleProperties + err = json.Unmarshal(*v, &firewallRuleProperties) + if err != nil { + return err + } + frcp.FirewallRuleProperties = &firewallRuleProperties + } + } + } + + return nil +} + +// FirewallRuleListResult the response of list firewall rules Redis operation. +type FirewallRuleListResult struct { + autorest.Response `json:"-"` + // Value - Results of the list firewall rules operation. + Value *[]FirewallRule `json:"value,omitempty"` + // NextLink - READ-ONLY; Link for next page of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for FirewallRuleListResult. +func (frlr FirewallRuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if frlr.Value != nil { + objectMap["value"] = frlr.Value + } + return json.Marshal(objectMap) +} + +// FirewallRuleListResultIterator provides access to a complete listing of FirewallRule values. +type FirewallRuleListResultIterator struct { + i int + page FirewallRuleListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *FirewallRuleListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FirewallRuleListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *FirewallRuleListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter FirewallRuleListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter FirewallRuleListResultIterator) Response() FirewallRuleListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter FirewallRuleListResultIterator) Value() FirewallRule { + if !iter.page.NotDone() { + return FirewallRule{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the FirewallRuleListResultIterator type. +func NewFirewallRuleListResultIterator(page FirewallRuleListResultPage) FirewallRuleListResultIterator { + return FirewallRuleListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (frlr FirewallRuleListResult) IsEmpty() bool { + return frlr.Value == nil || len(*frlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (frlr FirewallRuleListResult) hasNextLink() bool { + return frlr.NextLink != nil && len(*frlr.NextLink) != 0 +} + +// firewallRuleListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (frlr FirewallRuleListResult) firewallRuleListResultPreparer(ctx context.Context) (*http.Request, error) { + if !frlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(frlr.NextLink))) +} + +// FirewallRuleListResultPage contains a page of FirewallRule values. +type FirewallRuleListResultPage struct { + fn func(context.Context, FirewallRuleListResult) (FirewallRuleListResult, error) + frlr FirewallRuleListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *FirewallRuleListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FirewallRuleListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.frlr) + if err != nil { + return err + } + page.frlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *FirewallRuleListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page FirewallRuleListResultPage) NotDone() bool { + return !page.frlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page FirewallRuleListResultPage) Response() FirewallRuleListResult { + return page.frlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page FirewallRuleListResultPage) Values() []FirewallRule { + if page.frlr.IsEmpty() { + return nil + } + return *page.frlr.Value +} + +// Creates a new instance of the FirewallRuleListResultPage type. +func NewFirewallRuleListResultPage(cur FirewallRuleListResult, getNextPage func(context.Context, FirewallRuleListResult) (FirewallRuleListResult, error)) FirewallRuleListResultPage { + return FirewallRuleListResultPage{ + fn: getNextPage, + frlr: cur, + } +} + +// FirewallRuleProperties specifies a range of IP addresses permitted to connect to the cache +type FirewallRuleProperties struct { + // StartIP - lowest IP address included in the range + StartIP *string `json:"startIP,omitempty"` + // EndIP - highest IP address included in the range + EndIP *string `json:"endIP,omitempty"` +} + +// ForceRebootResponse response to force reboot for Redis cache. +type ForceRebootResponse struct { + autorest.Response `json:"-"` + // Message - READ-ONLY; Status message + Message *string `json:"message,omitempty"` +} + +// ImportDataFuture an abstraction for monitoring and retrieving the results of a long-running operation. +type ImportDataFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ImportDataFuture) Result(client Client) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.ImportDataFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("redis.ImportDataFuture") + return + } + ar.Response = future.Response() + return +} + +// ImportRDBParameters parameters for Redis import operation. +type ImportRDBParameters struct { + // Format - File format. + Format *string `json:"format,omitempty"` + // Files - files to import. + Files *[]string `json:"files,omitempty"` +} + +// InstanceDetails details of single instance of redis. +type InstanceDetails struct { + // SslPort - READ-ONLY; Redis instance SSL port. + SslPort *int32 `json:"sslPort,omitempty"` + // NonSslPort - READ-ONLY; If enableNonSslPort is true, provides Redis instance Non-SSL port. + NonSslPort *int32 `json:"nonSslPort,omitempty"` + // Zone - READ-ONLY; If the Cache uses availability zones, specifies availability zone where this instance is located. + Zone *string `json:"zone,omitempty"` + // ShardID - READ-ONLY; If clustering is enabled, the Shard ID of Redis Instance + ShardID *int32 `json:"shardId,omitempty"` + // IsMaster - READ-ONLY; Specifies whether the instance is a master node. + IsMaster *bool `json:"isMaster,omitempty"` +} + +// LinkedServer linked server Id +type LinkedServer struct { + // ID - READ-ONLY; Linked server Id. + ID *string `json:"id,omitempty"` +} + +// LinkedServerCreateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type LinkedServerCreateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *LinkedServerCreateFuture) Result(client LinkedServerClient) (lswp LinkedServerWithProperties, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.LinkedServerCreateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("redis.LinkedServerCreateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if lswp.Response.Response, err = future.GetResult(sender); err == nil && lswp.Response.Response.StatusCode != http.StatusNoContent { + lswp, err = client.CreateResponder(lswp.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.LinkedServerCreateFuture", "Result", lswp.Response.Response, "Failure responding to request") + } + } + return +} + +// LinkedServerCreateParameters parameter required for creating a linked server to redis cache. +type LinkedServerCreateParameters struct { + // LinkedServerCreateProperties - Properties required to create a linked server. + *LinkedServerCreateProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for LinkedServerCreateParameters. +func (lscp LinkedServerCreateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lscp.LinkedServerCreateProperties != nil { + objectMap["properties"] = lscp.LinkedServerCreateProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for LinkedServerCreateParameters struct. +func (lscp *LinkedServerCreateParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var linkedServerCreateProperties LinkedServerCreateProperties + err = json.Unmarshal(*v, &linkedServerCreateProperties) + if err != nil { + return err + } + lscp.LinkedServerCreateProperties = &linkedServerCreateProperties + } + } + } + + return nil +} + +// LinkedServerCreateProperties create properties for a linked server +type LinkedServerCreateProperties struct { + // LinkedRedisCacheID - Fully qualified resourceId of the linked redis cache. + LinkedRedisCacheID *string `json:"linkedRedisCacheId,omitempty"` + // LinkedRedisCacheLocation - Location of the linked redis cache. + LinkedRedisCacheLocation *string `json:"linkedRedisCacheLocation,omitempty"` + // ServerRole - Role of the linked server. Possible values include: 'ReplicationRolePrimary', 'ReplicationRoleSecondary' + ServerRole ReplicationRole `json:"serverRole,omitempty"` +} + +// LinkedServerProperties properties of a linked server to be returned in get/put response +type LinkedServerProperties struct { + // ProvisioningState - READ-ONLY; Terminal state of the link between primary and secondary redis cache. + ProvisioningState *string `json:"provisioningState,omitempty"` + // LinkedRedisCacheID - Fully qualified resourceId of the linked redis cache. + LinkedRedisCacheID *string `json:"linkedRedisCacheId,omitempty"` + // LinkedRedisCacheLocation - Location of the linked redis cache. + LinkedRedisCacheLocation *string `json:"linkedRedisCacheLocation,omitempty"` + // ServerRole - Role of the linked server. Possible values include: 'ReplicationRolePrimary', 'ReplicationRoleSecondary' + ServerRole ReplicationRole `json:"serverRole,omitempty"` +} + +// MarshalJSON is the custom marshaler for LinkedServerProperties. +func (lsp LinkedServerProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lsp.LinkedRedisCacheID != nil { + objectMap["linkedRedisCacheId"] = lsp.LinkedRedisCacheID + } + if lsp.LinkedRedisCacheLocation != nil { + objectMap["linkedRedisCacheLocation"] = lsp.LinkedRedisCacheLocation + } + if lsp.ServerRole != "" { + objectMap["serverRole"] = lsp.ServerRole + } + return json.Marshal(objectMap) +} + +// LinkedServerWithProperties response to put/get linked server (with properties) for Redis cache. +type LinkedServerWithProperties struct { + autorest.Response `json:"-"` + // LinkedServerProperties - Properties of the linked server. + *LinkedServerProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for LinkedServerWithProperties. +func (lswp LinkedServerWithProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lswp.LinkedServerProperties != nil { + objectMap["properties"] = lswp.LinkedServerProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for LinkedServerWithProperties struct. +func (lswp *LinkedServerWithProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var linkedServerProperties LinkedServerProperties + err = json.Unmarshal(*v, &linkedServerProperties) + if err != nil { + return err + } + lswp.LinkedServerProperties = &linkedServerProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + lswp.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + lswp.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + lswp.Type = &typeVar + } + } + } + + return nil +} + +// LinkedServerWithPropertiesList list of linked servers (with properties) of a Redis cache. +type LinkedServerWithPropertiesList struct { + autorest.Response `json:"-"` + // Value - List of linked servers (with properties) of a Redis cache. + Value *[]LinkedServerWithProperties `json:"value,omitempty"` + // NextLink - READ-ONLY; Link for next set. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for LinkedServerWithPropertiesList. +func (lswpl LinkedServerWithPropertiesList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lswpl.Value != nil { + objectMap["value"] = lswpl.Value + } + return json.Marshal(objectMap) +} + +// LinkedServerWithPropertiesListIterator provides access to a complete listing of +// LinkedServerWithProperties values. +type LinkedServerWithPropertiesListIterator struct { + i int + page LinkedServerWithPropertiesListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *LinkedServerWithPropertiesListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LinkedServerWithPropertiesListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *LinkedServerWithPropertiesListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter LinkedServerWithPropertiesListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter LinkedServerWithPropertiesListIterator) Response() LinkedServerWithPropertiesList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter LinkedServerWithPropertiesListIterator) Value() LinkedServerWithProperties { + if !iter.page.NotDone() { + return LinkedServerWithProperties{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the LinkedServerWithPropertiesListIterator type. +func NewLinkedServerWithPropertiesListIterator(page LinkedServerWithPropertiesListPage) LinkedServerWithPropertiesListIterator { + return LinkedServerWithPropertiesListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lswpl LinkedServerWithPropertiesList) IsEmpty() bool { + return lswpl.Value == nil || len(*lswpl.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (lswpl LinkedServerWithPropertiesList) hasNextLink() bool { + return lswpl.NextLink != nil && len(*lswpl.NextLink) != 0 +} + +// linkedServerWithPropertiesListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lswpl LinkedServerWithPropertiesList) linkedServerWithPropertiesListPreparer(ctx context.Context) (*http.Request, error) { + if !lswpl.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lswpl.NextLink))) +} + +// LinkedServerWithPropertiesListPage contains a page of LinkedServerWithProperties values. +type LinkedServerWithPropertiesListPage struct { + fn func(context.Context, LinkedServerWithPropertiesList) (LinkedServerWithPropertiesList, error) + lswpl LinkedServerWithPropertiesList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *LinkedServerWithPropertiesListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LinkedServerWithPropertiesListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.lswpl) + if err != nil { + return err + } + page.lswpl = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *LinkedServerWithPropertiesListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page LinkedServerWithPropertiesListPage) NotDone() bool { + return !page.lswpl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page LinkedServerWithPropertiesListPage) Response() LinkedServerWithPropertiesList { + return page.lswpl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page LinkedServerWithPropertiesListPage) Values() []LinkedServerWithProperties { + if page.lswpl.IsEmpty() { + return nil + } + return *page.lswpl.Value +} + +// Creates a new instance of the LinkedServerWithPropertiesListPage type. +func NewLinkedServerWithPropertiesListPage(cur LinkedServerWithPropertiesList, getNextPage func(context.Context, LinkedServerWithPropertiesList) (LinkedServerWithPropertiesList, error)) LinkedServerWithPropertiesListPage { + return LinkedServerWithPropertiesListPage{ + fn: getNextPage, + lswpl: cur, + } +} + +// ListResult the response of list Redis operation. +type ListResult struct { + autorest.Response `json:"-"` + // Value - List of Redis cache instances. + Value *[]ResourceType `json:"value,omitempty"` + // NextLink - READ-ONLY; Link for next page of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for ListResult. +func (lr ListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lr.Value != nil { + objectMap["value"] = lr.Value + } + return json.Marshal(objectMap) +} + +// ListResultIterator provides access to a complete listing of ResourceType values. +type ListResultIterator struct { + i int + page ListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ListResultIterator) Response() ListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ListResultIterator) Value() ResourceType { + if !iter.page.NotDone() { + return ResourceType{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ListResultIterator type. +func NewListResultIterator(page ListResultPage) ListResultIterator { + return ListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lr ListResult) IsEmpty() bool { + return lr.Value == nil || len(*lr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (lr ListResult) hasNextLink() bool { + return lr.NextLink != nil && len(*lr.NextLink) != 0 +} + +// listResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lr ListResult) listResultPreparer(ctx context.Context) (*http.Request, error) { + if !lr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lr.NextLink))) +} + +// ListResultPage contains a page of ResourceType values. +type ListResultPage struct { + fn func(context.Context, ListResult) (ListResult, error) + lr ListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.lr) + if err != nil { + return err + } + page.lr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ListResultPage) NotDone() bool { + return !page.lr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ListResultPage) Response() ListResult { + return page.lr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ListResultPage) Values() []ResourceType { + if page.lr.IsEmpty() { + return nil + } + return *page.lr.Value +} + +// Creates a new instance of the ListResultPage type. +func NewListResultPage(cur ListResult, getNextPage func(context.Context, ListResult) (ListResult, error)) ListResultPage { + return ListResultPage{ + fn: getNextPage, + lr: cur, + } +} + +// NotificationListResponse the response of listUpgradeNotifications. +type NotificationListResponse struct { + autorest.Response `json:"-"` + // Value - List of all notifications. + Value *[]UpgradeNotification `json:"value,omitempty"` + // NextLink - READ-ONLY; Link for next set of notifications. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for NotificationListResponse. +func (nlr NotificationListResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if nlr.Value != nil { + objectMap["value"] = nlr.Value + } + return json.Marshal(objectMap) +} + +// Operation REST API operation +type Operation struct { + // Name - Operation name: {provider}/{resource}/{operation} + Name *string `json:"name,omitempty"` + // Display - The object that describes the operation. + Display *OperationDisplay `json:"display,omitempty"` +} + +// OperationDisplay the object that describes the operation. +type OperationDisplay struct { + // Provider - Friendly name of the resource provider + Provider *string `json:"provider,omitempty"` + // Operation - Operation type: read, write, delete, listKeys/action, etc. + Operation *string `json:"operation,omitempty"` + // Resource - Resource type on which the operation is performed. + Resource *string `json:"resource,omitempty"` + // Description - Friendly name of the operation + Description *string `json:"description,omitempty"` +} + +// OperationListResult result of the request to list REST API operations. It contains a list of operations +// and a URL nextLink to get the next set of results. +type OperationListResult struct { + autorest.Response `json:"-"` + // Value - List of operations supported by the resource provider. + Value *[]Operation `json:"value,omitempty"` + // NextLink - READ-ONLY; URL to get the next set of operation list results if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if olr.Value != nil { + objectMap["value"] = olr.Value + } + return json.Marshal(objectMap) +} + +// OperationListResultIterator provides access to a complete listing of Operation values. +type OperationListResultIterator struct { + i int + page OperationListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *OperationListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter OperationListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter OperationListResultIterator) Response() OperationListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter OperationListResultIterator) Value() Operation { + if !iter.page.NotDone() { + return Operation{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the OperationListResultIterator type. +func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator { + return OperationListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (olr OperationListResult) IsEmpty() bool { + return olr.Value == nil || len(*olr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (olr OperationListResult) hasNextLink() bool { + return olr.NextLink != nil && len(*olr.NextLink) != 0 +} + +// operationListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (olr OperationListResult) operationListResultPreparer(ctx context.Context) (*http.Request, error) { + if !olr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(olr.NextLink))) +} + +// OperationListResultPage contains a page of Operation values. +type OperationListResultPage struct { + fn func(context.Context, OperationListResult) (OperationListResult, error) + olr OperationListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.olr) + if err != nil { + return err + } + page.olr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *OperationListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page OperationListResultPage) NotDone() bool { + return !page.olr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page OperationListResultPage) Response() OperationListResult { + return page.olr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page OperationListResultPage) Values() []Operation { + if page.olr.IsEmpty() { + return nil + } + return *page.olr.Value +} + +// Creates a new instance of the OperationListResultPage type. +func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage { + return OperationListResultPage{ + fn: getNextPage, + olr: cur, + } +} + +// PatchSchedule response to put/get patch schedules for Redis cache. +type PatchSchedule struct { + autorest.Response `json:"-"` + // ScheduleEntries - List of patch schedules for a Redis cache. + *ScheduleEntries `json:"properties,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for PatchSchedule. +func (ps PatchSchedule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ps.ScheduleEntries != nil { + objectMap["properties"] = ps.ScheduleEntries + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PatchSchedule struct. +func (ps *PatchSchedule) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var scheduleEntries ScheduleEntries + err = json.Unmarshal(*v, &scheduleEntries) + if err != nil { + return err + } + ps.ScheduleEntries = &scheduleEntries + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + ps.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ps.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ps.Type = &typeVar + } + } + } + + return nil +} + +// PatchScheduleListResult the response of list patch schedules Redis operation. +type PatchScheduleListResult struct { + autorest.Response `json:"-"` + // Value - Results of the list patch schedules operation. + Value *[]PatchSchedule `json:"value,omitempty"` + // NextLink - READ-ONLY; Link for next page of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for PatchScheduleListResult. +func (pslr PatchScheduleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pslr.Value != nil { + objectMap["value"] = pslr.Value + } + return json.Marshal(objectMap) +} + +// PatchScheduleListResultIterator provides access to a complete listing of PatchSchedule values. +type PatchScheduleListResultIterator struct { + i int + page PatchScheduleListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *PatchScheduleListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PatchScheduleListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *PatchScheduleListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter PatchScheduleListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter PatchScheduleListResultIterator) Response() PatchScheduleListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter PatchScheduleListResultIterator) Value() PatchSchedule { + if !iter.page.NotDone() { + return PatchSchedule{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the PatchScheduleListResultIterator type. +func NewPatchScheduleListResultIterator(page PatchScheduleListResultPage) PatchScheduleListResultIterator { + return PatchScheduleListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (pslr PatchScheduleListResult) IsEmpty() bool { + return pslr.Value == nil || len(*pslr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (pslr PatchScheduleListResult) hasNextLink() bool { + return pslr.NextLink != nil && len(*pslr.NextLink) != 0 +} + +// patchScheduleListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (pslr PatchScheduleListResult) patchScheduleListResultPreparer(ctx context.Context) (*http.Request, error) { + if !pslr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(pslr.NextLink))) +} + +// PatchScheduleListResultPage contains a page of PatchSchedule values. +type PatchScheduleListResultPage struct { + fn func(context.Context, PatchScheduleListResult) (PatchScheduleListResult, error) + pslr PatchScheduleListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *PatchScheduleListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PatchScheduleListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.pslr) + if err != nil { + return err + } + page.pslr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *PatchScheduleListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page PatchScheduleListResultPage) NotDone() bool { + return !page.pslr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page PatchScheduleListResultPage) Response() PatchScheduleListResult { + return page.pslr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page PatchScheduleListResultPage) Values() []PatchSchedule { + if page.pslr.IsEmpty() { + return nil + } + return *page.pslr.Value +} + +// Creates a new instance of the PatchScheduleListResultPage type. +func NewPatchScheduleListResultPage(cur PatchScheduleListResult, getNextPage func(context.Context, PatchScheduleListResult) (PatchScheduleListResult, error)) PatchScheduleListResultPage { + return PatchScheduleListResultPage{ + fn: getNextPage, + pslr: cur, + } +} + +// PrivateEndpoint the Private Endpoint resource. +type PrivateEndpoint struct { + // ID - READ-ONLY; The ARM identifier for Private Endpoint + ID *string `json:"id,omitempty"` +} + +// PrivateEndpointConnection the Private Endpoint Connection resource. +type PrivateEndpointConnection struct { + autorest.Response `json:"-"` + // PrivateEndpointConnectionProperties - Resource properties. + *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateEndpointConnection. +func (pec PrivateEndpointConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pec.PrivateEndpointConnectionProperties != nil { + objectMap["properties"] = pec.PrivateEndpointConnectionProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PrivateEndpointConnection struct. +func (pec *PrivateEndpointConnection) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var privateEndpointConnectionProperties PrivateEndpointConnectionProperties + err = json.Unmarshal(*v, &privateEndpointConnectionProperties) + if err != nil { + return err + } + pec.PrivateEndpointConnectionProperties = &privateEndpointConnectionProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + pec.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + pec.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + pec.Type = &typeVar + } + } + } + + return nil +} + +// PrivateEndpointConnectionListResult list of private endpoint connection associated with the specified +// storage account +type PrivateEndpointConnectionListResult struct { + autorest.Response `json:"-"` + // Value - Array of private endpoint connections + Value *[]PrivateEndpointConnection `json:"value,omitempty"` +} + +// PrivateEndpointConnectionProperties properties of the PrivateEndpointConnectProperties. +type PrivateEndpointConnectionProperties struct { + // PrivateEndpoint - The resource of private end point. + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + // PrivateLinkServiceConnectionState - A collection of information about the state of the connection between service consumer and provider. + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + // ProvisioningState - The provisioning state of the private endpoint connection resource. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Failed' + ProvisioningState PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty"` +} + +// PrivateEndpointConnectionsPutFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type PrivateEndpointConnectionsPutFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *PrivateEndpointConnectionsPutFuture) Result(client PrivateEndpointConnectionsClient) (pec PrivateEndpointConnection, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.PrivateEndpointConnectionsPutFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("redis.PrivateEndpointConnectionsPutFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if pec.Response.Response, err = future.GetResult(sender); err == nil && pec.Response.Response.StatusCode != http.StatusNoContent { + pec, err = client.PutResponder(pec.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.PrivateEndpointConnectionsPutFuture", "Result", pec.Response.Response, "Failure responding to request") + } + } + return +} + +// PrivateLinkResource a private link resource +type PrivateLinkResource struct { + // PrivateLinkResourceProperties - Resource properties. + *PrivateLinkResourceProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateLinkResource. +func (plr PrivateLinkResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if plr.PrivateLinkResourceProperties != nil { + objectMap["properties"] = plr.PrivateLinkResourceProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PrivateLinkResource struct. +func (plr *PrivateLinkResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var privateLinkResourceProperties PrivateLinkResourceProperties + err = json.Unmarshal(*v, &privateLinkResourceProperties) + if err != nil { + return err + } + plr.PrivateLinkResourceProperties = &privateLinkResourceProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + plr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + plr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + plr.Type = &typeVar + } + } + } + + return nil +} + +// PrivateLinkResourceListResult a list of private link resources +type PrivateLinkResourceListResult struct { + autorest.Response `json:"-"` + // Value - Array of private link resources + Value *[]PrivateLinkResource `json:"value,omitempty"` +} + +// PrivateLinkResourceProperties properties of a private link resource. +type PrivateLinkResourceProperties struct { + // GroupID - READ-ONLY; The private link resource group id. + GroupID *string `json:"groupId,omitempty"` + // RequiredMembers - READ-ONLY; The private link resource required member names. + RequiredMembers *[]string `json:"requiredMembers,omitempty"` + // RequiredZoneNames - The private link resource Private link DNS zone name. + RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if plrp.RequiredZoneNames != nil { + objectMap["requiredZoneNames"] = plrp.RequiredZoneNames + } + return json.Marshal(objectMap) +} + +// PrivateLinkServiceConnectionState a collection of information about the state of the connection between +// service consumer and provider. +type PrivateLinkServiceConnectionState struct { + // Status - Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Possible values include: 'Pending', 'Approved', 'Rejected' + Status PrivateEndpointServiceConnectionStatus `json:"status,omitempty"` + // Description - The reason for approval/rejection of the connection. + Description *string `json:"description,omitempty"` + // ActionsRequired - A message indicating if changes on the service provider require any updates on the consumer. + ActionsRequired *string `json:"actionsRequired,omitempty"` +} + +// Properties properties of the redis cache. +type Properties struct { + // RedisVersion - READ-ONLY; Redis version. + RedisVersion *string `json:"redisVersion,omitempty"` + // ProvisioningState - READ-ONLY; Redis instance provisioning status. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateDeleting', 'ProvisioningStateDisabled', 'ProvisioningStateFailed', 'ProvisioningStateLinking', 'ProvisioningStateProvisioning', 'ProvisioningStateRecoveringScaleFailure', 'ProvisioningStateScaling', 'ProvisioningStateSucceeded', 'ProvisioningStateUnlinking', 'ProvisioningStateUnprovisioning', 'ProvisioningStateUpdating' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // HostName - READ-ONLY; Redis host name. + HostName *string `json:"hostName,omitempty"` + // Port - READ-ONLY; Redis non-SSL port. + Port *int32 `json:"port,omitempty"` + // SslPort - READ-ONLY; Redis SSL port. + SslPort *int32 `json:"sslPort,omitempty"` + // AccessKeys - READ-ONLY; The keys of the Redis cache - not set if this object is not the response to Create or Update redis cache + AccessKeys *AccessKeys `json:"accessKeys,omitempty"` + // LinkedServers - READ-ONLY; List of the linked servers associated with the cache + LinkedServers *[]LinkedServer `json:"linkedServers,omitempty"` + // Instances - READ-ONLY; List of the Redis instances associated with the cache + Instances *[]InstanceDetails `json:"instances,omitempty"` + // PrivateEndpointConnections - READ-ONLY; List of private endpoint connection associated with the specified redis cache + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + // Sku - The SKU of the Redis cache to deploy. + Sku *Sku `json:"sku,omitempty"` + // SubnetID - The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1 + SubnetID *string `json:"subnetId,omitempty"` + // StaticIP - Static IP address. Required when deploying a Redis cache inside an existing Azure Virtual Network. + StaticIP *string `json:"staticIP,omitempty"` + // RedisConfiguration - All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value etc. + RedisConfiguration map[string]*string `json:"redisConfiguration"` + // EnableNonSslPort - Specifies whether the non-ssl Redis server port (6379) is enabled. + EnableNonSslPort *bool `json:"enableNonSslPort,omitempty"` + // ReplicasPerMaster - The number of replicas to be created per master. + ReplicasPerMaster *int32 `json:"replicasPerMaster,omitempty"` + // TenantSettings - A dictionary of tenant settings + TenantSettings map[string]*string `json:"tenantSettings"` + // ShardCount - The number of shards to be created on a Premium Cluster Cache. + ShardCount *int32 `json:"shardCount,omitempty"` + // MinimumTLSVersion - Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2'). Possible values include: 'OneFullStopZero', 'OneFullStopOne', 'OneFullStopTwo' + MinimumTLSVersion TLSVersion `json:"minimumTlsVersion,omitempty"` + // PublicNetworkAccess - Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'. Possible values include: 'Enabled', 'Disabled' + PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` +} + +// MarshalJSON is the custom marshaler for Properties. +func (p Properties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if p.Sku != nil { + objectMap["sku"] = p.Sku + } + if p.SubnetID != nil { + objectMap["subnetId"] = p.SubnetID + } + if p.StaticIP != nil { + objectMap["staticIP"] = p.StaticIP + } + if p.RedisConfiguration != nil { + objectMap["redisConfiguration"] = p.RedisConfiguration + } + if p.EnableNonSslPort != nil { + objectMap["enableNonSslPort"] = p.EnableNonSslPort + } + if p.ReplicasPerMaster != nil { + objectMap["replicasPerMaster"] = p.ReplicasPerMaster + } + if p.TenantSettings != nil { + objectMap["tenantSettings"] = p.TenantSettings + } + if p.ShardCount != nil { + objectMap["shardCount"] = p.ShardCount + } + if p.MinimumTLSVersion != "" { + objectMap["minimumTlsVersion"] = p.MinimumTLSVersion + } + if p.PublicNetworkAccess != "" { + objectMap["publicNetworkAccess"] = p.PublicNetworkAccess + } + return json.Marshal(objectMap) +} + +// ProxyResource the resource model definition for a ARM proxy resource. It will have everything other than +// required location and tags +type ProxyResource struct { + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// RebootParameters specifies which Redis node(s) to reboot. +type RebootParameters struct { + // RebootType - Which Redis node(s) to reboot. Depending on this value data loss is possible. Possible values include: 'PrimaryNode', 'SecondaryNode', 'AllNodes' + RebootType RebootType `json:"rebootType,omitempty"` + // ShardID - If clustering is enabled, the ID of the shard to be rebooted. + ShardID *int32 `json:"shardId,omitempty"` + // Ports - A list of redis instances to reboot, specified by per-instance SSL ports or non-SSL ports. + Ports *[]int32 `json:"ports,omitempty"` +} + +// RegenerateKeyParameters specifies which Redis access keys to reset. +type RegenerateKeyParameters struct { + // KeyType - The Redis access key to regenerate. Possible values include: 'Primary', 'Secondary' + KeyType KeyType `json:"keyType,omitempty"` +} + +// Resource the Resource definition. +type Resource struct { + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// ResourceType a single Redis item in List or Get Operation. +type ResourceType struct { + autorest.Response `json:"-"` + // Properties - Redis cache properties. + *Properties `json:"properties,omitempty"` + // Zones - A list of availability zones denoting where the resource needs to come from. + Zones *[]string `json:"zones,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // Location - The geo-location where the resource lives + Location *string `json:"location,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ResourceType. +func (rt ResourceType) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rt.Properties != nil { + objectMap["properties"] = rt.Properties + } + if rt.Zones != nil { + objectMap["zones"] = rt.Zones + } + if rt.Tags != nil { + objectMap["tags"] = rt.Tags + } + if rt.Location != nil { + objectMap["location"] = rt.Location + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ResourceType struct. +func (rt *ResourceType) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var properties Properties + err = json.Unmarshal(*v, &properties) + if err != nil { + return err + } + rt.Properties = &properties + } + case "zones": + if v != nil { + var zones []string + err = json.Unmarshal(*v, &zones) + if err != nil { + return err + } + rt.Zones = &zones + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + rt.Tags = tags + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + rt.Location = &location + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + rt.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + rt.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + rt.Type = &typeVar + } + } + } + + return nil +} + +// ScheduleEntries list of patch schedules for a Redis cache. +type ScheduleEntries struct { + // ScheduleEntries - List of patch schedules for a Redis cache. + ScheduleEntries *[]ScheduleEntry `json:"scheduleEntries,omitempty"` +} + +// ScheduleEntry patch schedule entry for a Premium Redis Cache. +type ScheduleEntry struct { + // DayOfWeek - Day of the week when a cache can be patched. Possible values include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday', 'Everyday', 'Weekend' + DayOfWeek DayOfWeek `json:"dayOfWeek,omitempty"` + // StartHourUtc - Start hour after which cache patching can start. + StartHourUtc *int32 `json:"startHourUtc,omitempty"` + // MaintenanceWindow - ISO8601 timespan specifying how much time cache patching can take. + MaintenanceWindow *string `json:"maintenanceWindow,omitempty"` +} + +// Sku SKU parameters supplied to the create Redis operation. +type Sku struct { + // Name - The type of Redis cache to deploy. Valid values: (Basic, Standard, Premium). Possible values include: 'Basic', 'Standard', 'Premium' + Name SkuName `json:"name,omitempty"` + // Family - The SKU family to use. Valid values: (C, P). (C = Basic/Standard, P = Premium). Possible values include: 'C', 'P' + Family SkuFamily `json:"family,omitempty"` + // Capacity - The size of the Redis cache to deploy. Valid values: for C (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P (Premium) family (1, 2, 3, 4). + Capacity *int32 `json:"capacity,omitempty"` +} + +// TrackedResource the resource model definition for a ARM tracked top level resource +type TrackedResource struct { + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // Location - The geo-location where the resource lives + Location *string `json:"location,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for TrackedResource. +func (tr TrackedResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if tr.Tags != nil { + objectMap["tags"] = tr.Tags + } + if tr.Location != nil { + objectMap["location"] = tr.Location + } + return json.Marshal(objectMap) +} + +// UpdateParameters parameters supplied to the Update Redis operation. +type UpdateParameters struct { + // UpdateProperties - Redis cache properties. + *UpdateProperties `json:"properties,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for UpdateParameters. +func (up UpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if up.UpdateProperties != nil { + objectMap["properties"] = up.UpdateProperties + } + if up.Tags != nil { + objectMap["tags"] = up.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for UpdateParameters struct. +func (up *UpdateParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var updateProperties UpdateProperties + err = json.Unmarshal(*v, &updateProperties) + if err != nil { + return err + } + up.UpdateProperties = &updateProperties + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + up.Tags = tags + } + } + } + + return nil +} + +// UpdateProperties patchable properties of the redis cache. +type UpdateProperties struct { + // Sku - The SKU of the Redis cache to deploy. + Sku *Sku `json:"sku,omitempty"` + // RedisConfiguration - All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value etc. + RedisConfiguration map[string]*string `json:"redisConfiguration"` + // EnableNonSslPort - Specifies whether the non-ssl Redis server port (6379) is enabled. + EnableNonSslPort *bool `json:"enableNonSslPort,omitempty"` + // ReplicasPerMaster - The number of replicas to be created per master. + ReplicasPerMaster *int32 `json:"replicasPerMaster,omitempty"` + // TenantSettings - A dictionary of tenant settings + TenantSettings map[string]*string `json:"tenantSettings"` + // ShardCount - The number of shards to be created on a Premium Cluster Cache. + ShardCount *int32 `json:"shardCount,omitempty"` + // MinimumTLSVersion - Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2'). Possible values include: 'OneFullStopZero', 'OneFullStopOne', 'OneFullStopTwo' + MinimumTLSVersion TLSVersion `json:"minimumTlsVersion,omitempty"` + // PublicNetworkAccess - Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'. Possible values include: 'Enabled', 'Disabled' + PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` +} + +// MarshalJSON is the custom marshaler for UpdateProperties. +func (up UpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if up.Sku != nil { + objectMap["sku"] = up.Sku + } + if up.RedisConfiguration != nil { + objectMap["redisConfiguration"] = up.RedisConfiguration + } + if up.EnableNonSslPort != nil { + objectMap["enableNonSslPort"] = up.EnableNonSslPort + } + if up.ReplicasPerMaster != nil { + objectMap["replicasPerMaster"] = up.ReplicasPerMaster + } + if up.TenantSettings != nil { + objectMap["tenantSettings"] = up.TenantSettings + } + if up.ShardCount != nil { + objectMap["shardCount"] = up.ShardCount + } + if up.MinimumTLSVersion != "" { + objectMap["minimumTlsVersion"] = up.MinimumTLSVersion + } + if up.PublicNetworkAccess != "" { + objectMap["publicNetworkAccess"] = up.PublicNetworkAccess + } + return json.Marshal(objectMap) +} + +// UpgradeNotification properties of upgrade notification. +type UpgradeNotification struct { + // Name - READ-ONLY; Name of upgrade notification. + Name *string `json:"name,omitempty"` + // Timestamp - READ-ONLY; Timestamp when upgrade notification occurred. + Timestamp *date.Time `json:"timestamp,omitempty"` + // UpsellNotification - READ-ONLY; Details about this upgrade notification + UpsellNotification map[string]*string `json:"upsellNotification"` +} + +// MarshalJSON is the custom marshaler for UpgradeNotification. +func (un UpgradeNotification) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/redis/mgmt/2020-06-01/redis/operations.go b/services/redis/mgmt/2020-06-01/redis/operations.go new file mode 100644 index 000000000000..7dfb9c10d850 --- /dev/null +++ b/services/redis/mgmt/2020-06-01/redis/operations.go @@ -0,0 +1,151 @@ +package redis + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// OperationsClient is the REST API for Azure Redis Cache Service. +type OperationsClient struct { + BaseClient +} + +// NewOperationsClient creates an instance of the OperationsClient client. +func NewOperationsClient(subscriptionID string) OperationsClient { + return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { + return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List lists all of the available REST API operations of the Microsoft.Cache provider. +func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List") + defer func() { + sc := -1 + if result.olr.Response.Response != nil { + sc = result.olr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.OperationsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.olr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "redis.OperationsClient", "List", resp, "Failure sending request") + return + } + + result.olr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.OperationsClient", "List", resp, "Failure responding to request") + return + } + if result.olr.hasNextLink() && result.olr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPath("/providers/Microsoft.Cache/operations"), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client OperationsClient) listNextResults(ctx context.Context, lastResults OperationListResult) (result OperationListResult, err error) { + req, err := lastResults.operationListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "redis.OperationsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "redis.OperationsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} diff --git a/services/redis/mgmt/2020-06-01/redis/patchschedules.go b/services/redis/mgmt/2020-06-01/redis/patchschedules.go new file mode 100644 index 000000000000..fb8022abbed8 --- /dev/null +++ b/services/redis/mgmt/2020-06-01/redis/patchschedules.go @@ -0,0 +1,401 @@ +package redis + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// PatchSchedulesClient is the REST API for Azure Redis Cache Service. +type PatchSchedulesClient struct { + BaseClient +} + +// NewPatchSchedulesClient creates an instance of the PatchSchedulesClient client. +func NewPatchSchedulesClient(subscriptionID string) PatchSchedulesClient { + return NewPatchSchedulesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewPatchSchedulesClientWithBaseURI creates an instance of the PatchSchedulesClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewPatchSchedulesClientWithBaseURI(baseURI string, subscriptionID string) PatchSchedulesClient { + return PatchSchedulesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate create or replace the patching schedule for Redis cache. +// Parameters: +// resourceGroupName - the name of the resource group. +// name - the name of the Redis cache. +// parameters - parameters to set the patching schedule for Redis cache. +func (client PatchSchedulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, name string, parameters PatchSchedule) (result PatchSchedule, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PatchSchedulesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.ScheduleEntries", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "parameters.ScheduleEntries.ScheduleEntries", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { + return result, validation.NewError("redis.PatchSchedulesClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, name, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + resp, err := client.CreateOrUpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "CreateOrUpdate", resp, "Failure sending request") + return + } + + result, err = client.CreateOrUpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client PatchSchedulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, name string, parameters PatchSchedule) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "default": autorest.Encode("path", "default"), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/patchSchedules/{default}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client PatchSchedulesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client PatchSchedulesClient) CreateOrUpdateResponder(resp *http.Response) (result PatchSchedule, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the patching schedule of a redis cache. +// Parameters: +// resourceGroupName - the name of the resource group. +// name - the name of the redis cache. +func (client PatchSchedulesClient) Delete(ctx context.Context, resourceGroupName string, name string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PatchSchedulesClient.Delete") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, name) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "Delete", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "Delete", resp, "Failure sending request") + return + } + + result, err = client.DeleteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "Delete", resp, "Failure responding to request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client PatchSchedulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "default": autorest.Encode("path", "default"), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/patchSchedules/{default}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client PatchSchedulesClient) DeleteSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client PatchSchedulesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the patching schedule of a redis cache. +// Parameters: +// resourceGroupName - the name of the resource group. +// name - the name of the redis cache. +func (client PatchSchedulesClient) Get(ctx context.Context, resourceGroupName string, name string) (result PatchSchedule, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PatchSchedulesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, name) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client PatchSchedulesClient) GetPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "default": autorest.Encode("path", "default"), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/patchSchedules/{default}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client PatchSchedulesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client PatchSchedulesClient) GetResponder(resp *http.Response) (result PatchSchedule, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByRedisResource gets all patch schedules in the specified redis cache (there is only one). +// Parameters: +// resourceGroupName - the name of the resource group. +// cacheName - the name of the Redis cache. +func (client PatchSchedulesClient) ListByRedisResource(ctx context.Context, resourceGroupName string, cacheName string) (result PatchScheduleListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PatchSchedulesClient.ListByRedisResource") + defer func() { + sc := -1 + if result.pslr.Response.Response != nil { + sc = result.pslr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByRedisResourceNextResults + req, err := client.ListByRedisResourcePreparer(ctx, resourceGroupName, cacheName) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "ListByRedisResource", nil, "Failure preparing request") + return + } + + resp, err := client.ListByRedisResourceSender(req) + if err != nil { + result.pslr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "ListByRedisResource", resp, "Failure sending request") + return + } + + result.pslr, err = client.ListByRedisResourceResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "ListByRedisResource", resp, "Failure responding to request") + return + } + if result.pslr.hasNextLink() && result.pslr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByRedisResourcePreparer prepares the ListByRedisResource request. +func (client PatchSchedulesClient) ListByRedisResourcePreparer(ctx context.Context, resourceGroupName string, cacheName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "cacheName": autorest.Encode("path", cacheName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/patchSchedules", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByRedisResourceSender sends the ListByRedisResource request. The method will close the +// http.Response Body if it receives an error. +func (client PatchSchedulesClient) ListByRedisResourceSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByRedisResourceResponder handles the response to the ListByRedisResource request. The method always +// closes the http.Response Body. +func (client PatchSchedulesClient) ListByRedisResourceResponder(resp *http.Response) (result PatchScheduleListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByRedisResourceNextResults retrieves the next set of results, if any. +func (client PatchSchedulesClient) listByRedisResourceNextResults(ctx context.Context, lastResults PatchScheduleListResult) (result PatchScheduleListResult, err error) { + req, err := lastResults.patchScheduleListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "listByRedisResourceNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByRedisResourceSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "listByRedisResourceNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByRedisResourceResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.PatchSchedulesClient", "listByRedisResourceNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByRedisResourceComplete enumerates all values, automatically crossing page boundaries as required. +func (client PatchSchedulesClient) ListByRedisResourceComplete(ctx context.Context, resourceGroupName string, cacheName string) (result PatchScheduleListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PatchSchedulesClient.ListByRedisResource") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByRedisResource(ctx, resourceGroupName, cacheName) + return +} diff --git a/services/redis/mgmt/2020-06-01/redis/privateendpointconnections.go b/services/redis/mgmt/2020-06-01/redis/privateendpointconnections.go new file mode 100644 index 000000000000..62671bf650c6 --- /dev/null +++ b/services/redis/mgmt/2020-06-01/redis/privateendpointconnections.go @@ -0,0 +1,365 @@ +package redis + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// PrivateEndpointConnectionsClient is the REST API for Azure Redis Cache Service. +type PrivateEndpointConnectionsClient struct { + BaseClient +} + +// NewPrivateEndpointConnectionsClient creates an instance of the PrivateEndpointConnectionsClient client. +func NewPrivateEndpointConnectionsClient(subscriptionID string) PrivateEndpointConnectionsClient { + return NewPrivateEndpointConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewPrivateEndpointConnectionsClientWithBaseURI creates an instance of the PrivateEndpointConnectionsClient client +// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign +// clouds, Azure stack). +func NewPrivateEndpointConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointConnectionsClient { + return PrivateEndpointConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Delete deletes the specified private endpoint connection associated with the redis cache. +// Parameters: +// resourceGroupName - the name of the resource group. +// cacheName - the name of the Redis cache. +// privateEndpointConnectionName - the name of the private endpoint connection associated with the Azure +// resource +func (client PrivateEndpointConnectionsClient) Delete(ctx context.Context, resourceGroupName string, cacheName string, privateEndpointConnectionName string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionsClient.Delete") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, cacheName, privateEndpointConnectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.PrivateEndpointConnectionsClient", "Delete", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "redis.PrivateEndpointConnectionsClient", "Delete", resp, "Failure sending request") + return + } + + result, err = client.DeleteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.PrivateEndpointConnectionsClient", "Delete", resp, "Failure responding to request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client PrivateEndpointConnectionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, cacheName string, privateEndpointConnectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "cacheName": autorest.Encode("path", cacheName), + "privateEndpointConnectionName": autorest.Encode("path", privateEndpointConnectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/privateEndpointConnections/{privateEndpointConnectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateEndpointConnectionsClient) DeleteSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client PrivateEndpointConnectionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified private endpoint connection associated with the redis cache. +// Parameters: +// resourceGroupName - the name of the resource group. +// cacheName - the name of the Redis cache. +// privateEndpointConnectionName - the name of the private endpoint connection associated with the Azure +// resource +func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, cacheName string, privateEndpointConnectionName string) (result PrivateEndpointConnection, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, cacheName, privateEndpointConnectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.PrivateEndpointConnectionsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "redis.PrivateEndpointConnectionsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client PrivateEndpointConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, cacheName string, privateEndpointConnectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "cacheName": autorest.Encode("path", cacheName), + "privateEndpointConnectionName": autorest.Encode("path", privateEndpointConnectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/privateEndpointConnections/{privateEndpointConnectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateEndpointConnectionsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client PrivateEndpointConnectionsClient) GetResponder(resp *http.Response) (result PrivateEndpointConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List list all the private endpoint connections associated with the redis cache. +// Parameters: +// resourceGroupName - the name of the resource group. +// cacheName - the name of the Redis cache. +func (client PrivateEndpointConnectionsClient) List(ctx context.Context, resourceGroupName string, cacheName string) (result PrivateEndpointConnectionListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionsClient.List") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListPreparer(ctx, resourceGroupName, cacheName) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.PrivateEndpointConnectionsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "redis.PrivateEndpointConnectionsClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.PrivateEndpointConnectionsClient", "List", resp, "Failure responding to request") + return + } + + return +} + +// ListPreparer prepares the List request. +func (client PrivateEndpointConnectionsClient) ListPreparer(ctx context.Context, resourceGroupName string, cacheName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "cacheName": autorest.Encode("path", cacheName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/privateEndpointConnections", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateEndpointConnectionsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client PrivateEndpointConnectionsClient) ListResponder(resp *http.Response) (result PrivateEndpointConnectionListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Put update the state of specified private endpoint connection associated with the redis cache. +// Parameters: +// resourceGroupName - the name of the resource group. +// cacheName - the name of the Redis cache. +// privateEndpointConnectionName - the name of the private endpoint connection associated with the Azure +// resource +// properties - the private endpoint connection properties. +func (client PrivateEndpointConnectionsClient) Put(ctx context.Context, resourceGroupName string, cacheName string, privateEndpointConnectionName string, properties PrivateEndpointConnection) (result PrivateEndpointConnectionsPutFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionsClient.Put") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: properties, + Constraints: []validation.Constraint{{Target: "properties.PrivateEndpointConnectionProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "properties.PrivateEndpointConnectionProperties.PrivateLinkServiceConnectionState", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { + return result, validation.NewError("redis.PrivateEndpointConnectionsClient", "Put", err.Error()) + } + + req, err := client.PutPreparer(ctx, resourceGroupName, cacheName, privateEndpointConnectionName, properties) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.PrivateEndpointConnectionsClient", "Put", nil, "Failure preparing request") + return + } + + result, err = client.PutSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.PrivateEndpointConnectionsClient", "Put", result.Response(), "Failure sending request") + return + } + + return +} + +// PutPreparer prepares the Put request. +func (client PrivateEndpointConnectionsClient) PutPreparer(ctx context.Context, resourceGroupName string, cacheName string, privateEndpointConnectionName string, properties PrivateEndpointConnection) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "cacheName": autorest.Encode("path", cacheName), + "privateEndpointConnectionName": autorest.Encode("path", privateEndpointConnectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/privateEndpointConnections/{privateEndpointConnectionName}", pathParameters), + autorest.WithJSON(properties), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// PutSender sends the Put request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateEndpointConnectionsClient) PutSender(req *http.Request) (future PrivateEndpointConnectionsPutFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// PutResponder handles the response to the Put request. The method always +// closes the http.Response Body. +func (client PrivateEndpointConnectionsClient) PutResponder(resp *http.Response) (result PrivateEndpointConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/redis/mgmt/2020-06-01/redis/privatelinkresources.go b/services/redis/mgmt/2020-06-01/redis/privatelinkresources.go new file mode 100644 index 000000000000..a37ee4f6bc82 --- /dev/null +++ b/services/redis/mgmt/2020-06-01/redis/privatelinkresources.go @@ -0,0 +1,119 @@ +package redis + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// PrivateLinkResourcesClient is the REST API for Azure Redis Cache Service. +type PrivateLinkResourcesClient struct { + BaseClient +} + +// NewPrivateLinkResourcesClient creates an instance of the PrivateLinkResourcesClient client. +func NewPrivateLinkResourcesClient(subscriptionID string) PrivateLinkResourcesClient { + return NewPrivateLinkResourcesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewPrivateLinkResourcesClientWithBaseURI creates an instance of the PrivateLinkResourcesClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewPrivateLinkResourcesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkResourcesClient { + return PrivateLinkResourcesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// ListByRedisCache gets the private link resources that need to be created for a redis cache. +// Parameters: +// resourceGroupName - the name of the resource group. +// cacheName - the name of the Redis cache. +func (client PrivateLinkResourcesClient) ListByRedisCache(ctx context.Context, resourceGroupName string, cacheName string) (result PrivateLinkResourceListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkResourcesClient.ListByRedisCache") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListByRedisCachePreparer(ctx, resourceGroupName, cacheName) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.PrivateLinkResourcesClient", "ListByRedisCache", nil, "Failure preparing request") + return + } + + resp, err := client.ListByRedisCacheSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "redis.PrivateLinkResourcesClient", "ListByRedisCache", resp, "Failure sending request") + return + } + + result, err = client.ListByRedisCacheResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.PrivateLinkResourcesClient", "ListByRedisCache", resp, "Failure responding to request") + return + } + + return +} + +// ListByRedisCachePreparer prepares the ListByRedisCache request. +func (client PrivateLinkResourcesClient) ListByRedisCachePreparer(ctx context.Context, resourceGroupName string, cacheName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "cacheName": autorest.Encode("path", cacheName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/privateLinkResources", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByRedisCacheSender sends the ListByRedisCache request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateLinkResourcesClient) ListByRedisCacheSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByRedisCacheResponder handles the response to the ListByRedisCache request. The method always +// closes the http.Response Body. +func (client PrivateLinkResourcesClient) ListByRedisCacheResponder(resp *http.Response) (result PrivateLinkResourceListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/redis/mgmt/2020-06-01/redis/redis.go b/services/redis/mgmt/2020-06-01/redis/redis.go new file mode 100644 index 000000000000..d4e904a08273 --- /dev/null +++ b/services/redis/mgmt/2020-06-01/redis/redis.go @@ -0,0 +1,1155 @@ +package redis + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// Client is the REST API for Azure Redis Cache Service. +type Client struct { + BaseClient +} + +// NewClient creates an instance of the Client client. +func NewClient(subscriptionID string) Client { + return NewClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewClientWithBaseURI creates an instance of the Client client using a custom endpoint. Use this when interacting +// with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewClientWithBaseURI(baseURI string, subscriptionID string) Client { + return Client{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CheckNameAvailability checks that the redis cache name is valid and is not already in use. +// Parameters: +// parameters - parameters supplied to the CheckNameAvailability Redis operation. The only supported resource +// type is 'Microsoft.Cache/redis' +func (client Client) CheckNameAvailability(ctx context.Context, parameters CheckNameAvailabilityParameters) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.CheckNameAvailability") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Name", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.Type", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("redis.Client", "CheckNameAvailability", err.Error()) + } + + req, err := client.CheckNameAvailabilityPreparer(ctx, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "CheckNameAvailability", nil, "Failure preparing request") + return + } + + resp, err := client.CheckNameAvailabilitySender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "redis.Client", "CheckNameAvailability", resp, "Failure sending request") + return + } + + result, err = client.CheckNameAvailabilityResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "CheckNameAvailability", resp, "Failure responding to request") + return + } + + return +} + +// CheckNameAvailabilityPreparer prepares the CheckNameAvailability request. +func (client Client) CheckNameAvailabilityPreparer(ctx context.Context, parameters CheckNameAvailabilityParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Cache/CheckNameAvailability", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CheckNameAvailabilitySender sends the CheckNameAvailability request. The method will close the +// http.Response Body if it receives an error. +func (client Client) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always +// closes the http.Response Body. +func (client Client) CheckNameAvailabilityResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByClosing()) + result.Response = resp + return +} + +// Create create or replace (overwrite/recreate, with potential downtime) an existing Redis cache. +// Parameters: +// resourceGroupName - the name of the resource group. +// name - the name of the Redis cache. +// parameters - parameters supplied to the Create Redis operation. +func (client Client) Create(ctx context.Context, resourceGroupName string, name string, parameters CreateParameters) (result CreateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.Create") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.CreateProperties", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "parameters.CreateProperties.Sku", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "parameters.CreateProperties.Sku.Capacity", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "parameters.CreateProperties.SubnetID", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.CreateProperties.SubnetID", Name: validation.Pattern, Rule: `^/subscriptions/[^/]*/resourceGroups/[^/]*/providers/Microsoft.(ClassicNetwork|Network)/virtualNetworks/[^/]*/subnets/[^/]*$`, Chain: nil}}}, + {Target: "parameters.CreateProperties.StaticIP", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.CreateProperties.StaticIP", Name: validation.Pattern, Rule: `^\d+\.\d+\.\d+\.\d+$`, Chain: nil}}}, + }}, + {Target: "parameters.Location", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("redis.Client", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, name, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "Create", nil, "Failure preparing request") + return + } + + result, err = client.CreateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "Create", result.Response(), "Failure sending request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client Client) CreatePreparer(ctx context.Context, resourceGroupName string, name string, parameters CreateParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client Client) CreateSender(req *http.Request) (future CreateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client Client) CreateResponder(resp *http.Response) (result ResourceType, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes a Redis cache. +// Parameters: +// resourceGroupName - the name of the resource group. +// name - the name of the Redis cache. +func (client Client) Delete(ctx context.Context, resourceGroupName string, name string) (result DeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, name) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client Client) DeletePreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client Client) DeleteSender(req *http.Request) (future DeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client Client) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// ExportData export data from the redis cache to blobs in a container. +// Parameters: +// resourceGroupName - the name of the resource group. +// name - the name of the Redis cache. +// parameters - parameters for Redis export operation. +func (client Client) ExportData(ctx context.Context, resourceGroupName string, name string, parameters ExportRDBParameters) (result ExportDataFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.ExportData") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Prefix", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.Container", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("redis.Client", "ExportData", err.Error()) + } + + req, err := client.ExportDataPreparer(ctx, resourceGroupName, name, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "ExportData", nil, "Failure preparing request") + return + } + + result, err = client.ExportDataSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "ExportData", result.Response(), "Failure sending request") + return + } + + return +} + +// ExportDataPreparer prepares the ExportData request. +func (client Client) ExportDataPreparer(ctx context.Context, resourceGroupName string, name string, parameters ExportRDBParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/export", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ExportDataSender sends the ExportData request. The method will close the +// http.Response Body if it receives an error. +func (client Client) ExportDataSender(req *http.Request) (future ExportDataFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// ExportDataResponder handles the response to the ExportData request. The method always +// closes the http.Response Body. +func (client Client) ExportDataResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// ForceReboot reboot specified Redis node(s). This operation requires write permission to the cache resource. There +// can be potential data loss. +// Parameters: +// resourceGroupName - the name of the resource group. +// name - the name of the Redis cache. +// parameters - specifies which Redis node(s) to reboot. +func (client Client) ForceReboot(ctx context.Context, resourceGroupName string, name string, parameters RebootParameters) (result ForceRebootResponse, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.ForceReboot") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ForceRebootPreparer(ctx, resourceGroupName, name, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "ForceReboot", nil, "Failure preparing request") + return + } + + resp, err := client.ForceRebootSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "redis.Client", "ForceReboot", resp, "Failure sending request") + return + } + + result, err = client.ForceRebootResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "ForceReboot", resp, "Failure responding to request") + return + } + + return +} + +// ForceRebootPreparer prepares the ForceReboot request. +func (client Client) ForceRebootPreparer(ctx context.Context, resourceGroupName string, name string, parameters RebootParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/forceReboot", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ForceRebootSender sends the ForceReboot request. The method will close the +// http.Response Body if it receives an error. +func (client Client) ForceRebootSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ForceRebootResponder handles the response to the ForceReboot request. The method always +// closes the http.Response Body. +func (client Client) ForceRebootResponder(resp *http.Response) (result ForceRebootResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Get gets a Redis cache (resource description). +// Parameters: +// resourceGroupName - the name of the resource group. +// name - the name of the Redis cache. +func (client Client) Get(ctx context.Context, resourceGroupName string, name string) (result ResourceType, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, name) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "redis.Client", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client Client) GetPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client Client) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client Client) GetResponder(resp *http.Response) (result ResourceType, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ImportData import data into Redis cache. +// Parameters: +// resourceGroupName - the name of the resource group. +// name - the name of the Redis cache. +// parameters - parameters for Redis import operation. +func (client Client) ImportData(ctx context.Context, resourceGroupName string, name string, parameters ImportRDBParameters) (result ImportDataFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.ImportData") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Files", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("redis.Client", "ImportData", err.Error()) + } + + req, err := client.ImportDataPreparer(ctx, resourceGroupName, name, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "ImportData", nil, "Failure preparing request") + return + } + + result, err = client.ImportDataSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "ImportData", result.Response(), "Failure sending request") + return + } + + return +} + +// ImportDataPreparer prepares the ImportData request. +func (client Client) ImportDataPreparer(ctx context.Context, resourceGroupName string, name string, parameters ImportRDBParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/import", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ImportDataSender sends the ImportData request. The method will close the +// http.Response Body if it receives an error. +func (client Client) ImportDataSender(req *http.Request) (future ImportDataFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// ImportDataResponder handles the response to the ImportData request. The method always +// closes the http.Response Body. +func (client Client) ImportDataResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// ListByResourceGroup lists all Redis caches in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.ListByResourceGroup") + defer func() { + sc := -1 + if result.lr.Response.Response != nil { + sc = result.lr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.lr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "redis.Client", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.lr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.lr.hasNextLink() && result.lr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client Client) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client Client) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client Client) ListByResourceGroupResponder(resp *http.Response) (result ListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client Client) listByResourceGroupNextResults(ctx context.Context, lastResults ListResult) (result ListResult, err error) { + req, err := lastResults.listResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "redis.Client", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "redis.Client", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client Client) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// ListBySubscription gets all Redis caches in the specified subscription. +func (client Client) ListBySubscription(ctx context.Context) (result ListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.ListBySubscription") + defer func() { + sc := -1 + if result.lr.Response.Response != nil { + sc = result.lr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listBySubscriptionNextResults + req, err := client.ListBySubscriptionPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "ListBySubscription", nil, "Failure preparing request") + return + } + + resp, err := client.ListBySubscriptionSender(req) + if err != nil { + result.lr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "redis.Client", "ListBySubscription", resp, "Failure sending request") + return + } + + result.lr, err = client.ListBySubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "ListBySubscription", resp, "Failure responding to request") + return + } + if result.lr.hasNextLink() && result.lr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListBySubscriptionPreparer prepares the ListBySubscription request. +func (client Client) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Cache/redis", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListBySubscriptionSender sends the ListBySubscription request. The method will close the +// http.Response Body if it receives an error. +func (client Client) ListBySubscriptionSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always +// closes the http.Response Body. +func (client Client) ListBySubscriptionResponder(resp *http.Response) (result ListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listBySubscriptionNextResults retrieves the next set of results, if any. +func (client Client) listBySubscriptionNextResults(ctx context.Context, lastResults ListResult) (result ListResult, err error) { + req, err := lastResults.listResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "redis.Client", "listBySubscriptionNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListBySubscriptionSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "redis.Client", "listBySubscriptionNextResults", resp, "Failure sending next results request") + } + result, err = client.ListBySubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required. +func (client Client) ListBySubscriptionComplete(ctx context.Context) (result ListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.ListBySubscription") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListBySubscription(ctx) + return +} + +// ListKeys retrieve a Redis cache's access keys. This operation requires write permission to the cache resource. +// Parameters: +// resourceGroupName - the name of the resource group. +// name - the name of the Redis cache. +func (client Client) ListKeys(ctx context.Context, resourceGroupName string, name string) (result AccessKeys, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.ListKeys") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListKeysPreparer(ctx, resourceGroupName, name) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "ListKeys", nil, "Failure preparing request") + return + } + + resp, err := client.ListKeysSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "redis.Client", "ListKeys", resp, "Failure sending request") + return + } + + result, err = client.ListKeysResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "ListKeys", resp, "Failure responding to request") + return + } + + return +} + +// ListKeysPreparer prepares the ListKeys request. +func (client Client) ListKeysPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/listKeys", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListKeysSender sends the ListKeys request. The method will close the +// http.Response Body if it receives an error. +func (client Client) ListKeysSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListKeysResponder handles the response to the ListKeys request. The method always +// closes the http.Response Body. +func (client Client) ListKeysResponder(resp *http.Response) (result AccessKeys, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListUpgradeNotifications gets any upgrade notifications for a Redis cache. +// Parameters: +// resourceGroupName - the name of the resource group. +// name - the name of the Redis cache. +// history - how many minutes in past to look for upgrade notifications +func (client Client) ListUpgradeNotifications(ctx context.Context, resourceGroupName string, name string, history float64) (result NotificationListResponse, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.ListUpgradeNotifications") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListUpgradeNotificationsPreparer(ctx, resourceGroupName, name, history) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "ListUpgradeNotifications", nil, "Failure preparing request") + return + } + + resp, err := client.ListUpgradeNotificationsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "redis.Client", "ListUpgradeNotifications", resp, "Failure sending request") + return + } + + result, err = client.ListUpgradeNotificationsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "ListUpgradeNotifications", resp, "Failure responding to request") + return + } + + return +} + +// ListUpgradeNotificationsPreparer prepares the ListUpgradeNotifications request. +func (client Client) ListUpgradeNotificationsPreparer(ctx context.Context, resourceGroupName string, name string, history float64) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + "history": autorest.Encode("query", history), + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/listUpgradeNotifications", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListUpgradeNotificationsSender sends the ListUpgradeNotifications request. The method will close the +// http.Response Body if it receives an error. +func (client Client) ListUpgradeNotificationsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListUpgradeNotificationsResponder handles the response to the ListUpgradeNotifications request. The method always +// closes the http.Response Body. +func (client Client) ListUpgradeNotificationsResponder(resp *http.Response) (result NotificationListResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// RegenerateKey regenerate Redis cache's access keys. This operation requires write permission to the cache resource. +// Parameters: +// resourceGroupName - the name of the resource group. +// name - the name of the Redis cache. +// parameters - specifies which key to regenerate. +func (client Client) RegenerateKey(ctx context.Context, resourceGroupName string, name string, parameters RegenerateKeyParameters) (result AccessKeys, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.RegenerateKey") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.RegenerateKeyPreparer(ctx, resourceGroupName, name, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "RegenerateKey", nil, "Failure preparing request") + return + } + + resp, err := client.RegenerateKeySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "redis.Client", "RegenerateKey", resp, "Failure sending request") + return + } + + result, err = client.RegenerateKeyResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "RegenerateKey", resp, "Failure responding to request") + return + } + + return +} + +// RegenerateKeyPreparer prepares the RegenerateKey request. +func (client Client) RegenerateKeyPreparer(ctx context.Context, resourceGroupName string, name string, parameters RegenerateKeyParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/regenerateKey", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// RegenerateKeySender sends the RegenerateKey request. The method will close the +// http.Response Body if it receives an error. +func (client Client) RegenerateKeySender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// RegenerateKeyResponder handles the response to the RegenerateKey request. The method always +// closes the http.Response Body. +func (client Client) RegenerateKeyResponder(resp *http.Response) (result AccessKeys, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Update update an existing Redis cache. +// Parameters: +// resourceGroupName - the name of the resource group. +// name - the name of the Redis cache. +// parameters - parameters supplied to the Update Redis operation. +func (client Client) Update(ctx context.Context, resourceGroupName string, name string, parameters UpdateParameters) (result ResourceType, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.Update") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdatePreparer(ctx, resourceGroupName, name, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "Update", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "redis.Client", "Update", resp, "Failure sending request") + return + } + + result, err = client.UpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "redis.Client", "Update", resp, "Failure responding to request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client Client) UpdatePreparer(ctx context.Context, resourceGroupName string, name string, parameters UpdateParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client Client) UpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client Client) UpdateResponder(resp *http.Response) (result ResourceType, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/redis/mgmt/2020-06-01/redis/redisapi/interfaces.go b/services/redis/mgmt/2020-06-01/redis/redisapi/interfaces.go new file mode 100644 index 000000000000..1f73d4c1e252 --- /dev/null +++ b/services/redis/mgmt/2020-06-01/redis/redisapi/interfaces.go @@ -0,0 +1,103 @@ +package redisapi + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2020-06-01/redis" + "github.com/Azure/go-autorest/autorest" +) + +// OperationsClientAPI contains the set of methods on the OperationsClient type. +type OperationsClientAPI interface { + List(ctx context.Context) (result redis.OperationListResultPage, err error) + ListComplete(ctx context.Context) (result redis.OperationListResultIterator, err error) +} + +var _ OperationsClientAPI = (*redis.OperationsClient)(nil) + +// ClientAPI contains the set of methods on the Client type. +type ClientAPI interface { + CheckNameAvailability(ctx context.Context, parameters redis.CheckNameAvailabilityParameters) (result autorest.Response, err error) + Create(ctx context.Context, resourceGroupName string, name string, parameters redis.CreateParameters) (result redis.CreateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, name string) (result redis.DeleteFuture, err error) + ExportData(ctx context.Context, resourceGroupName string, name string, parameters redis.ExportRDBParameters) (result redis.ExportDataFuture, err error) + ForceReboot(ctx context.Context, resourceGroupName string, name string, parameters redis.RebootParameters) (result redis.ForceRebootResponse, err error) + Get(ctx context.Context, resourceGroupName string, name string) (result redis.ResourceType, err error) + ImportData(ctx context.Context, resourceGroupName string, name string, parameters redis.ImportRDBParameters) (result redis.ImportDataFuture, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result redis.ListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result redis.ListResultIterator, err error) + ListBySubscription(ctx context.Context) (result redis.ListResultPage, err error) + ListBySubscriptionComplete(ctx context.Context) (result redis.ListResultIterator, err error) + ListKeys(ctx context.Context, resourceGroupName string, name string) (result redis.AccessKeys, err error) + ListUpgradeNotifications(ctx context.Context, resourceGroupName string, name string, history float64) (result redis.NotificationListResponse, err error) + RegenerateKey(ctx context.Context, resourceGroupName string, name string, parameters redis.RegenerateKeyParameters) (result redis.AccessKeys, err error) + Update(ctx context.Context, resourceGroupName string, name string, parameters redis.UpdateParameters) (result redis.ResourceType, err error) +} + +var _ ClientAPI = (*redis.Client)(nil) + +// FirewallRulesClientAPI contains the set of methods on the FirewallRulesClient type. +type FirewallRulesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, cacheName string, ruleName string, parameters redis.FirewallRuleCreateParameters) (result redis.FirewallRule, err error) + Delete(ctx context.Context, resourceGroupName string, cacheName string, ruleName string) (result autorest.Response, err error) + Get(ctx context.Context, resourceGroupName string, cacheName string, ruleName string) (result redis.FirewallRule, err error) + List(ctx context.Context, resourceGroupName string, cacheName string) (result redis.FirewallRuleListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, cacheName string) (result redis.FirewallRuleListResultIterator, err error) +} + +var _ FirewallRulesClientAPI = (*redis.FirewallRulesClient)(nil) + +// PatchSchedulesClientAPI contains the set of methods on the PatchSchedulesClient type. +type PatchSchedulesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, name string, parameters redis.PatchSchedule) (result redis.PatchSchedule, err error) + Delete(ctx context.Context, resourceGroupName string, name string) (result autorest.Response, err error) + Get(ctx context.Context, resourceGroupName string, name string) (result redis.PatchSchedule, err error) + ListByRedisResource(ctx context.Context, resourceGroupName string, cacheName string) (result redis.PatchScheduleListResultPage, err error) + ListByRedisResourceComplete(ctx context.Context, resourceGroupName string, cacheName string) (result redis.PatchScheduleListResultIterator, err error) +} + +var _ PatchSchedulesClientAPI = (*redis.PatchSchedulesClient)(nil) + +// LinkedServerClientAPI contains the set of methods on the LinkedServerClient type. +type LinkedServerClientAPI interface { + Create(ctx context.Context, resourceGroupName string, name string, linkedServerName string, parameters redis.LinkedServerCreateParameters) (result redis.LinkedServerCreateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, name string, linkedServerName string) (result autorest.Response, err error) + Get(ctx context.Context, resourceGroupName string, name string, linkedServerName string) (result redis.LinkedServerWithProperties, err error) + List(ctx context.Context, resourceGroupName string, name string) (result redis.LinkedServerWithPropertiesListPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, name string) (result redis.LinkedServerWithPropertiesListIterator, err error) +} + +var _ LinkedServerClientAPI = (*redis.LinkedServerClient)(nil) + +// PrivateEndpointConnectionsClientAPI contains the set of methods on the PrivateEndpointConnectionsClient type. +type PrivateEndpointConnectionsClientAPI interface { + Delete(ctx context.Context, resourceGroupName string, cacheName string, privateEndpointConnectionName string) (result autorest.Response, err error) + Get(ctx context.Context, resourceGroupName string, cacheName string, privateEndpointConnectionName string) (result redis.PrivateEndpointConnection, err error) + List(ctx context.Context, resourceGroupName string, cacheName string) (result redis.PrivateEndpointConnectionListResult, err error) + Put(ctx context.Context, resourceGroupName string, cacheName string, privateEndpointConnectionName string, properties redis.PrivateEndpointConnection) (result redis.PrivateEndpointConnectionsPutFuture, err error) +} + +var _ PrivateEndpointConnectionsClientAPI = (*redis.PrivateEndpointConnectionsClient)(nil) + +// PrivateLinkResourcesClientAPI contains the set of methods on the PrivateLinkResourcesClient type. +type PrivateLinkResourcesClientAPI interface { + ListByRedisCache(ctx context.Context, resourceGroupName string, cacheName string) (result redis.PrivateLinkResourceListResult, err error) +} + +var _ PrivateLinkResourcesClientAPI = (*redis.PrivateLinkResourcesClient)(nil) diff --git a/services/redis/mgmt/2020-06-01/redis/version.go b/services/redis/mgmt/2020-06-01/redis/version.go new file mode 100644 index 000000000000..aeff5571f25c --- /dev/null +++ b/services/redis/mgmt/2020-06-01/redis/version.go @@ -0,0 +1,30 @@ +package redis + +import "github.com/Azure/azure-sdk-for-go/version" + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UserAgent returns the UserAgent string to use when sending http.Requests. +func UserAgent() string { + return "Azure-SDK-For-Go/" + Version() + " redis/2020-06-01" +} + +// Version returns the semantic version (see http://semver.org) of the client. +func Version() string { + return version.Number +} From c8c30bb15488393e18b3b1585d51bbf6495af344 Mon Sep 17 00:00:00 2001 From: arcturusZhang Date: Thu, 17 Dec 2020 12:25:46 +0800 Subject: [PATCH 10/12] Generated from tags [package-2016-06] of specification/recoveryservices/resource-manager/readme.md (commit hash: 3a3a9452f965a227ce43e6b545035b99dd175f23) --- .../mgmt/2016-06-01/recoveryservices/CHANGELOG.md | 14 +++----------- .../mgmt/2016-06-01/recoveryservices/operations.go | 2 +- .../recoveryservices/privatelinkresources.go | 2 +- .../mgmt/2016-06-01/recoveryservices/vaults.go | 4 ++-- 4 files changed, 7 insertions(+), 15 deletions(-) diff --git a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/CHANGELOG.md b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/CHANGELOG.md index 78f740d46807..b8f349af8d9c 100644 --- a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/CHANGELOG.md +++ b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/CHANGELOG.md @@ -1,13 +1,5 @@ -Generated from https://github.com/Azure/azure-rest-api-specs/tree/3c764635e7d442b3e74caf593029fcd440b3ef82 +Generated from https://github.com/Azure/azure-rest-api-specs/tree/3a3a9452f965a227ce43e6b545035b99dd175f23 -Code generator @microsoft.azure/autorest.go@~2.1.161 +Code generator @microsoft.azure/autorest.go@~2.1.165 -## Breaking Changes - -- Function `NewPrivateLinkResourcesPage` parameter(s) have been changed from `(func(context.Context, PrivateLinkResources) (PrivateLinkResources, error))` to `(PrivateLinkResources, func(context.Context, PrivateLinkResources) (PrivateLinkResources, error))` -- Function `NewVaultListPage` parameter(s) have been changed from `(func(context.Context, VaultList) (VaultList, error))` to `(VaultList, func(context.Context, VaultList) (VaultList, error))` -- Function `NewClientDiscoveryResponsePage` parameter(s) have been changed from `(func(context.Context, ClientDiscoveryResponse) (ClientDiscoveryResponse, error))` to `(ClientDiscoveryResponse, func(context.Context, ClientDiscoveryResponse) (ClientDiscoveryResponse, error))` - -## New Content - -- New field `Identity` in struct `PatchVault` +No exported changes \ No newline at end of file diff --git a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/operations.go b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/operations.go index da132bb38032..8a9ebd436255 100644 --- a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/operations.go +++ b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/operations.go @@ -74,6 +74,7 @@ func (client OperationsClient) List(ctx context.Context) (result ClientDiscovery } if result.cdr.hasNextLink() && result.cdr.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, "recoveryservices.OperationsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/privatelinkresources.go b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/privatelinkresources.go index a2c4e47700a2..b4d9387b3703 100644 --- a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/privatelinkresources.go +++ b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/privatelinkresources.go @@ -155,6 +155,7 @@ func (client PrivateLinkResourcesClient) List(ctx context.Context, resourceGroup } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -216,7 +217,6 @@ func (client PrivateLinkResourcesClient) listNextResults(ctx context.Context, la result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "recoveryservices.PrivateLinkResourcesClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/vaults.go b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/vaults.go index 9bda6b1766b5..47257ee20ef0 100644 --- a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/vaults.go +++ b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/vaults.go @@ -306,6 +306,7 @@ func (client VaultsClient) ListByResourceGroup(ctx context.Context, resourceGrou } if result.vl.hasNextLink() && result.vl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -366,7 +367,6 @@ func (client VaultsClient) listByResourceGroupNextResults(ctx context.Context, l result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "recoveryservices.VaultsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") - return } return } @@ -420,6 +420,7 @@ func (client VaultsClient) ListBySubscriptionID(ctx context.Context) (result Vau } if result.vl.hasNextLink() && result.vl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -479,7 +480,6 @@ func (client VaultsClient) listBySubscriptionIDNextResults(ctx context.Context, result, err = client.ListBySubscriptionIDResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "recoveryservices.VaultsClient", "listBySubscriptionIDNextResults", resp, "Failure responding to next results request") - return } return } From 72843e230313b692d89af9536f097265473fda25 Mon Sep 17 00:00:00 2001 From: arcturusZhang Date: Thu, 17 Dec 2020 12:28:34 +0800 Subject: [PATCH 11/12] v49.1.0 --- CHANGELOG.md | 22 ++++++++++++++++++++++ version/version.go | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e33d650b66c9..ecef5c1a40df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # CHANGELOG +## `v49.1.0` + +### New Packages + +- `github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2020-09-01/cdn` +- `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-07-01/network` +- `github.com/Azure/azure-sdk-for-go/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c` +- `github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2020-06-01/redis` + +### Updated Packages + +| Package Path | Changelog | +| :--- | :---: | +| `github.com/Azure/azure-sdk-for-go/services/datafactory/mgmt/2018-06-01/datafactory` | [details](\services\datafactory\mgmt\2018-06-01\datafactory\CHANGELOG.md) | + +### Breaking Changes + +| Package Path | Changelog | +| :--- | :---: | +| `github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v3.0/security` | [details](\services\preview\security\mgmt\v3.0\security\CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/synapse/mgmt/2019-06-01-preview/synapse` | [details](\services\preview\synapse\mgmt\2019-06-01-preview\synapse\CHANGELOG.md) | + ## `v49.0.0` **NOTE**: Due to the changes requested in [this issue](https://github.com/Azure/azure-sdk-for-go/issues/12834), we changed the constructor of all the pager structs, which leads to a very long list of breaking changes. Please check the details of the breaking changes by the link in the table. diff --git a/version/version.go b/version/version.go index 686f93878220..8f56eb5acbff 100644 --- a/version/version.go +++ b/version/version.go @@ -18,4 +18,4 @@ package version // Changes may cause incorrect behavior and will be lost if the code is regenerated. // Number contains the semantic version of this SDK. -const Number = "v49.0.0" +const Number = "v49.1.0" From db77e41a0b831348482196a4de5795ed7b1f82d5 Mon Sep 17 00:00:00 2001 From: arcturusZhang Date: Thu, 17 Dec 2020 14:39:42 +0800 Subject: [PATCH 12/12] Fix links in CHANGELOG --- CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ecef5c1a40df..2be111262448 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,14 +13,14 @@ | Package Path | Changelog | | :--- | :---: | -| `github.com/Azure/azure-sdk-for-go/services/datafactory/mgmt/2018-06-01/datafactory` | [details](\services\datafactory\mgmt\2018-06-01\datafactory\CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/datafactory/mgmt/2018-06-01/datafactory` | [details](services/datafactory/mgmt/2018-06-01/datafactory/CHANGELOG.md) | ### Breaking Changes | Package Path | Changelog | | :--- | :---: | -| `github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v3.0/security` | [details](\services\preview\security\mgmt\v3.0\security\CHANGELOG.md) | -| `github.com/Azure/azure-sdk-for-go/services/preview/synapse/mgmt/2019-06-01-preview/synapse` | [details](\services\preview\synapse\mgmt\2019-06-01-preview\synapse\CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v3.0/security` | [details](services/preview/security/mgmt/v3.0/security/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/synapse/mgmt/2019-06-01-preview/synapse` | [details](services/preview/synapse/mgmt/2019-06-01-preview/synapse/CHANGELOG.md) | ## `v49.0.0`